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/rojiroji/disnote/blob/master/src/conv_audio.py
Github Open Source
Open Source
MIT
null
disnote
rojiroji
Python
Code
296
1,904
import os import sys from collections import deque import common import traceback from mutagen.easyid3 import EasyID3 import csv logger = common.getLogger(__file__) CONFIG_WORK_KEY = 'conv_audio' CONFIG_WORK_CONV_READY = 'speech_rec_conv_ready' # 音声ファイルをtxtファイルに出力された結果に従って分割 def main(input_file): logger.info("4. 音...
14,561
https://github.com/sabbelasichon/typo3-rector/blob/master/stubs/Tx_Extbase_Persistence_QOM_LowerCaseInterface.php
Github Open Source
Open Source
MIT
2,023
typo3-rector
sabbelasichon
PHP
Code
11
59
<?php ; if (interface_exists('Tx_Extbase_Persistence_QOM_LowerCaseInterface')) { return; } interface Tx_Extbase_Persistence_QOM_LowerCaseInterface { }
46,156
https://github.com/2KangHo/PyTorch-ImageClassification-TestBench/blob/master/run.sh
Github Open Source
Open Source
MIT
2,020
PyTorch-ImageClassification-TestBench
2KangHo
Shell
Code
50
135
#!/usr/bin/env bash for data in cifar10 cifar100 imagenet do for model in mobilenet mobilenetv2 shufflenet shufflenetv2 do python3 main.py $data -a $model -C -g 0 1 2 3 -j 8 -b 256 rm -f checkpoint/*/*/*_ckpt_epoch_*.pth python3 main.py $data -a $model -j 8 -C -g 0 --ckpt ckpt_best.pth ...
8,798
https://github.com/wsklug/voom/blob/master/src/Model/Test/shell-test.cc
Github Open Source
Open Source
MIT
2,017
voom
wsklug
C++
Code
991
3,196
#include <string> #include <iostream> #include <vector> #include <getopt.h> #include "Node.h" #include "SCElastic.h" #include "FVK.h" #include <tvmet/Vector.h> #include <fstream> #include "LoopShellBody.h" #include "Model.h" #include "Solver.h" #include "ConjugateGradientWSK.h" // #define NODENUMBER 42 // #define ELEM...
17,778
https://github.com/growme/hyyApp/blob/master/hyyShareCore/out/artifacts/shareAdmin_Web_exploded/static/js/admin/code/code.js
Github Open Source
Open Source
MIT
2,020
hyyApp
growme
JavaScript
Code
242
1,446
//JavaScript Document $(function () { //点击增加按钮 $("#th_add_btn").click(function () { openPage("增加字典参数",400,510,ccnetpath+"/backstage/code/goadd"); }); //点击增加按钮 $("#th_edit_btn").click(function () { var ids = getCKVal("ck"); if(ids == null || ids.length==0){ showErrMsg("请先选择要操作的数据!"); return; ...
25,488
https://github.com/FarzamAlam/hail/blob/master/cmd/cmdutil/exampleutil.go
Github Open Source
Open Source
Apache-2.0
2,022
hail
FarzamAlam
Go
Code
365
717
package cmdutil const ( // AddExample for add cmd in add.go AddExample = ` # Add new Command with alias 'delete-pod' alais hail add delete-pods "kubectl delete pod $(kubectl get pods | grep Completed | awk '{print $1}')" # Add Script from a file. hail add -a pv -f pv.yaml # Add Command with description...
35,906
https://github.com/lyncodev/jtwig-draft/blob/master/jtwig-core/src/main/java/org/jtwig/model/expression/operation/calculators/unary/NegativeOperationCalculator.java
Github Open Source
Open Source
Apache-2.0
null
jtwig-draft
lyncodev
Java
Code
37
191
package org.jtwig.model.expression.operation.calculators.unary; import org.jtwig.configuration.MathContextParameter; import org.jtwig.context.RenderContext; import org.jtwig.model.expression.Expression; import org.jtwig.model.position.Position; import org.jtwig.util.JtwigValue; import java.math.BigDecimal; public cl...
42,462
https://github.com/KyleJamesWalker/brunch-with-friends/blob/master/Vagrantfile
Github Open Source
Open Source
MIT
2,014
brunch-with-friends
KyleJamesWalker
Ruby
Code
157
588
# -*- mode: ruby -*- # vi: set ft=ruby : VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.hostname = "skeletons" config.vm.box = "precise64" config.vm.box_url = "http://files.vagrantup.com/precise64.box" config.vm.synced_folder ".", "/home/vagrant/skeletons" ...
7,632
https://github.com/entrealist/todo-guru/blob/master/app/src/androidTest/java/edu/hm/cs/ma/todoguru/subtask/InsertSubTaskActionTest.kt
Github Open Source
Open Source
MIT
2,020
todo-guru
entrealist
Kotlin
Code
236
1,390
package edu.hm.cs.ma.todoguru.subtask import androidx.test.espresso.Espresso.onView import androidx.test.espresso.action.ViewActions.click import androidx.test.espresso.action.ViewActions.closeSoftKeyboard import androidx.test.espresso.action.ViewActions.replaceText import androidx.test.espresso.action.ViewActions.scr...
41,342
https://github.com/darwinaraujozup/charlescd/blob/master/butler/src/app/api/configurations/use-cases/delete-cd-configuration.usecase.ts
Github Open Source
Open Source
Apache-2.0
2,020
charlescd
darwinaraujozup
TypeScript
Code
179
388
/* * Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA * * 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...
50,257
https://github.com/spacekitteh/libgrin/blob/master/shell.nix
Github Open Source
Open Source
BSD-3-Clause
2,021
libgrin
spacekitteh
null
Spoken
184
853
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc802" }: let inherit (nixpkgs) pkgs; ghc = pkgs.haskell.packages.${compiler}.ghcWithHoogle (ps: with ps; [# ghc-mod hspec unbound ghc-typelits-presburger presburger equational-reasoning bound graph-rewriting hspec-megaparsec hspec-laws hspec-expectations-l...
34,559
https://github.com/arkonique/back_projection/blob/master/resources/seizmo/njtbx/njToolbox-2.0/examples/test_cf_ugrid.m
Github Open Source
Open Source
MIT
2,020
back_projection
arkonique
MATLAB
Code
355
940
% TEST_CF_UGRID - Read CF-UGRID convention data from ADCIRC, FVCOM and ELCIRC % % A more general program library would first get % grid attributes, check 0-based vs. 1-based, CCW vs CW, grid location % and convert to standard internal data model, but this script demonstrates % using NcML to convert existing files to th...
21,219
https://github.com/hebohang/HEngine/blob/master/Engine/Source/Runtime/Platform/OpenGL/OpenGLContext.cpp
Github Open Source
Open Source
MIT
null
HEngine
hebohang
C++
Code
58
326
#include "hepch.h" #include "Runtime/Platform/OpenGL/OpenGLContext.h" #include <GLFW/glfw3.h> #include <glad/glad.h> namespace HEngine { OpenGLContext::OpenGLContext(GLFWwindow* windowHandle) : mWindowHandle(windowHandle) { HE_CORE_ASSERT(windowHandle, "Window handle is null!"); } vo...
14,931
https://github.com/ShuaiPointChen/def/blob/master/Code/ShareLib/ExitGames-Photon-Server-SDK_v3-2-10-4248/src-server/Mmo/Photon.MmoDemo.Client.UnityIsland/Assets/AirplaneRuins.meta
Github Open Source
Open Source
MIT
2,014
def
ShuaiPointChen
Unity3D Asset
Code
4
30
fileFormatVersion: 1 guid: e47f7ebc24fa3463b8aa03db163887a9
2,023
https://github.com/masa23/usacloud/blob/master/command/completion/switch_args_gen.go
Github Open Source
Open Source
Apache-2.0
null
usacloud
masa23
Go
Code
368
1,239
// Code generated by 'github.com/sacloud/usacloud/tools/gen-command-completion'; DO NOT EDIT package completion import ( "fmt" "github.com/sacloud/usacloud/command" "github.com/sacloud/usacloud/command/params" ) func SwitchListCompleteArgs(ctx command.Context, params *params.ListSwitchParam, cur, prev, commandNa...
40,179
https://github.com/timja/email-ext-plugin/blob/master/src/test/java/hudson/plugins/emailext/plugins/OnlyRegressionsTest.java
Github Open Source
Open Source
MIT
2,022
email-ext-plugin
timja
Java
Code
172
708
package hudson.plugins.emailext.plugins; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import hudson.FilePath; import hudson.Launcher; import hudson.model.AbstractBuild; import hudson.model.BuildListener; import hudson.model.FreeStyleProject; import hudson.model.TaskListener; ...
37,494
https://github.com/maru-star/smg_3/blob/master/resources/views/admin/frame_prices/index.blade.php
Github Open Source
Open Source
MIT
null
smg_3
maru-star
PHP
Code
80
430
@extends('layouts.admin.app') @section('content') <script src="{{ asset('/js/template.js') }}"></script> <link href="{{ asset('/css/template.css') }}" rel="stylesheet"> <div class="container-field mt-3"> <div class="float-right"> <nav aria-label="breadcrumb"> <ol class="breadcrumb"> <li class="br...
42,560
https://github.com/minho-comcom-ai/bert-as-service/blob/master/Dockerfile
Github Open Source
Open Source
MIT
2,020
bert-as-service
minho-comcom-ai
Dockerfile
Code
46
178
FROM tensorflow/tensorflow:1.12.0-gpu-py3 RUN pip install bert-serving-server[http] RUN mkdir -p /app COPY ./entrypoint.sh /app WORKDIR /app RUN curl -o model.zip https://storage.googleapis.com/bert_models/2018_10_18/uncased_L-12_H-768_A-12.zip && \ unzip model.zip && mv uncased_L-12_H-768_A-12 model && rm model.zip &&...
14,948
https://github.com/MillionSolutionsLLP/FLEX_vgel/blob/master/MS/B/M/NM/V/Object/NewsWidget.blade.php
Github Open Source
Open Source
MIT
2,018
FLEX_vgel
MillionSolutionsLLP
Blade
Code
58
409
<?php $tableId=2; $build=new \MS\Core\Helper\Builder (__NAMESPACE__); //$build->title("View All News"); // $model=new \B\NM\Model($tableId); $model=$model->paginate(10); // dd($model); $diplayArray=[ //'UniqId'=>'ID', 'NewsTitle'=>'Title', //'NewsDate'=>'Date', 'NewsDateExp'=>'Exp. Date', 'New...
36,149
https://github.com/ustaxcourt/ef-cms/blob/master/shared/src/business/useCases/document/serveExternallyFiledDocumentInteractor.ts
Github Open Source
Open Source
LicenseRef-scancode-public-domain, CC0-1.0
2,023
ef-cms
ustaxcourt
TypeScript
Code
492
1,912
import { ALLOWLIST_FEATURE_FLAGS, DOCUMENT_PROCESSING_STATUS_OPTIONS, DOCUMENT_SERVED_MESSAGES, SIMULTANEOUS_DOCUMENT_EVENT_CODES, } from '../../entities/EntityConstants'; import { Case } from '../../entities/cases/Case'; import { DocketEntry } from '../../entities/DocketEntry'; import { NotFoundError, Unauthor...
13,691
https://github.com/webmaster0307/react-shoppinglist-app/blob/master/test/components/shoppinglist_item_form_test.js
Github Open Source
Open Source
MIT
null
react-shoppinglist-app
webmaster0307
JavaScript
Code
37
105
import { renderComponent, expect } from "../test_helper"; import ShoppingListItemForm from "../../src/components/item/form"; describe("Test Shopping list item form Component", () => { let component; beforeEach(() => { component = renderComponent(ShoppingListItemForm); }); it("renders something", () => { ...
26,030
https://github.com/jakubqwe/CommandLineUtils/blob/master/src/CommandLineUtils/Internal/ValueParsers/NullableValueParser.cs
Github Open Source
Open Source
Apache-2.0
2,022
CommandLineUtils
jakubqwe
C#
Code
84
241
// Copyright (c) Nate McMaster. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Globalization; namespace McMaster.Extensions.CommandLineUtils.Abstractions { internal class NullableValueParser : IValueParser { p...
17,523
https://github.com/SusanQuintanilla16/eAgenda/blob/master/application/views/contacto/vContacto.php
Github Open Source
Open Source
MIT
null
eAgenda
SusanQuintanilla16
PHP
Code
117
694
<div class="container"> <div class="row"> <h2>Ingresar Contacto</h2> <form method="POST" action="<?php echo base_url();?>CContacto/ingresar" enctype="multipart/form-data"> <div class="form-group"> <div class="col-md-6"> <label for="txtNombres">Nombres</label> <input type="text" name="txtNombres" c...
35,941
https://github.com/lijobs/soul/blob/master/soul-web/src/main/java/org/dromara/soul/web/config/RedisConfiguration.java
Github Open Source
Open Source
Apache-2.0
2,019
soul
lijobs
Java
Code
297
1,101
/* * 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")...
12,458
https://github.com/anthonyhl/rcscore/blob/master/src/main/com/orangelabs/rcs/platform/registry/AndroidRegistryFactory.java
Github Open Source
Open Source
Apache-2.0
null
rcscore
anthonyhl
Java
Code
593
1,333
/******************************************************************************* * Software Name : RCS IMS Stack * * Copyright (C) 2010 France Telecom S.A. * * 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 cop...
52,995
https://github.com/ostdotcom/ost-wallet-sdk-android/blob/master/ostsdk/src/main/java/com/ost/walletsdk/workflows/interfaces/OstBaseInterface.java
Github Open Source
Open Source
Apache-2.0
2,020
ost-wallet-sdk-android
ostdotcom
Java
Code
63
129
/* * Copyright 2019 OST.com 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 */ package com.ost.walletsdk.workflows.inte...
20,311
https://github.com/miDeb/built_value.dart/blob/master/end_to_end_test/test/generics_nnbd_test.dart
Github Open Source
Open Source
BSD-3-Clause
2,020
built_value.dart
miDeb
Dart
Code
271
753
// Copyright (c) 2017, Google Inc. Please see the AUTHORS file for details. // All rights reserved. Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // @dart=2.12 import 'package:built_value/built_value.dart'; import 'package:end_to_end_test/errors_matchers.dart'; im...
27,556
https://github.com/PeterPlayGuitar/ftl-jb-001-sb/blob/master/src/main/java/com/apeter/blog/user/api/request/RegistrationRequest.java
Github Open Source
Open Source
MIT
null
ftl-jb-001-sb
PeterPlayGuitar
Java
Code
30
92
package com.apeter.blog.user.api.request; import io.swagger.annotations.ApiModel; import lombok.Getter; import lombok.Setter; @Getter @Setter @ApiModel(value = "Registration request", description = "Model for registration") public class RegistrationRequest { private String email; private String password; }
24,103
https://github.com/matthb2/ParaView-beforekitwareswtichedtogit/blob/master/Utilities/IceT/doc/man/man3/icetGetContext.3
Github Open Source
Open Source
BSD-3-Clause
2,021
ParaView-beforekitwareswtichedtogit
matthb2
null
Spoken
212
533
'\" t .\" Manual page created with latex2man on Fri Sep 19 09:25:31 MDT 2008 .\" NOTE: This file is generated, DO NOT EDIT. .de Vb .ft CW .nf .. .de Ve .ft R .fi .. .TH "icetGetContext" "3" "February 1, 2008" "\fBIceT \fPReference" "\fBIceT \fPReference" .SH NAME \fBicetGetContext \-\- retrieves the current context\...
10,957
https://github.com/spring-operator/quickstep/blob/master/third_party/tmb/src/net_service_impl.cc
Github Open Source
Open Source
Apache-2.0
2,022
quickstep
spring-operator
C++
Code
598
2,627
// Copyright 2014-2015 Quickstep Technologies LLC. // Copyright 2015 Pivotal Software, 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/lic...
35,046
https://github.com/willgnervinicius/projeto/blob/master/app/Mensagem.php
Github Open Source
Open Source
MIT
null
projeto
willgnervinicius
PHP
Code
21
82
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Mensagem extends Model { protected $table = 'E999CadMsg'; protected $fillable = ['CodMsg', 'GruEmp', 'UsuRem','CabMsg','DesMsg','DatCad','DatExc']; }
24,919
https://github.com/mojodna/carbon-components-vue/blob/master/storybook/stories/cv-tabs-story.js
Github Open Source
Open Source
Apache-2.0
2,019
carbon-components-vue
mojodna
JavaScript
Code
265
894
import { storiesOf } from '@storybook/vue'; import { boolean } from '@storybook/addon-knobs'; import { action } from '@storybook/addon-actions'; import SvTemplateView from '../_storybook/views/sv-template-view/sv-template-view'; // import consts from '../_storybook/utils/consts'; import knobsHelper from '../_storybook...
43,141
https://github.com/verida/storage-node/blob/master/src/components/dbManager.js
Github Open Source
Open Source
0BSD
null
storage-node
verida
JavaScript
Code
696
1,831
const CouchDb = require('nano'); import Utils from './utils'; import _ from 'lodash'; class DbManager { constructor() { this.error = null; } async createDatabase(username, databaseName, applicationName, options) { let couch = this._getCouch(); let response; // Create database try { re...
29,872
https://github.com/iantal/AndroidPermissions/blob/master/apks/malware/app79/app/smali/android/support/v7/internal/widget/ActionBarView.smali
Github Open Source
Open Source
Apache-2.0
2,019
AndroidPermissions
iantal
Smali
Code
7,204
47,961
.class public Landroid/support/v7/internal/widget/ActionBarView; .super Landroid/support/v7/internal/widget/a; # instance fields .field private A:Landroid/support/v7/internal/widget/ProgressBarICS; .field private B:I .field private C:I .field private D:I .field private E:I .field private F:I .field private G:I ...
9,108
https://github.com/felippe-regazio/web-elements/blob/master/src/el-readmore/el-readmore.scss
Github Open Source
Open Source
MIT
2,022
web-elements
felippe-regazio
SCSS
Code
35
142
[is="el-readmore"] { ins { text-decoration: none; } &:not([data-expanded]) { .el-readmore-has-ins::after { content: " ..."; } ins { display: none; } } [data-expanded] { .el-readmore-has-ins::after { display: none; } ins { display: inline; } } }
11,003
https://github.com/huongbee/admin0505/blob/master/resources/views/account/register.blade.php
Github Open Source
Open Source
MIT
2,018
admin0505
huongbee
Blade
Code
120
532
@extends('account.layout') @section('title','Register') @section('content') <style> .card-container.card { max-width: 550px; } </style> <h2 class="text-center">Register</h2> @if($errors->any()) <div class="alert alert-danger"> @foreach($errors->all() as $err) <li>{{$err}}</li> ...
23,631
https://github.com/usg/XINKE/blob/master/tag/overView/components/CPNTagManagementList/index.less
Github Open Source
Open Source
MIT
2,022
XINKE
usg
Less
Code
114
498
@import '~antd/es/style/themes/default.less'; // 搜索输入框样式 .searchInput { width: 200px; } // 表格样式 .standardTable { width: 100%; height: calc(100% - 80px); :global { .ant-table-placeholder { border-bottom: 0; } .ant-form-item{ margin-right: 8px; } } } // table 列控制 .columnsCtr{ // ...
42,685
https://github.com/monsur22/codeIgniter_ecommerce/blob/master/user_guide/application/views/admin/category/add_categori.php
Github Open Source
Open Source
MIT
2,020
codeIgniter_ecommerce
monsur22
PHP
Code
67
347
<div class="row"> <div class="col-lg-12"> <h3 class="text-center text-success"></h3> <hr/> <div class="well"> <form class="form-horizontal" method="post" action="save_categori"> <fieldset> <div class="form-group"> <label for="...
27,889
https://github.com/daelvn/typekit/blob/master/typekit/debug.moon
Github Open Source
Open Source
Unlicense
2,020
typekit
daelvn
null
Spoken
228
826
(DEBUG) -> unless DEBUG inspect = require "inspect" return { :inspect, log: (->), processor: {sign: process: (x)->(x)} } import inspect from require "debugkit.inspect" import logger from require "debugkit.log" import style from require "ansikit.style" io.stdout\setvbuf "no" typekitLg...
46,929
https://github.com/AlexGhiondea/azure-sdk-for-java/blob/master/sdk/core/azure-core-management/src/main/java/module-info.java
Github Open Source
Open Source
MIT
null
azure-sdk-for-java
AlexGhiondea
Java
Code
45
229
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. module com.azure.core.management { requires transitive com.azure.core; exports com.azure.core.management; exports com.azure.core.management.polling; exports com.azure.core.management.serializer; exports...
23,414
https://github.com/snail-z/zhSettingsViewController/blob/master/Example/Pods/Target Support Files/Pods-zhSettingsViewController_Example/Pods-zhSettingsViewController_Example-dummy.m
Github Open Source
Open Source
MIT
2,017
zhSettingsViewController
snail-z
Objective-C
Code
10
56
#import <Foundation/Foundation.h> @interface PodsDummy_Pods_zhSettingsViewController_Example : NSObject @end @implementation PodsDummy_Pods_zhSettingsViewController_Example @end
44,853
https://github.com/alexmihale/next-boilerplate/blob/master/cms/pages/dashboard/media/index.js
Github Open Source
Open Source
MIT
null
next-boilerplate
alexmihale
JavaScript
Code
20
58
import AuthorizationLayout from '../../../components/AuthorizationLayout'; const Media = () => { return ( <> <AuthorizationLayout>Media</AuthorizationLayout> </> ); }; export default Media;
46,305
https://github.com/ue007/hello-react/blob/master/packages/hello-debug/react-17.0.2/react.development/packages/react/src/ReactMemo.js
Github Open Source
Open Source
MIT
null
hello-react
ue007
JavaScript
Code
87
223
function memo(type, compare) { { if (!isValidElementType(type)) { error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type); } } var elementType = { $$typeof: REACT_MEMO_TYPE, type: type, compare: compare =...
19,677
https://github.com/microsoft/VerifiableCredentials-Verification-SDK-Typescript/blob/master/lib/options/IValidatorOptions.ts
Github Open Source
Open Source
MIT, LicenseRef-scancode-generic-cla
2,021
VerifiableCredentials-Verification-SDK-Typescript
microsoft
TypeScript
Code
116
258
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License in the project root for license information. *-------------------------------------------------------------------...
5,715
https://github.com/tholapz/shipping-as-a-service/blob/master/rest.js
Github Open Source
Open Source
MIT
null
shipping-as-a-service
tholapz
JavaScript
Code
33
92
var restify = require("restify"); var server = restify.createServer(); function respond(req, res, next) { res.send('Hello Restify!'); } server.get('/', respond); var port = process.env.PORT || 5000; server.listen(port, function() { console.log("Listening on " + port); });
42,432
https://github.com/shadoq/phpPainter/blob/master/index.php
Github Open Source
Open Source
Apache-2.0
2,013
phpPainter
shadoq
PHP
Code
1,613
8,018
<?php /** * ***************************************************************************** * Copyright 2013 See AUTHORS file. * * 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.apa...
46,050
https://github.com/UCDavisLibrary/price-the-vintage/blob/master/tests/stores/pages.js
Github Open Source
Open Source
MIT
2,017
price-the-vintage
UCDavisLibrary
JavaScript
Code
298
1,299
var assert = require('assert'); var EventBus = require('cork-app-utils').EventBus; var PagesStore = require('../../lib/stores/PagesStore'); var pageId = ''; var catalogId = 'a60bb267-fe06-4fae-81db-4da9518b95ab'; var page1 = { page_id : '1234332', catalog_id : catalogId, last_updated : 12330809823 } var page2 =...
51,016
https://github.com/tgutzler/SharpBudget/blob/master/SbDbLib/DB/SubCategory.cs
Github Open Source
Open Source
BSD-2-Clause
null
SharpBudget
tgutzler
C#
Code
146
284
using System; using System.Collections.Generic; namespace SbDbLib.DB { internal class SubCategory { public long Key { get; set; } public long? CatKey { get; set; } public string Name { get; set; } public string Icon { get; set; } public string DeleteOk { get; set; } ...
48,326
https://github.com/CyberSys/acestream-android-sdk/blob/master/src/main/java/org/acestream/sdk/AceStream.java
Github Open Source
Open Source
MIT
2,019
acestream-android-sdk
CyberSys
Java
Code
1,963
7,079
package org.acestream.sdk; import android.annotation.SuppressLint; import android.app.Activity; import android.content.ActivityNotFoundException; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.content.res.Re...
33,509
https://github.com/cflowe/ACE/blob/master/TAO/orbsvcs/orbsvcs/FaultTolerance/FT_Invocation_Endpoint_Selectors.h
Github Open Source
Open Source
DOC
2,022
ACE
cflowe
C
Code
233
798
// -*- C++ -*- //============================================================================= /** * @file FT_Invocation_Endpoint_Selectors.h * * $Id: FT_Invocation_Endpoint_Selectors.h 76589 2007-01-25 18:04:11Z elliott_c $ * * Strategies for selecting profile/endpoint from an IOR for making an * invocation. ...
11,196
https://github.com/wzfwonderful/Data_Structure/blob/master/1215/cmake-build-debug/CMakeFiles/1215.dir/cmake_clean.cmake
Github Open Source
Open Source
MIT
null
Data_Structure
wzfwonderful
CMake
Code
17
95
file(REMOVE_RECURSE "CMakeFiles/1215.dir/main.cpp.o" "1215.pdb" "1215" ) # Per-language clean rules from dependency scanning. foreach(lang CXX) include(CMakeFiles/1215.dir/cmake_clean_${lang}.cmake OPTIONAL) endforeach()
36,888
https://github.com/Alagris/Pipeline/blob/master/src/main/java/net/alagris/Group.java
Github Open Source
Open Source
MIT
2,021
Pipeline
Alagris
Java
Code
429
1,335
package net.alagris; import java.io.PrintStream; import java.lang.reflect.Field; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * Every Group consists of multiple Pipe components. Executing a group causes * each {@link Pipe} to process given input one by one. You cannot modify,...
43,276
https://github.com/jaylinhong/jdk14-learn/blob/master/src/jdk14-source/jdk.jlink/jdk/tools/jlink/internal/plugins/AddOptionsPlugin.java
Github Open Source
Open Source
MIT
null
jdk14-learn
jaylinhong
Java
Code
93
234
/* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.tools.jlink.internal.plugins; import java.io.*; import java.nio.charset.*; import java.util.*; i...
1,300
https://github.com/lace/vx/blob/master/vg/_helpers.py
Github Open Source
Open Source
BSD-2-Clause
2,022
vx
lace
Python
Code
248
700
import numpy as np from .shape import check, check_value def pluralize(noun, count): return noun if count == 1 else f"{noun}s" def raise_dimension_error(*input_values): messages = [ f"{input_value.ndim} {pluralize('dimension', input_value.ndim)}" for input_value in input_values ] if ...
28,999
https://github.com/digitalbitbox/bitbox02-firmware/blob/master/external/asf4-drivers/hpl/pukcc/CryptoLib_typedef_pb.h
Github Open Source
Open Source
Apache-2.0
2,023
bitbox02-firmware
digitalbitbox
C
Code
834
1,715
/** * \file * * \brief Type definitions for PUKCL * * Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Microchip * software and any derivatives exclusively with Microchip products. *...
22,577
https://github.com/HiDeoo/YaTA/blob/master/src/components/ExternalButton.tsx
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,022
YaTA
HiDeoo
TSX
Code
35
98
import { AnchorButton, ButtonProps } from '@blueprintjs/core' import * as React from 'react' /** * ExternalButton Component. */ const ExternalButton: React.FunctionComponent< ButtonProps<HTMLAnchorElement> & React.AnchorHTMLAttributes<HTMLAnchorElement> > = (props) => <AnchorButton target="_blank" {...props} /> e...
34,408
https://github.com/SakilMia/One-Stop-service-Points/blob/master/resources/views/Investor/login.blade.php
Github Open Source
Open Source
MIT
2,021
One-Stop-service-Points
SakilMia
PHP
Code
122
623
<!DOCTYPE html> <html lang="en"> <head> <title>Login</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> @include("Investor.css") </head> <body> <div class="limiter"> <div class="container-login100" style="background-image: url('{{'assets/alluser/'}}l...
15,293
https://github.com/jenkinsci/gerrit-code-review-plugin/blob/master/src/main/java/com/google/gerrit/plugins/checks/api/PendingCheckInfo.java
Github Open Source
Open Source
Apache-2.0
2,023
gerrit-code-review-plugin
jenkinsci
Java
Code
228
496
// Copyright (C) 2019 The Android Open Source Project // // 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 ...
43,239
https://github.com/ebenk26/m.eyesoccer.id/blob/master/systems/eyenews_delete.php
Github Open Source
Open Source
MIT
null
m.eyesoccer.id
ebenk26
PHP
Code
35
248
<?php require "../config/connect.php"; require "check_login.php"; require "insert_logs.php"; $admin_id=$_GET['admin_id']; $eyenews_id=$_GET['eyenews_id']; // $cmd=mysqli_query($con,"delete from tbl_eyenews where eyenews_id='$eyenews_id'"); $ins = insertLog('tbl_eyenews','eyenews_id',$eyenews_id,'delete',$admin_id,$con...
41,841
https://github.com/CharlesMoone/MusicAnalysis/blob/master/client/containers/MusicPlay/MusicPlay.jsx
Github Open Source
Open Source
MIT
2,017
MusicAnalysis
CharlesMoone
JavaScript
Code
109
320
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as actions from './actions'; import AnalysisRender from 'components/AnalysisRender'; function mapStateToProps(state) { return { state: state....
25,167
https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/vmwarecloudsimple/arm-vmwarecloudsimple/src/operationsInterfaces/customizationPolicies.ts
Github Open Source
Open Source
MIT, LicenseRef-scancode-generic-cla
2,023
azure-sdk-for-js
Azure
TypeScript
Code
158
383
/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Customization...
46,066
https://github.com/jdrda/olapus/blob/master/resources/assets/css/admin/.gitignore
Github Open Source
Open Source
MIT
2,023
olapus
jdrda
Ignore List
Code
3
16
* !.gitignore !olapus.css
38,084
https://github.com/ALCHElVlY/hlna/blob/master/src/client/utility/loadCommand.js
Github Open Source
Open Source
Unlicense
2,022
hlna
ALCHElVlY
JavaScript
Code
74
206
/** * The loadCommand function takes in a JavaScript * file and loads it as a client command. * @param {String} file The file to load * @returns */ function loadCommand(file) { const client = require('../index'); const commandName = file.replace(/\w+\\/gm, '').split('.')[0]; try { console.log(`Loading Command...
41,670
https://github.com/duro1/types/blob/master/yaml/template.go
Github Open Source
Open Source
Apache-2.0
null
types
duro1
Go
Code
209
634
// Copyright (c) 2020 Target Brands, Inc. All rights reserved. // // Use of this source code is governed by the LICENSE file in this repository. package yaml // nolint:lll // jsonschema will cause long lines type ( // TemplateSlice is the yaml representation // of the templates block for a pipeline. TemplateSlice ...
41,078
https://github.com/calstar/hardware-sch-blocks/blob/master/star-common-lib.pretty/CUI_PJ-047AH.kicad_mod
Github Open Source
Open Source
BSD-3-Clause
2,023
hardware-sch-blocks
calstar
KiCad Layout
Code
366
1,186
(module CUI_PJ-047AH (layer F.Cu) (tedit 5F4428C2) (fp_text reference REF** (at -6.35 0 270) (layer F.SilkS) (effects (font (size 0.8 0.8) (thickness 0.15))) ) (fp_text value PJ-047AH (at 0 5.5) (layer F.Fab) (effects (font (size 1 1) (thickness 0.15))) ) (fp_line (start 5.75 3.5) (end -5.75 3.5) (lay...
27,420
https://github.com/derwear/bots.hub/blob/master/catalog/Hack Bot PHP/modules/games.php
Github Open Source
Open Source
Unlicense
2,022
bots.hub
derwear
PHP
Code
1,688
8,914
<?php $playGame = true; function Automate($rate = false){ global $UserInfo,$Nick; $rate = $rate < 100 || empty($rate) ? 100 : $rate; if($UserInfo['dollar']>=$rate){ $emojiArr = ['🍎','🍅','🥝','🍒','🍓','🍇','🍈','🍉','🍋','🃏']; $Automate = [ [[],[],[]], [[],[],[]], [[],[],[]], ]; $x=0; for($...
36,082
https://github.com/lookeypl/lkCommon/blob/master/lkCommon/include/lkCommon/Math/Random.hpp
Github Open Source
Open Source
WTFPL
2,020
lkCommon
lookeypl
C++
Code
89
174
#pragma once #define _LKCOMMON_MATH_RANDOM_HPP_ namespace lkCommon { namespace Math { namespace Random { /** * Get a random number using Xorshift algorithm * * @p[inout] seed Seed used to randomize a number. Will be updated to new value after randomization. * @return Random float from 0 to 1 range */ float Xors...
31,636
https://github.com/SarahMnadi/BAS_AOSC/blob/master/routes/web.php
Github Open Source
Open Source
MIT
null
BAS_AOSC
SarahMnadi
PHP
Code
304
2,789
<?php use Illuminate\Support\Facades\Route; use Illuminate\Support\Facades\Auth; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. T...
52,937
https://github.com/uoe-agents/PyAMI/blob/master/run_virtual_agent.py
Github Open Source
Open Source
MIT
2,021
PyAMI
uoe-agents
Python
Code
304
1,098
"""A script which runs an agent on a remote machine.""" from file_handling import collect_json_from_dir, collect_neuralnets_from_dir, collect_neuralnets_from_subdir from multi_agent_systems import RemoteSystem import json, statistics from datetime import datetime def run_agent(): # Retrieve system json file ...
30,950
https://github.com/BinaryStudioAcademy/bsa-2020-schedulia/blob/master/api/tests/Feature/EventType/EventTypeApiTest.php
Github Open Source
Open Source
MIT
2,022
bsa-2020-schedulia
BinaryStudioAcademy
PHP
Code
622
2,816
<?php declare(strict_types=1); namespace Tests\Feature\EventType; use App\Entity\Availability; use App\Entity\EventType; use App\Entity\User; use App\Http\Requests\Api\EventType\LocationTypes; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Http\JsonResponse; use Tests\TestCase; final class EventT...
52,396
https://github.com/conceptric/pyinvest/blob/master/pyinvest/tests/high_growth_phase_test.py
Github Open Source
Open Source
MIT
2,013
pyinvest
conceptric
Python
Code
74
305
import unittest from pyinvest.dividend_model import * class TestHighGrowthPhase(unittest.TestCase): ''' Test the object representing a stock in the high growth phase of the dividend discount model. ''' def test_exists(self): self.assertTrue(HighGrowthPhase(1, 1, 1)) def test_duration...
40,285
https://github.com/shotamakino/graph.gl/blob/master/stories/hive-plot/hive-plot-layout.js
Github Open Source
Open Source
MIT
2,019
graph.gl
shotamakino
JavaScript
Code
521
1,503
import {BaseLayout, EDGE_TYPE} from '../../src'; const defaultOptions = { innerRadius: 100, outerRadius: 500, getNodeAxis: node => node.getPropertyValue('group'), }; const computeControlPoint = ({ sourcePosition, sourceNodeAxis, targetPosition, targetNodeAxis, totalAxis, }) => { const halfAxis = (to...
39,520
https://github.com/bgorwin/obundleTest/blob/master/node_modules/axe-core/test/checks/forms/autocomplete-appropriate.js
Github Open Source
Open Source
MIT, MPL-2.0
2,020
obundleTest
bgorwin
JavaScript
Code
268
768
describe('autocomplete-appropriate', function() { 'use strict'; var fixture = document.getElementById('fixture'); var checkSetup = axe.testUtils.checkSetup; var checkContext = axe.testUtils.MockCheckContext(); var evaluate = checks['autocomplete-appropriate'].evaluate; beforeEach(function() { axe._tree = unde...
27,600
https://github.com/marco-c/gecko-dev-comments-removed/blob/master/gfx/skia/skia/include/core/SkDrawable.h
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, BSD-3-Clause
2,023
gecko-dev-comments-removed
marco-c
C++
Code
201
848
#ifndef SkDrawable_DEFINED #define SkDrawable_DEFINED #include "include/core/SkFlattenable.h" #include "include/core/SkRefCnt.h" #include "include/core/SkScalar.h" #include "include/private/base/SkAPI.h" #include <cstddef> #include <cstdint> #include <memory> class GrBackendDrawableInfo; class SkCanvas; class...
25,495
https://github.com/michael2221807/Diggy/blob/master/Assets/Low Poly Trees Pack/Tree Assets/Prefabs/Trees/LOD/No_Bottoms/Oak_Trees/Oak_Tree_NoLeaves_crk_m_04_LOD.prefab
Github Open Source
Open Source
MIT
2,021
Diggy
michael2221807
Unity3D Asset
Code
1,664
7,027
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!1 &103466 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - component: {fileID: 475292} - component: {fileID: 13686166} m_Layer: 0 m_Na...
25,325
https://github.com/Blackdevil132/machineLearning/blob/master/test.py
Github Open Source
Open Source
MIT
2,019
machineLearning
Blackdevil132
Python
Code
44
143
import sys from src.qrl.QRL import QRL from src.environments.Game2Enemies import Game2Enemies from defines import * if len(sys.argv) < 2: # initialize standard parameters qtable = PATH + "190427_18" else: # initialize with given parameter-values qtable = sys.argv[1] env = Game2Enemies(map_name=MAP_N...
13,905
https://github.com/higeon/rarukas/blob/master/runner/runner_test.go
Github Open Source
Open Source
Apache-2.0
2,018
rarukas
higeon
Go
Code
1,166
5,023
package runner import ( "bytes" "context" "errors" "fmt" "github.com/rarukas/rarukas/server" "github.com/stretchr/testify/assert" "github.com/yamamoto-febc/go-arukas" "golang.org/x/crypto/ssh" "io/ioutil" "log" "net" "os" "testing" "time" ) type testArukasClient struct { readAppResult *arukas.AppDa...
14,468
https://github.com/15831944/JCDT/blob/master/CodeCorrection/CodeCorrectionLib/Processor/ImportEditCtrl.cpp
Github Open Source
Open Source
MIT
2,021
JCDT
15831944
C++
Code
467
2,031
#include "stdafx.h" #include "ImportEditCtrl.h" #include <boost/algorithm/string.hpp> #include <vector> #include <JCDT_Lib/internal/ast/CompilationUnitDeclaration.h> #include <JCDT_Lib/internal/ast/AstPackageDeclaration.h> #include <JCDT_Lib/internal/lex/LexStream.h> #include <JavaModelLib/internal/core/CompilationUnit...
22,623
https://github.com/jerexbambex/peer-to-peer/blob/master/routes/api.php
Github Open Source
Open Source
MIT
null
peer-to-peer
jerexbambex
PHP
Code
67
409
<?php use App\Http\Controllers\Api\V1\LiveRateController; use App\Http\Controllers\Api\V1\User\UserWalletController; use Illuminate\Http\Request; use Illuminate\Support\Facades\Route; use App\Http\Controllers\Api\V1\Auth\LoginController; use App\Http\Controllers\Api\V1\Auth\RegisterController; use App\Http\Controllers...
39,849
https://github.com/WGZCELL/Notes/blob/master/javaWeb/OnlineBookstoreDemo/Bookstore/src/com/bookstore/mvc/model/connection/ConnectContext.java
Github Open Source
Open Source
MIT
2,020
Notes
WGZCELL
Java
Code
54
184
package com.bookstore.mvc.model.connection; import java.sql.Connection; public class ConnectContext { private ConnectContext(){} private static final ConnectContext instance = new ConnectContext(); public static ConnectContext getInstance(){ return instance; } private final ThreadLocal...
22,134
https://github.com/smartrplace/ogema/blob/master/src/core/api/src/main/java/org/ogema/core/channelmanager/ChannelConfiguration.java
Github Open Source
Open Source
Apache-2.0, EPL-1.0
2,023
ogema
smartrplace
Java
Code
272
558
/** * Copyright 2011-2018 Fraunhofer-Gesellschaft zur Förderung der angewandten Wissenschaften e.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licens...
38,556
https://github.com/cragkhit/elasticsearch/blob/master/references/bcb_chosen_clones/selected#1058948#9#29.java
Github Open Source
Open Source
Apache-2.0
2,021
elasticsearch
cragkhit
Java
Code
81
219
public static void main(String[] args) { Console c = System.console(); if (c == null) { System.err.println("No console!"); System.exit(-1); } while (true) { String regex = c.readLine("%n find(), Enter your regex:"); String input = c.re...
5,354
https://github.com/gjbex/training-material/blob/master/CPlusPlus/Algorithms/permutations.cpp
Github Open Source
Open Source
CC-BY-4.0
2,023
training-material
gjbex
C++
Code
47
131
#include <algorithm> #include <iostream> #include <vector> int main() { std::vector<std::string> v = {{"a", "b", "c", "d"}}; int i {0}; do { std::cout << ++i << ": "; for (auto str: v) std::cout << str << " "; std::cout << std::endl; } while (std::next_permutation(v....
48,214
https://github.com/dzimchuk/power-video-player/blob/master/Players/WPF/Pvp.App/View/EnterKeyWindow.xaml.cs
Github Open Source
Open Source
MS-PL
2,021
power-video-player
dzimchuk
C#
Code
89
331
using System; using System.Linq; using System.Windows; using System.Windows.Data; using GalaSoft.MvvmLight.Messaging; using Pvp.App.Messaging; using Pvp.App.ViewModel; namespace Pvp.App.View { /// <summary> /// Interaction logic for EnterKeyWindow.xaml /// </summary> public partial class EnterKeyWindo...
1,627
https://github.com/alan-agius4/angular-cli/blob/master/tools/defaults.bzl
Github Open Source
Open Source
MIT
2,023
angular-cli
alan-agius4
Starlark
Code
1,306
4,100
"""Re-export of some bazel rules with repository-wide defaults.""" load("@npm//@angular/bazel:index.bzl", _ng_module = "ng_module", _ng_package = "ng_package") load("@npm//@bazel/concatjs:index.bzl", _ts_library = "ts_library") load("@build_bazel_rules_nodejs//:index.bzl", "copy_to_bin", _js_library = "js_library", _p...
28,417
https://github.com/MuzikaFoundation/muzika-studio/blob/master/projects/studio-renderer/src/mock/tags.ts
Github Open Source
Open Source
MIT
2,019
muzika-studio
MuzikaFoundation
TypeScript
Code
49
186
import {Tag} from '@muzika/core'; export const CommunityTagsMock: string[] = [ 'notice', 'life', 'travel', 'art', 'sheet', 'piano', 'food', 'news' ]; export const MusicTagsMock: string[] = [ 'life', 'story', 'summer', 'rain', 'kpop', 'classic', 'game', 'ost' ]; export const VideoTagsM...
38,821
https://github.com/brimworks/brimworks.json5.java/blob/master/databind/src/main/java/com/brimworks/databind/TypeAdapterRegistry.java
Github Open Source
Open Source
MIT
2,021
brimworks.json5.java
brimworks
Java
Code
10
30
package com.brimworks.databind; public interface TypeAdapterRegistry extends TypeFactoryRegistry, VisitTypeRegistry { }
20,574
https://github.com/Rohit484/Distribution/blob/master/w/wix-ui-icons-common/src/main/scala/typings/wixUiIconsCommon/wixUiIconsCommonFolderFindSmallMod.scala
Github Open Source
Open Source
MIT
2,020
Distribution
Rohit484
Scala
Code
30
165
package typings.wixUiIconsCommon import typings.react.mod.SFC import typings.wixUiIconsCommon.folderFindSmallMod.FolderFindSmallProps import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @JSImport("wix-ui-icons-common/Folde...
40,495
https://github.com/RowingWolfe/software-sandbox/blob/master/C projects/qsort.c
Github Open Source
Open Source
MIT
2,020
software-sandbox
RowingWolfe
C
Code
274
687
/* Ooh, did not know we had built in quicksort. I wrote this in JS and Python some time ago. Oof this got messy fast. But I got there in the end. Well, yeah. It works I guess. Probably not great though lol spent too much time fussing with ways to get my array sizes in a more dynamic manner but pointers still hurt me...
17,398
https://github.com/lkingsford/CubeRailDotGames/blob/master/templates/login.hbs
Github Open Source
Open Source
MIT
2,021
CubeRailDotGames
lkingsford
null
Spoken
71
275
{{#> main}} {{#*inline "title"}} cuberail.games - Login {{/inline}} {{#*inline "content"}} <div class="row"> <div class="twelve columns"> <h1>Login</h1> </div> </div> <div class="row"> <div class="two columns"> Username </div> <div class="two columns"> <input type="text" id="...
16,287
https://github.com/Ghosty141/Terminal/blob/master/src/host/ft_integrity/precomp.hpp
Github Open Source
Open Source
MIT
2,019
Terminal
Ghosty141
C++
Code
59
218
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. #pragma once // Windows #include <nt.h> #include <ntrtl.h> #include <nturtl.h> #include <windows.h> #include <sddl.h> // WRL #include <wrl.h> // WEX #include <WexTestClass.h> #define LOG_OUTPUT(fmt, ...) WEX::Logging::Log::Comment(WEX::Commo...
30,257
https://github.com/gr-qft/blog.maximeheckel.com/blob/master/lib/tweets.ts
Github Open Source
Open Source
MIT
2,022
blog.maximeheckel.com
gr-qft
TypeScript
Code
157
712
import qs from 'qs'; import { RawTweetType, TransformedTweet, TweetData } from '../types/tweet'; export const getTweets = async (ids: string[]) => { const queryParams = qs.stringify({ ids: ids.join(','), expansions: 'author_id,attachments.media_keys,referenced_tweets.id,referenced_tweets.id.author_id',...
52,092
https://github.com/a1kaid/hunter/blob/master/HunterClient/js/lib/common.js
Github Open Source
Open Source
Apache-2.0, MIT
2,020
hunter
a1kaid
JavaScript
Code
280
1,415
/** * Created by b5mali4 on 2019/3/11. * 公共函数 */ var TASK_STATUS = {"ON":"on", "OFF": "off"};//任务状态,决定了按钮的颜色 var ORIGINS = {"POPUP": "popup", "CONTENT": "content-script", "BACKGROUND": "background", "SETTING": "settinng"};//origin源 var READED_AGREEMENTS = {"READED": "true", "UNREADED": "false"}; var DOMAIN = "127.0...
5,244
https://github.com/sma-de/ansible-collections-base/blob/master/plugins/module_utils/plugins/config_normalizing/proxy.py
Github Open Source
Open Source
BSD-3-Clause
null
ansible-collections-base
sma-de
Python
Code
416
1,481
from __future__ import (absolute_import, division, print_function) __metaclass__ = type from urllib.parse import urlparse from ansible.errors import AnsibleError from ansible_collections.smabot.base.plugins.module_utils.plugins.config_normalizing.base import \ DefaultSetterConstant, \ NormalizerBase ##from ans...
44,561
https://github.com/cping/RipplePower/blob/master/eclipse/RipplePower/src/org/ripple/power/database/secrecy/IndexedTableEntry.java
Github Open Source
Open Source
Apache-2.0
2,020
RipplePower
cping
Java
Code
12
41
package org.ripple.power.database.secrecy; public interface IndexedTableEntry extends TableEntry { public String getIndexId(); }
35,498
https://github.com/VanAndelInstitute/Puppet-Environment/blob/master/environments/win_test/modules/dsc/lib/puppet/type/dsc_xexchmailboxdatabase.rb
Github Open Source
Open Source
Apache-2.0
2,019
Puppet-Environment
VanAndelInstitute
Ruby
Code
1,329
4,808
require 'pathname' Puppet::Type.newtype(:dsc_xexchmailboxdatabase) do require Pathname.new(__FILE__).dirname + '../../' + 'puppet/type/base_dsc' require Pathname.new(__FILE__).dirname + '../../puppet_x/puppetlabs/dsc_type_helpers' @doc = %q{ The DSC xExchMailboxDatabase resource type. Automatically gen...
38,756
https://github.com/davisagli/CumulusCI/blob/master/cumulusci/cli/tests/test_logger.py
Github Open Source
Open Source
BSD-3-Clause
2,018
CumulusCI
davisagli
Python
Code
52
248
import logging import os from unittest.mock import Mock, patch from ..logger import get_tempfile_logger, init_logger class TestLogger: @patch("cumulusci.cli.logger.requests") @patch("cumulusci.cli.logger.logging") def test_init_logger(self, logging, requests): logger = Mock(handlers=["leftover"])...
993
https://github.com/segmentio/evergreen/blob/master/src/overlay/src/Overlay.js
Github Open Source
Open Source
MIT, LicenseRef-scancode-other-permissive, Apache-2.0
2,023
evergreen
segmentio
JavaScript
Code
1,109
3,202
import React, { memo, useState, useEffect, useRef } from 'react' import PropTypes from 'prop-types' import { Transition } from 'react-transition-group' import Box, { keyframes } from 'ui-box' import { StackingOrder } from '../../constants' import preventBodyScroll from '../../lib/prevent-body-scroll' import safeInvoke ...
23,355
https://github.com/spolcyn/rt-cloud/blob/master/rtCommon/wsRemoteService.py
Github Open Source
Open Source
Apache-2.0
2,021
rt-cloud
spolcyn
Python
Code
950
2,772
""" An RPC server base class for encapsulating a service class and receiving requests that will call that encapsulated class. This is part of a remote service that communicates with the projectServer. """ import os import sys import re import time import json import pickle import logging import argparse import threadin...
45,614
https://github.com/renan-campos/CliNER/blob/master/cliner/features_dir/features.py
Github Open Source
Open Source
Apache-2.0
2,015
CliNER
renan-campos
Python
Code
248
687
###################################################################### # CliCon - clicon_features.py # # # # Willie Boag wboag@cs.uml.edu # # ...
21,394