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
#!/usr/bin/perl $count = 1; @cookies = split(/;/, $ENV{'HTTP_COOKIE'}); foreach $pair (@cookies) { ($name, $value) = split(/=/, $pair); $name =~ s/^\s+//; $name =~ s/\s+$//; if ($name eq "redirect-cycle-count") { $count = $value; } } if ($count eq 1) { print "Status: 302 Moved Tempo...
Perl
3
zealoussnow/chromium
third_party/blink/web_tests/http/tests/navigation/resources/redirect-cycle-1.pl
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
Note 0 Copyright (C) 2017 Jonathan Hough. All rights reserved. ) Note 'References' [0] Deep Learning, Bengio Y., Courville, A., Chapter 8. see: http://www.deeplearningbook.org/contents/optimization.html [1] An overview of gradient descent optimization algorithms, Ruder, S. see: arXiv:1609.04747 ) cocurrent 'jMlpOp...
J
5
jonghough/jlearn
mlp/mlpopt.ijs
[ "MIT" ]
.class public LTestReservedNames; .super Ljava/lang/Object; .source "TestReservedNames.java" # instance fields .field public do:Ljava/lang/String; # reserved name .field public 0f:Ljava/lang/String; # invalid identifier # direct methods .method public constructor <init>()V .registers 1 .prologue .line ...
Smali
3
DSYliangweihao/jadx
jadx-core/src/test/smali/names/TestReservedNames.smali
[ "Apache-2.0" ]
<g:each in="${selectedEncrypter}" var="prop"> <g:render template="/framework/pluginConfigPropertyFormField" model="${[prop:prop, error: report?.errors ? report.errors[prop.name] : null, ...
Groovy Server Pages
2
kbens/rundeck
rundeckapp/grails-app/views/passwordUtility/_renderSelectedEncrypter.gsp
[ "Apache-2.0" ]
/* * Copyright (C) 2008 The Guava 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 ...
Java
5
ksodhi2/guava
guava/src/com/google/common/escape/Escaper.java
[ "Apache-2.0" ]
(set-info :smt-lib-version 2.6) (set-logic QF_UF) (set-info :source | Generating minimum transitivity constraints in P-time for deciding Equality Logic, Ofer Strichman and Mirron Rozanov, SMT Workshop 2005. Translator: Leonardo de Moura. |) (set-info :category "crafted") (set-info :status unsat) (declare-sort U 0) (de...
SMT
3
livinlife6751/infer
sledge/test/smt/QF_UF/eq_diamond/eq_diamond1.smt2
[ "MIT" ]
/* 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
ashutom/tensorflow-upstream
tensorflow/lite/nnapi/sl/include/SupportLibrary.h
[ "Apache-2.0" ]
INSERT INTO drivers_license(id, license_number) values(1, 1234); INSERT INTO person(id, name, drivers_license_id) values(1, 'Sam', 1);
SQL
3
nicchagil/spring-framework
spring-test/src/test/resources/org/springframework/test/context/junit4/orm/db-test-data.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. * * Implementation of this file has been influenced by phalcon-api and AuraPHP * @link ...
Zephir
4
tidytrax/cphalcon
phalcon/Domain/Payload/Status.zep
[ "BSD-3-Clause" ]
#!/usr/bin/osascript # @raycast.title Hate Current Track # @raycast.author Bryan Schuetz # @raycast.authorURL https://github.com/bryanschuetz # @raycast.description Let the algorithm know how you feel about the currently playing track. # @raycast.icon images/apple-music-logo.png # @raycast.placeholder Hate it # @rayc...
AppleScript
4
daviddzhou/script-commands
commands/media/apple-music/apple-music-hate-current-track.applescript
[ "MIT" ]
\ #! /usr/stud/paysan/bin/forth DECIMAL \ : SECS TIME&DATE SWAP 60 * + SWAP 3600 * + NIP NIP NIP ; CREATE FLAGS 8190 ALLOT variable eflag \ FLAGS 8190 + CONSTANT EFLAG \ use secondary fill like pForth !!! : FILL { caddr num charval -- } num 0 ?DO charval caddr i + c! LOOP ; : PRIMES ( -- n ) FLAGS 8190 1 ...
Forth
3
610t/retrobsd
src/cmd/pforth/fth/siev.fth
[ "BSD-3-Clause" ]
property uparrowKeyCode : 126 property downarrowKeyCode : 125 property rightarrowKeyCode : 124 property leftarrowKeyCode : 123 to activateNetNewsWire() tell application "NetNewsWire" activate end tell end activateNetNewsWire to multipleKeyCodes(keycode, numberOfKeys) tell application "System Events" tell proce...
AppleScript
4
bubudrc/NetNewsWire
Tests/NetNewsWireTests/ScriptingTests/scripts/establishMainWindowStartingState.applescript
[ "MIT" ]
#define OBJECTSHADER_COMPILE_VS #define OBJECTSHADER_LAYOUT_SHADOW #include "objectHF.hlsli"
HLSL
1
rohankumardubey/WickedEngine
WickedEngine/shaders/shadowVS.hlsl
[ "MIT" ]
PROGRAM PRAGMA('project(#pragma link(libcurl.lib))') INCLUDE('libcurl.inc') MAP PrintCookies(TCurlHttpClass pCurl) END SEP EQUATE('<9>') !Tab separates the fields my_cookie STRING( '' | & 'example.com' | !...
Clarion
4
mikeduglas/libcurl
examples/HTTP Cookies/cookies.clw
[ "curl" ]
globalias() { # Get last word to the left of the cursor: # (z) splits into words using shell parsing # (A) makes it an array even if there's only one element local word=${${(Az)LBUFFER}[-1]} if [[ $GLOBALIAS_FILTER_VALUES[(Ie)$word] -eq 0 ]]; then zle _expand_alias zle expand-word fi zl...
Shell
4
chensanle/ohmyzsh
plugins/globalias/globalias.plugin.zsh
[ "MIT" ]
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. Describe "Get-Culture" -Tags "CI" { It "Should return a type of CultureInfo for Get-Culture cmdlet" { $culture = Get-Culture $culture | Should -BeOfType CultureInfo ($culture).EnglishName | Should -BeExactly $Host.Cu...
PowerShell
5
rdtechie/PowerShell
test/powershell/Modules/Microsoft.PowerShell.Utility/Get-Culture.Tests.ps1
[ "MIT" ]
;Change this file to customize zip2exe generated installers with a modern interface !include "MUI.nsh" !insertmacro MUI_PAGE_DIRECTORY !insertmacro MUI_PAGE_INSTFILES !insertmacro MUI_LANGUAGE "English"
NSIS
3
vbillet/Torque3D
Engine/bin/tools/nsis/app/Contrib/zip2exe/Modern.nsh
[ "MIT" ]
<html> <head> <title>Page B</title> </head> <body> <h1>Page B</h1> </body> </html>
HTML
3
adlerliu/500lines
web-server/code/05-refactored/subdir/b.html
[ "CC-BY-3.0" ]
read n (leave some free space to stop the final loop) >>,>++++++++[-<------>] generate all integers from n to 0 separated by 0 <[[->+>+<<]>[-<+>]>-] set result to 1 and move to integer '1' <+< While current integer is not null [ multiply result by current integer [->[->+>+<<]>[-<+>]<<] store result at its new loc...
Brainfuck
2
CarbonDDR/al-go-rithms
math/factorial/brainfuck/fact.bf
[ "CC0-1.0" ]
new class BoseNelsonSort { new classmethod merge(array, a1, l1, a2, l2) { if l1 == 1 and l2 == 1 { compSwap(array, a1, a2); } elif l1 == 1 and l2 == 2 { compSwap(array, a1, a2 + 1); compSwap(array, a1, a2); } elif l1 == 2 and l2 == 1 { compSwap...
Opal
4
thatsOven/sorting-visualizer
sorts/BoseNelsonSort.opal
[ "MIT" ]
.class public final Lconditions/TestConditions18; .super Ljava/lang/Object; .field private map:Ljava/util/Map; .method public test(Ljava/lang/Object;)Z .locals 1 if-eq p0, p1, :cond_1 instance-of v0, p1, Lconditions/TestConditions18; if-eqz v0, :cond_0 check-cast p1, Lconditions/TestConditions...
Smali
3
DSYliangweihao/jadx
jadx-core/src/test/smali/conditions/TestConditions18.smali
[ "Apache-2.0" ]
@article{hinton2015distilling, title={Distilling the knowledge in a neural network}, author={Hinton, Geoffrey and Vinyals, Oriol and Dean, Jeff}, journal={arXiv preprint arXiv:1503.02531}, year={2015} } @inproceedings{nguyen2015deep, title={Deep neural networks are easily fooled: High confidence predictions f...
TeX
2
kavithasasikumar/Machine-learning
top100papers.bib
[ "CC0-1.0" ]
(* ****** ****** *) #include "share/atspre_staload.hats" #include "share/atspre_staload_libats_ML.hats" (* ****** ****** *) #include "$PATSHOMELOCS\ /atscntrb-hx-libjson-c/mylibies.hats" #include "$PATSHOMELOCS\ /atscntrb-hx-libjson-c/mylibies_link.hats" #staload $JSON_ML fun jsonval_int (x: int) = JSONint(g0i2i(x...
ATS
4
ats-lang/ATS-CodeBook
RECIPE/Hangman3/Hangman3_player1.dats
[ "MIT" ]
class A.TRAIT { method map { object { method asString { "a map" } } } } method m { object { inherits A.TRAIT } } print "m.map = {m.map}" print "A.trait.map = {A.TRAIT.map}"
Grace
3
Dmitri-2/GraceWebsite
js-simple/tests/t152_inheritsReturnObject_test.grace
[ "MIT", "BSD-3-Clause" ]
CREATE TABLE `tb_flnycxasap` ( `col_rqtzrkfarg` timestamp NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
SQL
2
yuanweikang2020/canal
parse/src/test/resources/ddl/alter/mysql_27.sql
[ "Apache-2.0" ]
{{#if no_query}} <li class="no_history {{displayed_class}}">No history available</li> {{else}} <li class="query_history {{displayed_class}}" id="query_history_{{id}}"> <div class="query_history_content"> <div class="query_id">[{{num}}]</div> <pre class="query">{{query}}</pre> <div class="right_container">...
Handlebars
4
zadcha/rethinkdb
admin/static/handlebars/dataexplorer-query_li.hbs
[ "Apache-2.0" ]
<p>Hello!</p>
Java Server Pages
0
zeesh49/tutorials
spring-custom-aop/src/main/webapp/index.jsp
[ "MIT" ]
implementation module SimpleHash import StdEnv primes =: [ 53, 97, 193, 389, 769, 1543, 3079, 6151, 12289, 24593, 49157, 98317, 196613, 93241, 786433, 1572869, 3145739, 6291469, 12582917, 25165843, 50331653, 10066331...
Clean
3
kragen/shootout
bench/Include/clean/SimpleHash.icl
[ "BSD-3-Clause" ]
// Copyright 2021 The Google Research 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...
C++
4
DionysisChristopoulos/google-research
aptamers_mlpd/preprocess/scam_featurize_main.cc
[ "Apache-2.0" ]
(in-package #:cl-user) ;;;; 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...
Common Lisp
4
d-roenko/thrift
test/cl/make-test-client.lisp
[ "Apache-2.0" ]
--TEST-- Test nullsafe in sub-chain of function argument --FILE-- <?php function takes_ref(&$foo) { $foo = 'foo'; } function &returns_ref($ref) { global $foo; return $foo; } global $foo; $null = null; takes_ref(returns_ref($null?->null())); var_dump($foo); ?> --EXPECT-- string(3) "foo"
PHP
3
NathanFreeman/php-src
Zend/tests/nullsafe_operator/027.phpt
[ "PHP-3.01" ]
* a scenario name is mandatory to load the gdx file - abort the run if not specified or file does not exist $IF NOT SET in $ABORT "no input data file provided!" $IF NOT EXIST '%in%' $ABORT "input GDX file '%in%' does not exist!" ** option to run MACRO standalone or interactively linked (iterating) with MESSAGE *...
GAMS
4
shaohuizhang/message_ix
message_ix/model/MACRO_run.gms
[ "Apache-2.0", "CC-BY-4.0" ]
// run-pass // ignore-pretty issue #37195 // Testing that the parser for each file tracks its modules // and paths independently. The load_another_mod module should // not try to reuse the 'mod_dir_simple' path. mod mod_dir_simple { pub mod load_another_mod; } pub fn main() { assert_eq!(mod_dir_simple::load_...
Rust
4
Eric-Arellano/rust
src/test/ui/modules/mod_dir_recursive.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
CONTENT HERE
Zimpl
4
haskellcamargo/ExtendedZPL
compiled/Main.zpl
[ "MIT" ]
MsgBox, Hello`, World!
AutoHotkey
2
JavascriptID/sourcerer-app
src/test/resources/samples/langs/AutoHotkey/hello.ahk
[ "MIT" ]
# put negative index greater than size # # @expect=org.quattor.pan.exceptions.EvaluationException # object template list9; "/a" = { t = list(1 ,2); t[-3] = 100; };
Pan
3
aka7/pan
panc/src/test/pan/Functionality/list/list9.pan
[ "Apache-2.0" ]
image { width: 40; height: 40; flex-grow: 0; flex-shrink: 0; } Label { border-width: 1; border-color: black; padding: 0; flex-grow: 1; flex-shrink: 1; }
CSS
3
wiltonlazary/NativeScript
e2e/ui-tests-app/app/flexbox/flexbox-4834-page.css
[ "Apache-2.0" ]
version https://git-lfs.github.com/spec/v1 oid sha256:1ce11b0b92e48073580b608326e9ff2d8a8eb7a47504deee9b6039080728ab94 size 576
Nit
0
JGCRI/lds
indata/WaterFootprint/Report47-App-IV-RasterMaps/Coconuts/info/arc0007.nit
[ "BSD-3-Clause-LBNL" ]
#tag Class Protected Class App Inherits Application #tag Event Sub NewDocument() dim w as new WndAdmin w.Show End Sub #tag EndEvent #tag Event Sub Open() return // // Some test code below // // // Create the pref folder // dim f as FolderItem = PrefFolder...
Xojo
4
joneisen/Kaju
Kaju Admin App/App.xojo_code
[ "MIT" ]
--TEST-- DOMDocument::$encoding - read/write tests (dom_document_encoding_read/dom_document_encoding_write) --CREDITS-- Hans Zaunere # TestFest 2009 NYPHP --EXTENSIONS-- dom --FILE-- <?php require_once('dom_test.inc'); $dom = new DOMDocument; $dom->loadXML($xmlstr); if( !$dom ) { echo "Error while parsing the do...
PHP
4
NathanFreeman/php-src
ext/dom/tests/DOMDocument_encoding_basic.phpt
[ "PHP-3.01" ]
#+TITLE: lang/haskell #+DATE: January 16, 2017 #+SINCE: v0.7 #+STARTUP: inlineimages * Table of Contents :TOC: - [[#description][Description]] - [[#maintainers][Maintainers]] - [[#module-flags][Module Flags]] - [[#plugins][Plugins]] - [[#prerequisites][Prerequisites]] - [[#features][Features]] - [[#config...
Org
4
leezu/doom-emacs
modules/lang/haskell/README.org
[ "MIT" ]
import numpy as np import scipy.sparse as sp import pytest from sklearn.utils._testing import assert_allclose from sklearn.utils._testing import assert_array_almost_equal from sklearn.utils import check_random_state from sklearn.datasets import load_iris from sklearn.linear_model import Perceptron iris = load_iris() ...
Python
5
MaiRajborirug/scikit-learn
sklearn/linear_model/tests/test_perceptron.py
[ "BSD-3-Clause" ]
#level-loading-view .level-content #control-bar-view #canvas-wrapper canvas(width=924, height=589)#webgl-surface canvas(width=924, height=589)#normal-surface #canvas-left-gradient.gradient #canvas-top-gradient.gradient #gold-view.secret.expanded #level-chat-view #duel-stats-view #playback-v...
Jade
3
cihatislamdede/codecombat
app/templates/play/spectate.jade
[ "CC-BY-4.0", "MIT" ]
{ "@context": { "property": { "@id": "http://example.com/property", "@container": "@index" } } }
JSONLD
3
fsteeg/json-ld-api
tests/compact/0064-context.jsonld
[ "W3C" ]
SUMMARY = "Realtek out-of-tree kernel driver for rtl8192cu" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://include/autoconf.h;startline=1;endline=18;md5=25cbdd5262c1bef1021387c1fbe9d7ba" inherit module SRC_URI = "git://github.com/agherzan/rtl8192cu.git" SRCREV = "8dc5b70d63154d85d71a213546a978393ccc2f16" S = "${WORKDIR...
BitBake
2
dtischler/px30-test
layers/meta-balena/meta-balena-common/recipes-kernel/rtl8192cu/rtl8192cu_4.0.2_9000.bb
[ "Apache-2.0" ]
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Imports Microsoft.CodeAnalysis.Test.Utilities Imports Roslyn.Test.Ut...
Visual Basic
4
ffMathy/roslyn
src/Compilers/VisualBasic/Test/IOperation/IOperation/IOperationTests_ITupleExpression.vb
[ "MIT" ]
@import base .heading margin-bottom: 1em &:not(:first-child) padding-top: 0.5em @include breakpoint(max, md) .heading word-wrap: break-word @each $level, $size in (1: 4.4, 2: 3.4, 3: 2.6, 4: 2.2, 5: 1.8) .h#{$level} font: normal 500 #{$size}rem/#{1.1} var(--font-secondary) ....
Sass
4
snosrap/spaCy
website/src/styles/typography.module.sass
[ "MIT" ]
--TEST-- mysqli_real_escape_string() --EXTENSIONS-- mysqli --SKIPIF-- <?php require_once('skipifconnectfailure.inc'); ?> --FILE-- <?php require_once("connect.inc"); require('table.inc'); if ('фу\\\\бар' !== ($tmp = mysqli_real_escape_string($link, 'фу\\бар'))) printf("[004] Expecting фу\\\\бар, go...
PHP
3
NathanFreeman/php-src
ext/mysqli/tests/mysqli_real_escape_string_unicode.phpt
[ "PHP-3.01" ]
[build] publish = "built-storybooks" command = "yarn bootstrap --core && yarn build-storybooks" [build.environment] NODE_VERSION = "12" YARN_VERSION = "1.22.10" DOTENV_DISPLAY_WARNING = "none" STORYBOOK_EXAMPLE_APP ="true" [[headers]] for = "/*" [headers.values] Access-Control-Allow-Origin = "*"
TOML
3
Fenixk/storybook
netlify.toml
[ "MIT" ]
# Makes an ESTree AST node into an expression, if it's not one already. { is-expression } = require \esutils .ast module.exports = (es-ast-node) -> if es-ast-node |> is-expression type : \ExpressionStatement expression : es-ast-node else es-ast-node
LiveScript
3
0xflotus/eslisp
src/es-statementify.ls
[ "ISC" ]
/* * Copyright (C) 2013 The Android Open Source Project * * 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 app...
C
4
Neptos/openpilot
phonelibs/android_hardware_libhardware/include/hardware/memtrack.h
[ "MIT" ]
# Equivalence ```haskell module Equivalence where import AlphaNormalization (alphaNormalize) import BetaNormalization (betaNormalize) import Binary (encode) import Syntax (Expression) ``` Equivalence is a relationship between two expression of the form: l ≡ r ... where: * `l` (an input) is an expression to ...
Literate Haskell
5
tesaguri/dhall-lang
standard/Equivalence.lhs
[ "BSD-3-Clause" ]
/* 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...
Protocol Buffer
3
EricRemmerswaal/tensorflow
tensorflow/core/tpu/kernels/tpu_compilation_cache_common.proto
[ "Apache-2.0" ]
// Regression test for #84632: Recursion limit is ignored // for builtin macros that eagerly expands. #![recursion_limit = "15"] macro_rules! a { () => (""); (A) => (concat!("", a!())); (A, $($A:ident),*) => (concat!("", a!($($A),*))) //~^ ERROR recursion limit reached //~| HELP consider increasing...
Rust
4
ohno418/rust
src/test/ui/macros/issue-84632-eager-expansion-recursion-limit.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
(set-info :smt-lib-version 2.6) (set-logic QF_UF) (set-info :source | Generated by: Aman Goel (amangoel@umich.edu), Karem A. Sakallah (karem@umich.edu) Generated on: 2018-04-06 Generated by the tool Averroes 2 (successor of [1]) which implements safety property verification on hardware systems. This SMT problem belon...
SMT
3
livinlife6751/infer
sledge/test/smt/QF_UF/2018-Goel-hwbench/QF_UF_loyd.2.prop1_ab_reg_max.smt2
[ "MIT" ]
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: compiler/ir/serialization.common/src/KotlinIr.proto package org.jetbrains.kotlin.backend.common.serialization.proto; public interface FileWrappedIdSignatureOrBuilder extends // @@protoc_insertion_point(interface_extends:org.jetbrains.kotlin.ba...
Java
4
Mu-L/kotlin
compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/proto/FileWrappedIdSignatureOrBuilder.java
[ "ECL-2.0", "Apache-2.0" ]
%%% %%% Author: %%% Christian Schulte <schulte@ps.uni-sb.de> %%% %%% Contributors: %%% Denys Duchier <duchier@ps.uni-sb.de> %%% Leif Kornstaedt <kornstae@ps.uni-sb.de> %%% %%% Copyright: %%% Denys Duchier, 1998 %%% Christian Schulte, 1998 %%% %%% Last change: %%% $Date$ by $Author$ %%% $Revision$ %%% %%% ...
Oz
5
Ahzed11/mozart2
lib/main/init/Module.oz
[ "BSD-2-Clause" ]
// // Copyright (c) 2006, Brian Frank and Andy Frank // Licensed under the Academic Free License version 3.0 // // History: // 10 Jan 06 Andy Frank Creation // using compiler ** ** Run the C# compiler to produce an exe or dll. ** class CompileCs : Task { //////////////////////////////////////////////////////////...
Fantom
5
fanx-dev/fantom
src/build/fan/tasks/CompileCs.fan
[ "AFL-3.0" ]
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. using namespace Microsoft.PowerShell.Commands # Take a hashtable and return two copies, # one with the key/value pair, the other without function PermuteHashtableOnProperty { param([hashtable[]]$Hashtable, [string]$Key, [object]$Value) ...
PowerShell
5
rdtechie/PowerShell
test/powershell/engine/Module/ModuleSpecification.Tests.ps1
[ "MIT" ]
make N := ? : Set ; make zero := ? : N ; make suc := ? : N -> N ; make Fin := ? : (n : N) -> Set ; make f0 := ? : (n : N) -> Fin (suc n) ; make fs := ? : (n : N)(x : Fin n) -> Fin (suc n) ; make fin-elim := ? : (n : N) (x : Fin n) (P : (n : N) -> Fin n -> Set) -> ((k ...
PigLatin
4
mietek/epigram
test/Elim3.pig
[ "MIT" ]
import sys.FileSystem; function deleteDirectory(path:String) { if (!FileSystem.isDirectory(path)) return FileSystem.deleteFile(path); for (item in FileSystem.readDirectory(path)) deleteDirectory('$path/$item'); FileSystem.deleteDirectory(path); } function main() { final definePairs = sys.io.File.getContent(...
Haxe
3
Mu-L/haxe
tests/misc/cpp/projects/Issue10184/CheckOptionsTxt.hx
[ "MIT" ]
namespace tst1 inductive Foo : Type | node : (ℕ → Foo) → Foo | leaf : Foo constant Bar : Type constant P : Bar → Prop constant Q : Bar → Type axiom P_ax : ∀ b, P b lemma foo_error : ∀ (foo : Foo) (b : Bar), P b | (Foo.node f) := λ b, foo_error (f 0) b | Foo.leaf := λ b, P_ax b end tst1 namespace tst2 inductiv...
Lean
4
JLimperg/lean
tests/lean/run/reflexive_elim_prop_bug.lean
[ "Apache-2.0" ]
{% include user %} {% include sub/file %} {% include "footer.html" %}
Liquid
2
hatemhosny/consolidate.js
test/fixtures/liquid/include.liquid
[ "Unlicense", "MIT" ]
# Copyright 2016 Google Inc. 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...
Smali
3
jbg168/enjarify
tests/test7/smali/a/a.smali
[ "Apache-2.0" ]
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1008" height="1008" viewBox="0 0 1008 1008"> <title>Ten Years of Changelog</title> <defs> <linearGradient id="a" y1="1008" x2="1" y2="1008" gradientTransform="translate(462.82 -70449.14) scale(70.67)" gradientUnits="user...
HTML+EEX
3
gustavoarmoa/changelog.com
lib/changelog_web/templates/page/_ten/ten_year_logo.html.eex
[ "MIT" ]
@echo off rem opencon - launch the openconsole binary. rem Runs the OpenConsole.exe binary generated by the build in the debug directory. rem Passes any args along. if not exist %OPENCON%\bin\%ARCH%\%_LAST_BUILD_CONF%\OpenConsole.exe ( echo Could not locate the OpenConsole.exe in %OPENCON%\bin\%ARCH%\%_...
Batchfile
4
hessedoneen/terminal
tools/opencon.cmd
[ "MIT" ]
import { add } from "./other"; add(1, 2);
ActionScript
1
romdotdog/assemblyscript
tests/extension/assembly/index.as
[ "Apache-2.0" ]
type User { name: String birthday: Int } extend type User { age: Int }
GraphQL
3
tumido/prettier
tests/format/graphql/type-extension-definition/type-extendsion-syntax.graphql
[ "MIT" ]
# Copyright 2017 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...
Cython
3
samotarnik/grpc
src/python/grpcio/grpc/_cython/_cygrpc/operation.pxd.pxi
[ "Apache-2.0" ]
CNoise noise => AmbPan3 pan => dac; 0.1 => noise.gain; "pink" => noise.mode; pi/2 => pan.elevation; while(true) { //pan.azimuth()+pi/1024 => pan.azimuth; //pan.elevation() + pi/512 => pan.elevation; 5::ms => now; }
ChucK
2
ccdarabundit/chugins
AmbPan/AmbPan3-test.ck
[ "MIT" ]
package com.baeldung.maven.plugins; import java.util.ArrayList; import java.util.List; public class Data { List<String> textList = new ArrayList(); public void addText(String text) { textList.add(text); } public List getTextList() { return this.textList; } }
Java
3
zeesh49/tutorials
maven/src/main/java/com/baeldung/maven/plugins/Data.java
[ "MIT" ]
class_name Combatant extends Node export(int) var damage = 1 export(int) var defense = 1 var active = false setget set_active signal turn_finished func set_active(value): active = value set_process(value) set_process_input(value) if not active: return if $Health.armor >= $Health.base_armor + defense: $Heal...
GDScript
4
jonbonazza/godot-demo-projects
2d/role_playing_game/combat/combatants/Combatant.gd
[ "MIT" ]
using System; using System.IO; using System.Reflection; using System.Threading.Tasks; namespace Ryujinx.Common { public static class EmbeddedResources { private readonly static Assembly ResourceAssembly; static EmbeddedResources() { ResourceAssembly = Assembly.GetAssembly(t...
C#
5
BSoDGamingYT/Ryujinx
Ryujinx.Common/Utilities/EmbeddedResources.cs
[ "MIT" ]
Mozilla/5.0 (Linux; Android 6.0.1; Cube Talk8x (U27GT-C8) Build/M4B30X; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/51.0.2704.106 Safari/537.36 Mozilla/5.0 (Linux; Android 6.0.1; Cube Talk8x (U27GT-C8) Build/M4B30X; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/51.0.2704.106 Mobile Saf...
Text
0
5tr1x/SecLists
Fuzzing/User-Agents/operating-platform/samsung-gt-c8.txt
[ "MIT" ]
Gramatika 0 $accept: program $end 1 program: declaration_list 2 declaration_list: declaration_list declaration 3 | declaration 4 declaration: var_declaration 5 | fun_declaration 6 var_declaration: type_specifier ID ';' 7 | type_specifier ID ...
Bison
5
YKG/y
testdata/ok/so-ok.y.bison
[ "BSD-3-Clause" ]
c sdsdotsub.f c c The program is a fortran wrapper for sdsdot. c Witten by Keita Teranishi. 2/11/1998 c subroutine sdsdotsub(n,x,incx,y,incy,dot) c external sdsdot real sdsdot,dot integer n,incx,incy real x(*),y(*) c dot=sdsdot(n,x,incx,y,incy) return end ...
FORTRAN
4
yatonon/dlib-face
dlib/external/cblas/sdsdotsub.f
[ "BSL-1.0" ]
// TASKING VX-toolset for ARM // Project linker script file // #if defined(__PROC_XMC4500X1024__) #include "xmc45xx.lsl" #elif defined(__PROC_XMC4400X512__) #include "xmc44xx.lsl" #elif defined(__PROC_XMC4200X256__) #include "xmc42xx.lsl" #else #include <device.lsl> #endif section_layout ::linear { g...
LSL
3
JVVJV/FreeRTOS
FreeRTOS/Demo/CORTEX_M4F_Infineon_XMC4000_Tasking/RTOSDemo.lsl
[ "MIT" ]
import {Injectable} from '@angular/core'; class SomeDep {} @Injectable() class MyAlternateService { } @Injectable({providedIn: 'root', useClass: MyAlternateService, deps: [SomeDep]}) export class MyService { }
TypeScript
4
John-Cassidy/angular
packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_di/di/useclass_with_deps.ts
[ "MIT" ]
package com.baeldung.annotations; @interface Intervals { Interval[] value(); }
Java
4
zeesh49/tutorials
core-java-8/src/main/java/com/baeldung/annotations/Intervals.java
[ "MIT" ]
import { Expensive } from './sharedCode' import faker from 'faker' // Ensure a large libraries is added so that splitChunks would trigger if enabled. console.log(faker) Expensive() self.postMessage(true)
JavaScript
2
blomqma/next.js
test/integration/worker-webpack5/lib/worker.js
[ "MIT" ]
extends "res://src/Tools/ShapeDrawer.gd" func _get_shape_points_filled(size: Vector2) -> PoolVector2Array: var array := [] var t_of := _thickness - 1 for y in range(size.y + t_of * 2): for x in range(size.x + t_of * 2): array.append(Vector2(x, y)) return PoolVector2Array(array) func _get_shape_points(siz...
GDScript
4
triptych/Pixelorama
src/Tools/RectangleTool.gd
[ "MIT" ]
# Copyright 2019 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
Cython
4
warlock135/grpc
src/python/grpcio/grpc/_cython/_cygrpc/aio/grpc_aio.pyx.pxi
[ "Apache-2.0" ]
include sys/types, sys/stat, unistd include fcntl import unistd open: extern func(CString, Int) -> Int PIPE_BUF: extern Int STDIN_FILENO : extern FileDescriptor STDOUT_FILENO: extern FileDescriptor STDERR_FILENO: extern FileDescriptor // FIXME deprecated ? looks like an ancestor of File FileDescriptor: cover from ...
ooc
4
fredrikbryntesson/launchtest
sdk/os/FileDescriptor.ooc
[ "MIT" ]
(* ****** ****** *) (* ** ** HX-2018-01: ** For implementing ** broadcast-based sessions ** that are dynamically typed ** *) (* ****** ****** *) #include "share/atspre_staload.hats" #include "share\ /atspre_staload_libats_ML.hats" (* ****** ****** *) // #staload UN = "prelude/SATS/unsafe.sats" // (* ****** ****** *) ...
ATS
5
ats-lang/ATS-CodeBook
PLAYGROUND/mysession-bucs520-2018-01/DATS/basics.dats
[ "MIT" ]
(ns jepsen.clickhouse-keeper.zookeeperdb (:require [clojure.tools.logging :refer :all] [jepsen.clickhouse-keeper.utils :refer :all] [clojure.java.io :as io] [jepsen [control :as c] [db :as db]] [jepsen.os.ubuntu :as ubuntu])) (defn zk-node-ids...
Clojure
4
pdv-ru/ClickHouse
tests/jepsen.clickhouse-keeper/src/jepsen/clickhouse_keeper/zookeeperdb.clj
[ "Apache-2.0" ]
# This file is a part of Julia. License is MIT: https://julialang.org/license using Test, Libdl, MPFR_jll @testset "MPFR_jll" begin vn = VersionNumber(unsafe_string(ccall((:mpfr_get_version,libmpfr), Cstring, ()))) @test vn == v"4.1.0" end
Julia
4
jonas-schulze/julia
stdlib/MPFR_jll/test/runtests.jl
[ "MIT" ]
<?php $z = new ZipArchive; $z->open('a.zip', ZIPARCHIVE::CREATE); /* or 'remove_all_path' => 0*/ $options = array( 'remove_path' => '/home/francis/myimages', 'add_path' => 'images/', ); $found = $z->addGlob("/home/pierre/cvs/gd/libgd/tests/*.png", 0, $options); var_dump($found); $z->close();
PHP
4
thiagooak/php-src
ext/zip/examples/addglob.php
[ "PHP-3.01" ]
(* ****** ****** *) (* ** ** HX-2018-01: ** For testing ** broadcast-based sessions ** that are dynamically typed ** *) (* ****** ****** *) #include "share/atspre_staload.hats" #include "share\ /atspre_staload_libats_ML.hats" (* ****** ****** *) #staload"./../../SATS/basics.sats" #staload"./../../DATS/basics.dats" ...
ATS
4
ats-lang/ATS-CodeBook
PLAYGROUND/mysession-bucs520-2018-01/TEST/test01/myserver.dats
[ "MIT" ]
 BresultJBDD
