repo_name
stringlengths
6
101
path
stringlengths
4
300
text
stringlengths
7
1.31M
MatthewAlbrecht/album-dojo.api
api/graphql/types/RolePermissionType.js
<reponame>MatthewAlbrecht/album-dojo.api /* eslint-disable global-require */ const { GraphQLObjectType, GraphQLString, GraphQLID } = require('graphql') const { Permission, Role } = require('../../models') const RolePermissionType = new GraphQLObjectType({ name: 'RolePermission', description: 'This represents an Ro...
hwang-pku/Strata
modules/math/src/test/java/com/opengamma/strata/math/impl/function/special/NaturalLogGammaFunctionTest.java
<filename>modules/math/src/test/java/com/opengamma/strata/math/impl/function/special/NaturalLogGammaFunctionTest.java /* * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.strata.math.impl.function.special; import ...
benkonrath/dataset-dashboard
pkg/helpers/validators/path.go
<reponame>benkonrath/dataset-dashboard package validators import ( "regexp" "github.com/Suburbia-io/dashboard/pkg/errors" ) var ( pathRegexp = regexp.MustCompile(`^[a-z0-9\-]+(?:/[a-z0-9\-]+)*$`) ) func Path(path string) (string, error) { if path == "" { return path, nil } if len(path) > 100 { return "",...
lzefforts/myjava
src/main/java/org/study/iie/render/impl/JsonRender.java
package org.study.iie.render.impl; import org.study.iie.base.IbeContext; import org.study.iie.base.IbeRequest; import org.study.iie.render.BaseRender; public class JsonRender extends BaseRender { @Override public IbeContext analysis(IbeRequest request) { return null; } @Override public Ib...
beepsend/beepsend-iOS
BeepSendApplication/BeepSendApplication/Views/HLRView/BSHLRView.h
<filename>BeepSendApplication/BeepSendApplication/Views/HLRView/BSHLRView.h // // BSHLRView.h // BeepSendApplication // // Created by <NAME> on 7/23/14. // Copyright (c) 2014 BeepSend. All rights reserved. // #import <UIKit/UIKit.h> #import "BSTextFieldCustomTextInset.h" @interface BSHLRView : UIView @property ...
cmonsol/digitalmoney
src/cryptonote_core/Transaction.cpp
<reponame>cmonsol/digitalmoney // Copyright (c) 2011-2015 The Cryptonote developers // Copyright (c) 2014-2015 XDN developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "ITransaction.h" #include "TransactionExt...
ykyuen/dockerbeat
vendor/github.com/elastic/beats/vendor/github.com/StackExchange/wmi/wmi_test.go
<filename>vendor/github.com/elastic/beats/vendor/github.com/StackExchange/wmi/wmi_test.go // +build windows package wmi import ( "encoding/json" "fmt" "reflect" "runtime" "runtime/debug" "sync" "testing" "time" ) func TestQuery(t *testing.T) { var dst []Win32_Process q := CreateQuery(&dst, "") err := Quer...
hellobagus/ifcasplus_web
js/highcharts-master/samples/issues/highcharts-4.2.1/4911-datalabels-overlap-panes/demo.js
<filename>js/highcharts-master/samples/issues/highcharts-4.2.1/4911-datalabels-overlap-panes/demo.js $(function () { QUnit.test('False detection of overlapping labels in different panes', function (assert) { var chart = Highcharts.chart('container', { chart: { type: 'column' ...
Testiduk/gitlabhq
spec/services/award_emojis/copy_service_spec.rb
<reponame>Testiduk/gitlabhq<gh_stars>1000+ # frozen_string_literal: true require 'spec_helper' RSpec.describe AwardEmojis::CopyService do let_it_be(:from_awardable) do create(:issue, award_emoji: [ build(:award_emoji, name: 'thumbsup'), build(:award_emoji, name: 'thumbsdown') ]) end describ...
jameson-mcghee/opni
apis/v1beta1/opnicluster_types.go
<reponame>jameson-mcghee/opni<filename>apis/v1beta1/opnicluster_types.go /* Copyright 2021. 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 re...
bmontans/Proyecto-HAB
marketplace/back/controllers/user/update_password.js
require("dotenv").config(); const bcrypt = require("bcrypt"); const { getConnection } = require("../../db"); const { editPasswordSchema } = require("../../validations/update_password"); const { generateError } = require("../../helpers"); async function updatePassword(req, res, next) { let connection; try { con...
bpdesigns/e-QIP-prototype
node_modules/synesthesia/lib/ranges.js
<reponame>bpdesigns/e-QIP-prototype module.exports = { '1': /1|0/, '100': /100|(?:[1-9]?\d)/, '255': /255|(?:25[0-4]|2[0-4]\d|1\d\d|[1-9]?\d)/, '360': /360|(?:3[0-5]\d|[1-2]\d\d|[1-9]?\d)/ };
T-head-Semi/csi-nn2
tests/validation/equal_i8.c
<gh_stars>1-10 /* * Copyright (C) 2016-2022 T-Head Semiconductor Co., Ltd. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * 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 *...
facebookxx/folly
folly/test/ProducerConsumerQueueBenchmark.cpp
/* * Copyright (c) Facebook, Inc. and 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 * * Unless required by applic...
KevzPeter/Le-epic-programming
Tree/Path Sum II.java
class Solution { public List<List<Integer>> pathSum(TreeNode root, int sum) { List<List<Integer>> result = new ArrayList<List<Integer>>(); if(root == null) return result; List<Integer> l = new ArrayList<Integer>(); l.add(root.val); dfs(root, sum-root.val, result, l); return result...
jingcao80/Elastos
Sources/Elastos/Packages/Apps/Dialer/inc/elastos/droid/dialer/dialpad/SmartDialCursorLoader.h
<reponame>jingcao80/Elastos //========================================================================= // Copyright (C) 2012 The Elastos 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...
sysoutch/emubro
src/main/java/ch/sysout/emubro/ui/SplashScreenWindow.java
<filename>src/main/java/ch/sysout/emubro/ui/SplashScreenWindow.java package ch.sysout.emubro.ui; import java.awt.BasicStroke; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.GradientPaint; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Ins...
timboudreau/ANTLR4-Plugins-for-NetBeans
extraction/src/main/java/org/nemesis/extraction/SingletonEncounters.java
<gh_stars>1-10 /* * Copyright 2016-2019 <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 appli...
ScalablyTyped/SlinkyTyped
m/mongoose/src/main/scala/typingsSlinky/mongoose/mod/Types.scala
<reponame>ScalablyTyped/SlinkyTyped<filename>m/mongoose/src/main/scala/typingsSlinky/mongoose/mod/Types.scala<gh_stars>10-100 package typingsSlinky.mongoose.mod import typingsSlinky.mongodb.mod.Binary import typingsSlinky.mongodb.mod.ObjectID_ import typingsSlinky.mongoose.anon.FlattenMaps import typingsSlinky.mongoos...
mariangibala/gm-ebus
src/store/helpers/moveFunctionsToPrototype.js
<gh_stars>0 'use strict' function moveFunctionsToPrototype(storeConfig, coreModel, instance) { Object.keys(instance).forEach((key) => { if (typeof instance[key] === 'function') { if (coreModel.prototype[key]) { throw new Error( `Store: ${ storeConfig.name } trying to...
ArashBayatDev/VariantSpark
src/main/scala/au/csiro/variantspark/utils/FactorVariable.scala
package au.csiro.variantspark.utils case class FactorVariable(val values:Array[Int], val nCategories:Int, subset:Option[Array[Int]] = None ) { def indices:Iterator[Int] = subset.map(_.toIterator).getOrElse((Range(0, values.length).toIterator)) def counts = { val labelCounts = Array.fill(nCategories)(0) ...
twendelmuth/sonarqube-java-client
src/test/java/io/github/twendelmuth/sonarqube/api/it/create/SonarQubeClientIntegrationTest.java
package io.github.twendelmuth.sonarqube.api.it.create; import static org.junit.Assert.assertNull; import static org.junit.jupiter.api.Assertions.assertAll; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assert...
hzi-bifo/Model-T
traitarm/learning/createMappingFileRefseq.py
speciesFile = "tmp.txt" #speciesFile = "bergeys_data/datasetSpeciesRefSeq.txt" #gemd = "bergeys_data/genome_metadata" bioprojects = "/home/kyra/Arbeit/repositories/traitar-model/learning/bergeys_data/bioprojects_20140115.txt" gemd = "/home/kyra/Arbeit/repositories/traitar-model/learning/bergeys_data/genome_metadata" #o...
sagrath23/jaeger-client-js
src/util.js
import xorshift from 'xorshift' export default class Utils { /** * Determines whether a string contains a given prefix. * * @param {string} text - the string for to search for a prefix * @param {string} prefix - the prefix to search for in the text given. * @return {boolean} - boolean representing whether or no...
skoba/mml-rails
app/views/nodes/show.json.jbuilder
json.extract! @node, :path, :atcode, :rmclass, :txt_value, :int_value, :flt_value, :created_at, :updated_at
Kirishikesan/haiku
headers/os/app/MessageQueue.h
/* * Copyright 2001-2014 Haiku, Inc. All rights reserved. * Distributed under the terms of the MIT License. */ #ifndef _MESSAGE_QUEUE_H #define _MESSAGE_QUEUE_H #include <Locker.h> #include <Message.h> // For convenience class BMessageQueue { public: BMessageQueue(); virtual ~BMessageQueue(); ...
App-Procurement/service-api-requisition
src/test/java/com/synectiks/procurement/business/service/CommitteeServiceTest.java
<filename>src/test/java/com/synectiks/procurement/business/service/CommitteeServiceTest.java package com.synectiks.procurement.business.service; import static org.assertj.core.api.Assertions.assertThat; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Optional; import org...
kajMork/micro_ros_arduino
src/tf2_msgs/action/detail/lookup_transform__functions.h
<gh_stars>100-1000 // generated from rosidl_generator_c/resource/idl__functions.h.em // with input from tf2_msgs:action/LookupTransform.idl // generated code does not contain a copyright notice #ifndef TF2_MSGS__ACTION__DETAIL__LOOKUP_TRANSFORM__FUNCTIONS_H_ #define TF2_MSGS__ACTION__DETAIL__LOOKUP_TRANSFORM__FUNCTION...
msk610/Chemtris
core/src/com/bms/chemtris/helpers/WaterSpawner.java
<reponame>msk610/Chemtris package com.bms.chemtris.helpers; import com.badlogic.gdx.graphics.PerspectiveCamera; import com.bms.chemtris.elements.Carbon; import com.bms.chemtris.elements.Element; import com.bms.chemtris.elements.Hydrogen; import com.bms.chemtris.elements.Oxygen; import java.util.Random; /** * Class ...
lol768/mywarwick
functional-test/helpers/UserData.scala
package helpers import com.typesafe.config.Config /** * */ case class UserData(username: String, password: String) object UserData { def apply(c: Config): UserData = UserData( c.getString("username"), c.getString("password") ) }
yalewkidane/epcis
src/main/java/org/oliot/model/oliot/AggregationEventExtension.java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2014.09.15 at 01:39...
arielik/devops-utils
cisco/aci/selectPodPolicy.py
<filename>cisco/aci/selectPodPolicy.py from cobra.model.fabric import RsPodPGrp from createMo import * def input_key_args(msg='\nPlease Select the Policy Group:'): print msg return input_raw_input("Fabric Policy Group Name", required=True) def select_pod_policy(bgp_pods, selected_pod_policy_group, **args):...
factset/enterprise-sdk
code/python/ProcuretoPaySCIM/v1/fds/sdk/ProcuretoPaySCIM/__init__.py
# flake8: noqa """ FactSet SCIM API FactSet's SCIM API implementation. # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ __version__ = "0.20.0" # import ApiClient from fds.sdk.ProcuretoPaySCIM.api_client import ApiClient # import Configurati...
firestuff/storebus
view/filterview_test.go
<gh_stars>0 package view_test import ( "context" "testing" "github.com/firestuff/patchy/view" "github.com/stretchr/testify/require" ) func TestFilterView(t *testing.T) { t.Parallel() ctx, cancel := context.WithCancel(context.Background()) ev := view.NewEphemeralView(ctx, []string{"foo", "bar"}) fv := view...
Endtostart/aaden-pay
pay-service/src/main/java/com/aaden/pay/service/biz/tp/allinpay/vo/RNPA.java
package com.aaden.pay.service.biz.tp.allinpay.vo; import com.thoughtworks.xstream.annotations.XStreamAlias; /** * @Description 通联vo * @author aaden * @date 2017年12月18日 */ @XStreamAlias("RNPA") public class RNPA implements java.io.Serializable { /** * */ private static final long serialVers...
nneesshh/openresty-win32-build
openresty-win32-build/thirdparty/perl5-5.29.6/cpan/Encode/KR/ks_03_t.c
<reponame>nneesshh/openresty-win32-build /* !!!!!!! DO NOT EDIT THIS FILE !!!!!!! This file was autogenerated by: D:\www\_nneesshh_git\openresty-win32-build\openresty-nginx\thirdparty\perl5-5.29.6\miniperl.exe ..\bin\enc2xs -Q -o ks_03_t.c -f ks_03_t.fnm enc2xs VERSION 2.21 */ #include "encode.h" #ifdef __cplu...
tonko2/AtCoder
abc/175/B.py
N = int(input()) L = list(map(int, input().split())) cnt = 0 for i in range(N): for j in range(i+1, N): for k in range(j+1, N): a, b, c = L[i], L[j], L[k] if a == b or b == c or a == c: continue triangle = [a, b, c] triangle.sort() ...
Hacky-DH/pytorch
caffe2/operators/instance_norm_op.h
<filename>caffe2/operators/instance_norm_op.h #ifndef CAFFE2_OPERATORS_INSTANCE_NORM_OP_H_ #define CAFFE2_OPERATORS_INSTANCE_NORM_OP_H_ #include <array> #include "caffe2/core/context.h" #include "caffe2/core/operator.h" #include "caffe2/utils/math.h" namespace caffe2 { template <typename T, class Context> class Ins...
pjoachims/nnuncert
nnuncert/app/uci/data.py
<gh_stars>1-10 from typing import Tuple, Union, Iterable, List, Callable, Dict, Optional import os import copy import pandas as pd import numpy as np from nnuncert.utils.traintest import TrainTestSplit, make_gap_splits, make_tail_splits UCI_DATASETS = ["boston", "concrete", "energy", "kin8nm", "naval","powerplant",...
claudioscheer/praticaII
src/main/java/br/org/gdt/dao/RecExperienciaDAO.java
<reponame>claudioscheer/praticaII package br.org.gdt.dao; import br.org.gdt.model.RecExperiencia; import org.springframework.stereotype.Repository; @Repository("recExperienciaDAO") public class RecExperienciaDAO extends DAO<RecExperiencia> { public RecExperienciaDAO() { classe = RecExperiencia.c...
tamaroning/swc
crates/swc/tests/tsc-references/mixinClassesMembers_es2015.1.normal.js
<gh_stars>1-10 function f1() { let x1 = new Mixed1("hello"); let x2 = new Mixed1(42); let x3 = new Mixed2("hello"); let x4 = new Mixed2(42); let x5 = new Mixed3("hello"); let x6 = new Mixed3(42); let x7 = new Mixed4("hello"); let x8 = new Mixed4(42); let x9 = new Mixed5(); } function...
bhm/Passmaterial
bustibleLibs/src/main/java/com/bustiblelemons/randomuserdotme/logic/OnRandomUsersRetreived.java
<reponame>bhm/Passmaterial package com.bustiblelemons.randomuserdotme.logic; import com.bustiblelemons.model.OnlinePhotoUrl; import com.bustiblelemons.randomuserdotme.model.User; import java.util.List; public interface OnRandomUsersRetreived { public int onRandomUsersRetreived(RandomUserMEQuery query, List<User>...
lechium/tvOS130Headers
System/Library/PrivateFrameworks/InstallCoordination.framework/IXPromotingAppInstallCoordinator.h
/* * This header is generated by classdump-dyld 1.0 * on Tuesday, November 5, 2019 at 2:42:12 AM Mountain Standard Time * Operating System: Version 13.0 (Build 17J586) * Image Source: /System/Library/PrivateFrameworks/InstallCoordination.framework/InstallCoordination * classdump-dyld is licensed under GPLv3, Copyright ...
renovate-bot/java-gkehub
proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureStateOrBuilder.java
<filename>proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureStateOrBuilder.java<gh_stars>1-10 /* * 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 t...
schristakidis/p2ner
p2ner/util/interfacelog.py
<reponame>schristakidis/p2ner<filename>p2ner/util/interfacelog.py # Copyright 2012 <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/licen...
trevorsaunders/studentinsights
spec/controllers/login_activities_controller_spec.rb
require 'rails_helper' RSpec.describe LoginActivitiesController, type: :controller do describe '#index_json' do let!(:pals) { TestPals.create! } def make_request(created_at_or_before:, created_after:) request.env['HTTPS'] = 'on' get :index_json, params: { format: :json, created_a...
mhnvelu/spring-5-bootcamp
spring-pet-clinic/pet-clinic-data/src/test/java/com/spring5/projects/petclinic/services/map/OwnerServiceMapTest.java
<reponame>mhnvelu/spring-5-bootcamp package com.spring5.projects.petclinic.services.map; import com.spring5.projects.petclinic.model.Owner; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import java.util.Set; import static org.junit.jupiter.api.Assertions.*; class OwnerServiceMapTest { ...
mrzarquon/relay-core
pkg/expr/evaluate/errors.go
<reponame>mrzarquon/relay-core package evaluate import ( "errors" "fmt" "reflect" "strings" jsonpath "github.com/puppetlabs/paesslerag-jsonpath" ) var ( ErrUnsupportedLanguage = errors.New("evaluate: unsupported language") ) type UnsupportedValueError struct { Type reflect.Type } var _ jsonpath.Propagatable...
wq/wq.app
packages/leaflet/src/overlays/index.js
<filename>packages/leaflet/src/overlays/index.js import Geojson from './Geojson'; import Highlight from './Highlight'; import Draw from './Draw'; import Accuracy from './Accuracy'; import EsriDynamic from './EsriDynamic'; import EsriFeature from './EsriFeature'; import Wms from './Wms'; export { Geojson, Highlight, Dr...
johnwason/robotraconteur_companion
include/RobotRaconteurCompanion/StdRobDef/StdRobDef_Macros.h
// Reserved for future use #pragma once
VictorAlves99/DevBrosPI-IV
src/main/java/br/com/sistema/rotinas/produtos/CarrinhoBean.java
<gh_stars>0 package br.com.sistema.rotinas.produtos; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Serializable; import java.net.URL; import java.net.URLConnection; import java.util.ArrayList; import java.util.List; ...
UncleLincoln/trainee
Java/src/ScannerTest.java
import java.util.Scanner; public class ScannerTest { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int i = sc.nextInt(); System.out.println("Input"+i); double d = 81.29; int dd = (int)d; String ddd = "81.29"; double dddd = ...
TrashToggled/MinecraftNetwork
Bukkit/src/main/java/com/github/jolice/punish/PunishChatListener.java
<gh_stars>10-100 package com.github.jolice.punish; import lombok.RequiredArgsConstructor; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.AsyncPlayerChatEvent; import io.riguron.system.punishment.PunishmentChecker; import io.riguron.system.punishment.model.ActiveP...
guoshupei/dolphinscheduler
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/utils/ProcessUtils.java
<reponame>guoshupei/dolphinscheduler /* * 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, Ver...
relumesaros/pie-ui
packages/image-cloze-association/demo/config.js
<filename>packages/image-cloze-association/demo/config.js module.exports = { elements: { 'image-cloze-association': '..' }, models: [ { id: '1', element: 'image-cloze-association', image: { src: 'https://app.fluence.net/ia/image/6412223997a34018b15f8512bee6c04c', ...
mtasic85/lambda
vm.c
<reponame>mtasic85/lambda<gh_stars>1-10 #include "vm.h" struct l_vm_t * l_vm_new(void) { struct l_vm_t * vm = (struct l_vm_t *)malloc(sizeof(struct l_vm_t)); return vm; } void l_vm_del(struct l_vm_t * vm) { free(vm); } void l_vm_add_module(struct l_vm_t * vm, struct l_object_t * module) { }
snvc00/aecb-frontend
src/components/ClientInfoTable/index.js
<filename>src/components/ClientInfoTable/index.js export { default } from "./ClientInfoTable";
brianneisler/stutter
src/lang/util/argumentsResolveAllWith.test.js
<filename>src/lang/util/argumentsResolveAllWith.test.js import argumentsResolveAllWith from './argumentsResolveAllWith' describe('argumentsResolveAllWith', () => { test('Resolves basic values to themselves', () => { const context = {} const func = jest.fn(function() { expect(this).toEqual(context) ...
cismet/react-cismap
src/lib/RoutedMap.js
import React from "react"; import PropTypes from "prop-types"; import { Map, ZoomControl, Pane } from "react-leaflet"; import "proj4leaflet"; import proj4 from "proj4"; import "url-search-params-polyfill"; import "@fortawesome/fontawesome-free/js/all.js"; import L from "leaflet"; import "leaflet-editable"; import "leaf...
fxtentacle/stripe-ruby
test/stripe/stripe_object_test.rb
<filename>test/stripe/stripe_object_test.rb require File.expand_path('../../test_helper', __FILE__) module Stripe class StripeObjectTest < Test::Unit::TestCase should "implement #==" do obj1 = Stripe::StripeObject.construct_from({ :id => 1, :foo => "bar" }) obj2 = Stripe::StripeObject.construct_from(...
CasualPokePlayer/ares
ares/gba/cartridge/mrom.cpp
auto Cartridge::MROM::read(u32 mode, n32 address) -> n32 { if(mode & Word) { n32 word = 0; word |= read(mode & ~Word | Half, (address & ~3) + 0) << 0; word |= read(mode & ~Word | Half, (address & ~3) + 2) << 16; return word; } address &= 0x01ff'ffff; if(address >= size) return (n16)(address >>...
MariamMohamedFawzy/Bachelor-GUC
V3/Bachelor Project/src/GUI/Reviews.java
<gh_stars>0 package GUI; import java.awt.Color; import java.awt.Component; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.swing.JTextArea; import javax.swing.SwingUtilities; import javax.swing.table.AbstractTa...
JumHorn/leetcode
Cplus/BattleshipsinaBoard.cpp
#include <vector> using namespace std; class Solution { public: int countBattleships(vector<vector<char>> &board) { if (board.empty() || board[0].empty()) return 0; int M = board.size(), N = board[0].size(), res = 0; for (int i = 0; i < M; ++i) { for (int j = 0; j < N; ++j) { if (board[i][j] == ...
nawawi/LebahFramework
JavaSource/lebah/portal/db/RegisterModule.java
/* ************************************************************************ LEBAH PORTAL FRAMEWORK, http://lebah.sf.net Copyright (C) 2007 <NAME> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public...
cmattey/leetcode_problems
Python/lc_1145_binary_tree_coloring_game.py
# Time: O(n) # Space: O(1), excluding recursion stack else O(height) # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def btreeGameWinningMove(self, root: TreeNode, n: int, x: int) -> b...
LaunixUser/Table
src/main/java/org/ml/table/SetResult.java
<gh_stars>0 /* * The MIT License * * Copyright 2019 Dr. <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 limitation the rights * to use...
sy-yanghuan/Matrix
src/matrix/base/convert.hpp
/* * convert.hpp * * Created on: 2012-6-24 * Author: YH */ #ifndef CONVERT_HPP_ #define CONVERT_HPP_ #include <functional> #include <limits> #include <memory> #include <stdexcept> #include <type_traits> #include <boost/numeric/conversion/converter.hpp> #include <matrix/base/enum_stringi...
Alta-FAPA-Store/fapa-store
api/v1/product/response/get_product.go
<gh_stars>0 package response import ( "go-hexagonal/business/product" ) //GetPetResponse Get pet by ID response payload type GetProductResponse struct { ID int `json:"id"` Name string `json:"name"` Description string `json:"description"` Stock int `json:"stock"` Price int `j...
wenbatman33/pixigame
node_modules/@pixi/filter-displacement/lib/filter-displacement.es.js
<gh_stars>1-10 /*! * @pixi/filter-displacement - v5.2.0 * Compiled Wed, 06 Nov 2019 02:32:43 UTC * * @pixi/filter-displacement is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */ import { Filter } from '@pixi/core'; import { Matrix, Point } from '@pixi/math'; var vertex = "attr...
cwangtf/Learning
src/com/leetcode/LeetCode_416.java
<filename>src/com/leetcode/LeetCode_416.java package com.leetcode; /** * 416. 分割等和子集(medium) * https://leetcode-cn.com/problems/partition-equal-subset-sum/ * 动态规划 * * @author xing_seng * @date 2020/10/11 */ public class LeetCode_416 { }
RGSS3/reruby
ruby-1.8.7/sample/list2.rb
<gh_stars>10-100 # Linked list example -- short version class Point def initialize(x, y) @x = x; @y = y self end def to_s sprintf("%d@%d", @x, @y) end end list1 = [10, 20, Point.new(2, 3), Point.new(4, 5)] list2 = [20, Point.new(4, 5), list1] print("list1:\n", list1.join("\n"), "\n") print("li...
ankurshukla1993/IOT-test
coeey/com/facebook/react/modules/core/Timing$2.java
package com.facebook.react.modules.core; class Timing$2 implements Runnable { final /* synthetic */ Timing this$0; Timing$2(Timing this$0) { this.this$0 = this$0; } public void run() { synchronized (Timing.access$1500(this.this$0)) { if (Timing.access$1600(this.this$0).siz...
Kvazikot/VideoProjects
VideoCube/VideoCubeCV/libs/app7-master/3PartyLibs/qwt-6.1.4/examples/stockchart/legend.cpp
#include "legend.h" #include <qwt_legend_data.h> #include <qwt_text.h> #include <qwt_plot_item.h> #include <qtreeview.h> #include <qlayout.h> #include <qstyle.h> #include <qstandarditemmodel.h> #include <qitemdelegate.h> #include <qpainter.h> static void qwtRenderBackground( QPainter *painter, const QRectF &rect, ...
targetx/fork-mineral-ui
src/library/Text/types.js
/* @flow */ import { ALIGN, APPEARANCE, FONT_WEIGHT } from './constants'; import type { ComponentTheme, ComponentThemeFn, ThemeObj, ThemeValue } from '../themes/types'; type Align = $Keys<typeof ALIGN>; type Appearance = $Keys<typeof APPEARANCE>; type FontWeight = $Keys<typeof FONT_WEIGHT> | number; export t...
romoh/airshipctl
pkg/container/api.go
<reponame>romoh/airshipctl<gh_stars>10-100 /* 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 in ...
MaTriXy/atlas
atlas-aapt-old/frameworks/base/libs/androidfw/tests/ResTable_test.cpp
/* * Copyright (C) 2014 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...
J-Westin/tudat
Tudat/Astrodynamics/MissionSegments/escapeAndCapture.cpp
<filename>Tudat/Astrodynamics/MissionSegments/escapeAndCapture.cpp /* Copyright (c) 2010-2018, Delft University of Technology * All rigths reserved * * This file is part of the Tudat. Redistribution and use in source and * binary forms, with or without modification, are permitted exclusively * under...
pgranstam/codefarm
src/lib/servicecom/lib/controller.js
<gh_stars>0 "use strict"; const qs = require("qs"); const { ensureArray } = require("misc"); const log = require("log"); const { isTokenValidForAccess } = require("auth"); const singleton = require("singleton"); const ROUTE_WILDCARD = "(.*)"; const REQ_TYPE = { HTTP: "http", MB: "mb" }; const DEFAULT_SUPPORT...
monalip/Visual-analytics-tool-for-JVM-execution-traces.
HelloWorld_VA4JVM/jpf-visual/src/main/java/se/kth/tracedata/jpf/FieldInstruction.java
<filename>HelloWorld_VA4JVM/jpf-visual/src/main/java/se/kth/tracedata/jpf/FieldInstruction.java package se.kth.tracedata.jpf; import se.kth.tracedata.Instruction; public abstract class FieldInstruction extends se.kth.tracedata.FieldInstruction { gov.nasa.jpf.vm.bytecode.FieldInstruction jpfFieldinstruction; pu...
Budaoshi/Android-Application-ZJB
app/src/main/java/com/idrv/coach/bean/share/WChatLoginInfo.java
package com.idrv.coach.bean.share; /** * time: 15/7/18 * description: 封装微信登陆实体 * * @author sunjianfei */ public class WChatLoginInfo { private String access_token; private long expires_in; private String refresh_token; private String openid; private String scope; private String unionid; ...
thegoodparty/tgp-webapp
containers/HomePage/saga.js
import { call, put, takeLatest } from 'redux-saga/effects'; import requestHelper from 'helpers/requestHelper'; import { validateEmail } from 'helpers/emailHelper'; import tgpApi from 'api/tgpApi'; import snackbarActions from 'containers/shared/SnackbarContainer/actions'; import types from './constants'; import actions...
arpangs/spikebot-android-v1
app/src/main/java/com/spike/bot/model/Filter.java
<filename>app/src/main/java/com/spike/bot/model/Filter.java package com.spike.bot.model; import java.io.Serializable; import java.util.ArrayList; /** * Created by Sagar on 3/4/18. * Gmail : <EMAIL> */ public class Filter implements Serializable{ private String name; private boolean isChecked; private...
Sahil1515/coding
002_YouTube/codeNcode/DynamicProgramming1/009_subset_sum_OnXsum.cpp
#include<bits/stdc++.h> using namespace std; int main() { int t; cin>>t; while(t--) { int n; cin>>n; int arr[n]; for(int i=0;i<n;i++) cin>>arr[i]; int sum; cin>>sum; bool dp[n+1][sum+1]; memset(dp,false,sizeof(dp)); for(int i=0;i<=n;i++) ...
deplatformr/open-images
pipeline/execute_upload.py
import os import sqlite3 import time import sys from scripts.upload import filecoin_upload workflow_db_path = os.path.join( os.getcwd(), "deplatformr_open_images_workflow.sqlite") interval = 60 def upload(): try: workflow_db = sqlite3.connect(workflow_db_path) cursor = workflow_db.cursor() ...
LukasKalinski/Gravity-Game
View/SpriteManager/WorldBackgroundSpriteManager.h
/////////////////////////////////////////////////////////// // WorldBackgroundSpriteManager.h // Implementation of the Class WorldBackgroundSpriteManager // Created on: 30-Apr-2008 17:20:04 // Original author: <NAME> /////////////////////////////////////////////////////////// #if !defined(EA_D525993C_8...
tauzxd/BalleBot
src/events/client/reaction.event.js
export default { name: 'messageReactionAdd', run: (client, messageReaction, user) => { const reaction = client.Reactions.get(messageReaction.emoji.name); if ( reaction && reaction?.validChannels.includes(messageReaction.message.channel.id) ) { reaction.run({ client, user, messa...
Itchy-Fingerz/android-api
sdk/src/main/java/com/eegeo/mapapi/buildings/BuildingHighlight.java
<filename>sdk/src/main/java/com/eegeo/mapapi/buildings/BuildingHighlight.java package com.eegeo.mapapi.buildings; import android.support.annotation.NonNull; import android.support.annotation.UiThread; import android.support.annotation.WorkerThread; import com.eegeo.mapapi.util.NativeApiObject; import java.util.conc...
shawn-dsz/sku
test/test-cases/public-path/sku.config.js
<filename>test/test-cases/public-path/sku.config.js module.exports = { publicPath: '/static', target: 'dist/static', };
sonicmouse/SacredGameTools
SacredHeroManager/SacredDir.cpp
<reponame>sonicmouse/SacredGameTools // SacredDir.cpp: implementation of the CSacredDir class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "SacredHeroManager.h" #include "SacredDir.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define ne...
illuminatixs-newbms/Lidium
scripts/reactor/6102001.js
function act() { rm.dropItems(); }
yanaspaula/rdf4j
compliance/elasticsearch/src/test/java/org/elasticsearch/bootstrap/JarHell.java
<gh_stars>100-1000 package org.elasticsearch.bootstrap; import java.net.URL; import java.util.Collections; import java.util.Set; import java.util.function.Consumer; /** * test of elasticsearch pass. Thus as a workaround we deactivate this test. see * https://stackoverflow.com/questions/38712251/java-jar-hell-runtim...
thirubee/springboot
src/main/java/com/main/assessment/job1/Java8MapTest.java
<gh_stars>0 package com.main.assessment.job1; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; public class Java8MapTest { public static void main(String[] args) { List<String> list = Arrays.asList("Magizh", "Nilan", "Thiru"); list.stream().map( name -...
yotink522/schoolport
schoolport/app_core/migrations/0014_auto_20210511_0204.py
# Generated by Django 3.1.7 on 2021-05-10 18:04 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('app_core', '0013_auto_20...
sleepingAnt/viewfinder
backend/base/debug.py
<reponame>sleepingAnt/viewfinder<gh_stars>100-1000 # Copyright 2012 Viewfinder Inc. All Rights Reserved. """Debug utilities. http://www.smira.ru/wp-content/uploads/2011/08/heapy.html - HeapDebugger: class that runs periodic guppy heap analysis """ __author__ = '<EMAIL> (<NAME>)' import logging from functools impo...
mg/react-m
src/switch/styles.js
<reponame>mg/react-m<filename>src/switch/styles.js export default { container: { display: 'inline-block', cursor: 'pointer', }, innerContainer: { position: 'relative', display: 'flex', }, link: { display: 'block', width: 37, height: '100%', outline: 'none', }, track: { ...
tsukoyumi/skylicht-engine
Projects/Irrlicht/Source/CIrrDeviceConsole.h
// Copyright (C) 2002-2011 <NAME> // This file is part of the "Irrlicht Engine". // For conditions of distribution and use, see copyright notice in irrlicht.h #ifndef __C_IRR_DEVICE_CONSOLE_H_INCLUDED__ #define __C_IRR_DEVICE_CONSOLE_H_INCLUDED__ #include "IrrCompileConfig.h" #ifdef _IRR_COMPILE_WITH_CONSOLE_DEVICE_...
sPHENIX-Test/sPHENIX-Test
doxygen/d6/df3/classPHG4EnvelopeDetector.js
<reponame>sPHENIX-Test/sPHENIX-Test var classPHG4EnvelopeDetector = [ [ "PHG4EnvelopeDetector", "d6/df3/classPHG4EnvelopeDetector.html#a66219355d5ce80af9c77ae7f779a585b", null ], [ "~PHG4EnvelopeDetector", "d6/df3/classPHG4EnvelopeDetector.html#a4678d2e4a7ad068707df5ea55a7cf932", null ], [ "ConstructMe", "d...
Aged-cat/interview_codehub
codetop/Leetcode415.cpp
<gh_stars>1-10 #include<iostream> #include<string> #include<map> #include<string.h> #include<vector> #include<algorithm> #include<sstream> #include<climits> using namespace std; string addStrings(string num1,string num2) { int i=num1.size()-1; int j=num2.size()-1; int add=0; string ans=""; while(...
maimoonak/opensrp-server-web
src/main/java/org/opensrp/web/Constants.java
<reponame>maimoonak/opensrp-server-web package org.opensrp.web; public interface Constants { String LIMIT = "limit"; int DEFAULT_LIMIT = 25; }
jacoblb64/pico_rgb_keypad_hid
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_bitmap_font/glyph_cache.py
<reponame>jacoblb64/pico_rgb_keypad_hid # SPDX-FileCopyrightText: 2019 <NAME> for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_bitmap_font.glyph_cache` ==================================================== Displays text using CircuitPython's displayio. * Author(s): <NAME> Implementation Notes -...