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/huaweicloud/huaweicloud-sdk-java-v3/blob/master/services/bssintl/src/main/java/com/huaweicloud/sdk/bssintl/v2/model/ListResourceTypesResponse.java
Github Open Source
Open Source
Apache-2.0
2,023
huaweicloud-sdk-java-v3
huaweicloud
Java
Code
259
920
package com.huaweicloud.sdk.bssintl.v2.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.huaweicloud.sdk.core.SdkResponse; import java.util.ArrayList; import java.util.List; import java.util.Objects; import java.util.function.Consumer; /** *...
50,861
https://github.com/akrabat/project365-photos-website/blob/master/node_modules/sprintf-kit/modifiers/f.js
Github Open Source
Open Source
ISC, MIT
2,023
project365-photos-website
akrabat
JavaScript
Code
27
66
"use strict"; module.exports = function (value /*, placeholder, argIndex, args*/) { try { return String(isNaN(value) ? parseFloat(value) : Number(value)); } catch (e) { return "<invalid>"; } };
45,933
https://github.com/cloudwalkph/aai-tracker-web/blob/master/public/js/drawchart.js
Github Open Source
Open Source
MIT
null
aai-tracker-web
cloudwalkph
JavaScript
Code
766
3,030
function drawChart(container, data, title) { nv.addGraph(function() { var chart = nv.models.pieChart() .x(function(d) { return d.key }) .y(function(d) { return d.values }) .color(['#532400', '#f37f20', '#c76819', '#9f530c', '#7a3d00']) .showLabels(true) ...
24,674
https://github.com/khemx3/esdapi/blob/master/src/app/api/books.py
Github Open Source
Open Source
MIT
null
esdapi
khemx3
Python
Code
145
502
from typing import List from app.api import crud from app.api.models import BookDB, BookSchema from fastapi import APIRouter, HTTPException, Path router = APIRouter() @router.post("/", response_model=BookDB, status_code=201) async def create_book(payload: BookSchema): note_id = await crud.post(payload) res...
38,253
https://github.com/KyuBlade/Omega-Project/blob/master/Omega/src/com/team/omega/core/renderer/PlayerRenderer.java
Github Open Source
Open Source
Apache-2.0
null
Omega-Project
KyuBlade
Java
Code
66
265
package com.team.omega.core.renderer; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.esotericsoftware.spine.Skeleton; import com.esotericsoftware.spine.SkeletonRenderer; import com.esotericsoftware.spine.SkeletonRendererDebug; public class PlayerRenderer implements Renderer { private SpriteBat...
3,931
https://github.com/ChristianJHughes/VisualBlackjack/blob/master/CardConcepts/CardConcepts/Hand.cs
Github Open Source
Open Source
MIT
2,015
VisualBlackjack
ChristianJHughes
C#
Code
266
635
using System; using System.Collections.Generic; using System.Text; namespace CardConcepts { //Class for constructing a player's hand of cards. public class Hand { //A list of the cards in the hand. private List<Card> h; public Hand() { h = new List<Card>(); } ...
36,769
https://github.com/CSB5/OPERA-MS/blob/master/bin/cluster_info.pl
Github Open Source
Open Source
MIT
2,022
OPERA-MS
CSB5
Perl
Code
890
4,446
#!/usr/bin/perl use warnings; use Statistics::Basic qw(:all); use Switch; my ($assembly_dir, $bin_dir) = @ARGV; my %contig_to_bin; my %contig_to_illumina_assembly;#for each opera-ms contigs identify the contig and their sizes that were used => allows to compute the illumina N50 and assembly size => allows to indenti...
50,590
https://github.com/KOSASIH/fhe-toolkit-macos/blob/master/Documentation/HElib/html/search/variables_3.js
Github Open Source
Open Source
MIT
2,021
fhe-toolkit-macos
KOSASIH
JavaScript
Code
6
173
var searchData= [ ['e_1244',['e',['../classhelib_1_1_recrypt_data.html#a0d3b37785a0bf499c5d51ae43fa40442',1,'helib::RecryptData']]], ['ea_1245',['ea',['../classhelib_1_1_context.html#a8319e609dbde819ac81130b035711fee',1,'helib::Context::ea()'],['../classhelib_1_1_recrypt_data.html#ae0199b0be0a64b8ca3ed11add68a422a'...
26,219
https://github.com/OrangePeelFX/Python-Tutorial/blob/master/Scripts/003_hackerrank/Python/p041.py
Github Open Source
Open Source
MIT
null
Python-Tutorial
OrangePeelFX
Python
Code
29
98
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Problem 041 Eye and Identity Source : https://www.hackerrank.com/challenges/np-eye-and-identity/problem """ import numpy as np np.set_printoptions(sign=' ') n, m = map(int, input().split()) print(np.eye(n, m))
40,519
https://github.com/BryanApellanes/bamsdo/blob/master/bam.net.schema.org/Schema.Org/Things/FAQPage.cs
Github Open Source
Open Source
MIT
null
bamsdo
BryanApellanes
C#
Code
27
83
using Bam.Net.Schema.Org.DataTypes; namespace Bam.Net.Schema.Org.Things { ///<summary>A FAQPage is a WebPage presenting one or more "Frequently asked questions" (see also QAPage).</summary> public class FAQPage: WebPage { } }
40,515
https://github.com/SpellFang/React-materialUI-to-do-list/blob/master/src/commonComponents/index.js
Github Open Source
Open Source
MIT
null
React-materialUI-to-do-list
SpellFang
JavaScript
Code
64
157
export { default as AlertDialog } from "./AlertDialog/AlertDialog"; export { default as AddProjectDialog } from "./AddProjectDialog/AddProjectDialog"; export { default as AddTask } from "./AddTask/AddTask"; export { default as CustomizedToolTip } from "./CustomizedToolTip/CustomizedToolTip"; export { default as AddQuic...
5,920
https://github.com/B-Reif/bevy_proto/blob/master/src/lib.rs
Github Open Source
Open Source
Apache-2.0, MIT
2,022
bevy_proto
B-Reif
Rust
Code
359
936
#![warn(missing_docs)] //! Serializable entity configuration for the Bevy game engine. //! //! This crate provides several abstractions for specifying serializable entities and components: //! - The [`ProtoComponent`](components::ProtoComponent) trait provides methods to load components from assets. //! - The [`ProtoDe...
45,889
https://github.com/lemonce3/observer/blob/master/src/router/file.js
Github Open Source
Open Source
MIT
null
observer
lemonce3
JavaScript
Code
83
247
const Router = require('koa-router'); const router = module.exports = new Router(); const store = {}; router.post('/file', async ctx => { const { hash } = ctx.query; let data = Buffer.from([]); await new Promise((resolve) => { ctx.req.on('data', chunk => { data = Buffer.concat([data, chunk], data.length + c...
49,967
https://github.com/fleetbase/fleetops-api/blob/master/src/Listeners/HandleOrderCanceled.php
Github Open Source
Open Source
MIT
2,023
fleetops-api
fleetbase
PHP
Code
97
397
<?php namespace Fleetbase\FleetOps\Listeners; use Fleetbase\FleetOps\Events\OrderCanceled; use Fleetbase\FleetOps\Models\Driver; use Fleetbase\FleetOps\Notifications\OrderCanceled as OrderCanceledNotification; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Queue\InteractsWithQueue; class HandleOrderCance...
48,587
https://github.com/afelipeg0808/ecommerce-site/blob/master/imports/ui/reducers/postsReducer.js
Github Open Source
Open Source
MIT
2,020
ecommerce-site
afelipeg0808
JavaScript
Code
75
228
/** @format */ import { GET_LATESTS_GUEST_POSTS, GET_LATESTS_AUTH_POSTS } from "../actions/posts"; import { Posts } from "../../api/schemas"; const postsInitState = { posts: [] }; const postsReducer = (state = postsInitState, action) => { let fetchedPosts; switch (action.type) { case GET_LATESTS_GUEST_...
45,097
https://github.com/celeron55/buildat/blob/master/src/client/state.cpp
Github Open Source
Open Source
Apache-2.0
2,019
buildat
celeron55
C++
Code
1,428
5,785
// http://www.apache.org/licenses/LICENSE-2.0 // Copyright 2014 Perttu Ahola <celeron55@gmail.com> #include "core/log.h" #include "client/state.h" #include "client/app.h" #include "client/config.h" #include "interface/tcpsocket.h" #include "interface/packet_stream.h" #include "interface/sha1.h" #include "interface/fs.h...
25,474
https://github.com/brattpurrie/Typescript-demo/blob/master/build/server.js
Github Open Source
Open Source
MIT
2,018
Typescript-demo
brattpurrie
JavaScript
Code
86
183
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); var express_1 = __importDefault(require("express")); var controllers_1 = require("./controllers"); // Cr...
25,026
https://github.com/shiver-me-timbers/smt-cloudformation-parent/blob/master/smt-cloudformation-objects/src/main/java/shiver/me/timbers/aws/inspector/AssessmentTarget.java
Github Open Source
Open Source
Apache-2.0
2,019
smt-cloudformation-parent
shiver-me-timbers
Java
Code
190
1,163
package shiver.me.timbers.aws.inspector; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyDescription; import com.fasterxml.jackson.annotation.JsonPropertyO...
27,517
https://github.com/U3DC/Planetaria/blob/master/Assets/Planetaria/Code/RuntimeCode/World/CubePlanetarium.cs
Github Open Source
Open Source
MIT-0
2,020
Planetaria
U3DC
C#
Code
419
1,084
using System; using System.Collections.Generic; using System.Linq; // TODO: Linq affects garbage collector (which affects virtual reality) using UnityEngine; namespace Planetaria { public class CubePlanetarium : WorldPlanetarium { public CubePlanetarium(int resolution) { material =...
42,165
https://github.com/Prakhar-100/DjangoProject/blob/master/Webllistoerp/attendance/admin.py
Github Open Source
Open Source
MIT
null
DjangoProject
Prakhar-100
Python
Code
19
112
from django.contrib import admin from .models import AttendanceModel, AttendanceData, DatewiseData, UserDayoffData, TimeSheetData, HolidayData admin.site.register(AttendanceModel) admin.site.register(AttendanceData) admin.site.register(DatewiseData) admin.site.register(UserDayoffData) admin.site.register(TimeShee...
3,773
https://github.com/godotengine/godot/blob/master/modules/gdscript/tests/scripts/analyzer/features/out_of_order.gd
Github Open Source
Open Source
LicenseRef-scancode-free-unknown, MIT, CC-BY-4.0, OFL-1.1, Bison-exception-2.2, CC0-1.0, LicenseRef-scancode-nvidia-2002, LicenseRef-scancode-other-permissive, GPL-3.0-only, LicenseRef-scancode-unknown-license-reference, Unlicense, BSL-1.0, Apache-2.0, BSD-3-Clause, LicenseRef-scancode-public-domain, LicenseRef-scancod...
2,023
godot
godotengine
GDScript
Code
147
404
func test(): print("v1: ", v1) print("v1 is String: ", v1 is String) print("v2: ", v2) print("v2 is bool: ", v2 is bool) print("c1: ", c1) print("c1 is int: ", c1 is int) print("c2: ", c2) print("c2 is int: ", c2 is int) print("E1.V1: ", E1.V1) print("E1.V2: ", E1.V2) print("E2.V: ", E2.V) print("EV1: ", EV...
46,077
https://github.com/HalcyonGrid/whip-server/blob/master/whip/PushReplicationService.cpp
Github Open Source
Open Source
Apache-2.0
2,018
whip-server
HalcyonGrid
C++
Code
358
1,505
#include "StdAfx.h" #include "PushReplicationService.h" #include "AppLog.h" #include <string> #include <algorithm> PushReplicationService::PushReplicationService() : _ioService(), _connected(false), _connectionMonitor(_ioService), _sending(false) { } PushReplicationService::~PushReplicationService() { //dtor me...
2,916
https://github.com/571821151/MyBLE-master/blob/master/app/src/main/java/com/clj/blexy/ControlActivity.java
Github Open Source
Open Source
Apache-2.0
null
MyBLE-master
571821151
Java
Code
864
4,009
/* * Copyright (cly) 2019. */ package com.clj.blexy; import android.bluetooth.BluetoothGatt; import android.bluetooth.BluetoothGattCharacteristic; import android.bluetooth.BluetoothGattService; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4...
10,846
https://github.com/chrisgorgo/beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/values/SchemaVerification.java
Github Open Source
Open Source
Apache-2.0
null
beam
chrisgorgo
Java
Code
929
2,520
/* * 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 ...
2,616
https://github.com/qaximalee/blaze-persistence/blob/master/integration/entity-view-spring/src/main/java/com/blazebit/persistence/integration/view/spring/impl/EntityViewConfigurationProducer.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,019
blaze-persistence
qaximalee
Java
Code
152
371
/* * Copyright 2014 - 2019 Blazebit. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
17,651
https://github.com/fossabot/PermissionManager/blob/master/app/src/main/java/permission/auron/com/samplepermissionhelper/ActivityMultiplePermission.java
Github Open Source
Open Source
MIT
2,019
PermissionManager
fossabot
Java
Code
288
1,285
package permission.auron.com.samplepermissionhelper; import android.content.DialogInterface; import android.content.Intent; import android.graphics.Bitmap; import android.os.Bundle; import android.provider.MediaStore; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuItem; import andr...
13,560
https://github.com/SciFiFarms/Technocore-Farmbot-Web-App/blob/master/frontend/plants/grid/grid_input.tsx
Github Open Source
Open Source
MIT
null
Technocore-Farmbot-Web-App
SciFiFarms
TypeScript
Code
237
917
import React from "react"; import { PlantGridKey, GridInputProps, InputCellProps, PlantGridLabelData, } from "./interfaces"; import { Col, Row } from "../../ui"; import { t } from "../../i18next_wrapper"; import { UseCurrentLocation } from "../../tools/tool_slot_edit_components"; export const LABELS = ( itemType: ...
26,491
https://github.com/laanito/tuqan/blob/master/Image/docs/examples/axis_direction.php
Github Open Source
Open Source
MIT
null
tuqan
laanito
PHP
Code
124
435
<?php /** * Usage example for Image_Graph. * * Main purpose: * Axis direction * * Other: * None specific * * $Id: axis_direction.php,v 1.1 2006-08-31 08:36:07 jmartinez Exp $ * * @package Image_Graph * @author Jesper Veggerby <pear.nosey@veggerby.dk> */ require_once 'Image/Graph.php'; // create the graph...
18,345
https://github.com/line/rules_apple_line/blob/master/.gitignore
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,022
rules_apple_line
line
Ignore List
Code
3
16
.DS_Store *.swp /bazel-*
44,154
https://github.com/xaman/Filmgoer/blob/master/app/src/main/java/com/martinchamarro/filmgoer/presentation/movies/MoviesRankingsScreenService.kt
Github Open Source
Open Source
Apache-2.0
null
Filmgoer
xaman
Kotlin
Code
160
626
package com.martinchamarro.filmgoer.presentation.movies import android.content.Context import android.content.Intent import android.util.Log import android.view.View import android.widget.ImageView import com.martinchamarro.filmgoer.R import com.martinchamarro.filmgoer.presentation.model.ServiceState.* import io.mattc...
20,265
https://github.com/devwithpug/TIME-TO-TRAVEL/blob/master/TimeToTravel/src/term/project/repository/Repository.java
Github Open Source
Open Source
MIT
null
TIME-TO-TRAVEL
devwithpug
Java
Code
36
119
package term.project.repository; import java.sql.SQLException; import java.util.List; public interface Repository<T, K>{ // CREATE T create(T entity) throws SQLException; // READ T getOneById(K id) throws SQLException; List<T> getAll() throws SQLException; // DELETE void delete(K id) th...
39,901
https://github.com/aj-michael/Digital-Systems/blob/master/Lab4-Part2-RAMwithHyperTerminalDisplay/RAMAddressUpdate.v
Github Open Source
Open Source
MIT
2,015
Digital-Systems
aj-michael
Verilog
Code
63
146
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: Rose-Hulman Institute of Technology // Engineer: Adam Michael // Date: 10/15/2015 // Summary: Updates the address into the RAM ///////////////////////////////////////////////////////////////////////...
2,665
https://github.com/Neos21/json-db-manager/blob/master/server/src/constants.ts
Github Open Source
Open Source
MIT
null
json-db-manager
Neos21
TypeScript
Code
100
423
import path from 'path'; import dotenv from 'dotenv'; dotenv.config(); // エントリポイントよりも先に読み込まれるようなので `.env` を使用する箇所で都度呼ぶことにする /** * 環境変数を取得する * * @param variableName 環境変数名 * @returns 環境変数の値 * @throws 環境変数の値がない場合はエラーとする */ function getEnvironmentVariable(variableName) { const environmentVariable = process.env[...
8,605
https://github.com/communityus-llc/bepu-physics-for-unity-ecs/blob/master/Assets/BEPUphysics/Constraints/Collision/ContactPenetrationConstraint.cs
Github Open Source
Open Source
MIT
2,021
bepu-physics-for-unity-ecs
communityus-llc
C#
Code
1,311
3,477
using BEPUphysics.Entities; using BEPUphysics.CollisionTests; using BEPUphysics.Settings; using BEPUutilities; using System; using BEPUutilities.DataStructures; namespace BEPUphysics.Constraints.Collision { /// <summary> /// Computes the forces necessary to keep two entities from going through each other at a...
14,104
https://github.com/darinfranklin/RegexForAccordance/blob/master/RegexForAccordance/BXSearchFieldFormatter.h
Github Open Source
Open Source
MIT
2,022
RegexForAccordance
darinfranklin
Objective-C
Code
39
120
// // BXSearchFieldFormatter.h // RegexForAccordance // // Created by Darin Franklin on 9/1/14. // Copyright (c) 2014 Darin Franklin. All rights reserved. // #import <Foundation/Foundation.h> #import "BXTextLanguage.h" @interface BXSearchFieldFormatter : NSFormatter @property BOOL leftToRightOverride; - (NSString...
33,343
https://github.com/phstudy/zetasketch/blob/master/java/com/google/zetasketch/ValueType.java
Github Open Source
Open Source
Apache-2.0
2,022
zetasketch
phstudy
Java
Code
306
848
/* * Copyright 2018 Google 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
46,924
https://github.com/SJTU-IPADS/fgnn-artifacts/blob/master/samgraph/common/cuda/pre_sampler.cc
Github Open Source
Open Source
Apache-2.0
2,022
fgnn-artifacts
SJTU-IPADS
C++
Code
464
1,806
/* * Copyright 2022 Institute of Parallel and Distributed Systems, Shanghai Jiao Tong University * * 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/license...
16,168
https://github.com/noelevans/sandpit/blob/master/bayesian_methods_for_hackers/price_is_right_ch05.py
Github Open Source
Open Source
MIT
2,023
sandpit
noelevans
Python
Code
408
1,580
import matplotlib.pyplot as plt import numpy as np import pymc as pm import scipy.stats as stats import scipy.optimize as sop def main(): plt.subplot(311) x = np.linspace(0, 60000, 200) sp1 = plt.fill_between(x, 0, stats.norm.pdf(x, 35000, 7500), color="#348ABD", lw=3, alpha=0.6...
2,906
https://github.com/heiseish/SIA/blob/master/js/model/query/deleteTask.js
Github Open Source
Open Source
MIT
null
SIA
heiseish
JavaScript
Code
41
116
//@flow 'use-strict'; import firebase from '../'; const defectRef = firebase.database().ref('defects/'); export const deleteTask = (id: string) => { return new Promise((response,reject) => { if (id === undefined || id === null) reject({message: 'Error deleting defects!'}) else defectRef.child(id).remove()....
44,725
https://github.com/TomSputz/BetterDiscordApp/blob/master/client/src/ui/components/bd/RemoteCard.vue
Github Open Source
Open Source
MIT
null
BetterDiscordApp
TomSputz
Vue
Code
137
575
/** * BetterDiscord Remote Card Component * Copyright (c) 2015-present Jiiks/JsSucks - https://github.com/Jiiks / https://github.com/JsSucks * All rights reserved. * https://betterdiscord.net * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source t...
9,593
https://github.com/ajvarela/amadeus-exploit/blob/master/fm/models/paper_JSS/evaluation_performance/CVE-2008-1092.afm
Github Open Source
Open Source
MIT
2,022
amadeus-exploit
ajvarela
Adobe Font Metrics
Code
133
639
# vul_description: Buffer overflow in msjet40.dll before 4.0.9505.0 in Microsoft Jet Database Engine allows remote attackers to execute arbitrary code via a crafted Word file, as exploited in the wild in March 2008. NOTE: as of 20080513, Microsoft has stated that this is the same issue as CVE_2007_6026. %Relationship...
28,985
https://github.com/entrotech/deployapp/blob/master/Sabio.Web/Scripts/sabio.services.languageproficiency.js
Github Open Source
Open Source
MIT
null
deployapp
entrotech
JavaScript
Code
228
622
sabio.services.languageProficiency = sabio.services.languageProficiency || {}; // Create - GET - activeID sabio.services.languageProficiency.readById = function (id, onSuccess, onError) { // var url = "/api/languageproficiency/" + id; var settings = { cache: false ,contentType: "applicati...
28,649
https://github.com/powerpuffpenguin/webpc/blob/master/view/src/app/core/navigation/navigation.service.ts
Github Open Source
Open Source
MIT
2,022
webpc
powerpuffpenguin
TypeScript
Code
94
272
import { Injectable } from '@angular/core'; import { BehaviorSubject, Observable } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class NavigationService { private fullscreen_ = new BehaviorSubject<boolean>(false) get fullscreenObservable(): Observable<boolean> { return this.fullscreen_ } get ful...
32,679
https://github.com/isabella232/match/blob/master/packages/match-components/src/radio-group/radio.tsx
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,021
match
isabella232
TSX
Code
231
919
import { useField } from "formik"; import * as PropTypes from "prop-types"; import * as React from "react"; import { useUIDSeed } from "react-uid"; import { marginPropTypes } from "@twilio-labs/match-props"; import { RadioSize } from "./constants"; import { StyledRadio, StyledRadioWrapper, HiddenRadio, Styled...
5,216
https://github.com/aem/jsx-playground/blob/master/assets/example1-compiled.js
Github Open Source
Open Source
MIT
2,017
jsx-playground
aem
JavaScript
Code
18
41
/* @jsx console.log */ const getContent = () => { return console.log('null', { arg1: true }) } getContent()
4,627
https://github.com/hill84/bookworm-react/blob/master/src/components/forms/profileForm.tsx
Github Open Source
Open Source
MIT
2,018
bookworm-react
hill84
TypeScript
Code
1,461
5,700
import MomentUtils from '@date-io/moment'; import Avatar from '@material-ui/core/Avatar'; import CircularProgress from '@material-ui/core/CircularProgress'; import FormControl from '@material-ui/core/FormControl'; import FormHelperText from '@material-ui/core/FormHelperText'; import Input from '@material-ui/core/Input'...
31,450
https://github.com/honux77/prostar/blob/master/week4/random.cs
Github Open Source
Open Source
MIT
2,014
prostar
honux77
C#
Code
22
57
using System; class Test { static void Main(string[] args) { Random r = new Random(); int x = r.Next(1,10); Console.WriteLine(x); } }
27,196
https://github.com/siouan/frontend-gradle-plugin/blob/master/src/main/java/org/siouan/frontendgradleplugin/infrastructure/gradle/TaskLoggerConfigurer.java
Github Open Source
Open Source
Apache-2.0
2,022
frontend-gradle-plugin
siouan
Java
Code
216
592
package org.siouan.frontendgradleplugin.infrastructure.gradle; import javax.annotation.Nonnull; import org.gradle.api.Task; import org.gradle.api.logging.LogLevel; import org.gradle.api.logging.LoggingManager; import org.siouan.frontendgradleplugin.infrastructure.gradle.adapter.GradleLoggerAdapter; /** * Class inje...
32,165
https://github.com/marcelometal/dotfiles-1/blob/master/fish/config.fish
Github Open Source
Open Source
MIT
2,014
dotfiles-1
marcelometal
Fish
Code
230
939
# Path to your oh-my-fish. set fish_path $HOME/.config/fish # Theme set fish_theme robbyrussell # Which plugins would you like to load? (plugins can be found in ~/.oh-my-fish/plugins/*) # Custom plugins may be added to ~/.oh-my-fish/custom/plugins/ # Example format: set fish_plugins autojump bundler set fish_plugins ...
20,439
https://github.com/MartenCatcher/mongo-rust-driver/blob/master/src/lib.rs
Github Open Source
Open Source
MIT, Apache-2.0
2,020
mongo-rust-driver
MartenCatcher
Rust
Code
312
874
//! This crate is a pure Rust MongoDB driver. It follows the //! [MongoDB driver API and feature specifications](https://github.com/mongodb/specifications). //! //! To connect to a MongoDB database, pass a MongoDB connection string to //! [`Client::with_uri_str`](struct.Client.html#method.with_uri_str): //! //! ```rust...
5,659
https://github.com/faithhub/incare/blob/master/app/Http/Controllers/Auth/RegisterController.php
Github Open Source
Open Source
MIT
null
incare
faithhub
PHP
Code
293
936
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\Mail\RegistrationMail; use App\Providers\RouteServiceProvider; use App\Models\User; use Illuminate\Foundation\Auth\RegistersUsers; use Illuminate\Support\Carbon; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\...
10,737
https://github.com/nullcc/ts-interface-keys-transformer/blob/master/transformer.ts
Github Open Source
Open Source
MIT
2,020
ts-interface-keys-transformer
nullcc
TypeScript
Code
704
2,356
import * as path from 'path'; import * as _ from 'lodash'; import * as ts from 'typescript'; export default (program: ts.Program): ts.TransformerFactory<ts.SourceFile> => { return (ctx: ts.TransformationContext) => { return (sourceFile: ts.SourceFile): ts.SourceFile => { const visitor = (node: ts.Node): ts...
1,553
https://github.com/YXDsimon/Cpp-Concurrency-in-Action-2ed/blob/master/code/parallel_quick_sort.hpp
Github Open Source
Open Source
Apache-2.0
2,020
Cpp-Concurrency-in-Action-2ed
YXDsimon
C++
Code
60
255
#include <list> #include <algorithm> #include <future> #include <utility> template<typename T> std::list<T> parallel_quick_sort(std::list<T> v) { if (v.empty()) return v; std::list<T> res; res.splice(res.begin(), v, v.begin()); const T& firstVal = *res.begin(); auto it = std::partition(v.begin(), v...
33,522
https://github.com/thestormforge/redskyops-controller/blob/master/api/apps/v1alpha1/requests.go
Github Open Source
Open Source
Apache-2.0
2,019
redskyops-controller
thestormforge
Go
Code
141
403
/* Copyright 2021 GramLabs, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
31,239
https://github.com/madewithfelt/betamax/blob/master/lib/src/http/http_interceptor.dart
Github Open Source
Open Source
MIT
2,021
betamax
madewithfelt
Dart
Code
102
241
import 'dart:async'; import 'package:http/io_client.dart'; import 'http_intercepted_types.dart'; abstract class HttpInterceptor { /// [correlator] is a value generated by the client for each request-response, /// exchange, and is used to associate the request with the response. /// /// Returns an [OverrideRe...
7,850
https://github.com/XPixelGroup/BasicSR/blob/master/basicsr/losses/basic_loss.py
Github Open Source
Open Source
Apache-2.0
2,023
BasicSR
XPixelGroup
Python
Code
914
2,767
import torch from torch import nn as nn from torch.nn import functional as F from basicsr.archs.vgg_arch import VGGFeatureExtractor from basicsr.utils.registry import LOSS_REGISTRY from .loss_util import weighted_loss _reduction_modes = ['none', 'mean', 'sum'] @weighted_loss def l1_loss(pred, target): return F....
13,715
https://github.com/pm-Architect/Aviary/blob/master/Parrot/Controls/pDateTime.cs
Github Open Source
Open Source
MIT
2,018
Aviary
pm-Architect
C#
Code
297
1,007
using System; using System.Windows; using System.Windows.Media; //using MahApps.Metro.Controls; using Xceed.Wpf.Toolkit; using Wind.Containers; namespace Parrot.Controls { public class pDateTime : pControl { public DateTimePicker Element; public pDateTime(string InstanceName) { ...
6,315
https://github.com/savannah521/extract/blob/master/src/main/java/org/icij/extract/redis/ConnectionManagerFactory.java
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,017
extract
savannah521
Java
Code
285
697
package org.icij.extract.redis; import org.icij.task.Options; import org.icij.task.annotation.Option; import org.redisson.config.Config; import org.redisson.connection.ConnectionManager; import org.redisson.connection.SingleConnectionManager; /** * Factory for creating a Redis client. * * @author Matthew Caruana G...
30,696
https://github.com/Jingyan95/cmssw/blob/master/L1Trigger/TrackFindingTracklet/python/ProducerKF_cff.py
Github Open Source
Open Source
Apache-2.0
2,022
cmssw
Jingyan95
Python
Code
62
384
import FWCore.ParameterSet.Config as cms from L1Trigger.TrackTrigger.ProducerSetup_cff import TrackTriggerSetup from L1Trigger.TrackerTFP.Producer_cfi import TrackerTFPProducer_params from L1Trigger.TrackerTFP.ProducerES_cff import TrackTriggerDataFormats from L1Trigger.TrackerTFP.ProducerLayerEncoding_cff import Trac...
49,001
https://github.com/clickclack2015/multibit-hd/blob/master/mbhd-swing/src/main/java/org/multibit/hd/ui/export/TransactionConverter.java
Github Open Source
Open Source
MIT
2,021
multibit-hd
clickclack2015
Java
Code
256
929
package org.multibit.hd.ui.export; import com.googlecode.jcsv.writer.CSVEntryConverter; import org.multibit.hd.core.config.Configurations; import org.multibit.hd.core.dto.TransactionData; import java.text.DateFormat; import java.text.SimpleDateFormat; /** * Convert WalletTableData into single fields for use in a C...
18,410
https://github.com/openshift/origin/blob/master/vendor/github.com/openshift/apiserver-library-go/pkg/admission/imagepolicy/rules/accept.go
Github Open Source
Open Source
Apache-2.0
2,023
origin
openshift
Go
Code
383
1,141
package rules import ( "k8s.io/klog/v2" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" imagepolicy "github.com/openshift/apiserver-library-go/pkg/admission/imagepolicy/apis/imagepolicy/v1" ) type Accepter interface { Covers(metav1.GroupResource) bool Accepts(*ImagePolicyAttributes) bool } // mappedAccepter im...
36,367
https://github.com/thompsonplyler/Top-Down-RPG/blob/master/node_modules/phaser/src/gameobjects/particles/typedefs/RandomZoneSourceCallback.js
Github Open Source
Open Source
MIT
2,021
Top-Down-RPG
thompsonplyler
JavaScript
Code
18
55
/** * @callback Phaser.Types.GameObjects.Particles.RandomZoneSourceCallback * @since 3.0.0 * * @param {Phaser.Math.Vector2} point - A point to modify. */
50,848
https://github.com/dsbrown1331/bcprefs/blob/master/plotting_scripts/degradation/demo_analysis_lengths.py
Github Open Source
Open Source
MIT
null
bcprefs
dsbrown1331
Python
Code
31
127
import pickle demo_files = ['demonstrations/cartpole20.p','demonstrations/cartpole5.p', 'demonstrations/cartpole2.p'] for dfile in demo_files: demos = pickle.load( open( dfile, "rb" ) ) print("loaded demos", dfile, len(demos)) dlengths = [] for s,a in demos: dlengths.append(len(s)) print(dle...
19,398
https://github.com/ksquareincmx/zanma-ui/blob/master/src/styles/typography.tsx
Github Open Source
Open Source
MIT
2,019
zanma-ui
ksquareincmx
TypeScript
Code
23
55
export enum FontWeight { LIGHT = 300, REGULAR = 400, MEDIUM = 500, SEMI_BOLD = 600, BOLD = 700, BOLDER = 800, }
24,993
https://github.com/midnightmonster/recess/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,009
recess
midnightmonster
Ignore List
Code
10
43
*.cache *.settings .project .buildpath *.db data/temp/compiled/* data/temp/*.* .svn /apps/ /plugins/
39,868
https://github.com/action-is-hope/starter-kits/blob/master/gatsby/setup-test-env.ts
Github Open Source
Open Source
MIT
null
starter-kits
action-is-hope
TypeScript
Code
23
76
// Had type issues and rather than include these in the test files I opted for // this: https://github.com/testing-library/jest-dom/issues/123#issuecomment-545410178 import "@testing-library/jest-dom"; import "@testing-library/jest-dom/extend-expect";
4,151
https://github.com/unball/ieee-very-small/blob/master/software/include/unball/strategy/initial_goalkeeper.hpp
Github Open Source
Open Source
MIT
2,021
ieee-very-small
unball
C++
Code
55
202
/** * @file initial_goalkeeper.hpp * @author Icaro da Costa Mota * @date 22/10/2015 * * @attention Copyright (C) 2015 UnBall Robot Soccer Team * * @brief */ #ifndef UNBALL_INITIAL_GOALKEEPER_H_ #define UNBALL_INITIAL_GOALKEEPER_H_ #include <unball/strategy/player.hpp> #include <unball/strategy/goals.hpp> ...
3,594
https://github.com/nyanzebra/TinyOS/blob/master/os/tst/CMakeLists.txt
Github Open Source
Open Source
2,017
TinyOS
nyanzebra
CMake
Code
291
1,282
cmake_minimum_required(VERSION 3.9) enable_testing() # Cmake module path (if exists) set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/../cmake) # We probably don't want this to run on every build. option(COVERALLS "Generate coveralls data" OFF) if (COVERALLS) include(Coveralls) endif() set(UNIX_COMPILER "g++") set(OS...
31,129
https://github.com/nyorain/tokonoma/blob/master/include/tkn/callable.hpp
Github Open Source
Open Source
MIT
2,021
tokonoma
nyorain
C++
Code
582
1,789
#pragma once #include <utility> #include <functional> #include <memory> #include <nytl/functionTraits.hpp> #include <dlg/dlg.hpp> namespace tkn { template<typename Sig> class Callable; template<typename Sig, typename F> class CallableImpl; template<typename Ret, typename... Args> class Callable<Ret(Args...)> { publ...
29,749
https://github.com/pandaengine/qingmvc/blob/master/src/cache/file/FileCache.php
Github Open Source
Open Source
Apache-2.0
2,018
qingmvc
pandaengine
PHP
Code
321
1,805
<?php namespace qing\cache\file; use qing\cache\Cache; use qing\filesystem\MK; /** * File 缓存驱动 * host为缓存目录|一个键值对应一个缓存文件 * * @author xiaowang <736523132@qq.com> * @copyright Copyright (c) 2013 http://qingmvc.com * @license http://www.apache.org/licenses/LICENSE-2.0 Apache-2.0 */ class FileCache extends Cache{ /*...
25,583
https://github.com/kleberfsobrinho/web-moderno/blob/master/16-react/exercicios/src/index.js
Github Open Source
Open Source
MIT
null
web-moderno
kleberfsobrinho
JavaScript
Code
63
233
import React from 'react'; import ReactDOM from 'react-dom' // const elemento = <h1>React</h1> // import Primeiro from './componentes/Primeiro' // import BomDia from './componentes/BomDia' // import Multi, { BoaNoite } from './componentes/Multiplos' // import Saudacao from './componentes/Saudacao' import Pai from...
41,280
https://github.com/devhyun637/prolog/blob/master/backend/src/documentation/adoc/filter.adoc
Github Open Source
Open Source
MIT
2,022
prolog
devhyun637
AsciiDoc
Code
13
71
[[filter]] == 필터 === 필터 목록 조회 ==== Request include::{snippets}/filter/list/http-request.adoc[] ==== Response include::{snippets}/filter/list/http-response.adoc[]
47,868
https://github.com/baumhaus-project/cgal/blob/master/Nef_3/archive/triangulation/include/CGAL/polygon_triangulation_is_valid_2.h
Github Open Source
Open Source
CC0-1.0
2,021
cgal
baumhaus-project
C
Code
325
1,050
#ifndef POLYGON_TRIANGULATION_IS_VALID_2_H #define POLYGON_TRIANGULATION_IS_VALID_2_H #include <map> #include <list> #undef _DEBUG #define _DEBUG 17 #include <CGAL/Nef_2/debug.h> namespace CGAL { template <class Traits> struct Less_xy_segment_2 { template <class Segment_2> bool operator()( const Segment_2& s, c...
47,907
https://github.com/ilyabukalov/keeper-contracts/blob/master/scripts/maven.sh
Github Open Source
Open Source
Apache-2.0
null
keeper-contracts
ilyabukalov
Shell
Code
44
142
#!/bin/bash ## Generating web3j stubs shopt -s nullglob # Avoid literal evaluation if not files mkdir ./tmp/ for file in artifacts/*.development.json do tmpFile=$(basename $file) tmpFile=${tmpFile//.development/} cp $file ./tmp/${tmpFile} web3j truffle generate --javaTypes ./tmp/${tmpFile} -o src/m...
34,466
https://github.com/Z-dip/Hyperskill--Java-SQL-JS-HTML-CSS--Problems/blob/master/Java/Collections/Set Removing elements/main.java
Github Open Source
Open Source
MIT
2,020
Hyperskill--Java-SQL-JS-HTML-CSS--Problems
Z-dip
Java
Code
93
257
import java.util.*; class SetUtils { public static Set<Integer> getSetFromString(String str) { // write your code here Set<Integer> set = new TreeSet<>(); String[] strArray = str.split(" "); for (int i = 0; i < strArray.length; i++) { set.add(Integer.valueOf(strArray[i]...
30,525
https://github.com/Sitcode-Zoograf/storyboard/blob/master/storyboard/api/v1/projects.py
Github Open Source
Open Source
Apache-2.0
null
storyboard
Sitcode-Zoograf
Python
Code
721
2,339
# Copyright (c) 2013 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
13,362
https://github.com/lkwr/react-bootstrap-icons/blob/master/src/icons/arrow-repeat.js
Github Open Source
Open Source
MIT
2,022
react-bootstrap-icons
lkwr
JavaScript
Code
131
469
import React, { forwardRef } from 'react'; import PropTypes from 'prop-types'; const ArrowRepeat = forwardRef(({ color, size, ...rest }, ref) => { return ( <svg ref={ref} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width={size} height={size} fill={color} {...r...
27,484
https://github.com/kotofun/Snowshoe/blob/master/src/chains/comment.js
Github Open Source
Open Source
MIT
null
Snowshoe
kotofun
JavaScript
Code
64
219
import {when, merge, set} from 'cerebral/operators'; import {tags, parts} from '../constants'; import uuid from 'uuid'; export const commentChanged = [ merge(tags.comment, { body: tags.valueProp }) ]; export const commentSubmitted = [ when(tags.draftCommentText), { true: [ () =...
26,464
https://github.com/hofstadter-io/hof-starter-kit/blob/master/dsl/app/default/templates/packages/server/src/database/seeds/user.js
Github Open Source
Open Source
BSD-3-Clause
2,018
hof-starter-kit
hofstadter-io
JavaScript
Code
146
538
import bcrypt from 'bcryptjs'; import { returnId, truncateTables } from '../../sql/helpers'; import { decamelizeKeys } from "humps"; {{#each DslContext.modules as |MOD|}} {{#getdsl (concat3 "modules." MOD ".module") true}}{{#with . as |MODULE|}} {{#if MODULE.seeds}} import {{camelT MOD}}Seed, { clear as {{camelT MOD}}...
3,636
https://github.com/MikeyZat/next-js-starter-pack/blob/master/pages/about.tsx
Github Open Source
Open Source
MIT
2,020
next-js-starter-pack
MikeyZat
TSX
Code
9
18
import { About } from 'components/About'; export default About;
10,534
https://github.com/MartinJSoles/Madjic.Edi/blob/master/Madjic.Edi.Dom/Segments/IK5.vb
Github Open Source
Open Source
MIT
2,021
Madjic.Edi
MartinJSoles
Visual Basic
Code
547
1,673
Namespace Segments '''<summary>Implementation Transaction Set Response Trailer</summary> '''<remarks>To acknowledge acceptance or rejection and report implementation errors in a transaction set</remarks> Partial Friend Class IK5_Obj Inherits Segment Implements IK5, Transac...
41,316
https://github.com/vincentxavier/nbtutor/blob/master/src/app/store/selectors.ts
Github Open Source
Open Source
BSD-3-Clause
2,022
nbtutor
vincentxavier
TypeScript
Code
10
33
import * as VisualizationSelectors from './selectors/visualization.selectors'; export { VisualizationSelectors, };
38,266
https://github.com/olasundell/solitairesolver/blob/master/src/main/java/se/atrosys/solitaire/card/Suit.java
Github Open Source
Open Source
Apache-2.0
2,014
solitairesolver
olasundell
Java
Code
36
137
package se.atrosys.solitaire.card; public enum Suit { SPADES(Color.BLACK), HEARTS(Color.RED), DIAMONDS(Color.RED), CLUBS(Color.BLACK); private final Color color; Suit(Color color) { this.color = color; } public Color getColor() { return color; } public char shortName() { return this.name().charAt(0...
28,654
https://github.com/sky5454/ext-saladict/blob/master/src/content/components/DictPanel/DictPanelStandalone.tsx
Github Open Source
Open Source
MIT
2,019
ext-saladict
sky5454
TypeScript
Code
95
366
import React, { FC, ReactNode } from 'react' import { SALADICT_PANEL } from '@/_helpers/saladict' export interface DictPanelStandaloneProps { width: string height: string withAnimation: boolean darkMode: boolean colors: React.CSSProperties panelCSS?: string menuBar: ReactNode mtaBox: ReactNode dict...
26,472
https://github.com/antonpetkoff/fuzzy-inference/blob/master/inference/system.py
Github Open Source
Open Source
MIT
null
fuzzy-inference
antonpetkoff
Python
Code
229
923
import numpy as np import skfuzzy as fuzz from skfuzzy import control as ctrl from functools import reduce from inference.utils import get_consequent_variable_names class InferenceSystem: def __init__(self, definitions): self.definitions = definitions consequent_variable_names = get_consequent_va...
21,854
https://github.com/altcointrading/XChange/blob/master/xchange-bitkonan/src/main/java/org/knowm/xchange/bitkonan/dto/marketdata/BitKonanTrade.java
Github Open Source
Open Source
MIT
2,017
XChange
altcointrading
Java
Code
84
268
package org.knowm.xchange.bitkonan.dto.marketdata; import java.math.BigDecimal; import java.util.Date; import com.fasterxml.jackson.annotation.JsonProperty; public class BitKonanTrade { private final BigDecimal total; private final BigDecimal btc; private final BigDecimal usd; private final Date time; pub...
28,501
https://github.com/dltxio/v2.getpaidinbitcoin.com.au/blob/master/src/components/VerificationTracker/VerifyID.js
Github Open Source
Open Source
Apache-2.0
null
v2.getpaidinbitcoin.com.au
dltxio
JavaScript
Code
279
778
import React, { useContext, useState } from "react"; import useSWR from "swr"; import { Alert, Button } from "react-bootstrap"; import { AuthContext } from "components/auth/Auth"; import Verify from "../../utils/Verify"; const statuses = { NOT_STARTED: 0, STARTED: 1, SUBMITTED: 2, VERIFIED: 3, REJECTED: 4, ...
31,137
https://github.com/vimalathithanr/Twitter-Client/blob/master/app/src/main/java/com/codepath/tweets/tweets/TwitterClient.java
Github Open Source
Open Source
Apache-2.0
null
Twitter-Client
vimalathithanr
Java
Code
224
845
package com.codepath.tweets.tweets; import org.scribe.builder.api.Api; import org.scribe.builder.api.TwitterApi; import android.content.Context; import com.codepath.oauth.OAuthBaseClient; import com.codepath.tweets.tweets.models.Tweet; import com.loopj.android.http.AsyncHttpResponseHandler; import com.loopj.android....
7,406
https://github.com/desec-io/desec-stack/blob/master/www/webapp/src/components/Field/RecordCDS.vue
Github Open Source
Open Source
MIT
2,023
desec-stack
desec-io
Vue
Code
14
43
<script> import RecordDS from './RecordDS.vue'; export default { name: 'RecordCDS', extends: RecordDS, }; </script>
1,162
https://github.com/gurupunskill/auto-park/blob/master/sou/app/src/main/java/com/autopark/sou/SettingsActivity.java
Github Open Source
Open Source
MIT
null
auto-park
gurupunskill
Java
Code
47
175
package com.autopark.sou; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; public class SettingsActivity extends AppCompatActivity { public static final String KEY_SERVER_ADDR = "edit_server_address"; public static final String KEY_SERVER_PORT = "edit_server_port"; public static...
50,273
https://github.com/EzekielWachira/Social-App-Frontend/blob/master/src/pages/Authentication/Register.vue
Github Open Source
Open Source
MIT
2,020
Social-App-Frontend
EzekielWachira
Vue
Code
355
1,287
<template> <div class="flex flex-center q-pt-lg"> <q-form class="register-form " @submit.prevent="register"> <q-card class="register-card"> <q-toolbar class="text-white q-mb-sm" style="background: radial-gradient(circle, #47c5ff 0%, #12d108 100%)"> <q-toolbar-title>Register an account</q-toolbar-t...
27,376
https://github.com/lukehb/137-clustering/blob/master/src/main/java/onethreeseven/clustering/command/DBScanCommand.java
Github Open Source
Open Source
MIT
null
137-clustering
lukehb
Java
Code
338
1,026
package onethreeseven.clustering.command; import com.beust.jcommander.Parameter; import onethreeseven.clustering.algorithm.DBScan; import onethreeseven.clustering.model.Cluster; import onethreeseven.clustering.model.DBScanCluster; import java.util.Collection; import java.util.Iterator; import java.util.function.Consum...
18,801
https://github.com/Squarespace/mongo-java-driver/blob/master/src/main/org/bson/io/Bits.java
Github Open Source
Open Source
Apache-2.0
2,019
mongo-java-driver
Squarespace
Java
Code
1,100
1,990
/* * Copyright (c) 2008-2014 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 a...
40,210
https://github.com/yoyo2003/pjsip4net/blob/master/pjsip4net.Core/Configuration/CoreComponentConfigurator.cs
Github Open Source
Open Source
Apache-2.0
2,021
pjsip4net
yoyo2003
C#
Code
21
84
using pjsip4net.Core.Interfaces; namespace pjsip4net.Core.Configuration { public class CoreComponentConfigurator : IConfigureComponents { public void Configure(IContainer container) { container.RegisterAsSingleton<IEventsProvider, EventsProvider>(); } } }
27,625
https://github.com/dwpsoft/cognito-local/blob/master/jest.config.js
Github Open Source
Open Source
MIT
2,022
cognito-local
dwpsoft
JavaScript
Code
17
86
module.exports = { roots: ["<rootDir>/src"], setupFiles: ["jest-date-mock"], setupFilesAfterEnv: ["<rootDir>/setupTests.ts"], transform: { "^.+\\.ts$": "esbuild-jest", }, testMatch: ["**/*.test.ts"], };
21,375
https://github.com/intuit/QuickBooks-V3-PHP-SDK/blob/master/src/Data/IPPPaymentStatusEnum.php
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,023
QuickBooks-V3-PHP-SDK
intuit
PHP
Code
196
523
<?php namespace QuickBooksOnline\API\Data; /** * @xmlNamespace http://schema.intuit.com/finance/v3 * @xmlType string * @xmlName IPPPaymentStatusEnum * @var IPPPaymentStatusEnum * @xmlDefinition Product: ALL Description: Enumeration of payable status for an invoice, as follows: A pending invoice is no...
31,329
https://github.com/devmobile-vulog/flutter-mapbox-gl/blob/master/lib/src/annotation_manager.dart
Github Open Source
Open Source
BSD-2-Clause
2,022
flutter-mapbox-gl
devmobile-vulog
Dart
Code
1,061
3,510
part of mapbox_gl; abstract class AnnotationManager<T extends Annotation> { final MapboxMapController controller; final _idToAnnotation = <String, T>{}; final _idToLayerIndex = <String, int>{}; /// Called if a annotation is tapped final void Function(T)? onTap; /// base id of the manager. User [layerdIds...
19,446
https://github.com/bluzelle/bzapi/blob/master/database/db_dispatch.hpp
Github Open Source
Open Source
Apache-2.0
null
bzapi
bluzelle
C++
Code
258
844
// // Copyright (C) 2019 Bluzelle // // 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...
15,297
https://github.com/spiralhalo/canvas/blob/master/src/main/resources/assets/canvas/shaders/pipeline/diffuse.glsl
Github Open Source
Open Source
Apache-2.0
2,021
canvas
spiralhalo
GLSL
Code
288
1,035
#include frex:shaders/api/context.glsl #include frex:shaders/api/world.glsl #include canvas:basic_light_config /****************************************************** canvas:shaders/pipeline/diffuse.glsl ******************************************************/ #if DIFFUSE_SHADING_MODE != DIFFUSE_MODE_NONE varying fl...
27,264
https://github.com/afshin70/FormFactory/blob/master/FormFactory.Examples.Shared/Examples/AutoCompleteExample.cs
Github Open Source
Open Source
MIT
2,022
FormFactory
afshin70
C#
Code
69
226
using System.Collections.Generic; using System.Globalization; using System.Linq; using FormFactory.Attributes; namespace FormFactory.Examples.Shared.Examples { public class AutoCompleteExample { [Required] [Display(Prompt = "Type to find your location")] public string Location { get; s...
23,430