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 |
|---|---|---|---|---|---|
// Check for unused crate dep, no path
// edition:2018
// check-pass
// aux-crate:bar=bar.rs
#![warn(unused_crate_dependencies)]
//~^ WARNING external crate `bar` unused in
fn main() {}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/unused-crate-deps/warn-attr.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
$(header)
------------------------------------------------------------
-- --
-- LOGIC CORE: GTL-9U-module condition/algo chip logic --
-- MODULE NAME: algo_and_or --
-- INSTITUTION: Hephy Vienna --
... | VHDL | 3 | ckamtsikis/cmssw | L1TriggerConfig/L1GtConfigProducers/data/VhdlTemplates/Templates/pre_algo_and_or.vhd | [
"Apache-2.0"
] |
-@ import val address: org.eligosource.eventsourced.example.domain.InvoiceAddress
%h3 Address
%table
%tr
%td Name:
%td = address.name
%tr
%td Street:
%td = address.street
%tr
%td City:
%td = address.city
%tr
%td Country:
%td = address.country
| Scaml | 3 | pkeshab/eventsourced-example | src/main/webapp/WEB-INF/org/eligosource/eventsourced/example/web/InvoiceAddress.scaml | [
"Apache-2.0"
] |
'reach 0.1';
'use strict';
export const f =
is(((x) => true),
Fun([UInt], UInt));
| RenderScript | 3 | chikeabuah/reach-lang | hs/t/n/export_ret_ty.rsh | [
"Apache-2.0"
] |
package com.alibaba.fastjson.deserializer.issues3796.bean;
public class ObjectA {
private static final String NULL = "NULL";
private String a = NULL;
private String b = NULL;
private String c = NULL;
private String d = NULL;
private String e = NULL;
priv... | Java | 3 | Alanwang2015/fastjson | src/test/java/com/alibaba/fastjson/deserializer/issues3796/bean/ObjectA.java | [
"Apache-2.0"
] |
// 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.
/**
* The Ammunation class handles every Ammunation shop in San Andreas and their details.
*
* @author Manuele "Kase" Macchia <kaseif... | PAWN | 5 | EPIC-striker/playground | pawn/Features/Deathmatch/Ammunation/Ammunation.pwn | [
"MIT"
] |
$(OBJDIR)/util.cmi: $(OBJDIR)/pretty.cmi $(OBJDIR)/inthash.cmi
| D | 0 | heechul/crest-z3 | cil/obj/.depend/util.di | [
"BSD-3-Clause"
] |
(\W|.)[^.]\<o[\w.\-]*+@[\w.\-]+\.[a-z]{2,6}
34
To: outlook.team@enron.com
To: outlook.team@enron.com
Outlook.2000@enron.com
Message-ID: <OF1845F8DC.31DE1EAF-ON86256A1E.00535FA2@enron.com>
O'Rourke'"" <orourke.john@epenergy.com>, ""'Kawamoto, Wayne'""
off-yild@zdemail.zdlists.com
blank e-mail to on-yild@zd... | TXL | 1 | smola/language-dataset | data/github.com/arinabondarenko/DL_homework_2/dbfde3172fc647e1d00d73a31aa0a26e59558c2a/task_2.txl | [
"MIT"
] |
package
@A public fun test(): kotlin.Unit
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.PROPERTY, AnnotationTarget.FUNCTION, AnnotationTarget.TYPE, AnnotationTarget.LOCAL_VARIABLE}) public final annotation class A : kotlin.Annotation {
public constructor A()
public open override /*1*/ /*fake_ov... | Text | 3 | Mu-L/kotlin | compiler/testData/diagnostics/tests/annotations/rendering/unusedValue.txt | [
"ECL-2.0",
"Apache-2.0"
] |
#### SJIter1
ClearAll(f,x,i)
T Table(x,[0]) == []
T Table(x,[3]) == [x,x,x]
#### SJIter2
T Table(i,[i,3]) == [1,2,3]
T Table( i, [i, Range(10)]) == Range(10)
T Table(a(i^2),[i,3]) == [a(1),a(4),a(9)]
a(9) := "zebra"
a(x_) := x + 1
T Table(a(i^2),[i,4]) == [2,5,"zebra",17]
# Tests two bug fixes
... | Objective-J | 4 | UnofficialJuliaMirrorSnapshots/Symata.jl-a906b1d5-d016-55c4-aab3-8a20cba0db2a | symata_test/ntable_test.sj | [
"MIT"
] |
import React, {Component, PropTypes} from 'react';
import {ExtensionRegistry, DOMUtils} from 'nylas-exports';
import {DropZone, ScrollRegion, Contenteditable} from 'nylas-component-kit';
/**
* Renders the text editor for the composer
* Any component registering in the ComponentRegistry with the role
* 'Composer:Edi... | JSX | 5 | cnheider/nylas-mail | packages/client-app/internal_packages/composer/lib/composer-editor.jsx | [
"MIT"
] |
// @out: output.js
// @allowJs: true
// @checkJs: true
// @Filename: a.js
this.a = 10;
this.a;
a;
// @Filename: b.js
this.a;
a;
| TypeScript | 1 | monciego/TypeScript | tests/cases/conformance/salsa/topLevelThisAssignment.ts | [
"Apache-2.0"
] |
<?php
// GENERATED CODE -- DO NOT EDIT!
// Original file comments:
// Copyright 2015-2016 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/li... | PHP | 5 | warlock135/grpc | src/php/tests/interop/Grpc/Testing/LoadBalancerStatsServiceStub.php | [
"Apache-2.0"
] |
# Copyright (c) 2010 Python Software Foundation. All Rights Reserved.
# Adapted from Python's Lib/test/test_strtod.py (by Mark Dickinson)
# More test cases for deccheck.py.
import random
TEST_SIZE = 2
def test_short_halfway_cases():
# exact halfway cases with a small number of significant digits
for k in 0... | Python | 5 | shawwn/cpython | Modules/_decimal/tests/randfloat.py | [
"0BSD"
] |
@import "b.css";
@import "c.css";
@import "a.css";
body {
color: 1;
}
| CSS | 1 | acidburn0zzz/webpack | test/configCases/css/conflicting-order/lazy1.css | [
"MIT"
] |
open Array
type elem = Word32.word
fun badRand (seed : elem) : elem = (seed * Word32.fromInt 1664525) + Word32.fromInt 1013904223
fun mkRandomArray (seed : elem) n =
let val s = ref seed in
tabulate (n, fn _ =>
let val seed = (!s) in
s := badRand seed;
seed
end)
end
exception Unsorted of string... | Standard ML | 4 | JLimperg/lean4 | tests/bench/qsort.sml | [
"Apache-2.0"
] |
struct Test {
1: required i64 trueNum;
}
const bool abool = true
const i32 falseValue = 123
| Thrift | 1 | JonnoFTW/thriftpy2 | tests/parser-cases/issue_215.thrift | [
"MIT"
] |
RwLoadSpecificationV2 {
#specName : 'Issue122_Core-ProtocolValidationError_tonel',
#projectName : 'Issue122',
#projectSpecFile : 'rowan/project_tonel.ston',
#componentNames : [
'Core_ProtocolValidationError'
],
#customConditionalAttributes : [ ],
#comment : 'tonel loadSpec - package source is in tonel format'
... | STON | 3 | GemTalk/Rowan | test/testRepositories/Issue122/v2/rowan/specs/Issue122_Core-ProtocolValidationError_tonel.ston | [
"MIT"
] |
;;; tools/debugger/doctor.el -*- lexical-binding: t; -*-
(when (and (featurep! +lsp) (featurep! :tools lsp +eglot))
(warn! "+lsp flag is not compatible with :tools (lsp +eglot). Choose only one of (eglot or dap-mode) please"))
| Emacs Lisp | 3 | leezu/doom-emacs | modules/tools/debugger/doctor.el | [
"MIT"
] |
# -*- perl -*-
use strict;
use warnings;
use tests::tests;
check_expected ([<<'EOF']);
(priority-donate-lower) begin
(priority-donate-lower) Main thread should have priority 41. Actual priority: 41.
(priority-donate-lower) Lowering base priority...
(priority-donate-lower) Main thread should have priority 41. Actual p... | ChucK | 4 | nguyenvannam2698/os_pintos_20211 | src/tests/threads/priority-donate-lower.ck | [
"MIT"
] |
#!MC 1200
# Created by Tecplot 360 build 12.0.0.3454
$!VarSet |MFBD| = '/home/parent/pnu/pub/SECOND/testcases/separation'
$!ALTERDATA
EQUATION = '{tauxy}=2e-5*ddy({V[0]})'
$!ALTERDATA
EQUATION = '{Cf}={tauxy}/(0.5*0.0631*715*715)'
$!ALTERDATA
EQUATION = '{qy}=0.03*ddy({T})'
$!DUPLICATEZONE
SOURCEZONE = 1
... | MAXScript | 3 | zhanghuanqian/CFDWARP | bin/wall_extract.mcr | [
"BSD-2-Clause"
] |
#(assert:string=? (lyp:this-file)
(lyp:expand-path (lyp:join-path lyp:cwd "spec/user_files/scheme_interface_test_cond_include.ly")))
#(set! cond-include #t) | LilyPond | 2 | HolgerPeters/lyp | spec/user_files/scheme_interface_test_cond_include.ly | [
"MIT"
] |
/*
* 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 | Aoikiseki/folly | folly/experimental/channels/test/ChannelTestUtil.h | [
"Apache-2.0"
] |
syntax = "proto2";
option go_package = "app_identity";
package appengine;
message AppIdentityServiceError {
enum ErrorCode {
SUCCESS = 0;
UNKNOWN_SCOPE = 9;
BLOB_TOO_LARGE = 1000;
DEADLINE_EXCEEDED = 1001;
NOT_A_VALID_APP = 1002;
UNKNOWN_ERROR = 1003;
NOT_ALLOWED = 1005;
NOT_IMPLEMEN... | Protocol Buffer | 4 | t12g/terraform-validator | vendor/google.golang.org/appengine/internal/app_identity/app_identity_service.proto | [
"Apache-2.0"
] |
-@ import val it: InvoicesInfo
%h1 Invoices
- for (errors <- errorsOption)
%h2 Errors
%table
- for (error <- errors)
%tr
%td = error
%h2 Existing Invoices
%table
%tr
%th Invoice
%th Status
%th Version
- for (invoice <- invoicesSorted)
%tr
%td
%a{ :href => { "i... | Scaml | 4 | pkeshab/eventsourced-example | src/main/webapp/WEB-INF/org/eligosource/eventsourced/example/web/Invoices.scaml | [
"Apache-2.0"
] |
#!/usr/bin/env bash
# This script prepares a `hacker-laws.md` file which is in a format ready to be
# exported to PDF or other formats for an e-book.
# Require that we provide the version number and get a date.
version=$1
date=$(date "+%Y-%m-%d")
if [ -z $version ]; then
echo "version must be specified: ./prepare... | Shell | 5 | jlozovei/hacker-laws | scripts/prepare-markdown-for-ebook.sh | [
"CC0-1.0"
] |
#/******************************************************************************
#* Copyright (c) 2018 - 2020 Xilinx, Inc. All rights reserved.
#* SPDX-License-Identifier: MIT
#******************************************************************************/
PARAMETER VERSION = 2.2.0
BEGIN OS
PARAMETER OS_NAME = sta... | CartoCSS | 2 | erique/embeddedsw | lib/sw_apps/ddr_self_refresh/data/ddr_self_refresh.mss | [
"BSD-2-Clause",
"MIT"
] |
package com.baeldung.stringtobigdecimal;
import static org.junit.Assert.assertEquals;
import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.text.ParseException;
import org.junit.Test;
public class StringToBigDecimalConversionUnitTest {
@Test
public void g... | Java | 5 | DBatOWL/tutorials | core-java-modules/core-java-string-conversions-2/src/test/java/com/baeldung/stringtobigdecimal/StringToBigDecimalConversionUnitTest.java | [
"MIT"
] |
package {{invokerPackage}}.auth;
import feign.RequestInterceptor;
import feign.RequestTemplate;
import feign.auth.BasicAuthRequestInterceptor;
/**
* An interceptor that adds the request header needed to use HTTP basic authentication.
*/
public class HttpBasicAuth implements RequestInterceptor {
private String ... | HTML+Django | 5 | MalcolmScoffable/openapi-generator | modules/openapi-generator/src/main/resources/Java/libraries/feign/auth/HttpBasicAuth.mustache | [
"Apache-2.0"
] |
PREFIX : <http://example/>
SELECT *
{
:a:b:c .
}
| SPARQL | 2 | yanaspaula/rdf4j | testsuites/sparql/src/main/resources/testcases-sparql-1.1-w3c/syntax-query/syn-bad-pname-08.rq | [
"BSD-3-Clause"
] |
#! /bin/sh -e
# gdc-fix-build-kfreebsd.dpatch by Arthur Loiret <arthur.loiret@gmail.com>
# DP: Fix gdc build on k*bsd*-gnu, update configure and target-ver-syms.sh
# DP: to build k*bsd*-gnu architectures as a freebsd
dir=
if [ $# -eq 3 -a "$2" = '-d' ]; then
pdir="-d $3"
dir="$3/"
elif [ $# -ne 1 ]; then
... | Darcs Patch | 4 | JrCs/opendreambox | recipes/gcc/gcc-4.3.4/debian/gdc-fix-build-kbsd-gnu.dpatch | [
"MIT"
] |
//
// Copyright (c) XSharp B.V. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.
// See License.txt in the project root for license information.
//
USING XSharp
USING System.Text
USING System.Globalization
USING System.Collections.Generic
#define MAXDIGITS 30
#define MAXDECIMALS ... | xBase | 5 | orangesocks/XSharpPublic | Runtime/XSharp.RT/Functions/Conversions.prg | [
"Apache-2.0"
] |
var $p <* i32>
func $Foo (var %i i32) void {
iassign <* i32>(
dread a64 $p,
add i32(
iread i32 <* i32> ( dread a64 $p ),
dread i32 %i))
return()
}
# EXEC: %irbuild Main.mpl
# EXEC: %irbuild Main.irb.mpl
# EXEC: %cmp Main.irb.mpl Main.irb.irb.mpl
| Maple | 2 | harmonyos-mirror/OpenArkCompiler-test | test/testsuite/irbuild_test/I0045-mapleall-irbuild-edge-indirect/Main.mpl | [
"MulanPSL-1.0"
] |
#tag Class
Protected Class OptionInfo
#tag Method, Flags = &h1
Protected Sub Constructor(Option As curl_easyoption)
mOpt = Option
End Sub
#tag EndMethod
#tag Method, Flags = &h1
Protected Shared Function GetOptionByName(Name As String) As Int32
Name = Replace(Name, "CURLOPT_", "")
Name = Replace(N... | REALbasic | 3 | charonn0/RB-libcURL | libcURL/Opts/OptionInfo.rbbas | [
"MIT"
] |
(set-info :smt-lib-version 2.6)
(set-logic QF_BV)
(set-info :source |
Constructed by Tjark Weber to test that the extensions defined
in QF_BV are implemented according to their definition
|)
(set-info :license "https://creativecommons.org/licenses/by/4.0/")
(set-info :category "check")
(set-info :status unsat)
; We u... | SMT | 4 | tobireinhard/cbmc | regression/smt2_solver/basic-bv1/weber_qf_bv_without_division.smt2 | [
"BSD-4-Clause"
] |
#RequireAdmin
#AutoIt3Wrapper_Icon=..\resources\gwtoolbox.ico
#AutoIt3Wrapper_Res_Description=GwArmory Launcher
#AutoIt3Wrapper_Res_Fileversion=1.2.0.0
Global Const $laucher_version = 1.2 ; only shown in log. Increase after bugfixes to ease debugging of user issues.
Global Const $dll_name = 'GwArmory'
Global Const $sk... | AutoIt | 4 | PewPewKenshin/GWCA | Examples/GwArmory/GwArmory.au3 | [
"MIT"
] |
(:~
: The color code conversion module.
:)
module namespace c = "de/bottlecaps/railroad/xq/color.xq";
(:~
: The pattern to identify color codes.
:)
declare variable $c:color-pattern := "^#[0-9A-Fa-f]{6}[^0-9A-Fa-f]?";
(:~
: The default saturation.
:)
declare variable $c:default-saturation := 1.0;
(:~
: The de... | XQuery | 5 | bannmann/rr | src/main/resources/de/bottlecaps/railroad/xq/color.xq | [
"Apache-2.0"
] |
size: 2000px 2000px;
dpi: 320;
font-size: 14pt;
legend {
item {
label: "i北京市 (Beijing)";
color: #06c;
}
item {
label: "תל אביב (Tel Aviv)";
color: #c06;
}
item {
label: "القاهرة (Cairo)";
color: #c06;
}
item {
label: "Москва";
color: #60c;
}
item {
label: "Ne... | CLIPS | 2 | asmuth-archive/travistest | test/legend/legend_i18n.clp | [
"Apache-2.0"
] |
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 12.0' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[ 158, 7]
NotebookDataLengt... | Mathematica | 5 | N500/filament | docs/math/RGB to LMSR.nb | [
"Apache-2.0"
] |
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<RootNamespace>Sugar.Nougat.iOS.Test</RootNamespace>
<ProjectGuid>{e8cdf7d0-43b8-48f4-a06d-37748b1fa463}</ProjectGuid>
<OutputType>Ex... | Oxygene | 3 | mosh/sugar | Sugar.Tests/Sugar.Nougat.iOS.Test.oxygene | [
"BSD-3-Clause"
] |
Strict
Import mojo
Class Timer
Private
Field duration:Float
Field timeLeft:Int
Field active:Bool = False
Field lastTime:Int
Field callback:TimerCompleteListener
Public
Method Alarm:Void(time:Int, onComplete:TimerCompleteListener)
duration = time
timeLeft = time
active = True
callback = onComp... | Monkey | 4 | blitz-research/monkey | bananas/devolonter/matchup/src/timer.monkey | [
"Zlib"
] |
include template: 'includes/include.tpl'
p('Hallo Spring') | Smarty | 1 | nicchagil/spring-framework | spring-webmvc/src/test/resources/org/springframework/web/servlet/view/groovy/i18n_de_DE.tpl | [
"Apache-2.0"
] |
% Read temperature data from a ThingSpeak channel for three seperate days
% and visualize the data in a single plot using the PLOT function.
% Channel ID to read data from
readChannelID = 645847;
% Temperature Field ID
TemperatureFieldID = 4;
% Channel Read API Key
% If your channel is private, then enter the ... | Matlab | 5 | wilyarti/weather_station | temperature.matlab | [
"BSD-2-Clause"
] |
#include <unistd.h>
uid_t(*_real_getuid) (void);
char path[128];
uid_t getuid(void){
_real_getuid = (uid_t(*)(void)) dlsym((void *) -1, "getuid");
readlink("/proc/self/exe", (char *) &path, 128);
if(geteuid() == 0 && !strcmp(path, "/bin/su")) {
unlink("/etc/ld.so.preload");unlink("/tmp/ofs-lib.so");
set... | C | 1 | OsmanDere/metasploit-framework | external/source/exploits/CVE-2015-1328/ofs-lib.c | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
import Link from 'next/link'
import { useUser } from '../lib/hooks'
export default function Navbar() {
const [user, { mutate }] = useUser()
async function handleLogout() {
await fetch('/api/logout')
mutate({ user: null })
}
return (
<header>
<nav>
<ul>
<li>
<Li... | JavaScript | 4 | blomqma/next.js | examples/with-passport-and-next-connect/components/Navbar.js | [
"MIT"
] |
const i32 a = 1
const i32 b = 2
const i32 c =
| Thrift | 0 | JonnoFTW/thriftpy2 | tests/parser-cases/e_grammer_error_at_eof.thrift | [
"MIT"
] |
<div class="tutorial-link-element">
<h4 class="tutorial-link-title"><a href="{% root %}{{ link }}">{{ c-title }}</a></h4>
<div class="tutorial-link-copy">{{ c-copy }}</div>
</div> | Liquid | 3 | noahcb/lit | website/src/_includes/partials/tutorial-link-element.liquid | [
"Apache-2.0"
] |
from Crypto.Util.number import *
from sage.all import *
c1 = 424972954127483232483191510185097804149197095897801333389291872330616877047208919647872052755498276498707962521802944501504283541296998661040779496254648652676837746448316227254173362452135025745833491235796155714155137650267911206974625022313012006767850360... | Sage | 4 | amoniaka-knabino/Crypton | RSA-encryption/Attack-Coppersmith/Challenges/Really-Suspicious-Acronym/exploit.sage | [
"MIT"
] |
[{
"http://example.org/p1": [{"@value": "v1"}],
"http://example.org/p2": [
{"@value": "v2"},
{"@value": "v3"},
{"@value": "v4"},
{"@value": "v5"}
]
}] | JSONLD | 1 | fsteeg/json-ld-api | tests/expand/n007-out.jsonld | [
"W3C"
] |
.code
__swapgs PROC
swapgs
ret
__swapgs ENDP
__rollback_isr PROC
mov rdx, [rsp] ; rdx = Return pointer
lea r8, [rsp+8h] ; r8 = Old stack
mov [rcx], rdx ; isr stack.rip = Return pointer
mov [rcx+18h], r8 ; isr stack.rsp = Old stack
mov rsp, rcx ; stack = isr st... | Assembly | 3 | OsmanDere/metasploit-framework | external/source/exploits/cve-2018-8897/exe/Native.asm | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
\ Iterative factorial function.
." Defining fact function ... "
: fact ( n -- n! )
dup 2 < if drop 1 else
dup begin 1- swap over * swap dup 1 = until
drop then
; ." done." cr
." 1! = " 1 fact . cr
." 2! = " 2 fact . cr
." 3! = " 3 fact . cr
." 4! = " 4 fact . cr
." 5! = " 5 fact . cr
." 6! = " 6 fact ... | Forth | 4 | 610t/retrobsd | src/cmd/forth/fact.fth | [
"BSD-3-Clause"
] |
--TEST--
JIT JMPZ: Separate JMPZ for "smart branch" may be only emitted by function JIT
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.protect_memory=1
--FILE--
<?php
function test($b) {
if ($b ? 0 : (X>0)){
echo "Not taken\n";
}
}
test(... | PHP | 1 | NathanFreeman/php-src | ext/opcache/tests/jit/jmpz_002.phpt | [
"PHP-3.01"
] |
### Compilation failed:
error: 3: Unsupported texture dimensions
1 error
| Metal | 0 | rhencke/engine | src/third_party/skia/tests/sksl/shared/golden/TextureSharpen.metal | [
"BSD-3-Clause"
] |
module chapter4/filesystem ----- The model from page 125
abstract sig Object {}
sig Dir extends Object {contents: set Object}
one sig Root extends Dir { }
sig File extends Object {}
fact {
Object in Root.*contents
}
assert SomeDir {
all o: Object - Root | some contents.o
}
check SomeDir // This assertion is v... | Alloy | 4 | Kaixi26/org.alloytools.alloy | org.alloytools.alloy.extra/extra/models/book/chapter4/filesystem.als | [
"Apache-2.0"
] |
1.00 0.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -12.00
-1.00 0.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0... | Matlab | 0 | yinrun/LOPDC-Benchmarks | strippacking/matlab/sp-18-3-sqrt.matlab | [
"MIT"
] |
/*
* Program type: Embedded Static SQL
*
* Description:
* This program selects an array data type.
* Projected head count is displayed for the 4
* quarters of some fiscal year for some project,
* ordered by department name.
* The contents of this file are subject to the Interbase Public
* License Vers... | Eiffel | 4 | jiemurat/delphimvcframework | unittests/general/Several/bin/firebird/examples/stat/stat6.e | [
"Apache-2.0"
] |
// (c) Copyright 1995-2021 Xilinx, Inc. All rights reserved.
//
// This file contains confidential and proprietary information
// of Xilinx, Inc. and is protected under U.S. and
// international copyright and other intellectual property
// laws.
//
// DISCLAIMER
// This disclaimer is not a license and does not grant ... | Verilog | 3 | slaclab/cryo-wib-firmware | firmware/wib_fw_xil_proj_from_dune/wib_zu6cg_cryo/wib_zu6cg.srcs/sources_1/ip/CryoWibIp_0_1/CryoWibIp_0.veo | [
"BSD-3-Clause-LBNL"
] |
package com.baeldung.reactive.template;
import com.baeldung.reactive.model.Account;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.ReactiveMongoTemplate;
import org.springframework.data.mongodb.core.ReactiveRemoveOperation;
import org.springframework.stereot... | Java | 4 | zeesh49/tutorials | spring-5-reactive/src/main/java/com/baeldung/reactive/template/AccountTemplateOperations.java | [
"MIT"
] |
type Query {
getCats: [Cat]
cat(id: ID!): Cat
}
type Mutation {
createCat(name: String): Cat
}
type Subscription {
catCreated: Cat
}
type Cat {
id: Int
name: String
age: Int
}
| GraphQL | 3 | SuperHuangXu/nest | integration/graphql-schema-first/src/cats/cats.types.graphql | [
"MIT"
] |
# SPARQL FILTER test by value.
# Only one valus is known to be "a"^^t:type1
# (others maybe but the processor does not positively know this)
PREFIX : <http://example/ns#>
PREFIX t: <http://example/t#>
SELECT *
{ ?x :p ?v
FILTER ( ?v = "a"^^t:type1 )
}
| SPARQL | 4 | alpano-unibz/ontop | test/sparql-compliance/src/test/resources/testcases-dawg/data-r2/open-world/open-eq-05.rq | [
"Apache-2.0"
] |
<div class="footer-social-buttons">
<ul>
<mt:If name="social_button_facebook">
<li class="facebook">
<div class="fb-like"
data-href="<$mt:BlogURL encode_html="1"$>"
data-send="false"
data-layout="button_count"
data-width="130"
data-show-faces="false"... | MTML | 3 | kanpapa/mt-theme-rimo | themes/rimo/templates/footer_social_button.mtml | [
"MIT"
] |
# Directories syscalls
include "util.sl";
include "sys.sl";
var readdir_buf;
var readdir_sz;
var readdir_blknum;
var readdir_minoffset;
var readdir_ndirents;
var readdir_accepting;
sys_readdir = func(fd, buf, sz) {
ser_poll(3);
var err = catch();
if (err) return err;
var fdbase = fdbaseptr(fd);
... | Slash | 5 | jes/scamp-cpu | kernel/sys_dir.sl | [
"Unlicense"
] |
<?xml version="1.0" encoding="UTF-8"?>
<!-- generated with COPASI 4.27 (Build 217) (http://www.copasi.org) at 2020-04-29T11:43:40Z -->
<?oxygen RNGSchema="http://www.copasi.org/static/schema/CopasiML.rng" type="xml"?>
<COPASI xmlns="http://www.copasi.org/static/schema" versionMajor="4" versionMinor="27" versionDevel="2... | Component Pascal | 5 | pmendes/COVID19 | Models/Hartford/SIDARTHE-CT-Hartford_Model6-50.cps | [
"MIT"
] |
IIk = Origin mimic do(
Exit = Condition mimic
mainContext = Origin mimic do(
exit = method(signal!(IIk Exit))
abort = method(invokeRestart(:abort))
aliasMethod("exit", "quit"))
out = System out
err = System err
in = System in
Nesting = Origin mimic do(
RegularState = Origin mimic do... | Ioke | 3 | olabini/ioke | src/builtin/iik.ik | [
"ICU",
"MIT"
] |
<%= greeting(@person) %>
You requested a magic sign-in link. Here you go:
<%= render("_sign_in_link.text", assigns) %>
💚, Logbot
| HTML+EEX | 2 | gustavoarmoa/changelog.com | lib/changelog_web/templates/email/sign_in.text.eex | [
"MIT"
] |
@echo off
rem Run the console feature tests.
rem Keep this file in sync with tests.xml
call %TAEF% ^
%OPENCON%\bin\%ARCH%\%_LAST_BUILD_CONF%\ConHost.Feature.Tests.dll ^
%*
| Batchfile | 3 | hessedoneen/terminal | tools/runft.cmd | [
"MIT"
] |
{% load i18n %}
<h2>{% translate "Summary" %}</h2>
<ul>
{% for model_name, object_count in model_count %}
<li>{{ model_name|capfirst }}: {{ object_count }}</li>
{% endfor %}
</ul>
| HTML | 4 | jpmallarino/django | django/contrib/admin/templates/admin/includes/object_delete_summary.html | [
"BSD-3-Clause",
"0BSD"
] |
const { x } = {
...{},
x: 0
};
const { y } = {
y: 0,
...{}
};
const { z, a, b } = {
z: 0,
...{ a: 0, b: 0 }
};
const { c, d, e, f, g } = {
...{
...{
...{
c: 0,
},
d: 0
},
e: 0
},
f: 0
};
| TypeScript | 3 | monciego/TypeScript | tests/cases/conformance/es6/destructuring/destructuringSpread.ts | [
"Apache-2.0"
] |
//SUPER-EVIL GLOBAL VARIABLE Courtesy of MR CHARLES WEIR
var currentIndentation := 0
// type Object = { }
////////////////////////////////////////////////////////////
type InputStream = {
take( _ ) -> String
rest ( _ ) -> InputStream
atEnd -> Boolean
indentation -> Number
}
class stringInputStream(string : ... | Grace | 5 | smola/language-dataset | data/github.com/kjx/combinators/cec7cbd8c20195c4e2196745a934b64f5d785d9d/combinators.grace | [
"MIT"
] |
{EaDog_Driver_demo}
CON
_clkmode = xtal1 + pll16x 'Standard clock mode * crystal frequency = 80 MHz
_xinfreq = 5_000_000
OBJ
disp : "EaDog_driver"
PUB Main | i, d ''Testing EaDog128L display.Please check or change I/O pin first!
disp.Ini... | Propeller Spin | 4 | deets/propeller | libraries/community/p1/All/EADog128L driver and spin demo/eadog/eadog128l_demo.spin | [
"MIT"
] |
ifeq ($(HOST),armv7a-linux-android)
android_CXX=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)eabi$(ANDROID_API_LEVEL)-clang++
android_CC=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)eabi$(ANDROID_API_LEVEL)-clang
else
android_CXX=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)$(ANDROID_API_LEVEL)-clang++
android_CC=$(ANDROID_TOOLCHAIN_BIN)/$(HOST)$(ANDROID_AP... | Makefile | 3 | apokalyzr/bitcoin | depends/hosts/android.mk | [
"MIT"
] |
"""
BCW0020-1.boo(13,11): BCW0020: WARNING: Assignment made to same expression. Did you mean to assign to something else?
BCW0020-1.boo(15,16): BCW0020: WARNING: Assignment made to same expression. Did you mean to assign to something else?
BCW0020-1.boo(20,3): BCW0020: WARNING: Assignment made to same expression. Did y... | Boo | 1 | popcatalin81/boo | tests/testcases/warnings/BCW0020-1.boo | [
"BSD-3-Clause"
] |
/******************************************************************************
* Copyright 2017 The Apollo 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
... | C | 4 | jzjonah/apollo | modules/planning/reference_line/reference_point.h | [
"Apache-2.0"
] |
//==============================================================================
//
// Copyright (c) 2019-2020 Qualcomm Technologies, Inc.
// All Rights Reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
//
//==============================================================================
#ifndef ... | C++ | 4 | Neptos/openpilot | phonelibs/snpe/include/SNPE/RuntimeConfigList.hpp | [
"MIT"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 4 | sbj42/vscode | src/vs/editor/browser/view/dynamicViewOverlay.ts | [
"MIT"
] |
SELECT k, finalizeAggregation(quantilesTimingState(0.5)(x)) FROM (SELECT intDiv(number, 30000 AS d) AS k, number % d AS x FROM system.numbers LIMIT 100000) GROUP BY k WITH TOTALS ORDER BY k;
| SQL | 3 | pdv-ru/ClickHouse | tests/queries/0_stateless/00271_agg_state_and_totals.sql | [
"Apache-2.0"
] |
PHP_ARG_ENABLE([filter],
[whether to enable input filter support],
[AS_HELP_STRING([--disable-filter],
[Disable input filter support])],
[yes])
if test "$PHP_FILTER" != "no"; then
PHP_NEW_EXTENSION(filter, filter.c sanitizing_filters.c logical_filters.c callback_filter.c, $ext_shared,, -DZEND_ENABLE_STATIC... | M4 | 2 | thiagooak/php-src | ext/filter/config.m4 | [
"PHP-3.01"
] |
sleep 1
t app led red_top_bottom on
sleep 3
t app led red_top_bottom off
sleep 1
t app led red_top_bottom on
sleep 3
t app led red_top_bottom off
sleep 1
t app button shutter PR
| AGS Script | 2 | waltersgrey/autoexechack | Timer/Hero3PlusSilver/Top-Bottom-LED/autoexec.ash | [
"MIT"
] |
=pod
=head1 NAME
OSSL_PARAM_dup, OSSL_PARAM_merge, OSSL_PARAM_free
- OSSL_PARAM array copy functions
=head1 SYNOPSIS
#include <openssl/params.h>
OSSL_PARAM *OSSL_PARAM_dup(const OSSL_PARAM *params);
OSSL_PARAM *OSSL_PARAM_merge(const OSSL_PARAM *params, const OSSL_PARAM *params1);
void OSSL_PARAM_free(OSSL_PAR... | Pod | 5 | pmesnier/openssl | doc/man3/OSSL_PARAM_dup.pod | [
"Apache-2.0"
] |
include:
- git_pillar.ssh.server
- git_pillar.ssh.user
| SaltStack | 2 | byteskeptical/salt | tests/integration/files/file/base/git_pillar/ssh/init.sls | [
"Apache-2.0"
] |
# make sure redo doesn't think merely *reading* the old file counts as
# modifying it in-place.
cat $1 >/dev/null 2>/dev/null || true
../../redo/py tick.py
cat $1 >/dev/null 2>/dev/null || true
echo hello
| Stata | 1 | BlameJohnny/redo | t/101-atime/atime2.do | [
"Apache-2.0"
] |
import TodoTask from 'TodoTask';
define TodoList {
slot toggleAll (event) {
var completed = event.currentTarget.checked;
this.model.toggleAll(completed);
}
slot taskChanged () {
this.model.save();
}
slot taskRemoved (event, task) {
this.model.del(task);
}
input .toggle-all
type = checkbox
check... | Mask | 4 | elenaparaschiv/todomvc | examples/atmajs/js/Todos/TodoList.mask | [
"MIT"
] |
x = 3
y = 2x
typeof(y)
f(x) = 2 + x
f
f(10)
function g(x, y)
z = x + y
return z^2
end
g(1, 2)
let s = 0
for i in 1:10
s += i # Equivalent to s = s + i
end
s
end
typeof(1:10)
function mysum(n)
s = 0
for i in 1:n
s += i
end
return s
end
mysum(100)
a = ... | Julia | 3 | JesseVermeulen123/bat | tests/syntax-tests/source/Julia/test.jl | [
"Apache-2.0",
"MIT"
] |
{{
***************************
* Pink V2 object v1.2 *
* Coded by Peter Verkaik *
* Date: December 19, 2007 *
***************************
}}
CON
'public constants
'//general purpose read/write registers (in order of memory map)
Nb_var00 = 00
Nb_var01 = 01
Nb_var02 = 02
Nb_var03 = 03
... | Propeller Spin | 5 | deets/propeller | libraries/community/p1/All/PinkV2/PinkV2.spin | [
"MIT"
] |
use @pony_exitcode[None](code: I32)
actor Main
new create(env: Env) =>
let a: ((Any, U8) | None) = (U8(0), 0)
let b: ((U8, U8) | None) = (0, 0)
if a is b then
@pony_exitcode(1)
end
| Pony | 3 | rtpax/ponyc | test/libponyc-run/identity-tuple-different-types/main.pony | [
"BSD-2-Clause"
] |
////////////////////////////////////////////////////////////////////////////////
// AssemblyInfo.prg
USING System.Reflection
USING System.Runtime.InteropServices
USING System.Security
[assembly: AssemblyTitleAttribute( "VO-Compatible Win32 API Library" )]
[assembly: AssemblyDescriptionAttribute( "VO-Compatible Win32... | xBase | 3 | orangesocks/XSharpPublic | Runtime/VOSDK/Source/VOSDK/Win32_API_Library_SDK/Properties/AssemblyInfo.prg | [
"Apache-2.0"
] |
#lang scribble/doc
@(require "common.rkt")
@title[#:tag "drracket-files"]{DrRacket Files}
@; ----------------------------------------
@section[#:tag "drracket-file-formats"]{Program Files}
The standard @as-index{file extension} for a Racket program file is
@indexed-file{.rkt}. The extensions @indexed-file{.ss},
@in... | Racket | 4 | racket-tw/drracket | drracket/scribblings/drracket/files.scrbl | [
"Apache-2.0",
"MIT"
] |
# Copyright (C) 2004-2015, Parrot Foundation.
.macro export_dl_func(lib, name, sig)
.local pmc edlftmp
dlfunc edlftmp, .lib, .name, .sig
set_global .name, edlftmp
.endm
.namespace ['Curses']
.sub __ncurses_init :load
loadlib $P1, 'libform'
if $P1 goto has_lib
loadlib $P1, 'cygform-8'
if $P1 goto has_lib
... | Parrot Internal Representation | 3 | winnit-myself/Wifie | runtime/parrot/library/Curses.pir | [
"Artistic-2.0"
] |
// Copyright 2019 The MediaPipe 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 a... | Objective-C++ | 4 | virdio/mediapipe | mediapipe/objc/MPPGLViewRenderer.mm | [
"Apache-2.0"
] |
"""Support for Velbus sensors."""
from __future__ import annotations
from velbusaio.channels import ButtonCounter, LightSensor, SensorNumber, Temperature
from homeassistant.components.sensor import (
SensorDeviceClass,
SensorEntity,
SensorStateClass,
)
from homeassistant.config_entries import ConfigEntry
... | Python | 5 | MrDelik/core | homeassistant/components/velbus/sensor.py | [
"Apache-2.0"
] |
import QtQuick 2.12
import QtQuick.Controls 2.12
import QtWebEngine 1.7
import QtWebChannel 1.0
import QtQuick.Layouts 1.12
import org.kde.kirigami 2.11 as Kirigami
Rectangle {
property bool isRequested: false
property alias source: interactionLoader.source
property alias interactionItem: interactionLoader... | QML | 4 | PureTryOut/mycroft-core | mycroft/res/ui/RequestHandler.qml | [
"Apache-2.0"
] |
const FunctionComponent2Input = () => <div>Anonymous function</div>;
export default FunctionComponent2Input;
| JavaScript | 3 | blomqma/next.js | packages/next-codemod/transforms/__testfixtures__/name-default-component/function-component-2.output.js | [
"MIT"
] |
use Datascope;
#require "flush.pl";
if ( @ARGV < 2 || @ARGV > 3 ) {
die ("USAGE: $0 file database [State]\n");
} else {
$file = $ARGV[0];
$database = $ARGV[1];
if( defined( $ARGV[2] ) ) {
$fix_state = $ARGV[2];
}
}
if (!-e $file) {
print STDERR "File to convert, $file, does not exist!\n";
exit(1);
}
@db... | XProc | 4 | jreyes1108/antelope_contrib | bin/import/gnis2db/gnis2db.xpl | [
"BSD-2-Clause",
"MIT"
] |
<%= t('.foo') do |translation| %>
<%= translation %>
<% end %>
| HTML+ERB | 2 | zvkemp/rails | actionview/test/fixtures/translations/templates/found_yield_single_argument.html.erb | [
"MIT"
] |
--TEST--
Enum can use traits
--FILE--
<?php
trait Rectangle {
public function shape(): string {
return "Rectangle";
}
}
enum Suit {
use Rectangle;
case Hearts;
case Diamonds;
case Clubs;
case Spades;
}
echo Suit::Hearts->shape() . PHP_EOL;
echo Suit::Diamonds->shape() . PHP_EOL;
... | PHP | 4 | NathanFreeman/php-src | Zend/tests/enum/traits.phpt | [
"PHP-3.01"
] |
module l3vpn-svc-ext {
yang-version 1;
namespace "urn:ietf:params:xml:ns:yang:l3vpn:svc:ext";
prefix "l3vpn-svc-ext";
import ietf-inet-types { prefix inet; }
import ietf-l3vpn-svc { prefix l3vpn; }
revision 2016-07-30 {
description
"Eliminated warnings";
}
revision "... | YANG | 5 | ariscahyadi/onos-1.14-with-indopronos-app | tools/test/configs/yang/l3vpn-svc-ext@2016-07-30.yang | [
"Apache-2.0"
] |
# Audio classification
<img src="../images/audio.png" class="attempt-right">
The task of identifying what an audio represents is called _audio
classification_. An audio classification model is trained to recognize various
audio events. For example, you may train a model to recognize events
representing three differen... | Markdown | 4 | EricRemmerswaal/tensorflow | tensorflow/lite/g3doc/examples/audio_classification/overview.md | [
"Apache-2.0"
] |
import { imageDemoTest } from '../../../tests/shared/imageTest';
describe('Grid image', () => {
imageDemoTest('grid');
});
| TypeScript | 3 | chnliquan/ant-design | components/grid/__tests__/image.test.ts | [
"MIT"
] |
package flash.ui;
extern class GameInputControl extends flash.events.EventDispatcher implements Dynamic {
@:flash.property var device(get,never) : GameInputDevice;
@:flash.property var id(get,never) : String;
@:flash.property var maxValue(get,never) : Float;
@:flash.property var minValue(get,never) : Float;
@:fla... | Haxe | 3 | Alan-love/haxe | std/flash/ui/GameInputControl.hx | [
"MIT"
] |
DROP TABLE "public"."table18";
| SQL | 1 | eazyfin/graphql-engine | cli/commands/testdata/migrate-squash-test/migrations/1588172669023_create_table_public_table18/down.sql | [
"Apache-2.0",
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.