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 |
|---|---|---|---|---|---|
module ietf-softwire-common {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-softwire-common";
prefix softwire-common;
import ietf-inet-types {
prefix inet;
reference "Section 4 of RFC 6991";
}
import ietf-yang-types {
prefix yang;
reference "Section 3 of RFC 6991";
}
or... | YANG | 5 | peahonen/snabb | src/lib/yang/ietf-softwire-common.yang | [
"Apache-2.0"
] |
package com.baeldung.lambda.todo.api;
import feign.RequestLine;
import java.util.List;
public interface ToDoApi {
@RequestLine("GET /todos")
List<ToDoItem> getAllTodos();
}
| Java | 4 | DBatOWL/tutorials | aws-lambda/todo-reminder/ToDoFunction/src/main/java/com/baeldung/lambda/todo/api/ToDoApi.java | [
"MIT"
] |
digraph smartcastOnLambda_kt {
graph [nodesep=3]
node [shape=box penwidth=2]
edge [penwidth=2]
subgraph cluster_0 {
color=red
0 [label="Enter function test" style="filled" fillcolor=red];
subgraph cluster_1 {
color=blue
1 [label="Enter block"];
... | Graphviz (DOT) | 4 | Mu-L/kotlin | compiler/fir/analysis-tests/testData/resolve/smartcasts/lambdas/smartcastOnLambda.dot | [
"ECL-2.0",
"Apache-2.0"
] |
= render layout: 'projects/protected_branches/shared/protected_branch', locals: { protected_branch: protected_branch } do
= render_if_exists 'projects/protected_branches/update_protected_branch', protected_branch: protected_branch
| Haml | 4 | hugorebelo/gitlabhq | app/views/projects/protected_branches/_protected_branch.html.haml | [
"MIT"
] |
-- Copyright 2017-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 = "FullHunt"
type = "api"
function start()
set_rate_limit(1)
end
function vertical(ctx, domain)
local resp, err = reques... | Ada | 4 | Elon143/Amass | resources/scripts/api/fullhunt.ads | [
"Apache-2.0"
] |
=Introduction=
This page describes any possible issues you may have with wro4j while integrating in your web application.
==!JsMinProcessor fails during minimization==
The !JsMinProcessor fails during minimization if the script contains an expression which contains new lines. Example:
{{{
Math.round(4
/3);
}}}
The s... | MediaWiki | 3 | supakiad/wro4j | docs/KnownIssues.wiki | [
"Apache-2.0"
] |
/*!40101 SET NAMES binary*/;
/*!40014 SET FOREIGN_KEY_CHECKS=0*/;
/*!40103 SET TIME_ZONE='+00:00' */;
INSERT INTO `tbl_autoid` VALUES
(1,"0-0-0"),
(2,"0-0-1"),(3,"0-0-2"),
(4,"0-0-3"),(5,"0-0-4"),(6,"0-0-5"),
(7,"0-0-6"),(8,"0-0-7"),(9,"0-0-8"),(10,"0-0-9");
INSERT INTO `tbl_autoid` VALUES
(11,"0-0-10"),
(12,"0-0-11"),... | SQL | 0 | imtbkcat/tidb-lightning | lightning/mydump/examples/mocker_test.tbl_autoid.sql | [
"Apache-2.0"
] |
; RUN: %swift-llvm-opt -swift-merge-functions -swiftmergefunc-threshold=4 %s | %FileCheck %s
; REQUIRES: CODEGENERATOR=AArch64
target triple = "arm64e-apple-macosx11.0.0"
; CHECK: [[RELOC1:@[0-9]+]] = private constant { i8*, i32, i64, i64 } { i8* bitcast (i32 (i32, i32)* @callee1 to i8*), i32 0, i64 0, i64 [[DISCR:[0... | LLVM | 4 | gandhi56/swift | test/LLVMPasses/merge_func_ptrauth.ll | [
"Apache-2.0"
] |
-- This is a new query in TPCDS v2.7
select
cd_gender,
cd_marital_status,
cd_education_status,
count(*) cnt1,
cd_purchase_estimate,
count(*) cnt2,
cd_credit_rating,
count(*) cnt3,
cd_dep_count,
count(*) cnt4,
cd_dep_employed_count,
count(*) cnt5,
cd_dep_college_count,
count(*) cnt6
from
cu... | SQL | 3 | OlegPt/spark | sql/core/src/test/resources/tpcds-v2.7.0/q10a.sql | [
"Apache-2.0"
] |
menu {
color: blue;
}
box {
border-radius: 4px;
background-color: red
}
a {
color: green
}
b {
color: red
}
| CSS | 2 | 0x7c48/mitmproxy | test/mitmproxy/contentviews/test_css_data/simple-formatted.css | [
"MIT"
] |
x1 ← (-÷)4 ⍝ -> ¯0.25
x2 ← 8(-÷)4 ⍝ -> ¯2.0
y ← (--)4 ⍝ -> 4
A ← 3 2 ⍴ ⍳ 6
z ← (⍉⌽)A ⍝ 2 1
⍝ 4 3
⍝ 6 5 -> ⍝ 2 4 6
⍝ 1 3 5
⎕ ← z
x1 + x2 + y ⍝ --> 1.75 | APL | 3 | melsman/apltail | tests/trainatop.apl | [
"MIT"
] |
integer listenHandle;
default
{
state_entry()
{
//Creates the bot in the sim at the given location
key botID = botCreateBot("Test", "Bot", "", llGetPos(), BOT_CREATE_DEFAULT);
//Sets a listen handle on the bot that will listen to public chat for
// chat commands from the script owne... | LSL | 4 | Asterionworld/ether | doc/bot LSL Functions/Examples/bot Listening.lsl | [
"BSD-3-Clause"
] |
"""Adds config flow for AccuWeather."""
from __future__ import annotations
import asyncio
from typing import Any
from accuweather import AccuWeather, ApiError, InvalidApiKeyError, RequestsExceededError
from aiohttp import ClientError
from aiohttp.client_exceptions import ClientConnectorError
from async_timeout import... | Python | 5 | MrDelik/core | homeassistant/components/accuweather/config_flow.py | [
"Apache-2.0"
] |
// run-pass
#![allow(unused_unsafe)]
// ignore-pretty issue #37199
#![allow(while_true)]
fn main() {
let x = 1;
match x {
1 => loop { break; },
2 => while true { break; },
3 => if true { () },
4 => if true { () } else { () },
5 => match () { () => () },
6 => { (... | Rust | 4 | Eric-Arellano/rust | src/test/ui/binding/optional_comma_in_match_arm.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
HAI 1.4
IM IN YR FOR_LOOP UPPIN YR i TIL BOTH SAEM i AN 101
I HAS A fizz ITZ ""
I HAS A buzz ITZ ""
BOTH SAEM 0 AN MOD OF i AN 3, O RLY?
YA RLY, fizz R "fizz"
OIC
BOTH SAEM 0 AN MOD OF i AN 5, O RLY?
YA RLY, buzz R "buzz"
OIC
EITHER OF fizz AN buzz, O RLY?
YA RLY, VISIBLE SMOOSH fizz A... | LOLCODE | 4 | kmoe/fizzbuzz | lolcode/fizzbuzz.lol | [
"MIT"
] |
-module(rebar_dep).
-export ([any_function/0]).
any_function() ->
ok.
| Erlang | 1 | doughsay/elixir | lib/mix/test/fixtures/rebar_dep/src/rebar_dep.erl | [
"Apache-2.0"
] |
unit
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% CanvasClass - Class that implements drawing canvases that are active
% (i.e. respond to mouse presses)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The external interface of Can... | Turing | 5 | ttracx/OpenTuring | turing/test/support/lib/GUIClass/CanvasClass.tu | [
"MIT"
] |
#define nfm_dir.mask_width 32
#define nfm_dir.mask_height 32
#define nfm_dir.mask_x_hot 16
#define nfm_dir.mask_y_hot 16
static char nfm_dir.mask_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00... | Mask | 3 | bekuno/perl-tk | demos/demos/images/dir.mask | [
"TCL"
] |
import {Component, NgModule} from '@angular/core';
import {ForOfDirective} from './for_of';
@Component({
selector: 'my-component',
template: `<svg><g *for="let item of items"><circle></circle></g></svg>`
})
export class MyComponent {
items = [{data: 42}, {data: 42}];
}
@NgModule({declarations: [MyComponent, For... | TypeScript | 4 | John-Cassidy/angular | packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/svg_embedded_view.ts | [
"MIT"
] |
$$ MODE TUSCRIPT
tablefile="table.html"
ERROR/STOP CREATE (tablefile,FDF-o,-std-)
ACCESS d: WRITE/ERASE/RECORDS/utf8 $tablefile s,tablecontent
tablecontent=*
WRITE d "<!DOCTYPE html system>"
WRITE d "<html><head><title>create html table</title></head>"
WRITE d "<body><table><thead align='right'>"
WRITE d "<tr><th> ... | Turing | 4 | mullikine/RosettaCodeData | Task/Create-an-HTML-table/TUSCRIPT/create-an-html-table.tu | [
"Info-ZIP"
] |
#include <Arduino.h>
#include <SPI.h>
#include "u8x8.h"
uint8_t u8x8_gpio_and_delay_arduino(u8x8_t *u8g2, uint8_t msg, uint8_t arg_int, void *arg_ptr)
{
switch(msg)
{
case U8X8_MSG_GPIO_AND_DELAY_INIT:
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
pinMode(10, OUTPUT);
pinMode(11, OUTPUT... | Arduino | 5 | Linghhh/u8g2 | sys/arduino/test/test.ino | [
"BSD-2-Clause"
] |
'reach 0.1';
export const main =
Reach.App(
{},
[Participant('A',{})],
(A) => {
A.only(() => { const x = 1; });
A.publish(x);
assert(x == 1, 4);
commit();
exit();
} );
| RenderScript | 4 | chikeabuah/reach-lang | hs/t/n/Err_Expected.rsh | [
"Apache-2.0"
] |
<GameFile>
<PropertyGroup Name="EightBallSettingLayer" Type="Layer" ID="7dd37e78-c247-46ca-bdb0-173494f5e1fa" Version="3.10.0.0" />
<Content ctype="GameProjectContent">
<Content>
<Animation Duration="0" Speed="1.0000" />
<ObjectData Name="Layer" Tag="70" ctype="GameLayerObjectData">
<Size X=... | Csound | 3 | zhake911/zhuoqiuStudio | CocosStudio/cocosstudio/UI/Billiards/EightBallSettingLayer.csd | [
"Apache-2.0"
] |
package com.baeldung.hibernate.ogm;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import org.hibernate.annotations.GenericGenerator;
@Ent... | Java | 4 | DBatOWL/tutorials | persistence-modules/hibernate-ogm/src/main/java/com/baeldung/hibernate/ogm/Editor.java | [
"MIT"
] |
;; WARNING: NsisFile.nsi is automatically generated from NsisFile.nsi.mu by
;; the hptool. Make sure you are editing NsisFile.nsi.mu, not NsisFile.nsi.
; Haskell Platform Installer
;--------------------------------
;Includes
!Include "EnvVarUpdate.nsh"
!Include "FileFunc.nsh"
!Include "StrFunc.nsh"
!Includ... | mupad | 5 | TikhonJelvis/haskell-platform | hptool/os-extras/win/templates/Nsisfile.nsi.mu | [
"BSD-3-Clause"
] |
CLASS zcl_abapgit_zlib_stream DEFINITION
PUBLIC
CREATE PUBLIC .
PUBLIC SECTION.
METHODS constructor
IMPORTING
!iv_data TYPE xstring .
METHODS take_bits
IMPORTING
!iv_length TYPE i
RETURNING
VALUE(rv_bits) TYPE string .
METHODS take_int
IMPORTING
... | ABAP | 4 | jeevanrajv1901/ABAPGIT | src/zlib/zcl_abapgit_zlib_stream.clas.abap | [
"MIT"
] |
[
{
"http://example.org/property": [ { "@value": "ok" } ],
"http://example.org/vocabRelativeProperty": [ { "@value": "must expand to http://example.org/vocabRelativeProperty" } ]
}
]
| JSONLD | 2 | fsteeg/json-ld-api | tests/expand/0052-out.jsonld | [
"W3C"
] |
#N canvas 211 116 733 546 12;
#X obj 75 424 osc~;
#X obj 125 206 r poll-table;
#X obj 176 349 + 50;
#X obj 176 375 dbtorms;
#X msg 125 351 0;
#X obj 125 404 pack 0 30;
#X obj 125 434 line~;
#X obj 75 483 throw~ sum-bus;
#X obj 75 454 *~;
#X obj 75 99 r pitch;
#X obj 75 126 mtof;
#X obj 125 242 f;
#X obj 75 154 * \$1;
#... | Pure Data | 4 | mcclure/pure-data | doc/3.audio.examples/spectrum-partial.pd | [
"TCL"
] |
#!/bin/bash
cat >/etc/teleport.d/conf <<EOF
TELEPORT_ROLE=node
EC2_REGION=${region}
TELEPORT_AUTH_SERVER_LB=${auth_server_addr}
TELEPORT_CLUSTER_NAME=${cluster_name}
TELEPORT_INFLUXDB_ADDRESS=${influxdb_addr}
USE_ACM=${use_acm}
EOF | Smarty | 3 | hooksie1/teleport | examples/aws/terraform/node-user-data.tpl | [
"Apache-2.0"
] |
:- style_check(all).
:- use_module(library(bdd)).
:- use_module(library(lists)).
:- use_module(library(maplist)).
t1 :-
t1(X),
writeln(X),
fail.
t1.
t1(BDD:T) :-
bdd_new(X+(_Y+X)*(-_Z), BDD),
bdd_tree(BDD,T).
t2 :-
t2(X),
writeln(X),
fail.
t2.
t2(V) :-
bdd_new(X+(Y+X)*(-Z), BDD),
member(X, [0,1]),
mem... | Prolog | 4 | ryandesign/yap | packages/bdd/examples/bdd.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
'
' vbc /t:library MDTestLib2.vb /r:MDTestLib1.dll
'
Public Class TC5(Of TC5_T1, TC5_T2)
Inherits C1(Of TC5_T1).C... | Visual Basic | 4 | ffMathy/roslyn | src/Compilers/Test/Resources/Core/SymbolsTests/MDTestLib2.vb | [
"MIT"
] |
% Permissions are:
%
% Perm = shared(r)
% | borrow(r)
% | own
% | Z
%
% Permissions can be ordered according to a `<=` relation,
% which also extends to regions `R`. The precise nature of
% regions is not defined in this set of rules, which assumes
% a functioning borrow check.
permLess(shared(R1), sha... | Prolog | 5 | tolziplohu/lark | notes/permissions.prolog | [
"Apache-2.0",
"MIT"
] |
/obj/effect
name = ""
mouse_opacity = 0
density = 0
layer = TURF_LAYER+0.1
icon = 'icons/objects/effects/effect.dmi'
flags = FLAG_ETHEREAL | FLAG_ANCHORED
/obj/effect/New()
..()
verbs.Cut()
| DM | 3 | BloodyMan/Antimonium | code/objects/effects/_effect.dm | [
"CC-BY-4.0"
] |
package com.baeldung.joinpoint;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import java.util.Arrays;
import java.util.List;
import static java.util.stream.Collectors.toList;
@Service
public class ArticleService {
public List<String> getArticleList() {
ret... | Java | 4 | DBatOWL/tutorials | spring-aop/src/main/java/com/baeldung/joinpoint/ArticleService.java | [
"MIT"
] |
// Copyright 2018 The Grafeas 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 ap... | ANTLR | 5 | agv426/grafeas | server-go/filtering/parser/gen/FilterExpression.g4 | [
"Apache-2.0"
] |
/*##############################################################################
## HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®. All rights reserved.
############################################################################## */
IMPORT Std.Str;
EXPORT TestToUpperCase := MODULE
EXPORT TestConstant :=... | ECL | 3 | miguelvazq/HPCC-Platform | ecllibrary/teststd/str/TestToUpperCase.ecl | [
"Apache-2.0"
] |
# Calculate and output all fibonacci numbers under 100
+++++++++++
>+>>>>++++++++++++++++++++++++++++++++++++++++++++
>++++++++++++++++++++++++++++++++<<<<<<[>[>>>>>>+>
+<<<<<<<-]>>>>>>>[<<<<<<<+>>>>>>>-]<[>++++++++++[-
<-[>>+>+<<<-]>>>[<<<+>>>-]+<[>[-]<[-]]>[<<[>>>+<<<
-]>>[-]]<<]>>>[>>+>+<<<-]>>>[<<<+>>>-]+<[>[-]<[-... | Brainfuck | 1 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Brainfuck/fib100.bf | [
"MIT"
] |
{
outPath: './customOutputArgs.webp',
clips: [
{ duration: 2, layers: [{ type: 'title-background', text: 'Custom output args' }] },
],
customOutputArgs: ['-compression_level', '5', '-qscale', '60', '-vcodec', 'libwebp'],
} | JSON5 | 3 | aaverty/editly | examples/customOutputArgs.json5 | [
"MIT"
] |
\pinclude "includes/include2.ly" | LilyPond | 1 | HolgerPeters/lyp | spec/package_setups/includes/c@0.3/package.ly | [
"MIT"
] |
.a.svelte-xyz+.b.svelte-xyz{color:green}.a.svelte-xyz+.c.svelte-xyz{color:green}.a.svelte-xyz+.d.svelte-xyz{color:green}.b.svelte-xyz+.e.svelte-xyz{color:green}.c.svelte-xyz+.e.svelte-xyz{color:green}.d.svelte-xyz+.e.svelte-xyz{color:green} | CSS | 1 | Theo-Steiner/svelte | test/css/samples/siblings-combinator-if/expected.css | [
"MIT"
] |
musicals" 1.5284688499004331 0.0 0.0 0.0 1.7107904066943878 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.3743181700731748 0.83532166934048779 3.3202283191284883 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
release 0.0 2.0674653506331202 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.... | DM | 0 | tommasoc80/EventStoryLine | ppmi_events_ecb+_test/4/same_sentence_ppmi.dm | [
"CC-BY-3.0"
] |
## Relevant Articles:
- [Guide to QuarkusIO](https://www.baeldung.com/quarkus-io)
- [Testing Quarkus Applications](https://www.baeldung.com/java-quarkus-testing)
| Markdown | 2 | DBatOWL/tutorials | quarkus/README.md | [
"MIT"
] |
/********************************************************************************
* Copyright (c) {date} Red Hat Inc. and/or its affiliates and others
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* http://www.apache.o... | Ceylon | 4 | Kopilov/ceylon-ide-intellij | source/org/eclipse/ceylon/ide/intellij/correct/specifyTypeQuickFix.ceylon | [
"Apache-2.0"
] |
module Lang
impl string { fn fmt (args : list[Lang::Show]) {
match (self.find("{}"), args) {
(-1, _) { self }
(idx, x $ args') {
self[,idx] +
x.str() +
self[idx + 2,].fmt(args')
}
}
}}
impl opt[#a(Lang::Show)] { fn str () {
match self {
Some(x) -> "Some(" + x.str() + ")"
None... | Opal | 4 | iitalics/Opal | opal_libs/Lang/format.opal | [
"MIT"
] |
--TEST--
Test array_multisort() function : usage variation - testing with multiple array arguments
--FILE--
<?php
echo "*** Testing array_multisort() : Testing with multiple array arguments ***\n";
$arr1 = array (4,3,3,3);
$arr2 = array (9,3,2,2);
$arr3 = array (9,9,2,1);
var_dump(array_multisort($arr1, $arr2, $arr3... | PHP | 4 | NathanFreeman/php-src | ext/standard/tests/array/array_multisort_variation4.phpt | [
"PHP-3.01"
] |
//////////////////////////////////////////////////////////////////////////////////
// This file was generated by ./Create_Instantiation_Template.py <file> <debug> //
// The following must be inserted into your Verilog file for this core to be //
// instantiated. Change the instance name and port connections (in pare... | Verilog | 4 | jreindel/VerilogScripts | Example-Ethernet_Frame_Builder_AXIS.veo | [
"MIT"
] |
hello = Hello, world!
bye = See you later!
| FreeMarker | 0 | csh/amethyst | examples/locale/assets/locale/locale_en.ftl | [
"MIT"
] |
;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 6
Scriptname QF__Seed_TrackingQuest_0400A69D Extends Quest Hidden
;BEGIN FRAGMENT Fragment_4
Function Fragment_4()
;BEGIN CODE
SetObjectiveDisplayed(10)
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_0
Func... | Papyrus | 3 | chesko256/Campfire | Scripts/Source/QF__Seed_TrackingQuest_0400A69D.psc | [
"MIT"
] |
func $singlefoo(var %a i32) i32 {
return (dread i32 %a)
}
func $fact(var %n i32) i32 {
var %m i32
var %r1 i32
var %r2 i32
var %r3 i32
callassigned &singlefoo(dread i32 %n) {
dassign %m 0
}
# Not correct, but for parse and dump test.
callassigned &singlefoo(dread i32 %n) {
dassign %r1 1
... | Maple | 2 | harmonyos-mirror/OpenArkCompiler-test | test/testsuite/irbuild_test/I0013-mapleall-irbuild-edge-callassigned/Main.mpl | [
"MulanPSL-1.0"
] |
.\" Manpage for pki.io.
.\" Contact lixtetrax@grhack.net to correct errors or typos.
.TH man 1 "24 January 2015" "0.1" "pki.io man page"
.SH NAME
pki.io \- next-gen PKI handling tool
.SH SYNOPSIS
pki.io
.SH DESCRIPTION
next-gen PKI handling tool
.SH OPTIONS
Usage:
pki.io init <org> [--admin=<admin>]
pki.io ca new <n... | Io | 3 | ajnavarro/language-dataset | data/github.com/pki-io/pki-io/55e3be010c87bdd189e2522ea2d26357f2e5704f/manpage/pki.io | [
"MIT"
] |
%h3 500 Internal Server Error
%hr
%p
Sorry.
| Scaml | 1 | tototoshi/skinny-framework | example/src/main/webapp/WEB-INF/views/error/500.html.scaml | [
"MIT"
] |
program TextTestFixture;
{$APPTYPE CONSOLE}
{$R *.res}
uses
System.SysUtils,
System.Generics.Collections,
GildedRose in 'GildedRose.pas',
Item in 'Item.pas';
var
Days, ErrorCode, I, J: Integer;
Items: TObjectList<TItem>;
App: TGildedRose;
begin
try
Writeln('OMGHAI!');
Items := TObjectList<... | Pascal | 4 | yangyangisyou/GildedRose-Refactoring-Kata | Delphi/TextTestFixture.dpr | [
"MIT"
] |
# coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import ExtractorError
from ..compat import compat_urlparse
class TuneInBaseIE(InfoExtractor):
_API_BASE_URL = 'http://tunein.com/tuner/tune/'
@staticmethod
def _extract_urls(webpage):
... | Python | 4 | hackarada/youtube-dl | youtube_dl/extractor/tunein.py | [
"Unlicense"
] |
[
(block_node)
] @fold
| Scheme | 0 | hmac/nvim-treesitter | queries/yaml/folds.scm | [
"Apache-2.0"
] |
//===--- Located.cpp - Source Location and Associated Value ----------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LIC... | C++ | 4 | gandhi56/swift | lib/Basic/Located.cpp | [
"Apache-2.0"
] |
{{! Copyright (c) Avanade. Licensed under the MIT License. See https://github.com/Avanade/Beef }}
CREATE TABLE [{{CdcSchema}}].[{{CdcIdentifierMappingTableName}}] (
/*
* This is automatically generated; any changes will be lost.
*/
[Schema] VARCHAR(50) NOT NULL,
[Table] VARCHAR(128) NOT NULL,
[Key] NVAR... | Harbour | 4 | ciaranodonnell/Beef | tools/Beef.CodeGen.Core/Templates/DbCdcIdentifierMappingTableCreate_sql.hb | [
"MIT"
] |
.container {
min-height: 100vh;
padding: 0 0.5rem;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.main {
padding: 1rem 0;
width: 100%;
flex: 1;
height: calc(100vh - 100px);
display: flex;
flex-direction: row;
justify-content: center;
}
.complete,
.inc... | CSS | 4 | blomqma/next.js | examples/with-deta-base/styles/Home.module.css | [
"MIT"
] |
/*++
Copyright (c) Microsoft Corporation
Licensed under the MIT license.
Module Name:
- IFontDefaultList.hpp
Abstract:
- This serves as an abstraction to retrieve a list of default preferred fonts that we should use if the user hasn't chosen one.
Author(s):
- Michael Niksa (MiNiksa) 14-Mar-2016
--*/
#pr... | C++ | 4 | hessedoneen/terminal | src/renderer/inc/IFontDefaultList.hpp | [
"MIT"
] |
import Prim "mo:⛔";
actor a {
flexible var pending : Int = 4;
// test that oneways can locally try/throw
public func oneway() : () {
Prim.debugPrint "1";
try {
throw (Prim.error("Error"));
Prim.debugPrint "unreachable";
}
catch e { Prim.debugPrint "2"};
pending -= 1;
};
// t... | Modelica | 4 | olaszakos/motoko | test/run-drun/oneway.mo | [
"Apache-2.0"
] |
double(x : 'i32) {
x as f32 * 2.0f
}
lessThan5(x : 'f32) {
x < 5.0f
}
add(l : 'f32, r : 'f32) {
l + r
}
sum(
x := 0.0f
) { this }
sumAdd(sum : 'sum, x : 'f32)'sum {
sum(sum.x + x)
}
a : [1, 2, 3]
b : a.map!f32(double)
c : b.filter(lessThan5)
d : c.foldl!sum(sum(), sumAdd) | Objective-J | 4 | justinmann/sj | tests/array6.sj | [
"Apache-2.0"
] |
BEGIN { print "a" ~ /(^| )*(a|b)*(c|d)( |$)/ }
| Awk | 3 | Crestwave/goawk | testdata/gawk/dfastress.awk | [
"MIT"
] |
RwPlatformNestedProjectLoadComponentV2 {
#name : 'gemstone/Sparkle',
#condition : [
'gs3.[7-]'
],
#packageNames : [
'Sparkle-Tools-GemStone'
],
#comment : 'gemstone packages for Sparkle, minimum version 3.7.0'
} | STON | 2 | lifeware-sa/Sparkle | rowan/components/gemstone/Sparkle.ston | [
"MIT"
] |
attribute vec2 aVertexPosition;
uniform mat3 projectionMatrix;
varying vec2 v_rgbNW;
varying vec2 v_rgbNE;
varying vec2 v_rgbSW;
varying vec2 v_rgbSE;
varying vec2 v_rgbM;
varying vec2 vFragCoord;
uniform vec4 inputSize;
uniform vec4 outputFrame;
vec4 filterVertexPosition( void )
{
vec2 position = aVertexPosi... | GLSL | 3 | fanlistener/pixijs | packages/filters/filter-fxaa/src/fxaa.vert | [
"MIT"
] |
syntax = "proto3";
package tensorflow;
option cc_enable_arenas = true;
option java_outer_classname = "CriticalSectionProtos";
option java_multiple_files = true;
option java_package = "org.tensorflow.framework";
option go_package = "github.com/tensorflow/tensorflow/tensorflow/go/core/protobuf/for_core_protos_go_proto"... | Protocol Buffer | 4 | yage99/tensorflow | tensorflow/core/protobuf/critical_section.proto | [
"Apache-2.0"
] |
--TEST--
Check for exif_read_data, Unicode WinXP tags
--EXTENSIONS--
exif
--SKIPIF--
<?php
if (!defined("EXIF_USE_MBSTRING") || !EXIF_USE_MBSTRING) die ('skip mbstring loaded by dl');
?>
--INI--
output_handler=
zlib.output_compression=0
exif.decode_unicode_intel=UCS-2LE
exif.decode_unicode_motorola=UCS-2BE
exif.enc... | PHP | 3 | NathanFreeman/php-src | ext/exif/tests/exif004.phpt | [
"PHP-3.01"
] |
<VirtualHost *:443>
ServerName repository.domaindrivenarchitecture.org
ServerAdmin admin@localdomain
JkMount /* mod_jk_www
ErrorDocument 503 /error/503.html
Alias /error "/var/www/static/error"
JkUnMount /error/* mod_jk_www
ErrorLog "/var/log/apache2/error.log"
LogLevel warn
CustomLog "/var/log/apa... | ApacheConf | 3 | DomainDrivenArchitecture/dda-httpd-crate | main/resources/gitblit.vhost | [
"Apache-2.0"
] |
[| s |
"
This is an example setup script to load the lobby browser website,
setup the webserver and save to a snapshot ready to run.
"
s: webserver exampleServlets lobbyBrowserServlet copy.
webserver server registerServlet: s.
webserver server port: 8000.
webserver server startAutomatically: tru... | Self | 3 | russellallen/self-webserver | loadbrowser.self | [
"MIT"
] |
--TEST--
Test idate() function : basic functionality
--FILE--
<?php
echo "*** Testing idate() : basic functionality ***\n";
// Initialise all required variables
$format = 'Y';
// Calling idate() with mandatory arguments
date_default_timezone_set("Asia/Calcutta");
var_dump( idate($format) );
?>
--EXPECTF--
*** Testing... | PHP | 4 | NathanFreeman/php-src | ext/date/tests/idate_basic.phpt | [
"PHP-3.01"
] |
clear all
elementNodes = [1 2;2 3;2 4];
%这一步的主要工作时通过我们已经定义的结点的
%连接方式来获得有几个element(也就是有几行)
numberElements = sizes(elementNodes,1);
numberNodes = 4;
%定义了一个numbernode行,1列的零向量,
%作为位移(displacement)的容器
displacements = zeros(numberNodes,1);
force = zeros(numberNodes,1);
%这里只有一个参数了,就是建立了一个维数为numNodes的一个矩阵
%这里为什么矩阵是numberNodes维... | Matlab | 3 | cc8887/LeggedRobot | FEM.matlab | [
"BSD-2-Clause"
] |
(defmodule specs-test
(export (s1 0) (s2 1) (s3 2) (s4 2) (s5 2) (s6-1 2) (s6-2 2))
(export (is3 1))
(spec #(bad_spec))) ;Non spec attribute
;;(include-file "include_specs.hrl")
(include-file "include-specs.lfe")
(defun s1 () 42)
(defun s2 (x) 42)
(defun s3
(['a 19] "hej"))
(defun s4
([... | LFE | 3 | haetze/lfe | dev/specs-test.lfe | [
"Apache-2.0"
] |
Member()
omit('***$***',_VER_C55)
_ABCDllMode_ EQUATE(0)
_ABCLinkMode_ EQUATE(1)
***$***
Include('Equates.CLW'),ONCE
Include('Keycodes.CLW'),ONCE
Include('Errors.CLW'),ONCE
Map
End ! map
Include('CStringClass.inc'),ONCE
CStringClass.Construct PROCE... | Clarion | 5 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Clarion/CStringClass.clw | [
"MIT"
] |
<div class="a svelte-xyz"></div>
<div class="b svelte-xyz"></div>
<div class="c svelte-xyz"></div>
<div class="d svelte-xyz"></div> | HTML | 0 | Theo-Steiner/svelte | test/css/samples/siblings-combinator-each-2/expected.html | [
"MIT"
] |
=pod
=head1 NAME
EVP_KEYEXCH-X25519,
EVP_KEYEXCH-X448
- X25519 and X448 Key Exchange algorithm support
=head1 DESCRIPTION
Key exchange support for the B<X25519> and B<X448> key types.
=head2 Key exchange parameters
=over 4
=item "pad" (B<OSSL_EXCHANGE_PARAM_PAD>) <unsigned integer>
See L<provider-keyexch(7)/Com... | Pod | 3 | pmesnier/openssl | doc/man7/EVP_KEYEXCH-X25519.pod | [
"Apache-2.0"
] |
(ns open-api-petstore.api.user
(:require [open-api-petstore.core :refer [call-api check-required-params with-collection-format *api-context*]]
[clojure.spec.alpha :as s]
[spec-tools.core :as st]
[orchestra.core :refer [defn-spec]]
[open-api-petstore.specs.tag :refer :al... | Clojure | 5 | MalcolmScoffable/openapi-generator | samples/client/petstore/clojure/src/open_api_petstore/api/user.clj | [
"Apache-2.0"
] |
pub mod os {
pub const FAMILY: &str = "windows";
pub const OS: &str = "windows";
pub const DLL_PREFIX: &str = "";
pub const DLL_SUFFIX: &str = ".dll";
pub const DLL_EXTENSION: &str = "dll";
pub const EXE_SUFFIX: &str = ".exe";
pub const EXE_EXTENSION: &str = "exe";
}
| Rust | 4 | Eric-Arellano/rust | library/std/src/sys/windows/env.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
fileFormatVersion: 2
guid: f3a0fe3f0bd446958c729d6f71e8d00b
timeCreated: 1612373241 | Unity3D Asset | 0 | cihan-demir/NineMensMorris | unity/ExternalPackages/com.unity.ml-agents.extensions/Runtime/Input/Adaptors/ButtonInputActionAdaptor.cs.meta | [
"MIT"
] |
{{ robot.price|default(10.0) }}
| Volt | 1 | tidytrax/cphalcon | tests/_data/fixtures/views/filters/default.volt | [
"BSD-3-Clause"
] |
# This file is part of NIT ( http://www.nitlanguage.org ).
#
# Copyright 2004-2008 Jean Privat <jean@pryen.org>
#
# 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/l... | Nit | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Nit/procedural_array.nit | [
"MIT"
] |
package testdata_test
import "testing"
option now = () => 2030-01-01T00:00:00Z
inData =
"
#datatype,string,long,string,string,string,dateTime:RFC3339,string
#group,false,false,true,true,true,false,false
#default,_result,,,,,,
,result,table,_measurement,_field,t0,_time,_value
,,0,m1,f1,server01,2018-12-19T22:13:... | FLUX | 4 | metrico/flux | stdlib/testing/kapacitor/fill_default_test.flux | [
"MIT"
] |
CREATE TABLE `tb_bfwanxinyr` (
`col_msdkdkrbqj` tinytext CHARACTER SET latin1,
`col_qkgtxzzfie` tinyblob,
UNIQUE INDEX `col_msdkdkrbqj` (`col_msdkdkrbqj`(30))
) DEFAULT CHARSET=latin1;
RENAME TABLE `tb_bfwanxinyr` TO `tb_wvhiikgeky`;
RENAME TABLE `tb_wvhiikgeky` TO `tb_krsikytrbw`;
ALTER TABLE `tb_krsikytrbw` ADD... | SQL | 2 | yuanweikang2020/canal | parse/src/test/resources/ddl/alter/test_51.sql | [
"Apache-2.0"
] |
package com.alibaba.json.bvt.parser.deser;
import java.util.UUID;
import org.junit.Assert;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONException;
import com.alibaba.fastjson.parser.DefaultJSONParser;
import com.alibaba.fastjson.parser.JSONToken;
import com.alibaba.fastjson.parser.ParserConfig;
... | Java | 4 | Czarek93/fastjson | src/test/java/com/alibaba/json/bvt/parser/deser/UUIDDeserializerTest.java | [
"Apache-2.0"
] |
#!/bin/awk -f
function crash () {
exit 1
}
function true (a,b,c) {
return 1
}
BEGIN {
if (ARGV[2] == 1) {
print "<BEGIN CONTEXT> true(1, crash()) => crash properly."
true(1, crash())
# ADR: Added:
delete ARGV[2]
}
}
{
print "<RULE CONTEXT> true(1, crash()) => do not crash p... | Awk | 3 | Crestwave/goawk | testdata/gawk/fcall_exit2.awk | [
"MIT"
] |
@import Foundation;
@import ctypes;
@protocol NSAppearanceCustomization <NSObject>
@end
@interface NSResponder : NSObject
@end
@protocol NSAccessibilityElement <NSObject>
@required
- (id)accessibilityParent;
@end
@protocol NSAccessibilityButton <NSAccessibilityElement>
@required
- (NSString *)accessibilityLabel;
- (... | C | 4 | lwhsu/swift | test/Inputs/clang-importer-sdk/usr/include/AppKit.h | [
"Apache-2.0"
] |
--TEST--
Test vprintf() function : basic functionality - bool format
--FILE--
<?php
echo "*** Testing vprintf() : basic functionality - using bool format ***\n";
// Initialise all required variables
$format = "format";
$format1 = "%b";
$format2 = "%b %b";
$format3 = "%b %b %b";
$arg1 = array(TRUE);
$arg2 = array(TRUE,... | PHP | 4 | NathanFreeman/php-src | ext/standard/tests/strings/vprintf_basic4.phpt | [
"PHP-3.01"
] |
#!/bin/sh
set -ev
mysql -vvv -e "CREATE DATABASE IF NOT EXISTS test"
| Shell | 3 | NathanFreeman/php-src | travis/setup-mysql.sh | [
"PHP-3.01"
] |
return function (str) return '\t' .. str end
| Lua | 1 | uga-rosa/neovim | test/functional/fixtures/start/nvim-leftpad/lua/leftpad.lua | [
"Vim"
] |
#!/bin/bash
npm test
npm run build
| Shell | 3 | JQuinnie/gatsby | scripts/prepublish.sh | [
"MIT"
] |
{{
$Id: test[Pins].spin 9 2011-11-30 06:05:39Z pedward $
Author: Perry Harrington
Copyright: (c) 2011 Perry Harrington
=======================================================================
Test template
}}
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
OBJ
Pins: "Arduino_light"
pst: "Parallax Serial... | Propeller Spin | 4 | deets/propeller | libraries/community/p1/All/Arduino-compatible LIGHT/Auxiliary_Files/testPins.spin | [
"MIT"
] |
<Page xmlns="http://schemas.nativescript.org/tns.xsd"
showingModally="onShowingModally"
shownModally="onShownModally"
loaded="onLoaded" unloaded="onUnloaded" backgroundColor="Red">
<StackLayout backgroundColor="PaleGreen" margin="10">
<Label text="{{ context }}"/>
<TextField hint="username" text="{{ us... | XML | 3 | tralves/NativeScript | apps/ui/src/modal-view/login-page.xml | [
"Apache-2.0"
] |
#!/usr/bin/osascript
# Install Fantastical via the Mac App Store: https://apps.apple.com/us/app/fantastical-calendar-tasks/id975937182
# @raycast.title Create Task
# @raycast.author Vardan Sawhney
# @raycast.authorURL https://github.com/commai
# @raycast.description Speed up setting reminders for Fantastical by invok... | AppleScript | 4 | daviddzhou/script-commands | commands/apps/fantastical/create-todo-in-fantastical.applescript | [
"MIT"
] |
include "testcase.txl"
define c_statements
[repeat c_lang_stmt]
end define
define c_lang_stmt
[al_ragel_stmt]
| [c_variable_decl]
| [c_expr_stmt]
| [c_if_stmt]
| [EX] '{ [IN] [NL] [c_statements] [EX] '} [IN] [NL]
end define
define c_variable_decl
[c_type_decl] [id] [opt union] '; [NL]
end define
define c_... | TXL | 4 | garethchen/hhvm-third-party | ragel/src/test/langtrans_c.txl | [
"MIT"
] |
-- CreateTable
CREATE TABLE "Blog" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"viewCount20" INTEGER NOT NULL
);
| SQL | 2 | safareli/prisma | packages/migrate/src/__tests__/fixtures/edited-and-draft/prisma/migrations/20201117144659_test/migration.sql | [
"Apache-2.0"
] |
"Una prueba de conversacion" by Grendelkhan (in spanish)
Part 1 - Introducción
Section 1 - Extensiones
[Code 19: conversaciones por menus]
Include Basic Screen Effects Sp by Emily Short.
[Include Basic Help Menu SP by Emily Short.]
Include Quip-Based Conversation SP by Michael Martin.
Section 2 - La tienda
Tiend... | Inform 7 | 4 | brtl-fhc/I7-Spanish | EJEMPLOS/XaviTutorial/Cap05_B.ni | [
"Artistic-2.0"
] |
"""Text-to-speech constants."""
DOMAIN = "tts"
| Python | 1 | MrDelik/core | homeassistant/components/tts/const.py | [
"Apache-2.0"
] |
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts(3,17): error TS2693: 'number' only refers to a type, but is being used as a value here.
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts(4,18): error TS2693: 's... | Text | 3 | nilamjadhav/TypeScript | tests/baselines/reference/classExtendingPrimitive.errors.txt | [
"Apache-2.0"
] |
REBOL [
System: "REBOL [R3] Language Interpreter and Run-time Environment"
Title: "Root context"
Rights: {
Copyright 2012 REBOL Technologies
REBOL is a trademark of REBOL Technologies
}
License: {
Licensed under the Apache License, Version 2.0.
See: http://www.apache.org/licenses/LICENSE-2.0
}
Purpose: {... | Rebol | 3 | 0branch/r3 | src/boot/root.reb | [
"Apache-2.0"
] |
// This file is generated from raw_scan.rl. DO NOT EDIT.
%%{
# (except you are actually in raw_scan.rl here, so edit away!)
machine scan;
}%%
package constraints
%%{
write data;
}%%
func scanConstraint(data string) (rawConstraint, string) {
var constraint rawConstraint
var numIdx int
var extra string
// Rage... | Ragel in Ruby Host | 4 | wahello/openshift-installer | terraform/terraform/vendor/github.com/apparentlymart/go-versions/versions/constraints/raw_scan.rl | [
"Apache-2.0"
] |
$TTL 300
@ IN A 40.12.12.12
morty IN A 40.17.17.17
www.morty IN A 40.18.18.18
www IN A 40.12.12.12
| DNS Zone | 4 | IT-Sumpfling/dnscontrol | pkg/js/parse_tests/029-dextendsub/foo.help.zone | [
"MIT"
] |
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C++ | 5 | yage99/tensorflow | tensorflow/c/experimental/filesystem/plugins/posix/copy_file_portable.cc | [
"Apache-2.0"
] |
{-# LANGUAGE GeneralizedNewtypeDeriving, MultiParamTypeClasses #-}
module Implementation.Cryptodev (implementation) where
#include <crypto/cryptodev.h>
#include <asm-generic/ioctl.h>
import Computation
import Data.Bits
import Data.ByteString (length)
import Data.Default
import Data.Functor
import Data.Word
import For... | C2hs Haskell | 4 | GaloisInc/hacrypto | calf/lib/Implementation/Cryptodev.chs | [
"BSD-3-Clause"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.