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 |
|---|---|---|---|---|---|
(defmacro iff (a b c)
`(if (== ,a 'false) ,c ,b))
(defmacro orr
((cons e es) `(iff ,e ,e (orr ,@es)))
(() `'false))
(defmacro andd
((cons e '()) `(iff ,e ,e 'false))
((cons e es) `(iff ,e (andd ,@es) 'false))
(() `'true))
| LFE | 4 | pzel/mkr | include/mkr-bool.lfe | [
"MIT"
] |
subroutine xsetun (lun)
c
c this routine resets the logical unit number for messages.
c
integer lun, mesflg, lunit
common /eh0001/ mesflg, lunit
c
if (lun .gt. 0) lunit = lun
return
c----------------------- end of subroutine xsetun ----------------------
end
| FORTRAN | 4 | Ennosigaeon/scipy | scipy/integrate/odepack/xsetun.f | [
"BSD-3-Clause"
] |
- return unless can_update_default_branch_protection?(group)
= render 'shared/default_branch_protection', f: f, selected_level: group.default_branch_protection
| Haml | 2 | glimmerhq/glimmerhq | app/views/groups/settings/_default_branch_protection.html.haml | [
"MIT"
] |
{
"config": {
"abort": {
"already_configured": "\uacc4\uc815\uc774 \uc774\ubbf8 \uad6c\uc131\ub418\uc5c8\uc2b5\ub2c8\ub2e4"
},
"error": {
"db_url_invalid": "\ub370\uc774\ud130\ubca0\uc774\uc2a4 URL\uc774 \uc798\ubabb\ub418\uc5c8\uc2b5\ub2c8\ub2e4.",
"query... | JSON | 2 | liangleslie/core | homeassistant/components/sql/translations/ko.json | [
"Apache-2.0"
] |
<?xml version='1.0' encoding='utf-8'?>
<?python
from KidKit.Examples.KidExamplePage import KidExamplePage
hook = KidExamplePage.writeContent
?>
<div style="text-align:center"
xmlns:py="http://purl.org/kid/ns#">
<?python
# Note that the above div element is the root element of this page,
# because it is embedded in ... | Genshi | 4 | PeaceWorksTechnologySolutions/w4py | KidKit/Examples/SimpleForm.kid | [
"MIT"
] |
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: qmake-utils.eclass
# @MAINTAINER:
# qt@gentoo.org
# @AUTHOR:
# Davide Pesavento <pesa@gentoo.org>
# @BLURB: Common functions for qmake-based packages.
# @DESCRIPTION:
# Utility eclass providing wrapper... | Gentoo Eclass | 5 | NighttimeDriver50000/Sabayon-Packages | local_overlay/eclass/qmake-utils.eclass | [
"MIT"
] |
prelude
constant int : Type.{1}
constant nat : Type.{1}
namespace int
constant plus : int → int → int
end int
namespace nat
constant plus : nat → nat → nat
end nat
open int nat
constants a b : int
#check plus a b
constant f : int → int → int
constant g : nat → nat → int
notation A `+`:65 B:65 := f A (g B B)
const... | Lean | 4 | ericrbg/lean | tests/lean/run/t3.lean | [
"Apache-2.0"
] |
Red [
Title: "Red/System path! datatype test script"
Author: "Nenad Rakocevic & Peter W A Wood"
File: %char-test.red
Version: "0.1.0"
Tabs: 4
Rights: "Copyright (C) 2011-2015 Red Foundation. All rights reserved."
License: "BSD-3 - https://github.com/red/red/blob/origin/BSD-3-License.txt"
]
#include %../... | Red | 5 | GalenIvanov/red | tests/source/units/path-test.red | [
"BSL-1.0",
"BSD-3-Clause"
] |
0 reg32_t "dword"
1 code_t "proc*"
2 num32_t "int"
3 uint32_t "unsigned int"
4 num8_t "char"
3 uint32_t "size_t"
5 ptr(struct(0:num32_t,4:ptr(num8_t),8:ptr(num8_t),12:ptr(num8_t),16:ptr(num8_t),20:ptr(num8_t),24:ptr(num8_t),28:ptr(num8_t),32:ptr(num8_t),36:ptr(num8_t),40:ptr(num8_t),44:ptr(num8_t),48:ptr(struct(0:ptr(T... | BlitzBasic | 2 | matt-noonan/retypd-data | data/date.decls | [
"MIT"
] |
/*
* Copyright (c) 2021, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibTest/TestCase.h>
#include <assert.h> // FIXME: Remove when `_abort` is moved to <stdlib.h>
#include <signal.h>
#include <stdlib.h>
TEST_CASE(_abort)
{
EXPECT_CRASH("This should _abort", [] {
... | C++ | 4 | densogiaichned/serenity | Tests/LibC/TestAbort.cpp | [
"BSD-2-Clause"
] |
/*
* Copyright (c) 2009 Communication Group and Eislab at
* Lulea University of Technology
*
* Contact: Laurynas Riliskis, LTU
* Mail: laurynas.riliskis@ltu.se
* All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follow... | nesC | 4 | mtaghiza/tinyos-main-1 | tos/chips/m16c60/pins/HplM16c60GeneralIOPinPRC2P.nc | [
"BSD-3-Clause"
] |
package com.baeldung.saml.config;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springfra... | Java | 4 | DBatOWL/tutorials | spring-security-modules/spring-security-saml/src/main/java/com/baeldung/saml/config/WebSecurityConfig.java | [
"MIT"
] |
function omf.cli.new
if test (count $argv) -ne 2
echo (omf::err)"Package type or name missing"(omf::off) >&2
return $OMF_MISSING_ARG
end
omf.packages.new $argv
end
| fish | 4 | codetriage-readme-bot/oh-my-fish | pkg/omf/functions/cli/omf.cli.new.fish | [
"MIT"
] |
move -5,0,0
r: map(wave(3000),0,1,20,50)
rotate r, 0,1,0
move 0,rand(-5,5),rand(-5,5)
DECAY: 0.005
particle 0.1
box 0.05
end | Cycript | 3 | marcinbiegun/creativecoding-sketches | Cyril/data/code_retro/4.cy | [
"MIT"
] |
/home/spinalvm/hdl/riscv-compliance/work//C.XOR.elf: file format elf32-littleriscv
Disassembly of section .text.init:
80000000 <_start>:
80000000: 0001 nop
80000002: 0001 nop
80000004: 0001 nop
80000006: 0001 nop
80000008: 0001 nop
... | ObjDump | 3 | cbrune/VexRiscv | src/test/resources/asm/C.XOR.elf.objdump | [
"MIT"
] |
// Copyright 2010-2014 RethinkDB, all rights reserved.
#ifndef RDB_PROTOCOL_SHARDS_HPP_
#define RDB_PROTOCOL_SHARDS_HPP_
#include <algorithm>
#include <limits>
#include <map>
#include <utility>
#include <vector>
#include "arch/runtime/coroutines.hpp"
#include "btree/keys.hpp"
#include "btree/types.hpp"
#include "cont... | C++ | 4 | zadcha/rethinkdb | src/rdb_protocol/shards.hpp | [
"Apache-2.0"
] |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This file is part of Logtalk <https://logtalk.org/>
% Copyright (c) 2010, Victor Lagerkvist
% SPDX-License-Identifier: BSD-3-Clause
%
% Redistribution and use in source and binary forms, with or without
% modification, are permitted pr... | Logtalk | 5 | PaulBrownMagic/logtalk3 | contributions/verdi_neruda/magic.lgt | [
"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 may not ... | Pascal | 4 | Jimexist/thrift | lib/delphi/test/Performance/PerfTests.pas | [
"Apache-2.0"
] |
// Copyright 2012 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 ppc64 || ppc64le
// +build ppc64 ppc64le
#include "textflag.h"
#include "funcdata.h"
#include "asm_ppc64x.h"
// The frames of each of the two funct... | GAS | 3 | rleungx/go | src/reflect/asm_ppc64x.s | [
"BSD-3-Clause"
] |
.bd-backers {
--spacing: 1.5rem;
padding-bottom: var(--spacing);
padding-top: var(--spacing);
}
.bd-backers-platforms {
@extend %bd-backers-section;
--spacing: 1.5rem;
padding: var(--spacing);
text-align: center;
}
.bd-backers-platform {
@extend %center;
.bd-backers-platform-logo {
@extend %ce... | SCSS | 4 | kalpitzeta/bulma | docs/_sass/pages/backers.scss | [
"MIT"
] |
a { value: 10\,x } | CSS | 0 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/uxHrqNkMo_2PTuF8sIRQxA/input.css | [
"Apache-2.0"
] |
Library: unicode-data-generator
Files: library
ucd-constants
ucd-character
ucd-block
ucd-database
ucd-general-category
ucd-property
generate-names
unicode-data-generator
| Dylan | 4 | kryptine/opendylan | sources/app/unicode-data-generator/unicode-data-generator.lid | [
"BSD-2-Clause"
] |
export default {
warnings: [
{
code: 'css-unused-selector',
end: {
character: 111,
column: 21,
line: 8
},
frame: `
6: color: red;
7: }
8: a:global(.foo) > div {
^
9: color: red;
10: }
`,
message: 'Unused CSS selector "a:global(.foo) > div"',
... | JavaScript | 4 | vatro/svelte | test/css/samples/global-with-child-combinator-2/_config.js | [
"MIT"
] |
#include "caffe2/operators/sin_op.h"
#include <algorithm>
#include <functional>
#include "caffe2/core/context_gpu.h"
namespace caffe2 {
namespace {
template <typename T>
__global__ void
SinGradientCUDAKernel(const int N, const T* dY, const T* X, T* dX) {
CUDA_1D_KERNEL_LOOP(i, N) {
#if __CUDA_ARCH__ >= 350
d... | Cuda | 4 | Hacky-DH/pytorch | caffe2/operators/sin_op.cu | [
"Intel"
] |
/**
* @hint test component
*/
component {
/**
* @hint demo function validate
*/
public struct function validate( foo ) { //cflint ignore:ARG_TYPE_MISSING,ARG_DEFAULT_MISSING
// validation logic
if( isNull( arguments.foo ) ) {
arguments.foo = '';
}
retur... | ColdFusion CFC | 4 | tonym128/CFLint | src/test/resources/com/cflint/tests/Ignores/args/test_497.cfc | [
"BSD-3-Clause"
] |
;; -*- lexical-binding: t; no-byte-compile: t; -*-
;;; lang/haskell/doctor.el
(assert! (or (not (featurep! +lsp))
(featurep! :tools lsp))
"This module requires (:tools lsp)")
(unless (executable-find "cabal")
(warn! "Couldn't find cabal. haskell-mode may have issues."))
(unless (executable-fi... | Emacs Lisp | 3 | leezu/doom-emacs | modules/lang/haskell/doctor.el | [
"MIT"
] |
.video-modal {
height: calc(100vh - 20px);
}
@media (min-width: 768px) {
.video-modal {
width: 90%;
height: calc(100vh - 60px);
}
}
.video-modal .modal-content {
height: 100%;
display: flex;
flex-direction: column;
}
.video-modal-body {
flex-grow: 1;
display: flex;
flex-direction: column;
}... | CSS | 4 | fcastillo-serempre/freeCodeCamp | client/src/templates/Challenges/components/video-modal.css | [
"BSD-3-Clause"
] |
package gw.specContrib.classes.enhancements.shadowingMore.javaVsGosu.fieldsVsProperties
enhancement Errant_ShadowingJavaFieldsWithPropertiesInEnhancements: Errant_JavaFieldsVsProperties {
//IDE-644
property get FieldInternal(): String {
return null
}
property get FieldPrivate(): String {
return null
... | Gosu | 3 | tcmoore32/sheer-madness | gosu-test/src/test/gosu/gw/specContrib/classes/enhancements/shadowingMore/javaVsGosu/fieldsVsProperties/Errant_ShadowingJavaFieldsWithPropertiesInEnhancements.gsx | [
"Apache-2.0"
] |
; inherits: cpp
[ "<<<" ">>>" ] @punctuation.bracket
[
"__local__"
"__shared__"
"__global__"
"__host__"
"__device__"
"__forceinline__"
"__restrict__"
"__launch_bounds__"
] @keyword
| Scheme | 2 | hmac/nvim-treesitter | queries/cuda/highlights.scm | [
"Apache-2.0"
] |
# INI with as many tricky parts as possible
# Most of them could not be used before 3.2
# This will be parsed with the following options
# delimiters = {'='}
# comment_prefixes = {'#'}
# allow_no_value = True
[DEFAULT]
go = %(interpolate)s
[strange]
values = that are indented # and end with ... | Groff | 4 | shawwn/cpython | Lib/test/cfgparser.3 | [
"0BSD"
] |
;; CREDO model simulation
;; by Zvi Avraham <zvi@nivertech.com>
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Compound Interest formula
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;A = P*(1+r/n)^(n*t)
;A/P = (1+r/n)^(n*t)
;A/P = (1+r/365)^(365*... | NetLogo | 5 | tabookey/credo | credo.nlogo | [
"MIT"
] |
package de.jflex.testcase.six_digit_unicode_escape;
%%
%unicode
%%
"one two three\UFFFFFFabc" { }
[^] { }
| JFlex | 3 | WeDoSoftware/jflex | javatests/de/jflex/testcase/six_digit_unicode_escape/SixDigitUnicodeEscape-f-2.flex | [
"BSD-3-Clause"
] |
$macro forsameclt(action,clt) \
$label loop0
$if "a%1"=="a" $goto loop1
if(sameas(&clt,'%1'), &action(%1)); \
$shift
$goto loop0
$label loop1
; | GAMS | 3 | witch-team/witchmodel | algo/forsameclt.gms | [
"Apache-2.0"
] |
test_that("unreferenced observers are garbage collected", {
vals_removed <- FALSE
obs_removed <- FALSE
vals <- reactiveValues(A=1)
obs <- observe({ vals$A })
# These are called when the objects are garbage-collected
reg.finalizer(.subset2(vals,'impl'), function(e) vals_removed <<- TRUE)
reg.finalizer(o... | R | 5 | d-morrison/shiny | tests/testthat/test-gc.r | [
"Apache-2.0"
] |
<?xml version="1.0"?>
<rdf:RDF xmlns="http://purl.obolibrary.org/obo/disdriv.owl/"
xml:base="http://purl.obolibrary.org/obo/disdriv.owl/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:terms="http://purl.org/dc/terms/"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:oboInOwl="ht... | Web Ontology Language | 5 | cthoyt/HumanDiseaseOntology | src/ontology/imports/disease_drivers.owl | [
"CC0-1.0"
] |
[{
"@id": "foo:bar-id",
"@type": ["foo:bar-type"],
"foo:bar": [{"@value": "is an absolute iri property"}],
"http://schema.org/term": [{"@value": "is schema.org/term"}],
"http://schema.org/:fish": [{"@value": "is schema.org/:fish"}]
}] | JSONLD | 3 | donbowman/rdflib | test/jsonld/1.1/expand/0118-out.jsonld | [
"BSD-3-Clause"
] |
--TEST--
curl_strerror basic test
--EXTENSIONS--
curl
--FILE--
<?php
var_dump(strtolower(curl_strerror(CURLE_OK)));
var_dump(strtolower(curl_strerror(CURLE_UNSUPPORTED_PROTOCOL)));
var_dump(strtolower(curl_strerror(-1)));
?>
--EXPECT--
string(8) "no error"
string(20) "unsupported protocol"
string(13) "unknown error"
| PHP | 3 | NathanFreeman/php-src | ext/curl/tests/curl_strerror_001.phpt | [
"PHP-3.01"
] |
/* Copyright 2019 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 | EricRemmerswaal/tensorflow | tensorflow/compiler/tf2xla/kernels/tridiagonal_ops.cc | [
"Apache-2.0"
] |
(* ****** ****** *)
#include
"share/atspre_staload.hats"
#include
"share/atspre_staload_libats_ML.hats"
(* ****** ****** *)
(*
fun
echo() = let
fun
loop(xs: stream_vt(string)): void =
(
case+ !xs of
| ~stream_vt_nil() => ()
| ~stream_vt_cons(x, xs) => (println!(x); loop(xs))
)
in
loop(streamize... | ATS | 5 | ats-lang/ATS-CodeBook | RECIPE/ReadFromSTDIN/ReadFromSTDIN.dats | [
"MIT"
] |
<h1>${message}</h1> | FreeMarker | 0 | ClemensElflein/javalin | javalin/src/test/resources/templates/freemarker/test.ftl | [
"Apache-2.0"
] |
#![allow(unused_assignments)]
// expect-exit-status-101
fn might_panic(should_panic: bool) {
if should_panic {
println!("panicking...");
panic!("panics");
} else {
println!("Don't Panic");
}
}
fn main() -> Result<(), u8> {
let mut countdown = 10;
while countdown > 0 {
... | Rust | 4 | mbc-git/rust | src/test/run-make-fulldeps/coverage/panic_unwind.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
// build-pass
#![feature(generic_const_exprs)]
#![allow(incomplete_features)]
pub trait TraitWithConst {
const SOME_CONST: usize;
}
pub trait OtherTrait: TraitWithConst {
fn some_fn(self) -> [u8 ; <Self as TraitWithConst>::SOME_CONST];
}
impl TraitWithConst for f32 {
const SOME_CONST: usize = 32;
}
imp... | Rust | 3 | ohno418/rust | src/test/ui/const-generics/issues/issue-87470.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
@import "./other.scss";
body {
color: red;
}
| CSS | 3 | idanilt/parcel | packages/core/integration-tests/test/integration/sourcemap-sass-imported/style.css | [
"MIT"
] |
FROM anapsix/alpine-java:8_server-jre_unlimited
MAINTAINER jeecgos@163.com
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN mkdir -p /jeecg-boot/config/jeecg/
WORKDIR /jeecg-boot
EXPOSE 8080
ADD ./src/main/resources/jeecg ./config/jeecg
ADD ./target/jeecg-boot-module-system-3.0.jar ./
CMD sleep 60... | Dockerfile | 4 | SongFuKangM/jeecg-boot | jeecg-boot/jeecg-boot-module-system/Dockerfile | [
"Apache-2.0"
] |
# Test a VM relative jump with an offset larger then 32767 instructions.
import macros
static:
var a = 0
macro foo(): untyped =
let s = newStmtList()
for i in 1..6554:
s.add nnkCommand.newTree(ident("inc"), ident("a"))
quote do:
if true:
`s`
foo()
| Nimrod | 3 | JohnAD/Nim | tests/vm/tfarjump.nim | [
"MIT"
] |
.style {
grid-template-columns: minmax(auto, lorem);
}
| CSS | 0 | vjpr/swc | css/parser/tests/errors/rome/invalid/grid/minmax/.incorrect-ident/input.css | [
"Apache-2.0",
"MIT"
] |
// Tic Tac Toe AI with Minimax Algorithm
// The Coding Train / Daniel Shiffman
// https://thecodingtrain.com/CodingChallenges/154-tic-tac-toe-minimax.html
// https://youtu.be/I64-UTORVfU
// https://editor.p5js.org/codingtrain/sketches/0zyUhZdJD
// Ported to Processing4 by Spencer Stith <github.com/spencerstith>
impor... | Processing | 5 | vinnyI-afk/website | CodingChallenges/CC_154_Tic_Tac_Toe_Minimax/Processing/CC_154_Tic_Tac_Toe_Minimax/Minimax.pde | [
"MIT"
] |
// @strict: true
// @target: esnext
class Test1<T> {
get foo(): T { return null as any }
set foo(s: T | undefined ) {
}
}
const s = new Test1<string>();
s.foo = undefined;
s.foo = "hello";
s.foo = 42;
| TypeScript | 3 | monciego/TypeScript | tests/cases/compiler/divergentAccessorsTypes2.ts | [
"Apache-2.0"
] |
function omf.packages.run_hook -a path hook
set -l hook_script "$path/hooks/$hook.fish"
set package (basename $path)
if test -e "$hook_script"
pushd $path
source "$hook_script"
set -l code $status
popd
return $code
end
end
| fish | 4 | codetriage-readme-bot/oh-my-fish | pkg/omf/functions/packages/omf.packages.run_hook.fish | [
"MIT"
] |
#! /bin/tcsh -f
#set versiontag = 'v2'
set versiontag = $1
cmsRun SiPixelTemplateDBObjectUploader_cfg.py 0 $versiontag
cmsRun SiPixelTemplateDBObjectUploader_cfg.py 2 $versiontag
cmsRun SiPixelTemplateDBObjectUploader_cfg.py 3 $versiontag
cmsRun SiPixelTemplateDBObjectUploader_cfg.py 3.5 $versiontag
cmsRun SiPixelTem... | Tcsh | 2 | ckamtsikis/cmssw | CondTools/SiPixel/test/makeAllTemplates.csh | [
"Apache-2.0"
] |
public protocol P {}
public struct HasUnavailableConformance {}
@available(*, unavailable)
extension HasUnavailableConformance : P {}
public struct HasConditionallyAvailableConformance {}
@available(macOS 100, *)
extension HasConditionallyAvailableConformance : P {}
public struct HasAlwaysAvailableConformance {}
... | Swift | 3 | gandhi56/swift | test/Sema/Inputs/conformance_availability_overlapping_other.swift | [
"Apache-2.0"
] |
# Also used by idlelib.test_idle.test_config.
[Foo Bar]
foo=newbar
| Groff | 0 | shawwn/cpython | Lib/test/cfgparser.1 | [
"0BSD"
] |
"""
using
"""
import Boo.Lang.Compiler
import Boo.Lang.Compiler.Ast
macro printParentMacroName:
parentName = printParentMacroName.GetAncestor[of MacroStatement]().Name.ToString()
yield [| print $parentName |]
using null:
printParentMacroName
| Boo | 2 | popcatalin81/boo | tests/testcases/macros/macro-expansion-order-1.boo | [
"BSD-3-Clause"
] |
sleep X
t app appmode photo_burst
sleep 1
t app burst_settings 30-2
sleep 1
t app button shutter PR
sleep 9
t app appmode photo_burst
d.\autoexec.ash
REBOOT yes
| AGS Script | 2 | waltersgrey/autoexechack | BurstHacks/BurstLoop/30-2/Hero3PlusBlack/autoexec.ash | [
"MIT"
] |
/*
* All data present in IS2Media can be accessed like so:
*
* var thingYouWant = IS2Media.<insert_thing_here>();
*
* You will need to setup IS2Media with a function to call whenever data is updated by InfoStats 2,
* along with a second optional function to call when media changes position in playback.
* To do ... | Cycript | 5 | Matchstic/InfoStats2 | Scripts/Media/IS2Media.cy | [
"BSD-2-Clause"
] |
CR_TEST_LIST_BEGIN()
CR_TEST(return_version)
CR_TEST(static_local_state_int)
CR_TEST(static_global_state_int)
CR_TEST(heap_data_alloc)
CR_TEST(heap_data_free)
CR_TEST(crash_load)
CR_TEST(crash_update)
CR_TEST(crash_unload)
CR_TEST_LIST_END() | Logos | 2 | v-borg/cr | tests/test_basic.x | [
"MIT"
] |
syntax = "proto3";
package proto_example;
import public "orders/service.proto";
| Protocol Buffer | 3 | SuperHuangXu/nest | integration/microservices/src/grpc-advanced/proto/root.proto | [
"MIT"
] |
// run-pass
use std::mem;
// Univariant C-like enum
#[repr(i32)]
enum Univariant {
X = 17
}
#[repr(u16)]
enum UnivariantWithoutDescr {
Y
}
#[repr(u8)]
enum UnivariantWithData {
Z(u8),
}
pub fn main() {
{
assert_eq!(4, mem::size_of::<Univariant>());
assert_eq!(17, Univariant::X as i3... | Rust | 4 | Eric-Arellano/rust | src/test/ui/structs-enums/enum-univariant-repr.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="/node_modules/jquery/dist/jquery.js"></script>
</head>
<body>
<button id="request">request</button>
<div id="result"></div>
<script type="text/javascript">
$(function(){
$("button#request").click(function(){
... | HTML | 4 | justinforbes/cypress | packages/driver/cypress/fixtures/request.html | [
"MIT"
] |
= Documentation for Path Class Methods Feature
The path class methods feature allows for calling the *_path and *_url
methods directly on the class, as opposed to an instance of the class.
In order for the *_url methods to be used, you must use the base_url
configuration so that determining the base URL doesn't depen... | RDoc | 2 | loranger32/rodauth | doc/path_class_methods.rdoc | [
"MIT"
] |
(module go racket
(module defs typed/racket
(provide (all-defined-out))
(: neg-flonum Negative-Flonum)
(: pos-flonum Positive-Flonum)
(: non-neg-flonum Nonnegative-Flonum)
(: non-pos-flonum Nonpositive-Flonum)
(: neg-ineact-real Negative-Inexact-Real)
(: pos-ineact-real Positive-Inexact... | Racket | 5 | SnapCracklePopGone/typed-racket | typed-racket-test/succeed/pr13464.rktl | [
"Apache-2.0",
"MIT"
] |
(function(utils) {
utils.constants = {
APPID: NSBundle.mainBundle.bundleIdentifier, //id
APPPATH: NSBundle.mainBundle.bundlePath, //资源路径
APPHOME: NSHomeDirectory(), //沙盒
APPDOC: NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)[0],
... | Cycript | 4 | smola/language-dataset | data/github.com/blaceman/myRe/df1c6856db145f16c0277f14726c3986388874dc/cy/myMd.cy | [
"MIT"
] |
#world {
line-width: 20% + 2px;
}
| CartoCSS | 0 | nimix/carto | test/errorhandling/bad_op.mss | [
"Apache-2.0"
] |
source "../tests/includes/init-tests.tcl"
test "Create a cluster with two single-node shards" {
create_cluster 2 0
}
test "Cluster should start ok" {
assert_cluster_state ok
}
proc number_of_peers {id} {
expr [llength [get_cluster_nodes $id]] - 1
}
proc number_of_links {id} {
llength [get_cluster_li... | Tcl | 5 | hpdic/redis | tests/cluster/tests/24-links.tcl | [
"BSD-3-Clause"
] |
class Main {
static function doStuff(options:{a:Float, b:String}) {}
static function main () {
doStuff({
}
} | Haxe | 1 | Alan-love/haxe | tests/misc/projects/Issue3907/Main.hx | [
"MIT"
] |
{Utils, React, Actions} = require 'nylas-exports'
{ParticipantsTextField} = require 'nylas-component-kit'
PGPKeyStore = require './pgp-key-store'
EmailPopover = require './email-popover'
Identity = require './identity'
kb = require './keybase'
_ = require 'underscore'
module.exports =
class KeybaseUser extends React.C... | CoffeeScript | 5 | cnheider/nylas-mail | packages/client-app/internal_packages/keybase/lib/keybase-user.cjsx | [
"MIT"
] |
#profile START;
s = 0;
m = {5,1};
for (k=0; k<250000; k=k+1)
{
s = s + k;
t = Random (0,5);
m [t] = m [t] + 1;
}
#profile PAUSE;
s2 = 0;
for (k=1; k<10000; k=k+1)
{
s2 = s2+1/k;
}
#profile _hyphy_profile_dump;
stats = _hyphy_profile_dump["STATS"];
_profile_summer = {1,Rows(stats)};
_profile_summer = _prof... | Brainfuck | 3 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/HyPhy/profile_test.bf | [
"MIT"
] |
//
// AUTO-GENERATED FILE, DO NOT MODIFY!
//
import 'package:built_collection/built_collection.dart';
import 'package:openapi/src/model/deprecated_object.dart';
import 'package:built_value/built_value.dart';
import 'package:built_value/serializer.dart';
part 'object_with_deprecated_fields.g.dart';
/// ObjectWithDepr... | Dart | 5 | JigarJoshi/openapi-generator | samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/lib/src/model/object_with_deprecated_fields.dart | [
"Apache-2.0"
] |
create table precise_types (
a BIGINT UNSIGNED NOT NULL,
b BIGINT NOT NULL,
c DECIMAL(21,1) NOT NULL,
d DOUBLE NOT NULL
);
| SQL | 3 | cuishuang/tidb | br/tests/lightning_various_types/data/vt.precise_types-schema.sql | [
"Apache-2.0"
] |
CREATE TABLE "public"."t2" ("created_at" timestamptz NOT NULL DEFAULT now(), "id" serial NOT NULL, PRIMARY KEY ("id") );
| SQL | 2 | gh-oss-contributor/graphql-engine-1 | cli/commands/testdata/config-v2-test-project/migrations/1620138146208_create_table_public_t2/up.sql | [
"Apache-2.0",
"MIT"
] |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports Microsoft.CodeAnalysis.Text
Imports Microsoft.CodeAnalysis.VisualBasic.Symbols
Imports Microsoft.CodeAnalysis.... | Visual Basic | 4 | ffMathy/roslyn | src/Compilers/VisualBasic/Portable/Symbols/Attributes/WellKnownAttributeData/MethodWellKnownAttributeData.vb | [
"MIT"
] |
import "./with-nested";
import(/* webpackPreload: 1, webpackChunkName: "preloaded" */ "./preloaded");
setTimeout(() => {
import(/* webpackChunkName: "normal" */"./normal");
}, 500);
| JavaScript | 3 | 1shenxi/webpack | test/statsCases/preload/index.js | [
"MIT"
] |
export { default } from '@date-io/luxon';
| TypeScript | 0 | good-gym/material-ui | packages/material-ui-lab/src/AdapterLuxon/index.ts | [
"MIT"
] |
<style type="text/css">
body { background: navy; color: yellow; }
</style>
<style lang="postcss">
body { background: navy; color: yellow; }
</style>
| HTML | 2 | fuelingtheweb/prettier | tests/html_css/postcss.html | [
"MIT"
] |
FROM functions/alpine:latest
ENV fprocess "/bin/cat"
| Dockerfile | 1 | lihaiswu/faas | sample-functions/echo/Dockerfile | [
"MIT"
] |
// run-fail
// error-pattern:attempt to calculate the remainder with a divisor of zero
// ignore-emscripten no processes
#[allow(unconditional_panic)]
fn main() {
let y = 0;
let _z = 1 % y;
}
| Rust | 2 | Eric-Arellano/rust | src/test/ui/numbers-arithmetic/mod-zero.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
// 功能:Hello World
// 目的:演示单模块项目组织方式
package Hello; // 包名: Hello。每个.bsv文件内只能有1个同名包
module mkTb(); // 模块名: mkTb
rule hello; // rule 名: hello
$display("Hello World!"); // 就像 Verilog 的 $display 那样,
// 该语句不参与综合, 只是在仿真时打印
$finish; ... | Bluespec | 4 | Xiefengshang/BSV_Tutorial_cn | src/1.Hello/Hello.bsv | [
"MIT"
] |
// Daniel Shiffman
// http://codingtra.in
// http://patreon.com/codingtrain
// Video: https://youtu.be/hbgDqyy8bIw
Segment tentacle;
void setup() {
size(600, 400);
Segment current = new Segment(300, 200, 10, 0);
for (int i = 0; i < 20; i++) {
Segment next = new Segment(current, 10, i);
current.child = ... | Processing | 4 | aerinkayne/website | CodingChallenges/CC_064.2_InverseKinematics/Processing/CC_064_2_InverseKinematics/CC_064_2_InverseKinematics.pde | [
"MIT"
] |
=pod
=head1 NAME
EVP_sha3_224,
EVP_sha3_256,
EVP_sha3_384,
EVP_sha3_512,
EVP_shake128,
EVP_shake256
- SHA-3 For EVP
=head1 SYNOPSIS
#include <openssl/evp.h>
const EVP_MD *EVP_sha3_224(void);
const EVP_MD *EVP_sha3_256(void);
const EVP_MD *EVP_sha3_384(void);
const EVP_MD *EVP_sha3_512(void);
const EVP_MD *E... | Pod | 4 | pmesnier/openssl | doc/man3/EVP_sha3_224.pod | [
"Apache-2.0"
] |
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=..\..\code\favicon.ico
#AutoIt3Wrapper_Outfile=script\streamkeyshelper.exe
#AutoIt3Wrapper_Change2CUI=y
#AutoIt3Wrapper_Res_Comment=A helper application for StreamKeysQuantum Firefox extension. 100% Open source, see github
#AutoIt3Wra... | AutoIt | 5 | Egor3f/streamkeys-quantum | SKQGlobalCommandSupport/win32au3/main.au3 | [
"MIT"
] |
terraform {
required_providers {
kubernetes = {
source = "hashicorp/kubernetes"
version = "2.3.2"
}
}
}
# Use standard kubectl environment to get connection details
provider "kubernetes" {
config_context = var.k8s_config_context
config_path = var.k8s_config_path
} | HCL | 4 | DBatOWL/tutorials | kubernetes/k8s-admission-controller/src/test/terraform/providers.tf | [
"MIT"
] |
[38;2;248;248;242mcflags [0m[38;2;249;38;114m=[0m[38;2;248;248;242m -Wall[0m
[38;2;249;38;114mrule[0m[38;2;248;248;242m cc[0m
[38;2;248;248;242m [0m[38;2;249;38;114mcommand[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m gcc [0m[38;2;255;255;255m$cflags[0m[38;2;248;248;242m -c ... | Ninja | 3 | purveshpatel511/bat | tests/syntax-tests/highlighted/Ninja/test.ninja | [
"Apache-2.0",
"MIT"
] |
Strict
Import MaxGUI.MaxGUI
Import BRL.Graphics
Import "fltkfonts.bmx"
Import "fltksystem.bmx"
Extern "C"
Function bbStringToUTF8String:Byte Ptr ( str$ )
EndExtern
Private
Include "fltkdecls.bmx"
Global FLDriver:TFLTKGUIDriver = New TFLTKGuiDriver
maxgui_driver = FLDriver
Type TFLGuiSystemDriver Extends ... | BlitzMax | 4 | jabdoa2/blitzmax | mod/maxgui.mod/fltkmaxgui.mod/fltkgui.bmx | [
"Zlib"
] |
//
// Copyright (c) XSharp B.V. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.
// See License.txt in the project root for license information.
//
USING System.Globalization
USING System.Threading
USING System.Security.Permissions
/// <include file="VoFunctionDocs.xml" path="Runtimefunctio... | xBase | 5 | orangesocks/XSharpPublic | Runtime/XSharp.VO/Functions/International.prg | [
"Apache-2.0"
] |
#pragma TextEncoding = "UTF-8"
#pragma rtGlobals=3
#pragma IgorVersion=8.0
#include "unit-testing"
#include "::procedures:ZeroMQ_Interop"
#include ":zmq_bind"
#include ":zmq_connect"
#include ":zmq_set_logging_template"
#include ":zmq_memory_leaks"
#include ":zmq_pub_sub"
#include ":zmq_set"
#include ":zmq_start_han... | IGOR Pro | 5 | AllenInstitute/ZeroMQ-XOP | tests/zmq_main_test.ipf | [
"BSD-3-Clause"
] |
using Uno.Collections;
using Uno.Testing;
using Uno;
using FuseTest;
namespace Fuse.Text.Test
{
public class SubstringTest : TestBase
{
string[] _simpleStrings = new string[] { "", "a", "ab", "abc 123" };
[Test]
public void ToStringTests()
{
foreach (var s in _simpleStrings)
Assert.AreEqual(new Subs... | Uno | 5 | helilabs/fuselibs | Source/Fuse.Text/Tests/Substring.Test.uno | [
"MIT"
] |
\documentclass{article}
\begin{document}
\section*{Introduction}
Text outside code environments should follow TeX/LaTeX highlighting.
The code environment delimiters themselves should be highlighted.
Text inside code environments should follow regular Haskell highlighting.
\begin{code}
import Data.List
... | Literate Haskell | 5 | ka7/bat | tests/syntax-tests/source/Literate Haskell/Main.lhs | [
"Apache-2.0",
"MIT"
] |
// Test that we are able to infer a suitable kind for this closure
// that is just called (`FnMut`).
use std::mem;
fn main() {
let mut counter: Vec<i32> = Vec::new();
let tick = || mem::drop(counter);
tick();
tick(); //~ ERROR use of moved value: `tick`
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/unboxed-closures/unboxed-closures-infer-fnonce-call-twice.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#!/usr/bin/env jq -S -f
# -----------------------------------------------------------------------------
# USAGE NOTES.
#
# This `jq` script will generate a list of top-level Kubernetes API
# objects that contain either (or both of):
#
# 1. a property with the name `"status"`, or
# 2. a property whose type is `met... | JSONiq | 5 | gajanankulkarni-18/ksonnet | vendor/github.com/ksonnet/ksonnet-lib/ksonnet-gen/kubeversion/blacklist.jq | [
"Apache-2.0"
] |
<component name="sidebar">
<nss>
bar: {
backgroundColor: "#282728",
position: "relative",
height: "100%",
display: "flex",
flexDirection: "column",
flexGrow: 1,
justifyContent: "flex-start",
alignItems: "stretch... | nesC | 4 | wiltonlazary/Nidium | src/Embed/framework/components/sidebar.nc | [
"Apache-2.0",
"BSD-2-Clause"
] |
(preproc_arg) @cpp
(comment) @comment
| Scheme | 0 | hmac/nvim-treesitter | queries/cpp/injections.scm | [
"Apache-2.0"
] |
#include <lighttpd/base.h>
#include <lighttpd/http_request_parser.h>
#include <lighttpd/lighttpd-glue.h>
/** Machine **/
#define _getString(M, FPC) (li_chunk_extract(ctx->M, LI_GETMARK(FPC), NULL))
#define getString(FPC) _getString(mark, FPC)
#define _getStringTo(M, FPC, s) (li_chunk_extract_to(ctx->M, LI_GETMARK(F... | Ragel in Ruby Host | 4 | kurtace72/lighttpd2 | src/main/http_request_parser.rl | [
"Apache-2.0"
] |
%{^
#include "hardware_serial.h"
#if defined(UBRRH) && defined(UBRRL)
#define ADDR_UBRRH (UBRRH)
#define ADDR_UBRRL (UBRRL)
#define ADDR_UCSRA (UCSRA)
#define ADDR_UCSRB (UCSRB)
#define ADDR_UCSRC (UCSRC)
#define ADDR_UDR (UDR)
#define BIT_RXEN (RXEN)
#define BIT_TXEN (TXEN)
#define BIT_RXCIE (RXCIE)
#define BI... | ATS | 5 | Proclivis/arduino-ats | DATS/hardware_serial.dats | [
"MIT"
] |
--TEST--
CURL file uploading from string
--EXTENSIONS--
curl
--FILE--
<?php
function testcurl($ch, $postname, $data, $mime = null)
{
if (is_null($mime)) {
// for default mime value
$file = new CURLStringFile($data, $postname);
} else {
$file = new CURLStringFile($data, $postname, $mime);
}
curl_setopt($ch, C... | PHP | 5 | NathanFreeman/php-src | ext/curl/tests/curl_string_file_upload.phpt | [
"PHP-3.01"
] |
register 's3n://netflix-dataoven-prod/genie/jars/dse_pig-2.0.0.jar';
register 's3n://netflix-dataoven-prod-users/DSE/etl_code/common/python/nflx_common_datetime.py' using jython as datetime;
--REGISTER 's3n://netflix-dataoven-prod/genie/jars/dse_pig.jar';
set dse.partitionedstorer.hiveDelim true;
SET default_parallel ... | PigLatin | 4 | OpenEarthDemo/Lipstick | lipstick-console/src/test/resources/complex2.pig | [
"Apache-2.0"
] |
subscription TeamCollectionRemoved($teamID: ID!) {
teamCollectionRemoved(teamID: $teamID)
}
| GraphQL | 4 | miily8310s/hoppscotch | packages/hoppscotch-app/helpers/backend/gql/subscriptions/TeamCollectionRemoved.graphql | [
"MIT"
] |
(kicad_pcb (version 20171130) (host pcbnew 5.0.2-bee76a0~70~ubuntu18.04.1)
(general
(thickness 1.6)
(drawings 7)
(tracks 96)
(zones 0)
(modules 12)
(nets 25)
)
(page A4)
(layers
(0 F.Cu signal)
(31 B.Cu signal)
(32 B.Adhes user)
(33 F.Adhes user)
(34 B.Paste user)
... | KiCad | 4 | lab-mathias-claussen/PicoDVI | hardware/pmod_hdmi/picodvi_pmod.kicad_pcb | [
"BSD-3-Clause"
] |
package org.xtendroid.xtendroidtest.adapter
import android.view.View
import android.view.ViewGroup
import java.util.List
import org.xtendroid.adapter.AndroidAdapter
import org.xtendroid.adapter.AndroidViewHolder
import org.xtendroid.xtendroidtest.R
import org.xtendroid.xtendroidtest.models.User
import android.support.... | Xtend | 4 | tobykurien/Xtendroid | XtendroidTest/src/org/xtendroid/xtendroidtest/adapter/RVAdapter.xtend | [
"MIT"
] |
/// <reference path="fourslash.ts"/>
////function foo(a: number): string {
//// /*insideFunctionDeclaration*/
//// return "";
////}
////
////(function foo(): number {
//// /*insideFunctionExpression*/
//// fo/*referenceInsideFunctionExpression*/o;
//// return "";
////})
////
/////*globalSco... | TypeScript | 4 | nilamjadhav/TypeScript | tests/cases/fourslash/completionListInNamedFunctionExpression.ts | [
"Apache-2.0"
] |
(kicad_pcb (version 20171130) (host pcbnew "(5.1.6-0)")
(general
(thickness 1.6)
(drawings 113)
(tracks 959)
(zones 0)
(modules 68)
(nets 96)
)
(page A4)
(layers
(0 F.Cu signal)
(31 B.Cu signal)
(32 B.Adhes user)
(33 F.Adhes user)
(34 B.Paste user)
(35 F.Paste u... | KiCad | 4 | achildrenmile/esp32-touchdown | Hardware/ESP32_TouchDown_Rev1/ESP32_TouchDown.kicad_pcb | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.