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 |
|---|---|---|---|---|---|
0 reg32_t "dword"
1 code_t "proc*"
2 num32_t "int"
3 uint32_t "size_t"
4 ptr(struct(0:num32_t,4:ptr(num8_t),8:ptr(num8_t),12:ptr(num8_t),16:ptr(num8_t),20:ptr(num8_t),24:ptr(num8_t),28:ptr(num8_t),32:ptr(num8_t),36:ptr(num8_t),40:ptr(num8_t),44:ptr(num8_t),48:ptr(struct(0:ptr(TOP),4:ptr(struct(0:num32_t,4:ptr(reg8_t),8... | BlitzBasic | 1 | matt-noonan/retypd-data | data/cksum.decls | [
"MIT"
] |
(kicad_pcb (version 20171130) (host pcbnew 6.0.0-rc1-unknown-01c5bdf~65~ubuntu18.04.1)
(general
(thickness 1.6)
(drawings 13)
(tracks 2577)
(zones 0)
(modules 68)
(nets 101)
)
(page A4)
(layers
(0 F.Cu signal)
(1 In1.Cu power)
(2 In2.Cu signal)
(31 B.Cu mixed)
(33 F... | KiCad | 3 | GitHubRepoDescription/OLINUXINO-forked | HARDWARE/LCDs/LCD-OLinuXino-15.6FHD/Hardware revision H/LCD-OLinuXino-15.6FHD_Rev_H.kicad_pcb | [
"Unlicense"
] |
// check-pass
//
// This tests checks that clashing_extern_declarations handles types that are recursive through a
// pointer or ref argument. See #75512.
#![crate_type = "lib"]
mod raw_ptr_recursion {
mod a {
#[repr(C)]
struct Pointy {
pointy: *const Pointy,
}
extern ... | Rust | 5 | Eric-Arellano/rust | src/test/ui/lint/clashing-extern-fn-recursion.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
# This file is part of NIT ( http://www.nitlanguage.org ).
#
# Copyright 2004-2008 Jean Privat <jean@pryen.org>
# Copyright 2008 Floréal Morandat <morandat@lirmm.fr>
# Copyright 2008 Jean-Sébastien Gélinas <calestar@gmail.com>
#
# This file is free software, which comes along with NIT. This software is
# distributed i... | Nit | 5 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Nit/file.nit | [
"MIT"
] |
import time
import os
import subprocess
import sys
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common import utils
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from nw_util import *
chrome_options = Options()
chrome_opti... | Python | 3 | frank-dspeed/nw.js | test/sanity/issue4096-download/test.py | [
"MIT"
] |
{reg: [
{bits: 7, name: 0x37, attr: ['OPIVI']},
{bits: 5, name: 'vd', type: 2},
{bits: 3, name: 3},
{bits: 5, name: 'simm5', type: 5},
{bits: 5, name: 'vs2', type: 2},
{bits: 1, name: 'vm'},
{bits: 6, name: 'funct6'},
]}
| JSON5 | 2 | tmr4/wavedrom | test/reg-opivi.json5 | [
"MIT"
] |
insert into `first` values (8273);
| SQL | 1 | imtbkcat/tidb-lightning | tests/black-white-list/data/firstdb.first.1.sql | [
"Apache-2.0"
] |
/*
* Copyright (C) 2011 The Guava 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 agre... | Java | 5 | ksodhi2/guava | guava-tests/test/com/google/common/math/MathBenchmarking.java | [
"Apache-2.0"
] |
fn main() {
println!("%.*3$s %s!\n", "Hello,", "World", 4); //~ ERROR multiple unused formatting arguments
println!("%1$*2$.*3$f", 123.456); //~ ERROR never used
println!(r###"%.*3$s
%s!\n
"###, "Hello,", "World", 4);
//~^ ERROR multiple unused formatting arguments
// correctly account for r... | Rust | 2 | Eric-Arellano/rust | src/test/ui/macros/format-foreign.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
/*
*
* Copyright 2018 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 agree... | C | 5 | arghyadip01/grpc | src/cpp/server/load_reporter/load_data_store.h | [
"Apache-2.0"
] |
<GameFile>
<PropertyGroup Name="EightBallLayer" Type="Layer" ID="74fc0a24-948a-42b8-8d8f-b7d7dd2054f5" Version="3.10.0.0" />
<Content ctype="GameProjectContent">
<Content>
<Animation Duration="0" Speed="1.0000" />
<ObjectData Name="Layer" Tag="36" ctype="GameLayerObjectData">
<Size X="1136.0... | Csound | 2 | zhake911/zhuoqiuStudio | CocosStudio/cocosstudio/UI/Billiards/EightBallLayer.csd | [
"Apache-2.0"
] |
"""Update platform for Sensibo integration."""
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass
from pysensibo.model import SensiboDevice
from homeassistant.components.update import (
UpdateDeviceClass,
UpdateEntity,
UpdateEntityDescription,
)
from... | Python | 5 | liangleslie/core | homeassistant/components/sensibo/update.py | [
"Apache-2.0"
] |
# cython: embedsignature=True, profile=True, binding=True
from __future__ import unicode_literals
from cython.operator cimport dereference as deref
from cython.operator cimport preincrement as preinc
from libc.string cimport memcpy, memset
from libcpp.set cimport set as stdset
from cymem.cymem cimport Pool
from preshe... | Cython | 5 | kwhumphreys/spaCy | spacy/tokenizer.pyx | [
"Apache-2.0",
"MIT"
] |
/* It's an automatically generated code. Do not modify it. */
package sample.lexer;
%%
%{
private int lBraceCount;
%}
%{ // empty user code
%}
%state STATE, STATE2,
FUNCTION = [_a-zA-Z]([$_a-zA-Z0-9])*?[:]([^\n\r])*?(->|=>)
NOTTAGORCOMMENTBEGIN = ("<"[^c/C!] | "<c"[^fF] | "<C"[^fF] | "</"[^Cc] | "</c"[^Ff... | JFlex | 3 | JojOatXGME/Grammar-Kit | testData/jflex/parser/ParserFixes.flex | [
"Apache-2.0"
] |
version https://git-lfs.github.com/spec/v1
oid sha256:496f49d54f025c38fe39573b804a716139755a852ee2715106d6448fdb676b8d
size 576
| Nit | 1 | JGCRI/lds | indata/WaterFootprint/Report47-App-IV-RasterMaps/Rapeseed/info/arc0007.nit | [
"BSD-3-Clause-LBNL"
] |
TDSmalltalkLeafNode {
#name : 'suite',
#contents : '| suite configs version classes testCases |
suite := TestSuite named: \'Metacello Suite\'.
configs := Array new.
version := BaselineOfMetacello project version.
classes := version currentlyLoadedClassesInVersion.
testCases := classes select: [ :cls | cls inheritsFro... | STON | 3 | tom95/metacello | tode/suite.ston | [
"MIT"
] |
role Encoding {
method name(--> Str) { ... }
method alternative-names() { Empty }
method encoder(*%options --> Encoding::Encoder) { ... }
method decoder(*%options --> Encoding::Decoder) { ... }
}
# vim: expandtab shiftwidth=4
| Perl6 | 4 | raydiak/rakudo | src/core.c/Encoding.pm6 | [
"Artistic-2.0"
] |
cd ..
if [ -e 220-ifcreate/ifcreate2.dep ]; then
redo-ifchange 220-ifcreate/ifcreate2.dep
else
redo-ifcreate 220-ifcreate/ifcreate2.dep
fi
echo $$ >>220-ifcreate/ifcreate2.log
| Stata | 3 | BlameJohnny/redo | t/220-ifcreate/ifcreate2.do | [
"Apache-2.0"
] |
/****************************************************************************
*
* (c) 2021 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 | 5 | ChristopherOlson/HeliPilot-QGC | src/AutoPilotPlugins/PX4/PX4TuningComponentCopterVelocity.qml | [
"Apache-2.0"
] |
"""
This test doesn't work on Windows. The C++ code doesn't catch C++ exceptions
if they've traversed a Pony frame. This is suspected to be related to how
SEH and LLVM exception code generation interact.
See https://github.com/ponylang/ponyc/issues/2455 for more details.
"""
use "lib:try-block-cant-catch-cpp-exception... | Pony | 4 | rtpax/ponyc | test/libponyc-run/try-block-cant-catch-cpp-exception/main.pony | [
"BSD-2-Clause"
] |
@import 'nib'
// From https://github.com/tobiasahlin/SpinKit
.sk-spinner-cube-grid {
width: 40px;
height: 40px;
margin: 100px auto;
}
.sk-spinner-cube-grid .sk-cube-grid {
width: 33%;
height: 33%;
background-color: #333;
float: left;
-webkit-animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out;
... | Stylus | 3 | UBessle/wekan | client/components/main/spinner_cube_grid.styl | [
"MIT"
] |
result = "package_c"
class PackageCObject:
__slots__ = ["obj"]
def __init__(self, obj):
self.obj = obj
def return_result(self):
return result
| Python | 3 | Hacky-DH/pytorch | test/package/package_c/__init__.py | [
"Intel"
] |
//
// YMNetWorkHelper.h
// WeChatExtension
//
// Created by MustangYM on 2019/12/2.
// Copyright © 2019 MustangYM. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface YMNetWorkHelper : NSObject
+ (YMNetWorkHelper *)share;
- (NSURLSessionTask *)GET:(NSString *)url
parameters:(NSDict... | C | 3 | TJRoger/WeChatExtension-ForMac | WeChatExtension/WeChatExtension/Sources/Helper/YMNetWorkHelper.h | [
"MIT"
] |
// Copyright 2014 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.
#include "textflag.h"
//
// System calls for aix/ppc64 are implemented in ../runtime/syscall_aix.go
//
TEXT ·syscall6(SB),NOSPLIT,$0
JMP runtime·syscall_sysc... | GAS | 3 | Havoc-OS/androidprebuilts_go_linux-x86 | src/syscall/asm_aix_ppc64.s | [
"BSD-3-Clause"
] |
export default function Testimonial({ quote, name, title }) {
return (
<div className="single-testimonial">
<div className="quote">
<i className="lni lni-quotation"></i>
</div>
<div className="content">
<p>{quote}</p>
</div>
<div className="info">
<h6>{name}</... | JavaScript | 4 | hanneslund/next.js | examples/cms-buttercms/components/landing-page-sections/testimonial.js | [
"MIT"
] |
#N canvas 232 162 657 719 12;
#X floatatom 424 666 0 0 100 0 - - -;
#N canvas 269 205 698 344 output 0;
#X obj 388 156 t b;
#X obj 388 105 f;
#X obj 388 54 inlet;
#X obj 388 181 f;
#X msg 482 174 0;
#X msg 388 79 bang;
#X obj 388 130 moses 1;
#X obj 482 149 t b f;
#X obj 444 111 moses 1;
#X obj 91 148 dbtorms;
#X obj 4... | Pure Data | 3 | mxa/pure-data | doc/7.stuff/synth/1.poly.synth.pd | [
"TCL"
] |
CREATE TABLE `tb_gcqyhapjeh` (
`col_hctgmkmyxs` datetime DEFAULT '2019-07-04 00:00:00',
`col_kkvhrfifbo` longtext,
`col_mqfdtybcrt` longtext,
`col_ddgcxloigt` bit(6) DEFAULT NULL,
`col_icjiguudiw` bigint(20) unsigned zerofill,
UNIQUE KEY `col_kkvhrfifbo` (`col_kkvhrfifbo`(31))
) ENGINE=InnoDB DEFAULT CHARSE... | SQL | 3 | yuanweikang2020/canal | parse/src/test/resources/ddl/alter/mysql_2.sql | [
"Apache-2.0"
] |
#*****************************************************************************
# *
# Make file for VMS *
# Author : J.Jansen (joukj@hrem.nano.tudelft.nl) *
# Da... | Module Management System | 4 | madanagopaltcomcast/pxCore | examples/pxScene2d/external/WinSparkle/3rdparty/wxWidgets/samples/sockets/descrip.mms | [
"Apache-2.0"
] |
--TEST--
Bug #62759: Buggy grapheme_substr() on edge case
--EXTENSIONS--
intl
--FILE--
<?php
var_dump(substr('deja', 1, -4));
var_dump(substr('deja', -1, 0));
var_dump(grapheme_substr('deja', 1, -4));
var_dump(intl_get_error_message());
var_dump(grapheme_substr('deja', -1, 0));
var_dump(grapheme_substr('déjà', 1, -4));... | PHP | 3 | NathanFreeman/php-src | ext/intl/tests/bug62759.phpt | [
"PHP-3.01"
] |
import { Component } from '@angular/core';
interface Item {
name: string;
manufactureDate: Date;
color?: string | null;
price: number;
}
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'Template Expressi... | TypeScript | 4 | John-Cassidy/angular | aio/content/examples/template-expression-operators/src/app/app.component.ts | [
"MIT"
] |
// test.click
// This configuration should print this line five times:
// ok: 40 | 45000028 00000000 401177c3 01000001 02000002 13691369
// Run it at user level with
// 'click test.click'
// Run it in the Linux kernel with
// 'click-install test.click'
// Messages are printed to the system log (run 'dmesg' to see ... | Click | 4 | MacWR/Click-changed-for-ParaGraph | conf/test.click | [
"Apache-2.0"
] |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Jannis Leidel <jannis@leidel.info>, 2011
# Nick Mavrakis <mavrakis.n@gmail.com>, 2016
# Pãnoș <panos.laganakos@gmail.com>, 2014
# Serafeim Papastefanos <spapas@gmail.com>, 2021
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"... | Gettext Catalog | 3 | Joshua-Barawa/My-Photos | venv/lib/python3.8/site-packages/django/contrib/redirects/locale/el/LC_MESSAGES/django.po | [
"PostgreSQL",
"Unlicense"
] |
package {
public class Test {
public function Test() {}
}
}
import flash.utils.ByteArray;
import flash.utils.Endian;
import flash.utils.CompressionAlgorithm;
var ba1 = new ByteArray();
var ba2 = new ByteArray();
ba1.writeUTFBytes("test data");
ba2.writeUTFBytes("more data");
ba1.writeBytes(ba2, 3, 2);... | ActionScript | 3 | Sprak1/ruffle | tests/tests/swfs/avm2/bytearray/Test.as | [
"Apache-2.0",
"Unlicense"
] |
changed in both
base 100644 e6a7f7175c58e9683bd93bdd0aa5f7cedad6acdc .circleci/config.yml
our 100644 6d44d618aabcce04c60344f2274dec5b0c2a1f68 .circleci/config.yml
their 100644 d5b016958044d1a0f9cbdee07182512d170a4d5f .circleci/config.yml
@@ -510,6 +510,7 @@
xcode: "8.3.3"
<<: *build-steps
+<<<... | Text | 2 | testtas9812/desktop | app/test/fixtures/merge-parser/electron/merge-nornagon-gn-ci-builds-into-master.txt | [
"MIT"
] |
package com.baeldung.zonedatetime;
import java.time.OffsetDateTime;
import java.time.ZoneOffset;
public class OffsetDateTimeExample {
public OffsetDateTime getCurrentTimeByZoneOffset(String offset) {
ZoneOffset zoneOffSet= ZoneOffset.of(offset);
OffsetDateTime date = OffsetDateTime.now(zoneOffSet... | Java | 4 | DBatOWL/tutorials | core-java-modules/core-java-datetime-string/src/main/java/com/baeldung/zonedatetime/OffsetDateTimeExample.java | [
"MIT"
] |
# Markdown Editor
# Last Revised: April 23, 2015 by Ben Gotow
#
# Markdown editor is a simple React component that allows you to type your
# emails in markdown and see the live preview of your email in html
#
{ExtensionRegistry, ComponentRegistry} = require 'nylas-exports'
MarkdownEditor = require './markdown-editor'
M... | CoffeeScript | 4 | cnheider/nylas-mail | packages/client-app/internal_packages/composer-markdown/lib/main.cjsx | [
"MIT"
] |
= IndProp : Inductively Defined Propositions
> module IndProp
>
> import Basics
> import Induction
> import Tactics
> import Logic
>
> %hide Basics.Numbers.pred
>
> %access public export
> %default total
== Inductively Defined Propositions
In the `Logic` chapter, we looked at several ways of writing propositions,
i... | Idris | 5 | diseraluca/software-foundations | src/IndProp.lidr | [
"MIT"
] |
#N canvas 188 44 1142 820 12;
#X obj 723 524 element trace-template bazoo;
#X obj 559 556 set point-template y amp;
#X obj 723 429 pointer;
#X obj 741 291 r nframe;
#X obj 307 495 pointer;
#X text 334 474 current trace;
#X obj 307 563 getsize trace-template bazoo;
#X obj 338 623 + 1;
#X obj 338 647 setsize trace-templa... | Pure Data | 3 | mcclure/pure-data | doc/4.data.structures/add-trace.pd | [
"TCL"
] |
module Mimetypes =
autoload xfm
(* RFC 2045, Page 11. Closing square bracket moved out of sequence to
satisfy regex syntax. token_first excludes pound signs so as not to
overlap with the syntax for comments. *)
let token =
let first = /[^]#()<>@,;:\\"\/[?= \t\n]/
in let res... | Augeas | 5 | jaredjennings/puppet-cmits-mimetypes | lib/augeas/lenses/mimetypes.aug | [
"Apache-2.0"
] |
export default function SSRPage({ data }) {
return <div>{data.foo}</div>
}
export async function getServerSideProps() {
const port = process.env.NEXT_PUBLIC_API_PORT
const res = await fetch(`http://localhost:${port}/`)
const json = await res.json()
return {
props: {
data: json,
},
}
}
| JavaScript | 4 | blomqma/next.js | test/integration/fetch-polyfill/pages/ssr.js | [
"MIT"
] |
var $const1 <[13] i8> = [ 104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100, 10, 0 ]
func $printf (var %p1 <* i8>)void
func $main ( ) i32 {
call &printf (addrof a32 $const1)
return (constval i32 0) }
# EXEC: %irbuild Main.mpl
# EXEC: %irbuild Main.irb.mpl
# EXEC: %cmp Main.irb.mpl Main.irb.irb.mpl
| Maple | 3 | harmonyos-mirror/OpenArkCompiler-test | test/testsuite/irbuild_test/I0039-mapleall-irbuild-edge-hello/Main.mpl | [
"MulanPSL-1.0"
] |
enum class Test(f: () -> Unit) {
A(getFunc())
}
fun getFunc(): () -> Unit = {} | Kotlin | 3 | AndrewReitz/kotlin | compiler/testData/cfg/bugs/functionalCallInEnumEntry.kt | [
"ECL-2.0",
"Apache-2.0"
] |
/**
Copyright 2015 Acacia Team
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, software
di... | X10 | 4 | mdherath/Acacia | src/org/acacia/rdf/sparql/Tokenizer.x10 | [
"Apache-2.0"
] |
#Signature file v4.1
#Version 1.45.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/versioning.core/nbproject/org-netbeans-modules-versioning-core.sig | [
"Apache-2.0"
] |
-- Copyright 2022 Stanford University
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agree... | Rouge | 4 | syamajala/blas-rg | cublas.rg | [
"Apache-2.0"
] |
dnl HAVE_JSON is always 1 as of php 8.0 and the constant will be removed in the future.
dnl Note that HAVE_JSON was never defined for Windows builds (see config.w32)
AC_DEFINE([HAVE_JSON],1 ,[whether to enable JavaScript Object Serialization support])
PHP_NEW_EXTENSION(json,
json.c \
json_encoder.c \
json_pars... | M4 | 3 | NathanFreeman/php-src | ext/json/config.m4 | [
"PHP-3.01"
] |
<p title=Title>String</p>
| HTML | 1 | fuelingtheweb/prettier | tests/html_attributes/without-quotes.html | [
"MIT"
] |
%
stderr:"!SystemError: with a message\n\tin System_error1.main() [System_error1.v3 @ 3:29]\n\n"
exit:255
| Io | 0 | Refusal-Type-Bamboo/virgil | test/system/System_error1.io | [
"Apache-2.0"
] |
req to <%=
servlet_request.request_uri
%> <%=
servlet_request.query.inspect %>
| RHTML | 1 | barrhaim/jruby | test/mri/webrick/webrick.rhtml | [
"Ruby",
"Apache-2.0"
] |
# Create buffer with length 80000 samples
'buf' 80000 zeros
# Create a sequence
'seq' '0 2 7 11 14 4 2' gen_vals
# tick can only be used once in a sporth patch, so put it in a p-register
tick 0 pset
# our maygate clock with a guaranteed start
0 p 1 metro 0.7 maytrig +
# duplicate the clock signal for tseq and pluck... | SourcePawn | 4 | brandenbyers/Sporth | examples/mincerbuf.sp | [
"MIT"
] |
-- name: create-table-latest
CREATE TABLE IF NOT EXISTS latest (
latest_repo_id INTEGER
,latest_build_id INTEGER
,latest_type TEXT -- branch | tag | pull_request | promote
,latest_name TEXT -- master | v1.0.0, | 42 | production
,latest_created INTEGER
,latest_updated INTEGER
,latest_deleted ... | SQL | 4 | sthagen/drone-drone | store/shared/migrate/sqlite/files/014_create_table_refs.sql | [
"Apache-2.0"
] |
(defmodule record-test
(export all)
)
(defrecord point (x 0) (y (element 3 (date))))
(defun a (x y r)
(list (make-point x (date))
(make-point x (binary 34 (x float) ((+ y 3) float)))))
(defun b (x y r)
(let (((match-point y yy x xx) (make-point x x)))
(list xx yy (make-point y r))))
(defrecord c... | LFE | 3 | haetze/lfe | dev/record-test.lfe | [
"Apache-2.0"
] |
# Copy multiple files to destination, based on a glob expression
# - FROM_GLOB
# - TO
if(NOT FROM_GLOB)
message(FATAL_ERROR "FROM_GLOB must be set")
endif()
if(NOT TO)
message(FATAL_ERROR "TO must be set")
endif()
execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${TO})
file(GLOB files ${FROM_GLOB})
for... | CMake | 4 | uga-rosa/neovim | third-party/cmake/CopyFilesGlob.cmake | [
"Vim"
] |
// This test checks that all expected errors occur when there are multiple invalid attributes
// on an item.
#[inline]
//~^ ERROR attribute should be applied to function or closure [E0518]
#[target_feature(enable = "sse2")]
//~^ ERROR attribute should be applied to a function
const FOO: u8 = 0;
fn main() { }
| Rust | 3 | Eric-Arellano/rust | src/test/ui/attributes/multiple-invalid.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
SmalltalkCISpec {
#name : 'Pakbot (client)',
#loading : [
SCIMetacelloLoadSpec {
#baseline : 'Pakbot',
#directory : 'repository',
#platforms : [ #pharo ],
#load : ['tests-client'],
#onConflict : #useLoaded
}
],
#testing : {
#exclude : {
#packages : [ 'CargoPackage... | STON | 3 | demarey/cargo | .client.ston | [
"MIT"
] |
From eb130493c8042280a01e03c28bb89bd5ae0c5d18 Mon Sep 17 00:00:00 2001
From: Kaixi Hou <kaixih@nvidia.com>
Date: Tue, 23 Mar 2021 12:49:18 -0700
Subject: [PATCH] Add device modifiers for GPUs
---
src/{farmhash.cc => farmhash_gpu.h} | 95 +++++++++++++++++++++++------
1 file changed, 75 insertions(+), 20 deletions(-)
... | Diff | 4 | EricRemmerswaal/tensorflow | third_party/farmhash/farmhash_support_cuda.patch | [
"Apache-2.0"
] |
// deprecated doesn't currently support literals
#[deprecated("since")] //~ ERROR E0565
fn f() { }
fn main() { }
| Rust | 3 | Eric-Arellano/rust | src/test/ui/error-codes/E0565-1.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
$TTL 300
@ 42 IN A 1.2.3.4
| DNS Zone | 2 | IT-Sumpfling/dnscontrol | pkg/js/parse_tests/002-ttl/foo.com.zone | [
"MIT"
] |
// Package system provides functions for reading values from the system.
//
// introduced: 0.18.0
//
package system
// time returns the current system time.
//
// ## Examples
//
// ### Return a stream of tables with the current system time
// ```
// import "array"
// import "system"
//
// array.from(rows:[{time: syst... | FLUX | 4 | geropl/flux | stdlib/system/system.flux | [
"MIT"
] |
%
% A version of roundpage.ps that assumes a symmetric clipping path. Thanks
% to Matthijs Melchior for the suggestion.
%
/roundpagebbox {
pagebbox dup 0 get pagebbox 2 get add 2 exch put
pagebbox dup 1 get pagebbox 3 get add 3 exch put
pagebbox 0 0 put
pagebbox 1 0 put
} bind def
| PostScript | 4 | newluhux/plan9port | src/cmd/postscript/psfiles/Nroundpage.ps | [
"MIT"
] |
-- using default substitutions
select
l_orderkey,
sum(l_extendedprice * (1 - l_discount)) as revenue,
o_orderdate,
o_shippriority
from
customer,
orders,
lineitem
where
c_mktsegment = 'BUILDING'
and c_custkey = o_custkey
and l_orderkey = o_orderkey
and o_orderdate < date '1995-03-15'
and l_shipdate > date '... | SQL | 3 | OlegPt/spark | sql/core/src/test/resources/tpch/q3.sql | [
"Apache-2.0"
] |
// test for CSS and style related | JavaScript | 0 | pyrolabs/atom | spec/fixtures/git/repo-with-submodules/You-Dont-Need-jQuery/test/dom.spec.js | [
"MIT"
] |
<http://www.w3.org/2013/TurtleTests/s> <http://www.w3.org/2013/TurtleTests/p> "string"@en-uk .
| Turtle | 0 | joshrose/audacity | lib-src/lv2/serd/tests/TurtleTests/turtle-syntax-string-03.ttl | [
"CC-BY-3.0"
] |
#! /bin/csh
eval `scramv1 ru -csh`
setenv GLBLREFDIR /afs/cern.ch/cms/data/CMSSW/Validation/GlobalRecHitss/data
setenv LOCLREFDIR ${CMSSW_RELEASE_BASE}/src/Validation/GlobalRecHitss/data
echo "============> Validating Global RecHits <============"
echo "......producing output file with this release"
if ( -e Message... | Tcsh | 3 | ckamtsikis/cmssw | Validation/GlobalRecHits/test/valid_global.csh | [
"Apache-2.0"
] |
<div>
<span>{$foo}</span>
aaa
</div> | Latte | 1 | arusinha/incubator-netbeans | php/php.latte/test/unit/data/testfiles/lexer/top/indent-issue.latte | [
"Apache-2.0"
] |
-- script that retrieves an authentication token to send in all future requests
-- keep this file and postJsonWithToken.lua in sync with respect to token handling
-- use token for at most maxRequests, default throughout test
local counter = 0
local maxRequests = -1
-- request access necessary for both reading and wr... | Lua | 4 | legistek/AspNetCore | src/Mvc/benchmarkapps/BasicApi/getWithToken.lua | [
"Apache-2.0"
] |
(*
Module: Bacula
Parses: /etc/bacula/*.conf
Author: Domen Kožar <domen@dev.si>
About: Reference
This lens tries to be ...
About: License
This file is licenced under the LGPL v2+, like the rest of Augeas.
About: Lens Usage
See <lns>.
About: Configuration files
This lens applies to /etc/bacula/*.conf.
... | Augeas | 5 | ajnavarro/language-dataset | data/github.com/domenkozar/augeas_bacula/3eabf328ad732aaec601a04d8a23654fa1995e78/bacula.aug | [
"MIT"
] |
#!/bin/awk -f
function abs(x) { return ((x < 0.0) ? -x : x); }
# Set tab as a current separator.
BEGIN { FS="\t" }
# Record all values from the first file into array a.
NR == FNR {
for (i=1; i<=NF; i++)
a[FNR][i]=$i;
}
# During parsing of the second file compare them with remembered
# values using t... | Awk | 3 | shyamalschandra/CNTK | Tests/EndToEndTests/Image/Base64Write/Comparator.awk | [
"MIT"
] |
#include <cub/block/block_reduce.cuh>
#include "caffe2/core/context_gpu.h"
#include "caffe2/operators/reduce_front_back_max_ops.h"
#if defined(USE_ROCM)
#include <cfloat>
#endif
namespace caffe2 {
/***
Max Ops
***/
namespace {
__global__ void columnwise_max_kernel(
const int rows,
const int cols,
con... | Cuda | 3 | sanchitintel/pytorch | caffe2/operators/reduce_front_back_max_ops.cu | [
"Intel"
] |
"""
def foo(a):
return true if (a is null)
return false
"""
def foo(a):
return true if a is null
return false
| Boo | 2 | popcatalin81/boo | tests/testcases/parser/roundtrip/return-2.boo | [
"BSD-3-Clause"
] |
// A singleline comment
/*
A multiline comment
/*
Nested multiline
*/
*/
/proc/foo()
for(var/turf/station/T in world)
if(T.name == "floor")
del(T)
T.color = "red"
/turf/station
icon = 'station.dmi'
icon_state = "wall"
var/description = {"
Multiline
string
"}
| DM | 2 | vdrg/scc | examples/language/test.dm | [
"MIT",
"Unlicense"
] |
(print "Hy!")
| Hy | 0 | josephwillard/hy | tests/resources/icmd_test_file.hy | [
"MIT"
] |
#!/Users/gedge/src/github.com/nushell/nushell/target/debug/nu
echo "done"
| Nu | 1 | vorot93/nushell | tests/fixtures/formats/script.nu | [
"MIT"
] |
#######################
# HOSTNAME
######################
<VirtualHost 127.0.0.1:PORT>
ServerAdmin patrick@heysparkbox.com
DocumentRoot "/var/www/HOSTNAME"
ServerName HOSTNAME
<Directory "/var/www/HOSTNAME">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,d... | ApacheConf | 3 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/ApacheConf/apache.vhost | [
"MIT"
] |
from twisted.web import xmlrpc
import os
def getQuote():
return "What are you talking about, William?"
class Quoter(xmlrpc.XMLRPC):
def xmlrpc_quote(self):
return getQuote()
resource = Quoter()
| Ren'Py | 4 | hawkowl/twisted | docs/web/howto/listings/xmlquote.rpy | [
"Unlicense",
"MIT"
] |
{i="count" $1 $2; print i , $0}
| Logos | 0 | Crestwave/goawk | testdata/t.1.x | [
"MIT"
] |
@document url("https://www.example.com/") { h1 { color: green } } | CSS | 3 | kitsonk/swc | css/parser/tests/fixture/esbuild/misc/S2Mhk5rU2YxQPgm9rtF9WA/input.css | [
"Apache-2.0",
"MIT"
] |
// Copyright 2020 The 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 t... | Protocol Buffer | 5 | warlock135/grpc | src/proto/grpc/testing/xds/v3/endpoint.proto | [
"Apache-2.0"
] |
exec >&2 # any output we produce is a log message
no_simple=
no_debian=
no_runlocal=
no_runkvm=
no_docker=
if ! ./need.sh ldd; then
echo "skipping simple image."
no_simple=1
fi
if ! ./need.sh debootstrap eatmydata; then
echo "skipping debian image."
no_debian=1
fi
if ! ./need.sh cpio; then
echo "skipping tarbal... | Stata | 3 | BlameJohnny/redo | docs/cookbook/container/all.do | [
"Apache-2.0"
] |
/**
* @brief Implements USB Device standard requests
* @author Ross Owen, XMOS Limited
*/
#include "xud.h" /* XUD Functions and defines */
#include "usb_device.h" /* Defines related to the USB 2.0 Spec */
#include "usb_std_descriptors.h"
#include <string.h>
#include <xs1.h>
#inclu... | XC | 5 | simongapp/xmos_usb_mems_interface | 01Firmware/PDM_USB/module_usb_device/src/usb_device.xc | [
"Unlicense"
] |
Version 3/210228 of Vorple Status Line (for Glulx only) by Juhana Leinonen begins here.
"The Vorple version of the standard status line."
Use authorial modesty.
Include version 3 of Vorple Screen Effects by Juhana Leinonen.
Include version 3 of Vorple Element Manipulation by Juhana Leinonen.
Use full-width status l... | Inform 7 | 5 | vorple/inform7 | Extensions/Juhana Leinonen/Vorple Status Line.i7x | [
"CC-BY-4.0"
] |
#!pydsl|stateconf -ps
include('pydsl.xxx')
yyy = include('pydsl.yyy')
# ensure states in xxx are run first, then those in yyy and then those in aaa last.
extend(state('pydsl.yyy::start').stateconf.require(stateconf='pydsl.xxx::goal'))
extend(state('.start').stateconf.require(stateconf='pydsl.yyy::goal'))
extend(state('... | SaltStack | 3 | byteskeptical/salt | tests/integration/files/file/base/pydsl/aaa.sls | [
"Apache-2.0"
] |
MODULE = Agar::Config PACKAGE = Agar::Config PREFIX = AG_
PROTOTYPES: ENABLE
VERSIONCHECK: DISABLE
void
lock(self)
Agar::Config self
CODE:
AG_ObjectLock(self);
void
unlock(self)
Agar::Config self
CODE:
AG_ObjectUnlock(self);
int
load(self, path)
Agar::Config self
const char * path
PREINIT:
AG_DataSource * ds;... | XS | 4 | auzkok/libagar | p5-Agar/Agar/Config.xs | [
"BSD-2-Clause"
] |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_MY_APPLICATION_H_
#define FLUTTER_MY_APPLICATION_H_
#include <gtk/gtk.h>
G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICAT... | C | 4 | Mayb3Nots/flutter | examples/api/linux/my_application.h | [
"BSD-3-Clause"
] |
[{
"http://example/bar": [{
"http://example/baz": [{
"http://example/baz": [{"@value": "buzz"}]
}]
}]
}] | JSONLD | 0 | donbowman/rdflib | test/jsonld/1.1/expand/c028-out.jsonld | [
"BSD-3-Clause"
] |
(defn clj-assoc [d k v]
(setv cp (dict (.items d)))
(assoc cp k v)
cp)
(defn clj-mapv [f coll]
(list (map f coll)))
| Hy | 3 | kloimhardt/bb-web | cgi-bin/guestbook/clj_tools.hy | [
"MIT"
] |
# Verify that we exit with an appropriate code when there are build failures.
# RUN: rm -rf %t.build
# RUN: mkdir -p %t.build
# RUN: cp %s %t.build/build.ninja
# RUN: %{sh-invoke} -c "%{llbuild} ninja build --jobs 1 --chdir %t.build; echo \"exit code: $?\"" > %t.out
# RUN: %{FileCheck} < %t.out %s
# CHECK: exit code: ... | Ninja | 3 | val-verde/swift-llbuild | tests/Ninja/Build/exit-status.ninja | [
"Apache-2.0"
] |
### Introduction
Tensorflow implementation of Teaching with Fairness project
### Requirements
1. `Python 3.6`
2. `TensorFlow 1.14.0`
3. `scikit-image`
### Usage
#### Part 1: Download the dataset from google drive
[Google Drive](https://drive.google.com/corp/drive/folders/1eQpLvkdGAuwJ4EaNjQKTBwe7NRksM-OH)
#### ... | Markdown | 4 | deepneuralmachine/google-research | fairness_teaching/README.md | [
"Apache-2.0"
] |
lexer grammar CumulusConcatenatedLexer;
options {
superClass = 'org.batfish.grammar.BatfishLexer';
}
ANYTHING
:
. | EOF
;
| ANTLR | 3 | zabrewer/batfish | projects/batfish/src/main/antlr4/org/batfish/grammar/cumulus_concatenated/CumulusConcatenatedLexer.g4 | [
"Apache-2.0"
] |
> {-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-}
<h1>MonadState</h1>
<haskell:module>
<Name>MonadState</>
<Version>0.1 alpha</>
<Copywrite>The contents of this module are
understood to be a straightforward implementation of
part of the fokelore of the functional programming community,
and therefore... | Literate Haskell | 5 | ryantrinkle/ghcjs | test/nofib/spectral/cryptarithm2/MonadState.lhs | [
"MIT"
] |
(function(exports) {
var YJInvalidParamMsg = 'Invalid parameter';
var YJMissingParamMsg = 'Missing parameter';
// 1.APP Base Info, PS: BundleId, Version, BuildVersion, AppPath
YJAppInfo = function() {
var appId = [NSBundle mainBundle].bundleIdentifier;
var appversion = [NSBundle mainBundle].infoDictionary[@"C... | Cycript | 3 | smola/language-dataset | data/github.com/monetking/iOSSecurity/767a784e18d44f29d03521cf15db5d13d0a5b30f/Cycript/yjcript.cy | [
"MIT"
] |
rank ← ⍴ ∘ ⍴
⎕ ← rank 7 3 2 ⍴ ⍳ 23
h ← {⍵ + 2} ∘ {⍵ × 7}
⎕ ← h 8 ⍝ --> 58
⎕ ← (2∘-) 9 ⍝ --> -7
⎕ ← (-∘2) 9 ⍝ --> 7
0 | APL | 3 | melsman/apltail | tests/compose.apl | [
"MIT"
] |
#tag Module
Protected Module OSVersionInformationWFS
#tag Method, Flags = &h1
Protected Function Build() As Integer
Initialize
return mBuild
End Function
#tag EndMethod
#tag Method, Flags = &h1
Protected Function BuildString() As String
Initialize
return mBuildString
End Function
... | REALbasic | 4 | bskrtich/WFS | Windows Functionality Suite/UI Extras/System Information/Modules/OSVersionInformationWFS.rbbas | [
"MIT"
] |
pyenv_config_warning() {
[[ "$ZSH_PYENV_QUIET" != true ]] || return 0
local reason="$1"
local pyenv_root="${PYENV_ROOT/#$HOME/\$HOME}"
cat >&2 <<EOF
Found pyenv, but it is badly configured ($reason). pyenv might not
work correctly for non-interactive shells (for example, when run from a script).
${(%):-"%B%F{y... | Shell | 5 | sshishov/ohmyzsh | plugins/pyenv/pyenv.plugin.zsh | [
"MIT"
] |
@keyframes test { from {} to { color: red } } | CSS | 3 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/aDkLP2LEPmyD_ImzrGw8SQ/input.css | [
"Apache-2.0"
] |
pre
code
| Jade | 3 | cihatislamdede/codecombat | app/templates/play/level/tome/spell_translation.jade | [
"CC-BY-4.0",
"MIT"
] |
# Copyright (C) 2001-2003, Parrot Foundation.
=head1 NAME
examples/nci/QtHelloWorld.pasm - Qt Example
=head1 SYNOPSIS
% ./parrot examples/nci/QtHelloWorld.pasm
=head1 DESCRIPTION
Sample "Hello World" with Qt, via Parrot Native Call Interface (NCI). See
F<docs/pdds/pdd03_calling_conventions.pod>.
Qt - A cross... | Parrot Assembly | 4 | allisonrandal/pkg-parrot | examples/nci/QtHelloWorld.pasm | [
"Artistic-2.0"
] |
1728
0 -1
1 0
2 0
3 -1
4 3
5 3
6 -1
7 6
8 6
9 -1
10 9
11 9
12 -1
13 12
14 12
15 -1
16 15
17 15
18 -1
19 18
20 18
21 -1
22 21
23 21
24 -1
25 24
26 24
27 -1
28 27
29 27
30 -1
31 30
32 30
33 -1
34 33
35 33
36 -1
37 36
38 36
39 -1
40 39
41 39
42 -1
43 42
44 42
45 -1
46 45
47 45
48 -1
49 48
50 48
51 -1
52 51
53 51
54 -1
55 ... | IDL | 0 | ricortiz/OpenTissue | demos/data/dlm/1728/dep.dlm | [
"Zlib"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M6 13c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V5H6v8z",
opacity: ".3"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "M4 19h16v2H4zM20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 ... | JavaScript | 4 | good-gym/material-ui | packages/material-ui-icons/lib/esm/FreeBreakfastTwoTone.js | [
"MIT"
] |
/* Copyright (c) 2017-2019 Netronome Systems, Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "pkt_mpls_mpls_mpls_mpls_mpls_ipv4_udp_x84.uc"
#include "actions_harness.uc"
#include "global.uc"
.reg o_l4_offset
.reg o_l3_offset
.reg i_l4_offset
.reg i_l3_offset
.reg proto
.reg expe... | UnrealScript | 3 | pcasconnetronome/nic-firmware | test/datapath/pv_parse_mpls_mpls_mpls_mpls_mpls_ipv4_udp_x84_test.uc | [
"BSD-2-Clause"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.