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/evandor/skysail/blob/master/skysail.server.queryfilter/test/io/skysail/server/queryfilter/nodes/test/LessNodeTest.java
Github Open Source
Open Source
Apache-2.0
2,017
skysail
evandor
Java
Code
344
1,479
package io.skysail.server.queryfilter.nodes.test; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import org.junit.Ignore; import org.junit.Test; import io.skysail.domain.E...
35,130
https://github.com/dongyue1999/visflow/blob/master/client/src/components/modals/message-modal/message-modal.ts
Github Open Source
Open Source
BSD-3-Clause
2,022
visflow
dongyue1999
TypeScript
Code
102
294
/** * @fileOverview Provides a modal for any system component to display a message for user confirmation. */ import { Vue, Component, Prop } from 'vue-property-decorator'; import ns from '@/store/namespaces'; import { MessageModalOptions } from '@/store/modals/types'; import BaseModal from '../base-modal/base-modal'...
4,298
https://github.com/priyankchheda/algorithms/blob/master/red_black_tree/red_black_tree.py
Github Open Source
Open Source
MIT
2,022
algorithms
priyankchheda
Python
Code
932
2,277
""" Red Black Tree is an implementation for left leaning red black tree data structure in go language. Red-Black Tree is a self-balancing Binary Search Tree (BST) where every node has a color either red or black. Root of tree is always black. There are no two adjacent red nodes (A red node cannot have a red parent or ...
34,033
https://github.com/kblomster/jet/blob/master/postgres/lock_statement_test.go
Github Open Source
Open Source
Apache-2.0
2,022
jet
kblomster
Go
Code
100
400
package postgres import ( "testing" ) func TestLockTable(t *testing.T) { assertStatementSql(t, table1.LOCK().IN(LOCK_ACCESS_SHARE), ` LOCK TABLE db.table1 IN ACCESS SHARE MODE; `) assertStatementSql(t, table1.LOCK().IN(LOCK_ROW_SHARE), ` LOCK TABLE db.table1 IN ROW SHARE MODE; `) assertStatementSql(t, table1.LOCK...
29,232
https://github.com/gpapadopg/Aura.Marshal/blob/master/src/Aura/Marshal/Relation/RelationInterface.php
Github Open Source
Open Source
BSD-2-Clause
2,012
Aura.Marshal
gpapadopg
PHP
Code
84
182
<?php /** * * This file is part of the Aura project for PHP. * * @package Aura.Marshal * * @license http://opensource.org/licenses/bsd-license.php BSD * */ namespace Aura\Marshal\Relation; /** * * An interface for relationship description objects. * * @package Aura.Marshal * */ interface RelationI...
40,026
https://github.com/mmirotta/Mirotta.SPLab42016/blob/master/SPLab42016/js/controladores/producto.js
Github Open Source
Open Source
CC0-1.0
2,016
Mirotta.SPLab42016
mmirotta
JavaScript
Code
235
1,117
angular .module('spLab2016') .controller("ProductoAltaCtrl", function($scope, $auth, $state, $http, jwtHelper, FactoryProducto, FactoryRutas) { try { $scope.resultado = {}; $scope.resultado.ver = false; if ($auth.isAuthenticated()) { $scope.usuario = jwtHelper.decodeToken($auth.getToken()); $scope.u...
5,711
https://github.com/annenkov/contracts/blob/master/SML/Instruments.sml
Github Open Source
Open Source
MIT
2,020
contracts
annenkov
null
Spoken
1,228
2,486
structure Instruments = struct exception Error of string local open Currency ContractSafe in infix !+! !-! !*! !<! !=! !|! fun fxRate c1 c2 = "FX " ^ ppCur c1 (* an ad hoc conven- *) ^ "/" ^ ppCur c2 (* tion for rates *) (* buyer and seller with the currencies they receive, notional a...
19,682
https://github.com/gufranmirza/logdna-go/blob/master/logger/transport.go
Github Open Source
Open Source
MIT
null
logdna-go
gufranmirza
Go
Code
321
1,127
package logger import ( "bytes" "encoding/json" "fmt" "net/http" "os" "sync" "time" "github.com/prometheus/common/log" ) type transport struct { key string buffer []Message options Options done chan struct{} mu sync.Mutex wg sync.WaitGroup } func newTransport(options Options, key string) *tra...
30,448
https://github.com/mdogan/hazelcast/blob/master/hazelcast/src/test/java/com/hazelcast/map/impl/mapstore/writebehind/WriteBehindEntryStoreQueueReplicationTest.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,020
hazelcast
mdogan
Java
Code
576
1,947
/* * Copyright (c) 2008-2020, Hazelcast, 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 ...
26,039
https://github.com/jillyratria/sendbird-uikit-react/blob/master/plop-templates/stories.hbs
Github Open Source
Open Source
MIT
2,022
sendbird-uikit-react
jillyratria
null
Spoken
30
55
import React from 'react'; import {{ name }} from '../index.tsx'; export default { title: 'UI Components/{{ name }}' }; export const withText = () => <{{ name }} text="example" />;
33,253
https://github.com/wanosukecake/kaimook/blob/master/app/Http/Controllers/Back/GoalController.php
Github Open Source
Open Source
MIT
2,021
kaimook
wanosukecake
PHP
Code
134
519
<?php namespace App\Http\Controllers\Back; use App\Http\Controllers\Controller; use App\Http\Requests\GoalRequest; use App\Models\Goal; use App\Services\GoalService; use Illuminate\Http\Request; class GoalController extends Controller { public function __construct(GoalService $goalService) { $this->g...
15,905
https://github.com/googleapis/googleapis-gen/blob/master/google/cloud/filestore/v1/google-cloud-filestore-v1-java/proto-google-cloud-filestore-v1-java/src/main/java/com/google/cloud/filestore/v1/UpdateInstanceRequestOrBuilder.java
Github Open Source
Open Source
Apache-2.0
2,021
googleapis-gen
googleapis
Java
Code
273
733
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/filestore/v1/cloud_filestore_service.proto package com.google.cloud.filestore.v1; public interface UpdateInstanceRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.filestore.v1.UpdateInstanceReques...
7,161
https://github.com/anamartinez97m/Testing-2020/blob/master/src/main/java/es/codeurjc/shop/rest/product/CreateProductRequest.java
Github Open Source
Open Source
Apache-2.0
2,020
Testing-2020
anamartinez97m
Java
Code
59
149
package es.codeurjc.shop.rest.product; public class CreateProductRequest { private String name; private long cost; private long stock; public CreateProductRequest() { } public CreateProductRequest(String name, long cost, long stock) { this.name = name; this.cost = cost; th...
18,964
https://github.com/pombredanne/EDGE-2/blob/master/tmp/grog-dialoguejs/dialogue.cpp
Github Open Source
Open Source
Zlib
2,015
EDGE-2
pombredanne
C++
Code
1,009
2,481
/* gnu.txt 0 Hi! Welcome to OSSland! Is this your first visit? [1,2] 1 Yes, I just arrived -> 3 2 No, I've been here before -> 4 3 Awesome! Have fun! -> 5 4 Hey, welcome back -> 5 5 Do you want to be my friend? [6,7,8,9] 6 Yes -> 10 7 No -> 11 8 Maybe -> 12 9 Not sure -> 12 10 Great! -> 13 11 Awwww -> 13 12 Please! -> ...
15,694
https://github.com/Wilt/CacheFactory/blob/master/test/unit/CacheFactory/enableAll.test.js
Github Open Source
Open Source
MIT
2,022
CacheFactory
Wilt
JavaScript
Code
58
239
import { assert, CacheFactory } from '../../_setup' describe('CacheFactory#enableAll', function () { beforeEach(function () { sinon.stub(CacheFactory.Cache.prototype, 'enable') }) afterEach(function () { CacheFactory.Cache.prototype.enable.restore() }) it('should call enable on all caches', fun...
30,244
https://github.com/TumPK/project-management/blob/master/backend/models/Task.php
Github Open Source
Open Source
BSD-3-Clause
2,017
project-management
TumPK
PHP
Code
158
464
<?php namespace backend\models; use Yii; /** * This is the model class for collection "task". * * @property \MongoDB\BSON\ObjectID|string $_id * @property mixed $task_name * @property mixed $start_date * @property mixed $end_date * @property mixed $status * @property mixed $create_date * @property mixed $cr...
11,965
https://github.com/jvanord/flutter-firebase-template/blob/master/firebase_template/lib/blocs/signin/bloc.dart
Github Open Source
Open Source
MIT
2,020
flutter-firebase-template
jvanord
Dart
Code
6
26
export 'signin_bloc.dart'; export 'events.dart'; export 'states.dart';
54,652
https://github.com/nagyist/AxonFramework/blob/master/messaging/src/test/java/org/axonframework/common/jdbc/PagingJdbcIterableTest.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-unknown
2,023
AxonFramework
nagyist
Java
Code
530
1,653
/* * Copyright (c) 2010-2023. Axon Framework * * 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 o...
36,495
https://github.com/Saranya13/ej2-javascript-samples/blob/master/src/sidebar/api.js
Github Open Source
Open Source
FSFAP
2,020
ej2-javascript-samples
Saranya13
JavaScript
Code
259
866
this.default = function () { //Sidebar initialization var sidebar = new ej.navigations.Sidebar(); sidebar.appendTo('#default-sidebar'); // Toggle button for Sidebar open/close. var togglesidebar = new ej.buttons.Button({ cssClass: 'e-info', isToggle: true }); togglesidebar.appendTo('#toggleside...
39,526
https://github.com/tatismolin/programming-univbasics-4-array-concept-review-lab-denver-web-100719/blob/master/lib/array_methods.rb
Github Open Source
Open Source
LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference
2,019
programming-univbasics-4-array-concept-review-lab-denver-web-100719
tatismolin
Ruby
Code
73
186
def find_element_index(array, value_to_find) counter = 0 index = 0 while counter < array.length do if array[counter] == value_to_find index = array.find_index(value_to_find) break else index = nil end counter += 1 end index end def find_max_value(array) max = array[0] for ...
11,248
https://github.com/Gegel85/KESP/blob/master/src/wram.asm
Github Open Source
Open Source
MIT
null
KESP
Gegel85
Assembly
Code
99
398
SECTION "RAM", WRAM0 include "src/sound/constants.asm" randomRegister:: ds $1 frameCounter:: ds $1 keysDisabled:: ds $1 playingMusics:: playingMusic1:: ds MUSIC_STRUCT_SIZE playingMusic2:: ds MUSIC_STRUCT_SIZE playingMusic3:: ds MUSIC_STRUCT_SIZE playingMusic4:: ds MUSIC_STRUCT_SIZE playingSfxTimers:: playin...
46,486
https://github.com/HamzaBoukraa/superbowleto/blob/master/src/lib/helpers/errors.js
Github Open Source
Open Source
MIT
2,020
superbowleto
HamzaBoukraa
JavaScript
Code
28
77
const { path, } = require('ramda') function isA4XXError (error) { return (path(['response', 'status'], error) >= 400 && path(['response', 'status'], error) < 500) } module.exports = { isA4XXError, }
50,124
https://github.com/gutsy-robot/maddpg/blob/master/scripts/test_restore.py
Github Open Source
Open Source
MIT
null
maddpg
gutsy-robot
Python
Code
153
469
import tensorflow as tf a = tf.get_variable("A/a", initializer=tf.constant(4, shape=[2])) b = tf.get_variable("B/b", initializer=tf.constant(5, shape=[3])) init_op = tf.global_variables_initializer() # with tf.Session() as sess: # # initialize all of the variables in the session # sess.run(init_op) # # ru...
39,181
https://github.com/wuzheng8023/tutor-selection-tool-vue/blob/master/src/views/table/StudentTable.vue
Github Open Source
Open Source
MIT
2,020
tutor-selection-tool-vue
wuzheng8023
Vue
Code
1,119
5,210
<template> <div> <el-row class="buttons"> <el-col :span="1"> <el-tooltip class="item" effect="light" content="导入学生信息" placement="top" > <el-link @click="addStudentVisible = true" :underline="false"> <i class="iconfont icon-tubiao1...
36,353
https://github.com/dodsonmg/nix-linux/blob/master/linux-ng/nixos-common-config.nix
Github Open Source
Open Source
MIT
null
nix-linux
dodsonmg
null
Spoken
2,686
8,617
# Lifted mostly unmodified from nixpkgs/pkgs/os-specific/linux/kernel/common-config.nix { stdenv, lib }: { version, features ? {} }: with lib; let _features = features; in let defaultFeatures = { debug = false; grsecurity = false; xen_dom0 = false; criu = false; criu_revert_expert = true;...
22,460
https://github.com/Jorolf/jos/blob/master/LibraryHusky/src/rusky/husky/math/polygons/Triangle.java
Github Open Source
Open Source
MIT
2,020
jos
Jorolf
Java
Code
123
439
package rusky.husky.math.polygons; import java.util.Arrays; import java.util.List; import rusky.husky.math.Polygon; import rusky.husky.math.Vector2; public class Triangle extends Polygon<Triangle> { public Vector2 p1, p2, p3; public Triangle(Vector2 p1, Vector2 p2, Vector2 p3) { this.p1 = p1; this.p2 = p2; ...
51,796
https://github.com/qeedquan/misc_utilities/blob/master/linux/cmp.go
Github Open Source
Open Source
MIT
2,022
misc_utilities
qeedquan
Go
Code
255
774
// ported from suckless package main import ( "bufio" "flag" "fmt" "os" ) var ( lflag = flag.Bool("l", false, "print number and bytes (in octal) for each difference") sflag = flag.Bool("s", false, "run in silent mode") ) func main() { flag.Usage = usage flag.Parse() if flag.NArg() != 2 || (*lflag && *sflag)...
41,283
https://github.com/sunnyjovita/Jubekas-frontend/blob/master/app/Http/Controllers/PropertyController.php
Github Open Source
Open Source
MIT
null
Jubekas-frontend
sunnyjovita
PHP
Code
48
202
<?php namespace App\Http\Controllers; // call api from backend Jubekas2 use Illuminate\Support\Facades\Http; use GuzzleHttp\Client; use Illuminate\Http\Request; use Session; class PropertyController extends Controller { // public function property() { $property = Http::get(env('API_URL').'api/...
22,598
https://github.com/mountainflaw/sm64_staging/blob/master/tools/ido-static-recomp/tools/rabbitizer/include/instructions/RabbitizerInstrId.h
Github Open Source
Open Source
MIT, CC0-1.0
2,023
sm64_staging
mountainflaw
C
Code
80
451
/* SPDX-FileCopyrightText: © 2022 Decompollaborate */ /* SPDX-License-Identifier: MIT */ #ifndef RABBITIZER_INSTRID_H #define RABBITIZER_INSTRID_H #pragma once #include "common/Utils.h" #ifdef __cplusplus extern "C" { #endif #define RABBITIZER_DEF_INSTR_ID(prefix, caseBits, name, ...) \ RABBITIZER_INSTR_ID_##p...
30,967
https://github.com/Bubu/android-calculatorpp/blob/master/jscl/src/main/java/jscl/math/polynomial/groebner/ReducedRowEchelonForm.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,022
android-calculatorpp
Bubu
Java
Code
189
531
package jscl.math.polynomial.groebner; import jscl.math.Generic; import jscl.math.polynomial.Monomial; import jscl.math.polynomial.Polynomial; import java.util.ArrayList; import java.util.List; class ReducedRowEchelonForm { List content = new ArrayList(); ReducedRowEchelonForm(List list) { content.a...
2,848
https://github.com/CharlesTeng/LocalTest/blob/master/app/alljoyn/core/inc/aj_disco.h
Github Open Source
Open Source
MIT
null
LocalTest
CharlesTeng
C
Code
253
498
#ifndef _AJ_DISCO_H #define _AJ_DISCO_H /** * @file */ /****************************************************************************** * Copyright (c) 2012-2013, AllSeen Alliance. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee ...
15,255
https://github.com/at-icons/material/blob/master/icons/EmailSearchOutlineIcon.js
Github Open Source
Open Source
MIT
2,020
material
at-icons
JavaScript
Code
85
462
import React from 'react' const DEFAULT_SIZE = 24 export default ({ fill = 'currentColor', width = DEFAULT_SIZE, height = DEFAULT_SIZE, style = {}, ...props }) => ( <svg viewBox={ `0 0 ${ DEFAULT_SIZE } ${ DEFAULT_SIZE }` } style={{ fill, width, height, ...style }} { ...props } > <path d...
39,258
https://github.com/shadetree4hire/AgriCraft/blob/master/src/main/java/com/infinityraider/agricraft/apiimpl/SoilRegistry.java
Github Open Source
Open Source
MIT
2,016
AgriCraft
shadetree4hire
Java
Code
117
477
/* */ package com.infinityraider.agricraft.apiimpl; import java.util.List; import java.util.ArrayList; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import com.infinityraider.agricraft.api.soil.IAgriSoil; import com.infinityraider.agricraft.api.soil.IAgriSoilRegistry; impor...
29,638
https://github.com/Go-Scrum/goscrum/blob/master/server/graph/resolvers/query.resolvers.go
Github Open Source
Open Source
MIT
null
goscrum
Go-Scrum
Go
Code
106
286
package graph // This file will be automatically regenerated based on the schema, any resolver implementations // will be copied through when generating and any unknown code will be moved to the end. import ( "context" "fmt" "goscrum/goscrum/server/graph/gqlgen_gen" "goscrum/goscrum/server/graph/model" ) func (r...
1,597
https://github.com/Lord-Kamina/mxe/blob/master/src/sdl2_mixer-1-linkfix.patch
Github Open Source
Open Source
RSA-MD
2,020
mxe
Lord-Kamina
null
Spoken
101
487
This file is part of MXE. See LICENSE.md for licensing information. Fix link order for the 2 test programs. diff -Naur SDL2_mixer-2.0.0/Makefile.in SDL2_mixer-2.0.0.fixed/Makefile.in --- SDL2_mixer-2.0.0/Makefile.in 2013-08-10 19:39:54.000000000 +0200 +++ SDL2_mixer-2.0.0.fixed/Makefile.in 2014-10-09 13:27:51.2759211...
44,277
https://github.com/LBS-sws/Integral/blob/master/protected/runtime/application.log.2
Github Open Source
Open Source
Apache-2.0
null
Integral
LBS-sws
null
Spoken
20,000
132,295
2017/05/02 12:45:54 [warning] [application] Failed to set unsafe attribute "scenario" of "PayReqForm". in /var/www/html/acct/protected/controllers/PayreqController.php (156) in /var/www/html/acct/protected/components/Controller.php (71) in /var/www/html/acct/protected/components/Controller.php (95) 2017/05/02 12:45:54 ...
35,465
https://github.com/bridennis/leetcode/blob/master/src/easy/src/NumberOf1Bits/SolutionTest.php
Github Open Source
Open Source
CC0-1.0
null
leetcode
bridennis
PHP
Code
49
202
<?php namespace Easy\NumberOf1Bits; use PHPUnit\Framework\TestCase; final class SolutionTest extends TestCase { /** @test */ public function it_should_calc_hamming_weight(): void { $sut = new Solution(); $n = 0b00000000000000000000000000001011; $actual = $sut->hammingWeight($n); ...
53,736
https://github.com/sep/electron-demo-app/blob/master/main/calculatorApp.ts
Github Open Source
Open Source
MIT
null
electron-demo-app
sep
TypeScript
Code
220
689
import { app, BrowserWindow, Tray, Menu, ipcMain, dialog } from 'electron' import path from "path"; import fs from "fs"; export default function calculatorApp(framework: "ng" | "react"){ const headless = ["1", "true"].includes(process.env["HEADLESS"] ?? "") const integrationTest = (process.env["EDA_IT"] ?? "") ===...
27,023
https://github.com/Machiry/checkedc-clang/blob/master/clang/test/3C/basic_checks.c
Github Open Source
Open Source
BSD-Source-Code
null
checkedc-clang
Machiry
C
Code
480
1,356
// Tests for 3C. // // Tests properties about type re-writing and replacement, and simple function // return value stuff. // // RUN: 3c -base-dir=%S -alltypes %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s // RUN: 3c -base-dir=%S %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOA...
44,486
https://github.com/Fuhsuann/covid-19/blob/master/sim/js/helpers.js
Github Open Source
Open Source
CC0-1.0
2,020
covid-19
Fuhsuann
JavaScript
Code
23
86
Math.TAU = 6.283185307179586; Math.PI = 3; // The poor man's jQuery window.$ = (query,el=document)=>{ return el.querySelector(query); }; window.$all = (query,el=document)=>{ return [...el.querySelectorAll(query)]; };
39,021
https://github.com/adiv413/vitesse/blob/master/src/statement.cpp
Github Open Source
Open Source
MIT
2,021
vitesse
adiv413
C++
Code
15
50
// #include "statement.hpp" // ExprStmt::ExprStmt(ExprPtr e) : expression(std::move(e)) { // type = StatementType::EXPRESSION; // }
10,452
https://github.com/dandersson/FRTemplate/blob/master/src/Recaptcha.php
Github Open Source
Open Source
Apache-2.0
null
FRTemplate
dandersson
PHP
Code
128
478
<?php namespace FRTemplate; use Constants\Recaptcha as CSR; /** * Initiate reCaptcha interface. */ class Recaptcha { public function __construct($language='en') { $config = new Configuration\Recaptcha(); $this->public_key = $config->public_key; $this->private_key = $config->private...
37,107
https://github.com/navpil/java-examples/blob/master/common/src/main/java/ua/lviv/navpil/security/Digests.java
Github Open Source
Open Source
MIT
null
java-examples
navpil
Java
Code
68
323
package ua.lviv.navpil.security; import java.io.BufferedWriter; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; import java.security.DigestOutputStream; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.Base64; pub...
15,368
https://github.com/Rolleander/Gainea/blob/master/server/src/main/com/broll/gainea/server/core/cards/impl/play/C_ReplaceGoal.java
Github Open Source
Open Source
MIT
2,023
Gainea
Rolleander
Java
Code
78
371
package com.broll.gainea.server.core.cards.impl.play; import com.broll.gainea.server.core.cards.Card; import com.broll.gainea.server.core.goals.Goal; import java.util.List; import java.util.stream.Collectors; public class C_ReplaceGoal extends Card { public C_ReplaceGoal() { super(39, "Zielstrategie", "W...
38,549
https://github.com/rndAdn/Cours/blob/master/L3/S6/MV6/Renaud/tp1/v2/test.sh
Github Open Source
Open Source
MIT
2,015
Cours
rndAdn
Shell
Code
8
24
#! /usr/bin/bash echo "$@" shift 2 echo "$@"
32,912
https://github.com/weimingtom/nya-engine/blob/master/system/app.mm
Github Open Source
Open Source
MIT
2,015
nya-engine
weimingtom
Objective-C++
Code
1,725
9,236
//https://code.google.com/p/nya-engine/ #include "app.h" #include "app_internal.h" #include "system.h" #include "memory/tmp_buffer.h" #include "render/render.h" #include "render/platform_specific_gl.h" #include <string> #if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR namespace { class shared_app { publ...
32,660
https://github.com/JMCX-group/yimai-cms/blob/master/app/Http/Controllers/Business/DataController.php
Github Open Source
Open Source
MIT
null
yimai-cms
JMCX-group
PHP
Code
293
961
<?php namespace App\Http\Controllers\Business; use Illuminate\Http\Request; use App\Http\Requests; use App\Http\Controllers\Controller; class DataController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public $page_level = "数据管理";...
47,864
https://github.com/AoEiuV020/w6s_lite_android/blob/master/app/src/main/java/com/foreveross/atwork/modules/search/component/SearchVoiceXunfeiFloatView.kt
Github Open Source
Open Source
MIT
2,021
w6s_lite_android
AoEiuV020
Kotlin
Code
364
1,995
package com.foreveross.atwork.modules.search.component import android.Manifest import android.app.Activity import android.content.Context import android.os.Bundle import android.util.AttributeSet import android.view.LayoutInflater import android.view.MotionEvent import android.widget.FrameLayout import androidx.core.c...
9,449
https://github.com/ashcorpdev/asaria/blob/master/extension/controllers/db/db.ts
Github Open Source
Open Source
Apache-2.0
null
asaria
ashcorpdev
TypeScript
Code
468
1,275
const logger = require("../status/logging"); // Import the Mongoose package for interacting with the MongoDB database. const mongoose = require("mongoose"); // Set up the user schema for database entries. const {userSchema} = require("../db/models/User"); const {teamSchema} = require("../db/models/Team"); let UserMo...
26,427
https://github.com/NarnePranay/Movie-genre-prediction-model/blob/master/NonImpairedSubtitles/Western/Dark Command.srt
Github Open Source
Open Source
MIT
2,021
Movie-genre-prediction-model
NarnePranay
null
Spoken
15,401
48,035
1 00:01:29,022 --> 00:01:33,526 A SILVER WATCH AND FIVE DOLLARS IN COIN OF THE REALM... 2 00:01:33,860 --> 00:01:36,529 FOR EVERY SOUTHERN SETTLER WHO WILL LEAVE HERE... 3 00:01:37,030 --> 00:01:41,034 FOR THE RICH AND FERTILE PLAINS OF KANSAS. 4 00:01:41,034 --> 00:01:43,036 THE SOUTH NEEDS YOUR VOTE. 5 00:01:48,0...
51,125
https://github.com/bockstaller/Office-Addin-Scripts/blob/master/packages/eslint-plugin-excel-custom-functions/src/rules/utils.ts
Github Open Source
Open Source
MIT
null
Office-Addin-Scripts
bockstaller
TypeScript
Code
1,304
4,166
import { parse as parsePath } from "path"; import { AST_NODE_TYPES, ESLintUtils, TSESLint, TSESTree, } from "@typescript-eslint/experimental-utils"; import * as ts from "typescript"; export enum OfficeCalls { WRITE = "WRITE", READ = "READ", NOTOFFICE = "NOTOFFICE", } type RequiredParserServices = Return...
24,518
https://github.com/Carlos-Melo/Focusfit/blob/master/css/_responsive.scss
Github Open Source
Open Source
MIT
null
Focusfit
Carlos-Melo
SCSS
Code
84
247
@media only screen and (max-width: 950px) { .imc { p { margin-bottom: 30px; } } footer { address { display: block; text-align: center; div { margin-top: 15px; } .redes { figure...
543
https://github.com/vbedrosova/TeamCity.Swift/blob/master/server/src/uk/co/ibuildstuff/teamcity/swift/server/SwiftRunTypeBase.kt
Github Open Source
Open Source
Apache-2.0
2,016
TeamCity.Swift
vbedrosova
Kotlin
Code
116
388
package uk.co.ibuildstuff.teamcity.swift.server import jetbrains.buildServer.serverSide.InvalidProperty import jetbrains.buildServer.serverSide.PropertiesProcessor import jetbrains.buildServer.serverSide.RunType import jetbrains.buildServer.web.openapi.PluginDescriptor import org.springframework.beans.factory.annotati...
52,016
https://github.com/UWindsor2021/ServiceMarketFE/blob/master/src/app/main/business/service-seeker/profile/service-seeker-profile/service-seeker-profile.service.ts
Github Open Source
Open Source
MIT
null
ServiceMarketFE
UWindsor2021
TypeScript
Code
212
624
import { Injectable } from '@angular/core'; export class User { ID: number; FirstName: string; LastName: string; Position: string; BirthDate: string; HireDate: string; Notes: string; Address: string; City: string; State: string; ZipCode: string; Mobile: string; Home: string; Em...
15,743
https://github.com/ApsarasMC/Apsaras/blob/master/apsaras/src/main/java/org/apsarasmc/apsaras/tasker/Tasker.java
Github Open Source
Open Source
MIT
2,021
Apsaras
ApsarasMC
Java
Code
217
617
package org.apsarasmc.apsaras.tasker; import org.apsarasmc.apsaras.Apsaras; import org.apsarasmc.apsaras.plugin.PluginContainer; import java.util.Collection; import java.util.concurrent.Callable; import java.util.concurrent.TimeUnit; public interface Tasker { static Factory factory() { return Apsaras.injector(...
13,445
https://github.com/viper3400/MovieDatabaseApi/blob/master/src/Jaxx.VideoDb.WebApi/Startup.cs
Github Open Source
Open Source
Apache-2.0
null
MovieDatabaseApi
viper3400
C#
Code
553
2,657
using AutoMapper; using Jaxx.VideoDb.WebCore; using Jaxx.WebApi.Shared; using Jaxx.WebApi.Shared.Identity; using Jaxx.WebApi.Shared.Identity.Services; using Jaxx.WebApi.Shared.Infrastructure; using Jaxx.WebApi.Shared.Models; using Jaxx.WebGallery; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting;...
20,812
https://github.com/voomdoon/arduino-sketches/blob/master/sound/piezo-buzzer/frequency-by-buttons/sketch/sketch.ino
Github Open Source
Open Source
Apache-2.0
null
arduino-sketches
voomdoon
null
Spoken
104
310
//piezo-buzzer with frequency control using buttons // ++++++++++ config ++++++++++ // +++++ pin config +++++ const byte buzzerPin = 2; const byte downButtonPin = 3; const byte upButtonPin = 4; // ----- pin config ----- // ---------- config ---------- void setup() { pinMode(buzzerPin, OUTPUT); pinMode(upButtonPin...
26,768
https://github.com/noodleslove/stack-n-queue/blob/master/pkg/queue/queue.go
Github Open Source
Open Source
MIT
null
stack-n-queue
noodleslove
Go
Code
393
790
package queue import ( . "github.com/noodleslove/stack_n_queue/pkg/node" ) type Queue struct { head *Node tail *Node size uint32 } func NewQueue() *Queue { p := Queue{head: nil, tail: nil, size: 0} return &p } /** * Postcondition: The return value is true is queue object is empty, else return * false....
17,463
https://github.com/MaksOn-dev/tweetty/blob/master/app/Http/Controllers/TweetsController.php
Github Open Source
Open Source
MIT
null
tweetty
MaksOn-dev
PHP
Code
76
295
<?php namespace App\Http\Controllers; use App\Tweet; use App\User; use Illuminate\Http\Request; class TweetsController extends Controller { public function index() { $tweets = current_user()->timeline(); return view('tweets.index', [ 'tweets' => $tweets ]); } ...
2,163
https://github.com/Vyraax/VulkanLab/blob/master/docs/html/structNode.js
Github Open Source
Open Source
MIT
2,021
VulkanLab
Vyraax
JavaScript
Code
40
252
var structNode = [ [ "Node", "structNode.html#ad7a34779cad45d997bfd6d3d8043c75f", null ], [ "~Node", "structNode.html#aa0840c3cb5c7159be6d992adecd2097c", null ], [ "children", "structNode.html#a49baf1d613dc14f1e1e4aad883dde6fe", null ], [ "meshes", "structNode.html#a343964283c431779cedeeaa54da6c793", nu...
50,998
https://github.com/graysonfsmith/SRMSmockup/blob/master/SRMS/src/dao/ChartData.java
Github Open Source
Open Source
CC-BY-4.0, MIT
null
SRMSmockup
graysonfsmith
Java
Code
44
121
package dao; public class ChartData{ public String getDateTime() { return dateTime; } public void setDateTime(String dateTime) { this.dateTime = dateTime; } public Integer getNumDays() { return numDays; } public void setNumDays(Integer numDays) { this.numD...
43,565
https://github.com/PXshadow/OpenLife/blob/master/targets/cs.hxml
Github Open Source
Open Source
MIT
2,023
OpenLife
PXshadow
null
Spoken
9
35
targets/set.hxml -D net-ver=40 -D no-compilation -D real-position -cs export/cs
32,253
https://github.com/cleverage/eav-manager/blob/master/AdminBundle/Resources/views/Asset/partials/edit.blocks.html.twig
Github Open Source
Open Source
MIT
2,020
eav-manager
cleverage
Twig
Code
59
254
{% use '@CleverAgeEAVManagerAdmin/EAVData/partials/edit.blocks.html.twig' %} {% block submit_button %} {% use '@CleverAgeEAVManagerAdmin/Asset/partials/media.preview.html.twig' %} {% use '@CleverAgeEAVManagerAdmin/Base/partials/edit.blocks.html.twig' with submit_button as parent_submit_button %} {{ block('...
1,420
https://github.com/xanf-code/Inu/blob/master/src/components/Trade.vue
Github Open Source
Open Source
MIT
2,021
Inu
xanf-code
Vue
Code
49
234
<template> <div class="tw-flex tw-justify-end"> <p class="tw-font-normal tw-font-poppins tw-pl-1 tw-pr-1">{{ text }}</p> <ChevronUpIcon v-if="text.includes('+')" class="tw-h-4 tw-self-center tw-pr-1 tw-text-yellow-500" /> <ChevronDownIcon v-else class="tw-h-4 tw-self-center t...
11,469
https://github.com/team-list-aplic/list-aplic-api/blob/master/src/test/java/br/com/ufg/listaplic/template/ListDTOTemplate.java
Github Open Source
Open Source
Apache-2.0
null
list-aplic-api
team-list-aplic
Java
Code
147
666
package br.com.ufg.listaplic.template; import br.com.six2six.fixturefactory.Fixture; import br.com.six2six.fixturefactory.Rule; import br.com.six2six.fixturefactory.loader.TemplateLoader; import br.com.ufg.listaplic.dto.ListDTO; import br.com.ufg.listaplic.dto.QuestionDTO; import br.com.ufg.listaplic.model.Application...
29,323
https://github.com/Alexunderlett/RainbowDAO-Protocol-Solidity-Test-Version-01/blob/master/contracts/DaoTypes/League.sol
Github Open Source
Open Source
Apache-2.0
null
RainbowDAO-Protocol-Solidity-Test-Version-01
Alexunderlett
Solidity
Code
65
201
pragma solidity ^0.6.0; import "./Basic.sol"; import "../lib/TokenSet"; contract League is Basic{ using Set for Set.Address; bytes public daoType = "league"; Set.Address[] daoList; constructor(address _owner,address _erc20Factory) public { owner = _owner; erc20Factory = _erc20Factory; ...
26,173
https://github.com/ahmedelfateh/event_app/blob/master/app/users/tests/factories.py
Github Open Source
Open Source
Unlicense
2,021
event_app
ahmedelfateh
Python
Code
42
145
import factory from factory import Faker from factory.django import DjangoModelFactory from django.contrib.auth import get_user_model from django.db.models.signals import post_save @factory.django.mute_signals(post_save) class UserFactory(DjangoModelFactory): """[summary] Create fake user for test """ ...
24,735
https://github.com/tanepiper/webdriver-sync/blob/master/src/classes/ExpectedConditions.js
Github Open Source
Open Source
MIT
2,017
webdriver-sync
tanepiper
JavaScript
Code
312
1,250
'use strict'; var Class = require('../imports').ExpectedConditions; var By = require('./By'); var ExpectedCondition = require('../interfaces/ExpectedCondition'); var WebElement = require('../interfaces/WebElement'); var addFinalProp = require('../utils').addFinalProp; var assert = require('../assert'); module.exports...
24,319
https://github.com/balazscsaba2006/HWIOAuthBundle/blob/master/Tests/Functional/IntegrationTest.php
Github Open Source
Open Source
MIT
2,021
HWIOAuthBundle
balazscsaba2006
PHP
Code
201
1,061
<?php declare(strict_types=1); /* * This file is part of the HWIOAuthBundle package. * * (c) Hardware Info <opensource@hardware.info> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace HWI\Bundle\OAuthBundle\Tests\Functio...
12,620
https://github.com/Johnhacker/DuxCms/blob/master/dux/Config.php
Github Open Source
Open Source
MIT
2,016
DuxCms
Johnhacker
PHP
Code
82
267
<?php class Config { protected static $config = []; public static function set($name, $value = null) { if(is_array($name)) { foreach($name as $key => $vo) { self::$config[$key] = $vo; } }else{ if(is_array($value) && self::$config[$name]) { ...
18,723
https://github.com/lanyuzhiguang/gongjiao/blob/master/resources/js/ext/token.js
Github Open Source
Open Source
MIT
2,018
gongjiao
lanyuzhiguang
JavaScript
Code
29
156
(function() { var c = eh.utils.cookie, token = {}; token.quit = function() { c.deleteCookie(cookieRelative.token); c.deleteCookie(cookieRelative.token_encode); c.deleteCookie(cookieRelative.userid); c.deleteCookie(cookieRelative.username); c.deleteCookie(cookieRelative.userpwd); c.deleteCookie(cookieRela...
33,778
https://github.com/a14n/dart-rational/blob/master/test/rational_test.dart
Github Open Source
Open Source
Apache-2.0
2,022
dart-rational
a14n
Dart
Code
612
4,079
// Copyright 2013 Alexandre Ardhuin // // 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 ...
31,567
https://github.com/zongsheng/omnipay-standard-alipay/blob/master/src/Requests/AopStandardRequest.php
Github Open Source
Open Source
MIT
null
omnipay-standard-alipay
zongsheng
PHP
Code
52
239
<?php namespace Omnipay\Alipay\Requests; use Omnipay\Alipay\Responses\AopStandardResponse; /** * Class AopTradeCreateRequest * @package Omnipay\Alipay\Requests * @link https://docs.open.alipay.com/api_1/alipay.trade.create */ class AopStandardRequest extends AbstractAopRequest { /** * @param mixed $data...
12,010
https://github.com/khalidabuhakmeh/Branchy/blob/master/sample/Branchy.Sample/Program.cs
Github Open Source
Open Source
MIT
2,022
Branchy
khalidabuhakmeh
C#
Code
41
139
using Branchy; var builder = WebApplication.CreateBuilder(args); var app = builder.Build(); app.Path("/", root => { root.Metadata(c => { // .NET 6 rc2 if (c is not RouteHandlerBuilder r) return; r.ProducesValidationProblem(); r.ProducesProblem(StatusCodes.Status400BadRequest);...
34,353
https://github.com/zzheffn/logbook/blob/master/logbook-api/src/main/java/org/zalando/logbook/BaseHttpResponse.java
Github Open Source
Open Source
MIT, CC-BY-SA-3.0
2,019
logbook
zzheffn
Java
Code
19
76
package org.zalando.logbook; import org.apiguardian.api.API; import static org.apiguardian.api.API.Status.STABLE; @API(status = STABLE) public interface BaseHttpResponse extends BaseHttpMessage { int getStatus(); }
16,297
https://github.com/Eetusjo/spacy-fi/blob/master/tools/create_lexdata.py
Github Open Source
Open Source
MIT
2,021
spacy-fi
Eetusjo
Python
Code
191
567
"""Prepare a lexical data file for spacy train.""" import gzip import json import math import sys import typer from itertools import islice from pathlib import Path def main( full_vocabulary_path: Path = typer.Argument(..., help='Path to the full vocabulary'), input_vocabulary_path: Path = typer.Argument(......
23,219
https://github.com/openharmony-gitee-mirror/ace_engine_lite/blob/master/frameworks/module_manager/ohos_module_config.h
Github Open Source
Open Source
Apache-2.0
null
ace_engine_lite
openharmony-gitee-mirror
C
Code
348
1,220
/* * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
40,071
https://github.com/Amity-Network/amity/blob/master/contrib/depends/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/GLUT.framework/Versions/A/Headers/tube.h
Github Open Source
Open Source
MIT
null
amity
Amity-Network
C
Code
1,098
2,863
/* * tube.h * * FUNCTION: * Tubing and Extrusion header file. * This file provides protypes and defines for the extrusion * and tubing primitives. * * HISTORY: * Linas Vepstas 1990, 1991 */ #ifndef __TUBE_H__ #define __TUBE_H__ #include <OpenGL/OpenGLAvailability.h> #ifdef __cplusplus extern "C" { #endif...
2,666
https://github.com/mounikasai/gridoo/blob/master/src/js/main/Grid.ts
Github Open Source
Open Source
MIT
2,019
gridoo
mounikasai
TypeScript
Code
662
2,316
import * as jQuery from "jquery"; import { ConfigStore } from "../config/ConfigStore"; import { ColSettingsHandler } from "../eventHandlers/ColSettingsHandler"; import { SelectEventHandler } from "../eventHandlers/SelectEventHandler"; import { IGridOrder } from "../models/IGridOrder"; import { IPaginationInput } from "...
21,813
https://github.com/kiprox/tvstreamscript/blob/master/control/ajax/delete_broken_episode.php
Github Open Source
Open Source
WTFPL
2,021
tvstreamscript
kiprox
PHP
Code
28
146
<?php session_start(); if (!isset($_SESSION['admin_user_id']) || !$_SESSION['admin_user_id'] || !isset($_SESSION['admin_username']) || !isset($_POST['report_id'])){ exit(); } $report_id = (int) $_POST['report_id']; if (!$report_id){ exit(); } require_once("../../vars.php"); require_once("../../includes/show.class...
11,773
https://github.com/oxelson/gempak/blob/master/gempak/source/appl/grid/gqgprj.f
Github Open Source
Open Source
BSD-3-Clause
2,022
gempak
oxelson
null
Spoken
405
1,037
SUBROUTINE GQGPRJ ( proj, angle1, angle2, angle3, kx, ky, + dlatll, dlonll, dlatur, dlonur, iret ) C************************************************************************ C* GQGPRJ * C* * C* This subroutine returns the current coordinate system definition * C* for a grid which is even...
36,093
https://github.com/QRWells/Games-202-Homework/blob/master/homework2/prt/ext/tbb/src/tbbmalloc/large_objects.cpp
Github Open Source
Open Source
MIT
2,022
Games-202-Homework
QRWells
C++
Code
3,148
9,653
/* Copyright (c) 2005-2019 Intel Corporation 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 la...
1,170
https://github.com/RSamaium/RPG-JS/blob/master/packages/database/src/interfaces/params-modifier.ts
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown
2,023
RPG-JS
RSamaium
TypeScript
Code
280
519
export type ParamsModifier = { [key: string]: { value?: number, rate?: number } } export interface ParamsModifierOption { /** * Changes the values of some parameters * * > It is important that these parameters have been created beforehand with the `addParameter()` method. ...
33,952
https://github.com/bloy/adventofcode/blob/master/2018/day19/opcodes.go
Github Open Source
Open Source
MIT
2,019
adventofcode
bloy
Go
Code
320
944
package main func addr(in1, in2, out int, registers *Registers) { registers[out] = registers[in1] + registers[in2] } func addi(in1, in2, out int, registers *Registers) { registers[out] = registers[in1] + in2 } func mulr(in1, in2, out int, registers *Registers) { registers[out] = registers[in1] * registers[in2] } ...
12,848
https://github.com/acerols/RMRV/blob/master/Pipeline/sim/Forward_sim.sv
Github Open Source
Open Source
MIT
null
RMRV
acerols
null
Spoken
137
384
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 01/29/2020 03:56:14 AM // Design Name: // Module Name: Forward_sim // Project Name: // Target Devices: // Tool Versions: // Description: // // Dependencies: // /...
33,315
https://github.com/szaydel/cmocka/blob/master/tests/test_returns.c
Github Open Source
Open Source
Apache-2.0
2,022
cmocka
szaydel
C
Code
125
583
#include "config.h" #include <stdarg.h> #include <stddef.h> #include <setjmp.h> #include <cmocka.h> #include <cmocka_private.h> #include <stdlib.h> int mock_function(void); void mock_function_call_times(size_t times, int expectedValue); int mock_function(void) { return (int) mock(); } void mock_function_call_tim...
37,102
https://github.com/mikemitr/test-for-brian-criswell/blob/master/Procfile
Github Open Source
Open Source
BSD-3-Clause
2,014
test-for-brian-criswell
mikemitr
null
Spoken
4
29
web: gunicorn --pythonpath="$PWD/test-for-brian-criswell" wsgi:application
14,810
https://github.com/dswalla/conan-and-gracie/blob/master/src/pages/about.js
Github Open Source
Open Source
MIT
2,019
conan-and-gracie
dswalla
JavaScript
Code
117
285
import React from "react" import { graphql } from "gatsby" import Img from "gatsby-image" import Layout from "../components/layout" import aboutStyles from "./about.module.css" export const query = graphql` query { file(relativePath: { eq: "Conan&Gracie.jpg" }) { childImageSharp { fluid(maxWidth: 7...
30,112
https://github.com/netrek/JTrek/blob/master/src/jtrek/Main.java
Github Open Source
Open Source
AAL
2,021
JTrek
netrek
Java
Code
1,024
3,683
package jtrek; import jtrek.comm.*; import jtrek.visual.*; import jtrek.data.*; import jtrek.config.*; import java.awt.*; import java.io.*; public class Main extends Thread implements Copyright { public Universe data; public Communications comm; public NetrekFrame view; boolean ghost_start = false; public Ma...
23,905
https://github.com/Young-Guiji/mall-web/blob/master/src/store/cart/actions.js
Github Open Source
Open Source
Apache-2.0
null
mall-web
Young-Guiji
JavaScript
Code
126
554
import * as types from './mutations_types'; export default { clear_cart: ({commit}) => { commit(types.CLEAR_CART); }, update_cart: ({commit}) => { commit(types.UPDATE_CART); }, update_cur_index: ({commit}, obj) => { commit(types.UPDATE_CUR_INDEX, obj); }, delete_product: ({commit}) => { c...
46,036
https://github.com/egovernments/BBMP-CHBMS-Improvement/blob/master/Backend/patient-queue/src/main/resources/db/mysql_script.sql
Github Open Source
Open Source
MIT
2,021
BBMP-CHBMS-Improvement
egovernments
SQL
Code
167
543
/* Check if the contact number, srf_number, zone, hospital_id,icrmr_number, srf_number requires varchar(100). This should be common across event bus etc. And type, bed_type, requires varchar(50) */ CREATE TABLE `patient` ( `patient_id` int(20) NOT NULL, `bu_number` int(20) DEFAULT NULL, `contact_number` varchar...
4,586
https://github.com/stefaneberl/openkit-native/blob/master/test/core/objects/NullActionTest.cxx
Github Open Source
Open Source
curl, BSD-3-Clause, Apache-2.0
2,020
openkit-native
stefaneberl
C++
Code
362
1,259
/** * Copyright 2018-2020 Dynatrace 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 ag...
30,136
https://github.com/PostRaphaelPerrin/bootstrap-maven-starter-/blob/master/core-it-suite/src/test/java/org/apache/maven/it/MavenITmng3760BaseUriPropertyTest.java
Github Open Source
Open Source
Apache-2.0
null
bootstrap-maven-starter-
PostRaphaelPerrin
Java
Code
309
892
package org.apache.maven.it; /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Versio...
10,622
https://github.com/yinsongbj/tinychain-1/blob/master/account/key.go
Github Open Source
Open Source
MIT
2,020
tinychain-1
yinsongbj
Go
Code
64
191
package account import ( "github.com/tinychain/tinychain/common" "github.com/tinychain/tinychain/crypto" ) type Key struct { privKey crypto.PrivateKey pubKey crypto.PublicKey } func NewKeyPairs() (*Key, error) { priv, pub, err := crypto.NewKeyPair() if err != nil { return nil, err } return &Key{priv, pub}...
26,495
https://github.com/deminoth/redux/blob/master/src/utils/formatProdErrorMessage.ts
Github Open Source
Open Source
MIT, LicenseRef-scancode-public-domain, CC0-1.0
2,023
redux
deminoth
TypeScript
Code
66
153
/** * Adapted from React: https://github.com/facebook/react/blob/master/packages/shared/formatProdErrorMessage.js * * Do not require this module directly! Use normal throw error calls. These messages will be replaced with error codes * during build. * @param {number} code */ export function formatProdErrorMessage...
10,263
https://github.com/atefben/fdc/blob/master/src/Base/CoreBundle/Entity/NewsWidgetVideoYoutube.php
Github Open Source
Open Source
MIT
null
fdc
atefben
PHP
Code
117
420
<?php namespace Base\CoreBundle\Entity; use \DateTime; use A2lix\I18nDoctrineBundle\Doctrine\ORM\Util\Translatable; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\Mapping as ORM; use JMS\Serializer\Annotation\Groups; use JMS\Serializer\Annotation\Since; use Symfony\Component\Validator\Constrain...
17,055
https://github.com/dam1-joqix/Desarrollo-Web-en-entorno-Cliente/blob/master/UT4/src/UT5/TareasUT5/js/Tarea.js
Github Open Source
Open Source
MIT
2,019
Desarrollo-Web-en-entorno-Cliente
dam1-joqix
JavaScript
Code
359
2,052
class Tarea{ constructor(json) { this.titulo=json.titulo; this.descripcion=json.descripcion; this.estado=json.estado[0]; this.fecha=json.fecha_creacion; this.id=json._id; } toString(){ return `${this.titulo} ${this.descripcion} ${this.estado} ${this.fecha}`; } obtenerDiv(){ let d...
26,865
https://github.com/tzlaine/text/blob/master/test/generated/bidi_test_893.cpp
Github Open Source
Open Source
BSL-1.0, LicenseRef-scancode-unknown-license-reference
2,023
text
tzlaine
C++
Code
20,000
51,655
// Copyright (C) 2020 T. Zachary Laine // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // Warning! This file is autogenerated. #include <boost/text/bidirectional.hpp> #include "bidi_tests.hpp" #include <gtest/...
32,234
https://github.com/pentp/azure-cosmos-dotnet-v3/blob/master/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/Pagination/CrossPartitionPartitionRangeEnumeratorTests.cs
Github Open Source
Open Source
MIT
null
azure-cosmos-dotnet-v3
pentp
C#
Code
510
2,141
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------ namespace Microsoft.Azure.Cosmos.Tests.Pagination { using System; using System.Collections.Generic; using System.Colle...
44,230
https://github.com/dengjiaping/qixing/blob/master/app/src/main/java/com/qixing/qxlive/QXLiveShowActivity.java
Github Open Source
Open Source
Apache-2.0
2,017
qixing
dengjiaping
Java
Code
5,983
28,996
package com.qixing.qxlive; import android.Manifest; import android.animation.Animator; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.app.Activity; import android.app.ProgressDialog; import android.content.Context; import android.content.Intent; import android.content.pm....
31,655