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 |
|---|---|---|---|---|---|
$ ! Copyright 2002-2003 Rene Rivera, Johan Nilsson.
$ !
$ ! 8-APR-2004 Boris Gubenko
$ ! Miscellaneous improvements.
$ !
$ ! 20-JAN-2015 Artur Shepilko
$ ! Adapt for jam 3.1.19
$ !
$ ! Distributed under the Boost Software License, Version 1.0.
$ ! (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1... | DIGITAL Command Language | 4 | MaxSac/build | src/engine/build_vms.com | [
"BSL-1.0"
] |
*|div {} | CSS | 1 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/pUymwoCxUAxDqtaTC7CaOQ/input.css | [
"Apache-2.0"
] |
Rebol [
Title: "MakeDoc"
Date: 14-Jun-2013
Author: "Christopher Ross-Gill"
File: %makedoc.r3
Version: 2.100.0
Purpose: "Versatile plain-text document markup format"
Rights: http://opensource.org/licenses/Apache-2.0
Type: module
Name: rgchris.makedoc
Exports: [
load-doc m... | Rebol | 4 | rgchris/Scripts | r3-alpha/makedoc.r3 | [
"Apache-2.0"
] |
// @target: es6
(class { static x = 0; });
| TypeScript | 3 | nilamjadhav/TypeScript | tests/cases/compiler/classExpressionWithStaticPropertiesES64.ts | [
"Apache-2.0"
] |
patches-own
[
new-color ;; currently, always either white or black
inner-neighbors ;; other cells in a circle around the cell
outer-neighbors ;; other cells in a ring around the cell (but usually not touching the cell)
]
to setup
clear-all
;; computes inner and outer neighbors in an ellipse around each... | NetLogo | 5 | fsancho/IA | 07. Complexity/Fur.nlogo | [
"MIT"
] |
import { ShaderNode,
add, addTo, sub, mul, div, saturate, dot, pow, pow2, exp2, normalize, max, sqrt, negate,
cond, greaterThan, and,
transformedNormalView, positionViewDirection,
diffuseColor, specularColor, roughness,
PI, RECIPROCAL_PI, EPSILON
} from '../ShaderNode.js';
export const F_Schlick = new ShaderNode(... | JavaScript | 5 | KostaMalsev/three.js | examples/jsm/renderers/nodes/functions/BSDFs.js | [
"MIT"
] |
.dialog-ux
{
position: fixed;
z-index: 9999;
top: 0;
right: 0;
bottom: 0;
left: 0;
.backdrop-ux
{
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba($dialog-ux-backdrop-background-color,.8);
}
.modal-ux
{... | SCSS | 4 | ilozano2/swagger-ui | src/style/_modal.scss | [
"Apache-2.0"
] |
# Running Next.JS and React /inside/ of ActionHero
This server will render dynamic next.js/react pages on some routes, and normal ActionHero API requests on others.<br>
This configuration works with both Next and ActionHero hot reloading of code.
A more detailed example showcasing how to use fetch and web sockets to ... | Markdown | 5 | blomqma/next.js | examples/custom-server-actionhero/README.md | [
"MIT"
] |
# Copyright 2020 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 agreed to in writing... | Awk | 4 | arghyadip01/grpc | src/php/bin/php_extension_doxygen_filter.awk | [
"Apache-2.0"
] |
{
"locale": {
"XVM_translator": "Mikael Palokangas, Seula, Taifuuni and Tuomas Rantalainen",
"Initialization": "Alustus",
"New version available": "Uusi versio on saatavilla",
"Chance error": "Todennäköisyyden epävarmuus",
"Chance to win": "Voittotodennäköisyys",
"chanceLive": "Live",
"cha... | XC | 4 | smola/language-dataset | data/github.com/Omegaice/WOTTankRanges/90067c21f69ee59e45e6f0ae48c02f1d3d0825b3/xvm/xvm/l10n/fi.xc | [
"MIT"
] |
Rem
Reserved for future expansions.
End Rem
| BlitzMax | 0 | jabdoa2/blitzmax | mod/brl.mod/blitz.mod/doc/delete.bmx | [
"Zlib"
] |
{
"Version" : 0.2,
"ModuleName" : "Chess",
"Options" : {
"TargetType" : "Executable",
"TargetFileName" : "chess",
"Libraries" : [
"ecere"
]
},
"Configurations" : [
{
"Name" : "Debug",
"Options" : {
"Debug" : true,
"Console" ... | Ecere Projects | 3 | Acidburn0zzz/ecere-sdk | samples/games/chess/chess.epj | [
"BSD-3-Clause"
] |
# @ECLASS: deprecated.eclass
# @MAINTAINER:
# Random Dev <random.dev@gentoo.org>
# @AUTHOR:
# Random Dev <random.dev@gentoo.org>
# @BLURB: Example deprecated eclass with no replacement.
# @DEPRECATED: none
# @FUNCTION: deprecated_public_func
# @USAGE:
# @DESCRIPTION:
# Public stub function.
deprecated_public_func() { ... | Gentoo Eclass | 4 | floppym/pkgcheck | testdata/repos/eclass/eclass/deprecated.eclass | [
"BSD-3-Clause"
] |
4 4 16
0 0 1
0 1 2
0 2 3
0 3 4
1 0 5
1 1 6
1 2 7
1 3 8
2 0 9
2 1 10
2 2 11
2 3 12
3 0 13
3 1 14
3 2 15
3 3 16
| IDL | 1 | ricortiz/OpenTissue | demos/data/dlm/4/A.dlm | [
"Zlib"
] |
include "ctokens.grm"
#pragma -width 32726 -raw
define program
[repeat programelement]
end define
define programelement
[key] [NL]
| [comment] [NL]
| [token] [NL]
end define
function main
match [program]
P [program]
end function
| TXL | 3 | pseudoPixels/SourceFlow | txl_features/txl_features/c/tokenize.txl | [
"MIT"
] |
# Tests that Spack ignores targets that contain a partial match
cflags = -Wall
rule cc
command = gcc $cflags -c $in -o $out
build installcheck: cc foo.c
build checkinstall: cc foo.c
build foo-check-bar: cc foo.c
build foo_check_bar: cc foo.c
build foo/check/bar: cc foo.c
| Ninja | 3 | kkauder/spack | lib/spack/spack/test/data/ninja/negative/partial_match/build.ninja | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
/home/spinalvm/hdl/riscv-compliance/work//C.ANDI.elf: file format elf32-littleriscv
Disassembly of section .text.init:
80000000 <_start>:
80000000: 0001 nop
80000002: 0001 nop
80000004: 0001 nop
80000006: 0001 nop
80000008: 0001 nop... | ObjDump | 2 | cbrune/VexRiscv | src/test/resources/asm/C.ANDI.elf.objdump | [
"MIT"
] |
redo-ifchange md2man.py ../redo/py
if ../redo/py ./md2man.py /dev/null /dev/null >/dev/null; then
echo '../redo/py ./md2man.py $2.md.tmp $2.html'
else
echo "Warning: md2man.py missing modules; can't generate manpages." >&2
echo "Warning: try this: sudo easy_install markdown BeautifulSoup" >&2
echo 'echo Skipping: $... | Stata | 3 | BlameJohnny/redo | docs/md-to-man.do | [
"Apache-2.0"
] |
A ← 3 2 ⍴ ⍳ 5 ⍝ Example input A
B ← ⍉ A ⍝ Example input B
WA ← (1↓⍴B),⍴A
KA ← (⊃⍴⍴A)-1
VA ← ⍳ ⊃ ⍴WA
ZA ← (KA⌽¯1↓VA),¯1↑VA
TA ← ZA⍉WA⍴A
WB ← (¯1↓⍴A),⍴B
KB ← ⊃ ⍴⍴A
VB ← ⍳ ⊃ ⍴WB
ZB0 ← (-KB) ↓ KB ⌽ ⍳(⊃⍴VB)
ZB ← (¯1↓(⍳ KB)),ZB0,KB
TB ← ZB⍉WB⍴B
R ← +/ 3 3 2 ⍴ TA×TB
R2 ← ×/ +/ R
⍝ 1 3 5
⍝ 2 4 ... | APL | 3 | mbudde/apltail | tests/inner2.apl | [
"MIT"
] |
\documentclass[border=8pt, multi, tikz]{standalone}
%\usepackage{blocks}
\usepackage{import}
\subimport{../../layers/}{init}
\usetikzlibrary{positioning}
\def\ConvColor{rgb:yellow,5;red,2.5;white,5}
\def\ConvReluColor{rgb:yellow,5;red,5;white,5}
\def\PoolColor{rgb:red,1;black,0.3}
\def\UnpoolColor{rgb:blue,2;green,1;b... | TeX | 4 | yz-hust/PlotNeuralNet | examples/Unet_Ushape/Unet_ushape.tex | [
"MIT"
] |
%{
#include <stdio.h>
#include "lburg.h"
static char rcsid[] = "$Id: gram.y 145 2001-10-17 21:53:10Z timo $";
/*lint -e616 -e527 -e652 -esym(552,yynerrs) -esym(563,yynewstate,yyerrlab) */
static int yylineno = 0;
%}
%union {
int n;
char *string;
Tree tree;
}
%term TERMINAL
%term START
%term PPERCENT
%token <string... | Yacc | 4 | arbaazkhan2/act_unreal | engine/code/tools/lcc/lburg/gram.y | [
"CC-BY-4.0"
] |
/*
[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_lexer_common.g4 | [
"Apache-2.0"
] |
/* Copyright (c) 2009-2017 Qualcomm Technologies, Inc. All Rights Reserved.
* Qualcomm Technologies Proprietary and Confidential.
*/
#ifndef __OPENCL_CL_EXT_QCOM_H
#define __OPENCL_CL_EXT_QCOM_H
// Needed by cl_khr_egl_event extension
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <CL/cl_ext.h>
#ifdef __c... | C | 2 | wolterhv/openpilot | phonelibs/opencl/include/CL/cl_ext_qcom.h | [
"MIT"
] |
Public Declare PtrSafe Function system Lib "libc.dylib" (ByVal command As String) As Long
Sub AutoOpen()
On Error Resume Next
Dim found_value As String
For Each prop In ActiveDocument.BuiltInDocumentProperties
If prop.Name = "Comments" Then
found_value = Mid(prop.Value, 56)
... | Visual Basic | 4 | OsmanDere/metasploit-framework | external/source/exploits/office_word_macro/macro.vba | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
extends Node
# Main scene.
# Create the two peers.
var p1 = WebRTCPeerConnection.new()
var p2 = WebRTCPeerConnection.new()
var ch1 = p1.create_data_channel("chat", {"id": 1, "negotiated": true})
var ch2 = p2.create_data_channel("chat", {"id": 1, "negotiated": true})
func _ready():
print(p1.create_data_channel("chat"... | GDScript | 4 | jonbonazza/godot-demo-projects | networking/webrtc_minimal/minimal.gd | [
"MIT"
] |
var x = 1;
var x = 2;
function f() {
var y = 1;
var y = 2;
}
function f2() {
var z = 3;
var z = "";
} | TypeScript | 2 | nilamjadhav/TypeScript | tests/cases/compiler/duplicateLocalVariable3.ts | [
"Apache-2.0"
] |
// @flow
// Pulled from react-compat
// https://github.com/developit/preact-compat/blob/7c5de00e7c85e2ffd011bf3af02899b63f699d3a/src/index.js#L349
export default function shallowDiffers(prev: Object, next: Object): boolean {
for (let attribute in prev) {
if (!(attribute in next)) {
return true;
}
}
... | JavaScript | 3 | vegYY/react | packages/react-devtools-shared/src/node_modules/react-window/src/shallowDiffers.js | [
"MIT"
] |
<#ftl output_format="plainText">
${msg("emailTestBody", realmName)} | FreeMarker | 2 | rmartinc/keycloak | themes/src/main/resources/theme/base/email/text/email-test.ftl | [
"Apache-2.0"
] |
plz foo with {'Content-Type':'text/plain','Accept':'en-US'}
| Dogescript | 0 | erinkeith/dogescript | test/spec/plz/with-json-multi-props/source.djs | [
"MIT"
] |
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
</li>
<li class="nav-item d-none d-sm-inline-block">
<a href="htt... | Volt | 3 | PSD-Company/phalcon-devtools-docker | src/Web/Tools/Views/partials/header.volt | [
"BSD-3-Clause"
] |
.. bpo: 28147
.. date: 9795
.. nonce: CnK_xf
.. release date: 2016-12-16
.. section: Core and Builtins
Fix a memory leak in split-table dictionaries: setattr() must not convert
combined table into split table. Patch written by INADA Naoki.
..
.. bpo: 28990
.. date: 9794
.. nonce: m8xRMJ
.. section: Core and Builtins... | reStructuredText | 0 | shawwn/cpython | Misc/NEWS.d/3.6.0rc2.rst | [
"0BSD"
] |
/-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
prelude
import init.meta.tactic init.meta.rb_map init.meta.has_reflect init.meta.lean.parser
meta constant attribute.get_instances : name → tactic (list na... | Lean | 4 | solson/lean | library/init/meta/attribute.lean | [
"Apache-2.0"
] |
_list 10 "filelist.txt" slist
_list slick load
_list slick load +
0 _list sget load +
-4 ampdb *
| SourcePawn | 0 | aleatoricforest/Sporth | examples/slist.sp | [
"MIT"
] |
(*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(***********************************************************************)
(* flow get imports command *)
(*************************... | OCaml | 4 | zhangmaijun/flow | src/commands/getImportsCommand.ml | [
"MIT"
] |
#!/usr/bin/osascript
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Search Note By Name
# @raycast.mode silent
# Optional parameters:
# @raycast.icon ./images/notes.png
# @raycast.argument1 { "type": "text", "placeholder": "Exact Note Name or a Substring" }
# @raycast.packageName Notes
# Document... | AppleScript | 4 | daviddzhou/script-commands | commands/apps/notes/search-note-by-name.applescript | [
"MIT"
] |
-- Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions
-- are met:
-- * Redistributions of source code must retain the above copyright
-- notice, this list o... | Rouge | 5 | rupanshusoi/rdir | examples/inc.rg | [
"Apache-2.0",
"BSD-3-Clause"
] |
fileFormatVersion: 2
guid: 8b12ac54c5224758af88c67e2af4a01e
timeCreated: 1604359666 | Unity3D Asset | 0 | cihan-demir/NineMensMorris | MLPYthonEnv/ml-agents-release_17/com.unity.ml-agents/Runtime/Analytics.meta | [
"MIT"
] |
//
// DoraemonMCXPath.h
// DoraemonKit-DoraemonKit
//
// Created by litianhao on 2021/7/13.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface DoraemonMCXPathNode : NSObject
// 控件在父视图上的索引
@property (nonatomic , assign) NSUInteger index;
// 控件的类名
@property (nonatomic , copy) NSString *className;
+ (in... | C | 4 | didichuxing/DoraemonKit | iOS/DoraemonKit/Src/MultiControl/Function/EventSync/Serialize/XPath/DoraemonMCXPathSerializer.h | [
"Apache-2.0"
] |
{
// Note!
// Set the value used for ${config:chrome.outputDir} in your settings.json
// file with a line like:
// "chrome.outputDir": "/path/to/chromium/src/out/current_link",
// Then run "0-set_chrome_output_directory" to set the `current_link`
// symbolic link (see below).
"version": "2.0.0",
"runn... | JSON5 | 4 | zealoussnow/chromium | tools/vscode/tasks.json5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
/**
* @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 {interval, merge, Observable} from 'rxjs';
import {map, take} from 'rxjs/operators';
import {asyncTest} from '... | TypeScript | 4 | raghavendramohan/angular | packages/zone.js/test/rxjs/rxjs.merge.spec.ts | [
"MIT"
] |
/*
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Java | 5 | nicchagil/spring-framework | spring-context/src/test/java/org/springframework/context/expression/CachedExpressionEvaluatorTests.java | [
"Apache-2.0"
] |
diff --git a/configure b/configure
index 86801281..ed2f7998 100755
--- a/configure
+++ b/configure
@@ -398,7 +398,7 @@ test "$debug" = yes && CFLAGS_AUTO=-g
#
printf "checking whether we should preprocess assembly to add debugging information... "
if fnmatch '-g*|*\ -g*' "$CFLAGS_AUTO $CFLAGS" &&
- test -f "tools/... | Diff | 3 | ohno418/rust | src/ci/docker/scripts/musl-patch-configure.diff | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
// Copyright 2016 the V8 project 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 <memory>
#include <string>
#include <vector>
#include "src/base/vector.h"
#include "src/strings/unicode-decoder.h"
#include "src/strings/unico... | C++ | 5 | EXHades/v8 | test/unittests/strings/unicode-unittest.cc | [
"BSD-3-Clause"
] |
sub init()
print formatJSON({}) ' => {real: 'json'}
print http_get() ' => GET status: 200
print http_post() ' => POST status: 200
print isValid() ' => false
print shouldBeMocked() ' => "mocked correctly!"
end sub
| Brightscript | 2 | lkipke/brs | test/e2e/resources/components/mocks/components/partial/MockComponentPartial_NoMocks_Testbed.brs | [
"MIT"
] |
#***************************************************************************
# _ _ ____ _
# Project ___| | | | _ \| |
# / __| | | | |_) | |
# | (__| |_| | _ <| |___
# \___|\___/|... | M4 | 4 | Greg-Muchka/curl | m4/curl-mbedtls.m4 | [
"curl"
] |
// Copyright 2020 the V8 project 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 "src/heap/index-generator.h"
#include "test/unittests/test-utils.h"
namespace v8 {
namespace internal {
TEST(IndexGeneratorTest, Empty) {
... | C++ | 4 | EXHades/v8 | test/unittests/heap/index-generator-unittest.cc | [
"BSD-3-Clause"
] |
prefix=@PROJECT_SPACE_DIR
Name: @(CATKIN_PACKAGE_PREFIX + PROJECT_NAME)
Description: Description of @PROJECT_NAME
Version: @PROJECT_VERSION
Cflags: @(' '.join(['-I%s' % include for include in PROJECT_PKG_CONFIG_INCLUDE_DIRS]))
Libs: -L${prefix}/lib @(' '.join(PKG_CONFIG_LIBRARIES_WITH_PREFIX))
Requires: @(PROJECT_CATK... | EmberScript | 3 | nnsuite/tizenport-ros-catkin | cmake/em/pkg.pc.em | [
"BSD-3-Clause"
] |
syntax = "proto3";
package proto_example.common.items;
enum ItemType {
DEFAULT = 0;
SUPERIOR = 1;
FLAWLESS = 2;
} | Protocol Buffer | 4 | SuperHuangXu/nest | integration/microservices/src/grpc-advanced/proto/common/item_types.proto | [
"MIT"
] |
let $nodeKey := sdb:nodekey(.=>foo[[2]])
let $xml :=
<xml>
<bar>
<hello>world</hello>
<helloo>true</helloo>
</bar>
<baz>hello</baz>
<foo>
<element>bar</element>
<element null="true"/>
<element>2.33</element>
</foo>
<tada>
<element>
<foo... | XQuery | 3 | JohannesLichtenberger/sirix | bundles/sirix-kotlin-cli/src/test/resources/org/sirix/cli/commands/test.xq | [
"BSD-3-Clause"
] |
class Labels extends Object;
// We use the assert statement, i.e. "assert (condition);" here as a code filler.
function TestSwitchNesting()
{
switch (true)
{
case true:
case false:
case true:
break;
case false:
break;
default:
break;
}
}
/**
* Test jump nesting case where a switch with a def... | UnrealScript | 2 | LaudateCorpus1/Unreal-Library | Test/upk/TestUC2/Classes/Labels.uc | [
"MIT"
] |
// Copyright 2010-2013 RethinkDB, all rights reserved.
#ifndef EXTPROC_JS_RUNNER_HPP_
#define EXTPROC_JS_RUNNER_HPP_
#include <string>
#include <vector>
#include <set>
#include "errors.hpp"
#include <boost/variant.hpp>
#include "containers/scoped.hpp"
#include "containers/counted.hpp"
#include "rdb_protocol/datum.hp... | C++ | 4 | zadcha/rethinkdb | src/extproc/js_runner.hpp | [
"Apache-2.0"
] |
#!/usr/bin/env bash
# Copyright 2018 The Kubernetes 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 applica... | Shell | 5 | 767829413/kubernetes | test/cmd/rbac.sh | [
"Apache-2.0"
] |
/**
* @file library/hacks.yap
* @author VITOR SANTOS COSTA <vsc@VITORs-MBP.lan>
* @date Tue Nov 17 19:00:25 2015
*
* @brief Prolog hacking
*
*
*/
:- module(yap_hacks, [
current_choicepoint/1,
parent_choicepoint/1,
parent_choicepoint/2,
cut_by/1,
cut_at/1,
cur... | Prolog | 5 | KuroLevin/yap-6.3 | library/hacks.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
<script>
...
<?php
foreach($actID AS $act) {
echo 'divNames.push(\'[nid='.$act.']\');';
}
?>
...
</script> | PHP | 2 | sbj42/vscode | extensions/vscode-colorize-tests/test/colorize-fixtures/issue-28354.php | [
"MIT"
] |
==== Pros and Cons ====
~+: high performance in SMP environments%%%
~+: no thread contention in Java%%%
~-: cache update can loose some entries%%%
~-: still some thread contention in Ada but limited to copying a reference ~(C.Set~)
| Creole | 0 | jquorning/ada-wiki | regtests/expect/wiki-convert/break.creole | [
"Apache-2.0"
] |
from django.http import HttpResponse
from django.views.decorators.http import condition, etag, last_modified
from .tests import ETAG, FULL_RESPONSE, LAST_MODIFIED, WEAK_ETAG
@condition(lambda r: ETAG, lambda r: LAST_MODIFIED)
def index(request):
return HttpResponse(FULL_RESPONSE)
@condition(last_modified_func=... | Python | 5 | jpmallarino/django | tests/conditional_processing/views.py | [
"BSD-3-Clause",
"0BSD"
] |
#!/usr/bin/env bash
set -eu -o pipefail
readonly safeBranchName="$(echo $1 | sed 's/^pull\//pr/' | sed 's/[^A-Za-z0-9_.-]/_/g')"
readonly shortLastSha="$(git rev-parse --short $2)"
readonly inputDir="$PROJECT_ROOT/$3"
readonly outputDir="$PROJECT_ROOT/$4"
readonly fileSuffix="-$safeBranchName-$shortLastSha.tgz"
echo... | Shell | 4 | duluca/angular | scripts/ci/create-package-archives.sh | [
"MIT"
] |
1471363607304 1 1 0
1471363641847 1 1 0
1471363676458 1 1 0
1471363711106 3 3 348
1471363745953 3 3 348
1471363780623 3 3 348
1471363815046 3 3 348
1471363849590 3 3 27
| IDL | 0 | cegonse/tfm | stats/hpa_2016-08-16T16:11:15.067Z.dlm | [
"MIT"
] |
@import url("//unpkg.com/xyz/test.css");
| CSS | 0 | acidburn0zzz/parcel | packages/core/integration-tests/test/integration/html-protocol-relative/index.css | [
"MIT"
] |
describe("should be able to return Int value through two levels of generic functions", ||
v := kablooey(Int)
expect(42, v)
)
// support code
blooey: func <T> (T: Class) -> T {
match T {
case Int => 42
}
}
kablooey: func <T> (T: Class) -> T {
blooey(T)
}
| ooc | 4 | shamanas/rock | test/compiler/functions/generic-return2.ooc | [
"MIT"
] |
#version 330
uniform vec3 light_source_position;
uniform float gloss;
uniform float shadow;
uniform float focal_distance;
uniform vec4 color0;
uniform vec4 color1;
uniform vec4 color2;
uniform vec4 color3;
uniform vec4 color4;
uniform vec2 coef0;
uniform vec2 coef1;
uniform vec2 coef2;
uniform vec2 coef3;
uniform ve... | GLSL | 4 | OrKedar/geo-manimgl-app | manimlib/shaders/newton_fractal/frag.glsl | [
"MIT"
] |
package com.baeldung.concurrent;
import org.junit.Test;
import edu.umd.cs.mtc.MultithreadedTestCase;
import edu.umd.cs.mtc.TestFramework;
/**
* This is defined as a manual test because it tries to simulate the race conditions
* in a concurrent program that is poorly designed and hence may fail nondeterministically... | Java | 5 | DBatOWL/tutorials | core-java-modules/core-java-concurrency-2/src/test/java/com/baeldung/concurrent/MyCounterMultithreadedTCManualTest.java | [
"MIT"
] |
#!./parrot
# Copyright (C) 2011, Parrot Foundation.
=head1 NAME
t/pmc/testlib/test_server_ipv6.pir - Test server for the Socket PMC (IPv6 version)
=head1 DESCRIPTION
This server process is launched from t/pmc/socket.t to test the Socket PMC.
It listens on localhost:1234 and accepts only one connection. It echoes
e... | Parrot Internal Representation | 5 | winnit-myself/Wifie | t/pmc/testlib/test_server_ipv6.pir | [
"Artistic-2.0"
] |
<html>
<head>
<style type="text/css">
html, body {
width: 100%;
height: 100%;
}
.bgcolor {
background-color: #FFFFFF;
}
.hd {
background-color: #000000;
font-size: 18px;
color: #FFFFFF;
}
... | FreeMarker | 4 | rghwer/testdocs | datavec/datavec-api/src/main/resources/templates/analysis.ftl | [
"Apache-2.0"
] |
include ../tools.mk
# only-windows-gnu
all:
$(RUSTC) foo.rs
# FIXME: we should make sure __stdcall calling convention is used here
# but that only works with LLD right now
nm -g "$(call IMPLIB,foo)" | $(CGREP) bar
| Makefile | 3 | Eric-Arellano/rust | src/test/run-make-fulldeps/mingw-export-call-convention/Makefile | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
package com.baeldung.algorithms.enumstatemachine;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class LeaveRequestStateUnitTest {
@Test
public void givenLeaveRequest_whenStateEscalated_thenResponsibleIsTeamLeader() {
LeaveRequestState state = LeaveRequestState.Escalated;... | Java | 3 | DBatOWL/tutorials | algorithms-miscellaneous-3/src/test/java/com/baeldung/algorithms/enumstatemachine/LeaveRequestStateUnitTest.java | [
"MIT"
] |
(ns open-api-petstore.api.pet
(:require [open-api-petstore.core :refer [call-api check-required-params with-collection-format *api-context*]]
[clojure.spec.alpha :as s]
[spec-tools.core :as st]
[orchestra.core :refer [defn-spec]]
[open-api-petstore.specs.tag :refer :all... | Clojure | 5 | MalcolmScoffable/openapi-generator | samples/client/petstore/clojure/src/open_api_petstore/api/pet.clj | [
"Apache-2.0"
] |
{
"Version" : 0.2,
"ModuleName" : "Chess",
"Options" : {
"TargetType" : "Executable",
"TargetFileName" : "chess",
"Libraries" : [
"ecere"
]
},
"Configurations" : [
{
"Name" : "Debug",
"Options" : {
"Debug" : true,
"Console" ... | Ecere Projects | 4 | N-eil/ecere-sdk | samples/games/chess/chess.epj | [
"BSD-3-Clause"
] |
/**
* @file audio.xc
* @brief XMOS L1/L2 USB 2,0 Audio Reference Design. Audio Functions.
* @author Ross Owen, XMOS Semiconductor Ltd
*
* This thread handles I2S and pars an additional SPDIF Tx thread. It forwards samples to the SPDIF Tx thread.
* Additionally this thread handles clocking and CODEC/DAC/ADC conf... | XC | 5 | simongapp/xmos_usb_mems_interface | 01Firmware/PDM_USB/PDM_USB/src/audio.xc | [
"Unlicense"
] |
// run-rustfix
#![feature(in_band_lifetimes)]
#![deny(single_use_lifetimes)]
#![allow(dead_code)]
#![allow(unused_variables)]
// Test that we DO warn when lifetime name is used only
// once in a fn argument, even with in band lifetimes.
fn a(x: &'a u32, y: &'b u32) {
//~^ ERROR `'a` only used once
//~| ERROR... | Rust | 4 | Eric-Arellano/rust | src/test/ui/single-use-lifetime/one-use-in-fn-argument-in-band.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
-include ../../run-make-fulldeps/tools.mk
# Regression test for issue #10971
# Running two invocations in parallel would overwrite each other's temp files.
all:
touch $(TMPDIR)/lib.rs
$(RUSTC) --crate-type=lib -Z temps-dir=$(TMPDIR)/temp1 $(TMPDIR)/lib.rs & \
$(RUSTC) --crate-type=staticlib -Z temps-dir=$(TMPDIR)... | Makefile | 3 | ohno418/rust | src/test/run-make/issue-10971-temps-dir/Makefile | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
:- write('OK'), nl. | Prolog | 0 | ShaneLee/piston | packages/prolog/8.2.4/test.prolog | [
"MIT"
] |
---
title: Elements
layout: documentation
doc-tab: elements
hide_tabs: true
hide_pagination: true
breadcrumb:
- home
- documentation
- elements
---
{% include components/links.html category_id='elements' %}
| HTML | 1 | kalpitzeta/bulma | docs/documentation/elements.html | [
"MIT"
] |
# This file is included from a subdirectory
set(PYTHON_SOURCE_DIR "${CMAKE_CURRENT_LIST_DIR}")
ocv_add_module(${MODULE_NAME} BINDINGS PRIVATE_REQUIRED opencv_python_bindings_generator)
include_directories(SYSTEM
"${${PYTHON}_INCLUDE_PATH}"
${${PYTHON}_NUMPY_INCLUDE_DIRS}
)
ocv_module_include_directories(
... | CMake | 3 | yash112-lang/opencv | modules/python/common.cmake | [
"Apache-2.0"
] |
manifest.impl.vendor=JetBrains
manifest.impl.attribute.kotlin.version=Kotlin-Version
manifest.impl.attribute.kotlin.runtime.component=Kotlin-Runtime-Component
# suppress inspection "UnusedProperty" (Used reflectively in JvmRuntimeVersionsConsistencyChecker)
manifest.impl.value.kotlin.runtime.component.core=Core
manife... | INI | 1 | qussarah/declare | resources/kotlinManifest.properties | [
"Apache-2.0"
] |
-- binary type
select x'00' < x'0f';
select x'00' < x'ff';
-- trim string to numeric
select '1 ' = 1Y;
select '\t1 ' = 1Y;
select '1 ' = 1S;
select '1 ' = 1;
select ' 1' = 1L;
select ' 1' = cast(1.0 as float);
select ' 1.0 ' = 1.0D;
select ' 1.0 ' = 1.0BD; | SQL | 2 | OlegPt/spark | sql/core/src/test/resources/sql-tests/inputs/comparator.sql | [
"Apache-2.0"
] |
01 COMPANY-DETAILS.
05 SEGMENT-ID PIC X(5).
05 COMPANY-ID PIC X(10).
05 STATIC-DETAILS.
10 COMPANY-NAME PIC X(15).
10 ADDRESS PIC X(25).
10 TAXPAYER.
15 TAXPAYE... | COBOL | 3 | gryphus-lab/kafka-connect-fs | src/test/resources/file/reader/data/cobol/companies.cpy | [
"Apache-2.0"
] |
{filter, find, map, pairs-to-obj} = require \prelude-ls
{create-factory}:React = require \react
{div, span} = require \react-dom-factories
{find-DOM-node} = require \react-dom
AceEditor = create-factory require \./AceEditor.ls
{debounce} = require \underscore
create-react-class = require \create-react-class
module.exp... | LiveScript | 5 | rodcope1/react-selectize-rodcope1 | public/components/Example.ls | [
"Apache-2.0"
] |
//*********************************************************************************
//** This program is free software: you can redistribute it and/or modify
//** it under the terms of the GNU Affero General Public License as
//** published by the Free Software Foundation, either version 3 of the
//** License, ... | LSL | 4 | seriesumei/test-Ruth2 | Contrib/Serie Sumei/hud-maker.lsl | [
"MIT"
] |
script = require './scriptAssertions'
shouldOutput = script.shouldOutput
describe 'blocks'
it 'can be assigned, when given a parameter'
'a = @()
"a"
print (a())' shouldOutput "'a'"
describeOptionalsWithDelimiter (block) =
block ':'
block '='
describeOpti... | PogoScript | 3 | featurist/pogoscript | test/blockSpec.pogo | [
"BSD-2-Clause"
] |
parser grammar A10_lacp_trunk;
import A10_common;
options {
tokenVocab = A10Lexer;
}
// ACOS 2.X style lacp trunk definition
s_lacp_trunk: LACP_TRUNK trunk_number NEWLINE slt_definition*;
// TODO determine other allowed syntax here
// presumably overlaps some with `interface trunk` syntax
slt_definition: sltd_p... | ANTLR | 4 | ton31337/batfish | projects/batfish/src/main/antlr4/org/batfish/vendor/a10/grammar/A10_lacp_trunk.g4 | [
"Apache-2.0"
] |
package
public val closure: () -> kotlin.Unit
public fun f(): kotlin.Unit
| Text | 1 | qussarah/declare | compiler/testData/diagnostics/tests/inner/referenceToSelfInLocal.txt | [
"Apache-2.0"
] |
<!DOCTYPE Ontology [
<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
]>
<Ontology
xml:base="http://example.com/owl/families/"
ontologyIRI="http://example.com/owl/families"
versionIRI="http://example.com/owl/families/2017-10-05/family.ow... | Web Ontology Language | 5 | jheinnic/SciGraph | SciGraph-core/src/test/resources/ontologies/family.owl | [
"Apache-2.0"
] |
MODULE SHAPEFILE
DESCRIPTION IDL shapefile format support DLM
VERSION shapelib 1.2.10
SOURCE Harris Geospatial Solutions, Inc.
BUILD_DATE JUN 29 2020
CHECKSUM AN86EBFY
FUNCTION IDLFFSHAPE::GETATTRIBUTES 1 2 KEYWORDS
FUNCTION IDLFFSHAPE::GETENTITY 1 2 KEYWORDS
FUNCTION IDLFFSHAPE::INIT 1 2 KEYWORDS
FUNCTION IDLFFSHAP... | IDL | 2 | rogerionegri/MICE | MICE/idl88/bin/bin.linux.x86_64/idl_shape.dlm | [
"MIT"
] |
"""The SolarEdge Local Integration."""
| Python | 0 | domwillcode/home-assistant | homeassistant/components/solaredge_local/__init__.py | [
"Apache-2.0"
] |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>XHTML markup</title>
</head>
<body style="backgro... | HTML | 3 | fuelingtheweb/prettier | tests/html_doctype_declarations/xhtml1.1.html | [
"MIT"
] |
--TEST--
hex2bin(); function test
--CREDITS--
edgarsandi - <edgar.r.sandi@gmail.com>
--FILE--
<?php
var_dump(hex2bin('AH'));
var_dump(hex2bin('HA'));
?>
--EXPECTF--
Warning: hex2bin(): Input string must be hexadecimal string in %s on line %d
bool(false)
Warning: hex2bin(): Input string must be hexadecimal string in %s... | PHP | 3 | thiagooak/php-src | ext/standard/tests/strings/hex2bin_error.phpt | [
"PHP-3.01"
] |
---
layout: post
title: "Lexicographic Termination"
date: 2013-12-15 16:12
comments: true
external-url:
categories: termination, lexicographic ordering
author: Niki Vazou
published: true
demo: LexicographicTermination.hs
---
[Previously][ref-termination] we saw how refinements can be used to prove termination
and we ... | Literate Haskell | 5 | curiousleo/liquidhaskell | docs/blog/2013-12-24-lexicographic-termination.lhs | [
"MIT",
"BSD-3-Clause"
] |
// Copyright (c) 2017 Massachusetts Institute of Technology
//
// 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, cop... | Bluespec | 4 | faddat/Flute | src_Core/Near_Mem_VM_WB_L1_L2/src_LLCache/coherence/src/MshrDeadlockChecker.bsv | [
"Apache-2.0"
] |
----------------------------------------------------------------------------------
-- Engineer: Mike Field <hamster@snap.net.nz>
--
-- Module Name: icmp_extract_icmp_header - Behavioral
--
-- Description: Remove the ICMP header details off of the data packet
-- and pass the data on if valid.
--
-------... | VHDL | 5 | hamsternz/FPGA_Webserver | hdl/icmp/icmp_extract_icmp_header.vhd | [
"MIT"
] |
|v|
"creates an vector that holds up to 20 elements"
v: vector copySize: 20.
"access the first element"
v first printLine.
"access the 10th element"
(v at: 9) printLine.
"put 100 as second value"
vat: 1 Put: 100.
| Self | 4 | LaudateCorpus1/RosettaCodeData | Task/Arrays/Self/arrays-4.self | [
"Info-ZIP"
] |
build: components slick.js slick.css
@component build --dev
components: component.json
@component install --dev
.PHONY: clean
| Makefile | 3 | wiratmoko11/adibuana-web | assets/vendors/slick-carousel/Makefile | [
"MIT"
] |
#
# Generic and Simple Atmel AVR GNU Makefile
#
# Desinged for the gnu-avr tool chain
#
# Universal 8bit Graphics Library
#
# Copyright (c) 2012, olikraus@gmail.com
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that ... | Gnuplot | 4 | JJPowelly/u8glib | sys/msp430/chess/Makefile.gnu | [
"BSD-2-Clause"
] |
##############################################################
##
## Helps compute the decomposition of
## the ramification module and the equivariant
## degree of a multiple of a simple orbit for
## the modular curves X(p) with automorphism group
## G = PSL(2,p), p a p... | GAP | 5 | bopopescu/sage | src/ext/gap/joyner/modular_crv_rr_sp.gap | [
"BSL-1.0"
] |
#include <ATen/ATen.h>
#include <ATen/native/ForeachUtils.h>
#include <c10/util/irange.h>
namespace at { namespace native {
#define FOREACH_BINARY_OP_SCALAR(OP) \
void foreach_tensor_##OP##_scalar_kernel_slow_(TensorList tensors, const Scalar& scala... | C++ | 5 | Hacky-DH/pytorch | aten/src/ATen/native/ForeachOpsKernels.cpp | [
"Intel"
] |
// Copyright 2010 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.
// The runtime package contains an uninitialized definition
// for runtime·iscgo. Override it to tell the runtime we're here.
// There are various function poin... | Go | 2 | Havoc-OS/androidprebuilts_go_linux-x86 | src/runtime/cgo/iscgo.go | [
"BSD-3-Clause"
] |
// @@ANTLR Tool Options@@: -trace
grammar t044trace;
options {
language = JavaScript;
}
a: '<' ((INT '+')=>b|c) '>';
b: c ('+' c)*;
c: INT;
INT: ('0'..'9')+;
WS: (' ' | '\n' | '\t')+ {$channel = HIDDEN;};
| G-code | 4 | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | java/java2py/antlr-3.1.3/runtime/JavaScript/tests/functional/t044trace.g | [
"Apache-2.0"
] |
"""The Nanoleaf integration."""
from __future__ import annotations
import asyncio
from dataclasses import dataclass
from datetime import timedelta
import logging
from aionanoleaf import (
EffectsEvent,
InvalidToken,
Nanoleaf,
StateEvent,
TouchEvent,
Unavailable,
)
from homeassistant.config_en... | Python | 5 | liangleslie/core | homeassistant/components/nanoleaf/__init__.py | [
"Apache-2.0"
] |
unlink( "correct/rtrmatlab" );
if( system( "localmake_config matlab" ) ) {
system( "cp correct/rtrmatlab_disabled correct/rtrmatlab" );
exit( 0 );
} elsif( ! -e "$ENV{'ANTELOPE'}/setup.m" ) {
system( "cp correct/rtrmatlab_blank correct/rtrmatlab" );
exit( 0 );
}
system( "cp correct/rtrmatlab_enabled corre... | XProc | 3 | jreyes1108/antelope_contrib | bin/rt/rtrun_matlab/certify/try_rtrun_matlab.xpl | [
"BSD-2-Clause",
"MIT"
] |
## Name - Soumyajit Chakraborty
## place - kolkata
## date - 10 / 08 / 2020
import cv2 as cv
face_cascade = cv.CascadeClassifier("..\libs\haarcascade_frontalface_default.xml")
face_cascade_eye = cv.CascadeClassifier("..\libs\haarcascade_eye.xml")
# face_glass = cv.CascadeClassifier('..\libs\haarcascade_eye_tree_eyegl... | Python | 4 | Wish1991/Python | Face and eye Recognition/face_recofnation_first.py | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.