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 |
|---|---|---|---|---|---|
<app-foo></app-foo>
<app-bar></app-bar>
| HTML | 0 | fuelingtheweb/prettier | tests/html_tags/custom-element.html | [
"MIT"
] |
// check sanity of vsx aligned ld/st
// https://github.com/opencv/opencv/issues/13211
#include <altivec.h>
#undef bool
#define vsx_ld vec_vsx_ld
#define vsx_st vec_vsx_st
template<typename T>
static void fill(T& d, int from = 0, int to = 16)
{
for (int i = from; i < to; i++)
d[i] = i;
}
template<typename... | C++ | 4 | thisisgopalmandal/opencv | cmake/checks/runtime/cpu_vsx_aligned.cpp | [
"BSD-3-Clause"
] |
--TEST--
Object naming collision error: interface/interface
--FILE--
<?php
interface A { }
interface A { }
?>
--EXPECTF--
Fatal error: Cannot declare interface A, because the name is already in use in %s on line %d
| PHP | 2 | thiagooak/php-src | Zend/tests/name_collision_04.phpt | [
"PHP-3.01"
] |
#include <torch/csrc/cuda/python_nccl.h>
#include <pybind11/pybind11.h>
#include <torch/csrc/cuda/nccl.h>
#include <torch/csrc/DynamicTypes.h>
#include <torch/csrc/Exceptions.h>
#include <torch/csrc/THP.h>
#include <torch/csrc/Types.h>
#include <torch/csrc/cuda/THCP.h>
#include <ATen/core/functional.h>
#include <c10/... | C++ | 4 | Hacky-DH/pytorch | torch/csrc/cuda/python_nccl.cpp | [
"Intel"
] |
export { default } from './ListItemSecondaryAction';
export * from './ListItemSecondaryAction';
export { default as listItemSecondaryActionClasses } from './listItemSecondaryActionClasses';
export * from './listItemSecondaryActionClasses';
| TypeScript | 2 | good-gym/material-ui | packages/material-ui/src/ListItemSecondaryAction/index.d.ts | [
"MIT"
] |
xof 0303txt 0032
AnimTicksPerSecond {
24;
}
Frame pCylinder1 {
FrameTransformMatrix {
1.000000,0.000000,-0.000000,0.000000,0.000000,1.000000,-0.000000,0.000000,-0.000000,-0.000000,1.000000,0.000000,0.000000,0.000000,-0.000000,1.000000;;
}
Mesh pCylinderShape1 {
1720;
0.951057; -... | Logos | 3 | sercand/assimp | test/models/X/anim_test.x | [
"BSD-3-Clause"
] |
// @declaration: true
class C {
static D = class extends C {};
} | TypeScript | 3 | nilamjadhav/TypeScript | tests/cases/compiler/classExpressionInClassStaticDeclarations.ts | [
"Apache-2.0"
] |
350 0.3 sine
440 0.3 sine +
| SourcePawn | 1 | aleatoricforest/Sporth | examples/dialtone.sp | [
"MIT"
] |
class Foo
{
Void f(Int a)
{
b := 2
a := true
b := true;
3.times |Int a| { return };
2.times |->| { |Int x, Int b| {} };
|->| { a := true }.callList;
|->| { |->| { b := 4 } }.callList;
}
} | Fantom | 0 | fanx-dev/fanx | compiler/testCompilerx/res/closure/testAlreadyDefined.fan | [
"AFL-3.0"
] |
{{#each users}}
<li>{{user}} <span>{{address/address}}</span><li>
{{/each}}
| Harbour | 2 | blacktail/real-edit | public_src/scripts/edit/templates/users.hb | [
"MIT"
] |
exec("swigtest.start", -1);
try
d = new_D();
catch
swigtesterror();
end
try
delete_D(d);
catch
swigtesterror();
end
try
e = new_E();
catch
swigtesterror();
end
try
delete_E(e);
catch
swigtesterror();
end
exec("swigtest.quit", -1);
| Scilab | 3 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/abstract_virtual_runme.sci | [
"BSD-3-Clause"
] |
#![feature(const_fn_trait_bound)]
#![feature(const_trait_impl)]
pub const fn equals_self<T: PartialEq>(t: &T) -> bool {
*t == *t
//~^ ERROR calls in constant functions are limited to constant functions
}
fn main() {}
| Rust | 4 | mbc-git/rust | src/test/ui/rfc-2632-const-trait-impl/call-generic-method-fail.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
fetch:xml('doc.xml', map {
'catfile': 'cat.xml',
'dtd': true()
})
| XQuery | 3 | mrdziuban/basex | basex-core/src/test/resources/catalog/fetch.xq | [
"BSD-3-Clause"
] |
package io.cucumber.java.${lang};
import io.cucumber.java.StepDefinitionAnnotations;
import io.cucumber.java.StepDefinitionAnnotation;
import org.apiguardian.api.API;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.R... | Groovy Server Pages | 5 | nddipiazza/cucumber-jvm | java/src/main/groovy/annotation.java.gsp | [
"MIT"
] |
use crate::ty;
use rustc_data_structures::fx::FxHashMap;
use rustc_hir::def::Res;
use rustc_hir::def_id::LocalDefId;
use rustc_macros::HashStable;
use rustc_span::symbol::Ident;
use rustc_span::Span;
use std::fmt::Debug;
/// This is the replacement export map. It maps a module to all of the exports
/// within.
pub t... | Rust | 4 | mbc-git/rust | compiler/rustc_middle/src/hir/exports.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#lang scribble/manual
@begin[(require "../utils.rkt" scribble/example racket/sandbox)
(require (for-label (only-meta-in 0 [except-in typed/racket for]))
(for-label (only-in racket/unit tag unit/c)))]
@(define the-eval (make-base-eval))
@(the-eval '(require (except-in typed/racket #%top-interaction #%mod... | Racket | 5 | SnapCracklePopGone/typed-racket | typed-racket-doc/typed-racket/scribblings/reference/typed-units.scrbl | [
"Apache-2.0",
"MIT"
] |
QT.xml_private.VERSION = 5.9.4
QT.xml_private.name = QtXml
QT.xml_private.module =
QT.xml_private.libs = $$QT_MODULE_LIB_BASE
QT.xml_private.includes = $$QT_MODULE_INCLUDE_BASE/QtXml/5.9.4 $$QT_MODULE_INCLUDE_BASE/QtXml/5.9.4/QtXml
QT.xml_private.frameworks =
QT.xml_private.depends = core_private xml
QT.xml_private.use... | QMake | 1 | PLohrmannAMD/renderdoc | qrenderdoc/3rdparty/qt/x64/mkspecs/modules/qt_lib_xml_private.pri | [
"MIT"
] |
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
inherit eutils
DESCRIPTION="The Servo web browser"
HOMEPAGE="https://servo-builds.s3.amazonaws.com/index.html"
MY_SRC_URI="https://servo-builds.s3.amazonaws.com/nightly/linux/servo-latest.tar.gz"
LIC... | Gentoo Ebuild | 4 | gentoo/gentoo-rust | www-client/servo-bin/servo-bin-9999.ebuild | [
"BSD-3-Clause"
] |
#! /bin/sh /usr/share/dpatch/dpatch-run
## 53_fix_deprecated_widgets.dpatch by Davide Puricelli <evo@debian.org>
##
## Description: Fix FTBFS errors due to new GTK 2.20 widgets names.
@DPATCH@
diff -Naur xchat-2.8.6foo/src/fe-gtk/fe-gtk.c xchat-2.8.6/src/fe-gtk/fe-gtk.c
--- xchat-2.8.6foo/src/fe-gtk/fe-gtk.c 2010-04-0... | Darcs Patch | 3 | crystalfontz/openembedded | recipes/xchat/files/53_fix_deprecated_widgets.dpatch | [
"MIT"
] |
#! /bin/sh /usr/share/dpatch/dpatch-run
## 11_string_header.dpatch by Luciano Bello <luciano@linux.org.ar>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Aviod the "implicit declaration of function 'str*'" warning
@DPATCH@
diff -urNad dsniff-2.4b1+debian~/arp.c dsniff-2.4b1+debian/arp.c... | Darcs Patch | 3 | acheong08/dsniff | debian/patches/11_string_header.dpatch | [
"BSD-3-Clause"
] |
const sizes* = [
643584,
140800,
802,
2464928,
488122,
1161601,
861051,
1413,
389,
2412032,
328704,
323488,
484864,
31232,
38400,
87552,
328704,
242176,
55808,
32256,
15360,
15080,
567074,
1390,
1390,
366080,
186536,
314368,
4154,
3017582,
62658,
3874662,... | Nimrod | 0 | JohnAD/Nim | tests/fragmentation/data.nim | [
"MIT"
] |
# Parameters
param T := read "retailer.dat" as "1n" use 1 comment "#";
set Ts := {1..T};
param piV := read "retailer.dat" as "3n" use 1 comment "#";
set Ns := {read "retailer.dat" as "<n+>" skip 1 use 1 comment "#"};
param N := card(Ns);
param pMin[Ns*Ts] := read "retailer.dat" as "<1n,2n> 3n" skip 2 use (N*T... | Zimpl | 5 | sebMathieu/dsima | simulator/models/retailer-baseline.zpl | [
"BSD-3-Clause"
] |
<!doctype html>
<html>
<head>
<script type="text/javascript" src="../../test.js"></script>
<style>
div {
display: inline-block;
width: 100px;
height: 100px;
border: 15px solid blue;
padding: 10px;
margin: 5px;
background-image: url(../../assets/image.jpg);
}
</style>
</he... | HTML | 3 | abhijit-paul/html2canvas | tests/reftests/background/origin.html | [
"MIT"
] |
"""Tests for the sentry integration."""
| Python | 0 | domwillcode/home-assistant | tests/components/sentry/__init__.py | [
"Apache-2.0"
] |
typeMismatch=Field {0} did not have correct type
age=Age
| INI | 0 | nicchagil/spring-framework | spring-context/src/test/resources/org/springframework/validation/messages2.properties | [
"Apache-2.0"
] |
#! /bin/sh -e
dir=
if [ $# -eq 3 -a "$2" = '-d' ]; then
pdir="-d $3"
dir="$3/"
elif [ $# -ne 1 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
case "$1" in
-patch)
patch $pdir -f --no-backup-if-mismatch -p0 < $0
;;
-unpatch)
patch $... | Darcs Patch | 4 | JrCs/opendreambox | recipes/gcc/gcc-4.3.4/debian/hurd-changes.dpatch | [
"MIT"
] |
# @TEST-EXEC: zeek -b -C -r $TRACES/rfb/vnc-scanner.pcap %INPUT
# @TEST-EXEC: btest-diff rfb.log
@load base/protocols/rfb
| Bro | 2 | yaplej/bro | testing/btest/scripts/base/protocols/rfb/vnc-scanner.bro | [
"Apache-2.0"
] |
client_conf=Konfigurationsfil för NIS-klient,0
nsswitch_conf=Switchfil för NIS-klient,0
securenets=Pålitlig nätverksfil,3,Ingen
| SystemVerilog | 2 | GalaxyGFX/webmin | nis/config.info.sv | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<RootNamespace>Loops</RootNamespace>
<OutputType>exe</OutputType>
<AssemblyName>Loops</AssemblyName>
<AllowGlobals>False</AllowGlobals>
<AllowLegacyOutParams>False</AllowLegacyOutParams>
... | Oxygene | 2 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Oxygene/Loops.oxygene | [
"MIT"
] |
// MIR for `main` after ConstProp
fn main() -> () {
let mut _0: (); // return place in scope 0 at $DIR/const_allocation2.rs:4:11: 4:11
let _1: &[(std::option::Option<i32>, &[&u8])]; // in scope 0 at $DIR/const_allocation2.rs:5:5: 5:8
let mut _2: &&[(std::option::Option<i32>, &[&u8])]; ... | Mirah | 3 | mbc-git/rust | src/test/mir-opt/const_allocation2.main.ConstProp.after.64bit.mir | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#ifndef PHP_LMDB_H
#define PHP_LMDB_H
#if DBA_LMDB
#include "php_dba.h"
DBA_FUNCS(lmdb);
#endif
#endif
| C | 2 | thiagooak/php-src | ext/dba/php_lmdb.h | [
"PHP-3.01"
] |
// run-pass
#![allow(dead_code)]
#![allow(unused_mut)]
#![allow(unused_variables)]
#![deny(non_snake_case)]
#![feature(stmt_expr_attributes)]
fn main() {
let a = 413;
#[cfg(unset)]
let a = ();
assert_eq!(a, 413);
let mut b = 612;
#[cfg(unset)]
{
b = 1111;
}
assert_eq!(b, 61... | Rust | 4 | Eric-Arellano/rust | src/test/ui/cfg/cfg_stmt_expr.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
PREFIX : <http://example.org/>
SELECT ?x
FROM NAMED <http://example.org/graph1>
WHERE {}
| SPARQL | 2 | yanaspaula/rdf4j | testsuites/sparql/src/main/resources/testcases-sparql-1.0-w3c/data-r2/syntax-sparql2/syntax-dataset-02.rq | [
"BSD-3-Clause"
] |
#define IDS_APP_TITLE 101
#define IDM_ABOUT 102
#define IDC_FANCYZONESDRAWLAYOUTTEST 103
| C | 2 | szlatkow/PowerToys | tools/FancyZones_DrawLayoutTest/Resource.h | [
"MIT"
] |
// run-pass
#![allow(non_camel_case_types)]
use std::string::String;
#[derive(PartialEq)]
enum t { a, b(String), }
fn make(i: isize) -> t {
if i > 10 { return t::a; }
let mut s = String::from("hello");
// Ensure s is non-const.
s.push_str("there");
return t::b(s);
}
pub fn main() {
let mut ... | Rust | 4 | Eric-Arellano/rust | src/test/ui/for-loop-while/while-prelude-drop.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
/* Copyright 2019 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 | 5 | yage99/tensorflow | tensorflow/core/grappler/utils/graph_view_internal.h | [
"Apache-2.0"
] |
/*
Copyright 2018 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 applicable law or agreed to in writing, ... | Go | 4 | columbus9963/kubernetes | cmd/kube-controller-manager/app/options/endpointcontroller.go | [
"Apache-2.0"
] |
#test {
marker-type: ellipse;
line-offset: 2;
text-name: [name];
text-face-name: Arial;
text-largest-bbox-only: true;
}
| CartoCSS | 3 | nimix/carto | test/errorhandling/issue_474.mss | [
"Apache-2.0"
] |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NW_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_
#define NW_BROWSER_UI_AUTOFILL_CHROME_AUTOFILL_CLIENT_H_
#include "base/callback.h"
#include "ba... | C | 4 | namaljayathunga/nw.js | src/browser/nw_autofill_client.h | [
"MIT"
] |
/*
* This file is part of the X10 project (http://x10-lang.org).
*
* This file is licensed to You under the Eclipse Public License (EPL);
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.opensource.org/licenses/eclipse-1.0.php
*
*... | X10 | 5 | octonion/examples | languages/x10/StructSpheres.x10 | [
"MIT"
] |
(set-info :smt-lib-version 2.6)
(set-logic QF_UFLRA)
(set-info :source |CPAchecker with k-induction on SV-COMP14 program using MathSAT5, submitted by Philipp Wendler, http://cpachecker.sosy-lab.org|)
(set-info :category "industrial")
(set-info :status unsat)
(define-fun _1 () Bool true)
(declare-fun |main::lk3@2| () ... | SMT | 2 | livinlife6751/infer | sledge/test/smt/QF_UFLRA/cpachecker-induction-svcomp14/cpachecker-induction.test_locks_7_true-unreach-call_false-termination.c.smt2 | [
"MIT"
] |
export * as a from "./subdir/a.ts";
| TypeScript | 3 | Preta-Crowz/deno | cli/tests/bundle/file_tests-fixture08.ts | [
"MIT"
] |
(* Lens for the mount provider
Fork of the upstream Fstab lens. The main difference is that
comma-separated options and vfstype are not parsed into individual
entries, and are rather kept as one string
*)
module Mount_Fstab =
let sep_tab = Sep.tab
let sep_spc = Sep.space
let comma = Sep.comma
let e... | Augeas | 5 | puppetlabs/libral | data/lenses/mount_fstab.aug | [
"Apache-2.0"
] |
// adapted from the book. You can find the original here:
// https://github.com/githwxi/ATS-Postiats/blob/master/doc/EXAMPLE/MISC/wclines.dats
staload "SATS/utils.sats"
staload "SATS/filetype.sats"
staload "SATS/error.sats"
staload "prelude/SATS/pointer.sats"
staload "libats/libc/SATS/stdio.sats"
staload UN = "prelude/... | ATS | 5 | lambdaxymox/polyglot | DATS/count-loop.dats | [
"BSD-3-Clause"
] |
/* Copyright (c) 2017-2019 Netronome Systems, Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
;TEST_INIT_EXEC nfp-reg mereg:i32.me0.XferIn_32=0xf
;TEST_INIT_EXEC nfp-reg mereg:i32.me0.XferIn_33=0xdeadbeef
#include "actions_harness.uc"
#include "pkt_ipv4_opt_icmp_csums_zero_68B_x80.uc"
#i... | UnrealScript | 3 | pcasconnetronome/nic-firmware | test/datapath/actions_csum_update_ipv4_opt_icmp_68B_x80_test.uc | [
"BSD-2-Clause"
] |
#!/bin/bash
# This script installs CCache with CUDA support.
# Example usage:
# ./ccache_setup.sh --path /installed/folder
set -e
shopt -s expand_aliases
# Setup the proxy
alias with_proxy="HTTPS_PROXY=http://fwdproxy:8080 HTTP_PROXY=http://fwdproxy:8080 FTP_PROXY=http://fwdproxy:8080 https_proxy=http://fwdproxy... | Shell | 4 | Hacky-DH/pytorch | scripts/fbcode-dev-setup/ccache_setup.sh | [
"Intel"
] |
<nav class="side-nav">
<h1><__trans phrase="Recent Entries"></h1>
<ul>
<mt:entries lastn="5">
<li><a href="<mt:entrypermalink>"><mt:entrytitle></a></li>
</mt:entries>
</ul>
</nav>
<nav class="side-nav">
<h1><__trans phrase="... | MTML | 3 | movabletype/mt-theme-SimpleCorporate | themes/simplecorporate/templates/blog_sidemenu.mtml | [
"MIT"
] |
// Copyright 2006-2015 Las Venturas Playground. All rights reserved.
// Use of this source code is governed by the GPLv2 license, a copy of which can
// be found in the LICENSE file.
// Todo: they all need to be converted to dialogs (DIALOG_STYLE_LIST)
new const airportPrice = GetEconomyValue(AirportFlight);
... | PAWN | 3 | EPIC-striker/playground | pawn/Interface/menus.pwn | [
"MIT"
] |
import * as React from 'react';
import { OverridableStringUnion } from '@mui/types';
import { unstable_createCssVarsProvider as createCssVarsProvider } from '@mui/system';
// Test design system layer
type DesignSystemColorScheme = 'light' | 'dark';
interface Colors {
palette: {
primary: {
500: string;
... | TypeScript | 4 | Gethomely/material-ui | packages/mui-system/src/cssVars/createCssVarsProvider.spec.tsx | [
"MIT"
] |
#include "store_ops.h"
#include "caffe2/core/blob_serialization.h"
namespace caffe2 {
constexpr auto kBlobName = "blob_name";
constexpr auto kAddValue = "add_value";
StoreSetOp::StoreSetOp(const OperatorDef& operator_def, Workspace* ws)
: Operator<CPUContext>(operator_def, ws),
blobName_(
GetSin... | C++ | 5 | Hacky-DH/pytorch | caffe2/distributed/store_ops.cc | [
"Intel"
] |
type MixedArtist implements Node, Entity & Releasable {
# The ID of an object
id: ID!
# The MBID of the entity.
mbid: MBID!
# A list of recordings linked to this entity.
recordings(after: String, first: Int): RecordingConnection
# A list of releases linked to this entity.
releases(
# Filter by on... | GraphQL | 4 | fuelingtheweb/prettier | tests/graphql_interface/object_type_def_mixed_syntax.graphql | [
"MIT"
] |
# RUN: llc -march=amdgcn -run-pass=instruction-select -verify-machineinstrs -o - %s | FileCheck %s -check-prefixes=GCN
---
name: bitcast
legalized: true
regBankSelected: true
tracksRegLiveness: true
# GCN-LABEL: name: bitcast
# GCN: [[A:%[0-9]+]]:vgpr_32 = COPY $vgpr0
# GCN: S_ENDPGM 0, implicit [[A... | Mirah | 3 | medismailben/llvm-project | llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-bitcast.mir | [
"Apache-2.0"
] |
/* B.xs
*
* Copyright (c) 1996 Malcolm Beattie
*
* You may distribute under the terms of either the GNU General Public
* License or the Artistic License, as specified in the README file.
*
*/
#define PERL_NO_GET_CONTEXT
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#ifdef PERL_OBJECT
#undef PL_op_nam... | XS | 3 | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | perl/ext/b/b.xs | [
"Apache-1.1"
] |
: main
7.0 3.25 fmod pop
6.0 3.0 fmod pop
-6.0 3.0 fmod pop
-7.0 3.25 fmod pop
;
| MUF | 1 | revarbat/mufsim | tests/fmod.muf | [
"BSD-2-Clause"
] |
#define SHADER_NAME PHASER_MESH_VS
precision mediump float;
attribute vec3 aVertexPosition;
attribute vec3 aVertexNormal;
attribute vec2 aTextureCoord;
uniform mat4 uViewProjectionMatrix;
uniform mat4 uModelMatrix;
uniform mat4 uNormalMatrix;
varying vec2 vTextureCoord;
varying vec3 vNormal;
varying vec3 vPosition;... | GLSL | 4 | dreammyboy/phaser | src/renderer/webgl/shaders/src/Mesh.vert | [
"MIT"
] |
#![feature(box_syntax)]
fn main() {
let x: Box<_> = box 1;
let f = move|| {
let _a = x;
drop(x);
//~^ ERROR: use of moved value: `x`
};
f();
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/issues/issue-10398.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
----------------------------------------------------------------------------------
-- Engineer: Mike Field <hamster@snap.net.nz>
--
-- I've put this together for my personal use. You are welcome to use it however
-- your like. Just because it fits my needs it may not fit yours, if so, bad luck.
--
-- Description... | VHDL | 4 | AmigaPorts/amiga2000-gfxcard | attic/PapPro-sdram_verilog_v0.1/capture.vhd | [
"MIT",
"IJG",
"Unlicense"
] |
[Exposed=Window,
HTMLConstructor]
interface HTMLTitleElement : HTMLElement {
[CEReactions] attribute DOMString text;
};
| WebIDL | 3 | corsarstl/Learn-Vue-2 | vue-testing/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTitleElement.webidl | [
"MIT"
] |
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct Uniforms {
half4 colorGreen;
half4 colorRed;
half unknownInput;
};
struct Inputs {
};
struct Outputs {
half4 sk_FragColor [[color(0)]];
};
bool inside_while_loop_b(Uniforms _uniforms) {
while (_uniforms.unknownInput == 123.... | Metal | 3 | fourgrad/skia | tests/sksl/shared/ReturnsValueOnEveryPathES3.metal | [
"BSD-3-Clause"
] |
#define SHADER_NAME PHASER_POINTLIGHT_FS
precision mediump float;
uniform vec2 uResolution;
uniform float uCameraZoom;
varying vec4 lightPosition;
varying vec4 lightColor;
varying float lightRadius;
varying float lightAttenuation;
void main ()
{
vec2 center = (lightPosition.xy + 1.0) * (uResolution.xy * 0.5);
... | GLSL | 4 | dreammyboy/phaser | src/renderer/webgl/shaders/src/PointLight.frag | [
"MIT"
] |
// input: []
// output: 9
package {
public class PrivateVoidCall {
public static function main():int{
var f:OtherClass = new OtherClass();
f.func();
return 9;
}
}
}
class OtherClass {
private function pf():void {
;
}
public function func():void {
this.pf();... | ActionScript | 3 | hackarada/youtube-dl | test/swftests/PrivateVoidCall.as | [
"Unlicense"
] |
-- ==============================================================
-- RTL generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and OpenCL
-- Version: 2020.2
-- Copyright (C) 1986-2020 Xilinx, Inc. All Rights Reserved.
--
-- ===========================================================
library IEEE;
use IEEE.st... | VHDL | 4 | hito0512/Vitis-AI | Whole-App-Acceleration/apps/resnet50/build_flow/DPUCVDX8G_vck190/vck190_platform/hw/source/ip/isppipeline_accel/hdl/vhdl/AWBNormalizationkern.vhd | [
"Apache-2.0"
] |
new class FlyingObstacle : Obstacle {
enum {
LEFT, RIGHT, TOP, BOTTOM
}
new method __init__(pos, mode) {
this.pos = pos;
new dynamic tmp = randint(MIN_OBSTACLE_SIZE, MAX_OBSTACLE_SIZE);
this.size = Vector(tmp, tmp);
this.mode = mode;
this.velocity = ... | Opal | 4 | thatsOven/pong-plus-plus | FlyingObstacle.opal | [
"MIT"
] |
output "leader_public_ip" {
value = module.loadtest.leader_public_ip
description = "The public IP address of the leader server instance."
}
output "leader_private_ip" {
value = module.loadtest.leader_private_ip
description = "The private IP address of the leader server instance."
}
output "nodes_publi... | HCL | 4 | KevinHoi128/locust | examples/terraform/aws/output.tf | [
"MIT"
] |
mean ← +/÷≢
a ← 2 3 4 2 4 6 3 5
⎕ ← mean a
meandev ← ⊢ - +/ ÷ ≢
⎕ ← meandev a
var ← mean ({⍵×⍵}⊢-+/÷≢)
stddev ← {⍵*0.5} var
all ← mean, var, stddev
⎕ ← all a ⍝ ->
⎕ ← (⍳{⍺/⍵}⍳)3 ⍝ -> 1 2 2 3 3 3
⍝ ⎕ ← (⍳(/∘⊢)⍳)3
⍝ ⎕ ← (2 2 3/⍳)3 ok now
0
| APL | 2 | melsman/apltail | tests/trains1.apl | [
"MIT"
] |
Red/System [
Title: "Email! datatype runtime functions"
Author: "Nenad Rakocevic"
File: %email.reds
Tabs: 4
Rights: "Copyright (C) 2016-2018 Red Foundation. All rights reserved."
License: {
Distributed under the Boost Software License, Version 1.0.
See https://github.com/red/red/blob/master/red-system/... | Red | 5 | GalenIvanov/red | runtime/datatypes/email.reds | [
"BSL-1.0",
"BSD-3-Clause"
] |
// sdk stuff
import structs/[HashMap, ArrayList]
import ../io/TabbedWriter
// our stuff
import ../frontend/[Token, BuildParams]
import Expression, Type, Visitor, TypeDecl, Node, FunctionDecl,
FunctionCall, VariableAccess, BaseType, VariableDecl
import tinker/[Response, Resolver, Trail, Errors]
CoverDecl: clas... | ooc | 4 | shamanas/rock | source/rock/middle/CoverDecl.ooc | [
"MIT"
] |
# -*- Python -*-
"""Skylark macros for system libraries.
"""
SYSTEM_LIBS_ENABLED = %{syslibs_enabled}
SYSTEM_LIBS_LIST = [
%{syslibs_list}
]
def if_any_system_libs(a, b=[]):
"""Conditional which evaluates to 'a' if any system libraries are configured."""
if SYSTEM_LIBS_ENABLED:
return a
else:
return b... | Smarty | 4 | abhaikollara/tensorflow | third_party/systemlibs/build_defs.bzl.tpl | [
"Apache-2.0"
] |
\begin{code}
module Issue97 where
\end{code}
| Literate Agda | 0 | shlevy/agda | test/Succeed/Issue97.lagda | [
"BSD-3-Clause"
] |
'reach 0.1';
const app21 = (f) => {
return f(2, 1);
};
export const main = Reach.App(
{}, [], () => {
assert(app21(add) == 3);
assert(app21(sub) == 1);
assert(app21(mul) == 2);
assert(app21(div) == 2);
assert(app21(mod) == 0);
assert(!app21(lt));
assert(!app21(le));
assert(!app21(e... | RenderScript | 4 | chikeabuah/reach-lang | hs/t/y/operator_aliases.rsh | [
"Apache-2.0"
] |
%{
/*-------------------------------------------------------------------------
*
* exprparse.y
* bison grammar for a simple expression syntax
*
* Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* src/bin/pgbench/exp... | Yacc | 5 | bradfordb-vmware/gpdb | src/bin/pgbench/exprparse.y | [
"PostgreSQL",
"Apache-2.0"
] |
-- Macro Scripts File
-- Created: Nov 17 1998
-- Author: Frank DeLise
-- Macro Scripts for Shapes
--***********************************************************************************************
-- MODIFY THIS AT YOUR OWN RISK
macroScript Lines
category:"Shapes"
internalcategory:"Shapes" ... | MAXScript | 3 | 89096000/MaxScript | Modelling/softinstance/treeview/icons/Macro_Shapes.mcr | [
"MIT"
] |
//This file is part of "GZE - GroundZero Engine"
//The permisive licence allow to use GZE for free or commercial project (Apache License, Version 2.0).
//For conditions of distribution and use, see copyright notice in Licence.txt, this license must be included with any distribution of the code.
package {
import GZ.... | Redcode | 2 | VLiance/GZE | src/Lib_GZ/Base/Container/Vector/Vec4.cw | [
"Apache-2.0"
] |
module Language.PureScript.CST.Flatten where
import Prelude
import Data.DList (DList)
import Language.PureScript.CST.Types
import Language.PureScript.CST.Positions
flattenModule :: Module a -> DList SourceToken
flattenModule m@(Module _ a b c d e f g) =
pure a <>
flattenName b <>
foldMap (flattenWrapped (flatt... | Haskell | 4 | dunhamsteve/purescript | lib/purescript-cst/src/Language/PureScript/CST/Flatten.hs | [
"BSD-3-Clause"
] |
particle_system snow
{
src = "assets/particles/snowflake.png"
blendmode = add
gravity = 0,-1,0
velocity = -2.4,-0.1,0
lifetime = 5
lifetime_variance = 0
colour = 255,255,255,255
rotation_speed = 5
scale_affector = 0
size = 0.03
emit_rate = 30
spawn_radius = 0.8
release_count = 0
} | Component Pascal | 4 | fallahn/crogine | samples/threat_level/assets/particles/snow.cps | [
"FTL",
"Zlib"
] |
ScalaDependencyInjection:Dependency Injection with Guice
ScalaCompileTimeDependencyInjection:Compile Time Dependency Injection | TeX | 2 | AurelienRichez/playframework | documentation/manual/working/scalaGuide/main/dependencyinjection/index.toc | [
"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/security/fuzzing/checkpoint_reader_fuzz.cc | [
"Apache-2.0"
] |
// Check that `where Self::Output: Copy` is turned into a bound on `Op::Output`.
//check-pass
trait Op
where
Self::Output: Copy,
{
type Output;
}
fn duplicate<T: Op>(x: T::Output) -> (T::Output, T::Output) {
(x, x)
}
fn main() {}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/associated-type-bounds/assoc-type-bound-through-where-clause.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
<cfcomponent>
<cffunction name="init">
<cfscript>
my = structnew(); // cflint ignore:MISSING_VAR
my.somekey = "";
</cfscript>
</cffunction>
</cfcomponent> | ColdFusion CFC | 4 | tonym128/CFLint | src/test/resources/com/cflint/tests/Ignores/ignore_489.cfc | [
"BSD-3-Clause"
] |
@echo off
setlocal
for /f "delims=" %%i in ('rustc --print=sysroot') do set rustc_sysroot=%%i
set rust_etc=%rustc_sysroot%\lib\rustlib\etc
windbg -c ".nvload %rust_etc%\intrinsic.natvis; .nvload %rust_etc%\liballoc.natvis; .nvload %rust_etc%\libcore.natvis;" %*
| Batchfile | 3 | Eric-Arellano/rust | src/etc/rust-windbg.cmd | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
{:objects
{:Query
{:fields
{:hello {:type (non-null String)
:resolve :hello}}}}} | edn | 4 | hagenek/lacinia | dev-resources/non-chatty-library-failures.edn | [
"Apache-2.0"
] |
#![feature(let_else)]
// Slightly different from explicit-mut-annotated -- this won't show an error until borrowck.
// Should it show a type error instead?
fn main() {
let Some(n): &mut Option<i32> = &mut &Some(5i32) else {
//~^ ERROR cannot borrow data in a `&` reference as mutable
return
};
... | Rust | 3 | ohno418/rust | src/test/ui/let-else/let-else-binding-explicit-mut-borrow.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
"""The Microsoft Teams component."""
| Python | 0 | domwillcode/home-assistant | homeassistant/components/msteams/__init__.py | [
"Apache-2.0"
] |
/*
* Copyright (c) 2021, Leon Albrecht <leon2002.la@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <bits/stdint.h>
#include <sys/cdefs.h>
__BEGIN_DECLS
typedef uint16_t n_short;
typedef uint32_t n_long;
typedef uint32_t n_time;
__END_DECLS
| C | 4 | r00ster91/serenity | Userland/Libraries/LibC/netinet/in_systm.h | [
"BSD-2-Clause"
] |
class Bignum {
"""
Class for large integer values in Fancy.
"""
include: Number
ruby_aliases: [ '==, '-, '+, '*, '/, '<, '>, '<=, '>=, '===, '**, '&, '<<, '>> ]
forwards_unary_ruby_methods
alias_method: 'to_s: for: 'to_s
alias_method: 'modulo: for: 'modulo
alias_method: ":%" for: "modulo:" # prep... | Fancy | 4 | bakkdoor/fancy | lib/rbx/bignum.fy | [
"BSD-3-Clause"
] |
# Dict Literals and Line Breaking
var d1 = {
}
var d2 = {}
var d3 = {name: 'bob'}
var d4 = {
name: 'bob'}
var d5 = {name: 'bob'
}
var d6 = {name: 'bob',
}
var commas0 = {
name: 'bob'
age: 10
}
var commas1 = {
name: 'bob',
age: 10
}
var commas2 = {
name: 'bob',
age: 10,
}
var lines = {
# Continua... | Tea | 3 | Schweinepriester/oil | tea/testdata/dict.tea | [
"Apache-2.0"
] |
<?xml version="1.0" encoding="UTF-8"?>
<!-- generated with COPASI 4.23 (Build 178) (http://www.copasi.org) at 2018-03-30 20:43:02 UTC -->
<?oxygen RNGSchema="http://www.copasi.org/static/schema/CopasiML.rng" type="xml"?>
<COPASI xmlns="http://www.copasi.org/static/schema" versionMajor="4" versionMinor="23" versionDevel... | Component Pascal | 5 | SzVarga/COPASI | TestSuite/events/EventTest30.cps | [
"Artistic-2.0"
] |
sleep 2
t app appmode photo_burst
sleep 1
t app burst_settings 5-1
sleep 1
t app button shutter PR
sleep 9
poweroff yes
reboot yes | AGS Script | 1 | waltersgrey/autoexechack | BurstHacks/BurstAndTurnOff/5:1/Hero3PlusBlack/autoexec.ash | [
"MIT"
] |
#+TITLE: lang/scheme
#+DATE: July 23, 2019
#+SINCE: v2.0.9
#+STARTUP: inlineimages
* Table of Contents :TOC_3:noexport:
- [[#description][Description]]
- [[#module-flags][Module Flags]]
- [[#plugins][Plugins]]
- [[#prerequisites][Prerequisites]]
- [[#features][Features]]
- [[#commands][Commands]]
- [[... | Org | 3 | leezu/doom-emacs | modules/lang/scheme/README.org | [
"MIT"
] |
{% extends 'partials/base.html.twig' %}
| Twig | 1 | AuroraOS/grav | plugins/simplesearch/templates/partials/simplesearch_base.html.twig | [
"MIT"
] |
package org.xtendroid.db
import android.app.Fragment
import android.content.Context
import java.util.List
import org.eclipse.xtend.lib.macro.Active
import org.eclipse.xtend.lib.macro.TransformationContext
import org.eclipse.xtend.lib.macro.TransformationParticipant
import org.eclipse.xtend.lib.macro.declaration.Mutabl... | Xtend | 4 | kusl/Xtendroid | Xtendroid/src/org/xtendroid/db/AndroidDatabase.xtend | [
"MIT"
] |
import Int "mo:base/Int";
import Quicksort "Quicksort";
actor Main {
// Sort an array of integers.
public query func sort(xs : [Int]) : async [Int] {
return Quicksort.sortBy(xs, Int.compare);
};
};
| Modelica | 4 | DaveSimplifire/examples | motoko/quicksort/src/Main.mo | [
"Apache-2.0"
] |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Claudio Fernandes <squeral@gmail.com>, 2015
# Jannis Leidel <jannis@leidel.info>, 2011
# jorgecarleitao <jorgecarleitao@gmail.com>, 2015
# Manuela Silva <inactive+h_manuela_rodsilva@transifex.com>, 2015
# Nuno Mariz <nmariz@gmai... | Gettext Catalog | 2 | jpmallarino/django | django/contrib/gis/locale/pt/LC_MESSAGES/django.po | [
"BSD-3-Clause",
"0BSD"
] |
graph([professor_ability(p0,h),professor_ability(p1,h),professor_ability(p2,m),professor_ability(p3,m),professor_ability(p4,h),professor_ability(p5,h),professor_ability(p6,l),professor_ability(p7,l),professor_ability(p8,m),professor_ability(p9,h),professor_ability(p10,m),professor_ability(p11,h),professor_ability(p12,h... | Prolog | 1 | ryandesign/yap | packages/CLPBN/benchmarks/school/missing10.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
import Nat "mo:base/Nat";
import TrieSet "mo:base/TrieSet";
import Nat32 "mo:base/Nat32";
import Hash "mo:base/Hash";
import Suite "mo:matchers/Suite";
import M "mo:matchers/Matchers";
import T "mo:matchers/Testable";
let simpleTests = do {
let set1 = TrieSet.fromArray<Nat>([ 1, 2, 3, 1, 2, 3, 1 ], Nat32.fromNat, Na... | Modelica | 4 | nomeata/motoko-base | test/trieSetTest.mo | [
"Apache-2.0"
] |
/*
Copyright 2018 Google LLC
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 applicable law or agreed to in writing, software
dis... | Arduino | 3 | iicarus-bit/google-ctf | 2018/finals/crypto-ble/arduino/challenge/challenge.ino | [
"Apache-2.0"
] |
"""
before
closure
after
"""
a = def:
print("closure")
print("before")
a()
print("after")
| Boo | 1 | popcatalin81/boo | tests/testcases/integration/closures/closures-2.boo | [
"BSD-3-Clause"
] |
;;-------------------------------------------------------------------------------------------------------
;; Copyright (C) Microsoft. All rights reserved.
;; Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
;;---------------------------------------------------------... | SMT | 3 | lzscydkd/BosqueLanguage | impl/src/tooling/verifier/runtime/smtruntime.smt2 | [
"MIT"
] |
--TEST--
Bug #33802 (throw Exception in error handler causes crash)
--FILE--
<?php
set_error_handler('errorHandler', E_USER_ERROR);
try{
test();
}catch(Exception $e){
}
restore_error_handler();
function test(){
trigger_error("error", E_USER_ERROR);
}
function errorHandler($errno, $errstr, $errfile, $errline) ... | PHP | 3 | guomoumou123/php5.5.10 | Zend/tests/bug33802.phpt | [
"PHP-3.01"
] |
// RUN: %target-typecheck-verify-swift -target %target-cpu-apple-macosx10.15 -swift-version 5
// REQUIRES: objc_interop
// REQUIRES: OS=macosx
import SwiftUI
struct UnitVolumeView: View {
var measurement: Measurement<Unit>
var body: some View {
Text("")
}
}
struct UnitView_Previews: PreviewProvider {
sta... | Swift | 4 | gandhi56/swift | validation-test/Sema/SwiftUI/rdar68795727.swift | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.