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/AzonMedia/component-users/blob/master/app/public_src/src/UsersAdmin.vue
Github Open Source
Open Source
MIT
2,022
component-users
AzonMedia
Vue
Code
1,670
6,323
<template> <div class="crud"> <div class="content"> <div id="data" class="tab"> <h3>Users <b-button variant="success" @click="show_update_modal('post', newObject)" size="sm">Create New</b-button> </h3> <!-- ======================= USERS LISTING ==================...
49,928
https://github.com/GreggKr/gradespeed-hisd/blob/master/lib/parseRaw.js
Github Open Source
Open Source
MIT
2,021
gradespeed-hisd
GreggKr
JavaScript
Code
291
1,100
'use strict' const cheerio = require('cheerio') const parseGradeString = str => str.charCodeAt(0) === 160 ? null : parseInt(str) const processGradeExceptions = str => { if (str === 'Exc') return str if (!str) return 'Blank' return parseInt(str) } /** * Parses raw html returned from fetchRaw and parses it into ...
20,475
https://github.com/jimohalloran/platform/blob/master/src/Oro/Bundle/UIBundle/Resources/public/css/scss/oro/label.scss
Github Open Source
Open Source
MIT
null
platform
jimohalloran
SCSS
Code
49
199
/* @theme: admin.oro; */ .label { display: inline-block; max-width: 100%; padding: 0 $badge-padding-x; font-size: $base-font-size--s; font-weight: normal; line-height: 1.2; border-radius: $border-radius; &-large { font-size: $base-font-size; } .page-title__path & { ...
36,503
https://github.com/21hook/crm/blob/master/src/api/cuserGroup.js
Github Open Source
Open Source
MIT
null
crm
21hook
JavaScript
Code
258
915
/* * @Author: liyanfang * @Date: 2017-09-25 13:50:08 * @Last Modified by: liyanfang * @Last Modified time: 2017-09-25 13:57:48 */ import HTTP from './HTTP'; /** * [获取所有的用户组] * @return {[object]} * { "id":null, "name":null, "platform":null, "pageNo":1, "pageSize":10 } */ const getUserGroup = (data) =>...
3,203
https://github.com/markhker/CookBokkJq/blob/master/src/scss/_responsive.scss
Github Open Source
Open Source
MIT
null
CookBokkJq
markhker
SCSS
Code
940
4,659
// _responsive.scss /* * Responsive styles * ========================================================================== */ .col1, .col11, .col12, .col13, .col23, .col14, .col34, .col16, .col56, .col18, .col38, .col58, .col78, .col112, .col512, .col712, .col1112, .col124, .col224, .col324, .col424, .col524, .col624, ...
9,654
https://github.com/swoopfx/cm/blob/master/public/client/js/app/messages.js
Github Open Source
Open Source
BSD-3-Clause
2,019
cm
swoopfx
JavaScript
Code
31
112
(function ($) { "use strict"; $(window).bind('enterBreakpoint320', function () { var img = $('.messages-list .panel ul img'); $('.messages-list .panel ul').width(img.first().width() * img.length); }); $(window).bind('exitBreakpoint320', function () { $('.messages-list .panel ul...
42,916
https://github.com/pgadea/identity-server-template/blob/master/src/Frontend/Spa/src/app/core/services/config.service.ts
Github Open Source
Open Source
MIT
2,021
identity-server-template
pgadea
TypeScript
Code
70
244
import { Injectable } from '@angular/core'; @Injectable() export class ConfigService { static readonly RESOURCE_BASE_URI = "https://localhost:5025"; static readonly AUTH_BASE_URI = "https://localhost:8787"; constructor() {} getDefaultRoute(role: string): string { switch(role) { ...
45,646
https://github.com/vz-chameleon/aYouTubeCopycat/blob/master/src/main/java/views/PlaylistRightSideBarView.java
Github Open Source
Open Source
Apache-2.0
null
aYouTubeCopycat
vz-chameleon
Java
Code
319
1,896
package views; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.io.IOException; import java.net.MalformedURLException; import javax.swing.Box; import javax.swing.JLabel; import javax....
48,456
https://github.com/bocke/ucc/blob/master/test/cases/initialisation/struct_reinit_false.c
Github Open Source
Open Source
MIT
2,022
ucc
bocke
C
Code
20
51
// RUN: %layout_check %s struct B { int x[2]; } ent1 = { .x[0] = 5, .x[1] = 2 };
48,653
https://github.com/Christopherjl/resxible/blob/master/src/Resxible/Properties/AssemblyInfo.cs
Github Open Source
Open Source
MIT
2,015
resxible
Christopherjl
C#
Code
27
110
using System.Reflection; using System.Runtime.InteropServices; [assembly: AssemblyTitle ("Resxible")] [assembly: AssemblyDescription ("")] [assembly: AssemblyCompany ("Apcurium")] [assembly: AssemblyProduct ("")] [assembly: AssemblyCopyright("Copyright © 2015")] [assembly: AssemblyVersion ("1.0.0.0")] [assembly: Asse...
11,848
https://github.com/WFZ1/basic-js/blob/master/src/recursive-depth.js
Github Open Source
Open Source
MIT
null
basic-js
WFZ1
JavaScript
Code
33
106
const CustomError = require("../extensions/custom-error"); module.exports = class DepthCalculator { calculateDepth(arr) { const new_arr = arr.map(el => { if(Array.isArray(el)) return this.calculateDepth(el) + 1 return 1; }); return new_arr.length ? Math.max(...new_arr) : 1; } };
16,676
https://github.com/PieterjanDeconinck/quarkus/blob/master/independent-projects/qute/core/src/main/java/io/quarkus/qute/NamespaceResolver.java
Github Open Source
Open Source
Apache-2.0
2,022
quarkus
PieterjanDeconinck
Java
Code
164
449
package io.quarkus.qute; import java.util.Objects; import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; import java.util.function.Function; /** * Namespace resolvers are used to find the current context object for an expression that starts with a namespace declaration. * <p> ...
8,441
https://github.com/evandhq/react-jupiter/blob/master/src/components/icons/utils.test.js
Github Open Source
Open Source
MIT
2,021
react-jupiter
evandhq
JavaScript
Code
140
396
import { getSizeOfIcon, getMarginOfIcon } from './utils'; import theme from './theme'; describe('Tests of icons utils', () => { describe('Test of icon sizes', () => { it('Should return 20 as font size of medium icons', () => { const sizeOfMediumIcon = getSizeOfIcon('md'); expect(sizeOfMediumIcon).toB...
49,792
https://github.com/adfsaffs/daozhe_B/blob/master/src/pages/detail/commentcontainer.vue
Github Open Source
Open Source
MIT
2,017
daozhe_B
adfsaffs
Vue
Code
315
1,632
<template> <div class="ticket-comment-container"> <h3 class="ticket-comment-title">用户评论</h3> <div class="ticket-comment-list"> <div class="ticket-comment-item border-top" v-for = "(info, index) in commentsInfo" :key="info.id"> <div class="ticket-comment-stardate"> <span class="ticket-startlevel icon...
8,211
https://github.com/IBobko/revolut/blob/master/src/test/java/revolut/JettyServerTest.java
Github Open Source
Open Source
2,020
revolut
IBobko
Java
Code
1,341
5,307
package revolut; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import org.apache.http.HttpEntity; import org.apache.http.HttpStatus; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.c...
37,847
https://github.com/gelisam/klister/blob/master/src/ModuleName.hs
Github Open Source
Open Source
BSD-3-Clause
2,023
klister
gelisam
Haskell
Code
198
504
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} module ModuleName ( -- * Module names ModuleName(..) , KernelName , kernelName , moduleNameFromPath , moduleNameToPath , moduleNameText , relativizeModuleName ) where import Data.Data (Data) import Data.Text (Text) import qualified...
24,633
https://github.com/Bibazavr/react-native-image-colors/blob/master/android/src/main/java/com/reactnativeimagecolors/ImageColorsModule.java
Github Open Source
Open Source
MIT
2,022
react-native-image-colors
Bibazavr
Java
Code
557
1,827
package com.reactnativeimagecolors; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Color; import android.util.Base64; import androidx.annotation.NonNull; import androidx.palette.graphics.Palette; import com.facebook.react.bridge.Argument...
22,750
https://github.com/jggonzalezh/ETV2/blob/master/ETV/Assets/reutilizables/fountain/Materials/Fountain.mat.meta
Github Open Source
Open Source
CC-BY-4.0, CC-BY-3.0
2,016
ETV2
jggonzalezh
Unity3D Asset
Code
12
68
fileFormatVersion: 2 guid: a7e0fbda2b682c748b3af7b7cccecec1 timeCreated: 1462564453 licenseType: Free NativeFormatImporter: userData: assetBundleName: assetBundleVariant:
40,242
https://github.com/jblab/password-validator-bundle/blob/master/src/Exception/PasswordSpecialCharacterException.php
Github Open Source
Open Source
MIT
null
password-validator-bundle
jblab
PHP
Code
17
57
<?php namespace Jblab\PasswordValidatorBundle\Exception; /** * Class PasswordValidationException * @package Jblab\PasswordValidatorBundle\Exception */ class PasswordSpecialCharacterException extends PasswordValidationException { }
29,353
https://github.com/Muhibullah-09/aws-eventbridge-vartual-lolly-app/blob/master/src/components/Layout.tsx
Github Open Source
Open Source
RSA-MD
null
aws-eventbridge-vartual-lolly-app
Muhibullah-09
TypeScript
Code
40
92
import React, { FC, ReactNode } from "react"; import Header from "./Header"; type LayoutProps = { children: ReactNode; }; const Layout: FC<LayoutProps> = ({ children }) => { return ( <div> <Header /> {children} </div> ); }; export default Layout;
19,384
https://github.com/yam-finance/synths-www/blob/master/src/composables/global.ts
Github Open Source
Open Source
MIT
2,021
synths-www
yam-finance
TypeScript
Code
302
833
import { computed, reactive, toRefs } from "vue" import { web3 } from "@/plugins/web3" let newNotificationTimer const globalState = reactive({ //Screen width screenWidth: 0 as number, //Block NUmber blockNumber: 0 as number, //Notifications isNotificationOpen: false as boolean, notificat...
32,396
https://github.com/hmcts/unspec-service/blob/master/src/main/java/uk/gov/hmcts/reform/unspec/validation/OrgPolicyValidator.java
Github Open Source
Open Source
MIT
2,021
unspec-service
hmcts
Java
Code
54
214
package uk.gov.hmcts.reform.unspec.validation; import org.springframework.stereotype.Component; import uk.gov.hmcts.reform.ccd.model.OrganisationPolicy; import uk.gov.hmcts.reform.unspec.enums.YesOrNo; import java.util.ArrayList; import java.util.List; @Component public class OrgPolicyValidator { public List<St...
42,865
https://github.com/liuzw1024/tms-koa/blob/master/sample.js
Github Open Source
Open Source
MIT
2,020
tms-koa
liuzw1024
JavaScript
Code
47
147
const log4jsConfig = require('./config/log4js') const log4js = require('log4js') log4js.configure(log4jsConfig) const { TmsKoa } = require('./lib/app') const tmsKoa = new TmsKoa() const middleware = async (ctx, next) => { const start = Date.now() await next() const ms = Date.now() - start ctx.set('X-Response...
50,763
https://github.com/vsariola/adam/blob/master/capture/debug.h
Github Open Source
Open Source
MIT
2,022
adam
vsariola
C
Code
170
524
// This header contains some useful functions for debugging OpenGL. // Remember to disable them when building your final releases. #ifdef OPENGL_DEBUG #include <windows.h> #include <GL/gl.h> #include "glext.h" #define STRINGIFY2(x) #x // Thanks sooda! #define STRINGIFY(x) STRINGIFY2(x) #define CHECK_ERRORS() assertGl...
13,491
https://github.com/ltbrdg/LightBridgeAndChadBishop/blob/master/resources/views/pages/make-belief-branding.twig
Github Open Source
Open Source
MIT
null
LightBridgeAndChadBishop
ltbrdg
Twig
Code
48
112
{% extends template | default('page') %} {% set title = 'Make Belief Branding' %} {% set categories = 'brand photography print illustration' %} {% set thumbnail_size = 'small' %} {% set thumbnail_name = '1389081017.jpg' %} {% block page_content %} <img src="/image/original/1389081017.jpg" alt="Make Belief Branding"...
48,359
https://github.com/MarcTG/Seguro/blob/master/routes/web.php
Github Open Source
Open Source
MIT
null
Seguro
MarcTG
PHP
Code
167
2,358
<?php Route::get('/', 'Auth\LoginController@showLoginForm'); Route::post('/login', 'Auth\LoginController@login')->name('login'); Route::middleware(['auth'])->group(function(){ Route::post('/logout', 'Auth\LoginController@logout')->name('logout'); Route::get('dashboard', 'DashboardController@index')->na...
48,872
https://github.com/mod1fy/TheraLang/blob/master/TheraLang.DLL/Models/ProjectTypeModel.cs
Github Open Source
Open Source
MIT
null
TheraLang
mod1fy
C#
Code
16
41
namespace TheraLang.DLL.Models { public class ProjectTypeModel { public string TypeName { get; set; } } }
14,974
https://github.com/webwizard0822/LMS-Masterstudy/blob/master/stm-lms-templates/account/private/student.php
Github Open Source
Open Source
MIT
null
LMS-Masterstudy
webwizard0822
PHP
Code
58
347
<?php if ( ! defined( 'ABSPATH' ) ) exit; //Exit if accessed directly ?> <?php /** * @var $current_user */ ?> <div class="row"> <div class="col-md-4 col-sm-12"> <?php STM_LMS_Templates::show_lms_template('account/private/parts/info', compact('current_user')); ?> </div> <div class="col-md-8 col-sm...
49,290
https://github.com/isabella232/helix-harmonicabsorber-reports/blob/master/report_00033_2021-03-01T14-23-16.841Z/interactive/comparison/histogram/1_vs_2.gnuplot
Github Open Source
Open Source
W3C, Apache-2.0
2,021
helix-harmonicabsorber-reports
isabella232
Gnuplot
Code
72
234
reset $astroCached <<EOF 16502.38717422109 100 EOF $astroInner <<EOF 11001.591449480726 100 EOF set key outside below set boxwidth 5500.795724740363 set xrange [9481.04:14959.5125] set yrange [0:100] set trange [0:100] set style fill transparent solid 0.5 noborder set parametric set terminal svg size 640, 500 enhan...
33,511
https://github.com/erickwang108/js-web-tools/blob/master/src/__tests__/domElementPosition.test.js
Github Open Source
Open Source
MIT
2,020
js-web-tools
erickwang108
JavaScript
Code
702
2,251
import { scrollLeft, getOffset, offsetParent, scrollPrarent, position, } from '../domElementPosition'; import css from '../domElementStyle'; function createMockElement(width, height, top = 0, left = 0) { const newEle = document.createElement("div"); newEle.style.cssText = `width:${width}px;height:${heigh...
43,430
https://github.com/RonnChyran/java-stuff/blob/master/com/ronnchyran/ics3u1/arrays/allarrays/AllArrays3.java
Github Open Source
Open Source
Unlicense
null
java-stuff
RonnChyran
Java
Code
118
289
/* File Name: AllArrays3.java Name: Ronny Chan Class: ICS3U1-31 (B) Date: April 5, 2016 Description: Fills array with values, and reverses them. Notes: The length of one tab (\t) will treated as 5 spaces (c) 2016 Ronny Chan Licensed under the MIT License */ import ...
2,756
https://github.com/Kri-Ol/Convolution-of-Distributions/blob/master/ConvolutionPERT/PERT.cs
Github Open Source
Open Source
MIT
null
Convolution-of-Distributions
Kri-Ol
C#
Code
105
303
using System; using System.Diagnostics; namespace Convolution { // implemented according to https://en.wikipedia.org/wiki/PERT_distribution class PERT { public static double PDF(double x, double min, double mod, double max) { Debug.Assert(min < max); Debug.Assert(mod...
34,334
https://github.com/andreyk0/mks-tft32-l-v3.0/blob/master/src/consts.rs
Github Open Source
Open Source
MIT
2,021
mks-tft32-l-v3.0
andreyk0
Rust
Code
8
41
use stm32f1xx_hal::time::Hertz; pub const SYS_FREQ: Hertz = Hertz(72_000_000);
24,246
https://github.com/tody411/SimpleMeshViewer/blob/master/src/command/FindExtremePoiintsCommand.cpp
Github Open Source
Open Source
MIT
null
SimpleMeshViewer
tody411
C++
Code
340
1,112
/*! \file FindExtremePoiintsCommand.cpp \author Tody FindExtremePoiintsCommand definition. date 2015/12/22 */ #include "FindExtremePoiintsCommand.h" #include <iostream> #include "ColorMap.h" #include "EigenUtil.h" void FindExtremePoiintsCommand::setupImp() { Mesh* mesh = _scene->mesh(); ...
18,592
https://github.com/codefollower/Open-Source-Research/blob/master/Javac2007/流程/code/021Symbol/TypeSymbol.java
Github Open Source
Open Source
Apache-2.0
2,022
Open-Source-Research
codefollower
Java
Code
461
1,082
/** A class for type symbols. Type variables are represented by instances * of this class, classes and packages by instances of subclasses. */ public static class TypeSymbol extends Symbol implements TypeParameterElement { // Implements TypeParameterElement because type parameters...
35,538
https://github.com/teetrinkers/eisbaer/blob/master/app/src/main/java/de/theess/eisbaer/log/NoLogTree.kt
Github Open Source
Open Source
CC-BY-4.0, MIT
2,021
eisbaer
teetrinkers
Kotlin
Code
24
68
package greenberg.moviedbshell.logging import timber.log.Timber class NoLogTree : Timber.Tree() { override fun log(priority: Int, tag: String?, message: String, t: Throwable?) { // no-op } }
39,336
https://github.com/siliu-group/pic-challenge-baseline/blob/master/lib/stanford_pic.py
Github Open Source
Open Source
MIT
2,021
pic-challenge-baseline
siliu-group
Python
Code
762
3,144
""" Let's get the relationships yo """ import torch import torch.nn as nn import torch.nn.parallel from torch.autograd import Variable from torch.nn import functional as F from lib.surgery import filter_dets_mask from lib.fpn.proposal_assignments.rel_assignments import rel_assignments from lib.pytorch_misc import aran...
46,737
https://github.com/mypebble/crm-browser-extension/blob/master/src/collections/entity.js
Github Open Source
Open Source
FSFAP
null
crm-browser-extension
mypebble
JavaScript
Code
45
167
import Bb from 'backbone'; export default Bb.Collection.extend({ url: function(){ return `{{ crm_location }}/entity/?search=${this.search}`; }, parse: function(r){ return r['results']; }, fetch: function(){ if(this.isFetching) return; else{ this.isFetchin...
21,172
https://github.com/VictorEDA/alpha/blob/master/src/main/java/org/alpha/entities/BaseEntity.java
Github Open Source
Open Source
Apache-2.0
null
alpha
VictorEDA
Java
Code
447
1,090
package org.alpha.entities; import java.io.Serializable; import java.util.Date; import javax.persistence.Column; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.MappedSuperclass; import javax.persistence.PrePersist; import javax.p...
35,460
https://github.com/LaudateCorpus1/More/blob/master/ByteString/ByteString.cs
Github Open Source
Open Source
MIT
2,021
More
LaudateCorpus1
C#
Code
1,113
2,798
// © Copyright 2016 HP Development Company, L.P. // SPDX-License-Identifier: MIT using System; namespace More { public static class Ascii { public static Boolean StartsWithAscii(this String value, Byte[] text, UInt32 offset, UInt32 length) { return StartsWithAscii(value, 0, text, o...
31,649
https://github.com/lrfbeyond/slim-admin-api/blob/master/app/Controllers/HomeController.php
Github Open Source
Open Source
MIT
2,020
slim-admin-api
lrfbeyond
PHP
Code
517
1,955
<?php namespace App\Controllers; use Psr\Log\LoggerInterface; use Slim\Http\Request; use Slim\Http\Response; use App\Models\Article; use App\Models\Member; use App\Models\Comment; use App\Models\Log; use App\Models\Catelog; class HomeController extends Controller { public function index($req, $res) { ...
10,712
https://github.com/ling1726/Omex/blob/master/src/Extensions/Logging/EmptyExecutionContext.cs
Github Open Source
Open Source
MIT
null
Omex
ling1726
C#
Code
299
820
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. using System; using System.Diagnostics; using System.Net; using System.Net.Sockets; using System.Reflection; namespace Microsoft.Omex.Extensions.Logging { /// <summary> /// Base class for machine information /// </summ...
5,234
https://github.com/ryancreatescopy/rimble-ui/blob/master/src/ToastMessage/IconNegative.js
Github Open Source
Open Source
MIT
null
rimble-ui
ryancreatescopy
JavaScript
Code
36
93
import React, { Component } from 'react' import styled from 'styled-components' import { ReactComponent as NegativeIcon } from './icon-negative.svg' const WrappedIconNegative = (props) => ( <NegativeIcon {...props} /> ) const IconNegative = styled(WrappedIconNegative)`` export default IconNegative
22,119
https://github.com/vimalcvs/Hindi-to-English-Translation/blob/master/app/src/main/java/com/vimalinc/hieg/menu/SpaceItem.java
Github Open Source
Open Source
Apache-2.0
2,021
Hindi-to-English-Translation
vimalcvs
Java
Code
92
309
package com.vimalinc.hieg.menu; import android.content.Context; import android.view.View; import android.view.ViewGroup; /** * Created by VIMALCVS on 29.04.2019. */ public class SpaceItem extends DrawerItem<SpaceItem.ViewHolder> { private int spaceDp; public SpaceItem(int spaceDp) { this.spaceDp =...
23,188
https://github.com/itublockchain/ava-hack-barca-frontend/blob/master/src/hooks/useStatus.js
Github Open Source
Open Source
MIT
null
ava-hack-barca-frontend
itublockchain
JavaScript
Code
178
437
import { useMemo } from "react"; import { useState } from "react"; const PENDING = "PENDING"; const SUCCESS = "SUCCESS"; const FAIL = "FAIL"; /** * @typedef {('PENDING'|'SUCCESS'|'FAIL')} statuses */ /** * Callback for updating status state * * @callback updateStatus * @param {any} [data] */ /** * Status ob...
46,252
https://github.com/challe535/IntraJ/blob/master/testfiles/CFG/IfStmt/IfStmt02/IfStmt02.java
Github Open Source
Open Source
BSD-3-Clause
2,022
IntraJ
challe535
Java
Code
22
48
public class IfStmt02 { { boolean b = true; if (b) { int a; } else { int c; } } }
18,144
https://github.com/leafcxy/BrnMall/blob/master/Libraries/BrnMall.Core/Asyn/State/UpdatePVStatState.cs
Github Open Source
Open Source
MIT
2,022
BrnMall
leafcxy
C#
Code
201
535
using System; namespace BrnMall.Core { /// <summary> /// 更新PV统计要使用的信息类 /// </summary> [Serializable] public class UpdatePVStatState { private int _storeid;//店铺id private bool _ismember;//是否为会员 private int _regionid;//区域id private string _browser;//浏览器 pr...
46,650
https://github.com/korgan00/NumericalMethods/blob/master/Hoja1MetodosNumericos/SerieSumPI.m
Github Open Source
Open Source
MIT
2,018
NumericalMethods
korgan00
MATLAB
Code
26
92
function p = SerieSumPI (N) M = [0:1:N]; pArr = arrayfun(@(m) ((16^-m) *( 4/(8*m+1) - (2/(8*m+4) + 1/(8*m+5) + 1/(8*m+6)) )), M); p = sum(pArr); endfunction
21,309
https://github.com/triesch/synaptic-competition/blob/master/changeInPoolSize.py
Github Open Source
Open Source
MIT
null
synaptic-competition
triesch
Python
Code
518
1,571
#!/usr/bin/env python # Simple model of receptors diffusing in and out of synapses. # Simulation of the Dynamcis with the Euler method. # This simulates the effect of a sudden change in the pool size # # Jochen Triesch, January-April 2017 import numpy as np from matplotlib import pyplot as plt # parameters N = 3 ...
1,942
https://github.com/v3p/Cactus-game/blob/master/data/class/console.lua
Github Open Source
Open Source
MIT
2,020
Cactus-game
v3p
Lua
Code
1,456
5,060
local console = {} --==[[ < INTERNAL METHODS > ]]==-- function console:updateTextboxIndicator() self.textBox.indicator.x = self.textBox.x + self.margin.x + self.font:getWidth(self.sub(self.textBox.text, 1, self.textBox.indicator.position)) - 2 if self.textBox.indicator.x > self.textBox.x + self.textBox.width - self...
39,491
https://github.com/kubesphere/kubesphere/blob/master/vendor/sigs.k8s.io/controller-runtime/pkg/envtest/crd.go
Github Open Source
Open Source
Apache-2.0
2,023
kubesphere
kubesphere
Go
Code
1,730
4,704
/* Copyright 2018 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
25,338
https://github.com/JPedroSilveira/INF01124-Classificacao-e-Pesquisa-de-Dados-2019-2-UFRGS/blob/master/Hash/AnyTypeHashTable.py
Github Open Source
Open Source
MIT
null
INF01124-Classificacao-e-Pesquisa-de-Dados-2019-2-UFRGS
JPedroSilveira
Python
Code
323
823
# coding=utf-8 import State class AnyTypeHashTable: # Cria uma HashTable baseado no tamanho passado def __init__(self, size): self.size = size self.dictionary = [None] * size self.data = [None] * size self.used = [False] * size def position_calculator(self, key): s...
50,036
https://github.com/ziyu123/kaldi_feature/blob/master/include/mkl_vsl.f90
Github Open Source
Open Source
Apache-2.0
2,021
kaldi_feature
ziyu123
Fortran Free Form
Code
10,285
45,290
! file: mkl_vsl.fi ! ! Copyright(C) 2006-2015 Intel Corporation. All Rights Reserved. ! ! The source code, information and material ("Material") contained herein is ! owned by Intel Corporation or its suppliers or licensors, and title to such ! Material remains with Intel Corporation or its suppliers or licens...
21,284
https://github.com/NghiaTranUIT/eSales/blob/master/eSales/FeTuoiNoView.m
Github Open Source
Open Source
MIT, Apache-2.0, PHP-3.01
2,013
eSales
NghiaTranUIT
Objective-C
Code
415
2,000
// // FeTuoiNoView.m // eSales // // Created by Nghia Tran on 9/10/13. // Copyright (c) 2013 Fe. All rights reserved. // #import "FeTuoiNoView.h" #import "FeTuoiNoCell.h" #import "FeDatabaseManager.h" @interface FeTuoiNoView() @property (strong, nonatomic) NSMutableArray *arrTuoiNo; -(void) setupDefaultView; @e...
39,312
https://github.com/cirocosta/buildkit/blob/master/source/containerimage/pull.go
Github Open Source
Open Source
Apache-2.0
2,022
buildkit
cirocosta
Go
Code
719
2,373
package containerimage import ( "context" "encoding/json" "runtime" "github.com/containerd/containerd/content" "github.com/containerd/containerd/diff" "github.com/containerd/containerd/images" "github.com/containerd/containerd/leases" "github.com/containerd/containerd/platforms" "github.com/docker/distributi...
26,676
https://github.com/cool-dude/leetcode/blob/master/src/OO_Design/ProdCons.java
Github Open Source
Open Source
MIT
null
leetcode
cool-dude
Java
Code
81
386
import java.util.*; import java.io.*; public class ProdCons{ protected LinkedList lst=new LinekdList(); protected int MAX=10; protected boolean done=false; class Producer extends Thread{ public void run(){ while(true){ synchornized(lst){ while(lst.size()==MAX) //queue full try{ Syste...
50,856
https://github.com/scoriiu/0x-starter-project/blob/master/src/scenarios/match_orders.ts
Github Open Source
Open Source
Apache-2.0
2,019
0x-starter-project
scoriiu
TypeScript
Code
680
2,159
import { assetDataUtils, BigNumber, ContractWrappers, generatePseudoRandomSalt, Order, orderHashUtils, signatureUtils, } from '0x.js'; import { Web3Wrapper } from '@0x/web3-wrapper'; import { NETWORK_CONFIGS, TX_DEFAULTS } from '../configs'; import { DECIMALS, NULL_ADDRESS, ZERO } from '../...
11,419
https://github.com/BrPedro-dev/WebCrud/blob/master/src/main/resources/static/index.js
Github Open Source
Open Source
MIT
null
WebCrud
BrPedro-dev
JavaScript
Code
358
1,146
$(document).ready(function () { saveButton() reset() research() resetcampus() clickdelete() }) function saveButton() { $("#save").click(function () { var id = $("#userID").val() var name = $("#name").val() var age = $("#age").val() if (validAge(parseInt(age) &&...
30,047
https://github.com/leehoang2000/tank-game-with-network/blob/master/client/message/HealthValueMessage.java
Github Open Source
Open Source
MIT
null
tank-game-with-network
leehoang2000
Java
Code
50
151
package client.message; import java.net.DatagramSocket; import java.net.InetSocketAddress; import java.net.SocketException; import java.net.UnknownHostException; public class HealthValueMessage extends Message { public HealthValueMessage(DatagramSocket senderSocket, InetSocketAddress destination, int playerID, ...
19,516
https://github.com/yanuarpmbd/arsip/blob/master/resources/views/yanjin/pinjam/edit-pinjam.blade.php
Github Open Source
Open Source
MIT
null
arsip
yanuarpmbd
PHP
Code
138
819
<div class="row"> <div class="col-lg-12"> <div class="ibox float-e-margins"> <div class="ibox-title"> <h5>Status Peminjaman</h5> <div class="ibox-tools"> <a class="collapse-link"> <i class="fa fa-chevron-up"></i> ...
26,000
https://github.com/Ermlab/python-ddd/blob/master/src/modules/catalog/module.py
Github Open Source
Open Source
MIT
2,022
python-ddd
Ermlab
Python
Code
114
480
from seedwork.application.modules import BusinessModule from .domain.repositories import ListingRepository from modules.catalog.application.query.get_all_listings import ( GetAllListings, get_all_listings, ) from modules.catalog.application.query.get_listings_of_seller import ( GetListingsOfSeller, g...
38,020
https://github.com/candyninja001/pypad/blob/master/pypad/dungeon/floor_modifier/type_bonus_fm.py
Github Open Source
Open Source
MIT
null
pypad
candyninja001
Python
Code
89
335
from . import FloorModifier, FloorModifierLoader from ...monster_type import MonsterType from ...common import binary_to_list class TypeBonusFM(FloorModifier): @classmethod def handles(self, name): return name == 'btype' def parse_value(self): args = self.value.split(';') self.type...
49,834
https://github.com/EnEff-BIM/EnEffBIM-Framework/blob/master/MapAPI/mapapi/MapClasses.py
Github Open Source
Open Source
MIT
2,022
EnEffBIM-Framework
EnEff-BIM
Python
Code
3,783
13,151
import os import sys rootPath = os.path.dirname(__file__) try: default_path = rootPath[:rootPath.rfind("EnEffBIM-Framework")] modulePath = os.path.join(default_path, "EnEffBIM-Framework\\SimModel_Python_API\\" "\\simmodel_swig\\Release") os.environ['PATH'] = ';'.join([modulePath, o...
2,731
https://github.com/x4Cx58x54/network-planning/blob/master/interface/npGraphInterface/npGraphInterface/My Project/MainForm.Designer.vb
Github Open Source
Open Source
Apache-2.0
2,021
network-planning
x4Cx58x54
Visual Basic
Code
911
4,504
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> Partial Class MainForm Inherits System.Windows.Forms.Form 'Form overrides dispose to clean up the component list. <System.Diagnostics.DebuggerNonUserCode()> Protected Overrides Sub Dispose(ByVal disposing As Boolean) Try ...
13,739
https://github.com/xundeenergie/myshellconfig/blob/master/bash_completion.d/setproxy
Github Open Source
Open Source
MIT
2,021
myshellconfig
xundeenergie
Shell
Code
59
234
#!/bin/bash function _proxycreds() { KEYS="" for KEY_DIR in ${SETPROXY_CREDS_DIRS[*]};do KEYS="${KEYS} $(find ${KEY_DIR} -type f -name "*.conf" -exec basename {} \; 2>/dev/null |sed 's/\.conf$//')" done echo $KEYS } function _proxyfiles() { COMPREPLY=() local CUR KEYS CUR="${COMP_...
7,057
https://github.com/sergiopvilar/limarka-projeto-integrador/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,020
limarka-projeto-integrador
sergiopvilar
Ignore List
Code
3
13
xxx-* Gemfile.lock *.pdf
35,656
https://github.com/gatsby-tv/icons/blob/master/src/components/Playlist.tsx
Github Open Source
Open Source
MIT
null
icons
gatsby-tv
TypeScript
Code
35
193
import * as React from "react"; function SvgPlaylist() { return ( <svg id="gz-svg-playlist" aria-hidden="true" viewBox="0 0 540 540" width="1em" height="1em" > <path id="playlist" fill="currentcolor" d="M235.406 71.731v49.618h255.735v135.767H540V71....
28,882
https://github.com/jack1981/BABEL/blob/master/benchmark-data-generation/src/main/java/tn/lipsic/babel/package-info.java
Github Open Source
Open Source
Apache-2.0
2,020
BABEL
jack1981
Java
Code
2
13
package tn.lipsic.babel;
1,156
https://github.com/clun/spring-data-cassandra/blob/master/spring-data-cassandra/src/test/java/org/springframework/data/cassandra/core/cql/ReactiveCqlTemplateUnitTests.java
Github Open Source
Open Source
Apache-2.0
2,020
spring-data-cassandra
clun
Java
Code
1,728
9,526
/* * Copyright 2016-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
3,898
https://github.com/sungdoolim/kotlin_practice/blob/master/prackot/src/prj2.java
Github Open Source
Open Source
Apache-2.0
null
kotlin_practice
sungdoolim
Java
Code
710
3,058
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Scan...
6,531
https://github.com/GBLodb/pyrotech-1.12/blob/master/src/main/java/com/codetaylor/mc/pyrotech/modules/core/event/StrawBedEventHandler.java
Github Open Source
Open Source
Apache-2.0
2,020
pyrotech-1.12
GBLodb
Java
Code
189
813
package com.codetaylor.mc.pyrotech.modules.core.event; import com.codetaylor.mc.pyrotech.modules.core.ModuleCore; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; import net.minecraft.block.Block; import net.minecraft.block.state.IBlockState; import net.minecraf...
27,125
https://github.com/evvvrado/enafdigital/blob/master/public/site/css/scss/_hoteis.scss
Github Open Source
Open Source
MIT
null
enafdigital
evvvrado
SCSS
Code
303
1,154
.s_hoteis { padding-top: 8.95rem; padding-bottom: 6.35rem; .container-fav { .title { margin-bottom: 1.9rem; width: 100%; @include flex(row, center, space-between); h4 { color: $color-second; font-weight: 60x "" 0; font-size: 50px; line-height: 59px; ...
40,954
https://github.com/thefoo547/TheRentDesktop/blob/master/TheRent/src/therent/view/client/control_HboxBusqueda.java
Github Open Source
Open Source
BSD-3-Clause
null
TheRentDesktop
thefoo547
Java
Code
51
158
package therent.view.client; import com.jfoenix.controls.JFXTextField; import javafx.fxml.FXML; public class control_HboxBusqueda { @FXML private JFXTextField tfBuscar; //Evento para mandar el valor que se desea buscar al controlador de la ventana principal de cliente //Ya que ahi tenemos el menu de...
40,090
https://github.com/naomi-sharif/personal/blob/master/src/scss/components/_nav-bar-wrapper.scss
Github Open Source
Open Source
MIT
null
personal
naomi-sharif
SCSS
Code
13
52
.nav-bar-wrapper { position: sticky; top: 0; background-color: #fff; width: 100%; z-index: $z-index-1; }
33,012
https://github.com/GerasimovDG/bd_lab/blob/master/src/items/item.interface.ts
Github Open Source
Open Source
MIT
null
bd_lab
GerasimovDG
TypeScript
Code
26
74
export interface Item { id: number; lastName: string; firstName: string; middleName: string; birthday: Date; averageMark: number; info?: { address: string, phone: string, login: string, }; }
35,839
https://github.com/ychxp/parking-control-admin/blob/master/src/pages/chargeStandard/index.tsx
Github Open Source
Open Source
Apache-2.0
2,020
parking-control-admin
ychxp
TSX
Code
347
1,242
import React, { useState, useCallback, useEffect } from 'react'; import { Tabs } from 'antd'; import { PageHeaderWrapper } from '@ant-design/pro-layout'; import { ChargingStandardTable, ChargingStandard } from './data'; import { setChargingStandard, requestChargingStandard } from './serves'; import RecordTable from './...
35,129
https://github.com/huangboju/Pandora/blob/master/Demos/WebView/WKWebViewSimpleDemo-master/2015-01-31-WKWebViewDemo/2015-01-31-WKWebViewDemo/JSViewController.m
Github Open Source
Open Source
MIT
2,023
Pandora
huangboju
Objective-C
Code
221
966
// // JSViewController.m // 2015-01-31-WKWebViewDemo // // Created by TangJR on 15/1/31. // Copyright (c) 2015年 tangjr. All rights reserved. // #import "JSViewController.h" #import <WebKit/WebKit.h> #define HTML @"<head></head><img src='http://www.nsu.edu.cn/v/2014v3/img/background/3.jpg' />" @interface JSViewCo...
19,830
https://github.com/takakv/vigenere-cryptanalysis/blob/master/Cryptanalysis/Analysis/Text.cs
Github Open Source
Open Source
MIT
null
vigenere-cryptanalysis
takakv
C#
Code
418
1,155
using System; using System.Collections.Generic; using System.Text; using System.Text.RegularExpressions; namespace Analysis { public readonly struct Text { private readonly string _text; private readonly int _length; private readonly int[] _frequencies; public Text(string text...
10,613
https://github.com/fossabot/ThScoreFileConverter/blob/master/ThScoreFileConverterTests/Models/Th10/Stubs/ScoreDataStub.cs
Github Open Source
Open Source
BSD-2-Clause
null
ThScoreFileConverter
fossabot
C#
Code
95
289
using System; using System.Collections.Generic; using System.Linq; using ThScoreFileConverter.Models.Th10; namespace ThScoreFileConverterTests.Models.Th10.Stubs { internal class ScoreDataStub<TStageProgress> : IScoreData<TStageProgress> where TStageProgress : struct, Enum { public ScoreDataStu...
23,472
https://github.com/jfach/nautobot/blob/master/nautobot/ipam/tests/test_querysets.py
Github Open Source
Open Source
Apache-2.0
2,022
nautobot
jfach
Python
Code
431
5,299
import netaddr from nautobot.ipam.models import Prefix, Aggregate, IPAddress, RIR from nautobot.utilities.testing import TestCase class AggregateQuerysetTestCase(TestCase): queryset = Aggregate.objects.all() @classmethod def setUpTestData(cls): rir = RIR.objects.create(name="RIR 1", slug="rir-1...
3,646
https://github.com/lambda-limbo/c-iterators/blob/master/CMakeLists.txt
Github Open Source
Open Source
MIT
2,018
c-iterators
lambda-limbo
CMake
Code
20
156
cmake_minimum_required(VERSION 2.8) project("Iterators") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin") if(WIN32) set(EXEC_NAME "iterator") else() set(EXEC_NAME "iterator.out") endif() set(SRC src/main.c src/include/iterator.h src/include/iterator.c src/include/linked_list.h src/include/li...
27,348
https://github.com/dimpase/tt-fort/blob/master/print/putstrmodule.F90
Github Open Source
Open Source
MIT
2,021
tt-fort
dimpase
Fortran Free Form
Code
350
746
#ifndef MATLAB MODULE PUTSTRMODULE ! DUMMY VERSION ! An auxilliary module that accompanies DISPMODULE. This module contains dummy versions of the ! subroutines putstr and putnl that do nothing. It is needed to avoid an "undefined symbol" link ! error for these. In addition it defines the named constant (or para...
30,830
https://github.com/Projeto-Game-Awake/Acao-e-Reacao/blob/master/js/init.js
Github Open Source
Open Source
MIT
null
Acao-e-Reacao
Projeto-Game-Awake
JavaScript
Code
25
79
var scene; var gameConfig = { type: Phaser.AUTO, scale: { parent: "FCG-board", width: 1200, height: 700, }, scene: [first,next,end], }; var game = new Phaser.Game(gameConfig);
25,369
https://github.com/waitingworld/ruoyi-server/blob/master/ruoyi-activiti/src/main/java/com/ruoyi/activiti/listener/ActivitiExecutionListener.java
Github Open Source
Open Source
MIT
null
ruoyi-server
waitingworld
Java
Code
58
302
package com.ruoyi.activiti.listener; import org.activiti.engine.delegate.DelegateExecution; import org.activiti.engine.delegate.ExecutionListener; import org.activiti.engine.delegate.Expression; import org.springframework.stereotype.Component; /** * 执行监听器 */ @Component public class ActivitiExecutionListener impleme...
48,685
https://github.com/hirakata-farm/GeoGlyphRail/blob/master/RSC/lines/10ES12ES/10ES_3EeastboundRF.geom
Github Open Source
Open Source
MIT
null
GeoGlyphRail
hirakata-farm
GLSL
Code
18
217
#T,datetime:Sat Aug 28 2021 23:33:55 GMT+0900 (日本標準時) 50.643941,3.071077,71.149738,x,F #P,N 50.639322,3.075508,66.154435,x,F #P,tn=y:hs=y:gu=1435:ms=200:ly=-1: 50.639226,3.075599,66.635179,Lille Europe Pass,V #P,tn=y:hs=y:gu=1435:ms=200:ly=-1: 50.637553,3.077184,74.025536,x,F #P,tn=y:hs=y:gu=1435:ms=200:ly=-1: 50.63718...
47,329
https://github.com/skylark-integration/skylark-maqetta/blob/master/.original/maqetta-Release10.0.2/maqetta.core.client/WebContent/orion/editor/jsTemplateContentAssist.js
Github Open Source
Open Source
MIT, BSD-3-Clause, AFL-2.1
2,020
skylark-maqetta
skylark-integration
JavaScript
Code
1,082
2,832
/******************************************************************************* * @license * Copyright (c) 2011, 2012 IBM Corporation and others. * Copyright (c) 2012 VMware, Inc. * All rights reserved. This program and the accompanying materials are made * available under the terms of the Eclipse Public License...
15,542
https://github.com/nguyenngocduy1981/quiz-admin-frontend/blob/master/app/containers/SectionAddPage/saga.js
Github Open Source
Open Source
MIT
null
quiz-admin-frontend
nguyenngocduy1981
JavaScript
Code
366
1,143
import { call, put, takeLatest, } from 'redux-saga/effects'; import {push} from 'react-router-redux'; import request from 'utils/request'; import { CATEGORIES, CHILD_CATEGORY, SECTION_CHECK, SECTIONS } from '../../constants/service-model'; import { CHECK_EXISTED_SECTION, GO_HOME, LOAD_CATEGORIES, LOAD_CATEG...
2,594
https://github.com/bitmark-inc/bitmark-mobile-android/blob/master/app/build.gradle
Github Open Source
Open Source
ISC
2,020
bitmark-mobile-android
bitmark-inc
Gradle
Code
794
4,173
apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt' apply from: 'versioning.gradle' apply from: '../autodimension.gradle' apply plugin: 'io.fabric' apply plugin: 'io.sentry.android.gradle' android { compileSdkVersion root...
7,258
https://github.com/mohabtarig2/blog/blob/master/resources/js/tenders/offerTender.vue
Github Open Source
Open Source
MIT
null
blog
mohabtarig2
Vue
Code
97
487
<template> <div class="container"> <li class="list-group-item" > <span class="h5 text-primary font-weight-bold">{{com_id}}</span> <i class="fa fa-star "></i> <i class="fa fa-star "></i> <i class="fa fa-star "></i> <i class="fa fa-star text-op"></i> </li> <li cl...
41,075
https://github.com/qussarah/declare/blob/master/idea/testData/quickfix/leakingThis/accessOpenPropertyClass.kt
Github Open Source
Open Source
Apache-2.0
2,021
declare
qussarah
Kotlin
Code
17
37
// "Make 'My' final" "true" open class My(open val x: Int) { val y = <caret>x }
15,269
https://github.com/AdrianWR/libasm/blob/master/src/ft_strcpy.s
Github Open Source
Open Source
MIT
null
libasm
AdrianWR
GAS
Code
282
611
; **************************************************************************** # ; _ _ ___ _ _ _ _ # ; | || |__ \ | (_) | | | | # ; | || |_ ) | __| |_ ___ __ _ ___ ___ ___ _ __ ___ | |__ | |_ _ ...
5,902
https://github.com/amolloy/LinkAgainstTheWorldStudio/blob/master/Frameworks/TileMap/TileMap/TileMapLoader.swift
Github Open Source
Open Source
MIT
2,016
LinkAgainstTheWorldStudio
amolloy
Swift
Code
239
733
// // TileMapLoader.swift // TileMap // // Created by Andrew Molloy on 8/9/15. // Copyright © 2015 Andrew Molloy. All rights reserved. // import Foundation extension TileMap { enum Error : ErrorType { case InvalidHeaderError } public func open() throws -> Bool { inputStream.open() try loadFileHeader(i...
29,314
https://github.com/gatherdigital/endpoint/blob/master/spec/lib/endpoint/soap/client_spec.rb
Github Open Source
Open Source
MIT
null
endpoint
gatherdigital
Ruby
Code
616
2,357
require 'spec_helper' describe Endpoint::Soap::Client do subject { described_class.new version, endpoint, options } let(:version) { 2 } let(:endpoint) { 'http://endpoint.com' } let(:options) { {} } let(:soap_response) {{ status: 200, body: '<Envelope><Body></Body></Envelope>' }} let(:soap_faul...
25,109
https://github.com/fmarcos8/teste-beelabs-front/blob/master/src/http/index.js
Github Open Source
Open Source
MIT
null
teste-beelabs-front
fmarcos8
JavaScript
Code
38
141
import axios from "axios"; const http = axios.create({ baseURL: process.env.VUE_APP_API_URL, timeout: 60000, headers: { "Content-Type": "application/json", "Access-Control-Allow-Origin": "*" } }); http.interceptors.response.use( response => response, error => { if (error.response) { return...
313
https://github.com/srdgame/frappe_make/blob/master/make/make/doctype/make_batch/make_batch.py
Github Open Source
Open Source
MIT
null
frappe_make
srdgame
Python
Code
96
306
# -*- coding: utf-8 -*- # Copyright (c) 2017, Dirk Chang and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import throw, _ from frappe.model.document import Document class MakeBatch(Document): def validate(self): if len(self.batch_n...
16,778
https://github.com/repetere/ts-deeplearning/blob/master/test/unit/math_js_spec.js
Github Open Source
Open Source
MIT
2,021
ts-deeplearning
repetere
JavaScript
Code
782
2,046
import chai from 'chai'; import { TensorScriptModelInterface, size, flatten, } from '../../lib/model_interface.js'; import assert from 'assert'; const expect = chai.expect; const array = { reshape: TensorScriptModelInterface.reshape, flatten, }; const reshape = array.reshape; describe('util.array', function () { ...
13,798
https://github.com/bgoonz/UsefulResourceRepo2.0/blob/master/_ORGS/NPM/node/test/sequential/test-debugger-exec-scope.js
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,022
UsefulResourceRepo2.0
bgoonz
JavaScript
Code
82
312
'use strict'; const common = require('../common'); common.skipIfInspectorDisabled(); const fixtures = require('../common/fixtures'); const startCLI = require('../common/debugger'); const assert = require('assert'); // exec .scope { const cli = startCLI([fixtures.path('debugger/backtrace.js')]); function onFata...
50,459
https://github.com/chrisesler/opentsdb-horizon/blob/master/frontend/src/app/dashboard/components/dashboard-save-dialog/_dashboard-save-dialog.theme.scss
Github Open Source
Open Source
Apache-2.0
null
opentsdb-horizon
chrisesler
SCSS
Code
47
208
@mixin dashboard-save-dialog-component-theme() { $divider: mat-color($foreground, divider); .dashboard-save-dialog { .mat-dialog-title { background-color: mat-color($other, status-success); color: mat-color($other, status-success-contrast); } } // CDK Items ...
3,228
https://github.com/gregorschatz/DataTablesSrc/blob/master/test/api/core/state.save().js
Github Open Source
Open Source
MIT
2,022
DataTablesSrc
gregorschatz
JavaScript
Code
235
727
// todo tests // - Check it exists and is a function // - Check it returns an API instance // - Check it triggers a save // - Check that when reloaded the table will reflect this saved state describe('core - state.save()', function() { dt.libs({ js: ['jquery', 'datatables'], css: ['datatables'] }); describe('C...
2,812
https://github.com/ewjoachim/procrastinate/blob/master/tests/unit/test_worker.py
Github Open Source
Open Source
MIT
2,020
procrastinate
ewjoachim
Python
Code
519
2,277
import pendulum import pytest from procrastinate import exceptions, jobs, tasks, worker pytestmark = pytest.mark.asyncio async def test_run(app, connector): class TestWorker(worker.Worker): i = 0 async def process_next_job(self): self.i += 1 if self.i == 2: ...
24,634