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 |
|---|---|---|---|---|---|
parser context = require '../lib/parser/parserContext'
cg = require '../lib/parser/codeGenerator'.code generator ()
should contain fields = require './containsFields'.contains fields
describe 'parser context'
context = parser context.create parser context (terms: cg)
describe 'compress interpolated string com... | PogoScript | 4 | featurist/pogoscript | test/parserContextSpec.pogo | [
"BSD-2-Clause"
] |
/**
*
*/
import Util;
import OSS;
import RPC;
import OpenPlatform;
import OSSUtil;
import FileForm;
import OpenApi;
import OpenApiUtil;
import EndpointUtil;
extends OpenApi;
init(config: OpenApi.Config){
super(config);
@endpointRule = 'regional';
checkConfig(config);
@endpoint = getEndpoint('goodstech', ... | Tea | 4 | aliyun/alibabacloud-sdk | goodstech-20191230/main.tea | [
"Apache-2.0"
] |
module openconfig-network-instance-policy {
yang-version "1";
// namespace
namespace "http://openconfig.net/yang/network-instance/policy";
prefix "oc-ni-pol";
// import some basic types
import openconfig-extensions { prefix oc-ext; }
import openconfig-routing-policy { prefix oc-rpol; }
import openco... | YANG | 4 | dorado18/public | release/models/network-instance/openconfig-network-instance-policy.yang | [
"Apache-2.0"
] |
exec("swigtest.start", -1);
p1 = new_pairii(2, 3);
p2 = new_pairii(p1);
checkequal(pairii_first_get(p2), 2, "pairii_first(p2) test fails.");
checkequal(pairii_second_get(p2), 3, "pairii_second(p2) test fails.");
p3 = new_pairdd(0.5, 2.5);
p4 = new_pairdd(p3);
checkequal(pairdd_first_get(p4), 0.5, "pairdd_first(p4) ... | Scilab | 3 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/template_ns_runme.sci | [
"BSD-3-Clause"
] |
[Desktop Entry]
Version=1.0
Icon=mgba
Exec=mgba-qt %f
Terminal=false
Type=Application
Name=mGBA
GenericName=Game Boy Advance Emulator
Comment=Nintendo Game Boy Advance Emulator
Categories=Game;Emulator;
MimeType=application/x-gameboy-advance-rom;application/x-agb-rom;application/x-gba-rom;
Keywords=emulator;Nintendo;ad... | desktop | 1 | MatPoliquin/retro | retro/cores/gba/res/mgba-qt.desktop | [
"MIT-0",
"MIT"
] |
#RUN: llc -verify-machineinstrs -mtriple=x86_64-apple-darwin -o - -run-pass=x86-pseudo %s | FileCheck %s
---
name: tail_call_fail_64
tracksRegLiveness: true
body: |
bb.0:
TCRETURNri64 undef renamable $rax, 0, csr_64, implicit $rsp, implicit $ssp
; CHECK: TAILJMPr64 killed undef renamabl... | Mirah | 3 | medismailben/llvm-project | llvm/test/CodeGen/X86/tailcall-pseudo-64.mir | [
"Apache-2.0"
] |
---
title: Box
layout: documentation
doc-tab: elements
doc-subtab: box
breadcrumb:
- home
- documentation
- elements
- elements-box
meta:
colors: false
sizes: false
variables: true
---
{% capture box_example %}
<div class="box">
I'm in a box.
</div>
{% endcapture %}
{% capture box_form_example %}
<form class=... | HTML | 4 | kalpitzeta/bulma | docs/documentation/elements/box.html | [
"MIT"
] |
<#import "template.ftl" as layout>
<@layout.registrationLayout; section>
<#if section = "header">
<script>
document.title = "${msg("frontchannel-logout.title")}";
</script>
${msg("frontchannel-logout.title")}
<#elseif section = "form">
<p>${msg("frontchannel-logout.m... | FreeMarker | 4 | evtr/keycloak | themes/src/main/resources/theme/base/login/frontchannel-logout.ftl | [
"Apache-2.0"
] |
parser grammar PaloAlto_readonly;
import PaloAlto_common;
sresp_result
:
RESULT srespr_devices
;
srespr_devices
:
DEVICES name = variable
(
sresprd_hostname
// null rule must come last
| null_rest_of_line
)
;
sresprd_hostname
:
HOSTNAME hostname = variable
;
| ANTLR | 4 | zabrewer/batfish | projects/batfish/src/main/antlr4/org/batfish/grammar/palo_alto/PaloAlto_response.g4 | [
"Apache-2.0"
] |
(test (= (Int/? 42) Int))
(test (_? (Int/? T)))
(test (= (Seq/? Vec) Seq))
(test (= (Seq/? IntIter) Iter)) | Grammatical Framework | 2 | daota2/fffff | v1/test/type.gf | [
"MIT"
] |
!macro customInit
; Attempt to uninstall older, squirrel-based app.
;DetailPrint "Uninstall Squirrel-based version of application"
;IfFileExists "$INSTDIR\..\..\botframework\Update.exe" 0 noSquirrel
;nsExec::Exec '"$INSTDIR\..\..\botframework\Update.exe" --uninstall -s'
;noSquirrel:
!macroend
!macr... | NSIS | 3 | LaudateCorpus1/BotFramework-Emulator | packages/app/main/scripts/config/resources/nsis/installer.nsh | [
"MIT"
] |
import React from "react"
import { OAS3ComponentWrapFactory } from "../helpers"
export default OAS3ComponentWrapFactory((props) => {
const { Ori } = props
return <span>
<Ori {...props} />
<small className="version-stamp">
<pre className="version">OAS3</pre>
</small>
</span>
})
| JSX | 3 | ilozano2/swagger-ui | src/core/plugins/oas3/wrap-components/version-stamp.jsx | [
"Apache-2.0"
] |
Module: c-ffi-test
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
define c-function import-unsigned-long
result r :: <C-unsigne... | Dylan | 3 | kryptine/opendylan | sources/lib/c-ffi/test/c-type-import.dylan | [
"BSD-2-Clause"
] |
import querystring;
sub sort_comma_separated_querystring_parameter {
# Store the url without the querystring into a temporary header.
declare local var.url STRING;
set var.url = querystring.remove("https://www.example.com");
declare local var.parameter STRING;
set var.parameter = req.http.Sort-Parameter;
# If q... | VCL | 4 | kachkaev/polyfill-service | packages/polyfill-service/fastly/vcl/main.vcl | [
"MIT"
] |
"""Minio Test event."""
TEST_EVENT = {
"Records": [
{
"eventVersion": "2.0",
"eventSource": "minio:s3",
"awsRegion": "",
"eventTime": "2019-05-02T11:05:07Z",
"eventName": "s3:ObjectCreated:Put",
"userIdentity": {"principalId": "SO9KNO6Y... | Python | 3 | domwillcode/home-assistant | tests/components/minio/common.py | [
"Apache-2.0"
] |
// entry point for customizer script. This probably isn't useful to most people,
// as it's just a wrapper that helps generate customizer.scad for thingiverse.
/* [Hidden] */
// what preset profile do you wish to use? disable if you are going to set paramters below
key_profile = "flat"; // [dcs, oem, dsa, sa, g20, fl... | OpenSCAD | 5 | gamblor21/Adafruit_Learning_System_Guides | CircuitPython_KeyPad_Calculator/design-files/3dprints/keycaps.scad | [
"MIT"
] |
theory ProgramList
imports Main "../../ContractSem" "../../RelationalSem" "../../ProgramInAvl"
begin
(* declare cut_memory.simps [simp del] *)
(* Instead of map, make a list first *)
fun program_list_of_lst :: "inst list \<Rightarrow> inst list" where
" program_list_of_lst [] = []"
|" program_list_of_lst (Stac... | Isabelle | 5 | pirapira/eth-isabelle | example/termination/ProgramList.thy | [
"Apache-2.0"
] |
SELECT toDateTime('2017-01-01 00:00:00') + INTERVAL 0 MONTH AS x;
SELECT toDateTime('2017-01-01 00:00:00') + INTERVAL 1 MONTH AS x;
SELECT toDateTime('2017-01-01 00:00:00') + INTERVAL 11 MONTH AS x;
SELECT toDateTime('2017-01-01 00:00:00') + INTERVAL 12 MONTH AS x;
SELECT toDateTime('2017-01-01 00:00:00') + INTERVAL 13... | SQL | 4 | pdv-ru/ClickHouse | tests/queries/0_stateless/00524_time_intervals_months_underflow.sql | [
"Apache-2.0"
] |
#include "caffe2/operators/cbrt_op.h"
#include <algorithm>
#include <functional>
#include "caffe2/core/context_gpu.h"
namespace caffe2 {
namespace {
template <typename T>
__global__ void
CbrtGradientCUDAKernel(const int N, const T* dY, const T* Y, T* dX) {
CUDA_1D_KERNEL_LOOP(i, N) {
#if __CUDA_ARCH__ >= 350
... | Cuda | 4 | Hacky-DH/pytorch | caffe2/operators/cbrt_op.cu | [
"Intel"
] |
//
// CSGCamera.h
// MotionTracker
//
// Created by Tim Omernick on 3/7/05.
// Copyright 2005 Tim Omernick. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <QuickTime/QuickTime.h>
@class CSGImage;
/*
CSGCamera provides a simple way to access the default sequence grabber component (say, an iSight or othe... | C | 4 | bispawel/macfuse | filesystems/procfs/sequencegrab/CSGCamera.h | [
"AML"
] |
C Copyright(c) 1998, Space Science and Engineering Center, UW-Madison
C Refer to "McIDAS Software Acquisition and Distribution Policies"
C in the file mcidas/data/license.txt
C *** $Id: kbxgvar.dlm,v 1.32 2003/01/31 20:11:54 daves Exp $ ***
FUNCTION KBXINI(CIN,COUT,IOPT)
C--- Calibration module for GVAR data
... | IDL | 4 | oxelson/gempak | extlibs/AODT/v72/odtmcidas/navcal/navcal/kbxgvar.dlm | [
"BSD-3-Clause"
] |
exec("swigtest.start", -1);
f1 = new_Foo1(3);
f11 = new_Foo1(f1);
checkequal(Foo1_x_get(f1), Foo1_x_get(f11), "Foo1_x_get(f1) <> Foo1_x_get(f11)");
delete_Foo1(f1);
delete_Foo1(f11);
f8 = new_Foo8();
try
f81 = new_Foo8(f8);
swigtesterror("Foo(f8) called.");
catch
end
bi = new_Bari(5);
bc = new_Bari(bi);
chec... | Scilab | 4 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/constructor_copy_runme.sci | [
"BSD-3-Clause"
] |
{{ flashSession.output() }}
<div class="row">
<div class="col-sm-12">
<div class="box box-warning">
<div class="box-header with-border">
<p>{{ model_name }} - [{{ model_path }}]</p>
</div>
<div class="box-body">
<form role="form">
... | Volt | 2 | PSD-Company/phalcon-devtools-docker | src/Web/Tools/Views/models/view.volt | [
"BSD-3-Clause"
] |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microso... | C# | 4 | tomaswesterlund/aspnetcore | src/Http/Routing/test/testassets/RoutingSandbox/UseEndpointRoutingStartup.cs | [
"MIT"
] |
---
output:
pdf_document: default
html_document: default
---
Welcome to the course!
In this course, we will be using [RStudio](https://www.rstudio.com/) to interact with R, and write our annotated R code using [Markdown](http://rmarkdown.rstudio.com).
__RStudio Server__ is an open-source integrated development en... | RMarkdown | 5 | pablobarbera/POIR613 | docs/code/01-RMarkdown-setup.rmd | [
"MIT"
] |
;;; completion/vertico/autoload/magit.el -*- lexical-binding: t; -*-
;;;###if (featurep! :tools magit)
;;;###autoload
(defun +vertico/embark-magit-status (file)
"Run `magit-status` on repo containing the embark target."
(interactive "GFile: ")
(magit-status (locate-dominating-file file ".git")))
| Emacs Lisp | 4 | leezu/doom-emacs | modules/completion/vertico/autoload/magit.el | [
"MIT"
] |
HAI 1.2
I HAS A VAR_A ITZ 5
I HAS A VAR_B ITZ 10
VAR_A R SUM OF VAR_A AN VAR_B BTW 15
VAR_B R DIFF OF VAR_A AN VAR_B BTW 5
VAR_A R DIFF OF VAR_A AN VAR_B BTW 10
VISIBLE "VAR_A: " VAR_A
VISIBLE "VAR_B: " VAR_B
KTHXBYE
| LOLCODE | 3 | Himanshu21git/Lokalise-source | lolcode-fun-post/variable_swap.lol | [
"MIT"
] |
// Copyright (c) 2021 Bluespec, Inc. All Rights Reserved
// Author: Rishiyur S. Nikhil
package AXI4L_S_to_AXI4_M_Adapter;
// ================================================================
// This package defines an adapter module that does two things:
// - AXI4-Lite S to AXI4 M adaptation
// - widening (AXI4L_S fie... | Bluespec | 5 | darius-bluespec/Flute | src_Testbench/Fabrics/Adapters/AXI4L_S_to_AXI4_M_Adapter.bsv | [
"Apache-2.0"
] |
$ nosetests
...
----------------------------------------------------------------------
Ran 3 tests in 0.008s
OK
| ShellSession | 0 | youknowone/learn-python3-thw-code-ko | ex47.sh-session | [
"MIT"
] |
'' *******************************
'' * Timing *
'' * (C) 2006 Parallax, Inc. *
'' *******************************
''
'' This object provides time delay and time synchronization functions.
CON
_10us = 1_000_000 / 10 ' Divisor for 10 us
_1ms = ... | Propeller Spin | 5 | deets/propeller | libraries/community/p1/All/Parallel LCD Driver/Timing.spin | [
"MIT"
] |
#pragma TextEncoding="UTF-8"
#pragma rtGlobals=3
#pragma ModuleName = SIDAMSpectrumViewer
#include "SIDAM_InfoBar"
#include "SIDAM_Line"
#include "SIDAM_Utilities_Bias"
#include "SIDAM_Utilities_Control"
#include "SIDAM_Utilities_Image"
#include "SIDAM_Utilities_misc"
#include "SIDAM_Utilities_Panel"
#inclu... | IGOR Pro | 5 | yuksk/SIDAM | src/SIDAM/func/SIDAM_SpectrumViewer.ipf | [
"MIT"
] |
import "regent"
local c = terralib.includec("stdio.h")
task partitions(cards : int[10], subtotal : int) : int
var m = 0
-- Hit
for i = 0, 10 do
if (cards[i]>0) then
var total = subtotal+i+1
if (total < 21) then
-- Stand
m += 1
-- Hit again
cards[i] -= 1
m += part... | Rouge | 4 | octonion/recursion | regent/outcomes.rg | [
"MIT"
] |
CREATE VIEW METRIC_STATS (ID, MONTH, TEMP_C, RAIN_C) AS
SELECT ID,
MONTH,
(TEMP_F - 32) * 5 /9,
RAIN_I * 0.3937
FROM STATS; | SQL | 3 | sbj42/vscode | extensions/vscode-colorize-tests/test/colorize-fixtures/test.sql | [
"MIT"
] |
# 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 applica... | Python | 4 | EricRemmerswaal/tensorflow | tensorflow/python/debug/lib/debug_events_monitors.py | [
"Apache-2.0"
] |
<!--- hello world --->
<cfset welcome="Hello World!">
<cfoutput>#welcome#</cfoutput> | ColdFusion | 2 | websharks/ace-builds | demo/kitchen-sink/docs/coldfusion.cfm | [
"BSD-3-Clause"
] |
#!/usr/bin/env bash
###############################################################################
# Copyright 2020 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... | Shell | 5 | jzjonah/apollo | docker/build/installers/install_release_deps.sh | [
"Apache-2.0"
] |
'$Revision:$'
'
Copyright 1992-2016 AUTHORS.
See the legal/LICENSE file for license information and legal/AUTHORS for authors.
'
["preFileIn" self] value
'-- Module body'
bootstrap addSlotsTo: bootstrap stub -> 'globals' -> () From: ( | {
'Category: applications\x7fModuleInfo: Module: http_client Initia... | Self | 5 | Bystroushaak/httpClient | http_client.self | [
"MIT"
] |
Decouple Invariants From Data {#recursive}
==========================================
{#asd}
-------
Recursive Structures
--------------------
Lets see another example of decoupling...
<div class="hidden">
\begin{code}
{-# LANGUAGE NoMonomorphismRestriction #-}
module List (insertSort) where
{-@ LIQUID "--no-t... | Literate Haskell | 5 | curiousleo/liquidhaskell | docs/slides/IHP14/lhs/08_Recursive.lhs | [
"MIT",
"BSD-3-Clause"
] |
<!DOCTYPE html>
<html>
<head>
<title>Command Log</title>
<style>
body {
height: 5000px;
}
</style>
</head>
<body>
<button>button</button>
<div class="test">Hello World</div>
<div class="warning">Don't do this</div>
<form>
<input id="a" />
<input type="ch... | HTML | 2 | bkucera2/cypress | packages/driver/cypress/fixtures/command-log.html | [
"MIT"
] |
pwsh -command ".\setReleaseTag.ps1 $*"
| Shell | 1 | Jellyfrog/PowerShell | tools/releaseBuild/setReleaseTag.sh | [
"MIT"
] |
// run-rustfix
// This is for checking if we can apply suggestions as-is.
pub struct Foo(i32);
fn main() {
let Foo(...) = Foo(0); //~ ERROR unexpected `...`
let [_, ..., _] = [0, 1]; //~ ERROR unexpected `...`
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/parser/issue-70388-without-witness.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
import * as fs from 'fs';
import * as assert from 'assert';
import { loadConfig, svelte } from '../helpers';
describe('preprocess', () => {
fs.readdirSync(`${__dirname}/samples`).forEach(dir => {
if (dir[0] === '.') return;
const config = loadConfig(`${__dirname}/samples/${dir}/_config.js`);
const solo = confi... | TypeScript | 4 | Theo-Steiner/svelte | test/preprocess/index.ts | [
"MIT"
] |
-- macroscript: Open Most Recent File
-- version: 1.0
-- date: October 10th 2006
-- author: Dave Stewart
-- www: www.davestewart.co.uk/maxscript
-- purpose: Opens the most recent file saved, be it an autobackup or a straight file > save
-- install: Run the file, or drop it in UI/MacroScripts directory, go to Customi... | MAXScript | 4 | 89096000/MaxScript | Workflow/open last autoback/openMostRecentFile.mcr | [
"MIT"
] |
package io.swagger.model;
import groovy.transform.Canonical
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.model.ArrayList;
import io.swagger.model.Category;
import io.swagger.model.Tag;
import java.util.List;
@Canonical
class Pet {
Long id = null
Ca... | Groovy | 4 | wwadge/swagger-codegen | samples/client/petstore/groovy/src/main/groovy/io/swagger/model/Pet.groovy | [
"Apache-2.0"
] |
\section{Natural Transformations --- Functors as Objects}
%if False
\begin{code}
module Natural where
open import Agda.Primitive renaming (_⊔_ to _\-/_)
open import DeBruijn
open import Thinnings
open import Slime
open import Worry
open import Categories
open import Functors
open Cat
\end{code}
%endif
We have seen... | Literate Agda | 5 | gallais/EGTBS | extended/Natural.lagda | [
"BSD-3-Clause"
] |
#tag Module
Protected Module SystemParametersWFS
#tag Method, Flags = &h1
Protected Function AccessTimeout() As AccessTimeoutWFS
Const SPI_GETACCESSTIMEOUT = &h3C
dim mb as new MemoryBlock( 12 )
SystemParametersInfo( SPI_GETACCESSTIMEOUT, mb.Size, mb, 0 )
return new AccessTimeoutWFS( mb )
End ... | REALbasic | 3 | bskrtich/WFS | Windows Functionality Suite/UI Extras/System Information/Modules/SystemParametersWFS.rbbas | [
"MIT"
] |
#
mes 2,EM_WSIZE,EM_PSIZE
exp $acct
pro $acct,0
lal 0
loi EM_PSIZE
loc 51
mon
zne *1
loc 0
ret EM_WSIZE
1
ste errno
loc -1
ret EM_WSIZE
end
| Eiffel | 1 | wyan/ack | plat/em/libsys/acct.e | [
"BSD-3-Clause"
] |
--TEST--
ReflectionExtension::getClassNames() method on an extension which actually returns some information
--CREDITS--
Felix De Vliegher <felix.devliegher@gmail.com>
--FILE--
<?php
$standard = new ReflectionExtension('standard');
var_dump($standard->getClassNames());
?>
--EXPECT--
array(4) {
[0]=>
string(22) "__P... | PHP | 3 | NathanFreeman/php-src | ext/reflection/tests/ReflectionExtension_getClassNames_basic.phpt | [
"PHP-3.01"
] |
PREFIX : <http://example.org/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT *
WHERE { ?X foaf:knows* ?Y }
ORDER BY ?X ?Y
| SPARQL | 3 | alpano-unibz/ontop | test/sparql-compliance/src/test/resources/testcases-dawg-sparql-1.1/property-path/pp14.rq | [
"Apache-2.0"
] |
-- ==============================================================
-- RTL generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and OpenCL
-- Version: 2020.2
-- Copyright (C) 1986-2020 Xilinx, Inc. All Rights Reserved.
--
-- ===========================================================
library IEEE;
use IEEE.st... | VHDL | 3 | hito0512/Vitis-AI | Whole-App-Acceleration/apps/resnet50/build_flow/DPUCVDX8G_vck190/vck190_platform/hw/source/ip/isppipeline_accel/hdl/vhdl/rb_kernel.vhd | [
"Apache-2.0"
] |
#ifndef Py_INTERNAL_PARSER_H
#define Py_INTERNAL_PARSER_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef Py_BUILD_CORE
# error "this header requires Py_BUILD_CORE define"
#endif
extern struct _mod* _PyParser_ASTFromString(
const char *str,
PyObject* filename,
int mode,
PyCompilerFlags *flags,
PyA... | C | 2 | pxeger/cpython | Include/internal/pycore_parser.h | [
"0BSD"
] |
#!/bin/bash
# We are generating shasum of files in the server directory (excluding packaging and test files).
# This is to track whether server directory has changed or not
dir=$(dirname $0)
cd $dir/../..
git ls-files -- ':!tests-py' . ':!packaging' . ':!.*' . ':!bench-wrk' | sort | xargs cat | shasum | awk '{print $1}... | Shell | 4 | gh-oss-contributor/graphql-engine-1 | server/bench-wrk/get-server-sha.sh | [
"Apache-2.0",
"MIT"
] |
# Setting the old path
let path-name = (if ((sys).host.name == "Windows") { "Path" } { "PATH" })
let-env $path-name = $nu.env._OLD_VIRTUAL_PATH
# Unleting the environment variables that were created when activating the env
unlet-env VIRTUAL_ENV
unlet-env _OLD_VIRTUAL_PATH
unlet-env PROMPT_COMMAND
unalias pydoc
unalia... | Nu | 3 | dan-mutua/djangowk1 | vut/lib/python3.8/site-packages/virtualenv/activation/nushell/deactivate.nu | [
"MIT"
] |
@media (min-width: 935px) {
.video:nth-child(4n) {
margin-right: 0;
}
.video:last-child {
margin-right: 0;
}
.video:first-child,
.video:nth-child(5),
.video:nth-child(9),
.video:nth-child(13) {
margin-left: 0;
}
__styled-jsx-placeholder__7
}
| CSS | 2 | mengxy/swc | crates/swc_css_parser/tests/recovery/vercel/001/input.css | [
"Apache-2.0"
] |
<% if klass.type == 'class' then %>
<div id="parent-class-section" class="nav-section">
<h3>Parent</h3>
<% if klass.superclass and not String === klass.superclass then %>
<p class="link"><a href="<%= klass.aref_to klass.superclass.path %>"><%= klass.superclass.full_name %></a>
<% else %>
<p class="link"><%= ... | RHTML | 3 | Bhuvanesh1208/ruby2.6.1 | lib/ruby/2.6.0/rdoc/generator/template/darkfish/_sidebar_parent.rhtml | [
"Ruby"
] |
; Model definition for an abj-DEB-structured population in a generalized stirred reactor for NetLogo 6.2.0
; Author: Bas Kooijman
; date: 2021/01/12
extensions [matrix]
; ==========================================================================================================================================
; ======... | NetLogo | 5 | add-my-pet/DEBtool_M | popDyn/IBMnlogo/abj.nlogo | [
"0BSD"
] |
@charset "UTF-8";
/* CSS Document */
/** Structure */
body {
font-family: Arial, sans-serif;
margin: 0;
font-size: 14px;
}
#system-error {
font-size: 1.5em;
text-align: center;
}
#json,
#xml {
display: none;
}
#header {
position: fixed;
width: 100%;
}
#specs {
padding-top: 50px;
}
#header .angul... | CSS | 4 | skylarkfw/skylark-angular2 | original/angular.js-1.7.5/css/angular-scenario.css | [
"MIT"
] |
#!/bin/sh
sbcl --noinform --noprint <<EOF
(ql:quickload :cl-bunny.examples)
(in-package :cl-bunny.examples)
(with-connection ("amqp://")
(with-channel ()
(publish (exchange.default) "Hello world!" :routing-key "hello")
(format t " [x] Sent 'Hello World!'~%")))
EOF
| Common Lisp | 3 | Diffblue-benchmarks/Rabbitmq-rabbitmq-tutorials | common-lisp/send.lisp | [
"Apache-2.0"
] |
ruleset io.picolabs.module-used {
meta {
use module io.picolabs.module-defined
alias my_module_dflt
use module io.picolabs.module-defined
alias my_module_conf
with
configured_name = "Jim"
shares now
}
global {
now = functi... | KRL | 4 | Picolab/node-krl-generator | test-rulesets/module-used.krl | [
"MIT"
] |
#include "utils.h"
#include <c10/core/TensorOptions.h>
#include <ATen/core/op_registration/op_registration.h>
#include "simple_ops.h"
using namespace at;
Tensor global_helper_call_AA_op_1(const Tensor& self) {
auto lambda = [&]() {
return call_AA_op(self);
};
return lambda();
}
static std::function<Tensor... | C++ | 4 | Hacky-DH/pytorch | test/mobile/op_deps/utils.cpp | [
"Intel"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_getLrStereo
Author: NKey
Gets the stereo setting of the passed radio
Arguments:
0: Radio object <OBJECT>
1: Radio ID <STRING>
Return Value:
Stereo setting : Range (0,2) (0 - Both, 1 - Left, 2 - Right) <NUMBER>
Example:
_stereo = (call ... | SQF | 4 | MrDj200/task-force-arma-3-radio | addons/core/functions/fnc_getLrStereo.sqf | [
"RSA-MD"
] |
(defun hello-world ()
(format t "Hello World~%"))
(hello-world)
| Common Lisp | 2 | rojenzaman/hello-world | c/Common Lisp.lisp | [
"MIT"
] |
#!/usr/bin/env sage
from sage.rings.finite_rings.integer_mod import square_root_mod_prime
def invalid_curves_oracle(point):
"""Oracle for invalid curves attack
Should return point * secret_key in some form,
so the output can be verified.
In simplest form it should return {'x':x, 'y':y) d... | Sage | 5 | akbarszcz/CryptoAttacks | CryptoAttacks/EllipticCurve/invalid_curves.sage | [
"MIT"
] |
extends Test
const OPTION_BIG = "Floor options/Big"
const OPTION_SMALL = "Floor options/Small"
const SHAPE_CONCAVE = "Collision shapes/Concave"
const SHAPE_CONVEX = "Collision shapes/Convex"
const SHAPE_BOX = "Collision shapes/Box"
var _dynamic_shapes_scene
var _floor_shapes = {}
var _floor_size = "Small"
var _cur... | GDScript | 4 | jonbonazza/godot-demo-projects | 3d/physics_tests/tests/functional/test_rigidbody_ground_check.gd | [
"MIT"
] |
--TEST--
Test error operation of password_hash() with bcrypt hashing
--FILE--
<?php
//-=-=-=-
try {
password_hash("foo", PASSWORD_BCRYPT, array("cost" => 3));
} catch (ValueError $exception) {
echo $exception->getMessage() . "\n";
}
try {
var_dump(password_hash("foo", PASSWORD_BCRYPT, array("cost" => 32)))... | PHP | 4 | thiagooak/php-src | ext/standard/tests/password/password_bcrypt_errors.phpt | [
"PHP-3.01"
] |
#!/bin/bash
set -e
set -x
if [ "$#" -ne 1 ]
then
echo "Build the R package tarball with CUDA code. Usage: $0 [commit hash]"
exit 1
fi
commit_hash="$1"
MAKE="/c/Rtools/bin/make" /c/Rtools/bin/make Rpack
mv xgboost/ xgboost_rpack/
mkdir build
cd build
cmake .. -G"Visual Studio 15 2017 Win64" -DUSE_CUDA=ON -DR_LIB... | Shell | 4 | GinkoBalboa/xgboost | tests/ci_build/build_r_pkg_with_cuda_win64.sh | [
"Apache-2.0"
] |
# -*- perl -*-
use strict;
use warnings;
use tests::tests;
check_expected (IGNORE_EXIT_CODES => 1, [<<'EOF']);
(dir-rm-tree) begin
(dir-rm-tree) creating /0/0/0/0 through /3/2/2/3...
(dir-rm-tree) open "/0/2/0/3"
(dir-rm-tree) close "/0/2/0/3"
(dir-rm-tree) removing /0/0/0/0 through /3/2/2/3...
(dir-rm-tree) open "/3/0... | ChucK | 3 | Jeffxzj/PintOS-Project1 | tests/filesys/extended/dir-rm-tree.ck | [
"MIT"
] |
// test-clicky.click
// This simple test file can be used to demonstrate the Clicky GUI.
rr :: RoundRobinSched;
TimedSource(0.2) -> c1 :: Counter
-> Queue(20)
-> Print(q1, ACTIVE false)
-> [0]rr;
TimedSource(0.5) -> c2 :: Counter
-> Queue(20)
-> Print(q2, ACTIVE false)
-> [1]rr;
rr -> TimedSink(0.1);
ClickyI... | Click | 3 | MacWR/Click-changed-for-ParaGraph | conf/test-clicky.click | [
"Apache-2.0"
] |
// Copyright 2019 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.
package a
func D(_ string, _ int) (uint64, string) {
return 101, "bad"
}
| Go | 1 | SSSDNSY/go | test/fixedbugs/issue35586.dir/a.go | [
"BSD-3-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 | 3 | Machiaweliczny/oppailang | lib/plugins/opabsl/mlstatebsl/pervasives.opa | [
"MIT"
] |
ftpd_path=Fullständig sökväg till wuftpd,0
ftpaccess=Fullständig sökväg till ftpaccess-fil,0
ftpconversions=Fullständig sökväg till ftpconversions-fil,0
ftpgroups=Fullständig sökväg till ftpgroups-fil,0
ftphosts=Fullständig sökväg till ftphosts-fil,0
ftpusers=Fullständig sökväg till ftpusers-fil,0
pid_file=FTP-server-P... | SystemVerilog | 0 | GalaxyGFX/webmin | wuftpd/config.info.sv | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
CREATE TABLE `pt_role` (
`ROLE_ID` varchar(50) NOT NULL
);
| SQL | 3 | imtbkcat/tidb-lightning | tests/tool_1420/data/EE1420.pt_role-schema.sql | [
"Apache-2.0"
] |
SELECT
i_item_id,
i_item_desc,
s_store_id,
s_store_name,
sum(ss_net_profit) AS store_sales_profit,
sum(sr_net_loss) AS store_returns_loss,
sum(cs_net_profit) AS catalog_sales_profit
FROM
store_sales, store_returns, catalog_sales, date_dim d1, date_dim d2, date_dim d3,
store, item
WHERE
d1.d_moy = 4
... | SQL | 3 | OlegPt/spark | sql/core/src/test/resources/tpcds/q25.sql | [
"Apache-2.0"
] |
//Collector debugOn
BigSourceFileTest := UnitTest clone do(
testCollector := method(
//Collector debugOn
Collector collect
Collector collect
Collector collect
//writeln("done")
)
)
/*
message(
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a ... | Io | 3 | akluth/io | libs/iovm/tests/correctness/BigSourceFileTest.io | [
"BSD-3-Clause"
] |
#!/usr/bin/env bash
# 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.
TAG="${CIRRUS_TAG:-latest}"
# Convert "+" to "-" to make hotfix tags legal Docker tag names.
# See https://docs.docker.com/engine/referen... | Shell | 4 | Mayb3Nots/flutter | dev/ci/docker_linux/docker_push.sh | [
"BSD-3-Clause"
] |
<svg viewBox="0 0 16 16" class="svg octicon-shield" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M7.467.133a1.75 1.75 0 0 1 1.066 0l5.25 1.68A1.75 1.75 0 0 1 15 3.48V7c0 1.566-.32 3.182-1.303 4.682-.983 1.498-2.585 2.813-5.032 3.855a1.7 1.7 0 0 1-1.33 0c-2.447-1.042-4.049-2.357-5.032-3.855C1.3... | SVG | 1 | ansky/gitea | public/img/svg/octicon-shield.svg | [
"MIT"
] |
"""Test system policies."""
from homeassistant.auth.permissions import (
POLICY_SCHEMA,
PolicyPermissions,
system_policies,
)
def test_admin_policy():
"""Test admin policy works."""
# Make sure it's valid
POLICY_SCHEMA(system_policies.ADMIN_POLICY)
perms = PolicyPermissions(system_policie... | Python | 4 | domwillcode/home-assistant | tests/auth/permissions/test_system_policies.py | [
"Apache-2.0"
] |
.bytecode 50.0
.class A
.super java/lang/Object
.method m()V
return
.limit locals -1
.limit stack -1
.end method
| Jasmin | 0 | Mrack/dex2jar | dex-tools/src/test/resources/weave/a-before.j | [
"Apache-2.0"
] |
<!DOCTYPE HTML>
<html>
<head>
<title>HTML5 storage with nested frames</title>
<script src="../test_bootstrap.js"></script>
<script type="text/javascript">
goog.require('bot.dom');
goog.require('bot.frame');
goog.require('bot.html5');
goog.require('bot.storage');
goog.require('goog.testing.jsun... | HTML | 4 | weilandia/selenium | javascript/atoms/test/html5/nested_window_storage_test.html | [
"Apache-2.0"
] |
<%@ WebHandler Language="C#" CodeBehind="EchoWebSocketHeaders.ashx.cs" Class="WebServer.EchoWebSocketHeaders" %>
| ASP | 0 | pyracanda/runtime | src/libraries/Common/tests/System/Net/Prerequisites/Servers/CoreFxNetCloudService/WebServer/WebSocket/EchoWebSocketHeaders.ashx | [
"MIT"
] |
- dashboard: version_details
title: Version Details
layout: newspaper
load_configuration: wait
elements:
- title: Version
name: Version
model: jira_block
explore: version
type: single_value
fields:
- version.name
sorts:
- version.name
limit: 500
query_timezone: America/... | LookML | 3 | llooker/jira_block_fivetran | version_details.dashboard.lookml | [
"MIT"
] |
// Example combining MCAD/fonts.scad with search() function.
use <MCAD/fonts.scad>
thisFont=8bit_polyfont();
x_shift=thisFont[0][0];
y_shift=thisFont[0][1];
hours=["one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve"];
module clock_hour_words(word_offset=20.0,word_height=2.0) {
f... | OpenSCAD | 4 | heristhesiya/OpenJSCAD.org | packages/io/scad-deserializer/tests/examples/example023.scad | [
"MIT"
] |
<cfset message = "Hello World">
<cfoutput> #message#</cfoutput>
| ColdFusion | 1 | zackarhino/hello-world | c/coldfusion.cfm | [
"MIT"
] |
// Copyright 2013 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/services.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:integration_test/integration_test.dart';
import 'p... | Dart | 4 | coral-labs/plugins | packages/shared_preferences/shared_preferences_android/example/integration_test/shared_preferences_test.dart | [
"BSD-3-Clause"
] |
import DataStore
import DescribeList
import DescribeList2
import IsSuffix
import MergeSort
import MergeSortView
import Reverse
import ReverseSnoc
import Shape
import Shape_abs
import SnocList
import TestStore
| Idris | 1 | Qqwy/Idris2-Erlang | idris2/tests/typedd-book/chapter10/All.idr | [
"BSD-3-Clause"
] |
#include "bmx055_accel.h"
#include <cassert>
#include "selfdrive/common/swaglog.h"
#include "selfdrive/common/timing.h"
BMX055_Accel::BMX055_Accel(I2CBus *bus) : I2CSensor(bus) {}
int BMX055_Accel::init() {
int ret = 0;
uint8_t buffer[1];
ret = read_register(BMX055_ACCEL_I2C_REG_ID, buffer, 1);
if(ret < 0)... | C++ | 5 | shoes22/openpilot | selfdrive/sensord/sensors/bmx055_accel.cc | [
"MIT"
] |
script = require './scriptAssertions'
shouldOutput = script.shouldOutput
describe 'list comprehensions'
describe 'map'
it 'can do the identity map'
'print [x <- [1, 2, 3], x]' shouldOutput '[ 1, 2, 3 ]'
it 'can map items to new values'
'print [x <- [1, 2, 3], x + 1]' shoul... | PogoScript | 5 | featurist/pogoscript | test/listComprehensionsSpec.pogo | [
"BSD-2-Clause"
] |
"""
done
"""
import System
def fun():
print "done"
return
x = 2
Array.Find((1,2,3),{q|q==x})
fun()
| Boo | 1 | popcatalin81/boo | tests/testcases/regression/BOO-1288.boo | [
"BSD-3-Clause"
] |
-- @shouldFailWith CannotGeneralizeRecursiveFunction
module Main where
import Prelude
test n m | n <= 1 = m
| otherwise = test (n - 1) (m <> m)
| PureScript | 3 | metaleap/purs-with-dump-coreimp | examples/failing/Generalization2.purs | [
"BSD-3-Clause"
] |
import {browser, by, element, ElementFinder, ExpectedConditions as EC} from 'protractor';
browser.waitForAngularEnabled(false);
describe('Element E2E Tests', function () {
describe('Hello World Elements', () => {
beforeEach(() => browser.get('hello-world.html'));
describe('(with default CD strategy and view... | TypeScript | 4 | John-Cassidy/angular | integration/ng_elements/e2e/app.e2e-spec.ts | [
"MIT"
] |
var x{0..1} binary;
s.t. c: alldiff {i in 0..1} x[i];
| AMPL | 2 | ampl/plugins | test/data/feasible.ampl | [
"BSD-3-Clause"
] |
#pragma once
#include "envoy/config/common/matcher/v3/matcher.pb.h"
#include "source/common/buffer/buffer_impl.h"
#include "source/common/http/header_utility.h"
namespace Envoy {
namespace Extensions {
namespace Common {
namespace Matcher {
class Matcher;
using MatcherPtr = std::unique_ptr<Matcher>;
/**
* Base cl... | C | 5 | dcillera/envoy | source/extensions/common/matcher/matcher.h | [
"Apache-2.0"
] |
; StrStr
; input, top of stack = string to search for
; top of stack-1 = string to search in
; output, top of stack (replaces with the portion of the string remaining)
; modifies no other variables.
;
; Usage:
; Push "this is a long ass string"
; Push "ass"
; Call StrStr
; Pop $R0
; ($R0 at this point i... | NSIS | 4 | rajeev02101987/arangodb | Installation/Windows/Plugins/StrStr.nsh | [
"Apache-2.0"
] |
declare namespace t = "http://schemas.microsoft.com/exchange/services/2006/types";
declare namespace m = "http://schemas.microsoft.com/exchange/services/2006/messages";
declare namespace soap = "http://schemas.xmlsoap.org/soap/envelope/";
if (/soap:Envelope/soap:Body/m:GetFolder and
//m:GetFolder/m:FolderShape/t:B... | XQuery | 3 | KrissN/akonadi-ews | test/resources/getfolder-specialfolders.xq | [
"RSA-MD"
] |
-- Swagger Petstore
-- This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special_key` to test the authorization filters.
-- ------------ EDIT NO... | Ada | 3 | derBiggi/swagger-codegen | samples/client/petstore/ada/src/samples.ads | [
"Apache-2.0"
] |
desc_sv=Hjälp om Webmin
| SystemVerilog | 0 | GalaxyGFX/webmin | help/module.info.sv | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
-- This migration adds versioning to metadata, used for optimistic locking in UIs.
-- TODO: Are there changes required in catalog_versions.txt
DO $$
BEGIN
BEGIN
ALTER TABLE hdb_catalog.hdb_metadata ADD COLUMN "resource_version" INTEGER NOT NULL DEFAULT 1 UNIQUE;
EXCEPTION
-- Fo... | SQL | 4 | gh-oss-contributor/graphql-engine-1 | server/src-rsr/migrations/43_to_44.sql | [
"Apache-2.0",
"MIT"
] |
xof 0302txt 0064
template Header {
<3D82AB43-62DA-11cf-AB39-0020AF71E433>
WORD major;
WORD minor;
DWORD flags;
}
template Vector {
<3D82AB5E-62DA-11cf-AB39-0020AF71E433>
FLOAT x;
FLOAT y;
FLOAT z;
}
template Coords2d {
<F6F23F44-7686-11cf-8F52-0040333594A3>
FLOAT u;
FLOAT v;
}
template Matrix4x4 {
<F6F23... | Logos | 3 | Ybalrid/orbiter | Extern/mssdk_dx7/samples/Multimedia/VBSamples/D3DRM/media/tiger.x | [
"MIT"
] |
/* @generated */
digraph cfg {
"dealloc#Autoreleasepool#instance.65b3873c13c8c3701384d7b6f48e27f7_1" [label="1: Start Autoreleasepool.dealloc\nFormals: self:Autoreleasepool*\nLocals: \n " color=yellow style=filled]
"dealloc#Autoreleasepool#instance.65b3873c13c8c3701384d7b6f48e27f7_1" -> "dealloc#Autoreleasepool... | Graphviz (DOT) | 3 | JacobBarthelmeh/infer | infer/tests/codetoanalyze/objc/frontend/autoreleasepool/Autoreleasepool.m.dot | [
"MIT"
] |
te %_NTTREE%\unittests\conterm.adapter.tests.dll %1 %2 %3 %4 %5 %6 %7 %8 %9 | Batchfile | 0 | Ghosty141/Terminal | src/terminal/adapter/ut_adapter/run.bat | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.