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 |
|---|---|---|---|---|---|
ByJ | PureBasic | 2 | cnheider/onnx | onnx/backend/test/data/node/test_constantofshape_int_shape_zero/test_data_set_0/output_0.pb | [
"MIT"
] |
# Builds a tree of YAML nodes.
#
# This builder is similar to `YAML::Builder`, but instead of
# directly emitting the output to an IO it builds a YAML document
# tree in memory.
#
# All "emitting" methods support specifying a "reference" object
# that will be associated to the emitted object,
# so that when that refere... | Crystal | 5 | n00p3/crystal | src/yaml/nodes/builder.cr | [
"Apache-2.0"
] |
SELECT (?x +?y AS ?z) {}
| SPARQL | 1 | alpano-unibz/ontop | test/sparql-compliance/src/test/resources/testcases-dawg-sparql-1.1/syntax-query/syntax-select-expr-01.rq | [
"Apache-2.0"
] |
import * as React from 'react';
import Box from '@mui/material/Box';
import IconButton from '@mui/material/IconButton';
import Input from '@mui/material/Input';
import FilledInput from '@mui/material/FilledInput';
import OutlinedInput from '@mui/material/OutlinedInput';
import InputLabel from '@mui/material/InputLabel'... | TypeScript | 4 | dany-freeman/material-ui | docs/data/material/components/text-fields/InputAdornments.tsx | [
"MIT"
] |
{:dev true
:port 3000
;; when :nrepl-port is set the application starts the nREPL server on load
:nrepl-port 7000
:database-url "jdbc:postgresql://127.0.0.1:5432/hello_world?user=benchmarkdbuser&password=benchmarkdbpass&jdbcCompliantTruncation=false&elideSetAutoCommits=true&useLocalSessionState=true&cachePrepStmts=... | edn | 2 | xsoheilalizadeh/FrameworkBenchmarks | frameworks/Clojure/luminus/env/dev/resources/config.edn | [
"BSD-3-Clause"
] |
#If TARGET="xna" Or TARGET="android"
Import mojo
#End
Interface IBase
Method Blah()
End
Interface Drawable Extends IBase
Method Draw()
End
Interface Killable Extends IBase
Method Kill()
End
Interface Bonkable Extends Drawable,Killable
Method Bonk()
End
Class Actor Implements Drawable
Method Blah()
Print "A... | Monkey | 5 | blitz-research/monkey | bananas/mak/ifacetest/ifacetest.monkey | [
"Zlib"
] |
/**
* Copyright (c) 2016-present, Facebook, 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 ... | Cuda | 5 | Hacky-DH/pytorch | modules/detectron/smooth_l1_loss_op.cu | [
"Intel"
] |
# typed: false
# frozen_string_literal: true
require "cmd/shared_examples/args_parse"
describe "brew tap" do
it_behaves_like "parseable arguments"
it "taps a given Tap", :integration_test do
path = setup_test_tap
expect { brew "tap", "--force-auto-update", "homebrew/bar", path/".git" }
.to output(... | Ruby | 3 | ylht/brew | Library/Homebrew/test/cmd/tap_spec.rb | [
"BSD-2-Clause"
] |
' 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.
'-----------------------------------------------------------------------------
' Contains the definition of the Scanne... | Visual Basic | 5 | ffMathy/roslyn | src/Compilers/VisualBasic/Portable/Scanner/XmlTokenFactories.vb | [
"MIT"
] |
discard """
output: '''[0, 0]'''
"""
import morder_depb
import morder_depa
# bug #11187
echo Foo(3)
| Nimrod | 0 | JohnAD/Nim | tests/modules/torder_dep.nim | [
"MIT"
] |
struct Params;
pub trait Plugin<E: ?Sized> {
type Error;
}
pub trait Pluggable {
fn get_ref<P: Plugin<Self>>(&mut self) -> Option<P::Error> {
None
}
}
struct Foo;
impl Plugin<Foo> for Params {
type Error = ();
}
impl<T: Copy> Pluggable for T {}
fn handle(req: &mut i32) {
req.get_ref::<P... | Rust | 3 | Eric-Arellano/rust | src/test/ui/issues/issue-45801.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
\documentclass{article}
\usepackage{agda}
\begin{document}
\begin{code}
-- We use non-standard spaces between the name of the term and the
-- colon.
postulate
s00A0 : Set -- NO-BREAK SPACE ("\ " with Agda input method)
s2004 : Set -- THREE-PER-EM SPACE ("\;" with Agda input method)
s202F : Set -- N... | Literate Agda | 4 | shlevy/agda | test/LaTeXAndHTML/succeed/Issue2019.lagda | [
"BSD-3-Clause"
] |
--TEST--
func_get_args with variable number of args
--FILE--
<?php
function foo($a)
{
var_dump(func_get_args());
}
foo(1, 2, 3);
?>
--EXPECT--
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
}
| PHP | 4 | thiagooak/php-src | tests/lang/func_get_args.002.phpt | [
"PHP-3.01"
] |
; 3.06 https://nsis.sourceforge.io/Main_Page
; https://nsis.sourceforge.io/Docs/
;! keywords ===========================================================
Page
UninstPage
PageEx
PageExEnd
SectionGroup
Section
SectionEnd
SectionGroupEnd
Function
FunctionEnd
Var
Goto
Return
;! preprocessor ============================... | NSIS | 3 | Novodes/notepad2 | tools/lang/NSIS.nsi | [
"MIT"
] |
scriptname _Frost_SwimEvent extends ActiveMagicEffect
import FrostUtil
Event OnEffectStart(Actor akTarget, Actor akCaster)
SendEvent_OnPlayerStartSwimming()
EndEvent
Event OnEffectFinish(Actor akTarget, Actor akCaster)
; Wait to ensure that this is sent last, the Start event
; can send many duplicates.
utility.w... | Papyrus | 4 | chesko256/Campfire | Scripts/Source/_Frost_SwimEvent.psc | [
"MIT"
] |
.. meta::
:description: Hasura Migration file format reference
:keywords: hasura, docs, migration, file format
.. _migration_file_format:
Migration file format reference
===============================
.. contents:: Table of contents
:backlinks: none
:depth: 1
:local:
Introduction
------------
The ``co... | reStructuredText | 4 | gh-oss-contributor/graphql-engine-1 | docs/graphql/core/migrations/reference/migration-file-format.rst | [
"Apache-2.0",
"MIT"
] |
APOLLONIUS(CIR1,CIR2,CIR3,S1,S2,S3)
;Circles are passed in as strings with three parts with a "^" separator in the order x^y^r
;The three circles are CIR1, CIR2, and CIR3
;The S1, S2, and S3 parameters determine if the solution will be internally or externally
;tangent to the circle. (+1 external, -1 internal)
;CI... | M | 4 | LaudateCorpus1/RosettaCodeData | Task/Problem-of-Apollonius/MUMPS/problem-of-apollonius.mumps | [
"Info-ZIP"
] |
/* Copyright 2021 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/cc/experimental/libtf/impl/string.h | [
"Apache-2.0"
] |
*** Settings ***
Force Tags force1 force2
Suite Setup Pass Execution In Keyword tag1 tag2 -*2
Suite Teardown Pass Execution In Keyword
*** Test Cases ***
Test in suite with valid Pass Execution usage in Suite Setup and Teardown
[Documentation] FAIL Test is run normally.
Fail T... | RobotFramework | 4 | phil-davis/robotframework | atest/testdata/running/pass_execution_in_suite_setup_and_teardown.robot | [
"ECL-2.0",
"Apache-2.0"
] |
#!/usr/bin/env bash
set -e
./y.rs build --sysroot none "$@"
rm -r target/out || true
scripts/tests.sh no_sysroot
./y.rs build "$@"
scripts/tests.sh base_sysroot
scripts/tests.sh extended_sysroot
| Shell | 3 | mbc-git/rust | compiler/rustc_codegen_cranelift/test.sh | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
% Nisse, 2018-10-26
% Testing that record field are already highlighted by scope checker.
\documentclass{article}
\usepackage{agda}
% This redefinition of AgdaField,
% in combination with the math-only command \bot,
% will fail the LaTeX build if no highlighting
% of fields has been performed.
\renewcommand{\AgdaFi... | Literate Agda | 4 | shlevy/agda | test/LaTeXAndHTML/succeed/Issue3322.lagda | [
"BSD-3-Clause"
] |
// Separate test file because `Fn() => bool` isn't getting fixed and rustfix complained that
// even though a fix was applied the code was still incorrect
fn foo() => impl Fn() => bool {
//~^ ERROR return types are denoted using `->`
//~| ERROR expected one of `+`, `->`, `::`, `where`, or `{`, found `=>`
u... | Rust | 3 | ohno418/rust | src/test/ui/fn/fn-recover-return-sign2.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
*** Setting ***
Documentation Testing different ways to write "Setting(s)".
*** Comment ***
This table is accepted and data here ignored.
***SETTINGS***
Default Tags Settings
Library OperatingSystem
***Variable***
${VARIABLE} Variable
*** VARIABLES ***
${VARIABLES} Variables
***Test Case***
Test Ca... | RobotFramework | 3 | phil-davis/robotframework | atest/testdata/parsing/table_names.robot | [
"ECL-2.0",
"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 | 4 | hito0512/Vitis-AI | Whole-App-Acceleration/apps/resnet50/build_flow/DPUCVDX8G_vck190/vck190_platform/hw/source/ip/isppipeline_accel/hdl/vhdl/demosaicing.vhd | [
"Apache-2.0"
] |
#!/usr/bin/pike
// -*- mode: pike -*-
// $Id: wc.pike,v 1.1 2004-05-19 18:13:51 bfulgham Exp $
// http://www.bagley.org/~doug/shootout/
// from Per Hedbor, optimized by David Hedbor
enum State { Outside, Inside };
void main() {
int nl = 0, nw = 0, nc = 0; // line, word and character counters
int sl; // Size o... | Pike | 3 | kragen/shootout | bench/wc/wc.pike | [
"BSD-3-Clause"
] |
config var n : int = 4;
var d = {1..n, 1..n, 1..n};
var a : [d] real;
for (i,j,k) in d do
a(i,j,k) = 1.0 * ((i-1)*n**2 + (j-1)*n + k);
for ijk in d do
writeln(a(ijk));
| Chapel | 4 | jhh67/chapel | test/arrays/deitz/part1/test_array_3D_float.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
!include MultiUser.nsh
!include MUI2.nsh
!include Util.nsh
!include x64.nsh
!include nsDialogs.nsh
!include LogicLib.nsh
!include StrFunc.nsh
!include WinVer.nsh
!include FileFunc.nsh
!include package\nsis\lib\FileAssoc.nsh
| NSIS | 2 | mocheer/keeweb | package/nsis/includes.nsh | [
"Apache-2.0",
"MIT"
] |
var t2 binary;
var t3 binary;
var t1 binary;
minimize obj:t2*(1-0.25*((1-t3)
+(1-t3)
+(1-t3)))
+t3*(1-0.25*((1-t2)
+(1-t2)
+(1-t2)))
+t1*(1-0.25*(1));
subject to c1: t1+t3>=1;
subject to c2: t2+t3>=1;
subject to c3: t2>=1;
| AMPL | 2 | jwlin/Nemo | example/nemo-nonlinear.ampl | [
"MIT"
] |
Class {
#name : #GtReturnPragmasShouldPointToExistingClasses,
#superclass : #GtPharoConstraint,
#category : #'GToolkit-Constraints'
}
{ #category : #accessing }
GtReturnPragmasShouldPointToExistingClasses >> description [
^ 'The type defined in ==<return: #AType>== must exist in the image.'
]
{ #category : #acces... | Smalltalk | 3 | feenkcom/gtoolk | src/GToolkit-Constraints/GtReturnPragmasShouldPointToExistingClasses.class.st | [
"MIT"
] |
#define TORCH_ASSERT_NO_OPERATORS
#include <ATen/native/TensorIterator.h>
#include <ATen/native/cuda/Reduce.cuh>
#include <ATen/native/DispatchStub.h>
#include <ATen/native/SharedReduceOps.h>
#include <ATen/Dispatch.h>
#include <ATen/native/ReduceOps.h>
namespace at { namespace native {
template <typename scalar_t, t... | Cuda | 3 | xiaohanhuang/pytorch | aten/src/ATen/native/cuda/ReduceSumProdKernel.cu | [
"Intel"
] |
@keyframes name { from { color: red } } | CSS | 2 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/Jmhb8p_Oc2-nzkcDSk0dww/input.css | [
"Apache-2.0"
] |
//keep this enum in sync with the CPU version (in btCollidable.h)
//written by Erwin Coumans
#define SHAPE_CONVEX_HULL 3
#define SHAPE_CONCAVE_TRIMESH 5
#define TRIANGLE_NUM_CONVEX_FACES 5
#define SHAPE_COMPOUND_OF_CONVEX_HULLS 6
#define B3_MAX_STACK_DEPTH 256
typedef unsigned int u32;
///keep this in sync with ... | OpenCL | 5 | N0hbdy/godot | thirdparty/bullet/Bullet3OpenCL/NarrowphaseCollision/kernels/satConcave.cl | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] |
(declare-const str String)
(assert (= (str.len str) 3))
(assert (= (str.len str) 2))
(check-sat)
| SMT | 1 | mauguignard/cbmc | regression/smt2_strings/length_input_unsat/length_input_unsat.smt2 | [
"BSD-4-Clause"
] |
\nonstopmode
\documentclass{article}
\usepackage{agda}
\begin{document}
\begin{code}
module _ where
id : {A : Set} → A → A
id x = x
\end{code}
\end{document}
| Literate Agda | 4 | shlevy/agda | test/LaTeXAndHTML/succeed/Issue2536.lagda | [
"BSD-3-Clause"
] |
# Solve binary knapsack instances, task P9
# Input file
param file := "instances/rucksack0010.txt";
# Parameters
param n := read file as "1n" skip 0 use 1 comment "#";
set N := {1 to n};
param values[N] := read file as "1n" skip 1 use n comment "#";
param weights[N] := read file as "2n" skip 1 use n comment "#";
par... | Zimpl | 5 | ArielMant0/ko2017 | sheet9/taskP9/knapsack.zpl | [
"MIT"
] |
package jadx.tests.integration.types;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.junit.jupiter.api.Test;
import jadx.core.dex.nodes.ClassNode;
import jadx.tests.api.IntegrationTest;
import static jadx.tests.api.utils.JadxMatchers.containsOne;
import static org.hamcre... | Java | 4 | Dev-kishan1999/jadx | jadx-core/src/test/java/jadx/tests/integration/types/TestGenerics3.java | [
"Apache-2.0"
] |
= simple_form_for :email, url: authentications_emails_path, method: :post do |f|
= f.input :address, label: t('.email_address')
= f.button :submit, t('.save'), class: "btn btn-default btn-lg pull-right btn"
= content_for :guide_title do
h3
i.fa.fa-envelope.fa-2x
span = t('.title')
= content_for :guide d... | Slim | 4 | gsmlg/peatio | app/views/authentications/emails/new.html.slim | [
"MIT"
] |
module fifo (
input clk_50,
input clk_2,
input reset_n,
output [7:0] data_out,
output empty
);
| SystemVerilog | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/SystemVerilog/fifo.sv | [
"MIT"
] |
{ lib
, buildPythonPackage
, pytest
, tornado
, fetchPypi
}:
buildPythonPackage rec {
pname = "pytest-tornado";
version = "0.8.1";
src = fetchPypi {
inherit pname version;
sha256 = "1cgisd7lb9q2hf55558cbn5jfhv65vsgk46ykgidzf9kqcq1kymr";
};
# package has no tests
doCheck = false;
buildInputs = ... | Nix | 4 | arjix/nixpkgs | pkgs/development/python-modules/pytest-tornado/default.nix | [
"MIT"
] |
# serial 11
# Copyright (C) 2009-2017 Free Software Foundation, Inc.
#
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
AC_DEFUN([gl_FUNC_STAT],
[
AC_REQUIRE([AC_CANONICAL_HOST]... | M4 | 3 | YuPf1989/BGAQRCode-Android | zbar/src/main/jni/libiconv-1.15/srcm4/stat.m4 | [
"Apache-2.0"
] |
## Receipt.L2 (object)
+ txHash: `0x466a9432e5337ee85deb9092526bb96377d316b9a1f0717ae4027798837fb85b` (string, required),
+ rollupBlock: 99812 (number, required, nullable),
+ status: committed (TxState, required),
+ failReason: null (string, required, nullable)
## Receipt.L1 (object)
+ status: committed (L1Status, req... | API Blueprint | 3 | smishraIOV/ri-aggregation | infrastructure/api-docs/blueprint/types/receipt.apib | [
"Apache-2.0",
"MIT"
] |
-- @shouldFailWith TransitiveExportError
module Test (bar) where
import Prelude
class Foo a where
bar :: a -> a
| PureScript | 4 | metaleap/purs-with-dump-coreimp | examples/failing/MissingClassExport.purs | [
"BSD-3-Clause"
] |
f ← { diff ← {1↓⍵-¯1⌽⍵} ⋄ signal ← {¯50⌈50⌊50×(diff 0,⍵)÷0.01+⍵} ⋄ +/ signal ⍳ ⍵ }
f 1000
| APL | 3 | mbudde/apltail | tests/signal1.apl | [
"MIT"
] |
provider "aws" {
region = "eu-central-1"
}
data "aws_region" "current" {}
data "aws_availability_zones" "available" {
state = "available"
}
| HCL | 3 | tetianakravchenko/beats | metricbeat/module/kubernetes/_meta/terraform/eks/aws.tf | [
"ECL-2.0",
"Apache-2.0"
] |
#include "caffe2/core/context_gpu.h"
#include "caffe2/operators/multi_class_accuracy_op.h"
#include "caffe2/utils/GpuAtomics.cuh"
#include "caffe2/utils/math.h"
namespace caffe2 {
namespace {
__global__ void MultiClassAccuracyKernel(const int N, const int D, const float* Xdata,
const int* labeldata, float* accura... | Cuda | 4 | Hacky-DH/pytorch | caffe2/operators/multi_class_accuracy_op.cu | [
"Intel"
] |
#ifndef NVIM_CURSOR_H
#define NVIM_CURSOR_H
#include <stdbool.h>
#include "nvim/vim.h"
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "cursor.h.generated.h"
#endif
#endif // NVIM_CURSOR_H
| C | 2 | uga-rosa/neovim | src/nvim/cursor.h | [
"Vim"
] |
(*
Module: Pam
Parses /etc/pam.conf and /etc/pam.d/* service files
Author: David Lutterkort <lutter@redhat.com>
About: Reference
This lens tries to keep as close as possible to `man pam.conf` where
possible.
About: Licence
This file is licensed under the LGPL v2+, like the rest of Augeas.
About: Lens Usage
... | Augeas | 4 | zwass/launcher | pkg/augeas/assets/lenses/pam.aug | [
"MIT"
] |
; 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:
%"@_newval" = alloca i64, alig... | LLVM | 2 | casparant/bpftrace | tests/codegen/llvm/pointer_inc_map.ll | [
"Apache-2.0"
] |
JAR = CVE-2012-0507.jar
CLASSES = \
msf/x/Exploit.java \
msf/x/Help.java \
msf/x/PayloadX.java
.SUFFIXES: .java .class
.java.class:
javac -d bin -source 1.2 -target 1.2 $*.java
all: $(CLASSES:.java=.class)
(cd bin; jar cvf ../$(JAR) *)
install:
mv $(JAR) ../../../../data/exploits/
clean:
rm -f $(JAR)... | Makefile | 3 | OsmanDere/metasploit-framework | external/source/exploits/CVE-2012-0507/Makefile | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
%%%
%%% Author:
%%% Christian Schulte <schulte@ps.uni-sb.de>
%%%
%%% Copyright:
%%% Christian Schulte, 1997
%%%
%%% Last change:
%%% $Date$ by $Author$
%%% $Revision$
%%%
%%% This file is part of Mozart, an implementation
%%% of Oz 3
%%% http://www.mozart-oz.org
%%%
%%% See the file "LICENSE" or
%%% http:... | Oz | 4 | Ahzed11/mozart2 | lib/main/op/Open.oz | [
"BSD-2-Clause"
] |
// Atom Dark Syntax theme
@import "styles/syntax-variables.less";
@import "styles/editor.less";
@import "styles/syntax-legacy/_base.less";
@import "styles/syntax/base.less";
@import "styles/syntax/css.less";
@import "styles/syntax/html.less";
| Less | 4 | Embodimentgeniuslm3/BDB11A0E2DE062D2E39E4C5301B2FE5E | packages/atom-dark-syntax/index.less | [
"MIT"
] |
{-# LANGUAGE CPP, EmptyDataDecls, TypeSynonymInstances, FlexibleInstances, MultiParamTypeClasses, FlexibleContexts #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Graphics.UI.FLTK.LowLevel.Base.LightButton
(
lightButtonNew,
lightButtonCustom
, drawLightButtonBase
, handleLightButtonBase
, resize... | C2hs Haskell | 5 | ericu/fltkhs | src/Graphics/UI/FLTK/LowLevel/Base/LightButton.chs | [
"MIT"
] |
#include <torch/csrc/jit/ir/ir.h>
#include <torch/csrc/jit/ir/ir_views.h>
#include <torch/csrc/jit/jit_log.h>
#include <torch/csrc/jit/passes/frozen_linear_transpose.h>
#include <torch/csrc/jit/passes/utils/optimization_utils.h>
#include <torch/csrc/jit/runtime/graph_executor.h>
#include <torch/csrc/jit/runtime/graph_i... | C++ | 5 | xiaohanhuang/pytorch | torch/csrc/jit/passes/frozen_linear_transpose.cpp | [
"Intel"
] |
// @filename: working.ts
// minmal samples from #33395
export namespace ns {
interface Function<T extends (...args: any) => any> {
throttle(): Function<T>;
}
interface Function<T> {
unary(): Function<() => ReturnType<T>>;
}
}
// @filename: regression.ts
export namespace ns {
... | TypeScript | 3 | monciego/TypeScript | tests/cases/compiler/interfaceMergedUnconstrainedNoErrorIrrespectiveOfOrder.ts | [
"Apache-2.0"
] |
-@ var body: String
-@ var title: String = "My App"
- import controllers._
- var stylesheets = Seq(routes.Assets.versioned("stylesheets/application.css"))
- var icon = routes.Assets.versioned("images/favicon.png")
- var javascripts = Seq( routes.Assets.versioned("javascripts/jquery.min.js"), routes.Assets.versioned("... | Scaml | 4 | MaximilianoFelice/mop-organizer | app/views/layouts/default.scaml | [
"Apache-2.0"
] |
// Copyright 2015 The Bazel 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 appl... | Objective-C++ | 3 | jobechoi/bazel | tools/objc/objc_dummy.mm | [
"Apache-2.0"
] |
Make sanity check for web-handler return value working in release mode
| Cucumber | 2 | ikrivosheev/aiohttp | CHANGES/3540.feature | [
"Apache-2.0"
] |
[\2cns|attr] {} | CSS | 0 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/MCJc58-6bYzpgizSxt8jQg/input.css | [
"Apache-2.0"
] |
Gramatika
0 $accept: File $end
1 $@1: %empty
2 File: PackageDecl $@1 Imports
3 PackageDecl: 'P' Symbol ';'
4 Imports: 'I'
5 Symbol: 'S'
Terminály s pravidly, ve kterých se objevují
$end (0) 0
';' (59) 3
'I' (73) 4
'P' (80) 3
'S' (83) 5
error (256)
Neterminály s pravidly, ve kterých se... | Bison | 3 | YKG/y | testdata/dev/go0.y.bison | [
"BSD-3-Clause"
] |
// Copyright 2006-2015 Las Venturas Playground. All rights reserved.
// Use of this source code is governed by the GPLv2 license, a copy of which can
// be found in the LICENSE file.
#pragma testcase TimeTestSuite
TimeTestSuite() {
// String we'll use for testing purposes.
new timeString[8];
// Test seco... | PAWN | 4 | EPIC-striker/playground | pawn/Interface/Time.tests.pwn | [
"MIT"
] |
python "%~dp0\update-checkout" %*
| Batchfile | 1 | lwhsu/swift | utils/update-checkout.cmd | [
"Apache-2.0"
] |
import asyncdispatch, net, asyncnet
proc recvTwice(socket: Socket | AsyncSocket,
size: int): Future[string] {.multisync.} =
var x = await socket.recv(size)
var y = await socket.recv(size+1)
return x & "aboo" & y
| Nimrod | 4 | alehander92/Nim | tests/async/tmultisync.nim | [
"MIT"
] |
0 reg32_t "dword"
1 code_t "proc*"
2 num32_t "int"
3 uint32_t "unsigned int"
4 num8_t "char"
3 uint32_t "size_t"
5 ptr(struct(0:num32_t,4:ptr(num8_t),8:ptr(num8_t),12:ptr(num8_t),16:ptr(num8_t),20:ptr(num8_t),24:ptr(num8_t),28:ptr(num8_t),32:ptr(num8_t),36:ptr(num8_t),40:ptr(num8_t),44:ptr(num8_t),48:ptr(struct(0:ptr(T... | BlitzBasic | 1 | matt-noonan/retypd-data | data/tail.decls | [
"MIT"
] |
`define INITS \
assign a = -1; \
assign b = -2; \
assign c = -3; \
assign d = -4; \
assign a_ext = a; \
assign b_ext = b; \
assign c_ext = c; \
assign d_ext = d;
module gate_a(
output byte a,
output byte unsigned b,
output shortint c,
output shortint unsigned d,
outp... | SystemVerilog | 3 | gudeh/yosys | tests/verilog/port_int_types.sv | [
"ISC"
] |
--TEST--
Use of parent inside a class that has / has no parent (failure case 1)
--FILE--
<?php
// Illegal: A::parent is ill-defined
class A {
public function method(parent $x) {}
}
class B extends A {
public function method(parent $x) {}
}
?>
--EXPECTF--
Fatal error: Cannot use "parent" when current class sco... | PHP | 3 | thiagooak/php-src | Zend/tests/type_declarations/variance/parent_in_class_failure1.phpt | [
"PHP-3.01"
] |
#include <QMap>
#include <QSoundEffect>
#include <QString>
#include "selfdrive/hardware/hw.h"
#include "selfdrive/ui/ui.h"
const std::tuple<AudibleAlert, QString, int> sound_list[] = {
// AudibleAlert, file name, loop count
{AudibleAlert::ENGAGE, "engage.wav", 0},
{AudibleAlert::DISENGAGE, "disengage.wav", 0},
... | C | 4 | GratefulJinx77/openpilot-1 | selfdrive/ui/soundd/sound.h | [
"MIT"
] |
// !DIAGNOSTICS: -UNUSED_PARAMETER
class Outer {
inner class Test1
inner class Test2(val x: Int)
inner class Test3(val x: Any)
inner class Test4<T>(val x: T)
inner class Test5(val x: Int) {
constructor() : this(0)
private constructor(z: String) : this(z.length)
}
class Test... | Kotlin | 3 | Mu-L/kotlin | compiler/testData/diagnostics/tests/redeclarations/shadowedExtension/extensionFunShadowedByInnerClassConstructor.fir.kt | [
"ECL-2.0",
"Apache-2.0"
] |
set(SWIFT_HOST_VARIANT_SDK WINDOWS CACHE STRING "")
set(SWIFT_HOST_VARIANT_ARCH x86_64 CACHE STRING "")
# NOTE(compnerd) disable the tools, we are trying to build just the standard
# library.
set(SWIFT_INCLUDE_TOOLS NO CACHE BOOL "")
# NOTE(compnerd) cannot build tests since the tests require the toolchain
set(SWIFT... | CMake | 3 | gandhi56/swift | cmake/caches/Runtime-Windows-x86_64.cmake | [
"Apache-2.0"
] |
DROP TYPE IF EXISTS "Role";
CREATE TYPE "Role" AS ENUM ('USER', 'ADMIN');
DROP TABLE IF EXISTS "public"."Post" CASCADE;
CREATE TABLE "public"."Post" (
"id" text NOT NULL,
"createdAt" timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" timestamp(3) NOT NULL DEFAULT '1970-01-01 00:00:00'::timestamp w... | SQL | 3 | safareli/prisma | packages/client/src/__tests__/integration/happy/insensitive-postgresql/setup.sql | [
"Apache-2.0"
] |
color("red") sphere(5); | OpenSCAD | 1 | heristhesiya/OpenJSCAD.org | packages/io/scad-deserializer/tests/transformations/colorEx2.scad | [
"MIT"
] |
\* Copyright (c) 2012-2021 Bruno Deferrari. All rights reserved. *\
\* BSD 3-Clause License: http://opensource.org/licenses/BSD-3-Clause *\
(load "src/compiler.shen")
(assert-equal
(_scm.force-boolean true)
true)
(assert-equal
(_scm.force-boolean false) false)
(assert-equal
(_scm.force-boolean [number? 1])
... | Shen | 4 | tizoc/chibi-shen | tests/compiler-tests.shen | [
"BSD-3-Clause"
] |
-- Copyright (c) 2010 The Chromium Authors. All rights reserved.
-- Use of this source code is governed by a BSD-style license that can be
-- found in the LICENSE file.
tell application "Chromium"
set var to bookmark folder "New" of bookmarks bar
-- Change the folder to whichever you want.
repeat with i in (bookmar... | AppleScript | 4 | zealoussnow/chromium | chrome/browser/ui/cocoa/applescript/examples/open_tabs_from_bookmark_folder.applescript | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
/// <reference path='fourslash.ts' />
// @Filename: /main.ts
////// leading trivia
////import { a } from "./a";
////import { b } from "./b";
////import { c } from "./c";
// @Filename: /a.ts
////export const a = null;
// @Filename: /b.ts
////export const b = null;
// @Filename: /c.ts
////export const c = null;
veri... | TypeScript | 4 | monciego/TypeScript | tests/cases/fourslash/unusedImportDeclaration_withEmptyPath5.ts | [
"Apache-2.0"
] |
(import os)
(setv repl-spy True
repl-output-fn (fn [x]
(.replace (repr x) " " "_")))
(defmacro hello-world []
`(+ 1 1))
| Hy | 4 | lafrenierejm/hy | tests/resources/hystartup.hy | [
"MIT"
] |
trait Foo {
pub type Foo;
//~^ ERROR unnecessary visibility qualifier
}
fn main() {}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/parser/trait-pub-assoc-ty.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
import { expect } from 'chai';
import { adapterToUse } from './test-utils';
import { findClosestEnabledDate } from './date-utils';
describe('findClosestEnabledDate', () => {
const day18thText = adapterToUse.format(
adapterToUse.date('2018-08-18T00:00:00.000'),
'dayOfMonth',
);
const only18th = (date: any... | TypeScript | 4 | dany-freeman/material-ui | packages/mui-lab/src/internal/pickers/date-utils.test.ts | [
"MIT"
] |
<body>
<canvas width="570" height="570" id="myCanvas"></canvas>
<script src="cube.js">
</script>
</body> | HTML | 2 | zakuro9715/v | examples/js_dom_cube/index.html | [
"MIT"
] |
@0xd30600b3651feef7;
using Cxx = import "/capnp/c++.capnp";
$Cxx.namespace("test::proto");
struct Message {
text @0 :Text;
}
| Cap'n Proto | 2 | Arthapz/xmake | tests/projects/c++/capnproto/proto/message.capnp | [
"Apache-2.0"
] |
_ = require "underscore"
React = require "react"
ReactDOM = require 'react-dom'
ReactTestUtils = require 'react-addons-test-utils'
Fields = require('../lib/fields').default
CollapsedParticipants = require('../lib/collapsed-participants').default
{Contact} = require 'nylas-exports'
describe "CollapsedParticipants", -... | CoffeeScript | 4 | cnheider/nylas-mail | packages/client-app/internal_packages/composer/spec/collapsed-participants-spec.cjsx | [
"MIT"
] |
(defmacro zzz (g)
`(lambda(s/c) (lambda() (funcall ,g s/c))))
(defmacro disj+
((cons g '()) `(zzz ,g))
((cons g gs) `(: mkr disj (zzz ,g) (disj+ ,@gs))))
(defmacro conj+
((cons g '()) `(zzz ,g))
((cons g gs) `(: mkr conj (zzz ,g) (conj+ ,@gs))))
(defmacro fresh
(e (cond
((== '() (car e))
`... | LFE | 4 | pzel/mkr | include/mkr-user.lfe | [
"MIT"
] |
package ucl
import (
"fmt"
"strconv"
"strings"
)
type parserError struct {
machine string
offset int
state int
}
func (e parserError) Error() string {
return fmt.Sprintf("error parsing %s at char %d", e.machine, e.offset)
}
%%{
machine common;
alphtype rune;
action error {
return nil, -1, fmt.Errorf("p... | Ragel in Ruby Host | 5 | kumy/rexray | vendor/github.com/cesanta/ucl/ucl.rl | [
"Apache-2.0"
] |
(defn prime? [n]
(not-any? zero? (map #(rem n %) (range 2 n))))
(range 3 33 2)
'(3 5 7 9 11 13 15 17 19 21 23 25 27 29 31)
;; :when continues through the collection even if some have the
;; condition evaluate to false, like filter
(for [x (range 3 33 2) :when (prime? x)]
x)
'(3 5 7 11 13 17 19 23 29 31)
;; :wh... | Clojure | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Clojure/for.clj | [
"MIT"
] |
package com.alibaba.json.bvt.parser.stream;
import java.util.LinkedHashMap;
import junit.framework.TestCase;
import org.junit.Assert;
import com.alibaba.fastjson.parser.DefaultJSONParser;
import com.alibaba.fastjson.parser.JSONReaderScanner;
public class JSONReaderScannerTest_type extends TestCase {
@SuppressWarn... | Java | 4 | Czarek93/fastjson | src/test/java/com/alibaba/json/bvt/parser/stream/JSONReaderScannerTest_type.java | [
"Apache-2.0"
] |
/*
Alloy model to confirm the logic behind merging IAM Statements.
This proves that merging two statements based on the following conditions:
- Effects are the same
- NotAction, NotResource, NotPrincipal are the same(*)
- Of Action, Resource, Principal sets, 2 out of 3 are the same(*)
Is sound, as the model doesn't ... | Alloy | 5 | danwiltshire/aws-cdk | packages/@aws-cdk/aws-iam/docs/policy-merging.als | [
"Apache-2.0"
] |
/// <reference path="fourslash.ts" />
// @module: es2015
// @esModuleInterop: true
// @jsx: react
// @Filename: /types.d.ts
//// declare module "react" { var React: any; export = React; export as namespace React; }
// @Filename: /a.tsx
//// import type React from "react";
//// function Component() {}
//// (<Component... | TypeScript | 4 | monciego/TypeScript | tests/cases/fourslash/importNameCodeFix_importType6.ts | [
"Apache-2.0"
] |
This is ,,subscripted,, text. | Creole | 4 | jquorning/ada-wiki | regtests/files/wiki/subscripted.creole | [
"Apache-2.0"
] |
#*****************************************************************************
# *
# Make file for VMS *
# Author : J.Jansen (joukj@hrem.nano.tudelft.nl) *
# Da... | Module Management System | 3 | madanagopaltcomcast/pxCore | examples/pxScene2d/external/WinSparkle/3rdparty/wxWidgets/samples/console/descrip.mms | [
"Apache-2.0"
] |
(* ****** ****** *)
(*
** HX-2018-01:
** Hangman:
** a word-guessing game
*)
(* ****** ****** *)
//
abst@ype state
abst@ype input
//
(* ****** ****** *)
datatype
status =
| STATUSsolved of ()
| STATUStimeup of ()
| STATUSasking of ()
(* ****** ****** *)
//
extern
fun
state_check
(&state): status
extern
fun
state_upd... | ATS | 5 | ats-lang/ATS-CodeBook | RECIPE/Hangman/Hangman.dats | [
"MIT"
] |
a.svelte-xyz b c span.svelte-xyz{color:red;font-size:2em;font-family:'Comic Sans MS'}.foo.svelte-xyz.svelte-xyz{color:green} | CSS | 0 | Theo-Steiner/svelte | test/css/samples/preserve-specificity/expected.css | [
"MIT"
] |
import { stringifyRequest } from '../stringify-request'
export type ClientPagesLoaderOptions = {
absolutePagePath: string
page: string
isServerComponent?: boolean
}
// this parameter: https://www.typescriptlang.org/docs/handbook/functions.html#this-parameters
function nextClientPagesLoader(this: any) {
const ... | TypeScript | 4 | nazarepiedady/next.js | packages/next/build/webpack/loaders/next-client-pages-loader.ts | [
"MIT"
] |
#!/usr/bin/env bash
##
# @license Copyright 2021 The Lighthouse 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 re... | Shell | 3 | zhangpeidong-peyton/lighthouse | .github/scripts/generate-devtools-hash.sh | [
"Apache-2.0"
] |
HEADERS += \
$$PWD/stream.h
SOURCES += \
$$PWD/stream.cpp
| QMake | 2 | jiadxin/QtScrcpy | QtScrcpy/device/stream/stream.pri | [
"Apache-2.0"
] |
#! /bin/sh /usr/share/dpatch/dpatch-run
## 001cassandra_yaml_dirs.dpatch by Tyler Hobbs <tyler@datastax.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.
@DPATCH@
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude... | Darcs Patch | 2 | mghosh4/cassandra | debian/patches/001cassandra_yaml_dirs.dpatch | [
"Apache-2.0"
] |
/*******************************************************************************
* This file is owned and controlled by Xilinx and must be used solely *
* for design, simulation, implementation and creation of design files *
* limited to Xilinx devices or technologies. Use with non-Xilinx ... | Verilog | 4 | jakeszler/chomp-verilog | ipcore_dir/mult.veo | [
"MIT"
] |
VERS_1.0 {
global:
*AcquireFlexDelegate*;
local:
*;
}; | Linker Script | 0 | EricRemmerswaal/tensorflow | tensorflow/lite/delegates/flex/version_script.lds | [
"Apache-2.0"
] |
package TbTL;
import TL::*;
interface Lamp;
method Bool changed;
method Action show_offs;
method Action show_ons;
method Action reset;
endinterface
module mkLamp#(String name, Bool lamp)(Lamp);
Reg#(Bool) prev <- mkReg(False);
method changed = (prev != lamp);
method Action show_offs;
if ... | Bluespec | 5 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Bluespec/TbTL.bsv | [
"MIT"
] |
/*
[The "BSD licence"]
Copyright (c) 2013 Sam Harwell
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of con... | ANTLR | 4 | yingkitw/Project_CodeNet | tools/spt-generator/src/com/ibm/ai4code/parser/c_multi/C11.g4 | [
"Apache-2.0"
] |
pragma solidity ^0.4.0;
contract Misc {
constructor() public {}
function double(uint a) public pure returns(uint) {
return 2*a;
}
}
| Solidity | 4 | MatrixAINetwork/aimanj | codegen/src/test/resources/solidity/misc/Misc.sol | [
"Apache-2.0"
] |
<script>
/*! jQuery v3.1.0 | (c) jQuery Foundation | jquery.org/license */
!function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof ... | HTML+Django | 1 | MalcolmScoffable/openapi-generator | modules/openapi-generator/src/main/resources/htmlDocs2/js_jquery.mustache | [
"Apache-2.0"
] |
(*
Module: Nsswitch
Parses /etc/nsswitch.conf
Author: Raphael Pinson <raphink@gmail.com>
About: Reference
This lens tries to keep as close as possible to `man nsswitch.conf` where possible.
About: Licence
This file is licensed under the LGPL v2+, like the rest of Augeas.
About: Lens Usage
About: Configuratio... | Augeas | 5 | zwass/launcher | pkg/augeas/assets/lenses/nsswitch.aug | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.