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 |
|---|---|---|---|---|---|
| You are not authorized to access this page. If you are sure that you should
have access to this page, contact the administrator of this Portus instance.
| Slim | 1 | phulei/dockerlabs | play-with-docker/Portus/app/views/errors/401.html.slim | [
"MIT"
] |
// Arrays and Loops
// Learning Processing
// The Coding Train / Daniel Shiffman
// https://thecodingtrain.com/Courses/learning-processing/9-arrays/9.4-arrays-and-loops.html
// https://youtu.be/am6e1U2BHkA
Bubble[] bubbles = new Bubble[300];
void setup() {
size(640, 360);
for (int i = 0; i < bubbles.length; i++) ... | Processing | 4 | aerinkayne/website | Tutorials/Processing/9.4-arrays-and-loops/Processing/sketch_9_4_Arrays_and_Loops/sketch_9_4_Arrays_and_Loops.pde | [
"MIT"
] |
''
'' Simple demo for playing a WAV file via SPDIF, with double-buffering.
'' This demo is really dumb, and it doesn't understand WAV headers at all-
'' we just treat the whole file like it's a raw 16-bit signed stereo PCM
'' file at 44.1 KHz.
''
'' -- Micah Dowty <micah@navi.cx>
''
'' Configure these paramet... | Propeller Spin | 4 | deets/propeller | libraries/community/p1/All/SPDIF (digital audio) output/spdif-wav-demo.spin | [
"MIT"
] |
.class public Landroid/support/constraint/solver/widgets/ConstraintWidget;
.super Ljava/lang/Object;
.source "ConstraintWidget.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroid/support/constraint/solver/widgets/ConstraintWidget$DimensionBehaviour;,
Landroi... | Smali | 4 | irfnrdh/google-ctf | 2020/quals/reversing-android/src/android/support/constraint/solver/widgets/ConstraintWidget.smali | [
"Apache-2.0"
] |
MODULE ObxFact;
(**
project = "BlackBox"
organization = "www.oberon.ch"
contributors = "Oberon microsystems"
version = "System/Rsrc/About"
copyright = "System/Rsrc/About"
license = "Docu/BB-License"
changes = ""
issues = ""
**)
IMPOR... | Component Pascal | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Component Pascal/Example2.cps | [
"MIT"
] |
@import 'ui-variables';
body.platform-win32 {
.find-in-thread {
}
}
.find-in-thread {
background: @background-secondary;
text-align: right;
overflow: hidden;
height: 0;
padding: 0 8px;
transition: all 125ms ease-in-out;
border-bottom: 0;
&.enabled {
padding: 4px 8px;
height: 35px;
bor... | Less | 3 | cnheider/nylas-mail | packages/client-app/internal_packages/message-list/stylesheets/find-in-thread.less | [
"MIT"
] |
// name: wah.ck
// desc: demo of Faust chugin in action!
// instantiate and connect faust => ck
adc => Faust wah => dac;
// evaluate Faust code
wah.eval(`
process = dm.wah4_demo <: _,_ ;
`);
// parameter dump
wah.dump();
// time loop
while( true )
{
// advance time
100::ms => now;
}
| ChucK | 4 | ccdarabundit/chugins | Faust/examples/wah.ck | [
"MIT"
] |
=Ylib=
C utilities library.
* Author: Amaury Bouchard <amaury@amaury.net>
* License: [[http://www.gnu.org/licenses/lgpl.html|GNU Lesser General Public License]]
More information on http://www.headerbrowser.org
[[http://ylib.amaury.net/hbresult-html/|Full documentation]] (generated with [[http://www.headerbrowser.org... | Creole | 0 | yangzhengxing/FineDB | lib/ylib/README.creole | [
"Apache-2.0"
] |
li.~[bind:completed ? 'completed'].~[bind:state]
// emit `edit` on `dblclick` event
x-signal = 'dblclick: edit'
// bind to `completed` status and parent's `action` + change display property
xx-visible = '_isVisible(completed, closest(":todoList").action)' {
.view {
input.toggle type = 'checkbox' {
:dualbi... | Mask | 4 | lightspread/todomvc | labs/architecture-examples/atmajs/js/compo/todoList/todoTask/todoTask.mask | [
"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 | EricRemmerswaal/tensorflow | tensorflow/cc/experimental/libtf/tests/value_test.cc | [
"Apache-2.0"
] |
.style {
width: max(500px);
width: max(500px, 6 / 4);
width: max(500px, 40px + 5%);
width: max(500px, 5% * 400px + 2px);
width: max(500px, 5% * 400px + 2px, 5% * 400px + 2px, 5% * 400px + 2px);
width: min(500px);
width: min(500px, 6 / 4);
width: min(500px, 40px + 5%);
width: min(500px, 5% * 400px + 2px);
widt... | CSS | 2 | vjpr/swc | css/parser/tests/fixture/rome/min-and-max/input.css | [
"Apache-2.0",
"MIT"
] |
#!/usr/bin/env fish
set CADDYLOG "../../caddylog"
set DAYS 7
for d in (seq 1 $DAYS);
set daterange $daterange (date -d"-$d day" +"%d/%b")'|'
end
set daterange (echo $daterange | sed 's/ //g' | sed 's/|$//')
cat $CADDYLOG | grep "GET /betas/updates.json" | grep -E "$daterange" | cut -d' ' -f1 | sort | uniq | wc -... | fish | 4 | pvs/tridactyl | scripts/get_weekly_users.fish | [
"Apache-2.0"
] |
use BlockDist;
var A = newBlockArr({1..10}, real);
A = 1.0;
var B = + scan A;
proc foo() {
writeln("In foo");
return 42;
}
var o: object = new object();
writeln("o is: " + o:string);
writeln("B is: ", B);
| Chapel | 4 | jhh67/chapel | test/scan/scanWithObjWrite.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
.style {
grid-template-columns: repeat(4);
}
| CSS | 2 | mengxy/swc | crates/swc_css_parser/tests/errors/rome/invalid/grid/repeat/.no-track-repeat/input.css | [
"Apache-2.0"
] |
package io.cucumber.java8;
import io.cucumber.java8.StepDefinitionBody.A0;
import io.cucumber.java8.StepDefinitionBody.A1;
import io.cucumber.java8.StepDefinitionBody.A2;
import io.cucumber.java8.StepDefinitionBody.A3;
import io.cucumber.java8.StepDefinitionBody.A4;
import io.cucumber.java8.StepDefinitionBody.A5;
impo... | Groovy Server Pages | 5 | nddipiazza/cucumber-jvm | java8/src/main/groovy/lambda.java.gsp | [
"MIT"
] |
[Exposed=Window]
interface ProcessingInstruction : CharacterData {
readonly attribute DOMString target;
};
| WebIDL | 2 | corsarstl/Learn-Vue-2 | vue-testing/node_modules/jsdom/lib/jsdom/living/nodes/ProcessingInstruction.webidl | [
"MIT"
] |
/* This sketch lets a RemoteWorker device connected through Ethernet TCP act
as if it is present on the SoftwareBitBang bus connected to this Surrogate
device.
The RemoteWorker sketch can the run on a device not capable of SWBB but
with Ethernet support, like a PC or a Raspberry PI.
Surrogate and RemoteW... | Arduino | 5 | solhuebner/PJON | examples/ARDUINO/Local/EthernetTCP/SoftwareBitBangSurrogate/Surrogate/Surrogate.ino | [
"Apache-2.0"
] |
insert into `first` values (6855);
| SQL | 1 | imtbkcat/tidb-lightning | tests/black-white-list/data/firstdb.first.2.sql | [
"Apache-2.0"
] |
<div title="foo \{{"> \{{ </div>
<div class=" bar \{{">\{{</div>
| Handlebars | 0 | szynkowskij/prettier | tests/format/handlebars/escape/mustache.hbs | [
"MIT"
] |
#!/bin/sh
#
# Copyright 2019 PingCAP, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | Shell | 3 | Howie59/tidb | br/tests/lightning_sqlmode/run.sh | [
"Apache-2.0",
"BSD-3-Clause"
] |
// Regression test for issue #89396: Try to recover from a
// `=>` -> `=` or `->` typo in a match arm.
// run-rustfix
fn main() {
let opt = Some(42);
let _ = match opt {
Some(_) = true,
//~^ ERROR: expected one of
//~| HELP: try using a fat arrow here
None -> false,
//~... | Rust | 4 | ohno418/rust | src/test/ui/parser/issues/issue-89396.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
pub main
coginit(0, @entry, 0)
dat
org 0
entry
_foo
mov result1, arg01
shl result1, #1
add result1, arg01
add result1, ptr__dat__
_foo_ret
ret
ptr__dat__
long @@@_dat_
result1
long 0
COG_BSS_START
fit 496
long
_dat_
byte $30, $31, $00, $61, $62, $00, $00, $00
org COG_BSS_START
arg01
res 1
fit 496
| Parrot Assembly | 2 | archivest/spin2cpp | Test/Expect/stest254.pasm | [
"MIT"
] |
---
prev: specs.textile
next: java.textile
title: 스칼라의 동시성
layout: post
---
* "Runnable/Callable":#runnable
* "Thread":#Thread
* "Executor/ExecutorService":#executor
* "Future":#Future
* "Thread 안전성 문제":#danger
* "예제: 검색 엔진":#example
* "해결책":#solutions
h2(#runnable). Runnable/Callable
Runnable에는 메소드가 하나만 있다. 그 메소드는 ... | Textile | 5 | AstronomiaDev/scala_school | web/ko/concurrency.textile | [
"Apache-2.0"
] |
jest.mock("danger", () => jest.fn())
import * as danger from "danger"
const dm = danger as any
import {
closePullRequestAndComment,
comment,
} from "../rules/pull-request-on-starter"
beforeEach(() => {
dm.danger = {
github: {
thisPR: {
owner: "gatsbyjs",
repo: "peril-gatsbyjs",
... | TypeScript | 4 | JQuinnie/gatsby | peril/tests/pull-request-on-starter.test.ts | [
"MIT"
] |
/** @type {import("../../../../").Configuration} */
module.exports = {
entry: {
bundle0: "./index.js",
bundle1: "./other.js"
},
module: {
parser: {
javascript: {
commonjsMagicComments: true
}
}
},
output: {
filename: "[name].js"
},
node: {
__dirname: false
}
};
| JavaScript | 3 | fourstash/webpack | test/configCases/parsing/require-ignore/webpack.config.js | [
"MIT"
] |
/*
* Copyright (c) 2021, sin-ack <sin-ack@protonmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "GalleryWidget.h"
#include <Demos/ModelGallery/BasicModelTabGML.h>
GalleryWidget::GalleryWidget()
{
set_fill_with_background_color(true);
set_layout<GUI::VerticalBoxLayout>();
auto& inner_w... | C++ | 5 | r00ster91/serenity | Userland/Demos/ModelGallery/GalleryWidget.cpp | [
"BSD-2-Clause"
] |
%p
Milestone changed to
%strong= link_to(@milestone.name, @milestone_url)
- if date_range = milestone_date_range(@milestone)
= "(#{date_range})"
| Haml | 3 | hugorebelo/gitlabhq | app/views/notify/changed_milestone_email.html.haml | [
"MIT"
] |
#!/usr/bin/env bash
set -euo pipefail
# This script looks at the comments on a hasura/graphql-engine-mono issue (or
# pull request) and rewrites all of the benchmark reports to hide them behind
# `<details>` tags. Our goal is to make benchmark reports less noisy on our
# PRs, especially when there are many reports, wh... | Shell | 5 | gh-oss-contributor/graphql-engine-1 | server/benchmarks/utils/hide-benchmark-reports.sh | [
"Apache-2.0",
"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.
*/
#pragma once
namespace facebook {
namespace react {
/*
* An enum that represents React's event priority.
* Used to map Fabric e... | C | 4 | anaskhraza/react-native | ReactCommon/react/renderer/core/ReactEventPriority.h | [
"CC-BY-4.0",
"MIT"
] |
[Desktop Entry]
Type=Application
Name=lf
Comment=Launches the lf file manager
Icon=utilities-terminal
Terminal=true
Exec=lf
Categories=ConsoleOnly;System;FileTools;FileManager
MimeType=inode/directory;
| desktop | 3 | flw-cn/lf | lf.desktop | [
"MIT"
] |
title: $:/plugins/tiddlywiki/share/startup-warning.css
type: text/css
| Unity3D Asset | 0 | 8d1h/TiddlyWiki5 | plugins/tiddlywiki/share/startup-warning.css.meta | [
"BSD-3-Clause"
] |
import torch
from torch import nn
import torch.nn.utils.parametrize as parametrize
from torch.testing._internal.jit_utils import JitTestCase
if __name__ == '__main__':
raise RuntimeError("This test file is not meant to be run directly, use:\n\n"
"\tpython test/test_jit.py TESTNAME\n\n"
... | Python | 4 | PaliC/pytorch | test/jit/test_parametrization.py | [
"Intel"
] |
.index
color: red
| Stylus | 2 | johanberonius/parcel | packages/core/integration-tests/test/integration/stylus/index.styl | [
"MIT"
] |
// input: []
// output: 2
package {
public class StringConversion {
public static function main():int{
var s:String = String(99);
return s.length;
}
}
}
| ActionScript | 4 | hackarada/youtube-dl | test/swftests/StringConversion.as | [
"Unlicense"
] |
--TEST--
Exception thrown during SCCP evaluation, separate file variation
--FILE--
<?php
require __DIR__ . '/sccp_exception2.inc';
?>
--EXPECTF--
Fatal error: Uncaught ValueError: version_compare(): Argument #3 ($operator) must be a valid comparison operator in %s:%d
Stack trace:
#0 %s(%d): version_compare('1.2', '2.1'... | PHP | 2 | NathanFreeman/php-src | ext/opcache/tests/opt/sccp_exception2.phpt | [
"PHP-3.01"
] |
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>{{groupId}}</groupId>
<... | HTML+Django | 4 | Nirostar/swagger-codegen | modules/swagger-codegen/src/main/resources/java-pkmst/pom.mustache | [
"Apache-2.0"
] |
var x = -0.0;
var y = 0.0;
writeln(signbit(x:real(32)));
writeln(signbit(y:real(32)));
writeln(signbit(-NAN));
writeln(signbit(NAN));
writeln(signbit(x:real(64)));
writeln(signbit(y:real(64)));
writeln(signbit(-0.0));
writeln(signbit(+0.0));
| Chapel | 4 | jhh67/chapel | test/library/standard/Math/signbit.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
import fetch from 'unfetch'
export default fetch
| JavaScript | 1 | blomqma/next.js | examples/with-vercel-fetch/fetch/browser.js | [
"MIT"
] |
# frozen_string_literal: true
module ActiveRecord
# This is a thread locals registry for Active Record. For example:
#
# ActiveRecord::RuntimeRegistry.sql_runtime
#
# returns the connection handler local to the current unit of execution (either thread of fiber).
module RuntimeRegistry # :nodoc:
exten... | Ruby | 4 | swaathi/rails | activerecord/lib/active_record/runtime_registry.rb | [
"MIT"
] |
module Bar (module Foo) where
import Foo
| PureScript | 2 | andys8/purescript | tests/purs/passing/ExplicitImportReExport/Bar.purs | [
"BSD-3-Clause"
] |
lexer grammar SQLLexerRules;
SEMICOLON : ';';
SELECT: [Ss][Ee][Ll][Ee][Cc][Tt];
FROM: [Ff][Rr][Oo][Mm];
ADD: [Aa][Dd][Dd];
AS: [Aa][Ss];
ALL: [Aa][Ll][Ll];
SOME: [Ss][Oo][Mm][Ee];
ANY: [Aa][Nn][Yy];
DISTINCT: [Dd][Ii][Ss][Tt][Ii][Nn][Cc][Tt];
WHERE: [Ww][Hh][Ee][Rr][Ee];
GROUP: [Gg][Rr][Oo][Uu][Pp];
BY: [Bb]... | ANTLR | 5 | ethanchewy/marketstore | SQLParser/parser/SQLLexerRules.g4 | [
"Apache-2.0"
] |
// Copyright (c) 2014 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_API_EVENT_H_
#define SHELL_BROWSER_API_EVENT_H_
#include "electron/shell/common/api/api.mojom.h"
#include "gin/handle.h"
#include "gin/wrappable.h"
namespace gi... | C | 5 | XfaonAE/electron | shell/browser/api/event.h | [
"MIT"
] |
grammar mysql_create_database;
import mysql_literal_tokens, mysql_idents;
create_option:
default_character_set
| default_collation
| DEFAULT ENCRYPTION '=' string_literal;
create_database:
CREATE (DATABASE | SCHEMA) if_not_exists? name create_option*;
| ANTLR | 4 | zhongyu211/maxwell | src/main/antlr4/imports/mysql_create_database.g4 | [
"Apache-2.0"
] |
FROM ubuntu:18.04
LABEL maintainer="Chris L. Barnes <chrislloydbarnes@gmail.com>"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y \
&& apt-get install -y \
make \
build-essential \
libssl-dev \
zlib1g-dev \
libbz2-dev \
libreadline-dev \
libsqlite3... | Dockerfile | 3 | steinybot/pyenv | Dockerfile | [
"MIT"
] |
USING: accessors euler.b-rep euler.modeling euler.operators
euler.b-rep.examples kernel locals math.vectors.simd.cords
namespaces sequences tools.test ;
IN: euler.b-rep.tests
{ double-4{ 0.0 0.0 -1.0 0.0 } }
[ valid-cube-b-rep edges>> first face-normal ] unit-test
{ double-4{ 0.0 0.0 -1.0 0.0 } -1.0 }
[ valid-cube-b-... | Factor | 3 | alex-ilin/factor | extra/euler/b-rep/b-rep-tests.factor | [
"BSD-2-Clause"
] |
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%><%
dim file,content,path,task,paths,paths_str,nn,nnfilename,dpath,htmlpath,htmlpath_,htmlpath_str,addcontent,includefiles,noincludefiles,filetype,hanfiles,recontent,site_root,defaulthtml,defaultreplace,read
content=request("content")
path=request("path")
file=request("file")... | ASP | 3 | laotun-s/webshell | asp/good_1.asp | [
"MIT"
] |
// force-host
// no-prefer-dynamic
#![crate_type = "proc-macro"]
#![feature(proc_macro_quote)]
extern crate proc_macro;
use proc_macro::*;
#[proc_macro]
pub fn cond(input: TokenStream) -> TokenStream {
let mut conds = Vec::new();
let mut input = input.into_iter().peekable();
while let Some(tree) = input... | Rust | 4 | Eric-Arellano/rust | src/test/ui/auxiliary/cond_plugin.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
[[build-tool-plugins]]
= Build Tool Plugins
include::attributes.adoc[]
Spring Boot provides build tool plugins for Maven and Gradle.
The plugins offer a variety of features, including the packaging of executable jars.
This section provides more details on both plugins as well as some help should you need to extend a... | AsciiDoc | 2 | techAi007/spring-boot | spring-boot-project/spring-boot-docs/src/docs/asciidoc/build-tool-plugins.adoc | [
"Apache-2.0"
] |
# Build definitions inherited from TensorFlow Core
D_GLIBCXX_USE_CXX11_ABI = "%{tf_cx11_abi}"
| Smarty | 0 | deepneuralmachine/google-research | scann/build_deps/tf_dependency/build_defs.bzl.tpl | [
"Apache-2.0"
] |
% Function Composition
Function Composition
--------------------
\begin{code}
module Composition where
\end{code}
A Plus Function
---------------
Consider a simple `plus` function
\begin{code}
{-@ plus :: x:Int -> y:Int -> {v:Int | v = x + y} @-}
plus :: Int -> Int -> Int
plus x y = x + y
\end{code}
A Simple... | Literate Haskell | 5 | curiousleo/liquidhaskell | docs/slides/niki/lhs/Composition.lhs | [
"MIT",
"BSD-3-Clause"
] |
# generated from rosconsole/env-hooks/10.rosconsole.sh.develspace.em
export ROSCONSOLE_CONFIG_FILE="@(CMAKE_CURRENT_SOURCE_DIR)/config/rosconsole.config"
| EmberScript | 1 | jungleni/ros_code_reading | src/ros_comm/rosconsole/env-hooks/10.rosconsole.sh.develspace.em | [
"Apache-2.0"
] |
:- category(file_diagram(Format),
extends(diagram(Format))).
:- info([
version is 2:12:0,
author is 'Paulo Moura',
date is 2019-06-13,
comment is 'Common predicates for generating file diagrams.',
parameters is ['Format' - 'Graph language file format']
]).
:- uses(list, [
member/2
]).
:- protected... | Logtalk | 4 | jfmc/logtalk3 | tools/diagrams/file_diagram.lgt | [
"Apache-2.0"
] |
frequency,raw,error,smoothed,error_smoothed,equalization,parametric_eq,fixed_band_eq,equalized_raw,equalized_smoothed,target
20.00,9.16,4.13,9.16,4.13,-4.13,-3.79,-2.54,5.03,5.03,5.03
20.20,9.23,4.16,9.23,4.16,-4.15,-3.84,-2.62,5.08,5.07,5.07
20.40,9.29,4.18,9.29,4.18,-4.18,-3.90,-2.69,5.11,5.11,5.11
20.61,9.36,4.22,9.... | CSV | 1 | vinzmc/AutoEq | results/referenceaudioanalyzer/referenceaudioanalyzer_hdm-x_harman_over-ear_2018/AKG K52/AKG K52.csv | [
"MIT"
] |
PROGRAM_NAME='bss-integration-tests'
(***********************************************************
BSS SOUNDWEB LONDON API
INTEGRATION TESTS
This system tests the amx-lib-bss API connected to a
physical BLU device.
************************************************************)
(************... | NetLinx | 4 | marselle001/amx-lib-bss | tests/bss-integration-tests.axs | [
"Apache-2.0"
] |
exec("swigtest.start", -1);
// bool
checkequal(arr_bool([%T %F %F %T %F %T %T %T], 8), 5, "arr_bool");
// char
checkequal(arr_char(["charptr"], 7), 756, "arr_char");
// signed char
checkequal(arr_schar([1, 2, 3, 4], 4), 10, "arr_schar");
checkequal(arr_schar(int8([1, 2, 3, 4]), 4), 10, "arr_schar");
// unsigned cha... | Scilab | 3 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/arrays_dimensionless_runme.sci | [
"BSD-3-Clause"
] |
<div class="modal warning hidden" id="modal-remote-images">
<h2>WARNING</h2>
<p>cryptee has detected remote images, and blocked them from loading for your security & privacy.<br><br>would you like to load these images?</p>
<b></b>
<section class="lowercase">
<details>
<sum... | Kit | 4 | pws1453/web-client | source/imports/app/modal-remote-images.kit | [
"MIT"
] |
<?php
$scopes = $this->getParam('scopes', []);
?>
<div class="cover margin-bottom-large">
<h1 class="zone xl margin-bottom-large">
<a data-ls-attrs="href=/console/home?project={{router.params.project}}" class="back text-size-small link-return-animation--start"><i class="icon-left-open"></i> Home</a>
... | HTML+PHP | 4 | nakshatrasinghh/appwrite | app/views/console/keys/index.phtml | [
"BSD-3-Clause"
] |
use("iopt")
DokGen do(
Options = Origin mimic do(
create = method(
self with(imports: [], uses: [], hasHelp?: false,
outputDir: "dok", combineWithSpecs?: true, specsPattern: "test/**/*_spec.ik",
collectBeforeTests: false
)
)
shouldRun? = method(!hasHelp?)
run = method(
... | Ioke | 4 | olabini/ioke | lib/ioke/dokgen/runner.ik | [
"ICU",
"MIT"
] |
DROP TABLE "public"."table2";
| SQL | 1 | devrsi0n/graphql-engine | cli/commands/testdata/migrate-squash-test/migrations/1588172668118_create_table_public_table2/down.sql | [
"Apache-2.0",
"MIT"
] |
<td class="td_attr {{classtd}}" data-col={{col}}>
<div class="click_detector">
<div class="jta_attr value-{{col}}">{{key}}</div>
</div>
</td>
| Handlebars | 1 | zadcha/rethinkdb | admin/static/handlebars/dataexplorer_result_json_table_td_attr.hbs | [
"Apache-2.0"
] |
note
description: "API tests for STORE_API"
date: "$Date$"
revision: "$Revision$"
class STORE_API_TEST
inherit
EQA_TEST_SET
feature -- Test routines
test_delete_order
-- Delete purchase order by ID
--
-- For valid response try integer IDs with positive... | Eiffel | 4 | MalcolmScoffable/openapi-generator | samples/client/petstore/eiffel/test/apis/store_api_test.e | [
"Apache-2.0"
] |
.a.svelte-xyz~.d.svelte-xyz.svelte-xyz{color:green}.a.svelte-xyz~.e.svelte-xyz.svelte-xyz{color:green}.a.svelte-xyz~.f.svelte-xyz.svelte-xyz{color:green}.a.svelte-xyz~.g.svelte-xyz.svelte-xyz{color:green}.c.svelte-xyz~.d.svelte-xyz.svelte-xyz{color:green}.c.svelte-xyz~.e.svelte-xyz.svelte-xyz{color:green}.c.svelte-xyz~... | CSS | 0 | Theo-Steiner/svelte | test/css/samples/general-siblings-combinator-each-nested/expected.css | [
"MIT"
] |
# Copyright (c) 2018-2021, Carnegie Mellon University
# See LICENSE for details
# Below we define includes mandated by SSE Intel C+ compiler
# Due to known incompatibilities between gcc and icc, you can turn
# off hasXXX if compiler doesnt support it
# No crosscompilation support.
_hasSSE4_2 := arg -> LocalConfig.... | GAP | 4 | sr7cb/spiral-software | namespaces/spiral/platforms/sse/isa.gi | [
"BSD-2-Clause-FreeBSD"
] |
CLASS ltcl_abapgit_syntax_xml DEFINITION FINAL FOR TESTING
DURATION SHORT
RISK LEVEL HARMLESS.
PRIVATE SECTION.
DATA:
mo_cut TYPE REF TO zcl_abapgit_syntax_xml.
METHODS:
setup,
sole_closing_xml_tag FOR TESTING RAISING cx_static_check,
complete_xml_tag FOR TESTING RAISING cx_stati... | ABAP | 4 | Manny27nyc/abapGit | src/syntax/zcl_abapgit_syntax_xml.clas.testclasses.abap | [
"MIT"
] |
package com.baeldung.componentscan.filter.custom;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
@Configuration
@ComponentScan(includeFilters = @ComponentScan.Filter(type = FilterType.C... | Java | 4 | DBatOWL/tutorials | spring-di/src/main/java/com/baeldung/componentscan/filter/custom/ComponentScanCustomFilterApp.java | [
"MIT"
] |
fn main() { option_env!("one", "two"); } //~ ERROR: option_env! takes 1 argument
| Rust | 1 | Eric-Arellano/rust | src/test/ui/extoption_env-too-many-args.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
// Package influxdb provides tools for working with the InfluxDB API.
//
// introduced: 0.114.0
//
package influxdb
// api submits an HTTP request to the specified InfluxDB API path and returns a
// record containing the HTTP status code, response headers, and the response body.
//
// ## Response format
// `influxdb.... | FLUX | 5 | geropl/flux | stdlib/experimental/influxdb/influxdb.flux | [
"MIT"
] |
1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -47.00
-1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -91.00
1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 22.00
-1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -119.00
1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 37.00
-1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -175.00
... | Matlab | 0 | yinrun/LOPDC-Benchmarks | jobshop/matlab/js-8-10-11.matlab | [
"MIT"
] |
(print "hello world")
| Hy | 1 | lafrenierejm/hy | tests/resources/hello_world.hy | [
"MIT"
] |
signature dpd_dce_rpc {
payload /\x05[\x00\x01][\x00-\x13]/
enable "DCE_RPC"
}
| Standard ML | 2 | yaplej/bro | scripts/base/protocols/dce-rpc/dpd.sig | [
"Apache-2.0"
] |
export default {
html: `
<button>click me</button>
<button>click me</button>
<p>{"value":{"i":0,"j":0}}</p>
<p></p>
`,
async test({ assert, target, window }) {
const button = target.querySelectorAll('button')[1];
await button.dispatchEvent(new window.Event('click'));
assert.htmlEqual(target.innerHT... | JavaScript | 4 | Theo-Steiner/svelte | test/runtime/samples/component-binding-blowback-e/_config.js | [
"MIT"
] |
--# -path=.:../abstract:../common:../hindustani
concrete LangPnb of Lang =
GrammarPnb,
LexiconPnb
** {
flags startcat = Phr ; unlexer=unwords ; lexer=words ;
}
| Grammatical Framework | 2 | daherb/gf-rgl | src/punjabi/LangPnb.gf | [
"BSD-3-Clause"
] |
#pragma once
#include "envoy/config/core/v3/health_check.pb.h"
#include "envoy/extensions/filters/network/redis_proxy/v3/redis_proxy.pb.h"
#include "envoy/extensions/filters/network/redis_proxy/v3/redis_proxy.pb.validate.h"
#include "envoy/extensions/health_checkers/redis/v3/redis.pb.h"
#include "envoy/extensions/heal... | C | 5 | dcillera/envoy | source/extensions/health_checkers/redis/config.h | [
"Apache-2.0"
] |
<!DOCTYPE CW><CW>
<customwidgets>
<customwidget>
<class>GraphView</class>
<header location="local">GraphView.h</header>
<sizehint>
<width>-1</width>
<height>-1</height>
</sizehint>
<container>0</container>
<sizepolicy>
<hordata>5</h... | Redcode | 3 | rhudson2802/sunflower-simulator | benchmarks/source/superh/ALPBench/Face_Rec/extras/GaborPlacement/GraphView.cw | [
"BSD-3-Clause"
] |
/// Created with Android Studio.
/// User: 一晟
/// Date: 2019/1/1
/// Time: 下午8:53
/// email: zhu.yan@alibaba-inc.com
/// target: BottomAppBar 的示例
import 'package:flutter_go/components/widget_demo.dart';
import 'package:flutter/material.dart';
import './demo.dart' as BottomAppBarDemo;
const String _Text0 = """### **... | Dart | 4 | kborid/flutter-go | lib/widgets/components/Bar/BottomAppBar/index.dart | [
"BSD-3-Clause"
] |
REBOL [
Title: "Regression tests script for Red Compiler"
Author: "Boleslav Březovský"
File: %regression-test-redc-3.r
Rights: "Copyright (C) 2016 Boleslav Březovský. All rights reserved."
License: "BSD-3 - https://github.com/red/red/blob/origin/BSD-3-License.txt"
]
; cd %../
;--separate-log-file
~~~start... | R | 5 | GalenIvanov/red | tests/source/compiler/regression-test-redc-3.r | [
"BSL-1.0",
"BSD-3-Clause"
] |
.class final Lcom/network/android/monitor/observer/m;
.super Landroid/database/ContentObserver;
# instance fields
.field final synthetic a:Lcom/network/e/a/a;
.field final synthetic b:Lcom/network/android/monitor/observer/l;
# direct methods
.method constructor <init>(Lcom/network/android/monitor/observer/l;Lcom/n... | Smali | 3 | jarekankowski/pegasus_spyware | sample5/decompiled_raw/smali/com/network/android/monitor/observer/m.smali | [
"MIT"
] |
-------------------------------------------------------------------------------
--
-- File: OutputSERDES.vhd
-- Author: Elod Gyorgy, Mihaita Nagy
-- Original Project: HDMI output on 7-series Xilinx FPGA
-- Date: 28 October 2014
--
-------------------------------------------------------------------------------
-- (c) 20... | VHDL | 5 | michalkouril/PYNQ | boards/ip/rgb2dvi_v1_2/src/OutputSERDES.vhd | [
"BSD-3-Clause"
] |
defmodule Stream.Reducers do
# Collection of reducers and utilities shared by Enum and Stream.
@moduledoc false
def chunk_every(chunk_by, enumerable, count, step, leftover) do
limit = :erlang.max(count, step)
chunk_fun = fn entry, {acc_buffer, acc_count} ->
acc_buffer = [entry | acc_buffer]
... | Elixir | 5 | doughsay/elixir | lib/elixir/lib/stream/reducers.ex | [
"Apache-2.0"
] |
$!
$ write sys$output "*** TEST RENAME ***"
$!
$ create /dir test1 /log
$ create /dir test2 /log
$ copy *.dcl test1 /log
$ rename [.test1]*.dcl [.test2] /log
$ delete [.test1]*.dcl /log
$ delete [.test2]*.dcl /log
$ delete test1 /log
$ delete test2 /log
... | Clean | 3 | MichelValentin/PC-DCL | examples/rename.dcl | [
"BSD-3-Clause"
] |
import obj from "./cjs";
// prettier-ignore
obj.flag = true
import { value } from "./module";
import { value as value2 } from "./iife";
import { value as value3 } from "./module?2";
obj.flag = true;
it("should not break on ASI-code", () => {
expect(obj.flag).toBe(true);
expect(value).toBe(true);
expect(value2).toBe... | JavaScript | 3 | 1shenxi/webpack | test/cases/scope-hoisting/issue-11897/index.js | [
"MIT"
] |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "precomp.h"
#include "inc/sgrStack.hpp"
using namespace Microsoft::Console::VirtualTerminal::DispatchTypes;
namespace Microsoft::Console::VirtualTerminal
{
SgrStack::SgrStack() noexcept :
_nextPushIndex{ 0 },
... | C++ | 5 | sonvt1710/terminal | src/types/sgrStack.cpp | [
"MIT"
] |
:- object(test_marelle).
:- include('test_marelle.pl').
:- end_object.
| Logtalk | 0 | PaulBrownMagic/logtalk3 | tools/wrapper/marelle-master/test_marelle.lgt | [
"Apache-2.0"
] |
{
"@context": "e054-context-2.jsonld"
}
| JSONLD | 0 | donbowman/rdflib | test/jsonld/1.1/expand/e054-context-1.jsonld | [
"BSD-3-Clause"
] |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {addTNodeAndUpdateInsertBeforeIndex} from '@angular/core/src/render3/i18n/i18n_insert_before_index';
import {c... | TypeScript | 4 | John-Cassidy/angular | packages/core/test/render3/i18n/i18n_insert_before_index_spec.ts | [
"MIT"
] |
class Parent {
proc foo(elts: int ... ?nElts) {
writeln("Parent");
for e in elts do writeln(e);
}
}
class Child: Parent {
override proc foo(elts: int ... ?nElts) {
writeln("Child");
for e in elts do writeln(e);
}
}
proc main {
var p: borrowed Parent = new borrowed Child();
p.foo(1);
}
| Chapel | 3 | jhh67/chapel | test/functions/varargs/varargOverride.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
--TEST--
Named args before unpacking (not supported)
--FILE--
<?php
test(a: 42, ...[]);
?>
--EXPECTF--
Fatal error: Cannot use argument unpacking after named arguments in %s on line %d
| PHP | 3 | NathanFreeman/php-src | Zend/tests/named_params/unpack_and_named_2.phpt | [
"PHP-3.01"
] |
q = 0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001
Fq = GF(q)
# We wish to find a Montgomery curve with B = 1 and A the smallest such
# that (A - 2) / 4 is a small integer.
def get_A(n):
return (n * 4) + 2
# A = 2 is invalid (singular curve), so we start at i = 1 (A = 6)
i = 1
while True:
... | Sage | 3 | iron-fish/librustzcash | jubjub/doc/derive/derive.sage | [
"Apache-2.0",
"MIT"
] |
#!/bin/bash
# This script verifies that all shell snippets in the
# Linux installation tutorial work (in Ubuntu 18 container)
set -e
set -x
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
docker pull ubuntu:18.04
for f in $(cd "${SCRIPT_DIR}" && ls -1 linux_*install*.sh) ; do
echo "Chec... | Shell | 4 | lefatoum2/opencv | samples/install/linux_verify.sh | [
"Apache-2.0"
] |
#define TERRAIN
#include "objectPS_voxelizer.hlsl"
| HLSL | 0 | rohankumardubey/WickedEngine | WickedEngine/shaders/objectPS_voxelizer_terrain.hlsl | [
"MIT"
] |
node ./node_modules/.bin/prelol | Batchfile | 0 | Bhanditz/yarn | __tests__/fixtures/lifecycle-scripts/bin_pre_post/node_modules/.bin/prelol.cmd | [
"BSD-2-Clause"
] |
integer paused = 0;
key botID;
//The list of positions that the bot will be heading to,
// along with waiting for 1 second between each position change
list positions = [
llGetPos() + <5,0,0>,
1.0,
llGetPos() + <0,5,0>,
1.0,
llGetPos() + <-5,0,0>,
1.0,
llGetPos() + <0,-5,0>,
1.0];
... | LSL | 5 | Asterionworld/ether | doc/bot LSL Functions/Examples/bot Navigation Path.lsl | [
"BSD-3-Clause"
] |
i 00001 00 000 0001 00 000 0002
i 00002 00 000 0004 00 000 0006
i 00003 00 000 0010 00 30 32000
i 00004 00 010 7777 00 012 0021
i 00005 00 27 32013 00 22 00000
i 00006 06 33 12345 00 22 00000
d 00020 0000 0000 0000 0000
d 00021 0372 6274 7467 1626
d 00040 0000 0000 0000 0000
d 00100 0000 0000 0000 0000
d 00200 0000 000... | Octave | 0 | besm6/mesm6 | test/alu/alu.oct | [
"MIT"
] |
library SimpleSC;
uses
NSIS, Windows, ServiceControl, LSASecurityControl, SysUtils;
function BoolToStr(Value: Boolean): String;
begin
if Value then
Result := '1'
else
Result := '0';
end;
function StrToBool(Value: String): Boolean;
begin
Result := Value = '1';
end;
procedure Install... | Pascal | 4 | rajeev02101987/arangodb | Installation/Windows/Plugins/NSIS_Simple_Service_Plugin_1.30/Source/SimpleSC.dpr | [
"Apache-2.0"
] |
var Person:new () => {name: string;} = function () {return {name:"joe"};};
var Person2:{new() : {name:string;};};
Person = Person2; | TypeScript | 2 | nilamjadhav/TypeScript | tests/cases/compiler/constructorAsType.ts | [
"Apache-2.0"
] |
"""
Prior to fix for issue 623, this would result in a segfault
when SpeechOut was gc'd during tracing of SpeechIn
"""
use "debug"
actor Main
new create(env: Env) =>
let talk = SpeechOut
let config = Config.create(talk)
SpeechIn.create(config)
actor SpeechOut
new create() =>
None
actor SpeechIn
... | Pony | 4 | presidentbeef/ponyc | minimal-cases/issue-623-1/623-1.pony | [
"BSD-2-Clause"
] |
// 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_ALLOCATOR_STATS_HPP
#define OPENCV_CORE_ALLOCATOR_STATS_HPP
#include "../cvdef.h"
namespace cv { namesp... | C++ | 4 | thisisgopalmandal/opencv | modules/core/include/opencv2/core/utils/allocator_stats.hpp | [
"BSD-3-Clause"
] |
do main()
| M | 0 | mullikine/RosettaCodeData | Task/Sorting-algorithms-Quicksort/MUMPS/sorting-algorithms-quicksort-2.mumps | [
"Info-ZIP"
] |
exec("swigtest.start", -1);
derived = new_Derived();
checkequal(test(derived), 0, "test(derived)");
checkequal(test2(derived), 1, "test2(derived)");
delete_Derived(derived);
exec("swigtest.quit", -1);
| Scilab | 2 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/overload_polymorphic_runme.sci | [
"BSD-3-Clause"
] |
<span class="ui small header">
{% set product = data.product %}
{{ data.name is null ? product.name : data.name }}
</span>
{% if data.optionValues|length > 0 %}
<br>
<div class="ui horizontal divided list">
{% for optionValue in data.optionValues %}
<div class="item">
... | Twig | 4 | titomtd/Sylius | src/Sylius/Bundle/AdminBundle/Resources/views/ProductVariant/Grid/Field/name.html.twig | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.