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/baranovxyz/next-global-css/blob/master/__tests__/__fixtures__/3d-party-library/component/index.js
Github Open Source
Open Source
MIT
2,021
next-global-css
baranovxyz
JavaScript
Code
18
50
const React = require('react') require('./styles.css') module.exports.Component = () => { return React.createElement('div', { className: 'Component' }, 'Component!') }
17,881
https://github.com/madun/bawaslu-admin/blob/master/application/controllers/Jobvacancies.php
Github Open Source
Open Source
MIT
null
bawaslu-admin
madun
PHP
Code
149
649
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Jobvacancies extends CI_Controller { public function __construct(){ parent::__construct(); $this->load->model('model_jobVacancies'); } public function index() { $this->model_security->getsecurity(); $isikonten['content'] = 'jobva...
5,183
https://github.com/staltz/kotlin/blob/master/libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/KotlinGradlePluginIT.kt
Github Open Source
Open Source
Apache-2.0
2,015
kotlin
staltz
Kotlin
Code
172
1,059
package org.jetbrains.kotlin.gradle import org.junit.Test import org.jetbrains.kotlin.gradle.BaseGradleIT.Project class KotlinGradleIT: BaseGradleIT() { Test fun testCrossCompile() { val project = Project("kotlinJavaProject", "1.6") project.build("compileDeployKotlin", "build") { ass...
31,070
https://github.com/usupsuparma/Sistem-Pelaporan/blob/master/application/views/front/media.php
Github Open Source
Open Source
MIT
2,021
Sistem-Pelaporan
usupsuparma
PHP
Code
102
377
<!DOCTYPE html> <html lang="en"> <head> <?php $this->load->view('front/head'); ?> </head> <body class="hold-transition layout-top-nav"> <div class="wrapper"> <!-- Navbar --> <?php $this->load->view('front/navbar'); ?> <!-- /.navbar --> <!-- Content Wrapper. Contains page content --> <div class="content-wr...
9,832
https://github.com/cuslytic/dolla-site-neat/blob/master/source/stylesheets/lib/2-elements/_icons.sass
Github Open Source
Open Source
MIT
null
dolla-site-neat
cuslytic
Sass
Code
10
30
// .lnr // +position(absolute, 50% 5% auto auto) // +size(20px)
25,730
https://github.com/ohinton/taproom/blob/master/app/keg.component.ts
Github Open Source
Open Source
MIT
null
taproom
ohinton
TypeScript
Code
55
216
import {Component, EventEmitter} from 'angular2/core'; import { Keg } from './keg.model'; @Component({ selector:'keg-display', inputs: ['keg'], template:` <h1>{{ keg.name }}</h1> <h2>{{keg.brand}}</h2> <ul> <li> Price: $ {{keg.price}} </li> <li> Alcohol Content: {{keg.alcoholContent...
30,558
https://github.com/javaseeds/jvm-tools/blob/master/sjk-agent/src/test/java/org/gridkit/jvmtool/agent/SjkAgentLocatorCheck.java
Github Open Source
Open Source
Apache-2.0
2,020
jvm-tools
javaseeds
Java
Code
47
231
package org.gridkit.jvmtool.agent; import java.io.IOException; import java.net.URISyntaxException; import java.net.URL; import org.junit.Test; public class SjkAgentLocatorCheck { @Test public void checkZipURL() { URL url = SjkAgent.class.getClassLoader().getResource("java/lang/String.class"); ...
11,275
https://github.com/crdroidreloaded/android_external_ImageMagick/blob/master/coders/dds.c
Github Open Source
Open Source
ImageMagick
2,019
android_external_ImageMagick
crdroidreloaded
C
Code
13,729
35,270
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
46,611
https://github.com/adi-g15/nitp-notes/blob/master/src/pages/highlighted/cs4401.tsx
Github Open Source
Open Source
Unlicense
2,021
nitp-notes
adi-g15
TypeScript
Code
43
113
// import HighlightedComponent from "../../components/HighlightedComponent"; // export default HighlightedComponent.bind(this, {sub: "cs4401", msg: "Yaha jo maine read kiye hai wohi hai, if you have highlighted/marked notes PLEASE provide"}); import React from 'react'; export default function HCS4401(props) { return...
23,633
https://github.com/keithb418/medcheckerapp/blob/master/test/selenium-ruby/spec/search_page_spec.rb
Github Open Source
Open Source
CC0-1.0
null
medcheckerapp
keithb418
Ruby
Code
84
318
require_relative '../../selenium-ruby/pages/Welcome' require_relative '../../selenium-ruby/pages/Search' describe 'Search page' do # GSA-2: Search Meds before(:all) do @welcome = Welcome.new (@driver) @search = Search.new (@driver) @welcome.return_proceed_button.click end it 'will have a search b...
42,708
https://github.com/OrangeBuffalo/TheArenaExperience/blob/master/TheArenaExperience/Settings.cs
Github Open Source
Open Source
MIT
null
TheArenaExperience
OrangeBuffalo
C#
Code
255
675
using MCM.Abstractions.Attributes; using MCM.Abstractions.Attributes.v2; using MCM.Abstractions.Settings.Base.Global; namespace TheArenaExperience { class Settings : AttributeGlobalSettings<Settings> { public override string Id => "TheArenaExperience"; public override string DisplayName => "The...
22,962
https://github.com/chenshun00/data-code/blob/master/src/main/java/io/github/chenshun00/data/tree/binary/InvertTree.java
Github Open Source
Open Source
MIT
null
data-code
chenshun00
Java
Code
174
622
package io.github.chenshun00.data.tree.binary; /** * https://twitter.com/mxcl/status/608682016205344768 * <p> * https://leetcode-cn.com/problems/invert-binary-tree/ * <p> * 翻转二叉树: 前序遍历的时候先把当前节点的左右子树翻转,然后递归翻转他们的孩子. * * @author chenshun00@gmail.com * @since 2022/1/9 4:54 下午 */ public class InvertTree { pub...
239
https://github.com/ni/hoplite/blob/master/tests/utils.py
Github Open Source
Open Source
MIT
2,020
hoplite
ni
Python
Code
346
1,065
from hoplite.serializer import hoplite_dumps class StatusCodeTestMixin(object): def assertStatusCode(self, response, status_code): """Assert the status code of a Flask test client response :param response: The test client response object :param status_code: The expected status code ...
40,964
https://github.com/ccyz/Summary-model-for-judgment-document/blob/master/keras_textclassification/m09_TextCRNN/graph.py
Github Open Source
Open Source
Unlicense
2,022
Summary-model-for-judgment-document
ccyz
Python
Code
192
885
# -*- coding: UTF-8 -*- # !/usr/bin/python # @time :2019/6/3 10:51 # @author :Mo # @function :graph of CRNN # @paper :A C-LSTM Neural Network for Text Classification(https://arxiv.org/abs/1511.08630) from keras import regularizers from keras.models import Model from keras.layers import SpatialDropout1D, Conv...
5,492
https://github.com/won21kr/RemsStudio/blob/master/src/me/anno/studio/Build.kt
Github Open Source
Open Source
Apache-2.0
2,021
RemsStudio
won21kr
Kotlin
Code
10
22
package me.anno.studio object Build { val isDebug = true }
15,766
https://github.com/stones/webdriver-cucumberjs-setup/blob/master/components/reddit-homepage/check-title.feature
Github Open Source
Open Source
Unlicense
2,017
webdriver-cucumberjs-setup
stones
Gherkin
Code
55
101
Feature: Reddit Home Page Title As a developer I want to make sure I can be distracted Background: Given I open the url "https://www.reddit.com" Scenario: Is not Google Then I expect that the title is not "Google" @components Scenario: Is correct Then I expect that the title is "reddit: the f...
8,735
https://github.com/tolchanov/GyrocopterApp/blob/master/app/src/main/java/com/test/hyrocoptertestapp/data/LogDataManager.kt
Github Open Source
Open Source
MIT
null
GyrocopterApp
tolchanov
Kotlin
Code
201
813
package com.test.hyrocoptertestapp.data import android.os.Environment import com.test.hyrocoptertestapp.model.InputModel import timber.log.Timber import java.io.File import java.io.FileOutputStream import java.text.SimpleDateFormat import java.util.* interface ILogDataManager { fun initLogging() fun getFileLi...
18,323
https://github.com/foxycoder/gatsby-starter-netlify-cms/blob/master/src/components/Footer.sass
Github Open Source
Open Source
MIT
2,018
gatsby-starter-netlify-cms
foxycoder
Sass
Code
67
247
.footer, .footer strong color: #fff a:link, a:hover, a:visited color: #fff font-weight: bolder a:hover color: #fff text-decoration: underline .footer .social-icons display: flex margin: 1rem 0 align-items: center .icon-container flex: 1 margin: 0.5rem text-align...
15,497
https://github.com/opensource-emr/hospital-management-emr/blob/master/Code/Components/DanpheEMR.ServerModel/AdmissionModels/DischargeSummaryModel.cs
Github Open Source
Open Source
MIT
2,023
hospital-management-emr
opensource-emr
C#
Code
361
775
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DanpheEMR.ServerModel { public class DischargeSummaryModel { [DatabaseGenerated...
36,499
https://github.com/hoangpq/graphql-app/blob/master/orm/db.go
Github Open Source
Open Source
MIT
2,018
graphql-app
hoangpq
Go
Code
161
621
package orm import ( "fmt" _ "github.com/lib/pq" "go-grapgql-practice/configs" "go-grapgql-practice/models" "github.com/jinzhu/gorm" ) func GetConnection() (*gorm.DB) { config, _ := configs.GetDatabaseConfig() connString := fmt.Sprintf( "postgres://%s:%s@%s:%d/%s?sslmode=disable", config.User, config.Passw...
15,543
https://github.com/CatOrmerod/coding-cat-portfolio/blob/master/controllers/profileRoutes.js
Github Open Source
Open Source
MIT
null
coding-cat-portfolio
CatOrmerod
JavaScript
Code
131
373
const router = require("express").Router(); const { Project, Admin, Contact } = require("../models"); const withAuth = require("../utils/auth"); router.get("/", withAuth, async (req, res) => { try { // Get all blog posts and JOIN with user and comment data const projectData = await Project.findAll({ wh...
10,543
https://github.com/devFoysal/glil/blob/master/resources/sass/home.scss
Github Open Source
Open Source
MIT
2,020
glil
devFoysal
SCSS
Code
2,642
9,382
.container { max-width: 1400px; @media screen and (min-width: 1200px) and (max-width: 1400px) { max-width: 1300px; } } .detail-appointment { display: flex; justify-content: space-between; @media screen and (max-width: 576px) { display: block; } } .book-appointment { b...
29,578
https://github.com/TheShellLand/python/blob/master/v3/Libraries/socket/socket netcat.py
Github Open Source
Open Source
MIT
null
python
TheShellLand
Python
Code
27
93
#!/usr/bin/env python # -*- coding: utf8 -*- import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(('localhost', 31337)) s.send('python says hello nc') # 20 s.recv(30) 'nc says hello python\n' s.close()
15,882
https://github.com/uwgraphics/hierarchicaldd/blob/master/external_libraries/Physbam/Public_Library/PhysBAM_Rendering/PhysBAM_Ray_Tracing/Rendering_Shaders/RENDERING_HOMOGENEOUS_VOLUME_SHADER.h
Github Open Source
Open Source
BSD-3-Clause
2,017
hierarchicaldd
uwgraphics
C++
Code
202
1,563
//##################################################################### // Copyright 2004, Andrew Selle. // This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt. //##################################################################### #ifndef...
13,635
https://github.com/ixaxaar/handyR/blob/master/dtw.r
Github Open Source
Open Source
MIT
null
handyR
ixaxaar
R
Code
305
986
require(dtw) require(RColorBrewer) # Data a = c(rep(0, 1000), 10*sin(seq(1, 10*pi, length.out=500)) + 2*rnorm(500), rep(0, 1500)) + arima.sim(n=3000, model=list(1,0,0)) # Pattern b = 100*cos(seq(0, 2*pi, length.out=100)) # Number of sliding windows winnum = 100 overlap = 10 # calculate window size winsize = 0 wi...
42,486
https://github.com/Schnitzel/ripple/blob/master/packages/components/Organisms/SiteFooter/stories.js
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,019
ripple
Schnitzel
JavaScript
Code
406
1,208
import { storiesOf } from '@storybook/vue' import RplSiteFooter from './index.vue' import { text, object } from '@storybook/addon-knobs/vue' storiesOf('Organisms/SiteFooter', module) .add('Site footer', () => ({ components: { RplSiteFooter }, template: ` <rpl-site-footer :nav="nav" ...
15,456
https://github.com/danielsz/gerbil/blob/master/src/std/db/_sqlite.scm
Github Open Source
Open Source
Apache-2.0
null
gerbil
danielsz
Scheme
Code
602
2,728
;;; -*- Scheme -*- ;;; (C) vyzo at hackzen.org ;;; SQLite FFI ;; compile: -ld-options "-lsqlite3" (declare (block) (standard-bindings) (extended-bindings) (not safe)) (namespace ("std/db/_sqlite#")) (##namespace ("" define-macro define let let* if or and quote quasiquote unquote unquote-splicin...
1,006
https://github.com/Allaeddineattia/Valravn/blob/master/src/DataBase/Imp/Repos/ImageRepo.cpp
Github Open Source
Open Source
MIT
null
Valravn
Allaeddineattia
C++
Code
359
1,711
// // Created by alro on 29‏/11‏/2020. // #include <Shared/DependencyInjector.h> #include "DataBase/Contracts/Repos/ImageRepo.h" #include "DataBase/Contracts/Repos/Tools.h" class ImageRepo::Impl{ private: shared_ptr<DataBase > data_base = nullptr; shared_ptr<IRepository<Multimedia>> multimedia_repo = nullptr...
12,172
https://github.com/2387744807/RunCodeOnline/blob/master/CQPdemo/user/curlpost.h
Github Open Source
Open Source
MIT
2,019
RunCodeOnline
2387744807
C
Code
80
291
#pragma once #define CURL_STATICLIB #include "../libcurl/curl/curl.h" #include <string> #include <map> class Http { public: Http(const std::string& url, const std::map<std::string, std::string>& headers = {}) noexcept; void setUrl(const std::string& url) noexcept; void setHeaders(const std::map<std::string, std::str...
11,782
https://github.com/mlanett/screw/blob/master/lib/screw/queue.rb
Github Open Source
Open Source
MIT
2,014
screw
mlanett
Ruby
Code
209
464
require "thread" module Screw class Queue Unlimited = 0 Forever = (2 ** (0.size * 8 - 2) - 1) # Ruby uses an extra bit as a Fixnum flag. NoWait = 0 class Timeout < ::Exception end # @param max is the maximum size of the queue. Optional, defaults to 0 (Unlimited). def initialize(ma...
3,455
https://github.com/wso2/andes/blob/master/modules/andes-core/management/eclipse-plugin/src/main/java/org/wso2/andes/management/ui/model/ManagedAttributeModel.java
Github Open Source
Open Source
Apache-2.0
2,023
andes
wso2
Java
Code
299
855
/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); y...
8,351
https://github.com/aflame143/rit-iste422-project/blob/master/build.gradle
Github Open Source
Open Source
MIT
2,020
rit-iste422-project
aflame143
Gradle
Code
73
201
/* * This file was generated by the Gradle 'init' task. * * This is a general purpose Gradle build. * Learn how to create Gradle builds at https://guides.gradle.org/creating-new-gradle-builds/ */ apply plugin: 'java' repositories { mavenCentral() } dependencies { testImplementation('junit:junit:4.12') } ...
27,005
https://github.com/Vapor-Solutions/elsieworks-final/blob/master/resources/views/livewire/admin/skills/create.blade.php
Github Open Source
Open Source
MIT
null
elsieworks-final
Vapor-Solutions
PHP
Code
9
33
<div> <x-slot name="header"> Create a new Skill </x-slot> </div>
34,181
https://github.com/ccmbioinfo/crg/blob/master/crg.merge.annotate.sv.sh
Github Open Source
Open Source
MIT
null
crg
ccmbioinfo
Shell
Code
148
666
#!/bin/bash # usage: crg.merge.annotate.sv.sh <family> # run from within family/bcbio-sv/ FAMILY=$1 #run from bcbio-sv folder dir=`pwd`; logfile="${dir}/${FAMILY}_sv_jobids.log"; if [ ! -f $logfile ]; then touch $logfile; fi; #run metasv on each sample for f in $FAMILY_*/$FAMILY/final/$FAMILY* do cd $f SAMPL...
35,593
https://github.com/gunwook/development_blog_server/blob/master/src/components/Auth/interface.ts
Github Open Source
Open Source
MIT
null
development_blog_server
gunwook
TypeScript
Code
38
100
import { IUserModel, SignUp } from '../User/model'; /** * @export * @interaface IAuthService */ export interface IAuthService { /** * @param {SignUp} SignUp * @returns {Promise<IUserModel>} * @memberof AuthService */ createUser(signUp: SignUp): Promise < IUserModel > ; }
42,380
https://github.com/max-ieremenko/AdventOfCode2019/blob/master/Day04/Task2.cs
Github Open Source
Open Source
MIT
null
AdventOfCode2019
max-ieremenko
C#
Code
107
296
namespace Day04 { internal static class Task2 { public static int Solve(int min, int max) { var current = Numbers.Split(min, 6); var limit = Numbers.Split(max, 6); Numbers.Normalize(current); var result = 0; while (Number...
16,710
https://github.com/stealthsoftwareinc/sst/blob/master/doc/manual/cl_sst_parse_opt.adoc
Github Open Source
Open Source
MIT
2,023
sst
stealthsoftwareinc
AsciiDoc
Code
490
1,237
// // Copyright (C) 2012-2023 Stealth Software Technologies, Inc. // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without // restriction, including without limitation the rights to use,...
14,763
https://github.com/AnRADI/ProjectVue1/blob/master/webpack.mix.js
Github Open Source
Open Source
MIT
null
ProjectVue1
AnRADI
JavaScript
Code
120
457
const mix = require('laravel-mix'); const del = require('del'); const glob = require('glob'); let project_name = require("path").basename(__dirname); let production = mix.inProduction(); // ------------- Don't generate license file -------------- mix.options({ terser: { extractComments: false, } });...
43,490
https://github.com/assintates/jikan/blob/master/src/Model/AnimeEpisode.php
Github Open Source
Open Source
MIT
2,018
jikan
assintates
PHP
Code
26
71
<?php namespace Jikan\Model; /** * Class AnimeEpisode * * @package Jikan\Model */ class AnimeEpisode extends Model { public $episode = []; public $episode_last_page = 1; }
37,371
https://github.com/rahulkumaran/ui-components/blob/master/stories/NumberedSteps.stories.tsx
Github Open Source
Open Source
MIT
null
ui-components
rahulkumaran
TypeScript
Code
275
713
import { storiesOf } from '@storybook/react'; import React from 'react'; import { Column } from '../src/grid/column'; import { Row } from '../src/grid/row'; import { NumberedStep, NumberedSteps } from '../src/numbered-steps'; const stories = storiesOf('NumberedSteps', module); stories.add('Numbered Steps with short ...
26,508
https://github.com/isqip/isqip-17/blob/master/Codezilla/Project/public/js/activate.js
Github Open Source
Open Source
MIT
2,017
isqip-17
isqip
JavaScript
Code
5
26
var page = window.location.pathname; document.getElementById(page).classList.add('active');
21,664
https://github.com/idiotic/idiotic-legacy/blob/master/idiotic/distrib/udp.py
Github Open Source
Open Source
MIT
null
idiotic-legacy
idiotic
Python
Code
481
1,730
from . import base import logging import socket import struct import queue PACKET_HEAD = b"ID10T" ID_EVENT = 1 ID_DISCOVERY = 2 EVENT = 1 DISCOVERY = 2 RESPONSE = 3 FORMAT = { EVENT: "{}s", DISCOVERY: "H{}s", RESPONSE: "H{}s", } HEADER_FORMAT = "!5sBI" HEADER_LEN = struct.calcsize(HEADER_FORMAT) LOG = ...
26,377
https://github.com/luserx0/UVA_solved/blob/master/UVA/11462_Age_Sort/age_sort.cpp
Github Open Source
Open Source
MIT
null
UVA_solved
luserx0
C++
Code
68
227
#include <iostream> #include <cstdio> #include <vector> #include <algorithm> using namespace std; #define pb push_back int main(){ long n; scanf("%ld", &n); while( n!= 0 ){ vector<int> ppl; for( int i=0; i<n; ++i ){ int a; scanf("%d"...
27,171
https://github.com/backstage/backstage/blob/master/plugins/playlist/src/components/PlaylistCard/PlaylistCard.tsx
Github Open Source
Open Source
LicenseRef-scancode-dco-1.1, Apache-2.0
2,023
backstage
backstage
TSX
Code
335
1,070
/* * Copyright 2022 The Backstage Authors * * 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 ...
47,531
https://github.com/byverdu/crypto-dashboard/blob/master/packages/client/src/redux/actions/fetchApi.js
Github Open Source
Open Source
MIT
2,020
crypto-dashboard
byverdu
JavaScript
Code
56
187
import { createAction } from 'redux-actions'; import { FETCH_API_DATA_REQUEST, FETCH_API_DATA_SUCCESS, FETCH_API_DATA_FAILED } from '../constants'; const fetchApiDataRequest = createAction( FETCH_API_DATA_REQUEST ); const fetchApiDataSuccess = createAction( FETCH_API_DATA_SUCCESS, ( status, data ) => ({ s...
25,514
https://github.com/sundusk/Bee/blob/master/Bee/Bee/Classes/four/Main/XW_Model/XW_IconsModel.h
Github Open Source
Open Source
MIT
2,017
Bee
sundusk
Objective-C
Code
40
135
// // XW_IconsModel.h // Bee // // Created by 9264 on 16/9/8. // Copyright © 2016年 ys. All rights reserved. // #import <Foundation/Foundation.h> @interface XW_IconsModel : NSObject @property(nonatomic,copy) NSString *img; @property(nonatomic,copy) NSString *name; @property(nonatomic,copy) NSString *customURL; + (...
18,199
https://github.com/qpham01/udacity/blob/master/dlfnd/deep-learning-local/tv-script-generation/tflib.py
Github Open Source
Open Source
MIT
2,018
udacity
qpham01
Python
Code
231
645
""" A library of classes for working with TensorFlow """ from collections import Counter class TfTextRnn: """ A base class for working with RNN for text processing in TensorFlow """ def __init__(self): # Text data members self.words = None self.raw_features = None self.raw_labe...
5,043
https://github.com/clem16/pm-rtmgr-gen-db/blob/master/lib/Rtmgr/Gen/get_difference_between_server_and_database.pm
Github Open Source
Open Source
ClArtistic
2,020
pm-rtmgr-gen-db
clem16
Perl
Code
220
585
package Rtmgr::Gen::get_difference_between_server_and_database; use 5.006; use strict; use warnings; use DBI; use Exporter qw(import); our @EXPORT = qw(get_difference_between_server_and_database); sub get_difference_between_server_and_database { # $_[0]; # Reference to download list hash. Dereference with @{ $_[0]...
19,780
https://github.com/ncodeitbharath/gradle/blob/master/src/main/java/com/dotmarketing/struts/PortalRequestProcessor.java
Github Open Source
Open Source
Apache-2.0
null
gradle
ncodeitbharath
Java
Code
124
495
/* * Created on Feb 17, 2005 * */ package com.dotmarketing.struts; import com.dotmarketing.filters.Constants; import com.dotmarketing.util.Config; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import or...
39,475
https://github.com/tabulon-ext/zeesh/blob/master/plugins/osx/func/screencap
Github Open Source
Open Source
MIT
2,023
zeesh
tabulon-ext
Shell
Code
165
384
#!/bin/sh # Integrates Mac OS X's screenshot utility with DropBox for easy sharing. # - Starts the interactive take-screenshot function, saves it to your public # Dropbox (if you didn't cancel it) where it will be uploaded automatically. # Copies the public URL to your clipboard and opens your browser to it. ## Conf...
19,447
https://github.com/Zero-Rock/netease-cloud-music-react/blob/master/src/store/cube.ts
Github Open Source
Open Source
MIT
2,020
netease-cloud-music-react
Zero-Rock
TypeScript
Code
30
86
/** * Created by 含光<mobius_pan@yeah.net> on 2020/4/14 10:12 下午. */ import init from "cube-state"; const { createStore, createFlatStore, storeMap, use } = init(); export { createStore, createFlatStore, storeMap, use };
32,130
https://github.com/watawuwu/blackhole/blob/master/src/server.rs
Github Open Source
Open Source
Apache-2.0, MIT
null
blackhole
watawuwu
Rust
Code
25
110
use crate::middleware::AccessLogMiddleware; use anyhow::*; use std::net::ToSocketAddrs; pub async fn serve(addr: impl ToSocketAddrs) -> Result<()> { let mut app = tide::new(); app.with(AccessLogMiddleware::new()); app.listen(addr.to_socket_addrs()?.collect::<Vec<_>>()) .await?; Ok(()) }
13,318
https://github.com/ric2b/Vivaldi-browser/blob/master/chromium/chrome/browser/resources/settings/chromeos/device_page/display_layout.js
Github Open Source
Open Source
BSD-3-Clause
2,022
Vivaldi-browser
ric2b
JavaScript
Code
1,261
3,712
// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @fileoverview * 'display-layout' presents a visual representation of the layout of one or * more displays and allows them to be arranged. */ import 'chrome://resourc...
5,324
https://github.com/thinhx2/Semyon/blob/master/io.asm
Github Open Source
Open Source
MIT
2,020
Semyon
thinhx2
Assembly
Code
128
395
.module io .title "IOs and sequence gen." ;Def file includes .include "define.def" .include "macro.def" .area CODE get_led_color: ;Puts in r3 the value of the next LED to display. mov r3, #0 lcall inc_lfsr jnc get_led_color_2 inc r3 inc r3 get_led_color_2: lcall inc_lfsr jnc get_led_color_ret inc r3 get_led_...
41,916
https://github.com/vinaykarora/Google-API/blob/master/Samples/YouTube Analytics API/v1beta1/ReportsSample.cs
Github Open Source
Open Source
Apache-2.0
2,022
Google-API
vinaykarora
C#
Code
957
2,001
// Copyright 2017 DAIMTO ([Linda Lawton](https://twitter.com/LindaLawtonDK)) : [www.daimto.com](http://www.daimto.com/) // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apa...
9,258
https://github.com/idorenyinudoh/modules/blob/master/scripts/content.ts
Github Open Source
Open Source
MIT
2,021
modules
idorenyinudoh
TypeScript
Code
127
364
import { Octokit } from '@octokit/rest' import got from 'got' const rand = (min, max) => min + Math.round((Math.random() * (max - min))) export default function () { const { nuxt } = this nuxt.hook('content:file:beforeInsert', async (module) => { if (process.env.GITHUB_TOKEN) { const octokit = new Oct...
45,427
https://github.com/Noxalus/Bomberman-AI/blob/master/Bomberman/Assets/Scripts/Player/PlayerMovement.cs
Github Open Source
Open Source
MIT
2,021
Bomberman-AI
Noxalus
C#
Code
235
946
using UnityEngine; using UnityEngine.InputSystem; using static UnityEngine.InputSystem.InputAction; public class PlayerMovement : MonoBehaviour { [Header("Inner references")] [SerializeField] private Player _player = null; [SerializeField] private Rigidbody2D _rigidbody = null; [SerializeField] priva...
18,827
https://github.com/josecostamartins/pythonreges/blob/master/prova1/exec2.py
Github Open Source
Open Source
MIT
null
pythonreges
josecostamartins
Python
Code
21
68
def verifica_numero(numero): if numero > 0: return "P" else: return "N" valor = int(raw_input("Informe o valor: ") or 0) print verifica_numero(valor)
27,708
https://github.com/mworion/MountWizzard4/blob/master/tests/unit_tests/gui/mainWmixin1/test_tabManageModel.py
Github Open Source
Open Source
Apache-2.0
2,023
MountWizzard4
mworion
Python
Code
1,917
9,056
############################################################ # -*- coding: utf-8 -*- # # # # # # # # # ## ## # ## # # # # # # # # # # # # # # # ## # ## ## ###### # # # # # # # # # Python-based Tool for interaction with the 10micron mounts # GUI with PyQT5 fo...
24,557
https://github.com/Veil-Project/veil/blob/master/src/pow.cpp
Github Open Source
Open Source
MIT
2,023
veil
Veil-Project
C++
Code
2,107
7,091
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2019 The Bitcoin Core developers // Copyright (c) 2019-2020 Veil developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <pow.h> #include <chain.h> #...
14,219
https://github.com/adehtiarov/intellij-community/blob/master/platform/core-impl/src/com/intellij/psi/stubs/StubTree.java
Github Open Source
Open Source
Apache-2.0
2,018
intellij-community
adehtiarov
Java
Code
196
561
/* * Copyright 2000-2009 JetBrains s.r.o. * * 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 agre...
18,963
https://github.com/jsoftgem/fluid-web/blob/master/src/js/modules/fluid-progress.js
Github Open Source
Open Source
MIT
2,015
fluid-web
jsoftgem
JavaScript
Code
738
2,602
/** * Created by Jerico on 6/19/2015. */ angular.module("fluidProgress", []) .directive("fluidProgress", ["$templateCache", "fluidProgressService", "FluidProgress", "$timeout", "$q", function (tc, fps, FluidProgress, timeout, q) { return { restrict: "AE", scope: false, ...
3,231
https://github.com/rossant/galry/blob/master/galry/processors/navigation_processor.py
Github Open Source
Open Source
BSD-3-Clause
2,016
galry
rossant
Python
Code
1,074
3,884
import inspect import time import numpy as np from processor import EventProcessor from galry import Manager, TextVisual, get_color __all__ = ['NavigationEventProcessor'] # Maximum viewbox allowed when constraining navigation. MAX_VIEWBOX = (-1., -1., 1., 1.) class NavigationEventProcessor(EventProcessor): ...
7,711
https://github.com/Chapmania/Juniper/blob/master/src/Juniper.Root/NETFX/DateTimeExt.cs
Github Open Source
Open Source
MIT
2,020
Juniper
Chapmania
C#
Code
271
641
namespace System { public static class DateTimeExt { /// <summary> /// The minimum time, according to Unix. /// </summary> private static readonly DateTime epoch = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc); /// <summary> /// Converts time representat...
37,946
https://github.com/AdamFedor/Udemy-GA/blob/master/Advanced Dev Bootcamp/D3/Tooltip/app.js
Github Open Source
Open Source
MIT
2,019
Udemy-GA
AdamFedor
JavaScript
Code
232
993
var width = 500; var height = 500; var padding = 30; var yScale = d3.scaleLinear() .domain(d3.extent(birthData2011, d => d.lifeExpectancy)) .range([height - padding, padding]); var xScale = d3.scaleLinear() .domain(d3.extent(birthData2011, d => d.births / d.population)) ...
41,381
https://github.com/factorysh/streamcast/blob/master/vorbis/stream.go
Github Open Source
Open Source
BSD-3-Clause
2,020
streamcast
factorysh
Go
Code
251
794
package vorbis import ( "errors" "fmt" "sync" "github.com/factorysh/streamcast/ogg" ) type WriterFlusher interface { Flush() Write([]byte) } type Streams struct { streams map[uint32]*Stream current uint32 lock sync.RWMutex Pipe ogg.PageWriter } func NewStreams() *Streams { return &Streams{ strea...
27,187
https://github.com/nonothing/Dyna-Blaster-cocos2dx/blob/master/Classes/Scene/StartingScene.cpp
Github Open Source
Open Source
Unlicense
2,021
Dyna-Blaster-cocos2dx
nonothing
C++
Code
348
1,927
#include "Scene/StartingScene.h" #include "editor-support/cocostudio/CocoStudio.h" #include "Model/GameSounds.h" #include "utils/Utils.h" #define ANIM_TAG 444 USING_NS_CC; StartingScene* StartingScene::create(LoadLevelScene* loadScene) { StartingScene* scene = new StartingScene(); if (scene && scene->init(loadScene...
18,029
https://github.com/shreyansh26/RevOpiD-IJCNLP-17-/blob/master/Doc2Vec Model/train_doc2vecmodel.py
Github Open Source
Open Source
Apache-2.0
2,018
RevOpiD-IJCNLP-17-
shreyansh26
Python
Code
194
719
from nltk.stem import WordNetLemmatizer from nltk.corpus import stopwords from nltk import word_tokenize, pos_tag, sent_tokenize, RegexpTokenizer import string, re from autocorrect import spell from nltk.tokenize import TweetTokenizer from nltk.stem.lancaster import LancasterStemmer from nltk.corpus import state_union ...
22,656
https://github.com/scibian/fmgui/blob/master/src/com/intel/stl/ui/wizards/impl/preferences/PreferencesWizardController.java
Github Open Source
Open Source
Intel
null
fmgui
scibian
Java
Code
950
3,490
/** * Copyright (c) 2015, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the...
17,514
https://github.com/chiang/teamcode/blob/master/src/main/java/io/teamcode/common/vcs/svn/callback/SvnLogMessageCallback.java
Github Open Source
Open Source
MIT
2,021
teamcode
chiang
Java
Code
251
1,107
package io.teamcode.common.vcs.svn.callback; import io.teamcode.common.vcs.svn.ChangedFile; import io.teamcode.common.vcs.svn.ChangedFileAction; import io.teamcode.common.vcs.svn.Commit; import io.teamcode.service.project.integration.ProjectIntegrationServiceManager; import org.apache.subversion.javahl.callback.LogMes...
3,175
https://github.com/hermixy/LT/blob/master/PROJECTS/IupSample/InterServer/InterServer/myJsonServerPacket.c
Github Open Source
Open Source
MIT
2,016
LT
hermixy
C
Code
374
1,371
#include "stdio.h" #include "stdlib.h" #include "myJsonServerPacket.h" #include "myDialog.h" static void SaveToParseStruct(JsonParseStruct * pParseStruct, const char * left, int size) { int oldsize; char * pTmp; if(pParseStruct->content == NULL) { pParseStruct->content = malloc(size + 1); ...
28,877
https://github.com/greyluxtech/greylux-properties-webapp/blob/master/resources/views/layouts/mainlayout.blade.php
Github Open Source
Open Source
MIT
2,020
greylux-properties-webapp
greyluxtech
Blade
Code
32
153
<!DOCTYPE html> <html lang="en"> <head> @include('layouts.partials.head') </head> <body> <div id="app"> {{-- @include('layouts.partials.header') --}} <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> @yield('content') ...
38,640
https://github.com/alexfordc/Au/blob/master/Libraries/_TreeList/Au/AuScrollableControl.cs
Github Open Source
Open Source
MIT
2,020
Au
alexfordc
C#
Code
899
2,950
using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.IO; using System.Threading; using System.Threading.Tasks; using System.ComponentModel; using System.Reflection; using Microsoft.Win32; us...
22,773
https://github.com/Zenika/immutadot/blob/master/packages/immutadot/src/nav/finalNav.js
Github Open Source
Open Source
MIT
2,019
immutadot
Zenika
JavaScript
Code
34
98
class FinalNav { constructor(value) { this.value = value } get() { return this.value } update(updater) { return updater(this.value) } get final() { return true } } export function finalNav(value) { return new FinalNav(value) }
41,168
https://github.com/aparnachaudhary/javaee-service-registry/blob/master/examples/tweet-store/src/main/java/io/github/aparnachaudhary/tweetstore/TweetResource.java
Github Open Source
Open Source
Apache-2.0
null
javaee-service-registry
aparnachaudhary
Java
Code
39
175
package io.github.aparnachaudhary.tweetstore; import io.github.aparnachaudhary.tweet.Tweet; import javax.ws.rs.*; import javax.ws.rs.core.MediaType; /** * REST Endpoint for feed producer * * @author Aparna Chaudhary */ @Path("/tweets") public interface TweetResource { @Path("{id}") @GET @Produces({"...
19,686
https://github.com/tombish/newton-dynamics/blob/master/newton-4.00/doc/html/structnd_shape_info_1_1dg_cone_data.js
Github Open Source
Open Source
Zlib
null
newton-dynamics
tombish
JavaScript
Code
15
126
var structnd_shape_info_1_1dg_cone_data = [ [ "m_height", "structnd_shape_info_1_1dg_cone_data.html#a54e717c7377dbf537a1e1991cb9705af", null ], [ "m_r", "structnd_shape_info_1_1dg_cone_data.html#a4ac1c573887e3ef2c581ec80c1a7defe", null ] ];
24,393
https://github.com/AntonIT99/Flans-Mod-NPC-Vehicles/blob/master/src/main/java/com/wolffsmod/entity/manus/ww2/EntityWW2_AAGun_Flak88_2A.java
Github Open Source
Open Source
MIT
2,023
Flans-Mod-NPC-Vehicles
AntonIT99
Java
Code
38
176
package com.wolffsmod.entity.manus.ww2; import com.wolffsmod.entity.EntityFlanAAGunNPC; import net.minecraft.world.World; public class EntityWW2_AAGun_Flak88_2A extends EntityFlanAAGunNPC { public EntityWW2_AAGun_Flak88_2A(World w) { super(w); } @Override public void setupConfig() { ...
36,859
https://github.com/rkhomyk/FFT.Oanda/blob/master/src/FFT.Oanda/Transactions/FixedPriceOrderReason.cs
Github Open Source
Open Source
MIT
2,022
FFT.Oanda
rkhomyk
C#
Code
111
257
// Copyright (c) True Goodwill. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace FFT.Oanda.Transactions { using System.Text.Json.Serialization; /// <summary> /// The reason that the Fixed Price Order was created. /// </summar...
3,827
https://github.com/yangrong688/hive/blob/master/itests/hive-jmh/src/main/java/org/apache/hive/benchmark/vectorization/mapjoin/load/LongKeyBase.java
Github Open Source
Open Source
Apache-2.0
2,022
hive
yangrong688
Java
Code
315
1,108
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed u...
24,458
https://github.com/SyedThaseemuddin/MPLAB-Harmony-Reference-Apps/blob/master/apps/sam_e54_cult/same54_sdcard_usb_audio_player/firmware/src/config/same54_cult/gfx/legato/image/raw/legato_imagedecoder_raw_write.c
Github Open Source
Open Source
0BSD
2,022
MPLAB-Harmony-Reference-Apps
SyedThaseemuddin
C
Code
325
1,022
// DOM-IGNORE-BEGIN /******************************************************************************* * Copyright (C) 2020 Microchip Technology Inc. and its subsidiaries. * * Subject to your compliance with these terms, you may use Microchip software * and any derivatives exclusively with Microchip products. It is your ...
49,299
https://github.com/FuzzicalLogic/PoE-Bot/blob/master/Checks/RequireRoleAttribute.cs
Github Open Source
Open Source
0BSD
2,021
PoE-Bot
FuzzicalLogic
C#
Code
264
867
namespace PoE.Bot.Checks { using Discord; using PoE.Bot.Contexts; using PoE.Bot.Helpers; using Qmmands; using System; using System.Linq; using System.Threading.Tasks; [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class)] public class RequireAdminAttribute : CheckBaseAt...
45,024
https://github.com/amyami187/nngeometry/blob/master/nngeometry/object/__init__.py
Github Open Source
Open Source
MIT
2,022
nngeometry
amyami187
Python
Code
26
105
from .pspace import (PMatDense, PMatBlockDiag, PMatDiag, PMatLowRank, PMatImplicit, PMatKFAC, PMatEKFAC, PMatQuasiDiag) from .vector import (PVector, FVector) from .fspace import (FMatDense,) from .map import (PushForwardDense, PushForwardImplicit, PullBackDen...
2,323
https://github.com/namofun/uik/blob/master/sample/SatelliteSite.SampleModule/Controllers/MainController.cs
Github Open Source
Open Source
MIT
2,021
uik
namofun
C#
Code
78
313
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using SatelliteSite.SampleModule.Services; namespace SatelliteSite.SampleModule.Controllers { [Area("Sample")] [Route("[area]/[controller]/[action]")] [SupportStatusCodePage] public class MainController : ViewControllerBase ...
6,160
https://github.com/asifkottakal1/jms/blob/master/application/models/Mdl_salesrtninvce.php
Github Open Source
Open Source
MIT
null
jms
asifkottakal1
PHP
Code
177
834
<?php class Mdl_salesrtninvce extends CI_Model { public function __construct() { parent::__construct(); $this->load->database(); } public function salesrtninvce_reg($data,$items,$quantities,$prices,$amounts) { if($this->db->insert('salesrtnin',$data)) { $id=$this->db->insert_id(); foreach ($items a...
14,096
https://github.com/lzuk/AwsWatchman/blob/master/Watchman.AwsResources/Services/RdsCluster/RdsClusterSource.cs
Github Open Source
Open Source
Apache-2.0
2,022
AwsWatchman
lzuk
C#
Code
86
298
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Amazon.RDS; using Amazon.RDS.Model; namespace Watchman.AwsResources.Services.RdsCluster { public class RdsClusterSource : ResourceSourceBase<DBCluster> { private readonly IAmazonRDS _client; ...
9,586
https://github.com/NightHouseStudio/KelleEstellaDiscord/blob/master/comandos/setprefix.js
Github Open Source
Open Source
MIT
2,022
KelleEstellaDiscord
NightHouseStudio
JavaScript
Code
162
663
const prefixModel = require("../models/prefix"); const { MessageEmbed } = require("discord.js"); exports.run = async (bot,message,args) => { if(!message.member.hasPermission("ADMINISTRATOR")) { return; } else { const data = await prefixModel.findOne({ GuildID: message.guild.id }) if (...
25,569
https://github.com/ElMassimo/capybara_test_helpers/blob/master/docs/.vitepress/components/SampleComponent.vue
Github Open Source
Open Source
MIT
2,020
capybara_test_helpers
ElMassimo
Vue
Code
18
60
<script> export default { name: 'SampleComponent', created () { }, } </script> <template> <div>Sample Component</div> </template> <style> </style>
34,808
https://github.com/moorle/aries/blob/master/d2-admin/src/views/aries/system/index.vue
Github Open Source
Open Source
MIT
2,021
aries
moorle
Vue
Code
233
1,104
<template> <d2-container> <el-row> <el-col :span="8"> <el-card class="box-card"> <div slot="header" class="clearfix"> <span>文章</span> <el-button size="medium" icon="el-icon-notebook-2" style="float: right; padding: 3px 0" type="text" @click="$...
27,127
https://github.com/arunsurya77/iris_readout/blob/master/.gitignore
Github Open Source
Open Source
BSD-3-Clause
2,019
iris_readout
arunsurya77
Ignore List
Code
37
157
*~ *.o *.lo *.a *.la /build*/ # autotools stuff /m4/lt*.m4 /m4/libtool.m4 /aclocal.m4 /ltmain.sh /install-sh /config.guess /config.h.in /config.sub /autom4te.cache/ /compile /configure /depcomp /missing /test-driver # automake /ar-lib Makefile.in # cscope and other tags /cscope.* /GPATH /GRTAGS /GSYMS /GTAGS
36,639
https://github.com/SHIVJITH/Odoo_Machine_Test/blob/master/addons/base_automation/tests/test_automation.py
Github Open Source
Open Source
Apache-2.0
null
Odoo_Machine_Test
SHIVJITH
Python
Code
289
1,114
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tests import TransactionCase from odoo.exceptions import UserError import odoo.tests @odoo.tests.tagged('post_install', '-at_install') class TestAutomation(TransactionCase): def test_01_on_create(self): ...
4,882
https://github.com/0x802/federalist/blob/master/api/controllers/user-action.js
Github Open Source
Open Source
CC0-1.0, LicenseRef-scancode-public-domain, CC-BY-3.0
2,021
federalist
0x802
JavaScript
Code
51
173
const { showActions } = require('../authorizers/site'); const { UserAction } = require('../models'); const userActionSerializer = require('../serializers/user-action'); const { toInt } = require('../utils'); module.exports = { find(req, res) { const id = toInt(req.params.site_id); showActions(req.user, { id ...
24,504
https://github.com/RichardTMiles/carbonphp/blob/master/tests/feature/FullRestTest.php
Github Open Source
Open Source
MIT
2,020
carbonphp
RichardTMiles
PHP
Code
595
2,688
<?php namespace Tests\Feature; use CarbonPHP\Rest; use CarbonPHP\Tables\Location_References; use CarbonPHP\Tables\Locations; use CarbonPHP\Tables\Photos; use CarbonPHP\Tables\Users; class FullRestTest extends CarbonRestTest { public function testGenerateCorrectDistinctCountAndThreeArgumentBooleanConditionsUsi...
17,327
https://github.com/hiep1998vnhn11/laravel-vite-vue3-antdv-less-starter/blob/master/resources/js/api/admin/account.ts
Github Open Source
Open Source
MIT
null
laravel-vite-vue3-antdv-less-starter
hiep1998vnhn11
TypeScript
Code
153
431
import { defHttp } from '/@/utils/http/axios' import { ListAccount, AccountCreateParams, GetListAccountParams, ToggleAccessParams, DeleteAccountParams, UpdateAccountParams, SchoolParams, UnsuspendAccountParams, ActionAccountParams, ApprovalEmailParams, } from './model/accountModel' import { BasicRes...
25,862
https://github.com/SinsofSloth/RF5-global-metadata/blob/master/System/Linq/Expressions/ExpressionType.cs
Github Open Source
Open Source
MIT
2,021
RF5-global-metadata
SinsofSloth
C#
Code
525
984
public enum ExpressionType // TypeDefIndex: 2265 { // Fields public int value__; // 0x0 public const ExpressionType Add = 0; public const ExpressionType AddChecked = 1; public const ExpressionType And = 2; public const ExpressionType AndAlso = 3; public const ExpressionType ArrayLength = 4; public const Express...
9,812
https://github.com/affinitydev/auth/blob/master/src/Affinity/SimpleAuth/Helper/Extension/ContextContainerTrait.php
Github Open Source
Open Source
BSD-2-Clause
2,013
auth
affinitydev
PHP
Code
91
251
<?php /** * This file is part of the Affinity Development * open source toolset. * * @author Brendan Bates <brendanbates89@gmail.com> * @package Affinity.SimpleAuth * @license http://opensource.org/licenses/bsd-license.php BSD */ namespace Affinity\SimpleAuth\Helper\Extension; use Affinity\SimpleAuth\AuthCo...
51,002
https://github.com/zhao-qc/zstack/blob/master/test/src/test/java/org/zstack/test/utils/TestSshCheckToolFailure.java
Github Open Source
Open Source
Apache-2.0
2,019
zstack
zhao-qc
Java
Code
53
269
package org.zstack.test.utils; import org.junit.Test; import org.zstack.utils.ssh.Ssh; import org.zstack.utils.ssh.SshException; import org.zstack.utils.ssh.SshResult; public class TestSshCheckToolFailure { @Test(expected = SshException.class) public void test() { SshResult res = new Ssh().setHostname...
23,963
https://github.com/jhh67/chapel/blob/master/test/users/franzf/v2/chpl/fft_128.chpl
Github Open Source
Open Source
ECL-2.0, Apache-2.0
2,022
chapel
jhh67
Chapel
Code
1,842
6,340
/*************************************************************** This code was generated by Spiral 5.0 beta, www.spiral.net -- Copyright (c) 2005, Carnegie Mellon University All rights reserved. The code is distributed under a BSD style license (see http://www.opensource.org/licenses/bsd-license.php) Redistribution a...
25,838
https://github.com/varrcan/workcalendar/blob/master/europe/czechrepublic/czechrepublic.go
Github Open Source
Open Source
MIT
null
workcalendar
varrcan
Go
Code
175
549
package czechrepublic import ( "fmt" "time" core "github.com/varrcan/workcalendar" ) var ( holidays = core.Holidays{ "1/1": core.Event("Restoration Day of the Independent Czech State"), "5/8": core.Event("Liberation Day"), "7/5": core.Event("Saints Cyril and Methodius Day"), "7/6": core.Event("Ja...
50,690
https://github.com/alexzhangs/xsh-lib-core/blob/master/functions/date/minute.sh
Github Open Source
Open Source
MIT
2,021
xsh-lib-core
alexzhangs
Shell
Code
56
132
#? Description: #? Get the Minute part from a given timestamp. #? If no timestamp given, then generate one. #? #? Usage: #? @minute [-M] [TIMESTAMP] #? #? Options: #? [-M] Get the minute (00..59). #? #? This is the default option. #? #? [TIMESTAMP] Timestamp. #? function minute () {...
50,453
https://github.com/inovexia/commerce/blob/master/framework/saleor/index.tsx
Github Open Source
Open Source
MIT
2,021
commerce
inovexia
TSX
Code
37
89
import { getCommerceProvider, useCommerce as useCoreCommerce } from '@commerce' import { saleorProvider, SaleorProvider } from './provider' export { saleorProvider } export type { SaleorProvider } export const CommerceProvider = getCommerceProvider(saleorProvider) export const useCommerce = () => useCoreCommerce<Sal...
38,353