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 |
|---|---|---|---|---|---|
.section
.list-group-flush
div (:class "list-group-item border-0")
.title "Immutable Configuration properties"
.container-fluid
.row
.col
.lang Java
pre.code $ code (@insert ../../code/java/spring-framework/spring-framework-00.java) $ :class java
.co... | Cirru | 2 | driver733/kot | cirru/spring-framework.cirru | [
"MIT"
] |
{
"name": "wvtest",
"version": "1.0.0",
"license": "MIT",
"description": "",
"main": "http://127.0.0.1:{port}/",
"webview": {
"partitions": [
{
"name": "trusted*",
"accessible_resources": ["*"]
}
]
},
"node-remote": "<all_urls>"
}
| Smarty | 2 | frank-dspeed/nw.js | test/sanity/issue6784-webview/package.json.tpl | [
"MIT"
] |
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: cmake-multilib.eclass
# @MAINTAINER:
# gx86-multilib team <multilib@gentoo.org>
# @AUTHOR:
# Author: Michał Górny <mgorny@gentoo.org>
# @SUPPORTED_EAPIS: 5 6
# @BLURB: cmake-utils wrapper for multilib ... | Gentoo Eclass | 4 | NighttimeDriver50000/Sabayon-Packages | local_overlay/eclass/cmake-multilib.eclass | [
"MIT"
] |
(***********************************************************************)
(* *)
(* Applied Type System *)
(* *)
(***********************... | ATS | 5 | bbarker/ATS-Postiats-contrib | projects/LARGE/TUTORIATS/in-browsers/PATSHOME/prelude/DATS/integer.dats | [
"MIT"
] |
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"input": {
"value": .
}
}
} | JSONiq | 1 | StefanIvemo/AzOps | src/data/template/template.parameters.jq | [
"MIT"
] |
#
#
# The Nim Compiler
# (c) Copyright 2012 Andreas Rumpf
#
# See the file "copying.txt", included in this
# distribution, for details about the copyright.
#
# This module implements Nim's simple filters and helpers for filters.
import
llstream, idents, strutils, ast, msgs, options,
rendere... | Nimrod | 4 | JohnAD/Nim | compiler/filters.nim | [
"MIT"
] |
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M17,3H7C6.45,3 ... | XML | 3 | bubenheimer/androidx | compose/material/material/icons/generator/raw-icons/rounded/medication.xml | [
"Apache-2.0"
] |
{
"id": "https://monarchinitiative.org/genelist/",
"kg_source": "Test",
"type": "biolink:KnowledgeGraph",
"@context": {
"id": "@id",
"type": "@type",
"z": "@id"
}
} | JSONLD | 2 | logilab/rdflib-jsonld | test/local-suite/toRdf-twoidnodes-in.jsonld | [
"BSD-3-Clause"
] |
#include "e.h"
exp $PROCENTR ; calls through to the (lower case) pascal RT system
exp $PROCEXIT
; these are calls through to the (lower case) pascal run-time system
pro $PROCENTR,0
LFL 0
cal $procentry
asp SZADDR
ret 0
end 0
pro $PROCEXIT,0
LFL 0
cal $procexit
asp SZADDR
ret 0
end 0
| Eiffel | 2 | wyan/ack | lang/a68s/liba68s/trace.e | [
"BSD-3-Clause"
] |
fun useG() {
A.g()
} | Groff | 0 | qussarah/declare | jps-plugin/testData/incremental/classHierarchyAffected/packageFacadeToClass/useG.kt.new.2 | [
"Apache-2.0"
] |
/********************************************************************************
* Copyright (c) {date} Red Hat Inc. and/or its affiliates and others
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* http://www.apache.o... | Ceylon | 4 | Kopilov/ceylon-ide-intellij | source/org/eclipse/ceylon/ide/intellij/build/BuildClasspathProvider.ceylon | [
"Apache-2.0"
] |
- if can_admin_cluster?(current_user, @cluster)
.settings.expanded.border-0.m-0
%p
= s_('ClusterIntegration|Advanced options on this Kubernetes cluster’s integration')
.settings-content#advanced-settings-section
= render 'clusters/clusters/advanced_settings'
| Haml | 2 | hugorebelo/gitlabhq | app/views/clusters/clusters/_advanced_settings_container.html.haml | [
"MIT"
] |
#!/bin/csh
./mkcfg_new.csh ${1}
ls PYTHON_${1}/*py
if( ${status} == "0" ) then
foreach i (`ls PYTHON_${1}`)
set j=`echo ${i} | awk -F _ '{print $2}'`
echo ${i} ${j} ${1}
#./batchjobs.csh ${1} ${j}
#bsub -q 8nh batchjobs.csh ${1} ${j} `pwd`
bsub -q 1nd batchjobs.csh ${1} ${j} `pwd`
end
#rm -rf PYTHON_${1}
#rm -r... | Tcsh | 2 | ckamtsikis/cmssw | DPGAnalysis/HcalTools/scripts/cmt/run_batch1nd.csh | [
"Apache-2.0"
] |
---
id: 589fc831f9fc0f352b528e76
title: Gestire una disconnessione
challengeType: 2
forumTopicId: 301552
dashedName: handle-a-disconnect
---
# --description--
Potresti notare che fino a questo momento hai solo incremementato il numero degli utenti. Gestire la disconnessione di un utente è semplice come gestire la con... | Markdown | 4 | fcastillo-serempre/freeCodeCamp | curriculum/challenges/italian/06-quality-assurance/advanced-node-and-express/handle-a-disconnect.md | [
"BSD-3-Clause"
] |
IDENTIFICATION DIVISION.
PROGRAM-ID. HELLO-WORLD.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 CMDARGS PIC X(38).
01 NUM PIC S9(30).
PROCEDURE DIVISION.
ACCEPT CMDARGS FROM COMMAND-LINE.
IF CMDARGS IS ALPHABETIC THEN
DISPL... | COBOL | 3 | Sudhanshu-Dubey14/sample-programs | archive/c/cobol/even-odd.cbl | [
"MIT"
] |
# 8876
foo:
<<: &anchor
K1: "One"
K2: "Two"
bar:
<<: *anchor
K3: "Three"
| YAML | 3 | rakacreative/prettier | tests/yaml/inline-extend-syntax/inline-extend-syntax.yml | [
"MIT"
] |
//Maya ASCII 2016 scene
//Name: test.ma
//Last modified: Tue, Mar 21, 2017 03:42:59 PM
//Codeset: UTF-8
requires maya "2016";
currentUnit -l centimeter -a degree -t film;
fileInfo "application" "maya";
fileInfo "product" "Maya batch mode";
fileInfo "version" "2016";
fileInfo "cutIdentifier" "201610262200-1005964";
file... | Mathematica | 3 | alatdneg/OpenTimelineIO | opentimelineio_contrib/adapters/tests/sample_data/screening_example.ma | [
"Apache-2.0"
] |
##### Part 0: Formatted and processed data in BigQuery
## Creating list of number of users in each subreddit:
## Thanks to Reddit users /u/Stuck_In_the_Matrix for pulling the data originally and /u/fhoffa for hosting the data on BigQery
SELECT subreddit, authors, DENSE_RANK() OVER (ORDER BY authors DESC) AS rank_auth... | SQL | 4 | h4ckfu/data | subreddit-algebra/processData.sql | [
"CC-BY-4.0"
] |
use("ispec")
describe(DefaultBehavior,
describe("FlowControl",
describe("for",
it("should handle a simple iteration",
for(x <- [1,2,3], x) should == [1,2,3]
for(x <- 1..10, x) should == [1,2,3,4,5,6,7,8,9,10]
for(x <- set(:a, :b, :c), x) sort should == [:a, :b, :c]
)
i... | Ioke | 5 | olabini/ioke | test/comprehension_spec.ik | [
"ICU",
"MIT"
] |
precision mediump float;
uniform float uAlpha;
varying float vDepthDistance;
const highp float kMaxDepthInMeters = 8.0; // In meters.
const float kInvalidDepthThreshold = 0.01;
vec3 TurboColormap(in float x);
// Returns a color corresponding to the depth passed in. Colors range from red
// to green to blue, where ... | GLSL | 4 | zealoussnow/chromium | third_party/webxr_test_pages/webxr-samples/shaders/depth-api-cpu.frag | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | Shell | 5 | DionysisChristopoulos/google-research | homophonous_logography/entropic/compute_relative_entropy.sh | [
"Apache-2.0"
] |
{-
Epigram Syntax
-}
{-
This is a guided tour into Epigram syntax. Syntax is a strong
word, I would personally call that a random set of hieroglyphic
symbols. Hence this file.
Champollion.
-}
-- * The world of Set
make set :... | PigLatin | 5 | mietek/epigram | test/Syntax.pig | [
"MIT"
] |
@function func($arg, $arg1, $arg2: 10, $args...) {
@return "Func";
}
@function func($arg,$arg1,$arg2:10,$args...){
@return "Func";
}
@function func ( $arg , $arg1 , $arg2 : 10 , $args ... ) {
@return "Func";
}
@function func ( $arg , $arg1 , $arg2 : 10 , $args ... ) {
@return "Func";
}
@fu... | CSS | 0 | fuelingtheweb/prettier | tests/css_atrule/function.css | [
"MIT"
] |
sleep 1
t ia2 -3a 1 0 1 1
| AGS Script | 0 | waltersgrey/autoexechack | ProTunePhoto/autoexec.ash | [
"MIT"
] |
@-webkit-keyframes name {} | CSS | 2 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/spDFEMXbzLdZOmhoxVkAIQ/input.css | [
"Apache-2.0"
] |
; RUN: llc --mtriple=mips-mti-linux-gnu < %s -debug 2>&1 | FileCheck %s --check-prefixes=CHECK,MIPS
; RUN: llc --mtriple=mips-mti-linux-gnu < %s -mattr=+micromips -debug 2>&1 | FileCheck %s --check-prefixes=CHECK,MM
; REQUIRES: asserts
; Test that the correct mul instruction is selected upfront.
; CHECK-LABEL: Instr... | LLVM | 5 | medismailben/llvm-project | llvm/test/CodeGen/Mips/llvm-ir/isel.ll | [
"Apache-2.0"
] |
// run-pass
#![allow(unused_attributes)]
// aux-build:issue-29485.rs
// needs-unwind
// ignore-emscripten no threads
#[feature(recover)]
extern crate a;
fn main() {
let _ = std::thread::spawn(move || {
a::f(&mut a::X(0), g);
}).join();
}
fn g() {
panic!();
}
| Rust | 3 | ohno418/rust | src/test/ui/issues/issue-29485.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
class Foo
{
static Str f(Int a)
{
b := 2
s := ""
2.times |Int c|
{
d := c+10
2.times |Int e|
{
s += "[$a $b $c $d $e]"
a++
b*=2
}
}
return s
}
} | Fantom | 2 | fanx-dev/fanx | compiler/testCompilerx/res/closure/testNested1.fan | [
"AFL-3.0"
] |
"oneart.wav" diskin dup
15 # delay
200 # lf_x
7.0 # rtlo
8.0 # rthi
10000 # hfdamp
315 # eq1 fre1
0 # eq1 level
1500 # eq2 freq
0 # eq2 level
1 # all wet mix
0 # 0 dB level
zitarev
drop
| SourcePawn | 1 | aleatoricforest/Sporth | examples/zitarev.sp | [
"MIT"
] |
// Note that this file contains extracts from the rstanarm package.
// Copyright (C) 2015, 2016, 2017 Trustees of Columbia University
// Copyright (C) 2016, 2017 Sam Brilleman
functions {
/**
* Evaluate the linear predictor for the glmer submodel
*
* @param X Design matrix for fe
* @param Z Design matrix... | Stan | 5 | stan-dev/stancon_talks | 2018/Contributed-Talks/03_brilleman/Stan/jm.stan | [
"CC-BY-4.0",
"BSD-3-Clause"
] |
DROP TABLE IF EXISTS nested;
CREATE TABLE nested (nest Nested(x UInt8, y UInt8)) ENGINE = Memory;
INSERT INTO nested VALUES ([1, 2, 3], [4, 5, 6]);
SELECT nx FROM nested ARRAY JOIN nest.x AS nx, nest.y AS ny WHERE notEmpty(nest.y);
SELECT 1 FROM nested ARRAY JOIN nest.x AS nx, nest.y AS ny WHERE notEmpty(nest.y);
SELE... | SQL | 3 | pdv-ru/ClickHouse | tests/queries/0_stateless/00468_array_join_multiple_arrays_and_use_original_column.sql | [
"Apache-2.0"
] |
fall 0.0 0.0 0.022840604316256421 0.14719692086267672 0.021978906718775164 0.0 0.0 0.12702291659772899 0.0 0.0 0.0 0.0 0.0 0.0 0.014598799421152631 0.0 0.040671039730927783 0.0 0.54522705048332298 0.034401426717332317 0.0 0.13976194237515879 0.0 0.7683706017975328 0.0 0.54522705048332309 0.13976194237515879 0.0 0.83290... | DM | 0 | tommasoc80/EventStoryLine | ppmi_events_ecb+_test/23/full_corpus_ppmi.dm | [
"CC-BY-3.0"
] |
// RUN: %target-typecheck-verify-swift -swift-version 5
@_inlineable public func oldInlinableFunction() {}
// expected-error@-1 {{'@_inlineable' has been renamed to '@inlinable'}}{{2-13=inlinable}}
@_versioned func oldVersionedFunction() {}
// expected-error@-1 {{'@_versioned' has been renamed to '@usableFromInline'}... | Swift | 2 | lwhsu/swift | test/attr/attr_inlinable_old_spelling.swift | [
"Apache-2.0"
] |
"Sun-$Revision: 9.1 $"
"The method cache maps a message name and its argument number
to a corresponding constraint_mapping_table"
traits cecil_interp _AddSlotsIfAbsent: ( | cecil_method_cache = () | )
traits cecil_method_cache _Define: ( |
_ parent* = traits dictionary.
_ errHandlingParent* = mixins cecil_err... | Self | 5 | ajnavarro/language-dataset | data/github.com/russellallen/self/2bcf2c4cab23f52bf68ac4f617020e748699a548/objects/applications/cecil/interp/methodCache.self | [
"MIT"
] |
redo-ifchange md-to-man $2.md.tmp
. ./md-to-man $1 $2 $3
| Stata | 1 | BlameJohnny/redo | docs/default.1.do | [
"Apache-2.0"
] |
import "nested-package1";
import "nested-package2";
import "inline-loader!nested-package1";
import "inline-loader!nested-package2";
| JavaScript | 2 | fourstash/webpack | test/fixtures/watch/node_modules/package/index.js | [
"MIT"
] |
#pragma once
#include <ATen/ATen.h>
namespace torch {
namespace utils {
TORCH_API void check_out_type_matches(
const at::Tensor& result,
at::ScalarType scalarType, bool scalarType_is_none,
c10::optional<at::Layout> layout,
const at::Device& device, bool device_is_none);
}}
| C | 2 | Hacky-DH/pytorch | torch/csrc/utils/out_types.h | [
"Intel"
] |
export const template = 'template';
| JavaScript | 0 | Theo-Steiner/svelte | test/runtime/samples/deconflict-template-1/module.js | [
"MIT"
] |
(defmodule ltest-named-tests
(behaviour ltest-unit)
(import
(from ltest
(check-failed-assert 2))))
(include-lib "include/ltest-macros.lfe")
(deftest named-is
(tuple '"Testing the 'is' assertion macro."
(is 'true)
(is (not 'false))
(is (not (not 'true)))))
(deftest named-is-not-fail
(tup... | LFE | 4 | ioolkos/ltest | test/ltest-named-tests.lfe | [
"BSD-3-Clause"
] |
{
"Version" : 0.2,
"ModuleName" : "ecere",
"ModuleVersion" : "0.44",
"Description" : "Ecere Runtime library",
"License" : "The Ecere SDK v0.44.15 - http://ecere.org\n\nThe Ecere SDK is Free Open Source Software. It is provided with NO WARRANTY\nexpressed or implied to the extent permitted by law.\n\nAppl... | Ecere Projects | 2 | redj/ecere-sdk | ecere/ecere.epj | [
"BSD-3-Clause"
] |
insert into virtual_only (id) values (30), (40);
| SQL | 4 | suryatmodulus/tidb | br/tests/lightning_generated_columns/data/gencol.virtual_only.0.sql | [
"Apache-2.0",
"BSD-3-Clause"
] |
IDENTIFICATION DIVISION.
PROGRAM-ID. prog.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 X-P1 PIC 9(1) VALUE 1.
01 X-P2 PIC 9(2) VALUE 12.
01 X-P3 PIC 9(3) VALUE 123.
01 X-P4 PIC 9(4) VALUE 1234.
01 X-P5 ... | COBOL | 3 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_cobol_tests/display_reals.cob | [
"BSD-3-Clause"
] |
import ../[unistd, FileDescriptor, Pipe]
version(unix || apple) {
/**
* Unix implementation of pipes.
*/
PipeUnix: class extends Pipe {
readFD, writeFD: FileDescriptor
init: func ~withFDs (=readFD, =writeFD) {
if(readFD == -1 && writeFD == -1) {
init()
return
}
... | ooc | 5 | fredrikbryntesson/launchtest | sdk/os/native/PipeUnix.ooc | [
"MIT"
] |
"""
Some correct syntax for variable annotation here.
More examples are in test_grammar and test_parser.
"""
from typing import no_type_check, ClassVar
i: int = 1
j: int
x: float = i/10
def f():
class C: ...
return C()
f().new_attr: object = object()
class C:
def __init__(self, x: int) -> None:
... | Python | 4 | shawwn/cpython | Lib/test/ann_module2.py | [
"0BSD"
] |
export default function userIdHandler(req, res) {
res.json(req.params)
}
| JavaScript | 4 | waltercruz/gatsby | integration-tests/functions/src/api/users/[userId]/[super].js | [
"MIT"
] |
[[io.webservices]]
== Web Services
Spring Boot provides Web Services auto-configuration so that all you must do is define your `Endpoints`.
The {spring-webservices-docs}[Spring Web Services features] can be easily accessed with the `spring-boot-starter-webservices` module.
`SimpleWsdl11Definition` and `SimpleXsdSchem... | AsciiDoc | 3 | techAi007/spring-boot | spring-boot-project/spring-boot-docs/src/docs/asciidoc/io/webservices.adoc | [
"Apache-2.0"
] |
#N canvas 614 110 522 601 12;
#X text 259 526 updated for Pd version 0.26;
#X obj 87 163 select 1 2;
#X floatatom 87 135 0 0 0 0 - - -;
#X obj 87 240 print select-1;
#X obj 120 215 print select-2;
#X obj 154 190 print select-3;
#X floatatom 267 138 0 0 0 0 - - -;
#X obj 307 176 pack;
#X obj 307 203 route 1 2;
#X obj 30... | Pure Data | 4 | mcclure/pure-data | doc/2.control.examples/18.conditional.pd | [
"TCL"
] |
# Task: Align columns
#
# Uses `Text::justify` from the standard library.
module align_columns
fun aligner(text: String, left: Float)
do
# Each row is a sequence of fields
var rows = new Array[Array[String]]
for line in text.split('\n') do
rows.add line.split("$")
end
# Compute the final length of each column
... | Nit | 4 | LaudateCorpus1/RosettaCodeData | Task/Align-columns/Nit/align-columns.nit | [
"Info-ZIP"
] |
#ifdef ROSE_USE_NEW_EDG_INTERFACE
// DQ (2/17/2011): Remove the initializaion since EDG reports it as an error with EDG 4.0.
shared int array [2*THREADS];
#else
shared int array [2*THREADS] = {0,1};
#endif
| Unified Parallel C | 3 | maurizioabba/rose | tests/CompileTests/UPC_tests/sharedArrayInit.upc | [
"BSD-3-Clause"
] |
/*---------------------------------------------------------------------------------------------
* 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 | extensions/github-authentication/src/extension.ts | [
"MIT"
] |
class Rubinius VariableScope {
forwards_unary_ruby_methods
def receiver {
@self
}
def receiver: recv {
@self = recv
}
}
class Rubinius ConstantScope {
forwards_unary_ruby_methods
}
| Fancy | 2 | bakkdoor/fancy | lib/rbx/scopes.fy | [
"BSD-3-Clause"
] |
[
{
"@id": "http://example.com/Subj1",
"http://example.com/prop": [
{
"@value": "true",
"@type": "http://www.w3.org/2001/XMLSchema#boolean"
},
{
"@value": "false",
"@type": "http://www.w3.org/2001/XMLSchema#boolean"
},
{
"@value": "1",
... | JSONLD | 3 | fsteeg/json-ld-api | tests/fromRdf/0002-out.jsonld | [
"W3C"
] |
$ORIGIN sub.example.com.
$TTL 3600
sub.example.com. IN SOA ns1.example.com. admin.example.com. ( 2020091025 7200 3600 1209600 3600 )
sub.example.com. IN NS ns1
sub.example.com. IN NS ns2
ns1 IN A 192.0.2.2
ns2 IN A 192.0.2.3
| DIGITAL Command Language | 3 | 4n3i5v74/certbot | certbot-ci/certbot_integration_tests/assets/bind-config/zones/db.sub.example.com | [
"Apache-2.0"
] |
FORMS +=
HEADERS += \
$$PWD/keepratiowidget.h \
$$PWD/magneticwidget.h
SOURCES += \
$$PWD/keepratiowidget.cpp \
$$PWD/magneticwidget.cpp
| QMake | 2 | gejiyu/QtScrcpy | QtScrcpy/uibase/uibase.pri | [
"Apache-2.0"
] |
var t: int;
const c = 1:t;
compilerWarning("c: ", c.type:string, 0);
| Chapel | 0 | jhh67/chapel | test/expressions/vass/cast-to-non-type-1.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
// Copyright 2010-2014 RethinkDB, all rights reserved.
#include "clustering/administration/servers/server_config.hpp"
#include "clustering/administration/datum_adapter.hpp"
#include "clustering/administration/servers/config_client.hpp"
#include "concurrency/cross_thread_signal.hpp"
bool convert_server_config_from_dat... | C++ | 4 | zadcha/rethinkdb | src/clustering/administration/servers/server_config.cc | [
"Apache-2.0"
] |
using Uno;
using Uno.Collections;
using Uno.Compiler.ExportTargetInterop;
namespace Fuse.Scripting.Duktape
{
extern(USE_DUKTAPE) class Array : Fuse.Scripting.Array
{
internal readonly IntPtr _handle;
readonly Context _ctx;
readonly int _stashKey;
public Array(Context ctx, IntPtr handle)
{
_ctx = ctx;
... | Uno | 4 | helilabs/fuselibs | Source/Fuse.Scripting.JavaScript/Duktape/Array.uno | [
"MIT"
] |
domain: "[Ny] -> { S1[i0, i1, 2i0, -2i0 + 2i1, i4] : i0 >= 0 and i0 <= 1 and i1 >= 1 + i0 and 2i1 <= -1 + Ny + 2i0 and i4 >= 1 and i4 <= 2; S2[i0, i1, 2i0, -1 - 2i0 + 2i1, i4] : i0 >= 0 and i0 <= 1 and i1 >= 1 + i0 and 2i1 <= Ny + 2i0 and i4 >= 1 and i4 <= 2 }"
child:
context: "[Ny] -> { [] }"
child:
schedule: ... | Smalltalk | 3 | chelini/isl-haystack | test_inputs/codegen/cloog/pouchet.st | [
"MIT"
] |
// RUN: %target-typecheck-verify-swift -parse-as-library
//===--- Recovery for extra braces at top level.
//===--- Keep this test the first one in the file.
// Check that we handle multiple consecutive right braces.
} // expected-error{{extraneous '}' at top level}} {{1-3=}}
} // expected-error{{extraneous '}' at top... | Swift | 4 | lwhsu/swift | test/Parse/recovery_library.swift | [
"Apache-2.0"
] |
#define BLEND_WITH_HIGHER_RESOLUTION
#include "msao_blurupsampleCS.hlsl"
| HLSL | 1 | rohankumardubey/WickedEngine | WickedEngine/shaders/msao_blurupsampleCS_blendout.hlsl | [
"MIT"
] |
signature file-shellscript {
file-mime "text/x-shellscript", 250
file-magic /^\x23\x21[^\n]{1,15}bin\/(env[[:space:]]+)?(ba|tc|c|z|fa|ae|k)?sh/
}
signature file-perl {
file-magic /^\x23\x21[^\n]{1,15}bin\/(env[[:space:]]+)?perl/
file-mime "text/x-perl", 60
}
signature file-ruby {
file-magic /^\x23\x21[^\n]{1,15}... | Standard ML | 4 | yaplej/bro | scripts/base/frameworks/files/magic/programming.sig | [
"Apache-2.0"
] |
{- Ace {- 4 -} Elm -}
main = lift clock (every second)
clock t = collage 400 400 [ filled lightGrey (ngon 12 110)
, outlined (solid grey) (ngon 12 110)
, hand orange 100 t
, hand charcoal 100 (t/60)
, hand c... | Elm | 4 | websharks/ace-builds | demo/kitchen-sink/docs/elm.elm | [
"BSD-3-Clause"
] |
{
"config": {
"abort": {
"already_configured": "Az eszk\u00f6z m\u00e1r konfigur\u00e1lva van",
"already_in_progress": "A be\u00e1ll\u00edt\u00e1si folyamat m\u00e1r el lett kezdve",
"no_devices_found": "Nem tal\u00e1lhat\u00f3 egy\u00e9b eszk\u00f6z"
},
"... | JSON | 3 | liangleslie/core | homeassistant/components/modem_callerid/translations/hu.json | [
"Apache-2.0"
] |
-----------------------------------------------------------------------
-- stemmer -- Multi-language stemmer with Snowball generator
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permit... | Ada | 5 | Klabauterman/snowball | ada/src/stemmer.ads | [
"BSD-3-Clause"
] |
// Test that regionck suggestions in a provided method of a trait
// don't ICE
trait Foo<'a> {
fn foo(&'a self);
fn bar(&self) {
self.foo();
//~^ ERROR cannot infer
}
}
fn main() {}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/issues/issue-17758.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
[attr="-a"] {} | CSS | 0 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/54mhLGCwQMwsuiVkiTzAAQ/input.css | [
"Apache-2.0"
] |
.HocBadges {
padding: 0.125rem 0.25rem;
user-select: none;
}
.Badge {
display: inline-block;
background-color: var(--color-component-badge-background);
color: var(--color-text);
padding: 0.125rem 0.25rem;
line-height: normal;
border-radius: 0.125rem;
margin-right: 0.25rem;
font-family: var(--font-f... | CSS | 3 | vegYY/react | packages/react-devtools-shared/src/devtools/views/Components/HocBadges.css | [
"MIT"
] |
/**
* @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
*/
import {Component, EventEmitter, Input, Output} from '@angular/core';
@Component({selector: 'zippy', templateUrl: '.... | TypeScript | 5 | raghavendramohan/angular | modules/playground/src/zippy_component/app/zippy.ts | [
"MIT"
] |
module audiostreamerscrobbler.factories.PlayerMonitorThreadFactory
import audiostreamerscrobbler.factories.PlayerMonitorFactory
import audiostreamerscrobbler.factories.ScrobblersFactory
import audiostreamerscrobbler.threads.PlayerMonitorThread
function createPlayerMonitorThreadFactory = {
let factory = DynamicObject... | Golo | 4 | vvdleun/audiostreamerscrobbler | src/main/golo/include/factories/PlayerMonitorThreadFactory.golo | [
"MIT"
] |
SYSTIME
NEW PH
SET PH=$PIECE($HOROLOG,",",2)
WRITE "The system time is ",PH\3600,":",PH\60#60,":",PH#60
KILL PH
QUIT
| M | 3 | LaudateCorpus1/RosettaCodeData | Task/System-time/MUMPS/system-time.mumps | [
"Info-ZIP"
] |
[[web.spring-hateoas]]
== Spring HATEOAS
If you develop a RESTful API that makes use of hypermedia, Spring Boot provides auto-configuration for Spring HATEOAS that works well with most applications.
The auto-configuration replaces the need to use `@EnableHypermediaSupport` and registers a number of beans to ease buildi... | AsciiDoc | 3 | techAi007/spring-boot | spring-boot-project/spring-boot-docs/src/docs/asciidoc/web/spring-hateoas.adoc | [
"Apache-2.0"
] |
# Export Ignition environment variables
@[if INSTALLSPACE]@
export IGN_LAUNCH_CONFIG_PATH=@(CMAKE_INSTALL_PREFIX)/@(CATKIN_PACKAGE_SHARE_DESTINATION)/launch
export IGN_LAUNCH_PLUGIN_PATH=@(CMAKE_INSTALL_PREFIX)/@(CATKIN_PACKAGE_LIB_DESTINATION):${IGN_LAUNCH_PLUGIN_PATH}
export IGN_GAZEBO_RESOURCE_PATH=@(CMAKE_INSTALL_... | EmberScript | 3 | jfkeller/subt_explorer_canary1_sensor_config_1 | subt_ign/env-hooks/30.subt_ign.bash.em | [
"ECL-2.0",
"Apache-2.0"
] |
#tag Class
Protected Class InAppPurchaseHelper
Inherits StoreKit.PaymentTransactionObserver
#tag Event
Sub UpdatedTransactions(queue as StoreKit.SKPaymentQueue, transactions() as StoreKit.SKPaymentTransaction)
for each t as StoreKit.SKPaymentTransaction in transactions
select case t.transactionState
... | Xojo | 4 | kingj5/iOSKit | Modules/StoreKit/InAppPurchaseHelper.xojo_code | [
"MIT"
] |
lines(0);
ilib_verbose(0);
ierr = exec('loader.sce', 'errcatch');
if ierr <> 0 then
disp(lasterror());
exit(ierr);
end
example_Init();
printf("\nTest constants\n");
printf("ICONST = %i (should be 42)\n", ICONST);
printf("FCONST = %5.4f (should be 2.1828)\n", FCONST);
printf("SCONST = ''%s'' (should be ''Hello W... | Scilab | 3 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/scilab/constants/runme.sci | [
"BSD-3-Clause"
] |
' createaudiosample.bmx
Local sample:TAudioSample=CreateAudioSample( 32,11025,SF_MONO8 )
For Local k=0 Until 32
sample.samples[k]=Sin(k*360/32)*127.5+127.5
Next
Local sound:TSound=LoadSound( sample,True )
PlaySound(sound)
Input | BlitzMax | 4 | jabdoa2/blitzmax | mod/brl.mod/audiosample.mod/doc/createaudiosample.bmx | [
"Zlib"
] |
CREATE TEMPORARY VIEW tab1 AS SELECT * FROM VALUES
(0), (1), (2), (2), (2), (2), (3), (null), (null) AS tab1(c1);
CREATE TEMPORARY VIEW tab2 AS SELECT * FROM VALUES
(1), (2), (2), (3), (5), (5), (null) AS tab2(c1);
CREATE TEMPORARY VIEW tab3 AS SELECT * FROM VALUES
(1, 2),
(1, 2),
(1, 3),
(2, 3... | SQL | 4 | OlegPt/spark | sql/core/src/test/resources/sql-tests/inputs/except-all.sql | [
"Apache-2.0"
] |
extends RigidBody2D
var _initial_velocity = Vector2.ZERO
var _constant_velocity = Vector2.ZERO
var _motion_speed = 400.0
var _gravity_force = 50.0
var _jump_force = 1000.0
var _velocity = Vector2.ZERO
var _on_floor = false
var _jumping = false
var _keep_velocity = false
func _physics_process(_delta):
if _initial_v... | GDScript | 4 | jonbonazza/godot-demo-projects | 2d/physics_tests/utils/rigidbody_controller.gd | [
"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 ... | JSX | 4 | delorenzosoftware/superset | superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/legacy-plugin-chart-event-flow/Stories.jsx | [
"Apache-2.0"
] |
module Fpp {
module ToCpp {
enum Phases {
configConstants
configObjects
instances
initComponents
configComponents
regCommands
readParameters
loadParameters
startTasks
stopTasks
freeThreads
tearDownComponents
}
}
}
| FORTRAN | 3 | AlperenCetin0/fprime | Fpp/ToCpp.fpp | [
"Apache-2.0"
] |
.section
.list-group-flush
div (:class "list-group-item border-0")
.title "ListOf"
.container-fluid
.row
.col
.lang Java
pre.code $ code (@insert ../../code/java/collections/01_ListOf.java) $ :class java
.col
.lang Kotlin
pre.... | Cirru | 4 | driver733/kot | cirru/collections.cirru | [
"MIT"
] |
/*
* MyDll demonstration of how to write D DLLs.
*
* stripped down version of mydll.d to avoid inclusion into module dependency
* for dynamic linking
*/
/* --------------------------------------------------------- */
class MyClass
{
string concat(string a, string b);
void free(string s);
}
export MyCl... | D | 4 | veelo/dmd | test/win32/mydll.di | [
"BSL-1.0"
] |
/*
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
*/
function main() {
context = java("org.graalvm.polyglot.Context").create();
context.eval("sl", "function createObject() { return ... | Slash | 4 | guillermomolina/simplelanguage | language/tests/CreateContext.sl | [
"UPL-1.0"
] |
import "regent"
--To use cell_pair neighbour finding you must include this file in
--the require decelarations.
require("src/neighbour_search/empty_search/neighbour_part")
| Rouge | 2 | stfc/RegentParticleDSL | src/neighbour_search/empty_search/import_empty_search.rg | [
"MIT"
] |
<p>Hello {{name}}, your order #{{orderId}} is now shipping. Your order includes:</p>
<ul>
{{#items}}
<li>{{.}}</li>
{{/items}}
</ul>
| mupad | 3 | royriojas/buildfirst | ch07/02_backbone-view-templates/app/views/templates/sample.mu | [
"MIT"
] |
module appendixA/prison
sig Gang { members: set Inmate }
sig Inmate { room: Cell }
sig Cell { }
pred safe {
// your constraints should go here
}
pred show {
// your constraints should go here
}
run show
| Alloy | 4 | Kaixi26/org.alloytools.alloy | org.alloytools.alloy.extra/extra/models/book/appendixA/prison.als | [
"Apache-2.0"
] |
cg = require '../lib/parser/codeGenerator'.code generator ()
require './assertions'
expression (expression) =
cg.operator expression (complex expression (expression))
complex expression (expression) =
cg.complex expression [expression]
variable (name) =
cg.variable [name]
loc = {
first line 1
la... | PogoScript | 4 | featurist/pogoscript | test/operatorExpressionSpec.pogo | [
"BSD-2-Clause"
] |
/* Copyright (c) 2017-2019 Netronome Systems, Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
;TEST_INIT_EXEC nfp-mem emem0:0x80 0x00154d0a 0x0d1a6805 0xca306ab8 0x080045aa
;TEST_INIT_EXEC nfp-mem emem0:0x90 0xff00de06 0x40004011 0xffff0501 0x01020501
;TEST_INIT_EXEC nfp-mem emem0:0... | UnrealScript | 3 | pcasconnetronome/nic-firmware | test/datapath/pkt_ipv4_ipv4_lso_vxlan_tcp_x80.uc | [
"BSD-2-Clause"
] |
#foo {
line: none;
line-width: 2;
[feature = 'bar'] {
line-color: red;
}
[feature = 'baz'] {
line-color: blue;
}
}
| CartoCSS | 3 | nimix/carto | test/rendering-mss/issue_462.mss | [
"Apache-2.0"
] |
FROM golang AS builder
COPY . /go/src/github.com/rclone/rclone/
WORKDIR /go/src/github.com/rclone/rclone/
RUN \
CGO_ENABLED=0 \
make
RUN ./rclone version
# Begin final image
FROM alpine:latest
RUN apk --no-cache add ca-certificates fuse tzdata && \
echo "user_allow_other" >> /etc/fuse.conf
COPY --from=builde... | Dockerfile | 3 | database64128/rclone | Dockerfile | [
"MIT"
] |
// Reported at bug #6
// unparsed as: shared[] shared[0] int *shared_ptr;
shared[] int* shared_ptr;
| Unified Parallel C | 0 | maurizioabba/rose | tests/CompileTests/UPC_tests/test2011_09.upc | [
"BSD-3-Clause"
] |
/// Red-Black Trees
import Debug "Debug";
import I "Iter";
import List "List";
import Nat "Nat";
import O "Order";
module {
/// Node color: red or black.
public type Color = { #R; #B };
/// Ordered, (red-black) tree of entries.
public type Tree<X, Y> = {
#node : (Color, Tree<X, Y>, (X, ?Y), Tree<X, Y>);... | Modelica | 5 | nomeata/motoko-base | src/RBTree.mo | [
"Apache-2.0"
] |
@###############################################
@#
@# EmPy template
@#
@###############################################
@# generates CDR serialization & deserialization methods
@#
@# Context:
@# - spec (msggen.MsgSpec) Parsed specification of the .msg file
@# - search_path (str) Path to .msg files
@#################... | EmberScript | 5 | uavosky/uavosky-px4 | msg/templates/ucdr/msg.h.em | [
"BSD-3-Clause"
] |
h2. Autoparagraph Plugin
The Autoparagraph Plugin checks the contents of editables and wraps content that is not contained in block level elements into paragraphs.
endprologue.
h3. Functional Description
The Plugin relies on the events @aloha-editable-created@ (which is fired when an editable is created) a... | Textile | 4 | antonella-del/Aloha-Editor | doc/guides/source/plugin_autoparagraph.textile | [
"CC-BY-3.0"
] |
NAME
VTK::OpenGL
LIBRARY_NAME
vtkOpenGL
DESCRIPTION
Rendering implementations for OpenGL
| Kit | 0 | txwhhny/vtk | Rendering/OpenGL2/vtk.kit | [
"BSD-3-Clause"
] |
#---------------------------------------------------------------------------
#
# xc-val-flgs.m4
#
# Copyright (c) 2013 - 2020, Daniel Stenberg <daniel@haxx.se>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright n... | M4 | 5 | jjatria/curl | m4/xc-val-flgs.m4 | [
"curl"
] |
POST /upload HTTP/1.1
Host: localhost:8080
Content-Type: multipart/form-data; boundary=----TLV0SrKD4z1TRxRhAPUvZ
Content-Length: 221
------TLV0SrKD4z1TRxRhAPUvZ
Content-Disposition: form-data; name="file"; filename="plain.txt"
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
I am a plain text file
------TLV0... | HTTP | 2 | ravitejavalluri/brackets | src/extensions/default/StaticServer/node/node_modules/connect/node_modules/multiparty/test/fixture/http/encoding/plain.txt.http | [
"MIT"
] |
#!/usr/bin/parrot -C
# by Joshua Isom
.sub main :main
.param pmc argv
.local int argc, n
argc = argv
n = 1
unless argc == 2 goto argsok
$S0 = argv[1]
n = $S0
argsok:
.local float f
$N0 = n
$N0 *= 3
$N1 = n
$N1 *= 2
$N2 = n
$N2 *= 1
f = Tak($N0, $N1, $N2)
$P0 = new .FixedFloatArray
$P0 = 1
$P0[0] = f
... | Parrot | 4 | kragen/shootout | bench/takfp/takfp.parrot | [
"BSD-3-Clause"
] |
codegen utils = require './codegenUtils'
module.exports (terms) = terms.term {
constructor (entries) =
self.is hash = true
self.entries = entries
generate (scope) =
self.generate into buffer @(buffer)
buffer.write ('{')
codegen utils.write to buffer with delimiter (self.entries, ',', buff... | PogoScript | 3 | Sotrek/Alexa | Alexa_Cookbook/Workshop/StatePop/4_IOT/tests/node_modules/aws-sdk/node_modules/cucumber/node_modules/pogo/lib/terms/hash.pogo | [
"MIT"
] |
/**
* Copyright 2020 Espressif Systems (Shanghai) PTE LTD
*
* 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 ap... | Linker Script | 4 | cablelabs/esp-idf | components/esp_system/test_eh_frame_parser/linker.ld | [
"Apache-2.0"
] |
<cfcomponent>
<cfset variables.bugEmailSender = "">
<cfset variables.bugEmailRecipients = "">
<cfset variables.defaultSeverityCode = "ERROR">
<cfset variables.hostName = CreateObject("java", "java.net.InetAddress").getLocalHost().getHostName()>
<cfset variables.appName = replace(application.applicationName," ","... | ColdFusion CFC | 5 | subethaedit/SubEthaEd | Documentation/ModeDevelopment/Reference Files/CFML/bugTrackerService.cfc | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.