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 |
|---|---|---|---|---|---|
<GameFile>
<PropertyGroup Name="BilliardsCommonLayer" Type="Layer" ID="16eba4df-e51c-460a-9796-a51c8dae096d" Version="3.10.0.0" />
<Content ctype="GameProjectContent">
<Content>
<Animation Duration="0" Speed="1.0000" />
<ObjectData Name="Layer" Tag="71" ctype="GameLayerObjectData">
<Size X="... | Csound | 4 | zhake911/zhuoqiuStudio | CocosStudio/cocosstudio/UI/Billiards/BilliardsCommonLayer.csd | [
"Apache-2.0"
] |
/*
* 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.
*/
#pragma once
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <cstdlib>
#include <f... | C | 4 | Hacky-DH/pytorch | aten/src/ATen/native/quantized/cpu/qnnpack/test/fully-connected-operator-tester.h | [
"Intel"
] |
/****************************************************************************
*
* (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
***************************************... | QML | 3 | vincentdavoust/qgroundcontrol | src/FactSystem/FactControls/AltitudeFactTextField.qml | [
"Apache-2.0"
] |
{% extends "@email/zurb_2/notification/body.txt.twig" %}
| Twig | 0 | simonberger/symfony | src/Symfony/Bridge/Twig/Resources/views/Email/default/notification/body.txt.twig | [
"MIT"
] |
from __future__ import unicode_literals
from .common import InfoExtractor
from ..compat import compat_urlparse
from ..utils import (
int_or_none,
js_to_json,
remove_end,
unified_strdate,
)
class VidbitIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?vidbit\.co/(?:watch|embed)\?.*?\bv=(?P<id>[... | Python | 5 | hackarada/youtube-dl | youtube_dl/extractor/vidbit.py | [
"Unlicense"
] |
-- A test suite for NOT IN GROUP BY in parent side, subquery, and both predicate subquery
-- It includes correlated cases.
-- Test aggregate operator with codegen on and off.
--CONFIG_DIM1 spark.sql.codegen.wholeStage=true
--CONFIG_DIM1 spark.sql.codegen.wholeStage=false,spark.sql.codegen.factoryMode=CODEGEN_ONLY
--CO... | SQL | 4 | OlegPt/spark | sql/core/src/test/resources/sql-tests/inputs/subquery/in-subquery/not-in-group-by.sql | [
"Apache-2.0"
] |
#------------------------------------------------------------
~VERSION INFORMATION
VERS. 2.0 :CWLS LOG ASCII STANDARD - VERSION 2.0
WRAP. NO :ONE LINE PER DEPTH STEP
#------------------------------------------------------------
~WELL INFORMATION
STRT.M 0.0500000 :FIRST INDEX VALUE... | Lasso | 2 | tui95/lasio | tests/examples/6038187_v1.2_short.las | [
"MIT"
] |
/*
* Copyright (c) 2009 Johns Hopkins University.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* - Redistributions of source code must retain the above copyright
* notice, this list... | nesC | 4 | mtaghiza/tinyos-main-1 | tos/chips/cortex/m3/sam3/u/twi/Sam3uTwiPDCP.nc | [
"BSD-3-Clause"
] |
frequency,raw
20.00,-14.50
20.20,-14.77
20.40,-15.05
20.61,-15.32
20.81,-15.59
21.02,-15.85
21.23,-15.95
21.44,-16.05
21.66,-16.15
21.87,-16.25
22.09,-16.29
22.31,-16.25
22.54,-16.21
22.76,-16.17
22.99,-16.13
23.22,-16.04
23.45,-15.95
23.69,-15.85
23.92,-15.76
24.16,-15.64
24.40,-15.52
24.65,-15.39
24.89,-15.26
25.14,-... | CSV | 2 | vinzmc/AutoEq | measurements/headphonecom/data/onear/Ultrasone HFI-450/Ultrasone HFI-450.csv | [
"MIT"
] |
<GameProjectFile>
<PropertyGroup Type="Scene" Name="CustomWidgetCallbackBindTest" ID="5bc191c9-9426-4259-a170-43d7b3621874" Version="2.1.0.0" />
<Content ctype="GameProjectContent">
<Content>
<Animation Duration="0" Speed="1.0000" />
<ObjectData Name="Scene" FrameEvent="" CustomClassName="CustomRoot... | Csound | 3 | dum999/CocosStudioSamples | CocosStudioProjects/CustomWidgetCallbackBindTest/cocosstudio/CustomWidgetCallbackBindTest.csd | [
"MIT"
] |
const path = require('canonical-path');
exports.EXAMPLES_BASE_PATH = path.resolve(__dirname, '../../content/examples');
exports.EXAMPLE_CONFIG_FILENAME = 'example-config.json';
exports.SHARED_PATH = path.resolve(__dirname, 'shared');
exports.STACKBLITZ_CONFIG_FILENAME = 'stackblitz.json';
| JavaScript | 3 | raghavendramohan/angular | aio/tools/examples/constants.js | [
"MIT"
] |
# Copyright 2017 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | Python | 4 | samotarnik/grpc | src/python/grpcio_testing/grpc_testing/_channel/_invocation.py | [
"Apache-2.0"
] |
CREATE TABLE `tb_zsvasnztbf` (
`col_vqskztkwqb` blob(2179715620),
`col_xrutymggiq` text CHARACTER SET latin1,
`col_rjrhithgjd` varbinary(93) NOT NULL,
PRIMARY KEY (`col_rjrhithgjd`(23)),
UNIQUE `uk_qcuhitxxlz` (`col_rjrhithgjd`(12))
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `tb_joibqmiluh` (
`col... | SQL | 1 | yuanweikang2020/canal | parse/src/test/resources/ddl/alter/test_60.sql | [
"Apache-2.0"
] |
module SideBar.State exposing (SideBarState, decodeSideBarState, encodeSideBarState)
import Json.Decode
import Json.Decode.Extra exposing (andMap)
import Json.Encode
type alias SideBarState =
{ isOpen : Bool
, width : Float
}
encodeSideBarState : SideBarState -> Json.Encode.Value
encodeSideBarState sta... | Elm | 4 | Caprowni/concourse | web/elm/src/SideBar/State.elm | [
"Apache-2.0"
] |
static const q15_t in_val_decim[4140] = {
0x622A, 0xA3B0, 0x7FFF, 0xEE6A, 0x0017, 0x1920, 0x2D7A, 0x0668,
0x55AA, 0x7FFF, 0x0EF3, 0xE9A6, 0x0D34, 0x0416, 0x3691, 0x5F63,
0x8646, 0x216F, 0x7FFF, 0x1F5D, 0xFBE8, 0xF12F, 0xDC75, 0x01D3,
0x145C, 0x8000, 0xCF37, 0x2073, 0xFF9A, 0x160B, 0x8D76, 0xEB7A,
0x... | Max | 2 | Trifunik/zephyr | tests/lib/cmsis_dsp/filtering/src/decim_q15.pat | [
"Apache-2.0"
] |
~Version Information Block
VERS. 2.00: CWLS LOG ASCII STANDARD - VERSION 2.000000
WRAP. NO: One Line Per Depth Step
#
~Well Information Block
#MNEM.UNIT Data Information
#---------- ------------------------------------------ -----... | Lasso | 3 | tui95/lasio | tests/examples/null_policy_ind.las | [
"MIT"
] |
// compile-flags: --json=artifacts --error-format=short
fn main() {}
| Rust | 1 | Eric-Arellano/rust | src/test/ui/json-and-error-format.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
"""The DLNA Digital Media Server integration.
A single config entry is used, with SSDP discovery for media servers. Each
server is wrapped in a DmsEntity, and the server's USN is used as the unique_id.
"""
from __future__ import annotations
from homeassistant.config_entries import ConfigEntry
from homeassistant.core ... | Python | 4 | MrDelik/core | homeassistant/components/dlna_dms/__init__.py | [
"Apache-2.0"
] |
ruleset io.picolabs.community_thing {
meta {
use module io.picolabs.subscription alias subscription
shares __testing, communities, actions, listeners
provides actions, listeners
}
global {
__testing = { "queries":
[ { "name": "__testing" }
, { "name": "communities" }
, { "name": ... | KRL | 4 | Picolab/ManifoldRewrite | Manifold_krl/io.picolabs.community_thing.krl | [
"MIT"
] |
package com.baeldung.axon;
import org.axonframework.eventsourcing.EventCountSnapshotTriggerDefinition;
import org.axonframework.eventsourcing.SnapshotTriggerDefinition;
import org.axonframework.eventsourcing.Snapshotter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.anno... | Java | 4 | DBatOWL/tutorials | axon/src/main/java/com/baeldung/axon/OrderApplicationConfiguration.java | [
"MIT"
] |
sub samesite {
# See list here:
# https://www.chromium.org/updates/same-site/incompatible-clients
unset req.http.X-UA-SameSiteNone;
set req.http.X-UA-SameSiteNone = "supported";
# Versions of Chrome from Chrome 51 to Chrome 66 (inclusive on both ends). These Chrome versions will... | VCL | 4 | cantoute/varnish-devicedetect | samesite.vcl | [
"BSD-2-Clause"
] |
{-# OPTIONS --cubical --safe #-}
open import Agda.Builtin.Cubical.Path
open import Agda.Primitive
private
variable
a : Level
A B : Set a
Is-proposition : Set a → Set a
Is-proposition A = (x y : A) → x ≡ y
data ∥_∥ (A : Set a) : Set a where
∣_∣ : A → ∥ A ∥
@0 trivial : Is-proposition ∥ A ∥
re... | Agda | 4 | cagix/agda | test/Succeed/Issue4638-Cubical.agda | [
"BSD-2-Clause"
] |
import { constants } from './example'
export default function getConstants() {
return constants;
}
| JavaScript | 3 | 1shenxi/webpack | test/cases/side-effects/missing-module-7499/lazy.js | [
"MIT"
] |
FROM node:12-alpine
LABEL description="Alpine image to build Nativefier apps"
# Install dependencies and cleanup extraneous files
RUN apk update \
&& apk add bash wine imagemagick dos2unix \
&& rm -rf /var/cache/apk/* \
&& mkdir /nativefier && chown node:node /nativefier
# Use node (1000) as default user... | Dockerfile | 5 | ReazerDev/nativefier | Dockerfile | [
"MIT"
] |
MEMORY
{
FLASH_TEXT (rw) : ORIGIN = 0x00000000+0x2000, LENGTH = 0x00040000-0x2000 /* First 8KB used by bootloader */
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 0x00008000
}
_stack_size = 2K;
INCLUDE "targets/arm.ld"
| Linker Script | 4 | ybkimm/tinygo | targets/atsamd21.ld | [
"Apache-2.0"
] |
Released DGJ*1*3 SEQ #3
Extracted from mail message
**KIDS**:DGJ*1.0*3^
**INSTALL NAME**
DGJ*1.0*3
"BLD",5705,0)
DGJ*1.0*3^INCOMPLETE RECORDS TRACKING^0^3041025^y
"BLD",5705,1,0)
^^2^2^3040823^^
"BLD",5705,1,1,0)
DISABLE COREFLS SOFTWARE. Remove variable pointer to #392.31 in
"BLD",5705,1,2,0)
TRANSCRIBED BY (#10.04... | Genshi | 4 | josephsnyder/VistA-1 | Packages/Incomplete Records Tracking/Patches/DGJ_1.0_3/DGJ-1_SEQ-3_PAT-3.kid | [
"Apache-2.0"
] |
module Main (main) where
import Test.DocTest (doctest)
import Protolude
main :: IO ()
main =
doctest
[ "-XOverloadedStrings"
, "-XNoImplicitPrelude"
, "-XStandaloneDeriving"
, "-isrc"
, "src/PostgREST/Request/Preferences.hs"
, "src/PostgREST/Request/QueryParams.hs"
]
| Haskell | 3 | fairhopeweb/postgrest | test/doc/Main.hs | [
"MIT"
] |
import "EDB"
static class EDBMemoryDataSource : DataSourceDriver
{
class_property(name) = "MemoryEDB";
Database OpenDatabase(const String name, CreateOptions createOptions, DataSource ds)
{
return EDBDatabase { path = null, archive = ArchiveOpen(null, ArchiveOpenFlags { true }) };
}
}
| eC | 4 | N-eil/ecere-sdk | eda/libeda/src/MemoryEDB.ec | [
"BSD-3-Clause"
] |
[[getting-started.introducing-spring-boot]]
== Introducing Spring Boot
Spring Boot helps you to create stand-alone, production-grade Spring-based applications that you can run.
We take an opinionated view of the Spring platform and third-party libraries, so that you can get started with minimum fuss.
Most Spring Boot a... | AsciiDoc | 3 | techAi007/spring-boot | spring-boot-project/spring-boot-docs/src/docs/asciidoc/getting-started/introducing-spring-boot.adoc | [
"Apache-2.0"
] |
init();
function putObject(): void {
}
| Tea | 1 | peze/darabonba | test/fixtures/import_by_tea/libraries/alibabacloud-OSS-0.0.1/oss.tea | [
"Apache-2.0"
] |
FORMAT: 1A
# Images API
## Resource [/image.png]
### Send an Image [PUT]
+ Request (image/png)
+ Response 200 (application/json; charset=utf-8)
+ Body
{"test": "OK"}
| API Blueprint | 3 | tomoyamachi/dredd | packages/dredd/test/fixtures/request/image-png.apib | [
"MIT"
] |
import os/ShellUtils
file := ShellUtils findExecutable("autoconf")
match file {
case null => "autoconf not found!"
case => "found: %s" format(file path)
} println()
| ooc | 3 | shamanas/rock | test/sdk/os/shell.ooc | [
"MIT"
] |
package com.baeldung.database;
public class DataConnection {
public static String temp(){
return "secondary source directory";
}
}
| Java | 2 | DBatOWL/tutorials | maven-modules/maven-builder-plugin/src/main/newsrc/com/baeldung/database/DataConnection.java | [
"MIT"
] |
echo( "Random Vector: ",rands(5,15,4,42));
echo( "abs: ",abs(-9));
echo( "sign: ",sign(9));
echo( "sign: ",sign(-9));
echo( "cos: ",cos(9));
echo( "sin: ",sin(9));
echo( "tan: ",tan(9));
echo( "acos: ",acos(0.1));
echo( "asin: ",asin(0.1));
echo( "atan: ",atan(9));
echo( "atan2: ",atan2(1,2));
echo( "min: ",min(1,2));... | OpenSCAD | 3 | heristhesiya/OpenJSCAD.org | packages/io/scad-deserializer/tests/math_ops.scad | [
"MIT"
] |
<div class="section">
<h2>Application Features</h2>
<div>
View key characteristics organized by Feature Groups. <b>Click any active icon</b> below or expand a feature group to view
additional details. A disabled icon indicates a 'not found' status. Click a Rule name on the right to view
where a spe... | Liquid | 3 | szlatkow/ApplicationInspector | AppInspector.CLI/html/partials/_report_profile.liquid | [
"MIT"
] |
--TEST--
Bug #65003 (Wrong date diff)
--FILE--
<?php
date_default_timezone_set("Europe/Moscow");
$datetime1 = new DateTime('13-03-01');
$datetime2 = new DateTime('13-04-01');
$datetime3 = new DateTime('13-03-02');
$datetime4 = new DateTime('13-04-02');
$interval = $datetime2->diff($datetime1);
echo $interval->format... | PHP | 4 | NathanFreeman/php-src | ext/date/tests/bug65003.phpt | [
"PHP-3.01"
] |
/*
* Copyright 2002-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 | ZiaYang/spring-framework | spring-test/src/test/java/org/springframework/test/context/support/DynamicValuesPropertySourceTests.java | [
"Apache-2.0"
] |
.brackets-config-central
{
background-color: bisque;
}
.brackets-config-central input[type="text"]
{
width: 1em;
}
.brackets-config-central .config-options
{
margin: 2em;
}
| CSS | 4 | ravitejavalluri/brackets | src/extensions/samples/BracketsConfigCentral/styles/styles.css | [
"MIT"
] |
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.... | SVG | 2 | ansky/gitea | docs/static/cloudron.svg | [
"MIT"
] |
should = require 'chai'.should()
fs = require 'fs'
spawn = require 'child_process'.spawn
crypto = require 'crypto'
pogoBinary () =
__dirname + "/../../bin/pogo"
filenameFor (script) =
hash = crypto.createHash 'sha1'
hash.update (script)
hash.digest 'hex' + '.pogo'
chomp (s) =
s.toString ().replace r/\n$/ '... | PogoScript | 4 | featurist/pogoscript | test/shell/pogoAssertions.pogo | [
"BSD-2-Clause"
] |
insert into t (id) values
(1000), (1001), (1002), (1003), (1004), (1005), (1006), (1007), (1008), (1009),
(1010), (1011), (1012), (1013), (1014), (1015), (1016), (1017), (1018), (1019),
(1020), (1021), (1022), (1023), (1024), (1025), (1026), (1027), (1028), (1029),
(1030), (1031), (1032), (1033), (1034), (1035), (1036)... | SQL | 3 | cuishuang/tidb | br/tests/lightning_disk_quota/data/disk_quota.t.2.sql | [
"Apache-2.0"
] |
\* ------------------------------------------------------------------- *\
\* @author Sebastian Borrazas *\
\* @copyright (C) 2018, Sebastian Borrazas *\
\* ------------------------------------------------------------------- *\
(do (cd "test/shen")
... | Shen | 3 | ilya-klyuchnikov/shen-erl | scripts/run-shen-tests.shen | [
"BSD-3-Clause"
] |
# 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="
aho-corasick-0.6.8
ansi_term-0.11.0
atty-0.2.11
backtrace-0.3.9
backtrace-sys-0.1.24
base64-0.9.2
bindgen-0.39.0
bitflags-1.0.4
byteorder-1.2.6
cargo-0.27.... | Gentoo Ebuild | 2 | gentoo/gentoo-rust | dev-embedded/dinghy-test/dinghy-test-0.3.5.ebuild | [
"BSD-3-Clause"
] |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This file is part of Logtalk <https://logtalk.org/>
% Copyright (c) 2010, Victor Lagerkvist
% SPDX-License-Identifier: BSD-3-Clause
%
% Redistribution and use in source and binary forms, with or without
% modification, are permitted pr... | Logtalk | 3 | PaulBrownMagic/logtalk3 | contributions/verdi_neruda/loader.lgt | [
"Apache-2.0"
] |
[[auto-configuration-classes.actuator]]
== spring-boot-actuator-autoconfigure
The following auto-configuration classes are from the `spring-boot-actuator-autoconfigure` module:
include::documented-auto-configuration-classes/spring-boot-actuator-autoconfigure.adoc[]
| AsciiDoc | 1 | techAi007/spring-boot | spring-boot-project/spring-boot-docs/src/docs/asciidoc/auto-configuration-classes/actuator.adoc | [
"Apache-2.0"
] |
import { FloatNode } from '../inputs/FloatNode.js';
import { NodeLib } from '../core/NodeLib.js';
class TimerNode extends FloatNode {
constructor( scale, scope, timeScale ) {
super();
this.scale = scale !== undefined ? scale : 1;
this.scope = scope || TimerNode.GLOBAL;
this.timeScale = timeScale !== undef... | JavaScript | 4 | brunnacroches/portifolio-brunna | node_modules/three/examples/jsm/nodes/utils/TimerNode.js | [
"Unlicense"
] |
grammar t058rewriteAST43;
options {language=JavaScript;output=AST;}
a : modifier? type ID (',' ID)* ';' -> ^(type modifier? ID)+ ;
type : 'int' ;
modifier : 'public' ;
ID : 'a'..'z'+ ;
WS : (' '|'\n') {$channel=HIDDEN;} ; | G-code | 3 | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | java/java2py/antlr-3.1.3/runtime/JavaScript/tests/functional/t058rewriteAST43.g | [
"Apache-2.0"
] |
// Copyright (c) 2019 Slack Technologies, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/browser/event_emitter_mixin.h"
#include "gin/public/wrapper_info.h"
#include "shell/browser/api/electron_api_event_emitter.h"
namespace gin_helper {
name... | C++ | 3 | lingxiao-Zhu/electron | shell/browser/event_emitter_mixin.cc | [
"MIT"
] |
int main()
{
write("*** color ***\n");
write(" RED = " + .example.RED + "\n");
write(" BLUE = " + .example.BLUE + "\n");
write(" GREEN = " + .example.GREEN + "\n");
write("\n*** Foo::speed ***\n");
write(" Foo_IMPULSE = " + .example.Foo.IMPULSE + "\n");
write(" Foo_WA... | Pike | 3 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/pike/enum/runme.pike | [
"BSD-3-Clause"
] |
"* The Computer Language Benchmarks Game
http://benchmarksgame.alioth.debian.org/
contributed by Paolo Bonzini
modified by Andres Valloud *"!
Stream subclass: #PiDigitSpigot
instanceVariableNames: 'numer accum denom k'
classVariableNames: ''
poolDictionaries: ''
category: 'Shootout'!
!PiD... | Gosu | 5 | danglotb/Energy-Languages | Smalltalk/pidigits/pidigits4.gst | [
"MIT"
] |
import "std/test"
test.run("Check equality of raw and escaped strings", fn(assert) {
const str1 = 'Hello,
World!'
const str2 = "Hello,\nWorld!"
assert.isEq(str1, str2)
})
test.run("Check changing string index", fn(assert) {
const str1 = "Hello, world!"
const expected = "Hello, World!"
str1[7] = "W"
assert.is... | Inform 7 | 4 | lfkeitel/nitrogen | tests/basic/strings.ni | [
"BSD-3-Clause"
] |
@-ms-viewport { width: 100vw } | CSS | 0 | vjpr/swc | css/parser/tests/fixture/esbuild/misc/ugX8SLCLRvWN-wDCK7ouyA/input.css | [
"Apache-2.0",
"MIT"
] |
ruleset temp_acct {
meta {
shares __testing, method, code
}
global {
__testing = { "queries": [ { "name": "__testing" } ],
"events": [ ] }
method = function() {
ent:method || "password"
}
code = function() {
ent:code || "code words expired"
}
passwordOK = ... | KRL | 5 | farskipper/node-pico-engine | temp/temp_acct.krl | [
"MIT"
] |
from torch.testing._internal.common_utils import TestCase
import importlib
from typing import List
class AOMigrationTestCase(TestCase):
def _test_package_import(self, package_name: str):
r"""Tests the module import by making sure that all the internals match
(except the dunder methods)."""
... | Python | 4 | xiaohanhuang/pytorch | test/quantization/ao_migration/common.py | [
"Intel"
] |
size: 1024px 512px;
dpi: 96;
grid {
tick-placement-x: linear(1);
limit-x-min: 0;
limit-x-max: 16;
}
| CLIPS | 1 | asmuth-archive/travistest | test/plot-grid/gridlines_basic.clp | [
"Apache-2.0"
] |
such foo
amaze plz bar
wow | Dogescript | 0 | erinkeith/dogescript | test/spec/amaze/function-call/source.djs | [
"MIT"
] |
#!/usr/bin/env bash
# Copyright 2015 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Shell | 3 | columbus9963/kubernetes | test/images/volume/rbd/ceph.conf.sh | [
"Apache-2.0"
] |
$TTL 36000
example.com. IN SOA ns1.example.com. hostmaster.example.com. (
2005081201 ; serial
28800 ; refresh (8 hours)
1800 ; retry (30 mins)
2592000 ; expire (30 days)
86400 ) ; minimum (1 day)
example.com. 86400 NS ... | DIGITAL Command Language | 3 | tgragnato/geneva | tests/DNS/zones/example.com | [
"BSD-3-Clause"
] |
= Allow only email authentication
When using the email authentication feature, you can avoid other authentication
mechanisms entirely as follows:
plugin :rodauth do
enable :login, :email_auth, :create_account, :verify_account
create_account_set_password? false
verify_account_set_password? false
for... | RDoc | 3 | BearerPipelineTest/rodauth | doc/guides/email_only.rdoc | [
"MIT"
] |
/*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... | Smarty | 0 | mjlorenzo305/deeplearning4j | libnd4j/include/ops/declarable/generic/broadcastable/template.tpl | [
"Apache-2.0"
] |
{
var myString = "1234";
var myInt: int;
myInt = myString: int;
myInt = myInt + 1;
myString = myInt: string;
writeln(myInt);
writeln(myString);
}
{
var myString = "1234";
myString = ((myString: int) + 1): string;
writeln(myString);
}
| Chapel | 3 | jhh67/chapel | test/release/examples/users-guide/base/casting.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
#include "protheus.ch"
#include "WesleySafadao.ch"
Function Main
Return WesleySafadao( 4, 12, 96 )
| xBase | 1 | mabrasil/safadometro | advpl/WesleySafadaoTest.prw | [
"MIT"
] |
D:/gitee/tmp/tinyriscv/tests/riscv-compliance/build_generated/rv32Zicsr/I-CSRRS-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6... | ObjDump | 3 | DuBirdFly/TinyRISCV_Learn | tests/riscv-compliance/build_generated/rv32Zicsr/I-CSRRS-01.elf.objdump | [
"Apache-2.0"
] |
// Generated by ffigen 0.2.0
// Platform: Windows
// Target: 64-bit
:CXError_Success int = 0
:CXError_Failure int = 1
:CXError_Crashed int = 2
:CXError_InvalidArguments int = 3
:CXError_ASTReadError int = 4
CXErrorCode enum #Flags {
CXError_Success = 0_u
CXError_Failure = 1_u
CXError_Crashed = 2_u
CXError_InvalidAr... | mupad | 2 | jturner/muon | ffigen/libclang_windows.mu | [
"MIT"
] |
{:games
[{:id "1234"
:name "Zertz"
:summary "Two player abstract with forced moves and shrinking board"
:min_players 2
:max_players 2
}
{:id "1235"
:name "Dominion"
:summary "Created the deck-building genre; zillions of expansions"
:min_players 2}
{:id "1236"
:name "Tiny Epic Galaxies"
... | edn | 3 | hagenek/lacinia | docs/_examples/tutorial/cgg-data-1.edn | [
"Apache-2.0"
] |
:root {
--color-primary: red;
--color-primary: red;
--color-secondary: green;
--color-primary: blue;
--color-header: gray;
}
| CSS | 2 | noomorph/docusaurus | packages/docusaurus-cssnano-preset/src/remove-overridden-custom-properties/__tests__/fixtures/normal.css | [
"CC-BY-4.0",
"MIT"
] |
%%% Generated by music-score %%%
\include "lilypond-book-preamble.ly"
\paper {
#(define dump-extents #t)
indent = 0\mm
line-width = 210\mm - 2.0 * 0.4\in
ragged-right = ##t
force-assignment = #""
line-width = #(- line-width (* mm 3.000000))
}
\header {
title = ""
composer = ""
}
\layout {
}
<<
\n... | LilyPond | 3 | jmorag/music-suite | test/legacy-music-files/golden/melody_chords.ly | [
"BSD-3-Clause"
] |
Parse error: base reference of function call must be an id_expr, but got: (index-expr) at [8:6..10]
At: "bad-loop-01.hac":8:
parse error: syntax error
parser stacks:
state value
#STATE# (null)
#STATE# list<(root_item)>: (instance-decl) ... [6:1--7:8]
#STATE# ( [8:1]
#STATE# ; [8:2]
#STATE# identifier: i [8:3]
#STATE# ... | Bison | 1 | broken-wheel/hacktist | hackt_docker/hackt/test/parser/flow/bad-loop-01.stderr.bison | [
"MIT"
] |
0,D7FF
E000,10FFFF
| Component Pascal | 0 | janosch-x/character_set | lib/character_set/predefined_sets/unicode.cps | [
"MIT"
] |
<!DOCTYPE HTML>
<html xmlns:ng="http://angularjs.org" wiki:ng="http://angularjs.org">
<head>
<meta charset="utf-8">
<meta http-equiv="expires" content="0">
<title><AngularJS/> Docs Scenario Runner</title>
<script type="text/javascript" src="../../build/angular-scenario.js" ng:autotest></script>
<script ... | HTML | 1 | skylarkfw/skylark-angular2 | original/angular.js-1.7.5/i18n/e2e/runner.html | [
"MIT"
] |
0
<%= 12 %>
34
| HTML+EEX | 0 | keyno63/intellij-elixir | testData/org/elixir_lang/eex/psi/parser/test/EExTokenizerTestTrimModeWithCRLF.eex | [
"Apache-2.0"
] |
{:deps
{org.clojure/clojure {:mvn/version "1.10.1"}
org.clojure/clojurescript {:mvn/version "1.10.520"}
org.clojure/test.check {:mvn/version "0.10.0-alpha4"}
org.clojure/tools.reader {:mvn/version "1.3.2"
:exclusions [org.clojure/clojure org.clojure/clojurescript]}
com... | edn | 2 | collinwright/nixpkgs | pkgs/development/interpreters/clojurescript/lumo/deps.edn | [
"MIT"
] |
/* hide the outline for the HotKeys component */
div[tabindex='-1']:focus {
outline: none;
}
| CSS | 2 | fcastillo-serempre/freeCodeCamp | client/src/templates/Challenges/components/hotkeys.css | [
"BSD-3-Clause"
] |
--TEST--
Error suppression should have no impact on uncaught exceptions
--FILE--
<?php
function abc() {
throw new Error('Example Exception');
}
@abc();
?>
--EXPECTF--
Fatal error: Uncaught Error: Example Exception in %s:%d
Stack trace:
#0 %s(%d): abc()
#1 {main}
thrown in %s on line %d
| PHP | 3 | thiagooak/php-src | Zend/tests/uncaught_exception_error_supression.phpt | [
"PHP-3.01"
] |
<div class="p-3 max-h-14 flex align-center justify-between border">
<span class="truncate flex-grow">
<input
class="cursor-pointer mr-2"
(change)="toggleComplete.emit()"
type="checkbox"
[checked]="todo?.is_complete"
/>
<span [ngClass]="{ 'line-through': todo?.is_complete }" class="... | HTML | 3 | ProPiloty/supabase | examples/angular-todo-list/src/app/components/todo-item/todo-item.component.html | [
"Apache-2.0"
] |
diff -ur source/config/mh-serenity source.serenity/config/mh-serenity
--- source/config/mh-serenity 1970-01-01 01:00:00.000000000 +0100
+++ source.serenity/config/mh-serenity 2021-04-11 09:20:23.857575570 +0200
@@ -0,0 +1,87 @@
+## -*-makefile-*-
+## Copyright (C) 2016 and later: Unicode, Inc. and others.
+## License &... | Diff | 3 | r00ster91/serenity | Ports/libicu/patches/icu.patch | [
"BSD-2-Clause"
] |
%%{
machine CharacterClasses;
alphtype unsigned char;
#############################################
# Named Characters
cc_zero = 0x00; # (EOF) [\0]
cc_tab = 0x09; # [\t]
cc_linefeed = 0x0A; # [\n]
cc_carriagereturn = 0x0D; # [\r]
cc_space = 0x20; # [ ]
cc_quotationmark = 0x22; # ["]
cc_numbersign = 0x23; # [#]
cc_do... | Ragel in Ruby Host | 5 | ZhekehZ/catboost | library/tokenizer/charclasses_8.rl | [
"Apache-2.0"
] |
15 metro
0.3 maygate
1000 0.1 sine *
| SourcePawn | 0 | aleatoricforest/Sporth | examples/maygate.sp | [
"MIT"
] |
#version 100
precision mediump float;
precision highp int;
varying highp float vIndexF;
void main()
{
int vIndex = int(vIndexF);
highp vec4 v = vec4(0.0);
for (int spvDummy21 = 0; spvDummy21 < 1; spvDummy21++)
{
if (vIndex == 2)
{
v = vec4(0.0, 2.0, 3.0, 4.0);
b... | GLSL | 3 | js6i/SPIRV-Cross | reference/shaders/legacy/fragment/switch.legacy.frag | [
"Apache-2.0"
] |
{{! Copyright (c) Avanade. Licensed under the MIT License. See https://github.com/Avanade/Beef }}
/*
* This file is automatically generated; any changes will be lost.
*/
#nullable enable
#pragma warning disable
using Microsoft.Extensions.DependencyInjection;
namespace {{Root.NamespaceCdc}}.Data
{
/// <summar... | Harbour | 4 | ualehosaini/Beef | tools/Beef.CodeGen.Core/Templates/DbCdcDataSce_cs.hb | [
"MIT"
] |
/* @generated */
digraph cfg {
"dealloc#PropertyImplSetter#instance.5650d9bd0d7d0f070430d4aa59d7fb97_1" [label="1: Start PropertyImplSetter.dealloc\nFormals: self:PropertyImplSetter*\nLocals: \n " color=yellow style=filled]
"dealloc#PropertyImplSetter#instance.5650d9bd0d7d0f070430d4aa59d7fb97_1" -> "dealloc#Pro... | Graphviz (DOT) | 4 | JacobBarthelmeh/infer | infer/tests/codetoanalyze/objc/frontend/property/PropertyImplSetter.m.dot | [
"MIT"
] |
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "Identifiability_of_GPT_2_model.ipynb",
"provenance": [],
"collapsed_sections": [],
"machine_shape": "hm"
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
}
},
"cells": [
... | Jupyter Notebook | 5 | deepneuralmachine/google-research | linear_identifiability/identifiability_of_GPT_2_models.ipynb | [
"Apache-2.0"
] |
/*-----------global shared data (SSD)-------------------------------*/
/* shared scalar */
shared int global_counter;
shared int global_counter1 = 0;
shared int global_counter2 = 2;
/* shared arrays */
shared[5] double garray[100*THREADS];
/* Berkeley UPC compiler does not yet fully implement this: their bug 36
s... | Unified Parallel C | 3 | maurizioabba/rose | projects/UpcTranslation/tests/shared_1.upc | [
"BSD-3-Clause"
] |
Red/System [
Title: "Red/System pointer! [float!] datatype test script"
Author: "Nenad Rakocevic"
File: %float-pointer-test.reds
Tabs: 4
Rights: "Copyright (C) 2011-2018 Red Foundation. All rights reserved."
License: "BSD-3 - https://github.com/red/red/blob/origin/BSD-3-License.txt"
]
#include %../../../.... | Red | 5 | 0xflotus/red | system/tests/source/units/float-pointer-test.reds | [
"BSL-1.0",
"BSD-3-Clause"
] |
#pragma once
#include <torch/csrc/WindowsTorchApiMacro.h>
#include <torch/csrc/jit/codegen/cuda/ir_interface_nodes.h>
#include <torch/csrc/jit/codegen/cuda/type.h>
class Val;
/*
* The operations defined in this header is intended as user facing functions.
* Generally users should not directly instantiate temporar... | C | 4 | abishekvashok/pytorch | torch/csrc/jit/codegen/cuda/arith.h | [
"Intel"
] |
.scrollbar
height: 100%
.scrollbar-wrapper
position: relative
height: 100%
padding: 0 10px
border: 1px solid #ccc
overflow: hidden
.scrollbar-content-item
padding: 10px 0
list-style: none
border-bottom: 1px solid #ccc
text-align: left
.horizontal-scrollbar-container
.scroll-wrapper
position r... | Stylus | 2 | cym2050/better-scroll | packages/react-examples/src/pages/scrollbar/index.styl | [
"MIT"
] |
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
namespace Phalcon\Paginator\Adapter;
use Phalcon\Paginator\RepositoryInterface;
/**
*... | Zephir | 5 | tidytrax/cphalcon | phalcon/Paginator/Adapter/AdapterInterface.zep | [
"BSD-3-Clause"
] |
<%= project.name %> | HTML+ERB | 0 | mdesantis/rails | actionview/test/fixtures/projects/_project.erb | [
"MIT"
] |
// 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/>
#include <xs1.h>
#include <xclib.h>
#include <print.h>
#include "adat_tx.h"
//::declarat... | XC | 4 | smola/language-dataset | data/github.com/xcore/sc_adat/204d3d7b5528c2e97a0d87ea9ecbd57c04b217cd/app_adat_tx_direct_example/src/main.xc | [
"MIT"
] |
lib LibC
E2BIG = 7
EACCES = 13
EADDRINUSE = 48
EADDRNOTAVAIL = 49
EAFNOSUPPORT = 47
EAGAIN = 35
EALREADY = 37
EBADF = 9
EBADMSG = 89
EBUSY = 16
ECANCELED = 85
ECHILD = 10
ECONNABORTED = 53
ECONNREFUS... | Crystal | 3 | n00p3/crystal | src/lib_c/x86_64-freebsd/c/errno.cr | [
"Apache-2.0"
] |
module Views.Shared.Dialog exposing (Config, view)
import Html exposing (Html, button, div, h5, text)
import Html.Attributes exposing (class, style)
import Html.Events exposing (onClick)
type alias Config msg =
{ title : String
, body : Html msg
, footer : Html msg
, onClose : msg
}
view : Mayb... | Elm | 4 | jtlisi/alertmanager | ui/app/src/Views/Shared/Dialog.elm | [
"ECL-2.0",
"Apache-2.0"
] |
<!DOCTYPE html>
<html>
<head>
<title>click_submit_test.html</title>
<script src="test_bootstrap.js"></script>
<script type="text/javascript">
goog.require('bot.action');
goog.require('bot.locators');
goog.require('goog.Promise');
goog.require('goog.Uri');
goog.require('goog.dom');
goog.req... | HTML | 5 | weilandia/selenium | javascript/atoms/test/click_submit_test.html | [
"Apache-2.0"
] |
--TEST--
Test strrpos() function : basic functionality - with all arguments
--FILE--
<?php
echo "*** Testing strrpos() function: basic functionality ***\n";
$heredoc_str = <<<EOD
Hello, World
EOD;
echo "-- With all arguments --\n";
//regular string for haystack & needle, with various offsets
var_dump( strrpos("Hello, ... | PHP | 3 | NathanFreeman/php-src | ext/standard/tests/strings/strrpos_basic2.phpt | [
"PHP-3.01"
] |
<!DOCTYPE html><html lang="en"><head><title>title</title></head><body><h1>Hello World</h1><!-- page content --></body></html>
| HTML | 3 | 0x7c48/mitmproxy | test/mitmproxy/contentviews/test_xml_html_data/simple.html | [
"MIT"
] |
macro_rules! foo {
($rest: tt) => {
bar(baz: $rest) //~ ERROR invalid `struct` delimiters or `fn` call arguments
}
}
fn main() {
foo!(true);
//~^ ERROR expected identifier, found keyword
}
| Rust | 3 | ohno418/rust | src/test/ui/parser/issues/issue-44406.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
insert into `mixed` values (705), (417), (906), (375), (486), (449), (290), (477), (274), (912);
| SQL | 3 | imtbkcat/tidb-lightning | tests/character_sets/mixed/charsets.mixed.sql | [
"Apache-2.0"
] |
**Metal industry methodology, coke production. Calculates carbon dioxide (CO,,2,,), methane (CH,,4,,) and CO,,2,,e emissions based on the quantities of materials consumed and produced. Globally applicable.**
==Summary==
This methodology represents **carbon dioxide** (CO,,2,,) and **methane** (CH,,4,,) emissions associ... | Creole | 4 | OpenAMEE/datasets | business/processes/production/ironandsteel/coke/documentation.creole | [
"MIT"
] |
from kivy.graphics.instructions cimport VertexInstruction
from kivy.graphics.vertex cimport VertexFormat
cdef class Bezier(VertexInstruction):
cdef list _points
cdef int _segments
cdef bint _loop
cdef int _dash_offset, _dash_length
cdef void build(self)
cdef class StripMesh(VertexInstruction):
... | Cython | 4 | Galland/kivy | kivy/graphics/vertex_instructions.pxd | [
"MIT"
] |
{% extends "base.ahk" %}
{% block body %}
Loop, {{ reg }}, {{ key_name }}, {{ mode }}
{% endblock body %}
| AutoHotkey | 1 | scslmd/ahk | ahk/templates/registery/reg_loop.ahk | [
"MIT"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 4 | sbj42/vscode | src/vs/workbench/services/path/electron-sandbox/pathService.ts | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.