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/VDraks/School-Desk/blob/master/dao-impl/src/main/java/org/schooldesk/hibernateobjects/TestCore.java
Github Open Source
Open Source
MIT
null
School-Desk
VDraks
Java
Code
102
424
package org.schooldesk.hibernateobjects; import org.hibernate.*; import org.schooldesk.dao.hibernateimpl.*; import org.schooldesk.dto.*; import org.schooldesk.dto.impl.*; import javax.persistence.*; import java.util.*; @Entity @Table(name = "tests") public class TestCore extends ResourceCore { private Set<TestQues...
18,683
https://github.com/matoruru/purescript-react-material-ui-svgicon/blob/master/src/MaterialUI/SVGIcon/Icon/ArrowRightTwoTone.purs
Github Open Source
Open Source
MIT
null
purescript-react-material-ui-svgicon
matoruru
PureScript
Code
45
164
module MaterialUI.SVGIcon.Icon.ArrowRightTwoTone ( arrowRightTwoTone , arrowRightTwoTone_ ) where import Prelude (flip) import MaterialUI.SVGIcon.Type (SVGIcon, SVGIcon_) import React (unsafeCreateElement, ReactClass) as R foreign import arrowRightTwoToneImpl :: forall a. R.ReactClass a arrowRightTwoTone :...
33,165
https://github.com/pretystart/microservice/blob/master/OcelotGateway/Program.cs
Github Open Source
Open Source
Apache-2.0
null
microservice
pretystart
C#
Code
54
243
 using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; namespace OcelotGateway { public class Program { public static void Main(string[] args) { BuildWebHost(args).Run(); } public static IWebHos...
48,817
https://github.com/chrisdonahue/ddc/blob/master/learn/beatcalc.py
Github Open Source
Open Source
MIT
2,022
ddc
chrisdonahue
Python
Code
323
1,041
import numpy as np _EPSILON = 1e-6 class BeatCalc(object): # for simplicity, we will represent a "stop" as an impossibly sharp tempo change def __init__(self, offset, beat_bpm, beat_stop): # ensure all beat markers are strictly increasing assert beat_bpm[0][0] == 0.0 beat_last = -1.0 ...
24,915
https://github.com/pjchavarria/Link/blob/master/LinkAlbum/EditorViewController.m
Github Open Source
Open Source
MIT
2,015
Link
pjchavarria
Objective-C
Code
597
2,591
// // EditorViewController.m // LinkAlbum // // Created by Paul Chavarria Podoliako on 2/7/15. // Copyright (c) 2015 AnyTap. All rights reserved. // #import "EditorViewController.h" #import <SDWebImage/UIImageView+WebCache.h> #import "CustomActivityItemProvider.h" #import "XCDYouTubeKit.h" #import "HeliosAPIClient...
14,764
https://github.com/proHUZhiYong/vue_shopping/blob/master/src/components/subcomponent/shopcar_numbox.vue
Github Open Source
Open Source
MIT
2,023
vue_shopping
proHUZhiYong
Vue
Code
78
469
<template> <div class="goodsinfo_numbox"> <div class="mui-numbox" data-numbox-min='1' style="height:25px;"> <button class="mui-btn mui-btn-numbox-minus" type="button">-</button> <input id="test" class="mui-input-numbox" type="number" :value="initCount" @change="countChange" ref="numb...
12,186
https://github.com/WhitmoreLakeTroBots/2021-OffSeason/blob/master/src/main/java/org/usfirst/frc3668/OffSeason2021/subsystems/SubGear.java
Github Open Source
Open Source
BSD-3-Clause
null
2021-OffSeason
WhitmoreLakeTroBots
Java
Code
7
32
package org.usfirst.frc3668.OffSeason2021.subsystems; public class SubGear { }
19,007
https://github.com/xcalar/xcalar-idl/blob/master/ts/loginConfig.js
Github Open Source
Open Source
Apache-2.0
null
xcalar-idl
xcalar
JavaScript
Code
610
2,302
var msalEnabled = false; var msalConfig = { msalEnabled: "", msal: {} }; var defaultAdminEnabled = false; var defaultAdminConfig; var ldapConfig; var ldapConfigEnabled = false; function setMSALConfig(hostname, msalEnabledIn, msalIn) { var deferred = PromiseHelper.deferred(); var msalConfigOut = { msalE...
24,819
https://github.com/kuro-daei/vastjs/blob/master/test/src/03-events.js
Github Open Source
Open Source
Apache-2.0
null
vastjs
kuro-daei
JavaScript
Code
357
2,116
const chai = require('chai'); const Vast = require('../../src/main.js'); const expect = chai.expect; describe('Events', () => { it('progress & percents 0s', (done) => { const vast = new Vast(document.getElementById('target')); const url = '../data/simple.xml'; vast.load(url).then(() => { vast.time...
50,465
https://github.com/Apollo199999999/XAMLIslands/blob/master/MyUWPApp/HostPage.xaml.cs
Github Open Source
Open Source
MIT
null
XAMLIslands
Apollo199999999
C#
Code
173
510
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Primit...
15,340
https://github.com/ramdanegie/new2019/blob/master/applumen/app/Http/Controllers/Master/PegawaiController.php
Github Open Source
Open Source
MIT
null
new2019
ramdanegie
PHP
Code
94
423
<?php /** * Created by IntelliJ IDEA. * User: Egie Ramdan * Date: 18/02/2019 * Time: 20.27 */ namespace App\Http\Controllers\Master; use App\Http\Controllers\Controller; use App\Model\Master\Pegawai_M; use App\Model\Master\PegawaiM; use App\Model\Standar\KelompokUser_S; use Illuminate\Http\Request; use App\Traits...
34,291
https://github.com/fengdianchikuang/hontx/blob/master/hontx-system/src/main/java/com/ruoyi/company/domain/TbInsrncCpy.java
Github Open Source
Open Source
MIT
null
hontx
fengdianchikuang
Java
Code
234
857
package com.ruoyi.company.domain; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.core.domain.BaseEntity; /** * company对象 tb_insrnc_cpy * * @author ruoyi * @date 2021-04-12 */ public...
24,666
https://github.com/hermanndelcampo/nodejs.dart/blob/master/lib/src/stream/readable.dart
Github Open Source
Open Source
BSD-3-Clause
2,016
nodejs.dart
hermanndelcampo
Dart
Code
258
849
// Copyright (c) 2016, electron.dart. All rights reserved. Use of this source code // is governed by a BSD-style license that can be found in the LICENSE file. part of nodejs; @JS('_stream.Readable') class NativeJsReadable extends NativeJsEventEmitter { external NativeJsReadable(); external bool isPaused(); ex...
7,146
https://github.com/dudmy/TutorialPop/blob/master/app/src/main/java/net/dudmy/tutorialpop/TutorialPopActivity.kt
Github Open Source
Open Source
Apache-2.0
null
TutorialPop
dudmy
Kotlin
Code
38
203
package net.dudmy.tutorialpop import android.os.Bundle import android.support.v4.content.ContextCompat import android.support.v7.app.AppCompatActivity import kotlinx.android.synthetic.main.activity_tutorial_pop.* class TutorialPopActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?)...
7,405
https://github.com/LobatoNajera/Juego-Tres-Raya-Distintas-Dificultades/blob/master/app/SaveGame.php
Github Open Source
Open Source
MIT
null
Juego-Tres-Raya-Distintas-Dificultades
LobatoNajera
PHP
Code
301
1,504
<?php namespace App; use Illuminate\Database\Eloquent\Model; class SaveGame extends Model { // public static function newSaveGame($user_id) { $save_game_creado = false; $avance_user = AvanceUser::find($user_id); $save_game = SaveGame::orderBy('id', 'asc')->where([['user_id', '=', $user_id], [...
28,371
https://github.com/lilyminium/autodoc_pydantic/blob/master/tests/roots/test-json-error-strategy/example.py
Github Open Source
Open Source
MIT
2,022
autodoc_pydantic
lilyminium
Python
Code
18
59
from pydantic import BaseModel class NonSerializable(BaseModel): """NonSerializable """ field: object = object() """Field""" class Config: arbitrary_types_allowed = True
34,209
https://github.com/shearn89/coreos-bootstrap/blob/master/scripts/install.sh
Github Open Source
Open Source
Apache-2.0
null
coreos-bootstrap
shearn89
Shell
Code
36
136
#!/bin/bash -e REPOSERVER="http://192.168.56.1:8000" OCTET=$(ip a | grep global | awk {'print $2'} | awk -F. {'print $4'} | awk -F/ {'print $1'}) curl -O "${REPOSERVER}/cloud-config/coreos-$OCTET.json" sudo coreos-install -d /dev/sda -i coreos-$OCTET.json -b "${REPOSERVER}/images" sudo eject reboot
37,222
https://github.com/jmanday/Master/blob/master/IC/Practicas/Practica1/scripts/normalizeSubmission.py
Github Open Source
Open Source
Apache-2.0
2,017
Master
jmanday
Python
Code
115
225
############################################################# # Este script toma de entrada un csv que lo recorre por fila # y se queda con el mayor valor de cada una y la columna a la # que pertenece. Para el problema de MNIST cada fila tiene 10 # columnas y un valor de pertenencia cada una al número representad...
48,190
https://github.com/iExecBlockchainComputing/iexec-SupportVectorMachine-BagOfTasks/blob/master/apprun.sh
Github Open Source
Open Source
Apache-2.0
null
iexec-SupportVectorMachine-BagOfTasks
iExecBlockchainComputing
Shell
Code
21
157
#!/bin/sh iexec app run 0x782f35D57c1a76B60d153A265A1591720e51560f \ --chain goerli \ --wallet-file user_wallet \ --workerpool 0xEb6c3FA8522f2C342E94941C21d3947c099e6Da0 \ --params {\"iexec_input_files\":[\"https://raw.githubusercontent.com/iExecBlockchainComputing/iexec-SupportVectorMachine-Bag...
33,686
https://github.com/neswork-th/create-node-app/blob/master/src/template/src/index.js
Github Open Source
Open Source
MIT
2,021
create-node-app
neswork-th
JavaScript
Code
39
68
// "Create React App" tooling expects to find the WWW root here, // so we simply use this file to import the ./www directory. // // For the backend, we set the container's entrypoint to src/api/index.js module.exports = require('./www')
1,647
https://github.com/solitardj9/Json-Rule-Engine-2/blob/master/demo/src/main/java/com/example/demo/dataActionMngtSet/dataActionPluginMngt/service/data/ErrorAction.java
Github Open Source
Open Source
Apache-2.0
null
Json-Rule-Engine-2
solitardj9
Java
Code
139
427
package com.example.demo.dataActionMngtSet.dataActionPluginMngt.service.data; public class ErrorAction { // private String siteId; private String eqpId; private String eqpType; private Object errorCode; public ErrorAction() { } public ErrorAction(String siteId, String eqpId, String eqpType, Object ...
36,606
https://github.com/gregmarra/the-blue-alliance-pwa/blob/master/src/client.js
Github Open Source
Open Source
MIT
2,019
the-blue-alliance-pwa
gregmarra
JavaScript
Code
95
308
import './bootstrap'; import React from 'react'; import { hydrate } from 'react-dom'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'connected-react-router/immutable'; import { StylesProvider, createGenerateClassName } from '@material-ui/styles'; import App from './App'; import createStore fr...
19,245
https://github.com/Momotoculteur/EasyAttest/blob/master/src/components/atoms/momotoculteur-text-input/momotoculteurTextInput.tsx
Github Open Source
Open Source
MIT
2,020
EasyAttest
Momotoculteur
TSX
Code
197
703
import * as React from "react"; import { View, } from "react-native"; import { HelperText, TextInput, } from 'react-native-paper'; import { styles } from './style' import { validateCreateProfilFormService } from '../../../services/validateCreateProfilFormService' import { Observable, Observer } from "rxjs"; import ...
49,748
https://github.com/mikeaddison93/deeplearning4j/blob/master/deeplearning4j-scaleout/deeplearning4j-nlp/src/test/java/org/deeplearning4j/models/word2vec/wordstore/VocabConstructorTest.java
Github Open Source
Open Source
Apache-2.0
2,015
deeplearning4j
mikeaddison93
Java
Code
199
1,025
package org.deeplearning4j.models.word2vec.wordstore; import org.deeplearning4j.models.word2vec.wordstore.inmemory.InMemoryLookupCache; import org.deeplearning4j.text.sentenceiterator.SentenceIterator; import org.deeplearning4j.text.sentenceiterator.UimaSentenceIterator; import org.deeplearning4j.text.tokenization.tok...
19,845
https://github.com/go-spatial/tegola/blob/master/container/singlelist/point/list/point.go
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,023
tegola
go-spatial
Go
Code
134
390
package list import ( "fmt" "github.com/go-spatial/tegola/container/singlelist" "github.com/go-spatial/tegola/maths" ) type Elementer interface { list.Elementer } type ElementerPointer interface { list.Elementer maths.Pointer } // Pt is a point node. type Pt struct { maths.Pt // This fulfills the Elementer...
41,733
https://github.com/fireice-uk/ryo-currency/blob/master/src/common/command_line.cpp
Github Open Source
Open Source
BSD-3-Clause
2,019
ryo-currency
fireice-uk
C++
Code
496
972
// Copyright (c) 2018, Ryo Currency Project // Portions copyright (c) 2014-2018, The Monero Project // // Portions of this file are available under BSD-3 license. Please see ORIGINAL-LICENSE for details // All rights reserved. // // Authors and copyright holders give permission for following: // // 1. Redistribution an...
25,315
https://github.com/dennoa/witness-this/blob/master/client/views/home/home.controller.spec.js
Github Open Source
Open Source
MIT
null
witness-this
dennoa
JavaScript
Code
25
93
'use strict'; describe('Home Controller', function() { beforeEach(module('myStuff')); var HomeCtrl, scope; beforeEach(inject(function($controller, $rootScope) { scope = $rootScope.$new(); HomeCtrl = $controller('HomeCtrl', { $scope: scope }); })); });
47,450
https://github.com/jupyter/nbconvert/blob/master/nbconvert/filters/citation.py
Github Open Source
Open Source
BSD-3-Clause
2,023
nbconvert
jupyter
Python
Code
382
911
"""Citation handling for LaTeX output.""" # ----------------------------------------------------------------------------- # Copyright (c) 2013, the IPython Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # -...
34,163
https://github.com/hozuki/StarlightDirector/blob/master/src/StarlightDirector/UI/Controls/ScoreVisualizer.Designer.cs
Github Open Source
Open Source
MIT
2,021
StarlightDirector
hozuki
C#
Code
220
1,054
namespace OpenCGSS.StarlightDirector.UI.Controls { partial class ScoreVisualizer { /// <summary> /// 必需的设计器变量。 /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// 清理所有正在使用的资源。 /// </summary> /// <param name="...
12,327
https://github.com/liangwang0734/aorsa/blob/master/src/mets2aorsa_myra.f90
Github Open Source
Open Source
MIT
2,020
aorsa
liangwang0734
Fortran Free Form
Code
2,297
6,646
!module METS2AORSA_MYRA ! private ! public:: GET_WMAT_MYRA, intplt1d, WINTERP1D_3 !contains subroutine GET_SUM_MYRA(k_uper, sum, W, ZSPEC, ASPEC, BMAG, & & lmax, ENORM, UPARMIN, UPARMAX, & & NUPAR, NUPER, UPER, UPAR, DFDUPER, DFDUPAR, & & ealphak, ebetak, ebk, nkdim1, nkdim2, mkdim1, mkdim...
40,191
https://github.com/VandeboschRemy/Re-Book-IT-appi-/blob/master/ReBookIT/app/src/main/java/be/rebookit/vandeboschremy/re_book_it/InfoActivity.java
Github Open Source
Open Source
BSD-2-Clause
null
Re-Book-IT-appi-
VandeboschRemy
Java
Code
69
186
package be.rebookit.vandeboschremy.re_book_it; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; /** * The InfoActivity show the user what the smileys mean and how things work at Re-Book IT. * Created by Vandebosch Remy on 28/03/2018. */ public class InfoActivity extends AppCompatActivity...
23,455
https://github.com/sjsoad/New-Project-Kit/blob/master/Templates/Cells/Presenter + Cell.xctemplate/___FILEBASENAME___CellPresenter.swift
Github Open Source
Open Source
MIT
null
New-Project-Kit
sjsoad
Swift
Code
92
324
// // ___FILENAME___ // ___PROJECTNAME___ // // Created by ___FULLUSERNAME___ on ___DATE___. // ___COPYRIGHT___ // import Foundation import SKDataSources protocol ___VARIABLE_fileName:identifier___Interface: class { } protocol ___VARIABLE_fileName:identifier___Output { } class ___FILEBASENAMEASIDENTIF...
31,943
https://github.com/swellaby/letra/blob/master/letra/_file_io/file_io.py
Github Open Source
Open Source
MIT
null
letra
swellaby
Python
Code
103
363
from .yaml import read as read_yaml, write as write_yaml from . import TemplateFileFormat from os import getcwd from os.path import abspath, join, exists as path_exists from string import Template def get_path_for_read(filepath): if path_exists(filepath): return filepath else: path = abspath(j...
37,666
https://github.com/ypyf/fscm/blob/master/test/load.scm
Github Open Source
Open Source
MIT
2,019
fscm
ypyf
Scheme
Code
19
57
(define start #f) (if (not start) (call/cc (lambda (cc) (set! start cc)))) (display "Going to invoke (start)\n") (start #f)
23,352
https://github.com/anpl-technion/anpl_mrbsp/blob/master/action_generator/src/action_generator/action_generator_node.cpp
Github Open Source
Open Source
MIT
2,021
anpl_mrbsp
anpl-technion
C++
Code
106
288
/* --------------------------------------------------------------------------- * * Autonomous Navigation and Perception Lab (ANPL), * Technion, Israel Institute of Technology, * Faculty of Aerospace Engineering, * Haifa, Israel, 32000 * All Rights Reserved * * See LICENSE for the license information * * -----...
45,278
https://github.com/elGuille-info/fourth-edition/blob/master/Code/Chapter_9/GoFish/GoFish/Program.cs
Github Open Source
Open Source
MIT
null
fourth-edition
elGuille-info
C#
Code
304
858
using System; namespace GoFish { using System.Collections.Generic; using System.Linq; class Program { /// <summary> /// The GameController to manage the game /// </summary> static GameController gameController; /// <summary> /// Play a game of Go Fish!...
27,405
https://github.com/tbrooke/ergo/blob/master/packages/ergo-engine/test/ergo-engine.js
Github Open Source
Open Source
Apache-2.0
null
ergo
tbrooke
JavaScript
Code
273
695
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed u...
4,715
https://github.com/itzsaga/react-oidc/blob/master/packages/redux/src/NotAuthorized.spec.js
Github Open Source
Open Source
MIT
2,021
react-oidc
itzsaga
JavaScript
Code
31
93
// Link.react.test.js import React from 'react'; import renderer from 'react-test-renderer'; import NotAuthorized from './NotAuthorized'; test('Render <NotAuthorized/> correctly', () => { const component = renderer.create(<NotAuthorized />); const tree = component.toJSON(); expect(tree).toMatchSnapshot(); });
40,042
https://github.com/tim-yoshi/pyquarkchain/blob/master/quarkchain/cluster/tests/test_neighbor.py
Github Open Source
Open Source
MIT
2,022
pyquarkchain
tim-yoshi
Python
Code
104
326
import unittest from quarkchain.core import Branch from quarkchain.cluster.neighbor import is_neighbor class TestNeighbor(unittest.TestCase): def test_is_neighbor_same_chain_id(self): b1 = Branch(2 << 16 | 2 | 1) b2 = Branch(2 << 16 | 2 | 0) self.assertTrue(is_neighbor(b1, b2, 33)) d...
5,765
https://github.com/kingjin94/enhanced_simulation/blob/master/src/touchTable.py
Github Open Source
Open Source
Intel
null
enhanced_simulation
kingjin94
Python
Code
881
3,978
from filter_octomap.msg import table import numpy as np import random import rospy import moveit_commander import geometry_msgs.msg import sys from copy import deepcopy # For sending joint level controlls import actionlib from control_msgs.msg import FollowJointTrajectoryAction, FollowJointTrajectoryGoal from trajecto...
40,868
https://github.com/iloveitaly/MABCocoaToolkit/blob/master/MABSplitView.m
Github Open Source
Open Source
MIT
2,014
MABCocoaToolkit
iloveitaly
Objective-C
Code
70
251
// // PHSplitView.m // // Created by Michael Bianco on 4/11/07. // <mabblog.com> // #import "MABSplitView.h" @implementation MABSplitView - (id) initWithCoder:(NSCoder *)decoder { if(self = [super initWithCoder:decoder]) { _splitImage = [[NSImage imageNamed:@"SplitBar"] retain]; } return self; } - (void) ...
605
https://github.com/mhus-info/mhus-osgi-tools/blob/master/karaf-commands/src/main/java/de/mhus/karaf/commands/mhus/CmdKeychainCopy.java
Github Open Source
Open Source
Apache-2.0
2,020
mhus-osgi-tools
mhus-info
Java
Code
252
704
/** * Copyright (C) 2018 Mike Hummel (mh@mhus.de) * * 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 applic...
26,168
https://github.com/jiribenes/scheme/blob/master/test/macro/ifpos.scm
Github Open Source
Open Source
MIT
2,020
scheme
jiribenes
Scheme
Code
34
81
(begin (define-macro (ifpos a then) (list 'if (list '> a 0) then)) (test (equal? (ifpos 42 "aaa") "aaa") #t) (test (equal? (expand (ifpos a (display a))) '(if (> a 0) (display a))) #t) )
29,123
https://github.com/alexiregar/jdih/blob/master/frontend/views/rancangan/_search.php
Github Open Source
Open Source
BSD-3-Clause
null
jdih
alexiregar
PHP
Code
165
735
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model frontend\models\search\RancanganSearch */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="rancangan-search"> <?php $form = ActiveForm::begin([ 'enableClientScript' => false, 'action' => [...
34,409
https://github.com/cooljeanius/DragonFlyBSD/blob/master/sbin/mount_hammer2/mount_hammer2.c
Github Open Source
Open Source
BSD-3-Clause
2,019
DragonFlyBSD
cooljeanius
C
Code
617
1,398
/* * Copyright (c) 2011-2012 The DragonFly Project. All rights reserved. * * This code is derived from software contributed to The DragonFly Project * by Matthew Dillon <dillon@dragonflybsd.org> * by Venkatesh Srinivas <vsrinivas@dragonflybsd.org> * * Redistribution and use in source and binary forms, with or w...
36,792
https://github.com/kennethaasan/tournament/blob/master/public/js/app.js
Github Open Source
Open Source
Apache-2.0
2,017
tournament
kennethaasan
JavaScript
Code
111
697
angular.module('app', [ 'ngRoute', 'ngResource', 'ngSanitize', 'ui.select', 'app.controllers', 'app.services' ]); angular.module('app').config(function(uiSelectConfig) { uiSelectConfig.theme = 'bootstrap'; uiSelectConfig.resetSearchInput = true; }); angular.module('app').config(functio...
16,395
https://github.com/yveschiong/personal-record-book/blob/master/data/src/main/java/com/yveschiong/data/storage/InternalStorageManager.kt
Github Open Source
Open Source
Apache-2.0
null
personal-record-book
yveschiong
Kotlin
Code
452
1,420
package com.yveschiong.data.storage import android.content.Context import android.content.ContextWrapper import android.graphics.Bitmap import android.graphics.BitmapFactory import java.io.* import java.util.* import javax.inject.Inject class InternalStorageManager @Inject constructor(context: Context) { compan...
1,540
https://github.com/jerrykuo7727/QA-FGC-finetune-datedur/blob/master/scripts/data.py
Github Open Source
Open Source
Apache-2.0
2,020
QA-FGC-finetune-datedur
jerrykuo7727
Python
Code
723
2,754
import os import torch from torch.nn.utils.rnn import pad_sequence from torch.utils.data import Dataset, DataLoader class BertDataset(Dataset): def __init__(self, split, tokenizer, bwd=False, prefix=None): assert split in ('train', 'dev', 'test') self.split = split self.question_list = os.l...
25,659
https://github.com/lij0511/pandora/blob/master/include/pola/log/Log.h
Github Open Source
Open Source
Apache-2.0
null
pandora
lij0511
C
Code
152
599
/* * Log.h * * Created on: 2015年12月4日 * Author: lijing */ #ifndef POLA_LOG_H_ #define POLA_LOG_H_ #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #define DEBUG 1 inline void polaris_printAbort(const char* str, ...) { va_list pArgList; va_start(pArgList, str); vfprintf(stderr, str, pArgLis...
11,882
https://github.com/BobFactory/GithubDemo/blob/master/app/src/main/java/com/example/githubdemo/network/models/IssuesModel.kt
Github Open Source
Open Source
MIT
2,020
GithubDemo
BobFactory
Kotlin
Code
81
177
package com.example.githubdemo.network.models data class IssuesModel( val author_association: String? = "", val body: String? = "", val comments: Int? = 0, val comments_url: String? = "", val created_at: String? = "", val events_url: String? = "", val html_url: String? = "", val id: Int...
14,978
https://github.com/ZabavskyAlex/additional_7/blob/master/src/index.js
Github Open Source
Open Source
MIT
null
additional_7
ZabavskyAlex
JavaScript
Code
242
650
module.exports = function solveSudoku(matrix) { var arr_null_cell = search_null_cell(matrix); while (ch_null(matrix)){ for (var cell = 0; cell < arr_null_cell .length; cell++ ) { var flag_stop = false; var row = arr_null_cell [cell][0]; var col = arr_null_cell [cell]...
21,893
https://github.com/gladk/Dyssol-open/blob/master/GUIDialogs/TearStreamsEditor/TearStreamsEditor.cpp
Github Open Source
Open Source
BSD-3-Clause
2,020
Dyssol-open
gladk
C++
Code
309
1,693
/* Copyright (c) 2020, Dyssol Development Team. All rights reserved. This file is part of Dyssol. See LICENSE file for license information. */ #include "TearStreamsEditor.h" #include "MaterialStream.h" #include "FlowsheetParameters.h" #include "DyssolStringConstants.h" #include <QMessageBox> CTearStreamsEditor::CTear...
4,245
https://github.com/kkaempf/openwbem/blob/master/test/unit/run_make_check.sh
Github Open Source
Open Source
BSD-3-Clause
2,023
openwbem
kkaempf
Shell
Code
99
263
#!/bin/sh wrapper=./set_test_libpath.sh MAKE=${MAKE:-make} # Build the wrapper script if needed. if [ -f ${wrapper} ]; then : else ${MAKE} local-scripts fi if [ $# -eq 0 ] || [ x$1 = xall ]; then ${MAKE} check exit $? fi for testname in "$@"; do if [ -f ${testname}TestCases ]; then ${wrapper} ./${testname}Te...
2,961
https://github.com/yarl/pattypan-vue/blob/master/src/views/ChooseDirectory.vue
Github Open Source
Open Source
MIT
null
pattypan-vue
yarl
Vue
Code
94
287
<template> <div class="about"> <h1>Choose directory</h1> <button class="btn btn-primary" @click="selectDirectory">Select Directory</button> <div> <p v-for="file in fileList" :key="file">{{ file }}</p> </div> </div> </template> <script lang="ts"> import { Component, Vue } from "vue-property-de...
650
https://github.com/TemplarRei/FLExtensions/blob/master/FLExtensions.Painkillers/ArrayPainkillers.cs
Github Open Source
Open Source
MIT
null
FLExtensions
TemplarRei
C#
Code
87
250
namespace FLExtensions.Painkillers { using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public static class ArrayPainkillers { public static T[] Replicate<T>(this T[] array) where T : struct { ...
20,669
https://github.com/FeroshUX/tachi-cord/blob/master/src/theme/sidebar/_userarea.scss
Github Open Source
Open Source
MIT
2,022
tachi-cord
FeroshUX
SCSS
Code
20
115
.panels-3wFtMD { background-color: var(--background-secondary); // icons .button-f2h6uQ[aria-checked="true"], .button-f2h6uQ[aria-label="Show Game Activity"] { color: hsla(var(--accent-brand)); } .strikethrough-2Kl6HF { color: hsla(var(--accent-red)); } }
40,601
https://github.com/xamarin/Xamarin.PropertyEditing/blob/master/Xamarin.PropertyEditing.Tests/MockObjectEditor.cs
Github Open Source
Open Source
MIT
2,023
Xamarin.PropertyEditing
xamarin
C#
Code
1,295
4,300
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Reflection; using System.Threading; using System.Threading.Tasks; using Cadenza.Collections; using Xamarin.PropertyEditing.Reflection; using Xamarin.PropertyEditing.Tests.MockControls; namespace Xamarin.Propert...
43,108
https://github.com/rbeyzas/visualization-tool/blob/master/app/utils/truthy.ts
Github Open Source
Open Source
BSD-3-Clause
2,021
visualization-tool
rbeyzas
TypeScript
Code
75
137
type Truthy<T> = T extends false | "" | 0 | null | undefined ? never : T; // from lodash /** * Enables type narrowing through Array::filter * * @example * const a = [1, undefined].filter(Boolean) // here the type of a is (number | undefined)[] * const b = [1, undefined].filter(truthy) // here the type of b is num...
29,440
https://github.com/LosManos/St4mpede/blob/master/Libs/St4mpede.Code/Common.cs
Github Open Source
Open Source
Apache-2.0
2,016
St4mpede
LosManos
C#
Code
263
675
using System; using System.Collections.Generic; namespace St4mpede.Code { public static class Common { /// <summary>This is a list of all keywords in C#. /// If you think the language seems too simple to use it is alright. Just add more keywords. /// </summary> public static readonly IList<string> KeyWords ...
37,353
https://github.com/BrainIsBad/nest-react-messenger/blob/master/src/auth/auth.service.ts
Github Open Source
Open Source
MIT
null
nest-react-messenger
BrainIsBad
TypeScript
Code
154
456
import { HttpException, HttpStatus, Injectable, UnauthorizedException } from '@nestjs/common'; import { JwtService } from '@nestjs/jwt'; import * as bcrypt from 'bcryptjs'; import { CreateUserDto } from '../users/dto/create-user.dto'; import { User } from '../users/users.model'; import { UsersService } from '../users/u...
48,157
https://github.com/readme1988/notify-service/blob/master/react/common/ConfirmModal.scss
Github Open Source
Open Source
Apache-2.0
2,020
notify-service
readme1988
SCSS
Code
38
154
.c7n-iam-confirm-modal { .ant-modal-body { .ant-confirm-body-wrapper { .ant-confirm-title { font-size: 18px; display: block; overflow: auto; } .ant-confirm-content { font-size: 13px; color: #000; margin-top: 16px; } } } .ant-confirm...
1,475
https://github.com/kastiglione/zld/blob/master/ld/unit-tests/test-cases/archive-order/bar2.c
Github Open Source
Open Source
MIT
2,022
zld
kastiglione
C
Code
6
11
int bar2() { return 0; }
50,336
https://github.com/emilybache/start-points-custom/blob/master/DeviceDriver/C++/DeviceDriver.hpp
Github Open Source
Open Source
MIT
2,020
start-points-custom
emilybache
C++
Code
20
72
#include "FlashMemoryDevice.hpp" class DeviceDriver { public: DeviceDriver(FlashMemoryDevice &hardware); char read(long address); void write(long address, char data); protected: FlashMemoryDevice &m_hardware; };
35,347
https://github.com/violetiu/autopers-parent/blob/master/src/main/java/org/violetime/autopers/units/AutopersCodeName.java
Github Open Source
Open Source
CC0-1.0
null
autopers-parent
violetiu
Java
Code
408
1,256
package org.violetime.autopers.units; import java.util.HashMap; import java.util.Map; public class AutopersCodeName { public static void main(String[] args) { System.out.println(AutopersCodeName.className("market_code")); } private static Map<String,String> sourceTableMap; public static String className(S...
24,334
https://github.com/kmestry/PROBLEM_SOLVING_HACKERRANK_LEETCODE/blob/master/src/com/recursion/PowerXN.java
Github Open Source
Open Source
MIT
null
PROBLEM_SOLVING_HACKERRANK_LEETCODE
kmestry
Java
Code
54
134
package com.recursion; public class PowerXN { int result = 1; public static void main(String[] args) { int result = new PowerXN().calculatePower(5, 8); System.out.println("result = " + result); } public int calculatePower(int x, int n) { if (n == 0) return 1; ...
26,165
https://github.com/ByteriX/BxObjC/blob/master/iBXData/iBXData/Sources/Parser/BxAbstractDataParser.h
Github Open Source
Open Source
MIT
2,023
BxObjC
ByteriX
Objective-C
Code
161
498
/** * @file BxAbstractDataParser.h * @namespace iBXData * * @details Абстрактный сериализатор/дисериализатор * @date 08.07.2013 * @author Sergey Balalaev * * @version last in https://github.com/ByteriX/BxObjC * @copyright The MIT License (MIT) https://opensource.org/licenses/MIT * Copyright (c) 2016 ByteriX....
36,841
https://github.com/poczone/Similarity/blob/master/src/net/poczone/similarity/metrics/SingleFractionSimilarityMetric.java
Github Open Source
Open Source
MIT
null
Similarity
poczone
Java
Code
45
113
package net.poczone.similarity.metrics; public class SingleFractionSimilarityMetric implements SimilarityMetric { @Override public double calculateSimilarity(int firstCount, int secondCount, int bothCount, int totalTargetCount) { if (firstCount > 0 && secondCount > 0) { return 2d * bothCount / (firstCount + sec...
17,224
https://github.com/U1001975/DotsUI/blob/master/com.dotsui.core/DotsUI.Core/RectTransformMissingComponentsSystem.cs
Github Open Source
Open Source
MIT
2,022
DotsUI
U1001975
C#
Code
159
597
using Unity.Entities; namespace DotsUI.Core { [UnityEngine.ExecuteAlways] [UpdateInGroup(typeof(BeforeRectTransformUpdateGroup))] class RectTransformMissingComponentsSystem : ComponentSystem { private EntityQuery m_MissingScale; private EntityQuery m_MissingWorldRect; private E...
16,350
https://github.com/SeasonedSoftware/stoopy/blob/master/src/default/__tests__/Inputs.test.js
Github Open Source
Open Source
MIT
null
stoopy
SeasonedSoftware
JavaScript
Code
347
961
import React from 'react' import renderer from 'react-test-renderer' import { Input, SelectInput, RadioInput, CheckboxInput } from '../Inputs' // jest.mock('uploods', () => ({ // DropPicture: props => <div {...props}>DropPicture</div>, // })) describe('Input', () => { it('renders correctly', () => { const pr...
47,357
https://github.com/bzhaoopenstack/hadoop/blob/master/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/MoveApplicationAcrossQueuesRequest.java
Github Open Source
Open Source
Apache-2.0
2,022
hadoop
bzhaoopenstack
Java
Code
322
707
/** * 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...
8,469
https://github.com/HaraDev001/eg-okeicom/blob/master/app/Http/Controllers/CkeditorController.php
Github Open Source
Open Source
MIT
null
eg-okeicom
HaraDev001
PHP
Code
77
391
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class CkeditorController extends Controller { /** * Ckeditorの画像をアップロードする * * @param Request $request */ public function upload(Request $request) { if ($request->hasFile('upload')) { $file = $request...
26,676
https://github.com/acidburn0zzz/JuvoPlayer/blob/master/XamarinPlayer/XamarinPlayer.Tizen.TV/Controls/ContentItem.xaml.cs
Github Open Source
Open Source
MIT
2,022
JuvoPlayer
acidburn0zzz
C#
Code
705
2,198
/*! * https://github.com/SamsungDForum/JuvoPlayer * Copyright 2019, Samsung Electronics Co., Ltd * Licensed under the MIT license * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MER...
32,519
https://github.com/sanhong/jitwatch/blob/master/src/main/resources/examples/TestInner.java
Github Open Source
Open Source
BSD-2-Clause-Views
2,015
jitwatch
sanhong
Java
Code
41
153
public class TestInner { public TestInner() { System.out.println("TestInner"); new Inner1(); } class Inner1 { public Inner1() { System.out.println("Inner1"); new Inner2(); } class Inner2 { public Inner2() { System.out.println("Inner2"); } } } public static void main(String[]...
25,118
https://github.com/ContinuumBridge/sensortag/blob/master/sensortagadaptor_a.py
Github Open Source
Open Source
MIT
2,014
sensortag
ContinuumBridge
Python
Code
2,645
8,324
#!/usr/bin/env python # sensortagadaptor5.py # Copyright (C) ContinuumBridge Limited, 2013-2014 - All Rights Reserved # Unauthorized copying of this file, via any medium is strictly prohibited # Proprietary and confidential # Written by Peter Claydon # ModuleName = "SensorTag" # 2 lines below set characteristics to mon...
6,125
https://github.com/qBliZzarDp/POEPlus/blob/master/POEPlus/PassiveTree/PassiveTreePresenter.swift
Github Open Source
Open Source
MIT
null
POEPlus
qBliZzarDp
Swift
Code
73
260
// // PassiveTreePresenter.swift // POEPlus // // Created by Алексей Филатов on 18.11.2021. // import Foundation /// Протокол, описывающий методы для отображения данныхъ protocol PassiveTreePresentationLogic { func presentPassiveTree(response: PassiveTree.Response) } /// Класс, занимающийся подготовкой данных д...
21,599
https://github.com/JaySon-Huang/ClickHouse/blob/master/src/Processors/Formats/Impl/ArrowBlockInputFormat.cpp
Github Open Source
Open Source
Apache-2.0
2,022
ClickHouse
JaySon-Huang
C++
Code
417
1,716
#include "ArrowBlockInputFormat.h" #if USE_ARROW #include <Formats/FormatFactory.h> #include <IO/ReadBufferFromMemory.h> #include <IO/WriteHelpers.h> #include <IO/copyData.h> #include <arrow/api.h> #include <arrow/ipc/reader.h> #include <arrow/result.h> #include "ArrowBufferedStreams.h" #include "ArrowColumnToCHColum...
26,468
https://github.com/alexpod1000/Signal-Maps/blob/master/app/src/main/java/it/unibo/alexpod/lam_project_signal_maps/adapters/SignalInfoWindowAdapter.java
Github Open Source
Open Source
Apache-2.0
2,020
Signal-Maps
alexpod1000
Java
Code
98
561
package it.unibo.alexpod.lam_project_signal_maps.adapters; import android.app.Activity; import android.content.Context; import android.text.Html; import android.view.View; import android.widget.Button; import android.widget.TextView; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.mod...
12,435
https://github.com/LinhPham-Dev/laravel_booking_room/blob/master/resources/views/backend/banners/edit.blade.php
Github Open Source
Open Source
MIT
null
laravel_booking_room
LinhPham-Dev
PHP
Code
251
1,036
@extends('backend.layouts.master') @section('content') <main class="content"> <div class="container-fluid p-0"> <div class="row mb-2 mb-xl-3 mx-2"> <div class="col-auto d-none d-sm-block"> <h3><strong>{{ $page }}</strong></h3> </div> </div> <div clas...
20,346
https://github.com/Chaiomanot/libcx3/blob/master/src/lib/raw.cpp
Github Open Source
Open Source
Apache-2.0
null
libcx3
Chaiomanot
C++
Code
114
392
#include "raw.hpp" #include <string.h> #include <stdlib.h> #include <stdio.h> #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include <windows.h> #endif void_t* alloc_mem (nat8_t len) { assert_gt(len, 0); if (auto ptr = calloc(len, 1); ptr) { return ptr; } else { fprintf(stderr, "Couldn't allocate %llu bytes on the...
15,718
https://github.com/ma3east/wordpress_tyler_tutorial/blob/master/plugins/siteorigin-panels/tpl/metabox-panels.php
Github Open Source
Open Source
MIT
null
wordpress_tyler_tutorial
ma3east
PHP
Code
57
257
<?php $builder_id = uniqid(); ?> <div id="siteorigin-panels-metabox" class="siteorigin-panels-builder"> <?php do_action('siteorigin_panels_before_interface') ?> <?php wp_nonce_field('save', '_sopanels_nonce') ?> <script type="text/javascript"> // Create the panels_data input var builderId = "<?php echo esc_att...
27,490
https://github.com/u404/multi-filter-demo/blob/master/multi-filter/multi-filter.js
Github Open Source
Open Source
MIT
2,017
multi-filter-demo
u404
JavaScript
Code
877
3,142
//options: [{key: keyName, label: text, data: [{text, value}], valueField, textField, selected: value, type: 1/2}] var initFilterBox = function (wrapper, options, onFilter) { var $filterBox = $(wrapper).addClass('filter-box'), $filterResult = $('<div class="filter-item filter-result-item">\ ...
15,308
https://github.com/wangbin0619/donkey/blob/master/donkeycar/parts/ev3_package/hello.py
Github Open Source
Open Source
MIT
null
donkey
wangbin0619
Python
Code
36
185
#!/usr/bin/env python3 import time import ev3 my_ev3 = ev3.EV3(protocol=ev3.WIFI, host='00:16:53:44:23:17') my_ev3.verbosity = 1 from ev3mail import * for i in range(5): s = ev3mailbox.encodeMessage(MessageType.Numeric, 'abc', i) print(i) my_ev3.send_system_cmd(s,False) time.sleep(1) s = ev3m...
13,465
https://github.com/scottwedge/OpenStack-Stein/blob/master/murano-7.0.0/murano/common/policies/__init__.py
Github Open Source
Open Source
Apache-2.0
2,021
OpenStack-Stein
scottwedge
Python
Code
141
309
# Copyright 2017 AT&T Corporation. # 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...
46,223
https://github.com/yudsx0915/spring-boot-crud-jpa-h2/blob/master/src/main/java/com/corey/springbootcrudjpah2/service/UserService.java
Github Open Source
Open Source
MIT
null
spring-boot-crud-jpa-h2
yudsx0915
Java
Code
104
448
package com.corey.springbootcrudjpah2.service; import java.util.Date; import java.util.List; import com.corey.springbootcrudjpah2.dao.UserRepository; import com.corey.springbootcrudjpah2.entity.User; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Serv...
28,918
https://github.com/learning-layers/BitsAndPieces/blob/master/js/view/toolbar/ToolbarView.js
Github Open Source
Open Source
Apache-2.0
2,016
BitsAndPieces
learning-layers
JavaScript
Code
270
1,194
define(['logger', 'underscore', 'jquery', 'backbone', 'voc', 'view/toolbar/BitToolbarView', 'view/toolbar/SearchToolbarView', 'view/toolbar/EpisodeToolbarView', 'view/toolbar/ActivityStreamToolbarView', 'text!templates/toolbar/toolbar.tpl', 'jquery-ui'], function(Logger, _, $, Backbone, Voc, BitToolbarV...
9,522
https://github.com/justmelnyc/reaction/blob/master/src/Styleguide/Pages/Artist/Routes/CV/CVPaginationContainer.tsx
Github Open Source
Open Source
MIT
2,018
reaction
justmelnyc
TSX
Code
487
1,635
import { Sans, Serif } from "@artsy/palette" import { CVPaginationContainer_artist } from "__generated__/CVPaginationContainer_artist.graphql" import { groupBy } from "lodash" import React from "react" import styled from "styled-components" import { Box } from "Styleguide/Elements/Box" import { Flex } from "Styleguide/...
40,227
https://github.com/pedro-mgb/trajnetplusplustools/blob/master/trajnetplusplustools/visualize_type.py
Github Open Source
Open Source
MIT
2,022
trajnetplusplustools
pedro-mgb
Python
Code
814
3,026
import argparse import numpy as np from . import load_all from . import show from . import Reader from .interactions import non_linear, leader_follower, collision_avoidance, group from .interactions import check_interaction, interaction_length def interaction_plots(input_file, trajectory_type, interaction_type, args)...
20,203
https://github.com/ludwieg/kotlin/blob/master/ludwieg/src/main/java/io/vito/ludwieg/types/TypeStructBuffer.kt
Github Open Source
Open Source
MIT
null
kotlin
ludwieg
Kotlin
Code
61
233
package io.vito.ludwieg.types import io.vito.ludwieg.IllegalInvocationException import io.vito.ludwieg.LudwiegInternalType import io.vito.ludwieg.SerializationCandidate import io.vito.ludwieg.readSize import java.io.ByteArrayInputStream import java.io.ByteArrayOutputStream @LudwiegInternalType(ProtocolType.STRUCT) cl...
1,306
https://github.com/sumonchai/WaveApps-v1/blob/master/admin/billing/make-payment.php
Github Open Source
Open Source
MIT
2,019
WaveApps-v1
sumonchai
PHP
Code
425
1,796
<?php require_once($_SERVER['DOCUMENT_ROOT']."/assets/func/sqlQu.php"); $login->login_redir(); ?> <div id="info"></div> <p class="text-muted well well-sm no-shadow text-center" id="makepayinfo" style="margin-top: 10px;"></p> <form class="form-horizontal" id="form-account"> <div class="form-group"> <label class="c...
2,839
https://github.com/Vermonster/fhir-codegen/blob/master/src/Microsoft.Health.Fhir.SpecManager/Manager/ServerConnector.cs
Github Open Source
Open Source
MIT
2,022
fhir-codegen
Vermonster
C#
Code
371
1,180
// <copyright file="ServerConnector.cs" company="Microsoft Corporation"> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // </copyright> using System; using System.Collections.Generic; using System.Net.H...
38,382
https://github.com/ysmiles/leetcode-cpp/blob/master/501-600/518-Coin_Change_2-m.cpp
Github Open Source
Open Source
BSD-3-Clause
2,018
leetcode-cpp
ysmiles
C++
Code
416
929
// You are given coins of different denominations and a total amount of money. // Write a function to compute the number of combinations that make up that // amount. You may assume that you have infinite number of each kind of coin. // Note: You can assume that // 0 <= amount <= 5000 // 1 <= coin <= 5000 /...
13,119
https://github.com/hstern/fsi-dnsdb/blob/master/dnsdb/dnsdb.py
Github Open Source
Open Source
MIT
2,019
fsi-dnsdb
hstern
Python
Code
890
2,886
# -*- coding: utf-8 -*- """ Python client for Farsight Security's DNSDB API Farsight Security DNSDB is a database that stores and indexes both the passive DNS data available via Farsight Security's Security Information Exchange as well as the authoritative DNS data that various zone operators make available. DNSDB mak...
26,262
https://github.com/p2max34/YHPaaS/blob/master/YHPaaS/Classes/CMSPaaS.framework/Headers/UIImage+CMSColorShape.h
Github Open Source
Open Source
MIT
null
YHPaaS
p2max34
C
Code
183
843
// // UIImage+CMSColorShape.h // CMSPaaSBenchmark // // Created by symbio on 2020/11/24. // Copyright © 2020 CMS. All rights reserved. // #import <UIKit/UIKit.h> /// 三角形绘制方向 typedef enum : NSUInteger { CMSTriangleImageDirectionDecline, /// 向下 CMSTriangleImageDirectionUp, /// 向上 CMSTriangleImageDirecti...
19,163
https://github.com/pepellou/little-chomsky/blob/master/Tests/BasicConversationTest.php
Github Open Source
Open Source
MIT
null
little-chomsky
pepellou
PHP
Code
129
467
<?php declare(strict_types=1); use PHPUnit\Framework\TestCase; use Chomsky\Chomsky; final class BasicConversationTest extends TestCase { /** * @dataProvider stuffThatChomskyShouldNotUnderstand */ public function testShouldNotUnderstandSomeStuff($stuff): void { $this->assertEquals( ...
12,460
https://github.com/ElektraInitiative/libelektra/blob/master/src/tools/pythongen/CMakeLists.txt
Github Open Source
Open Source
BSD-3-Clause
2,023
libelektra
ElektraInitiative
CMake
Code
115
676
remove_tool (pythongen "Deprecated and will be removed soon") return () find_package (Python2Interp 2.7 QUIET) if (PYTHON2INTERP_FOUND) set (SETUP_PY ${CMAKE_CURRENT_BINARY_DIR}/setup.py) configure_file (setup.py.in ${SETUP_PY}) install ( CODE "execute_process(COMMAND ${PYTHON2_EXECUTABLE} \"${CMAKE_CURR...
22,297
https://github.com/coderdao/Generalutil/blob/master/src/V1/Utils/StringUtil.php
Github Open Source
Open Source
Apache-2.0
null
Generalutil
coderdao
PHP
Code
130
607
<?php /** * Function: 字符串工具类方法 * @method randonString( int $length = 8 ) 随机字母字符串 * @method randonNum( int $length = 6 ) 随机数组字符串 */ namespace Abo\Generalutil\V1\Utils; class StringUtil { // 随机字母字符串 public function randonString( $length = 8, $preffix = '' ) { return substr( md5( $preffix....
48,627
https://github.com/BlackHoleGames/Blackhole/blob/master/Assets/Prefabs/Boss/Boss_FullwReactorsFX.prefab
Github Open Source
Open Source
MIT
2,018
Blackhole
BlackHoleGames
Unity3D Asset
Code
20,000
64,311
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!1001 &100100000 Prefab: m_ObjectHideFlags: 1 serializedVersion: 2 m_Modification: m_TransformParent: {fileID: 0} m_Modifications: [] m_RemovedComponents: [] m_ParentPrefab: {fileID: 0} m_RootGameObject: {fileID: 1617136766997682} m_IsPrefabParent: 1 --- !u!1 &100153032414...
15,561
https://github.com/IndraSatya94/bolmongkab.dishub/blob/master/routes/web.php
Github Open Source
Open Source
MIT
2,021
bolmongkab.dishub
IndraSatya94
PHP
Code
118
1,244
<?php use Illuminate\Support\Facades\Route; use App\Http\Controllers\HomeController; use App\Http\Controllers\LoginController; use App\Http\Controllers\HalamanController; //crud //dishub use App\Http\Controllers\AgendaController; use App\Http\Controllers\TagController; use App\Http\Controllers\JabatanController; use ...
25,018
https://github.com/ch3ck/asana-rs/blob/master/src/models/webhook_response.rs
Github Open Source
Open Source
Apache-2.0
2,021
asana-rs
ch3ck
Rust
Code
314
837
/* * Asana * * This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/developer-docs/master/defs/asana_oas.yaml). * * The version of the OpenAPI document: 1.0 * * Generated by: ...
46,325
https://github.com/rbxxaxa/RopeMaster/blob/master/RopeMaster/Core/Components/App/RunningPage/Draw/Preview/ObjectDraggablePreview.lua
Github Open Source
Open Source
MIT
2,019
RopeMaster
rbxxaxa
Lua
Code
800
2,849
local Plugin = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent local Libs = Plugin.Libs local Roact = require(Libs.Roact) local Utility = require(Plugin.Core.Util.Utility) local Constants = require(Plugin.Core.Util.Constants) local ContextHelper = require(Plugin.Core.Util.ContextHelper) local withTheme = Con...
39,114