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 |
|---|---|---|---|---|---|
require ['./config', './testPeer'], ->
| Literate CoffeeScript | 1 | zot/Leisure | server/testPeerMain.litcoffee | [
"Zlib"
] |
HAI 1.2
I HAS A NAME ITZ "longcat"
VISIBLE "my " "name iz " NAME " and I'm long"
VISIBLE "nice to meet " "ya"
I HAS A YOUR_NAME
VISIBLE "Enter yer name:"
GIMMEH YOUR_NAME
VISIBLE "Hey, " YOUR_NAME
KTHXBYE
| LOLCODE | 2 | Himanshu21git/Lokalise-source | lolcode-fun-post/io.lol | [
"MIT"
] |
// (c) Copyright 1995-2019 Xilinx, Inc. All rights reserved.
//
// This file contains confidential and proprietary information
// of Xilinx, Inc. and is protected under U.S. and
// international copyright and other intellectual property
// laws.
//
// DISCLAIMER
// This disclaimer is not a license and does not grant ... | Verilog | 3 | bopopescu/hdmi-led | hdmi_led.srcs/sources_1/ip/v_gamma_lut_0/v_gamma_lut_0.veo | [
"MIT"
] |
module Examples
pub fn fizzbuzz (n) {
match (n % 3, n % 5) {
(0, 0) { "FizzBuzz" }
(0, _) { "Fizz" }
(_, 0) { "Buzz" }
_ { n.str() }
}
}
pub fn main () {
(1, 100).range_incl |i| {
IO::print(fizzbuzz(i) + "\n");
}
} | Opal | 4 | iitalics/Opal | examples/fizzbuzz.opal | [
"MIT"
] |
frequency,raw,error,smoothed,error_smoothed,equalization,parametric_eq,fixed_band_eq,equalized_raw,equalized_smoothed,target
20.00,15.76,8.38,15.77,8.38,-8.38,-8.08,-3.89,7.38,7.38,7.38
20.20,15.76,8.39,15.76,8.39,-8.39,-8.09,-3.99,7.37,7.37,7.37
20.40,15.75,8.39,15.76,8.39,-8.40,-8.10,-4.10,7.36,7.36,7.36
20.61,15.75,... | CSV | 2 | vinzmc/AutoEq | results/referenceaudioanalyzer/referenceaudioanalyzer_siec_harman_in-ear_2019v2/Fischer Audio TS-9002/Fischer Audio TS-9002.csv | [
"MIT"
] |
--TEST--
Test session_set_save_handler() : session_gc() returns the number of deleted records.
--INI--
session.name=PHPSESSID
session.save_handler=files
session.gc_probability=0
--EXTENSIONS--
session
--SKIPIF--
<?php include('skipif.inc'); ?>
--FILE--
<?php
ob_start();
echo "*** Test session_set_save_handler() : ses... | PHP | 4 | NathanFreeman/php-src | ext/session/tests/bug78624.phpt | [
"PHP-3.01"
] |
PHP_ARG_ENABLE([fileinfo],
[for fileinfo support],
[AS_HELP_STRING([--disable-fileinfo],
[Disable fileinfo support])],
[yes])
if test "$PHP_FILEINFO" != "no"; then
libmagic_sources=" \
libmagic/apprentice.c libmagic/apptype.c libmagic/ascmagic.c \
libmagic/cdf.c libmagic/cdf_time.c libmagic/compre... | M4 | 3 | NathanFreeman/php-src | ext/fileinfo/config.m4 | [
"PHP-3.01"
] |
// compile-flags: -Cdebuginfo=2 -Copt-level=0 -Ccodegen-units=1
// ignore-tidy-linelength
// This test checks the debuginfo for the expected 3 vtables is generated for correct names and number
// of entries.
// NONMSVC-LABEL: !DIGlobalVariable(name: "<debug_vtable::Foo as debug_vtable::SomeTrait>::{vtable}"
// MSVC-L... | Rust | 4 | david-perez/rust | src/test/codegen/debug-vtable.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
--TEST--
Test mktime() function : error conditions
--FILE--
<?php
//Set the default time zone
date_default_timezone_set("Europe/London");
echo "*** Testing mktime() : error conditions ***\n";
echo "\n-- Testing mktime() function with Zero arguments --\n";
try {
var_dump( mktime() );
} catch (TypeError $e) {
e... | PHP | 4 | NathanFreeman/php-src | ext/date/tests/mktime_error.phpt | [
"PHP-3.01"
] |
<template>
<v-list-item
:href="item.href"
:rel="item.href ? 'nofollow' : undefined"
:target="item.href ? '_blank' : undefined"
:to="item.to"
class="v-list-item--default"
color="primary"
v-bind="$attrs"
v-on="$listeners"
>
<v-list-item-icon v-if="item.icon">
<v-icon v-text="... | Vue | 4 | VBeytok/vuetify | packages/docs/src/layouts/default/ListItem.vue | [
"MIT"
] |
// @noImplicitAny: true
// @target: ESNext
declare class A {
#prop;
}
class B {
#prop;
} | TypeScript | 3 | monciego/TypeScript | tests/cases/conformance/classes/members/privateNames/privateNameAmbientNoImplicitAny.ts | [
"Apache-2.0"
] |
#!/usr/bin/python
#
# Copyright (c) 2009-2021, Google LLC
# 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, thi... | Python | 4 | warlock135/grpc | third_party/upb/benchmarks/gen_synthetic_protos.py | [
"Apache-2.0"
] |
scriptname PN_ArrowCountWidget extends SKI_WidgetBase
; PRIVATE VARIABLES -------------------------------------------------------------------------------
bool _visible = false
int _count = 0
; PROPERTIES --------------------------------------------------------------------------------------
bool Property Vi... | Papyrus | 5 | pragasette/skyui | misc/ArrowCount/Scripts/Source/PN_ArrowCountWidget.psc | [
"Unlicense",
"MIT"
] |
;;;
;;; Tools to handle the DBF file format
;;;
(in-package :pgloader.source.db3)
(defmethod map-rows ((copy-db3 copy-db3) &key process-row-fn)
"Extract DB3 data and call PROCESS-ROW-FN function with a single
argument (a list of column values) for each row."
(with-connection (conn (source-db copy-db3))
(le... | Common Lisp | 5 | micaelle/pgloader | src/sources/db3/db3.lisp | [
"PostgreSQL"
] |
{
'body': {
'0': {
'body': {
'0': {
'range': { '1': 7 },
'loc': { 'end': { 'column': 7 }}
}
}
}
}
}
| Diff | 0 | Hans-Halverson/flow | src/parser/test/esprima/declaration/let/migrated_0001.diff | [
"MIT"
] |
import "$lib/.." / compiler/strutils2
block: # setLen
var a = "abc"
a.setLen 0
a.setLen 3, isInit = false
doAssert a[1] == 'b'
a.setLen 0
a.setLen 3, isInit = true
doAssert a[1] == '\0'
block: # forceCopy
var a: string
a = "foo"
shallow(a)
var b: string
b = a
doAssert b[0].addr == a[0].addr
... | Nimrod | 4 | JohnAD/Nim | tests/stdlib/tstrutils2.nim | [
"MIT"
] |
.q-menu
position: fixed !important
display: inline-block
max-width: $menu-max-width
box-shadow: $menu-box-shadow
background: $menu-background
border-radius: $generic-border-radius
overflow-y: auto
overflow-x: hidden
outline: 0
max-height: 65vh
z-index: $z-menu
&--square
border-radius: 0
| Sass | 2 | ygyg70/quasar | ui/src/components/menu/QMenu.sass | [
"MIT"
] |
= Documentation for Change Password Notify Feature
The change password notify feature emails the user when their password
is changed using the change password feature.
== Auth Value Methods
password_changed_email_body :: Body to use for the password changed emails
password_changed_email_subject :: Subject to use for... | RDoc | 3 | monorkin/rodauth | doc/change_password_notify.rdoc | [
"MIT"
] |
/*
* See example/counting.html
*/
Zone['countingZoneSpec'] = {
name: 'counterZone',
// setTimeout
onScheduleTask: function(delegate, current, target, task) {
this.data.count += 1;
delegate.scheduleTask(target, task);
},
// fires when...
// - clearTimeout
// - setTimeout finishes
onInvokeTask... | JavaScript | 4 | raghavendramohan/angular | packages/zone.js/example/js/counting-zone.js | [
"MIT"
] |
#pragma once
#include <map>
#include <QLabel>
#include <QPushButton>
#include <QVBoxLayout>
#include "selfdrive/common/params.h"
class AbstractAlert : public QFrame {
Q_OBJECT
protected:
AbstractAlert(bool hasRebootBtn, QWidget *parent = nullptr);
QPushButton *snooze_btn;
QVBoxLayout *scrollable_layout;
... | C | 4 | shoes22/openpilot | selfdrive/ui/qt/widgets/offroad_alerts.h | [
"MIT"
] |
package com.baeldung.junit5;
import org.junit.jupiter.api.*;
import java.util.logging.Logger;
import static org.junit.jupiter.api.Assertions.assertTrue;
public class TestAnnotationsUnitTest {
private static final Logger log = Logger.getLogger(TestAnnotationsUnitTest.class.getName());
@BeforeAll
static... | Java | 4 | DBatOWL/tutorials | testing-modules/junit5-migration/src/test/java/com/baeldung/junit5/TestAnnotationsUnitTest.java | [
"MIT"
] |
#indicator_switch_wrapper.switch
ul.list-inline
li: ul#type_switch.indicator_switch.list-inline data-x='candlestick'
li.text-center: a.hand-point data-x='candlestick' href='#' = t('chart.candlestick')
li.text-center: a.hand-point data-x='close' href='#' = t('chart.line')
li.text-center: span |
... | Slim | 2 | gsmlg/peatio | app/views/private/markets/_indicator_switch.html.slim | [
"MIT"
] |
' ********** Copyright 2016 Roku Corp. All Rights Reserved. **********
'Main Scene Initialization with menu, facade and video.
function init()
m.top.backgroundURI = ""
m.top.backgroundColor="0x000000FF"
m.video = m.top.FindNode("MainVideo")
m.list = m.top.FindNode("MenuList")
m.list.setFocus(true)
end function | Brightscript | 3 | khangh/samples | advertising/FullRAFSceneGraphSample/components/VideoScene.brs | [
"MIT"
] |
!
! VMS descrip.mms for g2
!
GD_INCLUDE = [.-.-.GD-1_8_4]
.IFDEF debug
CC_FLAGS = /noopt/debug/nolist/warnings/include_directory=("./src",$(GD_INCLUDE)) \
/define=(DO_PS, DO_X11, DO_GD)
.ELSE
CC_FLAGS = /nolist/warnings/include_directory=("./src",$(GD_INCLUDE)) \
/def... | Module Management System | 3 | visigoth/ViennaRNA | src/RNAforester/g2-0.72/descrip.mms | [
"Python-2.0"
] |
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<ProductVersion>3.5</ProductVersion>
<ProjectGuid>{d6d563f4-0983-4ab5-b167-3e684b6080b2}</ProjectGuid>
<OutputType>exe</OutputType>
... | Oxygene | 2 | mosh/sugar | Sugar.Tests/Sugar.Cooper.Test.oxygene | [
"BSD-3-Clause"
] |
%% Handle code related to args, guard and -> matching for case,
%% fn, receive and friends. try is handled in elixir_erl_try.
-module(elixir_erl_clauses).
-export([match/4, clause/6, clauses/2, guards/4, get_clauses/3]).
-include("elixir.hrl").
%% Get clauses under the given key.
get_clauses(Key, Keyword, As) ->
ca... | Erlang | 5 | doughsay/elixir | lib/elixir/src/elixir_erl_clauses.erl | [
"Apache-2.0"
] |
#N canvas 826 76 531 651 12;
#X obj 31 27 tabsend~;
#X text 322 602 updated for Pd version 0.43;
#X text 159 293 creation argument: initializes table name;
#N canvas 0 22 450 278 (subpatch) 0;
#X array table-1 64 float 0;
#X coords 0 1 63 -1 150 75 1 0 0;
#X restore 336 103 graph;
#X obj 38 193 osc~ 440;
#N canvas 0 22... | Pure Data | 4 | myQwil/pure-data | doc/5.reference/tabsend-receive~-help.pd | [
"TCL"
] |
/* Test file for kate's stata syntax highlighting
*/
*! version 1.2.0 2mar2003 E. Leuven
program define spellsplit
version 7
syntax [anything], spell(varlist min=2 max=2) [ by(varlist)]
tokenize `spell'
local date0 `1'
local date1 `2'
local f0 : format `date0'
loc... | Stata | 3 | dawidsowa/syntax-highlighting | autotests/input/highlight.do | [
"MIT"
] |
/*
* Copyright (c) 2020 Intel Corporation
*
* 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 conditions and ... | NSIS | 5 | ryoon/haxm | Installer/Utils.nsh | [
"BSD-3-Clause"
] |
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*
* Implementation of this file has been influenced by AtlasPHP
*
* @link https://gith... | Zephir | 4 | tidytrax/cphalcon | phalcon/DataMapper/Query/Bind.zep | [
"BSD-3-Clause"
] |
--TEST--
DomDocument::schemaValidateSource() - basic
--CREDITS--
Daniel Convissor <danielc@php.net>
# TestFest 2009 NYPHP
--EXTENSIONS--
dom
--FILE--
<?php
$doc = new DOMDocument;
$doc->load(__DIR__."/book.xml");
$xsd = file_get_contents(__DIR__."/book.xsd");
$result = $doc->schemaValidateSource($xsd);
var_dump($re... | PHP | 3 | NathanFreeman/php-src | ext/dom/tests/DOMDocument_schemaValidateSource_basic.phpt | [
"PHP-3.01"
] |
t gpio 43 sw out0
sleep 1200
t gpio 43 sw out1
t gpio 43 sw out0
d:\autoexec.ash
reboot yes
| AGS Script | 1 | waltersgrey/autoexechack | MegaLapse/20MinInterval/Hero3White/autoexec.ash | [
"MIT"
] |
# RUN: llc -march=amdgcn -verify-machineinstrs -run-pass post-RA-sched %s -o - | FileCheck %s
# This tests a situation where a sub-register of a killed super-register operand
# of V_MOVRELS happens to have an undef use later on. This leads to the post RA
# scheduler adding additional implicit operands to the V_MOVREL... | Mirah | 5 | medismailben/llvm-project | llvm/test/CodeGen/AMDGPU/movrels-bug.mir | [
"Apache-2.0"
] |
/* Rules with a public facing point of entry are camelCase, internal rules are snake_case
For skyQuery and parent-child trees:
wrangler is built so that the parent can skyQuery its children for info at any time,
but children only get information from their direct parent through event-passing to prevent rac... | KRL | 5 | CambodianCoder/pico-engine | packages/pico-engine/krl/io.picolabs.wrangler.krl | [
"MIT"
] |
%!PS-Adobe-3.0 Resource-Encoding
%%Title: VIM-iso-8859-14
%%Version: 1.0 0
%%EndComments
/VIM-iso-8859-14[
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notd... | PostScript | 0 | uga-rosa/neovim | runtime/print/iso-8859-14.ps | [
"Vim"
] |
/*
* Copyright (C) 2007 The Guava 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 agre... | Java | 5 | ksodhi2/guava | guava/src/com/google/common/collect/ClassToInstanceMap.java | [
"Apache-2.0"
] |
Class {
#name : #GtNotificationForwarder,
#superclass : #Object,
#traits : 'TGtUniqueInstance',
#classTraits : 'TGtUniqueInstance classTrait',
#category : #'GToolkit-Notifications-Basic'
}
{ #category : #'api - notification' }
GtNotificationForwarder class >> showNotification: aNotification [
self default showNo... | Smalltalk | 4 | markfirmware/gtoolkit | src/GToolkit-Notifications/GtNotificationForwarder.class.st | [
"MIT"
] |
:- source.
:- [library(ytest)].
:- [library(hacks)].
:- [meta_tests].
meta_expand( Clause, Canon) :-
source_module(M),
indicator( M:Clause, I, _J),
dynamic( I ),
assert(Clause, R),
clause(J, B, R),
fully_strip_module(J, MH, H),
( MH == M
->
HF = H
;
HF = MH:H
),
... | Prolog | 4 | ryandesign/yap | regression/modules/runmeta.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: en\n"
msgid "foo"
msgid_plural "foos"
msgstr[0] "bar"
msgstr[1] "bars"
msgid "{0} no foos|one foo|%count% foos"
msgstr "{0} no bars|one bar|%count% bars"
| Gettext Catalog | 3 | simonberger/symfony | src/Symfony/Component/Translation/Tests/fixtures/plurals.po | [
"MIT"
] |
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
#
# @ECLASS: raine.eclass
# @MAINTAINER: Per Wigren <per.wigren@gmail.com>
# @BLURB: Common functions for Raine and Neoraine
inherit versionator games flag-o-matic
MUPARSER_VERSION="1.28"
SRC_URI="... | Gentoo Eclass | 5 | longlene/clx | games-emulation/raine/files/raine.eclass | [
"MIT"
] |
DROP TABLE "public"."table31";
| SQL | 0 | eazyfin/graphql-engine | cli/commands/testdata/migrate-squash-test/migrations/1588172669752_create_table_public_table31/down.sql | [
"Apache-2.0",
"MIT"
] |
<?Lassoscript
// Last modified: 5/20/08 by ECL, Landmann InterActive
/*
Tagdocs;
{Tagname= LI_CloakEmail }
{Description= Creates a Javascript that cloaks the e-mail }
{Author= Greg Willits }
{AuthorEmail= }
{ModifiedBy= Eric Landmann }
{ModifiedByEmail= support@iterate.ws }
{Date= 5/20/08 }
{Usage= ... | Lasso | 4 | subethaedit/SubEthaEd | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/LassoStartup/LI_CloakEmail.lasso | [
"MIT"
] |
@load ./main
@load ./app-exfil-after_hours.bro
@load ./app-exfil-conn.bro
| Bro | 1 | reservoirlabs/bro-scripts | exfil-detection-framework/__load__.bro | [
"Apache-2.0"
] |
inner iframe content
<button>button</button>
| HTML | 0 | justinforbes/cypress | packages/driver/cypress/fixtures/iframe-inner.html | [
"MIT"
] |
--TEST--
Bug #81475 (stream_isatty emits warning with attached stream wrapper)
--FILE--
<?php
$stdout = fopen('php://stdout', 'wb');
stream_filter_append($stdout, 'string.toupper');
var_dump(stream_isatty($stdout));
?>
--EXPECT--
bool(false)
| PHP | 4 | NathanFreeman/php-src | ext/standard/tests/filters/bug81475.phpt | [
"PHP-3.01"
] |
<% simple_files = @files.select { |f| f.text? } %>
<% unless simple_files.empty? then %>
<div id="fileindex-section" class="nav-section">
<h3>Pages</h3>
<ul class="link-list">
<% simple_files.each do |f| %>
<li><a href="<%= rel_prefix %>/<%= f.path %>"><%= h f.page_name %></a>
<% end %>
</ul>
</div>
<% e... | RHTML | 4 | Bhuvanesh1208/ruby2.6.1 | lib/ruby/2.6.0/rdoc/generator/template/darkfish/_sidebar_pages.rhtml | [
"Ruby"
] |
// Package csv provides functions for retrieving annotated CSV.
//
// introduced: 0.64.0
// tags: csv
//
package csv
import c "csv"
import "experimental/http"
// from retrieves [annotated CSV](https://docs.influxdata.com/influxdb/latest/reference/syntax/annotated-csv/) **from a URL**.
//
// **Note:** Experimental `c... | FLUX | 4 | geropl/flux | stdlib/experimental/csv/csv.flux | [
"MIT"
] |
(import [http.server [HTTPServer BaseHTTPRequestHandler]])
(import [queue [Queue]])
(import [threading [Thread]])
(import [cgi [parse_header]])
(import [urllib.parse [parse_qs]])
(import json)
(defn parse-headers [headers]
(dict headers))
(defn parse-data [request]
(setv ctype (.lower (request.headers.get
... | Hy | 4 | svetlyak40wt/python-processor | src/processor/sources/web.hy | [
"BSD-2-Clause"
] |
extern m#brk#ul
; Brk syscall
; Arguments 1:
; RDI - ulong brk (should be a pointer to the top of data segment)
m#brk#ul:
mov rax, 0xc
syscall
nret
| Parrot Assembly | 3 | giag3/peng-utils | peng-lib/std-lib/unix/asm/brk.pasm | [
"MIT"
] |
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
namespace Phalcon\Security\JWT;
use Phalcon\Collection;
use Phalcon\Collection\Collecti... | Zephir | 5 | BeMySlaveDarlin/cphalcon | phalcon/Security/JWT/Builder.zep | [
"BSD-3-Clause"
] |
@import "ui-variables";
@spacing-form: 22px;
@form-margin: 15px;
body.platform-win32 {
.generated-form {
.tokenizing-field {
border-radius: 0;
border: 0;
border-radius: 0;
box-shadow: 0 0 0 2px @input-border-color;
&.focused {
border: 0;
border-radius: 0;
b... | Less | 4 | cnheider/nylas-mail | packages/client-app/static/components/generated-form.less | [
"MIT"
] |
---
id: 587d78b3367417b2b2512b11
title: 使用 splice() 添加元素
challengeType: 1
forumTopicId: 301152
dashedName: add-items-using-splice
---
# --description--
还记得在上个挑战中我们提到 `splice()` 方法最多可以接收 3 个参数吗? 第三个参数可以是一个或多个元素,这些元素会被添加到数组中。 这样,我们能够便捷地将数组中的一个或多个连续元素换成其他的元素。
```js
const numbers = [10, 11, 12, 12, 15];
const startIndex... | Markdown | 5 | fcastillo-serempre/freeCodeCamp | curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/basic-data-structures/add-items-using-splice.md | [
"BSD-3-Clause"
] |
insert into expr_index (id, a, b) values (1, 'aaa', 'bbb'), (2, 'ABC', 'CDSFDS');
| SQL | 3 | suryatmodulus/tidb | br/tests/lightning_generated_columns/data/gencol.expr_index.0.sql | [
"Apache-2.0",
"BSD-3-Clause"
] |
module com.networknt.basic.auth {
exports com.networknt.basicauth;
requires com.networknt.config;
requires com.networknt.handler;
requires com.networknt.status;
requires com.networknt.utility;
requires com.networknt.common;
requires undertow.core;
requires org.slf4j;
requires java.... | Jasmin | 3 | KellyShao/light-4j | basic-auth/src/main/java/module-info.j | [
"Apache-2.0"
] |
Red [
Title: "Red alpha simple ASCII art demo"
Author: "Nenad Rakocevic"
File: %demo.red
Tabs: 4
Rights: "Copyright (C) 2012-2018 Red Foundation. All rights reserved."
License: {
Distributed under the Boost Software License, Version 1.0.
See https://github.com/red/red/blob/master/BSL-License.txt
}
]
data:... | Red | 3 | 0xflotus/red | tests/demo.red | [
"BSL-1.0",
"BSD-3-Clause"
] |
LITHO,CANAL,CODIGO
020294,A,000027
020295,A,000032
020296,A,000037
020297,A,000039
020298,A,000055 | IDL | 0 | plandauro/admision | storage/calificacion/2020-IIHOJA_IDENTIFI-CANAL-A-CIVIL-MAÑANA.dlm | [
"MIT"
] |
//! See https://www.khronos.org/registry/spir-v/specs/unified1/MachineReadableGrammar.html
//! and the files in https://github.com/KhronosGroup/SPIRV-Headers/blob/master/include/spirv/unified1/
//! Note: Non-canonical casing in these structs used to match SPIR-V spec json.
pub const Registry = union(enum) {
core: C... | Zig | 4 | lukekras/zig | tools/spirv/grammar.zig | [
"MIT"
] |
package com.bumptech.glide.test;
import com.bumptech.glide.annotation.GlideModule;
import com.bumptech.glide.module.LibraryGlideModule;
@GlideModule
public final class EmptyLibraryModule1 extends LibraryGlideModule {}
| Java | 3 | qq411860630/glide | annotation/compiler/test/src/test/resources/MultipleEmptyLibraryGlideModuleTest/EmptyLibraryModule1.java | [
"Apache-2.0"
] |
# N-Quads Syntax tests
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
@prefix qt: <http://www.w3.org/2001/sw/DataAccess/tests/test-query#> .
@prefix rdft: <http://www.w3.org/ns/rdftest#> .
<> a mf:Manifest ;
mf:name "N-Q... | Turtle | 5 | joshrose/audacity | lib-src/lv2/serd/tests/NQuadsTests/manifest.ttl | [
"CC-BY-3.0"
] |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="13008000">
<Property Name="NI.LV.All.SourceOnly" Type="Bool">true</Property>
<Property Name="NI.Project.Description" Type="Str"></Property>
<Item Name="My Computer" Type="My Computer">
<Property Name="NI.SortType" Type="Int">3</Property>
... | LabVIEW | 2 | LabVIEW-Open-Source/LV-MQTT-Broker | MQTT-Broker.lvproj | [
"0BSD"
] |
--
-- Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
--
--
-- SELECT_HAVING
-- https://github.com/postgres/postgres/blob/REL_12_BETA2/src/test/regress/sql/select_having.sql
--
-- This test file was converted from inputs/postgreSQL/select_having.sql
-- TODO: We should add UDFs in GROUP BY clause w... | SQL | 4 | kesavanvt/spark | sql/core/src/test/resources/sql-tests/inputs/udf/postgreSQL/udf-select_having.sql | [
"BSD-2-Clause",
"Apache-2.0",
"CC0-1.0",
"MIT",
"MIT-0",
"ECL-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
'reach 0.1';
const I = {
// Can't use shadow stdlib functions within objects
commit: Fun([], UInt)
};
export const main =
Reach.App(
{},
[['A', I]],
(A) => {
A.only(() => {
const x = declassify(interact.commit());
});
A.publish(x);
commit();
exit();
});
| RenderScript | 3 | chikeabuah/reach-lang | hs/t/n/interact_w_commit.rsh | [
"Apache-2.0"
] |
<?xml version="1.0" encoding="UTF-8"?>
<Layout version="1.6.1">
<Mode>Vertical</Mode>
<X>1920</X>
<Y>-1</Y>
<VerticalWidth>280</VerticalWidth>
<VerticalHeight>1080</VerticalHeight>
<HorizontalWidth>-1</HorizontalWidth>
<HorizontalHeight>-1</HorizontalHeight>
<Settings>
<TextColor>FFFFFFFF</TextColo... | LSL | 2 | ash2x3zb9cy/livesplit-core | tests/layout_files/subsplits.lsl | [
"Apache-2.0",
"MIT"
] |
scriptname _Frost_WindbreakerEffectScript extends ActiveMagicEffect
import FrostUtil
import _FrostInternal
Event OnEffectStart(Actor akTarget, Actor akCaster)
utility.waitmenumode(0.3)
GetCoverageSystem().windbreaker_perk_active = true
SendEvent_UpdateCoverage()
EndEvent
Event OnEffectFinish(Actor akTarget, Actor... | Papyrus | 4 | chesko256/Campfire | Scripts/Source/_Frost_WindbreakerEffectScript.psc | [
"MIT"
] |
#!/usr/bin/env python3
from Crypto.Util.number import *
n = 5712447362490261604406597998881924903614053031697318007487500111923127514732671987140391974484619868873755812839653941707495737200778968606242761744410561483543781253988307839489668296427561440816585031970819869976282752304974585601719972933865314670502196948... | Sage | 4 | fossabot/Crypto-Course | RSA/Franklin-Reiter/solve.sage | [
"MIT"
] |
# Copyright (c) 2018-2021, Carnegie Mellon University
# See LICENSE for details
TestFailExit := function()
Print("TEST FAILED\n");
Exit(-1);
end;
TestSkipExit := function()
Print("Skipping test\n");
Exit(86);
end;
#F GetBasicProfilerTestFName (<pf>)
#F Get the filename associated with Basic ... | GAP | 4 | sr7cb/spiral-software | namespaces/spiral/test.gi | [
"BSD-2-Clause-FreeBSD"
] |
#include <xs1.h>
#include <platform.h>
#include "devicedefines.h"
#include "xud.h"
#include "usb_std_requests.h"
#include "dfu_types.h"
#include "flash_interface.h"
#include <dfu_interface.h>
#if (XUD_SERIES_SUPPORT==4)
/* xCORE-200 */
/* Note range 0x7FFC8 - 0x7FFFF guarenteed to be untouched by tools */
#define F... | XC | 4 | simongapp/xmos_usb_mems_interface | 01Firmware/PDM_USB/module_dfu/src/dfu.xc | [
"Unlicense"
] |
#tag Module
Protected Module FolderItemExtensionsWFS
#tag Method, Flags = &h0
Sub AddToRecentItemsWFS(extends f as FolderItem)
// We want to add this folder item to the recent docs menu
#if TargetWin32
Soft Declare Sub SHAddToRecentDocs Lib "Shell32" ( type as Integer, path as Ptr )
... | REALbasic | 5 | bskrtich/WFS | Windows Functionality Suite/File Processing/Modules/FolderItemExtensionsWFS.rbbas | [
"MIT"
] |
/** @type {import("../../../../").LoaderDefinition} */
module.exports = function (content) {
this.emitFile("extra-file.js", content);
return "";
};
| JavaScript | 3 | fourstash/webpack | test/cases/loaders/emit-file/loader.js | [
"MIT"
] |
--TEST--
Exception thrown during SCCP evaluation, strict types variation
--FILE--
<?php
declare(strict_types=1);
var_dump(str_contains("123", 1));
?>
--EXPECTF--
Fatal error: Uncaught TypeError: str_contains(): Argument #2 ($needle) must be of type string, int given in %s:%d
Stack trace:
#0 %s(%d): str_contains('123'... | PHP | 3 | NathanFreeman/php-src | ext/opcache/tests/opt/sccp_exception3.phpt | [
"PHP-3.01"
] |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="test">
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
PASS
</xsl:template>
</xsl:stylesheet>
| XSLT | 3 | zealoussnow/chromium | third_party/blink/web_tests/fast/xsl/resources/to-html.xsl | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
class NodeFunctionInput {
constructor( type, name, count = null, qualifier = '', isConst = false ) {
this.type = type;
this.name = name;
this.count = count;
this.qualifier = qualifier;
this.isConst = isConst;
}
}
NodeFunctionInput.isNodeFunctionInput = true;
export default NodeFunctionInput;
| JavaScript | 4 | brunnacroches/portifolio-brunna | node_modules/three/examples/jsm/renderers/nodes/core/NodeFunctionInput.js | [
"Unlicense"
] |
out ← {
A ← ⍺
B ← ⍵
T ← (⊃(⍴⍴B))⌽⍳⊃⍴(⍴B),⍴A
⍝ T ← (⊃(⍴⍴B))⌽⍳⊃(⍴⍴B)+⍴⍴A
x ← T ⍉ ((⍴B),(⍴A)) ⍴ A
y ← ((⍴A),(⍴B)) ⍴ B
z ← x ⍺⍺ y
}
res ← (⍳ 10) × out (⍳ 10)
+/+/res | APL | 4 | melsman/apltail | tests/mult0.apl | [
"MIT"
] |
// 把组合逻辑电路实现在 rule 内
// 组合逻辑的结果变量的作用域仅仅是当前 rule 内。
// 限制变量的作用域,有利于提高可读性!!
package GrayCode_v1;
module mkTb ();
// 寄存器
Reg#(Bit#(6)) cnt <- mkReg(0);
rule up_counter; // 每周期都执行
cnt <= cnt + 1; // cnt 从0自增到63
if(cnt >= 63) $finish; // 自增到 63 时,仿真结束
endrule
rule convert;... | Bluespec | 4 | Xiefengshang/BSV_Tutorial_cn | src/4.GrayCode/GrayCode_v1.bsv | [
"MIT"
] |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | JavaScript | 3 | good-gym/material-ui | packages/material-ui-icons/lib/TungstenSharp.js | [
"MIT"
] |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Cross-Origin iframe test</title>
</head>
<body>
<h1>I am top frame</h1>
<div id="frameInfo">Click the refresh button</div>
<button type="button" id="refresh">Refresh</button>
<iframe src="http://localhost:{port}/iframe.html" style="display: bl... | Smarty | 2 | frank-dspeed/nw.js | test/sanity/issue6099-AdSense-trouble/index.tpl | [
"MIT"
] |
(preproc_arg) @c
(comment) @comment
| Scheme | 0 | hmac/nvim-treesitter | queries/c/injections.scm | [
"Apache-2.0"
] |
# ;;; -*- Mode:makefile;-*-
# Generated manually for MMS
# point this to proper location
STL_INCL= /include="../../stlport"
# STL_INCL= -DEH_NO_SGI_STL
.SUFFIXES .obj .cpp
all : check
AUX_LIST=TestClass.obj,main.obj,nc_alloc.obj,random_number.obj
TEST_LIST=test_algo.obj,-
test_algobase.obj,test_... | Module Management System | 3 | fromasmtodisasm/CryENGINE_MOD_SDK | Sources/CryGame C++/Solution1/STLPORT/test/eh/descrip.mms | [
"FSFAP"
] |
## Make.numpy
numpy: python gcj
$(MAKE) PROG=numpy _pythonstyle
| NumPy | 1 | pdh11/jtl | Make.numpy | [
"Unlicense"
] |
() {
# %x: name of file containing code being executed
local fortunes_dir="${${(%):-%x}:h}/fortunes"
# Aliases
alias chuck="fortune -a $fortunes_dir"
alias chuck_cow="chuck | cowthink"
# Automatically generate or update Chuck's compiled fortune data file
if [[ "$fortunes_dir/chucknorris" -ot "$fortunes_... | Shell | 4 | sshishov/ohmyzsh | plugins/chucknorris/chucknorris.plugin.zsh | [
"MIT"
] |
\label{\detokenize{tabular:table-having-both-stub-columns-and-problematic-cell}}
\begin{savenotes}\sphinxattablestart
\centering
\begin{tabular}[t]{|*{3}{\X{1}{3}|}}
\hline
\sphinxstyletheadfamily
\sphinxAtStartPar
header1
&\sphinxstyletheadfamily
\sphinxAtStartPar
header2
&\sphinxstyletheadfamily
\sphinxAtStartPar... | TeX | 3 | samdoran/sphinx | tests/roots/test-latex-table/expects/table_having_stub_columns_and_problematic_cell.tex | [
"BSD-2-Clause"
] |
<%= function_in_view() %>
| HTML+EEX | 0 | mrcasals/bamboo | test/support/templates/email/text_and_html_calling_view_function_email.text.eex | [
"MIT"
] |
Drop custom router support
| Cucumber | 0 | ikrivosheev/aiohttp | CHANGES/3545.feature | [
"Apache-2.0"
] |
#![crate_name = "foo"]
//! module docs
//!
//! ```
//! println!("Hello, world!");
//! ```
// @!has foo/index.html '//a[@class="test-arrow"]' "Run"
| Rust | 3 | Eric-Arellano/rust | src/test/rustdoc/playground-none.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
module.exports = require('./dist/client/index')
| JavaScript | 0 | blomqma/next.js | packages/next/client.js | [
"MIT"
] |
module org-openroadm-syslog {
namespace "http://org/openroadm/syslog";
prefix org-openroadm-syslog;
import ietf-inet-types {
prefix inet;
}
organization "Open ROADM MSA";
contact
"OpenROADM.org";
description
"This module contains a collection of YANG definitions
for Syslog configuratio... | YANG | 5 | tohotforice/onos-sdwsn | models/openroadm/src/main/yang/org-openroadm-syslog.yang | [
"Apache-2.0"
] |
module audiostreamerscrobbler.players.bluos.BluOsStatusXMLParser
import nl.vincentvanderleun.scrobbler.bluos.BluOsStatusXMLParserImpl
struct BluOsStatus = {
success,
etag,
album,
artist,
name,
state,
secs,
service,
totlen
}
function createBluOsStatusXMLParser = {
let bluOsStatusParser = BluOsStatusXMLParse... | Golo | 4 | vvdleun/audiostreamerscrobbler | src/main/golo/include/players/bluos/BluOsStatusXMLParser.golo | [
"MIT"
] |
#ifndef Py_INTERNAL_CONTEXT_H
#define Py_INTERNAL_CONTEXT_H
#ifndef Py_BUILD_CORE
# error "this header requires Py_BUILD_CORE define"
#endif
#include "pycore_hamt.h" /* PyHamtObject */
/* runtime lifecycle */
PyStatus _PyContext_InitTypes(PyInterpreterState *);
void _PyContext_Fini(PyInterpreterState *);
/* o... | C | 3 | lostbeta/cpython | Include/internal/pycore_context.h | [
"0BSD"
] |
f = let x = y
y = let h = 1
in h
in x
f = b
where b = a
a = 1
f = c
where c = b
b = 1
f = bar
where c = a
where a = e
e = f
w = x
g = do a
b
do c
d
do e
f
g
h
b = ... | Haskell | 3 | matsubara0507/semantic | test/fixtures/haskell/corpus/layout.B.hs | [
"MIT"
] |
%%% WARNING: GENERATED FILE. DO NOT EDIT. %%%
\paper { indent = 0\mm line-width = 210\mm - 2.0 * 0.4\in}\header {
title = "$(title)"
composer = "$(composer)"
}
\layout {}
| LilyPond | 1 | jmorag/music-suite | data/ly_score.ly | [
"BSD-3-Clause"
] |
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slas... | DIGITAL Command Language | 3 | hsantos9/Winds | api/test/data/feed/totoyao.wordpress.com | [
"BSD-3-Clause"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 4 | sbj42/vscode | src/vs/platform/lifecycle/common/lifecycle.ts | [
"MIT"
] |
---
title: Dark mode playground
page-header: Dark mode playground
---
{% assign colors = '' | split: ',' %}
{% for color in site.theme-colors %}
{% assign colors = colors | push: color[0] %}
{% endfor %}
{% for color in site.colors %}
{% assign colors = colors | push: color[0] %}
{% endfor %}
{% capture html %}
<p... | HTML | 3 | karan-thakkar/tabler | src/pages/playground-dark.html | [
"MIT"
] |
// NHHall is an open source algorithmic reverb unit, developed by Nathan Ho in
// 2018 for SuperCollider, ChucK, and Auraglyph. Features:
//
// - Allpass loop topology with delay line modulaton for a lush 90's IDM sound
// - True stereo signal path with controllable spread
// - Infinite hold support
// - Respectable CP... | ChucK | 4 | ccdarabundit/chugins | NHHall/nhhall-help.ck | [
"MIT"
] |
v>>>>.
12345
^?^
> ? ?^
v?v
v6789>
| Befunge | 0 | SuprDewd/BefungeSimulator | befunge_code/random_numbers.befunge | [
"MIT"
] |
/* CSS for binder integration */
div.binder-badge {
margin: 1em auto;
vertical-align: middle;
}
| CSS | 3 | firebolt55439/ray | doc/source/_static/gallery-binder.css | [
"Apache-2.0"
] |
*** Settings ***
Documentation This resource provides any keywords related to the Harbor private registry appliance
*** Variables ***
${project_configuration_wl_delete_a_cve_id_icon} //hbr-project-policy-config/form/section//ul/li[1]/a[2]/clr-icon
${project_configuration_wl_project_add_system_btn} //button[@id=... | RobotFramework | 2 | yxxhero/harbor | tests/resources/Harbor-Pages/Project-Config-Elements.robot | [
"Apache-2.0"
] |
L UBSEC e_ubsec_err.h e_ubsec_err.c
| eC | 1 | jiangzhu1212/oooii | Ouroboros/External/OpenSSL/openssl-1.0.0e/engines/e_ubsec.ec | [
"MIT"
] |
#
# This file is part of MUMPS 5.3.3, released
# on Mon Jun 15 09:57:25 UTC 2020
#
################################################################################
#
# Makefile.inc.generic
#
# This defines some parameters dependent on your platform; you should
# look for the approriate file in the directory ./M... | M | 3 | nqomorita/monolis | submodule/Makefile.inc.mumps | [
"MIT"
] |
/*
* Generated by util/mkerr.pl DO NOT EDIT
* Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution... | C | 4 | pmesnier/openssl | crypto/pem/pem_err.c | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.