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/spamviech/kommandozeilen_argumente/blob/master/src/argumente/wert.rs
Github Open Source
Open Source
MIT
null
kommandozeilen_argumente
spamviech
Rust
Code
2,142
8,137
//! Wert-Argumente. use std::{collections::HashMap, ffi::OsString, fmt::Display, str::FromStr}; use nonempty::NonEmpty; use unicode_segmentation::UnicodeSegmentation; use crate::{ argumente::{Argumente, Arguments}, beschreibung::{contains_prefix, contains_str, Beschreibung, Description, Konfiguration}, e...
5,380
https://github.com/sabhishek78/day_35_morning_challenge/blob/master/test/Day_35_Morning_Challenge_test.dart
Github Open Source
Open Source
BSD-3-Clause
2,019
day_35_morning_challenge
sabhishek78
Dart
Code
40
160
import 'package:test/test.dart'; import '../bin/main.dart'; void main() { test('Stack Calculator', () { // expect(stackCalc(""),0); expect(stackCalc("5 6 +"),11); expect(stackCalc("5 6 -"),1); expect(stackCalc("5 6 *"),30); expect(stackCalc("5 6 /"),1); expect(stackCalc("3 DUP +"),6); expe...
25,824
https://github.com/microsoft/torchy/blob/master/tests/unit/view_inplace.py
Github Open Source
Open Source
MIT
2,022
torchy
microsoft
Python
Code
17
72
from testdriver import * x = torch.tensor(((3.,8.), (9.,33.))) y = torch.tensor((5.,6.,7.,1.)) x2 = x.view(4) x2.add_(y) print(x) print(x2)
40,581
https://github.com/erezrokah/serverless-monitoring-app/blob/master/frontend/serverless-single-page-app-plugin/index.js
Github Open Source
Open Source
MIT
2,023
serverless-monitoring-app
erezrokah
JavaScript
Code
489
1,636
const readline = require('readline'); const { spawn } = require('child_process'); class ServerlessPlugin { constructor(serverless, options) { this.serverless = serverless; this.options = options; this.commands = { syncToS3: { usage: 'Deploys the `app` directory to your bucket', life...
34,288
https://github.com/djewsbury/XLE/blob/master/RenderCore/LightingEngine/HierarchicalDepths.h
Github Open Source
Open Source
MIT
2,021
XLE
djewsbury
C
Code
120
533
// Distributed under the MIT License (See // accompanying file "LICENSE" or the website // http://www.opensource.org/licenses/mit-license.php) #pragma once #include "../../Assets/AssetsCore.h" #include <memory> namespace RenderCore { class FrameBufferProperties; class IDevice; class IResourceView; } namespace Re...
23,506
https://github.com/hajakutbudeen-dev/laravelTraining/blob/master/resources/views/home.blade.php
Github Open Source
Open Source
MIT
null
laravelTraining
hajakutbudeen-dev
PHP
Code
721
3,276
<!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <title>NCIT Training</title> <meta charset="UTF-8"> <meta name="description" content="WebUni Education Template"> <meta name="keywords" content="webuni, education, creative, html"> <meta name="viewport" content="width=device-width...
37,449
https://github.com/fgrunewald/vermouth-martinize/blob/master/vermouth/tests/test_grappa.py
Github Open Source
Open Source
Apache-2.0
null
vermouth-martinize
fgrunewald
Python
Code
1,747
6,579
# Copyright 2018 University of Groningen # # 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 i...
14,149
https://github.com/thehyve/pmc-conversion/blob/master/luigi-pipeline/luigi_commons.py
Github Open Source
Open Source
MIT
2,021
pmc-conversion
thehyve
Python
Code
616
1,933
import logging import os import subprocess import tempfile import luigi from luigi.contrib.external_program import ExternalProgramRunContext, ExternalProgramRunError logger = logging.getLogger(__name__) def read_content(file) -> str: with open(file, 'r') as f: return f.read() def signal_files_matches(...
33,590
https://github.com/abl17/GameAuthoringVooga/blob/master/src/view/interactions/InteractionCell.java
Github Open Source
Open Source
MIT
2,016
GameAuthoringVooga
abl17
Java
Code
368
1,502
package view.interactions; import java.util.Map.Entry; import java.util.ResourceBundle; import java.util.Set; import java.util.stream.Collectors; import authoring.controller.AuthoringController; import authoring.model.tree.ActionTreeNode; import authoring.model.tree.InteractionTreeNode; import authoring.model.tree.Pa...
29,851
https://github.com/softprodev/protocol/blob/master/contracts/external/referral/v1/ReferralTrackerImplV1.sol
Github Open Source
Open Source
Apache-2.0
2,022
protocol
softprodev
Solidity
Code
513
1,863
/* * Copyright 2020 DMM Foundation * * 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 i...
34,069
https://github.com/Phenix-Collection/Android-6.0-packages/blob/master/code/services/Telephony/src/com/sprd/videophone/vtmanager/VTManager.java
Github Open Source
Open Source
Apache-2.0
2,017
Android-6.0-packages
Phenix-Collection
Java
Code
2,428
8,517
package com.sprd.videophone.vtmanager; import java.io.BufferedInputStream; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.lang.ref.WeakReference; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.List; imp...
36,921
https://github.com/ShellsOfSilver/SkakunWebYii2/blob/master/models/Tag.php
Github Open Source
Open Source
BSD-3-Clause
2,019
SkakunWebYii2
ShellsOfSilver
PHP
Code
128
465
<?php namespace app\models; use Yii; use yii\data\Pagination; /** * This is the model class for table "tag". * * @property int $id * @property string $title * * @property ArticleTag[] $articleTags */ class Tag extends \yii\db\ActiveRecord { /** * {@inheritdoc} */ public static function table...
50,165
https://github.com/DaijobuDes/daijobuudes-sharp/blob/master/Modules/Command.cs
Github Open Source
Open Source
MIT
null
daijobuudes-sharp
DaijobuDes
C#
Code
37
129
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Discord.Commands; using Discord.WebSocket; namespace daijobuudes_sharp.Modules { public class Commands : ModuleBase<SocketCommandContext> { [Command("ping")] public async T...
3,760
https://github.com/egraba/vbox_openbsd/blob/master/VirtualBox-5.0.0/src/VBox/ValidationKit/testboxscript/testboxscript.py
Github Open Source
Open Source
MIT
2,015
vbox_openbsd
egraba
Python
Code
437
1,101
#!/usr/bin/env python # -*- coding: utf-8 -*- # $Id: testboxscript.py $ """ TestBox Script Wrapper. This script aimes at respawning the Test Box Script when it terminates abnormally or due to an UPGRADE request. """ __copyright__ = \ """ Copyright (C) 2012-2015 Oracle Corporation This file is part of VirtualBox Ope...
28,621
https://github.com/pulumi/pulumi-gcp/blob/master/sdk/java/src/main/java/com/pulumi/gcp/compute/outputs/GetInstanceGroupResult.java
Github Open Source
Open Source
BSD-3-Clause, MPL-2.0, Apache-2.0
2,023
pulumi-gcp
pulumi
Java
Code
601
1,636
// *** WARNING: this file was generated by pulumi-java-gen. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** package com.pulumi.gcp.compute.outputs; import com.pulumi.core.annotations.CustomType; import com.pulumi.gcp.compute.outputs.GetInstanceGroupNamedPort; import java.lang.Int...
40,057
https://github.com/YaoApp/xgen-next/blob/master/packages/app/types/locale/login.ts
Github Open Source
Open Source
Apache-2.0
2,022
xgen-next
YaoApp
TypeScript
Code
26
80
export default interface Login { title: string user_login_tip: string admin_login_tip: string no_entry: string auth_lark_err: string form: { validate: { email: string mobile: string } } }
45,966
https://github.com/chrissicool/l4openbsd/blob/master/usr.sbin/bind/lib/dns/callbacks.c
Github Open Source
Open Source
ISC
2,011
l4openbsd
chrissicool
C
Code
315
1,062
/* * Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 1999-2001 Internet Software Consortium. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permissio...
44,562
https://github.com/francis-pouatcha/adcom/blob/master/adcom/adbnsptnr.server/src/main/java/org/adorsys/adbnsptnr/rest/BpCtgryOfPtnrEndpoint.java
Github Open Source
Open Source
Apache-2.0
null
adcom
francis-pouatcha
Java
Code
419
2,150
package org.adorsys.adbnsptnr.rest; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.List; import javax.ejb.Stateless; import javax.ejb.TransactionAttribute; import javax.ejb.TransactionAttributeType; import javax.inject.Inject; import javax.persistence.metamodel.SingularAttribute; import ...
11,206
https://github.com/Tavi3h/LeetCode_3rd/blob/master/src/main/java/pers/tavish/leetcode/easy/BinaryTreeLevelOrderTraversalII.java
Github Open Source
Open Source
MIT
null
LeetCode_3rd
Tavi3h
Java
Code
146
441
package pers.tavish.leetcode.easy; /* Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root). For example: Given binary tree [3,9,20,null,null,15,7], 3 / \ 9 20 / \ 15 7 return its bottom-up level order trav...
4,848
https://github.com/internet-computer/std/blob/master/src/Compare.mo
Github Open Source
Open Source
Apache-2.0
null
std
internet-computer
Modelica
Code
50
96
module { public type Cf<T> = (x : T, y : T) -> Int; public type Eq<T> = (x : T, y : T) -> Bool; public func toEq<T>(compare : Cf<T>) : Eq<T> = func (x : T, y : T) : Bool { compare(x, y) == 0; }; };
49,452
https://github.com/locvfx/FriendlyCashFlow/blob/master/srcs/ServerApi/Import/API.Categories.cs
Github Open Source
Open Source
MIT
2,021
FriendlyCashFlow
locvfx
C#
Code
357
1,188
using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace FriendlyCashFlow.API.Import { partial class ImportService { internal async Task<ActionResult<bool>> CreateCategoriesAsync(ImportVM value) { try ...
31,509
https://github.com/atcult/mod-marccat-dev/blob/master/src/main/java/org/folio/marccat/business/common/PersistentObjectWithView.java
Github Open Source
Open Source
Apache-2.0
null
mod-marccat-dev
atcult
Java
Code
46
129
/* * (c) LibriCore * * Created on Aug 25, 2004 * * PersistentObjectWithView.java */ package org.folio.marccat.business.common; /** * @author paulm * @version $Revision: 1.2 $, $Date: 2005/12/12 12:54:37 $ * @since 1.0 */ public interface PersistentObjectWithView extends Persistence { String getUserViewStr...
3,892
https://github.com/gowrisankar22/service-fabrik-broker/blob/master/broker/applications/operators/src/restore-operator/DefaultRestoreOperator.js
Github Open Source
Open Source
Apache-2.0
2,021
service-fabrik-broker
gowrisankar22
JavaScript
Code
168
750
'use strict'; const Promise = require('bluebird'); const logger = require('@sf/logger'); const { apiServerClient } = require('@sf/eventmesh'); const { catalog } = require('@sf/models'); const { CONST, commonFunctions: { buildErrorJson } } = require('@sf/common-utils'); const BaseOperator = require('../BaseOp...
2,342
https://github.com/tzavidas/step-tutorial/blob/master/portfolio/src/main/java/com/google/sps/data/CommentBuilderImplementationDatastore.java
Github Open Source
Open Source
Apache-2.0
2,020
step-tutorial
tzavidas
Java
Code
83
306
package com.google.sps.data; import com.google.appengine.api.datastore.DatastoreService; import com.google.appengine.api.datastore.Entity; import java.lang.UnsupportedOperationException; public class CommentBuilderImplementationDatastore implements CommentBuilderImplementation { private DatastoreService datastor...
14,745
https://github.com/nexxt-intelligence/simalign/blob/master/scripts/visualize.py
Github Open Source
Open Source
MIT
2,022
simalign
nexxt-intelligence
Python
Code
397
1,327
import matplotlib.pyplot as plt import numpy as np from typing import List, Text, Tuple def line2matrix(line: Text, n: int, m: int) -> Tuple[np.ndarray, np.ndarray]: ''' converts alignemnt given in the format "0-1 3p4 5-6" to alignment matrices n, m: maximum length of the involved sentences (i.e., dimensi...
49,365
https://github.com/shadowkrusha/jin/blob/master/sequence.go
Github Open Source
Open Source
MIT
null
jin
shadowkrusha
Go
Code
104
305
package jin type sequance struct { list []int index int length int } func makeSeq(length int) *sequance { s := sequance{list: make([]int, length), index: 0, length: length} return &s } func (s *sequance) push(element int) { if s.index > s.length-1 { newList := make([]int, s.length+4) copy(newList, s.lis...
17,376
https://github.com/Coffeekraken/coffeekraken/blob/master/packages/tools/sugar/src/shared/sugar/sanitizeSugarJson.ts
Github Open Source
Open Source
MIT
null
coffeekraken
Coffeekraken
TypeScript
Code
125
342
/** * @name sanitizeSugarJson * @namespace node.sugar * @type Function * @platform js * @platform ts * @platform node * @status beta * * This function allows you to sanitize a sugarJson JSON to be sure you'll get * the same structure everytime...
34,912
https://github.com/hitergelei/ml_tools/blob/master/ml_tools/utils/utils.py
Github Open Source
Open Source
MIT
2,019
ml_tools
hitergelei
Python
Code
268
1,000
import os from ..base import np,sp from scipy.stats import spearmanr def is_notebook(): from IPython import get_ipython try: shell = get_ipython().__class__.__name__ if shell == 'ZMQInteractiveShell': return True # Jupyter notebook or qtconsole elif shell == 'TerminalInter...
50,425
https://github.com/MyJetWallet/Service.Bonus.Company/blob/master/src/Service.BonusCampaign.Postgres/Migrations/20211201131641_version_12.cs
Github Open Source
Open Source
MIT
null
Service.Bonus.Company
MyJetWallet
C#
Code
84
368
using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Service.BonusCampaign.Postgres.Migrations { public partial class version_12 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.RenameColumn( name...
24,823
https://github.com/DappStarter/capable-ragudi/blob/master/truffle-config.js
Github Open Source
Open Source
MIT
2,020
capable-ragudi
DappStarter
JavaScript
Code
95
668
require('@babel/register'); ({ ignore: /node_modules/ }); require('@babel/polyfill'); const HDWalletProvider = require('@truffle/hdwallet-provider'); let mnemonic = 'gloom argue blue shadow shock note sister coconut install cash equal genius'; let testAccounts = [ "0x2294b57fde91a41bea349cb63a86a2e9fb2cc8d650f00...
13,057
https://github.com/liman4u/hifadhi/blob/master/hifadhi/app/src/main/java/com/example/locateit/ShareLocationActivity.java
Github Open Source
Open Source
MIT
2,016
hifadhi
liman4u
Java
Code
449
1,555
package com.example.locateit; import android.app.Activity; import android.app.ProgressDialog; import android.content.Context; import android.content.Intent; import android.os.AsyncTask; import android.os.Bundle; import android.telephony.SmsManager; import android.view.View; import android.view.Window; import android.w...
3,289
https://github.com/kotest/kotest/blob/master/kotest-assertions/kotest-assertions-shared/src/commonMain/kotlin/io/kotest/data/forAll2.kt
Github Open Source
Open Source
Apache-2.0
2,023
kotest
kotest
Kotlin
Code
196
593
package io.kotest.data import io.kotest.mpp.reflection import kotlin.jvm.JvmName suspend fun <A, B> forAll(vararg rows: Row2<A, B>, testfn: suspend (A, B) -> Unit) { val params = reflection.paramNames(testfn) ?: emptyList<String>() val paramA = params.getOrElse(0) { "a" } val paramB = params.getOrElse(1) { "...
45,645
https://github.com/wcnvessies/BAP/blob/master/LTP.Desktop/Sections UI/TrainSectionBehavior.Designer.cs
Github Open Source
Open Source
MIT
2,020
BAP
wcnvessies
C#
Code
482
2,308
namespace LegoTrainProject.Sections_UI { partial class TrainSectionBehavior { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true ...
48,879
https://github.com/NotDiscordOfficial/Fortnite_SDK/blob/master/TextStyle_BurbankSmall_L_DarkBlue_classes.h
Github Open Source
Open Source
MIT
null
Fortnite_SDK
NotDiscordOfficial
C
Code
14
83
// BlueprintGeneratedClass TextStyle_BurbankSmall_L_DarkBlue.TextStyle_BurbankSmall_L_DarkBlue_C // Size: 0x150 (Inherited: 0x150) struct UTextStyle_BurbankSmall_L_DarkBlue_C : UTextStyle-BaseParent_C { };
8,436
https://github.com/asm2025/asm/blob/master/Framework/essentialMix.Data.Entity/Migrations/CreateOrMigrateDatabase.cs
Github Open Source
Open Source
MIT
null
asm
asm2025
C#
Code
134
491
using System; using System.Data.Entity; using System.Data.Entity.Infrastructure; using System.Data.Entity.Migrations; using System.Linq; using JetBrains.Annotations; namespace essentialMix.Data.Entity.Migrations { public class CreateOrMigrateDatabase<TContext, TConfiguration> : CreateDatabaseIfNotExists<TContext>, ID...
28,897
https://github.com/ajoluvya/rent_manager/blob/master/application/views/payments/view.php
Github Open Source
Open Source
MIT
null
rent_manager
ajoluvya
PHP
Code
438
1,700
<div class="col-lg-12"> <div class="panel panel-default"> <div class="panel-body"> <div class="row"> <div class="col-lg-12"> <h2 class="page-header"> <i class="fa fa-house"></i> <?php echo $house['estate_name']; ?> ...
744
https://github.com/ldts/optee_os-1/blob/master/core/lib/libcryptoengine/tee_pka_provider.h
Github Open Source
Open Source
BSD-2-Clause
null
optee_os-1
ldts
C
Code
43
179
/* SPDX-License-Identifier: BSD-2-Clause */ /* * Copyright (c) 2015-2016, Renesas Electronics Corporation */ #ifndef TEE_PKA_PROVIDER_H #define TEE_PKA_PROVIDER_H #include <crypto/crypto.h> /******************************************************************************/ /* Public Function Prototypes ...
43,855
https://github.com/schusjon/rf_module_chain/blob/master/module_termination/library/kicad-library-master/mods/RN4020.kicad_mod
Github Open Source
Open Source
MIT
2,019
rf_module_chain
schusjon
KiCad Layout
Code
694
2,182
(module RN4020 (layer F.Cu) (tedit 56A7DC63) (fp_text reference REF** (at 5.842 -8.128) (layer F.SilkS) (effects (font (size 0.6 0.6) (thickness 0.1))) ) (fp_text value RN4020 (at 5.588 -6.35) (layer F.Fab) (effects (font (size 0.6 0.6) (thickness 0.1))) ) (fp_line (start 10.414 -13.6525) (end 11.2395...
22,894
https://github.com/brycelelbach/nt2/blob/master/modules/euler/include/nt2/toolbox/euler/function/simd/common/gamma.hpp
Github Open Source
Open Source
BSL-1.0
2,022
nt2
brycelelbach
C++
Code
504
2,122
////////////////////////////////////////////////////////////////////////////// /// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand /// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI /// /// Distributed under the Boost Software License, Version 1.0 /// ...
10,148
https://github.com/VirtualSensitive/ccn-bridge/blob/master/examples/events/assets/.gitignore
Github Open Source
Open Source
MIT
2,014
ccn-bridge
VirtualSensitive
Ignore List
Code
4
19
node_modules .sass-cache components sass/bourbon
34,996
https://github.com/ZooAtmosphereGroup/HelloPackages/blob/master/packages/w3af/w3af/plugins/tests/evasion/test_xurllib_integration.py
Github Open Source
Open Source
Apache-2.0
2,019
HelloPackages
ZooAtmosphereGroup
Python
Code
163
418
""" test_xurllib_integration.py Copyright 2012 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2 of the License. w3af is distributed in ...
26,225
https://github.com/Lambda-School-Labs/labs9-business-reviews/blob/master/frontend/src/components/NavBar.js
Github Open Source
Open Source
MIT
2,019
labs9-business-reviews
Lambda-School-Labs
JavaScript
Code
366
1,435
import React from 'react'; import styled from 'styled-components'; import axios from 'axios'; import { backendLink } from '../assets/config'; import { Link } from 'react-router-dom'; import logo from '../assets/logo.png'; const NavBarStyles = styled.div` display: flex; justify-content: space-between; align-items: c...
13,623
https://github.com/victor90braz/ISDI-CODERS-2022/blob/master/staff/victor-braz/pasapalabra/-pasapalabra.js
Github Open Source
Open Source
MIT
null
ISDI-CODERS-2022
victor90braz
JavaScript
Code
799
1,951
const questions = [ { letter: "a", answer: "abducir", status: 0, question: "CON LA A. Dicho de una supuesta criatura extraterrestre: Apoderarse de alguien"}, { letter: "b", answer: "bingo", status: 0, question: "CON LA B. Juego que ha sacado de quicio a todos los 'Skylabers' en las sesiones de precurso"}, ...
33,081
https://github.com/Jz1116/cs4400/blob/master/server/routes/index.js
Github Open Source
Open Source
MIT
null
cs4400
Jz1116
JavaScript
Code
90
260
const express = require("express"); const router = express.Router(); const result = require("./result"); const tester = require("./tester"); const site = require("./site"); const appt = require("./appt"); const test = require("./test"); const pool = require("./pool"); const student = require("./student"); const employ...
23,776
https://github.com/lfkeitel/event-driven-servers/blob/master/ftpd/h_site_group.c
Github Open Source
Open Source
BSD-2-Clause
2,021
event-driven-servers
lfkeitel
C
Code
115
399
/* * h_site_group.c * * (C)1998-2011 by Marc Huber <Marc.Huber@web.de> * All rights reserved. * * $Id: h_site_group.c,v 1.11 2015/03/14 06:11:26 marc Exp marc $ * */ #include "headers.h" static const char rcsid[] __attribute__ ((used)) = "$Id: h_site_group.c,v 1.11 2015/03/14 06:11:26 marc Exp marc $"; void ...
12,699
https://github.com/jkauze/fazt-api/blob/master/src/scripts/projects/project.seed.ts
Github Open Source
Open Source
MIT
null
fazt-api
jkauze
TypeScript
Code
74
225
// Copyright 2020 Fazt Community ~ All rights reserved. MIT license. import mongoose from 'mongoose'; import { MONGODB_URI } from '../../config'; import Project from '../../models/Project'; import MockupProject from '../data/project.json'; const run = async () => { try { await mongoose.connect(MONGODB_URI, { ...
49,281
https://github.com/jcurl/RJCP.DLL.Log/blob/master/TraceReader.Dlt/DltTraceReader/Dlt/Args/DltArgError.cs
Github Open Source
Open Source
MIT
2,022
RJCP.DLL.Log
jcurl
C#
Code
258
633
namespace RJCP.Diagnostics.Log.Dlt.Args { using System.Text; /// <summary> /// This class represents a decoder error, with the message in the argument string. /// </summary> public class DltArgError : IDltArg { /// <summary> /// Initializes a new instance of the <see cref="DltA...
23,205
https://github.com/juan-cortes/ledger-live-desktop/blob/master/ui-lib/src/assets/icons/CubeLight.tsx
Github Open Source
Open Source
MIT
2,021
ledger-live-desktop
juan-cortes
TSX
Code
67
312
import * as React from "react"; type Props = { size?: number | string; color?: string; }; function CubeLight({ size = 16, color = "currentColor" }: Props): JSX.Element { return ( <svg width={size} height={size} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" ...
47,581
https://github.com/colin-lee/ngrinder/blob/master/ngrinder-controller/src/test/java/org/ngrinder/script/service/MockLocalScriptTestDriveService.java
Github Open Source
Open Source
Apache-2.0
2,022
ngrinder
colin-lee
Java
Code
27
115
package org.ngrinder.script.service; import net.grinder.engine.agent.LocalScriptTestDriveService; import java.io.File; public class MockLocalScriptTestDriveService extends LocalScriptTestDriveService { public MockLocalScriptTestDriveService(File requiredLibraryDirectory) { super(requiredLibraryDirectory); } @...
36,124
https://github.com/Jeswang/Distribution/blob/master/m/material-ui__core/src/main/scala/typings/materialUiCore/formLabelFormLabelMod/package.scala
Github Open Source
Open Source
MIT
2,020
Distribution
Jeswang
Scala
Code
17
87
package typings.materialUiCore import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation._ package object formLabelFormLabelMod { type FormLabelBaseProps = typings.react.mod.LabelHTMLAttributes[typings.std.HTMLLabelElement] }
39,208
https://github.com/jekkogray/Photo-Composer/blob/master/PictureComposer/app/src/main/java/com/example/picturecomposer/util/ExpHist.java
Github Open Source
Open Source
MIT
2,021
Photo-Composer
jekkogray
Java
Code
296
821
package com.example.picturecomposer.util; import android.graphics.Bitmap; import org.opencv.core.Core; import org.opencv.core.Mat; import org.opencv.core.MatOfFloat; import org.opencv.core.MatOfInt; import org.opencv.imgproc.Imgproc; import org.opencv.android.Utils; import java.util.ArrayList; import java.util.List...
14,934
https://github.com/aokumasan/nifcloud-sdk-go-v2/blob/master/nifcloud/endpoints/defaults.go
Github Open Source
Open Source
Apache-2.0
2,020
nifcloud-sdk-go-v2
aokumasan
Go
Code
361
1,443
// Code generated by aws/endpoints/v3model_codegen.go. DO NOT EDIT. package endpoints import ( "regexp" ) // Partition identifiers const ( NifcloudPartitionID = "nifcloud" // NIFCLOUD Standard partition. ) // NIFCLOUD Standard partition's regions. const ( JpEast1RegionID = "jp-east-1" // jp-east-1. JpEast2Regio...
24,328
https://github.com/samkitano/samkitano/blob/master/resources/assets/sass/front/_variables.sass
Github Open Source
Open Source
MIT
null
samkitano
samkitano
Sass
Code
102
435
$vue-green: #4DBA87 !default $maincolor: #505050 !default $vue-blue: #35495E !default $laravel: #E74430 !default $laravel-light: #FB523B !default $php: #8993BE !default $teal: #336666 !default $twitter-blue: #1DA1F2 !default $svg-default: #777 !default $tag-default: #777 !default $algolia-blue: #46AEDA !default $hilite...
48,912
https://github.com/drewsp7/blog/blob/master/2014-01-30-founder-experience/API_scripts/create_dimension_degrees.py
Github Open Source
Open Source
MIT
2,017
blog
drewsp7
Python
Code
27
98
def create_dimension_degrees(cursor): cursor.execute('''CREATE TABLE dimension_degrees ( person_permalink text, person_name text, degree_type text, subject text, institution text, graduated_year int, graduated_month int, g...
15,220
https://github.com/antivanov/functional-typescript/blob/master/src/functional-roots/ntuples.js
Github Open Source
Open Source
MIT
null
functional-typescript
antivanov
JavaScript
Code
87
303
// "Lisp in C's Clothing" https://www.crockford.com/javascript/javascript.html // https://www.quora.com/Why-did-they-say-JavaScript-is-Lisp-in-Cs-clothing function uniqueNTuplesOf(elements, n) { function elementPairs(first, rest) { return rest.map(x => [ first ].concat(x)); } if (n == 1) { return element...
26,723
https://github.com/NateLaraMS/TestO/blob/master/src/Microsoft.Marketplace.SaaS/Generated/Models/SubscriptionStatusEnum.Serialization.cs
Github Open Source
Open Source
MIT
2,021
TestO
NateLaraMS
C#
Code
111
438
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; namespace Microsoft.Marketplace.SaaS.Models { internal static partial class SubscriptionStatusEnumExtensions { public static string ToSerialString(this...
44,998
https://github.com/pie-framework/pie-cli/blob/master/test/unit/apps/catalog/info-builder-test.js
Github Open Source
Open Source
ISC
2,020
pie-cli
pie-framework
JavaScript
Code
276
971
import { assert, match, spy, stub } from 'sinon'; import { expect } from 'chai'; import proxyquire from 'proxyquire'; describe('info-builder', () => { let mod, deps, gitJsInstance; beforeEach(() => { gitJsInstance = { revparse: stub().yields(null, 'REVPARSE'), tag: stub().yields(null, 'TAG') ...
33,398
https://github.com/alekar/hugs/blob/master/src/winhugs/installer/BlueZip/Structs.cpp
Github Open Source
Open Source
BSD-3-Clause
2,020
hugs
alekar
C++
Code
279
1,119
#include "BlueHead.h" #define Set16(pos, res) \ *((u16*) (&data[pos])) = res #define Set32(pos, res) \ *((u32*) (&data[pos])) = res #define Get16(pos) \ *((u16*) (&data[pos])) #define Get32(pos) \ *((u32*) (&data[pos])) void datCentral::ReadLocal(File f) { char data[ldatLocal]; //26 FileRead(f, data, ldatL...
24,883
https://github.com/Vibha111094/tf-transformers/blob/master/src/tf_transformers/data/ner_utils_sp.py
Github Open Source
Open Source
Apache-2.0
2,021
tf-transformers
Vibha111094
Python
Code
185
638
from tf_transformers.utils import fast_sp_alignment def get_tokens_labels(aligned_words, orig_to_new_index, label_tokens, sub_words_mapped, label_pad_token="[PAD]"): """ convert each sub word into labels If a word is split into multiple sub words, then first sub word is assigned with label and other s...
39,903
https://github.com/masums/react-spaces/blob/master/react-spaces/src/Globals/Utils.tsx
Github Open Source
Open Source
MIT
2,019
react-spaces
masums
TSX
Code
596
1,788
import * as React from 'react'; import { Resizable } from '../Resizable'; import { AnchorType, AllProps, IState, ISpaceContext, ISpaceTaker, AnchorToResizeTypeMap, ResizeType } from './Types'; export const getSizeString = (size: string | number) => typeof(size) === "string" ? size : `${size}px`; export const isFill...
36,671
https://github.com/ianramzy/old-code/blob/master/koch-curve/KochCurve.java
Github Open Source
Open Source
MIT
2,019
old-code
ianramzy
Java
Code
358
946
import java.applet.*; import javax.swing.*; import javax.swing.event.*; import java.awt.*; import java.awt.event.*; public class KochCurve extends JApplet// implements KeyEventDispatcher { TextField text; int n; public void init() { text = new TextField (10); JPanel panel = new JPa...
22,781
https://github.com/cityhunterplus/laravel-localization/blob/master/app/Http/routes.php
Github Open Source
Open Source
MIT
null
laravel-localization
cityhunterplus
PHP
Code
81
281
<?php /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond ...
15,135
https://github.com/hugofirth/taper/blob/master/src/test/scala/org/gdget/experimental/graph/TraversalPatternSummaryTestSuite.scala
Github Open Source
Open Source
Apache-2.0
null
taper
hugofirth
Scala
Code
210
563
/** contextual-stability * * Copyright (c) 2015 Hugo Firth * Email: <me@hugofirth.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/L...
434
https://github.com/MauricioRobayo/precio-interno-del-cafe/blob/master/src/parser/parsers/createParser.ts
Github Open Source
Open Source
MIT
null
precio-interno-del-cafe
MauricioRobayo
TypeScript
Code
130
364
import camelCase from "lodash/camelCase"; function defaultValueParser(value: string): number { return Number(value.replace(/,/g, "")); } export function createBaseParser( regExp: RegExp, valueParser = defaultValueParser ) { return function (content: string): ReturnType<typeof valueParser> { const match = ...
27,058
https://github.com/lepsta/goblin/blob/master/assertions.go
Github Open Source
Open Source
MIT
2,022
goblin
lepsta
Go
Code
295
614
package goblin import ( "fmt" "reflect" "strings" ) // Assertion represents a fact stated about a source object. It contains the source object and function to call type Assertion struct { src interface{} fail func(interface{}) } func objectsAreEqual(a, b interface{}) bool { if reflect.TypeOf(a) != reflect.Typ...
27,671
https://github.com/fortis201/dollarDonations-Braintree/blob/master/app/register/register.js
Github Open Source
Open Source
MIT
null
dollarDonations-Braintree
fortis201
JavaScript
Code
132
508
'use strict'; angular.module('myApp.register', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/register', { templateUrl: 'register/register.html', controller: 'registerCtrl' }); }]) .factory('registerFactory', function ($http, $location) { var factory = {}; fact...
7,715
https://github.com/srijannnd/Box-Store-Api/blob/master/api/methods.py
Github Open Source
Open Source
MIT
null
Box-Store-Api
srijannnd
Python
Code
267
1,112
from api import helpers from api.models import Box, User import jwt from api.filters import box_filters, staff_user_params, user_params def create_user(data): data['password'] = helpers.convert_password_to_md5(data['password']) try: if User.objects.filter(username=data['username']).exists(): ...
22,271
https://github.com/iwater/leptonica/blob/master/prog/recogtest3.c
Github Open Source
Open Source
BSD-2-Clause
2,019
leptonica
iwater
C
Code
890
2,188
/*====================================================================* - Copyright (C) 2001 Leptonica. All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source c...
34,593
https://github.com/jedhsu/fractal/blob/master/src/fractal/world/fractum/placement/_op/light.py
Github Open Source
Open Source
MIT
null
fractal
jedhsu
Python
Code
30
51
""" Light Return the intermediate reward obtained by the white player after the last transition step. The result is undetermined when called at an initial state. """ function white_reward end
9,160
https://github.com/hello-alf/reservas/blob/master/reservas/bookings/migrations/0003_booking_room.py
Github Open Source
Open Source
MIT
null
reservas
hello-alf
Python
Code
37
172
# Generated by Django 3.2.12 on 2022-03-23 13:25 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('rooms', '0001_initial'), ('bookings', '0002_auto_20220323_1304'), ] operations = [ migrations.AddF...
28,939
https://github.com/josuesasilva/bazel-app-swift-react/blob/master/app/RNView.h
Github Open Source
Open Source
MIT
2,021
bazel-app-swift-react
josuesasilva
C
Code
34
108
// // RNView.h // BazelAppSwift // // Created by Josué Santos on 09/02/20. // #ifndef RNView_h #define RNView_h #import <UIKit/UIKit.h> @interface RNView : UIView - (UIView *) rootView:(NSString *)moduleName; @end #endif /* RNView_h */
50,868
https://github.com/Enigmatis/polaris-nest-example/blob/master/src/graphql/services/author.service.ts
Github Open Source
Open Source
MIT
null
polaris-nest-example
Enigmatis
TypeScript
Code
160
490
import { Inject, Injectable, Scope } from "@nestjs/common"; import { Like, PolarisConnection, PolarisRepository, PolarisGraphQLContext, DeleteResult, } from "@enigmatis/polaris-core"; import { CONTEXT } from "@nestjs/graphql"; import { Author } from "../../dal/models/author"; import { InjectConnection, Inject...
26,830
https://github.com/dolovnyak/fractals/blob/master/srcs/julia2d/julia2d_initialization.c
Github Open Source
Open Source
Unlicense
null
fractals
dolovnyak
C
Code
106
389
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* initialization_mandelbrot_2d.c :+: :+: :+: ...
34,654
https://github.com/iproduct/coursego/blob/master/08-concurrency/buffered-channel-semaphor2/buffered-channel-semaphor2.go
Github Open Source
Open Source
Apache-2.0
2,022
coursego
iproduct
Go
Code
247
867
package main import ( "context" "fmt" concurrentset "github.com/iproduct/coursego/06-coroutines-channels/concurrent-set" "github.com/iproduct/coursego/06-coroutines-channels/semaphor" "math/rand" "runtime" "sync/atomic" "time" ) const MAX_GOROUTINES = 10 // Fake a long and difficult work. func DoWork(url str...
24,997
https://github.com/nguyenanhnhan/olympiaschool/blob/master/resources/views/be/evaluation/chart_search.blade.php
Github Open Source
Open Source
MIT
null
olympiaschool
nguyenanhnhan
PHP
Code
162
768
@extends('be/layouts/index') @section('title') add new teacher @endsection @section('style') <style> .datepicker table tr td.range, .datepicker table tr td.range:hover, .datepicker table tr td.range.disabled, .datepicker table tr td.range.disabled:hover{ background: #90c2ff !important; }...
41,956
https://github.com/fellowcraft/wp/blob/master/CSD/RND9cCSD2-1.csd
Github Open Source
Open Source
Apache-2.0
2,015
wp
fellowcraft
Csound Document
Code
20,000
54,273
<CsoundSynthesizer> <CsOptions> </CsOptions> <CsInstruments> ;sr = 48000 ;kr = 4800 sr = 44100 kr = 4410 ksmps = 10 nchnls = 2 galeft init 0 garight init 0 ; gklfo init 0 instr 2 ; ----- gklfo oscil3 30, 0.005, 1 endin instr 1 ; ----- idur = p3 ; total duration of event iamp = ampdb(p4*0.80); amplitude in dB: 0-96 ifre...
30,801
https://github.com/alexmpereira/clean-arch-pokemon/blob/master/src/Player/UseCases/Contracts/PlayerRepository.php
Github Open Source
Open Source
MIT
2,022
clean-arch-pokemon
alexmpereira
PHP
Code
34
112
<?php declare(strict_types=1); namespace App\Player\UseCases\Contracts; use App\Player\Domain\Player; interface PlayerRepository { public function get(int $pk): ?Player; public function debitMoney(Player $player, float $money): bool; public function addIntoBag(Player $player, array $items): bool; pu...
10,241
https://github.com/JXHZY/web_php_laravel/blob/master/laravelFirst/app/Http/Controllers/CustomerController.php
Github Open Source
Open Source
MIT
2,016
web_php_laravel
JXHZY
PHP
Code
76
240
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\Customer as Customer; // Way1: // class CustomerController extends Controller // { // // // public function customer($id){ // $customer = Customer::find($id); // echo $customer->name."<br/>"; // echo '...
33,677
https://github.com/hyglvy/Sparta/blob/master/Sparta/token_stealing_module.cpp
Github Open Source
Open Source
MIT
2,021
Sparta
hyglvy
C++
Code
689
2,872
#include "token_stealing_module.h" #include "vmx.h" #include "logging.h" typedef enum _SYSTEM_INFORMATION_CLASS { SystemBasicInformation = 0, SystemProcessorInformation = 1, SystemPerformanceInformation = 2, SystemTimeOfDayInformation = 3, SystemPathInformation = 4, SystemProcessInformation = 5...
8,127
https://github.com/loevgaard/linkmobility-php-sdk/blob/master/src/GSM7/GSM7.php
Github Open Source
Open Source
MIT
null
linkmobility-php-sdk
loevgaard
PHP
Code
224
638
<?php declare(strict_types=1); namespace Loevgaard\Linkmobility\GSM7; /** * See character set here * * @link https://en.wikipedia.org/wiki/GSM_03.38 */ class GSM7 { // notice that we did not add the ESC, FF, SS2, and CR2 characters const ALPHABET = ["\n", "\r", ' ', '_', '-', ',', ';', ':', '!', '¡', '?', ...
15,508
https://github.com/schanne/osmdroid/blob/master/osmdroid-third-party/src/main/java/org/osmdroid/google/overlay/GoogleTilesOverlay.java
Github Open Source
Open Source
Apache-2.0
null
osmdroid
schanne
Java
Code
588
1,903
package org.osmdroid.google.overlay; import org.osmdroid.tileprovider.MapTileProviderBase; import org.osmdroid.util.MapTileIndex; import org.osmdroid.util.MyMath; import org.osmdroid.views.util.Mercator; import android.content.Context; import android.graphics.Canvas; import android.graphics.Paint; import android.grap...
6,414
https://github.com/AlbertoTorre/v-toaster-evolution/blob/master/demo/App.vue
Github Open Source
Open Source
MIT
null
v-toaster-evolution
AlbertoTorre
Vue
Code
146
785
<template lang="pug"> div.toaster-demo(style='text-align: center;') p textarea(v-model='message', style='width:100%;') p HTML: select(v-model='html',:class='{["v-toast-"+theme]: true}') option(value='', selected="") false option(value='true') true span MARK: select(v-model='mark',:class=...
11,258
https://github.com/ThBreuer/EmbSysLib/blob/master/Example/Src/Board/STM32-Nucleo32-L432/config.h
Github Open Source
Open Source
MIT
2,023
EmbSysLib
ThBreuer
C++
Code
146
482
//******************************************************************* /*! \file config.h \author Thomas Breuer \date 23.02.20232 \brief Board specific configuration */ //******************************************************************* /* Board: STM32-Nucleo32-L432 \see STM32-Nucleo32-L432/board_pinout.txt ...
21,917
https://github.com/sergeiivankov/crypto-bot-api/blob/master/lib/classes/ClientEmitter.d.ts
Github Open Source
Open Source
MIT
2,022
crypto-bot-api
sergeiivankov
TypeScript
Code
508
983
/// <reference types="node" /> import { ListenOptions } from 'net'; import { IncomingMessage } from 'http'; import { ServerOptions } from 'https'; import Client from './Client'; import { Invoice } from '../helpers/casts'; import { Middleware } from '../helpers/utils'; /** * Check webhook data signature * * @param ap...
10,187
https://github.com/egillanton/samromur-asr/blob/master/s5_subwords/path.sh
Github Open Source
Open Source
Apache-2.0, CC-BY-4.0
2,021
samromur-asr
egillanton
Shell
Code
19
430
#!/usr/bin/env bash #Kaldi paths export KALDI_ROOT=/home/derik/work/kaldi export PATH=$KALDI_ROOT/src/ivectorbin:$PWD/utils/:$KALDI_ROOT/src/bin:$KALDI_ROOT/src/online2bin:$KALDI_ROOT/src/onlinebin:$KALDI_ROOT/tools/openfst/bin:$KALDI_ROOT/src/fstbin/:$KALDI_ROOT/src/gmmbin/:$KALDI_ROOT/src/featbin/:$KALDI_ROOT/src/lm...
45,386
https://github.com/sue445/engine_example/blob/master/app/assets/config/engine_example_manifest.js
Github Open Source
Open Source
MIT
null
engine_example
sue445
JavaScript
Code
8
35
//= link_directory ../javascripts/engine_example .js //= link_directory ../stylesheets/engine_example .css
13,960
https://github.com/LittleLightForDestiny/bungie-api-dart/blob/master/lib/api/tokens.dart
Github Open Source
Open Source
MIT, BSD-3-Clause
2,021
bungie-api-dart
LittleLightForDestiny
Dart
Code
2
11
export '../src/api/tokens.dart';
48,393
https://github.com/jsaltermedialab/go-gdpr/blob/master/vendorconsent/bitfield.go
Github Open Source
Open Source
Apache-2.0
2,020
go-gdpr
jsaltermedialab
Go
Code
225
538
package vendorconsent import "fmt" func parseBitField(data consentMetadata) (*consentBitField, error) { vendorBitsRequired := data.MaxVendorID() // BitFields start at bit 173. This means the last three bits of byte 21 are part of the bitfield. // In this case "others" will never be used, and we don't risk an inde...
42,958
https://github.com/fcsm-andrei/quadratic-equation/blob/master/src/index.js
Github Open Source
Open Source
MIT
null
quadratic-equation
fcsm-andrei
JavaScript
Code
90
279
module.exports = function solveEquation(equation) { var arr = equation.split(" "); var a, b, c, D, x1, x2; //if(arr.length == 9){ a = Number(arr[0]); b = Number(arr[3] + arr[4]); c = Number(arr[7] + arr[8]); D =b*b -4*a*c; if(D > 0){ x1 =(-b - Math.sqrt(D)) / (2*a); x2 = (-b + Math.s...
41,244
https://github.com/stikjs/stik-core/blob/master/src/controller.js
Github Open Source
Open Source
MIT
2,014
stik-core
stikjs
JavaScript
Code
90
220
(function( stik ){ stik.createController = function controller( spec ){ if ( !spec.name ) { throw "Stik: Controller needs a name"; } spec.actions = {}; spec.action = function action( actionName, executionUnit ){ var newAction = stik.action({ name: actionName, controller: spec.name,...
11,657
https://github.com/komalsingh54/Hacker-News/blob/master/src/redux/reducers/index.js
Github Open Source
Open Source
MIT
null
Hacker-News
komalsingh54
JavaScript
Code
24
61
import { combineReducers } from 'redux'; import home from './home'; import error from './ErrorReucer'; const reduxState = combineReducers({ home, error, }); export default reduxState;
19,735
https://github.com/abitmore/mandel-fc/blob/master/include/fc/mock_time.hpp
Github Open Source
Open Source
MIT
2,022
mandel-fc
abitmore
C++
Code
241
603
#pragma once #include <fc/time.hpp> #include <boost/asio/deadline_timer.hpp> namespace fc { /// mock out fc::time_point::now() and provide a mock deadline timer class mock_time_traits { typedef boost::asio::deadline_timer::traits_type source_traits; public: typedef source_traits::time_type time_type; typede...
2,967
https://github.com/nickPaterakis/Booking-Microservices/blob/master/booking-common/booking-api/src/main/java/com/booking/bookingapi/property/Dto/PropertyDetailsDto.java
Github Open Source
Open Source
MIT
null
Booking-Microservices
nickPaterakis
Java
Code
128
497
package com.booking.bookingapi.property.Dto; import com.booking.bookingapi.validationgroup.CreateProperty; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.*; import lombok.experimental.Accessors; import org.hibernate.validator.constraints...
15,786
https://github.com/francescomessina/polycube/blob/master/src/services/pcn-helloworld/datamodel/helloworld.yang
Github Open Source
Open Source
ECL-2.0, Apache-2.0
2,022
polycube
francescomessina
YANG
Code
77
287
module helloworld { yang-version 1.1; namespace "http://polycube.network/helloworld"; prefix "helloworld"; import polycube-base { prefix "polycube-base"; } import polycube-standard-base { prefix "polycube-standard-base"; } organization "Polycube open source project"; description "YANG data model for the...
39,893
https://github.com/rubydongle/libraunrar4j/blob/master/libraunrar4j/src/main/java/ruby/blacktech/libraunrar4j/core/SuperUnrarContext.java
Github Open Source
Open Source
MIT
null
libraunrar4j
rubydongle
Java
Code
51
195
package ruby.blacktech.libraunrar4j.core; import java.util.concurrent.ExecutorService; public class SuperUnrarContext { private class UnRarRunnable implements Runnable { UnrarTask mUnrarTask; UnRarRunnable(UnrarTask task) { mUnrarTask = task; } @Override publi...
3,520
https://github.com/ytetsuro/ord9busfare/blob/master/src/Parser/PassengerParser.php
Github Open Source
Open Source
MIT
null
ord9busfare
ytetsuro
PHP
Code
31
95
<?php namespace NagoyaPHP\Parser; /** * 乗客パーサー */ interface PassengerParser { /** * 乗客リストを取得する * * @param string $str * * @return array Passenger[] */ public function parsePassagnerList(string $str) : array; }
9,994
https://github.com/zuccoi/AsyncOperation/blob/master/AsyncOperation/AsyncOperationTests/AsyncBlockOperationTests.swift
Github Open Source
Open Source
MIT
null
AsyncOperation
zuccoi
Swift
Code
295
1,050
/* AsyncBlockOperationTests.swift Copyright ©2019 Kazuki Miura. All rights reserved. */ import XCTest import AsyncOperation class AsyncBlockOperationTests: XCTestCase { enum Error: Swift.Error { case test } func test_complete() { let expDesc = "\(type(of: self)).\(#function) \(#line)" let exp = expe...
22,523
https://github.com/cyber-meow/Noisy_active_query/blob/master/mnist/mnist_heuristic.py
Github Open Source
Open Source
MIT
2,019
Noisy_active_query
cyber-meow
Python
Code
606
2,577
import torch import torch.nn as nn import torch.utils.data as data import torchvision import torchvision.transforms as transforms from torch.autograd import Variable import argparse import matplotlib.pyplot as plt import numpy as np from collections import OrderedDict from scipy.spatial import distance import dataset...
17,228
https://github.com/TeamSPoon/logicmoo_nlu/blob/master/prolog/logicmoo_nlu/e2c/e2c_verb_phrase.pl
Github Open Source
Open Source
MIT
2,020
logicmoo_nlu
TeamSPoon
Perl
Code
1,738
6,993
% ================================================================= % Verb Phrase % ================================================================= verb_phrase(Frame, X, Out) --> dcg_thru_2args(verb_pre_mod(X, Frame), LF, Mid), verb_phrase1(Frame, X, LF), dcg_thru_2args(verb_phrase_post_mod(X, Frame), Mid, Out...
29,912
https://github.com/aiedward/Annif-corpora/blob/master/vocab/yso-fi.tsv
Github Open Source
Open Source
CC-BY-4.0
2,020
Annif-corpora
aiedward
TSV
Code
20,000
220,395
<http://www.yso.fi/onto/yso/p10> ympäristötietoisuus <http://www.yso.fi/onto/yso/p100> elatusturva <http://www.yso.fi/onto/yso/p1000> taidekäsityö <http://www.yso.fi/onto/yso/p10000> palvelutaso <http://www.yso.fi/onto/yso/p10001> palveluala <http://www.yso.fi/onto/yso/p10002> kreikankielinen kirjallisuus <http://www.y...
14,458