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/Shell32-Natsu/kpt-functions-catalog/blob/master/examples/starlark/poddisruptionbudget/.expected/diff.patch
Github Open Source
Open Source
Apache-2.0
null
kpt-functions-catalog
Shell32-Natsu
null
Spoken
37
153
diff --git a/poddisruptionbudget_nginx-pdb.yaml b/poddisruptionbudget_nginx-pdb.yaml new file mode 100644 index 0000000..b382e85 --- /dev/null +++ b/poddisruptionbudget_nginx-pdb.yaml @@ -0,0 +1,9 @@ +apiVersion: policy/v1beta1 +kind: PodDisruptionBudget +metadata: + name: nginx-pdb +spec: + selector: + matchLabel...
40,888
https://github.com/manovotn/core/blob/master/impl/src/main/java/org/jboss/weld/interceptor/spi/metadata/InterceptorClassMetadata.java
Github Open Source
Open Source
Apache-2.0
2,022
core
manovotn
Java
Code
226
433
/* * JBoss, Home of Professional Open Source * Copyright 2010, Red Hat, Inc. and/or its affiliates, and individual * contributors by the @authors tag. See the copyright.txt in the * distribution for a full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * y...
9,017
https://github.com/codrcodz/bashellite/blob/master/usr/local/bin/bashellite.sh
Github Open Source
Open Source
MIT
2,018
bashellite
codrcodz
Shell
Code
601
1,643
#!/usr/bin/env bash # ### Program Name: Bashellite # ### Program Author: Cody Lee Cochran <Cody.L.Cochran@gmail.com> ### Program Contributors: Eric Lake <EricLake@Gmail.com>, Patrick Chandler <pc.seanmckay@gmail.com> # ### Program Version: _r_script_version="0.4.0-beta" # ### Program Purpose: # The purpose of thi...
14,667
https://github.com/97jaz/gregor/blob/master/gregor-lib/gregor/private/pattern/lexer.rkt
Github Open Source
Open Source
MIT
2,022
gregor
97jaz
null
Spoken
859
3,636
#lang racket/base (require racket/string parser-tools/lex (prefix-in : parser-tools/lex-sre)) (provide scan-pattern pattern->ast-list) (require "ast.rkt" "ast/era.rkt" "ast/quarter.rkt" "ast/year.rkt" "ast/month.rkt" "ast/week.rkt" ...
32,060
https://github.com/SegaraRai/MergeFS/blob/master/LibMergeFS/MountStore.hpp
Github Open Source
Open Source
MIT
2,022
MergeFS
SegaraRai
C++
Code
258
1,080
#pragma once #define FROMLIBMERGEFS #include "../SDK/LibMergeFS.h" #include "Mount.hpp" #include "SourcePluginStore.hpp" #include <condition_variable> #include <cstddef> #include <cstdint> #include <deque> #include <exception> #include <functional> #include <memory> #include <mutex> #include <shared_mutex> #include...
24,354
https://github.com/hiyoung-asr/fairscale/blob/master/tests/nn/data_parallel/test_fsdp_regnet.py
Github Open Source
Open Source
BSD-2-Clause, Apache-2.0, BSD-3-Clause, MIT
2,021
fairscale
hiyoung-asr
Python
Code
335
1,033
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # # This source code is licensed under the BSD license found in the # LICENSE file in the root directory of this source tree. # pylint: disable=missing-module-docstring # pylint: disable=missing-class-docstring # pylint: disable=missing-function-d...
9,082
https://github.com/indcoder/SpecFlowMasterClass.SpecOverflow/blob/master/SpecFlowMasterClass.SpecOverflow.Web/Controllers/TestApiController.cs
Github Open Source
Open Source
MIT
2,022
SpecFlowMasterClass.SpecOverflow
indcoder
C#
Code
124
444
using System; using SpecFlowMasterClass.SpecOverflow.Web.DataAccess; using SpecFlowMasterClass.SpecOverflow.Web.Services; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace SpecFlowMasterClass.SpecOverflow.Web.Controllers { /// <inheritdoc /> /// <summary> /// API to enable testing ...
28,352
https://github.com/joshtemple/lkml/blob/master/tests/resources/github/sdt_locals_recovery.model.lkml
Github Open Source
Open Source
MIT
2,022
lkml
joshtemple
LookML
Code
40
168
connection: "mc_panoply" include: "*.view.lkml" include: "/AdWords/*.view" include: "/Google_Analytics/*.view" include: "/Publisher_Passback/*/*.view" include: "/DCM/*.view" datagroup: sdt_locals_datagroup { sql_trigger: SELECT current_date;; max_cache_age: "24 hours" } explore: pdt_locals_campaign { label: "F...
28,330
https://github.com/comet-GmbH/lora-gateway-bridge/blob/master/internal/gateway/semtech/config/config.go
Github Open Source
Open Source
MIT
null
lora-gateway-bridge
comet-GmbH
Go
Code
35
134
package config import ( "github.com/brocaar/lorawan" ) // PFConfiguration holds the packet-forwarder configuration. type PFConfiguration struct { MAC lorawan.EUI64 `mapstructure:"-"` MACString string `mapstructure:"mac"` BaseFile string `mapstructure:"base_file"` OutputFile ...
47,012
https://github.com/buixuanthang/tes/blob/master/code/libraries/jquery/jquery.ui.stars/demo6b.php
Github Open Source
Open Source
MIT
2,018
tes
buixuanthang
PHP
Code
368
1,270
<?php require('./demo6.php'); ?> <!DOCTYPE html> <html> <head> <title>Star Rating widget Demo6 Page</title> <!-- demo page css --> <link rel="stylesheet" type="text/css" media="screen" href="css/demos.css?b38"/> <style type="text/css"> #container { position:relative; height:30px; } #container > * { position:...
4,180
https://github.com/PragmaticCoder/cme332/blob/master/playground/vga_interrupt/interval_timer_ISR.c
Github Open Source
Open Source
MIT
null
cme332
PragmaticCoder
C
Code
51
126
#include "address_map_nios2.h" extern volatile int timeout; /***************************************************************************** * Interval timer interrupt service routine * * Controls refresh of the VGA screen * ****************...
38,036
https://github.com/warbear0129/ICT2x01-Team28/blob/master/frontend/src/pages/Login.js
Github Open Source
Open Source
Apache-2.0
2,020
ICT2x01-Team28
warbear0129
JavaScript
Code
268
1,077
import React, { Component } from "react"; import axios from "axios"; import { Redirect } from "react-router-dom"; import { MyContext } from "../context/myContext"; export default class Login extends Component { static contextType = MyContext; constructor(props) { super(props); this.state = { email: "", pa...
41,198
https://github.com/Ernesto002/js-manga-project-frontend/blob/master/index.js
Github Open Source
Open Source
MIT
null
js-manga-project-frontend
Ernesto002
JavaScript
Code
116
462
const base_url = "http://localhost:3000" const mangaService = new MangaService(base_url) const collectionService = new CollectionService(base_url) Manga.mangaForm.addEventListener("submit", handleMangaSubmit) Collection.collectionForm.addEventListener("submit", handleCollectionSubmit) collectionService.getCollections...
36,682
https://github.com/Alexbladexz5/Deltrace/blob/master/resources/views/layouts/app/partials/autocomplete.blade.php
Github Open Source
Open Source
MIT
null
Deltrace
Alexbladexz5
PHP
Code
52
257
<!-- Modal autocomplete--> <div class="modal modal-fullscreen fade" id="modal-autocomplete" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">Ubicación...
9,708
https://github.com/monadius/spark-abm/blob/master/spark-logo/src/main/java/org/sparklogo/gui/MainFrame.java
Github Open Source
Open Source
MIT
null
spark-abm
monadius
Java
Code
1,094
3,765
package org.sparklogo.gui; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.GridLayout; import java.awt.event.*; import java.io.File; import java.util.List; import javax.swing.*; import org.sparkabm.utils.FileUtils; import org.sparklogo.project.Project; import org.sparklogo.project.ProjectFil...
22,706
https://github.com/mfarjami/django-shop/blob/master/accounts/views.py
Github Open Source
Open Source
Apache-2.0
null
django-shop
mfarjami
Python
Code
125
416
from django.shortcuts import render, redirect from .forms import UserLoginForm, UserRegistrationForm from django.contrib.auth import authenticate, login, logout from django.contrib import messages from .models import User # Create your views here. def user_login(request): if request.method == "POST": form...
33,098
https://github.com/denischiciudean/flow-manager/blob/master/app/Jobs/Steps/ServiciulControlComercial/ProcesareProcesVerbalForm.php
Github Open Source
Open Source
MIT
null
flow-manager
denischiciudean
PHP
Code
221
910
<?php namespace App\Jobs\Steps\ServiciulControlComercial; use App\Models\TaskStep; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldBeUnique; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\Serializ...
15,642
https://github.com/yodaboda/gene-way-domain/blob/master/src/main/java/com/nutrinfomics/geneway/server/domain/plan/ArbitraryCycle.java
Github Open Source
Open Source
Apache-2.0
null
gene-way-domain
yodaboda
Java
Code
217
1,107
/* * Copyright 2019 Firas Swidan† * * 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...
3,438
https://github.com/skydiver/alfred-password-generator/blob/master/lib/generator.js
Github Open Source
Open Source
MIT
2,021
alfred-password-generator
skydiver
JavaScript
Code
48
123
const { strong, alphanumeric, alpha } = require('./generate-password'); const { numeric } = require('./strict-password'); class Generator { static generate(type, length) { const types = { num: numeric, alpha, alphanum: alphanumeric, strong, }; const exec = types[type] || types.str...
49,223
https://github.com/johnrfrank/face-recognition-exploration/blob/master/headless-rpi.sh
Github Open Source
Open Source
MIT
null
face-recognition-exploration
johnrfrank
Shell
Code
81
205
# After installing Raspbian on a micro SD card using Raspberry Pi # Imager, unplug & plug it so that it mounts on /Volumes/boot. cp wpa_supplicant.conf /Volumes/boot touch /volumes/boot/ssh # but this next part doesn't work because ExtFS or microSD is flakey # Also, by installing the ExtFS for Mac, the main linux v...
11,374
https://github.com/superlichao001/netless-app/blob/master/packages/playground/src/loading.svelte
Github Open Source
Open Source
MIT
2,021
netless-app
superlichao001
null
Spoken
203
803
<div class="page-loading"> <div class="la-square-jelly-box"> <div /> <div /> </div> <p> <slot>Loading...</slot> </p> </div> <style> .page-loading { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; color: rg...
22,510
https://github.com/smeenai/llvm-project/blob/master/llvm/test/DebugInfo/assignment-tracking/X86/loop-sink.ll
Github Open Source
Open Source
NCSA, LLVM-exception, Apache-2.0
2,023
llvm-project
smeenai
LLVM
Code
777
2,240
; RUN: llc %s -stop-after=finalize-isel -o - \ ; RUN: | FileCheck %s --implicit-check-not=DBG ;; Tiny loop with a store sunk out of it: ;; void e(); ;; void es(int*); ;; int *g; ;; int getInt(); ;; int f(int a, int b) { ;; int z = getInt(); ;; while (g) { ;; e(); ;; a = z; ;; } ;; es(&a); ;; return a...
45,536
https://github.com/ryo1988/Rml/blob/master/Rml.Communication.Tcp.Test/UnitTest1.cs
Github Open Source
Open Source
MIT
null
Rml
ryo1988
C#
Code
117
393
using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Rml.Communication.Tcp.Test { [TestClass] public class UnitTest1 { [TestMethod] public void TestMethod1() { var data = new byte[] { 1, 2, }; ...
27,169
https://github.com/slashdotted/dropboxQt/blob/master/src/dropbox/files/FilesGpsCoordinates.cpp
Github Open Source
Open Source
MIT
2,020
dropboxQt
slashdotted
C++
Code
112
487
/********************************************************** DO NOT EDIT This file was generated from stone specification "files" Part of "Ardi - the organizer" project. osoft4ardi@gmail.com www.prokarpaty.net ***********************************************************/ #include "dropbox/files/FilesGpsCoordinates....
43,603
https://github.com/deletescape/Launcher3-1-o-mr1/blob/master/src/com/google/android/apps/nexuslauncher/CustomBottomSheet.java
Github Open Source
Open Source
Apache-2.0
2,021
Launcher3-1-o-mr1
deletescape
Java
Code
424
1,541
/* * Copyright (C) 2017 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...
7,496
https://github.com/xyrusworx/foundation/blob/master/src/lib/XyrusWorx.Foundation/Diagnostics/LogFile.cs
Github Open Source
Open Source
MIT
null
foundation
xyrusworx
C#
Code
174
601
using System; using System.IO; using System.Text; using JetBrains.Annotations; namespace XyrusWorx.Diagnostics { [PublicAPI] public class LogFile : LogWriter { private readonly string mPath; private readonly Stream mStream; public LogFile([NotNull] string path, bool append = true) { if (path.NormalizeN...
29,095
https://github.com/monankov/Structr/blob/master/samples/Structr.Samples.Stateflows/Services/FooService.cs
Github Open Source
Open Source
MIT
2,021
Structr
monankov
C#
Code
147
531
using Structr.Samples.Stateflows.DataAccess; using Structr.Samples.Stateflows.Domain.FooEntity; using Structr.Samples.Stateflows.Stateflows; using Structr.Samples.Stateflows.Stateflows.FooEntity; using System; using System.Threading; using System.Threading.Tasks; namespace Structr.Samples.Stateflows.Services { pub...
1,194
https://github.com/jgretz/pghbeer/blob/master/api/src/features/users/userByWebUserId.controller.js
Github Open Source
Open Source
MIT
null
pghbeer
jgretz
JavaScript
Code
38
169
import {Bind, Param, Get, Dependencies, Controller} from '@nestjs/common'; import {QueryBus} from '@nestjs/cqrs'; import {FindUserByWebUserId} from './findUserByWebUserId'; @Controller('userByWebUserId') @Dependencies(QueryBus) export class UserByWebUserIdController { constructor(queryBus) { this.queryBus = quer...
39,585
https://github.com/zzq424/Monica/blob/master/src/Core/Rye.Web/ResponseProvider/ModeValidationAttribute/IModeValidationResponseProvider.cs
Github Open Source
Open Source
MIT
2,020
Monica
zzq424
C#
Code
14
59
using Microsoft.AspNetCore.Mvc; namespace Rye.Web.ResponseProvider.ModeValidationAttr { public interface IModeValidationResponseProvider { IActionResult CreateResponse(ModeValidationContext context); } }
34,684
https://github.com/nk71957/material-sass/blob/master/scss/components/banner/_variables.scss
Github Open Source
Open Source
Apache-2.0
null
material-sass
nk71957
SCSS
Code
18
87
// ========== Banner ========== // :root { --banner-max-width: 720px; --banner-max-width-sm: 360px; --banner-font-size: 14px; --banner-font-weight: 400; --banner-line-height: 20px; }
50,138
https://github.com/GameUnitLab/GamePuppet/blob/master/PuppetryDriver/Controllers/PuppeteerController.cs
Github Open Source
Open Source
MIT
2,021
GamePuppet
GameUnitLab
C#
Code
628
2,706
using System; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Newtonsoft.Json; using Puppetry.PuppetryDriver.Puppet; using Puppetry.Contracts; namespace Puppetry.PuppetryDriver.Controllers { internal class PuppeteerController { ...
39,143
https://github.com/sofastack/sofa-bolt/blob/master/src/test/java/com/alipay/remoting/rpc/userprocessor/UserProcessorRegisterHelperTest.java
Github Open Source
Open Source
Apache-2.0
2,023
sofa-bolt
sofastack
Java
Code
336
1,016
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
1,967
https://github.com/weimoo/NotepadOnline/blob/master/lib/do.php
Github Open Source
Open Source
Apache-2.0
2,019
NotepadOnline
weimoo
PHP
Code
147
1,060
<?php ($visit) ? ("") : (header('location: /'));?> <?php /** 这是云笔记的数据操作文件 如果您不具备PHP的基础知识,且不了解内容架构,请不要修改内容 注意!关于用户可随意修改笔记内容的严重问题将可能在几个版本后更新 **/ error_reporting(E_ALL^E_NOTICE^E_WARNING);//屏蔽新笔记因找不到笔记缓存而导致的错误 //笔记分配名称 $name = $_GET["f"]; $pwTagLen=strlen($pwTag);//获取密码标识符前缀长度 $pwLen=strlen(dataEncrypt("1"));//获取...
49,093
https://github.com/mredencom/go-spring/blob/master/spring/spring-echo/go.mod
Github Open Source
Open Source
Apache-2.0
2,020
go-spring
mredencom
Go Module
Code
19
173
module github.com/go-spring/spring-echo go 1.12 require ( github.com/go-spring/spring-const v1.0.5 github.com/go-spring/spring-logger v1.0.6-0.20201031071008-31db8609b202 github.com/go-spring/spring-utils v1.0.5 github.com/go-spring/spring-web v1.0.6-0.20201107033410-dcac39c6780f github.com/labstack/echo v3.3.10...
49,819
https://github.com/mohdAarifkartrocket/php-kafka-lib/blob/master/src/Exception/AvroSchemaRegistryException.php
Github Open Source
Open Source
MIT
null
php-kafka-lib
mohdAarifkartrocket
PHP
Code
25
79
<?php declare(strict_types=1); namespace Jobcloud\Kafka\Exception; use RuntimeException; class AvroSchemaRegistryException extends RuntimeException { const SCHEMA_MAPPING_NOT_FOUND = 'There was no schema mapping for topic: %s, type: %s'; }
27,747
https://github.com/piecanfly88/ruby-collaborating-objects-lab-v-000/blob/master/lib/mp3_importer.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain
2,018
ruby-collaborating-objects-lab-v-000
piecanfly88
Ruby
Code
21
101
class MP3Importer attr_accessor :path def initialize(path) @path = path end def files Dir.glob("#{path}/*.mp3").collect{|file_path| File.basename("#{file_path}")} end def import files.each{|file| Song.new_by_filename(file)} end end
34,420
https://github.com/aiblocks/go/blob/master/services/ticker/internal/gql/resolvers_market.go
Github Open Source
Open Source
ECL-2.0, Apache-2.0
null
go
aiblocks
Go
Code
1,007
3,109
package gql import ( "errors" "fmt" "strings" "github.com/graph-gophers/graphql-go" "github.com/aiblocks/go/services/ticker/internal/tickerdb" "github.com/aiblocks/go/services/ticker/internal/utils" ) // Markets resolves the markets() GraphQL query. func (r *resolver) Markets(args struct { BaseAssetCode ...
2,648
https://github.com/ianagbip1oti/disparse/blob/master/disparse-core/src/main/java/disparse/parser/reflection/Utils.java
Github Open Source
Open Source
MIT
2,021
disparse
ianagbip1oti
Java
Code
187
593
package disparse.parser.reflection; import disparse.parser.CommandFlag; import disparse.parser.Types; import java.lang.reflect.Field; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.util.HashMap; import java.util.List; import java.util.Map; public class Utils { public static ...
10,188
https://github.com/hetmeter/awmm/blob/master/fender-sb-bdd/src/fsb/ast/BoolExpr.java
Github Open Source
Open Source
MIT
null
awmm
hetmeter
Java
Code
136
535
package fsb.ast; import java.util.List; import java.util.Set; import fsb.explore.State; import fsb.semantics.Semantics; import fsb.tvl.BoolValue; import fsb.utils.Options; public abstract class BoolExpr { public enum BXType {EQUAL, NEQ, GREATER, LESS, AND, OR, NOT}; abstract protected BoolValue evaluate_inner(Sta...
51,305
https://github.com/our-venture-church/website-gatsby/blob/master/web/src/components/BasicPageIntro.js
Github Open Source
Open Source
MIT
null
website-gatsby
our-venture-church
JavaScript
Code
92
319
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { getLayoutTransitionFor } from '../utils/styles'; import colors from '../theme/tokens/colors'; const StyledTitle = styled.h1` background-image: linear-gradient( 0deg, rgba(0, 0, 0, 0.15) 0...
50,303
https://github.com/robjg/beancmpr/blob/master/beancmpr-core/src/main/java/org/oddjob/beancmpr/matchables/UnsortedBeanMatchables.java
Github Open Source
Open Source
Apache-2.0
2,023
beancmpr
robjg
Java
Code
228
787
package org.oddjob.beancmpr.matchables; import java.util.ArrayList; import java.util.Comparator; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.SortedMap; import java.util.TreeMap; import org.oddjob.beancmpr.composite.BeanPropertyComparerProvider; /** * Takes an unsorted {@...
21,599
https://github.com/MajedBojan/mobily-sms/blob/master/lib/mobily/mobily_sms.rb
Github Open Source
Open Source
MIT
null
mobily-sms
MajedBojan
Ruby
Code
183
832
require_relative 'mobily_api_json_request_handler' require_relative 'mobily_api_error' require_relative 'mobily_api_auth' require_relative 'mobily_api_unicode_converter' class MobilySMS attr_reader :date_send, :time_send attr_accessor :auth, :sender, :msg, :delete_key, :msg_id, :domain_name, :request_handler d...
39,271
https://github.com/radeone/cryptocurrency-ticker/blob/master/exchanges/poloniex.js
Github Open Source
Open Source
MIT
2,017
cryptocurrency-ticker
radeone
JavaScript
Code
194
1,198
'use strict'; const request = require('request'); const pairs = [ 'btc_bcn', 'btc_bela', 'btc_blk', 'btc_btcd', 'btc_btm', 'btc_bts', 'btc_burst', 'btc_clam', 'btc_dash', 'btc_dgb', 'btc_doge', 'btc_emc2', 'btc_fldc', 'btc_flo', 'btc_game', 'btc_grc', 'btc_huc', 'btc_ltc', 'btc_maid', 'btc_omni', ...
48,187
https://github.com/hissezhaut/http-status-check/blob/master/src/CrawlLogger.php
Github Open Source
Open Source
MIT
2,016
http-status-check
hissezhaut
PHP
Code
237
898
<?php namespace Spatie\HttpStatusCheck; use Spatie\Crawler\Url; use Spatie\Crawler\CrawlObserver; use Symfony\Component\Console\Output\OutputInterface; class CrawlLogger implements CrawlObserver { const UNRESPONSIVE_HOST = 'Host did not respond'; /** * @var \Symfony\Component\Console\Output\OutputInter...
18,950
https://github.com/eniac/MimicNet/blob/master/simulate/src/makemake.sh
Github Open Source
Open Source
MIT
2,022
MimicNet
eniac
Shell
Code
140
744
INET_INCLUDES="-I${INET_HOME}/src \ -I${INET_HOME}/src/base \ -I${INET_HOME}/src/linklayer/contract \ -I${INET_HOME}/src/linklayer/ethernet \ -I${INET_HOME}/src/networklayer/arp \ -I${INET_HOME}/src/networklayer/common \ -I${INET_HOME}/src/networklayer/contract \ -I${INET_HOME}/src/networklayer/ipv4 \ -I${INET_HOME}/sr...
12,725
https://github.com/gusah009/LINKER_UNITY-1/blob/master/LINKER_EGGCATION/Assets/Resources/Scripts/Board/BoardTextInit.cs
Github Open Source
Open Source
MIT
null
LINKER_UNITY-1
gusah009
C#
Code
66
238
using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; using Newtonsoft.Json.Linq; using eggcation; public class BoardTextInit : MonoBehaviour { [SerializeField] GameObject boardTextObject; // Start is called before the first frame update void Awake() { ...
13,998
https://github.com/Quantum-OCS/QuOCS-pyside2interface/blob/master/src/quocspyside2interface/logic/FoMSettingsDictionaries/PythonClassDictionaries.py
Github Open Source
Open Source
Apache-2.0
2,021
QuOCS-pyside2interface
Quantum-OCS
Python
Code
343
1,037
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Copyright 2021- QuOCS Team # # 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://ww...
18,509
https://github.com/AndrewShmig/ASALightStorm/blob/master/ASALightStorm/ASALightStorm/ASAAppDelegate.h
Github Open Source
Open Source
Unlicense
2,015
ASALightStorm
AndrewShmig
C
Code
41
134
// // ASAAppDelegate.h // ASALightStorm // // Created by AndrewShmig on 9/9/13. // Copyright (c) 2013 AndrewShmig. All rights reserved. // #import <UIKit/UIKit.h> @class ASAViewController; @interface ASAAppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @property ...
47,607
https://github.com/arabsorkhi/Onion/blob/master/Onion.Identity/Features/TokenFeatures/RefreshTokenCommand.cs
Github Open Source
Open Source
MIT
2,021
Onion
arabsorkhi
C#
Code
371
1,162
using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using MediatR; using Microsoft.AspNetCore.Identity; using Onion.Application.DTOs; using Onion.Application.DTOs.Account; using Onion.Application.Interfaces; using Onion.Domain.Entities; using Onion.Identity.Interf...
48,473
https://github.com/Gadreel/dcraft/blob/master/dcraft.core/src/main/java/dcraft/db/update/RetireRecordRequest.java
Github Open Source
Open Source
Apache-2.0
2,017
dcraft
Gadreel
Java
Code
142
315
/* ************************************************************************ # # designCraft.io # # http://designcraft.io/ # # Copyright: # Copyright 2012 eTimeline, LLC. All rights reserved. # # License: # See the license.txt file in the project's top-level directory for details. # # Authors: # * Andy Whi...
17,265
https://github.com/refactor8/devcamp_ruby_coding_exercises/blob/master/lib/string.rb
Github Open Source
Open Source
MIT
2,020
devcamp_ruby_coding_exercises
refactor8
Ruby
Code
21
69
class String def total_words scan(/\w+/).count end def word_list list = Hash.new(0) downcase.scan(/\w+/) { |w| list[w] += 1 } list end end
8,983
https://github.com/Orgen-Name/Repo-Name/blob/master/Ch12/src/cn/controller/UserController.java
Github Open Source
Open Source
Apache-2.0
2,019
Repo-Name
Orgen-Name
Java
Code
722
3,088
package cn.controller; import java.io.File; import java.util.HashMap; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.apache.commons.io.FilenameUtils; import org.apache.commons.lang.math.RandomUtils; import org.apache.log4j.Logger; import org.spr...
19,672
https://github.com/EOSIO/binaryen/blob/master/test/torture-s/pr58419.c.s
Github Open Source
Open Source
Apache-2.0
2,018
binaryen
EOSIO
null
Spoken
1,102
4,756
.text .file "/usr/local/google/home/dschuff/s/wasm-waterfall/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/pr58419.c" .section .text.foo,"ax",@progbits .hidden foo .globl foo .type foo,@function foo: # @foo .param i32, i32 .result i32 # BB#0: ...
13,526
https://github.com/clarencejlee/jdp/blob/master/APIs/Biquery/src/presentation/routers/static.py
Github Open Source
Open Source
MIT
null
jdp
clarencejlee
Python
Code
23
70
import chevron from sanic.response import html def route(template_path, variables): async def render(request): with open(template_path , 'r') as f: return html(chevron.render(f, variables)) return render
3,209
https://github.com/yufernando/quality-of-life-dashboard/blob/master/src/components/Footer.vue
Github Open Source
Open Source
MIT
2,019
quality-of-life-dashboard
yufernando
Vue
Code
91
436
<template> <v-footer class="font-weight-medium app-footer"> <v-flex text-center xs12 > <p> <img src="../assets/seals.png" height="36" alt="City and County Seals"> </p> Created by <a href="http://charmeck.org/mecklenburg/county/Pages/Default.aspx">Mecklenburg County</a>, the <...
36,698
https://github.com/Romildo1/BibliotecaMusical-./blob/master/src/acervo/Principal.java
Github Open Source
Open Source
Apache-2.0
null
BibliotecaMusical-.
Romildo1
Java
Code
211
880
package acervo; /** * * @author romildo */ import java.sql.ResultSet; import java.sql.SQLException; public class Principal { public static void main(String[] args) { //============================== //Exemplo de inserção de 1 Genero SGBD //============================== Genero r = new Genero ("Pop");...
22,170
https://github.com/NREL-SIIP/WaterModelsAnalytics.jl/blob/master/test/graph.jl
Github Open Source
Open Source
BSD-3-Clause
2,021
WaterModelsAnalytics.jl
NREL-SIIP
Julia
Code
37
226
@testset "src/graph/graph.jl|output.jl" begin @testset "write_visualization" begin tmp_directory = mktempdir() write_visualization(network, joinpath(tmp_directory, "van_zyl"), del_files = false) @test isfile(joinpath(tmp_directory, "van_zyl_graph.pdf")) @test isfile(joinpath(tmp_dire...
47,170
https://github.com/Bluefieldscom/open-bacon/blob/master/app/views/api/v1/activity_items/comments/index.json.rabl
Github Open Source
Open Source
MIT
2,016
open-bacon
Bluefieldscom
Ruby
Code
4
26
collection @activity_item_comments extends "api/v1/activity_items/comments/show"
37,195
https://github.com/PowerMeMobile/fsharp/blob/master/src/utils/filename.fs
Github Open Source
Open Source
Apache-2.0
null
fsharp
PowerMeMobile
null
Spoken
179
371
//---------------------------------------------------------------------------- // // Copyright (c) 2002-2011 Microsoft Corporation. // // This source code is subject to terms and conditions of the Apache License, Version 2.0. A // copy of the license can be found in the License.html file at the root of this distribut...
36,049
https://github.com/playup/dew/blob/master/script/ci/dew_config.sh
Github Open Source
Open Source
MIT
null
dew
playup
Shell
Code
41
104
#!/bin/bash echo "Making sure ~/.dew is setup properly..." # Get the dew config files... if [ ! -d ~/.dew ]; then git clone git@github.com:playup/dew-config.git ~/.dew fi pushd ~/.dew git pull git submodule init git submodule update popd echo "Finished updating ~/.dew"
6,050
https://github.com/Hayleymol/LearnLowerBody/blob/master/Assets/Scripts/Utils.cs
Github Open Source
Open Source
MIT
2,021
LearnLowerBody
Hayleymol
C#
Code
152
493
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Utils : MonoBehaviour { public Vector3 computeLinVel(Vector3 posStart, Vector3 posEnd, float framerate) { Vector3 vel = new Vector3((posEnd[0] - posStart[0]) / framerate, (posEnd[1] - posStart[1]) / ...
14,107
https://github.com/Jayin/practice_on_py/blob/master/importTest.py
Github Open Source
Open Source
MIT
2,014
practice_on_py
Jayin
Python
Code
15
62
#encoding:utf-8 #用importlib来加载 import importlib #name package tc = importlib.import_module('tc','time-consuming') import tc @tc.Test def work(): pass
49,945
https://github.com/manilla/sslackey/blob/master/lib/sslackey/cache/redis_revocation_cache.rb
Github Open Source
Open Source
MIT
2,013
sslackey
manilla
Ruby
Code
75
302
require 'redis' require 'redis/namespace' require 'active_support/all' class RedisRevocationCache attr_accessor :redis, :expiration_seconds def initialize(redis_host, redis_port) @redis = Redis::Namespace.new(:revocation, :redis => Redis.new(:host => redis_host, :port => redis_port, :threadsafe => true)) ...
27,135
https://github.com/OpenATK/LibTrello/blob/master/LibTrello/src/main/java/com/openatk/libtrello/TrelloObject.java
Github Open Source
Open Source
MIT
2,015
LibTrello
OpenATK
Java
Code
46
145
package com.openatk.libtrello; import java.util.Date; public class TrelloObject { public TrelloObject(){ } public Object[] toObjectArray(){ return null; } public static Long DateToUnix(Date date){ if(date == null) return 0L; return date.getTime(); } public static Date UnixToDate(Long unix){ ...
21,373
https://github.com/sefsinalas/DogAdmin/blob/master/app/Console/Commands/CreateSidebarMenuDogAdmin.php
Github Open Source
Open Source
MIT
null
DogAdmin
sefsinalas
PHP
Code
329
1,265
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use File; use App\Models\DogAdmin\Utils; use App\Models\DogAdmin\Fields; use App\Models\DogAdmin\Config; use App\User; use Log; class CreateSidebarMenuDogAdmin extends Command { /** * The name and signature of the console command. ...
17,275
https://github.com/PaVoS-TECO/webinterface/blob/master/src/main/webapp/tests/testMain.js
Github Open Source
Open Source
MIT
2,018
webinterface
PaVoS-TECO
JavaScript
Code
142
1,119
require.config({ paths: { 'jquery': '../vendors/jquery/3.3.1/jquery.min', 'leaflet': '../vendors/leaflet/leaflet', 'jasmine': '../vendors/jasmine/lib/jasmine-3.2.1/jasmine', 'jasmine-html': '../vendors/jasmine/lib/jasmine-3.2.1/jasmine-html', 'jasmine-boot': '../vendors/jasmi...
37,837
https://github.com/anabrkic/shop-frontend/blob/master/src/colors.js
Github Open Source
Open Source
Apache-2.0
null
shop-frontend
anabrkic
JavaScript
Code
21
48
//colors export const black = '#333029'; export const tanWhite = '#FCF9F5'; export const tan = '#c6b0aa'; export const white = '#ffffff';
13,933
https://github.com/shenxs/about-scheme/blob/master/HTDP/30.1.rkt
Github Open Source
Open Source
MIT
2,021
about-scheme
shenxs
null
Spoken
46
534
#lang racket ;; 这一小节介绍了如何用一般的思路来设计算法 ;; 1,对于一个问题的描述,首先我们要确定合理的数据结构(呈现数据的方式) ;; 2,写下大致的函数的头,申明他们的功能,并且是如何得到结果的 ;; 3,理一个程序使如何计算的是非常重要的,他可以让你更加深入的理解你的代码,也可以让未来的代码的阅读者们更加容易理解这份代码 ;; 4,对于一个通用的算法来说,我们的设计分为两部分"trivially solvable"以及其他的部分 ;; 对于此,我的理解如下,一个通用算法通常要考虑所面对的情况,有些是琐碎和边界情况,或者叫做特殊情况 ;; 另外一些是通常情况.对于特使的条件特殊处理,一般情况一般处理然后把所...
25,706
https://github.com/sneh-m/Test-Case-Generator/blob/master/src/Graph/GraphGeneration.java
Github Open Source
Open Source
MIT
2,022
Test-Case-Generator
sneh-m
Java
Code
481
1,440
package Graph; import javax.swing.*; import java.util.*; class Pair<T, E> { T first; E second; public Pair() { } public Pair(T a, E b) { first = a; second = b; } } class DisjointSet { int set[], rank[]; public DisjointSet(int n) { set = new int[n]...
1,339
https://github.com/internisti/multiple_keyword/blob/master/cari1.php
Github Open Source
Open Source
Apache-2.0
null
multiple_keyword
internisti
PHP
Code
202
653
<?php include "koneksi.php"; $mode = $_GET['mode'] ; // menghilangkan space di kiri dan kanannya $search = trim($_POST['search']); // memisahkan array perkata $search_array = explode(" ",$search); $banyak_kata = (integer)count($search_array); // query looping, sehingga menghasilkan // select * from tw_blog where b...
4,575
https://github.com/RiftLurker/screeps-quorum/blob/master/src/constants.js
Github Open Source
Open Source
MIT
2,017
screeps-quorum
RiftLurker
JavaScript
Code
202
826
'use strict' if (!Memory.username) { const struc = _.find(Game.structures) const creep = _.find(Game.creeps) Memory.username = (struc ? struc.owner.username : false) || (creep ? creep.owner.username : false) } global.USERNAME = Memory.username global.PUBLIC_ACCOUNT = USERNAME === 'Quorum' global.TICKS_BETWEEN_...
50,804
https://github.com/missioncommand/emp3-android/blob/master/sdk/sdk-api/src/main/java/mil/emp3/api/WMTS.java
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,018
emp3-android
missioncommand
Java
Code
421
1,102
package mil.emp3.api; import java.util.ArrayList; import java.util.List; import mil.emp3.api.abstracts.MapService; import mil.emp3.api.enums.WMTSVersionEnum; import mil.emp3.api.exceptions.EMP_Exception; import mil.emp3.api.interfaces.IWMTS; import mil.emp3.api.interfaces.core.IStorageManager; import mil.emp3.api.uti...
5,444
https://github.com/mumer92/periphery/blob/master/Sources/XcodeSupport/XcodeProjectlike.swift
Github Open Source
Open Source
MIT
2,021
periphery
mumer92
Swift
Code
69
135
import Foundation import PathKit import PeripheryKit public protocol XcodeProjectlike: AnyObject { var path: Path { get } var targets: Set<XcodeTarget> { get } // Set to ensure uniqueness var type: String { get } var name: String { get } var sourceRoot: Path { get } func schemes() throws -> Se...
4,195
https://github.com/BadCodebot/SRFS2/blob/master/SRFS/Commands/FileRunCommand.cs
Github Open Source
Open Source
MIT
null
SRFS2
BadCodebot
C#
Code
212
629
using Blocks.CommandLine; using SRFS.IO; using SRFS.Model; using System; using System.ComponentModel; using SRFS.Model.Clusters; using System.Security.Cryptography; using System.Security; using System.Text; using DokanNet; using System.IO; namespace SRFS.Commands { [Command(Name = "fileRun", Description = "Mount...
18,968
https://github.com/jcmrva/docs/blob/master/docs/csharp/language-reference/compiler-messages/snippets/WarningWaves/WaveSix.cs
Github Open Source
Open Source
CC-BY-4.0, MIT
2,015
docs
jcmrva
C#
Code
138
313
namespace WarningWaves; public class WaveSix { // <PartialMethodDeclaration> public partial class PartialType { public partial void M1(int x); public partial T M2<T>(string s) where T : struct; public partial void M3(string s); public partial void M4(object o); p...
20,966
https://github.com/napalm-automation/napalm-inspector/blob/master/napalm_inspector/errors/__init__.py
Github Open Source
Open Source
Apache-2.0
2,021
napalm-inspector
napalm-automation
Python
Code
14
36
from flask import Blueprint bp = Blueprint("errors", __name__) from napalm_inspector.errors import handlers # noqa
3,485
https://github.com/Fendouzhe/LRScrollbars/blob/master/LRDisplayController/LRDisplayController/LRTXViewController.m
Github Open Source
Open Source
Artistic-2.0
2,016
LRScrollbars
Fendouzhe
Objective-C
Code
336
1,544
// // LRTXViewController.m // LRDisplayController // // Created by 雷路荣 on 16/1/22. // Copyright © 2016年 leilurong. All rights reserved. // #import "LRTXViewController.h" #import "LRChildTableViewController.h" @interface LRTXViewController () @end @implementation LRTXViewController - (void)viewDidLoad { [...
33,135
https://github.com/threeal/ros2_latency/blob/master/ros2_latency_cpp/src/byte_publisher_main.cpp
Github Open Source
Open Source
MIT
2,021
ros2_latency
threeal
C++
Code
23
123
#include <rclcpp/rclcpp.hpp> #include <ros2_latency_cpp/byte_publisher.hpp> #include <memory> int main(int argc, char **argv) { rclcpp::init(argc, argv); auto publisher = std::make_shared<ros2_latency_cpp::BytePublisher>("publisher"); rclcpp::spin(publisher); rclcpp::shutdown(); return 0; }
36,785
https://github.com/rondinelisaad/lockss-daemon/blob/master/test/src/org/lockss/config/TdbTestUtil.java
Github Open Source
Open Source
BSD-3-Clause
2,022
lockss-daemon
rondinelisaad
Java
Code
5,191
13,926
package org.lockss.config; import java.util.List; import java.util.Calendar; import java.util.Properties; import java.util.logging.Logger; import org.lockss.config.Tdb.TdbException; /** * A utility class providing static methods for constructing Tdb * hierarchies for testing. * * @author Neil Mayo * */ public c...
231
https://github.com/HPI-SWA-Lab/BP2014H1/blob/master/repository/TypeInference.package/TypeInferenceArithmetic.class/instance/testQuoFloat.st
Github Open Source
Open Source
MIT
null
BP2014H1
HPI-SWA-Lab
null
Spoken
7
27
arithmetics testQuoFloat self baseTypeTest: '2.0 quo: 2.0'.
17,973
https://github.com/acodeman/markdown-online/blob/master/src/pages/Home/index.jsx
Github Open Source
Open Source
Apache-2.0
2,020
markdown-online
acodeman
null
Spoken
44
130
import React from 'react'; import Page1 from './Page1'; import Page2 from './Page2'; import Banner from "./Banner"; import './static/style'; class Home extends React.PureComponent { render() { return ( <div className="home-wrapper"> <Banner isMobile={this.props.isMobile} /> ...
661
https://github.com/lordelph/phrozn/blob/master/tests/Phrozn/Processor/templates/tpl1.scss
Github Open Source
Open Source
Apache-2.0
2,022
phrozn
lordelph
SCSS
Code
96
319
$pageWidth: 1000px; $color1: #F0F0F0; $color2: #201A16; $color3: #3B3128; $color4: #1D5A50; #wrap { background: $color1; border: 2px solid $color2; margin: 0 auto; overflow: hidden; width: $pageWidth; } h1 { background: $color4; border-bottom: 1px solid $color4 + #333; border-top: 1px ...
3,888
https://github.com/elernonelma/paraunit/blob/master/src/TestResult/Interfaces/TestResultInterface.php
Github Open Source
Open Source
Apache-2.0
2,020
paraunit
elernonelma
PHP
Code
8
36
<?php declare(strict_types=1); namespace Paraunit\TestResult\Interfaces; interface TestResultInterface { }
29,647
https://github.com/Flagbit/catalog/blob/master/src/DataPool/SearchEngine/SearchCriteria/Exception/UnsupportedSearchCriteriaOperationException.php
Github Open Source
Open Source
BSD-3-Clause
2,019
catalog
Flagbit
PHP
Code
12
56
<?php declare(strict_types = 1); namespace LizardsAndPumpkins\DataPool\SearchEngine\SearchCriteria\Exception; class UnsupportedSearchCriteriaOperationException extends \RuntimeException { }
23,813
https://github.com/jolepco/Eshumacion/blob/master/tramitessds/application/modules/consultas/models/Consultas_models.php
Github Open Source
Open Source
MIT
null
Eshumacion
jolepco
PHP
Code
619
2,753
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /** * */ class Consultas_models extends CI_Model { public function __construct() { parent::__construct(); $this->load->database(); $this->load->library("session"); } public function tramitesTodos(){ ...
47,369
https://github.com/alatdneg/OpenTimelineIO/blob/master/opentimelineio_contrib/adapters/tests/sample_data/screening_example.ma
Github Open Source
Open Source
Apache-2.0
2,022
OpenTimelineIO
alatdneg
Mathematica
Code
1,214
5,609
//Maya ASCII 2016 scene //Name: test.ma //Last modified: Tue, Mar 21, 2017 03:42:59 PM //Codeset: UTF-8 requires maya "2016"; currentUnit -l centimeter -a degree -t film; fileInfo "application" "maya"; fileInfo "product" "Maya batch mode"; fileInfo "version" "2016"; fileInfo "cutIdentifier" "201610262200-1005964"; file...
5,876
https://github.com/Jangts/tanguage/blob/master/lib/scss/form/SimpleEditor/toolarea-icons.scss
Github Open Source
Open Source
MIT
null
tanguage
Jangts
SCSS
Code
171
682
.se-tool .se-icon { display: block; } .se-icon:before { font-family: 'FontAwesome'; font-style: normal; content: '\f042'; } .bold .se-icon:before { content: '\f032'; } .italic .se-icon:before { content: '\f033'; } .underline .se-icon:before { content: '\f0cd'; } .strikethrough .se-icon:...
50,728
https://github.com/lukz0/pmr/blob/master/frontend/cypress/integration/mirdash.rest.test.js
Github Open Source
Open Source
MIT
2,020
pmr
lukz0
JavaScript
Code
171
771
/// <reference types="cypress" /> const baseurl = 'http://localhost:5000/'; let user = {}; context('Mirdash', () => { beforeEach(() => { }); it('register', () => { user.username = Math.random().toString(36).substring(2); cy.request({ url: `${baseurl}users/register`, method: 'P...
36,715
https://github.com/kiendtvt1411/for-tuan-anh/blob/master/public/processor.js
Github Open Source
Open Source
MIT
2,017
for-tuan-anh
kiendtvt1411
JavaScript
Code
24
90
var ioc = require('socket.io-client')('http://localhost:3000') ioc.on('connect', () => { ioc.on('SERVER_SEND_DATA', (data) => { console.log(data + ' test thôi ') $('currentUser').html(data) }) }) module.exports = ioc
27,501
https://github.com/apache/ignite/blob/master/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/datastructures/IgniteDataStructureUniqueNameTest.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-gutenberg-2020, CC0-1.0, BSD-3-Clause
2,023
ignite
apache
Java
Code
971
3,188
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
10,132
https://github.com/aardvarkxr/aardvark/blob/master/src/thirdparty/sentry-native/external/crashpad/third_party/mini_chromium/mini_chromium/base/base.gyp
Github Open Source
Open Source
MIT, BSD-3-Clause, Apache-2.0
2,021
aardvark
aardvarkxr
Python
Code
180
1,573
# Copyright 2009 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'includes': [ '../build/common.gypi', ], 'targets': [ { 'target_name': 'base', 'type': 'static_library', 'include_dirs': [...
46,366
https://github.com/CallumJHays/pyngrok/blob/master/pyngrok/installer.py
Github Open Source
Open Source
MIT
null
pyngrok
CallumJHays
Python
Code
326
1,236
import logging import os import platform import shutil import sys import tempfile import zipfile from future.standard_library import install_aliases from pyngrok.exception import PyngrokNgrokInstallError install_aliases() from urllib.request import urlopen __author__ = "Alex Laird" __copyright__ = "Copyright 2019,...
8,830
https://github.com/alexeyivanov94/react-swipeable-list/blob/master/src/TrailingActions.js
Github Open Source
Open Source
MIT
2,022
react-swipeable-list
alexeyivanov94
JavaScript
Code
59
155
import React from 'react'; import './TrailingActions.css'; const TrailingActions = ({ children }) => { if (children === null || children === undefined) { return null; } if (Array.isArray(children)) { return React.Children.map(children, (child, index) => React.cloneElement(child, { main: i...
9,504
https://github.com/intel/intel-graphics-compiler/blob/master/IGC/Compiler/tests/DebugInfo/PromoteResourceToDirectAS/loadstore.ll
Github Open Source
Open Source
MIT
2,023
intel-graphics-compiler
intel
LLVM
Code
813
2,676
;=========================== begin_copyright_notice ============================ ; ; Copyright (C) 2022 Intel Corporation ; ; SPDX-License-Identifier: MIT ; ;============================ end_copyright_notice ============================= ; ; RUN: igc_opt --igc-promote-resources-to-direct-addrspace -S < %s | FileCheck %...
35,231
https://github.com/jadaradix/fyp/blob/master/pages/process.jade
Github Open Source
Open Source
MIT
null
fyp
jadaradix
null
Spoken
72
421
- var title = "Processing Tweets..." doctype html html(data-twitter=twitter) head include partials/_head-head.jade body include partials/_head-body.jade main .wrapper.section-wrapper.feature.bg-black#processing-wrapper section.clear-fix div div#processing ...
10,840
https://github.com/JYangkai/MediaDemo/blob/master/media/src/main/java/com/yk/media/core/camera/Camera1.java
Github Open Source
Open Source
MIT
2,022
MediaDemo
JYangkai
Java
Code
470
1,747
package com.yk.media.core.camera; import android.app.Activity; import android.graphics.SurfaceTexture; import android.hardware.Camera; import com.yk.media.data.base.Size; import java.io.IOException; import java.util.ArrayList; import java.util.List; public class Camera1 implements ICamera { /** * Camera ...
38,993
https://github.com/SunYanCN/ChinNER/blob/master/utils/sentence_cutter.py
Github Open Source
Open Source
Apache-2.0
2,020
ChinNER
SunYanCN
Python
Code
115
431
def segment_sentence(text, label, max_length=125): punc_tokens = ["。", "?", "!", "?", ",", "℃", ";", "、", ":"] if len(text) <= max_length: return [[text, label]] punc_id = None for i in range(max_length): wd = text[max_length - i - 1] if wd in punc_tokens: punc_id = ...
39,419
https://github.com/storybookjs/design-system/blob/master/src/images/colored-icons/Scale.tsx
Github Open Source
Open Source
MIT
2,023
design-system
storybookjs
TSX
Code
84
292
import * as React from 'react'; import { SVGProps } from 'react'; interface SVGRProps { title?: string; titleId?: string; } const SvgScale = ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => ( <svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg" role="img" aria-labell...
9,810
https://github.com/isgasho/avro-netty/blob/master/src/test/java/com/github/milenkovicm/avro/io/decoder/DecoderLongTest.java
Github Open Source
Open Source
Apache-2.0
2,015
avro-netty
isgasho
Java
Code
70
304
package com.github.milenkovicm.avro.io.decoder; import java.util.Collection; import org.apache.avro.generic.GenericRecord; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import com.github.milenkovicm.avro.DataHelper; import com.github.milenkovicm.avro.Helper; @RunWit...
40,751
https://github.com/debayanLab/delayFunctions/blob/master/VDF/Wesolowski Non-Interactive/client/client.js
Github Open Source
Open Source
MIT
2,021
delayFunctions
debayanLab
JavaScript
Code
299
986
/******************* Wesolowski's Non-Interactive Protocol*****************/ var socket = io.connect('http://localhost:3000/', { reconnection: false }); socket.on('connect', () => { console.log('Successfully connected!'); }); // Function used to calculate hex values to decimal function hextodec(hex_value){ if...
21,382