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 ron
import "fmt"
import "errors"
%% machine RON;
%% write data;
%% access ps.;
%% variable data frame.Body;
%% variable cs ps.state;
const (
// The parser reached end-of-input (in block mode) or
// the closing dot (in streaming mode) successfully.
// The rest of the input is frame.Rest()
RON_... | Ragel in Ruby Host | 4 | gritzko/ron | dfa.rl | [
"Apache-2.0"
] |
export class CustomMacros
(generator) ->
@g = generator
args = @args = {}
args.\myMacro = <[ H o? ]>
\myMacro : (o) ->
[ "-", o, "-" ]
export { default: CustomMacros } | LiveScript | 3 | fgborges/latex2e-js | test/api/CustomMacros.ls | [
"MIT"
] |
package
public val configurations1: kotlin.collections.List<() -> kotlin.Int>
public val configurations2: kotlin.collections.Map<kotlin.Int, kotlin.collections.List<() -> kotlin.Int>>
public val configurations3: kotlin.collections.List<kotlin.Pair<kotlin.Int, kotlin.collections.Map<kotlin.Int, kotlin.collections.List<... | Text | 1 | punzki/kotlin | compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/nestedLambdaInferenceWithListMap.txt | [
"ECL-2.0",
"Apache-2.0"
] |
@0xb9523c11cf10d3bd;
using Rust = import "rust.capnp";
using Other = import "in-other-submodule.capnp";
$Rust.parentModule("foo::bar");
struct Foo {
recursive @0 :Foo;
other @1: Other.Baz;
}
| Cap'n Proto | 2 | tomkris/capnproto-rust | capnpc/test/in-submodule.capnp | [
"MIT"
] |
'use strict';
/**
* A set of functions called "actions" for `{{id}}`
*/
module.exports = {
// exampleAction: async (ctx, next) => {
// try {
// ctx.body = 'ok';
// } catch (err) {
// ctx.body = err;
// }
// }
};
| Handlebars | 3 | Mithenks/strapi | packages/generators/generators/lib/templates/controller.js.hbs | [
"MIT"
] |
(kicad_pcb (version 20211014) (generator pcbnew)
(general
(thickness 1.6)
)
(paper "A4")
(layers
(0 "F.Cu" signal)
(31 "B.Cu" signal)
(32 "B.Adhes" user "B.Adhesive")
(33 "F.Adhes" user "F.Adhesive")
(34 "B.Paste" user)
(35 "F.Paste" user)
(36 "B.SilkS" user "B.Silkscreen")
... | KiCad | 5 | TadeasPilar/KiKit | test/resources/assembly_project1/assembly_project1.kicad_pcb | [
"MIT"
] |
-include ../tools.mk
all:
$(RUSTC) --crate-name foo bar.rs
rm $(TMPDIR)/libfoo.rlib
| Makefile | 3 | Eric-Arellano/rust | src/test/run-make-fulldeps/manual-crate-name/Makefile | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
/*
* Copyright (c) 2012-2021 Daniele Bartolini et al.
* License: https://github.com/dbartolini/crown/blob/master/LICENSE
*/
using Gee;
namespace Crown
{
[Compact]
public struct Vector4
{
public double x;
public double y;
public double z;
public double w;
public Vector4(double x, double y, double z, double w)... | Vala | 4 | galek/crown | tools/core/math/vector4.vala | [
"MIT"
] |
/**
*
*/
import Util;
import OpenApi;
import OpenApiUtil;
import EndpointUtil;
extends OpenApi;
init(config: OpenApi.Config){
super(config);
@endpointRule = 'regional';
@endpointMap = {
cn-qingdao = 'baas.aliyuncs.com',
cn-beijing = 'baas.aliyuncs.com',
cn-zhangjiakou = 'baas.aliyuncs.com',
c... | Tea | 5 | alibabacloud-sdk-swift/alibabacloud-sdk | baas-20181221/main.tea | [
"Apache-2.0"
] |
#!/bin/sh
set -ev
# PostgreSQL tests currently don't work on some architectures.
if test -z "${ARM64}${S390X}"; then
psql -c "ALTER USER postgres PASSWORD 'postgres';" -U postgres
psql -c "CREATE DATABASE test;" -U postgres
fi
| Shell | 2 | NathanFreeman/php-src | travis/setup-pgsql.sh | [
"PHP-3.01"
] |
//@target: ES6
class C {
[s: symbol]: string;
} | TypeScript | 2 | nilamjadhav/TypeScript | tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolIndexer2.ts | [
"Apache-2.0"
] |
fn main() {
let x = 1u8;
match x {
0u8..=3i8 => (), //~ ERROR E0308
_ => ()
}
}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/error-codes/E0308-4.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
syntax = "proto3";
package v2ray.core.transport.internet.websocket;
option csharp_namespace = "V2Ray.Core.Transport.Internet.Websocket";
option go_package = "v2ray.com/core/transport/internet/websocket";
option java_package = "com.v2ray.core.transport.internet.websocket";
option java_multiple_files = true;
message He... | Protocol Buffer | 4 | sjf10050/v2ray-core | transport/internet/websocket/config.proto | [
"MIT"
] |
1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -28.00
-1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -... | Matlab | 1 | yinrun/LOPDC-Benchmarks | strippacking/matlab/sp-15-1-sqrt.matlab | [
"MIT"
] |
types = require "moonscript.types"
import ntype, mtype, is_value, NOOP from types
import comprehension_has_value from require "moonscript.transform.comprehension"
-- A Run is a special statement node that lets a function run and mutate the
-- state of the compiler
class Run
new: (@fn) =>
@[1] = "run"
call: ... | MoonScript | 4 | Shados/moonscript | moonscript/transform/statements.moon | [
"MIT",
"Unlicense"
] |
--TEST--
Dynamic static call of non-static method
--FILE--
<?php
class Foo {
function test1() {
$method = ['Foo', 'bar'];
$method();
}
function test2() {
$method = 'Foo::bar';
$method();
}
function __call($name, $args) {}
}
$x = new Foo;
try {
$x->test1();
} catch... | PHP | 3 | NathanFreeman/php-src | Zend/tests/dynamic_call_non_static.phpt | [
"PHP-3.01"
] |
frequency,raw
20.00,13.25
20.20,13.20
20.40,13.15
20.61,13.10
20.81,13.06
21.02,13.01
21.23,12.96
21.44,12.91
21.66,12.86
21.87,12.81
22.09,12.77
22.31,12.72
22.54,12.67
22.76,12.63
22.99,12.58
23.22,12.53
23.45,12.49
23.69,12.43
23.92,12.39
24.16,12.34
24.40,12.28
24.65,12.24
24.89,12.19
25.14,12.14
25.39,12.09
25.65,... | CSV | 1 | vinzmc/AutoEq | measurements/rtings/data/onear/Skullcandy Hesh 3/Skullcandy Hesh 3.csv | [
"MIT"
] |
# Copyright (c) 2016 Snowplow Analytics Ltd. All rights reserved.
#
# This program is licensed to you under the Apache License Version 2.0,
# and you may not use this file except in compliance with the Apache License Version 2.0.
# You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/license... | LookML | 4 | chuwy/snowplow-build-test | 5-data-modeling/web-model/looker/web-block-old-lookml/03_scratch_events_scroll_depth.view.lookml | [
"Apache-2.0"
] |
<li class="suggestion_name_li" data-has_argument="{{has_argument}}" data-id={{id}}>{{suggestion}}</li>
| Handlebars | 1 | zadcha/rethinkdb | admin/static/handlebars/dataexplorer_suggestion_name_li.hbs | [
"Apache-2.0"
] |
(print "Hello World")
| Hy | 1 | Gabrielarodrigues10/ga | h/Hy.hy | [
"MIT"
] |
(*
* Copyright 2014, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*)
theory Sep_Tactics
imports
Sep_Solve
Sep_Attribs
Sep_ImpI
Sep_Rule_Ext
begin... | Isabelle | 4 | pirapira/eth-isabelle | sep_algebra/Sep_Tactics.thy | [
"Apache-2.0"
] |
; Find, retrieve and parse raw page markup
(import
[codecs [open]]
[config [*base-filenames* *base-types* *ignored-folders* *store-path* *timezone*]]
[datetime [datetime]]
[logging [getLogger]]
[os [walk]]
[os.path [join exists splitext getmtime]]
[utils [utc-date]])
(setv l... | Hy | 5 | CyberFlameGO/sushy | sushy/store.hy | [
"MIT"
] |
<span style="color: #555; font-weight: bold;"><?php echo $this->nodePrinter->print($object) ?></span>
| HTML+PHP | 0 | rustamwin/phpbench | templates/html/node/UnitNode.phtml | [
"MIT"
] |
#ifndef GAPI_STREAMING_ONEVPL_EXPORT_HPP
#define GAPI_STREAMING_ONEVPL_EXPORT_HPP
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable : 4201)
#pragma warning(disable : 4302)
#pragma warning(disable : 4311)
#pragma warning(disable : 4312)
#endif // defined(_MSC_VER)
#ifdef HAVE_ONEVPL
#if (MFX_VERSION ... | C++ | 2 | nowireless/opencv | modules/gapi/src/streaming/onevpl/onevpl_export.hpp | [
"Apache-2.0"
] |
{{$file := .Get "file"}}
{{$icon := index (split $file ".") 1 }}
<div class="code" id="{{$file | urlize}}">
<div class="filename" title="{{$file}}">{{$file}}</div>
<div class="code-copy-content output-content">
<pre><code>{{- .Inner | string -}}</code></pre>
</div>
</div> | HTML | 4 | jlevon/hugo | docs/layouts/shortcodes/output.html | [
"Apache-2.0"
] |
<button (click)="showLinks = !showLinks">Toggle Navigation Links</button>
<main>
<mat-nav-list *ngIf="showLinks">
<a mat-list-item *ngFor="let link of navLinks" [routerLink]="[link.path]">{{link.title}}</a>
</mat-nav-list>
<ng-content></ng-content>
</main>
| HTML | 4 | tungyingwaltz/components | src/e2e-app/e2e-app/e2e-app-layout.html | [
"MIT"
] |
--
-- This example illustrates how one can create a terminal which inputs and outputs lists of numbers using a simple intTerm
-- The input is terminated by a negative number or zero.
--
%handles:
IntTerm =
Get
Put
Close
IntLTerm =
Get
Put
Close
%cohandles:
... | AMPL | 4 | prashant007/AMPL | myAMPL/src/test7.ampl | [
"MIT"
] |
url: /v1/query
status: 200
response:
- {result: null, result_type: CommandOk}
- {message: success}
- {result: null, result_type: CommandOk}
query:
type: bulk
args:
- type: run_sql
args:
sql: |
create table hge_tests.t ();
- type: track_table
args:
schema: hge_tests
... | YAML | 3 | gh-oss-contributor/graphql-engine-1 | server/tests-py/queries/v1/ddl/drop_no_cols_table.yaml | [
"Apache-2.0",
"MIT"
] |
---
title: This page is bars
tags:
- bars
---
Bars | Liquid | 0 | binyamin/eleventy | test/stubs/issue-115/template-bars.liquid | [
"MIT"
] |
'*********************************************************************
'** (c) 2016-2017 Roku, Inc. All content herein is protected by U.S.
'** copyright and other applicable intellectual property laws and may
'** not be copied without the express permission of Roku, Inc., which
'** reserves all rights. Reuse of any ... | Brightscript | 4 | khangh/samples | advertising/RAF4RSG-sample-master/components/Player.brs | [
"MIT"
] |
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | Shell | 3 | xxdreck/google-research | autoregressive_diffusion/run.sh | [
"Apache-2.0"
] |
/* 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/impl/iostream.cc | [
"Apache-2.0"
] |
/*
* Copyright 2012-2020 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Java | 5 | techAi007/spring-boot | spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/reactive/WelcomePageRouterFunctionFactory.java | [
"Apache-2.0"
] |
class Module {
ruby_aliases: [ '===, 'instance_methods, 'methods, 'to_s, 'constants ]
forwards_unary_ruby_methods
def [constant_name] {
"""
@constant_name Name (@String@) of constant's name.
@return @constant_name's value.
Returns the value of the constant with the given name in @self.
"""
... | Fancy | 5 | bakkdoor/fancy | lib/rbx/module.fy | [
"BSD-3-Clause"
] |
package {
public class TestTwo {
{
trace("//TestTwo class init");
}
function TestTwo() {
trace("//TestTwo constructor");
}
}
}
trace("//TestTwo.as start");
import TestOne;
new TestOne();
trace("//TestTwo.as end"); | ActionScript | 4 | Sprak1/ruffle | tests/tests/swfs/avm2/lazyinit/TestTwo.as | [
"Apache-2.0",
"Unlicense"
] |
C FILE: CALLBACK.F
SUBROUTINE FOO(FUN,R)
EXTERNAL FUN
INTEGER I
REAL*8 R, FUN
Cf2py intent(out) r
R = 0D0
DO I=-5,5
R = R + FUN(I)
ENDDO
END
C END OF FILE CALLBACK.F
| FORTRAN | 3 | iam-abbas/numpy | doc/source/f2py/code/callback.f | [
"BSD-3-Clause"
] |
#: * `--version`, `-v`
#:
#: Print the version numbers of Homebrew, Homebrew/homebrew-core and Homebrew/homebrew-cask (if tapped) to standard output.
# HOMEBREW_CORE_REPOSITORY, HOMEBREW_CASK_REPOSITORY, HOMEBREW_VERSION are set by brew.sh
# shellcheck disable=SC2154
version_string() {
local repo="$1"
if ! [[ -d... | Shell | 4 | ykohata/brew | Library/Homebrew/cmd/--version.sh | [
"BSD-2-Clause"
] |
package io.lattekit.css
import com.google.common.base.CaseFormat
import java.util.List
import java.util.regex.Matcher
import java.util.regex.Pattern
class CssCompiler {
var STRING_RE = Pattern.compile('''^(["'])(?:(?=(\\?))\2.)*?\1$''')
var NUM_RE = Pattern.compile('''^(\d+(?:\.\d+)?)(ms|px|dp|dip|pt|sp|sip|m... | Xtend | 4 | maannajjar/lattek | gradle-plugin/src/main/java/io/lattekit/css/CssCompiler.xtend | [
"Unlicense",
"MIT"
] |
#define TORCH_ASSERT_NO_OPERATORS
#include <ATen/Dispatch.h>
#include <ATen/native/DispatchStub.h>
#include <ATen/native/cuda/Loops.cuh>
#include <ATen/native/TensorIterator.h>
#include <ATen/native/BinaryOps.h>
// NOTE: CUDA on Windows requires that the enclosing function
// of a __device__ lambda not have internal l... | Cuda | 4 | xiaohanhuang/pytorch | aten/src/ATen/native/cuda/BinaryShiftOpsKernels.cu | [
"Intel"
] |
(ns wisp.sequence
(:require [wisp.runtime :refer [nil? vector? fn? number? string? dictionary? set?
key-values str int dec inc min merge dictionary get
iterable? = complement identity list? lazy-seq? identity-set?]]))
(def ^:private -wisp-types (age... | wisp | 5 | rcarmo/wisp | src/sequence.wisp | [
"BSD-3-Clause"
] |
--TEST--
Flexible heredoc syntax error 10: unindented variable interpolation (as first value)
--FILE--
<?php
$var = 'Bar';
var_dump(<<<TEST
$var
TEST);
?>
--EXPECTF--
Parse error: Invalid body indentation level (expecting an indentation level of at least 1) in %s on line %d
| PHP | 3 | thiagooak/php-src | Zend/tests/flexible-heredoc-error10.phpt | [
"PHP-3.01"
] |
/*
* Irresistible Gaming (c) 2018
* Developed by Lorenc
* Module: anticheat/autocbug.pwn
* Purpose: rapid fire detection
*/
/* ** Includes ** */
#include < YSI\y_hooks >
/* ** Definitions ** */
#define AUTOCBUG_TICKS_DEAGLE ( 500 ) // prev 600
#define AUTOCBUG_TICKS_SHOTGUN ( 850 )
#define AUTOCBUG_T... | PAWN | 4 | omcho420/gta-open | gamemodes/core/anti-cheat/autocbug.pwn | [
"Apache-2.0"
] |
some.cname.target
another.cname.target
2606:2800:220:1:248:1893:25c8:1946
| DIGITAL Command Language | 0 | multani/inspec | test/unit/mock/cmd/dig-AAAA-example.com | [
"Apache-2.0"
] |
#!/usr/bin/awk -f
BEGIN {
FS=","
format_string="%s,%s,%s,%s\n"
if (ARGV[1] == "-t") {
format_string="%-30s\t%s\t%13s\t%13s\n"
delete ARGV[1]
}
printf format_string, "function", "count", "tot lat", "self lat"
}
{
if (NR==0) { next }
names[$1] = $1
counts[$1] += 1
fnlat[$1] += $3 / 1000
selflat[$1] += $4 /... | Awk | 4 | nsharma1231/nanos | tools/trace-utilities/summarize-trace.awk | [
"Apache-2.0"
] |
% Using java fragment grammar
include "java.grm"
%keys
% 'x
%end keys
% Redefinitions
% Redifined enum such that it conformed to the same format as other grammar
% components. This is done so that a fragment can be the inner portion of
% an enumeration.
% The body of enum redifined to capture its interanls in a sin... | TXL | 4 | pseudoPixels/SourceFlow | txl_features/txl_features/java/JavaFragmentGrammar.txl | [
"MIT"
] |
#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import math
import torch
from torch.utils.data.distributed import DistributedSampler
c... | Python | 4 | Hacky-DH/pytorch | torch/distributed/elastic/utils/data/elastic_distributed_sampler.py | [
"Intel"
] |
--
-- aPLib compression library - the smaller the better :)
--
-- Ada binding for aplib.a
--
-- Copyright (c) 1998-2009 by Joergen Ibsen / Jibz
-- All Rights Reserved
--
-- http://www.ibsensoftware.com/
--
-- Ada binding by Gautier de Montmollin - gdemont@hotmail.com, gdm@mydiax.ch
--
package aPLib is... | Ada | 4 | nehalem501/gendev | tools/files/applib/contrib/ada/aplib.ads | [
"BSD-3-Clause"
] |
class MyClass extends OtherComponent {
state = {
test: 1
}
constructor() {
test();
}
otherfunction = (a, b = {
default: false
}) => {
more();
}
}
| JavaScript | 3 | Embodimentgeniuslm3/BDB11A0E2DE062D2E39E4C5301B2FE5E | spec/fixtures/indentation/classes.js | [
"MIT"
] |
<?xml version="1.0" encoding="UTF-8"?>
<!-- ******************************************************************* -->
<!-- -->
<!-- © Copyright IBM Corp. 2010, 2011 -->
<!-- ... | XPages | 4 | jesse-gallagher/XPagesExtensionLibrary | extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.controls/src/com/ibm/xsp/extlib/config/raw-extlib-dynamicview.xsp-config | [
"Apache-2.0"
] |
{-# LANGUAGE CPP, RankNTypes, UndecidableInstances, GADTs, TypeSynonymInstances, FlexibleInstances, MultiParamTypeClasses, FlexibleContexts, ScopedTypeVariables #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Graphics.UI.FLTK.LowLevel.TableRow
(
-- * Hierarchy
--
-- $hierarchy
-- * Widget Func... | C2hs Haskell | 5 | ericu/fltkhs | src/Graphics/UI/FLTK/LowLevel/TableRow.chs | [
"MIT"
] |
BEGIN {
FS = " \\| "
printf "Test Name"
}
$1 !~ /\[DB BENCHMARK\]/ { next }
$2 == "Begin" {
testName = $3
next
}
$2 == "End" {
testName = ""
next
}
{
if (substr($2, 1, 1) == ">")
next
item = $2
value = $3
if (!(item in itemMapping)) {
itemMapping[item] ... | Awk | 3 | zhangqushun/wcdb | android/samples/benchmark/summary.awk | [
"Apache-2.0"
] |
// RUN: %target-swift-frontend -emit-ir %s | %FileCheck %s
// rdar://problem/46632723
public struct Foo<T>: Hashable { }
public struct Bar<U, V> {
public subscript<W> (foo: W) -> Int {
return 0
}
// CHECK-LABEL: define {{.*}} @"$s17keypath_subscript3FooVyqd__Gr0__lTh"
// CHECK: call swiftcc %swift.metada... | Swift | 4 | lwhsu/swift | test/IRGen/keypath_subscript.swift | [
"Apache-2.0"
] |
# This file is part of NIT ( http://www.nitlanguage.org ).
#
# Copyright 2013 Alexis Laferrière <alexis.laf@xymus.net>
#
# 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.apach... | Nit | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Nit/drop_privileges.nit | [
"MIT"
] |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pathlib
import subprocess
from dotenv import Dotenv
def get_dotenv(filename='.env'):
return Dotenv(str(pathlib.Path(__file__).parent / filename))
def sh(*args):
proc = subprocess.Popen(args, stdout=subprocess.PIPE)
stdout, _ = proc.communicate()
... | Python | 4 | johndemlon/hacker-scripts | python3/hackerutils.py | [
"WTFPL"
] |
integer paused = 0;
key botID;
default
{
state_entry()
{
//Creates the bot in the sim
botID = botCreateBot("Test", "Bot", "", llGetPos(), BOT_CREATE_DEFAULT);
//Causes the bot to begin following the given avatar.
key avatarToFollow = llGetOwner();
//Contains a list of options that will ch... | LSL | 4 | Asterionworld/ether | doc/bot LSL Functions/Examples/bot Follow Avatar.lsl | [
"BSD-3-Clause"
] |
#include <ATen/native/FunctionOfAMatrixUtils.h>
#include <ATen/native/cuda/Loops.cuh>
#include <ATen/cuda/detail/OffsetCalculator.cuh>
#include <ATen/cuda/Atomic.cuh>
#include <ATen/cuda/CUDAContext.h>
namespace at { namespace native {
namespace {
template <int n_threads, int n_elems_per_thread, typename func_t>
C1... | Cuda | 4 | sanchitintel/pytorch | aten/src/ATen/native/cuda/FunctionOfAMatrixUtilsKernel.cu | [
"Intel"
] |
// Copyright (c) 2011, XMOS Ltd., All rights reserved
// This software is freely distributable under a derivative of the
// University of Illinois/NCSA Open Source License posted in
// LICENSE.txt and at <http://github.xcore.com/>
// SPI master and SPI slave loopback demo
#include <xs1.h>
#include <print.h>
#include ... | XC | 4 | smola/language-dataset | data/github.com/xcore/sc_spi/195c6bb6e82e6fef775a1ecceec872c264341a7b/app_spi_loopback_demo/src/spi_loopback_demo.xc | [
"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.
*
* @flow strict
* @format
*/
// Declarations for functionality exposed by the Hermes VM.
//
// For backwards-compatibility, code ... | JavaScript | 5 | MikeyAlmighty/react-native | flow/HermesInternalType.js | [
"CC-BY-4.0",
"MIT"
] |
#require "hbtest"
#pragma linenumber=on
#include "hbclass.ch"
#stdout "stdout"
#warning "warning"
#define MYCONST 100
#undef MYCONST
#ifdef __HARBOUR__
#else
#endif
#if defined( __HARBOUR__ ) .OR. .T.
#elif defined( __HARBOUR__ )
#endif
THREAD STATIC t_var := "thread"
REQUEST AllTrim
ANNOUNCE my_module
PROCED... | xBase | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/xBase/sample.prg | [
"MIT"
] |
(module
(type $i32_=>_i32 (func (param i32) (result i32)))
(type $i64_=>_i64 (func (param i64) (result i64)))
(type $none_=>_none (func))
(type $i32_i32_i32_i32_=>_none (func (param i32 i32 i32 i32)))
(import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
(global $~lib/memory/__data_end i32 (i... | WebAssembly | 2 | romdotdog/assemblyscript | tests/compiler/std/polyfills.untouched.wat | [
"Apache-2.0"
] |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'package:shared_preferences/shared_prefere... | Dart | 5 | coral-labs/plugins | packages/shared_preferences/shared_preferences/example/integration_test/shared_preferences_test.dart | [
"BSD-3-Clause"
] |
<nav id="search-section" class="section project-section" class="initially-hidden">
<form action="#" method="get" accept-charset="utf-8">
<h3 class="section-header">
<input type="text" name="search" placeholder="Search" id="search-field"
title="Type to search, Up and Down to navigate, Enter to l... | RHTML | 3 | trolldbois/metasploit-framework | lib/gemcache/ruby/1.9.1/gems/rdoc-3.12/lib/rdoc/generator/template/darkfish/_sidebar_search.rhtml | [
"OpenSSL",
"Unlicense"
] |
#include "caffe2/operators/batch_matmul_op.h"
#include "caffe2/core/context_gpu.h"
namespace caffe2 {
template <>
bool BatchMatMulOp<CUDAContext, DefaultEngine>::RunOnDevice() {
return DispatchHelper<TensorTypes<float, at::Half>>::call(this, Input(0));
}
REGISTER_CUDA_OPERATOR(BatchMatMul, BatchMatMulOp<CUDACon... | Cuda | 3 | xiaohanhuang/pytorch | caffe2/operators/batch_matmul_op.cu | [
"Intel"
] |
CREATE TABLE `double` (
`ref` INT NOT NULL,
`pk` DOUBLE NOT NULL PRIMARY KEY
); | SQL | 1 | cuishuang/tidb | br/tests/lightning_various_types/data/vt.double-schema.sql | [
"Apache-2.0"
] |
(*
* 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.
*)
val with_memory_profiling_lwt : profiling:Profiling_js.running -> (unit -> 'a Lwt.t) -> 'a Lwt.t
val with_memory_timer_lwt :
?op... | OCaml | 4 | zhangmaijun/flow | src/services/inference/memory_utils.mli | [
"MIT"
] |
const ExistingNameIgnoreInput = null;
const ExistingNameIgnoreInputComponent = null;
export default () => <div>Anonymous function</div>;
| JavaScript | 2 | blomqma/next.js | packages/next-codemod/transforms/__testfixtures__/name-default-component/existing-name-ignore.input.js | [
"MIT"
] |
%!PS-Adobe-3.0 Resource-Encoding
%%Title: VIM-cp1255
%%Version: 1.0 0
%%EndComments
/VIM-cp1255[
/.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 | 2 | uga-rosa/neovim | runtime/print/cp1255.ps | [
"Vim"
] |
<%--
Copyright 2012 Netflix, 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 agree... | Groovy Server Pages | 3 | michaelneale/asgard | grails-app/views/scalingPolicy/_policyOptions.gsp | [
"Apache-2.0"
] |
.SetupWizard__Step {
display: none;
flex-direction: column;
max-width: 350px;
margin: 2rem auto;
transition: opacity 1s;
opacity: 1;
&--active {
display: flex;
}
&--working {
opacity: 0.5;
}
}
@media (width <= 760px) {
.SetupWizard__Step {
margin: 0 auto;
}
}
| CSS | 2 | subramanir2143/Rocket.Chat | client/views/setupWizard/Step.css | [
"MIT"
] |
{"v":"5.4.3","fr":60,"ip":0,"op":300,"w":1000,"h":1000,"nm":"Comp 1","ddd":0,"assets":[],"fonts":{"list":[{"fName":"GillSans-UltraBold","fFamily":"Gill Sans","fStyle":"UltraBold","ascent":75.49951171875}]},"layers":[{"ddd":0,"ind":1,"ty":5,"nm":"Hello World","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix... | JSON | 1 | liuxinghudiejie/lottie-ios | Example/lottie-swift/TestAnimations/FirstText.json | [
"Apache-2.0"
] |
interface Foo<T> {
x: T;
}
function bar<T>(x: Foo<T> | string): T {
return bar(x);
}
| TypeScript | 3 | nilamjadhav/TypeScript | tests/cases/compiler/recursiveUnionTypeInference.ts | [
"Apache-2.0"
] |
use("ispec")
describe("Struct",
it("should be a lexical block",
Struct should mimic(LexicalBlock)
)
it("should return a new object when called with arguments",
x = Struct(:foo)
x should not be(Origin)
x should not be(LexicalBlock)
x should not be nil
x should not be true
x should no... | Ioke | 5 | olabini/ioke | test/struct_spec.ik | [
"ICU",
"MIT"
] |
import * as _i from "./i.ts";
import * as _j from "./j.ts";
const k = globalThis.value ? _i : _j;
export const i = _i;
export const j = _j;
export const {
a,
} = k;
| TypeScript | 3 | Preta-Crowz/deno | cli/tests/bundle/file_tests-subdir-k.ts | [
"MIT"
] |
/**
* ESP32S3 ROM address table
* Generated for ROM with MD5sum: d20fb231463ce337432b1fa9cba0b3c9
*/
PROVIDE ( ets_update_cpu_frequency = 0x40043164 );
| Linker Script | 3 | DCNick3/esp-idf | components/bootloader/subproject/main/ld/esp32s3/bootloader.rom.ld | [
"Apache-2.0"
] |
// Copyright 2020 The 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... | C++ | 4 | deepneuralmachine/google-research | fair_submodular_maximization_2020/algorithm.cc | [
"Apache-2.0"
] |
/*
* Copyright (c) 2012-2021 Daniele Bartolini et al.
* License: https://github.com/dbartolini/crown/blob/master/LICENSE
*/
using Gdk;
using Gee;
using Gtk;
#if CROWN_PLATFORM_LINUX
extern uint gdk_x11_window_get_xid (Gdk.Window window);
#elif CROWN_PLATFORM_WINDOWS
extern uint gdk_win32_window_get_handle (Gdk.Win... | Vala | 5 | galek/crown | tools/level_editor/editor_view.vala | [
"MIT"
] |
vec3() { this }
vec2() { this }
vertex_location_texture_normal(
location : vec3()
texture : vec2()
normal : vec3()
) { this }
t : vec3()
a : vertex_location_texture_normal(
location : vec3()
texture : t
normal : vec3()
) | Objective-J | 2 | justinmann/sj | tests/function28.sj | [
"Apache-2.0"
] |
#include <c10/util/irange.h>
#include <torch/csrc/jit/codegen/cuda/arith.h>
#include <torch/csrc/jit/codegen/cuda/index_compute.h>
#include <torch/csrc/jit/codegen/cuda/ir_iostream.h>
#include <torch/csrc/jit/codegen/cuda/kernel_ir_builder.h>
#include <torch/csrc/jit/codegen/cuda/lower2device.h>
#include <torch/csrc/ji... | C++ | 5 | abishekvashok/pytorch | torch/csrc/jit/codegen/cuda/lower_index.cpp | [
"Intel"
] |
--TEST--
Bug #69893: Strict comparison between integer and empty string keys crashes
--FILE--
<?php
var_dump([0 => 0] === ["" => 0]);
?>
--EXPECT--
bool(false)
| PHP | 4 | thiagooak/php-src | Zend/tests/bug69893.phpt | [
"PHP-3.01"
] |
// Persistence of Vision Ray Tracer Scene Description File
// Vers: 3.7
// Date: 2018/02/22
// Auth: Zhao Liang mathzhaoliang@gmail.com
/*
=========================================
Make Animations of Rotating 3d Polyhedron
=========================================
*/
#version 3.7;
global_settings { assumed_gamma 2.2... | POV-Ray SDL | 5 | wlbksy/pywonderland | src/polytopes/povray/polyhedra_animation.pov | [
"MIT"
] |
global function InitViewStatsMapsMenu
global function setit
struct
{
var menu
GridMenuData gridData
bool isGridInitialized = false
array<string> allMaps
} file
// Why this file is included in Northstar:
// As it turns out, the Respawn developers in all their infinite wisdom decided to add a check to floats for NaN... | Squirrel | 4 | KanjiuAkuma/NorthstarMods | Northstar.Client/mod/scripts/vscripts/ui/menu_stats_maps.nut | [
"MIT"
] |
<?php
/** @generate-class-entries */
function opcache_reset(): bool {}
/**
* @return array<string, mixed>|false
* @refcount 1
*/
function opcache_get_status(bool $include_scripts = true): array|false {}
function opcache_compile_file(string $filename): bool {}
function opcache_invalidate(string $filename, bool $... | PHP | 4 | NathanFreeman/php-src | ext/opcache/opcache.stub.php | [
"PHP-3.01"
] |
swhkd(5) "github.com/waycrate/swhkd" "File Formats Manual"
# NAME
swhkd - Hotkey daemon inspired by sxhkd written in rust
# VALID MODIFIERS
- Ctrl
- Control
- Super
- Mod4
- Alt
- Mod1
- Shift
# VALID KEYS
- q
- w
- e
- r
- t
- y
- u
- i
- o
- p
- a
- s
- d
- f
- g
- h
- j
- k
- l
- z
-... | SuperCollider | 3 | waycrate/swhkd | swhkd-keys.5.scd | [
"BSD-2-Clause"
] |
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct Uniforms {
half4 N;
half4 I;
half4 NRef;
half4 colorGreen;
half4 colorRed;
};
struct Inputs {
};
struct Outputs {
half4 sk_FragColor [[color(0)]];
};
fragment Outputs fragmentMain(Inputs _in [[stage_in]], constant Unifo... | Metal | 3 | fourgrad/skia | tests/sksl/intrinsics/FaceForward.metal | [
"BSD-3-Clause"
] |
<faces-config>
<faces-config-extension>
<namespace-uri>http://www.openntf.org/xsp/xpt</namespace-uri>
<default-prefix>xpt</default-prefix>
</faces-config-extension>
<component>
<description>XPageAgents Overview and Controll</description>
<display-name>XPageAgentsOverview</display-name>... | XPages | 4 | OpenNTF/XPagesToolk | org.openntf.xpt.agents/src/org/openntf/xpt/agents/config/xpt-agent.xsp-config | [
"Apache-2.0"
] |
FROM functions/alpine:latest
USER root
# Populate example here
ENV fprocess="wc"
USER 1000
CMD ["fwatchdog"]
| Dockerfile | 3 | oswalpalash/faas | sample-functions/WordCountFunction/Dockerfile | [
"MIT"
] |
Dict{String,Any}("title" => Dict{String,Any}("value" => Any[Dict{String,Any}("value" => "Client: \"XXXX\", Job: XXXX","type" => "string"), Dict{String,Any}("value" => "Code: XXXX","type" => "string")],"type" => "array")) | Julia | 2 | vanillajonathan/julia | stdlib/TOML/test/testfiles/valid/array-string-quote-comma.jl | [
"Zlib"
] |
<!-- MDL Spinner Component -->
<div class="mdl-spinner mdl-js-spinner is-active"></div>
| HTML | 1 | greatwqs/staffjoy | frontend/third_party/node/material_design_lite/spinner/snippets/spinner-default.html | [
"MIT"
] |
// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Windows;
using System.Windows.Media.Animation;
using Microsoft.Xaml.Behaviors;
namespace ColorPick... | C# | 5 | tameemzabalawi/PowerToys | src/modules/colorPicker/ColorPickerUI/Behaviors/ResizeBehavior.cs | [
"MIT"
] |
// force-host
// no-prefer-dynamic
#![feature(proc_macro_quote)]
#![crate_type = "proc-macro"]
extern crate proc_macro as proc_macro_renamed; // This does not break `quote!`
use proc_macro_renamed::{TokenStream, quote};
#[proc_macro]
pub fn hello(input: TokenStream) -> TokenStream {
quote!(hello_helper!($input)... | Rust | 4 | Eric-Arellano/rust | src/test/ui/proc-macro/auxiliary/hygiene_example_codegen.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
class_name SymmetryGuide extends Guide
var _texture = preload("res://assets/graphics/dotted_line.png")
func _ready() -> void:
has_focus = false
visible = false
texture = _texture
texture_mode = Line2D.LINE_TEXTURE_TILE
width = Global.camera.zoom.x * 4
yield(get_tree().create_timer(0.01), "timeout")
modulate ... | GDScript | 3 | triptych/Pixelorama | src/UI/Canvas/Rulers/SymmetryGuide.gd | [
"MIT"
] |
/* Copyright (c) 2017-2019 Netronome Systems, Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
;TEST_INIT_EXEC nfp-mem i32.ctm:0x80 0x01020304 0x05060708 0x090a0b0c 0x0d0e0f10
;TEST_INIT_EXEC nfp-mem i32.ctm:0x90 0x11121314 0x15161718 0x191a1b1c 0x1d1e1f20
;TEST_INIT_EXEC nfp-mem i32.ctm:0xa... | UnrealScript | 1 | pcasconnetronome/nic-firmware | test/datapath/pkt_inc_pat_256B_x80.uc | [
"BSD-2-Clause"
] |
Simple testing support
'use strict'
define [], ->
strFunc = (str)->
if typeof str == 'function' then str
else -> str
assert = (errStr, bool)-> if !bool then throw new Error strFunc(errStr)()
assertEq = (errStr, a, b)-> assert (-> strFunc(errStr)(a, b)), _.isEqual a, b
{... | Literate CoffeeScript | 3 | zot/Leisure | src/testing.litcoffee | [
"Zlib"
] |
t app appmode photo
t app test vin_rotate 270
sleep 5
t app button shutter PR
d:\autoexec.ash
REBOOT yes
| AGS Script | 0 | waltersgrey/autoexechack | rotation/panorama/270/autoexec.ash | [
"MIT"
] |
$! File: build_libcurl_pc.com
$!
$! $Id:$
$!
$! Build the curl-config file from the config_curl.in file
$!
$! Copyright 2013, John Malmberg
$!
$! Permission to use, copy, modify, and/or distribute this software for any
$! purpose with or without fee is hereby granted, provided that the above
$! copyright notice and thi... | DIGITAL Command Language | 4 | YahooArchive/ygloo-external-curl | packages/vms/build_curl-config_script.com | [
"curl"
] |
; CLW file contains information for the MFC ClassWizard
[General Info]
Version=1
LastClass=CMfcguiDlg
LastTemplate=CDialog
NewFileInclude1=#include "stdafx.h"
NewFileInclude2=#include "mfcgui.h"
ClassCount=3
Class1=CMfcguiApp
Class2=CMfcguiDlg
Class3=CAboutDlg
ResourceCount=3
Resource1=IDD_ABOUTBOX
R... | Clarion | 1 | dendisuhubdy/grokmachine | Rootkits/vault/vipinkumar/bootkitprivilege/privilege escalation code/driver loader/mfcgui.clw | [
"BSD-3-Clause"
] |
an escaped mustache:
\{{my-component}}
a non-escaped mustache:
\\{{my-component}}
another non-escaped mustache:
\\\{{my-component}}
| Handlebars | 2 | tumido/prettier | tests/format/handlebars/mustache-statement/escaped.hbs | [
"MIT"
] |
Hello there,
Mr. <%= @recipient %>. Be greeted, new member!
| HTML+ERB | 2 | mdesantis/rails | actionmailer/test/fixtures/i18n_test_mailer/mail_with_i18n_subject.erb | [
"MIT"
] |
ruleset io.picolabs.manifold_pico {
meta {
use module io.picolabs.wrangler alias wrangler
use module io.picolabs.subscription alias subscription
shares __testing, getManifoldInfo, isAChild, getThings
provides __testing, getManifoldInfo, getThings
}//end meta
global {
__testing =
{ "queri... | KRL | 5 | Picolab/ManifoldRewrite | Manifold_krl/io.picolabs.manifold_pico.krl | [
"MIT"
] |
--TEST--
Internal enums
--EXTENSIONS--
zend_test
--FILE--
<?php
var_dump($bar = ZendTestUnitEnum::Bar);
var_dump($bar === ZendTestUnitEnum::Bar);
var_dump($bar instanceof UnitEnum);
var_dump($foo = zend_get_unit_enum());
var_dump($foo === ZendTestUnitEnum::Foo);
var_dump(ZendTestUnitEnum::cases());
echo "\n";
var_d... | PHP | 4 | NathanFreeman/php-src | Zend/tests/enum/internal_enums.phpt | [
"PHP-3.01"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.