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 |
|---|---|---|---|---|---|
$nyquist plug-in
$version 4
$type tool analyze
$debugbutton false
$debugflags trace
$name (_ "Regular Interval Labels")
$manpage "Regular_Interval_Labels"
$action (_ "Adding equally-spaced labels to the label track...")
$author (_ "Steve Daulton")
$release 2.3.1
$copyright (_ "Released under terms of the GNU General Pu... | Common Lisp | 5 | joshrose/audacity | plug-ins/equalabel.ny | [
"CC-BY-3.0"
] |
from cpython.datetime cimport (
datetime,
timedelta,
tzinfo,
)
cdef tzinfo utc_pytz
cpdef bint is_utc(tzinfo tz)
cdef bint is_tzlocal(tzinfo tz)
cdef bint treat_tz_as_pytz(tzinfo tz)
cpdef bint tz_compare(tzinfo start, tzinfo end)
cpdef object get_timezone(tzinfo tz)
cpdef tzinfo maybe_get_tz(object tz... | Cython | 5 | 13rianlucero/CrabAgePrediction | crabageprediction/venv/Lib/site-packages/pandas/_libs/tslibs/timezones.pxd | [
"MIT"
] |
# An input file for running a "slow" build.
# Use like: ninja -f misc/long-slow-build.ninja all
rule sleep
command = sleep 1
description = SLEEP $out
build 0: sleep README
build 1: sleep README
build 2: sleep README
build 3: sleep README
build 4: sleep README
build 5: sleep README
build 6: sleep README
build 7: s... | Ninja | 2 | phkrl/ninja | misc/long-slow-build.ninja | [
"Apache-2.0"
] |
"""The gogogate2 component."""
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_DEVICE, Platform
from homeassistant.core import HomeAssistant
from .common import get_data_update_coordinator
from .const import DEVICE_TYPE_GOGOGATE2
PLATFORMS = [Platform.COVER, Platform.SENSOR]... | Python | 4 | MrDelik/core | homeassistant/components/gogogate2/__init__.py | [
"Apache-2.0"
] |
body {
background-color: lightGray
}
.dark {
background-color: black;
color: white;
}
.light {
background-color: #f1f1f1;
color: #ccc;
} | CSS | 3 | zeesh49/tutorials | spring-thymeleaf/src/main/webapp/WEB-INF/css/styles.css | [
"MIT"
] |
#pragma once
#include <optional>
#include <string>
#include <string_view>
std::optional<std::wstring> ObtainActiveUserName();
std::wstring ObtainStableGlobalNameForKernelObject(const std::wstring_view name, const bool restricted); | C | 2 | szlatkow/PowerToys | src/modules/videoconference/VideoConferenceShared/username.h | [
"MIT"
] |
<div id="healthdata-firstlaunch-popup" class="healthdata-firstlaunch-container">
<div>
<p class='healthdata-popup-close-button'>×</p>
</div>
<div >
<p class="healthdata-dialog-title">{{Strings.HEALTH_FIRST_POPUP_TITLE}}</p>
</div>
<div>
<p class="healthdata-dialog-message">{{... | HTML | 2 | ravitejavalluri/brackets | src/extensions/default/HealthData/htmlContent/healthdata-popup.html | [
"MIT"
] |
int main()
{
int x;
chan c;
par {
c <: 0;
c :> x;
}
return x;
}
| XC | 2 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/XC/main.xc | [
"MIT"
] |
30 3 0 0 111
0 1 9 8 4 7 9 2 6 3 5 1 [0] [0] [0] [0] [0] [0] [0] [0] [0]
1 1 5 30 28 15 26 13 [25] [14] [-5] [26] [7]
2 1 3 16 10 11 [-5] [22] [27]
3 1 2 21 19 [3] [0]
4 1 4 11 14 13 26 [19] [13] [18] [6]
5 1 5 23 26 17 22 28 [0] [0] [1] [-1] [0]
6 1 2 26 11 [-6] [9]
7 1 2 26 24 [8] [8]
8 1 4 29 22 18 13 [1] [... | Eagle | 1 | klorel/or-tools | examples/data/rcpsp/single_mode_investment/rip30/rip139.sch | [
"Apache-2.0"
] |
grammar RetryCondition;
condition
: WS* (criteria|Never) WS* EOF
;
criteria
: criteriaField=Quoted WS+ operator=IsEmpty #FieldOperatorCriteria
| criteriaField=Quoted WS+ operator=(Contains|Is) WS+ criteriaValue=Quoted #FieldOperatorValueCriteria
| criteria WS+ And WS+ criteria #AndCriteria
| c... | ANTLR | 5 | sasaie/onedev | server-core/src/main/java/io/onedev/server/buildspec/job/retrycondition/RetryCondition.g4 | [
"MIT"
] |
WRITE $ASCII("M")
WRITE $CHAR(77)
| M | 3 | mullikine/RosettaCodeData | Task/Character-codes/MUMPS/character-codes.mumps | [
"Info-ZIP"
] |
set title "Utilisation of Compressed Classes space"
plot for [i in "CCSU CCSC"] datafile using 1:i title columnheader(i) with lines
| Gnuplot | 3 | rmartinc/keycloak | testsuite/performance/tests/src/main/gnuplot/jstat/gc-cc.gp | [
"Apache-2.0"
] |
// run-pass
#![allow(unused_must_use)]
#![allow(deprecated)]
// ignore-emscripten no threads support
use std::sync::mpsc::{TryRecvError, channel};
use std::thread;
pub fn main() {
let (tx, rx) = channel();
let t = thread::spawn(move||{
thread::sleep_ms(10);
tx.send(()).unwrap();
});
lo... | Rust | 3 | Eric-Arellano/rust | src/test/ui/issues/issue-9396.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
// Imports
import {PreviewServerError} from '../../lib/preview-server/preview-error';
// Tests
describe('PreviewServerError', () => {
let err: PreviewServerError;
beforeEach(() => err = new PreviewServerError(999, 'message'));
it('should extend Error', () => {
expect(err).toBeInstanceOf(PreviewServerError... | TypeScript | 4 | raghavendramohan/angular | aio/aio-builds-setup/dockerbuild/scripts-js/test/preview-server/preview-error.spec.ts | [
"MIT"
] |
definition f {A : Type} {B : Type} (f : A → B → Prop) ⦃C : Type⦄ {R : C → C → Prop} {c : C} (H : R c c) : R c c
:= H
constant g : Prop → Prop → Prop
constant H : true ∧ true
#check f g H
| Lean | 3 | JLimperg/lean | tests/lean/run/implicit.lean | [
"Apache-2.0"
] |
.content.row
.profile
.picture
i.fa.fa-list
.summary
p = t('.description')
= datagrid_form_for @account_versions_grid, url: account_versions_path
.versions
= datagrid_table(@account_versions_grid, @assets, html: {:class => 'datagrid table-striped table-hover account_versions_grid'})
| Slim | 4 | gsmlg/peatio | app/views/private/account_versions/index.html.slim | [
"MIT"
] |
Import mojo
Import brl
Class MyApp Extends App
Field data:DataBuffer
Field data2:DataBuffer
Field image:Image
Method OnCreate()
data=DataBuffer.Load( "monkey://data/test.dat" )
If data
#If LANG<>"js" And LANG<>"as"
Local file:=FileStream.Open( "monkey://internal/test.png","w" )
If file
file.Wr... | Monkey | 3 | blitz-research/monkey | bananas/mak/fileiotest/fileiotest.monkey | [
"Zlib"
] |
### Relevant Articles:
- [Copying Files With Maven](https://www.baeldung.com/maven-copy-files)
| Markdown | 4 | DBatOWL/tutorials | maven-modules/maven-copy-files/README.md | [
"MIT"
] |
VarComparability
none
ListImplementors
java.util.List
DECLARE
foo.f():::ENTER
x
int
int
22
y
int
int
22
z
int
int
22
DECLARE
foo.g():::ENTER
p
int
int
22
q
int
int
22
r
int
int
22
DECLARE
foo.f():::EXIT35
x
int
int
22
y
int
int
22
z
int
int
22
DECLARE
foo.g():::EXIT40
p
int
int
22
q
int
int
22
r
int
int
22
| BlitzBasic | 0 | eurecom-s3/invscov | daikon/java/daikon/test/SampleTester.decls | [
"Apache-2.0"
] |
\require "a"
\pinclude "inc/include2.ly"
| LilyPond | 0 | HolgerPeters/lyp | spec/user_files/include1.ly | [
"MIT"
] |
export PYTHONPATH="../":"${PYTHONPATH}"
python use_own_knowledge_dataset.py
ray start --head
python finetune_rag.py \
--model_name_or_path facebook/rag-token-base \
--model_type rag_token \
--context_encoder_name facebook/dpr-ctx_encoder-multiset-base \
--fp16 \
--gpus 1 \
--profile \
--e... | Shell | 3 | liminghao1630/transformers | examples/research_projects/rag-end2end-retriever/test_run/test_rag_new_features.sh | [
"Apache-2.0"
] |
--TEST--
BIND_STATIC may destroy a variable with a throwing destructor
--FILE--
<?php
class Test {
function __destruct() {
throw new Exception("Foo");
}
}
try {
$new = new Test;
static $new;
} catch (Exception $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
Foo
| PHP | 3 | NathanFreeman/php-src | Zend/tests/bind_static_exception.phpt | [
"PHP-3.01"
] |
# Copyright 2020-2021 Google, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | Cap'n Proto | 4 | antmicro/fpga-interchange-schema | interchange/References.capnp | [
"Apache-2.0"
] |
;; Copyright (c) 2020 Duncan McGreggor <oubiwann@cogitat.io>
;;
;; 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 ... | LFE | 5 | haetze/lfe | examples/guessing-game2.lfe | [
"Apache-2.0"
] |
package unit.issues;
import unit.Test;
class Issue2676 extends Test {
function test() {
function match1(s:String) {
return switch(s) {
case "foo": 1;
case _.toUpperCase() => "BAR": 2;
case _ + "," + _ => "abc,abc": 3;
case _: 4;
}
}
eq(1, match1("foo"));
eq(4, match1("foo2"));
eq(2, ... | Haxe | 4 | bendmorris/haxe | tests/unit/issues/Issue2676.hx | [
"MIT"
] |
--TEST--
Cannot declare class, because the name is already in use
--FILE--
<?php
function test() {
class A {}
}
test();
test();
?>
--EXPECTF--
Fatal error: Cannot declare class A, because the name is already in use in %s on line %d
| PHP | 3 | thiagooak/php-src | Zend/tests/declare_already_in_use.phpt | [
"PHP-3.01"
] |
h1. JsDoc2 Template with Bootstrap
h2. Abstract
This template make beautiful and functional documents.
h2. Overview
See "JsDoc2 Template with Bootstrap":http://orgachem.github.com/JsDoc2-Template-Bootstrap/ .
h2. Install
bq. To produce output files you must use a template to format the generated documentation. Us... | Textile | 3 | jackyhwei/sipml5 | jsdoc-toolkit/templates/OrgaChem-JsDoc2-Template-Bootstrap/README.textile | [
"Apache-2.0",
"BSD-3-Clause"
] |
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Deep Learning Models -- A collection of various deep learning architectures, models, and tips for TensorFlow and PyTorch in Jupyter Notebooks.\n",
"- Author: Sebastian Raschka\n",
"- GitHub Repository: https://github.com/rasbt/... | Jupyter Notebook | 5 | XiaoshengLin/deeplearning-models | pytorch_ipynb/basic-ml/logistic-regression.ipynb | [
"MIT"
] |
module com.networknt.ip.whitelist {
exports com.networknt.whitelist;
requires com.networknt.config;
requires com.networknt.handler;
requires com.networknt.utility;
requires undertow.core;
requires xnio.api;
requires org.slf4j;
requires java.logging;
} | Jasmin | 3 | KellyShao/light-4j | ip-whitelist/src/main/java/module-info.j | [
"Apache-2.0"
] |
/* Copyright (c) 2017-2019 Netronome Systems, Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <single_ctx_test.uc>
#include "pkt_ipv6_tcp_lso_fixup.uc"
#include <config.h>
#include <global.uc>
#include <pv.uc>
#include <stdmac.uc>
/* Test __pv_lso_fixup() on an IPv6 pkt, last se... | UnrealScript | 4 | pcasconnetronome/nic-firmware | test/datapath/pv_init_nfd_lso_fixup_ipv6_end_test.uc | [
"BSD-2-Clause"
] |
<?xml version="1.0" encoding="UTF-8"?>
<!-- ******************************************************************* -->
<!-- -->
<!-- © Copyright IBM Corp. 2010, 2012 -->
<!-- ... | XPages | 4 | jesse-gallagher/XPagesExtensionLibrary | extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.controls/src/com/ibm/xsp/extlib/config/raw-extlib-datasource.xsp-config | [
"Apache-2.0"
] |
package {
public class Test {
}
}
function assert_modulo(val1, val2) {
trace(val1 % val2);
}
trace("//true % true");
assert_modulo(true, true);
trace("//false % true");
assert_modulo(false, true);
trace("//null % true");
assert_modulo(null, true);
trace("//undefined % true");
assert_modulo(undefined, true);
t... | ActionScript | 3 | Sprak1/ruffle | tests/tests/swfs/avm2/modulo/Test.as | [
"Apache-2.0",
"Unlicense"
] |
Particle p1;
Particle p2;
void setup() {
size(600,400);
p1 = new Particle(100,100,50);
p2 = new Particle(500,200,100);
}
void draw() {
background(0);
if (p2.overlaps(p1)) {
background(255,0,0);
}
p2.x = mouseX;
p2.y = mouseY;
p1.display();
p2.display();
}
| Processing | 4 | aerinkayne/website | Tutorials/Processing/8_OOP/sketch_8_4_communication/sketch_8_4_communication.pde | [
"MIT"
] |
#pragma once
#include "envoy/upstream/retry.h"
#include "envoy/upstream/upstream.h"
namespace Envoy {
class OmitCanaryHostsRetryPredicate : public Upstream::RetryHostPredicate {
public:
bool shouldSelectAnotherHost(const Upstream::Host& candidate_host) override {
return candidate_host.canary();
}
void onHo... | C | 4 | dcillera/envoy | source/extensions/retry/host/omit_canary_hosts/omit_canary_hosts.h | [
"Apache-2.0"
] |
// start custom scss snippet
li.toc-h1:first-child {
height: 38px;
overflow: hidden;
margin-top: 26px;
}
// end custom scss snippet
| SCSS | 2 | nhancv/fijkplayer-0.8.8 | docs/_sass/custom.scss | [
"MIT"
] |
// Shouldn't compile
var x: { a: number; } = { b: 5 }; | TypeScript | 3 | nilamjadhav/TypeScript | tests/cases/compiler/objectLitStructuralTypeMismatch.ts | [
"Apache-2.0"
] |
This is version 0_1 of bfcl
bfcl is a BrainFuck compiler for Linux written itself in BrainFuck
It reads the input from stdin and outputs a Linux ELF binary on stdout
Currently no optimization at all is done (which is another reason why
this thing is so sloooooooow on my system :) but that is planned for
version 0_2
C... | Brainfuck | 5 | RubenNL/brainheck | examples/compiler/bfcl.bf | [
"Apache-2.0"
] |
ruleset io.picolabs.manifold.email_notifications {
meta {
shares __testing, getRecipient, isVerified
use module io.picolabs.wrangler alias wrangler
}
global {
__testing = { "queries":
[ { "name": "__testing" } ]
, "events":
[ { "domain": "email", "type": "notification", "attrs": [ "... | KRL | 4 | Picolab/ManifoldRewrite | Manifold_krl/io.picolabs.manifold.email_notifications.krl | [
"MIT"
] |
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 300;
src: local('Open Sans Light'), local('OpenSans-Light'), url('./OpenSans-Light.ttf') format('truetype');
}
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans Regular'), local('Open... | CSS | 4 | coreyscherbing/angular | third_party/fonts.google.com/open-sans/open-sans.css | [
"MIT"
] |
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://purl.org/kid/ns#"
py:extends="'base.kid'"
lang="en">
<head>
<title>${title}</title>
</head>
<body>
<div>${gree... | Genshi | 3 | grounzeroj/AsBuiltReport | examples/bench/kid/template.kid | [
"MIT"
] |
/* Copyright 2018 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
Unless required by applicable law or a... | C++ | 5 | EricRemmerswaal/tensorflow | tensorflow/compiler/xla/client/lib/loops.cc | [
"Apache-2.0"
] |
{{
Simple demo showing uses of Strings Library v2
}}
CON
{ ==[ CLOCK SET ]== }
_CLKMODE = XTAL1 + PLL2X
_XINFREQ = 5_000_000 ' 5MHz Crystal
OBJ
DEBUG : "FullDuplexSerial"
STR : "STRINGS2"
VAR
byte str_test[50]
PUB Main | strh
DEBUG.s... | Propeller Spin | 5 | deets/propeller | libraries/community/p1/All/Strings Library v2/STRINGS2/STRINGS_simple_demo.spin | [
"MIT"
] |
#version 450 core
#define PRECISION $precision
layout(std430) buffer;
/* Qualifiers: layout - storage - precision - memory */
layout(set = 0, binding = 0) uniform PRECISION restrict writeonly image3D uOutput;
layout(set = 0, binding = 1) uniform PRECISION sampler3D uInput;
layout(set = 0, bindin... | GLSL | 3 | Hacky-DH/pytorch | aten/src/ATen/native/vulkan/glsl/mean2d.glsl | [
"Intel"
] |
DROP TABLE "public"."t2";
| SQL | 0 | gh-oss-contributor/graphql-engine-1 | cli/pkg/migrate/testdata/projectv3/migrations/s2/1623841485323_create_table_public_t2/down.sql | [
"Apache-2.0",
"MIT"
] |
FORMAT: 1A
# Testing 'text/plain' Request API
# POST /data
+ Request (text/plain)
+ Body
test equals to 42
+ Response 200 (application/json; charset=utf-8)
+ Body
{"test": "OK"}
| API Blueprint | 3 | tomoyamachi/dredd | packages/dredd/test/fixtures/request/text-plain.apib | [
"MIT"
] |
(* ****** ****** *)
//
// HX-2013-11
//
// Implementing a variant of
// the problem of Dining Philosophers
//
(* ****** ****** *)
#include
"share/atspre_define.hats"
(* ****** ****** *)
staload "{$LIBATSHWXI}/teaching/mythread/SATS/channel.sats"
(* ****** ****** *)
%{#
#define NPHIL 5
%} // end of [%{#]
#define NP... | ATS | 3 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/ATS/DiningPhil2.sats | [
"MIT"
] |
{{- define "gateway.name" -}}
{{- if eq .Release.Name "RELEASE-NAME" -}}
{{- .Values.name | default "istio-ingressgateway" -}}
{{- else -}}
{{- .Values.name | default .Release.Name | default "istio-ingressgateway" -}}
{{- end -}}
{{- end }}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- de... | Smarty | 4 | rveerama1/istio | manifests/charts/gateway/templates/_helpers.tpl | [
"Apache-2.0"
] |
package scala.tools.eclipse.contribution.weaving.jdt.launching;
import java.util.HashSet;
import java.util.Set;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.internal.junit.launcher.TestKind;
import org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationTab;
@Sup... | AspectJ | 3 | elemgee/scala-ide | org.scala-ide.sdt.aspects/src/scala/tools/eclipse/contribution/weaving/jdt/launching/JUnitLaunchConfigurationTabAspect.aj | [
"BSD-3-Clause"
] |
/* Copyright (c) 2017-2019 Netronome Systems, Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
;TEST_INIT_EXEC nfp-reg mereg:i32.me0.XferIn_32=0xf0bf
#include <bitfields.uc>
#include "actions_rss.uc"
#include "pkt_ipv4_tcp_x88.uc"
.reg queue
.reg queue_offset
move(queue, 0)
.while (queu... | UnrealScript | 3 | pcasconnetronome/nic-firmware | test/datapath/actions_rss_queue_select_test.uc | [
"BSD-2-Clause"
] |
{
"tokens": true,
"BABEL_8_BREAKING": false
}
| JSON | 0 | fatash89/babel | packages/babel-parser/test/fixtures/core/opts/private-name-tokens-true-babel-7/options.json | [
"MIT"
] |
package com.alibaba.json.bvt.bug;
import java.util.HashMap;
import java.util.Map;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;
import junit.framework.TestCase;
public class Bug_for_lenolix_5 extends TestCase {
public void test_for_objectKey() throws Exception {
fin... | Java | 4 | Czarek93/fastjson | src/test/java/com/alibaba/json/bvt/bug/Bug_for_lenolix_5.java | [
"Apache-2.0"
] |
----------------------------------------------------------------------------------
-- Engineer: Mike Field <hamster@snap.net.nz>
--
-- Description: Cheapscope - captures signals and then sends them as ASCII
-- to the serial port
--
-- I've put this together for my personal use. You are... | VHDL | 5 | AmigaPorts/amiga2000-gfxcard | attic/PapPro-sdram_verilog_v0.1/cheapscope.vhd | [
"MIT",
"IJG",
"Unlicense"
] |
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
inherit python git-2
PYTHON_DEPEND="2:2.4"
RESTRICT_PYTHON_ABIS="3.*"
DESCRIPTION="Diamond is a python daemon that collects system metrics and publishes them to Graphite (and others)."
HOME... | Gentoo Ebuild | 3 | hermdog/Diamond | gentoo/diamond.ebuild | [
"MIT"
] |
=pod
=head1 NAME
b2i_PVK_bio, b2i_PVK_bio_ex, i2b_PVK_bio, i2b_PVK_bio_ex - Decode and encode
functions for reading and writing MSBLOB format private keys
=head1 SYNOPSIS
#include <openssl/pem.h>
EVP_PKEY *b2i_PVK_bio(BIO *in, pem_password_cb *cb, void *u);
EVP_PKEY *b2i_PVK_bio_ex(BIO *in, pem_password_cb *cb,... | Pod | 5 | pmesnier/openssl | doc/man3/b2i_PVK_bio_ex.pod | [
"Apache-2.0"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 4 | sbj42/vscode | src/vs/workbench/contrib/terminal/test/common/environmentVariableShared.test.ts | [
"MIT"
] |
*-------------------------------------------------------------------------------
* Defining the sets
*-------------------------------------------------------------------------------
sets
h 'all hours' /0*166439/
first(h) 'fir... | GAMS | 5 | BehrangShirizadeh/VRE_2016 | model/EOLES_elecRES_long.gms | [
"CC-BY-4.0"
] |
#!/usr/bin/env bash
# Copyright 2015 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 | 4 | 767829413/kubernetes | test/images/volume/rbd/bootstrap.sh | [
"Apache-2.0"
] |
(defpackage :ql-to-nix-util
(:use :common-lisp)
(:export #:nix-prefetch-url #:wrap #:pathname-as-directory #:copy-directory-tree #:with-temporary-directory #:sym #:with-temporary-asdf-cache #:with-asdf-cache)
(:documentation
"A collection of useful functions and macros that ql-to-nix will use."))
(in-package :... | Common Lisp | 4 | collinwright/nixpkgs | pkgs/development/lisp-modules/quicklisp-to-nix/util.lisp | [
"MIT"
] |
Red [
Needs: View
Config: [GUI-engine: 'test]
]
hello: name: tl: none
win: view/no-wait [
hello: button "Hello" [print "ok"]
name: field ;on-key ['done]
tl: text-list ["a" "b" "c"]
bb: base white on-down [face/color: red]
]
set-focus hello
do-event 'click
set-focus name
do-event/with 'key #"4"
do-event/with '... | Red | 3 | 0xflotus/red | tests/test-backend.red | [
"BSL-1.0",
"BSD-3-Clause"
] |
import io
import multiprocessing.queues
from multiprocessing.reduction import ForkingPickler
import pickle
class ConnectionWrapper(object):
"""Proxy class for _multiprocessing.Connection which uses ForkingPickler to
serialize objects"""
def __init__(self, conn):
self.conn = conn
def send(sel... | Python | 4 | Hacky-DH/pytorch | torch/multiprocessing/queue.py | [
"Intel"
] |
import QtQuick 2.0
import QtQuick.Controls 1.0
import QtQuick.Layouts 1.0
import im.ricochet 1.0
Label {
text: {
if (torControl.status === TorControl.Error)
return qsTr("Connection failed")
if (torControl.status < TorControl.Connected) {
//: \u2026 is ellipsis
re... | QML | 4 | garrettr/ricochet | src/ui/qml/TorStateWidget.qml | [
"OpenSSL"
] |
#N struct help-setsize-template float x float y array array1 help-setsize-array1-template
;
#N struct help-setsize-array1-template float y;
#N canvas 568 117 643 519 12;
#X text 58 443 see also:;
#N canvas 393 50 495 265 help-setsize-template 0;
#X obj 27 174 filledpolygon 509 509 0 -10 -10 10 -10 10 10 -10 10;
#X obj ... | Pure Data | 4 | mcclure/pure-data | doc/5.reference/setsize-help.pd | [
"TCL"
] |
{} (:package |test-fn)
:configs $ {} (:init-fn |test-fn.main/main!) (:reload-fn |test-fn.main/reload!)
:files $ {}
|test-fn.main $ {}
:ns $ quote
ns test-fn.main $ :require
util.core :refer $ log-title
:defs $ {}
|main! $ quote
defn main! ()
log-tit... | Cirru | 3 | calcit-lang/calcit.rs | calcit/test-fn.cirru | [
"MIT"
] |
$TTL 300
_ntp._udp IN SRV 0 0 1 zeros.foo.com.
IN SRV 1 100 123 one.foo.com.
IN SRV 2 100 123 two.foo.com.
IN SRV 3 100 123 localhost.foo.com.
IN SRV 4 100 123 three.example.com.
| DNS Zone | 3 | IT-Sumpfling/dnscontrol | pkg/js/parse_tests/021-srv/foo.com.zone | [
"MIT"
] |
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: fcaps.eclass
# @MAINTAINER:
# base-system@gentoo.org
# @BLURB: function to set POSIX file-based capabilities
# @DESCRIPTION:
# This eclass provides a function to set file-based capabilities on binaries... | Gentoo Eclass | 5 | NighttimeDriver50000/Sabayon-Packages | local_overlay/eclass/fcaps.eclass | [
"MIT"
] |
#*****************************************************************************
# *
# Make file for VMS *
# Author : J.Jansen (joukj@hrem.stm.tudelft.nl) *
# Da... | Module Management System | 3 | Bloodknight/NeuTorsion | code/wxWidgets/descrip.mms | [
"MIT"
] |
import structs/HashMap
import ../Thread, ThreadUnix
include unistd
version(unix || apple) {
include pthread
pthread_self: extern func -> PThread
ThreadLocalUnix: class <T> extends ThreadLocal<T> {
values := HashMap<PThread, T> new()
valuesMutex := Mutex new()
init: func ~uni... | ooc | 4 | fredrikbryntesson/launchtest | sdk/threading/native/ThreadLocalUnix.ooc | [
"MIT"
] |
# API name
# Group Users
## User [/users/{id}{?country,active,votes}]
### Retrieve User [GET]
+ Parameters
+ id: pavan (string, required) - Username
+ country
+ active (boolean)
+ votes (number)
+ Response 200 (application/json)
{}
| API Blueprint | 4 | darkcl/drafter | test/fixtures/api/action-parameters.apib | [
"MIT"
] |
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!319 &31900000
AvatarMask:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Archer_avatarMask
m_Mask: 010000000100000001000000010000000100000001000000010000000100000001000000010000000... | Mask | 2 | Kijung-Luke-Kim/unity-tps | Assets/Prefabs/Characters/Archer/Model/Archer_avatarMask.mask | [
"MIT"
] |
defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web_namespace, schema.alias) %>Live.FormComponent do
use <%= inspect context.web_module %>, :live_component
alias <%= inspect context.module %>
@impl true
def update(%{<%= schema.singular %>: <%= schema.singular %>} = assigns, socket... | Elixir | 4 | faheempatel/phoenix | priv/templates/phx.gen.live/form_component.ex | [
"MIT"
] |
import { isFunction, map, filter, extend, omit, identity, range, isEmpty } from "lodash";
import React from "react";
import PropTypes from "prop-types";
import classNames from "classnames";
import Table from "antd/lib/table";
import Skeleton from "antd/lib/skeleton";
import FavoritesControl from "@/components/Favorites... | JSX | 5 | zero1number/redash | client/app/components/items-list/components/ItemsTable.jsx | [
"BSD-2-Clause"
] |
<!doctype html>
<html lang="en" data-framework="riotjs">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Riot.js • TodoMVC</title>
<link rel="stylesheet" href="node_modules/todomvc-common/base.css">
<link rel="stylesheet" href="node_modules/todomvc-ap... | HTML | 2 | dtelaroli/todomvc | examples/riotjs/index.html | [
"MIT"
] |
nvd erase_entire pref
rm d:\autoexec.ash
reboot yes
| AGS Script | 0 | waltersgrey/autoexechack | RebootGoPro/Hero3Black/autoexec.ash | [
"MIT"
] |
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>New Window</title>
</head>
<body style="margin:0">
<div style="width: 100%; height: 50px; background-color: green; -webkit-app-region: drag;">
</div>
This is the popup window<br/>
<script>
var enable = false;
var gui = ... | HTML | 4 | frank-dspeed/nw.js | test/manual/window/popup.html | [
"MIT"
] |
package unit.issues;
#if (java || cs)
@:keep
private class Overloader {
public function new() {
}
public function toString() {
return "Overloader!";
}
@:generic static public function genericMe<T>(t:T) {
return test(t);
}
@:generic static public function genericMeMember<T>(m:Overloader, t:T) {
return... | Haxe | 4 | wiltonlazary/haxe | tests/unit/src/unit/issues/Issue7599.hx | [
"MIT"
] |
#console.log "meteor: ", Meteor
#console.log "plugin: ", Plugin
#console.log "hello"
#console.log "org?", global.Org?
{Compiler} = Org = require?('org') ? global.Org
handler = (compileStep, isLiterate)->
inputFile = compileStep.inputPath
source = compileStep.read().toString('utf8')... | Literate CoffeeScript | 4 | zot/Leisure | leisure/plugin/compilerPlugin.litcoffee | [
"Zlib"
] |
redo-ifchange LD yellow.o
./LD "$3" yellow.o
../sleep 2
| Stata | 1 | BlameJohnny/redo | t/110-compile/bellow.do | [
"Apache-2.0"
] |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This is a "No Compile Test" suite.
// https://dev.chromium.org/developers/testing/no-compile-tests
#include "base/sequence_checker.h"
namespace {
cl... | nesC | 4 | thorium-cfx/fivem | vendor/chromium/base/sequence_checker_unittest.nc | [
"MIT"
] |
### 请求 /system/user/profile/get 接口 => 没有权限
GET {{baseUrl}}/system/user/profile/get
Authorization: Bearer test1
| HTTP | 1 | cksspk/ruoyi-vue-pro | yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/system/controller/user/SysUserProfileController.http | [
"MIT"
] |
plugin simpleObject AlembicNull
name:"AlembicNull"
classID:#(0x76ff9f2a, 0x71fd65c7)
category:"Alembic"
(
rollout params "Do not use!"
(
label testLabA "This is not intended for use."
label testLabB "It is part of the ACB Time Control"
label testLabC "gizmo display"
)
... | MAXScript | 3 | aboellinger/ExocortexCrate | 3DSMax/MaxScripts/ExocortexCrate/Exocortex-Helper-AlembicTimeControl_Mesh.mcr | [
"BSD-3-Clause"
] |
CLASS zcl_abapgit_object_nspc DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_objects_super
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_abapgit_object .
PROTECTED SECTION.
PRIVATE SECTION.
TYPES:
BEGIN OF ty_nspc,
namespace TYPE trnspacet-namespace,
replicense TYPE trnspac... | ABAP | 4 | IvxLars/abapGit | src/objects/zcl_abapgit_object_nspc.clas.abap | [
"MIT"
] |
import io/[Writer, BufferWriter]
import structs/[Bag, HashBag]
import text/[EscapeSequence]
import Parser
GeneratorError: class extends Exception {
init: super func ~noOrigin
}
EXCLUDE := const "'" // don't escape the '
generate: func <T> (writer: Writer, obj: T) {
match T {
case String => {
... | ooc | 4 | fredrikbryntesson/launchtest | sdk/text/json/Generator.ooc | [
"MIT"
] |
module: dfmc-harp-x86-cg
Author: Nosa Omo
Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc.
All rights reserved.
License: See License.txt in this distribution for details.
Warranty: Distributed WITHOUT WARRANTY OF ANY KIND
/// ACCESSORS
define sideways method op-... | Dylan | 3 | kryptine/opendylan | sources/dfmc/harp-x86-cg/x86-primitives.dylan | [
"BSD-2-Clause"
] |
--TEST--
Ensure default ini settings
--SKIPIF--
<?php if (!extension_loaded("grpc")) print "skip"; ?>
--FILE--
<?php
if (ini_get('grpc.enable_fork_support')) {
die('grpc.enable_fork_support not off by default');
}
if (ini_get('grpc.poll_strategy') !== "") {
die('grpc.poll_strategy not empty by default');
}
echo... | PHP | 3 | mpminardi/grpc | src/php/ext/grpc/tests/grpc-default-ini.phpt | [
"Apache-2.0"
] |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Oleksandr Chernihov <o.chernihov@gmail.com>, 2014
# Illia Volochii <illia.volochii@gmail.com>, 2021
# Jannis Leidel <jannis@leidel.info>, 2011
# Mykola Zamkovoi <nickzam@gmail.com>, 2014
# Vitaliy Kozlovskyi <ubombi@gmail.com>, ... | Gettext Catalog | 2 | Joshua-Barawa/My-Photos | venv/lib/python3.8/site-packages/django/contrib/redirects/locale/uk/LC_MESSAGES/django.po | [
"PostgreSQL",
"Unlicense"
] |
UrlArticle form template.
{{ form.errors }}
| HTML | 0 | ni-ning/django | tests/templates/views/urlarticle_form.html | [
"CNRI-Python-GPL-Compatible",
"BSD-3-Clause"
] |
static char g_Script_vscript_vbsp[] = R"vscript(
//========= Mapbase - https://github.com/mapbase-source/source-sdk-2013 ============//
//
// Purpose:
//
//=============================================================================//
function UniqueString( string = "" )
{
return ::DoUniqueString( string.tostring(... | Squirrel | 4 | map-labs-source/Map-Labs | sp/src/utils/vbsp/vscript_vbsp.nut | [
"Unlicense"
] |
# Broken , (should be ;)
PREFIX : <http://example/ns#>
SELECT * WHERE
{ :s :p1 :o1 , :p2 :o2}
| SPARQL | 1 | alpano-unibz/ontop | test/sparql-compliance/src/test/resources/testcases-dawg/data-r2/syntax-sparql3/syn-bad-24.rq | [
"Apache-2.0"
] |
eTab growSize 4
{ 4
"Version" eTab growSize 4
{ 2
"Major" s 2
"Minor" s 1
}
"Project" eTab growSize 4
{ 12
"Name" ea "chat"
"Project Type" i 0
"EosFramework" ea "ChatApp"
"Environment" i 1
"Company Name" eStr null
"Product Name" eStr null
"Product Version" eStr 3 "0.0"
"Copyright Message" eStr ... | Ecere Projects | 2 | sarangbaheti/misc-code | msj_archives/code/Msj1296.src/Thin Client/chat.epj | [
"Unlicense"
] |
@article{lundberg2020local2global,
title={From local explanations to global understanding with explainable AI for trees},
author={Lundberg, Scott M. and Erion, Gabriel and Chen, Hugh and DeGrave, Alex and Prutkin, Jordan M. and Nair, Bala and Katz, Ronit and Himmelfarb, Jonathan and Bansal, Nisha and Lee, Su-In},
... | TeX | 1 | santanaangel/shap | docs/references/tree_explainer.bib | [
"MIT"
] |
%{--
- Copyright 2016 SimplifyOps, Inc. (http://simplifyops.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
-
- Unles... | Groovy Server Pages | 3 | kbens/rundeck | rundeckapp/grails-app/views/reports/_advDateFilters.gsp | [
"Apache-2.0"
] |
#!zsh
alias artisan='php artisan'
alias bob='php artisan bob::build'
# Development
alias pas='php artisan serve'
# Database
alias pam='php artisan migrate'
alias pamf='php artisan migrate:fresh'
alias pamfs='php artisan migrate:fresh --seed'
alias pamr='php artisan migrate:rollback'
alias pads='php artisan db:seed'
... | Shell | 4 | chensanle/ohmyzsh | plugins/laravel/laravel.plugin.zsh | [
"MIT"
] |
#tag Module
Protected Module ApplicationRecoveryWFS
#tag Method, Flags = &h21
Private Function RecoveryCallback(param as UInt32) As UInt32
// This callback method must be a StdCall
#pragma X86CallingConvention StdCall
mCallback.RecoveryCallback( param )
Exception
// If anything bad happen... | REALbasic | 4 | bskrtich/WFS | Windows Functionality Suite/Process Management/Modules/ApplicationRecoveryWFS.rbbas | [
"MIT"
] |
package {
import GZ.Gpu.Gpu;
import GZ.Sys.Interface.Interface;
import GZ.Input.Key;
import GZ.Sys.Interface.Context;
import GZ.Sys.Interface.Window;
import GZ.Sys.System;
//import GzWindows.Sys.Message.OpContextLink;
<cpp_h>
#include "Lib_GzWindows/MainHeader.h"
</cpp_h>
<cpp>
#include "Lib_GZ/Lib... | Redcode | 3 | VLiance/GZE | src/SubLib_System/Lib_GzWindows/Overplace/OpContext.cw | [
"Apache-2.0"
] |
/*
* Copyright (c) 2012-2021 Daniele Bartolini et al.
* License: https://github.com/dbartolini/crown/blob/master/LICENSE
*/
using Gee;
namespace Crown
{
[Compact]
public struct Quaternion
{
public double x;
public double y;
public double z;
public double w;
public Quaternion(double x, double y, double z, dou... | Vala | 4 | galek/crown | tools/core/math/quaternion.vala | [
"MIT"
] |
proc hpbnet data=sampsio.hmeq nbin=5 structure=Naive TAN PC MB bestmodel
missingint=IMPUTE missingnom=LEVEL;
target Bad;
input Reason Job Delinq Derog Ninq/level=NOM;
input Loan Mortdue Value Yoj Clage Clno Debtinc/level=INT;
output pred=pred network=net parameter=parameter varinfo=varinfo varlevel=varlevel v... | SAS | 5 | sassoftware/enlighten-apply | BayesianNetwork/SGF_HPBNET_example.sas | [
"Apache-2.0"
] |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
.selectContainer {
display: inline;
padding: 5px;
user-select: none;
}
| CSS | 1 | EkaterinaMozheiko/docusaurus | website/src/components/showcase/ShowcaseSelect/styles.module.css | [
"CC-BY-4.0",
"MIT"
] |
using Go = import "go.capnp";
@0x83c2b5818e83ab19;
$Go.package("template_fix");
$Go.import("capnproto.org/go/capnp/v3/capnpc-go/testdata/group");
struct SomeMisguidedStruct {
someGroup :group {
someGroupField @0 :UInt64;
}
}
| Cap'n Proto | 4 | kasvtv/go-capnproto2 | capnpc-go/testdata/group.capnp | [
"MIT"
] |
:: generated from colcon_core/shell/template/hook_append_value.bat.em
@@echo off
@{
import os
if os.path.isabs(subdirectory):
value = subdirectory
else:
value = '%COLCON_CURRENT_PREFIX%'
if subdirectory:
value += '\\' + subdirectory
}@
call:colcon_append_unique_value @(name) "@(value)"
goto :eof
... | EmberScript | 4 | esteve/colcon-core | colcon_core/shell/template/hook_append_value.bat.em | [
"Apache-2.0"
] |
Write "Hello world!",!
| M | 0 | rachelktyjohnson/hello-worlds | examples/m/Mumps.mumps | [
"Unlicense"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.