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/drammock/mne-nirs/blob/master/mne_nirs/datasets/fnirs_motor_group/__init__.py
Github Open Source
Open Source
BSD-3-Clause
null
mne-nirs
drammock
Python
Code
8
25
"""fNIRS motor dataset group.""" from .fnirs_motor_group import (data_path)
10,335
https://github.com/rafael-figueiredo-alves/eRAMs/blob/master/Model/eRAMs.Model.ConexaoBD.pas
Github Open Source
Open Source
Apache-2.0
2,021
eRAMs
rafael-figueiredo-alves
Pascal
Code
264
1,254
unit eRAMs.Model.ConexaoBD; interface uses eRAMs.Model.Interfaces, FireDAC.Stan.Intf, FireDAC.Stan.Option, FireDAC.Stan.Error, FireDAC.UI.Intf, FireDAC.Phys.Intf, FireDAC.Stan.Def, FireDAC.Stan.Pool, FireDAC.Stan.Async, FireDAC.Phys, FireDAC.FMXUI.Wait, FireDAC.Phys.MSSQLDef, FireDAC.Phys.OD...
5,147
https://github.com/AurosTV/AutoPause-Overhaul/blob/master/Utilities/Helpers.cs
Github Open Source
Open Source
MIT
2,022
AutoPause-Overhaul
AurosTV
C#
Code
191
661
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; using UnityEngine.Networking; namespace AutoPause.Utilities { public static class Sprites { public static Material NoGlowMat { get { if (noGlo...
23,276
https://github.com/OpenHFT/Chronicle-Wire/blob/master/src/main/java/net/openhft/chronicle/wire/utils/OverrideFieldAgitator.java
Github Open Source
Open Source
Apache-2.0
2,023
Chronicle-Wire
OpenHFT
Java
Code
232
532
/* * Copyright 2016-2022 chronicle.software * * https://chronicle.software * * 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 ...
19,761
https://github.com/epam/cloud-pipeline/blob/master/api/src/main/java/com/epam/pipeline/manager/cloudaccess/CloudAccessManager.java
Github Open Source
Open Source
Apache-2.0
2,023
cloud-pipeline
epam
Java
Code
726
2,727
/* * Copyright 2022 EPAM Systems, Inc. (https://www.epam.com/) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
18,634
https://github.com/panyifei/cortex-zepto-ajax/blob/master/server.js
Github Open Source
Open Source
MIT
2,014
cortex-zepto-ajax
panyifei
JavaScript
Code
115
595
var express = require("express"); var app = express(); app.use('/static', express.static(__dirname + '/')); var statusFunction = { "-901":function (res,httpstatus){ //停留5秒后返回信息 setTimeout(function(){ console.log("response ", httpstatus); res.status(200).send({ error: '-90...
35,931
https://github.com/ga-explorer/GeometricAlgebraLib/blob/master/GraphicsComposerLib/GraphicsComposerLib.Geometry/ParametricShapes/Curves/Bezier/GrBezierCurve3Degree3D.cs
Github Open Source
Open Source
MIT
2,022
GeometricAlgebraLib
ga-explorer
C#
Code
348
1,263
using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; using NumericalGeometryLib.BasicMath; using NumericalGeometryLib.BasicMath.Tuples; using NumericalGeometryLib.BasicMath.Tuples.Immutable; namespace GraphicsComposerLib.Geometry.ParametricShapes.Curves.Bezier { ...
39,694
https://github.com/im-tridevsharma/cafirm/blob/master/app/Http/Controllers/Admin/PageController.php
Github Open Source
Open Source
MIT
null
cafirm
im-tridevsharma
PHP
Code
559
1,999
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use App\Models\BusinessCategory; use App\Models\Category; use App\Models\Page; use Exception; use Illuminate\Http\Request; use Illuminate\Support\Facades\Session; use Illuminate\Support\Facades\Validator; class PageController extends Co...
20,021
https://github.com/pskiad17/FinancialOrganizer/blob/master/API/Controllers/AuthenticationController.cs
Github Open Source
Open Source
MIT
null
FinancialOrganizer
pskiad17
C#
Code
50
203
using Application.Common.Models; using Application.User; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using System.Threading.Tasks; namespace API.Controllers { public class AuthenticationController : MediatorBaseController { [AllowAnonymous] [HttpPost] ...
22,487
https://github.com/sreedevikr/secure-state-remediation-jobs/blob/master/remediation_worker/jobs/ebs_private_snapshot/ebs_private_snapshot.py
Github Open Source
Open Source
Apache-2.0
2,022
secure-state-remediation-jobs
sreedevikr
Python
Code
413
1,192
# Copyright (c) 2021 VMware 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 writi...
42,772
https://github.com/fanghuafan/go-algorithm/blob/master/algorithm/sort/select/sort_test.go
Github Open Source
Open Source
Apache-2.0
2,017
go-algorithm
fanghuafan
Go
Code
26
114
package _select import ( "testing" ) func TestBubble(t *testing.T) { var arr = []int{1,4,5,7,2,3,10,-1,-12,23,324,23423,-1212} SelectSort(arr) t.Log(arr) //i := 4 //j := 1 // //fmt.Println("----:", i-j) }
20,464
https://github.com/abhijitsri007/LoginRegister/blob/master/springboot-examples/springboot-mockmvc-hsql/src/main/resources/static/stocklist.js
Github Open Source
Open Source
MIT
2,022
LoginRegister
abhijitsri007
JavaScript
Code
207
604
Vue.component('demo-grid', { template: '#grid-template', props: { data: Array, columns: Array, filterKey: String }, data: function () { var sortOrders = {} this.columns.forEach(function (key) { sortOrders[key] = 1 }) return { sortKey: '', sortOrders: sortOrders ...
38,529
https://github.com/MochalovaAn/llvm/blob/master/llvm/test/Instrumentation/InstrProfiling/icall.ll
Github Open Source
Open Source
Apache-2.0
null
llvm
MochalovaAn
LLVM
Code
507
1,614
;; Check that static counters are allocated for value profiler ; RUN: opt < %s -mtriple=x86_64-apple-macosx10.10.0 -vp-static-alloc=true -instrprof -S | FileCheck %s --check-prefix=STATIC ; RUN: opt < %s -mtriple=x86_64-unknown-linux -instrprof -vp-static-alloc=true -S | FileCheck %s --check-prefix=STATIC ; RUN: opt <...
47,941
https://github.com/amandeep-saluja/Expense_Management_System/blob/master/Expense_Management_System/src/main/java/com/aman/ems/entity/ExpenseEntity.java
Github Open Source
Open Source
MIT
null
Expense_Management_System
amandeep-saluja
Java
Code
100
475
package com.aman.ems.entity; import java.time.LocalDate; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.JoinTable; import javax.persistence.OneToMa...
33,613
https://github.com/Ydos2/PSU_minishell2_2019/blob/master/src/minishell.c
Github Open Source
Open Source
MIT
null
PSU_minishell2_2019
Ydos2
C
Code
285
927
/* ** EPITECH PROJECT, 2020 ** minishell ** File description: ** minishell */ #include "minishell.h" int initialise_minishell(mini_t *mini, char **envp) { signal(SIGINT, set_signal_Handler); mini->envp = envp; while (1) { initialise_shell(mini); if (mini->quit != 0) break; ...
40,311
https://github.com/awesomevilo-abad/fisto_be/blob/master/app/Models/Document.php
Github Open Source
Open Source
MIT
2,022
fisto_be
awesomevilo-abad
PHP
Code
81
344
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use Carbon\Carbon; class Document extends Model { use HasFactory; use SoftDeletes; protected $table = 'documents'; protected $fill...
9,231
https://github.com/kbes/pigeon/blob/master/app/Data/Cargo/CargoServiceProvider.php
Github Open Source
Open Source
MIT
null
pigeon
kbes
PHP
Code
43
156
<?php namespace App\Data\Cargo; use Illuminate\Support\ServiceProvider; use App\Data\Cargo\Models\Cargo; use App\Data\Cargo\Contracts\CargoInterface; use App\Data\Cargo\Repositories\CargoRepository; class CargoServiceProvider extends ServiceProvider { /** * Register the service provider. * * @ret...
19,058
https://github.com/suomenriistakeskus/oma-riista-ios/blob/master/Riista-Ios/Utils/WithConditionals.swift
Github Open Source
Open Source
MIT
null
oma-riista-ios
suomenriistakeskus
Swift
Code
110
230
import Foundation public typealias ConditionCheck = () -> Bool public protocol WithConditionals { } extension WithConditionals where Self: Any { @inlinable @discardableResult public func when(_ condition: ConditionCheck, block: (inout Self) -> Void) -> Self { if (condition()) { var m...
40,580
https://github.com/andrewBatutin/jenkins_scripts/blob/master/update_profile_by_name.sh
Github Open Source
Open Source
MIT
null
jenkins_scripts
andrewBatutin
Shell
Code
86
318
#!/bin/bash prof_name="" prof_type="" u_name="" pswrd="" OPTIND=1 while getopts ":p:t:u:w:" opt; do case $opt in p) prof_name=$OPTARG ;; t) prof_type=$OPTARG ;; u) u_name=$OPTARG ;; w) pswrd=$OPTARG ;; \?) echo "Invalid option: -$OPTARG" >&2...
16,473
https://github.com/mit-pdos/dafny-nfsd/blob/master/etc/ci-macos-setup-nfs.sh
Github Open Source
Open Source
MIT
2,022
dafny-nfsd
mit-pdos
Shell
Code
27
67
#!/usr/bin/env bash set -e sudo launchctl start com.apple.rpcbind # this is not needed as long as you mount with -o locallocks sudo launchctl start com.apple.lockd mkdir /tmp/nfs
4,995
https://github.com/pcraster/lue/blob/master/source/framework/partitioned_array/include/lue/framework/partitioned_array/server/array_partition_impl.hpp
Github Open Source
Open Source
MIT
2,019
lue
pcraster
C++
Code
360
1,111
#pragma once #include "lue/framework/partitioned_array/server/array_partition.hpp" namespace lue::server { /*! @brief Construct an instance based on an array partition @a shape The @a shape passed in will be passed to the constructor of @a Data. */ template< ...
15,703
https://github.com/GarinMcCullick/DobbsCustoms/blob/master/dobbs-customs/src/Components/ImageSlider.js
Github Open Source
Open Source
MIT
null
DobbsCustoms
GarinMcCullick
JavaScript
Code
336
1,158
import React, { useState, useEffect } from "react"; import styled from "styled-components"; const IndicatorWrapper = styled.div` display: flex; flex-wrap: nowrap; position: absolute; bottom: 0%; left: 50%; transform: translate(-50%, -50%); `; const Dot = styled.div` width: 12px; height: 12px; border...
9,579
https://github.com/BaderLab/ModMashup.jl/blob/master/test/runtests.jl
Github Open Source
Open Source
MIT
2,017
ModMashup.jl
BaderLab
Julia
Code
272
836
import ModMashup using Base.Test # Run tests function selection_test() # Enter the path where the example data located cd(joinpath(Pkg.dir("ModMashup"), "test/data")) # Set up database information dir = "networks" labels = "target.txt" querys = "." id = "ids.txt" smooth = true t...
22,999
https://github.com/willyneverdie/contaSoftSpringBoot/blob/master/contaSoft/src/main/java/com/hp/contaSoft/MvcConfiguration.java
Github Open Source
Open Source
MIT
null
contaSoftSpringBoot
willyneverdie
Java
Code
69
361
package com.hp.contaSoft; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.ViewResolver; import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer; import org.springframework.web.servle...
6,355
https://github.com/enstulen/ARKitAnimation/blob/master/Pods/SwiftCharts/SwiftCharts/Axis/ChartAxisLabelsConflictSolverMoveUpDown.swift
Github Open Source
Open Source
MIT
2,021
ARKitAnimation
enstulen
Swift
Code
223
541
// // ChartAxisLabelsConflictSolverMoveUpDown.swift // SwiftCharts // // Created by ischuetz on 27/06/16. // Copyright © 2016 ivanschuetz. All rights reserved. // import Foundation /// Solves frame overlaps by moving drawers up and down by half of the height of their frames. Assumes being used for y axis, which c...
28,074
https://github.com/virtualcell/Biosimulators_utils/blob/master/biosimulators_utils/simulator/data_model.py
Github Open Source
Open Source
MIT
null
Biosimulators_utils
virtualcell
Python
Code
456
1,266
""" Data model for simulators :Author: Jonathan Karr <karr@mssm.edu> :Date: 2020-12-06 :Copyright: 2020, Center for Reproducible Biomedical Modeling :License: MIT """ import enum __all__ = [ 'SoftwareInterface', 'AlgorithmSubstitutionPolicy', 'ALGORITHM_SUBSTITUTION_POLICY_LEVELS', 'EnvironmentVariab...
18,727
https://github.com/kennib/facebook-against-humanity/blob/master/facebook-against-humanity.cabal
Github Open Source
Open Source
MIT
2,015
facebook-against-humanity
kennib
null
Spoken
88
309
-- Initial facebook-against-humanity.cabal generated by cabal init. For -- further documentation, see http://haskell.org/cabal/users-guide/ name: facebook-against-humanity version: 0.1.0.0 -- synopsis: description: Cards Against Humanity with questions sourced from Face...
21,085
https://github.com/rajwanraju/Digital-Doctor-Platform/blob/master/resources/views/backEnd/user/index.blade.php
Github Open Source
Open Source
MIT
2,019
Digital-Doctor-Platform
rajwanraju
Blade
Code
21
67
@extends('backEnd.master') @section('title') Digital Doctor @endsection @section('body') <p style="text-align: center">If You Not complete Your Profile Please complete then Apply for Appointment.</p> @endsection
23,423
https://github.com/Buggaboo/slackware-kvm-scripts/blob/master/etc/rc.d/rc.tuntap-vm
Github Open Source
Open Source
MIT
2,010
slackware-kvm-scripts
Buggaboo
Shell
Code
136
432
#!/bin/sh #set -e -x ETHDEVICE=eth0 KVMGROUP=kvm BRIDGE=br0 TAPRANGE=$(seq 0 8) TUNDEVICE=/dev/net/tun # don't change TUNCTL=$(which tunctl) BRCTL=$(which brctl) IFCONFIG=$(which ifconfig) tun_start () { for nr in $TAPRANGE; do $TUNCTL -u $(whoami) -t tap$nr #$(which ip) link set tap$nr $IFCONFIG tap$...
33,074
https://github.com/agengsubagja001/Bicara_wanita/blob/master/application/views/admin/partial/sidebar.php
Github Open Source
Open Source
MIT
null
Bicara_wanita
agengsubagja001
PHP
Code
194
1,043
<!-- sidebar --> <div id="layoutSidenav_nav"> <nav class="sb-sidenav accordion sb-sidenav-dark" id="sidenavAccordion"> <div class="sb-sidenav-menu"> <div class="nav"> <a class="nav-link mt-2" href="<?php base_url() ?>dashboard"> ...
24,784
https://github.com/MapGIS/WebClient-JavaScript/blob/master/website/src/views/total/DetailConfig.js
Github Open Source
Open Source
Apache-2.0
2,022
WebClient-JavaScript
MapGIS
JavaScript
Code
747
3,447
export const IGServer = [ { func: "底图服务", leaflet: "支持", mapboxgl: "支持", openlayers: "支持", cesium: "支持", }, { func: "目录服务", leaflet: "支持", mapboxgl: "支持", openlayers: "支持", cesium: "支持", }, { func: "要素服务", leaflet: "支持", mapboxgl: "支持", openlayers: "支持",...
11,291
https://github.com/janjonas/Dnn.Platform/blob/master/DNN Platform/Tests/DotNetNuke.Tests.Data/Fakes/FakeRepository.cs
Github Open Source
Open Source
MIT
2,020
Dnn.Platform
janjonas
C#
Code
354
791
#region Copyright // // DotNetNuke® - http://www.dotnetnuke.com // Copyright (c) 2002-2017 // by DotNetNuke Corporation // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated // documentation files (the "Software"), to deal in the Software without restric...
4,688
https://github.com/radex/swift-compiler-crashes/blob/master/crashes-duplicates/05872-swift-typechecker-checksubstitutions.swift
Github Open Source
Open Source
MIT
null
swift-compiler-crashes
radex
Swift
Code
44
83
// Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case found by fuzzing class a { deinit { typealias b = c() { } class c { enum S<T where S<Int>: T struc
39,769
https://github.com/ucdavis/AD419/blob/master/Database/Schema Objects/Schemas/dbo/Programmability/Stored Procedures/usp_GetPINames.proc.sql
Github Open Source
Open Source
MIT
null
AD419
ucdavis
SQL
Code
98
252
-- ============================================= -- Author: Alan Lai -- Create date: 9/27/2006 -- Description: Obtains a list of PIs for a specific department -- using hte Org code. -- ============================================= CREATE PROCEDURE [dbo].[usp_GetPINames] @OrgR nvarchar(6) AS BEGIN -- SET NOCOUNT O...
18,699
https://github.com/wstong999/AliOS-Things/blob/master/hardware/board/haas100/drivers/key.c
Github Open Source
Open Source
Apache-2.0
2,022
AliOS-Things
wstong999
C
Code
157
834
#include <stdio.h> //#include <aos/kernel.h> #include "aos/hal/gpio.h" #include "hal_iomux_haas1000.h" #include "key.h" static key_cfg_t key_cfg; static gpio_dev_t key_gpio; static void key_rising_edge_handle(); static long long key_falling_ms = 0; static void key_falling_edge_handle() { hal_gpio_clear_irq(&key_g...
13,273
https://github.com/cdli-gh/mtaac_cdli_ur3_corpus/blob/master/ur3_corpus_data/annotated/pos/P500/P500334.conll
Github Open Source
Open Source
CC0-1.0, LicenseRef-scancode-public-domain
2,022
mtaac_cdli_ur3_corpus
cdli-gh
null
Spoken
352
1,748
#new_text=P500334 # ID FORM SEGM XPOSTAG HEAD DEPREL MISC o.1.1 5(disz) 5(disz)[one] NU o.1.2 sila3 sila[unit] N o.1.3 kasz kasz[beer] N o.1.4 5(disz) 5(disz)[one] NU o.1.5 sila3 sila[unit] N o.1.6 ninda ninda[bread] N o.2.1 1(disz) 1(disz)[one] NU o.2.2 i3-gesz igesz[oil] V o.2.3 id-gur2 idgurum[ladle] N o.3.1 a-bu-ru...
16,273
https://github.com/gfilevante/FormKit.m/blob/master/FormKit/Fields/FKBadgeField.m
Github Open Source
Open Source
Apache-2.0
2,014
FormKit.m
gfilevante
Objective-C
Code
338
1,133
// // Created by Bruno Wernimont on 2012 // Copyright 2012 FormKit // // 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 require...
23,017
https://github.com/favedit/MoCross/blob/master/Source/Cross/Bridge/MoBridge/MoBridge.h
Github Open Source
Open Source
Apache-2.0
2,017
MoCross
favedit
C
Code
31
181
#ifndef __MO_BRIDGE_H__ #define __MO_BRIDGE_H__ #ifndef __MO_BG_COMMON_H__ #include "MoBgCommon.h" #endif // __MO_BG_COMMON_H__ #ifndef __MO_BG_CORE_H__ #include "MoBgCore.h" #endif // __MO_BG_CORE_H__ MO_NAMESPACE_BEGIN //============================================================ EXTERN_C MO_BG_DECLARE void MoBr...
41,564
https://github.com/1115362682/egret-framework/blob/master/source/src/ECS/Components/ScrollingSpriteRenderer.ts
Github Open Source
Open Source
Apache-2.0
2,020
egret-framework
1115362682
TypeScript
Code
91
376
///<reference path="./TiledSpriteRenderer.ts"/> class ScrollingSpriteRenderer extends TiledSpriteRenderer { public scrollSpeedX = 15; public scroolSpeedY = 0; private _scrollX = 0; private _scrollY = 0; public update(){ this._scrollX += this.scrollSpeedX * Time.deltaTime; this._scro...
33,308
https://github.com/wyu0hop/kde/blob/master/kernel_mailing_list/kvm_community/2021-03-09/kvm-unit-tests_Makefile_do_not_use_"libgcc"_for_clang_444281/series_444281.patch
Github Open Source
Open Source
MIT
2,021
kde
wyu0hop
null
Spoken
511
2,958
From patchwork Tue Mar 9 04:52:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Wendling <morbo@google.com> X-Patchwork-Id: 12124049 Return-Path: <kvm-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west...
6,529
https://github.com/svailla4/HapiJsRealWorldExampleTodoAPI/blob/master/test/integrationTests.js
Github Open Source
Open Source
MIT
2,018
HapiJsRealWorldExampleTodoAPI
svailla4
JavaScript
Code
239
828
process.env.NODE_ENV = 'test' const chai = require('chai'); const { expect } = chai; const chaiHttp = require('chai-http'); const { server } = require('../index') chai.use(chaiHttp) describe('api requests', () => { var agent = chai.request.agent(server); let authorization; after(()=>{ agent.clos...
39,215
https://github.com/aryabharat/Firestore-simple/blob/master/packages/admin/example/transaction.ts
Github Open Source
Open Source
MIT
2,021
Firestore-simple
aryabharat
TypeScript
Code
455
1,439
import admin from 'firebase-admin' import { FirestoreSimple, Collection } from '../src' // // Start Firestore local emulator in background before start this script. // `npx firebase emulators:start --only firestore` // // hack for using local emulator process.env.GCLOUD_PROJECT = 'firestore-simple-test' process.env.F...
30,411
https://github.com/VanGog06/documents-calculation/blob/master/DocumentsCalculation/Services/Implementations/CurrencyService.cs
Github Open Source
Open Source
MIT
null
documents-calculation
VanGog06
C#
Code
102
354
using DocumentsCalculation.Exceptions; using DocumentsCalculation.Services.Constracts; using System.Collections.Generic; using System.Globalization; namespace DocumentsCalculation.Services.Implementations { public class CurrencyService : ICurrencyService { public IDictionary<string, decimal> PrepareEx...
17,426
https://github.com/incarti/faastxincarti/blob/master/src/app/components/ConfirmTransactionModal/MetaMaskInstructions.jsx
Github Open Source
Open Source
MIT
2,022
faastxincarti
incarti
null
Spoken
286
1,093
/* eslint-disable react/no-unescaped-entities */ import React, { Fragment } from 'react' import PropTypes from 'prop-types' import { compose, setDisplayName, setPropTypes } from 'recompose' import { Row, Col } from 'reactstrap' import classNames from 'class-names' import { toNumber } from 'Utilities/convert' import { e...
14,140
https://github.com/gsingh93/rust-crypto-block-ciphers/blob/master/blowfish/tests/lib.rs
Github Open Source
Open Source
Apache-2.0, MIT
null
rust-crypto-block-ciphers
gsingh93
Rust
Code
55
206
#![no_std] #[macro_use] extern crate crypto_tests; extern crate blowfish; use crypto_tests::block_cipher::{BlockCipherTest, encrypt_decrypt}; #[test] fn blowfish() { let tests = new_block_cipher_tests!( "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "1...
876
https://github.com/nikhilballari/Hydrograph/blob/master/hydrograph.ui/hydrograph.ui.propertywindow/src/main/java/hydrograph/ui/propertywindow/widgets/utility/GridWidgetCommonBuilder.java
Github Open Source
Open Source
Apache-2.0
2,020
Hydrograph
nikhilballari
Java
Code
596
1,983
/******************************************************************************* * Copyright 2017 Capital One Services, LLC and Bitwise, 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...
24,657
https://github.com/etclabscore/evm_llvm/blob/master/test/Transforms/SLPVectorizer/X86/pr16899.ll
Github Open Source
Open Source
NCSA, LLVM-exception, Apache-2.0
2,020
evm_llvm
etclabscore
LLVM
Code
297
974
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py ; RUN: opt < %s -slp-vectorizer -S -mtriple=i386--netbsd -mcpu=i486 | FileCheck %s target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32-S128" target t...
21,423
https://github.com/chanzuckerberg/edu-design-system/blob/master/.storybook/pages/CoursePlannerStep1/CoursePlannerStep1.tsx
Github Open Source
Open Source
MIT
2,023
edu-design-system
chanzuckerberg
TSX
Code
246
827
import clsx from 'clsx'; import React from 'react'; import { Button, ButtonGroup, Grid, Heading, HorizontalStepper, Icon, InputField, Layout, LayoutContainer, LayoutSection, PageHeader, Panel, Text, } from '../../../src'; import CompassCenter from '../../static/compass-center.svg'; import st...
10,064
https://github.com/spunkmars/VCSPR/blob/master/lib/APIBase.pm
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,013
VCSPR
spunkmars
Perl
Code
997
3,860
package APIBase; use base 'Exporter'; use vars qw/@EXPORT/; @EXPORT = qw(); use base 'APICommon'; use strict; use warnings; use utf8; use Carp; #$SIG{__DIE__} = \&confess; #$SIG{__WARN__} = \&confess; use Plack::Builder; use Plack::Request; use SPMR::COMMON::MyCOMMON qw(DD l_debug $L_DEBUG is_exist_in_array); $L...
31,852
https://github.com/squeek502/TinkersConstruct/blob/master/src/main/java/tconstruct/plugins/nei/RecipeHandlerDryingRack.java
Github Open Source
Open Source
CC-BY-3.0, CC0-1.0
null
TinkersConstruct
squeek502
Java
Code
248
1,030
package tconstruct.plugins.nei; import java.awt.Rectangle; import net.minecraft.item.ItemStack; import org.lwjgl.opengl.GL11; import net.minecraft.util.StatCollector; import tconstruct.library.crafting.DryingRackRecipes; import tconstruct.library.crafting.DryingRackRecipes.DryingRecipe; import codechicken.lib.gui....
4,428
https://github.com/alex-dow/grunt-tplcompile/blob/master/tasks/front.js
Github Open Source
Open Source
MIT
2,014
grunt-tplcompile
alex-dow
JavaScript
Code
101
393
exports.compile = function(grunt, files, options) { var fs = require('fs'); var path = require('path'); var mkdirp = require('mkdirp'); var compiler = require('./compilers/' + options.compiler).init(grunt); var namespace = require('./namespaces/' + options.namespace).init(grunt); var arr_to_...
38,692
https://github.com/JetBrains/intellij-community/blob/master/plugins/ui-designer/src/com/intellij/uiDesigner/propertyInspector/properties/AbstractIntProperty.java
Github Open Source
Open Source
Apache-2.0
2,023
intellij-community
JetBrains
Java
Code
149
495
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.uiDesigner.propertyInspector.properties; import com.intellij.uiDesigner.propertyInspector.Property; import com.intellij.uiDesigner.propertyInspector.Property...
51,499
https://github.com/k0d3d/ser/blob/master/app/views/includes/top-nav.jade
Github Open Source
Open Source
MIT, Unlicense
null
ser
k0d3d
null
Spoken
131
626
.top-bar .container .row .col-sm-4.col-md-4 a.left-toggle(href='#') i.icon-menu-2 // LOGO .branding a(href='/') h4 Integra Medicare Online .col-sm-4.col-md-4.responsive-notification-mnu ul.notification-bar li.dropdow...
11,457
https://github.com/IntelLabs/pmgd/blob/master/include/stringid.h
Github Open Source
Open Source
MIT
2,022
pmgd
IntelLabs
C++
Code
306
531
/** * @file stringid.h * * @section LICENSE * * The MIT License * * @copyright Copyright (c) 2017 Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without rest...
36,192
https://github.com/bosborn/mage-ios/blob/master/Mage/OrView.h
Github Open Source
Open Source
Apache-2.0
null
mage-ios
bosborn
C
Code
32
83
// // OrView.h // MAGE // // Created by Dan Barela on 5/2/18. // Copyright © 2018 National Geospatial Intelligence Agency. All rights reserved. // #import <UIKit/UIKit.h> @interface OrView : UIStackView @end
46,613
https://github.com/fantisticjob/hrs_pro/blob/master/hrs_package/hrs-service/src/main/java/com/hausontech/hrs/serviceImpl/allocationManager/AllocationRulesSettingServiceImpl.java
Github Open Source
Open Source
MIT
null
hrs_pro
fantisticjob
Java
Code
3,609
13,913
package com.hausontech.hrs.serviceImpl.allocationManager; import java.sql.SQLException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframewo...
25,080
https://github.com/ayulockin/Image-Super-Resolution-via-Iterative-Refinement/blob/master/model/ddpm_modules/vanilla_unet.py
Github Open Source
Open Source
Apache-2.0
2,022
Image-Super-Resolution-via-Iterative-Refinement
ayulockin
Python
Code
1,176
4,429
import torch import torch.nn as nn import functools import math import numpy as np import string import torch.nn.functional as F def variance_scaling(scale, mode, distribution, in_axis=1, out_axis=0, dtype=torch.float32, device='cpu'): def _compute_f...
33,407
https://github.com/forgy/ntripshare-base/blob/master/GMap.NET.Core/GMap.NET.MapProviders/ArcGIS/ArcGIS_DarbAE_Q2_2011_NAVTQ_Eng_V5_MapProvider.cs
Github Open Source
Open Source
Apache-2.0
2,021
ntripshare-base
forgy
C#
Code
169
812
 namespace GMap.NET.MapProviders { using System; using GMap.NET.Projections; /// <summary> /// ArcGIS_DarbAE_Q2_2011_NAVTQ_Eng_V5_Map provider, /// http://www.darb.ae/ArcGIS/rest/services/BaseMaps/Q2_2011_NAVTQ_Eng_V5/MapServer /// </summary> public class ArcGIS_DarbAE_Q2_2011_NAVTQ_Eng_V5_MapPr...
24,878
https://github.com/kateyy/libzeug/blob/master/source/reflectionzeug/source/Object.cpp
Github Open Source
Open Source
MIT
null
libzeug
kateyy
C++
Code
44
140
#include <reflectionzeug/Object.h> namespace reflectionzeug { Object::Object() { } Object::Object(const std::string & name) : PropertyGroup(name) { } Object::~Object() { for (std::vector<AbstractFunction*>::iterator it = m_functions.begin(); it != m_functions.end(); ++it) delete (*it); } const std::...
38,039
https://github.com/newkisoft/newki-inventory-proforma/blob/master/Web/Migrations/20210512065717_AddedBankdAccountsAndProformaNumber.cs
Github Open Source
Open Source
MIT
null
newki-inventory-proforma
newkisoft
C#
Code
56
220
using Microsoft.EntityFrameworkCore.Migrations; namespace Web.Migrations { public partial class AddedBankdAccountsAndProformaNumber : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn<string>( name: "BankAccounts"...
11,794
https://github.com/randiantech/ups/blob/master/middleware/before.js
Github Open Source
Open Source
MIT
2,016
ups
randiantech
JavaScript
Code
192
581
var jwt = require('jwt-simple'); var uuid = require('node-uuid'); function before(app) { /* Generate UUIDv4 for request */ app.use(function (req, res, next) { req.uuid = uuid.v4(); next(); }); /* append application secrect (TODO: Remove this and add as a property) */ app.use(functi...
35,670
https://github.com/GSA/datagov-ckan-multi/blob/master/assets/css/styles.scss
Github Open Source
Open Source
CC0-1.0, LicenseRef-scancode-us-govt-public-domain, LicenseRef-scancode-public-domain
2,021
datagov-ckan-multi
GSA
SCSS
Code
119
317
--- --- // Import the US Web Design System minified CSS @import "../uswds/css/uswds.min.css"; // Alternatively, you could import the SCSS files directly for USWDS mixins and variables. //$theme-font-path: '../uswds/fonts'; //$theme-image-path: '../uswds/img'; //@import "uswds/uswds"; // This is the main CSS file....
45,181
https://github.com/Devmadia/prof-team-portfolio-generator/blob/master/lib/Manager.js
Github Open Source
Open Source
MIT
null
prof-team-portfolio-generator
Devmadia
JavaScript
Code
54
147
const Employee = require('./Employee'); class Manager extends Employee { constructor(name, id, email, officeNumber) { super(name, id, email); // introduce office number this.officeNumber = officeNumber; } // office number getOfficeNumber() { return `Office Number: ${th...
9,113
https://github.com/php-school/php-workshop/blob/master/test/res/cli/user.php
Github Open Source
Open Source
MIT
2,022
php-workshop
php-school
PHP
Code
19
47
<?php $count = 0; for ($i = 1; $i < count($argv); $i++) { $count += $argv[$i]; } echo $count;
21,791
https://github.com/sudarshan85/imminent-adm-mimic/blob/master/gbm/args.py
Github Open Source
Open Source
Apache-2.0
2,019
imminent-adm-mimic
sudarshan85
Python
Code
94
505
#!/usr/bin/env python from argparse import Namespace from pathlib import Path path = Path('../data') workdir=path/'workdir/gbm' args = Namespace( workdir=workdir, dataset_csv=path/'proc_dataset.csv', cols=['hadm_id', 'imminent_adm_label', 'prolonged_stay_label', 'processed_note', 'charttime', 'intime', 'charti...
33,949
https://github.com/jimevans/webdriver-herald/blob/master/model/seleniumtestcaseresult.js
Github Open Source
Open Source
MIT
2,019
webdriver-herald
jimevans
JavaScript
Code
172
515
module.exports = class SeleniumTestCaseResult { constructor(resultObject) { if (resultObject['@result']) { this.status = resultObject['@result'].toLowerCase(); } else if (resultObject['@status']) { this.status = resultObject['@status'].toLowerCase(); } else { throw "No status attribute (...
31,947
https://github.com/srmatth/historicalInvesting/blob/master/R/fct_get_historical.R
Github Open Source
Open Source
MIT
2,021
historicalInvesting
srmatth
R
Code
361
1,090
#' Get Historical Prices #' #' A function to get the historical prices for a character vector of tickers #' #' @param tickers the tickers of the stocks that you want to retrieve historical prices for #' #' @return a data frame containing historical price information #' @export get_historical_prices <- function(tickers...
27,255
https://github.com/gugcz/devfest-gamification/blob/master/android/CDH-Master/src/main/java/cz/destil/cdhmaster/view/AdapterView.java
Github Open Source
Open Source
MIT
2,015
devfest-gamification
gugcz
Java
Code
75
269
package cz.destil.cdhmaster.view; import android.content.Context; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.LinearLayout; import java.util.List; import butterknife.Views; import cz.destil.cdhmaster.App; /** *...
29,850
https://github.com/dskrypa/wiki_nodes/blob/master/tests/test_nodes.py
Github Open Source
Open Source
Apache-2.0
2,022
wiki_nodes
dskrypa
Python
Code
1,734
8,976
#!/usr/bin/env python from functools import lru_cache from pathlib import Path from unittest import main from unittest.mock import Mock from wikitextparser import WikiText from wiki_nodes import as_node, Root, Link, List, String, Template, CompoundNode, Tag, Node, BasicNode, MappingNode from wiki_nodes.exceptions im...
36,017
https://github.com/neil-mc-m/vagrant-vinylstore/blob/master/vinyl_store/shipping_rates.sql
Github Open Source
Open Source
MIT
null
vagrant-vinylstore
neil-mc-m
SQL
Code
163
622
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.5.55-0ubuntu0.14.04.1 - (Ubuntu) -- Server OS: debian-linux-gnu -- HeidiSQL Version: 9.4.0.5125 -- ----------------------------------------------------...
45,382
https://github.com/DominikButz/DYAlertController/blob/master/DYAlertControllerExample3/Build/Intermediates.noindex/SwiftMigration/DYAlertControllerExample3/Intermediates.noindex/DYAlertControllerExample3.build/Debug-iphonesimulator/DYAlertControllerExample3.build/Script-1C2E35989E43D94CBEB4AB20.sh
Github Open Source
Open Source
MIT
2,023
DYAlertController
DominikButz
Shell
Code
4
45
#!/bin/sh "${SRCROOT}/Pods/Target Support Files/Pods-DYAlertControllerExample3/Pods-DYAlertControllerExample3-resources.sh"
17,897
https://github.com/Aldaviva/DataSizeUnits/blob/master/Tests/SerializationTests.cs
Github Open Source
Open Source
Apache-2.0
2,023
DataSizeUnits
Aldaviva
C#
Code
203
869
using System.IO; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; using System.Xml; using System.Xml.Serialization; using DataSizeUnits; using Newtonsoft.Json; using Xunit; using Formatting = System.Xml.Formatting; using JsonSerializer = System.Text.Json.JsonSerializer; namesp...
23,304
https://github.com/Zekfad/zekfad.znnme.eu.org/blob/master/client/plugins/v-cjk.js
Github Open Source
Open Source
0BSD
null
zekfad.znnme.eu.org
Zekfad
JavaScript
Code
245
922
import Vue from 'vue'; const blocks = [ '\u1100-\u11ff', // Hangul Jamo '\u2e80-\u2eff', // CJK Radicals Supplement '\u2f00-\u2fdf', // Kangxi Radicals '\u2ff0-\u2fff', // Ideographic Description Characters '\u3000-\u303f', // CJK Symbols and Punctuation '\u3040-\u309f', // Hiragana '\u30a0-\u30ff', // Katakan...
20,383
https://github.com/kurenn/talkie/blob/master/spec/talkie/acts_as_commentable_spec.rb
Github Open Source
Open Source
MIT
2,019
talkie
kurenn
Ruby
Code
110
403
# frozen_string_literal: true require 'rails_helper' RSpec.describe Talkie::ActsAsCommentable, type: :model do let(:dummy_commentable) { DummyCommentable.create } let(:user) { DummyUser.create } context ".class_methods" do subject { DummyCommentable } it { is_expected.to respond_to(:acts_as_commentabl...
117
https://github.com/fsomerlat/StartDemand/blob/master/view/js/formHelperPedido.js
Github Open Source
Open Source
MIT
2,017
StartDemand
fsomerlat
JavaScript
Code
501
3,034
/** * */ var FormHelperPedido = (function() { var getValorTotalPedido = function() { return $(".valTotalPedidoPagPedido").val(); } var setValorTotalPedido = function(valor) { $(".valTotalPedidoPagPedido").val(valor); } var getValorBaseProduto = function() { return $("#cpValorBaseProdut...
14,074
https://github.com/AlexMacLeod23/Library/blob/master/src/main/java/library/commandrunner/add/AddCommand.java
Github Open Source
Open Source
MIT
null
Library
AlexMacLeod23
Java
Code
65
192
package library.commandrunner.add; import library.commandrunner.LibraryCommand; import java.util.List; abstract class AddCommand<T> implements LibraryCommand { // TODO: Write tests // TODO: Construct data object from: cmd, read file // TODO: Add object to correct register protected final List<Strin...
2,163
https://github.com/TempusMUD/cl-tempus/blob/master/src/definitions/smokes.lisp
Github Open Source
Open Source
MIT
2,021
cl-tempus
TempusMUD
Common Lisp
Code
40
140
(in-package #:tempus) (defun smoke-type (obj) (if (is-obj-kind obj +item-tobacco+) (aref (value-of obj) 0) (aref (value-of obj) 2))) (defun max-drags (obj) (aref (value-of obj) 1)) (defun cur-drags (obj) (aref (value-of obj) 0)) (defun smoke-lit (obj) (not (zerop (aref (value-of obj) 3))))
12,789
https://github.com/spmsh/exchangelib/blob/master/tests/test_autodiscover.py
Github Open Source
Open Source
BSD-2-Clause
2,021
exchangelib
spmsh
Python
Code
1,670
7,967
from collections import namedtuple import glob from types import MethodType import dns import requests_mock from exchangelib.account import Account from exchangelib.credentials import Credentials, DELEGATE import exchangelib.autodiscover.discovery from exchangelib.autodiscover import close_connections, clear_cache, a...
29,506
https://github.com/cpyglj/Discuz_English_x32/blob/master/source/language/fr/adv/lang_articlelist.php
Github Open Source
Open Source
Apache-2.0
2,017
Discuz_English_x32
cpyglj
PHP
Code
126
384
<?php /** * [Discuz!] (C)2001-2099 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * * $Id: lang_articlelist.php by Valery Votintsev, codersclub.org */ if(!defined('IN_DISCUZ')) { exit('Access Denied'); } $lang = array ( 'articlelist_name' => 'Listing Articles Publicitai...
6,537
https://github.com/making/credhub/blob/master/src/main/java/io/pivotal/security/controller/v1/health/HealthController.java
Github Open Source
Open Source
Apache-2.0
2,017
credhub
making
Java
Code
82
313
package io.pivotal.security.controller.v1.health; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; i...
12,344
https://github.com/fahimfarhan/legendary-coding-odyssey/blob/master/Codes/CodeForces/A/80A.cpp
Github Open Source
Open Source
MIT
2,020
legendary-coding-odyssey
fahimfarhan
C++
Code
87
422
#include <bits/stdc++.h> #define np 1 #define isp 0 using namespace std; class A80 { private: int n,m,*A; vector<int> v; public: A80(){ cin>>n>>m; A = new int[m+1]; A[0]=np; A[1]=np; for(int i=4; i<=m; i+=2){if(i%2==0)A[i]=np;} for(int i=3; i<sqrt(m)+1; i+=2){ if(A[i]==isp){ //v.push_back(i); ...
35,989
https://github.com/AlexanderMorou/AbstractionProject/blob/master/Libraries/Slf/TypeSystems/Abstract/Abstract/IIdentityManager.cs
Github Open Source
Open Source
MS-PL
null
AbstractionProject
AlexanderMorou
C#
Code
1,197
3,100
using AllenCopeland.Abstraction.Utilities.Services; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AllenCopeland.Abstraction.Slf.Abstract { public interface IIdentityManager<TTypeIdentity, TAssemblyIdentity> : ITypeIdentityManager<TTypeIdentity>, IA...
39,951
https://github.com/loryruta/vren/blob/master/vren/vren/base/kd_tree.hpp
Github Open Source
Open Source
MIT
2,022
vren
loryruta
C++
Code
101
412
#pragma once #include <cstdint> #include <functional> namespace vren { // ------------------------------------------------------------------------------------------------ // KD-tree // ------------------------------------------------------------------------------------------------ struct kd_tree_node { union ...
27,505
https://github.com/mneumann/asexp-rs/blob/master/src/token.rs
Github Open Source
Open Source
MIT
2,020
asexp-rs
mneumann
Rust
Code
1,007
3,614
#[derive(Debug, PartialEq, Copy, Clone)] pub enum TokenError { // If a token not a valid number // For example "+0a" starts as a number, but contains invalid characters. InvalidNumber, // missing terminating quote " MissingQuoteEnd, InvalidUnquotedString, InvalidEscape, } #[derive(Debug,...
45,914
https://github.com/charleshb417/webrest/blob/master/src/main/java/com/charlesbishop/webrest/dao/BaseDAO.java
Github Open Source
Open Source
MIT
null
webrest
charleshb417
Java
Code
114
222
package com.charlesbishop.webrest.dao; import java.io.Serializable; import java.util.List; /* * This interface provides the basic CRUD operations * required for a DAO class. * * T is a model class * U is the class for the Primary Key */ public interface BaseDAO<T, U> { // Create an object and retrieve the ID...
40,910
https://github.com/AndyObtiva/filewatcher/blob/master/lib/filewatcher/runner.rb
Github Open Source
Open Source
MIT
null
filewatcher
AndyObtiva
Ruby
Code
79
246
# frozen_string_literal: true class Filewatcher ## Get runner command by filename class Runner ## Define runners for `--exec` option RUNNERS = { python: %w[py], node: %w[js], ruby: %w[rb], perl: %w[pl], awk: %w[awk], php: %w[php phtml php4 php3 php5 phps] }.freeze ...
51,971
https://github.com/AppHospital/client-api/blob/master/tests/AppHospital.Account/Models/UserTests/Constructor_Should.cs
Github Open Source
Open Source
MIT
2,018
client-api
AppHospital
C#
Code
105
380
using Xunit; using AppHospital.Account; using Shouldly; using System.Linq; namespace AppHospital.Account.UserTests { public class Constructor_Should { private readonly string Firstname; private readonly Group Group; private readonly string Lastname; public Constructor_Should() ...
49,718
https://github.com/mhcxp/spring-dm/blob/master/web/src/main/java/org/springframework/osgi/web/deployer/internal/support/DefaultWarDeploymentContext.java
Github Open Source
Open Source
Apache-2.0
2,020
spring-dm
mhcxp
Java
Code
240
614
/* * Copyright 2006-2009 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...
46,280
https://github.com/kmathur2/kubedirector/blob/master/pkg/catalog/types.go
Github Open Source
Open Source
Apache-2.0
null
kubedirector
kmathur2
Go
Code
336
932
// Copyright 2019 Hewlett Packard Enterprise Development LP // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applica...
1,426
https://github.com/cslrfid/CS108-Windows-CSharp-Desktop-Demo/blob/master/CSLibrary/CSLibrary/BluetoothProtocol/BTReceive.cs
Github Open Source
Open Source
MIT
null
CS108-Windows-CSharp-Desktop-Demo
cslrfid
C#
Code
379
1,367
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CSLibrary { public partial class HighLevelInterface { byte[] _recvBuffer = new byte[8 + 255 + 20]; // receive packet buffer int _currentRecvBufferSize = 0; byte...
37,497
https://github.com/kitchenSinkCollection/RTcmix/blob/master/src/parser/minc/Makefile
Github Open Source
Open Source
Apache-2.0
2,015
RTcmix
kitchenSinkCollection
Makefile
Code
128
431
include ../../../makefile.conf INCLUDES += -I../../include -I../../rtcmix OBJS = y.tab.o builtin.o callextfunc.o error.o sym.o trees.o utils.o handle.o SRCS = builtin.c callextfunc.cpp error.c sym.cpp trees.cpp utils.c handle.cpp MINC = libminc.a LSRC = minc.l LEX = flex LEXFLAGS = -l #-d # -d for debug output YS...
22,454
https://github.com/pschumi/stellar/blob/master/app/helpers/admin/columns_helper.rb
Github Open Source
Open Source
MIT
null
stellar
pschumi
Ruby
Code
3
9
module Admin::ColumnsHelper end
44,607
https://github.com/nagyist/libgit2sharp/blob/master/LibGit2Sharp/ReferenceExtensions.cs
Github Open Source
Open Source
MIT
2,014
libgit2sharp
nagyist
C#
Code
254
713
using System; namespace LibGit2Sharp { /// <summary> /// Provides helpers to a <see cref="Reference"/>. /// </summary> public static class ReferenceExtensions { internal static bool LooksLikeLocalBranch(this string canonicalName) { return canonicalName.IsPrefixedBy(Refe...
35,533
https://github.com/skyformat99/java-study/blob/master/src/main/java/com/pancm/design/memento/MementoTest.java
Github Open Source
Open Source
Apache-2.0
2,018
java-study
skyformat99
Java
Code
441
2,694
package com.pancm.design.memento; import java.util.ArrayList; import java.util.List; /** * @Title: MementoTest * @Description: 备忘录模式 备忘录模式(Memento Pattern)保存一个对象的某个状态,以便在适当的时候恢复对象。备忘录模式属于行为型模式。 核心: 在不破坏封装性的前提下,捕获一个对象的内部状态,并在该对象之外保存这个状态。 * @Version:1.0.0 * @author pancm * @date 2018年10月29日 */ public class Me...
38,844
https://github.com/Gosha/stratosphere/blob/master/library-gen/Stratosphere/ResourceProperties/ElasticsearchDomainEncryptionAtRestOptions.hs
Github Open Source
Open Source
MIT
2,019
stratosphere
Gosha
Haskell
Code
156
699
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE TupleSections #-} -- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-encryptionatrestoptions.html module Stratosphere.ResourceProperties.ElasticsearchDomainE...
50,797
https://github.com/christiankral/PhotoVoltaics/blob/master/PhotoVoltaics/Resources/JModelica/PhotoVoltaics_SimpleCell.py
Github Open Source
Open Source
BSD-3-Clause
2,022
PhotoVoltaics
christiankral
Python
Code
57
261
#!/home/christian/bin/jmodelica from numpy import * from scipy import * from pyfmi import load_fmu from pymodelica import compile_fmu from pylab import * # Simulate simple cell example fmu = compile_fmu("PhotoVoltaics.Examples.SimpleCell","PhotoVoltaics.mo") model = load_fmu(fmu) opts = model.simulate_options() opts["...
41,368
https://github.com/IT-chengcheng/DubboDictionary/blob/master/dubbo-demo-cheng/src/main/java/com/dubbo/SPI_2/inject/TomcatServerInject.java
Github Open Source
Open Source
Apache-2.0
2,021
DubboDictionary
IT-chengcheng
Java
Code
36
150
package com.dubbo.SPI_2.inject; import com.dubbo.SPI_2.HttpServer; import org.apache.dubbo.common.URL; public class TomcatServerInject<T> implements HttpServer { private HttpServer httpServer; // 注入点 public void setHttpServer(HttpServer httpServer) { this.httpServer = httpServer; } @Ove...
8,356
https://github.com/clayne/skymp5-launcher/blob/master/UpdatesClient/UpdatesClient/Modules/ModsManager/Models/ModsModel.cs
Github Open Source
Open Source
Apache-2.0
2,021
skymp5-launcher
clayne
C#
Code
35
102
using System.Collections.Generic; using UpdatesClient.Core.Helpers; namespace UpdatesClient.Modules.ModsManager.Models { public class ModsModel : IJsonSaver { public List<string> Mods { get; set; } = new List<string>(); public List<string> EnabledMods { get; set; } = new List<string>(); } ...
7,867
https://github.com/alessandrocuzzocrea/tic-tac-toe-ai/blob/master/src/ui.cpp
Github Open Source
Open Source
MIT
null
tic-tac-toe-ai
alessandrocuzzocrea
C++
Code
558
1,992
#include <string> #include "ui.h" UI::UI() { initscr(); raw(); noecho(); start_color(); curs_set(0); init_pair(1, COLOR_RED, COLOR_BLACK); init_pair(2, COLOR_GREEN, COLOR_BLACK); gameWin = newwin(9, 11, 4, 8); optionsWin = newwin(20, 30, 1, 30); logWin = newwin(8, 60, 15, 1); quit = false; } UI::~UI()...
47,844
https://github.com/r3dsm0k3/Bitrise-iOS/blob/master/BitriseClient/Sources/Log/LogViewController.swift
Github Open Source
Open Source
MIT
2,019
Bitrise-iOS
r3dsm0k3
Swift
Code
147
573
import Core import Highlightr import RxCocoa import RxSwift import UIKit final class LogViewController: UIViewController { private let build: AppsBuilds.Build init(build: AppsBuilds.Build) { self.build = build super.init(nibName: nil, bundle: nil) } required init?(coder aDecoder: NSC...
45,905