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/burtworld/QLIconFont/blob/master/QLIconFont/Classes/UIButton+QLIconFont.m
Github Open Source
Open Source
MIT
2,019
QLIconFont
burtworld
Objective-C
Code
53
202
// // UIButton+QLIconFont.m // QLIconFont // // Created by Paramita on 2018/6/7. // Copyright © 2018年 Paramita. All rights reserved. // #import "UIButton+QLIconFont.h" @implementation UIButton (QLIconFont) - (instancetype)setTextWithIconFontInfo:(QLIconFontInfo *)info state:(UIControlState)state{ if (info ==...
34,055
https://github.com/lechium/iOS1351Headers/blob/master/System/Library/PrivateFrameworks/DAEASOAuthFramework.framework/DAEASOAuthFramework.h
Github Open Source
Open Source
MIT
2,022
iOS1351Headers
lechium
C
Code
26
274
#import <DAEASOAuthFramework/DAEASOAuthTokenRequest.h> #import <DAEASOAuthFramework/DAEASOAuthTokenResponse.h> #import <DAEASOAuthFramework/DAEASOpenIDMetadataRequest.h> #import <DAEASOAuthFramework/DAEASOpenIDMetadataResponse.h> #import <DAEASOAuthFramework/DAEASOAuthMigrationRequest.h> #import <DAEASOAuthFramework/DA...
46,354
https://github.com/sanmayad/substance/blob/master/model/ContainerSelection.js
Github Open Source
Open Source
MIT
2,017
substance
sanmayad
JavaScript
Code
1,512
4,461
import isNil from '../util/isNil' import Coordinate from './Coordinate' import Selection from './Selection' import PropertySelection from './PropertySelection' /** A selection spanning multiple nodes. @class @extends PropertySelection @example ```js var containerSel = doc.createSelection({ type: 'co...
15,082
https://github.com/jamesstoneco/canvas-only/blob/master/live-examples/toxi/js/app.coffee
Github Open Source
Open Source
MIT
2,015
canvas-only
jamesstoneco
CoffeeScript
Code
212
756
# loosly based on the colorwaves example by Kyle Philips (http://www.haptic-data.com/toxiclibsjs/examples/ColorWaves_raphael.html) coffee_draw = (p5) -> # class def class Particle constructor: (opts) -> @loc = new toxi.geom.Vec2D(opts.x, opts.y) @vel = new toxi.geom.Vec2D(opts.velx, opts.vely) ...
19,783
https://github.com/avrumnoor/NewsSummarizer/blob/master/venv/lib/python3.8/site-packages/joblib/test/test_deprecated_objects.py
Github Open Source
Open Source
MIT
2,022
NewsSummarizer
avrumnoor
Python
Code
111
391
""" Tests making sure that deprecated objects properly raise a deprecation warning when imported/created. """ import sys import pytest from joblib.my_exceptions import _deprecated_names as _deprecated_exceptions from joblib.format_stack import _deprecated_names as _deprecated_format_utils @pytest.mark.xfail(sys.ver...
29,695
https://github.com/zregvart/wiremock/blob/master/src/test/java/com/github/tomakehurst/wiremock/VerificationAcceptanceTest.java
Github Open Source
Open Source
Apache-2.0
null
wiremock
zregvart
Java
Code
575
3,065
/* * Copyright (C) 2011 Thomas Akehurst * * 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...
42,005
https://github.com/javagossip/armeria/blob/master/zipkin/src/test/java/com/linecorp/armeria/server/tracing/TracingServiceTest.java
Github Open Source
Open Source
Apache-2.0
null
armeria
javagossip
Java
Code
444
1,662
/* * Copyright 2016 LINE Corporation * * LINE Corporation licenses this file to you 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 re...
29,333
https://github.com/drnic/picasa_plucker/blob/master/features/step_definitions/fetch_html_steps.rb
Github Open Source
Open Source
MIT
2,011
picasa_plucker
drnic
Ruby
Code
24
81
Given /^I expect to fetch "([^\"]*)" but use "([^\"]*)"$/ do |url, fixture| body = File.read(File.join(File.dirname(__FILE__) + "/../fixtures/", fixture)) FakeWeb.register_uri(:get, url, :body => body) end
45,018
https://github.com/tuura/fantasi/blob/master/dependencies/counter.vhdl
Github Open Source
Open Source
MIT
2,018
fantasi
tuura
VHDL
Code
96
273
-- Generic counter LIBRARY ieee; USE ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all; LIBRARY work; ENTITY Generic_counter IS GENERIC (N : integer := 8); PORT ( CLK : IN std_logic; RST : IN std_logic; EN : IN std_logic; DOUT : OUT std_logic_vector(N-1 ...
48,040
https://github.com/jbiscella/reacted/blob/master/pattern/src/main/java/io/reacted/patterns/Try.java
Github Open Source
Open Source
Apache-2.0
null
reacted
jbiscella
Java
Code
4,369
9,907
/* * Copyright (c) 2020 , <Pierre Falda> [ pierre@reacted.io ] * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ package io.reacted.patterns; import java.util.NoSuchElementException; import java.util.Obje...
18,872
https://github.com/coodex2016/concrete.coodex.org/blob/master/concrete-pom/concrete-apache-dubbo-pom/concrete-apache-dubbo-spring-boot/src/main/java/EnableConcreteApacheDubbo.java
Github Open Source
Open Source
Apache-2.0
2,021
concrete.coodex.org
coodex2016
Java
Code
206
796
/* * Copyright (c) 2020 coodex.org (jujus.shen@126.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
40,686
https://github.com/tln/autotabs/blob/master/Gruntfile.js
Github Open Source
Open Source
MIT
2,013
autotabs
tln
JavaScript
Code
148
580
module.exports = function ( grunt ) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON( "package.json" ), uglify: { options: { // the banner is inserted at the top of the output banner: "/*! <%= pkg.name %> <%= grunt.template.today('dd-mm-yyyy') %> */\n" }, dist: { file...
9,583
https://github.com/k124k3n/competitive-programming-answer/blob/master/kattis/quadrant.cpp
Github Open Source
Open Source
MIT
2,019
competitive-programming-answer
k124k3n
C++
Code
61
145
/*input 10 -6 */ #include <iostream> int x, y, q; int main(){ std::cin>>x>>y; if(x > 0 && y > 0){ q = 1; }else if(x < 0 && y < 0){ q = 3; }else if(y < 0 && x > 0){ q = 4; }else if(y > 0 && x < 0){ q = 2; } std::cout<<q<<std::endl; return 0; }
1,740
https://github.com/SheldonYS/v-systems/blob/master/src/main/scala/vsys/blockchain/contract/ContractPaymentChannel.scala
Github Open Source
Open Source
MIT
null
v-systems
SheldonYS
Scala
Code
985
4,419
package vsys.blockchain.contract import com.google.common.primitives.{Ints, Longs} import vsys.blockchain.contract.ContractGen._ import vsys.blockchain.state._ import vsys.utils.serialization.Deser object ContractPaymentChannel { lazy val contract: Contract = Contract.buildContract(Deser.serilizeString("vdds"), Int...
51,390
https://github.com/Standin-Alone/Evo2/blob/master/app/Modules/BudgetModule/Http/Controllers/BudgetModuleController.php
Github Open Source
Open Source
MIT
null
Evo2
Standin-Alone
PHP
Code
373
2,059
<?php namespace App\Modules\BudgetModule\Http\Controllers; use Ramsey\Uuid\Uuid; use Illuminate\Support\Str; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use App\Http\Controllers\Controller; use Yajra\DataTables\Facades\DataTables; use App\Modules\BudgetModule\Models\BudgetModule; use App\Modules\B...
33,111
https://github.com/hasura/graphql-engine/blob/master/server/forks/hedis/src/Database/Redis/Protocol.hs
Github Open Source
Open Source
MIT, Apache-2.0
2,023
graphql-engine
hasura
Haskell
Code
382
842
{-# LANGUAGE CPP #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE OverloadedStrings #-} module Database.Redis.Protocol (Reply(..), reply, renderRequest) where import Prelude hiding (error, take) #if __GLASGOW_HASKELL__ < 710 import Control.Applicative #endif import Control.DeepSeq import Scanner (Scanner) import quali...
39,550
https://github.com/garretrieger/skia/blob/master/src/gpu/tessellate/GrPathCurveTessellator.h
Github Open Source
Open Source
BSD-3-Clause
2,021
skia
garretrieger
C++
Code
262
676
/* * Copyright 2021 Google LLC. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef GrPathCurveTessellator_DEFINED #define GrPathCurveTessellator_DEFINED #include "src/gpu/GrVertexChunkArray.h" #include "src/gpu/tessellate/GrPathTessellator.h" class...
14,635
https://github.com/matematikaadit/happybite/blob/master/python/p002.py
Github Open Source
Open Source
MIT
2,014
happybite
matematikaadit
Python
Code
54
109
#!/usr/bin/env python3 # Even Fibonacci numbers # # find the sum of even-valued terms of fibonacci numbers whose value # doesn't exceed four million a = 1 b = 1 total = 0 MAX = 4000000 while a < MAX: if a%2==0: total += a a, b = b, a+b print(total) # output: 4613732
39,766
https://github.com/firedrakeproject/petsc/blob/master/src/mat/impls/sbaij/mpi/mpiaijsbaij.c
Github Open Source
Open Source
BSD-2-Clause
2,019
petsc
firedrakeproject
C
Code
319
2,053
#include <../src/mat/impls/sbaij/mpi/mpisbaij.h> /*I "petscmat.h" I*/ #include <../src/mat/impls/aij/mpi/mpiaij.h> #include <petsc/private/matimpl.h> #include <petscmat.h> PETSC_INTERN PetscErrorCode MatConvert_MPIAIJ_MPISBAIJ(Mat A, MatType newtype,MatReuse reuse,Mat *newmat) { PetscErrorCode ierr; Mat ...
12,113
https://github.com/speyejack/dotfiles/blob/master/configs/emacs.d/start.el
Github Open Source
Open Source
MIT
null
dotfiles
speyejack
null
Spoken
280
1,107
;;; start.el --- Emacs Initialization File ;; ;; Copyright (c) 2020 Jack Garrard ;; ;; Author: Jack Garrard <speyejack@gmail.com> ;; URL: https://github.com/speyejack/dotfiles ;; ;; This file is not part of GNU Emacs. ;;; Commentary: ;;; Code: ;; Prevent emacs from auto adding this ;; (package-initialize) ;;(setq u...
27,778
https://github.com/MGM-HUD-Hackathon/TemplateRepo/blob/master/Assets/DAQRI/Scripts/Initializer.cs
Github Open Source
Open Source
MIT
2,017
TemplateRepo
MGM-HUD-Hackathon
C#
Code
142
381
// Copyright © 2017 DAQRI, LLC and its affiliates. All Rights Reserved. using System.Collections; using System.Collections.Generic; using UnityEngine; namespace DAQRI { /// <summary> /// The VIO initializer places a game object at an offset in front of the camera when we get valid pose information, /...
19,647
https://github.com/millenomi/ambianceapp/blob/master/WindowsPhone/MainPage.xaml.cs
Github Open Source
Open Source
BSD-3-Clause, MIT
2,011
ambianceapp
millenomi
C#
Code
203
678
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using Microsoft.Phone.Cont...
38,806
https://github.com/mwkcoding/budget/blob/master/database/migrations/2019_01_08_203427_rename_notifications_table.php
Github Open Source
Open Source
MIT
2,019
budget
mwkcoding
PHP
Code
27
99
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class RenameNotificationsTable extends Migration { public function up() { Schema::rename('notifications', 'activities'); } public function down() { Schema::...
35,419
https://github.com/rbury/TopDeskClient/blob/master/TopDeskClient/Public/Disconnect-TopDesk.ps1
Github Open Source
Open Source
MIT
null
TopDeskClient
rbury
PowerShell
Code
85
308
function Disconnect-TopDesk { <# .Synopsis Disconnect from TopDesk instance. .DESCRIPTION This command disconnects from the current TopDesk instance, clearing instance and authentication information. .EXAMPLE Disconnect-TopDesk This command will disconnect from the...
9,711
https://github.com/futurum-dev/dotnet.futurum.webapiendpoint/blob/master/src/Futurum.WebApiEndpoint/Metadata/MetadataRouteDefinition.cs
Github Open Source
Open Source
MIT
null
dotnet.futurum.webapiendpoint
futurum-dev
C#
Code
41
155
using Futurum.ApiEndpoint; using Futurum.Core.Option; using Microsoft.AspNetCore.Mvc; namespace Futurum.WebApiEndpoint.Metadata; /// <summary> /// Metadata definition for a WebApiEndpoint Route /// </summary> public record MetadataRouteDefinition(MetadataRouteHttpMethod HttpMethod, string RouteTemplate, ApiVersion? ...
39,804
https://github.com/bizintekdev/mOway_SW_mOwayWorld/blob/master/mOway_SW_mOwayWorld/MowayProject/GraphicProject/Forms/VariableListViewItem.cs
Github Open Source
Open Source
MIT
null
mOway_SW_mOwayWorld
bizintekdev
C#
Code
117
375
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Text; using System.Windows.Forms; using Moway.Template; namespace Moway.Project.GraphicProject.Forms { public partial class VariableListViewItem : UserControl { #region Attributes ...
13,751
https://github.com/wadejong/NWChem-Json/blob/master/src/tce/eomccsd/eomccsd_density1.F
Github Open Source
Open Source
ECL-2.0
2,017
NWChem-Json
wadejong
null
Spoken
20,000
98,878
SUBROUTINE eomccsd_density1(d_d1,d_i0,d_t1,d_t2,d_x0,d_x1,d_x2,d_y &0,d_y1,d_y2,k_d1_offset,k_i0_offset,k_t1_offset,k_t2_offset,k_x0_o &ffset,k_x1_offset,k_x2_offset,k_y0_offset,k_y1_offset,k_y2_offset) C $Id: eomccsd_density1.F 24184 2013-05-04 00:43:17Z edo $ C This is a Fortran77 program generated by Tensor Contract...
13,093
https://github.com/MaximeKjaer/tf-dotty/blob/master/modules/compiletime/src/main/scala/io/kjaer/compiletime/IndicesOf.scala
Github Open Source
Open Source
MIT
2,022
tf-dotty
MaximeKjaer
Scala
Code
69
217
package io.kjaer.compiletime /** Type-class used to materialize the singleton type of an [[Indices]]. * * @see * ShapeOf */ final class IndicesOf[T <: Indices](val value: T) object IndicesOf { given indicesOfINilType: IndicesOf[INil.type] = IndicesOf(INil) given indicesOfINil: IndicesOf[INil] = IndicesO...
51,031
https://github.com/giordano/DataScienceTutorials.jl/blob/master/_assets/pages/isl/lab-8/code/ex6.jl
Github Open Source
Open Source
MIT
2,022
DataScienceTutorials.jl
giordano
Julia
Code
26
76
# This file was generated, do not modify it. # hide train, test = partition(eachindex(y), 0.5, shuffle=true, rng=333) fit!(mach, rows=train) ypred = predict_mode(mach, rows=test) misclassification_rate(ypred, y[test])
26,035
https://github.com/dtaniwaki/koa-no-bot/blob/master/lib/index.js
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,016
koa-no-bot
dtaniwaki
JavaScript
Code
113
367
var middleware; middleware = function(options) { var bots, callback, ref; ref = options || {}, bots = ref.bots, callback = ref.callback; bots || (bots = middleware.default_bots); callback || (callback = function(bot, ua) { console.log("Found " + bot.name + " (" + bot.regexp + "):", ua); return this["th...
6,314
https://github.com/JongyunHa/COMP2500CodeSamples/blob/master/src/myself/WaterSpray.java
Github Open Source
Open Source
MIT
null
COMP2500CodeSamples
JongyunHa
Java
Code
64
214
package myself; public class WaterSpray { private static final int CAPACITY = 200; private int remainingWaterInMl = 0; public WaterSpray(int remainingWaterInMl) { this.remainingWaterInMl = remainingWaterInMl; } public int getRemainingWaterInMl() { return remainingWaterInMl; } ...
37,504
https://github.com/cerner/terra-framework/blob/master/packages/terra-application-navigation/src/drawer-menu/DrawerMenu.module.scss
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-free-unknown
2,023
terra-framework
cerner
SCSS
Code
145
729
// Themes @import '../clinical-lowlight-theme/DrawerMenuCommon.module'; @import '../orion-fusion-theme/DrawerMenuCommon.module'; :local { .drawer-container { height: 100%; overflow: hidden; user-select: none; } .drawer-menu { background-color: var(--terra-application-navigation-drawer-menu-backg...
3,776
https://github.com/jayheiland/Cartwright/blob/master/src/message.cpp
Github Open Source
Open Source
MIT
null
Cartwright
jayheiland
C++
Code
174
833
#include "message.h" extern engineData ENGINE_DATA; //helper function, handles messages directed at graphics code void send_GraphicsMsg(std::vector<std::string> tokens, bool *validMsg){ if(tokens[0] == "RESIZE_WINDOW"){ ENGINE_DATA.windowWidth = std::stoi(tokens[1]); ENGINE_DATA.windowHeight = std...
39,182
https://github.com/jadametz/dotfiles/blob/master/brew.sh
Github Open Source
Open Source
MIT
null
dotfiles
jadametz
Shell
Code
438
1,066
#!/usr/bin/env bash # Install command-line tools & applications using Homebrew. # Heavily inspired by mathiasbynens/dotfiles/brew.sh # CLI Options // Usage if [ "#1" = "-h" ] || [ "$1" = "--help" ] ; then echo "Usage: brew.sh (-i)" echo "Formulae install: brew.sh" echo "Homebrew + formulae install: brew.sh -i" e...
13,698
https://github.com/PlayFab/PlayFabCLI/blob/master/PlayFabPowerTools/Packages/PlayFabLoginPackage.cs
Github Open Source
Open Source
Apache-2.0
2,023
PlayFabCLI
PlayFab
C#
Code
270
966
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using PlayFab; using PlayFab.EditorModels; using PlayFabPowerTools.Services; namespace PlayFabPowerTools.Packages { public class PlayFabLoginPackage : iStatePackage { private string _use...
35,440
https://github.com/imatlopez/marvis-bot/blob/master/.gitmodules
Github Open Source
Open Source
MIT
2,017
marvis-bot
imatlopez
Git Config
Code
8
35
[submodule "puzzle"] path = puzzle url = https://github.com/imatlopez/15-puzzle
50,372
https://github.com/ahmedfekry/Web-projects/blob/master/Spacive/testIndex.php
Github Open Source
Open Source
Apache-2.0
2,016
Web-projects
ahmedfekry
PHP
Code
134
476
<!-- <!DOCTYPE html> <html> <head> <title></title> </head> <body> <form id="myForm"> <input type="submit" name="Submit"> </form> <table id="Space" border='1'> <tbody> <tr> <td>Name</td> <td>Location</td> </tr> </tbody> </table> <script src="website/js/jquery.js"></script> <scrip...
2,788
https://github.com/timxor/leetcode-journal/blob/master/solutions/LeetCode/C++/612.cpp
Github Open Source
Open Source
MIT
2,022
leetcode-journal
timxor
C++
Code
74
249
__________________________________________________________________________________________________ SELECT ROUND(SQRT(MIN((POW(p1.x - p2.x, 2) + POW(p1.y - p2.y, 2)))), 2) AS shortest FROM point_2d p1 JOIN point_2d p2 ON p1.x != p2.x OR p1.y != p2.y ; ________________________________________________...
12,487
https://github.com/jhulten/chef/blob/master/chef/lib/chef/cookbook/syntax_check.rb
Github Open Source
Open Source
Apache-2.0
2,015
chef
jhulten
Ruby
Code
395
1,323
# # Author:: Daniel DeLeo (<dan@opscode.com>) # Copyright:: Copyright (c) 2010 Opscode, Inc. # License:: Apache License, Version 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 obtain a copy of the License at # # h...
15,323
https://github.com/Charles-Fieseler/Learn_Control_Signals/blob/master/src/forcing_functions.jl
Github Open Source
Open Source
MIT
2,020
Learn_Control_Signals
Charles-Fieseler
Julia
Code
361
1,401
#using Random # using Interpolations U_func_time_trivial(t) = 0.0; U_func_time_trivial(t, u) = zeros(size(u)); U_func_space_trivial(u) = zeros(size(u)); ##### ##### Spike-like controllers ##### # FROM: https://discourse.julialang.org/t/diffeqflux-with-time-as-additional-input-to-neural-ode/26456/3 function U_func_tim...
28,607
https://github.com/arvinbera/teachyleaferp_amit/blob/master/app/Http/Controllers/SalaryController.php
Github Open Source
Open Source
MIT
null
teachyleaferp_amit
arvinbera
PHP
Code
593
2,138
<?php namespace App\Http\Controllers; use App\Http\Requests\CreateSalaryRequest; use App\Http\Requests\UpdateSalaryRequest; use App\Repositories\SalaryRepository; use App\Http\Controllers\AppBaseController; use App\Models\EmployeeAttendances; use App\Models\Salary; use Illuminate\Http\Request; use Flash; use Response...
51,027
https://github.com/privat-it/cryptonite/blob/master/src/pkix/c/struct/ContentType.c
Github Open Source
Open Source
BSD-2-Clause, LicenseRef-scancode-unknown-license-reference
2,021
cryptonite
privat-it
C
Code
342
1,545
/* * Copyright (c) 2016 PrivatBank IT <acsk@privatbank.ua>. All rights reserved. * Redistribution and modifications are permitted subject to BSD license. */ #include "ContentType.h" #include "asn_internal.h" #undef FILE_MARKER #define FILE_MARKER "pkix/struct/ContentType.c" int ContentType_constraint(asn_TYPE_de...
1,588
https://github.com/zapponejosh/joshzappone-main/blob/master/joshzappone-site/components/post-title.js
Github Open Source
Open Source
MIT
2,021
joshzappone-main
zapponejosh
JavaScript
Code
22
62
import { Heading } from '@chakra-ui/react'; export default function PostTitle({ children }) { return ( <Heading as="h1" size="3xl"> {children} </Heading> ); }
44,997
https://github.com/omottec/DemoJava/blob/master/demo/src/main/java/concurrent/AtomicBooleanTest.java
Github Open Source
Open Source
Apache-2.0
null
DemoJava
omottec
Java
Code
125
368
package concurrent; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; /** * Created by qinbingbing on 6/29/16. */ public class AtomicBooleanTest { public static final int THREAD_NUM = 10; private AtomicBoolean b = new AtomicBo...
938
https://github.com/dvelle/rivet-core.java/blob/master/test/rivet/core/labels/ArrayRIVTests.java
Github Open Source
Open Source
MIT
2,016
rivet-core.java
dvelle
Java
Code
748
2,964
package rivet.core.labels; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotEquals; import static org.junit.Assert.fail; import java.util.Arrays; import java.util.function.Function; impor...
28,783
https://github.com/molit-korea/main/blob/master/Pages/2017 국토교통 빅데이터 해커톤 참가작/molit_HAB-master/elastic/logstash-5.5.2/vendor/bundle/jruby/1.9/gems/sequel-4.49.0/lib/sequel/plugins/tactical_eager_loading.rb
Github Open Source
Open Source
MIT, Apache-2.0
2,023
main
molit-korea
Ruby
Code
677
1,364
# frozen-string-literal: true module Sequel module Plugins # The tactical_eager_loading plugin allows you to eagerly load # an association for all objects retrieved from the same dataset # without calling eager on the dataset. If you attempt to load # associated objects for a record and the associat...
18,952
https://github.com/mzebib/common/blob/master/src/main/java/com/github/mzebib/common/util/StringUtil.java
Github Open Source
Open Source
Apache-2.0
2,019
common
mzebib
Java
Code
839
2,095
package com.github.mzebib.common.util; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; /** * Contains String related utility methods. * @author mzebib */ public class StringUtil { private StringUtil() { } ...
13,025
https://github.com/AmarSaini/Graphics-Project/blob/master/glutapp3dObjLoader/so_myobject.h
Github Open Source
Open Source
Apache-2.0
null
Graphics-Project
AmarSaini
C
Code
116
245
// Ensure the header file is included only once in multi-file projects # pragma once // Include needed header files # include <gsim/gs_color.h> # include <gsim/gs_array.h> # include <gsim/gs_vec.h> # include "ogl_tools.h" // Scene objects should be implemented in their own classes; and // here is an example of how t...
30,757
https://github.com/SpinnerTechEdPlus/EdPlus/blob/master/src/GestionNiveauxBundle/Tests/Controller/classeControllerTest.php
Github Open Source
Open Source
MIT
null
EdPlus
SpinnerTechEdPlus
PHP
Code
11
47
<?php namespace GestionNiveauxBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class classeControllerTest extends WebTestCase { }
1,528
https://github.com/Drimpac2020eu/usef/blob/master/usef-build/usef-simulation/usef-simulation-pbcfeeder/src/main/java/energy/usef/pbcfeeder/PbcFeederClient.java
Github Open Source
Open Source
Apache-2.0
2,020
usef
Drimpac2020eu
Java
Code
430
1,137
/* * Copyright 2015-2016 USEF Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
18,726
https://github.com/cheneryc/sltl/blob/master/sltl/src/detail/function_traits.h
Github Open Source
Open Source
MIT
null
sltl
cheneryc
C
Code
151
439
#pragma once #include "variadic_traits.h" namespace sltl { namespace detail { template<typename ...P> struct function_params {}; // The default function_traits class. Used by lambdas and functors (but not function pointers). template<typename Fn> struct function_traits : function_traits<decltype(&Fn::oper...
52,070
https://github.com/ChanceLuo/openvino/blob/master/inference-engine/src/multi_device/multi_device_infer_request.cpp
Github Open Source
Open Source
Apache-2.0
null
openvino
ChanceLuo
C++
Code
235
850
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // /////////////////////////////////////////////////////////////////////////////////////////////////// #include "multi_device_infer_request.hpp" #include <ie_input_info.hpp> #include <ie_icnn_network.hpp> #include <cpp_interfaces/inte...
42,389
https://github.com/iMhdi/iBarChart/blob/master/iBarChartExample/Pods/Headers/Private/iBarChart/BarData.h
Github Open Source
Open Source
MIT
2,019
iBarChart
iMhdi
C
Code
1
22
../../../iBarChart/iBarChart/iBarView/BarData/BarData.h
34,813
https://github.com/reginafcompton/schemaorg/blob/master/scripts/deploywebschemas.org.sh
Github Open Source
Open Source
Apache-2.0
2,020
schemaorg
reginafcompton
Shell
Code
154
448
#!/bin/bash set -e set -u #Deployment for the schema.org site function usage { echo "usage: $(basename $0) -e -m" echo "-e bypasses exercise of site step" echo "-m bypasses migrate traffic to new version step" } EXE="" MIG="" while getopts 'em' OPTION; do case "$OPTION" in e) EXE="-e" ;; m)...
1,357
https://github.com/Wamadahama/.emacs.d/blob/master/solarized-emacs/tests/init.el
Github Open Source
Open Source
MIT
null
.emacs.d
Wamadahama
null
Spoken
121
524
(defconst tests-directory (if load-file-name (file-name-directory load-file-name) default-directory)) (setq package-user-dir (expand-file-name "elpa" tests-directory) inhibit-startup-message t inhibit-splash-screen t inhibit-startup-buffer-menu t inhibit-startup-echo-area-message t initial-scratch-me...
27,474
https://github.com/rykovsi/microservices-mastery/blob/master/debezium/debezium-stock/src/main/java/ch/puzzle/mm/debezium/article/boundary/ArticleResource.java
Github Open Source
Open Source
CC0-1.0
2,021
microservices-mastery
rykovsi
Java
Code
44
229
package ch.puzzle.mm.debezium.article.boundary; import ch.puzzle.mm.debezium.article.control.ArticleService; import ch.puzzle.mm.debezium.article.entity.Article; import javax.inject.Inject; import javax.ws.rs.*; import javax.ws.rs.core.MediaType; import java.util.List; @Consumes(MediaType.APPLICATION_JSON) @Path("/a...
29,379
https://github.com/ThisSoEzZ/Calendar_Project/blob/master/app/Views/Userpage/edit_profile.php
Github Open Source
Open Source
MIT
null
Calendar_Project
ThisSoEzZ
PHP
Code
530
2,628
<!-- End Navbar --> <style> .errors { color: #a94442; } </style> <script> <?php if (session()->getFlashdata('Success')) : ?> swal("สำเร็จ", "<?= session()->getFlashdata('Success') ?>", "success"); <?php endif; ?> <?php if (session()->getFlashdata('profilesuccess')) : ?> ...
4,205
https://github.com/NeatNerdPrime/gatling/blob/master/src/sphinx/cookbook/code/HandlingJsfSample.scala
Github Open Source
Open Source
Apache-2.0
2,020
gatling
NeatNerdPrime
Scala
Code
249
1,087
/* * Copyright 2011-2020 GatlingCorp (https://gatling.io) * * 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 appli...
45,293
https://github.com/christophehurpeau/reviewflow/blob/master/src/.eslintrc.json
Github Open Source
Open Source
ISC
2,023
reviewflow
christophehurpeau
null
Spoken
105
680
{ "root": true, "parser": "@typescript-eslint/parser", "parserOptions": { "project": "./tsconfig.json", "createDefaultProgram": true }, "plugins": ["@typescript-eslint"], "extends": [ "@pob/eslint-config-typescript", "@pob/eslint-config-typescript/node", "@pob/eslint-config-typescript/ap...
15,203
https://github.com/huaweicloud/huaweicloud-sdk-c-obs/blob/master/CI/rule/pclint/pclint_include/include_linux/c++/4.8.2/gnu/java/util/DoubleEnumeration.h
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, GPL-2.0-only, GPL-3.0-only, curl, Zlib, LicenseRef-scancode-warranty-disclaimer, OpenSSL, GPL-1.0-or-later, MIT, LicenseRef-scancode-other-copyleft, LicenseRef-scancode-openssl, LicenseRef-scancode-ssleay-windows, BSD-3-Clause, Apache-2.0
2,023
huaweicloud-sdk-c-obs
huaweicloud
C++
Code
79
281
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- #ifndef __gnu_java_util_DoubleEnumeration__ #define __gnu_java_util_DoubleEnumeration__ #pragma interface #include <java/lang/Object.h> extern "Java" { namespace gnu { namespace java { namespace util { class DoubleEnume...
26,591
https://github.com/Vulcan-Alchemy-Systems/jobs/blob/master/module/Extraction/src/Model/ExtractionTable.php
Github Open Source
Open Source
BSD-3-Clause
2,019
jobs
Vulcan-Alchemy-Systems
PHP
Code
284
964
<?php /** * Process Inc * * @link https://github.com/Vulcan-Alchemy-Systems/jobs for the canonical source repository * @copyright Copyright (c) 2017-2020 Process Inc * @license https://github.com/Vulcan-Alchemy-Systems/jobs/license/new-bsd New BSD License */ namespace Extraction\Model; use RuntimeExceptio...
29,000
https://github.com/jhuang09/Team-25/blob/master/src/main/java/com/google/codeu/data/Datastore.java
Github Open Source
Open Source
Apache-2.0
null
Team-25
jhuang09
Java
Code
766
2,290
/* * Copyright 2019 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
23,305
https://github.com/tathienphuoc/KTPM/blob/master/application/views/forgotpwd.php
Github Open Source
Open Source
MIT
null
KTPM
tathienphuoc
PHP
Code
252
1,261
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn538...
31,771
https://github.com/smeenai/llvm-project/blob/master/llvm/test/Transforms/SimplifyCFG/X86/MagicPointer.ll
Github Open Source
Open Source
NCSA, LLVM-exception, Apache-2.0
2,023
llvm-project
smeenai
LLVM
Code
754
2,334
; Test that simplifycfg can create switch instructions from constant pointers. ; ; RUN: opt < %s -passes=simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | FileCheck %s target datalayout = "e-p:64:64:64-p1:16:16:16-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64...
15,142
https://github.com/PaddlePaddle/PaddleOCR/blob/master/tools/infer/predict_system.py
Github Open Source
Open Source
Apache-2.0
2,023
PaddleOCR
PaddlePaddle
Python
Code
867
3,146
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
20,130
https://github.com/nk-coding/plain-java-hamster/blob/master/de.hamstersimulator.objectsfirst.core/src/main/java/de/hamstersimulator/objectsfirst/internal/model/territory/TerritoryLoader.java
Github Open Source
Open Source
Apache-2.0
2,021
plain-java-hamster
nk-coding
Java
Code
428
1,537
package de.hamstersimulator.objectsfirst.internal.model.territory; import static de.hamstersimulator.objectsfirst.utils.Preconditions.checkArgument; import static de.hamstersimulator.objectsfirst.utils.Preconditions.checkNotNull; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamRea...
24,770
https://github.com/Detea/PekaEDS/blob/master/src/main/java/pk/pekaeds/PekaEDS.java
Github Open Source
Open Source
MIT
2,023
PekaEDS
Detea
Java
Code
94
417
package pk.pekaeds; import com.formdev.flatlaf.FlatDarkLaf; import pk.pekaeds.data.PekaEDSVersion; import pk.pekaeds.ui.PekaEDSGUILauncher; import java.util.Locale; import org.tinylog.Logger; import javax.swing.*; public class PekaEDS { public static void main(String[] args) { try { UIManage...
37,647
https://github.com/rwivan/news/blob/master/controllers/SiteController.php
Github Open Source
Open Source
BSD-3-Clause
2,018
news
rwivan
PHP
Code
54
216
<?php namespace app\controllers; use dektrium\user\models\Profile; use yii\db\Expression; use yii\web\Controller; class SiteController extends Controller { /** * {@inheritdoc} */ public function actions() { return [ 'error' => [ 'class' => 'yii\web\ErrorActio...
42,219
https://github.com/songhongliang/entitas-ts-match-one/blob/master/lib/src/controllers/GameController.ts
Github Open Source
Open Source
MIT
2,015
entitas-ts-match-one
songhongliang
TypeScript
Code
53
315
module matchone { import Pools = matchone.Pools; import Systems = entitas.Systems; export class GameController { systems:Systems; start() { this.systems = this.createSystems(Pools.pool); this.systems.initialize(); } update(delta:number) { this.systems.execute(); } ...
2,207
https://github.com/aifargonos2/elk-reasoner/blob/master/elk-reasoner/src/test/resources/classification_test_input/RoleCompositionSymmetry.owl
Github Open Source
Open Source
Apache-2.0
null
elk-reasoner
aifargonos2
null
Spoken
53
271
Prefix( : = <http://example.org/> ) Prefix( owl: = <http://www.w3.org/2002/07/owl#> ) Prefix( rdfs: = <http://www.w3.org/2000/01/rdf-schema#> ) Ontology( Annotation(rdfs:label "this is to test that composition axioms are indexed symmetrically") Declaration(ObjectProperty(:R1)) Declaration(ObjectProperty(:R2)) Declar...
25,203
https://github.com/rob05c/traffic_router/blob/master/traffic_router.go
Github Open Source
Open Source
Apache-2.0
null
traffic_router
rob05c
Go
Code
344
1,405
package main import ( "crypto/tls" "flag" "fmt" "log" "net/http" "os" "strconv" "time" "github.com/rob05c/traffic_router/loadconfig" "github.com/rob05c/traffic_router/pollercrconfig" "github.com/rob05c/traffic_router/pollercrstates" "github.com/rob05c/traffic_router/srvdns" "github.com/rob05c/traffic_rou...
31,037
https://github.com/mager-m/ietf-tcp-research-project/blob/master/tcp-plugin-qnx/plugin_state.h
Github Open Source
Open Source
MIT
2,021
ietf-tcp-research-project
mager-m
C
Code
145
384
#ifndef PLUGIN_STATE_H #define PLUGIN_STATE_H #include "plugin_options.h" class StatedataManager { /*! Called to get the state data from the local machine * * @param[in] h The CLIGen Handle * @param[in] nsc External XML namespace context, or NULL * @param[in] xpath String with ...
8,734
https://github.com/AmelieFeder/ImportCsvData/blob/master/ImportCsvData/OverviewImporter.cs
Github Open Source
Open Source
MIT
null
ImportCsvData
AmelieFeder
C#
Code
100
369
using System; using System.Collections.Generic; using System.IO; using System.Linq; using Sedimentology.DataLayer; using StatistikSpielereien; namespace ImportCsvData { public class OverviewImporter { public void ImportOverview(string[] headerNames, string filePath ) { CsvToDiction...
12,673
https://github.com/frozeman/meteor-persistent-minimongo/blob/master/persistent-minimongo.js
Github Open Source
Open Source
MIT
2,021
meteor-persistent-minimongo
frozeman
JavaScript
Code
565
1,553
/** Packages @module Packages */ /** The PersistentMinimongo package @class PersistentMinimongo @constructor */ /** If the localstorage goes over 4.8 MB, trim the collections. @property capLocalStorageSize */ var capLocalStorageSize = 4.8; /** If the localstorage goes over `capLocalStorageSize`, trim the curren...
10,912
https://github.com/noelboss/AdminThemeBoss/blob/master/uikit/src/js/core/height-viewport.js
Github Open Source
Open Source
MIT
2,023
AdminThemeBoss
noelboss
JavaScript
Code
198
627
import FlexBug from '../mixin/flex-bug'; import {boxModelAdjust, css, endsWith, height, isNumeric, isString, offset, query, toFloat} from 'uikit-util'; export default { mixins: [FlexBug], props: { expand: Boolean, offsetTop: Boolean, offsetBottom: Boolean, minHeight: Number ...
20,867
https://github.com/m-thu/android-things/blob/master/.gitmodules
Github Open Source
Open Source
MIT
2,017
android-things
m-thu
Git Config
Code
24
164
[submodule "template-native/libandroidthings"] path = template-native/libandroidthings url = https://github.com/androidthings/native-libandroidthings [submodule "lm75-native/libandroidthings"] path = lm75-native/libandroidthings url = https://github.com/androidthings/native-libandroidthings [submodule "gpio_toggle_...
39,601
https://github.com/bkulov/igniteui-angular/blob/master/projects/igniteui-angular/src/lib/services/direction/directionality.ts
Github Open Source
Open Source
Apache-1.1
2,021
igniteui-angular
bkulov
TypeScript
Code
221
486
import { Injectable, Inject, InjectionToken, inject } from '@angular/core'; import { DOCUMENT } from '@angular/common'; /** * @hidden */ export type Direction = 'ltr' | 'rtl'; /** * Injection token is used to inject the document into Directionality * which factory could be faked for testing purposes. * * We can...
27,915
https://github.com/pazano/daniellerouillard/blob/master/web/app/themes/fiji2/theme-files/dev/components/1/flo-block-listing-2/flo-block-listing-2.main.scss
Github Open Source
Open Source
MIT
null
daniellerouillard
pazano
SCSS
Code
313
1,268
.flo-block-listing-2 { $b: ".flo-block-listing-2"; a { &:focus, &:active { color: inherit; } } &__item { display: block; } &__featured-image { display: block; position: relative; width: 100%; @include global-bgi-cover; } &__featured-image-bg { ...
30,123
https://github.com/zhaobozhen/ChillWeather/blob/master/app/src/main/java/com/absinthe/chillweather/ChooseBgActivity.java
Github Open Source
Open Source
Apache-2.0
2,021
ChillWeather
zhaobozhen
Java
Code
156
796
package com.absinthe.chillweather; import androidx.appcompat.app.AppCompatActivity; import android.Manifest; import android.annotation.SuppressLint; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.ActivityInfo; import android.net.Uri; ...
7,796
https://github.com/rafadalibera/rbd-azure-spring-aks/blob/master/Application/src/main/java/com/example/demo/mapper/DiseaseMapper.java
Github Open Source
Open Source
MIT
null
rbd-azure-spring-aks
rafadalibera
Java
Code
28
157
package com.example.demo.mapper; import com.example.demo.model.Disease; import com.example.demo.repository.entity.DiseaseEntity; import org.springframework.stereotype.Component; @Component public class DiseaseMapper { public DiseaseEntity mapToDiseaseEntity (Disease disease) { return DiseaseEntity.builde...
26,701
https://github.com/robotprogrammer22/ISIS3/blob/master/isis/src/mro/apps/hicubenorm/hicubenorm.h
Github Open Source
Open Source
CC0-1.0
null
ISIS3
robotprogrammer22
C
Code
23
81
#ifndef hicubenorm_h #define hicubenorm_h #include "Cube.h" #include "UserInterface.h" namespace Isis { extern void hicubenorm(Cube *cube, UserInterface &ui); extern void hicubenorm(UserInterface &ui); } #endif
40,688
https://github.com/qiu1518977696/OnlineExamSystem/blob/master/src/mapper/GetBaseEssayDao.java
Github Open Source
Open Source
MIT
2,018
OnlineExamSystem
qiu1518977696
Java
Code
24
90
package mapper; import java.util.ArrayList; import org.apache.ibatis.annotations.Select; import model.EssayQs; public interface GetBaseEssayDao { @Select("SELECT essayTitle,essayId FROM baseessay ORDER BY rand() LIMIT 3") ArrayList<EssayQs> selectBaseEssay(); }
36,042
https://github.com/SabinT/lygia/blob/master/distort/chromaAB.glsl
Github Open Source
Open Source
BSD-3-Clause, MIT
2,021
lygia
SabinT
GLSL
Code
463
1,189
#include "../math/lengthSq.glsl" /* author: Patricio Gonzalez Vivo, Johan Ismael description: Chroma Aberration inspired by https://www.shadertoy.com/view/4sX3z4 use: chromaAB(<sampler2D> texture, <vec2> st [, <float|vec2> sdf|offset, <float> pct]) options: CHROMAAB_TYPE: return type, defauls to vec3 CHROMAAB_...
5,403
https://github.com/seeker25/jag-file-submission/blob/master/src/backend/libs/efiling-diligen-client/src/test/java/ca/bc/gov/open/efilingdiligenclient/diligen/diligenServiceImpl/GetDocumentDetailsTest.java
Github Open Source
Open Source
Apache-2.0
null
jag-file-submission
seeker25
Java
Code
343
1,995
package ca.bc.gov.open.efilingdiligenclient.diligen.diligenServiceImpl; import ca.bc.gov.open.efilingdiligenclient.diligen.DiligenAuthService; import ca.bc.gov.open.efilingdiligenclient.diligen.DiligenProperties; import ca.bc.gov.open.efilingdiligenclient.diligen.DiligenServiceImpl; import ca.bc.gov.open.efilingdilige...
24,244
https://github.com/doyaGu/C0501Q_HWJL01/blob/master/sdk/doc/html/struct_i_t_c_buffer_stream.js
Github Open Source
Open Source
MIT
2,021
C0501Q_HWJL01
doyaGu
JavaScript
Code
35
283
var struct_i_t_c_buffer_stream = [ [ "buf", "struct_i_t_c_buffer_stream.html#ac8ed9b9edf72a0bbde1ba01f0c67ef73", null ], [ "mutex", "struct_i_t_c_buffer_stream.html#a4acff8232e4aec9cd5c6dc200ac55ef3", null ], [ "readpos", "struct_i_t_c_buffer_stream.html#a6bf189efc18e1f2c352c562b85bf851f", null ], [ "si...
42,611
https://github.com/efraimkent/BrittishBulldog/blob/master/Assets/Scripts/Game.cs
Github Open Source
Open Source
MIT
null
BrittishBulldog
efraimkent
C#
Code
23
64
using System; using UnityEngine; [Serializable] public class Game : MonoBehaviour { public State currentState; public GameView view; void OnEnable() { view.UpdateView(currentState); } }
27,577
https://github.com/ancilcrayton/solve-iwmi/blob/master/web/src/nivo/website/src/components/controls/PropertyHeader.js
Github Open Source
Open Source
MIT
2,020
solve-iwmi
ancilcrayton
JavaScript
Code
327
955
/* * This file is part of the nivo project. * * (c) 2016 Raphaël Benitte * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import React from 'react' import isPlainObject from 'lodash/isPlainObject' import isArray from 'lodash/isArray...
47,628
https://github.com/wienerri/plsql-formatter-settings/blob/master/tests/src/test/java/com/trivadis/plsql/formatter/settings/tests/Issue_57.xtend
Github Open Source
Open Source
Apache-2.0
null
plsql-formatter-settings
wienerri
null
Spoken
93
435
package com.trivadis.plsql.formatter.settings.tests import com.trivadis.plsql.formatter.settings.ConfiguredTestFormatter import oracle.dbtools.app.Format.Breaks import org.junit.Test class Issue_57 extends ConfiguredTestFormatter { @Test def xmltable_commas_after() { ''' SELECT stg.pa...
14,570
https://github.com/rhencke/engine/blob/master/src/ios_tools/chrome/browser/web/auto_reload_controller.h
Github Open Source
Open Source
BSD-3-Clause
2,022
engine
rhencke
C
Code
229
572
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef IOS_CHROME_BROWSER_WEB_AUTO_RELOAD_CONTROLLER_H_ #define IOS_CHROME_BROWSER_WEB_AUTO_RELOAD_CONTROLLER_H_ #import <Foundation/Foundation.h> #inc...
36,437
https://github.com/arvinkulagin/rproxy/blob/master/transport/regexp.go
Github Open Source
Open Source
MIT
null
rproxy
arvinkulagin
Go
Code
218
583
package transport import ( "bytes" "io/ioutil" "log" "mime" "net/http" "regexp" "strconv" ) // RegexpTransport replace content of html and plain text responces // with specified regular expression and replacement string. type RegexpTransport struct { re *regexp.Regexp replacement []byte } func NewR...
39,686
https://github.com/Alnirel/com.stansassets.running-dinosaur-clone/blob/master/Assets/Plugins/StansAssets/NativePlugins/AndroidNativePro/Runtime/API/App/Utils/AN_Locale.cs
Github Open Source
Open Source
MIT
2,021
com.stansassets.running-dinosaur-clone
Alnirel
C#
Code
365
727
using System; using SA.Android.Utilities; using UnityEngine; namespace SA.Android.App { /// <summary> /// A Locale object represents a specific geographical, political, or cultural region. /// An operation that requires a Locale to perform its task is called locale-sensitive /// and uses the Locale to ...
14,466
https://github.com/vladkar/pulse-project-open/blob/master/Engine/Containers/SimWorld.cs
Github Open Source
Open Source
MIT
2,020
pulse-project-open
vladkar
C#
Code
180
467
using System.Collections.Generic; using NLog; using Pulse.MultiagentEngine.Agents; using Pulse.MultiagentEngine.Engine; using Pulse.MultiagentEngine.Map; namespace Pulse.MultiagentEngine.Containers { /// <summary> /// Passive container for simulation objects /// </summary> public class SimWorld { ...
16,045
https://github.com/djewsbury/XLE/blob/master/Assets/LooseFilesCache.cpp
Github Open Source
Open Source
MIT
2,021
XLE
djewsbury
C++
Code
1,716
7,371
// Distributed under the MIT License (See // accompanying file "LICENSE" or the website // http://www.opensource.org/licenses/mit-license.php) #include "LooseFilesCache.h" #include "IntermediatesStore.h" #include "AssetUtils.h" #include "IFileSystem.h" #include "ChunkFile.h" #include "ChunkFileContainer.h" #include "I...
1,079
https://github.com/Distilleries/Contentful-Utilities/blob/master/src/Distilleries/Contentful/Api/Sync/Api.php
Github Open Source
Open Source
MIT
2,021
Contentful-Utilities
Distilleries
PHP
Code
212
724
<?php namespace Distilleries\Contentful\Api\Sync; use GuzzleHttp\RequestOptions; use Distilleries\Contentful\Api\BaseApi; use Distilleries\Contentful\Api\SyncApi; class Api extends BaseApi implements SyncApi { /** * {@inheritdoc} */ protected $baseUrl = 'https://cdn.contentful.com'; /** *...
51,123
https://github.com/vladamex/FlyCasual/blob/master/Assets/Scripts/Model/Upgrades/Modifications/StealthDevice.cs
Github Open Source
Open Source
MIT
2,018
FlyCasual
vladamex
C#
Code
190
721
using System; using Ship; using Upgrade; using Abilities; using RuleSets; using System.Collections.Generic; namespace UpgradesList { public class StealthDevice : GenericUpgrade, ISecondEditionUpgrade, IVariableCost { public StealthDevice() : base() { Types.Add(UpgradeType.Modification); ...
48,083
https://github.com/nem035/react-timer/blob/master/app/components/Countup.jsx
Github Open Source
Open Source
MIT
null
react-timer
nem035
null
Spoken
112
368
/* eslint import/no-unresolved: "off", no-console: "off", import/no-extraneous-dependencies: "off" */ const React = require('react'); const Controls = require('Controls'); const Timer = require('Timer'); const { clockStatuses: { CLEARED, RUNNING, PAUSED, INVALID, }, } = require('utils'); class CountUp e...
34,450
https://github.com/freeraisor/yandexcplusplus/blob/master/3. Red/5 Week/7. Priority Collection/priority_collection.h
Github Open Source
Open Source
MIT
2,022
yandexcplusplus
freeraisor
C
Code
542
1,944
// // Created by ilya on 11.10.2019. // #ifndef YANDEXCPLUSPLUS_3_RED_5TH_WEEK_7_TASK_PRIORITY_COLLECTION_H_ #define YANDEXCPLUSPLUS_3_RED_5TH_WEEK_7_TASK_PRIORITY_COLLECTION_H_ #include <utility> #include <map> #include <set> #include <vector> #include <algorithm> template <typename T> class PriorityCollection { p...
8,101
https://github.com/FakeDeepLearner/Working-Hours-Visualiser/blob/master/project_part_3.py
Github Open Source
Open Source
MIT
null
Working-Hours-Visualiser
FakeDeepLearner
Python
Code
404
1,385
""" This module contains all of the required code to run the third part of the project """ import pandas as p import matplotlib.pyplot as plot from matplotlib.figure import Figure import project_part_1 as proj1 pre_pandemic_data = p.read_csv('Datasets/pre_pandemic.csv') during_the_pandemic_data = p.read_csv('Datas...
5,375
https://github.com/revagomes/megadraft/blob/master/tests/components/Media_test.js
Github Open Source
Open Source
MIT, CC0-1.0, CC-BY-4.0, CC-BY-2.0
2,021
megadraft
revagomes
JavaScript
Code
215
856
/* * Copyright (c) 2016, Globo.com (https://github.com/globocom) * * License: MIT */ import React from "react"; import chai from "chai"; import sinon from "sinon"; import sinonChai from "sinon-chai"; import {mount} from "enzyme"; import Media from "../../src/components/Media"; import {editorStateFromRaw} from ".....
4,856
https://github.com/cantecim/dispatcher/blob/master/src/Indatus/Dispatcher/Scheduling/ScheduledCommand.php
Github Open Source
Open Source
MIT
2,022
dispatcher
cantecim
PHP
Code
151
298
<?php namespace Indatus\Dispatcher\Scheduling; /** * This file is part of Dispatcher * * (c) Ben Kuhl <bkuhl@indatus.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ use Illuminate\Console\Command; abstract class ScheduledCo...
9,113