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 |
|---|---|---|---|---|---|
{ lib, rustPlatform, runCommand, makeWrapper, rust-analyzer-unwrapped
, pname ? "rust-analyzer"
, version ? rust-analyzer-unwrapped.version
# Use name from `RUST_SRC_PATH`
, rustSrc ? rustPlatform.rustLibSrc
}:
runCommand "${pname}-${version}" {
inherit pname version;
inherit (rust-analyzer-unwrapped) src meta;
... | Nix | 3 | arjix/nixpkgs | pkgs/development/tools/rust/rust-analyzer/wrapper.nix | [
"MIT"
] |
implement
main0 () = print("Hello, world!\n")
| ATS | 3 | JStearsman/hello-worlds | examples/ATS.dats | [
"Unlicense"
] |
block content
if view.history
#model
div
p(style="color:white") 自动跳转中,请稍后。。。
.container-fluid.con
.header.row
a.navbar-brand(href="/home")
img#logo-img(src="/images/pages/base/logo.png")
.row
.col-md-6.left.center(style="padding-left:2%")
.card
div(st... | Jade | 3 | cihatislamdede/codecombat | app/templates/china-bridge-view.jade | [
"CC-BY-4.0",
"MIT"
] |
set(CMAKE_SYSTEM_NAME "Linux")
set(CMAKE_C_COMPILER riscv64-unknown-linux-gnu-gcc)
set(CMAKE_CXX_COMPILER riscv64-unknown-linux-gnu-g++)
set(CMAKE_CXX_FLAGS "" CACHE STRING "")
set(CMAKE_C_FLAGS "" CACHE STRING "")
set(CMAKE_CXX_FLAGS "-static -march=rv64gcvxthead -mabi=lp64v -pthread -D__riscv_vector_071")
se... | CMake | 2 | xipingyan/opencv | platforms/linux/riscv64-071-gcc.toolchain.cmake | [
"Apache-2.0"
] |
#ifndef HEADER_CURL_MULTIBYTE_H
#define HEADER_CURL_MULTIBYTE_H
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* ... | C | 4 | Greg-Muchka/curl | lib/curl_multibyte.h | [
"curl"
] |
<?xml version="1.0"?>
<rdf:RDF xmlns="http://www.semanticweb.org/ontologies/2010/1/Ontology1265977260436.owl#"
xml:base="http://www.semanticweb.org/ontologies/2010/1/Ontology1265977260436.owl"
xmlns:owl2xml="http://www.w3.org/2006/12/owl2-xml#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdf... | Web Ontology Language | 3 | larsw/dotnetrdf | Testing/unittest/resources/json.owl | [
"MIT"
] |
#! parrot-nqp
# Copyright (C) 2011, Parrot Foundation.
pir::load_bytecode("YAML/Tiny.pbc");
pir::load_bytecode("nqp-setting.pbc");
=begin NAME
show_experimental.nqp - Show experimental features listed in api.yaml
=end NAME
=begin SYNOPSIS
parrot-nqp tools/dev/show_experimental.nqp
=end SYNOPSIS
=begin DESCRIPTI... | Perl6 | 5 | winnit-myself/Wifie | tools/dev/show_experimental.nqp | [
"Artistic-2.0"
] |
# note this is a "dynamic" include, output string will be used as source
[ _registry.groups
| to_entries[]
# TODO: nicer way to skip "all" which also would override builtin all/*
| select(.key != "all")
| "def \(.key)($opts): decode(\(.key | tojson); $opts);"
, "def \(.key): decode(\(.key | tojson); {});"
] | join("\n... | JSONiq | 3 | bbhunter/fq | pkg/interp/format_decode.jq | [
"MIT"
] |
precision mediump float;
uniform sampler2D uDepthTexture;
uniform mat4 uUvTransform;
uniform float uRawValueToMeters;
uniform float uAlpha;
varying vec2 vTexCoord;
float DepthGetMeters(in sampler2D depth_texture, in vec2 depth_uv) {
// Depth is packed into the luminance and alpha components of its texture.
// Th... | GLSL | 5 | zealoussnow/chromium | third_party/webxr_test_pages/webxr-samples/shaders/depth-api-gpu.frag | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
--TEST--
Bug #79254 (getenv() w/o arguments not showing changes)
--FILE--
<?php
$old = getenv();
var_dump(getenv("PHP_BUG_79254", true));
putenv("PHP_BUG_79254=BAR");
$new = getenv();
var_dump(array_diff($new, $old));
var_dump(getenv("PHP_BUG_79254", true));
?>
--EXPECT--
bool(false)
array(1) {
["PHP_BUG_79254"]=... | PHP | 3 | thiagooak/php-src | ext/standard/tests/general_functions/bug79254.phpt | [
"PHP-3.01"
] |
package com.baeldung.time;
import org.junit.Test;
import org.mockito.MockedStatic;
import java.time.Clock;
import java.time.Instant;
import java.time.ZoneId;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mockStatic;
public class InstantUnitTest {
@Test
public v... | Java | 4 | DBatOWL/tutorials | core-java-modules/core-java-time-measurements/src/test/java/com/baeldung/time/InstantUnitTest.java | [
"MIT"
] |
#ifndef @(package_name)__VISIBILITY_CONTROL_H_
#define @(package_name)__VISIBILITY_CONTROL_H_
// This logic was borrowed (then namespaced) from the examples on the gcc wiki:
// https://gcc.gnu.org/wiki/Visibility
#if defined _WIN32 || defined __CYGWIN__
#ifdef __GNUC__
#define @(package_name)_EXPORT __attri... | EmberScript | 3 | sunbo57123/ros2cli_common_extension | ros2pkg/ros2pkg/resource/cpp/visibility_control.h.em | [
"Apache-2.0"
] |
;_____________________________________________________________________________
;
; File Functions
;_____________________________________________________________________________
;
; 2006 Shengalts Aleksander aka Instructor (Shengalts@mail.ru)
Name "File Functions"
OutFile "FileFunc.exe"
Caption... | NSIS | 3 | vbillet/Torque3D | Engine/bin/tools/nsis/app/Examples/FileFunc.nsi | [
"MIT"
] |
#feature-sass-inclusion
background: ghostwhite
color: crimson
| Sass | 2 | sandie06/create-react-app | packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/assets/sass-styles.sass | [
"MIT"
] |
At: "041.hac":7:
parse error: syntax error
parser stacks:
state value
#STATE# (null)
#STATE# (process-prototype) [5:1..32]
#STATE# { [5:34]
#STATE# ( [6:1]
#STATE# ; [6:2]
#STATE# identifier: i [6:3]
#STATE# : [6:4]
#STATE# (range) [6:5]
#STATE# : [6:6]
#STATE# keyword: spec [7:1..4]
in state #STATE#, possible rules a... | Bison | 0 | broken-wheel/hacktist | hackt_docker/hackt/test/parser/datatype/041.stderr.bison | [
"MIT"
] |
sub main()
print "main2:" + commonUtil()
print "main2:" + onlyInScopeForMain()
end sub
| Brightscript | 1 | pureinertia/brs | test/e2e/resources/execute-with-scope/main2.brs | [
"MIT"
] |
// These are included in Debug verbs for the sake of not making a whole new category. Tick
// this file only if you want to use the procs, there's zero reason to use it on a live server.
/datum/admin_permissions/debug/New()
verbs |= /client/proc/ProduceSkinTones
verbs |= /client/proc/ProduceColouredStates
..()
var... | DM | 5 | BloodyMan/Antimonium | code/admin/admin_verbs_utility.dm | [
"CC-BY-4.0"
] |
// Write a method to replace all spaces in a string with '%20.' You may assume that the string
// has sufficient space at the end of the string to hold the additional characters, and that you
// are given the "true" length of the string. (Note: if implementing in Java, please use a characters
// array so that you can p... | Java | 4 | ChickenMomos/interviews | cracking-the-coding-interview/chapter-one-arrays-and-strings/ReplaceSpaces.java | [
"MIT"
] |
use clap::*;
use std::collections::HashMap;
use std::fs::OpenOptions;
use std::io::Write;
/*
usage:
[generate a mit LICENSE file in current directory]
gen-license-rs mit
[list license types]
gen-license-rs --list
[generate license with 996ICU]
gen-license-rs mit --996icu en-us
gen-license-rs mit --996icu zh-cn
... | Rust | 4 | luyouli/996.ICU | archived/licenses[WIP]/tools/gen-license-rs/src/main.rs | [
"ICU",
"MIT"
] |
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
namespace Phalcon\Filter;
/**
* Lazy loads, stores and exposes sanitizer objects
*/
i... | Zephir | 4 | zsilbi/cphalcon | phalcon/Filter/FilterInterface.zep | [
"BSD-3-Clause"
] |
# Copyright (C) 2001-2008, Parrot Foundation.
=head1 NAME
examples/io/http.pir - HTTP client
=head1 SYNOPSIS
% ./parrot examples/io/http.pir
=head1 DESCRIPTION
HTTP client, connects to WWW port and grabs a page (L<http://www.ibm.com>).
You should be running the echo service on your box (port 7).
=cut
.incl... | Parrot Internal Representation | 4 | winnit-myself/Wifie | examples/io/http.pir | [
"Artistic-2.0"
] |
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -instcombine -S | FileCheck %s
@hello = private constant [11 x i8] c"helloworld\00", align 1
declare i8* @memccpy(i8*, i8*, i32, i64)
define i8* @memccpy_to_memcpy(i8* %dst) {
; CHECK-LABEL: @memccpy_to_memcpy(
; CHECK-NEXT: ... | LLVM | 5 | arunkumarbhattar/llvm | test/Transforms/InstCombine/memccpy.ll | [
"Apache-2.0"
] |
package io.swagger.client.model {
[XmlRootNode(name="User")]
public class User {
[XmlElement(name="id")]
public var id: Number = 0;
[XmlElement(name="username")]
public var username: String = null;
[XmlElement(name="firstName")]
public va... | ActionScript | 4 | wwadge/swagger-codegen | samples/client/petstore/flash/flash/src/io/swagger/client/model/User.as | [
"Apache-2.0"
] |
Scriptname C00TrainerScript extends ReferenceAlias
int numHits = 0
Event OnMagicEffectApply(ObjectReference akCaster, MagicEffect akEffect)
; Debug.Trace("C00: Vilkas hit by magic.")
if (Game.GetPlayer() == akCaster)
GetOwningQuest().SetStage(100)
endif
EndEvent
Event OnEnterBleedout()
BleedoutChecks()
EndEv... | Papyrus | 4 | Hagser/skyrim | Source/C00TrainerScript.psc | [
"Unlicense"
] |
<x><![CDATA[
declare namespace m0="http://services.samples";
declare variable $payload as document-node() external;
<m:getQuote xmlns:m="http://services.samples">
<m:request>
<m:symbol>{$payload//m0:CheckPriceRequest/m0:Code/child::text()}</m:symbol>
</m:request>
</m:getQuote>
]]></x> | XQuery | 3 | isuruuy429/product-ei | samples/product/src/main/conf/synapse/resources/xquery/xquery_req.xq | [
"Apache-2.0"
] |
<style>
.demo-progress__progress-default .mdl-progress {
width: 50vw;
max-width: 260px;
}
</style>
{% include "progress-default.html" %}
| HTML | 2 | greatwqs/staffjoy | frontend/third_party/node/material_design_lite/progress/snippets/progress-default-demo.html | [
"MIT"
] |
@0xeef286f78b0168e0;
# When cloning the example, you'll want to replace the above file ID with a new
# one generated using the `capnp id` command.
using Spk = import "/sandstorm/package.capnp";
using Grain = import "/sandstorm/grain.capnp";
# This imports:
# $SANDSTORM_HOME/latest/usr/include/sandstorm/package.capn... | Cap'n Proto | 4 | rgfernandes/draw.io | etc/sandstorm/sandstorm-pkgdef.capnp | [
"Apache-2.0"
] |
# for more details see: http://emberjs.com/guides/components/
<%= application_name.camelize %>.<%= class_name %>Component = Ember.Component.extend({
})
| EmberScript | 3 | JakeKaad/ember-rails | lib/generators/templates/component.em | [
"MIT"
] |
#world {
line-dasharray: none;
line-dash-offset: none;
line-geometry-transform: none;
line-join: none;
line-cap: none;
line-gamma-method: none;
line-simplify-algorithm: none;
line-rasterizer: none;
line-comp-op: none;
point-transform: none;
point-placement: none;
point-c... | CartoCSS | 2 | nimix/carto | test/rendering-mss/issue_214.mss | [
"Apache-2.0"
] |
// regression test for https://github.com/nddrylliog/rock/issues/639
Bag: class <J, K, L> {
j: J
k: K
l: L
init: func (=j, =k, =l)
}
peekaboo: func <A, B, C, D, E, F> (arg: Bag<A, B, C>, arg2: Bag<D, E, F>) {
"A = %s" printfln(A name)
"B = %s" printfln(B name)
"C = %s" printfln(C name)
... | ooc | 3 | shamanas/rock | test/compiler/generics/function-typearg-infer-from-nested-generic-argument.ooc | [
"MIT"
] |
--[[
OpenAPI Petstore
This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
]]
--[[
Unit tests for petstore.api.pet_api
Automatically generated by openapi... | Lua | 4 | MalcolmScoffable/openapi-generator | samples/client/petstore/lua/spec/pet_api_spec.lua | [
"Apache-2.0"
] |
(
Example File for ANS Forth Syntax Highlighting
6th December 2011 Mark Corbin <mark@dibsco.co.uk>
Version 1.0 06-12-11
- Initial release.
)
\ This is a single line comment.
( This
is
a
multi-line
comment )
\ Single Characters
char A
[char] B
\ Strings
." Display this string."
s" Compile this string.... | Forth | 5 | subethaedit/SubEthaEd | Documentation/ModeDevelopment/Reference Files/hl/highlight.4th | [
"MIT"
] |
/*
* Copyright 2013 The Sculptor Project Team, including the original
* author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/L... | Xtend | 3 | sculptor/sculptor | sculptor-generator/sculptor-generator-core/src/main/java/org/sculptor/generator/formatter/ASTNodeHelper.xtend | [
"Apache-2.0"
] |
# Check order-only dependency formatting.
#
# RUN: %{llbuild} ninja load-manifest %s > %t
# RUN: %{FileCheck} < %t %s
# CHECK: "target-a": phony | "target-b"
# CHECK: "target-b": phony || "target-a"
# CHECK: "target-c": phony | "target-a" || "target-b"
build target-a: phony | target-b
build target-b: phony || target-... | Ninja | 4 | val-verde/swift-llbuild | tests/Ninja/Loader/dependency-format.ninja | [
"Apache-2.0"
] |
'reach 0.1';
import blah from 'sample_lib.rsh';
export const main = Reach.App(
{}, [], () => {
return x;
}
);
| RenderScript | 1 | chikeabuah/reach-lang | hs/t/n/Err_Import_IllegalJS.rsh | [
"Apache-2.0"
] |
module.exports = typeof require; | JavaScript | 1 | 1shenxi/webpack | test/cases/parsing/typeof/typeof.js | [
"MIT"
] |
----------------------------------------------------------------------------------
-- Engineer: Mike Field <hamster@snpa.net.nz>
--
-- Module Name: udp_rx_packet - Behavioral
--
-- Description: For receiving UDP packets
--
------------------------------------------------------------------------------------
-- FPGA_... | VHDL | 4 | hamsternz/FPGA_Webserver | hdl/udp/udp_rx_packet.vhd | [
"MIT"
] |
module FirebaseyTestPlace end
@testset "Firebasey" begin
Core.eval(FirebaseyTestPlace, quote
using Test
include("../src/webserver/Firebasey.jl")
end)
end
| Julia | 2 | Mechachleopteryx/Pluto.jl | test/Firebasey.jl | [
"MIT"
] |
#!/bin/bash
#
# Copyright 2020 PingCAP, Inc.
#
# 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... | Shell | 3 | cuishuang/tidb | br/tests/run_compatible.sh | [
"Apache-2.0"
] |
// rustfmt-format_strings: true
// rustfmt-max_width: 80
fn test1() {
let expected = "\
but Doctor Watson has to have it taken out for him and dusted,
";
}
fn test2() {
let expected = "\
[Omitted long matching line]
but Doctor Watson has to have it taken out for him and dusted,
";
}
| Rust | 3 | mbc-git/rust | src/tools/rustfmt/tests/target/format_strings/issue-2833.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
<mat-form-field appearance="fill">
<mat-label>Message</mat-label>
<input matInput value="Disco party!" #message>
</mat-form-field>
<mat-form-field appearance="fill">
<mat-label>Action</mat-label>
<input matInput value="Dance" #action>
</mat-form-field>
<button mat-stroked-button (click)="openSnackBar(message.... | HTML | 3 | tungyingwaltz/components | src/components-examples/material/snack-bar/snack-bar-overview/snack-bar-overview-example.html | [
"MIT"
] |
(declare-const str String)
(declare-const lower Int)
(declare-const upper Int)
(assert (< lower upper))
(define-fun substr () String (str.substr str lower upper))
(assert (= substr "cde"))
(assert (= (str.substr str upper lower) "cde"))
(assert (not (= str substr)))
(check-sat)
| SMT | 3 | mauguignard/cbmc | regression/smt2_strings/substr_input_unsat/substr_input_unsat.smt2 | [
"BSD-4-Clause"
] |
// Compile with:
// mtasc -main -header 200:150:30 Test.as -swf test.swf
class Test {
static function main(current) {
// Regression test for issue #2123
var mc = current.createEmptyMovieClip("mc", 1);
var loader = new MovieClipLoader();
loader.onLoadInit = function(mc2) {
... | ActionScript | 4 | Sprak1/ruffle | tests/tests/swfs/avm1/loadmovie_fail/Test.as | [
"Apache-2.0",
"Unlicense"
] |
parameters {
array[2] real<lower=-10, upper=10> y;
}
model {
y ~ normal(0, 1);
}
generated quantities {
print("no QoIs");
}
| Stan | 3 | sthagen/stan-dev-stan | src/test/test-models/good/services/test_gq2.stan | [
"CC-BY-3.0",
"BSD-3-Clause"
] |
function fooBar()
return "foo bar"
end function
function barBaz()
return "bar baz"
end function
function mockFunctionsHelper()
_brs_.mockFunction("fooBar", function() as string
return "fake fooBar"
end function)
_brs_.mockFunction("barBaz", function() as string
return "fake barBaz... | Brightscript | 3 | lkipke/brs | test/e2e/resources/components/mocks/reset/helpers.brs | [
"MIT"
] |
; v0.11
[Components]
Name: "autoit\exe2aut"; Description: "Exe2Aut"; Types: full;
[Files]
Source: "{#MySrcDir}\autoit\exe2aut\*"; DestDir: "{app}\autoit\exe2aut"; Components: "autoit\exe2aut"; Flags: ignoreversion recursesubdirs createallsubdirs
[Icons]
Name: "{group}\{#MyAppName}\Exe2Aut"; Filename: "{app}... | Inno Setup | 2 | hugmyndakassi/retoolkit | src/installer/autoit/exe2aut.iss | [
"Apache-2.0"
] |
#!/usr/bin/env bash
#
# Download and install standalone binary.
# The binary version can be specified by setting a VERSION variable.
# e.g. VERSION=2.21.1 bash install.sh
# If VERSION is unspecified it will download the latest version.
set -e
reset="\033[0m"
red="\033[31m"
green="\033[32m"
yellow="\033[33m"
cyan="\03... | Shell | 5 | Arun-kc/serverless | scripts/pkg/install.sh | [
"MIT"
] |
#
# racc tester
#
class Calcp
prechigh
left '*' '/'
left '+' '-'
preclow
convert
NUMBER 'Number'
end
rule
target : exp | /* none */ { result = 0 } ;
exp : exp '+' exp { result += val[2]; @plus = 'plus' }
| exp '-' exp { result -= val[2]; @str = "string test" }
| exp '*... | Yacc | 4 | puzzle/nochmal | spec/dummy/vendor/bundle/ruby/2.7.0/gems/racc-1.5.2/test/assets/chk.y | [
"MIT"
] |
{% extends '@SyliusAttribute/Types/default.html.twig' %}
| Twig | 0 | orestshes/Sylius | src/Sylius/Bundle/ShopBundle/Resources/views/Product/Show/Types/default.html.twig | [
"MIT"
] |
#
# Copyright 2014 (c) Pointwise, Inc.
# All rights reserved.
#
# This sample Pointwise script is not supported by Pointwise, Inc.
# It is provided freely for demonstration purposes only.
# SEE THE WARRANTY DISCLAIMER AT THE BOTTOM OF THIS FILE.
#
#######################################################################... | Glyph | 5 | smola/language-dataset | data/github.com/pointwise/ScaledOffset/0cdf4785e0b6a1235782bd7376f28300f0bd5255/ScaledOffset.glf | [
"MIT"
] |
\section{Proof search in Agda}
\label{sec:prolog}
The following section describes our implementation of proof search
à la Prolog in Agda. This implementation abstracts over two data types
for names---one for inference rules and one for term constructors.
These data types will be referred to as |RuleName| and |TermName... | Literate Agda | 5 | wenkokke/AutoInAgda | doc/prolog.lagda | [
"MIT"
] |
module top;
typedef struct packed {
byte a,b,c,d;
} byte4_t;
typedef union packed {
int x;
byte4_t y;
} w_t;
w_t w;
assign w.x = 'h42;
always_comb begin
assert(w.y.d == 8'h42);
end
typedef logic[4:0] reg_addr_t;
typedef logic[6:0] opcode_t;
typedef struct packed {
bit [6:0] func7;
reg_addr... | SystemVerilog | 3 | gudeh/yosys | tests/svtypes/union_simple.sv | [
"ISC"
] |
#NoTrayIcon
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Change2CUI=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <Array.au3>
#include <GUIConstants.au3>
#include <ScreenCapture.au3>
#include <GuiToolBar.au3>
#include <GUIConstants.au3>
#cs ------------------... | AutoIt | 3 | ohio813/OffensiveAutoIt | Credential-Access/1PasswordCredExport.au3 | [
"BSD-2-Clause"
] |
#
# @expect=org.quattor.pan.parser.ParseException
#
object template choice2;
type mychoice = choice();
| Pan | 1 | aka7/pan | panc/src/test/pan/Functionality/choice/choice2.pan | [
"Apache-2.0"
] |
#N canvas 743 48 565 509 12;
#X obj 63 192 clip~ -0.5 0.5;
#X obj 63 122 osc~ 1000;
#N canvas 0 22 450 278 (subpatch) 0;
#X array clip 100 float 0;
#X coords 0 1 100 -1 200 100 1 0 0;
#X restore 297 282 graph;
#X obj 85 331 metro 500;
#X obj 62 19 clip~;
#X text 108 18 - restrict a signal to lie between two limits;
#X ... | Pure Data | 4 | myQwil/pure-data | doc/5.reference/clip~-help.pd | [
"TCL"
] |
At: "107.hac":6:
parse error: syntax error
parser stacks:
state value
#STATE# (null)
#STATE# (process-prototype) [4:1..26]
#STATE# { [4:28]
#STATE# keyword: chp [5:1..3]
#STATE# { [5:5]
#STATE# *[ [6:2]
#STATE# (id-expr): B [6:5]
#STATE# # [6:6]
#STATE# ] [6:8]
in state #STATE#, possible rules are:
chp_peek: member_i... | Bison | 0 | broken-wheel/hacktist | hackt_docker/hackt/test/parser/chp/107.stderr.bison | [
"MIT"
] |
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
#LOCAL_LDFLAGS += -llog
#LOCAL_CFLAGS += -DDEBUG
LOCAL_MODULE := exploit
LOCAL_SRC_FILES := exploit.c
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_LDFLAGS += -llog
LOCAL_CFLAGS += -DDEBUG
LOCAL_MODULE := debugexploit
LOCAL_SRC_FILES ... | Makefile | 3 | OsmanDere/metasploit-framework | external/source/exploits/CVE-2013-6282/Android.mk | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
$TTL 3d
@ IN SOA root.localhost. root.sneaky.net. (
2015042907 ; serial
3d ; refresh
1h ; retry
12d ; expire
2h ; negative response TTL
)
IN NS root.localhost.
IN NS localhost. ; secondary name server is preferably externally maintained
www IN A 3.141.59.26
| DNS Zone | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/DNS Zone/sneaky.net.zone | [
"MIT"
] |
.layout img {
margin: auto;
max-width: 98%;
display: block;
height: auto;
}
| CSS | 3 | yjose/orval | docs/src/styles/shared.module.css | [
"MIT"
] |
;
; jmemdosa.asm
;
; Copyright (C) 1992, Thomas G. Lane.
; This file is part of the Independent JPEG Group's software.
; For conditions of distribution and use, see the accompanying README file.
;
; This file contains low-level interface routines to support the MS-DOS
; backing store manager (jmemdos.c). Routines are ... | Assembly | 5 | madanagopaltcomcast/pxCore | examples/pxScene2d/external/jpeg-9a/jmemdosa.asm | [
"Apache-2.0"
] |
SUMMARY = "watchdog"
DESCRIPTION = "watchdog"
LICENSE = "CLOSED"
SRC_URI = " \
file://init.service \
file://src/ \
"
do_compile() {
cd ${WORKDIR}/src
make
}
do_install () {
install -d ${D}${sysconfdir}
install -m 0644 ${WORKDIR}/init.service ${D}${sysconfdir}
install -d ${D}${bindir}
in... | BitBake | 2 | abir1999/xiaoPi | bsp/meta-xiaopi/recipes-images/watchdog/watchdog.bb | [
"Unlicense"
] |
insert into users values (1, 'Alex', 1);
insert into users values (2, 'Bob', 1);
insert into users values (3, 'John', 0);
insert into users values (4, 'Harry', 0);
insert into users values (5, 'Smith', 1); | SQL | 2 | zeesh49/tutorials | spring-boot/src/main/resources/data.sql | [
"MIT"
] |
body { background-color: red;}
h1 { color: blue; }
| CSS | 3 | ravitejavalluri/brackets | test/spec/LiveDevelopment-test-files/static-project-2/sub/sub2/test.css | [
"MIT"
] |
<?Lassoscript
// Last modified 3/7/10 by ECL, Landmann InterActive
/*
Tagdocs;
{Tagname= LI_ShowIconByDataType }
{Description= Displays an icon for a DataType }
{Author= Eric Landmann }
{AuthorEmail= support@iterate.ws }
{ModifiedBy= }
{ModifiedByEmail= }
{Date= 6/23/08 }
{Usage= LI_ShowIconByDat... | Lasso | 4 | subethaedit/SubEthaEd | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/LassoStartup/LI_ShowIconByDataType.lasso | [
"MIT"
] |
Multidict > 5 is now supported
| Cucumber | 0 | loven-doo/aiohttp | CHANGES/5075.feature | [
"Apache-2.0"
] |
fn f() -> Box<
dyn FnMut() -> Thing< WithType = LongItemName, Error = LONGLONGLONGLONGLONGONGEvenLongerErrorNameLongerLonger>,
>{
} | Rust | 3 | mbc-git/rust | src/tools/rustfmt/tests/source/issue-3651.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
[
'getopt',
'test_multipackage1',
'.*multipackage1_B:.*ssl.*',
'(?i).*multipackage1_B:.*python.*',
]
| TeX | 1 | hawkhai/pyinstaller | tests/functional/logs/test_multipackage1.toc | [
"Apache-2.0"
] |
<script>
document.write('<h1 id="res2">Node is ' + (typeof nw === 'undefined' ? 'DISABLED': 'ENABLED') + '</h1>');
</script>
| HTML | 3 | namaljayathunga/nw.js | test/remoting/iframe-remote/test.html | [
"MIT"
] |
a { color: #aabbccff } | CSS | 2 | kitsonk/swc | css/parser/tests/fixture/esbuild/misc/b2m1STf0F5CKity6Nd4vmQ/input.css | [
"Apache-2.0",
"MIT"
] |
#
# test of operators
#
# @expect="/nlist[@name='profile']/list[@name='t']/*[1]='true' and /nlist[@name='profile']/list[@name='t']/*[2]='true' and /nlist[@name='profile']/list[@name='t']/*[3]='true' and /nlist[@name='profile']/list[@name='t']/*[4]='true' and /nlist[@name='profile']/list[@name='t']/*[5]='true' and /nlis... | Pan | 3 | aka7/pan | panc/src/test/pan/Functionality/operator/operator1.pan | [
"Apache-2.0"
] |
(*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
open Base.Result.Let_syntax
module FilenameSet = Utils_js.FilenameSet
let spf = Printf.sprintf
type error = {
msg: string;
ex... | OCaml | 5 | zhangmaijun/flow | src/server/rechecker/recheck_updates.ml | [
"MIT"
] |
CREATE TEMPORARY VIEW t1 AS SELECT * FROM VALUES (1) AS GROUPING(a);
CREATE TEMPORARY VIEW t2 AS SELECT * FROM VALUES (1) AS GROUPING(a);
CREATE TEMPORARY VIEW empty_table as SELECT a FROM t2 WHERE false;
SELECT * FROM t1 INNER JOIN empty_table;
SELECT * FROM t1 CROSS JOIN empty_table;
SELECT * FROM t1 LEFT OUTER JOI... | SQL | 3 | OlegPt/spark | sql/core/src/test/resources/sql-tests/inputs/join-empty-relation.sql | [
"Apache-2.0"
] |
import pytest
import numpy as np
from sklearn.impute._base import _BaseImputer
from sklearn.utils._mask import _get_mask
@pytest.fixture
def data():
X = np.random.randn(10, 2)
X[::2] = np.nan
return X
class NoFitIndicatorImputer(_BaseImputer):
def fit(self, X, y=None):
return self
def... | Python | 4 | MaiRajborirug/scikit-learn | sklearn/impute/tests/test_base.py | [
"BSD-3-Clause"
] |
/*
* anyclass unit
*
* NB: DO NOT IMPORT OR INCLUDE THIS FILE INTO YOUR PROGRAM.
* IT WILL BE IMPLICITLY IMPORTED.
*/
unit
class *anyclass
% Do nothing!
end anyclass
| Turing | 1 | ttracx/OpenTuring | turing/test/support/predefs/anyclass.tu | [
"MIT"
] |
PHP_ARG_ENABLE([xml],
[whether to enable XML support],
[AS_HELP_STRING([--disable-xml],
[Disable XML support])],
[yes])
PHP_ARG_WITH([expat],
[whether to build with expat support],
[AS_HELP_STRING([--with-expat],
[XML: use expat instead of libxml2])],
[no],
[no])
if test "$PHP_XML" != "no"; then... | M4 | 3 | thiagooak/php-src | ext/xml/config.m4 | [
"PHP-3.01"
] |
<mt:Ignore>
# =======================
#
# パーツ-関連記事
#
# モディファイアの基本値:
# taxonomy = $ec_taxonomy_label
# limit = 3
# layout = media
#
# =======================
</mt:Ignore>
<mt:Unless name="taxonomy">
<mt:Var name="ec_taxonomy_label" setvar="taxonomy" />
</mt:Unless>
<mt:Unless name="limit">
<mt:SetVar nam... | MTML | 3 | webbingstudio/mt_theme_echo_bootstrap | dist/themes/echo_bootstrap/templates/parts_similar.mtml | [
"MIT"
] |
// Regression test for #67037.
//
// In type checking patterns, E0023 occurs when the tuple pattern and the expected
// tuple pattern have different number of fields. For example, as below, `P()`,
// the tuple struct pattern, has 0 fields, but requires 1 field.
//
// In emitting E0023, we try to see if this is a case o... | Rust | 5 | ohno418/rust | src/test/ui/pattern/issue-67037-pat-tup-scrut-ty-diff-less-fields.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
;foobar!
;Include "blurg/blurg.bb"
Const ca = $10000000 ; Hex
Const cb = %10101010 ; Binary
Global ga$ = "blargh"
Local a = 124, b$ = "abcdef"
Function name_123#(zorp$, ll = False, blah#, waffles% = 100)
Return 235.7804 ; comment
End Function
Function TestString$()
End Function
Function hub(blah$,... | BitBake | 4 | btashton/pygments | tests/examplefiles/test.bb | [
"BSD-2-Clause"
] |
[[actuator.cloud-foundry]]
== Cloud Foundry Support
Spring Boot's actuator module includes additional support that is activated when you deploy to a compatible Cloud Foundry instance.
The `/cloudfoundryapplication` path provides an alternative secured route to all `@Endpoint` beans.
The extended support lets Cloud Fou... | AsciiDoc | 4 | techAi007/spring-boot | spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/cloud-foundry.adoc | [
"Apache-2.0"
] |
/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.
*
* You may ... | Ragel in Ruby Host | 4 | bigo-sg/seastar | src/http/chunk_parsers.rl | [
"Apache-2.0"
] |
198
0 1.79769313486232e+308
1 0.2
2 0.2
3 1.79769313486232e+308
4 0.2
5 0.2
6 1.79769313486232e+308
7 0.2
8 0.2
9 1.79769313486232e+308
10 0.2
11 0.2
12 1.79769313486232e+308
13 0.2
14 0.2
15 1.79769313486232e+308
16 0.2
17 0.2
18 1.79769313486232e+308
19 0.2
20 0.2
21 1.79769313486232e+308
22 0.2
23 0.2
24 1.797693134... | IDL | 0 | ricortiz/OpenTissue | demos/data/dlm/198/hi.dlm | [
"Zlib"
] |
// Copyright 2012 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.
// The runtime package uses //go:linkname to push a few functions into this
// package but we still need a .s file so the Go tool does not pass -complete
// to ... | GAS | 2 | Havoc-OS/androidprebuilts_go_linux-x86 | src/os/signal/sig.s | [
"BSD-3-Clause"
] |
<a href="{{$.Site.Params.ghrepo}}" target="_blank">GitHub repository</a> | HTML | 2 | jlevon/hugo | docs/layouts/shortcodes/ghrepo.html | [
"Apache-2.0"
] |
fun main () = return <xml><body>
<b>Wowza!</i>
</body></xml>
| UrWeb | 0 | apple314159/urweb | tests/mismatch.ur | [
"BSD-3-Clause"
] |
[
(class)
(singleton_class)
(method)
(singleton_method)
(module)
(call)
(if)
(block)
(do_block)
(hash)
(array)
(argument_list)
(case)
] @indent
[
"("
")"
"{"
"}"
"["
"]"
(when)
(elsif)
"end"
] @branch
(comment) @ignore
| Scheme | 2 | hmac/nvim-treesitter | queries/ruby/indents.scm | [
"Apache-2.0"
] |
#include <vector>
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/layers/reshape_layer.hpp"
#include "caffe/test/test_caffe_main.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
namespace caffe {
template <typename TypeParam>
class R... | C++ | 5 | asadanwar100/caffe | src/caffe/test/test_reshape_layer.cpp | [
"BSD-2-Clause"
] |
/*
Copyright © 2011 MLstate
This file is part of Opa.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify... | Opa | 4 | Machiaweliczny/oppailang | lib/stdlib/apis/github/user/user.opa | [
"MIT"
] |
; Copyright (c) 2011, Google Inc.
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are
; met:
;
; * Redistributions of source code must retain the above copyright
; notice, this list of conditions and... | Assembly | 3 | cssl-unist/tweezer | Docker/gperftools/src/windows/shortproc.asm | [
"MIT"
] |
2016-02-18 11:38:12 purple_request_0 Telegram wants to verify your identity. Please enter the login code that you have received via SMS.
2016-02-18 11:38:12 [11:38]
2016-02-18 11:38:33 fsociety 84475
2016-02-18 11:38:33 - [purple_request_0] is away: Offline
2016-02-18 11:41:20 purple_request_0 Telegram wants to veri... | IRC log | 0 | 0x4b1dN/2016-dots | misc/weechat/logs/irc.bitlbee.purple_request_0.weechatlog | [
"MIT"
] |
; RUN: opt -objc-arc-contract -S < %s | FileCheck %s
declare i8* @llvm.objc.autoreleaseReturnValue(i8*)
declare i8* @foo1()
; Check that ARC contraction replaces the function return with the value
; returned by @llvm.objc.autoreleaseReturnValue.
; CHECK-LABEL: define i32* @autoreleaseRVTailCall(
; CHECK: %[[V0:[0-9]... | LLVM | 4 | medismailben/llvm-project | llvm/test/Transforms/ObjCARC/contract-replace-arg-use.ll | [
"Apache-2.0"
] |
interface mixin HTMLOrSVGElement {
[SameObject] readonly attribute DOMStringMap dataset;
// TODO: Shouldn't be directly [Reflect]ed
[Reflect] attribute DOMString nonce; // intentionally no [CEReactions]
[CEReactions] attribute long tabIndex;
// We don't support FocusOptions yet
// undefined focus(optional Focu... | WebIDL | 3 | Unique184/jsdom | lib/jsdom/living/nodes/HTMLOrSVGElement.webidl | [
"MIT"
] |
/******************************************************************************
* Copyright 2019 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/localization/msf/local_pyramid_map/pyramid_map/pyramid_map_config_test.cc | [
"Apache-2.0"
] |
// @sourcemap: true
var x = 10;
switch (x) {
case 5:
x++;
break;
case 10:
{
x--;
break;
}
default:
x = x *10;
}
switch (x)
{
case 5:
x++;
break;
case 10:
{
x--;
break... | TypeScript | 3 | nilamjadhav/TypeScript | tests/cases/compiler/sourceMapValidationSwitch.ts | [
"Apache-2.0"
] |
// Copyright 2018 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 "go_asm.h"
#include "textflag.h"
TEXT ·Index(SB),NOSPLIT,$0-56
MOVD a_base+0(FP), R0
MOVD a_len+8(FP), R1
MOVD b_base+24(FP), R2
MOVD b_len+32(FP)... | GAS | 4 | Havoc-OS/androidprebuilts_go_linux-x86 | src/internal/bytealg/index_arm64.s | [
"BSD-3-Clause"
] |
discard """
output: '''
var data = @[(1, "one"), (2, "two")]
for (i, d) in pairs(data):
discard
for i, d in pairs(data):
discard
for i, (x, y) in pairs(data):
discard
var (a, b) = (1, 2)
var data = @[(1, "one"), (2, "two")]
for (i, d) in pairs(data):
discard
for i, d in pairs(data):
discard
for i, (x, y) in... | Nimrod | 2 | JohnAD/Nim | tests/macros/tastrepr.nim | [
"MIT"
] |
= Documentation for WebAuthn Verify Account Feature
The webauthn feature implements setting up an WebAuthn authenticator
during the account verification process, and making such setup
a requirement for account verification. By default, it disables
asking for a password during account creation and verification,
allowi... | RDoc | 3 | monorkin/rodauth | doc/webauthn_verify_account.rdoc | [
"MIT"
] |
#!/bin/bash
# Run the build (after purging .cache) and output the amount of time
# taken by the query execution phase
#
# run with `bin/runQueryTiming.sh`
output=$(rm -rf .cache && gatsby build | grep "run graphql queries")
echo "$output" | cut -d' ' -f 6
| Shell | 4 | JQuinnie/gatsby | benchmarks/query/bin/runQueryTiming.sh | [
"MIT"
] |
woof much a
shh 1
wow
| Dogescript | 0 | erinkeith/dogescript | test/spec/exports/assignment/lambda/source.djs | [
"MIT"
] |
\require "b"
\require "b@0.1"
| LilyPond | 0 | HolgerPeters/lyp | spec/user_files/double.ly | [
"MIT"
] |
#############################################################################
##
#W example.gd
##
## This file contains a sample of a GAP declaration file.
##
DeclareProperty( "SomeProperty", IsLeftModule );
DeclareGlobalFunction( "SomeGlobalFunction" );
#############################################################... | GDScript | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/GAP/example.gd | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.