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/ticketmaster/lbapi/blob/master/sql/setup.sql
Github Open Source
Open Source
MIT
null
lbapi
ticketmaster
SQL
Code
331
986
DO $$ DECLARE r RECORD; BEGIN -- if the schema you operate on is not "current", you will want to -- replace current_schema() in query with 'schematodeletetablesfrom' -- *and* update the generate 'DROP...' accordingly. FOR r IN ( SELECT tablename FROM pg_tables WHERE schemaname = current_schema() ) LOOP EXECUTE 'D...
32,563
https://github.com/imdanielsp/sqlite/blob/master/Tests/SQLiteTests/SQLite3Tests.swift
Github Open Source
Open Source
MIT
2,017
sqlite
imdanielsp
Swift
Code
379
1,149
import XCTest @testable import SQLite import Node class SQLite3Tests: XCTestCase { var database:SQLite! override func setUp() { self.database = SQLite.makeTestConnection() } func testTables() { do { try _ = database.execute("DROP TABLE IF EXISTS foo") try _ = d...
14,857
https://github.com/nus-mtp/cs-modify/blob/master/utils/dummyStudents.sql
Github Open Source
Open Source
MIT
2,017
cs-modify
nus-mtp
SQL
Code
20,000
53,930
INSERT INTO student VALUES('E1000000B', 1); INSERT INTO takesFocusArea VALUES('E1000000B', 'Multimedia Information Retrieval', NULL); INSERT INTO studentPlans VALUES('E1000000B', TRUE, 'FMC1202', 'AY 16/17 Sem 1'); INSERT INTO studentPlans VALUES('E1000000B', TRUE, 'CS2010', 'AY 16/17 Sem 1'); INSERT INTO studentPlans ...
40,048
https://github.com/CatalystCode/fabrikate/blob/master/cmd/remove_test.go
Github Open Source
Open Source
MIT
2,019
fabrikate
CatalystCode
Go
Code
85
314
package cmd import ( "testing" "github.com/microsoft/fabrikate/core" "github.com/stretchr/testify/assert" ) func TestRemove(t *testing.T) { root := core.Component{ Name: "root", } subcomponentC := core.Component{ Name: "subcomponentC", } subcomponentA := core.Component{ Name: "subcomponentA", } subco...
49,803
https://github.com/joseRamonLeon/SkeletonAnimationDemos/blob/master/SkeletonAnimationLibraryDemos/src/Example_Cyborg_SwitchWeapon.as
Github Open Source
Open Source
MIT
2,021
SkeletonAnimationDemos
joseRamonLeon
null
Spoken
701
2,768
package { import flash.display.Sprite; import flash.events.KeyboardEvent; import starling.core.Starling; [SWF(width="800", height="600", frameRate="30", backgroundColor="#cccccc")] public class Example_Cyborg_SwitchWeapon extends flash.display.Sprite { public function Example_Cyborg_SwitchWeapon() { s...
875
https://github.com/Amagash/photobooth/blob/master/src/app/shared/theme.directive.ts
Github Open Source
Open Source
MIT
2,021
photobooth
Amagash
TypeScript
Code
46
164
import { Directive, ElementRef, Renderer2 } from "@angular/core"; import { AppService } from "../app.service"; @Directive({ selector: "[appTheme]", }) export class ThemeDirective { constructor(private element: ElementRef<HTMLElement>, private renderer: Renderer2, private app: AppService) {} async ngOnInit() { ...
10,804
https://github.com/sf2ne/Playground/blob/master/tests/models/test_user.py
Github Open Source
Open Source
Apache-2.0
null
Playground
sf2ne
Python
Code
868
4,710
import mock import datetime from modularodm import Q from nose.tools import * # flake8: noqa (PEP8 asserts) from framework import auth from framework.auth import exceptions from framework.exceptions import PermissionsError from website import models, project from tests import base from tests.base import fake from te...
55,072
https://github.com/brtlvrs/dockerfiles/blob/master/syncthing/run.sh
Github Open Source
Open Source
MIT
2,021
dockerfiles
brtlvrs
Shell
Code
67
204
#!/bin/bash set -e if [ "$HOME" = '/home/user' ]; then echo >&2 'uh oh, HOME=/home/user' exit 1 fi mkdir -p "$HOME/.config/syncthing" set -x # -v /etc:/host/etc \ docker run -d \ --name syncthing \ --restart always \ -u "$(id -u):$(id -g)" \ -v "$HOME:$HOME" \ -v "$HOME/.config/syncthing:/home/user/.config/sy...
297
https://github.com/calmest/stubs2/blob/master/config/laravelpdf.php
Github Open Source
Open Source
MIT
null
stubs2
calmest
PHP
Code
15
60
<?php return [ // 'executable' => '/usr/bin/wkhtmltopdf'//For Linux 'executable' => base_path() . '/bin/wkhtmltopdf-64bit.exe'//For Windows ];
43,454
https://github.com/rafaelsouzaf/legacy-2005-Java-Webserver-IRCD/blob/master/src/chatmania/ircd/Config.java
Github Open Source
Open Source
BSD-3-Clause
null
legacy-2005-Java-Webserver-IRCD
rafaelsouzaf
Java
Code
211
639
package chatmania.ircd; import chatmania.extra.log.LogIRCd; import java.io.FileInputStream; import java.util.Properties; public class Config { public static final Properties file = new Properties(); // ircd public static String NETWORK = ""; public static String PORTS = ""; public static String...
12,165
https://github.com/edwardkvalencia/social-media-dapp/blob/master/contracts/SocialMedia.sol
Github Open Source
Open Source
MIT
2,022
social-media-dapp
edwardkvalencia
Solidity
Code
589
1,791
// This contract allows people to publish strings of text // and follow hashtags. User accounts will be anonymous, addresses // will be the only identifiers pragma solidity ^0.5.0; contract SocialMedia { struct Content { uint256 id; address author; uint256 date; string content; ...
3,676
https://github.com/LinuxSDA/BabyRay/blob/master/BabyRay/GUIContext/VertexArray.hpp
Github Open Source
Open Source
Apache-2.0
2,020
BabyRay
LinuxSDA
C++
Code
124
425
// // VertexArray.hpp // OpenGL // // Created by Sumit Dhingra on 01/05/20. // Copyright © 2020 LinuxSDA. All rights reserved. // #ifndef VertexArray_hpp #define VertexArray_hpp #include "VertexBuffer.hpp" #include "VertexBufferLayout.hpp" #include "IndexBuffer.hpp" #include <queue> class VertexArray { unsig...
41,600
https://github.com/program-in-chinese/CTS/blob/master/Gulpfile.js
Github Open Source
Open Source
Apache-2.0
2,018
CTS
program-in-chinese
JavaScript
Code
4,191
15,488
/// <reference path="scripts/types/ambient.d.ts" /> // @ts-check const cp = require("child_process"); const path = require("path"); const fs = require("fs"); const child_process = require("child_process"); const originalGulp = require("gulp"); const helpMaker = require("gulp-help"); const runSequence = require("run-seq...
4,285
https://github.com/biberltd/symfonyRest/blob/master/src/AppBundle/Service/UserManager.php
Github Open Source
Open Source
MIT
null
symfonyRest
biberltd
PHP
Code
394
1,571
<?php /** * Created by BoDev Office. * User: Erman Titiz ( @ermantitiz ) * Date: 11/09/2017 * Time: 11:34 */ namespace AppBundle\Service; use AppBundle\Security\WebServiceUser; use Doctrine\Common\Persistence\ObjectManager; use Doctrine\Common\Persistence\ObjectRepository; use Symfony\Component\Security\Core\User...
39,228
https://github.com/bartonlp/SiteClass/blob/master/examples/example1.php
Github Open Source
Open Source
MIT
2,021
SiteClass
bartonlp
PHP
Code
38
138
<?php // example1.php require_once("../../../autoload.php"); $siteinfo = array( 'siteDomain' => "localhost", 'siteName' => "Example1", 'copyright' => "2016 Barton L. Phillips", ); $S = new SiteClass($siteinfo); list($top, $footer) = $S->getPageTopBottom(); echo <<<EOF $top <h1>Example 1</h1> <p>Hello World</p...
43,020
https://github.com/ridsync/oklab-old/blob/master/OKCheckList/okchecklistAnd/app/src/main/java/com/okitoki/checklist/database/DBManager.java
Github Open Source
Open Source
Apache-2.0
2,020
oklab-old
ridsync
Java
Code
345
1,361
/* * @(#)DatabaseService.java $version 2013. 5. 20. * * Copyright 2007 NHN Corp. All rights Reserved. * NHN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package com.okitoki.checklist.database; import android.database.sqlite.SQLiteDatabase; import com.okitoki.checklist.database.dao.CartInfoDao;...
37,316
https://github.com/TIBHannover/orkg-frontend/blob/master/src/constants/searchDefaultFilters.js
Github Open Source
Open Source
MIT
2,023
orkg-frontend
TIBHannover
JavaScript
Code
121
487
import { CLASSES, ENTITIES } from 'constants/graphSettings'; const DEFAULT_FILTERS = [ { label: 'Comparison', id: CLASSES.COMPARISON, isCreatedByActive: true, }, { label: 'Paper', id: CLASSES.PAPER, isCreatedByActive: true, }, { label: 'Resear...
40,279
https://github.com/juglab/imglib2-trainable-segmentation/blob/master/src/main/java/sc/fiji/labkit/pixel_classification/gui/FeatureSettingsUI.java
Github Open Source
Open Source
BSD-2-Clause
null
imglib2-trainable-segmentation
juglab
Java
Code
605
2,029
/*- * #%L * The implementation of the pixel classification algorithm, that is used the Labkit image segmentation plugin for Fiji. * %% * Copyright (C) 2017 - 2021 Matthias Arzt * %% * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following cond...
40,955
https://github.com/Hi-Rick/data-center-new/blob/master/src/views/officeManage/meetingManage/RoomReserve.vue
Github Open Source
Open Source
MIT
null
data-center-new
Hi-Rick
Vue
Code
177
1,233
<template> <div class="app-container"> <div class="app-title"> <div> <span>指定日期:</span><el-input class="input-style"></el-input> <span class="span-style">会议室名称:</span> <el-date-picker v-model="value1" class="input-style" type="datetime"...
40,294
ERROR: type should be string, got "https://github.com/Jsran/RMQ/blob/master/##@!%^&!/C/mqsystem/main.php"
Github Open Source
Open Source
Apache-2.0
2,019
RMQ
Jsran
PHP
Code
642
2,086
<?php namespace jR\C\mqsystem; use jR\M; use jR\I; class main extends Base { public function home() { $ob = new M(); if(!$ob->OneSql("show tables like 'rmq_topic'")) { # does the jr_topic table exist $ob->runSql( "create table `rmq_admin` ( `id` int(11) not null auto_increment, ...
225
https://github.com/Relintai/programming_tutorials/blob/master/01_oop_basics/09_12_monopoly/tile_loader.h
Github Open Source
Open Source
MIT
null
programming_tutorials
Relintai
C
Code
22
82
#ifndef TILE_LOADER_H #define TILE_LOADER_H #include "string.h" #include "tile.h" #include "vector.h" class TileLoader { public: static Vector<Tile *> load_tile_file(const String &file_name); }; #endif
23,736
https://github.com/FlorianSW/discord-player-count-bot/blob/master/src/index.ts
Github Open Source
Open Source
MIT
2,021
discord-player-count-bot
FlorianSW
TypeScript
Code
184
586
import {ProvideGameStatus} from './usecase/provide-game-status'; import {Client} from 'discord.js'; import {DiscordPublisher} from './adapter/discord/discord-publisher'; import {Subscription} from 'rxjs'; import {config} from 'dotenv' import {GameStatusProvider} from './domain/game-status-provider'; import {providerFac...
34,547
https://github.com/VD-15/VLFW/blob/master/docs/html/search/classes_8.js
Github Open Source
Open Source
MIT
2,021
VLFW
VD-15
JavaScript
Code
7
151
var searchData= [ ['videomode_188',['VideoMode',['../structvlk_1_1vlfw_1_1VideoMode.html',1,'vlk::vlfw']]], ['vlfwmain_189',['VLFWMain',['../classvlk_1_1vlfw_1_1VLFWMain.html',1,'vlk::vlfw']]], ['vlfwmainargs_190',['VLFWMainArgs',['../structvlk_1_1vlfw_1_1VLFWMainArgs.html',1,'vlk::vlfw']]] ];
3,655
https://github.com/rob-isaac/katana/blob/master/python/katana/dataframe/__init__.py
Github Open Source
Open Source
BSD-3-Clause
2,021
katana
rob-isaac
Python
Code
363
1,124
from abc import ABC, abstractmethod from collections.abc import Sized from typing import Any, Callable, Dict, Optional, Sequence, Union import numpy import pandas import pyarrow from . import abc class DataFrame(ABC, abc.ReadOnlyDataFrame): """ A data-frame interface to Katana data. """ def __repr_...
50,302
https://github.com/cdli-gh/mtaac_cdli_ur3_corpus/blob/master/ur3_corpus_data/conll/P226115.conll
Github Open Source
Open Source
CC0-1.0, LicenseRef-scancode-public-domain
2,022
mtaac_cdli_ur3_corpus
cdli-gh
null
Spoken
35
187
#new_text=P226115 # ID FORM SEGM XPOSTAG HEAD DEPREL MISC o.1.1 {d}nin-mu2 o.2.1 gir2-la2 o.2.2 e2-kur2-ra-ra o.3.1 szul-gi o.4.1 nita o.4.2 kal-ga o.5.1 lugal o.5.2 uri5{ki}-ma o.6.1 lugal o.6.2 ki-en-gi o.6.3 ki-uri-ke4 o.7.1 e2-a-ni r.1.1 mu-na-du3
52,849
https://github.com/akkadotnet/Alpakka/blob/master/support/dockerfiles/AMQP/Linux/build.ps1
Github Open Source
Open Source
Apache-2.0
2,023
Alpakka
akkadotnet
PowerShell
Code
9
65
docker build -t akkadotnet/rabbitmq-linux:3.8.6-alpine . docker tag akkadotnet/rabbitmq-linux:3.8.6-alpine akkadotnet/rabbitmq-linux:latest
23,486
https://github.com/mtomono/TERSE3/blob/master/test/solver/memo/CoinSumShortestNGTest.java
Github Open Source
Open Source
Apache-2.0
2,018
TERSE3
mtomono
Java
Code
178
690
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package solver.memo; import solver.memo.Result; import solver.memo.CoinSumShortest; import collection.TList; import static org.testng....
19,421
https://github.com/ricardo-ch/go-database/blob/master/database.go
Github Open Source
Open Source
MIT
2,017
go-database
ricardo-ch
Go
Code
73
205
package database import ( "github.com/jmoiron/sqlx" ) type ConnectionBuilder interface { DriverName() string Build() string } var sqlConnect = sqlx.Connect func connect(driverName, connectionString string, advFunc func(*sqlx.DB)) (*sqlx.DB, error) { db, err := sqlConnect(driverName, connectionString) if err !...
9,475
https://github.com/ralscha/blog/blob/master/Makefile
Github Open Source
Open Source
MIT
2,023
blog
ralscha
Makefile
Code
371
1,562
.PHONY: check-dep check-dep: cd ./background-sync/server && ./mvnw.cmd versions:display-dependency-updates && ./mvnw.cmd versions:display-plugin-updates cd ./background-sync/client && ncu cd ./background-sync/clientng && ncu cd ./beacon && ./mvnw.cmd versions:display-dependency-updates && ./mvnw.cmd versions:displa...
48,200
https://github.com/tomaszczechowski/react-makes-you-sad/blob/master/Makefile
Github Open Source
Open Source
CC0-1.0
2,016
react-makes-you-sad
tomaszczechowski
Makefile
Code
15
47
.PHONY: all clean all: fatigue.svg clean: rm fatigue.svg fatigue.svg: fatigue.dot dot -Tsvg $< > $@
8,709
https://github.com/hzhangse/eventuate-examples-java-spring-todo-list/blob/master/single-module/build-and-test-all-eventuate-local-mysql.sh
Github Open Source
Open Source
Apache-2.0
null
eventuate-examples-java-spring-todo-list
hzhangse
Shell
Code
15
114
#! /bin/bash export EXTRA_INFRASTRUCTURE_SERVICES=cdcservice export EVENTUATE_LOCAL=yes . ./set-env-mysql.sh ./_build-and-test-all.sh -f docker-compose-eventuate-local-mysql.yml $BUILD_AND_TEST_ALL_EVENTUATE_LOCAL_EXTRA_COMPOSE_ARGS $* -P eventuateDriver=local
50,368
https://github.com/rosemlab/route/blob/master/src/RegexBasedDispatcherInterface.php
Github Open Source
Open Source
MIT
null
route
rosemlab
PHP
Code
16
51
<?php namespace Rosem\Route; interface RegexBasedDispatcherInterface { public function dispatch(array &$routeExpressions, array &$routeData, string &$uri): array; }
42,259
https://github.com/liaojiansong/jasonnet/blob/master/public/mqtt/Test.php
Github Open Source
Open Source
Apache-2.0
null
jasonnet
liaojiansong
PHP
Code
279
1,285
<?php /** * 脚本测试类 * User: Jason * Date: 2018/5/31 * Time: 21:09 */ require_once('Base.php'); class Test extends Base { private $device_id = 96549; public function __construct() { parent::__construct(false, true, true); } public function getInput() { $str = "请选择操作(输入数字): ...
19,490
https://github.com/inviwo/inviwo/blob/master/src/core/tests/unittests/interpolation-tests.cpp
Github Open Source
Open Source
BSD-3-Clause, BSD-2-Clause
2,023
inviwo
inviwo
C++
Code
526
1,870
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2014-2023 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
13,892
https://github.com/com619-2021/HarbourAppB/blob/master/project/src/main/java/com/devops/groupb/harbourmaster/dto/Ship.java
Github Open Source
Open Source
Apache-2.0
2,021
HarbourAppB
com619-2021
Java
Code
175
503
package com.devops.groupb.harbourmaster.dto; import java.util.UUID; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import io.swagger.annotations.ApiModelProperty; @Entity public class Shi...
49,970
https://github.com/chandraseta/spam-mails-detection/blob/master/dataset/TR-mails/TR-processed/TRAIN_568.eml
Github Open Source
Open Source
MIT
2,018
spam-mails-detection
chandraseta
null
Spoken
68
164
DVD Paranoia? Is there such a DVD app analogous to cdparanoia? Or is it not possible due to the differing data, WAV vs. MPEG? The issue is that I am trying to read some 2-3 year old "movie" DVD-Rs and they are all at some point failing. -- Dissent is patriotic, remember? -- To UNSUBSCRIBE, email to debian-user-REQ...
34,228
https://github.com/NilsV-B/oversigt/blob/master/oversigt-ui/src/main/angular2/src/app/eventsource-button/eventsource-button.component.ts
Github Open Source
Open Source
MIT
2,020
oversigt
NilsV-B
TypeScript
Code
47
147
import { Component, OnInit, Input } from '@angular/core'; import { getLinkForEventSource } from '../app.component'; @Component({ selector: 'app-eventsource-button', templateUrl: './eventsource-button.component.html', }) export class EventsourceButtonComponent implements OnInit { @Input() eventSourceId: string; ...
44,160
https://github.com/qh4r/mono_repo_example/blob/master/localization_api/src/index.js
Github Open Source
Open Source
MIT
2,019
mono_repo_example
qh4r
JavaScript
Code
32
115
const pl = require('./locales/pl'); const en = require('./locales/en'); const locales = { pl, en, }; const app = require('./server/server')({locales}); process.on('uncaughtException', (err) => { process.exit(1); }); process.on('unhandledRejection', (err) => { process.exit(1); }); app.listen(3000);
23,252
https://github.com/zhangliwen1/JavaSourceLearn/blob/master/src/cn/codezlw/source/javax/swing/plaf/synth/SynthStyle.java
Github Open Source
Open Source
Apache-2.0
2,022
JavaSourceLearn
zhangliwen1
Java
Code
3,337
12,156
/* * Copyright (c) 2002, 2008, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
8,604
https://github.com/aliyun/dingtalk-sdk/blob/master/dingtalk/csharp/core/attendance_1_0/Models/InitAndGetLeaveALlocationQuotasResponseBody.cs
Github Open Source
Open Source
Apache-2.0
2,023
dingtalk-sdk
aliyun
C#
Code
134
513
// This file is auto-generated, don't edit it. Thanks. using System; using System.Collections.Generic; using System.IO; using Tea; namespace AlibabaCloud.SDK.Dingtalkattendance_1_0.Models { public class InitAndGetLeaveALlocationQuotasResponseBody : TeaModel { [NameInMap("result")] [Validation(Req...
16,877
https://github.com/elsys/po-homework-2015-1/blob/master/2015-2016/A/07/03/task4.c
Github Open Source
Open Source
MIT
2,016
po-homework-2015-1
elsys
C
Code
155
499
#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char roman[20]; int i, c = 0, l = 0, x = 0, v = 0, j = 0; int arabic; scanf("%s", roman); for(i = 0; i < strlen(roman); i++) { if(roman[i] == 'C') c++; if(roman[i] == 'L' && roman[i-2] == 'X') ...
11,206
https://github.com/zorrofox/aws-jumpy-fish/blob/master/web/js/entities/HUD.js
Github Open Source
Open Source
MIT
2,016
aws-jumpy-fish
zorrofox
JavaScript
Code
377
1,086
game.HUD = game.HUD || {}; game.HUD.Container = me.Container.extend({ init: function() { // call the constructor this._super(me.Container, 'init'); // persistent across level change this.isPersistent = true; // non collidable this.collidable = false; // mak...
11,508
https://github.com/ariel-sr/lm-nslsqr/blob/master/experiments/4_lmnslsqr/main.cu
Github Open Source
Open Source
BSD-3-Clause
2,021
lm-nslsqr
ariel-sr
null
Spoken
657
2,149
#include <stdio.h> #include <stdlib.h> #include <cuda_runtime.h> #include <cublas_v2.h> #include <curand_kernel.h> #include <curand.h> #include <lmnslsqr/qmatrix.h> #include <lmnslsqr/aux2.h> #include <lmnslsqr/nslsqr.h> #include <lmnslsqr/nslsqr_mf.h> #include <lmnslsqr/error.h> #include <lmnslsqr/aux.h> #include <lmn...
11,974
https://github.com/apache/juneau/blob/master/juneau-rest/juneau-rest-common/src/main/java/org/apache/juneau/http/header/BasicHeaderIterator.java
Github Open Source
Open Source
Apache-2.0
2,023
juneau
apache
Java
Code
429
1,043
// *************************************************************************************************************************** // * 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 regardi...
39,136
https://github.com/al7/ALUtilities/blob/master/ALUtilities/Source/ALDrawingUtilities.h
Github Open Source
Open Source
MIT
2,015
ALUtilities
al7
C
Code
215
438
// // al7ios framework // (C) Copyright 2010-14 Alexandre Leite. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy of this // software and associated documentation files (the "Software"), to deal in the Software // without restriction, including without limitation...
30,298
https://github.com/amazing-2020/pdf/blob/master/Python/code case/code case 68.py
Github Open Source
Open Source
Apache-2.0
2,021
pdf
amazing-2020
Python
Code
54
183
print('%o' % 20) print('%d' % 20) print('%x' % 20) print('%f' % 1.11) print('%.1f' % 1.11) print('%e' % 1.11) print('%.3e' % 1.11) print('%g' % 1.11) print('%.7g' % 1.11) print('%.2g' % 1.11) print("%s" % 'hello world') print("%20s" % 'hello world') print("%-20s" % 'hello world') print("%.2s" % 'hello world') print("...
56,685
https://github.com/wanelo/saves-cli/blob/master/lib/saves/cli/parser.rb
Github Open Source
Open Source
MIT
2,017
saves-cli
wanelo
Ruby
Code
390
1,368
require 'optparse' require 'saves/cli/client' require 'hashie/mash' require 'colored2' module Saves module CLI class InvalidCommandError < ArgumentError; end class Parser < OptionParser @options = Hashie::Mash.new class << self attr_accessor :options, :stdout_array def globa...
14,145
https://github.com/AntonellaM/microFrontends-wepack5/blob/master/packages/home/dist/src_ProductCarousel_jsx.js
Github Open Source
Open Source
MIT
null
microFrontends-wepack5
AntonellaM
JavaScript
Code
476
2,160
(window["webpackJsonphome"] = window["webpackJsonphome"] || []).push([["src_ProductCarousel_jsx"],{ /***/ "./src/ProductCard.jsx": /*!*****************************!*\ !*** ./src/ProductCard.jsx ***! \*****************************/ /*! namespace exports */ /*! export default [provided] [used] [could be renamed] */ ...
3,821
https://github.com/butlermh/deli/blob/master/src/test/java/com/hp/hpl/deli/LocalProfilesTest.java
Github Open Source
Open Source
BSD-3-Clause
2,013
deli
butlermh
Java
Code
89
328
package com.hp.hpl.deli; import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Ignore; import org.junit.Test; @SuppressWarnings("javadoc") public class LocalProfilesTest { @BeforeClass public static void setUpBefor...
39,388
https://github.com/huguanghui/CommonLib_Linux/blob/master/easydemo/demo.cpp
Github Open Source
Open Source
MIT
2,020
CommonLib_Linux
huguanghui
C++
Code
682
2,684
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <stdarg.h> #include <time.h> #include <semaphore.h> #include <sys/time.h> #include <iostream> #include <fstream> #include <string.h> #include "mongo/mongoose.h" #include "log/log.h" //#include "data_struct/ngx_pool/ngx_pool.h" //仅仅是打印函数名字替换 DEBUG <-...
32,190
https://github.com/easyopsapis/easyops-api-go/blob/master/protorepo-user_service/organization/create_org.pb.go
Github Open Source
Open Source
Apache-2.0
2,021
easyops-api-go
easyopsapis
Go
Code
1,250
4,744
// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: create_org.proto package organization import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" math "math" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = ...
31,657
https://github.com/imloama/hoopoe/blob/master/web_bak/src/store/modules/common.js
Github Open Source
Open Source
Apache-2.0
null
hoopoe
imloama
JavaScript
Code
55
182
import {getStore, setStore} from '@/assets/js/storage'; const common = { state: { uploader: null, tempData: getStore('tempData', true) }, mutations: { setUploader(state, data) { state.uploader = data; }, setTempData(state, data) { state.tempDa...
1,245
https://github.com/caleb72/activiter/blob/master/js/util.js
Github Open Source
Open Source
MIT
null
activiter
caleb72
JavaScript
Code
121
306
var pad = function(num) { if (num < 10) { return "0" + num; } else { return num; } }; var fromDate = function(date) { //return date.getYear() + 1900 + "" + date.getMonth() + 1 + "" date.getDate(); return date.getYear() + 1900 + "" + pad(date.getMonth() + 1) + "" + pad(date.getDate()); //return date...
6,727
https://github.com/tehw0lf/tehwol.fi/blob/master/apps/tehwolfi/src/app/nav/mobile/mobile.component.ts
Github Open Source
Open Source
MIT
2,022
tehwol.fi
tehw0lf
TypeScript
Code
154
542
import { Component, OnDestroy, OnInit, ViewChild, ViewEncapsulation } from '@angular/core'; import { MatSidenav } from '@angular/material/sidenav'; import { Router } from '@angular/router'; import { Observable, of, Subject } from 'rxjs'; import { takeUntil, tap } from 'rxjs/operators'; import { ThemeService } from '.....
11,671
https://github.com/MahdiAbdi/simple-mongo/blob/master/docs/src/main/scala/DatabaseProviderDoc.scala
Github Open Source
Open Source
Apache-2.0
2,022
simple-mongo
MahdiAbdi
Scala
Code
110
448
import com.sfxcode.nosql.mongo.database.{CollectionInfo, DatabaseProvider, MongoConfig} import org.bson.codecs.configuration.CodecRegistries.fromProviders import org.bson.codecs.configuration.CodecRegistry import org.mongodb.scala.bson.ObjectId import org.mongodb.scala.bson.codecs.Macros._ import org.mongodb.scala.{Mon...
18,123
https://github.com/christianvogt/fabric8-wit/blob/master/controller/workitems.go
Github Open Source
Open Source
Apache-2.0
2,017
fabric8-wit
christianvogt
Go
Code
1,259
4,424
package controller import ( "fmt" "strconv" "github.com/fabric8-services/fabric8-wit/app" "github.com/fabric8-services/fabric8-wit/application" "github.com/fabric8-services/fabric8-wit/criteria" "github.com/fabric8-services/fabric8-wit/errors" "github.com/fabric8-services/fabric8-wit/jsonapi" "github.com/fabr...
38,633
https://github.com/Oneirocom/Magick/blob/master/apps/server/migrations/20230711052519_remove_rootSpell_from_agent_and_add_agent_spell_relation.ts
Github Open Source
Open Source
Apache-2.0
2,023
Magick
Oneirocom
TypeScript
Code
303
977
import { Knex } from "knex"; export async function up(knex: Knex): Promise<void> { // remove rootSpell from agent await knex.schema.table('agents', (table) => { // We should stop using it, but i don't want to lose the data //table.dropColumn('rootSpell') table.uuid('rootSpellId') }...
16,817
https://github.com/bitfocus/routeros-client/blob/master/test/3.writing.spec.js
Github Open Source
Open Source
MIT
2,020
routeros-client
bitfocus
JavaScript
Code
1,302
4,625
const RouterOSClient = require('../dist').RouterOSClient; const chai = require('chai'); const config = require('./config'); const should = chai.should(); const expect = chai.expect; let conn, api, menu, thirdRuleModel, firstRule, secondRule, thirdRule; describe('RouterOSAPICrud', () => { before('should stablish ...
27,816
https://github.com/couchbase/couchbase-lite-java-common/blob/master/common/main/cpp/native_c4listener.cc
Github Open Source
Open Source
Apache-2.0
2,023
couchbase-lite-java-common
couchbase
C++
Code
2,264
8,128
// // native_c4listener.cc // // Copyright (c) 2020 Couchbase, Inc 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 //...
41,846
https://github.com/infiswift-usa/hien-monitor-ui/blob/master/frontend/src/LoginPage/LoginPage.jsx
Github Open Source
Open Source
MIT
null
hien-monitor-ui
infiswift-usa
null
Spoken
230
962
import React,{ Component } from 'react' import { Redirect } from 'react-router-dom' import { connect } from 'react-redux' import { callLogin, formUpdate } from '../actions/authAction' import './LoginPage.css'; import search_logo from "assets/img/SysMonitor.png"; class LoginPage extends Component { constructor(p...
2,452
https://github.com/runcmdru/iconoir/blob/master/packages/iconoir-react/src/icons/stretching.jsx
Github Open Source
Open Source
MIT
2,021
iconoir
runcmdru
JavaScript
Code
120
511
import React, { forwardRef } from 'react'; import PropTypes from 'prop-types'; export const Stretching = forwardRef( ({ color = 'currentColor', size = 24 }, ref) => { return ( <svg ref={ref} width={size} height={size} viewBox="0 0 24 24" fill="none" color={co...
1,176
https://github.com/tianyahaijiaoHYX520/test_hotUpdate/blob/master/HotUpdateDemo/Pods/Headers/Public/JSPatch/JPCGBitmapContext.h
Github Open Source
Open Source
MIT
2,018
test_hotUpdate
tianyahaijiaoHYX520
C
Code
28
86
// // JPCGBitmapContext.h // JSPatchDemo // // Created by Albert438 on 15/7/3. // Copyright (c) 2015年 bang. All rights reserved. // #import "JPEngine.h" @interface JPCGBitmapContext : JPExtension @end
45,061
https://github.com/gzorin/RSXGL/blob/master/src/samples/rsxgltest/manypoints.cc
Github Open Source
Open Source
BSD-2-Clause
2,019
RSXGL
gzorin
C++
Code
656
3,434
/* * rsxgltest - manypoints */ #define GL3_PROTOTYPES #include <GL3/gl3.h> #include "rsxgltest.h" #include "math3d.h" #include "sine_wave.h" #include <stddef.h> #include "points_vert.h" #include "points_frag.h" #include <io/pad.h> #include <math.h> #include <Eigen/Geometry> #include "texture.h" #include "face_p...
51,184
https://github.com/jkrueger1/nicos/blob/master/nicos_tuw/xccm/devices/optic_tool_switch.py
Github Open Source
Open Source
CC-BY-3.0, Apache-2.0, CC-BY-4.0
2,022
nicos
jkrueger1
Python
Code
430
1,200
from nicos.core import Attach, InvalidValueError, Moveable, MoveError, \ Override, anytype, dictof, floatrange, multiWait, tupleof from nicos.core.constants import SIMULATION from nicos.devices.generic import MultiSwitcher from nicos.devices.generic.sequence import SeqMethod, SequencerMixin class OpticToolSwitch(...
29,982
https://github.com/Gooru/ln-nucleus-handlers-course/blob/master/src/main/java/org/gooru/nucleus/handlers/courses/processors/utils/ValidationUtils.java
Github Open Source
Open Source
Apache-2.0
null
ln-nucleus-handlers-course
Gooru
Java
Code
86
271
package org.gooru.nucleus.handlers.courses.processors.utils; import java.util.UUID; import org.gooru.nucleus.handlers.courses.constants.MessageConstants; /** * @author ashish on 29/12/16. */ public final class ValidationUtils { private ValidationUtils() { throw new AssertionError(); } public static bool...
15,227
https://github.com/xerocross/vue-matching-game/blob/master/src/helpers/playing-cards.js
Github Open Source
Open Source
0BSD
null
vue-matching-game
xerocross
JavaScript
Code
98
237
export default { getDeck : function() { let suits = [ { name : "hearts", id : 0 }, { name : "diamonds", id : 1 }, { name : "clubs", id : 2 ...
27,249
https://github.com/tarsoqueiroz/GraphQL/blob/master/Udemy/Criando APIs Profissionais/s00-Recursos/086-backend-versao-final/resolvers/comum/usuario.js
Github Open Source
Open Source
MIT
2,021
GraphQL
tarsoqueiroz
JavaScript
Code
64
213
const jwt = require('jwt-simple') const { perfis: obterPerfis } = require('../Type/Usuario') module.exports = { async getUsuarioLogado(usuario) { const perfis = await obterPerfis(usuario) const agora = Math.floor(Date.now() / 1000) const usuarioInfo = { id: usuario.id, ...
6,206
https://github.com/cybermizrach/fireadmin/blob/master/src/routes/Project/routes/Permissions/components/NewMemberModal/NewMemberModal.enhancer.js
Github Open Source
Open Source
MIT
2,019
fireadmin
cybermizrach
JavaScript
Code
304
909
import PropTypes from 'prop-types' import { connect } from 'react-redux' import { get, map, findIndex } from 'lodash' import withFirestore from 'react-redux-firebase/lib/withFirestore' import { compose } from 'redux' import { withHandlers, setPropTypes, withStateHandlers } from 'recompose' import { withNotifications } ...
13,531
https://github.com/twizoapi/lib-api-java/blob/master/src/com/twizo/controllers/verification/ApiVerificationController.java
Github Open Source
Open Source
MIT
null
lib-api-java
twizoapi
Java
Code
501
1,233
package com.twizo.controllers.verification; import com.google.gson.JsonSyntaxException; import com.twizo.controllers.TwizoController; import com.twizo.dataaccess.RequestType; import com.twizo.dataaccess.Worker; import com.twizo.dataaccess.jsonparams.VerificationParams; import com.twizo.exceptions.TwizoCallException; i...
37,392
https://github.com/kklin/demos/blob/master/main.js
Github Open Source
Open Source
MIT
2,017
demos
kklin
JavaScript
Code
56
186
const quilt = require('@quilt/quilt'); const TodoApp = require('./todo_app.js'); const utils = require('./utils.js'); // Replication to use for the node application // and Mongo. const count = 2; const infrastructure = quilt.createDeployment(); const machine = new quilt.Machine({ provider: 'Amazon', cpu: new quil...
4,972
https://github.com/ekzemplaro/data_base_language/blob/master/xlsx/csharp/delete/Makefile
Github Open Source
Open Source
MIT, Unlicense
2,021
data_base_language
ekzemplaro
Makefile
Code
14
115
EPPLUS=/home/uchida/c_sharp/excel/epplus COMMON=/var/www/data_base/common/csharp_common xlsx_delete.exe: xlsx_delete.cs mcs xlsx_delete.cs \ -r:$(COMMON)/table_manipulate.dll \ -r:$(EPPLUS)/EPPlus.dll clean: rm -f *.exe
35,607
https://github.com/anxin-wang/jsDemo_less-source/blob/master/veryless-master/src/1.0/layout/_grid.less
Github Open Source
Open Source
MIT
2,020
jsDemo_less-source
anxin-wang
Less
Code
143
484
//** // * // * Grid Layout // * // * @author 飞长 <veryued@gmail.com> // * // */ .makeGrid(@colnum: 24, @colwidth: 30px, @margin: 10px){ @gridColumns: @colnum; @gridColumnWidth: @colwidth; @gridGutterWidth: @margin; @gridRowWidth: (@gridColumns * @gridColumnWidth) + ...
24,264
https://github.com/gamekonglee/zongshuo/blob/master/app/src/main/java/bc/zongshuo/com/ui/activity/blance/ExtractMoneyActivity.java
Github Open Source
Open Source
Apache-2.0
null
zongshuo
gamekonglee
Java
Code
119
571
package bc.zongshuo.com.ui.activity.blance; import android.view.View; import android.widget.Button; import android.widget.TextView; import bc.zongshuo.com.R; import bc.zongshuo.com.cons.Constance; import bc.zongshuo.com.controller.blance.ExtractMoneyController; import bc.zongshuo.com.utils.MyShare; import bocang.util...
4,276
https://github.com/codemonstur/js3/blob/master/src/main/java/js3/actions/S3GetObject.java
Github Open Source
Open Source
MIT
null
js3
codemonstur
Java
Code
91
326
package js3.actions; import js3.S3ClientConfiguration; import js3.S3Credentials; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import static java.nio.charset.StandardCharsets.UTF_8; import static js3.util.HTTP.readFully; public interf...
14,137
https://github.com/Mioramalala/ams/blob/master/cycleRecette/verification.php
Github Open Source
Open Source
Apache-2.0
2,017
ams
Mioramalala
PHP
Code
31
188
<?php include '../connexion.php'; @session_start(); $mission_id=$_SESSION['idMission']; $cycle=""; $sql='SELECT CYCLE_ACHAT_ID FROM tab_conclusion WHERE (CYCLE_ACHAT_ID=18 OR CYCLE_ACHAT_ID=19 OR CYCLE_ACHAT_ID=20 OR CYCLE_ACHAT_ID=21 OR CYCLE_ACHAT_ID=100) AND MISSION_ID='.$mission_id; $verif=$bdd->query($s...
43,916
https://github.com/disassembler/rust-cardano/blob/master/chain-impl-mockchain/src/config.rs
Github Open Source
Open Source
MIT
null
rust-cardano
disassembler
Rust
Code
842
2,939
use crate::block::ConsensusVersion; use chain_addr::Discrimination; use chain_core::mempack::{ReadBuf, ReadError, Readable}; use chain_core::packer::Codec; use chain_core::property; use num_traits::FromPrimitive; use std::fmt::{self, Display, Formatter}; use std::io::{self, Write}; use std::str::FromStr; /// Seconds e...
50,205
https://github.com/Italo11Marcos/revista-eletronica/blob/master/resources/views/site/anterior.blade.php
Github Open Source
Open Source
MIT
2,021
revista-eletronica
Italo11Marcos
Blade
Code
92
349
@extends('site.base') @section('content') @foreach ($revistas as $r) <div class="col-md-12"> <div class="row no-gutters border rounded overflow-hidden position-relative"> <div class="col p-4 d-flex flex-column position-static"> <h5 > v. {{ $r->volume }} n. {{ $r->numero }} ({{ $r->ano }}): {{...
2,733
https://github.com/stevepond/elevate-editor/blob/master/src/Components/Email/Row/Form.js
Github Open Source
Open Source
MIT
2,021
elevate-editor
stevepond
JavaScript
Code
146
575
// @flow import React, { Fragment } from "react"; import { FastField } from "formik"; import Input from "elevate-ui/Input"; import NumberIncrement from "elevate-ui/NumberIncrement"; import Select from "elevate-ui/Select"; import Padding from "../../Common/Padding"; import Uploader from "../../Common/Uploader"; import ...
2,563
https://github.com/FlorentCal/attendance-manager-back/blob/master/src/main/java/dev/attendancemanager/entite/FerieType.java
Github Open Source
Open Source
MIT
null
attendance-manager-back
FlorentCal
Java
Code
20
63
/** * */ package dev.attendancemanager.entite; /** * @author ETY8 * @see Ferie */ public enum FerieType { RTT_EMPLOYEUR, FERIE; }
7,775
https://github.com/BenBout/SampQueryService/blob/master/SampQueryService/QueryResult/PlayerInfo.cs
Github Open Source
Open Source
MIT
2,017
SampQueryService
BenBout
C#
Code
41
76
namespace SampQueryService.QueryResult { public struct PlayerInfo { public int Level { get; internal set; } public string UserName { get; internal set; } public int ID { get; internal set; } public int ping { get; internal set; } } }
37,002
https://github.com/rafacoelho4/systems-theory/blob/master/test/functional/Makefile
Github Open Source
Open Source
MIT
null
systems-theory
rafacoelho4
Makefile
Code
112
450
CC = g++ # Extension # EXT = cpp # Flags # CFLAGS = -Wall -g # Dynamic Link Libraries # DLLS = stock_lib.dll flow_lib.dll model_lib.dll # Libraries # LIBS = -lstock_lib -lflow_lib -lmodel_lib # Executable # EXE = test # Source directory # SRC_DIR = ../../src # Bin directory # BIN_DIR = ../../bin # dlls: $(DLLS) fun...
54,944
https://github.com/slipstream/SlipStreamConnectors/blob/master/opennebula/python/tar/test/TestOpenNebulaClientCloudLive.py
Github Open Source
Open Source
Apache-2.0
2,019
SlipStreamConnectors
slipstream
Python
Code
407
1,894
#!/usr/bin/env python """ SlipStream Client ===== Copyright (C) 2015 SixSq Sarl (sixsq.com) ===== 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-...
55,177
https://github.com/heidilabs/HeidiLabsSauthBundle/blob/master/Model/AbstractUser.php
Github Open Source
Open Source
MIT
null
HeidiLabsSauthBundle
heidilabs
PHP
Code
296
897
<?php /** * User - Abstract Superclass */ namespace HeidiLabs\SauthBundle\Model; use Symfony\Component\Security\Core\Role\Role; use Symfony\Component\Security\Core\User\UserInterface; use Doctrine\ORM\Mapping as ORM; /** @ORM\MappedSuperclass */ class AbstractUser implements UserInterface, \Serializable { prot...
4,777
https://github.com/beatercode/cole_nodeLaravel/blob/master/resources/views/admin/layouts/sidebar.blade.php
Github Open Source
Open Source
MIT
null
cole_nodeLaravel
beatercode
PHP
Code
749
3,088
<aside class="main-sidebar"> <div class="sidebar"> <!-- sidebar menu --> <ul class="sidebar-menu" id="accord_side"> <li class="hidden-xs"> <a href="{{ URL::to($redirectUrl) }}" class="sidebar-toggle" data-toggle="offcanvas" role="button"> <span class="fa fa-bars hdt_cnt">Menu</span> ...
43,929
https://github.com/Baeldung/spring-security-oauth/blob/master/oauth-rest/keycloak-custom-providers/src/test/resources/custom-database-data.sql
Github Open Source
Open Source
MIT
2,023
spring-security-oauth
Baeldung
SQL
Code
59
271
create table if not exists users( username varchar(64) not null primary key, password varchar(64) not null, email varchar(128), firstName varchar(128) not null, lastName varchar(128) not null, birthDate DATE not null ); delete from users; insert into users(username,password,email, firstName, lastName,birth...
8,582
https://github.com/Makkiaveli/oas-gen/blob/master/buildSrc/src/main/kotlin/publishing-conventions.gradle.kts
Github Open Source
Open Source
Apache-2.0
2,021
oas-gen
Makkiaveli
Kotlin
Code
127
614
plugins { `maven-publish` signing } tasks.withType<PublishToMavenRepository> { doFirst { require(!gradle.startParameter.isParallelProjectExecutionEnabled) { "Parallel build should be disabled" } } } publishing { repositories { maven { name = "OSSRH" ...
35,972
https://github.com/ChinKX/MaterialDesignInXamlToolkit/blob/master/.sonarqube/out/ucfg_cs/ucfg_4_91.pb
Github Open Source
Open Source
MIT
null
MaterialDesignInXamlToolkit
ChinKX
null
Spoken
7
89
BMaterialDesignColors.WpfExample.Domain.SampleDialog.SampleDialog()] SD:\GitHub_Proj\MaterialDesignInXamlToolkit\MainDemo.Wpf\Domain\SampleDialog.xaml.cs ("0* 0* 1* 1" ""
10,982
https://github.com/qqqqzl/wow/blob/master/build/src/division/CMakeFiles/division.dir/depend.make
Github Open Source
Open Source
MIT
2,021
wow
qqqqzl
Makefile
Code
20
92
# CMAKE generated file: DO NOT EDIT! # Generated by "Unix Makefiles" Generator, CMake Version 3.18 src/division/CMakeFiles/division.dir/division.cpp.o: ../src/division/division.cpp src/division/CMakeFiles/division.dir/division.cpp.o: ../src/division/division.h
11,668
https://github.com/LAFINAL/kibana/blob/master/packages/kbn-test/src/kbn/users.js
Github Open Source
Open Source
Apache-2.0
null
kibana
LAFINAL
JavaScript
Code
173
344
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
25,348
https://github.com/ThomasYeoLab/CBIG/blob/master/external_packages/python/yapf-master/yapftests/reformatter_verify_test.py
Github Open Source
Open Source
MIT, Apache-2.0
2,023
CBIG
ThomasYeoLab
Python
Code
281
1,066
# Copyright 2016 Google Inc. 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 by applicable law or a...
3,651
https://github.com/G00dBye/YYMS/blob/master/scripts/quest/q32707e.py
Github Open Source
Open Source
MIT
2,021
YYMS
G00dBye
Python
Code
111
310
# Created by MechAviv # Quest ID :: 32707 # [FriendStory] Student From Another World sm.setIntroBoxChat(1530000) sm.setSpeakerType(3) sm.sendNext("Whoa, hey! So, you're the one that answered the phone, huh? Nice to meet you! I'm an exchange student from... Well, nowhere around here. Ha ha!") sm.setIntroBoxChat(15300...
44,034
https://github.com/SwissDataScienceCenter/renku-graph/blob/master/token-repository/src/main/scala/io/renku/tokenrepository/Microservice.scala
Github Open Source
Open Source
Apache-2.0
2,023
renku-graph
SwissDataScienceCenter
Scala
Code
327
1,124
/* * Copyright 2023 Swiss Data Science Center (SDSC) * A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and * Eidgenössische Technische Hochschule Zürich (ETHZ). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licen...
7,355
https://github.com/horihiro/node-fitbit-livedata/blob/master/src/bin/cli.js
Github Open Source
Open Source
MIT
2,022
node-fitbit-livedata
horihiro
JavaScript
Code
361
1,285
#!/usr/bin/env node import readline from 'readline'; import stream from 'stream'; import program from 'commander'; import debug from 'debug'; import fitbit from '..'; import pkg from '../../package.json'; const mutableStdout = new stream.Writable({ write: function write(chunk, encoding, callback) { if (!this.mut...
22,723
https://github.com/noms-digital-studio/nomis-reports/blob/master/server/app.js
Github Open Source
Open Source
MIT
2,020
nomis-reports
noms-digital-studio
JavaScript
Code
524
1,973
const express = require('express'); const bunyanMiddleware = require('bunyan-middleware'); const expressNunjucks = require('express-nunjucks'); const helmet = require('helmet'); const bodyParser = require('body-parser'); const path = require('path'); const favicon = require('serve-favicon'); const xFrameOptions = requi...
16,356
https://github.com/lkol/oma-riista-web/blob/master/src/main/java/fi/riista/util/GISUtils.java
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,017
oma-riista-web
lkol
Java
Code
569
2,229
package fi.riista.util; import com.fasterxml.jackson.databind.ObjectMapper; import com.google.common.cache.CacheBuilder; import com.google.common.cache.CacheLoader; import com.google.common.cache.LoadingCache; import com.querydsl.core.types.dsl.NumberPath; import com.querydsl.core.types.dsl.StringExpression; import co...
32,713
https://github.com/evolv3r/Adafruit_Seesaw/blob/master/examples/Crickit/fulltest/fulltest.cpp
Github Open Source
Open Source
BSD-3-Clause
2,020
Adafruit_Seesaw
evolv3r
C++
Code
283
1,215
#include "Adafruit_Crickit.h" #include "seesaw_neopixel.h" #include "seesaw_servo.h" #define NEOPIX_PIN 20 #define USE_NEOPIX seesaw_NeoPixel strip = seesaw_NeoPixel(24, NEOPIX_PIN, NEO_GRB + NEO_KHZ800); Adafruit_Crickit crickit; seesaw_Servo s1(&crickit); seesaw_Servo s2(&crickit); seesaw_Servo s3(&crickit); seesaw...
22,246
https://github.com/thautwarm/CanonicalTraits.jl/blob/master/src/Utils.jl
Github Open Source
Open Source
MIT
2,021
CanonicalTraits.jl
thautwarm
Julia
Code
551
1,648
abstract type TraitParam end abstract type TraitParamCons{A, B<:TraitParam} <: TraitParam end abstract type TraitParamNil <: TraitParam end abstract type Trait{P <: TraitParam} end abstract type TraitInstance end struct MethodInterface name :: Symbol argsty :: Any retty :: Any fresh :: ...
34,598
https://github.com/mohanagy/popcat/blob/master/src/index.ts
Github Open Source
Open Source
Apache-2.0
null
popcat
mohanagy
TypeScript
Code
216
564
// #!/usr/bin/env node // // import app from './server.js'; // import axios from "axios"; // // import { parse } from 'node-html-parser'; // import cheerio from 'cheerio' // const doit = async (url: string) => { // const { data } = await axios.get(url, { // headers: { // 'Content-Type': 'appl...
5,380
https://github.com/conformist89/CandidatesClassifier/blob/master/cand_class/apply_model.py
Github Open Source
Open Source
MIT
null
CandidatesClassifier
conformist89
Python
Code
846
4,026
import numpy as np import pandas as pd import matplotlib.pyplot as plt import xgboost as xgb from hipe4ml.plot_utils import plot_roc_train_test from cand_class.helper import * from sklearn.metrics import confusion_matrix, roc_curve, roc_auc_score from dataclasses import dataclass from matplotlib.font_manager import F...
55,385
https://github.com/zeucxb/flutter_screens/blob/master/example/lib/custom_loader_widget.dart
Github Open Source
Open Source
MIT
2,019
flutter_screens
zeucxb
Dart
Code
36
145
import 'package:flutter/material.dart'; class CustomLoaderWidget extends StatelessWidget { @override Widget build(BuildContext context) { return Container( color: Colors.black.withOpacity(0.6), child: Center( child: Container( height: 20, width: 300, child: Lin...
1,031