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 Fancy {
VERSION_MAJOR = 0
VERSION_MINOR = 10
VERSION_PATCH = 0
VERSION = [VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH] join: "."
}
| Fancy | 2 | bakkdoor/fancy | lib/version.fy | [
"BSD-3-Clause"
] |
# This file is distributed under the same license as the Django package.
#
# Translators:
# NullIsNot0 <nullisnot0@inbox.lv>, 2017
# Jannis Leidel <jannis@leidel.info>, 2011
# Māris Nartišs <maris.gis@gmail.com>, 2016
# NullIsNot0 <nullisnot0@inbox.lv>, 2019,2021
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Repor... | Gettext Catalog | 3 | Joshua-Barawa/My-Photos | venv/lib/python3.8/site-packages/django/contrib/admindocs/locale/lv/LC_MESSAGES/django.po | [
"PostgreSQL",
"Unlicense"
] |
#pragma ModuleName=MinTest
/////////////////////////////////////////////////////////////////////////////////
// Public Functions /////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
// (1) check whether values of two variables ... | IGOR Pro | 4 | ajnavarro/language-dataset | data/github.com/ryotako/igor-MinTest/e81451965c3ca38fde270574cfb60109fe7e1e9c/MinTest.ipf | [
"MIT"
] |
%%% Copyright © 2013-2014, Université catholique de Louvain
%%% All rights reserved.
%%%
%%% Redistribution and use in source and binary forms, with or without
%%% modification, are permitted provided that the following conditions are met:
%%%
%%% * Redistributions of source code must retain the above copyright notice,... | Oz | 5 | Ahzed11/mozart2 | lib/compiler/Parser.oz | [
"BSD-2-Clause"
] |
namespace {{rootNamespace}}.{{domain.Name}}
{
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
/// <summary>
/// Represents an adapter for the {{domain.Name}} domain to simplify the command interface.
/// </summary>
public class {{de... | Handlebars | 5 | TamsilAmani/selenium | third_party/dotnet/devtools/src/generator/Templates/domain.hbs | [
"Apache-2.0"
] |
(declare-const container String)
(declare-const target String)
(declare-const replacement String)
(assert (< (str.len target) (str.len container)))
(assert (> (str.len replacement) 2))
(define-fun replaced () String (str.replaceall container target replacement))
(assert (= replaced "axydefaxydef"))
(assert (not (= repl... | SMT | 4 | mauguignard/cbmc | regression/smt2_strings/replace_all_input_sat/replace_all_input_sat.smt2 | [
"BSD-4-Clause"
] |
lines(0);
ilib_verbose(0);
ierr = exec('loader.sce', 'errcatch');
if ierr <> 0 then
disp(lasterror());
exit(ierr);
end
// Test use of a struct (Bar)
a = new_Bar();
Bar_x_set(a, 100);
printf("a.x = %d (Should be 100)\n", Bar_x_get(a));
delete_Bar(a);
exit
| Scilab | 4 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/scilab/struct/runme.sci | [
"BSD-3-Clause"
] |
%{
/*
* Tencent is pleased to support the open source community by making TBase available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
*
* TBase is licensed under the BSD 3-Clause License, except for the third-party component listed below.
*
* A copy of the BSD 3-Clause... | Yacc | 5 | miusuncle/TBase | src/backend/bootstrap/bootparse.y | [
"BSD-3-Clause"
] |
/*
* Copyright 2002-2019 the original author or 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Java | 4 | ZiaYang/spring-framework | spring-beans/src/test/java/org/springframework/beans/propertyeditors/StringArrayPropertyEditorTests.java | [
"Apache-2.0"
] |
use v6;
say qq/
Euler 2:
Each new term in the Fibonacci sequence is generated by adding the
previous two terms. By starting with 1 and 2, the first 10 terms will be:
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
Find the sum of all the even-valued terms in the sequence which do
not exceed four million.
/;
say [+]((1,1,*... | Perl6 | 3 | Wikunia/hakank | perl6/euler2.p6 | [
"MIT"
] |
// aux-crate:overflow=overflow.rs
// check-pass
// Regression test for <https://github.com/rust-lang/rust/issues/79506>.
| Rust | 0 | ohno418/rust | src/test/rustdoc-ui/normalize-overflow.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
val main : unit -> transaction page
val bad : unit -> transaction page
| UrWeb | 1 | apple314159/urweb | tests/blob.urs | [
"BSD-3-Clause"
] |
// Comparison of two groups with Binomial
data {
int<lower=0> N1; // number of experiments in group 1
int<lower=0> y1; // number of deaths in group 1
int<lower=0> N2; // number of experiments in group 2
int<lower=0> y2; // number of deaths in group 2
}
parame... | Stan | 5 | tonyctan/BDA_R_demos | demos_rstan/binom2.stan | [
"BSD-3-Clause"
] |
@import "stylus_tests.import.styl"
#stylus-tests
zoom: 1
dashy = dashed
.stylus-dashy-left-border
border-left: 1px dashy black
.stylus-overwrite-size
// This property is overwritten in stylus_test.import.styl
font-size: 10px
.stylus-import-dashy-border
border-left: 1px importDashy black
| Stylus | 3 | joseconstela/meteor | packages/deprecated/stylus/stylus_tests.styl | [
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] |
#! /usr/bin/env perl
use strict;
use warnings;
use OpenSSL::Test qw/:DEFAULT data_file/;
use OpenSSL::Test::Utils;
setup("test_includes");
plan skip_all => "test_includes doesn't work without posix-io"
if disabled("posix-io");
delete $ENV{OPENSSL_CONF_INCLUDE};
plan tests => # The number of t... | Perl | 4 | pmesnier/openssl | test/recipes/90-test_includes.t | [
"Apache-2.0"
] |
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct Uniforms {
half4 testInputs;
half4 colorGreen;
half4 colorRed;
};
struct Inputs {
};
struct Outputs {
half4 sk_FragColor [[color(0)]];
};
fragment Outputs fragmentMain(Inputs _in [[stage_in]], constant Uniforms& _uniforms [[buf... | Metal | 4 | fourgrad/skia | tests/sksl/intrinsics/IsNan.metal | [
"BSD-3-Clause"
] |
"""The Bizkaibus bus tracker component."""
| Python | 0 | domwillcode/home-assistant | homeassistant/components/bizkaibus/__init__.py | [
"Apache-2.0"
] |
import 'std/encoding/json/encode'
import 'std/encoding/json/decode'
return {
"encode": encode.encode,
"decode": decode.decode,
}
| Inform 7 | 3 | lfkeitel/nitrogen | nitrogen/std/encoding/json/mod.ni | [
"BSD-3-Clause"
] |
2016-01-20 22:32:04 > fs0ciety (~whoami@c27-253-43-52.thoms4.vic.optusnet.com.au) has joined #systemau
2016-01-20 22:32:04 - Topic for #systemau is "systemau, the australian tech leaning podcast (with a linux bent) - it only took us three months to set a topic!"
2016-01-20 22:32:04 - Topic set by Enjay (~Enjay___... | IRC log | 0 | 0x4b1dN/2016-dots | misc/weechat/logs/irc.freenode.#systemau.weechatlog | [
"MIT"
] |
fileFormatVersion: 2
guid: 6bb6b867a41448888c1cd4f99643ad71
timeCreated: 1573764567 | Unity3D Asset | 0 | bobcy2015/ml-agents | com.unity.ml-agents/Runtime/Sensors/RayPerceptionSensorComponent3D.cs.meta | [
"Apache-2.0"
] |
{
"cells": [
{
"cell_type": "markdown",
"id": "87420f48",
"metadata": {},
"source": [
"# Beam Notebooks and Dataframes Demo\n",
"\n",
"This example demonstrates how to set up an Apache Beam pipeline that reads from a\n",
"[Google Cloud Storage](https://cloud.google.com/storage) file conta... | Jupyter Notebook | 5 | memeyankm/training-data-analyst | courses/dataflow/demos/beam_notebooks/beam_notebooks_demo.ipynb | [
"Apache-2.0"
] |
package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.math.BigDecimal
import io.micronaut.test.extensions.spock.annotation.MicronautTest
import spock.lang.Specification
import jakarta.inject.Inject
/**
* Model tests for NumberOnly
*/
@Micron... | Groovy | 4 | JigarJoshi/openapi-generator | samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/NumberOnlySpec.groovy | [
"Apache-2.0"
] |
class XorOshiro128Plus is Random
"""
This is an implementation of xoroshiro128+, as detailed at:
http://xoroshiro.di.unimi.it
This is currently the default Rand implementation.
"""
// state
var _x: U64
var _y: U64
new from_u64(x: U64 = 5489) =>
"""
Use seed x to seed a [SplitMix64](random-S... | Pony | 5 | presidentbeef/ponyc | packages/random/xoroshiro.pony | [
"BSD-2-Clause"
] |
/*
* Copyright (c) 2016-present, RxJava Contributors.
*
* 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 la... | Java | 4 | Jawnnypoo/RxJava | src/test/java/io/reactivex/rxjava3/validators/NoAnonymousInnerClassesTest.java | [
"Apache-2.0"
] |
/* modified from:*/
@import 'highlight.js/styles/atom-one-light.css';
/* hljs-template-variable covers the handlebars templating*/
.hljs-template-variable {
color: var(--primary-color);
}
.hljs-attr {
color: var(--accent-color-light);
}
| CSS | 3 | jlevon/hugo | docs/_vendor/github.com/gohugoio/gohugoioTheme/assets/css/_hljs.css | [
"Apache-2.0"
] |
# Test long literal
@prefix : <http://example.org/ex#> .
:a :b """a long
literal
with
newlines""" .
| Turtle | 2 | joshrose/audacity | lib-src/lv2/sord/tests/test-17.ttl | [
"CC-BY-3.0"
] |
KIDS Distribution saved on Jan 21, 2020@09:41:41
Creates notes from followup forms
**KIDS**:SAMI*18.0*1^
**INSTALL NAME**
SAMI*18.0*1
"BLD",11430,0)
SAMI*18.0*1^SAMI^0^3200121^y
"BLD",11430,4,0)
^9.64PA^^
"BLD",11430,6.3)
1
"BLD",11430,"KRN",0)
^9.67PA^1.5^24
"BLD",11430,"KRN",.4,0)
.4
"BLD",11430,"KRN",.401,0)
.401
"... | Genshi | 4 | OSEHRA/SAMI-VAPALS-ELCAP | dist/18-1/sami-1.18.0.1-i1.kid | [
"Apache-2.0"
] |
package io.swagger.client.api {
import io.swagger.common.ApiInvoker;
import io.swagger.exception.ApiErrorCodes;
import io.swagger.exception.ApiError;
import io.swagger.common.ApiUserCredentials;
import io.swagger.event.Response;
import io.swagger.common.SwaggerApi;
import io.swagger.client.model.User;
import mx.rpc.A... | ActionScript | 4 | wwadge/swagger-codegen | samples/client/petstore/flash/flash/src/io/swagger/client/api/UserApi.as | [
"Apache-2.0"
] |
import "regent"
-- Helper modules to handle PNG files and command line arguments
local png = require("png_util")
local BlurConfig = require("blur_config")
-- Some C APIs
local c = regentlib.c
local sqrt = regentlib.sqrt(double)
local DBL_MAX = 0x1.fffffffffffffp+1023
-- Field space for pixels
fspace Pixe... | Rouge | 5 | elliottslaughter/regent-tutorial | Blur/blur.rg | [
"Apache-2.0"
] |
=pod
=head1 NAME
build.info - Building information files
=head1 SYNOPSIS
B<IF[>0|1B<]>
B<ELSIF[>0|1B<]>
B<ELSE>
B<ENDIF>
B<SUBDIRS=> I<dir> ...
B<PROGRAMS=> I<name> ...
B<LIBS=> I<name> ...
B<MODULES=> I<name> ...
B<SCRIPTS=> I<name> ...
B<DEPEND[>I<items>B<]=> I<otheritem> ...
B<GENERATE[>I<item>B<]=> I<... | Pod | 5 | pmesnier/openssl | doc/internal/man7/build.info.pod | [
"Apache-2.0"
] |
@prefix a: <http://example.org/> .
a:s1 a:p1 a:o1
a:s2 a:p2 a:o2 .
| Turtle | 1 | joshrose/audacity | lib-src/lv2/serd/tests/bad/bad-missing-semi.ttl | [
"CC-BY-3.0"
] |
require "./sys/types"
lib LibC
VEOF = 4
VEOL = 11
VERASE = 2
VINTR = 0
VKILL = 3
VMIN = 6
VQUIT = 1
VSTART = 8
VSTOP = 9
VSUSP = 10
BRKINT = 0o000002
ICRNL = 0o000400
IGNBRK ... | Crystal | 4 | n00p3/crystal | src/lib_c/x86_64-linux-musl/c/termios.cr | [
"Apache-2.0"
] |
-module(prop_petstore).
-export([prop_test/0]).
prop_test() ->
{ok, _} = application:ensure_all_started(petstore),
petstore_statem:prop_main().
| Erlang | 4 | MalcolmScoffable/openapi-generator | samples/client/petstore/erlang-proper/test/prop_petstore.erl | [
"Apache-2.0"
] |
package test
fun f(x: Int = 1, y: Int) {
println("f(x=$x, y=$y)")
} | Groff | 3 | qussarah/declare | jps-plugin/testData/incremental/pureKotlin/defaultValueRemoved2/fun.kt.new.1 | [
"Apache-2.0"
] |
[38;2;117;113;94m--[0m[38;2;117;113;94m interships[0m
[38;2;249;38;114mcreate[0m[38;2;248;248;242m [0m[38;2;249;38;114mtable[0m[38;2;248;248;242m [0m[38;2;166;226;46minterships[0m[38;2;248;248;242m [0m
[38;2;248;248;242m(intership_id [0m[3;38;2;102;217;239mnumber[0m[38;2;248;248;242m([0m[38;2;190... | SQL | 5 | JesseVermeulen123/bat | tests/syntax-tests/highlighted/SQL/ims.sql | [
"Apache-2.0",
"MIT"
] |
/**
* Author......: See docs/credits.txt
* License.....: MIT
*/
#ifdef KERNEL_STATIC
#include "inc_vendor.h"
#include "inc_types.h"
#include "inc_platform.cl"
#include "inc_common.cl"
#endif
KERNEL_FQ void m02000_m04 (KERN_ATTR_RULES ())
{
}
KERNEL_FQ void m02000_m08 (KERN_ATTR_RULES ())
{
}
KERNEL_FQ void m0200... | OpenCL | 0 | Masha/hashcat | OpenCL/m02000_a0-optimized.cl | [
"MIT"
] |
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Geo IP Test</title>
<!--jquery dep -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready (function () {
// getting the public ip address from api and setting on ... | Java Server Pages | 5 | zeesh49/tutorials | spring-mvc-xml/src/main/webapp/GeoIpTest.jsp | [
"MIT"
] |
package universe_test
import "testing"
option now = () => 2030-01-01T00:00:00Z
inData =
"
#datatype,string,long,dateTime:RFC3339,string,string,double
#group,false,false,false,true,true,false
#default,_result,,,,,
,result,table,_time,_measurement,_field,_value
,,0,2018-04-17T00:00:00Z,m1,f1,42
,,0,2018-04-17T00:... | FLUX | 4 | metrico/flux | stdlib/universe/simple_max_test.flux | [
"MIT"
] |
index_status=Status som ska visas i listan,1,1-Aktuell status,0-Från senaste schemalagda kontroll
| SystemVerilog | 0 | GalaxyGFX/webmin | status/config.info.sv | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
(set-info :smt-lib-version 2.6)
(set-logic QF_UFLRA)
(set-info :source |CPAchecker with k-induction on SV-COMP14 program using MathSAT5, submitted by Philipp Wendler, http://cpachecker.sosy-lab.org|)
(set-info :category "industrial")
(set-info :status unsat)
(define-fun _1 () Bool true)
(declare-fun |main::p1@1| () R... | SMT | 3 | livinlife6751/infer | sledge/test/smt/QF_UFLRA/cpachecker-induction-svcomp14/cpachecker-induction.test_locks_5_true-unreach-call_false-termination.c.smt2 | [
"MIT"
] |
--TEST--
Bug #69089 (Add support for RFC3339 extended to DateTime::format)
--CREDITS--
Mariano Iglesias <mariano@cricava.com>
--FILE--
<?php
date_default_timezone_set('America/Buenos_Aires');
$date = new DateTime('2009-09-28 09:45:31.918312');
var_dump($date->format(DateTime::RFC3339_EXTENDED));
var_dump($date->forma... | PHP | 4 | NathanFreeman/php-src | ext/date/tests/bug69089.phpt | [
"PHP-3.01"
] |
/obj/item/clothing/boots/sandals
name = "sandals"
icon = 'icons/objects/clothing/boots/sandals.dmi'
default_material_path = /datum/material/cloth/leather
| DM | 3 | BloodyMan/Antimonium | code/objects/items/clothing/boots/boots_sandals.dm | [
"CC-BY-4.0"
] |
#!/usr/bin/env python2
"""Utility program to hold resources for a given session.
A session is defined as the lifetime of some process (externally specified,
or the original forking process of this process)
This program will daemonize and return 0 if the lock succeeds. If the lock
fails, it will return a non-zero exit... | Python | 5 | akhalymon-cv/spark | dev/ansible-for-test-node/roles/jenkins-worker/files/util_scripts/session_lock_resource.py | [
"Apache-2.0"
] |
@import 'nib'
// From https://github.com/tobiasahlin/SpinKit
.sk-spinner-double-bounce {
width: 40px;
height: 40px;
position: relative;
margin: 100px auto;
}
.sk-double-bounce1, .sk-double-bounce2 {
width: 100%;
height: 100%;
border-radius: 50%;
background-color: #333;
opacity: 0.6;
position: abs... | Stylus | 3 | UBessle/wekan | client/components/main/spinner_double_bounce.styl | [
"MIT"
] |
source ./test-functions.sh
echo 'JAVA_OPTS=-Dserver.port=8081' > app.conf
launch_jar
await_app http://127.0.0.1:8081/
curl -s http://127.0.0.1:8081/
| Shell | 3 | techAi007/spring-boot | spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/src/intTest/resources/scripts/jar/launch-with-single-java-opt.sh | [
"Apache-2.0"
] |
//
// This file is part of the Simutrans project under the Artistic License.
// (see LICENSE.txt)
//
//
// Test building/upgrading/removing headquarters
//
function get_hq_by_level(level)
{
local list = building_desc_x.get_building_list(building_desc_x.headquarter)
list.sort(@(a, b) a.get_headquarter_level() <=> ... | Squirrel | 4 | Andarix/simutrans_nightly | tests/tests/test_headquarters.nut | [
"Artistic-1.0"
] |
<?xml version="1.0"?>
<!DOCTYPE rdf:RDF [
<!ENTITY owl "http://www.w3.org/2002/07/owl#" >
<!ENTITY owl11 "http://www.w3.org/2006/12/owl11#" >
<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
<!ENTITY owl11xml "http://www.w3.org/2006/12/owl11-xml#" >
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-s... | Web Ontology Language | 3 | VishalS711/protege | protege-editor-owl/src/test/resources/ontologies/tree/simpleLoop.owl | [
"BSD-2-Clause"
] |
CREATE TABLE posts (
id INTEGER PRIMARY KEY AUTOINCREMENT,
title VARCHAR NOT NULL,
text VARCHAR NOT NULL,
published BOOLEAN NOT NULL DEFAULT 0
);
| SQL | 3 | benjaminch/Rocket | examples/databases/db/sqlx/migrations/20210331024424_create-posts-table.sql | [
"Apache-2.0",
"MIT"
] |
#!/bin/bash
set -ex
[ -n "$GLIBC_VERSION" ]
if [[ -n "$CENTOS_VERSION" ]]; then
[ -n "$DEVTOOLSET_VERSION" ]
fi
yum install -y wget sed
mkdir -p /packages && cd /packages
wget -q http://ftp.gnu.org/gnu/glibc/glibc-$GLIBC_VERSION.tar.gz
tar xzf glibc-$GLIBC_VERSION.tar.gz
if [[ "$GLIBC_VERSION" == "2.26" ]]; then
... | Shell | 3 | Hacky-DH/pytorch | .circleci/docker/common/install_glibc.sh | [
"Intel"
] |
@Entity()
export class <$= e.name $> {
<$_ e.data.forEach(function(item) { _$>
<$_ if (item.field === 'id') { _$>
@PrimaryGeneratedColumn()
<$_ } else { _$>
@Column()
<$_ } _$>
<$= item.field $>: <$= item.type $>;
<$_ }) _$>
}
| MTML | 3 | belgac/mtml | examples/db-entity.template.mtml | [
"MIT"
] |
diff --git a/packages/babel-plugin-remove-graphql-queries/package.json b/packages/babel-plugin-remove-graphql-queries/package.json
index 066c17909b..8bf8a69bba 100644
--- a/packages/babel-plugin-remove-graphql-queries/package.json
+++ b/packages/babel-plugin-remove-graphql-queries/package.json
@@ -20,7 +20,7 @@
},
... | Diff | 2 | waltercruz/gatsby | patches/v4/2-gatsby-peerdeps.patch | [
"MIT"
] |
const type = require("./typeof");
it("should not output invalid code", () => {
expect(type).toBe("number");
});
| JavaScript | 3 | 1shenxi/webpack | test/cases/parsing/issue-7318/index.js | [
"MIT"
] |
"Pogoman GO!" by Jack Welch and Ben Collins-Sussman
The story headline is "An interactive satire".
The story genre is "comedy".
The release number is 15.
The story creation year is 2016.
The story description is "The world is full of Pogomen, and now that you don't have a job or family to worry about, you might as wel... | Inform 7 | 5 | sussman/pogoman-go | pogoman-go.inform/Source/story.ni | [
"AAL"
] |
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-JAL-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
... | ObjDump | 3 | DuBirdFly/TinyRISCV_Learn | tests/riscv-compliance/build_generated/rv32i/I-JAL-01.elf.objdump | [
"Apache-2.0"
] |
--TEST--
Test array_keys() function (variation - 5)
--FILE--
<?php
echo "\n*** Testing array_keys() with resource type ***\n";
$resource1 = fopen( __FILE__, "r");
$resource2 = opendir( "." );
/* creating an array with resource types as elements */
$arr_resource = array($resource1, $resource2);
var_dump(array_keys($a... | PHP | 4 | thiagooak/php-src | ext/standard/tests/array/array_keys_variation_005.phpt | [
"PHP-3.01"
] |
xibah-vocun-sogyn-byhen-rivem-hegyh-luneh-dozyr-vatyf-dufid-myxyx
| BitBake | 1 | chrisburr/gct | gsi_openssh/source/regress/unittests/sshkey/testdata/ecdsa_1.fp.bb | [
"Apache-2.0"
] |
%%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 2008-2016. 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
%... | Erlang | 5 | jjhoo/otp | lib/wx/src/wxe_util.erl | [
"Apache-2.0"
] |
---
layout: post
title: "Safely Catching A List By Its Tail"
date: 2013-01-31 16:12
author: Ranjit Jhala
published: true
comments: true
external-url:
categories: measures
demo: lenMapReduce.hs
---
[Previously][ref101] we [saw][ref102] some examples of how refinements
could be used to encode invariants about basic `I... | Literate Haskell | 5 | curiousleo/liquidhaskell | docs/blog/2013-01-31-safely-catching-a-list-by-its-tail.lhs | [
"MIT",
"BSD-3-Clause"
] |
# RUN: llc -o - %s -mtriple=x86_64-- -run-pass=x86-avoid-SFB | FileCheck %s
--- |
; ModuleID = '../test/CodeGen/X86/avoid-sfb-mir.ll'
source_filename = "../test/CodeGen/X86/avoid-sfb-mir.ll"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
%struct.S = typ... | Mirah | 3 | medismailben/llvm-project | llvm/test/CodeGen/X86/avoid-sfb-kill-flags.mir | [
"Apache-2.0"
] |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#include "precomp.hpp"
//#undef CV_CXX11 // debug non C++11 mode
#include "opencv2/core/async.hpp"
#include "opencv2/core/de... | C++ | 5 | xipingyan/opencv | modules/core/src/async.cpp | [
"Apache-2.0"
] |
/*
* Copyright (c) 2004, Technische Universitaet Berlin
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* - Redistributions of source code must retain the above copyright notice,
* thi... | nesC | 5 | mtaghiza/tinyos-main-1 | tos/chips/tda5250/Tda5250Control.nc | [
"BSD-3-Clause"
] |
HTTP/1.1 201 Created
Access-Control-Allow-Methods: POST, DELETE, GET, OPTIONS
Access-Control-Allow-Headers: Content-Type, X-Requested-With, X-PINGOTHER
Access-Control-Allow-Origin: *
Location: http://127.0.0.1:2113/streams/newstream/1
Content-Type: text/plain; charset: utf-8
Server: Mono-HTTPAPI/1.0
Date: Fri, 28 Jun 2... | HTTP | 2 | JarLob/EventStore | samples/http-api/append-event.http | [
"Apache-2.0",
"CC0-1.0"
] |
// aux-build:use-from-trait-xc.rs
extern crate use_from_trait_xc;
pub use use_from_trait_xc::Trait;
fn main() {
match () {
Trait { x: 42 } => () //~ ERROR expected struct, variant or union type, found trait `Trait`
}
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/use/issue-18986.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
/******************************************************************************
* Copyright 2019 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 | 5 | seeclong/apollo | modules/drivers/video/tools/decode_video/frame_processor.h | [
"Apache-2.0"
] |
//
// AUTO-GENERATED FILE, DO NOT MODIFY!
//
// @dart=2.7
// ignore_for_file: unused_import
import 'package:built_value/built_value.dart';
import 'package:built_value/serializer.dart';
part 'api_response.g.dart';
abstract class ApiResponse implements Built<ApiResponse, ApiResponseBuilder> {
@nullable
@Buil... | Dart | 4 | JigarJoshi/openapi-generator | samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/model/api_response.dart | [
"Apache-2.0"
] |
#pragma TextEncoding = "UTF-8"
#pragma rtGlobals=3
#ifndef SIDAMshowProc
#pragma hide = 1
#endif
#include <WMImageInfo>
// Extension of WMImageInfo
//@
// Extension of `WM_ColorTableForImage`.
//
// ## Parameters
// grfName : string
// The name of window.
// imgName : string
// The name of an ... | IGOR Pro | 5 | yuksk/SIDAM | src/SIDAM/func/SIDAM_Utilities_ImageInfo.ipf | [
"MIT"
] |
Added ability to use contextvars in logger
| Cucumber | 3 | Qix-/aiohttp | CHANGES/3787.feature | [
"Apache-2.0"
] |
varying vec2 vFilterCoord;
varying vec2 vTextureCoord;
uniform vec2 scale;
uniform mat2 rotation;
uniform sampler2D uSampler;
uniform sampler2D mapSampler;
uniform highp vec4 inputSize;
uniform vec4 inputClamp;
void main(void)
{
vec4 map = texture2D(mapSampler, vFilterCoord);
map -= 0.5;
map.xy = scale * inp... | GLSL | 4 | arthuro555/pixi.js | packages/filters/filter-displacement/src/displacement.frag | [
"MIT"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 4 | sbj42/vscode | src/vs/workbench/services/search/node/textSearchManager.ts | [
"MIT"
] |
#include <oxstd.h>
#import <maximize>
static decl y; // count dep. vbl.
static decl x; // used to get starting values in negbin and logit
static decl add_up; // sum obj. or not
static decl negbin_type;
#include "NegBinSNP.ox"
#include "MLE.ox"
main()
{
decl data, n, model, theta, names, title, obj_value... | Ox | 4 | nilshg/Econometrics | Examples/SNP-MuPAD/EstimateNBSNP.ox | [
"MIT"
] |
#*****************************************************************************
# *
# Make file for VMS *
# Author : J.Jansen (joukj@hrem.nano.tudelft.nl) *
... | Module Management System | 4 | gamekit-developers/gamekit | wxWidgets-2.9.1/src/unix/descrip.mms | [
"Zlib",
"MIT"
] |
@prefix : <http://www.w3.org/2013/TurtleTests/> .
:xyz\~ :abc\.: : .
| Turtle | 0 | joshrose/audacity | lib-src/lv2/serd/tests/TurtleTests/turtle-syntax-pname-esc-03.ttl | [
"CC-BY-3.0"
] |
/*********************************************************
* Copyright (C) 2010-2016 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation version 2.1 an... | Logos | 4 | mrehman29/open-vm-tools | open-vm-tools/libguestlib/guestlibIoctl.x | [
"X11"
] |
#world {
polygon-fill: green;
line-color: hsl(30, 40%, 90%);
}
| CartoCSS | 1 | nimix/carto | test/rendering/layer_properties.mss | [
"Apache-2.0"
] |
RangeFinderState struct #RefType {
from int
to int
}
RangeFinder {
find(a Node) {
s := new RangeFinderState { from: int.maxValue, to: int.minValue }
checkAny(s, a)
assert(s.from <= s.to)
return IntRange(s.from, s.to)
}
checkAny(s RangeFinderState, a Node) {
match a {
CodeUnit: checkCodeUnit(s, a)
... | mupad | 3 | jturner/muon | compiler/range_finder.mu | [
"MIT"
] |
[3;38;2;102;217;239mmessage[0m[38;2;248;248;242m [0m[4;38;2;102;217;239mRequest[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
[38;2;248;248;242m [0m[3;38;2;102;217;239menum[0m[38;2;248;248;242m [0m[38;2;166;226;46mConfigFormat[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
[38;2;248;248;242m ... | Protocol Buffer | 4 | JesseVermeulen123/bat | tests/syntax-tests/highlighted/Protocol Buffer/vyconf.proto | [
"Apache-2.0",
"MIT"
] |
/*
* TypeScript definitions to Java translator - http://www.jsweet.org
* Copyright (C) 2015 CINCHEO SAS <renaud.pawlak@cincheo.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; eithe... | Lex | 4 | norzak/jsweet | candy-generator/src/main/java/org/jsweet/input/typescriptdef/parser/typescriptdef.lex | [
"Apache-2.0"
] |
xetag-todiz-mifah-torec-mynyv-cyvit-gopon-pygag-rupic-cenav-bexax
| BitBake | 0 | chrisburr/gct | gsi_openssh/source/regress/unittests/sshkey/testdata/dsa_1.fp.bb | [
"Apache-2.0"
] |
DROP TABLE IF EXISTS foo;
CREATE TABLE foo (
id INTEGER NOT NULL AUTO_INCREMENT,
title VARCHAR(250) NOT NULL,
body VARCHAR(250),
PRIMARY KEY (id)
); | SQL | 3 | DBatOWL/tutorials | spring-boot-modules/spring-boot-springdoc/src/main/resources/schema.sql | [
"MIT"
] |
const Builder = @import("std").build.Builder;
pub fn build(b: *Builder) void {
const obj = b.addObject("test", "test.zig");
const test_step = b.step("test", "Test the program");
test_step.dependOn(&obj.step);
}
| Zig | 4 | aruniiird/zig | test/standalone/issue_339/build.zig | [
"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... | Haxe | 4 | Jimexist/thrift | lib/haxe/test/src/MultiplexTest.hx | [
"Apache-2.0"
] |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/structs/DoubleEndedQueue.sol";
// Bytes32Deque
contract Bytes32DequeMock {
using DoubleEndedQueue for DoubleEndedQueue.Bytes32Deque;
event OperationResult(bytes32 value);
DoubleEndedQueue.Bytes32Deque private _vector;
functio... | Solidity | 4 | naveenbalaji10/openzeppelin-contracts | contracts/mocks/DoubleEndedQueueMock.sol | [
"MIT"
] |
Sets
* i represent the generation source (nuclear or CCGT)
i generation source
*The constant parameters
j parameter
*t represents the time horizion (1 hour interval for a period of 1 year)
t time
ls The column labels for gemerator para
lp The column labels for time profiles ;
Parameters
*The array for all the generat... | GAMS | 4 | mdhillmancmcl/TheWorldAvatar-CMCL-Fork | JPS_POWSYS/workingdir/prllelwrld_dynamicvar.gms | [
"MIT"
] |
// Copyright (c) Microsoft Corporation
// Licensed under the MIT license.
#include "pch.h"
#include <LibraryResources.h>
#include <WilErrorReporting.h>
// Note: Generate GUID using TlgGuid.exe tool
TRACELOGGING_DEFINE_PROVIDER(
g_hSettingsModelProvider,
"Microsoft.Windows.Terminal.Setting.Model",
... | C++ | 4 | hessedoneen/terminal | src/cascadia/TerminalSettingsModel/init.cpp | [
"MIT"
] |
package gw.util.time
uses java.time.LocalTime
uses java.time.LocalDate
uses java.time.LocalDateTime
enhancement CoreLocalTimeEnhancement : LocalTime
{
function postfixBind( date: LocalDate ) : LocalDateTime {
return LocalDateTime.of( date, this )
}
} | Gosu | 4 | dmcreyno/gosu-lang | gosu-core-api/src/main/gosu/gw/util/time/CoreLocalTimeEnhancement.gsx | [
"Apache-2.0"
] |
<cfcomponent output="no">
<cffunction name="init" output="false" returntype="any">
<cfscript>
variables.instance = structNew();
return this;
</cfscript>
</cffunction>
</cfcomponent> | ColdFusion CFC | 4 | jmullercuber/atom-beautify | examples/nested-jsbeautifyrc/coldfusion/expected/test.cfc | [
"MIT"
] |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2011
# Maredudd ap Gwyndaf <maredudd@maredudd.com>, 2014
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-... | Gettext Catalog | 3 | jpmallarino/django | django/contrib/contenttypes/locale/cy/LC_MESSAGES/django.po | [
"BSD-3-Clause",
"0BSD"
] |
" Vim filetype plugin file
" Language: Haskell
" Maintainer: Daniel Campoverde <alx@sillybytes.net>
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
" Latest Revision: 2018-08-27
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
let s:cpo_save = &cpo
set cpo&vim
let b... | VimL | 3 | uga-rosa/neovim | runtime/ftplugin/haskell.vim | [
"Vim"
] |
namespace java thrift.test
namespace cpp thrift.test
// more tests on double constants (precision and type checks)
const double DOUBLE_ASSIGNED_TO_INT_CONSTANT_TEST = 1
const double DOUBLE_ASSIGNED_TO_NEGATIVE_INT_CONSTANT_TEST = -100
const double DOUBLE_ASSIGNED_TO_LARGEST_INT_CONSTANT_TEST = 9223372036854775807
cons... | Thrift | 3 | Jimexist/thrift | test/DoubleConstantsTest.thrift | [
"Apache-2.0"
] |
# Author: Jason Batchelor
# Company: Emerson
# Description: Simple JQ to see if more than ten Yara signatures hit on something.
.Summary.Yara | length > 10
| JSONiq | 2 | akniffe1/fsf | fsf-server/jq/more_than_ten_yara.jq | [
"Apache-2.0"
] |
perl read_file_score32.pl 9059 9385 table_5_8_corner_struct
move agast_new.txt agast_score_table.txt
perl read_file_score32.pl 2215 3387 table_7_12d_corner_struct
copy /A agast_score_table.txt + agast_new.txt agast_score_table.txt
del agast_new.txt
perl read_file_score32.pl 3428 9022 table_7_12s_corner_struct
copy /A a... | Batchfile | 1 | thisisgopalmandal/opencv | modules/features2d/doc/run_agast_tables.bat | [
"BSD-3-Clause"
] |
from datetime import datetime
import numpy as np
import pytest
from pandas import (
DataFrame,
Series,
bdate_range,
notna,
)
@pytest.fixture
def series():
"""Make mocked series as fixture."""
arr = np.random.randn(100)
locs = np.arange(20, 40)
arr[locs] = np.NaN
series = Series(a... | Python | 5 | ajayiagbebaku/NFL-Model | venv/Lib/site-packages/pandas/tests/window/moments/conftest.py | [
"MIT"
] |
This is an example A
Questo è un esempio A
1279257697000,en it | ColdFusion CFC | 1 | Centaurioun/modernmt | test/testcases/res/privacy/Memory-A.cfc | [
"Apache-2.0"
] |
{{! Copyright (c) Avanade. Licensed under the MIT License. See https://github.com/Avanade/Beef }}
/*
* This file is automatically generated; any changes will be lost.
*/
#nullable enable
#pragma warning disable
using Beef;
using Beef.Data.Database;
using Beef.Data.Database.Cdc;
using Beef.Events;
using Beef.Mappe... | Harbour | 5 | ualehosaini/Beef | tools/Beef.CodeGen.Core/Templates/DbCdcData_cs.hb | [
"MIT"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_currentUnit
Author: NKey
Return current player unit (player or remote controlled by Zeus).
Arguments:
None
Return Value:
current unit <OBJECT>
Example:
call TFAR_fnc_currentUnit;
Public: Yes
*/
missionNamespace getVariable ["bis_fnc_mo... | SQF | 4 | MrDj200/task-force-arma-3-radio | addons/core/functions/fnc_currentUnit.sqf | [
"RSA-MD"
] |
@program cmd-pose.muf
1 1000 d
i
( cmd-pose.muf by Natasha@HLM
A pose program distilled from Natasha@HLM's say program.
Copyright 2002-2003 Natasha@HLM. Copyright 2002-2003 Here Lie Monsters.
"@view $box/mit" for license information.
)
$include $lib/ignore
$include $lib/strings
$author Natasha Snunkmeox <natmeo... | MUF | 4 | natmeox/hlm-suite | cmd-pose.muf | [
"MIT"
] |
use "process"
class iso _BuildProcessNotify is ProcessNotify
let _tester: _Tester tag
var _done: Bool
new iso create(tester: _Tester tag) =>
_tester = tester
_done = false
fun ref stdout(p: ProcessMonitor ref, data: Array[U8] iso) =>
_tester.append_stdout(consume data)
fun ref stderr(p: Proces... | Pony | 4 | rtpax/ponyc | test/libponyc-run/runner/_build_process_notify.pony | [
"BSD-2-Clause"
] |
/*
Maya Camera Importer/Exporter
This script let's you import/export camera between 3dsmax and Maya.
It goes under the file action item category.
maxscript written by Laszlo Sebo (lsebo@axelero.hu), 2002
melscript written by Imre Lovasz
*/
macroscript MayaCamera
category:"File"
tooltip:"Import/Export... | MAXScript | 3 | 89096000/MaxScript | 3D/3ds2ae/02_resources/max scripts/max_camera_/maya_camera_export.mcr | [
"MIT"
] |
<?xml version="1.0" encoding="UTF-8"?>
<results>
<testsuite name="com.example.lib.TestCommonCode" tests="2" skipped="0" failures="0" errors="0" timestamp="..." hostname="..." time="...">
<properties />
<testcase name="testId[js, node]" classname="com.example.lib.TestCommonCode" time="..." />
<testcase nam... | XML | 2 | Mu-L/kotlin | libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/new-mpp-lib-with-tests/TEST-all.xml | [
"ECL-2.0",
"Apache-2.0"
] |
---
hello: world
---
<html><head></head><body></body></html>
| HTML | 0 | fuelingtheweb/prettier | tests/html_yaml/yaml.html | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.