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 |
|---|---|---|---|---|---|
…
i0.ɵɵlistener("click", function Dir_click_HostBindingHandler() { return ctx.c(ctx.$event); });
| JavaScript | 1 | John-Cassidy/angular | packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/event_host_explicit_access_host_bindings.js | [
"MIT"
] |
body {
margin: 0;
padding: 0;
font-family: sans-serif;
}
.fa-chevron-left:before {
content: "\f053";
} | CSS | 2 | firebolt55439/ray | python/ray/tune/automlboard/static/css/index.css | [
"Apache-2.0"
] |
TDObjectGatewayLeafNode{#name:'Zodiac',#contents:'| repoSpec gitCheckout |
gitCheckout := GsFile _expandEnvVariable: \'GS_SHARED_GIT_CHECKOUT_ZODIAC\' isClient: false.
repoSpec := GsFile _expandEnvVariable: \'GS_SHARED_REPO_ZODIAC\' isClient: false.
^ TDProjectSpecEntryDefinition new
baseline: \'Zodiac\'
rep... | STON | 3 | ahdach/GsDevKit_home | sys/default/server/projects/Zodiac.ston | [
"MIT"
] |
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:gr="http://purl.org/goodrelations/v1#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:rdf="http://www.w3.org/1999/02/... | Web Ontology Language | 5 | wRLSS/schema-generator | tests/data/goodrelations.owl | [
"MIT"
] |
/********************************************************************************
* Copyright (c) {date} Red Hat Inc. and/or its affiliates and others
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* http://www.apache.o... | Ceylon | 4 | Kopilov/ceylon-ide-intellij | source/org/eclipse/ceylon/ide/intellij/runner/CeylonTaskRunConfigurationProducer.ceylon | [
"Apache-2.0"
] |
const neg = @import("negXi2.zig");
const testing = @import("std").testing;
fn test__negdi2(a: i64, expected: i64) !void {
var result = neg.__negdi2(a);
try testing.expectEqual(expected, result);
}
test "negdi2" {
// TODO ensuring that math.minInt(i64); returns error
try test__negdi2(-3, 3);
try t... | Zig | 5 | lukekras/zig | lib/std/special/compiler_rt/negdi2_test.zig | [
"MIT"
] |
--TEST--
Bug #72639 (Segfault when instantiating class that extends IntlCalendar and adds a property)
--EXTENSIONS--
intl
--FILE--
<?php
class A extends IntlCalendar {
public function __construct() {}
private $a;
}
var_dump(new A());
?>
--EXPECTF--
object(A)#%d (1) {
["valid"]=>
bool(false)
}
| PHP | 2 | NathanFreeman/php-src | ext/intl/tests/bug72639.phpt | [
"PHP-3.01"
] |
// Copyright 2019 Roman Perepelitsa.
//
// This file is part of GitStatus.
//
// GitStatus is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later ve... | C | 4 | ptavares/powerlevel10k | gitstatus/src/check.h | [
"MIT"
] |
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Python | 3 | EricRemmerswaal/tensorflow | tensorflow/python/data/kernel_tests/range_test.py | [
"Apache-2.0"
] |
#include "pch.hpp"
#include "herpaderp.hpp"
#include "utils.hpp"
_Use_decl_annotations_
HRESULT Herpaderp::ExecuteProcess()
{
HRESULT hr;
std::wstring TargetFileName;
hr = Utils::GetFileName(Herpaderp::_TargetFileName, TargetFileName);
if (FAILED(hr))
{
REPORT_AND_RETURN_HR("Failed to retr... | C++ | 3 | OsmanDere/metasploit-framework | external/source/evasion/windows/process_herpaderping/ProcessHerpaderping/herpaderp.cpp | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
exec("swigtest.start", -1);
if CHAR_CONSTANT_get() <> "x" then swigtesterror(); end
if STRING_CONSTANT_get() <> "xyzzy" then swigtesterror(); end
if ESC_CONST_get() <> ascii(1) then swigtesterror(); end
if ia_get() <> ascii('a') then swigtesterror(); end
if ib_get() <> ascii('b') then swigtesterror(); end
exec("swigt... | Scilab | 3 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/char_constant_runme.sci | [
"BSD-3-Clause"
] |
#Signature file v4.1
#Version 1.99.0
CLSS public abstract interface java.io.Serializable
CLSS public abstract interface java.lang.Comparable<%0 extends java.lang.Object>
meth public abstract int compareTo({java.lang.Comparable%0})
CLSS public abstract java.lang.Enum<%0 extends java.lang.Enum<{java.lang.Enum%0}>>
con... | Standard ML | 3 | timfel/netbeans | ide/projectuiapi.base/nbproject/org-netbeans-modules-projectuiapi-base.sig | [
"Apache-2.0"
] |
package foo
open class A(x: Int = 10)
// The use of annotation here is intentional, so no change for "fun A" is detected,
// but after adding default value to A constructor, we want to force resolve to the constructor
@Deprecated("Hidden", level = DeprecationLevel.HIDDEN)
fun A() = A(30) | Groff | 3 | qussarah/declare | jps-plugin/testData/incremental/pureKotlin/defaultValueInConstructorAdded/A.kt.new.1 | [
"Apache-2.0"
] |
TDObjectGatewayLeafNode{#name:'FileTree',#contents:'| repoSpec gitCheckout |
gitCheckout := GsFile _expandEnvVariable: \'GS_SHARED_GIT_CHECKOUT_GEMSTONE_FILETREE\' isClient: false.
repoSpec := GsFile _expandEnvVariable: \'GS_SHARED_REPO_GEMSTONE_FILETREE\' isClient: false.
^ TDProjectSpecEntryDefinition new
baseli... | STON | 3 | ahdach/GsDevKit_home | sys/default/server/projects/FileTree.ston | [
"MIT"
] |
// run-pass
// aux-build:issue-8044.rs
// pretty-expanded FIXME #23616
extern crate issue_8044 as minimal;
use minimal::{BTree, leaf};
pub fn main() {
BTree::<isize> { node: leaf(1) };
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/issues/issue-8044.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
unique template site/ceph/osdlocal/simple;
variable CEPH_JOURNAL_PART ?= dict();
prefix '/software/components/ceph';
'localdaemons/osds' = {
d = dict();
foreach(idx; osdmnt; value('/system/filesystems')) {
part = osdmnt['block_device'];
disk = replace('\S+/([a-zA-Z]+)[0-9]*$', '$1', part);
... | Pan | 3 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Pan/simple.pan | [
"MIT"
] |
package com.baeldung.whatsnew.sealedclasses;
import java.util.Date;
public non-sealed class Employee extends Person {
public Date getHiredDate() {
return new Date();
}
}
| Java | 3 | DBatOWL/tutorials | core-java-modules/core-java-15/src/main/java/com/baeldung/whatsnew/sealedclasses/Employee.java | [
"MIT"
] |
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!319 &31900000
AvatarMask:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: BodyExceptHandsAvatarMask
m_Mask: 0100000001000000010000000100000001000000010000000100000001000000010000000... | Mask | 3 | magooffm/Undercooked | Assets/Art/Animations/BodyExceptHandsAvatarMask.mask | [
"MIT"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_onSwTangentPressed
Author: NKey
Fired when the keybinding for SR is pressed.
Arguments:
None
Return Value:
Whether or not the event was handled <BOOL>
Example:
call TFAR_fnc_onSwTangentPressed;
Public: No
*/
if (time - TF_last_lr_tange... | SQF | 4 | MrDj200/task-force-arma-3-radio | addons/core/functions/events/keys/fnc_onSwTangentPressed.sqf | [
"RSA-MD"
] |
"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 | 4 | good-gym/material-ui | packages/material-ui-icons/lib/OutboxRounded.js | [
"MIT"
] |
module Drv {
port SerialWrite(
ref serBuffer: Fw.Buffer
)
}
module Drv {
enum SerialReadStatus {
SER_OK = 0 @< Transaction okay
SER_PARITY_ERR = 1 @< Parity error on data
SER_NO_BUFFERS = 2 @< Serial driver ran out of buffers
SER_BUFFER_TOO_SMALL = 3 @< Targ... | FORTRAN | 3 | AlperenCetin0/fprime | Drv/SerialDriverPorts/SerialDriverPorts.fpp | [
"Apache-2.0"
] |
(lp1
(ccopy_reg
_reconstructor
p2
(cpygments.token
_TokenType
p3
c__builtin__
tuple
p4
(S'Generic'
p5
S'Traceback'
p6
ttRp7
(dp8
S'subtypes'
p9
c__builtin__
set
p10
((ltRp11
sS'parent'
p12
g2
(g3
g4
(g5
ttRp13
(dp14
S'Prompt'
p15
g2
(g3
g4
(g5
g15
ttRp16
(dp17
g9
g10
((ltRp18
sg12
g13
sbsg12
g2
(g3
g4
(ttRp19
(dp20
S'C... | Python traceback | 0 | mjtamlyn/django-braces | docs/build/Pygments/tests/examplefiles/output/truncated.pytb | [
"BSD-3-Clause"
] |
A warning was added, when a cookie's length exceeds the :rfc:`6265` minimum client support -- :user:`anesabml`.
| Cucumber | 1 | loven-doo/aiohttp | CHANGES/5634.feature | [
"Apache-2.0"
] |
// errorcheck
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package p
//go:embed issue48230.go // ERROR `go:embed only allowed in Go files that import "embed"`
var _ string
| Go | 2 | SSSDNSY/go | test/fixedbugs/issue48230.go | [
"BSD-3-Clause"
] |
global _start
section .data
align 16
myquad:
dq 0xad0000ceadad00ff
mydword:
dd 0xcafebabe
myaddress:
dq 0x00adbeefc0de00ce
%include "header.inc"
movq mm0, [myquad]
paddw mm0, [myaddress]
%include "footer.inc"
| Assembly | 3 | Tuna0128/Tuna0128.github.io | tests/nasm/paddw.asm | [
"BSD-2-Clause-FreeBSD"
] |
#![allow(warnings)]
#![deny(unreachable_code)]
enum Void { }
fn foo(v: Void) {
match v { }
let x = 2; //~ ERROR unreachable
}
fn main() {
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/match/match-no-arms-unreachable-after.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
(defmodule ltest-fixturecase-tests
(behaviour ltest-unit))
(include-lib "include/ltest-macros.lfe")
(defun set-up () 'ok)
(defun tear-down (set-up-result) (is-equal set-up-result 'ok))
(deftestcase setup-tc (set-up-result)
;; This is called the 'Instantiator' in EUnit parlance.
(is-equal set-up-result 'ok)
... | LFE | 4 | ioolkos/ltest | test/ltest-fixturecase-tests.lfe | [
"BSD-3-Clause"
] |
package mobi.porquenao.poc.kotlin.core
import com.raizlabs.android.dbflow.converter.TypeConverter
import java.util.*
import com.raizlabs.android.dbflow.annotation.TypeConverter as TypeConverterAnnotation
@TypeConverterAnnotation
class CalendarConverter : TypeConverter<Long, Calendar>() {
override fun getDBValue(... | Kotlin | 4 | qussarah/declare | libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/kapt2/android-dbflow/app/src/main/java/mobi/porquenao/poc/kotlin/core/CalendarConverter.kt | [
"Apache-2.0"
] |
/**
* Given a URL as a string and a base URL it will make the URL relative
* if the parsed protocol and host is the same as the one in the base
* URL. Otherwise it returns the same URL string.
*/
export function relativizeURL(url: string | string, base: string | URL) {
const baseURL = typeof base === 'string' ? n... | TypeScript | 4 | blomqma/next.js | packages/next/shared/lib/router/utils/relativize-url.ts | [
"MIT"
] |
CREATE
OR REPLACE VIEW hdb_catalog.hdb_function_info_agg AS (
SELECT
function_name,
function_schema,
row_to_json (
(
SELECT
e
FROM
(
SELECT
description,
... | SQL | 3 | gh-oss-contributor/graphql-engine-1 | server/src-rsr/migrations/39_to_38.sql | [
"Apache-2.0",
"MIT"
] |
package jadx.tests.integration.enums;
import org.junit.jupiter.api.Test;
import jadx.tests.api.SmaliTest;
import static jadx.tests.api.utils.assertj.JadxAssertions.assertThat;
public class TestEnums8 extends SmaliTest {
@Test
public void test() {
assertThat(getClassNodeFromSmali())
.code()
.containsOne... | Java | 3 | Dev-kishan1999/jadx | jadx-core/src/test/java/jadx/tests/integration/enums/TestEnums8.java | [
"Apache-2.0"
] |
"""Test fixtures for mqtt component."""
from tests.components.blueprint.conftest import stub_blueprint_populate # noqa: F401
from tests.components.light.conftest import mock_light_profiles # noqa: F401
| Python | 2 | MrDelik/core | tests/components/mqtt/conftest.py | [
"Apache-2.0"
] |
(:
Copyright (c) 2021 MarkLogic Corporation
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... | XQuery | 4 | iveyMarklogic/marklogic-data-hub | marklogic-data-hub/src/main/resources/ml-modules/root/data-hub/5/mapping/core-functions-impl.xqy | [
"Apache-2.0"
] |
:- initialization((
logtalk_load(flags)
)).
| Logtalk | 0 | jfmc/logtalk3 | contributions/flags/loader.lgt | [
"Apache-2.0"
] |
VITE_APP_URL=http://poppy.duoli.com | Self | 0 | imvkmark/antdv-demo | config/.env.self | [
"MIT"
] |
<table class="collapse ba br2 b--black-10 pv2 ph3">
<thead>
<tr>
<th class="pv2 ph3 tl f6 fw6 ttu">LastMod</th>
<th class="pv2 ph3 tl f6 fw6 ttu">Link</th>
<th class="pv2 ph3 tl f6 fw6 ttu">GitHub</th>
</tr>
</thead>
<tbody>
{{ range . }}
<tr class="striped--light-gray">
<td class="pv2 ph3">{{ .... | HTML | 4 | jlevon/hugo | docs/layouts/partials/maintenance-pages-table.html | [
"Apache-2.0"
] |
#include-once
; >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
; Copied from AutoItObject.au3 by the AutoItObject-Team: monoceres, trancexx, Kip, ProgAndy
; https://www.autoitscript.com/forum/index.php?showtopic=110379
Global Const $tagVARIANT = "word vt;w... | AutoIt | 4 | hardikeprajapati/AutoITBeginner | AutoitBeginnerTutorial/DotNet/Includes/Variant.au3 | [
"MIT"
] |
//*********************************************************************************
//** Copyright (C) 2017 Shin Ingen
//**
//** This program is free software: you can redistribute it and/or modify
//** it under the terms of the GNU Affero General Public License as
//** published by the Free Software Foundatio... | LSL | 3 | seriesumei/test-Ruth2 | Contrib/Fred Beckhusen/r2HUD_ac_trigger.lsl | [
"MIT"
] |
(module
(global $global$0 (mut i32) (i32.const 66192))
(global $global$1 i32 (i32.const 652))
(export "__data_end" (global $global$1))
(export "main" (func $main))
(func $main (param $0 i32) (param $1 i32) (result i32)
(i32.const 0)
)
)
| WebAssembly | 2 | phated/binaryen | test/unit/input/empty_lld.wat | [
"Apache-2.0"
] |
module m33ki.redis.persistence
import m33ki.redis
----
# kind of model
function Human = |redisDb| {
return DynamicObject(): mixin(Model("Human", redisDb))
: define("setName", |this, name| {
return this: setField("name", name)
})
: define("getName", |this| -> this: getField("name"))
: define... | Golo | 4 | TypeUnsafe/golo-tour | 05-Golo.75.devoxxfr.2014/4.grosse.demo.golo.loves.java/toons/libs/m33ki.redis.persistence.golo | [
"MIT"
] |
#pragma once
#include <ATen/TensorIterator.h>
#include <ATen/native/DispatchStub.h>
namespace at {
namespace native {
using renorm_scale_factor_fn = void (*) (TensorIteratorBase& iter, double maxnorm);
DECLARE_DISPATCH(renorm_scale_factor_fn, renorm_scale_factor_stub);
}} // namespace at::native
| C | 2 | Hacky-DH/pytorch | aten/src/ATen/native/Normalization.h | [
"Intel"
] |
Dim dbFile As FolderItem
Dim db As New SQLiteDatabase
dbFile = GetFolderItem("Employees.sqlite")
db.DatabaseFile = dbFile
If db.Connect Then
db.SQLExecute("BEGIN TRANSACTION")
db.SQLExecute ("INSERT INTO Employees (Name,Job,YearJoined) VALUES "_
+"('Dr.Strangelove','Advisor',1962)")
If db.Error then
MsgBo... | Xojo | 3 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Xojo/database.xojo_script | [
"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.
*)
open CommandUtils
open Utils_js
let spec =
{
CommandSpec.name = "batch-coverage";
doc = "Shows aggregate coverage inform... | OCaml | 5 | zhangmaijun/flow | src/commands/batchCoverageCommand.ml | [
"MIT"
] |
use @pony_exitcode[None](code: I32)
class EmbedFinal
fun _final() =>
@pony_exitcode(1)
actor Main
embed c: EmbedFinal = EmbedFinal
new create(env: Env) =>
None
| Pony | 3 | rtpax/ponyc | test/libponyc-run/embed-final/main.pony | [
"BSD-2-Clause"
] |
sleep 10
t app appmode photo
sleep 4
t app button shutter PR
sleep 6
t app button wifi P
sleep 2
t app button wifi R
sleep 40
t app button wifi P
sleep 2
t app button wifi R
d:\autoexec.ash
REBOOT yes
| AGS Script | 1 | waltersgrey/autoexechack | PhotoWiFiTransfer/Hero3PlusBlack/autoexec.ash | [
"MIT"
] |
a { color: tUrQuOiSe } | CSS | 1 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/vCiwe_ipn8ReAa4wyU52Ng/input.css | [
"Apache-2.0"
] |
<?xml version="1.0"?>
<rdf:RDF xmlns="http://purl.obolibrary.org/obo/doid/imports/omim_susc_import.owl#"
xml:base="http://purl.obolibrary.org/obo/doid/imports/omim_susc_import.owl"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:oboInOwl="http... | Web Ontology Language | 5 | allenbaron/HumanDiseaseOntology | src/ontology/imports/omim_susc_import.owl | [
"CC0-1.0"
] |
<template name="broadcastView">
<div class="streaming-popup">
<video id="player" src={{ broadcastSource }} muted autoplay width="380px" ></video>
</div>
</template>
| HTML | 4 | subramanir2143/Rocket.Chat | app/livestream/client/views/broadcastView.html | [
"MIT"
] |
/*
* sha1.c
*
* an implementation of the Secure Hash Algorithm v.1 (SHA-1),
* specified in FIPS 180-1
*
* David A. McGrew
* Cisco Systems, Inc.
*/
/*
*
* Copyright (c) 2001-2017, Cisco Systems, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modificati... | C | 5 | vanga-top/mediasoup | worker/deps/libsrtp/srtp/crypto/hash/sha1.c | [
"0BSD"
] |
#!/usr/bin/osascript
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Move Desktop to Trash
# @raycast.mode silent
# Optional parameters:
# @raycast.icon 🗑
# @raycast.packageName System
# @raycast.needsConfirmation true
# Documentation:
# @raycast.author Seypopi
# @raycast.authorURL https://github... | AppleScript | 4 | daviddzhou/script-commands | commands/system/move-desktop-to-trash.applescript | [
"MIT"
] |
#
# @expect="/nlist[@name='profile']/list[@name='h']/nlist[1]/string[@name='b']='bb' and /nlist[@name='profile']/list[@name='h']/nlist[2]/nlist[@name='a']/long[@name='y']=10"
# @format=pan
#
object template default26;
type f = {
'x' ? long
'y' ? long
} = dict('y', 10);
type g = {
'a' ? f
'b' ? string
} = ... | Pan | 3 | aka7/pan | panc/src/test/pan/Functionality/default/default26.pan | [
"Apache-2.0"
] |
# A toy knapsack problem from the LocalSolver docs written in AMPL.
set I;
param Value{I};
param Weight{I};
param KnapsackBound;
var Take{I} binary;
maximize TotalValue: sum{i in I} Take[i] * Value[i];
s.t. WeightLimit: sum{i in I} Take[i] * Weight[i] <= KnapsackBound;
data;
param:
I: Weight Value :=
0 10 1
... | AMPL | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/AMPL/toy.ampl | [
"MIT"
] |
#main
#php M_PI Float
#php pi() Float
// PI/2 = 1 + 1/3 + 1/3*2/5 + 1/3*2/5*3/7 + ...
internal MIN_FLOAT = 1.11e-16
var computed_pi Float = 2.0
var tmp Float = 2.0
var a = 1
var b = 3
while tmp > MIN_FLOAT {
tmp *= a / b
computed_pi += tmp
a += 1
b += 2
}
echo "Computed PI value: $computed_pi"
ec... | Tea | 3 | jackwiy/tea | examples/pi.tea | [
"Apache-2.0"
] |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {ɵParsedMessage as ParsedMessage} from '@angular/localize';
import {Diagnostics} from '../../diagnostics';
impo... | TypeScript | 4 | John-Cassidy/angular | packages/localize/tools/src/extract/translation_files/legacy_message_id_migration_serializer.ts | [
"MIT"
] |
( Generated from test_globalvars_in.muv by the MUV compiler. )
( https://github.com/revarbat/pymuv )
lvar _foo
lvar _bar
lvar _fee
: _main[ _arg -- ret ]
{ _foo @ " " _bar @ }list array_interpret _fee !
_fee @ me @ swap notify
0
;
: __start
"me" match me ! me @ location loc ! trig trigger !
23 _f... | MUF | 2 | revarbat/pymuv | tests/test_globalvars_cmp.muf | [
"MIT"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_currentLRFrequency
Author: NKey
Returns current Frequency of the active LR Radio
Arguments:
None
Return Value:
Frequency of active LR Radio <STRING>
Example:
_LRFrequency = call TFAR_fnc_currentLRFrequency
Public: Yes
*/
(call TFAR_fnc... | SQF | 4 | MrDj200/task-force-arma-3-radio | addons/core/functions/fnc_currentLRFrequency.sqf | [
"RSA-MD"
] |
#include "DATS/cli.dats"
#include "DATS/count-loop.dats"
#include "DATS/print.dats"
staload "libats/ML/SATS/string.sats"
staload "SATS/filetype.sats"
staload "libats/ML/SATS/atspre.sats"
staload "libats/ML/SATS/list0.sats"
staload "libats/ML/SATS/basis.sats"
staload EXTRA = "libats/ML/SATS/filebas.sats"
staload "libat... | ATS | 4 | lambdaxymox/polyglot | DATS/shared.dats | [
"BSD-3-Clause"
] |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | C | 5 | Harshitha91/Tmdb-react-native-node | ReactNativeFrontend/ios/Pods/Flipper-Folly/folly/executors/task_queue/PriorityLifoSemMPMCQueue.h | [
"Apache-2.0"
] |
package ClockHacks;
import Clocks ::*;
import Connectable ::*;
(* always_ready, always_enabled *)
interface OutputBit;
method Bit#(1) out;
endinterface
import "BVI" ASSIGN1 =
module packClock#(Clock clk)(OutputBit);
default_clock no_clock;
default_reset no_reset;
input_clock clk(IN) = clk;
method ... | Bluespec | 3 | Skydive/Piccolo | src_SSITH_P1/src_BSV/ClockHacks.bsv | [
"Apache-2.0"
] |
#
# Copyright 2014 (c) Pointwise, Inc.
# All rights reserved.
#
# This sample 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/CreateFFD/43e5920362ca64a8a3368e2f60aac840af36bbdf/CreateFFD.glf | [
"MIT"
] |
/**
* Contains convenience functionality for use with libFuzzer.
*
* Copyright: Authors 2018
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Authors: LDC Team
*/
module ldc.libfuzzer;
import std.typecons : Flag, Yes;
/**
* Defines the necessary code to initialize the D runtim... | D | 5 | mitchblank/druntime | src/ldc/libfuzzer.di | [
"BSL-1.0"
] |
.foobar {
x 0 : integer
y 1 : integer
s 2 : string
}
| SourcePawn | 0 | kequanJiang/skynet_start | skynet/test/sharemap.sp | [
"MIT"
] |
#pragma once
#include <torch/nn/options/batchnorm.h>
#include <torch/types.h>
namespace torch {
namespace nn {
namespace functional {
#ifndef DOXYGEN_SHOULD_SKIP_THIS
namespace detail {
inline Tensor batch_norm(const Tensor& input,
const Tensor& running_mean,
const T... | C | 5 | Hacky-DH/pytorch | torch/csrc/api/include/torch/nn/functional/batchnorm.h | [
"Intel"
] |
^XA
^FO1,1^FDHello World^FS
^XZ
| Zimpl | 2 | jo-mol/HelloWorld | HelloWorld.zpl | [
"Apache-2.0"
] |
Foo: class template <T> {
val: T
init: func (=val)
}
IntWrapper: class extends Foo<Int> {
init: super func
addOne: func -> Int {
val + 1
}
}
describe("class templates should be extendable from non-template classes when totally qualified", ||
i := IntWrapper new(4... | ooc | 3 | shamanas/rock | test/compiler/classes/class-template-extend-from-non-template.ooc | [
"MIT"
] |
/**
* HardSync.x10
*
* Rudra Distributed Learning Platform
*
* Copyright (c) IBM Corporation 2016
* 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 m... | X10 | 4 | milthorpe/rudra | x10/src/rudra/HardSync.x10 | [
"BSD-3-Clause"
] |
use gccjit::RValue;
use rustc_codegen_ssa::mir::debuginfo::{FunctionDebugContext, VariableKind};
use rustc_codegen_ssa::traits::{DebugInfoBuilderMethods, DebugInfoMethods};
use rustc_middle::mir;
use rustc_middle::ty::{Instance, PolyExistentialTraitRef, Ty};
use rustc_span::{SourceFile, Span, Symbol};
use rustc_target:... | Rust | 3 | sapir/rustc_codegen_gcc | src/debuginfo.rs | [
"Apache-2.0",
"MIT"
] |
#carbonads {
display: block;
overflow: hidden;
text-align: center;
font-size: 14px;
line-height: 1.5;
}
#carbonads span {
display: block;
overflow: hidden;
}
.carbon-img {
display: block;
}
.carbon-text {
display: block;
margin-bottom: .5em;
}
.carbon-poweredby {
display: bl... | CSS | 1 | abhijit-paul/html2canvas | www/src/components/carbon.css | [
"MIT"
] |
module audiostreamerscrobbler.factories.PlayerDetectorFactory
import audiostreamerscrobbler.factories.SocketFactory
import audiostreamerscrobbler.maintypes.Player
import audiostreamerscrobbler.players.bluos.BluOsDetector
import audiostreamerscrobbler.players.heos.HeosDetector
import audiostreamerscrobbler.players.musi... | Golo | 4 | vvdleun/audiostreamerscrobbler | src/main/golo/include/factories/PlayerDetectorFactory.golo | [
"MIT"
] |
{% if include.top %}
{% assign toc__top = site.data.sitenav_index[include.top] %}
{% assign toc__list = toc__top.children %}
{% if include.title %}
<p class="toc__title">
<a href="{{ site.baseurl }}{{ toc__top.page.url | replace:'index.html','' }}">{{ toc__top.page.title }}</a>
</p>
{% endif %}
{%... | Liquid | 4 | enterstudio/spfjs | web/includes/toc.liquid | [
"MIT"
] |
(module
(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 $inlining-blocklocals/b (mut i32) (i32.const 2))
(global $inlining-blocklocals/theCall_a (mut i32) (i32.const 0))
(global $inlining-... | WebAssembly | 3 | romdotdog/assemblyscript | tests/compiler/inlining-blocklocals.untouched.wat | [
"Apache-2.0"
] |
Hello <%= @user.name %>,
Your ENCODE DCC data submission account has been activated.
Login: <%= @user.login %>
You may now submit data from your project, using the
data submission formats defined in your data agreement
with the DCC. If you do not yet have a data agreement,
contact the DCC.
Follow this URL to ... | RHTML | 3 | andypohl/kent | src/hg/encode/hgEncodeSubmit/app/views/user_notifier/activation.rhtml | [
"MIT"
] |
\documentclass[preprint]{sigplanconf}
%include agda.fmt
%include main.fmt
\include{preamble}
\begin{document}
\conferenceinfo{ICFP'14} {September 1--3, 2014, G\"oteborg, Sweden}
\titlebanner{Under preparation for ICFP 2014}
\title{Auto in Agda}
\subtitle{Programming proof search}
\authorinfo{Pepijn Kokke \and Wout... | Literate Agda | 5 | wenkokke/AutoInAgda | doc/old_main.lagda | [
"MIT"
] |
//! shouldfail
main: func {
a := "Yay"
b := +a
}
| ooc | 1 | shamanas/rock | test/compiler/operators/unary-plus-non-numeric.ooc | [
"MIT"
] |
--TEST--
Simple While Loop Test
--FILE--
<?php
$a=1;
while ($a<10) {
echo $a;
$a++;
}
?>
--EXPECT--
123456789
| PHP | 4 | thiagooak/php-src | tests/lang/002.phpt | [
"PHP-3.01"
] |
package aec
import (
"fmt"
)
// RGB3Bit is a 3bit RGB color.
type RGB3Bit uint8
// RGB8Bit is a 8bit RGB color.
type RGB8Bit uint8
func newSGR(n uint) ANSI {
return newAnsi(fmt.Sprintf(esc+"%dm", n))
}
// NewRGB3Bit create a RGB3Bit from given RGB.
func NewRGB3Bit(r, g, b uint8) RGB3Bit {
return RGB3Bit((r >> 7... | Go | 4 | gregoryg/harvester | vendor/github.com/morikuni/aec/sgr.go | [
"Apache-2.0"
] |
module Lvm_conf =
autoload xfm
let empty = Util.empty
let eol = Util.eol
let comment = Util.comment
let indent = del /[ \t]*/ ""
let tab = del /[ \t]*/ "\t"
let eq = del /=/ "="
let id = /[a-zA-Z][a-zA-Z0-9_]+/
let type_int = /-?[0-9]+/
let type_float = /-?[0-9]+\.[0-9]+/
let type_st... | Augeas | 4 | ajnavarro/language-dataset | data/github.com/aaronknister/augeas-lens-lvm_conf/2ad05fa693c635000b5ca691e1d2732c7a08da04/lvm_conf.aug | [
"MIT"
] |
******************************************************************
* Author: Lauryn Brown
* Date:
* Purpose: log activity done by other programs
* Tectonics: cobc
******************************************************************
IDENTIFICATION DIVISION.
PROGRAM-ID. LOG... | COBOL | 4 | aanunez/Cisp | logger.cbl | [
"MIT"
] |
.-foo.svelte-xyz{color:red}[title='['].svelte-xyz{color:blue} | CSS | 0 | Theo-Steiner/svelte | test/css/samples/weird-selectors/expected.css | [
"MIT"
] |
### 请求 /infra/redis/get-monitor-info 接口 => 成功
GET {{baseUrl}}/infra/redis/get-monitor-info
Authorization: Bearer {{token}}
### 请求 /infra/redis/get-key-list 接口 => 成功
GET {{baseUrl}}/infra/redis/get-key-list
Authorization: Bearer {{token}}
| HTTP | 2 | cksspk/ruoyi-vue-pro | yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/infra/controller/redis/RedisController.http | [
"MIT"
] |
import pytest
@pytest.fixture(params=[True, False])
def allow_fill(request):
"""Boolean 'allow_fill' parameter for Categorical.take"""
return request.param
| Python | 4 | CJL89/pandas | pandas/tests/arrays/categorical/conftest.py | [
"BSD-3-Clause"
] |
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 -58.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 -100.00
0.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 -45.00
0.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 -74.00
1.00 0.00 0.00 0.00 -1.00 ... | Matlab | 0 | yinrun/LOPDC-Benchmarks | strippacking/matlab/sp-6-31-sqrt.matlab | [
"MIT"
] |
import { kebabCase } from 'lodash';
import ConfigProvider from '..';
describe('ConfigProvider.Theme', () => {
const colorList = ['primaryColor', 'successColor', 'warningColor', 'errorColor', 'infoColor'];
colorList.forEach(colorName => {
it(colorName, () => {
ConfigProvider.config({
prefixCls: '... | TypeScript | 4 | jawmeschege/ant-design | components/config-provider/__tests__/theme.test.ts | [
"MIT"
] |
static const uint64_t in_rfft_noisy_32[32] = {
0x3fa89117984a9562, 0x3fddc2de7434712d,
0x3fe8953f1cd52833, 0x3fde365b89867849,
0xbfafbe46aab40401, 0xbfdee9c10a4d1b7a,
0xbfe61a026041333c, 0xbfdf0514866bb5c2,
0xbfb4ab8518e22a6c, 0x3fe27b90f4351232,
0x3fe7364e272ce422, 0x3fe09e911971446b,
0xbfb... | Max | 2 | Trifunik/zephyr | tests/lib/cmsis_dsp/transform/src/rf64.pat | [
"Apache-2.0"
] |
from libc.string cimport memset
cimport numpy as np
from ..errors import Errors
from ..morphology import Morphology
from ..vocab cimport Vocab
from ..typedefs cimport hash_t, attr_t
from ..morphology cimport list_features, check_feature, get_by_field
cdef class MorphAnalysis:
"""Control access to morphological f... | Cython | 4 | snosrap/spaCy | spacy/tokens/morphanalysis.pyx | [
"MIT"
] |
<?xml version="1.0" encoding="UTF-8"?>
<!-- ******************************************************************* -->
<!-- -->
<!-- Copyright IBM Corp. 2010, 2014 -->
<!-- ... | XPages | 2 | jesse-gallagher/XPagesExtensionLibrary | extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.controls/src/com/ibm/xsp/extlib/config/extlib-dojo-base.xsp-config | [
"Apache-2.0"
] |
"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 | 4 | dany-freeman/material-ui | packages/mui-icons-material/lib/RoundaboutLeftSharp.js | [
"MIT"
] |
<cfcomponent>
<cffunction name="foo">
<cfset var local = {}>
<cfset local.stEditor = 123>
<cfscript>foo(local.stEditor)</cfscript>
</cffunction>
</cfcomponent>
| ColdFusion CFC | 2 | tonym128/CFLint | src/test/resources/com/cflint/tests/UnusedVariable/local_339.cfc | [
"BSD-3-Clause"
] |
<GameFile>
<PropertyGroup Name="CheckBoxItem" Type="Layer" ID="e39f38cb-fb62-4fa8-8343-2cc7467c3eac" Version="3.10.0.0" />
<Content ctype="GameProjectContent">
<Content>
<Animation Duration="0" Speed="1.0000" />
<ObjectData Name="Layer" Tag="112" ctype="GameLayerObjectData">
<Size X="640.000... | Csound | 2 | A29586a/Kirikiroid2 | cocos/kr2/cocosstudio/ui/comctrl/CheckBoxItem.csd | [
"BSD-3-Clause"
] |
/****************************************************************************
*
* (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 | 4 | uav-operation-system/qgroundcontrol | src/FlightMap/Widgets/QGCPitchIndicator.qml | [
"Apache-2.0"
] |
// This exists purely to redirect legacy challenge paths to /learn that could
// exist in the web (posts, url shares, etc).
import { Router, RouteComponentProps } from '@reach/router';
import { navigate, withPrefix } from 'gatsby';
import React from 'react';
import toLearnPath from '../utils/to-learn-path';
type Rou... | TypeScript | 4 | fcastillo-serempre/freeCodeCamp | client/src/pages/challenges.tsx | [
"BSD-3-Clause"
] |
fun main () : transaction page =
let
fun handler r = return <xml>
<head>
<meta name={blessMeta r.Nam} content={r.Content}/>
<title>Testing <meta> tags</title>
</head>
<body>
<p>Did it work?</p>
</body>
</xml>
fun... | UrWeb | 3 | apple314159/urweb | tests/meta.ur | [
"BSD-3-Clause"
] |
import time
import os
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from nw_util import *
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_argument("nwapp=" + os.path.dirname(os.path.abspath(__fi... | Python | 3 | frank-dspeed/nw.js | test/sanity/issue7609-mixed-context/test.py | [
"MIT"
] |
<div class="click_detector">
{{#if data_to_expand}}
<div class="{{class_value}} jta_value {{classname}}">
<span data-json_data="{{data_to_expand}}" class="jta_object">
<span class="jta_arrow jta_arrow_h"></span>
{{print_safe value}}
</span>
</div>
{{el... | Handlebars | 2 | zadcha/rethinkdb | admin/static/handlebars/dataexplorer_result_json_table_td_value_content.hbs | [
"Apache-2.0"
] |
%MOIN*%
%FSLAX34Y34*%
%IPPOS*%
G04 --Define apertures--*
G04 Frame aperture --*
%ADD10C,0.010*%
G04 Fudicial Copper apertures--*
G04 0.5mm = 0.01968 *
%ADD11C,0.03937*%
G04 1mm = 0.03937 *
G04 Fudicial Mask apertures--*
G04 double copper diameter--*
G04 1mm = 0.03937*
%ADD12C,0.078740*%
G04 2mm = 0.078740 *
G04 D... | Mask | 4 | Surfndez/femto-beacon | Eagle_Files/FemtoBeacon_r2.0.0/fabrication-panelized-oshpark/femptobeacon-5x10-panel/femtobeacon-r2.0.1.merged.frame.mask | [
"MIT"
] |
/**
* XchgBuffer.x10
*
* Rudra Distributed Learning Platform
*
* Copyright (c) IBM Corporation 2016
* 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... | X10 | 5 | milthorpe/rudra | x10/src/rudra/util/XchgBuffer.x10 | [
"BSD-3-Clause"
] |
class TestObj extends BaseMapObject
{
function constructor(mapObj, map, x, y)
{
base.constructor(mapObj, map, "Child test");
mBase.mXPos = x + 30;
mBase.mYPos = y;
base.LoadAnimation("SLAM.BAN_2020_AePc_1");
base.SetAnimation("SLAM.BAN_2020_AePc_1");
}
function U... | Squirrel | 3 | mouzedrift/alive | data/scripts/slam_door.nut | [
"MIT"
] |
1 2 1 1 714 Helvetia fault
6.4 2.5640364E-5 1.0
60.0 17.320515 0.0E+0 13.634714
2
45.52151 -122.89687
45.63561 -122.96101
1 3 1 1 834 Paulina Marsh fault
6.26 8.410996E-4 1.0
50.0 19.58112 0.0E+0 10.417054
5
43.23133 ... | Augeas | 3 | pmpowers-usgs/opensha | src/main/java/org/opensha/sha/earthquake/rupForecastImpl/WGCEP_UCERF_2_Final/data/NearCA_NSHMP/orwa.65.aug | [
"Apache-2.0"
] |
ISpec do(
;; This implementation is a straight port of the JUnit ComparisonCompactor
ComparisonCompactor = Origin mimic do(
ELLIPSIS = "..."
DELTA_END = "]"
DELTA_START = "["
format = method(message, expected, actual,
formatted = ""
if(!message nil? && message != "",
formatted ... | Ioke | 5 | olabini/ioke | lib/ioke/ispec/comparisonCompactor.ik | [
"ICU",
"MIT"
] |
// aux-build:incremental_proc_macro_aux.rs
// revisions: cfail1 cfail2
// build-pass (FIXME(62277): could be check-pass?)
// This test makes sure that we still find the proc-macro registrar function
// when we compile proc-macros incrementally (see #47292).
#![crate_type = "rlib"]
#[macro_use]
extern crate increment... | Rust | 4 | Eric-Arellano/rust | src/test/incremental/incremental_proc_macro.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.