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 |
|---|---|---|---|---|---|
!macro EnsureAppIsNotRunning
${For} $retryNumEnsureAppIsNotRunning 0 1000
DetailPrint "Checking if ${PRODUCT_EXE} is running..."
nsExec::ExecToStack /OEM 'tasklist /NH /FI "IMAGENAME eq ${PRODUCT_EXE}"'
Pop $0
${If} $0 != 0
DetailPrint "Error checking ${PRODUCT_EXE}: $0"
MessageBox MB_ICON... | NSIS | 4 | mocheer/keeweb | package/nsis/check-running.nsh | [
"Apache-2.0",
"MIT"
] |
The post-test process involves linting all of the files under `test/`. By
writing this file in Literate (style?) it verifies that literate files are
automatically detected.
path = require 'path'
vows = require 'vows'
assert = require 'assert'
coffeelint = require path.join('..', 'lib', 'coffeelint')
... | Literate CoffeeScript | 3 | alubbe/coffeelint | test/test_literate.litcoffee | [
"MIT"
] |
ruleset io.picolabs.tic_tac_toe {
meta {
use module io.picolabs.tic_tac_toe.ui alias ui
shares __testing, state, them, html, is_winner
}
global {
__testing = { "queries":
[ { "name": "__testing" }
, { "name": "state" }
, { "name": "them" }
, { "name": "is_winner", "args": [ "pl... | KRL | 4 | Picolab/TicTacToe | krl/io.picolabs.tic_tac_toe.krl | [
"MIT"
] |
<?php foreach ($object as $report): ?>
<?php echo $this->render($report) ?>
<?php endforeach ?>
| HTML+PHP | 4 | rustamwin/phpbench | templates/html/Reports.phtml | [
"MIT"
] |
a = MtClass.A.class | Web Ontology Language | 0 | michaeldesu/Concurnas | tests/com/concurnas/compiler/ast/testGenneral.owl | [
"MIT"
] |
load ../solvers/cp/cp.dll;
function element;
var x >= 0 <= 2;
minimize o: element({i in 1..3} i, x);
| AMPL | 2 | ampl/plugins | test/data/element.ampl | [
"BSD-3-Clause"
] |
(* Refer to Alex Aiken, "The Cool Reference Manual":
http://theory.stanford.edu/~aiken/software/cool/cool-manual.pdf
for language specification.
*)
-- Exhibit various language constructs
class Sample {
testCondition(x: Int): Bool {
if x = 0
then false
else
if x < (1 + 2) ... | OpenCL | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Cool/sample.cl | [
"MIT"
] |
/**
*
* {{name}} actions
*
*/
import { DEFAULT_ACTION } from './constants';
// eslint-disable-next-line import/prefer-default-export
export const defaultAction = () => {
return {
type: DEFAULT_ACTION,
};
};
| Handlebars | 3 | Mithenks/strapi | packages/generators/admin/component/templates/actions.js.hbs | [
"MIT"
] |
[CustomMessages]
bg.IDP_FormCaption =Изтегляне на допълнителни файлове
bg.IDP_FormDescription =Моля, изчакайте, докато съветникът изтегля допълнителните файлове...
bg.IDP_TotalProgress =Общ ход
bg.IDP_CurrentFile =Текущ файл
bg.IDP_File =Файл:
bg.IDP_Speed ... | Inno Setup | 2 | thedruz/WPN-XM | bin/innosetup-download-plugin/unicode/idplang/bulgarian.iss | [
"MIT"
] |
test_priv_key:
x509.private_key_managed:
- name: {{ pillar['keyfile'] }}
- bits: 4096
test_crt:
x509.certificate_managed:
- name: {{ pillar['crtfile'] }}
- public_key: {{ pillar['keyfile'] }}
- ca_server: minion
- signing_policy: {{ pillar['signing_policy'] }}
- CN: {{ grains.get('id') ... | SaltStack | 4 | Noah-Huppert/salt | tests/integration/files/file/base/x509_compound_match/check.sls | [
"Apache-2.0"
] |
h2. JavaScript Style Guide
endprologue.
h3. Code Conventions
WARNING: The current codebase does not yet follow all of these principles.
* We use jslint. Look for jslint4java-maven-plugin in pom.xml in the repository root to see our jslint configuration.
* We use only the +TAB+ character for indentation.
* We use +... | Textile | 4 | luciany/Aloha-Editor | doc/guides/source/style_guide.textile | [
"CC-BY-3.0"
] |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="20008000">
<Property Name="NI.LV.All.SourceOnly" Type="Bool">true</Property>
<Item Name="My Computer" Type="My Computer">
<Property Name="IOScan.Faults" Type="Str"></Property>
<Property Name="IOScan.NetVarPeriod" Type="UInt">100</Property>... | LabVIEW | 1 | MicroLabVIEW/MicroLabVIEW | lvproj/PicoG-Exe.lvproj | [
"MIT"
] |
NAME
ParaView::ClientKit
LIBRARY_NAME
vtkPVClientKit
| Kit | 0 | xj361685640/ParaView | Clients/Catalyst/vtk.kit | [
"Apache-2.0",
"BSD-3-Clause"
] |
# Generated by detect.nim
const
AIO_ALLDONE* = cint(1)
AIO_CANCELED* = cint(2)
AIO_NOTCANCELED* = cint(4)
LIO_NOP* = cint(0)
LIO_NOWAIT* = cint(1)
LIO_READ* = cint(1)
LIO_WAIT* = cint(2)
LIO_WRITE* = cint(2)
RTLD_LAZY* = cint(1)
RTLD_NOW* = cint(2)
RTLD_GLOBAL* = cint(8)
RTLD_LOCAL* = cint(4)
... | Nimrod | 1 | alehander92/Nim | tools/detect/macosx_consts.nim | [
"MIT"
] |
<template name="popout">
<div class="rc-popout-wrapper rc-popout--{{ type }}" draggable="true">
<div class="rc-popout rc-popout--{{ state }}" data-modal="modal">
<header class="rc-popout__header">
<h1 class="rc-popout__title">{{> icon icon="podcast"}}</h1>
{{#if showVideoControls}}
<div class="rc-pop... | HTML | 3 | subramanir2143/Rocket.Chat | app/ui-utils/client/lib/popout.html | [
"MIT"
] |
<files-datatable
title-text="Host browser - {{ $ctrl.getRelativePath() }}"
title-icon="fa-file"
dataset="$ctrl.files"
table-key="host_browser"
order-by="Dir"
is-root="$ctrl.isRoot()"
go-to-parent="$ctrl.goToParent()"
browse="$ctrl.browse(name)"
rename="$ctrl.renameFile(name, newName)"
download="$ctr... | HTML | 4 | dzma352/portainer | app/agent/components/host-browser/hostBrowser.html | [
"Zlib"
] |
// rustfmt-format_macro_matchers: true
macro_rules! foo {
($a:ident : $b:ty) => {
$a(42): $b;
};
($a:ident $b:ident $c:ident) => {
$a = $b + $c;
};
}
| Rust | 3 | mbc-git/rust | src/tools/rustfmt/tests/target/configs/format_macro_matchers/true.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="20dp"
android:height="20dp"
android:viewportWidth="20"
android:viewportHeight="20"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M14.5,3.75V4.5H... | XML | 2 | Imudassir77/material-design-icons | android/maps/local_movies/materialiconsround/black/res/drawable/round_local_movies_20.xml | [
"Apache-2.0"
] |
CREATE TABLE `tb_bbvvzzczcw` (
`col_ruygkecjzp` longblob,
`col_orycjbfrss` year(4) DEFAULT '2019',
`col_aqqnunnega` varbinary(225) DEFAULT NULL,
`col_pxwauaruqw` enum('enum_or_set_0','enum_or_set_1','enum_or_set_2') DEFAULT 'enum_or_set_0',
UNIQUE KEY `col_ruygkecjzp` (`col_ruygkecjzp`(14),`col_orycjbfrss`)
)... | SQL | 3 | yuanweikang2020/canal | parse/src/test/resources/ddl/table/mysql_1.sql | [
"Apache-2.0"
] |
#include <metal_stdlib>
#include "OperationShaderTypes.h"
using namespace metal;
typedef struct {
float2 center;
} StretchDistortionUniform;
fragment half4 stretchDistortionFragment(SingleInputVertexIO fragmentInput [[stage_in]],
texture2d<half> inputTexture [[texture(0)]],
... | Metal | 3 | luoxiao/GPUImage3 | framework/Source/Operations/StretchDistortion.metal | [
"BSD-3-Clause"
] |
// run-pass
#![allow(unused_variables)]
// pretty-expanded FIXME #23616
pub fn main() {
let x = [1, 2, 3];
let y = x;
}
| Rust | 2 | Eric-Arellano/rust | src/test/ui/issues/issue-16783.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#!/uns/bin/guile -s
!#
;;; $Id: cltests.scm,v 1.4 1999/03/17 07:40:56 gjb Exp $ -*- scwm -*-
;;; simple1
;;; be sure $CASSOWARY_HOME/guile is in your $GUILE_LOAD_PATH
;;; guile will look for app/cassowary/libconstraints.so to be somewhere off
;;; of a directory listed in $GUILE_LOAD_PATH
(use-modules (cassowary constra... | Scheme | 4 | crossmob/WinObjC | deps/3rdparty/cassowary-0.60/guile/cltests.scm | [
"MIT"
] |
"! Free Selections Dialog
CLASS zcl_abapgit_free_sel_dialog DEFINITION
PUBLIC
FINAL
CREATE PUBLIC.
PUBLIC SECTION.
TYPES:
BEGIN OF ty_free_sel_field,
name TYPE fieldname,
only_parameter TYPE abap_bool,
param_obligatory TYPE abap_bool,
value TYP... | ABAP | 4 | IvxLars/abapGit | src/ui/zcl_abapgit_free_sel_dialog.clas.abap | [
"MIT"
] |
= Lists : Working with Structured Data
> module Lists
> import Basics
> %hide Prelude.Basics.fst
> %hide Prelude.Basics.snd
> %hide Prelude.Nat.pred
> %hide Prelude.List.(++)
> %access public export
> %default total
== Pairs of Numbers
In an inductive type definition, each constructor can take any number of
argu... | Idris | 5 | diseraluca/software-foundations | src/Lists.lidr | [
"MIT"
] |
DROP TABLE IF EXISTS test;
create table test (id UInt64,insid UInt64,insidvalue Nullable(UInt64), index insid_idx (insid) type bloom_filter() granularity 1, index insidvalue_idx (insidvalue) type bloom_filter() granularity 1) ENGINE=MergeTree() ORDER BY (insid,id);
insert into test values(1,1,1),(2,2,2);
select * fro... | SQL | 3 | pdv-ru/ClickHouse | tests/queries/0_stateless/01914_index_bgranvea.sql | [
"Apache-2.0"
] |
/*
Copyright (c) 2012 Advanced Micro Devices, Inc.
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial... | OpenCL | 4 | N0hbdy/godot | thirdparty/bullet/Bullet3OpenCL/ParallelPrimitives/kernels/PrefixScanKernels.cl | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] |
package hello;
public class IncorrectJavaCode {
| Java | 0 | qussarah/declare | compiler/testData/integration/ant/jvm/doNotFailOnError/IncorrectJavaCode.java | [
"Apache-2.0"
] |
<div class="ui stackable grid">
{% include '@SyliusAdmin/Customer/Show/_content.html.twig' %}
{% include '@SyliusAdmin/Customer/Show/_address.html.twig' %}
</div>
| Twig | 2 | titomtd/Sylius | src/Sylius/Bundle/AdminBundle/Resources/views/Customer/Show/_contentWidget.html.twig | [
"MIT"
] |
/*
* Copyright 2012-2019 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Java | 5 | yiou362/spring-boot-2.2.9.RELEASE | spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/source/ConfigurationPropertyNameAliases.java | [
"Apache-2.0"
] |
%tr
%td.text-content
%p
Your request to join the
- if @source_hidden
#{content_tag :span, 'Hidden', class: :highlight}
- else
#{link_to member_source.human_name, member_source.web_url, class: :highlight}
#{member_source.model_name.singular} has been #{content_tag :span, '... | Haml | 3 | nowkoai/test | app/views/notify/member_access_denied_email.html.haml | [
"MIT"
] |
package extensions
import spock.lang.IgnoreRest
import spock.lang.Specification
class IgnoreRestTest extends Specification {
def "I won't run"() { }
@IgnoreRest
def 'I will run'() { }
def "I won't run too"() { }
}
| Groovy | 3 | DBatOWL/tutorials | testing-modules/groovy-spock/src/test/groovy/extensions/IgnoreRestTest.groovy | [
"MIT"
] |
<span>Test template</span>
| HTML | 0 | John-Cassidy/angular | packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/class_metadata/test_cmp_template.html | [
"MIT"
] |
@echo off
rem bx - Build only the project in this directory without cleaning it first.
rem This is another script to help Microsoft developers feel at home working on
rem the terminal project.
call bcz exclusive no_clean %*
| Batchfile | 4 | hessedoneen/terminal | tools/bx.cmd | [
"MIT"
] |
(module
(memory $0 2)
(global $global$0 (mut i32) (i32.const 66112))
(global $global$1 i32 (i32.const 66112))
(global $global$2 i32 (i32.const 576))
(export "memory" (memory $0))
(export "main" (func $main))
(export "__heap_base" (global $global$1))
(export "__data_end" (global $global$2))
(func $__original_ma... | WebAssembly | 3 | phated/binaryen | test/lld/standalone-wasm2.wat | [
"Apache-2.0"
] |
insert into properties
values('baeldung.archaius.properties.one', 'one FROM:jdbc_source');
insert into properties
values('baeldung.archaius.properties.three', 'three FROM:jdbc_source'); | SQL | 3 | DBatOWL/tutorials | spring-cloud/spring-cloud-archaius/jdbc-config/src/main/resources/data.sql | [
"MIT"
] |
(function(exports){
//帮助文档
help = function(){
return {
"指令:功能",
"BRBundleId" : "当前调试的APP的bundle ID",
"BRMainBundlePath" : "",
"BRDocumentPath":"",
"BRCachesPath":"",
"redColor('view')":"调试:view为red",
"blackColor('view')":"调试:view为black",
"whiteColor('view')":"调试:view为white",
"hiddenOrNot... | Cycript | 4 | Dtheme/Burin-master | burin.cy | [
"MIT"
] |
create-react-class = require \create-react-class
Form = create-react-class do
# render :: a -> ReactElement
render: ->
React.create-element SimpleSelect,
options: @state.options
placeholder: "Select a fruit"
# create-from-search :: [Item] -> String -... | LiveScript | 4 | santiagoGuti/react-selectize | public/examples/simple/CreateFromSearch.ls | [
"Apache-2.0"
] |
#
#
# Nim's Runtime Library
# (c) Copyright 2020 Nim contributors
#
# See the file "copying.txt", included in this
# distribution, for details about the copyright.
#
## This module implements the `Isolated[T]` type for
## safe construction of isolated subgraphs that can be
## passed efficiently... | Nimrod | 5 | JohnAD/Nim | lib/std/isolation.nim | [
"MIT"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | CSS | 3 | sbj42/vscode | src/vs/base/browser/ui/tree/media/paneviewlet.css | [
"MIT"
] |
local petstore_client = require "petstore.api.pet_api"
local petstore_client_pet = require "petstore.model.pet"
local my_pet_http_api = petstore_client.new("petstore.swagger.io", "/v2", {"http"})
local my_pet = my_pet_http_api:get_pet_by_id(5)
for k,v in pairs(my_pet) do
print(k,v)
end
local my_new_pet = petstore_c... | Lua | 4 | MalcolmScoffable/openapi-generator | samples/client/petstore/lua/test.lua | [
"Apache-2.0"
] |
\chapter{Appendix 1}
This test document is created to test advanced TOC functionality.
\section{Appendix subsection}
\subsection{sub}
\subsubsection{subsub}
\paragraph{par}
\subsection{Test sub section 1}
\chapter{Appendix 2}
\label{chap: appendix 2}
\section{Testing TOC levels}
Testing more input and TOC levels... | TeX | 4 | tiagoboldt/vimtex | test/examples/book-multifile/appendix.tex | [
"MIT"
] |
issue-9983-handleerror:
salttest.hello: []
| SaltStack | 0 | byteskeptical/salt | tests/integration/files/file/base/issue-9983-handleerror.sls | [
"Apache-2.0"
] |
#lang scribble/manual
@(require (for-label racket
help/search
help/bug-report
help/help-utils))
@title{Bug Reporting}
@defmodule[help/bug-report]
@defproc[(help-desk:report-bug [this-bug-id #f (or/c #f exact-positive-integer?)]
... | Racket | 5 | rrthomas/drracket | drracket/help/bug-report.scrbl | [
"Apache-2.0",
"MIT"
] |
insert into tf values (33, '44ea7e50', 1597631244433372786);
insert into tf values (21, 'ea92b2bc', 8350061931822383463);
insert into tf values (29, 'd800f4f3', 3042440053175428524);
insert into tf values (31, '5f7a7433', 629744129778687863);
insert into tf values (38, '403ff15f', 9033713940787535967);
insert into tf v... | SQL | 2 | cuishuang/tidb | br/tests/lightning_duplicate_detection/data/dup_detect.tf.1.sql | [
"Apache-2.0"
] |
// these are supercollider instruments. Gathered from around.
// go see https://github.com/brunoruviaro/SynthDefs-for-Patterns for more.
SynthDef(\blips, {arg out = 0, freq = 25, numharm = 10, att = 0.01, rel = 1, amp = 0.1, pan = 0.5;
var snd, env;
env = Env.perc(att, rel, amp).kr(doneAction: 2);
snd = LeakDC.ar(M... | SuperCollider | 4 | sofakid/Skoarcery | SuperCollider/examples/synthdefs.scd | [
"Artistic-2.0"
] |
import * as React from 'react';
import ApiPage from 'docs/src/modules/components/ApiPage';
import mapApiPageTranslations from 'docs/src/modules/utils/mapApiPageTranslations';
import jsonPageContent from './mobile-date-time-picker.json';
export default function Page(props) {
const { descriptions, pageContent } = prop... | JavaScript | 4 | good-gym/material-ui | docs/pages/api-docs/mobile-date-time-picker.js | [
"MIT"
] |
/**
*
*/
import Util;
import OpenApi;
import EndpointUtil;
extends OpenApi;
init(config: OpenApi.Config){
super(config);
@endpointRule = 'central';
@endpointMap = {
ap-southeast-1 = 'dysmsapi.ap-southeast-1.aliyuncs.com',
ap-southeast-5 = 'dysmsapi-xman.ap-southeast-5.aliyuncs.com',
cn-beijing... | Tea | 5 | aliyun/alibabacloud-sdk | dysmsapi-20180501/main.tea | [
"Apache-2.0"
] |
// Copyright 2017 Elias Aebi
//
// 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 w... | Vala | 4 | Timmmm/xi-gtk | src/Blinker.vala | [
"Apache-2.0"
] |
/*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed... | C | 4 | attenuation/srs | trunk/3rdparty/ffmpeg-4-fit/libavutil/pixelutils.c | [
"MIT"
] |
// run-pass
fn main() {
let x = 1;
#[cfg(FALSE)]
if false {
x = 2;
} else if true {
x = 3;
} else {
x = 4;
}
assert_eq!(x, 1);
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/expr/if/attrs/gate-whole-expr.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
### /product-spu/page 成功(全部)
GET {{baseUrl}}/pay/transaction/page?pageNo=1&pageSize=10
Content-Type: application/x-www-form-urlencoded
Authorization: Bearer {{accessToken}}
dubbo-tag: {{dubboTag}}
###
| HTTP | 2 | ssSlowDown/onemall | management-web-app/src/main/java/cn/iocoder/mall/managementweb/controller/pay/PayTransactionController.http | [
"MulanPSL-1.0"
] |
fun foo(): Int {
return <caret>a
}
| Kotlin | 0 | Mu-L/kotlin | analysis/analysis-api/testData/components/expressionTypeProvider/expectedExpressionType/returnFromFunction.kt | [
"ECL-2.0",
"Apache-2.0"
] |
@import "subs.css";
@import "print-main.css" print;
@media print {
body { font-size: 10pt }
nav { color: blue; }
}
h1 {color: red; }
| CSS | 2 | KarlParkinson/mitmproxy | test/mitmproxy/contentviews/test_css_data/media-directive.css | [
"MIT"
] |
MODULE = Agar::Scrollbar PACKAGE = Agar::Scrollbar PREFIX = AG_
PROTOTYPES: ENABLE
VERSIONCHECK: DISABLE
Agar::Scrollbar
newHoriz(package, parent, ...)
const char * package
Agar::Widget parent
PREINIT:
Uint wflags = 0;
CODE:
if ((items == 3 && SvTYPE(SvRV(ST(2))) != SVt_PVHV) || items > 3) {
Perl_croak(aTHX_ "Us... | XS | 4 | auzkok/libagar | p5-Agar/Agar/Scrollbar.xs | [
"BSD-2-Clause"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 3 | sbj42/vscode | src/vs/workbench/contrib/webviewView/browser/webviewView.contribution.ts | [
"MIT"
] |
#tag Class
Class NSUUID
Inherits NSObject
#tag Method, Flags = &h21
Private Sub Constructor()
End Sub
#tag EndMethod
#tag Method, Flags = &h0
Sub Constructor(data as Text)
// Create a class
dim cl as ptr = NSClassFromString("NSUUID")
declare function initWithUUIDString lib FoundationLib ... | Xojo | 3 | kingj5/iOSKit | Modules/Foundation/NSUUID.xojo_code | [
"MIT"
] |
#!/opt/local/bin/gnuplot -persist
#
#
# G N U P L O T
# Version 4.4 patchlevel 3
# last modified March 2011
# System: Darwin 10.8.0
#
# Copyright (C) 1986-1993, 1998, 2004, 2007-2010
# Thomas Williams, Colin Kelley and many others
#
# gnuplot home: http://www.gnuplot.info
# ... | Gnuplot | 3 | andela-jejezie/peopleProject | node_modules/node-uuid/benchmark/bench.gnu | [
"MIT"
] |
module org-openroadm-device {
namespace "http://org/openroadm/device";
prefix org-openroadm-device;
import ietf-yang-types {
prefix ietf-yang-types;
}
import ietf-inet-types {
prefix ietf-inet-types;
}
import ietf-netconf {
prefix ietf-nc;
}
import org-openroadm-common-types {
pr... | YANG | 5 | meodaiduoi/onos | models/openroadm/src/main/yang/org-openroadm-device@2017-02-06.yang | [
"Apache-2.0"
] |
Prefix(:=<http://example.org/>)
Ontology(:TestClassAssertion
Declaration(Class(:c))
Declaration(NamedIndividual(:i))
ClassAssertion(:c :i)
ClassAssertion(:c _:anonymousIndividual)
)
| Web Ontology Language | 2 | jmcmurry/SciGraph | SciGraph-core/src/test/resources/ontologies/cases/TestClassAssertion.owl | [
"Apache-2.0"
] |
drop table if exists t;
create table t(i8 Int8, i16 Int16, i32 Int32, i64 Int64) engine Memory;
insert into t values (-1, -1, -1, -1), (-2, -2, -2, -2), (-3, -3, -3, -3), (-4, -4, -4, -4), (-5, -5, -5, -5);
select * apply bitmapMin, * apply bitmapMax from (select * apply groupBitmapState from t);
drop table t;
| SQL | 3 | pdv-ru/ClickHouse | tests/queries/0_stateless/01702_bitmap_native_integers.sql | [
"Apache-2.0"
] |
using ZLib;
public static int main(string[] args) {
stdout.printf("ZLIB_VERSION is: %s\n", ZLib.VERSION.STRING);
return 0;
}
| Vala | 3 | kira78/meson | test cases/vala/13 find library/test.vala | [
"Apache-2.0"
] |
KtFile: 1.6.kt
PACKAGE_DIRECTIVE
<empty list>
IMPORT_LIST
<empty list>
PROPERTY
PsiElement(val)('val')
PsiWhiteSpace(' ')
PsiElement(IDENTIFIER)('value')
PsiWhiteSpace(' ')
PsiElement(EQ)('=')
PsiWhiteSpace(' ')
FLOAT_CONSTANT
PsiElement(FLOAT_CONSTANT)('.0_0e-')
PsiWhi... | Text | 0 | punzki/kotlin | compiler/tests-spec/testData/psi/linked/constant-literals/real-literals/p-4/pos/1.6.txt | [
"ECL-2.0",
"Apache-2.0"
] |
@import "~common/stylesheet/index";
| SCSS | 0 | dajibapb/algorithm-visualizer | src/core/renderers/ScatterRenderer/ScatterRenderer.module.scss | [
"MIT"
] |
/*
* Copyright (c) 2021, Idan Horowitz <idan.horowitz@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibJS/Runtime/AsyncFunctionPrototype.h>
#include <LibJS/Runtime/GlobalObject.h>
namespace JS {
AsyncFunctionPrototype::AsyncFunctionPrototype(GlobalObject& global_object)
: Object(*glo... | C++ | 4 | r00ster91/serenity | Userland/Libraries/LibJS/Runtime/AsyncFunctionPrototype.cpp | [
"BSD-2-Clause"
] |
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C++ | 5 | EricRemmerswaal/tensorflow | tensorflow/core/kernels/composite_tensor_ops.cc | [
"Apache-2.0"
] |
#ifndef HEADER_CURL_TOOL_FORMPARSE_H
#define HEADER_CURL_TOOL_FORMPARSE_H
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* ... | C | 4 | Greg-Muchka/curl | src/tool_formparse.h | [
"curl"
] |
#lang scribble/doc
@(require "common.rkt" scribble/core)
@(tools-title "frame")
@defclass[drracket:frame:name-message% canvas% ()]{
This class implements the little filename button in the top-left hand
side of DrRacket's frame.
@defconstructor/make[([parent (is-a?/c area-container<%>)])]{}
@defmethod[(set-message... | Racket | 5 | rrthomas/drracket | drracket/scribblings/tools/frame.scrbl | [
"Apache-2.0",
"MIT"
] |
#!/usr/bin/env bash
#
# Copyright (c) 2016-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
apt-get update
apt-get install -y vim g++ make cmake wget git python-pip python-dev build-essential
| Shell | 3 | KatyaKos/fastText | .circleci/setup_debian.sh | [
"MIT"
] |
/*
* @LANG: indep
*/
int return_to;
%%{
machine targs1;
unused := 'unused';
one := 'one' @{
print_str "one\n";
fnext *return_to;
};
two := 'two' @{
print_str "two\n";
fnext *return_to;
};
main := (
'1' @{ return_to = ftargs; fnext one; }
| '2' @{ return_to = ftargs; fnext two; }
| '\n'
)*... | Ragel in Ruby Host | 4 | podsvirov/colm-suite | test/trans.d/case/targs1.rl | [
"MIT"
] |
component{
function foo(){
cfthread.myThread1.foo=1;
}
} | ColdFusion CFC | 1 | tonym128/CFLint | src/test/resources/com/cflint/tests/VarScoper/fpositive/cfthread.cfc | [
"BSD-3-Clause"
] |
*** Settings ***
Resource atest_resource.robot
Suite Setup Run Tests ${EMPTY} core/keyword_teardown.robot
*** Test Cases ***
Passing Keyword with Teardown
${tc}= Check Test Case ${TESTNAME}
Check Log Message ${tc.kws[0].kws[0].msgs[0]} In UK
Check Log Message ${tc.kws[0].teardown.msgs[0]} In U... | RobotFramework | 3 | bhirsz/robotframework | atest/robot/core/keyword_teardown.robot | [
"ECL-2.0",
"Apache-2.0"
] |
package http_test
import "testing"
import "http"
import "json"
option now = () => 2030-01-01T00:00:00Z
inData =
"
#datatype,string,long,dateTime:RFC3339,double,string,string,string,string,string,string
#group,false,false,false,false,true,true,true,true,true,true
#default,_result,,,,,,,,,
,result,table,_time,_va... | FLUX | 4 | metrico/flux | stdlib/http/http_endpoint_test.flux | [
"MIT"
] |
Require Import Arith.
Fixpoint A m := fix A_m n :=
match m with
| 0 => n + 1
| S pm =>
match n with
| 0 => A pm 1
| S pn => A pm (A_m pn)
end
end.
| Coq | 4 | LaudateCorpus1/RosettaCodeData | Task/Ackermann-function/Coq/ackermann-function-1.coq | [
"Info-ZIP"
] |
--TEST--
Cleaning must preserve breakpoints
--INI--
opcache.enable_cli=0
--PHPDBG--
b 4
b foo
r
c
clean
y
c
r
c
q
--EXPECTF--
[Successful compilation of %s]
prompt> [Breakpoint #0 added at %s:4]
prompt> [Breakpoint #1 added at foo]
prompt> 1
[Breakpoint #0 at %s:4, hits: 1]
>00004: echo 2;
00005: echo 3;
00006: foo(... | PHP | 4 | thiagooak/php-src | sapi/phpdbg/tests/clean_001.phpt | [
"PHP-3.01"
] |
# RUN: not llc -march=x86-64 -run-pass none -o /dev/null %s 2>&1 | FileCheck %s
--- |
declare void @foo(i32)
define i32 @test(i32 %a, i32 %b, i32 %c, i32 %d) {
entry:
%add = add nsw i32 %b, %a
%add1 = add nsw i32 %add, %c
%add2 = add nsw i32 %add1, %d
tail call void @foo(i32 %add2)
%add6 = ... | Mirah | 3 | medismailben/llvm-project | llvm/test/CodeGen/MIR/X86/expected-comma-after-cfi-register.mir | [
"Apache-2.0"
] |
-- See also: src/nvim/testdir/test_options.vim
local helpers = require('test.functional.helpers')(after_each)
local command, clear = helpers.command, helpers.clear
local source, expect = helpers.source, helpers.expect
local exc_exec = helpers.exc_exec;
local matches = helpers.matches;
local Screen = require('test.funct... | Lua | 4 | uga-rosa/neovim | test/functional/legacy/options_spec.lua | [
"Vim"
] |
(ns immer-benchmark
(:require [criterium.core :as c]
[clojure.core.rrb-vector :as fv]))
(defn h0 [& args]
(apply println "\n####" args))
(defn h1 [& args]
(apply println "\n====" args))
(defn h2 [& args]
(apply println "\n----" args))
(defn run-benchmarks [N S]
(h0 "Running benchmarks: N =" N... | Clojure | 5 | ikrima/immer | tools/clojure/src/immer_benchmark.clj | [
"BSL-1.0"
] |
%{--
- Copyright 2016 SimplifyOps, Inc. (http://simplifyops.com)
-
- 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
-
- Unles... | Groovy Server Pages | 3 | kbens/rundeck | rundeckapp/grails-app/views/menu/jobsFragment.gsp | [
"Apache-2.0"
] |
<html>
<head>
<title>frame</title>
</head>
<frameset cols="20%, 80%">
<frame id="test-frame" src="iframe.html">
<frame src="iframe.html">
</frameset>
</html>
| HTML | 1 | ggomez3/survey | data/frame.html | [
"MIT"
] |
// 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.
import 'package:flutter/scheduler.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
test('Priority operators control test', () async... | Dart | 4 | Mayb3Nots/flutter | packages/flutter/test/scheduler/priority_test.dart | [
"BSD-3-Clause"
] |
### All Types
| Name | Summary |
|---|---|
| [leakcanary.FailAnnotatedTestOnLeakRunListener](../leakcanary/-fail-annotated-test-on-leak-run-listener/index.md) | A JUnit [RunListener](#) extending [FailTestOnLeakRunListener](../leakcanary/-fail-test-on-leak-run-listener/index.md) to detecting memory leaks in Android ... | Markdown | 4 | BraisGabin/leakcanary | docs/api/leakcanary-android-instrumentation/alltypes/index.md | [
"Apache-2.0"
] |
if view.error
div.alert.alert-danger
pre #{view.error}
div
for tag in (view.tags || [])
span.label.label-primary(style="margin: 5px; float: left; line-height: 1.2em") #{tag} | Jade | 3 | cihatislamdede/codecombat | app/templates/artisans/tag-test-tags-view.jade | [
"CC-BY-4.0",
"MIT"
] |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | OpenCL | 4 | nowireless/opencv | modules/dnn/src/opencl/ocl4dnn_lrn.cl | [
"Apache-2.0"
] |
footer
div
:class
= "container text-center"
div (:class "row justify-content-center pt-4")
.col
span
= "Java 13"
div (:class "row justify-content-center")
.col
span
= "Kotlin 1.3.60"
div (:class "row justify-content-center pt-4 pb-2")
.col
... | Cirru | 3 | driver733/kot | cirru/footer.cirru | [
"MIT"
] |
#(define bvar "hello from b/inc/include1.ly")
| LilyPond | 0 | HolgerPeters/lyp | spec/package_setups/test_vars/b@0.2/inc/include1.ly | [
"MIT"
] |
<%= application_name.camelize %>.instanceInitializer({
name: '<%= class_name.underscore.dasherize %>'
initialize: (application) ->
# Write your initializer here
})
| EmberScript | 4 | JakeKaad/ember-rails | lib/generators/templates/instance-initializer.em | [
"MIT"
] |
Module: pop-client
Synopsis: Thin wrapper around POP3
Author: Keith Playford
Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc.
All rights reserved.
License: See License.txt in this distribution for details.
Warranty: Distributed WITHOUT WARRANTY OF ANY KIND
/... | Dylan | 5 | kryptine/opendylan | sources/network/pop-client/pop-client.dylan | [
"BSD-2-Clause"
] |
# Requirements so far:
# dockerd running
# - image microsoft/nanoserver (matching host base image) docker load -i c:\baseimages\nanoserver.tar
# - image alpine (linux) docker pull --platform=linux alpine
# TODO: Add this a parameter for debugging. ie "functional-tests -debug=$true"
#$env:HCSSHIM_FUNCTIONAL_TESTS_D... | PowerShell | 3 | gregoryg/harvester | vendor/github.com/Microsoft/hcsshim/functional_tests.ps1 | [
"Apache-2.0"
] |
// ignore-emscripten
// compile-flags: -C no-prepopulate-passes
// Test that tuples get optimized layout, in particular with a ZST in the last field (#63244)
#![crate_type="lib"]
type ScalarZstLast = (u128, ());
// CHECK: define i128 @test_ScalarZstLast(i128 %_1)
#[no_mangle]
pub fn test_ScalarZstLast(_: ScalarZstLa... | Rust | 5 | Eric-Arellano/rust | src/test/codegen/tuple-layout-opt.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
// Marching Squares Metaballs
// Coding in the Cabana
// The Coding Train / Daniel Shiffman
// https://thecodingtrain.com/challenges/coding-in-the-cabana/005-marching-squares.html
// https://youtu.be/0ZONMNUKTfU
// p5 port: https://editor.p5js.org/codingtrain/sketches/wwB-AA4i-
class Bubble {
float x, y;
float vx,... | Processing | 4 | milan-micic/website | challenges/coding-in-the-cabana/005_marching_squares/Processing_metaballs/sketch_metaballs/Bubble.pde | [
"MIT"
] |
<script>
'use strict';
var a;
</script>
| HTML | 0 | MMeent/pdf.js | external/builder/fixtures/include-expected.html | [
"Apache-2.0"
] |
# Copyright (c) 2022 Fyde Innovations Limited and the openFyde Authors.
# Distributed under the license specified in the root directory of this project.
EAPI="5"
DESCRIPTION="empty project"
HOMEPAGE="http://fydeos.com"
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
IUSE=""
RDEPEND=""
DEPEND="${RDEPEND}"
S=$FILESDIR
... | Gentoo Ebuild | 3 | FydeOS/chromium_os_for_raspberry_pi | baseboard-rpi3/chromeos-base/bluetooth-input-fix/bluetooth-input-fix-0.0.1.ebuild | [
"BSD-2-Clause"
] |
#tag Class
Protected Class AVAudioPlayer
Inherits NSObject
#tag Method, Flags = &h0
Function AveragePowerForChannel(channelNumber as UInteger) As Double
declare function averagePowerForChannel_ lib AVFoundationLib selector "averagePowerForChannel:" (obj_id as ptr, channelNumber as UInteger) as Double
Return ... | Xojo | 4 | kingj5/iOSKit | Modules/AVFoundation/AVAudioPlayer.xojo_code | [
"MIT"
] |
CREATE FUNCTION hdb_catalog.gen_hasura_uuid() RETURNS uuid AS
'select gen_random_uuid()' LANGUAGE SQL;
ALTER TABLE hdb_catalog.hdb_version
ALTER COLUMN hasura_uuid
SET DEFAULT hdb_catalog.gen_hasura_uuid();
ALTER TABLE hdb_catalog.event_log
ALTER COLUMN id
SET DEFAULT hdb_catalog.gen_hasura_uuid();
ALTER TABLE hdb_c... | SQL | 3 | gh-oss-contributor/graphql-engine-1 | server/src-rsr/migrations/41_to_42.sql | [
"Apache-2.0",
"MIT"
] |
fn main() {
struct U;
// A tuple is a "non-reference pattern".
// A `mut` binding pattern resets the binding mode to by-value.
let p = (U, U);
let (a, mut b) = &p;
//~^ ERROR cannot move out of a shared reference
let mut p = (U, U);
let (a, mut b) = &mut p;
//~^ ERROR cannot move ... | Rust | 4 | Eric-Arellano/rust | src/test/ui/pattern/move-ref-patterns/move-ref-patterns-default-binding-modes.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
--TEST--
Bug #75242: RecursiveArrayIterator doesn't have constants from parent class
--FILE--
<?php
class Foo extends ArrayIterator { }
$r = new ReflectionClass(Foo::class);
var_dump($r->getConstants());
$r = new ReflectionClass(ArrayIterator::class);
var_dump($r->getConstants());
$r = new ReflectionClass(RecursiveAr... | PHP | 3 | thiagooak/php-src | ext/spl/tests/bug75242.phpt | [
"PHP-3.01"
] |
pragma solidity ^0.5.0;
import "./contract.sol";
contract RelativeImport is Contract {
}
| Solidity | 1 | wbt/truffle | packages/truffle/test/sources/contract_names/contracts/relative_import.sol | [
"MIT"
] |
#!/usr/bin/env bash
cd $(dirname $0)/../..
export METEOR_HOME=`pwd`
export phantom=$phantom
# only install dependencies if required
if [ "$phantom" = true ]
then
# Just in case these packages haven't been installed elsewhere.
./meteor npm install -g phantomjs-prebuilt browserstack-webdriver
else
# Instal... | Shell | 4 | joseconstela/meteor | packages/test-in-console/run.sh | [
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] |
% This is a Arc example document.
% Using `%` starts line comment
% import data from other files
import "package.json" as package
import json "package.json" as pkg
[integer]
int1 =+99
int2 = 42
int3 = 0
int4 =-17
int5 = 1_000
int6 = 1_2_3_4_5
[integer_typed]
int1 =+99i32
int2 = 42u32
int3 = 0u8
int4 =-17i8
int5 =... | Arc | 4 | nyar-lang/arc-language | test/showtime.arc | [
"CC0-1.0"
] |
- startup_filename_default = user_application_theme == 'gl-dark' ? 'dark' : 'general'
- startup_filename = local_assigns.fetch(:startup_filename, nil) || startup_filename_default
%style
= Rails.application.assets_manifest.find_sources("themes/#{user_application_theme_css_filename}.css").first.to_s.html_safe if user_... | Haml | 3 | Testiduk/gitlabhq | app/views/layouts/_startup_css.haml | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.