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/adilsond/api-cadastro-curriculo-django/blob/master/django/curriculo/migration.sh
Github Open Source
Open Source
Apache-2.0
null
api-cadastro-curriculo-django
adilsond
Shell
Code
31
97
#!/bin/bash #Script responsável pelas migrations utilizadas pelo django. python3 manage.py makemigrations api_curriculo sleep 2 python3 manage.py migrate sleep 2 echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'admin@example.com', 'admin_password')" | python3 manage.py shell
29,294
https://github.com/tgsstdio/Mg/blob/master/Magnesium.Vulkan/Enums/VkFrontFace.cs
Github Open Source
Open Source
MIT
2,021
Mg
tgsstdio
C#
Code
19
57
using System; namespace Magnesium.Vulkan { internal enum VkFrontFace : uint { FrontFaceCounterClockwise = 0, FrontFaceClockwise = 1, } }
33,103
https://github.com/mipalgu/gufsm/blob/master/libclfsm/clfsm_machine_loader.cc
Github Open Source
Open Source
BSD-4-Clause
null
gufsm
mipalgu
C++
Code
1,084
3,066
/* * clfsm_machine_loader.cc * clfsm * An interface for the loading and unloading of state machines. * * Created by Mitch Wenman on 28/09/14. * Copyright (c) 2012 Mitch Wenman. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that th...
51,037
https://github.com/craatos/WhatsApp-Status-Saver-Android/blob/master/app/src/main/java/com/android/whatsappsaver/StatusModel.java
Github Open Source
Open Source
Apache-2.0
2,021
WhatsApp-Status-Saver-Android
craatos
Java
Code
100
284
package com.android.whatsappsaver; public class StatusModel { String AbsolutePath; String path; int type; public StatusModel(String AbsolutePath) { this.AbsolutePath = AbsolutePath; } public StatusModel(String AbsolutePath, String path) { this.AbsolutePath = AbsolutePath; ...
397
https://github.com/suzhenyu006/sonic-agent/blob/master/src/main/java/org/cloud/sonic/agent/tests/android/scrcpy/ScrcpyInputSocketThread.java
Github Open Source
Open Source
MIT
2,022
sonic-agent
suzhenyu006
Java
Code
469
1,581
/* * Copyright (C) [SonicCloudOrg] Sonic Project * * 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 ap...
23,841
https://github.com/joschi/java-metadata/blob/master/docs/checksums/zulu/zulu8.70.0.23-ca-fx-jdk8.0.372-macosx_aarch64.zip.sha1
Github Open Source
Open Source
MIT
2,023
java-metadata
joschi
null
Spoken
2
59
5cb3775d22aab6e7c21dcda47b173de31089c8b0 zulu8.70.0.23-ca-fx-jdk8.0.372-macosx_aarch64.zip
14,640
https://github.com/bsa-git/silex-ubki/blob/master/app/Console/Commands/Ubki/IndexCommand.php
Github Open Source
Open Source
MIT
null
silex-ubki
bsa-git
PHP
Code
849
2,851
<?php // app/Console/Commands/Ubki/IndexCommand.php namespace Console\Commands\Ubki; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Helper\Table; /** * Class - IndexCommand * UBKI operations * * @category Command * @packa...
9,487
https://github.com/leochenftw/k9-db/blob/master/themes/default/gulpfile.js
Github Open Source
Open Source
BSD-3-Clause
null
k9-db
leochenftw
JavaScript
Code
377
1,560
var gulp = require('gulp') var browserify = require('browserify') var watchify = require('watchify') var babelify = require('babelify') var source = require('vinyl-source-stream') var buffer = require('vinyl-buffer') var merge = require('utils-merge') var rename = require('gulp-rename') var uglify = require('gulp-ug...
5,404
https://github.com/Jeric-X/SyncClipboard/blob/master/SyncClipboard.Core/Clipboard/ClipboardHtmlBuilder.cs
Github Open Source
Open Source
MIT
2,023
SyncClipboard
Jeric-X
C#
Code
110
433
using System.Runtime.Versioning; using System.Text; namespace SyncClipboard.Core.Clipboard; public static class ClipboardHtmlBuilder { private const string Header = @"Version:0.9 StartHTML:<<<<<<<<1 EndHTML:<<<<<<<<2 StartFragment:<<<<<<<<3 EndFragment:<<<<<<<<4"; private const string StartFragment = "<!--S...
44,287
https://github.com/MNie/FsCheck.GraphQL/blob/master/src/FsCheck.GraphQL/Printers.fs
Github Open Source
Open Source
MIT
2,019
FsCheck.GraphQL
MNie
null
Spoken
43
99
module Printers let printAsObject fieldName fields = sprintf "%s { %s }" fieldName fields let printAsSingleUnion unionName fields = sprintf "... on %s { %s }" unionName fields let printAsUnion fieldName (unions: seq<string>) = sprintf "%s { %s }" fieldName (System.String.Join(" ",...
42,628
https://github.com/wpg205/RedditScore/blob/master/redditscore/get_twitter_data.py
Github Open Source
Open Source
MIT
2,018
RedditScore
wpg205
Python
Code
696
2,281
# -*- coding: utf-8 -*- """ Tools to collect Twitter data from specific accounts. Part of the module is based on Twitter Scraper library: https://github.com/bpb27/twitter_scraping Author: Evgenii Nikitin <e.nikitin@nyu.edu> Part of https://github.com/crazyfrogspb/RedditScore project Copyright (c) 2018 Evgenii Nikiti...
33,627
https://github.com/EiichiroIto/MPyTools/blob/master/src/MPyTools-Tests/MicroMaqueenTest.class.st
Github Open Source
Open Source
MIT
null
MPyTools
EiichiroIto
null
Spoken
426
1,307
" A MicroMaqueenTest is a test class for testing the behavior of MicroMaqueen " Class { #name : #MicroMaqueenTest, #superclass : #TestCase, #category : #'MPyTools-Tests' } { #category : #test } MicroMaqueenTest >> testDistance [ | r | r := (MicroMaqueen >> #distance) asMicroPython. self assert: r equals: ...
4,162
https://github.com/PacoReinaCampo/PU-RISCV/blob/master/rtl/vhdl/core/cache/pu_riscv_icache_core.vhd
Github Open Source
Open Source
MIT
2,023
PU-RISCV
PacoReinaCampo
VHDL
Code
3,336
11,171
-- Converted from rtl/verilog/core/cache/pu_riscv_icache_core.sv -- by verilog2vhdl - QueenField -------------------------------------------------------------------------------- -- __ _ _ _ -- -- / _(_) | | ...
22,582
https://github.com/derjabkin/eXpand/blob/master/Xpand/Xpand.ExpressApp.Modules/EmailTemplateEngine/EmailSubSystem.cs
Github Open Source
Open Source
MS-PL
2,015
eXpand
derjabkin
C#
Code
101
293
namespace Xpand.EmailTemplateEngine { public class EmailSubsystem { public const string SendWelcomeMailTemplateName = "SendWelcomeMail"; public EmailSubsystem(string fromAddress, IEmailTemplateEngine templateEngine, IEmailSender sender) { Invariant.IsNotBlank(fromAddress, "fromAddress"...
4,112
https://github.com/WildCodeSchool/orleans-202103-php-project-coachmoi/blob/master/migrations/Version20210710224149.php
Github Open Source
Open Source
MIT
2,021
orleans-202103-php-project-coachmoi
WildCodeSchool
PHP
Code
140
472
<?php declare(strict_types=1); namespace DoctrineMigrations; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; /** * Auto-generated Migration: Please modify to your needs! */ final class Version20210710224149 extends AbstractMigration { public function getDescription(): string { ...
21,200
https://github.com/9swampy/Telnet/blob/master/PrimS.Telnet.CiTests/DummyTelnetServer.cs
Github Open Source
Open Source
MIT
2,022
Telnet
9swampy
C#
Code
28
117
#if NetStandard || NET6_0_OR_GREATER namespace PrimS.Telnet.CiTests #else namespace PrimS.Telnet.Sync.CiTests #endif { using System.Diagnostics.CodeAnalysis; [ExcludeFromCodeCoverage] public class DummyTelnetServer : DummyTelnetServerBase { public DummyTelnetServer() : base(Client.LegacyLineFeed) ...
13,779
https://github.com/ppiyush13/react-styled-flex/blob/master/test/detect-flex-gap-support.test.ts
Github Open Source
Open Source
MIT
2,021
react-styled-flex
ppiyush13
TypeScript
Code
79
272
import mockComputedStyles from './util/mock-computed-styles'; import { FlexGapNotSupportedClassName, FlexGapSupportedClassName, } from '../src/constants'; describe('testing detect-flex-gap-support module', () => { beforeEach(() => jest.resetModules()); beforeEach(() => jest.restoreAllMocks()); beforeEach(() ...
16,450
https://github.com/CompassPointMedia/homebase-phase2/blob/master/gf5/console/components/comp_301_propertyimages.php
Github Open Source
Open Source
MIT
null
homebase-phase2
CompassPointMedia
PHP
Code
328
1,627
<?php /* 2012-04-18 $section; //gl_properties || gl_properties_units */ if($submode=='propImageDelete'){ q("DELETE FROM gl_ObjectsTree WHERE Tree_ID=$Tree_ID"); q("DELETE FROM relatebase_tree WHERE ID=$Tree_ID"); } if(!$refreshComponentOnly){ ?><style type="text/css"> .propertyThumbs img{ border:1px solid #555;...
27,316
https://github.com/NDSU-CSA/hack-b0t/blob/master/src/api/messages.ts
Github Open Source
Open Source
MIT
2,018
hack-b0t
NDSU-CSA
TypeScript
Code
133
337
import { IFile } from "./files"; export interface IMessage { type : "message", subtype? : string, user? : string, text? : string, client_msg_id? : string, team? : string, channel? : string, event_ts? : string, ts? : string, files? : IFile[], upload? : boolean, display...
28,553
https://github.com/smeenai/llvm-project/blob/master/llvm/test/CodeGen/AMDGPU/opencl-printf-and-hostcall.ll
Github Open Source
Open Source
NCSA, LLVM-exception, Apache-2.0
2,023
llvm-project
smeenai
LLVM
Code
119
348
; RUN: opt -S -mtriple=amdgcn-unknown-unknown -passes=amdgpu-printf-runtime-binding < %s 2>&1 | FileCheck %s @.str = private unnamed_addr addrspace(4) constant [6 x i8] c"%s:%d\00", align 1 define amdgpu_kernel void @test_kernel(i32 %n) { entry: %str = alloca [9 x i8], align 1, addrspace(5) %call1 = call i32 (ptr...
48,603
https://github.com/cljohnso/terracotta-platform/blob/master/dynamic-config/model/src/main/java/org/terracotta/dynamic_config/api/model/FailoverPriority.java
Github Open Source
Open Source
Apache-2.0
2,021
terracotta-platform
cljohnso
Java
Code
333
889
/* * Copyright Terracotta, 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 agreed to ...
2,663
https://github.com/UnofficialJuliaMirror/SpinnakerGUI.jl-bc11bc94-475e-4eaf-ad55-de9f2e280376/blob/master/src/recording.jl
Github Open Source
Open Source
MIT
2,019
SpinnakerGUI.jl-bc11bc94-475e-4eaf-ad55-de9f2e280376
UnofficialJuliaMirror
Julia
Code
213
748
using VideoIO, Dates """ videowritelistener(;compression=0,overwrite=false, options=``) Write video to file Based on https://discourse.julialang.org/t/creating-a-video-from-a-stack-of-images/646/8 Reference for H.264: https://trac.ffmpeg.org/wiki/Encode/H.264#LosslessH.264 The range of the compression (CRF) scale is...
4,337
https://github.com/huangshiqiang/cn.elwy.eplus/blob/master/code/cn.elwy.eplus/cn.elwy.eplus.framework/src/main/java/cn/elwy/eplus/framework/intercept/CoontrollerInterceptor.java
Github Open Source
Open Source
Apache-2.0
null
cn.elwy.eplus
huangshiqiang
Java
Code
272
1,256
package cn.elwy.eplus.framework.intercept; import java.lang.reflect.Method; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.springframework.core.MethodParameter; import org.springframework.util.Collec...
48,807
https://github.com/Frankie-666/color-emoji.skia/blob/master/include/images/SkBitmapRegionDecoder.h
Github Open Source
Open Source
BSD-3-Clause
2,021
color-emoji.skia
Frankie-666
C
Code
178
411
/* * Copyright 2011 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkBitmapRegionDecoder_DEFINED #define SkBitmapRegionDecoder_DEFINED #include "SkBitmap.h" #include "SkImageDecoder.h" #include "SkStream.h" stru...
24,674
https://github.com/deanterm/ngx-tools/blob/master/ngx-tools/regex/src/date/date.regex.ts
Github Open Source
Open Source
MIT
null
ngx-tools
deanterm
TypeScript
Code
25
108
/** * Define a regex to verify a date * * Matches `3/7/18`, `3-7-18` and `03/07/2018` */ export const dateRegex: RegExp = /^(0?[1-9]|1[012])[- \/.](0?[1-9]|[12][0-9]|3[01])[- \/.](19|20)?\d\d$/;
16,653
https://github.com/mattheusmgermano/GermanoClothing/blob/master/Views/_ViewImports.cshtml
Github Open Source
Open Source
Apache-2.0
null
GermanoClothing
mattheusmgermano
C#
Code
7
36
@using GermanoClothing @using GermanoClothing.Models @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
44,789
https://github.com/kenjiSpecial/portfolio2014/blob/master/public/scss/admin/_works.scss
Github Open Source
Open Source
MIT
2,014
portfolio2014
kenjiSpecial
SCSS
Code
85
372
$DEFAULT_COLOR: #898989; #admin-work-list-container{ .row{ margin-bottom: 100px; } .create-work-col{ margin-top: 40px; } .work-col{ margin-bottom: 90px; } .img{ margin-bottom: 10px; } .title{ color: $DEFAULT_COLOR; font-size: 18px; width: 100%; text-align: right; ...
43,738
https://github.com/pb-10/Smart-Traffic-Light/blob/master/STL_Py/venv/Version_Extended/ExtendedOutputDemo.py
Github Open Source
Open Source
MIT
2,021
Smart-Traffic-Light
pb-10
Python
Code
705
3,948
from turtle import Turtle import turtle from turtle import Screen def HeadText(): turtle.color('black') style = ('Courier', 14,) turtle.speed(1000) turtle.penup() turtle.setposition(-198, 285) turtle.write('Side 1', font=style, align='center') turtle.penup() turtle.setposition(-48, 285...
46,503
https://github.com/282951387/KFrame/blob/master/KFPlugin/KFRouteShard/KFRouteService.cpp
Github Open Source
Open Source
Apache-2.0
2,021
KFrame
282951387
C++
Code
281
937
#include "KFRouteService.hpp" namespace KFrame { void KFRouteService::AddServer( uint64 serverid ) { _server_hash.AddHashNode( _name, serverid, 100 ); _server_object_count_list[ serverid ] = _invalid_int; _min_balance_count = _invalid_int; _min_balance_server_id = serverid; ...
37,599
https://github.com/G-Research/waltz/blob/master/waltz-web/src/main/java/org/finos/waltz/web/endpoints/api/AggregateOverlayDiagramEndpoint.java
Github Open Source
Open Source
Apache-2.0
null
waltz
G-Research
Java
Code
496
2,705
/* * Waltz - Enterprise Architecture * Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project * See README.md for more information * * 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 ...
46,008
https://github.com/vedgar/Luka-python/blob/master/Kuća .py
Github Open Source
Open Source
MIT
2,019
Luka-python
vedgar
Python
Code
156
447
from turtle import * reset() penup() goto(-100, -100) pendown() dot(20, 'red') penup() goto(100, -100) pendown() dot(20, 'yellow') penup() goto(100, 100) pendown() dot(20, 'black') penup() goto(0, 200) pendown() dot(20, 'green') penup() goto(-100, 100) pendown() dot(20, 'blue') penup() check = 1 while check == 1: ...
18,942
https://github.com/techthiyanes/scenic/blob/master/scenic/model_lib/matchers/__init__.py
Github Open Source
Open Source
Apache-2.0
2,022
scenic
techthiyanes
Python
Code
138
349
# Copyright 2022 The Scenic Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
2,483
https://github.com/TlatoaniHJ/Tablisknu/blob/master/src/us/tlatoani/tablisknu/player_head/ExprHeadFromSkin.java
Github Open Source
Open Source
MIT
2,021
Tablisknu
TlatoaniHJ
Java
Code
147
468
package us.tlatoani.tablisknu.player_head; import ch.njol.skript.lang.Expression; import ch.njol.skript.lang.SkriptParser; import ch.njol.skript.lang.util.SimpleExpression; import ch.njol.util.Kleenean; import us.tlatoani.tablisknu.skin.Skin; import org.bukkit.event.Event; import org.bukkit.inventory.ItemStack; /** ...
8,984
https://github.com/RaperSandiaCg/SBDQR/blob/master/resources/views/actividade/edit.blade.php
Github Open Source
Open Source
MIT
null
SBDQR
RaperSandiaCg
PHP
Code
107
738
{{-- @extends('layouts.app') --}} @extends('adminlte::page') @section('template_title') Terminar Actividad @endsection @section('content') <section class="content container-fluid"> <div class="row justify-content-center"> <div class="col-md-6 pt-3"> @includeif('partials.err...
37,576
https://github.com/RaD/ArmpitScheme/blob/master/mcu_specific/STR_7xx/system_0_data.s
Github Open Source
Open Source
MIT
2,014
ArmpitScheme
RaD
null
Spoken
576
1,721
/*------------------------------------------------------------------------------ @ @ ARMPIT SCHEME Version 060 @ @ ARMPIT SCHEME is distributed under The MIT License. @ Copyright (c) 2006-2013 Hubert Montas @ Permission is hereby granted, free of charge, to any person obtaining @ a copy of this software and associ...
45,985
https://github.com/yt4687/TVTComment/blob/master/TVTComment/Model/NiconicoUtils/NicoLiveCommentReceiver.cs
Github Open Source
Open Source
MIT
null
TVTComment
yt4687
C#
Code
406
1,582
using System; using System.Collections.Generic; using System.IO; using System.Net.Http; using System.Net.Sockets; using System.Runtime.CompilerServices; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Xml.Linq; namespace TVTComment.Model.NiconicoUtils { class NicoLiveCommentR...
3,059
https://github.com/movo608/quiz/blob/master/frontend/controllers/TestController.php
Github Open Source
Open Source
BSD-3-Clause
null
quiz
movo608
PHP
Code
19
60
<?php namespace frontend\controllers; use yii\web\Controller; class TestController extends Controller { public function actionTest() { return $this->render('test', []); } }
45,012
https://github.com/omaertin/sp-prosjektportal/blob/master/Glittertind.SharePoint/Glittertind.SharePoint.Catalog/SPI/Modules/SitePages/Portefolje.aspx
Github Open Source
Open Source
MIT
2,014
sp-prosjektportal
omaertin
null
Spoken
225
1,466
<%@ Page Language="C#" MasterPageFile="~masterurl/default.master" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint,Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %> <%@ Register TagPrefix="Taxonomy" Namespace="Microsoft.SharePoint.Taxonomy" Assembly="Microsoft.SharePoi...
49,698
https://github.com/botwhytho/gt4famix3/blob/master/src/GToolkit4Famix3-JavaScript/GtReactComponentReference.class.st
Github Open Source
Open Source
MIT
null
gt4famix3
botwhytho
null
Spoken
215
642
Class { #name : #GtReactComponentReference, #superclass : #FAMIXAssociation, #instVars : [ 'name', 'sender', 'candidates', 'reactComponentAttributes' ], #category : #'GToolkit4Famix3-JavaScript-React' } { #category : #accessing } GtReactComponentReference >> candidates [ <MSEProperty: #candidates type: #...
30,032
https://github.com/cyecp/GF.Unity/blob/master/GF.Unity.Client/Assets/GF.Unity.Sample/ClientSampleApp.cs
Github Open Source
Open Source
MIT
2,021
GF.Unity
cyecp
C#
Code
66
257
using System; using System.Collections.Generic; using System.Text; using UnityEngine; using GF.Unity.Common; public class ClientSampleApp<TDef> : Component<TDef> where TDef : DefSampleApp, new() { //------------------------------------------------------------------------- //----------------------------------...
25,669
https://github.com/isaaceindhoven/isaac-dotcms-minifier/blob/master/isaac-dotcms-minifier-core/src/main/java/nl/isaac/dotcms/minify/shared/HostTools.java
Github Open Source
Open Source
CC-BY-3.0, MIT
2,022
isaac-dotcms-minifier
isaaceindhoven
Java
Code
277
835
package nl.isaac.dotcms.minify.shared; /* * Dotcms minifier by ISAAC is licensed under a * Creative Commons Attribution 3.0 Unported License * * - http://creativecommons.org/licenses/by/3.0/ * * ISAAC Software Solutions B.V. (http://www.isaac.nl) */ import javax.servlet.http.HttpServletRequest; import com.dot...
14,146
https://github.com/pauraurell/Game-Dev/blob/master/The Legend of The Boy/Motor2D/j1Coin.cpp
Github Open Source
Open Source
MIT
null
Game-Dev
pauraurell
C++
Code
387
1,574
#include "p2Defs.h" #include "p2Log.h" #include "j1App.h" #include "j1Coin.h" #include "j1Textures.h" #include "j1Scene.h" #include "j1Audio.h" #include "j1Render.h" #include "j1Input.h" #include "j1Window.h" #include "j1Collision.h" #include "j1Entities.h" #include "SDL_image/include/SDL_image.h" #include "Brofiler/Br...
12,643
https://github.com/Sahil2rick/School-PythonProject/blob/master/CompetitiveProgramming/CodeChef/P10_NAME2.py
Github Open Source
Open Source
MIT
null
School-PythonProject
Sahil2rick
Python
Code
261
430
# A man with name M is allowed to marry a woman with name W, only if M is a subsequence of W or W is a # subsequence of M. # # A is said to be a subsequence of B, if A can be obtained by deleting some elements of B without changing # the order of the remaining elements. # # Your task is to determine whether a couple is...
34,809
https://github.com/pim97/java_world_of_zuul_server_ssl_sockets_multiplayer/blob/master/src/game/room/data/Twintig.java
Github Open Source
Open Source
MIT
2,018
java_world_of_zuul_server_ssl_sockets_multiplayer
pim97
Java
Code
180
631
package game.room.data; import java.util.ArrayList; import java.util.Arrays; import game.dialogue.DialogueOption; import game.dialogue.DialoguePlayerVsNPC; import game.game.Game; import game.game.entity.NPC; import game.game.entity.objects.PlayerObject; import game.room.Room; import game.room.RoomAbstractLoading; imp...
39,562
https://github.com/h2oai/h2o-3/blob/master/h2o-py/tests/testdir_algos/glm/pyunit_glm_seed.py
Github Open Source
Open Source
Apache-2.0
2,023
h2o-3
h2oai
Python
Code
234
750
from builtins import range import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils import random from h2o.estimators.glm import H2OGeneralizedLinearEstimator def glm_seed(): # read in the dataset and construct training set (and validation set) cars = h2o.import_file(path=pyunit_utils.l...
11,389
https://github.com/TKsM151/PostPostmill/blob/master/src/Repository/ForumLogEntryRepository.php
Github Open Source
Open Source
Zlib
2,020
PostPostmill
TKsM151
PHP
Code
69
290
<?php namespace App\Repository; use App\Entity\ForumLogEntry; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Common\Collections\Criteria; use Doctrine\Common\Persistence\ManagerRegistry; use Pagerfanta\Adapter\DoctrineSelectableAdapter; use Pagerfanta\Pagerfanta; class ForumLogEn...
11,823
https://github.com/KiadsCode/AmogusScipts/blob/master/TempData.cs
Github Open Source
Open Source
Apache-2.0
null
AmogusScipts
KiadsCode
C#
Code
215
812
using System; using System.Collections.Generic; using Il2CppDummyDll; // Token: 0x02000501 RID: 1281 [Token(Token = "0x2000501")] public static class TempData { // Token: 0x06001B4D RID: 6989 RVA: 0x00008AD8 File Offset: 0x00006CD8 [Token(Token = "0x6001B4D")] [Address(RVA = "0x4A9EE0", Offset = "0x4A92E0", VA = "...
12,133
https://github.com/aducret/IDVJ-Final/blob/master/Assets/Fonts/Models/Tiles.meta
Github Open Source
Open Source
MIT
2,016
IDVJ-Final
aducret
Unity3D Asset
Code
14
71
fileFormatVersion: 2 guid: b3dfea7ca2afa8a439fb5164f4df0ed8 folderAsset: yes timeCreated: 1481323077 licenseType: Free DefaultImporter: userData: assetBundleName: assetBundleVariant:
31,854
https://github.com/mriduava/mridu-forum/blob/master/src/components/ForumNavbar.js
Github Open Source
Open Source
MIT
2,022
mridu-forum
mriduava
JavaScript
Code
136
502
import React, { useState, useContext } from 'react'; import { Link } from "react-router-dom"; import { UserContext } from '../contexts/UserContextProvider' import {Container, Collapse, Navbar, NavbarToggler, Nav, NavItem} from 'reactstrap'; const ForumNavbar= (props) => { const [isOpen, setIsOpen] = useState(false);...
33,353
https://github.com/nsmilyanski/Programing-Basic-with-Java/blob/master/src/ConditionalStatementsAdvanced/lab/SkiTrip.java
Github Open Source
Open Source
MIT
2,021
Programing-Basic-with-Java
nsmilyanski
Java
Code
210
714
package ConditionalStatementsAdvanced.lab; import java.util.Scanner; public class SkiTrip { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int daysinHotel = Integer.parseInt(scanner.nextLine()); String kindofRoom = scanner.nextLine(); String eval...
50,245
https://github.com/2556-AD/Open-Atom/blob/master/openatom/neutron.py
Github Open Source
Open Source
MIT
2,022
Open-Atom
2556-AD
Python
Code
40
151
from openatom.UNIVERSAL_CONSTANTS import * from openatom.particle import ParticulateMatter class Neutron(ParticulateMatter): def __init__( self, charge = NEUTRON_CHARGE, mass = NEUTRON_MASS, velocity = VAL_TENDS_TO_ZERO, xCoordinate = 0, y...
322
https://github.com/vsoch/authorSynth/blob/master/docs/data/brainlattice/dbc3cde7-b48a-3bdf-93fc-11d9b891d55f_lattice.tsv
Github Open Source
Open Source
MIT
2,021
authorSynth
vsoch
TSV
Code
3,869
27,410
UUID AUTHOR X Y TERMS COLOR SCORE dbc3cde7-b48a-3bdf-93fc-11d9b891d55f Rogers GL 1 1 auditory|speech #FEE188 0.287033332491086 dbc3cde7-b48a-3bdf-93fc-11d9b891d55f Rogers GL 2 1 #FEE188 0.270852012053551 dbc3cde7-b48a-3bdf-93fc-11d9b891d55f Rogers GL 3 1 da|integration #FECB68 0.382264466426988 dbc3cde7-b48a-3bdf-93fc...
26,268
https://github.com/ttaratent/testClass/blob/master/src/com/sqb/designpattern/strategy/ICalculator.java
Github Open Source
Open Source
Apache-2.0
null
testClass
ttaratent
Java
Code
11
36
package com.sqb.designpattern.strategy; public interface ICalculator { public int calculate(String exp); }
26,096
https://github.com/chrisduerr/chatterino2/blob/master/src/widgets/notebooktab.hpp
Github Open Source
Open Source
MIT
2,021
chatterino2
chrisduerr
C++
Code
196
674
#pragma once #include "widgets/basewidget.hpp" #include <QMenu> #include <QPropertyAnimation> #include <boost/property_tree/ptree.hpp> #include <boost/signals2.hpp> #include <boost/signals2/connection.hpp> namespace chatterino { class ColorScheme; namespace widgets { class Notebook; class NotebookPage; class Not...
32,591
https://github.com/OpenCollective/app/blob/master/test/unit/actions/expenses/pay.js
Github Open Source
Open Source
MIT
2,016
app
OpenCollective
JavaScript
Code
154
579
import nock from 'nock'; import expect from 'expect'; import mockStore from '../../helpers/mockStore'; import env from '../../../../frontend/src/lib/env'; import * as constants from '../../../../frontend/src/constants/expenses'; import payExpense from '../../../../frontend/src/actions/expenses/pay'; describe('expenses...
42,670
https://github.com/BCommeine/comunica/blob/master/packages/bus-rdf-dereference/index.ts
Github Open Source
Open Source
MIT
2,018
comunica
BCommeine
TypeScript
Code
4
16
export * from './lib/ActorRdfDereference';
26,217
https://github.com/masgeek/taxi-dashboard/blob/master/api/models/DELIVERY_TIME_MODEL.php
Github Open Source
Open Source
BSD-3-Clause
null
taxi-dashboard
masgeek
PHP
Code
42
123
<?php /** * Created by PhpStorm. * User: masgeek * Date: 22-Jan-18 * Time: 11:33 */ namespace app\api\modules\v1\models; use app\models\DeliveryTime; class DELIVERY_TIME_MODEL extends DeliveryTime { public function fields() { $fields = parent::fields(); // TODO: Change the autogenerated stub ...
22,126
https://github.com/EFraim/phantomjs-mode/blob/master/phantomjs-pkg.el
Github Open Source
Open Source
BSD-3-Clause
null
phantomjs-mode
EFraim
null
Spoken
9
39
(define-package "phantomjs" "1" "PhantomJS interaction" '((js "9") (websocket "20150719.1048")))
47,328
https://github.com/kethsaxena/psScalaProjects/blob/master/scala/ingestionFramework/src/main/scala/com/ps/ingestion/IngestionExecution.scala
Github Open Source
Open Source
MIT
null
psScalaProjects
kethsaxena
Scala
Code
106
413
// OWNER: EDM TEAM 1 // CHANGE DATE: 2/5/2021 // AUTHOR: PRAKETA SAXENA // MAIN: IngestionExecution // SUBCLASS: LoaderDriverProperties // SUBCLASS: RawDriver // SUBLCASS:FullLoader // CHILD SUBCLASS: DeltaLoader // SUBCLASS: Utilities package com.surescripts.edm.ingestion //STANDARD LIBRARY imp...
35,195
https://github.com/bcssov/IronyModManager/blob/master/src/IronyModManager.Storage/Storage.cs
Github Open Source
Open Source
MIT
2,023
IronyModManager
bcssov
C#
Code
1,089
3,604
// *********************************************************************** // Assembly : IronyModManager.Storage // Author : Mario // Created : 01-11-2020 // // Last Modified By : Mario // Last Modified On : 10-28-2022 // **********************************************************************...
32,480
https://github.com/YANGQUNGONGSHE/jesusYQ_U3d/blob/master/Assets/Scripts/Bootstrap/BottomBarCommand.cs
Github Open Source
Open Source
Apache-2.0
2,018
jesusYQ_U3d
YANGQUNGONGSHE
C#
Code
28
105
using System.Collections; using System.Collections.Generic; using strange.extensions.command.impl; using UnityEngine; using WongJJ.Game.Core.StrangeExtensions; public class BottomBarCommand : EventCommand { public override void Execute() { var uid = (UiId)evt.data; iocViewManager.CloseCurrentO...
26,594
https://github.com/p141592/fromat_parse/blob/master/formatter/exceptions.py
Github Open Source
Open Source
BSD-3-Clause
null
fromat_parse
p141592
Python
Code
22
74
class PathException(Exception): """Вызывается, если файл документа не существует""" class SourceNotFoundException(Exception): """Не найден класс для обработки указанного URL""" class SourceUrlConnectFailed(Exception): """URL не доступен"""
21,167
https://github.com/choquidownn25/MaestroDetalle/blob/master/coderush/Controllers/OrdersController.cs
Github Open Source
Open Source
MIT
null
MaestroDetalle
choquidownn25
C#
Code
76
320
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Authorization; using CapaConexion.Models; using Microsoft.AspNetCore.Mvc.Rendering; using System.Linq; namespace Prueba.Controllers { [Authorize(Roles = Pages.MainMenu.Orders.RoleName)] public class OrdersController : Controller { private ...
51,841
https://github.com/vusec/dsn-2016-hsfi/blob/master/apps/linux/pregen/drivers/usb/serial/qcaux.mod.c
Github Open Source
Open Source
Apache-2.0
2,018
dsn-2016-hsfi
vusec
C
Code
56
682
#include <linux/module.h> #include <linux/vermagic.h> #include <linux/compiler.h> MODULE_INFO(vermagic, VERMAGIC_STRING); __visible struct module __this_module __attribute__((section(".gnu.linkonce.this_module"))) = { .name = KBUILD_MODNAME, .init = init_module, #ifdef CONFIG_MODULE_UNLOAD .exit = cleanup_module, ...
21,225
https://github.com/w-labs-project/c-app/blob/master/flink/src/main/java/com/navercorp/pinpoint/flink/mapper/thrift/stat/JoinTransactionBoMapper.java
Github Open Source
Open Source
Apache-2.0
null
c-app
w-labs-project
Java
Code
186
661
/* * Copyright 2017 NAVER Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
9,361
https://github.com/gallo-cedrone/nri-winservices/blob/master/src/scraper/fetcher_test.go
Github Open Source
Open Source
Apache-2.0
2,022
nri-winservices
gallo-cedrone
Go
Code
62
219
/* * Copyright 2020 New Relic Corporation. All rights reserved. * SPDX-License-Identifier: Apache-2.0 */ package scraper import ( "net/http" "net/http/httptest" "testing" "github.com/stretchr/testify/assert" ) func TestGetReal(t *testing.T) { ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWrite...
42,546
https://github.com/Tencent-Cloud-Plugins/tencentcloud-uniapp-plugin-example/blob/master/js_sdk/tencentcloud-plugin-faceid/choose-video-2base64.js
Github Open Source
Open Source
Apache-2.0
2,021
tencentcloud-uniapp-plugin-example
Tencent-Cloud-Plugins
JavaScript
Code
197
466
/* * Copyright (C) 2020 Tencent Cloud. * * 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 ag...
5,136
https://github.com/dartartem/eventuate-examples-restaurant-management/blob/master/e2e-test/src/test/java/net/chrisrichardson/eventstore/examples/management/restaurant/EndToEndTestConfiguration.java
Github Open Source
Open Source
Apache-2.0
2,020
eventuate-examples-restaurant-management
dartartem
Java
Code
65
307
package net.chrisrichardson.eventstore.examples.management.restaurant; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.HttpStatus; import org.springframework.http.converter.HttpMessageConverter; import org.springframework....
31,958
https://github.com/Microchip-MPLAB-Harmony/tflite-micro-apps/blob/master/apps/digit_recognition/firmware/src/config/sam_e70_xult_tm4301b_ssd1963/gfx/legato/generated/le_gen_init.c
Github Open Source
Open Source
BSD-3-Clause-Attribution
null
tflite-micro-apps
Microchip-MPLAB-Harmony
C
Code
99
428
#include "gfx/legato/generated/le_gen_init.h" static int32_t currentScreen; static int32_t changingToScreen; void legato_initializeScreenState(void) { leSetStringTable(&stringTable); initializeStrings(); screenInit_MGScrn(); currentScreen = -1; changingToScreen = -1; legato_showScreen(scre...
47,389
https://github.com/hjc851/Dataset2-HowToDetectAdvancedSourceCodePlagiarism/blob/master/Variant Programs/2-5/4/C3063467A2.java
Github Open Source
Open Source
MIT
null
Dataset2-HowToDetectAdvancedSourceCodePlagiarism
hjc851
Java
Code
98
254
import analog.MechanismMockup; public class C3063467A2 { private static final String synX421String = ""; private static final String synX420String = "Error: No input file provided. Please run again with a input param."; private static final int synX419int = 1; private static final int synX418int = 180054...
7,630
https://github.com/Jeseeq/pozov-react/blob/master/src/routes/Categories/Categories.js
Github Open Source
Open Source
MIT
null
pozov-react
Jeseeq
JavaScript
Code
50
168
import React from 'react' import CategoriesData from './data/CategoriesData' import Category from './components/Category' export default class Documents extends React.Component { render () { return ( <div> <div className='page-header'><h1>Стоворити документ</h1></div> <div className='row'> ...
37,934
https://github.com/mosoft521/sharding-jdbc/blob/master/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-scaling/src/test/java/org/apache/shardingsphere/integration/data/pipeline/cases/mysql/BaseMySQLScalingIT.java
Github Open Source
Open Source
Apache-2.0
2,022
sharding-jdbc
mosoft521
Java
Code
275
1,100
/* * 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 ...
16,491
https://github.com/chenshuhao/shake/blob/master/wxapi/core/popularize.class.php
Github Open Source
Open Source
BSD-2-Clause
null
shake
chenshuhao
PHP
Code
216
1,531
<?php namespace wxapi\core; /** * 推广支持 */ class popularize { /** * 生成带参数的二维码 - 第一步 创建二维码ticket * * 获取带参数的二维码的过程包括两步,首先创建二维码ticket,然后凭借ticket到指定URL换取二维码。 * * 目前有2种类型的二维码,分别是临时二维码和永久二维码, * 前者有过期时间,最大为1800秒,但能够生成较多数量,后者无过期时间,数量较少(目前参数只支持1--100000)。 * 两种二维码分别适用于帐号绑定、用户来源统计等场景。...
5,816
https://github.com/noelnamai/nd4j/blob/master/nd4j-jcublas-parent/nd4j-jcublas-common/src/main/java/jcuda/jcurand/curandDirectionVectorSet.java
Github Open Source
Open Source
Apache-2.0
2,015
nd4j
noelnamai
Java
Code
327
829
/* * * * Copyright 2015 Skymind,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 * * * * U...
36,086
https://github.com/DeathByKorea/nova-renderer/blob/master/src/main/cpp/render/objects/uniform_buffers/uniform_buffers_definitions.cpp
Github Open Source
Open Source
MIT
null
nova-renderer
DeathByKorea
C++
Code
133
287
/*! * \brief Defines the functions defclared in uniform_buffer_definitions.h. This is mostly printing operators because * debugging is hard * * \author ddubois * \date 22-Jan-17. */ #include "uniform_buffer_definitions.h" namespace nova { el::base::Writer &operator<<(el::base::Writer &out, const glm::mat4 ...
52,574
https://github.com/Qibbi/BinaryAssetBuilder/blob/master/source/BinaryAssetBuilder.XmlCompiler/Marshaler.UnitAbilityButtonTemplateStore.cs
Github Open Source
Open Source
MIT
2,021
BinaryAssetBuilder
Qibbi
C#
Code
383
1,707
using Relo; using SageBinaryData; public static partial class Marshaler { public static unsafe void Marshal(Node node, UnitAbilityButtonTemplateData* objT, Tracker state) { if (node is null) { return; } Marshal(node.GetAttributeValue(nameof(UnitAbilityButtonTemplate...
35,990
https://github.com/nikgraf/react-look/blob/master/test/core/resolver-test.js
Github Open Source
Open Source
MIT, CC-BY-4.0
2,016
react-look
nikgraf
JavaScript
Code
243
643
import { expect } from 'chai' import React, { Component } from 'react' import { resolveChildren, isLookEnhanced, resolveProps, resolvePlugins } from '../../modules/core/resolver' import resolveStyles from '../../modules/core/native/resolver' import look from '../../modules/core/enhancer' import _ from 'lodash' const m...
13,255
https://github.com/animesharma/revive-be/blob/master/src/repo/repo.service.ts
Github Open Source
Open Source
MIT
null
revive-be
animesharma
TypeScript
Code
271
966
import { Injectable } from '@nestjs/common'; import { Platform } from '../game/interface/game.interface'; import { Game } from '../game/schemas/game.schema'; import { RepoGameResponse, RepoProvider } from './interface/repo.interface'; import { IGDBService } from './repoProviders/igdb.service'; import { RawgService } fr...
21,315
https://github.com/ObjectProfile/Spy2/blob/master/src/Spy2-Collections.package/S2String.class/instance/padLeftTo.with..st
Github Open Source
Open Source
MIT
2,022
Spy2
ObjectProfile
null
Spoken
20
38
as yet unclassified padLeftTo: length with: char ^ (String new: (length - self size max: 0) withAll: char) , self.
46,029
https://github.com/python-kol/libkol/blob/master/examples/combat.py
Github Open Source
Open Source
BSD-3-Clause
2,022
libkol
python-kol
Python
Code
75
227
""" This file shows how you can use adventure using libkol """ import os from dotenv import load_dotenv from libkol import run, Session from libkol.request.combat import CombatRound load_dotenv() async def do_combat(combat, start: CombatRound): monster_hp = await start.monster.get_hp() round = start wh...
44,198
https://github.com/elzes/cucumber-reports/blob/master/cucumber-report-generator/src/main/java/com/github/mkolisnyk/cucumber/reporting/package-info.java
Github Open Source
Open Source
Apache-2.0
2,022
cucumber-reports
elzes
Java
Code
12
39
/** * . */ /** * @author Mykola * */ package com.github.mkolisnyk.cucumber.reporting;
7,752
https://github.com/jwebmeister/A3addons_jw/blob/master/CUPconfig_jw/addons/rpgCUP_jw/config.cpp
Github Open Source
Open Source
MIT
null
A3addons_jw
jwebmeister
C++
Code
232
696
class CfgPatches { class rpgCUP_jw { units[] = {}; weapons[] = {}; requiredVersion = 2.00; requiredAddons[] = { "CUP_Weapons_RPG7", "CUP_Weapons_Ammunition" }; version = "1.0"; versionStr = "1.0"; author = "JWebmeister"; ...
17,199
https://github.com/cursosemvideo/template-curso-pizzaria/blob/master/src/main/java/com/pizzaria/controller/IndexController.java
Github Open Source
Open Source
MIT
null
template-curso-pizzaria
cursosemvideo
Java
Code
37
125
package com.pizzaria.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.servlet.ModelAndView; /** * Created by lucasbarros on 26/07/2017. */ @Controller public class IndexController { private static final Str...
12,716
https://github.com/rafaelfvalim/Homsoft/blob/master/src/zhms_tb_exc_crc.fugr.lzhms_tb_exc_crci00.abap
Github Open Source
Open Source
MIT
2,020
Homsoft
rafaelfvalim
null
Spoken
27
66
*---------------------------------------------------------------------* * view related PAI modules * generation date: 12.07.2017 at 15:47:21 * view maintenance generator version: #001407# *---------------------------------------------------------------------* INCLUDE LSVIMITX . "base table related PAI modules
35,345
https://github.com/cms-sw/cmssw/blob/master/Geometry/GEMGeometry/src/GEMSuperChamber.cc
Github Open Source
Open Source
Apache-2.0
2,023
cmssw
cms-sw
C++
Code
250
825
#include "Geometry/GEMGeometry/interface/GEMSuperChamber.h" #include "Geometry/GEMGeometry/interface/GEMChamber.h" GEMSuperChamber::GEMSuperChamber(GEMDetId id, const ReferenceCountingPointer<BoundPlane>& plane) : GeomDet(plane), detId_(id) { setDetId(id); } GEMSuperChamber::~GEMSuperChamber() {} GEMDetId GEMS...
11,158
https://github.com/macedo22/spectre/blob/master/src/Evolution/DgSubcell/Mesh.hpp
Github Open Source
Open Source
MIT
2,021
spectre
macedo22
C++
Code
69
170
// Distributed under the MIT License. // See LICENSE.txt for details. #pragma once #include <cstddef> /// \cond template <size_t Dim> class Mesh; /// \endcond namespace evolution::dg::subcell::fd { /*! * \brief Computes the cell-centered finite-difference mesh from the DG mesh, * using \f$2N-1\f$ grid points per ...
21,221
https://github.com/cloudmattcloud/Macro-Explain-o-Matic/blob/master/search.py
Github Open Source
Open Source
Apache-2.0
2,021
Macro-Explain-o-Matic
cloudmattcloud
Python
Code
221
736
''' Search and browse. ''' import os import cgi import logging from google.appengine.ext import webapp from google.appengine.ext.webapp import template from google.appengine.ext.webapp.util import run_wsgi_app from macro.render.defs import * from macro.render.encoding import...
36,293
https://github.com/touir1/Atlas/blob/master/Atlas_APP/Atlas_FRONT/Atlas-frontend/Services/Implementation/ConfigurationService.cs
Github Open Source
Open Source
MIT
null
Atlas
touir1
C#
Code
167
585
using Atlas_frontend.Models; using Atlas_frontend.Models.Enums; using Atlas_frontend.Utils.RestAPI; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Configuration; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Threading; using System.Threading.Tasks...
7,971
https://github.com/bhcosta90-fullcycle20/ms-catalog-videos-backend-8880/blob/master/tests/Traits/Models/VideoTrait.php
Github Open Source
Open Source
MIT
null
ms-catalog-videos-backend-8880
bhcosta90-fullcycle20
PHP
Code
30
152
<?php declare(strict_types=1); namespace Tests\Traits\Models; use Illuminate\Http\UploadedFile; trait VideoTrait { protected function getFiles() { return [ 'video_file' => UploadedFile::fake()->create('video.mp4'), 'trailer_file' => UploadedFile::fake()->create('video.mp4'), ...
27,807
https://github.com/huxingyi/dust3d/blob/master/application/third_party/QtWaitingSpinner/qtwaitingspinner.pri
Github Open Source
Open Source
MIT
2,023
dust3d
huxingyi
null
Spoken
9
38
INCLUDEPATH += \ $$PWD LIBS += \ -L../qtwaitingspinner -lqtwaitingspinner
50,982
https://github.com/evandrogdn/af-helpers/blob/master/test/Dates.js
Github Open Source
Open Source
MIT
null
af-helpers
evandrogdn
JavaScript
Code
41
105
const assert = require('assert'); const { Dates } = require('../src/index'); describe('Dates', function() { // describe("DATE", function() { // const value = "", // expected = false; // it(`'must validate if '${value}'`, function() { // assert.equal(Dates.isEmpty(value), expected); // }); // }); }...
45,365
https://github.com/Johnanater/openmod/blob/master/framework/OpenMod.Core/Rcon/IRconHost.cs
Github Open Source
Open Source
MIT
2,022
openmod
Johnanater
C#
Code
29
89
using System.Net; using System.Threading; using System.Threading.Tasks; namespace OpenMod.Core.Rcon { public interface IRconHost { bool IsListening { get; } Task StartListeningAsync(IPEndPoint bind, CancellationToken cancellationToken = default); Task StopListeningAsync(); } }
35,652
https://github.com/solitariaa/CMPUT404-project-socialdistribution/blob/master/backend/comment/migrations/0004_remove_comment_author_comment_author_url.py
Github Open Source
Open Source
W3C-20150513
2,022
CMPUT404-project-socialdistribution
solitariaa
Python
Code
36
190
# Generated by Django 4.0.2 on 2022-03-08 02:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('comment', '0003_alter_comment_contenttype'), ] operations = [ migrations.RemoveField( model_name='comment', name='au...
4,230
https://github.com/monkdaf/skuter77-opencart/blob/master/admin/view/template/module/fastor.tpl
Github Open Source
Open Source
MIT
null
skuter77-opencart
monkdaf
null
Spoken
20,000
66,729
<?php echo $header; ?> <?php function get_fonts() { $fonts = array( 'standard', 'ABeeZee', 'Abel', 'Abril Fatface', 'Aclonica', 'Acme', 'Actor', 'Adamina', 'Advent Pro', 'Aguafina Script', 'Akronim', 'Aladin', 'Aldrich', 'Alef', 'Alegreya', 'Alegreya SC', 'Alex Brush', 'Alfa Slab One', 'Alice', 'Alike', 'Alike Angular'...
30,470
https://github.com/MatejBabis/AdventOfCode2k18/blob/master/day4/part2.py
Github Open Source
Open Source
MIT
2,018
AdventOfCode2k18
MatejBabis
Python
Code
53
182
import part1 if __name__ == "__main__": sorted_data = part1.process_file("input.txt") dataset = part1.organise_records(sorted_data) # hold the record (GuardID, "most asleep" minute, value at this minute) maximum = (None, None, 0) for guard in dataset: _, most_sleepy_minute, most_sleepy_min...
10,709
https://github.com/FadwaSoti/Stencille/blob/master/node_modules/@stencil/core/dist/transpiled-build-conditionals/declarations/functional-components.d.ts
Github Open Source
Open Source
MIT
null
Stencille
FadwaSoti
TypeScript
Code
101
277
export interface FunctionalUtilities { forEach: (children: FVNode[], cb: (vnode: ChildNode, index: number, array: FVNode[]) => void) => void; map: (children: FVNode[], cb: (vnode: ChildNode, index: number, array: FVNode[]) => ChildNode) => FVNode[]; } export interface FunctionalComponent<T = {}> { (props: T...
40,955
https://github.com/Bullsized/Assignments-Fundamentals-Normal/blob/master/23 - 24 Objects and Classes/2017-06-21/07 Andrey and Billiard 02/07 Andrey and Billiard 02.cs
Github Open Source
Open Source
MIT
2,017
Assignments-Fundamentals-Normal
Bullsized
C#
Code
294
885
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _07_Andrey_and_Billiard_02 { class Program { static void Main(string[] args) { Dictionary<string, decimal> shopItems = new Dictionary<string, decimal>(); ...
30,231
https://github.com/RM-801/DMTQ-Tools/blob/master/lz4_tool/Program.cs
Github Open Source
Open Source
BSD-2-Clause, MIT
2,020
DMTQ-Tools
RM-801
C#
Code
281
913
using System; using System.IO; using LZ4; namespace lz4_tool { class Program { static void Main(string[] args) { Console.WriteLine("DMTQ Tools - lz4 tool"); if (args.Length < 1) { Console.WriteLine("Usage: lz4_tool.exe [-d <folder_path>] [-c ...
4,698
https://github.com/alz-sinton/dinkly-test/blob/master/plugins/mini_ticket/apps/mini_ticket_admin/layout/header.php
Github Open Source
Open Source
MIT
null
dinkly-test
alz-sinton
PHP
Code
262
1,130
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Bootswatch: Simplex</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="Mini and minimalist."> <meta name="author" content="Thomas Park"> <!--[if lt IE 9]> ...
25,455
https://github.com/MAIF/daikoku/blob/master/daikoku/javascript/src/contexts/modals/LoginOrRegisterModal.tsx
Github Open Source
Open Source
BSD-3-Clause, CC-BY-1.0, CC-BY-4.0, LicenseRef-scancode-other-permissive, CC-BY-3.0, AFL-2.1, WTFPL, MIT, Unlicense, OFL-1.1, GPL-2.0-only, Apache-2.0, BSD-2-Clause, MPL-2.0
2,023
daikoku
MAIF
TSX
Code
113
455
import { useContext } from 'react'; import { I18nContext } from '../../core'; import { IBaseModalProps, ILoginOrRegisterModalProps } from './types'; export const LoginOrRegisterModal = (props: ILoginOrRegisterModalProps & IBaseModalProps) => { const loginProvider = props.tenant.authProvider; const { translate }...
45,503