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 |
|---|---|---|---|---|---|
class: draw;
dpi: 96;
size: A6*;
text {
text: "TEST";
font: "Roboto Slab";
font-size: 48pt;
}
| CLIPS | 2 | asmuth-archive/travistest | test/draw/text_custom_font.clp | [
"Apache-2.0"
] |
Red [
Title: "Red VID simple test script"
Author: "Nenad Rakocevic"
File: %vid6.red
Needs: 'View
]
system/view/VID/debug?: yes
view [
at 320x1 base 1x400 black
below left base 200x1 button 50x50 button "OK" text "text" cyan field drop-down check yellow radio yellow drop-list progress slider return
... | Red | 3 | 0xflotus/red | tests/vid6.red | [
"BSL-1.0",
"BSD-3-Clause"
] |
; https://autohotkey.com/board/topic/33506-read-ini-file-in-one-go/
ReadIni( filename = 0 )
; Read a whole .ini file and creates variables like this:
; %Section%%Key% = %value%
{
Local s, c, p, key, k
if not filename
filename := SubStr( A_ScriptName, 1, -3 ) . "ini"
FileRead, s, %filename%
Loop, Parse, s, `n... | AutoHotkey | 4 | seresta/Win-Virtual-Desktop-Enhancer | libraries/read-ini.ahk | [
"MIT"
] |
import io/File
import os/Env
import text/StringTokenizer
/**
* Utilities for launching processes
*/
ShellUtils: class {
/**
* @return the path of an executable, if it can be found. It looks in the PATH
* environment variable.
*/
findExecutable: static func (executableName: String, crucial :=... | ooc | 4 | fredrikbryntesson/launchtest | sdk/os/ShellUtils.ooc | [
"MIT"
] |
CREATE TABLE `tb_ygyyvdctrs` (
`col_hirzxaomit` varbinary(145) NOT NULL,
`col_rpxmbgbwos` longblob,
`col_emexlkeymz` enum('enum_or_set_0','enum_or_set_1','enum_or_set_2') CHARACTER SET utf8mb4 DEFAULT 'enum_or_set_0',
`col_ibmogxgtyp` set('enum_or_set_0','enum_or_set_1','enum_or_set_2') CHARACTER SET latin1 DEF... | SQL | 3 | yuanweikang2020/canal | parse/src/test/resources/ddl/alter/mysql_17.sql | [
"Apache-2.0"
] |
-- enable under the main muc component
local queue = require "util.queue";
local new_throttle = require "util.throttle".create;
local timer = require "util.timer";
-- we max to 500 participants per meeting so this should be enough, we are not suppose to handle all
-- participants in one meeting
local PRESENCE_QUEUE_M... | Lua | 4 | seabass-labrax/jitsi-meet | resources/prosody-plugins/mod_muc_rate_limit.lua | [
"Apache-2.0"
] |
/// <reference path='fourslash.ts' />
// @jsx: preserve
// @filename: foo.tsx
////interface P {
//// a: number;
//// b: string;
//// c: number[];
//// d: any;
////}
////const A = ({ a, b, c, d }: P) =>
//// <div>{a}{b}{c}{d}</div>;
////const props = { a: 1, b: "" };
////
////const C1 = () ... | TypeScript | 4 | monciego/TypeScript | tests/cases/fourslash/codeFixAddMissingAttributes_all.ts | [
"Apache-2.0"
] |
: LIST ( size -- )
CREATE DUP , CELLS ALLOT
;
: LIST@ ( index list -- value )
SWAP 1 + CELLS + @
;
: LIST! ( value index list -- )
SWAP 1 + CELLS + !
;
: STALINSORT ( list -- sorted-list )
0 OVER LIST@ SWAP 1 SWAP DUP @ 1
DO
I OVER LIST@ ROT ROT >R >R 2DUP
> IF
DROP
... | Forth | 3 | twofist/stalin-sort | forth/stalin-sort.fth | [
"MIT"
] |
#include <ATen/cuda/cub.cuh>
#include <gtest/gtest.h>
TEST(NumBits, CubTest) {
using at::cuda::cub::get_num_bits;
ASSERT_EQ(get_num_bits(0b0000000000000000000000000000000000000000000000000000000000000000UL), 1);
ASSERT_EQ(get_num_bits(0b0000000000000000000000000000000000000000000000000000000000000001UL), 1);
A... | Cuda | 4 | Hacky-DH/pytorch | aten/src/ATen/test/cuda_cub_test.cu | [
"Intel"
] |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="12008004">
<Item Name="My Computer" Type="My Computer">
<Property Name="NI.SortType" Type="Int">3</Property>
<Property Name="server.app.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.control.propertiesEnabled" ... | LabVIEW | 2 | gb119/LabVIEW-Bits | LabVIEW API/XNodes/Array XNodes/Unindex and unbundle/Unindex and Unbundle.lvproj | [
"BSD-3-Clause"
] |
exec("swigtest.start", -1);
testString = "Scilab test string";
checkequal(UCharFunction(testString), testString, "UCharFunction(testString)");
checkequal(SCharFunction(testString), testString, "SCharFunction(testString)");
checkequal(CUCharFunction(testString), testString, "CUCharFunction(testString)");
checkequal(CS... | Scilab | 2 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/apply_strings_runme.sci | [
"BSD-3-Clause"
] |
(module
(type $t0 (func (param i64) (result i64)))
(type $t1 (func (result i32)))
(import "./other1.wat" "getI64" (func $getI641 (type $t0)))
(import "./other2.wat" "getI64" (func $getI642 (type $t0)))
(func $testI64 (type $t1) (result i32)
i64.const 1152921504606846976
call $getI641
call $getI642... | WebAssembly | 4 | 1shenxi/webpack | test/cases/wasm/imports-many-direct/wasm.wat | [
"MIT"
] |
Rebol [Title: "Google Code Prettify Datatypes"]
re: func [s /i] [rejoin compose ["/^^" (s) "/" either i ["i"][""]]] ; little helper for standard grammar regex used
date-re: "\d{1,2}[\-\/](\d{1,2}|\w{3,9})[\-\/]\d{2,4}" ; naive date! regex
string-re: {\"(?:[^^\"\\]|\\[\s\S])*(?:\"|$)}
brace-re: "\{(?:[^^\}\^^]|\^... | R | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Rebol/GCP-datatypes.r | [
"MIT"
] |
<div class="container">
<h2>Please place a new Order!</h2>
</div>
<div class="container" *ngIf="response !== null">
<h3>Your order {{response.id}} was successfully placed, please check the status of order.</h3>
</div>
<div class="container" *ngIf="error !== null">
<h3>Your order could not be placed at the moment:... | HTML | 3 | DBatOWL/tutorials | reactive-systems/frontend/src/app/orders/orders.component.html | [
"MIT"
] |
local data_util = {}
require 'torch'
-- options = require '../options.lua'
-- load dataset from the file system
-- |name|: name of the dataset. It's currently either 'A' or 'B'
function data_util.load_dataset(name, opt, nc)
local tensortype = torch.getdefaulttensortype()
torch.setdefaulttensortype('torch.FloatTen... | Lua | 4 | uk0/CycleGAN | data/data_util.lua | [
"BSD-3-Clause"
] |
Module: common-dylan-test-suite
Synopsis: Tests for simple-random:common-dylan
/*---*** andrewa: not used yet...
define method chi-square
(N :: <integer>, range :: <integer>) => (chi-square :: <integer>)
let f = make(<simple-object-vector>, size: range, fill: 0);
for (i from 0 below N)
let rand = random(r... | Dylan | 4 | lenoil98/opendylan | sources/common-dylan/tests/random-tests.dylan | [
"BSD-2-Clause"
] |
/*
* Copyright (c) 2020, Shannon Booth <shannon.ml.booth@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Forward.h>
#include <LibGfx/Point.h>
namespace Gfx {
class Triangle {
public:
Triangle(IntPoint a, IntPoint b, IntPoint c)
: m_a(a)
, m_b(b)
, m_... | C | 4 | r00ster91/serenity | Userland/Libraries/LibGfx/Triangle.h | [
"BSD-2-Clause"
] |
{{
IR_Remote_NewCog.spin
Tom Doyle
2 March 2007
Panasonic IR Receiver - Parallax #350-00014
Receive and display codes sent from a Sony TV remote control.
See "Infrared Decoding and Detection appnote" and "IR Remote for the Boe-Bot Book v1.1"
on Parallax website for a... | Propeller Spin | 5 | deets/propeller | libraries/community/p1/All/IR Transmit/IR_Remote.spin | [
"MIT"
] |
package com.alibaba.json.bvt.util;
import java.util.HashMap;
import org.junit.Assert;
import junit.framework.TestCase;
import com.alibaba.fastjson.util.ASMUtils;
public class JSONASMUtilTest extends TestCase {
public void test_0() throws Exception {
Assert.assertEquals("()I", ASMUtils.desc(HashMap.clas... | Java | 3 | Czarek93/fastjson | src/test/java/com/alibaba/json/bvt/util/JSONASMUtilTest.java | [
"Apache-2.0"
] |
enum Quux<T> { Bar }
fn foo(c: Quux) { assert!((false)); } //~ ERROR missing generics for enum `Quux`
fn main() { panic!(); }
| Rust | 1 | mbc-git/rust | src/test/ui/tag-type-args.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
[[
require "lapis.config" ("development", {
server = "cqueues";
})
]]
| MoonScript | 2 | tommy-mor/lapis | lapis/cmd/cqueues/templates/config.moon | [
"MIT",
"Unlicense"
] |
*** Test Cases ***
Match all allowed
[Documentation] FAIL Keyword '\${catch all}' expected 0 arguments, got 1.
Exact match hello kitty
Matches catch all
Matches catch all Illegal with argument
*** Keywords ***
${catch all}
BuiltIn.Log x
Exact match
[Arguments] ${foo}
... | RobotFramework | 3 | phil-davis/robotframework | atest/testdata/keywords/embedded_arguments_match_all.robot | [
"ECL-2.0",
"Apache-2.0"
] |
#!/bin/csh -x
# NB: at the point when this script is run, vagrant's shell is csh
set echo
#Set the time correctly
ntpdate -v -b in.pool.ntp.org
date > /etc/vagrant_box_build_time
# allow freebsd-update to run fetch without stdin attached to a terminal
sed 's/\[ ! -t 0 \]/false/' /usr/sbin/freebsd-update > /tmp/free... | Tcsh | 4 | ibizaman/veewee | templates/freebsd-9.1-RELEASE-amd64/postinstall.csh | [
"MIT"
] |
#!/bin/tcsh
set nl=10
set N=128
set M=128
echo nl=$nl
echo N=$N
echo M=$M
#compile covariance
chpl --fast covariance.chpl -o covariance
echo 'Cyclic (C)'
./covariance -nl $nl --dist=C --N=$N --M=$M --messages
./covariance -nl $nl --dist=C --N=$N --M=$M --timeit
echo 'Cyclic with modulo unrolling (CM)'
./covariance ... | Tcsh | 4 | jhh67/chapel | test/users/aroonsharma/docovariancebench.tcsh | [
"ECL-2.0",
"Apache-2.0"
] |
$(OBJDIR)/formatparse.cmi: $(OBJDIR)/cil.cmi
| D | 1 | heechul/crest-z3 | cil/obj/.depend/formatparse.di | [
"BSD-3-Clause"
] |
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
namespace Phalcon\Cli\Router;
/**
* Interface for Phalcon\Cli\Router\Route
*/
interfa... | Zephir | 3 | tidytrax/cphalcon | phalcon/Cli/Router/RouteInterface.zep | [
"BSD-3-Clause"
] |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports Microsoft.CodeAnalysis.Test.Utilities
Imports Microsoft.CodeAnalysis.VisualBasic.Syntax
Imports Roslyn.Test.Ut... | Visual Basic | 4 | ffMathy/roslyn | src/Compilers/VisualBasic/Test/IOperation/IOperation/IOperationTests_IAnonymousFunctionOperation.vb | [
"MIT"
] |
use "buffered"
class FileLines is Iterator[String iso^]
"""
Iterate over the lines in a file.
Returns lines without trailing line breaks.
Advances the file cursor to the end of each line returned from `next`.
This class buffers the file contents to accumulate full lines. If the file
does not contain line... | Pony | 5 | presidentbeef/ponyc | packages/files/file_lines.pony | [
"BSD-2-Clause"
] |
<html>
<!-- Using a <blockquote> because it's an obscure tag -->
<!-- which allows us to use document.querySelector() -->
<!-- with generic tags freely inside Cypress tests. -->
<blockquote id="root">
<!-- This is where our test subjects will be injected. -->
</blockquote>
<script sr... | HTML | 4 | valorin/alpine | tests/cypress/spec.html | [
"MIT"
] |
async control = require '../asyncControl'
module.exports (terms) =
for expression term = terms.term {
constructor (init, test, incr, stmts) =
self.is for = true
self.initialization = init
self.test = test
self.increment = incr
self.index variable ... | PogoScript | 2 | Sotrek/Alexa | Alexa_Cookbook/Workshop/StatePop/4_IOT/tests/node_modules/aws-sdk/node_modules/cucumber/node_modules/pogo/lib/terms/forExpression.pogo | [
"MIT"
] |
? my $ctx = $main::context;
? $_mt->wrapper_file("wrapper.mt", "Configure", "Redirect Directives")->(sub {
<p>
This document describes the configuration directives of the redirect handler.
</p>
? $ctx->{directive_list}->()->(sub {
<?
$ctx->{directive}->(
name => "redirect",
levels => [ qw(path) ],
... | Mathematica | 4 | pldubouilh/h2o | srcdoc/configure/redirect_directives.mt | [
"MIT"
] |
package io.swagger.client.model {
import io.swagger.common.ListWrapper;
import io.swagger.client.model.Category;
import io.swagger.client.model.Tag;
public class PetList implements ListWrapper {
// This declaration below of _Pet_obj_class is to force flash compiler to include this class
private va... | ActionScript | 4 | wwadge/swagger-codegen | samples/client/petstore/flash/flash/src/io/swagger/client/model/PetList.as | [
"Apache-2.0"
] |
SUMMARY = "Main program"
DESCRIPTION = "Handle main function"
LICENSE = "CLOSED"
FILESEXTRAPATHS_prepend := "${THISDIR}/../../../../:"
SRC_URI = " \
file://main.service \
file://xiaopi \
file://src/ \
file://CMakeLists.txt \
"
inherit systemd cmake
S = "${WORKDIR}"
EXTRA_OECMAKE = ""
DEPENDS = "n... | BitBake | 3 | abir1999/xiaoPi | bsp/meta-xiaopi/recipes-images/main/main.bb | [
"Unlicense"
] |
size: 1024px 512px;
dpi: 240;
limit-x: 0 7;
limit-y: 0 10000;
scale-y: log;
axes {
position: left bottom;
label-placement-x: linear-interval(1 1 6);
}
bars {
data-x: csv("test/testdata/histogram.csv" var0);
data-y: csv("test/testdata/histogram.csv" var1);
width: 1.8em;
color: #666;
}
| CLIPS | 3 | asmuth-archive/travistest | test/examples/charts_basic_histogram.clp | [
"Apache-2.0"
] |
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct S {
float f;
array<float, 5> af;
half4 h4;
array<half4, 5> ah4;
};
struct Uniforms {
half4 colorGreen;
};
struct Inputs {
};
struct Outputs {
half4 sk_FragColor [[color(0)]];
};
struct Globals {
half4 globalVar;
... | Metal | 3 | fourgrad/skia | tests/sksl/shared/Assignment.metal | [
"BSD-3-Clause"
] |
- show_success_alert = local_assigns.fetch(:show_success_alert, nil)
.js-2fa-recovery-codes{ data: { codes: @codes.to_json, profile_account_path: profile_account_path(two_factor_auth_enabled_successfully: show_success_alert) } }
| Haml | 3 | glimmerhq/glimmerhq | app/views/profiles/two_factor_auths/_codes.html.haml | [
"MIT"
] |
// run-rustfix
// Test that we do not consider associated types to be sendable without
// some applicable trait bound (and we don't ICE).
#![allow(dead_code)]
trait Trait {
type AssocType;
fn dummy(&self) { }
}
fn bar<T:Trait+Send>() {
is_send::<T::AssocType>(); //~ ERROR E0277
}
fn is_send<T:Send>() {
}
... | Rust | 4 | Eric-Arellano/rust | src/test/ui/typeck/typeck-default-trait-impl-assoc-type.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
void main() {
PostProcessInputs inputs;
// Invoke user code
postProcess(inputs);
#if defined(TARGET_MOBILE)
#if defined(FRAG_OUTPUT0)
inputs.FRAG_OUTPUT0 = clamp(inputs.FRAG_OUTPUT0, -MEDIUMP_FLT_MAX, MEDIUMP_FLT_MAX);
#endif
#if defined(FRAG_OUTPUT1)
inputs.FRAG_OUTPUT1 = clamp(inputs.FRAG_OUTPUT... | F# | 3 | andykit/filament | shaders/src/post_process.fs | [
"Apache-2.0"
] |
( Generated from test_statement_switch_variants_in.muv by the MUV compiler. )
( https://github.com/revarbat/pymuv )
: _main[ _a -- ret ]
begin
_a @
var! _swvar
_swvar @ "1" strcmp not if
"One" me @ swap notify break
then
_swvar @ "2" strcmp not if
"... | MUF | 3 | revarbat/pymuv | tests/test_statement_switch_variants_cmp.muf | [
"MIT"
] |
INTERFACE ILastFocus
PROPERTY LastFocus AS Control GET SET
END INTERFACE
INTERFACE ITimer
METHOD __Timer() AS VOID STRICT
END INTERFACE
| xBase | 4 | orangesocks/XSharpPublic | Runtime/VOSdkTyped/Source/VOSdk/GUI_Classes_SDK/Windows/Interfaces.prg | [
"Apache-2.0"
] |
// run-pass
// aux-build:auto_xc_2.rs
extern crate auto_xc_2 as aux;
// aux defines impls of Foo, Bar and Baz for A
use aux::{Foo, Bar, Baz, A};
// We want to extend all Foo, Bar, Bazes to Quuxes
pub trait Quux: Foo + Bar + Baz { }
impl<T:Foo + Bar + Baz> Quux for T { }
fn f<T:Quux>(a: &T) {
assert_eq!(a.f(), ... | Rust | 4 | mbc-git/rust | src/test/ui/traits/inheritance/auto-xc-2.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#!perl
#
# test apparatus for Text::Template module
# still incomplete.
#
use strict;
use warnings;
use Test::More tests => 4;
use_ok 'Text::Template' or exit 1;
my $templateIN = q{
This line should have a 3: {1+2}
This line should have several numbers:
{ $t = ''; foreach $n (1 .. 20) { $t .= $n . ' ' } $t }
};
my... | Perl | 4 | pmesnier/openssl | external/perl/Text-Template-1.56/t/out.t | [
"Apache-2.0"
] |
- dashboard: ad_performance
title: Ad Performance
layout: newspaper
elements:
- name: Progress
type: text
title_text: Progress
subtitle_text: Current Performance Trends
body_text: ''
row: 0
col: 0
width: 24
height: 2
- name: Details
type: text
title_text: Details
su... | LookML | 3 | umesh0894/google_adwords | ad_group_performance.dashboard.lookml | [
"MIT"
] |
from typing import Tuple
from torch.utils.data import IterDataPipe
from torch.utils.data.datapipes.utils.common import deprecation_warning_torchdata
class LineReaderIterDataPipe(IterDataPipe[Tuple[str, str]]):
r""" :class:`LineReaderIterDataPipe`
Iterable DataPipe to load file name and stream as source IterD... | Python | 4 | xiaohanhuang/pytorch | torch/utils/data/datapipes/iter/linereader.py | [
"Intel"
] |
#!/usr/bin/env pike
int count = 0, start, end;
mapping(int:multiset(int)) graph = ([]);
mapping(int:int) big = ([]);
multiset(int) set = (<>);
int twice = 0;
void dfs(int u) {
if (u == end) {
count++;
return;
}
int t = set[u] && !big[u];
set[u] = true;
if (t) twice = 1;
foreach (graph[u]; int k; in... | Pike | 4 | abeaumont/competitive-programming | advent-of-code/2021/day12/part2.pike | [
"WTFPL"
] |
p :global(span:not(.test)) {
color: green;
}
| CSS | 3 | fabiosantoscode/swc | css/parser/tests/fixture/styled-jsx/selector/2/input.css | [
"Apache-2.0",
"MIT"
] |
<template>
<div class="main">
<p>Page with SCSS</p>
<p>
<NuxtLink to="/less">
LESS
</NuxtLink>
</p>
</div>
</template>
<style lang="scss" scoped>
/* ~/assets/variables.scss is injected automatically here */
.main {
background: $main;
padding: 10px;
}
</style>
| Vue | 4 | ardyno/nuxt.js | examples/style-resources/pages/index.vue | [
"MIT"
] |
divert(-1)
postscript.m4 Initialization for Postscript output.
* Circuit_macros Version 9.3, copyright (c) 2020 J. D. Aplevich under *
* the LaTeX Project Public Licence in file Licence.txt. The files of *
* this distribution may be redistributed or modified provided that this *
* cop... | M4 | 4 | gammy55/linguist | samples/M4/postscript.m4 | [
"MIT"
] |
//! Constants for the 128-bit signed integer type.
//!
//! *[See also the `i128` primitive type][i128].*
//!
//! New code should use the associated constants directly on the primitive type.
#![stable(feature = "i128", since = "1.26.0")]
#![rustc_deprecated(
since = "TBD",
reason = "all constants in this module... | Rust | 4 | mbc-git/rust | library/core/src/num/shells/i128.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
@require 'subdir/**/*'
.index
color: red
| Stylus | 1 | johanberonius/parcel | packages/core/integration-tests/test/integration/stylus-glob-import/index.styl | [
"MIT"
] |
#tag Class
Protected Class GKNotificationBanner
Inherits NSObject
#tag DelegateDeclaration, Flags = &h0
Delegate Sub BannerCompletionHandler()
#tag EndDelegateDeclaration
#tag Method, Flags = &h21
Private Shared Function ClassRef() As Ptr
static ref as ptr = NSClassFromString("GKNotificationBanner")
ret... | Xojo | 4 | kingj5/iOSKit | Modules/GameKitFolder/GameKit/GKNotificationBanner.xojo_code | [
"MIT"
] |
# git describe
> Rendi il nome di un oggetto Git più leggibile usando i riferimenti disponibili.
> Maggiori informazioni: <https://git-scm.com/docs/git-describe>.
- Crea un nome univoco per il commit corrente (il nome contiene i tag più recenti, il numero di commit aggiuntivi, e l'hash breve del commit):
`git descri... | Markdown | 4 | derNiklaas/tldr | pages.it/common/git-describe.md | [
"CC-BY-4.0"
] |
<?xml version="1.0" encoding="UTF-8"?>
<faces-config>
<faces-config-extension>
<namespace-uri>http://www.ibm.com/xsp/custom</namespace-uri>
<default-prefix>xc</default-prefix>
</faces-config-extension>
<composite-component>
<component-type>jobApplication_list</component-type>
<composite-name>jobAp... | XPages | 4 | IBM-FMC/TESTE | nsf/CustomControls/jobApplication_list.xsp-config | [
"Apache-2.0"
] |
<svg id="color-fill" xmlns="http://www.w3.org/2000/svg" version="1.1" width="300" height="300" xmlns:xlink="http://www.w3.org/1999/xlink">
<rect x="25" y="25" width="250" height="250" style="fill:#ff0000;fill-opacity:0.2;stroke:none" />
<rect x="50" y="50" width="100" height="200" style="fill:#000000;fill-... | SVG | 2 | KostaMalsev/three.js | examples/models/svg/tests/ordering.svg | [
"MIT"
] |
/*!40101 SET NAMES binary*/;
/*!40014 SET FOREIGN_KEY_CHECKS=0*/;
/*!40103 SET TIME_ZONE='+00:00' */;
INSERT INTO `enum-set` VALUES
("g51",""),
("g5d","x25"),
("g4f","x13,x62"),
("g30","x04,x17,x51"),
("g95","x08,x40,x53,x51"),
("ged","x29,x53,x25,x58,x08"),
("g67","x59,x42,x20,x15,x28,x11"),
("gc3","x12,x45,x37,x34,x3... | SQL | 2 | imtbkcat/tidb-lightning | tests/various_types/data/vt.enum-set.sql | [
"Apache-2.0"
] |
; CLW file contains information for the MFC ClassWizard
[General Info]
Version=1
LastClass=CUdmpViewDlg
LastTemplate=CDialog
NewFileInclude1=#include "stdafx.h"
NewFileInclude2=#include "UdmpView.h"
ClassCount=3
Class1=CUdmpViewApp
Class2=CUdmpViewDlg
Class3=CAboutDlg
ResourceCount=5
Resource1=IDD_ABOUTBOX
Resource2... | Clarion | 1 | oudream/ccxx | test/dump/swdbgbk_src/chap12/UdmpView/UdmpView.clw | [
"MIT"
] |
export MemCached := SERVICE
DATASET MGetDataset(CONST VARSTRING servers, CONST VARSTRING key, CONST VARSTRING partitionKey = 'root') : cpp,action,context,entrypoint='MGetData';
END;
STRING servers := '--SERVER=myIP:11211';
myRec := RECORD
integer i1;
integer i2;
real r1;
string name;
END;
... | ECL | 3 | miguelvazq/HPCC-Platform | ecl/regress/issue12122.ecl | [
"Apache-2.0"
] |
#!/bin/sh
PATH=/bin:/usr/bin
TERM=screen
[ -z "$TEST_TMUX" ] && TEST_TMUX=$(readlink -f ../tmux)
TMUX="$TEST_TMUX -Ltest"
$TMUX kill-server 2>/dev/null
TMP=$(mktemp)
trap "rm -f $TMP" 0 1 15
cat <<EOF >$TMP
new -sfoo -nfoo0; neww -nfoo1; neww -nfoo2
new -sbar -nbar0; neww -nbar1; neww -nbar2
EOF
$TMUX -f$TMP start ... | Shell | 3 | SliceThePi/tmux | regress/command-order.sh | [
"ISC"
] |
extern i64_to_str
; Function that converts a number to a string
; Arguments 1:
; RDI - the number
; Returns:
; The character pointer in RAX of size 20
i64_to_str:
; Save return address
pop rsi
; Save number into rax
mov rax, rdi
; Allocate 20 bytes for the character pointer
sub rsp, 20
; Save the character pointer
mov... | Parrot Assembly | 4 | giag3/peng-utils | asm-lib/i64_to_str.pasm | [
"MIT"
] |
2018-12-13 19:13:25 >> brett12345 (brett@96247946.C69A8C52.B0B4CEE2.IP) has joined #recovery
2018-12-13 19:13:25 -- Topic for #recovery is "ACCOUNT RECOVERY | https://orpheus.network/recovery.php | State your new username if it is not the same as your IRC nick | DO NOT PM THE MODERATORS UNLESS ASKED. | Emails might tak... | IRC log | 0 | Brettm12345/dotfiles | weechat/logs/irc.orpheus.#recovery.weechatlog | [
"MIT"
] |
- active = params[:tab] == 'health'
= gl_tab_link_to clusterable.cluster_path(@cluster.id, params: { tab: 'health' }), { item_active: active, data: { testid: 'cluster-health-tab' } } do
= _('Health')
| Haml | 4 | nowkoai/test | app/views/clusters/clusters/_health_tab.html.haml | [
"MIT"
] |
; -- 64BitThreeArch.iss --
; Demonstrates how to install a program built for three different
; architectures (x86, x64, ARM64) using a single installer.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!
[Setup]
AppName=My Program
AppVersion=1.5
WizardStyle=modern
DefaultDirName={autopf}\My ... | Inno Setup | 5 | Patriccollu/issrc | Examples/64BitThreeArch.iss | [
"FSFAP"
] |
"xyz" { }
| JFlex | 0 | Mivik/jflex | javatests/jflex/testcase/include_in_rules/extra-jflex-rules.inc.jflex | [
"BSD-3-Clause"
] |
_stack_size = 2K;
SECTIONS
{
/* Second stage bootloader is prepended to the image. It must be 256 bytes
and checksummed. The gap to the checksum is zero-padded.
*/
.boot2 : {
__boot2_start__ = .;
KEEP (*(.boot2));
/* Explicitly allocate space for CRC32 checksum at end of s... | Linker Script | 4 | attriaayush/tinygo | targets/rp2040.ld | [
"Apache-2.0"
] |
.CodeMirror.cm-s-synthwave-84{font-family:Menlo,Consolas,'DejaVu Sans Mono',monospace;font-weight:350;font-size:18px;color:#b6b1b1;background-color:#2b213a}.cm-s-synthwave-84 .CodeMirror-selected{background-color:#1f172e!important}.cm-s-synthwave-84 .CodeMirror-gutter,.cm-s-synthwave-84 .CodeMirror-gutters{border:none;... | CSS | 3 | mpepping/carbon | public/static/themes/synthwave-84.min.css | [
"MIT"
] |
<template>
<transition-group name="suggestion" class="suggestions">
<SuggestionBarItem
v-for="(suggestion, index) of suggestions"
:key="`${$i18n.locale}:${suggestion.id}`"
:suggestion="suggestion"
:index="suggestions.length - index - 1"
ping
/>
</transition-group>
</template>
... | Vue | 3 | brizer/vue-cli | packages/@vue/cli-ui/src/components/suggestion/SuggestionBarList.vue | [
"MIT"
] |
INSERT INTO `char` VALUES
( 0, 'ee72ae0a-ef35-4c5d-94ff-e82f696af30d'),
( 1, '2dad5648-0dbd-4a00-a1ae-d85a3fbc6c3d'),
( 2, 'a35b4b77-c453-49d7-9faa-41041efad77b'),
( 3, '950a780f-93b8-4010-9a97-a8c60304ef69'),
( 4, '73da4e0f-1171-4304-b781-c2339e5c3973'),
( 5, '0a3c47cc-54ea-4ce3-bb91-7006985bf31a'),
( 6, 'd03a918a-a54... | SQL | 2 | imtbkcat/tidb-lightning | tests/various_types/data/vt.char.sql | [
"Apache-2.0"
] |
@echo off
rem bz - Build the entire solution without cleaning it first.
rem This is another script to help Microsoft developers feel at home working on
rem the terminal project.
call bcz no_clean %*
| Batchfile | 3 | hessedoneen/terminal | tools/bz.cmd | [
"MIT"
] |
/*
Copyright © 2011 MLstate
This file is part of Opa.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify... | Opa | 5 | Machiaweliczny/oppailang | lib/stdlib/apis/github/issue/issue.opa | [
"MIT"
] |
<#ftl output_format="plainText">
${msg("eventUpdateTotpBody",event.date, event.ipAddress)} | FreeMarker | 2 | rmartinc/keycloak | themes/src/main/resources/theme/base/email/text/event-update_totp.ftl | [
"Apache-2.0"
] |
#200
manaspring~
1 0 o 167 -1
A
7 2
A
16 1
R
1206 5 # 5x an iridescent blue iris
S
#201
healing~
1 0 o 167 -1
A
23 2
A
7 1
R
1300 5 # 5x a glowing green seashell
S
#202
fury~
1 0 o 167 -1
A
22 2
A
7 1
R
103 5 # 5x a yellow lightning stone
S
#203
venom~
1 0 o 167 -1
A
21 2
A
6 1
R
104 5 # 5x a red bloodstone
S
$
| Augeas | 1 | EmpireMUD/EmpireMUD-2.0-Beta | lib/world/aug/2.aug | [
"DOC",
"Unlicense"
] |
dcl_settings : default_dcl_settings { audit_level = 3; }
STYLES : dialog {
label = "General Settings" ;
: row {
: boxed_column {
label = "Annotations" ;
: edit_box {
edit_width = 15 ;
key = "ala" ;
label = "Area layer:" ;
}
: edit_box {
edit_width = 15 ;
key = "ats" ;... | Clean | 4 | geetarista/autocad-routines | styles.dcl | [
"MIT"
] |
#tag Class
Protected Class Win32MutexWFS
#tag Method, Flags = &h1
Protected Sub Close()
#if TargetWin32
Declare Sub CloseHandle Lib "Kernel32" ( handle as Integer )
if mHandle <> 0 then
CloseHandle( mHandle )
end
#endif
mHandle = 0
End Sub
#tag EndMethod
#tag Me... | REALbasic | 3 | bskrtich/WFS | Windows Functionality Suite/Miscellaneous/Classes/Win32MutexWFS.rbbas | [
"MIT"
] |
// SKIP_IN_RUNTIME_TEST because there's no stable way to determine if a field is initialized with a non-null value in runtime
package test;
public class StaticFinal {
public static final String publicNonNull = "aaa";
public static final String publicNull = null;
static final String packageNonNull = "bbb";... | Java | 3 | qussarah/declare | compiler/testData/loadJava/compiledJava/static/StaticFinal.java | [
"Apache-2.0"
] |
--TEST--
Bug #67072 Echoing unserialized "SplFileObject" crash
--FILE--
<?php
echo unserialize('O:13:"SplFileObject":1:{s:9:"*filename";s:15:"/home/flag/flag";}');
?>
===DONE==
--EXPECTF--
Fatal error: Uncaught Exception: Unserialization of 'SplFileObject' is not allowed in %s:%d
Stack trace:
#0 %s(%d): unserialize('O:... | PHP | 3 | NathanFreeman/php-src | ext/standard/tests/serialize/bug67072.phpt | [
"PHP-3.01"
] |
{
module MixedStatefulStateless where
import Komeji.Satori
import Komeji.Koishi
}
tokens :-
@reimu { simple ReimuToken }
<state> {
@alice { simple AliceToken }
}
{
Stop the time!
}
| Logos | 2 | safarmer/intellij-haskell | src/test/testData/parsing/MixedStatefulStateless.x | [
"Apache-2.0"
] |
$blue: #056ef0;
$column: 200px;
.menu {
width: $column;
}
.menu_link {
background: $blue;
width: $column;
}
| Opal | 4 | jstransformers/jstransformer-opalcss | test/input.opal | [
"MIT"
] |
@article{cattell2011scalable,
title={Scalable SQL and NoSQL data stores},
author={Cattell, Rick},
journal={ACM SIGMOD Record},
volume={39},
number={4},
pages={12--27},
year={2011},
publisher={ACM}
}
@article{chang2008bigtable,
title={Bigtable: A distributed storage system for ... | TeX | 2 | RomaKoks/druid | publications/whitepaper/druid.bib | [
"Apache-2.0"
] |
NB. input data
X =: 4 3 $ 0 0 1 0 1 1 1 0 1 1 1 1
NB. target data
Y =: 4 1 $ 0 0 1 1
NB. init weights
w =: 3 1 $ 0.5069797399 0.5703818579 0.9265880619
e =: 2.718281828459045
iter =: ^:
dot =: +/ . *
T =: |:
output =: verb define
1 % 1 + e ^ 0 - X dot y
)
train =: verb define
l1 =: output y
l1_err =: Y - l... | J | 4 | ghosthamlet/ann.apl | ann.ijs | [
"MIT"
] |
set(OpenCV_HAL_FOUND @OpenCV_HAL_FOUND@)
set(OpenCV_HAL_VERSION @OpenCV_HAL_VERSION@)
set(OpenCV_HAL_LIBRARIES @OpenCV_HAL_LIBRARIES@)
set(OpenCV_HAL_HEADERS @OpenCV_HAL_HEADERS@)
set(OpenCV_HAL_INCLUDE_DIRS @OpenCV_HAL_INCLUDE_DIRS@)
| CMake | 2 | thisisgopalmandal/opencv | samples/hal/slow_hal/config.cmake | [
"BSD-3-Clause"
] |
#! /usr/bin/env perl
# Copyright 2004-2016 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the Apache License 2.0 (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
# in the file LICENSE in the source distribution or at
# https://www.openssl.... | Perl | 3 | pmesnier/openssl | VMS/VMSify-conf.pl | [
"Apache-2.0"
] |
from .common cimport BITSET_INNER_DTYPE_C
from .common cimport BITSET_DTYPE_C
from .common cimport X_DTYPE_C
from .common cimport X_BINNED_DTYPE_C
# A bitset is a data structure used to represent sets of integers in [0, n]. We
# use them to represent sets of features indices (e.g. features that go to the
# left child... | Cython | 4 | MaiRajborirug/scikit-learn | sklearn/ensemble/_hist_gradient_boosting/_bitset.pyx | [
"BSD-3-Clause"
] |
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.4.0;
contract Square {
function square(uint32 num) public pure returns (uint32) {
return num * num;
}
}
| Solidity | 4 | OfekShilon/compiler-explorer | examples/solidity/default.sol | [
"BSD-2-Clause"
] |
<CsoundSynthesizer>
<CsOptions>
;-odac:hw:0,0
-odac
-B 2048
-b 128
;-o wave.wav
;-+rtaudio=alsa
</CsOptions>
<CsInstruments>
0dbfs = 1.0
sr = 48000
ksmps = 64
nchnls = 2
instr 1
a0 = 0
a1 vco2 0.8, 200
outs a0, a1
endin
</CsInstruments>
<CsScore>
i1 0 10
</CsScore>
</CsoundSynthesizer>
| Csound | 4 | DaveSeidel/QB_Nebulae_V2 | Code/tests/test.csd | [
"MIT"
] |
# Target DNS server
dns_rfc2136_server = {server_address}
# Target DNS port
dns_rfc2136_port = {server_port}
# TSIG key name
dns_rfc2136_name = default-key.
# TSIG key secret
dns_rfc2136_secret = 91CgOwzihr0nAVEHKFXJPQCbuBBbBI19Ks5VAweUXgbF40NWTD83naeg3c5y2MPdEiFRXnRLJxL6M+AfHCGLNw==
# TSIG key algorithm
dns_rfc2136_al... | Smarty | 2 | 4n3i5v74/certbot | certbot-ci/certbot_integration_tests/assets/bind-config/rfc2136-credentials-default.ini.tpl | [
"Apache-2.0"
] |
/*
BSD License
Copyright (c) 2013, Kazunori Sakamoto Copyright (c) 2016, Alexander Alexeev
(c) 2020, Steven Johnstone 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 s... | ANTLR | 4 | cmarincia/defold | com.dynamo.cr/com.dynamo.cr.bob/src/com/dynamo/bob/pipeline/antlr/LuaLexer.g4 | [
"ECL-2.0",
"Apache-2.0"
] |
describe(`collection-routing`, () => {
beforeEach(() => {
cy.visit(`/collection-routing`).waitForRouteChange()
})
it(`can create simplest collection route that also has a number as an identifier`, () => {
cy.visit(`/collection-routing/1/`)
.waitForRouteChange()
cy.findByTestId(`slug`)
.sh... | JavaScript | 4 | pipaliyajaydip/gatsby | e2e-tests/development-runtime/cypress/integration/unified-routing/collection-routing.js | [
"MIT"
] |
null
/*
Some non-comment top-level value is needed;
we use null above.
*/ | JSON5 | 0 | leandrochomp/react-skeleton | node_modules/babelify/node_modules/babel-core/node_modules/json5/test/parse-cases/comments/block-comment-following-top-level-value.json5 | [
"MIT"
] |
<html>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<link rel="stylesheet" href="/perf/preload_style.css" />
<!-- WARN(preload): This should be no crossorigin -->
<link rel="preload" href="/perf/level-2.js?warning&delay=500" as="script" crossorigin="use-credentials"/>
... | HTML | 4 | ethcar/lighthouse | lighthouse-cli/test/fixtures/preload.html | [
"Apache-2.0"
] |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="19008000">
<Property Name="NI.LV.All.SourceOnly" Type="Bool">true</Property>
<Item Name="My Computer" Type="My Computer">
<Property Name="server.app.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.control.propertiesEn... | LabVIEW | 2 | jovianarts/LVSolutionBuilder | src/_tests/Tests.Assets/SamplePromptingProject.lvproj | [
"MIT"
] |
## Licensed to Cloudera, Inc. under one
## or more contributor license agreements. See the NOTICE file
## distributed with this work for additional information
## regarding copyright ownership. Cloudera, Inc. licenses this file
## to you under the Apache License, Version 2.0 (the
## "License"); you may not use this f... | Mako | 3 | yetsun/hue | apps/metastore/src/metastore/templates/confirm.mako | [
"Apache-2.0"
] |
a ← 2.0j3.2 + 1.0j3.2
⎕ ← a
v ← 2j1 3 1 3J¯2 4 23 2 3 44 3 1 23j.3
a ← 2 3 ⍴ v
⎕ ← a
a1 ← ⎕ ← a × 2
a2 ← ⎕ ← ⍉ a1
a3 ← ⎕ ← 2 ⊖ a2
a4 ← ⎕ ← ⌽ a3
b ← ⌽ 2 ⊖ ⍉ a × 2
⎕ ← b
⎕ ← a +.× b
⎕ ← |3j4 ⍝ -> 5
0 | APL | 2 | melsman/apltail | tests/cmplx.apl | [
"MIT"
] |
{:source-paths
["src"
"resources"
"checkouts/helix/src"]
:dependencies [[lilactown/helix "0.0.10"]
[lucywang000/hashp "0.1.2"]
[binaryage/devtools "1.0.0"]]
:nrepl {:port 6666
:cider true
:init-ns user}
:builds {:app {:target :browser
:dev
... | edn | 3 | andyhasit/js-framework-benchmark | frameworks/keyed/helix/shadow-cljs.edn | [
"Apache-2.0"
] |
;;Autor : Delay E. (Université de Limoges)
;;7 decembre 2012 modéliser l'article de R.DION 1952
breed [Districts District] ;les districte sont les quartiers
breed [wineMarkets wineMarket]
breed [foreigns foreign]
undirected-link-breed [linksPrim linkPrim]
undirected-link-breed [secLinks SecLink]
globals [
;des gl... | NetLogo | 5 | ajnavarro/language-dataset | data/github.com/ElCep/dion_still_alive/ca1df17bfbb2872b4423e4afec5a6ac6e81c00ce/Dion.1952V2.nlogo | [
"MIT"
] |
Library "Roku_Ads.brs"
' ********** Copyright 2016 Roku Corp. All Rights Reserved. **********
'Roku Advertising Framework for Video Ads Main Entry Point
'Creation and configuration of list menu and video screens.
sub Main()
screen = CreateObject("roSGScreen")
m.port = CreateObject("roMessagePort")
scree... | Brightscript | 5 | khangh/samples | advertising/CustomBufferScreenSceneGraphSample/source/main.brs | [
"MIT"
] |
# <API name>
<API description>
# Data Structures
## Address (object)
mixin w/ description
### Properties
- city
- street
## User (object)
- id
- Include Address
- nick
| API Blueprint | 2 | darkcl/drafter | test/fixtures/mson/mixin.apib | [
"MIT"
] |
@import '../../style/themes/index';
@import '../../style/mixins/index';
@import '../../button/style/mixin';
@import './mixin';
@search-prefix: ~'@{ant-prefix}-input-search';
.@{search-prefix} {
.@{ant-prefix}-input {
&:hover,
&:focus {
border-color: @input-hover-border-color;
+ .@{ant-prefix}-i... | Less | 4 | noctis0430-open-source/ant-design-blazor | components/input/style/search-input.less | [
"MIT"
] |
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build !plan9,!windows
#include <stdint.h>
uint32_t threadExited;
void setExited(void *x) {
__sync_fetch_and_add(&threadExited, 1);
}
| C | 4 | Havoc-OS/androidprebuilts_go_linux-x86 | src/runtime/testdata/testprogcgo/lockosthread.c | [
"BSD-3-Clause"
] |
// not compliant
component{
function x(){
var myStruct = {
"myKey" = {
mySubKey = "123"
}
};
}
} | ColdFusion CFC | 1 | tonym128/CFLint | src/test/resources/com/cflint/tests/StructKeyChecker/unquotedStructKeyNested.cfc | [
"BSD-3-Clause"
] |
--TEST--
Test substr_replace() function : error conditions
--FILE--
<?php
/*
* Testing substr_replace() for error conditions
*/
echo "*** Testing substr_replace() : error conditions ***\n";
$s1 = "Good morning";
echo "\n-- Testing substr_replace() function with start and length as arrays but string not--\n";
try {
... | PHP | 4 | NathanFreeman/php-src | ext/standard/tests/strings/substr_replace_error.phpt | [
"PHP-3.01"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.