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 |
|---|---|---|---|---|---|
(ns hu.test.object
(:require
[assert :refer [equal deep-equal]]
[hu.lib.collection :as _]))
(suite :each
(fn []
(test :object
(fn []
(let [called false]
(.each _ {:a true} (fn [] (set! called true)))
(equal called true))))
(test :array
(fn []
(let [ca... | wisp | 4 | h2non/hu | test/collection.wisp | [
"MIT"
] |
<cfscript>
public string function ANOTHERMETHOD(){
var FO = "Bar";
local.TEST = "Foo";
LOCAL.test = "FooBar";
return LOCAL.FO;
}
</cfscript> | ColdFusion | 1 | tonym128/CFLint | src/test/resources/com/cflint/tests/Naming/Inconsistent_545_cfml.cfm | [
"BSD-3-Clause"
] |
--TEST--
Bug #80959: infinite loop in building cfg during JIT compilation
--EXTENSIONS--
opcache
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.jit_buffer_size=1M
opcache.jit=tracing
--FILE--
<?php
function test($a, $b) {
echo "Start\n";
$i = $j = 0;
do {
$i++;
try {
contin... | PHP | 3 | NathanFreeman/php-src | ext/opcache/tests/jit/bug80959.phpt | [
"PHP-3.01"
] |
@let-def: this design document gathers requirements and ideas for the next
version of merlin. The purpose is to consolidate features that were added
lately and cleanup legacy crufts.
== TL;DR ==
* simpler & stateless protocol
* pure implementation for reference
* performance added on top, memoization & asynchron... | MediaWiki | 4 | ZavierHenry/merlin | doc/next/merlin.wiki | [
"MIT"
] |
Rebol [
title: "Needs module test 2"
name: test-needs-file
needs: %units/files/test-needs-file-value.reb
;- at this moment files imported from other file
;- does not use parent file's location!
]
export test-needs-file-result: (42 = test-needs-file-value)
| Rebol | 3 | 0branch/r3 | src/tests/units/files/test-needs-file.reb | [
"Apache-2.0"
] |
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="page">
<html>
<head>
<title> Test XSLT </title>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></sc... | XSLT | 3 | zealoussnow/chromium | third_party/blink/web_tests/http/tests/permissions-policy/resources/permissions-policy-in-xsl.xslt | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
do 25 times
rotate FRAME / 25
push
move 1
box 0.01,0.02,10
pop
end
| Cycript | 1 | Psykopear/cyril | bin/data/code/4.cy | [
"MIT"
] |
import { imageDemoTest } from '../../../tests/shared/imageTest';
describe('PageHeader image', () => {
imageDemoTest('page-header');
});
| TypeScript | 3 | chnliquan/ant-design | components/page-header/__tests__/image.test.ts | [
"MIT"
] |
;; Los germenes son tortugs ocultas en el centro de cada "flor" que generan
;; continuamente p�talos (que son los visibles)
breed [germenes germen]
breed [petalos petalo]
globals [
primer-padre ;; El pimer padre, en caso de q la reproducci�n sea sexual
]
germenes-own [
numero-colores ;; Cu�ntos colores tendr... | NetLogo | 5 | fsancho/IA | 08. Evolving Computing/Biomorphs Girasol.nlogo | [
"MIT"
] |
# Copyright (c) 2022 Fyde Innovations Limited and the openFyde Authors.
# Distributed under the license specified in the root directory of this project.
EAPI="5"
DESCRIPTION="bcm2835 chip related configuration files"
HOMEPAGE="https://fydeos.io"
LICENSE="BSD"
SLOT="0"
KEYWORDS="*"
IUSE=""
RDEPEND=""
DEPEND="${RDEP... | Gentoo Ebuild | 4 | FydeOS/chromium_os_for_raspberry_pi | baseboard-rpi3/chromeos-base/snd_bcm2835-spec/snd_bcm2835-spec-0.0.1.ebuild | [
"BSD-2-Clause"
] |
--# -path=.:../abstract:../common:prelude
abstract AllPolAbs =
Lang,
ExtraPolAbs
** {} ;
| Grammatical Framework | 3 | daherb/gf-rgl | src/polish/AllPolAbs.gf | [
"BSD-3-Clause"
] |
#
# Copyright (c) 2007 Lindquist Consulting, Inc.
# All rights reserved.
#
# Written by Dr. Kent Lindquist, Lindquist Consulting, Inc.
#
# This software is licensed under the New BSD license:
#
# Redistribution and use in source and bina... | XProc | 4 | jreyes1108/antelope_contrib | nobuild/bin/export/db2eids/db2eids.xpl | [
"BSD-2-Clause",
"MIT"
] |
fun main () =
s <- source <xml><tr><td>A</td><td>A'</td></tr></xml>;
return <xml><body>
<button value="Click me!" onclick={set s <xml><tr><td>B</td><td>B'</td></tr><tr><td>C</td><td>C'</td></tr></xml>}/><br/>
<table><tr><td>Pre</td><td>Pre'</td></tr><dyn signal={signal s}/><tr><td>Post</td><td>Post</td><td>... | UrWeb | 3 | apple314159/urweb | tests/dtable.ur | [
"BSD-3-Clause"
] |
<style lang="uppercase-rocks">
hello,
world!
</style>
| Vue | 1 | tumido/prettier | tests/format/vue/with-plugins/style-lang.vue | [
"MIT"
] |
server {
listen 80;
## SSL directives might go here
## see http://www.howtoforge.com/how_to_set_up_ssl_vhosts_under_nginx_plus_sni_support_ubuntu_11.04_debian_squeeze
## if you want to enable SSL for this vhost
server_name www.example.com example.com;
root /var/www/www.exampl... | ApacheConf | 4 | tsrivishnu/certbot | certbot-compatibility-test/nginx/nginx-roundtrip-testdata/oxid-eshop/sites-available/www.example.com.vhost | [
"Apache-2.0"
] |
package com.thealgorithms.maths;
/**
* https://en.wikipedia.org/wiki/Lucas_number
*/
public class LucasSeries {
public static void main(String[] args) {
assert lucasSeries(1) == 2 && lucasSeriesIteration(1) == 2;
assert lucasSeries(2) == 1 && lucasSeriesIteration(2) == 1;
assert lucasSer... | Java | 5 | JohnTitor001/Java | src/main/java/com/thealgorithms/maths/LucasSeries.java | [
"MIT"
] |
CREATE TABLE `tb_qhsljnukja` (
`col_fersnxhqir` numeric(42) NULL,
`col_lzdbrgiewo` tinyblob,
`col_xdshuwzznl` binary(156) NOT NULL,
`col_wguqpgfoll` double NOT NULL DEFAULT '1',
CONSTRAINT PRIMARY KEY (`col_xdshuwzznl`(19),`col_wguqpgfoll`)
) DEFAULT CHARSET=latin1;
CREATE TABLE `tb_drxwrxamak` (
`col_ijrir... | SQL | 2 | yuanweikang2020/canal | parse/src/test/resources/ddl/table/test_12.sql | [
"Apache-2.0"
] |
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
namespace Phalcon\Helper;
/**
* Phalcon\Helper\Base64
*
* This class offers quick s... | Zephir | 4 | chipco/cphalcon | phalcon/Helper/Base64.zep | [
"BSD-3-Clause"
] |
/*##############################################################################
## HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®. All rights reserved.
############################################################################## */
IMPORT Std.Str;
EXPORT TestWordCount := MODULE
EXPORT TestConst := MODU... | ECL | 4 | miguelvazq/HPCC-Platform | ecllibrary/teststd/str/TestWordCount.ecl | [
"Apache-2.0"
] |
#!/bin/csh
set runnumber=${1}
set refnumber=${3}
set runNevents=${4}
set CALIB=${5}
set ERA=${6}
set RELEASE=CMSSW_10_4_0
set fullSrc0='/store/group/dpg_hcal/comm_hcal/USC'
set fullSrc1='/store/group/dpg_hcal/comm_hcal/LS1'
set fullSrc='NO'
set HistoDir=`pwd`
set WD=`pwd`
echo ${runnumber} >> ${WD}/LOG/batchlog
gre... | Tcsh | 3 | ckamtsikis/cmssw | DPGAnalysis/HcalTools/scripts/rmt/HcalRemoteMonitoringNewNew_now.csh | [
"Apache-2.0"
] |
pub main
coginit(0, @entry, 0)
dat
org 0
entry
_fibo
wrlong _fibo_ret, sp
add sp, #4
wrlong local01, sp
add sp, #4
wrlong local02, sp
add sp, #4
wrlong fp, sp
add sp, #4
mov fp, sp
_fibo_enter
mov local01, arg01
cmps local01, #2 wc,wz
if_b mov result1, local01
if_b jmp #LR__0001
mov arg01, local01
su... | Parrot Assembly | 3 | archivest/spin2cpp | Test/Expect/stest067.pasm | [
"MIT"
] |
#!/usr/bin/env sh
# This script converts the mnist data into leveldb format.
set -e
EXAMPLES=./build/examples/siamese
DATA=./data/mnist
echo "Creating leveldb..."
rm -rf ./examples/siamese/mnist_siamese_train_leveldb
rm -rf ./examples/siamese/mnist_siamese_test_leveldb
$EXAMPLES/convert_mnist_siamese_data.bin \
... | Shell | 4 | Jiawei-Gu/caffe_gu | examples/siamese/create_mnist_siamese.sh | [
"BSD-2-Clause"
] |
it("should not be executed", function() {
throw new Error("should not be executed");
});
| JavaScript | 2 | 1shenxi/webpack | test/configCases/issues/issue-3596/b.js | [
"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 agreed to in writing... | Ruby | 5 | samotarnik/grpc | src/ruby/lib/grpc/generic/rpc_desc.rb | [
"Apache-2.0"
] |
1.00 -1.00 0.00 0.00 0.00 0.00 0.00 -100.00
-1.00 1.00 0.00 0.00 0.00 0.00 0.00 -43.00
1.00 -1.00 0.00 0.00 0.00 0.00 0.00 -137.00
-1.00 1.00 0.00 0.00 0.00 0.00 0.00 -35.00
1.00 -1.00 0.00 0.00 0.00 0.00 0.00 -74.00
-1.00 1.00 0.00 0.00 0.00 0.00 0.00 31.00
1.00 -1.00 0.00 0.00 0.00 0.00 0.00 -158.00
-1.00 1.00 0.0... | Matlab | 1 | yinrun/LOPDC-Benchmarks | jobshop/matlab/js-6-4-36.matlab | [
"MIT"
] |
#ifdef ECERE_STATIC
public import static "ecere"
#else
public import "ecere"
#endif
class SearchBox : EditBox
{
searchLabelColor = gray;
public:
Color searchLabelColor;
String label;
private:
Color originalFg;
originalFg = foreground;
foreground = searchLabelColor;
void OnRedraw(Surface surface... | eC | 3 | N-eil/ecere-sdk | extras/gui/controls/SearchBox.ec | [
"BSD-3-Clause"
] |
export let error;
try {
require("remote/invalid");
} catch (err) {
error = err;
}
| JavaScript | 3 | 1shenxi/webpack | test/configCases/container/error-handling/invalid-module-cjs.js | [
"MIT"
] |
defmodule FrameworkBenchmarks.CachedWorld do
@moduledoc """
Cache for the CachedWorld table
"""
use GenServer
def start_link(_) do
GenServer.start_link(__MODULE__, :ok,
name: {:via, Registry, {FrameworkBenchmarks.Registry, __MODULE__}}
)
end
def get(id) do
GenServer.call({:via, Regist... | Elixir | 4 | xsoheilalizadeh/FrameworkBenchmarks | frameworks/Elixir/plug/lib/framework_benchmarks/cached_world.ex | [
"BSD-3-Clause"
] |
package UnionTaggedTest;
// ----------------------------- 定义 union tagged -----------------------------
typedef union tagged {
void None; // 要么取无效
UInt#(16) Alpha; // 要么取黑白 16 bit
struct { // 要么取彩色 RGB565
UInt#(8) r;
UInt#(8) g;
UInt#(8) b;
} RGB;
}... | Bluespec | 4 | Xiefengshang/BSV_Tutorial_cn | src/19.UnionTaggedTest/UnionTaggedTest.bsv | [
"MIT"
] |
- foo
skjfgh
sjdkhf
sdlfjhsl
lsjgflksjfg
| SaltStack | 0 | byteskeptical/salt | tests/integration/files/file/base/failparse.sls | [
"Apache-2.0"
] |
<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
<qgis version="2.18.28-Las Palmas" minimumScale="inf" maximumScale="1e+08" hasScaleBasedVisibilityFlag="0">
<pipe>
<rasterrenderer opacity="1" alphaBand="0" classificationMax="181" classificationMinMaxOrigin="CumulativeCutFullExtentEstimated" band="1" cla... | QML | 2 | jpapadakis/gdal | autotest/gdrivers/data/ngw/96.qml | [
"MIT"
] |
'* Copyright (c) 2017 Roku, Inc. All rights reserved.
'
' File: MainScene.brs
'
function init()
print "=================== UI STARTING =================="
print m.top.subType() + ".init()"
m.top.findNode("sampleVideo").setFocus(true)
end function
| Brightscript | 2 | khangh/samples | certification/manifestData-sample-master/components/MainScene.brs | [
"MIT"
] |
public final class SmartSet /* SmartSet*/<T> extends kotlin.collections.AbstractSet<T> implements java.util.Set<T>, kotlin.collections.MutableSet<T>, kotlin.jvm.internal.markers.KMutableSet {
@org.jetbrains.annotations.NotNull()
public static final SmartSet.Companion Companion;
@org.jetbrains.annotations.Nullab... | Java | 4 | Mu-L/kotlin | compiler/testData/asJava/lightClasses/ideRegression/ImplementingMutableSet.java | [
"ECL-2.0",
"Apache-2.0"
] |
import ../Thread
import native/win32/[types, errors]
version(windows) {
include windows
/* covers & extern functions */
CreateMutex: extern func (Pointer, Bool, Pointer) -> Handle
ReleaseMutex: extern func (Handle)
CloseHandle: extern func (Handle)
WaitForSingleObject: extern func (...) -> L... | ooc | 4 | fredrikbryntesson/launchtest | sdk/threading/native/MutexWin32.ooc | [
"MIT"
] |
;;; Unit testing functions
(defun assert-exit (val)
"If argument is nil, exit interpreter with error."
(if (not val)
(exit -1)))
(provide 'test)
| wisp | 4 | skeeto/wisp | wisplib/test.wisp | [
"Unlicense"
] |
/*
* Copyright (c) 2002, Vanderbilt University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list... | nesC | 4 | mtaghiza/tinyos-main-1 | apps/tests/TestFtsp/FtspLpl/TestFtspC.nc | [
"BSD-3-Clause"
] |
<!-- #docplaster -->
<!-- #docregion ngfor, interpolation -->
<h2>Products</h2>
<div *ngFor="let product of products">
<!-- #enddocregion ngfor -->
<h3>
<!-- #enddocregion interpolation -->
<a [title]="product.name + ' details'">
<!-- #docregion interpolation -->
{{ product.name }}
<!-- #enddocregion inte... | HTML | 4 | coreyscherbing/angular | aio/content/examples/getting-started/src/app/product-list/product-list.component.2.html | [
"MIT"
] |
# Pointwise V18.2 Journal file - Fri Jan 11 15:34:18 2019
package require PWI_Glyph 2.18.2
pw::Application setUndoMaximumLevels 5
pw::Application reset
pw::Application markUndoLevel {Journal Reset}
pw::Application clearModified
# domain params
set Ly 3.036
set span 4.50000
# 2d or 3d
set nz 1
#set nz 100
# m... | Glyph | 2 | neilmatula/iddes | periodicHill/meshes/periodicHill.glf | [
"BSD-3-Clause"
] |
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M13 12h7v1.5h-7V12zm0-2.5h7V11h-7V9.5zm0 5h7V16h-7v-1.5zM23 4H1v17h22V4zm-2 15h-9V6h9v13z"/></svg> | SVG | 1 | good-gym/material-ui | packages/material-ui-icons/material-icons/chrome_reader_mode_sharp_24px.svg | [
"MIT"
] |
'' ******************************************************************************
'' * MD22 Object *
'' * James Burrows May 2006 *
'' * Version 1.1 ... | Propeller Spin | 5 | deets/propeller | libraries/community/p1/All/i2cObject/MD22Object.spin | [
"MIT"
] |
(defmodule clojang
(export all))
(include-lib "clj/include/compose.lfe")
(defun noop ()
'noop)
| LFE | 3 | clojusc/clojang | src/lfe/clojang.lfe | [
"Apache-2.0"
] |
# JHBuild Aliases
# Base
alias jh='jhbuild'
# Build
alias jhb='jhbuild build'
alias jhbo='jhbuild buildone'
# Checks
alias jhckb='jhbuild checkbranches'
alias jhckm='jhbuild checkmodulesets'
# Info & List
alias jhi='jhbuild info'
alias jhl='jhbuild list'
# Clean
alias jhc='jhbuild clean'
alias jhco='jhbuild cleanone'
... | Shell | 3 | chensanle/ohmyzsh | plugins/jhbuild/jhbuild.plugin.zsh | [
"MIT"
] |
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C++ | 5 | EricRemmerswaal/tensorflow | tensorflow/core/kernels/data/experimental/rebatch_dataset_op.cc | [
"Apache-2.0"
] |
extends BaseButton
var pattern = Global.patterns_popup.Pattern.new()
func _on_PatternButton_pressed() -> void:
Global.patterns_popup.select_pattern(pattern)
| GDScript | 3 | triptych/Pixelorama | src/UI/PatternButton.gd | [
"MIT"
] |
use jar = method(jarFile,
use(if(#/\.jar$/ =~ jarFile,
jarFile,
"#{jarFile}.jar")))
| Ioke | 2 | olabini/ioke | src/builtin/A30_system.ik | [
"ICU",
"MIT"
] |
package com.baeldung.cache2k;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class ProductHelperWithExpiryUnitTest {
@Test
public void whenInvokedGetDiscountAfterExpiration_thenDiscountCalculatedAgain() throws InterruptedException {
ProductHelperWithExpiry productHelper = n... | Java | 4 | DBatOWL/tutorials | libraries-3/src/test/java/com/baeldung/cache2k/ProductHelperWithExpiryUnitTest.java | [
"MIT"
] |
staload "SATS/filetype.sats"
staload "SATS/utils.sats"
implement add_results (x, y) =
let
var next = @{ lines = x.lines + y.lines
, blanks = x.blanks + y.blanks
, comments = x.comments + y.comments
, files = x.files + y.files
}
in
next
end
... | ATS | 3 | lambdaxymox/polyglot | DATS/utils.dats | [
"BSD-3-Clause"
] |
/**
* Multiply to unsigned numbers using bitwise operator.
*
* The main idea of bitwise multiplication is that every number may be split
* to the sum of powers of two:
*
* I.e. 19 = 2^4 + 2^1 + 2^0
*
* Then multiplying number x by 19 is equivalent of:
*
* x * 19 = x * 2^4 + x * 2^1 + x * 2^0
*
* Now we need... | JavaScript | 5 | buledong/javascript-algorithms | src/algorithms/math/bits/multiplyUnsigned.js | [
"MIT"
] |
dataSourceKey: defaultDS
destination: example
groupId: g1
outerAdapterKey: phoenix
concurrent: true
dbMapping:
database: mytest
table: user
targetTable: mytest.user
escapeUpper: true # 字段默认大写,并用双引号引起来
targetPk:
id: ID
mapAll: true # 映射所有字段(默认true,不包含排除的字段)
alter: true # 允许修改表结构(默认true,mapAll=true时... | YAML | 4 | mclubing/canal | client-adapter/phoenix/src/main/resources/phoenix/phoenixtest_user.yml | [
"Apache-2.0"
] |
-- @shouldWarnWith ShadowedTypeVar
module Main where
class Test a where
f :: (forall a. a -> a) -> a -> a
| PureScript | 3 | metaleap/purs-with-dump-coreimp | examples/warning/2140.purs | [
"BSD-3-Clause"
] |
/**
* @file grammar.y
* @version 3.0
* @author John Wiegley
*
* @brief Canonical BNF grammar for Ledger data files
*
* Extensions are permitted if: they are not required, and they are
* backwards-compatible with this grammar.
*/
/*
* There are three special terminals in this grammar, which violate its
* con... | Yacc | 5 | sanel/ledger | doc/grammar.y | [
"BSD-3-Clause"
] |
LOOPMULT
N A,B,C,D,%
S A="a,b,c,d"
S B="A,B,C,D"
S C="1,2,3"
S D=","
F %=1:1:$L(A,",") W !,$P(A,D,%),$P(B,D,%),$P(C,D,%)
K A,B,C,D,%
Q
| M | 3 | LaudateCorpus1/RosettaCodeData | Task/Loop-over-multiple-arrays-simultaneously/MUMPS/loop-over-multiple-arrays-simultaneously-1.mumps | [
"Info-ZIP"
] |
// Subscriber
import Publisher "canister:pub";
actor Subscriber {
type Counter = {
topic : Text;
value : Nat;
};
var count: Nat = 0;
public func init(topic0 : Text) {
Publisher.subscribe({
topic = topic0;
callback = updateCount;
});
};
public func updateCount(counter : Coun... | Modelica | 4 | DaveSimplifire/examples | motoko/pub-sub/src/sub/Main.mo | [
"Apache-2.0"
] |
<?xml version="1.0" encoding="UTF-8" ?>
<p:pipeline
type="calli:wrap-two-documents"
version="1.0" name="wrap-two-documents"
xmlns:p ="http://www.w3.org/ns/xproc"
xmlns:c ="http://www.w3.org/ns/xproc-step"
xmlns:calli ="http://callimachusproject.org/rdf/2009/framework#"... | XProc | 3 | Thellmann/callimachus | test/docbook/wrap-two-documents.xpl | [
"ECL-2.0",
"Apache-2.0",
"BSD-3-Clause"
] |
--TEST--
Test fileperms() & chmod() functions: basic functionality
--SKIPIF--
<?php
if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip Not on Windows');
}
require __DIR__ . '/../skipif_root.inc';
?>
--FILE--
<?php
$path = __DIR__;
echo "*** Testing fileperms(), chmod() with files and dirs ***\n";
fopen($path."/perm.tm... | PHP | 4 | NathanFreeman/php-src | ext/standard/tests/file/006_basic.phpt | [
"PHP-3.01"
] |
local function testAdds()
{
local count = 0;
for (local i = 0; i < 10000000; ++i)
count = ::AddOne(count);
return count
}
loadfile("profile.nut")()
print("native loop: " + profile_it(20, function() {testAdds()}) + "\n");
| Squirrel | 3 | profelis/daScript | examples/profile/tests/squirrel/native.nut | [
"BSD-3-Clause"
] |
// run-pass
fn main() {
let mut t = [1; 2];
t = [t[1] * 2, t[0] * 2];
assert_eq!(&t[..], &[2, 2]);
}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/issues/issue-16602-1.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
import time
import os
import pyautogui
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_argument("nwapp=" + os.path.dirname(... | Python | 3 | namaljayathunga/nw.js | test/remoting/shortcut-normal/test.py | [
"MIT"
] |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div>
<div>
<h1>Synchronous messages</h1>
<i>Supports: Win, macOS, Linux <span>|</span> Process: Both</i>
<div>
<div>
<button id="sync-msg">Ping</button>
<span id="sync-reply... | HTML | 4 | lingxiao-Zhu/electron | docs/fiddles/communication/two-processes/synchronous-messages/index.html | [
"MIT"
] |
;----------------- Include Algorithms Library --------------------------------
__includes [ "A-star.nls"]
;-----------------------------------------------------------------------------
breed [pieces piece]
pieces-own [number]
globals [Board]
;-------------------- Customizable Reports for A* -----------------------... | NetLogo | 5 | fsancho/IA | utils/.8PuzleAstar.tmp.nlogo | [
"MIT"
] |
SELECT * WHERE { <a><b>1 }
| SPARQL | 0 | Hendrikto/jena | jena-arq/testing/DAWG-Final/syntax-sparql2/syntax-general-03.rq | [
"Apache-2.0"
] |
<cfsetting enablecfoutputonly="true">
<cfprocessingdirective pageencoding="utf-8">
<cfif StructKeyExists(form,"fileID")> <!--- update file --->
<cfif not compare(form.description,'<br />')>
<cfset form.description = "">
</cfif>
<cfset application.file.update(form.fileID,form.projectid,form.title,form.category,for... | ColdFusion | 4 | subethaedit/SubEthaEd | Documentation/ModeDevelopment/Reference Files/CFML/editFile.cfm | [
"MIT"
] |
;;; lang/python/autoload/pyenv.el -*- lexical-binding: t; -*-
;;;###if (featurep! +pyenv)
;;;###autoload
(defvar +pyenv--version nil)
;;;###autoload
(defun +python-pyenv-mode-set-auto-h ()
"Set pyenv-mode version from buffer-local variable."
(when (eq major-mode 'python-mode)
(when (not (local-variable-p '+py... | Emacs Lisp | 5 | leezu/doom-emacs | modules/lang/python/autoload/pyenv.el | [
"MIT"
] |
"""Diagnostics support for RainMachine."""
from __future__ import annotations
from typing import Any
from regenmaschine.controller import Controller
from homeassistant.components.diagnostics import async_redact_data
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_LATITUDE, C... | Python | 4 | MrDelik/core | homeassistant/components/rainmachine/diagnostics.py | [
"Apache-2.0"
] |
"wt" 4096 "1 0.5 0.25" gen_sinesum
200 0.5 0 "wt" osc
| SourcePawn | 0 | aleatoricforest/Sporth | examples/gen_sinesum.sp | [
"MIT"
] |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
/** @typedef {import("estree").Node} EsTreeNode */
/** @typedef {import("./JavascriptParser").VariableInfoInterface} VariableInfoInterface */
const TypeUnknown = 0;
const TypeUndefined = 1;
const TypeNul... | JavaScript | 5 | KruthikaShyamSundar/wildlife_park | node_modules/webpack/lib/javascript/BasicEvaluatedExpression.js | [
"MIT"
] |
(pr "Hello World")
| Shen | 1 | conorpreid/hello-world | s/Shen.shen | [
"MIT"
] |
[package]
name = "rustc_save_analysis"
version = "0.0.0"
edition = "2021"
[dependencies]
tracing = "0.1"
rustc_middle = { path = "../rustc_middle" }
rustc_ast = { path = "../rustc_ast" }
rustc_ast_pretty = { path = "../rustc_ast_pretty" }
rustc_data_structures = { path = "../rustc_data_structures" }
rustc_hir = { path... | TOML | 1 | ohno418/rust | compiler/rustc_save_analysis/Cargo.toml | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
--TEST--
SPL: SplObjectStorage comapred with ==
--FILE--
<?php
$a = new SplObjectStorage;
$b = new SplObjectStorage;
var_dump($a == $b);
$b[$b] = 2;
var_dump($a == $b);
$a[$b] = 2;
var_dump($a == $b);
$a[$b] = 3;
var_dump($a == $b);
?>
--EXPECT--
bool(true)
bool(false)
bool(true)
bool(false)
| PHP | 3 | thiagooak/php-src | ext/spl/tests/observer_007.phpt | [
"PHP-3.01"
] |
%
% Formatted font dump. Assumes all fonts include valid FontBBox arrays.
%
/#copies 1 store
/aspectratio 1 def
/landscape false def
/magnification 1 def
/margin 10 def
/orientation 0 def
/rotation 1 def
/xoffset 0 def
/yoffset 0 def
/axescount 0 def
/charwidth false def
/graynotdef 0.85 def
/hireslinewidth 0.2 def
/... | PostScript | 5 | newluhux/plan9port | src/cmd/postscript/printfont/printfont.ps | [
"MIT"
] |
.. _topics-deploy:
=================
Deploying Spiders
=================
This section describes the different options you have for deploying your Scrapy
spiders to run them on a regular basis. Running Scrapy spiders in your local
machine is very convenient for the (early) development stage, but not so much
when you n... | reStructuredText | 3 | FingerCrunch/scrapy | docs/topics/deploy.rst | [
"BSD-3-Clause"
] |
#require "HTS221.device.lib.nut:2.0.1"
#require "LPS22HB.class.nut:1.0.0"
// Define constants
const sleepTime = 120;
// Declare Global Variables
tempSensor <- null;
pressureSensor <- null;
led <- null
// Define functions
function takeReading(){
local conditions = {};
local reading = tempSensor.read();
co... | Squirrel | 4 | MongoCaleb/stitch-examples | IoTTemperatureTracking/temp.device.nut | [
"Apache-2.0"
] |
.hydration {
background: #2f1e2e;
margin: 0;
position: relative;
height: calc(100vh - 40px); /* height of header */
overflow: auto;
padding-top: 32px;
}
.hydration-options {
background: #171717;
border-top: 1px dashed rgba(215, 235, 255, 0.12);
color: #def5ff;
height: 32px;
line-height: 28px;
p... | CSS | 3 | vegYY/react | fixtures/dom/src/components/fixtures/hydration/hydration.css | [
"MIT"
] |
%%{
machine Symbols;
include CharacterClasses "charclasses_8.rl";
#
# CODES_YANDEX symbols
#
EOF = cc_zero;
accent = cc_accent; # required for multitoken.rl
yc_lf = cc_linefeed; # [\n]
yc_cr = cc_carriagereturn; # [\r]
yc_sp = cc_whitespace; # [\t\n\v\f\r ]
yspecialkey =... | Ragel in Ruby Host | 5 | ZhekehZ/catboost | library/tokenizer/symbols.rl | [
"Apache-2.0"
] |
expect class Y {
fun foo(): Any
}
expect fun useY(y: Y): Unit | Kotlin | 3 | punzki/kotlin | jps-plugin/testData/incremental/singleModule/common/touchExpect/commonY.kt | [
"ECL-2.0",
"Apache-2.0"
] |
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..compat import (
compat_urllib_parse_unquote,
compat_urllib_parse_unquote_plus,
)
from ..utils import (
clean_html,
ExtractorError,
)
class PlayvidIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?playvi... | Python | 4 | hackarada/youtube-dl | youtube_dl/extractor/playvid.py | [
"Unlicense"
] |
package org.openapitools.model;
import groovy.transform.Canonical
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@Canonical
class User {
Long id
String username
String firstName
String lastName
String email
String password
... | Groovy | 4 | MalcolmScoffable/openapi-generator | samples/client/petstore/groovy/src/main/groovy/org/openapitools/model/User.groovy | [
"Apache-2.0"
] |
%%
%unicode 12.1
%public
%class UnicodeScripts_12_1_extensions_3
%type int
%standalone
%include ../../resources/common-unicode-all-enumerated-property-defined-values-only-java
%%
<<EOF>> { printOutput(); return 1; }
\p{Script_Extensions:Dogra} { setCurCharPropertyValue("Script_Extensions:Dogra"); }
\p{Script_Exten... | JFlex | 3 | Mivik/jflex | testsuite/testcases/src/test/cases/unicode-scripts/UnicodeScripts_12_1_extensions_3.flex | [
"BSD-3-Clause"
] |
.global-header {
background-color: white;
box-shadow: 0 1px 15px 0 rgba(192,72,25,0.32);
height: $header-height;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 100;
.logo {
width: 162px;
height: 36px;
background-image: url("/assets/images/logo.svg");
background-size: contain;
... | Stylus | 4 | ritzanaa97/tugas18 | public/sweetalert-master/docs-src/assets/css/header.styl | [
"MIT"
] |
SELECT if(CAST(NULL), '2.55', NULL) AS x; -- { serverError 42 }
| SQL | 2 | pdv-ru/ClickHouse | tests/queries/0_stateless/01503_if_const_optimization.sql | [
"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:
# Deniz <dakdeniz@hotmail.com>, 2019
# José Luis <alagunajs@gmail.com>, 2015-2016
msgid ""
msgstr ""
"Project-Id-Version: Django REST framework\n"
"Re... | Gettext Catalog | 3 | scratchmex/django-rest-framework | rest_framework/locale/tr_TR/LC_MESSAGES/django.po | [
"BSD-3-Clause"
] |
<template>
<v-card
max-width="500"
class="mx-auto"
>
<v-toolbar
:color="selection.length ? 'grey darken-4' : 'deep-purple accent-4'"
dark
>
<v-app-bar-nav-icon v-if="!selection.length"></v-app-bar-nav-icon>
<v-btn
v-else
icon
@click="selection = []"
... | Vue | 4 | ahmadiqbal1/vuetify | packages/docs/src/examples/toolbars/intermediate/contextual-action-bar.vue | [
"MIT"
] |
// POV 3.x input script : plot.pov
// try povray +H834 +W669 -Iplot.pov -Oplot.pov.tga +P +X +A +FT +C
#if (version < 3.5)
#error "POV3DisplayDevice has been compiled for POV-Ray 3.5 or above.\nPlease upgrade POV-Ray or recompile VMD."
#end
#declare VMD_clip_on=array[3] {0, 0, 0};
#declare VMD_clip=array[3];
#declar... | POV-Ray SDL | 5 | benjaminbolbrinker/RASPA2 | Docs/InputFiles/Figures/IRMOF-8/plot.pov | [
"MIT"
] |
#
# External Addenda lexicon
#
# #Comment
# Blank lines are ignored
# "headword" [pos] : phone phone phone phone ...
#
# phone *must* be in the phoneset for the lexicon, thus vowels must be
# appended with 0 or 1 stress values (if you have them in your language)
# head word should be quoted if it contains non-asc... | Lex | 3 | rathann/flite | tools/example.lex | [
"Apache-2.0"
] |
BEGIN {
FS = " "
numlist = 0
nblines = 15
}
{
if ( numlist == 1 && $1 == "--------------------------------------------------------------------------------------------" ) {
exit
}
if ( numlist == 0 && $1 == "--------------------------------------------------------------------------------------------" ) {
num... | Awk | 3 | alaahseen/pfsense | src/usr/local/bin/iftop_parse.awk | [
"Apache-2.0"
] |
%
% This example is similar to example 8. We also calculate the jacobian,
% but this time we want the jacobian at the steady state.
% This is somewhat easier than calculating it manually in the model
% because the steady state calculates it and we can get an annotated matrix which
% tells us which coumn and whic... | Octave | 5 | SzVarga/COPASI | copasi/bindings/octave/examples/example9.oct | [
"Artistic-2.0"
] |
/* eslint-env jest */
import { join } from 'path'
import { nextBuild } from 'next-test-utils'
import fs from 'fs'
const appDir = join(__dirname, '../')
const profileEventsPath = join(appDir, '.next', 'profile-events.json')
// TODO: Make profiling experimental flag work with webpack 5
describe.skip('Profiling Usage', ... | JavaScript | 4 | blomqma/next.js | test/integration/profiling/test/index.test.js | [
"MIT"
] |
HAI 1.2
I HAS A LAST ITZ 1
I HAS A LASTER ITZ 2
I HAS A LASTEST
I HAS A EVENPOWA ITZ 2
IM IN YR CLASS
LASTEST R SUM OF LAST AN LASTER
BOTH SAEM LASTEST BIGGR OF LASTEST AN 4000000, O RLY?
YA RLY, GTFO
OIC
BOTH SAEM MOD OF LASTEST AN 2 AN 0, O RLY?
... | LOLCODE | 3 | LeartS/loleuler | 002.lol | [
"MIT"
] |
# Group Config
## api/v0.2/config [/config]
### Get config of network [GET]
Returns the config of network
+ Response 200 (application/json)
+ Attributes
+ request (Request, required)
+ status: success (string, required)
+ result (Config, required{{isResultNullable}})
+ error (Erro... | API Blueprint | 4 | smishraIOV/ri-aggregation | infrastructure/api-docs/blueprint/groups/config.apib | [
"Apache-2.0",
"MIT"
] |
import structs/[Bag, HashBag]
import Generator
DSL: class { // TODO: make this a singleton. or so.
init: func
json: func (f: Func(This) -> HashBag) -> String {
generateString(f(this))
}
object: func (args: ...) -> HashBag {
object := HashBag new()
keyFollowing := true
... | ooc | 4 | fredrikbryntesson/launchtest | sdk/text/json/DSL.ooc | [
"MIT"
] |
name: m0-decomp
version: 1.0
description: M0 decompilation support
author: HOL OpenTheory Packager <opentheory-packager@hol-theorem-prover.org>
license: MIT
requires: base
requires: m0-prog
show: "HOL4"
show: "Data.Bool"
show: "Data.Pair"
main {
article: "m0_decomp.ot.art"
interpretation: "../../../../src/opentheor... | Isabelle | 2 | dwRchyngqxs/HOL | examples/l3-machine-code/m0/decompiler/m0-decomp.thy | [
"BSD-3-Clause"
] |
[Exposed=Window]
interface Selection {
readonly attribute Node? anchorNode;
readonly attribute unsigned long anchorOffset;
readonly attribute Node? focusNode;
readonly attribute unsigned long focusOffset;
readonly attribute boolean isCollapsed;
readonly attribute unsigned long rangeCount;
readonly attribu... | WebIDL | 4 | Unique184/jsdom | lib/jsdom/living/selection/Selection.webidl | [
"MIT"
] |
interface Iterator[A]
"""
Iterators generate a series of values, one value at a time on each call to `next()`.
An Iterator is considered exhausted, once its `has_next()` method returns `false`.
Thus every call to `next()` should be preceeded with a call to `has_next()` to
check for exhaustiveness.
## Usa... | Pony | 5 | presidentbeef/ponyc | packages/builtin/iterator.pony | [
"BSD-2-Clause"
] |
# This is a small sample on how to use a Crystal::Transformer
# to transform source code.
#
# Here we transform all number literals with their char
# equivalent using `chr`.
# Use `require "compiler/crystal/syntax"` in your programs
require "../../src/compiler/crystal/syntax"
class Charify < Crystal::Transformer
de... | Crystal | 4 | jessedoyle/crystal | samples/compiler/transformer_example.cr | [
"Apache-2.0"
] |
FROM rustembedded/cross:x86_64-unknown-linux-musl
COPY stage/ubuntu-install-packages /
RUN /ubuntu-install-packages
| Dockerfile | 1 | Svetlitski/ripgrep | ci/docker/x86_64-unknown-linux-musl/Dockerfile | [
"MIT",
"Unlicense"
] |
CC = clang
.PHONY: all
all: stage2.dylib
stage2.dylib: payload.c
$(CC) -shared -o stage2.dylib payload.c
| Makefile | 3 | OsmanDere/metasploit-framework | external/source/exploits/CVE-2018-4404/stage2/Makefile | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
<?php
$this->layout('main', [
'title' => __('Connected AzuraRelays'),
'manual' => true
]);
/** @var \App\Assets $assets */
$assets
->load('luxon')
->addInlineJs($this->fetch('admin/relays/index.js'));
?>
<div class="card">
<div class="card-header bg-primary-dark">
<h2 class="card-title"><?... | HTML+PHP | 4 | ikafridi/PlayCast | templates/admin/relays/index.phtml | [
"Apache-2.0"
] |
use("fib_rec")
use("benchmark")
Benchmark report(fib(30))
| Ioke | 2 | olabini/ioke | test/scripts/bench_fib_rec.ik | [
"ICU",
"MIT"
] |
local helpers = require('test.functional.helpers')(after_each)
local assert_alive = helpers.assert_alive
local clear, command, write_file = helpers.clear, helpers.command, helpers.write_file
describe("modeline", function()
local tempfile = helpers.tmpname()
before_each(clear)
after_each(function()
os.remove... | Lua | 5 | uga-rosa/neovim | test/functional/vimscript/modeline_spec.lua | [
"Vim"
] |
Import mojo
Class Level
Field points#[]
Field bounds[]
Field pegs#[]
Method New(_points#[],_bounds[],_pegs#[])
points = _points
bounds = _bounds
pegs = _pegs
End
End
Class Point
Field x#,y#
Method New(_x#,_y#)
x=_x
y=_y
End
Method Draw()
SetColor 255,255,255
DrawCircle x,y,2.5
End
En... | Monkey | 5 | blitz-research/monkey | bananas/warpy/pegs/pegs.monkey | [
"Zlib"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.