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/madoka-0w0/baseball_news/blob/master/baseball_news_picker/baseball_news_picker.py
Github Open Source
Open Source
MIT
null
baseball_news
madoka-0w0
Python
Code
47
248
from urllib.parse import urlencode from baseball_news_picker.model.team import Team from baseball_news_picker.news_picker import NewsPicker class BaseballNewsPicker(NewsPicker): NEWS_URL_FORMAT = "https://baseball.yahoo.co.jp/npb/teams/{}" SCHEDULE_URL_FORMAT = NEWS_URL_FORMAT + "/schedule" def __init__...
24,000
https://github.com/kyranet/Ny-API/blob/master/src/lib/third_party/klasa/lib/structures/base/Piece.ts
Github Open Source
Open Source
Apache-2.0, MIT
2,019
Ny-API
kyranet
TypeScript
Code
448
1,111
// Copyright (c) 2017-2018 dirigeants. All rights reserved. MIT license. import { join } from 'path'; import { ConstructorType } from '../../../../klasa-dashboard-hooks/lib/util/Util'; import { Client } from '../../Client'; import { mergeDefault } from '../../util/util'; import { Store } from './Store'; export class P...
25,059
https://github.com/mathiasfrohlich/blockfrost-python/blob/master/blockfrost/api/cardano/ledger.py
Github Open Source
Open Source
Apache-2.0
2,022
blockfrost-python
mathiasfrohlich
Python
Code
83
317
import requests from dataclasses import dataclass from blockfrost.utils import object_request_wrapper, object_list_request_wrapper @dataclass class GenesisResponse: active_slots_coefficient: float update_quorum: int max_lovelace_supply: str network_magic: int epoch_length: int system_start: in...
35,225
https://github.com/iamdeepakram/WebApplication/blob/master/dfoodshala/application/views/customer/view_order.php
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,020
WebApplication
iamdeepakram
PHP
Code
121
515
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description" content=""> <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors"> <meta name="generator" con...
21,362
https://github.com/UndreamtMayhem/Front-End-Dev/blob/master/3.Task_runners/Grunt/node_modules/node-module-loader/tests/specs/node/DependecyAnalyzer.spec.js
Github Open Source
Open Source
MIT
2,019
Front-End-Dev
UndreamtMayhem
JavaScript
Code
203
1,142
describe('DependencyAnalyzer', function () { 'use strict'; var loader = require('./../../../src/DependencyAnalyzer'); var path = require('path'); var rootpath = path.resolve(__dirname, '../..'); var grunt = require('grunt'); it('can create the dependency map', function () { expect(load...
23,622
https://github.com/Hanul/skyengine-test/blob/master/lib/main.js
Github Open Source
Open Source
MIT
null
skyengine-test
Hanul
JavaScript
Code
66
307
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const skyrouter_1 = require("skyrouter"); const DomNodeView_1 = __importDefault(require("./view/DomNodeV...
19,440
https://github.com/fabianlee/blogcode/blob/master/podman/run2.sh
Github Open Source
Open Source
MIT
2,023
blogcode
fabianlee
Shell
Code
10
41
podman run -p 8080:80 --name nginxtest2 localhost/nginx-alpine-custom2:latest podman rm nginxtest2
2,993
https://github.com/Codechef-SRM-NCR-Chapter/30-DaysOfCode-March-2021/blob/master/answers/HarshKesarwani/Day7/question2.cpp
Github Open Source
Open Source
MIT
2,021
30-DaysOfCode-March-2021
Codechef-SRM-NCR-Chapter
C++
Code
157
308
#include <iostream> #include <cmath> using namespace std; int main() { int size; cout << "Enter size" << endl; cin >> size; int arr[size]; cout << "Enter value in array" << endl; for (int x = 0; x < size; x++) { cout << "Enter value " << x + 1 << " : "; cin >> arr[x]; } ...
43,268
https://github.com/tools4j/tabular/blob/master/src/main/java/org/tools4j/tabular/service/PostExecutionBehaviour.java
Github Open Source
Open Source
MIT, Apache-2.0, LGPL-3.0-only, LGPL-2.1-only, BSD-3-Clause, EPL-2.0, LGPL-2.0-or-later
2,023
tabular
tools4j
Java
Code
54
174
package org.tools4j.tabular.service; import java.util.function.Function; /** * User: ben * Date: 27/11/17 * Time: 6:00 PM */ public class PostExecutionBehaviour { public final Runnable onFinish; public final Runnable onFinishWithError; public final Runnable onRunning; public PostExecutionBehaviou...
42,281
https://github.com/mhbeals/sap_reprints/blob/master/Outputs/titles/issuepercentage/BristolMercury/1860_12.tsv
Github Open Source
Open Source
CC-BY-4.0
2,017
sap_reprints
mhbeals
TSV
Code
8
76
1860.12.08_BristolMercury 0.057515 1860.12.15_BristolMercury 0.077378 1860.12.22_BristolMercury 0.198690 1860.12.29_BristolMercury 0.162547
49,180
https://github.com/Brun333rp/ExtendedMushrooms/blob/master/src/main/java/cech12/extendedmushrooms/init/ModFeatures.java
Github Open Source
Open Source
MIT
2,020
ExtendedMushrooms
Brun333rp
Java
Code
858
4,695
package cech12.extendedmushrooms.init; import cech12.extendedmushrooms.ExtendedMushrooms; import cech12.extendedmushrooms.api.block.ExtendedMushroomsBlocks; import cech12.extendedmushrooms.block.mushrooms.BrownMushroom; import cech12.extendedmushrooms.block.mushrooms.Glowshroom; import cech12.extendedmushrooms.block.m...
30,698
https://github.com/shastriUF/nidevlabs/blob/master/ExamplePlugins/ExampleCommandLineInterfaceTool/BuildApplicationCommandLineTool.cs
Github Open Source
Open Source
MIT
2,021
nidevlabs
shastriUF
C#
Code
134
569
using System.ComponentModel.Composition; using ExamplePlugins.Resources; using NationalInstruments.CommandLineInterface; using NationalInstruments.MocCommon.Components.SourceModel; namespace ExamplePlugins.ExampleCommandLineInterfaceTool { /// <summary> /// Command line tool that builds an application. //...
17,164
https://github.com/CandyQiu/pipcook/blob/master/example/app/text-classify/index.ts
Github Open Source
Open Source
Apache-2.0
2,020
pipcook
CandyQiu
TypeScript
Code
40
144
import { createLearnable, nlp } from '@pipcook/app'; const isCooking = createLearnable(async function(sentence: string) { return (await nlp.classify(sentence)); }); const isBooking = createLearnable(async function(sentence: string) { console.log(nlp.classify); return (await nlp.classify(sentence)); }); (async ...
31,924
https://github.com/project-flogo/contrib/blob/master/function/datetime/currentdate.go
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, BSD-3-Clause
2,023
contrib
project-flogo
Go
Code
63
230
package datetime import ( "github.com/project-flogo/core/data" "github.com/project-flogo/core/support/log" "time" "github.com/project-flogo/core/data/expression/function" ) const DateFormatDefault = "2006-01-02-07:00" type CurrentDate struct { } func init() { function.Register(&CurrentDate{}) } func (s *Curr...
20,428
https://github.com/enqae/futuresComposition/blob/master/src/main/scala/Example_00_FuturesForComprenhension.scala
Github Open Source
Open Source
Apache-2.0
2,014
futuresComposition
enqae
Scala
Code
39
158
import scala.concurrent.ExecutionContext.Implicits._ import scala.concurrent.Future object Example_00_FuturesForComprenhension extends Example_00_Futures { def findFullProfile(user: String): Future[String] = { val fRankingForUser = fRanking(user) val fbasicProfileForUser = fBasicProfile(user) for { ...
31,805
https://github.com/SpongePowered/Sponge/blob/master/src/mixins/java/org/spongepowered/common/mixin/tileentityactivation/world/level/block/entity/BlockEntityMixin_TileEntityActivation.java
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,023
Sponge
SpongePowered
Java
Code
368
993
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
5,956
https://github.com/AlgoSkyNet/acyRsa/blob/master/R/functions.R
Github Open Source
Open Source
MIT
2,020
acyRsa
AlgoSkyNet
R
Code
1,297
3,608
#' @export acyrsa_connection #' @export acyrsa_login #' @export acyrsa_margenes #' @export acyrsa_garantias_integradas #' @export acyrsa_cotizaciones NULL #' @include s4_object.R #' NULL #' @title Create acyRsa Connection Object #' #' @description \code{acyrsa_connection} creates a New Connection Object. It must be c...
40,900
https://github.com/johnfrenchxyz/bluebutton-web-server/blob/master/apps/fhir/server/admin.py
Github Open Source
Open Source
Apache-2.0
2,020
bluebutton-web-server
johnfrenchxyz
Python
Code
61
304
from django.contrib import admin from apps.fhir.server.models import (SupportedResourceType, ResourceRouter) class SupportedResourceTypeAdmin(admin.ModelAdmin): list_display = ('resource_name', 'resourceType') search_fields = ('resource_name', 'resourceType') class Reso...
38,781
https://github.com/serioushaircut/beetle/blob/master/REDIS_AUTO_FAILOVER.rdoc
Github Open Source
Open Source
MIT
null
beetle
serioushaircut
RDoc
Code
900
1,352
= Automatic Redis Failover for Beetle == Introduction Redis is used as the persistence layer in the AMQP message deduplication process. Because it is such a critical piece in our infrastructure, it is essential that a failure of this service is as unlikely as possible. As our AMQP workers are working in a highly dist...
45,220
https://github.com/Maxonpoll/Java-Script-Packer/blob/master/test/unit-tests/node/node-appender/fixtures/prepend-node-expected.js
Github Open Source
Open Source
BSD-2-Clause
2,022
Java-Script-Packer
Maxonpoll
JavaScript
Code
13
21
var test = 1; var func = function () { return true; };
6,299
https://github.com/zenlambda/lcon/blob/master/bin/lcon.bin.ts
Github Open Source
Open Source
BSD-2-Clause, BSD-3-Clause
2,014
lcon
zenlambda
TypeScript
Code
290
805
/// <reference path="../typings/node.d.ts" /> /// <reference path="../typings/nomnom.d.ts" /> /// <reference path="../typings/underscore.d.ts" /> /// <reference path="../lcon.ts" /> import LCON = require('../lcon') import nomnom = require('nomnom') import _ = require('underscore') import fs = require('fs') ...
29,333
https://github.com/jdassonvil/sablecc/blob/master/src/org/sablecc/objectmacro/codegeneration/java/macro/MPackageDeclaration.java
Github Open Source
Open Source
Apache-2.0
2,017
sablecc
jdassonvil
Java
Code
75
250
/* This file was generated by SableCC's ObjectMacro. */ package org.sablecc.objectmacro.codegeneration.java.macro; public class MPackageDeclaration { private final String pPackageName; private final MPackageDeclaration mPackageDeclaration = this; public MPackageDeclaration( String pPackageN...
15,420
https://github.com/activemerchant/active_merchant/blob/master/test/unit/gateways/paymentez_test.rb
Github Open Source
Open Source
MIT
2,023
active_merchant
activemerchant
Ruby
Code
1,501
7,635
require 'test_helper' class PaymentezTest < Test::Unit::TestCase include CommStub def setup @gateway = PaymentezGateway.new(application_code: 'foo', app_key: 'bar') @credit_card = credit_card @elo_credit_card = credit_card( '6362970000457013', month: 10, year: 2020, first_name:...
31,836
https://github.com/rally-dfs/canonical-swap/blob/master/programs/canonical-swap/src/lib.rs
Github Open Source
Open Source
MIT
2,021
canonical-swap
rally-dfs
Rust
Code
1,387
5,746
use anchor_lang::prelude::*; use anchor_spl::token::{self, Burn, Mint, MintTo, SetAuthority, Token, TokenAccount, Transfer}; use solana_security_txt::security_txt; use spl_token::instruction::AuthorityType; security_txt! { name: "Canonical Swap", project_url: "https://rly.network/", contacts: "email:securi...
16,729
https://github.com/PythonLimited/SoulCore/blob/master/SoulWorkerResearch.SoulCore/IO/Network/Requests/StorageBankInfoRequest.cs
Github Open Source
Open Source
WTFPL
2,021
SoulCore
PythonLimited
C#
Code
27
93
using SoulWorkerResearch.SoulCore.IO.Network.Attributes; using System.IO; namespace SoulWorkerResearch.SoulCore.IO.Network.Requests { public readonly struct StorageBankInfoRequest { public byte Unknown1 { get; } public StorageBankInfoRequest(BinaryReader br) => Unknown1 = br.ReadByte(); ...
21,549
https://github.com/mimmi20/BrowserDetector/blob/master/tests/DetectorTest/Helper/DesktopTest.php
Github Open Source
Open Source
MIT
2,022
BrowserDetector
mimmi20
PHP
Code
676
3,184
<?php /** * This file is part of the browser-detector package. * * Copyright (c) 2012-2021, Thomas Mueller <mimmi20@live.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types = 1); namespace BrowserDetectorTest...
36,170
https://github.com/siserin/crudasm9/blob/master/crudasm9src/util/main/build.sh
Github Open Source
Open Source
BSD-2-Clause
null
crudasm9
siserin
Shell
Code
41
176
# This script shows how to build the Win32/Win64 versions of the CRUDASM9 main program. g++ -O1 -m64 -o crudasm9 crudasm9.cpp ../../x86core/decoder_internal.c ../../x86core/ixdecoder.c ../../x86core/ixdisasm.c -lpsapi g++ -O1 -m32 -o crudasm9_w32 crudasm9.cpp ../../x86core/decoder_internal.c ../../x86core/ixdecoder.c ....
588
https://github.com/NickleDave/visual-search-nets/blob/master/src/searchnets/datasets/searchstims.py
Github Open Source
Open Source
BSD-3-Clause
2,021
visual-search-nets
NickleDave
Python
Code
214
646
"""PyTorch Dataset class for visual search stimuli""" from pathlib import Path import imageio import numpy as np import pandas as pd import torch from torch.utils.data import Dataset class Searchstims(Dataset): """dataset of visual search stimuli""" def __init__(self, csv_file, ...
6,347
https://github.com/r-lib/roxygen2/blob/master/man/update_collate.Rd
Github Open Source
Open Source
MIT
2,023
roxygen2
r-lib
R
Code
261
491
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/collate.R \name{update_collate} \alias{update_collate} \alias{@include} \title{Update Collate field in DESCRIPTION} \usage{ update_collate(base_path) } \arguments{ \item{base_path}{Path to package directory.} } \description{ By default, R loa...
11,072
https://github.com/tolw/VitoWifi/blob/master/src/Helpers/Logger.h
Github Open Source
Open Source
MIT
2,022
VitoWifi
tolw
C
Code
35
109
#pragma once #include <Arduino.h> class Logger : public Print { public: Logger(); virtual size_t write(uint8_t character); virtual size_t write(const uint8_t* buffer, size_t size); void setPrinter(Print* printer); void setLogging(bool enable); private: bool _loggingEnabled; Print* _pri...
46,241
https://github.com/AuzanAl-Fatih/hmif/blob/master/application/views/admin/v_profile.php
Github Open Source
Open Source
MIT
null
hmif
AuzanAl-Fatih
PHP
Code
715
3,620
<!DOCTYPE html> <html lang="en" > <!-- awal head --> <head> <meta charset="UTF-8"> <title>Admin Page</title> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossor...
37,827
https://github.com/aratama/purescript-firebase4/blob/master/src/Web/Firebase4.purs
Github Open Source
Open Source
MIT
null
purescript-firebase4
aratama
PureScript
Code
86
178
module Web.Firebase4 ( initializeApp, sdkVersion, apps ) where import Control.Monad.Eff (Eff) import Data.Nullable (Nullable, toNullable) import Data.Maybe (Maybe) import Web.Firebase4.Type (FIREBASE, App, Options) initializeApp :: forall eff . Options -> Maybe String -> Eff (firebase :: FIREBASE | eff) App initi...
42,130
https://github.com/theballkyo/webshop/blob/master/src/app/views/admins/stock.blade.php
Github Open Source
Open Source
MIT
2,014
webshop
theballkyo
Blade
Code
226
1,152
@extends('layouts.admin') @section('content') <div class="row"> @include('layouts.admin-nav') <div class="span12"> <div class="content"> <div class="module"> <div class="module-head"> <h3> Welcome Eiei,{{ Auth::user()->username }}</h3> ...
42,551
https://github.com/svenJamy/trenni-markdown/blob/master/lib/trenni/markdown/generators/unit_test.rb
Github Open Source
Open Source
MIT
2,016
trenni-markdown
svenJamy
Ruby
Code
288
624
# Copyright, 2016, by Samuel G. D. Williams. <http://www.codeotaku.com> # # 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 us...
8,985
https://github.com/davidbetz/minima/blob/master/Minima.Web/Controls/MinimaForm.cs
Github Open Source
Open Source
MIT
2,017
minima
davidbetz
C#
Code
74
276
#region Copyright //+ Copyright © Jampad Technology, Inc. 2007-2009 //++ Lead Architect: David Betz [MVP] <dfb/davidbetz/net> #endregion using System.Web.UI; using System.Web.UI.HtmlControls; //+ namespace Minima.Web.Controls { /// <summary> /// Used to allow postbacks when rewriting URLs /// Reference: htt...
40,554
https://github.com/mrfichtn/opal/blob/master/oc/Nfa/Matches.cs
Github Open Source
Open Source
Apache-2.0
null
opal
mrfichtn
C#
Code
206
597
using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; namespace Opal.Nfa { public class Matches: IEnumerable<IMatch> { private readonly Dictionary<IMatch, int> data; public Matches() { data = new Dictionary<IMatch, int>(); ...
22,550
https://github.com/xiw/mathlib/blob/master/src/tactic/linarith/parsing.lean
Github Open Source
Open Source
Apache-2.0
2,021
mathlib
xiw
Lean
Code
1,278
2,699
/- Copyright (c) 2020 Robert Y. Lewis. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Robert Y. Lewis -/ import tactic.linarith.datatypes /-! # Parsing input expressions into linear form `linarith` computes the linear form of its input expressions, assuming (without...
4,860
https://github.com/dundee/fq/blob/master/format/format.go
Github Open Source
Open Source
MIT
2,021
fq
dundee
Go
Code
455
1,711
package format //nolint:revive const ( ALL = "all" PROBE = "probe" IMAGE = "image" TCP_STREAM = "tcp_stream" UDP_PAYLOAD = "udp_payload" RAW = "raw" JSON = "json" DNS = "dns" DNS_TCP = "dns_tcp" ETHER8023_FRAME = "ether8023_frame" SLL_PACKET = "sll_packet" SLL2_PAC...
34,654
https://github.com/Andreas237/AndroidPolicyAutomation/blob/master/ExtractedJars/LibriVox_app.librivox.android/javafiles/android/support/v7/app/MediaRouteDevicePickerDialog$RecyclerAdapter$RouteViewHolder$1.java
Github Open Source
Open Source
MIT
2,019
AndroidPolicyAutomation
Andreas237
Java
Code
112
513
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package android.support.v7.app; import android.view.View; class MediaRouteDevicePickerDialog$RecyclerAdapter$RouteViewHolder$1 implements android.view.V...
43,445
https://github.com/2Checkout/magento2-2checkout/blob/master/Tco/Checkout/view/frontend/requirejs-config.js
Github Open Source
Open Source
MIT
2,022
magento2-2checkout
2Checkout
JavaScript
Code
14
75
var config = { paths: { 'payJsExternal' : 'https://2pay-js.2checkout.com/v1/2pay', 'TwoCoInlineCart' : 'https://secure.2checkout.com/checkout/client/twoCoInlineCart' } };
32,071
https://github.com/s-any-ok/String/blob/master/bin/hpw.js
Github Open Source
Open Source
MIT
null
String
s-any-ok
JavaScript
Code
516
1,407
#!/usr/bin/env node 'use strict'; const PARSING_TIMEOUT = 1000; const EXECUTION_TIMEOUT = 5000; const vNode = parseInt(process.versions.node.split('.')[0], 10); if (vNode < 10) { console.log('You need node.js v10.0 or greater to run tests'); process.exit(1); } const vm = require('vm'); const fs = require('fs').p...
36,568
https://github.com/JordanMartinez/purescript-struct/blob/master/test/suites/OnMatch.purs
Github Open Source
Open Source
MIT
2,020
purescript-struct
JordanMartinez
PureScript
Code
188
414
module Test.Suites.Data.Struct.OnMatch.OnMatch ( suites ) where import Prelude (discard, show, (#), (<>)) import Data.Struct.OnMatch (onMatch) import Data.Symbol (SProxy(SProxy)) import Data.Variant (Variant, case_, inj) import Test.Unit (TestSuite, suite, test) import Test.Unit.Assert (shouldEqual) suites :: Te...
17,200
https://github.com/ticavin/basic-js/blob/master/src/carbon-dating.js
Github Open Source
Open Source
MIT
null
basic-js
ticavin
JavaScript
Code
65
173
const { NotImplementedError } = require('../extensions/index.js'); const MODERN_ACTIVITY = 15; const HALF_LIFE_PERIOD = 5730; function dateSample(s) { if (typeof s == "string" && parseFloat(s) > 0 && parseFloat(s) < 15.1) { let a = MODERN_ACTIVITY / s; // ? let b = 0.693 / HALF_LIFE_PERIOD; let c = M...
29,161
https://github.com/precisionomics/PoolHap2.0/blob/master/O2R3_submit.pl
Github Open Source
Open Source
MIT, Unlicense
null
PoolHap2.0
precisionomics
Perl
Code
45
247
#!/usr/bin/perl my $combinations = 4; my @simulations = ( [0,2,3,4], [0,1,2,3,4], [0,1,2,3], [0,2,3] ); for (my $c = 0; $c < $combinations; $c++) { for (my $s = 0; $s < scalar(@{$simulations[$c]}); $s++){ $sim = $simulations[$c][$s]; system("/gpfs/home/lmak/programs/jre1.8.0_181/bi...
13,158
https://github.com/alexerhardt/pro-timer/blob/master/src/services/google-auth.js
Github Open Source
Open Source
MIT
2,019
pro-timer
alexerhardt
JavaScript
Code
99
387
const util = require('util'); const google = require('googleapis'); const ui = require('../renderer/ui'); const constants = require('../constants'); const messages = require('../renderer/messages'); const { isDataInStore, getData } = require('./local-storage'); const GOOGLE_REDIRECT_URI = 'http://localhost'; const GO...
50,637
https://github.com/plee-lmco/python-algorithm-and-data-structure/blob/master/leetcode/190_Reverse_Bits.py
Github Open Source
Open Source
MIT
2,020
python-algorithm-and-data-structure
plee-lmco
Python
Code
238
507
# 190. Reverse Bits Easy # Reverse bits of a given 32 bits unsigned integer. # Example 1: # Input: 00000010100101000001111010011100 # Output: 00111001011110000010100101000000 # Explanation: The input binary string 00000010100101000001111010011100 represents the unsigned integer 43261596, so return 964176192 which it...
2,750
https://github.com/scegg/TeamPlayer/blob/master/WebApp/Views/Account/LogOn.cshtml
Github Open Source
Open Source
MIT
null
TeamPlayer
scegg
C#
Code
75
515
@model WebApp.Models.Account.LogOnViewModel @{ ViewBag.Title = "登录"; } <div class="alert alert-info">本页面仅用于管理员登录。普通用户访问网站内容无需登录。如果你是管理员但不知道登录账号和密码,请咨询维护技术人员。</div> <form asp-controller="Account" asp-action="LogOn" asp-route-returnUrl="@ViewBag.ReturnUrl" method="post" asp-antiforgery="true"> <div class="row justi...
2,871
https://github.com/theashiot/launcher-documentation/blob/master/docs/topics/proc_deploying-an-application-to-standalone-rhel.adoc
Github Open Source
Open Source
CC-BY-4.0
null
launcher-documentation
theashiot
AsciiDoc
Code
331
1,159
// This is a parameterized module. Parameters used: // // parameter-jar-file-name: runtime-specific default target Maven build artifact name. // parameter-version-runtime-plugin: runtime-specific name for the runtime version property variable in the POM file. // parameter-artifact-name-runtime-plugin: runtime plugin na...
27,291
https://github.com/Darkshadow9799/shadowCut/blob/master/shadowCut/CustomModel.py
Github Open Source
Open Source
MIT
2,021
shadowCut
Darkshadow9799
Python
Code
196
1,617
from tensorflow.keras.layers import Dense,Flatten from tensorflow.keras.models import Model from tensorflow.keras.preprocessing.image import ImageDataGenerator from tensorflow.keras.callbacks import CSVLogger,ModelCheckpoint from glob import glob from shadowCut.constants import * def customTrainedModel(train_path, va...
9,116
https://github.com/university-of-ant-solutions/react-mdl/blob/master/packages/tabs/components/Tab.js
Github Open Source
Open Source
MIT
2,018
react-mdl
university-of-ant-solutions
JavaScript
Code
181
576
import React from 'react' import PropTypes from 'prop-types' import ClassNames from 'classnames' import isString from 'lodash/isString' const debug = require('debug')('react-mdl-library:tabs:Tab') class Tab extends React.PureComponent { onClick = e => { if (this.props.href && this.props.href.charAt(0) === '#')...
35,557
https://github.com/kento-yoshidu/GatsbyTest/blob/master/gatsby-browser.ts
Github Open Source
Open Source
RSA-MD
2,021
GatsbyTest
kento-yoshidu
TypeScript
Code
9
37
import "./src/scss/master.scss"; // Highlighting for code blocks import "prismjs/themes/prism.css"
38,775
https://github.com/igvteam/spacewalk/blob/master/helpful/shaders/cube_map_reflection_frag.glsl
Github Open Source
Open Source
MIT
2,021
spacewalk
igvteam
GLSL
Code
14
46
varying vec3 vNormalEye; varying vec3 vNormalWorld; void main() { gl_FragColor = textureCube(envMap, vNormalWorld); }
23,007
https://github.com/michaeljoyner/kooka/blob/master/resources/assets/js/components/CartListItem.vue
Github Open Source
Open Source
MIT
null
kooka
michaeljoyner
Vue
Code
252
967
<style> </style> <template> <div class="cart-list-item"> <div class="item-container item-image-container"> <img v-bind:src="thumbnail" alt="image thumbnail"> </div> <div class="item-container item-name-container"> <h3 class="item-name">{{ itemname }}</h3> ...
29,664
https://github.com/utkmehta/mongo-rust-driver/blob/master/src/cmap/establish/handshake/mod.rs
Github Open Source
Open Source
Apache-2.0
null
mongo-rust-driver
utkmehta
Rust
Code
486
1,572
#[cfg(test)] mod test; use lazy_static::lazy_static; use os_info::{Type, Version}; use crate::{ bson::{doc, Bson, Document}, cmap::{options::ConnectionPoolOptions, Command, Connection, StreamDescription}, error::Result, is_master::IsMasterReply, }; #[derive(Clone, Debug)] struct ClientMetadata { ...
45,123
https://github.com/javidlulu/paypayopa-sdk-java/blob/master/src/main/java/jp/ne/paypay/model/ReverseCashback.java
Github Open Source
Open Source
Apache-2.0
2,022
paypayopa-sdk-java
javidlulu
Java
Code
297
1,069
package jp.ne.paypay.model; import com.google.gson.annotations.SerializedName; import jakarta.validation.constraints.NotEmpty; import jakarta.validation.constraints.NotNull; import jakarta.validation.constraints.Size; import java.time.Instant; /** * ReverseCashback */ public class ReverseCashback extends ReverseC...
34,317
https://github.com/NCEAS/arcticdatautils/blob/master/man/eml_add_publisher.Rd
Github Open Source
Open Source
CC-BY-SA-4.0, Apache-2.0
2,022
arcticdatautils
NCEAS
R
Code
67
168
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/eml.R \name{eml_add_publisher} \alias{eml_add_publisher} \title{Add publisher information to EML document} \usage{ eml_add_publisher(doc) } \arguments{ \item{doc}{(emld) An EML document} } \value{ (emld) An EML document } \description{ This f...
41,998
https://github.com/flexiooss/codingmatters-rest/blob/master/cdm-rest-api-generator/src/main/java/org/codingmatters/rest/api/generator/client/ResourceNaming.java
Github Open Source
Open Source
Apache-2.0
2,023
codingmatters-rest
flexiooss
Java
Code
133
569
package org.codingmatters.rest.api.generator.client; import com.squareup.javapoet.ClassName; import org.codingmatters.value.objects.generation.Naming; import org.raml.v2.api.RamlModelResult; import org.raml.v2.api.model.v10.methods.Method; import org.raml.v2.api.model.v10.resources.Resource; import org.raml.v2.api.mod...
44,259
https://github.com/Stravaig-Projects/Stravaig.Extensions.Configuration.Diagnostics/blob/master/src/Stravaig.Configuration.Diagnostics.Core/Obfuscators/RedactedObfuscator.cs
Github Open Source
Open Source
MIT
null
Stravaig.Extensions.Configuration.Diagnostics
Stravaig-Projects
C#
Code
123
378
namespace Stravaig.Configuration.Diagnostics.Obfuscators { /// <summary> /// Initialises an obfuscator that replaces the secret with REDACTED. /// </summary> public class RedactedObfuscator : FixedStringObfuscator { private const string Redacted = "REDACTED"; /// <summary> ...
37,028
https://github.com/int-tec/CmdPackages/blob/master/packages/ext-ux-colorpick/src/ButtonController.js
Github Open Source
Open Source
MIT
2,015
CmdPackages
int-tec
JavaScript
Code
174
595
Ext.define('Ext.ux.colorpick.ButtonController', { extend : 'Ext.app.ViewController', alias : 'controller.colorpick-buttoncontroller', requires: ['Ext.layout.container.Fit'], destroy: function () { var view = this.getView(), colorPickerWindow = view.colorPickerWindow; if (...
22,464
https://github.com/Cingozzz/Distribution/blob/master/f/fp-ts/src/main/scala/typings/fpTs/anon/Init.scala
Github Open Source
Open Source
MIT
2,021
Distribution
Cingozzz
Scala
Code
115
382
package typings.fpTs.anon import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} trait Init[B /* <: A */, A] extends StObject { var init: js.Array[B] var rest: js.Array[A] } object Init { inline d...
39,953
https://github.com/q-rapids/learning-dashboard/blob/master/src/main/java/com/upc/gessi/qrapids/app/domain/controllers/StrategicIndicatorsController.java
Github Open Source
Open Source
Apache-2.0
2,021
learning-dashboard
q-rapids
Java
Code
3,135
11,110
package com.upc.gessi.qrapids.app.domain.controllers; import com.upc.gessi.qrapids.app.domain.adapters.AssesSI; import com.upc.gessi.qrapids.app.domain.adapters.Forecast; import com.upc.gessi.qrapids.app.domain.adapters.QMA.QMADetailedStrategicIndicators; import com.upc.gessi.qrapids.app.domain.adapters.QMA.QMARelatio...
11,018
https://github.com/unofficial-inteno-public-mirror/luci/blob/master/applications/luci-voice-pbx/luasrc/model/cbi/voice.lua
Github Open Source
Open Source
Apache-2.0
null
luci
unofficial-inteno-public-mirror
Lua
Code
219
601
local dsp = require "luci.dispatcher" local vc = require "luci.model.cbi.voice.common" m = Map ("voice_pbx", translate("Voice Settings")) function remove_recording(self, section) for i,v in pairs(vc.get_recordings()) do if section == i then nixio.fs.remove("/usr/lib/asterisk/recordings/" .. v["file"]) break ...
36,658
https://github.com/xxPEACExx/-Human-Computer-Interaction-2/blob/master/AndroidApp/app/src/main/java/com/example/TelikiEdvHCI/SquadFragment.java
Github Open Source
Open Source
Apache-2.0
2,021
-Human-Computer-Interaction-2
xxPEACExx
Java
Code
87
458
package com.example.TelikiEdvHCI; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import androidx.fragment.app.Fragment; public class SquadFragment extends Fragment implements View.OnClickListener { Button butt...
1,706
https://github.com/numpy/numpy/blob/master/numpy/core/src/multiarray/_multiarray_tests.c.src
Github Open Source
Open Source
Zlib, BSD-3-Clause, MIT, Apache-2.0
2,023
numpy
numpy
C
Code
6,357
23,733
/* -*-c-*- */ #define PY_SSIZE_T_CLEAN #include <Python.h> #define NPY_NO_DEPRECATED_API NPY_API_VERSION #define _NPY_NO_DEPRECATIONS /* for NPY_CHAR */ #include "numpy/arrayobject.h" #include "numpy/arrayscalars.h" #include "numpy/npy_math.h" #include "numpy/halffloat.h" #include "common.h" #include "npy_argparse.h" ...
22,883
https://github.com/dajiaonao/Mic4Test_KC705/blob/master/Software/Control/src/sr_ctrl.py
Github Open Source
Open Source
MIT
2,018
Mic4Test_KC705
dajiaonao
Python
Code
362
1,100
#!/usr/bin/env python # -*- coding: utf-8 -*- ## @package sr_ctrl # This file is used to configure TMIIa Shift Register module. # # data_in is the input data of TMIIa Shift Register module, # div is division factor of clock frequency(f_out=f_in/2^div), # trig is start signal of configuration. from command import * i...
38,499
https://github.com/Calnite/lorekeeper/blob/master/app/Models/Character/CharacterTransfer.php
Github Open Source
Open Source
MIT
2,021
lorekeeper
Calnite
PHP
Code
274
855
<?php namespace App\Models\Character; use Config; use Settings; use App\Models\Model; class CharacterTransfer extends Model { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'character_id', 'sender_id', 'recipient_id', 'status', 'i...
36,047
https://github.com/Ash1331/paul/blob/master/greenfoot/gumball_project_ver2/GumballMachine.java
Github Open Source
Open Source
Apache-2.0
null
paul
Ash1331
Java
Code
143
396
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) /** * Write a description of class GumballMachine here. * * @author (your name) * @version (a version number or a date) */ public class GumballMachine extends Actor { public GumballMachine() { GreenfootImage image =...
17,440
https://github.com/stautonico/blackhat-simulator/blob/master/client/blackhat/bin/hostname.py
Github Open Source
Open Source
MIT
2,022
blackhat-simulator
stautonico
Python
Code
501
1,622
__package__ = "blackhat.bin" from ..helpers import Result from ..lib.arpa.inet import get_ip from ..lib.input import ArgParser from ..lib.output import output from ..lib.sys.stat import stat from ..lib.unistd import getuid, gethostname, sethostname, read __COMMAND__ = "hostname" __DESCRIPTION__ = "show or set system ...
1,625
https://github.com/OSGP/open-smart-grid-platform/blob/master/osgp/platform/osgp-secret-management/src/main/java/org/opensmartgridplatform/secretmanagement/application/config/PersistenceConfig.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,023
open-smart-grid-platform
OSGP
Java
Code
101
499
// SPDX-FileCopyrightText: Copyright Contributors to the GXF project // // SPDX-License-Identifier: Apache-2.0 package org.opensmartgridplatform.secretmanagement.application.config; import javax.annotation.PreDestroy; import org.flywaydb.core.Flyway; import org.opensmartgridplatform.secretmanagement.application.repos...
26,461
https://github.com/ShevaXu/todomvc-riot-flux/blob/master/js/app.js
Github Open Source
Open Source
CC-BY-4.0, MIT
2,019
todomvc-riot-flux
ShevaXu
JavaScript
Code
14
44
(function (window) { 'use strict'; // Your starting point. Enjoy the ride! riot.mount('my-todo'); })(window);
17,248
https://github.com/freestream/Queue/blob/master/dev/tests/pulchqueue/src/tests/Pulchritudinous/Queue/Model/ConfigTest.php
Github Open Source
Open Source
MIT
null
Queue
freestream
PHP
Code
289
636
<?php /** * The MIT License (MIT) * * Copyright (c) 2018 Pulchritudinous * * 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 ...
42,444
https://github.com/vladromila/TW_2022/blob/master/FE/static/js/views/Notifications/Notifications.js
Github Open Source
Open Source
MIT
null
TW_2022
vladromila
JavaScript
Code
62
254
import ViewWrapper from "../ViewWrapper/ViewWrapper.js"; export default class Notifications extends ViewWrapper { constructor(params) { super(params); this.setTitle("Notifications"); } linkStyling() { let currentSheet = document.getElementById("currentSheet") if (currentShe...
20,581
https://github.com/onesty-dev/txtmark/blob/master/bootstrap.py/txtmark.py
Github Open Source
Open Source
Apache-2.0
2,022
txtmark
onesty-dev
Python
Code
384
1,199
#!/usr/bin/env python # vim:fileencoding=utf-8 :et:ts=4:sts=4 # # Copyright 2015 René Jeschke <rene_jeschke@yahoo.de> # # 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...
49,615
https://github.com/opensumi/core/blob/master/packages/logs-core/src/node/index.ts
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference, GPL-2.0-or-later, GPL-1.0-or-later, BSD-3-Clause, LicenseRef-scancode-public-domain, EPL-2.0, Classpath-exception-2.0, LGPL-2.0-or-later, LGPL-2.1-or-later
2,023
core
opensumi
TypeScript
Code
70
209
import { Injectable } from '@opensumi/di'; import { NodeModule } from '@opensumi/ide-core-node'; import { LogServiceForClientPath, ILogServiceForClient, ILogServiceManager } from '../common/'; import { LogServiceManager } from './log-manager'; import { LogServiceForClient } from './log.service'; export * from '../co...
23,933
https://github.com/StreamReduce/streamreduce-core/blob/master/webapp/src/main/java/com/streamreduce/security/realm/UserTokenAuthorizingRealm.java
Github Open Source
Open Source
Apache-2.0
2,015
streamreduce-core
StreamReduce
Java
Code
222
699
/* * Copyright 2012 Nodeable 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 l...
23,166
https://github.com/alleria-pay/sdk-php/blob/master/src/alleria/Action.php
Github Open Source
Open Source
Apache-2.0
null
sdk-php
alleria-pay
PHP
Code
159
705
<?php /** * Created by PhpStorm. * Date: 2017/7/31 * Time: 17:17 */ namespace alleria; include_once "AppRequest.php"; include_once "util/CryptoUtil.php"; abstract class Action { protected $baseUrl; protected $appId; protected $publicKey; protected $privateKey; public function getBaseUrl() { ...
45,780
https://github.com/qwc-services/sogis-agdi/blob/master/controllers/publish_controller.py
Github Open Source
Open Source
MIT
null
sogis-agdi
qwc-services
Python
Code
443
1,556
import requests from urllib.parse import urljoin from flask import flash, json, redirect, render_template, url_for from forms import PublishForm class PublishController: """Controller for Publish page Publish WMS/WFS. """ def __init__(self, app, config_models, service_config): """Construct...
25,258
https://github.com/datvm/SubnauticaBZMods/blob/master/LukeMods.ConfigurableSeaglide/Patches/SeaglidePatches.cs
Github Open Source
Open Source
MIT
2,021
SubnauticaBZMods
datvm
C#
Code
92
337
using HarmonyLib; using LukeMods.Common; using System; using System.Collections.Generic; using System.Linq; using System.Reflection.Emit; using System.Text; using System.Threading.Tasks; namespace LukeMods.ConfigurableSeaglide.Patches { [HarmonyPatch(typeof(Seaglide))] public static class SeaglidePatches ...
24,980
https://github.com/mPowerhabib/test/blob/master/opensrp-path/src/main/java/org/ei/opensrp/path/handler/ChildFollowupHandler.java
Github Open Source
Open Source
Apache-2.0
null
test
mPowerhabib
Java
Code
42
180
package org.ei.opensrp.path.handler; import org.ei.opensrp.domain.form.FormSubmission; import org.ei.opensrp.path.service.ChildService; import org.ei.opensrp.service.formSubmissionHandler.FormSubmissionHandler; /** * Created by muhammad.ahmed@ihsinformatics.com on 29-Oct-15. */ public class ChildFollowupHandler imp...
41,997
https://github.com/CosmicSharts/ccapi/blob/master/include/ccapi_cpp/ccapi_message.h
Github Open Source
Open Source
MIT
2,021
ccapi
CosmicSharts
C++
Code
678
2,628
#ifndef INCLUDE_CCAPI_CPP_CCAPI_MESSAGE_H_ #define INCLUDE_CCAPI_CPP_CCAPI_MESSAGE_H_ #include <chrono> #include <vector> #include "ccapi_cpp/ccapi_element.h" #include "ccapi_cpp/ccapi_logger.h" namespace ccapi { class Message CCAPI_FINAL { public: enum class RecapType { UNKNOWN, NONE, // normal data ...
7,038
https://github.com/donnikitos/react-map-gl/blob/master/dist/esm/utils/style-utils.js
Github Open Source
Open Source
BSD-3-Clause
2,022
react-map-gl
donnikitos
JavaScript
Code
190
452
const refProps = ['type', 'source', 'source-layer', 'minzoom', 'maxzoom', 'filter', 'layout']; // Prepare a map style object for diffing // If immutable - convert to plain object // Work around some issues in older styles that would fail Mapbox's diffing export function normalizeStyle(style) { if (!style) { ...
45,672
https://github.com/ExpediaDotCom/haystack-traces/blob/master/reader/src/main/scala/com/expedia/www/haystack/trace/reader/stores/readers/grpc/GrpcTraceReaders.scala
Github Open Source
Open Source
Apache-2.0
2,019
haystack-traces
ExpediaDotCom
Scala
Code
307
1,077
/* * Copyright 2017 Expedia, 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...
25,732
https://github.com/github/webpack-bundlesize-compare-action/blob/master/src/parse-stats-file-to-json.ts
Github Open Source
Open Source
MIT
2,022
webpack-bundlesize-compare-action
github
TypeScript
Code
51
145
import {readFile} from 'fs/promises' import {resolve} from 'path' import type {StatsCompilation} from 'webpack' export async function parseStatsFileToJson( statsFilePath: string ): Promise<Pick<StatsCompilation, 'assets'>> { try { const path = resolve(process.cwd(), statsFilePath) const file = await readFi...
4,211
https://github.com/amplience/dc-management-sdk-js/blob/master/src/index.ts
Github Open Source
Open Source
Apache-2.0
2,020
dc-management-sdk-js
amplience
TypeScript
Code
350
1,148
export { DynamicContent } from './lib/DynamicContent'; export { OAuth2Client } from './lib/oauth2/services/OAuth2Client'; export { OAuth2ClientCredentials } from './lib/oauth2/models/OAuth2ClientCredentials'; export { AccessToken } from './lib/oauth2/models/AccessToken'; export { AccessTokenProvider } from './lib/oauth...
49,790
https://github.com/ZeeUTao/scalabrad-web/blob/master/client-js/app/scripts/registry.ts
Github Open Source
Open Source
MIT
2,020
scalabrad-web
ZeeUTao
TypeScript
Code
314
1,160
import {Observable} from './observable'; import * as rpc from "./rpc"; export interface RegistryListing { path: string[]; dirs: string[]; keys: string[]; vals: string[]; prettyVals: string[]; } export interface RegistryApi { newItem: Observable<{name: string}>; dir(params: {path: string[]}): Promise<Re...
17,486
https://github.com/Phemon/syzoj/blob/master/modules/discussion.js
Github Open Source
Open Source
MIT
null
syzoj
Phemon
JavaScript
Code
1,046
3,948
let Problem = syzoj.model('problem'); let Article = syzoj.model('article'); let ArticleComment = syzoj.model('article-comment'); let User = syzoj.model('user'); let Contest = syzoj.model('contest'); const forum_list = syzoj.forum_list = [ { name: 'global', title: '全局版块', icon: 'world', default: true }, ...syzoj.co...
20,737
https://github.com/kamikaz-e/MyYSTU/blob/master/app/src/main/java/ru/ystu/myystu/Adapters/ScheduleMenuItemsAdapter.java
Github Open Source
Open Source
Apache-2.0
2,019
MyYSTU
kamikaz-e
Java
Code
220
1,107
package ru.ystu.myystu.Adapters; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import java.util.ArrayList; import androidx.annotation.NonNull; import androidx.appcompat.widget.Ap...
13,142
https://github.com/Glavo/kala-common/blob/master/kala-base/src/main/java/kala/function/BooleanPredicates.java
Github Open Source
Open Source
Apache-2.0
2,022
kala-common
Glavo
Java
Code
109
318
package kala.function; import org.jetbrains.annotations.NotNull; import java.io.Serializable; final class BooleanPredicates { static final class IsTrue implements BooleanPredicate, Serializable { private static final long serialVersionUID = 0L; @Override public boolean test(boolean v) { ...
18,665
https://github.com/ysfcndgr/weaver/blob/master/src/app/components/Notifications/NotificationsProvider.tsx
Github Open Source
Open Source
MIT
2,022
weaver
ysfcndgr
TypeScript
Code
144
436
/*--------------------------------------------------------------------------------------------- * Copyright (c) IBAX All rights reserved. * See LICENSE in the project root for license information. *--------------------------------------------------------------------------------------------*/ import React from 're...
12,204
https://github.com/natetheaverage/mei-pack/blob/master/app/Services/Session/CurrentUserSession.php
Github Open Source
Open Source
MIT
null
mei-pack
natetheaverage
PHP
Code
106
305
<?php namespace App\Services\Session; use App\Repositories\Repo; use Illuminate\Support\Facades\Session; use App\Contracts\UpdateCurrentUserSession; /** * Class UpdatedUserSession * Loads and removes current user from Session info. * * @package App\Services */ class CurrentUserSession implements UpdateCurrentU...
18,792
https://github.com/rdtsc/codeeval-solutions/blob/master/src/hard/find-min/solutions/c++/solution.cpp
Github Open Source
Open Source
MIT
null
codeeval-solutions
rdtsc
C++
Code
260
652
#include <algorithm> #include <array> #include <cassert> #include <fstream> #include <iostream> template<typename T> static bool extractFrom(std::istream& inputStream, T& value) { if(inputStream.peek() == ',') inputStream.ignore(); return (inputStream >> value); } template<typename T, typename... Values> static ...
42,621
https://github.com/Tpuljak/tsed/blob/master/packages/common/src/platform-express/services/PlatformExpressResponse.ts
Github Open Source
Open Source
MIT
2,020
tsed
Tpuljak
TypeScript
Code
67
165
import {OverrideProvider} from "@tsed/di"; import {PlatformResponse} from "../../platform/services/PlatformResponse"; /** * @platform * @express */ @OverrideProvider(PlatformResponse) export class PlatformExpressResponse extends PlatformResponse { /** * Render a view from given data * @param path * @para...
10,174
https://github.com/jujudellago/telluric-wedding/blob/master/web/app/themes/bridge/includes/shortcodes/shortcode-elements/workflow/templates/workflow-item-template.php
Github Open Source
Open Source
MIT
null
telluric-wedding
jujudellago
PHP
Code
79
354
<div class="qode-workflow-item"> <span class="line" style="<?php echo esc_attr($line_color); ?>"></span> <div class="qode-workflow-item-inner <?php echo esc_attr($image_on_right_class) ?>"> <div class="qode-workflow-image <?php echo esc_attr($image_alignment); ?>"> <?php if(!empty($image)){ ...
25,664
https://github.com/yojiwatanabe/kibana/blob/master/x-pack/plugins/ingest_manager/public/applications/ingest_manager/sections/overview/components/overview_panel.tsx
Github Open Source
Open Source
Apache-2.0
2,021
kibana
yojiwatanabe
TypeScript
Code
99
319
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import styled from 'styled-components'; import { EuiPanel } from '@elastic/eu...
41,452
https://github.com/engpcpx/FPGA/blob/master/VHDL_codes/class_5/exer_01/ram/ram.vhd
Github Open Source
Open Source
MIT
2,021
FPGA
engpcpx
VHDL
Code
191
508
------------------------------------------------------------------------------ -- ram 1 (Random Access Mamory) -- author: Paulo Cezar da Paixao -- ------------------------------------------------------------------------------ -- libraries and packages library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all...
31,951
https://github.com/hveitia/cuban-news-collaborators-tool/blob/master/docs/css/custon-ui.scss
Github Open Source
Open Source
MIT
null
cuban-news-collaborators-tool
hveitia
SCSS
Code
222
809
.bg-primary { background: #1DAEFF !important; } .bg-warning { background: #DFA100 !important; } .bg-success { background: #02AE14 !important; } .bg-danger { background: #FF3737 !important; } .bg-secondary { background: #6c757d !important; } .bg-info { background: #1AB8D2 !important; } .bg-...
14,767
https://github.com/neitokun/discord-mod-bot/blob/master/bot/events/voiceChannelSwitch.js
Github Open Source
Open Source
MIT
2,021
discord-mod-bot
neitokun
JavaScript
Code
157
466
const {EventListener} = require('yuuko'); module.exports = new EventListener('voiceChannelSwitch', async (member, newChannel, oldChannel, context) => { const voiceRoleId = '336954476315541515'; // TODO: put these in a file for role/channel ids const radioRoleId = '710506067943227416'; const radioChannelId = '2905941...
11,351
https://github.com/Plizi-code/plizi/blob/master/frontend/src/components/CommunityTemplate.vue
Github Open Source
Open Source
MIT
2,022
plizi
Plizi-code
Vue
Code
126
526
<template> <div class="row"> <div class="col-12"> <div class="row" v-if="isUserCommunitiesDataReady"> <ul v-if="userCommunities && userCommunities.length > 0" class="plizi-communities-list w-100 d-flex justify-content-between flex-wrap p-0"> ...
29,688
https://github.com/Futurolan/Lufy/blob/master/doc/html/dir_3c1dd0d29cf4c84bf22bab1ca8fe2ecd.js
Github Open Source
Open Source
Apache-2.0
2,014
Lufy
Futurolan
JavaScript
Code
19
162
var dir_3c1dd0d29cf4c84bf22bab1ca8fe2ecd = [ ["actions.class.php", "live_2modules_2tournament_2actions_2actions_8class_8php.html", [ ["tournamentActions", "classtournament_actions.html", "classtournament_actions"] ]], ["components.class.php", "live_2modules_2tournam...
43,685
https://github.com/stevefr/Auctionator/blob/master/Source/Config/Main.lua
Github Open Source
Open Source
MIT
null
Auctionator
stevefr
Lua
Code
270
1,377
Auctionator.Config.Options = { DEBUG = "debug", MAILBOX_TOOLTIPS = "mailbox_tooltips", VENDOR_TOOLTIPS = "vendor_tooltips", AUCTION_TOOLTIPS = "auction_tooltips", ENCHANT_TOOLTIPS = "enchant_tooltips", SHIFT_STACK_TOOLTIPS = "shift_stack_tooltips", AUTOSCAN = "autoscan", AUTO_LIST_SEARCH = "auto_list_se...
36,142