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 |
|---|---|---|---|---|---|
/* @generated */
digraph cfg {
"for_loop_no_brackets.4c9da26592fb7fb2077b8ad5de66fe11_1" [label="1: Start for_loop_no_brackets\nFormals: \nLocals: i:int j:int \n " color=yellow style=filled]
"for_loop_no_brackets.4c9da26592fb7fb2077b8ad5de66fe11_1" -> "for_loop_no_brackets.4c9da26592fb7fb2077b8ad5de66fe11_10" ;
... | Graphviz (DOT) | 3 | JacobBarthelmeh/infer | infer/tests/codetoanalyze/c/frontend/loops/for_simple.c.dot | [
"MIT"
] |
; REQUIRES: asserts
; The regression tests need to test for order of emitted instructions, and
; therefore, the tests are a bit fragile/reliant on instruction scheduling. The
; test cases have been minimized as much as possible, but still most of the test
; cases could break if instruction scheduling heuristics for cor... | LLVM | 3 | arunkumarbhattar/llvm | test/CodeGen/AArch64/aarch64-fix-cortex-a53-835769.ll | [
"Apache-2.0"
] |
[package]
name = "d"
version = "0.1.0"
edition = "2018"
[dependencies]
e = { path = "../../../e" }
f = { path = "f" }
| TOML | 2 | ohno418/rust | src/tools/rustfmt/tests/cargo-fmt/source/workspaces/path-dep-above/ws/a/d/Cargo.toml | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
Forecast valid for 11-Mar-2018 00:00:00
nfreqs,24
ndir,36
nrecs,181
Latitude, -39.9723
Longitude, 173.3090
Depth,102.328500
CCYYMM,DDHHmm,LPoint,WD,WS,ETot,TZ,VMD,ETotSe,TZSe,VMDSe,ETotSw,TZSw,VMDSw,Mo1,Mo2,HSig,DomDr,AngSpr,Tau
201803,'110000,maari_20180311_00z,123,11.64,0.0759,6.54,239.2,0.0287,3.87,221.1,0.0473,10.... | Octave | 2 | jorgeperezg/wavespectra | tests/sample_files/octopusfile.oct | [
"MIT"
] |
package unit.issues;
class Issue3950 extends Test {
function test() {
var s = cast ("foo" : String);
eq("foo", s);
}
} | Haxe | 3 | jonasmalacofilho/haxe | tests/unit/src/unit/issues/Issue3950.hx | [
"MIT"
] |
_wav "oneart.wav" loadfile
_wav tbldur inv 0 phasor
1 0 0 _wav tabread
512 lpc
| SourcePawn | 1 | aleatoricforest/Sporth | examples/lpc.sp | [
"MIT"
] |
---
title: "Authoring Data Sources"
author: "Sam Borgeson"
date: "`r Sys.Date()`"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Authoring Data Sources}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
#Implementing your own data source
In VISDOM, a data source is an adapter b... | RMarkdown | 5 | ConvergenceDA/visdom | vignettes/authoring_data_source.rmd | [
"MIT"
] |
@0xd30600b3651feef7;
using Rime = import "/rime_proto.capnp";
struct RimeMessage {
commit @0 :Rime.Commit;
context @1 :Rime.Context;
status @2 :Rime.Status;
}
| Cap'n Proto | 2 | mengzhisuoliu/librime | tools/rime_message.capnp | [
"BSD-3-Clause"
] |
[Desktop Entry]
Name=Flutter Folio
Comment=A scrapbooking app that feels great on all your devices
Exec=flutter-folio
Icon=${SNAP}/meta/gui/flutter-folio.png
Terminal=false
Type=Application
Categories=Lifestyle
| desktop | 2 | Irene-wlp123/flutter-folio | snap/gui/flutter-folio.desktop | [
"MIT"
] |
(* Lexical specification for Standard ML. NICK, August 1990. *)
open Tokens
type pos = LexBasics.pos
type arg = LexUtils.LexArgument
type lexresult = (svalue, LexBasics.pos) token
fun eof _ = Tokens.EOF(LexBasics.DUMMY, LexBasics.DUMMY)
val lParen = "(" and rParen = ")"
fun pad str = if size str mod 18... | Lex | 5 | athas/mlk | src/Parsing/Topdec.lex | [
"MIT"
] |
use @pony_exitcode[None](code: I32)
class C
new create() =>
// This should't be executed
@pony_exitcode(1)
fun @foo() =>
None
actor Main
new create(env: Env) =>
C.foo()
| Pony | 3 | rtpax/ponyc | test/libponyc-run/bare-function-typeref-call-no-constructor-call/main.pony | [
"BSD-2-Clause"
] |
rm -rf y
rm -f src x *.dyn *~ .*~
| Stata | 0 | BlameJohnny/redo | t/105-sympath/clean.do | [
"Apache-2.0"
] |
Rebol [
Title: "AS Function"
Date: 14-Aug-2013
Author: "Christopher Ross-Gill"
File: %as.r3
Version: 0.5.4
Purpose: "Coerce arbitrary data into Rebol values."
Type: module
Name: rgchris.as
Exports: [
amend as
]
]
wrap: func [body [block!]] [
use collect [
pa... | Rebol | 5 | rgchris/Scripts | r3-alpha/as.r3 | [
"Apache-2.0"
] |
https://sccode.org/1-4TT
/*
By Schemawound - http://www.schemawound.com/
All code by Jonathan Siemasko
Created for The Haiku Project by Subterranean Tide - http://www.subterraneantide.com/hk07-schemawound.html
Description: Each artist has contributed a three track release in increments of five minutes, seven minutes,... | SuperCollider | 4 | drichardson/examples | SuperCollider/Weird.scd | [
"Unlicense"
] |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
module.exports = function stripUnusedImports(pureExternalModules) {
return {
name: 'scripts/rollup/plugins/str... | JavaScript | 4 | vegYY/react | scripts/rollup/plugins/strip-unused-imports.js | [
"MIT"
] |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This is a "No Compile Test" suite.
// http://dev.chromium.org/developers/testing/no-compile-tests
#include "base/containers/buffer_iterator.h"
#inclu... | nesC | 4 | thorium-cfx/fivem | vendor/chromium/base/containers/buffer_iterator_unittest.nc | [
"MIT"
] |
$! Copyright 2015 Artur Shepilko.
$!
$! Distributed under the Boost Software License, Version 1.0.
$! (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
$!
$ THIS_FACILITY = "BOOSTBUILD"
$
$ verify = f$trnlnm("VERIFY_''THIS_FACILITY'")
$ save_verify = f$verify(verify)
$ save_default = f$env... | DIGITAL Command Language | 3 | MaxSac/build | bootstrap_vms.com | [
"BSL-1.0"
] |
fragment Visit on HighlightedVisit
@argumentDefinitions(
count: {type: "Int", defaultValue: 20}
) {
name
}
| GraphQL | 3 | fuelingtheweb/prettier | tests/graphql_bracket_spacing/bracket_spacing.graphql | [
"MIT"
] |
1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -17.00
-1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -53.00
0.00 1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.0... | Matlab | 1 | yinrun/LOPDC-Benchmarks | strippacking/matlab/sp-12-47-sqrt.matlab | [
"MIT"
] |
#!/bin/bash
# Disable automatic line ending conversion, which is enabled by default on
# Azure's Windows image. Having the conversion enabled caused regressions both
# in our test suite (it broke miri tests) and in the ecosystem, since we
# started shipping install scripts with CRLF endings instead of the old LF.
#
# N... | Shell | 4 | Eric-Arellano/rust | src/ci/scripts/disable-git-crlf-conversion.sh | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
local helpers = require("test.unit.helpers")(after_each)
local itp = helpers.gen_itp(it)
local eq = helpers.eq
local ffi = helpers.ffi
local cstr = helpers.cstr
local to_cstr = helpers.to_cstr
local child_call_once = helpers.child_call_once
local rbuffer = helpers.cimport("./test/unit/fixtures/rbuffer.h")
describe('... | Lua | 5 | uga-rosa/neovim | test/unit/rbuffer_spec.lua | [
"Vim"
] |
#tag Class
Protected Class SocketTimer
Inherits Timer
#tag Event
Sub Action()
If Me.Parent = Nil Then
Me.Enabled = False
ElseIf Me.Parent IsA BNETSocket Then
Dim Sock As BNETSocket = BNETSocket(Me.Parent)
Sock.TimerAction(Me)
End If
End Sub
#tag EndEvent
... | REALbasic | 4 | carlbennett/BNRBot | src/Classes/SocketTimer.rbbas | [
"MIT"
] |
{
"@context": {
"ex": "http://example.org/vocab#",
"@language": "en",
"de": { "@id": "ex:german", "@language": "de" },
"nolang": { "@id": "ex:nolang", "@language": null }
},
"@id": "http://example.org/test",
"ex:test-default": [
"hello",
1,
true
],
"de": [
"hallo",
2,
... | JSONLD | 2 | fsteeg/json-ld-api | tests/toRdf/0058-in.jsonld | [
"W3C"
] |
Func(a[])
{
#pragma unwritten a
return a[0];
}
main() {
new a[2];
Func(a);
}
| PAWN | 1 | pawn-lang/pawn | source/compiler/tests/gh_373.pwn | [
"Zlib"
] |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | JavaScript | 3 | dany-freeman/material-ui | packages/mui-icons-material/lib/AppShortcutTwoTone.js | [
"MIT"
] |
untyped
global function IsCrawling
global function CodeCallback_RegisterClass_CAI_BaseNPC
global function SetSpawnOption_AISettings
global function SetSpawnOption_Alert
global function SetSpawnOption_NotAlert
global function SetSpawnOption_Ordnance
global function SetSpawnOption_OwnerPlayer
global function SetSpawnOpt... | Squirrel | 5 | GeckoEidechse/NorthstarMods | Northstar.CustomServers/mod/scripts/vscripts/class/cai_basenpc.nut | [
"MIT"
] |
#!/bin/sh
# Copyright Istio 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 agreed to in wr... | Shell | 3 | pbohman/istio | security/pkg/pki/testdata/multilevelpki/certs.sh | [
"Apache-2.0"
] |
# -*- perl -*-
use strict;
use warnings;
use tests::tests;
our ($test);
my (@output) = read_text_file ("$test.output");
common_checks ("run", @output);
@output = get_core_output ("run", @output);
fail "missing PASS in output"
unless grep ($_ eq '(mlfqs-load-1) PASS', @output);
pass;
| ChucK | 4 | nguyenvannam2698/os_pintos_20211 | src/tests/threads/mlfqs-load-1.ck | [
"MIT"
] |
package com.baeldung.rethrow;
import java.util.logging.Level;
import java.util.logging.Logger;
public class RethrowSameExceptionDemo {
private final static Logger LOGGER = Logger.getLogger(RethrowDifferentExceptionDemo.class.getName());
public static void main(String[] args) throws Exception {
Strin... | Java | 3 | DBatOWL/tutorials | core-java-modules/core-java-exceptions-2/src/main/java/com/baeldung/rethrow/RethrowSameExceptionDemo.java | [
"MIT"
] |
// Copyright 2013 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.
package main
import (
"./pkg1"
)
type message struct { // Presence of this creates a crash
data pkg1.Data
}
func main() {
pkg1.CrashCall()
}
| Go | 2 | Havoc-OS/androidprebuilts_go_linux-x86 | test/fixedbugs/issue5291.dir/prog.go | [
"BSD-3-Clause"
] |
#main
var test_items = [:]
test_items['get_key'] = filter_input(INPUT_GET, 'get_key')
test_items['post_key'] = filter_input(INPUT_POST, 'post_key')
test_items['cookie_key'] = INPUT_COOKIE::filter_input('cookie_key')
test_items['header_key'] = INPUT_SERVER::filter_input('HTTP_HOST')
var items = []
for k, v in test_ite... | Tea | 3 | lemonworks/tealang.github.io | tests/syntax/web.tea | [
"Apache-2.0"
] |
#%RAML 1.0 ResourceType
description: Entity representing <<resourcePathName|!singularize>>
get:
description: Returns a <<resourcePathName|!singularize>>.
responses:
200:
body:
application/json:
type: <<provider>>.inspect_<<resourcePathName|!singularize>>
404:
body:
appl... | RAML | 4 | sap-ariba/netplugin | contivmodel/spec/netmaster/schemas/ro-collection-item.raml | [
"Apache-2.0"
] |
// Eric Heep
// April 4th, 2017
// miap-test.ck
// unit tests to help smooth out some kinks
class MIAPTest {
int passedTests, totalTests;
string errorMessages[0];
fun void testHeron() {
MIAP m;
m.addNode(0.0, 0.0);
m.addNode(1.0, 0.0);
m.addNode(0.0, 1.0);
m.addTr... | ChucK | 5 | mariobuoninfante/chugins | MIAP/miap-test.ck | [
"MIT"
] |
dbc_file: lincoln.dbc
protocol_conf: lincoln.yml
car_type: lincoln
sender_list: []
sender: MAB
black_list: []
output_dir: output/
| YAML | 2 | seeclong/apollo | modules/tools/gen_vehicle_protocol/lincoln_conf.yml | [
"Apache-2.0"
] |
"""The Vivotek camera component."""
| Python | 0 | domwillcode/home-assistant | homeassistant/components/vivotek/__init__.py | [
"Apache-2.0"
] |
.class Landroid/support/v4/view/accessibility/AccessibilityNodeInfoCompat$AccessibilityNodeInfoApi24Impl;
.super Landroid/support/v4/view/accessibility/AccessibilityNodeInfoCompat$AccessibilityNodeInfoApi23Impl;
.source "AccessibilityNodeInfoCompat.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingCl... | Smali | 3 | jarekankowski/pegasus_spyware | sample3/decompiled_raw/smali/android/support/v4/view/accessibility/AccessibilityNodeInfoCompat$AccessibilityNodeInfoApi24Impl.smali | [
"MIT"
] |
<div class="card">
<div class="card-body text-end">
<div class="skeleton-heading"></div>
<div class="skeleton-line"></div>
<div class="skeleton-line"></div>
<div class="skeleton-line"></div>
<div class="skeleton-line"></div>
<div class="skeleton-line"></div>
</div>
</div> | HTML | 2 | muhginanjar/tabler | src/pages/_includes/cards/skeleton/card-5.html | [
"MIT"
] |
CREATE TABLE `tb_ijmcdmzknr` (
`col_pqnfhpfywv` datetime DEFAULT '2019-07-04 00:00:00',
`col_mlpkfxnbfa` blob,
UNIQUE `uk_ctetrugpen` (`col_mlpkfxnbfa`(8)),
UNIQUE KEY `col_mlpkfxnbfa` (`col_mlpkfxnbfa`(23))
) DEFAULT CHARSET=utf8;
RENAME TABLE `tb_ijmcdmzknr` TO `tb_mzqlybwqbo`;
RENAME TABLE `tb_mzqlybwqbo` TO... | SQL | 2 | yuanweikang2020/canal | parse/src/test/resources/ddl/alter/test_66.sql | [
"Apache-2.0"
] |
module ciena-waveserver-module {
namespace "urn:ciena:params:xml:ns:yang:ciena-ws:ciena-waveserver-module";
prefix mod;
import ciena-waveserver-typedefs {
prefix cienawstypes;
}
import ciena-waveserver-chassis {
prefix ciena-ws-chassis;
}
import ciena-waveserver-xcvr {
prefix xcvr;
}
org... | YANG | 5 | meodaiduoi/onos | models/ciena/waveserverai/src/main/yang/ciena-waveserver-module@2017-12-12.yang | [
"Apache-2.0"
] |
use Datascope;
use Getopt::Std;
#
# here comes the main program
#
if ( !getopts('tvhs:') || @ARGV != 2 ) {
die ("USAGE: $0 [-v] [-t] [-h] [-s subset_expression] database file \n");
}
$database = $ARGV[0];
$file = $ARGV[1];
($dir, $x, $y) = parsepath($file);
if (!-d $dir) {
$mkdir = "mkdir ... | XProc | 5 | jreyes1108/antelope_contrib | bin/usarray/deployment2vnd/deployment2vnd.xpl | [
"BSD-2-Clause",
"MIT"
] |
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Deep Learning Models -- A collection of various deep learning architectures, models, and tips for TensorFlow and PyTorch in Jupyter Notebooks.\n",
"- Author: Sebastian Raschka\n",
"- GitHub Repository: https://github.com/rasbt/... | Jupyter Notebook | 5 | sunspai1/Deep-Leaanirng-Models | tensorflow1_ipynb/mechanics/image-data-chunking-hdf5.ipynb | [
"MIT"
] |
package com.baeldung.exception.indexoutofbounds;
import java.util.Collections;
import java.util.List;
public class CopyListUsingCollectionsCopyMethodDemo {
static void copyList(List<Integer> source, List<Integer> destination) {
Collections.copy(destination, source);
}
}
| Java | 3 | DBatOWL/tutorials | core-java-modules/core-java-exceptions-3/src/main/java/com/baeldung/exception/indexoutofbounds/CopyListUsingCollectionsCopyMethodDemo.java | [
"MIT"
] |
/**
* @typedef {Object} TraversalCallbacks
*
* @property {function(node: BinaryTreeNode, child: BinaryTreeNode): boolean} allowTraversal
* - Determines whether DFS should traverse from the node to its child.
*
* @property {function(node: BinaryTreeNode)} enterNode - Called when DFS enters the node.
*
* @propert... | JavaScript | 5 | buledong/javascript-algorithms | src/algorithms/tree/depth-first-search/depthFirstSearch.js | [
"MIT"
] |
#NoTrayIcon
#Region AutoIt3Wrapper directives section
#AutoIt3Wrapper_Icon=IDM.ico
#AutoIt3Wrapper_Compression=4
#AutoIt3Wrapper_UseUpx=Y
#EndRegion AutoIt3Wrapper directives section
#Region Includes
#include <core.au3>
#include <GUIConstantsEx.au3>
#include <Misc.au3>
#EndRegion Includes
_Singleton(@ScriptName)
#R... | AutoIt | 3 | lehieuit/idm-trial-reset | src/IDM Trial Reset.au3 | [
"MIT"
] |
import base64
import json
import unittest
from localstack.utils.aws.aws_stack import render_velocity_template
from localstack.utils.common import to_str
# template used to transform incoming requests at the API Gateway (forward to Kinesis)
APIGATEWAY_TRANSFORMATION_TEMPLATE = """{
"StreamName": "stream-1",
"R... | Python | 5 | jorges119/localstack | tests/unit/test_templating.py | [
"Apache-2.0"
] |
--TEST--
Bug #67325 (imagetruecolortopalette: white is duplicated in palette)
--EXTENSIONS--
gd
--SKIPIF--
<?php
if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.3', '<=')) {
die("skip test requires newer than GD 2.2.3");
}
if (!(imagetypes() & IMG_JPG)) die('skip JPEG support not available');
?>
--FILE--
<?php... | PHP | 3 | NathanFreeman/php-src | ext/gd/tests/bug67325.phpt | [
"PHP-3.01"
] |
USING: io.pathnames llvm.reader llvm.wrappers tools.test ;
{ t } [
"resource:extra/llvm/wrappers/add.bc" absolute-path load-module
module?
] unit-test
| Factor | 2 | alex-ilin/factor | extra/llvm/reader/reader-tests.factor | [
"BSD-2-Clause"
] |
# Copyright Project Harbor 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 agreed to in writing... | RobotFramework | 3 | yxxhero/harbor | tests/resources/Nightly-Util.robot | [
"Apache-2.0"
] |
.q-knob
font-size: 48px
&--editable
cursor: pointer
outline: 0
&:before
content: ''
position: absolute
top: 0
right: 0
bottom: 0
left: 0
border-radius: 50%
box-shadow: none
transition: box-shadow .24s ease-in-out
&:focus:before
box-shad... | Sass | 4 | ygyg70/quasar | ui/src/components/knob/QKnob.sass | [
"MIT"
] |
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct Uniforms {
half4 colorGreen;
half4 colorRed;
};
struct Inputs {
};
struct Outputs {
half4 sk_FragColor [[color(0)]];
};
half2 tricky_h2hhh2h(half x, half y, thread half2& color, half z);
half2 _skOutParamHelper0_tricky_h2hhh2h(half... | Metal | 4 | fourgrad/skia | tests/sksl/shared/OutParamsTricky.metal | [
"BSD-3-Clause"
] |
sleep 2
t app appmode photo_burst
sleep 1
t app burst_settings 3-1
sleep 1
t app button shutter PR
sleep 9
poweroff yes
reboot yes | AGS Script | 1 | waltersgrey/autoexechack | BurstHacks/BurstAndTurnOff/3:1/Hero3PlusBlack/autoexec.ash | [
"MIT"
] |
--TEST--
Bug #37212 (Access to protected property of common base class)
--FILE--
<?php
class A
{
protected $value;
public function __construct($val)
{
$this->value = $val;
}
protected function getValue()
{
return $this->value;
}
}
class B extends A
{
public function c... | PHP | 3 | thiagooak/php-src | Zend/tests/bug37212.phpt | [
"PHP-3.01"
] |
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | Shell | 2 | OlegPt/spark | sql/core/src/test/scripts/gen-avro.sh | [
"Apache-2.0"
] |
KIDS Distribution saved on Sep 29, 2017@09:21:03
SAMI v18.0T02 from Andronicus to Avicenna 2017-09-29
**KIDS**:SAMI 18.0T02^
**INSTALL NAME**
SAMI 18.0T02
"BLD",10219,0)
SAMI 18.0T02^SAMI^0^3170929^n
"BLD",10219,4,0)
^9.64PA^311.107^17
"BLD",10219,4,311,0)
311
"BLD",10219,4,311,222)
y^y^f^^^^n
"BLD",10219,4,311.1,0)
3... | Genshi | 4 | OSEHRA/SAMI-VAPALS-ELCAP | dist/18-0/sami-18p0t02.kid | [
"Apache-2.0"
] |
#!/bin/sh
cd ..
while :; do
./camerad &
pid="$!"
sleep 2
kill -2 $pid
wait $pid
done
| Shell | 4 | Neptos/openpilot | selfdrive/camerad/test/stress_restart.sh | [
"MIT"
] |
# This file is a part of Julia. License is MIT: https://julialang.org/license
# tests the output of the embedding example is correct
using Test
if Sys.iswindows()
# libjulia needs to be in the same directory as the embedding executable or in path
ENV["PATH"] = string(Sys.BINDIR, ";", ENV["PATH"])
end
functio... | Julia | 5 | greimel/julia | test/gcext/gcext-test.jl | [
"Zlib"
] |
# Copyright (c) 2018-2021, Carnegie Mellon University
# See LICENSE for details
Class(IdFunc, DiagFunc, rec(
range := self >> TInt
));
#F fConst(<N>, <c>) - constant diagonal function, <N> values of <c>
#F
Class(idConst, IdFunc, rec(
# def := (N, c) -> Checked(IsPosInt0(N), rec(size:=N)),
def := (N, c) -... | GAP | 4 | sr7cb/spiral-software | namespaces/spiral/paradigms/common/id/id.gi | [
"BSD-2-Clause-FreeBSD"
] |
# If the tm command is called without an argument, open TextMate in the current directory
# If tm is passed a directory, cd to it and open it in TextMate
# If tm is passed anything else (i.e., a list of files and/or options), pass them all along
# This allows easy opening of multiple files.
function tm() {
if [[ -z... | Shell | 4 | chensanle/ohmyzsh | plugins/textmate/textmate.plugin.zsh | [
"MIT"
] |
[Desktop Entry]
Type=Application
Terminal=false
Exec=czkawka
Name=Czkawka
Comment=Multi functional app to clean OS which allow to find duplicates, empty folders, similar files etc.
Icon=${SNAP}/meta/gui/czkawka.png
Categories=System;
StartupWMClass=czkawka
TryExec=czkawka
| desktop | 1 | jcoffi/czkawka | snap/gui/czkawka.desktop | [
"MIT"
] |
#define PERL_NO_GET_CONTEXT
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#include <sixel.h>
MODULE = Image::LibSIXEL PACKAGE = Image::LibSIXEL::Encoder PREFIX = encoder_
SV *
encoder_new(void)
INIT:
SIXELSTATUS status;
sixel_encoder_t *encoder;
SV *sv;
const char *k... | XS | 5 | timholy/libsixel | perl/lib/Image/LibSIXEL.xs | [
"MIT"
] |
it("should require entry points fine", function() {
require("./single-entry-point");
});
| JavaScript | 1 | 1shenxi/webpack | test/configCases/entry/single-entry-point/single-entry-point.js | [
"MIT"
] |
require '../lib/parser/runtime'
generic method =
generic method id = 0
with last non nil constructor and index (constructors, block) =
find last non nil constructor index () =
for (n = constructors.length - 1, n >= 0, --n)
if (constructors.(n))
return (n... | PogoScript | 3 | featurist/pogoscript | examples/multimethods.pogo | [
"BSD-2-Clause"
] |
\documentclass[../../main.tex]{subfiles}
\begin{document}
\section{The first section}
Titling notwithstanding, could this issue be a case of PEBCAC?
\subsection{A subsection}
Hello world.
\end{document}
| TeX | 2 | IngoMeyer441/vimtex | test/test-toc/chapters/sections/first.tex | [
"MIT"
] |
REBOL [
Title: "Information extractor from Red runtime source code"
Author: "Nenad Rakocevic"
File: %extractor.r
Tabs: 4
Rights: "Copyright (C) 2011-2018 Red Foundation. All rights reserved."
License: "BSD-3 - https://github.com/red/red/blob/master/BSD-3-License.txt"
Notes: {
These utility functions ext... | R | 4 | GalenIvanov/red | utils/extractor.r | [
"BSL-1.0",
"BSD-3-Clause"
] |
// compile-flags:-Z unstable-options --show-coverage --document-private-items
// check-pass
#![allow(unused)]
//! when `--document-private-items` is passed, nothing is safe. everything must have docs or your
//! score will suffer the consequences
mod this_mod {
fn private_fn() {}
}
/// See, our public items hav... | Rust | 4 | Eric-Arellano/rust | src/test/rustdoc-ui/coverage/private.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
// Copyright 2020 The gRPC 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 agreed t... | Protocol Buffer | 5 | warlock135/grpc | src/proto/grpc/testing/xds/v3/fault.proto | [
"Apache-2.0"
] |
1/* comment */ | Objective-J | 0 | justinmann/sj | tests/comment2.sj | [
"Apache-2.0"
] |
export default 'just a string'
| JavaScript | 0 | blomqma/next.js | test/integration/invalid-page-automatic-static-optimization/pages/also-invalid.js | [
"MIT"
] |
//
// Copyright (c) 2013-2021 Winlin
//
// SPDX-License-Identifier: MIT
//
package
{
import flash.events.NetStatusEvent;
import flash.external.ExternalInterface;
import flash.net.NetConnection;
import flash.net.NetStream;
import flash.net.ObjectEncoding;
import flash.utils.clearTime... | ActionScript | 5 | cameritelabs/srs | trunk/research/players/srs_bwt/src/SrsBandwidth.as | [
"MIT"
] |
#![feature(decl_macro)]
macro modern($a: ident) {
struct Modern {
a: u8,
$a: u8, // OK
}
}
macro_rules! legacy {
($a: ident) => {
struct Legacy {
a: u8,
$a: u8, //~ ERROR field `a` is already declared
}
}
}
modern!(a);
legacy!(a);
fn main() {}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/hygiene/fields-definition.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
require! ramda: {use-with, identity, if-else}
rm-ws = (.replace /\s/g, '')
strip-ws = if-else (~= null), identity, rm-ws
global.sinon = require \sinon
global.assert = require \chai .assert
global.deep-eq = (a, b) --> a `assert.deepEqual` b
global.eq = assert.strict-equal
global.strip-eq = use-with assert.strict-equal,... | LiveScript | 3 | mmqmzk/ramda-cli | test/_globals.ls | [
"0BSD"
] |
-- See https://github.com/purescript/purescript/issues/3414
module Ado where
test =
ado x <- 1
in x
where
map f x = f x
| PureScript | 3 | andys8/purescript | tests/purs/docs/src/Ado.purs | [
"BSD-3-Clause"
] |
Class {
#name : #GtMonitorArgumentTypeValidator,
#superclass : #GtMonitorTypeValidator,
#instVars : [
'link',
'pragmas',
'validations'
],
#category : 'GToolkit-Monitor-Type Validator'
}
{ #category : #initialization }
GtMonitorArgumentTypeValidator >> initialize [
super initialize.
pragmas := self pragm... | Smalltalk | 5 | feenkcom/gtoolk | src/GToolkit-Monitor/GtMonitorArgumentTypeValidator.class.st | [
"MIT"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 5 | KevinAo22/vscode | extensions/typescript-language-features/src/test/smoke/completions.test.ts | [
"MIT"
] |
#include "fbgemm_pack_matrix_cache.h"
#include <map>
#include <memory>
#include <mutex>
using namespace std;
namespace caffe2 {
template <typename ACC_T>
shared_ptr<fbgemm::PackBMatrix<int8_t, ACC_T>> GetOrCreateFbgemmPackBMatrix(
fbgemm::matrix_op_t trans,
int32_t m,
int32_t n,
const void* orig_dat... | C++ | 5 | Hacky-DH/pytorch | caffe2/quantization/server/fbgemm_pack_matrix_cache.cc | [
"Intel"
] |
/* Copyright 2020 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++ | 3 | ashutom/tensorflow-upstream | tensorflow/compiler/mlir/tensorflow/transforms/drop_while_shape_invariant.cc | [
"Apache-2.0"
] |
//line x14.go:4
package main
func F14() {}
| Go | 0 | Havoc-OS/androidprebuilts_go_linux-x86 | test/dwarf/dwarf.dir/z14.go | [
"BSD-3-Clause"
] |
robbery 0.0 0.20362490735958277 0.34820613617069018 0.0 0.0 0.0 0.0 0.24857629522184904 0.68913272314128349 0.0 0.0 0.25626864084500478 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.26119475918106039 1.3822799037012288 0.28366761503311899 0.0 2.7685742648211193 0.37067899202274884 0.0 0.5713496874849 2.0754270842611739 0.0 0.0 0.0 0.6... | DM | 0 | tommasoc80/EventStoryLine | ppmi_events_ecb+_test/24/full_corpus_ppmi.dm | [
"CC-BY-3.0"
] |
--TEST--
odbc_data_source(): Basic test
--EXTENSIONS--
odbc
--SKIPIF--
<?php
include 'skipif.inc';
if (odbc_data_source($conn, SQL_FETCH_FIRST) === NULL) {
die("skip no data sources defined on this system");
}
?>
--FILE--
<?php
include 'config.inc';
$conn = odbc_connect($dsn, $user, $pass);
try {... | PHP | 3 | NathanFreeman/php-src | ext/odbc/tests/odbc_data_source_001.phpt | [
"PHP-3.01"
] |
"""Test the Binary Sensor significant change platform."""
from homeassistant.components.binary_sensor.significant_change import (
async_check_significant_change,
)
async def test_significant_change():
"""Detect Binary Sensor significant changes."""
old_attrs = {"attr_1": "value_1"}
new_attrs = {"attr_... | Python | 4 | tbarbette/core | tests/components/binary_sensor/test_significant_change.py | [
"Apache-2.0"
] |
fileFormatVersion: 2
guid: 1cf3ef0a332884c299335f3fbe8a21fc
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| Unity3D Asset | 0 | netdrones/ml-agents | Project/Assets/ML-Agents/Examples/Sorter/Prefabs/Area.prefab.meta | [
"Apache-2.0"
] |
/** CSS by Wain. */
body {
background-color: #e9eef3;
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
font-size: 12px;
}
td {
font-size: 14px;
}
#header {
background-color: #dde3e9;
border-bottom: 1px solid #f2f7fc;
}
#header h1 {
font-size: 15px;
font-weight: bold;
margin: 0;
padding: 12... | CSS | 4 | tangoblast817/zxing | zxing.appspot.com/src/main/webapp/style.css | [
"Apache-2.0"
] |
CLASS zcl_abapgit_object_ecvo DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_object_ecatt_super
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
PROTECTED SECTION.
METHODS:
get_object_type REDEFINITION,
get_upload REDEFINITION,
get_download REDEFINITION,
get_lock_object REDEFINITION.
PRI... | ABAP | 3 | amit3kumar/ABAP_ALL | src/objects/zcl_abapgit_object_ecvo.clas.abap | [
"MIT"
] |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>no opener</title>
</head>
<body>
<button id="winopen" type="button" onclick="winopen()">Open</button>
<button id="showopener" type="button" onclick="showopener('result')">Show Opener</button>
<s... | Smarty | 3 | namaljayathunga/nw.js | test/remoting/issue4184-no-opener/index.tpl | [
"MIT"
] |
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C++ | 5 | EricRemmerswaal/tensorflow | tensorflow/c/experimental/ops/gen/cpp/renderers/renderer_test.cc | [
"Apache-2.0"
] |
package RegTest;
import DReg::*;
module mkTb ();
Reg#(int) cnt <- mkReg(0);
rule up_counter; // rule 每时钟周期都会执行一次
cnt <= cnt + 1;
if(cnt > 9) $finish;
endrule
Reg#(int) reg1 <- mkReg(99); // reg1 初值 = 99
Reg#(int) reg2 <- mkDReg(99); // reg2 默认值 = 99
rule t... | Bluespec | 4 | Xiefengshang/BSV_Tutorial_cn | src/6.RegTest/RegTest.bsv | [
"MIT"
] |
coforall i in 1..2 {
halt("This should only get printed once");
}
| Chapel | 3 | jhh67/chapel | test/exits/bradc/multipleHalts.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="xml"/>
<xsl:template match='/'>
<refcheck>
<xsl:apply-templates select='//xref' mode='missing'/>
<xsl:apply-templates select='//reference' mode... | XSLT | 4 | kraj/memcached | doc/xml2rfc/rfc2629-refchk.xsl | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
import FuzzyCompletions: complete_path, completion_text, score
import Distributed
import .PkgCompat: package_completions
using Markdown
import REPL
###
# RESPONSES FOR AUTOCOMPLETE & DOCS
###
function format_path_completion(completion)
replace(replace(completion_text(completion), "\\ " => " "), "\\\\" => "\\")
en... | Julia | 4 | lucifer1004/Pluto.jl | src/webserver/REPLTools.jl | [
"MIT"
] |
sub main()
aa = createObject("roAssociativeArray")
aa.foo = "foo"
aa.addReplace("bar", 5)
aa.append({ baz: false })
print "AA size: " aa.count() ' => 3
print "AA keys size: " aa.keys().count() ' => 3
print "AA items size: " aa.items().count... | Brightscript | 4 | alimnios72/brs | test/e2e/resources/components/roAssociativeArray.brs | [
"MIT"
] |
# Force SSL immediately to avoid magento module VCL stripping off
# google campaign ids like gclid
if (!req.http.Fastly-SSL) {
error 801 "Force SSL";
}
| VCL | 4 | paliarush/fastly-magento2 | etc/vcl_snippets_force_tls/recv.vcl | [
"BSD-3-Clause"
] |
/* Copyright 2016 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 | abhaikollara/tensorflow | tensorflow/core/debug/debug_callback_registry.cc | [
"Apache-2.0"
] |
// POV-Ray file generated from Rhinoceros.
camera {
perspective
location <-23.2305, 63.9274, -61.3886>
right <1.22367, 2.59052e-16, -0.529546>
up <0.262647, 0.750109, 0.606921>
direction <0.297913, -0.661314, 0.688412>
angle 35.9886
/*
// to get an image that's the same as the viewport in Rhino... | POV-Ray SDL | 4 | getclacking/SA-profile-keys-3D-models | SA Row3.pov | [
"MIT"
] |
a { box-shadow: rgb(255, 0, 17) 0 0 1 inset } | CSS | 2 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/-gboAEi1zyjFW5mtEM24Rg/input.css | [
"Apache-2.0"
] |
export default function hello() {
return 'A/A.js'
}
| JavaScript | 0 | 1shenxi/webpack | test/cases/side-effects/wrong-module-10146/module/A/A.js | [
"MIT"
] |
;;; app/emms/autoload.el -*- lexical-binding: t; -*-
;;;###autoload
(defun +emms/mpd-start-music-daemon ()
(interactive)
(start-process "mpd" nil "mpd")
(+emms/mpc-update-database)
(emms-player-mpd-connect)
(emms-cache-set-from-mpd-all)
(message "MPD Started!"))
;;;###autoload
(defun +emms/mpd-kill-music-... | Emacs Lisp | 4 | leezu/doom-emacs | modules/app/emms/autoload.el | [
"MIT"
] |
Require Import String.
Eval compute in build_vector 4 "Hello" "how" "are" "you".
| Coq | 2 | LaudateCorpus1/RosettaCodeData | Task/Variadic-function/Coq/variadic-function-9.coq | [
"Info-ZIP"
] |
insert into users(username, password, enabled) values ('spring_user', 'pass', true);
insert into authorities(username, authority) values ('spring_user','ROLE_USER'); | SQL | 3 | zeesh49/tutorials | spring-activiti/src/main/resources/data.sql | [
"MIT"
] |
IMAGE POINT FILE
174
pt_id,val,fid_val,no_obs,l.,s.,sig_l,sig_s,res_l,res_s,fid_x,fid_y
9_8344_8845_4r 1 0 0
1675.436279 -907.831421
0.000000 0.000000
0.108382 -0.032997
0.000000 0.000000
10_8344_8845_4r 1 0 0
1700.584473 -2390.001709
0.000000 0.000000
-0.063695 -1.055619
0.000000 0.000000
11_8... | IGOR Pro | 2 | kaitlyndlee/plio | plio/examples/SocetSet/P03_002371_1888_XI_08N204W.ipf | [
"Unlicense"
] |
/* @generated */
digraph cfg {
"foo.acbd18db4cc2f85cedef654fccc4a4d8_1" [label="1: Start foo\nFormals: my_block1:_fn_(*) my_block2:_fn_(*) a:A*\nLocals: \nAnnotation: <> foo(<_Nullable> <_Nullable> <_Nonnull>) \n " color=yellow style=filled]
"foo.acbd18db4cc2f85cedef654fccc4a4d8_1" -> "foo.acbd18db4cc2f85cedef65... | Graphviz (DOT) | 4 | gpetiot/infer | infer/tests/codetoanalyze/objc/frontend/block/specialized_method_with_block_params.m.dot | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.