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/a04113144/ng-zorro-antd/blob/master/src/showcase/nz-demo-card/nz-demo-card-basic.component.ts
Github Open Source
Open Source
MIT
2,017
ng-zorro-antd
a04113144
TypeScript
Code
48
189
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'nz-demo-card-basic', template: ` <nz-card style="width:300px;"> <ng-template #title> Card title </ng-template> <ng-template #extra> <a>More</a> </ng-template> <ng-template #body> <p>C...
33,717
https://github.com/jimis/influxdb/blob/master/ui/src/shared/utils/ast.ts
Github Open Source
Open Source
MIT
2,019
influxdb
jimis
TypeScript
Code
96
211
// Libraries import {isObject, isArray} from 'lodash' /* Find all nodes in a tree matching the `predicate` function. Each node in the tree is an object, which may contain objects or arrays of objects as children under any key. */ export const findNodes = ( node: any, predicate: (node: any) => boolean, acc:...
36,474
https://github.com/hakank/hakank/blob/master/setlx/PD_npow.java
Github Open Source
Open Source
MIT
2,023
hakank
hakank
Java
Code
165
543
package org.randoom.setlx.functions; import org.randoom.setlx.exceptions.IncompatibleTypeException; import org.randoom.setlx.types.Value; import org.randoom.setlx.types.Om; import org.randoom.setlx.types.Rational; import org.randoom.setlx.types.SetlBoolean; import org.randoom.setlx.types.SetlSet; import org.randoom.se...
20,890
https://github.com/maduoma/Web/blob/master/webserver_with_nodejs_and_express/app.js
Github Open Source
Open Source
Apache-2.0
2,021
Web
maduoma
JavaScript
Code
115
238
const path = require('path'); // For every package added, you must import it in the file that you want to use it. const express = require('express'); // Calls the express function, which creates a new application and then assigns the result to the app constant const app = express(); // Use the path app.use(express.sta...
20,777
https://github.com/paakcmd/dek-d-writer/blob/master/src/store.js
Github Open Source
Open Source
MIT
2,017
dek-d-writer
paakcmd
JavaScript
Code
28
92
import { createStore, applyMiddleware, compose } from 'redux' import promise from 'redux-promise' import reducers from './reducers' const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose export const store = createStore(reducers, composeEnhancers(applyMiddleware(promise)))
25,779
https://github.com/sho25/hbase/blob/master/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/store/wal/ProcedureWALFile.java
Github Open Source
Open Source
Apache-2.0
null
hbase
sho25
Java
Code
1,146
4,581
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/** * 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 license...
51,094
https://github.com/mc2-project/secure-xgboost/blob/master/enclave/rabit/src/ssl_socket.h
Github Open Source
Open Source
Apache-2.0
2,022
secure-xgboost
mc2-project
C++
Code
542
1,917
/*! * Copyright (c) 2020 by Secure XGBoost Contributors */ #ifndef RABIT_TLS_SOCKET_H_ #define RABIT_TLS_SOCKET_H_ #include "mbedtls/net_sockets.h" #include "mbedtls/ssl.h" #include "mbedtls/certs.h" #include "mbedtls/entropy.h" #include "mbedtls/ctr_drbg.h" #include "mbedtls/platform.h" #include "mbedtls/error.h" ...
45,009
https://github.com/venkatsgithub1/FCC_Practice/blob/master/JS/IntermediateAlgoScripting/wherefore-art-thou.js
Github Open Source
Open Source
Unlicense
null
FCC_Practice
venkatsgithub1
JavaScript
Code
77
242
function whatIsInAName(collection, source) { // What's in a name? var arr = []; // Only change code below this line let sourceKeyArr = Object.keys(source); arr= collection.filter((obj)=>{ for(let i=0;i<sourceKeyArr.length;i++) { if(obj.hasOwnProperty(sourceKeyArr[i])) { if(obj[sourceKeyArr...
40,924
https://github.com/twitter/scrooge/blob/master/scrooge-generator-tests/src/test/scala/com/twitter/scrooge/frontend/ImporterSpec.scala
Github Open Source
Open Source
Apache-2.0
2,023
scrooge
twitter
Scala
Code
396
1,492
package com.twitter.scrooge.frontend import com.twitter.scrooge.testutil.{Spec, TempDirectory} import java.io.{File, FileOutputStream} class ImporterSpec extends Spec { "fileImporter" should { val testFolder = TempDirectory.create(None) "finds files on the path" in { val folder1 = new File(testFolder...
22,479
https://github.com/tmunzer/mwtt/blob/master/__init__.py
Github Open Source
Open Source
MIT
2,023
mwtt
tmunzer
Python
Code
8
21
from .src.libs import req from .src.libs.logger import Console
15,727
https://github.com/kenphp/ken-router/blob/master/examples/index.php
Github Open Source
Open Source
MIT
2,019
ken-router
kenphp
PHP
Code
236
633
<?php require __DIR__ . '/../vendor/autoload.php'; // create new instance $router = new \Ken\Router\Router(); // define not found handler $router->setNotFoundHandler(function($params = []) { echo "Route '" . $params['route'] . "' not found."; }); // define routes $router->get('/', function($params = []) { e...
13,073
https://github.com/dalibor-drgon/ultrasound-tof/blob/master/sqrt64.sv
Github Open Source
Open Source
MIT
null
ultrasound-tof
dalibor-drgon
null
Spoken
14
41
module sqrt64( input clk, input unsigned [63:0] in, output unsigned [31:0] out ); endmodule
33,222
https://github.com/lifan2000/epedemicIntimeSituation/blob/master/src/js/echarts.js
Github Open Source
Open Source
MIT
2,021
epedemicIntimeSituation
lifan2000
JavaScript
Code
318
1,307
let echarts = require("echarts"); // 引入安装好的echarts依赖 import china from "../../node_modules/echarts/map/json/china.json"; // 从echarts依赖中导入中国的模板 echarts.registerMap("china", china); function loadMap(currentMapType) { $.ajax({ type: "get", async: true, // 需要使用异步请求 url: "https://lab.isaaclin.cn/nCoV/api/area"...
22,639
https://github.com/Gcaufy/shengzaizai/blob/master/api/models/Order.php
Github Open Source
Open Source
BSD-3-Clause
null
shengzaizai
Gcaufy
PHP
Code
68
257
<?php namespace api\models; use Yii; use yii\helpers\ArrayHelper; class Order extends \backend\modules\order\models\Order { use ApiModelTrait; public function fields() { $denied = []; if ($this->opera_id) { $denied = ['isvip', 'insp_id', 'insp_name']; } else if ($this->i...
34,879
https://github.com/tinnguyen96/partition-coupling/blob/master/modules/compileUtils.py
Github Open Source
Open Source
MIT
null
partition-coupling
tinnguyen96
Python
Code
1,654
6,606
## todos ## make the compilation functions a class ## unify with compile_mse.py ## add plot to compare number of sweeps done by single and the error in estimation. import copy import json # import statsmodels.api as sm # import statsmodels from scipy import stats from numpy.random import default_rng import pickle im...
35,986
https://github.com/SMazu/JSIL/blob/master/Tests/InterfaceTestCases/OverloadedGenericMethodInsideNonGenericInterface.cs
Github Open Source
Open Source
MIT
2,022
JSIL
SMazu
C#
Code
62
161
// #issue #204 using System; interface ITypePrinter { void Print (Type type); void Print<T> (); } class TypePrinter : ITypePrinter { public void Print (Type type) { Console.WriteLine(type); } public void Print<T> () { Print(typeof(T)); } } class Program { public static ...
34,612
https://github.com/joaquimjfernandes/Curso-de-Python/blob/master/Desafios 2/m01/ex022.py
Github Open Source
Open Source
MIT
null
Curso-de-Python
joaquimjfernandes
Python
Code
53
204
print('\033[32;1mDESAFIO 22 - Analisando Textos\033[m') print('\033[32;1mALUNO:\033[m \033[36;1mJoaquim Fernandes\033[m') nome = str(input('Digite seu Nome Completo: ')).strip() print('======= Analisando o seu Nome =======') print(f'Seu Nome em Maiúculas é', nome.upper()) print(f'Seu Nome em Minúsculas é', nome.lower()...
33,259
https://github.com/onesvat/sql-view/blob/master/src/routes/favorites_route.php
Github Open Source
Open Source
MIT
null
sql-view
onesvat
PHP
Code
152
531
<?php use Slim\Http\Request; use Slim\Http\Response; use RedBeanPHP\R; $app->get('/favorites', function (Request $request, Response $response, $args) use ($app) { $logs = R::getAll("SELECT * FROM queries LEFT JOIN connections ON connections.cnn_id = queries.que_connection WHERE que_user = :usr_id AND que_favorit...
34,411
https://github.com/mdtaps/VirtualTourist/blob/master/Photo+CoreDataProperties.swift
Github Open Source
Open Source
MIT
null
VirtualTourist
mdtaps
Swift
Code
58
151
// // Photo+CoreDataProperties.swift // VirtualTourist // // Created by Mark Tapia on 9/24/17. // Copyright © 2017 Mark Tapia. All rights reserved. // import Foundation import CoreData extension Photo { @nonobjc public class func fetchRequest() -> NSFetchRequest<Photo> { return NSFetchRequest<Photo>...
29,620
https://github.com/mosheCrespin/moodle_plugin/blob/master/moodle/mod/scorm/index.php
Github Open Source
Open Source
Apache-2.0
2,022
moodle_plugin
mosheCrespin
PHP
Code
405
1,412
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle ...
49,716
https://github.com/bitfinexcom/svc-js-cli/blob/master/templates/api.wrk.js.tmpl.js
Github Open Source
Open Source
Apache-2.0
2,021
svc-js-cli
bitfinexcom
JavaScript
Code
67
212
'use strict' const { WrkApi } = require('bfx-wrk-api') class __WORKERCLASSNAME__ extends WrkApi { constructor (conf, ctx) { super(conf, ctx) this.loadConf('__CONFIG1__', '__CONFIG_2__') this.init() this.start() } getPluginCtx (type) { const ctx = super.getPluginCtx(type) switch (type...
13,794
https://github.com/htars/stdlinux2-source/blob/master/grep.c
Github Open Source
Open Source
MIT
2,022
stdlinux2-source
htars
C
Code
130
428
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <regex.h> static void do_grep(regex_t *pat, FILE *f); int main(int argc, char *argv[]) { regex_t pat; int err; int i; if (argc < 2) { fputs("no pattern\n", stderr); exit(1); } err = regc...
38,131
https://github.com/dvsa/ext-svc-dva-trailer-details/blob/master/tests/features/step_definitions/8183.ACs.feature.steps.intTest.ts
Github Open Source
Open Source
MIT
null
ext-svc-dva-trailer-details
dvsa
TypeScript
Code
139
366
import {defineFeature, loadFeature} from "jest-cucumber"; import supertest from "supertest"; import path from "path"; const url = "http://localhost:3006/"; const request = supertest(url); import mockData from "../../resources/dva-trailer-details.json"; import * as _ from "lodash"; const feature = loadFeature(path.re...
33,650
https://github.com/somkiet073/ci-demos-dashbord/blob/master/assets/DevExtreme/Demos/WidgetsGallery/Demos/Lookup/Basics/Angular/app/app.service.ts
Github Open Source
Open Source
MIT
null
ci-demos-dashbord
somkiet073
TypeScript
Code
374
989
import { Injectable } from '@angular/core'; export class Task { Id: number; Assigned: string; Subject: string; } let employeesList: string[] = [ "John Heart", "Samantha Bright", "Arthur Miller", "Robert Reagan", "Greta Sims", "Brett Wade", "Sandra Johnson", "Ed Holmes", "Barb Banks", "Kevin Carte...
43,101
https://github.com/siju-samuel/paddle/blob/master/paddle/fluid/inference/analysis/analyzer_lac_tester.cc
Github Open Source
Open Source
ECL-2.0, Apache-2.0
null
paddle
siju-samuel
C++
Code
917
3,351
// Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. // // 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...
7,363
https://github.com/mambax7/bootstrap_package/blob/master/Resources/Public/JavaScript/Src/bootstrap.form.js
Github Open Source
Open Source
MIT
2,019
bootstrap_package
mambax7
JavaScript
Code
12
68
$(function () { $('.custom-file-input').on('change', function(){ var fileName = $(this).val().split('\\').slice(-1)[0]; $(this).next('.custom-file-label').text(fileName); }) });
42,716
https://github.com/alxmrs/arcs/blob/master/src/runtime/manual_tests/firebase-test.ts
Github Open Source
Open Source
BSD-3-Clause, WTFPL, Apache-2.0
2,021
arcs
alxmrs
TypeScript
Code
288
926
/** * @license * Copyright (c) 2019 Google Inc. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * Code distributed by Google as part of this project is also * subject to an additional IP rights grant found at * http://polymer.github.io...
44,365
https://github.com/MattAtHazmat/flirry/blob/master/RGB-matrix-Panel-master/examples/colorwheel_32x32/colorwheel_32x32.ino
Github Open Source
Open Source
MIT
2,018
flirry
MattAtHazmat
null
Spoken
297
682
// colorwheel demo for Adafruit RGBmatrixPanel library. // Renders a nice circle of hues on our 32x32 RGB LED matrix: // http://www.adafruit.com/products/607 // Written by Limor Fried/Ladyada & Phil Burgess/PaintYourDragon // for Adafruit Industries. // BSD license, all text above must be included in any redistributio...
39,092
https://github.com/RyanStonebraker/RandomSynonymGenerator/blob/master/bin/randomSynonym.dart
Github Open Source
Open Source
MIT
null
RandomSynonymGenerator
RyanStonebraker
Dart
Code
308
846
// randomSynonym.dart // Ryan Stonebraker // Gets a word from user and finds a synonym by webscraping using the dart:html // library. import "dart:io"; import 'dart:math'; import 'package:http/http.dart' as http; // Splits a raw string by newlines and then removes up to the end of a marker // in each string. List ge...
33,487
https://github.com/dimaspandu/dev.ags/blob/master/application/modules/front/views/contacts_view.php
Github Open Source
Open Source
MIT
null
dev.ags
dimaspandu
PHP
Code
382
1,896
<?= $setting; ?> <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title><?php echo titlePage('contacts'); ?></title> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href='https://fonts.googleapis.com/css?family=Open+Sans...
48,928
https://github.com/achristensen6/tvOS130Headers/blob/master/System/Library/PrivateFrameworks/IDS.framework/identityservicesd.app/IDSSystemAccount.h
Github Open Source
Open Source
MIT
2,019
tvOS130Headers
achristensen6
Objective-C
Code
90
255
/* * This header is generated by classdump-dyld 1.0 * on Tuesday, November 5, 2019 at 2:41:52 AM Mountain Standard Time * Operating System: Version 13.0 (Build 17J586) * Image Source: /System/Library/PrivateFrameworks/IDS.framework/identityservicesd.app/identityservicesd * classdump-dyld is licensed under GPLv3, Copyri...
30,427
https://github.com/kenferrara/collectors/blob/master/collectors/icdcm/collector.py
Github Open Source
Open Source
MIT
2,020
collectors
kenferrara
Python
Code
148
531
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import io import logging import zipfile import requests from scrapy.http import TextResponse from .record import Record logger = logging.getLogger...
43,650
https://github.com/Lemoncode/bootcamp-backend/blob/master/00-stack-documental/05-cloud/04-logging-monitoring/03-deploy-heroku/front/src/scenes/book.scene.tsx
Github Open Source
Open Source
MIT
2,021
bootcamp-backend
Lemoncode
TypeScript
Code
37
85
import React from 'react'; import { AppLayout } from 'layouts'; import { BookContainer } from 'pods/book'; export const BookScene: React.FunctionComponent = () => { return ( <AppLayout> {({ className }) => <BookContainer className={className} />} </AppLayout> ); };
13,334
https://github.com/Gourav5857/RTU-DigitalLibrary/blob/master/Python Programs/Leap Year.py
Github Open Source
Open Source
MIT
2,020
RTU-DigitalLibrary
Gourav5857
Python
Code
53
110
a = input("Enter year: ") try: year = int(a) if year<=0: raise Exception("Year can not be 0 or less than 0") if (year % 4 == 0) and (year % 100 != 0) or (year % 400 == 0): print("Leap Year") else: print("Not a leap year") except ValueError: print("Please Enter Year in digit")...
47,660
https://github.com/architect/utils/blob/master/.npmignore
Github Open Source
Open Source
Apache-2.0
2,023
utils
architect
Ignore List
Code
7
38
.eslintignore .eslintrc.js .git/ .github/ codecov.yaml coverage/ test/
14,535
https://github.com/Desantowski/SAMP-EDGEngine/blob/master/SAMP-EDGEngine/include/SAMP-EDGEngine/World/Scene.hpp
Github Open Source
Open Source
MIT
null
SAMP-EDGEngine
Desantowski
C++
Code
686
1,965
#pragma once #include SAMP_EDGENGINE_PCH // Base class headers: #include <SAMP-EDGEngine/Core/BasicInterfaces/NonCopyable.hpp> // Stored classes: #include <SAMP-EDGEngine/World/MapObject.hpp> #include <SAMP-EDGEngine/World/PersonalObject.hpp> #include <SAMP-EDGEngine/World/UniversalObject.hpp> #include <SAMP-EDGEngi...
9,173
https://github.com/xuan567/Courseji/blob/master/my/src/main/java/com/littlecorgi/my/logic/dao/AndPermissionHelp.java
Github Open Source
Open Source
MIT
2,021
Courseji
xuan567
Java
Code
132
686
package com.littlecorgi.my.logic.dao; import android.annotation.SuppressLint; import android.content.Context; import android.widget.Toast; import com.yanzhenjie.permission.AndPermission; import com.yanzhenjie.permission.runtime.Permission; import java.util.List; /** * AndPermission的工具类 */ public class AndPermission...
53,979
https://github.com/danvarnau/purecloud-embeddable-framework-mystery-crm/blob/master/app/controllers/issues/view.js
Github Open Source
Open Source
MIT
2,021
purecloud-embeddable-framework-mystery-crm
danvarnau
JavaScript
Code
46
161
import Controller from '@ember/controller'; import Ember from 'ember'; export default Controller.extend({ date: Ember.computed('model', function(){ let createdDate = this.get('model.createdDate'); return new Date(createdDate - 60000).toLocaleString('en-US'); }), isOpen: Ember.computed('mode...
21,831
https://github.com/Zilborg/payload/blob/master/test/admin/styles.scss
Github Open Source
Open Source
MIT
2,023
payload
Zilborg
SCSS
Code
12
50
.nav__controls { font-family: monospace; background-image: url('/placeholder.png'); } .nav__controls:before { content: 'custom-css'; }
34,791
https://github.com/gjy5885/azure-sdk-for-net/blob/master/sdk/storsimple8000series/Microsoft.Azure.Management.StorSimple8000Series/src/Generated/Models/Manager.cs
Github Open Source
Open Source
MIT
2,022
azure-sdk-for-net
gjy5885
C#
Code
347
896
namespace Microsoft.Azure.Management.StorSimple8000Series.Models { using Azure; using Management; using StorSimple8000Series; using Rest; using Rest.Serialization; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; using System.Linq; /// <summary...
25,034
https://github.com/Domiii/dbux/blob/master/dbux-cli/src/unused/cliPaths.js
Github Open Source
Open Source
Apache-2.0
2,023
dbux
Domiii
JavaScript
Code
45
113
// import path from 'path'; // function getBinPath(binFile) { // // TODO: does not work with webpack! // const thisFolder = require.resolve('.'); // return path.resolve( // path.join(thisFolder, '..', '..', 'bin', binFile) // ); // } // export function getRunFilePath() { // return getBinPath('dbux-run-f...
25,543
https://github.com/DanGrew/Nuts/blob/master/nuts/src/uk/dangrew/nuts/nutrients/Nutrition.java
Github Open Source
Open Source
Apache-2.0
null
Nuts
DanGrew
Java
Code
163
448
package uk.dangrew.nuts.nutrients; import java.util.EnumMap; import java.util.stream.Stream; import javafx.beans.property.ObjectProperty; import javafx.beans.property.SimpleObjectProperty; import javafx.beans.value.ChangeListener; import uk.dangrew.nuts.food.Food; public class Nutrition { private final EnumMap< ...
42,319
https://github.com/defvar/toy/blob/master/plugins/toy-plugin-commons/toy-plugin-file/src/file_reader.rs
Github Open Source
Open Source
MIT
2,023
toy
defvar
Rust
Code
556
1,709
use std::fs::File; use std::io::{BufRead, BufReader, Error}; use std::path::PathBuf; use toy_text_parser::dfa::{ByteParser, ParseResult}; use toy_text_parser::Line; #[derive(Debug)] pub struct FileReader { reader: ByteParser, src: BufReader<File>, state: FileReaderState, } #[derive(Debug)] pub struct Fil...
42,509
https://github.com/nguyenhuuthanh/SimpleQA/blob/master/app/Http/Requests/Api/QuestionStoreRequest.php
Github Open Source
Open Source
MIT
2,017
SimpleQA
nguyenhuuthanh
PHP
Code
29
108
<?php namespace App\Http\Requests\Api; use App\Constants\QuestionStatus; class QuestionStoreRequest extends ApiRequest { public function rules() { return [ 'title' => 'required|max:255', 'content' => 'required|max:255', 'status' => 'required|in:'.join(',', Questi...
14,410
https://github.com/hua345/MutexIM/blob/master/server/DemoServer/Tcp_Session.h
Github Open Source
Open Source
Apache-2.0
2,017
MutexIM
hua345
C++
Code
314
1,043
#ifndef DEMO_TCP_SESSION #define DEMO_TCP_SESSION // MS compatible compilers support #pragma once #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif #include <boost/asio.hpp> #include <boost/bind.hpp> #include <memory.h> #include <iostream> #include <stdint.h> #include <queue> #include <boost/asio/stre...
38,081
https://github.com/jbboehr/php-epeg/blob/master/examples/rmmarker.php
Github Open Source
Open Source
MIT
2,016
php-epeg
jbboehr
PHP
Code
22
80
<?php /** * php_epeg/examples * do not resize, only remove marker */ require dirname(__FILE__) . DIRECTORY_SEPARATOR . 'common.inc.php'; var_dump(epeg_thumbnail_create($sampleimg, 'no-marker.jpg', 30000, 30000));
41,608
https://github.com/cyandestructor/Didactinaut/blob/master/FrontEnd/js/Students.js
Github Open Source
Open Source
MIT
null
Didactinaut
cyandestructor
JavaScript
Code
219
964
import Utility from '/scripts/Utility.js'; $(document).ready(function(){ fetch('http://localhost/api/session/', { method: 'GET' }).then((response)=>{ if(response.ok){ return response.json(); } }).then((data)=>{ ...
50,268
https://github.com/cinemast/libjson-rpc-cpp/blob/master/src/test/test_server.cpp
Github Open Source
Open Source
MIT
2,022
libjson-rpc-cpp
cinemast
C++
Code
1,030
6,097
/************************************************************************* * libjson-rpc-cpp ************************************************************************* * @file test_server.cpp * @date 28.09.2013 * @author Peter Spiess-Knafl <dev@spiessknafl.at> * @license See attached LICENSE.txt **********...
39,028
https://github.com/tunmustard/pmt_django/blob/master/mysite/polls/migrations/0002_auto_20181031_1005.py
Github Open Source
Open Source
MIT
2,018
pmt_django
tunmustard
Python
Code
34
140
# Generated by Django 2.1.2 on 2018-10-31 10:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('polls', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='question', name='pub_date', ),...
39,065
https://github.com/KualiCo/frontend-maven-plugin/blob/master/frontend-plugin-core/src/main/java/com/github/eirslett/maven/plugins/frontend/lib/KarmaRunner.java
Github Open Source
Open Source
Apache-2.0
2,015
frontend-maven-plugin
KualiCo
Java
Code
36
139
package com.github.eirslett.maven.plugins.frontend.lib; import java.util.Arrays; public interface KarmaRunner { void execute(String args) throws TaskRunnerException; } final class DefaultKarmaRunner extends NodeTaskExecutor implements KarmaRunner { static final String TASK_LOCATION = "node_modules/karma/bin...
24,542
https://github.com/gabonator/LA104/blob/master/system/apps_experiments/126_sdvid/source/sd.h
Github Open Source
Open Source
MIT
2,023
LA104
gabonator
C++
Code
1,682
6,499
class CSd { public: typedef enum { CARD_NONE, CARD_MMC, CARD_SD, CARD_SDHC, CARD_UNKNOWN } sdcard_type_t; public: typedef enum { GO_IDLE_STATE = 0, SEND_OP_COND = 1, SEND_CID = 2, SEND_RELATIVE_ADDR...
4,607
https://github.com/fossabot/pandas/blob/master/pms/device_in_project.go
Github Open Source
Open Source
Apache-2.0
null
pandas
fossabot
Go
Code
319
1,026
// Licensed under the Apache License, Version 2.0 (the "License"); you may // not use p file except in compliance with the License. You may obtain // a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distrib...
14,805
https://github.com/Davidjbennett/DavidBennett.github.io/blob/master/CS2370/Code/trend.py
Github Open Source
Open Source
MIT
2,022
DavidBennett.github.io
Davidjbennett
Python
Code
89
300
# plot3.py: Multiple plots on the same axis, uses a legend import matplotlib.pyplot as plt _,axis = plt.subplots() xs = range(0,20) ys = [174.0, 174.2, 174.1, 174.7, 174.2, 175.2, 176.2, 175.6, 176.2, 174.8, 174.4, 174.9, 175.7, 175.5, 175.7, 174.2, 173.8, 175.0, 173.9, 173.7] # Labels go in the legend axis.plo...
28,023
https://github.com/LuckyChen73/CWCommonTools/blob/master/CWCommonTools/CWCommonTools/CommonTools/ToolView/CWSearchBar.h
Github Open Source
Open Source
MIT
null
CWCommonTools
LuckyChen73
C
Code
47
191
// // CWSearchBar.h // CommonTools // // Created by 深圳策维科技有限公司 on 2017/9/7. // Copyright © 2017年 深圳策维科技有限公司. All rights reserved. // #import <UIKit/UIKit.h> // 文本回调 typedef void(^TextBlock) (NSString *text); // 动作回调 typedef void(^ActionBlock) (); @interface CWSearchBar : UISearchBar @property(nonatomic,copy)Tex...
21,531
https://github.com/geovas01/cup2/blob/master/docs/MiniJavaSample/flex/MiniJavaSpec.jflex
Github Open Source
Open Source
Zlib
2,015
cup2
geovas01
null
Spoken
319
878
package compiler; import edu.tum.cup2.grammar.*; import edu.tum.cup2.scanner.*; import static compiler.MiniJavaSpec.NonTerminals.*; import static compiler.MiniJavaSpec.Terminals.*; import static minijava.Constants.*; /** * This class is a scanner for the {@link MiniJavaSpec} grammar. * It was generated by JFlex,...
4,243
https://github.com/timkrentz/SunTracker/blob/master/IMU/VTK-6.2.0/Examples/ParallelProcessing/Generic/Cxx/ParallelIso.cxx
Github Open Source
Open Source
MIT
2,019
SunTracker
timkrentz
C++
Code
775
2,617
/*========================================================================= Program: Visualization Toolkit Module: ParallelIso.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is d...
15,468
https://github.com/andela-jejezie/peopleProject/blob/master/node_modules/forever/node_modules/flatiron/examples/http-sample.js
Github Open Source
Open Source
MIT
2,022
peopleProject
andela-jejezie
JavaScript
Code
80
325
var util = require('util'), flatiron = require('../lib/flatiron'), app = flatiron.app; app.use(flatiron.plugins.http); app.router.get('/', function () { this.res.writeHead(200, { 'Content-Type': 'text/plain' }); this.res.end('Hello world!\n'); }); app.router.post('/', function () { this.res.writeHead(2...
24,300
https://github.com/Madhan-I/gcp-nuke/blob/master/source/libs/logs.py
Github Open Source
Open Source
MIT
2,020
gcp-nuke
Madhan-I
Python
Code
59
150
"""Manage logging""" import logging import warnings def init_logs(log_level): """ Init the log level according to the parameter in input :param log_level: The desired log level :return: the logger object """ # Init logging logging.basicConfig(level=getattr(logging, log_level), format='[%(...
41,994
https://github.com/assis-freitas/draw2d/blob/master/src/shape/icon/Photo.ts
Github Open Source
Open Source
MIT
2,021
draw2d
assis-freitas
TypeScript
Code
100
603
import draw2d from '../../packages' /** * @class * * @example * * let icon = new draw2d.shape.icon.Photo(); * * canvas.add(icon,50,10); * * @inheritable * @author Andreas Herz * @extends draw2d.shape.icon.Icon */ draw2d.shape.icon.Photo = draw2d.shape.icon.Icon.extend( /** @lends draw2d.shape.ic...
44,824
https://github.com/daniels75/redux-chat-my/blob/master/my-counter/src/app/counter.actions.ts
Github Open Source
Open Source
MIT
2,019
redux-chat-my
daniels75
TypeScript
Code
40
105
import {Action, ActionCreator} from "redux"; export const INCREMENT:string = 'INCREMENT' export const DECREMENT:string = 'DECREMENT' export const increment: ActionCreator<Action> = () => ( { type: INCREMENT } ) export const decrement:ActionCreator<Action> = () => ( { type: DECREMENT } )
36,164
https://github.com/tafoca/Tensorflow-revision/blob/master/text-speech/basic_sr-micro.py
Github Open Source
Open Source
MIT
null
Tensorflow-revision
tafoca
Python
Code
71
215
import speech_recognition as sr # case source stream is my microphone def main(): # init regonizer of audio r = sr.Recognizer() #definite source of stream data income with sr.Microphone() as source: r.adjust_for_ambient_noise(source) #invitation message print('Please Say anith...
36,717
https://github.com/FlorentinaPetica/Modal-storybook/blob/master/src/components/ModalView.js
Github Open Source
Open Source
MIT
null
Modal-storybook
FlorentinaPetica
JavaScript
Code
139
451
import React from "react"; import PropTypes from "prop-types"; import "./modal.css"; import { Button } from "../stories/Button"; export const ModalView = ({ paragraph, backgroundColor, color, fontSize, width, height, visible, onClose, opacity, display, }) => ( <> <div className='bg-gene...
23,370
https://github.com/SammyEnigma/PityuTool.UI/blob/master/Views/PityuComponentDesigner.cs
Github Open Source
Open Source
MIT
2,020
PityuTool.UI
SammyEnigma
C#
Code
115
511
using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; namespace PityuTool.UI.Views { internal partial class PityuComponentDesigner : ComponentDesigner { protected override void PreFilterProperties(IDictionary properties) { base.Pr...
27,376
https://github.com/airbnb/istio/blob/master/pilot/cmd/pilot-agent/options/options.go
Github Open Source
Open Source
Apache-2.0
2,023
istio
airbnb
Go
Code
918
2,697
// Copyright Istio Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in wri...
28,546
https://github.com/PolishPigeon/penguins/blob/master/src/generate.c
Github Open Source
Open Source
MIT
null
penguins
PolishPigeon
C
Code
167
451
#include "game_struct.h" #include <stdlib.h> #include <stdio.h> #include <time.h> #include <string.h> Field** allocateMemory(GameState Game) { //This for loop assigns pointers from our array of pointer // to the beginning of memory blocks with size of Field struct // There are board_width number of smaller memor...
52,310
https://github.com/JetBrains/intellij-community/blob/master/python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_1/_pkg0_1_0/_pkg0_1_0_1/_pkg0_1_0_1_0/_mod0_1_0_1_0_1.py
Github Open Source
Open Source
Apache-2.0
2,023
intellij-community
JetBrains
Python
Code
15
89
name0_1_0_1_0_1_0 = None name0_1_0_1_0_1_1 = None name0_1_0_1_0_1_2 = None name0_1_0_1_0_1_3 = None name0_1_0_1_0_1_4 = None
39,769
https://github.com/Iamthepizzagod/Snooper/blob/master/src/Snooper/CustomCitizenInfoPanel.cs
Github Open Source
Open Source
MIT
2,018
Snooper
Iamthepizzagod
C#
Code
154
437
// <copyright file="CustomCitizenInfoPanel.cs" company="dymanoid"> // Copyright (c) dymanoid. All rights reserved. // </copyright> namespace Snooper { /// <summary> /// A customized citizen info panel that additionally shows the origin building of the citizen. /// </summary> internal sealed class Cust...
30,150
https://github.com/mtbadi39/swing-effects/blob/master/substance/src/main/java/org/pushingpixels/substance/internal/utils/PairwiseButtonBackgroundDelegate.java
Github Open Source
Open Source
BSD-3-Clause
2,018
swing-effects
mtbadi39
Java
Code
1,211
3,932
/* * Copyright (c) 2005-2018 Substance Kirill Grouchnikov. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * o Redistributions of source code must retain the above copyright notice, * t...
4,725
https://github.com/vrtdev/Promtius/blob/master/promtius-api/src/main/java/be/appfoundry/promtius/exception/PromtiusException.java
Github Open Source
Open Source
Apache-2.0
null
Promtius
vrtdev
Java
Code
63
173
package be.appfoundry.promtius.exception; /** * @author Mike Seghers */ public class PromtiusException extends RuntimeException { public PromtiusException() { } public PromtiusException(final String message) { super(message); } public PromtiusException(final String message, final Throwa...
22,947
https://github.com/Workgrid/workgrid-ui-components/blob/master/src/components/SNTime.tsx
Github Open Source
Open Source
Apache-2.0
2,021
workgrid-ui-components
Workgrid
TypeScript
Code
49
111
import React from 'react' import { useLocale } from './LocaleProvider' export type SNTimeProps = { /** * Date to render */ date: string } export const SNTime = ({ date }: SNTimeProps): JSX.Element => { const { locale } = useLocale() const dt = new Date(date) return <>{dt.toLocaleTimeString(locale)}</...
3,841
https://github.com/Iciclelz/elegance/blob/master/Elegance/App.xaml.cs
Github Open Source
Open Source
MIT
null
elegance
Iciclelz
C#
Code
52
227
using Elegance.Windows; using MahApps.Metro; using System; using System.Windows; namespace Elegance { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Application { void App_Startup(object sender, StartupEventArgs e) { new MainW...
39,903
https://github.com/razorinc/bots-framework/blob/master/platforms/telegram/webhook_msg_audio.go
Github Open Source
Open Source
Apache-2.0
2,017
bots-framework
razorinc
Go
Code
47
235
package telegram_bot import ( "github.com/strongo/bots-api-telegram" "github.com/strongo/bots-framework/core" ) type TelegramWebhookAudioMessage struct { telegramWebhookMessage TgMessageType TelegramMessageType } var _ bots.WebhookAudioMessage = (*TelegramWebhookAudioMessage)(nil) func (_ TelegramWebhookAudioMe...
45,813
https://github.com/ulysses4ever/jl-data/blob/master/data/files/197/197698.raw
Github Open Source
Open Source
BSD-2-Clause-Views, BSD-2-Clause
2,017
jl-data
ulysses4ever
Julia
Code
250
698
# ---- lowest bits directly function make_solve_lbits_noro{W<:Unsigned, T<:Unsigned}(::Type{T}, nbits, ::Type{W}) # for any number of rounds, or key size, but no rotation, we can # tabulate the the first nbits of each half-block and use them as # a lookup table. this doesn't decrypt the entire block, bu...
11,176
https://github.com/musama96/unmudl-lines/blob/master/dist/partner-requests/partner-requests.module.d.ts
Github Open Source
Open Source
MIT
null
unmudl-lines
musama96
TypeScript
Code
6
12
export declare class PartnerRequestsModule { }
40,932
https://github.com/abekoh/dcgan_font/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,017
dcgan_font
abekoh
Ignore List
Code
22
142
/bin/ /include/ /lib/ /lib64/ /pip-selfcheck.json /output*/ /test_output/ /keras-dcgan/ /__pycache__/ /generated/ /trash/ *.pkl *.pyc output_classifier /ramdom_matrix.txt /environment_log.txt /output_classifier /classificator_alex_27class.hdf5 /keras/ /mylib/__pycache__/ /mylib/deap/ /mylib/keras/
30,908
https://github.com/paololersey/microservices-spring-cloud/blob/master/order-service-2/src/main/java/com/codespacelab/order/model/OrderDto.java
Github Open Source
Open Source
MIT
2,021
microservices-spring-cloud
paololersey
Java
Code
28
116
package com.codespacelab.order.model; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.*; import java.util.List; @AllArgsConstructor @Builder @Getter @Setter @NoArgsConstructor @JsonInclude(JsonInclude.Include.NON_NULL) public class OrderDto { private Long id; private List<String> items; ...
1,731
https://github.com/Plegsd/Arctic-Fox/blob/master/build/mobile/robocop/FennecNativeActions.java
Github Open Source
Open Source
Apache-2.0
2,020
Arctic-Fox
Plegsd
Java
Code
1,026
3,655
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package org.mozilla.goanna; import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlocking...
34,017
https://github.com/shtik/Questions/blob/master/src/ShtikLive.Questions/Models/AnswerDto.cs
Github Open Source
Open Source
MIT
2,017
Questions
shtik
C#
Code
67
155
using System; using ShtikLive.Questions.Data; namespace ShtikLive.Questions.Models { public class AnswerDto { public string QuestionId { get; set; } public string User { get; set; } public string Text { get; set; } public DateTimeOffset Time { get; set; } public static...
15,142
https://github.com/Noname-Studio/ET/blob/master/Unity/Assets/Scripts/DB/Client/Food_Ext.cs
Github Open Source
Open Source
MIT
null
ET
Noname-Studio
C#
Code
443
1,468
using System; using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using UnityEngine; namespace RestaurantPreview.Config { public partial class FoodProperty { public class FoodDetailProperty { private int mLevel; private int mUnlockLv; ...
4,203
https://github.com/hanifjauhari/dwitunggal/blob/master/application/controllers/C_kodebarang.php
Github Open Source
Open Source
MIT
null
dwitunggal
hanifjauhari
PHP
Code
134
678
<?php defined('BASEPATH') or exit('No direct script access allowed'); class C_kodebarang extends CI_Controller { function __construct() { parent::__construct(); if (empty($this->session->userdata('sess_id_profile'))) { $this->session->set_flashdata('pesan', "harap login terlebi...
52,518
https://github.com/Jeebiz/jeebiz-admin/blob/master/jeebiz-admin-extras/jeebiz-admin-extras-logbiz/src/main/java/io/hiwepy/admin/extras/logbiz/setup/event/listener/AuthzLogEventListener.java
Github Open Source
Open Source
Apache-2.0
2,022
jeebiz-admin
Jeebiz
Java
Code
59
370
/** * Copyright (C) 2018 Jeebiz (http://jeebiz.net). * All Rights Reserved. */ package io.hiwepy.admin.extras.logbiz.setup.event.listener; import org.apache.logging.log4j.ThreadContext; import org.apache.logging.log4j.spring.boot.utils.Log4jUtils; import org.springframework.context.ApplicationListener; import org...
38,123
https://github.com/adamayoung/AzureDevOpsKit/blob/master/Sources/AzureDevOpsPipelines/Endpoints/LogEndpoint.swift
Github Open Source
Open Source
Apache-2.0
null
AzureDevOpsKit
adamayoung
Swift
Code
102
397
import AzureDevOpsCore import AzureDevOpsClient import Foundation enum LogEndpoint { case list(runID: Run.ID, pipelineID: Pipeline.ID, projectID: TeamProject.ID) case get(logID: PipelineLog.ID, runID: Run.ID, pipelineID: Pipeline.ID, projectID: TeamProject.ID) } extension LogEndpoint: Endpoint { var path...
3,865
https://github.com/rkausch/opensphere-desktop/blob/master/open-sphere-base/core/src/main/java/com/bitsys/common/http/auth/Credentials.java
Github Open Source
Open Source
LicenseRef-scancode-free-unknown, Apache-2.0, LicenseRef-scancode-public-domain
2,020
opensphere-desktop
rkausch
Java
Code
78
153
package com.bitsys.common.http.auth; import java.security.Principal; /** * This interface represents a set of credentials consisting of a security * principal and a password that are used to establish a user's identity. */ public interface Credentials { /** * Returns the user's principal. * * @r...
45,634
https://github.com/hugodias/san-pedro-valley-jobs/blob/master/spec/models/company_spec.rb
Github Open Source
Open Source
MIT
2,017
san-pedro-valley-jobs
hugodias
Ruby
Code
30
80
require "rails_helper" RSpec.describe Company, type: :model do it "must not allow duplicate titles even with case differences" do create(:company, title: 'Company') second_company = build(:company, title: 'company') expect(second_company).to be_invalid end end
14,403
https://github.com/GPUWorks/botijo/blob/master/lib/src/btj_sprites.cpp
Github Open Source
Open Source
MIT
2,018
botijo
GPUWorks
C++
Code
2,035
8,397
/* * botijo (c) 2018 Gustavo Valiente gustavo.valiente.m@gmail.com * * MIT License, see LICENSE file. */ #include "btj_sprites.h" #include "btj_rect_f.h" #include "btj_sprite.h" #include "btj_assert.h" #include "btj_logger.h" #include "btj_transform.h" #include "btj_quicksort.h" #include "btj_graphics_impl.h" #i...
12,315
https://github.com/beroso/godot-cpp/blob/master/include/core/Quat.hpp
Github Open Source
Open Source
MIT
2,021
godot-cpp
beroso
C++
Code
274
873
#ifndef QUAT_H #define QUAT_H #include <cmath> #include "Vector3.hpp" // #include "Basis.h" namespace godot { class Quat { public: static const Quat IDENTITY; real_t x, y, z, w; real_t length_squared() const; real_t length() const; void normalize(); Quat normalized() const; bool is_normalized() const; ...
13,090
https://github.com/ln-12/cwa-app-ios/blob/master/src/xcode/ENA/ENA/Source/Services/TicketValidation/EncryptAndSignDCC/EncryptionScheme.swift
Github Open Source
Open Source
Apache-2.0
null
cwa-app-ios
ln-12
Swift
Code
16
60
// // 🦠 Corona-Warn-App // import Foundation enum EncryptionScheme: String { case RSAOAEPWithSHA256AESCBC case RSAOAEPWithSHA256AESGCM }
45,097
https://github.com/gonzalocasas/compas/blob/master/src/compas/geometry/objects/vector.py
Github Open Source
Open Source
MIT
null
compas
gonzalocasas
Python
Code
1,179
3,356
from __future__ import print_function from __future__ import absolute_import from __future__ import division from math import sin from math import cos from math import sqrt from math import pi from compas.geometry import * __author__ = ['Tom Van Mele', ] __copyright__ = 'Copyright 2014, Block Research Group - ...
50,662
https://github.com/seb711/p-net/blob/master/test/test_port.cpp
Github Open Source
Open Source
Apache-2.0, BSD-3-Clause
2,022
p-net
seb711
C++
Code
721
3,776
/********************************************************************* * _ _ _ * _ __ | |_ _ | | __ _ | |__ ___ * | '__|| __|(_)| | / _` || '_ \ / __| * | | | |_ _ | || (_| || |_) |\__ \ * |_| \__|(_)|_| \__,_||_.__/ |___/ * * www.rt-labs.com * Copyright 2020 rt-labs AB, Sweden. ...
25,161
https://github.com/aStudyer/HHUIBase_OC/blob/master/Example/HHUIBase_OC/HHAppDelegate.h
Github Open Source
Open Source
MIT
2,019
HHUIBase_OC
aStudyer
Objective-C
Code
34
102
// // HHAppDelegate.h // HHUIBase_OC // // Created by wxGithup on 09/27/2019. // Copyright (c) 2019 wxGithup. All rights reserved. // @import UIKit; @interface HHAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
18,237
https://github.com/PHPOffice/PhpSpreadsheet/blob/master/tests/data/Calculation/Financial/RRI.php
Github Open Source
Open Source
MIT
2,023
PhpSpreadsheet
PHPOffice
PHP
Code
58
240
<?php return [ [ 0.04137974399241062, [10, 10000, 15000], ], [ 0.00099330737629133, [96, 10000, 11000], ], [ 0.6747967875721199, [10, 70, 12154], ], [ '#VALUE!', ['NaN', 70, 12154], ], [ '#VALUE!', [10, ...
53,855
https://github.com/mkasprz/redo/blob/master/src/AdminPanel/src/common/components/top-bar/notification-bell/notification-bell.ts
Github Open Source
Open Source
MIT
2,019
redo
mkasprz
TypeScript
Code
66
243
import {TaskRepository} from "tasks/task-repository"; import {autoinject} from "aurelia-dependency-injection"; import {containerless} from "aurelia-templating"; import {TaskCollection, TaskStatus} from "tasks/task-collection"; @autoinject @containerless export class NotificationBell { numberOfCurrentTasks: number = ...
50,382
https://github.com/datamaskinprosjekt/FPGA-MadNES/blob/master/src/design/simple_ram.sv
Github Open Source
Open Source
MIT
null
FPGA-MadNES
datamaskinprosjekt
null
Spoken
132
345
`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 19.09.2020 17:20:37 // Design Name: // Module Name: simple_ram // Project Name: // Target Devices: // Tool Versions: // Description: // // Dependencies: // // Re...
14,819
https://github.com/trussworks/edd/blob/master/typescript/modules/load/Inputs.tsx
Github Open Source
Open Source
BSD-3-Clause-LBNL
2,021
edd
trussworks
TypeScript
Code
199
591
"use strict"; // input components used in the data loading wizard import classNames from "classnames"; import * as React from "react"; import * as Summary from "./Summary"; interface MBSProps { options: Summary.Choice[]; placeholder: string; selected: Summary.Choice; onSelect: (choice) => void; } e...
11,133
https://github.com/ludingsheng/XmlyAlbumDownloader/blob/master/XmlyAlbumDownloader/Services/HttpRequest.cs
Github Open Source
Open Source
MIT
2,022
XmlyAlbumDownloader
ludingsheng
C#
Code
382
1,543
using ICSharpCode.SharpZipLib.GZip; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Net.Http; using System.Text; using System.Threading.Tasks; namespace XmlyAlbumDownloader.Services { /// <summary> /// 基于HttpClient封装的请求类 /// </summary> public class ...
41,411
https://github.com/Floby/npmd/blob/master/plugins/authors.js
Github Open Source
Open Source
MIT
2,021
npmd
Floby
JavaScript
Code
108
349
var MapReduce = require('map-reduce') var through = require('through') module.exports = { db: function (db, config) { //how many authors? how many modules? var packageDb = db.sublevel('pkg') var authorsDb = db.sublevel('authors') MapReduce(packageDb, authorsDb, function (key, value, emit) { if...
43,336
https://github.com/shuigedeng/taotao-cloud-paren/blob/master/taotao-cloud-python/taotao-cloud-django/taotao_cloud_mall/taotao_cloud_model/models/withdrawal.ts
Github Open Source
Open Source
Apache-2.0
2,022
taotao-cloud-paren
shuigedeng
TypeScript
Code
95
328
module.exports = app => { const { ENUM, INTEGER, STRING } = app.Sequelize; const Withdrawal = app.model.define('withdrawal', { // 姓名 name: STRING, // 提现人电话 phone: STRING(11), // 提现金额 price: { type: INTEGER, allowNull: false }, // 提现状态 status: { type: ENUM, values: ['succe...
9,680
https://github.com/isabella232/harmony-classlib/blob/master/modules/sql/src/main/java/javax/sql/XADataSource.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-generic-cla, LicenseRef-scancode-unknown, SunPro, CPL-1.0, Bitstream-Vera, IJG, Libpng, MIT, LicenseRef-scancode-unicode, Zlib, EPL-1.0, LicenseRef-scancode-mx4j, LicenseRef-scancode-ietf-trust, LicenseRef-scancode-warranty-disclaimer, BSD-3-Clause, ICU, LicenseRef-scancode-ietf, License...
2,010
harmony-classlib
isabella232
Java
Code
767
1,312
/* * 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...
12,135
https://github.com/LianjiaTech/ke-ve/blob/master/lib/service.js
Github Open Source
Open Source
MIT
2,022
ke-ve
LianjiaTech
JavaScript
Code
344
1,001
const http = require('http'); const opn = require('opn'); const portfinder = require('portfinder'); const killPort = require('kill-port'); const axios = require('axios'); const chalk = require('chalk'); const app = require('../service/app'); const createSocketServer = require('./socket'); const { loadLocalPlugin } = re...
34,631
https://github.com/o3661606/instascrape/blob/master/instascrape/scrapers/__init__.py
Github Open Source
Open Source
MIT
null
instascrape
o3661606
Python
Code
16
59
from instascrape.scrapers.profile import * from instascrape.scrapers.post import * from instascrape.scrapers.hashtag import * from instascrape.scrapers.login import *
35,639