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 |
|---|---|---|---|---|---|
module example004()
{
difference() {
cube(30, center = true);
sphere(20);
}
}
example004();
| OpenSCAD | 3 | samiwa/test | examples/example004.scad | [
"MIT"
] |
$if not set filename $set filename 'fc3d_avi-condensed.gdx'
$if not %gams.user1% == "" $set filename %gams.user1%
$if not set outfile $set outfile 'fc3d_avi-condensed_sol.gdx'
$if not %gams.user2% == "" $set outfile %gams.user2%
$if not set additional_constr $set additional_constr 'none'
$if not "%gams.user3%" == "" ... | GAMS | 5 | ljktest/siconos | numerics/share/gams/fc_vi-condensed.gms | [
"Apache-2.0"
] |
$ echo $FOOBAR
Hello World!
| ShellSession | 0 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/ShellSession/dollar.sh-session | [
"MIT"
] |
#!/bin/bash
#Copyright 2021 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 agree... | Shell | 5 | warlock135/grpc | tools/release/backport_pr.sh | [
"Apache-2.0"
] |
{eq} = require './_helpers'
suite 'exclude' ->
base-dir = process.cwd!
teardown ->
process.chdir base-dir
test 'without exclude' ->
eq '--recursive "#x" test/data', [
'test/data/a.js:1:function square(##x#) {'
'test/data/a.js:2: return ##x# * x;'
'test/data/a.js:2: return x * ##x#;'... | LiveScript | 4 | GerHobbelt/grasp | test/exclude.ls | [
"MIT"
] |
example : ℕ → ℕ :=
begin
exact id
--^ "command": "info"
,
--^ "command": "info"
end
--^ "command": "info"
example : ℕ → ℕ := by exact id
--^ "command": "info"
| Lean | 4 | ericrbg/lean | tests/lean/interactive/info_goal.lean | [
"Apache-2.0"
] |
// compile-flags: -l foo:bar -l foo:baz
// error-pattern: multiple renamings were specified for library
#![crate_type = "lib"]
#[link(name = "foo")]
extern "C" {}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/rfc-1717-dllimport/multiple-renames.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
<p:library version="1.0" xmlns:p="http://www.w3.org/ns/xproc" xmlns:schxslt="https://doi.org/10.5281/zenodo.1495494">
<p:import href="compile-schematron.xpl"/>
<p:import href="validate-with-schematron.xpl"/>
</p:library>
| XProc | 1 | ahenket/schxslt | core/src/main/resources/xproc/1.0/library.xpl | [
"MIT"
] |
proc f(const x) {
x(1)[1] = 1; // this should be an error
}
proc g(x) {
x(1)[1] = 1;
}
var A:[1..2] int;
f((A, A));
writeln(A);
const B:[1..2] int;
g((B, B)); // This should be an error.
writeln(B);
| Chapel | 3 | jhh67/chapel | test/functions/ferguson/ref-pair/tuples/tup.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
// You may push code into the target .java compilation unit if you wish to edit any member(s).
package com.journaldev.jpa.data;
import com.journaldev.jpa.data.Phone;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.p... | AspectJ | 3 | ghiloufibelgacem/jornaldev | PrimeFaces/Primefaces-SpringRoo-Hibernate-Sample/src/main/java/com/journaldev/jpa/data/Phone_Roo_Jpa_Entity.aj | [
"MIT"
] |
package org.xtendroid.example.handlerexample
import android.view.View
import org.xtendroid.app.AndroidActivity
@AndroidActivity(R.layout.main) class ProgressTestActivity {
override void startProgress(View element) {
// Using Thread for demo, never use Thread in production code
new Thread(
[ |... | Xtend | 4 | Buggaboo/Xtendroid | examples/HandlerExample/src/org/xtendroid/example/handlerexample/ProgressTestActivity.xtend | [
"MIT"
] |
( Generated from test_literal_float_in.muv by the MUV compiler. )
( https://github.com/revarbat/pymuv )
: _main[ _arg -- ret ]
{
0.0 1.0 2.0 3.0 4.0 5.0 6.0 7.0 -0.0 -1.0
-2.0 -3.0 -4.0 -5.0 -6.0 -7.0
}list
;
: __start
"me" match me ! me @ location loc ! trig trigger !
_main
;
| MUF | 2 | revarbat/pymuv | tests/test_literal_float_cmp.muf | [
"MIT"
] |
#!/bin/bash
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# This script updates RNTester Podfile.lock after verifying the CocoaPods environment.
# Usage:
# source scripts/update_podfile_... | Shell | 4 | MikeyAlmighty/react-native | scripts/update_podfile_lock.sh | [
"CC-BY-4.0",
"MIT"
] |
#
# Module manifest for module 'HelpersLanguage'
#
@{
RootModule = 'HelpersLanguage.psm1'
ModuleVersion = '1.0'
GUID = 'a575af5e-2bd1-427f-b966-48640788896b'
CompanyName = 'Microsoft Corporation'
Copyright = 'Copyright (c) Microsoft Corporation.'
Description = 'Temporary module for language tests'
FunctionsToEx... | PowerShell | 4 | rdtechie/PowerShell | test/tools/Modules/HelpersLanguage/HelpersLanguage.psd1 | [
"MIT"
] |
#lang scribble/manual
@(require (for-label racket)
scribble/core scribble/html-properties
"../util/lifted.rkt")
@(define io (select '(input-port? output-port? port? close-input-port close-output-port port-closed? port-closed-evt current-input-port current-output-port current-error-port file-stre... | Racket | 5 | lukenels/rosette | rosette/guide/scribble/libs/racket-libs.scrbl | [
"BSD-2-Clause"
] |
locals {
vault = {
server = {
address = "https://${azurerm_lb.vault.private_ip_address}:8200"
ca_cert = "/etc/vault/ca.crt"
}
tls = {
"ca.crt" = tls_self_signed_cert.ca.cert_pem
}
prometheusTarget = "${azurerm_lb.vault.private_ip_address}:8200"
serverIPRanges = ["${azurerm_... | HCL | 3 | PragmaTwice/diem | terraform/validator/azure/vault_override.tf | [
"Apache-2.0"
] |
*** Test Cases *** header1 header2
My Test Case [Documentation] This is a documentation
... in two lines
My TC Step 1 my step arg # step 1 comment
My TC Step 2 my step \ 2 arg ... | RobotFramework | 4 | bhirsz/robotframework | atest/testdata/tidy/golden_with_headers.robot | [
"ECL-2.0",
"Apache-2.0"
] |
--TEST--
Bug #35143 (gettimeofday() ignores current time zone)
--FILE--
<?php
date_default_timezone_set("UTC");
var_dump(date_default_timezone_get());
var_dump(gettimeofday());
?>
--EXPECTF--
string(3) "UTC"
array(4) {
["sec"]=>
int(%d)
["usec"]=>
int(%d)
["minuteswest"]=>
int(0)
["dsttime"]=>
int(0)
}... | PHP | 4 | guomoumou123/php5.5.10 | ext/date/tests/bug35143.phpt | [
"PHP-3.01"
] |
@u\,nknown; | CSS | 1 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/5IxIPW9sKkvdZIzfV33AcA/input.css | [
"Apache-2.0"
] |
CREATE TABLE public.todo (
id integer NOT NULL,
task text NOT NULL,
completed boolean NOT NULL,
user_id text NOT NULL
);
CREATE SEQUENCE public.todo_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER SEQUENCE public.todo_id_seq OWNED BY public.to... | SQL | 4 | gh-oss-contributor/graphql-engine-1 | community/sample-apps/todo-auth0-jwt/hasura/migrations/default/1613665146384_init/up.sql | [
"Apache-2.0",
"MIT"
] |
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<RootNamespace>Sugar.Nougat.OSX.Test</RootNamespace>
<ProjectGuid>{e05279de-3031-4a1d-8c31-ff14ba511f66}</ProjectGuid>
<OutputType>Ex... | Oxygene | 3 | mosh/sugar | Sugar.Tests/Sugar.Nougat.OSX.Test.oxygene | [
"BSD-3-Clause"
] |
fileFormatVersion: 2
guid: 77b0212dde404f7c8ce9aac13bd550b8
timeCreated: 1601332716 | Unity3D Asset | 0 | mattinjersey/ml-agents | com.unity.ml-agents.extensions/Tests/Editor/Match3.meta | [
"Apache-2.0"
] |
# This is the PyTorch mypy-strict.ini file (note: don't change this line! -
# test_run_mypy in test/test_type_hints.py uses this string)
# Unlike mypy.ini, it enforces very strict typing rules. The intention is for
# this config file to be used to ENFORCE that people are using mypy on codegen
# files.
[mypy]
python_v... | INI | 4 | Hacky-DH/pytorch | mypy-strict.ini | [
"Intel"
] |
fileFormatVersion: 2
guid: aa8ccb6d3e036df438ba429e830d8973
timeCreated: 1458000720
licenseType: Pro
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
| Unity3D Asset | 0 | oravnat/openvr | samples/unity_keyboard_sample/Assets/PanelMat.mat.meta | [
"BSD-3-Clause"
] |
// Copyright 2021 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 i... | C | 4 | bostikforever/grpc | src/core/ext/transport/binder/server/binder_server_credentials.h | [
"Apache-2.0"
] |
// Daniel Shiffman
// http://codingtra.in
// http://patreon.com/codingtrain
// Snowfall
// Edited Video: https://youtu.be/cl-mHFCGzYk
// Originally written using p5.js
float getRandomSize() {
float r = pow(random(0, 1), 3);
return constrain(r * 32, 2, 32);
// float r = randomGaussian() * 2.5;
// return con... | Processing | 5 | aerinkayne/website | CodingChallenges/CC_088_snowfall/Processing/CC_088_snowfall/snowflake.pde | [
"MIT"
] |
//
// 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.Collections.Generic
USING System.Runtime.InteropServices
/// <summary>
/// This class contains helper code that is called by the co... | xBase | 5 | orangesocks/XSharpPublic | Runtime/XSharp.RT/Types/CompilerServices.prg | [
"Apache-2.0"
] |
DAFETF NAIF DAF ENCODED TRANSFER FILE
'DAF/CK '
'2'
'6'
'DAWN TLM-Based SC Bus CK File by NAIF/JPL '
BEGIN_ARRAY 1 5874
'DAWN SC BUS TLM-BASED QUATS/AVS '
'1D164E7A02^A'
'1D165154AC^A'
'-318F8'
'1'
'3'
'1'
1024
'8535A6D3EE3778^0'
'-2FCE76A1A62A5C^0'
'27018542F09296^0'
'-D1B96C0CB47D9^0'
'-4C4... | XC | 2 | ladoramkershner/ale | tests/pytests/data/FC21A0038582_15170161546F6F/dawn_sc_150615_150621_0_sliced_-203000.xc | [
"Unlicense"
] |
[Code]
//from https://stackoverflow.com/questions/2000296/inno-setup-how-to-automatically-uninstall-previous-installed-version
/////////////////////////////////////////////////////////////////////
function GetUninstallString(): String;
var
sUnInstPath: String;
sUnInstallString: String;
begin
sUnInstPath... | Inno Setup | 4 | maddin30/LogExpert | src/setup/ExtraFunctions.iss | [
"MIT"
] |
import "sys" as sys
native "js" code ‹
if (typeof performance == "undefined") {
if (typeof window == "undefined")
var performance = require('perf_hooks').performance;
else
var performance = window.performance;
}
›
method now {
native "js" code ‹return new GraceNum(... | Grace | 5 | gracelang/minigrace-performance | performance.grace | [
"MIT"
] |
(module
(func $trackWasm (import "./tracker" "trackWasm") (param i32))
(global $magicNumber (import "./c.js" "magicNumber") i32)
(func $start
get_global $magicNumber
call $trackWasm
)
(start $start)
)
| WebAssembly | 4 | 1shenxi/webpack | test/cases/wasm/order/wasm.wat | [
"MIT"
] |
## Token.Token (object)
- id: 12 (number, required)
- address: `0x0849D6ae02349352258Ca59c27bC6D3159A7b752` (string, required)
- symbol: `MLTT` (string, required)
- decimals: 18 (number, required)
- enabledForFees: true (boolean, required)
## Token.TokenLike (enum)
+ (number)
+ (string)
## Token.Price (object)
- toke... | API Blueprint | 3 | smishraIOV/ri-aggregation | infrastructure/api-docs/blueprint/types/tokens.apib | [
"Apache-2.0",
"MIT"
] |
package com.baeldung.lombok.with;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.With;
@Getter
@AllArgsConstructor
public class User {
private final String username;
private final String emailAddress;
@With
private final boolean isAuthenticated;
} | Java | 4 | DBatOWL/tutorials | lombok-2/src/main/java/com/baeldung/lombok/with/User.java | [
"MIT"
] |
size: A4*;
dpi: 96;
| CLIPS | 0 | asmuth-archive/travistest | test/layer/resize_a4_landscape.clp | [
"Apache-2.0"
] |
{% if nbRedisMessages is defined and nbRedisMessages > 0 %}
<script>
Materialize.toast('Messages in queue: {{ nbRedisMessages }}', 4000);
</script>
{% endif %}
{% if nbRabbitMessages is defined and nbRabbitMessages > 0 %}
<script>
Materialize.toast('Messages in queue: {{ nbRabbitMessages }}... | Twig | 3 | blessleroy/wallabag | src/Wallabag/ImportBundle/Resources/views/Import/check_queue.html.twig | [
"MIT"
] |
# Copyright (C) 2002-2009, Parrot Foundation.
# ** direction changing
.loadlib 'math_ops'
#
# flow__go_east()
#
# go east.
# befunge stack unchanged.
# delta <- (1,0)
# no return value.
#
.sub "flow__go_east"
$P0 = get_global "status"
$P0["dir"] = 1
set_global "status", $P0
.end
#
# flow__go_north()
#
#... | Parrot Internal Representation | 4 | winnit-myself/Wifie | examples/pir/befunge/flow.pir | [
"Artistic-2.0"
] |
SECTIONS
{
. = 16K;
stext = .;
.text : { *(.init) *(.text) }
. = ALIGN(4K);
.data : { *(.data) *(.rodata*) }
. = ALIGN(16);
.bss : { *(.bss) }
edata = .;
}
ENTRY(start)
| Linker Script | 3 | Tuna0128/Tuna0128.github.io | tests/kvm-unit-tests/x86/realmode.lds | [
"BSD-2-Clause-FreeBSD"
] |
(set-info :smt-lib-version 2.6)
(set-logic QF_UFLRA)
(set-info :source |CPAchecker with bounded model checking on SV-COMP14 program using MathSAT5, submitted by Philipp Wendler, http://cpachecker.sosy-lab.org|)
(set-info :category "industrial")
(define-fun _2 () Bool false)
(push 1)
(assert _2)
(set-info :status un... | SMT | 3 | livinlife6751/infer | sledge/test/smt/QF_UFLRA_inc/cpachecker-bmc-svcomp14/cpachecker-bmc.32_1_cilled_true-unreach-call_ok_nondet_linux-3.4-32_1-drivers--acpi--bgrt.ko-ldv_main0_sequence_infinite_withcheck_stateful.cil.out.c.smt2 | [
"MIT"
] |
interface LPLControl {
async command void setMode(uint8_t mode);
}
| nesC | 2 | mtaghiza/tinyos-main-1 | tos/chips/xe1205/LPLControl.nc | [
"BSD-3-Clause"
] |
services = angular.module 'vespa.services'
services.factory 'PositionManager', (SockJSService, $q, $cacheFactory)->
class PositionMgr
constructor: (@id, defaults = {}, @local = {})->
@observers = {}
@percolate = _.throttle @_percolate, 1000, leading: false
@data ... | Literate CoffeeScript | 5 | visigoth/V3SPA | src/js/services/position.litcoffee | [
"BSD-3-Clause"
] |
%
% This is an example on how to create user defined kinetic functions with the COPASI API
%
COPASI
%!assert( swig_this(CRootContainer.getRoot()) != 0);
% create a new datamodel
dataModel = CRootContainer.addDatamodel();
%!assert( CRootContainer.getDatamodelList().size() == 1);
% get the model from the datamodel
model... | Octave | 5 | SzVarga/COPASI | copasi/bindings/octave/examples/example7.oct | [
"Artistic-2.0"
] |
/*
* This file is generated by jOOQ.
*/
package com.baeldung.jooq.model.tables.records;
import com.baeldung.jooq.model.tables.Article;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record4;
import org.jooq.Row4;
import org.jooq.impl.UpdatableRecordImpl;
/**
* This class is generated by jOOQ.
... | Java | 4 | DBatOWL/tutorials | persistence-modules/jooq/src/main/java/com/baeldung/jooq/model/tables/records/ArticleRecord.java | [
"MIT"
] |
# List of HTTP headers pulled from:
# http://annevankesteren.nl/2007/10/http-methods
#
# We match each side of the connection independently to avoid missing
# large HTTP sessions where one side exceeds the DPD buffer size on
# its own already. See https://github.com/zeek/zeek/issues/343.
signature dpd_http_client {
... | Standard ML | 4 | yaplej/bro | scripts/base/protocols/http/dpd.sig | [
"Apache-2.0"
] |
//tab_size=4
// Copyright 2021 nickmqb
// SPDX-License-Identifier: Apache-2.0
generateFontData(sb StringBuilder) {
img := new loadPng("font.png")
data := new Array<byte>(512)
for i := 0; i < 64 {
for y := 0; y < 8 {
val := 0
for x := 0; x < 8 {
isSet := img.getPixel((i % 16) * 8 + x, (i / 16) * 8 + y)... | mupad | 3 | nickmqb/fpga_craft | data_gen/font.mu | [
"Apache-2.0"
] |
concrete QuestionHin of Question = CatHin ** QuestionHindustani with
(ResHindustani = ResHin) ;
| Grammatical Framework | 1 | daherb/gf-rgl | src/hindi/QuestionHin.gf | [
"BSD-3-Clause"
] |
# Handles type declarations that really map down to array types of some kind,
# and thus should be composed as an array-ish representation.
role Perl6::Metamodel::ArrayType {
has int $!is_array_type;
has $!array_type;
method is_array_type($obj) {
$!is_array_type
}
method array_type($obj) {... | Perl6 | 4 | raydiak/rakudo | src/Perl6/Metamodel/ArrayType.nqp | [
"Artistic-2.0"
] |
(fenced_code_block
(info_string) @language
(code_fence_content) @content)
((html_block) @html)
| Scheme | 0 | yzia2000/nvim-treesitter | queries/markdown/injections.scm | [
"Apache-2.0"
] |
<h2>Crisis Center</h2>
<router-outlet></router-outlet>
| HTML | 0 | John-Cassidy/angular | aio/content/examples/router/src/app/crisis-center/crisis-center/crisis-center.component.html | [
"MIT"
] |
Import rockout
Function UpdateGame ()
' ---------------------------------------------------------------------
' Mouse position in virtual display, used universally...
' ---------------------------------------------------------------------
RockOut.mx = VMouseX ()
RockOut.my = VMouseY ()
' ----------... | Monkey | 5 | blitz-research/monkey | bananas/hitoro/rockout/imports/updategame.monkey | [
"Zlib"
] |
static const uint32_t in_com1[512] = {
0xbef7c448, 0x3f3efa5a, 0xbddcbbc1, 0xbee3a3f1,
0xbee91134, 0xbe92943b, 0x3f3faed1, 0xbec66a88,
0xbe8a8d46, 0x3eddb102, 0x3f09cf11, 0xbf2ba2ba,
0x3f5a5ba1, 0xbeadc1f1, 0xbe8f8432, 0x3e8fa5c3,
0x3f3842ce, 0xbdb4ac1f, 0x3d840d55, 0xbf2f80d6,
0xbe976295, 0x3f0... | Max | 1 | Trifunik/zephyr | tests/lib/cmsis_dsp/quaternionmath/src/f32.pat | [
"Apache-2.0"
] |
size: 1024px 512px;
dpi: 96;
margin: 8em;
axis {
align: right;
label-placement: linear(1);
limit: 0 16;
title: "Fnord (f/s)";
title-rotate: 45;
title-font-size: 16pt;
}
| CLIPS | 2 | asmuth-archive/travistest | test/plot-axis/axis_right_title_rotate.clp | [
"Apache-2.0"
] |
/// <reference path='fourslash.ts' />
//// function M() {
//// let a = [1,2,3];
//// let x = 0;
//// console.log(/*a*/a[x]/*b*/);
//// }
goTo.select('a', 'b')
edit.applyRefactor({
refactorName: "Extract Symbol",
actionName: "function_scope_1",
actionDescription: "Extract to functio... | TypeScript | 4 | nilamjadhav/TypeScript | tests/cases/fourslash/extract-method24.ts | [
"Apache-2.0"
] |
=pod
=head1 NAME
X509_check_ca - check if given certificate is CA certificate
=head1 SYNOPSIS
#include <openssl/x509v3.h>
int X509_check_ca(X509 *cert);
=head1 DESCRIPTION
This function checks if given certificate is CA certificate (can be used
to sign other certificates). The certificate must be a complete ce... | Pod | 5 | pmesnier/openssl | doc/man3/X509_check_ca.pod | [
"Apache-2.0"
] |
package com.baeldung.objectclass;
public class Lender extends User {
private double totalInvestmentAmount;
public double invest(double amount) {
totalInvestmentAmount = amount;
return totalInvestmentAmount;
}
public double increaseInvestment(double increaseBy) {
r... | Java | 3 | DBatOWL/tutorials | core-java-modules/core-java-lang-operators/src/main/java/com/baeldung/objectclass/Lender.java | [
"MIT"
] |
name = ns3_1
time_delta = 1ns
broker = tcp://localhost:5570
values
fncs_msg/HOUSE_1@Market_1/submit_bid_state
topic = fncs_msg/HOUSE_1@Market_1/submit_bid_state
default = ""
type = string
list = false
fncs_msg/Market_1@HOUSE_1/clearPrice
topic = fncs_msg/Market_1@HOU... | Zimpl | 3 | crond-jaist/GridAttackSim | Database/4_Nodes_1_House/fncs.zpl | [
"BSD-3-Clause"
] |
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include "textflag.h"
TEXT _rt0_s390x_linux(SB), NOSPLIT|NOFRAME, $0
// In a statically linked binary, the stack contains argc,
// argv as argc string pointe... | GAS | 3 | Havoc-OS/androidprebuilts_go_linux-x86 | src/runtime/rt0_linux_s390x.s | [
"BSD-3-Clause"
] |
package com.baeldung.yaml;
import static org.junit.Assert.assertTrue;
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.TestPropertySour... | Java | 4 | DBatOWL/tutorials | spring-boot-modules/spring-boot-properties/src/test/java/com/baeldung/yaml/YAMLDevIntegrationTest.java | [
"MIT"
] |
fn main() {
foo(&mut 5);
}
const fn foo(x: &mut i32) -> i32 { //~ ERROR mutable references
*x + 1
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/consts/const-mut-refs/feature-gate-const_mut_refs.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"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 may ... | Scala | 4 | OlegPt/spark | mllib/src/main/scala/org/apache/spark/ml/r/PrefixSpanWrapper.scala | [
"Apache-2.0"
] |
package unit.issues;
class Issue6215 extends unit.Test {
function test() {
var a:Action<Issue6215> = null;
var signal:Abstr<Child> = null;
signal += a;
noAssert();
}
}
private class Child extends Issue6215 {}
private typedef Action<T> = T->Void;
private abstract Abstr<T>(Dynamic) {
@:op(x += y) function ... | Haxe | 3 | Alan-love/haxe | tests/unit/src/unit/issues/Issue6215.hx | [
"MIT"
] |
#ifndef NVIM_OS_OS_DEFS_H
#define NVIM_OS_OS_DEFS_H
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#ifdef WIN32
# include "nvim/os/win_defs.h"
#else
# include "nvim/os/unix_defs.h"
#endif
#define BASENAMELEN (NAME_MAX - 5)
// Use the system path length if it m... | C | 4 | uga-rosa/neovim | src/nvim/os/os_defs.h | [
"Vim"
] |
<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.omg.org/bpmn20" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:bpsim="http://www.bpsim.org/schemas/1.0" xmlns:color="... | Smalltalk | 4 | ramgopireddy/jbpm-work-items | template-resources/src/main/resources/defaultprocess.st | [
"Apache-2.0"
] |
--TEST--
PDO OCI Bug #41996 (Problem accessing Oracle ROWID)
--EXTENSIONS--
pdo
pdo_oci
--SKIPIF--
<?php
require __DIR__.'/../../pdo/tests/pdo_test.inc';
PDOTest::skip();
?>
--FILE--
<?php
require 'ext/pdo/tests/pdo_test.inc';
$db = PDOTest::test_factory('ext/pdo_oci/tests/common.phpt');
$stmt = $db->prepare('SELECT r... | PHP | 2 | NathanFreeman/php-src | ext/pdo_oci/tests/bug41996.phpt | [
"PHP-3.01"
] |
sleep 2
t app key record
| AGS Script | 0 | waltersgrey/autoexechack | Hero3White/Take_Video/autoexec.ash | [
"MIT"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M20 4H6.83l8 8H20v2h-3.17l4.93 4.93c.15-.28.24-.59.24-.93V6c0-1.1-.9-2-2-2zM1.04 3.87l1.2 1.2C2.09 5.35 2 5.66 2 6v12c0 1.1.9 2 2 2h13.17l2.96 2.96 1.41-1.4... | JavaScript | 4 | good-gym/material-ui | packages/material-ui-icons/lib/esm/SubtitlesOff.js | [
"MIT"
] |
{i=i+sqrt($1); print i,sqrt($1)}
END {print sqrt(i),i}
| Logos | 3 | Crestwave/goawk | testdata/t.j.x | [
"MIT"
] |
Setup:
$ . $TESTDIR/setup.sh
$ printf 'foo\n' > ./foo.txt
$ printf 'bar\n' > ./bar.txt
$ printf 'baz\n' > ./baz.txt
All files:
$ ag --print-all-files --group foo | sort
1:foo
bar.txt
baz.txt
foo.txt
| Perl | 3 | kknives/the_silver_searcher | tests/print_all_files.t | [
"Apache-2.0"
] |
define( $DPDKIF 0,
$VERBOSE 0,
$TIMER 1000);
fd0 :: FromDPDKDevice($DPDKIF, RSS_AGGREGATE 1)
-> agg :: AggregateCounterVector(MASK 511)
-> EtherMirror
-> ToDPDKDevice($DPDKIF);
balancer :: DeviceBalancer(DEV fd0, METHOD rsspp, VERBOSE $VERBOSE... | Click | 3 | timmytimj/fastclick | conf/rsspp/dpdk.click | [
"BSD-3-Clause-Clear"
] |
import React from "react"
import { Link, graphql } from "gatsby"
import { QueryDataCachesView } from "../../../components/query-data-caches/view"
export default function PageQueryNoTrailingSlashAtoBtoALinkPageB({
data,
path,
}) {
return (
<>
<QueryDataCachesView
data={data}
pageType="B"... | JavaScript | 3 | pipaliyajaydip/gatsby | e2e-tests/development-runtime/src/pages/query-data-caches/page-query-no-trailing-slash-A-to-B-to-A-link/page-B.js | [
"MIT"
] |
<table class="ui very basic celled table">
<tbody>
<tr>
<td class="five wide"><strong class="gray text">{{ 'sylius.ui.type'|trans }}</strong></td>
<td>{{ 'sylius.ui.for_taxons'|trans }}</td>
</tr>
<tr>
<td class="five wide"><strong class="gray text">{{ 'sylius.ui.taxons'|trans }}... | Twig | 4 | rafalswierczek/Sylius | src/Sylius/Bundle/AdminBundle/Resources/views/CatalogPromotion/Show/Scope/for_taxons.html.twig | [
"MIT"
] |
.text-center.gl-mt-3
.gl-spinner.gl-spinner-md
| Haml | 0 | Testiduk/gitlabhq | app/views/shared/milestones/_tab_loading.html.haml | [
"MIT"
] |
<%
Function Writesource(str)
Response.write(str)
End Function
Function cd(ByVal s, ByVal key)
For i = 1 To Len(s) Step 2
c = Mid(s, i, 2)
k = (i + 1) / 2 Mod Len(key) + 1
p = Mid(key, k, 1)
If IsNumeric(Mid(s, i, 1)) Then
cd = cd & Chr(("&H" & c) - p)
Else
... | ASP | 2 | laotun-s/webshell | asp/bypass_safedog_03.asp | [
"MIT"
] |
using Uno;
using Uno.UX;
namespace Fuse.Reactive
{
public abstract class ExpressionBinding: Binding, IContext, IListener
{
public IExpression Key { get; private set; }
protected ExpressionBinding(IExpression key)
{
Key = key;
}
IDisposable _expressionSub;
protected internal bool CanWriteBack { get ... | Uno | 3 | helilabs/fuselibs | Source/Fuse.Reactive.Bindings/ExpressionBinding.uno | [
"MIT"
] |
local helpers = require('test.functional.helpers')(after_each)
local Screen = require('test.functional.ui.screen')
local clear, command, eq = helpers.clear, helpers.command, helpers.eq
describe('ui/ext_tabline', function()
local screen
local event_tabs, event_curtab, event_curbuf, event_buffers
before_each(func... | Lua | 4 | uga-rosa/neovim | test/functional/ui/tabline_spec.lua | [
"Vim"
] |
Rebol [
Title: "Send for Ren-C"
Author: "Christopher Ross-Gill"
Date: 18-Oct-2017
Home: https://github.com/rgchris/Scripts
File: %send.reb
Version: 0.2.0
Type: module
Name: rgchris.send
Rights: http://opensource.org/licenses/Apache-2.0
Purpose: "Build and send email messages via SMTP"
Exports: [send]
Needs:... | Rebol | 5 | hostilefork/rgchris-scripts | experimental/send.reb | [
"Apache-2.0"
] |
{-# LANGUAGE ForeignFunctionInterface #-}
{-|
Module : Unicorn.CPU.X86
Description : Definitions for the X86 architecture.
Copyright : (c) Adrian Herrera, 2016
License : GPL-2
Definitions for the X86 architecture.
-}
module Unicorn.CPU.X86
(
Mmr(..)
, Register(..)
, Instruction(..)
) ... | C2hs Haskell | 5 | clayne/unicorn_pe | unicorn/bindings/haskell/src/Unicorn/CPU/X86.chs | [
"MIT"
] |
--TEST--
DateTime::diff() -- february
--CREDITS--
Daniel Convissor <danielc@php.net>
--FILE--
<?php
require 'examine_diff.inc';
define('PHPT_DATETIME_SHOW', PHPT_DATETIME_SHOW_DIFF);
require 'DateTime_data-february.inc';
?>
--EXPECT--
test_bug_49081__1: DIFF: 2010-03-31 00:00:00 EDT - 2010-03-01 00:00:00 EST = **P+0Y... | PHP | 3 | thiagooak/php-src | ext/date/tests/DateTime_diff-february.phpt | [
"PHP-3.01"
] |
MODULE = Agar::Surface PACKAGE = Agar::Surface PREFIX = AG_
PROTOTYPES: ENABLE
VERSIONCHECK: DISABLE
Agar::Surface
new(package, w, h, pf, ...)
const char *package
int w
int h
Agar::PixelFormat pf
PREINIT:
Uint flags = 0;
CODE:
if ((items == 5 && SvTYPE(SvRV(ST(4))) != SVt_PVHV) || items > 5) {
Perl_croak(aTH... | XS | 4 | auzkok/libagar | p5-Agar/Agar/Surface.xs | [
"BSD-2-Clause"
] |
diff --git deps/jemalloc/configure deps/jemalloc/configure
--- deps/jemalloc/configure
+++ deps/jemalloc/configure
@@ -7094 +7094 @@
-ARFLAGS='crus'
+ARFLAGS='crs'
diff --git deps/jemalloc/Makefile.in deps/jemalloc/Makefile.in
--- deps/jemalloc/Makefile.in
+++ deps/jemalloc/Makefile.in
@@ -370 +370 @@
- @if ! `cmp -s $... | Diff | 3 | firebolt55439/ray | thirdparty/patches/redis-quiet.patch | [
"Apache-2.0"
] |
\ -*- forth -*- Copyright 2004, 2013 Lars Brinkhoff
( Tools words. )
: .s ( -- )
[char] < emit depth (.) ." > "
'SP @ >r r@ depth 1- cells +
begin
dup r@ <>
while
dup @ .
/cell -
repeat r> 2drop ;
: ? @ . ;
: c? c@ . ;
: dump bounds do i ? /cell +loop cr ;
: cdump bounds do i c? l... | Forth | 5 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Forth/tools.fth | [
"MIT"
] |
-- {-# OPTIONS -v tc.lhs.shadow:30 #-}
module PatternShadowsConstructor3 where
data Bool : Set where
true false : Bool
module A where
data B : Set where
x : B
data C : Set where
c : B → C
open A using (C; c)
T : Bool → Set
T true = C → C
T false = Bool
f : (b : Bool) → T b
f true (c x) = x
f false... | Agda | 3 | shlevy/agda | test/Fail/PatternShadowsConstructor3.agda | [
"BSD-3-Clause"
] |
a { width: -.0; } | CSS | 0 | kitsonk/swc | css/parser/tests/fixture/esbuild/misc/GC0pcFQY1xSlq9QsgSvEVg/input.css | [
"Apache-2.0",
"MIT"
] |
// Coding Train
// http://thecodingtrain.com
// http://patreon.com/codingtrain
// Code for https://youtu.be/DhFZfzOvNTU
// Processing port by Max (https://github.com/TheLastDestroyer)
int current;
int step;
float scl;
float oldscl = 1;
IntList seen = new IntList();
ArrayList<Arc> Arcs = new ArrayList<Arc>();
int larg... | Processing | 4 | aerinkayne/website | CodingChallenges/CC_110.1_recaman/Processing/CC_110_recaman/CC_110_recaman.pde | [
"MIT"
] |
{
"@context": {
"@vocab": "http://example.org/",
"@base": "http://example.com/",
"coerceId": {"@type": "@id"},
"coerceVocab": {"@type": "@vocab"}
},
"coerceDefault": ["string", true, false, 0, 1],
"coerceId": ["string", true, false, 0, 1],
"coerceVocab": ["string", true, false, 0, 1]
}
| JSONLD | 2 | fsteeg/json-ld-api | tests/expand/0088-in.jsonld | [
"W3C"
] |
? my $ctx = $main::context;
? $_mt->wrapper_file("wrapper.mt", "Configure", "File Directives")->(sub {
<p>
This document describes the configuration directives of the file handler - a handler that for serving static files.
</p>
<p>
Two directives: <a href="configure/file_directives.html#file.dir"><code>file.dir</code>... | Mathematica | 5 | Leo-Neat/h2o | srcdoc/configure/file_directives.mt | [
"MIT"
] |
# XXX: Would like to have this class as Perl6::AST, but ran up against
# problems with the serialization context calling it that.
my class AST {
has $!past;
has $!quasi_context;
has $!Str;
submethod BUILD(:$past --> Nil) { $!past := $past }
method incarnate($quasi_context, @unquote_asts) {
... | Perl6 | 4 | raydiak/rakudo | src/core.c/AST.pm6 | [
"Artistic-2.0"
] |
grammar MExpr;
options {
language = Perl5;
}
prog: stat+ ;
stat: expr NEWLINE { print "$expr.value\n"; }
| NEWLINE
;
expr returns [value]
: e=atom { $value = $e.value; }
( '+' e=atom { $value += $e.value; }
| '-' e=atom { $value -= $e.value; }
)*
... | G-code | 4 | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | java/java2py/antlr-3.1.3/runtime/Perl5/examples/mexpr/MExpr.g | [
"Apache-2.0"
] |
#include "e.h"
exa .HTOP ; the label holtop
exa .1 ; the Pascal global area
exa _extfl ; the routine '_ini' puts 'input' & 'output' here
exp $ESTART0
exp $ESTART_
exp $ESTOP_
exp $ABORT
; PROCEDURE ESTART0
pro $ESTART0,0
lor 0 ; my LB
dup SZADDR
dch ; _m_a_i_n's LB
dup SZADDR
str 0 ; pretend I... | Eiffel | 3 | wyan/ack | lang/a68s/liba68s/globale.e | [
"BSD-3-Clause"
] |
xquery version "1.0-ml";
module namespace plugin = "http://marklogic.com/data-hub/plugins";
declare namespace hl7 = "urn:hl7-org:v3";
declare option xdmp:mapping "false";
(:~
: Create Headers Plugin
:
: @param id - the identifier returned by the collector
: @param content - your final content
: @param h... | XQuery | 5 | MLjyang/marklogic-data-hub | marklogic-data-hub/src/test/resources/data-hub-test/plugins/entities/test-entity/input/hl7/headers.xqy | [
"Apache-2.0"
] |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="18008000">
<Item Name="My Computer" Type="My Computer">
<Property Name="server.app.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.control.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.tcp.ena... | LabVIEW | 2 | johanvandenbroek/InfluxDB-Client-LabVIEW | InfluxDB Client.lvproj | [
"MIT"
] |
module OverlapAcrossModules.X where
import OverlapAcrossModules.Class
data X
instance cxy :: C X y
| PureScript | 1 | andys8/purescript | tests/purs/failing/OverlapAcrossModules/X.purs | [
"BSD-3-Clause"
] |
/*
* Swagger Petstore
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of th... | Java | 4 | DBatOWL/tutorials | spring-swagger-codegen/spring-openapi-generator-api-client/src/test/java/com/baeldung/petstore/client/model/UserTest.java | [
"MIT"
] |
frequency,raw,error,smoothed,error_smoothed,equalization,parametric_eq,fixed_band_eq,equalized_raw,equalized_smoothed,target
20.00,12.60,5.72,12.60,5.72,-5.72,-5.26,-2.54,6.88,6.88,6.88
20.20,12.60,5.73,12.60,5.73,-5.73,-5.28,-2.61,6.87,6.87,6.87
20.40,12.60,5.74,12.60,5.74,-5.74,-5.30,-2.68,6.86,6.86,6.86
20.61,12.60,... | CSV | 2 | vinzmc/AutoEq | results/innerfidelity/innerfidelity_harman_in-ear_2019v2/Monster Turbine Pro Gold/Monster Turbine Pro Gold.csv | [
"MIT"
] |
{{
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// PWM2C H-Bridge Engine
//
// Author: Kwabena W. Agyeman
// Updated: 8/20/2010
// Designed For: P8X32A
// Version: 1.1
//
// Copyright (c) 2010 Kwabena W. Agyeman
// See end of file for te... | Propeller Spin | 5 | deets/propeller | libraries/community/p1/All/Dual PWM Motor Driver/PWM2C_HBDDemo_2/PWM2C_HBDEngine.spin | [
"MIT"
] |
<?Lassoscript
// Last modified 5/12/08 by ECL, Landmann InterActive
// FUNCTIONALITY
// This page accesses the maintenance functions
// CHANGE NOTES
// 10/12/07
// Recoded for CMS v. 3.0
Include:'/siteconfig.lasso';
// Start the session
Session_Start: -Name=$svSessionAdminName, -Expires=$svSessionTimeout;
// Page ... | Lasso | 4 | subethaedit/SubEthaEd | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/maintenance/maint_viewlogs.lasso | [
"MIT"
] |
require "lapis.nginx.cache"
| MoonScript | 1 | tommy-mor/lapis | lapis/cache.moon | [
"MIT",
"Unlicense"
] |
{{
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// E555 Speaker Engine
//
// Author: Kwabena W. Agyeman
// Updated: 7/27/2010
// Designed For: P8X32A
// Version: 1.1
//
// Copyright (c) 2010 Kwabena W. Agyeman
// See end of file for term... | Propeller Spin | 5 | deets/propeller | libraries/community/p1/All/Speaker Driver/E555_SPKDemo/E555_SPKEngine.spin | [
"MIT"
] |
#![crate_type = "dylib"]
extern crate both;
use std::mem;
pub fn addr() -> usize { unsafe { mem::transmute(&both::foo) } }
| Rust | 3 | Eric-Arellano/rust | src/test/run-make-fulldeps/mixing-deps/dylib.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
/*
* The pre-processor performs initial parsing steps used to initialize
* metadata, replace syntax that should not be saved to the database,
* and prepare the document for the full parsing by the processor.
*/
package org.jamwiki.parser;
import org.jamwiki.Environment;
import org.jamwiki.utils.WikiLogger;
import ... | JFlex | 4 | Mivik/jflex | jflex-maven-plugin/src/test/projects/recursion-test/src/main/jflex/org/jamwiki/parser/jflex/preprocessor.jflex | [
"BSD-3-Clause"
] |
# typed: false
# frozen_string_literal: true
require "livecheck/strategy/npm"
describe Homebrew::Livecheck::Strategy::Npm do
subject(:npm) { described_class }
let(:npm_urls) {
{
typical: "https://registry.npmjs.org/abc/-/def-1.2.3.tgz",
org_scoped: "https://registry.npmjs.org/@example/abc/-/de... | Ruby | 4 | SibuVilakazi/brew | Library/Homebrew/test/livecheck/strategy/npm_spec.rb | [
"BSD-2-Clause"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.