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/calavera/mcclimate/blob/master/test/mcclimate/compare/reporter/compared_basic_test.rb
Github Open Source
Open Source
MIT
2,015
mcclimate
calavera
Ruby
Code
83
344
require "test_helper" class ComparedBasicTest < Minitest::Test def setup @reporter = McClimate::Reporter::ComparedBasic.new end def test_report_new_score @reporter.report_new_score("foo.rb", "#bar", 3) report = {"foo.rb" => {"#bar" => [3]}} assert_equal report, @reporter.report[:new] end d...
50,000
https://github.com/smithedwin201/SmartBand/blob/master/app/src/main/java/com/test/smartband/activity/TodaySportActivity.java
Github Open Source
Open Source
Apache-2.0
null
SmartBand
smithedwin201
Java
Code
57
233
package com.test.smartband.activity; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.ImageView; import com.test.smartband.R; public class TodaySportActivity extends AppCompatActivity { private ImageView backImage; @Override prot...
28,760
https://github.com/PlantandFoodResearch/irods/blob/master/iRODS/clients/icommands/test/rules3.0/ruleintegrityAVU.r
Github Open Source
Open Source
BSD-3-Clause
2,019
irods
PlantandFoodResearch
R
Code
155
569
integrityAVU { #Input parameter is: # Name of collection that will be checked # Attribute name whose presence will be verified #Output is: # List of all files in the collection that are missing the attribute #Verify that input path is a collection msiIsColl(*Coll,*Result, *Status); if(*Result == 0) { writ...
33,499
https://github.com/crispab/codekvast/blob/master/product/server/common/src/test/java/io/codekvast/common/logging/LoggingUtilsTest.kt
Github Open Source
Open Source
MIT
2,022
codekvast
crispab
Kotlin
Code
117
508
package io.codekvast.common.logging import io.codekvast.common.logging.LoggingUtils.humanReadableByteCount import io.codekvast.common.logging.LoggingUtils.humanReadableDuration import org.junit.jupiter.api.AfterEach import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.params.ParameterizedTest import org.ju...
49,707
https://github.com/vituhugo/forum/blob/master/app/Module.php
Github Open Source
Open Source
MIT
null
forum
vituhugo
PHP
Code
44
158
<?php namespace App; use App\Observers\ModuleObserver; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Str; class Module extends Model { protected $fillable = ['name']; public function subjects() { return $this->hasMany(Subject::class); } ...
10,795
https://github.com/SolonAuthpaper/HiQ-Robust-and-Fast-Decoding-of-High-Capacity-Color-QR-Codes/blob/master/Authpaper-B&W/AuthBarcodeScanner/src/edu/cuhk/ie/authbarcodescanner/android/history/HistoryDbHelper.java
Github Open Source
Open Source
Apache-2.0
null
HiQ-Robust-and-Fast-Decoding-of-High-Capacity-Color-QR-Codes
SolonAuthpaper
Java
Code
692
2,780
/* Copyright (C) 2014 Solon Li */ package edu.cuhk.ie.authbarcodescanner.android.history; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteDatabase.CursorFactory; import android.d...
28,225
https://github.com/alienworks/state-of-neo-server/blob/master/StateOfNeo/StateOfNeo.Data/Migrations/20180616183930_Initial.Designer.cs
Github Open Source
Open Source
MIT
2,020
state-of-neo-server
alienworks
C#
Code
212
1,569
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using StateOfNeo.Data; namespace State...
25,746
https://github.com/CccZss/Album/blob/master/project/src/components/home/myUpload.vue
Github Open Source
Open Source
MIT
null
Album
CccZss
Vue
Code
172
666
<template> <div class="wrap"> <ul class="menu"> <li @click="addAlbumHandel"><Icon type="ios-folder"></Icon> 新建相册</li> </ul> <div class="album-wrap"> <albumItem v-for="item in albumList" :key="item.albumId" :albumInfo="item" ></albumItem> </div> <Modal v-mo...
51,123
https://github.com/tobykurien/Ruby101/blob/master/exercises/exercise2.rb
Github Open Source
Open Source
MIT
2,021
Ruby101
tobykurien
Ruby
Code
113
251
# Add functionality to numbers and time # Time works on seconds for arthimetic module NumExtras def days self * 60 * 60 * 24 end def weeks days * 7 end def months days * 30 end def years days * 365.25 end def ago Time.new - self end def from_now Time.new + sel...
35,607
https://github.com/sergv/alex/blob/master/src/Data/Ranged/RangedSet.hs
Github Open Source
Open Source
2,023
alex
sergv
Haskell
Code
1,109
2,373
module Data.Ranged.RangedSet ( -- ** Ranged Set Type RSet, rSetRanges, -- ** Ranged Set construction functions and their preconditions makeRangedSet, unsafeRangedSet, validRangeList, normaliseRangeList, rSingleton, rSetUnfold, -- ** Predicates rSetIsEmpty, rSetIsFull, (-?-), r...
16,117
https://github.com/kreid333/bandwich/blob/master/public/js/scripts.js
Github Open Source
Open Source
MIT
2,023
bandwich
kreid333
JavaScript
Code
1,911
6,210
$(document).ready(function () { // jQuery targeting the big record/pause/stop buttons // feel free to change html ids to match those in handlebars. const mainRecordEl = $("#main-record"); const mainStopEl = $("#main-stop"); const mainPauseEl = $("#main-pause"); const saveTrackEl = $("#name-input"); const ...
49,199
https://github.com/tofi86/readium-desktop/blob/master/src/common/redux/actions/downloader.ts
Github Open Source
Open Source
BSD-3-Clause
null
readium-desktop
tofi86
TypeScript
Code
155
467
import { Download } from "readium-desktop/common/models/download"; import { Action, ErrorAction } from "readium-desktop/common/models/redux"; export enum ActionType { AddRequest = "DOWNLOAD_ADD_REQUEST", AddSuccess = "DOWNLOAD_ADD_SUCCESS", PostProcess = "DOWNLOAD_POST_PROCESS", Error = "DOWNLOAD_ERROR...
32,086
https://github.com/slimthierry/MlmRepository/blob/master/database/migrations/2020_06_16_190732_create_transactions.php
Github Open Source
Open Source
MIT
null
MlmRepository
slimthierry
PHP
Code
94
457
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateTransactions extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('transactions', ...
6,151
https://github.com/isaqb-org/glossary/blob/master/docs/1-terms/H/term-hybrid-architecture-style.adoc
Github Open Source
Open Source
CC-BY-4.0
2,022
glossary
isaqb-org
AsciiDoc
Code
52
123
[#term-hybrid-architecture-style] // tag::EN[] ==== Hybrid Architecture Style Combination of two or more existing architecture styles or patterns. For example, an MVC construct embedded in a layer structure. // end::EN[] // tag::DE[] ==== Hybrider Architekturstil Kombination aus zwei oder mehreren existierenden Ar...
18,385
https://github.com/balakrishnavalluri-gep/eShopOnContainersAI/blob/master/src/Bots/Bot.Core.API/Dialogs/Catalog/CatalogDialog.cs
Github Open Source
Open Source
MIT
2,022
eShopOnContainersAI
balakrishnavalluri-gep
C#
Code
815
3,084
using Microsoft.Bot.Builder; using Microsoft.Bot.Builder.Dialogs; using Microsoft.Bot.Schema; using Microsoft.Bot.Builder.Dialogs.Choices; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Newtonsoft.Json.Linq; using Mi...
30,057
https://github.com/SDWebImage/SDWebImagePDFCoder/blob/master/SDWebImagePDFCoder/Classes/SDWebImagePDFCoderDefine.m
Github Open Source
Open Source
MIT
2,022
SDWebImagePDFCoder
SDWebImage
Objective-C
Code
21
90
// // SDWebImagePDFCoderDefine.m // SDWebImagePDFCoder // // Created by lizhuoli on 2018/10/28. // #import "SDWebImagePDFCoderDefine.h" SDImageCoderOption _Nonnull const SDImageCoderDecodePDFPageNumber = @"decodePDFPageNumber";
3,009
https://github.com/RobCod/PERP/blob/master/gamemodes/perp/entities/entities/weather_tornado/cl_init.lua
Github Open Source
Open Source
MIT
2,021
PERP
RobCod
Lua
Code
98
419
include('shared.lua') local sirenPos = {Vector(-6527.918945, -8544.065430, 1261.234253), Vector(922.109436, 4752.591797, 913.729919), Vector(3499.881104, -6526.524414, 464.601379)}; function ENT:Draw() end function ENT:Think ( ) if self.NextWindGust < CurTime() then self.NextWindGust = CurTime() + 2 sound.Pl...
23,208
https://github.com/N0N4M3pl/plantuml-C4/blob/master/src/style.puml
Github Open Source
Open Source
MIT
2,020
plantuml-C4
N0N4M3pl
PlantUML
Code
184
861
@startuml C4-style ' ---------------------------------------------------- ' Document ' ---------------------------------------------------- !define LAYOUT_TOP_DOWN top to bottom direction !define LAYOUT_LEFT_RIGHT left to right direction !define LINE_STRAIGHT skinparam Linetype ortho skinparam defaultTextAlignment c...
23,095
https://github.com/jcapellman/monogame-tutorials/blob/master/chapter-11/end/Engine/States/BaseGameState.cs
Github Open Source
Open Source
MIT
2,020
monogame-tutorials
jcapellman
C#
Code
220
813
using System; using System.Collections.Generic; using System.Linq; using chapter_11.Engine.Input; using chapter_11.Engine.Objects; using chapter_11.Engine.Sound; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; namespace...
6,053
https://github.com/AAI-USZ/FixJS/blob/master/input/50-100/after/c10c8bc6adfaba93cafe84b41a6b63604a2d68cd_3_1.js
Github Open Source
Open Source
MIT
2,022
FixJS
AAI-USZ
JavaScript
Code
25
73
function() { var parser1 = letter.then(function() { return 'not a parser' }); assert.throws(function() { parser1.parse('x'); }); var parser2 = letter.then('x'); assert.throws(function() { letter.parse('xx'); }); }
36,565
https://github.com/sgs-weather-and-environmental-systems/rstt/blob/master/gr-rstt/lib/qa_error_correction.cc
Github Open Source
Open Source
Apache-2.0
2,021
rstt
sgs-weather-and-environmental-systems
C++
Code
929
3,585
/* -*- c++ -*- */ /* * Copyright 2013 Jiří Pinkava <j-pi@seznam.cz>. * * This is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3, or (at your option) * any later version. * * This soft...
38,725
https://github.com/65-7a/forge-client/blob/master/src/main/java/com/callumwong/gammazero/gui/clickgui/components/CheckBox.java
Github Open Source
Open Source
MIT
null
forge-client
65-7a
Java
Code
373
1,102
/* * Copyright (c) 2021 Callum Wong * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR A...
29,352
https://github.com/facebook/flipper/blob/master/iOS/Plugins/FlipperKitPluginUtils/FlipperKitLayoutHelpers/FlipperKitLayoutHelpers/SKInvalidation.h
Github Open Source
Open Source
MIT
2,023
flipper
facebook
Objective-C
Code
57
161
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import <Foundation/Foundation.h> @protocol SKInvalidationDelegate - (void)invalidateNode:(id<NSObject>)node; - (void)updateNod...
10,888
https://github.com/cursive-works/wagtailmedia/blob/master/src/wagtailmedia/wagtail_hooks.py
Github Open Source
Open Source
BSD-3-Clause
2,022
wagtailmedia
cursive-works
Python
Code
178
821
from django.conf.urls import include from django.urls import path, reverse from django.utils.translation import gettext_lazy as _ from django.utils.translation import ungettext from wagtail.admin.menu import MenuItem from wagtail.admin.search import SearchArea from wagtail.admin.site_summary import SummaryItem from wa...
40,253
https://github.com/mauricio/jesque/blob/master/src/main/java/com/officedrop/jesque/utils/VersionUtils.java
Github Open Source
Open Source
Apache-2.0
2,013
jesque
mauricio
Java
Code
274
648
/* * Copyright 2011 Greg Haines * * 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 t...
5,268
https://github.com/matenet/matecar/blob/master/application/views/zaplecze/wybrane_auto_edytuj_zdjecia.php
Github Open Source
Open Source
MIT
null
matecar
matenet
PHP
Code
361
1,697
<h2>Edytuj auto</h2> <?php $marka = array_column($auta, 'marka'); $model = array_column($auta, 'model'); $nr_rejestracyjny = array_column($auta, 'nr_rejestracyjny'); $cena = array_column($auta, 'cena'); $kaucja = array_column($auta, 'kaucja'); $pojemnosc_silnika = array_column($auta,...
42,060
https://github.com/jaykrell/cm3/blob/master/m3-scheme/scheme-lib/src/mbe.scm
Github Open Source
Open Source
BSD-4-Clause-UC, BSD-4-Clause, BSD-3-Clause
2,022
cm3
jaykrell
Scheme
Code
1,287
4,340
;; $Id$ ;; ;; downloaded from norvig.com 2008/11/18 ;; ;; moved reverse! and append! to basic-defs.scm ;; removed => (not in early JScheme) ;Hygienic R5RS macro-by-example for SILK ;-*-scheme-*- ;Dorai Sitaram ds26@gte.com http://www.cs.rice.edu/~dorai/ ;April 17, 1998 ;some common Scheme utilities (require-modules ...
23,878
https://github.com/nvander/incubator-rya/blob/master/extras/indexing/src/main/java/mvm/rya/indexing/IndexPlanValidator/ExternalIndexMatcher.java
Github Open Source
Open Source
Apache-2.0
2,015
incubator-rya
nvander
Java
Code
20
110
package mvm.rya.indexing.IndexPlanValidator; import java.util.Iterator; import java.util.List; import java.util.Set; import mvm.rya.indexing.external.tupleSet.ExternalTupleSet; import org.openrdf.query.algebra.TupleExpr; public interface ExternalIndexMatcher { public Iterator<TupleExpr> getIndexedTupl...
17,896
https://github.com/Phader/runelite/blob/master/runescape-client/src/main/java/ClanMate.java
Github Open Source
Open Source
BSD-2-Clause
2,020
runelite
Phader
Java
Code
359
1,360
import net.runelite.mapping.Export; import net.runelite.mapping.Implements; import net.runelite.mapping.ObfuscatedName; import net.runelite.mapping.ObfuscatedSignature; @ObfuscatedName("jt") @Implements("ClanMate") public class ClanMate extends Buddy { @ObfuscatedName("c") @ObfuscatedSignature( signature = "Lju;" ...
9,931
https://github.com/steinwurf/sak/blob/master/src/sak/input_stream.hpp
Github Open Source
Open Source
BSD-3-Clause
2,017
sak
steinwurf
C++
Code
283
593
// Copyright (c) 2012 Steinwurf ApS // All Rights Reserved // // Distributed under the "BSD License". See the accompanying LICENSE.rst file. #pragma once #include <cstdint> #include <functional> namespace sak { /// Input stream abstraction class input_stream { public: /// Destructor virtual ~input_stream() ...
46,394
https://github.com/lneninger/quickbookdestop-integrator/blob/master/src/_Examples Direct QB Connect Interop/MCInvoiceAddQBFC/Intuit_QBFC/SessionFramework/ENEdition.cs
Github Open Source
Open Source
Apache-2.0
2,021
quickbookdestop-integrator
lneninger
C#
Code
66
156
// Copyright (c) 2007-2013 by Intuit Inc. // All rights reserved // Usage governed by the QuickBooks SDK Developer's License Agreement using System; namespace MCInvoiceAddQBFC.Session_Framework { public enum ENEdition { edUS = 0, edCA = 1, edUK = 2, } static class QBEdition ...
41,973
https://github.com/nishkalavallabhi/MRLSubmission2021/blob/master/code/gen_mbert_vecs.py
Github Open Source
Open Source
Apache-2.0
2,021
MRLSubmission2021
nishkalavallabhi
Python
Code
140
615
import torch from transformers import * import sys setup = sys.argv[1] if setup == 'mbert': tokenizer = BertTokenizer.from_pretrained('bert-base-multilingual-cased') model = BertModel.from_pretrained('bert-base-multilingual-cased', output_hidden_states=True) outputfile = "../mbert_last_layer_CLS_token.ou...
26,729
https://github.com/kevinmckinley/dd-agent/blob/master/tests/checks/mock/test_kubernetes.py
Github Open Source
Open Source
BSD-3-Clause
null
dd-agent
kevinmckinley
Python
Code
592
4,342
# stdlib import mock # 3p import simplejson as json # project from tests.checks.common import AgentCheckTest, Fixtures from checks import AgentCheck CPU = "CPU" MEM = "MEM" FS = "fs" NET = "net" NET_ERRORS = "net_errors" DISK = "disk" DISK_USAGE = "disk_usage" PODS = "pods" METRICS = [ ('kubernetes.memory.usage...
46,733
https://github.com/dlabaj/patternfly-react/blob/master/packages/react-console/src/components/AccessConsoles/__tests__/AccessConsoles.test.tsx
Github Open Source
Open Source
MIT
2,023
patternfly-react
dlabaj
TSX
Code
338
1,084
import React from 'react'; import { render, screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { AccessConsoles } from '../AccessConsoles'; import { SerialConsole } from '../../SerialConsole'; import { VncConsole } from '../../VncConsole'; import { DesktopViewer } from...
15,374
https://github.com/csmberkeley/site-v2/blob/master/js/controllers/bios-controller.js
Github Open Source
Open Source
MIT
2,018
site-v2
csmberkeley
JavaScript
Code
1,306
3,115
(function() { angular.module('CSM') .controller('BiosController', function($scope) { /* * Each bio json object has the following properties: * name: the person's first/last/name * details: the person's bio * imgName: the path of the image...
33,002
https://github.com/mrugenmike/pronet-application/blob/master/node_modules/client-session/test/main.js
Github Open Source
Open Source
MIT
2,015
pronet-application
mrugenmike
JavaScript
Code
675
3,153
var cs = require('../index.js'); var assert = require('assert'); //test unit try{ var cs_ins = cs('a'); }catch(e){ assert.equal(e,'secretKey\'s length must longer than 6.') } //test unit try{ var key = 'a' for(var i=0;i<100;i++){ key+='a'; } var cs_ins = cs(key); }catch(e){ assert.equal(e,'secretKey\'s lengt...
37,439
https://github.com/deemount/accounting/blob/master/benchmarks/appendstructslice32_test.go
Github Open Source
Open Source
MIT
2,021
accounting
deemount
Go
Code
137
553
package benchmarks import ( "testing" "github.com/google/uuid" ) // BenchmarkAppendStructSlice16 func BenchmarkAppendStructSlice32(b *testing.B) { var testDataStructSlice1 = []TestExchangeOrder{ { ID: uuid.New(), CustomerID: 1, Type: "buy", Asset: "EUR", }, { ID: uu...
12,981
https://github.com/gugenstudio/Xcomp/blob/master/libs/DMath/src/DMT_VecN.h
Github Open Source
Open Source
MIT
2,022
Xcomp
gugenstudio
C
Code
2,212
6,181
//================================================================== /// DMT_VecN.h /// /// Created by Davide Pasca - 2009/5/9 /// See the file "license.txt" that comes with this project for /// copyright info. //================================================================== #ifndef DMT_VECN_H #define DMT_VECN_H ...
17,760
https://github.com/ZZHGit/ExSwift/blob/master/ExSwiftTests/ExSwiftFloatTests.swift
Github Open Source
Open Source
BSD-2-Clause-FreeBSD
2,015
ExSwift
ZZHGit
Swift
Code
67
267
// // ExSwiftFloatTests.swift // ExSwift // // Created by pNre on 04/06/14. // Copyright (c) 2014 pNre. All rights reserved. // import XCTest class ExSwiftFloatTests: XCTestCase { func testAbs() { XCTAssertGreaterThan(Float(-1.0).abs(), Float(0)) } func testSqrt() { XCTAssertEqua...
1,636
https://github.com/GeneRainier/salmon-run-working/blob/master/SalmonRunWorking/Assets/Scripts/Managers/MenuManager.cs
Github Open Source
Open Source
MIT
null
salmon-run-working
GeneRainier
C#
Code
245
593
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /* * Manager script to handle the various UI elements such as buttons and panels * * Authors: Benjamin Person (Editor 2020) */ public class MenuManager : MonoBehaviour { // The buttons along the tower panel i...
7,249
https://github.com/HuttonICS/germinate-server/blob/master/src/main/resources/jhi/germinate/server/util/database/migration/V3.3.2__update.sql
Github Open Source
Open Source
Apache-2.0
2,020
germinate-server
HuttonICS
SQL
Code
56
156
/**************************************************/ /* GERMINATE 3 */ /* MIGRATION SCRIPT */ /* v3.3.1 -> v3.3.2 */ /**************************************************/ DROP TABLE IF EXISTS `databaseversions`; /* Rename `d...
25,209
https://github.com/OctaPal/microservices-demo-1/blob/master/01_Terraform_IaC/create-tf-remote-storage.sh
Github Open Source
Open Source
Apache-2.0
null
microservices-demo-1
OctaPal
Shell
Code
78
256
#!/bin/bash RESOURCE_GROUP_NAME=rg-terraform STORAGE_ACCOUNT_NAME=hipsterisaac CONTAINER_NAME=tfstate # Create resource group # az group create --name $RESOURCE_GROUP_NAME --location eastus Create storage account az storage account create --resource-group $RESOURCE_GROUP_NAME --name $STORAGE_ACCOUNT_NAME --sku Standa...
19,724
https://github.com/TrendingTechnology/pydatagovgr/blob/master/pydatagovgr/__init__.py
Github Open Source
Open Source
MIT
2,021
pydatagovgr
TrendingTechnology
Python
Code
7
23
from .client import DataGovClient __version__ = "0.1.9"
895
https://github.com/iQueSoft/iOSDemo_VideoRecord/blob/master/VideoRecordSample/Business layer/VideoProcessor/VRSVideoProcessor.m
Github Open Source
Open Source
MIT
2,015
iOSDemo_VideoRecord
iQueSoft
Objective-C
Code
400
1,549
// // VRSVideoProcessor.m // VideoRecordSample // // Created by Ruslan Shevtsov on 4/3/15. // Copyright (c) 2015 iQueSoft rights reserved. // #import "VRSVideoProcessor.h" // Frameworks #import <AVFoundation/AVFoundation.h> #import <AssetsLibrary/AssetsLibrary.h> // Models #import "VRSVideo.h" // Managers #impo...
12,044
https://github.com/T4rk1n/dazzler/blob/master/src/html/components/Progress.tsx
Github Open Source
Open Source
MIT
2,021
dazzler
T4rk1n
TSX
Code
35
125
import * as React from 'react'; import {enhanceProps} from 'commons'; import {HtmlOmittedProps, DazzlerHtmlProps} from '../../commons/js/types'; type Props = Omit<React.DetailedHTMLProps<React.ProgressHTMLAttributes<HTMLProgressElement>, HTMLProgressElement>, HtmlOmittedProps> & DazzlerHtmlProps; const Progress = (pr...
36,999
https://github.com/venishjoe/omnis/blob/master/src/net/venishjoe/omnis/controllers/OmnisGUIEditorController.java
Github Open Source
Open Source
MIT
null
omnis
venishjoe
Java
Code
1,013
6,801
/* * The MIT License (MIT) * * Copyright (c) 2013 Venish Joe, http://venishjoe.net, venish@venishjoe.net * * 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, includin...
50,728
https://github.com/sultania1ankit/projects/blob/master/bashrc_mod/cold_flasher.py
Github Open Source
Open Source
MIT
2,022
projects
sultania1ankit
Python
Code
137
1,118
import os import sys mcu=sys.argv[1] project=sys.argv[2] avr_try="avrdude -v -p m328p -b 19200 -c avrisp -P /dev/ttyACM0 -U flash:w:/home/ankit_sultania/MPLABXProjects/RTOS_try1.X/dist/default/production/RTOS_try1.X.production.hex" avr_main="avrdude -v -p m328p -b 19200 -c avrisp -P /dev/ttyACM0 -U flash:w:/home/anki...
32,282
https://github.com/Ahmed-Ashraf-eng/cms/blob/master/resources/views/emails/welcome.blade.php
Github Open Source
Open Source
MIT
null
cms
Ahmed-Ashraf-eng
PHP
Code
18
39
Hello {{$user->name}} Thanks for creating an account . please verify your email using this link {{route('verify' , $user->verification_token)}}
11,353
https://github.com/DevChive/XenForms/blob/master/Source/Core/Networking/XenMessageContext.cs
Github Open Source
Open Source
MIT
2,020
XenForms
DevChive
C#
Code
173
427
using System; using XenForms.Core.Messages; namespace XenForms.Core.Networking { /// <summary> /// Encapsulates a single toolbox request and designer response. /// </summary> public class XenMessageContext { public string Message { get; set; } public XenMessage Request { get; set; ...
23,952
https://github.com/IlyasM/relayWorking/blob/master/lib/RelayRootContainer.js
Github Open Source
Open Source
BSD-3-Clause
2,016
relayWorking
IlyasM
JavaScript
Code
336
2,043
var _extends=Object.assign || function(target){for(var i=1;i < arguments.length;i++) {var source=arguments[i];for(var key in source) {if(Object.prototype.hasOwnProperty.call(source,key)){target[key] = source[key];}}}return target;};function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){th...
27,436
https://github.com/ilias500/xsd2pgschema/blob/master/src/xpath2json.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,019
xsd2pgschema
ilias500
Java
Code
1,368
5,495
/* xsd2pgschema - Database replication tool based on XML Schema Copyright 2018-2019 Masashi Yokochi https://sourceforge.net/projects/xsd2pgschema/ 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 L...
48,031
https://github.com/bexcool/PavlOS/blob/master/PavlOS/Core/Shell/Input/InputListener.cs
Github Open Source
Open Source
Apache-2.0
null
PavlOS
bexcool
C#
Code
833
2,587
using Mosa.External.x86.Driver; using Mosa.External.x86.Driver.Input; using PavlOS.Core.Shell; using PavlOS.Core.Shell.Controls.Base; using PavlOS.Core.Shell.Rendering; using PavlOS.Core.Utility; using PavlOS_Dev.Core.Shell.Controls.Base; using System; using System.Collections.Generic; using System.Drawing; using Syst...
27,393
https://github.com/matoruru/purescript-react-material-ui-svgicon/blob/master/src/MaterialUI/SVGIcon/Icon/SignalCellularNoSim.purs
Github Open Source
Open Source
MIT
null
purescript-react-material-ui-svgicon
matoruru
PureScript
Code
45
163
module MaterialUI.SVGIcon.Icon.SignalCellularNoSim ( signalCellularNoSim , signalCellularNoSim_ ) where import Prelude (flip) import MaterialUI.SVGIcon.Type (SVGIcon, SVGIcon_) import React (unsafeCreateElement, ReactClass) as R foreign import signalCellularNoSimImpl :: forall a. R.ReactClass a signalCellu...
1,768
https://github.com/exoscale/cli/blob/master/cmd/sks_kubeconfig.go
Github Open Source
Open Source
Apache-2.0
2,022
cli
exoscale
Go
Code
629
2,056
package cmd import ( "encoding/base64" "encoding/json" "fmt" "time" exoapi "github.com/exoscale/egoscale/v2/api" "github.com/spf13/cobra" "gopkg.in/yaml.v2" ) type sksKubeconfigCmd struct { cliCommandSettings `cli-cmd:"-"` _ bool `cli-cmd:"kubeconfig"` Cluster string `cli-arg:"#" cli-usage:"CLUSTER-NAME|...
30,004
https://github.com/indigo-iam/iam/blob/master/iam-login-service/src/main/java/it/infn/mw/iam/api/client/registration/service/ClientRegistrationService.java
Github Open Source
Open Source
Apache-2.0
2,023
iam
indigo-iam
Java
Code
159
392
/** * Copyright (c) Istituto Nazionale di Fisica Nucleare (INFN). 2016-2021 * * 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 * * Unl...
47,637
https://github.com/moraycreative/lindenconstructionco/blob/master/wp-content/themes/construction/vamtam/admin/helpers/config_generator/checkbox.php
Github Open Source
Open Source
MIT
null
lindenconstructionco
moraycreative
PHP
Code
75
215
<?php /** * single checkbox */ $option = $value; $value = wpv_sanitize_bool( wpv_get_option( $id, $default ) ); ?> <div class="wpv-config-row <?php echo esc_attr( $class ) ?>"> <div class="ritlte"> <?php wpv_description( $id, $desc ) ?> </div> <div class="rcontent clearfix"> <label> <input type="checkbox...
42,349
https://github.com/apache/pdfbox/blob/master/fontbox/src/test/java/org/apache/fontbox/ttf/gsub/GlyphArraySplitterRegexImplTest.java
Github Open Source
Open Source
Apache-2.0, BSD-3-Clause, LicenseRef-scancode-generic-cla, APAFML, LicenseRef-scancode-apple-excl, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-unknown
2,023
pdfbox
apache
Java
Code
346
1,084
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
20,546
https://github.com/AlexeyKashintsev/PlatypusJS/blob/master/designer/PlatypusDatamodel/src/com/eas/client/model/gui/view/model/SelectedField.java
Github Open Source
Open Source
Apache-2.0
null
PlatypusJS
AlexeyKashintsev
Java
Code
60
151
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.eas.client.model.gui.view.model; import com.eas.client.metadata.Field; import com.eas.client.model.Entity; /** * * @author mg */ public class SelectedField<E extends Entity<?, ?, E>> { public E enti...
10,997
https://github.com/itiki/sql-generator/blob/master/src/test/scala/com/geishatokyo/sqlgen/project/MergeSplitProjectTest.scala
Github Open Source
Open Source
MIT
2,015
sql-generator
itiki
Scala
Code
140
596
package com.geishatokyo.sqlgen.project import com.geishatokyo.sqlgen.{Context, Executor} import com.geishatokyo.sqlgen.process.input.{InputHelpers, SingleXLSLoader} import com.geishatokyo.sqlgen.process.ensure.EnsureProcessProvider import com.geishatokyo.sqlgen.process.output.{XLSOutputProvider, SQLOutputProvider} imp...
8,094
https://github.com/Danielle-Kensy/mobile-android-lessons/blob/master/PokedexDetails/lib/models/pokemon.dart
Github Open Source
Open Source
MIT
null
mobile-android-lessons
Danielle-Kensy
Dart
Code
41
118
class Pokemon { final String picture; final String description; final double height; final double weight; final List<String> type; final String skill; final List<String> weakness; Pokemon({ required this.picture, required this.description, required this.height, required this.weight, ...
46,349
https://github.com/PacificBiosciences/pancake/blob/master/src/pancake/MapperBatchUtility.cpp
Github Open Source
Open Source
BSD-3-Clause-Clear, BSL-1.0, BSD-3-Clause, MIT
2,022
pancake
PacificBiosciences
C++
Code
1,945
6,393
// Authors: Ivan Sovic #include <pacbio/alignment/AlignmentTools.h> #include <pacbio/pancake/MapperBatchUtility.h> #include <pacbio/pancake/OverlapWriterBase.h> #include <pbcopper/logging/Logging.h> namespace PacBio { namespace Pancake { std::vector<PacBio::Pancake::MapperBatchChunk> ConstructBatchData( const st...
18,904
https://github.com/Arnauld/swoop/blob/master/src/main/java/swoop/support/ResourceBasedContent.java
Github Open Source
Open Source
MIT
2,013
swoop
Arnauld
Java
Code
115
370
package swoop.support; import java.io.IOException; import java.io.InputStream; import swoop.Action; import swoop.Request; import swoop.Response; import swoop.SwoopException; import swoop.util.IO; public class ResourceBasedContent extends Action { public static String resourcePath(Class<?> clazz) { r...
13,914
https://github.com/wkoiking/xyzzy/blob/master/site-lisp/kamail3/send.l
Github Open Source
Open Source
BSD-2-Clause
2,022
xyzzy
wkoiking
Common Lisp
Code
382
1,666
;;; -*- Mode: Lisp; Package: EDITOR -*- ;;; ;;; This file is not part of xyzzy. ;;; ; $Id: send.l 793 2008-02-08 20:49:27Z torihat $ ; ; kamail3/send.l ; ; by HATTORI Masashi (eval-when (:compile-toplevel :load-toplevel :execute) (require "kamail3/defs")) (provide "kamail3/send") (in-package "kamail3") (defstruct...
42,296
https://github.com/ayzhanglei/SimplCommerce/blob/master/src/SimplCommerce.Web/Areas/Admin/ViewModels/Cms/CarouselWidgetForm.cs
Github Open Source
Open Source
Apache-2.0
2,016
SimplCommerce
ayzhanglei
C#
Code
38
109
using System.Collections.Generic; namespace SimplCommerce.Web.Areas.Admin.ViewModels.Cms { public class CarouselWidgetForm { public long Id { get; set; } public string Name { get; set; } public int Zone { get; set; } public IList<CarouselWidgetItemForm> Items = new List<Caro...
16,336
https://github.com/iLeonelPerea/ux-pal/blob/master/api/handler/handler.js
Github Open Source
Open Source
MIT
2,016
ux-pal
iLeonelPerea
JavaScript
Code
264
1,174
'use strict'; var mongodb = require('mongodb'); var MongoClient = mongodb.MongoClient; var url = 'mongodb://admin:password@ds023593.mlab.com:23593/uxpal'; function dbConnect(cb){ MongoClient.connect(url, function (err, db) { if(err){ return cb(err); }else{ return cb(db); ...
33,230
https://github.com/tianqichongzhen/minix3/blob/master/lib/i386/em/em_exg.s
Github Open Source
Open Source
BSD-3-Clause
2,022
minix3
tianqichongzhen
GAS
Code
46
160
.sect .text; .sect .rom; .sect .data; .sect .bss .define .exg ! #bytes in ecx .sect .text .exg: push edi mov edi,esp add edi,8 mov ebx,edi add ebx,ecx sar ecx,2 1: mov eax,(ebx) xchg eax,(edi) mov (ebx),eax add edi,4 add ebx,4 loop 1b 2: pop edi ret
33,799
https://github.com/d2s/kontena/blob/master/cli/lib/kontena/cli/master/config_command.rb
Github Open Source
Open Source
Apache-2.0
2,022
kontena
d2s
Ruby
Code
54
180
module Kontena module Cli module Master class ConfigCommand < Kontena::Command subcommand "set", "Set a config value", load_subcommand('master/config/set_command') subcommand "get", "Get a config value", load_subcommand('master/config/get_command') subcommand "unset", "Clear a confi...
39,178
https://github.com/dpnolte/ReactiveUI.Routing/blob/master/src/ReactiveUI.Routing/IRoutedAppHost.cs
Github Open Source
Open Source
MIT
2,017
ReactiveUI.Routing
dpnolte
C#
Code
108
247
using System; using System.Reactive; using System.Threading.Tasks; namespace ReactiveUI.Routing { /// <summary> /// Defines an interface for objects that bind cross-platform routers and presenters /// to their host platform. /// </summary> public interface IRoutedAppHost { /// <summary>...
837
https://github.com/Crawping/fishjam-template-library/blob/master/Temp/CyberLink4CC/sample/clock/tengine/gnu/configure
Github Open Source
Open Source
BSD-3-Clause
2,015
fishjam-template-library
Crawping
Shell
Code
45
147
#!/bin/sh cd src; rm -f upnpclock.cpp.lnk; ln -sf ../../../unix/ClockMain.cpp upnpclock.cpp; cd .. cd sh7727; rm -f Makefile.lnk; ln -fs ../src/Makefile Makefile; cd .. cd sh7727.debug; rm -f Makefile.lnk; ln -fs ../src/Makefile Makefile; cd .. cd sh7727.dl; rm -f Makefile.lnk; ln -fs ../src/Makefile Makefile; cd ..
13,528
https://github.com/smilesnake/apollo/blob/master/apollo-configservice/src/main/java/com/ctrip/framework/apollo/configservice/filter/ClientAuthenticationFilter.java
Github Open Source
Open Source
Apache-2.0
null
apollo
smilesnake
Java
Code
346
1,383
package com.ctrip.framework.apollo.configservice.filter; import com.ctrip.framework.apollo.configservice.util.AccessKeyUtil; import com.ctrip.framework.apollo.core.signature.Signature; import com.google.common.net.HttpHeaders; import java.io.IOException; import java.util.List; import java.util.Objects; import javax.se...
14,268
https://github.com/micahhahn/Passado/blob/master/Passado/Query/Delete/IJoinable.cs
Github Open Source
Open Source
MIT
null
Passado
micahhahn
C#
Code
23
81
using System; using System.Collections.Generic; using System.Text; namespace Passado.Query.Delete { public interface IJoinable<TDatabase, TTable1> { } public interface IJoinable<TDatabase, TTable1, TTable2> { } }
2,213
https://github.com/bsu-slim/jstlm/blob/master/src/sequence/Text.java
Github Open Source
Open Source
MIT
null
jstlm
bsu-slim
Java
Code
229
744
package sequence; import java.util.HashMap; import java.util.LinkedList; import java.util.Set; public class Text<T> { /* * Holds the "vocabulary" for the tree */ public LinkedList<Integer> items; HashMap<T,Integer> vocab; int index; public Text() { vocab = new HashMap<T,Integer>(); i...
17,356
https://github.com/tianshaojun/maoyan/blob/master/src/components/common/movie-list/MovieItem.vue
Github Open Source
Open Source
MIT
2,020
maoyan
tianshaojun
Vue
Code
195
847
<template> <div class="item"> <div class="main-block"> <div class="avatar" sort-flag=""> <div class="default-img-bg"> <img :src="item.img | replaceWH('128.180')" onerror="this.style.visibility='hidden'"> </div> </div> <div class="mb-outline-b content-wrapper"> ...
17,271
https://github.com/colbyfayock/egghead-demo-github-action-futurama-zoidberg-quote/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,021
egghead-demo-github-action-futurama-zoidberg-quote
colbyfayock
Ignore List
Code
28
35
# You do not want to add the dist directory here, as we need # the files locally in order to run the them in the action node_modules
14,167
https://github.com/Zo3i/codewarsPy/blob/master/sortOdd.py
Github Open Source
Open Source
Apache-2.0
null
codewarsPy
Zo3i
Python
Code
48
152
def sort_array(source_array): odd = sorted(list(filter(lambda x: x % 2 ==1, source_array))) j = 0 strs = ''.join(str(e) for e in source_array) for i in source_array: if i % 2 == 1: print('i=',i) print(odd[j]) strs = strs.replace(str(i), str(odd[j])) ...
33,709
https://github.com/pedro-filho-81/LivrosDeJava/blob/master/ComoProgramar/Capitulo04/ExemplosCap04/OutrosDesenhos/OutrosDesenhos01.java
Github Open Source
Open Source
MIT
null
LivrosDeJava
pedro-filho-81
Java
Code
88
242
import java.awt.Graphics; import javax.swing.JPanel; public class OutrosDesenhos01 extends JPanel { public void paintComponent(Graphics g) { super.paintComponent(g); int getLargura = getWidth(); // getLargura int getAltura = getHeight(); // getAltura // desenha uma linha a partir...
45,299
https://github.com/ajadex/azure-activedirectory-identitymodel-extensions-for-dotnet/blob/master/src/System.IdentityModel.Tokens.Jwt/WSSecurity10Constants.cs
Github Open Source
Open Source
Apache-2.0
null
azure-activedirectory-identitymodel-extensions-for-dotnet
ajadex
C#
Code
214
520
//----------------------------------------------------------------------- // Copyright (c) Microsoft Open Technologies, Inc. // All Rights Reserved // Apache License 2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may o...
20,684
https://github.com/crontabpy/documentation/blob/master/content/manual/adoc/en/framework/gui_framework/gui_vcl/gui_components/gui_DateField.adoc
Github Open Source
Open Source
CC-BY-4.0
null
documentation
crontabpy
AsciiDoc
Code
756
1,912
:sourcesdir: ../../../../../../source [[gui_DateField]] ====== DateField ++++ <div class="manual-live-demo-container"> <a href="https://demo.cuba-platform.com/sampler/open?screen=simple-datefield" class="live-demo-btn" target="_blank">LIVE DEMO</a> </div> ++++ ++++ <div class="manual-live-demo-container"> <a...
38,561
https://github.com/andrepestana-aot/forms-flow-ai/blob/master/forms-flow-web/src/components/Dashboard/index.js
Github Open Source
Open Source
Apache-2.0
2,022
forms-flow-ai
andrepestana-aot
JavaScript
Code
19
47
import React from "react"; import Dashboard from "./Dashboard"; import "./dashboard.scss"; export default React.memo(() => { return <Dashboard />; });
5,201
https://github.com/Propertyinsight/ember-cli-browser-service/blob/master/app/services/browser.js
Github Open Source
Open Source
MIT
null
ember-cli-browser-service
Propertyinsight
JavaScript
Code
212
652
import Ember from 'ember'; export default Ember.Service.extend({ _detection: null, detect: function() { // http://stackoverflow.com/a/2401861/188740 if (!this.get('_detection')) this.set('_detection', (function() { var ua = navigator.userAgent, tem, M = ua.match(/(opera|c...
28,316
https://github.com/sarfaraz1373/Image-Editor/blob/master/main.py
Github Open Source
Open Source
MIT
2,021
Image-Editor
sarfaraz1373
Python
Code
343
1,706
# Create by Packetsss # Personal use is allowed # Commercial use is prohibited from widgets import * class Start(QWidget): def __init__(self): super().__init__() uic.loadUi(f"{pathlib.Path(__file__).parent.absolute()}\\ui\\startup.ui", self) self.setWindowIcon(QIcon(f"{pathlib.Path(__file...
12,391
https://github.com/liyanlong/vue-admin-bootstrap/blob/master/src/utils/transitionEvent.js
Github Open Source
Open Source
MIT
2,017
vue-admin-bootstrap
liyanlong
JavaScript
Code
46
138
function transitionEnd () { var el = document.createElement('bootstrap') var transEndEventNames = { WebkitTransition: 'webkitTransitionEnd', MozTransition: 'transitionend', OTransition: 'oTransitionEnd otransitionend', transition: 'transitionend' } for (var name in tran...
42,744
https://github.com/dbac/jdk8/blob/master/src/share/native/sun/font/layout/KhmerReordering.h
Github Open Source
Open Source
MIT
null
jdk8
dbac
C
Code
1,110
2,077
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this * particular file as subject to th...
11,148
https://github.com/dagpan/active-record-practice-playlister-static-generator-lab-nyc04-seng-ft-012720/blob/master/app/models/artist.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain
2,020
active-record-practice-playlister-static-generator-lab-nyc04-seng-ft-012720
dagpan
Ruby
Code
18
77
class Artist < ActiveRecord::Base has_many :songs has_many :genres, through: :songs def to_slug self.name.downcase.strip.gsub(' ', '-').gsub(/[^\w-]/, '') end end
38,715
https://github.com/RoelKluin/igv/blob/master/src/main/java/org/broad/igv/data/ZipUtils.java
Github Open Source
Open Source
MIT
2,022
igv
RoelKluin
Java
Code
532
1,185
/* * The MIT License (MIT) * * Copyright (c) 2007-2015 Broad Institute * * 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 *...
43,859
https://github.com/jiongjiongwang/FirstCocos2Ddemo/blob/master/proj.ios_mac/MyLink.h
Github Open Source
Open Source
MIT
null
FirstCocos2Ddemo
jiongjiongwang
C
Code
92
532
// // MyLink.hpp // MyFirstDemo // // Created by dn210 on 16/12/21. // // #ifndef MyLink_hpp #define MyLink_hpp #include <stdio.h> #endif /* MyLink_hpp */ #include "cocos2d.h" //定义一个结构体,用于传递持续时间和音符号 struct LinkEventData { //1-音符的持续时间 float duraTime; //2-音符号 int pianoNum; //指向下一个结构体的指针 ...
16,229
https://github.com/infodog/pigeon40-core/blob/master/pigeon-client/src/main/java/net/xinshi/pigeon50/client/distributedclient/lockclient/IdentityKeygen.java
Github Open Source
Open Source
MIT
null
pigeon40-core
infodog
Java
Code
134
391
package net.xinshi.pigeon50.client.distributedclient.lockclient; import org.apache.commons.lang.StringUtils; import java.lang.management.ManagementFactory; import java.util.UUID; /** * Created by IntelliJ IDEA. * User: zhengxiangyang * Date: 11-11-1 * Time: 下午12:06 * To change this template use File | Setting...
19,191
https://github.com/DrZoddiak/Nucleus/blob/master/nucleus-modules/src/main/java/io/github/nucleuspowered/nucleus/modules/vanish/listener/VanishListener.java
Github Open Source
Open Source
MIT
2,022
Nucleus
DrZoddiak
Java
Code
273
1,431
/* * This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file * at the root of this project for more details. */ package io.github.nucleuspowered.nucleus.modules.vanish.listener; import com.google.inject.Inject; import io.github.nucleuspowered.nucleus.modules.vanish.VanishKeys; i...
28,496
https://github.com/ErdemYesiltas/pixijs/blob/master/packages/sound-extras/global.d.ts
Github Open Source
Open Source
MIT
null
pixijs
ErdemYesiltas
TypeScript
Code
34
90
declare namespace GlobalMixins { // PixiJS 6.1+ supports mixin types for LoaderResource interface LoaderResource { /** Reference to Sound object created. */ sound?: import('@pixi/sound-extras').Sound; } interface IResourceMetadata { tags?: string | string[]; } }
33,431
https://github.com/MOIPA/RetailManager/blob/master/Backend/src/main/java/com/dql/retailmanager/service/impl/MemberService.java
Github Open Source
Open Source
MIT
2,021
RetailManager
MOIPA
Java
Code
179
728
package com.dql.retailmanager.service.impl; import com.dql.retailmanager.Utils.PageUtils; import com.dql.retailmanager.dao.mapper.MemberDao; import com.dql.retailmanager.entity.Member; import com.dql.retailmanager.entity.User; import com.dql.retailmanager.entity.form.SearchForm; import com.dql.retailmanager.entity.for...
49,490
https://github.com/CaptainABOfficial/bmac/blob/master/database/migrations/2018_09_30_131714_add_event_variables_to_events_table.php
Github Open Source
Open Source
MIT
2,021
bmac
CaptainABOfficial
PHP
Code
63
287
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddEventVariablesToEventsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('even...
1,399
https://github.com/fromlabs/sqltree_query/blob/master/web/users_schema.g.dart
Github Open Source
Open Source
BSD-3-Clause
null
sqltree_query
fromlabs
Dart
Code
326
1,288
library users_schema; import 'package:sqltree_schema/sqltree_schema_builder.dart'; final USERSDB_Schema _USERSDB_DEFAULT = createUSERSDB_Schema(""); USERS_Table get USERS => _USERSDB_DEFAULT.USERS; USERSDB_Schema createUSERSDB_Schema(String name) => registerSharedSchema(new _USERSDB_SchemaImpl(name)); abstr...
5,299
https://github.com/UncleEricB/fossor/blob/master/fossor/checks/netiface_errors.py
Github Open Source
Open Source
BSD-2-Clause, BSD-2-Clause-Views
2,019
fossor
UncleEricB
Python
Code
346
827
# Copyright 2017 LinkedIn Corporation. All rights reserved. Licensed under the BSD-2 Clause license. # See LICENSE in the project root for license information. import platform from datetime import datetime, timedelta from collections import namedtuple from fossor.checks.check import Check class NetIFace(Check): ...
19,518
https://github.com/harshsd/deepsphinx/blob/master/deepsphinx/lm.py
Github Open Source
Open Source
MIT
2,021
deepsphinx
harshsd
Python
Code
178
769
''' Language modelling for the tensorflow model''' import tensorflow as tf from deepsphinx.fst import fst_costs class LMCellWrapper(tf.contrib.rnn.RNNCell): '''This class wraps a decoding cell to add LM scores''' def __init__(self, dec_cell, fst, max_states, reuse=None): super(LMCellWrapper, self).__i...
34,797
https://github.com/Grin747/spring-basics-course-project/blob/master/src/main/java/com/yet/spring/core/beans/EventType.java
Github Open Source
Open Source
MIT
null
spring-basics-course-project
Grin747
Java
Code
11
40
package com.yet.spring.core.beans; public enum EventType { INFO, ERROR, DEBUG, WARN }
42,063
https://github.com/alucard263096/AMKRemoteClass/blob/master/Documents/AnyChat/AnyChatCoreSDK_Android_r4840/src/AnyChatQueue/src/com/bairuitech/common/CustomApplication.java
Github Open Source
Open Source
Apache-2.0
null
AMKRemoteClass
alucard263096
Java
Code
176
617
package com.bairuitech.common; import android.app.Application; public class CustomApplication extends Application{ private int mUserID; //本地用户Id private int userType; //用户类型:普通客户、座席两种 private int CurrentAreaId; //当前营业厅的Id private int CurrentQueueId; //当前队列Id private String selfUserName; //本地用户名字 priv...
15,754
https://github.com/bardasoft/SharedControls/blob/master/Forms/FormSettings.cs
Github Open Source
Open Source
MIT
2,017
SharedControls
bardasoft
C#
Code
726
2,186
/* * The contents of this file are subject to MIT Licence. Please * view License.txt for further details. * * The Original Code was created by Simon Carter (s1cart3r@gmail.com) * * Copyright (c) 2012 Simon Carter * * Purpose: Shared Settings form, allows applications to dynamically add settings panel i...
50,183
https://github.com/RobertWilbrandt/c10lp_refkit_soc_demo/blob/master/soc/segment_display.py
Github Open Source
Open Source
BSD-3-Clause
null
c10lp_refkit_soc_demo
RobertWilbrandt
Python
Code
132
461
"""Submodule for controlling the 7-Segment display""" from litex.soc.interconnect.csr import AutoCSR, CSRStorage from migen import Array, If, Module, Signal class SegmentDisplay(Module, AutoCSR): def __init__(self, an_pads, c_pads, sys_clk_freq, rate): self._d = CSRStorage(3, description="Dot segments") ...
38,453
https://github.com/alice-larp/alice-larp-sdk-deprecated/blob/master/packages/alice-worker-manager/test/model_helpers.ts
Github Open Source
Open Source
Apache-2.0
null
alice-larp-sdk-deprecated
alice-larp
TypeScript
Code
298
883
import { Event } from 'alice-model-engine-api'; import { merge } from 'lodash'; import Container from 'typedi'; import { Document } from '../src/db/interface'; import { dbName } from '../src/db_init/util'; import { ConfigToken, DBConnectorToken } from '../src/di_tokens'; import { delay } from '../src/utils'; function ...
3,390
https://github.com/denismitr/laravel-permissions/blob/master/src/Loader.php
Github Open Source
Open Source
MIT
2,019
laravel-permissions
denismitr
PHP
Code
124
440
<?php namespace Denismitr\Permissions; use Denismitr\Permissions\Exceptions\PermissionDoesNotExist; use Denismitr\Permissions\Models\Permission; use Illuminate\Contracts\Auth\Access\Authorizable; use Illuminate\Contracts\Auth\Access\Gate; use Illuminate\Contracts\Cache\Repository; use Illuminate\Support\Collection;...
29,250