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/servicecatalog/crowbar-escm/blob/master/chef/cookbooks/escm/attributes/default.rb
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, Apache-2.0
2,018
crowbar-escm
servicecatalog
Ruby
Code
112
289
# # Copyright FUJITSU LIMITED 2017 # # 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 writi...
15,855
https://github.com/globaltopmedia/storefront-ui/blob/master/src/components/molecules/SfOptions/SfOptions.spec.ts
Github Open Source
Open Source
MIT
2,019
storefront-ui
globaltopmedia
TypeScript
Code
306
993
import { shallowMount } from "@vue/test-utils"; import SfOptions from "@/components/molecules/SfOptions/SfOptions.vue"; describe("SfOptions.vue", () => { it("renders options", () => { const options = [{ text: "XL", value: "XL" }]; const component = shallowMount(SfOptions, { propsData: { options...
4,766
https://github.com/rexsimiloluwah/distance_metrics/blob/master/examples/set.go
Github Open Source
Open Source
MIT
2,021
distance_metrics
rexsimiloluwah
Go
Code
61
313
package main import ( "fmt" s "github.com/rexsimiloluwah/distance_metrics/set" ) func main() { s1 := s.NewSet([]float64{0, 1, 2, 3, 4, 5}) s2 := s.NewSet([]float64{5, 6, 7, 8, 9, 10}) // Jaccard fmt.Println(s.Jaccard(s1, s2)) // Sorensen fmt.Println(s.Sorensen(s1, s2)) // Tversky fmt.Println(s.Tversky(s...
8,787
https://github.com/xuehongyanL/wanderful/blob/master/src/config/shifts/wgs84tobd09.jsx
Github Open Source
Open Source
MIT
null
wanderful
xuehongyanL
null
Spoken
14
66
import coordtransform from 'coordtransform'; function wgs84tobd09(lng, lat){ return coordtransform.gcj02tobd09(...coordtransform.wgs84togcj02(lng, lat)); } export default wgs84tobd09;
4,507
https://github.com/iantal/AndroidPermissions/blob/master/apks/playstore_apps/com_idamob_tinkoff_android/app/smali_classes2/ru/tinkoff/lib/recyclerviewpager/RecyclerViewPager.smali
Github Open Source
Open Source
Apache-2.0
2,019
AndroidPermissions
iantal
Smali
Code
2,703
18,547
.class public Lru/tinkoff/lib/recyclerviewpager/RecyclerViewPager; .super Landroid/support/v7/widget/RecyclerView; .source "SourceFile" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lru/tinkoff/lib/recyclerviewpager/RecyclerViewPager$f;, Lru/tinkoff/lib/recyclerviewp...
55,591
https://github.com/fossabot/Firework/blob/master/example/events/ready.js
Github Open Source
Open Source
MIT
2,020
Firework
fossabot
JavaScript
Code
25
84
const Firework = require('../../lib'); class ReadyEvent extends Firework.Event { constructor(bot) { super(bot, {name: 'ready'}) } run() { this.bot.logger.log('I am online!') } } module.exports = ReadyEvent;
9,867
https://github.com/youssefattia98/Research-Track-Assignment-2/blob/master/ass2.sh
Github Open Source
Open Source
MIT
2,021
Research-Track-Assignment-2
youssefattia98
Shell
Code
14
46
roscore & catkin_make & rosrun stage_ros stageros $(rospack find second_assignment)/world/my_world.world & rosrun assignment2 controller_node
27,346
https://github.com/smupyknight/laravel---superglue/blob/master/app/BillingItem.php
Github Open Source
Open Source
MIT
null
laravel---superglue
smupyknight
PHP
Code
53
202
<?php namespace App; use Illuminate\Database\Eloquent\Model; use App\Exceptions\NotEnoughCreditException; use App\CreditTransaction; class BillingItem extends Model { protected $dates = ['start_date', 'next_billing_date', 'end_date']; protected $guarded = []; public function space() { return $this->belongsT...
29,436
https://github.com/dhis2/dhis2-core/blob/master/dhis-2/dhis-web/dhis-web-commons-resources/src/main/webapp/dhis-web-commons/javascripts/ext-ux/form/MultiSelect.js
Github Open Source
Open Source
BSD-3-Clause, BSD-2-Clause
2,023
dhis2-core
dhis2
JavaScript
Code
1,374
3,508
/* This file is part of Ext JS 4 Copyright (c) 2011 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packag...
7,798
https://github.com/vladn-ma/vladn-ovs-doc/blob/master/doxygen/ovs_all/html/structraw__process__info.js
Github Open Source
Open Source
Apache-2.0
null
vladn-ovs-doc
vladn-ma
JavaScript
Code
35
258
var structraw__process__info = [ [ "cputime", "structraw__process__info.html#acc2c71c42302c180e112dafcbf1717f2", null ], [ "name", "structraw__process__info.html#a3c8a92360b733c45f59cb8fb2c8a1878", null ], [ "ppid", "structraw__process__info.html#a0370d2c6e05291ba0f3a73868ec39743", null ], [ "rss", "str...
41,004
https://github.com/GerryGithub1/tx-lcn/blob/master/tx-client/src/main/java/com/codingapi/txlcn/client/support/DefaultNotifiedUnitService.java
Github Open Source
Open Source
Apache-2.0
2,019
tx-lcn
GerryGithub1
Java
Code
231
834
/* * Copyright 2017-2019 CodingApi . * * 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 agre...
16,029
https://github.com/LittleByLittle2/VeloView/blob/master/VelodyneHDL/Testing/TestReader.cxx
Github Open Source
Open Source
Apache-2.0
2,018
VeloView
LittleByLittle2
C++
Code
970
2,910
// Copyright 2013 Velodyne Acoustics, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
4,908
https://github.com/lanceofwhichwedream/R2Z2/blob/master/modules/commands/preview.rb
Github Open Source
Open Source
MIT
2,018
R2Z2
lanceofwhichwedream
Ruby
Code
46
154
module R2Z2 module DiscordCommands module Preview extend Discordrb::Commands::CommandContainer command(:preview, description: 'Enables/Disables Preview for Twitch Notifications for R2.', usage: 'preview', min_args: 0) do |event| STREAM_DATA.previews_update(event.server.id) if STREAM_DA...
13,059
https://github.com/cyian-1756/gluasocket/blob/master/socketcore/clientsend.go
Github Open Source
Open Source
MIT
2,022
gluasocket
cyian-1756
Go
Code
51
198
package gluasocket_socketcore import ( "github.com/yuin/gopher-lua" ) func clientSendMethod(L *lua.LState) int { client := checkClient(L) data := L.ToString(2) i := L.OptInt(3, 1) j := L.OptInt(4, len(data)+1) dataBytes := []byte(data) if bytesSent, err := client.Conn.Write(dataBytes[i-1 : j-1]); err != nil {...
40,494
https://github.com/medismailben/llvm-project/blob/master/polly/test/Isl/CodeGen/20100718-DomInfo-2.ll
Github Open Source
Open Source
Apache-2.0
2,022
llvm-project
medismailben
LLVM
Code
114
392
; RUN: opt %loadPolly -polly-codegen -verify-dom-info -disable-output < %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" define void @getNonAffNeighbour() nounwind { entry: br i1 undef, label %bb, lab...
18,190
https://github.com/JiaziChen111/Ch_Synthetic/blob/master/Docs/Figures/DISvsOwn/cip_govt_BRL_10y.eps
Github Open Source
Open Source
MIT
2,021
Ch_Synthetic
JiaziChen111
PostScript
Code
20,000
45,658
%!PS-Adobe-3.0 EPSF-3.0 %%Creator: (MATLAB, The Mathworks, Inc. Version 9.10.0.1602886 \(R2021a\). Operating System: Mac OS X) %%Title: ../../Docs/Figures/DISvsOwn/cip_govt_BRL_10y.eps %%CreationDate: 2021-08-19T19:54:46 %%Pages: (atend) %%BoundingBox: 45 31 508 401 %%LanguageLevel: 3 %%EndComments %%BeginProlog %%Begi...
8,460
https://github.com/Sno-More/SnoMore/blob/master/client/src/components/JobPost.js
Github Open Source
Open Source
MIT
2,021
SnoMore
Sno-More
JavaScript
Code
434
1,440
import React, { useState } from 'react' import axios from 'axios' import Button from '@material-ui/core/Button'; import TextField from '@material-ui/core/TextField'; import Grid from '@material-ui/core/Grid'; import { makeStyles } from '@material-ui/core/styles'; import toast from 'react-hot-toast'; export default fun...
30,854
https://github.com/Jacardona1/paya_back/blob/master/database/seeds/UserSeeder.php
Github Open Source
Open Source
MIT
null
paya_back
Jacardona1
PHP
Code
64
232
<?php use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class UserSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('users')->insert([ 'name' => 'julian', 'email' => 'julicarto@ho...
36,143
https://github.com/cra-repo/marketo-api-php/blob/master/examples/email.php
Github Open Source
Open Source
MIT
2,022
marketo-api-php
cra-repo
PHP
Code
49
224
<?php /** @noinspection PhpUnhandledExceptionInspection */ declare(strict_types=1); use Cra\MarketoApi\Client; use Cra\MarketoApi\Endpoint\Asset\Email; use Cra\MarketoApi\Endpoint\Asset\Folder; use Kint\Kint as K; require_once '../vendor/autoload.php'; $config = json_decode(file_get_contents('../config.json'), tru...
7,409
https://github.com/vitek-rostislav/Symplify/blob/master/packages/CodingStandard/tests/Fixer/Import/ImportNamespacedNameFixer/wrong/wrong11.php.inc
Github Open Source
Open Source
MIT
2,018
Symplify
vitek-rostislav
PHP
Code
28
89
<?php namespace SomeNamespace; class SomeClass { /** * @var \Symfony\Request */ private $someProperty; /** * @param \Symfony\Request $request * @return \Symfony\Request */ public function someMethod($request) { } }
24,813
https://github.com/cpon00/fitcheck/blob/master/screens/Post/Save.jsx
Github Open Source
Open Source
MIT
2,022
fitcheck
cpon00
null
Spoken
268
773
import React, { Component, useState} from 'react' import { Text, View, TextInput, Image, Button } from 'react-native' import { app, db} from '../../config' import {getStorage, ref, uploadBytesResumable, getDownloadURL} from 'firebase/storage' import { getAuth } from '@firebase/auth' import { doc, collection, addDoc, s...
46,174
https://github.com/NJLangley/azure.datafactory.extensions/blob/master/ADF.Functions/DataLakeHelpers.cs
Github Open Source
Open Source
MIT
2,021
azure.datafactory.extensions
NJLangley
C#
Code
939
2,908
using System; using System.IO; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Extensions.Http; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using Azure.Identity; using Azure.Storage.Files.DataLake;...
27,221
https://github.com/sarbikbetal/coensobec_api/blob/master/views/stock.handlebars
Github Open Source
Open Source
CC-BY-3.0
2,019
coensobec_api
sarbikbetal
null
Spoken
64
335
<div class="card" style="margin:20px 10px"> <div class="card-content"> <h4 style="margin-top:0px">Full period data</h4> <h5 id="cname"style="margin-top:0px ;">Company Name</h5> <div id="full-chart" class="charter"> <canvas id="fullChart"></canvas> </div> </div> </div>...
47,901
https://github.com/lethithu1996/deploy/blob/master/node_modules/semantic-ui-react/dist/commonjs/addons/MountNode/lib/handleClassNamesChange.js
Github Open Source
Open Source
MIT
2,021
deploy
lethithu1996
JavaScript
Code
92
416
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray")); var _forEach2 = _interopRequir...
7,353
https://github.com/psrivas2/relax/blob/master/python/tvm/relax/expr_functor.py
Github Open Source
Open Source
Apache-2.0
2,022
relax
psrivas2
Python
Code
850
2,807
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
24,853
https://github.com/AKhetani-TBA/companyWork/blob/master/EMS/New folder/New EMS/Niral/HTML/js/common.js
Github Open Source
Open Source
MIT
2,016
companyWork
AKhetani-TBA
JavaScript
Code
48
252
$(document).ready(function () { /*----------------------------------------------------*/ /* Left Accordion Icon /*----------------------------------------------------*/ function toggleChevron(e) { $(e.target) .prev('.heading') .find("i.indicator") .toggleClass('glyphicon-c...
55,993
https://github.com/DetectiveSquirrel/PoE-Overlay/blob/master/src/app/modules/map/component/map-dialog/map-dialog.component.ts
Github Open Source
Open Source
MIT
2,020
PoE-Overlay
DetectiveSquirrel
TypeScript
Code
249
638
import { ChangeDetectionStrategy, Component, Inject, OnInit } from '@angular/core'; import { MAT_DIALOG_DATA } from '@angular/material/dialog'; import { WindowService, BrowserService } from '@app/service'; import { MapsService } from '@shared/module/poe/service/maps/maps.service'; import { AtlasMap, Item } from '@share...
18,918
https://github.com/ElsevierSoftwareX/SOFTX-D-20-00025/blob/master/MUSEN/Models/ParticleParticle/SimpleViscoElastic/ModelPPSimpleViscoElastic.cu
Github Open Source
Open Source
BSD-3-Clause
2,021
SOFTX-D-20-00025
ElsevierSoftwareX
null
Spoken
217
917
/* Copyright (c) 2013-2020, MUSEN Development Team. All rights reserved. This file is part of MUSEN framework http://msolids.net/musen. See LICENSE file for license and warranty information. */ #include "ModelPPSimpleViscoElastic.cuh" #include "ModelPPSimpleViscoElastic.h" #include <device_launch_parameters.h> #...
46,545
https://github.com/mkoskar/dotfiles/blob/master/.config/systemd/user/tmux@.service
Github Open Source
Open Source
Apache-2.0
2,023
dotfiles
mkoskar
null
Spoken
31
124
[Unit] Description=%N service [Service] SyslogIdentifier=%N Restart=always # 1) #Type=forking #ExecStart=/usr/bin/tmux -L %i new -d -s ! # 2) #Type=forking #ExecStart=/usr/bin/tmux -L %i start # 3) ExecStart=/usr/bin/tmux -L %i -D [Install] WantedBy=default.target
47,335
https://github.com/djamba/FocusTimer/blob/master/timer/src/main/java/ru/ischenko/roman/focustimer/notification/OnTimeChangedListener.kt
Github Open Source
Open Source
MIT
2,020
FocusTimer
djamba
Kotlin
Code
17
74
package ru.ischenko.roman.focustimer.notification interface OnTimeChangedListener { fun onTimeChanged(timerSecondsPassed: Long) fun onTimerPaused() fun onTimerResumed() fun onTimerFinish() fun onTimerCancel() }
13,577
https://github.com/chrisipa/ad-password-handler-web/blob/master/src/main/java/de/papke/ad/password/handler/web/service/PasswordExpirationService.java
Github Open Source
Open Source
MIT
2,019
ad-password-handler-web
chrisipa
Java
Code
323
936
package de.papke.ad.password.handler.web.service; import de.papke.ad.password.handler.web.model.ActiveDirectoryUser; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframew...
29,031
https://github.com/facultyai/dynamic-configuration/blob/master/src/test/scala/ai/faculty/configuration/DynamicConfigurationFromS3Spec.scala
Github Open Source
Open Source
Apache-2.0
2,018
dynamic-configuration
facultyai
Scala
Code
119
437
package ai.faculty.configuration import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.duration._ import scala.util.Try import com.amazonaws.services.s3.AmazonS3 import org.mockito.Mockito.when import org.scalatest._ import org.scalatest.concurrent._ import org.scalatestplus.mockito.Mockit...
35,796
https://github.com/dut3062796s/vant/blob/master/packages/card/src/card.vue
Github Open Source
Open Source
MIT
2,017
vant
dut3062796s
Vue
Code
56
255
<template> <div class="van-card"> <img :src="thumb" alt="" class="van-card__img"> <div class="van-card__content" :class="{'van-card__content--center': !this.$slots.footer}"> <div class="van-card__info"> <slot name="title"> <h4 v-text="title" class="van-card__title"></h4> </slot...
27,300
https://github.com/thejayhaykid/Python/blob/master/Geog5222/indexing/kdtree2a.py
Github Open Source
Open Source
MIT
null
Python
thejayhaykid
Python
Code
195
567
""" k-D trees, Part 2a. Rectangle range query of point k-D trees Contact: Ningchuan Xiao The Ohio State University Columbus, OH """ __author__ = "Ningchuan Xiao <ncxiao@gmail.com>" from kdtree1 import * def range_query_orthogonal(t, rect, found, depth=0): """ Orthogonal (rectangular) range search for point...
29,490
https://github.com/Gu-Youngfeng/EfficiencyMiner/blob/master/src/main/resources/projs/mango_parent/src/test/java/org/jfaster/mango/stat/SimpleStatMonitorTest.java
Github Open Source
Open Source
Apache-2.0
2,018
EfficiencyMiner
Gu-Youngfeng
Java
Code
269
778
/* * Copyright 2014 mango.jfaster.org * * The Mango Project licenses this file to you 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 ...
5,887
https://github.com/yueny/demo/blob/master/cas/src/main/java/com/yueny/demo/api/resp/ResourceForExecutorBean.java
Github Open Source
Open Source
Apache-2.0
null
demo
yueny
Java
Code
42
143
package com.yueny.demo.api.resp; import lombok.Data; /** * 系统资源 * * @author yueny09 <deep_blue_yang@163.com> * * @DATE 2017年10月18日 下午3:58:57 * * @param <T> */ @Data public class ResourceForExecutorBean { /** * 资源描述 */ private String desc; /** * 资源地址 */ private String resource; }
26,410
https://github.com/gboersma/jdot/blob/master/src/main/java/info/leadinglight/jdot/enums/SmoothType.java
Github Open Source
Open Source
Apache-2.0
2,021
jdot
gboersma
Java
Code
14
47
package info.leadinglight.jdot.enums; public enum SmoothType { none, avg_dist, graph_dist, power_dist, rng, spring, triangle }
28,908
https://github.com/inovait/kotlinova/blob/master/android/src/test/java/si/inova/kotlinova/ui/PlaceholderManagerTest.kt
Github Open Source
Open Source
MIT
2,020
kotlinova
inovait
Kotlin
Code
447
1,222
/* * Copyright 2020 INOVA IT d.o.o. * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib...
20,972
https://github.com/RFuentes22/ABCoclear-ACA/blob/master/app/src/main/java/com/coclearapp/pdm_project/Fragment/ExercisesFragment.kt
Github Open Source
Open Source
Apache-2.0
null
ABCoclear-ACA
RFuentes22
Kotlin
Code
338
1,916
package com.coclearapp.pdm_project.Fragment import android.media.MediaPlayer import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import androidx.lifecycle.Observer import androidx.lifecycle.ViewModelProviders import co...
27,117
https://github.com/basgrau/Transporter-Demos/blob/master/transport2008/src/main/java/de/basgrau/transporter/transport2008/UseCase2Controller.java
Github Open Source
Open Source
MIT
null
Transporter-Demos
basgrau
Java
Code
70
320
package de.basgrau.transporter.transport2008; import java.text.SimpleDateFormat; import java.util.Date; import javax.inject.Singleton; import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.core.MediaType; import de.basgrau.transporter.shared.model.M...
3,567
https://github.com/jagrutifrankdemo/async-http-client/blob/master/client/src/main/java/org/asynchttpclient/netty/NettyResponseStatus.java
Github Open Source
Open Source
Apache-2.0
2,022
async-http-client
jagrutifrankdemo
Java
Code
286
662
/* * Copyright (c) 2014 AsyncHttpClient Project. All rights reserved. * * This program is licensed to you under the Apache License Version 2.0, * and you may not use this file except in compliance with the Apache License Version 2.0. * You may obtain a copy of the Apache License Version 2.0 at * http://www.ap...
46,893
https://github.com/Bulletdrone/VulkanRenderer/blob/master/VulkanRenderer/VulkanRendererWindows/MainRenderer/Tools/ResourceLoader.cpp
Github Open Source
Open Source
MIT
null
VulkanRenderer
Bulletdrone
C++
Code
34
181
#include "ResourceLoader.h" std::vector<char> ResourceLoader::ReadFile(const std::string& filename) { std::ifstream t_File(filename, std::ios::ate | std::ios::binary); if (!t_File.is_open()) { throw std::runtime_error("failed to open file!"); } size_t t_FileSize = (size_t)t_File....
13,058
https://github.com/pamge/leetcode/blob/master/Algorithms/0xx/025 Reverse Nodes in k-Group.cpp
Github Open Source
Open Source
MIT
null
leetcode
pamge
C++
Code
157
356
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: ListNode* reverseKGroup(ListNode* head, int k) { if (k == 1) { return head; } int index = 0; ...
19,061
https://github.com/ravimhzn/SampleTestAndroidApp/blob/master/app/src/main/java/com/ravimhzn/sampletestandroidapplication/di/InternalBindingsModule.kt
Github Open Source
Open Source
Apache-2.0
2,020
SampleTestAndroidApp
ravimhzn
Kotlin
Code
84
353
package com.ravimhzn.sampletestandroidapplication.di import com.google.gson.Gson import com.google.gson.GsonBuilder import com.ravimhzn.sampletestandroidapplication.api.ApiService import dagger.Module import dagger.Provides import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.InternalCoroutine...
1,048
https://github.com/aliyun/alibabacloud-php-sdk/blob/master/ros-20190910/src/Models/CreateStackGroupRequest.php
Github Open Source
Open Source
Apache-2.0
2,023
alibabacloud-php-sdk
aliyun
PHP
Code
1,394
3,442
<?php // This file is auto-generated, don't edit it. Thanks. namespace AlibabaCloud\SDK\ROS\V20190910\Models; use AlibabaCloud\SDK\ROS\V20190910\Models\CreateStackGroupRequest\autoDeployment; use AlibabaCloud\SDK\ROS\V20190910\Models\CreateStackGroupRequest\parameters; use AlibabaCloud\SDK\ROS\V20190910\Models\Creat...
16,550
https://github.com/sicacho/skProject/blob/master/skService_v2/src/main/java/skAndroid/util/main.java
Github Open Source
Open Source
Apache-2.0
null
skProject
sicacho
Java
Code
95
295
package skAndroid.util; import java.net.URLClassLoader; import java.util.Arrays; /** * Created by khangtnse60992 on 2/13/2015. */ import java.util.Hashtable; import javax.naming.*; import javax.naming.directory.*; public class main { public static void main( String args[] ) { ...
13,560
https://github.com/nicoloso100/HouseBook/blob/master/api/src/intraestructure/models/PropertyType.ts
Github Open Source
Open Source
MIT
null
HouseBook
nicoloso100
TypeScript
Code
34
87
import { Schema, model, Document, mongo } from "mongoose"; export type IPropertyTypeModel = IPropertyType & Document; const propertyTypeSchema = new Schema({ name: String, description: String, }); const PropertyTypeModel = model<IPropertyTypeModel>("PropertyType", propertyTypeSchema); export default Property...
30,852
https://github.com/Tale-Studios/OTP-Server/blob/master/src/dclass/p3dcparser_composite2.cpp
Github Open Source
Open Source
BSD-3-Clause, BSD-2-Clause
2,021
OTP-Server
Tale-Studios
C++
Code
22
111
#include "dcParameter.cpp" #include "dcClassParameter.cpp" #include "dcArrayParameter.cpp" #include "dcSimpleParameter.cpp" #include "dcSwitchParameter.cpp" #include "dcField.cpp" #include "dcFile.cpp" #include "dcMolecularField.cpp" #include "dcSubatomicType.cpp" #include "dcSwitch.cpp" #include "dcTypedef.cpp"
42,430
https://github.com/SparkEdUAB/SparkEd/blob/master/imports/ui/components/Dashboard/Statistics/Overview.jsx
Github Open Source
Open Source
MIT
2,023
SparkEd
SparkEdUAB
JavaScript
Code
173
610
import React, { Component } from 'react'; import { PropTypes } from 'prop-types'; import { withTracker } from 'meteor/react-meteor-data'; export class OverView extends Component { static userStatistics(id) { FlowRouter.go(`/user_details/${id}`); } renderUsers() { const { users } = this.props; let co...
10,246
https://github.com/flintproject/Flint/blob/master/test/test.h
Github Open Source
Open Source
MIT
2,022
Flint
flintproject
C++
Code
436
1,969
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- vim:set ts=4 sw=4 sts=4 noet: */ #ifndef FLINT_TEST_TEST_H_ #define FLINT_TEST_TEST_H_ #include <cstdio> #include <cstdlib> #include <cstring> #include <fstream> #include <iostream> #include <iterator> #include <memory> #include <sstream> #incl...
19,326
https://github.com/hpsharon/clinic/blob/master/database/migrations/2016_07_25_074729_create_patient_therapist_pivot_table.php
Github Open Source
Open Source
MIT
null
clinic
hpsharon
PHP
Code
54
254
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreatePatientTherapistPivotTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('patient_therapist', function (Blueprint ...
8,724
https://github.com/NourAlhadi/InsiderChampionshipAPI/blob/master/database/migrations/2021_09_17_093230_create_matches_table.php
Github Open Source
Open Source
MIT
null
InsiderChampionshipAPI
NourAlhadi
PHP
Code
62
344
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateMatchesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('matches', funct...
14,431
https://github.com/SanemG/iwfp/blob/master/projects/app/lib/services/data_backend/error_data_backend.dart
Github Open Source
Open Source
MIT
2,021
iwfp
SanemG
Dart
Code
180
668
import 'package:iwfpapp/services/data_backend/base_data_backend.dart'; import 'package:iwfpapp/services/interfaces/credit_card.pb.dart'; import 'package:iwfpapp/services/interfaces/request.pb.dart'; import 'package:iwfpapp/services/utilities/card_templates/template_getter.dart'; /// Error data backend /// /// This imp...
24,576
https://github.com/korykaai717/RN-MeetNative-App-GraphQL-APOLLO/blob/master/google-app-engine/lib/google-app-engine/src/withUnsubscribe.js
Github Open Source
Open Source
MIT
null
RN-MeetNative-App-GraphQL-APOLLO
korykaai717
JavaScript
Code
48
170
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const iterall_1 = require("iterall"); exports.withUnsubscribe = (asyncIterator, onClose) => { return { next() { return asyncIterator.next(); }, return() { onClose(); console.log("close..."); // @ts-ignore ...
44,737
https://github.com/Fannon/AssembleFormLink/blob/master/AssembleFormLink.i18n.magic.php
Github Open Source
Open Source
MIT
2,017
AssembleFormLink
Fannon
PHP
Code
34
84
<?php /** * Internationalisation file for magic words in the Example extension * * @file * @ingroup Extensions */ $magicWords = array(); /** English (English) */ $magicWords['en'] = array( 'assembleFormLink' => array(0, 'assembleFormLink'), );
55,822
https://github.com/piitaya/capacitor-qr-scanner/blob/master/node_modules/sift/examples/ex1.js
Github Open Source
Open Source
MIT
2,021
capacitor-qr-scanner
piitaya
JavaScript
Code
118
428
var sift = require("../"); var topic = [{ name: 'craig', age: 90001, tags:['coder', 'programmer', 'traveler', 'photographer'], address: { city: 'Minneapolis', state: 'MN', phone: '9999999999' }, hobbies: [{ name: 'programming', description: 'some desc' }, { name: 'cooking' }, { name: 'photogra...
17,643
https://github.com/grgur/Ext.ux.ColumnCarousel/blob/master/app/model/AbstractFeed.js
Github Open Source
Open Source
MIT
2,012
Ext.ux.ColumnCarousel
grgur
JavaScript
Code
67
234
/** * Abstract model * @author Grgur Grisogono */ Ext.define('App.model.AbstractFeed', { extend : 'Ext.data.Model', config : { fields: [ 'title', 'link', { name: 'description', mapping: 'encoded', convert: function (...
24,815
https://github.com/Alfonso6z/RWSUamiStream/blob/master/src/public/views/confirmacion.hbs
Github Open Source
Open Source
MIT
2,023
RWSUamiStream
Alfonso6z
null
Spoken
106
623
<html lang="es" class="no-js"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Streama</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://stackpath...
22,283
https://github.com/SemihSaydamAndroid/webdriverIOsentences/blob/master/node_modules/@cucumber/messages/dist/src/MessageToNdjsonStream.d.ts
Github Open Source
Open Source
MIT
null
webdriverIOsentences
SemihSaydamAndroid
TypeScript
Code
44
89
/// <reference types="node" /> import { Transform, TransformCallback } from 'stream'; import { messages } from './index'; /** * Transforms a stream of message objects to NDJSON */ export default class MessageToNdjsonStream extends Transform { constructor(); _transform(message: messages.Envelope, encoding: str...
153
https://github.com/victorvogelpoel/victorvogelpoel.coding.blog/blob/master/.codedoc/node_modules/@connectv/html/dist/es6/renderer/plugin/component/types.js
Github Open Source
Open Source
MIT
2,020
victorvogelpoel.coding.blog
victorvogelpoel
JavaScript
Code
85
270
import { isBindable, isClearable } from "@connectv/core"; export class Component { constructor(props, children, _adapter) { this.props = props; this.children = children; this._adapter = _adapter; _adapter.track(this); this.init(); let _signature = this.signature(); ...
1,031
https://github.com/tm1990/MiscItemsAndBlocks-Source-Code/blob/master/src/main/java/com/miscitems/MiscItemsAndBlocks/Item/Electric/ModItemDrill.java
Github Open Source
Open Source
MIT
null
MiscItemsAndBlocks-Source-Code
tm1990
Java
Code
1,039
4,646
package com.miscitems.MiscItemsAndBlocks.Item.Electric; import MiscUtils.Handlers.ChatMessageHandler; import com.google.common.collect.Sets; import com.miscitems.MiscItemsAndBlocks.Utils.References.Reference; import cpw.mods.fml.relauncher.ReflectionHelper; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.rela...
32,640
https://github.com/IvayloKovachev09/SoftUni/blob/master/html css/fonts-master/ofl/chivo/METADATA.pb
Github Open Source
Open Source
MIT
null
SoftUni
IvayloKovachev09
null
Spoken
127
501
name: "Chivo" designer: "Omnibus-Type" license: "OFL" category: "SANS_SERIF" date_added: "2011-12-07" fonts { name: "Chivo" style: "normal" weight: 400 filename: "Chivo-Regular.ttf" post_script_name: "Chivo-Regular" full_name: "Chivo" copyright: "Copyright (c) 2011 by Omnibus-Type (www.omnibus-type.com om...
42,761
https://github.com/fybug/vhannels/blob/master/buildtool/tool/compression.js
Github Open Source
Open Source
Apache-2.0
null
vhannels
fybug
JavaScript
Code
63
250
module.exports = { zip: function (inpath, outpath, end) { global.compressing.zip.compressDir(inpath, outpath + ".zip") .catch(err => console.error(err)).then(end); }, gtar: function (inpath, outpath, end) { outpath += ".tar" global.compressing.tar.compressDir(inpath, outp...
43,701
https://github.com/jessmuir/DESI-HighSchool/blob/master/prep/tsz/read.py
Github Open Source
Open Source
BSD-3-Clause
null
DESI-HighSchool
jessmuir
Python
Code
112
464
import glob import pandas as pd import pylab as pl import astropy.io.fits as fits import numpy as np from desimodel.io import load_tiles from scipy.spatial import cKDTree as KDTree from desimodel.focalplane import get_tile_radius_deg from astropy.table import...
17,861
https://github.com/ashishgoyal18/vyavsaay/blob/master/mediawiki/languages/messages/MessagesGrc.php
Github Open Source
Open Source
Apache-2.0
2,015
vyavsaay
ashishgoyal18
PHP
Code
78
197
<?php /** Ancient Greek (Ἀρχαία ἑλληνικὴ) * * To improve a translation please visit https://translatewiki.net * * @ingroup Language * @file * */ $dateFormats = array( 'mdy time' => 'H:i', 'mdy date' => 'xg j, Y', 'mdy both' => 'H:i, xg j, Y', 'dmy time' => 'H:i', 'dmy date' => 'j xg Y', 'dmy both' => 'H:...
13,204
https://github.com/renmeng8875/springboot/blob/master/ch8_4/src/main/java/com/wisely/ch8_4/service/DemoService.java
Github Open Source
Open Source
Apache-2.0
null
springboot
renmeng8875
Java
Code
17
69
package com.wisely.ch8_4.service; import com.wisely.ch8_4.domain.Person; public interface DemoService { public Person savePersonWithRollBack(Person person); public Person savePersonWithoutRollBack(Person person); }
47,533
https://github.com/jnvshubham7/CPP_Programming/blob/master/B_-_Takahashi_s_Failure.cpp
Github Open Source
Open Source
Apache-2.0
2,021
CPP_Programming
jnvshubham7
C++
Code
202
780
#include<bits/stdc++.h> using namespace std; #define ll long long int main(){ int n,k; cin>>n>>k; int a[n]; int b[n]; for(int i=1;i<=n;i++) { cin>>a[i]; } for(int i=0;i<n;i++) { cin>>b[i]; } //vector<int> v; //all bth index of a store in v // for(int i=0;i<n;i++) // { // for(int j=0;j<n;j++) // ...
25,874
https://github.com/Kris-Daniel/bookingcalendar/blob/master/resources/less/lib.less
Github Open Source
Open Source
MIT
null
bookingcalendar
Kris-Daniel
Less
Code
1,342
6,560
.box{ width: 100%; max-width: 1920px; .m0a(); } .box0{ .box(); font-size: 0; } .box-p{ .box(); .lay-padding(); } .box-f{ max-width: 1920px; .lay-margin(); } .box-flex{ .box(); display: flex; flex-wrap: wrap; align-items: stretch; } .lay-padding{ padding: 0 16px; .to(1023px, { paddi...
53,849
https://github.com/tomatopickle/vue-insta-stories/blob/master/packages/lib/src/types.ts
Github Open Source
Open Source
MIT
2,021
vue-insta-stories
tomatopickle
TypeScript
Code
24
53
export interface SeeMoreOptions { label: string } export interface StoryOptions { url: string type: string duration: number template?: string seeMore?: SeeMoreOptions | boolean }
49,539
https://github.com/SpikeLab-CL/h2o_MOJO_Scorer/blob/master/src/main/java/com/spike/h2o_app/Main.java
Github Open Source
Open Source
WTFPL
2,021
h2o_MOJO_Scorer
SpikeLab-CL
Java
Code
406
1,509
package com.spike.h2o_app; import java.util.List; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Optional; import org.apache.commons.io.FileUtils; import com.auth0.jwt.JWT; import com.auth0.jwt.J...
53,034
https://github.com/tomstitt/PyMFEM/blob/master/mfem/common/mpi_dtype.py
Github Open Source
Open Source
BSD-3-Clause
2,022
PyMFEM
tomstitt
Python
Code
102
307
from mpi4py import MPI import traceback def get_mpi_datatype(data): ''' get MPI datatype from numpy dtype ''' #print '!!!chekcing MPI type ', data.dtype.name s = data.dtype.itemsize # get data size of element if data.dtype.name.startswith('int'): if s == 8: return MPI.LONG ...
4,757
https://github.com/sleutho/FESolve/blob/master/Compare.h
Github Open Source
Open Source
MIT
2,016
FESolve
sleutho
C++
Code
39
117
// Compare.h: Schnittstelle für die Klasse Compare. // ////////////////////////////////////////////////////////////////////// #ifndef COMPARE_H #define COMPARE_H namespace fesolv { template<class T> class Compare { public: Compare(){}; ~Compare(){}; bool operator()(T* T1, T* T2) const {return T1->GetNumber()...
46,436
https://github.com/Avasil/monix-bio/blob/master/website/siteConfig.js
Github Open Source
Open Source
Apache-2.0
2,020
monix-bio
Avasil
JavaScript
Code
97
386
const repoUrl = "https://github.com/monix/monix-bio"; const apiUrl = "/api/monix/bio/index.html" const siteConfig = { title: "Monix BIO", tagline: "Asynchronous Programming for Scala and Scala.js", url: "https://bio.monix.io", baseUrl: "/", cname: "bio.monix.io", customDocsPath: "monix-bio-docs/target/mdo...
36,884
https://github.com/bzxy/cydia/blob/master/iOSOpenDev/frameworks/CorePDF.framework/Headers/CPBuilder.h
Github Open Source
Open Source
MIT
2,022
cydia
bzxy
C
Code
30
111
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/CorePDF.framework/CorePDF */ @interface CPBuilder : NSObject { } - (void)cluster:(id)cluster andPutTextLinesInto:(id)into; // 0x2bdb1 - (void)prepareZone:(id)zone; // 0x2bf09 @end
43,654
https://github.com/dustinandrews/Red-Soul/blob/master/Platform/OpenScad/ninevolt.scad
Github Open Source
Open Source
CC-BY-3.0
2,020
Red-Soul
dustinandrews
null
Spoken
18
154
$fn=20; module ninevolt() { color([0.4,0.4,0.4,1]) cube([26,44,17]); color([0.8,0.8,0.9,1]) { translate([5,1,8.5]) rotate([-90,0,0]) cylinder(r=3,h=46.5); translate([19,1,8.5]) rotate([-90,0,0]) cylinder(r=4,h=46.5, $fn=6); } } ninevolt();
48,060
https://github.com/nyacpp/nya-qt/blob/master/pri/subdirs.pri
Github Open Source
Open Source
MIT
2,017
nya-qt
nyacpp
null
Spoken
15
45
TEMPLATE = subdirs CONFIG += ordered # Чтобы отделить от мэйкфайла приложения. MAKEFILE = build/Makefile
11,117
https://github.com/fetus-hina/stat.ink/blob/master/actions/user/EditPasswordAction.php
Github Open Source
Open Source
MIT, BSD-3-Clause, CC-BY-4.0
2,023
stat.ink
fetus-hina
PHP
Code
154
644
<?php /** * @copyright Copyright (C) 2015-2019 AIZAWA Hina * @license https://github.com/fetus-hina/stat.ink/blob/master/LICENSE MIT * @author AIZAWA Hina <hina@fetus.jp> */ declare(strict_types=1); namespace app\actions\user; use Throwable; use Yii; use app\components\helpers\Password; use app\models\PasswordF...
3,711
https://github.com/erjan/coding_exercises/blob/master/longest_winning_streak.sql
Github Open Source
Open Source
Apache-2.0
2,023
coding_exercises
erjan
SQL
Code
765
1,522
''' The winning streak of a player is the number of consecutive wins uninterrupted by draws or losses. Write an SQL query to count the longest winning streak for each player. Return the result table in any order. The query result format is in the following example. ''' WITH cte AS ( SELECT player_id, result, match_...
19,240
https://github.com/seldon1000/fairwindplusplus/blob/master/sdk/src/PageBase.cpp
Github Open Source
Open Source
Apache-2.0
null
fairwindplusplus
seldon1000
C++
Code
60
230
// // Created by Raffaele Montella on 11/01/22. // #include "PageBase.hpp" namespace fairwind::apps { PageBase::PageBase(QWidget *parent, apps::FairWindApp *fairWindApp) : QWidget(parent) { m_fairWindApp = fairWindApp; } FairWindApp *PageBase::getFairWindApp() { return m_fairW...
35,493
https://github.com/aaronleopold/adta/blob/master/src/components/todo/utils.ts
Github Open Source
Open Source
MIT
2,022
adta
aaronleopold
TypeScript
Code
68
168
import { useEffect, useState } from 'react'; export const TODO_HEIGHT = 50; export function getHeight(items: any[]) { const totalHeight = items.length * TODO_HEIGHT; // const totalPadding = (items.length - 1) * TODO_PADDING; return totalHeight; } export function useConstraints(items: any[], width: number) { ...
49,486
https://github.com/robertdj/pkg.deps/blob/master/R/get_rules.R
Github Open Source
Open Source
MIT
2,021
pkg.deps
robertdj
R
Code
41
170
get_rules <- function(system_req_folder) { rules_cache <- rules_cache_location() if (file.exists(rules_cache)) { rules <- readRDS(rules_cache) } else { rules <- parse_rules(system_req_folder) if (!dir.exists(dirname(rules_cache))) dir.create(dirname(rules_cache), recurs...
24,016
https://github.com/vyasvishakha/tatvasoft_demo/blob/master/application/views/elements/header.php
Github Open Source
Open Source
MIT
null
tatvasoft_demo
vyasvishakha
PHP
Code
55
332
<!DOCTYPE html> <html lang="en"> <head> <title>CodeIgniter User Login System by CodexWorld</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:400,100,300,500,700,900" type="text/css" media="all"> ...
20,478
https://github.com/OCdes/JTVoiceConvert/blob/master/Example/Pods/Target Support Files/Pods-JTVoiceConvert_Example/Pods-JTVoiceConvert_Example-dummy.m
Github Open Source
Open Source
MIT
2,021
JTVoiceConvert
OCdes
Objective-C
Code
10
58
#import <Foundation/Foundation.h> @interface PodsDummy_Pods_JTVoiceConvert_Example : NSObject @end @implementation PodsDummy_Pods_JTVoiceConvert_Example @end
50,562
https://github.com/kataru-lang/unity-kataru-demo/blob/master/Assets/Scripts/Interaction/CloseupAnimation.cs
Github Open Source
Open Source
MIT
null
unity-kataru-demo
kataru-lang
C#
Code
84
221
using System; using UnityEngine; namespace JnA.Interaction { /// <summary> /// Closeup that plays given animator once shown /// </summary> public class CloseupAnimation : CloseupBase { [SerializeField] Animator animator; private void Awake() { animator.enabled =...
16,860
https://github.com/Veratics/Maternity-Tracker/blob/master/Dashboard/va.gov.artemis.commands/Dsio/Tracking/DsioFlaggedPatientResult.cs
Github Open Source
Open Source
Apache-2.0
2,021
Maternity-Tracker
Veratics
C#
Code
51
174
// Originally submitted to OSEHRA 2/21/2017 by DSS, Inc. // Authored by DSS, Inc. 2014-2017 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VA.Gov.Artemis.Commands.Dsio.Tracking { public class DsioFlaggedPatientResult { pu...
42,179
https://github.com/mbuechner/ddbid/blob/master/src/main/java/de/ddb/labs/ddbid/cronjob/helper/Facets.java
Github Open Source
Open Source
Apache-2.0
null
ddbid
mbuechner
Java
Code
197
479
/* * Copyright 2022 Michael Büchner, Deutsche Digitale Bibliothek * * 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 requi...
8,874
https://github.com/LordFlashmeow/taxonworks/blob/master/app/javascript/vue/tasks/nomenclature/new_taxon_name/store/mutations/addTaxonStatus.js
Github Open Source
Open Source
NCSA
2,022
taxonworks
LordFlashmeow
JavaScript
Code
32
90
export default (state, status) => { const position = state.taxonStatusList.findIndex(item => item.id === status.id || item.type === status.type) if (position < 0) { state.taxonStatusList.push(status) } else { state.taxonStatusList[position] = status } }
13,338
https://github.com/dmfs/ContentPal/blob/master/contentpal/src/main/java/org/dmfs/android/contentpal/transactions/contexts/Quick.java
Github Open Source
Open Source
Apache-2.0
2,019
ContentPal
dmfs
Java
Code
211
434
/* * Copyright 2017 dmfs GmbH * * 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...
55,581
https://github.com/WindSekirun/NaraeSFTPClient/blob/master/app/src/main/java/com/github/windsekirun/naraesftp/file/FileListViewModel.kt
Github Open Source
Open Source
MIT
2,021
NaraeSFTPClient
WindSekirun
Kotlin
Code
523
2,542
package com.github.windsekirun.naraesftp.file import android.Manifest import android.app.Activity import android.content.Intent import android.os.Environment import android.text.TextUtils import android.util.Log import android.view.MenuItem import android.view.View import androidx.databinding.ObservableArrayList impor...
56,276
https://github.com/patrik-hagne/FakeItEasy/blob/master/Source/FakeItEasy.Tests/ExpectationExceptionTests.cs
Github Open Source
Open Source
MIT
2,013
FakeItEasy
patrik-hagne
C#
Code
23
84
namespace FakeItEasy.Tests { using NUnit.Framework; [TestFixture] public class ExpectationExceptionTests : ExceptionContractTests<ExpectationException> { protected override ExpectationException CreateException() { return new ExpectationException("fo"); } ...
55,653
https://github.com/rimmius/antaeus/blob/master/pleo-antaeus-core/src/main/kotlin/io/pleo/antaeus/core/services/BillingService.kt
Github Open Source
Open Source
CC0-1.0
null
antaeus
rimmius
Kotlin
Code
163
709
/* Implements handling of periodically charging of `PENDING` and `FAILED` invoices */ package io.pleo.antaeus.core.services import io.pleo.antaeus.core.external.PaymentProvider import io.pleo.antaeus.models.Invoice import io.pleo.antaeus.models.InvoiceStatus import java.util.Calendar import java.util.Date class Bil...
23,101
https://github.com/pkosiec/dashboard/blob/master/react-components/src/wizard/Wizard.tsx
Github Open Source
Open Source
Apache-2.0
2,022
dashboard
pkosiec
TypeScript
Code
151
491
import React from "react"; import "./Wizard.css"; import { Button, Layout, Steps } from "antd"; import { WizardSteps } from "./Wizard.container"; import { CenteredSpinner, ErrorAlert } from "../layout"; const { Step } = Steps; const { Content } = Layout; export interface WizardProps { steps: WizardSteps; currentS...
31,075
https://github.com/anniyanvr/mist/blob/master/mist/master/src/main/scala/io/hydrosphere/mist/master/data/ContextsStorage.scala
Github Open Source
Open Source
Apache-2.0
2,022
mist
anniyanvr
Scala
Code
173
614
package io.hydrosphere.mist.master.data import java.util.concurrent.Executors import io.hydrosphere.mist.master.models.ContextConfig import scala.concurrent.{ExecutionContext, Future} trait Contexts { def get(name: String): Future[Option[ContextConfig]] def getOrDefault(name: String): Future[ContextConfig] d...
852
https://github.com/tsirlucas/PayIt/blob/master/functions/src/rest/pendency.ts
Github Open Source
Open Source
MIT
2,021
PayIt
tsirlucas
TypeScript
Code
139
462
import {Firestore} from '@google-cloud/firestore'; import {IndexedPendencies, Pendency, User, UserPendencies} from 'models'; export const requestUserPendencies = async (firestore: Firestore, userId: string) => { const pendency = await firestore.doc(`/pendencies/${userId}`).get(); return pendency.data() as UserPen...
34,232
https://github.com/Lewage59/car-assembly/blob/master/car-assembly-server/apps/car-assembly-server/src/common/middleware/logger.middleware.ts
Github Open Source
Open Source
MIT
2,022
car-assembly
Lewage59
TypeScript
Code
76
184
import { LoggerService } from '@app/logger'; import { Injectable, NestMiddleware } from '@nestjs/common'; import { Request, Response } from 'express'; @Injectable() export class LoggerMiddleware implements NestMiddleware { constructor( private readonly logger: LoggerService ) {} use(req: Request, r...
8,475
https://github.com/malliina/pimpcloud/blob/master/pimpcloud/app/com/malliina/pimpcloud/ws/StorageSocket.scala
Github Open Source
Open Source
BSD-3-Clause
null
pimpcloud
malliina
Scala
Code
35
136
package com.malliina.pimpcloud.ws import com.malliina.play.ws.SyncSockets import com.malliina.ws.SocketStorage trait StorageSocket extends SyncSockets { def storage: SocketStorage[Client] override def clientsSync: Seq[Client] = storage.clients override def onConnectSync(client: Client): Unit = storage...
55,903
https://github.com/matthansen0/FitbitOnFHIR/blob/master/webapp/app.py
Github Open Source
Open Source
MIT
2,021
FitbitOnFHIR
matthansen0
Python
Code
220
715
import os, json import cmd import asyncio from fitbit import Fitbit from flask import Flask, render_template, url_for, session, redirect from authlib.integrations.flask_client import OAuth from azure.keyvault.secrets import SecretClient from azure.identity import DefaultAzureCredential from azure.core.exceptions import...
31,258
https://github.com/parijatsahai/camcops/blob/master/tablet/Resources/questionnaire/QuestionImage.js
Github Open Source
Open Source
Apache-2.0
2,015
camcops
parijatsahai
JavaScript
Code
197
499
// QuestionImage.js // Simple image display. /* Copyright (C) 2012-2015 Rudolf Cardinal (rudolf@pobox.com). Department of Psychiatry, University of Cambridge. Funded by the Wellcome Trust. This file is part of CamCOPS. Licensed under the Apache License, Version 2.0 (the "License"); you may no...
16,369
https://github.com/kenxken/cli-sample/blob/master/disk.go
Github Open Source
Open Source
MIT
null
cli-sample
kenxken
Go
Code
111
379
package main import ( "fmt" "syscall" ) const ( b = 1 kB = 1024 * b mB = 1024 * kB gB = 1024 * mB ) type DiskStatus struct { All uint64 `json:"all"` Used uint64 `json:"used"` Available uint64 `json:"available"` Free uint64 `json:"free"` } func DiskUsage(path string) (disk DiskStatus) { s...
23,789
https://github.com/amirsaleh-salehzadeh/Human-Activity-EEG-Accelerometer/blob/master/eeg-lstm-master/data_process/band_filter.py
Github Open Source
Open Source
MIT
2,018
Human-Activity-EEG-Accelerometer
amirsaleh-salehzadeh
Python
Code
196
692
# -*- coding: utf-8 -*- """ Created on Fri May 4 21:34:01 2018 @author: 大茄茄 """ #对原始数据进行四阶巴特沃斯滤波 from scipy.signal import butter, lfilter import pandas as pd import os from sklearn.externals.joblib import Parallel, delayed SampFreq = 256 ChannelNum = 22 def butter_bandpass_filter(data, lowcut, highcut, fs, or...
1,263