content stringlengths 4 1.04M | lang stringclasses 358
values | score int64 0 5 | repo_name stringlengths 5 114 | repo_path stringlengths 4 229 | repo_licenses listlengths 1 8 |
|---|---|---|---|---|---|
#!/usr/bin/env bash
# Copyright 2021 The Kubernetes 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 applica... | Shell | 5 | 767829413/kubernetes | hack/update-mocks.sh | [
"Apache-2.0"
] |
=== Description ===
Some commands for Sublime Text 3 (NOT 2!) to list shortcut keys / preferences
etc in the QuickPanel and navigate to edit location on selection.
=== 2000 Words ===
{{http://ndudfield.com/zencoding/old/editprefs-settings.gif}}
{{http://ndudfield.com/zencoding/old/editprefs.gif}}
=== How to insert... | Creole | 3 | sublimator/EditPreferences | README.creole | [
"MIT"
] |
/*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.incremental.storage
import org.jetbrains.kotlin.incremental.dumpCollection
impor... | Kotlin | 4 | Mu-L/kotlin | build-common/src/org/jetbrains/kotlin/incremental/storage/SourceToJsOutputMap.kt | [
"ECL-2.0",
"Apache-2.0"
] |
#!/bin/csh
#This script can be used to generate a web page to compare histograms from
#two input root files produced using the EDAnalyzers in RecoEgamma/Examples,
#by running one of:
#
#
#
# "Validation/RecoEgamma/test/PhotonValidator_cfg.py
#
# The default list of histograms (configurable) is based on version V... | Tcsh | 4 | ckamtsikis/cmssw | Validation/RecoEgamma/test/pfValidation.csh | [
"Apache-2.0"
] |
******************************************
The Power of two
Copyright (C) 2002 Roland Illig
1illig%40informatik%2Euni%2Dhamburg%2Ede
This program is free software; you can
redistribute it and/or modify it under the
terms of the GNU General Public License as
published by the Free Software Foundation;
either version 2 ... | Brainfuck | 0 | RubenNL/brainheck | examples/math/power.bf | [
"Apache-2.0"
] |
(import
itertools [repeat cycle islice]
pytest)
;;;; some simple helpers
(defn assert-true [x]
(assert (= True x)))
(defn assert-false [x]
(assert (= False x)))
(defn assert-equal [x y]
(assert (= x y)))
(defn assert-none [x]
(assert (is x None)))
(defn assert-requires-num [f]
(for [x ["foo" [] None... | Hy | 4 | lafrenierejm/hy | tests/native_tests/core.hy | [
"MIT"
] |
<!-- Image card -->
<style>
.demo-card-image.mdl-card {
width: 256px;
height: 256px;
background: url('../assets/demos/image_card.jpg') center / cover;
}
.demo-card-image > .mdl-card__actions {
height: 52px;
padding: 16px;
background: rgba(0, 0, 0, 0.2);
}
.demo-card-image__filename {
color: #fff;
font-s... | HTML | 3 | greatwqs/staffjoy | frontend/third_party/node/material_design_lite/card/snippets/image.html | [
"MIT"
] |
(function() {
var check = function () {
}
var checkNot = function () {
}
MUnit.test(a);
})(); | TypeScript | 1 | nilamjadhav/TypeScript | tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration2.ts | [
"Apache-2.0"
] |
{-
Alertmanager API
API of the Prometheus Alertmanager (https://github.com/prometheus/alertmanager)
OpenAPI spec version: 0.0.1
NOTE: This file is auto generated by the openapi-generator.
https://github.com/openapitools/openapi-generator.git
Do not edit this file manually.
-}
module Data.Alertmana... | Elm | 4 | jtlisi/alertmanager | ui/app/src/Data/AlertmanagerStatus.elm | [
"ECL-2.0",
"Apache-2.0"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_setSwVolume
Author: NKey
Sets the volume for the SW radio
Arguments:
0: Radio <STRING>
1: Volume Range (0,10) <NUMBER>
Return Value:
None
Example:
[call TFAR_fnc_activeSWRadio, 10] call TFAR_fnc_setSwVolume;
Public: Yes
*/
params [... | SQF | 4 | MrDj200/task-force-arma-3-radio | addons/core/functions/fnc_setSwVolume.sqf | [
"RSA-MD"
] |
\require "assert"
\require "b:.."
#(assert (not (defined? 'b:test))) | LilyPond | 2 | HolgerPeters/lyp | spec/package_setups/testing/b/test/b_fail_test.ly | [
"MIT"
] |
terraform {
required_version = "~> 1.0.0"
required_providers {
google = {
source = "hashicorp/google"
}
google-beta = {
source = "hashicorp/google-beta"
}
helm = {
source = "hashicorp/helm"
}
kubernetes = {
source = "hashicorp/kubernetes"
}
local = {
... | HCL | 3 | PragmaTwice/diem | terraform/validator/gcp/versions.tf | [
"Apache-2.0"
] |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... | Haxe | 3 | Jimexist/thrift | lib/haxe/src/org/apache/thrift/Limits.hx | [
"Apache-2.0"
] |
{%- assign __return = site.data.variables.default.lang -%}
{%- if page.lang -%}
{%- assign __return = page.lang -%}
{%- elsif site.lang -%}
{%- assign __return = site.lang -%}
{%- endif -%} | HTML | 3 | matt783/matt783.github.io | _includes/snippets/get-lang.html | [
"MIT"
] |
type Signs = { kind: 'a'; a: 3; } | { kind: 'b'; b: 2; } | { kind: 'c'; c: 1; };
interface Opts<T> {
low?: number;
sign?: T
}
interface Wrapper<T> {
}
declare function sepsis<T extends Signs>(opts: Opts<T>): Wrapper<T>;
declare function unwrap<T>(w: Wrapper<T>): T;
export const y = sepsis({ low: 1, sig... | TypeScript | 4 | monciego/TypeScript | tests/cases/compiler/returnTypeInferenceNotTooBroad.ts | [
"Apache-2.0"
] |
module Krb5 =
autoload xfm
let comment = Inifile.comment IniFile.comment_re "#"
let empty = Inifile.empty
let eol = Inifile.eol
let dels = Util.del_str
let indent = del /[ \t]*/ ""
let comma_or_space_sep = del /[ \t,]{1,}/ " "
let eq = del /[ \t]*=[ \t]*/ " = "
let eq_openbr = del /[ \t]*=[ \t\n]*\{[ \t]*\n/ " = {\n... | Augeas | 4 | greglarkin/pltraining-classroom | files/krb5.aug | [
"Apache-2.0"
] |
package com.baeldung.concurrent.sleepwait;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/***
* Example of wait() and sleep() methods
*/
public class WaitSleepExample {
private static final Logger LOG = LoggerFactory.getLogger(WaitSleepExample.class);
private static final Object LOCK = new Obje... | Java | 5 | zeesh49/tutorials | core-java-concurrency/src/main/java/com/baeldung/concurrent/sleepwait/WaitSleepExample.java | [
"MIT"
] |
# dynamic ugen loading
# corresponding c code is in the file called gain.c
# load the plugin into ftable "test"
"test" "./gain.so" fl
# create a unit-amplitude sine wave
# 440 1 sine
#
# # execute the ugen
# 0.1 "test" fe
# close the library only call this once at the end!
"test" fc
| SourcePawn | 4 | aleatoricforest/Sporth | examples/f.sp | [
"MIT"
] |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... | Thrift | 5 | Jimexist/thrift | lib/rs/test_recursive/src/transit/Buses.thrift | [
"Apache-2.0"
] |
' *******************************************************************
' Source: Mini Timer
' Version: 1.00
' Author: Rob Hutchinson 2004
' Email: rob@proteanide.co.uk
' WWW: http://www.proteanide.co.uk/
' -------------------------------------------------------------------
' This include provides a class for a timer ob... | BlitzMax | 4 | jabdoa2/blitzmax | samples/digesteroids/minitimer.bmx | [
"Zlib"
] |
let s = "hello world"
let n : int = 87
let id x = x
let add x y = x + y
let add' x y =
let left = x in
let right = y in
x + y
let add'' : int -> int -> int = fun x -> fun y -> x + y
let unwrap_option default opt =
match opt with
| None -> default
| Some v -> v
let string_of_bool = function true -> "t... | OCaml | 4 | JesseVermeulen123/bat | tests/syntax-tests/source/OCaml/syntax-test.ml | [
"Apache-2.0",
"MIT"
] |
data {
// dimensions
int N;
int S;
// index
int<lower = 0, upper = S + 1> s[N];
// data
int n_respondents[N];
int n_two_parties[N];
}
parameters {
vector[S + 1] delta_raw;
real delta_mu;
real<lower = 0> delta_sigma;
}
transformed parameters {
vector[S + 1] delta;
delta = delta_mu + delta_raw *... | Stan | 4 | jamesmyatt/us-potus-model | scripts/deprecated/Stan/Refactored/poll_model_1st_stage_v2.stan | [
"MIT"
] |
20 5 0 0
0 1 4 4 3 2 1 [0] [0] [0] [0]
1 1 1 8 [1]
2 1 2 18 5 [19] [9]
3 1 1 6 [1]
4 1 1 15 [3]
5 1 3 15 11 16 [-1] [-91] [0]
6 1 2 3 19 [-96] [0]
7 1 1 15 [17]
8 1 1 10 [0]
9 1 5 13 15 5 7 14 [-3] [-2] [21] [-4] [0]
10 1 1 12 [10]
11 1 4 16 6 13 7 [6] [-58] [10] [14]
12 1 4 6 20 1 9 [5] [4] [-24] [6]
13 ... | Eagle | 1 | klorel/or-tools | examples/data/rcpsp/single_mode_max_delay/ubo_20/psp65.sch | [
"Apache-2.0"
] |
#N canvas 392 23 706 812 12;
#X obj 251 612 *~;
#X obj 230 769 outlet~;
#X obj 94 529 makefilename sample%d;
#X msg 94 552 set \$1;
#X obj 94 578 tabread4~ sample1;
#X obj 329 555 dbtorms;
#X obj 329 578 sqrt;
#X obj 329 601 sqrt;
#X obj 329 624 line~;
#X obj 311 695 *~;
#X obj 329 647 *~;
#X obj 329 670 *~;
#X msg 92 ... | Pure Data | 4 | mcclure/pure-data | doc/3.audio.examples/sampvoice2.pd | [
"TCL"
] |
-- This migration enables metadata separation
-- Drops all tables which stores hasura metadata
DROP VIEW hdb_catalog.hdb_role;
DROP TABLE hdb_catalog.hdb_custom_types;
DROP TABLE hdb_catalog.hdb_action_permission;
DROP TABLE hdb_catalog.hdb_action;
DROP VIEW hdb_catalog.hdb_computed_field_function;
DROP TABLE hdb_catal... | SQL | 4 | gh-oss-contributor/graphql-engine-1 | server/src-rsr/migrations/42_to_43.sql | [
"Apache-2.0",
"MIT"
] |
#!/usr/bin/sage
import random
import string
import sys
t=100
print(t)
for _ in range(t):
p=set([3])
while(len(p)!=26):
p.add(next_prime(random.randint(10**99,10**100)))
p=sorted(list(p))
m=[x for x in string.ascii_uppercase*random(1,4)]
random.shuffle(m)
x=[]
for i in range(len(m)-1)... | Sage | 3 | Ashindustry007/competitive-programming | codejam/2019-qualification/c-gen.sage | [
"WTFPL"
] |
AudioBufferSource abs { url assets/wav/pinknoise.wav, loop true} [ panner ]
StereoPanner panner { pan
[ setValueAtTime -1.0 t + 0.1,
linearRampToValueAtTime 1.0 t +10
] } [ gain ]
Gain gain { gain 0.5 } [ output ]
End | Augeas | 3 | newlandsvalley/purescript-audiograph | audiograph-editor/dist/augsamples/stereoPanner.aug | [
"MIT"
] |
package=libmultiprocess
$(package)_version=$(native_$(package)_version)
$(package)_download_path=$(native_$(package)_download_path)
$(package)_file_name=$(native_$(package)_file_name)
$(package)_sha256_hash=$(native_$(package)_sha256_hash)
$(package)_dependencies=native_$(package) boost capnp
define $(package)_config_... | Makefile | 3 | crptec/sinovate | depends/packages/libmultiprocess.mk | [
"MIT"
] |
#Updating records in a binary file
import pickle
def update():
F=open("class.dat",'rb+')
S=pickle.load(F)
found=0
rno=int(input("enter the roll number you want to update"))
for i in S:
if rno==i[0]:
print("the currrent name is",i[1])
i[1]=input("enter th... | Python | 3 | sulphatet/Python | 1 File handle/File handle binary/Update a binary file.py | [
"MIT"
] |
;;; Point-free functions
(defun partial (f &rest pargs)
"Create partial application of function."
(list 'lambda '(&rest args)
(list 'apply f (list 'append (list 'quote pargs) 'args))))
(defun comp-build (f &rest fs)
"Helper function for comp function composition."
(if (nullp fs)
(list 'apply f 'args)
... | wisp | 5 | skeeto/wisp | wisplib/point-free.wisp | [
"Unlicense"
] |
Version 2 of Exit Descriptions SP by Matthew Fletcher begins here.
"Añade una lista de direcciones de salida válidas así como los nombres de las localidades previamente visitadas tras la descripción de una localidad.[6L02]"
A room can be female.[spanish need: al listar cosas como 'la Biblioteca']
A room can be plural... | Inform 7 | 5 | brtl-fhc/I7-Spanish | EXTENSIONES/Exit Descriptions SP.i7x | [
"Artistic-2.0"
] |
#!/usr/bin/gnuplot -persist
set title "Boehm-GC: Full vs. Generational Mode (optimized)"
set xlabel "Interval #"
set ylabel "Pause Time [ms]"
set terminal pdfcairo transparent enhanced fontscale 0.5 size 5.00in, 3.00in
set output "GC_bench_opt.pdf"
plot "boehm_full_opt.txt" title "full GC" w i, "boehm_incr_opt.txt... | Gnuplot | 3 | gamemaker1/v | vlib/v/tests/bench/gcboehm/GC_bench_opt.plt | [
"MIT"
] |
ruleset G2S.indy_sdk.ledger {
meta {
shares __testing, getNym,anchorSchema,blocks,getSchema,anchorCredDef,
credDefs,createLinkedSecret,issuerCreateCredentialOffer,
proverCreateCredentialReq,nym,createCred,storeCred,searchCredWithReq,searchCredWithReqForProof
provides getNym,anchorSchema,block... | KRL | 5 | Picolab/G2S | krl/g2s.indy_sdk.ledger.krl | [
"MIT"
] |
/**
Copyright 2015 Acacia Team
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | X10 | 3 | mdherath/Acacia | src/org/acacia/backend/AcaciaBackEndServiceSession.x10 | [
"Apache-2.0"
] |
<?xml version="1.0" encoding="UTF-8"?>
<faces-config>
<faces-config-extension>
<namespace-uri>http://www.ibm.com/xsp/custom</namespace-uri>
<default-prefix>xc</default-prefix>
</faces-config-extension>
<composite-component>
<component-type>OneUILayout</component-type>
<composite-name>OneUILayout</... | XPages | 3 | OpenNTF/DomSQL | domsql/nsf/ondisk-DomSQL/CustomControls/OneUILayout.xsp-config | [
"Apache-2.0"
] |
(* Content-type: application/mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 7.0' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[ 145, 7]
NotebookDataLength[ 51606,... | Mathematica | 4 | junaidnaseer/daala | doc/16x32.nb | [
"BSD-2-Clause"
] |
2E,5A
61,7A
| Component Pascal | 1 | janosch-x/character_set | lib/character_set/predefined_sets/crypt.cps | [
"MIT"
] |
"""Fixtures for MJPEG IP Camera integration tests."""
from __future__ import annotations
from collections.abc import Generator
from unittest.mock import AsyncMock, patch
import pytest
from requests_mock import Mocker
from homeassistant.components.mjpeg.const import (
CONF_MJPEG_URL,
CONF_STILL_IMAGE_URL,
... | Python | 5 | MrDelik/core | tests/components/mjpeg/conftest.py | [
"Apache-2.0"
] |
pre: <%= @pre %>
<%= render "inner_live.html", assigns %>
post: <%= @post %> | HTML+EEX | 1 | basbz/phoenix_live_view | test/fixtures/templates/dead_with_live.html.eex | [
"MIT"
] |
/*
* Copyright 2010-2015 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... | Java | 4 | AndrewReitz/kotlin | js/js.translator/src/org/jetbrains/kotlin/js/translate/context/AliasingContext.java | [
"ECL-2.0",
"Apache-2.0"
] |
#!/usr/bin/env bash
# Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... | Shell | 3 | yage99/tensorflow | tensorflow/tools/dockerfiles/tests/import-onednn-horovod.sh | [
"Apache-2.0"
] |
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 8.0' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[ 157, 7]
NotebookDataLength... | Mathematica | 4 | kvmanohar22/gtsam | doc/Mathematica/CalibratedCamera.nb | [
"BSD-3-Clause"
] |
{"format":"HTML", "children":
[
<%= render(partial: "first_layer", formats: :xml).chomp.html_safe %>,
<%= render(partial: "second_layer").chomp.html_safe %>
]}
| HTML+ERB | 3 | Jiwoong/rails | actionview/test/fixtures/test/mixing_formats_deep.html.erb | [
"MIT"
] |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Hasura.Backends.MySQL.Instances.Execute where
import Data.Aeson as J
import Data.HashMap.Strict.InsOrd qualified as OMap
import Data.Text qualified as T
import Data.Tree
import Hasura.Backends.MySQL.DataLoader.Execute (OutputValue (..), RecordSet (..))
import Hasura.Backen... | Haskell | 4 | aloks98/graphql-engine | server/src-lib/Hasura/Backends/MySQL/Instances/Execute.hs | [
"Apache-2.0",
"MIT"
] |
package com.baeldung.unmappedproperties.mapper;
import com.baeldung.unmappedproperties.dto.DocumentDTO;
import com.baeldung.unmappedproperties.entity.Document;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE... | Java | 4 | DBatOWL/tutorials | mapstruct/src/main/java/com/baeldung/unmappedproperties/mapper/DocumentMapperUnmappedPolicy.java | [
"MIT"
] |
module audiostreamerscrobbler.players.heos.HeosSlaveMonitor
import audiostreamerscrobbler.maintypes.SongType.types.Song
import audiostreamerscrobbler.players.heos.HeosConnectionSingleton
import audiostreamerscrobbler.threads.PlayerMonitorThreadTypes.types.MonitorThreadTypes
import audiostreamerscrobbler.utils.ThreadUt... | Golo | 5 | vvdleun/audiostreamerscrobbler | src/main/golo/include/players/heos/HeosSlaveMonitor.golo | [
"MIT"
] |
DAFETF NAIF DAF ENCODED TRANSFER FILE
'DAF/CK '
'2'
'6'
' < DAFCAT: CK CONCATENATION > '
BEGIN_ARRAY 1 99
'Partly corrected data: -1.414s; 98-11-29'
'1D956C1AD^9'
'1D956EA05^9'
'-16F30'
'1'
'3'
'1'
99
'84B90D871F54D8^0'
'-25100A513E235A^0'
'-D04ADA0ED06DB8^0'
'-3839AB9839EBE8^0'
'-97513BE... | XC | 2 | ladoramkershner/ale | tests/pytests/data/JNCR_2016240_01M06152_V01/mgs_sc_ab1_1_sliced_-94000.xc | [
"Unlicense"
] |
fileFormatVersion: 2
guid: 802031397194d49dc9b2b8a534477d68
folderAsset: yes
timeCreated: 1508969008
licenseType: Free
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| Unity3D Asset | 0 | woshihuo12/Entitas-CSharp | Tests/Unity/VisualDebugging/Assets/Tests/Manual Tests/EntityLink.meta | [
"MIT"
] |
(***********************************************************
PROJECTOR INTERFACE
This file contains the code to interface with a fictitious
projector controlled via RS232. The projector needs to
receive 'PON' and 'POFF' strings to turn its power on
and off.
*****************************... | NetLinx | 4 | RBSystems/amx-test-suite | examples/(2) events/projector.axi | [
"Apache-2.0"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M12 7c2.76 0 5 2.24 5 5 0 .64-.13 1.25-.35 1.82l1.5 1.5c.54-.99.85-2.12.85-3.32 0-2.22-1.03-4.19-2.64-5.47L15 2H9l-.96 3.21 2.14 2.14C10.75 7.13 11.36 7 12 ... | JavaScript | 4 | dany-freeman/material-ui | packages/mui-icons-material/lib/esm/WatchOff.js | [
"MIT"
] |
source "../tests/includes/init-tests.tcl"
source "../tests/includes/job-utils.tcl"
test "NACK immediately re-enqueue the job" {
set qname [randomQueue]
set id [D 0 addjob $qname myjob 5000 replicate 3 retry 3]
set job [D 0 show $id]
assert {$id ne {}}
D 0 getjob from $qname
assert {[count_job_... | Tcl | 3 | justincase/disque | tests/cluster/tests/12-nack-and-counters.tcl | [
"BSD-3-Clause"
] |
module m1 {
export class C1_public {
private f1() {
}
}
class C2_private {
}
export class C3_public {
constructor (m1_c3_c1: C1_public);
constructor (m1_c3_c2: C2_private); //error
constructor (m1_c3_c1_2: any) {
}
private f1_... | TypeScript | 3 | nilamjadhav/TypeScript | tests/cases/compiler/privacyFunc.ts | [
"Apache-2.0"
] |
import ReactGA from 'react-ga';
import {
devAnalyticsId,
prodAnalyticsId
} from '../../../config/analytics-settings';
import envData from '../../../config/env.json';
const { deploymentEnv } = envData;
const analyticsId =
deploymentEnv === 'staging' ? devAnalyticsId : prodAnalyticsId;
ReactGA.initialize(analyti... | TypeScript | 4 | fcastillo-serempre/freeCodeCamp | client/src/analytics/index.tsx | [
"BSD-3-Clause"
] |
mongodb = require 'mongodb'
assert = require 'assert'
open mongodb connection to (name, address: '127.0.0.1', port: 27017) =
db = new (mongodb.Db (name, new (mongodb.Server (address, port)), safe: false))
with mongodb! (name, block, options) =
db = open mongodb connection to (name, options)
db.open!()
... | PogoScript | 3 | featurist/pogoscript | examples/mongodb.pogo | [
"BSD-2-Clause"
] |
Import rockout
' TODO: Separate list for indestructable blocks?
Class Block Extends Sprite
Field parent:List <Block>
Field hittime:Int
Field hitcount:Int
Field hitby:Shot ' Shot which hit this block; gets speed from here
Field hitx:Float ' x-position when hit
Field hity:Float ' y-position when hit
Fiel... | Monkey | 4 | blitz-research/monkey | bananas/hitoro/rockout/imports/block.monkey | [
"Zlib"
] |
' Debug Print Queue...
' Copy and paste the DebugQ type and the PrintQ/UpdateQ functions. Use
' PrintQ to add a debug message to your game, and UpdateQ in your main
' loop to display/update messages...
Type DebugQ
Global DebugQList:TList
Field message$
Field alpha# = 1
Function Print (message$... | BlitzMax | 5 | jabdoa2/blitzmax | samples/hitoro/debugprintq.bmx | [
"Zlib"
] |
(ns hacker-scripts.smack
(:import
(com.twilio Twilio)
(com.twilio.rest.api.v2010.account Message)
(com.twilio.type PhoneNumber)))
(def acc-sid "my twilio account SID")
(def acc-tkn "my twilio secret token")
(def my-num (PhoneNumber. "+10001112222"))
(def her-num (PhoneNumber. "+19998887777"))
(def reas... | Clojure | 4 | johndemlon/hacker-scripts | clojure/smack.clj | [
"WTFPL"
] |
server.port=8080
debug=false
wrong.three=invalid
| INI | 0 | Martin-real/spring-boot-2.1.0.RELEASE | spring-boot-project/spring-boot-properties-migrator/src/test/resources/config/config-error-no-replacement.properties | [
"Apache-2.0"
] |
%!PS-Adobe-3.0 Resource-Encoding
%%Title: VIM-iso-8859-5
%%Version: 1.0 0
%%EndComments
/VIM-iso-8859-5[
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef... | PostScript | 1 | uga-rosa/neovim | runtime/print/iso-8859-5.ps | [
"Vim"
] |
(ns lt.objs.connector
"Provide client-selector object for UI and behaviors to choosing a client"
(:require [lt.object :as object]
[lt.objs.canvas :as canvas]
[lt.objs.popup :as popup]
[lt.objs.eval :as eval])
(:require-macros [lt.macros :refer [behavior defui]]))
(behavior ::o... | Clojure | 5 | sam-aldis/LightTable | src/lt/objs/connector.cljs | [
"MIT"
] |
only forth also hidden also definitions
decimal
headerless
variable sift-vocabulary
variable sift-string
headers
\ Leave a "hook" for showing the name of the vocabulary
\ only once, the first time a matching name is found.
\ Showing the name of a device can be plugged in here also...
defer .voc ' noop is .voc
... | Forth | 4 | andrewtholt/cforth-ath | src/cforth/sift.fth | [
"MIT"
] |
var('m')
# n= 12948283836856618393251398544108500949725617832915789426802888032619076417346067812460930053607004458043161306082251683181645817056436504357568677025419189972592466748010887366772465537238649553863597168822336426297007346914467644022162795018635401084327417055653560675405499776520930188227329733706371163... | Sage | 3 | bearbear1100/Cryptools | cytro/sage/test.sage | [
"MIT"
] |
# Image metadata and config.
# Ideally, the Node.js version should match what we use on CI.
# See `executors > default-executor` in `.circleci/config.yml`.
FROM cimg/node:14-browsers
LABEL name="Angular dev environment" \
description="This image can be used to create a dev environment for building Angular." \
... | Dockerfile | 4 | John-Cassidy/angular | .devcontainer/recommended-Dockerfile | [
"MIT"
] |
#ifndef GOOGLEMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_GMOCK_GENERATED_ACTIONS_H_
#define GOOGLEMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_GMOCK_GENERATED_ACTIONS_H_
#endif // GOOGLEMOCK_INCLUDE_GMOCK_INTERNAL_CUSTOM_GMOCK_GENERATED_ACTIONS_H_
| C | 0 | aweisi/googletest | googlemock/include/gmock/internal/custom/gmock-generated-actions.h | [
"BSD-3-Clause"
] |
Rebol [
Title: "Rebol3 ChaCha20 test script"
Author: "Oldes, Peter W A Wood"
File: %chacha20-test.r3
Tabs: 4
Needs: [%../quick-test-module.r3]
]
~~~start-file~~~ "ChaCha20"
===start-group=== "ChaCha20 test vectors"
foreach [test-id key nonce counter plain cipher] [
1
#{00000000000000000000000000000000}... | Rebol | 4 | 0branch/r3 | src/tests/units/chacha20-test.r3 | [
"Apache-2.0"
] |
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// LEC dofile for script lec_sv2v.sh. A similar script is used in
// OpenTitan, any updates or fixes here may need to be reflected in the
// OpenTitan script as well:... | Stata | 3 | parzival3/Surelog | third_party/tests/Ibex/syn/lec_sv2v.do | [
"Apache-2.0"
] |
L NURON e_nuron_err.h e_nuron_err.c
| eC | 1 | jiangzhu1212/oooii | Ouroboros/External/OpenSSL/openssl-1.0.0e/engines/e_nuron.ec | [
"MIT"
] |
window.__test_defer_executions = (window.__test_defer_executions || 0) + 1
| JavaScript | 1 | blomqma/next.js | test/integration/client-navigation/public/test-defer.js | [
"MIT"
] |
/*
* Program type: Embedded Static SQL
*
* Description:
* This program updates a blob data type.
* Project descriptions are added for a set of projects.
* The contents of this file are subject to the Interbase Public
* License Version 1.0 (the "License"); you may not use this file
* except in compliance w... | Eiffel | 4 | jiemurat/delphimvcframework | unittests/general/Several/bin/firebird/examples/stat/stat8.e | [
"Apache-2.0"
] |
#tag Class
Protected Class FTPSessionWFS
Inherits InternetSessionWFS
#tag Method, Flags = &h0
Sub Connect(url as String, username as String, password as String)
#if TargetWin32
Soft Declare Function InternetConnectA Lib "WinInet" ( handle as Integer, server as CString, _
port as Integer, usern... | REALbasic | 5 | bskrtich/WFS | Windows Functionality Suite/Networking/Classes/FTPSessionWFS.rbbas | [
"MIT"
] |
-- There are 2 dimensions we want to test
-- 1. run with broadcast hash join, sort merge join or shuffle hash join.
-- 2. run with whole-stage-codegen, operator codegen or no codegen.
--CONFIG_DIM1 spark.sql.autoBroadcastJoinThreshold=10485760
--CONFIG_DIM1 spark.sql.autoBroadcastJoinThreshold=-1,spark.sql.join.pref... | SQL | 4 | akhalymon-cv/spark | sql/core/src/test/resources/sql-tests/inputs/inner-join.sql | [
"Apache-2.0"
] |
.line[data-v-64c3fae5]{text-align:center} | CSS | 2 | yuanweikang2020/canal | admin/admin-web/src/main/resources/public/static/css/chunk-4f09fed2.70ec0b86.css | [
"Apache-2.0"
] |
MODULE = Agar::UCombo PACKAGE = Agar::UCombo PREFIX = AG_
PROTOTYPES: ENABLE
VERSIONCHECK: DISABLE
Agar::UCombo
new(package, parent, ...)
const char * package
Agar::Widget parent
PREINIT:
Uint flags = 0, wflags = 0;
CODE:
if ((items == 3 && SvTYPE(SvRV(ST(2))) != SVt_PVHV) || items > 3) {
Perl_croak(aTHX_ "Usage... | XS | 4 | auzkok/libagar | p5-Agar/Agar/UCombo.xs | [
"BSD-2-Clause"
] |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract KeeperBase {
error OnlySimulatedBackend();
/**
* @notice method that allows it to be simulated via eth_call by checking that
* the sender is the zero address.
*/
function preventExecution() internal view {
if (tx.origin != address(0))... | Solidity | 4 | solidity-external-tests/chainlink | contracts/src/v0.8/KeeperBase.sol | [
"MIT"
] |
// Copyright 2010-2012 RethinkDB, all rights reserved.
#ifndef CONCURRENCY_QUEUE_UNLIMITED_FIFO_HPP_
#define CONCURRENCY_QUEUE_UNLIMITED_FIFO_HPP_
#include <list>
#include "concurrency/queue/passive_producer.hpp"
#include "perfmon/perfmon.hpp"
/* `unlimited_fifo_queue_t` is one of the simplest possible implementatio... | C++ | 5 | zadcha/rethinkdb | src/concurrency/queue/unlimited_fifo.hpp | [
"Apache-2.0"
] |
"""
# Strings package
The Strings package provides utilities for working with sequences of strings.
"""
| Pony | 0 | rtpax/ponyc | packages/strings/strings.pony | [
"BSD-2-Clause"
] |
/*
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/CharacterTypes.h>
#include <LibWeb/UIEvents/KeyboardEvent.h>
namespace Web::UIEvents {
// https://www.w3.org/TR/uievents/#determine-keydown-keyup-keyCode
static unsigned long determine_key_code... | C++ | 5 | r00ster91/serenity | Userland/Libraries/LibWeb/UIEvents/KeyboardEvent.cpp | [
"BSD-2-Clause"
] |
h1. About Edlo
!https://github.com/ehamiter/Edlo/raw/master/edlo.png!
h3. Version 1.00
Edlo is a modified version of Stephen G. Hartke's "Aurulent Sans":http://www.dafont.com/aurulent-sans-mono.font, which I thought was beautiful, but hazardous for programming because the similarities between zeroes and ohs and ones... | Textile | 1 | riddopic/programmingfonts | fonts/resources/edlo/README.textile | [
"MIT"
] |
cbuffer ClearColorF32 : register(b0) { float4 ClearF32; };
cbuffer ClearColorU32 : register(b0) { uint4 ClearU32; };
cbuffer ClearColorI32 : register(b0) { int4 ClearI32; };
cbuffer ClearColorDepth : register(b0) { float ClearDepth; };
// fullscreen triangle
float4 vs_partial_clear(uint id : SV_VertexID) : SV_Po... | HLSL | 4 | Moxinilian/gfx | src/backend/dx11/shaders/clear.hlsl | [
"Apache-2.0",
"MIT"
] |
--TEST--
CURLOPT_SSL* basic client auth tests
--EXTENSIONS--
curl
--SKIPIF--
<?php
if (!function_exists("proc_open")) die("skip no proc_open");
exec('openssl version', $out, $code);
if ($code > 0) die("skip couldn't locate openssl binary");
if (PHP_OS_FAMILY === 'Windows') die('skip not for Windows');
$curl_version = c... | PHP | 4 | NathanFreeman/php-src | ext/curl/tests/curl_setopt_ssl.phpt | [
"PHP-3.01"
] |
TDObjectGatewayLeafNode{#name:'Metacello',#contents:'| repoSpec gitCheckout |
gitCheckout := GsFile _expandEnvVariable: \'GS_SHARED_GIT_CHECKOUT_METACELLO\' isClient: false.
repoSpec := GsFile _expandEnvVariable: \'GS_SHARED_REPO_METACELLO\' isClient: false.
^ TDProjectSpecEntryDefinition new
baseline: \'Metacello... | STON | 3 | ahdach/GsDevKit_home | sys/default/server/projects/Metacello.ston | [
"MIT"
] |
\application\APD\demo_dll.exe > \program files\demo_dll.exe
\application\APD\APD Print demo.lnk > \windows\start menu\APD Print demo.lnk
\application\APD\prtlib.dll > \windows\prtlib.dll
| COBOL | 0 | mensfeld/rhodes | neon/Helium/HeliumForWindows/AdditionalLibraries/APD Kit v2-19-06/demo_app/APD-demo.cpy | [
"MIT"
] |
impl<T, const SIZE: usize> IntoNormalized for Vector<T, { SIZE }>
where
Vector<T, { SIZE }>: Div<Vector<T, { SIZE }>>,
for<'a> &'a Vector<T, { SIZE }>: IntoLength<Output = T>,
{
type Output = Vector<T, { SIZE }>;
fn into_normalized(self) -> Self::Output {
}
}
| Rust | 3 | mbc-git/rust | src/tools/rustfmt/tests/source/issue-3740.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
import io.vertx.ceylon.platform {
Verticle,
Container
}
import io.vertx.ceylon.core {
Vertx
}
import io.vertx.ceylon.core.net {
NetSocket
}
import org.vertx.java.core.buffer {
Buffer
}
shared class FanoutServer() extends Verticle() {
shared actual void start(Vertx vertx, Container container) {
value... | Ceylon | 4 | vietj/vertx-examples | src/raw/ceylon/fanout/FanoutServer.ceylon | [
"Apache-2.0"
] |
v
>0010p20p130p25*2*6+40p&v
> 1- v <
>10p30g20p30p^ :
^ g02%g04++g03g02g01_10g.@
| Befunge | 0 | SuprDewd/BefungeSimulator | befunge_code/codeforces_130/e.befunge | [
"MIT"
] |
(set-info :smt-lib-version 2.6)
(set-logic QF_UF)
(set-info :source |
Generated by: Aman Goel (amangoel@umich.edu), Karem A. Sakallah (karem@umich.edu)
Generated on: 2018-04-06
Generated by the tool Averroes 2 (successor of [1]) which implements safety property
verification on hardware systems.
This SMT problem belon... | SMT | 3 | livinlife6751/infer | sledge/test/smt/QF_UF/2018-Goel-hwbench/QF_UF_sw_loop_v_ab_reg_max.smt2 | [
"MIT"
] |
scriptname _DE_CampEnchantingObject extends ObjectReference
message property _DE_EnchantingSelect auto
message property _DE_FurniturePickUpError auto
MiscObject property _DE_EnchantingMISC auto
Sound property ITMGenericUp auto
GlobalVariable property _DE_CampsitePlacementOn auto
Event OnInit()
while !self.Is3DLoaded... | Papyrus | 5 | chesko256/Campfire | Scripts/Source/_DE_CampEnchantingObject.psc | [
"MIT"
] |
--TEST--
$http_reponse_header (no redirect)
--SKIPIF--
<?php require 'server.inc'; http_server_skipif(); ?>
--INI--
allow_url_fopen=1
--FILE--
<?php
require 'server.inc';
$responses = array(
"data://text/plain,HTTP/1.0 200 Ok\r\nSome: Header\r\nSome: Header\r\n\r\nBody",
);
['pid' => $pid, 'uri' => $uri] = http_s... | PHP | 3 | NathanFreeman/php-src | ext/standard/tests/http/http_response_header_01.phpt | [
"PHP-3.01"
] |
module Search.Negation
import Data.List.Quantifiers
import Data.Nat
%default total
||| It is much easier to look for positive evidence than it is to look
||| for negative evidence. So instead of looking for `Not q`, we may
||| want to look for `p` instead
public export
interface Negates p q | q where
toNegation : ... | Idris | 4 | ska80/idris-jvm | libs/contrib/Search/Negation.idr | [
"BSD-3-Clause"
] |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | JavaScript | 2 | good-gym/material-ui | packages/material-ui-icons/lib/VrpanoRounded.js | [
"MIT"
] |
.. _NEP21:
==================================================
NEP 21 — Simplified and explicit advanced indexing
==================================================
:Author: Sebastian Berg
:Author: Stephan Hoyer <shoyer@google.com>
:Status: Draft
:Type: Standards Track
:Created: 2015-08-27
Abstract
--------
NumPy's... | reStructuredText | 5 | iam-abbas/numpy | doc/neps/nep-0021-advanced-indexing.rst | [
"BSD-3-Clause"
] |
<template>
<div>
<h1>Error</h1>
<p>Details: {{ $route.path === '/squared' ? error.response.data : error.message }}</p>
<nuxt-link to="/">
back
</nuxt-link>
</div>
</template>
<script>
export default {
layout: 'error-layout',
// eslint-disable-next-line vue/require-prop-types
props: ['e... | Vue | 4 | ardyno/nuxt.js | test/fixtures/split-layouts-error/layouts/error.vue | [
"MIT"
] |
T BinarySearch(Range(10,20),11) == [2]
T IntegerPartitions(4) == [[4],[3,1],[2,2],[2,1,1],[1,1,1,1]]
T IntegerPartitions(4,3) == [[4],[3,1],[2,2],[2,1,1]]
T IntegerPartitions(5,[3]) == [[3,1,1],[2,2,1]]
T IntegerPartitions(6,[3,4]) == [[4,1,1],[3,2,1],[2,2,2],[3,1,1,1],[2,2,1,1]]
T Permutations([a,b,c]) == [[a,b,c],[... | Objective-J | 4 | UnofficialJuliaMirrorSnapshots/Symata.jl-a906b1d5-d016-55c4-aab3-8a20cba0db2a | symata_test/numcomb_test.sj | [
"MIT"
] |
(fun say (args..)
(for (args a)
(print stdout a \n))
(flush stdout))
(fun dump (args..)
(for (args a)
(print stderr a \n))
(flush stderr)) | Grammatical Framework | 4 | daota2/fffff | v1/lib/io.gf | [
"MIT"
] |
INSERT INTO `decimal` VALUES
(1, 84.1471),
(2, 90.9297),
(3, 14.112),
(4, -75.6802),
(5, -95.8924),
(6, -27.9415),
(7, 65.6987),
(8, 98.9358),
(9, 41.2118),
(10, -54.4021),
(11, -99.999),
(12, -53.6573),
(13, 42.0167),
(14, 99.0607),
(15, 65.0288),
(16, -28.7903),
(17, -96.1397),
(18, -75.0987),
(19, 14.9877),
(20, 91.... | SQL | 2 | WizardXiao/tidb | br/tests/lightning_various_types/data/vt.decimal.sql | [
"Apache-2.0"
] |
export default function B() {
return <div>b</div>
}
| TypeScript | 3 | blomqma/next.js | examples/custom-server-typescript/pages/b.tsx | [
"MIT"
] |
// run-pass
#![allow(dead_code)]
// Test taken from #45641 (https://github.com/rust-lang/rust/issues/45641)
static mut Y: u32 = 0;
unsafe fn should_ok() {
Y = 1;
}
fn main() {}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/borrowck/borrowck-assignment-to-static-mut.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
require 'pl'
local cjson = require 'cjson'
local function pairwise_from_entries(y_dir, x_dirs)
local list = {}
local y_files = dir.getfiles(y_dir, "*")
for i, y_file in ipairs(y_files) do
local basename = path.basename(y_file)
local x_files = {}
for i = 1, #x_dirs do
local x_file = path.jo... | Lua | 4 | Nyanarchy/waifu2x | tools/make_pairwise_list.lua | [
"MIT"
] |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Scala | 4 | kesavanvt/spark | sql/core/src/test/scala/org/apache/spark/sql/execution/command/v1/AlterTableAddPartitionSuite.scala | [
"BSD-2-Clause",
"Apache-2.0",
"CC0-1.0",
"MIT",
"MIT-0",
"ECL-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
/-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Extensional equality for functions, and a proof of function extensionality from quotients.
-/
prelude
import init.data.quot init.logic
universes u v
namespace fu... | Lean | 5 | JLimperg/lean | library/init/funext.lean | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.