repo_name stringlengths 6 101 | path stringlengths 4 300 | text stringlengths 7 1.31M |
|---|---|---|
wantnon2/c3dEngine2 | c3dEngine2/demos/app_superSingleCell/projcode/gameObjs/sprite.cpp | //
// sprite.cpp
// HelloOpenGL
//
// Created by wantnon (<NAME>) on 12-12-22.
//
//
#include "sprite.h"
|
sathishmscict/scrimage | scrimage-core/src/main/scala/com/sksamuel/scrimage/canvas/drawable/Polyline.scala | package com.sksamuel.scrimage.canvas.drawable
import java.awt.Graphics2D
import com.sksamuel.scrimage.canvas.{Context, Drawable}
case class Polyline(points: Seq[Point], configure: Graphics2D => Unit = g2 => ()) extends Drawable {
def draw(g: Graphics2D): Unit = g.drawPolyline(points.map(_.x).toArray, points.map(_.... |
Sendiradid/island.is | apps/air-discount-scheme/backend/migrations/20210428140700-fix-customer-record.js | <filename>apps/air-discount-scheme/backend/migrations/20210428140700-fix-customer-record.js
'use strict'
module.exports = {
up: (queryInterface) => {
return queryInterface.sequelize.query(`
BEGIN;
/* fix wrong customer entry AEY RKV*/
UPDATE flight_leg
SET date = '2021-04-29T12:45:0... |
xDamneDx/Epic-React | bookshelf/scripts/swap.js | const fs = require('fs')
const inquirer = require('inquirer')
const {spawnSync, getVariants, getExtraCreditTitles} = require('./utils')
const branch = spawnSync('git rev-parse --abbrev-ref HEAD')
if (branch === 'main') {
throw new Error('Cannot run swap on main as there are no exercises.')
}
go()
async function go... |
gitskarios/Gitskarios | app/src/main/java/com/alorma/github/sdk/bean/dto/response/search/UsersSearch.java | package com.alorma.github.sdk.bean.dto.response.search;
import core.User;
import java.util.List;
public class UsersSearch extends SearchBase {
public List<User> items;
public UsersSearch() {
}
}
|
jaylinjiehong/NumberOfPasses | Android/android-30/android30_code_view/src/com/company/source/com/android/internal/telephony/RadioConfig.java | <filename>Android/android-30/android30_code_view/src/com/company/source/com/android/internal/telephony/RadioConfig.java
/*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... |
zhangkn/iOS14Header | usr/lib/libcoreroutine.dylib/RTStoredLocationOfInterestEnumerationOptions.h | <gh_stars>1-10
/*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 11:52:36 AM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /usr/lib/libcoreroutine.dylib
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by <NAME>.
*/
#import <l... |
hclsampleapps/kandy-cpaas2-sample-ios-oc | kandy-cpaas2-sample-ios-oc/Dashboard/DashboardTypeCustomCollectionCell.h |
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface DashboardTypeCustomCollectionCell : UICollectionViewCell
@property(nonatomic, weak) IBOutlet UILabel *lblName;
@property(nonatomic, weak) IBOutlet UIImageView *imgBg;
@property(nonatomic, weak) IBOutlet UIImageView *imgPreview1;
-(void)displayContentwithI... |
qq573011406/FASTBuild_UnrealEngine | Code/Tools/FBuild/FBuildTest/Data/TestPrecompiledHeaders/Deoptimization/PrecompiledHeader.h | #ifndef PCH_INCLUDED
#define PCH_INCLUDED
// A define which is not used within the PCH, but should still uniquify the output
// because files compiled using the PCH might rely on the define
#define SPECIAL_DEFINE 1
#endif // PCH_INCLUDED
|
LJLintermittent/leetcode | src/test/java/com/learn/leetcode/test/TestLC557.java | package com.learn.leetcode.test;
/**
* Description:
* date: 2021/7/23 9:46
* Package: com.learn.leetcode.test
*
* @author 李佳乐
* @email <EMAIL>
*/
@SuppressWarnings("all")
public class TestLC557 {
public static void main(String[] args) {
String s = " acd lijiale haha";
String ans = reverseWo... |
Miguel-David/1KSegundaEvaluacion | src/ExplicacionSwing/PanelSueldo.java | package ExplicacionSwing;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import java.awt.*;
public class PanelSueldo{
private JTextField sueldo;
private JTextField salario;
private JTextField nombre;
private JTextField horas;
private JPanel panel;
public PanelSueldo(){
inicializar();
}... |
tiagoeborsanyi/festival-app | client/src/store/actions/auth.js | import axios from 'axios';
import * as actionTypes from './actionTypes';
export const authStart = () => {
return {
type: actionTypes.AUTH_START
};
};
export const authSuccess = (token, userId, admin = false) => {
return {
type: actionTypes.AUTH_SUCCESS,
token: token,
userId... |
kamranghiasvand/wedding-auth-server | src/main/java/com/bluebox/security/authenticationserver/persistence/service/sms/meliPayment/dto/MeliPaymentResp.java | package com.bluebox.security.authenticationserver.persistence.service.sms.meliPayment.dto;
import lombok.Getter;
import lombok.Setter;
/**
* @author by <NAME>
*/
@Getter
@Setter
public class MeliPaymentResp {
private String value;
private int retStatus;
private String strRetStatus;
}
|
code-forger/PyPal | src/actuator/impulse.cpp | <gh_stars>0
#include "../globals.h"
extern "C"
{
void actuator_impulse_apply(palImpulseActuator* i)
{
i->Apply();
}
void actuator_impulse_set_impulse(palImpulseActuator* i, float impulse)
{
i->SetImpulse(impulse);
}
palImpulseActuator* actuator_impulse_create(palBody* pb, ... |
flber/df | hack/ruby/plant.rb | module DFHack
class << self
# return a Plant
# arg similar to unit.rb/unit_find, no menu
def plant_find(what=cursor)
if what.kind_of?(Integer)
world.items.all.binsearch(what)
elsif what.respond_to?(:x) or what.respond_to?(:pos)
world.pl... |
h0tbird/clusterawsadm | providers/terraform-provider-aws/aws/internal/service/wafv2/lister/list_pages_gen.go | <reponame>h0tbird/clusterawsadm
// Code generated by "aws/internal/generators/listpages/main.go -function=ListIPSets,ListRegexPatternSets,ListRuleGroups,ListWebACLs -paginator=NextMarker github.com/aws/aws-sdk-go/service/wafv2"; DO NOT EDIT.
package lister
import (
"context"
"github.com/aws/aws-sdk-go/aws"
"githu... |
Sata51/configfile | src/shared/errors/bad-script-permission.error.js | export class BadScriptPermission extends Error {
constructor(scriptName, message = `Bad permission on "${scriptName}" script.`) {
super(message)
this.scriptName = scriptName
}
}
|
lechium/tvOS135Headers | System/Library/PrivateFrameworks/SearchFoundation.framework/_SFPBSportsTeam.h | /*
* This header is generated by classdump-dyld 1.0
* on Sunday, June 7, 2020 at 11:17:32 AM Mountain Standard Time
* Operating System: Version 13.4.5 (Build 17L562)
* Image Source: /System/Library/PrivateFrameworks/SearchFoundation.framework/SearchFoundation
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2... |
JoeFu/filemaker18helper | FMP_Help/pairs/pair2_23.js | var pairs =
{
"\u6A21":{"\u5F0F":1}
,"\u5F0F":{"\u952E":1,"(":1,"\u4E2D":1,"\u3002":1,"\u547D":1,"\u4E0B":1,"\u6765":1,"\u5316":1,"\u201D":1,"\u67E5":1,"\u5E03":1,"\u5BF9":1,"\u68C0":1,"\u201C":1,"\uFF09":1}
,"\u952E":{"\u76D8":1,"\u6D4F":1,"\u521B":1,"\u5165":1,"\u7701":1,"\u6253":1,"\u9009":1,"\u5728":1,"\u76EE":1,"\... |
SoftwareMansion/expo | ios/versioned-react-native/ABI15_0_0/React/Views/ABI15_0_0RCTConvert+MapKit.h | <filename>ios/versioned-react-native/ABI15_0_0/React/Views/ABI15_0_0RCTConvert+MapKit.h
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* ... |
Thulio-Carvalho/Advanced-Algorithms-Problems | Old/Contests/C5/P4.cpp | #include <bits/stdc++.h>
using namespace std;
int daysOff(int n, int start){
int day = start;
int off = 0;
for (int i = 1; i <= n; i++){
if (day%(6) == 0){
off++;
}
if (day%(7) == 0){
off++;
day = 0;
}
// cout << day << endl;
... |
wangcy6/weekly_read | code_reading/oceanbase-master/src/share/allocator/ob_tenant_mutil_allocator_mgr.h | <filename>code_reading/oceanbase-master/src/share/allocator/ob_tenant_mutil_allocator_mgr.h
/**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* ... |
codehaus/coconut | cake/trunk/cake-service/cake-service-tck/src/main/java/org/codehaus/cake/test/tck/RequireService.java | /* Copyright 2004 - 2008 <NAME> <<EMAIL>>
* Licensed under the Apache 2.0 License. */
package org.codehaus.cake.test.tck;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPoli... |
DianaAssistant/DIANA | redemption/src/utils/utf.hpp | <filename>redemption/src/utils/utf.hpp
/*
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distri... |
blockfuse/payment-gateway | adapters/lnd-adapter/spec/integration/routes/peers.spec.js | const getApp = require('../../../app');
const service = require('ln-service/service');
const request = require('supertest');
describe('Peers', () => {
let app;
beforeAll((done) => {
return getApp().then(returnedApp => {
app = returnedApp;
done();
});
});
describe('/v0/peers/', () => {
... |
timfjord/sublime_debugger | modules/commands.py | from __future__ import annotations
from .typecheck import *
# import Debugger; Debugger.modules.debugger.commands.Commands.generate_commands_and_menus();
from .import core
from .debugger import Debugger
from .adapters_registry import AdaptersRegistry
import sublime_plugin
import sublime
import json
menu_context ... |
npocmaka/Windows-Server-2003 | com/published/dload/ole32.c | #include "compch.h"
#pragma hdrstop
#define _OLE32_
#include <objidl.h>
#undef WINOLEAPI
#define WINOLEAPI HRESULT STDAPICALLTYPE
#undef WINOLEAPI_
#define WINOLEAPI_(_x) _x STDAPICALLTYPE
static
WINOLEAPI
CLSIDFromProgID(
IN LPCOLESTR lpszProgID,
OUT LPCLSID lpclsid
)
... |
forkstuffs/HSCore | HSCore-config/HSCore-config-path/src/main/java/me/hsgamer/hscore/config/path/LongConfigPath.java | <filename>HSCore-config/HSCore-config-path/src/main/java/me/hsgamer/hscore/config/path/LongConfigPath.java
package me.hsgamer.hscore.config.path;
import me.hsgamer.hscore.config.BaseConfigPath;
public final class LongConfigPath extends BaseConfigPath<Long> {
/**
* Create a config path
*
* @param path the ... |
viszi/codes | CodeWars/4kyu/JavaScript/012-range-extraction.js | // https://www.codewars.com/kata/51ba717bb08c1cd60f00002f
// A format for expressing an ordered list of integers is to use a comma separated list of either
// - individual integers
// - or a range of integers denoted by the starting integer separated from the end integer in the range by a dash, '-'. The range include... |
isislab-unisa/dmason2.5 | src/main/java/it/isislab/dmason/sim/field/network/kway/algo/interfaces/PartitioningAlgorithm.java | <filename>src/main/java/it/isislab/dmason/sim/field/network/kway/algo/interfaces/PartitioningAlgorithm.java<gh_stars>10-100
/**
* Copyright 2016 Universita' degli Studi di Salerno
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
... |
jottasantosdev/logica-de-programacao | controle/if_4.js | const nota = 9.3;
if (nota >= 9) {
console.log('<NAME>!');
console.log('Parabéns!');
}
console.log('Fim!'); |
ds462716/jeecg-boot-master | jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/pd/service/impl/PdStoreroomPatrolServiceImpl.java | package org.jeecg.modules.pd.service.impl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.shiro.SecurityUtils;
import org.jeecg.common.constant.PdConstant;
import org.jeecg.common.system.vo.LoginUser;
import org.jeecg.modules.pd.entity.PdStoreroomPatrol;
import org.jeecg.modules.p... |
alecnunn/mud | src/refl/System.cpp | // Copyright (c) 2019 <NAME> <EMAIL>
// This software is provided 'as-is' under the zlib License, see the LICENSE.txt file.
// This notice and the license may not be removed or altered from any source distribution.
#include <infra/Cpp20.h>
#ifndef MUD_CPP_20
#include <fstream>
#include <string>
#endif
#ifdef MUD_M... |
JavierV8/MERN-E-commerce | client/src/components/orders/OrderDetails.js | import React from 'react';
import PropTypes from 'prop-types';
import { Progress } from 'reactstrap';
import OrderItems from './OrderItems';
const OrderDetails = props => {
const { boxToggle, orderInfo } = props;
const {
DeliveryAddress,
OrderDate,
DeliveryTime,
SubTotal,
... |
baozongzi/test | public/assets/addons/filemanager/scripts/CodeMirror/src/util/browser.js | // Kludges for bugs and behavior differences that can't be feature
// detected are enabled based on userAgent etc sniffing.
let userAgent = navigator.userAgent
let platform = navigator.platform
export let gecko = /gecko\/\d/i.test(userAgent)
let ie_upto10 = /MSIE \d/.test(userAgent)
let ie_11up = /Trident\/(?:[7-9]|\d... |
divyarya/ground-android | gnd/src/main/java/com/google/android/gnd/ui/offlinebasemap/OfflineBaseMapsViewModel.java | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
takanori-ugai/smile | core/src/main/java/smile/anomaly/SVM.java | /*
* Copyright (c) 2010-2021 <NAME>. All rights reserved.
*
* Smile is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Smile i... |
bentech/tquery | plugins/datguituner/tquery.datguituner.js | /**
* * ok now you get something which is cool for interactive tunning
*
* #### Possible enhancement - object3d picking to support THREE.Vector3 property
* * use object3d picking to select the material you need to tune
* * good for material
* * so either you do lights, or you do material or you pick the object ... |
gravel-st/gravel | src/main/java/st/gravel/support/compiler/ast/SystemMapping.java | <reponame>gravel-st/gravel<gh_stars>1-10
package st.gravel.support.compiler.ast;
/*
This file is automatically generated from typed smalltalk source. Do not edit by hand.
(C) AG5.com
*/
import java.math.BigInteger;
import st.gravel.support.jvm.NonLocalReturn;
import st.gravel.support.compiler.ast.AbstractMapping;
i... |
canh7antt8a/strapi | packages/core/strapi/lib/services/server/middleware.js | 'use strict';
const path = require('path');
const { propOr, isArray, isNil } = require('lodash/fp');
const getMiddlewareConfig = propOr([], 'config.middlewares');
const resolveRouteMiddlewares = (route, strapi) => {
const middlewaresConfig = getMiddlewareConfig(route);
if (!isArray(middlewaresConfig)) {
thr... |
sankhesh/tomviz | tomviz/DoubleSpinBox.cxx | <reponame>sankhesh/tomviz<filename>tomviz/DoubleSpinBox.cxx
/* This source file is part of the Tomviz project, https://tomviz.org/.
It is released under the 3-Clause BSD License, see "LICENSE". */
#include "DoubleSpinBox.h"
#include <QMouseEvent>
#include <QStyle>
#include <QStyleOptionSpinBox>
namespace tomviz {... |
glennji/openlumify | core/core/src/main/java/org/openlumify/core/ingest/MetadataGraphPropertyWorker.java | package org.openlumify.core.ingest;
import org.openlumify.core.ingest.graphProperty.GraphPropertyWorkData;
import org.openlumify.core.ingest.graphProperty.GraphPropertyWorker;
import org.openlumify.core.model.Description;
import org.openlumify.core.model.Name;
import org.openlumify.core.model.properties.OpenLumifyProp... |
xillio/xill-platform | plugin-web/src/test/java/nl/xillio/xill/plugins/web/data/PageVariableTest.java | <reponame>xillio/xill-platform<filename>plugin-web/src/test/java/nl/xillio/xill/plugins/web/data/PageVariableTest.java<gh_stars>1-10
/**
* Copyright (C) 2014 Xillio (<EMAIL>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You... |
samiulshuvo/fastmri-reproducible-benchmark | fastmri_recon/tests/models/utils/attention_test.py | import pytest
import tensorflow as tf
from fastmri_recon.models.utils.attention import ChannelAttentionBlock
@pytest.mark.parametrize('kwargs',[
{},
{'activation': 'prelu'},
{'activation': 'lrelu'},
{'dense': True},
{'dense': True, 'activation': 'prelu'},
])
def test_channel_attention_block_call(... |
krisds/cobol-codeql | extractor/src/com/semmle/cobol/generator/types/ListType.java | package com.semmle.cobol.generator.types;
import com.semmle.cobol.extractor.CobolExtractor;
public class ListType extends NamedType
implements Type, TrappableType, PersistentType {
private String itemTypeName;
private String tableName;
public ListType(String name, String itemType) {
super(name);
this.itemT... |
viennagrid/viennagrid-dev | viennagrid/meta/typelist.hpp | <reponame>viennagrid/viennagrid-dev
#ifndef VIENNAGRID_META_TYPELIST_HPP
#define VIENNAGRID_META_TYPELIST_HPP
/* =======================================================================
Copyright (c) 2011-2014, Institute for Microelectronics,
Institute for Analysis and Scientific Computin... |
pf-aics-riken/kmr | src/kmrbase.c | <reponame>pf-aics-riken/kmr<gh_stars>1-10
/* kmrbase.c (2014-02-04) */
/* Copyright (C) 2012-2018 RIKEN R-CCS */
/** \file kmrbase.c KMR Base Implementation (on-memory operations).
KMR aims at fast shuffling and scalability, and provides modest
utilities for programming with map-reduce. This part implements
... |
pulasthi/twister2 | deeplearning/pytorch/src/main/python/test/test_DLTSet.py | <filename>deeplearning/pytorch/src/main/python/test/test_DLTSet.py
from twister2 import TSetContext
from twister2.Twister2Environment import Twister2Environment
from twister2.tset.fn.SourceFunc import SourceFunc
import numpy as np
env = Twister2Environment(resources=[{"cpu": 1, "ram": 512, "instances": 4}])
print("He... |
abs-hm-intake24/survey-frontend | SurveyClient/src/main/java/uk/ac/ncl/openlab/intake24/client/survey/prompts/simple/DrinkScalePromptDef.java | <reponame>abs-hm-intake24/survey-frontend
/*
This file is part of Intake24.
© Crown copyright, 2012, 2013, 2014.
This software is licensed under the Open Government Licence 3.0:
http://www.nationalarchives.gov.uk/doc/open-government-licence/
*/
package uk.ac.ncl.openlab.intake24.client.survey.prompts.simple;
impor... |
sensecollective/bioinformatics_scripts | relatedness.py | <gh_stars>1-10
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#Description: VCF summary
from optparse import OptionParser
import os
__author__ = "<NAME>"
__copyright__ = "Copyright 2011, The Exome Pipeline"
__credits__ = ["<NAME>"]
__license__ = "GPL"
__version__ = "1.0.1"
__maintainer__ = "<NAME>"
__email__ = "<EMAIL... |
CyberFlameGO/exposure-notifications-android | app/src/main/java/com/google/android/apps/exposurenotification/privateanalytics/metrics/KeysUploadedWithReportTypeMetric.java | /*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
poppycokey/simpleframework | simple-test/src/test/java/org/simpleframework/http/validate/ReportTest.java | package org.simpleframework.http.validate;
import java.io.InputStream;
import java.io.PushbackInputStream;
import junit.framework.TestCase;
import org.simpleframework.common.buffer.ArrayBuffer;
import org.simpleframework.common.buffer.Buffer;
import org.simpleframework.xml.core.Persister;
public class ReportTest ex... |
mwiszniewski/website | src/components/ErrorMessage.js | <reponame>mwiszniewski/website<gh_stars>10-100
import styled from '@emotion/styled';
const ErrorMessage = styled.div`
height: 2rem;
font-size: ${props => props.theme.fontSizes.small};
margin-top: 0.3rem;
color: ${props => props.theme.colors.accent};
`;
export default ErrorMessage;
|
parlaylabs/botbuilder-java | libraries/bot-schema/src/main/java/com/microsoft/bot/schema/models/InnerHttpError.java | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated... |
ryanfowler/go-domdistiller | internal/filter/heuristic/expand-title.go | // ORIGINAL: java/filters/heuristics/ExpandTitleToContentFilter.java
// Copyright (c) 2020 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without... |
KapilKhanal/tabletoolz | tests/test_sqlbase.py | import pytest
from tabletoolz import *
from pandas.testing import assert_frame_equal
@pytest.fixture
def response():
df = car_options >> to_statement >> to_pandas(engine)
return df
def test_to_statement(response):
# Test to_statement
expected = car_options >> to_statement >> to_pandas(engine)
... |
fredblain/docQE-corp | systems/2014/english-russian/newstest2014.onlineA.0.en-ru/efb705e77017534ee4b72ef260187d91.newstest2014.onlineA.0.en-ru.ru | Водителя, превышение скорости на 130mph, с горячим напитком между ног оштрафован на £1000
Автомобилист оштрафован на £1000 для вождения в до 130 (210 км/ч) с горячим напитком сбалансированы между его ног.
Э<NAME>, 35, Tiptree, Эссекс, был замечен в движении его <NAME> в Брэйнтри на A120 27 мая.
Когда его остановили пол... |
s3b4stian/c-adventures | CLP/memchr.c | <filename>CLP/memchr.c
#include <string.h>
#include <stdio.h>
void print(char *b, char *p)
{
if (p)
// value of pointer p as char, difference n string first char address and position address
printf ("'%c' [%ld]\n", *p, p - b);
else
printf ("(null)\n");
}
int main (void)
{
char abc... |
qianlong4526888/haha | src/arch/mips/dsp.hh | <gh_stars>10-100
/*
* Copyright (c) 2007 MIPS Technologies, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met: redistributions of source code must retain the above copyright
* notice, t... |
joshuawscott/sdops | app/models/appgen_order_lineitem.rb | # ==DEPRECATED
# This was a table populated by a cronjob that pulled data from the
# Appgen accounting system. We no longer use this, and it has been replaced by
# the Fishbowl and Fishbowl* classes.
# ===Schema:
# appgen_order_id string
# part_number string
# description string
# quantity integ... |
abhinavsri000/UAVision | WebODM-master/plugins/test/dynamic.js | <reponame>abhinavsri000/UAVision
console.log('Hello ${name}'); |
buschmais/extended-objects | neo4j/test/src/test/java/com/buschmais/xo/neo4j/test/bootstrap/NonRegisteredTypeIT.java | <filename>neo4j/test/src/test/java/com/buschmais/xo/neo4j/test/bootstrap/NonRegisteredTypeIT.java<gh_stars>10-100
package com.buschmais.xo.neo4j.test.bootstrap;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.Assert.fail;
import java... |
mateuszlewko/nomad-driver-nspawn | vendor/github.com/hashicorp/consul-template/signals/nil.go | <filename>vendor/github.com/hashicorp/consul-template/signals/nil.go
package signals
// NilSignal is a special signal that is blank or "nil"
type NilSignal int
func (s *NilSignal) String() string { return "SIGNIL" }
func (s *NilSignal) Signal() {}
|
Sunrisepeak/Linux2.6-Reading | drivers/clk/mediatek/clk-mt6779-cam.c | <gh_stars>10-100
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2019 MediaTek Inc.
* Author: <NAME> <<EMAIL>>
*/
#include <linux/module.h>
#include <linux/clk-provider.h>
#include <linux/platform_device.h>
#include <dt-bindings/clock/mt6779-clk.h>
#include "clk-mtk.h"
#include "clk-gate.h"
static const st... |
wn-upf/neko | Code/COST/sense.h | /************************************************************************
* $CVSHeader: sense/code/common/sense.h,v 1.6 2007/03/03 17:51:23 mlisee Exp $
*
* @<title> SENSE Library </title>@
*
* @<h1> sense.h </h1>@
* This header file provides
* necessary functionalities for network simulation. All SENSE
* comp... |
crazy-max/expect-nt | blt/generic/bltSpline.c | <reponame>crazy-max/expect-nt
/*
* bltSpline.c --
*
* This module implements curve fitting with spline interpolation.
*
* Copyright 1996-1997 by AT&T Bell Laboratories.
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*/
#incl... |
secret-family-recipes-04/front-end | src/mocks/DummyData.js |
const myRecipelist = [
{id: 1,
name: 'Casserole',
source: 'Grandma Betty',
serves: '3-4 people',
prepTime: 20,
cookTime: 30,
ingredients: ['1lb Penne Noodles', '1lb ground beef', '1 onion', '1 can of diced tomatoes', '2 garlic cloves, minced', '1 jar spaghetti sauce', '1/2 lb fresh mushroom... |
hydratk/hydratk | src/hydratk/core/message.py | # -*- coding: utf-8 -*-
"""HydraTK core commmunication messages definition
.. module:: core.message
:platform: Unix
:synopsis: HydraTK core commmunication messages definition
.. moduleauthor:: <NAME> <<EMAIL>>
"""
REQUEST = 1 # request
RESPONSE = 2 # info
INFO = 3 # info
SERVICE_STATUS = 4 # info
MONITOR =... |
whatedcgveg/v2ray-core | proxy/http/config.pb.go | package http
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is c... |
ArriolaHarold2001/addedlamps | build/tmp/expandedArchives/forge-1.17.1-37.0.58_mapped_official_1.17.1-sources.jar_461b1baaba5fdaecf94c73039d52c00b/net/minecraft/world/level/levelgen/feature/configurations/RandomPatchConfiguration.java | package net.minecraft.world.level.levelgen.feature.configurations;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import com.mojang.serialization.Codec;
import com.mojang.serialization.codecs.RecordCodecBuilder;
import java.util.List;
import java.util.Set;
import java.ut... |
HulinCedric/trafalgar-simulator | src/Radar/T_Radar_N0_2_1.cpp | //
// IUT de Nice / Departement informatique / Module APO-C++
// Annee 2008_2009 - Package _Trafalgar
//
// Classe Radar - Tests unitaires de la methode de classe privee cibleCachee (Lot 1)
// (Cas nominaux / Une seule ile)
//
// Auteur : <NAME>, <NAME>, <NAME>
//
#include "Radar.h"
#include "../../_Tes... |
tusharchoudhary0003/Custom-Football-Game | sources/com/paypal/android/sdk/payments/C11948l.java | package com.paypal.android.sdk.payments;
import android.text.Editable;
import android.text.TextWatcher;
/* renamed from: com.paypal.android.sdk.payments.l */
final class C11948l implements TextWatcher {
/* renamed from: a */
private /* synthetic */ LoginActivity f37574a;
C11948l(LoginActivity loginActiv... |
86dh/bc-java | core/src/main/java/org/bouncycastle/pqc/crypto/picnic/LowmcConstants.java | <filename>core/src/main/java/org/bouncycastle/pqc/crypto/picnic/LowmcConstants.java
package org.bouncycastle.pqc.crypto.picnic;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import org.bouncycastle.util.Pack;
import org.bouncycastle.util.encoders.Hex;
class LowmcConstants
{
... |
gfelbing/MicroService | microservice_core/src/main/java/de/gfelbing/microservice/core/concurrency/ExecutorServiceModule.java | <gh_stars>0
package de.gfelbing.microservice.core.concurrency;
import com.google.inject.AbstractModule;
import com.google.inject.Inject;
import com.google.inject.Provides;
import com.google.inject.Singleton;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurren... |
Altiscale/incubator-tez | tez-dag/src/main/java/org/apache/tez/dag/app/dag/impl/Edge.java | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may n... |
trumank/DRG-Mods | Source/FSD/Private/PendingLatentActionLibrary.cpp | <filename>Source/FSD/Private/PendingLatentActionLibrary.cpp
#include "PendingLatentActionLibrary.h"
class UObject;
void UPendingLatentActionLibrary::WaitOneFrame(UObject* WorldContextObject, FLatentActionInfo LatentInfo) {
}
UPendingLatentActionLibrary::UPendingLatentActionLibrary() {
}
|
rusucosmin/Cplusplus | Camion/main.cpp | #include <fstream>
#include <vector>
#define x first
#define y second
using namespace std;
const int MAXN = 602;
vector<int> G[MAXN];
int N, M, K, C;
ifstream cin("camion.in");
ofstream cout("camion.out");
inline void Afisare() {
cout << "\nVector:\n";
for(int i = 1 ; i <= N ; ++ i) {
for(vector<... |
malord/prime | XMLNodeWriter.h | <gh_stars>0
// Copyright 2000-2021 <NAME>
#ifndef PRIME_XMLNODEWRITER_H
#define PRIME_XMLNODEWRITER_H
#include "XMLNode.h"
#include "XMLWriter.h"
namespace Prime {
/// Writes a hierarchy of XML nodes to a file.
class PRIME_PUBLIC XMLNodeWriter {
public:
XMLNodeWriter();
enum { defaultBufferSize = PRIME_FIL... |
Lando-L/ocd-detection | ocddetection/learning/federated/simulation/training/__init__.py | <gh_stars>1-10
from collections import namedtuple
from functools import partial, reduce
import os
from typing import Callable, Dict, List, Text, Tuple
import matplotlib.pylab as plt
import mlflow
import numpy as np
import pandas as pd
import seaborn as sns
import tensorflow as tf
import tensorflow_federated as tff
fr... |
dolittle/Legacy_Studio | Source/Master/Web/doLittle/client/views/LoadAndRenderView.js | /*---------------------------------------------------------------------------------------------
* Copyright (c) 2008-2017 doLittle. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*----------------------------------------------------------------------... |
rongrongrr/main | src/main/java/seedu/guilttrip/logic/parser/GuiltTripParser.java | package seedu.guilttrip.logic.parser;
import static seedu.guilttrip.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.guilttrip.commons.core.Messages.MESSAGE_UNKNOWN_COMMAND;
import static seedu.guilttrip.logic.parser.ParserUtil.mapOfMessageUsages;
import static seedu.guilttrip.logic.parser.Par... |
saimonmoore/xorodia | web/src/policies/PersistSingerPolicy/PersistSingerPolicy.js | <filename>web/src/policies/PersistSingerPolicy/PersistSingerPolicy.js
import React, { useContext } from 'react'
import { useQuery, useMutation } from '@redwoodjs/web'
import { Link, routes, navigate } from '@redwoodjs/router'
import { AuthContext } from 'src/contexts/AuthContext'
import Loading from 'src/components/Loa... |
ibaned/seacas | docs/apr_html/search/variables_7.js | var searchData=
[
['hashsize',['HASHSIZE',['../namespaceanonymous__namespace_02apr__aprepro_8cc_03.html#a3ccb605d7abf7abff225f663dc92d0e3',1,'anonymous_namespace{apr_aprepro.cc}']]],
['hist_5fstart',['hist_start',['../apr__scanner_8cc.html#a252fb105ec4adf6ab62197f9e7c30d52',1,'apr_scanner.cc']]],
['history',['his... |
valachedi/otus_java_2020_03 | hw04-gc/src/main/java/hw04/components/BenchmarkOverfillMemoryMBean.java | package hw04.components;
public interface BenchmarkOverfillMemoryMBean {
public int getNumberOfElementsToAdd();
public void setNumberOfElementsToAdd(int number);
}
|
zhangkn/iOS14Header | System/Library/Frameworks/PhotosUI.framework/PUMutableReviewScreenBarsModel.h | /*
* This header is generated by classdump-dyld 1.0
* on Monday, September 28, 2020 at 5:54:54 PM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/Frameworks/PhotosUI.framewo... |
aidtechnology/composer | packages/composer-runtime/lib/loggingservice.js | <filename>packages/composer-runtime/lib/loggingservice.js
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
ghost0224/jauth | jauth-soap/src/main/java/com/hp/security/jauth/soap/wss/WSSInterceptor.java | <reponame>ghost0224/jauth
package com.hp.security.jauth.soap.wss;
import java.util.Map;
import java.util.Vector;
import javax.xml.soap.SOAPException;
import javax.xml.soap.SOAPMessage;
import javax.xml.stream.XMLStreamException;
import org.apache.cxf.binding.soap.SoapMessage;
import org.apache.cxf.interceptor.Fault;... |
Snowgem/bitfrost-ts | ts_build/transaction/spenddescription.js | <reponame>Snowgem/bitfrost-ts
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined... |
SylvesterAbreu/sling | contrib/extensions/cache/api/src/main/java/org/apache/sling/commons/cache/api/CacheScope.java | <filename>contrib/extensions/cache/api/src/main/java/org/apache/sling/commons/cache/api/CacheScope.java
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownersh... |
BastianBlokland/volo | libs/rend/src/rvk/desc.c | <filename>libs/rend/src/rvk/desc.c
#include "core_array.h"
#include "core_bits.h"
#include "core_diag.h"
#include "core_search.h"
#include "core_thread.h"
#include "log_logger.h"
#include "buffer_internal.h"
#include "desc_internal.h"
#include "image_internal.h"
#include "mem_internal.h"
#include "sampler_internal.h"
... |
sensiblegame/WebMail-Interface-with-Angular2 | test/e2e.utils/dropFile.js | const fs = require('fs');
const path = require('path');
/**
* Inspiration:
* @link {http://labs.criteo.com/2016/06/1315/}
*/
module.exports = () => {
const makeMediaMap = (filePaths) => {
return filePaths.reduce((acc, { file, type }) => {
acc[path.basename(file)] = {
content... |
Matthew-Han/leetcode | dream/No1480.java | <gh_stars>0
/**
* @ClassName RunningSumOf1dArray
* @Description #1480 一维数组的动态和
* @Author MatthewHan
* @Date 2020/7/15 11:23
* @Version 1.0
**/
public class No1480 {
/**
* 执行用时: 0 ms , 在所有 Java 提交中击败了 100.00% 的用户
* 内存消耗: 39.8 MB , 在所有 Java 提交中击败了 100.00% 的用户
*
* @param nums
* @return
... |
16Bitt/virtix | libc/include/syscall.h | #ifndef __SYSCALL_H
#define __SYSCALL_H
#include "sys/cdefs.h"
__HEADER_START
#define SYS_FORK 0
#define SYS_GETPID 1
#define SYS_GETENV 2
#define SYS_WRITE 3
#define SYS_READ 4
#define SYS_CLOSE 5
#define SYS_EXIT 6
#define SYS_OPEN 7
#define SYS_MALLOC 8
#define SYS_FREE 9
#define SYS_GET_ARGS 10
#define SYS_LSEEK... |
mohneesh9797-puresoftware/cat2 | cat-core-config/src/main/java/org/unidal/cat/core/config/spi/ConfigChangeListener.java | <reponame>mohneesh9797-puresoftware/cat2
package org.unidal.cat.core.config.spi;
public interface ConfigChangeListener {
/**
* Applies the config change, throws excepiton if any error.
*
* @param config
* to be applied
* @exception ConfigException
* should be thrown ... |
bigginlab/chap | include/io/pdb_io.hpp | <filename>include/io/pdb_io.hpp
// CHAP - The Channel Annotation Package
//
// Copyright (c) 2016 - 2018 <NAME>, <NAME>, <NAME>, and
// <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the ... |
rSantucci/PonySDK | ponysdk/src/main/java/com/ponysdk/core/ui/basic/PSimplePanel.java | /*
* Copyright (c) 2011 PonySDK
* Owners:
* <NAME> <luciano.broussal AT gmail.com>
* <NAME> <mathieu.barbier AT gmail.com>
* <NAME> <nicolas.ciaravola.pro AT gmail.com>
*
* WebSite:
* http://code.google.com/p/pony-sdk/
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* u... |
stewnorriss/letsencrypt | letsencrypt-apache/letsencrypt_apache/tests/configurator_test.py | """Test for letsencrypt_apache.configurator."""
import os
import re
import shutil
import unittest
import mock
from acme import challenges
from letsencrypt import achallenges
from letsencrypt import errors
from letsencrypt import le_util
from letsencrypt.plugins import common
from letsencrypt.tests import acme_util... |
chvonrohr/ember-gantt | addon/components/gantt-line-barcontent.js | <gh_stars>0
import Component from '@ember/component';
import layout from '../templates/components/gantt-line-barcontent';
export default Component.extend({
layout,
classNames: ['gantt-line-bar-content']
});
|
etanshaul/travis-cobertura-test | google-cloud-tools-plugin/src/com/google/gct/idea/debugger/ProjectRepositoryState.java | /*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
bm16ton/yoga-c630-linux-kernel | drivers/gpu/drm/i915/gem/i915_gem_shmem.c | /*
* SPDX-License-Identifier: MIT
*
* Copyright © 2014-2016 Intel Corporation
*/
#include <linux/pagevec.h>
#include <linux/swap.h>
#include "gem/i915_gem_region.h"
#include "i915_drv.h"
#include "i915_gemfs.h"
#include "i915_gem_object.h"
#include "i915_scatterlist.h"
#include "i915_trace.h"
/*
* Move pages to... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.