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 |
|---|---|---|---|---|---|
[{
"@type": ["ex:Outer"],
"ex:nested": [{
"@graph": [{
"@type": ["ex:Inner"],
"ex:foo": [{"@value": "bar"}]
}]
}]
}]
| JSONLD | 2 | fsteeg/json-ld-api | tests/expand/c025-out.jsonld | [
"W3C"
] |
create database routes_a1;
| SQL | 1 | imtbkcat/tidb-lightning | tests/routes/data/routes_a1-schema-create.sql | [
"Apache-2.0"
] |
// #docregion
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class LoggerService {
logs: string[] = [];
logInfo(msg: any) { this.log(`INFO: ${msg}`); }
logDebug(msg: any) { this.log(`DEBUG: ${msg}`); }
logError(msg: any) { this.log(`ERROR: ${msg}`, true); }
privat... | TypeScript | 4 | John-Cassidy/angular | aio/content/examples/dependency-injection-in-action/src/app/logger.service.ts | [
"MIT"
] |
/*
* Copyright (c) 2020, 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.
*/
/* The easiest way to generate null: a function without a return statement implicitly returns null. */
function null() {
}
function... | Slash | 3 | guillermomolina/simplelanguage | language/tests/Null.sl | [
"UPL-1.0"
] |
100 5 0 0
0 1 8 1 4 5 41 2 7 6 3 [0] [0] [0] [0] [0] [0] [0] [0]
1 1 6 94 35 26 10 100 59 [2] [7] [2] [9] [5] [0]
2 1 9 11 18 12 39 26 19 17 69 86 [21] [13] [12] [24] [25] [7] [2] [15] [13]
3 1 3 98 100 97 [5] [12] [13]
4 1 6 93 35 92 43 90 58 [14] [-5] [14] [15] [7] [0]
5 1 7 79 91 84 88 37 49 61 [1] [5] [-1] [2... | Eagle | 1 | klorel/or-tools | examples/data/rcpsp/single_mode_max_delay/ubo_100/psp67.sch | [
"Apache-2.0"
] |
% File "pie.tu". Class to displays unlabelled pie charts.
unit
class Pie
export ShowPie, HidePie, AddSegment, SetCenter, SetRadius
const maxSegments : int := 10 % The maximum number of segments.
var total : int := 0 % Total of segment values being displayed.
var numSegments : int := 0 % The number of ... | Turing | 5 | null-dev/Hyper | package/Examples/Programming Concepts and Paradigms/chap13/pie.tu | [
"MIT"
] |
domain: "{ S2[j, 51] : j <= 24 and j >= 1; S2[25, i] : i <= 51 and i >= 1; S2[j, 0] : j <= 25 and j >= 1; S2[0, i] : i <= 51 and i >= 0; S1[j, i] : j >= 1 and j <= 24 and i >= 1 and i <= 50 }"
child:
context: "{ [] }"
child:
schedule: "[{ S1[j, i] -> [(j)]; S2[j, i] -> [(j)] }, { S1[j, i] -> [(i)]; S2[j, i] -> ... | Smalltalk | 2 | chelini/isl-haystack | test_inputs/codegen/cloog/walters2.st | [
"MIT"
] |
# Makefile for Independent JPEG Group's software
# This makefile is for Amiga systems using SAS C 6.0 and up.
# Thanks to Ed Hanway, Mark Rinfret, and Jim Zepeda.
# Read installation instructions before saying "make" !!
# The name of your C compiler:
CC= sc
# You may need to adjust these cc options:
# Un... | SAS | 4 | close-code/Torque2D | engine/lib/ljpeg/extras/makefile.sas | [
"MIT"
] |
DAFETF NAIF DAF ENCODED TRANSFER FILE
'DAF/CK '
'2'
'6'
' < DAFCAT: CK CONCATENATION > '
BEGIN_ARRAY 1 499
'LRO BODY ATTITUDE - SEGMENT '
'1183FB023462^C'
'1183FB0E161E^C'
'-14C08'
'1'
'3'
'1'
499
'35986C370D08B2^0'
'D21F9F0EBAD9C8^0'
'-D3F7CA91012DB8^-1'
'876935099B9D58^0'
'8... | XC | 3 | ladoramkershner/ale | tests/pytests/data/03821_16N196_S1/moc42r_2010090_2010121_v03_1_sliced_-85000.xc | [
"Unlicense"
] |
# Test for the SENTINEL CKQUORUM command
source "../tests/includes/init-tests.tcl"
set num_sentinels [llength $::sentinel_instances]
test "CKQUORUM reports OK and the right amount of Sentinels" {
foreach_sentinel_id id {
assert_match "*OK $num_sentinels usable*" [S $id SENTINEL CKQUORUM mymaster]
}
}
... | Tcl | 4 | hpdic/redis | tests/sentinel/tests/06-ckquorum.tcl | [
"BSD-3-Clause"
] |
digraph variableInitializedInTryBlock_kt {
graph [nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter function test" style="filled" fillcolor=red];
subgraph cluster_1 {
color=blue
1 [label="Enter block"]... | Graphviz (DOT) | 4 | Mu-L/kotlin | compiler/fir/analysis-tests/testData/resolve/cfg/variableInitializedInTryBlock.dot | [
"ECL-2.0",
"Apache-2.0"
] |
package tools.fastlane.screengrab.cleanstatusbar;
import androidx.annotation.NonNull;
public enum VolumeState {
SILENT("silent"),
VIBRATE("vibrate"),
HIDE("hide");
private final String value;
VolumeState(@NonNull String value) {
this.value = value;
}
@NonNull
public String ... | Java | 4 | mm512/fastlane | screengrab/screengrab-lib/src/main/java/tools.fastlane.screengrab/cleanstatusbar/VolumeState.java | [
"MIT"
] |
{
"@context": {"@base": "http://abc/def/ghi", "urn:ex:p": {"@type": "@id"}},
"@graph": [
{"@id": "urn:ex:s295", "urn:ex:p": "."},
{"@id": "urn:ex:s296", "urn:ex:p": ".?a=b"},
{"@id": "urn:ex:s297", "urn:ex:p": ".#a=b"},
{"@id": "urn:ex:s298", "urn:ex:p": ".."},
{"@id": "urn:ex:s299", "urn:ex:p":... | JSONLD | 2 | fsteeg/json-ld-api | tests/toRdf/0127-in.jsonld | [
"W3C"
] |
{ lib, buildPythonPackage, fetchFromGitHub, regex, pytest }:
buildPythonPackage rec {
pname = "pygrok";
version = "1.0.0";
src = fetchFromGitHub {
owner = "garyelephant";
repo = "pygrok";
rev = "v${version}";
sha256 = "07487rcmv74srnchh60jp0vg46g086qmpkaj8gxqhp9rj47r1s4m";
};
propagatedBuil... | Nix | 3 | collinwright/nixpkgs | pkgs/development/python-modules/pygrok/default.nix | [
"MIT"
] |
@import url("https://www.djangoproject.com/m/css/base.css");
| CSS | 0 | jpmallarino/django | tests/staticfiles_tests/project/documents/cached/url.css | [
"BSD-3-Clause",
"0BSD"
] |
key botID;
default
{
state_entry()
{
//This creates a bot in the sim with the given name, outfit at the given start position.
botID = botCreateBot("Test", "Bot", "", llGetPos(), BOT_CREATE_DEFAULT);
}
touch_start(integer n)
{
//Sends a linked message to all objects attached t... | LSL | 4 | Asterionworld/ether | doc/bot LSL Functions/Examples/bot Message Linked.lsl | [
"BSD-3-Clause"
] |
public const string DATA_DIRECTORY;
| Vala | 0 | kira78/meson | test cases/vala/4 config/config.vapi | [
"Apache-2.0"
] |
subscription ShortcodeCreated {
myShortcodesCreated {
id
request
createdOn
}
}
| GraphQL | 4 | devblin/hoppscotch | packages/hoppscotch-app/helpers/backend/gql/subscriptions/ShortcodeCreated.graphql | [
"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 ma... | Pascal | 5 | Jimexist/thrift | lib/delphi/src/Thrift.Stream.pas | [
"Apache-2.0"
] |
/* Copyright (c) 2017-2019 Netronome Systems, Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
;TEST_INIT_EXEC nfp-mem i32.ctm:0x80 0x00010002 0x00030004 0x00050006 0x00070008
;TEST_INIT_EXEC nfp-mem i32.ctm:0x90 0x0009000a 0x000b000c 0x000d000e 0x000f0010
;TEST_INIT_EXEC nfp-mem i32.ctm:0xa... | UnrealScript | 3 | pcasconnetronome/nic-firmware | test/datapath/pkt_inc_pat_9K_x80.uc | [
"BSD-2-Clause"
] |
@el2-style: dashed;
| Less | 0 | joseconstela/meteor | packages/non-core/less/tests/top2.less | [
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] |
# Combine two files into one
# You can generate `a.json` with something like `range 1..5 | save a.json`
echo (open a.json) (open b.json) | save c.json
| Nu | 3 | x3rAx/nu_scripts | cool_oneliners/file_cat.nu | [
"MIT"
] |
use std::collections::HashMap;
fn main() {
let dict: HashMap<i32, i32> = HashMap::new();
let debug_dump_dict = || {
for (key, value) in dict {
println!("{:?} - {:?}", key, value);
}
};
debug_dump_dict();
debug_dump_dict();
//~^ ERROR use of moved value: `debug_dump_d... | Rust | 4 | Eric-Arellano/rust | src/test/ui/closure_context/issue-42065.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
%%%
%%% Author:
%%% Thorsten Brunklaus <bruni@ps.uni-sb.de>
%%%
%%% Copyright:
%%% Thorsten Brunklaus, 2002
%%%
%%% Last Change:
%%% $Date$ by $Author$
%%% $Revision$
%%%
%%% This file is part of Mozart, an implementation of Oz 3:
%%% http://www.mozart-oz.org
%%%
%%% See the file "LICENSE" or
%%% http://www... | Oz | 5 | Ahzed11/mozart2 | lib/tools/inspector/treewidget/GtkGraphicSupport.oz | [
"BSD-2-Clause"
] |
"""Support for Xiaomi Yeelight WiFi color bulb."""
from __future__ import annotations
import asyncio
import logging
from yeelight import BulbException
from yeelight.aio import KEY_CONNECTED
from homeassistant.const import CONF_ID, CONF_NAME
from homeassistant.core import callback
from homeassistant.helpers.dispatche... | Python | 5 | mtarjoianu/core | homeassistant/components/yeelight/device.py | [
"Apache-2.0"
] |
// We used to not lower the extra `b @ ..` into `b @ _` which meant that no type
// was registered for the binding `b` although it passed through resolve.
// This resulted in an ICE (#69103).
fn main() {
let [a @ .., b @ ..] = &mut [1, 2];
//~^ ERROR `..` can only be used once per slice pattern
b;
let... | Rust | 4 | Eric-Arellano/rust | src/test/ui/array-slice-vec/issue-69103-extra-binding-subslice.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#######################################################################
# #
# This file is part of a collection developed first for a course in #
# financial optimization taught out of the text of Cornuejols and #
# Tutuncu and then adapted for a... | Zimpl | 4 | tkralphs/FinancialModels | Dedication/dedication2.zpl | [
"CC-BY-3.0"
] |
dnl Like AC_TRY_EVAL but also errors out if the compiler generates
dnl _any_ output. Some compilers might issue warnings which we want
dnl to catch.
AC_DEFUN([AC_TRY_EVAL2],
[{ (eval echo configure:__oline__: \"[$]$1\") 1>&AS_MESSAGE_LOG_FD; dnl
(eval [$]$1) 2>&AS_MESSAGE_LOG_FD; _out=`eval [$]$1 2>&1` && test "x$_out"... | M4 | 4 | koln67/shaka-packager | packager/third_party/libxml/src/acinclude.m4 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
# Copyright (c) 2021 vesoft inc. All rights reserved.
#
# This source code is licensed under Apache 2.0 License,
# attached with Common Clause Condition 1.0, found in the LICENSES directory.
Feature: Variable usage
Background:
Given a graph with space named "nba"
Scenario: disable yield $var
When executin... | Cucumber | 3 | wenhaocs/nebula | tests/tck/features/bugfix/VariableExpression.feature | [
"Apache-2.0"
] |
#define BLUR_FORMAT float
#define BLUR_WIDE
#include "blur_bilateral_float4CS.hlsl"
| HLSL | 1 | rohankumardubey/WickedEngine | WickedEngine/shaders/blur_bilateral_wide_float1CS.hlsl | [
"MIT"
] |
From e87e1ccf93768238db3d6e28d0272980dba707fa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Carlo=20Marcelo=20Arenas=20Bel=C3=B3n?= <carenas@gmail.com>
Date: Mon, 30 Nov 2020 01:35:13 -0800
Subject: [PATCH] macos: add BigSur support to execalloc (#90)
Apple Silicon requires that pages that will hold JIT code are
marked wit... | Diff | 4 | jonas-schulze/julia | deps/patches/pcre2-sljit-apple-silicon-support.patch | [
"MIT"
] |
<html>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<style>
#animate-me {
width: 100px;
height: 100px;
font-size: 20pt;
background-color: red;
animation-name: anim;
animation-duration: 1s;
}
@keyframes anim {
from {font-size: 20pt;}
to {font-size: 10p... | HTML | 3 | martin-maunoury/lighthouse | lighthouse-cli/test/fixtures/perf/trace-elements.html | [
"Apache-2.0"
] |
{{#operations}}
{{#operation}}
<Location "{{basePathWithoutHost}}{{path}}">
{{>authConf}}
<LimitExcept GET POST PUT DELETE>
Require valid-user
</LimitExcept>
{{#hasAuthMethods}}
{{#authMethods}}
{{#isOAuth}}
<Limit {{httpMethod}}>
{{#scopes}}
Require group {{scope}}
{{/scopes}}
</Limit>
{{/isOAuth}}
{{/aut... | HTML+Django | 3 | malymato/openapi-generator | modules/openapi-generator/src/main/resources/apache2/apache-config.mustache | [
"Apache-2.0"
] |
# 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 applica... | Python | 5 | NasTul/models | official/vision/beta/serving/export_tflite_lib_test.py | [
"Apache-2.0"
] |
-- Inspired by opSimp (written by Ulf)
--
-- map id x = x:
--
let id {A : Set}(a : A) : A ;
= a ;
root ;
let law-map-id (D : Desc)(X : Set)(x : desc D X) : Set ;
= :- map D X X id x == x ;
root ;
let simpl-map-id (D : Desc)(X : Set)(x : desc D X) : law-map-id D X x ;
-- MAGIC!
root ;
--
-- map swap (map swap x) ... | PigLatin | 3 | mietek/epigram | test/MapSimp.pig | [
"MIT"
] |
/*
* This file is part of the FOSHttpCache package.
*
* (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
sub fos_purge_recv {
if (req.method == "PURGE") {
if (!... | VCL | 4 | PeerJ/FOSHttpCache | resources/config/varnish/fos_purge.vcl | [
"MIT"
] |
/******************************************************************************
* Copyright 2018 The Apollo 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
... | C | 4 | jzjonah/apollo | modules/bridge/udp_bridge_receiver_component.h | [
"Apache-2.0"
] |
module FetchResult exposing
( FetchResult(..)
, changedFrom
, map
, withDefault
)
type FetchResult a
= None
| Cached a
| Fetched a
value : FetchResult a -> Maybe a
value result =
case result of
None ->
Nothing
Cached cachedValue ->
Just ca... | Elm | 5 | Caprowni/concourse | web/elm/src/FetchResult.elm | [
"Apache-2.0"
] |
<GameFile>
<PropertyGroup Name="KeySelect" Type="Layer" ID="18132b85-255a-4049-bb5b-4343880f3a4c" Version="3.10.0.0" />
<Content ctype="GameProjectContent">
<Content>
<Animation Duration="0" Speed="1.0000" />
<ObjectData Name="Layer" Tag="22" ctype="GameLayerObjectData">
<Size X="1280.0000" ... | Csound | 3 | A29586a/Kirikiroid2 | cocos/kr2/cocosstudio/ui/KeySelect.csd | [
"BSD-3-Clause"
] |
A ← 3 2 ⍴ ⍳ 5 ⋄ B ← ⍉ A
WA ← (1↓⍴B),⍴A
KA ← (⊃⍴⍴A)-1
VA ← ⍳ ⊃ ⍴WA
ZA ← (KA⌽¯1↓VA),¯1↑VA
TA ← ZA⍉WA⍴A
WB ← (¯1↓⍴A),⍴B ⍝ size-3 vector with shape (3 2 3)
KB ← ⊃ ⍴⍴A ⍝ 2
VB ← ⍳ ⊃ ⍴WB ⍝ (1 2 3)
ZB ← (KB+⍳(⊃⍴VB)-KB),KB ⍝ ((KB≠VB)/VB),KB ⍝ 1 3 2
⍝ ZB ← (⍳ KB-1),ZB
+/+/+/TA
| APL | 3 | mbudde/apltail | tests/test26.apl | [
"MIT"
] |
<%@ page contentType="text/html; charset=utf-8" isELIgnored="false" trimDirectiveWhitespaces="true" %>
<jsp:useBean id="ctx" type="com.dianping.cat.report.page.browser.Context" scope="request"/>
<jsp:useBean id="payload" type="com.dianping.cat.report.page.browser.Payload" scope="request"/>
<jsp:useBean id="model" type=... | Java Server Pages | 2 | woozhijun/cat | cat-home/src/main/webapp/jsp/report/browser.jsp | [
"Apache-2.0"
] |
{%- macro hello(name) -%}
{%- return "Hello " ~ name -%}
{%- endmacro -%}
{{- hello('World') -}}
| Volt | 3 | tidytrax/cphalcon | tests/_data/fixtures/views/macro/hello.volt | [
"BSD-3-Clause"
] |
parser grammar t052importS4;
options {
language=JavaScript;
}
@members {
this.capture = function(t) {
this.gt052importM4.capture(t);
};
}
a : b {this.capture("S.a");} ;
b : B ;
| G-code | 3 | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | java/java2py/antlr-3.1.3/runtime/JavaScript/tests/functional/t052importS4.g | [
"Apache-2.0"
] |
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Ricochet IM
Categories=Network;InstantMessaging;Chat;FileTransfer;Qt
Comment=Anonymous instant messaging
Icon=ricochet
Exec=ricochet
| desktop | 0 | garrettr/ricochet | src/ricochet.desktop | [
"OpenSSL"
] |
1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -14.00
-1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -94.00
1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 64.00
-1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -155.00
1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 115.00
-1.... | Matlab | 0 | yinrun/LOPDC-Benchmarks | jobshop/matlab/js-10-8-39.matlab | [
"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 | 3 | EricRemmerswaal/tensorflow | tensorflow/lite/core/api/op_resolver_internal.h | [
"Apache-2.0"
] |
#tag Class
Protected Class IconMetricsWFS
#tag Method, Flags = &h0
Sub Constructor()
// Do nothing
End Sub
#tag EndMethod
#tag Method, Flags = &h0
Sub Constructor(mb as MemoryBlock, bUnicodeSavvy as Boolean)
// Convert from a memory block
StructureSize = mb.Long( 0 )
HorizontalSpacing = mb.Lon... | REALbasic | 3 | bskrtich/WFS | Windows Functionality Suite/UI Extras/System Information/Classes/IconMetricsWFS.rbbas | [
"MIT"
] |
#!/usr/bin/env sh
exec /usr/lib/code-server/bin/code-server "$@"
| Shell | 1 | anniyanvr/code-server | ci/build/code-server-nfpm.sh | [
"MIT"
] |
--TEST--
bug_debug_backtrace.phpt with replaced zend_execute_ex
--EXTENSIONS--
zend_test
--INI--
zend_test.replace_zend_execute_ex=1
opcache.jit=disable
--FILE--
<?php
function foo() {
bar();
}
function bar() {
boo();
}
function boo(){
debug_print_backtrace();
}
eval("foo();");
echo "Done\n";
?>
--EXPEC... | PHP | 3 | NathanFreeman/php-src | Zend/tests/bug_debug_backtrace_replace_zend_execute_ex.phpt | [
"PHP-3.01"
] |
const createTestCases = require("../_helpers/createTestCases");
module.exports = createTestCases({
nothing: {
usedExports: [],
expect: {
"resize-observer": ["ResizeObserver"],
"Source_Data/employee": [],
"Source_Data/services": [],
"Source_Framework/splitview/page": [],
"Source_Framework/splitview/m... | JavaScript | 2 | 1shenxi/webpack | test/configCases/inner-graph/issue-11678/webpack.config.js | [
"MIT"
] |
[CCode (cheader_filename = "gum/gumlinux.h")]
namespace Gum.Linux {
public Gum.CpuType cpu_type_from_file (string path) throws GLib.Error;
public Gum.CpuType cpu_type_from_pid (Posix.pid_t pid) throws GLib.Error;
}
| Vala | 4 | bmax121/frida-gum | vapi/frida-gum-linux-1.0.vapi | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
DROP TABLE "public"."table3";
| SQL | 0 | eazyfin/graphql-engine | cli/commands/testdata/migrate-squash-test/migrations/1588172668179_create_table_public_table3/down.sql | [
"Apache-2.0",
"MIT"
] |
/* The origin of this IDL file is
* https://www.w3.org/TR/screen-wake-lock/#idl-index
*/
[SecureContext]
partial interface Navigator {
[SameObject] readonly attribute WakeLock wakeLock;
};
[SecureContext, Exposed=(Window)]
interface WakeLock {
Promise<WakeLockSentinel> request(WakeLockType type);
};
[SecureCon... | WebIDL | 4 | dkozma/wasm-bindgen | crates/web-sys/webidls/unstable/ScreenWakeLock.webidl | [
"Apache-2.0",
"MIT"
] |
#include "swift/Basic/ClusteredBitVector.h"
#include "gtest/gtest.h"
using namespace swift;
TEST(ClusteredBitVector, Add) {
ClusteredBitVector vec;
vec.add(31, 2133572605);
EXPECT_EQ(31u, vec.size());
EXPECT_EQ(true, vec[0]);
EXPECT_EQ(false, vec[1]);
EXPECT_EQ(true, vec[30]);
}
TEST(ClusteredBitVector,... | C++ | 4 | lwhsu/swift | unittests/Basic/ClusteredBitVectorTest.cpp | [
"Apache-2.0"
] |
/**
* 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... | AspectJ | 4 | hoppinghippo/HadoopMapReduce | src/test/system/aop/org/apache/hadoop/hdfs/server/namenode/NameNodeAspect.aj | [
"Apache-2.0"
] |
// Copyright 2016 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.
//go:build mips || mipsle
// +build mips mipsle
#include "textflag.h"
#ifdef GOARCH_mips
#define MOVWHI MOVWL
#define MOVWLO MOVWR
#else
#define MOVWHI MOV... | GAS | 4 | rleungx/go | src/runtime/memclr_mipsx.s | [
"BSD-3-Clause"
] |
// Copyright 2020 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:provider/provider.dart';
import 'package:provider_sho... | Dart | 5 | 10088/samples | provider_shopper/test/login_widget_test.dart | [
"Apache-2.0"
] |
DROP TABLE IF EXISTS columns;
CREATE TABLE columns (a UInt8, b UInt8, c UInt8) ENGINE = Memory;
INSERT INTO columns VALUES (1, 2, 3);
SET max_columns_to_read = 1;
SELECT a FROM (SELECT * FROM columns);
SELECT a FROM (SELECT * FROM (SELECT * FROM columns));
SELECT a FROM (SELECT * FROM columns UNION ALL SELECT * FROM c... | SQL | 3 | pdv-ru/ClickHouse | tests/queries/0_stateless/00593_union_all_assert_columns_removed.sql | [
"Apache-2.0"
] |
$fn = 90;
use <bell-base-and-stand.scad>
BellAndSolenoidStand();
| OpenSCAD | 3 | Pajsen9263/pi-bell-slapper | enclosure/case.scad | [
"MIT"
] |
const singleDigitNumbers = [
'Zero',
'One',
'Two',
'Three',
'Four',
'Five',
'Six',
'Seven',
'Eight',
'Nine',
];
const twoDigitNumbers1 = [
'Ten',
'Eleven',
'Twelve',
'Thirteen',
'Fourteen',
'Fivteen',
'Sixteen',
'Seventeen',
'Eightteen',
'Nineteen',
];
export default function my... | JavaScript | 4 | good-gym/material-ui | packages/material-ui-icons/renameFilters/material-design-icons.js | [
"MIT"
] |
class Main {
static var command:String = "(?'command'[a-zA-Z]+($|\s+))";
static function main() { }
} | Haxe | 2 | Alan-love/haxe | tests/misc/projects/Issue5126/Main.hx | [
"MIT"
] |
#foo(
test()'i32
)
class #foo (
test() {
5.0
}
) { this }
a: class() as #foo
a.test() | Objective-J | 0 | justinmann/sj | tests/interface7.sj | [
"Apache-2.0"
] |
/******************************************************************************
* Copyright 2020 The Apollo 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
... | C++ | 3 | jzjonah/apollo | modules/canbus/vehicle/neolix_edu/protocol/aeb_systemstate_11_test.cc | [
"Apache-2.0"
] |
// Copyright 2016 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 types
import (
"go/ast"
"go/parser"
"go/token"
"testing"
)
func TestIsAlias(t *testing.T) {
check := func(obj *TypeName, want bool) {
if got :=... | Go | 4 | SilverRainZ/go | src/go/types/object_test.go | [
"BSD-3-Clause"
] |
package org.robobinding.aspects;
import org.aspectj.lang.annotation.AdviceName;
import org.robobinding.annotation.PresentationModel;
import org.robobinding.internal.java_beans.Introspector;
import org.robobinding.presentationmodel.HasPresentationModelChangeSupport;
import org.robobinding.presentationmodel.Presentation... | AspectJ | 5 | icse18-refactorings/RoboBinding | framework/src/main/java/org/robobinding/aspects/PresentationModelAspect.aj | [
"Apache-2.0"
] |
interface FibOne_IFC;
method Action nextFib;
method ActionValue #(int) getFib;
endinterface
(* synthesize *)
module mkFibOne(FibOne_IFC);
// register containing the current Fibonacci value
Reg#(int) this_fib <- mkReg (0);
Reg#(int) next_fib <- mkReg (1);
method Action nextFib;
this_fib <= nex... | Bluespec | 4 | mfkiwl/siliconcompiler | tests/flows/data/FibOne.bsv | [
"Apache-2.0"
] |
#pragma TextEncoding="UTF-8"
#pragma rtGlobals=3
#pragma ModuleName=SIDAMPositionRecorder
#include "SIDAM_Display"
#include "SIDAM_Utilities_Help"
#include "SIDAM_Utilities_Image"
#ifndef SIDAMshowProc
#pragma hide = 1
#endif
//@
// Show a panel to record positions.
//
// ## Parameters
// grfName : s... | IGOR Pro | 4 | yuksk/SIDAM | src/SIDAM/func/SIDAM_Position_Recorder.ipf | [
"MIT"
] |
(ns hu.lib.number
(:require
[hu.lib.type :refer [number?]]))
(def ^number max (.-max Math))
(def ^number min (.-min Math))
(def ^number abs (.-abs Math))
(def ^number round (.-round Math))
(def ^number random (.-random Math))
(def ^number floor (.-floor Math))
(def ^number sin (.-sin Math))
(def ^number tan (.-t... | wisp | 5 | h2non/hu | src/number.wisp | [
"MIT"
] |
<div [attr.array]="[0]" [attr.map]="{a:1}" title="translate me" i18n-title="meaning|desc">{{ctxProp}}</div>
<form><input type="button" [(ngModel)]="ctxProp" name="first"/></form>
<my-comp *ngIf="ctxBool"></my-comp>
<div *ngFor="let x of ctxArr" [attr.value]="x"></div>
<p id="welcomeMessage"><!--i18n-->Welcome<!--/i18n-... | HTML | 3 | coreyscherbing/angular | packages/compiler-cli/integrationtest/src/basic.html | [
"MIT"
] |
primitive _SignedArithmetic
fun fld[T: (SignedInteger[T, U] val & Signed), U: UnsignedInteger[U] val](x: T, y: T): T =>
if (y == T.from[U8](0)) or ((x == T.min_value()) and (y == T.from[I8](-1))) then
T.from[U8](0)
else
_SignedUnsafeArithmetic.fld_unsafe[T, U](x, y)
end
fun mod[T: (SignedIn... | Pony | 5 | presidentbeef/ponyc | packages/builtin/_arithmetic.pony | [
"BSD-2-Clause"
] |
@font-face {
font-display: block;
}
| CSS | 0 | kitsonk/swc | css/parser/tests/errors/rome/invalid/.font/input.css | [
"Apache-2.0",
"MIT"
] |
SUMMARY = "Xilinx Runtime(XRT) driver module"
DESCRIPTION = "Xilinx Runtime driver module provides memory management and compute unit schedule"
LICENSE = "GPLv2 & Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
BRANCH ?= "master"
REPO ?= "git://github.com/Xilinx/XRT.git;protocol=... | BitBake | 4 | mariodruiz/XRT | build/xocl_petalinux_compile/xocl_git.bb | [
"Apache-2.0"
] |
serverCode =: 0 : 0
//css_using MicroJ
//css_using System.IO
//css_using System.Collections.Generic
//css_using System.Linq
//css_using System.Text
//css_using System.Threading.Tasks
//css_using System.Net
//css_using System.Threading
//css_using System.Text.RegularExpressions
//css_ref System.Web.Extensi... | J | 3 | joebo/microj | examples/grid/server.ijs | [
"MIT"
] |
-- Andreas, 2019-04-13, issue #3692, reported by xekoukou
-- Feature #1086, omission of trivially absurd clauses,
-- caused wrong polarity computation.
-- {-# OPTIONS -v tc.polarity:20 #-}
-- {-# OPTIONS -v tc.cover.missing:100 #-}
open import Agda.Builtin.Equality
open import Agda.Builtin.Nat
data _≤_ : (m n : Nat... | Agda | 5 | cruhland/agda | test/Fail/Issue3692.agda | [
"MIT"
] |
{{#elmImports}}
import {{moduleName}}{{#as}} as {{as}}{{/as}}{{#hasExposures}} exposing ({{#exposures}}{{^-first}}, {{/-first}}{{.}}{{/exposures}}){{/hasExposures}}
{{/elmImports}} | HTML+Django | 3 | MalcolmScoffable/openapi-generator | modules/openapi-generator/src/main/resources/elm/imports.mustache | [
"Apache-2.0"
] |
xufag-danul-putub-mokin-pugaz-covid-dofag-nihuz-sysab-genar-zaxyx
| BitBake | 0 | chrisburr/gct | gsi_openssh/source/regress/unittests/sshkey/testdata/ecdsa_2.fp.bb | [
"Apache-2.0"
] |
discard """
disabled: "windows"
exitcode: 0
"""
# AsyncSocketBug.nim
# Jens Alfke (@snej) -- 16 July 2020
# Demonstrates data loss by Nim's AsyncSocket.
# Just run it, and it will raise an assertion failure within a minute.
import asyncdispatch, asyncnet, strformat, strutils, sugar
const FrameSize = 9999 # Exac... | Nimrod | 5 | JohnAD/Nim | tests/async/tasynceagain.nim | [
"MIT"
] |
[
{
"ProfileName": "Linux-Path",
"Name": "",
"Enabled": true,
"Scanner": 1,
"Author": "@Sy3Omda",
"Payloads": [
"true,.//..//{FILE}",
"true,.//..//.//..//{FILE}",
"true,.//..//.//..//.//..//{FILE}",
"true,.//..//.//..//.//..//.//..//{FILE}",
"true,.//..//.//..//./... | BitBake | 1 | upenderadepu/BurpBounty | profiles/Linux-Path.bb | [
"Apache-2.0"
] |
package com.baeldung.concurrent.localvariables;
public class LocalAndLambda {
public static void main(String... args) {
String text = "";
// Un-commenting the next line will break compilation, because text is no longer effectively final
// text = "675";
new Thread(() -> System.out.p... | Java | 4 | DBatOWL/tutorials | core-java-modules/core-java-concurrency-basic-2/src/main/java/com/baeldung/concurrent/localvariables/LocalAndLambda.java | [
"MIT"
] |
export default {
html: `
<button>action</button>
`,
async test({ assert, target, window }) {
const button = target.querySelector('button');
const enter = new window.MouseEvent('mouseenter');
const leave = new window.MouseEvent('mouseleave');
const ctrlPress = new window.KeyboardEvent('keydown', { ctrlKey:... | JavaScript | 4 | Theo-Steiner/svelte | test/runtime/samples/action-update/_config.js | [
"MIT"
] |
require(httr)
headers = c(
`Authorization` = 'Bearer ACCESS_TOKEN'
)
files = list(
`attributes` = '{"name":"tigers.jpeg", "parent":{"id":"11446498"}}',
`file` = upload_file('myfile.jpg')
)
res <- httr::POST(url = 'https://upload.box.com/api/2.0/files/content', httr::add_headers(.headers=headers), body = files)... | R | 3 | kado0413/curlconverter | fixtures/r/multipart_post.r | [
"MIT"
] |
$(OBJDIR)/escape.cmi:
| D | 0 | heechul/crest-z3 | cil/obj/.depend/escape.di | [
"BSD-3-Clause"
] |
/*
Module: fibs
Copyright: (c) 2005 Galois Connections, Inc.
Author: Mark Shields, Galois Connections, Inc. <mbs@galois.com>
*/
// Fibonacci numbers
exports fib;
fib : B^32 -> B^8;
fib i = fibs @@ i
where {
rec
fibs : B^8^inf;
fibs = [0, 1] ## [x + y | x <- drops{1} fibs | y <- fibs];... | MAXScript | 4 | mayankmanj/acl2 | books/workshops/2006/pike-shields-matthews/core_verifier/Fibonacci/fibs.mcr | [
"BSD-3-Clause"
] |
Import rockout
Function CheckKeys ()
' Player input (except mouse input, used universally)...
If KeyHit (KEY_ESCAPE)
GameSession.SetState STATE_MENU
Endif
If KeyHit (KEY_P)
GameSession.SetState STATE_PAUSED
Endif
If KeyHit (KEY_SPACE)
New Block (DEFAULT_BLOCK, Rnd (VDeviceWidth), Rnd (VDeviceHeight)... | Monkey | 3 | blitz-research/monkey | bananas/hitoro/rockout/imports/checkkeys.monkey | [
"Zlib"
] |
{% block b1 %}block from theme 1{% endblock %}
{% block b2 %}block from theme 1{% endblock %}
| Twig | 3 | lavrenchukvladyslav/S4Rest | vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/themes/theme1/blocks.html.twig | [
"MIT"
] |
mutation RenameCollection($newTitle: String!, $collectionID: ID!) {
renameCollection(newTitle: $newTitle, collectionID: $collectionID) {
id
}
}
| GraphQL | 3 | miily8310s/hoppscotch | packages/hoppscotch-app/helpers/backend/gql/mutations/RenameCollection.graphql | [
"MIT"
] |
# config of tikv
[storage]
reserve-space = "1KB"
data-dir = "/tmp/backup_restore_test/tikv1/"
[coprocessor]
region-max-keys = 100
region-split-keys = 60
[rocksdb]
max-open-files = 4096
[raftdb]
max-open-files = 4096
[raftstore]
# true (default value) for high reliability, this can prevent data loss when power failur... | TOML | 3 | WizardXiao/tidb | br/tests/config/tikv.toml | [
"Apache-2.0"
] |
= content_for :frame do
.container
= render 'shared/flash'
= render 'user_tokens'
= render 'oauth_tokens'
| Slim | 3 | gsmlg/peatio | app/views/private/api_tokens/index.html.slim | [
"MIT"
] |
; CLW file contains information for the MFC ClassWizard
[General Info]
Version=1
LastClass=ClientUpdate
LastTemplate=CDialog
NewFileInclude1=#include "stdafx.h"
NewFileInclude2=#include "selfupdate.h"
LastPage=0
ClassCount=1
Class1=ClientUpdate
ResourceCount=1
Resource1=IDD_SELF_UPDATE_DIALOG
[CLS:ClientUpdate]
Typ... | Clarion | 2 | CarysT/medusa | SelfUpdate/SelfUpdate.clw | [
"MIT"
] |
pub main
coginit(0, @entry, 0)
dat
org 0
entry
_getoff1
mov result1, #4
_getoff1_ret
ret
_getoff2
mov result1, #4
_getoff2_ret
ret
result1
long 0
COG_BSS_START
fit 496
org COG_BSS_START
fit 496
| Parrot Assembly | 2 | archivest/spin2cpp | Test/Expect/stest185.pasm | [
"MIT"
] |
HAI 1.2
SMOOSH "lol " AN "cat " AN "rulez!" MKAY BTW "lol cat rulez!"
KTHXBYE
| LOLCODE | 2 | Himanshu21git/Lokalise-source | lolcode-fun-post/string_operators.lol | [
"MIT"
] |
<?xml version="1.0" encoding="UTF-8"?>
<!-- generated with COPASI 4.22 (Build 170) (http://www.copasi.org) at 2018-04-06 15:15:20 UTC -->
<?oxygen RNGSchema="http://www.copasi.org/static/schema/CopasiML.rng" type="xml"?>
<COPASI xmlns="http://www.copasi.org/static/schema" versionMajor="4" versionMinor="22" versionDevel... | Component Pascal | 5 | arakkkkk/PyBNF | examples/raf_sbml/Romano2014.cps | [
"BSD-3-Clause"
] |
//This file is part of "GZE - GroundZero Engine"
//The permisive licence allow to use GZE for free or commercial project (Apache License, Version 2.0).
//For conditions of distribution and use, see copyright notice in Licence.txt, this license must be included with any distribution of the code.
package {
import GZ.... | Redcode | 4 | VLiance/GZE | src/Lib_GZ/Sff/Tmx/Tmx.cw | [
"Apache-2.0"
] |
#![feature(unboxed_closures)]
fn foo<F: Fn<i32>>(f: F) -> F::Output { f(3) } //~ ERROR E0059
fn main() {
}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/error-codes/E0059.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
Rem
Repeat executes the following section of code until a terminating condition is true.
End Rem
Repeat
print i
i:+1
Until i=5
| BlitzMax | 3 | jabdoa2/blitzmax | mod/brl.mod/blitz.mod/doc/repeat.bmx | [
"Zlib"
] |
/* Specify the memory areas */
MEMORY
{
FLASH_TEXT (rx) : ORIGIN = 0x00000000, LENGTH = 32K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 64K
}
| Linker Script | 3 | sebastien-riou/micropython | ports/nrf/boards/nrf9160_1M_256k_secure.ld | [
"MIT"
] |
<interface name="timer">
<!-- uint64_t get_ticks (); -->
<method rtype="uint64_t" name="get_ticks" />
<!-- void set_ticks (uint64_t ticks); -->
<method rtype="void" name="set_ticks">
<arg atype="uint64_t" name="ticks" />
</method>
<!-- uint64_t get_tick_frequency (); -->
<method rtype="uint64_t" name... | D | 4 | CyberQueenMara/baseband-research | okl4_kernel/okl4_2.1.1-patch.9/libs/driverv2/include/timer_if.di | [
"MIT"
] |
$(OBJDIR)/callgraph.cmi: $(OBJDIR)/inthash.cmi $(OBJDIR)/cil.cmi
| D | 1 | heechul/crest-z3 | cil/obj/.depend/callgraph.di | [
"BSD-3-Clause"
] |
--
-- Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
--
--
-- AGGREGATES [Part 4]
-- https://github.com/postgres/postgres/blob/REL_12_BETA2/src/test/regress/sql/aggregates.sql#L607-L997
-- Test aggregate operator with codegen on and off.
--CONFIG_DIM1 spark.sql.codegen.wholeStage=true
--CONFIG_D... | SQL | 4 | OlegPt/spark | sql/core/src/test/resources/sql-tests/inputs/postgreSQL/aggregates_part4.sql | [
"Apache-2.0"
] |
--TEST--
Argument/return types must be available for preloading
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
opcache.preload={PWD}/preload_variance_ind.inc
--EXTENSIONS--
opcache
--SKIPIF--
<?php
if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
?>
--FILE... | PHP | 3 | NathanFreeman/php-src | ext/opcache/tests/preload_011.phpt | [
"PHP-3.01"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.