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/endRuz/fastapi_build_template/blob/master/template/service-name/app/middleware/time_middleware.py
Github Open Source
Open Source
MIT
2,022
fastapi_build_template
endRuz
Python
Code
32
105
#!/usr/bin/env python # coding:utf-8 import time from fastapi import Request async def add_process_time_header(request: Request, call_next): start_time = time.time() response = await call_next(request) process_time = time.time() - start_time response.headers["X-Process-Time"] = str(process_time) ...
40,100
https://github.com/RichardSiegel/ngx-chat/blob/master/projects/pazznetwork/ngx-chat/src/lib/components/chat-window-list/chat-window-list.component.ts
Github Open Source
Open Source
MIT
2,021
ngx-chat
RichardSiegel
TypeScript
Code
70
248
import { animate, state, style, transition, trigger } from '@angular/animations'; import { Component, Input } from '@angular/core'; import { ChatListStateService } from '../../services/chat-list-state.service'; @Component({ selector: 'ngx-chat-window-list', templateUrl: './chat-window-list.component.html', ...
42,140
https://github.com/jv9/CWWeChat/blob/master/CWWeChat/Expand/Extension/UIButton+Extensions.swift
Github Open Source
Open Source
MIT
2,016
CWWeChat
jv9
Swift
Code
110
480
// // UIButton+Extensions.swift // CWWeChat // // Created by chenwei on 16/6/26. // Copyright © 2016年 chenwei. All rights reserved. // import UIKit extension UIButton { public func setNormalImage(image: UIImage, highlighted hlimage: UIImage) { self.setImage(image, forState: .Normal) self.setIm...
31,879
https://github.com/RyanMacG/Asset-Manager/blob/master/app/controllers/assets_controller.rb
Github Open Source
Open Source
MIT
null
Asset-Manager
RyanMacG
Ruby
Code
138
554
# Handle asset actions class AssetsController < ApplicationController before_filter :signed_in_user before_filter :admin_user, only: [:edit, :update, :import] def create @asset = current_user.assets.build(asset_params) if @asset.save redirect_to root_path flash.now[:success] = 'Asset created!...
14,075
https://github.com/trchopan/hermes-nhavaxe/blob/master/projects/hermes/src/app/core/core.module.ts
Github Open Source
Open Source
MIT
null
hermes-nhavaxe
trchopan
TypeScript
Code
131
539
import { NgModule } from "@angular/core"; import { CommonModule } from "@angular/common"; import { PageNotFoundComponent } from "@app/app/core/containers/page-not-found/page-not-found.component"; import { Routes, RouterModule } from "@angular/router"; import { AppComponent } from "@app/app/core/containers/app/app.compo...
32,492
https://github.com/ml242/tectonic/blob/master/example/Makefile
Github Open Source
Open Source
MIT
2,022
tectonic
ml242
Makefile
Code
40
129
all: install server install: docker run --rm -ti \ -v $(shell pwd -P):/workspace \ tonyhb/node-yarn:7.2 yarn install server: docker run -ti --rm --name tectonic \ -v $(shell pwd -P):/workspace \ -p 8080:8080 \ -p 8081:8081 \ tonyhb/node-yarn:7.2 yarn run start
38,581
https://github.com/bitbybit3d/stepcode/blob/master/src/exp2cxx/selects.c
Github Open Source
Open Source
BSD-3-Clause
2,022
stepcode
bitbybit3d
C
Code
9,765
23,461
/** ** \file selects.c ** FedEx parser output module for generating C++ class definitions ** The functions in this file gener*ate C++ code for representing EXPRESS SELECT types. ** ** K. C. Morris ** ** Development of FedEx was funded by the United States Government, ** and is not subject to copyright. **************...
7,455
https://github.com/ohkrab/krab/blob/master/krabwasm/runtime.go
Github Open Source
Open Source
MIT
2,021
krab
ohkrab
Go
Code
99
326
package krabwasm import ( "fmt" "sync" "github.com/wasmerio/wasmer-go/wasmer" ) type Runtime struct { instances map[string]*webAssembly mutex sync.RWMutex store *wasmer.Store } func New() *Runtime { engine := wasmer.NewEngine() store := wasmer.NewStore(engine) return &Runtime{ instances: map[str...
2,810
https://github.com/itsukakotori77/Sistem-Manajemen-Aset-SMA/blob/master/app/Model/StockAset.php
Github Open Source
Open Source
MIT
2,021
Sistem-Manajemen-Aset-SMA
itsukakotori77
PHP
Code
39
136
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; class StockAset extends Model { // Atribut protected $table = 'stock_aset'; protected $primaryKey = 'ID_Stock'; protected $fillable = [ 'Aset_ID', 'Jumlah', 'Harga' ]; // Method public function ase...
30,144
https://github.com/Barakat2019/opensooq2020/blob/master/database/migrations/2019_12_04_231742_create_insurance_type.php
Github Open Source
Open Source
MIT
2,022
opensooq2020
Barakat2019
PHP
Code
53
215
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateInsuranceType extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('car_insurance_...
18,857
https://github.com/gergoerdi/tandoori/blob/master/input/class-cascade-simple.hs
Github Open Source
Open Source
BSD-3-Clause
2,021
tandoori
gergoerdi
Haskell
Code
29
55
undefined = undefined class Foo a forceFoo :: Foo a => a -> a forceFoo x = undefined testInherit x = forceFoo x lam = \x -> forceFoo x
35,757
https://github.com/claudioDcv/portafolio-jwt-oracle11g/blob/master/src/main/java/cl/safe/user/document/User.java
Github Open Source
Open Source
MIT
2,019
portafolio-jwt-oracle11g
claudioDcv
Java
Code
71
269
package cl.safe.user.document; import io.vavr.Tuple; import io.vavr.Tuple2; import io.vavr.Tuple3; import io.vavr.match.annotation.Patterns; import io.vavr.match.annotation.Unapply; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; im...
39,502
https://github.com/logconsole/LogConsole/blob/master/log-console-admin/src/main/java/info/logconsole/admin/controller/LogWatcherController.java
Github Open Source
Open Source
MIT
null
LogConsole
logconsole
Java
Code
73
365
package info.logconsole.admin.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.spring...
24,267
https://github.com/mattdanskey/lab/blob/master/src/base/_extends.scss
Github Open Source
Open Source
MIT
2,015
lab
mattdanskey
SCSS
Code
308
1,286
@import "./src/base/_mixins"; // ================= Core UNRENDERED app design elements: use "@extend %name;"" // a clear that doesn't hide overflow - from bourbon %cleared { @include clearfix(); } //default browser style lists %list--default { margin:q-var(type, gutter)/2 0; //<-replace with vars padding:0 0 0 ...
53,936
https://github.com/telkins/laravel-event-projector/blob/master/src/Console/Snapshots/ListSnapshotsCommand.php
Github Open Source
Open Source
MIT
null
laravel-event-projector
telkins
PHP
Code
95
385
<?php namespace Spatie\EventProjector\Console\Snapshots; use Illuminate\Console\Command; use Spatie\EventProjector\Snapshots\Snapshot; use Spatie\EventProjector\Snapshots\SnapshotRepository; class ListSnapshotsCommand extends Command { protected $signature = 'event-projector:list-snapshots'; protected $desc...
28,383
https://github.com/samwho/jarvis/blob/master/lib/jarvis/generators/scale.rb
Github Open Source
Open Source
MIT
2,019
jarvis
samwho
Ruby
Code
95
301
module Jarvis::Generators class Scale < NoteGenerator attr_accessor :speed, :octave def initialize @notes = Jarvis::Scale.c_major @pointer = 0 @speed = 1 @octave = 2 end def next note = Jarvis::Note.new @notes[@pointer] note.duration = Jarvis::Note.l...
17,820
https://github.com/tig/Tigger/blob/master/Microsoft/SAMPLES/xrttick/xrttic16.mak
Github Open Source
Open Source
MIT, Unlicense
2,021
Tigger
tig
Makefile
Code
436
2,683
# Microsoft Visual C++ generated build script - Do not modify PROJ = XRTTICK DEBUG = 0 PROGTYPE = 1 CALLER = e:\msvc\cdk16\bin\tstcon16.exe ARGS = DLLS = D_RCDEFINES = -d_DEBUG R_RCDEFINES = -dNDEBUG ORIGIN = MSVC ORIGIN_VER = 1.00 PROJPATH = Z:\OLE_IN~2\XRT\XRT_1.01\OLESAMP\XRTSAMP\XRTTICK\ USEMFC = 0 CC = cl CPP =...
32,292
https://github.com/upwork/java-upwork-oauth2/blob/master/example-maven/src/main/java/com/Upwork/test_api/App.java
Github Open Source
Open Source
Apache-2.0
2,020
java-upwork-oauth2
upwork
Java
Code
345
1,037
package com.Upwork.test_api; import com.Upwork.api.OAuthClient; import com.Upwork.api.Routers.Graphql; import com.Upwork.api.Routers.Organization.Users; import com.google.api.client.auth.oauth2.TokenResponse; import org.json.JSONException; import org.json.JSONObject; import java.util.Scanner; /** * Hello world! Tes...
21,219
https://github.com/qinghong1038/MedicationSchedulerSwift3.0/blob/master/Medication/DataModels/Nurse+CoreDataClass.swift
Github Open Source
Open Source
MIT
2,017
MedicationSchedulerSwift3.0
qinghong1038
Swift
Code
329
872
// // Nurse+CoreDataClass.swift // Medication // // Created by Devarshi Kulshreshtha on 9/9/16. // Copyright © 2016 Devarshi. All rights reserved. // import Foundation import CoreData enum CoreDataCustomErrorCodes: Int { case duplicateRecord = 801 case unableToSaveData = 999 var domain:String { ...
55,549
https://github.com/gurupras/dhwani_backend_p2p/blob/master/record/record.go
Github Open Source
Open Source
MIT
null
dhwani_backend_p2p
gurupras
Go
Code
106
397
package record import ( "bufio" "fmt" "os/exec" log "github.com/sirupsen/logrus" ) type recorder struct { cmdline string proc *exec.Cmd } func (r *recorder) Start() error { stdout, _ := r.proc.StdoutPipe() stderr, _ := r.proc.StderrPipe() go func() { log.Debugf("Start stdout reader\n") defer func() ...
21,401
https://github.com/JesseWright/aws-sdk-rust/blob/master/sdk/networkfirewall/src/input.rs
Github Open Source
Open Source
Apache-2.0
null
aws-sdk-rust
JesseWright
Rust
Code
20,000
62,438
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. use std::fmt::Write; /// See [`AssociateFirewallPolicyInput`](crate::input::AssociateFirewallPolicyInput) pub mod associate_firewall_policy_input { /// A builder for [`AssociateFirewallPolicyInput`](crate::input::AssociateFirewallPolicyInp...
6,850
https://github.com/wugenshui/demo-spring-boot/blob/master/test/src/test/java/com/github/wugenshui/baseutil/baseutil/bean/StudentVO.java
Github Open Source
Open Source
MIT
2,023
demo-spring-boot
wugenshui
Java
Code
105
359
package com.github.wugenshui.baseutil.baseutil.bean; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; import java.time.LocalDate; import java.time.LocalDateTime; import java.ut...
46,080
https://github.com/AAI-USZ/FixJS/blob/master/input/100+/before/f49503438846bfa380a9cbff0b0dffdc8416c1ed_5_4.js
Github Open Source
Open Source
MIT
2,022
FixJS
AAI-USZ
JavaScript
Code
184
513
function RegExpClass(runtime, scope, instance, baseClass) { function ASRegExp(pattern, flags) { function stripFlag(flags, c) { flags[flags.indexOf(c)] = flags[flags.length - 1]; return flags.substr(0, flags.length - 1); } if (flags) { var re; var extraProps = {}; ...
31,771
https://github.com/victorpantoja/scraper/blob/master/scraper/tests/profile.py
Github Open Source
Open Source
MIT
2,017
scraper
victorpantoja
Python
Code
102
385
# coding: utf-8 import unittest from bson.objectid import ObjectId from datetime import datetime from scraper.models.profile import Profile class TestProfile(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_save_profile(self): ''' Tests if ORM ...
3,442
https://github.com/cwilliams145/nmos-web-router/blob/master/src/ips-nmos-api/src/stub/generate/random.js
Github Open Source
Open Source
Apache-2.0
2,020
nmos-web-router
cwilliams145
JavaScript
Code
439
1,272
/** * Copyright 2019 British Broadcasting Corporation * * 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...
34,302
https://github.com/hermetique/Symbolica/blob/master/tests/Computation.Tests/ConstantUnsignedTests.cs
Github Open Source
Open Source
MIT
2,021
Symbolica
hermetique
C#
Code
1,473
6,411
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Numerics; using FluentAssertions; using Microsoft.Z3; using Symbolica.Collection; using Symbolica.Expression; using Xunit; namespace Symbolica.Computation { public class Co...
27,237
https://github.com/EduardoAlm/Digital-Signal-Processing-and-Data-pre--processing/blob/master/DFTmatrix.m
Github Open Source
Open Source
MIT
2,020
Digital-Signal-Processing-and-Data-pre--processing
EduardoAlm
MATLAB
Code
48
140
clear all, close all, clc n = 1024; w = exp(-i*2*pi/n); % The slowlier way of computing the DFT matrix % for i=1:n % for j=1:n % DFT[i,j]= w^((i-1)*(j-1)); % end % end % The faster way of solving it [I,J] = meshgrid(1:n, 1:n); DFT = w.^((I-1).*(J-1)); imagesc(real(DFT));
51,205
https://github.com/brunolauze/openpegasus-providers-old/blob/master/src/Providers/UNIXProviders/DiskSpaceCheck/UNIX_DiskSpaceCheck_VMS.hxx
Github Open Source
Open Source
MIT
2,020
openpegasus-providers-old
brunolauze
C++
Code
8
64
#ifdef PEGASUS_OS_VMS #ifndef __UNIX_DISKSPACECHECK_PRIVATE_H #define __UNIX_DISKSPACECHECK_PRIVATE_H #endif #endif
43,000
https://github.com/EssenceDigital/rmtattoo/blob/master/app/Http/Controllers/PortfolioArtistsController.php
Github Open Source
Open Source
MIT
null
rmtattoo
EssenceDigital
PHP
Code
274
817
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests\SaveArtist; use App\PortfolioArtist; class PortfolioArtistsController extends Controller { /** * Get all artists * * @return JSON Response */ public function all() { return PortfolioArtist::orderBy('created_at', 'd...
5,567
https://github.com/rezkypg/ajukan/blob/master/app/Http/routes.php
Github Open Source
Open Source
MIT
null
ajukan
rezkypg
PHP
Code
113
414
<?php /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond ...
49,994
https://github.com/cloudgrayau/pitch/blob/master/src/controllers/CssController.php
Github Open Source
Open Source
MIT
null
pitch
cloudgrayau
PHP
Code
422
1,624
<?php /** * Pitch plugin for Craft CMS 3.x * * On the go SCSS compiling, CSS/JS minifying, merging and caching. * * @link https://cloudgray.com.au/ * @copyright Copyright (c) 2020 Cloud Gray Pty Ltd */ namespace cloudgrayau\pitch\controllers; use cloudgrayau\pitch\Pitch; use cloudgrayau\pitch\models\Paths...
37,519
https://github.com/tapglue/snaas/blob/master/cmd/console/src/User/Model.elm
Github Open Source
Open Source
Apache-2.0
2,021
snaas
tapglue
null
Spoken
163
448
module User.Model exposing (User, decode, decodeList, encode, initUserSearchForm, initUserUpdateForm) import Json.Decode as Decode import Json.Encode as Encode import RemoteData exposing (RemoteData(Success), WebData) import Formo exposing (Form, initForm, updateElementValue, validatorExist, validatorMinLength) -- M...
5,316
https://github.com/Paulms/jFEMTools.jl/blob/master/src/FEM/basis.jl
Github Open Source
Open Source
MIT
2,020
jFEMTools.jl
Paulms
Julia
Code
1,577
5,733
abstract type Interpolation{shape,order} end """ Return the dimension of an `Interpolation` """ @inline getdim(ip::Interpolation{shape}) where {shape} = getdim(shape) """ Return the reference shape of an `Interpolation` """ @inline getrefshape(ip::Interpolation{shape}) where {shape} = shape """ Return the polynomial...
10,777
https://github.com/gheyret/pytorch_optimizer/blob/master/tests/test_chebyshev_schedule.py
Github Open Source
Open Source
Apache-2.0
2,022
pytorch_optimizer
gheyret
Python
Code
31
170
import numpy as np import pytest from pytorch_optimizer import get_chebyshev_schedule from pytorch_optimizer.chebyshev_schedule import chebyshev_perm def test_get_chebyshev_schedule(): np.testing.assert_almost_equal(get_chebyshev_schedule(3), 1.81818182, decimal=6) np.testing.assert_array_equal(chebyshev_per...
48,836
https://github.com/dalianwenhua/hanyupinyin/blob/master/app/src/main/java/com/ev4ngel/autofly_prj/WPStatus.java
Github Open Source
Open Source
Apache-2.0
null
hanyupinyin
dalianwenhua
Java
Code
137
361
package com.ev4ngel.autofly_prj; import org.json.JSONException; import org.json.JSONObject; import java.util.Date; /** * Created by Administrator on 2016/7/26. */ public class WPStatus { private String mName; private int mLastPos; private Long mTime; private boolean mStatus; public WPStatus(St...
20,052
https://github.com/ydanneg/valiktor/blob/master/valiktor-core/src/test/kotlin/org/valiktor/functions/EnumFunctionsTest.kt
Github Open Source
Open Source
Apache-2.0
2,022
valiktor
ydanneg
Kotlin
Code
666
2,155
/* * Copyright 2018-2020 https://www.valiktor.org * * 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...
11,621
https://github.com/Bellisa/angular_school/blob/master/HomeWork/maksim.dovgal/hw5/src/homework_5.ts
Github Open Source
Open Source
MIT
2,018
angular_school
Bellisa
TypeScript
Code
125
366
import { Observable, Subscription } from 'rxjs'; const observable: Observable<number> = new Observable(observer => { let counter = 0, arr: Array<number> = []; const int: number = setInterval(() => { console.log(`-----This is ${counter}------`); arr.push(counter); observer.next(...
45,834
https://github.com/coderius/yii2-advanced-starter/blob/master/common/config/main.php
Github Open Source
Open Source
2,023
yii2-advanced-starter
coderius
PHP
Code
256
994
<?php use yii\web\Request; $baseUrl = str_replace('/frontend/web', '', (new Request())->getBaseUrl()); $baseUrl = str_replace('/backend/web', '', $baseUrl); return [ 'aliases' => require(__DIR__.'/aliases.php'), 'name' => 'Masters site', 'language' => 'ru-RU', 'timeZone' => 'Europe/Kiev', 'vendor...
45,150
https://github.com/getbraincloud/examples-unity/blob/master/Authentication/Assets/App/Data/ExternalAuth/Nintendo.asset
Github Open Source
Open Source
Apache-2.0
2,023
examples-unity
getbraincloud
Unity3D Asset
Code
75
305
%YAML 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!114 &11400000 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 0} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 40f184cb06203...
21,347
https://github.com/ihumphrey-usgs/ISIS3_old/blob/master/isis/src/base/apps/svfilter/tsts/stddev/Makefile
Github Open Source
Open Source
Unlicense
2,022
ISIS3_old
ihumphrey-usgs
Makefile
Code
20
87
APPNAME = svfilter include $(ISISROOT)/make/isismake.tsts commands: $(APPNAME) from=$(INPUT)/isisTruth.cub \ to=$(OUTPUT)/svFilTruth2.cub \ filter=stddev \ samples= 21 \ lines= 31 > /dev/null;
46,208
https://github.com/f1rpo/Civ4CE/blob/master/Civ4/Assets/Python/EntryPoints/CvEventInterface.py
Github Open Source
Open Source
CNRI-Python
null
Civ4CE
f1rpo
Python
Code
101
235
# Sid Meier's Civilization 4 # Copyright Firaxis Games 2005 # # CvEventInterface.py # # These functions are App Entry Points from C++ # WARNING: These function names should not be changed # WARNING: These functions can not be placed into a class # # No other modules should import this # import CvUtil import CvEventMana...
28,914
https://github.com/paladini/Youtube-Transparent-Player/blob/master/src/js/options.js
Github Open Source
Open Source
MIT
2,015
Youtube-Transparent-Player
paladini
JavaScript
Code
52
187
// Compatibility reasons if (!chrome.runtime) { // Chrome 20-12 chrome.runtime = chrome.extension; } else if (!chrome.runtime.onMessage) { // Chrome 22-25 chrome.runtime.onMessage = chrome.extension.onMessage; chrome.runtime.sendMessage = chrome.extension.sendMessage; chrome.runtime.onConnect = chrome.e...
50,225
https://github.com/TomKeyte/Laravel-HTTP2-Push/blob/master/src/PushResource.php
Github Open Source
Open Source
MIT
2,021
Laravel-HTTP2-Push
TomKeyte
PHP
Code
301
817
<?php namespace TomKeyte\LaravelHttp2Push; class PushResource { /** * Resource URI */ private $src; /** * How long the resource push cookie should last (days) */ private $cookieExpires; /** * Type of resource */ private $type; /** * Class constructor. ...
41,726
https://github.com/emmanuelnwogbo/soundreact2/blob/master/src/components/OtherCards.jsx
Github Open Source
Open Source
MIT
null
soundreact2
emmanuelnwogbo
null
Spoken
23
72
import React from "react"; class OtherCards extends React.Component { constructor() { super(); } render() { return <div className="othercards">{this.props.renderCards()}</div>; } } export default OtherCards;
15,886
https://github.com/ca-risken/core/blob/master/pkg/model/finding.go
Github Open Source
Open Source
MIT
null
core
ca-risken
Go
Code
188
548
package model import "time" // Finding entity model type Finding struct { FindingID uint64 `gorm:"primary_key"` Description string DataSource string DataSourceID string ResourceName string ProjectID uint32 OriginalScore float32 Score float32 Data string CreatedAt time.Tim...
17,331
https://github.com/joe62/swzql/blob/master/Server/Trunk/models/ismatrixlogs.js
Github Open Source
Open Source
MIT
null
swzql
joe62
JavaScript
Code
60
237
/* jshint indent: 1 */ module.exports = function(sequelize, DataTypes) { return sequelize.define('ISMatrixLogs', { ID: { type: DataTypes.INTEGER(11), allowNull: false, primaryKey: true, autoIncrement: true }, DeviceID: { type: DataTypes.INTEGER(11), allowNull: false }, ChannelID: { type...
20,868
https://github.com/liujizhao/wechaty-web-panel/blob/master/src/lib/index.js
Github Open Source
Open Source
MIT
2,021
wechaty-web-panel
liujizhao
JavaScript
Code
2,875
7,966
const Crypto = require('crypto') const schedule = require('node-schedule') const fs = require('fs') const { MCanvas, MImage } = require('mcanvas') const { addRoom, getRoom } = require('../common/roomAvatarDb') /** * 设置定时器 * @param {*} date 日期 * @param {*} callback 回调 */ //其他规则见 https://www.npmjs.com/package/node-s...
53,449
https://github.com/yavuzalikorkut/olanalyze/blob/master/app.py
Github Open Source
Open Source
MIT
2,020
olanalyze
yavuzalikorkut
Python
Code
89
381
from flask import Flask, render_template # from flask.ext.babel import Babel app = Flask(__name__) # app.secret_key = "Flask_File_Upload_Example" # babel = Babel(app) # Load default config and override config from an environment variable app.config.update(dict( SECRET_KEY='Flask_File_Upload_Example', LANGUAGE...
4,060
https://github.com/zhangkn/iOS14Header/blob/master/System/Library/PrivateFrameworks/MetalTools.framework/MTLDebugDepthStencilState.h
Github Open Source
Open Source
MIT
2,020
iOS14Header
zhangkn
C
Code
103
375
/* * This header is generated by classdump-dyld 1.0 * on Monday, September 28, 2020 at 5:58:37 PM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/MetalTool...
1,194
https://github.com/mythgard-hub/mythgard-hub/blob/master/postgres/migrations/migration-1.11.0.sql
Github Open Source
Open Source
Apache-2.0
2,020
mythgard-hub
mythgard-hub
SQL
Code
1,312
3,889
create or replace function mythgard.search_decks_nosort( deckName varchar(255), authorName varchar(255), deckModified date, card1 integer, card2 Integer, card3 Integer, card4 Integer, card5 Integer, faction1 integer, faction2 integer, faction3 integer, faction4 integer, faction5 integer, fac...
27,894
https://github.com/ahinrichs/android-squeezer/blob/master/Squeezer/src/main/java/uk/org/ngo/squeezer/itemlist/MusicFolderView.java
Github Open Source
Open Source
Apache-2.0
2,021
android-squeezer
ahinrichs
Java
Code
412
1,399
/* * Copyright (c) 2012 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
22,472
https://github.com/Yannic/chromium/blob/master/ash/assistant/ui/assistant_web_container_view.h
Github Open Source
Open Source
BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause
2,022
chromium
Yannic
C
Code
178
658
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ASH_ASSISTANT_UI_ASSISTANT_WEB_CONTAINER_VIEW_H_ #define ASH_ASSISTANT_UI_ASSISTANT_WEB_CONTAINER_VIEW_H_ #include "ash/public/cpp/assistant/assi...
51,648
https://github.com/mfranzil-unitn/unitn-m-st/blob/master/optional-overflow-exercises/integer_overflow_python.py
Github Open Source
Open Source
MIT
2,021
unitn-m-st
mfranzil-unitn
Python
Code
158
446
import matplotlib.pyplot as plt import numpy as np import pandas as pd """ we consider a list of integers going from 2^0 to 2^159, and we use sys.getsizeof to inspect how many bytes are actually used to store the integer """ import sys int_sizes = {} for i in range(160): int_sizes[i] = sys.getsizeof(2 ** i) int_si...
3,698
https://github.com/dreadedsoftware/VueJS_Demo2021/blob/master/init.test.js
Github Open Source
Open Source
MIT
2,021
VueJS_Demo2021
dreadedsoftware
JavaScript
Code
135
464
const init = require('./init'); test('html builder: script', () => { (new Array(10)).forEach(() => { var a = randomString(); expect(init.script(a)).toBe('<script src="' + a + '"></script>'); }); }); test('html builder: script init contains base', () => { expect(init.scripts_initial().startsWith(init.scr...
26,377
https://github.com/anhtrung87vn/ue-ran-sim/blob/master/src/lib/rlc/utils.cpp
Github Open Source
Open Source
LicenseRef-scancode-proprietary-license, GPL-3.0-only
2,023
ue-ran-sim
anhtrung87vn
C++
Code
70
157
// // This file is a part of UERANSIM open source project. // Copyright (c) 2021 ALİ GÜNGÖR. // // The software and all associated files are licensed under GPL-3.0 // and subject to the terms and conditions defined in LICENSE file. // #include "utils.hpp" #include "encoder.hpp" int rlc::StatusPdu::calculatedSize(bool...
35,991
https://github.com/jaysonpulga/vip/blob/master/app/Http/Controllers/frontend/SendEmailController.php
Github Open Source
Open Source
MIT
2,020
vip
jaysonpulga
PHP
Code
1,513
6,919
<?php namespace App\Http\Controllers\frontend; use App\Http\Controllers\Controller; use App\Model\frontend\user_notifications; use App\Model\offer_images; use App\Model\offer_settings; use App\Model\frontend\user_mailboxes; use App\Model\frontend\users_offer_4_submit_tracking_numbers; use App\Model\frontend\users_of...
21,303
https://github.com/fengjiajie/mina-sshd/blob/master/sshd-core/src/test/java/org/apache/sshd/common/channel/WindowTest.java
Github Open Source
Open Source
ECL-2.0, Apache-2.0
null
mina-sshd
fengjiajie
Java
Code
1,070
3,901
/* * 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 ma...
47,743
https://github.com/viccsneto/aztec/blob/master/Documentation/html/search/files_6.js
Github Open Source
Open Source
MIT
null
aztec
viccsneto
JavaScript
Code
14
363
var searchData= [ ['gamecanvas_2ecpp',['GameCanvas.cpp',['../_game_canvas_8cpp.html',1,'']]], ['gamecanvas_2eh',['GameCanvas.h',['../_game_canvas_8h.html',1,'']]], ['gameengine_2ecpp',['GameEngine.cpp',['../_game_engine_8cpp.html',1,'']]], ['gameengine_2eh',['GameEngine.h',['../_game_engine_8h.html',1,'']]], ...
50,212
https://github.com/alfiza-shaikh/miniProject/blob/master/app/database/uploadsdb.py
Github Open Source
Open Source
FTL
null
miniProject
alfiza-shaikh
Python
Code
170
714
from database.conn import execute def getAllFolders(email): data=execute("SELECT folder_name FROM folders WHERE user_email='"+email+"'") if data: return data return None def createFolderDB(folderName,email): created=execute("INSERT INTO folders (folder_name,user_email) values('"+folderName+"'...
12,353
https://github.com/FrankEinshtain/lera-bird/blob/master/src/styles/abstract/_mixins.scss
Github Open Source
Open Source
0BSD
2,021
lera-bird
FrankEinshtain
SCSS
Code
71
241
@mixin spacing($margin: 0, $padding: 0) { margin: $margin; padding: $padding; } @mixin bold-title { font-family: $font-global; font-style: normal; font-weight: $font-bold; } @mixin xs { @media (max-width: #{$screen-xs}) { @content; } } @mixin sm { @media (max-width: #{$screen-sm}) { @content;...
56,254
https://github.com/Moxa-Linux/moxa-led-control/blob/master/include/Makefile.am
Github Open Source
Open Source
Apache-2.0
2,019
moxa-led-control
Moxa-Linux
Makefile
Code
3
13
include_HEADERS = mx_led.h
22,965
https://github.com/rhildred/rhildred.github.io.20170718/blob/master/lib/classes/controllers/AbstractController.php
Github Open Source
Open Source
MIT
null
rhildred.github.io.20170718
rhildred
PHP
Code
17
46
<?php /** * @package api-framework * @author Martin Bean <martin@martinbean.co.uk> * @abstract */ abstract class AbstractController {}
32,357
https://github.com/bambit/TabMigrate/blob/master/TabMigrate.Core/ServerData/SiteInfo.cs
Github Open Source
Open Source
MIT, LicenseRef-scancode-warranty-disclaimer
2,020
TabMigrate
bambit
C#
Code
95
265
using System; using System.Collections.Generic; using System.Text; using System.Xml; /// <summary> /// Information about a Site in Server /// </summary> class SiteinfoSite { public readonly string Id; public readonly string Name; public readonly string ContentUrl; public readonly string AdminMode; ...
29,002
https://github.com/vietnam-devs/coolstore-microservices/blob/master/src/dotnet/api-gateway/Middleware/GatewayPipeline.cs
Github Open Source
Open Source
MIT
2,022
coolstore-microservices
vietnam-devs
C#
Code
230
866
using System.Text; using Gateway.Config; using Gateway.Services; namespace Gateway.Middleware; public static class GatewayPipeline { private static bool IsExpired(HttpContext ctx) { var expiresAt = Convert.ToInt64(ctx.Session.GetString(SessionKeys.ExpiresAt)) - 30; var now = new DateTimeOffset...
11,472
https://github.com/max-plutonium/concurrent-utils/blob/master/src/tests/benchmark.h
Github Open Source
Open Source
X11
null
concurrent-utils
max-plutonium
C
Code
311
658
/* * Copyright (C) 2014-2015 Max Plutonium <plutonium.max@gmail.com> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * Software"), to deal in the Software without restriction, including * without limitation the rights to u...
39,088
https://github.com/shevtsiv/tax/blob/master/protocol/src/main/java/me/shevtsiv/tax/proto/dto/House.java
Github Open Source
Open Source
MIT
null
tax
shevtsiv
Java
Code
32
119
package me.shevtsiv.tax.proto.dto; import com.fasterxml.jackson.annotation.JsonTypeName; import lombok.Getter; import lombok.NoArgsConstructor; @Getter @NoArgsConstructor @JsonTypeName("house") public class House extends Property { private int roomsAmount; public House(double price, int roomsAmount) { ...
17,412
https://github.com/dotnet/runtime/blob/master/src/coreclr/tools/Common/JitInterface/CorInfoInstructionSet.cs
Github Open Source
Open Source
MIT
2,023
runtime
dotnet
C#
Code
4,243
29,355
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // DO NOT EDIT THIS FILE! IT IS AUTOGENERATED // FROM /src/coreclr/tools/Common/JitInterface/ThunkGenerator/InstructionSetDesc.txt // using /src/coreclr/tools/Common/JitInterface/Thu...
34,615
https://github.com/GIGI-42/ing-sw-2021-laconca-lodari-giaccaglia-master/blob/master/src/main/java/it/polimi/ingsw/client/view/cli/layout/recursivelist/RecursiveList.java
Github Open Source
Open Source
MIT
2,022
ing-sw-2021-laconca-lodari-giaccaglia-master
GIGI-42
Java
Code
241
1,024
package it.polimi.ingsw.client.view.cli.layout.recursivelist; import it.polimi.ingsw.client.view.cli.CLI; import it.polimi.ingsw.client.view.cli.layout.GridElem; import it.polimi.ingsw.client.view.cli.layout.Option; import java.util.ArrayList; import java.util.List; import java.util.Optional; import java.util.stream....
26,087
https://github.com/Rutrus/realfund-crowdfunding-website/blob/master/_php-files/footer.php
Github Open Source
Open Source
MIT
2,019
realfund-crowdfunding-website
Rutrus
Hack
Code
224
1,088
<footer id="footer"> <div class="container_12 main-footer"> <div class="grid_3 about-us"> <h3 class="rs title">Sobre nosotros</h3> <p class="rs description">Real Fund es la empresa líder en tokenización de activos inmobiliarios</p> <p class="rs email">...
27,571
https://github.com/huuzkee-foundation/i18n4go/blob/master/test_fixtures/rewrite_package/init_code_snippet_filename/expected_output/issue14.go
Github Open Source
Open Source
MIT
2,022
i18n4go
huuzkee-foundation
Go
Code
19
61
package input_files import ( "fmt" "os" "path/filepath" ) func Issue14() string { someString := T("hello issue 14") fmt.Println(someString) }
3,894
https://github.com/djwhitten/eHMP/blob/master/chef-repo/project_cookbooks/vxsync/metadata.rb
Github Open Source
Open Source
Apache-2.0
2,020
eHMP
djwhitten
Ruby
Code
68
332
name "vxsync" maintainer "Vistacore" maintainer_email "vistacore@vistacore.us" license "All rights reserved" description "Installs/Configures vxsync" long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) version "2.233.60" supports "mac_os_x" supports "centos" depend...
24,701
https://github.com/ghollingworth/libedgetpu/blob/master/coral_accelerator_windows/coral.man
Github Open Source
Open Source
Apache-2.0
2,022
libedgetpu
ghollingworth
null
Spoken
99
502
<!-- <?xml version="1.0" encoding="UTF-16"?> --> <instrumentationManifest xmlns="http://schemas.microsoft.com/win/2004/08/events" xmlns:win="https://manifests.microsoft.com/win/2004/08/windows/events" xmlns:xs="https://www.w3.org/2001/XMLSchema" > <instrumentation> <counters xmlns="http://schemas.micros...
41,690
https://github.com/chang-liang/HadoopBNEM/blob/master/param_sharing/net_to_fg/plot_output.py
Github Open Source
Open Source
BSD-2-Clause
null
HadoopBNEM
chang-liang
Python
Code
128
431
#plot_output.py import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import numpy as np import sys if len(sys.argv) < 4: print "Usage: python plotOutput.py data_file_to_plot output_file.png plot's_title" exit() print "Plotting data from", sys.argv[1] f = open(sys.argv[1], 'r') outfile = ...
49,576
https://github.com/piouhassan/CSMS/blob/master/app/src/main/java/com/togo/c_sms/Adapters/SingleContactAdapter.java
Github Open Source
Open Source
MIT
2,019
CSMS
piouhassan
Java
Code
417
1,801
package com.togo.c_sms.Adapters; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageVi...
6,392
https://github.com/ynoza/Picster/blob/master/src/app/gallery/gallery.component.ts
Github Open Source
Open Source
MIT
null
Picster
ynoza
TypeScript
Code
116
392
import { HttpClient, HttpParams } from '@angular/common/http'; import { Component, OnInit } from '@angular/core'; import { FormBuilder } from '@angular/forms'; import { User } from '@app/_models'; import { AccountService } from '@app/_services'; import { IMasonryGalleryImage } from 'ngx-masonry-gallery'; import { envir...
32,359
https://github.com/groydis/G-Demo/blob/master/src/models/index.ts
Github Open Source
Open Source
MIT
null
G-Demo
groydis
TypeScript
Code
48
108
import { UserModel } from './users' import { SubscriberModel } from './subscribers' import { GameModel } from './games' import { UserDALModel } from './users/dal' import { SubscriberDALModel } from './subscribers/dal' export const userModel = new UserModel(UserDALModel) export const subscriberModel = new SubscriberMo...
21,967
https://github.com/isabella232/cookstylist/blob/master/cookstylist.gemspec
Github Open Source
Open Source
Apache-2.0
2,020
cookstylist
isabella232
Ruby
Code
94
434
Gem::Specification.new do |s| s.name = "cookstylist" s.version = "0.1.0" s.summary = "A Github App to autocorrect repositories with Cookstyle" s.description = s.summary s.authors = ["Tim Smith"] s.email = "tsmith@chef.io" s.homepage = "http://www.github.com/chef/cookstylist" ...
38,413
https://github.com/satya-p91/kwamp/blob/master/kwamp-test-conversations-core/src/main/kotlin/com/laurencegarmstrong/kwamp/conversations/core/Conversation.kt
Github Open Source
Open Source
MIT
2,021
kwamp
satya-p91
Kotlin
Code
79
323
package com.laurencegarmstrong.kwamp.conversations.core import com.laurencegarmstrong.kwamp.core.Connection import com.laurencegarmstrong.kwamp.core.messages.Message import com.laurencegarmstrong.kwamp.core.serialization.MessageSerializer import com.laurencegarmstrong.kwamp.core.serialization.json.JsonMessageSerialize...
17,987
https://github.com/gustavoleitao/Easy-Cassandra/blob/master/src/main/java/org/easycassandra/persistence/cassandra/spring/SimpleCassandraTemplateImpl.java
Github Open Source
Open Source
Apache-2.0
2,021
Easy-Cassandra
gustavoleitao
Java
Code
833
2,695
/* * Copyright 2013 Otávio Gonçalves de Santana (otaviojava) * 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 applicab...
34,379
https://github.com/marco-c/gecko-dev-wordified/blob/master/browser/components/downloads/test/browser/browser_about_downloads.js
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, CC0-1.0
2,023
gecko-dev-wordified
marco-c
JavaScript
Code
320
720
/ * Any copyright is dedicated to the Public Domain . http : / / creativecommons . org / publicdomain / zero / 1 . 0 / * / " use strict " ; / * * * Ensure about : downloads actually works . * / add_task ( async function test_about_downloads ( ) { await task_resetState ( ) ; registerCleanupFunction ( task_resetState ) ;...
55,888
https://github.com/nvanselow/safety-skills/blob/master/com/views/OrderGame.as
Github Open Source
Open Source
MIT
null
safety-skills
nvanselow
null
Spoken
471
2,366
package com.views { import flash.display.MovieClip; import flash.events.Event; import flash.events.MouseEvent; import flash.filesystem.File; import com.ui.games.OrderArray; import com.MyVideo; public class OrderGame extends MovieClip { private var _trialArray:Array; private var _trial:int; private var...
21,841
https://github.com/marpies/gameanalytics-ane/blob/master/actionscript/src/com/marpies/ane/gameanalytics/GameAnalyticsConfig.as
Github Open Source
Open Source
Apache-2.0
2,017
gameanalytics-ane
marpies
null
Spoken
678
1,858
/** * Copyright 2016 Marcel Piestansky (http://marpies.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-2.0 * * Unless required by appl...
3,782
https://github.com/mgschwan/Ferienhaus-in-Florida/blob/master/js/gamefunctions.js
Github Open Source
Open Source
Apache-2.0
2,014
Ferienhaus-in-Florida
mgschwan
JavaScript
Code
63
189
function scaleToFit(image, width, height) { var bounds = image.getBounds(); if (bounds.width != width || bounds.height != height) { var xscale = width/bounds.width; var yscale = height/bounds.height; image.setTransform(0,0,xscale,yscale); } return image; } shuffleArray = function...
55,010
https://github.com/dzungnv02/intern-ems/blob/master/app/Http/Controllers/InvoiceController.php
Github Open Source
Open Source
Apache-2.0
null
intern-ems
dzungnv02
PHP
Code
1,516
5,471
<?php namespace App\Http\Controllers; use App\Branch; use App\Classes; use App\Invoice; use App\Mail\InvoicePrinted; use App\Parents; use App\Student; use App\StudentClass; use App\User; use Exception; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Log; use Illuminate...
43,484
https://github.com/r569594043/ProgramingRubyReadingNotes/blob/master/spider.rb
Github Open Source
Open Source
Apache-2.0
2,014
ProgramingRubyReadingNotes
r569594043
Ruby
Code
322
1,837
require 'open-uri' require 'thread' Mutex # run it like this : # ruby Crawl.rb 2 1000 http://www-cs.stanford.edu/People # regexp $link_regexp = /href\=\"[^\"]*\"/ $email_regexp_1 = /mailto\:[^\@]*\@[^\"]*[\"]/ #mailto:xx@xxxx" $email_regexp_2 = /[\>][^\<]*\@[^\>]*[\<]/ #>xx@xx< $before_at...
7,544
https://github.com/wenxinjie/leetcode/blob/master/array/python/leetcode228_Summary_Ranges.py
Github Open Source
Open Source
Apache-2.0
null
leetcode
wenxinjie
Python
Code
187
605
# Given a sorted integer array without duplicates, return the summary of its ranges. # Example 1: # Input: [0,1,2,4,5,7] # Output: ["0->2","4->5","7"] # Explanation: 0,1,2 form a continuous range; 4,5 form a continuous range. # Example 2: # Input: [0,2,3,4,6,8,9] # Output: ["0","2->4","6","8->9"] # Explanation: 2,...
35,933
https://github.com/glowkeeper/mccs-alpha/blob/master/internal/pkg/helper/trading.go
Github Open Source
Open Source
MIT
2,020
mccs-alpha
glowkeeper
Go
Code
197
817
package helper import ( "net/http" "strconv" "github.com/ic3network/mccs-alpha/internal/app/types" ) type trading struct{} var Trading = &trading{} func (t *trading) GetRegisterData(r *http.Request) *types.TradingRegisterData { turnover, _ := strconv.Atoi(r.FormValue("turnover")) return &types.TradingRegister...
27,846
https://github.com/freddiewanah/UIautoTest/blob/master/droidbot-master/data/packages/com.simpler.contacts/smali/com/google/android/gms/internal/firebase_remote_config/zzk.smali
Github Open Source
Open Source
MIT
2,019
UIautoTest
freddiewanah
Smali
Code
190
1,606
.class public Lcom/google/android/gms/internal/firebase_remote_config/zzk; .super Lcom/google/android/gms/internal/firebase_remote_config/zzd$zza; # direct methods .method protected constructor <init>(Lcom/google/android/gms/internal/firebase_remote_config/zzag;Lcom/google/android/gms/internal/firebase_remote_config/...
40,210
https://github.com/baipao123/newlt/blob/master/backend/baipao123/layuiAdm/widgets/formWidgets/ImgList.php
Github Open Source
Open Source
BSD-3-Clause
null
newlt
baipao123
PHP
Code
74
272
<?php /** * Created by PhpStorm. * User: huangchen * Date: 2018/7/20 * Time: 下午8:40 */ namespace layuiAdm\widgets\formWidgets; use layuiAdm\widgets\QiNiuUploaderWidget; class ImgList extends QiNiuUploaderWidget { public $name; public $value; public function run() { return $this->renderFil...
30,420
https://github.com/alanzhang88/OJ/blob/master/client/js/libs/marker.js
Github Open Source
Open Source
MIT
2,017
OJ
alanzhang88
JavaScript
Code
223
661
// marker //thanks to https://stackoverflow.com/questions/24807066/multiple-cursors-in-ace-editor define(function (require, exports, module) { var marker = {}; marker.cursors = [];//{row: 1, column: 10, id:"asdasdasd"} marker.update = function(html, markerLayer, session, config) { var start = config.firstRow, end =...
53,606
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/api_def/java_api/api_def_WriteAudioSummary.pbtxt
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-generic-cla, BSD-2-Clause
2,023
tensorflow
tensorflow
Protocol Buffer Text Format
Code
10
37
op { graph_op_name: "WriteAudioSummary" endpoint { name: "summary.WriteAudioSummary" } }
13,780
https://github.com/davidainslie/java-kissthinker/blob/master/src/test/java/com/kissthinker/coder/Bean.java
Github Open Source
Open Source
MIT
null
java-kissthinker
davidainslie
Java
Code
360
988
package com.kissthinker.coder; import java.io.Serializable; import java.util.*; import static com.kissthinker.collection.set.SetUtil.hashSet; /** * @author David Ainslie * */ public class Bean implements Serializable { /** */ private static final long serialVersionUID = 1L; /** */ private String i...
57,209
https://github.com/CharlieScarver/Emotion/blob/master/EmotionCore/Embedded/Shaders/DefaultVert.glsl
Github Open Source
Open Source
MIT
2,018
Emotion
CharlieScarver
GLSL
Code
89
178
#version 300 es uniform mat4 projectionMatrix; uniform mat4 viewMatrix; uniform mat4 modelMatrix; uniform float time; layout (location = 0) in vec3 vertPos; layout (location = 1) in vec2 uv; layout (location = 2) in float tid; layout (location = 3) in vec4 color; // Goes to the frag shader. out vec2 UV; out vec4 ver...
2,461
https://github.com/touchcast/silverstripe-modulator/blob/master/_config.php
Github Open Source
Open Source
MIT
null
silverstripe-modulator
touchcast
PHP
Code
3
18
<?php define('MODULATOR_PATH', 'modulator');
32,524
https://github.com/cire831/prod/blob/master/tos/chips/msp430/msp430regtypes.h
Github Open Source
Open Source
BSD-3-Clause
2,021
prod
cire831
C
Code
3,286
13,189
/** * Copyright (c) 2011, 2014, 2016 Eric B. Decker * Copyright (c) 2009 DEXMA SENSORS SL * Copyright (c) 2000-2003 The Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the followin...
15,586
https://github.com/AlexandrBasan/AlexBasanPortfolioWebsite/blob/master/config/routes.rb
Github Open Source
Open Source
MIT
2,016
AlexBasanPortfolioWebsite
AlexandrBasan
Ruby
Code
97
384
SampleApp::Application.routes.draw do #resources :contacts resources :newsletters # http://guides.rubyonrails.org/i18n.html scope "/:locale" do end get '/blogs_:content_type' => 'blogs#index', as: 'blogs_content_type' resources :users resources :sessions, only: [:new, :create, :destroy] resou...
17,601
https://github.com/realartists/shiphub-cocoa/blob/master/ShipHub/CAExtras.m
Github Open Source
Open Source
MIT
2,018
shiphub-cocoa
realartists
Objective-C
Code
82
250
// // CAExtras.m // ShipHub // // Created by James Howard on 3/8/16. // Copyright © 2016 Real Artists, Inc. All rights reserved. // #import "CAExtras.h" @interface AnimationCompleter : NSObject @property (nonatomic, copy) void (^completion)(BOOL finished); @end @implementation AnimationCompleter - (void)anima...
30,979
https://github.com/llgava/minecraft-bedrock-schemas/blob/master/__tests__/UUID.test.ts
Github Open Source
Open Source
MIT
null
minecraft-bedrock-schemas
llgava
TypeScript
Code
27
168
import faker from '@faker-js/faker'; describe('UUID', () => { it('should be a valid UUID', () => { const pattern = new RegExp( '^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12}$' ); expect(faker.datatype.uuid()).toMatch(pattern); expect(faker.datatype.strin...
21,013
https://github.com/rekcurd/dashboard/blob/master/frontend/src/components/App/Kubernetes/Hosts/index.tsx
Github Open Source
Open Source
Apache-2.0
2,021
dashboard
rekcurd
TypeScript
Code
748
2,825
import * as React from 'react' import { connect } from 'react-redux' import { withRouter, RouteComponentProps, Link } from 'react-router-dom' import { Breadcrumb, BreadcrumbItem, Row, Col, Table, Button, Tooltip, Modal, ModalBody, ModalHeader } from 'reactstrap' import { APIRequestResultsRenderer } from '@common/APIRe...
46,815
https://github.com/Pietahr/BP-VR-projects/blob/master/A-Frame/bp-scene/assets/pickle_rick.obj
Github Open Source
Open Source
MIT
2,018
BP-VR-projects
Pietahr
Wavefront Object
Code
20,000
74,522
# 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware # File Created: 23.07.2017 02:43:05 mtllib pickle_rick.mtl # # object Box001 # v 20.5060 33.0888 20.1366 v 21.0139 33.1997 20.4554 v 20.9809 34.0284 20.3353 v 20.5390 33.9319 20.0548 v 21.6233 33.3326 20.6160 v 21.5111 34.1441 20.4762 v 21.4072 34.8949 20.3251 ...
22,173