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
#!/bin/bash [ -n "${DOCKER_DEPLOY_TYPE}" ] || DOCKER_DEPLOY_TYPE="VM" echo "DOCKER_DEPLOY_TYPE=${DOCKER_DEPLOY_TYPE}" # run init scripts for e in $(ls /alidata/init/*) ; do [ -x "${e}" ] || continue echo "==> INIT $e" $e echo "==> EXIT CODE: $?" done echo "==> INIT DEFAULT" service sshd start service crond start...
Shell
4
yuanweikang2020/canal
docker/image/alidata/bin/main.sh
[ "Apache-2.0" ]
60 mtof 1 saw 0.3 1 sine 1 20 biscale * 0.3 clip 0.3 *
SourcePawn
0
aleatoricforest/Sporth
examples/clip.sp
[ "MIT" ]
#!/usr/bin/env bash PLATFORM=$1 ARCH=$2 KUBECTL_VERSION=$3 if [ "${PLATFORM}" == 'linux' ]; then wget -O "dist/kubectl" "https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/${PLATFORM}/${ARCH}/kubectl" chmod +x "dist/kubectl" elif [ "${PLATFORM}" == 'windows' ]; then wget -O "dist/k...
Shell
3
dzma352/portainer
build/download_kubectl_binary.sh
[ "Zlib" ]
extern int f(void);
Harbour
0
ueki5/cbc
test/decloverride.hb
[ "Unlicense" ]
;-----------------------------------------------------------------------------; ; Author: Stephen Fewer (stephen_fewer[at]harmonysecurity[dot]com) ; Compatible: Windows 7, 2008, Vista, 2003, XP, 2000, NT4 ; Architecture: x64 ; Version: 2.0 (March 2010) ; Size: 323 bytes ; Build: >build.py apc ;------------------...
Assembly
4
OsmanDere/metasploit-framework
external/source/shellcode/windows/x64/src/migrate/apc.asm
[ "BSD-2-Clause", "BSD-3-Clause" ]
include ../../run-make-fulldeps/tools.mk # ignore-none no-std is not supported # ignore-nvptx64-nvidia-cuda FIXME: can't find crate for 'std' # Ensure that modifying a crate on disk (without recompiling it) # does not cause ICEs in downstream crates. # Previously, we would call `SourceMap.guess_head_span` on a span #...
Makefile
3
mbc-git/rust
src/test/run-make/incr-foreign-head-span/Makefile
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
package com.alibaba.json.bvt.awt; import java.awt.Color; import org.junit.Assert; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.serializer.AwtCodec; import com.alibaba.fastjson.serializer.JSONSerializer; import com.alibaba.fastjson.serializer.SerializerFeature; import junit.framework.TestCase; pub...
Java
4
Czarek93/fastjson
src/test/java/com/alibaba/json/bvt/awt/ColorTest2.java
[ "Apache-2.0" ]
Successful Submission Load <%= @user.login -%> has successfully loaded project <%= @project.id -%> <%= @project.name -%> on <%= @database -%>.
RHTML
2
andypohl/kent
src/hg/encode/hgEncodeSubmit/app/views/user_notifier/load_notification.rhtml
[ "MIT" ]
\data\ ngram 1=1799 ngram 2=13154 ngram 3=20310 \1-grams: -99 <s> -0.6441475 -1.494777 </s> -4.119058 chapter -0.1042707 -2.37087 one -0.338354 -2.641936 missus -0.8575981 -3.516998 rachel -0.12546 -3.818028 lynde -0.1042707 -2.340906 is -0.3560826 -3.818028 surprised -0.1042707 -3.516998 lived -0.1042707 -2.738846 j...
DNS Zone
3
sameerkhurana10/Montreal-Forced-Aligner
tests/data/lm/test_lm.arpa
[ "MIT" ]
/* * Copyright 2013 The Sculptor Project Team, including the original * author or 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/L...
Xtend
5
sculptor/sculptor
sculptor-generator/sculptor-generator-core/src/main/java/org/sculptor/generator/formatter/JavaCodeFormatter.xtend
[ "Apache-2.0" ]
f = a b f = a b c f = a b c d f = Just b f = Right b f = Example a c d f = () a = [1..] a = [1,2..] a = [1..2] a = [1,2..10] a = [x | x <- xs] a = [(x, y) | x <- xs, y <- ys] a = [ x | xs <- [ [(1,2),(3,4)], [(5,4),(3,2)] ], (3,x) <- xs ] a = [(i,j) | i <- [1,2], j <- [1..4] ] a = [ [ (i,j) | i <- [1...
Haskell
3
matsubara0507/semantic
test/fixtures/haskell/corpus/expressions.A.hs
[ "MIT" ]
CREATE TABLE "public"."table4"("name" text NOT NULL, "id" serial NOT NULL, PRIMARY KEY ("id") );
SQL
3
eazyfin/graphql-engine
cli/commands/testdata/migrate-squash-test/migrations/1588172668232_create_table_public_table4/up.sql
[ "Apache-2.0", "MIT" ]
--TEST-- Test that a property of mixed property type can be overridden by a property of mixed type --FILE-- <?php class Foo { public mixed $property1; } class Bar extends Foo { public mixed $property1; } ?> --EXPECT--
PHP
4
NathanFreeman/php-src
Zend/tests/type_declarations/mixed/inheritance/mixed_property_inheritance_success.phpt
[ "PHP-3.01" ]
# Copyright 1999-2020 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit cargo git-r3 CARGO_FETCH_CRATES=yes EGIT_REPO_URI="https://github.com/rust-qt/cpp_to_rust.git" DESCRIPTION="Generator of Rust-Qt crates." HOMEPAGE="https://github.com/rust-qt/cpp_to_rust" SRC_U...
Gentoo Ebuild
2
gentoo/gentoo-rust
dev-rust/qt_generator/qt_generator-9999.ebuild
[ "BSD-3-Clause" ]
module Imports.ImportedDisplayForms where open import Agda.Builtin.Nat postulate _plus_ : Set {-# DISPLAY _+_ a b = a plus b #-}
Agda
2
cruhland/agda
test/interaction/Imports/ImportedDisplayForms.agda
[ "MIT" ]
############################ XGBoost Command Line version ############################ See `XGBoost Command Line walkthrough <https://github.com/dmlc/xgboost/tree/master/demo/CLI/binary_classification>`_.
reStructuredText
1
bclehmann/xgboost
doc/cli.rst
[ "Apache-2.0" ]
{ "index": 5, "lineNumber": 3, "column": 2, "message": "Error: Line 3: Unexpected token ILLEGAL" }
JSON
1
exced/hermes
external/esprima/test_fixtures/invalid-syntax/migrated_0148.failure.json
[ "MIT" ]
CREATE TABLE "public"."t6" ("id" serial NOT NULL, "created_at" timestamptz NOT NULL DEFAULT now(), PRIMARY KEY ("id") );
SQL
3
gh-oss-contributor/graphql-engine-1
cli/commands/testdata/config-v2-test-project/migrations/1620138189381_create_table_public_t6/up.sql
[ "Apache-2.0", "MIT" ]
/* ESP32 ECO3 ROM address table Secure Boot Version 2 API's imported from the ROM */ PROVIDE ( ets_secure_boot_verify_signature = 0x4006543c); PROVIDE ( ets_secure_boot_verify_boot_bootloader = 0x400655ec); PROVIDE ( ets_use_secure_boot_v2 = 0x4000f8d4); PROVIDE ( ets_rsa_pss_verify = 0x40065310); PROVIDE ( ets_mgf1_sh...
Linker Script
1
lovyan03/esp-idf
components/esp_rom/esp32/ld/esp32.rom.eco3.ld
[ "Apache-2.0" ]
/* * "streamable kanji code filter and converter" * Copyright (c) 1998-2002 HappySize, Inc. All rights reserved. * * LICENSE NOTICES * * This file is part of "streamable kanji code filter and converter", * which is distributed under the terms of GNU Lesser General Public * License (version 2) as published by th...
C
5
NathanFreeman/php-src
ext/mbstring/libmbfl/filters/mbfilter_utf7.c
[ "PHP-3.01" ]
# # Copyright 2018 (c) Pointwise, Inc. # All rights reserved. # # This sample Pointwise script is not supported by Pointwise, Inc. # It is provided freely for demonstration purposes only. # SEE THE WARRANTY DISCLAIMER AT THE BOTTOM OF THIS FILE. # #######################################################################...
Glyph
5
smola/language-dataset
data/github.com/pointwise/CreateOH/948cfe307ef593e36d43fca93a1b7e84ec8bb5e4/CreateOH.glf
[ "MIT" ]
import functools import time from abc import ABC, abstractmethod from metrics.MetricsLogger import MetricsLogger import torch class TrainerBase(ABC): BATCH_LEVEL_METRIC = "batch_level_metric" BATCH_ALL = "batch_all" FORWARD_METRIC = "forward_metric" FORWARD_PASS = "forward_pass" BACKWARD_METRIC...
Python
5
Hacky-DH/pytorch
benchmarks/distributed/rpc/parameter_server/trainer/trainer.py
[ "Intel" ]
/obj/item/limb name = "limb" icon = 'icons/mobs/limbs/_default.dmi' attack_verbs = list("bludgeons", "batters", "whacks") default_material_path = /datum/material/meat flags = FLAG_SIMULATED | FLAG_IS_EDIBLE | FLAG_THROWN_SPIN | FLAG_ANCHORED // FLAG_ANCHORED is because, for some reason, you can pick the fucking li...
DM
4
BloodyMan/Antimonium
code/mobs/limbs/_limb.dm
[ "CC-BY-4.0" ]
import React from 'react'; import { useTranslation } from 'react-i18next'; interface SpacerPropTypes { style: Record<string, unknown>; } function Spacer(props: SpacerPropTypes): JSX.Element { const { t } = useTranslation(); return ( <> <span className='sr-only'>{t('icons.spacer')}</span> <svg ...
TypeScript
4
fcastillo-serempre/freeCodeCamp
client/src/assets/icons/spacer.tsx
[ "BSD-3-Clause" ]
export { default } from './TreeItem'; export * from './TreeItem'; export * from './TreeItemContent'; export { default as useTreeItem } from './useTreeItem'; export { default as treeItemClasses } from './treeItemClasses'; export * from './treeItemClasses';
TypeScript
3
good-gym/material-ui
packages/material-ui-lab/src/TreeItem/index.d.ts
[ "MIT" ]
// 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. using Microsoft.CodeAnalysis.Diagnostics; using Microsoft.CodeAnalysis.Editor.EditorConfigSettings.Data; using Micr...
C#
3
samaw7/roslyn
src/EditorFeatures/Core/EditorConfigSettings/DataProvider/Analyzer/AnalyzerSettingsProviderFactory.cs
[ "MIT" ]
20 5 0 1 5 2 3 4 1 5 [0] [0] [0] [0] [0] 1 1 2 10 6 [10] [6] 2 1 2 9 7 [0] [23] 3 1 2 10 8 [2] [0] 4 1 3 12 13 7 [4] [18] [-3] 5 1 1 18 [-2] 6 1 3 15 11 18 [-73] [5] [17] 7 1 3 17 14 10 [1] [1] [1] 8 1 3 15 20 16 [-55] [7] [4] 9 1 3 10 5 20 [-25] [-19] [17] 10 1 2 20 18 [0] [3] 11 1 4 3 7 6 19 [-76] [-96] [...
Eagle
0
klorel/or-tools
examples/data/rcpsp/single_mode_consumer_producer/ubo20_cum_2/psp20_67.sch
[ "Apache-2.0" ]
#define SHADER_NAME PHASER_COPY_FS precision mediump float; uniform sampler2D uMainSampler; uniform float uBrightness; varying vec2 outTexCoord; void main () { gl_FragColor = texture2D(uMainSampler, outTexCoord) * uBrightness; }
GLSL
4
dreammyboy/phaser
src/renderer/webgl/shaders/src/Copy.frag
[ "MIT" ]
port module Main exposing (..) -- this is required for the ports import Json.Decode exposing (decodeString) import QuickType port fromJS : (String -> msg) -> Sub msg port toJS : String -> Cmd msg type Msg = FromJS String update : Msg -> () -> ( (), Cmd Msg ) update msg _ = case msg of FromJS str -> ...
Elm
4
dugsmith/quicktype
test/fixtures/elm/Main.elm
[ "Apache-2.0" ]
(text) @text (comment) @comment (doctype) @constant ; HEEx attributes are highlighted as HTML attributes (attribute_name) @tag.attribute (quoted_attribute_value) @string [ "%>" "/>" "<!" "<" "<%" "<%#" "<%%=" "<%=" "</" ">" "{" "}" ] @tag.delimiter [ "=" ] @operator ; HEEx tags are highlig...
Scheme
4
hmac/nvim-treesitter
queries/heex/highlights.scm
[ "Apache-2.0" ]
Generic block #2 (value={{ value }})
Twig
0
titomtd/Sylius
src/Sylius/Bundle/UiBundle/Tests/Functional/templates/blocks/multipleEvents/genericSecond.txt.twig
[ "MIT" ]
// Copyright 2015 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_PARSING_PENDING_COMPILATION_ERROR_HANDLER_H_ #define V8_PARSING_PENDING_COMPILATION_ERROR_HANDLER_H_ #include <forward_list> #include "src/...
C
4
EXHades/v8
src/parsing/pending-compilation-error-handler.h
[ "BSD-3-Clause" ]
/* @(#)nlm4_prot.x 2.1 88/08/01 4.0 RPCSRC */ /* @(#)nlm4_prot.x 1.8 87/09/21 Copyr 1987 Sun Micro */ /* * Network lock manager protocol definition * Copyright (C) 1986 Sun Microsystems, Inc. * * protocol used between local lock manager and remote lock manager */ /* The maximum length of the string identifying t...
Logos
5
getong/leofs
apps/leo_gateway/src/leo_nlm_proto4.x
[ "Apache-2.0" ]
-record(r, {cell=undefined}).
Erlang
0
doughsay/elixir
lib/mix/test/fixtures/compile_erlang/include/r.hrl
[ "Apache-2.0" ]
#define PERL_IN_XS_APITEST #include "EXTERN.h" #include "perl.h" #include "XSUB.h" /* for my_cxt tests */ #define MY_CXT_KEY "XS::APItest::_guts" XS_VERSION typedef struct { int i; SV *sv; } my_cxt_t; START_MY_CXT /* indirect functions to test the [pa]MY_CXT macros */ int my_cxt_getint_p(pMY_CXT) { r...
XS
3
vlinhd11/vlinhd11-android-scripting
perl/src/ext/XS-APItest/APItest.xs
[ "Apache-2.0" ]
MSTRINGIFY( __kernel void updateVelocitiesFromPositionsWithoutVelocitiesKernel( const int numNodes, const float isolverdt, __global float4 * g_vertexPositions, __global float4 * g_vertexPreviousPositions, __global int * g_vertexClothIndices, __global float * g_clothDampingFactor, __global float4 * g...
OpenCL
4
BonJovi1/Bullet-the-Blue-Sky
external/bullet-2.81-rev2613/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/OpenCLC10/UpdatePositions.cl
[ "WTFPL" ]
// 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. using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; namespace Micr...
C#
4
Cadris/roslyn
src/Tools/ExternalAccess/OmniSharp/ExtractInterface/IOmniSharpExtractInterfaceOptionsService.cs
[ "MIT" ]
# Copyright 2017-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # Auto-Generated by cargo-ebuild 0.1.5 EAPI=6 CRATES=" advapi32-sys-0.2.0 aho-corasick-0.6.3 atty-0.2.3 backtrace-0.3.3 backtrace-sys-0.1.16 bitflags-0.7.0 bitflags-0.9.1 cargo-0.24.0 cargo-bitbake-0.3.10 cc-1....
Gentoo Ebuild
2
gentoo/gentoo-rust
dev-util/cargo-bitbake/cargo-bitbake-0.3.10.ebuild
[ "BSD-3-Clause" ]
// Fourier Series // Daniel Shiffman // https://thecodingtrain.com/CodingChallenges/125-fourier-series.html // https://youtu.be/Mm2eYfj0SgA // https://editor.p5js.org/codingtrain/sketches/SJ02W1OgV float time = 0; FloatList wave; int n = 5; void setup() { size(600, 400); wave = new FloatList(); } void draw() { ...
Processing
4
aerinkayne/website
CodingChallenges/CC_125_Fourier_Series/Processing/CC_125_Fourier_Series/CC_125_Fourier_Series.pde
[ "MIT" ]
CREATE TABLE `tb_uoquelzmdk` ( `col_wcdxzaykzl` smallint(5) unsigned DEFAULT '1', `col_njhhehxbdq` mediumtext, `col_wwdicmbkug` longblob ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
SQL
3
yuanweikang2020/canal
parse/src/test/resources/ddl/alter/mysql_43.sql
[ "Apache-2.0" ]
// https://w3c.github.io/uievents/#idl-focusevent [Exposed=Window] interface FocusEvent : UIEvent { constructor(DOMString type, optional FocusEventInit eventInitDict = {}); readonly attribute EventTarget? relatedTarget; }; // https://w3c.github.io/uievents/#idl-focuseventinit dictionary FocusEventInit : UIEventIn...
WebIDL
4
Unique184/jsdom
lib/jsdom/living/events/FocusEvent.webidl
[ "MIT" ]
#include <c10/core/InferenceMode.h> #include <stdexcept> namespace c10 { // Invariant: // is_enabled() == // !c10::impl::tls_is_dispatch_key_included(DispatchKey::ADInplaceOrView); // InferenceMode::is_enabled() is in perf critical path (TensorImpl constructor) // so it worths a separate TLS to skip the DispatchKe...
C++
4
Hacky-DH/pytorch
c10/core/InferenceMode.cpp
[ "Intel" ]
classy Rectangle shh 1 wow
Dogescript
0
erinkeith/dogescript
test/spec/classy/declaration/simple/source.djs
[ "MIT" ]
? my $context = $main::context; ? $_mt->wrapper_file("wrapper.mt")->(sub { <title>Importing Files - Documents - JSX</title> ?= $_mt->render_file("header.mt") ?= $_mt->render_file("breadcrumb.mt", [ qw(Documents doc.html) ], [ "Importing Files" ]) <div id="main"> <h2>Importing Files</h2> <p> By using the import sta...
Mathematica
3
monkpit/JSX
doc/src/doc/importref.mt
[ "MIT" ]
Add ``aiohttp.pytest_plugin.AiohttpClient`` for static typing of pytest plugin.
Cucumber
1
loven-doo/aiohttp
CHANGES/5585.feature
[ "Apache-2.0" ]
datatype list t = Nil | Cons of t * list t table t : {Id : int, A : string} PRIMARY KEY Id fun allRows () = query (SELECT * FROM t) (fn r acc => return (Cons ((r.T.Id, r.T.A), acc))) Nil fun doBatch ls = case ls of Nil => return () | Cons ((id, a), ls') => dml (INSERT INTO t (...
UrWeb
4
apple314159/urweb
demo/batch.ur
[ "BSD-3-Clause" ]
#! /bin/sh -e ## 02_add_debian_files_in_manpage.dpatch by <weasel@debian.org> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Change the FILES section of the manpage to properly describe the situation on Debian systems. if [ $# -lt 1 ]; then echo "`basename $0`: script expects -patc...
Darcs Patch
4
flupzor/tor-debian
debian/patches/02_add_debian_files_in_manpage.dpatch
[ "BSD-3-Clause" ]
//@target: ES6 interface I { [Symbol.unscopables]: number; [Symbol.toPrimitive](); }
TypeScript
2
nilamjadhav/TypeScript
tests/cases/conformance/es6/Symbols/symbolProperty8.ts
[ "Apache-2.0" ]
#lang scribble/manual @(require "../defs.rkt" (for-label racket/base data/bit-vector cur/stdlib/racket-ascii) scribble/eval) @title{Racket ASCII} @defmodule[cur/stdlib/racket-ascii] This library defines Racket tools for manipulating ASCII string. It will eventually be moved out of Cur; do not rely on it. @defp...
Racket
4
bluephoenix47/cic-redex
cur-doc/cur/scribblings/stdlib/racket-ascii.scrbl
[ "BSD-2-Clause" ]
# Copyright (c) 2018-2021, Carnegie Mellon University # See LICENSE for details #F ========================================================================== #F Diag(<diag-func>) #F ========================================================================== Class(Diag, BaseMat, rec( _short_print := true, abbr...
GAP
4
sr7cb/spiral-software
namespaces/spiral/spl/Diag.gi
[ "BSD-2-Clause-FreeBSD" ]
// // The SWITCH statement is a replacement for the DO CASE statement // The biggest difference is that the expression (in this case sDeveloper) is only evaluated once. // which will have a performance benefit over the DO CASE statement // using System.Collections.Generic Function Start() as void FOREACH VAR sDeve...
xBase
4
JohanNel/XSharpPublic
Samples/Switch/Switch.prg
[ "Apache-2.0" ]
#+TITLE: os/tty #+DATE: August 7, 2020 #+SINCE: v3.0.0 #+STARTUP: inlineimages nofold * Table of Contents :TOC_3:noexport: - [[#description][Description]] - [[#maintainers][Maintainers]] - [[#module-flags][Module Flags]] - [[#plugins][Plugins]] - [[#prerequisites][Prerequisites]] - [[#configuration][Confi...
Org
4
leezu/doom-emacs
modules/os/tty/README.org
[ "MIT" ]
{% set result = ['a', 'b', 'c', 'a', 'b'] | unique() %} {% include 'jinja_filters/common.sls' %}
SaltStack
3
byteskeptical/salt
tests/integration/files/file/base/jinja_filters/jinja_unique.sls
[ "Apache-2.0" ]
impl Foo; //~ ERROR expected one of `!`, `(`, `+`, `::`, `<`, `for`, `where`, or `{`, found `;`
Rust
0
Eric-Arellano/rust
src/test/ui/parser/empty-impl-semicolon.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
#N canvas 579 34 536 697 12; #X declare -stdpath ./; #X obj 47 130 osc~ 100; #X msg 65 157 clear; #N canvas 471 254 550 387 test 0; #X obj 127 283 env~ 16384; #X floatatom 127 307 5 0 0 0 - - - 0; #X floatatom 414 112 4 -1000 1000 0 - - - 0; #X obj 294 112 cos~; #X floatatom 229 57 5 0 0 0 - - - 0; #X obj 269 119 tgl 1...
Pure Data
4
myQwil/pure-data
doc/5.reference/czero~-help.pd
[ "TCL" ]
= exports.statement $ [] , :do :break :continue :debugger :var :return , :if :switch :try :white :for :throw , :class
Cirru
2
Cirru/scirpus
src/category.cirru
[ "MIT" ]
[section] key=value numeric = 42 quotes[38;2;24...
INI
2
JesseVermeulen123/bat
tests/syntax-tests/highlighted/INI/test.ini
[ "Apache-2.0", "MIT" ]
textures = $pwd/../../runtime/textures build $textures/texture_compression_bc1.ktx: texturec_bc1 $pwd/texture-compression-test.png build $textures/texture_compression_bc2.ktx: texturec_bc2 $pwd/texture-compression-test.png build $textures/texture_compression_bc3.ktx: texturec_bc3 $pwd/texture-compression-test.pn...
Ninja
3
christiancoder/bgfx
examples/assets/textures/textures.ninja
[ "BSD-2-Clause" ]
--TEST-- Constructor promotion cannot be used inside an abstract constructor --FILE-- <?php abstract class Test { abstract public function __construct(public int $x); } ?> --EXPECTF-- Fatal error: Cannot declare promoted property in an abstract constructor in %s on line %d
PHP
3
NathanFreeman/php-src
Zend/tests/ctor_promotion_abstract.phpt
[ "PHP-3.01" ]
grammar abc::Grammar is HLL::Grammar; =begin overview The following is the grammar for abc written as a sequence of Perl 6 rules. In each of the rules, the special notation {*} marks a point in the rule where the corresponding action in abc::Grammar::Actions is to be invoked (see grammar-actions.pl). These actions a...
Perl6
5
winnit-myself/Wifie
examples/languages/abc/src/parser/grammar.nqp
[ "Artistic-2.0" ]
import time import os import shutil import sys from selenium import webdriver from selenium.webdriver.chrome.options import Options chrome_options = Options() testdir = os.path.dirname(os.path.abspath(__file__)) chrome_options.add_argument("nwapp=" + testdir) sys.path.append(os.path.dirname(os.path.dirname(os.path.ab...
Python
3
frank-dspeed/nw.js
test/sanity/child_process/test.py
[ "MIT" ]
#pragma once #include <ATen/detail/FunctionTraits.h> #include <ATen/native/TensorIterator.h> #include <ATen/native/TensorIteratorDynamicCasting.h> #include <ATen/cuda/detail/OffsetCalculator.cuh> #include <ATen/OpMathType.h> #include <thrust/tuple.h> #define NUM_THREADS (C10_WARP_SIZE * 2) #define THREAD_WORK_SIZE ...
Cuda
4
PaliC/pytorch
aten/src/ATen/native/cuda/Loops.cuh
[ "Intel" ]
from libcpp.vector cimport vector from cymem.cymem cimport Pool from preshed.maps cimport PreshMap from ..structs cimport GraphC, EdgeC cdef class Graph: cdef GraphC c cdef Pool mem cdef PreshMap node_map cdef PreshMap edge_map cdef object doc_ref cdef public str name
Cython
3
snosrap/spaCy
spacy/tokens/graph.pxd
[ "MIT" ]
program_name='graph' #if_not_defined __NCL_LIB_GRAPH #define __NCL_LIB_GRAPH define_constant // Bounds for array sizes returned internally. These may be tweaked to optimise // memory utilization. GRAPH_MAX_NODES = 128 GRAPH_MAX_EDGES = 1024 GRAPH_MAX_ADJACENT_NODES = 16 GRAPH_MAX_HOPS = 8 // Internal co...
NetLinx
5
KimBurgess/netlinx-common-libraries
graph.axi
[ "MIT" ]
/* * Copyright 2018-2019 Jiří Janoušek <janousek.jiri@gmail.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of con...
Vala
4
xcffl/nuvolaruntime
src/nuvolakit-runner/system/AudioOperation.vala
[ "BSD-2-Clause" ]
BEGIN CREATE (:`Station`:`UNIQUE IMPORT LABEL` {`name`:"Bristol", `reference`:"BRI", `UNIQUE IMPORT ID`:0}); CREATE (:`Station`:`UNIQUE IMPORT LABEL` {`name`:"Bath Spa", `reference`:"BTH", `UNIQUE IMPORT ID`:1}); CREATE (:`Station`:`UNIQUE IMPORT LABEL` {`name`:"Chippenham", `reference`:"CHI", `UNIQUE IMPORT ID`:2}); C...
Cycript
4
smola/language-dataset
data/github.com/adam-cowley/journeyplanning/ffc7b29766b2d9f030a070b4aedbbb67aa55e0a3/all.cy
[ "MIT" ]
default_mode=Standardformat för processlista,4,last-Senast valda,tree-Processträd,user-Sorterad efter användare,size-Sorterad efter storlek,cpu-Sorterad efter CPU,search-Sökformulär,run-Utför formulär ps_style=Format för utmatning från PS-kommandon,1,sysv-SYSV,linux-Linux,hpux-HPUX,freebsd-FreeBSD,macos-MacOS
SystemVerilog
2
GalaxyGFX/webmin
proc/config.info.sv
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M12 23c5.7 0 10.39-4.34 10.95-9.9.06-.59-.41-1.1-1-1.1-.51 0-.94.38-.99.88C20.52 17.44 16.67 21 12 21c-3.12 0-5.87-1.59-7.48-4H6c.55 0 1-.45 1-1s-.45-1-1-1H...
JavaScript
3
dany-freeman/material-ui
packages/mui-icons-material/lib/esm/CurrencyExchangeRounded.js
[ "MIT" ]
external compare : 'a -> 'a -> int = "%compare" external ascending : 'a -> 'a -> int = "%compare" let descending x y = compare y x let ( < ) = ( < ) let ( <= ) = ( <= ) let ( > ) = ( > ) let ( >= ) = ( >= ) let ( = ) = ( = ) let ( <> ) = ( <> ) let equal = ( = ) let min = min let max = max
OCaml
4
Hans-Halverson/flow
src/hack_forked/third-party/core/polymorphic_compare.ml
[ "MIT" ]
@page @*#if (!no-pagemodel)*@ @model MyApp.Namespace.IndexModel @*#endif*@ @{ }
C#
3
legistek/AspNetCore
src/ProjectTemplates/Web.ItemTemplates/content/RazorPage/Index.cshtml
[ "Apache-2.0" ]
@font-face { font-family: 'one-style'; src: url('./one-style.woff') format('woff'); } body { background-color: pink; font-family: 'one-style', sans-serif; }
CSS
4
suryatmodulus/puppeteer
test/assets/cached/one-style-font.css
[ "Apache-2.0" ]
/* jconfig.sas --- jconfig.h for Amiga systems using SAS C 6.0 and up. */ /* see jconfig.doc for explanations */ #define HAVE_PROTOTYPES #define HAVE_UNSIGNED_CHAR #define HAVE_UNSIGNED_SHORT /* #define void char */ /* #define const */ #undef CHAR_IS_UNSIGNED #define HAVE_STDDEF_H #define HAVE_STDLIB_H #und...
SAS
4
close-code/Torque2D
engine/lib/ljpeg/extras/jconfig.sas
[ "MIT" ]
(* Content-type: application/vnd.wolfram.mathematica *) (*** Wolfram Notebook File ***) (* http://www.wolfram.com/nb *) (* CreatedBy='Mathematica 8.0' *) (*CacheID: 234*) (* Internal cache information: NotebookFileLineBreakTest NotebookFileLineBreakTest NotebookDataPosition[ 157, 7] NotebookDataLength...
Mathematica
4
kvmanohar22/gtsam
doc/Mathematica/StereoCamera.nb
[ "BSD-3-Clause" ]
## Licensed to Cloudera, Inc. under one ## or more contributor license agreements. See the NOTICE file ## distributed with this work for additional information ## regarding copyright ownership. Cloudera, Inc. licenses this file ## to you under the Apache License, Version 2.0 (the ## "License"); you may not use this f...
Mako
4
yetsun/hue
apps/jobbrowser/src/jobbrowser/templates/tasks.mako
[ "Apache-2.0" ]
#include <PJONVirtualBusRouter.h> /* This sketch is routing between two local buses to form one larger local bus. It will discover which attached bus each device is connected to, and route packets dynamically. Devices can be placed on any of the attached buses as long as device ids are unique, forming a ...
Arduino
4
jcallano/PJON
examples/routing/ARDUINO/Local/VirtualBusRouter/VirtualBusRouter/VirtualBusRouter.ino
[ "Apache-2.0" ]
/* Copyright (c) 2017-2019 Netronome Systems, Inc. All rights reserved. * * SPDX-License-Identifier: BSD-2-Clause */ hashmap_alloc_fd(SRIOV_TID, 8, 32, 2000, --, swap, BPF_MAP_TYPE_HASH) .alloc_mem LM_KEY_BASE_ADDR lmem me (16 * (1 << log2((4 * 4), 1))) 128 #macro veb_entry_insert(key, action, SUCCESS) .begin ...
UnrealScript
4
pcasconnetronome/nic-firmware
test/datapath/actions_classify_veb_insertion.uc
[ "BSD-2-Clause" ]
<?xml version="1.0" encoding="UTF-8"?> <!-- generated with COPASI 4.0 Debug 13++ (http://www.copasi.org) at 2005-08-12 19:37:26 UTC --> <COPASI xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://calvin.bioinformatics.vt.edu/copasi/schema/copasi.xsd" versionMajor="0" versionMinor...
Component Pascal
4
SzVarga/COPASI
TestSuite/sbml/import_export/function-call-with-quoted-name.cps
[ "Artistic-2.0" ]
int reqSubscribeTopic(const dict &req, int reqid); int reqUserLogin(const dict &req, int reqid); int reqUserLogout(const dict &req, int reqid); int reqUserPasswordUpdate(const dict &req, int reqid); int reqStockInsert(const dict &req, int reqid); int reqStockCancel(const dict &req, int reqid); int reqStockLock(co...
C
3
funrunskypalace/vnpy
vnpy/api/nh/generator/stock/nh_stock_header_function.h
[ "MIT" ]
function pkf --description 'copy the content of a file to the piknik clipboard' piknik -copy < $argv[1]; end
fish
2
Shark/piknik
fish-shell/functions/pkf.fish
[ "BSD-2-Clause" ]
\* Copyright (c) 2010-2015, Mark Tarver All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the foll...
Shen
4
nondejus/shen-go
ShenOSKernel-22.2/sources/yacc.shen
[ "BSD-3-Clause" ]
#pragma rtGlobals=1 // Use modern global access method. #ifndef WAVEUTILS_INCLUDE #define WAVEUTILS_INCLUDE #include "dictutils" Function Wave_appendRow(wave_in) // Add a new row to a wave and return the index of the new row Wave wave_in return Wave_appendRows(wave_in, 1) End Function Wave_appendRows(w...
IGOR Pro
5
ajnavarro/language-dataset
data/github.com/comptech/Igor-Pro-procedures/d565b7222eecdae735d404382cc7955fcb9ae635/igorutils/waveutils.ipf
[ "MIT" ]
set terminal epslatex standalone size 12cm, 8cm set output "out.tex" p exp(x)
Gnuplot
2
Iinguistics/algorithm-archivists.github.io
contents/plotting/code/gnuplot/example_tex.gp
[ "MIT" ]
extends LinkButton func _on_LinkButton_pressed(): OS.shell_open("https://github.com/godotengine/webrtc-native/releases")
GDScript
4
jonbonazza/godot-demo-projects
networking/webrtc_minimal/link_button.gd
[ "MIT" ]
. "$(dirname "$0")/functions.sh" setup install f=".husky/pre-commit" npx --no-install husky install npx --no-install husky add $f "foo" grep -m 1 _ $f && grep foo $f && ok npx --no-install husky add .husky/pre-commit "bar" grep -m 1 _ $f && grep foo $f && grep bar $f && ok npx --no-install husky set .husky/pre-com...
Shell
2
david-tomson/husky
test/5_set-add.sh
[ "MIT" ]
USING: accessors alien alien.c-types alien.private kernel kernel.private literals math namespaces stack-checker.alien stack-checker.state stack-checker.values system threads.private tools.test ; IN: stack-checker.alien.tests ! alien-inputs/outputs { V{ 31 32 } { 33 } } [ 0 inner-d-index set V{ } clone ...
Factor
3
alex-ilin/factor
basis/stack-checker/alien/alien-tests.factor
[ "BSD-2-Clause" ]
module DateTime exposing (DateTime, dateTimeDecoder, dateTimeEncoder) import Date import Date.Extra exposing (fromIsoString, toIsoString) import Json.Decode as Decode exposing (Decoder) import Json.Encode as Encode type alias DateTime = Date.Date dateTimeDecoder : Decoder DateTime dateTimeDecoder = Decode....
Elm
4
derBiggi/swagger-codegen
samples/client/petstore/elm/src/DateTime.elm
[ "Apache-2.0" ]
enum State { # pending state PENDING # visible states VISIBLE INVISIBLE # archive state ARCHIVED }
GraphQL
3
fuelingtheweb/prettier
tests/graphql_newline/enum.graphql
[ "MIT" ]
#ifndef PATHS_HPP_ #define PATHS_HPP_ #include <string> #include "errors.hpp" #ifdef _WIN32 #define PATH_SEPARATOR "\\" #else #define PATH_SEPARATOR "/" #endif // Contains the name of the directory in which all data is stored. class base_path_t { public: // Constructs an empty path. base_path_t() { } ex...
C++
5
zadcha/rethinkdb
src/paths.hpp
[ "Apache-2.0" ]
%%% Programming Systems Lab, DFKI Saarbruecken, %%% Stuhlsatzenhausweg 3, D-66123 Saarbruecken, Phone (+49) 681 302-5312 %%% Author: Joerg Wuertz %%% Email: wuertz@dfki.uni-sb.de %%% Last modified: $Date$ by $Author$ %%% Version: $Revision$ local GetMin = FD.reflect.min GetMax = FD.reflect.max fun {Fin...
Oz
4
Ahzed11/mozart2
platform-test/scheduling/swaps.oz
[ "BSD-2-Clause" ]
⍝ Mandelbrot ⍝ grid-size in left argument (e.g., (1024 768)) ⍝ X-range, Y-range in right argument mandelbrot ← { X ← ⊃⍺ ⍝ e.g., 1024 Y ← ⊃1↓⍺ ⍝ e.g., 768 xRng ← 2↑⍵ yRng ← 2↓⍵ dx ← ((xRng[2])-xRng[1]) ÷ X dy ← ((yRng[2])-yRng[1]) ÷ Y cxA ← Y ...
APL
5
melsman/apltail
tests/mandelbrotInnerPower.apl
[ "MIT" ]
FUNCTION FileSizeString(uBytes, lTrim) LOCAL cResult AS STRING LOCAL nBytes AS INT // returns bytes, KB or MB but returns valid strings Default(@lTrim, FALSE) DO CASE CASE IsString(uBytes) cResult := uBytes // return this anyway - might be "<Dir>" etc CASE uBytes < 1024 cResult := Str(uBytes,7,0) CASE ...
xBase
4
JohanNel/XSharpPublic
Samples/VOExporterExamples/Before/Email/Functions.prg
[ "Apache-2.0" ]
unit Deck; {$IFDEF FPC} {$mode objfpc}{$H+} {$ENDIF} interface uses Classes , SysUtils ; type { TDeck } TDeck = class private FDealerLow: Integer; FDealerHigh: Integer; FPlayer: Integer; procedure PrintCard(const ACard: Integer); protected public property DealerLow: Integer read...
Pascal
4
jcoehoorn/basic-computer-games
01_Acey_Ducey/pascal/object-pascal/deck.pas
[ "Unlicense" ]
{ field ... XYZ ... on TheType { ...AFragment ... { noTypeCondition } } } fragment XYZ on ABC { field ...AFragment }
GraphQL
1
fuelingtheweb/prettier
tests/graphql_fragments/fragments.graphql
[ "MIT" ]
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
JavaScript
3
good-gym/material-ui
packages/material-ui-icons/lib/ThirtyFpsSelectRounded.js
[ "MIT" ]
domain: "[M, N] -> { S1[i0] : i0 >= 1 and i0 <= M; S2[i0, i1] : i0 >= 1 and i0 <= N and i1 >= 1 and i1 <= M }" child: context: "[M, N] -> { [] : M >= 1 and N >= 1 }" child: schedule: "[M, N] -> [{ S2[i0, i1] -> [(i0)]; S1[i0] -> [(i0)] }, { S2[i0, i1] -> [(i1)]; S1[i0] -> [(0)] }]" options: "[M, N] -> { sep...
Smalltalk
2
chelini/isl-haystack
test_inputs/codegen/cloog/dot2.st
[ "MIT" ]
unit SpawnClient; { Inno Setup Copyright (C) 1997-2007 Jordan Russell Portions by Martijn Laan For conditions of distribution and use, see LICENSE.TXT. Spawn client NOTE: These functions are NOT thread-safe. Do not call them from multiple threads simultaneously. $jrsoftware: issrc/Proje...
Pascal
5
Patriccollu/issrc
Projects/SpawnClient.pas
[ "FSFAP" ]
#N canvas 672 25 448 396 10; #X obj 11 240 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 0 0 10 -262144 -1 -1 0 256; #X obj 11 262 outlet; #X obj 78 267 s \$1-out; #X obj 189 49 r \$1-in; #X obj 191 130 r \$2-in; #X obj 191 177 route \$1 -record-; #X obj 191 205 f; #X obj 245 289 pack s 0; #X obj 248 203 b; #X obj 245 ...
Pure Data
1
mxa/pure-data
doc/7.stuff/synth/numset.pd
[ "TCL" ]
(let ((lastpwd (path.cwd))) (path.cwd (cadr *argv*)) (load (caddr *argv*)) (path.cwd lastpwd)) (make-system-image (cadddr *argv*))
Scheme
3
vanillajonathan/julia
src/mk_julia_flisp_boot.scm
[ "Zlib" ]
class CommonType { ** ** Map the list of expressions into their list of types ** static CType[] ctypes(Expr[] exprs) { return exprs.map |Expr e->CType| { e.ctype } } ** ** Given a list of Expr instances, find the common base type ** they all share. This method does not take into account ...
Fantom
4
fanx-dev/fanx
compiler/compilerx/fan/checkType/CommonType.fan
[ "AFL-3.0" ]
<script> (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define("JSONFormatter", [], factory); else if(typeof exports === 'object') exports["JSONFormatter"] ...
HTML+Django
5
MalcolmScoffable/openapi-generator
modules/openapi-generator/src/main/resources/htmlDocs2/js_jsonformatter.mustache
[ "Apache-2.0" ]