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 |
|---|---|---|---|---|---|
package {
public class Test {
}
}
var a = new Array("a", "b", "c");
trace("//delete a[1]");
trace(delete a[1]);
trace("//Array 0 thru 3...");
trace(a[0]);
trace(a[1]);
trace(a[2]);
trace(a[3]);
trace("//array.length");
trace(a.length);
trace("//array.hasOwnProperty(1)");
trace(a.hasOwnProperty(1));
trace("//delet... | ActionScript | 3 | Sprak1/ruffle | tests/tests/swfs/avm2/array_delete/Test.as | [
"Apache-2.0",
"Unlicense"
] |
<template name="CodeMirror">
<textarea id="{{editorId}}" name="{{editorName}}" style="display: none">{{code}}</textarea>
</template>
| HTML | 2 | subramanir2143/Rocket.Chat | app/ui/client/lib/codeMirror/codeMirrorComponent.html | [
"MIT"
] |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--
Copyright 2011 Software Freedom Conservancy
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/licens... | HTML | 3 | weilandia/selenium | common/src/web/rc/tests/TestClickJavascriptHrefChrome.html | [
"Apache-2.0"
] |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:meta/meta.dart';
/// An object sent from the Flutter Driver to a Flutter application to instruct
/// the application to perform a task.
ab... | Dart | 5 | Mayb3Nots/flutter | packages/flutter_driver/lib/src/common/message.dart | [
"BSD-3-Clause"
] |
"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/QueryStatsRounded.js | [
"MIT"
] |
ByJZ | PureBasic | 0 | pchandrasekaran1595/onnx | onnx/backend/test/data/node/test_xor_bcast4v4d/test_data_set_0/input_1.pb | [
"Apache-2.0"
] |
---
prev: sbt.textile
next: specs.textile
title: 컬렉션(계속)
layout: post
---
스칼라에는 멋진 컬렉션이 여럿 구현되어 있다. 이를 활용해 <code>Foo</code>를 모아둔 컬렉션이 <code>리스트(List)</code>, <code>집합(Set)</code>, 또는 다른 어떤 것이든 상관 없이 잘 동작하는 코드를 만들 수 있다.
"이 페이지는":https://www.decodified.com/scala/collections-api.xml 스칼라가 제공하는 기본 구현의 구조를 잘 보여주며, 각 클래스의 스... | Textile | 4 | AstronomiaDev/scala_school | web/ko/coll2.textile | [
"Apache-2.0"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_currentDirection
Author: NKey, Dedmen
Returns current direction of Units head.
Arguments:
0: unit to get the Head direction from. <UNIT> (default: TFAR_currentUnit)
Return Value:
current look direction in Normalized 3D Vector <ARRAY>
Example:
... | SQF | 4 | MrDj200/task-force-arma-3-radio | addons/core/functions/fnc_currentDirection.sqf | [
"RSA-MD"
] |
$$ MODE TUSCRIPT,{}
input="WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWW",output=""
string=strings(input," ? ")
letter=ACCUMULATE(string,freq)
freq=SPLIT(freq),letter=SPLIT(letter)
output=JOIN(freq,"",letter)
output=JOIN(output,"")
PRINT input
PRINT output
| Turing | 3 | LaudateCorpus1/RosettaCodeData | Task/Run-length-encoding/TUSCRIPT/run-length-encoding.tu | [
"Info-ZIP"
] |
(* An abstract machine for the semantics of Ivory *)
(*<*)
theory Semantics
imports Syntax
begin
(*>*)
section {* Semantics *}
subsection {* Expressions *}
(* We use a natural semantics for the evaluation of expressions *)
fun
cmpopV :: "cmpop \<Rightarrow> nat \<Rightarrow> nat \<Rightarrow> bool"
where
"cmp... | Isabelle | 5 | cyy9447/ivory | ivory-formal-model/Semantics.thy | [
"BSD-3-Clause"
] |
// build-pass
// compile-flags: -Zsave-analysis
enum Enum2 {
Variant8 { _field: bool },
}
impl Enum2 {
fn new_variant8() -> Enum2 {
Self::Variant8 { _field: true }
}
}
fn main() {}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/save-analysis/issue-73022.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
module C (module A, module M2) where
import A
import B as M2
| PureScript | 1 | metaleap/purs-with-dump-coreimp | examples/passing/ReExportQualified/C.purs | [
"BSD-3-Clause"
] |
mobilePhone = ()
| Self | 0 | LaudateCorpus1/RosettaCodeData | Task/Inheritance-Multiple/Self/inheritance-multiple-2.self | [
"Info-ZIP"
] |
-- Tags: distributed
DROP TABLE IF EXISTS test5346;
CREATE TABLE test5346 (`Id` String, `Timestamp` DateTime, `updated` DateTime)
ENGINE = ReplacingMergeTree(updated) PARTITION BY tuple() ORDER BY (Timestamp, Id);
INSERT INTO test5346 VALUES('1',toDateTime('2020-01-01 00:00:00'),toDateTime('2020-01-01 00:00:00'));
... | SQL | 3 | pdv-ru/ClickHouse | tests/queries/0_stateless/01517_select_final_distributed.sql | [
"Apache-2.0"
] |
kind: pipeline
type: docker
name: defaults
steps:
- name: {{ upper .input.stepName }}
image: {{ .input.image }}
commands:
- {{ .input.commands }} | YAML | 2 | sthagen/drone-drone | plugin/converter/testdata/yaml.input.yml | [
"Apache-2.0"
] |
{block title}New pad{/block}
{block page_title}<span>New pad</span>{/block}
{block body}
{control createPad-form}
| Latte | 1 | aleanza/notejam | nette/doctrine/notejam/app/Presenters/templates/Pad/create.latte | [
"MIT"
] |
ruleset io.picolabs.notifications {
meta {
use module io.picolabs.manifold_pico alias manifold_pico
use module io.picolabs.wrangler alias wrangler
use module io.picolabs.subscription alias subscription
shares __testing, getNotifications, getBadgeNumber, getState, getID, getSettings
}
global {
... | KRL | 4 | Picolab/ManifoldRewrite | Manifold_krl/io.picolabs.notifications.krl | [
"MIT"
] |
0 !echo
\ ------------------------------------------------------------------------
\ Gaps in the core API
\ ------------------------------------------------------------------------
\ Pretty-print the output
kernel32 0 dllfun GetLastError GetLastError
kernel32 1 dllfun CloseHandle CloseHandle
: .err re... | Forth | 5 | jephthai/EvilVM | samples/payload.fth | [
"MIT"
] |
com.baeldung.url=www.abc.test.com
com.baeldung.jdbc.url=
com.baeldung.timeout-in-milli-seconds=2000
| INI | 1 | DBatOWL/tutorials | spring-boot-modules/spring-boot-properties-3/src/test/resources/configuration-processor.properties | [
"MIT"
] |
;*****************************************************************************
;* x86-optimized Float DSP functions
;*
;* Copyright 2016 James Almer
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it under the terms of the GNU Lesser General Public
;* License a... | Assembly | 3 | attenuation/srs | trunk/3rdparty/ffmpeg-4-fit/libavutil/x86/fixed_dsp.asm | [
"MIT"
] |
! Copyright (C) 2008 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.xo
USING: arrays calendar help.markup help.syntax kernel math strings ;
IN: calendar.english
HELP: month-names
{ $values { "value" object } }
{ $description "Returns an array with the English names of all the months." }
{ $warni... | Factor | 5 | alex-ilin/factor | basis/calendar/english/english-docs.factor | [
"BSD-2-Clause"
] |
=head1 TITLE
Data::Dumper::Base - style baseclass
=head1 VERSION
version 0.20
=head1 SYNOPSIS
TDB
=head1 DESCRIPTION
This is a baseclass that provides some essential functions necessary
for dumping data structures. It is subclassed by C<Data::Dumper::Default>,
which implements the methods that are finally doing... | Parrot Internal Representation | 4 | winnit-myself/Wifie | runtime/parrot/library/Data/Dumper/Base.pir | [
"Artistic-2.0"
] |
"use strict";
require("./helpers/warmup-webpack");
const path = require("path");
const webpack = require("..");
const { createFsFromVolume, Volume } = require("memfs");
describe("Watch", () => {
jest.setTimeout(10000);
it("should only compile a single time", done => {
let counterBeforeCompile = 0;
let counter... | JavaScript | 4 | fourstash/webpack | test/Watch.test.js | [
"MIT"
] |
describe Fastlane do
describe Fastlane::FastFile do
describe "set_changelog" do
context 'with invalid platform' do
let(:invalidPlatform_lane) { "lane :test do set_changelog(app_identifier: 'x.y.z', platform: 'whatever', changelog: 'custom changelog', username: 'name@example.com') end" }
it ... | Ruby | 4 | flufff42/fastlane | fastlane/spec/actions_specs/set_changelog_spec.rb | [
"MIT"
] |
japokwm(5)
# NAME
japokwm - tiling made easy
# DESCRIPTION
A japokwm configuration file is a lua file that is executed by japokwm. You can
use built-in functions with it to change the behavior of your window manager and
change various settings. An example config is likely present in
/etc/japokwm/init.lua for you to ... | SuperCollider | 5 | werererer/Japokwm | man/japokwm.5.scd | [
"BSD-2-Clause"
] |
grammar Signature;
procedure: namespace? name '(' (parameter',')*(parameter)? ')' '::' results ;
function: namespace? name '(' (parameter',')*(parameter)? ')' '::' (type | '(' type ')');
results: empty | '(' (result',')*(result) ')' ;
parameter: name ('=' defaultValue)? '::' type ;
result: name '::' type ;
namespace... | ANTLR | 3 | alexwoolford/neo4j-apoc-procedures | core/src/main/antlr/apoc/custom/Signature.g4 | [
"Apache-2.0"
] |
TypeChecker {
badNamespaceHere(c TypeCheckerContext, e Node, ns Namespace) {
c.errors.add(Error.at(c.unit, RangeFinder.find(e), format("Namespace is not valid here: {}", ns.toString())))
}
badTypeHere(c TypeCheckerContext, e Node, ti Namespace) {
c.errors.add(Error.at(c.unit, RangeFinder.find(e), format("Type i... | mupad | 4 | jturner/muon | compiler/type_checker_builtin.mu | [
"MIT"
] |
//
// Copyright (c) XSharp B.V. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.
// See License.txt in the project root for license information.
//
USING XSharp
USING System.Collections.Generic
USING System.Reflection
#define XSHARPRDD "XSharp.Rdd" // Make sure this is the same as the file ... | xBase | 4 | orangesocks/XSharpPublic | Runtime/XSharp.Core/RDD/RegisteredRDD.prg | [
"Apache-2.0"
] |
require "openssl"
require "openssl/algorithm"
module OpenSSL::PKCS5
def self.pbkdf2_hmac_sha1(secret, salt, iterations = 2**16, key_size = 64) : Bytes
buffer = Bytes.new(key_size)
if LibCrypto.pkcs5_pbkdf2_hmac_sha1(secret, secret.bytesize, salt, salt.bytesize, iterations, key_size, buffer) != 1
raise ... | Crystal | 4 | jessedoyle/crystal | src/openssl/pkcs5.cr | [
"Apache-2.0"
] |
--TEST--
Bug #54454 (substr_compare incorrectly reports equality in some cases)
--FILE--
<?php
var_dump(substr_compare('/', '/asd', 0, 4));
?>
--EXPECT--
int(-3)
| PHP | 3 | guomoumou123/php5.5.10 | ext/standard/tests/strings/bug54454.phpt | [
"PHP-3.01"
] |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | ANTLR | 4 | Trydamere/shardingsphere | shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/imports/postgresql/ModeLexer.g4 | [
"Apache-2.0"
] |
(mac switch (alts..)
(tr (reverse alts) ()
(fun (acc alt)
'(if %(head alt)
(do %(tail alt)..)
%acc)))) | Grammatical Framework | 4 | daota2/fffff | v1/lib/cond.gf | [
"MIT"
] |
/**
*
*/
import Util;
import OpenApi;
import OpenApiUtil;
import EndpointUtil;
extends OpenApi;
init(config: OpenApi.Config){
super(config);
@endpointRule = 'regional';
checkConfig(config);
@endpoint = getEndpoint('resourcesharing', @regionId, @endpointRule, @network, @suffix, @endpointMap, @endpoint);
... | Tea | 4 | aliyun/alibabacloud-sdk | resourcesharing-20200110/main.tea | [
"Apache-2.0"
] |
insert into t0 values (6.0); | SQL | 1 | WizardXiao/tidb | br/tests/lightning_routes/data/routes_a0.t0.2.sql | [
"Apache-2.0"
] |
#--------------------------------------------------------------------------
#--------------------------------------------------------------------------
namespace eval pwoo {
variable classes [dict create]
variable classStack {}
variable cmdFlags [dict create]
variable verbose 0
namespace export class
proc... | Glyph | 5 | smola/language-dataset | data/github.com/dbgarlisch/glyph-pwoo/108ef6d8bde1be394727a00ab023c156c1b10920/pwoo.glf | [
"MIT"
] |
namespace OpenAPI.Model
open System
open System.Collections.Generic
module Tag =
//#region Tag
type Tag = {
Id : int64;
Name : string;
}
//#endregion
| F# | 4 | MalcolmScoffable/openapi-generator | samples/server/petstore/fsharp-giraffe/OpenAPI/src/model/Tag.fs | [
"Apache-2.0"
] |
(import processor)
(import time)
(require processor.utils.macro)
(defn xmpp [jid password host &optional [port 5222] [recipients []]]
(import-or-error [sleekxmpp [ClientXMPP]]
"Please, install 'sleekxmpp' library to use 'xmpp' source.")
(defclass Bot [ClientXMPP]
(defn __init__ [self jid p... | Hy | 5 | svetlyak40wt/python-processor | src/processor/outputs/xmpp.hy | [
"BSD-2-Clause"
] |
;;; os/macos/config.el -*- lexical-binding: t; -*-
;;
;;; Reasonable defaults for macOS
;; Use spotlight search backend as a default for M-x locate (and helm/ivy
;; variants thereof), since it requires no additional setup.
(setq locate-command "mdfind")
;;
;;; Compatibilty fixes
;; Curse Lion and its sudden but in... | Emacs Lisp | 4 | leezu/doom-emacs | modules/os/macos/config.el | [
"MIT"
] |
<!DOCTYPE html>
<html>
<head>
<title>Foo</title>
</head>
<img src="{basdsada as $field}" />
<div n:syntax="asp">
<img src="<%basdsada a^s $field%>" />
</div>
</html> | Latte | 1 | timfel/netbeans | php/php.latte/test/unit/data/testfiles/actions/toggleComment/testIssue230261_11.latte | [
"Apache-2.0"
] |
// We can not import reference of `./index` directly since it will make dead loop in less
@import (reference) '../../style/themes/index';
@cascader-prefix-cls: ~'@{ant-prefix}-cascader';
.@{cascader-prefix-cls}-rtl {
.@{cascader-prefix-cls}-menu-item {
&-expand-icon,
&-loading-icon {
margin-right: @pad... | Less | 3 | jawmeschege/ant-design | components/cascader/style/rtl.less | [
"MIT"
] |
# Awk program for automatically generating help text from those ludicrous makefiles.
# See help.mk for details.
function len(a, i, k) {
for (i in a) k++
return k
}
function join(a, sep) {
result = ""
if (sep == "")
sep = SUBSEP
for (item in a)
result = result sep a[item]
return result
}
functio... | Awk | 4 | Young-Li-wxx/Hero | .makefiles/help.awk | [
"MIT"
] |
{{! Copyright (c) Avanade. Licensed under the MIT License. See https://github.com/Avanade/Beef }}
/*
* This file is automatically generated; any changes will be lost.
*/
#nullable enable
#pragma warning disable
{{#ifval ColumnIsDeleted}}
using Beef.Data.Database.Cdc;
{{/ifval}}
using Beef.Entities;
using Beef.Map... | Harbour | 5 | ualehosaini/Beef | tools/Beef.CodeGen.Core/Templates/DbCdcEntity_cs.hb | [
"MIT"
] |
package gw.specContrib.classes.property_Declarations.gosuClassGosuEnh
uses java.lang.Integer
uses java.util.ArrayList
enhancement Errant_GosuEnh_62: Errant_GosuClass_62 {
//This should be error - IDE-1817
function setMyProperty1(a: ArrayList<Integer>) {} //## issuekeys: CONFLICT
//This should ... | Gosu | 3 | tcmoore32/sheer-madness | gosu-test/src/test/gosu/gw/specContrib/classes/property_Declarations/gosuClassGosuEnh/Errant_GosuEnh_62.gsx | [
"Apache-2.0"
] |
{
Copyright 2014 Stas'M Corp.
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, ... | Pascal | 3 | ahmedsweed/rdpwrap | src-x86-binarymaster/LiteINI.pas | [
"Apache-2.0"
] |
CREATE TABLE "public"."table24"("name" text NOT NULL, "id" serial NOT NULL, PRIMARY KEY ("id") );
| SQL | 4 | devrsi0n/graphql-engine | cli/commands/testdata/migrate-squash-test/migrations/1588172669359_create_table_public_table24/up.sql | [
"Apache-2.0",
"MIT"
] |
' stripdir.bmx
print stripdir("mypath/myfile.bmx") 'prints myfile.bmx
| BlitzMax | 3 | jabdoa2/blitzmax | mod/brl.mod/filesystem.mod/doc/stripdir.bmx | [
"Zlib"
] |
%hr/
BBB
%hr/
| Scaml | 0 | mohno007/skinny-framework | example/src/main/webapp/WEB-INF/views/custom-layout/bar.html.scaml | [
"MIT"
] |
Red [
Title: "GUI event flows testing script"
Author: "Nenad Rakocevic"
File: %events-flow.red
Needs: 'View
]
system/view/capturing?: yes
view/options [
panel 200x200 blue [
panel 150x150 green [
base 50x50 red
on-detect [if event/type = 'down [print "4"]]
on-down [print "5"]
]
on-detec... | Red | 4 | 0xflotus/red | tests/events-flow.red | [
"BSL-1.0",
"BSD-3-Clause"
] |
// Copyright 2021 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.
package runtime_test
import (
. "runtime"
"testing"
)
// Check that the partial order in lockPartialOrder fits within the total order
// determined by the o... | Go | 5 | SSSDNSY/go | src/runtime/lockrank_test.go | [
"BSD-3-Clause"
] |
#!/usr/bin/env fq -rnf
def code: "`\(.)`";
def nbsp: gsub(" "; " ");
def has_section($f; $fhelp): $fhelp.notes or $fhelp.examples or $fhelp.links or $f.decode_in_arg;
def formats_list:
[ formats
| to_entries[] as {$key, $value}
| (_format_func($key; "_help")? // {}) as $fhelp
| if has_section($value; $fh... | JSONiq | 3 | bbhunter/fq | doc/formats.jq | [
"MIT"
] |
#############################################################################
##
## Magic.gd AutoDoc package
##
## Copyright 2013, Max Horn, JLU Giessen
## Sebastian Gutsche, University of Kaiserslautern
##
######################################################... | GDScript | 5 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/GAP/Magic.gd | [
"MIT"
] |
@[if DEVELSPACE]@
# Env variables in develspace.
export ROVIO_CONFIG_DIR="@(CMAKE_CURRENT_SOURCE_DIR)/share/"
@[else]@
# Env variables in installspace.
export ROVIO_CONFIG_DIR="$CATKIN_ENV_HOOK_WORKSPACE/share/"
@[end if]@ | EmberScript | 3 | AdronTech/maplab | applications/rovioli/env-hooks/10.rovio-config-template.sh.em | [
"Apache-2.0"
] |
#!/bin/bash
# change the following for install path, note
# that VER is appended to the path.
VER="trunk"
SW_INSTALL_ROOT=/tmp/work/gshipman/ompi/install
PLATFORM=ornl/cray_xt_cnl_romio
ORTED_MAKEFILE=orte/tools/orted/Makefile
if test -z "`grep "orted_LDFLAGS =.*-all-static" ${ORTED_MAKEFILE}`"; then
echo "WARNI... | Gnuplot | 4 | j-xiong/ompi | contrib/platform/ornl/ornl_configure.gnu | [
"BSD-3-Clause-Open-MPI"
] |
<div class="video-container"><iframe src="https://www.youtube.com/embed/<%= @id %>?autoplay=0&rel=0&origin=https://changelog.com" frameborder="0"></iframe></div>
| HTML+EEX | 2 | PsOverflow/changelog.com | lib/changelog_web/templates/news_item/_youtube_embed.html.eex | [
"MIT"
] |
Rebol [
Title: "Rebol3 file test script"
Author: "Oldes"
File: %format-test.r3
Tabs: 4
Needs: [%../quick-test-module.r3]
]
secure [%/ allow]
~~~start-file~~~ "FORMAT tests"
===start-group=== "FORMAT"
--test-- "issue-532"
;@@ https://github.com/Oldes/Rebol-issues/issues/532
str: format [8 -8] ["this wi... | Rebol | 4 | semarie/rebol3-oldes | src/tests/units/format-test.r3 | [
"Apache-2.0"
] |
precision mediump float;
const float SQRT_2 = 1.4142135623730951;
const float SQRT_3 = sqrt(3.0);
const float PI = 3.14159265358979323846264;
const float IN_ANGLE = 0.6283185307179586; // PI/5. = 36 degrees (star of 5 pikes)
//const float OUT_ANGLE = PI/2. - IN_ANGLE; // External angle for regular stars
const float C... | GLSL | 5 | g-parki/bokeh | bokehjs/src/lib/models/glyphs/webgl/markers.frag | [
"BSD-3-Clause"
] |
CALL gn gen out/Default
CALL ninja -j 200 -C out/Default chrome eventlog_provider
| Batchfile | 1 | NareshMurthy/playwright | browser_patches/chromium/buildwingoma.bat | [
"Apache-2.0"
] |
{
"props": {
"children": { "type": { "name": "node" } },
"classes": { "type": { "name": "object" } },
"max": { "type": { "name": "custom", "description": "number" }, "default": "5" },
"spacing": {
"type": {
"name": "union",
"description": "'medium'<br>| 'small'<br>|... | JSON | 3 | VirdocsSoftware/rs-icons | docs/pages/api-docs/avatar-group.json | [
"MIT"
] |
package test
public final annotation class A1 : kotlin.Annotation {
/*primary*/ public constructor A1()
}
public final annotation class A2 : kotlin.Annotation {
/*primary*/ public constructor A2()
}
public final annotation class A3 : kotlin.Annotation {
/*primary*/ public constructor A3()
}
@test.A1 @te... | Text | 4 | qussarah/declare | compiler/testData/loadJava/compiledKotlin/annotations/classes/MultipleAnnotations.txt | [
"Apache-2.0"
] |
// force-host
// no-prefer-dynamic
#![feature(proc_macro_quote)]
#![feature(proc_macro_internals)] // FIXME - this shouldn't be necessary
#![crate_type = "proc-macro"]
extern crate proc_macro;
extern crate custom_quote;
use proc_macro::{quote, TokenStream};
macro_rules! expand_to_quote {
() => {
quote! ... | Rust | 3 | mbc-git/rust | src/test/ui/proc-macro/auxiliary/span-from-proc-macro.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
@import './dir/*.css';
.index {
color: red;
}
| CSS | 1 | johanberonius/parcel | packages/core/integration-tests/test/integration/glob-css/index.css | [
"MIT"
] |
open import Agda.Builtin.Reflection
open import Agda.Builtin.List
open import Agda.Builtin.Unit
macro
m-0 : Term → TC ⊤
m-0 goal =
bindTC (inferType goal) λ where
(pi (arg (arg-info _ (modality _ quantity-0)) _) _) →
bindTC (quoteTC (λ (_ : Set) → Set))
(unify goal)
type → t... | Agda | 4 | cruhland/agda | test/Succeed/Issue5317.agda | [
"MIT"
] |
<table><tr><th>id</th><th>message</th></tr>{% for fortune in fortunes %}<tr><td>{{ fortune.getId() }}</td><td>{{ fortune.message | e }}</td></tr>{% endfor %}</table> | Volt | 3 | efectn/FrameworkBenchmarks | frameworks/PHP/phalcon/app/views/mongo/fortunes.volt | [
"BSD-3-Clause"
] |
#!/usr/bin/env golosh
module audiostreamerscrobbler.Audiostreamerscrobbler
import audiostreamerscrobbler.factories.{Config, PlayerControlThreadFactory, ScrobblersFactory, ScrobblerErrorHandlerFactory}
import audiostreamerscrobbler.utils.{NetworkUtils, VerySimpleArgsParser}
import gololang.IO
import java.util.Arrays
... | Golo | 4 | vvdleun/audiostreamerscrobbler | src/main/golo/Audiostreamerscrobbler.golo | [
"MIT"
] |
rendered template for <%= @name %>
| HTML+EEX | 1 | faheempatel/phoenix | test/fixtures/templates/user/render_template.html.eex | [
"MIT"
] |
import "std/test"
test.run("Compound equality", fn(assert) {
const a = 5
const b = 6
const c = 5
assert.isFalse(a >= b)
assert.isFalse(b <= a)
assert.isTrue(a <= c)
assert.isTrue(a >= c)
})
test.run("Compound assignment", fn(assert) {
let a = 5
a += 2
assert.isEq(a, 7)
a... | Inform 7 | 4 | lfkeitel/nitrogen | tests/basic/compounds.ni | [
"BSD-3-Clause"
] |
-- (c) 2009 Aarne Ranta under LGPL
instance LexFoodsGer of LexFoods =
open SyntaxGer, ParadigmsGer in {
flags coding=utf8;
oper
wine_N = mkN "Wein" ;
pizza_N = mkN "Pizza" "Pizzen" feminine ;
cheese_N = mkN "Käse" "Käse" masculine ;
fish_N = mkN "Fisch" ;
fresh_A = mkA "frisch" ;
warm_A... | Grammatical Framework | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Grammatical Framework/LexFoodsGer.gf | [
"MIT"
] |
const { powerSaveBlocker } = process._linkedBinding('electron_browser_power_save_blocker');
export default powerSaveBlocker;
| TypeScript | 2 | lingxiao-Zhu/electron | lib/browser/api/power-save-blocker.ts | [
"MIT"
] |
/*
* Copyright (c) 2021, Tim Flynn <trflynn89@pm.me>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "LoadRequest.h"
#include <LibWeb/Cookie/Cookie.h>
#include <LibWeb/Page/Page.h>
namespace Web {
LoadRequest LoadRequest::create_for_url_on_page(const AK::URL& url, Page* page)
{
LoadRequest request;
... | C++ | 4 | r00ster91/serenity | Userland/Libraries/LibWeb/Loader/LoadRequest.cpp | [
"BSD-2-Clause"
] |
@font-face{font-family:MyHelvetica;src:local('Helvetica Neue Bold'), local('HelveticaNeue-Bold'), url(MgOpenModernaBold.ttf);font-weight:bold} | CSS | 1 | Theo-Steiner/svelte | test/css/samples/supports-font-face/expected.css | [
"MIT"
] |
using Uno;
using Uno.Platform;
using Uno.Collections;
using Uno.Platform.iOS;
using Uno.Compiler.ExportTargetInterop;
using Fuse.Platform;
using Uno.Graphics;
namespace Fuse.iOS
{
[Require("Source.Include", "@{Uno.Platform.iOS.Application:Include}")]
[Require("Source.Include", "Foundation/Foundation.h")]
[Require("... | Uno | 4 | helilabs/fuselibs | Source/Fuse.iOS/Support.uno | [
"MIT"
] |
Feature: hub delete
Background:
Given I am "andreasbaumann" on github.com with OAuth token "OTOKEN"
Scenario: No argument in current repo
Given I am in "git://github.com/github/hub.git" git repo
When I run `hub delete`
Then the exit status should be 1
And the stderr should contain exactly:
... | Cucumber | 4 | JLLeitschuh/hub | features/delete.feature | [
"MIT"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 4 | KevinAo22/vscode | src/vs/workbench/api/common/extHostTheming.ts | [
"MIT"
] |
<!DOCTYPE html><html><head><title>Fortunes</title></head><body>{{ content() }}</body></html> | Volt | 3 | xsoheilalizadeh/FrameworkBenchmarks | frameworks/PHP/phalcon/app/views/layouts/mongobench.volt | [
"BSD-3-Clause"
] |
#!/bin/bash
set -e
set -x
cd /tmp
curl -o ./msedge_dev.pkg -k "$1"
# Note: there's no way to uninstall previously installed MSEdge.
# However, running PKG again seems to update installation.
sudo installer -pkg /tmp/msedge_dev.pkg -target /
rm -rf /tmp/msedge_dev.pkg
/Applications/Microsoft\ Edge\ Dev.app/Contents/Mac... | Shell | 3 | burner/playwright | packages/playwright-core/bin/reinstall_msedge_dev_mac.sh | [
"Apache-2.0"
] |
# Create document.
POST http://localhost:7301/documents
Content-Type: application/json
{
"documentId": "document-1",
"title": "Document 1",
"body": "john@gmail.com"
}
###
# Approve document.
POST http://localhost:7301/documents/document-1/approve
Content-Type: application/json
{
"author": "Jason",
... | HTTP | 4 | tomy2105/elsa-core | src/samples/aspnet/Elsa.Samples.ContextualWorkflowHttp/workflows.http | [
"MIT"
] |
// Copyright 2018 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.
package net
import (
"internal/poll"
"io"
)
// splice transfers data from r to c using the splice system call to minimize
// copies from and to userspace. c... | Go | 4 | Havoc-OS/androidprebuilts_go_linux-x86 | src/net/splice_linux.go | [
"BSD-3-Clause"
] |
module namespace m="de/bottlecaps/railroad/xq/xhtml-to-md.xq";
declare namespace svg="http://www.w3.org/2000/svg";
declare namespace xhtml="http://www.w3.org/1999/xhtml";
declare namespace xlink="http://www.w3.org/1999/xlink";
declare namespace xsl="http://www.w3.org/1999/XSL/Transform";
declare option saxon:output "... | XQuery | 4 | bannmann/rr | src/main/resources/de/bottlecaps/railroad/xq/xhtml-to-md.xq | [
"Apache-2.0"
] |
module Main
triples : Int -> List (Int, Int, Int)
triples top = [(x,y,z) | z<-[1..top], y<-[1..z], x<-[1..y],
x * x + y * y == z * z ]
main : IO ()
main = do putStrLn "Max: "
max <- getLine
printLn (triples (cast max))
| Idris | 3 | ska80/idris-jvm | benchmark/benchmarks/triples/triples.idr | [
"BSD-3-Clause"
] |
|s|{s print;s inspect println}call:"|s|{s print;s inspect println}call:"
| Fancy | 0 | MakeNowJust/quine | quine.fy | [
"Beerware"
] |
/*
* Copyright 2013 The Sculptor Project Team, including 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
*
* http://www.apache.org/licenses/L... | Xtend | 4 | sculptor/sculptor | sculptor-generator/sculptor-generator-templates/src/main/java/org/sculptor/generator/template/rest/RestWebCssTmpl.xtend | [
"Apache-2.0"
] |
SequenceBitTest := UnitTest clone do(
testBitsWithinFirstByte := method(
assertEquals(1, 1 asCharacter bitAt(0))
assertEquals(0, 2 asCharacter bitAt(0))
assertEquals(1, 2 asCharacter bitAt(1))
for(i, 0, 7, assertEquals(0, 0 asCharacter bitAt(i)))
for(i, 0, 7, assertEquals(1, 0xff asCharacter bitAt(i)))
)
... | Io | 4 | akluth/io | libs/iovm/tests/correctness/SequenceBitTest.io | [
"BSD-3-Clause"
] |
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C | 4 | abhaikollara/tensorflow | tensorflow/core/distributed_runtime/rpc/grpc_client_cq_tag.h | [
"Apache-2.0"
] |
#include <opencv2/core.hpp>
#include <opencv2/videoio.hpp>
#include <opencv2/highgui.hpp>
#include <iostream>
using namespace cv;
using namespace std;
int main(int, char**)
{
Mat frame;
vector<Mat> audioData;
VideoCapture cap;
vector<int> params { CAP_PROP_AUDIO_STREAM, 0,
... | C++ | 3 | nowireless/opencv | samples/cpp/videocapture_microphone.cpp | [
"Apache-2.0"
] |
#!/bin/sh
echo "Set exit on simple errors"
set -e
echo "Use dumb gradle terminal"
export TERM=dumb
rm -rf dist/package/platforms/android || true
mkdir -p dist/package/platforms/android
echo "Build android"
cd android
./gradlew --quiet assembleRelease
cd ..
cp android/widgets/build/outputs/aar/widgets-release.aar di... | Shell | 4 | wiltonlazary/NativeScript | tns-core-modules-widgets/build.android.sh | [
"Apache-2.0"
] |
// Test file to test kate's clipper highlighting
// kate: hl Clipper;
//BEGIN INCLUDES
#include <clip-ui.ch>
#include "logo.ch"
#define PRGVERSION "0.0.1"
//END
//BEGIN CODE
static ws, win
static driver := getDriver()
/* a multiline
comment
*/
function main( formName )
local form
local fileName
if empty(fo... | xBase | 5 | dawidsowa/syntax-highlighting | autotests/input/highlight.prg | [
"MIT"
] |
#ifndef TEST_INTEROP_C_MODULES_PRINT_QUALIFIED_CLANG_TYPES_INPUTS_FOREIGN_A_H
#define TEST_INTEROP_C_MODULES_PRINT_QUALIFIED_CLANG_TYPES_INPUTS_FOREIGN_A_H
#include "textual-header.h"
#endif // TEST_INTEROP_C_MODULES_PRINT_QUALIFIED_CLANG_TYPES_INPUTS_FOREIGN_A_H
| C | 2 | gandhi56/swift | test/Interop/C/modules/print-qualified-clang-types/Inputs/foreign-a.h | [
"Apache-2.0"
] |
# Authors: Shane Grigsby <refuge@rocktalus.com>
# Adrin Jalali <adrin.jalali@gmail.com>
# License: BSD 3 clause
import numpy as np
import pytest
from sklearn.datasets import make_blobs
from sklearn.cluster import OPTICS
from sklearn.cluster._optics import _extend_region, _extract_xi_labels
from sklearn.except... | Python | 5 | MaiRajborirug/scikit-learn | sklearn/cluster/tests/test_optics.py | [
"BSD-3-Clause"
] |
import "std/test"
test.run("Check numeric separator", fn(assert) {
const num_no_separators = 10000000
const num_with_separators1 = 10_000_000
const num_with_separators2 = 10__000__000
const num_with_separators3 = 10_000_000_
assert.isEq(num_no_separators, num_with_separators1)
assert.isEq(num_no_separators, num_... | Inform 7 | 4 | lfkeitel/nitrogen | tests/basic/numbers.ni | [
"BSD-3-Clause"
] |
exec("swigtest.start", -1);
checkequal(test("Hello"), "Hello", "test(""Hello"")");
f = new_Foo("Greetings");
checkequal(Foo_str_get(f), "Greetings", "new_Foo(""Greetings"")");
checkequal(Foo_test(f, "Hello"), "Hello", "Foo_test(f)");
delete_Foo(f);
checkequal(Foo_statictest("Hello", 1), "Hello", "Foo_statictest(""H... | Scilab | 2 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/varargs_runme.sci | [
"BSD-3-Clause"
] |
[
Three loop bounds: i,j,k live at c0,c1,c2 accordingly. A triple loop runs and
increments the target (at c3).
]
Set i
+++++ +++++ +++++ +++++ +++++
[
Set j for the next iteration of the inner loop
> +++++ +++++ +++++ +++++ +++++ +++++
[
Set k for the next iteratio... | Brainfuck | 3 | mikiec84/code-for-blog | 2017/bfjit/bf-programs/nested-loop.bf | [
"Unlicense"
] |
import os
from cffi import FFI
# Workaround for the EON/termux build of Python having os.*xattr removed.
ffi = FFI()
ffi.cdef("""
int setxattr(const char *path, const char *name, const void *value, size_t size, int flags);
ssize_t getxattr(const char *path, const char *name, void *value, size_t size);
ssize_t listxatt... | Python | 4 | Neptos/openpilot | common/xattr.py | [
"MIT"
] |
// @has deprecated/index.html '//*[@class="item-left module-item"]/span[@class="stab deprecated"]' \
// 'Deprecated'
// @has - '//*[@class="item-right docblock-short"]' 'Deprecated docs'
// @has deprecated/struct.S.html '//*[@class="stab deprecated"]' \
// 'Deprecated since 1.0.0: text'
/// Deprecated docs
#... | Rust | 4 | mbc-git/rust | src/test/rustdoc/deprecated.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
! Copyright 2016 The Go Authors. All rights reserved.
! Use of this source code is governed by a BSD-style
! license that can be found in the LICENSE file.
function the_answer() result(j) bind(C)
use iso_c_binding, only: c_int
integer(c_int) :: j ! output
j = 42
end function the_answer
| FORTRAN | 4 | Havoc-OS/androidprebuilts_go_linux-x86 | misc/cgo/fortran/answer.f90 | [
"BSD-3-Clause"
] |
table t1 : {A : int, B : string, C : float, D : bool}
fun display (q : sql_query [T1 = [A = int, B = string, C = float, D = bool]] []) =
s <- query q
(fn fs _ => return (Some fs.T1))
None;
return <html><body>
{case s of
None => cdata "Ro... | UrWeb | 4 | apple314159/urweb | tests/pquery.ur | [
"BSD-3-Clause"
] |
REBOL [
Title: "secure-clean-path"
File: %secure-clean-path.r
Date: 19-Sep-2002
Version: 1.0.1
Author: ["Brian Hawley" "Anton Rolls"]
Rights: {
Copyright (C) Brian Hawley and Anton Rolls 2002. License for
redistribution, use and modification is granted only if this
copyright notice is included, and does not... | R | 4 | 0xflotus/red | system/utils/secure-clean-path.r | [
"BSL-1.0",
"BSD-3-Clause"
] |
lexer grammar t056lexer12;
options {language=JavaScript;}
B : x='a' x='b' ;
| G-code | 3 | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | java/java2py/antlr-3.1.3/runtime/JavaScript/tests/functional/t056lexer12.g | [
"Apache-2.0"
] |
=pod
=head1 NAME
ossl_random_add_conf_module - internal random configuration module
=head1 SYNOPSIS
#include "crypto/rand.h"
/* Configuration */
void ossl_random_add_conf_module(void);
=head1 DESCRIPTION
ossl_random_add_conf_module() adds the random configuration module
for providers.
This allows the type and... | Pod | 4 | pmesnier/openssl | doc/internal/man3/ossl_random_add_conf_module.pod | [
"Apache-2.0"
] |
frequency,raw
20.00,-4.24
20.20,-4.17
20.40,-4.09
20.61,-4.03
20.81,-3.95
21.02,-3.89
21.23,-3.84
21.44,-3.80
21.66,-3.76
21.87,-3.73
22.09,-3.69
22.31,-3.67
22.54,-3.65
22.76,-3.63
22.99,-3.63
23.22,-3.61
23.45,-3.60
23.69,-3.60
23.92,-3.60
24.16,-3.59
24.40,-3.59
24.65,-3.61
24.89,-3.62
25.14,-3.63
25.39,-3.63
25.65,... | CSV | 1 | vinzmc/AutoEq | research/calibration/crinacle_harman_over-ear_2018_wo_bass.csv | [
"MIT"
] |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <assert.h>
#include <emmintrin.h>
#include <qnnpack/q8avgpool.h>
void pytorch_q8avgpool_u... | C | 2 | Hacky-DH/pytorch | aten/src/ATen/native/quantized/cpu/qnnpack/src/q8avgpool/up8xm-sse2.c | [
"Intel"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.