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 |
|---|---|---|---|---|---|
'' =================================================================================================
''
'' File....... sdloader.spin (version 1.00)
'' Requires... SD Card and reader (FAT16), boot EEPROM must be 64K not 32K
'' Purpose.... resident loader to allow updates via SD card
'' Author..... Brian Riley, ... | Propeller Spin | 5 | deets/propeller | libraries/community/p1/All/SDLoader/sdloader.spin | [
"MIT"
] |
/**
* ${language_name}
*/
package io.cucumber.java.${normalized_language};
| Groovy Server Pages | 1 | sidharta/cucumber-jvm | java/src/main/groovy/package-info.java.gsp | [
"MIT"
] |
Feature: Special commands
@wip
Scenario: run refresh command
When we refresh completions
and we wait for prompt
then we see completions refresh started
| Cucumber | 3 | lyrl/mycli | test/features/specials.feature | [
"BSD-3-Clause"
] |
a { color: #aabccc } | CSS | 1 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/AocxkR5Gt30Hu6JV7J56Wg/input.css | [
"Apache-2.0"
] |
%%%-------------------------------------------------------------------
%%% @author dlive
%%% @copyright (C) 2019, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 06. Apr 2019 3:25 PM
%%%-------------------------------------------------------------------
-module(erlcat_tests).
-author("dlive").
-include_lib("eunit/includ... | Erlang | 3 | woozhijun/cat | lib/erlang/test/erlcat_tests.erl | [
"Apache-2.0"
] |
(************** Content-type: application/mathematica **************
CreatedBy='Mathematica 5.0'
Mathematica-Compatible Notebook
This notebook can be used with any Mathematica-compatible
application, such as Mathematica, MathReader or Publicon. The data
for the notebook starts... | Mathematica | 3 | junaidnaseer/daala | doc/noise-shape.nb | [
"BSD-2-Clause"
] |
{foreach $array as $item}
{$iterator->}
{/foreach} | Latte | 1 | timfel/netbeans | php/php.latte/test/unit/data/testfiles/completion/testIterator_01.latte | [
"Apache-2.0"
] |
<div class="spacer" style="height:{{ height }}px;"></div> | Liquid | 1 | noahcb/lit | website/src/_includes/partials/spacer.liquid | [
"Apache-2.0"
] |
-- Taken from an example from Autodesk's MAXScript reference:
-- http://help.autodesk.com/view/3DSMAX/2016/ENU/?guid=__files_GUID_84E24969_C175_4389_B9A6_3B2699B66785_htm
macroscript MoveToSurface
category: "HowTo"
(
fn g_filter o = superclassof o == Geometryclass
fn find_intersection z_node node_to_z = (
... | MAXScript | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/MAXScript/macro-1.mcr | [
"MIT"
] |
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=CHANGED-8" />
<title>CHANGED</title>
<link CHANGED="stylesheet" href="CHANGED/CHANGED.CHANGED">
<script CHANGED="CHANGED.js"></script>
</head>
<body>
<h1>CHANGED</h1>
<p>Intro to CHANGED</p>
<ul class="CHANGED">
<l... | HTML | 1 | ravitejavalluri/brackets | test/spec/FindReplace-known-goods/regexp-case-insensitive/foo.html | [
"MIT"
] |
[
(section)
] @fold
| Scheme | 0 | hmac/nvim-treesitter | queries/godot_resource/folds.scm | [
"Apache-2.0"
] |
<div class="ui image"></div> | HTML | 0 | 292388900/Semantic-UI | test/fixtures/transition.html | [
"MIT"
] |
/*
* Copyright 2014-2019 Jiří Janoušek <janousek.jiri@gmail.com>
*
* 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 copyright notice, this
* list of con... | Vala | 4 | xcffl/nuvolaruntime | src/nuvolakit-runner/components/developer/WebViewSidebar.vala | [
"BSD-2-Clause"
] |
/**
* ApplyReconciler.x10
*
* Rudra Distributed Learning Platform
*
* Copyright (c) IBM Corporation 2016
* 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... | X10 | 4 | milthorpe/rudra | x10/src/rudra/ApplyReconciler.x10 | [
"BSD-3-Clause"
] |
Mozilla/5.0 (Linux; Android 7.0; LG-H871 Build/NRD90U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.111 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 7.0; LG-H871 Build/NRD90U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.158 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 7.0; LG-H871 Build/N... | Text | 1 | 5tr1x/SecLists | Fuzzing/User-Agents/operating-platform/lg-h871.txt | [
"MIT"
] |
/*************************************************************************
* *
* YAP Prolog *
* *
* Yap Prolog was developed at NCCUP - Universidade do Porto *
* *
* Copyright L.Damas, V.S.Costa and Universidade do Porto 1985-1997 *
* *
************************************... | Prolog | 5 | KuroLevin/yap-6.3 | pl/undefined.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
// Copyright 2021 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// CPU specific code for arm independent of OS goes here.
#include <sys/syscall.h>
#include <unistd.h>
#if V8_TARGET_ARCH_RISCV64
#include "src/codeg... | C++ | 3 | EXHades/v8 | src/codegen/riscv64/cpu-riscv64.cc | [
"BSD-3-Clause"
] |
({
type: 'recycle-list',
attr: {
append: 'tree',
listData: [
{ type: 'A', dynamic: 'decimal', two: '2', four: '4' },
{ type: 'A', dynamic: 'binary', two: '10', four: '100' }
],
switch: 'type',
alias: 'item'
},
children: [{
type: 'cell-slot',
attr: { append: 'tree', case: ... | JavaScript | 3 | Rewats/vue | test/weex/cases/recycle-list/text-node.vdom.js | [
"MIT"
] |
-- CqlStorage
libdata = LOAD 'cql://libdata/libout' USING CqlStorage();
book_by_mail = FILTER libdata BY C_OUT_TY == 'BM';
libdata_buildings = FILTER libdata BY SQ_FEET > 0;
state_flat = FOREACH libdata_buildings GENERATE STABR AS State,SQ_FEET AS SquareFeet;
state_grouped = GROUP state_flat BY State;
state_footage = ... | PigLatin | 4 | mghosh4/cassandra | examples/pig/example-script-cql.pig | [
"Apache-2.0"
] |
for i from 0 to 2
console.log does-not-exist
| LiveScript | 0 | danielo515/LiveScript | test/data/runtime-error.ls | [
"MIT"
] |
(*
* 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.
*)
val iter_all : unit Lwt.t list -> unit Lwt.t
val all : 'a Lwt.t list -> 'a list Lwt.t
val output_graph : Lwt_io.output_channel ->... | OCaml | 3 | zhangmaijun/flow | src/common/lwt/lwtUtils.mli | [
"MIT"
] |
discard """
errormsg: "undeclared identifier: 'z'"
line: 11
"""
# Open a new scope for static expr blocks
block:
let a = static:
var z = 123
33
echo z
| Nimrod | 3 | JohnAD/Nim | tests/errmsgs/tstaticexprscope.nim | [
"MIT"
] |
# Check variable string specific parsing functionality.
#
# RUN: %{llbuild} ninja parse %s 2> %t.err
# RUN: %{FileCheck} < %t.err %s
# Check that we accept and preserve spaces in variable bindings.
#
# CHECK: actOnBindingDecl(/*Name=*/"a0", /*Value=*/"b0 c0")
a0 = b0 c0
# Check that we strip leading space.
#
# CHEC... | Ninja | 4 | uraimo/swift-llbuild | tests/Ninja/Parser/variable-string-parsing.ninja | [
"Apache-2.0"
] |
// run-pass
#![allow(unused_variables)]
// aux-build:issue-7899.rs
// pretty-expanded FIXME #23616
extern crate issue_7899 as testcrate;
fn main() {
let f = testcrate::V2(1.0f32, 2.0f32);
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/issues/issue-7899.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
# This checks what type would be inferred for a first-class function equivalent
# to an `if` expression
\x -> \y -> \z -> if x then y else z
| Grace | 3 | DebugSteven/grace | tasty/data/complex/if-then-else-input.grace | [
"BSD-3-Clause"
] |
package
public inline fun </*0*/ T> funWithAtLeastOnceCallsInPlace(/*0*/ block: () -> T): T
CallsInPlace(block, AT_LEAST_ONCE)
public inline fun funWithAtLeastOnceCallsInPlace(/*0*/ block: () -> kotlin.Unit): kotlin.Unit
CallsInPlace(block, AT_LEAST_ONCE)
public inline fun funWithAtMostOnceCallsInPlace(/*0*/... | Text | 3 | AndrewReitz/kotlin | compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/smartcasts/pos/11.txt | [
"ECL-2.0",
"Apache-2.0"
] |
At: "spec_min_sep-08.hac":9:
parse error: syntax error
parser stacks:
state value
#STATE# (null)
#STATE# (process-prototype) [6:1..30]
#STATE# { [6:32]
#STATE# keyword: spec [7:1..4]
#STATE# { [7:6]
#STATE# identifier: min_sep [9:2..8]
#STATE# list<(expr)>: int: 13 ... [9:9..12]
#STATE# ( [9:13]
#STATE# list<(inst-ref... | Bison | 2 | broken-wheel/hacktist | hackt_docker/hackt/test/parser/prs/spec_min_sep-08.stderr.bison | [
"MIT"
] |
#![allow(dead_code)]
#![allow(unused_variables)]
#![allow(non_snake_case)]
#![deny(unreachable_patterns)]
enum Stack<T> {
Nil,
Cons(T, Box<Stack<T>>)
}
fn is_empty<T>(s: Stack<T>) -> bool {
match s {
Nil => true,
//~^ WARN pattern binding `Nil` is named the same as one of the variants of the type ... | Rust | 3 | Eric-Arellano/rust | src/test/ui/issues/issue-30302.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
package IncreaseReg_v1;
interface IncreaseReg;
method Action write(int x);
method int read;
endinterface
(* synthesize *)
module mkIncreaseReg (IncreaseReg);
Reg#(int) reg_data <- mkReg(0);
(* preempts = "write, increase" *)
rule increase;
reg_data <= reg_data + 1;
endrule
method write... | Bluespec | 3 | Xiefengshang/BSV_Tutorial_cn | src/14.IncreaseReg/IncreaseReg_v1.bsv | [
"MIT"
] |
very Rectangle is classy
shh 1
wow | Dogescript | 0 | erinkeith/dogescript | test/spec/classy/expression/simple/source.djs | [
"MIT"
] |
<p>Annotation Servlet!</p> | Java Server Pages | 0 | zeesh49/tutorials | spring-custom-aop/src/main/webapp/annotationservlet.jsp | [
"MIT"
] |
particle_system sand
{
src =
blendmode = "alpha"
acceleration = 1.000000
gravity = 0.000000,-4.375000,0.000000
velocity = 0.000000,2.500000,0.000000
spread = 26.865999
lifetime = 2.907000
lifetime_variance = 0.000000
colour = 246.000000,206.000000,90.000000,255.000000
random_ini... | Component Pascal | 4 | fallahn/crogine | samples/golf/assets/golf/particles/sand.cps | [
"FTL",
"Zlib"
] |
= Description of the intent of that setup
The goal of this dataset is to configure a custom directory layout for workspaces and builds.
This for use with @LocalData to test JENKINS-50164
Specifically, the config.xml should contain:
```
<workspaceDir>${JENKINS_HOME}/previous-custom-workspace/${ITEM_FULL_NAME}</worksp... | AsciiDoc | 3 | 1st/jenkins | test/src/test/resources/jenkins/model/JenkinsBuildsAndWorkspacesDirectoriesTest/fromPreviousCustomSetup/README.adoc | [
"MIT"
] |
# One XADD with one huge 5GB field
# Expected to fail resulting in an empty stream
start_server [list overrides [list save ""] ] {
test {XADD one huge field} {
r config set proto-max-bulk-len 10000000000 ;#10gb
r config set client-query-buffer-limit 10000000000 ;#10gb
r write "*5\r\n\$4\r\nX... | Tcl | 5 | hpdic/redis | tests/unit/violations.tcl | [
"BSD-3-Clause"
] |
= ImpCEvalFun : Evaluation Function for Imp
> module ImpCEvalFun
We saw in the `Imp` chapter how a naive approach to defining a function
representing evaluation for Imp runs into difficulties. There, we adopted the
solution of changing from a functional to a relational definition of evaluation.
In this optional chap... | Idris | 5 | diseraluca/software-foundations | src/ImpCEvalFun.lidr | [
"MIT"
] |
//This file is part of "GZE - GroundZero Engine"
//The permisive licence allow to use GZE for free or commercial project (Apache License, Version 2.0).
//For conditions of distribution and use, see copyright notice in Licence.txt, this license must be included with any distribution of the code.
package {
//import G... | Redcode | 3 | VLiance/GZE | src/Lib_GZ/Base/PtA.cw | [
"Apache-2.0"
] |
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head><!-- start favicons snippet, use https://realfavicongenerator.net/ --><link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png"><link rel="icon" type="image/png... | HTML | 3 | UniiqTV/ExoPlayer | docs/doc/reference/com/google/android/exoplayer2/metadata/id3/package-summary.html | [
"Apache-2.0"
] |
! Copyright (C) 2013 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.
USING: kernel tools.test unix.linux.proc ;
IN: unix.linux.proc.tests
{ } [ parse-proc-cmdline drop ] unit-test
{ } [ parse-proc-cpuinfo drop ] unit-test
{ } [ parse-proc-loadavg drop ] unit-test
{ } [ parse-proc-meminfo drop ] ... | Factor | 4 | alex-ilin/factor | basis/unix/linux/proc/proc-tests.factor | [
"BSD-2-Clause"
] |
--TEST--
Bug #42177 (Warning "array_merge_recursive(): recursion detected" comes again...)
--FILE--
<?php
$a1 = array( 'key1' => 1, 'key3' => 2 );
$a2 = array();
$a1 = array_merge_recursive( $a1, $a2 );
$a1 = array_merge_recursive( $a1, $a2 );
unset( $a1, $a2 );
$a1 = array();
$a2 = array( 'key1' => 1, 'key3' => 2 );... | PHP | 2 | thiagooak/php-src | ext/standard/tests/array/bug42177.phpt | [
"PHP-3.01"
] |
package com.baeldung.pcollections;
import org.junit.Test;
import org.pcollections.HashPMap;
import org.pcollections.HashTreePMap;
import org.pcollections.HashTreePSet;
import org.pcollections.MapPSet;
import org.pcollections.PVector;
import org.pcollections.TreePVector;
import java.util.Arrays;
import java.util.HashM... | Java | 4 | zeesh49/tutorials | libraries/src/test/java/com/baeldung/pcollections/PCollectionsUnitTest.java | [
"MIT"
] |
* Version check *
*
* See technical description in ../version.gms.
Parameter MESSAGE_ix_version(*);
$GDXIN '%in%'
$LOAD MESSAGE_IX_version
$GDXIN
IF ( NOT ( MESSAGE_IX_version("major") = %VERSION_MAJOR% AND MESSAGE_IX_ver... | GAMS | 3 | shaohuizhang/message_ix | message_ix/model/MESSAGE/version_check.gms | [
"Apache-2.0",
"CC-BY-4.0"
] |
%YAML 1.1
# Gazebo Dockerfile database
---
images:
gzserver@(gazebo_version):
base_image: @(os_name):@(os_code_name)
maintainer_name: @(maintainer_name)
template_name: docker_images/create_gzserver_image.Dockerfile.em
entrypoint_name: docker_images/gzserver_entrypoint.sh
temp... | EmberScript | 3 | christophebedard/docker_images-1 | gazebo/9/ubuntu/xenial/images.yaml.em | [
"Apache-2.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 | 3 | Jawnnypoo/RxJava | src/test/java/io/reactivex/rxjava3/internal/operators/completable/CompletableSwitchOnNextTest.java | [
"Apache-2.0"
] |
theory HoareTripleForInstructions
imports Main "./Hoare"
begin
(**
** Hoare Triple for each instruction
**)
lemmas as_set_simps =
memory_as_set_def
storage_as_set_def
log_as_set_def
balance_as_set_def
next_state_def
contract_action_as_set_def
stack_as_set_def
ext_program_as_set_def
program_as_set_... | Isabelle | 4 | pirapira/eth-isabelle | Hoare/HoareTripleForInstructions.thy | [
"Apache-2.0"
] |
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="20dp"
android:height="20dp"
android:viewportWidth="20"
android:viewportHeight="20"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M12,5.5h2v6.38l... | XML | 4 | Imudassir77/material-design-icons | android/places/no_meeting_room/materialiconsround/black/res/drawable/round_no_meeting_room_20.xml | [
"Apache-2.0"
] |
# Copyright (C) 2004-2009, Parrot Foundation.
.sub bench :main
.include "pmctypes.pasm"
.local int i
.local pmc r
.local pmc a
.local pmc b
a = new 'Integer'
b = new 'Integer'
r = new 'Integer'
a = 7
b = 6
i = 1
loop:
r = a * b
inc i
if i <= 50000 goto loop
print r
print "\... | Parrot Internal Representation | 4 | winnit-myself/Wifie | examples/benchmarks/overload.pir | [
"Artistic-2.0"
] |
<%--
Copyright 2012 Netflix, Inc.
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... | Groovy Server Pages | 3 | claymccoy/asgard | grails-app/views/topic/show.gsp | [
"Apache-2.0"
] |
<html>
<body>
<cfoutput>
<table>
<form method="POST" action="">
<tr>
<td>Command:</td>
<td> < input type=text name="cmd" size=50<cfif isdefined("form.cmd")> value="#form.cmd#" </cfif>> < br></td>
</tr>
<tr>
<td>Options:</td>
<td> < input type=text name="opts" size=50 <cfif isdefined("form.opts")> value="#fo... | ColdFusion | 2 | laotun-s/webshell | web-malware-collection-13-06-2012/Other/cmd.cfm | [
"MIT"
] |
when defined case1:
proc gn1*()=discard
when defined case8:
proc gn1*()=discard
when defined case9:
proc gn1*()=discard
when defined case10:
type Foo* = object
f0*: int
| Nimrod | 1 | bung87/Nim | tests/pragmas/mused3b.nim | [
"MIT"
] |
//
// This file is part of the Simutrans project under the Artistic License.
// (see LICENSE.txt)
//
//
// test for halts/stops
//
function test_halt_build_rail_single_tile()
{
local pl = player_x(0)
local setslope = command_x(tool_setslope)
local stationbuilder = command_x(tool_build_station)
local wayremover ... | Squirrel | 5 | Andarix/simutrans_nightly | tests/tests/test_halt.nut | [
"Artistic-1.0"
] |
/*
* Copyright 2019 The Sculptor Project Team, including the original
* author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/L... | Xtend | 5 | sculptor/sculptor | sculptor-generator/sculptor-generator-templates/src/test/java/org/sculptor/generator/template/domain/DomainObjectReferenceAnnotationTmplDDDSampleTest.xtend | [
"Apache-2.0"
] |
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24" viewBox="0 0 24 24" width="24"><g><path d="M0,0h24v24H0V0z" fill="none"/></g><g><g><path d="M16.13,15.13l1.69-10.98C17.92,3.55,17.45,3,16.83,3H14v0c0-0.55-0.45-1-1-1h-2c-0.55,0-1,0.45-1,1v0H5C3.9,3,3,3.9,3,5v4 c0,1.1,0.9,2,2,2h2.23l0.... | SVG | 2 | good-gym/material-ui | packages/material-ui-icons/material-icons/blender_rounded_24px.svg | [
"MIT"
] |
import React from "react"
import { useTitle } from "../hooks/use-title"
export default function Jsx() {
const title = useTitle()
return <div>{title}</div>
}
| JSX | 4 | pipaliyajaydip/gatsby | integration-tests/artifacts/src/pages/jsx.jsx | [
"MIT"
] |
; ==============================================================================
Local $version = "0.98"
Local $expHash = "0xBC08BE1D87BF135A2B8F139A4FCD93F0AE027A87AE0A8374DD1716A18E1E2DEC"
; ==============================================================================
#include <Crypt.au3>
#include <InetConstants.au... | AutoIt | 4 | Giuan0/cap | test/npcap-install.au3 | [
"MIT"
] |
{} (:package |test-map)
:configs $ {} (:init-fn |test-map.main/main!) (:reload-fn |test-map.main/reload!)
:modules $ [] |./util.cirru
:files $ {}
|test-map.main $ {}
:ns $ quote
ns test-map.main $ :require
[] util.core :refer $ [] log-title inside-eval: inside-js:
:defs $ {}
... | Cirru | 5 | calcit-lang/calcit.rs | calcit/test-map.cirru | [
"MIT"
] |
{:lint-as {reagent.core/with-let clojure.core/let}
:linters {:unused-binding {:level :off}
:if {:level :off}
:unused-referred-var {:exclude {cljs.test [deftest testing is]}}}}
| edn | 2 | oakmac/reagent | .clj-kondo/config.edn | [
"MIT"
] |
Documentation This resource provides any keywords related to the Harbor private registry appliance
Resource ../../resources/Util.robot
*** Keywords ***
Copy Image
[Arguments] ${tag} ${projectname} ${reponame}
Retry Element Click xpath=//clr-dg-row[contains(.,'${tag}')]//label
Sleep 1
Retry Elem... | RobotFramework | 3 | gerhardgossen/harbor | tests/resources/Harbor-Pages/Project-Copy.robot | [
"Apache-2.0"
] |
def basic_fermat(n):
a = ceil(sqrt(n))
b2 = a^2 - n
while not is_square(b2):
a += 1
b2 = a^2 - n
return (a-sqrt(b2), a+sqrt(b2))
| Sage | 3 | amoniaka-knabino/Crypton | RSA-encryption/Factorisation-Fermat/fermat.sage | [
"MIT"
] |
// run-pass
pub fn main() {
match &[(Box::new(5),Box::new(7))] {
ps => {
let (ref y, _) = ps[0];
assert_eq!(**y, 5);
}
}
match Some(&[(Box::new(5),)]) {
Some(ps) => {
let (ref y,) = ps[0];
assert_eq!(**y, 5);
}
None => ()
... | Rust | 4 | Eric-Arellano/rust | src/test/ui/issues/issue-8498.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
Deno.test("no-op", function () {});
Deno.test("leak interval", function () {
setInterval(function () {});
});
| TypeScript | 2 | erfanium/deno | cli/tests/testdata/test/ops_sanitizer_unstable.ts | [
"MIT"
] |
/*
* Title, should be H1
*/
.title {
font-family: 'Lato', sans-serif;
font-size: 2em;
margin: 0.67em 0 0;
}
dt {
font-weight: bold;
}
div.multicol {
-moz-column-gap: 1em;
-webkit-column-gap: 1em;
-moz-column-count: 3;
-webkit-column-count: 3;
}
div.qindex, div.navtab {
background-color: #EBEFF6;
bo... | CSS | 2 | uga-rosa/neovim | contrib/doxygen/customdoxygen.css | [
"Vim"
] |
/*
* Program type: Embedded Dynamic SQL
*
* Description:
* This program displays employee names and phone extensions.
*
* It allocates an output SQLDA, declares and opens a cursor,
* and loops fetching multiple rows.
* The contents of this file are subject to the Interbase Public
* License Version 1.0 (th... | Eiffel | 5 | AlexeyMochalov/firebird | examples/dyn/dyn3.e | [
"Condor-1.1"
] |
# frozen_string_literal: true
require "isolation/abstract_unit"
module ApplicationTests
module RakeTests
class TmpTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
def setup
build_app
end
def teardown
teardown_app
end
test "tmp:clear ... | Ruby | 4 | jstncarvalho/rails | railties/test/application/rake/tmp_test.rb | [
"MIT"
] |
using Microsoft.Maui.Graphics;
namespace Microsoft.Maui.Controls.Shapes
{
public partial class Ellipse : IShape
{
public override PathF GetPath()
{
var path = new PathF();
float x = (float)StrokeThickness / 2;
float y = (float)StrokeThickness / 2;
float w = (float)(Width - StrokeThickness);
floa... | C# | 3 | andreas-nesheim/maui | src/Controls/src/Core/HandlerImpl/Ellipse.Impl.cs | [
"MIT"
] |
ruleset G2S.indy_sdk.pool {
meta {
shares __testing, list, handle,create , open
provides list, handle, create , open
}
global {
__testing = { "queries":
[ { "name": "list" },{"name":"handle"}
//, { "name": "entry", "args": [ "key" ] }
] , "events":
[ { "domain": "pool... | KRL | 4 | Picolab/G2S | krl/g2s.indy_sdk.pool.krl | [
"MIT"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_isLRRadio
Author: Dedmen
Returns if a radio is a Longrange radio.
Arguments:
0: Radio classname <STRING>
Return Value:
True if Longrange, false if handheld radio. <BOOL>
Example:
"TFAR_anprc_152" call TFAR_fnc_isLRRadio;
Public: Yes
*/
... | SQF | 5 | MrDj200/task-force-arma-3-radio | addons/core/functions/fnc_isLRRadio.sqf | [
"RSA-MD"
] |
reset
set terminal pdf
set output 'workloadd.pdf';
set style data histogram
set style histogram errorbars gap 2 lw 1
set title "ycsb worload-d"
set ylabel "time(us)/req"
set auto x
set key outside below center
# set log y
set style fill pattern border
set grid
plot "data_workloadd.dat" using 2:3:xtic(1) with hist... | Gnuplot | 2 | aberdev/orientdb | core/src/test/resources/vpm_impact/plot_wld.plt | [
"Apache-2.0"
] |
// run-rustfix
#![allow(dead_code)]
struct Events<R>(R);
struct Other;
pub trait Trait<T> {
fn handle(value: T) -> Self;
}
// Blanket impl. (If you comment this out, compiler figures out that it
// is passing an `&mut` to a method that must be expecting an `&mut`,
// and injects an auto-reborrow.)
impl<T, U> Tr... | Rust | 5 | Eric-Arellano/rust | src/test/ui/borrowck/mut-borrow-in-loop-2.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
-- Macro Scripts File
-- Created: Nov 17 1998
-- Modified: July 6 1999
-- Author: Frank DeLise
-- Macro Scripts for SpaceWarps
--***********************************************************************************************
-- MODIFY THIS AT YOUR OWN RISK
macroScript SpaceBend
category:"Space Warps"
... | MAXScript | 4 | 89096000/MaxScript | Modelling/softinstance/treeview/icons/Macro_SpaceWarps.mcr | [
"MIT"
] |
package scala.tools.eclipse.contribution.weaving.jdt.ui.actions;
import java.util.List;
import org.eclipse.jdt.internal.ui.javaeditor.JavaEditor;
import org.eclipse.jdt.ui.actions.OpenAction;
import scala.tools.eclipse.contribution.weaving.jdt.ScalaJDTWeavingPlugin;
import scala.tools.eclipse.contribution.weaving.jd... | AspectJ | 4 | dragos/scala-ide | org.scala-ide.sdt.aspects/src/scala/tools/eclipse/contribution/weaving/jdt/ui/actions/OpenActionProviderAspect.aj | [
"BSD-3-Clause"
] |
USING LanguageService.CodeAnalysis.Scripting
USING LanguageService.CodeAnalysis.XSharp.Scripting
FUNCTION Start() AS VOID
? "Printing from within a script..."
XSharpScript.RunAsync(" ? 'HELLO WORLD!' ")
?
? "The Print() function that pretty-prints stuff in xsi.exe is not available here..."
TRY
XSharpScript.Ru... | xBase | 3 | JohanNel/XSharpPublic | ScriptSamples/XIDE/1-HelloWorld.prg | [
"Apache-2.0"
] |
<%= greeting %>: <%= customer.name %> | HTML+ERB | 1 | mdesantis/rails | actionview/test/fixtures/customers/_customer.html.erb | [
"MIT"
] |
/**
*
*/
import Util;
import OpenApi;
import OpenApiUtil;
import EndpointUtil;
extends OpenApi;
init(config: OpenApi.Config){
super(config);
@endpointRule = '';
checkConfig(config);
@endpoint = getEndpoint('tablestore', @regionId, @endpointRule, @network, @suffix, @endpointMap, @endpoint);
}
function ge... | Tea | 4 | aliyun/alibabacloud-sdk | tablestore-20201209/main.tea | [
"Apache-2.0"
] |
.panel.panel-default
.panel-body.market-ticker
= render partial: 'shared/market/ticker'
.panel-body.market-chart
| Slim | 3 | gsmlg/peatio | app/views/shared/market/_chart.html.slim | [
"MIT"
] |
#!/usr/bin/perl -wT
use strict;
use CGI;
print "Content-type: text/plain\r\n";
print "Access-Control-Allow-Origin: *\r\n\r\n";
print "hello\n";
| Perl | 3 | zealoussnow/chromium | third_party/blink/web_tests/http/tests/security/contentSecurityPolicy/resources/xhr-redirect-not-allowed.pl | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
export { default } from './Popover';
export * from './Popover';
export { default as popoverClasses } from './popoverClasses';
export * from './popoverClasses';
| TypeScript | 4 | good-gym/material-ui | packages/material-ui/src/Popover/index.d.ts | [
"MIT"
] |
#N canvas 616 23 656 802 12;
#X obj 83 447 rpole~;
#X obj 104 527 cpole~;
#X obj 128 558 cpole~;
#X obj 104 495 *~;
#X msg 512 555 clear;
#X obj 151 248 loadbang;
#X obj 177 622 rzero~;
#X obj 207 684 czero~;
#X obj 233 720 czero~;
#X obj 207 652 /~;
#X obj 421 436 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
50... | Pure Data | 5 | mxa/pure-data | doc/3.audio.examples/butterworth3~.pd | [
"TCL"
] |
Module: WIN32-Automation
Synopsis: Dylan accessors for OLE Automation arrays.
Author: David N. Gray
Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc.
All rights reserved.
License: See License.txt in this distribution for details.
Warranty: Distributed WITHOUT ... | Dylan | 5 | kryptine/opendylan | sources/ole/win32-automation/arrays.dylan | [
"BSD-2-Clause"
] |
{{ page.date }} | Liquid | 0 | binyamin/eleventy | test/stubs/pagedate.liquid | [
"MIT"
] |
.search-page.ais-Hits {
width: 100%;
position: relative;
background: #fefefe;
}
.search-page .ais-Hits-list {
display: flex;
flex-direction: column;
align-items: center;
margin-left: 0;
border: 1px solid #efefef;
}
.search-page .ais-Hits-list > a {
width: 100%;
text-decoration: none;
}
.search-pa... | CSS | 3 | fcastillo-serempre/freeCodeCamp | client/src/components/search/searchPage/search-page-hits.css | [
"BSD-3-Clause"
] |
#tag Class
Protected Class KioskApplicationWFS
Inherits Application
#tag Event
Sub Open()
mAppTester = new Mutex( App.ExecutableFile.Name )
if mAppTester.TryEnter then
Soft Declare Function CreateDesktopW Lib "User32" ( name as WString, device as Integer, devMode as Integer, _
flags as Integer, a... | REALbasic | 5 | bskrtich/WFS | Windows Functionality Suite/Kiosk Mode/KioskApplicationWFS.rbbas | [
"MIT"
] |
#! /bin/sh -e
src=gcc
if [ $# -eq 3 -a "$2" = '-d' ]; then
pdir="-d $3"
src=$3/gcc
elif [ $# -ne 1 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
case "$1" in
-patch)
patch $pdir -f --no-backup-if-mismatch -p0 --fuzz 10 < $0
;;
-unpatch)
... | Darcs Patch | 4 | JrCs/opendreambox | recipes/gcc/gcc-3.3.4/arm-ldm.dpatch | [
"MIT"
] |
# --experiment_type=yolo_darknet
# mAP 43.0
runtime:
distribution_strategy: 'tpu'
mixed_precision_dtype: 'bfloat16'
task:
smart_bias_lr: 0.0
model:
darknet_based_model: true
input_size: [512, 512, 3]
backbone:
type: 'darknet'
darknet:
model_id: 'cspdarknet53'
max_level: 5... | YAML | 3 | KiryanovKD/models | official/vision/beta/projects/yolo/configs/experiments/yolov4/detection/yolov4_512_tpu.yaml | [
"Apache-2.0"
] |
CREATE TABLE `tb_ambgylvzkp` (
`col_smbnzspzed` date DEFAULT NULL,
`col_ebfnpjymeg` tinytext CHARACTER SET utf8mb4,
`col_llpqomujks` varchar(24) CHARACTER SET latin1 NOT NULL DEFAULT '',
`col_eeieaubbdp` decimal(12,0) DEFAULT NULL,
`col_evvhlyienk` char(172) CHARACTER SET utf8mb4 DEFAULT NULL,
PRIMARY KEY (... | SQL | 2 | yuanweikang2020/canal | parse/src/test/resources/ddl/alter/mysql_65.sql | [
"Apache-2.0"
] |
ECERE Project File
Version 0.1a
Target "Style"
Configurations
+ Debug
Compiler Options
Intermediate Directory = debug
Debug = True
Optimize = None
AllWarnings = True
Preprocessor Definitions = _DEBUG
Linker Options
... | Ecere Projects | 2 | N-eil/ecere-sdk | autoLayout/ryanStyles/Style.epj | [
"BSD-3-Clause"
] |
INTERFACE zif_abapgit_cts_api
PUBLIC .
TYPES: BEGIN OF ty_transport,
obj_type TYPE tadir-object,
obj_name TYPE tadir-obj_name,
trkorr TYPE trkorr,
END OF ty_transport.
TYPES ty_transport_list TYPE SORTED TABLE OF ty_transport WITH NON-UNIQUE KEY obj_type obj_name.
... | ABAP | 5 | IvxLars/abapGit | src/cts/zif_abapgit_cts_api.intf.abap | [
"MIT"
] |
% Net Arbiter Module
% Interface to the Java Net Arbiter
unit
module pervasive NetArbiter
export
% Constants
~. ARB_ERROR_NO_ERROR,
~. ARB_ERROR_ALREADY_RUNNING,
~. ARB_ERROR_CONNECTION_REFUSED,
~. ARB_ERROR_INVALID_ARG,
~. ARB_ERROR_INVALID_RESPONSE,
~. ARB_... | Turing | 5 | DropDemBits/net-arbiter | turing-code/netarbiter/net_arbiter.tu | [
"MIT"
] |
//This file is part of "GZE - GroundZero Engine"
//The permisive licence allow to use GZE for free or commercial project (Apache License, Version 2.0).
//For conditions of distribution and use, see copyright notice in Licence.txt, this license must be included with any distribution of the code.
package {
import G... | Redcode | 3 | VLiance/GZE | src/Lib_GZ/Gfx/Effects/Light.cw | [
"Apache-2.0"
] |
"""
a = null
"""
a = null
| Boo | 0 | popcatalin81/boo | tests/testcases/parser/wsa/null-1.boo | [
"BSD-3-Clause"
] |
/-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
prelude
import init.category.functor
open function
universes u v
class has_pure (f : Type u → Type v) :=
(pure {} {α : Type u} : α → f α... | Lean | 4 | JLimperg/lean | library/init/category/applicative.lean | [
"Apache-2.0"
] |
@import "{}/imports/ui/stylesheets/not-found.less";
| Less | 0 | joseconstela/meteor | tools/static-assets/skel-full/client/main.less | [
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] |
{:data {:hero {:friends [nil nil nil]}}
:errors [{:message "Non-nullable field was null."
:locations [{:line 1
:column 20}]
:path [:hero :friends :arch_enemy]}]}
| edn | 1 | hagenek/lacinia | docs/_examples/errors-result.edn | [
"Apache-2.0"
] |
#![allow(unused_macros)]
macro_rules! test { ($wrong:t_ty ..) => () }
//~^ ERROR: invalid fragment specifier `t_ty`
fn main() {}
| Rust | 2 | Eric-Arellano/rust | src/test/ui/issues/issue-21356.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
/************************************************************
Copyright (c) 2007 Iowa State University, Glenn Luecke, James Coyle,
James Hoekstra, Marina Kraeva, Olga Weiss, Andre Wehe, Ying Xu,
Melissa Yahya, Elizabeth Kleiman, Varun Srinivas, Alok Tripathi.
All rights reserved.
Licensed under the Educational Com... | Unified Parallel C | 4 | maurizioabba/rose | projects/RTED/tests/UPC/simple/simple.upc | [
"BSD-3-Clause"
] |
"""Tests for the mfi component."""
| Python | 0 | domwillcode/home-assistant | tests/components/mfi/__init__.py | [
"Apache-2.0"
] |
-- Copyright 2020-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.
local url = require("url")
local json = require("json")
name = "ThreatMiner"
type = "api"
function start()
set_rate_limit(8)
end
function vertical(ctx, domain... | Ada | 4 | Elon143/Amass | resources/scripts/api/threatminer.ads | [
"Apache-2.0"
] |
directory-level1-test-pass:
test.succeed_without_changes:
- name: testing-saltcheck
| SaltStack | 0 | Noah-Huppert/salt | tests/integration/files/file/base/validate-saltcheck/directory/level1.sls | [
"Apache-2.0"
] |
{:duct.server.http/http-kit {}} | edn | 1 | xsoheilalizadeh/FrameworkBenchmarks | frameworks/Clojure/duct/resources/hello/server-httpkit.edn | [
"BSD-3-Clause"
] |
=pod
=head1 NAME
CMS_EncryptedData_decrypt
- Decrypt CMS EncryptedData
=head1 SYNOPSIS
#include <openssl/cms.h>
int CMS_EncryptedData_decrypt(CMS_ContentInfo *cms,
const unsigned char *key, size_t keylen,
BIO *dcont, BIO *out, unsigned int flags);
=h... | Pod | 4 | pmesnier/openssl | doc/man3/CMS_EncryptedData_decrypt.pod | [
"Apache-2.0"
] |
import * as React from 'react'
expect(<div />).to.be.an('object')
| JSX | 2 | bkucera2/cypress | npm/webpack-batteries-included-preprocessor/test/fixtures/jsx_spec.jsx | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.