identifier
stringlengths
42
383
collection
stringclasses
1 value
open_type
stringclasses
1 value
license
stringlengths
0
1.81k
date
float64
1.99k
2.02k
title
stringlengths
0
100
creator
stringlengths
1
39
language
stringclasses
157 values
language_type
stringclasses
2 values
word_count
int64
1
20k
token_count
int64
4
1.32M
text
stringlengths
5
1.53M
__index_level_0__
int64
0
57.5k
https://github.com/suetming/web-jump/blob/master/src/util/TweenUtil.js
Github Open Source
Open Source
MIT
2,021
web-jump
suetming
JavaScript
Code
77
217
import TWEEN from '@tweenjs/tween.js' // 每次动画 update 都要做的事情 // 本例中绑定了 render 函数 let frameAction = () => {}; const animateFrame = function () { if (animateFrame.running) { return } animateFrame.running = true; const animate = () => { const id = requestAnimationFrame(animate); const success = TWEEN...
54,089
https://github.com/anonymous2submit/Pointsformer/blob/master/classification/plot/plot_relation2.py
Github Open Source
Open Source
MIT
null
Pointsformer
anonymous2submit
Python
Code
694
3,241
""" Plot the relationship (mean of heads) for global Transformer. Plot the relationship of local-transformer and global-transformer. python3 plot_relation2.py --id 26 --point_id 10 --stage 0 --save """ import argparse from matplotlib import pyplot from mpl_toolkits.mplot3d import Axes3D import random import os import n...
25,300
https://github.com/flaptor/hector/blob/master/core/src/main/java/me/prettyprint/hector/api/beans/Composite.java
Github Open Source
Open Source
MIT
2,011
hector
flaptor
Java
Code
38
126
package me.prettyprint.hector.api.beans; import java.nio.ByteBuffer; public class Composite extends AbstractComposite { public Composite() { super(false); } public Composite(Object... o) { super(false, o); } public static Composite fromByteBuffer(ByteBuffer byteBuffer) { Composite composite ...
34,655
https://github.com/pedroacl/omnichain-ui/blob/master/app/containers/Admin/Products/ProductsPage/actions.js
Github Open Source
Open Source
MIT
null
omnichain-ui
pedroacl
JavaScript
Code
74
244
import { LOAD_PRODUCTS, PRODUCTS_LOADED, ERROR_LOADING_PRODUCTS, LOAD_PRODUCT, PRODUCT_LOADED, } from './constants'; export function loadProduct(productId) { return { type: LOAD_PRODUCT, payload: productId, }; } export function productLoaded(product) { return { type: PRODUCT_LOADED, payload: p...
28,557
https://github.com/alexmiragall/Wake-PC/blob/master/app/src/main/java/com/alexmiragall/wakepc/activities/WakePCActivity.java
Github Open Source
Open Source
MIT
null
Wake-PC
alexmiragall
Java
Code
63
310
package com.alexmiragall.wakepc.activities; import android.os.Bundle; import com.alexmiragall.wakepc.R; import com.alexmiragall.wakepc.fragments.AddPCFragment; import com.alexmiragall.wakepc.fragments.WakePCFragment; import com.alexmiragall.wakepc.modules.WakePCModule; import java.util.LinkedList; import java.util.L...
328
https://github.com/mido008/Sparmaxi/blob/master/modules/mod_sj_vm_filter/mod_sj_vm_filter.php
Github Open Source
Open Source
BSD-3-Clause
null
Sparmaxi
mido008
PHP
Code
88
385
<?php /** * @package Sj Filter for VirtueMart * @version 2.0.0 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL * @copyright (c) 2014 YouTech Company. All Rights Reserved. * @author YouTech Company http://www.smartaddons.com */ defined ('_JEXEC') or die; defined ('DS') or define('DS',DIRECTORY_SEPARAT...
54,634
https://github.com/AlexRogalskiy/java4you/blob/master/src/main/java/com/sensiblemetrics/api/alpenidos/pattern/commander/impl/Database.java
Github Open Source
Open Source
MIT
null
java4you
AlexRogalskiy
Java
Code
74
158
package com.sensiblemetrics.api.alpenidos.pattern.commander.impl; import com.sensiblemetrics.api.alpenidos.pattern.commander.exception.DatabaseUnavailableException; /** * Database abstract class is extended by all databases in our example. The add and get * methods are used by the respective service to add to datab...
24,708
https://github.com/silky/morpheus-graphql/blob/master/examples/scotty-fraxl/src/Main.hs
Github Open Source
Open Source
MIT
2,023
morpheus-graphql
silky
Haskell
Code
32
82
{-# LANGUAGE OverloadedStrings #-} module Main ( main, ) where -- examples import Fraxl.API ( httpEndpoint, ) import Web.Scotty ( scotty, ) main :: IO () main = scotty 3000 (httpEndpoint "/")
5,667
https://github.com/smarek/ci_targets/blob/master/compiled/cpp_stl_98/combine_str.cpp
Github Open Source
Open Source
MIT
2,020
ci_targets
smarek
C++
Code
359
1,735
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild #include "combine_str.h" combine_str_t::combine_str_t(kaitai::kstream* p__io, kaitai::kstruct* p__parent, combine_str_t* p__root) : kaitai::kstruct(p__io) { m__parent = p__parent; m__root = this; f_limit_or...
11,899
https://github.com/boynux/squid-exporter/blob/master/helpers_test.go
Github Open Source
Open Source
MIT
2,022
squid-exporter
boynux
Go
Code
42
189
package main import ( "testing" "github.com/stretchr/testify/assert" "github.com/boynux/squid-exporter/config" ) func TestCreatProxyHelper(t *testing.T) { cfg := &config.Config{ ListenAddress: "192.0.2.1:3192", SquidHostname: "localhost", SquidPort: 3128, } expectedHProxyString := "PROXY TCP4 192.0...
55,061
https://github.com/crowbar/crowbar-openstack/blob/master/chef/data_bags/crowbar/migrate/keystone/204_add_resource_limits.rb
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-warranty-disclaimer
2,021
crowbar-openstack
crowbar
Ruby
Code
26
85
def upgrade(ta, td, a, d) a["resource_limits"] = ta["resource_limits"] unless a["resource_limits"] return a, d end def downgrade(ta, td, a, d) a.delete("resource_limits") unless ta.key?("resource_limits") return a, d end
38,469
https://github.com/MuazOthman/aws-viz-vscode-ext/blob/master/src/extension.ts
Github Open Source
Open Source
MIT
2,022
aws-viz-vscode-ext
MuazOthman
TypeScript
Code
248
802
import * as vscode from "vscode"; import { normalize } from "path"; import { listFilesToBeUpdated, updateWorkspace } from "@muazothman/aws-viz"; export function activate(context: vscode.ExtensionContext) { let disposable = vscode.commands.registerCommand( "aws-viz.generate", async (uri: vscode.Uri) => { ...
2,051
https://github.com/spaivaras/ElasticsearchBundle/blob/master/Result/Aggregation/AggregationIterator.php
Github Open Source
Open Source
MIT
null
ElasticsearchBundle
spaivaras
PHP
Code
386
1,208
<?php /* * This file is part of the ONGR package. * * (c) NFQ Technologies UAB <info@nfq.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ONGR\ElasticsearchBundle\Result\Aggregation; use ONGR\ElasticsearchBundle\Re...
40,918
https://github.com/lsoft/CHD/blob/master/CHD.Client.Gui/DataFlow/JournalDataChangedDelegate.cs
Github Open Source
Open Source
MIT
null
CHD
lsoft
C#
Code
15
72
using System.Collections.Generic; using CHD.Client.Gui.ViewModel.Main.Wrapper.Journal; using CHD.WcfChannel.Journal; namespace CHD.Client.Gui.DataFlow { public delegate void JournalDataChangedDelegate(List<JournalItemWrapper> newJournalItems); }
8,544
https://github.com/rischkong/angular-three-sixty/blob/master/angular-three-sixty.d.ts
Github Open Source
Open Source
MIT
null
angular-three-sixty
rischkong
TypeScript
Code
21
48
/** * Generated bundle index. Do not edit. */ export * from './public_api'; export { ThreeSixtyFactory as ɵa } from './src/three-sixty.factory';
32,598
https://github.com/lenis923/SmartAR/blob/master/Sample/android/sample_api_simple/Makefile
Github Open Source
Open Source
BSD-3-Clause
null
SmartAR
lenis923
Makefile
Code
31
95
# confirm if NDK_ROOT is specified ifeq ($(NDK_ROOT),) $(error you should set NDK_ROOT. abort...) endif all : jni/Android.mk $(NDK_ROOT)/ndk-build V=0 -j 5 $@ clean : $(NDK_ROOT)/ndk-build V=0 clean rm -r obj
33,729
https://github.com/Chesire/Malime/blob/master/app/src/androidTest/java/com/chesire/malime/injection/MockComponent.kt
Github Open Source
Open Source
MIT
2,021
Malime
Chesire
Kotlin
Code
76
394
package com.chesire.malime.injection import android.app.Application import com.chesire.malime.MockApplication import com.chesire.malime.injection.androidmodules.MockActivityModule import com.chesire.malime.injection.androidmodules.MockServiceModule import com.chesire.malime.injection.androidmodules.ViewModelModule imp...
18,118
https://github.com/rmatam/bloxplorer/blob/master/tests/test_mempool.py
Github Open Source
Open Source
MIT
2,020
bloxplorer
rmatam
Python
Code
33
202
from unittest.mock import MagicMock from bloxplorer.constants import BITCOIN_API_BASE_URL from bloxplorer.mempool import Mempool Mempool.make_request = MagicMock() mempool = Mempool(BITCOIN_API_BASE_URL) def test_mempool(): mempool.get() mempool.make_request.assert_called_with('GET', 'mempool') def test_m...
30,483
https://github.com/craigphicks/yamato_daiwa-es_extensions/blob/master/Distributable/Logging/Errors/UnsupportedScenario/UnsupportedScenarioErrorLocalization__English.d.ts
Github Open Source
Open Source
MIT
null
yamato_daiwa-es_extensions
craigphicks
TypeScript
Code
11
51
import UnsupportedScenarioError from "./UnsupportedScenarioError"; declare const UnsupportedScenarioErrorLocalization__English: UnsupportedScenarioError.Localization; export default UnsupportedScenarioErrorLocalization__English;
23,125
https://github.com/zealoussnow/chromium/blob/master/chrome/browser/metrics/perf/random_selector.h
Github Open Source
Open Source
BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause
2,022
chromium
zealoussnow
C
Code
367
841
// Copyright 2015 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. #ifndef CHROME_BROWSER_METRICS_PERF_RANDOM_SELECTOR_H_ #define CHROME_BROWSER_METRICS_PERF_RANDOM_SELECTOR_H_ #include <stddef.h> #include <string> #inc...
31,203
https://github.com/zhmu/ananas/blob/master/external/binutils-2.38/gas/testsuite/gas/aarch64/etm.d
Github Open Source
Open Source
GPL-3.0-only, GPL-2.0-only, LGPL-3.0-only, GPL-1.0-or-later, LGPL-2.0-or-later, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-other-copyleft, LGPL-2.0-only, LicenseRef-scancode-other-permissive, GPL-2.0-or-later, Zlib, LicenseRef-scancode-public-domain, FSFAP
2,022
ananas
zhmu
Makefile
Code
1,776
8,717
#name: ETM System registers #objdump: -dr .*: file format .* Disassembly of section \.text: 0+ <.*>: [^:]+: d5312040 mrs x0, trcacatr0 [^:]+: d5312240 mrs x0, trcacatr1 [^:]+: d5312440 mrs x0, trcacatr2 [^:]+: d5312640 mrs x0, trcacatr3 [^:]+: d5312840 mrs x0, trcacatr4 [^:]+: d5312a40 mrs x0, trcacatr5 [^...
42,018
https://github.com/LudvigOlsen/utipy/blob/master/utipy/string/random_strings.py
Github Open Source
Open Source
MIT
2,023
utipy
LudvigOlsen
Python
Code
127
275
import random from string import ascii_letters, digits from typing import Optional def random_alphanumeric(size: int, seed: Optional[int] = None) -> str: """ Create a string with random alphanumeric characters. Uses it's own `random.Random()` generator why it is not affected by external seeds. ...
43,188
https://github.com/Neben5/manassas/blob/master/src/main/java/frc/robot/common/SwerveController.java
Github Open Source
Open Source
MIT
2,021
manassas
Neben5
Java
Code
859
2,729
package frc.robot.common; import java.util.ArrayList; import com.ctre.phoenix.motorcontrol.ControlMode; import com.ctre.phoenix.motorcontrol.TalonFXFeedbackDevice; import com.ctre.phoenix.motorcontrol.can.WPI_TalonFX; import com.ctre.phoenix.sensors.CANCoder; import frc.robot.common.OdometryLinear.WheelData; import co...
12,087
https://github.com/NexusSwitchboard/nexus-mod-service/blob/master/src/lib/intents/manager.ts
Github Open Source
Open Source
MIT
2,021
nexus-mod-service
NexusSwitchboard
TypeScript
Code
363
1,009
import {logger, ServiceModule} from "../../index"; import {SlackHomeTab} from "../slack/homeTab"; import {IIntentConfig, ServiceIntent} from "./index"; import { ISlackAckResponse, ISlackCommand, ISlackInteractionHandler, SlackConnection, SlackEventList, SlackPayload } from "@nexus-switchboard/nexus...
1,213
https://github.com/rmallof/joern/blob/master/querydb/src/main/scala/io/joern/scanners/c/NullTermination.scala
Github Open Source
Open Source
Apache-2.0
2,022
joern
rmallof
Scala
Code
275
825
package io.joern.scanners.c import io.joern.scanners.{Crew, QueryTags} import io.shiftleft.semanticcpg.language._ import io.joern.dataflowengineoss.language._ import io.joern.console._ import io.joern.dataflowengineoss.queryengine.EngineContext import io.joern.dataflowengineoss.semanticsloader.Semantics import io.joer...
14,614
https://github.com/chendouble/artificer/blob/master/repository/test/src/test/java/org/artificer/repository/test/AbstractPersistenceTest.java
Github Open Source
Open Source
Apache-2.0
2,018
artificer
chendouble
Java
Code
705
2,526
/* * Copyright 2011 JBoss Inc * * 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 i...
47,108
https://github.com/KainBeoulve/STLCardsStats/blob/master/src/js/utils/Constants.js
Github Open Source
Open Source
MIT
null
STLCardsStats
KainBeoulve
JavaScript
Code
32
159
export default class Constants { static COLORS = { BLACK: "rgba(0,0,0,1)", GRID_COLOR: "rgba(175,175,175,1)", LINE_COLOR: "rgba(196,32,60,1)", WHITE: "rgba(255,255,255,1)" }; static GRAPH_DATA_TYPES = { BATTING_AVERAGE: "battingAverage", SLUGGING_PERCENTAGE: ...
34,721
https://github.com/wiamelouaham/busloc/blob/master/app/src/main/java/howlingcodes/busloc/RegParentActivity.java
Github Open Source
Open Source
Unlicense
2,019
busloc
wiamelouaham
Java
Code
22
97
package howlingcodes.busloc; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class RegParentActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activit...
2,801
https://github.com/anhphamt/nuxtjs-inotary/blob/master/pages/index.vue
Github Open Source
Open Source
MIT
null
nuxtjs-inotary
anhphamt
Vue
Code
246
792
<template> <div class="relative"> <Banner @scrollToEl="scrollToEl" /> <TopFeature /> <Feature /> <ContactForm ref="contactForm" /> <Slogan /> <Hotline /> </div> </template> <script> import Banner from '~/components/Home/Banner.vue' import TopFeature from '~/components/Home/TopFeature.vue' i...
6,982
https://github.com/osmanbaskaya/mapping-impact/blob/master/run/pos-find-sense.py
Github Open Source
Open Source
MIT
2,016
mapping-impact
osmanbaskaya
Python
Code
98
314
#! /usr/bin/python # -*- coding: utf-8 -*- """ some modification on find-sense-test.py in order to use pos approach """ from collections import defaultdict as dd import gzip import re import sys cluster = {} for line in gzip.open(sys.argv[1]): line = line.strip().split("\t") cluster[line[0]] = line[1] matc...
44,150
https://github.com/openharmony-gitee-mirror/communication_dsoftbus/blob/master/components/nstackx_mini/nstackx_util/interface/nstackx_util.h
Github Open Source
Open Source
Apache-2.0
2,021
communication_dsoftbus
openharmony-gitee-mirror
C
Code
192
552
/* * Copyright (C) 2021 Huawei Device Co., Ltd. * 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 ...
27,122
https://github.com/PenghaiZhang/openEQUELLA/blob/master/Source/Plugins/Core/com.equella.core/src/com/tle/web/htmleditor/tinymce/addon/tle/selection/callback/AbstractSelectionsMadeCallback.java
Github Open Source
Open Source
Apache-2.0, LGPL-3.0-only, LicenseRef-scancode-warranty-disclaimer, BSD-3-Clause, EPL-1.0, LGPL-2.0-or-later, Classpath-exception-2.0, LicenseRef-scancode-jdom, ICU, Apache-1.1, LGPL-2.1-only, LicenseRef-scancode-other-permissive, GPL-1.0-or-later, CPL-1.0, CDDL-1.0, MIT, LicenseRef-scancode-freemarker, GPL-2.0-only, N...
2,023
openEQUELLA
PenghaiZhang
Java
Code
379
1,407
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0, (the "License"); you ma...
42,386
https://github.com/parkminsung/sparkling-water/blob/master/core/src/main/scala/ai/h2o/sparkling/backend/external/ExternalBackendConverter.scala
Github Open Source
Open Source
Apache-2.0
2,020
sparkling-water
parkminsung
Scala
Code
448
1,163
/* * 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 not u...
38,149
https://github.com/gujral1997/project-mozilla/blob/master/3d.city-gh-pages/src/sprite/MonsterSprite.js
Github Open Source
Open Source
MIT, GPL-3.0-only, GPL-1.0-or-later
2,018
project-mozilla
gujral1997
JavaScript
Code
567
1,625
/* micropolisJS. Adapted by Graeme McCutcheon from Micropolis. * * This code is released under the GNU GPL v3, with some additional terms. * Please see the files LICENSE and COPYING for details. Alternatively, * consult http://micropolisjs.graememcc.co.uk/LICENSE and * http://micropolisjs.graememcc.co.uk/COPYING ...
34,454
https://github.com/winixi/wechat-mp/blob/master/src/main/java/sh/evc/sdk/wechat/mp/util/Params.java
Github Open Source
Open Source
Apache-2.0
2,021
wechat-mp
winixi
Java
Code
63
185
package sh.evc.sdk.wechat.mp.util; import java.util.HashMap; import java.util.Map; /** * key,value请求参数构建工具类. * * @author winixi */ public class Params { private Map<String, String> data = new HashMap<>(); private Params() { } public static Params create(String key, String value) { return (new Param...
42,221
https://github.com/SmartGecko/GovernorFramework/blob/master/src/Governor/Framework/EventStore/Mongo/Criteria/MongoCriteria.php
Github Open Source
Open Source
MIT, Apache-2.0
2,015
GovernorFramework
SmartGecko
PHP
Code
119
296
<?php /** * This file is part of the SmartGecko(c) business platform. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Governor\Framework\EventStore\Mongo\Criteria; use Governor\Framework\EventStore\Management\CriteriaInte...
36,301
https://github.com/jsibley/mental-health/blob/master/api/src/main/java/org/openmrs/module/mentalhealth/HealthFacilities.java
Github Open Source
Open Source
Apache-2.0
null
mental-health
jsibley
Java
Code
419
1,852
package org.openmrs.module.mentalhealth; import org.apache.commons.lang3.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.openmrs.Location; import org.openmrs.LocationAttribute; import org.openmrs.LocationAttributeType; import org.openmrs.Provider; import org...
26,856
https://github.com/bergmeister/PSScriptAnalyzer/blob/master/Tests/Rules/serviceconfigdisabled.ps1
Github Open Source
Open Source
MIT
2,023
PSScriptAnalyzer
bergmeister
PowerShell
Code
43
113
Configuration ServiceClassConfigDisabled { Import-DscResource -module MSFT_ServiceResourceClass # A Configuration block can have zero or more Node blocks Node "localhost" { # Next, specify one or more resource blocks ServiceResource myServiceSetting { Name = "BIT...
12,920
https://github.com/erisdev/minecraft-launcher-core-node/blob/master/packages/unzip/task/index.ts
Github Open Source
Open Source
MIT
null
minecraft-launcher-core-node
erisdev
TypeScript
Code
153
329
import { extract, OpenTarget, ExtractOptions, EntryHandler } from "../index"; import { Task } from "@xmcl/task"; import { Entry } from "yauzl"; /** * This might be released as a seperate package, or removed later since this is a reversed dependency * @internal */ export function extractTaskFunction(openFile: OpenTa...
4,469
https://github.com/bhanafee/initializr/blob/master/initializr-actuator/src/main/java/io/spring/initializr/actuate/info/BomRangesInfoContributor.java
Github Open Source
Open Source
Apache-2.0
2,020
initializr
bhanafee
Java
Code
211
556
/* * Copyright 2012-2017 the original author or authors. * * 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 ap...
29,308
https://github.com/simple-p/simplep/blob/master/app/models/notification_reader.rb
Github Open Source
Open Source
Apache-2.0
2,017
simplep
simple-p
Ruby
Code
13
40
class NotificationReader < ApplicationRecord belongs_to :notification belongs_to :user def isRead? !!read_at end end
16,532
https://github.com/perminder-klair/kato/blob/master/backend/controllers/PageController.php
Github Open Source
Open Source
MIT
2,015
kato
perminder-klair
PHP
Code
475
1,339
<?php namespace backend\controllers; use Yii; use backend\models\Page; use backend\models\search\PageSearch; use yii\grid\DataColumn; use yii\web\HttpException; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; use yii\filters\AccessControl; use yii\widgets\Block; /** * PageController implements the CR...
11,472
https://github.com/jinay1991/perception/blob/master/perception/object/BUILD
Github Open Source
Open Source
MIT
2,023
perception
jinay1991
Starlark
Code
33
160
cc_library( name = "object", srcs = ["object.cpp"], hdrs = ["object.h"], data = [ "@ssd_mobilenet_v2_coco//:saved_model", ], features = [ "treat_warnings_as_errors", "strict_warnings", ], visibility = ["//visibility:public"], deps = [ "//perception/inf...
18,945
https://github.com/dblom90/MenuBuddy/blob/master/MenuBuddy/MenuBuddy.SharedProject/Menus/IMenuScreen.cs
Github Open Source
Open Source
MIT
2,018
MenuBuddy
dblom90
C#
Code
59
117
using HadoukInput; using InputHelper; namespace MenuBuddy { /// <summary> /// Base class for screens that contain a stack of menu options. /// The user can move up and down to select an entry, or cancel to back out of the screen. /// </summary> public interface IMenuScreen : IWidgetScreen { void CheckInput(In...
45,905
https://github.com/caidongyun/nginx-openresty-windows/blob/master/ngx_postgres-1.0rc3/t/auth.t
Github Open Source
Open Source
BSD-2-Clause
2,019
nginx-openresty-windows
caidongyun
Perl
Code
274
953
# vi:filetype=perl use lib 'lib'; use Test::Nginx::Socket; repeat_each(2); plan tests => repeat_each() * (blocks() * 3 - 2 * 1); $ENV{TEST_NGINX_POSTGRESQL_HOST} ||= '127.0.0.1'; $ENV{TEST_NGINX_POSTGRESQL_PORT} ||= 5432; our $http_config = <<'_EOC_'; upstream database { postgres_server $TEST_NGINX_PO...
19,800
https://github.com/mhraihan/social/blob/master/app/User.php
Github Open Source
Open Source
MIT
null
social
mhraihan
PHP
Code
124
386
<?php namespace App; use App\Message; use Illuminate\Notifications\Notifiable; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { use Notifiable; /** * The attributes that are mass assignable. * * @var ar...
45,487
https://github.com/devopstoday11/corteza-server/blob/master/compose/types/record_value_test.go
Github Open Source
Open Source
Apache-2.0
2,020
corteza-server
devopstoday11
Go
Code
407
1,366
package types import ( "reflect" "testing" "time" ) func TestRecordValueSet_Set(t *testing.T) { tests := []struct { name string set RecordValueSet new RecordValue want RecordValueSet }{ { name: "simple add on empty", set: RecordValueSet{}, new: RecordValue{Name: "n", Value: "v"}, want: ...
51,506
https://github.com/saliven1970/cloudstack/blob/master/plugins/integrations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/utils/KubernetesClusterUtil.java
Github Open Source
Open Source
Apache-2.0
2,022
cloudstack
saliven1970
Java
Code
1,407
3,839
// 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...
40,576
https://github.com/alphagov/whitehall/blob/master/features/step_definitions/image_steps.rb
Github Open Source
Open Source
MIT, LicenseRef-scancode-proprietary-license
2,023
whitehall
alphagov
Ruby
Code
365
965
Given("a draft document with images exists") do images = [build(:image), build(:image)] @edition = create(:draft_publication, body: "!!2", images:) end Given("a draft case study with images exists") do images = [build(:image), build(:image)] @edition = create(:draft_case_study, body: "!!2", images:) end When(...
12,080
https://github.com/JozefCulen/strapi/blob/master/packages/strapi-plugin-content-manager/admin/src/components/RepeatableComponent/AddFieldButton.js
Github Open Source
Open Source
MIT
2,020
strapi
JozefCulen
JavaScript
Code
132
451
import styled, { css } from 'styled-components'; const Button = styled.button` width: 100%; height: 37px; margin-bottom: 21px; padding: 0 0 3px 0; text-align: center; border: 1px solid rgba(227, 233, 243, 0.75); border-top: 1px solid ${({ doesPreviousFieldContainErrorsAndIsClosed }) => doesPrev...
45,978
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/a/asana/src/main/scala/typingsSlinky/asana/mod/package.scala
Github Open Source
Open Source
MIT
2,021
SlinkyTyped
ScalablyTyped
Scala
Code
58
434
package typingsSlinky.asana import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} package object mod { @scala.inline def Client: typingsSlinky.asana.mod.ClientStatic = typings...
10,262
https://github.com/kurbmedia/transit-rails/blob/master/spec/models/menu_spec.rb
Github Open Source
Open Source
MIT
null
transit-rails
kurbmedia
Ruby
Code
150
518
require 'rails_helper' describe Transit::Menu do describe "validations" do it 'validates that a name exists' do should validate_presence_of( :name) end it 'validates that the name is unique' do should validate_uniqueness_of( :name) end it 'validates the...
45,283
https://github.com/pulsar-edit/ide-java/blob/master/test/helpers/points.helper.js
Github Open Source
Open Source
MIT
2,021
ide-java
pulsar-edit
JavaScript
Code
16
47
function pointsAreEqual(p1, p2) { return p1.row === p2.row && p1.column === p2.column } module.exports = {pointsAreEqual}
45,659
https://github.com/Viagi/ET-RPG-DEMO/blob/master/Unity/Assets/Res/Assets/Effect/Prefabs/Heros/Xiongmao/skill4.prefab
Github Open Source
Open Source
MIT
2,019
ET-RPG-DEMO
Viagi
Unity3D Asset
Code
20,000
53,817
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!1 &101338 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 475602} - component: {fileID: 19884884} - component: {fileID: 19911378} m_L...
6,454
https://github.com/aniagonzalez/engine/blob/master/spec/dummy/config.ru
Github Open Source
Open Source
MIT
2,016
engine
aniagonzalez
Ruby
Code
25
78
# This file is used by Rack-based servers to start the application. require ::File.expand_path('../config/environment', __FILE__) if Rails.env.profile? use Rack::RubyProf, :path => '/tmp/locomotive-profile' end run Dummy::Application
37,977
https://github.com/Bioyok/ton-dex-frontend/blob/master/components/data-entry/forms/FormButton.jsx
Github Open Source
Open Source
MIT
null
ton-dex-frontend
Bioyok
null
Spoken
38
111
import PropTypes from 'prop-types'; import { Button } from '../../button'; const FormButton = ({ children, isLoading }) => ( <Button className="form-button" htmlType="submit" isLoading={isLoading} type="primary" size="large" shape="round"> {children || 'Connect Wallet'} </Button> ); Fo...
14,662
https://github.com/MikeOpenHWGroup/core-v-verif/blob/master/cv32e40s/tests/programs/custom/xsecure_csrs/xsecure_csrs.c
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,023
core-v-verif
MikeOpenHWGroup
C
Code
209
829
#include <stdio.h> #include <stdlib.h> #define CPUADDR_CPUCTRL 0xBF0 #define CPUADDR_SECURESEED0 0xBF9 #define CPUADDR_SECURESEED1 0xBFA #define CPUADDR_SECURESEED2 0xBFC // Macros for using defines in inline asm #define S(x) #x #define STR(s) S(s) int main(void) { uint32_t rd; const uint32_t rs1 = 0xFFFFFFF...
15,739
https://github.com/AndresGarciaSobrado91/openWeatherApp/blob/master/app/src/main/java/com/garcia/openweatherapp/util/ui/ProgressBarLayout.kt
Github Open Source
Open Source
Apache-2.0
null
openWeatherApp
AndresGarciaSobrado91
Kotlin
Code
61
224
package com.garcia.openweatherapp.util.ui import android.app.Activity import android.content.Context import android.util.AttributeSet import android.widget.TextView import androidx.constraintlayout.widget.ConstraintLayout import com.garcia.openweatherapp.R class ProgressBarLayout : ConstraintLayout { private var...
49,183
https://github.com/brusjc/practica/blob/master/resources/lang/va/vendor.php
Github Open Source
Open Source
MIT
null
practica
brusjc
PHP
Code
2,254
4,732
<?php return [ "A fresh verification link has been sent to your email address."=>"Se ha enviat un nou enllaç de verificació a la seua adreça de correu electrónico", "A new verification link has been sent to the email address you provided during registration."=>"Se va enviar un nou vincle de verificació a l'adreça de...
4,076
https://github.com/meln1k/vk-scala-api/blob/master/src/test/scala/UsersSpec.scala
Github Open Source
Open Source
Apache-2.0
2,015
vk-scala-api
meln1k
Scala
Code
216
742
import io.github.meln1k.vkApi.methods.Users import io.github.meln1k.vkApi.models.geo.{Longitude, Latitude} import io.github.meln1k.vkApi.models.users._ import io.github.meln1k.vkApi.services.PlayWSHttpLayerService import io.github.meln1k.vkApi.utils.{FakeAccessToken, RealAccessToken, ApiError} import org.specs2.mutable...
26,259
https://github.com/TeamSPoon/logicmoo_nlu/blob/master/ext/ace_in_gf/docs/d11_1/images/languages.dot
Github Open Source
Open Source
MIT
2,020
logicmoo_nlu
TeamSPoon
Graphviz (DOT)
Code
62
148
digraph G { rankdir = LR; node [shape = "plaintext"]; edge [arrowsize = 1 color = "black" dir = "both"]; subgraph cluster_0 { label = ""; color = "yellowgreen"; ACE; DRS; } German -> ACE; Finnish -> ACE; other_nl -> ACE; ACE -> DRS; DRS -> OWL; DRS -> TPTP; DRS -> other_fl; other_nl [label = "..."]; other_f...
43,630
https://github.com/snow04/assessment/blob/master/application/views/datatable/footer.php
Github Open Source
Open Source
MIT
null
assessment
snow04
PHP
Code
4
73
<script src="https://cdn.datatables.net/1.10.25/js/jquery.dataTables.min.js"></script> <script src="https://cdn.datatables.net/1.10.25/js/dataTables.bootstrap5.min.js"></script>
38,413
https://github.com/andreinagy/ios-library/blob/master/Airship/AirshipCore/Source/Public/NSError+UAAdditions.h
Github Open Source
Open Source
Apache-2.0
null
ios-library
andreinagy
C
Code
30
108
/* Copyright Airship and Contributors */ #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /** * Common Airship Errors * @note For internal use only. :nodoc: */ @interface NSError(UAAdditions) + (NSError *)airshipParseErrorWithMessage:(NSString *)message; @end NS_ASSUME_NONNULL_END
55,554
https://github.com/medismailben/llvm-project/blob/master/llvm/test/Transforms/StripDeadPrototypes/basic.ll
Github Open Source
Open Source
Apache-2.0
2,022
llvm-project
medismailben
LLVM
Code
51
117
; RUN: opt -strip-dead-prototypes -S -o - < %s | FileCheck %s ; RUN: opt -S -passes=strip-dead-prototypes < %s | FileCheck %s ; CHECK: declare i32 @f declare i32 @f() ; CHECK-NOT: declare i32 @g declare i32 @g() define i32 @foo() { %call = call i32 @f() ret i32 %call }
11,060
https://github.com/ivanclever/sisorc/blob/master/js/tables.js
Github Open Source
Open Source
MIT
2,015
sisorc
ivanclever
JavaScript
Code
66
235
// document ready function $(document).ready(function() { //------------- Check all checkboxes -------------// $("#masterCh").click(function() { var checkedStatus = $(this).find('span').hasClass('checked'); $("#checkAll tr .chChildren input:checkbox").each(function() { this.checked = checkedStatus; i...
11,237
https://github.com/sandeepvalapi/Hybris/blob/master/bin/custom/training/trainingstorefront/web/webroot/WEB-INF/tags/responsive/order/orderUnconsignedEntries.tag
Github Open Source
Open Source
Unlicense
2,020
Hybris
sandeepvalapi
null
Spoken
123
720
<%@ tag body-content="empty" trimDirectiveWhitespaces="true" %> <%@ attribute name="order" required="true" type="de.hybris.platform.commercefacades.order.data.OrderData" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> <%@ taglib...
53,441
https://github.com/fengmann-tuebingen/gerona/blob/master/path_follower/include/path_follower/utils/obstacle_cloud.h
Github Open Source
Open Source
BSD-3-Clause
2,020
gerona
fengmann-tuebingen
C
Code
200
518
#ifndef OBSTACLE_CLOUD_H #define OBSTACLE_CLOUD_H #include <memory> #include <boost/shared_ptr.hpp> #include <Eigen/Core> #include <ros/time.h> namespace tf { class Transform; } namespace pcl { struct PointXYZ; template <typename T> class PointCloud; } /** * @brief The ObstacleCloud class represents all currently...
12,275
https://github.com/SebastiaanZ/minigigscyclingteam/blob/master/website/userprofile/migrations/0002_add_avatar_location_to_image_field.py
Github Open Source
Open Source
MIT
null
minigigscyclingteam
SebastiaanZ
Python
Code
34
168
# Generated by Django 3.0.2 on 2020-01-27 18:02 from django.db import migrations import website.utils.db_fields.file_fields class Migration(migrations.Migration): dependencies = [ ('userprofile', '0001_create_userprofile_model'), ] operations = [ migrations.AlterField( mode...
12,115
https://github.com/codersth/coderfit_flutter/blob/master/lib/ui/home/main_home.dart
Github Open Source
Open Source
Apache-2.0
null
coderfit_flutter
codersth
Dart
Code
323
1,510
import 'dart:async'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bmflocation/bdmap_location_flutter_plugin.dart'; import 'package:flutter_bmflocation/flutter_baidu_location.dart'; import 'package:flutter_bmflocation/flutter_baidu_location_android_option.dart...
50,811
https://github.com/lin0244/javis-upms/blob/master/upms-web/src/main/java/javis/app/web/base/BaseController.java
Github Open Source
Open Source
Apache-2.0
2,018
javis-upms
lin0244
Java
Code
47
160
package javis.app.web.base; import lombok.Data; import lombok.ToString; import lombok.experimental.Accessors; import org.springframework.beans.factory.annotation.Autowired; import javax.servlet.http.HttpSession; /** * @author Javis * @desc * @date 2017-11-14 * @time 上午1:37 */ @Data @ToString @Accessors(chain =...
47,685
https://github.com/LJBarnes/AdventurousLlama/blob/master/client/node_modules/react-rainbow-components/components/Modal/pageObject/index.js
Github Open Source
Open Source
MIT
2,020
AdventurousLlama
LJBarnes
JavaScript
Code
242
789
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); /** * Modal page object cla...
2,242
https://github.com/delrosfer/rea-lar-sop/blob/master/storage/framework/views/263096f4aee6622d9cd4d5c43199f78f7b2d39cb.php
Github Open Source
Open Source
MIT
null
rea-lar-sop
delrosfer
PHP
Code
25
143
<?php $__env->startSection('title', 'Punto de Venta'); ?> <?php $__env->startSection('content'); ?> <div id="cart"></div> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/silver/Docum...
37,095
https://github.com/csaltos/crear-sitios-web-con-elm/blob/master/s08-frutas-l01-inicio/src/Main.elm
Github Open Source
Open Source
CC0-1.0
null
crear-sitios-web-con-elm
csaltos
null
Spoken
21
51
module Main exposing (..) import Element import Html exposing (Html) main : Html msg main = Element.layout [] (Element.text "Hola Gráficos")
18,991
https://github.com/Tomato27/v/blob/master/vlib/v/depgraph/depgraph.v
Github Open Source
Open Source
MIT
2,020
v
Tomato27
null
Spoken
456
1,215
// Copyright (c) 2019-2020 Alexander Medvednikov. All rights reserved. // Use of this source code is governed by an MIT license // that can be found in the LICENSE file. // Directed acyclic graph // this implementation is specifically suited to ordering dependencies module depgraph struct DepGraphNode { pub mut: name...
32,628
https://github.com/bofh69/langgen/blob/master/tests/test_output.rs
Github Open Source
Open Source
MIT
null
langgen
bofh69
Rust
Code
845
4,491
mod common; use crate::common::*; use langgen::*; #[test] fn test_debug_output() { let mut out = DebugOutput::new(); out.write_style("bold"); out.write_text("test"); out.write_style("/bold"); out.done(); assert_eq!(out.last_text, "<bold>test</bold>"); assert_eq!(out.text, ""); } fn asse...
36,545
https://github.com/Mumuksia/Rozha/blob/master/app/controllers/AuthConfigImpl.scala
Github Open Source
Open Source
Apache-2.0
null
Rozha
Mumuksia
Scala
Code
72
282
package controllers import play.api.mvc.RequestHeader import play.api.mvc.Results._ import jp.t2v.lab.play2.auth.{ CookieTokenAccessor, TokenAccessor } import scala.concurrent.{ Future, ExecutionContext } trait AuthConfigImpl extends BaseAuthConfig { def loginSucceeded(request: RequestHeader)(implicit ctx: Execut...
53,944
https://github.com/perryiv/osg_tools/blob/master/tests/CMakeLists.txt
Github Open Source
Open Source
MIT
2,023
osg_tools
perryiv
CMake
Code
286
834
################################################################################ # # Copyright (c) 2019, Perry L Miller IV # All rights reserved. # MIT License: https://opensource.org/licenses/mit-license.html # ################################################################################ ######################...
7,639
https://github.com/mutindarisper/Closest_Facility_ArcGIS_API_Js/blob/master/Closest_Facility_ArcGIS_API_Js/node_modules/@arcgis/core/views/draw/Draw.d.ts
Github Open Source
Open Source
BSD-3-Clause, 0BSD, SGI-B-2.0, ISC, AFL-2.1, CC0-1.0, MIT, Apache-2.0, BSD-2-Clause, Unlicense, Zlib, LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-unknown-license-reference
2,021
Closest_Facility_ArcGIS_API_Js
mutindarisper
TypeScript
Code
9
23
import "../../interfaces"; import Draw = __esri.Draw; export default Draw;
55,948
https://github.com/marcusportmann/inception/blob/master/src/inception-messaging/src/main/java/digital/inception/messaging/IMessagingService.java
Github Open Source
Open Source
Apache-2.0
2,021
inception
marcusportmann
Java
Code
2,213
4,230
/* * Copyright 2021 Marcus Portmann * * 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 t...
49,639
https://github.com/matusnovak/finedata/blob/master/src/yamlreader.cpp
Github Open Source
Open Source
MIT
null
finedata
matusnovak
C++
Code
848
3,200
#include <regex> #include <fstream> #include <streambuf> #include <yaml-cpp/yaml.h> #include <ffw/data/yamlreader.h> static bool isBoolean(const char* str) { if (!str || *str == '\0') return false; static const auto re = std::regex("^(true|false)$", std::regex::icase); return std::regex_match(str, re); } ...
4,684
https://github.com/Duffney/azure-sdk-for-go/blob/master/sdk/resourcemanager/storagecache/armstoragecache/zz_generated_models_serde.go
Github Open Source
Open Source
MIT
null
azure-sdk-for-go
Duffney
Go
Code
1,218
4,404
//go:build go1.18 // +build go1.18 // 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 cod...
12,073
https://github.com/Gebbi8/BiVeS-SBML/blob/master/src/main/java/de/unirostock/sems/bives/sbml/parser/SBMLParameter.java
Github Open Source
Open Source
Apache-2.0
2,020
BiVeS-SBML
Gebbi8
Java
Code
481
1,553
/** * */ package de.unirostock.sems.bives.sbml.parser; import de.unirostock.sems.bives.algorithm.DiffReporter; import de.unirostock.sems.bives.algorithm.SimpleConnectionManager; import de.unirostock.sems.bives.markup.Markup; import de.unirostock.sems.bives.markup.MarkupDocument; import de.unirostock.sems.bives.mark...
1,634
https://github.com/l1mb/cender-project/blob/master/src/elements/home/productCardElement/productCard.tsx
Github Open Source
Open Source
MIT
null
cender-project
l1mb
TypeScript
Code
356
1,413
import React, { ChangeEvent, Suspense, useState } from "react"; import { useDispatch, useSelector } from "react-redux"; import { toast } from "react-toastify"; import IGroupedProduct from "@/api/types/products/IGroupedProduct"; import CategoriesData from "@/components/routesComponent/types/categories/categoriesData"; i...
11,655
https://github.com/tahesse/trickster/blob/master/trickster/experience/__init__.py
Github Open Source
Open Source
MIT
2,021
trickster
tahesse
Python
Code
8
19
from .replay_buffer import Experience from .sampler import ExperienceSampler
8,408
https://github.com/SoheilJafari/xcala/blob/master/app/xcala.play/services/DefaultDatabaseConfig.scala
Github Open Source
Open Source
Apache-2.0
2,023
xcala
SoheilJafari
Scala
Code
32
105
package xcala.play.services import play.api.Configuration import javax.inject.Inject import javax.inject.Singleton import scala.concurrent.ExecutionContext @Singleton class DefaultDatabaseConfig @Inject() ( configuration: Configuration, implicit val ec: ExecutionContext ) extends DatabaseConfig { override ...
30,054
https://github.com/webosce/chromium53/blob/master/src/chrome/browser/resources/settings/device_page/device_page.js
Github Open Source
Open Source
BSD-3-Clause, Apache-2.0
2,018
chromium53
webosce
JavaScript
Code
130
325
// Copyright 2016 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. /** * @fileoverview 'settings-device-page' is the settings page for device and * peripheral settings. */ Polymer({ is: 'settings-device-page', pro...
7,479
https://github.com/MSyun/Aimaze/blob/master/ActionGame/ActionGame/src/GameFramework/framework/Shader/ShaderManager.h
Github Open Source
Open Source
MIT
2,017
Aimaze
MSyun
C++
Code
126
606
// シェーダマネージャクラス // 2016. 7. 5 プログラム作成 // author SyunMizuno #pragma once #include "HlslBase.h" #include "../Singleton/Singleton.h" #include <map> #include "Lambert/Lambert.h" #include "Phong/Phong.h" #include "HalfLambert/HalfLambert.h" #include "Gaussian/Gaussian.h" #include "Toon/Toon.h" #include "ParallaxMapping...
25,996
https://github.com/MarikaKononen/CodeForMyLife/blob/master/web/app/plugins/wp-stateless/vendor/udx/lib-utility/scripts/src/udx.happ.json_editor.js
Github Open Source
Open Source
MIT, GPL-2.0-or-later
2,020
CodeForMyLife
MarikaKononen
JavaScript
Code
791
1,804
/** * JSON Editor * It's just a wrapper for ud.json.editor * - loads ud.json.editor library and styles * - adds schema and validation functionality. * * @required ud.loader, ud.async * @author peshkov@UD */ Application.define( 'core.json_editor', function( args ) { /* Set arguments */ args = jQuery.extend...
16,858
https://github.com/mikenthiwa/travela_front/blob/master/src/redux/actionCreator/__tests__/fileUploadActions.test.js
Github Open Source
Open Source
MIT
null
travela_front
mikenthiwa
JavaScript
Code
126
453
import { UPLOAD_FILE, UPLOAD_FILE_FAILURE, UPLOAD_FILE_SUCCESS } from '../../constants/actionTypes'; import { uploadFile, uploadFileSuccess, uploadFileFailure } from '../fileUploadActions'; describe('Upload File Actions', () => { it('should return action type of UPLOAD_FILE', (done) => { const expec...
48,709
https://github.com/pyro001/hardware-neural-network-processor/blob/master/sources/processing_engine.cpp
Github Open Source
Open Source
MIT
2,020
hardware-neural-network-processor
pyro001
C++
Code
220
605
#include "../headers/processing_engine.hpp" void processing_engine_module::process(void) { #pragma HLS resource core = AXI4Stream variable = from_scheduler_weight #pragma HLS resource core = AXI4Stream variable = from_scheduler_input #pragma HLS resource core = AXI4Stream variable = from_scheduler_instructions #pragma...
31,579
https://github.com/DearMadMan/sales-platform/blob/master/database/migrations/2015_07_01_062632_create_expresses_table.php
Github Open Source
Open Source
MIT
2,016
sales-platform
DearMadMan
PHP
Code
55
266
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateExpressesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('expresses', function (Blueprint $table) { ...
34,007
https://github.com/iann0036/iamfast-java/blob/master/src/main/java/com/iann0036/iamfast/App.java
Github Open Source
Open Source
MIT
2,021
iamfast-java
iann0036
Java
Code
397
1,568
package com.iann0036.iamfast; import com.github.javaparser.StaticJavaParser; import com.github.javaparser.ast.CompilationUnit; import com.github.javaparser.ast.ImportDeclaration; import com.github.javaparser.ast.expr.MethodCallExpr; import com.github.javaparser.ast.expr.VariableDeclarationExpr; import org.json.JSONAr...
17,238
https://github.com/Nimdoc/Meme-Sort/blob/master/ImageViewer.pro
Github Open Source
Open Source
MIT
2,021
Meme-Sort
Nimdoc
null
Spoken
39
167
QT += widgets requires(qtConfig(filedialog)) qtHaveModule(printsupport): QT += printsupport win32:RC_ICONS += icon.ico HEADERS = imageviewer.h \ analysishelper.h \ clickimagelabel.h \ sortcommand.h SOURCES = imageviewer.cpp \ analysishelper.cpp \ clickimagelabel.cpp \ ...
33,830
https://github.com/Qt-Widgets/tp_utils/blob/master/dependencies.pri
Github Open Source
Open Source
MIT
2,019
tp_utils
Qt-Widgets
null
Spoken
9
33
DEPENDENCIES += lib_json INCLUDEPATHS += tp_utils/inc/ LIBRARIES += tp_utils
42,463
https://github.com/Shopify/identity_cache/blob/master/lib/identity_cache/mem_cache_store_cas.rb
Github Open Source
Open Source
MIT
2,023
identity_cache
Shopify
Ruby
Code
169
600
# frozen_string_literal: true require "dalli/cas/client" unless Dalli::VERSION > "3" module IdentityCache module MemCacheStoreCAS def cas(name, options = nil) options = merged_options(options) key = normalize_key(name, options) rescue_error_with(false) do instrument(:cas, key, options...
32,351
https://github.com/rokhos82/map/blob/master/app/core/techLibrary.static.js
Github Open Source
Open Source
MIT
null
map
rokhos82
JavaScript
Code
26
215
export const techs = { "powerSystemsTech": { id: "powerSystemsTech", name: "Power Systems Tech", attributes: [ "levels:0:space:starship:value=1.25", "levels:0:space:gunboat:value=1.25*0.75", "levels:0:space:fighter:value=1.25*0.50", "levels:0:space:base:value=1.25*1.50", "lev...
16,665
https://github.com/gears/gears-stylus/blob/master/example/assets/css/style.styl
Github Open Source
Open Source
ISC
2,014
gears-stylus
gears
Stylus
Code
19
67
@import 'nib' foo() width: 20px .foo {block} .bar +foo() padding: 0 .baz height: 20px .description { overflow: ellipsis }
54,428
https://github.com/MatrixAINetwork/MATRIX-TESTNET/blob/master/reward/interest/interest.go
Github Open Source
Open Source
MIT
2,018
MATRIX-TESTNET
MatrixAINetwork
Go
Code
797
3,398
// Copyright (c) 2018 The MATRIX Authors // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php package interest import ( "math" "math/big" "github.com/MatrixAINetwork/go-matrix/common" "github.com/MatrixAINetwork/go-matrix/core/ma...
51,229
https://github.com/J-VOL/mage/blob/master/Mage.Tests/src/test/java/org/mage/test/cards/single/emn/PermeatingMassTest.java
Github Open Source
Open Source
MIT
2,022
mage
J-VOL
Java
Code
232
739
package org.mage.test.cards.single.emn; import mage.constants.PhaseStep; import mage.constants.Zone; import org.junit.Test; import org.mage.test.serverside.base.CardTestPlayerBase; /** * * @author escplan9 */ public class PermeatingMassTest extends CardTestPlayerBase { @Test public void testWhenDiesInComb...
53,068
https://github.com/matyioe92/SlinkyTyped/blob/master/w/winrt-uwp/src/main/scala/typingsSlinky/winrtUwp/Windows/Foundation/Diagnostics/CausalityTraceLevel.scala
Github Open Source
Open Source
MIT
2,021
SlinkyTyped
matyioe92
Scala
Code
126
288
package typingsSlinky.winrtUwp.Windows.Foundation.Diagnostics import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native sealed trait CausalityTraceLevel extends StObject /** S...
12,097