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
(defn into-array ([aseq] (into-array nil aseq)) ([type aseq] (let [n (count aseq) a (make-array n)] (loop [aseq (seq aseq) i 0] (if (< i n) (do (aset a i (first aseq)) (recur (next aseq) (inc i))) a)))))
Clojure
4
JavascriptID/sourcerer-app
src/test/resources/samples/langs/Clojure/into-array.cljc
[ "MIT" ]
console.log("Hello from remapped moment dir!");
TypeScript
0
Preta-Crowz/deno
cli/tests/import_maps/moment/other_file.ts
[ "MIT" ]
<script type="text/javascript" n:dd="1"> function test() { } </script>
Latte
0
timfel/netbeans
php/php.latte/test/unit/data/testfiles/indent/testIssue241118_02.latte
[ "Apache-2.0" ]
<GameFile> <PropertyGroup Name="WinMgrOverlay" Type="Layer" ID="992a2fb5-67d5-4fa3-b7bb-2533fafa6727" Version="3.10.0.0" /> <Content ctype="GameProjectContent"> <Content> <Animation Duration="0" Speed="1.0000" /> <ObjectData Name="Layer" ctype="GameLayerObjectData"> <Size X="960.0000" Y="640...
Csound
3
A29586a/Kirikiroid2
cocos/kr2/cocosstudio/ui/WinMgrOverlay.csd
[ "BSD-3-Clause" ]
package { public class Test {} } dynamic class ES4Class { public var variable = "TEST FAIL: Trait properties are NOT enumerable! (var)"; public const constant = "TEST FAIL: Trait properties are NOT enumerable! (const)"; } var x = new ES4Class(); x.dynamic_variable = "variable value"; ES4Class.prototype.dynamic_pr...
ActionScript
2
Sprak1/ruffle
tests/tests/swfs/avm2/class_enumeration/Test.as
[ "Apache-2.0", "Unlicense" ]
scriptname CampTentShelterCollider extends ObjectReference import CampUtil ObjectReference property ParentTent auto Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked) if ParentTent && GetCurrentTent() != Pare...
Papyrus
4
chesko256/Campfire
Scripts/Source/CampTentShelterCollider.psc
[ "MIT" ]
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>target-programmatic-copy</title> <meta name="viewport" content="width=device-width, initial-scale=1" /> </head> <body> <!-- 1. Define some markup --> <textarea id="bar">hello</textarea> <button id="btn"> Copy ...
HTML
3
wmt-riddhid/emoji-search-new
node_modules/clipboard/demo/target-programmatic-copy.html
[ "MIT" ]
<tr> <td class="content-block" itemprop="handler" itemscope itemtype="http://schema.org/HttpActionHandler"> <p>Hello Admin,</p> <p><strong><%= PersonView.handle(@comment.author) %></strong> has commented on <%= link("on Changelog News", to: news_item_url(@item)) %> for the first time saying:</p> <blockq...
HTML+EEX
4
gustavoarmoa/changelog.com
lib/changelog_web/templates/email/comment_approval.html.eex
[ "MIT" ]
import { AnalyticsTracker } from "./telemetry" const instance = new AnalyticsTracker() function flush(): void { instance.sendEvents().catch(_e => { // ignore }) } flush()
TypeScript
3
pipaliyajaydip/gatsby
packages/gatsby-telemetry/src/send.ts
[ "MIT" ]
let path-name = (if ((sys).host.name == "Windows") { "Path" } { "PATH" }) let-env $path-name = $nu.env.CONDA_OLD_PATH unlet-env CONDA_PROMPT_MODIFIER unlet-env CONDA_PREFIX unlet-env CONDA_SHLVL unlet-env CONDA_DEFAULT_ENV unlet-env CONDA_OLD_PATH
Nu
3
WindSoilder/nu_scripts
virtual_environments/conda_deactivate.nu
[ "MIT" ]
/** * Author......: See docs/credits.txt * License.....: MIT */ #include "inc_vendor.h" #include "inc_types.h" #include "inc_platform.h" #include "inc_common.h" #include "inc_cipher_aes.h" #include "inc_cipher_serpent.h" #include "inc_cipher_twofish.h" #include "inc_diskcryptor_xts.h" DECLSPEC void dcrp_xts_mul2 (...
OpenCL
4
Masha/hashcat
OpenCL/inc_diskcryptor_xts.cl
[ "MIT" ]
country,country_id,group,spi,spi_offense,spi_defense,win_group,sixteen,quarter,semi,cup,win Algeria,ALG,h,64.25,1.1759,1.1674,0.020800000000000,0.161200000000000,0.023822225564571,0.004642046469400,0.000592933348165,0.000085072360298 Argentina,ARG,f,89.91,2.8255,0.4452,0.905200000000000,0.984000000000000,0.7198881934...
CSV
2
h4ckfu/data
world-cup-predictions/wc-20140620-235753.csv
[ "CC-BY-4.0" ]
namespace java com.twitter.finagle.integration.thriftjava #@namespace scala com.twitter.finagle.integration.thriftscala service Echo { string echo(string msg); }
Thrift
4
xuwei-k/finagle
finagle-integration/src/test/thrift/echo.thrift
[ "Apache-2.0" ]
:pseudo\2c class {}
CSS
0
mengxy/swc
crates/swc_css_parser/tests/fixture/esbuild/misc/YUPpw78_zYmKpAkI2SzNsg/input.css
[ "Apache-2.0" ]
using Uno; using Fuse; namespace Fuse.Preview { public partial class Application { public Application() { } } }
Uno
1
mortend/fuse-studio
Source/Preview/App/Application.uno
[ "MIT" ]
#include <metal_stdlib> using namespace metal; struct VS_INPUT { float2 pos [[ attribute(0) ]]; float2 uv [[ attribute(1) ]]; float4 col [[ attribute(2) ]]; }; struct PS_INPUT { float4 pos [[ position ]]; float4 col; float2 uv; }; float3 SrgbToLinear(float3 srgb) { return srgb * (srgb * (...
Metal
4
lanyizi/veldrid
src/Veldrid.ImGui/Assets/Metal/imgui-vertex.metal
[ "MIT" ]
/* * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE file. */ package codegen.function.named import kotlin.test.* fun foo(a:Int, b:Int) = a - b @Test fun runTest() { if (foo(b = 24, a = 42) != 18) throw Error() }
Kotlin
4
MaTriXy/kotlin-native
backend.native/tests/codegen/function/named.kt
[ "Apache-2.0" ]
--TEST-- Test lstat() and stat() functions: usage variations - effects of rename() on link --SKIPIF-- <?php if (PHP_OS_FAMILY === 'Windows') { include_once __DIR__ . '/windows_links/common.inc'; skipIfSeCreateSymbolicLinkPrivilegeIsDisabled(__FILE__); } ?> --FILE-- <?php /* test the effects of rename() on stats...
PHP
4
NathanFreeman/php-src
ext/standard/tests/file/lstat_stat_variation3.phpt
[ "PHP-3.01" ]
# frozen_string_literal: true module ActiveModel module Type class Date < Value # :nodoc: include Helpers::Timezone include Helpers::AcceptsMultiparameterTime.new def type :date end def type_cast_for_schema(value) value.to_formatted_s(:db).inspect end ...
Ruby
4
stevepolitodesign/rails
activemodel/lib/active_model/type/date.rb
[ "MIT" ]
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
TypeScript
4
kklt2002/vscode
src/vs/workbench/contrib/remote/common/showCandidate.ts
[ "MIT" ]
@import url(<$mt:SupportDirectoryURL$>theme_static/eiger/css/base.css); @import url(<$mt:SupportDirectoryURL$>theme_static/eiger/css/screen.css); /* <__trans phrase="for Comments, Trackbacks"> */ @import url(<$mt:SupportDirectoryURL$>theme_static/eiger/css/feedback.css); /* / <__trans phrase="Sample Style"> */ /* B...
MTML
4
movabletype/mt-theme-eiger
themes/eiger/templates/styles.mtml
[ "MIT" ]
using NUnit.Framework; namespace Selenium.Tests { [TestFixture] public class TestAddSelection : SeleniumTestCaseBase { [Test] public void AddingToSelectionWhenSelectHasEmptyMultipleAttribute() { selenium.Open("../tests/html/test_multiple_select.html"); sele...
C#
4
weilandia/selenium
dotnet/test/webdriverbackedselenium/TestAddSelection.cs
[ "Apache-2.0" ]
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns...
SVG
2
CJL89/pandas
doc/source/_static/schemas/08_merge_left.svg
[ "BSD-3-Clause" ]
-- city, review_count, name, neighborhoods, type, business_id, full_address, state, longitude, stars, latitude, open, categories REGISTER 'converter.py' USING jython AS converter; reviews = LOAD 'yelp_academic_dataset_business.json' AS (line:CHARARRAY); tsv = FOREACH reviews GENERATE converter.tsvify(line); STORE ...
PigLatin
3
sirishacodes/samplebranchtest
pig-json-python-udf/python_udf.pig
[ "Apache-2.0" ]
lexer grammar t056lexer15; options {language=JavaScript;} A : '\"' ; B : '\\\"' ;
G-code
4
DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials
java/java2py/antlr-3.1.3/runtime/JavaScript/tests/functional/t056lexer15.g
[ "Apache-2.0" ]
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
C
4
EricRemmerswaal/tensorflow
tensorflow/core/profiler/utils/file_system_utils.h
[ "Apache-2.0" ]
# Copyright (c) 2018-2021, Carnegie Mellon University # See LICENSE for details NewRulesFor(TRCDiag, rec( TRCDiag_VRCLR := rec( applicable := (self, t) >> t.hasTags() and ObjId(t.firstTag()) = AVecReg, apply := (self, t, C, Nonterms) >> let(isa := t.firstTag().isa, v := isa.v, n := Rows(t), ...
GAP
4
sr7cb/spiral-software
namespaces/spiral/paradigms/vector/breakdown/trcdiag.gi
[ "BSD-2-Clause-FreeBSD" ]
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
C++
4
EricRemmerswaal/tensorflow
tensorflow/cc/experimental/libtf/tests/module_test.cc
[ "Apache-2.0" ]
{ lib, stdenv, fetchFromGitHub , openssl , pandoc , which }: stdenv.mkDerivation rec { pname = "bdsync"; version = "0.11.2"; src = fetchFromGitHub { owner = "rolffokkens"; repo = pname; rev = "v${version}"; sha256 = "0kx422cp1bxr62i1mi7dzrpwmys1kdp865rcymdp4knb5rr5864k"; }; nativeBuildInput...
Nix
4
collinwright/nixpkgs
pkgs/tools/backup/bdsync/default.nix
[ "MIT" ]
--1 A Small Romance Resource Syntax -- -- Aarne Ranta 2002 -- -- This resource grammar contains definitions needed to construct -- indicative, interrogative, and imperative sentences in Romance languages. -- We try to share as much as possible. Even if the definitions of certain -- operations are different in $syntax....
Grammatical Framework
5
gdziadkiewicz/bnfc
examples/GF/example.gf
[ "BSD-3-Clause" ]
USING: assocs namespaces sequences source-files strings tools.test ; { { } } [ source-files get keys [ string? ] reject ] unit-test
Factor
1
alex-ilin/factor
core/source-files/source-files-tests.factor
[ "BSD-2-Clause" ]
tree grammar t051treeRewriteASTcWalker; options { language=JavaScript; output=AST; ASTLabelType=CommonTree; tokenVocab=t049treeparserc; } a : ^(ID INT) -> ^(INT ID) | INT;
G-code
3
DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials
java/java2py/antlr-3.1.3/runtime/JavaScript/tests/functional/t051treeRewriteASTcWalker.g
[ "Apache-2.0" ]
# Matthieu S. LE GUELLAUT (@matthmsl) # # # EXIA/UQÀM 2018 - INF7845 # # This program uses unlicensed opensource libdocker program from Daniel Suo (@danielsuo) # module docker is pkgconfig "libcurl" intrude import core::file import core import json::dynamic # Import C headers in "C Header" `{ // Constants ...
Nit
5
matthmsl/docker-nit
docker.nit
[ "MIT" ]
'reach 0.1'; // This is just a sample library for demonstrating imports export const x = 3; export const main = Reach.App( {}, [], () => { } );
RenderScript
3
chikeabuah/reach-lang
hs/t/y/lib.rsh
[ "Apache-2.0" ]
get: description: Returns the list of all loaded plugins responses: 200: description: The list of all loaded plugins body: application/json: example: | { "plugins": [ { "id": "webjar", ...
RAML
3
fquesnel/marathon
docs/docs/rest-api/public/api/v2/plugins.raml
[ "Apache-2.0" ]
(kicad_pcb (version 4) (host pcbnew "(2015-10-16 BZR 6271)-product") (general (links 195) (no_connects 8) (area 102.416999 91.839 193.638001 122.513021) (thickness 1.6) (drawings 20) (tracks 1087) (zones 0) (modules 71) (nets 54) ) (page A4) (layers (0 F.Cu signal hide)...
KiCad
5
robertfisk/USG
Hardware/USG.kicad_pcb
[ "BSD-3-Clause" ]
;;;; Basic functions for creating Extempore forms. ;;;; ;;;; Note that the 'lang' does not reference `xtlang` but rather the general ;;;; scheme language used by Extempore. (defmodule xt.lang (export (->lfe 1) (->xt 1) (->xts 1) (sexp 1) (sexp 2) (wrap-str 1))) (defun ->xt (arg) (cond ((== arg 'true...
LFE
4
cyblue9/undertone
src/xt/lang.lfe
[ "Apache-2.0" ]
// Copyright 2006-2015 Las Venturas Playground. All rights reserved. // Use of this source code is governed by the GPLv2 license, a copy of which can // be found in the LICENSE file. /* One of Las Venturas Playground 2.9's new features -- a pub. Seriously, this will be cool, as you can go to your local pub and drink ...
PAWN
5
EPIC-striker/playground
pawn/Elements/Player/Drink.pwn
[ "MIT" ]
trait A { fn foo(self); } trait B { fn foo(self); } struct AB {} impl A for AB { fn foo(self) {} } impl B for AB { fn foo(self) {} } fn main() { AB {}.foo(); //~ ERROR E0034 }
Rust
3
Eric-Arellano/rust
src/test/ui/methods/method-ambig-two-traits-from-impls.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
Function MiddleTrim(cText) Local cClean := "" Local cLast := " " Local nLen := Len(cText) Local i Local cChar For i := 1 To nLen cChar := Substr(cText, i, 1) If cChar != " " cClean += cChar ElseIf cLast != " " cClean += " " EndIf cL...
xBase
4
piovezan/SOpt
xBase/ADVPLMiddleTrim.prg
[ "MIT" ]
body { color: b; }
CSS
0
etc-tiago/webpack
test/configCases/css/conflicting-order/b.css
[ "MIT" ]
plz foo thx .plz bar thx .plz baz
Dogescript
0
erinkeith/dogescript
test/spec/plz/thx-chain-noargs/source.djs
[ "MIT" ]
##################################################### # N16.ampl : mesh size for inverse problem ##################################################### let Nx := 32; let Ny := 16;
AMPL
0
JuliaInv/ConvDiffMIPDECO
examples/ampl/N16.ampl
[ "MIT" ]
; RUN: llc -mattr=+unimplemented-simd128 -filetype=obj %s -o - | obj2yaml | FileCheck %s target triple = "wasm32-unknown-unknown" declare i32 @i32() declare i64 @i64() declare float @f32() declare double @f64() declare <16 x i8> @v16i8() declare <8 x i16> @v8i16() declare <4 x i32> @v4i32() declare <2 x i64> @v2i64()...
LLVM
4
medismailben/llvm-project
llvm/test/MC/WebAssembly/types.ll
[ "Apache-2.0" ]
#!/Applications/Octave.app/Contents/Resources/bin/octave-cli -qf printf ("Hello, Octave!\n");
Octave
0
sergev/vak-opensource
languages/octave/example.oct
[ "Apache-2.0" ]
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. #ifndef OPENCV_CORE_DETAILS_EXCEPTION_PTR_H #define OPENCV_CORE_DETAILS_EXCEPTION_PTR_H #ifndef CV__EXCEPTION_PTR # if defi...
C++
3
thisisgopalmandal/opencv
modules/core/include/opencv2/core/detail/exception_ptr.hpp
[ "BSD-3-Clause" ]
<template> <v-row> <v-col v-for="value in ['t', 'r', 'b', 'l']" :key="value" cols="12" md="3" > <div :class="`rounded-${value}-xl`" class="pa-4 text-center secondary text-no-wrap" v-text="`.rounded-${value}-xl`" ></div> </v-col> </v-row> </temp...
Vue
4
VBeytok/vuetify
packages/docs/src/examples/border-radius/misc-rounding-by-side.vue
[ "MIT" ]
%!PS-Adobe-3.0 %%Creator: graphviz version 2.38.0 (20140413.2041) %%Title: G %%Pages: (atend) %%BoundingBox: (atend) %%EndComments save %%BeginProlog /DotDict 200 dict def DotDict begin /setupLatin1 { mark /EncodingVector 256 array def EncodingVector 0 ISOLatin1Encoding 0 255 getinterval putinterval EncodingVector 4...
PostScript
4
ksemer/snap
test/graphviz/base_ungraph_Twopi_col.ps
[ "BSD-3-Clause" ]
#[deny(unreachable_patterns)] fn parse_data1(data: &[u8]) -> u32 { match data { b"" => 1, _ => 2, } } fn parse_data2(data: &[u8]) -> u32 { match data { //~ ERROR non-exhaustive patterns: `&[_, ..]` not covered b"" => 1, } } fn parse_data3(data: &[u8; 0]) -> u8 { match data...
Rust
4
Eric-Arellano/rust
src/test/ui/pattern/usefulness/type_polymorphic_byte_str_literals.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
[ This program tests how well the interpreter reacts to large runs of '>' and '<'. This is the source RLE-encoded. // Place a 4 in cell 4098 >63+[-64><[64>]+[64<]>] 64><[64>] >>4+<< 64<[-64<] // Move the 4 down to cell 2 >63+[-64><[64>]+[64<]>] 64><[64>] >>[-4096<+4096>]<< 64<[-64<] // Move and ...
Brainfuck
3
RubenNL/brainheck
examples/bench/skiploop.bf
[ "Apache-2.0" ]
module language/grandpa2 ---- Page 86 abstract sig Person { father: lone Man, mother: lone Woman } sig Man extends Person { wife: lone Woman } sig Woman extends Person { husband: lone Man } fact { no p: Person | p in p.^(mother+father) wife = ~husband } assert NoSelfFather { no m: Man | m = m.father } ...
Alloy
5
Kaixi26/org.alloytools.alloy
org.alloytools.alloy.extra/extra/models/book/chapter4/grandpa2.als
[ "Apache-2.0" ]
/* * generated by Xtext 2.17.1 */ package org.sculptor.dsl.formatting2 import org.eclipse.xtext.formatting2.AbstractFormatter2 import org.eclipse.xtext.formatting2.IFormattableDocument import org.sculptor.dsl.sculptordsl.DslApplication import org.sculptor.dsl.sculptordsl.DslImport import org.sculptor.dsl.sculptordsl...
Xtend
4
sculptor/sculptor
sculptor-eclipse/org.sculptor.dsl/src/org/sculptor/dsl/formatting2/SculptordslFormatter.xtend
[ "Apache-2.0" ]
variable "dependency" { type = any default = null } variable "region" {} variable "aws_ami" {} variable "aws_user" {} variable "volume_size" {} variable "vpc_id" {} variable "sg_id" {} variable "subnets" {} variable "access_key" {} variable "ec2_instance_class" {} variable "availability_zone" {} variable "resour...
HCL
2
rand4711/rancher
tests/validation/tests/v3_api/resource/terraform/k3s/worker/variables.tf
[ "Apache-2.0" ]
# varnishd -f /etc/varnish/default.vcl -s malloc,100M -a 0.0.0.0:80 -a 0.0.0.0:81,PROXY vcl 4.0; backend default { .host = "172.17.0.4"; .port = "80"; }
VCL
3
timothy2019/gshell
docker/varnish/root/etc/varnish/default.vcl
[ "MIT" ]
Terminals unused in grammar PPHEADER_NAME PPNUMBER PPPASTE Gramatika 0 $accept: Start $end 1 AbstractDeclarator: Pointer 2 | PointerOpt DirectAbstractDeclarator 3 AbstractDeclaratorOpt: %empty 4 | AbstractDeclarator 5 AdditiveExpression: Mul...
Bison
4
YKG/y
testdata/ok/cc2.y.bison
[ "BSD-3-Clause" ]
package { public class Test {} } trace("var qname_public = new QName(\"name\");"); var qname_public = new QName("name"); trace("///qname_public.toString()"); trace(qname_public.toString()); trace("///Object.prototype.toString.call(qname_public)"); trace(Object.prototype.toString.call(qname_public)); trace("var qn...
ActionScript
3
Sprak1/ruffle
tests/tests/swfs/avm2/qname_tostring/Test.as
[ "Apache-2.0", "Unlicense" ]
#*************************************************************************** # _ _ ____ _ # Project ___| | | | _ \| | # / __| | | | |_) | | # | (__| |_| | _ <| |___ # \___|\___/|...
M4
4
Greg-Muchka/curl
m4/curl-wolfssl.m4
[ "curl" ]
-- Andreas, 2017-12-04, issue #2862, reported by m0davis -- Regression in development version 2.5.4 -- Scope checker allowed definition in different module than signature -- {-# OPTIONS -v scope.data.def:30 #-} open import Agda.Builtin.Equality data N : Set module Z where data N where -- should be rejected sinc...
Agda
4
shlevy/agda
test/Fail/Issue2862.agda
[ "BSD-3-Clause" ]
module Lib where newtype Const :: forall k. Type -> k -> Type newtype Const a b = Const a data Unit = Unit type CONST = Const type UNIT = CONST Unit
PureScript
4
dunhamsteve/purescript
tests/purs/passing/4101/Lib.purs
[ "BSD-3-Clause" ]
#ifndef TH_GENERIC_FILE #error "You must define TH_GENERIC_FILE before including THGenerateLongType.h" #endif #define scalar_t int64_t #define accreal int64_t #define Real Long #define TH_REAL_IS_LONG #line 1 TH_GENERIC_FILE #include TH_GENERIC_FILE #undef scalar_t #undef accreal #undef Real #undef TH_REAL_IS_LONG #i...
C
3
Hacky-DH/pytorch
aten/src/TH/THGenerateLongType.h
[ "Intel" ]
import React from 'react'; import { expect } from 'chai'; import { describeIf, } from '../../_helpers'; import { is } from '../../_helpers/version'; export default function describeHostNodes({ Wrap, WrapRendered, }) { describe('.hostNodes()', () => { it('strips out any non-hostNode', () => { class F...
JSX
5
Joel-LT/enzyme-2
packages/enzyme-test-suite/test/shared/methods/hostNodes.jsx
[ "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. */ // This refers to a WWW module. const warningWWW = require('warning'); let suppressWarning = false; export function setSuppressWa...
JavaScript
4
GBKstc/react-analysis
packages/shared/forks/consoleWithStackDev.www.js
[ "MIT" ]
module M ; module N ; module P ; make Q : Set ; root ; elab M.N.P.Q ;
PigLatin
0
mietek/epigram
test/BugNameOrder.pig
[ "MIT" ]
{# # Copyright (c) 2017 Franco Fichtner <franco@opnsense.org> # Copyright (c) 2014-2015 Deciso B.V. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code m...
Volt
4
johanneskastl/opnsense-core
src/opnsense/mvc/app/views/layout_partials/base_tabs_header.volt
[ "BSD-2-Clause" ]
.thang-avatar-wrapper(class="team-" + (thang.team || "neutral")) //canvas(width=100, height=100, title=thang.id + " - " + thang.team) //- var title = thang.id + " - " + thang.team + (thang.type ? ' - type: "' + thang.type + '"' : '') img.avatar(src=avatarURL, draggable="false") img.avatar-frame(src="/images/lev...
Jade
3
cihatislamdede/codecombat
app/templates/play/level/thang_avatar.jade
[ "CC-BY-4.0", "MIT" ]
package date_test import "date" import "testing" import "array" testcase date_timeable { option now = () => 2021-03-01T00:00:00Z want = array.from(rows: [{_value: 2}]) got = array.from(rows: [{_value: date.month(t: -1mo)}]) testing.diff(want: want, got: got) }
FLUX
2
metrico/flux
stdlib/date/date_test.flux
[ "MIT" ]
-- Tests for writefile() local helpers = require('test.functional.helpers')(after_each) local clear, command, expect = helpers.clear, helpers.command, helpers.expect describe('writefile', function() setup(clear) it('is working', function() command('%delete _') command('let f = tempname()') command('c...
Lua
3
uga-rosa/neovim
test/functional/legacy/writefile_spec.lua
[ "Vim" ]
use std::mem::MaybeUninit; use std::ops::Deref; pub unsafe trait Array { /// The array’s element type type Item; #[doc(hidden)] /// The smallest index type that indexes the array. type Index: Index; #[doc(hidden)] fn as_ptr(&self) -> *const Self::Item; #[doc(hidden)] fn as_mut_ptr(&...
Rust
4
mbc-git/rust
src/test/ui/typeck/issue-65611.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <base href="../../../" /> <script src="page.js"></script> <link type="text/css" rel="stylesheet" href="page.css" /> </head> <body> [page:Loader] &rarr; <h1>[name]</h1> <p class="desc"> Loader for KTX 2.0 GPU Texture containers.<br><b...
HTML
4
omgEn/threeJs
docs/examples/en/loaders/KTX2Loader.html
[ "MIT" ]
#include <OpenBook.h> #include "bitmap.h" OpenBook *book; void setup() { Serial.begin(115200); book = new OpenBook(); book->configureScreen(); delay(1000); Adafruit_EPD *display = book->getDisplay(); display->drawBitmap(0, 0, OpenBookSplash, 400, 300, EPD_BLACK); display->display(); } void loop() { }
Arduino
3
gvvynplaine/The-Open-Book
Examples/Open_Book_Screen_Test/Open_Book_Screen_Test.ino
[ "MIT" ]
package com.baeldung.osgi.sample.activator; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; public class HelloWorld implements BundleActivator { public void start(BundleContext ctx) { System.out.println("Hello World."); } public void stop(BundleContext bundleC...
Java
4
zeesh49/tutorials
osgi/osgi-intro-sample-activator/src/main/java/com/baeldung/osgi/sample/activator/HelloWorld.java
[ "MIT" ]
# # Copyright 2010 (c) Pointwise, Inc. # All rights reserved. # # This sample Glyph script is not supported by Pointwise, Inc. # It is provided freely for demonstration purposes only. # SEE THE WARRANTY DISCLAIMER AT THE BOTTOM OF THIS FILE. # # =============================================== # NACA 4-SERIES AIRFOI...
Glyph
5
smola/language-dataset
data/github.com/pointwise/AirfoilGenerator/e8ffbce9b4e8d7f4e4ffecb91d6d8daf06d3be84/AirfoilGenerator.glf
[ "MIT" ]
--TEST-- Bug #72581 (previous property undefined in Exception after deserialization) --FILE-- <?php $e = new Exception('aaa', 200); $a = serialize($e); $b = unserialize($a); var_dump($b->__toString()); ?> --EXPECTF-- string(%s) "Exception: aaa in %sbug72581.php:%d Stack trace: #0 {main}"
PHP
3
thiagooak/php-src
Zend/tests/bug72581.phpt
[ "PHP-3.01" ]
List (forall (a : Type) . Bool)
Grace
0
DebugSteven/grace
tasty/data/complex/unused-impredicative-polymorphism-type.grace
[ "BSD-3-Clause" ]
#![warn(clippy::octal_escapes)] fn main() { let _bad1 = "\033[0m"; let _bad2 = b"\033[0m"; let _bad3 = "\\\033[0m"; // maximum 3 digits (\012 is the escape) let _bad4 = "\01234567"; let _bad5 = "\0\03"; let _bad6 = "Text-\055\077-MoreText"; let _bad7 = "EvenMoreText-\01\02-ShortEscapes"...
Rust
3
ohno418/rust
src/tools/clippy/tests/ui/octal_escapes.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
#+TITLE: tools/terraform #+DATE: November 21, 2019 #+SINCE: v2.1.0 #+STARTUP: inlineimages * Table of Contents :TOC_3:noexport: - [[#description][Description]] - [[#module-flags][Module Flags]] - [[#plugins][Plugins]] - [[#prerequisites][Prerequisites]] - [[#features][Features]] - [[#syntax-highlighting][...
Org
4
leezu/doom-emacs
modules/tools/terraform/README.org
[ "MIT" ]
Prefix(:=<http://example.org/>) Ontology(:TestSubclassOfExistential Declaration(ObjectProperty(:p)) SubClassOf(:subclass ObjectSomeValuesFrom(:p :superclass)) )
Web Ontology Language
3
jmcmurry/SciGraph
SciGraph-core/src/test/resources/ontologies/cases/TestSubClassOfExistential.owl
[ "Apache-2.0" ]
# patch-1 # import os # The OS module in python provides functions for interacting with the operating system # patch-3 # function to check if 'binod' is present in the file. # def checkBinod(file): # ======= # def checkBinod(file): #this function will check there is any 'Binod' text in file or not # with op...
Python
4
wisarut-si/Python
binod.py
[ "MIT" ]
{ "patcher" : { "fileversion" : 1, "appversion" : { "major" : 5, "minor" : 1, "revision" : 9 } , "rect" : [ 198.0, 92.0, 365.0, 407.0 ], "bglocked" : 0, "defrect" : [ 198.0, 92.0, 365.0, 407.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 14.0, "...
Max
4
JavascriptID/sourcerer-app
src/test/resources/samples/langs/Max/Hello.maxpat
[ "MIT" ]
*** Settings *** Documentation Test global variables in 'close' listener method with test case scope library Library ../global_vars_listenerlibrary.py *** Test Cases *** Global variables test case scope test 1 No Operation Global variables test case scope test 2 No Operation
RobotFramework
2
phil-davis/robotframework
atest/testdata/test_libraries/as_listener/global_vars_listener/test_case_scope.robot
[ "ECL-2.0", "Apache-2.0" ]
# Copyright (c) 2018-2021, Carnegie Mellon University # See LICENSE for details Import(paradigms.vector.rewrite); Import(paradigms.smp); Import(paradigms.distributed); Import(paradigms.multibuffer); StandardVecRules := MergedRuleSet(RulesSplitComplex, StandardSumsRules, RulesSMP, RulesVec, RulesPropagate, RulesVDia...
GAP
4
sr7cb/spiral-software
namespaces/spiral/libgen/recvector.gi
[ "BSD-2-Clause-FreeBSD" ]
--TEST-- SPL: SplPriorityQueue current on empty queue should give null --CREDITS-- Mark Schaschke (mark@fractalturtle.com) TestFest London May 2009 --FILE-- <?php $h = new SplPriorityQueue(); var_dump($h->current()); ?> --EXPECT-- NULL
PHP
3
guomoumou123/php5.5.10
ext/spl/tests/pqueue_current_error.phpt
[ "PHP-3.01" ]
{** * @param array $namespaces * @param array $classes * @param string $namespace * @param Apigen\CustomClassReflection $class * @param string $fileRoot *} {default $class = NULL, $namespace = NULL, $top = TRUE} <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD...
Latte
3
timfel/netbeans
php/php.latte/test/unit/data/testfiles/parser/issue245728_23.latte
[ "Apache-2.0" ]
// rustfmt-normalize_comments: true enum E { A, //* I am not a block comment (caused panic) B, }
Rust
4
mbc-git/rust
src/tools/rustfmt/tests/target/issue-1216.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
namespace OpenAPI open StoreApiHandlerParams open StoreApiServiceImplementation open Microsoft.AspNetCore.Mvc open Microsoft.AspNetCore.Http open Newtonsoft.Json open Microsoft.Azure.WebJobs open System.IO module StoreApiHandlers = /// <summary> /// /// </summary> //#region DeleteOrder /// <sum...
F#
5
MalcolmScoffable/openapi-generator
samples/server/petstore/fsharp-functions/OpenAPI/src/api/StoreApiHandler.fs
[ "Apache-2.0" ]
GET /test HTTP/1.0\r\n Host: 0.0.0.0:5000\r\n User-Agent: ApacheBench/2.3\r\n Accept: */*\r\n \r\n
HTTP
1
ashishmjn/gunicorn
tests/requests/valid/015.http
[ "MIT" ]
%% %unicode 6.0 %public %class UnicodeScripts_6_0_extensions_3 %type int %standalone %include ../../resources/common-unicode-all-enumerated-property-defined-values-only-java %% <<EOF>> { printOutput(); return 1; } \p{Script_Extensions:Gurmukhi} { setCurCharPropertyValue("Script_Extensions:Gurmukhi"); } \p{Script_E...
JFlex
3
Mivik/jflex
testsuite/testcases/src/test/cases/unicode-scripts/UnicodeScripts_6_0_extensions_3.flex
[ "BSD-3-Clause" ]
--- title: Documentation layout: documentation breadcrumb: - home - documentation --- {% include components/links.html icons=true %}
HTML
1
kalpitzeta/bulma
docs/documentation.html
[ "MIT" ]
# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # @ECLASS: enlightenment.eclass # @MAINTAINER: # maintainer-needed@gentoo.org # @BLURB: simplify enlightenment package management if [[ -z ${_ENLIGHTENMENT_ECLASS} ]]; then _ENLIGHTENMENT_ECLASS=1 inherit epatc...
Gentoo Eclass
3
NighttimeDriver50000/Sabayon-Packages
local_overlay/eclass/enlightenment.eclass
[ "MIT" ]
module Page { // View code goes here function page_template(title, content) { html = <div class="navbar navbar-fixed-top"> <div class=navbar-inner> <div class=container> <a class=brand href="./index.html">application_name</> </div> </div> </div> ...
Opa
3
Machiaweliczny/oppailang
tools/opa-create/template/mvc/src/view/page.opa
[ "MIT" ]
import * as React from 'react'; import { Box, ThemeProvider, createTheme } from '@mui/system'; const theme = createTheme({ palette: { background: { paper: '#fff', }, text: { primary: '#173A5E', secondary: '#46505A', }, action: { active: '#001E3C', }, success: { ...
TypeScript
4
dany-freeman/material-ui
docs/data/system/the-sx-prop/Example.tsx
[ "MIT" ]
C Copyright(c) 1998, Space Science and Engineering Center, UW-Madison C Refer to "McIDAS Software Acquisition and Distribution Policies" C in the file mcidas/data/license.txt C *** $Id: nvxgmsx.dlm,v 1.1 2000/06/26 15:51:49 daves Exp $ *** FUNCTION NVXINI(IFUNC,IPARMS) INTEGER IFUNC INTEGER IPAR...
IDL
4
oxelson/gempak
extlibs/AODT/v72/odtmcidas/navcal/navcal/nvxgmsx.dlm
[ "BSD-3-Clause" ]
#include "caffe2/operators/hard_sigmoid_op.h" #include <algorithm> #include <functional> #include "caffe2/core/context_gpu.h" namespace caffe2 { namespace { template <typename T> __global__ void HardSigmoidCUDAKernel( const int N, const T alpha, const T beta, const T* X, T* Y) { CUDA_1D_KERNE...
Cuda
3
Hacky-DH/pytorch
caffe2/operators/hard_sigmoid_op.cu
[ "Intel" ]
div { background: url(/images/bg.png); background: -fb-url(/images/bg.png); }
CSS
4
toplenboren/prettier
tests/css/url/url.css
[ "MIT" ]
# This is a wrapper of the upstream `./upstream/FindCUDA.cmake` that # automatically includes `./upstream/CMakeInitializeConfigs.cmake` before # `./upstream/FindCUDA.cmake`. The `CMakeInitializeConfigs.cmake`, which is # absent in old CMake versions, creates some necessary variables for the later # to run. # See ./READ...
CMake
4
Hacky-DH/pytorch
cmake/Modules_CUDA_fix/FindCUDA.cmake
[ "Intel" ]
* 2-Mux w/ Transmission Gates .subckt mux2trans in0 in1 out clk clkn Vdd Gnd size=1 pnratio=2 X0 in0 clkn out Gnd nfet size='size' X1 out clk in0 Vdd pfet size='size*pnratio' X2 in1 clk out Gnd nfet size='size' X3 out clkn in1 Vdd pfet size='size*pnratio' .ends
SourcePawn
3
HackerFoo/vtr-verilog-to-routing
vtr_flow/scripts/spice/subckt/mux2trans.sp
[ "MIT" ]
/* * This file implements a L3 router, but with static ARP replacement * * It uses only vanilla Click element, the purpose of this file is * to compare it against router.click. * * This router has 4 I/O ports, and is intended to run on a 12 core sytem, * using 3 queues per device to dispatch the traffic on ...
Click
4
BorisPis/asplos22-nicmem-fastclick
conf/router/router-vanilla.click
[ "BSD-3-Clause-Clear" ]
// Copyright 2019 The gRPC Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
Protocol Buffer
4
mpminardi/grpc
src/proto/grpc/testing/xds/ads_for_test.proto
[ "Apache-2.0" ]
<%! TYPE_VARS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' MAX_ARITY = 22 def nested_tuples(n): """ >>> nested_tuples(2) (a, b) >>> nested_tuples(3) ((a, b), c) >>> nested_tuples(5) '((((a, b), c), d), e)' """ def pairwise(elems): if not elems: return '' elif len(elems) == 1: retu...
Mako
5
tdyas/util
codegen/util-test/ArgumentCapture.scala.mako
[ "Apache-2.0" ]
module Drv { port GpioWrite( state: bool ) } module Drv { port GpioRead( ref state: bool ) }
FORTRAN
4
AlperenCetin0/fprime
Drv/GpioDriverPorts/GpioDriverPorts.fpp
[ "Apache-2.0" ]