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/v-anpunko/java-sandbox/blob/master/grpc-sample/src/main/java/by/andd3dfx/temperrature/TemperatureGrpcClient.java
Github Open Source
Open Source
MIT
2,019
java-sandbox
v-anpunko
Java
Code
69
276
package by.andd3dfx.temperrature; import by.andd3dfx.grpc.TemperatureRequest; import by.andd3dfx.grpc.TemperatureResponse; import by.andd3dfx.grpc.TemperatureServiceGrpc; import io.grpc.ManagedChannel; import io.grpc.ManagedChannelBuilder; import java.util.Random; public class TemperatureGrpcClient { public stat...
40,728
https://github.com/Rohit484/Distribution/blob/master/i/ink/src/main/scala/typings/ink/boxMod/default.scala
Github Open Source
Open Source
MIT
2,020
Distribution
Rohit484
Scala
Code
46
195
package typings.ink.boxMod import org.scalablytyped.runtime.TopLevel import typings.ink.anon.readonlymarginnumberundef import typings.react.mod.ForwardRefExoticComponent import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} ...
22,876
https://github.com/mindflayer/alchemical/blob/master/examples/aioflaskr/tests/test_init.py
Github Open Source
Open Source
MIT
2,022
alchemical
mindflayer
Python
Code
63
265
import pytest from flaskr import create_app def test_config(): """Test create_app without passing test config.""" assert not create_app().testing assert create_app({"TESTING": True}).testing def test_db_url_environ(monkeypatch): """Test DATABASE_URL environment variable.""" monkeypatch.setenv("D...
49,369
https://github.com/mahmoudimus/ac/blob/master/confluence/confluence-integration-tests/src/test/java/it/confluence/jsapi/TestNavigatorContext.java
Github Open Source
Open Source
Apache-2.0
2,021
ac
mahmoudimus
Java
Code
262
1,323
package it.confluence.jsapi; import com.atlassian.confluence.api.model.content.Content; import com.atlassian.confluence.it.Page; import com.atlassian.plugin.connect.modules.beans.WebItemTargetType; import com.atlassian.plugin.connect.modules.beans.nested.I18nProperty; import com.atlassian.plugin.connect.modules.util.M...
30,220
https://github.com/phuctrang/Chatbot-DeepLearning-Python/blob/master/app.py
Github Open Source
Open Source
MIT
null
Chatbot-DeepLearning-Python
phuctrang
Python
Code
56
234
from flask import Flask, render_template, jsonify, request import processor # import os # os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' app = Flask(__name__) app.config['SECRET_KEY'] = 'enter-a-very-secretive-key-3479373' @app.route('/', methods=["GET", "POST"]) def index(): return render_template('index.html', **loc...
40,543
https://github.com/AnonymousSEMA/SEMA-ToolChain/blob/master/src/ToolChainSCDG/procedures/windows/custom_package/QueryPerformanceCounter.py
Github Open Source
Open Source
BSD-2-Clause
null
SEMA-ToolChain
AnonymousSEMA
Python
Code
39
162
import logging import time as timer import angr lw = logging.getLogger("CustomSimProcedureWindows") class QueryPerformanceCounter(angr.SimProcedure): def run(self, ptr): if angr.options.USE_SYSTEM_TIMES in self.state.options: val = int(timer.perf_counter() * 1000000) + 12345678 se...
33,473
https://github.com/agiledots/spring-boot-sample/blob/master/src/main/java/com/agiledots/springboot/DemoApplication.java
Github Open Source
Open Source
MIT
2,018
spring-boot-sample
agiledots
Java
Code
34
155
package com.agiledots.springboot; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; import nz.net.ultraq.thymeleaf.LayoutDialect; @SpringBootApplication public class DemoApplication { public st...
51,087
https://github.com/nickproud/OpenBots.Server/blob/master/OpenBots.Server.Web/ClientApp/src/app/pages/Dashboard/Dashboard.module.ts
Github Open Source
Open Source
Apache-2.0
null
OpenBots.Server
nickproud
TypeScript
Code
67
260
import { NgModule } from '@angular/core'; import { NbButtonModule, NbCardModule, NbProgressBarModule, NbTabsetModule, NbUserModule, NbIconModule, NbSelectModule, NbListModule, } from '@nebular/theme'; import { ThemeModule } from '../../@theme/theme.module'; import { ChartsModule } from 'ng2-charts'; im...
25,517
https://github.com/VanMess/ice/blob/master/tools/iceworks/app/main/utils/autoRetry.js
Github Open Source
Open Source
MIT
2,019
ice
VanMess
JavaScript
Code
70
191
/** * 自动重试 * @param {*} fn 被重试的方法 * @param {*} maxTryTimes 重试次数 * @param {*} retryCondition 返回 true 则进入重试逻辑 */ module.exports = function autoRetry(fn, maxTryTimes, retryCondition) { return async function (...args) { let tryTimes = 0; return await (async function inner() { try { tryTimes++; ...
9,914
https://github.com/RapidoCoder/islamic/blob/master/local/app/Http/Controllers/Frontend/BooksController.php
Github Open Source
Open Source
MIT
2,016
islamic
RapidoCoder
PHP
Code
212
955
<?php namespace App\Http\Controllers\Frontend; use Illuminate\Http\Request; use App\Http\Requests; use App\Http\Controllers\Controller; use App\Book; use Carbon\Carbon; use App\BookCategory; use App\BookWriter; use App\BookComment; class BooksController extends Controller { public function index(){ $books = B...
22,632
https://github.com/IvanKovalchukAF/modul_4/blob/master/news_portal/resources/views/admin-lte/category/editCategory.blade.php
Github Open Source
Open Source
MIT
2,017
modul_4
IvanKovalchukAF
Blade
Code
72
369
@extends('admin-lte.admin_template') @section('content') <div class="container" {{$page_title = 'Редактирование категории:'}}> <div class="row"> <!-- edit form column --> <div class="col-md-9 personal-info"> <br> <br> {{--Edit form--}}...
30,538
https://github.com/irynaO/JavaScript-Design-Patterns/blob/master/GoF/idiomatic/Structural/Facade/CoffeeScript/API/animals.coffee
Github Open Source
Open Source
MIT
2,022
JavaScript-Design-Patterns
irynaO
CoffeeScript
Code
31
92
'use strict' # ============================== # ANIMALS # ============================== dog = eat: -> "Dog: 'Meat, please!'\n" rabbit = eat: -> "Rabbit: 'A carrot would be great!'\n" module.exports = dog: dog rabbit: rabbit
33,761
https://github.com/lessonone1/sparkLu/blob/master/src/test/scala/top/myetl/lucenerdd/LuceneRDDQueryTest.scala
Github Open Source
Open Source
Apache-2.0
2,020
sparkLu
lessonone1
Scala
Code
114
552
package top.myetl.lucenerdd import com.holdenkarau.spark.testing.SharedSparkContext import org.apache.lucene.document.Document import org.apache.lucene.search.ScoreDoc import org.scalatest.{BeforeAndAfterEach, FlatSpec, Matchers} import top.myetl.lucenerdd.convert.DocToBean import top.myetl.lucenerdd.query.MyQuery imp...
15,095
https://github.com/bmario/scorep_plugin_cxx_wrapper/blob/master/include/scorep/plugin/policy/object_id.hpp
Github Open Source
Open Source
BSD-3-Clause
2,019
scorep_plugin_cxx_wrapper
bmario
C++
Code
434
1,200
/* * Copyright (c) 2015-2016, Technische Universität Dresden, Germany * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted * provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright n...
23,538
https://github.com/luni64/TeensyTimerTool/blob/master/examples/99_Misc/PinInformation/GPIO_Info.h
Github Open Source
Open Source
MIT
2,023
TeensyTimerTool
luni64
C++
Code
131
497
#pragma once #include "core_pins.h" #include <cstdint> struct GPIO_Info_t { inline GPIO_Info_t(unsigned pin); const uintptr_t pinCfg; const unsigned gpioPortNr; const unsigned gpioBitNr; char name[20]; }; //====================================================================================== #i...
43,427
https://github.com/dansmathers/riscv-arch-test/blob/master/riscv-test-suite/rv64i_m/P_unratified/src/kmaxda32-01.S
Github Open Source
Open Source
BSD-3-Clause, Apache-2.0, CC-BY-4.0, LicenseRef-scancode-unknown-license-reference
2,023
riscv-arch-test
dansmathers
Unix Assembly
Code
4,283
20,334
// ----------- // This file was generated by riscv_ctg (https://github.com/riscv-software-src/riscv-ctg) // version : 0.6.3 // timestamp : Sat Apr 23 14:55:55 2022 GMT // usage : riscv_ctg \ // --cgf /scratch/git-repo/github/riscv_ctg/sample_cgfs/dataset.cgf \ // --cgf /scratch/...
9,380
https://github.com/Jeromegr89/tatum-js/blob/master/packages/api-client/src/generated/models/ResponseData.ts
Github Open Source
Open Source
MIT
null
tatum-js
Jeromegr89
TypeScript
Code
117
226
/* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { Address } from './Address'; export type ResponseData = { address?: Address; /** * Amount of unprocessed transaction outputs, that can be used for withdrawal. Bitcoin, Litecoin, Bitcoin Cash only. */ amount?: numbe...
37,302
https://github.com/viticm/web-pap/blob/master/server/Server/Packets/CGAskTeamMemberInfoHandler.cpp
Github Open Source
Open Source
BSD-3-Clause
2,021
web-pap
viticm
C++
Code
205
1,197
#include "stdafx.h" // CGAskTeamMemberInfoHandler.cpp #include "CGAskTeamMemberInfo.h" #include "GCTeamMemberInfo.h" #include "GWAskTeamMemberInfo.h" #include "ServerManager.h" #include "PacketFactoryManager.h" #include "GamePlayer.h" #include "PlayerPool.h" #include "Obj_Human.h" #include "HumanDB.h" #include "Scen...
54,339
https://github.com/balmasea/genieparser/blob/master/src/genie/libs/parser/iosxe/tests/ShowCtsWirelessProfilePolicy/cli/equal/golden_output_expected.py
Github Open Source
Open Source
Apache-2.0
2,022
genieparser
balmasea
Python
Code
34
168
expected_output = { "policy_name": { "xyz-policy": { "role_based_enforcement": "ENABLED", "inline_tagging": "ENABLED", "default_sgt": "100" }, "foo2": { "role_based_enforcement": "DISABLED", "inline_tagging": "ENABLED", ...
19,984
https://github.com/Uno95/f7c8497c/blob/master/app/Exports/TestExport.php
Github Open Source
Open Source
MIT
2,018
f7c8497c
Uno95
PHP
Code
21
74
<?php namespace App\Exports; use Illuminate\Contracts\View\View; use Maatwebsite\Excel\Concerns\FromView; class TestExport implements FromView { public function view(): View { return view('excel.export'); } }
35,410
https://github.com/papachristoumarios/call-graphs/blob/master/scripts/utils.py
Github Open Source
Open Source
MIT
2,022
call-graphs
papachristoumarios
Python
Code
75
281
import networkx as nx import numpy as np import argparse import os from multiprocessing import cpu_count def read_graph(filename): dirname, graph_type = os.path.split(filename) graph_type = graph_type.strip('_all').strip('*.txt') _, system = os.path.split(dirname) G = nx.DiGraph() with open(filena...
19,025
https://github.com/seekersapp2013/new/blob/master/node_modules/svelte-language-server/dist/src/lib/DiagnosticsManager.js
Github Open Source
Open Source
MIT
null
new
seekersapp2013
JavaScript
Code
69
239
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DiagnosticsManager = void 0; class DiagnosticsManager { constructor(sendDiagnostics, docManager, getDiagnostics) { this.sendDiagnostics = sendDiagnostics; this.docManager = docManager; this.getDiagnostics = ...
7,880
https://github.com/nttps/notifbot/blob/master/android/BUILD
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,020
notifbot
nttps
Starlark
Code
59
346
load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kt_android_library") PACKAGE = "com.yhsif.notifbot" MANIFEST = "AndroidManifest.xml" MANIFEST_VALUES = {"PACKAGE": PACKAGE} android_binary( name = "app", custom_package = PACKAGE, manifest = MANIFEST, manifest_values = MANIFEST_VALUES, deps = [ ...
7,726
https://github.com/mindspore-ai/mindspore/blob/master/mindspore/ccsrc/plugin/device/gpu/kernel/nccl/nccl_p2p_gpu_kernel.h
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-proprietary-license, MPL-1.0, OpenSSL, LGPL-3.0-only, LicenseRef-scancode-warranty-disclaimer, BSD-3-Clause-Open-MPI, MIT, MPL-2.0-no-copyleft-exception, NTP, BSD-3-Clause, GPL-1.0-or-later, 0BSD, MPL-2.0, LicenseRef-scancode-free-unknown, AGPL-3.0-only, Libpng, MPL-1.1, IJG, GPL-2.0-onl...
2,023
mindspore
mindspore-ai
C++
Code
753
2,768
/** * Copyright 2021-2022 Huawei Technologies 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 applicabl...
43,752
https://github.com/cietwwl/BadugiPokerServer/blob/master/badugi-game-logic/src/main/java/com/badugi/game/logic/model/entity/TcPayToken.java
Github Open Source
Open Source
MIT
2,016
BadugiPokerServer
cietwwl
Java
Code
181
543
package com.badugi.game.logic.model.entity; import java.sql.Timestamp; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import static javax.persistence.GenerationType.IDENTITY; import javax.persistence.Id; import javax.persistence.Table; /** * UserTask entity...
22,536
https://github.com/chenzhengda/tensorflow/blob/master/tensorflow/python/ipu/tests/nn_ops_test.py
Github Open Source
Open Source
Apache-2.0
2,022
tensorflow
chenzhengda
Python
Code
2,759
11,789
# Copyright 2021 The TensorFlow 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 applica...
15,015
https://github.com/gayathri854/NeverBounceApi-Java/blob/master/src/test/java/com/neverbounce/api/model/JobsCreateResponseTest.java
Github Open Source
Open Source
MIT
2,020
NeverBounceApi-Java
gayathri854
Java
Code
46
172
package com.neverbounce.api.model; import static org.junit.Assert.*; /** * Created by lcsontos on 7/28/17. */ public class JobsCreateResponseTest extends AbstractResponseTest<JobsCreateResponse> { @Override protected Class<JobsCreateResponse> getResponseClass() { return JobsCreateResponse.class; } @Ov...
52,163
https://github.com/carlos1270/visagaranhuns/blob/master/resources/views/coordenador/documentos_rt.blade.php
Github Open Source
Open Source
MIT
null
visagaranhuns
carlos1270
PHP
Code
331
1,742
@extends('layouts.app') @section('content') <div class="container"> <div class="barraMenu"> <div class="d-flex justify-content-center"> <div class="mr-auto p-2 styleBarraPrincipalMOBILE"> <a href="javascript: history.go(-1)" style="text-decoration:non...
9,829
https://github.com/Whojohn/log_demo/blob/master/rand.py
Github Open Source
Open Source
MIT
2,020
log_demo
Whojohn
Python
Code
17
52
#!/usr/bin/env python # -*- coding: utf-8 -*- with open("log", "w") as f: for each in xrange(300): f.write(str(each)+'\n')
3,948
https://github.com/wr0881/DtuServerView/blob/master/src/pages/Server/server.less
Github Open Source
Open Source
MIT
2,019
DtuServerView
wr0881
Less
Code
22
110
body { :global{ .ant-table-tbody > tr.ant-table-row-hover:not(.ant-table-expanded-row) > td { background-color: #fff!important; } .ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td{ background-color: #e6f7ff!important; } } }
14,196
https://github.com/praytime/praytime/blob/master/lib/US/TX/islamic-dawah-center-houston/index.js
Github Open Source
Open Source
MIT
2,023
praytime
praytime
JavaScript
Code
37
174
const ids = [ { uuid4: '488d78c5-1a5c-4105-aad6-909c58ed3812', name: "Islamic Da'wah Center", url: 'https://www.islamicdawahcenter.org/', timeZoneId: 'America/Chicago', address: '201 Travis St, Houston, TX 77002, USA', placeId: 'ChIJKylKmC-_QIYRI6VQcQpGTCs', geo: { latitude: 29.7629...
27,836
https://github.com/DwiNugroho/dwi-nugroho.com/blob/master/src/components/organisms/navbar/index.tsx
Github Open Source
Open Source
RSA-MD
2,022
dwi-nugroho.com
DwiNugroho
TypeScript
Code
154
713
import * as React from 'react'; import { Link } from 'gatsby'; import ReactToolTip from 'react-tooltip'; import Github from '@/assets/icons/github.svg'; import LinkedIn from '@/assets/icons/linkedin.svg'; export interface Props { // } export const Navbar: React.FC<Props> = () => { const [isClient, setClient] = R...
39,777
https://github.com/jianghai33/hapjs/blob/master/core/framework/src/infras/runtime/dom/nodes/element.js
Github Open Source
Open Source
Apache-2.0
2,022
hapjs
jianghai33
JavaScript
Code
828
2,875
/* * Copyright (c) 2021, the hapjs-platform Project Contributors * * SPDX-License-Identifier: Apache-2.0 */ import { isObject } from 'src/shared/util' import Node from './node' import DomTag from './tag' import { setParent, getListener } from '../model' import { getNodeAttributesAsObject, getNodeInlineStyleAs...
2,345
https://github.com/cssoftwareengineering2animap/rest_api/blob/master/src/domain/usecases/blocking/block_user/block_user_use_case.ts
Github Open Source
Open Source
MIT
2,021
rest_api
cssoftwareengineering2animap
TypeScript
Code
41
104
import { injectable } from "tsyringe" import { Blocking } from "../../../entities/blocking_entity" import { BlockUserDto } from "./block_user_dto" @injectable() export class BlockUserUseCase { execute = async ({ user, host }: BlockUserDto) => Blocking.create({ host, user: { id: user }, }).save() ...
13,385
https://github.com/s9y/additional_plugins/blob/master/serendipity_event_browserid/tests/ClientTest.php
Github Open Source
Open Source
MIT
2,023
additional_plugins
s9y
PHP
Code
62
314
<?php namespace Tests; class ClientTest extends \PHPUnit\Framework\TestCase { public function testAuthenticate() { $store = $this->prophesize(\Portier\Client\StoreInterface::class); $store->createNonce('johndoe@example.com') ->willReturn('foobar') ->shouldBeCalled(); ...
21,870
https://github.com/maayami/Data-Structures-Algorithms/blob/master/Game-of-thrones/StaticKeyword/pink.java
Github Open Source
Open Source
CC0-1.0
2,020
Data-Structures-Algorithms
maayami
Java
Code
14
41
package StaticKeyword; public class pink { static void piku(){ System.out.print("I am piku"); } }
49,183
https://github.com/Integreat/integreat-app/blob/master/native/src/navigation/navigateToPois.ts
Github Open Source
Open Source
MIT
2,021
integreat-app
Integreat
TypeScript
Code
115
365
import { Dispatch } from 'redux' import { POIS_ROUTE } from 'api-client/src/routes' import { NavigationPropType, RoutesType } from '../constants/NavigationTypes' import { FetchPoiActionType, StoreActionType } from '../redux/StoreActionType' import { generateRouteKey } from '../utils/helpers' const navigateToPois = <...
43,132
https://github.com/JaumVitor/PROJETOS-JAVA/blob/master/Poo/curso_em_video/aulasPoo/Aula02b.java
Github Open Source
Open Source
Apache-2.0
2,020
PROJETOS-JAVA
JaumVitor
Java
Code
79
229
//Neste progama eu posso utilizar as classes que eu ja criei neste pacote package aulasPoo; public class Aula02b { public static void main (String[] args) { Caneta c1 = new Caneta(); Caneta c2 = new Caneta (); //Fazendo o preenchimento do objeto c1 (Metodo não convencional) c1.modelo = "Bic"; c1.cor...
33,873
https://github.com/hamzamaa/veloProject/blob/master/src/LocationBundle/Entity/PointDistribution.php
Github Open Source
Open Source
MIT
null
veloProject
hamzamaa
PHP
Code
259
812
<?php namespace LocationBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * PointDistribution * * @ORM\Table(name="point_distribution") * @ORM\Entity(repositoryClass="LocationBundle\Repository\PointDistributionRepository") */ class PointDistribution { /** * @var int * * @ORM\Column(name="id...
40,437
https://github.com/angelwxw1130/MeebidUI/blob/master/src/pages/emailValidation/App.vue
Github Open Source
Open Source
MIT
2,019
MeebidUI
angelwxw1130
Vue
Code
272
997
<template> <div id="app" class="meebid"> <div id="header" class="meebidAdminHeader"> <div class="meebidHeaderButtonToolbar"> <meebid-button wrapper-cls="homeWrapper" button-type="round" text="Home" :button-click="redirectToHome"> </meebid-button> </div> </div> <div id="content"...
33,037
https://github.com/gillest/SsoAuthBundle/blob/master/Tests/Controller/TestController.php
Github Open Source
Open Source
DOC
2,011
SsoAuthBundle
gillest
PHP
Code
67
243
<?php namespace BeSimple\SsoAuthBundle\Tests\Controller; class TestController extends Controller { const ANON_MESSAGE = 'hello anon'; const SECURED_MESSAGE = 'hello secured'; const USER_MESSAGE = 'hello user'; const ADMIN_MESSAGE = 'hello admin'; public function anonAction() { ...
14,819
https://github.com/ghostbar/swift-lang.deb/blob/master/validation-test/compiler_crashers_fixed/01497-swift-bracestmt-create.swift
Github Open Source
Open Source
Apache-2.0
2,021
swift-lang.deb
ghostbar
Swift
Code
155
289
// RUN: not %target-swift-frontend %s -parse // Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case found by fuzzing func g<T, c: a { protocol a { } protocol b { class A { } func b.Type) { } enum A : A : a { } } var b { pr...
17,035
https://github.com/SCOTT-HAMILTON/OTPGen/blob/master/Source/MigrationTool/OldFormat/TokenDatabase_Old.hpp
Github Open Source
Open Source
BSD-2-Clause
2,022
OTPGen
SCOTT-HAMILTON
C++
Code
225
663
#ifndef TOKENDATABASE_OLD_HPP #define TOKENDATABASE_OLD_HPP #include <string> #include <vector> #include "Tokens_Old/OTPToken_Old.hpp" #ifdef OTPGEN_DEBUG #include <iostream> #endif #include "AppSupport.hpp" class TokenDatabase_Old { TokenDatabase_Old() = delete; // for readFile() friend class AppSupp...
6,958
https://github.com/felipe-lacerda/TrabalhoGB/blob/master/src/ExecutionMethods.java
Github Open Source
Open Source
MIT
null
TrabalhoGB
felipe-lacerda
Java
Code
280
836
/* Grupo 1 Felipe Lacerda da Silva Felipe Flores John Lenon Marques de Oliveira */ import java.util.ArrayList; import java.util.HashMap; import static java.lang.System.nanoTime; public class ExecutionMethods { private HashMap<String, ArrayList> dados; private Integer[] array; private Integer execution;...
911
https://github.com/svieten/MERN-Boilerplate/blob/master/config/lib/get-printable-time.js
Github Open Source
Open Source
MIT
2,021
MERN-Boilerplate
svieten
JavaScript
Code
79
243
const formats = ['ms', 's', 'm', 'h', 'd'] const degreeOfChange = ['1000', '60', '60', '24'] function getPrintableTime(timeDiff) { let printTime = timeDiff let printTimeFormat = 0 let printTimeDegree = 0 let noMoreFormats = false while (printTime / degreeOfChange[printTimeDegree] >= 1 && !noMoreFormats) { if (...
41,668
https://github.com/pixelunion/bc-swipe-fade/blob/master/server.js
Github Open Source
Open Source
MIT
2,021
bc-swipe-fade
pixelunion
JavaScript
Code
50
145
var http = require('http') var serveStatic = require('serve-static') var finalhandler = require('finalhandler') var port = process.env.PORT || 3005 var serve = serveStatic('./', {'index': ['index.html']}) var server = http.createServer(function(req, res) { var done = finalhandler(req, res) serve(req, res, done) ...
22,295
https://github.com/ouest-insa/AndroidApp/blob/master/src/fr/ouest_insa/object/Study.java
Github Open Source
Open Source
MIT
2,015
AndroidApp
ouest-insa
Java
Code
219
659
package fr.ouest_insa.object; import org.json.JSONException; import org.json.JSONObject; import fr.ouest_insa.db.StudyDAO; import fr.ouest_insa.exception.AccountNotFillException; public class Study { private int id; private int reference; private int jeh; private String name; private Status status; private Str...
9,978
https://github.com/AhmedFitoh/VIPER_Demo/blob/master/Screens/AddScreen/View/AddScreenViewProtocols.swift
Github Open Source
Open Source
Unlicense
null
VIPER_Demo
AhmedFitoh
Swift
Code
44
110
// // AddScreenViewProtocols.swift // // Created by AhmedFitoh on 12/28/19. // Copyright © 2019 AhmedFitoh. All rights reserved. // // VIPER Protocol for communication from Presenter -> View protocol AddScreenPresenterToViewProtocol: class { func showUnexpectedErrorAlert () func showCountries (list: Countri...
28,868
https://github.com/marc-obrien/favorite/blob/master/src/Tweet.js
Github Open Source
Open Source
MIT
null
favorite
marc-obrien
JavaScript
Code
85
350
import React from 'react'; export function Tweet({tweet, isLiked, onClickLike}) { return ( <div className="list-group-item" style={{maxWidth: 500, margin: '0 auto'}}> <div className="media"> <img className="mr-3 rounded-circle" src={`https://i.pravatar.cc/100?img=13`} ...
48,581
https://github.com/dlenhart/nodejs_grpc_example/blob/master/client/client.js
Github Open Source
Open Source
MIT
null
nodejs_grpc_example
dlenhart
JavaScript
Code
41
148
const PROTO_PATH = "../proto/todos.proto"; const grpc = require("grpc"); const protoLoader = require("@grpc/proto-loader"); var packageDefinition = protoLoader.loadSync(PROTO_PATH, { keepCase: true, longs: String, enums: String, arrays: true }); const TodoService = grpc.loadPackageDefinition(packageDefinition).T...
24,060
https://github.com/fciubotaru/z-pec/blob/master/ZimbraSoap/src/wsdl-test/generated/zcsclient/mail/testInviteComponentCommon.java
Github Open Source
Open Source
MIT
2,021
z-pec
fciubotaru
Java
Code
2,127
5,566
package generated.zcsclient.mail; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for inviteComponentCommon com...
37,432
https://github.com/gglin001/popart/blob/master/tests/unittests/transforms/unittest_autodiff.cpp
Github Open Source
Open Source
MIT
2,022
popart
gglin001
C++
Code
7,099
21,793
// Copyright (c) 2021 Graphcore Ltd. All rights reserved. #define BOOST_TEST_MODULE autodiff_unittest #include <boost/test/unit_test.hpp> #include <iostream> #include <sstream> #include <popart/bwdgraphinfo.hpp> #include <popart/graph.hpp> #include <popart/ir.hpp> #include <popart/op.hpp> #include <popart/op/call.hp...
22,422
https://github.com/liam-hwya/analy-blog-site/blob/master/public/js/tinymce/modules/tinymce/src/themes/silver/main/ts/ui/dialog/Panel.ts
Github Open Source
Open Source
MIT
2,020
analy-blog-site
liam-hwya
TypeScript
Code
121
261
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ */ import { SimpleSpec } from '@ephox/alloy'; import { Arr } from '@epho...
27,933
https://github.com/Paladin1412/house/blob/master/java/classes3/com/ziroom/ziroomcustomer/minsu/view/refresh/a/a/b.java
Github Open Source
Open Source
Apache-2.0
2,018
house
Paladin1412
Java
Code
253
1,006
package com.ziroom.ziroomcustomer.minsu.view.refresh.a.a; import android.content.Context; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Paint.Style; import android.graphics.Path; import android.graphics.RectF; public class b extends a { private Paint a = new Paint(1); pr...
4,076
https://github.com/jkschneider/SilverKing/blob/master/src/lib/dhtclient/SKWaitForTimeoutController.h
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,021
SilverKing
jkschneider
C++
Code
129
356
#pragma once #include "SKOpTimeoutController.h" #include <string> using std::string; namespace jace { namespace proxy { namespace com { namespace ms { namespace silverking {namespace cloud { namespace dht { namespace client { class WaitForTimeoutController; } } } } } } } } typedef jace::proxy::com::ms::s...
41,421
https://github.com/trecloux/code-story-http/blob/master/src/main/java/net/codestory/http/templating/Template.java
Github Open Source
Open Source
Apache-2.0
2,013
code-story-http
trecloux
Java
Code
399
1,128
/** * Copyright (C) 2013 all@code-story.net * * 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 l...
50,332
https://github.com/EnMarche/Je-Marche/blob/master/src/screens/events/EventDetailsScreen.tsx
Github Open Source
Open Source
MIT
null
Je-Marche
EnMarche
TypeScript
Code
920
3,790
import React, { FC, useEffect, useState } from 'react' import { StyleSheet, ScrollView, Image, View, Text, Alert, Share, useWindowDimensions, } from 'react-native' import SafeAreaView from 'react-native-safe-area-view' import { EventDetailsScreenProps, Screen } from '../../navigation' import { Colors, S...
52,848
https://github.com/lll-01/MusicDownloader/blob/master/app/src/main/java/com/erlei/musicdownloader/base/Config.java
Github Open Source
Open Source
Apache-2.0
2,020
MusicDownloader
lll-01
Java
Code
54
166
package com.erlei.musicdownloader.base; /** * Created by lll on 18-3-24. * Email : lllemail@foxmail.com * Describe : 全局配置 */ @SuppressWarnings({"unused", "WeakerAccess"}) public class Config { public static final String BASE_URL = "http://139.199.115.248:2345/"; public static final String TEST_URL = "ht...
43,772
https://github.com/lukeduda/DoctrineDataFixturesExtension/blob/master/src/Service/BackupService.php
Github Open Source
Open Source
MIT
2,021
DoctrineDataFixturesExtension
lukeduda
PHP
Code
231
752
<?php declare(strict_types=1); /* * The MIT License (MIT) * * Copyright (c) 2016-2018 Spomky-Labs * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ namespace BehatExtension\DoctrineDataFixturesExtension\Service; use BehatExtension\Do...
47,062
https://github.com/lholota/command-line/blob/master/tests/LH.CommandLine.UnitTests/OptionsParser/Options/OptionsWithCustomValueParserWithInvalidInterface.cs
Github Open Source
Open Source
MIT
2,018
command-line
lholota
C#
Code
29
107
using System; using LH.CommandLine.Options; using LH.CommandLine.Options.Values; namespace LH.CommandLine.UnitTests.OptionsParser.Options { public class OptionsWithCustomValueParserWithInvalidInterface { [Option("option")] [ValueParser(typeof(InvalidValueParser))] public string Options...
39,484
https://github.com/Irving-plus/com-kefu/blob/master/src/main/java/com/chatopera/cc/app/handler/LoginController.java
Github Open Source
Open Source
libpng-2.0
null
com-kefu
Irving-plus
Java
Code
1,427
6,559
/* * Copyright (C) 2017 优客服-多渠道客服系统 * Modifications copyright (C) 2018 Chatopera Inc, <https://www.chatopera.com> * * 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...
20,456
https://github.com/naohisas/KVS/blob/master/Example/Visualization/SingleHueColorMap/main.cpp
Github Open Source
Open Source
BSD-3-Clause, MIT, Zlib, LicenseRef-scancode-public-domain, BSD-2-Clause
2,023
KVS
naohisas
C++
Code
375
1,518
/*****************************************************************************/ /** * @file main.cpp * @brief Example program for kvs::ColorMap (sequential colormap) class. * @author Tomomasa Uchida */ /*****************************************************************************/ #include <kvs/Application> #...
51,770
https://github.com/woluoyifan/voyage-clone/blob/master/src/main/java/com/luoyifan/voyage/util/CalculateUtils.java
Github Open Source
Open Source
MIT
null
voyage-clone
woluoyifan
Java
Code
1,047
2,977
package com.luoyifan.voyage.util; import java.math.BigDecimal; import java.math.RoundingMode; import java.time.LocalDate; /** * @author EvanLuo */ public class CalculateUtils { /** * 水手雇佣价格 * * @param employPrice 水手雇佣基础价 * @param piracyLevel 海贼等级 */ public static int employPrice(in...
19,109
https://github.com/LayneMobile/Stash/blob/master/library/stash/src/main/java/stash/internal/request/StashRunner.java
Github Open Source
Open Source
Apache-2.0
2,016
Stash
LayneMobile
Java
Code
519
1,651
/* * Copyright 2016 Layne Mobile, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
34,397
https://github.com/achandir/django-machine-learning-beta/blob/master/mlearn/mlapp/views.py
Github Open Source
Open Source
BSD-3-Clause
null
django-machine-learning-beta
achandir
Python
Code
1,017
3,517
from django.shortcuts import render from django.views.generic import TemplateView from mlapp.models import DownloadedFile, CurrentFile,Prepross from static.py.funcs import StrToList import pandas as pd import os import plotly.offline as opy import plotly.graph_objs as go from sklearn import metrics from sklearn.model_s...
43,150
https://github.com/robertstreeck/PolycombPaperR/blob/master/figures/FigAic.R
Github Open Source
Open Source
Apache-2.0
2,021
PolycombPaperR
robertstreeck
R
Code
877
3,567
library(ggplot2) library(data.table) library(tidyverse) library(ggthemes) chip_enrichment = function(chip, input){ chip = chip/sum(chip) input = input/sum(input) (chip)/(input+chip) } log_ratio = function(chip, input){ chip = (chip)/sum(chip) input = (input)/sum(input) return(log2(chip) - log2(input)) } ...
28,071
https://github.com/FubukiGO/single-service/blob/master/single-app/src/main/java/com/ygg/baba/app/common/util/excel/ImportExcel.java
Github Open Source
Open Source
MIT
null
single-service
FubukiGO
Java
Code
975
3,499
/** * Copyright &copy; 2012-2016 <a href="http://www.ygg168.com">YGG</a> All rights reserved. */ package com.ygg.baba.app.common.util.excel; import org.apache.commons.lang3.StringUtils; import org.apache.poi.hssf.usermodel.HSSFDateUtil; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.openxml...
54,227
https://github.com/alxkolm/rust-xlib-record/blob/master/src/xlibint.rs
Github Open Source
Open Source
MIT
2,014
rust-xlib-record
alxkolm
Rust
Code
20,000
62,529
#![allow(dead_code)] #![allow(non_camel_case_types)] /* automatically generated by rust-bindgen */ pub type __u_char = ::libc::c_uchar; pub type __u_short = ::libc::c_ushort; pub type __u_int = ::libc::c_uint; pub type __u_long = ::libc::c_ulong; pub type __int8_t = ::libc::c_char; pub type __uint8_t = ::libc::c_uchar;...
293
https://github.com/branddirections/VRTherapy/blob/master/Assets/Helpers.meta
Github Open Source
Open Source
MIT
2,018
VRTherapy
branddirections
Unity3D Asset
Code
16
74
fileFormatVersion: 2 guid: 436cbaa9feda74a41a52b65203fa444e folderAsset: yes timeCreated: 1518088301 licenseType: Pro DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant:
26,426
https://github.com/masud-technope/ACER-Replication-Package-ASE2017/blob/master/corpus/class/sling/530.java
Github Open Source
Open Source
MIT
null
ACER-Replication-Package-ASE2017
masud-technope
Java
Code
50
103
package org.apache.sling.hapi.client; /** * A composite object representing items in a {@see Document} */ public interface Items extends Iterable<Item>, Item { /** * Returns the item at one index */ Item at(int index) throws IndexOutOfBoundsException; /** * Returns the amount of items co...
3,695
https://github.com/danhutchings/client-platform-engineering/blob/master/osq-exts/tables/crowdstrikefalconagent/crowdstrikefalconagent_linux_test.go
Github Open Source
Open Source
Apache-2.0
2,022
client-platform-engineering
danhutchings
Go
Code
115
276
package crowdstrikefalconagent import ( "testing" ) func TestLinuxNew(t *testing.T) { if _, err := New(); err == nil { t.Fatal("This OS is not supported at the moment. Should return error here.") } } func TestLinuxRegister(t *testing.T) { tmp, _ := New() name, table, generate := tmp.Register() if name != _...
7,599
https://github.com/huizhang-php/GraduationProject/blob/master/application/common/model/StudentExamTopicModel.php
Github Open Source
Open Source
Apache-2.0
null
GraduationProject
huizhang-php
PHP
Code
362
1,396
<?php /** * @CreateTime: 2019/4/27 下午10:42 * @Author: yuzhao <tuzisir@163.com> * @Copyright: copyright(2019) Hebei normal university all rights reserved * @Description: 学生-考试专题model层 */ namespace app\common\model; use app\common\base\BaseModel; use app\common\config\SelfConfig; use app\common\tool\Es...
18,066
https://github.com/sathishmscict/scrimage/blob/master/scrimage-filters/src/main/scala/com/sksamuel/scrimage/filter/OpacityFilter.scala
Github Open Source
Open Source
Apache-2.0
null
scrimage
sathishmscict
Scala
Code
173
382
/* Copyright 2013 Stephen K Samuel 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...
1,138
https://github.com/truong01021995/laravelDemo/blob/master/app/Http/Controllers/TheLoaiController.php
Github Open Source
Open Source
MIT
null
laravelDemo
truong01021995
PHP
Code
198
798
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\TheLoai; class TheLoaiController extends Controller { public function getdanhsach(){ //danh sach cac the loai lay duoc $theloai = TheLoai::all(); return view('admin.theloai.danhsach', ['theloai' => $theloai]); } publ...
50,015
https://github.com/georgepapas/pact-jvm/blob/master/pact-jvm-matchers/src/main/scala/au/com/dius/pact/matchers/Matchers.scala
Github Open Source
Open Source
Apache-2.0
null
pact-jvm
georgepapas
Scala
Code
769
2,713
package au.com.dius.pact.matchers import org.apache.commons.lang3.time.{DateFormatUtils, DateUtils} import com.typesafe.scalalogging.slf4j.StrictLogging import java.text.ParseException import scala.collection.{JavaConverters, JavaConversions} import java.util.Collections object Matchers extends StrictLogging { def...
27,586
https://github.com/aniu2002/sparrow-egg/blob/master/sparrow-search/mmseg4j-from-googlecode/src/com/chenlb/mmseg4j/MaxWordSeg.java
Github Open Source
Open Source
Apache-2.0
2,020
sparrow-egg
aniu2002
Java
Code
159
549
package com.chenlb.mmseg4j; import java.util.ArrayList; import java.util.List; /** * 最多分词. 在ComplexSeg基础上把长的词拆. * * @author chenlb 2009-4-6 下午08:12:11 */ public class MaxWordSeg extends ComplexSeg { public MaxWordSeg(Dictionary dic) { super(dic); } public Chunk seg(Sentence sen) { Chunk chunk = supe...
47,438
https://github.com/jcavalieri8619/ZEENU_linux/blob/master/cli_symbols.h
Github Open Source
Open Source
MIT
2,016
ZEENU_linux
jcavalieri8619
C
Code
65
199
#ifndef CLI_SYMBOLS_H #define CLI_SYMBOLS_H #define SHOW 1 #define SUSPEND 2 #define RESUME 3 #define KILL 4 #define CREATE 5 #define PROC 6 #define RDY 7 #define SLP 8 #define WTR 9 #define ...
36,102
https://github.com/oceanroleplay/discordx-templates/blob/master/3-blank/src/events/common.ts
Github Open Source
Open Source
Apache-2.0
null
discordx-templates
oceanroleplay
TypeScript
Code
33
97
import type { ArgsOf, Client } from "discordx"; import { Discord, On } from "discordx"; @Discord() export class Example { @On("messageDelete") onMessage([message]: ArgsOf<"messageDelete">, client: Client): void { console.log("Message Deleted", client.user?.username, message.content); } }
13,238
https://github.com/Alhiqny404/final-project/blob/master/application/controllers/admin/Beban.php
Github Open Source
Open Source
MIT
null
final-project
Alhiqny404
PHP
Code
209
681
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * Controller Dashboard * * @author Pertiwi Team * @copyright Copyright (c) 2021 */ class Beban extends CI_Controller { /** * Prefix url controller ini * * @var string */ private $prefix = 'admin/beban'; /** * Class constructo...
46,475
https://github.com/stepancar/dart-angular-tricks/blob/master/web/app.dart
Github Open Source
Open Source
BSD-3-Clause
2,019
dart-angular-tricks
stepancar
Dart
Code
18
83
import 'package:angular/angular.dart'; import 'demo/component_with_icon_wrapper/component_with_icon_wrapper.dart'; @Component( selector: 'app', templateUrl: 'app.html', directives: [ ComponentWithIconWrapperDemoComponent ] ) class AppComponent { }
49,349
https://github.com/vivo-project/Vitro/blob/master/api/src/test/java/stubs/edu/cornell/mannlib/vitro/webapp/controller/individual/IndividualRequestAnalysisContextStub.java
Github Open Source
Open Source
2,023
Vitro
vivo-project
Java
Code
185
583
/* $This file is distributed under the terms of the license in LICENSE$ */ package stubs.edu.cornell.mannlib.vitro.webapp.controller.individual; import java.util.HashMap; import java.util.Map; import edu.cornell.mannlib.vitro.webapp.beans.Individual; import edu.cornell.mannlib.vitro.webapp.controller.individual.Indi...
6,612
https://github.com/TiagoAvelino/PX4-Leo/blob/master/PX4_Firmware/Firmware-build/CTestTestfile.cmake
Github Open Source
Open Source
MIT
null
PX4-Leo
TiagoAvelino
CMake
Code
128
1,456
# CMake generated Testfile for # Source directory: /home/leonardo/src/PX4_Firmware/PX4_Firmware # Build directory: /home/leonardo/src/PX4_Firmware/Firmware-build # # This file includes the relevant testing commands required for # testing this directory and lists subdirectories to be tested as well. subdirs(msg) subd...
43,098
https://github.com/mitch000001/go-harvest/blob/master/harvest/user.go
Github Open Source
Open Source
Apache-2.0
2,015
go-harvest
mitch000001
Go
Code
160
596
package harvest import ( "fmt" "time" ) //go:generate go run ../cmd/api_gen/api_gen.go -type=User -c -t -fields CrudEndpointProvider type User struct { ID int `json:"id,omitempty"` Email string `json:"email,omitempty"` FirstName string...
16,988
https://github.com/jiangsyz/smartShopping/blob/master/console/migrations/m180813_072512_add_column_to_sku_table.php
Github Open Source
Open Source
BSD-3-Clause
null
smartShopping
jiangsyz
PHP
Code
19
83
<?php use yii\db\Migration; class m180813_072512_add_column_to_sku_table extends Migration{ public function up(){ $this->addColumn('sku','deliverTime','INT(10) DEFAULT NULL COMMENT "发货时间" AFTER `count`'); } }
16,998
https://github.com/calderds/persim/blob/master/persim/PersLandscapeGrid.py
Github Open Source
Open Source
MIT
null
persim
calderds
Python
Code
1,294
3,520
""" Define Grid Persistence Landscape class. """ import numpy as np import itertools from .landscape_auxiliary import pairs_snap, union_vals, ndsnap_regular from operator import itemgetter, attrgetter from .PersLandscape import PersLandscape class PersLandscapeGrid(PersLandscape): """ Persistence Landscape Gr...
36,857
https://github.com/zyh94946/swoole-src/blob/master/tests/include/ignore_files.php
Github Open Source
Open Source
Apache-2.0
null
swoole-src
zyh94946
PHP
Code
22
99
<?php $root = dirname(__DIR__); $ignore_files = [ $root . "/swoole_async/big_zero", $root . "/swoole_async/big_zero.copy", $root . "/swoole_client_async/test.jpg", $root . "/swoole_process/echo.py", ]; return $ignore_files;
52,427
https://github.com/flyfire/TestLineChart/blob/master/app/src/main/java/com/solarexsoft/testlinechart/Bust.java
Github Open Source
Open Source
Apache-2.0
null
TestLineChart
flyfire
Java
Code
32
86
package com.solarexsoft.testlinechart; /** * Created by houruhou on 23/11/2017. */ public class Bust { long timestamp; int bust; public Bust(long timestamp, int bust) { this.timestamp = timestamp; this.bust = bust; } }
35,741
https://github.com/AndrewMBurke/google-ads-java/blob/master/google-ads/src/main/java/com/google/ads/googleads/v8/errors/KeywordPlanErrorEnumOrBuilder.java
Github Open Source
Open Source
Apache-2.0
2,022
google-ads-java
AndrewMBurke
Java
Code
24
116
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v8/errors/keyword_plan_error.proto package com.google.ads.googleads.v8.errors; public interface KeywordPlanErrorEnumOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.googleads.v8.errors.KeywordPlan...
7,630
https://github.com/Crypt0head/examples/blob/master/edge/services/sdr/signal_hack.patch
Github Open Source
Open Source
Apache-2.0
2,019
examples
Crypt0head
null
Spoken
64
242
*** librtlsdr/src/rtl_rpcd.c Thu Mar 31 15:08:54 2016 --- librtlsdr.hack/src/rtl_rpcd.c Thu Mar 31 17:10:16 2016 *************** *** 15,20 **** --- 15,21 ---- #include <netdb.h> #include <rtl-sdr.h> #include "rtlsdr_rpc_msg.h" + #include <signal.h> #if 1 *************** *** 1105,1110 **** --- 1106,1115 --...
3,389
https://github.com/brodier/solver/blob/master/lib/solver/board.rb
Github Open Source
Open Source
MIT
2,014
solver
brodier
Ruby
Code
340
1,023
module Solver class Board attr_reader :nb_pieces def initialize(dimx,dimy) @width = dimx @height = dimy @board=Array.new(dimx * dimy) @nb_pieces=0 end def add(x,y,w,h) # check if piece not go over the right side return nil if (x+w) > @width # check if pie...
17,686
https://github.com/clemson-forty-percent/sandbox-aws-cdk-rust/blob/master/test/ci-stack.test.ts
Github Open Source
Open Source
MIT
2,021
sandbox-aws-cdk-rust
clemson-forty-percent
TypeScript
Code
81
277
import { expect as expectCDK, haveResource, arrayWith, objectLike } from '@aws-cdk/assert'; import * as cdk from '@aws-cdk/core'; import * as s3 from '@aws-cdk/aws-s3'; import * as Ci from '../lib/ci-stack'; test('ArtifactBucketCreated', () => { const app = new cdk.App(); // WHEN const stack = new Ci.CiS...
22,662
https://github.com/bolarinwaodupe/bridge-contract/blob/master/test/bridge.storage.test.js
Github Open Source
Open Source
MIT
2,021
bridge-contract
bolarinwaodupe
JavaScript
Code
211
889
const { accounts, contract, } = require("@openzeppelin/test-environment"); const { BN, expectRevert, } = require("@openzeppelin/test-helpers"); const {expect} = require("chai"); const BridgeStorage = contract.fromArtifact("BridgeStorage");...
35,090
https://github.com/pedrofaria/hope/blob/master/src/Router/MiddlewareController.php
Github Open Source
Open Source
MIT
2,021
hope
pedrofaria
PHP
Code
137
469
<?php namespace Hope\Router; use Hope\Application; use Hope\Contracts\MiddlewareInterface; class MiddlewareController { private $app; private $list = []; private $currentIndex = 0; private $lastMW; public function __construct(Application $app) { $this->app = $app; } public fu...
27,766
https://github.com/TerikKek/Chuu/blob/master/model/src/main/java/dao/entities/Country.java
Github Open Source
Open Source
MIT
2,022
Chuu
TerikKek
Java
Code
10
27
package dao.entities; public record Country(String countryName, String countryCode) { }
54,392
https://github.com/technokrat96/AbiExpressApi/blob/master/routes/index.js
Github Open Source
Open Source
MIT
null
AbiExpressApi
technokrat96
JavaScript
Code
99
383
var express = require("express"), db = require("../config/database"), lib = require("../lib"); var router = express.Router(); router.get('/', function (req, res, next) { var table = "brands"; var get = db.table(table); get.where('id_brands', 1).then(function(rows){ return rows; }).then(function...
26,898
https://github.com/cordoval/Trainer/blob/master/src/DTL/TrainerBundle/Resources/views/layout.html.twig
Github Open Source
Open Source
MIT
2,011
Trainer
cordoval
Twig
Code
183
774
{% extends "::base.html.twig" %} {% block stylesheets %} <script type="text/javascript" src="{{ asset("js/jquery-1.6.1.min.js") }}"></script> <script type="text/javascript" src="{{ asset("js/jquery.sparkline.min.js") }}"></script> <script type="text/javascript" src="{{ asset("js/jquery.tablesorter.min.js") ...
37,021
https://github.com/yaqoubhassan/shipping/blob/master/resources/views/freight/about.blade.php
Github Open Source
Open Source
MIT
null
shipping
yaqoubhassan
PHP
Code
431
1,236
@extends('layout.master') @section('title', 'About Us') @section('links') @include('layout.links') @stop @section('body') {{-- Navigation --}} @section('breadcrumb', 'About Us') @include('layout.nav') <!-- Section Start - Who We Are --> <section class='whoweare padding-bottom-50' id='whoweare'> ...
10,194
https://github.com/JayKan/react-cloud/blob/master/src/components/SongListItem.js
Github Open Source
Open Source
MIT
null
react-cloud
JayKan
JavaScript
Code
256
997
import React from 'react'; import PropTypes from 'prop-types'; import Link from './Link'; import SongHeartCount from './SongHeartCount'; import Waveform from './Waveform'; import TogglePlayButtonContainer from '../containers/TogglePlayButtonContainer'; import { IMAGE_SIZES } from '../constants/SongConstants'; import { ...
48,873
https://github.com/meutley/Boilerplate-Node-TS/blob/master/src/web/core/abstraction/console-writer.interface.ts
Github Open Source
Open Source
MIT
2,018
Boilerplate-Node-TS
meutley
TypeScript
Code
9
24
export interface IConsoleWriter { write(obj: any, ...optionalParams: any[]); }
42,138
https://github.com/little-blue/Surelog/blob/master/third_party/tests/AzadiRTL/prim_clock_gating.sv
Github Open Source
Open Source
Apache-2.0
2,022
Surelog
little-blue
null
Spoken
21
103
module prim_clock_gating ( input clk_i, input en_i, input test_en_i, output logic clk_o ); sky130_fd_sc_hd__dlclkp_1 CG( .CLK(clk_i), .GCLK(clk_o), .GATE(en_i | test_en_i)); endmodule
30,942