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/flkapes/countdown-game/blob/master/test_main.py
Github Open Source
Open Source
MIT
null
countdown-game
flkapes
Python
Code
35
121
from main import * def test_select_characters(): assert type(select_characters()) == type('l') assert len(select_characters()) == 9 def test_dictionary_reader(): assert type(dictionary_reader()) == type(['hi']) def test_word_lookup(): y, x = word_lookup(dictionary_reader(), select_characters()) ...
6,142
https://github.com/felixonmars/io-streams/blob/master/src/System/IO/Streams/Vector.hs
Github Open Source
Open Source
2,020
io-streams
felixonmars
Haskell
Code
1,592
3,478
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE RankNTypes #-} -- | Vector conversions and utilities. module System.IO.Streams.Vector ( -- * Vector conversions fromVector , toVector , toVectorSized , outputToVector , outputToVectorSized , toMutableVector ...
1,622
https://github.com/tiaanswart/LightningGoogleMaps/blob/master/src/aura/GoogleMap/GoogleMapHelper.js
Github Open Source
Open Source
MIT
null
LightningGoogleMaps
tiaanswart
JavaScript
Code
632
2,193
/** * @author Tiaan Swart (tiaan@cloudinit.nz) * @date 2018-09-18 * @description * * CHANGE LOG * 2018-09-18 - Initial setup **/ ({ showError: function (component, errorMessage) { if (errorMessage) { // Get the title var title = component.get('v.title'); // Show...
34,330
https://github.com/FOSSEE/R_TBC_Uploads/blob/master/Introductory_Statistics_by_Douglas_S_Shafer_And_Zhiyi_Zhang/CH6/EX6.8.c/Ex6_8c.R
Github Open Source
Open Source
2,023
R_TBC_Uploads
FOSSEE
R
Code
22
114
#Page 316 x<-102 n<-121 mean<-0.90 sd<-0.027 sample_proportion<-x/n k<-(sample_proportion-mean)/sd print(k) x=seq(-4,4,length=200) y=dnorm(x,mean=0,sd=1) reqd_probability<-print(pnorm(k,mean=0,sd=1)) #The answer may slightly vary due to rounding off values.
5,548
https://github.com/cloudfoundry/cloud_controller_ng/blob/master/spec/request/v3_root_spec.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0, MIT, LGPL-2.1-or-later, Artistic-2.0, LGPL-2.1-only, LGPL-3.0-only, GPL-1.0-or-later, LicenseRef-scancode-other-permissive, BSD-3-Clause, LGPL-2.0-or-later, Artistic-1.0-Perl, LicenseRef-scancode-other-copyleft, GPL-2.0-only, Ruby, LicenseRef-scancode-public-do...
2,023
cloud_controller_ng
cloudfoundry
Ruby
Code
269
1,129
require 'spec_helper' RSpec.describe 'v3 root' do describe 'GET /v3' do it 'returns a list of links to resources available on the v3 API' do get '/v3' expect(last_response).to have_status_code(200) expect(parsed_response).to be_a_response_like({ 'links' => { 'self' => { ...
10,536
https://github.com/appheap/social-media-analyzer/blob/master/backend/telegram/models/chats/admin_log_event/admin_log_event_action_toggle_invites.py
Github Open Source
Open Source
Apache-2.0
2,022
social-media-analyzer
appheap
Python
Code
125
512
from typing import Optional from django.db import models, DatabaseError from pyrogram import types from core.globals import logger from ...base import BaseModel class AdminLogEventActionToggleInvitesQuerySet(models.QuerySet): def update_or_create_action(self, **kwargs) -> Optional['AdminLogEventActionToggleInvi...
25,330
https://github.com/nikhilbaby2000/BookMyWash/blob/master/app/QuikService/Services/File/FileUploader.php
Github Open Source
Open Source
MIT
2,018
BookMyWash
nikhilbaby2000
PHP
Code
431
1,247
<?php namespace App\QuikService\Services\File; use Storage; use Exception; use Illuminate\Http\UploadedFile; use Illuminate\Config\Repository as ConfigRepository; use App\QuikService\Services\Hash\HashGeneratorContract; class FileUploader implements FileUploaderContract { /** * The HashGenerator instance. ...
1,673
https://github.com/wizawu/1c/blob/master/@types/jdk/javax.swing.text.Style.d.ts
Github Open Source
Open Source
MIT
2,020
1c
wizawu
TypeScript
Code
31
115
declare namespace javax { namespace swing { namespace text { interface Style extends javax.swing.text.MutableAttributeSet { getName(): java.lang.String addChangeListener(arg0: javax.swing.event.ChangeListener | javax.swing.event.ChangeListener$$lambda): void removeChangeListener(arg...
8,847
https://github.com/mitchellolsthoorn/SSBSE-Research-2022-javascript-replication/blob/master/raw_results/new11-60-true-elitist-moment-8-4/tests/test-configFromArray.spec.ts
Github Open Source
Open Source
MIT
2,022
SSBSE-Research-2022-javascript-replication
mitchellolsthoorn
TypeScript
Code
104
478
export {} import {configFromArray} from "../../.syntest/instrumented/benchmark/top10npm/moment/src/lib/create/from-array.js"; const chai = require('chai'); const chaiAsPromised = require('chai-as-promised'); const expect = chai.expect; chai.use(chaiAsPromised); describe('configFromArray', () => { it('test for configF...
21,144
https://github.com/TheAwesome98-Real/PSPNet/blob/master/src/B.java
Github Open Source
Open Source
Unlicense
null
PSPNet
TheAwesome98-Real
Java
Code
20,000
46,124
import java.util.Random; import javax.microedition.lcdui.Graphics; import java.util.TimerTask; import javax.microedition.lcdui.Font; import java.io.OutputStream; import java.io.IOException; import java.io.ByteArrayInputStream; import java.io.InputStream; import java.io.DataInputStream; import java.util.Calendar; import...
25,480
https://github.com/MelLain/topmine/blob/master/src/thread_safe_counters.cc
Github Open Source
Open Source
Apache-2.0
2,022
topmine
MelLain
C++
Code
116
483
// Author: Murat Apishev (@mel-lain) #include <string> #include <utility> #include "boost/thread/locks.hpp" #include "include/thread_safe_counters.h" const double* ThreadSafeCounters::get(int key) const { boost::lock_guard<SpinLock> guard(lock_); auto iter = index_to_counter_.find(key); if (iter != index_to_c...
16,177
https://github.com/jsrobertson/govuk-react/blob/master/components/details/src/stories.js
Github Open Source
Open Source
MIT
2,019
govuk-react
jsrobertson
JavaScript
Code
54
196
import { storiesOf } from '@storybook/react'; import { withKnobs } from '@storybook/addon-knobs/react'; import { withDocsCustom } from '@govuk-react/storybook-components'; import { DetailsSimple, DetailsOpen, DetailsParagraph } from './fixtures'; import ReadMe from '../README.md'; const stories = storiesOf('Typograph...
25,171
https://github.com/deepcoldy/my-library/blob/master/src/page/Login.vue
Github Open Source
Open Source
MIT
2,018
my-library
deepcoldy
Vue
Code
226
887
<template> <div> <van-nav-bar :title="openid ? '绑定账号' : '登录'" right-text="注册" @click-right="goRegister" /> <van-cell-group> <van-field v-model="account" label="账号" icon="clear" placeholder="请输入用户名" required @click-icon="account = ''" /> <van-field ...
46,442
https://github.com/LSFLK/copper/blob/master/copper-server/service_images/groupoffice-6.3.66/groupoffice-6.3.66-php-70/views/Extjs3/javascript/form/SelectPriority.js
Github Open Source
Open Source
Apache-2.0
2,021
copper
LSFLK
JavaScript
Code
37
227
GO.form.SelectPriority = function(config){ Ext.apply(this, config); GO.form.SelectPriority.superclass.constructor.call(this,{ hiddenName:'priority', fieldLabel:t("Priority"), store: new Ext.data.SimpleStore({ fields: ['value', 'text'], data : [ [0, t("Low")], [1, t("Normal")], [2, t("High")] ...
8,200
https://github.com/ckamtsikis/cmssw/blob/master/DataFormats/SiPixelRawData/interface/SiPixelRawDataError.h
Github Open Source
Open Source
Apache-2.0
2,022
cmssw
ckamtsikis
C
Code
289
674
#ifndef DataFormats_SiPixelRawDataError_h #define DataFormats_SiPixelRawDataError_h //--------------------------------------------------------------------------- //! \class SiPixelRawDataError //! \brief Pixel error -- collection of errors and error information //! //! Class to contain and store all information abo...
41,121
https://github.com/sourcedennis/wasm-pathtracer/blob/master/src/graphics/bvh.rs
Github Open Source
Open Source
BSD-3-Clause
null
wasm-pathtracer
sourcedennis
Rust
Code
2,683
5,658
// External imports use std::rc::Rc; // Local imports use crate::graphics::AABB; use crate::graphics::ray::Tracable; use crate::math::Vec3; /// A node in a 2-way BVH /// /// It represents both internal nodes and leaves. It is an internal node when /// `count` is 0; it is a leaf otherwise (where it represents the numb...
20,698
https://github.com/nettapper/cuddly-quack/blob/master/SwapMyRide/app/src/androidTest/java/ca/ualberta/cs/swapmyride/FriendsTest.java
Github Open Source
Open Source
Apache-2.0
null
cuddly-quack
nettapper
Java
Code
352
1,075
/* * Copyright 2015 Adriano Marini, Carson McLean, Conner Dunn, Daniel Haberstock, Garry Bullock * * 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...
13,436
https://github.com/dlang/dmd/blob/master/druntime/src/core/stdcpp/xutility.d
Github Open Source
Open Source
BSL-1.0
2,023
dmd
dlang
D
Code
1,319
4,507
/** * D header file for interaction with Microsoft C++ <xutility> * * Copyright: Copyright (c) 2018 D Language Foundation * License: Distributed under the * $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0). * (See accompanying file LICENSE) * Authors: Manu Evans * Source: $...
22,508
https://github.com/oxyno-zeta/crash-reporter-electron/blob/master/src/webDev/crash-reporter/views/administration/users/js/users.controller.js
Github Open Source
Open Source
MIT
2,016
crash-reporter-electron
oxyno-zeta
JavaScript
Code
586
1,855
/* * Author: Alexandre Havrileck (Oxyno-zeta) * Date: 28/08/16 * Licence: See Readme */ (function () { 'use strict'; angular .module('crash-reporter.views.administration.users') .controller('AdministrationUsersController', AdministrationUsersController); /** @ngInject */ function A...
33,563
https://github.com/partnercloudsupport/07.MoneyManager/blob/master/lib/view/home/home_state.dart
Github Open Source
Open Source
Apache-2.0
2,020
07.MoneyManager
partnercloudsupport
Dart
Code
52
172
import 'package:base_bloc/base_bloc.dart'; import 'package:meta/meta.dart'; @immutable class HomeState extends BaseState { final error; final bool isLoading; final int tabIndex; HomeState({ this.isLoading = false, this.error, this.tabIndex, }) : super([isLoading, error, tabIndex]); HomeState ...
23,886
https://github.com/wuhao4u/udacity-java-developer/blob/master/JDND-master/demos/c1/spring-boot-thymeleaf/src/main/java/com/example/springbootthymeleaf/controller/UserController.java
Github Open Source
Open Source
MIT
null
udacity-java-developer
wuhao4u
Java
Code
154
506
package com.example.springbootthymeleaf.controller; import com.example.springbootthymeleaf.model.User; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import javax.servlet.http.HttpServletRequest; import java.util.Ar...
44,597
https://github.com/degurii/FxTS/blob/master/website/markdown-plugin/src/index.ts
Github Open Source
Open Source
Apache-2.0
2,022
FxTS
degurii
TypeScript
Code
30
108
import { IApiDocumenterPluginManifest } from "@microsoft/api-documenter"; import MarkdownFeature from "./MarkdownFeature"; export const apiDocumenterPluginManifest: IApiDocumenterPluginManifest = { manifestVersion: 1000, features: [ { featureName: "markdown-documenter", kind: "MarkdownDocumenterFea...
25,613
https://github.com/bubdm/waves.ui.wpf/blob/master/sources/Waves.UI.WPF/Behaviors/ProgressBarAnimationBehavior.cs
Github Open Source
Open Source
MIT, BSD-3-Clause
2,020
waves.ui.wpf
bubdm
C#
Code
171
578
using System; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Media.Animation; using Waves.UI.WPF.Behaviors.Interfaces; using Microsoft.Xaml.Behaviors; namespace Waves.UI.WPF.Behaviors { /// <summary> /// Behavior for progress bar animation. ...
21,951
https://github.com/kejadlen/katas/blob/master/advent-of-code/2019/ruby/test_computer.rb
Github Open Source
Open Source
MIT
null
katas
kejadlen
Ruby
Code
354
1,348
# typed: ignore require "minitest/autorun" require_relative "computer" class TestComputer < Minitest::Test def test_samples c = Computer.from("1,9,10,3,2,3,11,0,99,30,40,50").each(StringIO.new, StringIO.new) assert_equal 70, c.next[3] assert_equal 3500, c.next[0] end def test_more_samples ass...
24,007
https://github.com/vcs-tools/sandbox/blob/master/go.mod
Github Open Source
Open Source
Apache-2.0
2,019
sandbox
vcs-tools
Go Module
Code
4
22
module github.com/vcs-tools/sandbox go 1.13
17,186
https://github.com/zy4/better-files/blob/master/version.sbt
Github Open Source
Open Source
MIT
2,021
better-files
zy4
Scala
Code
5
19
version in ThisBuild := "3.7.2-SNAPSHOT"
21,417
https://github.com/82ndAirborneDiv/Epi-Info-Cloud-Contact-Tracing/blob/master/Cloud Enter/Epi.Cloud.Common/DTO/OrganizationDTO.cs
Github Open Source
Open Source
Apache-2.0
2,020
Epi-Info-Cloud-Contact-Tracing
82ndAirborneDiv
C#
Code
44
93
namespace Epi.Cloud.Common.DTO { public class OrganizationDTO { public string Organization { get; set; } public string OrganizationKey { get; set; } public bool IsEnabled { get; set; } public bool IsHostOrganization { get; set; } public int OrganizationId { get; set; } } ...
3,144
https://github.com/Ben21hao/edx-app-ios-new/blob/master/Source/ChooseCourseViewController/model/ChooseCourseModel.h
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,017
edx-app-ios-new
Ben21hao
Objective-C
Code
33
90
// // ChooseCourseModel.h // edX // // Created by Elite Edu on 16/12/2. // Copyright © 2016年 edX. All rights reserved. // #import <Foundation/Foundation.h> @interface ChooseCourseModel : NSObject @property (nonatomic,assign) BOOL isSelected; @end
783
https://github.com/jlumbroso/codePost-api-python/blob/master/codepost/__init__.py
Github Open Source
Open Source
MIT
null
codePost-api-python
jlumbroso
Python
Code
167
359
""" codePost v2.0 SDK. Provides a convenient Python interface to the codePost API. Start scripting! Name: codepost Author: codePost Team Email: team@codepost.io URL: github.com/codepost-io/codepost-python License: Copyright (c) 2019 codePost, licensed under the MIT license """ # Documentation __version__ ...
30,681
https://github.com/yundantianchang/M_intrinsics/blob/master/example/demo_poppar.f90
Github Open Source
Open Source
MIT
2,021
M_intrinsics
yundantianchang
Fortran Free Form
Code
40
193
program demo_popcnt use, intrinsic :: iso_fortran_env, only : integer_kinds, & & int8, int16, int32, int64 implicit none print *, popcnt(127), poppar(127) print *, popcnt(huge(0_int8)), poppar(huge(0_int8)) print *, popcnt...
28,304
https://github.com/glarsson/glarssonaws/blob/master/dotnet_core_application/dotnet_core_application/Pages/Contact.cshtml
Github Open Source
Open Source
MIT
null
glarssonaws
glarsson
C#
Code
13
68
@page @model ContactModel @{ ViewData["Title"] = "Contact"; } <h2>@ViewData["Title"]</h2> <h3>@Model.Message</h3> <img src="~/images/contact.gif" />
23,922
https://github.com/mabachmann/dhcSim/blob/master/dhcSim/DHC/Submodules/TwoPortModules/Pipe/BaseClasses/BasePipe.mo
Github Open Source
Open Source
BSD-3-Clause
2,022
dhcSim
mabachmann
Modelica
Code
317
1,861
within dhcSim.DHC.Submodules.TwoPortModules.Pipe.BaseClasses; partial model BasePipe "Base model of two port pipe model" extends Buildings.Fluid.FixedResistances.BaseClasses.Pipe( final dp_nominal=dp_nominal_internal+dp_fixed_nominal, final m_flow_nominal=m_flow_nominal_internal, final length=length_set, ...
37,822
https://github.com/bitdewy/roar/blob/master/test/projection_opers.cpp
Github Open Source
Open Source
MIT
2,015
roar
bitdewy
C++
Code
1,760
4,625
// Copyright 2014, bitdewy@gmail.com // The MIT License (MIT) #include <array> #include <list> #include <set> #include <vector> #include "boost/algorithm/string.hpp" #include "CppUnitTest.h" #include "../roar/linq/linq.hpp" using namespace Microsoft::VisualStudio::CppUnitTestFramework; namespace test { // http://c...
18,447
https://github.com/bluespeck/OakVR/blob/master/src/Construct/Construct/FreeCamera.h
Github Open Source
Open Source
MIT
null
OakVR
bluespeck
C
Code
104
346
#include "OakVR/OakVR.h" namespace construct { class FreeCamera : public oakvr::render::Camera { public: FreeCamera(const std::string &id, const oakvr::math::Vector3 &pos, const oakvr::math::Vector3 &target, const oakvr::math::Vector3 &up) : oakvr::render::Camera(id, pos, target, up) {} FreeCamera(const std::st...
2,735
https://github.com/zglue/zglue_nuttx/blob/master/net/bluetooth/bluetooth_conn.c
Github Open Source
Open Source
BSD-3-Clause
2,019
zglue_nuttx
zglue
C
Code
847
2,214
/**************************************************************************** * net/bluetooth/bluetooth_conn.c * * Copyright (C) 2018 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without * modification, are permitte...
30,061
https://github.com/AndrejMitrovic/dtk/blob/master/src/dtk/tests/labelframe.d
Github Open Source
Open Source
BSL-1.0
2,020
dtk
AndrejMitrovic
D
Code
186
607
/* * Copyright Andrej Mitrovic 2013 - 2020. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) */ module dtk.tests.labelframe; version(unittest): import dtk; import dtk.tests.globals; imp...
30,505
https://github.com/sanket-pixel/stereo-depth/blob/master/src/models/stereo_depth.py
Github Open Source
Open Source
MIT
2,021
stereo-depth
sanket-pixel
Python
Code
86
328
from torch import nn import torch import configparser from . import siamese, joined_processing, disparity_regression, residual_block, residual_block_3d config = configparser.ConfigParser() config.read("configs/kitti.config") class StereoDepth(nn.Module): def __init__(self): super(StereoDepth, self).__ini...
20,210
https://github.com/zealoussnow/chromium/blob/master/ppapi/cpp/dev/video_decoder_dev.h
Github Open Source
Open Source
BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause
2,022
chromium
zealoussnow
C
Code
137
481
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_ #define PPAPI_CPP_DEV_VIDEO_DECODER_DEV_H_ #include <stdint.h> #include <vector> #include "ppapi/c/dev/p...
37,435
https://github.com/HeftyB/code-challenge/blob/master/mean-groups/mean-groups.py
Github Open Source
Open Source
MIT
null
code-challenge
HeftyB
Python
Code
512
935
""" You are given an array of arrays a. Your task is to group the arrays a[i] by their mean values, so that arrays with equal mean values are in the same group, and arrays with different mean values are in different groups. Each group should contain a set of indices (i, j, etc), such that the corresponding arrays (a[i...
25,440
https://github.com/Jayaprabu/JAYAPRABU/blob/master/Sample/App/Components/ContentPage/ContentPage.tsx
Github Open Source
Open Source
MIT
2,017
JAYAPRABU
Jayaprabu
TSX
Code
112
355
import * as React from "react"; import { connect } from "react-redux"; import { Dispatch } from "redux"; import { sayHello } from "./../../ActionCreators/HelloCountActionCreators"; import { StoreState } from "./../../Store/StoreState"; import BaseComponent from "./../BaseComponent"; import Button from "./../Common/Butt...
43,158
https://github.com/b97tsk/rangeset/blob/master/symmetricdiff_test.go
Github Open Source
Open Source
MIT
null
rangeset
b97tsk
Go
Code
294
1,103
package rangeset_test import ( "testing" . "github.com/b97tsk/rangeset" ) func TestSymmetricDifference(t *testing.T) { testCases := []struct { Result, Expect RangeSet }{ { SymmetricDifference(RangeSet{{1, 3}}, RangeSet{{5, 7}}), RangeSet{{1, 3}, {5, 7}}, }, { SymmetricDifference(RangeSet{{1, 5}}...
6,716
https://github.com/Shivkb/contiv-vpp/blob/master/go.mod
Github Open Source
Open Source
Apache-2.0
2,021
contiv-vpp
Shivkb
Go Module
Code
223
1,715
module github.com/Shivkb/contiv-vpp go 1.13 require ( git.fd.io/govpp.git v0.3.1 github.com/Microsoft/go-winio v0.4.12 // indirect github.com/apparentlymart/go-cidr v0.0.0-20170616213631-2bd8b58cf427 github.com/containerd/continuity v0.0.0-20181203112020-004b46473808 // indirect github.com/containernetworking/cn...
12,319
https://github.com/awsansriv/lambda-web-scraper-example/blob/master/app.py
Github Open Source
Open Source
MIT-0
null
lambda-web-scraper-example
awsansriv
Python
Code
16
66
#!/usr/bin/env python3 from aws_cdk import core from lambda_app.lambda_app_stack import LambdaAppStack app = core.App() LambdaAppStack(app, "lambda-app") app.synth()
7,380
https://github.com/OData/odata-validation/blob/master/src/CodeRules/Entry/EntryCore4104.cs
Github Open Source
Open Source
MIT
2,020
odata-validation
OData
C#
Code
859
2,377
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. namespace ODataValidator.Rule { #region Namespaces using System; using System.Collections.Generic; using System.ComponentModel.Composition; u...
27,693
https://github.com/Pokoi/TortillaEngine/blob/master/Documentation/html/search/variables_11.js
Github Open Source
Open Source
MIT
null
TortillaEngine
Pokoi
JavaScript
Code
10
499
var searchData= [ ['s_4299',['s',['../structglm_1_1tvec1.html#a0b19a3746dcf46d86ed4953d4b8307e5',1,'glm::tvec1::s()'],['../structglm_1_1tvec2.html#abcad627ae6f435ce24b821f20bf4b3b3',1,'glm::tvec2::s()'],['../structglm_1_1tvec3.html#ac350e1f6f735cfd76cd2d44c779ebca2',1,'glm::tvec3::s()'],['../structglm_1_1tvec4.html#a...
2,211
https://github.com/aztrock/wmii/blob/master/cmd/wmii/dat.h
Github Open Source
Open Source
MIT
null
wmii
aztrock
C
Code
546
1,576
/* © 2004-2006 Anselm R. Garbe <garbeam at gmail dot com> * See LICENSE file for license details. */ #define _XOPEN_SOURCE 600 #define IXP_P9_STRUCTS #define IXP_NO_P9_ #include <regexp9.h> #include <stdint.h> #include <ixp.h> #include <util.h> #include <utf.h> #include <fmt.h> #include "x11.h" #define FONT "-*-fi...
45,207
https://github.com/wangjunmech/laravelspa/blob/master/resources/js/components/sub/demo6.vue
Github Open Source
Open Source
MIT
null
laravelspa
wangjunmech
Vue
Code
44
257
<template> <div class="refindemo6"> <h3>组件demo6.vue</h3> <div> <input type="text" ref="input2" id='input1'> <input type="text" ref="input4"> <button @click="addref2">ADD,需要先点下面父组件的按钮先,不然第二个输入框不能取值,这是顺序问题</button> </div> </div> </template> <script> export default { data () { ret...
8,938
https://github.com/YasminLuz/Site-NetEscola/blob/master/htdocs/net/sites/all/modules/contrib/webform/src/Tests/Settings/WebformSettingsBehaviorsTest.php
Github Open Source
Open Source
Apache-2.0
null
Site-NetEscola
YasminLuz
PHP
Code
1,171
6,133
<?php namespace Drupal\webform\Tests\Settings; use Drupal\webform\Entity\Webform; use Drupal\webform\Tests\WebformTestBase; /** * Tests for webform settings behaviors. * * @group Webform */ class WebformSettingsBehaviorsTest extends WebformTestBase { /** * Webforms to load. * * @var array */ pro...
20,407
https://github.com/xiegudong45/typeidea/blob/master/venv/lib/python3.6/site-packages/pip-19.0.3-py3.6.egg/pip/_internal/utils/models.py
Github Open Source
Open Source
Apache-2.0
2,022
typeidea
xiegudong45
Python
Code
82
295
"""Utilities for defining models """ import operator class KeyBasedCompareMixin(object): """Provides comparision capabilities that is based on a key """ def __init__(self, key, defining_class): self._compare_key = key self._defining_class = defining_class def __hash__(self): ...
41,295
https://github.com/asedl/XpaPDPM_Calc/blob/master/TestData/HomeHealthGrouper/HH_PPS_Java_source/com/mmm/cms/homehealth/hipps/HIPPSCode_2017.java
Github Open Source
Open Source
MIT
2,019
XpaPDPM_Calc
asedl
Java
Code
638
2,709
/* * Home Health Grouper * Developer for the Center for Medicare and Medicaid Services CMS * by 3M Health Information Systems for CMS Home Health. * * All code is provided as is. */ package com.mmm.cms.homehealth.hipps; import com.mmm.cms.homehealth.HIPPSThreshold; import com.mmm.cms.homehealth.proto.record.Ho...
37,243
https://github.com/facebook/buck/blob/master/src/com/facebook/buck/util/Verbosity.java
Github Open Source
Open Source
Apache-2.0
2,023
buck
facebook
Java
Code
334
696
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 applic...
13,274
https://github.com/oshatrk/actframework/blob/master/src/test/java/act/event/EventBusTest.java
Github Open Source
Open Source
ISC, Apache-2.0, MIT
2,019
actframework
oshatrk
Java
Code
236
780
package act.event; /*- * #%L * ACT Framework * %% * Copyright (C) 2014 - 2017 ActFramework * %% * 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/licens...
31,166
https://github.com/calmsacibis995/minix/blob/master/external/bsd/llvm/dist/clang/lib/CodeGen/CGOpenMPRuntime.cpp
Github Open Source
Open Source
Unlicense
null
minix
calmsacibis995
C++
Code
3,177
13,506
//===----- CGOpenMPRuntime.cpp - Interface to OpenMP Runtimes -------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
32,387
https://github.com/fablecode/yugioh-insight/blob/master/src/wikia/data/banlistdata/src/Domain/banlistdata.domain/Services/Messaging/IBanlistDataQueue.cs
Github Open Source
Open Source
MIT
2,022
yugioh-insight
fablecode
C#
Code
16
74
using System.Threading.Tasks; using banlistdata.core.Models; namespace banlistdata.domain.Services.Messaging { public interface IBanlistDataQueue { Task<YugiohBanlistCompletion> Publish(ArticleProcessed articleProcessed); } }
44,686
https://github.com/carlschiller/highway/blob/master/highway/cppfiles/roadsegment.cpp
Github Open Source
Open Source
MIT
null
highway
carlschiller
C++
Code
650
2,007
// // Created by Carl Schiller on 2019-03-04. // #include "../headers/roadsegment.h" #include "../headers/roadnode.h" #include <cmath> #include <stdexcept> #include <algorithm> //////////////////////////////////////////////////////////////////////////////// /// RoadSegment destructor, removes all RodeNode element chi...
6,585
https://github.com/ndejong/pyvboxmanage/blob/master/src/pyvboxmanage/cli/entrypoints.py
Github Open Source
Open Source
BSD-2-Clause
2,020
pyvboxmanage
ndejong
Python
Code
42
163
from pyvboxmanage import __title__ as NAME from pyvboxmanage import __version__ as VERSION from pyvboxmanage.cli import click from pyvboxmanage.exceptions.PyVBoxManageException import PyVBoxManageException def pyvboxmanage(): try: click.pyvboxmanage() except PyVBoxManageException as e: print...
38,360
https://github.com/SAP/openui5/blob/master/src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/v2/grid.js
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,023
openui5
SAP
JavaScript
Code
116
492
sap.ui.define(["exports", "sap/ui/webc/common/thirdparty/base/asset-registries/Icons"], function (_exports, _Icons) { "use strict"; Object.defineProperty(_exports, "__esModule", { value: true }); _exports.pathData = _exports.ltr = _exports.default = _exports.accData = void 0; const name = "grid"; const...
47,201
https://github.com/Jordy-Boelhouwer/game-collection-tracker-api/blob/master/src/genres/genres.service.ts
Github Open Source
Open Source
MIT
null
game-collection-tracker-api
Jordy-Boelhouwer
TypeScript
Code
140
461
import { Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { CreateGenreDto } from './dto/create-genre.dto'; import { UpdateGenreDto } from './dto/update-genre.dto'; import { Genre } from './entities/genre.entity'; import { GenreNotFound...
27,771
https://github.com/cruxlang/crux/blob/master/cruxjs/s/sass-watcher
Github Open Source
Open Source
Apache-2.0
2,022
crux
cruxlang
Shell
Code
6
30
#!/bin/bash set -e sass --watch stage/style.scss:stage/style.css
5,612
https://github.com/open-mpi/ompi/blob/master/ompi/patterns/net/netpatterns_nary_tree.c
Github Open Source
Open Source
mpich2, BSD-3-Clause-Open-MPI
2,023
ompi
open-mpi
C
Code
1,267
4,288
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2009-2012 Mellanox Technologies. All rights reserved. * Copyright (c) 2009-2012 Oak Ridge National Laboratory. All rights reserved. * Copyright (c) 2014 Los Alamos National Security, LLC. All rights * re...
23,539
https://github.com/devabdul89/giftapp/blob/master/app/Db/LaraModels/Product.php
Github Open Source
Open Source
MIT
null
giftapp
devabdul89
PHP
Code
46
174
<?php namespace LaraModels; use Illuminate\Database\Eloquent\Model; class Product extends Model { protected $table = 'products'; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'title','detail','material','price','size_available','curr...
22,164
https://github.com/Matteo-Peronnet/victoire/blob/master/Bundle/SeoBundle/Resources/views/PageSeo/form.html.twig
Github Open Source
Open Source
MIT
2,021
victoire
Matteo-Peronnet
Twig
Code
32
138
{% trans_default_domain "victoire" %} {% form_theme form 'VictoireFormBundle:Form:fields.html.twig' 'VictoireSeoBundle:Form:localeTabs.html.twig' %} {% if businessProperties is defined %} {% include 'VictoireBusinessEntityBundle:BusinessProperty:list.html.twig' with { 'businessProperties':businessProperties } %} ...
43,330
https://github.com/Aswiz/CodeEditor/blob/master/app/Pages/WebDesignProject/common.blocks/design-card/__img/_design-card__img.sass
Github Open Source
Open Source
MIT
null
CodeEditor
Aswiz
Sass
Code
6
18
.design-card__img display: block margin: 0 auto
24,996
https://github.com/shichao-an/ctci/blob/master/chapter7/question7.4.py
Github Open Source
Open Source
BSD-2-Clause
2,015
ctci
shichao-an
Python
Code
169
436
from __future__ import print_function def negate(a): """Negate an integer using add operator""" res = 0 d = 1 if a < 0 else -1 while a != 0: res += d a += d return res def absolute(a): if a < 0: return negate(a) return a def minus(a, b): return a + negate(b)...
4,579
https://github.com/lhogie/idawi/blob/master/src/main/java/idawi/service/rest/resources/initGraphs.js
Github Open Source
Open Source
Apache-2.0
null
idawi
lhogie
JavaScript
Code
372
1,306
//var connection = new WebSocket('ws://127.0.0.1:8000/serversocket'); var url_server = "http://127.0.0.1:8000"; var plotly; var key_machine = "Machine"; /*connection.onopen = function () { console.log('Connected!'); connection.send('Ping,Hello,World'); // Send the message 'Ping' to the server };*/ // Log erro...
3,634
https://github.com/yinzhangyue/PDF_Tabe_Extraction/blob/master/frontend/tool/tag2json.py
Github Open Source
Open Source
MIT
2,021
PDF_Tabe_Extraction
yinzhangyue
Python
Code
236
883
# -*- coding: utf-8 -*- import numpy as np import cv2.cv2 as cv2 import json def tag2json(tagpath, tagname, pngpath, pngname, save=False, save_jsonpath=None, save_jsonname=None, save_pngpath=None, save_pngname=None...
1,572
https://github.com/wang2470616413/MyCode/blob/master/2019.7.6/Hdu_1251.cpp
Github Open Source
Open Source
MIT
2,019
MyCode
wang2470616413
C++
Code
129
406
#include<stdio.h> #include<string.h> #include<algorithm> #define ll long long #define mmset(a,b) memset(a,b,sizeof(a)) using namespace std; const int N = 1e6; int trie[N][30], num[N] = {0}; int root = 0, index = 1; void insert(char* data) { int len = strlen(data); int rt = root; for(int i = 0; i < len; i++...
40,166
https://github.com/xxycode/LearnMetal/blob/master/Triangle/LearnMetal-Triangle/XYMetalView.mm
Github Open Source
Open Source
MIT
null
LearnMetal
xxycode
Objective-C++
Code
428
1,726
// // XYMetalView.m // LearnMetal // // Created by XiaoXueYuan on 2019/1/10. // Copyright © 2019 xxy. All rights reserved. // #import "XYMetalView.h" #import <Metal/Metal.h> #import <Quartz/Quartz.h> #import "XYShaderTypes.h" #include <iostream> #include <vector> @interface XYMetalView() @property (nonatomic, st...
20,034
https://github.com/pnsk/git-sizer/blob/master/sizes/output.go
Github Open Source
Open Source
MIT
2,018
git-sizer
pnsk
Go
Code
1,371
4,372
package sizes import ( "bytes" "fmt" "io" "strconv" "github.com/github/git-sizer/counts" "github.com/github/git-sizer/git" "github.com/spf13/pflag" ) func (s BlobSize) String() string { return fmt.Sprintf("blob_size=%d", s.Size) } func (s TreeSize) String() string { return fmt.Sprintf( "max_path_depth=%...
49,134
https://github.com/ThomasMorgani/Vulletinboard/blob/master/src/components/Settings/App/General.vue
Github Open Source
Open Source
MIT
null
Vulletinboard
ThomasMorgani
Vue
Code
192
763
<template> <v-card flat tile width="100%"> <v-card-text> <v-card outlined class="my-1"> <v-card-title class="text-h5 primary--text pb-2"> General </v-card-title> <v-card-text class="d-flex flex-column align-start"> <v-card flat width="100%" class=""> <...
1,488
https://github.com/MPIBGC-TEE/bgc-md/blob/master/prototypes/ModelsAsScriptsWithSpecialVarNames/models/miniCable/cable_all/cable_jena_serial/cable2.0-trunk/UM/cable_rad_driver.F90
Github Open Source
Open Source
MIT
2,020
bgc-md
MPIBGC-TEE
Fortran Free Form
Code
662
2,492
!============================================================================== ! This source code is part of the ! Australian Community Atmosphere Biosphere Land Exchange (CABLE) model. ! This work is licensed under the CSIRO Open Source Software License ! Agreement (variation of the BSD / MIT License). ! ! You may ...
11,524
https://github.com/wfy815775/AndroidProject/blob/master/edu/app/src/main/java/com/example/edu/utils/WatetWaveView.java
Github Open Source
Open Source
Apache-2.0
2,019
AndroidProject
wfy815775
Java
Code
569
1,949
package com.example.edu.utils; import android.view.View; import java.util.ArrayList; import java.util.List; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Paint.Style; import android.util.AttributeSet; import andr...
38,635
https://github.com/dimitarpashov99/CookingHub/blob/master/src/Web/CookingHub.Web/Areas/Administration/Views/CookingHubUsers/Edit.cshtml
Github Open Source
Open Source
MIT
2,022
CookingHub
dimitarpashov99
C#
Code
106
489
@using CookingHub.Models.ViewModels.CookingHubUsers @model CookingHubUserEditViewModel @{ this.ViewData["Title"] = "Edit Cooking Hub User"; this.ViewData["ActivePage"] = CookingHubUserNavPages.CookingHubUsers; } <div class="row"> <div class="col-md-9"> <form asp-area="Administration" asp-controlle...
9,131
https://github.com/willahh/notizen/blob/master/frontend/common/src/common/constants.ts
Github Open Source
Open Source
PostgreSQL
2,021
notizen
willahh
TypeScript
Code
20
55
export const LOCAL_STORAGE_NOTES_KEY = 'notizen-notes'; export const HOST_URL = location.host === 'willahh.github.io' ? '/notizen' : ''; // TODO: Use config
34,957
https://github.com/mrchoi87/IRSOSv3.1/blob/master/server/api/api/controllers/jnalarm.js
Github Open Source
Open Source
BSD-3-Clause
null
IRSOSv3.1
mrchoi87
JavaScript
Code
542
1,670
/** * Copyright © 2016-2018 JiNong Inc. * All Rights Reserved. * * 이 모듈은 이벤트를 다루기 위한 API 이다. 주로 JNAlarm 에서 사용한다. */ var jsonfile = require('jsonfile'); var conffile = '../../common_api/conf/hasg.json'; var _config = jsonfile.readFileSync(conffile); var fcore = require('fcore.js') var fevt = require('fevt.js') f...
22,984
https://github.com/neurnn/glazer/blob/master/src/p2p/Glazer.P2P.Abstractions/IMessangerProtocol.cs
Github Open Source
Open Source
MIT
null
glazer
neurnn
C#
Code
39
120
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Glazer.P2P.Abstractions { public interface IMessangerProtocol { /// <summary> /// Handle the received message once. /// </summary> /// <param name="Mess...
42,111
https://github.com/googleapis/gapic-generator-ruby/blob/master/gapic-generator-cloud/lib/gapic/presenters/wrapper_service_presenter.rb
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-generic-cla, MIT
2,023
gapic-generator-ruby
googleapis
Ruby
Code
232
607
# frozen_string_literal: true # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
25,188
https://github.com/oozzal/ooyala/blob/master/test/custom_metadata_test.rb
Github Open Source
Open Source
MIT
2,014
ooyala
oozzal
Ruby
Code
140
454
require File.dirname( __FILE__ ) + '/helper' class CustomMetadataTest < OoyalaTest def test_raises_on_invalid_embed_code assert_raise( Ooyala::Error ) do @service.update_metadata 'cheese' end end def test_deletes_single key, value = 'test_key', 'test_value' embed_code = find_item.embed_co...
40,792
https://github.com/asankah/openafsclientmmc/blob/master/FreelanceClientControl.Designer.cs
Github Open Source
Open Source
MIT
null
openafsclientmmc
asankah
C#
Code
420
2,155
namespace OpenAFSClientManager { partial class FreelanceClientControl { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </...
5,795
https://github.com/SimonCropp/elasticsearch-net/blob/master/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MatchBoolPrefixQuery.g.cs
Github Open Source
Open Source
Apache-2.0
null
elasticsearch-net
SimonCropp
C#
Code
1,193
5,610
// Licensed to Elasticsearch B.V under one or more agreements. // Elasticsearch B.V licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information. // // ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ // ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ // ██╔██╗...
44,791
https://github.com/mnemsi/historian/blob/master/gateway/src/integration-test/java/com/hurence/webapiservice/http/grafana/SearchEndPointIT.java
Github Open Source
Open Source
Apache-2.0
2,020
historian
mnemsi
Java
Code
184
998
package com.hurence.webapiservice.http.grafana; import com.hurence.unit5.extensions.SolrExtension; import com.hurence.webapiservice.util.HistorianSolrITHelper; import com.hurence.webapiservice.util.HttpITHelper; import com.hurence.webapiservice.util.HttpWithHistorianSolrITHelper; import com.hurence.webapiservice.util....
31,668
https://github.com/kaplanmaxe/push-notification-test-tool/blob/master/src/index.js
Github Open Source
Open Source
MIT
2,019
push-notification-test-tool
kaplanmaxe
JavaScript
Code
218
680
#!/usr/bin/env node import fs from 'fs'; import program from 'commander'; import Push from './Push'; program .version('1.0.0'); program .command('setup') .description('set up enviromentals to send push notifications') .option('--androidSenderAPIKey [apiKey]', 'Android API Key') .option('--iosCert <path>', '...
32,852
https://github.com/Meena567/main/blob/master/src/test/java/seedu/address/logic/commands/LogoutCommandTest.java
Github Open Source
Open Source
MIT, LicenseRef-scancode-other-permissive
2,018
main
Meena567
Java
Code
104
439
package seedu.address.logic.commands; import static seedu.address.logic.commands.CommandTestUtil.assertCommandSuccess; import org.junit.Test; import seedu.address.logic.CommandHistory; import seedu.address.logic.commands.exceptions.CommandException; import seedu.address.logic.commands.user.LogoutCommand; import seed...
27,243
https://github.com/JamesCao2048/BlizzardData/blob/master/Corpus/swt/142.java
Github Open Source
Open Source
MIT
2,022
BlizzardData
JamesCao2048
Java
Code
740
3,054
/******************************************************************************* * Copyright (c) 2000, 2003 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, an...
45,495
https://github.com/VRSDevs/XO-Rivals-IA/blob/master/XORivalsIA/Assets/Scripts/RobustFSM/Core/Base/BHState.cs
Github Open Source
Open Source
Apache-2.0
null
XO-Rivals-IA
VRSDevs
C#
Code
1,178
3,043
using System; using System.Collections.Generic; using RobustFSM.Interfaces; using Assets.RobustFSM.Interfaces; namespace RobustFSM.Base { /// <summary> /// This is a basse hybrid state. It belongs to a state machine. /// It allows your class to act as both a state machine and a state /// Inherit from ...
27,162
https://github.com/loriopatrick/Decentarlized-Clearing-Network/blob/master/src/main/java/io/merklex/web3/QueryHelper.java
Github Open Source
Open Source
MIT
2,021
Decentarlized-Clearing-Network
loriopatrick
Java
Code
61
199
package io.merklex.web3; import org.web3j.abi.datatypes.Function; import org.web3j.protocol.Web3j; import java.io.IOException; public class QueryHelper { public String contractAddress; public Web3j web3j; public QueryHelper(String contractAddress, Web3j web3j) { this.contractAddress = contractAd...
40,115
https://github.com/TryKatChup/IssLab2022/blob/master/it.unibo.java.radar/src/it/unibo/radar/gui/Gauge.java
Github Open Source
Open Source
MIT
2,022
IssLab2022
TryKatChup
Java
Code
173
479
package it.unibo.radar.gui; import it.unibo.radar.interfaces.IGauge; import it.unibo.radar.interfaces.IGaugeValue; public abstract class Gauge implements IGauge { private IGaugeValue gaugeValue; /* { Constructors and factories */ protected Gauge() { this.gaugeValue = null; } /* { {IGauge} implementa...
7,744
https://github.com/Steph55/DirectN/blob/master/DirectN/DirectN/Manual/COLOR.cs
Github Open Source
Open Source
MIT
2,022
DirectN
Steph55
C#
Code
99
392
namespace DirectN { public enum COLOR { COLOR_SCROLLBAR = 0, COLOR_BACKGROUND = 1, COLOR_ACTIVECAPTION = 2, COLOR_INACTIVECAPTION = 3, COLOR_MENU = 4, COLOR_WINDOW = 5, COLOR_WINDOWFRAME = 6, COLOR_MENUTEXT = 7, COLOR_WINDOWTEXT = 8, ...
20,309
https://github.com/fsarradin/aboutfp/blob/master/src/main/scala/io/univalence/aboutfp/config.scala
Github Open Source
Open Source
Apache-2.0
2,017
aboutfp
fsarradin
Scala
Code
76
233
package io.univalence.aboutfp trait Config { def organizationName: String def cssFilename: String def logoFilename: String } case object BnppConfig extends Config { val organizationName = "BNP Paribas" val cssFilename = "/assets/stylesheet/bnppstyle.css" val logoFilename = "/assets/image/BNPP_log...
38,668
https://github.com/conleyannmarie/health-app/blob/master/client/src/components/Header/index.js
Github Open Source
Open Source
MIT
null
health-app
conleyannmarie
JavaScript
Code
72
276
import React from 'react'; import { Link } from 'react-router-dom'; import Auth from '../../utils/auth'; const Header = () => { // Logout event handler const logout = (event) => { event.preventDefault(); Auth.logout(); }; return ( <header> <h5>{Auth.loggedIn() ? <Link to='/home'...
21,987
https://github.com/frogo123/js-deli-counter-bootcamp-prep-000/blob/master/index.js
Github Open Source
Open Source
LicenseRef-scancode-public-domain, LicenseRef-scancode-unknown-license-reference
2,017
js-deli-counter-bootcamp-prep-000
frogo123
JavaScript
Code
121
328
function takeANumber(array, name){ if (array.length === 0){ array.push(name); } else{ array.push(name); } return "Welcome, " + name + ". You are number " + (array.length) + " in line."; } function nowServing(array){ var customer; if (array.length === 0){ return "There is nobody waiting to be ...
23,390
https://github.com/rbowen/whimsy/blob/master/.dockerignore
Github Open Source
Open Source
Apache-2.0
2,022
whimsy
rbowen
Ignore List
Code
12
43
# Ignore everything initially ** # Allow what we want !config/whimsy.conf !config/25-authz_ldap_group_membership.conf
13,060
https://github.com/jahrsg/coinffeine-1/blob/master/coinffeine-common/src/test/scala/com/coinffeine/common/protocol/messages/exchange/StepSignaturesTest.scala
Github Open Source
Open Source
MIT
2,020
coinffeine-1
jahrsg
Scala
Code
93
360
package com.coinffeine.common.protocol.messages.exchange import java.math.BigInteger import com.coinffeine.common.{EqualityBehaviors, UnitTest} import com.coinffeine.common.bitcoin.TransactionSignature import com.coinffeine.common.exchange.{Both, Exchange} class StepSignaturesTest extends UnitTest with EqualityBehav...
31,528
https://github.com/MariaRavander/TastyRecipeSem5/blob/master/www/classes/TastyRecipes/Controller/Controller.php
Github Open Source
Open Source
BSD-3-Clause
2,018
TastyRecipeSem5
MariaRavander
PHP
Code
104
317
<?php namespace TastyRecipes\Controller; use TastyRecipes\Model\AuthorizeUser; use TastyRecipes\Model\CommentHandling; /** * This is the application's controller. All calls from view to lower layers pass through here. *A new controller is always constucted for all calls */ class Controller { public fu...
25,266
https://github.com/Kehvarl/Ironclaw.py/blob/master/ic_dice_tools.py
Github Open Source
Open Source
Unlicense
null
Ironclaw.py
Kehvarl
Python
Code
58
139
dice_progression = ["d4", "d6", "d8", "d10", "d12"] def display_dice(val): """ Converts a die-level into a more friendly dice-pool :param int val: The die-level to display :return str: pretty-printed dice value (eg: d4) """ d = "" while val > 5: val -= 5 d += "d12 " if ...
31,446
https://github.com/thegreatercurve/boomerang-socket/blob/master/src/EventListeners/EventListeners.ts
Github Open Source
Open Source
MIT
2,021
boomerang-socket
thegreatercurve
TypeScript
Code
103
315
export interface IEventStore { [event: string]: EventListener[]; } export class EventListeners { private store: IEventStore; constructor() { this.store = {}; } public attach(ws: WebSocket) { Object.keys(this.store).map((e: string) => { this.store[e].map(cb => { ws.addEventListener(e, ...
17,780
https://github.com/luk1337/TransmissionRemote/blob/master/app/src/main/java/net/yupol/transmissionremote/app/model/limitmode/LimitMode.java
Github Open Source
Open Source
Apache-2.0
2,022
TransmissionRemote
luk1337
Java
Code
13
48
package net.yupol.transmissionremote.app.model.limitmode; public interface LimitMode { int getTextRes(); int ordinal(); int getValue(); }
29,586
https://github.com/timsly/engine/blob/master/app/api/locomotive/api/resources/page_resource.rb
Github Open Source
Open Source
MIT
null
engine
timsly
Ruby
Code
310
956
module Locomotive module API module Resources class PageResource < Grape::API resource :pages do entity_klass = Entities::PageEntity before do setup_resource_methods_for(:pages) authenticate_locomotive_account! end desc 'Index of pa...
21,892
https://github.com/jajir/image-store/blob/master/src/main/java/com/coroptis/imagestore/ImageStoreException.java
Github Open Source
Open Source
Apache-2.0
null
image-store
jajir
Java
Code
34
98
package com.coroptis.imagestore; public class ImageStoreException extends RuntimeException { /** * */ private static final long serialVersionUID = 1L; public ImageStoreException(String message, Throwable cause) { super(message, cause); } public ImageStoreException(String message) { ...
33,350
https://github.com/ihoromi4/neuroseed-mvp/blob/master/webapi/apiv1/schema/model_train.py
Github Open Source
Open Source
MIT
2,018
neuroseed-mvp
ihoromi4
Python
Code
177
767
ENUM_OPTIMIZER_NAME = [ "SGD", "RMSprop", "Adagrad", "Adadelta", "Adam", "Adamax", "Nadam" ] ENUM_LOSS = [ "mean_squared_error", "mean_absolute_error", "mean_absolute_percentage_error", "mean_squared_logarithmic_error", "squared_hinge", "hinge", "categorical_hing...
19,937