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 |
|---|---|---|---|---|---|
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports System.Threading
Imports Microsoft.CodeAnalysis.Text
Namespace Microsoft.CodeAnalysis.VisualBasic
Partial... | Visual Basic | 4 | ffMathy/roslyn | src/Workspaces/VisualBasic/Portable/Workspace/LanguageServices/VisualBasicSyntaxTreeFactoryService.NullSyntaxReference.vb | [
"MIT"
] |
win32 {
LIBS += -luser32
}
# Optional dependency on Windows SDK 7
!contains(QMAKE_TARGET.arch, x86_64) {
win32:exists(C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\Windows.h) {
LIBS += -L"C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib" -ldwmapi
DEFINES += "USEWINSDK"
message(U... | QMake | 4 | boralv/chatterino2 | lib/winsdk.pri | [
"MIT"
] |
$! TOCSP.COM
$
$ cmd = "mcr ''exe_dir'openssl"
$ ocspdir = "ocsp-tests"
$ ! 17 December 2012 so we don't get certificate expiry errors.
$ check_time = "-attime 1355875200"
$
$ test_ocsp: subroutine
$ set noon
$ 'cmd' base64 -d -in [.'ocspdir']'p1' -out f.d
$ 'cmd' ocsp -respin f.d -partial_chain 'check_time' -
"... | DIGITAL Command Language | 3 | madanagopaltcomcast/pxCore | examples/pxScene2d/external/openssl-1.0.2o/test/tocsp.com | [
"Apache-2.0"
] |
'===============================================================================
' Little Shooty Test Thing
' Code & Stuff by Richard Olpin (rik@olpin.net)
'==============================================================================
' Graphic Font
'====================================================================... | BlitzMax | 5 | jabdoa2/blitzmax | samples/shooter/gfont.bmx | [
"Zlib"
] |
[b = "c"] {} | CSS | 0 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/_qcmYeHAxw35hMnF2IST8A/input.css | [
"Apache-2.0"
] |
using System;
using Uno;
using Uno.Collections;
using System.IO;
using Uno.Net;
using Uno.Net.Sockets;
namespace Outracks.Simulator
{
public class FailedToConnectToProxy : Exception
{
public readonly ImmutableList<Exception> InnerExceptions;
public FailedToConnectToProxy(IEnumerable<Exception> innerExceptions)... | Uno | 4 | mortend/fuse-studio | Source/Preview/Core/ProxyClient.uno | [
"MIT"
] |
@import './local.css';
.other {
color: green;
}
| CSS | 3 | johanberonius/parcel | packages/core/integration-tests/test/integration/glob-css/dir/other.css | [
"MIT"
] |
## ci.golo
function check = |context| {
context: info("{0}", "=== Jarvis-CI ===")
context: info("Repository {0}", context: repo(): name())
context: info("Current branch {0}", context: repo(): branchName())
let path = currentDir() + "/" + context: tmp_dir()
context: info("path: {0}", path)
# Stage: initiali... | Golo | 4 | ajnavarro/language-dataset | data/github.com/azim4gvm/fantastic-train/6b6f92775f260e3e7dc9d375962b0170fc5fb085/ci.golo | [
"MIT"
] |
// https://dom.spec.whatwg.org/#interface-comment
[Exposed=Window]
interface Comment : CharacterData {
constructor(optional DOMString data = "");
};
| WebIDL | 4 | Unique184/jsdom | lib/jsdom/living/nodes/Comment.webidl | [
"MIT"
] |
#include "script_component.hpp"
/*
Name: TFAR_static_radios_fnc_setSpeakers
Author: Dedmen
takes radio classnames and returns instanciated classnames (with _ID appended)
Arguments:
0: the weaponholder containing the radio <OBJECT>
1: speaker enabled <BOOL>
Return Value:
None
Example:
... | SQF | 4 | MrDj200/task-force-arma-3-radio | addons/static_radios/functions/fnc_setSpeakers.sqf | [
"RSA-MD"
] |
--**********************************************************************
-- Copyright (c) 2012-2014 by XESS Corp <http://www.xess.com>.
-- All rights reserved.
--
-- This library 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... | VHDL | 5 | AmigaPorts/amiga2000-gfxcard | va2000-spartan6/SDCard.vhd | [
"MIT",
"IJG",
"Unlicense"
] |
; ModuleID = 'bpftrace'
source_filename = "bpftrace"
target datalayout = "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128"
target triple = "bpf-pc-linux"
; Function Attrs: nounwind
declare i64 @llvm.bpf.pseudo(i64 %0, i64 %1) #0
define i64 @"kprobe:f"(i8* %0) section "s_kprobe:f_1" {
entry:
%"$v" = alloca i64, align 8
... | LLVM | 3 | casparant/bpftrace | tests/codegen/llvm/pointer_add_int.ll | [
"Apache-2.0"
] |
pad = (str, num) ->
len = str.length
pad-amount = (num - len)
"#str#{ ' ' * (if pad-amount > 0 then pad-amount else 0)}"
module.exports = {pad}
| LiveScript | 4 | GerHobbelt/grasp | src/text.ls | [
"MIT"
] |
package com.baeldung.spring.data.cassandra.test.api;
import com.baeldung.spring.data.cassandra.test.domain.Vehicle;
import com.baeldung.spring.data.cassandra.test.service.InventoryService;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@RequestMapping("/v1/api/inventory")
pu... | Java | 4 | DBatOWL/tutorials | persistence-modules/spring-data-cassandra-test/src/main/java/com/baeldung/spring/data/cassandra/test/api/InventoryController.java | [
"MIT"
] |
/* Copyright (c) <2003-2016> <Newton Game Dynamics>
*
* 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,
* includi... | Lex | 4 | execomrt/newton-dynamics | newton-3.14/sdk/dCompilerKit/dNewtonLua/dNewtonLuaLex.lex | [
"Zlib"
] |
Code.require_file("../test_helper.exs", __DIR__)
defmodule Mix.ConfigTest do
use MixTest.Case, async: true
import Mix.Config
setup do
Process.put({Config, :config}, [])
Process.put({Config, :imports}, [])
:ok
end
defp config do
Process.get({Config, :config})
end
defp files do
Proc... | Elixir | 4 | doughsay/elixir | lib/mix/test/mix/config_test.exs | [
"Apache-2.0"
] |
import * as assert from 'assert';
import './main.svelte';
export default function (target) {
target.innerHTML = '<my-app/>';
const el = target.querySelector('my-app');
target.removeChild(el);
assert.ok(target.dataset.onMountDestroyed);
assert.equal(target.dataset.destroyed, undefined);
}
| JavaScript | 3 | Theo-Steiner/svelte | test/custom-elements/samples/ondestroy/test.js | [
"MIT"
] |
local clock_func = ("require" in this) ? require("system").clock : clock //we can also check existence of system module and clock in roottable, but currently it's ok
function profile_it(cnt, f)//for modified version
{
local res = 0
for (local i = 0; i < cnt; ++i)
{
local start = clock_func()
f()
loca... | Squirrel | 4 | profelis/daScript | examples/profile/tests/squirrel/profile.nut | [
"BSD-3-Clause"
] |
--TEST--
ReflectionExtension::getDependencies() method on an extension with a required and conflicting dependency
--CREDITS--
Felix De Vliegher <felix.devliegher@gmail.com>
--EXTENSIONS--
dom
--FILE--
<?php
$dom = new ReflectionExtension('dom');
var_dump($dom->getDependencies());
?>
--EXPECTF--
array(2) {
["libxml"]=... | PHP | 3 | NathanFreeman/php-src | ext/reflection/tests/ReflectionExtension_getDependencies_basic.phpt | [
"PHP-3.01"
] |
/**
*
*/
import Util;
import OpenApi;
import OpenApiUtil;
import EndpointUtil;
extends OpenApi;
init(config: OpenApi.Config){
super(config);
@endpointRule = 'central';
@endpointMap = {
ap-northeast-1 = 'plaso-classroom.aliyuncs.com',
ap-northeast-2-pop = 'plaso-classroom.aliyuncs.com',
ap-south... | Tea | 3 | aliyun/alibabacloud-sdk | plaso_online_class-2021420/main.tea | [
"Apache-2.0"
] |
diff --git a/src/clpeak.cpp b/src/clpeak.cpp
index 8cb192b..b6fe6f5 100644
--- a/src/clpeak.cpp
+++ b/src/clpeak.cpp
@@ -47,7 +47,7 @@ int clPeak::runAll()
log->xmlOpenTag("clpeak");
log->xmlAppendAttribs("os", OS_NAME);
- for (size_t p = 0; p < platforms.size(); p++)
+ for (size_t p = 0; p < platform... | Diff | 2 | wolterhv/openpilot | selfdrive/debug/profiling/clpeak/run_continuously.patch | [
"MIT"
] |
const React = window.React;
class HitBox extends React.Component {
state = {
x: 0,
y: 0,
};
static defaultProps = {
onMouseMove: n => n,
};
onMove = event => {
this.setState({x: event.clientX, y: event.clientY});
this.props.onMouseMove(event);
};
render() {
const {x, y} = this.... | JavaScript | 4 | vegYY/react | fixtures/dom/src/components/fixtures/event-pooling/hit-box.js | [
"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="M3.5,13.5V10h8v... | XML | 3 | Imudassir77/material-design-icons | android/places/gite/materialiconstwotone/black/res/drawable/twotone_gite_20.xml | [
"Apache-2.0"
] |
.clusterPlannerDialog input[type="text"],
.clusterPlannerDialog .uiTypeahead {
width: 220px;
}
| CSS | 1 | fuelingtheweb/prettier | tests/css_params/params.css | [
"MIT"
] |
$TTL 1H
$ORIGIN blaat.nl.
@ IN SOA elektron.atoom.net. miekg.atoom.net. (
2002120700 21600 7200 604800 3600 )
@ IN A 192.168.1.2
@ IN NS elektron.atoom.net.
@ IN MD md.atoom.net.
@ IN MF mf.atoom.net.
@ IN MB mb.atoom.net.
@ IN MG mg.atoom... | DNS Zone | 4 | gearnode/nsd | tpkg/rr-test.tdir/rr-test.zone | [
"BSD-3-Clause"
] |
<html>
<script src="/../../packages/alpinejs/dist/cdn.js" defer></script>
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
<table>
<tr>
<td><code>x-on:click.away</code></td>
<td>
<div x-data="{ show: false }">
... | HTML | 4 | james0r/alpine | tests/cypress/manual-transition-test.html | [
"MIT"
] |
# TODO: Translation updated at 2022-01-11 21:45
# game/scripts/labels/save_reminder.rpy:53
translate english save_reminder_7bb89045:
# "(Hello from your friendly {b}Save Reminder{/b}!)"
"(Hello from your friendly {b}Save Reminder{/b}!)"
# game/scripts/labels/save_reminder.rpy:60
translate english save_remin... | Ren'Py | 3 | googlebleh/LearnToCodeRPG | game/tl/english/scripts/labels/save_reminder.rpy | [
"BSD-3-Clause"
] |
# Copyright 2017 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | Awk | 4 | maxnordlund/transfer.sh | vendor/cloud.google.com/go/internal/snipdoc/snipdoc.awk | [
"MIT"
] |
export const a: "a";
| TypeScript | 0 | Preta-Crowz/deno | cli/tests/module_graph/file_typesref.d.ts | [
"MIT"
] |
check_args = (name, more) ->
error "spec template takes arguments: name" unless name
if name\match "%u"
error "name should be underscore form, all lowercase"
if more
error "got a second argument to generator, did you mean to pass a string?"
filename = (name) ->
"spec/#{name}_spec.moon"
spec_types ... | MoonScript | 4 | tommy-mor/lapis | lapis/cmd/templates/spec.moon | [
"MIT",
"Unlicense"
] |
package com.baeldung;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import com.baeldung.spring.cloud.kubernetes.backend.KubernetesBackendApplication;
@SpringBootTest(classes = KubernetesBackendApplication.class)
public class SpringContextTest {
@Test
public void c... | Java | 3 | DBatOWL/tutorials | spring-cloud/spring-cloud-kubernetes/kubernetes-minikube/demo-backend/src/test/java/com/baeldung/SpringContextTest.java | [
"MIT"
] |
{
module Lexer (
Token(..),
scanTokens
) where
import Syntax
}
%wrapper "basic"
$digit = 0-9
$alpha = [a-zA-Z]
$eol = [\n]
tokens :-
-- Whitespace insensitive
$eol ;
$white+ ;
print { \s -> TokenPrint }
$digit+ ... | Logos | 5 | Average-user/write-you-a-haskell | chapter9/assign/Lexer.x | [
"MIT"
] |
<%--
Copyright 2012 Netflix, 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 agree... | Groovy Server Pages | 3 | Threadless/asgard | grails-app/views/workflowExecution/_sublist.gsp | [
"Apache-2.0"
] |
precision mediump float;
const int butt_cap = 0;
const int round_cap = 1;
const int square_cap = 2;
const int miter_join = 0;
const int round_join = 1;
const int bevel_join = 2;
uniform float u_linewidth;
uniform float u_antialias;
uniform float u_line_join;
uniform float u_line_cap;
uniform vec4 u_line_color;
#i... | GLSL | 5 | TheLaw1337/bokeh | bokehjs/src/lib/models/glyphs/webgl/regl_line.frag | [
"BSD-3-Clause"
] |
# Compare metadata filter output containing float value strings to reference
# output data. Returns the whole reference data if delta of each value is below
# threshold, else returns the whole input data.
function abs(val) {
return ((val < 0.0) ? -val : val);
}
function max(val1, val2) {
return ((val1 >= val2... | Awk | 5 | yashrajsingh1998/ApraPipes1 | thirdparty/ffmpeg/tests/refcmp-metadata.awk | [
"MIT"
] |
### Compilation failed:
error: 1: Unsupported texture dimensions
1 error
| Metal | 0 | rhencke/engine | src/third_party/skia/tests/sksl/shared/golden/Texture1D.metal | [
"BSD-3-Clause"
] |
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-DELAY_SLOTS-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li... | ObjDump | 4 | DuBirdFly/TinyRISCV_Learn | tests/riscv-compliance/build_generated/rv32i/I-DELAY_SLOTS-01.elf.objdump | [
"Apache-2.0"
] |
"""Support for Atlantic Pass APC Zone Control."""
from typing import cast
from pyoverkiz.enums import OverkizCommand, OverkizCommandParam, OverkizState
from homeassistant.components.climate import ClimateEntity
from homeassistant.components.climate.const import HVACMode
from homeassistant.components.overkiz.entity im... | Python | 5 | mib1185/core | homeassistant/components/overkiz/climate_entities/atlantic_pass_apc_zone_control.py | [
"Apache-2.0"
] |
" Vim syntax file
" Language: GNU Assembler
" Maintainer: Doug Kearns dougkearns@gmail.com
" Previous Maintainers: Erik Wognsen <erik.wognsen@gmail.com>
" Kevin Dahlhausen <kdahlhaus@yahoo.com>
" Contributors: Ori Avtalion, Lakshay Garg
" Last Change: 2020 Oct 31
" quit when a syntax file was already loaded
if e... | VimL | 4 | uga-rosa/neovim | runtime/syntax/asm.vim | [
"Vim"
] |
var a: any;
var r1 = a < a;
var r2 = a > a;
var r3 = a <= a;
var r4 = a >= a;
var r5 = a == a;
var r6 = a != a;
var r7 = a === a;
var r8 = a !== a; | TypeScript | 1 | nilamjadhav/TypeScript | tests/cases/conformance/expressions/binaryOperators/comparisonOperator/comparisonOperatorWithTwoOperandsAreAny.ts | [
"Apache-2.0"
] |
#ifndef DEVICEMSG_H
#define DEVICEMSG_H
#include "common.h"
#include <stdbool.h>
#include <stdint.h>
#include <unistd.h>
#define DEVICE_MSG_MAX_SIZE (1 << 18) // 256k
// type: 1 byte; length: 4 bytes
#define DEVICE_MSG_TEXT_MAX_LENGTH (DEVICE_MSG_MAX_SIZE - 5)
enum device_msg_type {
DEVICE_MSG_TYPE_CLIPBOARD,
}... | C | 4 | davi1234567891011/scrcpy | app/src/device_msg.h | [
"Apache-2.0"
] |
:- object('00-util').
:- uses(user,[atomic_list_concat/3,exists_directory/1,exists_file/1,getenv/2,length/2]).
:- uses(marelle,[join/2,sh/1]).
:- public([expand_path/2,isdir/1,isfile/1]).
:- include('00-util.pl').
:- end_object.
| Logtalk | 3 | PaulBrownMagic/logtalk3 | tools/wrapper/marelle-master/00-util.lgt | [
"Apache-2.0"
] |
#pragma once
#include "caffe2/core/operator.h"
namespace caffe2 {
template <typename Context>
void storm_update(
const int N,
const float* paramIn,
const float* momentIn,
const float* gradSqSumIn,
const float* gradIn,
const float* lr,
float* paramOut,
float* momentOut,
float* grad... | C | 5 | Hacky-DH/pytorch | caffe2/sgd/storm_op.h | [
"Intel"
] |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensor.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_tensor_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_tensor_2eproto
#include <limits>
#include <string>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3019000
#error This file was generated... | C | 2 | yash112-lang/opencv | modules/dnn/misc/tensorflow/tensor.pb.h | [
"Apache-2.0"
] |
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
test.model.generic.predict <- function(encoding) {
# Train a model
airlines <- h2o.importFile(path = locate('smalldata/testng/airlines_train.csv'))
airlines_test <- h2o.importFile(path = loc... | R | 5 | vishalbelsare/h2o-3 | h2o-r/tests/testdir_algos/generic/runit_generic_model.r | [
"Apache-2.0"
] |
/* Copyright 2017-2020 The Verible 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 o... | Lex | 4 | imphil/verible | common/analysis/command_file.lex | [
"Apache-2.0"
] |
label ccb2010:
call gl(0,"bgcc0005")
call vsp(1,0)
call vsp(0,1)
with wipeleft
play bgm "bgm/bgm010.ogg"
"楽しい登校。"
"なのに。"
"冬子はむくれていた。"
太一 "「……」"
call gl(1,"TCKT0002|TCKT000x")
call gp(1,t=center)#x=230
call vsp(1,1)
with dissolve
冬子 "「……」"
太一 "「…………」"
冬子 "「... | Ren'Py | 3 | fossabot/cross-channel_chinese-localization_project | AllPlatforms/scripts/ccb/ccb2010.rpy | [
"Apache-2.0"
] |
set(WINRT TRUE)
add_definitions(-DWINRT -DNO_GETENV)
# Making definitions available to other configurations and
# to filter dependency restrictions at compile time.
if(WINDOWS_PHONE)
set(WINRT_PHONE TRUE)
add_definitions(-DWINRT_PHONE)
elseif(WINDOWS_STORE)
set(WINRT_STORE TRUE)
add_definitions(-DWINRT_STORE)... | CMake | 4 | thisisgopalmandal/opencv | cmake/platforms/OpenCV-WinRT.cmake | [
"BSD-3-Clause"
] |
set ylabel "Number of events"
set title "Utilisation of Garbage collection events (young, full)"
plot for [i in "YGC FGC"] datafile using 1:i title columnheader(i) with lines
| Gnuplot | 3 | evtr/keycloak | testsuite/performance/tests/src/main/gnuplot/jstat/gc-ev.gp | [
"Apache-2.0"
] |
(* Proofs about the safety of expression evaluation *)
theory EvalSafe
imports Semantics TypeSystemProps
begin
lemma Expr_safe:
assumes wfe: "\<Gamma> \<turnstile> e : \<tau>"
and wfg: "WfStore \<Delta> \<Theta> G \<Gamma>"
shows "\<exists>v. G \<Turnstile> e \<down> v \<and> WfWValue \<Delta> \<Theta> v \<... | Isabelle | 4 | cyy9447/ivory | ivory-formal-model/EvalSafe.thy | [
"BSD-3-Clause"
] |
@include bar (
rgba(
50
50
.50
50 ...
// comment
)
)
| SCSS | 0 | szynkowskij/prettier | tests/format/scss/scss/arbitrary-arguments-comment.scss | [
"MIT"
] |
package com.baeldung.examples.slack;
public interface ErrorReporter {
void reportProblem(String problem);
}
| Java | 3 | DBatOWL/tutorials | slack/src/main/java/com/baeldung/examples/slack/ErrorReporter.java | [
"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\Acl;
/**
* Interface for Phalcon\Acl\Role
*/
interface RoleInterfac... | Zephir | 4 | tidytrax/cphalcon | phalcon/Acl/RoleInterface.zep | [
"BSD-3-Clause"
] |
# ===========================================================================
# https://www.gnu.org/software/autoconf-archive/ax_prog_doxygen.html
# ===========================================================================
#
# SYNOPSIS
#
# DX_INIT_DOXYGEN(PROJECT-NAME, [DOXYFILE-PATH], [OUTPUT-DIR], ...)
# DX... | M4 | 5 | Sasha7b9/U-Cube | src/ThirdParty/libevent/m4/ax_prog_doxygen.m4 | [
"MIT"
] |
#pragma once
#include "source/common/common/logger.h"
#include "contrib/kafka/filters/network/source/kafka_response.h"
namespace Envoy {
namespace Extensions {
namespace NetworkFilters {
namespace Kafka {
namespace Mesh {
/**
* Represents single downstream client request.
* Responsible for performing the work on ... | C | 5 | dcillera/envoy | contrib/kafka/filters/network/source/mesh/abstract_command.h | [
"Apache-2.0"
] |
#
# @expect=org.quattor.pan.exceptions.EvaluationException
#
object template join3;
'/x1' = list(1, 2, 3);
'/x2' = join("-", value('/x1'));
| Pan | 3 | aka7/pan | panc/src/test/pan/Functionality/join/join3.pan | [
"Apache-2.0"
] |
#include "colors.inc"
#include "stones.inc"
#include "shapes.inc"
cone {
<0, 1, 0>, 0.3 // Center and radius of one end
<1, 2, 3>, 1.0 // Center and radius of other end
open
texture { T_Stone25 scale 4 }
}
cylinder {
<0, 1, 0>, // Center of one end
<1, 2, 3>, // Center of other end
0.5 ... | POV-Ray SDL | 3 | qeedquan/misc_utilities | gfx/povray/cone.pov | [
"MIT"
] |
The Inventory for Carbon and Energy, or //ICE//, is a life cycle database representing a wide range of building and construction materials, published by the [[http://people.bath.ac.uk/cj219/|Sustainable Energy Research Team (SERT)]] at the University of Bath, UK.
In January 2011, **[[http://people.bath.ac.uk/cj219/|Ve... | Creole | 1 | OpenAMEE/datasets | documentation/Embodied_Inventory_of_carbon_and_energy_ICE/documentation.creole | [
"MIT"
] |
layout_test.rhtml <%= yield %> | RHTML | 0 | mtomaizy/radiant | vendor/rails/actionpack/test/fixtures/layout_tests/layouts/layout_test.rhtml | [
"MIT"
] |
{
// All document policy (https://w3c.github.io/webappsec-permissions-policy/document-policy.html)
// features are defined here.
// All Features have to be defined in DocumentPolicyFeature enum as well
// (defined in third_party/blink/public/mojom/permissions_policy/document_policy_feature.mojom).
// The enum... | JSON5 | 5 | zealoussnow/chromium | third_party/blink/renderer/build/scripts/tests/document_policy_default_value_control/input/document_policy_features.json5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
{SPI Slave
Once started, this cog monitors a Chip Select pin. When that pin goes active,
the cog accumulates up to 32 bits (shifting to the left) until the CS pin goes not active.
It then returns the accumulated data (as a long) and the actual bit count (as a byte) and
again waits for Chip select to go active agai... | Propeller Spin | 5 | deets/propeller | libraries/community/p1/All/1.8 MHz SPI Slave/SPI Slave.spin | [
"MIT"
] |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Azure;
namespace {{pascalCaseNs Namespace}}
{
public static class AsyncEnumerable
{
public static async Task<List<T>> ToListAsync<T>(this IAsyncEnumerable<T> that, Cancellation... | Harbour | 4 | ulisesh/arcade | src/Microsoft.DotNet.SwaggerGenerator/Microsoft.DotNet.SwaggerGenerator.CodeGenerator/Languages/csharp/PagedResponse.hb | [
"MIT"
] |
$$ MODE TUSCRIPT
LOOP i=2,9,2
PRINT i
ENDLOOP
| Turing | 3 | LaudateCorpus1/RosettaCodeData | Task/Loops-For-with-a-specified-step/TUSCRIPT/loops-for-with-a-specified-step.tu | [
"Info-ZIP"
] |
# Test that -j1 really serializes all sub-redo processes.
rm -f *.sub *.spin *.x first second *.start *.end
redo first second
| Stata | 1 | BlameJohnny/redo | t/010-jobserver/serialtest.do | [
"Apache-2.0"
] |
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-BNE-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
... | ObjDump | 3 | DuBirdFly/TinyRISCV_Learn | tests/riscv-compliance/build_generated/rv32i/I-BNE-01.elf.objdump | [
"Apache-2.0"
] |
const std = @import("std");
const expect = std.testing.expect;
const expectEqual = std.testing.expectEqual;
test "if prongs cast to expected type instead of peer type resolution" {
const S = struct {
fn doTheTest(f: bool) !void {
var x: i32 = 0;
x = if (f) 1 else 2;
try ... | Zig | 4 | wilsonk/zig | test/behavior/if_stage1.zig | [
"MIT"
] |
Red/System [
Title: "v4l2 interface"
Author: "bitbegin"
File: %v4l2.reds
Tabs: 4
Rights: "Copyright (C) 2020 Red Foundation. All rights reserved."
License: {
Distributed under the Boost Software License, Version 1.0.
See https://github.com/red/red/blob/master/BSL-License.txt
}
]
pthread_mutex_t: alias str... | Red | 4 | GalenIvanov/red | modules/view/backends/gtk3/v4l2.reds | [
"BSL-1.0",
"BSD-3-Clause"
] |
{% extends "!layout.html" %}
{% block footer %}
{{ super() }}
<script type="text/javascript">
analytics.ready(function () {
ga('require', 'linker');
ga('linker:autoLink', ['zyte.com']);
});
</script>
{% endblock %}
| HTML | 3 | FingerCrunch/scrapy | docs/_templates/layout.html | [
"BSD-3-Clause"
] |
# This file is a part of Julia. License is MIT: https://julialang.org/license
using Test, Libdl, libblastrampoline_jll
@testset "libblastrampoline_jll" begin
@test isa(Libdl.dlsym(Libdl.dlopen(:libblastrampoline), :dgemm_64_), Ptr{Nothing})
end
| Julia | 4 | jonas-schulze/julia | stdlib/libblastrampoline_jll/test/runtests.jl | [
"MIT"
] |
//================= Room Booking System / https://github.com/neokoenig =======================--->
component extends="Controller" hint="Misc Event Data"
{
/**
* @hint Constructor.
*/
public void function init() {
super.init();
// Additional Permissions
filters(through="checkPermissionAndRedirect", permissi... | ColdFusion CFC | 5 | fintecheando/RoomBooking | controllers/Eventdata.cfc | [
"Apache-1.1"
] |
# Creates a count of HTTP User-Agent length and vector of HTTP User-Agent variables
# CrowdStrike 2015
# josh.liburdi@crowdstrike.com
# @jshlbrd
@load base/protocols/http
module HTTP;
redef record HTTP::Info += {
user_agent_length: count &log &optional;
user_agent_vars: vector of string &log &optional;
};
event... | Bro | 4 | LaudateCorpus1/cs-bro | bro-scripts/extensions/http/extend-http-user-agent.bro | [
"BSD-2-Clause"
] |
.q-textarea
.q-field__control
min-height: 56px
height: auto
.q-field__control-container
padding-top: 2px
padding-bottom: 2px
.q-field__shadow
top: 2px
bottom: 2px
.q-field__native, .q-field__prefix, .q-field__suffix
line-height: 18px
.q-field__native
resize: vertical
p... | Sass | 3 | ygyg70/quasar | ui/src/components/input/QInput.sass | [
"MIT"
] |
/* Linker script to configure memory regions. */
MEMORY
{
ROM (rx) : ORIGIN = 0x00000000, LENGTH = 0x80000 /* 512K FLASH */
RAM (rw) : ORIGIN = 0x20000000, LENGTH = 0x10000 /* 64K RAM */
}
ENTRY(Reset_Handler)
_system_stack_size = 0x200;
SECTIONS
{
.text :
{
. = ALIGN(4);
_stext = .;
... | Linker Script | 4 | BreederBai/rt-thread | bsp/nrf5x/nrf52832/board/linker_scripts/link.lds | [
"Apache-2.0"
] |
# This file is a part of Julia. License is MIT: https://julialang.org/license
# RUN: julia --startup-file=no %s %t -O
# RUN: cat %t/* | FileCheck %s
include(joinpath("..", "testhelpers", "llvmpasses.jl"))
# JuliaLang/julia#38922
function haszerolayout(x::NTuple{32, VecElement{UInt8}})
rx = Ref(x)
GC.@preserv... | Julia | 4 | jonas-schulze/julia | test/llvmpasses/alloc-opt-pipeline.jl | [
"MIT"
] |
--TEST--
Parse errors during token_get_all()
--EXTENSIONS--
tokenizer
--FILE--
<?php
function test_parse_error($code) {
try {
var_dump(token_get_all($code, TOKEN_PARSE));
} catch (ParseError $e) {
echo $e->getMessage(), "\n";
}
foreach (token_get_all($code) as $token) {
if (is_... | PHP | 4 | NathanFreeman/php-src | ext/tokenizer/tests/parse_errors.phpt | [
"PHP-3.01"
] |
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 -58.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-32-sqrt.matlab | [
"MIT"
] |
fun bobo () =
n1 <- source 0;
n2 <- source 1;
return <xml>
<dyn signal={n1 <- signal n1; n2 <- signal n2; return <xml>{[n1 + n2]}</xml>}/>
<button value="Increment1" onclick={v <- get n1; set n1 (v + 1)}/>
<button value="Increment2" onclick={v <- get n2; set n2 (v + 1)}/>
</xml>
fun m... | UrWeb | 2 | apple314159/urweb | tests/rs.ur | [
"BSD-3-Clause"
] |
{layout '@layout.latte'}
{block title}{$pageTitle}{/block}
{block content}
<h1>{$pageTitle}</h1>
<table class="summary table table-bordered table-responsive table-striped">
{foreach $exceptions as $exception}
<tr>
<td class="name">
<a href="{$exception|... | Latte | 4 | pujak17/tets | packages/ThemeDefault/src/exceptions.latte | [
"MIT"
] |
%!PS-Adobe-3.0
%%Creator: cairo 1.10.2 (http://cairographics.org)
%%CreationDate: Wed Jan 14 11:07:43 2015
%%Pages: 1
%%BoundingBox: 0 0 490 349
%%DocumentData: Clean7Bit
%%LanguageLevel: 2
%%DocumentMedia: 173x123mm 490 348 0 () ()
%%EndComments
%%BeginProlog
/languagelevel where
{ pop languagelevel } { 1 } ifelse
2 l... | PostScript | 1 | Average-user/write-you-a-haskell | img/Haskell-Logo.ps | [
"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\Logger;
use DateTimeImmutable;
/**
* Phalcon\Logger\Item
*
* Repr... | Zephir | 4 | stijn1989/cphalcon | phalcon/Logger/Item.zep | [
"BSD-3-Clause"
] |
# Binary semantics
```haskell
module Binary where
import Codec.CBOR.Term (Term(..))
import Data.List.NonEmpty (NonEmpty(..))
import Prelude hiding (Bool(..))
import Syntax
( Builtin(..)
, Constant(..)
, Expression(..)
, File(..)
, FilePrefix(..)
, ImportMode(..)
, ImportType(..)
, Ope... | Literate Haskell | 5 | tesaguri/dhall-lang | standard/Binary.lhs | [
"BSD-3-Clause"
] |
{-
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
OpenAPI Version: 3.0.1
OpenAPI Petstore API version: 1.0.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
-}
... | Haskell | 4 | MalcolmScoffable/openapi-generator | samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/Logging.hs | [
"Apache-2.0"
] |
set(CV_TRACE OFF)
# These third parties libraries are incompatible with the semihosting
# toolchain.
set(WITH_JPEG OFF)
set(WITH_OPENEXR OFF)
set(WITH_TIFF OFF)
# Turn off `libpng` for some linking issues.
set(WITH_PNG OFF)
| CMake | 4 | xipingyan/opencv | cmake/vars/OPENCV_SEMIHOSTING.cmake | [
"Apache-2.0"
] |
//
// A simple model of a flipflop state machine that
// flips on every clock event.
//
// This is probably the simplest possible time based example
// for Alloy but shows how to make a trace.
//
open util/ordering[Trace]
enum Event { C }
enum State { On, Off }
fun transitions : State -> Event -> State {
On -... | Alloy | 5 | c-luu/alloy-specs | simple-models/state-machine/flip-flop.als | [
"Apache-2.0"
] |
Module: dylan-user
Author: Shri Amit
Synopsis: An application library for the duim-test-suite
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 WARRAN... | Dylan | 3 | kryptine/opendylan | sources/duim/tests/core/duim-test-suite-app-lib.dylan | [
"BSD-2-Clause"
] |
module TopologicalSortTests exposing (all)
import Dashboard.DashboardPreview exposing (groupByRank)
import Expect
import Test exposing (..)
all : Test
all =
describe "DashboardPreview.groupByRank"
[ test "empty case" <|
\_ ->
[]
|> groupByRank
... | Elm | 5 | Caprowni/concourse | web/elm/tests/TopologicalSortTests.elm | [
"Apache-2.0"
] |
string canonicalize(string fn)
{
fn=lower_case(fn);
if ((<"avi","mkv","mp4","mpg","mpeg","flv">)[(fn/".")[-1]]) fn=(fn/".")[..<1]*"."; //Trim known file extensions
sscanf(fn,"looney.tunes.%s.19",fn);
fn=replace(fn," - "," ");
sscanf(fn,"bugs bunny %s",fn);
sscanf(fn,"%*d%s",fn);
sscanf(String.trim_all_whites(fn)... | Pike | 4 | stephenangelico/shed | looneytunes.pike | [
"MIT"
] |
-- Create a test table with data
create table t1(a int, b int, c int) using parquet;
insert into t1 values(1,0,0);
insert into t1 values(2,0,1);
insert into t1 values(3,1,0);
insert into t1 values(4,1,1);
insert into t1 values(5,null,0);
insert into t1 values(6,null,1);
insert into t1 values(7,null,null);
-- Adding an... | SQL | 5 | OlegPt/spark | sql/core/src/test/resources/sql-tests/inputs/null-handling.sql | [
"Apache-2.0"
] |
#pragma once
// multi-python abstract code
#include <ATen/ATen.h>
#include <ATen/core/ivalue.h>
#include <caffe2/serialize/inline_container.h>
/* Torch Deploy intentionally embeds multiple copies of c++ libraries
providing python bindings necessary for torch::deploy users in the same
process space in order to pr... | C | 5 | xiaohanhuang/pytorch | torch/csrc/deploy/interpreter/interpreter_impl.h | [
"Intel"
] |
= Rolify Specs
== Running the specs
To run the specs first run the +bundle+ command to install the necessary gems and the +rake+ command to run the specs.
bundle
rake
== Model Adapters
Rolify currently supports 2 different ORMs: ActiveRecord and Mongoid. By default it will use Active Record but you can change ... | RDoc | 3 | OneCloudInc/rolify | spec/README.rdoc | [
"MIT"
] |
--TEST--
Bug #75186: Inconsistent reflection of Closure:::__invoke()
--FILE--
<?php
$rc = new ReflectionClass(Closure::class);
foreach ($rc->getMethods() as $method) {
if ($method->name == '__invoke') {
var_dump($method);
$method->invoke(
function($what) { echo "Hello $what!\n"; },
... | PHP | 4 | thiagooak/php-src | ext/reflection/tests/bug75186.phpt | [
"PHP-3.01"
] |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma abicoder v2;
import "./RestStorage.sol";
import './OrderStorage.sol';
import './UserStorage.sol';
import './RecordStorage.sol';
import './AppealStorage.sol';
interface RecordInterface {
function getErcBalance(string memory _coinType, address _addr) ext... | Solidity | 3 | Aircoin-official/AirCash | RecordInterface.sol | [
"MIT"
] |
[Desktop Entry]
Name=Spotify TUI
Exec=spt
Comment=Spotify for the terminal written in Rust
Icon=${SNAP}/meta/gui/spt.png
Type=Application
Terminal=true
StartupNotify=false
Categories=Music;
| desktop | 1 | jackkinsey/spotify-tui | snap/gui/spt.desktop | [
"MIT"
] |
\require dummy
\require #'dummy
| LilyPond | 0 | HolgerPeters/lyp | spec/user_files/the-works-symbols.ly | [
"MIT"
] |
# Copyright 2016 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 applica... | Python | 5 | basanto/HistomicsTK | histomicstk/deeplab/nets/dcgan.py | [
"Apache-2.0"
] |
#!/usr/bin/env bash
set -ex
# This script builds archiver for most common platforms.
export CGO_ENABLED=0
cd cmd/arc
GOOS=linux GOARCH=amd64 go build -o ../../builds/arc_linux_amd64
GOOS=linux GOARCH=arm go build -o ../../builds/arc_linux_arm7
GOOS=darwin GOARCH=amd64 go build -o ../../builds/arc_mac_amd64
GO... | Shell | 4 | ruckc/godel | vendor/github.com/mholt/archiver/v3/build.bash | [
"Apache-2.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 | 4 | kbens/rundeck | rundeckapp/grails-app/views/scm/_actionLink.gsp | [
"Apache-2.0"
] |
QT.designer_private.VERSION = 5.9.4
QT.designer_private.name = QtDesigner
QT.designer_private.module =
QT.designer_private.libs = $$QT_MODULE_LIB_BASE
QT.designer_private.includes = $$QT_MODULE_INCLUDE_BASE/QtDesigner/5.9.4 $$QT_MODULE_INCLUDE_BASE/QtDesigner/5.9.4/QtDesigner
QT.designer_private.frameworks =
QT.designe... | QMake | 2 | PLohrmannAMD/renderdoc | qrenderdoc/3rdparty/qt/x64/mkspecs/modules/qt_lib_designer_private.pri | [
"MIT"
] |
<html><head>
<script type='text/javascript'>
document.domain = 'localhost';
{{injection}}
</script></head><body>https server</body></html>
| HTML | 0 | mm73628486283/cypress | packages/server/test/support/fixtures/server/expected_https_inject.html | [
"MIT"
] |
(define count-change
Amount -> (count-change* Amount 200))
(define count-change*
0 _ -> 1
_ 0 -> 0
Amount _ -> 0 where (> 0 Amount)
Amount Fst_Denom
-> (+ (count-change* (- Amount Fst_Denom) Fst_Denom)
(count-change* Amount (next-denom Fst_Denom))))
(define next-denom
200 -> 100
100 -> 50
... | Shen | 4 | nondejus/shen-go | ShenOSKernel-22.2/tests/change.shen | [
"BSD-3-Clause"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.