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/WhiteGrouse/Walker/blob/master/Demangler/Program2.cs
Github Open Source
Open Source
MIT
2,022
Walker
WhiteGrouse
C#
Code
1,575
5,307
using Irony.Parsing; using System; namespace Demangler { class Program { static void Main(string[] args) { var grammar = new ManglingGrammar(); var parser = new Parser(grammar); var tree = parser.Parse("_Z1f2ab"); Console.WriteLine(); } ...
10,432
https://github.com/RenCloud/geeks-diary/blob/master/src/browser/ui/datetime/calendar-table.spec.ts
Github Open Source
Open Source
MIT
2,022
geeks-diary
RenCloud
TypeScript
Code
354
816
import { datetime } from '../../../libs/datetime'; import { CalendarTable } from './calendar-table'; describe('browser.ui.datetime.CalendarTable', () => { let calendar: CalendarTable; /** Validates if calendar rendered well. */ function validateCalendar(table: (string | number)[][]): void { const...
37,945
https://github.com/unrefan/goods-board/blob/master/src/middlewares/errors.js
Github Open Source
Open Source
MIT
null
goods-board
unrefan
JavaScript
Code
94
273
import ValidationError from '../exceptions/ValidationError.js'; import multer from 'multer'; export const multerError = (err, req, res, next) => { if (err instanceof multer.MulterError) { return res.status(400).json({ error: { code: err.code, message: err.message, }, }); } next(err...
42,160
https://github.com/nagasrisai/food-Devilery--App/blob/master/client/src/components/pages/Home.vue
Github Open Source
Open Source
MIT
2,021
food-Devilery--App
nagasrisai
Vue
Code
129
468
<template> <div> <div class="conatiner home-conatiner"> <div class="sr-only" id="navbar__header">For Go to Top</div> <app-file-loader /> <app-product-modal /> <app-navbar /> <router-view /> </div> <app-footer /> </div> </template> <script> import ProductModal from '../layouts/ProductModal'; impo...
46,480
https://github.com/BrunoNicolasPadin/gescol-virtual/blob/master/resources/js/Pages/Paneles/Roles.vue
Github Open Source
Open Source
MIT
2,021
gescol-virtual
BrunoNicolasPadin
Vue
Code
427
1,965
<template> <app-layout title="Panel - Roles"> <template #header> <h2 class="font-semibold text-xl text-gray-800 leading-tight"> Panel / Roles </h2> </template> <div class="py-12"> <div class="max-w-7xl mx-auto sm:px-6 md:px-8"> ...
47,117
https://github.com/justin-espedal/polydes/blob/master/Data Structures Extension/src/com/polydes/datastruct/Prefs.java
Github Open Source
Open Source
MIT
2,021
polydes
justin-espedal
Java
Code
31
93
package com.polydes.datastruct; public class Prefs { public static int DEFPAGE_X; public static int DEFPAGE_Y; public static int DEFPAGE_WIDTH; public static int DEFPAGE_HEIGHT; public static int DEFPAGE_SIDEWIDTH; public static int DEFPAGE_SIDEDL; }
41,712
https://github.com/MikaFima/json-api-behat-extension/blob/master/src/Json/JsonStorageAware.php
Github Open Source
Open Source
MIT
2,015
json-api-behat-extension
MikaFima
PHP
Code
11
44
<?php namespace Rezzza\JsonApiBehatExtension\Json; interface JsonStorageAware { public function setJsonStorage(JsonStorage $jsonStorage); }
8,450
https://github.com/France-ioi/bebras-tasks/blob/master/bebras/2013/2013-FR-12/task.js
Github Open Source
Open Source
MIT
2,023
bebras-tasks
France-ioi
JavaScript
Code
888
3,617
function initTask(subTask) { var state = {}; var level; var answer = null; var data = { easy: { graph: { "vertexInfo": { "00":{}, "01":{}, "02":{}, "03":{}, "04":{}, "05":{}, "06":{}, "07":{}, "08":{}, "09":{}, "10":{}, "11":{}, "12":{} }, ...
44,264
https://github.com/chunshen1987/bayesian_analysis/blob/master/src/mcmc.py
Github Open Source
Open Source
MIT
null
bayesian_analysis
chunshen1987
Python
Code
1,189
3,839
""" Markov chain Monte Carlo model calibration using the `affine-invariant ensemble sampler (emcee) <http://dfm.io/emcee>`_. This module must be run explicitly to create the posterior distribution. Run ``python -m src.mcmc --help`` for complete usage information. On first run, the number of walkers and burn-in steps ...
35,557
https://github.com/danangsptro/laravel-vue-spa/blob/master/resources/js/src/components/navbar.vue
Github Open Source
Open Source
MIT
null
laravel-vue-spa
danangsptro
Vue
Code
28
112
<template> <div> <marquee><i>Selamat Datang di halaman form pendaftaran</i></marquee> </div> </template> <style scoped> marquee { color: #fff; font-size: 20px; font-weight: bold; padding: 20px; background-color: #09379b; border-radius: 10px; } </style>
12,511
https://github.com/ahl54/Tracker/blob/master/setup.py
Github Open Source
Open Source
MIT
null
Tracker
ahl54
Python
Code
30
127
from setuptools import setup setup(name='data_tracker', version='1.0', description="An application for tracking data requests", long_description="", author='Anna Lu', author_email='lua1@email.chop.edu', license='MIT License', packages=['data_tracker'], zip_safe=False, ...
1,731
https://github.com/a619668402/DYLTool/blob/master/DYLTool/DYLTool/Test/YLTestCircleController.m
Github Open Source
Open Source
Apache-2.0
2,019
DYLTool
a619668402
Objective-C
Code
173
878
// // YLTestCircleController.m // DYLTool // // Created by sky on 2018/8/23. // Copyright © 2018年 DYL. All rights reserved. // #import "YLTestCircleController.h" #import "YLCircleView.h" #import "NSMutableAttributedString+YLTool.h" @interface YLTestCircleController () @end @implementation YLTestCircleController...
10,885
https://github.com/Color-Chan/Color-Chan.Discord/blob/master/src/Color-Chan.Discord/Extensions/ApplicationBuilderExtensions.cs
Github Open Source
Open Source
MIT
2,022
Color-Chan.Discord
Color-Chan
C#
Code
93
259
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Http; namespace Color_Chan.Discord.Extensions { /// <summary> /// Contains all the extension methods for <see cref="IApplicationBuilder" />. /// </summary> public static class ApplicationBuilderExtensions { /// <summary> ...
22,177
https://github.com/speedofit2007/duytrancs-ParentingPlus/blob/master/client/InitialDesign/RewardsToEarnViewController.m
Github Open Source
Open Source
Apache-2.0
2,014
duytrancs-ParentingPlus
speedofit2007
Objective-C
Code
1,608
6,360
// // RewardsToEarnViewController.m // Parenting+ // // Created by Neil Gebhard on 1/17/14. // Copyright (c) 2014 Capstone Team B. All rights reserved. // #import "RewardsToEarnViewController.h" #import "RewardPricesViewController.h" #import "InfoViewController.h" @interface RewardsToEarnViewController () { N...
3,868
https://github.com/wellcometrust/wellcome-patterns-node/blob/master/catalogue/webapp/components/ItemRequestModal/ConfirmedDialog.tsx
Github Open Source
Open Source
MIT
null
wellcome-patterns-node
wellcometrust
TypeScript
Code
112
340
import { FC } from 'react'; import { CTAs, CurrentRequests, Header } from './common'; import { allowedRequests } from '@weco/common/values/requests'; import ButtonSolidLink from '@weco/common/views/components/ButtonSolidLink/ButtonSolidLink'; import { useToggles } from '@weco/common/server-data/Context'; type Confirme...
44,342
https://github.com/aliostad/deep-learning-lang-detection/blob/master/data/train/bash/de002e6a709f9a40e04ab3da777b46d9924114e7test.sh
Github Open Source
Open Source
MIT
2,021
deep-learning-lang-detection
aliostad
Shell
Code
169
538
vw -i s1.model -t -p s1.predictions test.vw vw -i s2.model -t -p s2.predictions test.vw vw -i s3.model -t -p s3.predictions test.vw vw -i s4.model -t -p s4.predictions test.vw vw -i s5.model -t -p s5.predictions test.vw vw -i w1.model -t -p w1.predictions test.vw vw -i w2.model -t -p w2.predictions test.vw vw -i w3.mo...
24,309
https://github.com/wuyongwen/vraptor-jasperreport/blob/master/src/main/java/br/com/caelum/vraptor/jasperreports/formats/Odt.java
Github Open Source
Open Source
Apache-2.0
2,013
vraptor-jasperreport
wuyongwen
Java
Code
44
189
package br.com.caelum.vraptor.jasperreports.formats; import net.sf.jasperreports.engine.JRExporter; import net.sf.jasperreports.engine.export.oasis.JROdtExporter; import br.com.caelum.vraptor.ioc.Component; /** * @author William Pivotto */ @Component public class Odt extends AbstractExporter { public String getC...
1,397
https://github.com/rafmos/graphql-fhir/blob/master/src/resources/3_0_1/profiles/allergyintolerance/resolver.js
Github Open Source
Open Source
MIT
null
graphql-fhir
rafmos
JavaScript
Code
201
510
const errorUtils = require('../../../../utils/error.utils'); /** * @name exports.allergyintoleranceResolver * @static * @summary AllergyIntolerance Resolver. */ module.exports.allergyintoleranceResolver = function allergyintoleranceResolver (root, args, context, info) { let { server, req, res, version } = context...
9,290
https://github.com/joelea/bootstraps/blob/master/coffeescript/gulp/tasks/nice-test.js
Github Open Source
Open Source
Apache-2.0
2,015
bootstraps
joelea
JavaScript
Code
20
77
var gulp = require('gulp'); var config = require('../config'); var mocha = require('gulp-mocha'); gulp.task('nice-test', ['compile-js'], function() { return gulp.src(config.build.test) .pipe(mocha({})); });
36,004
https://github.com/JGCRI/gcam-core/blob/master/cvs/objects/marketplace/source/normal_market.cpp
Github Open Source
Open Source
ECL-2.0, LicenseRef-scancode-unknown-license-reference
2,023
gcam-core
JGCRI
C++
Code
420
932
/* * LEGAL NOTICE * This computer software was prepared by Battelle Memorial Institute, * hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830 * with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE * CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY * LIABILITY FOR THE USE OF...
39,532
https://github.com/horzel/foursquare-palmpre/blob/master/Foursquare/app/assistants/friends-map-assistant.js
Github Open Source
Open Source
Apache-2.0
2,014
foursquare-palmpre
horzel
JavaScript
Code
645
4,279
function FriendsMapAssistant(lat,long,f,u,p,uid,ps,what) { this.lat=lat; this.long=long; this.friends=f; this.username=u; this.password=p; this.uid=uid; this.prevScene=ps; this.what=what; _globals.curmap=this; } FriendsMapAssistant.prototype.aboutToActivate = function(callback)...
13,956
https://github.com/RichardBoyewa/choice/blob/master/.dockerignore
Github Open Source
Open Source
MIT
2,018
choice
RichardBoyewa
Ignore List
Code
5
23
.idea/ node_modules/ .gitignore .dockerignore LICENCE
49,566
https://github.com/mgijax/mgv/blob/master/src/components/FindGenes.vue
Github Open Source
Open Source
MIT
2,022
mgv
mgijax
Vue
Code
148
563
<template> <div class="find-genes flexcolumn"> <select @change="selectSearch($event.target.value)" > <option v-for="search in searches" :key="search.label" :value="search.label" >{{search.label}}</option> </select> <input ref="searchTerm" size=...
37,227
https://github.com/rlperez/stock-ticker/blob/master/db/schema.rb
Github Open Source
Open Source
MIT
null
stock-ticker
rlperez
Ruby
Code
235
595
# This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # This file is the source Rails uses to define your schema when running `rails #...
48,805
https://github.com/MaVdbussche/nozc/blob/master/nozc/src/main/java/com/barassolutions/FunctionDef.java
Github Open Source
Open Source
BSD-2-Clause
2,021
nozc
MaVdbussche
Java
Code
253
927
package com.barassolutions; import com.barassolutions.util.Logger; import com.barassolutions.util.Utils; import java.util.List; public class FunctionDef extends Declaration { /** * The function's name. */ private final String name; /** * The arguments of this function. */ private final List<Patt...
44,762
https://github.com/SauloCav/OOP-Experiments/blob/master/Final Project OOP src/Calculos_Salariais/Vend.java
Github Open Source
Open Source
MIT
null
OOP-Experiments
SauloCav
Java
Code
57
174
package Calculos_Salariais; public class Vend extends Vendedor { public Vend() { super(); } public Vend(String nome, double salBase, double totalVendas, double numeroDeDependentes) { super(nome, salBase, totalVendas, numeroDeDependentes); } @Override public String toString() { return "Vend [getNome()=" ...
9,873
https://github.com/gutierrezps/NeuroKit/blob/master/neurokit2/misc/parallel_run.py
Github Open Source
Open Source
MIT
2,022
NeuroKit
gutierrezps
Python
Code
175
438
def parallel_run(function, arguments_list, n_jobs=-2, **kwargs): """Parallel processing utility function (requires the ```joblib`` package). Parameters ----------- function : function A callable function. arguments_list : list A list of dictionaries. The function will iterate throug...
34,288
https://github.com/James4Deutschland/lazer/blob/master/GeneralUsageLister/MainIndex/two/llvm-cxxmap
Github Open Source
Open Source
WTFPL, GPL-1.0-or-later
2,020
lazer
James4Deutschland
Shell
Code
5
32
#!/bin/bash llvm-cxxmap --help &> ../two-log/llvm-cxxmap.log
29,033
https://github.com/ShAlireza/ML-Tries/blob/master/O4/_23_select_meaningful_features/doc.py
Github Open Source
Open Source
MIT
null
ML-Tries
ShAlireza
Python
Code
161
225
""" If we notice that a model performs much better on a training dataset than on the test dataset, this observation is a strong indicator of overfitting. the model fits the parameters too closely with regard to the particular observations in the training dataset, but does not generalize well to new ...
36,761
https://github.com/dnguyen87/ng-fly/blob/master/server/models/drone.js
Github Open Source
Open Source
MIT
2,016
ng-fly
dnguyen87
JavaScript
Code
244
948
var arDrone = require('ar-drone'); var parrot = new Drone(arDrone); function Drone(drone) { this.drone = drone.createClient(); this.pos = [0, 0, 0]; this.airborne = false; } Drone.prototype.command = function(command) { switch(command) { case 'up': console.log('up'); this.pos[1] += 1; th...
18,087
https://github.com/kfzxleibin/Generic-Clean-Architecture/blob/master/MyApplication/app/src/main/java/com/zeyad/cleanarchitecture/data/db/generalize/GeneralRealmManager.java
Github Open Source
Open Source
MIT
2,016
Generic-Clean-Architecture
kfzxleibin
Java
Code
225
571
package com.zeyad.cleanarchitecture.data.db.generalize; import android.content.Context; import org.json.JSONObject; import java.util.List; import io.realm.RealmObject; import io.realm.RealmQuery; import rx.Observable; public interface GeneralRealmManager { /** * Gets an {@link Observable} which will emit ...
19,011
https://github.com/andrewboudreau/AdventOfCode_2020/blob/master/Day04/Day04.cs
Github Open Source
Open Source
MIT
null
AdventOfCode_2020
andrewboudreau
C#
Code
128
463
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Extensions.Logging; namespace AdventOfCode_2020.Week01 { public class Day04 : Day00 { public Day04(IServiceProvider serviceProvider, ILogger<Day04> logger) : base(serviceProvider, logger) { ...
23,571
https://github.com/3025066980/MatTuGames/blob/master/mat_tugames/@TuGame/Gap.m
Github Open Source
Open Source
BSD-2-Clause-Views, BSD-2-Clause
2,021
MatTuGames
3025066980
MATLAB
Code
140
439
function [g bv lv]=Gap(clv) % GAP computes the gap function from game v. % % Usage: [g bv lv]=Gap(clv) % % Define variables: % output: % g -- The gap function of game v. A vector of length 2^n-1. % bv -- The upper vector/payoff of game v. % lv -- The lower/concession vector of game v. % % input:...
17,541
https://github.com/aliyun/aliyun-tablestore-java-sdk/blob/master/src/main/java/com/alicloud/openservices/tablestore/core/protocol/TunnelServiceApi.java
Github Open Source
Open Source
Apache-2.0
2,021
aliyun-tablestore-java-sdk
aliyun
Java
Code
20,000
68,514
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: tunnel_service_api.proto package com.alicloud.openservices.tablestore.core.protocol; public final class TunnelServiceApi { private TunnelServiceApi() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } pub...
8,987
https://github.com/GalRogozinski/hornet/blob/master/pkg/config/graph_config.go
Github Open Source
Open Source
Apache-2.0
null
hornet
GalRogozinski
Go
Code
167
453
package config import ( flag "github.com/spf13/pflag" ) const ( // the path to the visualizer web assets CfgGraphWebRootPath = "graph.webRootPath" // the websocket URI to use (optional) CfgGraphWebSocketURI = "graph.webSocket.uri" // sets the domain name from which the visualizer is served from CfgGraphDomain ...
31,768
https://github.com/apple4ever/promalertproxy/blob/master/t/alert.t
Github Open Source
Open Source
Artistic-1.0
null
promalertproxy
apple4ever
Perl
Code
146
589
#!/usr/bin/env perl use 5.028; use warnings; use experimental qw(signatures); use Test::Lib; use Test::PromAlertProxy; use Test::More; use Test::Time; use Date::Format qw(time2str); use PromAlertProxy::Alert; subtest "active alerts" => sub { my $now_alert = PromAlertProxy::Alert->new( labels => {}, ...
31,338
https://github.com/nilax97/leetcode-solutions/blob/master/solutions/Course Schedule III/solution.py
Github Open Source
Open Source
MIT
2,021
leetcode-solutions
nilax97
Python
Code
41
112
class Solution: def scheduleCourse(self, courses: List[List[int]]) -> int: pq = [] start = 0 courses = sorted(courses, key= lambda x : x[1]) for t, end in courses: start += t heapq.heappush(pq, -t) while start > end: start += heapq....
44,279
https://github.com/savvasth96/fructose/blob/master/src/main/java/fwcd/fructose/structs/WeakArrayList.java
Github Open Source
Open Source
MIT
2,019
fructose
savvasth96
Java
Code
890
2,849
package fwcd.fructose.structs; import java.lang.ref.WeakReference; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.ListIterator; import java.util.NoSuchElementException; import java.util.stream.Collectors; /** * An {@link ArrayList}-based {@...
11,949
https://github.com/kfarnung/advent-of-code/blob/master/2018/day04/day04.py
Github Open Source
Open Source
MIT
2,017
advent-of-code
kfarnung
Python
Code
293
1,040
""" Implementation for Advent of Code Day 4. https://adventofcode.com/2018/day/4 """ from __future__ import print_function import re from collections import defaultdict _INSTRUCTION_REGEX = re.compile( r"^\[(\d{4}-\d{2}-\d{2} \d{2}:(\d{2}))] (Guard #(\d+) begins shift|.+)$") class GuardAction: """Represen...
21,016
https://github.com/Roxza/Personal/blob/master/src/components/Warning.vue
Github Open Source
Open Source
MIT
2,021
Personal
Roxza
Vue
Code
55
193
<template> <div class="w-200"> <div class="h-13 text-white px-4 py-3 rounded relative w-full" role="alert" style="background-color: #c02828; text-align: center" > <span style="padding-right: 0.25rem" class="float-left block sm:inline"> <i class="fad fa-exclamation-triangle"></i...
39,647
https://github.com/1a2s3d4f1/TIS-3D/blob/master/src/main/java/li/cil/tis3d/util/datafix/fixes/TileEntityLeadingWhitespace.java
Github Open Source
Open Source
CC0-1.0
null
TIS-3D
1a2s3d4f1
Java
Code
118
468
package li.cil.tis3d.util.datafix.fixes; import li.cil.tis3d.api.API; import li.cil.tis3d.common.Constants; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.util.datafix.IFixableData; import net.minecraftforge.common.util.Constants.NBT; import java.util.Objects; public final class TileEntityLeadingWhite...
41,674
https://github.com/dozenow/shortcut/blob/master/eglibc-2.15/math/w_sinh.c
Github Open Source
Open Source
LGPL-2.1-only, GPL-2.0-only, LicenseRef-scancode-inner-net-2.0, BSD-3-Clause, LGPL-2.1-or-later, HPND, LicenseRef-scancode-other-copyleft, CMU-Mach, LicenseRef-scancode-other-permissive, BSD-2-Clause
2,019
shortcut
dozenow
C
Code
108
279
/* @(#)w_sinh.c 5.1 93/09/24 */ /* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. * * Developed at SunPro, a Sun Microsystems, Inc. business. * Permission to use, copy, modify, and distribute this * software is freely granted, provided th...
38,535
https://github.com/zhouruizhong/crm/blob/master/src/main/java/com/zrz/crm/web/config/advice/WebResponseBody.java
Github Open Source
Open Source
Apache-2.0
null
crm
zhouruizhong
Java
Code
193
844
package com.zrz.crm.web.config.advice; import com.zrz.crm.utils.JsonUtil; import com.zrz.crm.web.config.SwaggerConfig; import com.zrz.crm.web.config.annotation.ResponseAdvice; import com.zrz.crm.web.config.enums.ResponseAdviceEnum; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import o...
13,154
https://github.com/cupy/cupy/blob/master/tests/cupyx_tests/scipy_tests/ndimage_tests/test_distance_transform.py
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,023
cupy
cupy
Python
Code
1,082
4,136
import copy import numpy import pytest import cupy from cupy import testing import cupyx.scipy.ndimage # NOQA try: import scipy.ndimage # NOQA except ImportError: pass @testing.with_requires('scipy') class TestDistanceTransform: def _binary_image(self, shape, xp=cupy, pct_true=50): # cupy an...
48,806
https://github.com/xtuzy/SharpConstraintLayout/blob/master/SharpConstraintLayout.Core/androidx/constraintlayout/core/motion/CustomVariable.cs
Github Open Source
Open Source
Apache-2.0
null
SharpConstraintLayout
xtuzy
C#
Code
1,453
4,486
using System; /* * Copyright (C) 2021 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
6,298
https://github.com/openstack4j/openstack4j/blob/master/core/src/main/java/org/openstack4j/model/network/AvailabilityZone.java
Github Open Source
Open Source
Apache-2.0
2,023
openstack4j
openstack4j
Java
Code
58
143
package org.openstack4j.model.network; import org.openstack4j.model.ModelEntity; /** * An availability zone groups network nodes that run services like DHCP, L3, FW, and others. * * @author Taemin */ public interface AvailabilityZone extends ModelEntity { /** * @return State */ String getState(...
18,989
https://github.com/odooht/odoo-rpc/blob/master/examples/psm/src/odoo/odoojs/addons/product.js
Github Open Source
Open Source
MIT
2,019
odoo-rpc
odooht
JavaScript
Code
190
1,242
import mail from './mail' import uom from './uom' const product_product_extend = (BaseClass)=>{ class cls extends BaseClass { get_history_price( company_id, date=null) { const data = this.call( 'get_history_price', [company_id, date] ) return data; } } return cls } ...
3,972
https://github.com/toolmagic/Toolmagic.Common/blob/master/Toolmagic.Common/IO/SystemConsole.cs
Github Open Source
Open Source
MIT
null
Toolmagic.Common
toolmagic
C#
Code
66
217
using System; namespace Toolmagic.Common.IO { public sealed class SystemConsole : IConsole { private readonly object _lockObject = new object(); public bool KeyAvailable => System.Console.KeyAvailable; public ConsoleKeyInfo ReadKey(bool intercept) { return System.Console.ReadKey(intercept); } publ...
29,103
https://github.com/MaloPavol/Algorithmic-cash-flow-prediction-tool/blob/master/02_LocalFileSystem/DataMapStockBarsJSON.cs
Github Open Source
Open Source
BSD-3-Clause
2,020
Algorithmic-cash-flow-prediction-tool
MaloPavol
C#
Code
21
74
using System; using System.Collections.Generic; using System.Text; using FileHelpers; namespace AlgoCashFlow.LocalFileSystem { [DelimitedRecord("|")] public class DataMapStockBarsJSON { public string JSON; } }
30,092
https://github.com/MoeCasts/laravel-user-login-log/blob/master/tests/UserLoginLogMiddlewareTest.php
Github Open Source
Open Source
MIT
2,021
laravel-user-login-log
MoeCasts
PHP
Code
98
494
<?php namespace Moecasts\Laravel\UserLoginLog\Test; use Moecasts\Laravel\UserLoginLog\Middleware\UserLoginLogMiddleware; use Moecasts\Laravel\UserLoginLog\Test\Models\User; use Moecasts\Laravel\UserLoginLog\Test\TestCase; class UserLoginLogMiddlewareTest extends TestCase { public function setUp(): void { ...
37,031
https://github.com/Oyiersan/p3c/blob/master/p3c-pmd/src/main/java/com/xenoamess/p3c/pmd/lang/java/rule/dubbo/InterfaceClassShouldEndWithRemoteServiceNamingRule.java
Github Open Source
Open Source
Apache-2.0
null
p3c
Oyiersan
Java
Code
175
557
/* * Copyright 1999-2017 Alibaba Group. * * 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...
35,121
https://github.com/mkasa/neco-ghc-lushtags/blob/master/autoload/neocomplete/sources/cabal.vim
Github Open Source
Open Source
BSD-3-Clause
2,018
neco-ghc-lushtags
mkasa
Vim Script
Code
286
1,150
let s:source = { \ 'name' : 'cabal', \ 'filetypes': { 'cabal': 1 } \ } function! s:source.gather_candidates(...) abort "{{{ return map([ \ 'executable', \ 'library', \ 'benchmark', \ 'test-suite', \ 'flag', ...
4,798
https://github.com/AndrewKhitrin/antlr_psql/blob/master/src/test/resources/sql/update/9be3a2e5.sql
Github Open Source
Open Source
MIT
2,018
antlr_psql
AndrewKhitrin
SQL
Code
14
32
-- file:update.sql ln:459 expect:true UPDATE range_parted set a = 'a' WHERE a = 'ad'
6,258
https://github.com/jscriptcoder/mangleIt/blob/master/src/ts/services/countdown-provider.ts
Github Open Source
Open Source
MIT
null
mangleIt
jscriptcoder
TypeScript
Code
42
98
import Countdown from '../models/countdown'; /** * Service provider of Countdown */ export default class CountdownProvider implements ng.IServiceProvider { private _timeout: number; public set timeout(timeout: number) { this._timeout = timeout; } public $get = (): Countdown => ...
23,798
https://github.com/freezyoff/JIWANALA/blob/master/system/vendor/maatwebsite/excel/src/Concerns/WithValidation.php
Github Open Source
Open Source
MIT, Apache-2.0
2,019
JIWANALA
freezyoff
PHP
Code
24
62
<?php namespace Maatwebsite\Excel\Concerns; interface WithValidation { /** * @param @rows - row columns data value * @return array */ public function rules($rows): array; }
27,133
https://github.com/anastasiarebr/aa_dev/blob/master/backend/assets/dod/dist/js/create.js
Github Open Source
Open Source
BSD-3-Clause
2,021
aa_dev
anastasiarebr
JavaScript
Code
15
68
var faculty = $("div.field-dodcreateform-faculty_id"); $("#dodcreateform-type").on("change", function() { if(this.checked){ faculty.hide() } else { faculty.show() } });
23,331
https://github.com/ldLirn/youxi/blob/master/resources/views/user/goods.blade.php
Github Open Source
Open Source
Apache-2.0
null
youxi
ldLirn
PHP
Code
514
3,063
@extends('layouts.user') @section('content') <link href="{{asset(HOME_CSS.'select-game.css') }}" rel="stylesheet" type="text/css"> <div class="content"> <div class="center_title">我的位置:{!! Breadcrumbs::render('my_buy_goods') !!}</div> <div class="center_box"> @include('layouts.user_left_menu') <...
7,893
https://github.com/0xcafed00d/adventofcode_2019/blob/master/day_16/day16_test.go
Github Open Source
Open Source
MIT
null
adventofcode_2019
0xcafed00d
Go
Code
227
851
package main import ( "fmt" "testing" "github.com/0xcafed00d/assert" ) func Test1(t *testing.T) { assert := assert.Make(t) pgen := pattern(0) assert(pgen()).Equal(1) assert(pgen()).Equal(0) assert(pgen()).Equal(-1) assert(pgen()).Equal(0) pgen = pattern(1) assert(pgen()).Equal(0) assert(pgen()).Equal(1...
28,236
https://github.com/lukaszwawrzyk/quasar/blob/master/precog/src/main/scala/quasar/precog/JPath.scala
Github Open Source
Open Source
Apache-2.0
null
quasar
lukaszwawrzyk
Scala
Code
161
282
/* * Copyright 2014–2018 SlamData 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 agr...
9,177
https://github.com/berand/trinity/blob/master/tests/eth2/beacon/test_beacon_validation.py
Github Open Source
Open Source
MIT
2,019
trinity
berand
Python
Code
217
925
import pytest from hypothesis import ( given, strategies as st, ) from eth_utils import ( ValidationError, ) from eth2._utils.bitfield import ( get_bitfield_length, get_empty_bitfield, set_voted, ) from eth2.beacon.validation import ( validate_bitfield, validate_slot, validate_epo...
46,704
https://github.com/bsed/rust_example/blob/master/adder/target/debug/deps/adder-b56f5c64cac59b33.d
Github Open Source
Open Source
MIT
2,020
rust_example
bsed
Makefile
Code
5
96
c:\workspace\rust\rust_example\adder\target\debug\deps\libadder-b56f5c64cac59b33.rlib: src\lib.rs c:\workspace\rust\rust_example\adder\target\debug\deps\adder-b56f5c64cac59b33.d: src\lib.rs src\lib.rs:
41,961
https://github.com/Aarthif-Nawaz/ARC-R3ACT/blob/master/Server_side/routes/datascience.route.js
Github Open Source
Open Source
MIT
null
ARC-R3ACT
Aarthif-Nawaz
JavaScript
Code
54
118
/* This file retrieves invokes the python file to start the data science section of this project. Author: Shiromi Thevarajan IIT ID: 2018117 Dependencies: express */ // importing express JS module and assign it to a variable var express = require("express"); var router = express.Router(); var searchController = requ...
19,663
https://github.com/zcf7822/joyqueue/blob/master/joyqueue-console/joyqueue-portal/src/components/tab-pane/tab-pane.vue
Github Open Source
Open Source
Apache-2.0
2,022
joyqueue
zcf7822
Vue
Code
139
425
<template> <div :class="[prefixCls + '__pane']" v-show="show"> <slot></slot> </div> </template> <script> import Config from '../../config' const prefixCls = `${Config.clsPrefix}tabs` export default { name: `${Config.namePrefix}TabPane`, props: { name: { type: String }, label: { ty...
8,399
https://github.com/SCardonaSuarez/NestJs-BSL/blob/master/src/interface/index.ts
Github Open Source
Open Source
MIT
2,021
NestJs-BSL
SCardonaSuarez
TypeScript
Code
8
15
export * from './pet'; export * from './category';
11,626
https://github.com/amboar/tceetree/blob/master/ccan/tcon/test/compile_ok-container.c
Github Open Source
Open Source
MIT
2,021
tceetree
amboar
C
Code
70
221
#include <stdlib.h> #include <ccan/tcon/tcon.h> #include <ccan/build_assert/build_assert.h> #include <ccan/tap/tap.h> struct inner { int inner_val; }; struct outer { int outer_val; struct inner inner; }; struct info_base { char *infop; }; struct info_tcon { struct info_base base; TCON(TCON_CONTAINER(fi, stru...
21,903
https://github.com/mysutka/Atk14/blob/master/src/forms/fields/choice_field.php
Github Open Source
Open Source
MIT
2,016
Atk14
mysutka
PHP
Code
198
618
<?php /** * Field for choices. * * @package Atk14 * @subpackage Forms */ class ChoiceField extends Field { var $choices = array(); function __construct($options=array()) { if (!isset($options["widget"])) { $options["widget"] = new Select(); } parent::__construct($options); $this->update_messages(arr...
40,917
https://github.com/peterivatt/GC_AROMATICS/blob/master/run/GCHPctm/build.sh
Github Open Source
Open Source
MIT
null
GC_AROMATICS
peterivatt
Shell
Code
655
1,582
#!/bin/bash #------------------------------------------------------------------------------ # GEOS-Chem Global Chemical Transport Model ! #------------------------------------------------------------------------------ #BOP # # !MODULE: build.sh # # !DESCRIPTION: Cleans or compiles GE...
372
https://github.com/flanggut/advent-of-code/blob/master/aoc-2020/day16.playground/Contents.swift
Github Open Source
Open Source
MIT
null
advent-of-code
flanggut
Swift
Code
393
1,047
import Foundation let file = "/Users/flanggut/Downloads/day16.txt" //let file = "/Users/flanggut/Desktop/aoc2020/test.strings" let input = try! String(contentsOfFile: file).components(separatedBy: .newlines).dropLast() /// Parse input var ranges : [String: [(Int, Int)]] = [:] var line = 0 while input[line].count > 1 {...
9,769
https://github.com/aberba/gtkDcoding/blob/master/012_menus/menu_012_12_observed_radiomenuitems.d
Github Open Source
Open Source
LicenseRef-scancode-public-domain
2,020
gtkDcoding
aberba
D
Code
489
1,772
// This source code is in the public domain. /* Diagram: MyMenuBar FileMenuHeader FileMenu SmallRadioMenuItem MediumRadioMenuItem LargeRadioMenuItem ExtraLargeRadioMenuItem Exit */ import std.stdio; import std.string; // for access to .length import gtk.MainWindow; import gtk.Box; impor...
44,877
https://github.com/Comcast/prometheus-rpms-centos6/blob/master/build_rpm.sh
Github Open Source
Open Source
Apache-2.0
2,019
prometheus-rpms-centos6
Comcast
Shell
Code
252
800
#!/bin/bash # Defaults RPM_BUILD_ROOT=/root NOSIGN= NAME= RELEASE= usage() { echo "usage: build_rpm.sh --name name [--rpm-build-root path] [--no-sign]" echo " --name - the name of the rpm to build" echo " --release - the version of the rpm to build" echo " --rpm-bui...
2,631
https://github.com/a-x-/decaffeinate/blob/master/dist/stages/main/patchers/ProgramPatcher.js
Github Open Source
Open Source
MIT
null
decaffeinate
a-x-
JavaScript
Code
444
1,382
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var coffee_lex_1 = require("coffee-lex"); var SharedProgramPatcher_1 = require("../../../patchers/SharedProgramPatcher"); var getIndent_1 = require("../../../utils/getIndent"); var notNull_1 = require("../../../...
15,547
https://github.com/gentics/mesh/blob/master/common/src/main/java/com/gentics/mesh/auth/provider/MeshJWTAuthProvider.java
Github Open Source
Open Source
Apache-2.0
2,023
mesh
gentics
Java
Code
1,096
3,504
package com.gentics.mesh.auth.provider; import static com.gentics.mesh.core.rest.error.Errors.error; import static io.netty.handler.codec.http.HttpResponseStatus.BAD_REQUEST; import static io.netty.handler.codec.http.HttpResponseStatus.INTERNAL_SERVER_ERROR; import static io.netty.handler.codec.http.HttpResponseStatus...
47,997
https://github.com/alexUXUI/ng2-for-fun/blob/master/app/games/games.service.ts
Github Open Source
Open Source
MIT
null
ng2-for-fun
alexUXUI
TypeScript
Code
48
122
export class GamesService { games = [ { name: 'Fifa', id: 1, rating: 5 }, { name: 'Halo', id: 2, rating: 5 }, { name: 'Palgue', id: 3, rating: 5 } ]; getGames() { return this.games; } getGame(id: any) { return this.games.find(games => games.id === id); } }
30,249
https://github.com/pnp/pnpscanning/blob/master/src/PnP.Scanning/PnP.Scanning.Core/Storage/Model/SyntexList.cs
Github Open Source
Open Source
MIT
2,022
pnpscanning
pnp
C#
Code
214
466
using Microsoft.EntityFrameworkCore; #nullable disable namespace PnP.Scanning.Core.Storage { [Index(new string[] { nameof(ScanId), nameof(SiteUrl), nameof(WebUrl), nameof(ListId) }, IsUnique = true)] internal sealed class SyntexList : BaseScanResult { #region List identification information ...
32,846
https://github.com/stStoyanov93/SoftUni-CSharp-Fundamentals-2018/blob/master/C# OOP Advanced/04 Reflection and Attributes/EXE_ReflectionAndAttributes/P07_InfernoInfinity/Core/Engine.cs
Github Open Source
Open Source
MIT
null
SoftUni-CSharp-Fundamentals-2018
stStoyanov93
C#
Code
64
205
using System; using System.Linq; public class Engine : IEngine { private ICommandInterpreter commandInterpreter; public Engine(ICommandInterpreter commandInterpreter) { this.commandInterpreter = commandInterpreter; } public void Run() { var input = Console.ReadLine(); ...
36,813
https://github.com/squad-b/work-assistant-web/blob/master/src/pages/main/BookAddPage.tsx
Github Open Source
Open Source
MIT
2,021
work-assistant-web
squad-b
TypeScript
Code
249
858
import * as React from "react"; import BookAddPopup from "../../components/book/add/BookAddPopup"; import BookSearchInput from "../../components/book/add/BookSearchInput"; import BookSearchResultList from "../../components/book/add/BookSearchResultList"; import Layout from "../../components/common/Layout"; import api ...
5,029
https://github.com/dakota/croogo/blob/master/Plugin/Contacts/Controller/ContactsController.php
Github Open Source
Open Source
MIT
null
croogo
dakota
PHP
Code
716
2,599
<?php App::uses('CakeEmail', 'Network/Email'); App::uses('ContactsAppController', 'Contacts.Controller'); /** * Contacts Controller * * PHP version 5 * * @category Controller * @package Croogo.Contacts.Controller * @version 1.0 * @author Fahad Ibnay Heylaal <contact@fahad19.com> * @license http://www.op...
43,873
https://github.com/leofideliss/qualityct_laravel/blob/master/app/Http/Controllers/SpecificationsController.php
Github Open Source
Open Source
MIT
null
qualityct_laravel
leofideliss
PHP
Code
646
2,310
<?php namespace App\Http\Controllers; use App\Helpers\CollectionHelper; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use App\Models\Clients; use App\Models\Experiment; use App\Models\Measure; use App\Models\Products; use App\Models\Specification; use App\Models\Sample; use App\Models\Test; class ...
2,814
https://github.com/hw233/home3/blob/master/core/server/project/commonBase/src/main/java/com/home/commonBase/constlist/generate/UnitAgainstType.java
Github Open Source
Open Source
Apache-2.0
2,021
home3
hw233
Java
Code
43
120
package com.home.commonBase.constlist.generate; /** 单位敌对类型(generated by shine) */ public class UnitAgainstType { /** 中立 */ public static final int Neutral=0; /** 敌对 */ public static final int Enemy=1; /** 友好 */ public static final int Friend=2; /** 长度 */ public static int size=3; }
44,721
https://github.com/feiyungu/Haze_Removal_Using_Dark_Channel_Prior/blob/master/WhiteBalance.m
Github Open Source
Open Source
MIT
2,018
Haze_Removal_Using_Dark_Channel_Prior
feiyungu
MATLAB
Code
129
355
function WB = WhiteBalance(img) img = double(img); [m, n, ~] = size(img); % fetch each color channel r = img(:,:,1); g = img(:,:,2); b = img(:,:,3); % calculate mean value for each color channel meanR = mean(r(:)); meanG = mean(g(:)); meanB = mean(b(:)); meanRGB = [meanR me...
38,616
https://github.com/hugwolf41/prettygood_dsp/blob/master/scripts/parse_autoeq_results.py
Github Open Source
Open Source
MIT
2,021
prettygood_dsp
hugwolf41
Python
Code
145
578
import json import os import re # Run in AutoEQ results folder root_dir = "." out_file_name = "autoeq_profiles.json" staging_dict = {} def get_numbers(s): rr = re.findall("[-+]?[.]?[\d]+(?:,\d\d\d)*[\.]?\d*(?:[eE][-+]?\d+)?", s) return [float(d) for d in rr] for dir_name, subdir_list, file_list in os.walk(r...
25,074
https://github.com/alanyee/python-terrascript/blob/master/terrascript/clc/d.py
Github Open Source
Open Source
BSD-2-Clause, Python-2.0
2,020
python-terrascript
alanyee
Python
Code
2
13
# terrascript/clc/d.py
35,293
https://github.com/AbeerMM/scriptmanager/blob/master/src/scripts/Coordinate_Analysis/FilterBEDbyProximity.java
Github Open Source
Open Source
MIT
null
scriptmanager
AbeerMM
Java
Code
454
1,825
package scripts.Coordinate_Analysis; import java.awt.BorderLayout; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintStream; import java....
48,521
https://github.com/uWebshop/-INACTIVE-uWebshop-Core/blob/master/Umbraco/uWebshop.Umbraco7/DataTypes/MultiNodePickers/MultipleCategoryPicker.cs
Github Open Source
Open Source
MIT
2,016
-INACTIVE-uWebshop-Core
uWebshop
C#
Code
65
274
using System.Collections.Generic; using Umbraco.Core.Models; using Umbraco.Core.PropertyEditors; using Umbraco.Web.PropertyEditors; namespace uWebshop.Umbraco7.DataTypes.MultiNodePickers { [PropertyEditor("uWebshop.MultiContentPickerCategories", "uWebshop Multiple Category Picker", "contentpicker")] public sealed c...
25,985
https://github.com/ksrilal/glfa/blob/master/Version 2.0/src/app/pages/author-management/add-author/add-author.component.ts
Github Open Source
Open Source
MIT
2,020
glfa
ksrilal
TypeScript
Code
255
1,017
import { Component, OnInit } from '@angular/core'; import { FormGroup, FormControl, Validators } from '@angular/forms'; import { PasswordValidators } from '../../validators/password-validator'; import { AuthorManagementService } from '../author-management.service'; import { AngularFireStorage } from '@angular/fire/stor...
3,171
https://github.com/pavana184/lmscourseplayer/blob/master/src/features/apis/api-info.js
Github Open Source
Open Source
MIT
null
lmscourseplayer
pavana184
JavaScript
Code
30
233
module.exports = { url: 'https://learner.contentenablers.com/storefront/', dummy_url: 'https://jsonplaceholder.typicode.com/', clientId: 139, ENCRYPT_IV: '0123456789123456', ENCRYPT_KEY: "HG58YZ3CR9HG58YZ3CR93CR9", destination: { authUrl : 'microservicelogin/', playerAuth: 'api/playerv2/auth/', us...
30,653
https://github.com/chrreisinger/antlr4/blob/master/tool/test/org/antlr/v4/test/TestLexerExec.java
Github Open Source
Open Source
BSD-3-Clause
2,011
antlr4
chrreisinger
Java
Code
338
1,666
package org.antlr.v4.test; import org.junit.Test; public class TestLexerExec extends BaseTest { @Test public void testRefToRuleDoesNotSetTokenNorEmitAnother() throws Exception { String grammar = "lexer grammar L;\n"+ "A : '-' I ;\n" + "I : '0'..'9'+ ;\n"+ "WS : (' '|'\\n') {skip();} ;"; String found ...
38,949
https://github.com/asp2insp/Nuclear-Swift/blob/master/NuclearTests/ImmutableTests.swift
Github Open Source
Open Source
MIT
null
Nuclear-Swift
asp2insp
Swift
Code
815
2,527
// // ImmutableTests.swift // Nuclear // // Created by Josiah Gaskin on 5/5/15. // Copyright (c) 2015 Josiah Gaskin. All rights reserved. // import UIKit import XCTest class ImmutableTests: XCTestCase { override func setUp() { super.setUp() } // Test contains func testContainsVal...
25,421
https://github.com/vendelal/wave/blob/master/Wave/MelodySmart.h
Github Open Source
Open Source
MIT
2,015
wave
vendelal
Objective-C
Code
1,251
2,829
// // MelodySmart.h // MelodySmart // // Copyright (c) 2013 BlueCreation. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreBluetooth/CoreBluetooth.h> #define BC_LIB_MELODY_SMART_IOS_VER 0x0009 @class MelodySmart; /*! * @enum PioLocation * * @discussion Represents the set of PIOs the va...
10,671
https://github.com/mhxw/solidity-by-example-cn/blob/master/src/pages/app/time-lock/TimeLock.sol
Github Open Source
Open Source
MIT
null
solidity-by-example-cn
mhxw
Solidity
Code
428
1,190
// SPDX-License-Identifier: MIT pragma solidity ^0.8.10; contract TimeLock { error NotOwnerError(); error AlreadyQueuedError(bytes32 txId); error TimestampNotInRangeError(uint blockTimestamp, uint timestamp); error NotQueuedError(bytes32 txId); error TimestampNotPassedError(uint blockTimestmap, uin...
23,868
https://github.com/miaobin/webnn-native/blob/master/src/tests/end2end/MulTests.cpp
Github Open Source
Open Source
Apache-2.0
null
webnn-native
miaobin
C++
Code
806
5,300
// Copyright 2021 The WebNN-native 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 applicable law or ...
8,911
https://github.com/PrinceKael/U-232-V5/blob/master/scripts/jquery.status.js
Github Open Source
Open Source
WTFPL
2,022
U-232-V5
PrinceKael
JavaScript
Code
220
1,109
$(document).ready( function () { $('#status_button').click(function () { alert('should edit'); }); $('#status_button_cancel').click(function () { alert('Should cancel'); }); }); function status_count() { var text_limit = 140; var text = $('#status').val(); if(typeof text == 'undefined') var text = $(...
48,390
https://github.com/ycs77/phptheday-inertiajs-demo-resource/blob/master/03 todolist/Todolist.vue
Github Open Source
Open Source
MIT
2,020
phptheday-inertiajs-demo-resource
ycs77
Vue
Code
193
833
<template> <div class="max-w-md mx-auto"> <h1 class="text-purple-700 text-3xl text-center">待辦事項</h1> <div class="bg-white mt-4 border border-purple-200 divide-y divide-purple-200 rounded-md shadow-md"> <form class="flex px-6 py-4" @submit.prevent="createTodo"> <div class="flex-1 mr-4"> ...
26,093
https://github.com/GuillermoElectrico/energy-meter-logger/blob/master/write_register.py
Github Open Source
Open Source
GPL-3.0-only
2,023
energy-meter-logger
GuillermoElectrico
Python
Code
136
303
#!/usr/bin/env python import minimalmodbus #sudo pip install pyserial #sudo pip install minimalmodbus instrument = minimalmodbus.Instrument('/dev/ttyAMA0', 1) # port name, slave address (in decimal) #instrument = minimalmodbus.Instrument('/dev/serial0', 1) # port name, slave address (in decimal) instrument.debug = Tr...
17,106
https://github.com/Maksimka101/isolate-bloc/blob/master/packages/isolate_bloc/test/src/common/isolate/isolate_bloc_events/isolate_bloc_events_test.dart
Github Open Source
Open Source
MIT
2,022
isolate-bloc
Maksimka101
Dart
Code
65
321
// ignore_for_file: no-equal-arguments import 'package:flutter_test/flutter_test.dart'; import 'package:isolate_bloc/src/common/isolate/isolate_bloc_events/isolate_bloc_events.dart'; void main() { test('Events creating', () { const CloseIsolateBlocEvent(''); const IsolateBlocsInitialized({}); const Iso...
8,301
https://github.com/LMiceOrg/Modelingtools/blob/master/autotools/modelparser/excelmodelpropertyparser.py
Github Open Source
Open Source
MIT
2,016
Modelingtools
LMiceOrg
Python
Code
38
173
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Excel ModelProperty表单解析器基类, ExcelModelPropertyParser Sheet struct: """ import excelsheetparser class ExcelModelPropertyParser(excelsheetparser.ExcelSheetParser): def ParseExcelSheet(self, model, xl_name, sh_ctx, sh_idx, sh_name): #get namespace ...
23,100
https://github.com/BingzhangChen/Citrate/blob/master/DRAM/EFTsimple_sRun/S1_aI1.2/Compile/npzd_cont__genmod.f90
Github Open Source
Open Source
MIT
2,019
Citrate
BingzhangChen
Fortran Free Form
Code
21
79
!COMPILER-GENERATED INTERFACE MODULE: Tue May 2 15:02:02 2017 MODULE NPZD_CONT__genmod INTERFACE SUBROUTINE NPZD_CONT END SUBROUTINE NPZD_CONT END INTERFACE END MODULE NPZD_CONT__genmod
27,799
https://github.com/rust404/icons-vue3/blob/master/src/icons/Mdb.vue
Github Open Source
Open Source
MIT
2,020
icons-vue3
rust404
Vue
Code
69
450
<template> <w-icon v-bind="$attrs"> <svg viewBox="0 0 576 512"><path d="M17.37 160.41L7 352h43.91l5.59-79.83L84.43 352h44.71l25.54-77.43 4.79 77.43H205l-12.79-191.59H146.7L106 277.74 63.67 160.41zm281 0h-47.9V352h47.9s95 .8 94.2-95.79c-.78-94.21-94.18-95.78-94.18-95.78zm-1.2 146.46V204.78s46 4.27 46.8 50.57-46.78...
5,996
https://github.com/02GEEK/course-react-ui/blob/master/004-sass/source/bootstrap/utils.js
Github Open Source
Open Source
MIT
null
course-react-ui
02GEEK
JavaScript
Code
17
59
export function classify(key, value){ if(value[0]==='-') value = key+value; value = value.split(' -').join(` ${key}-`); return `${key} ${value}`; }
4,449
https://github.com/mmm-soares/concurrency-java-9/blob/master/Chapter08/IRSystem/src/com/javferna/packtpub/mastering/irsystem/concurrent/ConcurrentData.java
Github Open Source
Open Source
MIT
null
concurrency-java-9
mmm-soares
Java
Code
171
738
package com.javferna.packtpub.mastering.irsystem.concurrent; import com.javferna.packtpub.mastering.irsystem.common.Token; public class ConcurrentData { public static void getWordsInFile1(String fileName, ConcurrentInvertedIndex index) { long value = index .getIndex() .parallelStream() .filter(token ...
39,096