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/sancheet-patil/online--banking/blob/master/resources/views/layouts/error.blade.php
Github Open Source
Open Source
MIT
2,020
online--banking
sancheet-patil
PHP
Code
48
191
@if ($errors->any()) <div class="alert alert-danger text-center" role="alert"> @foreach ($errors->all() as $error) <i class="fas fa-times"></i> <strong style="color: red;text-align: left">{{ $error }}</strong> <br> @endforeach </div> {{-- <div class="alert alert-danger ...
8,000
https://github.com/yuan50697105/my-admin-test/blob/master/my-admin-01/my-admin-maven/my-admin-web/src/main/java/org/yuan/admin/web/controller/ResultController.java
Github Open Source
Open Source
Apache-2.0
null
my-admin-test
yuan50697105
Java
Code
28
107
package org.yuan.admin.web.controller; import org.springframework.web.bind.annotation.RestController; import org.yuan.admin.commons.controller.ICommonsController; /** * @program: my-admin-gradle * @description: * @author: yuane * @create: 2020-04-19 19:34 */ @RestController public class ResultController extends ...
2,710
https://github.com/ibiz4j/ibizlab-runtime/blob/master/ibzou/ibzou-core/src/main/java/cn/ibizlab/core/util/config/MongoDBConfig.java
Github Open Source
Open Source
Apache-2.0
2,021
ibizlab-runtime
ibiz4j
Java
Code
42
293
package cn.ibizlab.core.util.config; import cn.ibizlab.util.helper.JSR310DateConverters; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.convert.converter.Converter; import org.springframework.data.mongodb.core.convert.*; ...
38,321
https://github.com/Cytomine-ULiege/Cytomine-python-datamining/blob/master/cytomine-applications/segmentation_model_builder/add_and_run_job.py
Github Open Source
Open Source
Apache-2.0
2,018
Cytomine-python-datamining
Cytomine-ULiege
Python
Code
1,337
5,291
# -*- coding: utf-8 -*- # # * Copyright (c) 2009-2016. Authors: see NOTICE file. # * # * 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...
3,318
https://github.com/ninjaframework/ninja/blob/master/ninja-websockets-jsr356/src/main/java/ninja/websockets/jsr356/Jsr356WebSockets.java
Github Open Source
Open Source
Apache-2.0
2,022
ninja
ninjaframework
Java
Code
267
672
/** * Copyright (C) the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
5,720
https://github.com/eliudfromkenya/Pilgrims.Mobile.Music/blob/master/Src/Pilgrims.Music/Pilgrims.Music/ViewModels/MorePageViewModel.cs
Github Open Source
Open Source
MIT
null
Pilgrims.Mobile.Music
eliudfromkenya
C#
Code
143
467
using Prism.Navigation; using Prism.Services.Dialogs; using System.Collections.ObjectModel; using System.Windows.Input; using Pilgrims.Music.Models; using Pilgrims.Music.Views.Dialogs; using Xamarin.Essentials; using Xamarin.Forms; namespace Pilgrims.Music.ViewModels { public class MorePageViewModel : Ba...
46,789
https://github.com/DRK3/trustbloc-did-method/blob/master/pkg/did/option.go
Github Open Source
Open Source
Apache-2.0
2,021
trustbloc-did-method
DRK3
Go
Code
79
187
/* Copyright SecureKey Technologies Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package did import ( "crypto/tls" ) // Option is a DID client instance option type Option func(opts *Client) // WithTLSConfig option is for definition of secured HTTP transport using a tls.Config instance func With...
6,466
https://github.com/1st1/edgedb/blob/master/edb/lang/common/nlang.py
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,018
edgedb
1st1
Python
Code
434
1,285
# # This source file is part of the EdgeDB open source project. # # Copyright 2008-present MagicStack Inc. and the EdgeDB authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http...
25,086
https://github.com/dmitriychabak/rbk-test/blob/master/src/app/root/components/landing-container/landing-container.component.ts
Github Open Source
Open Source
Apache-2.0
null
rbk-test
dmitriychabak
TypeScript
Code
14
43
import { Component } from '@angular/core'; @Component({ templateUrl: 'landing-container.component.pug' }) export class LandingContainerComponent {}
1,749
https://github.com/evoytenkoapps/taiga-ui/blob/master/projects/kit/components/input-number/test/input-number.component.spec.ts
Github Open Source
Open Source
Apache-2.0
null
taiga-ui
evoytenkoapps
TypeScript
Code
688
2,618
import {Component, DebugElement, ViewChild} from '@angular/core'; import {ComponentFixture, TestBed} from '@angular/core/testing'; import {FormControl, FormGroup, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {CHAR_NO_BREAK_SPACE} from '@ta...
36,808
https://github.com/natalmakers/bloco.ino/blob/master/examples/ultrassonico_bloco.ino
Github Open Source
Open Source
MIT
null
bloco.ino
natalmakers
null
Spoken
247
765
/* Sensor Ultrassonico Bloco.ino Mostra a medição de distâncias em centímetros com o sensor ultrassonico Criado em 8 de Dezembro de 2019 por NatalMakers.com Este exemplo de Código é de domínio público. */ ///////////////////////////////////////////////////////////// ////////////////////////////////////...
39,273
https://github.com/fhussonnois/kafka-examples/blob/master/producer-twitter/src/main/java/com/github/fhuss/kafka/examples/twitter/internal/Utils.java
Github Open Source
Open Source
Apache-2.0
2,021
kafka-examples
fhussonnois
Java
Code
215
448
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
30,415
https://github.com/JensDerKrueger/ImageVis3D/blob/master/Tuvok/IO/UVF/GlobalHeader.cpp
Github Open Source
Open Source
MIT
null
ImageVis3D
JensDerKrueger
C++
Code
143
870
#include "GlobalHeader.h" using namespace std; using namespace UVFTables; GlobalHeader::GlobalHeader() : bIsBigEndian(false), ulFileVersion(0), ulChecksumSemanticsEntry(CS_NONE), ulAdditionalHeaderSize(0), ulOffsetToFirstDataBlock(0) {} GlobalHeader::GlobalHeader(const GlobalHeader &other) : bIsBigEndi...
16,530
https://github.com/timfel/netbeans/blob/master/groovy/groovy.editor/test/unit/data/testfiles/declarationfinder/Methods1.groovy
Github Open Source
Open Source
Apache-2.0
2,022
netbeans
timfel
Groovy
Code
11
31
x = "a" println getName(x) def getName(a) { assert false }
17,845
https://github.com/mariosant/stylish/blob/master/src/cond.js
Github Open Source
Open Source
MIT
null
stylish
mariosant
JavaScript
Code
29
66
import {cond as rcond, map} from 'ramda'; const styleToFn = ([predFn, style]) => [predFn, () => style]; const cond = (conditions = []) => rcond(map(styleToFn, conditions)); export default cond;
53,443
https://github.com/dustprotocol/iotex-antenna-swift/blob/master/Sources/Protogen/api.grpc.swift
Github Open Source
Open Source
Apache-2.0
null
iotex-antenna-swift
dustprotocol
Swift
Code
3,307
12,918
// // DO NOT EDIT. // // Generated by the protocol buffer compiler. // Source: proto/api/api.proto // // // Copyright 2018, gRPC 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 cop...
25,827
https://github.com/tomothyc/Korean-Language-Learner/blob/master/UI/back-end/app/data.js
Github Open Source
Open Source
CC0-1.0
null
Korean-Language-Learner
tomothyc
JavaScript
Code
38
137
const bcrypt = require("bcryptjs"); const admin = [ { username: "Callum", email: "Callumroy@me.com", studentNumber: "22723279", password: bcrypt.hashSync("1234", 8), isAdmin: true }, { username: "test", email: "test@test.com", studentNumber: "22723279", password: bcrypt.hashSyn...
6,832
https://github.com/ricoyu/loser-tests/blob/master/src/test/java/com/loserico/algorithm/RadixConvert.java
Github Open Source
Open Source
MIT
2,019
loser-tests
ricoyu
Java
Code
46
188
package com.loserico.algorithm; import java.util.Scanner; public class RadixConvert { /** * 进制转换 * 写出一个程序,接受一个十六进制的数,输出该数值的十进制表示。(多组同时输入 ) * * @param args */ public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNext()) { String input = sc.next(); String an...
24,490
https://github.com/feniksa/indb8/blob/master/src/db-engine/berkeley/MojDbBerkeleyItem.cpp
Github Open Source
Open Source
Apache-2.0
2,020
indb8
feniksa
C++
Code
327
1,477
#include "db-engine/berkeley/MojDbBerkeleyItem.h" #include "core/MojObjectBuilder.h" MojDbBerkeleyItem::MojDbBerkeleyItem() : m_free(MojFree) { MojZero(&m_dbt, sizeof(DBT)); m_dbt.flags = DB_DBT_REALLOC; } MojErr MojDbBerkeleyItem::kindId(MojString& kindIdOut, MojDbKindEngine& kindEngine) { MojErr err = m_header.r...
25,121
https://github.com/prettier-solidity/prettier-plugin-solidity/blob/master/tests/format/Assembly/Assembly.sol
Github Open Source
Open Source
MIT
2,023
prettier-plugin-solidity
prettier-solidity
Gerber Image
Code
542
1,422
contract Assembly { function ifAssembly() { assembly { if returndatasize { success := 0 } } } function caseAssembly() { assembly { switch value case 0 { mstore(0, 0x0000000000000000000000000000000000000000000000000000000000000000) ...
10,971
https://github.com/vinaytota-optimizely/python-mapswipe-workers/blob/master/mapswipe_workers/utils/error_handling.py
Github Open Source
Open Source
Apache-2.0
null
python-mapswipe-workers
vinaytota-optimizely
Python
Code
176
454
import sys import traceback from mapswipe_workers.utils import slack def _get_error_message_details(error): """ The function to nicely extract error text and traceback." Parameters ---------- error : Exception the python exception which caused the error Returns ------- error_m...
11,056
https://github.com/eric-erki/platform-IoT-devices-and-edge-servers-/blob/master/pkg/controller/middleware/middleware.go
Github Open Source
Open Source
Apache-2.0
2,021
platform-IoT-devices-and-edge-servers-
eric-erki
Go
Code
331
1,014
package middleware import ( "errors" "fmt" "math" "net/http" "strconv" "github.com/deviceplane/deviceplane/pkg/utils" ) const ( TotalPagesHeader = "Total-Pages" ) const MaxPageSize = int(100) const ( PageNumParam = "page" PageSizeParam = "page_size" OrderByParam = "order_by" OrderParam = "order" ) ...
52,901
https://github.com/dzufferey/scala-qepcad-interface/blob/master/src/main/scala/dzufferey/qepcad/Parser.scala
Github Open Source
Open Source
Apache-2.0
null
scala-qepcad-interface
dzufferey
Scala
Code
602
1,514
package dzufferey.qepcad import dzufferey.smtlib._ import dzufferey.utils._ import dzufferey.utils.LogLevel._ import scala.util.parsing.combinator.syntactical.StandardTokenParsers object Parser extends StandardTokenParsers { import scala.util.parsing.combinator._ import scala.util.parsing.combinator.lexical._ ...
983
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/s/sencha_touch/src/main/scala/typingsSlinky/senchaTouch/Ext/chart/series/IGauge.scala
Github Open Source
Open Source
MIT
2,021
SlinkyTyped
ScalablyTyped
Scala
Code
1,753
6,089
package typingsSlinky.senchaTouch.Ext.chart.series import typingsSlinky.senchaTouch.Ext.Array import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait IGauge extends IS...
47,108
https://github.com/rodm/gradle-teamcity-plugin/blob/master/src/main/java/com/github/rodm/teamcity/tasks/Undeploy.java
Github Open Source
Open Source
Apache-2.0
2,023
gradle-teamcity-plugin
rodm
Java
Code
177
539
/* * Copyright 2020 Rod MacKenzie * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
6,099
https://github.com/intershop/intershop-pwa/blob/master/src/app/extensions/store-locator/store/stores/stores.reducer.ts
Github Open Source
Open Source
AGPL-3.0-only, CC-BY-4.0, CC0-1.0, BSD-3-Clause, 0BSD, GPL-2.0-only, Apache-2.0, LicenseRef-scancode-public-domain, BSD-2-Clause, MIT, CC-BY-3.0, Unlicense
2,023
intershop-pwa
intershop
TypeScript
Code
134
383
import { EntityState, createEntityAdapter } from '@ngrx/entity'; import { createReducer, on } from '@ngrx/store'; import { HttpError } from 'ish-core/models/http-error/http-error.model'; import { setErrorOn } from 'ish-core/utils/ngrx-creators'; import { StoreLocation } from '../../models/store-location/store-locatio...
11,439
https://github.com/royalwang/BBFrameworks/blob/master/BBFrameworks/BBKit/BBKitCGImageFunctions.h
Github Open Source
Open Source
BSD-2-Clause
2,015
BBFrameworks
royalwang
Objective-C
Code
327
638
// // BBKitCGImageFunctions.h // BBFrameworks // // Created by William Towe on 5/29/15. // Copyright (c) 2015 Bion Bilateral, LLC. 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. Redi...
40,525
https://github.com/novakge/project-parsers/blob/master/data/mmlib100/J10059_1.mm
Github Open Source
Open Source
MIT
2,021
project-parsers
novakge
Objective-C++
Code
3,044
5,956
jobs (incl. supersource/sink ): 102 RESOURCES - renewable : 2 R - nonrenewable : 2 N - doubly constrained : 0 D ************************************************************************ PRECEDENCE RELATIONS: jobnr. #modes #successors successors 1 1 17 2 3 5 6 7 8 9 10 11 12 13...
21,650
https://github.com/flanglet/kanzi-graphic/blob/master/java/src/kanzi/transform/DST4.java
Github Open Source
Open Source
Apache-2.0
2,019
kanzi-graphic
flanglet
Java
Code
1,489
3,579
/* Copyright 2011-2017 Frederic Langlet 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 in ...
4,743
https://github.com/ljhs-games/week-75/blob/master/src/nodes/enemy-spawner/EnemySpawner.gd
Github Open Source
Open Source
MIT
2,018
week-75
ljhs-games
GDScript
Code
80
338
extends Node2D export (PackedScene) var spawn_pack export var respawn_time_range = Vector2(0.2, 1.0) export var spawn_padding = 50.0 # makes sure enemies spawn outside screen export (NodePath) var player_path # pass to enemies to follow var display_size = Vector2() onready var player_node = get_node(player_path) fu...
43,299
https://github.com/brugger1/testsuite/blob/master/validation_tests/llvm/f18/gfortran.dg/minmax_char_2.f90
Github Open Source
Open Source
MIT
2,022
testsuite
brugger1
null
Spoken
23
54
! { dg-do compile } ! { dg-options "-std=f95" } print *, min("foo", "bar") ! { dg-error "Fortran 2003.* CHARACTER argument" } end
1,684
https://github.com/requery/sqlite-android/blob/master/sqlite-android/src/main/java/io/requery/android/database/sqlite/SQLiteQueryBuilder.java
Github Open Source
Open Source
Apache-2.0
2,023
sqlite-android
requery
Java
Code
3,521
6,696
/* * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
18,443
https://github.com/spotcatbug/CocosSharp/blob/master/tests/tests/classes/tests/ExtensionsTest/TableViewTest/TableViewTestScene.cs
Github Open Source
Open Source
MIT
null
CocosSharp
spotcatbug
C#
Code
306
1,087
using System; using CocosSharp; namespace tests.Extensions { public class TableViewTestLayer : CCLayer, ICCTableViewDataSource, ICCTableViewDelegate { public TableViewTestLayer() { } public override void OnEnter() { base.OnEnter(); InitTableV...
4,332
https://github.com/Slavaromanenko3424/kpi-computer-architecture-course/blob/master/dk72_kotsiubailo/lab4_alu/src/lab4_alu.sv
Github Open Source
Open Source
MIT
2,019
kpi-computer-architecture-course
Slavaromanenko3424
null
Spoken
175
686
`timescale 1ns/1ps module lab4_alu(in_A, in_B, in_func, out_result, out_overflow, out_zero, shamt); input logic [31:0] in_A, in_B; input logic [4:0] in_func, shamt; output logic out_overflow; output logic out_zero; output logic [31:0] out_result; logic [31:0] result_barrel_shifter; logic [31:0] result_addsub; logi...
33,968
https://github.com/LunaGao/a_monsters_expedition/blob/master/entity/map/full_tree_2_ground.py
Github Open Source
Open Source
Apache-2.0
2,020
a_monsters_expedition
LunaGao
Python
Code
12
49
from entity.map.base_ground import BaseGround class FullTree2Ground(BaseGround): def __init__(self): super().__init__() self.canStand = False
22,686
https://github.com/ibcom-lab/mydigitalstructure-learn-xero/blob/master/node_modules/xero-node/dist/gen/model/payroll-nz/address.d.ts
Github Open Source
Open Source
MIT, CC0-1.0
2,021
mydigitalstructure-learn-xero
ibcom-lab
TypeScript
Code
93
227
export declare class Address { /** * Address line 1 for employee home address */ 'addressLine1': string; /** * Address line 2 for employee home address */ 'addressLine2'?: string; /** * Suburb for employee home address */ 'city': string; /** * Suburb for employee ...
5,949
https://github.com/ppppr/K-UI/blob/master/examples/src/index.js
Github Open Source
Open Source
MIT
2,023
K-UI
ppppr
JavaScript
Code
32
88
import Vue from 'vue' import Kui from '../../src' import App from './App' import router from './router.config' Vue.config.productionTip = false Vue.use(...Kui) new Vue({ el: '#app', router, components: { App }, template: '<App/>' })
9,038
https://github.com/smartameer/rn-snackbar-component/blob/master/src/utils/index.js
Github Open Source
Open Source
MIT
2,023
rn-snackbar-component
smartameer
JavaScript
Code
34
67
import { Platform } from 'react-native' const { Version, OS, } = Platform export const IS_ANDROID = OS === 'android' export const IS_LT_LOLLIPOP = Version < 21 export const noop = () => {}
13,321
https://github.com/ruitard/TARDIS/blob/master/leetcode/007.c
Github Open Source
Open Source
MIT
2,019
TARDIS
ruitard
C
Code
112
288
#include <stdio.h> #include <limits.h> int reverse(int x) { if(x >= 0) { int pop = x % 10; x /= 10; int rev = pop; while(x) { pop = x % 10; x /= 10; if(rev > (INT_MAX-pop)/10) { return 0; } rev = rev*10 + po...
50,228
https://github.com/karthyPeriyasamy/laravel-physician-patient-system/blob/master/app/Http/Controllers/API/LoginController.php
Github Open Source
Open Source
MIT
null
laravel-physician-patient-system
karthyPeriyasamy
PHP
Code
92
396
<?php namespace App\Http\Controllers\API; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; use Illuminate\Support\Facades\Config; use App\Http\Controllers\API\BaseController; class LoginController extends BaseController { public function login(Request $request) { $validator = Va...
29,617
https://github.com/LukeSeers/Slipe-Server/blob/master/SlipeServer.Server/Constants/WeaponConstants.cs
Github Open Source
Open Source
MIT
null
Slipe-Server
LukeSeers
C#
Code
296
1,621
using SlipeServer.Server.Elements; using SlipeServer.Server.Enums; using System; using System.Collections.Generic; namespace SlipeServer.Server.Constants { public class WeaponConstants { public static Dictionary<WeaponId, WeaponSlot> SlotPerWeapon = new Dictionary<WeaponId, WeaponSlot>() { ...
35,249
https://github.com/Rattlyy/CodeChampionship/blob/master/src/main/java/it/rattly/legale/views/main/MainView.java
Github Open Source
Open Source
Apache-2.0
null
CodeChampionship
Rattlyy
Java
Code
42
190
package it.rattly.legale.views.main; import com.vaadin.flow.component.orderedlayout.HorizontalLayout; import com.vaadin.flow.router.PageTitle; import com.vaadin.flow.router.Route; import com.vaadin.flow.router.RouteAlias; import it.rattly.legale.Constants; import it.rattly.legale.views.MainLayout; import javax.annota...
35,212
https://github.com/tofurecords/tofurecords/blob/master/db/migrate/20180719093602_cange_datatype_release_of_cds.rb
Github Open Source
Open Source
MIT
2,018
tofurecords
tofurecords
Ruby
Code
12
46
class CangeDatatypeReleaseOfCds < ActiveRecord::Migration[5.2] def change change_column :cds, :release, :date end end
9,365
https://github.com/dizhaung/orion-graph-cpe-matching/blob/master/src/main/java/cz/muni/csirt/ogm/vertex/wfn/SourceAVSpecVertex.java
Github Open Source
Open Source
MIT
2,021
orion-graph-cpe-matching
dizhaung
Java
Code
130
650
package cz.muni.csirt.ogm.vertex.wfn; import cz.muni.csirt.nvd.cpe.transform.wfn.AVPair; import cz.muni.csirt.nvd.cpe.transform.wfn.SourceAVSpec; import cz.muni.csirt.nvd.cpe.transform.wfn.StringRange; import cz.muni.csirt.ogm.AVSpecVertexWithAttribute; import cz.muni.csirt.ogm.RelationCreationUtil; import cz.muni.csi...
1,677
https://github.com/research-team/pain/blob/master/axon.py
Github Open Source
Open Source
FTL
2,021
pain
research-team
Python
Code
573
3,075
from neuron import h h.load_file('stdlib.hoc') #for h.lambda_f # h.nrn_load_dll("x86_64/.libs/libnrnmech.so") import random class axon(object): ''' bio-axon class with parameters: axon parameters from: https://senselab.med.yale.edu/ModelDB/ShowModel.cshtml?model=3810&file=/MRGaxon/MRGaxon.hoc#tabs-2 number:...
46,289
https://github.com/staltz/xstream/blob/master/tests/extra/pairwise.ts
Github Open Source
Open Source
MIT
2,022
xstream
staltz
TypeScript
Code
108
309
/// <reference types="mocha"/> /// <reference types="node" /> import xs from '../../src/index'; import pairwise from '../../src/extra/pairwise'; import * as assert from 'assert'; describe('pairwise (extra)', () => { it('should group consecutive pairs as arrays', (done: any) => { const stream = xs.of(1, 2, 3, 4, ...
8,016
https://github.com/adrikaraeng/bot-dbo/blob/master/views/site/get_case.php
Github Open Source
Open Source
BSD-3-Clause
null
bot-dbo
adrikaraeng
PHP
Code
71
362
<?php use yii\helpers\Html; use yii\helpers\Url; $keyboard = [ 'remove_keyboard' => true ]; Yii::$app->telegram->sendMessage("Silahkan input case anda dengan mengikuti <b>Format</b>: \n\n#[NAMA_PELANGGAN]\n#[EMAIL_PELANGGAN]\n#[HP]\n#[PSTN]\n#[INET]\n#[NOMOR TIKET/ ORDER]\n#[DESKRIPSI_KELUHAN] \...
20,337
https://github.com/m00g3n/compass/blob/master/components/tenant-fetcher/internal/tenant/automock/tenant_repository.go
Github Open Source
Open Source
Apache-2.0
2,021
compass
m00g3n
Go
Code
212
604
// Code generated by mockery v0.0.0-dev. DO NOT EDIT. package automock import ( context "context" model "github.com/kyma-incubator/compass/components/tenant-fetcher/internal/model" mock "github.com/stretchr/testify/mock" ) // TenantRepository is an autogenerated mock type for the TenantRepository type type Tenan...
6,780
https://github.com/goph/serverz/blob/master/grpc/server.go
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,017
serverz
goph
Go
Code
80
220
package grpc import ( "context" "sync" "google.golang.org/grpc" ) // Server implements the Server interface for a gRPC server. type Server struct { *grpc.Server } // Shutdown implements the Server interface. func (s *Server) Shutdown(ctx context.Context) error { wg := &sync.WaitGroup{} c := make(chan struct{}...
26,369
https://github.com/sramana2/so/blob/master/bpmn/so-bpmn-infrastructure-common/src/main/groovy/org/onap/so/bpmn/infrastructure/scripts/DoAllocateNSIandNSSI.groovy
Github Open Source
Open Source
Apache-2.0
null
so
sramana2
Groovy
Code
910
4,781
package org.onap.so.bpmn.infrastructure.scripts import com.google.common.reflect.TypeToken import com.google.gson.Gson import org.camunda.bpm.engine.delegate.BpmnError import org.camunda.bpm.engine.delegate.DelegateExecution import org.onap.aai.domain.yang.AllottedResource import org.onap.aai.domain.yang.Relationship ...
16,561
https://github.com/unit8co/darts/blob/master/darts/utils/losses.py
Github Open Source
Open Source
Apache-2.0
2,023
darts
unit8co
Python
Code
347
995
""" PyTorch Loss Functions ---------------------- """ # Inspiration: https://github.com/ElementAI/N-BEATS/blob/master/common/torch/losses.py import numpy as np import torch import torch.nn as nn def _divide_no_nan(a, b): """ a/b where the resulted NaN or Inf are replaced by 0. """ result = a / b ...
18,468
https://github.com/isabella232/harmony-drlvm/blob/master/vm/tests/kernel/java/lang/ClassTestGetResource.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-generic-cla, BSD-4-Clause-UC, Zlib, BSD-4-Clause, LicenseRef-scancode-other-permissive, ISC
2,010
harmony-drlvm
isabella232
Java
Code
666
1,850
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you...
22,170
https://github.com/icarephone/gcr.io/blob/master/gcr.io/google_containers/hyperkube-arm64/v1.9.0-beta.2
Github Open Source
Open Source
Apache-2.0
2,019
gcr.io
icarephone
null
Spoken
1
30
gcr.io/google_containers/hyperkube-arm64:v1.9.0-beta.2
4,465
https://github.com/MikeKMiller/wasabi/blob/master/modules/eventlog/src/test/java/com/intuit/wasabi/eventlog/events/BucketCreateEventTest.java
Github Open Source
Open Source
Apache-2.0
2,019
wasabi
MikeKMiller
Java
Code
268
912
/******************************************************************************* * Copyright 2016 Intuit * <p> * 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 * <p> * http://www.apache.o...
31,043
https://github.com/aws/aws-sdk-cpp/blob/master/generated/src/aws-cpp-sdk-proton/include/aws/proton/model/ListServiceInstancesSortBy.h
Github Open Source
Open Source
Apache-2.0, MIT, JSON
2,023
aws-sdk-cpp
aws
C++
Code
71
263
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/proton/Proton_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> namespace Aws { namespace Proton { namespace Model { enum class ListServiceInstancesSortBy { ...
42,321
https://github.com/gyrdym/ml_algo/blob/master/test/link_function/helpers/link_function_to_json_test.dart
Github Open Source
Open Source
BSD-2-Clause
2,022
ml_algo
gyrdym
Dart
Code
55
261
import 'package:ml_algo/src/link_function/helpers/link_function_to_json.dart'; import 'package:ml_algo/src/link_function/inverse_logit_link_function.dart'; import 'package:ml_algo/src/link_function/link_function_encoded_values.dart'; import 'package:ml_algo/src/link_function/softmax_link_function.dart'; import 'package...
40,165
https://github.com/shownok/School-Management/blob/master/app/Traits/SmsGateway/BudgetSmsNet.php
Github Open Source
Open Source
MIT
2,021
School-Management
shownok
PHP
Code
48
280
<?php namespace App\Traits\SmsGateway; trait BudgetSmsNet{ /*Sparrow SMS*/ public function BudgetSMS($contactNumbers, $message) { /*get Setting*/ $smsSetting = $this->getSmsSetting(); $sms = json_decode($smsSetting['BudgetSmsNet'],true); $username = $sms['Username']; ...
40,748
https://github.com/magoragit/redux-chat/blob/master/src/components/App.js
Github Open Source
Open Source
MIT
null
redux-chat
magoragit
JavaScript
Code
163
647
import React from "react"; import { Nav, Navbar, NavItem, MenuItem, Button } from "react-bootstrap"; import { RouteHandler, Link } from "react-router"; //import LoginStore from "../stores/LoginStore"; //import AuthService from "../services/Auth"; class App extends React.Component { constructor(props) { sup...
38,894
https://github.com/lebronjames/springBootRabbitMq/blob/master/src/main/java/com/example/demo/mq/Sender.java
Github Open Source
Open Source
Apache-2.0
null
springBootRabbitMq
lebronjames
Java
Code
59
280
package com.example.demo.mq; import java.util.Date; import org.springframework.amqp.core.AmqpTemplate; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; /** * 消息生产者Sender * * 项目名称: springBootRabbitMq * 包: com.example.demo.mq * 类名称: Sender.j...
7,788
https://github.com/pushed/bugsnag-notification-plugins/blob/master/plugins/hipchat/index.coffee
Github Open Source
Open Source
MIT
null
bugsnag-notification-plugins
pushed
CoffeeScript
Code
129
551
NotificationPlugin = require "../../notification-plugin" Handlebars = require 'handlebars' class Hipchat extends NotificationPlugin BASE_URL = "https://api.hipchat.com/v1" @receiveEvent: (config, event, callback) -> # Build the message if event.error details = title: "#{event.trigger.messag...
37,336
https://github.com/jazzwave1/CI/blob/master/application/views/book/book_buy_cancel.php
Github Open Source
Open Source
MIT
null
CI
jazzwave1
PHP
Code
107
697
<div class="top_guide_1"> <div><big><a href="/sub/training/COMMUNITY_faq.php">◎ 주문/배송에 관련된 의문사항은 이곳을 클릭해 확인하시기 바랍니다.</a></big></div> <b>※ 주문취소: 주문완료 후 최대 7일 이내 (1회이상 본 경우 제외)</b> </div> <div id="CANCEL_order"> <!-------- 테이블 ---------> <table cellpadding="1" cellspacing="1" class="TABLE_col"> <...
2,080
https://github.com/catboost/catboost/blob/master/util/generic/mapfindptr.h
Github Open Source
Open Source
Apache-2.0
2,023
catboost
catboost
C++
Code
198
508
#pragma once #include <type_traits> #include <utility> /** MapFindPtr usage: if (T* value = MapFindPtr(myMap, someKey) { Cout << *value; } */ template <class Map, class K> inline auto MapFindPtr(Map& map, const K& key) { auto i = map.find(key); return (i == map.end() ? nullptr : &i->second); } templa...
46,662
https://github.com/Panblack/ezdpl/blob/master/bin/gatherjvmstatus
Github Open Source
Open Source
Apache-2.0
2,022
ezdpl
Panblack
Shell
Code
57
262
#!/bin/bash # get EZDPL_HOME if [[ -z ${EZDPL_HOME} ]]; then _dir=$(dirname `readlink -f $0`) _last_dir=` echo "$_dir"|awk -F'/' '{print $NF}'` EZDPL_HOME=`echo "$_dir"|sed 's/\/'$_last_dir'//g'` fi _servers=`grep _WEB_SERVER_ $EZDPL_HOME/conf/hosts.lst` IFS=$'\n' for x in $_servers; do _ip=`ech...
25,293
https://github.com/nkkarpov/syncsignature/blob/master/test/join/ted_join_test.cc
Github Open Source
Open Source
MIT
null
syncsignature
nkkarpov
C++
Code
923
3,135
#include <iostream> #include <string> #include <vector> #include <fstream> #include "unit_cost_model.h" #include "string_label.h" #include "node.h" #include "bracket_notation_parser.h" #include "tree_indexer.h" #include "to_string_converters.h" #include "touzet_baseline_tree_index.h" #include "naive_join_ti.h" #include...
28,616
https://github.com/maggikpunkt/httpcache4j/blob/master/resolvers/resolvers-commons-httpclient/src/test/java/org/codehaus/httpcache4j/client/HTTPClientResponseResolverTest.java
Github Open Source
Open Source
Apache-2.0
2,018
httpcache4j
maggikpunkt
Java
Code
392
1,393
/* * Copyright (c) 2008, The Codehaus. 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 ...
24,822
https://github.com/samspadegamedev/The-Nature-of-Code-Examples/blob/master/chp03_oscillation/Exercise_3_16_springs/Mover.pde
Github Open Source
Open Source
MIT
2,018
The-Nature-of-Code-Examples
samspadegamedev
null
Spoken
203
536
// The Nature of Code // Daniel Shiffman // http://natureofcode.com // Bob class, just like our regular Mover (position, velocity, acceleration, mass) class Bob { PVector position; PVector velocity; PVector acceleration; float mass = 12; // Arbitrary damping to simulate friction / drag float damping ...
38,092
https://github.com/goldenspangles/text_converter/blob/master/floating-view/src/main/java/com/xlythe/view/floating/CreateShortcutActivity.java
Github Open Source
Open Source
Apache-2.0
2,017
text_converter
goldenspangles
Java
Code
164
650
package com.xlythe.view.floating; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.provider.Settings; import android.support.annotation.DrawableRes; import android.util.Log; /** * Creates the shortcut icon */ public...
18,422
https://github.com/rozza/mongo-java-driver/blob/master/driver-legacy/src/test/functional/com/mongodb/DBTest.java
Github Open Source
Open Source
Apache-2.0
2,023
mongo-java-driver
rozza
Java
Code
829
3,605
/* * Copyright 2008-present MongoDB, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
49,287
https://github.com/kateile/artemis/blob/master/example/pokemon/lib/graphql/big_query.g.dart
Github Open Source
Open Source
MIT
2,021
artemis
kateile
Dart
Code
228
910
// GENERATED CODE - DO NOT MODIFY BY HAND part of 'big_query.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** BigQuery$Query$Charmander _$BigQuery$Query$CharmanderFromJson( ...
966
https://github.com/toggl-open-source/toggldesktop/blob/master/src/timeline_notifications.h
Github Open Source
Open Source
BSD-2-Clause, BSD-3-Clause
2,023
toggldesktop
toggl-open-source
C++
Code
195
627
// Copyright 2014 Toggl Desktop developers. #ifndef SRC_TIMELINE_NOTIFICATIONS_H_ #define SRC_TIMELINE_NOTIFICATIONS_H_ #include "model/timeline_event.h" #include <vector> #include <string> #include "types.h" #include <Poco/Types.h> namespace toggl { class TOGGL_INTERNAL_EXPORT TimelineBatch { public: Timel...
33,690
https://github.com/ltaoti/openthread/blob/master/third_party/mbedtls/repo/tests/scripts/check-files.py
Github Open Source
Open Source
BSD-3-Clause
2,021
openthread
ltaoti
Python
Code
594
2,221
#!/usr/bin/env python3 """ This file is part of Mbed TLS (https://tls.mbed.org) Copyright (c) 2018, Arm Limited, All Rights Reserved Purpose This script checks the current state of the source code for minor issues, including incorrect file permissions, presence of tabs, non-Unix line endings, trailing whitespace, pr...
33,566
https://github.com/Shelvak/nebula-game/blob/master/server/spec/helpers/have_callback.rb
Github Open Source
Open Source
LicenseRef-scancode-other-permissive
2,014
nebula-game
Shelvak
Ruby
Code
82
285
RSpec::Matchers.define :have_callback do |type, time| match do |object| match_time = time.is_a?(Time) \ ? (time - SPEC_TIME_PRECISION)..(time + SPEC_TIME_PRECISION) \ : time CallbackManager.has?(object, type, match_time) end def r(type) CallbackManager::TYPES[type] end def time_st...
10,066
https://github.com/ngageoint/mrgeo/blob/master/mrgeo-mapalgebra/mrgeo-mapalgebra-rasterizevector/src/main/scala/org/mrgeo/mapalgebra/RasterizePointsMapOp.scala
Github Open Source
Open Source
Apache-2.0
2,022
mrgeo
ngageoint
Scala
Code
907
2,941
/* * Copyright 2009-2017. DigitalGlobe, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
45,799
https://github.com/irisked/node/blob/master/src/container/config.ts
Github Open Source
Open Source
MIT
2,019
node
irisked
TypeScript
Code
26
74
import "reflect-metadata"; import { Container } from "inversify"; import applicationModule from "./modules/application-module"; import businessModule from "./modules/business-module"; const container = new Container(); container.load(applicationModule); container.load(businessModule); export default container;
24,432
https://github.com/lcarva/chains/blob/master/vendor/github.com/go-critic/go-critic/checkers/internal/astwalk/comment_walker.go
Github Open Source
Open Source
Apache-2.0
2,020
chains
lcarva
Go
Code
90
301
package astwalk import ( "go/ast" "strings" ) type commentWalker struct { visitor CommentVisitor } func (w *commentWalker) WalkFile(f *ast.File) { if !w.visitor.EnterFile(f) { return } for _, cg := range f.Comments { visitCommentGroups(cg, w.visitor.VisitComment) } } func visitCommentGroups(cg *ast.Comm...
33,208
https://github.com/adammain/reddible/blob/master/packages/client/src/components/comment/CommentItem.js
Github Open Source
Open Source
MIT
2,017
reddible
adammain
JavaScript
Code
313
1,097
import React, { PureComponent } from 'react' import { connect } from 'react-redux' import FormSerialize from 'form-serialize' import { css } from 'glamor' import { requestUpdateComment } from '../../actions/comments' import CommentEditor from './CommentEditor' import VoteControl from '../common/VoteHandler' import { f...
27,195
https://github.com/albjeremias/localfoodnodes/blob/master/app/User/BaseUser.php
Github Open Source
Open Source
MIT
2,020
localfoodnodes
albjeremias
PHP
Code
90
291
<?php namespace App\User; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Laravel\Passport\HasApiTokens; class BaseUser extends Authenticatable { use HasApiTokens, Notifiable; /** * Proxy to BaseModel validate. */ public function validate($d...
52,235
https://github.com/TheForbiddenAi/JenkinsParser/blob/master/src/main/java/me/theforbiddenai/jenkinsparser/impl/entities/FieldInformation.java
Github Open Source
Open Source
Apache-2.0
2,021
JenkinsParser
TheForbiddenAi
Java
Code
321
981
package me.theforbiddenai.jenkinsparser.impl.entities; import me.theforbiddenai.jenkinsparser.Information; import me.theforbiddenai.jenkinsparser.impl.Utilites; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.jsoup.nodes.Element; import java.util.HashMap; import java.ut...
38,797
https://github.com/alsemyonov/vk/blob/master/lib/vk/api/likes/methods/get_list.rb
Github Open Source
Open Source
MIT
2,016
vk
alsemyonov
Ruby
Code
725
1,479
# frozen_string_literal: true require 'vk/api/methods' module Vk module API class Likes < Vk::Schema::Namespace module Methods # Returns a list of IDs of users who added the specified object to their 'Likes' list. class GetList < Schema::Method # @!group Properties self...
20,248
https://github.com/jerrysheen/Hazel_Engine/blob/master/Sandbox/src/Sandbox2D.cpp
Github Open Source
Open Source
Apache-2.0
null
Hazel_Engine
jerrysheen
C++
Code
152
803
#include "Sandbox2D.h" #include "Platform/OpenGL/OpenGLShader.h" #include "ParticleSystem.h" Sandbox2D::Sandbox2D(Hazel::Window& window) :Layer("Sandbox2D"), m_CameraController(1280.0f / 720.0f), m_window(window) { } void Sandbox2D::OnAttach() { m_Texture = Hazel::Texture2D::Create("assets/textures/Checkerboar...
37,170
https://github.com/chimara/Chimara/blob/master/libchimara/window.c
Github Open Source
Open Source
BSD-2-Clause
2,023
Chimara
chimara
C
Code
5,254
13,332
#include <gtk/gtk.h> #include "chimara-glk-private.h" #include "glk.h" #include "gi_dispa.h" #include "input.h" #include "magic.h" #include "pager.h" #include "stream.h" #include "strio.h" #include "style.h" #include "window.h" #include "ui-message.h" #include "ui-window.h" extern GPrivate glk_data_key; static winid...
42,005
https://github.com/OHDSI/DataQualityDashboard/blob/master/tests/testthat/test-executeDqChecks.R
Github Open Source
Open Source
Apache-2.0
2,023
DataQualityDashboard
OHDSI
R
Code
945
3,697
library(testthat) local_edition(3) test_that("Execute a single DQ check on Synthea/Eunomia", { outputFolder <- tempfile("dqd_") on.exit(unlink(outputFolder, recursive = TRUE)) expect_warning( results <- executeDqChecks( connectionDetails = connectionDetailsEunomia, cdmDatabaseSchema = cdmDatabas...
36,078
https://github.com/JackSullivan/factorie/blob/master/src/test/scala/cc/factorie/app/nlp/parse/TestTransitionBasedParser.scala
Github Open Source
Open Source
Apache-2.0
null
factorie
JackSullivan
Scala
Code
872
2,594
package cc.factorie.app.nlp.parse import cc.factorie.app.nlp.load._ import org.junit.Test import org.junit.Before import org.junit.Assert class TestTransitionBasedParser { val nullTokenString = "<NULL>" val rootTokenString = "<ROOT>" val testFileName = this.getClass.getResource("/parser-test-input").getPat...
47,329
https://github.com/jsdelivrbot/dockerfiles-1/blob/master/data/d/ditchitall/frontend/Dockerfile
Github Open Source
Open Source
MIT
2,018
dockerfiles-1
jsdelivrbot
Dockerfile
Code
59
216
FROM ruby:2.4.0-alpine RUN set -x \ && apk add --no-cache make nodejs bash nano ruby ruby-dev gcc g++ python su- exec curl gettext \ && curl -Ls "https://github.com/dustinblackman/phantomized/releases/download/2.1.1/dockerized- phantomjs.tar.gz" | tar xz -C / \ && npm install -g yarn gulp \ && gem install ...
49,228
https://github.com/achenxu/supreme-sniper/blob/master/src/transcript.js
Github Open Source
Open Source
MIT
2,018
supreme-sniper
achenxu
JavaScript
Code
34
113
const converter = require('./converter'); module.exports.toIntString = ({ results }) => ( results .map(r => r.alternatives[0].transcript.trim()) .map(word => converter.textToNum(word)) .join('') ); module.exports.toString = ({ results }) => ( results .map(r => r.alternatives[0].transcript.trim()) ...
54,449
https://github.com/ashishakya/lts/blob/master/database/seeds/PaymentsTableSeeder.php
Github Open Source
Open Source
MIT
2,018
lts
ashishakya
PHP
Code
173
680
<?php use App\Loan; use App\Payment; use Carbon\Carbon; use Illuminate\Database\Seeder; class PaymentsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $allLoan = Loan::all(); $allLoan->each( function ($l...
4,270
https://github.com/geraint0923/beam/blob/master/sdks/java/core/src/test/java/org/apache/beam/sdk/transforms/GroupIntoBatchesTest.java
Github Open Source
Open Source
Apache-2.0
2,019
beam
geraint0923
Java
Code
1,750
5,770
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
4,854
https://github.com/davidboden/CommaCQ/blob/master/server/src/main/java/org/commacq/db/RowExtractor.java
Github Open Source
Open Source
MIT
2,019
CommaCQ
davidboden
Java
Code
220
816
package org.commacq.db; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.util.HashMap; import java.util.Map; import lombok.RequiredArgsConstructor; import org.commacq.CompositeIdEncoding; @RequiredArgsConstructor public class RowExtractor { private final Com...
47,264
https://github.com/rd-switchboard/Toolbox/blob/master/RDS/clean_rds_records/src/main/java/org/rdswitchboard/utils/rds/records/clean/App.java
Github Open Source
Open Source
MIT
2,016
Toolbox
rd-switchboard
Java
Code
630
2,061
/* This file is part of RD-Switchboard. * RD-Switchboard is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distrib...
20,470
https://github.com/zhxinyu/cosan/blob/master/cosan/preprocessing/ordinalEncoder.h
Github Open Source
Open Source
MIT
null
cosan
zhxinyu
C
Code
39
173
#ifndef COSAN_ORDINALENCODER_H #define COSAN_ORDINALENCODER_H #include <cosan/preprocessing/encoder.h> namespace Cosan { template<Numeric NumericType> class OrdinalEncoder : public Encoder<NumericType> { public: std::vector<int> getEncoding(int colIdx, const std::string &category) { in...
42,502
https://github.com/lukaszlenart/gruuf-bot/blob/master/callSendApi.js
Github Open Source
Open Source
Apache-2.0
null
gruuf-bot
lukaszlenart
JavaScript
Code
88
313
'use strict'; const request = require('request'), PAGE_ACCESS_TOKEN = process.env.GRUUF_FACEBOOK_PAGE_ACCESS_TOKEN, APPSECRET_PROOF = process.env.GRUUF_FACEBOOK_APPSECRET_PROOF; function callSendAPI(sender_psid, response) { // Construct the message body let request_body = { messaging_type: "RESPONSE", ...
12,341
https://github.com/tbergman/podhouse/blob/master/packages/web/src/components/App/Menu/Menu.tsx
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, Apache-2.0
2,021
podhouse
tbergman
TSX
Code
168
619
import React from "react"; import Scrollbars from "react-custom-scrollbars"; import { Link as ReactRouterLink } from "react-router-dom"; import Navigation from "./Navigation/Navigation"; import { MenuContainer, MenuInsideContainer, MenuLogoContainer, MenuPodcastImage, MenuSkeletonPodcastImage, } from "./Men...
4,602
https://github.com/arbrefleur/tomocam/blob/master/python_2D/run_debug.py
Github Open Source
Open Source
BSD-3-Clause-LBNL
2,018
tomocam
arbrefleur
Python
Code
72
209
#! /usr/bin/env python import numpy as np import afnumpy as afnp import afnumpy.fft as fft import arrayfire as af import gnufft a = af.randu(512) real = afnp.ndarray((512,1), dtype=np.float32, af_array = a) a = af.randu(512) imag = afnp.ndarray((512,1), dtype=np.float32, af_array = a) cplx = real + 1j * imag a = af...
8,683
https://github.com/ligi/attestation/blob/master/src/main/java/com/alphawallet/attestation/AttestedObject.java
Github Open Source
Open Source
MIT
null
attestation
ligi
Java
Code
708
2,356
package com.alphawallet.attestation; import com.alphawallet.attestation.core.ASNEncodable; import com.alphawallet.attestation.core.Attestable; import com.alphawallet.attestation.core.AttestationCrypto; import com.alphawallet.attestation.core.SignatureUtility; import com.alphawallet.attestation.core.Verifiable; import ...
14,596
https://github.com/bemtorres/rawrshop/blob/master/database/migrations/2021_07_16_225406_create_table_s_tienda.php
Github Open Source
Open Source
MIT
2,022
rawrshop
bemtorres
PHP
Code
64
324
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateTableSTienda extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('s_tienda', func...
15,271
https://github.com/Zakhrov/xgl/blob/master/icd/api/include/vert_buf_binding_mgr.h
Github Open Source
Open Source
MIT
null
xgl
Zakhrov
C
Code
379
803
/* *********************************************************************************************************************** * * Copyright (c) 2014-2019 Advanced Micro Devices, Inc. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associ...
52,125
https://github.com/DavyLin/http-kit/blob/master/test/me/shenfeng/http/client_test.clj
Github Open Source
Open Source
Apache-2.0
2,013
http-kit
DavyLin
null
Spoken
712
2,316
(ns me.shenfeng.http.client-test (:use clojure.test [ring.adapter.jetty :only [run-jetty]] [me.shenfeng.http.server :only [run-server]] (compojure [core :only [defroutes GET POST HEAD DELETE ANY context]] [handler :only [site]] [route :only [not-found]]) ...
7,224
https://github.com/D-os/libelektra/blob/master/cmake/ElektraCache.cmake
Github Open Source
Open Source
BSD-3-Clause
null
libelektra
D-os
CMake
Code
1,398
4,269
# # CACHE # # Here all cache variables are set # # # If you add something here, make sure to also add it in # src/plugins/constants/ include(LibAddMacros) remember_for_removal(PLUGINS TO_REMOVE_PLUGINS) # # the default list of plugins # # They are essential so that elektra can work # set (PLUGINS_LIST_DEFAULT dump ...
34,781
https://github.com/zaproxy/zap-extensions/blob/master/addOns/websocket/src/main/java/org/zaproxy/zap/extension/websocket/fuzz/WebSocketFuzzer.java
Github Open Source
Open Source
Apache-2.0
2,023
zap-extensions
zaproxy
Java
Code
483
1,691
/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2015 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
20,513
https://github.com/ParanoidUser/codewars-handbook/blob/master/kata/6-kyu/separate-the-wheat-from-the-chaff/test/KataTest.java
Github Open Source
Open Source
MIT
2,023
codewars-handbook
ParanoidUser
Java
Code
872
2,827
import static org.junit.jupiter.api.Assertions.assertArrayEquals; import org.junit.jupiter.api.Test; class KataTest { @Test void checkShortLengthVectors() { assertArrayEquals(new long[] {-6, -4, 6, 2}, Kata.wheatFromChaff(new long[] {2, -4, 6, -6})); assertArrayEquals(new long[] {-10, -3, 7}, Kata.wheatFr...
48,746