repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
ezeperez26/fiuba-campus-movil-ws
app/models/nationality.rb
# == Schema Information # # Table name: nationalities # # id :integer not null, primary key # nationality :string # created_at :datetime not null # updated_at :datetime not null # profile_id :integer # class Nationality < ActiveRecord::Base belongs_to :profile end
AM869/tyJAVA
source files/src/main/java/com/klsoukas/mavenproject8/customValidation/Matches.java
<reponame>AM869/tyJAVA package com.klsoukas.mavenproject8.customValidation; import static java.lang.annotation.ElementType.*; import static java.lang.annotation.RetentionPolicy.*; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.Target; import javax.validati...
OlafKolditz/ogs
ProcessLib/HeatTransportBHE/BoundaryConditions/BHEBottomDirichletBoundaryCondition.h
/** * \file * \copyright * Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * http://www.opengeosys.org/project/license * */ #pragma once #include "NumLib/IndexValue...
thomasverweij/iaf
core/src/main/java/nl/nn/adapterframework/receivers/JavaListener.java
/* Copyright 2013 Nationale-Nederlanden, 2020 WeAreFrank! 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 applic...
MrKuzio/liquid-to-handlebars
lib/utils.js
'use strict'; const split = require('split-string'); const not = require('regex-not'); const utils = module.exports; const memo = {}; utils.last = function(arr) { return Array.isArray(arr) ? arr[arr.length - 1] : null; }; /** * String utils */ utils.toString = function(val) { return typeof val === 'string' ? ...
PaaS-TA/PAAS-TA-CONTAINER-PLATFORM-COMMON-API
src/main/java/org/paasta/container/platform/common/api/exception/CpRuntimeException.java
package org.paasta.container.platform.common.api.exception; /** * Cp Runtime Exception 클래스 * * @author kjhoon * @version 1.0 * @since 2020.08.28 */ public class CpRuntimeException extends BaseBizException { private static final long serialVersionUID = -1288712633779609678L; public CpRuntimeException(int error...
BaekSeungYeol/perpetmatch
src/main/java/com/perpetmatch/api/dto/Profile/ProfileDto.java
package com.perpetmatch.api.dto.Profile; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor @Builder public class ProfileDto { private Long id; private String nickname; private String email; }
my-references/coursemology2
client/app/bundles/course/pages/UserEmailSubscriptions/translations.intl.js
<reponame>my-references/coursemology2 import { defineMessages } from 'react-intl'; const translations = defineMessages({ component: { id: 'course.UserEmailSubscriptions.component', defaultMessage: 'Topic', }, setting: { id: 'course.UserEmailSubscriptions.setting', defaultMessage: 'Setting', }, ...
YJBeetle/QtAndroidAPI
android-28/android/icu/text/NumberFormat.cpp
<gh_stars>10-100 #include "../../../JArray.hpp" #include "../math/BigDecimal.hpp" #include "./DisplayContext.hpp" #include "./DisplayContext_Type.hpp" #include "../util/Currency.hpp" #include "../util/CurrencyAmount.hpp" #include "../util/ULocale.hpp" #include "../../../JString.hpp" #include "../../../java/lang/Number....
mikelandy/HIPS
user-contributed/lblOLD/xview/genial/lib/c_array.c
/* * c_array.c a collection of routines for handeling * dynamically allocated arrays in C. * * <NAME> LBL * * This routines allocate and access array by creating arrays of pointers. * The reason for these routines are speed and code readability. Allocating * arrays in this man...
matslindh/hiof
rammeverk/patterns/src/main/java/no/lindh/prototypeexample/MyExplicitPrototypeSubClass.java
<filename>rammeverk/patterns/src/main/java/no/lindh/prototypeexample/MyExplicitPrototypeSubClass.java<gh_stars>0 package no.lindh.prototypeexample; public class MyExplicitPrototypeSubClass extends MyExplicitPrototypeConcrete { int subclassValue; MyExplicitPrototypeSubClass() {}; MyExplicitPrototypeSubCla...
vsawchuk/CPDBv2_frontend
test/components/animation/fade-motion.js
import React from 'react'; import { shallow } from 'enzyme'; import { CSSTransition } from 'react-transition-group'; import { withAnimationDisabled } from 'utils/test'; import FadeMotion from 'components/animation/fade-motion'; describe('FadeMotion components', function () { const children = () => <div className='...
phillydorn/CAProject2
app/server/index.js
const Webpack_isomorphic_tools = require('webpack-isomorphic-tools'); const project_base_path = require('path').resolve(__dirname, '..'); global.webpack_isomorphic_tools = new Webpack_isomorphic_tools(require('../../webpack-isomorphic-tools-configuration')) .server(project_base_path, () => { require('./server.j...
xiaoxiaosaohuo/clappr
test/playbacks/html5_video_spec.js
import HTML5Video from 'playbacks/html5_video' import Events from 'base/events.js' describe('HTML5Video playback', () => { it('checks if it can play a resource', () => { expect(HTML5Video.canPlay('')).to.be.false expect(HTML5Video.canPlay('resource_without_dots')).to.be.false expect(HTML5Video.canPlay('h...
luisdiasdev/simple-social-network
backend/src/test/java/br/com/agateownz/foodsocial/modules/post/controller/FeedControllerTest.java
package br.com.agateownz.foodsocial.modules.post.controller; import br.com.agateownz.foodsocial.config.ApplicationProfiles; import br.com.agateownz.foodsocial.modules.post.FeedMockBuilders.FeedResponseMock; import br.com.agateownz.foodsocial.modules.post.service.FeedService; import br.com.agateownz.foodsocial.modules....
qinjidong/EasyMPlayer
mplayer/libmpdemux/demux_nsv.c
/* * Nullsoft Streaming Video demuxer * copyright (c) 2004 by <NAME> <<EMAIL>> * Based on A'rpis G2 work * * seeking and PCM audio not yet supported * PCM needs extra audio chunk "miniheader" parsing * * This file is part of MPlayer. * * MPlayer is free software; you can redistribute it and/or modify * it un...
YeWR/PianoRoomReservationSystem
back_end/app.js
<reponame>YeWR/PianoRoomReservationSystem const Koa = require("koa"); const app = module.exports = new Koa(); const xmlParser = require('koa-xml-body'); const bodyParser = require("koa-bodyparser"); const views = require("./views/views"); const views_manage = require("./views/views_manage"); const cors = require("koa2-...
bot-motion/gap_sdk
rtos/openmp/include/omp.h
<reponame>bot-motion/gap_sdk int omp_get_thread_num(void);
DeeStarks/infiniti
application/services/staff.go
<filename>application/services/staff.go<gh_stars>1-10 package services import ( "encoding/json" "fmt" "net/http" "github.com/deestarks/infiniti/adapters/framework/db" "github.com/deestarks/infiniti/application/core" "github.com/deestarks/infiniti/utils" ) type Staff struct { dbPort db.DBPort corePort core...
LukaszZachariasz/IUI
back-end/food-order-back/src/main/java/com/foodorderback/controller/ShoppingCartResourceController.java
<filename>back-end/food-order-back/src/main/java/com/foodorderback/controller/ShoppingCartResourceController.java<gh_stars>1-10 package com.foodorderback.controller; import com.foodorderback.model.CartItem; import com.foodorderback.model.Food; import com.foodorderback.model.ShoppingCart; import com.foodorderback.model...
kmewhort/git.legal-codeclimate
spec/services/php_composer_lock/parse_spec.rb
<reponame>kmewhort/git.legal-codeclimate require 'rails_helper' describe Service::PhpComposerLock::Parse do let(:package_json_path) { Rails.root.join('spec','fixtures','composer_lock','composer.lock') } let(:file_contents) { IO.read(package_json_path) } subject { Service::PhpComposerLock::Parse.call(file_content...
yufeiwang63/ROLL
scripts/test_multiworld.py
<filename>scripts/test_multiworld.py<gh_stars>10-100 import multiworld import gym import cv2 from multiworld.envs.mujoco.cameras import ( sawyer_init_camera_full, sawyer_init_camera_zoomed_in, sawyer_pick_and_place_camera, sawyer_door_env_camera_v0 ) from multiworld.core.image_env import ImageEnv impo...
radishengine/drowsy
mac/filetypes/open_VWPR.js
define(function() { 'use strict'; function open(item) { item.getSubitem(/VWSC/) .then(function(vwsc) { vwsc.populate() .then(function() { var testScreen = document.createElement('CANVAS'); testScreen.width = 640; testScreen.height = 400; var ctx = testScreen.get...
sergey-v-sedov/jmix-docs
content/modules/ldap/examples/ex1/src/main/java/ldap/ex1/service/MyUserSynchronizationStrategy.java
<reponame>sergey-v-sedov/jmix-docs package ldap.ex1.service; import io.jmix.ldap.userdetails.AbstractLdapUserDetailsSynchronizationStrategy; import ldap.ex1.entity.User; import org.springframework.ldap.core.DirContextOperations; import org.springframework.stereotype.Component; // tag::strategy[] @Component("ldap_MyUs...
Jignesh1996/bcmd-web
app/testing/test_bcmd_model.py
from bayescmd.bcmdModel.bcmd_model import ModelBCMD from bayescmd.util import * from nose.tools import assert_true, assert_equal import numpy.testing as np_test import filecmp import os BASEDIR = findBaseDir('bcmd-web', verbose=True) print("BASEDIR:\t%s" % os.path.abspath(BASEDIR)) TESTDIR = os.path.abspath(os.path.di...
mrbartrns/programmers-algorithm
lv1/whitespace.py
def solution(s): answer = '' index = 0 for i in range(len(s)): if index % 2 == 0: answer += s[i].upper() else: answer += s[i].lower() if s[i] == ' ': index = 0 else: index += 1 return answer print(solution('name hi'))
Li-YangZhong/professional-javascript-for-web-developers
Chapter11PromisesAndAsyncFunctions/Promises/PromiseChainingAndComposition/ParallelPromiseCompositionWithPromiseallAndPromiserace/Promiserace/PromiseraceExample02.js
// Resolve occurs first, reject in timeout ignored let p1 = Promise.race([ Promise.resolve(3), new Promise((resolve, reject) => setTimeout(reject, 1000)) ]); setTimeout(console.log, 0, p1); // Promise <resolved>: 3 // Reject occurs first, resolve in timeout ignored let p2 = Promise.race([ Promise.reject(4), n...
chouer19/enjoyDriving
include/ibeosdk/database/DbInterfaceT.hpp
<filename>include/ibeosdk/database/DbInterfaceT.hpp //====================================================================== /*! \file DbInterfaceT.hpp * * \copydoc Copyright * \author <NAME> (kb) * \date Feb 9, 2016 *///------------------------------------------------------------------- //========================...
liuhpleon/RubyLCPractice
leetcode/256_Paint_House.rb
# Leetcode 256 class PaintHouse def min_cost(costs) return 0 if costs.empty? res = costs.shift costs.each do |cost| next_res = [] next_res[0] = cost[0] + [res[1], res[2]].min next_res[1] = cost[1] + [res[0], res[2]].min next_res[2] = cost[2] + [res[0], res[1]].min res = next_...
timja/ecutest-plugin
src/test/java/de/tracetronic/jenkins/plugins/ecutest/util/EnvUtilTest.java
/* * Copyright (c) 2015-2019 TraceTronic GmbH * * SPDX-License-Identifier: BSD-3-Clause */ package de.tracetronic.jenkins.plugins.ecutest.util; import hudson.EnvVars; import org.junit.Test; import static org.junit.Assert.assertEquals; /** * Unit tests for {@link EnvUtil}. * * @author <NAME> <<EMAIL>> */ publ...
Alexander3006/TBQForms_2.0
TBQForms_client/src/Components/Footer.js
<filename>TBQForms_client/src/Components/Footer.js import React from 'react'; import '../styles/footer.css'; class Footer extends React.Component { constructor(props) { super(props); } render() { return ( <div className="footer"> <a className = "footer_link" href="">About Us</a> <a...
prafullkotecha/waltz
waltz-ng/client/user/routes.js
<filename>waltz-ng/client/user/routes.js /* * Waltz - Enterprise Architecture * Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project * See README.md for more information * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License....
dev-senior-com-br/senior-hcm-java
src/main/java/br/com/senior/hcm/payroll/pojos/Actingtype.java
/* * Folha de Pagamento * HCM - Folha de pagamento * * * Contact: <EMAIL> * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ package br.com.senior.hcm.payroll.pojos; import java.util.Objects...
TeamSPoon/CYC_JRTL_with_CommonLisp_OLD
platform/main/server-4u/com/cyc/cycjava/cycl/inference/harness/forward_rule_propagation.java
<reponame>TeamSPoon/CYC_JRTL_with_CommonLisp_OLD package com.cyc.cycjava.cycl.inference.harness; import static com.cyc.cycjava.cycl.constant_handles.reader_make_constant_shell; import static com.cyc.cycjava.cycl.el_utilities.literal_arg0; import static com.cyc.cycjava.cycl.el_utilities.literal_predicate; import stati...
zhangjunfang/eclipse-dir
nspExt/src/main/java/cache/cn/newcapec/framework/plugins/aspect/FlushCacheAspect.java
<filename>nspExt/src/main/java/cache/cn/newcapec/framework/plugins/aspect/FlushCacheAspect.java package cn.newcapec.framework.plugins.aspect; import java.lang.reflect.Method; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.aspectj.lang.ProceedingJoinPoint; import org.as...
huylg/apollo-react-js
final/server/node_modules/apollo/lib/git.js
"use strict"; var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySy...
jcarreira/cirrus-kv
src/object_store/LRUEvictionPolicy.cpp
#include "object_store/LRUEvictionPolicy.h" #include "object_store/FullCacheStore.h" namespace cirrus { LRUEvictionPolicy::LRUEvictionPolicy(size_t num_objs) : EvictionPolicy(num_objs) { } LRUEvictionPolicy::~LRUEvictionPolicy() { } bool LRUEvictionPolicy::evictIfNeeded(FullCacheStore& fc) { if (fc->getNumO...
VidolVidolov/SoftuniFundamentals
LadyBugs.js
<gh_stars>0 function ladyBugs(input) { let field = input.shift(); let ladyBugsField = []; for (let i = 0; i < field; i++) { ladyBugsField[i] = i + ''; } let startPositions = input.shift(); let innerCounter = 0; let separatePositions = []; for (let i = 0; i < startPositions.le...
claytonjwong/leetcode-js
136_single_number.js
<reponame>claytonjwong/leetcode-js /* * 136. Single Number * * Q: https://leetcode.com/problems/single-number/ * A: https://leetcode.com/problems/single-number/discuss/559253/Javascript-and-C%2B%2B-solutions */ /** * @param {number[]} nums * @return {number} */ let singleNumber = (A, ans = 0) => { A.forE...
forgotter/Snippets
c++/discrete_root.cpp
/// Name: DiscreteRoot /// Description: Computes solution to equation of form x^k = b%m where m is prime. /// Detail: Maths, Number Theory /// Guarantee: } // DiscreteRoot /// Dependencies: baby_step_giant_leap, primitive_root // reference : https://cp-algorithms.com/algebra/discrete-root.html vector<int> discr...
jm90m/pigzbe-app
src/app/components/modal/index.js
<filename>src/app/components/modal/index.js import React from 'react'; import {View, Image} from 'react-native'; import styles from './styles'; export default ({children, noBird=false}) => ( <View style={styles.overlay}> <View> {!noBird && <Image source={require('./images/bird.p...
cypherdotXd/o3de
Code/Editor/Controls/BitmapToolTip.cpp
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ // Description : Tooltip that displays bitmap. #include "EditorDefs.h" #include "BitmapToolTip...
HeRaNO/OI-ICPC-Codes
Codeforces/Gym102346H.cpp
#include <bits/stdc++.h> #define ll long long #define ls id<<1 #define rs id<<1|1 #define mem(a,b) memset(a,b,sizeof(a)) #define pii pair<int,int> #define pb(x) push_back(x) using namespace std; const int N=300050; const int inf=0x3f3f3f3f; const ll mod=1e9+7; double n,v; int a[N]; int main() { cin>>n>>v; n=n*v; fo...
cotra/Java-test
ssm-stage2/src/main/java/com/lubuwei2/ssm/modules/security/dto/Register.java
<filename>ssm-stage2/src/main/java/com/lubuwei2/ssm/modules/security/dto/Register.java package com.lubuwei2.ssm.modules.security.dto; public class Register { private Integer flag; private Long uid; public Integer getFlag() { return flag; } public void setFlag(Integer flag) { this....
lechium/iPhoneOS_12.1.1_Headers
Applications/MobileSlideShow/PHImportDelegate-Protocol.h
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // @class PHImportSource; @protocol PHImportDelegate - (void)removedImportSource:(PHImportSource *)arg1; - (void)addedImportSource:(PHImportSource *)arg1; @end
TomographyLab/NiftyRec
teem/src/nrrd/cc.c
/* Teem: Tools to process and visualize scientific data and images Copyright (C) 2011, 2010, 2009 University of Chicago Copyright (C) 2008, 2007, 2006, 2005 <NAME> Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah This library is free software; you can redistribute it...
bbstilson/scalafx
scalafx/src/main/scala/scalafx/scene/chart/Axis.scala
/* * Copyright (c) 2011-2019, ScalaFX Project * 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, this lis...
anchoranalysis/anchor-plugins
anchor-plugin-mpp-feature/src/main/java/org/anchoranalysis/plugin/mpp/feature/bean/memo/ind/SurfaceSizeMaskNonZero.java
/*- * #%L * anchor-plugin-mpp-feature * %% * Copyright (C) 2010 - 2020 <NAME>, ETH Zurich, University of Zurich, Hoffmann-<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 w...
gizatupu/hedera-services
hedera-node/src/test/java/com/hedera/services/grpc/marshalling/ImpliedTransfersMarshalTest.java
package com.hedera.services.grpc.marshalling; /*- * ‌ * Hedera Services Node * ​ * Copyright (C) 2018 - 2021 <NAME>, 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 * * ...
Ks89/BYAManager
src/main/java/it/stefanocappa/gui/splashscreen/SplashScreen.java
/* Copyright 2011-2015 <NAME> 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 applicable law or agreed to in writing, software dis...
grasscy/gemini
httpclient/request_test.go
package httpclient import ( "context" "encoding/json" "net/http" "net/http/httptest" "testing" ) type Response struct { ErrCode int `json:"errCode"` ErrMsg string `json:"errMsg"` Data *struct { Name string `json:"name"` Age int `json:"age"` } `json:"data"` } var s = httptest.NewServer(http.Ha...
mayurhole/optaplanner
optaplanner-core/src/test/java/org/optaplanner/core/impl/solver/termination/BestScoreTerminationTest.java
<gh_stars>10-100 /* * Copyright 2014 Red Hat, Inc. and/or its affiliates. * * 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 * * Unle...
tangweikun/leetcode
src/1437-check-if-all-1s-are-at-least-length-k-places-away/index.js
/** * @param {number[]} nums * @param {number} k * @return {boolean} */ var kLengthApart = function (nums, k) { const stack = []; for (let i = 0; i < nums.length; i++) { if (nums[i] === 1) { stack.push(i); } if (stack.length > 1) { if (stack[stack.length - 1] - stack[stack.length - 2] <...
rafaelcardoso/design-system
packages/build/postcss/postcss-css-var-sass-var.js
const postcss = require('postcss') const dashify = require('../css/dashify') const createSassVar = (decl, options) => { const node = postcss.parse(` $${dashify(decl.prop.replace('--', ''))}: ${decl.value}; `) decl.root().insertAfter(decl.root(), node) } module.exports = postcss.plugin('css-var-selectors', optio...
djmisterjon/PIXI.ProStageMap
js/core/polyfill.js
//============================================================================= // hack JsExtensions snippet polyfill to class //============================================================================= // see: C:\Users\InformatiqueLepage\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_module...
vineetit1991/assetgraph
testdata/transforms/bundleSystemJs/assetPlugin/main.js
<reponame>vineetit1991/assetgraph var fooOrBarTxt = require('./test-#{fooOrBar}.txt'); var iframe = document.createElement('iframe'); iframe.src = fooOrBarTxt; document.body.appendChild(iframe);
opencounter/converge
graph/merge_duplicates.go
// Copyright © 2016 Asteris, 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to ...
PopCap/GameIdea
Engine/Source/Runtime/Engine/Private/PhysicsEngine2D/Box2DIntegration.h
<gh_stars>0 // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #pragma once #if WITH_BOX2D #include <Box2D/Box2D.h> ////////////////////////////////////////////////////////////////////////// // Tick function that starts the physics tick struct FStartPhysics2DTickFunction : public FTickFunction { struct ...
knmcguire/gap_sdk
tools/gap8-openocd/src/target/target_request.h
/*************************************************************************** * Copyright (C) 2007 by <NAME> * * <EMAIL> * * * * Copyright (C) 2007,2008 <...
MalteBerlin/TerraMobile
app/src/main/java/br/org/funcate/terramobile/model/geomsource/SFSLayer.java
package br.org.funcate.terramobile.model.geomsource; import org.opengis.feature.simple.SimpleFeature; import org.osmdroid.bonuspack.kml.KmlFeature; import org.osmdroid.bonuspack.kml.KmlFolder; import java.util.List; import br.org.funcate.terramobile.model.gpkg.objects.GpkgLayer; /** * Created by bogo on 15/06/15. ...
saledouble/JacpFX
JacpFX-TestCases/src/main/java/org/jacp/test/main/ApplicationLauncherMissingComponentViewAnnotation.java
/************************************************************************ * * Copyright (C) 2010 - 2014 * * [ApplicationLauncher.java] * JACPFX Project (https://github.com/JacpFX/JacpFX/) * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exce...
liuwake/HalconPractise
HALCON-12.0/include/cpp/HSocket.h
<reponame>liuwake/HalconPractise /***************************************************************************** * HSocket.h ***************************************************************************** * * Project: HALCON/C++ * Description: Class HSocket * * (c) 1996-2014 by MVTec Software GmbH * ...
huangninghao/HexIntegrationTool
base/src/main/java/com/hx/base/mInterface/router/HexRouter.java
package com.hx.base.mInterface.router; import android.app.Activity; import android.content.Context; import com.alibaba.android.arouter.facade.Postcard; import com.alibaba.android.arouter.facade.callback.NavigationCallback; import com.alibaba.android.arouter.launcher.ARouter; import com.hx.base.mInterface.config.HexBu...
bakuzan/mylist
public/modules/orders/services/orders-query.service.js
(function() { 'use strict'; angular.module('orders').factory('Orders', OrdersFactory); OrdersFactory.$inject = ['$resource']; function OrdersFactory($resource) { return $resource('orders/:orderId', { orderId: '@_id' }, { update: { method: 'PUT' } }); } })();
TampereTC/tre-smartcity-keystone
keystone/common/manager.py
<filename>keystone/common/manager.py # Copyright 2012 OpenStack Foundation # # 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 requi...
jenfly/atmos
testing/testing-variables-streamfunction.py
import numpy as np import matplotlib.pyplot as plt import xray import atmos as atm # ---------------------------------------------------------------------- # Monthly climatology yearstr = '1979-2015' varnms = ['U', 'V'] datadir = atm.homedir() + 'datastore/merra/monthly/' filestr = datadir + 'merra_%s_%s.nc' files =...
ielomariala/Hex-Game
gsl-2.6/doc/examples/fitreg.c
<filename>gsl-2.6/doc/examples/fitreg.c #include <gsl/gsl_math.h> #include <gsl/gsl_vector.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_rng.h> #include <gsl/gsl_randist.h> #include <gsl/gsl_multifit.h> int main() { const size_t n = 1000; /* number of observations */ const size_t p = 2; /* number of model pa...
stas-vilchik/bdd-ml
data/5450.js
<reponame>stas-vilchik/bdd-ml<gh_stars>0 { throw new Error("Cannot set read-only property."); }
HeRaNO/OI-ICPC-Codes
NOI[OpenJudge]/2.6/2.6.1481.cpp
//Code By HeRaNO #include <cstdio> #include <cstring> #define MAXN 50010 using namespace std; int a[MAXN]; int lmax[MAXN], rmax[MAXN]; int left[MAXN], right[MAXN]; int ans; int n, t; int mymax(int a, int b) { return a > b ? a : b; } int main() { scanf("%d", &t); while (t--) { memset(lmax, 0, sizeof(lmax)); m...
stori-es/stories
dashboard/src/main/java/org/consumersunion/stories/server/api/rest/converters/UserPostConverter.java
package org.consumersunion.stories.server.api.rest.converters; import org.consumersunion.stories.common.shared.dto.post.UserPost; import org.consumersunion.stories.common.shared.model.User; import org.springframework.stereotype.Component; @Component public class UserPostConverter extends AbstractConverter<UserPost, U...
jhermsmeier/osrm-backend
unit_tests/library/waypoint_check.hpp
#ifndef OSRM_UNIT_TEST_WAYPOINT_CHECK #define OSRM_UNIT_TEST_WAYPOINT_CHECK #include "osrm/coordinate.hpp" #include "osrm/json_container.hpp" #include "util/exception.hpp" using namespace osrm; inline bool waypoint_check(json::Value waypoint) { if (!waypoint.is<mapbox::util::recursive_wrapper<util::json::Object>...
benjinx/Toon
Engine/Public/Toon/Camera.hpp
#ifndef TOON_CAMERA_H #define TOON_CAMERA_H #include <Toon/Config.hpp> #include <Toon/Entity.hpp> #include <Toon/Math.hpp> #include <Toon/String.hpp> namespace Toon { enum CameraMode { Perspective, Orthographic, }; // enum CameraMode class TOON_ENGINE_API Camera : public Entity { public: DISALLOW_COPY...
xzhan96/chromium.src
chrome/browser/extensions/api/developer_private/developer_private_api.cc
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/extensions/api/developer_private/developer_private_api.h" #include <stddef.h> #include <utility> #include "base/bind.h" #in...
LioBuitrago/pp_2020_autumn_informatics
modules/task_3/alibekov_m_component_labeling/component_labeling.h
// Copyright 2020 <NAME> #ifndef MODULES_TASK_3_ALIBEKOV_M_COMPONENT_LABELING_COMPONENT_LABELING_H_ #define MODULES_TASK_3_ALIBEKOV_M_COMPONENT_LABELING_COMPONENT_LABELING_H_ #include <vector> #include <utility> std::pair<std::vector<int>, int> component_labeling_sequential(const std::vector<int>& image, ...
WDCDevTeam/jace-dps-express
src/modules/dj-dps-commands/src/service/data/sota-covid/fetch-data.js
<gh_stars>1-10 let series = require("./series-meta") let { flatten} = require("lodash") series = series.map( s => s.values.map( v => ({ column: v.field, category: s.category, title: v.title, description: `${s.category}: ${v.title}` }))) console.log(JSON.stringify(series, null, " "))
ppYoung/tdesign-mobile-vue
site/web/test-coverage.js
module.exports = { "": "93.84%", "actionSheet": "24.48%", "actionSheet/demos": "0%", "actionSheet/style": "0%", "avatar": "91.17%", "avatarGroup": "35.89%", "avatarGroup/style": "0%", "avatar/demos": "0%", "avatar/style": "0%", "backTop": "93.93%", "backTop/demos": "0%", "backTop/style": "0%", ...
ani03sha/OnlineJudge
LeetCode/src/main/java/org/redquark/onlinejudges/leetcode/math/RandomPickIndex.java
<filename>LeetCode/src/main/java/org/redquark/onlinejudges/leetcode/math/RandomPickIndex.java<gh_stars>10-100 package org.redquark.onlinejudges.leetcode.math; import java.util.ArrayList; import java.util.List; import java.util.Random; public class RandomPickIndex { private final int[] nums; private final Ran...
praekelt/molo.surveys
molo/surveys/migrations/0012_add_terms_and_conditions_page.py
<gh_stars>0 # -*- coding: utf-8 -*- # Generated by Django 1.9.13 on 2017-09-27 10:12 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import modelcluster.fields import molo.core.blocks import molo.core.models import wagtail.core.blocks import wagtail.cor...
kokabe2/malkt
src/isr/utkernel/basic_isr.c
<gh_stars>0 // Copyright(c) 2020 <NAME> // This software is released under the MIT License, see LICENSE. #include "basic_isr.h" #include "bleu/v1/heap.h" #include "utkernel/utkernel.h" typedef struct { IsrInterfaceStruct impl; int number; int level; } BasicIsrStruct, *BasicIsr; inline static void...
NEKERAFA/Soul-Tower
src/sprites/HectorTrigger.py
<filename>src/sprites/HectorTrigger.py # -*- coding: utf-8 -*- import pygame, os from src.sprites.ConditionalTrigger import * class HectorTrigger(ConditionalTrigger): def activate(self, player): if player.killedFriend: self.dialogueFile = self.dialogueList[0] else: ...
mderijk/codenames
website/server/codenames/game/twoplayergame.py
<reponame>mderijk/codenames<gh_stars>1-10 from . import twoplayergame class LocalCoopGame(twoplayergame.TwoPlayerGame): def __init__(self, users, possible_words, teams=None): pass
uiters/c3t-service
module/config/index.js
const tokenConfig = require('./token') const {privatekey} = require('./common') const {logDir} = require('./logger') const dbConfig = require('./mongo') module.exports = {tokenConfig, privatekey, logDir, dbConfig}
jihwahn1018/ovirt-engine
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/AddSANStorageDomainParameters.java
<reponame>jihwahn1018/ovirt-engine package org.ovirt.engine.core.common.action; import java.util.HashSet; import java.util.Set; import org.ovirt.engine.core.common.businessentities.StorageDomainStatic; public class AddSANStorageDomainParameters extends StorageDomainManagementParameter { private static final long...
andr92/neptune
core.api/src/main/java/ru/tinkoff/qa/neptune/core/api/properties/enums/EnumPropertySuppler.java
<reponame>andr92/neptune package ru.tinkoff.qa.neptune.core.api.properties.enums; import ru.tinkoff.qa.neptune.core.api.properties.PropertySupplier; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import static com.google.common.reflect.TypeToken.of; import static java.lang.String.format; ...
heropan/Elastos.ELA.SPV.Cpp
SDK/WalletCore/ElaWebWalletJson.cpp
// Copyright (c) 2012-2018 The Elastos Open Source Project // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "ElaWebWalletJson.h" namespace Elastos { namespace ElaWallet { ElaWebWalletJson::ElaWebWalletJson() { } ...
holman/tissues
vendor/octopi-0.2.9/lib/octopi/issue_set.rb
<gh_stars>1-10 require File.join(File.dirname(__FILE__), "issue") class Octopi::IssueSet < Array include Octopi attr_accessor :user, :repository def initialize(array) unless array.empty? self.user = array.first.user self.repository = array.first.repository super(array) end end ...
tgodzik/intellij-community
java/java-tests/testData/inspection/notNullField/quickFix/afterRemoveAnnotation.java
<reponame>tgodzik/intellij-community<filename>java/java-tests/testData/inspection/notNullField/quickFix/afterRemoveAnnotation.java // "Remove not-null annotation" "true" import org.jetbrains.annotations.NotNull; class X { String x; }
scdoja/suum
client/src/components/Form/Form.js
import React, { useState } from 'react'; import { useForm } from 'react-hook-form'; import '../Button/Button.scss'; import './Form.scss'; import axios from 'axios'; import { useHistory } from "react-router-dom"; export const Form = ({ toggleForm }) => { const history = useHistory(); // type FormValues = { // ...
cyq7on/batteryhub
app/src/main/java/com/hmatalonga/greenhub/managers/sampling/DataEstimator.java
/* * Copyright (C) 2016 <NAME> & <NAME> * * 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 applicable law or a...
dhineshkumarmcci/Catena-Arduino-Platform
src/lib/samd/CatenaRTC.cpp
/* catenartc.cpp Mon Nov 26 2018 15:02:35 chwon */ /* Module: catenartc.cpp Function: CatenaRTC class Version: V0.12.0 Mon Nov 26 2018 15:02:35 chwon Edit level 3 Copyright notice: This file copyright (C) 2016, 2018 by MCCI Corporation 3520 Krums Corners Road Ithaca, NY 14850 An unpublished work. Al...
mghgroup/Glide-Browser
ash/clipboard/clipboard_history_helper_unittest.cc
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ash/clipboard/clipboard_history_helper.h" #include <string> #include <unordered_map> #include "base/optional.h" #include "base/pickle.h" #incl...
mghgroup/Glide-Browser
tools/perf/core/results_processor/processor.py
# Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Implements the interface of the results_processor module. Provides functions to process intermediate results, and the entry point to the standalone versi...
yavuzahmet1/Patika
PatikaJava102Lambda/src/Main.java
<reponame>yavuzahmet1/Patika public class Main { public static void main(String[] args) { // Java 8'den öncesi Runnable runnable1 = new Runnable() { @Override public void run() { System.out.println("Before 1.8"); } }; r...
vusec/firestarter
llvm/passes/hybinline/HybInlinePass.cpp
<gh_stars>1-10 /* Description: * * This pass makes preparations towards enabling hybrid transactions * and recovery mechanisms on target application. * After HybPrepPass marks library calls, call instructions and local variables of * functions with necessary metadata, this pass inlines the call instructions to ...
touxiong88/92_mediatek
packages/apps/RCSe/core/src/com/orangelabs/rcs/core/ims/protocol/sip/SipTransactionContext.java
/******************************************************************************* * Software Name : RCS IMS Stack * * Copyright (C) 2010 France Telecom S.A. * * 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 cop...
CesarAdan1/DaCodes-Pokemon
webpack.config.prod.js
const merge = require('webpack-merge') const TerserPlugin = require('terser-webpack-plugin'); const baseConfig = require('./webpack.config.base') module.exports = merge(baseConfig, { mode: 'production', optimization: { minimizer: [ new TerserPlugin({ cache: true, parallel: true, s...
rochakchauhan/commcare-hq
corehq/apps/userreports/expressions/__init__.py
import copy from django.conf import settings from django.utils.module_loading import import_string from corehq.apps.userreports.expressions.factory import ExpressionFactory def get_custom_ucr_expressions(): custom_ucr_expressions = copy.copy(settings.CUSTOM_UCR_EXPRESSIONS) for path_to_expression_lists in ...
leocamelo/tic_tac_toe_c
src/grid.c
#include <stdlib.h> #include <string.h> #include <math.h> #include "grid.h" static char *grid_row_separator(void) { int i; char *separator = malloc(sizeof(char) * (BOARD_SIZE * 4 + 2)); strcpy(separator, "\n"); for (i = 0; i < BOARD_SIZE; i++) { if (i) strcat(separator, "+"); strcat(separator, "===")...
gx19970920/pikascript
src/boot/demo06-pikamain/main.c
<reponame>gx19970920/pikascript /* this demo shows the usage of method */ #include "pikaScript.h" #include <stdio.h> void obj_runWithInfo(PikaObj *self, char *cmd) { printf(">>> %s\r\n", cmd); obj_run(self, cmd); } int main() { PikaObj *pikaMain = pikaScriptInit(); /* user input buff */ char input...
dsofowote/KW-Tool
keywordTool/pubfiles/src/code/justrunlah/126825/default.js
integration.meta = { 'sectionID' : '126825', 'siteName' : 'Just Run Lah - Smartphone - (Asia)', 'platform' : 'smartphone' }; integration.testParams = { 'mobile_resolution' : [375] }; integration.flaggedTests = []; integration.params = { 'mf_siteId' : '707097', 'plr_FluidAnchor': true, 'plr_Fluid':...