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/nvitya/univio/blob/master/device/gendev/src/startup_armm.cpp
Github Open Source
Open Source
MIT
null
univio
nvitya
C++
Code
215
494
/* * file: startup_armm.cpp * brief: Entry point for ARM Cortex-M Processors * creted: 2021-10-23 * authors: nvitya * notes: * The ARMM platform does not have Assembly initialization part, so the two reset entry points * are provided here. * This code is separated from the VIHAL core, be...
19,310
https://github.com/serradura/u-authorization/blob/master/lib/micro/authorization/permissions/for_each_feature.rb
Github Open Source
Open Source
MIT
2,019
u-authorization
serradura
Ruby
Code
111
408
# frozen_string_literal: true module Micro::Authorization module Permissions module ForEachFeature extend self DOT = '.'.freeze ANY = 'any'.freeze ONLY = 'only'.freeze EXCEPT = 'except'.freeze def authorize?(role, inside:, to:) to.all? { |feature| permit?(inside, rol...
18,929
https://github.com/feedbin/feedbin/blob/master/app/controllers/bookmarklet_controller.rb
Github Open Source
Open Source
MIT
2,023
feedbin
feedbin
Ruby
Code
21
88
class BookmarkletController < ApplicationController skip_before_action :verify_authenticity_token skip_before_action :authorize def script url = ActionController::Base.helpers.asset_url("bookmarklet.js", host: ENV["ASSET_HOST"]) redirect_to url, status: :found end end
45,477
https://github.com/uldza/erl_dist/blob/master/examples/recv_msg.rs
Github Open Source
Open Source
MIT
2,020
erl_dist
uldza
Rust
Code
349
1,198
//! Server Node Example. //! //! The node registers specified name to the EPMD and waits messages from other (connected) nodes. //! If this node receives a message, it will print the message and discard it. //! //! # Usage Examples //! //! ```bash //! $ cargo run --example recv_msg -- --help //! $ cargo run --example r...
11,004
https://github.com/lifansama/learning-power/blob/master/inside/__init__.py
Github Open Source
Open Source
MIT
2,021
learning-power
lifansama
Python
Code
31
81
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # @Author : lisztomania # @Date : 2021/1/14 # @Software : Pycharm # @Version : Python 3.8.5 # @File : __init__.py.py # @Function : 内部
53,380
https://github.com/shivarajmd/ParaPano/blob/master/Util.cpp
Github Open Source
Open Source
MIT
2,017
ParaPano
shivarajmd
C++
Code
801
2,995
// // Created by zhuoqunc on 12/02/17. // #include <iostream> #include <fstream> #include <string> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <limits> #include "Util.h" #include "filter.h" #include "keyPointDetector.h" #include "stitcher.h" #include "cudaFilter.h" using namespace cv; extern c...
54,374
https://github.com/viniciusferraz/quarkus/blob/master/vertx/src/main/java/com/github/viniciusfcf/vertx/OlaHandler.java
Github Open Source
Open Source
Apache-2.0
2,022
quarkus
viniciusferraz
Java
Code
76
279
package com.github.viniciusfcf.vertx; import javax.enterprise.context.ApplicationScoped; import io.quarkus.vertx.ConsumeEvent; @ApplicationScoped public class OlaHandler { @ConsumeEvent(value="olaRequest", local = false) public String consume(String name) { return "OK from Quarkus: "+name; } // @ConsumeEvent...
21,254
https://github.com/IAmRealPoca/cvideo-employer-mobile/blob/master/lib/src/blocs/scr005/scr005_recruitment_detail_state.dart
Github Open Source
Open Source
MIT
null
cvideo-employer-mobile
IAmRealPoca
Dart
Code
119
414
/* * File: scr005_recruitment_detail_state.dart * Project: CVideo * File Created: Thursday, 16th July 2020 4:08:42 pm * Author: minhndse130706 (minhndse130706@fpt.edu.vn) * ----- * Last Modified: Thursday, 16th July 2020 4:12:15 pm * Modified By: minhndse130706 (minhndse130706@fpt.edu.vn) * ----- * Copyright (...
2,239
https://github.com/lahin31/rome/blob/master/packages/@romefrontend/markdown-parser/types.ts
Github Open Source
Open Source
MIT
2,020
rome
lahin31
TypeScript
Code
59
219
import { BaseTokens, ParserCoreState, ParserOptions, SimpleToken, ValueToken, } from "@romefrontend/parser-core"; import {DiagnosticCategory} from "@romefrontend/diagnostics"; export interface MarkdownParserOptions extends Omit< ParserOptions, "ignoreWhitespaceTokens" > { consumeDiagnosticCategory?: Diagnostic...
6,884
https://github.com/IngoHohmann/ren-c/blob/master/tests/datatypes/native.test.reb
Github Open Source
Open Source
Apache-2.0
2,018
ren-c
IngoHohmann
null
Spoken
32
76
; datatypes/native.r [function? :reduce] [not function? 1] [function! = type of :reduce] [ #1659 ; natives are active same? blank! do reduce [ (specialize 'of [property: 'type]) make blank! blank ] ]
31,242
https://github.com/TomHAnderson/SoliantEntityAudit/blob/master/src/EventListener/LogRevision.php
Github Open Source
Open Source
MIT
null
SoliantEntityAudit
TomHAnderson
PHP
Code
671
2,693
<?php namespace ZF\Doctrine\Audit\EventListener; use Doctrine\Common\EventSubscriber , Doctrine\ORM\Events , Doctrine\ORM\Event\OnFlushEventArgs , Doctrine\ORM\Event\PostFlushEventArgs , ZF\Doctrine\Audit\Entity\Revision as RevisionEntity , ZF\Doctrine\Audit\Options\ModuleOptions , ZF\Doctrine...
20,380
https://github.com/daikiueda/node-module-scaffold/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,016
node-module-scaffold
daikiueda
Ignore List
Code
4
18
.tmp node_modules npm-debug.log coverage
24,986
https://github.com/tudor07/pc-notifications/blob/master/mobile/app/src/main/kotlin/com/radikal/pcnotifications/presenter/PairingPresenter.kt
Github Open Source
Open Source
Apache-2.0
null
pc-notifications
tudor07
Kotlin
Code
87
368
package com.radikal.pcnotifications.presenter import com.radikal.pcnotifications.contracts.PairingContract import com.radikal.pcnotifications.model.domain.ServerDetails import com.radikal.pcnotifications.model.service.DeviceCommunicator import com.radikal.pcnotifications.model.validators.Validator import javax.inject....
38,649
https://github.com/haseebalam/cluster_chef/blob/master/site-cookbooks/cassandra/recipes/default.rb
Github Open Source
Open Source
Apache-2.0
2,016
cluster_chef
haseebalam
Ruby
Code
193
522
# # Author:: Benjamin Black (<b@b3k.us>) # Cookbook Name:: cassandra # Recipe:: default # # Copyright 2010, Benjamin Black # # 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.a...
30,073
https://github.com/babelshift/ProPublicaCongressAPI/blob/master/ProPublicaCongressAPI/InternalModels/VoteByDate.cs
Github Open Source
Open Source
Unlicense
2,020
ProPublicaCongressAPI
babelshift
C#
Code
189
571
using Newtonsoft.Json; using System.Collections.Generic; namespace ProPublicaCongressAPI.InternalModels { internal class VoteByDate { [JsonProperty("congress")] public int Congress { get; set; } [JsonProperty("session")] public int Session { get; set; } [JsonProperty(...
45,489
https://github.com/jskinn/unrealcv/blob/master/Source/UnrealCV/Private/Commands/QualityHandler.cpp
Github Open Source
Open Source
MIT
2,018
unrealcv
jskinn
C++
Code
619
2,465
#include "UnrealCVPrivate.h" #include "AssetRegistryModule.h" #include "UE4CVServer.h" #include "QualityHandler.h" /** * @brief Find a material parameter collection by name * @param ParameterCollectionName the name of the collection to find * @return The ParameterCollection object, or nullptr if not found. */ UMat...
42,349
https://github.com/xiaoyu2er/xhr-hook/blob/master/index.js
Github Open Source
Open Source
MIT
null
xhr-hook
xiaoyu2er
JavaScript
Code
2,574
7,498
var AFTER, BEFORE, COMMON_EVENTS, EventEmitter, FETCH, FIRE, FormData, NativeFetch, NativeFormData, NativeXMLHttp, OFF, ON, READY_STATE, UPLOAD_EVENTS, WINDOW, XHookFetchRequest, XHookFormData, XHookHttpRequest, XMLHTTP, base, convertHeaders, depricatedProp, document, fakeEvent, mergeObjects, m...
52,334
https://github.com/HelloEdit/banhammer/blob/master/src/command/scp/user.ts
Github Open Source
Open Source
MIT
2,021
banhammer
HelloEdit
TypeScript
Code
213
598
import { Scpper, Api } from 'scpper.js' import * as Discord from 'discord.js' import { Banhammer, Command, Color } from '../../types/' import * as helper from '../../helper' export class User extends Command { constructor() { super({ name: 'user', aliases: ['u'], channel: ['text', 'dm'], ...
48,594
https://github.com/lihq1403/hyperf/blob/master/src/nacos/src/Provider/ConfigProvider.php
Github Open Source
Open Source
MIT
2,018
hyperf
lihq1403
PHP
Code
143
482
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Nacos\Provider; use GuzzleHttp\RequestOptions; use Hyperf\Nacos\...
12,136
https://github.com/neurosity/eeg-pipes/blob/master/examples/microvoltConversion.ts
Github Open Source
Open Source
MIT
2,023
eeg-pipes
neurosity
TypeScript
Code
37
127
import { createEEG, epoch, addInfo, voltsToMicrovolts } from "../src"; const eeg1$ = createEEG().pipe(voltsToMicrovolts()); const eeg2$ = createEEG().pipe(voltsToMicrovolts({ useLog: true })); const eeg3$ = createEEG().pipe( addInfo({ samplingRate: 256 }), epoch({ duration: 256, interval: 100 }), voltsToMicrov...
19,938
https://github.com/transcom/mymove/blob/master/migrations/app/schema/20210323204715_add_payment_request_to_interchange_control_number.up.sql
Github Open Source
Open Source
MIT, LicenseRef-scancode-public-domain
2,023
mymove
transcom
SQL
Code
66
222
CREATE TABLE payment_request_to_interchange_control_numbers ( id uuid primary key, payment_request_id uuid NOT NULL constraint payment_request_to_icns_payment_request_id_fkey references payment_requests, interchange_control_number int NOT NULL, constraint interchange_control_number_payment_reque...
42,353
https://github.com/thenx-projects/thenx-discuz/blob/master/3.4/uc_server/release/release.php
Github Open Source
Open Source
Apache-2.0
2,023
thenx-discuz
thenx-projects
PHP
Code
8
54
<?php if(!defined('UC_SERVER_VERSION')) { define('UC_SERVER_VERSION', '1.6.0'); define('UC_SERVER_RELEASE', '20170101'); }
50,154
https://github.com/JConnrO/reciplanner/blob/master/seeds/user-seeds.js
Github Open Source
Open Source
MIT
2,021
reciplanner
JConnrO
JavaScript
Code
67
272
const sequelize = require('../config/connection'); const { User, Recipe } = require('../models'); const userdata = [ { username: 'lifeofpie', email: 'lifeofpie@yahoo.com', password: 'password123' }, { username: 'gordonramsey68', email: 'gordonramsey69@yahoo.com', password: 'password123' ...
15,155
https://github.com/lazynerd-studios/greenline-shop/blob/master/src/lib/motion/fade-in-left.ts
Github Open Source
Open Source
MIT
null
greenline-shop
lazynerd-studios
TypeScript
Code
35
105
export function fadeInLeft (duration:number = 0.3) { return { from: { left: '-100%', transition: { type: 'easeInOut', duration: duration, } }, to: { left: 0, transition: { type: 'easeInOut', duration: duration, } }, } }
2,689
https://github.com/Gopa11313/NoteAsap/blob/master/app/src/main/java/com/example/noteasap/ui/login/LoginViewModel.kt
Github Open Source
Open Source
MIT
2,023
NoteAsap
Gopa11313
Kotlin
Code
24
119
package com.example.noteasap.ui.login import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel class LoginViewModel:ViewModel() { val _email=MutableLiveData<String>() val _password=MutableLiveData<String>() val email:LiveData<String> get() ...
53,733
https://github.com/iJudson/DouBanMovie/blob/master/DouBanMovie/DouBanMovie/Basic/NavigationController.swift
Github Open Source
Open Source
MIT
2,017
DouBanMovie
iJudson
Swift
Code
143
488
// // NavigationController.swift // QiYu // // Created by 陈恩湖 on 2017/7/16. // Copyright © 2017年 Judson. All rights reserved. // import UIKit class NavigationController: UINavigationController { var popRecognizer: UIPanGestureRecognizer! override func viewDidLoad() { super.viewDidLoad() ...
39,910
https://github.com/xgp711028/EFDemo/blob/master/src/EFDemo/Entity/MemberContact.cs
Github Open Source
Open Source
Apache-2.0
null
EFDemo
xgp711028
C#
Code
41
92
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EFDemo.Entity { public class MemberContact { public long Id { get; set; } public string ContactNumber { get; set; } public virtual Member Member { get; set; } ...
28,097
https://github.com/jhscheer/dexcalibur/blob/master/APIs/android_24/android/java/text/StringCharacterIterator.smali
Github Open Source
Open Source
Apache-2.0
null
dexcalibur
jhscheer
Smali
Code
432
1,816
.class public final Ljava/text/StringCharacterIterator; .super Ljava/lang/Object; .source "StringCharacterIterator.java" # interfaces .implements Ljava/text/CharacterIterator; # direct methods .method public constructor <init>(Ljava/lang/String;)V .locals 2 .param p1, "value" # Ljava/lang/String; .pr...
8,801
https://github.com/LeviWalker/RapidReact2022/blob/master/src/main/java/frc/robot/shooter/Shooter.java
Github Open Source
Open Source
BSD-3-Clause
null
RapidReact2022
LeviWalker
Java
Code
191
908
package frc.robot.shooter; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; import edu.wpi.first.wpilibj2.command.CommandBase; import edu.wpi.first.wpilibj2.command.ParallelRaceGroup; import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; import edu.wpi.first.wpilibj2.command.SubsystemBase; import ed...
7,853
https://github.com/robotmechanic/ecsrx.buffs/blob/master/Assets/Plugins/UniRx/Scripts/UnityEngineBridge.meta
Github Open Source
Open Source
MIT
2,017
ecsrx.buffs
robotmechanic
Unity3D Asset
Code
14
67
fileFormatVersion: 2 guid: 1b0401713b696b547ae433152ab5cd7f folderAsset: yes timeCreated: 1475084437 licenseType: Free DefaultImporter: userData: assetBundleName: assetBundleVariant:
15,680
https://github.com/yingzhuo/paypay/blob/master/paypay-spring-boot-starter-wechatpay/src/main/java/com/github/yingzhuo/paypay/wechat/autoconfig/WechatpayAutoConfig.java
Github Open Source
Open Source
Apache-2.0
null
paypay
yingzhuo
Java
Code
95
331
/* ____ | _ \ __ _ _ _ _ __ __ _ _ _ | |_) / _` | | | | '_ \ / _` | | | | | __/ (_| | |_| | |_) | (_| | |_| | |_| \__,_|\__, | .__/ \__,_|\__, | |___/|_| |___/ https://github.com/yingzhuo/paypay */ package com.github.yingzhuo.paypay.wechat.autoconfig; import com.github.yingzhuo.paypay...
4,049
https://github.com/zenkodr/capacitor-plugins/blob/master/toast/src/web.ts
Github Open Source
Open Source
MIT
2,020
capacitor-plugins
zenkodr
TypeScript
Code
66
178
import { WebPlugin } from '@capacitor/core'; import type { ToastPlugin, ToastShowOptions } from './definitions'; export class ToastWeb extends WebPlugin implements ToastPlugin { constructor() { super({ name: 'Toast' }); } async show(options: ToastShowOptions): Promise<void> { let duration = 2000; i...
3,133
https://github.com/bsnyder788/grafana/blob/master/public/app/features/dashboard/components/TransformationsEditor/TransformationOperationRow.tsx
Github Open Source
Open Source
Apache-2.0
2,022
grafana
bsnyder788
TypeScript
Code
148
513
import React, { useState } from 'react'; import { DataFrame, DataTransformerConfig, TransformerRegistyItem } from '@grafana/data'; import { HorizontalGroup } from '@grafana/ui'; import { TransformationEditor } from './TransformationEditor'; import { QueryOperationRow } from 'app/core/components/QueryOperationRow/Query...
19,912
https://github.com/onozaty/csvt/blob/master/cmd/sort.go
Github Open Source
Open Source
MIT
2,022
csvt
onozaty
Go
Code
344
1,089
package cmd import ( "github.com/onozaty/csvt/csv" "github.com/spf13/cobra" ) func newSortCmd() *cobra.Command { sortCmd := &cobra.Command{ Use: "sort", Short: "Sort rows", RunE: func(cmd *cobra.Command, args []string) error { format, err := getFlagBaseCsvFormat(cmd.Flags()) if err != nil { ret...
46,389
https://github.com/Nana-Soaps/Nana-Front-End/blob/master/src/actions/index.js
Github Open Source
Open Source
MIT
null
Nana-Front-End
Nana-Soaps
JavaScript
Code
120
294
export const TOGGLE_CART_OPEN = "TOGGLE_CART_OPEN"; export const SET_CATEGORIES = "SET_CATEGORIES"; export const SET_PRODUCTS = "SET_PRODUCTS"; export const SET_BAG = "SET_BAG"; export const SET_ORDER = "SET_ORDER"; export const SET_SHIPPING_OPTIONS = "SET_SHIPPING_OPTIONS"; export const toggleCartOpen = (value) => { ...
18,090
https://github.com/AlyssaDeeb/MyHomeValue/blob/master/React/src/components/Header.js
Github Open Source
Open Source
MIT
null
MyHomeValue
AlyssaDeeb
JavaScript
Code
579
2,728
import React from 'react'; import { NavLink, browserHistory } from 'react-router-dom'; import NavItem from './NavItem'; import NavItemSavedHomes from './NavItem'; import axios from 'axios'; import { connect } from 'react-redux'; import { setPropDetails, setCookieID } from '../actions/propDetailsActions'; import variabl...
37,671
https://github.com/AllanWang/HaskellRank/blob/master/src/Lib.hs
Github Open Source
Open Source
BSD-3-Clause
null
HaskellRank
AllanWang
Haskell
Code
170
352
module Lib ( someFunc ) where someFunc :: IO () someFunc = putStrLn "someFunc" -- | https://www.hackerrank.com/challenges/diagonal-difference/problem diagonalDifference :: IO () diagonalDifference = interact $ compute . map read . words where compute :: [Int] -> String compute (count:matrix) = let...
9,599
https://github.com/JudoWill/ResearchNotebooks/blob/master/APCoopTFfig.py
Github Open Source
Open Source
MIT
2,019
ResearchNotebooks
JudoWill
Python
Code
1,417
4,416
# -*- coding: utf-8 -*- # <nbformat>3.0</nbformat> # <codecell> import os, os.path from itertools import groupby import numpy as np import matplotlib.pyplot as plt from Bio import Motif from Bio.Seq import Seq, Alphabet os.chdir('/home/will/Dropbox/IpythonShare/HIVTfFig/') # <codecell> from collections import Coun...
41,157
https://github.com/Michelle941/v1.0/blob/master/models/Notification.php
Github Open Source
Open Source
BSD-3-Clause
2,016
v1.0
Michelle941
PHP
Code
266
856
<?php namespace app\models; use app\models\User; use Yii; class Notification extends \yii\db\ActiveRecord { const MAIL_941_NOTIFICATION = 0; const MAIL_NOTIFICATION = 1; const PARTY_NOTIFICATION = 2; const TICKET_NOTIFICATION = 3; const MEMBER_NOTIFICATION = 4; const PHOTO_NOTIFICATION = 5; ...
52,799
https://github.com/crypto-zone/sifchain-sifnode/blob/master/x/tokenregistry/keeper/msg_server.go
Github Open Source
Open Source
Apache-2.0
2,021
sifchain-sifnode
crypto-zone
Go
Code
125
509
package keeper import ( "context" sdk "github.com/cosmos/cosmos-sdk/types" sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/Sifchain/sifnode/x/tokenregistry/types" ) type msgServer struct { keeper types.Keeper } func (m msgServer) Register(ctx context.Context, req *types.MsgRegister) ( *types...
26,554
https://github.com/VaibhavBhujade/Blockchain-ERP-interoperability/blob/master/odoo-13.0/addons/mail/static/tests/helpers/mock_server.js
Github Open Source
Open Source
MIT
null
Blockchain-ERP-interoperability
VaibhavBhujade
JavaScript
Code
1,018
3,114
odoo.define('mail.MockServer', function (require) { "use strict"; var MockServer = require('web.MockServer'); MockServer.include({ /** * Param 'data' may have a key 'initMessaging' which contains * a partial overwrite of the result from mockInitMessaging. * * Note: we must delete this key, so ...
40,542
https://github.com/radical-cybertools/radical.entk/blob/master/tests/test_component/test_states.py
Github Open Source
Open Source
MIT
2,021
radical.entk
radical-cybertools
Python
Code
207
1,008
# pylint: disable=protected-access, unused-argument # pylint: disable=no-value-for-parameter from unittest import TestCase from radical.entk import states # ------------------------------------------------------------------------------ # class TestBase(TestCase): # ------------------------------------------...
45,205
https://github.com/mlcommons/mobile_app_open/blob/master/tools/formatter/format.mk
Github Open Source
Open Source
Apache-2.0
2,022
mobile_app_open
mlcommons
Makefile
Code
371
1,292
.PHONY: format ifeq (${OS},Windows_NT) # format/java is not supported on Windows format: format/bazel format/clang format/dart format/line-endings format/markdown else format: format/bazel format/clang format/java format/dart format/line-endings format/markdown endif .PHONY: format/bazel format/bazel: buildifier -r ...
1,371
https://github.com/criteo/kerberos-docker/blob/master/network-analyser/clean-network-analyser.sh
Github Open Source
Open Source
Apache-2.0
2,023
kerberos-docker
criteo
Shell
Code
108
273
#!/usr/bin/env bash # # clean-network-analyser.sh # # Clean docker containers and image from kerberos cluster to analyse network. cd "$(dirname "$0")" read -p "Do you want to remove containers from network-analyser image? [Y/n]: " answer; if [[ "${answer}" == "Y" ]]; then container_ids=$(docker ps -aq --filter=anc...
20,359
https://github.com/mrgypnocat/kotlin/blob/master/compiler/testData/codegen/box/extensionFunctions/contextReceivers/suspendContextualWithExtension.kt
Github Open Source
Open Source
ECL-2.0, Apache-2.0
null
kotlin
mrgypnocat
Kotlin
Code
72
207
// !LANGUAGE: +ContextReceivers // TARGET_BACKEND: JVM_IR // WITH_COROUTINES // WITH_STDLIB import helpers.* import kotlin.coroutines.* import kotlin.coroutines.intrinsics.* class Context { fun c() = "O" } class Extension { fun e() = "K" } context(Context) suspend fun Extension.suspendingTest() = c() + e() ...
38,709
https://github.com/CottonMC/ingame-data-factory/blob/master/build.gradle.kts
Github Open Source
Open Source
MIT
null
ingame-data-factory
CottonMC
Kotlin
Code
106
689
import org.gradle.jvm.tasks.Jar import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { java kotlin("jvm") version "1.3.30" idea id("fabric-loom") version "0.2.1-SNAPSHOT" } java { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 } base { ...
43,094
https://github.com/bepoint/WebSite/blob/master/src/views/examples/Landing.jsx
Github Open Source
Open Source
MIT
null
WebSite
bepoint
null
Spoken
775
2,806
import React from "react"; // nodejs library that concatenates classes import classnames from "classnames"; // reactstrap components import { Badge, Button, Card, CardBody, CardImg, FormGroup, Input, InputGroupAddon, InputGroupText, InputGroup, Container, Row, Col } from "reactstrap"; // cor...
1,893
https://github.com/entelect/incubator_react_native/blob/master/production-example-project/src/services/sub-services/dimensions-service/dimensions-service.js
Github Open Source
Open Source
MIT
2,019
incubator_react_native
entelect
JavaScript
Code
39
93
import { Dimensions } from 'react-native'; function getScreenDimensions() { const { height, width } = Dimensions.get('window'); const max = Math.max(height, width); const min = Math.min(height, width); return { height: max, width: min }; } export default { getScreenDimensions };
17,097
https://github.com/jorisvos/making-things-smart/blob/master/smart-lamp/modes/preset.py
Github Open Source
Open Source
MIT
2,018
making-things-smart
jorisvos
Python
Code
68
209
import os, sys, signal, subprocess from sense_hat import SenseHat from time import sleep from libs.set_color import * import variables.colors as c sense = SenseHat() sense.clear() def joystickPreset(direction): if direction == "up" or direction == "right": if c.max_color_index == c.color_index: ...
21,112
https://github.com/tjstar09/web-app-gatsby/blob/master/src/Components/Header.js
Github Open Source
Open Source
RSA-MD
null
web-app-gatsby
tjstar09
JavaScript
Code
71
203
import React from "react" import { Link } from "gatsby" import { links } from './header.module.scss' const Header = () => { return ( <div id="header"> <h1> <b>Welcome To the Great Gatsby</b></h1> <nav> <Link className = { links } to="/"> Home </Link>&nbsp;|&nbsp; ...
49,904
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/c/cloudmersive-virus-api-client/src/main/scala/typingsSlinky/cloudmersiveVirusApiClient/anon.scala
Github Open Source
Open Source
MIT
2,021
SlinkyTyped
ScalablyTyped
Scala
Code
73
307
package typingsSlinky.cloudmersiveVirusApiClient import typingsSlinky.cloudmersiveVirusApiClient.mod.ApiInstanceAuthentications import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} ...
34,848
https://github.com/MFlisar/material-dialogfragments/blob/master/dialogs-ads/src/main/java/com/michaelflisar/dialogs/Utils.kt
Github Open Source
Open Source
Apache-2.0
2,021
material-dialogfragments
MFlisar
Kotlin
Code
227
821
package com.michaelflisar.dialogs import android.content.Context import android.provider.Settings import java.security.NoSuchAlgorithmException import java.util.* internal object Utils { const val DEFAULT_PREF_NAME = "dialogs_ads" const val PREF_KEY_SHOW_POLICY_DATE = "show_policy_date" const val PREF_K...
10,882
https://github.com/Scottx86-64/dotfiles-1/blob/master/source/pkgsrc/emulators/netbsd32_compat15-extras/Makefile
Github Open Source
Open Source
Unlicense
2,021
dotfiles-1
Scottx86-64
Makefile
Code
13
64
# $NetBSD: Makefile,v 1.1 2007/08/21 22:49:29 jlam Exp $ NETBSD_COMPAT32= yes .include "${.CURDIR}/../compat15-extras/Makefile"
54,412
https://github.com/ckrause/loda/blob/master/programs/oeis/140/A140397.asm
Github Open Source
Open Source
Apache-2.0
2,021
loda
ckrause
Assembly
Code
37
305
; A140397: a(n) = floor(3*phi*n) - 3*floor(phi*n) where phi = (1+sqrt(5))/2. ; 1,0,2,1,0,2,0,2,1,0,2,1,0,1,0,2,1,0,2,1,2,1,0,2,1,0,2,0,2,1,0,2,1,0,1,0,2,1,0,2,1,2,1,0,2,1,0,1,0,2,1,0,2,1,2,1,0,2,1,0,2,0,2,1,0,2,1,0,1,0,2,1,0,2,1,2,1,0,2,1,0,2,0,2,1,0,2,1,0,1,0,2,1,0,2,0,2,1,0 seq $0,292639 ; Rank of (3+r)*n when all t...
38,109
https://github.com/ahmedkhaledsaleh/invoice/blob/master/resources/views/dashboard/layouts/master.blade.php
Github Open Source
Open Source
MIT
null
invoice
ahmedkhaledsaleh
PHP
Code
39
317
@include('dashboard.layouts.head') @include('dashboard.layouts.headermobile') <div class="d-flex flex-column flex-root"> <!--begin::Page--> <div class="d-flex flex-row flex-column-fluid page"> @include('dashboard.layouts.aside') <!--begin::Wrapper--> <div class="d-flex flex-column...
35,422
https://github.com/LinkedOpenData/challenge2016/blob/master/docs/_/2015/concrete5/concrete/blocks/core_conversation_message/composer.php
Github Open Source
Open Source
MIT
2,017
challenge2016
LinkedOpenData
PHP
Code
59
305
<?php defined('C5_EXECUTE') or die("Access Denied."); $cnvMessageSubject = ''; if (is_object($message)) { $cnvMessageSubject = $message->getConversationMessageSubject(); } ?> <div class="ccm-discussion-form"> <div class="ccm-conversation-errors alert alert-danger"></div> <div class="control-group"> <?php echo $form-...
48,493
https://github.com/2019-Spring-CSC-386/p00-project-1-rofy-elyor/blob/master/LockPro_Start_Code.ino
Github Open Source
Open Source
MIT
null
p00-project-1-rofy-elyor
2019-Spring-CSC-386
null
Spoken
388
703
/* This is the pseudocode for the LockPro v1 for the Sound Detection Security System. Source: https://www.instructables.com/id/How-to-Make-Voice-Controlled-LEDs-Using-Arduino/ & http://www.arduino.cc/en/Tutorial/Knock */ // include Serial for software and initialize variables for Bluetooth connection // initialize co...
16,359
https://github.com/drganam/LearnML/blob/master/benchmarks/C/lambda/sol177.ml
Github Open Source
Open Source
MIT
2,021
LearnML
drganam
OCaml
Code
185
421
(* 프로그래밍언어 HW1 Exercise 2 2009-11657 김동현 *) type lambda = V of var | P of var * lambda | C of lambda * lambda and var = string (* let rec searchList (elem, lst) = if lst = [] then false else let (h::t) = lst in if elem = h then true else searchList (elem, t) *) let rec searchList (ele...
6,871
https://github.com/r-barnes/sw_comparison/blob/master/implementations/ugene/src/corelibs/U2Core/src/datatype/UdrRecord.cpp
Github Open Source
Open Source
BSD-Source-Code
null
sw_comparison
r-barnes
C++
Code
463
1,464
/** * UGENE - Integrated Bioinformatics Tools. * Copyright (C) 2008-2020 UniPro <ugene@unipro.ru> * http://ugene.net * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * ...
49,964
https://github.com/johnjamesmarsh/terraform-provider-citrixadc/blob/master/examples/sslpolicylabel/resources.tf
Github Open Source
Open Source
Apache-2.0
2,021
terraform-provider-citrixadc
johnjamesmarsh
HCL
Code
11
48
resource "citrixadc_sslpolicylabel" "demo_sslpolicylabel" { labelname = "demo_sslpolicylabel" type = "DATA" }
45,728
https://github.com/UnforeseenOcean/Exist/blob/master/Assets/SettingsLog.cs
Github Open Source
Open Source
CC-BY-3.0, CC-BY-4.0
2,016
Exist
UnforeseenOcean
C#
Code
73
334
using UnityEngine; using System.Collections; public class SettingsLog : MonoBehaviour { // Use this for initialization void Start () { QualitySettings.SetQualityLevel (3); } // Update is called once per frame void Update () { } void OnSliderChange() { AudioListener.volume=UISlider.current....
52,384
https://github.com/znlccy/service/blob/master/application/index/model/Order.php
Github Open Source
Open Source
Apache-2.0
2,018
service
znlccy
PHP
Code
103
416
<?php namespace app\index\model; use think\Model; class Order extends BaseModel { protected $table = 'tb_order'; /** * @return \think\model\relation\HasOne * 关联入驻团队 */ public function team() { return $this->hasOne('EnterTeam', 'id', 'team_id')->field('id,company'); } // ...
7,009
https://github.com/ethical-jobs/sdk-js-archived/blob/master/test/restore.spec.js
Github Open Source
Open Source
MIT
2,019
sdk-js-archived
ethical-jobs
JavaScript
Code
72
239
import sinon from 'sinon'; import Api from '..'; // ----------- // Upload helper // ------------------ describe('Restore helper', () => { beforeEach(() => { sinon.stub(Api, 'patch').resolves({}); }); afterEach(() => { Api.patch.restore(); }); test('should use the correct HTTP verb', () => { A...
38,157
https://github.com/RezaAshrafi77/material-ui-audio-player/blob/master/dist/components/state/player.js
Github Open Source
Open Source
MIT
null
material-ui-audio-player
RezaAshrafi77
JavaScript
Code
35
123
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { STATUS: { PLAY: 'PLAY', PAUSE: 'PAUSE', STOP: 'STOP' }, VOLUME: { STATUS: { MUTE: 'MUTE', UNMUTE: 'UNMUTE' }, DEFAULT_VALUE: 100 } }; /...
16,260
https://github.com/dart-archive/dev_compiler/blob/master/test/codegen/lib/typed_data/typed_list_iterable_test.dart
Github Open Source
Open Source
BSD-3-Clause
2,020
dev_compiler
dart-archive
Dart
Code
570
2,356
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. import 'dart:typed_data'; import 'package:expect/expect.dart'; void testIterableFunctions(list, first,...
4,526
https://github.com/adietprasetyo/ta3_adiet/blob/master/app/Http/Controllers/Admin/HomeController.php
Github Open Source
Open Source
MIT
null
ta3_adiet
adietprasetyo
PHP
Code
153
653
<?php namespace App\Http\Controllers\Admin; use App\Home; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Storage; class HomeController extends Controller { /** * Create a new controller instance. * * @return void */ public function __const...
26,724
https://github.com/dandycheung/adam/blob/master/adam/src/test/kotlin/com/malinskiy/adam/request/pkg/InstallRemotePackageRequestTest.kt
Github Open Source
Open Source
Apache-2.0
2,022
adam
dandycheung
Kotlin
Code
196
650
/* * Copyright (C) 2021 Anton Malinskiy * * 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 a...
48,716
https://github.com/dbdxnuliba/IHMC-/blob/master/ihmc-path-planning/src/main/java/us/ihmc/pathPlanning/visibilityGraphs/interfaces/NavigableRegionFilter.java
Github Open Source
Open Source
Apache-2.0
2,022
IHMC-
dbdxnuliba
Java
Code
16
86
package us.ihmc.pathPlanning.visibilityGraphs.interfaces; import java.util.List; import us.ihmc.robotics.geometry.PlanarRegion; public interface NavigableRegionFilter { boolean isPlanarRegionNavigable(PlanarRegion query, List<PlanarRegion> allOtherRegions); }
50,139
https://github.com/deltaDNA/tutorial-chilliconnect/blob/master/Assets/Scripts/PlayerManager.cs
Github Open Source
Open Source
Apache-2.0
null
tutorial-chilliconnect
deltaDNA
C#
Code
256
836
using System.Collections; using System.Collections.Generic; using UnityEngine; using ChilliConnect; //using DeltaDNA; public class PlayerManager : MonoBehaviour { public int playerLevel = 1 ; public int playerHealth = 100 ; public int playerCoins = 100 ; public int foodRemaining = 0; public Hu...
27,613
https://github.com/RollingSoftware/L2J_HighFive_Hardcore/blob/master/l2j_server/src/main/java/com/l2jserver/gameserver/model/entity/Castle.java
Github Open Source
Open Source
MIT
null
L2J_HighFive_Hardcore
RollingSoftware
Java
Code
2,942
10,949
/* * Copyright (C) 2004-2016 L2J Server * * This file is part of L2J Server. * * L2J Server is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any ...
215
https://github.com/loganathanengrr/django_blog/blob/master/src/searches/views.py
Github Open Source
Open Source
MIT
null
django_blog
loganathanengrr
Python
Code
55
184
from django.shortcuts import render from blog.models import BlogPost from .models import SearchQuery # Create your views here. def search_view(request): query = request.GET.get('q', None) user = None if request.user.is_authenticated: user = request.user context = {"query":query} if query is not None: SearchQ...
43,079
https://github.com/baidu/bigflow/blob/master/flume/runtime/spark/shuffle_output_executor.h
Github Open Source
Open Source
Apache-2.0
2,022
bigflow
baidu
C++
Code
308
981
/*************************************************************************** * * Copyright (c) 2016 Baidu, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
41,716
https://github.com/Picsart-Academy-UI/ui/blob/master/src/pages/Reservations/components/ResTable/index.jsx
Github Open Source
Open Source
MIT
2,021
ui
Picsart-Academy-UI
null
Spoken
126
453
import { memo } from 'react'; import { Table, TableBody, TableCell, TableContainer, TableHead, TableRow, Paper, Box, } from '@material-ui/core'; import clsx from 'clsx'; import useStylesMain from '../../../../hooks/useStylesMain'; import Loading from '../../../../components/Loading'; import ResTableRow ...
56,314
https://github.com/kwingram25/lucent/blob/master/src/common/containers/Portfolio/components/PortfolioSummary/index.jsx
Github Open Source
Open Source
MIT
null
lucent
kwingram25
null
Spoken
621
2,164
import React, { Component } from 'react' import { connect } from 'react-redux' import PropTypes from 'prop-types' import { Loader, Segment, Statistic } from 'semantic-ui-react' import { Row, Col, Divider, Menu, Dropdown, Button, Icon } from 'antd' import { FormattedNumber } from 'react-intl' import AnimateOnChange fro...
56,477
https://github.com/go-gitea/gitea/blob/master/modules/markup/markdown/math/inline_node.go
Github Open Source
Open Source
LicenseRef-scancode-dco-1.1, MIT
2,023
gitea
go-gitea
Go
Code
149
369
// Copyright 2022 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT package math import ( "github.com/yuin/goldmark/ast" "github.com/yuin/goldmark/util" ) // Inline represents inline math e.g. $...$ or \(...\) type Inline struct { ast.BaseInline } // Inline implements Inline.Inline. func (n...
21,975
https://github.com/aventuri/atproto/blob/master/Makefile
Github Open Source
Open Source
BSD-3-Clause
2,014
atproto
aventuri
Makefile
Code
47
198
TARGET ?= host TARGET_DIR := target/$(TARGET) SRC_DIR := src OBJ_DIR := obj BIN_DIR := bin CPPFLAGS+=-Iinclude -Isrc/include COMMON_OBJ_FILES := dce.o \ dce_basic_commands.o \ dce_utils.o \ COMMON_OBJ_PATHS := $(addprefix $(SRC_DIR)/,$(COMMON_OBJ_FILES)) include $(TARGET_DIR)/target.mk $(BIN_DIR):...
30,354
https://github.com/tushar00jain/cvpr18_rnn_deblur_matcaffe/blob/master/scripts/pyproto.py
Github Open Source
Open Source
MIT
2,022
cvpr18_rnn_deblur_matcaffe
tushar00jain
Python
Code
1,790
14,101
import os import sys def get_pad(name='',bottom='',top='',pad_h=0,pad_w=0): ss ='layer{\n' ss += ' name:"'+name+'"\n' ss += ' type:"'+'Pad'+'"\n' ss += ' bottom:"'+bottom+'"\n' ss += ' top:"'+top+'"\n' ss += ' pad_param {\n' ss += ' pad_h:'+str(pad_h)+'\n' ss += ' pad_w:'+str(pad_w)+'\n' ss+= ...
52,586
https://github.com/furkilic/go-boot-config/blob/master/pkg/go-boot-config/env-parser.go
Github Open Source
Open Source
Apache-2.0
2,020
go-boot-config
furkilic
Go
Code
35
107
package gobootconfig import ( "os" "strings" ) func parseEnv() map[string]interface{} { configs := make(map[string]interface{}) environ := os.Environ() for i, env := range environ { environ[i] = strings.ReplaceAll(env, "_", ".") } parseAndAdd(configs, environ) return configs }
56,869
https://github.com/jingsy/Jquery/blob/master/jquery/jquery/myjquery.js
Github Open Source
Open Source
MIT
2,019
Jquery
jingsy
JavaScript
Code
331
1,136
//$() 为什么返回一个对象? //jquery库自己封闭了自己的作用域 他其实是一个大的闭包 (function () { function jQuery(selector) { return new jQuery.prototype.init(selector); } jQuery.prototype.init = function (selector) { //⚠️注意:只能传id和class现在 // this = {}; // 选出 dom 并且包装成jQuery对象 返回 // id class t...
32,013
https://github.com/xylsxyls/xueyelingshuang/blob/master/src/StockClient/StockClient/GetFilterStockTask.cpp
Github Open Source
Open Source
MIT
2,023
xueyelingshuang
xylsxyls
C++
Code
312
2,108
#include "GetFilterStockTask.h" #include "CMouse/CMouseAPI.h" #include "CSystem/CSystemAPI.h" #include "CKeyboard/CKeyboardAPI.h" #include "StockClient.h" #include "CStringManager/CStringManagerAPI.h" GetFilterStockTask::GetFilterStockTask(): m_hWnd(nullptr), m_today(0, 0), m_vecResult(nullptr), m_regain(false), m_sto...
38,989
https://github.com/elecvery/tesla-key/blob/master/src/screens/ClimateControlsModalScreen.js
Github Open Source
Open Source
MIT
2,020
tesla-key
elecvery
JavaScript
Code
566
2,001
import React from 'react' import { StyleSheet, Text, Image, View, TouchableOpacity, SafeAreaView } from 'react-native' import { create, PREDEF_RES } from 'react-native-pixel-perfect'; import changeNavigationBarColor from 'react-native-navigation-bar-color'; import { Fan, Power, Plus, Minus, Auto, AC, Loop...
45,308
https://github.com/kivy/kivy/blob/master/kivy/uix/modalview.py
Github Open Source
Open Source
LGPL-2.1-only, MIT, Apache-2.0
2,023
kivy
kivy
Python
Code
1,085
3,194
""" ModalView ========= .. versionadded:: 1.4.0 The :class:`ModalView` widget is used to create modal views. By default, the view will cover the whole "main" window. Remember that the default size of a Widget is size_hint=(1, 1). If you don't want your view to be fullscreen, either use size hints with values lower t...
1,842
https://github.com/GabrielPivoto/primeiro-curso-nodejs/blob/master/Calculadora/dividir.js
Github Open Source
Open Source
MIT
null
primeiro-curso-nodejs
GabrielPivoto
JavaScript
Code
20
48
let div = function(a, b){ if(b == 0) return "Impossível dividir por 0" else return a/b } module.exports = div
37,210
https://github.com/sksamuel/scrimage/blob/master/scrimage-tests/src/test/kotlin/com/sksamuel/scrimage/core/Issue125Test.kt
Github Open Source
Open Source
Apache-2.0
2,023
scrimage
sksamuel
Kotlin
Code
59
262
@file:Suppress("BlockingMethodInNonBlockingContext") package com.sksamuel.scrimage.core import com.sksamuel.scrimage.ImmutableImage import io.kotest.core.spec.style.WordSpec import io.kotest.matchers.shouldBe import java.awt.image.BufferedImage import java.io.ByteArrayOutputStream import javax.imageio.ImageIO class ...
5,307
https://github.com/beni0888/restfood/blob/master/src/Restfood/Entity/DoctrineResourceRepository.php
Github Open Source
Open Source
MIT
null
restfood
beni0888
PHP
Code
293
851
<?php namespace Restfood\Entity; use Doctrine\ORM\EntityRepository; class DoctrineResourceRepository extends EntityRepository implements ResourceRepositoryInterface { /** @var ResourceInterface */ private $resource; /** * Persist an resource. * * @param ResourceInterface $resource * ...
31,013
https://github.com/JakeSCahill/goshimmer/blob/master/plugins/webauth/webauth.go
Github Open Source
Open Source
Apache-2.0, BSD-2-Clause
2,020
goshimmer
JakeSCahill
Go
Code
162
680
package webauth import ( "net/http" "strings" "time" "github.com/iotaledger/goshimmer/packages/parameter" "github.com/iotaledger/goshimmer/plugins/webapi" "github.com/iotaledger/hive.go/logger" "github.com/iotaledger/hive.go/node" "github.com/labstack/echo" "github.com/labstack/echo/middleware" "github.com...
24,033
https://github.com/swashcap/electron-packed-executable/blob/master/app/index.js
Github Open Source
Open Source
MIT
null
electron-packed-executable
swashcap
JavaScript
Code
362
794
const { app, BrowserWindow, ipcMain } = require('electron') const cp = require('child_process'); // https://github.com/sindresorhus/electron-debug require('electron-debug')({showDevTools: true}); // Keep a global reference of the window object, if you don't, the window will // be closed automatically when the JavaScr...
34,172
https://github.com/Lutando/Entropy/blob/master/LaundryBooker/src/LaundryBooker.Api/LaundryBooker.Domain/Base/Entity/Entity.cs
Github Open Source
Open Source
MIT
2,018
Entropy
Lutando
C#
Code
62
194
using System; using System.Collections.Generic; using LaundryBooker.Domain.Base.Identity; using LaundryBooker.Domain.Base.ValueObjects; namespace LaundryBooker.Domain.Base.Entity { public abstract class Entity<TIdentity> : ValueObject, IEntity<TIdentity> where TIdentity : IIdentity { protected ...
49,997
https://github.com/zakir-synectiks/monitoring/blob/master/pkg/api/pluginproxy/access_token_provider_test.go
Github Open Source
Open Source
Apache-2.0
null
monitoring
zakir-synectiks
Go
Code
239
1,177
package pluginproxy import ( "context" "testing" "time" "github.com/xformation/synectiks-monitoring/pkg/models" "github.com/xformation/synectiks-monitoring/pkg/plugins" . "github.com/smartystreets/goconvey/convey" "golang.org/x/oauth2" "golang.org/x/oauth2/jwt" ) func TestAccessToken(t *testing.T) { Convey(...
13,712
https://github.com/sdcuike/beaver/blob/master/src/main/java/com/doctor/commons/filewatch/FileChangeListener.java
Github Open Source
Open Source
Apache-2.0
2,018
beaver
sdcuike
Java
Code
12
46
package com.doctor.commons.filewatch; import java.util.Set; public interface FileChangeListener { void onChange(Set<ChangedFiles> changeSet); }
25,916
https://github.com/mrfoogles/ruby2d/blob/master/lib/ruby2d/version.rb
Github Open Source
Open Source
MIT
2,021
ruby2d
mrfoogles
Ruby
Code
8
31
# Ruby2D::VERSION module Ruby2D VERSION = '0.10.0' end
22,182
https://github.com/Kumamoto-Hamachi/tmp_config_master/blob/master/bash/functions/check_array.bash
Github Open Source
Open Source
MIT
null
tmp_config_master
Kumamoto-Hamachi
Shell
Code
47
158
#!/usr/bin/env bash check_array() { local i local input=${1} local str_array=($2) for i in ${str_array[@]}; do if [[ ${i} = ${input} ]]; then return 0 fi done return 1 } << COMMENTOUT - 使い方 配列はそのままでは渡せないので文字列にしてしまおう. order_array=("1" "2" "3" "9") order = 1 if check_array...
30,768
https://github.com/vv16vv/2020-04-otus-java-shirunova/blob/master/hw08-serialization/src/test/java/ru/otus/vsh/hw08/json/classes/WithInheritance.java
Github Open Source
Open Source
MIT
null
2020-04-otus-java-shirunova
vv16vv
Java
Code
75
231
package ru.otus.vsh.hw08.json.classes; import ru.otus.vsh.hw08.json.classes.simples.SimpleObject; import java.util.Objects; public class WithInheritance extends SimpleObject { private long aLong; public WithInheritance(int x, String description, long aLong) { super(x, description); this.aLon...
37,149
https://github.com/201528013359030/partyqing/blob/master/modules/admin/views/partydues/index3.php
Github Open Source
Open Source
BSD-3-Clause
null
partyqing
201528013359030
PHP
Code
699
4,094
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta id="viewport" name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0"> <meta name="format-de...
15,720
https://github.com/ljishen/SmartNIC-WU/blob/master/results/stress-ng/cloudlab/c220g1/sequential-all_60s.yaml.2
Github Open Source
Open Source
MIT
2,022
SmartNIC-WU
ljishen
null
Spoken
4,853
28,968
--- system-info: stress-ng-version: 0.12.01 run-by: unknown date-yyyy-mm-dd: 2021:01:20 time-hh-mm-ss: 05:51:12 epoch-secs: 1611143472 hostname: node-0.c220g1.ucsc-cmps107-pg0.wisc.cloudlab.us sysname: Linux nodename: node-0.c220g1.ucsc-cmps107-pg0.wisc.cloudlab.us ...
28,423
https://github.com/Haarmees/azure-devops-intellij/blob/master/plugin/test/com/microsoft/alm/plugin/authentication/TfsAuthenticationProviderTest.java
Github Open Source
Open Source
MIT
2,022
azure-devops-intellij
Haarmees
Java
Code
339
1,506
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See License.txt in the project root. package com.microsoft.alm.plugin.authentication; import com.google.common.util.concurrent.SettableFuture; import com.microsoft.alm.plugin.AbstractTest; import com.microsoft.alm.plugin.context.Serve...
20,912
https://github.com/pablothedolphin/openupm/blob/master/app/jobs/fetchPackageExtra.js
Github Open Source
Open Source
BSD-3-Clause
2,020
openupm
pablothedolphin
JavaScript
Code
440
1,262
/** * Fetch package extra data **/ const axios = require("axios"); const config = require("config"); const urljoin = require("url-join"); const packageExtra = require("../models/packageExtra"); const { loadPackageNames, loadPackage, packageExists } = require("../utils/package"); const logger = require("../util...
4,607
https://github.com/clevertech/creativ-watson-node/blob/master/test/unit/test.tradeoff_analytics.v1.js
Github Open Source
Open Source
Apache-2.0
2,016
creativ-watson-node
clevertech
JavaScript
Code
627
2,306
'use strict'; var assert = require('assert'); var watson = require('../../index'); var nock = require('nock'); var extend = require('extend'); describe('tradeoff_analytics', function() { var noop = function() {}; var service_request = { 'subject': 'phone', 'columns': [{ 'key': 'price', 'f...
52,048
https://github.com/GWT-M3O-TEST/GWT-m3o-dart/blob/master/example/file/save/saveFile/main.dart
Github Open Source
Open Source
Apache-2.0
2,022
GWT-m3o-dart
GWT-M3O-TEST
Dart
Code
59
212
import 'dart:io'; import 'package:m3o/src/file/file.dart'; void main() async { final ser = FileService(Platform.environment['M3O_API_TOKEN']!); final payload = <String, dynamic>{ "file": { "content": "file content example", "path": "/document/text-files/file.txt", "project": "examples", ...
49,002
https://github.com/benhumphreys/jgit-cassandra/blob/master/src/main/java/com/benhumphreys/jgitcassandra/InMemoryRepositoryResolver.java
Github Open Source
Open Source
Apache-2.0
2,017
jgit-cassandra
benhumphreys
Java
Code
218
583
/* * A Cassandra backend for JGit * Copyright 2014 Ben Humphreys * * 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 require...
46,562