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/Jeswang/Distribution/blob/master/m/material__tab/src/main/scala/typings/materialTab/constantsMod/cssClasses.scala
Github Open Source
Open Source
MIT
2,020
Distribution
Jeswang
Scala
Code
74
420
package typings.materialTab.constantsMod import org.scalablytyped.runtime.StringDictionary import typings.materialBase.foundationMod.MDCStrings import typings.materialTab.materialTabStrings.`mdc-tab--active` import typings.materialTab.materialTabStrings.`mdc-tab--animating-activate` import typings.materialTab.material...
43,779
https://github.com/clach04/reviewboard/blob/master/reviewboard/diffviewer/testdata/new_src/helloworld.pl
Github Open Source
Open Source
MIT
2,015
reviewboard
clach04
Perl
Code
11
24
# Prints Hello World sub helloWorld { print "Hello world!" }
34,696
https://github.com/yZipperer/InstaKart-front/blob/master/src/webpages/BestSellers.js
Github Open Source
Open Source
Apache-2.0
null
InstaKart-front
yZipperer
JavaScript
Code
143
468
import React, {useEffect, useState} from 'react'; import { listProductsActive } from '../apiFunctions/product'; import BasicHeading from '../components/headings/BasicHeading'; import ProductCardUser from '../components/cards/ProductCardUser'; import ProductCardLoading from '../components/cards/ProductCardLoading'; con...
52,274
https://github.com/messenger-sean/fta-monitor-watchapp/blob/master/app/src/main/java/com/fsilberberg/ftamonitor/view/fieldmonitor/FieldMonitorStatusFragment.java
Github Open Source
Open Source
MIT
2,016
fta-monitor-watchapp
messenger-sean
Java
Code
173
846
package com.fsilberberg.ftamonitor.view.fieldmonitor; import android.app.Fragment; import android.databinding.DataBindingUtil; import android.databinding.Observable; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; ...
16,685
https://github.com/JinBinPeng/JSPdemo/blob/master/demo/WebRoot/userInfo.jsp
Github Open Source
Open Source
Apache-2.0
2,017
JSPdemo
JinBinPeng
null
Spoken
114
595
<%@ page language="java" import="java.util.*,java.text.*" contentType="text/html; charset=utf-8"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <ht...
11,097
https://github.com/webdevgods/WdgBlog/blob/master/src/WdgBlog/Service/Blog.php
Github Open Source
Open Source
BSD-3-Clause
2,014
WdgBlog
webdevgods
PHP
Code
906
4,047
<?php namespace WdgBlog\Service; use Zend\Form\Form, WdgZf2\Service\ServiceAbstract, DoctrineORMModule\Paginator\Adapter\DoctrinePaginator as PaginatorAdapter, Doctrine\ORM\Tools\Pagination\Paginator as ORMPaginator, Zend\Paginator\Paginator as ZendPaginator, WdgBlog\Entity\Post as PostEntity, ...
15,306
https://github.com/minhcham/hotrohoctapLQD/blob/master/app/Repositories/Base/BaseRepository.php
Github Open Source
Open Source
MIT
null
hotrohoctapLQD
minhcham
PHP
Code
573
1,900
<?php namespace App\Repositories\Base; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Support\Collection; use Illuminate\Support\Facades\DB; abstract class BaseRepository implements BaseRepositoryInterface { /** * @var Model */ protec...
43,192
https://github.com/Jan-zou/nlp-seg-pos/blob/master/crfeval.py
Github Open Source
Open Source
MIT
null
nlp-seg-pos
Jan-zou
Python
Code
237
709
#!/usr/bin/python # -*- coding: utf-8 -*- import sys def eval_seg(): try: result_file = open('result/seg/output.txt', 'r') # result_file = open('result/pos/output.txt', 'r') except: print 'result file is not specified, or open failed!' sys.exit() wc_of_test = 0 wc_of_...
45,267
https://github.com/GrapeLUX/luxtre/blob/master/scripts/develop/auto-build-linux.sh
Github Open Source
Open Source
MIT, AGPL-3.0-only
2,019
luxtre
GrapeLUX
Shell
Code
80
254
#!/usr/bin/env bash # DEPENDENCIES & REFERENCES: # 0. 'git' # 1. 'node.js 6.x' # 2. tr -d '\r' < old.sh > new.sh # 3. npm rebuild node-sass GITHUB_USER=lux-core CLONE_DIR=luxtre URL=https://github.com/${GITHUB_USER}/luxtre.git #open lux core rpc-daemon exec ./run-core-linux.sh & #download from git echo "B...
9,796
https://github.com/NamedEngine/runtime/blob/master/Assets/Scripts/Language/Operators/Int/Multiply.cs.meta
Github Open Source
Open Source
MIT
2,021
runtime
NamedEngine
Unity3D Asset
Code
6
38
fileFormatVersion: 2 guid: afa0dab507a5450aa2bc51a798b9d38f timeCreated: 1619980039
37,978
https://github.com/finndy/finndycloud/blob/master/app/admin/validate/Robot.php
Github Open Source
Open Source
ECL-2.0, Apache-2.0
2,018
finndycloud
finndy
PHP
Code
80
428
<?php namespace app\admin\validate; use think\Validate; class Robot extends Validate { public function __construct(array $rules = [], array $message = [], array $field = []) { parent::__construct($rules, $message, $field); mb_internal_encoding('utf-8'); } protected $rule = [ 'na...
26,531
https://github.com/myxland/mini-app-shop/blob/master/appserver/application/library/exception/ApiExceptionHandle.php
Github Open Source
Open Source
Apache-2.0
2,018
mini-app-shop
myxland
PHP
Code
91
308
<?php namespace app\library\exception; use think\exception\Handle; /** * author: yunshu * createTime: 18/2/6 17:16 * description: */ class ApiExceptionHandle extends Handle { public $code; public $httpCode = 500; public $msg; public function render(\Exception $e) { if ($e instanceof ...
2,033
https://github.com/HENU515Lab/test/blob/master/bbs/website/src/main/webapp/static/web/js/wss/chat/emoji-data.js
Github Open Source
Open Source
MIT
2,021
test
HENU515Lab
JavaScript
Code
436
2,418
let CHAT_BTN_ALL_EMOJIS = [{emoji: "😀", description: "笑嘻嘻"}, {emoji: "😁", description: "笑嘻嘻的脸,含笑的眼睛"}, {emoji: "😂", description: "脸上带着喜悦的泪水"}, {emoji: "😃", description: "开口笑脸"}, {emoji: "😄", description: "开口笑脸和微笑的眼睛"}, {emoji: "😅", description:...
31,092
https://github.com/joelkoz/SensESP/blob/master/docs/generated/docs/search/classes_12.js
Github Open Source
Open Source
Apache-2.0
2,021
SensESP
joelkoz
JavaScript
Code
57
984
var searchData= [ ['valueconsumer_0',['ValueConsumer',['../class_value_consumer.html',1,'']]], ['valueconsumer_3c_20bool_20_3e_1',['ValueConsumer&lt; bool &gt;',['../class_value_consumer.html',1,'']]], ['valueconsumer_3c_20c_20_3e_2',['ValueConsumer&lt; C &gt;',['../class_value_consumer.html',1,'']]], ['valueco...
51,723
https://github.com/kisom/rover-mk1/blob/master/src/rosa/rosa-tasks.adb
Github Open Source
Open Source
MIT
null
rover-mk1
kisom
Ada
Code
86
210
package body ROSA.Tasks is procedure Create (Task_ID, Priority : in Unsigned_8; t : out Tasking) is begin t.Task_ID := Task_ID; t.Priority := Priority; t.State := Waiting; end Create; function Run (t : in Tasking) return Task_Status is begin if t.State /= Ready then ret...
10,978
https://github.com/jdkoren/sqlite-parser/blob/master/src/test/resources/trigger2.test_5.sql
Github Open Source
Open Source
MIT
2,022
sqlite-parser
jdkoren
SQL
Code
172
485
-- trigger2.test -- -- execsql { -- DELETE FROM rlog; -- CREATE TRIGGER insert_before_row BEFORE INSERT ON tbl FOR EACH ROW -- BEGIN -- INSERT INTO rlog VALUES ( (SELECT coalesce(max(idx),0) + 1 FROM rlog), -- 0, 0, -- (SELECT coalesce(sum(a),0) FROM tbl), -- (SELECT co...
54,257
https://github.com/wfp/wfp-ui-reactjs/blob/master/src/components/betabanner.jsx
Github Open Source
Open Source
MIT
2,018
wfp-ui-reactjs
wfp
null
Spoken
136
468
import React from 'react'; import PropTypes from 'prop-types'; const Banner = ({ oldSiteUrl, findOutMoreUrl }) => ( <div id="beta-banner"> <div className="wfp-wrapper"> <div className="wfp-hidden-lg wfp-hidden-xl"> This is the new version of WFP Self-Service. <a href={findOutMoreUrl}>Find o...
13,230
https://github.com/eaglesakura/firearm-rpc/blob/master/firearm-rpc/src/androidTest/java/com/eaglesakura/firearm/rpc/service/ExampleRemoteProcedureServerService.kt
Github Open Source
Open Source
MIT
null
firearm-rpc
eaglesakura
Kotlin
Code
130
520
package com.eaglesakura.firearm.rpc.service import android.content.Intent import android.os.Bundle import android.os.IBinder import androidx.annotation.WorkerThread import androidx.lifecycle.LifecycleService import com.eaglesakura.armyknife.android.extensions.assertWorkerThread import com.eaglesakura.firearm.rpc.inter...
54,495
https://github.com/ilmente/helen/blob/master/components/figure/index.js
Github Open Source
Open Source
MIT
null
helen
ilmente
JavaScript
Code
126
444
import { useState } from 'react' import css from './style.css' import Loader from '../loader' export default ({ image, caption }) => { const path = `/static/images/${image}.jpg` const [source, setSource] = useState() const [isLoaded, setLoaded] = useState(false) const [isPreview, setPreview] = useState...
17,165
https://github.com/nikivazou/safe-coupling/blob/master/src/TD/Lemmata/Relational/Iterate.hs
Github Open Source
Open Source
BSD-3-Clause
null
safe-coupling
nikivazou
Haskell
Code
263
615
{-@ LIQUID "--reflection" @-} {-@ LIQUID "--ple" @-} module TD.Lemmata.Relational.Iterate where import Monad.PrM import Data.Dist import Data.List import Prelude hiding (iterate) import Monad.PrM.Relational.TCB.Spec import Monad.PrM.Predica...
45,719
https://github.com/Dhifallah-Htem/Delivery/blob/master/Delivery/src/main/webapp/bower_components/ng-wig/.gitignore
Github Open Source
Open Source
MIT
2,016
Delivery
Dhifallah-Htem
Ignore List
Code
7
46
.idea node_modules/ bower_components/ src/javascript/libs/ src/javascript/app/templates.js .sass-cache/ src/libs/
14,825
https://github.com/iantal/AndroidPermissions/blob/master/apks/test_apks/insecurebank/app/smali/android/support/v7/media/RegisteredMediaRouteProvider$Controller.smali
Github Open Source
Open Source
Apache-2.0
2,019
AndroidPermissions
iantal
Smali
Code
586
3,634
.class final Landroid/support/v7/media/RegisteredMediaRouteProvider$Controller; .super Landroid/support/v7/media/MediaRouteProvider$RouteController; .source "RegisteredMediaRouteProvider.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroid/support/v7/media/RegisteredMediaRout...
35,081
https://github.com/strigazi/athena/blob/master/Event/xAOD/xAODEventInfoAthenaPool/src/xAODEventInfoAthenaPoolTPCnv.cxx
Github Open Source
Open Source
Apache-2.0
2,020
athena
strigazi
C++
Code
40
194
// Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration // Gaudi/Athena include(s). #include "AthenaKernel/TPCnvFactory.h" // EDM include(s). #include "xAODEventInfo/EventAuxInfo.h" #include "xAODEventInfo/versions/EventAuxInfo_v1.h" // Local include(s). #include "xAODEventAuxInfoCnv_v1.h" // Dec...
5,344
https://github.com/rd-dev-ukraine/rd-redux-utils/blob/master/dist/action-utils/defineAction.d.ts
Github Open Source
Open Source
MIT
null
rd-redux-utils
rd-dev-ukraine
TypeScript
Code
122
249
import { Action } from "redux"; export declare function defineAction<TActionData>(type: string): ActionCreatorFn<TActionData>; export interface ActionCreatorFn<TActionData> { /** * Creates instance of action with specified type and data. */ (data: TActionData): Action & TActionData; /** Type guard...
11,572
https://github.com/footprintes/open-platform/blob/master/services/payment-server/src/main/java/com/bsd/payment/server/util/StrUtil.java
Github Open Source
Open Source
MIT
2,020
open-platform
footprintes
Java
Code
88
226
package com.bsd.payment.server.util; import org.apache.commons.lang3.StringUtils; /** * @author dingzhiwei * @date 17/11/1 */ public class StrUtil { public static String toString(Object obj) { return obj == null ? "" : obj.toString(); } public static String toString(Object obj, String nullStr)...
46,051
https://github.com/alex4ip/porter-docker-compose/blob/master/pkg/docker-compose/execute.go
Github Open Source
Open Source
Apache-2.0
2,022
porter-docker-compose
alex4ip
Go
Code
70
221
package dockercompose import ( "context" "get.porter.sh/porter/pkg/exec/builder" yaml "gopkg.in/yaml.v3" ) func (m *Mixin) loadAction(ctx context.Context) (*Action, error) { var action Action err := builder.LoadAction(ctx, m.RuntimeConfig, "", func(contents []byte) (interface{}, error) { err := yaml.Unmarshal...
53,459
https://github.com/AlphaWallet/alpha-wallet-ios/blob/master/AlphaWallet/Activities/ViewModels/ActivityCellViewModel.swift
Github Open Source
Open Source
LicenseRef-scancode-proprietary-license, MIT
2,023
alpha-wallet-ios
AlphaWallet
Swift
Code
47
149
// Copyright © 2020 Stormbird PTE. LTD. import Foundation import BigInt import AlphaWalletFoundation struct ActivityCellViewModel { private var server: RPCServer { activity.server } let activity: Activity var contentsBackgroundColor: UIColor { Configuration.Color.Semantic.tableViewCe...
15,679
https://github.com/mkhaled87/pFaces-AMYTISS/blob/master/examples/arch21_artifact/roomtemp3/sys_post.m
Github Open Source
Open Source
MIT
2,023
pFaces-AMYTISS
mkhaled87
MATLAB
Code
97
272
%% The post function function xp = sys_post(x, u, w) if nargin == 2 eta = 0.20; beta = 0.022; gamma = 0.05; a = 1.0 - 2.0*eta - beta; T_h = 50.0; T_e = -1.0; x0 = x(1); x1 = x(2); x2 = x(3); u0 = u(1); u1 = u(2); ...
12,958
https://github.com/edmondscommerce/php-code-generator/blob/master/src/parser/visitor/TraitParserVisitor.php
Github Open Source
Open Source
Apache-2.0
null
php-code-generator
edmondscommerce
PHP
Code
13
62
<?php namespace gossi\codegen\parser\visitor; use gossi\codegen\parser\visitor\parts\StructParserPart; class TraitParserVisitor extends StructParserVisitor { use StructParserPart; }
27,032
https://github.com/camader/OpenAeroStruct/blob/master/openaerostruct/fortran/src/adjoint/Makefile
Github Open Source
Open Source
Apache-2.0
null
OpenAeroStruct
camader
Makefile
Code
81
272
MAIN_DIR = ../.. COMMON_FILE = $(MAIN_DIR)/common.mk RULES_FILE = $(MAIN_DIR)/rulesSources.mk include ${COMMON_FILE} include ${RULES_FILE} vpath %.o $(OBJDIR) FF90_OBJECTS_1 = adBuffer.o \ adStack.o \ outputReverse/oas_main_b.o \ outputForward/oas_main_d.o default: @echo " Making in OpenAeroStru...
50,708
https://github.com/twilroad/sources-for-php-mall/blob/master/src/Models/Store.php
Github Open Source
Open Source
Apache-2.0
null
sources-for-php-mall
twilroad
PHP
Code
296
1,107
<?php /** * This file is part of Notadd. * * @author TwilRoad <heshudong@ibenchu.com> * @copyright (c) 2017, notadd.com * @datetime 2017-05-09 15:08 */ namespace Notadd\Mall\Models; use Notadd\Foundation\Database\Model; use Notadd\Foundation\Database\Traits\HasFlow; use Symfony\Component\Workflow\Event\GuardEven...
6,496
https://github.com/deislabs/cnab-operator/blob/master/vendor/github.com/docker/cli/cli/command/context.go
Github Open Source
Open Source
MIT, Apache-2.0
2,021
cnab-operator
deislabs
Go
Code
100
230
package command import ( "errors" "github.com/docker/cli/cli/context/store" ) // DockerContext is a typed representation of what we put in Context metadata type DockerContext struct { Description string `json:",omitempty"` StackOrchestrator Orchestrator `json:",omitempty"` } // GetDockerContext extr...
39,615
https://github.com/techtronics/aurora-3/blob/master/django_project/django_project/settings-example.py
Github Open Source
Open Source
MIT
2,016
aurora-3
techtronics
Python
Code
837
2,857
""" Django settings for django_project project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...
9,902
https://github.com/taehwandev/GithubUserSearch/blob/master/app/build.gradle
Github Open Source
Open Source
Apache-2.0
2,019
GithubUserSearch
taehwandev
Gradle
Code
168
1,025
apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt' android { compileSdkVersion rootProject.compileSdkVersion defaultConfig { applicationId "tech.thdev.githubusersearch" minSdkVersion rootProject.minSdkVers...
32,763
https://github.com/eove/flow-analyzer-com/blob/master/packages/flow-analyzer-com-talk/lib/shell/commands/examplesCommandHandler.js
Github Open Source
Open Source
MIT
2,023
flow-analyzer-com
eove
JavaScript
Code
68
298
/* eslint-disable max-len */ const HELP_MSG = '\ measurements:\n\ run READ_MEASUREMENT \'{"name": "humidity"}\'\n\ run READ_MEASUREMENTS \'{"names": ["humidity", "peep"]}\'\n\ run READ_MIN_MAX_MEASUREMENT \'{"name": "humidity", "samplesNb": 100, "durationMS": 2000}\'\n\ settings:\n\ run READ_SETT...
27,672
https://github.com/SyntonicApps/unity-vrtk-examples/blob/master/Assets/VRTK/Prefabs/DestinationPoint.prefab
Github Open Source
Open Source
MIT
2,017
unity-vrtk-examples
SyntonicApps
Unity3D Asset
Code
984
4,344
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!1001 &100100000 Prefab: m_ObjectHideFlags: 1 serializedVersion: 2 m_Modification: m_TransformParent: {fileID: 0} m_Modifications: [] m_RemovedComponents: [] m_ParentPrefab: {fileID: 0} m_RootGameObject: {fileID: 1000014182278838} m_IsPrefabParent: ...
46,912
https://github.com/vdhanapa/jag-file-submission/blob/master/src/backend/libs/efiling-cso-client/src/main/java/ca/bc/gov/open/jag/efilingcsoclient/mappers/CsoPartyMapper.java
Github Open Source
Open Source
Apache-2.0
2,020
jag-file-submission
vdhanapa
Java
Code
99
485
package ca.bc.gov.open.jag.efilingcsoclient.mappers; import ca.bc.gov.ag.csows.filing.CsoParty; import ca.bc.gov.open.jag.efilingcommons.model.AccountDetails; import ca.bc.gov.open.jag.efilingcommons.model.Party; import ca.bc.gov.open.jag.efilingcsoclient.Keys; import org.mapstruct.Mapper; import org.mapstruct.Mapping...
477
https://github.com/Losant/application-templates/blob/master/indoor-asset-tracker/experience/develop/pages/manager-login.hbs
Github Open Source
Open Source
MIT
2,020
application-templates
Losant
null
Spoken
87
381
<body id="login-page"> <div class="panel-container"> <div class="panel-content"> <div id="login-page-logo"> <img src="{{file '/kanarra-logo-stacked.png'}}" width="171"> </div> {{#if pageData.loginFailure}} {{component "errorAlert" "Incorrect email or password....
49,957
https://github.com/honggui/lullaby/blob/master/redux/redux/modules/base/filepath.cc
Github Open Source
Open Source
Apache-2.0
2,022
lullaby
honggui
C++
Code
487
1,465
/* Copyright 2017-2022 Google Inc. All Rights Reserved. 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...
47,853
https://github.com/cbsinteractive/insights.js/blob/master/src/lib/chooseRandomTasks.ts
Github Open Source
Open Source
MIT
null
insights.js
cbsinteractive
TypeScript
Code
327
636
import assign from "../util/assign"; function mean(values: number[]): number { return values.reduce((memo: number, i): number => memo + i) / values.length; } /** * This defines a random number between 0 and "mass", which should cover the entire * domain of the probability distribution. Then we will "walk" the pro...
3,313
https://github.com/webservices-nl/platform-connector/blob/master/src/Connector/ProtocolAdapter/AbstractAdapter.php
Github Open Source
Open Source
MIT
2,022
platform-connector
webservices-nl
PHP
Code
80
209
<?php namespace WebservicesNl\Connector\ProtocolAdapter; use WebservicesNl\Connector\Client\ClientInterface; /** * AbstractAdapter. * * AbstractAdapter, base class for extending all Connector interface Adapters (adapter pattern). */ abstract class AbstractAdapter implements AdapterInterface { /** * @var...
43,016
https://github.com/jinliwei1997/mmcv/blob/master/mmcv/ops/csrc/pytorch/roi_align_cuda.cu
Github Open Source
Open Source
Apache-2.0
2,022
mmcv
jinliwei1997
null
Spoken
152
839
#include "pytorch_cuda_helper.hpp" #include "roi_align_cuda_kernel.cuh" void ROIAlignForwardCUDAKernelLauncher(Tensor input, Tensor rois, Tensor output, Tensor argmax_y, Tensor argmax_x, int aligned_height, int aligned_width, ...
45,498
https://github.com/referbruv/MailingNinja/blob/master/MailingNinja.Web/Views/MailingTemplates/List.cshtml
Github Open Source
Open Source
MIT
2,022
MailingNinja
referbruv
C#
Code
131
656
@using MailingNinja.Contracts.DTO @model List<NinjaDTO> <!DOCTYPE html> <html> <head> <style> .table-bordered { --bs-table-bg: transparent; --bs-table-accent-bg: transparent; --bs-table-striped-color: #212529; --bs-table-striped-bg: rgba(0, 0, 0, 0.05); ...
52,485
https://github.com/mmhobi7/JamsMusicPlayer/blob/master/jamsMusicPlayer/src/test/java/com/jams/music/player/test/ParserTest.java
Github Open Source
Open Source
Apache-2.0
2,014
JamsMusicPlayer
mmhobi7
Java
Code
33
102
package com.jams.music.player.test; import android.test.InstrumentationTestCase; import com.jams.music.player.Parser.*; public class ParserTest extends InstrumentationTestCase { private WikiArtistInfoParser parser; // dummy test public void testParse(){ int expected = 5; int actual = 5; ...
49,082
https://github.com/bryancalisto/Heladitos/blob/master/www/js/opcMain.js
Github Open Source
Open Source
MIT
null
Heladitos
bryancalisto
JavaScript
Code
174
771
var opcMain = { cargarPantalla(){ $('#main').find('[data-tag="helados"]').empty(); // Limpiamos lista de helados let data = fileSys.leer('data'); if(data != null){ let html = ''; if(data.helados.length == 0){ alert('Primero registre los heladitos'); return; } // Seteamos fechas de ultima c...
31,878
https://github.com/JarJak/effective-interest-rate/blob/master/tests/CalculatorEqualPaymentsTest.php
Github Open Source
Open Source
MIT
2,021
effective-interest-rate
JarJak
PHP
Code
71
231
<?php namespace Nyholm\EffectiveInterest\Test; use Nyholm\EffectiveInterest\Calculator; use PHPUnit\Framework\TestCase; class CalculatorEqualPaymentsTest extends TestCase { /** * @dataProvider generator */ public function testWithEqualPayments(float $correctValue, int $principal, int $payment, int ...
38,700
https://github.com/routetopa/spod-plugin-agora/blob/master/init.php
Github Open Source
Open Source
MIT
2,017
spod-plugin-agora
routetopa
PHP
Code
61
515
<?php OW::getRouter()->addRoute(new OW_Route('spodpublic.pr', 'public-room/:prId', "SPODPUBLIC_CTRL_PublicRoom", 'index')); OW::getRouter()->addRoute(new OW_Route('spodpublic.main', 'public-room', "SPODPUBLIC_CTRL_Main", 'index')); //Comments stuff OW::getRouter()->addRoute(new OW_Route('spodpublic.getcommentlist', '...
40,924
https://github.com/janastu/audio-tagger/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,015
audio-tagger
janastu
Ignore List
Code
21
64
# Ignore virtualenv directories and files bin/ include/ lib/ local/ build/ pip-selfcheck.json # Ignore editor recovery files *~ .*.sw[p|o] [#]*[#] .\#*
2,856
https://github.com/kahboom/atlasmap/blob/master/lib/itests/core/src/test/java/io/atlasmap/itests/core/CsvMappingTest.java
Github Open Source
Open Source
Apache-2.0
2,022
atlasmap
kahboom
Java
Code
332
1,318
/* * Copyright (C) 2017 Red Hat, 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 ...
28,653
https://github.com/dukex/ember-cli-mirage/blob/master/tests/unit/shorthands/delete-test.js
Github Open Source
Open Source
MIT
2,015
ember-cli-mirage
dukex
JavaScript
Code
148
550
import del from 'ember-cli-mirage/shorthands/delete'; import Db from 'ember-cli-mirage/db'; import {module, test} from 'qunit'; var contacts = [{id: 1, name: 'Link', address_ids: [1]}, {id: 2, name: 'Zelda', address_ids: [2]}]; var addresses = [{id: 1, name: '123 Hyrule Way', contact_id: 1}, {id: 2, name: '456 Hyrule...
38,932
https://github.com/bhagatparwinder/mvsqs/blob/master/types/awsArgs.ts
Github Open Source
Open Source
MIT
2,019
mvsqs
bhagatparwinder
TypeScript
Code
15
46
export interface AWSArgs { source: string; dest: string; aws_access?: string; aws_secret?: string; region?: string; }
10,938
https://github.com/vladyslavstartsev/rector/blob/master/packages/php-attribute/src/AnnotationToAttributeConverter.php
Github Open Source
Open Source
MIT
null
rector
vladyslavstartsev
PHP
Code
231
1,056
<?php declare(strict_types=1); namespace Rector\PhpAttribute; use PhpParser\Node; use PhpParser\Node\Attribute; use PhpParser\Node\AttributeGroup; use PhpParser\Node\Expr\ArrowFunction; use PhpParser\Node\Expr\Closure; use PhpParser\Node\Name\FullyQualified; use PhpParser\Node\Stmt\Class_; use PhpParser\Node\Stmt\Cl...
42,080
https://github.com/acs-um/deptos/blob/master/deptos/usuarios/migrations/0001_initial.py
Github Open Source
Open Source
Apache-2.0
2,017
deptos
acs-um
Python
Code
75
425
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.Create...
13,742
https://github.com/RockinY/core-api/blob/master/src/mutations/user/editUser.js
Github Open Source
Open Source
MIT
null
core-api
RockinY
JavaScript
Code
161
353
// @flow import type { GraphQLContext } from '../../flowTypes' import type { EditUserInput } from '../../models/user' import UserError from '../../utils/userError' import { getUser, editUser } from '../../models/user' export default (_: any, args: EditUserInput, { user }: GraphQLContext) => { const currentUser = use...
51,571
https://github.com/jamescellsct/flexbook/blob/master/src/sass/base/_base.sass
Github Open Source
Open Source
BSD-3-Clause
2,020
flexbook
jamescellsct
Sass
Code
21
46
// ----------------------------------------------------------------------------- // Boilerplate styles for the project. // @group base // @author Lexus Drumgold // ----------------------------------------------------------------------------- @import common @import helpers/helpers
14,322
https://github.com/Eph-It/MEM.CommunityCenter/blob/master/CommunityCenter/CommunityCenter.Models/RBAC/fn_rbac_DeviceClientHealthState.cs
Github Open Source
Open Source
MIT
null
MEM.CommunityCenter
Eph-It
C#
Code
130
275
using System; namespace CommunityCenter.Models.RBAC { public class fn_rbac_DeviceClientHealthState { public string DeviceClientID { get; set; } public string DeviceNetBiosName { get; set; } public string DeviceID { get; set; } public string AssignedSiteCode { get; set; } ...
34,862
https://github.com/AgoraIO-Community/RTE-2021-Innovation-Challenge/blob/master/Application-Challenge/【加油,打工人】AgoraHomeAI/Yolo-Unity-Agora/Assets/AVProVideo/Scripts/Internal/WebGLMediaPlayer.cs
Github Open Source
Open Source
MIT
2,022
RTE-2021-Innovation-Challenge
AgoraIO-Community
C#
Code
1,855
6,163
#if UNITY_WEBGL using UnityEngine; using System.Runtime.InteropServices; using System; //----------------------------------------------------------------------------- // Copyright 2015-2020 RenderHeads Ltd. All rights reserved. //----------------------------------------------------------------------------- namespac...
54,050
https://github.com/mattions/sb-ci/blob/master/test_scripts/run_fastqc_tool_cwl1.0.sh
Github Open Source
Open Source
Apache-2.0
2,021
sb-ci
mattions
Shell
Code
40
165
#!/usr/bin/env bash # Author: Jeffrey Grover # Created: 09/2021 # Purpose: Run the fastqc_tool_cwl1.0 job for testing purposes # Run this script to test a real workflow execution including its output DATETIME=$(date +"%Y%m%d_%H%M%S") cwltool --outdir "${DATETIME}_fastqc_tool_cwl1.0" \ fastqc_tool_cwl1.0/fastqc_to...
51,286
https://github.com/likun123687/xmake/blob/master/xmake/rules/utils/merge_archive/xmake.lua
Github Open Source
Open Source
Apache-2.0
2,022
xmake
likun123687
Lua
Code
189
514
--!A cross-platform build utility based on Lua -- -- 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...
40,641
https://github.com/bukalapak/drafter-go/blob/master/plugin/client/client.go
Github Open Source
Open Source
MIT
2,021
drafter-go
bukalapak
Go
Code
78
222
package client import ( "plugin" "github.com/bukalapak/drafter-go" ) type Config struct { Name string } func (c Config) pluginName() string { if c.Name == "" { return "drafter.so" } return c.Name } func New(cfg Config) (drafter.Drafter, error) { plug, err := plugin.Open(cfg.pluginName()) if err != nil {...
36,541
https://github.com/annacjy/goodeed-app/blob/master/utils/functions.js
Github Open Source
Open Source
MIT
2,021
goodeed-app
annacjy
JavaScript
Code
134
334
export const calcDistance = (lat1, lon1, lat2, lon2) => { if (lat1 === lat2 && lon1 === lon2) { return 0; } else { const radlat1 = (Math.PI * lat1) / 180; const radlat2 = (Math.PI * lat2) / 180; const theta = lon1 - lon2; const radtheta = (Math.PI * theta) / 180; let dist = Math.sin(radlat1)...
42,644
https://github.com/tiwer/letv/blob/master/src/main/java/com/letv/lepaysdk/model/PayCard.java
Github Open Source
Open Source
Apache-2.0
2,021
letv
tiwer
Java
Code
409
1,212
package com.letv.lepaysdk.model; import android.text.TextUtils; import java.io.Serializable; public class PayCard implements Serializable { private String bankcode; private String bankname; private String bind_id; private String cardno; private String change; private String channel_id; pri...
50,771
https://github.com/sauber/spoejs/blob/master/lib/Spoejs/Resource.pm
Github Open Source
Open Source
Artistic-1.0
2,009
spoejs
sauber
Perl
Code
153
412
package Spoejs::Resource; use base ( "Spoejs::Text" ); # $Id: Resource.pm,v 1.11 2004/04/10 06:47:45 sauber Exp $ $Spoejs::Resource::VERSION = $Spoejs::Resource::VERSION = '$Revision: 1.11 $'; # Set path and filename for resource file # sub _initialize { my $self = shift; # XXX: Spoejs.pm eats @_ before it ge...
30,900
https://github.com/MediaComem/biopocket-mobile/blob/master/src/models/location.spec.ts
Github Open Source
Open Source
MIT
null
biopocket-mobile
MediaComem
TypeScript
Code
317
1,336
// Mocha global variables (for Windows) /// <reference path="../../node_modules/@types/mocha/index.d.ts" /> import { expect } from 'chai'; import { Location } from '@models/location'; describe('Location Object', function() { let locationData; let locationObj; const locationRequiredKeys = [ 'id', 'name', 'd...
46,822
https://github.com/kdaviesnz/escrow/blob/master/src/IItem.php
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,017
escrow
kdaviesnz
PHP
Code
31
81
<?php namespace kdaviesnz\escrow; interface IItem { public function getDescription(): string; public function getAmount(): float; public function getTitle(): string; public function getInspectionPeriod(): int; public function getType(): string; public function getQuantity(): int; }
49,120
https://github.com/klaus7/restapi/blob/master/modules/rest-api/src/com/haulmont/addon/restapi/api/controllers/DocumentationController.java
Github Open Source
Open Source
Apache-2.0
2,020
restapi
klaus7
Java
Code
324
1,180
/* * Copyright (c) 2008-2019 Haulmont. * * 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 agr...
34,030
https://github.com/kaljarv/ehdokaskartta/blob/master/src/app/core/pipes/fix-spaces.pipe.ts
Github Open Source
Open Source
MIT
2,021
ehdokaskartta
kaljarv
TypeScript
Code
81
191
import { Pipe, PipeTransform } from '@angular/core'; /* * Fixes spacing issues in strings, especially for with punctuation */ @Pipe({ name: 'fixSpaces' }) export class FixSpacesPipe implements PipeTransform { transform(value: any): string { return (typeof value === 'string' ? value : value.toString()) ...
3,711
https://github.com/wdolek/parallelator/blob/master/src/Parallelator.Benchmark/Program.cs
Github Open Source
Open Source
Unlicense
2,018
parallelator
wdolek
C#
Code
29
115
using BenchmarkDotNet.Running; using Parallelator.Benchmark.Benchmarks; namespace Parallelator.Benchmark { public class Program { static void Main(string[] args) { var switcher = new BenchmarkSwitcher(new[] { typeof(DeserializingLoaderBenchmarks), ty...
26,978
https://github.com/oswis-org/oswis-calendar-bundle/blob/master/Entity/NonPersistent/FlagsByType.php
Github Open Source
Open Source
MIT
2,020
oswis-calendar-bundle
oswis-org
PHP
Code
87
333
<?php namespace OswisOrg\OswisCalendarBundle\Entity\NonPersistent; use Doctrine\Common\Collections\Collection; use OswisOrg\OswisCalendarBundle\Entity\Registration\RegistrationFlag; class FlagsByType { /** * Gets array of flags aggregated by their types. * * @param Collection $flags * ...
41,080
https://github.com/aws/aws-sdk-net/blob/master/sdk/src/Services/EC2/Generated/Model/Internal/MarshallTransformations/CreateVpnConnectionRequestMarshaller.cs
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-proprietary-license, LicenseRef-scancode-public-domain, MIT, LicenseRef-scancode-unknown-license-reference
2,023
aws-sdk-net
aws
C#
Code
1,016
4,562
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fi...
36,366
https://github.com/jonpspri/bazel/blob/master/src/test/java/com/google/devtools/build/android/DensitySpecificResourceFilterTest.java
Github Open Source
Open Source
Apache-2.0
2,020
bazel
jonpspri
Java
Code
596
3,506
// Copyright 2017 The Bazel Authors. All rights reserved. // // 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 appl...
20,889
https://github.com/skylark-integration/skylark-tether/blob/master/dist/skylark-tether/main.js
Github Open Source
Open Source
MIT
null
skylark-tether
skylark-integration
JavaScript
Code
33
112
/** * skylark-tether - A version of tether that ported to running on skylarkjs ui. * @author Hudaokeji, Inc. * @version v0.9.0 * @link https://github.com/skylark-integration/skylark-tether/ * @license MIT */ define(["./Tether"],function(e){return e}); //# sourceMappingURL=sourcemaps/main.js.map
54,961
https://github.com/ReactExpert918/Laravel-3geniusMarketing/blob/master/resources/views/templates/tmp2/contact.blade.php
Github Open Source
Open Source
MIT
2,022
Laravel-3geniusMarketing
ReactExpert918
PHP
Code
143
796
@extends(activeTemplate() .'layouts.master') @section('content') @include(activeTemplate() .'layouts.breadcrumb') <section class="contact-section padding-bottom padding-top"> <div class="container"> <div class="contact-wrapper padding-bottom padding-top"> <div class="row"...
19,300
https://github.com/zane-games/Plugins.RP/blob/master/Entities/City.cs
Github Open Source
Open Source
MIT
2,019
Plugins.RP
zane-games
C#
Code
51
111
using System; using System.Collections.Generic; using System.Text; namespace HeroBot.Plugins.RP.Entities { class City { public string Id { get; set; } public string Name { get; set; } public string OwnerId {get;set;} public string Description { get; set; } = "*no description*";...
39,434
https://github.com/0xkhan/ecommvc/blob/master/app/config/_env.php
Github Open Source
Open Source
Apache-2.0
null
ecommvc
0xkhan
PHP
Code
16
75
<?php define('BASE_PATH', realpath(__DIR__ . '/../../')); require_once __DIR__ . '/../../vendor/autoload.php'; // phpdotenv data $dotEnv = Dotenv\Dotenv::createImmutable(BASE_PATH); $dotEnv->load();
54,831
https://github.com/jumptrading/rpc/blob/master/port.h
Github Open Source
Open Source
Apache-2.0
2,021
rpc
jumptrading
C
Code
46
140
/********************************************************************* * Copyright (c) Intel Corporation 2019 - 2020 * SPDX-License-Identifier: Apache-2.0 **********************************************************************/ #ifndef __PORT_H__ #define __PORT_H__ #include <string.h> extern "C" { // main entry i...
52,502
https://github.com/davidsilveri0/myLibrary/blob/master/console/migrations/m201111_174512_backend.php
Github Open Source
Open Source
BSD-3-Clause
2,021
myLibrary
davidsilveri0
PHP
Code
682
4,282
<?php use yii\db\Migration; /** * Class m201111_174512_backend */ class m201111_174512_backend extends Migration { /** * {@inheritdoc} */ public function safeUp() { $tableOptions = null; if ($this->db->driverName === 'mysql') { // http://stackoverflow.com/questions...
5,083
https://github.com/jbellis/superpixel-benchmark/blob/master/lib_dasp/lib_dasp_graphseg/Labeling.cpp
Github Open Source
Open Source
Unlicense
2,022
superpixel-benchmark
jbellis
C++
Code
60
214
#include "Labeling.hpp" namespace graphseg { void GraphLabeling::relabel() { // find set of unique labels std::set<int> unique_labels_set(labels.begin(), labels.end()); std::vector<int> unique_labels(unique_labels_set.begin(), unique_labels_set.end()); num_labels = unique_labels.size(); // create new labeling f...
26,203
https://github.com/dhiganthrao/bunk_bot/blob/master/coordinate_finder.py
Github Open Source
Open Source
MIT
null
bunk_bot
dhiganthrao
Python
Code
151
252
import pyautogui from time import sleep pyautogui.PAUSE = 1 sleep(5) # this pyautogui.position() returns the x and y coordinates of the mouse # one you start the execution of the file, you have 5 seconds to position the mouse on a point who's coordinates you need # for example: if i place the mouse on top of the goog...
30,327
https://github.com/ajayk/opstrace/blob/master/packages/app/src/client/components/Spinner/Spinner.tsx
Github Open Source
Open Source
Apache-2.0
2,022
opstrace
ajayk
TypeScript
Code
219
536
/** * Copyright 2020 Opstrace, 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 agree...
15,516
https://github.com/TeleSoftas/git-config-commit-template-ij-plugin/blob/master/src/main/scala/com/telesoftas/ijplugin/gitconfigcommittemplate/wrapper/MessageTemplate.scala
Github Open Source
Open Source
Apache-2.0
2,021
git-config-commit-template-ij-plugin
TeleSoftas
Scala
Code
113
432
package com.telesoftas.ijplugin.gitconfigcommittemplate.wrapper import java.io._ import com.intellij.openapi.project._ import com.telesoftas.ijplugin.gitconfigcommittemplate.ImplicitProjectApi import com.telesoftas.ijplugin.gitconfigcommittemplate.ImplicitsFileApi import git4idea.commands._ import scala.jdk.Collecti...
28,935
https://github.com/dbala1995/Helm/blob/master/client/src/core/config/styles.js
Github Open Source
Open Source
Apache-2.0
2,021
Helm
dbala1995
JavaScript
Code
504
1,835
import get from "lodash/get" import DeepMerge from "deepmerge" import { createMuiTheme } from "@material-ui/core/styles" import { themeImages } from "../../version/config/theme.config" export const ITEMS_PER_PAGE = 10 // const defaultLightPalette = { // type: "light", // mainColor: "#0D672F", // dangerColor: "...
47,503
https://github.com/IrregularShed/just-task/blob/master/packages/just-scripts/src/tasks/__tests__/exec.spec.ts
Github Open Source
Open Source
MIT
2,019
just-task
IrregularShed
TypeScript
Code
56
185
import { encodeArgs } from '../exec'; describe('encodeArgs', () => { it('encodes things with spaces with double quotes', () => { const args = encodeArgs(['blah blah']); expect(args[0]).toBe('"blah blah"'); }); it('encodes Windows-like paths', () => { const args = encodeArgs(['C:\\Program Files\\node...
51,582
https://github.com/Enstore-org/enstore/blob/master/gadfly/idl.py
Github Open Source
Open Source
LicenseRef-scancode-other-permissive, LicenseRef-scancode-warranty-disclaimer
2,023
enstore
Enstore-org
Python
Code
1,709
4,301
# idl grammar # # Note, this grammar requires a special hack at the lexical # level in order to parse the fragment # # ... # case abc::def: jjj::www: whatever... # # (Yuck!) # Some would argue this is a language design flaw, but whatever... # It causes a shift/reduce problem without special handling for :: # below co...
28,617
https://github.com/james-721/chat_limpet/blob/master/test_incoming.py
Github Open Source
Open Source
MIT
null
chat_limpet
james-721
Python
Code
163
704
import zlib import zmq import simplejson import sys import time import pprint import math pp = pprint.PrettyPrinter(indent=4) """ " Configuration """ __relayEDDN = 'tcp://eddn.edcd.io:9500' __timeoutEDDN = 600000 """ " Start """ def distance_finder(input_coords): colonia_coords = [-953...
2,882
https://github.com/hienle2703/HTTTDN/blob/master/admin/phuong.php
Github Open Source
Open Source
MIT
2,019
HTTTDN
hienle2703
PHP
Code
332
1,445
<div class="section__content section__content--p30"> <div class="container-fluid"> <div class="row"> <div class="col-lg-6"> <div class="card"> <div class="card-body"> <div class="card-title"> <h3 class="text-...
10,289
https://github.com/aibotsoft/pin/blob/master/migrations/20200426151044_tAccount.down.sql
Github Open Source
Open Source
Apache-2.0
null
pin
aibotsoft
SQL
Code
6
14
drop table dbo.Account drop table dbo.Balance
41,142
https://github.com/JochenKoertner/LockbaseELI/blob/master/backend/coredomain/ValueObjects/RecurrenceRuleDayOfWeek.cs
Github Open Source
Open Source
MIT
2,023
LockbaseELI
JochenKoertner
C#
Code
242
899
using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; using System.Text; using System.Text.RegularExpressions; using Lockbase.CoreDomain.Enumerations; using Lockbase.CoreDomain.Extensions; namespace Lockbase.CoreDomain.ValueObjects { [Deb...
17,843
https://github.com/cuong301199/shop-handmade/blob/master/app/Http/Controllers/ThanhToanController.php
Github Open Source
Open Source
MIT
null
shop-handmade
cuong301199
PHP
Code
929
5,145
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Auth; use DB; use Session; use Cart; use Carbon\Carbon; class ThanhToanController extends Controller { public function index(){ $id_nd= Auth::guard('nguoi_dung')->user()->id; $nguoidung = DB::table('nguoi_dung')->where('id',$id_...
26,248
https://github.com/iparask/campaign_manager/blob/master/src/radical/cm/planner/random_planner.py
Github Open Source
Open Source
MIT
2,019
campaign_manager
iparask
Python
Code
336
972
""" Author: Ioannis Paraskevakos License: MIT Copyright: 2018-2019 """ import os from random import randint, seed from .base import Planner class RandomPlanner(Planner): ''' This class implements a campaign planner based on random selection of resources for workflows. The random selection is happening ba...
2,676
https://github.com/visnix/gitlab-foss/blob/master/spec/frontend/vue_shared/components/dropdown_keyboard_navigation_spec.js
Github Open Source
Open Source
MIT
2,022
gitlab-foss
visnix
JavaScript
Code
441
1,298
import { shallowMount } from '@vue/test-utils'; import DropdownKeyboardNavigation from '~/vue_shared/components/dropdown_keyboard_navigation.vue'; import { UP_KEY_CODE, DOWN_KEY_CODE, TAB_KEY_CODE } from '~/lib/utils/keycodes'; const MOCK_INDEX = 0; const MOCK_MAX = 10; const MOCK_MIN = 0; const MOCK_DEFAULT_INDEX = 0...
4,380
https://github.com/unrealengineplayground/DataAccessUE4/blob/master/Source/DataAccess/Public/Sqlite/SqliteDataHandler.h
Github Open Source
Open Source
MIT
2,015
DataAccessUE4
unrealengineplayground
C++
Code
279
751
// Copyright 2015 afuzzyllama. All Rights Reserved. #pragma once #include "IDataHandler.h" // forward declaration class SqliteDataResource; typedef struct sqlite3_stmt sqlite3_stmt; /** * Implementation of the IDataHandler for Sqlite */ class DATAACCESS_API SqliteDataHandler : public IDataHandler { public: /**...
48,529
https://github.com/DaniilSydorenko/chocolate.grid.js/blob/master/lib/grid/Grid.js
Github Open Source
Open Source
MIT
2,020
chocolate.grid.js
DaniilSydorenko
JavaScript
Code
346
974
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("val...
38,694
https://github.com/playframework/playframework/blob/master/cache/play-ehcache/src/test/scala/play/api/cache/ehcache/EhCacheApiSpec.scala
Github Open Source
Open Source
Apache-2.0
2,023
playframework
playframework
Scala
Code
292
1,204
/* * Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com> */ package play.api.cache.ehcache import java.util.concurrent.Executors import javax.inject.Inject import javax.inject.Provider import scala.concurrent.duration._ im...
33,713
https://github.com/OpenXIP/xip-libraries/blob/master/src/extern/inventor/doc/man/ivman/BuildIssues.c++
Github Open Source
Open Source
Apache-2.0
2,021
xip-libraries
OpenXIP
C++
Code
483
932
/* * * Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your opti...
56,102
https://github.com/SebKister/purethermal1-firmware/blob/master/Makefile
Github Open Source
Open Source
MIT
2,022
purethermal1-firmware
SebKister
Makefile
Code
524
2,089
export SYSTEM ?= arm-none-eabi- CC = $(SYSTEM)gcc CCDEP = $(SYSTEM)gcc LD = $(SYSTEM)gcc AR = $(SYSTEM)ar AS = $(SYSTEM)gcc OBJCOPY = $(SYSTEM)objcopy OBJDUMP = $(SYSTEM)objdump GDB = $(SYSTEM)gdb SIZE = $(SYSTEM)size OCD ?= openocd CPU = -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=f...
56,390
https://github.com/pnkraemer/tornadox/blob/master/tests/test_ek1.py
Github Open Source
Open Source
MIT
2,022
tornadox
pnkraemer
Python
Code
1,253
5,746
"""Tests for the EK1 implementation.""" import dataclasses import jax import jax.numpy as jnp import pytest from scipy.integrate import solve_ivp import tornadox # Commonly reused fixtures @pytest.fixture def ivp(): return tornadox.ivp.vanderpol(t0=0.0, tmax=0.25, stiffness_constant=1.0) @pytest.fixture def...
21,306
https://github.com/zslabs/portfolio/blob/master/src/components/Footer.js
Github Open Source
Open Source
MIT
null
portfolio
zslabs
JavaScript
Code
234
902
import PropTypes from 'prop-types' import { useTheme } from '@emotion/react' import clsx from 'clsx' import { rgba } from 'polished' import { link } from 'chaoskit/src/assets/styles/utility' import { motion } from 'framer-motion' import Icon from './Icon' import TextLink from '~components/TextLink' import pattern fro...
27,670
https://github.com/K-Be/RAVPresentersKit/blob/master/TableController/example/ui/pet/RAVPetCell.m
Github Open Source
Open Source
MIT
2,020
RAVPresentersKit
K-Be
Objective-C
Code
43
136
// // RAVPetCell.m // TableController // // Created by Andrew Romanov on 25.04.14. // Copyright (c) 2014 Andrew Romanov. All rights reserved. // #import "RAVPetCell.h" @interface RAVPetCell () @end @implementation RAVPetCell - (void)setPetModel:(RAVPetModel *)petModel { _petModel = petModel; self.textLab...
48,015
https://github.com/shivamcode/C-codes/blob/master/helloWorld.c
Github Open Source
Open Source
Unlicense
2,018
C-codes
shivamcode
C
Code
8
30
#include<stdio.h> void main() { if(printf("\n Hello World")){} }
17,941