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 |
|---|---|---|---|---|---|
% LilyBin
\score{
{
c'
}
\layout{}
\midi{}
}
| LilyPond | 2 | RazerMoon/LilyBin | default.ly | [
"MIT"
] |
/*
*
* Copyright 2015 gRPC 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 or agree... | C | 4 | samotarnik/grpc | test/cpp/qps/stats.h | [
"Apache-2.0"
] |
// pthreadpool header from https://github.com/Maratyszcza/pthreadpool
// for NNPACK
#ifndef CAFFE2_UTILS_PTHREADPOOL_H_
#define CAFFE2_UTILS_PTHREADPOOL_H_
#include "ThreadPoolCommon.h"
#include <stddef.h> // for size_t
#include <stdint.h> // for uint32_t
#if defined(USE_PTHREADPOOL) && !(defined(__XROS__))
// This ... | C | 4 | xiaohanhuang/pytorch | caffe2/utils/threadpool/pthreadpool.h | [
"Intel"
] |
<GameFile>
<PropertyGroup Name="LobbyView" Type="Node" ID="18d60a97-de13-413d-af97-214edf7e8039" Version="3.10.0.0" />
<Content ctype="GameProjectContent">
<Content>
<Animation Duration="0" Speed="1.0000" />
<ObjectData Name="Node" Tag="378" ctype="GameNodeObjectData">
<Size X="0.0000" Y="0.... | Csound | 3 | darkdukey/cocos2dx-lite | raw/cocosstudio/views/LobbyView.csd | [
"MIT"
] |
// Cannot use now option with tableFind, which is necessary to implementa min.
// Instead use -3y as start.
// option now = () => 2020-02-22T18:00:00Z
@tableflux.h2o_temperature{location, state,
bottom_degrees, surface_degrees, time > -3y}
|> select(fn: min(bottom_degrees))
| FLUX | 3 | RohanSreerama5/flux | colm/tableflux/query18.flux | [
"MIT"
] |
package com.baeldung.insertnull;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
public class DBConfig {
private static Connection INSTANCE;
public static Connection getConnection() throws SQLException {
if (INSTANCE == null) {
... | Java | 3 | DBatOWL/tutorials | persistence-modules/core-java-persistence-2/src/main/java/com/baeldung/insertnull/DBConfig.java | [
"MIT"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_requestRadios
Author: NKey, Garth de Wet (L-H)
Checks whether the player needs to have radios converted to "instanced" versions,
handles waiting for response from server with radio classnames and applying them to the player.
Arguments:
0: Replace al... | SQF | 4 | MrDj200/task-force-arma-3-radio | addons/core/functions/fnc_requestRadios.sqf | [
"RSA-MD"
] |
export function add(a: i32, b: i32): i32 {
return a + b;
}
| ActionScript | 2 | romdotdog/assemblyscript | tests/extension/assembly/other.as | [
"Apache-2.0"
] |
from ray.includes.function_descriptor cimport (
CFunctionDescriptor,
CFunctionDescriptorBuilder,
CPythonFunctionDescriptor,
CJavaFunctionDescriptor,
EmptyFunctionDescriptorType,
JavaFunctionDescriptorType,
PythonFunctionDescriptorType,
)
import hashlib
import cython
import inspect
import uu... | Cython | 4 | linyiyue/ray | python/ray/includes/function_descriptor.pxi | [
"Apache-2.0"
] |
---
title: This page is foos
tags:
- foos
---
Foos. | Liquid | 0 | binyamin/eleventy | test/stubs/issue-115/template-foos.liquid | [
"MIT"
] |
/**************************************************************
* This is just a test of Blynk library build in Arduino IDE
*
* You should NOT flash this program
* to your hardware or try to run it.
*
**************************************************************/
#if defined(ARDUINO_AVR_GEMMA) \... | Arduino | 4 | kayatmin/blynk-library | tests/BlynkBuildTest/BlynkBuildTest.ino | [
"MIT"
] |
; UserVars.nsi
;
; This script shows you how to declare and user variables.
;--------------------------------
Name "User Variables Text"
OutFile "UserVars.exe"
InstallDir "$PROGRAMFILES\User Variables Test"
RequestExecutionLevel admin
;--------------------------------
;Pages
Page directory
Pag... | NSIS | 4 | vbillet/Torque3D | Engine/bin/tools/nsis/app/Examples/UserVars.nsi | [
"MIT"
] |
do ("Hello") type
---
do type ("Hello");
=============================================
section {
div id='foo'
}
---
section >
#foo;
=============================================
header {
div .test.baz.~[name];
span > 'foo'
}
---
header {
.test.baz.~[name];
span >
'foo'
}
==============================... | Mask | 2 | atmajs/MaskJS | test/tmpl/stringify/misc.mask | [
"MIT"
] |
func &foo ( var %i i32 ) void {
var %p ptr
dassign %p ( malloc ptr ( constval i32 8 ))
dassign %p ( alloca ptr ( constval i32 16 ))
dassign %p ( gcmalloc ref i32 )
dassign %p ( gcmallocjarray ref <[] i32> ( constval i32 5 ))
free ( dread ref %p)
}
# EXEC: %irbuild Main.mpl
# EXEC: %irbuild Main.irb... | Maple | 2 | harmonyos-mirror/OpenArkCompiler-test | test/testsuite/irbuild_test/I0054-mapleall-irbuild-edge-malloc/Main.mpl | [
"MulanPSL-1.0"
] |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>child.html</title>
</head>
<body>
<h1>child</h1>
</body>
</html> | HTML | 2 | namaljayathunga/nw.js | test/remoting/issue3780-jailed/child.html | [
"MIT"
] |
fileFormatVersion: 2
guid: 9f890146b0795ba41af8e4f78c481496
folderAsset: yes
timeCreated: 1455706231
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| Unity3D Asset | 0 | jiahaodev/xLua | Assets/XLua/Tutorial.meta | [
"BSD-3-Clause"
] |
This is for testing an ssi include. {{ test }}
| HTML | 0 | ni-ning/django | tests/template_tests/templates/ssi_include.html | [
"CNRI-Python-GPL-Compatible",
"BSD-3-Clause"
] |
--TEST--
DateTime::diff() -- fall type3 type3
--CREDITS--
Daniel Convissor <danielc@php.net>
--XFAIL--
Various bugs exist
--FILE--
<?php
require 'examine_diff.inc';
define('PHPT_DATETIME_SHOW', PHPT_DATETIME_SHOW_DIFF);
require 'DateTime_data-fall-type3-type3.inc';
?>
--EXPECT--
test_time_fall_type3_prev_type3_prev: ... | PHP | 3 | thiagooak/php-src | ext/date/tests/DateTime_diff-fall-type3-type3.phpt | [
"PHP-3.01"
] |
FOR I=1:1:1 QUIT:NoLoop DO YesLoop
QUIT Returnvalue
| M | 0 | LaudateCorpus1/RosettaCodeData | Task/Flow-control-structures/MUMPS/flow-control-structures-7.mumps | [
"Info-ZIP"
] |
{-#LANGUAGE ForeignFunctionInterface, ScopedTypeVariables, UnicodeSyntax, ViewPatterns#-}
#include "cvWrapLEO.h"
module CV.Morphology (StructuringElement
,structuringElement
,customSE
,basicSE,bigSE
,geodesic
,openOp,closeOp
... | C2hs Haskell | 5 | maaleske/CV | CV/Morphology.chs | [
"BSD-3-Clause"
] |
class Foo { Void f() { switch (3) { default: return; default: return; } } } | Fantom | 0 | fanx-dev/fanx | compiler/testCompilerx/res/parser/testBadStmts.fan | [
"AFL-3.0"
] |
@media ( max-width:600px ) {}
@media ( min-width:700px) and ( orientation: landscape){}
@media (min-width: 700px), handheld and (orientation: landscape) {}
@media not all and ( monochrome ) {}
@media ( not all ) and ( monochrome ) {}
@media ( not ( sc... | CSS | 2 | fuelingtheweb/prettier | tests/stylefmt/at-media/at-media.css | [
"MIT"
] |
GalaxyID,x,y,e1,e2
Galaxy1,802.16,4038.35,0.011816,0.251732
Galaxy2,2274.28,3322.19,0.073310,-0.164279
Galaxy3,1719.04,1631.63,0.081222,0.058514
Galaxy4,270.84,751.30,-0.476619,0.525915
Galaxy5,2787.61,713.03,0.134413,0.213420
Galaxy6,1089.16,2010.42,-0.023602,0.281272
Galaxy7,2885.65,3392.29,0.042675,-0.064270
Galaxy8... | CSV | 2 | jColeChanged/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers | Chapter5_LossFunctions/data/Train_Skies/Train_Skies/Training_Sky253.csv | [
"MIT"
] |
NB. Test Pool Layer.
coclass 'TestPoolLayer'
coinsert 'TestBase'
create=: 3 : 0
''
)
test1=: 3 : 0
p1 =: 2 conew 'PoolLayer'
a=: 3 3 8 8 $ 1 NB. batchsize x depth x width x height
out=: forward__p1 a
3 3 4 4&= assertTrue ($out)
3 3 8 8&= assertTrue ($backward__p1 out)
destroy__p1 ''
)
test2=: 3 : 0
p1 =: 5 conew... | J | 3 | jonghough/jlearn | test/testpoollayer.ijs | [
"MIT"
] |
import React from 'react'
import {shell} from 'electron'
import {RetinaImg} from 'nylas-component-kit'
import SalesforceEnv from '../salesforce-env'
export default function OpenInSalesforceBtn({objectId, size = "small"}) {
const openLink = (event) => {
event.stopPropagation()
event.preventDefault()
shell... | JSX | 4 | cnheider/nylas-mail | packages/client-app/internal_packages/nylas-private-salesforce/lib/shared-components/open-in-salesforce-btn.jsx | [
"MIT"
] |
# Check that we recognize the console pool as built-in.
#
# RUN: %{llbuild} ninja load-manifest %s > %t
# RUN: %{FileCheck} < %t %s
rule TRUE
command = true
pool = console
# CHECK: build "output": TRUE
# CHECK: command = "true"
# CHECK: pool = console
build output: TRUE
| Ninja | 4 | uraimo/swift-llbuild | tests/Ninja/Loader/console-pool.ninja | [
"Apache-2.0"
] |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | 4 | akhalymon-cv/spark | common/network-shuffle/src/main/java/org/apache/spark/network/shuffle/protocol/AbstractFetchShuffleBlocks.java | [
"Apache-2.0"
] |
% This MATLAB file generates figure 1 in the paper by
% Izhikevich E.M. (2004)
% Which Model to Use For Cortical Spiking Neurons?
% use MATLAB R13 or later. November 2003. San Diego, CA
%%%%%%%%%%%%%%% (A) tonic spiking %%%%%%%%%%%%%%%%%%%%%%
subplot(5,4,1)
a=0.02; b=0.2; c=-65; d=6;
V=-70; ... | Matlab | 5 | nmsutton/MemoryModule | python_version/examples/izhikevich.matlab | [
"MIT"
] |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {browser, by, element} from 'protractor';
import {verifyNoBrowserErrors} from '../../../../../test-utils';
fu... | TypeScript | 4 | raghavendramohan/angular | packages/examples/upgrade/static/ts/full/e2e_test/static_full_spec.ts | [
"MIT"
] |
SUMMARY = "spawn-fcgi is used to spawn FastCGI applications"
HOMEPAGE = "http://redmine.lighttpd.net/projects/spawn-fcgi"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://COPYING;md5=e4dac5c6ab169aa212feb5028853a579"
SRC_URI = "http://download.lighttpd.net/spawn-fcgi/releases-1.6.x/spawn-fcgi-${PV}.tar.gz \
... | BitBake | 3 | nunojsa/meta-openembedded | meta-webserver/recipes-support/spawn-fcgi/spawn-fcgi_1.6.4.bb | [
"MIT"
] |
# frozen_string_literal: true
module RuboCop
module RSpec
module Language
# Helper methods to detect RSpec DSL used with send and block
module NodePattern
def send_pattern(string)
"(send #rspec? #{string} ...)"
end
def block_pattern(string)
"(block #{send_... | Ruby | 4 | ylht/brew | Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rspec-2.4.0/lib/rubocop/rspec/language/node_pattern.rb | [
"BSD-2-Clause"
] |
#version 330
// Input vertex attributes (from vertex shader)
in vec2 fragTexCoord;
in vec4 fragColor;
// Input uniform values
uniform sampler2D texture0;
uniform vec4 colDiffuse;
// Output fragment color
out vec4 finalColor;
// NOTE: Add here your custom variables
uniform vec2 resolution = vec2(800, 450);
void mai... | F# | 4 | chrisws/raylib | examples/shaders/resources/shaders/glsl330/sobel.fs | [
"Zlib"
] |
package com.baeldung.guava.tutorial;
import com.google.common.collect.Comparators;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
public class ComparatorsExamples {
public static void main(String[] args) {
List<Integer> integers = Arrays.asList(1, 2, 3, 4, 4, 6, 7, 8, 9, 1... | Java | 4 | zeesh49/tutorials | guava-modules/guava-21/src/main/java/com/baeldung/guava/tutorial/ComparatorsExamples.java | [
"MIT"
] |
No more data available, the cursor timed out. Re-execute the query to retrieve more results.
<!-- Keep without space/new line before so the comma stick to the value of the object-->
| Handlebars | 0 | zadcha/rethinkdb | admin/static/handlebars/dataexplorer-cursor_timed_out.hbs | [
"Apache-2.0"
] |
CREATE TABLE EMPLOYEE(
ID INT NOT NULL PRIMARY KEY,
FIRST_NAME VARCHAR(255),
LAST_NAME VARCHAR(255),
SALARY DOUBLE,
);
CREATE TABLE EMAIL(
ID INT NOT NULL PRIMARY KEY,
ID_EMPLOYEE VARCHAR(255),
ADDRESS VARCHAR(255)
);
INSERT INTO EMPLOYEE VALUES (1, 'John', 'Doe', 10000.10);
INSERT INTO E... | SQL | 3 | zeesh49/tutorials | spring-all/src/main/resources/employee-schema.sql | [
"MIT"
] |
$red = #ff0101
| Stylus | 0 | dev-itsheng/wepy | packages/compiler-stylus/test/fixtures/stylus/vars/colors.styl | [
"BSD-3-Clause"
] |
infixl 3 ($);
infixr 4 (#);
infix 4 (.);
prefix 10 (-);
postfix 10 (!);
let a = y in a $ a $ (-a)!;
let b = y in a # a # a $ b;
let c = y in a # a # a # b;
| Standard ML | 3 | Average-user/write-you-a-haskell | chapter9/operators/test.fun | [
"MIT"
] |
/* 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++ | 3 | EricRemmerswaal/tensorflow | tensorflow/cc/experimental/libexport/save_test.cc | [
"Apache-2.0"
] |
import { imageDemoTest } from '../../../tests/shared/imageTest';
describe('Affix image', () => {
imageDemoTest('affix');
});
| TypeScript | 4 | chnliquan/ant-design | components/affix/__tests__/image.test.ts | [
"MIT"
] |
DESCRIPTION = "Add ANSI colors and decorations to your strings"
LICENSE = "ISC"
LIC_FILES_CHKSUM = "file://LICENSE;md5=aef5566ac4fede9815eccf124c281317"
SRC_URI[sha256sum] = "99f94f5e3348a0bcd43c82e5fc4414013ccc19d70bd939ad71e0133ce9c372e0"
PYPI_PACKAGE_EXT = "zip"
inherit pypi setuptools3 ptest
SRC_URI += " \
fi... | BitBake | 2 | shipinglinux/meta-openembedded | meta-python/recipes-devtools/python/python3-ansicolors_1.1.8.bb | [
"MIT"
] |
/*--------------------------------------------------*/
/* SAS Programming for R Users - code for exercises */
/* Copyright 2016 SAS Institute Inc. */
/*--------------------------------------------------*/
/*SP4R04s03*/
/*Part A*/
data sp4r.hist;
call streaminit(123);
do i=1 to 1000;
rchisq ... | SAS | 4 | snowdj/sas-prog-for-r-users | code/SP4R04s03.sas | [
"CC-BY-4.0"
] |
Mode m;
| ChucK | 0 | ccdarabundit/chugins | ExpEnv/temp.ck | [
"MIT"
] |
def cube_root(c, q):
F = FiniteField(q)
R.<x> = PolynomialRing(F,'x')
while 1:
a = F.random_element()
b = F.random_element()
fx = x**3 - a*x**2 + b*x - c
fc = list(factor(fx))
if len(fc) <= 1:
root = pow(x, (q**2+q+1)//3, fx)
root %= x
... | Sage | 4 | bearbear1100/Cryptools | cytro/sage/cube_root.sage | [
"MIT"
] |
import "../small?1";
import "../small?2";
import "../small?3";
import "../small?4";
import "../small?5";
import "../small?6";
import "../small?7";
import "../small?8";
import "../small?9";
| JavaScript | 0 | 1shenxi/webpack | test/statsCases/split-chunks-max-size/async/a.js | [
"MIT"
] |
#tag Module
Protected Module Colors
#tag Constant, Name = AliceBlue, Type = Color, Dynamic = False, Default = \"&cF0F8FF", Scope = Public
#tag EndConstant
#tag Constant, Name = AntiqueWhite, Type = Color, Dynamic = False, Default = \"&cFAEBD7", Scope = Public
#tag EndConstant
#tag Constant, Name = Aqua, ... | REALbasic | 3 | carlbennett/BNRBot | src/Modules/Colors/Colors.rbbas | [
"MIT"
] |
# Copyright (C) 2001-2006, Parrot Foundation.
# $Id$
=head1 NAME
examples/benchmarks/stress2.pasm - Brief
=head1 SYNOPSIS
% time ./parrot examples/benchmarks/stress2.pasm
=head1 DESCRIPTION
Creates 200 arrays of 10000 elements each.
=cut
set I3, 20
new P10, 'ResizableIntegerArray'
ol:
set I0, 10... | Parrot Assembly | 4 | allisonrandal/pcc_testing | examples/benchmarks/stress2.pasm | [
"Artistic-2.0"
] |
MEMORY
{
/* This SoftDevice requires 96K flash and 8K RAM according to the release
* notes of version 8.0.0 */
FLASH_TEXT (rw) : ORIGIN = 0x00000000 + 96K, LENGTH = 256K - 96K
RAM (xrw) : ORIGIN = 0x20000000 + 8K, LENGTH = 16K - 8K
}
_stack_size = 2K;
INCLUDE "targets/arm.ld"
| Linker Script | 3 | ybkimm/tinygo | targets/nrf51-s110v8.ld | [
"Apache-2.0"
] |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
module rec System.Formats.Cbor.Tests.DataModel.CborDocumentSerializer
open System
open System.Formats.Cbor
open System.Formats.Cbor.Tests.DataModel
let createWriter (context : Cbo... | F# | 5 | pyracanda/runtime | src/libraries/System.Formats.Cbor/tests/CborDocument/CborDocumentSerializer.fs | [
"MIT"
] |
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# @ECLASS: npm.eclass
# @MAINTAINER:
# Jesus Rivero <neurogeek@gentoo.org>
# @BLURB: Eclass for NodeJS packages available through the npm registry.
# @DESCRIPTION:
# This eclass contains various func... | Gentoo Eclass | 4 | gridgentoo/gentoo-tensorflow-overlay | eclass/npm.eclass | [
"BSD-2-Clause"
] |
/* 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/compiler/mlir/lite/python/jax_to_tfl_flatbuffer.h | [
"Apache-2.0"
] |
DROP TABLE "public"."table47";
| SQL | 0 | eazyfin/graphql-engine | cli/commands/testdata/migrate-squash-test/migrations/1588172670644_create_table_public_table47/down.sql | [
"Apache-2.0",
"MIT"
] |
{% if doc.renamedDuplicates %}
<section class="renamed-duplicates">
Aliased as
{% for d in doc.renamedDuplicates %}
<i>{$ d.name $}</i>{% if not loop.last %}, {% endif %}
{% endfor %}
</section>
{% endif %}
| HTML | 3 | KevLeong/rxjs | docs_app/tools/transforms/templates/api/includes/renamed-exports.html | [
"Apache-2.0"
] |
--TEST--
DateTime::add() -- fall type2 type2
--CREDITS--
Daniel Convissor <danielc@php.net>
--FILE--
<?php
require 'examine_diff.inc';
define('PHPT_DATETIME_SHOW', PHPT_DATETIME_SHOW_ADD);
require 'DateTime_data-fall-type2-type2.inc';
?>
--EXPECT--
test_time_fall_type2_prev_type2_prev: ADD: 2010-10-04 02:18:48 EDT + ... | PHP | 3 | guomoumou123/php5.5.10 | ext/date/tests/DateTime_add-fall-type2-type2.phpt | [
"PHP-3.01"
] |
msgid ""
msgstr ""
"Project-Id-Version: view_tests\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2007-09-15 16:45+0200\n"
"PO-Revision-Date: 2010-05-12 12:57-0300\n"
"Last-Translator: Unknown\n"
"Language-Team: Russian <ru@li.org>\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"... | Gettext Catalog | 3 | jpmallarino/django | tests/view_tests/locale/ru/LC_MESSAGES/djangojs.po | [
"BSD-3-Clause",
"0BSD"
] |
ruleset io.picolabs.operators {
meta {
shares results, returnMapAfterKlog, returnArrayAfterKlog
}
global {
nothing = null
some_string = "foo"
results = {
"str_as_num": "100.25".as("Number"),
"num_as_str": 1.05.as("String"),
"regex_as_str": ... | KRL | 4 | CambodianCoder/pico-engine | test-rulesets/operators.krl | [
"MIT"
] |
vec3 customSurfaceShading(const MaterialInputs materialInputs,
const PixelParams pixel, const Light light, float visibility) {
LightData lightData;
lightData.colorIntensity = light.colorIntensity;
lightData.l = light.l;
lightData.NdotL = light.NoL;
lightData.worldPosition = light.worldPosit... | F# | 4 | N500/filament | shaders/src/shading_lit_custom.fs | [
"Apache-2.0"
] |
// Copyright 2019 The MediaPipe 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 or a... | Objective-C++ | 3 | virdio/mediapipe | mediapipe/examples/ios/common/AppDelegate.mm | [
"Apache-2.0"
] |
tests/cases/compiler/monorepo/pkg3/src/keys.ts(3,14): error TS2742: The inferred type of 'ADMIN' cannot be named without a reference to '../../pkg2/node_modules/@raymondfeng/pkg1/dist'. This is likely not portable. A type annotation is necessary.
==== tests/cases/compiler/monorepo/pkg3/tsconfig.json (0 errors) ===... | Text | 3 | nilamjadhav/TypeScript | tests/baselines/reference/declarationEmitReexportedSymlinkReference3.errors.txt | [
"Apache-2.0"
] |
\documentclass{article}
\usepackage{agda}
\begin{document}
\begin{code}
variable
A : Set
f : A → A
f x = x
\end{code}
\end{document}
| Literate Agda | 4 | cruhland/agda | test/LaTeXAndHTML/succeed/Issue3112.lagda | [
"MIT"
] |
// Copyright 2021 The Google Research 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... | C | 5 | deepneuralmachine/google-research | automl_zero/task.h | [
"Apache-2.0"
] |
import System
import Boo.Lang.Interpreter from Boo.Lang.Interpreter
class ObjectInterpreter(AbstractInterpreter):
_context as object
[getter(Value)]
_value as object
def constructor(context):
_context = context
self.RememberLastValue = true
override d... | Boo | 3 | btashton/pygments | tests/examplefiles/test.boo | [
"BSD-2-Clause"
] |
Private
'#TEXT_FILES+="*.txt|*.xml|*.json|*.glsl"
#TEXT_FILES+="*.glsl"
Import mojo.app
Import opengl.gles20
Import brl.filepath
Import glslparser
Import math3d
Import glutil
Import "data/mojo2_font.png"
Import "data/mojo2_program.glsl"
Import "data/mojo2_fastshader.glsl"
Import "data/mojo2_bumpshader.glsl"
Import ... | Monkey | 5 | blitz-research/monkey | modules/mojo2/graphics.monkey | [
"Zlib"
] |
#!perl
use strict;
use warnings;
use Text::Template;
# Minimum Test::More version; 0.94+ is required for `done_testing`
BEGIN {
unless (eval { require Test::More; "$Test::More::VERSION" >= 0.94; }) {
Test::More::plan(skip_all => '[ Test::More v0.94+ ] is required for testing');
}
Test::More->impo... | Perl | 5 | pmesnier/openssl | external/perl/Text-Template-1.56/t/warnings.t | [
"Apache-2.0"
] |
{%- include 'partials/inputs.volt' -%}
{{ flashSession.output() }}
<div class="row">
<div class="col-sm-12">
<div class="card card-secondary">
<div class="card-header">
<h3 class="card-title">Generate Controller</h3>
</div>
<div class="card-body">
... | Volt | 4 | PSD-Company/phalcon-devtools-docker | src/Web/Tools/Views/controllers/generate.volt | [
"BSD-3-Clause"
] |
./gradlew --quiet :shark-cli:installDist
./shark-cli/build/install/shark-cli/bin/shark-cli "$@" | Shell | 2 | moonfish11/leakcanary | shark-cli.sh | [
"Apache-2.0"
] |
a = -> 1
const b = --> 2
var c = ~> 3
d = ~~>
e = (a) -> (b) ~> (c) --> (d, e) ~~> 5
dashes-identifiers = ->
a - a
b -- c
1-1 1- -1
a- a
a -a
//abc #eaze #@ //
//
a #baze
//
publi
if it is \abc and ($-y = !(a,) ->) ~= map //a#//
then match that | _ | otherwise => implements $("#abc #@a")
switch |a=>b
| a t... | LiveScript | 2 | ka7/bat | tests/syntax-tests/source/LiveScript/livescript-demo.ls | [
"Apache-2.0",
"MIT"
] |
NF == 2 {
if($2 !~ / or / || $2 ~ /\(or/)
print $0
else {
n = split($2, a, / or /)
for(i = 1; i <= n; i++) {
printf "%s\t%s\n", $1, a[i]
}
}
}
NF != 2 {
print $0
}
| Awk | 3 | newluhux/plan9port | src/cmd/dict/t.awk | [
"MIT"
] |
(import
[bottle [view :as render-template]]
[config [*page-route-base*]])
(with-decorator (render-template "inline-message")
(defn inline-message [level message]
; render a little error message
{"level" level
"message" message}))
(with-decorator (render-templ... | Hy | 4 | CyberFlameGO/sushy | sushy/messages.hy | [
"MIT"
] |
/*******************************************************************************
* Copyright (c) 2008 SpringSource and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is ava... | AspectJ | 4 | dragos/scala-ide | org.scala-ide.sdt.aspects/src/scala/tools/eclipse/contribution/weaving/jdt/imagedescriptor/ImageDescriptorSelectorAspect.aj | [
"BSD-3-Clause"
] |
;;;; -*- Mode: Lisp; Syntax: Common-Lisp -*-
;;;; Code from Paradigms of AI Programming
;;;; Copyright (c) 1991 Peter Norvig
;;;; File edge-tab.lisp: Compile this to save the edge table.
(setf *edge-table* '#.*edge-table*)
| Common Lisp | 2 | sethaldini/paip-lisp | lisp/edge-tab.lisp | [
"MIT"
] |
call json_generate_reset;
call json_generate_begin_object;
set req.http.value = "timestamp";
call json_generate_string;
set req.http.value = strftime("%25F %25T", time.start);
call json_generate_string;
set req.http.value = "time_elapsed";
call json_generate_string;
set req.http.value = time.elapsed.msec;
call json_g... | VCL | 3 | tkaitchuck/kirby | previously/00_fastly_to_s3/json_request_logs.vcl | [
"MIT"
] |
:- object(edcg_collect,
implements(expanding)).
:- public([
pred_info/3, acc_info/7, acc_info/5, pass_info/2, pass_info/1
]).
:- dynamic([
pred_info/3, acc_info/7, acc_info/5, pass_info/2, pass_info/1, position/1
]).
cleanup :-
retractall(pred_info(_,_,_)),
retractall(acc_info(_,_,_,_,_,_,_)),
retrac... | Logtalk | 3 | PaulBrownMagic/logtalk3 | library/hook_flows/edcg_collect.lgt | [
"Apache-2.0"
] |
#![allow(dead_code)]
// Test that we report an error for unused type parameters in types and traits,
// and that we offer a helpful suggestion.
struct SomeStruct<A> { x: u32 }
//~^ ERROR parameter `A` is never used
enum SomeEnum<A> { Nothing }
//~^ ERROR parameter `A` is never used
// Here T might *appear* used, bu... | Rust | 4 | Eric-Arellano/rust | src/test/ui/variance/variance-unused-type-param.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "https://www.springframework.org/dtd/spring-beans-2.0.dtd">
<beans>
<bean class="org.springframework.scripting.support.ScriptFactoryPostProcessor"/>
<bean id="messenger" class="org.springframework.scripting.groovy.GroovyScri... | XML | 3 | nicchagil/spring-framework | spring-context/src/test/resources/org/springframework/scripting/groovy/lwspBadGroovyContext.xml | [
"Apache-2.0"
] |
INSERT INTO `double` VALUES
(-700,9.8596765437597708567e-305),
(-665,1.5637579633862188833e-289),
(-630,2.4801411660927964175e-274),
(-595,3.93353725305949385e-259),
(-560,6.2386429985283768477e-244),
(-525,9.8945717198470043018e-229),
(-490,1.5692923852557387023e-213),
(-455,2.488918833628632497e-198),
(-420,3.9474587... | SQL | 2 | imtbkcat/tidb-lightning | tests/various_types/data/vt.double.sql | [
"Apache-2.0"
] |
###########################################################################
## ##
## Language Technologies Institute ##
## Carnegie Mellon University ##
## ... | Lex | 2 | rathann/flite | tools/Makefile.lex | [
"Apache-2.0"
] |
//This file is part of "GZE - GroundZero Engine"
//The permisive licence allow to use GZE for free or commercial project (Apache License, Version 2.0).
//For conditions of distribution and use, see copyright notice in Licence.txt, this license must be included with any distribution of the code.
package {
import GZ.... | Redcode | 4 | VLiance/GZE | src/Lib_GZ/Gfx/Shape.cw | [
"Apache-2.0"
] |
unit aiQuaternion;
interface
type TaiQuaternion = packed record
w, x, y, z: single;
end;
type PaiQuaternion = ^TaiQuaternion;
implementation
end.
| Pascal | 4 | sercand/assimp | port/AssimpDelphi/aiQuaternion.pas | [
"BSD-3-Clause"
] |
#%RAML 1.0
title: Booking Service
version: v1
baseUri: /notification
types:
Cinema:
properties:
name: string
room: string
seats: string
Movie:
properties:
title: string
format: string
schedule: datetime
User:
properties:
name: string
email: string
Pa... | RAML | 4 | Soundatnj/microservicesdockermongo | raml-spec/notification-service/api.raml | [
"MIT",
"Unlicense"
] |
This is a faked .dm file for download testing purpose only.
| DM | 0 | zealoussnow/chromium | chrome/test/data/android/download/[large]wallpaper.dm | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
Red [
Title: "Red/System checksum function test script"
Author: "Gregg Irwin"
File: %checksum-test.red
Version: "0.0.2"
Tabs: 4
Rights: "Copyright (C) 2016 Gregg Irwin. All rights reserved."
License: "BSD-3 - https://github.com/red/red/blob/origin/BSD-3-License.txt"
Notes: {
Online calculators used f... | Red | 5 | GalenIvanov/red | tests/source/units/checksum-test.red | [
"BSL-1.0",
"BSD-3-Clause"
] |
.q-btn-toggle
position: relative
| Sass | 0 | ygyg70/quasar | ui/src/components/btn-toggle/QBtnToggle.sass | [
"MIT"
] |
/*
Copyright (c) 2021 by Contributors
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, so... | Scala | 4 | GinkoBalboa/xgboost | jvm-packages/xgboost4j/src/main/scala/ml/dmlc/xgboost4j/scala/DeviceQuantileDMatrix.scala | [
"Apache-2.0"
] |
$ORIGIN example.net.
@ IN SOA hostmaster.example.net. ns.example.net. (
2020011301
1H ; refresh
8H ; retry
4W ; expire
1H ; minimum ttl
) ;
@ IN NS ns.example.net.
@ IN MX 10 mail.example.net.
ns1 IN A 127.0.0.1
mail IN A 172.0.0.1
| DNS Zone | 3 | gearnode/nsd | tpkg/socket_partitioning.tdir/socket_partitioning.zone | [
"BSD-3-Clause"
] |
extends KinematicBody
export(bool) var _gravity_on_floor = true
export(bool) var _stop_on_slopes = false
export(bool) var _use_snap = false
var _gravity = 20.0
var _velocity = Vector3.ZERO
func _physics_process(delta):
var snap = Vector3.DOWN * 0.2
if is_on_floor() and _gravity_on_floor:
_velocity += Vector3.D... | GDScript | 3 | jonbonazza/godot-demo-projects | 3d/physics_tests/utils/kinematicbody_physics.gd | [
"MIT"
] |
from django.contrib.admindocs import views
from django.urls import path, re_path
urlpatterns = [
path(
'',
views.BaseAdminDocsView.as_view(template_name='admin_doc/index.html'),
name='django-admindocs-docroot',
),
path(
'bookmarklets/',
views.BookmarkletsView.as_view... | Python | 3 | Lucas11200/LocaPy | Lib/site-packages/django/contrib/admindocs/urls.py | [
"bzip2-1.0.6"
] |
<div class="settings">
<a href="#" class="btn btn-icon btn-lg settings-btn" data-bs-toggle="offcanvas" data-bs-target="#offcanvasSettings">
{% include ui/icon.html icon="settings" %}
</a>
<form class="offcanvas offcanvas-end offcanvas-narrow" tabindex="-1" id="offcanvasSettings">
<div class="offcanvas-header"... | HTML | 4 | wf-muhammadumar/tabler | src/pages/_includes/settings.html | [
"MIT"
] |
Make access log use local time with timezone
| Cucumber | 5 | ikrivosheev/aiohttp | CHANGES/3853.feature | [
"Apache-2.0"
] |
within ModelicaByExample.Subsystems;
package GearSubsystemModel "Build a subsystem model representing a gear with backlash"
end GearSubsystemModel;
| Modelica | 3 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Modelica/package3.mo | [
"MIT"
] |
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24" viewBox="0 0 24 24" width="24"><g><rect fill="none" height="24" width="24"/></g><g><g><path d="M19.89,10.75C19.96,11.16,20,11.57,20,12c0,4.41-3.59,8-8,8s-8-3.59-8-8c0-0.05,0.01-0.1,0-0.14 c2.6-0.98,4.69-2.99,5.74-5.55c3.38,4.14,7.97,3... | SVG | 1 | good-gym/material-ui | packages/material-ui-icons/material-icons/face_retouching_natural_outlined_24px.svg | [
"MIT"
] |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {getSystemPath, normalize, virtualFs} from '@angular-devkit/core';
import {TempScopedNodeJsSyncHost} from '@an... | TypeScript | 5 | OakMolecule/angular | packages/core/schematics/test/testbed_teardown_spec.ts | [
"MIT"
] |
// Copyright 2016 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.
//go:build plan9
// +build plan9
package os
import (
"internal/itoa"
"syscall"
)
func executable() (string, error) {
fn := "/proc/" + itoa.Itoa(Getpid()) ... | Go | 4 | PhilYue/go | src/os/executable_plan9.go | [
"BSD-3-Clause"
] |
/**
* @param {import('jscodeshift').FileInfo} file
* @param {import('jscodeshift').API} api
*/
export default function transformer(file, api, options) {
const j = api.jscodeshift;
const printOptions = options.printOptions;
return j(file.source)
.findJSXElements('IconButton')
.forEach((path) => {
... | JavaScript | 3 | dany-freeman/material-ui | packages/mui-codemod/src/v5.0.0/icon-button-size.js | [
"MIT"
] |
/*
* copyright (c) 2016 Ganesh Ajjanagadde <gajjanag@gmail.com>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, o... | C | 5 | attenuation/srs | trunk/3rdparty/ffmpeg-4-fit/libavutil/ffmath.h | [
"MIT"
] |
CHANGED/* foo.css */
CHANGEDbody {
CHANGED margin: 0;
CHANGED}
CHANGEDh1, footer {
CHANGED padding: 2px auto;
CHANGED}
CHANGEDul.foo {
CHANGED list-style: none;
CHANGED}
CHANGED.bar {
CHANGED font-size: large;
CHANGED}
CHANGED | CSS | 3 | ravitejavalluri/brackets | test/spec/FindReplace-known-goods/regexp-zero-length/css/foo.css | [
"MIT"
] |
/*
* Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
#include "Format.h"
#include "Porting.h"
using namespace kotlin;
std_support::span<char> kotlin::FormatToSpan(std_support::span<char> buffer, const char* format, ...... | C++ | 4 | Mu-L/kotlin | kotlin-native/runtime/src/main/cpp/Format.cpp | [
"ECL-2.0",
"Apache-2.0"
] |
#
# @expect=org.quattor.pan.exceptions.EvaluationException ".*invalid format specification or mismatched types in format\(\):.*"
#
object template format5;
variable STR = format('%q');
| Pan | 2 | aka7/pan | panc/src/test/pan/Functionality/format/format5.pan | [
"Apache-2.0"
] |
// Copyright 2020 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include "textflag.h"
// Values returned from an FCLASS instruction.
#define NegInf 0x001
#define PosInf 0x080
#define NaN 0x200
// func archMax(x, y float64)... | GAS | 3 | SSSDNSY/go | src/math/dim_riscv64.s | [
"BSD-3-Clause"
] |
{
"config": {
"step": {
"pick_implementation": {
"title": "[%key:common::config_flow::title::oauth2_pick_implementation%]"
},
"reauth_confirm": {
"title": "[%key:common::config_flow::title::reauth%]",
"description": "The Spotify integration needs to re-authenticate with S... | JSON | 3 | MrDelik/core | homeassistant/components/spotify/strings.json | [
"Apache-2.0"
] |
--TEST--
Bug #80152 (odbc_execute() moves internal pointer of $params)
--EXTENSIONS--
odbc
--SKIPIF--
<?php include 'skipif.inc'; ?>
--FILE--
<?php
include 'config.inc';
$conn = odbc_connect($dsn, $user, $pass);
odbc_exec($conn,"CREATE TABLE bug80152 (id INT, name CHAR(24))");
$stmt = odbc_prepare($conn,"INSERT INTO ... | PHP | 3 | NathanFreeman/php-src | ext/odbc/tests/bug80152.phpt | [
"PHP-3.01"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.