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/w-haibara/yamlApi/blob/master/Makefile
Github Open Source
Open Source
MIT
null
yamlApi
w-haibara
Makefile
Code
26
71
sample: *.go go.mod gofmt -w *.go go build -o yamlApi main.go .PHONY: init init: go mod init yamlApi .PHONY: test test: gofmt -w *.go go test
28,358
https://github.com/Clon-de-Kavak/Front-End/blob/master/node_modules/material-ui-slider/es5/libs/utils/dom.js
Github Open Source
Open Source
MIT
2,021
Front-End
Clon-de-Kavak
JavaScript
Code
983
2,707
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.scrollIntoView = scrollIntoView; exports.pointer = pointer; exports.getOffset = getOffset; exports.hasClass = hasClass; exports.addClass = addCla...
56,167
https://github.com/metamx/line-chart/blob/master/e2e/tests/custom_abs_key.e2e.js
Github Open Source
Open Source
MIT
2,019
line-chart
metamx
JavaScript
Code
65
262
"use strict"; describe('Custom Abscissas Key', function () { beforeEach(function () { browser.get('custom_abs_key.html'); }); it('should generate a chart', function () { var chart = element(by.css('.chart')); expect(chart.isPresent()).toBe(true); expect(chart.getTagName()).toBe('svg'); }); it(...
33,551
https://github.com/ziyasal/Httwrap/blob/master/Httwrap/QueryStringBuilder.cs
Github Open Source
Open Source
MIT
2,022
Httwrap
ziyasal
C#
Code
226
713
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Runtime.Serialization; namespace Httwrap { internal class QueryStringBuilder : IQueryStringBuilder { public string BuildFrom<T>(T payload, string separator = ",") {...
57,034
https://github.com/liupzmin/weewoe/blob/master/internal/client/cat.go
Github Open Source
Open Source
MIT
2,021
weewoe
liupzmin
Go
Code
163
435
package client import ( "math" "strconv" "sync" ) var defCat = &Cat{ buf: make([]string, 0), } type Cat struct { buf []string sync.RWMutex } func (c *Cat) All() []string { c.RLock() defer c.RUnlock() r := make([]string, len(c.buf)) copy(r, c.buf) return r } func (c *Cat) Add(cat string) { c.Lock() def...
27,404
https://github.com/CHH/eventor/blob/master/tests/Eventor/Test/EventTest.php
Github Open Source
Open Source
MIT
2,016
eventor
CHH
PHP
Code
55
229
<?php namespace Eventor\Test; use Eventor\Event; class EventTest extends \PHPUnit_Framework_TestCase { function testNonPersistentEnable() { $event = new Event(STDIN, Event::READ, function() {}); $event->setNonPersistent(); $this->assertEquals(Event::READ, $event->events); } ...
51,580
https://github.com/HactarCE/lwjgl3-demos/blob/master/src/org/lwjgl/demo/opengl/fbo/DepthEdgeShaderDemo20.java
Github Open Source
Open Source
BSD-3-Clause
null
lwjgl3-demos
HactarCE
Java
Code
1,101
4,789
/* * Copyright LWJGL. All rights reserved. * License terms: https://www.lwjgl.org/license */ package org.lwjgl.demo.opengl.fbo; import static org.lwjgl.demo.opengl.util.DemoUtils.createShader; import static org.lwjgl.glfw.GLFW.*; import static org.lwjgl.opengl.GL11.*; import static org.lwjgl.opengl.GL13.*; import s...
2,419
https://github.com/chuangtim/easybib-cookbooks/blob/master/nginx-lb/spec/configure_spec.rb
Github Open Source
Open Source
BSD-3-Clause
2,016
easybib-cookbooks
chuangtim
Ruby
Code
132
558
require 'chefspec' require_relative 'support/matchers' describe 'nginx-lb::configure' do let(:runner) do ChefSpec::Runner.new(:step_into => ['nginx_app_config']) do |node| node.automatic['cpu']['total'] = 20 end end let(:chef_run) { runner.converge(described_recipe) } let(:node) { runner.no...
18,352
https://github.com/billyinferno/my_wealth/blob/master/lib/widgets/transparent_button.dart
Github Open Source
Open Source
MIT
null
my_wealth
billyinferno
Dart
Code
177
580
import 'package:flutter/material.dart'; import 'package:my_wealth/themes/colors.dart'; class TransparentButton extends StatelessWidget { final String? text; final IconData icon; final VoidCallback callback; final bool? active; final bool? vertical; const TransparentButton({ Key? key, this.text, required th...
37,831
https://github.com/waynestate/base-site/blob/master/styleguide/Pages/FooterContactFour.php
Github Open Source
Open Source
MIT
2,023
base-site
waynestate
PHP
Code
58
163
<?php namespace Styleguide\Pages; use Factories\Page as PageFactory; class FooterContactFour extends Page { /** * {@inheritdoc} */ public function getPageData() { return app(PageFactory::class)->create(1, true, [ 'page' => [ 'controller' => 'FooterContactFour...
26,784
https://github.com/vbarceloscs/serenata-de-amor/blob/master/jarbas/layers/elm/Reimbursement/Search/Model.elm
Github Open Source
Open Source
MIT
2,018
serenata-de-amor
vbarceloscs
null
Spoken
36
94
module Reimbursement.Search.Model exposing (Model, model) import Reimbursement.Fields as Fields exposing (Field(..), Label(..), searchableLabels) type alias Model = List Field model : Model model = let toFormField label = Field (Tuple.first label) "" in List.map toFormField ...
45,538
https://github.com/stewarthkerr/tar/blob/master/Ortho_TAR/Data Pulls/Lachman_20180705/Lachman_20180705.R
Github Open Source
Open Source
MIT
2,018
tar
stewarthkerr
R
Code
123
728
#Data pull for visiting scholar library(RCurl) library(dplyr) library(readr) library(readxl) library(tidyr) library(lubridate) source('./Code/scoring_code.R') #Create the function that pulls and cleans data from the database data_pull <- function(dbn,api_token){ dbn_api <- postForm(uri='https://redcap.duke.edu/redc...
11,404
https://github.com/wso2/product-apim-training/blob/master/Dealtime/front-end-source-code/React-Dealtime/node_modules/@material-ui/icons/TrafficOutlined.js
Github Open Source
Open Source
MIT, Apache-2.0
2,019
product-apim-training
wso2
JavaScript
Code
115
584
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/builtin/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _createSvgIcon = _interopRequireDefault(require("./utils/c...
55,554
https://github.com/jens-ox/temporal-polyfill/blob/master/lib/legacydate.ts
Github Open Source
Open Source
ISC
2,022
temporal-polyfill
jens-ox
TypeScript
Code
47
123
import { Instant } from './instant'; import JSBI from 'jsbi'; import * as ES from './ecmascript'; import { MILLION } from './ecmascript'; export function toTemporalInstant(this: Date) { // Observable access to valueOf is not correct here, but unavoidable const epochNanoseconds = JSBI.multiply(JSBI.BigInt(+this), ...
30,425
https://github.com/anbturki/lerna-monorepo-example/blob/master/packages/lerna-example-redux-lib/src/reducers/facts.js
Github Open Source
Open Source
MIT
2,022
lerna-monorepo-example
anbturki
JavaScript
Code
49
138
import { REQUEST_FACTS } from '../actions/requestFacts' import { RECEIVE_FACTS } from '../actions/receiveFacts' export default function facts(state={ list: [], isFetching: false }, action) { switch (action.type) { case REQUEST_FACTS: return { ...state, isFetching: true } case RECEIVE_FACTS: retur...
38,356
https://github.com/faouziMohamed/evote-app/blob/master/deploy.sh
Github Open Source
Open Source
MIT
2,021
evote-app
faouziMohamed
Shell
Code
56
171
#!/usr/bin/env bash echo "Copying some file to build directory..." cp package.json yarn.lock dist/ echo echo echo "Configure deploy script in 'package.json' file..." sed -i '/"prepare"/d' dist/package.json sed -i 's# node ./dist/# node ./#' dist/package.json sed -i 's#\("build"\)\(.\+\),#\1: "echo Building...",#' ...
9,993
https://github.com/kabirnagral/BlindWays-iOS/blob/master/app/BlindWays/Services/Navigation/NavigationApp.swift
Github Open Source
Open Source
Apache-2.0
2,018
BlindWays-iOS
kabirnagral
Swift
Code
398
1,159
// // NavigationApp.swift // BlindWays // // Created by Nicholas Bonatsakis on 6/8/16. // Copyright© 2016 Perkins School for the Blind // // All "Perkins Bus Stop App" Software is licensed under Apache Version 2.0. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file ex...
31,978
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/o/oracle__oraclejet/src/main/scala/typingsSlinky/oracleOraclejet/anon/SvgStyle.scala
Github Open Source
Open Source
MIT
2,021
SlinkyTyped
ScalablyTyped
Scala
Code
138
547
package typingsSlinky.oracleOraclejet.anon import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait SvgStyle extends StObject { var borderRadius: js.UndefOr[String...
10,029
https://github.com/caktus/margarita/blob/master/project/cache.sls
Github Open Source
Open Source
BSD-3-Clause
2,017
margarita
caktus
null
Spoken
45
136
{% import 'project/_vars.sls' as vars with context %} include: - memcached - ufw {% for host, ifaces in vars.app_minions.items() %} cache_allow-{{ vars.get_primary_ip(host, ifaces) }}: ufw.allow: - name: '11211' - enabled: true - from: {{ vars.get_primary_ip(host, ifaces) }} - require: - p...
8,845
https://github.com/d2s/kontena/blob/master/agent/lib/kontena/observable/registry.rb
Github Open Source
Open Source
Apache-2.0
2,022
kontena
d2s
Ruby
Code
131
386
# Actors can register their Observables to the registry. # The observable registry is responsible for crashing the Observables if the owning actor crashes. # This guarantees that Observers receive an error instead of timing out if the observed actor crashes. class Kontena::Observable::Registry include Celluloid inc...
54,957
https://github.com/isabella232/compass-crud/blob/master/src/components/insert-document-footer.jsx
Github Open Source
Open Source
Apache-2.0
2,019
compass-crud
isabella232
null
Spoken
99
284
import React from 'react'; import PropTypes from 'prop-types'; /** * BEM prefix. */ const PREFIX = 'document-footer'; /** * Message class constant. */ const MESSAGE_CLASS = `${PREFIX}-message`; /** * Map of modes to styles. */ const MODES = { progress: 'is-in-progress', error: 'is-error', modifying: 'is-...
17,949
https://github.com/Budjhete/restful.budjhete.com/blob/master/application/classes/RESTful/Exception.php
Github Open Source
Open Source
BSD-3-Clause
2,014
restful.budjhete.com
Budjhete
PHP
Code
6
16
<?php class RESTful_Exception extends Kohana_Exception {}
37,438
https://github.com/xoss/tectonic-installer/blob/master/tests/rspec/spec/gcp/basic_spec.rb
Github Open Source
Open Source
Apache-2.0
null
tectonic-installer
xoss
Ruby
Code
12
75
# frozen_string_literal: true require 'shared_examples/k8s' RSpec.describe 'gcp-basic' do include_examples('withRunningCluster', File.join(ENV['RSPEC_PATH'], '../smoke/gcp/vars/gcp.tfvars.json')) end
16,511
https://github.com/alvinwan/PyQuiz/blob/master/pyquiz/SampleQuiz.py
Github Open Source
Open Source
Apache-2.0
2,021
PyQuiz
alvinwan
Python
Code
30
334
from .util import Quiz, Term class SampleQuiz(Quiz): url = '/sample' def terms(self): return [ Term('Github', '![Github](https://assets-cdn.github.com/images/modules/open_graph/github-mark.png)'), Term('Bitbucket', '![Bitbucket](https://pbs.twimg.com/profile_images/61567530824...
9,941
https://github.com/MartinThoma/fbro/blob/master/fbro/__init__.py
Github Open Source
Open Source
MIT
null
fbro
MartinThoma
Python
Code
10
20
# First party modules from fbro._version import __version__ # noqa
14,142
https://github.com/AlexeyKashintsev/PlatypusJS/blob/master/designer/PlatypusExplorer/src/com/eas/designer/explorer/j2ee/tomcat/Realm.java
Github Open Source
Open Source
Apache-2.0
null
PlatypusJS
AlexeyKashintsev
Java
Code
160
406
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.eas.designer.explorer.j2ee.tomcat; import com.eas.designer.explorer.j2ee.dd.ElementConvertable; import org.w3c.dom.Document; import org.w3c.dom.Element; /** * A Realm element represents a "database" of use...
55,664
https://github.com/ASLeonard/RagTag/blob/master/tests/integration_tests/scripts/run_default.sh
Github Open Source
Open Source
MIT
2,022
RagTag
ASLeonard
Shell
Code
113
363
#!/usr/bin/env bash # run the ragtag pipeline with default settings # position args: ## 1. reference ## 2. query ## 3. gff ## 4. output dir # Assumes query suffix is ".fasta" # Assumes gff suffix is ".gff" Usage() { echo "Usage: $0 ref.fasta query.fasta genes.gff output_dir" } mecho() { NAME=`basename $0` ...
40,830
https://github.com/gbadner/infinispan/blob/master/core/src/test/java/org/infinispan/stats/StatsMinNodeTest.java
Github Open Source
Open Source
Apache-2.0
null
infinispan
gbadner
Java
Code
479
1,547
package org.infinispan.stats; import static org.testng.AssertJUnit.assertEquals; import java.util.stream.IntStream; import org.infinispan.configuration.cache.CacheMode; import org.infinispan.configuration.cache.ConfigurationBuilder; import org.infinispan.configuration.cache.StorageType; import org.infinispan.contain...
11,777
https://github.com/enaenen/AntyBeety2/blob/master/x/universal_demo/smali/com/google/android/gms/internal/maps/zzm.smali
Github Open Source
Open Source
MIT
2,019
AntyBeety2
enaenen
Smali
Code
1,046
6,278
.class public final Lcom/google/android/gms/internal/maps/zzm; .super Lcom/google/android/gms/internal/maps/zza; # interfaces .implements Lcom/google/android/gms/internal/maps/zzk; # direct methods .method constructor <init>(Landroid/os/IBinder;)V .locals 1 const-string v0, "com.google.android.gms.maps.mode...
32,098
https://github.com/EgoSay/BigdataLearning/blob/master/kafka/advanced-kafka/src/main/java/producer/ProducerInterceptorTest.java
Github Open Source
Open Source
Apache-2.0
null
BigdataLearning
EgoSay
Java
Code
22
62
package producer; /** * 验证 生产者拦截器 * @author Ego * @version 1.0 * @since 2019/11/26 12:35 */ public class ProducerInterceptorTest { }
48,587
https://github.com/ItsoDimitrov/Databases-Advanced-Entity-Framework-June-2018/blob/master/Exams/Exam Preparation 2 - Stations/Stations.App/StationsProfile.cs
Github Open Source
Open Source
MIT
2,018
Databases-Advanced-Entity-Framework-June-2018
ItsoDimitrov
C#
Code
93
306
using AutoMapper; using Stations.DataProcessor.Dto.Import; using Stations.Models; namespace Stations.App { public class StationsProfile : Profile { // Configure your AutoMapper here if you wish to use it. If not, DO NOT DELETE THIS CLASS public StationsProfile() { CreateMap...
5,560
https://github.com/ProVisionBG/administration/blob/master/resources/views/index.blade.php
Github Open Source
Open Source
Apache-2.0
2,021
administration
ProVisionBG
Blade
Code
10
61
@extends('administration::layouts.master') @section('content') <div id="dashboard-container" class="row"> {!! \ProVision\Administration\Dashboard::render() !!} </div> @endsection
13,287
https://github.com/xxdoc/SimplyVBUnit/blob/master/Source/Framework/TestFixtureBuilder.cls
Github Open Source
Open Source
MIT
2,019
SimplyVBUnit
xxdoc
null
Spoken
387
831
VERSION 1.0 CLASS BEGIN MultiUse = -1 'True Persistable = 0 'NotPersistable DataBindingBehavior = 0 'vbNone DataSourceBehavior = 0 'vbNone MTSTransactionMode = 0 'NotAnMTSObject END Attribute VB_Name = "TestFixtureBuilder" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = True Attribute VB_...
4,341
https://github.com/bianapis/sd-card-case-v2.0/blob/master/src/main/java/org/bian/dto/BQConsolidationRetrieveOutputModelConsolidationInstanceReport.java
Github Open Source
Open Source
Apache-2.0
null
sd-card-case-v2.0
bianapis
Java
Code
198
711
package org.bian.dto; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import javax.validation.Valid; /** * BQConsolidationRetrieveOutputModelConsolidationInstanceRepor...
1,940
https://github.com/reikidd/Arduino_projects/blob/master/stelele_stintei_2014/roata/roata.ino
Github Open Source
Open Source
Apache-2.0
null
Arduino_projects
reikidd
null
Spoken
11
45
void setup(){ pinMode(5, OUTPUT); Serial.begin(9600); } void loop(){ analogWrite(5, 30); }
37,456
https://github.com/posener/tmplt/blob/master/tmpl_test.go
Github Open Source
Open Source
Apache-2.0
2,020
tmplt
posener
Go
Code
65
257
package tmplt import ( "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) var ( textText = Text("{{.V}}") testHTML = HTML("{{.V}}") ) type v struct{ V int } func Test(t *testing.T) { t.Parallel() got, err := textText.Execute(v{42}) require.NoError(t, err) assert.Equal(...
48,131
https://github.com/Danpatpang/javacafe/blob/master/week4/example2/src/iterator/IteratorExample.java
Github Open Source
Open Source
MIT
null
javacafe
Danpatpang
Java
Code
78
227
package iterator; import java.util.*; public class IteratorExample { public static void main(String[] args) { // List<Integer> list = new ArrayList<Integer>(); Set<Integer> list = new HashSet<Integer>(); for (int i = 0; i < 10; i++) { list.add(i); } for (int i = 2; i <= 5; i++) { list.add(i); } ...
8,661
https://github.com/alexnorton/short-music/blob/master/src/helpers/areFilesEqual.ts
Github Open Source
Open Source
MIT
null
short-music
alexnorton
TypeScript
Code
19
60
import File from "../model/File"; const areFilesEqual = (a: File, b: File): boolean => `${a.directory}/${a.filename}` === `${b.directory}/${b.filename}`; export default areFilesEqual;
2,780
https://github.com/omidkrad/DefinitelyTyped/blob/master/auth0.lock/auth0.lock-tests.ts
Github Open Source
Open Source
MIT
2,022
DefinitelyTyped
omidkrad
TypeScript
Code
37
152
/// <reference path="../auth0/auth0.d.ts" /> /// <reference path="auth0.lock.d.ts" /> var lock: Auth0LockStatic = new Auth0Lock("dsa7d77dsa7d7", "mine.auth0.com"); lock.showSignin({ connections: ["facebook", "google-oauth2", "twitter", "Username-Password-Authentication"], icon: "https://contoso.com/lo...
54,277
https://github.com/bryful/js_ShapeExpression/blob/master/js_ShapeExpression/ScriptCode/エクスプレッション基本セット.jsx
Github Open Source
Open Source
MIT
2,022
js_ShapeExpression
bryful
null
Spoken
760
2,979
 (function(me){ //UIの配列 var cntrlTbl = []; //ターゲット var targetPath = []; var basePath = []; #include "json2.jsxinc" #include "bryScriptLib.jsxinc" //---------------------------------- var scriptName = File.decode($.fileName.getName().changeExt("")); var aeclipPath = File.decode($.fileName.getParent()+"/aec...
634
https://github.com/nwthomas/burning-heart/blob/master/client/__tests__/Login.test.js
Github Open Source
Open Source
MIT
null
burning-heart
nwthomas
JavaScript
Code
42
106
import React from "react"; import "react-native"; import { Login } from "../Components/Presentational/Login"; import renderer from "react-test-renderer"; import { rendererWithRouter } from "../testHelpers/rendererWithRouter"; describe("<Login />", () => { it("should render successfully without crashing", () => { ...
9,261
https://github.com/MuliaHartawan/final-project/blob/master/routes/web.php
Github Open Source
Open Source
MIT
2,020
final-project
MuliaHartawan
PHP
Code
125
574
<?php use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the Route...
20,968
https://github.com/jparkSF/it-gives-you-wings-too/blob/master/docs/assets/js/userSessionUtil.js
Github Open Source
Open Source
MIT
2,018
it-gives-you-wings-too
jparkSF
JavaScript
Code
71
338
function onSignIn(googleUser){ const profile = googleUser.getBasicProfile(); // console.log(profile) $(".g-signin2").css("display","none"); $(".data").css("display", "flex"); $("#pic").attr("src", profile.getImageUrl()); $("#name").text(`${profile.getName()}`); // $(".container").css("display", "block")...
35,589
https://github.com/punsal/HexFall-Clone/blob/master/Assets/Scripts/Utility/Extension/MeshExtension.cs
Github Open Source
Open Source
MIT
null
HexFall-Clone
punsal
C#
Code
54
169
using UnityEngine; namespace Utility.Extension { public static class MeshExtension { // ReSharper disable once ReturnTypeCanBeEnumerable.Global public static Vector3[] FindWorldLocations(this Mesh mesh, Transform transform) { var localToWorld = transform.localToWorldMatrix;...
50,575
https://github.com/MykolaBova/Hib/blob/master/orman/orman-master/orman-master/src/org/orman/sql/ISubclause.java
Github Open Source
Open Source
Apache-2.0
2,014
Hib
MykolaBova
Java
Code
13
35
package org.orman.sql; public interface ISubclause { public String getClauseFormat(); public String toString(); }
34,445
https://github.com/radvc/manageiq/blob/master/app/models/automate_workspace.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0, BSD-3-Clause, BSD-2-Clause
2,017
manageiq
radvc
Ruby
Code
45
134
class AutomateWorkspace < ApplicationRecord include UuidMixin belongs_to :user belongs_to :tenant validates :tenant, :presence => true validates :user, :presence => true def merge_output!(hash) if hash['objects'].nil? || hash['state_vars'].nil? raise ArgumentError, "No objects or state_vars speci...
52,558
https://github.com/AndreasRuge/FOE-Tools.github.io/blob/master/test/unit/localVue.js
Github Open Source
Open Source
MIT
null
FOE-Tools.github.io
AndreasRuge
JavaScript
Code
748
2,801
import { config, createLocalVue, RouterLinkStub } from "@vue/test-utils"; import clone from "lodash.clonedeep"; import merge from "lodash.merge"; import pathify, { make } from "vuex-pathify"; import Vuex from "vuex"; import VueClipboards from "vue-clipboards"; import VueI18n from "vue-i18n"; import { useModalProgramma...
31,637
https://github.com/Odania-IT/odania-timeline/blob/master/config/routes.rb
Github Open Source
Open Source
MIT
null
odania-timeline
Odania-IT
Ruby
Code
42
149
Rails.application.routes.draw do namespace :protected do namespace :api, defaults: {format: :json} do namespace :odania_timeline do resources :timelines, except: [:new, :edit] end end end scope '/:locale', constraints: {locale: /[a-z][a-z]/} do namespace :odania_timeline do get 'timelines' => 'ti...
50,201
https://github.com/dvelum/dvelum-core/blob/master/tests/unit/dvelum/Dvelum/Tree/ArrayTreeTest.php
Github Open Source
Open Source
MIT
2,020
dvelum-core
dvelum
PHP
Code
713
2,735
<?php /** * DVelum project https://github.com/dvelum/dvelum * Copyright (C) 2011-2018 Kirill Yegorov * * 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 3 of the Licens...
32,670
https://github.com/ekiuled/roguelike-best-ever/blob/master/Source/Map.h
Github Open Source
Open Source
Apache-2.0
2,019
roguelike-best-ever
ekiuled
C++
Code
51
170
#pragma once #include <vector> #include "Unit.h" class Map { public: Map() : map(std::vector<std::vector<Unit> >(width, std::vector<Unit> (height))) { std::srand(unsigned(std::time(0))); }; std::vector<std::vector<Unit> > const& getMap() const { return map; } std::vector<std::vecto...
24,099
https://github.com/BenoitZugmeyer/NewsBlur/blob/master/apps/feed_import/tests.py
Github Open Source
Open Source
MIT
2,019
NewsBlur
BenoitZugmeyer
Python
Code
231
869
import os from django.test.client import Client from django.test import TestCase from django.contrib.auth.models import User from django.core.urlresolvers import reverse from apps.reader.models import UserSubscription, UserSubscriptionFolders from apps.feed_import.models import GoogleReaderImporter from utils import js...
54,764
https://github.com/jcdoll/PrintedThings/blob/master/MoldGenerator/tools/circular-two-part-mold-generator.scad
Github Open Source
Open Source
Apache-2.0
null
PrintedThings
jcdoll
null
Spoken
399
1,285
/************************************************* Parametric circular two-part mold generator Author: Jason Webb Website: http://jason-webb.info *************************************************/ // Model parameters model_filename = "inputs/sample-input.stl"; model_rotate = [0,90,90]; model_translate = [0,-25,0]; m...
194
https://github.com/se-graduation-thesis/hoteloca/blob/master/src/views/manager/account-manager/AdminManager.js
Github Open Source
Open Source
MIT
null
hoteloca
se-graduation-thesis
JavaScript
Code
440
1,519
import * as React from 'react'; import Paper from '@mui/material/Paper'; import Table from '@mui/material/Table'; import TableBody from '@mui/material/TableBody'; import TableCell from '@mui/material/TableCell'; import TableContainer from '@mui/material/TableContainer'; import TableHead from '@mui/material/TableHead'; ...
45,547
https://github.com/PillowPillow/DefinitelyTyped/blob/master/jasmine-expect/jasmine-expect-test.ts
Github Open Source
Open Source
MIT
2,015
DefinitelyTyped
PillowPillow
TypeScript
Code
5,199
18,209
/// <reference path="../jasmine/jasmine.d.ts" /> /// <reference path="jasmine-expect.d.ts" /> function getArgumentsObject(): IArguments { return (function(arg1: number, arg2: number, arg3: number): IArguments { return arguments; }(1, 2, 3)); } function getArrayLikeObject(): {} { return { 0: 1, 1: 2,...
4,543
https://github.com/GiancarlosIO/Awesome-notes/blob/master/app/javascript/tests/components/notes/search-bar_test.js
Github Open Source
Open Source
MIT
2,017
Awesome-notes
GiancarlosIO
JavaScript
Code
89
239
import React from 'react'; import sinon from 'sinon'; import { expect } from 'chai'; import { mount } from 'enzyme'; import { SearchBar } from '../../../app/components/notes/search-bar'; function setup(searchText=null) { const props = { searchText, dispatch: sinon.spy() }; const enzymeWrapper = mount(<Se...
50,454
https://github.com/ooooo-youwillsee/leetcode/blob/master/0000-0500/0242-Valid-Anagram/cpp_0242/CMakeLists.txt
Github Open Source
Open Source
MIT
2,022
leetcode
ooooo-youwillsee
CMake
Code
9
60
cmake_minimum_required(VERSION 3.14) project(cpp_0242) set(CMAKE_CXX_STANDARD 11) add_executable(cpp_0242 main.cpp Solution1.h Solution2.h)
3,783
https://github.com/deepzz0/go-van/blob/master/pkg/confx/options.go
Github Open Source
Open Source
MIT
2,022
go-van
deepzz0
Go
Code
22
40
// Package confx provides ... package confx // Option confx option type Option func(opts *Options) // Options confx options type Options struct{}
11,728
https://github.com/EddieChoCho/spring-amqp/blob/master/spring-rabbit/src/test/java/org/springframework/amqp/rabbit/annotation/AsyncListenerTests.java
Github Open Source
Open Source
Apache-2.0
2,022
spring-amqp
EddieChoCho
Java
Code
803
3,676
/* * Copyright 2018-2019 the original author or 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
23,743
https://github.com/loisao/ionic-pullup-content/blob/master/src/ion-pullup.js
Github Open Source
Open Source
MIT
null
ionic-pullup-content
loisao
JavaScript
Code
1,017
3,538
/* ionic-pullup v1.1.0 Copyright 2016 Ariel Faur (https://github.com/arielfaur) 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 ...
5,407
https://github.com/ngawung/starling/blob/master/lib/starling/filters/IFilterHelper.as
Github Open Source
Open Source
BSD-2-Clause
2,022
starling
ngawung
null
Spoken
31
141
package starling.filters { import openfl.geom.Rectangle; import starling.display.DisplayObject; import starling.textures.Texture; /** * @externs */ public interface IFilterHelper { function get target():starling.display.DisplayObject; function get targetBounds():openfl.geom.Rectangle; function getTextu...
47,361
https://github.com/Mykrobe-tools/mccortex/blob/master/results/kmer_agnostic/Makefile
Github Open Source
Open Source
MIT
null
mccortex
Mykrobe-tools
Makefile
Code
222
1,514
SHELL:=/bin/bash -euo pipefail # Makefile # Isaac Turner # 2014-10-01 # Using 1Mb of chr22 and error free reads to measure effect of kmer-size # Expand these for all k values DIRS=plots readlen80 readlen100 readlen125 LINK_100_CSVS=readlen100/k15/link_cleaning/link_cleaning.csv \ readlen100/k21/link_clea...
32,295
https://github.com/DanielMartensson/OpenSourceLogger-Web/blob/master/src/main/java/se/danielmartensson/views/CameraView.java
Github Open Source
Open Source
MIT
2,021
OpenSourceLogger-Web
DanielMartensson
Java
Code
693
2,359
package se.danielmartensson.views; import java.awt.Dimension; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.concurrent.atomic.AtomicBoolean; import com.github.sarxos.webcam.Webcam; import com.vaadin.flow.component.UI; import com.vaadin.flow.component.applayout.AppLayout;...
12,673
https://github.com/ReneoIO/spm.Buildroot/blob/master/src.3rdParty/buildroot-2016.11.2/package/python-dateutil/python-dateutil.mk
Github Open Source
Open Source
BSD-3-Clause
null
spm.Buildroot
ReneoIO
Makefile
Code
26
189
################################################################################ # # python-dateutil # ################################################################################ PYTHON_DATEUTIL_VERSION = 2.5.3 PYTHON_DATEUTIL_SOURCE = python-dateutil-$(PYTHON_DATEUTIL_VERSION).tar.gz PYTHON_DATEUTIL_SITE = https...
1,203
https://github.com/yihongmingfeng/Fruitday/blob/master/QQWebViewKit.h
Github Open Source
Open Source
MIT
null
Fruitday
yihongmingfeng
C
Code
190
974
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "NSObject.h" #import "QQOpenUploadDelegate.h" #import "TCWebViewKitDelegate.h" @class NSString, NSTimer, TCWebViewKit; @interface QQWebViewKit : NSObject <TCWebViewKitDel...
9,547
https://github.com/STT-Ocean/openBook/blob/master/openBook/openBook/ViewController.h
Github Open Source
Open Source
MIT
2,017
openBook
STT-Ocean
C
Code
28
82
// // ViewController.h // openBook // // Created by Alpha on 2017/4/27. // Copyright © 2017年 STT. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UITableViewController @end
44,563
https://github.com/FravashY/framework/blob/master/bin/setup.js
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-free-unknown
2,019
framework
FravashY
JavaScript
Code
172
548
'use strict'; /* eslint no-process-exit:off */ /** * Created by kras on 22.08.16. */ const worker = require('../lib/deploy'); const config = require('../config'); const di = require('core/di'); const path = require('path'); const errorSetup = require('core/error-setup'); const alias = require('core/scope-alias'); con...
50,644
https://github.com/google/skia/blob/master/src/effects/imagefilters/BUILD.bazel
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,023
skia
google
Starlark
Code
58
399
load("//bazel:skia_rules.bzl", "exports_files_legacy", "skia_filegroup", "split_srcs_and_hdrs") licenses(["notice"]) exports_files_legacy() IMAGEFILTERS_FILES = [ "SkBlendImageFilter.cpp", "SkBlurImageFilter.cpp", "SkColorFilterImageFilter.cpp", "SkComposeImageFilter.cpp", "SkCropImageFilter.cpp"...
11,158
https://github.com/andystanton/glfw-skeleton/blob/master/src/util/shaderhelper.cpp
Github Open Source
Open Source
MIT
2,022
glfw-skeleton
andystanton
C++
Code
185
786
#include "util/shaderhelper.hpp" #include <vector> #include <fstream> #include <stdexcept> std::string shaderhelper::loadShader(const std::string & shaderFilename) { std::string appPath = pathhelper::getApplicationPath(); std::string shaderPath = appPath + "/" + shaderFilename; std::string shaderCode; ...
12,234
https://github.com/UrgBenri/BaudrateChangerHelperPlugin/blob/master/QUrgLib/src/RangeSensor.h
Github Open Source
Open Source
BSD-2-Clause
null
BaudrateChangerHelperPlugin
UrgBenri
C
Code
1,078
2,609
/* This file is part of the UrgBenri application. Copyright (c) 2016 Mehrez Kristou. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyrig...
50,442
https://github.com/andyadc/Lock/blob/master/lock-zookeeper/src/main/java/org/menagerie/ZkCommandExecutor.java
Github Open Source
Open Source
MIT
null
Lock
andyadc
Java
Code
374
1,106
package org.menagerie; import org.apache.zookeeper.KeeperException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.concurrent.TimeUnit; /** * @author Scott Fines * Date: Apr 25, 2011 * Time: 1:55:52 PM */ public class ZkCommandExecutor { private static final Logger logger = LoggerF...
42,230
https://github.com/firefalcom/haxe-babylon-samples/blob/master/samples/SimultaneousLights/SimultaneousLights.hx
Github Open Source
Open Source
Apache-2.0
2,018
haxe-babylon-samples
firefalcom
Haxe
Code
364
1,359
class SimultaneousLights extends Launcher { static function main() { new SimultaneousLights(); } private override function createScene() { var scene = new BABYLON.Scene(engine); var camera = new BABYLON.ArcRotateCamera("Camera", 0, 0, 10, BABYLON.Vector3.Zero(), scene); var ...
47,792
https://github.com/globocom/cloudstack/blob/master/server/src/com/cloud/network/as/AutoScaleStatsCollectorFactory.java
Github Open Source
Open Source
Apache-2.0
2,021
cloudstack
globocom
Java
Code
10
38
package com.cloud.network.as; public interface AutoScaleStatsCollectorFactory { public AutoScaleStatsCollector getStatsCollector(); }
44,050
https://github.com/streusselhirni/hfict-aad/blob/master/Unterricht/W2/Ex1_Container/Array.cpp
Github Open Source
Open Source
MIT
null
hfict-aad
streusselhirni
C++
Code
290
705
// // Created by Nicolas Haenni on 25.08.18. // #include <iostream> #include "Array.h" Array::Array() { values = new int[10]; maxSize = 10; currentSize = 0; } void Array::checkSize() { bool check = false; if (currentSize > maxSize) { maxSize *= 2; check = true; } else if (curr...
30,083
https://github.com/impedimentToProgress/UCI-BlueChip/blob/master/snapgear_linux/lib/libgmp/mpz/realloc.c
Github Open Source
Open Source
MIT
null
UCI-BlueChip
impedimentToProgress
C
Code
249
520
/* _mpz_realloc -- make the mpz_t have NEW_SIZE digits allocated. Copyright (C) 1991, 1993, 1994, 1995 Free Software Foundation, Inc. This file is part of the GNU MP Library. The GNU MP Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as pub...
8,123
https://github.com/ScalablyTyped/Distribution/blob/master/a/auth0/src/main/scala/typings/auth0/mod/ManagementClientOptions.scala
Github Open Source
Open Source
MIT
2,023
Distribution
ScalablyTyped
Scala
Code
239
839
package typings.auth0.mod import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} trait ManagementClientOptions extends StObject { var audience: js.UndefOr[String] = js.undefined var clientId: js.UndefO...
30,977
https://github.com/remore/gemstat/blob/master/lib/gemstat/cache/gemfiles/r/rabbirack:2.0.0/Gemfile
Github Open Source
Open Source
MIT
2,015
gemstat
remore
Ruby
Code
12
36
gem 'rabbit' gem 'sinatra' gem 'haml' gem 'locale' gem 'rake' gem 'bundler'
40,619
https://github.com/BCHAOUL/economic-litterature/blob/master/utilityfuncs/textanalysis.py
Github Open Source
Open Source
MIT
2,020
economic-litterature
BCHAOUL
Python
Code
163
531
import requests from sys import getsizeof from bs4 import BeautifulSoup import numpy as np import nltk from nltk import sent_tokenize from nltk.corpus import stopwords from gensim.models import word2vec from sklearn.manifold import TSNE from sklearn.decompose import PCA import pandas as pd from nltk.tokenize import ...
47,223
https://github.com/wiltonjr4/Python_Language/blob/master/Estudos/Python_Exercicios_Curso_Em_Video/ex107-112.py
Github Open Source
Open Source
MIT
null
Python_Language
wiltonjr4
Python
Code
14
48
from utilidadescev import dados, moeda p = dados.leiaDinheiro('Digite o preço: R$') moeda.resumo(p, 80, 35)
13,160
https://github.com/Div-Man/images/blob/master/routes/web.php
Github Open Source
Open Source
MIT
null
images
Div-Man
PHP
Code
125
742
<?php //use Illuminate\Support\Facades\Request; use Illuminate\Http\Request; use App\Category; use App\Services\Image; use Illuminate\Support\Facades\Auth; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------...
33,504
https://github.com/AntyMew/RogueEssence/blob/master/RogueEssence/Content/Animation/Backgrounds/LayeredBG.cs
Github Open Source
Open Source
MIT
2,021
RogueEssence
AntyMew
C#
Code
125
383
using System; using RogueElements; using RogueEssence.Content; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System.Collections.Generic; namespace RogueEssence.Dungeon { [Serializable] public class BGLayer { [Dev.SubGroup] public MapBG BG; } [Seriali...
52,375
https://github.com/Blaisorblade/dot-iris/blob/master/theories/iris_extra/swap_later_impl.v
Github Open Source
Open Source
BSD-3-Clause
2,023
dot-iris
Blaisorblade
null
Spoken
1,723
4,723
(** * Show proof rule [Impl-▷]. Swap later [▷] with Iris implication [→] and wand [-∗]. *) From iris.proofmode Require Import proofmode. From iris.base_logic Require Import lib.iprop. From iris.algebra Require Import agree excl gmap auth. From D Require Import cmra_prop_lift. Set Suggest Proof Using. Set Default Proo...
7,923
https://github.com/jecki/gwtphotoalbum/blob/master/GWTPhotoAlbum/src/de/eckhartarnold/client/StartSlideshowHandler.java
Github Open Source
Open Source
Apache-2.0
2,015
gwtphotoalbum
jecki
Java
Code
147
257
/* * Copyright 2008 Eckhart Arnold (eckhart_arnold@hotmail.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.apache.org/licenses/LICENSE-2.0 * * Unless required...
49,923
https://github.com/xp-framework/xp-framework/blob/master/core/src/test/php/net/xp_framework/unittest/core/Profiling.class.php
Github Open Source
Open Source
BSD-3-Clause
2,016
xp-framework
xp-framework
PHP
Code
55
165
<?php namespace net\xp_framework\unittest\core; /** * Profiling enumeration */ class Profiling extends \lang\Enum { public static $INSTANCE, $EXTENSION; public static $fixture = NULL; static function __static() { self::$INSTANCE= new self(0, 'INSTANCE'); self::$EXTENSION= new self(1, ...
16,412
https://github.com/bo3bdo/Bootstrap-Admin-Template/blob/master/src/assets/js/core/metisMenu.js
Github Open Source
Open Source
MIT
2,016
Bootstrap-Admin-Template
bo3bdo
JavaScript
Code
190
826
;(function($, window, document, undefined) { var pluginName = "metisMenu", Modernizr = typeof Modernizr !== "undefined" ? Modernizr : false, isTouchDevice = Modernizr ? Modernizr.touch : !!('ontouchstart' in window || 'onmsgesturechange' in window), buttonPressedEvent = (isTouch...
36,891
https://github.com/cuongquay/smartrip-management-system/blob/master/smart-contract-ewallet/src/screens/login/passcode-setup.js
Github Open Source
Open Source
CC-BY-4.0
null
smartrip-management-system
cuongquay
JavaScript
Code
655
2,034
import React, { Component } from 'react'; import { StyleSheet, View, ScrollView } from 'react-native'; import { setLoadingView, I18n, ToastManager } from 'common'; import { connect } from 'react-redux'; import { Colors, MaskedCode, VirtualKeyboard, VirtualKeyboardTypes, Text } from 'common/ui'; import { apiP...
9,963
https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/services/cloudcallcenter/pick_outbound_numbers_by_tags.go
Github Open Source
Open Source
Apache-2.0
2,023
alibaba-cloud-sdk-go
aliyun
Go
Code
425
1,513
package cloudcallcenter //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...
46,341
https://github.com/toarikaplan/jtstevensogDexDrip/blob/master/app/src/main/java/com/eveningoutpost/dexdrip/Home.java
Github Open Source
Open Source
MIT
null
jtstevensogDexDrip
toarikaplan
Java
Code
830
3,661
package com.eveningoutpost.dexdrip; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.SharedPreferences; import android.graphics.Color; import android.graphics.Paint; import a...
40,165
https://github.com/envoyproxy/envoy/blob/master/test/common/http/header_map_impl_speed_test.cc
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,023
envoy
envoyproxy
C++
Code
1,141
3,698
#include "source/common/http/header_map_impl.h" #include "source/common/http/headers.h" #include "benchmark/benchmark.h" namespace Envoy { namespace Http { /** * Add several dummy headers to a HeaderMap. * @param num_headers the number of dummy headers to add. */ static void addDummyHeaders(HeaderMap& headers, si...
46,312
https://github.com/akoloth/kibana/blob/master/src/dev/ci_setup/get_percy_env.js
Github Open Source
Open Source
Apache-2.0
2,020
kibana
akoloth
JavaScript
Code
161
346
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
34,790
https://github.com/widget-pc/scaffollar-html/blob/master/src/less/vendors/functions.less
Github Open Source
Open Source
MIT
null
scaffollar-html
widget-pc
Less
Code
595
1,501
/* * This function create the attributes class acces with the bootstrap media grid * * @param select string class selector * @param type string attribute name * @param value string attribute value */ .media-attr(@select, @type, @value){ /* Extra small devices (phones, less than 768px) */ /* No media query since...
52,804
https://github.com/globus/globus-toolkit/blob/master/gridftp/client/source/globus_ftp_client_restart_plugin.h
Github Open Source
Open Source
Apache-2.0
2,019
globus-toolkit
globus
C
Code
376
888
/* * Copyright 1999-2006 University of Chicago * * 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...
24,195
https://github.com/bloep/cookie_consent/blob/master/boot.php
Github Open Source
Open Source
MIT
2,018
cookie_consent
bloep
PHP
Code
22
161
<?php $this->setProperty('author', 'Friends Of REDAXO'); if (rex::isBackend() && is_object(rex::getUser())) { rex_perm::register('cookie_consent[]'); } if (rex::isBackend() && rex_be_controller::getCurrentPage() == 'cookie_consent/configuration') { rex_view::addCssFile($this->getAssetsUrl('css/cookie_consent_b...
19,829
https://github.com/ptrbortolotti/run_OpenFAST/blob/master/code/submit_runs_BAR.sh
Github Open Source
Open Source
Apache-2.0
2,020
run_OpenFAST
ptrbortolotti
Shell
Code
86
327
#!/bin/bash #SBATCH --account=bar #SBATCH --time=2-00:00:00 #SBATCH --job-name=bar3 #SBATCH --nodes=7 #SBATCH --mail-user pbortolo@nrel.gov #SBATCH --mail-type BEGIN,END,FAIL ####SBATCH --partition=debug #######SBATCH --qos=high ######SBATCH --mem=1000GB # RAM in MB #SBATCH --output=job_log.%j.out # %j will be re...
46,488
https://github.com/KevinSjoberg/homebrew/blob/master/Library/Formula/prooftree.rb
Github Open Source
Open Source
BSD-2-Clause
2,022
homebrew
KevinSjoberg
Ruby
Code
46
264
require 'formula' class Prooftree < Formula homepage 'http://askra.de/software/prooftree' url 'http://askra.de/software/prooftree/releases/prooftree-0.10.tar.gz' sha1 'ac9ba265062382109673320635d822f92e6a126c' bottle do cellar :any sha1 "686cb57124632efd5dcc72b9b3821c64c105ffd4" => :mavericks sha1...
48,696
https://github.com/adobe/reactor-extension-core/blob/master/src/view/conditions/__tests__/valueComparison.test.jsx
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,023
reactor-extension-core
adobe
JavaScript
Code
1,177
4,170
/*************************************************************************************** * Copyright 2019 Adobe. All rights reserved. * This file is licensed to you 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 th...
49,398
https://github.com/ovotech/scala-steward/blob/master/modules/core/src/test/scala/org/scalasteward/core/io/MockFileAlg.scala
Github Open Source
Open Source
Apache-2.0
2,022
scala-steward
ovotech
Scala
Code
212
848
package org.scalasteward.core.io import better.files.File import cats.data.StateT import cats.effect.IO import fs2.Stream import org.http4s.Uri import org.scalasteward.core.mock.{applyPure, MockEff, MockState} class MockFileAlg extends FileAlg[MockEff] { override def deleteForce(file: File): MockEff[Unit] = Sta...
12,892
https://github.com/akrherz/DEV/blob/master/asos/hour_freq_first_temp.py
Github Open Source
Open Source
Apache-2.0, MIT
2,023
DEV
akrherz
Python
Code
155
551
"""What was the hour of the first fall temp min""" from datetime import timedelta from pandas.io.sql import read_sql from pyiem.plot.use_agg import plt from pyiem.util import get_dbconn def main(): """Go""" pgconn = get_dbconn("asos") df = read_sql( "select extract(year from valid)::int as year, ...
13,862
https://github.com/aybehrouz/argon/blob/master/src/test/java/SemanticFileBasedTest.java
Github Open Source
Open Source
Apache-2.0
2,022
argon
aybehrouz
Java
Code
628
2,662
/* * Copyright 2021 aybehrouz <behrouz_ayati@yahoo.com>. This file is part * of the Argon programming language repository. * * 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 * * h...
42,721
https://github.com/SupCahuete/nuitdeinfo2018/blob/master/ada/Console/Templates/Controllers/Auth/Register.php
Github Open Source
Open Source
MIT
null
nuitdeinfo2018
SupCahuete
PHP
Code
234
764
<?php namespace TAG_NAMESPACE_NAME; use Illuminate\Foundation\Auth\RegistersUsers; use Illuminate\Support\Facades\Validator; use Illuminate\Support\Facades\Auth; /*TAG_USE*/ class TAG_CLASS_NAME extends Controller { /* |-------------------------------------------------------------------------- | Register Contro...
11,326
https://github.com/ryanmoyo/universal-issue-helper/blob/master/src/router.ts
Github Open Source
Open Source
MIT
null
universal-issue-helper
ryanmoyo
TypeScript
Code
59
178
import { createRouter, createWebHashHistory } from "vue-router"; import BugReport from "./components/BugReport.vue"; import FeatureRequest from "./components/FeatureRequest.vue"; const routes: any[] = [ { path: "/", redirect: "/bug-report" }, { path: "/bugReport", component: BugReport }, { path: "/featureRequest...
34,063