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/survirtual/makepad/blob/master/render/live_parser/src/liveregistry.rs
Github Open Source
Open Source
MIT
2,022
makepad
survirtual
Rust
Code
3,785
13,464
use crate::id::{Id, IdType, IdFmt}; use crate::liveerror::{LiveError, LiveFileError}; use makepad_live_derive::*; use crate::livedocument::LiveDocument; use crate::livedocument::LiveScopeTarget; use crate::livedocument::LiveScopeItem; use crate::livenode::{LiveNode, LiveValue}; use crate::liveparser::LiveParser; use cr...
41,992
https://github.com/Leonidowicz/goit-js-hw-13-image-finder/blob/master/src/js/setMurcup.js
Github Open Source
Open Source
MIT
null
goit-js-hw-13-image-finder
Leonidowicz
JavaScript
Code
33
113
export default async function makeMurcup(response, gallery, callback) { if (response.length === 0) { gallery.insertAdjacentHTML( 'beforeend', '<p class="allert">Внимание!</br>По ваему запросу ничего не найдено, уточните поиск.</p>', ); return; } else { gallery.insertAdjacentHTML('beforee...
6,096
https://github.com/Eder0ne/ftp-reverse-proxy/blob/master/ftp-reverse-proxy.go
Github Open Source
Open Source
MIT
2,022
ftp-reverse-proxy
Eder0ne
Go
Code
232
878
package main import ( "flag" "fmt" "github.com/jlaffaye/ftp" "io" "log" "net/http" "net/url" "time" ) func main() { configuration := parseFlags() http.HandleFunc("/", proxy(configuration)) log.Printf("Running on port %d, targetting %s ...", configuration.port, configuration.target.Host) log.Fatal(http.L...
15,206
https://github.com/digitalbuddha/streamlined/blob/master/design-themes/src/main/java/io/github/reactivecircus/streamlined/design/ShapeableImageViewExt.kt
Github Open Source
Open Source
Apache-2.0
2,020
streamlined
digitalbuddha
Kotlin
Code
13
99
package io.github.reactivecircus.streamlined.design import com.google.android.material.imageview.ShapeableImageView fun ShapeableImageView.enableDefaultCornerRadius() { shapeAppearanceModel = shapeAppearanceModel.toBuilder() .setAllCornerSizes(resources.getDimension(R.dimen.dimen_8)) .build() }
37,592
https://github.com/scollis/radar_diagnostics/blob/master/scripts/csapr_6plot.py
Github Open Source
Open Source
BSD-2-Clause
null
radar_diagnostics
scollis
Python
Code
200
639
#! /usr/bin/env python from matplotlib import use use('agg') import pyart from matplotlib import pyplot as plt import sys import numpy as np from time import time from netCDF4 import num2date, date2num if __name__ == '__main__': filename = sys.argv[1] print('Doing ' + filename) outdir = sys.argv[2] rad...
47,167
https://github.com/adamWeesner/weesnerDevelopment/blob/master/backend/src/test/kotlin/billMan/IncomeOccurrenceTests.kt
Github Open Source
Open Source
MIT
2,022
weesnerDevelopment
adamWeesner
Kotlin
Code
405
1,449
package billMan import BaseTest import Path import io.ktor.http.HttpStatusCode.Companion.BadRequest import io.ktor.http.HttpStatusCode.Companion.Created import io.ktor.http.HttpStatusCode.Companion.NoContent import io.ktor.http.HttpStatusCode.Companion.NotFound import io.ktor.http.HttpStatusCode.Companion.OK import or...
38,483
https://github.com/linxi1158/iMIX/blob/master/imix/utils/config.py
Github Open Source
Open Source
Apache-2.0
2,022
iMIX
linxi1158
Python
Code
769
3,052
import ast import os import os.path as osp import shutil import sys import tempfile from importlib import import_module from typing import Dict import torch from datetime import datetime import numpy as np import random import regex from easydict import EasyDict import logging logger = logging.getLogger(__name__) BA...
21,413
https://github.com/udacity/sysbox/blob/master/tests/sysmgr/shiftfsMgr.bats
Github Open Source
Open Source
Apache-2.0
2,022
sysbox
udacity
Shell
Code
1,485
4,289
#!/usr/bin/env bats # # Integration test for the sysbox-mgr shiftfs manager # load ../helpers/run load ../helpers/fs load ../helpers/sysbox-health function setup() { if [ -z "$SHIFT_ROOTFS_UIDS" ]; then skip "needs UID shifting" fi } function teardown() { sysbox_log_check } @test "shiftfsMgr basic" { ...
14,480
https://github.com/nguyenlinh98/happy-scholl/blob/master/database/migrations/2020_01_17_073144_create_seminars_table.php
Github Open Source
Open Source
MIT
null
happy-scholl
nguyenlinh98
PHP
Code
73
562
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateSeminarsTable extends Migration { /** * Run the migrations. */ public function up() { Schema::create('seminars', function (Blueprint $table) { ...
32,487
https://github.com/colbylwilliams/AzureSpeech/blob/master/AzureSpeech/AzureSpeech/AzureSpeechConfig.swift
Github Open Source
Open Source
MIT
null
AzureSpeech
colbylwilliams
Swift
Code
35
83
// // AzureSpeechConfig.swift // AzureSpeech // // Created by Colby L Williams on 9/18/18. // Copyright © 2018 Colby L Williams. All rights reserved. // import Foundation struct SpeechApi { } struct SpeechConfig { }
31,904
https://github.com/NiKeYiGuN/python_study/blob/master/interview/heaviest_prime_word.py
Github Open Source
Open Source
MIT
null
python_study
NiKeYiGuN
Python
Code
528
1,101
from dataclasses import dataclass, field from typing import List import string content: str = """If you can keep your head when all about you Are losing theirs and blaming it on you, If you can trust yourself when all men doubt you, But make allowance for their doubting too; If you can wait and not be tire...
11,704
https://github.com/swoopfx/parkway/blob/master/module/Application/src/Application/Entity/Party.php
Github Open Source
Open Source
BSD-3-Clause
null
parkway
swoopfx
PHP
Code
62
220
<?php namespace Application\Entity; use Doctrine\ORM\Mapping as ORM; /** * Party * * @ORM\Table(name="party") * @ORM\Entity */ class Party { /** * @var int * * @ORM\Column(name="id", type="integer", nullable=false) * @ORM\Id * @ORM\GeneratedValue(strategy="IDENTITY") */ priv...
46,487
https://github.com/esiur/esiur-dotnet/blob/master/Test/MyObject.cs
Github Open Source
Open Source
MIT
2,021
esiur-dotnet
esiur
C#
Code
386
988
using Esiur.Data; using Esiur.Core; using Esiur.Net.IIP; using Esiur.Resource; using System; using System.Collections.Generic; using System.Text; using System.Threading; namespace Test { public class MyObject : EntryPoint { [ResourceEvent] public event ResourceEventHanlder LevelUp; [R...
17,295
https://github.com/hinohie/dali-test/blob/master/visual-tests/multiple-window-creation-deletion/multiple-window-creation-deletion-test.cpp
Github Open Source
Open Source
Apache-2.0
2,020
dali-test
hinohie
C++
Code
367
1,026
/* * Copyright (c) 2020 Samsung Electronics 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...
12,668
https://github.com/HIIT/meeting-recorder/blob/master/uploadthread.h
Github Open Source
Open Source
MIT
2,019
meeting-recorder
HIIT
C
Code
118
423
#ifndef UPLOADTHREAD_H #define UPLOADTHREAD_H #include <QtCore> #include <QThread> extern "C" { #include <libssh2.h> #include <libssh2_sftp.h> } class UploadThread : public QThread { Q_OBJECT void run(); signals: void uploadMessage(const QString &e); void blockSent(); void nBlocks(int); voi...
44,776
https://github.com/eudagraca/website-umum/blob/master/resources/views/slide/slider.blade.php
Github Open Source
Open Source
MIT
null
website-umum
eudagraca
PHP
Code
59
343
<div class="uk-position-relative uk-visible-toggle uk-light" tabindex="-1" uk-slideshow="animation: scale; ratio: 800:500; autoplay: true"> <ul class="uk-slideshow-items uk-align-center"> @forelse ($banners as $banner) <li> <img src="storage/banner_images/{{$banner->imagem}}" a...
34,323
https://github.com/tmpvar/node-ogl/blob/master/util/in/GLES/egl.h
Github Open Source
Open Source
MIT
2,020
node-ogl
tmpvar
C
Code
29
83
/* For compatibility with early OpenGL ES 1.0 implementations that * included gl.h in egl.h (and apps that only included egl.h) * See: http://www.khronos.org/registry/implementers_guide.html */ #include <EGL/egl.h> #include <GLES/gl.h>
2,315
https://github.com/yezhihao/jt808-client/blob/master/src/main/java/org/yzh/protocol/commons/transform/passthrough/PeripheralStatus.java
Github Open Source
Open Source
Apache-2.0
2,022
jt808-client
yezhihao
Java
Code
336
1,296
package org.yzh.protocol.commons.transform.passthrough; import io.netty.buffer.ByteBuf; import java.util.ArrayList; import java.util.List; /** * 状态查询 * 外设状态信息:外设工作状态、设备报警信息 * @author yezhihao * https://gitee.com/yezhihao/jt808-server */ public class PeripheralStatus { public static final int key = 0xF7; ...
6,011
https://github.com/yxiao1996/dev/blob/master/misc/vim-sample/dot-vim/indent/python.vim
Github Open Source
Open Source
CC-BY-2.0
2,019
dev
yxiao1996
null
Spoken
690
1,800
" Python indent file " Language: Python " Maintainer: Eric Mc Sween <em@tomcom.de> " Original Author: David Bustos <bustos@caltech.edu> " Last Change: 2004 Jun 07 " Only load this indent file when no other was loaded. if exists("b:did_indent") finish endif let b:did_indent = 1 setlocal expandtab se...
21,793
https://github.com/phaazon/luminance-rs/blob/master/luminance/src/backend.rs
Github Open Source
Open Source
BSD-3-Clause
2,022
luminance-rs
phaazon
Rust
Code
890
1,451
//! Backend interfacing. //! //! > Almost everything declared in this module and its submodules is `unsafe`. An end-user **is not //! > supposed to implement any of this.** Library authors might use some traits from here, required //! > by generic code, but no one but backend authors should implement any symbols from h...
15,162
https://github.com/TheRakeshPurohit/CodingSpectator/blob/master/plug-ins/helios/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/AbstractConfigurationBlockPreferenceAndPropertyPage.java
Github Open Source
Open Source
NCSA
2,021
CodingSpectator
TheRakeshPurohit
Java
Code
296
1,095
/******************************************************************************* * Copyright (c) 2000, 2008 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, an...
6,923
https://github.com/goncaloperes/metasploit-framework/blob/master/modules/post/windows/gather/bitcoin_jacker.rb
Github Open Source
Open Source
BSD-2-Clause, BSD-3-Clause
2,022
metasploit-framework
goncaloperes
Ruby
Code
315
1,091
## # This module requires Metasploit: https://metasploit.com/download # Current source: https://github.com/rapid7/metasploit-framework ## class MetasploitModule < Msf::Post include Msf::Auxiliary::Report include Msf::Post::Windows::UserProfiles include Msf::Post::File def initialize(info = {}) super( ...
17,909
https://github.com/asd81738431/thinkphp-exception/blob/master/app/common/lib/upload/extend/UploadAbstract.php
Github Open Source
Open Source
Apache-2.0
null
thinkphp-exception
asd81738431
PHP
Code
106
389
<?php namespace app\common\lib\upload\extend; use think\facade\Filesystem; use think\exception\ValidateException; abstract class UploadAbstract{ protected $validate; //上传验证规则 protected $files; //上传文件 protected $configName; //上传配置名称 protected function file($file = null){ if($file === null){ ...
41,250
https://github.com/pgnDataBase/pgnDB/blob/master/webclient/src/app/common/cancel-confirm-input/cancel-confirm-input.component.scss
Github Open Source
Open Source
MIT
2,022
pgnDB
pgnDataBase
SCSS
Code
86
327
@import "../../../globals.scss"; :host { .input-div { display: flex; } .cancel { display: flex; align-items: start; margin-top: 5px; background-color: transparent; outline: none; border: none; color: $red-scarlet; &:hover:not(:disabled) { cursor: pointer; color: ...
22,787
https://github.com/artofcodelabs/generic_job/blob/master/lib/generic_job.rb
Github Open Source
Open Source
MIT
2,021
generic_job
artofcodelabs
Ruby
Code
19
75
# frozen_string_literal: true class GenericJob < ActiveJob::Base end require_relative 'generic_job/perform' require_relative 'generic_job/stub' require_relative 'generic_job/async' class GenericJob include GenericJob::Perform end
35,559
https://github.com/korbenzhang/vimrc/blob/master/confs/pluginrc/unite.vim
Github Open Source
Open Source
Apache-2.0
2,017
vimrc
korbenzhang
null
Spoken
3
34
"http://github.com/Shougo/unite.vim Plug 'Shougo/unite.vim'
44,264
https://github.com/ksedgwic/plproxy/blob/master/test/sql/plproxy_cancel.sql
Github Open Source
Open Source
0BSD
2,022
plproxy
ksedgwic
SQL
Code
118
257
-- test canceling \c test_part0 create function rsleep(val int4) returns int4 as $$ begin perform pg_sleep(val); return 1; end; $$ language plpgsql; \c test_part1 create function rsleep(val int4) returns int4 as $$ begin perform pg_sleep(val); return 1; end; $$ language plpgsql; \c test_part2 create function rsleep(v...
34,950
https://github.com/m4ns0ur/l-system/blob/master/cantor-set.py
Github Open Source
Open Source
MIT
2,021
l-system
m4ns0ur
Python
Code
70
189
import turtle def next(s): r = '' for c in s: if c == 'A': r += 'ABA' elif c == 'B': r += 'BBB' return r def draw(s, n): for c in s: if c == 'A': t.fd(n) elif c == 'B': t.penup() t.fd(n) t.pendown...
16,033
https://github.com/li--paul/micos/blob/master/include/string.h
Github Open Source
Open Source
MIT
2,017
micos
li--paul
C
Code
26
88
/** * @file String * @author treelite(c.xinle@gmail.com) */ #ifndef _STRING_H_ #define _STRING_H_ #include <stdint.h> int strlen(char *str); void memcpy(void *desc, const void *src, uint32_t n); #endif
4,958
https://github.com/inri13666/migration-component/blob/master/src/Tests/Unit/Migration/Fixtures/MigrationWithTestExtension.php
Github Open Source
Open Source
MIT
2,018
migration-component
inri13666
PHP
Code
92
457
<?php namespace Okvpn\Component\Migration\Tests\Unit\Migration\Fixtures; use Doctrine\DBAL\Schema\Schema; use Doctrine\DBAL\Platforms\AbstractPlatform; use Okvpn\Component\Migration\Migration\Migration; use Okvpn\Component\Migration\Migration\QueryBag; use Okvpn\Component\Migration\Migration\Extension\DatabasePlatfor...
18,077
https://github.com/KsenijaS/onnxruntime/blob/master/onnxruntime/core/providers/nnapi/nnapi_builtin/model.h
Github Open Source
Open Source
MIT
2,021
onnxruntime
KsenijaS
C
Code
476
1,434
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #include "builders/shaper.h" #include "core/platform/ort_mutex.h" #include "nnapi_lib/NeuralNetworksWrapper.h" namespace onnxruntime { namespace nnapi { #define USENNAPISHAREDMEM 1 class Model { friend cl...
44,108
https://github.com/drugTang/ContentService/blob/master/app/src/main/java/com/lex/tang/cs/view/SwipeRefreshView/SwipeRefreshLayout.java
Github Open Source
Open Source
Apache-2.0
null
ContentService
drugTang
Java
Code
2,980
9,247
/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
6,576
https://github.com/sbalababu/archway_test/blob/master/common/src/test/scala/io/phdata/services/JSONTemplateServiceSpec.scala
Github Open Source
Open Source
Apache-2.0
2,020
archway_test
sbalababu
Scala
Code
143
435
package io.phdata.services import cats.effect._ import io.phdata.models.{TemplateRequest, DistinguishedName} import io.phdata.test.fixtures._ import org.scalamock.scalatest.MockFactory import org.scalatest.{FlatSpec, Matchers} class JSONTemplateServiceSpec extends FlatSpec with Matchers with MockFactory with AppConte...
33,345
https://github.com/nominum/nomcc/blob/master/nomcc/exceptions.py
Github Open Source
Open Source
Apache-2.0
2,021
nomcc
nominum
Python
Code
447
1,050
# Copyright (C) 2019 Akamai Technologies, Inc. # Copyright (C) 2003-2014,2016 Nominum, 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-...
1,784
https://github.com/mzso/av1/blob/master/test/txb_test.cc
Github Open Source
Open Source
BSD-2-Clause
null
av1
mzso
C++
Code
550
1,837
/* * Copyright (c) 2017, Alliance for Open Media. All rights reserved * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at w...
34,939
https://github.com/huntc/akka/blob/master/akka-stream/src/main/scala/akka/stream/impl/RateDetachedProcessors.scala
Github Open Source
Open Source
Apache-2.0
null
akka
huntc
Scala
Code
262
981
/** * Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com> */ package akka.stream.impl import akka.stream.{ OverflowStrategy, MaterializerSettings } class ConflateImpl(_settings: MaterializerSettings, seed: Any ⇒ Any, aggregate: (Any, Any) ⇒ Any) extends ActorProcessorImpl(_settings) { var conflated: A...
8,978
https://github.com/hugorebelo/gitlabhq/blob/master/lib/gitlab/kubernetes/default_namespace.rb
Github Open Source
Open Source
MIT
2,020
gitlabhq
hugorebelo
Ruby
Code
136
439
# frozen_string_literal: true module Gitlab module Kubernetes class DefaultNamespace attr_reader :cluster, :project delegate :platform_kubernetes, to: :cluster ## # Ideally we would just use an environment record here instead of # passing a project and name/slug separately, but we...
36,910
https://github.com/Outs3/subahayai/blob/master/sbhyi-akts/src/main/java/com/outs/utils/android/lifecycle/AutoCloseLifecycleObserver.kt
Github Open Source
Open Source
MIT
null
subahayai
Outs3
Kotlin
Code
33
131
package com.outs.utils.android.lifecycle import androidx.lifecycle.DefaultLifecycleObserver import androidx.lifecycle.LifecycleOwner /** * author: Outs3 * e-mail: 3.3nosekai@gmail.com * date: 2021/4/24 15:28 * desc: */ interface AutoCloseLifecycleObserver : DefaultLifecycleObserver { override fun onDestroy(...
9,707
https://github.com/edman193/spreadsheet/blob/master/app/components/spreadsheet/cell/controller.rb
Github Open Source
Open Source
MIT
2,021
spreadsheet
edman193
Ruby
Code
61
179
# frozen_string_literal: true module Spreadsheet class Cell # Spreadsheet Cell, controller methods module Controller def component_controller # We use `cell_controller` option here instead `controller` like in other components # to avoid conflicts, since cell receive all row options too...
10,226
https://github.com/SBYSA/SinglePageOauthBCASPNET-main/blob/master/AppModelv2-WebApp-OpenIDConnect-DotNet/Views/UserParameters/Index.cshtml
Github Open Source
Open Source
Apache-2.0
null
SinglePageOauthBCASPNET-main
SBYSA
C#
Code
1,810
7,133
@model AppModelv2_WebApp_OpenIDConnect_DotNet.Models.UserParameters @{ ViewBag.Title = "Index"; Layout = "~/Views/Shared/_Layout.cshtml"; } <h2>Index</h2> @using (Html.BeginForm()) { //@Html.AntiForgeryToken() <div class="form-horizontal"> <h4>UserParameters</h4> <hr /> ...
44,996
https://github.com/rkoeninger/euler/blob/master/src/euler22/euler22.factor
Github Open Source
Open Source
MIT
2,022
euler
rkoeninger
null
Spoken
162
280
! Using names.txt (right click and 'Save Link/Target As...'), ! a 46K text file containing over five-thousand first names, ! begin by sorting it into alphabetical order. Then working ! out the alphabetical value for each name, multiply this value ! by its alphabetical position in the list to obtain a name score. ! For...
44,283
https://github.com/paulslen/audits-slingshot/blob/master/node_modules/graphiql/esm/utility/find.js
Github Open Source
Open Source
MIT
null
audits-slingshot
paulslen
JavaScript
Code
26
68
export default function find(list, predicate) { for (var i = 0; i < list.length; i++) { if (predicate(list[i])) { return list[i]; } } } //# sourceMappingURL=find.js.map
29,826
https://github.com/shrijalkaphle/klc/blob/master/resources/views/frontend/includes/about.blade.php
Github Open Source
Open Source
MIT
null
klc
shrijalkaphle
PHP
Code
45
216
<div class="about-area-two ptb-100"> <div class="container"> <div class="row align-items-center"> <div class="col-lg-5 col-md-12"> <div class="about-content-box"> <h2>{{ $about->title }}</h2> {!! $about->content !!} </div> </div> <div class="...
5,393
https://github.com/LukeTheWalker/Laser-Avoiding-AI/blob/master/visualization.js
Github Open Source
Open Source
MIT
null
Laser-Avoiding-AI
LukeTheWalker
JavaScript
Code
233
786
function getNodeColor (net) { /* if (node.type == "hidden") return "yellow" if (node.type == "output") return "red" if (node.type == "input") return "blue"*/ } function weightColor (weight) { if (weight == 1) return "black" if (weight > 0) return "green" return "red" } async function generateGraph (a){ ...
13,792
https://github.com/gustavodoamaral/115_Desafios_Python/blob/master/Desafios/desafio66.py
Github Open Source
Open Source
MIT
2,022
115_Desafios_Python
gustavodoamaral
Python
Code
40
83
num = 0 cont = 0 itens = 0 soma = 0 while num != 999: num = int(input("Digite um número: ")) if num == 999: break soma += num cont+=1 print(f"Foram digitados {cont} numeros e a soma é {soma}")
42,656
https://github.com/guohaoqiang/leetcode/blob/master/Graph/1345_bfs.cc
Github Open Source
Open Source
MIT
null
leetcode
guohaoqiang
C++
Code
77
329
class Solution { public: int minJumps(vector<int>& arr) { int n = arr.size(); // {val,{idx0,idx1,...}} unordered_map<int, vector<size_t>> m; for (size_t i=0; i<arr.size(); ++i){ m[arr[i]].push_back(i); } vector<bool> v(n,false); v[0] = tru...
39,657
https://github.com/brsyuksel/xurl/blob/master/src/test/scala/xurl/serial/BaseNPositiveSuite.scala
Github Open Source
Open Source
Unlicense
2,022
xurl
brsyuksel
Scala
Code
78
281
package xurl.serial import cats.effect.IO import org.scalacheck.Gen import weaver.SimpleIOSuite import weaver.scalacheck.Checkers object BaseNPositiveSuite extends SimpleIOSuite with Checkers { private val letters = "abc123def456" private val base12 = new BaseNPositive[IO](letters) test("NumberIsNotPositive e...
9,959
https://github.com/brookspepper/cit111_ccac/blob/master/challenge.java
Github Open Source
Open Source
Apache-2.0
null
cit111_ccac
brookspepper
Java
Code
109
295
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package week5; import java.util.Scanner; /** * * @author 14124 */ public class challenge { public static void main (String[] ar...
45,518
https://github.com/klorenzo/learning-junit/blob/master/src/test/java/com/kevinlorenzo/learning/junit/discounts/PriceCalculatorShould.java
Github Open Source
Open Source
Apache-2.0
null
learning-junit
klorenzo
Java
Code
59
313
package com.kevinlorenzo.learning.junit.discounts; import org.junit.Assert; import org.junit.Test; import static org.hamcrest.CoreMatchers.is; public class PriceCalculatorShould { @Test public void total_zero_when_there_are_not_prices() { PriceCalculator priceCalculator = new PriceCalculator(); ...
30,420
https://github.com/mgomez08/JS-Concepts/blob/master/1 Foundations/useStrict.js
Github Open Source
Open Source
MIT
2,022
JS-Concepts
mgomez08
JavaScript
Code
94
142
// 'use strict' // What is the variable environment of the variable qwerty? function check(){ qwerty = 1000; return qwerty; } console.log(check()); /** * It will be in global environment if we do not add the `use strict` to the top of the file. * Js engine just checks for var in each lexical env, if not f...
13,341
https://github.com/timwindsor/cordova-blackberry-plugins/blob/master/test/test-app/automatic/spec/blackberry.ui.cover.js
Github Open Source
Open Source
Apache-2.0
2,017
cordova-blackberry-plugins
timwindsor
JavaScript
Code
198
520
/* * Copyright 2014 BlackBerry Limited. * * 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...
3,907
https://github.com/NoxCraft/NoxCraft-Master-Repo/blob/master/NoxHomes/src/main/java/com/noxpvp/homes/commands/LocateHomeCommand.java
Github Open Source
Open Source
RSA-MD
null
NoxCraft-Master-Repo
NoxCraft
Java
Code
205
473
/* * Copyright (c) 2014. NoxPVP.com * * All rights are reserved. * * You are not permitted to * Modify * Redistribute nor distribute * Sublicense * * You are required to keep this license header intact * * You are allowed to use this for non commercial purpose only. This does not allow any ad.fly type li...
46,582
https://github.com/CarlAmbroselli/barcelona/blob/master/Core/Barcelona/Queries/IMDPersistence.swift
Github Open Source
Open Source
Apache-2.0
null
barcelona
CarlAmbroselli
Swift
Code
951
2,902
// // IMDPersistence.swift // CoreBarcelona // // Created by Eric Rabil on 1/29/21. // Copyright © 2021 Eric Rabil. All rights reserved. // import Foundation import IMDPersistence import BarcelonaDB import IMCore private let IMDLog = Logger(category: "IMDPersistenceQueries") #if DEBUG private var IMDWithinBlock ...
24,881
https://github.com/the1812/Android-Demos/blob/master/app/src/main/java/com/helloworld/androiddemo/broadcasts/MessageActivity.kt
Github Open Source
Open Source
MIT
null
Android-Demos
the1812
Kotlin
Code
105
448
package com.helloworld.androiddemo.broadcasts import android.Manifest import android.content.IntentFilter import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.provider.Telephony import com.helloworld.androiddemo.Permissions import com.helloworld.androiddemo.R import com.helloworld.an...
1,462
https://github.com/nanirocks125/ToDoWithTDD/blob/master/ToDoWithTDDTests/Controller/ItemListDataProviderTests.swift
Github Open Source
Open Source
Apache-2.0
null
ToDoWithTDD
nanirocks125
Swift
Code
452
1,978
// // ItemListDataProviderTests.swift // ToDoWithTDDTests // // Created by Manikanta Nandam on 04/12/18. // Copyright © 2018 Manikanta. All rights reserved. // import XCTest @testable import ToDoWithTDD class ItemListDataProviderTests: XCTestCase { var sut: ItemListDataProvider! var controller: ItemListV...
20,941
https://github.com/syncfusion/file-formats-aspnet-ej1-demos/blob/master/XlsIO/ChartWorksheet.aspx
Github Open Source
Open Source
Net-SNMP, Xnet, Info-ZIP
2,022
file-formats-aspnet-ej1-demos
syncfusion
null
Spoken
200
622
<%@ Page Title="XlsIO-Chart Worksheet-ASP.NET-SYNCFUSION" MasterPageFile="~/samplebrowser.master" Language="C#" AutoEventWireup="true" CodeFile="ChartWorksheet.aspx.cs" Inherits="WebSampleBrowser.XlsIO.ChartWorksheet" %> <asp:Content ID="Content2" ContentPlaceHolderID="ControlsSection" runat="server"> <p> ...
10,430
https://github.com/adisbladis/oil/blob/master/osh/braces.py
Github Open Source
Open Source
Apache-2.0
null
oil
adisbladis
Python
Code
1,573
4,424
#!/usr/bin/env python2 """ braces.py - Implementation of {andy,bob}@example.com NOTE: bash implements brace expansion in the braces.c file (835 lines). It uses goto! Possible optimization flags for Compound: - has Lit_LBrace, LitRBrace -- set during word_parse phase - it if has both, then do _BraceDetect - has Bra...
23,812
https://github.com/nonVoid/remotedebug-ios-webkit-adapter/blob/master/out/server.d.ts
Github Open Source
Open Source
MIT
2,021
remotedebug-ios-webkit-adapter
nonVoid
TypeScript
Code
67
197
/// <reference types="node" /> import { EventEmitter } from "events"; import { Adapter } from "./adapters/adapter"; export declare class ProxyServer extends EventEmitter { private _hs; private _es; private _wss; private _serverPort; private _serverHost; private _adapter; private _targetFetch...
13,179
https://github.com/4Ykw/ecency-vision/blob/master/src/common/components/community-post-btn/index.tsx
Github Open Source
Open Source
MIT
2,022
ecency-vision
4Ykw
TypeScript
Code
75
226
import React, {Component} from "react"; import {History} from "history"; import {Button} from "react-bootstrap"; import {Community} from "../../store/communities/types"; import {_t} from "../../i18n"; interface Props { history: History; community: Community; } export class CommunityPostBtn extends Compone...
13,136
https://github.com/Brugman/localhost-index/blob/master/js/app.js
Github Open Source
Open Source
MIT
2,022
localhost-index
Brugman
JavaScript
Code
187
492
(function($) { /** * Functions. */ var filter_project_list = function () { var query = $( this ).val().toLowerCase(); if ( query != '' ) { $('.project').filter( function () { $( this ).toggle( $( this ).find('.name').text().toLowerCase(...
29,157
https://github.com/Daniel-Medina/Laravel-restaurant-plantilla/blob/master/resources/views/home/stuff/index.blade.php
Github Open Source
Open Source
MIT
null
Laravel-restaurant-plantilla
Daniel-Medina
PHP
Code
148
811
<x-app-layout> <!-- banner --> <x-banner name="Stuff"/> <!-- Start Stuff --> <div class="stuff-box"> <div class="container"> <div class="row"> <div class="col-lg-12"> <div class="heading-title text-center"> <h2>Stuff</h2> <p>Lorem Ipsum is simply dummy text of the printing and t...
21,264
https://github.com/wooxist/kakao_flutter_sdk/blob/master/test/push/push_api_test.dart
Github Open Source
Open Source
Apache-2.0
null
kakao_flutter_sdk
wooxist
Dart
Code
159
634
import 'dart:convert'; import 'package:dio/dio.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:kakao_flutter_mirror/push.dart'; import 'package:platform/platform.dart'; import '../helper.dart'; import '../mock_adapter.dart'; void main() { MockAdapter _adapter; PushApi _api; Dio _dio; ...
37,531
https://github.com/gizatt/python_graphcut/blob/master/graphcut.py
Github Open Source
Open Source
MIT
2,020
python_graphcut
gizatt
Python
Code
1,608
6,716
from __future__ import print_function import argparse import os import sys import matplotlib.pyplot as plt import networkx as nx import numpy as np import scipy.sparse from scipy.interpolate import interp1d import time from PIL import Image import networkx import networkx.algorithms.flow as flow def perform_min_cut(...
5,944
https://github.com/CrackerCat/JavaLearnVulnerability/blob/master/shiro/shiro-deser/src/main/java/summersec/shirodemo/Realm/MyRealm.java
Github Open Source
Open Source
CC0-1.0
null
JavaLearnVulnerability
CrackerCat
Java
Code
80
294
package summersec.shirodemo.Realm; import org.apache.shiro.authc.*; import org.apache.shiro.authz.AuthorizationInfo; import org.apache.shiro.realm.AuthorizingRealm; import org.apache.shiro.subject.PrincipalCollection; import java.util.UUID; /** * @ClassName: MyRealm * @Description: TODO * @Author: Summer * @Date...
37,534
https://github.com/Testiduk/gitlabhq/blob/master/spec/graphql/types/ci/test_suite_summary_type_spec.rb
Github Open Source
Open Source
MIT
2,022
gitlabhq
Testiduk
Ruby
Code
41
138
# frozen_string_literal: true require 'spec_helper' RSpec.describe Types::Ci::TestSuiteSummaryType do specify { expect(described_class.graphql_name).to eq('TestSuiteSummary') } it 'contains attributes related to a pipeline test report summary' do expected_fields = %w[ name total_time total_count succes...
8,857
https://github.com/MondoAurora/ARK-Dock/blob/master/Java/ARKDockGeo/src/ark/dock/geo/json/ArkDockGeojsonLoader.java
Github Open Source
Open Source
Apache-2.0
null
ARK-Dock
MondoAurora
Java
Code
449
2,081
package ark.dock.geo.json; import java.io.File; import java.util.HashMap; import java.util.Map; import ark.dock.ArkDock; import ark.dock.ArkDockConsts; import ark.dock.ArkDockDsl; import ark.dock.ArkDockDslBuilder; import ark.dock.ArkDockUnit; import ark.dock.ArkDockUtils; import ark.dock.geo.json.ArkDockGeojson2D.Ge...
22,952
https://github.com/Prashanth820/Flatzy/blob/master/app/src/main/java/com/arpan/collegebroker/gps/PointsParser.kt
Github Open Source
Open Source
MIT
null
Flatzy
Prashanth820
Kotlin
Code
244
799
package com.arpan.collegebroker.gps import android.content.Context import android.graphics.Color import android.os.AsyncTask import android.util.Log import com.google.android.gms.maps.model.LatLng import com.google.android.gms.maps.model.PolylineOptions import org.json.JSONObject class PointsParser(mContext: Context...
22,043
https://github.com/ldamman/VaporBoolTester/blob/master/Tests/AppTests/BoolResponseTests.swift
Github Open Source
Open Source
MIT
null
VaporBoolTester
ldamman
Swift
Code
116
379
import XCTest import Testing import HTTP import Sockets @testable import Vapor @testable import App class BoolResponseTests: TestCase { func testPrettyFetch() throws { let drop = try! Droplet.testable() try drop.testResponse(to: .get, at: "/pretty") .assertStatus(is: .ok) .assertJSON("someFlag", equals: ...
5,588
https://github.com/rainerzufalldererste/slapcodec2D/blob/master/slapcodec2D/src/slapcodec2D.c
Github Open Source
Open Source
MIT
2,020
slapcodec2D
rainerzufalldererste
C
Code
3,440
14,086
// Copyright 2019 Christoph Stiller // // 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, publish, distribu...
26,155
https://github.com/stigmergic/no-cms/blob/master/src/sass/components/_application.scss
Github Open Source
Open Source
MIT
null
no-cms
stigmergic
SCSS
Code
122
338
// // Application // --------------------------- // Note: This partial should not be utilized for a production application // Application-level components should be defined at the top level, i.e. base.scss, layout.scss, etc // This partial is set aside to provide an initial "skin" for the boilerplate, and should proba...
40,954
https://github.com/Irfani-ardhyansah/spk_saw_laravel/blob/master/database/seeds/WeightsTableSeeder.php
Github Open Source
Open Source
MIT
null
spk_saw_laravel
Irfani-ardhyansah
PHP
Code
335
1,191
<?php use Illuminate\Database\Seeder; use App\Weight; use App\Criteria; class WeightsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // Bobot IPK Weight::create([ 'criteria_id' => Criteria::where('name',...
26,655
https://github.com/Kushki/suka-react-icons/blob/master/src/icons/calendar.js
Github Open Source
Open Source
MIT
2,020
suka-react-icons
Kushki
JavaScript
Code
98
321
import React, { forwardRef } from 'react'; import PropTypes from 'prop-types'; const Calendar = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => { return ( <svg ref={ref} xmlns="http://www.w3.org/2000/svg" width={size} height={size} viewBox="0 0 24 24" fill=...
24,370
https://github.com/jkraenzle/Riverbed-Community-Toolkit/blob/master/SteelConnect/Azure-EX-Templates/he_standalone_1.0/vars.tf
Github Open Source
Open Source
MIT
2,022
Riverbed-Community-Toolkit
jkraenzle
HCL
Code
314
659
variable "subscription_id" { description = "Subscription ID of Azure account." } variable "client_id" { description = "Client ID of Terraform account to be used to deploy VM on Azure." } variable "client_secret" { description = "Client Secret of Terraform account to be used to deploy VM on Azure." } variable "...
17,974
https://github.com/dxe/url-shortcuts/blob/master/modules/shortcuts/server/controllers/shortcuts.server.controller.js
Github Open Source
Open Source
MIT
2,020
url-shortcuts
dxe
JavaScript
Code
633
1,813
'use strict'; /** * Module dependencies */ var path = require('path'), mongoose = require('mongoose'), Shortcut = mongoose.model('Shortcut'), Analytics = mongoose.model('Analytics'), errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')), url = require('url'); v...
11,117
https://github.com/yosraf/team_manager_app/blob/master/src/app/Screens/proposition-details/proposition-details.page.ts
Github Open Source
Open Source
MIT
null
team_manager_app
yosraf
TypeScript
Code
171
705
import { Component, OnInit } from '@angular/core'; import {ActivatedRoute,Router} from "@angular/router"; import {ProjectsService} from '../../Services/projects.service'; import {Proposition} from '../../Models/Proposition'; import { Downloader, DownloadRequest, NotificationVisibility } from '@ionic-native/downloader/n...
40,245
https://github.com/kunpengcompute/devkit-vscode-plugin/blob/master/workspace/projects/java/src-web/app/profile/profile-snapshot/components/contrast-snapshot/contrast-snapshot.component.ts
Github Open Source
Open Source
Apache-2.0
null
devkit-vscode-plugin
kunpengcompute
TypeScript
Code
1,024
3,776
import { Component, OnInit, Output, Input, EventEmitter, ViewChild, OnDestroy } from '@angular/core'; import { I18nService } from '../../../../service/i18n.service'; import { AxiosService } from '../../../../service/axios.service'; import { TiTableColumns, TiTableRowData, TiTableSrcData, TiTableComponent, TiTableDataSt...
25,540
https://github.com/cmmmli/react-atomic-structure-storybook/blob/master/app/components/atoms/Image/_style.scss
Github Open Source
Open Source
MIT
2,022
react-atomic-structure-storybook
cmmmli
SCSS
Code
3
8
.a__image { }
29,110
https://github.com/javok002/profelumno/blob/master/conf/evolutions/default/1.sql
Github Open Source
Open Source
Apache-2.0
null
profelumno
javok002
SQL
Code
756
1,927
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table chat ( id bigint not null, teacher_id bigint, student_id bigint, constraint pk_chat primary key (id)) ; create table day_range...
39,740
https://github.com/valerylobachev/axon-frontend/blob/master/src/components/SimpleLazyFilter.vue
Github Open Source
Open Source
Apache-2.0
2,020
axon-frontend
valerylobachev
Vue
Code
73
320
<template> <q-input :label="placeholder ? placeholder : $t('axon.shared.filter')" :debounce="debounce" :value="filter" @input="setFilter($event)"> <template v-slot:append> <q-icon name="close" @click="clearFilter()" class="cursor-pointer"/> <q-icon name="search" @click...
21,760
https://github.com/thaidem/python_training_mantis/blob/master/fixture/project.py
Github Open Source
Open Source
Apache-2.0
null
python_training_mantis
thaidem
Python
Code
148
777
from model.project import Project class ProjectHelper: def __init__(self, app): self.app = app def open_project_page(self): driver = self.app.driver if not driver.current_url.endswith("/manage_proj_page.php") and \ len(driver.find_elements_by_xpath("//input[@value='Cr...
34,158
https://github.com/storset/vtk/blob/master/src/main/java/vtk/webdav/UnlockController.java
Github Open Source
Open Source
BSD-3-Clause
null
vtk
storset
Java
Code
521
1,407
/* Copyright (c) 2004, University of Oslo, Norway * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, thi...
16,272
https://github.com/echaussidon/desitarget/blob/master/py/desitarget/lyazcat.py
Github Open Source
Open Source
BSD-3-Clause
2,022
desitarget
echaussidon
Python
Code
3,349
9,702
""" desitarget.lyazcat ================== Post-redrock ML processing for LyA Quasar object identification. """ import os import numpy as np import time import fitsio from desitarget.geomask import match, match_to from desitarget.internal import sharedmem from desitarget.io import write_with_units from desispec.io im...
24,420
https://github.com/Deathangel908/pychat/blob/master/frontend/src/vue/parts/ParentChannel.vue
Github Open Source
Open Source
MIT
2,018
pychat
Deathangel908
Vue
Code
104
360
<template> <select :value="value" class="input" @change="onchange"> <option :value="null" selected> W/o channel </option> <option v-for="channel in channels" :key="channel.id" :value="channel.id" > {{ channel.name }} </option> </select> </template> <script lang="ts"...
12,458
https://github.com/orangesoft-co/auth_manager/blob/master/auth/src/main/java/by/orangesoft/auth/credentials/IBaseCredential.kt
Github Open Source
Open Source
Apache-2.0
null
auth_manager
orangesoft-co
Kotlin
Code
9
29
package by.orangesoft.auth.credentials interface IBaseCredential { val providerId: String }
3,363
https://github.com/filip-769/searchbit/blob/master/backend/ia/status.js
Github Open Source
Open Source
MIT
null
searchbit
filip-769
JavaScript
Code
64
238
export default async q => { const data = q.replace("status", "").replace(/^is /, "").replace("?", "").replace(/ down$/, "").replace(/ up$/, "").trim(); let domain; if(/^.+\..+$/.test(data)) { domain = data; } else { const response = await fetch(`https://autocomple...
18,108
https://github.com/reshinthadithyan/python-graphs/blob/master/python_graphs/control_flow_graphviz_test.py
Github Open Source
Open Source
Apache-2.0
2,022
python-graphs
reshinthadithyan
Python
Code
158
425
# Copyright (C) 2021 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 in writing, ...
21,064
https://github.com/ippei94da/tefil/blob/master/lib/tefil/calculator.rb
Github Open Source
Open Source
MIT
null
tefil
ippei94da
Ruby
Code
105
430
#! /usr/bin/env ruby # coding: utf-8 require 'pp' class Tefil::Calculator < Tefil::TextFilterBase def initialize(options = {}) @options = options @preserve = options[:preserve] @ruby = options[:ruby] super(options) end def process_stream(in_io, out_io) in_io.each do |line| eq = line....
4,822
https://github.com/etarnovskaya/pdt24/blob/master/web-tests/src/test/java/tests/ContactPhoneTests.java
Github Open Source
Open Source
Apache-2.0
null
pdt24
etarnovskaya
Java
Code
115
544
package tests; import model.ContactData; import org.testng.Assert; import org.testng.annotations.Test; import java.util.Arrays; import java.util.stream.Collectors; public class ContactPhoneTests extends TestBase{ @Test(enabled = false) public void testContactPhones(){ app.getContactHelper().openContactsPage...
16,746
https://github.com/ataraxient/boucled/blob/master/bot.py
Github Open Source
Open Source
MIT
null
boucled
ataraxient
Python
Code
156
562
import timeloop import time import random from datetime import timedelta from jvc import JVC class BotJVC(): def __init__(self, topic_generator, tickrate=10): ''' Class which defines a jvc bot Parameters ---------- cookie : string coniunctio cookie associated t...
41,628
https://github.com/Wheaties247/HiddenBones/blob/master/src/pages/index.js
Github Open Source
Open Source
MIT
null
HiddenBones
Wheaties247
JavaScript
Code
19
50
import React from "react" import HiddenBones from "../components/HiddenBones" const IndexPage = () => ( <HiddenBones/> ) export default IndexPage
2,483
https://github.com/anlek/mongify-mongoid/blob/master/spec/lib/mongify/mongoid/model/relation_spec.rb
Github Open Source
Open Source
MIT
2,016
mongify-mongoid
anlek
Ruby
Code
110
414
require 'spec_helper' describe Mongify::Mongoid::Model::Relation do describe "VALID_RELATIONS" do subject { Mongify::Mongoid::Model::Relation::VALID_RELATIONS } it { should =~ %w(embeds_one embeds_many embedded_in has_one has_many has_and_belongs_to_many belongs_to) } end context "singularize" do [...
37,036
https://github.com/lansulquiorra/front_klinik/blob/master/public/views/depo/depo.js
Github Open Source
Open Source
MIT
null
front_klinik
lansulquiorra
JavaScript
Code
364
1,352
'use strict'; angular.module('adminApp') .controller('MasterDepoCtrl', function( $scope, $http, $rootScope, $controller, ngDialog, ServicesAdmin, ServicesCommon, SweetAlert, moment ) { $scope.temp = {}; var get...
5,151
https://github.com/shinrojp/shinrojp-android/blob/master/app/src/main/java/com/shinro/shinrojp_android/ui/splash/SplashContract.java
Github Open Source
Open Source
MIT
2,020
shinrojp-android
shinrojp
Java
Code
15
53
package com.shinro.shinrojp_android.ui.splash; public interface SplashContract { interface View { } interface Presenter { } }
2,025
https://github.com/evan89/starter-todo4/blob/master/application/controllers/Roles.php
Github Open Source
Open Source
MIT
null
starter-todo4
evan89
PHP
Code
71
146
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of Roles * allows user to pick between roles * * @author Yannick */ class Roles extends Application { ...
36,797
https://github.com/DynamicTreesTeam/DynamicTrees-Natura/blob/master/src/main/java/maxhyper/dynamictreesnatura/renderer/RenderBloodwoodSeed.java
Github Open Source
Open Source
MIT
null
DynamicTrees-Natura
DynamicTreesTeam
Java
Code
112
553
package maxhyper.dynamictreesnatura.renderer; import maxhyper.dynamictreesnatura.items.ItemDynamicSeedBloodwood.EntityItemBloodwoodSeed; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.RenderItem; import net.minecraft.client.renderer.entity.Render; import net.minecraft.client.renderer.entit...
6,816
https://github.com/Faschal/LaravelProject/blob/master/app/Http/Controllers/UploadController.php
Github Open Source
Open Source
MIT
null
LaravelProject
Faschal
PHP
Code
56
228
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\File; class UploadController extends Controller { public function uploadForm() { return view('upload'); } public function uploadFile(Request $request) { $validateData = $request->validate([ ...
27,141
https://github.com/kward/go-osc/blob/master/osc/packet_test.go
Github Open Source
Open Source
MIT
2,021
go-osc
kward
Go
Code
459
1,297
package osc import ( "bufio" "bytes" "reflect" "testing" ) func TestParsePacket(t *testing.T) { for _, tt := range []struct { desc string msg string pkt Packet ok bool }{ {"no_args", "/a/b/c" + nulls(2) + "," + nulls(3), makePacket("/a/b/c", nil), true}, {"string_arg", "/d/e/f" + nul...
7,610
https://github.com/fruttasecca/hay_checker/blob/master/haychecker/_test/chc/deduplication_test.py
Github Open Source
Open Source
MIT
2,020
hay_checker
fruttasecca
Python
Code
722
2,384
import random import unittest import numpy as np import pandas as pd from haychecker.chc.metrics import deduplication class TestDeduplication(unittest.TestCase): def test_singlecolumns_empty(self): df = pd.DataFrame() df["c1"] = [] df["c2"] = [] r1, r2 = deduplication(["c1", "c2...
22,787
https://github.com/TheodorusWare/Archivarius/blob/master/code/include/Common/ConvertBytes.h
Github Open Source
Open Source
Apache-2.0
null
Archivarius
TheodorusWare
C
Code
110
233
/* Copyright (C) 2018-2020 Theodorus Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing,...
44,568
https://github.com/julinho-ifsc/rotas/blob/master/server/auth/router.js
Github Open Source
Open Source
MIT
2,017
rotas
julinho-ifsc
JavaScript
Code
29
94
const express = require('express') const {validateSchema} = require('../handlers/schemas') const {loginSchema} = require('./schemas') const authController = require('./controller') // eslint-disable-next-line new-cap const router = express.Router() router.post('/', [validateSchema(loginSchema), authController.login])...
8,332