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 |
|---|---|---|---|---|---|
"Test Case" by Andrew Plotkin.
Include Trivial Extension by Andrew Plotkin.
Volume 1 - overview
Chapter - setting the scene
The Kitchen is a room.
[Comment: this kitchen is modelled after the one in Zork, although it lacks the detail to establish this to the player.]
Section - the kitchen table
The spicerack is ... | Inform 7 | 5 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Inform 7/story.ni | [
"MIT"
] |
<!DOCTYPE html>
<html>
<!--
Test for jQuery.holdReady. Needs to be a
standalone test since it deals with DOM
ready.
-->
<head>
<title>
jQuery.holdReady Test
</title>
<style>
div { margin-top: 10px; }
#output { background-color: green }
#expectedOutput { background-color: green }
</style>
<script src="..... | HTML | 5 | ggomez3/survey | data/readywait.html | [
"MIT"
] |
p { text-indent: 0; }
p, H1, H2, H3, H4, H5, H6, H7, H8, table { margin-top: 1em;}
.pagebreak { page-break-before: always; }
#toc H3 {
text-indent: 1em;
}
#toc .document {
text-indent: 2em;
} | CSS | 3 | defc0n1/shoppe_promo | vendor/cache/gems/rails-4.2.6/guides/assets/stylesheets/kindle.css | [
"MIT"
] |
<!-- #docplaster -->
<!-- #docregion app-component-template -->
<h1>
{{title}}
</h1>
<button routerLink="/customers">Customers</button>
<button routerLink="/orders">Orders</button>
<button routerLink="">Home</button>
<router-outlet></router-outlet>
<!-- #enddocregion app-component-template -->
| HTML | 3 | coreyscherbing/angular | aio/content/examples/lazy-loading-ngmodules/src/app/app.component.html | [
"MIT"
] |
/var/list/turf/turfs = list()
/turf/New()
. = ..()
global.turfs += src
/turf/Del()
global.turfs -= src
. = ..()
| DM | 3 | PJB3005/GoonLight-Heist | stubs/turf.dm | [
"MIT"
] |
grammar t021hoist;
options {
language=JavaScript;
}
/* With this true, enum is seen as a keyword. False, it's an identifier */
@members {
this.enableEnum = false;
}
stat returns [enumIs]
: identifier {enumIs = "ID"}
| enumAsKeyword {enumIs = "keyword"}
;
identifier
: ID
| enumAsID
;
... | G-code | 4 | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | java/java2py/antlr-3.1.3/runtime/JavaScript/tests/functional/t021hoist.g | [
"Apache-2.0"
] |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
/// <reference lib="webworker" />
export declare global {
interface ServiceWorkerGlobalScope {
/**
* Disa... | TypeScript | 3 | John-Cassidy/angular | packages/service-worker/worker/src/service-worker.d.ts | [
"MIT"
] |
% These tests create and distribute different entities.
% Each entity is inserted in a weak dictionary. After a number of
% applications, they are discarded locally and remotely. They are
% then expected to show on the gc-stream of the weak dictionary.
% Since the current implementation of the message passing layer
% ... | Oz | 5 | Ahzed11/mozart2 | platform-test/dp/credit.oz | [
"BSD-2-Clause"
] |
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec"
uri="http://www.springframework.org/security/tags"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<fmt:setBundle basename="messages" />
<%@ p... | Java Server Pages | 3 | zeesh49/tutorials | spring-static-resources/src/main/webapp/WEB-INF/view/login.jsp | [
"MIT"
] |
package {{apiPackage}};
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;
import org.springframework.contex... | HTML+Django | 4 | MalcolmScoffable/openapi-generator | modules/openapi-generator/src/main/resources/JavaJaxRS/cxf/server/SpringBootApplication.mustache | [
"Apache-2.0"
] |
*-------------------------------------------------------------------------------
* Report model progress
*-------------------------------------------------------------------------------
$setargs phase
$ifthen %phase% == 'init'
set iterrep / infes, nonopt, itertime, tottime /;
set timeiterrep(iterrep) / itertime, tot... | GAMS | 3 | witch-team/witchmodel | algo/report.gms | [
"Apache-2.0"
] |
//This configuration file is for GNAT test.
//This is to simulate the situation when an IPv4 private net try to connect to the IPv6 internet (e.g. 6bone).
//18.26.4.125 => 18.26.4.60 , where 18.26.4.60 is actually some ipv4/ipv6 node on internet4/6
//src address is private address in the ipv4 local net.
InfiniteSource... | Click | 4 | MacWR/Click-changed-for-ParaGraph | conf/gnat02.click | [
"Apache-2.0"
] |
/*--------------------------------------------------*/
/* SAS Programming for R Users - code for exercises */
/* Copyright 2016 SAS Institute Inc. */
/*--------------------------------------------------*/
/*SP4R07s02*/
/*Part A*/
proc iml;
call randseed(27606);
n = 20;
beta0 = 3;
beta1 = 2;... | SAS | 4 | snowdj/sas-prog-for-r-users | code/SP4R07s02.sas | [
"CC-BY-4.0"
] |
token pod_formatting_code {
$<code>=<[A..Z]>
'<' { $*POD_IN_FORMATTINGCODE := 1 }
$<content>=[ <!before '>'> <pod_string_character> ]+
'>' { $*POD_IN_FORMATTINGCODE := 0 }
}
token pod_string {
<pod_string_character>+
}
token something:sym«<» {
<!>
}
token name {
<!>
}
token comment:sym<#... | Perl6 | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Perl 6/grammar-test.p6 | [
"MIT"
] |
import torch
# ModuleList with elements of type Module
class FooModule(torch.nn.Module):
pass
class BarModule(torch.nn.Module):
pass
ml: torch.nn.ModuleList = torch.nn.ModuleList([FooModule(), BarModule()])
ml[0].children() == [] # noqa: B015
reveal_type(ml) # E: {ModuleList}
| Python | 4 | Hacky-DH/pytorch | test/typing/reveal/module_list.py | [
"Intel"
] |
# longlong.m4 serial 17
dnl Copyright (C) 1999-2007, 2009-2017 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl From Paul Eggert.
# Define... | M4 | 5 | fossabot/chroot | share/gettext-tiny/m4/longlong.m4 | [
"ISC"
] |
{-# OPTIONS --prop --rewriting --confluence-check #-}
open import Agda.Primitive
open import Agda.Builtin.Equality
open import Agda.Builtin.Nat renaming (Nat to ℕ; _+_ to _+ℕ_)
infix 4 _≐_
data _≐_ {ℓ} {A : Set ℓ} (x : A) : A → Prop ℓ where
refl : x ≐ x
{-# BUILTIN REWRITE _≐_ #-}
variable
ℓ : Level
A B C : S... | Agda | 5 | cruhland/agda | test/Fail/ConstructorRewriteConfluenceFail.agda | [
"MIT"
] |
package unit.issues;
import unit.Test;
import haxe.Template;
class Issue2254 extends Test {
function test()
{
var str = 'HI, IT IS ::if !isIt::NOT::end::';
var t = new haxe.Template(str);
eq("HI, IT IS ", t.execute({ isIt:true }));
eq("HI, IT IS NOT", t.execute({ isIt:false }));
}
}
| Haxe | 3 | jonasmalacofilho/haxe | tests/unit/src/unit/issues/Issue2254.hx | [
"MIT"
] |
SELECT
t.table_schema,
t.table_name,
t.info :: json,
coalesce(cc.computed_fields, '[]') as computed_fields
FROM hdb_catalog.hdb_table_info_agg t
LEFT OUTER JOIN (
SELECT
c.table_schema,
c.table_name,
json_agg(
json_build_object(
'name', c.computed_field_name,
... | SQL | 3 | gh-oss-contributor/graphql-engine-1 | server/src-rsr/table_meta.sql | [
"Apache-2.0",
"MIT"
] |
require(httr)
data = '{"admins":{"names":[], "roles":[]}, "readers":{"names":["joe"],"roles":[]}}'
res <- httr::PUT(url = 'http://localhost:5984/test/_security', body = data, httr::authenticate('admin', '123'))
| R | 3 | kado0413/curlconverter | fixtures/r/put_basic_auth_json_data.r | [
"MIT"
] |
Oscillator osc2 { type square, frequency 800 } [ gain1 ]
Oscillator osc1 { type square, frequency 540 } [ gain1 ]
Gain gain1 { gain [ setValue 0.5, setValueAtTime 0.5 t + 0, exponentialRampToValueAtTime 0.01 t + 1.0 ] } [ filter ]
BiquadFilter filter { type bandpass, frequency 800 } [ output ]
End
| Augeas | 3 | newlandsvalley/purescript-audiograph | audiograph-editor/dist/augsamples/cowbell.aug | [
"MIT"
] |
import {Component, NgModule} from '@angular/core';
@Component({
selector: 'my-component',
template: `
<div i18n="meaningA|descA@@idA">Content A</div>
<div i18n-title="meaningB|descB@@idB" title="Title B">Content B</div>
<div i18n-title="meaningC|" title="Title C">Content C</div>
<div i18n-title="meaningD|d... | TypeScript | 4 | John-Cassidy/angular | packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/meaning_description.ts | [
"MIT"
] |
module.exports (terms) =
resolve = terms.term {
constructor (term) =
self.isResolve = true
self.resolve = term.promisify ()
makeAsyncCallWithCallback (onFulfilled, onRejected) =
args = []
if (onFulfilled @and onFulfilled != terms.onFulfilledFunction)
args.push (onFulfilled)
... | PogoScript | 3 | Sotrek/Alexa | Alexa_Cookbook/Workshop/StatePop/4_IOT/tests/node_modules/aws-sdk/node_modules/cucumber/node_modules/pogo/lib/resolve.pogo | [
"MIT"
] |
BresultJ | PureBasic | 0 | cnheider/onnx | onnx/backend/test/data/node/test_argmax_no_keepdims_example/test_data_set_0/output_0.pb | [
"MIT"
] |
-- Copyright 2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local url = require("url")
name = "Searx"
type = "scrape"
function start()
set_rate_limit(4)
math.randomseed(os.time())
end
function vertical(ctx, domain)
... | Ada | 4 | Elon143/Amass | resources/scripts/scrape/searx.ads | [
"Apache-2.0"
] |
--TEST--
Bug #23894 (sprintf() decimal specifiers problem) 32bit version
--SKIPIF--
<?php
if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
?>
--FILE--
<?php
$a = -12.3456;
$test = sprintf("%04d", $a);
var_dump($test, bin2hex($test));
$test = sprintf("% 13u", $a);
var_dump($test, bin2hex($test));... | PHP | 3 | NathanFreeman/php-src | ext/standard/tests/strings/bug23894_32bit.phpt | [
"PHP-3.01"
] |
extensions [gis]
breed [fish a-fish]
fish-own [
age
sex
flockmates
nearest-neighbor
E-ingested
E-survive
E-growth
E-repro
]
patches-own [
lake ; values of lake raster (attersee.asc dataset): 0 = no lake; 1 = lake
]
globals [
cohesion-flag ; helper variable to tag schools
... | NetLogo | 5 | ajnavarro/language-dataset | data/github.com/ZGIS/spatial-simulation/1b5d8d73c2dbdfafb4fab4ddd879184e5c50a3bf/PublishedModels/Wallentin & Neuwirth 2017/003_agent-stock - stock-stock.nlogo | [
"MIT"
] |
# P10 - Min-Cost-Flow Problem
# Read parameters from file
param file := "instances/fluss1.txt";
param n := read file as "1n" skip 0 use 1 comment "#";
set N := { 1 .. n };
param u[N*N] := read file as "n+" skip 1 use n comment "#";
param c[N*N] := read file as "n+" skip n+1 use n comment "#";
param s[N] := read file ... | Zimpl | 5 | ArielMant0/ko2017 | sheet12/p10.zpl | [
"MIT"
] |
[Desktop Entry]
Name=Fuzzbunch
Comment=NSA Exploit framework
Exec=/usr/bin/fuzzbunch
Terminal=false
Type=Application
Categories=Wine;
| desktop | 1 | cyberqueen-meg/blackarch | packages/fuzzbunch/fuzzbunch.desktop | [
"BSD-3-Clause"
] |
module FunctionsInIndices where
open import Prelude
open import Eq
data Tree (a : Set) : ℕ -> Set where
leaf : a -> Tree a 1
node : forall n₁ n₂ -> Tree a n₁ -> Tree a n₂ -> Tree a (n₁ + n₂)
-- This does not work:
-- leftmost : forall {a} n -> Tree a (suc n) -> a
-- leftmost .0 (leaf x) ... | Agda | 4 | cruhland/agda | examples/outdated-and-incorrect/FunctionsInIndices.agda | [
"MIT"
] |
import "std/test"
test.run("Single statement if expressions", fn(assert) {
let counter = 0
if true {
counter += 1
}
if (true) {
counter += 1
}
if true: counter += 1
if (true): counter += 1
assert.isEq(counter, 4)
})
test.run("Various if expressions", fn(assert) {
... | Inform 7 | 5 | lfkeitel/nitrogen | tests/basic/conditionals.ni | [
"BSD-3-Clause"
] |
/++
Auto-generated Linux syscall constants for X86
+/
module mir.linux.arch.x86.uapi._asm.unistd;
version(LDC) pragma(LDC_no_moduleinfo);
enum NR_restart_syscall = 0;
enum NR_exit = 1;
enum NR_fork = 2;
enum NR_read = 3;
enum NR_write = 4;
enum NR_open = 5;
enum NR_close = 6;
enum NR_waitpid = 7;
enum NR_creat = 8;
en... | D | 1 | libmir/mir-linux-kernel | source/mir/linux/arch/x86/uapi/_asm/unistd.di | [
"BSL-1.0"
] |
#!/usr/bin/env sage
import sys
from CryptoAttacks.Block.whitebox_aes_sage import *
from CryptoAttacks.Utils import *
def test_encryption():
print "Test: normal/whitebox encryption"
for test_case in xrange(10):
key = bytes_to_matrix(random_bytes(16))
plaintext = bytes_to_matrix(random_bytes(16... | Sage | 4 | akbarszcz/CryptoAttacks | CryptoAttacks/tests/Block/test_whitebox_aes.sage | [
"MIT"
] |
/**
* PhasedT.x10
*
* Rudra Distributed Learning Platform
*
* Copyright (c) IBM Corporation 2016
* 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 mu... | X10 | 5 | milthorpe/rudra | x10/src/rudra/util/PhasedT.x10 | [
"BSD-3-Clause"
] |
// run-pass
#![feature(trait_alias)]
trait SimpleAlias = Default;
trait GenericAlias<T> = Iterator<Item = T>;
trait Partial<T> = IntoIterator<Item = T>;
trait SpecificAlias = GenericAlias<i32>;
trait PartialEqRef<'a, T: 'a> = PartialEq<&'a T>;
trait StaticAlias = 'static;
trait Things<T> {}
trait Romeo {}
#[allow(de... | Rust | 4 | Eric-Arellano/rust | src/test/ui/traits/trait-alias/trait-alias-syntax.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
!include nsDialogs.nsh
Var RadioButtonLabel1
!macro PAGE_INSTALL_MODE
!insertmacro MUI_PAGE_INIT
!insertmacro MUI_SET MULTIUSER_${MUI_PAGE_UNINSTALLER_PREFIX}INSTALLMODEPAGE ""
Var MultiUser.InstallModePage
Var MultiUser.InstallModePage.Text
Var MultiUser.InstallModePage.KeepNonGeneralSettings
Var MultiU... | NSIS | 3 | frank-spec/NiceHashMiner | installer/nsis_template/userDataCheckGUI.nsh | [
"MIT"
] |
title: Test Title
author: Test Author
created: 2020-05-19
url: http://jpd236.github.io/kotwords
copyright: (c) 2020 Kotwords
notes:
rows:
- - clue: Row 1
answer: AAAAAAAAA
- - clue: Row 2 Clue 1 (space)
answer: AAAAA AAAAA
- clue: Row 2 Clue 2
answer: AAAAAAAAAAA
- - clue: Row 3 Clue 1
answer: AAAAAA... | Rouge | 1 | jpd236/kotwords | src/commonTest/resources/rows-garden/test.rg | [
"Apache-2.0"
] |
#lang scribble/base
@(require
"defs.rkt"
"bib.rkt"
"cur.rkt"
scribble/manual
scriblib/footnote
scriblib/figure)
@title[#:tag "sec:cur"]{Designing for Language Extension}
If we were following the design of other proof assistants, we would now
describe a practical surface language.
The surface language would... | Racket | 5 | bluephoenix47/cic-redex | cur-paper/cur.scrbl | [
"BSD-2-Clause"
] |
AC_MSG_CHECKING(for clang fuzzer SAPI)
PHP_ARG_ENABLE([fuzzer],,
[AS_HELP_STRING([--enable-fuzzer],
[Build PHP as clang fuzzing test module (for developers)])],
[no],
[no])
dnl For newer clang versions see https://llvm.org/docs/LibFuzzer.html#fuzzer-usage
dnl for relevant flags.
dnl Macro to define fuzzing... | M4 | 5 | NathanFreeman/php-src | sapi/fuzzer/config.m4 | [
"PHP-3.01"
] |
<script>error</script>
| HTML | 1 | frank-dspeed/nw.js | test/sanity/issue5148-iframe-err-crash/frame.html | [
"MIT"
] |
<cffunction returntype="boolean" name="checkAuthKey">
<cfif fileExists(expandPath("../config/auth.cfm"))>
<cfreturn true>
<cfelse>
<cfreturn false>
</cfif>
</cffunction>
<cffunction returntype="boolean" name="createAuthKey" hint="Create a new authkey">
<cftry>
<cffile action="write" file="#expandPath("../c... | ColdFusion | 4 | fintecheando/RoomBooking | install/functions.cfm | [
"Apache-1.1"
] |
count : Nat -> Stream Nat
count n = n :: count (S n)
badCount : Nat -> Stream Nat
badCount n = n :: map S (badCount n)
data SP : Type -> Type -> Type where
Get : (a -> SP a b) -> SP a b
Put : b -> Inf (SP a b) -> SP a b
copy : SP a a
copy = Get (\x => Put x copy)
process : SP a b -> Stream a -> Stream b
process... | Idris | 5 | boxfire/rapid | tests/chez/chez001/Total.idr | [
"BSD-3-Clause"
] |
/* Copyright 2017 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 | 4 | EricRemmerswaal/tensorflow | tensorflow/python/lib/core/safe_pyobject_ptr.h | [
"Apache-2.0"
] |
xinetd_conf=Inställningsfil för Xinetd,0
protocols_file=Nätverksprotokollsfil,0
pid_file=Sökväg till PID-fil för Xinetd,0
start_cmd=Kommando för att starta xinetd,0
| SystemVerilog | 2 | GalaxyGFX/webmin | xinetd/config.info.sv | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
sleep 6
t app appmode photo_pes
t app pes_settings 1
t app button shutter PR
sleep 300
t app button shutter PR
#
sleep 6
t app appmode photo_pes
t app pes_settings 5
t app button shutter PR
sleep 1200
t app button shutter PR
sleep 6
t app appmode photo_pes
t app pes_settings 10
t app button shutter PR
sleep 2400
t app ... | AGS Script | 1 | waltersgrey/autoexechack | WarpLapse/autoexec.ash | [
"MIT"
] |
\\ Copyright (c) 2019 Bruno Deferrari.
\\ BSD 3-Clause License: http://opensource.org/licenses/BSD-3-Clause
(define power
N 1 -> N
N Power -> (* N (power N (- Power 1))))
(set *benchmarks* [])
(define add-benchmark
Tag Description F RunsPower -> (do (set *benchmarks* [[Tag Description F RunsPower] | (value *be... | Shen | 4 | vishalbelsare/shen-sources | benchmarks/benchmarks.shen | [
"BSD-3-Clause"
] |
Nokia515.2/2.0 (10.34) Profile/MIDP-2.1 Configuration/CLDC-1.1
Nokia515.2/2.0 (05.08) Profile/MIDP-2.1 Configuration/CLDC-1.1
Nokia515/2.0 (05.09) Profile/MIDP-2.1 Configuration/CLDC-1.1
Nokia515.2/2.0 (05.10) Profile/MIDP-2.1 Configuration/CLDC-1.1
Nokia515/2.0 (10.34) Profile/MIDP-2.1 Configuration/CLDC-1.1
Nokia515/... | Text | 1 | 5tr1x/SecLists | Fuzzing/User-Agents/operating-platform/nokia-515.txt | [
"MIT"
] |
BITS 64
mov rbp, [rsp + 0x28]
add rbp, 0x10
; rsi = argv[0] (stage1_arr)
mov rax, [rbp]
; esi = stage1_arr.length
mov esi, [rax + 0x18]
mov edi, 0
mov edx, 7
mov ecx, 0x1802
mov r8d, -1
mov r9, 0
push rbx
push rcx
push rbp
push r10
push r12
push r13
push r14
push r15
mov eax, 20000C5h
mov r10, rcx
syscall
... | Assembly | 3 | OsmanDere/metasploit-framework | external/source/exploits/CVE-2020-9850/payload/stage0.asm | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
# typed: false
# frozen_string_literal: true
require "requirements/arch_requirement"
describe ArchRequirement do
subject(:requirement) { described_class.new([Hardware::CPU.type]) }
describe "#satisfied?" do
it "supports architecture symbols" do
expect(requirement).to be_satisfied
end
end
end
| Ruby | 4 | ylht/brew | Library/Homebrew/test/requirements/arch_requirement_spec.rb | [
"BSD-2-Clause"
] |
#!/usr/bin/env bash
set -euo pipefail
main() {
cd "$(dirname "$0")/../.."
source ./ci/lib.sh
# npm view won't exit with non-zero so we have to check the output.
local hasVersion
hasVersion=$(npm view "code-server@$VERSION" version)
if [[ $hasVersion == "$VERSION" ]]; then
echo "$VERSION is already pub... | Shell | 4 | mia-cx/code-server-npm | ci/steps/publish-npm.sh | [
"MIT"
] |
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/public;
index index.php;
client_max_body_size 20m;
server_name server_domain_or_IP;
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?/$1 last;
break;
}
location / {
try_files $uri $uri/ =404;
}
locat... | ApacheConf | 3 | dhtmdgkr123/MyInfra | nginx/sites/default.vhost | [
"MIT"
] |
111
0 -1
1 0
2 0
3 -1
4 3
5 3
6 -1
7 6
8 6
9 -1
10 9
11 9
12 -1
13 12
14 12
15 -1
16 15
17 15
18 -1
19 18
20 18
21 -1
22 21
23 21
24 -1
25 24
26 24
27 -1
28 27
29 27
30 -1
31 30
32 30
33 -1
34 33
35 33
36 -1
37 36
38 36
39 -1
40 39
41 39
42 -1
43 42
44 42
45 -1
46 45
47 45
48 -1
49 48
50 48
51 -1
52 51
53 51
54 -1
55 5... | IDL | 2 | ricortiz/OpenTissue | demos/data/dlm/111/dep.dlm | [
"Zlib"
] |
${model.nameUniqueResult} | Java Server Pages | 0 | woozhijun/cat | cat-home/src/main/webapp/jsp/system/appConfig/appNameCheck.jsp | [
"Apache-2.0"
] |
<?Lassoscript
// Last modified 4/2/08 by ECL, Landmann InterActive
/*
Tagdocs;
{Tagname= LI_CleanSlug }
{Description= Cleans the input to make it suitable for use as an URL slug. }
{Author= Eric Landmann }
{AuthorEmail= support@iterate.ws }
{ModifiedBy= }
{ModifiedByEmail= }
{Date= 4/2/08 }
{Usage= ... | Lasso | 4 | subethaedit/SubEthaEd | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/LassoStartup/LI_CleanSlug.lasso | [
"MIT"
] |
"""
i as long = [1, 2, 3].IndexOf({ item as int | return (item > 2) })
"""
i as long = [1, 2, 3].IndexOf({ item as int | return (item > 2) })
| Boo | 2 | popcatalin81/boo | tests/testcases/parser/wsa/declarations-3.boo | [
"BSD-3-Clause"
] |
---
APPLY_FIXES: none
DISABLE:
- ACTION
- BASH
- COPYPASTE
- DOCKERFILE
- GO
- JAVASCRIPT
- SPELL
DISABLE_LINTERS:
- YAML_YAMLLINT
- MARKDOWN_MARKDOWN_TABLE_FORMATTER
- MARKDOWN_MARKDOWN_LINK_CHECK
FILTER_REGEX_EXCLUDE: .*testdata/*
MARKDOWN_MARKDOWNLINT_CONFIG_FILE: .markdownlint.yml
PARALLEL: fals... | YAML | 1 | RolandXu-Intel/act | .mega-linter.yml | [
"MIT"
] |
var x := "Test"
| Grace | 0 | Dmitri-2/GraceWebsite | js-simple/tests/t025_controlchar_fail_test.grace | [
"MIT",
"BSD-3-Clause"
] |
// Imports
@import '../../styles/styles.sass'
// Block
.v-simple-checkbox
align-self: center
line-height: normal
position: relative
user-select: none
.v-icon
cursor: pointer
// Modifiers
.v-simple-checkbox--disabled
cursor: default
| Sass | 3 | VBeytok/vuetify | packages/vuetify/src/components/VCheckbox/VSimpleCheckbox.sass | [
"MIT"
] |
"""Tests for the Airthings integration."""
| Python | 0 | MrDelik/core | tests/components/airthings/__init__.py | [
"Apache-2.0"
] |
// run-pass
fn f() -> isize {
mod m {
pub fn g() -> isize { 720 }
}
m::g()
}
pub fn main() {
assert_eq!(f(), 720);
}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/modules/mod-inside-fn.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
/home/spinalvm/hdl/riscv-compliance/work//C.AND.elf: file format elf32-littleriscv
Disassembly of section .text.init:
80000000 <_start>:
80000000: 0001 nop
80000002: 0001 nop
80000004: 0001 nop
80000006: 0001 nop
80000008: 0001 nop
... | ObjDump | 2 | cbrune/VexRiscv | src/test/resources/asm/C.AND.elf.objdump | [
"MIT"
] |
(test (= (len (let _ Env/this)) 1))
(let (e (let (foo 1)
(use _ do let)
Env/this))
(test (= e/foo 1))
(e/do (let bar 2))
(test (= e/bar 2))
(let ee (let _ (use e foo))
(test (= ee/foo 1))))
(let (foo (let (bar 7)
(fun resolve (key) 42)
Env/this))
(test (= foo... | Grammatical Framework | 5 | daota2/fffff | v1/test/env.gf | [
"MIT"
] |
class GioProg {
public static int main(string[] args) {
var homedir = File.new_for_path(Environment.get_home_dir());
stdout.printf("Home directory as told by gio is " + homedir.get_path() + "\n");
return 0;
}
}
| Vala | 3 | kira78/meson | test cases/vala/3 dep/gioprog.vala | [
"Apache-2.0"
] |
.q-parallax
position: relative
width: 100%
overflow: hidden
border-radius: inherit
.q-parallax__media
> img, > video
position: absolute
left: 50% #{"/* rtl:ignore */"}
bottom: 0
min-width: 100%
min-height: 100%
will-change: transform
display: none
| Sass | 3 | ygyg70/quasar | ui/src/components/parallax/QParallax.sass | [
"MIT"
] |
#!/usr/bin/env Rscript
library(reticulate) # call Python library
use_python("/opt/python3.7/bin/python")
np <- import("numpy")
paddle <- import("paddle.fluid.core")
set_config <- function() {
config <- paddle$AnalysisConfig("")
config$set_model("data/model/__model__", "data/model/__params__")
config$swi... | R | 5 | zmxdream/Paddle | r/example/mobilenet.r | [
"Apache-2.0"
] |
'reach 0.1';
export const main =
Reach.App(
{},
[Participant('A', {})],
(A) => {
const f = (a = 1, b) => a + b;
assert(f(2, 3) == 5);
});
| RenderScript | 3 | chikeabuah/reach-lang | hs/t/n/Err_Default_Arg_Position.rsh | [
"Apache-2.0"
] |
current continuation! () =
cont () =
continuation (nil, cont)
continuation (nil, cont)
n = 0
cont = current continuation!
console.log (n)
++n
if (n < 10)
cont ()
| PogoScript | 3 | featurist/pogoscript | examples/continuations.pogo | [
"BSD-2-Clause"
] |
// These tests check for regex ambiguities
var qrt = (\dur:1);
var eth = (\dur:1/2);
SkoarTestRunner((
// i'm not sure how to test this stuff.
forte: [
"forte",
[()]
],
));
| SuperCollider | 2 | sofakid/Skoarcery | SuperCollider/Testing/regex.scd | [
"Artistic-2.0"
] |
label ccc3012b:
"……何してるんだか知らないが。"
"ヘタにつつくのは利口じゃないしな。"
"それより今の寒気を喚起せし存在が、気になる。"
"家の中に……エイリアンでもいるのだろうか。"
太一 "「ふふふ……」"
"俺は火炎放射器の一つさえも持っていない、ひ弱な現代ボウイだ。"
"エイリアンに出くわしても、抗しうる武器などない。"
"だが!"
"構えを取る。"
"武器はいらない。"
"拳だけ、あればいい。"
太一 "「ついに実戦で用いる時が来たか」"
"カラデ道は、長きに渡って耐え難きを耐えてきた。"
"... | Ren'Py | 2 | fossabot/cross-channel_chinese-localization_project | AllPlatforms/scripts/ccc/ccc3012b.rpy | [
"Apache-2.0"
] |
main = asText (qsort [3,9,1,8,5,4,7])
qsort lst =
case lst of
x:xs -> qsort (filter ((>=)x) xs) ++ [x] ++ qsort (filter ((<)x) xs)
[] -> []
{---------------------
QuickSort works as follows:
- Choose a pivot element which be placed in the "middle" of the sorted list.
In our case we are choosing the f... | Elm | 5 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Elm/QuickSort.elm | [
"MIT"
] |
- dashboard: ga4_campaign_impact
title: "[GA4] Campaign Impact"
layout: newspaper
preferred_viewer: dashboards-next
elements:
- title: Users saw the campaign page
name: Users saw the campaign page
model: ga4
explore: sessions
type: single_value
fields: [sessions.total_users, user_segment.s... | LookML | 3 | bcmu/ga_four | dashboards/campaign_impact.dashboard.lookml | [
"MIT"
] |
label ccd0015b:
太一 "「降伏します」"
stop bgm
voice "vfCCD0001kri022"
霧 "「動かないで下さい。撃ちますよ……って、え?」"
太一 "「降参です」"
"壁に手をついて足を開けと言われる前に壁に手をついて足を開いた。"
"降伏の姿勢だ。"
voice "vfCCD0001mki030"
美希 "「よわぁ……」"
play bgm "bgm/bgm010.ogg"
voice "vfCCD0001kri023"
霧 "「……どうしよう、美希?」"
voice "vfCCD0001m... | Ren'Py | 3 | fossabot/cross-channel_chinese-localization_project | AllPlatforms/scripts/ccd/ccd0015b.rpy | [
"Apache-2.0"
] |
#!/usr/bin/env sh
for i in {1..499}; do
cp 0.test.js $i.test.js
done
| Shell | 4 | laohubuzaijia/jest | benchmarks/test-file-overhead/prepare.sh | [
"MIT"
] |
it("should answer typeof System correctly", () => {
if(__SYSTEM__) {
expect((typeof System)).toBe("object");
} else {
expect((typeof System)).toBe("undefined");
}
});
it("should answer typeof System.import correctly", () => {
if(__SYSTEM__) {
expect((typeof System.import)).toBe("function");
} else {
expec... | JavaScript | 3 | 1shenxi/webpack | test/configCases/parsing/system.import/index.js | [
"MIT"
] |
xof 0303txt 0032
Material __Color_A01_ {
0.0000;0.0000;0.0000;0.0000;;
5.0000;
0.0000;0.0000;0.0000;;
0.0000;0.0000;0.0000;;
}
Mesh mesh_0{
3;
0.0000;0.0000;0.0000;,
0.0000;0.0000;0.0000;,
0.0000;0.0000;0.0000;;
1;
3;0,1,2;;
MeshMaterialList {
1;
1;
0;
{ __Color_A01_ }
}
MeshTextureCoords {
... | Logos | 2 | rentheaxolotl/RayMMD-ren-version | ray.x | [
"MIT"
] |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This file is part of Logtalk <https://logtalk.org/>
% Copyright (c) 2010, Paulo Moura
% SPDX-License-Identifier: BSD-3-Clause
%
% Redistribution and use in source and binary forms, with or without
% modification, are permitted provided... | Logtalk | 4 | PaulBrownMagic/logtalk3 | contributions/verdi_neruda/debug_expansion.lgt | [
"Apache-2.0"
] |
"""The test for the Template sensor platform."""
from datetime import timedelta
from unittest.mock import patch
import pytest
from homeassistant import config
from homeassistant.components.template import DOMAIN
from homeassistant.helpers.reload import SERVICE_RELOAD
from homeassistant.setup import async_setup_compon... | Python | 4 | MrDelik/core | tests/components/template/test_init.py | [
"Apache-2.0"
] |
CLASS zcl_abapgit_ui_injector DEFINITION
PUBLIC
CREATE PRIVATE .
PUBLIC SECTION.
CLASS-METHODS set_popups
IMPORTING
!ii_popups TYPE REF TO zif_abapgit_popups .
CLASS-METHODS set_frontend_services
IMPORTING
!ii_fe_serv TYPE REF TO zif_abapgit_frontend_services .
CLASS-METH... | ABAP | 4 | gepparta/abapGit | src/ui/zcl_abapgit_ui_injector.clas.abap | [
"MIT"
] |
from testfixtures import LogCapture
from twisted.internet import defer
from scrapy.exceptions import StopDownload
from tests.test_engine import (
AttrsItemsSpider,
DataClassItemsSpider,
DictItemsSpider,
TestSpider,
CrawlerRun,
EngineTest,
)
class HeadersReceivedCrawlerRun(CrawlerRun):
de... | Python | 4 | FingerCrunch/scrapy | tests/test_engine_stop_download_headers.py | [
"BSD-3-Clause"
] |
//
// Nocilla.h
// Nocilla
//
// Created by Robert Böhnke on 26/03/15.
// Copyright (c) 2015 Luis Solano Bonet. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for Nocilla.
FOUNDATION_EXPORT double NocillaVersionNumber;
//! Project version string for Nocilla.
FOUNDATION_EXPOR... | C | 2 | dongshuju/Kingfisher | Tests/Dependency/Nocilla/Nocilla/Nocilla.h | [
"MIT"
] |
include:
- validate-saltcheck.directory
- validate-saltcheck.directory.level1
saltcheck-test-pass:
test.succeed_without_changes:
- name: testing-saltcheck
| SaltStack | 1 | Noah-Huppert/salt | tests/integration/files/file/base/validate-saltcheck/init.sls | [
"Apache-2.0"
] |
$$ MODE TUSCRIPT
- epoch
number=1
dayofweeknr=DATE (date,day,month,year,number)
epoch=JOIN(year,"-",month,day)
PRINT "epoch: ", epoch," (daynumber ",number,")"
- today's daynumber
dayofweeknr=DATE (today,day,month,year,number)
date=JOIN (year,"-",month,day)
PRINT "today's date: ", date," (daynumber ", number,")"
| Turing | 3 | LaudateCorpus1/RosettaCodeData | Task/Show-the-epoch/TUSCRIPT/show-the-epoch.tu | [
"Info-ZIP"
] |
package com.baeldung.websession.configuration;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.config.EnableWebFlux;
import org.springframework.web.rea... | Java | 4 | DBatOWL/tutorials | spring-5-reactive/src/main/java/com/baeldung/websession/configuration/WebFluxConfig.java | [
"MIT"
] |
/*
* Copyright 2018 Netflix, 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 a... | Groovy | 5 | TomMD/zuul | zuul-sample/src/main/groovy/com/netflix/zuul/sample/filters/inbound/SampleServiceFilter.groovy | [
"Apache-2.0"
] |
rm -f this-doesnt-exist
! redo this-doesnt-exist >/dev/null 2>&1 || exit 32 # expected to fail
! redo-ifchange this-doesnt-exist >/dev/null 2>&1 || exit 33 # expected to fail
redo-ifcreate this-doesnt-exist >/dev/null 2>&1 || exit 34 # expected to pass
rm -f fail
! redo-ifchange fail >/dev/null 2>&1 || exit 44 # ... | Stata | 3 | BlameJohnny/redo | t/201-fail/all.do | [
"Apache-2.0"
] |
<script>
import { mapActions, mapMutations } from 'vuex'
export default {
created () {
this.initPage()
},
methods: {
...mapMutations('weather', {
setLocation: 'SET_LOCATION'
}),
...mapActions('weather', ['getWeather']),
async initPage() {
const location = await this.getLocation()
... | Vue | 4 | ye1088/uni-app | examples/uniapp-one/App.vue | [
"Apache-2.0"
] |
"""Tests for the DLNA MediaServer integration."""
| Python | 0 | MrDelik/core | tests/components/dlna_dms/__init__.py | [
"Apache-2.0"
] |
#include-once
#include <AutoItConstants.au3>
#include <Color.au3>
#include <ColorConstants.au3>
#include <GUIConstantsEx.au3>
#include <GuiEdit.au3>
#include <ProcessConstants.au3>
#include <StringConstants.au3>
#include <WindowsConstants.au3>
#include "IsMgcNumPresent.au3"
#AutoIt3Wrapper_Au3Check_Parameters=-q -d -w... | AutoIt | 5 | IHA114/ProxAllium | ProcessEx.au3 | [
"MIT"
] |
from django.urls import path, re_path
from .views import empty_view
urlpatterns = [
path('', empty_view, name='inner-nothing'),
re_path(r'extra/(?P<extra>\w+)/$', empty_view, name='inner-extra'),
re_path(r'(?P<one>[0-9]+)|(?P<two>[0-9]+)/$', empty_view, name='inner-disjunction'),
]
| Python | 4 | ni-ning/django | tests/urlpatterns_reverse/included_urls.py | [
"CNRI-Python-GPL-Compatible",
"BSD-3-Clause"
] |
package com.baeldung.finalkeyword;
public class Dog {
public final void sound() {
}
}
| Java | 3 | zeesh49/tutorials | core-java/src/main/java/com/baeldung/finalkeyword/Dog.java | [
"MIT"
] |
local helpers = require('test.functional.helpers')(after_each)
local eq = helpers.eq
local clear = helpers.clear
local exc_exec = helpers.exc_exec
describe(':syntax', function()
before_each(clear)
describe('keyword', function()
it('does not crash when group name contains unprintable characters',
function... | Lua | 4 | uga-rosa/neovim | test/functional/ex_cmds/syntax_spec.lua | [
"Vim"
] |
#!/usr/bin/env python
from __future__ import print_function
import numpy as np
import cv2 as cv
import os
import sys
import unittest
from tests_common import NewOpenCVTests
try:
if sys.version_info[:2] < (3, 0):
raise unittest.SkipTest('Python 2.x is not supported')
class MatTest(NewOpenCVTests):
... | Python | 5 | xipingyan/opencv | modules/python/test/test_mat.py | [
"Apache-2.0"
] |
namespace math_test {
long add_one(long val);
double pow(double base, double exponent);
};
| WebIDL | 3 | tlively/wasm-bindgen | crates/webidl-tests/webidls/enabled/namespace.webidl | [
"Apache-2.0",
"MIT"
] |
# Group Messages
Group of all messages-related resources.
{{partial "messages/actions.apib"}} | API Blueprint | 1 | caioDelgado/snowboard | packages/snowboard-reader/test/fixtures/api/messages.apib | [
"MIT"
] |
module examples/case_studies/firewire
/*
* A model of leader election in the Firewire protocol.
*
* Adapted from:
* [DG+01] M.C.A. Devillers, W.O.D. GriAEoen, J.M.T Romijn, and F.W. Vaandrager.
* Verification of a leader election protocol -- formal methods applied to IEEE
* 1394. Technical Report CSI-R9728... | Alloy | 5 | haslab/Electrum | electrum/src/main/resources/models/examples/case_studies/firewire.als | [
"MIT"
] |
// check-pass
fn _test() -> impl Default { }
fn main() {}
| Rust | 0 | Eric-Arellano/rust | src/test/ui/issues/issue-36379.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
<template>
<v-row class="text-center" justify="center">
<v-col
cols="12"
md="3"
>
<div
class="pa-4 secondary text-no-wrap rounded-pill"
>
.rounded-pill
</div>
</v-col>
<v-col
cols="12"
md="3"
>
<div
class="pa-7 secondary roun... | Vue | 4 | mark-gene/vuetify | packages/docs/src/examples/border-radius/misc-pill-and-circle.vue | [
"MIT"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 3 | sbj42/vscode | src/vs/platform/profiling/electron-sandbox/profilingService.ts | [
"MIT"
] |
// Copyright (c) 2016 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/browser/mac/dict_util.h"
#include <string>
#include "base/json/json_writer.h"
#include "base/strings/sys_string_conversions.h"
#include "base/values.h"
namespace ele... | Objective-C++ | 5 | TarunavBA/electron | shell/browser/mac/dict_util.mm | [
"MIT"
] |
{:name "User"
:version "0.0.1"
:author "TODO"
:source "TODO"
:desc "TODO"
:behaviors "user.behaviors"}
| edn | 1 | sam-aldis/LightTable | deploy/core/User/plugin.edn | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.