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/ericblade/ProjectExodus/blob/master/sampleScene/Models/templedemo-parts.fbx.meta
Github Open Source
Open Source
BSD-3-Clause
2,019
ProjectExodus
ericblade
Unity3D Asset
Code
562
2,411
fileFormatVersion: 2 guid: d04ca428a5d158743a6573505ea58cf8 ModelImporter: serializedVersion: 22 fileIDToRecycleName: 100000: AltarCover.001 100002: Carpet.001 100004: Cube.016 100006: Cube.017 100008: Cube.018 100010: Cube.019 100012: Cube.020 100014: FloorTile.050 100016: Icosp...
13,065
https://github.com/timiyay/rails-starter/blob/master/rails_root/Gemfile
Github Open Source
Open Source
MIT
2,015
rails-starter
timiyay
Ruby
Code
425
1,317
source 'https://rubygems.org' ruby '2.2.4' # ----------------------- # APP FRAMEWORK & PLUGINS # ----------------------- gem 'rails', '~> 4.2.3' gem 'bcrypt' # enable bcrypt hashing for passwords gem 'slim-rails' gem 'unf' # unicode normalization form # JSON API plugins # gem 'active_model_serializers' # optimisati...
6,026
https://github.com/kimi0230/gin_graphql/blob/master/graph/generated/generated.go
Github Open Source
Open Source
Apache-2.0
null
gin_graphql
kimi0230
Go
Code
12,683
44,408
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. package generated import ( "bytes" "context" "errors" "fmt" "gin_graphql/app/models" "gin_graphql/graph/model" "strconv" "sync" "sync/atomic" "time" "github.com/99designs/gqlgen/graphql" "github.com/99designs/gqlgen/graphql/introspection" gq...
38,688
https://github.com/kopalam/alienz/blob/master/models/score/ScoreLog.php
Github Open Source
Open Source
BSD-3-Clause
2,018
alienz
kopalam
PHP
Code
137
369
<?php namespace app\models\score; use Yii; /** * This is the model class for table "score_log". * * @property int $id * @property string $cauth_iden * @property int $uid * @property int $score * @property string $types 类型 如 签到 邀请 购买 * @property int $dates * @property int $status * @property int $kinds * @...
8,612
https://github.com/Breakerland/UltimateStacker/blob/master/src/main/java/com/songoda/ultimatestacker/database/DataManager.java
Github Open Source
Open Source
LicenseRef-scancode-other-permissive
2,019
UltimateStacker
Breakerland
Java
Code
327
1,238
package com.songoda.ultimatestacker.database; import com.songoda.core.database.DataManagerAbstract; import com.songoda.core.database.DatabaseConnector; import com.songoda.ultimatestacker.spawner.SpawnerStack; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.Statement; import java.util.Coll...
1,237
https://github.com/rfceron/mongo-monitor-webapp-boot/blob/master/src/main/java/com/mongodash/converter/DatabaseInfoConverter.java
Github Open Source
Open Source
MIT
null
mongo-monitor-webapp-boot
rfceron
Java
Code
83
418
package com.mongodash.converter; import java.util.ArrayList; import java.util.List; import org.bson.BasicBSONObject; import com.mongodash.Config.COMMON_FIELDS; import com.mongodash.model.Database; import com.mongodash.model.DatabaseInfo; import com.mongodb.BasicDBList; public class DatabaseInfoConverter { public...
40,498
https://github.com/jmallmann/diy-auto-ml-with-spacy-and-gcp/blob/master/containers/classifier/create_model.py
Github Open Source
Open Source
Apache-2.0
null
diy-auto-ml-with-spacy-and-gcp
jmallmann
Python
Code
939
2,903
#!/usr/bin/env python # coding: utf8 """Train a convolutional neural network text classifier on a dataset, using the TextCategorizer component. The dataset will be loaded automatically via Thinc's built-in dataset loader. The model is added to spacy.pipeline, and predictions are available via `doc.cats`. For more deta...
39,576
https://github.com/apyrgio/ganeti/blob/master/lib/tools/common.py
Github Open Source
Open Source
BSD-2-Clause
null
ganeti
apyrgio
Python
Code
401
1,011
# # # Copyright (C) 2014 Google Inc. # 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 code must retain the above copyright notice, # this list of conditions and ...
10,425
https://github.com/edwardwas/adventOfCode2017/blob/master/day07/src/Main.hs
Github Open Source
Open Source
MIT
2,018
adventOfCode2017
edwardwas
Haskell
Code
442
955
{-# LANGUAGE DeriveTraversable #-} {-# LANGUAGE KindSignatures #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE PartialTypeSignatures #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TupleSections #-} {-# LANGUAGE TypeFamilies #-} module ...
11,867
https://github.com/sarkerbappa/Telemedicine_V_1_1_0/blob/master/public/assets/admin/dist/js/custom.js
Github Open Source
Open Source
MIT
null
Telemedicine_V_1_1_0
sarkerbappa
JavaScript
Code
622
2,840
/** * Created by Bappa on 3/2/2016. */ jQuery(document).ready(function($){ // Smooth animation to Notification //$(".dropdown").click(function(){ // $(this).find(".dropdown-menu").slideToggle("slow"); //}); $(".btn-group ").click(function(){ $(this).find(".dropdown-menu").slideTogg...
45,873
https://github.com/itssanat/Intercode/blob/master/src/client/utility/Settings.java
Github Open Source
Open Source
MIT
null
Intercode
itssanat
Java
Code
211
940
package client.utility; import javax.swing.*; import java.awt.*; import java.awt.event.*; import client.utility.LineNumberingTextPane; import client.controllers.MainController; public class Settings extends JFrame implements ActionListener { private JPanel contentPane; private LineNumberingTextPane lineNumbering...
34,787
https://github.com/zs2619/kiss-rpc/blob/master/generator/As3Generator.h
Github Open Source
Open Source
MIT
2,022
kiss-rpc
zs2619
C
Code
89
326
//============================================== /** @date: 2012:3:29 @file: As3Generator.h @author zhangshuai */ //============================================== #ifndef __AS3GENERATOR_H__ #define __AS3GENERATOR_H__ #include "Generator.h" /** 生成as3 后端*/ class As3Generator :public Generator { public: As3Gen...
5,855
https://github.com/isamirkhaan1/livestream/blob/master/app/src/main/java/com/samirk433/fyp/ServerAddressDialog.java
Github Open Source
Open Source
MIT
2,020
livestream
isamirkhaan1
Java
Code
179
643
package com.samirk433.fyp; import android.annotation.SuppressLint; import android.app.Dialog; import android.app.DialogFragment; import android.content.Context; import android.content.DialogInterface; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AlertDialog; impor...
24,583
https://github.com/pebois/phonegap-plugin-Composers/blob/master/src/ios/Composers.m
Github Open Source
Open Source
MIT
2,014
phonegap-plugin-Composers
pebois
Objective-C
Code
448
1,807
// Composers.m // // Created by Pierre-Emmanuel Bois on 21/09/13. // // Copyright 2012-2013 Pierre-Emmanuel Bois. All rights reserved. // MIT Licensed #import "Composers.h" #import <Cordova/CDV.h> @implementation Composers - (void)sms:(CDVInvokedUrlCommand*)command { Class testClass = (NSClassFromString(@"MFMe...
33,581
https://github.com/xdvalue/mcoding/blob/master/base_dependencies/sns_module/src/main/java/com/mcoding/base/sns/persistence/post/SnsPostExtInfoMapper.java
Github Open Source
Open Source
Apache-2.0
2,017
mcoding
xdvalue
Java
Code
45
230
package com.mcoding.base.sns.persistence.post; import org.apache.ibatis.annotations.Param; import com.mcoding.base.core.IMapper; import com.mcoding.base.sns.bean.post.SnsPostExtInfo; import com.mcoding.base.sns.bean.post.SnsPostExtInfoExample; public interface SnsPostExtInfoMapper extends IMapper<SnsPostExtInfo, Sns...
31,947
https://github.com/Ikaw/SIG-usahabandungbarat/blob/master/pemilik_usaha/usaha_tambah_gagal.php
Github Open Source
Open Source
CC-BY-3.0, Unlicense
null
SIG-usahabandungbarat
Ikaw
PHP
Code
585
2,619
<?php session_start(); ?> <!DOCTYPE html> <!--[if IE 9]> <html lang="en" class="ie9"> <![endif]--> <!--[if !IE]><!--> <html lang="en"> <!--<![endif]--> <head> <?php include("lib_func.php"); ?> <meta charset="utf-8"> <title>SIG | Potensi Usaha Bandung Barat </title> <meta name="description" content="Worthy a Bo...
6,319
https://github.com/jackdoe/bloody-hell/blob/master/kbd/hidkbd.diff
Github Open Source
Open Source
MIT
2,019
bloody-hell
jackdoe
null
Spoken
628
2,353
--- hidkbd.c Sun Jul 13 20:40:16 2014 +++ hidkbd.c.do-not-touch-ctrl-aenpmhbf Sun Jul 13 20:41:59 2014 @@ -134,10 +134,10 @@ for (i = 0; i < HIDKBDTRACESIZE; i++) { struct hidkbdtraceinfo *p = &hidkbdtracedata[(i+hidkbdtraceindex)%HIDKBDTRACESIZE]; - printf("%lld.%06ld: mod=0x%02x key0=0x%02x key1=0x%02x "...
5,770
https://github.com/highmed/highmed-dsf/blob/master/dsf-fhir/dsf-fhir-server/src/main/resources/db/trigger_functions/on_measure_reports_update.sql
Github Open Source
Open Source
Apache-2.0
2,023
highmed-dsf
highmed
PLpgSQL
Code
21
78
CREATE OR REPLACE FUNCTION on_measure_reports_update() RETURNS TRIGGER AS $$ BEGIN PERFORM on_resources_update(NEW.deleted, NEW.measure_report_id, NEW.version, NEW.measure_report); RETURN NEW; END; $$ LANGUAGE PLPGSQL
15,025
https://github.com/nablarch/nablarch-fw-standalone/blob/master/src/main/java/nablarch/fw/handler/RetryHandler.java
Github Open Source
Open Source
Apache-2.0
null
nablarch-fw-standalone
nablarch
Java
Code
390
2,230
package nablarch.fw.handler; import java.util.ArrayList; import java.util.List; import nablarch.core.log.Logger; import nablarch.core.log.LoggerManager; import nablarch.core.util.annotation.Published; import nablarch.fw.ExecutionContext; import nablarch.fw.Handler; import nablarch.fw.handler.retry.RetryUtil; import ...
51,524
https://github.com/dmitryzarovnyy/FluentSecurity-1/blob/master/FluentSecurity/Policy/Results/DelegatePolicyResult.cs
Github Open Source
Open Source
MIT
null
FluentSecurity-1
dmitryzarovnyy
C#
Code
53
194
using System; using Microsoft.AspNetCore.Mvc; namespace FluentSecurity.Policy.Results { public class DelegatePolicyResult : PolicyResult { public string PolicyName { get; } public Func<PolicyViolationException, ActionResult> ViolationHandler { get; } public DelegatePolicyResult(PolicyResult policyResult, stri...
25,256
https://github.com/weedkiller/bizon360_crm/blob/master/src/GR.Extensions/GR.Crm.Extension/GR.Crm.Extensions/GR.Crm.Leads/GR.Crm.Leads.Abstractions/Models/Agreement.cs
Github Open Source
Open Source
MIT
2,020
bizon360_crm
weedkiller
C#
Code
264
601
using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using GR.Core; using GR.Crm.Organizations.Abstractions.Models; namespace GR.Crm.Leads.Abstractions.Models { public class Agreement : BaseModel { /// <summary> /// Name /// </summary> [Requir...
32,983
https://github.com/TheTipo01/roberto/blob/master/commands.go
Github Open Source
Open Source
MIT
null
roberto
TheTipo01
Go
Code
1,064
4,625
package main import ( "github.com/TheTipo01/libRoberto" "github.com/bwmarrin/discordgo" "github.com/bwmarrin/lit" "os/exec" "strings" "time" ) var ( // Commands commands = []*discordgo.ApplicationCommand{ { Name: "say", Description: "Says text out loud", Options: []*discordgo.ApplicationComm...
420
https://github.com/shereali/quickfix/blob/master/resources/js/src/routes/frontend/routes-frontend.js
Github Open Source
Open Source
MIT
null
quickfix
shereali
JavaScript
Code
93
346
import Home from '../../../components/frontend/Home' // import SignIn from '../../../components/frontend/auth/SignIn' import GetQuery from '../../../components/frontend/get-query/Index' import BlogDetails from '../../../components/frontend/blog-details/Index' let routeFrontend = [ { name:'Home', p...
36,717
https://github.com/feiman/ezlinker/blob/master/app/src/main/java/com/ezlinker/app/modules/schedule/controller/ScheduleTemplateController.java
Github Open Source
Open Source
Apache-2.0
2,020
ezlinker
feiman
Java
Code
178
778
package com.ezlinker.app.modules.schedule.controller; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.ezlinker.app.common.exception.BizException; import com.ezlinker.app.common.exception.XException; import com.ezlinker.app.common.exchange.R; import com.ezlinker.app.modules.schedule.model...
33,319
https://github.com/culturesofknowledge/site-editor/blob/master/emlo-edit-php/interface/proformdev/lib/source_submit.php
Github Open Source
Open Source
MIT
null
site-editor
culturesofknowledge
PHP
Code
63
239
<?php include("user.php"); include("source.php"); $con = dbConn(); startTransaction($con); $result = ""; $messages = ""; $action = (isset($_REQUEST["source_action"])) ? $_REQUEST["source_action"] : ""; switch ($action){ case "add": $messages = addTextualSource($con); $result = $messages; break; ...
32,915
https://github.com/achristensen6/iPhoneOS_12.1.1_Headers/blob/master/System/Library/PrivateFrameworks/Silex.framework/SXWebContentErrorManager.h
Github Open Source
Open Source
MIT
2,019
iPhoneOS_12.1.1_Headers
achristensen6
Objective-C
Code
143
545
/* * This header is generated by classdump-dyld 1.0 * on Saturday, June 1, 2019 at 6:49:57 PM Mountain Standard Time * Operating System: Version 12.1.1 (Build 16C5050a) * Image Source: /System/Library/PrivateFrameworks/Silex.framework/Silex * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneo...
18,838
https://github.com/sarboc/mymove/blob/master/src/scenes/Moves/Hhg/WeightEstimates.jsx
Github Open Source
Open Source
MIT
null
mymove
sarboc
null
Spoken
112
389
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { SwaggerField } from 'shared/JsonSchemaForm/JsonSchemaField'; class WeightEstimates extends Component { render() { return ( <div className="form-section"> <h3 className="instruction-heading"> Enter the ...
39,206
https://github.com/1480c1/nas/blob/master/clients/audio/autool/audiotool.c
Github Open Source
Open Source
DOC, X11
null
nas
1480c1
C
Code
1,543
5,674
/* * Copyright 1993 Network Computing Devices, Inc. * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that * copyright notice and this permiss...
41,502
https://github.com/greenelab/snorkeling-full-text/blob/master/generative_model_training/03_generative_model_resampling_cbg.py
Github Open Source
Open Source
BSD-2-Clause-Patent
2,022
snorkeling-full-text
greenelab
Python
Code
1,012
4,418
# --- # jupyter: # jupytext: # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.9.1+dev # kernelspec: # display_name: Python [conda env:snorkeling_full_text] # language: python # name: conda...
14,664
https://github.com/ed-evo/coding-java/blob/master/src/main/java/it/lysz210/interfaces/age/v2/EssereVivente.java
Github Open Source
Open Source
MIT
null
coding-java
ed-evo
Java
Code
39
99
package it.lysz210.interfaces.age.v2; import java.time.LocalDate; /** * interfaccia base per rappresentare * un essere vivente * che ha una data di nascita. */ interface EssereVivente { /** * data di nascita * @return data di nascita */ LocalDate getDataNascita(); }
31,415
https://github.com/catho/quantum-storybook-ui/blob/master/stories/Button/models/DefaultButton.js
Github Open Source
Open Source
MIT
2,021
quantum-storybook-ui
catho
JavaScript
Code
121
436
import Colors from '../colors'; import ButtonColor from './ButtonColor'; class DefaultButton extends ButtonColor { constructor({ // Unselected unselected, unselectedBorder = unselected, unselectedTextColor = Colors.WHITE, unselectedShadow = `0 2px 4px 0 ${Colors.BLACK['200']};`, // Selected ...
36,319
https://github.com/OpenAPITools/openapi-generator/blob/master/samples/client/petstore/R/R/api_exception.R
Github Open Source
Open Source
Apache-2.0
2,023
openapi-generator
OpenAPITools
R
Code
353
834
#' OpenAPI Petstore #' #' This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. #' #' The version of the OpenAPI document: 1.0.0 #' Generated by: https://openapi-generator.tech #' #' @docType class #' @title ApiException #' @description ApiExc...
20,166
https://github.com/hhghtest/icon-service/blob/master/iconservice/iconscore/score_package_validator.py
Github Open Source
Open Source
Apache-2.0
2,019
icon-service
hhghtest
Python
Code
519
1,875
# -*- coding: utf-8 -*- # Copyright 2018 ICON 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 ...
29,677
https://github.com/apsun/libhazuki/blob/master/src/test/test_utils.c
Github Open Source
Open Source
MIT
2,021
libhazuki
apsun
C
Code
268
1,006
#include "hazuki/utils.h" #include <stdio.h> #include <stdlib.h> #include <string.h> static void hz_assert_char(const char *buf, size_t i, char expected) { if (buf[i] != expected) { hz_abort("Char at [%zu] equal to %d ('%c'), expected %d ('%c')", i, buf[i], buf[i], expected, expected); } } static char...
36,159
https://github.com/Jeffmen/ELWaterFallLayout/blob/master/Example/ELWaterFallLayout/ViewController.swift
Github Open Source
Open Source
MIT
null
ELWaterFallLayout
Jeffmen
Swift
Code
230
1,259
// // ViewController.swift // WaterFlow // // Created by 金秋成 on 2017/2/17. // Copyright © 2017年 金秋成. All rights reserved. // import UIKit import ELWaterFallLayout class ViewController: UIViewController ,UICollectionViewDelegate , UICollectionViewDataSource , ELWaterFlowLayoutDelegate{ let heightArr : [CGFlo...
5,595
https://github.com/renrendaijiekuan/RRD-api2doc/blob/master/commons-api2doc/src/main/java/com/renrendai/loan/beetle/commons/api2doc/annotations/ApiError.java
Github Open Source
Open Source
MIT
null
RRD-api2doc
renrendaijiekuan
Java
Code
45
208
package com.renrendai.loan.beetle.commons.api2doc.annotations; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Repeatable; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Documented @R...
24,842
https://github.com/ddrmax/swiftshader-ex/blob/master/third_party/LLVM/test/CodeGen/ARM/2008-07-24-CodeGenPrepCrash.ll
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference, NCSA
2,018
swiftshader-ex
ddrmax
LLVM
Code
39
97
; RUN: llc < %s -march=arm ; PR2589 define void @main({ i32 }*) { entry: %sret1 = alloca { i32 } ; <{ i32 }*> [#uses=1] load { i32 }* %sret1 ; <{ i32 }>:1 [#uses=0] ret void }
38,963
https://github.com/hafo821/Mafia2Toolkit/blob/master/Mafia2Libs/MafiaLib/FileTypes/FrameResource/ObjectTypes/FrameObjectBase.cs
Github Open Source
Open Source
MIT
2,019
Mafia2Toolkit
hafo821
C#
Code
367
1,040
using System.IO; using System.ComponentModel; using ResourceTypes.FrameNameTable; using Utils.Extensions; using Utils.Types; namespace ResourceTypes.FrameResource { public class FrameObjectBase : FrameEntry { protected Hash name; protected int secondaryFlags; protected TransformMatrix ...
40,259
https://github.com/geekly88/server/blob/master/src/app/+dashboard/+brands/brandsList/index.ts
Github Open Source
Open Source
MIT
null
server
geekly88
TypeScript
Code
4
11
export * from './brandsList.component';
9,362
https://github.com/Butters-cloud/denoising-normalizing-flow/blob/master/experiments/datasets/thin_disk.py
Github Open Source
Open Source
MIT
2,022
denoising-normalizing-flow
Butters-cloud
Python
Code
224
877
#! /usr/bin/env python import numpy as np from scipy.stats import norm import logging from .base import BaseSimulator logger = logging.getLogger(__name__) class ThinDiskSimulator(BaseSimulator): def __init__(self, latent_dim=2, data_dim=3, phases=0.5 * np.pi, widths=0.25 * np.pi, epsilon=0.): super()._...
35,903
https://github.com/ziroom-oss/thanos/blob/master/src/main/java/com/ziroom/qa/quality/defende/provider/caseRepository/service/impl/AutoSingleApiCaseServiceImpl.java
Github Open Source
Open Source
Apache-1.1
null
thanos
ziroom-oss
Java
Code
804
4,782
package com.ziroom.qa.quality.defende.provider.caseRepository.service.impl; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ziroom.qa.quality.defende.pro...
33,724
https://github.com/professorlust/TaoSource/blob/master/src/app/pages/yinyang/mixcloud/the-long-road/lets-talk-about-love/lets-talk-about-love.component.ts
Github Open Source
Open Source
MIT
2,019
TaoSource
professorlust
TypeScript
Code
28
111
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-lets-talk-about-love', templateUrl: './lets-talk-about-love.component.html', styleUrls: ['./lets-talk-about-love.component.css'] }) export class LetsTalkAboutLoveComponent implements OnInit { constructor() { } ngOnInit() { } ...
6,022
https://github.com/aws/aws-sdk-cpp/blob/master/generated/src/aws-cpp-sdk-sqs/source/model/CancelMessageMoveTaskRequest.cpp
Github Open Source
Open Source
Apache-2.0, MIT, JSON
2,023
aws-sdk-cpp
aws
C++
Code
65
305
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/sqs/model/CancelMessageMoveTaskRequest.h> #include <aws/core/utils/StringUtils.h> #include <aws/core/utils/memory/stl/AWSStringStream.h> using namespace Aws::SQS::Model; using namespace...
27,440
https://github.com/ideacrew/aca_entities/blob/master/lib/aca_entities/people/person.rb
Github Open Source
Open Source
MIT
null
aca_entities
ideacrew
Ruby
Code
208
1,120
# frozen_string_literal: true module AcaEntities module People # entity for person class Person < Dry::Struct attribute :external_person_link, Types::String.optional.meta(omittable: true) attribute :person_id, Types::String.optional.meta(omittable: true) attribute :hbx_id, Types::String.opt...
46,105
https://github.com/ujjwalguptaofficial/JsStore/blob/master/test/cases/select/join_order.js
Github Open Source
Open Source
MIT
2,023
JsStore
ujjwalguptaofficial
JavaScript
Code
719
2,316
describe('select join order test', function () { it('create db student', function (done) { con.initDb(getDatabase()).then(function (isDbCreated) { expect(isDbCreated).to.be.an('boolean').equal(true); done(); }).catch(function (err) { done(err); }) }); ...
33,077
https://github.com/dotnet/msbuild/blob/master/src/Build.UnitTests/BackEnd/NodeEndpointInProc_Tests.cs
Github Open Source
Open Source
MIT
2,023
msbuild
dotnet
C#
Code
996
3,551
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Threading; using Microsoft.Build.BackEnd; using Microsoft.Build.BackEnd.Logging; using Microsoft.Build.Execution; using M...
32,692
https://github.com/stevest/prefrontal-micro/blob/master/experiment/network/analysis/Paper_2016/nrn_vread.m
Github Open Source
Open Source
MIT
2,016
prefrontal-micro
stevest
MATLAB
Code
156
443
% [data,errmsg]=nrn_vread(FileName,machineformat) % machineformat like in fopen (i.e. 'b' for big endian, 'l' for little endian) % % reads binary files, that was written with Vector.vwrite in NEURON function [data,errmsg]=nrn_vread(FileName,machineformat) data = []; [fid,errmsg] = fopen(FileName,'r',machineformat); ...
37,923
https://github.com/ak110/pytoolk/blob/master/pytoolkit/losses_test.py
Github Open Source
Open Source
MIT
2,020
pytoolk
ak110
Python
Code
548
2,295
import numpy as np import pytest import tensorflow as tf import pytoolkit as tk def _run(func, *args, **kwargs): """funcをグラフモードで実行する。""" return tf.function(func)(*args, **kwargs) def test_binary_crossentropy(): # 通常の動作確認 _binary_loss_test(tk.losses.binary_crossentropy, symmetric=True) # alpha ...
48,758
https://github.com/manueme/ray-tracing-research/blob/master/src/app_ray_tracing_optix_denoiser/cuda_optix_interop/denoiser_optix_pipeline.cpp
Github Open Source
Open Source
MIT
2,021
ray-tracing-research
manueme
C++
Code
489
2,740
/* * Manuel Machado Copyright (C) 2021 This code is licensed under the MIT license (MIT) * (http://opensource.org/licenses/MIT) */ #include "denoiser_optix_pipeline.h" #include "core/buffer.h" #include "core/device.h" #include "core/texture.h" #include "optix.h" #include "optix_function_table_definition.h" #include...
33,655
https://github.com/Feliconut/refitt/blob/master/refitt/apps/refitt/config/edit.py
Github Open Source
Open Source
Apache-2.0
2,021
refitt
Feliconut
Python
Code
305
750
# Copyright REFITT Team 2019. All rights reserved. # # This program is free software: you can redistribute it and/or modify it under the # terms of the Apache License (v2.0) as published by the Apache Software Foundation. # # This program is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; wi...
51,056
https://github.com/gh0stwizard/VwM/blob/master/VwM/wwwroot/js/resources/shared/database.en.js
Github Open Source
Open Source
MIT
null
VwM
gh0stwizard
JavaScript
Code
8
29
Lcz.Database = { "Online": "Online", "Offline": "Offline" };
26,254
https://github.com/shahpr/RiboViz/blob/master/Frontend/js/ReadCountHistogramIndex.js
Github Open Source
Open Source
Apache-2.0, MIT
2,019
RiboViz
shahpr
JavaScript
Code
370
1,711
//Width and height var marginFigure2 = {top: 0, right: 20, bottom: 50, left: 100}, widthFigure2 = 700 - marginFigure2.left - marginFigure2.right, paddingFigure2=30, paddingxFigure2=5, heightFigure2 = 250 - marginFigure2.top - marginFigure2.bottom; var xFigure2 = d3.scale...
24,182
https://github.com/coruscate/dynamic_forms/blob/master/app/helpers/dynamic_forms/forms_helper.rb
Github Open Source
Open Source
MIT
2,011
dynamic_forms
coruscate
Ruby
Code
133
697
# Helpers for creating/editing Forms module DynamicForms module FormsHelper def display_form_field(form_builder, field) unless field.field_helper_select_options.nil? if field.has_html_options? form_builder.send(field.kind.to_sym, field.name, field.field_helper_select_options, field.fi...
49,355
https://github.com/imintel/swagger-codegen/blob/master/changelogs/changelog_1.3.43_1.3.5
Github Open Source
Open Source
Apache-2.0
2,017
swagger-codegen
imintel
null
Spoken
5
20
Changelog between v1.3.43 and v1.3.5
31,839
https://github.com/JontyMin/WeChat.CoreAPI/blob/master/src/WeChat.Core.Model/SupplierState.cs
Github Open Source
Open Source
MIT
2,021
WeChat.CoreAPI
JontyMin
C#
Code
36
124
namespace WeChat.Core.Model { /// <summary> /// 供应商状态 /// </summary> public enum SupplierState { /// <summary> /// 待审核 /// </summary> Pending, /// <summary> /// 入驻中 /// </summary> Settled, /// <summary> /// 已禁用 ...
23,417
https://github.com/krinap-57/eml-cts/blob/master/application/lma/src/main/java/org/theenergymashuplab/cts/lma/Interval.java
Github Open Source
Open Source
Apache-2.0
null
eml-cts
krinap-57
Java
Code
211
459
/* * Copyright 2019-2020 The Energy Mashup Lab * * 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 la...
39,974
https://github.com/nuxleus/Nuxleus/blob/master/src/external/websocket4net/Test/Test/JsonWebSocketTest.cs
Github Open Source
Open Source
Apache-2.0
2,018
Nuxleus
nuxleus
C#
Code
483
1,910
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading; using NUnit.Framework; using SuperSocket.Common; using SuperSocket.SocketBase; using SuperSocket.SocketBase.Config; using SuperSocket.SocketEngine; using SuperWebSocket; using SuperWeb...
45,156
https://github.com/appleorange1/victorianparliamentmemberdata/blob/master/lib/csv_to_popolo/version.rb
Github Open Source
Open Source
MIT
null
victorianparliamentmemberdata
appleorange1
Ruby
Code
6
25
module Popolo_CSV VERSION = '0.28.0'.freeze end
37,398
https://github.com/jeongjoonyoo/CodeXL/blob/master/CodeXL/Components/GpuDebugging/AMDTGpuDebuggingComponents/Include/gdExecutionMode.h
Github Open Source
Open Source
MIT
2,020
CodeXL
jeongjoonyoo
C
Code
374
884
//================================================================================== // Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved. // /// \author AMD Developer Tools Team /// \file gdExecutionMode.h /// //================================================================================== //...
7,666
https://github.com/CustomROMs/android_vendor/blob/master/st-ericsson/tools/platform/flash_kit/sign_tool_cli/src/com/stericsson/sdk/signing/cli/loadmodules/LoadModuleSignEntry.java
Github Open Source
Open Source
Apache-2.0, MIT
2,019
android_vendor
CustomROMs
Java
Code
181
497
package com.stericsson.sdk.signing.cli.loadmodules; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * @author xtomzap * Model class for sign entry in load modules configuration xml file. */ public class LoadModuleSignEntry { private static final String S...
7,415
https://github.com/function61/varasto/blob/master/pkg/stoserver/stodiskaccess/support.go
Github Open Source
Open Source
Apache-2.0
2,022
varasto
function61
Go
Code
103
343
package stodiskaccess import ( "io" "github.com/function61/varasto/pkg/stotypes" ) type BlobMeta struct { Ref stotypes.BlobRef RealSize int32 SizeOnDisk int32 // after optional compression IsCompressed bool EncryptionKeyId string EncryptionKey []byte // this is set when read from...
8,254
https://github.com/ramazankargin/PatikaDev-Frontend/blob/master/03-JAVASCRIPT/js/011-prompt-ile-kullanicidan-bilgi-almak.js
Github Open Source
Open Source
MIT
null
PatikaDev-Frontend
ramazankargin
JavaScript
Code
42
154
// ********** prompt ile Kullanicidan Bilgi Almak ********** // https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt let fullName = prompt("Luften adinizi giriniz: "); let greeting = document.querySelector("#greeting") greeting.innerHTML = `${greeting.innerHTML} <small style="color:red">${fullName}</small...
41,846
https://github.com/pitoff/pts/blob/master/app/Http/Controllers/CategoryController.php
Github Open Source
Open Source
MIT
null
pts
pitoff
PHP
Code
133
506
<?php namespace App\Http\Controllers; use App\Category; use App\Cloth; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class CategoryController extends Controller { public function __construct() { } public function index() { if(Auth::user()->isAdmin()){ ...
15,050
https://github.com/andykuo1/milque/blob/master/apps/03_laneworld/src/cartworld/PathFinder.js
Github Open Source
Open Source
MIT
null
milque
andykuo1
JavaScript
Code
332
1,159
import { uuid } from '@milque/util'; import { getJunctionCoordsFromIndex } from '../junction/Junction.js'; import { astarSearch } from '../util/astar.js'; /** * @typedef {import('../junction/Junction.js').JunctionMap} JunctionMap */ export const END_OF_PATH = -1; export class PathFinder { /** * @param {Ju...
20,825
https://github.com/AshutoshChoubey/productManufacturer/blob/master/resources/views/krishna/quatation/createQuatation.blade.php
Github Open Source
Open Source
MIT
null
productManufacturer
AshutoshChoubey
PHP
Code
382
1,831
@extends('main') @section('content') <style type="text/css"> @media print { .table { background-color: white; color: black; border-color: black; } table { border: 1px solid black; } th, td { border: 1px solid black; } } </style> <section class="conten...
41,644
https://github.com/arianvp/ghcjs-hom/blob/master/src/Hom/DOM.hs
Github Open Source
Open Source
MIT
2,014
ghcjs-hom
arianvp
Haskell
Code
115
284
-- | A minimalistic DOM module Hom.DOM ( Elem , newElem , appendChild , newTextElem , getBody ) where import GHCJS.Types import GHCJS.Foreign import Data.Text newtype Elem = Elem (JSRef Elem) foreign import javascript unsafe "document.createElement($1)" js_newElem :: JSString -> IO Elem newElem :: Text -> IO E...
19,404
https://github.com/tsaurabh74/peregrine-cms/blob/master/themes/themeclean/fragments/container/htmltovue.js
Github Open Source
Open Source
Apache-2.0
2,021
peregrine-cms
tsaurabh74
JavaScript
Code
48
215
module.exports = { convert: function($, f) { f.bindPath($) f.addChildren($) f.addPlaceholders($) // f.addFor($.find('div.container div').first(), 'model.children', 'child', false) // f.bindAttribute($.find('component').first(), 'is', 'child.component') // f.bindAttrib...
19,702
https://github.com/PHPixie/Database/blob/master/tests/PHPixie/Tests/Database/Driver/PDO/QueryTest.php
Github Open Source
Open Source
BSD-3-Clause
2,020
Database
PHPixie
PHP
Code
60
296
<?php namespace PHPixie\Tests\Database\Driver\PDO; /** * @coversDefaultClass \PHPixie\Database\Driver\PDO\Query */ abstract class QueryTest extends \PHPixie\Tests\Database\Type\SQL\Query\ImplementationTest { protected $queryClass; protected $resultClass = '\PHPixie\Database\Driver\PDO\Result'; protected...
44,286
https://github.com/normanrink/rust-vyper/blob/master/parser/src/span.rs
Github Open Source
Open Source
Apache-2.0
null
rust-vyper
normanrink
Rust
Code
116
265
use serde::{ Deserialize, Serialize, }; /// An exclusive span of byte offsets in a source file. #[derive(Serialize, Deserialize, Debug, PartialEq, Copy, Clone)] pub struct Span { /// A byte offset specifying the inclusive start of a span. pub start: usize, /// A byte offset specifying the exclusive...
17,840
https://github.com/aitalshashank2/Floo/blob/master/frontend/src/teams/components/TeamDashboardComponent.js
Github Open Source
Open Source
MIT
2,021
Floo
aitalshashank2
JavaScript
Code
1,012
3,686
import { useEffect, useRef } from "react" import { Avatar, Button, Card, CardHeader, CardContent, CssBaseline, Dialog, DialogContent, DialogTitle, Fab, Grid, List, ListItem, ListItemAvatar, ListItemText, TextField, Tooltip, Typography } from "@mat...
50,432
https://github.com/nanyuantingfeng/coap-shepherd/blob/master/packages/lwm2m/src/setupNodeAPIProxy.ts
Github Open Source
Open Source
MIT
null
coap-shepherd
nanyuantingfeng
TypeScript
Code
321
1,247
/*************************************************** * Created by nanyuantingfeng on 2022/5/17 21:00. * ***************************************************/ import {CoapShepherd} from '@hollowy/coap-shepherd' import {Server as WebSocketServer} from 'rpc-websockets' import {IDeviceAttrs, IStatus} from '@hollowy/coap-s...
50,860
https://github.com/apache/brooklyn-server/blob/master/core/src/main/java/org/apache/brooklyn/core/mgmt/usage/UsageManager.java
Github Open Source
Open Source
Apache-2.0, OFL-1.1, LicenseRef-scancode-public-domain, MIT, LicenseRef-scancode-proprietary-license
2,023
brooklyn-server
apache
Java
Code
429
963
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
14,152
https://github.com/Ondrik8/proxyrouter/blob/master/BakeBit/Script/WiringNP/wiringPi/mcp23s17.c
Github Open Source
Open Source
LGPL-3.0-only, GPL-3.0-only, CC0-1.0
2,021
proxyrouter
Ondrik8
C
Code
753
1,880
/* * mcp23s17.c: * Extend wiringPi with the MCP 23s17 SPI GPIO expander chip * Copyright (c) 2013 Gordon Henderson *********************************************************************** * This file is part of wiringPi: * https://projects.drogon.net/raspberry-pi/wiringpi/ * * wiringPi is free software: you c...
26,935
https://github.com/chuantian/timemachine/blob/master/timemachine/cpp/src/neighborlist.hpp
Github Open Source
Open Source
Apache-2.0
2,020
timemachine
chuantian
C++
Code
47
182
#pragma once namespace timemachine { class Neighborlist { private: double *d_block_bounds_ctr_; double *d_block_bounds_ext_; public: Neighborlist( int N, int D ); ~Neighborlist(); void compute_block_bounds( int N, int D, const double *coords, ...
21,677
https://github.com/michaelkramer/hospitalrun-frontend/blob/master/src/__tests__/imagings/search/ViewImagings.test.tsx
Github Open Source
Open Source
MIT
2,020
hospitalrun-frontend
michaelkramer
TSX
Code
317
1,054
import { mount, ReactWrapper } from 'enzyme' import { createMemoryHistory } from 'history' import React from 'react' import { act } from 'react-dom/test-utils' import { Provider } from 'react-redux' import { Route, Router } from 'react-router-dom' import createMockStore from 'redux-mock-store' import thunk from 'redux-...
18,629
https://github.com/bThink-BGU/BPjs-Context/blob/master/src/test/java/il/ac/bgu/cs/bp/bpjs/context/TicTacToe/TicTacToeVerificationMain.java
Github Open Source
Open Source
MIT
2,021
BPjs-Context
bThink-BGU
Java
Code
144
786
package il.ac.bgu.cs.bp.bpjs.context.TicTacToe; import il.ac.bgu.cs.bp.bpjs.analysis.*; import il.ac.bgu.cs.bp.bpjs.analysis.listeners.PrintDfsVerifierListener; import il.ac.bgu.cs.bp.bpjs.context.ContextBProgram; import il.ac.bgu.cs.bp.bpjs.context.Main; import il.ac.bgu.cs.bp.bpjs.model.BProgram; import il.ac.bgu.cs...
44,092
https://github.com/duncangrant/incubator-brooklyn/blob/master/core/src/main/java/brooklyn/entity/group/zoneaware/ProportionalZoneFailureDetector.java
Github Open Source
Open Source
BSD-3-Clause
null
incubator-brooklyn
duncangrant
Java
Code
292
674
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
41,668
https://github.com/alwqx/algorithms/blob/master/src/python/basic/deque.py
Github Open Source
Open Source
Apache-2.0
2,021
algorithms
alwqx
Python
Code
96
335
# -*- coding: utf-8 -*- class Deque(object): def __init__(self): self.items = [] self._size = 0 def add_first(self, item): self.items.insert(0, item) self._size += 1 def add_last(self, item): self.items.append(item) self._size += 1 def remove_first(sel...
1,287
https://github.com/Grosshub/MVP-Coordinator/blob/master/Source/App/SceneDelegate.swift
Github Open Source
Open Source
MIT
2,021
MVP-Coordinator
Grosshub
Swift
Code
81
221
// // SceneDelegate.swift // MVPCoordinator // // Created by Alexey Gross on 18.12.2019. // Copyright © 2019 Alexey Gross. All rights reserved. // import UIKit import SwiftUI class SceneDelegate: UIResponder, UIWindowSceneDelegate { var window: UIWindow? var coordinator: AppCoordinator? func scene(_...
43,460
https://github.com/gb-ogd/accountinfo/blob/master/accountinfo.js
Github Open Source
Open Source
MIT
null
accountinfo
gb-ogd
JavaScript
Code
2,092
4,758
/* + add or replace callback(s) to event - remove or clear callback(s) from event -> event fired , seperates linear program flow Program flow ------------ script load, +window.load: afterLoad ->window.load, afterload afterload, getData getData, +xhr.readyStateChange: processResponse ->xhr.readyStateChange, proc...
4,738
https://github.com/willsmith9182/conductor/blob/master/src/Conductor/Controllers/WorkflowController.cs
Github Open Source
Open Source
MIT
2,022
conductor
willsmith9182
C#
Code
201
744
using System; using System.Collections.Generic; using System.Dynamic; using System.Linq; using System.Threading.Tasks; using AutoMapper; using Conductor.Auth; using Conductor.Domain.Interfaces; using Conductor.Domain.Models; using Conductor.Models; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.H...
6,161
https://github.com/skoulouzis/vlet/blob/master/source/core/nl.uva.vlet.vrs.core/source/main/nl/uva/vlet/vrs/VComposite.java
Github Open Source
Open Source
Apache-2.0
2,015
vlet
skoulouzis
Java
Code
1,031
1,986
/* * Copyright 2006-2011 The Virtual Laboratory for e-Science (VL-e) * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * For details, see the LICENCE.txt file location in the root directory of this * distribution or obtain ...
51,120
https://github.com/julienBr/Los-Cuisinos/blob/master/Cuisinos/application/views/layout/layout_pied.inc.tpl
Github Open Source
Open Source
MIT
null
Los-Cuisinos
julienBr
null
Spoken
16
58
<div class="row"> <nav class="pFooter col-sm-12 navbar-light bg-light"> <p>&copy; IUT de Provence, site Arles 2017</p> </nav> </div>
39,557
https://github.com/fbuchert/crypto-trading/blob/master/core/const.py
Github Open Source
Open Source
MIT
null
crypto-trading
fbuchert
Python
Code
236
1,751
from core.instrument import Instrument ########## # KRAKEN # ########## KRAKEN_NAME_TO_INSTRUMENTS = { 'btc_usd_perp': Instrument(name='btc_usd_perp', instrument_id='PI_XBTUSD', tick_size=0.5, size_unit=1), 'eth_usd_perp': Instrument(name='eth_usd_perp', instrument_id='PI_ETHUSD', tick_size=0.05, size_unit=1),...
2,771
https://github.com/goncalogoncalves/php-performance/blob/master/test.php
Github Open Source
Open Source
MIT
2,020
php-performance
goncalogoncalves
PHP
Code
45
246
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); require_once 'Performance.class.php'; $performance = new Devgo\Performance(); $performance->addStep("1"); usleep(300000); // 0.30s $performance->addStep("2"); usleep(100000); // 0.10s $performance->addStep("3"); //$du...
30,883
https://github.com/dieisonborges/sicario/blob/master/tickets/migrations/0021_ticket_teste.py
Github Open Source
Open Source
MIT
2,019
sicario
dieisonborges
Python
Code
32
132
# Generated by Django 3.1.3 on 2020-11-11 18:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tickets', '0020_auto_20201111_1753'), ] operations = [ migrations.AddField( model_name='ticket', name='teste', ...
50,107
https://github.com/Enether/react-intro/blob/master/js/asyncRoute.js
Github Open Source
Open Source
MIT
null
react-intro
Enether
JavaScript
Code
86
217
// higher order component which encapsulates behavior import React from 'react' const { object } = React.PropTypes const AsyncRoute = React.createClass({ propTypes: { props: object, loadingPromise: object }, getInitialState () { return { loaded: false } }, componentDidMount () { thi...
28,153
https://github.com/dbatten5/dagster/blob/master/python_modules/libraries/dagster-celery/dagster_celery/defaults.py
Github Open Source
Open Source
Apache-2.0
2,022
dagster
dbatten5
Python
Code
48
177
import os broker_url = "pyamqp://guest@{hostname}:5672//".format( hostname=os.getenv("DAGSTER_CELERY_BROKER_HOST", "localhost") ) backend = "rpc://" result_backend = backend task_default_priority = 5 task_default_queue = "dagster" worker_prefetch_multiplier = 4 broker_transport_options = { # these defaul...
44,918
https://github.com/vishalbelsare/inning/blob/master/network_inference/datasets.py
Github Open Source
Open Source
BSD-3-Clause
2,018
inning
vishalbelsare
Python
Code
573
2,145
import numpy as np from itertools import product from sklearn.datasets import make_sparse_spd_matrix from sklearn.utils import check_random_state def generate_latent_network(n_obs=100, n_lat=10, n_samples=500, sparsity_obs=0.3, sparsity_lat=0.7, sparsityinter=0...
39,313
https://github.com/zszyellow/leetcode/blob/master/Cpp/528.random-pick-with-weight.cpp
Github Open Source
Open Source
MIT
2,015
leetcode
zszyellow
C++
Code
126
296
/* * @lc app=leetcode id=528 lang=cpp * * [528] Random Pick with Weight */ class Solution { private: vector<int> seq; // c++11 random number generator mt19937 rng{random_device{}()}; uniform_int_distribution<int> uni; public: Solution(vector<int>& w) { int total = 0; for (int i :...
18,398
https://github.com/dataronio/algorithms-1/blob/master/src/test/java/iurii/job/interview/codility/flow_traders/FindFirstRepeatedWordTest.java
Github Open Source
Open Source
MIT
2,021
algorithms-1
dataronio
Java
Code
63
260
package iurii.job.interview.codility.flow_traders; import org.junit.Test; import static org.assertj.core.api.Assertions.assertThat; public class FindFirstRepeatedWordTest { @Test public void testStreamSolution(){ FindFirstRepeatedWord findFirstRepeatedWord = new FindFirstRepeatedWord(); asse...
7,170
https://github.com/AuroraLS3/ROM-tools/blob/master/Rom-tools/src/main/java/com/djrapitops/rom/util/file/ArchiveExtractor.java
Github Open Source
Open Source
MIT
2,020
ROM-tools
AuroraLS3
Java
Code
305
782
package com.djrapitops.rom.util.file; import com.djrapitops.rom.exceptions.ExtractionException; import com.djrapitops.rom.util.Verify; import com.djrapitops.rom.util.Wrapper; import java.io.File; /** * Abstract representation of a class that manages extracting archives. * * @author Rsl1122 */ public abstract cla...
19,024
https://github.com/chengzhongnan/loda/blob/master/programs/oeis/060/A060800.asm
Github Open Source
Open Source
Apache-2.0
2,021
loda
chengzhongnan
null
Spoken
41
391
; A060800: a(n) = p^2 + p + 1 where p runs through the primes. ; 7,13,31,57,133,183,307,381,553,871,993,1407,1723,1893,2257,2863,3541,3783,4557,5113,5403,6321,6973,8011,9507,10303,10713,11557,11991,12883,16257,17293,18907,19461,22351,22953,24807,26733,28057,30103,32221,32943,36673,37443,39007,39801,44733,49953,51757,52...
4,953
https://github.com/hoixding/NLyric/blob/master/NLyric/Ncm/NcmTrack.cs
Github Open Source
Open Source
MIT
2,022
NLyric
hoixding
C#
Code
46
130
using NLyric.Audio; namespace NLyric.Ncm { public sealed class NcmTrack : Track { private readonly int _id; public int Id => _id; public NcmTrack(Track track, int id) : base(track.Name, track.Artists) { _id = id; } public override string ToString() { return $"{base.ToString()} | Id:{_id}"; } } }...
31,067
https://github.com/yuchanns/gatsby-theme-yuchanns/blob/master/yuchanns/components/background.js
Github Open Source
Open Source
MIT
2,021
gatsby-theme-yuchanns
yuchanns
JavaScript
Code
23
56
import React from 'react' import styles from '../styles/common.module.scss' const Background = () => { return ( <div className={styles.body}></div> ) } export default Background
9,381
https://github.com/Vektur/api-server/blob/master/src/models/shop.js
Github Open Source
Open Source
MIT
null
api-server
Vektur
JavaScript
Code
70
202
'use strict'; const model = require('./schema.js'); class Crud { constructor() { this.model = model.categoryModel; } create(record) { let newRecord = new this.model(record); return newRecord.save(); } get(_id) { if (_id) { return this.model.findOne({ _id }) } else { return ...
172
https://github.com/woshik/appgenbd/blob/master/application/controllers/api/SMS.js
Github Open Source
Open Source
MIT
null
appgenbd
woshik
JavaScript
Code
360
1,440
"use strict"; const Joi = require("@hapi/joi"); const schema = Joi.object({ applicationId: Joi.string().required(), sourceAddress: Joi.string() .pattern(/^tel:/) .required(), message: Joi.string().required() }); const axios = require("axios"); const config = require("config"); const dateTime = require("date-and...
44,860
https://github.com/satya-sudo/hoodie/blob/master/test/unit/server/public-test.js
Github Open Source
Open Source
Apache-2.0
2,020
hoodie
satya-sudo
JavaScript
Code
313
1,140
var _ = require('lodash') var proxyquire = require('proxyquire').noCallThru() var simple = require('simple-mock') var test = require('tap').test var serverMock = { register: simple.stub(), route: simple.stub(), ext: simple.stub() } function loadPublicPlugin (options, resolver, done) { var mergedOptions = _.me...
9,753
https://github.com/bikashsharmabks/visitor-stats-computer-vision/blob/master/start.py
Github Open Source
Open Source
MIT
2,017
visitor-stats-computer-vision
bikashsharmabks
Python
Code
273
1,169
import tornado.ioloop import tornado.web import tornado.websocket import tornado.httpserver import tornado.process import tornado.template import video import gen import os import sys cam = None html_page_path = dir_path = os.path.dirname(os.path.realpath(__file__)) + '/www/' class HtmlPageHandler(tornado.web.Reque...
27,055
https://github.com/Malcolm613/Turing/blob/master/ready/src/dbgmain.h
Github Open Source
Open Source
MIT
2,017
Turing
Malcolm613
C
Code
63
207
/*************/ /* dbgmain.h */ /*************/ #ifndef _DBGMAIN_H_ #define _DBGMAIN_H_ /*******************/ /* System includes */ /*******************/ #include <windows.h> /******************/ /* Other includes */ /******************/ /**********/ /* Macros */ /**********/ /*************/ /* Constants */ /*****...
6,729