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
#include <PJONSwitch.h> #include <PJONSoftwareBitBang.h> /* Route packets between a collection of buses with the same or different strategies or media. PJONSwitch can route between buses of different strategies, though not shown here. If using only one strategy, some resources can be saved by using PJONSi...
Arduino
4
solhuebner/PJON
examples/routing/ARDUINO/Network/Switch/Switch/Switch.ino
[ "Apache-2.0" ]
theory Leftpad imports Main begin (* What does it mean to be padded? A string can be split into two parts where the first part is all padding and the second is the original string: *) definition isPadded where "isPadded padChar unpadded padded \<equiv> \<exists> n. set (take n padded) \<subseteq> { padChar }...
Isabelle
5
RomainGehrig/lets-prove-leftpad
isabelle/Leftpad.thy
[ "CC0-1.0" ]
/* * 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/main/java/io/reactivex/rxjava3/subjects/package-info.java
[ "Apache-2.0" ]
/** * General purpose sample objects that can be used with tests. */ package org.springframework.tests.sample.objects;
Java
1
nicchagil/spring-framework
spring-core/src/test/java/org/springframework/tests/sample/objects/package-info.java
[ "Apache-2.0" ]
rule display_help command = echo 'Error: Execute Ninja in a build directory: `ninja -C build/release`' description = Help the poor user build help: display_help default help
Ninja
3
liubangchen/seastar
build.ninja
[ "Apache-2.0" ]
FROM tomcat:jdk16-openjdk COPY . /usr/local/tomcat/webapps/ RUN ["javac", "-cp", ".:/usr/local/tomcat/lib/servlet-api.jar", "-d", "/usr/local/tomcat/webapps/private/WEB-INF/classes/", "/usr/local/tomcat/webapps/private/HelloWorld.java"] EXPOSE 8080 CMD ["catalina.sh", "run"]
Dockerfile
4
rveerama1/istio
tests/integration/security/fuzz/backends/tomcat/Dockerfile
[ "Apache-2.0" ]
= Induction : Proof by Induction > module Induction First, we import all of our definitions from the previous chapter. > import Basics Next, we import the following \idr{Prelude} modules, since we'll be dealing with natural numbers. > import Prelude.Interfaces > import Prelude.Nat For \idr{import Basics} to work,...
Idris
5
diseraluca/software-foundations
src/Induction.lidr
[ "MIT" ]
//Read a text (non-ironman) EU4 savefile and scan for matters of interest. Provides info to networked clients. //TODO: Show a coalition as if it's a war? //TODO: Raise highlighting priority of building upgrade options by a console command - or hide upgrades //by default, show them only when explicitly requested (like t...
Pike
5
Rosuav/shed
eu4_parse.pike
[ "MIT" ]
# Copyright 2018 The gRPC Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
Python
5
warlock135/grpc
src/python/grpcio_status/grpc_status/rpc_status.py
[ "Apache-2.0" ]
-- @shouldFailWith UnknownName module Main where import Prelude (unit, pure) main = do pure unit pure unit
PureScript
2
andys8/purescript
tests/purs/failing/2109-discard.purs
[ "BSD-3-Clause" ]
frequency,raw,error,smoothed,error_smoothed,equalization,parametric_eq,fixed_band_eq,equalized_raw,equalized_smoothed,target 20.00,6.04,4.22,6.04,4.22,-4.22,-3.70,-1.82,1.82,1.82,1.82 20.20,6.04,4.17,6.04,4.17,-4.17,-3.72,-1.87,1.87,1.87,1.86 20.40,6.04,4.12,6.04,4.13,-4.13,-3.75,-1.93,1.91,1.91,1.91 20.61,6.04,4.09,6....
CSV
3
vinzmc/AutoEq
results/innerfidelity/innerfidelity_harman_over-ear_2018/Focal Spirit One/Focal Spirit One.csv
[ "MIT" ]
# loads all unit tests in the test directory (set tests ((NSString stringWithShellCommand:"ls test/test_*.nu") lines)) (tests each: (do (test) (load test)))
Nu
3
mattbeshara/nu
tests.nu
[ "Apache-2.0" ]
import random from torch.utils.data import ( DFIterDataPipe, IterDataPipe, functional_datapipe, ) from torch.utils.data.datapipes.dataframe import dataframe_wrapper as df_wrapper @functional_datapipe('_dataframes_as_tuples') class DataFramesAsTuplesPipe(IterDataPipe): def __init__(self, source_datapip...
Python
4
sanchitintel/pytorch
torch/utils/data/datapipes/dataframe/datapipes.py
[ "Intel" ]
SUMMARY = "A network address manipulation library for Python." LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=e6345d695ffe3776f68a56fe7962db44" SRC_URI[md5sum] = "34cad578473b66ad77bc3b2a7613ed4a" SRC_URI[sha256sum] = "d6cc57c7a07b1d9d2e917aa8b36ae8ce61c35ba3fcd1b83ca31c5a0ee2b5a243" inherit pypi set...
BitBake
3
shipinglinux/meta-openembedded
meta-python/recipes-devtools/python/python3-netaddr_0.8.0.bb
[ "MIT" ]
package com.baeldung.privateconstructors; public class PrivateConstructorClass { private PrivateConstructorClass() { // in the private constructor } }
Java
3
DBatOWL/tutorials
core-java-modules/core-java-lang-oop-constructors/src/main/java/com/baeldung/privateconstructors/PrivateConstructorClass.java
[ "MIT" ]
/* * * Copyright 2015 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
C
5
mpminardi/grpc
src/core/lib/slice/b64.h
[ "Apache-2.0" ]
OUTPUT_FORMAT("elf32-littleunicore32", "elf32-bigunicore32", "elf32-littleunicore32") OUTPUT_ARCH(unicore32) ENTRY(_start) SEARCH_DIR("/usr/unicore/gnu-toolchain-unicore/uc4-1.0-beta-hard-RHELAS5/unicore32-linux/lib"); SECTIONS { . = 0x00000000; . = ALIGN(4); .text : { *(.init) *(.text) *(.gnu.linkonce.t*) ...
Linker Script
4
Davidfind/rt-thread
bsp/sep6200/sep6200.ld
[ "Apache-2.0" ]
diff --git a/node_modules/tsconfig-paths/lib/register.js b/node_modules/tsconfig-paths/lib/register.js index 311c7fd..ac9feec 100644 --- a/node_modules/tsconfig-paths/lib/register.js +++ b/node_modules/tsconfig-paths/lib/register.js @@ -51,7 +51,7 @@ function register(explicitParams) { explicitParams: explicit...
Diff
2
amoshydra/cypress
packages/server/patches/tsconfig-paths+3.10.1.patch
[ "MIT" ]
((fn (q) (prn (list q (list (quote quote) q)))) (quote (fn (q) (prn (list q (list (quote quote) q))))))
Arc
3
MakeNowJust/quine
quine.arc
[ "Beerware" ]
{% include "./include_content.html" %}
HTML
0
jpmallarino/django
tests/template_tests/relative_templates/dir1/dir2/inc2.html
[ "BSD-3-Clause", "0BSD" ]
#![deny(clippy::needless_lifetimes)] #![allow(dead_code)] trait Foo {} struct Bar {} struct Baz<'a> { bar: &'a Bar, } impl<'a> Foo for Baz<'a> {} impl Bar { fn baz<'a>(&'a self) -> impl Foo + 'a { Baz { bar: self } } } fn main() {}
Rust
5
Eric-Arellano/rust
src/tools/clippy/tests/ui/crashes/needless_lifetimes_impl_trait.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
{# OPNsense® is Copyright © 2021 Frank Wall OPNsense® is Copyright © 2014 – 2015 by Deciso B.V. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above ...
Volt
4
marcquark/plugins
emulators/qemu-guest-agent/src/opnsense/mvc/app/views/OPNsense/QemuGuestAgent/index.volt
[ "BSD-2-Clause" ]
FROM openjdk:8u92-jdk-alpine COPY /src /src/ RUN mkdir /app && ls /src && javac /src/main/java/com/baeldung/docker/heapsizing/PrintXmxXms.java -d /app CMD java -version && java $JAVA_OPTS -cp /app com.baeldung.docker.heapsizing.PrintXmxXms
Dockerfile
2
DBatOWL/tutorials
docker/heap-sizing/Dockerfile
[ "MIT" ]
#if macro import haxe.macro.Context; import haxe.macro.Expr; import haxe.macro.Type; using haxe.macro.Tools; #end macro function f(a, b) { var t = Context.typeof(a); var ct = generateDerivedType(t); var r = macro @:pos(b.pos) ($b : $ct); return r; } #if macro function generateDerivedType(t:Type):ComplexType { va...
Haxe
4
Alan-love/haxe
tests/server/test/templates/issues/Issue9449/Macro.hx
[ "MIT" ]
# # Issues mass recenter, gathers mass positions before and after # # 11/8/2006 Original J. Eakins # 12/28/2006 Modified F. Vernon # 08/13/2007 more modifications by J. Eakins # 02/26/2009 modified by J.Eakins to add lead based checking # # # use diagnostics ; use strict ; use Datascope ; use orb...
XProc
5
jreyes1108/antelope_contrib
bin/rt/dlautomrc/dlautomrc.xpl
[ "BSD-2-Clause", "MIT" ]
module parent { private module child { proc secretFunction(a: int) { return a*3; } } module sibling { use parent only child; // use instead of import, and utilize only list proc main() { writeln(child.secretFunction(11)); } } }
Chapel
3
jhh67/chapel
test/visibility/private/moduleSymbols/accessPrivateSiblingSubmodule2.chpl
[ "ECL-2.0", "Apache-2.0" ]
// Checks that unions use type based qualification. Regression test for issue #90268. #![feature(untagged_unions)] use std::cell::Cell; union U { i: u32, c: Cell<u32> } const C1: Cell<u32> = { unsafe { U { c: Cell::new(0) }.c } }; const C2: Cell<u32> = { unsafe { U { i : 0 }.c } }; const C3: Cell<u32> = { ...
Rust
4
ohno418/rust
src/test/ui/consts/qualif-union.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
; Compile me with Jasmin 2.1+ (https://sourceforge.net/projects/jasmin/) .class public synthetic ExampleSynthetic .super java/lang/Object
Jasmin
1
mauguignard/cbmc
jbmc/regression/jbmc/class-literals/ExampleSynthetic.j
[ "BSD-4-Clause" ]
ObjectWrapper = Lazy({}).__proto__ ArrayWrapper = Lazy([]).__proto__ ConcatenatedSequence = Lazy().concat().__proto__ largs = (args)-> Lazy.generate ((i)->args[i]), args.length prepVarargs = (args)-> Lazy() .concat(largs args) .toArray() addExtras = (proto)-> ext =...
Literate CoffeeScript
3
zot/Leisure
METEOR-OLD/private/build/l.litcoffee
[ "Zlib" ]
trait TestList """ Source of unit tests for a PonyTest object. See package doc string for further information and example use. """ fun tag tests(test: PonyTest) """ Add all the tests in this suite to the given test object. Typically the implementation of this function will be of the form: ```...
Pony
4
presidentbeef/ponyc
packages/ponytest/test_list.pony
[ "BSD-2-Clause" ]
/* * 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...
CSS
3
kesavanvt/spark
python/docs/source/_static/css/pyspark.css
[ "BSD-2-Clause", "Apache-2.0", "CC0-1.0", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
if ! (( $+commands[fig] )); then return fi # If the completion file doesn't exist yet, we need to autoload it and # bind it to `fig`. Otherwise, compinit will have already done that if [[ ! -f "$ZSH_CACHE_DIR/completions/_fig" ]]; then autoload -Uz _fig typeset -g -A _comps _comps[fig]=_fig fi fig completion ...
Shell
4
residwi/ohmyzsh
plugins/fig/fig.plugin.zsh
[ "MIT" ]
.class public LHelloWorld; .super Ljava/lang/Object; .method public static main([Ljava/lang/String;)V .registers 2 sget-object v0, Ljava/lang/System;->out:Ljava/io/PrintStream; const/high16 v1, 0x7f020000 invoke-virtual {v0, v1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V return-void ...
Smali
3
CrazyLeoJay/Apktool
brut.apktool/apktool-lib/src/test/resources/aapt2/testapp/smali/HelloWorld.smali
[ "Apache-2.0" ]
/** Copyright 2015 Acacia Team Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
X10
4
mdherath/Acacia
src/org/acacia/partitioner/hadoop/HadoopOrchestrator.x10
[ "Apache-2.0" ]
(module (memory 1 2) ;; import a "yield" function that receives the current value, ;; then pauses execution until it is resumed later. (import "env" "yield" (func $yield (param i32))) (export "memory" (memory 0)) ;; simple linear progression in a loop (func "linear" (result i32) (local $x i32) (lo...
WebAssembly
4
phated/binaryen
test/unit/input/asyncify-coroutine.wat
[ "Apache-2.0" ]
{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "Copyright (C) 2016 - 2019 Pinard Liu(liujianping-ok@163.com)\n", "\n", "https://www.cnblogs.com/pinard\n", "\n", "Permission given to modify the code as long as you keep this declaration at the top\n", "\n", "用s...
Jupyter Notebook
3
xihushui599/machinelearning
classic-machine-learning/lda.ipynb
[ "MIT" ]
? $_mt->wrapper_file("wrapper.mt")->(sub { <title>Frequently Asked Questions - JSX</title> ?= $_mt->render_file("header.mt") <div id="main"> <h2>Frequently Asked Questions</h2> <h3>Q. Who are you?</h3> <div> JSX has been developed as a research project at <a href="http://dena.com/intl/" target="_blank">DeNA Co., ...
Mathematica
3
monkpit/JSX
doc/src/faq.mt
[ "MIT" ]
package org.xtendroid.xtendroidtest.fragments import android.app.AlertDialog import android.app.DialogFragment import android.os.Bundle import org.xtendroid.annotations.AndroidDialogFragment import org.xtendroid.app.OnCreate import org.xtendroid.xtendroidtest.R @AndroidDialogFragment(R.layout.fragment_dialog) class C...
Xtend
4
kusl/Xtendroid
XtendroidTest/src/org/xtendroid/xtendroidtest/fragments/CustomDialog.xtend
[ "MIT" ]
REBOL [ Title: "Red/System unicode conversion library" Author: "Qingtian Xie" File: %unicode.r Tabs: 4 Rights: "Copyright (C) 2011-2018 Red Foundation. All rights reserved." License: "BSD-3 - https://github.com/red/red/blob/master/BSD-3-License.txt" ] utf8-to-utf16: func [s [string!] /length /local m cp r...
R
5
0xflotus/red
system/utils/unicode.r
[ "BSL-1.0", "BSD-3-Clause" ]
DAFETF NAIF DAF ENCODED TRANSFER FILE 'DAF/CK ' '2' '6' 'M01 SC CK; EXT (2018-07...2018-09); NAIF/JPL; Ver 1.0; 2018-' BEGIN_ARRAY 1 123 'Merged CHTLM Qs - Made-up AVs ' '48C1832F97^A' '48C18374A5^A' '-CF08' '10' '3' '1' 123 'AEEB23383FA388^0' '-9945D9BBC20758^0' '-69BDC28CB25918^0' '104D2A8BA0B3E7^0' '1CE46...
XC
2
ladoramkershner/ale
tests/pytests/data/I74199019RDR/m01_sc_ext56_1_sliced_-53000.xc
[ "Unlicense" ]
$$ MODE TUSCRIPT secondsrange=2 PRINT "Sleeping ",secondsrange," seconds " WAIT #secondsrange PRINT "Awake after Naping ",secondsrange, " seconds"
Turing
3
LaudateCorpus1/RosettaCodeData
Task/Sleep/TUSCRIPT/sleep.tu
[ "Info-ZIP" ]
# argv.fy # Example of fancy's interface for command line arguments "This will always get printed, even when required from another file" println __FILE__ if_main: { "This will get printed, if this file is directly run with fancy" println }
Fancy
3
bakkdoor/fancy
examples/argv.fy
[ "BSD-3-Clause" ]
#!/bin/bash # The script prints the total number of the examples in the test process. # # It's a part of the test process # # TODO: Write stats to Firebase and display the stats at the site. count=$( cat tmp/tests_count.txt 2> /dev/null || echo 0 ) printf "\n%bSUITE: %s%b\n" "\x1B[32m" "$TEST_SUITE" "\x1B[0m" printf...
Shell
4
taco-tues-on-a-fri/date-fns
scripts/test/countTests.sh
[ "MIT" ]
<$mt:HTTPContentType type="application/atom+xml"$><?xml version="1.0" encoding="<$mt:PublishCharset$>"?> <feed xmlns="http://www.w3.org/2005/Atom"> <title><$mt:BlogName remove_html="1" escape="xml"$></title> <link rel="alternate" type="text/html" href="<$mt:BlogURL escape="xml"$>" /> <link rel="self" type="applic...
MTML
2
kanpapa/mt-theme-rimo
themes/rimo/templates/feed_recent.mtml
[ "MIT" ]
defmodule FrameworkBenchmarks.Handlers.PlainText do @moduledoc """ This is the handle for the /plaintext route """ def handle(conn) do conn |> Plug.Conn.put_resp_content_type("text/plain") |> Plug.Conn.send_resp(200, "Hello, World!") end end
Elixir
4
xsoheilalizadeh/FrameworkBenchmarks
frameworks/Elixir/plug/lib/framework_benchmarks/handlers/plain-text.ex
[ "BSD-3-Clause" ]
FROM ubuntu:18.04 # Enable source repositories, which are disabled by default on Ubuntu >= 18.04 RUN sed -i 's/^# deb-src/deb-src/' /etc/apt/sources.list COPY scripts/cross-apt-packages.sh /tmp/ RUN bash /tmp/cross-apt-packages.sh # Required for cross-build gcc RUN apt-get update && \ apt-get install -y --no-ins...
Dockerfile
3
mbc-git/rust
src/ci/docker/host-x86_64/dist-x86_64-illumos/Dockerfile
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
static const uint32_t in_default_val[100] = { 0xbcf53bc7, 0x3e91ab21, 0x3f2b2c74, 0x3e9d1f6b, 0x3e5b1bd3, 0x3f09c922, 0x3f4428f3, 0x3f103015, 0x3de599a3, 0xbca6e341, 0xbd2e1214, 0xbc87968f, 0xbe2cd052, 0xbf1c68c2, 0xbf55dea8, 0xbf235faa, 0xbea2e717, 0xbe899a6f, 0xbecd218b, 0xbec298f8, 0xbcad67b9...
Max
2
maxvankessel/zephyr
tests/lib/cmsis_dsp/filtering/src/biquad_f32.pat
[ "Apache-2.0" ]
[Files] Source: "RevitPythonShell\bin\Release\2015\PythonConsoleControl.dll"; DestDir: "{app}"; Flags: replacesameversion Source: "RevitPythonShell\bin\Release\2015\RevitPythonShell.dll"; DestDir: "{app}"; Flags: replacesameversion Source: "RevitPythonShell\bin\Release\2015\RpsRuntime.dll"; DestDir: "{app}"; Flags: rep...
Inno Setup
4
PavelAltynnikov/revitpythonshell
Setup_RevitPythonShell_2015.iss
[ "MIT" ]
import React from 'react'; import path from 'path'; import fs from 'fs'; import { remote } from 'electron'; import { Flexbox } from 'nylas-component-kit'; import displayedKeybindings from './keymaps/displayed-keybindings'; import CommandItem from './keymaps/command-item'; class PreferencesKeymaps extends React.Compon...
JSX
5
cnheider/nylas-mail
packages/client-app/internal_packages/preferences/lib/tabs/preferences-keymaps.jsx
[ "MIT" ]
# Copyright 2019 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
Python
5
arghyadip01/grpc
src/objective-c/grpc_objc_internal_library.bzl
[ "Apache-2.0" ]
<html> <body> <pre> A world of dew, and within every dewdrop a world of struggle </pre> </body> </html>
DIGITAL Command Language
1
kernelrich/h2o-3
h2o-docs/src/front/assets/addthis/s7.addthis.com
[ "Apache-2.0" ]
Red [ Title: "Red Tips Widget" Author: "Xie Qingtian" File: %tips.red Tabs: 4 Rights: "Copyright (C) 2014-2018 Red Foundation. All rights reserved." License: { Distributed under the Boost Software License, Version 1.0. See https://github.com/red/red/blob/master/BSL-License.txt } ] tips!: make face! [ ...
Red
4
0xflotus/red
environment/console/GUI/tips.red
[ "BSL-1.0", "BSD-3-Clause" ]
[[features.task-execution-and-scheduling]] == Task Execution and Scheduling In the absence of an `Executor` bean in the context, Spring Boot auto-configures a `ThreadPoolTaskExecutor` with sensible defaults that can be automatically associated to asynchronous task execution (`@EnableAsync`) and Spring MVC asynchronous ...
AsciiDoc
4
techAi007/spring-boot
spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/task-execution-and-scheduling.adoc
[ "Apache-2.0" ]
#!/bin/sh # Copyright 2018 The Kubernetes Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Shell
4
767829413/kubernetes
test/images/echoserver/run.sh
[ "Apache-2.0" ]
{% set result = 'yes' | to_bool() %} {% include 'jinja_filters/common.sls' %}
SaltStack
2
byteskeptical/salt
tests/integration/files/file/base/jinja_filters/jinja_to_bool.sls
[ "Apache-2.0" ]
import {NgModule} from '@angular/core'; @NgModule({jit: true}) export class NoAotModule { }
TypeScript
3
John-Cassidy/angular
packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/ng_modules/no_aot.ts
[ "MIT" ]
data { int<lower=0> N; int<lower=0> M; array[N] int<lower=0, upper=1> y; array[N] row_vector[M] x; } parameters { vector[M] beta; } model { for (m in 1 : M) beta[m] ~ cauchy(0.0, 2.5); for (n in 1 : N) y[n] ~ bernoulli(inv_logit(x[n] * beta)); }
Stan
4
sthagen/stan-dev-stan
src/test/test-models/performance/logistic.stan
[ "CC-BY-3.0", "BSD-3-Clause" ]
--TEST-- "Reference Unpacking - From Functions" list() --FILE-- <?php $arr = [1, 2]; function no_ref($a) { return $a; } function no_ref_by_ref(&$a) { return $a; } function &ref_return(&$a) { return $a; } function &ref_return_global() { global $arr; return $arr; } $a = [1, 2]; [&$var] = no_ref($a...
PHP
3
thiagooak/php-src
Zend/tests/list/list_reference_003.phpt
[ "PHP-3.01" ]
package com.baeldung.reducingIfElse; public class AddCommand implements Command { private int a; private int b; public AddCommand(int a, int b) { this.a = a; this.b = b; } @Override public Integer execute() { return a + b; } }
Java
4
DBatOWL/tutorials
patterns/design-patterns-creational/src/main/java/com/baeldung/reducingIfElse/AddCommand.java
[ "MIT" ]
// // Copyright (c) 2008, Brian Frank and Andy Frank // Licensed under the Academic Free License version 3.0 // // History: // 25 Apr 08 Brian Frank Creation // ** ** This represents a method return type which is ** always [this type]`docLang::Methods#thisReturns`. ** const final class This { ** ** Private co...
Fantom
3
fanx-dev/fanx
library/sys/fan/lang/This.fan
[ "AFL-3.0" ]
"Ejemplos gráficos" by "Xavi C." (in spanish) [una imagen para cada localidad] Section 1 - Extensiones Include Basic Screen Effects Sp by Emily Short. Include Basic Help Menu SP by Emily Short. Include Location Images by Emily Short. Section 2 - Definición de gráficos y sonidos The graphics background color is "$F...
Inform 7
3
brtl-fhc/I7-Spanish
EJEMPLOS/XaviTutorial/Cap07_30.ni
[ "Artistic-2.0" ]
$onExternalInput set dd 'DD Files' /base,elc_techs,elc_plants2020,elc_importexport,elc_dh-pipes,ind_techs,res_app_techs,res_techs,res_heatsav,sup_h2_chain,sup_bioref, sup_biogasplants,tra_techs,elc_excessheat,ldc_wasteheat,elc_trade,syssettings,ind_demandpr...
GAMS
3
MaREI-EPMG/TIMES_MIRO
dkdata.gms
[ "MIT" ]
/*############################################################################## HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®. 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...
ECL
4
miguelvazq/HPCC-Platform
ecl/regress/localbug.ecl
[ "Apache-2.0" ]
-- test cases for like any CREATE OR REPLACE TEMPORARY VIEW like_any_table AS SELECT * FROM (VALUES ('google', '%oo%'), ('facebook', '%oo%'), ('linkedin', '%in')) as t1(company, pat); SELECT company FROM like_any_table WHERE company LIKE ANY ('%oo%', '%in', 'fa%'); SELECT company FROM like_any_table WHERE co...
SQL
4
kesavanvt/spark
sql/core/src/test/resources/sql-tests/inputs/like-any.sql
[ "BSD-2-Clause", "Apache-2.0", "CC0-1.0", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
<html> <body> <script type="text/javascript" charset="utf-8"> window.addEventListener('unload', function (e) { require('fs').writeFileSync(__dirname + '/unload', 'unload'); }, false); </script> </body> </html>
HTML
3
lingxiao-Zhu/electron
spec/fixtures/api/unload.html
[ "MIT" ]
.class public Lconditions/TestBooleanToShort; .super Ljava/lang/Object; .field private showConsent:Z .method public writeToParcel(Lconditions/TestBooleanToShort;)V .locals 0 iget-boolean p1, p0, Lconditions/TestBooleanToShort;->showConsent:Z int-to-short p1, p1 invoke-virtual {p0, p1}, Lconditions/...
Smali
2
Dev-kishan1999/jadx
jadx-core/src/test/smali/conditions/TestBooleanToShort.smali
[ "Apache-2.0" ]
= jcstress Tests :Author: LMAX Development Team :Email: :Date: {docdata} https://github.com/openjdk/jcstress/ > The Java Concurrency Stress (jcstress) is the experimental harness and a suite of tests to aid the research in the correctness of concurrency support in the JVM, class libraries, and hardware. The Disrupt...
AsciiDoc
3
Demoncloudy/disruptor
src/docs/asciidoc/en/developer-guide/25_jsctress_tests.adoc
[ "Apache-2.0" ]
#![crate_name = "foo"] pub mod a { pub struct Foo; pub enum Bar { Baz, } } // @count 'foo/index.html' '//*[code="pub use a::Foo;"]' 1 #[doc(no_inline)] pub use a::Foo; // @count 'foo/index.html' '//*[code="pub use a::Bar::Baz;"]' 1 #[doc(no_inline)] pub use a::Bar::Baz;
Rust
3
Eric-Arellano/rust
src/test/rustdoc/constructor-imports.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
#include "__emit.inc" stock test__shift(&local_refvar, local_refarray[]) { const local_const = 0; new local_var = 0; static local_static_var = 0; local_label: // ok __emit shl.c.pri global_const; __emit shl.c.pri local_const; __emit shl.c.pri 0; __emit shl.c.pri 1; __emit shl.c.pri 15; __emit shl.c.pri (ce...
PAWN
4
pawn-lang/pawn
source/compiler/tests/__emit_p2.pwn
[ "Zlib" ]
0 reg32_t "dword" 1 code_t "proc*" 2 num32_t "int" 3 uint32_t "size_t" 4 ptr(num8_t) "char*" 5 ptr(ptr(num8_t)) "char**" 6 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...
BlitzBasic
1
matt-noonan/retypd-data
data/chroot.decls
[ "MIT" ]
crypto onchain gwei top ueat hr ETH exit
Gosu
0
elan17/GamestonkTerminal
scripts/test_crypto_onchain.gst
[ "MIT" ]
;;; lang/org/autoload/org-babel.el -*- lexical-binding: t; -*- ;;;###autoload (defun +org-eval-handler (beg end) "TODO" (save-excursion (if (not (cl-loop for pos in (list beg (point) end) if (save-excursion (goto-char pos) (org-in-src-block-p t)) return (goto-char po...
Emacs Lisp
4
leezu/doom-emacs
modules/lang/org/autoload/org-babel.el
[ "MIT" ]
/* * * Copyright 2016 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
Objective-C++
5
arghyadip01/grpc
test/cpp/cocoapods/test/server_context_test_spouse_test.mm
[ "Apache-2.0" ]
( Generated from test_externs_in.muv by the MUV compiler. ) ( https://github.com/revarbat/pymuv ) : _main[ -- ret ] var _v voidfoo 0 _v ! singlefoo _v ! { multfoo }list _v ! qux _v ! { "Fee" "Fie" "Foe" }list array_interpret _v ! "%d: %s" { 5 "Fum" }list 2 try array_explode 1...
MUF
3
revarbat/pymuv
tests/test_externs_cmp.muf
[ "MIT" ]
package unit.issues; using unit.issues.Issue8760.SortStringTools; using unit.issues.Issue8760.SortFloatTools; private class SortStringTools { public static function sorted<T:String, A:Array<T>>(arr:A) { return 'sorted<T:String>()'; } } private class SortFloatTools { public static function sorted<T:Float, A:Ar...
Haxe
4
Alan-love/haxe
tests/unit/src/unit/issues/Issue8760.hx
[ "MIT" ]
HAI 1.2 BTW NOT NOT WIN BTW AND BOTH OF WIN AN FAIL BTW OR EITHER OF WIN AN FAIL BTW XOR WON OF WIN AN FAIL BTW AND (infinite arity) ALL OF WIN AN FAIL AN FAIL AN WIN MKAY BTW OR (infinite arity) ANY OF WIN AN FAIL AN FAIL AN WIN MKAY KTHXBYE
LOLCODE
2
Himanshu21git/Lokalise-source
lolcode-fun-post/boolean_operators.lol
[ "MIT" ]
{{! Copyright (c) Avanade. Licensed under the MIT License. See https://github.com/Avanade/Beef }} CREATE TABLE [{{CdcSchema}}].[{{OutboxTableName}}] ( /* * This is automatically generated; any changes will be lost. */ [OutboxId] INT IDENTITY (1, 1) NOT NULL PRIMARY KEY CLUSTERED ([OutboxId] ASC), [Created...
Harbour
4
ualehosaini/Beef
tools/Beef.CodeGen.Core/Templates/DbCdcOutboxTableCreate_sql.hb
[ "MIT" ]
<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> ...
Oxygene
2
mosh/sugar
Sugar.Tests/Main/WP8/Sugar.Echoes.WP8.Test.oxygene
[ "BSD-3-Clause" ]
package com.baeldung.spring.cloud.ribbon.retry.backoff; import org.springframework.cloud.netflix.ribbon.RibbonLoadBalancedRetryFactory; import org.springframework.cloud.netflix.ribbon.SpringClientFactory; import org.springframework.context.annotation.Profile; import org.springframework.retry.backoff.BackOffPolicy; imp...
Java
4
DBatOWL/tutorials
spring-cloud/spring-cloud-ribbon-retry/ribbon-client-service/src/main/java/com/baeldung/spring/cloud/ribbon/retry/backoff/ExponentialRandomBackoffRetryFactory.java
[ "MIT" ]
example (A B C D : Prop) (h1 : A → B) (h2 : B → C) (h3 : C → D) : A → D := calc A → B : h1 ... → C : h2 ... → D : h3
Lean
4
ericrbg/lean
tests/lean/run/calc_imp.lean
[ "Apache-2.0" ]
cucumber.plugin=pretty, json:target/cucumber/cucumber.json
INI
2
DBatOWL/tutorials
testing-modules/cucumber/src/test/resources/junit-platform.properties
[ "MIT" ]
<!DOCTYPE html> <html><head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta charset="UTF-8"> <title>BMP Suite Image List</title> <style> .b { background:url(bmpsuite_files/bkgd.png); } .q { background-color:#fff0e0; } .bad { background-color:#ffa0a0; } .sz1 { width:127px; height:64px; }...
HTML
4
r00ster91/serenity
Base/res/html/misc/bmpsuite.html
[ "BSD-2-Clause" ]
# Copyright (c) 2018-2021, Carnegie Mellon University # See LICENSE for details _testJam := (t) -> let( xx1 := Last(t.params[2].params[1]), xx2 := Last(t.params[3].params[1]), (xx1 <> 0 or xx2 <> 0) and let( M := t.params[1].dims()[1], K := t.getTag(ABB).params[1], n := When(...
GAP
4
sr7cb/spiral-software
namespaces/spiral/paradigms/cache/breakdown/gt.gi
[ "BSD-2-Clause-FreeBSD" ]
[Constructor(DOMString type, optional PaymentMethodChangeEventInit eventInitDict), SecureContext, Exposed=Window, Func="mozilla::dom::PaymentRequest::PrefEnabled"] interface PaymentMethodChangeEvent : PaymentRequestUpdateEvent { readonly attribute DOMString methodName; readonly attribute object? methodDeta...
WebIDL
3
tlively/wasm-bindgen
crates/web-sys/webidls/enabled/PaymentMethodChangeEvent.webidl
[ "Apache-2.0", "MIT" ]
server { server_name a-demo.chaosgenius.io; root /var/www/a-demo.chaosgenius.io; index index.html index.htm; location ~* \.(?:manifest|appcache|html?|xml|json)$ { expires -1; # access_log logs/static.log; # I don't usually include a static log } location ~* \.(?:css|js)$ { ...
Io
4
eltociear/chaos_genius
scripts/extra/nginx/sites-available/a-demo.chaosgenius.io
[ "MIT" ]
# Much of this file is really testing mpow. # Numerical powers are either passed to mpow or else # returned unevaluated by do_Power, depending on the type of args. # We are missing several test cases here. # But, do_Power and mpow should now reproduce, more or less what Mma does. T Arg(Complex(1.0,1.0)) - N(Arg(Comple...
Objective-J
5
UnofficialJuliaMirrorSnapshots/Symata.jl-a906b1d5-d016-55c4-aab3-8a20cba0db2a
symata_test/arithmetic_test.sj
[ "MIT" ]
{ "log" : { "appender" : { "type" : "syslog" }, "levels" : { /*"default" : "info"*/ } }, "db" : { "permissions" : [ {"type":"db.role","object":"admin","caller":"com.palm.configurator","operations":{"*":"allow"}}, {"type":"db.role","object":"admin","caller":"com.palm.service.backup","operation...
Opal
3
webosce/db8
src/db-luna/mojodb.conf.opal
[ "Apache-2.0" ]
// check-pass const fn i((a, b): (u32, u32)) -> u32 { a + b } fn main() {}
Rust
3
Eric-Arellano/rust
src/test/ui/consts/const-fn-destructuring-arg.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
package foo open class A { val x: Any = object {} }
Groff
2
qussarah/declare
jps-plugin/testData/incremental/classHierarchyAffected/propertyNullabilityChanged/A.kt.new.2
[ "Apache-2.0" ]
# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Janusz Harkot <jh@trilab.pl>, 2015 # Piotr Jakimiak <legolass71@gmail.com>, 2015 # m_aciek <maciej.olko@gmail.com>, 2016 # m_aciek <maciej.olko@gmai...
Gettext Catalog
2
scratchmex/django-rest-framework
rest_framework/locale/pl/LC_MESSAGES/django.po
[ "BSD-3-Clause" ]
-- {-# OPTIONS -v scope:10 -v scope.inverse:100 #-} open import Common.Equality open import A.Issue1635 Set test : ∀ x → x ≡ foo test x = refl -- ERROR: -- x != .#A.Issue1635-225351734.foo of type Foo -- when checking that the expression refl has type x ≡ foo -- SLIGHTLY BETTER: -- x != .A.Issue1635.Foo.foo of type...
Agda
3
shlevy/agda
test/Fail/Issue1635.agda
[ "BSD-3-Clause" ]
"""Nightscout util functions.""" import hashlib def hash_from_url(url: str): """Hash url to create a unique ID.""" return hashlib.sha256(url.encode("utf-8")).hexdigest()
Python
4
tbarbette/core
homeassistant/components/nightscout/utils.py
[ "Apache-2.0" ]
***************************** * Sample Session from Section 7.5, * "The Concurrency Workbench: A Semantics-Based Tool for * the Verification of Concurrent Systems", by Rance Cleaveland, * Joachim Parrow, and Bernhard Steffen * ACM Transactions on Programming Languages and Systems * January, 1993, Volume 15, Number 1 **...
Redcode
3
dkuspawono/TILT-Compiler
BenchData/toplas.cw
[ "MIT-CMU" ]
DeprecationCopView = require '../lib/deprecation-cop-view' describe "DeprecationCop", -> [activationPromise, workspaceElement] = [] beforeEach -> workspaceElement = atom.views.getView(atom.workspace) activationPromise = atom.packages.activatePackage('deprecation-cop') expect(atom.workspace.getActivePa...
CoffeeScript
3
davidbertsch/atom
packages/deprecation-cop/spec/deprecation-cop-spec.coffee
[ "MIT" ]
% Prolog type rules for Lark. % a Type = type(Perm, Base) % a Base = base(Kind, Name, [Type]) % a Kind = struct | class % a Perm = own | var(Var) ? access(Perm1, type(PermT, BaseT), type(PermO, BaseO)) :- permits(PermT, Perm1), applyAccessPerm(Perm1, BaseT, PermO), applyOwnerPerm(Perm1, BaseT, BaseO). ap...
Prolog
4
tolziplohu/lark
notes/rules.prolog
[ "Apache-2.0", "MIT" ]
/* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ #include <AK/LexicalPath.h> #include <LibCore/ArgsParser.h> #include <stdio.h> #include <unistd.h> int main(int argc, char** argv) { if (pledge("stdio cpath", nullptr) < 0) { perror("pledge"...
C++
3
r00ster91/serenity
Userland/Utilities/ln.cpp
[ "BSD-2-Clause" ]
# configuration file for util/mkerr.pl # # use like this: # # perl ../../../util/mkerr.pl -conf rsaref.ec \ # -nostatic -staticloader -write *.c L RSAREF rsaref_err.h rsaref_err.c
eC
3
jiangzhu1212/oooii
Ouroboros/External/OpenSSL/openssl-1.0.0e/demos/engines/rsaref/rsaref.ec
[ "MIT" ]
-- Copyright 2021 Jeff Foley. All rights reserved. -- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. name = "SpyOnWeb" type = "scrape" function start() set_rate_limit(2) end function horizontal(ctx, domain) local page, err = request(ctx, {url=build_url(domain)}...
Ada
4
Elon143/Amass
resources/scripts/scrape/spyonweb.ads
[ "Apache-2.0" ]
# Generate chromatic sequence "k" "48 + (2 * !12)" kona "maj" "s:0 2 4 5 7 9 11;do:{(s@(!x)!#s)+(12*((!x)%#s))+48};do 14" kona # cycle through generated table 0.1 dmetro dup 0 pset # frequency from tseq 0 "maj" tseq mtof # amplitude 0.3 # carrier 1 # randomized modulator 0 p 1 4 trand floor # randomized mod index ...
SourcePawn
2
aleatoricforest/Sporth
examples/kona.sp
[ "MIT" ]
%% %unicode 6.1 %public %class UnicodeScripts_6_1_extensions_1 %type int %standalone %include ../../resources/common-unicode-all-enumerated-property-defined-values-only-java %% <<EOF>> { printOutput(); return 1; } \p{Script_Extensions:Arabic} { setCurCharPropertyValue("Script_Extensions:Arabic"); } \p{Script_Exten...
JFlex
4
Mivik/jflex
testsuite/testcases/src/test/cases/unicode-scripts/UnicodeScripts_6_1_extensions_1.flex
[ "BSD-3-Clause" ]