PureBasic
0
cnheider/onnx
onnx/backend/test/data/node/test_max_float16/test_data_set_0/output_0.pb
[ "MIT" ]
package com.baeldung.scopes import java.util.logging.Logger x = 200 logger = Logger.getLogger("Scopes.groovy") def getGlobalResult() { logger.info(x.toString()) return 1 + x } def defineGlobalVariable() { z = 234 logger = Logger.getLogger("Scopes.groovy") logger.info(z.toString()) } logger.info...
Groovy
3
DBatOWL/tutorials
core-groovy/src/main/groovy/com/baeldung/scopes/Scopes.groovy
[ "MIT" ]
const globula = require("glob") const fs = require("fs-extra") describe(`query generation`, () => { const gqlDirectory = `${process.cwd()}/test-site/WordPress/GraphQL` const graphqlFilePaths = globula.sync(`${gqlDirectory}/**/*.graphql`) const graphqlQueriesByType = graphqlFilePaths.reduce((accumulator, path) ...
JavaScript
4
waltercruz/gatsby
integration-tests/gatsby-source-wordpress/test-fns/query-generation.js
[ "MIT" ]
#!/bin/bash ############################################################################## # Build LLVM code analyzer and analyze torch code dependency. ############################################################################## # # Example usage: # # 1. Analyze torch and generate yaml file of op dependency transiti...
Shell
5
Hacky-DH/pytorch
tools/code_analyzer/build.sh
[ "Intel" ]
## Vulnerable Application This module will perform banner grabbing on devices that use the Modbus protocol by sending a payload with the function code 43 to read the target device's identification information. For more technical information, you can refer to this link: https://en.wikipedia.org/wiki/Modbus#Available_fu...
Markdown
4
OsmanDere/metasploit-framework
documentation/modules/auxiliary/scanner/scada/modbus_banner_grabbing.md
[ "BSD-2-Clause", "BSD-3-Clause" ]
QT.gui_private.VERSION = 5.9.4 QT.gui_private.name = QtGui QT.gui_private.module = QT.gui_private.libs = $$QT_MODULE_LIB_BASE QT.gui_private.includes = $$QT_MODULE_INCLUDE_BASE/QtGui/5.9.4 $$QT_MODULE_INCLUDE_BASE/QtGui/5.9.4/QtGui QT.gui_private.frameworks = QT.gui_private.depends = core_private gui QT.gui_private.use...
QMake
2
PLohrmannAMD/renderdoc
qrenderdoc/3rdparty/qt/x64/mkspecs/modules/qt_lib_gui_private.pri
[ "MIT" ]
server { listen 8881 default_server; server_name _; root /var/www/site-with-php5.6; index index.php; location / { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php5.6-fpm.sock; # adjust for the listen setting discussed above } }
ApacheConf
4
AysadKozanoglu/Docker-Nginx-multiple-PHP
site-with-php5.6.vhost
[ "Unlicense" ]
-module(petstore_inline_object). -export([encode/1]). -export_type([petstore_inline_object/0]). -type petstore_inline_object() :: #{ 'name' => binary(), 'status' => binary() }. encode(#{ 'name' := Name, 'status' := Status }) -> #{ 'name' => Name, 'status' => Status ...
Erlang
4
therockstorm/openapi-generator
samples/client/petstore/erlang-client/src/petstore_inline_object.erl
[ "Apache-2.0" ]
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Screen property</title> </head> <body> <script> nw.Screen.Init(); if (nw.Screen.screens && nw.Screen.screens.length > 0) { document.write('<h1 id="result">success</h1>'); } else { docu...
HTML
3
namaljayathunga/nw.js
test/remoting/screen-property/index.html
[ "MIT" ]
cd /D "%~dp0" call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64 -winsdk=10.0.18362.0 powershell -file update_appxmanifest_version.ps1 || exit /b 1 call makeappx build /v /overwrite /f PackagingLayout.xml /id "PowerToys-x64" /op bin\ || exit ...
Batchfile
3
tameemzabalawi/PowerToys
installer/MSIX/build_msix_cdpx.cmd
[ "MIT" ]
--TEST-- Bug #66127 (Segmentation fault with ArrayObject unset) --INI-- error_reporting = E_ALL & ~E_NOTICE --FILE-- <?php function crash() { set_error_handler(function () {}); $var = 1; trigger_error('error'); $var2 = $var; $var3 = $var; trigger_error('error'); } $items = new ArrayObject(); u...
PHP
2
thiagooak/php-src
ext/spl/tests/bug66127.phpt
[ "PHP-3.01" ]
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. package org.jetbrains.kotlin.js.backend.ast; import org.jetbrains.kotlin.js.util.AstUtil; import org.j...
Java
4
qussarah/declare
js/js.ast/src/org/jetbrains/kotlin/js/backend/ast/JsContinue.java
[ "Apache-2.0" ]