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 |
|---|---|---|---|---|---|
@echo off
rem
rem Installation script for CK packages.
rem
rem See CK LICENSE.txt for licensing details.
rem See CK Copyright.txt for copyright details.
rem
rem Developer(s): Grigori Fursin, 2017
rem
rem PACKAGE_DIR
rem INSTALL_DIR
rem get eigen and protobuf
cd /d %INSTALL_DIR%\src
git submodule update --init -- thi... | Arc | 4 | hanwenzhu/ck-mlops | package/lib-caffe2-master-eigen-cpu-universal/scripts.win/install.bat.arc | [
"Apache-2.0"
] |
// rustfmt-license_template_path: tests/license-template/lt.txt
// Copyright 2019 The rustfmt developers.
fn main() {
println!("Hello world!");
}
| Rust | 3 | mbc-git/rust | src/tools/rustfmt/tests/target/license-templates/license.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#!/usr/bin/env sage
for t in range(int(input())):
xs = [int(x) for x in input().split()]
x = xs[0]
ys = xs[1:]
ps = Partitions(x)
c = 0
for p in ps:
ok = True
for y in ys:
if y in p:
ok = False
break
if ok:
c += 1
... | Sage | 3 | Ashindustry007/competitive-programming | tuenti/tuenti-challenge-10/11.sage | [
"WTFPL"
] |
// Test bindings-after-at with or-patterns and slice-patterns
// run-pass
#[derive(Debug, PartialEq)]
enum MatchArm {
Arm(usize),
Wild,
}
#[derive(Debug, PartialEq)]
enum Test {
Foo,
Bar,
Baz,
Qux,
}
fn test(foo: &[Option<Test>]) -> MatchArm {
match foo {
bar @ [Some(Test::Foo),... | Rust | 5 | mbc-git/rust | src/test/ui/pattern/bindings-after-at/or-patterns-slice-patterns.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
<?xml version='1.0' encoding='utf-8' standalone='yes'?>
<!-- See definitions in C:\Windows\Microsoft.NET\Framework\v4.0.30319\CLR-ETW.man for .NET events -->
<!-- See MSDN docs about 'region of interest': https://docs.microsoft.com/windows-hardware/test/wpt/regions-of-interest -->
<!--
Unlike JIT, GC is largely sin... | XML | 4 | vedhasp/PowerShell | tools/performance/GC.Regions.xml | [
"MIT"
] |
# Bad declaration
PREFIX :a: <http://example/>
ASK{}
| SPARQL | 0 | alpano-unibz/ontop | test/sparql-compliance/src/test/resources/testcases-dawg-sparql-1.1/syntax-query/syn-bad-pname-04.rq | [
"Apache-2.0"
] |
enum UnstableEnum {
"a",
"b"
};
dictionary UnstableDictionary {
UnstableEnum unstableEnum;
};
typedef unsigned long UnstableTypedef;
[NoInterfaceObject]
partial interface UnstableInterface {
UnstableTypedef enum_value(optional UnstableDictionary unstableDictionary = {});
};
interface GetUnstableInterface {
... | WebIDL | 3 | tlively/wasm-bindgen | crates/webidl-tests/webidls/unstable/unstable.webidl | [
"Apache-2.0",
"MIT"
] |
#!/usr/bin/env sage
# reference https://github.com/comaeio/OPCDE/blob/master/2017/15%20ways%20to%20break%20RSA%20security%20-%20Renaud%20Lifchitz/opcde2017-ds-lifchitz-break_rsa.pdf
import sys
def factor(n):
depth = 50
x = PolynomialRing(Zmod(n), "x").gen()
for den in IntegerRange(2, depth + 1):
... | Sage | 3 | CrackerCat/RsaCtfTool | sage/smallfraction.sage | [
"Beerware"
] |
;;;;
;;;; Simple histogram capture example using LFE (Lisp flavored Erlang)
;;;;
(defun record (r n)
(case n
(0 'ok)
(n
(hdr_histogram:record r (random:uniform n))
(record r (- n 1)))))
(defun main (args)
;; Create a fresh HDR histogram instance
(let ((r (case (hdr... | LFE | 4 | Zabrane/hdr_histogram_erl | examples/simple.lfe | [
"CC0-1.0"
] |
@prefix : <http://example.org/base#> .
:c :d [] .
_:b1 :a :b .
| Turtle | 3 | joshrose/audacity | lib-src/lv2/sord/tests/test-id.ttl | [
"CC-BY-3.0"
] |
<?php
/**
* @var array $namespaces
*/
$items = [['name' => 'Namespaces']];
?>
<?= $this->partial('partials/breadcrumb.phtml', ['items'=> $items]) ?>
<div class="namespace-list">
<ul>
<?php foreach ($namespaces as $namespaceName => $ns): ?>
<li>
<a href="<?= $this->url(Zephir\Documentati... | HTML+PHP | 4 | nawawi/zephir | templates/Api/themes/zephir/partials/namespaces.phtml | [
"MIT"
] |
--TEST--
Duplicate labels are not allowed
--FILE--
<?php
foo:
foo:
goto foo;
?>
--EXPECTF--
Fatal error: Label 'foo' already defined in %s on line %d
| PHP | 2 | thiagooak/php-src | Zend/tests/duplicate_label_error.phpt | [
"PHP-3.01"
] |
/* It's an automatically generated code. Do not modify it. */
package com.intellij.ide.fileTemplates.impl;
import com.intellij.lexer.LexerBase;
import com.intellij.psi.tree.IElementType;
%%
%unicode
%public
%class FileTemplateTextLexer
%extends LexerBase
%function advanceImpl
%type IElementType
%eof{ return;
%eof}
... | JFlex | 3 | halotroop2288/consulo | modules/base/lang-impl/src/main/java/com/intellij/ide/fileTemplates/impl/FileTemplateTextLexer.flex | [
"Apache-2.0"
] |
fn putnumln(n: int) -> void = do
putnum(n);
putchar('\n')
end in
fn fib(n: int) -> void =
let a = 0,
b = 1,
c = 0
in
while n != 0 do
putnumln(b);
c = a;
a = b;
b = c + b;
n = n - 1;
end
in do
fib(getnum())
e... | Harbour | 3 | adam-mcdaniel/harbor | examples/fibonacci.hb | [
"Apache-2.0"
] |
#!/usr/bin/env bash
# This file contains the steps that should be run when building a "cache" image with contents that should be
# layered directly **on top of the source tree** once a dev container is created. This avoids having to run long
# running commands like "yarn install" from the ground up. Developers (and sh... | Shell | 3 | sbj42/vscode | .devcontainer/prepare.sh | [
"MIT"
] |
#!/bin/csh
wget https://cms-service-dqm.web.cern.ch/cms-service-dqm/CAF/certification/Cosmics15/status.Cosmics15.week5.html
set MYDAT=`cat status.Cosmics15.week5.html | grep "<title>" | awk -F \( '{print $2}' | awk -F \) '{print $1}'`
set FIN=`date -d"$MYDAT" '+%Y_%m_%d_%H_%M_%S'`
echo ${FIN}
cat status.Cosmics15.w... | Tcsh | 2 | ckamtsikis/cmssw | DPGAnalysis/HcalTools/scripts/cmt/parce_runs.csh | [
"Apache-2.0"
] |
/*
* @LANG: c++
*/
/**
* Test a high character to make sure signedness
* isn't messing us up.
*/
#include <stdio.h>
#include <string.h>
struct Fsm
{
int cs;
// Initialize the machine. Invokes any init statement blocks. Returns 0
// if the machine begins in a non-accepting state and 1 if the machine
// beg... | Ragel in Ruby Host | 5 | podsvirov/colm-suite | test/ragel.d/high2.rl | [
"MIT"
] |
Set map_ADAM2ovf[ovf_,ADAM_variables] "Mapper MAKRO og ADAM overførsler" /
tot.Ty_o "Overførsler"
# Overførsler til uddannelse og aktivering mv.
ledigyd.Tyuly "Ledighedsydelse"
aktarbj.Tyuada "Overførsler til aktiverede i arbejdsmarkedsydelsesordningen udenfor arbejdsstyrken"
# sbeskjo... | GAMS | 4 | gemal/MAKRO | Model/Sets/map_ADAM2ovf.sets.gms | [
"MIT"
] |
; NSD version 4.0.0_imp_2
; nsd-patch zone example.com. run at time Mon Apr 4 15:59:43 2011
$ORIGIN com.
example 3600 IN SOA mainserv.example.net. root.example. (
2003070707 3600 28800 2419200 3600 )
3600 IN NS ns0.xname.org.
3600 IN NS ns1.xname.org.
$ORIGIN d.4.0.3.0.e.f.f.f.3.f.0.1.2.0.example.com.
0 7200 IN IP... | DNS Zone | 3 | gearnode/nsd | tpkg/ipseckey.tdir/ipseckey.zone | [
"BSD-3-Clause"
] |
#cs ----------------------------------------------------------------------------
Devil Server
AutoIt Version: 3.3.14.5
Version: Release ( 22:38 25.11.2018 )
#ce ----------------------------------------------------------------------------
#NoTrayIcon
#include <Misc.au3>
#include <WinAPIFiles.au3>
#include <FileCo... | AutoIt | 2 | ejnshtein/Devil-Backdoor | Devil-Server.au3 | [
"MIT"
] |
! Copyright (C) 2017 Björn Lindqvist
USING: kernel llvm.ffi tools.test ;
{ } [
"my_module" LLVMModuleCreateWithName
! dup LLVMDumpModule
LLVMDisposeModule
] unit-test
{ 10 } [
LLVMInt32Type 10 LLVMVectorType LLVMGetVectorSize
] unit-test
{ 32 } [
LLVMInt32Type LLVMGetIntTypeWidth
] unit-test
| Factor | 4 | alex-ilin/factor | extra/llvm/ffi/ffi-tests.factor | [
"BSD-2-Clause"
] |
CONFIG_COLLECT_TIMESTAMPS=y
CONFIG_USE_BLOBS=y
CONFIG_VENDOR_GOOGLE=y
CONFIG_BOARD_GOOGLE_PARROT=y
CONFIG_HAVE_MRC=y
CONFIG_MRC_FILE="/build/parrot/firmware/mrc.bin"
CONFIG_CBFS_SIZE=0x100000
CONFIG_CONSOLE_CBMEM=y
# CONFIG_CONSOLE_SERIAL is not set
# CONFIG_PCI_ROM_RUN is not set
# CONFIG_ON_DEVICE_ROM_RUN is not set
... | Parrot | 2 | MIPS/CI20_chromiumos_chromiumos-overlay | sys-boot/coreboot/files/configs/config.parrot | [
"BSD-3-Clause",
"MIT"
] |
{% assign offset = include.offset | default: 40 %}
{% assign limit = include.limit | default: 7 %}
{% assign percentage = include.percentage | default: 20 %}
{% assign percentage-color = include.percentage-color | default: "green" %}
{% assign due = include.due | default: "2 days" %}
<div class="card">
{% include ui/p... | HTML | 3 | muhginanjar/tabler | src/pages/_includes/cards/project-kanban.html | [
"MIT"
] |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Multiple animated skinned meshes</title>
<meta charset="utf-8">
<meta content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" name="viewport">
<link type="text/css" rel="stylesheet" href="main.css">
</head>
<body>
<div id="info">
... | HTML | 5 | omgEn/threeJs | examples/webgl_animation_multiple.html | [
"MIT"
] |
def venv [venv-dir] {
let venv-abs-dir = ($venv-dir | path expand)
let venv-name = ($venv-abs-dir | path basename)
let old-path = ($nu.path | str collect (path-sep))
let new-path = (if (windows?) { (venv-path-windows $venv-abs-dir) } { (venv-path-unix $venv-abs-dir) })
let new-env = [[name, value];
... | Nu | 4 | lily-mara/nu_scripts | virtual_environments/venv.nu | [
"MIT"
] |
@forward 'select-theme' hide color, theme, typography;
@forward 'select-theme' as mat-select-* hide mat-select-density;
| SCSS | 2 | RAM-16/gdscaec-Angular | node_modules/@angular/material/select/_select-legacy-index.scss | [
"MIT"
] |
{
"labels": {
"formats": [
${"battleLabelsTemplates.xc":"def.hitLogBackground"},
${"battleLabelsTemplates.xc":"def.hitLogBody"},
${"battleLabelsTemplates.xc":"def.hitLogHeader"},
${"battleLabelsTemplates.xc":"def.totalEfficiency"},
${"battleLabelsTemplates.xc":"def.totalHP"},
... | XC | 0 | elektrosmoker/RelhaxModpack | RelhaxModpack/RelhaxUnitTests/bin/Debug/patch_regressions/followPath/check_03.xc | [
"Apache-2.0"
] |
#!/bin/sh
#
# Generate a discrete lookup table for a sigmoid function in the smoothstep
# family (https://en.wikipedia.org/wiki/Smoothstep), where the lookup table
# entries correspond to x in [1/nsteps, 2/nsteps, ..., nsteps/nsteps]. Encode
# the entries using a binary fixed point representation.
#
# Usage: smoothste... | Shell | 5 | Mu-L/jemalloc | include/jemalloc/internal/smoothstep.sh | [
"BSD-2-Clause"
] |
; -*- scheme -*-
(load "system.lsp")
(load "compiler.lsp")
(make-system-image "flisp.boot")
| Common Lisp | 3 | greimel/julia | src/flisp/mkboot1.lsp | [
"Zlib"
] |
struct Foo<'a, A> {}
//~^ ERROR parameter `'a` is never used
//~| ERROR parameter `A` is never used
fn main() {}
| Rust | 1 | Eric-Arellano/rust | src/test/ui/issues/issue-36299.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#!/usr/bin/gnuplot -persist
set title "Boehm-GC: Optimized vs. non-Optimized (Generational Mode)"
set xlabel "Interval #"
set ylabel "Pause Time [ms]"
set terminal pdfcairo transparent enhanced fontscale 0.5 size 5.00in, 3.00in
set output "GC_bench_incr.pdf"
plot "boehm_incr.txt" title "non-optimized GC" w i, "boe... | Gnuplot | 4 | gamemaker1/v | vlib/v/tests/bench/gcboehm/GC_bench_incr.plt | [
"MIT"
] |
#
# script to convert mchedr (USGS) format data for input file
# or gather it from remote website
#
# originally this was a
# script to collect mine bulletin data from USGS website via ftp
#
# J.Eakins
# 11/2007 with updates for ftp collection of older data, 4/2008
#
use Datascope;
use File::Basename;
use File::... | XProc | 4 | jreyes1108/antelope_contrib | bin/import/mchedr2db/mchedr2db.xpl | [
"BSD-2-Clause",
"MIT"
] |
# pyenv
This plugin looks for [pyenv](https://github.com/pyenv/pyenv), a Simple Python version
management system, and loads it if it's found. It also loads pyenv-virtualenv, a pyenv
plugin to manage virtualenv, if it's found.
To use it, add `pyenv` to the plugins array in your zshrc file:
```zsh
plugins=(... pyenv)
... | Markdown | 4 | sshishov/ohmyzsh | plugins/pyenv/README.md | [
"MIT"
] |
# set base frequency
60 mtof 0 pset
'amps' '0.5 0.5 0.1 0.1 0.2 0.2' gen_vals
'padsynth' 262144 0 p 40 'amps' gen_padsynth
36 mtof 0 p / 'padsynth' tbldur / 0 phasor
1 0 0 'padsynth' tabread 0 0.1 3 randi *
60 mtof 0 p / 'padsynth' tbldur / 0 phasor
1 0 0 'padsynth' tabread 0 0.1 2 randi *
65 mtof 0 p / 'pad... | SourcePawn | 2 | aleatoricforest/Sporth | examples/padsynth.sp | [
"MIT"
] |
#import <Foundation/Foundation.h>
typedef NSString * const PandaStyle NS_STRING_ENUM;
extern PandaStyle PandaStyleCute;
| C | 2 | lwhsu/swift | test/IRGen/Inputs/clang_string_enum.h | [
"Apache-2.0"
] |
"""Constants for the Radio Thermostat integration."""
DOMAIN = "radiotherm"
TIMEOUT = 25
| Python | 1 | mib1185/core | homeassistant/components/radiotherm/const.py | [
"Apache-2.0"
] |
package com.baeldung.properties.testproperty;
import org.assertj.core.api.Assertions;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestPropertySour... | Java | 4 | DBatOWL/tutorials | spring-boot-modules/spring-boot-properties/src/test/java/com/baeldung/properties/testproperty/FilePropertyInjectionUnitTest.java | [
"MIT"
] |
-- name: create-table-builds
CREATE TABLE IF NOT EXISTS builds (
build_id INTEGER PRIMARY KEY AUTOINCREMENT
,build_repo_id INTEGER
,build_trigger TEXT
,build_number INTEGER
,build_parent INTEGER
,build_status TEXT
,build_error TEXT
,build_event TEXT
,build_a... | SQL | 4 | sthagen/drone-drone | store/shared/migrate/sqlite/files/004_create_table_builds.sql | [
"Apache-2.0"
] |
{{ flashSession.output() }}
<div class="row">
<div class="col-sm-12">
<div class="card card-secondary">
<div class="card-header">
<h3 class="card-title">
Controllers List<br />
<small>All controllers that we managed to find</small>
... | Volt | 4 | PSD-Company/phalcon-devtools-docker | src/Web/Tools/Views/controllers/index.volt | [
"BSD-3-Clause"
] |
(defprolog g
a <--;)
(defprolog h
b <--;)
(defprolog i
a <--;
b <--;)
(defprolog j
b <--;)
(defprolog f
X <-- (g X) (fork [(h X) (i X) (j X)]);) | Shen | 3 | tizoc/chibi-shen | shen-test-programs/fork.shen | [
"BSD-3-Clause"
] |
<component name="icon">
<nss>
icon: {
width: 24,
height: 24,
fontFamily: "ionicons"
}
</nss>
<layout class="icon">
</layout>
<script>
module.exports = class extends Component {
constructor(attr) {
super(attr);
... | nesC | 4 | wiltonlazary/Nidium | src/Embed/framework/components/icon.nc | [
"Apache-2.0",
"BSD-2-Clause"
] |
// moduleSuffixes has one entry and there's a matching package with a specific path.
// @fullEmitPaths: true
// @filename: /tsconfig.json
{
"compilerOptions": {
"allowJs": true,
"checkJs": false,
"outDir": "bin",
"moduleResolution": "node",
"traceResolution": true,
"moduleSuffixes": [".ios"]
}
... | TypeScript | 4 | monciego/TypeScript | tests/cases/compiler/moduleResolutionWithSuffixes_one_externalModulePath.ts | [
"Apache-2.0"
] |
/*##############################################################################
HPCC SYSTEMS software Copyright (C) 2017 HPCC Systems®.
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... | ECL | 4 | miguelvazq/HPCC-Platform | testing/regress/ecl/dictallnodes.ecl | [
"Apache-2.0"
] |
Strict
Import "bmk_modutil.bmx"
Import "bmk_util.bmx"
Type TInfo
Field info:TList=New TList
Method Find$( key$ )
key=key.ToLower()+":"
For Local t$=EachIn info
If t.ToLower()[..Len(key)]=key Return t[Len(key)..].Trim()
Next
End Method
Method ReadFromStream:TModInfo( stream:TStream )
While Not stre... | BlitzMax | 5 | jabdoa2/blitzmax | src/bmk/bmk_modinfo.bmx | [
"Zlib"
] |
CREATE TABLE `rollups` (
`metric_id` int(10) unsigned NOT NULL,
`value` bigint(20) DEFAULT NULL,
PRIMARY KEY (`metric_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
| LOLCODE | 3 | Madhur1997/skeema | fs/testdata/sqlsymlinks/product/extensiondontmatter.lol | [
"Apache-2.0"
] |
from django.contrib import admin
from django.contrib.admin import sites
from django.test import SimpleTestCase, override_settings
from .sites import CustomAdminSite
@override_settings(INSTALLED_APPS=[
'admin_default_site.apps.MyCustomAdminConfig',
'django.contrib.auth',
'django.contrib.contenttypes',
... | Python | 4 | KaushikSathvara/django | tests/admin_default_site/tests.py | [
"BSD-3-Clause",
"0BSD"
] |
#tag Class
Protected Class GKTurnBasedParticipant
Inherits NSObject
#tag Method, Flags = &h21
Private Shared Function ClassRef() As Ptr
static ref as ptr = NSClassFromString("GKTurnBasedParticipant")
return ref
End Function
#tag EndMethod
#tag ComputedProperty, Flags = &h0
#tag Getter
Get
dec... | Xojo | 3 | kingj5/iOSKit | Modules/GameKitFolder/GameKit/GKTurnBasedParticipant.xojo_code | [
"MIT"
] |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#include "test_precomp.hpp"
#include <opencv2/dnn/shape_utils.hpp>
#include "npy_blob.hpp"
namespace opencv_test { namespace ... | C++ | 4 | nowireless/opencv | modules/dnn/test/test_model.cpp | [
"Apache-2.0"
] |
#!/usr/bin/env python3
from Crypto.Util.number import *
n = 5217835083406167653066114276343752817593917316254883491046138038248368102350444947523990049184107478282139224932086082309732537777917977815100789249958093040646158072676821408874306823859708189598944762475696607757827648178113505164351747230349023720340706349... | Sage | 3 | fossabot/Crypto-Course | RSA/Stereotyped/solve.sage | [
"MIT"
] |
ARCHIVE_WRITE_NEW(3) manual page
== NAME ==
'''archive_write_new'''
- functions for creating archives
== LIBRARY ==
Streaming Archive Library (libarchive, -larchive)
== SYNOPSIS ==
'''<nowiki>#include <archive.h></nowiki>'''
<br>
''struct archive *''
<br>
'''archive_write_new'''(''void'');
== DESCRIPTION ==... | MediaWiki | 1 | probonopd/imagewriter | dependencies/libarchive-3.4.2/doc/wiki/ManPageArchiveWriteNew3.wiki | [
"Apache-2.0"
] |
print "hello world"
| Nit | 1 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Nit/hello_world.nit | [
"MIT"
] |
rm -f log dir1/log dir1/stinky
touch t1.do
../../flush-cache
redo t1
touch t1.do
../../flush-cache
redo t1
../../flush-cache
redo-ifchange t1
C1="$(wc -l <dir1/log)"
C2="$(wc -l <log)"
. ../../skip-if-minimal-do.sh
if [ "$C1" -ne 1 -o "$C2" -ne 2 ]; then
echo "failed: t1>t1, c1=$C1, c2=$C2" >&2
exit 55
fi
| Stata | 2 | BlameJohnny/redo | t/250-makedir/dirtest/all.do | [
"Apache-2.0"
] |
Hello <%= @user.name -%>,
Your password has been reset.
| RHTML | 2 | andypohl/kent | src/hg/encode/hgEncodeSubmit/app/views/user_notifier/reset_password.rhtml | [
"MIT"
] |
// https://html.spec.whatwg.org/multipage/obsolete.html#htmlfontelement
[Exposed=Window,
HTMLConstructor]
interface HTMLFontElement : HTMLElement {
[CEReactions, Reflect] attribute [LegacyNullToEmptyString] DOMString color;
[CEReactions, Reflect] attribute DOMString face;
[CEReactions, Reflect] attribute DOMStri... | WebIDL | 3 | Unique184/jsdom | lib/jsdom/living/nodes/HTMLFontElement.webidl | [
"MIT"
] |
<?python
def get_font_size(tag):
if tag.count <= 3:
count = 12
elif tag.count <= 5:
count = 15
elif tag.count <= 7:
count = 18
elif tag.count <= 9:
count = 20
else:
count = 24
font = "%spx" % count
... | Genshi | 3 | CarlosGabaldon/calabro | calabro/widgets/templates/tags.kid | [
"MIT"
] |
// Proposed webidl
[Exposed=Window]
interface EditContextTextRange {
attribute long start;
attribute long end;
};
[Exposed=Window]
interface TextUpdateEvent : Event {
readonly attribute EditContextTextRange updateRange;
readonly attribute DOMString updateText;
readonly attribute EditContextTextRang... | WebIDL | 4 | SaiCorporation/Project-2 | EditContext/editcontext.webidl | [
"CC-BY-4.0"
] |
{
"domain": "ue_smart_radio",
"name": "Logitech UE Smart Radio",
"documentation": "https://www.home-assistant.io/integrations/ue_smart_radio",
"codeowners": [],
"iot_class": "cloud_polling"
}
| JSON | 2 | MrDelik/core | homeassistant/components/ue_smart_radio/manifest.json | [
"Apache-2.0"
] |
\include "deutsch.ly"
| LilyPond | 0 | HolgerPeters/lyp | spec/user_files/include_stock.ly | [
"MIT"
] |
<p class="bold">offline document storage</p>
<p> </p>
<p>cryptee uses an encrypted offline storage on your device to store all your offline documents. if you'd like to conveniently delete all offline documents stored on this device, you can do this with one click here:</p>
<p> </p>
<button onclick="clea... | Kit | 2 | pws1453/web-client | source/imports/app/account-tab-docs-settings-storage-caches.kit | [
"MIT"
] |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Igor Jerosimić, 2019-2020
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-11 20:56+0200\n"
"PO-Revision-Date: 2020-05-12 20:01+0000\n"
"Last-Translator: Transifex Bot <>\n... | Gettext Catalog | 3 | jpmallarino/django | django/contrib/postgres/locale/sr_Latn/LC_MESSAGES/django.po | [
"BSD-3-Clause",
"0BSD"
] |
TDScriptLeafNode{#name:'postUpgradeRebuildCharacterCollectionIndexes',#contents:'[ :topez :objIn :tokens :command :commandNode |
| opts args |
\"for help: ./postUpgradeRebuildCharacterCollectionIndexes -h\"
command
getOptsMixedLongShort:
{#(\'help\' $h #\'none\').
#(\'sourceVersion\' nil #\'requi... | STON | 4 | ahdach/GsDevKit_home | sys/default/server/upgrade/postUpgradeRebuildCharacterCollectionIndexes.ston | [
"MIT"
] |
(unless (find-package :ql-to-nix-util)
(load "ql-to-nix-util.lisp"))
(defpackage :ql-to-nix-quicklisp-bootstrap
(:use :common-lisp :ql-to-nix-util)
(:export #:with-quicklisp)
(:documentation
"This package provides a way to create a temporary quicklisp installation."))
(in-package :ql-to-nix-quicklisp-bootstr... | Common Lisp | 4 | collinwright/nixpkgs | pkgs/development/lisp-modules/quicklisp-to-nix/quicklisp-bootstrap.lisp | [
"MIT"
] |
extends Control
onready var render_distance_label = $RenderDistanceLabel
onready var render_distance_slider = $RenderDistanceSlider
onready var fog_checkbox = $FogCheckBox
func _ready():
render_distance_slider.value = Settings.render_distance
render_distance_label.text = "Render distance: " + str(Settings.render_d... | GDScript | 4 | jonbonazza/godot-demo-projects | 3d/voxel/menu/options/option_buttons.gd | [
"MIT"
] |
i 00001 17 24 02003 00 042 0017
i 00002 00 012 2005 00 040 0016
i 00003 00 001 0000 00 040 0003
i 00004 00 001 2004 00 040 0002
i 00005 00 001 2003 00 040 0001
i 00006 16 045 0017 17 25 00004
i 00007 17 35 00020 03 25 77745
i 00010 03 35 00020 02 25 77756
i 00011 02 35 00020 01 25 77767
i 00012 01 35 00020 00 012 2000
... | Octave | 0 | besm6/mesm6 | test/stx/stx.oct | [
"MIT"
] |
object UninstSharedFileForm: TUninstSharedFileForm
Left = 200
Top = 108
BorderIcons = [biSystemMenu]
BorderStyle = bsDialog
Caption = 'UninstSharedFileForm'
ClientHeight = 225
ClientWidth = 397
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
... | Pascal | 3 | Patriccollu/issrc | Projects/UninstSharedFileForm.dfm | [
"FSFAP"
] |
-- Copyright 2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local json = require("json")
name = "ARIN"
type = "api"
function start()
set_rate_limit(1)
end
function asn(ctx, addr, asn)
if addr == "" then
return
... | Ada | 4 | Elon143/Amass | resources/scripts/api/arin.ads | [
"Apache-2.0"
] |
USING: assocs help.markup help.syntax trees ;
IN: trees.avl
HELP: AVL{
{ $syntax "AVL{ { key value }... }" }
{ $values { "key" "a key" } { "value" "a value" } }
{ $description "Literal syntax for an AVL tree." } ;
HELP: <avl>
{ $values { "tree" avl } }
{ $description "Creates an empty AVL tree" } ;
HELP: >avl
{ $val... | Factor | 5 | alex-ilin/factor | extra/trees/avl/avl-docs.factor | [
"BSD-2-Clause"
] |
;;; Test equality functions
(require 'test)
;; eq
(assert-exit (eq 'a 'a))
(assert-exit (eq 'b 'b))
(assert-exit (not (eq 'a 'b)))
(assert-exit (not (eq 10 10)))
(let ((var 10))
(assert-exit (eq var var)))
;; eql
(assert-exit (eql 100 100))
(assert-exit (eql 10 10))
(assert-exit (eql 10.1 10.1))
(assert-exit (no... | wisp | 4 | skeeto/wisp | test/eq-test.wisp | [
"Unlicense"
] |
pub struct GenX<S> {
inner: S,
}
impl<S> Into<S> for GenX<S> { //~ ERROR conflicting implementations
fn into(self) -> S {
self.inner
}
}
fn main() {}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/error-codes/e0119/issue-27403.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
syntax = "proto2";
import "google/protobuf/timestamp.proto";
package upb_test;
message MapTest {
map<string, double> map_string_double = 1;
}
message PackedTest {
repeated bool bool_packed = 1 [packed = true];
repeated int32 i32_packed = 2 [packed = true];
repeated int64 i64_packed = 3 [packed = true];
r... | Protocol Buffer | 3 | warlock135/grpc | third_party/upb/tests/bindings/lua/test.proto | [
"Apache-2.0"
] |
{
global:
*horovod*;
# PyTorch binding
*PyInit*;
*initmpi_lib_v2*;
# Legacy PyTorch binding
*init_mpi_lib*;
*init_mpi_lib_impl*;
local: *;
};
| Linker Script | 0 | markWJJ/horovod | horovod.lds | [
"Apache-2.0"
] |
/home/spinalvm/hdl/riscv-compliance/work//C.BNEZ.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 | 1 | cbrune/VexRiscv | src/test/resources/asm/C.BNEZ.elf.objdump | [
"MIT"
] |
package com.baeldung.mapstruct.mappingCollections.dto;
import java.util.ArrayList;
import java.util.List;
public class CompanyDTO {
private List<EmployeeDTO> employees;
public List<EmployeeDTO> getEmployees() {
return employees;
}
public void setEmployees(List<EmployeeDTO> employees) {
... | Java | 4 | DBatOWL/tutorials | mapstruct/src/main/java/com/baeldung/mapstruct/mappingCollections/dto/CompanyDTO.java | [
"MIT"
] |
lorem ipsum,[[dolor sit amet]],[[consectetur||https://www.sun.com]] adipiscing elit.
| Creole | 0 | jquorning/ada-wiki | regtests/expect/wiki-import/q.creole | [
"Apache-2.0"
] |
<mt:include module="<__trans phrase="Config">">
<!DOCTYPE html>
<html lang="<mt:bloglanguage>" itemscope itemtype="http://schema.org/WebPage">
<head>
<meta charset="<mt:publishcharset>">
<title><mt:categorylabel> | <__trans phrase="News"> | <mt:blogname encode_html="1"></title>
<meta name="description" content="<mt:if ... | MTML | 4 | movabletype/mt-theme-SimpleCorporate | themes/simplecorporate/templates/category_entry_listing.mtml | [
"MIT"
] |
//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 {
/**
* @... | Redcode | 4 | VLiance/GZE | src/Lib_GZ/Input/Key.cw | [
"Apache-2.0"
] |
mes 2,2,2
exp $etext
pro $etext,0
end 0
| Eiffel | 0 | wyan/ack | mach/em22/libend/etext.e | [
"BSD-3-Clause"
] |
create-react-class = require \create-react-class
Form = create-react-class do
# render :: a -> ReactElement
render: ->
div null,
# SELECTED COUNTRIES
if @state.selected-countries.length > 0
div do
style: margin: 8
... | LiveScript | 5 | rodcope1/react-selectize-rodcope1 | public/examples/multi/ChangeCallback.ls | [
"Apache-2.0"
] |
Strict
?Win32
Framework BRL.D3D7Max2D
?MacOS
Framework BRL.GLMax2D
?
Import BRL.GNet
Import BRL.BASIC
Import BRL.PNGLoader
Const GAMEPORT=12345
Const SLOT_TYPE=0
Const SLOT_NAME=1
Const SLOT_CHAT=2
Const SlOT_SCORE=3
Const SLOT_X=4
Const SLOT_Y=5
Const SLOT_VX=6
Const SLOT_VY=7
Const SLOT_ROT=8
Const SLOT_TIMEOUT... | BlitzMax | 5 | jabdoa2/blitzmax | samples/mak/gnetdemo.bmx | [
"Zlib"
] |
<p>before</p>
<p>after</p> | HTML | 0 | Theo-Steiner/svelte | test/hydration/samples/if-block-false/_before.html | [
"MIT"
] |
;; -*- no-byte-compile: t; -*-
;;; lang/rst/packages.el
(package! sphinx-mode :pin "b5ac514e213459dcc57184086f10b5b6be3cecd8")
| Emacs Lisp | 2 | leezu/doom-emacs | modules/lang/rst/packages.el | [
"MIT"
] |
Add a debug argument to `web.run_app()` for enabling debug mode on loop.
| Cucumber | 4 | ikrivosheev/aiohttp | CHANGES/3796.feature | [
"Apache-2.0"
] |
import ThirdPartyEmailPasswordNode from 'supertokens-node/recipe/thirdpartyemailpassword'
import SessionNode from 'supertokens-node/recipe/session'
import { appInfo } from './appInfo'
export let backendConfig = () => {
return {
framework: 'express',
supertokens: {
connectionURI: 'https://try.supertoken... | JavaScript | 5 | blomqma/next.js | examples/with-supertokens/config/backendConfig.js | [
"MIT"
] |
#ifndef NPY_SIMD
#error "Not a standalone header"
#endif
#ifndef _NPY_SIMD_AVX2_UTILS_H
#define _NPY_SIMD_AVX2_UTILS_H
#define npyv256_shuffle_odd(A) _mm256_permute4x64_epi64(A, _MM_SHUFFLE(3, 1, 2, 0))
#define npyv256_shuffle_odd_ps(A) _mm256_castsi256_ps(npyv256_shuffle_odd(_mm256_castps_si256(A)))
#define n... | C | 4 | iam-abbas/numpy | numpy/core/src/common/simd/avx2/utils.h | [
"BSD-3-Clause"
] |
CREATE TABLE `tb_yzcwyrztvj` (
`col_ubxpjfudbv` timestamp(5) NOT NULL DEFAULT CURRENT_TIMESTAMP(5),
PRIMARY KEY (`col_ubxpjfudbv`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
| SQL | 3 | yuanweikang2020/canal | parse/src/test/resources/ddl/alter/mysql_6.sql | [
"Apache-2.0"
] |
; Purpose: Automates RogueKillerCMD cleaning
; Requirements: RogueKillerCMD.exe placed in the same directory as this compiled file
; Author: reddit.com/user/SleepyDoge
; Version: 1.0.0-TRON
; Misc: Included for use with Tron by reddit.com/user/vocatus
#include <MsgBoxConstants.au3>
#includ... | AutoIt | 4 | Mchar7/tron | resources/stage_3_disinfect/roguekiller/RogueKillerAutomation_source.au3 | [
"MIT"
] |
fileFormatVersion: 2
guid: 4655b85b9047b42e0b35f79c9245b65a
folderAsset: yes
timeCreated: 1516234013
licenseType: Free
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| Unity3D Asset | 0 | cihan-demir/NineMensMorris | MLPYthonEnv/ml-agents-release_17/Project/Assets/ML-Agents/Examples/PushBlockWithInput/Scenes.meta | [
"MIT"
] |
%%{
machine css_parser;
alphtype unsigned char;
include css_syntax "css_syntax.rl";
main := selectors_group;
}%%
%% write data;
#include <cstddef>
namespace rspamd::css {
int
parse_css_selector (const unsigned char *data, std::size_t len)
{
const unsigned char *p = data, *pe = data + len, *eof;
int cs;... | Ragel in Ruby Host | 4 | msuslu/rspamd | src/libserver/css/css_selector_parser.rl | [
"Apache-2.0"
] |
//! Slow, fallback algorithm for cases the Eisel-Lemire algorithm cannot round.
use crate::num::dec2flt::common::BiasedFp;
use crate::num::dec2flt::decimal::{parse_decimal, Decimal};
use crate::num::dec2flt::float::RawFloat;
/// Parse the significant digits and biased, binary exponent of a float.
///
/// This is a fa... | Rust | 5 | mbc-git/rust | library/core/src/num/dec2flt/slow.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
'***************************************************************************************
' HalfDuplexSerial
' Copyright (c) 2010 Dave Hein
' July 6, 2010
' See end of file for terms of use
'***************************************************************************************
' This object implements a half-duplex ser... | Propeller Spin | 5 | deets/propeller | libraries/community/p1/All/SpinLMM/SpinLMM10/HalfDuplexSerial.spin | [
"MIT"
] |
module Lang
pub type array[#e] extern true
impl array[#e] {
fn len () extern("opal.list") "array.len" -> int
fn cap () extern("opal.list") "array.cap" -> int
fn cap_set (n : int) extern("opal.list") "array.cap_set" -> unit
fn get (i : int) extern("opal.list") "arr... | Opal | 4 | iitalics/Opal | opal_libs/Lang/array.opal | [
"MIT"
] |
/* MMPX.glc
Copyright 2020 Morgan McGuire & Mara Gagiu.
Provided under the Open Source MIT license https://opensource.org/licenses/MIT
See js-demo.html for the commented source code.
This is an optimized GLSL port of that version
by Morgan McGuire and Mara Gagiu.
*/
#define ABGR8 uint
ABGR8 src(int x... | Tcsh | 4 | ianclawson/Provenance | Cores/PPSSPP/cmake/assets/shaders/tex_mmpx.csh | [
"BSD-3-Clause"
] |
<GameProjectFile>
<PropertyGroup Type="Node" Name="LevelSelection" ID="3a70c19b-f7ee-42c6-b8b3-209bfbde5c21" Version="2.0.0.0" />
<Content ctype="GameProjectContent">
<Content>
<Animation Duration="0" Speed="1" />
<ObjectData Name="Node_0" CanEdit="False" FrameEvent="" ctype="SingleNodeObjectData">
... | Csound | 3 | chukong/CocosStudioSamples | DemoMicroCardGame/CocosStudioResources/cocosstudio/LevelSelection.csd | [
"MIT"
] |
#!/bin/sh
# 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... | Shell | 4 | arghyadip01/grpc | tools/run_tests/sanity/check_version.sh | [
"Apache-2.0"
] |
package org.xtendroid.db
import java.util.ArrayList
import java.util.Collection
import java.util.List
import java.util.Map
/**
* An List that lazily loads items from a query and loads a batch of beans
* at-a-time. This is ideal for an Adapter that can scroll through an infinite list
* of items from the database, ... | Xtend | 5 | Buggaboo/Xtendroid | Xtendroid/src/org/xtendroid/db/LazyList.xtend | [
"MIT"
] |
/*
** Case Study Financial Econometrics 4.3
**
** Purpose:
** Compute bipower variation and realized variance
**
** Date:
** 16/01/2015
**
** Author:
** Tamer Dilaver, Koen de Man & Sina Zolnoor
**
** Supervisor:
** L.H. Hoogerheide & S.J. Koopman
**
*/
#include <oxstd.h>
#include <oxfloat.h>
/*
** Functi... | Ox | 5 | tamerdilaver/Group4_Code_Data | 7ComputeRV&BV.ox | [
"MIT"
] |
--TEST--
Bug #35699 (date() can't handle leap years before 1970)
--FILE--
<?php
date_default_timezone_set("UTC");
echo date(DATE_ISO8601, strtotime('1964-06-06')), "\n";
echo date(DATE_ISO8601, strtotime('1963-06-06')), "\n";
echo date(DATE_ISO8601, strtotime('1964-01-06')), "\n";
?>
--EXPECT--
1964-06-06T00:00:00+000... | PHP | 3 | guomoumou123/php5.5.10 | ext/date/tests/bug35699.phpt | [
"PHP-3.01"
] |
/// <reference path='fourslash.ts'/>
////function x1(x: 'hi');
////function x1(y: 'bye');
////function x1(z: string);
////function x1(a: any) {
////}
////
////x1(''/*1*/);
////x1('hi'/*2*/);
////x1('bye'/*3*/);
verify.signatureHelp(
{ marker: "1", overloadsCount: 3, parameterName: "z", parameterSpan:... | TypeScript | 4 | nilamjadhav/TypeScript | tests/cases/fourslash/signatureHelpOnOverloadOnConst.ts | [
"Apache-2.0"
] |
// run-pass
fn hrtb(f: impl for<'a> Fn(&'a u32) -> &'a u32) -> u32 {
f(&22) + f(&44)
}
fn main() {
let sum = hrtb(|x| x);
assert_eq!(sum, 22 + 44);
}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/impl-trait/universal_hrtb_named.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
--TEST--
Unserializing payload with unrealistically large element counts
--FILE--
<?php
var_dump(unserialize("a:1000000000:{}"));
var_dump(unserialize("O:1000000000:\"\":0:{}"));
var_dump(unserialize("O:1:\"X\":1000000000:{}"));
var_dump(unserialize("C:1:\"X\":1000000000:{}"));
?>
--EXPECTF--
Notice: unserialize(): E... | PHP | 3 | thiagooak/php-src | ext/standard/tests/serialize/unserialize_large.phpt | [
"PHP-3.01"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.