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/emfomy/mcnla/blob/master/include/mcnla/core/random/routine/uniform_bits.hpp
Github Open Source
Open Source
MIT
null
mcnla
emfomy
C++
Code
175
632
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// @file include/mcnla/core/random/routine/uniform_bits.hpp /// @brief The uniformly distributed bits generator. /// /// @author Mu Yang <<emfomy@gmail.com>> /// #ifndef MCNLA_CORE_RA...
27,672
https://github.com/stwklu/Practical_Algorithoms/blob/master/uva_10721/uva_10721.cpp
Github Open Source
Open Source
MIT
2,018
Practical_Algorithoms
stwklu
C++
Code
194
449
/* UVa problem: <10721> * * Topic: Dynamic Programming * * Level: challenging * * Brief problem description: * * BC(n, k, m) is the set of all symbols with k bars that together extend over exactly n units, each bar being at most m units wide Find total number of symbols classified BC(n, k, m) * * Solut...
12,850
https://github.com/kevinphelps/ng-image-search/blob/master/src/app/core/services/network-status.service.mock.ts
Github Open Source
Open Source
MIT
null
ng-image-search
kevinphelps
TypeScript
Code
36
113
import { Provider } from '@angular/core'; import { NetworkStatusService } from './network-status.service'; export class MockNetworkStatusService { readonly setServerError = jasmine.createSpy('setServerError'); readonly setConnectionLost = jasmine.createSpy('setConnectionLost'); } export const mockNetworkStatusSe...
11,215
https://github.com/ennoherr/Windows-classic-samples/blob/master/Samples/Win7Samples/security/windowsfirewall/add_outbound_rule/Add_Outbound_Rule.sln
Github Open Source
Open Source
MIT
2,022
Windows-classic-samples
ennoherr
null
Spoken
72
585
 Microsoft Visual Studio Solution File, Format Version 10.00 # Visual Studio 2008 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Add_Outbound_Rule", "Add_Outbound_Rule.vcproj", "{E3DAE7FD-04C3-4F0D-A3B1-248DF1264E71}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = ...
36,024
https://github.com/kylebye4mav/Mosaic/blob/master/shapes/ShapeFactory.java
Github Open Source
Open Source
MIT
null
Mosaic
kylebye4mav
Java
Code
169
431
package shapes; import java.awt.Color; /** * This class is responsible for creating and returning * <code>Shape</code> objects based on the parameters given. * * @author Kyle Bye * @see Shape * @see Oval * @see Rectangle */ public final class ShapeFactory { // Immutable Properties public final st...
30,212
https://github.com/lovenery/tcptracer/blob/master/pkg/tcptracer/lib_test.go
Github Open Source
Open Source
Apache-2.0
2,020
tcptracer
lovenery
Go
Code
32
132
package tcptracer import( "net" "testing" ) func TestIpIntToByte(t *testing.T) { want := net.ParseIP("10.0.2.15") have := IpIntToByte(251789322) t.Log(have.String()) t.Log(want.String()) if have.String() != want.String() { t.Errorf("Start(): have: '%v', want: '%v'", have, want) } }
12,358
https://github.com/Nalhin/SocialAuth/blob/master/backend/test/config/graphql.config.ts
Github Open Source
Open Source
MIT
2,023
SocialAuth
Nalhin
TypeScript
Code
38
100
import { Injectable } from '@nestjs/common'; import { GqlModuleOptions, GqlOptionsFactory } from '@nestjs/graphql'; @Injectable() export class GraphqlTestConfigService implements GqlOptionsFactory { createGqlOptions(): GqlModuleOptions { return { autoSchemaFile: true, context: ({ req }) => ({ req }),...
42,482
https://github.com/iantal/AndroidPermissions/blob/master/apks/comparison_androart/de_number26_android/source/com/google/android/gms/tagmanager/zzby.java
Github Open Source
Open Source
Apache-2.0
2,019
AndroidPermissions
iantal
Java
Code
16
60
package com.google.android.gms.tagmanager; import com.google.android.gms.common.internal.Hide; @Hide public abstract interface zzby { public abstract boolean zza(String paramString); }
22,983
https://github.com/dev-bootcamp-2019/final-project-Juan-cc/blob/master/kmp/contracts/BC.sol
Github Open Source
Open Source
MIT
2,019
final-project-Juan-cc
dev-bootcamp-2019
Gerber Image
Code
127
342
pragma solidity ^0.5.0; import "./Owned.sol"; contract BC is Owned { mapping (address => bool) public admins; string public name; string public phone; string public url; string private did; address private uPortAddress; mapping (address => address[]) public tokens; event BCCreated...
42,730
https://github.com/ApoOliveira18/Projeto-Plataforma-MyTeach/blob/master/MyTeach_SITE/ContatoINICIO.aspx.cs
Github Open Source
Open Source
MIT
null
Projeto-Plataforma-MyTeach
ApoOliveira18
C#
Code
234
708
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Net; using System.Net.Mail; public partial class ContatoINICIO : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protec...
29,782
https://github.com/changgyun-woo/webida-client/blob/master/apps/ide/ProjectWizard-templates/site/empty with MVC/dojo TODO/project/js/todo/ctrl/TodoRefController.js
Github Open Source
Open Source
Apache-2.0
null
webida-client
changgyun-woo
JavaScript
Code
635
1,460
/* * Copyright (c) 2012-2015 S-Core Co., Ltd. * * 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 ...
40,415
https://github.com/simpleKz/simple/blob/master/app/Http/Forms/Web/V1/UserWebForm.php
Github Open Source
Open Source
MIT
null
simple
simpleKz
PHP
Code
148
517
<?php namespace App\Http\Forms\Web\V1; use App\Core\Interfaces\WithForm; use App\Http\Forms\Web\FormUtil; use App\Models\Entities\Course\Course; use App\Models\Entities\Course\CourseAuthor; use App\Models\Entities\Course\CourseCategory; use App\Models\Entities\Course\Packet; class UserWebForm implements WithForm {...
12,085
https://github.com/jeffcharles/pong/blob/master/src/main/java/com/beyondtechnicallycorrect/pong/models/placeable/OverlappingBehaviour.java
Github Open Source
Open Source
BSD-2-Clause
2,012
pong
jeffcharles
Java
Code
15
69
package com.beyondtechnicallycorrect.pong.models.placeable; import com.beyondtechnicallycorrect.pong.models.position.Position; public interface OverlappingBehaviour { public boolean isOverlap(Placeable model, Position pos); }
31,971
https://github.com/ziveso/cpsk-colorgenerator/blob/master/Themes/Adminlte/views/partials/right-sidebar.blade.php
Github Open Source
Open Source
MIT
2,022
cpsk-colorgenerator
ziveso
PHP
Code
47
238
<aside class="control-sidebar control-sidebar-dark" style="display:none"> <ul class="nav nav-tabs nav-justified control-sidebar-tabs"> <li class="active"> <a href="#sidebar-notifications" data-toggle="tab"> <i class="fa fa-bell-o"></i> </a> </li> <li> ...
30,405
https://github.com/trashtoy/PEACH2-dev/blob/master/src/Peach/DT/TimeEquator.php
Github Open Source
Open Source
MIT
null
PEACH2-dev
trashtoy
PHP
Code
620
2,074
<?php /* * Copyright (c) 2014 @trashtoy * https://github.com/trashtoy/ * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to...
48,482
https://github.com/asecurityteam/nmap-scanner/blob/master/pkg/scanner/cmd.go
Github Open Source
Open Source
Apache-2.0
2,021
nmap-scanner
asecurityteam
Go
Code
277
808
package scanner import ( "bytes" "context" "io" "os/exec" "strings" "sync" "github.com/asecurityteam/nmap-scanner/pkg/domain" "github.com/asecurityteam/nmap-scanner/pkg/logs" ) // CommandRunner is a stand-in for calling cmd.Run() while also capturing // input. type CommandRunner interface { RunCommand(stdou...
35,978
https://github.com/brettdavidson3/eclipselink.runtime/blob/master/moxy/eclipselink.moxy.test/src/org/eclipse/persistence/testing/jaxb/binder/nscollison/NamespaceCollisionTestCases.java
Github Open Source
Open Source
BSD-3-Clause
null
eclipselink.runtime
brettdavidson3
Java
Code
186
749
/******************************************************************************* * Copyright (c) 2011, 2012 Oracle and/or its affiliates. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 ...
12,395
https://github.com/wugeqiaqia1/MyCar/blob/master/app/src/main/java/SQLdatabase/PeopleStructure.java
Github Open Source
Open Source
Apache-2.0
2,016
MyCar
wugeqiaqia1
Java
Code
86
238
package SQLdatabase; import android.provider.BaseColumns; /** * Created by hp on 2015/11/23. */ public class PeopleStructure { public static final String DB_NAME="car.db"; public static final int DB_VERSION=1; public static final String TEXT_TYPE=" TEXT"; public static final String POINT_TYPE=","; ...
38,097
https://github.com/keinich/Bunny/blob/master/.gitmodules
Github Open Source
Open Source
Apache-2.0
2,018
Bunny
keinich
Git Config
Code
8
46
[submodule "Bunny/vendor/spdlog"] path = Bunny/vendor/spdlog url = https://github.com/gabime/spdlog
36,027
https://github.com/SeaJungg/FromNode_Project/blob/master/FileApp/static/FileApp/JS/Upload.js
Github Open Source
Open Source
Apache-2.0
2,021
FromNode_Project
SeaJungg
JavaScript
Code
120
632
document.querySelectorAll(".drop-zone__input").forEach(inputElement => { const dropZoneElement = inputElement.closest(".drop-zone"); dropZoneElement.addEventListener("click", e => { inputElement.click(); }); inputElement.addEventListener("change", e =>{ if (inputElement.files.length) {...
45,162
https://github.com/jittat/blockly-demo/blob/master/demo04-custom-blocks-2/custom_blocks.js
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,018
blockly-demo
jittat
JavaScript
Code
201
795
var BLOCKS = [{ "type": "temperature", "message0": "อุณหภูมิ", "output": "Number", "colour": 180, "tooltip": "", "helpUrl": "" }, { "type": "light_control", "message0": "ควบคุมแสงไฟ %1", "args0": [ { "type": "field_dropdown", "name": "ctrl", "options": [ [ "เปิด...
51,972
https://github.com/GustavoDev764/tech-week/blob/master/FrontEnd/mobile/TechWeek/src/Screen/home/index.js
Github Open Source
Open Source
MIT
null
tech-week
GustavoDev764
JavaScript
Code
300
943
import React from 'react'; import {View, Text, Button,StyleSheet} from 'react-native'; import {Card, Divider} from 'react-native-elements'; import {Feather} from '@expo/vector-icons'; //Import Compnents Personalizado import Head from '../../components/head'; import Body from '../../components/body'; export default...
53,404
https://github.com/moljac/KxMenu/blob/master/source/KxMenu.Bindings.XamarinIOS/libKxMenu.linkwith.cs
Github Open Source
Open Source
MIT
null
KxMenu
moljac
C#
Code
31
131
using System; #if ! __CLASSIC__ using ObjCRuntime; #else using MonoTouch.ObjCRuntime; #endif [assembly: LinkWith ( "libKxMenu.a", LinkTarget.ArmV7 | LinkTarget.Arm64 | LinkTarget.Simulator | LinkTarget.Simulator64 , SmartLink = true, ForceLoad = true ) ]
2,380
https://github.com/LucianNovo/luciannovo.github.io/blob/master/formatter.js
Github Open Source
Open Source
MIT
2,017
luciannovo.github.io
LucianNovo
JavaScript
Code
593
2,970
var fontList = []; var bodyFonts = []; var titleFonts = []; var fontArrCopy = []; var messageState = 0; var firstBodyAdd = 1; var firstTitleAdd = 1; var exampleText = "An Example Sentence"; var DELAY = 700, clicks = 0, timer = null; function populateFontList(fontArr){ console.log("populateFontList start"); var allFo...
21,813
https://github.com/sambatyon/dragon-book/blob/master/ch03/automata-main.cc
Github Open Source
Open Source
Unlicense
2,014
dragon-book
sambatyon
C++
Code
117
446
#include "non-deterministic-finite-automata.hh" #include "deterministic-finite-automata.hh" #include "regex-lexer.hh" #include "regex-parser.hh" #include "regex-parser-ast.hh" #include <iostream> #include <sstream> int main(int argc, char const **argv) { DFiniteAutomata a({0, 1, 2, 3}, {3}, 0); a.AddTransition(0,...
10,259
https://github.com/orbs-network/orbs-network-go18/blob/master/vendor/github.com/orbs-network/membuffers/javascript/iterator.js
Github Open Source
Open Source
MIT
2,019
orbs-network-go18
orbs-network
JavaScript
Code
347
1,350
import {alignDynamicFieldContentOffset} from './message'; import {FieldTypes, FieldSizes} from './types'; import {getTextDecoder} from "./text"; export class Iterator { constructor(cursor, endCursor, fieldType, m) { this.cursor = cursor; this.endCursor = endCursor; this.fieldType = fieldType; this.m...
21,381
https://github.com/rterrabh/rdf/blob/master/dataset/rails/activerecord/lib/active_record/explain.rb
Github Open Source
Open Source
MIT, Ruby
2,017
rdf
rterrabh
Ruby
Code
66
242
require 'active_support/lazy_load_hooks' require 'active_record/explain_registry' module ActiveRecord module Explain def collecting_queries_for_explain # :nodoc: ExplainRegistry.collect = true yield ExplainRegistry.queries ensure ExplainRegistry.reset end def exec_explain(que...
51,448
https://github.com/xliiauo/heroku-app/blob/master/app/views/pages/home.html.slim
Github Open Source
Open Source
MIT
2,016
heroku-app
xliiauo
null
Spoken
24
99
.row .col-md-6 h1 Xiao, under construction ... .row .col-md-6 form.form-inline input.form-control.xl-home-input placeholder="Google will help" =< link_to("http://google.com", class: "btn btn-default btn-success xl-home-input-button") do | Go
6,949
https://github.com/magefree/mage/blob/master/Mage.Sets/src/mage/cards/t/TemptWithDiscovery.java
Github Open Source
Open Source
MIT
2,023
mage
magefree
Java
Code
426
1,185
package mage.cards.t; import java.util.LinkedHashSet; import java.util.Set; import java.util.UUID; import mage.abilities.Ability; import mage.abilities.effects.OneShotEffect; import mage.cards.Card; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.Outcom...
24,998
https://github.com/Foso/Ktorfit/blob/master/ktorfit-ksp/src/main/kotlin/de/jensklingenberg/ktorfit/reqBuilderExtension/HeaderCodeGenerator.kt
Github Open Source
Open Source
Apache-2.0
2,023
Ktorfit
Foso
Kotlin
Code
157
658
package de.jensklingenberg.ktorfit.reqBuilderExtension import com.google.devtools.ksp.symbol.KSType import de.jensklingenberg.ktorfit.model.ParameterData import de.jensklingenberg.ktorfit.model.annotations.* import de.jensklingenberg.ktorfit.utils.anyInstance import de.jensklingenberg.ktorfit.utils.surroundIfNotEmpty ...
45,849
https://github.com/mekanika/adapter-socket/blob/master/test/integration.js
Github Open Source
Open Source
MIT
2,014
adapter-socket
mekanika
JavaScript
Code
498
1,305
describe('Adapter browser tests (require socket server on 3001)', function () { // Apply test server config beforeEach( function () { socket.config.port = 3001; // Ensures 'bad' connections don't constantly retry socket.config.socket = {strategy:['online'], reconnect:{retries:1}}; }); // Return ...
43,665
https://github.com/phillbush/xbindecho/blob/master/xbindecho.c
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, LicenseRef-scancode-public-domain
2,021
xbindecho
phillbush
C
Code
506
1,473
#include <err.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <X11/Xlib.h> #include <X11/Xutil.h> static Display *dpy; static Window root; struct Bind { struct Bind *next; KeyCode kcode; char *str; unsigned int mods; }; /* show usage */ static void usage(void) { (void)fprintf(stderr, "usa...
53,904
https://github.com/RinaldyKarokaro/sekolah/blob/master/app/Http/Controllers/Admin/ELearning/SoalController.php
Github Open Source
Open Source
MIT
null
sekolah
RinaldyKarokaro
PHP
Code
304
1,461
<?php namespace App\Http\Controllers\Admin\ELearning; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Models\{Guru, MataPelajaran, Siswa}; use App\Models\Admin\{Kelas, Soal}; use App\User; use Illuminate\Support\Facades\Redirect; use App\Models\Superadmin\Addons; use Yajra\DataTables\Facades...
50,160
https://github.com/vorov2/dyalect/blob/master/Dyalect/Parser/Map.cs
Github Open Source
Open Source
MIT
2,022
dyalect
vorov2
C#
Code
44
117
using System.Collections.Generic; namespace Dyalect.Parser { internal sealed class Map { private readonly Dictionary<int, int> map; public Map(int capacity) => map = new(capacity); public bool ContainsKey(int key) => map.ContainsKey(key); public int this[int key] { ...
24,974
https://github.com/shivan/NGitLab/blob/master/NGitLab/Models/Membership.cs
Github Open Source
Open Source
MIT
2,023
NGitLab
shivan
C#
Code
102
327
using System; using System.Text.Json.Serialization; namespace NGitLab.Models { public class Membership { /// <summary> /// Example: 3 /// </summary> [JsonPropertyName("id")] public int Id; /// <summary> /// Example john_doe /// </summary> ...
33,611
https://github.com/aelfa/gluetun/blob/master/internal/httpproxy/run.go
Github Open Source
Open Source
MIT
2,022
gluetun
aelfa
Go
Code
166
603
package httpproxy import ( "context" "strconv" "github.com/qdm12/gluetun/internal/constants" ) type Runner interface { Run(ctx context.Context, done chan<- struct{}) } func (l *Loop) Run(ctx context.Context, done chan<- struct{}) { defer close(done) if !l.state.GetSettings().Enabled { select { case <-l.s...
39,963
https://github.com/DeAccountSystems/das-register/blob/master/example/order_test.go
Github Open Source
Open Source
MIT
2,022
das-register
DeAccountSystems
Go
Code
444
2,273
package example import ( "das_register_server/http_server/handle" "das_register_server/tables" "fmt" "github.com/DeAccountSystems/das-lib/common" "github.com/parnurzeal/gorequest" "testing" ) func TestAccountSearch(t *testing.T) { var req handle.ReqAccountSearch req.Account = "7aaaaaaa.bit" req.ChainType = c...
24,721
https://github.com/Gerschtli/atom-config/blob/master/projects.cson
Github Open Source
Open Source
MIT
2,017
atom-config
Gerschtli
CoffeeScript
Code
30
121
[ { title: "dotfiles" paths: [ "~/.dotfiles" ] } { title: "enable-packages" paths: [ "~/projects/enable-packages" ] devMode: true } { title: "manage-packages" paths: [ "~/projects/manage-packages" ] devMode: true } ]
49,343
https://github.com/neoneye/loda/blob/master/programs/oeis/245/A245219.asm
Github Open Source
Open Source
Apache-2.0
2,022
loda
neoneye
Assembly
Code
55
305
; A245219: Continued fraction expansion of the constant c in A245218; c = sup{f(n,1)}, where f(1,x) = x + 1 and thereafter f(n,x) = x + 1 if n is in A001951, else f(n,x) = 1/x. ; 3,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,3,2,2,3,2,3,2,2,3,2,3,2,2,3...
47,790
https://github.com/cyberyj/bookstore/blob/master/application/user/model/UserModel.php
Github Open Source
Open Source
AFL-3.0
2,020
bookstore
cyberyj
PHP
Code
30
76
<?php /** * Created by PhpStorm. * user: yingjun * Date: 2019-01-26 * Time: 23:17 */ namespace app\user\model; use think\Model; class UserModel extends Model { protected $pk = 'uid'; }
50,569
https://github.com/LawrieDrew/Workout-Tracker/blob/master/routes/api.js
Github Open Source
Open Source
Unlicense
null
Workout-Tracker
LawrieDrew
JavaScript
Code
49
193
const router = require("express").Router(); const Workout = require("../models/workout"); router.post("/api/workouts", (req,res)=>{ Workout.create({}).then(DBworkout => res.json(DBworkout)).catch(err => res.json(err)); }) router.put("/api/workout/:id", (req,res)=> { Workout.findByIdAndUpdate(req.params.id, {$pu...
29,395
https://github.com/CodeRed2771/2021Robot/blob/master/src/main/java/frc/robot/AutoDoNothing.java
Github Open Source
Open Source
BSD-3-Clause
null
2021Robot
CodeRed2771
Java
Code
27
79
package frc.robot; //DOES NOTHING public class AutoDoNothing extends AutoBaseClass { public AutoDoNothing() { super(); } public void start() { super.start(); } public void tick() { } }
7,130
https://github.com/Warnapipou/seleniumRobot/blob/master/core/src/main/java/com/seleniumtests/util/osutility/OSUtility.java
Github Open Source
Open Source
Apache-2.0
2,017
seleniumRobot
Warnapipou
Java
Code
1,005
2,913
/** * Orignal work: Copyright 2015 www.seleniumtests.com * Modified work: Copyright 2016 www.infotel.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/lic...
10,147
https://github.com/futureappssolutions/Calculator-Lock-Lock-Video-Photo/blob/master/app/src/main/java/calculatorlock/calculatorvault/calculatorhide/calculatorvaultlocker/gallerylock/securitylocks/SecurityLocksEnt.java
Github Open Source
Open Source
MIT
null
Calculator-Lock-Lock-Video-Photo
futureappssolutions
Java
Code
64
205
package calculatorlock.calculatorvault.calculatorhide.calculatorvaultlocker.gallerylock.securitylocks; public class SecurityLocksEnt { private int _LoginOption; private int _drawable; private boolean _isCheck; public void SetLoginOption(int i) { this._LoginOption = i; } public int Ge...
50,071
https://github.com/ErikCorryGoogle/lk/blob/master/include/lib/gfx.h
Github Open Source
Open Source
MIT
2,016
lk
ErikCorryGoogle
C
Code
559
1,198
/* * Copyright (c) 2010 Travis Geiselbrecht * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files * (the "Software"), to deal in the Software without restriction, * including without limitation the rights to use, copy, modify, merge,...
1,857
https://github.com/roycecrane/basicWebGL/blob/master/Renderer.js
Github Open Source
Open Source
MIT
null
basicWebGL
roycecrane
JavaScript
Code
171
723
import { useEffect, useRef } from "react"; export function useRenderer(VS,FS, setUniforms) { const canvasRef = useRef(null); useEffect(function initWebGL(){ const canvas = canvasRef.current; const handleResize = () => { canvas.width = window.innerWidth; canvas.height = window.innerHeight; } win...
38,105
https://github.com/kindlychung/mediasoup-sfu-cpp/blob/master/deps/boost/include/boost/context/stack_context.hpp
Github Open Source
Open Source
Apache-2.0
2,022
mediasoup-sfu-cpp
kindlychung
C++
Code
155
626
// Copyright Oliver Kowalke 2014. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_CONTEXT_STACK_CONTEXT_H #define BOOST_CONTEXT_STACK_CONTEXT_H #include <cstddef> #include <...
25,776
https://github.com/lukivoda/completelaravel/blob/master/completelaravel/resources/views/admin/posts/create.blade.php
Github Open Source
Open Source
MIT
2,018
completelaravel
lukivoda
Blade
Code
347
1,723
@extends('layouts.master') @section('content_title','Posts') @section('content') <div class="col-lg-offset-2 col-lg-7"> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">List of posts <span class='pull-right' data-toggle="tooltip" title="Add...
39,287
https://github.com/kidrisbot/kidris.ru/blob/master/search.php
Github Open Source
Open Source
MIT
null
kidris.ru
kidrisbot
PHP
Code
278
1,196
<?php if(!empty($_POST["film"])){ //Принимаем данные $_POST["film"] = str_replace(" ", "%20",$_POST["film"]); $film = trim(strip_tags(stripcslashes(htmlspecialchars($_POST["film"])))); $request = requestVkAPI('video.search', "q={$film}&sort=2&adult=0&extended=1&access_token=ef584b3652783460d14239a4d83be48f2a...
46,712
https://github.com/xystus45/Github-search/blob/master/src/app/repository.ts
Github Open Source
Open Source
MIT
null
Github-search
xystus45
TypeScript
Code
9
33
export class Repository { constructor(public name:string,public html_url:string,public description:string){} }
14,893
https://github.com/niklaslundberg/Arbor.NuGetServer/blob/master/src/Arbor.NuGetServer.Tests.Integration/Helpers/EnvironmentVariableScope.cs
Github Open Source
Open Source
MIT
null
Arbor.NuGetServer
niklaslundberg
C#
Code
130
474
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace Arbor.NuGetServer.Tests.Integration.Helpers { public sealed class EnvironmentVariableScope : IDisposable { private readonly Dictionary<string, string> _oldVariables; private readonly Dictiona...
38,583
https://github.com/ankitshah009/SpeechVAE/blob/master/src/utils/logger.py
Github Open Source
Open Source
Apache-2.0
2,018
SpeechVAE
ankitshah009
Python
Code
167
696
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import logging _DEBUG_FLAG = False _LOGGER = None def set_debug_flag(val): assert(isinstance(val, bool)) global _DEBUG_FLAG _DEBUG_FLAG = val def set_logger(logger): assert(isinstan...
17,559
https://github.com/gabrieldebem/user-registration/blob/master/app/Services/UserAddressService.php
Github Open Source
Open Source
MIT
null
user-registration
gabrieldebem
PHP
Code
124
417
<?php namespace App\Services; use App\Enums\State; use App\Models\UserAddress; class UserAddressService { public UserAddress $userAddress; /** * Set a user. * * @param UserAddress $userAddress * @return $this */ public function setAddress(UserAddress $userAddress): self { ...
22,053
https://github.com/Chaoslecion123/Diver/blob/master/saleor/dashboard/widget/benefit/filters.py
Github Open Source
Open Source
BSD-3-Clause
null
Diver
Chaoslecion123
Python
Code
117
398
from django import forms from django.utils.translation import npgettext, pgettext_lazy from django_filters import CharFilter, ChoiceFilter, OrderingFilter from ....core.filters import SortedFilterSet from ....widget.models import Benefit SORT_BY_FIELDS = { 'name': pgettext_lazy('Benefit list sorting option', 'na...
43,482
https://github.com/appy-one/acebase/blob/master/dist/types/storage/binary/node-info.d.ts
Github Open Source
Open Source
MIT
2,023
acebase
appy-one
TypeScript
Code
24
65
import { NodeInfo } from '../../node-info'; import { BinaryNodeAddress } from './node-address'; export declare class BinaryNodeInfo extends NodeInfo { address?: BinaryNodeAddress; } //# sourceMappingURL=node-info.d.ts.map
8,178
https://github.com/cabify/go-tools/blob/master/unused/testdata/generated1.go
Github Open Source
Open Source
MIT
2,021
go-tools
cabify
Go
Code
9
17
// DO NOT EDIT package pkg type t struct{}
25,666
https://github.com/basmilius/latte-ui/blob/master/packages/latte-ui/src/vue/component/Expandable.vue
Github Open Source
Open Source
MIT
2,022
latte-ui
basmilius
Vue
Code
269
1,042
<!-- - Copyright (c) 2018-2019 - Bas Milius <bas@mili.us> - - This file is part of the Latte UI package. - - For the full copyright and license information, please view the - LICENSE file that was distributed with this source code. --> <template> <div class="expandable"> <div class="expandable-heade...
31,237
https://github.com/Realmonia/Speasy-ver2.0/blob/master/GRDB.swift-2.0.3/slow_methods.sh
Github Open Source
Open Source
MIT
2,017
Speasy-ver2.0
Realmonia
Shell
Code
42
128
#/bin/sh # # Outputs the compilation time of all methods. # To get the 20 slowest methods, run ./slow_methods.sh | head -20 set -e PROJECT=GRDB.xcodeproj TARGET=GRDBiOS OTHER_SWIFT_FLAGS='-Xfrontend -debug-time-function-bodies' xcodebuild -project $PROJECT -target $TARGET 2>&1 clean build | grep '^[0-9][0-9.]*.*\t' |...
52,486
https://github.com/rolfbjarne/GoogleApisForiOSComponents/blob/master/Google.Core/source/Google.Core/ApiDefinition.cs
Github Open Source
Open Source
MIT
2,022
GoogleApisForiOSComponents
rolfbjarne
C#
Code
228
725
using System; using UIKit; using Foundation; using ObjCRuntime; using CoreGraphics; namespace Google.Core { // @interface GGLConfiguration : NSObject [BaseType (typeof(NSObject), Name = "GGLConfiguration")] interface Configuration { // @property (readonly, copy, nonatomic) NSString * apiKey; [Export ("apiKe...
4,413
https://github.com/lanlandetiankong/marsss_will_do/blob/master/src/main/java/com/marsss/marsss_will_do/controller/short_notes/MyShortNotesController.java
Github Open Source
Open Source
Apache-2.0
null
marsss_will_do
lanlandetiankong
Java
Code
281
1,560
package com.marsss.marsss_will_do.controller.short_notes; import com.marsss.marsss_will_do.bean.short_notes.MyShortNotesBean; import com.marsss.marsss_will_do.common.base.controller.MyBaseController; import com.marsss.marsss_will_do.common.constant.MyBaseCommonResult; import com.marsss.marsss_will_do.common.exception....
19,617
https://github.com/nfazlay/Crypton/blob/master/commands/fun/Grenify.js
Github Open Source
Open Source
MIT
null
Crypton
nfazlay
JavaScript
Code
31
106
module.exports = { name: "Grenify", description: "Green text, psst its css", cooldown: 2, args: true, usage: "Text", run: async(message, args) => { const answer = args.join(" "); message.channel.send(`\`\`\`css\n ${answer}\`\`\``); } };
34,823
https://github.com/camgunz/cbase/blob/master/test/dlist.c
Github Open Source
Open Source
Apache-2.0, MIT
2,020
cbase
camgunz
C
Code
334
1,692
#include <setjmp.h> #include "cbase.h" #include "cbase_test.h" #include <cmocka.h> void test_dlist(void **state) { DList *dlist = NULL; DListNode *node = NULL; size_t i; Person *person = NULL; Status status; (void)state; status_init(&status); assert_true(dlist_new(&dlist, sizeof(Pe...
17,722
https://github.com/Angom8/projet0303/blob/master/database/migrations/2019_11_28_072147_create_est_composés_table.php
Github Open Source
Open Source
MIT
2,019
projet0303
Angom8
PHP
Code
55
201
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateEstComposésTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('Est_composé...
35,595
https://github.com/thinhhuynh/strapi/blob/master/packages/core/admin/server/validation/authentication/renew-token.js
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,022
strapi
thinhhuynh
JavaScript
Code
19
70
'use strict'; const { yup, validateYupSchema } = require('@strapi/utils'); const renewToken = yup.object().shape({ token: yup.string().required() }).required().noUnknown(); module.exports = validateYupSchema(renewToken);
32,967
https://github.com/DavidSuter01/TrackTriggerTriage/blob/master/Login/index.js
Github Open Source
Open Source
MIT
null
TrackTriggerTriage
DavidSuter01
JavaScript
Code
8
21
export { default as Splash } from "./src/screens/Splash.js";
30,717
https://github.com/Hexagoons/Hexagoons-website/blob/master/src/templates/partials/footer.hbs
Github Open Source
Open Source
MIT
null
Hexagoons-website
Hexagoons
null
Spoken
62
327
<footer class="footer-container white-text-container"> <div class="container"> <div class="row"> <div class="col-xs-12"> <h3 class="special-font">Hexagoons</h3> <div class="row"> <div class="col-xs-12 col-sm-7"> <p>Cop...
21,237
https://github.com/sweetheartcho/FangzhouMassageChair/blob/master/app/Http/Controllers/Admin/JumpController.php
Github Open Source
Open Source
MIT
2,017
FangzhouMassageChair
sweetheartcho
PHP
Code
69
246
<?php namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use App\Http\Requests; use App\Http\Controllers\Admin\BaseController; class JumpController extends BaseController { public function index() { //验证参数 if (!empty(session('message')) && !empty(session('url')) && !empty(se...
48,185
https://github.com/jsdelivrbot/dockerfiles-1/blob/master/data/m/mirkokiefer/kibana/Dockerfile
Github Open Source
Open Source
MIT
2,018
dockerfiles-1
jsdelivrbot
Dockerfile
Code
15
92
FROM mirkokiefer/nginx RUN curl https://download.elasticsearch.org/kibana/kibana/kibana-3.1.0.tar.gz > kibana.tar.gz RUN tar xvzf kibana.tar.gz --strip-components=1 --no-same-owner -C /data/www
51,156
https://github.com/ClausKlein/lwlog/blob/master/lwlog/src/details/pattern/pattern.cpp
Github Open Source
Open Source
MIT
2,021
lwlog
ClausKlein
C++
Code
264
1,207
#include "pattern.h" #include "color_format_data.h" #include "format_data.h" namespace lwlog::details { std::string pattern::compile(log_message& log_msg) { for (const auto& formatter : m_formatters) formatter->format(m_pattern, log_msg); for (const auto& [flags, value] : m_custom_attributes) format_attri...
48,017
https://github.com/Liu-wy/vue-shopping-mall/blob/master/src/components/comments/Comment.vue
Github Open Source
Open Source
MIT
null
vue-shopping-mall
Liu-wy
Vue
Code
142
935
<template> <div class="comments"> <div class="mui-content"> <div class="mui-content-padded"> <div class="mui-inline">问题和意见</div> <a class="mui-pull-right mui-inline" href="#popover"> 快捷输入 <span class="mui-icon mui-icon-arrowdown"></span> </a> <!--快捷输入具体内容,...
19,472
https://github.com/StydeNet/enlighten/blob/master/tests/Integration/IgnoreClassWithAnnotationTest.php
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,023
enlighten
StydeNet
PHP
Code
27
112
<?php namespace Tests\Integration; use Illuminate\Foundation\Testing\RefreshDatabase; /** * @enlighten {"ignore": true} */ class IgnoreClassWithAnnotationTest extends TestCase { use RefreshDatabase; /** @test */ function does_not_export_test_classes_with_the_enlighten_ignore_annotation() { ...
26,770
https://github.com/sanigo/fluxtream-app/blob/master/fluxtream-connectors/src/main/java/com/fluxtream/connectors/fluxtream_capture/FluxtreamCaptureUpdater.java
Github Open Source
Open Source
Apache-2.0
null
fluxtream-app
sanigo
Java
Code
79
292
package com.fluxtream.connectors.fluxtream_capture; import com.fluxtream.connectors.annotations.Updater; import com.fluxtream.connectors.updaters.AbstractUpdater; import com.fluxtream.connectors.updaters.UpdateInfo; import org.springframework.stereotype.Component; /** * @author Chris Bartley (bartley@cmu.edu) */ @C...
9,035
https://github.com/ynsingh/brihaspati2/blob/master/WEB-INF/src/java/org/iitk/brihaspati/modules/utils/UsageDetailsUtil.java
Github Open Source
Open Source
BSD-2-Clause
null
brihaspati2
ynsingh
Java
Code
313
840
package org.iitk.brihaspati.modules.utils; /* * @(#) UsageDetailsUtil.java * Copyright (c) 2010 ETRG,IIT Kanpur * All Rights Reserved. * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the following * conditions are met: * * Redistribut...
5,582
https://github.com/ikalyuzhniy/exponea-ios-sdk/blob/master/ExponeaSDK/ExponeaSDKTests/Specs/Telemetry/TelemetryManagerSpec.swift
Github Open Source
Open Source
MIT
null
exponea-ios-sdk
ikalyuzhniy
Swift
Code
212
1,172
// // TelemetryManagerSpec.swift // ExponeaSDKTests // // Created by Panaxeo on 21/01/2020. // Copyright © 2020 Exponea. All rights reserved. // import Quick import Nimble @testable import ExponeaSDK final class TelemetryManagerSpec: QuickSpec { var storage: MockTelemetryStorage! var upload: MockTelemetr...
22,769
https://github.com/dixyes/containerfs/blob/master/fuse/fs/fstestutil/doc.go
Github Open Source
Open Source
Apache-2.0
2,019
containerfs
dixyes
Go
Code
5
31
package fstestutil // import "github.com/tiglabs/containerfs/fuse/fs/fstestutil"
8,215
https://github.com/jonserna/saleor/blob/master/saleor/graphql/product/tests/queries/test_report_product_sales.py
Github Open Source
Open Source
BSD-3-Clause
2,023
saleor
jonserna
Python
Code
224
1,099
from decimal import Decimal from ....core.enums import ReportingPeriod from ....tests.utils import get_graphql_content QUERY_REPORT_PRODUCT_SALES = """ query TopProducts($period: ReportingPeriod!, $channel: String!) { reportProductSales(period: $period, first: 20, channel: $channel) { edges { ...
3,407
https://github.com/djegbakokora/lelabelle-dashboar/blob/master/module/historique.php
Github Open Source
Open Source
MIT
null
lelabelle-dashboar
djegbakokora
PHP
Code
274
1,110
<?php include 'config.php'; ?> <br><br> VILLE DE DEPART: <select name="depart" required> <?php $result =mysqli_query($conn, "SELECT id, ville FROM ville"); while($ri = mysqli_fetch_array($result)) { ?> <option value="<?php echo $ri['id'] ?>"> <?php echo $ri['ville'] ?></option> <?ph...
18,100
https://github.com/ScalablyTyped/Distribution/blob/master/a/aws-sdk/src/main/scala/typings/awsSdk/clientsSagemakerMod/ListImageVersionsResponse.scala
Github Open Source
Open Source
MIT
2,023
Distribution
ScalablyTyped
Scala
Code
127
449
package typings.awsSdk.clientsSagemakerMod import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} trait ListImageVersionsResponse extends StObject { /** * A list of versions and their properties. */...
12,804
https://github.com/gatordevin/BoofCV/blob/master/main/boofcv-geo/src/main/java/boofcv/alg/geo/selfcalib/SelfCalibrationLinearDualQuadratic.java
Github Open Source
Open Source
Apache-2.0
null
BoofCV
gatordevin
Java
Code
1,512
4,609
/* * Copyright (c) 2021, Peter Abeles. All Rights Reserved. * * This file is part of BoofCV (http://boofcv.org). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apac...
28,355
https://github.com/SmartDataAnalytics/aksw-commons/blob/master/aksw-commons-beans/src/main/java/org/aksw/commons/beans/datatype/MapType.java
Github Open Source
Open Source
Apache-2.0
2,023
aksw-commons
SmartDataAnalytics
Java
Code
13
46
package org.aksw.commons.beans.datatype; public interface MapType extends DataType { DataType getKeyType(); DataType getValueType(); }
5,977
https://github.com/javi20gu/Milnes_GUI/blob/master/setting_GUI/Iniciar_Sesión.py
Github Open Source
Open Source
Apache-2.0
2,018
Milnes_GUI
javi20gu
Python
Code
32
105
from setting_GUI.database.run_datebase import Database def login(email: str, password: str): usuarios = Database.usuarios() usuario = list(filter(lambda datos: datos[0] == email and datos[1] == password, usuarios)) if usuario: return [True, Database.buscar_por_email(email)] else: r...
50,256
https://github.com/FilippoNevi/EISD/blob/master/Laboratorio/08/splatters/cc65/libwrk/sim65c02/vsprintf.d
Github Open Source
Open Source
Zlib
2,021
EISD
FilippoNevi
Makefile
Code
3
34
../libwrk/sim65c02/vsprintf.o: common/vsprintf.s common/vsprintf.s:
32,162
https://github.com/satirthaKreative/pergola-wood/blob/master/app/Http/Controllers/Admin/Dashboard/MasterWood/MasterWoodController.php
Github Open Source
Open Source
MIT
null
pergola-wood
satirthaKreative
PHP
Code
25
95
<?php namespace App\Http\Controllers\Admin\Dashboard\MasterWood; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class MasterWoodController extends Controller { // master wood types public function index(Request $request) { return view('backend.pages.master-wood.master-woo...
38,102
https://github.com/saracg-forks/microbiomeExplorer/blob/master/R/feature_module.R
Github Open Source
Open Source
MIT
2,021
microbiomeExplorer
saracg-forks
R
Code
1,061
3,388
#' Helper function to replace any un-annotated features with the term unknown #' #' @param featcol vector of entried to be replaced where needed (fData column) #' #' @author Janina Reeder #' #' @return modified featcol #' #' @examples #' data("mouseData", package = "metagenomeSeq") #' featcol <- fData(mouseData)[["...
3,144
https://github.com/aldrinjao/sarai-interactive-maps/blob/master/src/app/map/ui/panel/crop-production-area-panel/crop-production-area-panel.component.ts
Github Open Source
Open Source
MIT
null
sarai-interactive-maps
aldrinjao
TypeScript
Code
218
786
/*! * Crop Production Area Panel Component * * Copyright(c) Exequiel Ceasar Navarrete <esnavarrete1@up.edu.ph> * Licensed under MIT */ import { Component, OnInit, Renderer } from '@angular/core'; import { Router } from '@angular/router'; import { Observable } from 'rxjs/Observable'; import { Store } from '@ngrx/s...
29,955
https://github.com/rbaumbach/AlgorithmsAndDataStructuresInSwift/blob/master/Specs/Algorithms/Array+BinarySearchSpec.swift
Github Open Source
Open Source
MIT
null
AlgorithmsAndDataStructuresInSwift
rbaumbach
Swift
Code
194
507
import Quick import Nimble @testable import AlgorithmsAndDataStructuresInSwift // Problem: Given a sorted array, implement a binary search. If item is found, return the index, if item is NOT found // return -1 // ex: sorted array = [2, 4, 6, 8, 10, 20, 30, 40, 50, 100] // A search for 4 ->...
45,599
https://github.com/mariannailch/mariannailchQA13/blob/master/trelloSeleniumProject/src/test/java/com/TelRan/course/model/BoardData.java
Github Open Source
Open Source
Apache-2.0
2,018
mariannailchQA13
mariannailch
Java
Code
28
75
package com.TelRan.course.model; public class BoardData { private String name; public BoardData setBoardName(String name) { this.name = name; return this; } public String getName() { return name; } }
9,879
https://github.com/sider-bughunter/flow/blob/master/flow-tests/test-application-theme/test-theme-reusable/src/main/java/com/vaadin/flow/uitest/ui/theme/TSView.java
Github Open Source
Open Source
Apache-2.0
2,022
flow
sider-bughunter
Java
Code
20
127
package com.vaadin.flow.uitest.ui.theme; import com.vaadin.flow.component.Component; import com.vaadin.flow.component.Tag; import com.vaadin.flow.component.dependency.JsModule; import com.vaadin.flow.router.Route; @Route("com.vaadin.flow.uitest.ui.theme.TSView") @Tag("ts-component") @JsModule("./ts-component.ts") pub...
5,224
https://github.com/lrosa007/COP4520/blob/master/textbook_problem/src/lockfreestack/lockfreestack.go
Github Open Source
Open Source
MIT
2,019
COP4520
lrosa007
Go
Code
19
49
// Lucas Rosa package lockfreestack import ( "unsafe" "sync/atomic" ) type LockFreeStack struct { top int len int }
32,635
https://github.com/step21/octopodes/blob/master/db/migrations/001_create_users.rb
Github Open Source
Open Source
Apache-2.0
2,015
octopodes
step21
Ruby
Code
42
120
Sequel.migration do up do create_table(:users) do primary_key :id String :username, size: 20, null: false, unique: true String :email, size: 255, unique: true String :password_digest, fixed: true, size: 60 column :token, :uuid DateTime :created_at DateTime :updated_at ...
17,015
https://github.com/widianapw/prognet_mid_CRUD/blob/master/resources/views/edit_prodi.blade.php
Github Open Source
Open Source
MIT
null
prognet_mid_CRUD
widianapw
PHP
Code
37
205
@extends('layouts.app') @section('tittle','biodata') @section('content') <form action="/prodi/{{$prodi->id}}" class="container" method="post" id="formulirku" name="formulir"> @csrf @method("PUT") <label for="nama">Nama :</label> <div class="form-group"> <input type="input-text" class="form-control" name=...
4,309
https://github.com/MrHadess/controltool2/blob/master/controltool/src/main/java/com/mh/controltool2/exceptions/invoke/BeanInstantiationException.java
Github Open Source
Open Source
MIT
null
controltool2
MrHadess
Java
Code
30
112
package com.mh.controltool2.exceptions.invoke; public class BeanInstantiationException extends RuntimeException { public BeanInstantiationException(String message) { super(message); } public BeanInstantiationException(String message, Throwable cause) { super(message, cause); } pu...
38,445
https://github.com/sinanislekdemir/payton/blob/master/payton/scene/physics.py
Github Open Source
Open Source
BSD-3-Clause
2,022
payton
sinanislekdemir
Python
Code
33
100
"""Physics resolver.""" physics_client = None try: import pybullet print("Bullet Physics enabled") physics_client = pybullet.connect(pybullet.DIRECT) except ModuleNotFoundError: print("Bullet Physics is not installed, continue without Physics support") class PhysicsException(Exception): """Raise...
48,426
https://github.com/happyshi0402/nps/blob/master/lib/mux/pconn.go
Github Open Source
Open Source
MIT
2,021
nps
happyshi0402
Go
Code
152
509
package mux import ( "net" "time" ) type PortConn struct { Conn net.Conn rs []byte start int } func newPortConn(conn net.Conn, rs []byte) *PortConn { return &PortConn{ Conn: conn, rs: rs, } } func (pConn *PortConn) Read(b []byte) (n int, err error) { if len(b) < len(pConn.rs)-pConn.start { defer...
20,750
https://github.com/i5ting/weide/blob/master/.gitmodules
Github Open Source
Open Source
MIT
2,016
weide
i5ting
Git Config
Code
8
39
[submodule "vendor"] path = vendor url = https://github.com/gavinkwoe/weapp-ide-crack.git
5,252
https://github.com/saechimdaeki/Cyphers_INFO/blob/master/Cyphers_APP/app/src/main/java/nexon/cyphers/app/Toosin/ToosinActivity.java
Github Open Source
Open Source
MIT
2,020
Cyphers_INFO
saechimdaeki
Java
Code
114
629
package nexon.cyphers.app.Toosin; import android.os.Build; import android.os.Bundle; import android.widget.Toast; import androidx.annotation.RequiresApi; import androidx.appcompat.app.AppCompatActivity; import androidx.fragment.app.FragmentManager; import androidx.fragment.app.FragmentTransaction; import nexon.cyphe...
24,413
https://github.com/robot-leo/extended_object_detection/blob/master/src/offline_video/offline_video.cpp
Github Open Source
Open Source
BSD-3-Clause
2,020
extended_object_detection
robot-leo
C++
Code
237
878
/* Project: Extended Object Detection node for ROS Program: Applyes detection result to video Author: Moscowsky Anton DATUM: 04/07/2020 */ #include "ObjectBase.h" #include "opencv2/opencv.hpp" #include <unistd.h> using namespace eod; using namespace std; using namespace cv; int main(int argc, char **argv) { // pr...
44,374
https://github.com/ttheis1611/CMSstyleWK14/blob/master/views/dashboard.handlebars
Github Open Source
Open Source
MIT
null
CMSstyleWK14
ttheis1611
null
Spoken
48
193
<div> <h1 class="padding-20">Dashboard of Posts</h1> <div style="float: right;"> <a href="/dashboard/create/" class="new-post"><button id="create-post">Create New Post</button></a> </div> {{#if posts.length}} {{!-- List the users posts --}} {{#each posts as |post| }} <a href="/dash...
12,399
https://github.com/deepankarb/barterli_android/blob/master/barter.li/src/li/barter/http/IVolleyHelper.java
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,014
barterli_android
deepankarb
Java
Code
131
245
/******************************************************************************* * Copyright 2014, barter.li * * 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.o...
11,440
https://github.com/dmlc/dgl/blob/master/tests/python/pytorch/graphbolt/test_base.py
Github Open Source
Open Source
Apache-2.0
2,023
dgl
dmlc
Python
Code
199
654
import re import unittest import backend as F import dgl.graphbolt as gb import pytest import torch @unittest.skipIf(F._default_context_str == "cpu", "CopyTo needs GPU to test") def test_CopyTo(): dp = gb.MinibatchSampler(torch.randn(20), 4) dp = gb.CopyTo(dp, "cuda") for data in dp: assert dat...
3,093