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 |
|---|---|---|---|---|---|
class Fancy Package {
class Specification {
@@specs = <[]>
read_write_slots: ['author, 'email, 'include_files, 'bin_files,
'description, 'homepage, 'version, 'gh_user, 'package_name]
read_slots: ['dependencies, 'ruby_dependencies]
def initialize: @package_name with: block {
... | Fancy | 3 | bakkdoor/fancy | lib/package/specification.fy | [
"BSD-3-Clause"
] |
pub main
coginit(0, @entry, 0)
dat
org 0
entry
_testit
test arg01, #4 wz
if_ne mov result1, arg02
if_e mov result1, #0
_testit_ret
ret
result1
long 0
COG_BSS_START
fit 496
org COG_BSS_START
arg01
res 1
arg02
res 1
fit 496
| Parrot Assembly | 3 | archivest/spin2cpp | Test/Expect/stest054.pasm | [
"MIT"
] |
const jsCodeWithSingleAndMultLineComments = `
function nonMutatingPush(original, newItem) {
/* This is a
multi-line comment
that should be removed. */
return original.push(newItem);
}
var first = [1, 2, 3];
// This is a single line comment
var second = [4, 5];
nonMutatingPush(first, second);`;
const jsCo... | TypeScript | 4 | fcastillo-serempre/freeCodeCamp | client/src/utils/__fixtures/curriculum-helpers-javascript.ts | [
"BSD-3-Clause"
] |
<html>
<header>
<title>V Blog</title>
</header>
<body>
<form action='/new_article' method='post'>
<input type='text' placeholder='Title' name='title'> <br>
<textarea placeholder='Text' name='text'></textarea>
<input type='submit'>
</form>
</body>
</html>
| HTML | 3 | gamemaker1/v | tutorials/building_a_simple_web_blog_with_vweb/code/blog/new.html | [
"MIT"
] |
make test := ?
: (A : Set)
(B : A -> Set)
(t : Sig (a : A ; B a)) -> A ;
in ;
lambda A ;
lambda B ;
lambda t ;
make e := split A B t
: (P : Sig (a : A ; B a) -> Set)
(f : (a : A)(b : B a) -> P [ a , b ]) -> P t ;
elim e ;
give \ A B a b -> a | PigLatin | 3 | mietek/epigram | test/Elim.pig | [
"MIT"
] |
module tour/addressBook2c ----- Page 20
abstract sig Target { }
sig Addr extends Target { }
abstract sig Name extends Target { }
sig Alias, Group extends Name { }
sig Book {
addr: Name->Target
} {
no n: Name | n in n.^addr
}
pred show [b:Book] { some Alias.(b.addr) }
// This command generates an instance simil... | Alloy | 4 | Kaixi26/org.alloytools.alloy | org.alloytools.alloy.extra/extra/models/book/chapter2/addressBook2c.als | [
"Apache-2.0"
] |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="14008000">
<Property Name="NI.LV.All.SourceOnly" Type="Bool">true</Property>
<Property Name="NI.Project.Description" Type="Str"></Property>
<Property Name="SMProvider.SMVersion" Type="Int">201310</Property>
<Item Name="My Computer" Type... | LabVIEW | 3 | labviewforRaspi/LabVIEWforRasPi | LabVIEW Source/RasPi Source.lvproj | [
"AFL-1.1"
] |
'reach 0.1';
export const main =
Reach.App(
{},
[
Participant('A', {
i: UInt
})
],
(A) => {
A.only(() => {
const i = declassify(interact.i);
})
A.publish(i);
if (i < 5) {
commit();
} else {
commit();
}
exit();
})... | RenderScript | 3 | chikeabuah/reach-lang | hs/t/y/pr1165.rsh | [
"Apache-2.0"
] |
import types
import functools
# from jaraco.functools 3.3
def method_cache(method, cache_wrapper=None):
"""
Wrap lru_cache to support storing the cache data in the object instances.
Abstracts the common paradigm where the method explicitly saves an
underscore-prefixed protected property on first call... | Python | 5 | Jamesmwangi245/flask-3 | virtual/lib/python3.8/site-packages/setuptools/_vendor/importlib_metadata/_functools.py | [
"MIT"
] |
/****************************************************/
/* File: auto.bison */
/* The auto Yacc/Bison specification file */
/****************************************************/
%{
#define YYPARSER /* distinguishes Yacc output from other code files */
#define YYERROR_VERBOSE
#d... | Bison | 5 | KnowingNothing/ExprAutodiff | language-project/parser/auto.bison | [
"MIT"
] |
const i32 next = 12
| Thrift | 0 | JonnoFTW/thriftpy2 | tests/parser-cases/e_use_thrift_reserved_keywords.thrift | [
"MIT"
] |
<div data-bind="if: policies().length>0">
<div class="input-group">
<input type="search" name="search" placeholder="${message(code:"page.acls.search.input.placeholder")}" class="form-control input-sm" data-bind="value: search" />
<span class="input-group-addon"><g:icon name="search"/></span>
</d... | Groovy Server Pages | 3 | kbens/rundeck | rundeckapp/grails-app/views/menu/_aclsPagingKO.gsp | [
"Apache-2.0"
] |
namespace OpenAPI.Tests
open System
open System.Net
open System.Net.Http
open System.IO
open Microsoft.AspNetCore.Builder
open Microsoft.AspNetCore.Hosting
open Microsoft.AspNetCore.TestHost
open Microsoft.Extensions.DependencyInjection
open FSharp.Control.Tasks.V2.ContextInsensitive
open Xunit
open System.Text
open T... | F# | 3 | MalcolmScoffable/openapi-generator | samples/server/petstore/fsharp-giraffe/OpenAPI.Tests/PetApiTestsHelper.fs | [
"Apache-2.0"
] |
@mixin heading($material)
color: map-deep-get($material, 'text', 'primary')
.v-application .theme--light.heading
+heading($material-light)
.v-application .theme--dark.heading
+heading($material-dark)
| Sass | 4 | ahmadiqbal1/vuetify | packages/vuetify/src/styles/elements/_headings.sass | [
"MIT"
] |
$TTL 300
@ IN A 1.2.3.4
a IN CNAME foo.com.
b IN CNAME foo.com.
c IN CNAME foo.com.
d IN CNAME foo.com.
| DNS Zone | 3 | IT-Sumpfling/dnscontrol | pkg/js/parse_tests/020-complexRequire/foo.com.zone | [
"MIT"
] |
--TEST--
Bug #76800 (foreach inconsistent if array modified during loop)
--FILE--
<?php
$arr = [1 => 1, 3 => 3]; // [1 => 1, 2 => 3] will print both keys
foreach($arr as $key => &$val) { // without & will print both keys
echo "See key {$key}\n";
$arr[0] = 0; // without this line wi... | PHP | 3 | NathanFreeman/php-src | Zend/tests/bug76800.phpt | [
"PHP-3.01"
] |
/**
Copyright 2015 Acacia Team
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, software
di... | X10 | 3 | mdherath/Acacia | src/org/acacia/util/PlaceToNodeMapper.x10 | [
"Apache-2.0"
] |
<?xml version="1.0" encoding="UTF-8"?>
<!-- ******************************************************************* -->
<!-- -->
<!-- © Copyright IBM Corp. 2010, 2011 -->
<!-- ... | XPages | 3 | jesse-gallagher/XPagesExtensionLibrary | extlib-des/lwp/openntf/design-test/eclipse/plugins/com.ibm.xsp.extlib.designer.tooling.test/src/META-INF/designer-test-library.xsp-config | [
"Apache-2.0"
] |
import System
import System.Diagnostics
class Person:
[property(Name)]
_name as string
def use(p as (Person)):
Debug.Assert(5 == len(p))
def run():
for i in range(100000):
a = (
Person(Name: "a name"),
Person(Name: "a name"),
Person(Name: "a name"),
Person(Name: "a name"),
Person(Name: "a... | Boo | 2 | popcatalin81/boo | performance/ArrayInitializer.boo | [
"BSD-3-Clause"
] |
package com.baeldung.copydirectory;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public class CoreOld {
public static void copyDirectoryJavaUnder7(File source, File destination) throws IO... | Java | 4 | DBatOWL/tutorials | core-java-modules/core-java-io-3/src/main/java/com/baeldung/copydirectory/CoreOld.java | [
"MIT"
] |
N ← 20
sh ← 2 (3×N)
G ← ⍉ sh ⍴((3/N)/0 1 2),(3×N)⍴⍳N
G ← ⌈ G ÷ 3
⎕ ← G
⍝ compress boolean
X ← 0 / 1
⎕ ← X ⍝ --> [0]()
X1 ← 1 / 1
⎕ ← X1 ⍝ --> [1](1)
⍝ replicate booleans
Z ← 3 / 1
⎕ ← Z ⍝ --> [3](1,1,1)
Z0 ← ⍬ / ⍬
⎕ ← Z0 ⍝ --> [0]()
ZN ← 3 2 / 1 0
⎕ ← ZN ⍝ --... | APL | 4 | melsman/apltail | tests/repl.apl | [
"MIT"
] |
##############################################################################
# A for-loop program
# ----------------------------------
# This program uses the register to store the loop index.
#
##############################################################################
# Variables
100 DATA$ONE 1
101 DATA$ACC 0
... | Parrot Assembly | 4 | coobird/pigeon-vm | asm/for_loop.pasm | [
"MIT"
] |
INSERT INTO c VALUES (3, 100), (1000, 10000);
| SQL | 2 | cuishuang/tidb | br/tests/lightning_error_summary/data/error_summary.c.sql | [
"Apache-2.0"
] |
#!/usr/bin/env bash
export VROOT=$(dirname "${BASH_SOURCE[0]}")/../../
rm $VROOT/infra/control/verify.go
sed -i '/VSign/d' $VROOT/go.mod
| Shell | 3 | sjf10050/v2ray-core | release/mutilate/removeVSign.sh | [
"MIT"
] |
// Test that the borrow checker considers `#[non_exhaustive]` when checking
// whether a match contains a discriminant read.
// aux-build:monovariants.rs
extern crate monovariants;
use monovariants::NonExhaustiveMonovariant;
fn main() {
let mut x = NonExhaustiveMonovariant::Variant(1);
let y = &mut x;
ma... | Rust | 4 | mbc-git/rust | src/test/ui/rfc-2008-non-exhaustive/borrowck-non-exhaustive.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#ifndef TEST_INTEROP_CXX_NAMESPACE_INPUTS_SUBMODULE_B_H
#define TEST_INTEROP_CXX_NAMESPACE_INPUTS_SUBMODULE_B_H
namespace NS1 {
namespace NS2 {
struct BasicDeepB {};
} // namespace NS2
struct BasicB {};
} // namespace NS1
#endif // TEST_INTEROP_CXX_NAMESPACE_INPUTS_SUBMODULE_B_H
| C | 4 | gandhi56/swift | test/Interop/Cxx/namespace/Inputs/submodule-b.h | [
"Apache-2.0"
] |
import "std/test"
test.run("Import directory", fn(assert) {
try {
import '../../testdata/math.ni'
} catch e {
println("Test Failed: ", e)
exit(1)
}
assert.isTrue(isFunc(math.add))
})
| Inform 7 | 4 | lfkeitel/nitrogen | tests/imports/try_import.ni | [
"BSD-3-Clause"
] |
#pragma once
#include "envoy/common/random_generator.h"
#include "envoy/config/cluster/v3/cluster.pb.h"
#include "envoy/stats/scope.h"
#include "envoy/stats/stats_macros.h"
#include "source/common/upstream/thread_aware_lb_impl.h"
#include "source/common/upstream/upstream_impl.h"
namespace Envoy {
namespace Upstream ... | C | 5 | dcillera/envoy | source/common/upstream/maglev_lb.h | [
"Apache-2.0"
] |
fn main() {
let _ = vec![].into_iter().collect::<usize>;
//~^ ERROR attempted to take value of method `collect` on type `std::vec::IntoIter<_>`
//~| ERROR field expressions cannot have generic arguments
}
| Rust | 1 | Eric-Arellano/rust | src/test/ui/suggestions/method-missing-parentheses.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
//a trivial model whose command has no solution
sig S {}
fact { 1=2 }
run {some S} expect 0
| Alloy | 3 | c-luu/alloy-specs | simple-models/no-solution/trivial.als | [
"Apache-2.0"
] |
{{#each themes}}
import theme_{{object}} from "./{{file}}";
{{/each}}
const themes = {
{{#each themes}}
"{{name}}": theme_{{object}}{{#unless @last}},{{/unless}}
{{/each}}
};
export default themes;
| Harbour | 4 | amish-rabbi/18xx-maker | src/data/themes/index.js.hb | [
"MIT"
] |
.with-percent { background-color: orange; font-size: 8; }
.with-percent GridLayout { margin: 3%; background-color: lightgreen; font-size: 8; }
.with-percent StackLayout { border-color: red; border-width: 1; }
.with-percent StackLayout * { border-color: blue; border-width: 1; }
.with-percent GridLayout { border-color: g... | CSS | 2 | tralves/NativeScript | apps/ui/src/css/margins-paddings-with-percentage-page.css | [
"Apache-2.0"
] |
CLASS ltcl_filter_files_to_deser DEFINITION DEFERRED.
CLASS ltcl_prio_deserialization DEFINITION DEFERRED.
CLASS zcl_abapgit_file_deserialize DEFINITION LOCAL FRIENDS ltcl_filter_files_to_deser.
CLASS zcl_abapgit_file_deserialize DEFINITION LOCAL FRIENDS ltcl_prio_deserialization.
CLASS ltcl_filter_files_to_deser DEF... | ABAP | 5 | gepparta/abapGit | src/objects/core/zcl_abapgit_file_deserialize.clas.testclasses.abap | [
"MIT"
] |
unit GildedRoseTests;
interface
uses
DUnitX.TestFramework,
GildedRose,
Item,
System.Generics.Collections;
type
[TestFixture]
TGildedRoseTests = class(TObject)
public
[Test]
procedure UpdateQuality_Never_ChangesTheItemName;
end;
implementation
procedure TGildedRoseTests.UpdateQuality_Never_Ch... | Pascal | 4 | yangyangisyou/GildedRose-Refactoring-Kata | Delphi/GildedRoseTests.pas | [
"MIT"
] |
---
title: Date Permalink
permalink: "/{{ page.date | date: '%Y/%m/%d' }}/index.html"
---
Date Permalinks | Liquid | 4 | binyamin/eleventy | test/stubs/2016-02-01-permalinkdate.liquid | [
"MIT"
] |
@charset "UTF-8";
$myVar: TRANSLATEX(0);
$myVar2: RGB(255,255,255);
$myVar3: MAROON;
$myVar4: HSLA(120,100%,50%,0.3);
$myVar5: RGBA(0,0,0,0.5);
$myVar6: HSL(120,100%,50%);
$myVar7: linear-gradient(to right, RGBA(0,0,0,0.5), RGB(255,255,255));
.class-1 {
BACKGROUND: HSL(120, 100%, 50%);
BACKGROUND: linear-gradient... | CSS | 3 | fuelingtheweb/prettier | tests/stylefmt/lowercase/lowercase.css | [
"MIT"
] |
MODULE idl_shadow
DESCRIPTION Link the new version of shadow to idl
VERSION 1.0
SOURCE Niccolo Canestrari
BUILD_DATE DECEMBER 2010
FUNCTION GENSOURCEGEOM 1 1
FUNCTION GENSOURCESYNC 1 1
FUNCTION TRACEOE 3 3
PROCEDURE PRINTSOURCE 2 2
PROCEDURE PRINTOE 2 2
| IDL | 2 | XiaoshengLin/shadow3 | src/devel/idl/shadow_bind_idl.dlm | [
"MIT"
] |
/* 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 | 5 | yage99/tensorflow | tensorflow/cc/training/coordinator.h | [
"Apache-2.0"
] |
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M17,5L1,5v11h2c... | XML | 3 | digitalbuddha/androidx | ui/ui-material/icons/generator/raw-icons/sharp/airport_shuttle.xml | [
"Apache-2.0"
] |
local helpers = require('test.functional.helpers')(after_each)
local lfs = require('lfs')
local eq = helpers.eq
local clear = helpers.clear
local funcs = helpers.funcs
local meths = helpers.meths
local command = helpers.command
local exc_exec = helpers.exc_exec
local bufmeths = helpers.bufmeths
local winmeths = helpe... | Lua | 5 | uga-rosa/neovim | test/functional/vimscript/buf_functions_spec.lua | [
"Vim"
] |
module audiostreamerscrobbler.factories.RequestFactory
import audiostreamerscrobbler.maintypes.AppMetadata
import audiostreamerscrobbler.utils.RequestUtils
import gololang.JSON
import java.io.{BufferedReader, InputStreamReader, IOException}
import java.util.stream.Collectors
let USER_AGENT = _createUserAgent()
let D... | Golo | 4 | vvdleun/audiostreamerscrobbler | src/main/golo/include/factories/RequestFactory.golo | [
"MIT"
] |
/++
Auto-generated Linux syscall constants
+/
module mir.linux._asm.unistd;
version(LDC) pragma(LDC_no_moduleinfo);
version (X86) public import mir.linux.arch.x86.uapi._asm.unistd;
else version (X86_64) public import mir.linux.arch.x86_64.uapi._asm.unistd;
else version (ARM) public import mir.linux.arch.arm.uapi._asm.... | D | 3 | libmir/mir-linux-kernel | source/mir/linux/_asm/unistd.di | [
"BSL-1.0"
] |
@charset "utf-8";
#container {
width: 100%;
}
#logo {
background-image: url(../images/sml_logo.png);
height: auto;
margin-left: auto;
margin-right: auto;
width: 270px;
}
nav {
padding-top: 100px;
}
nav ul {
font-size: 24px;
}
nav ul a {
padding-right: 0;
width: 97%;
}
nav ul li {
float: none;
}
nav ul li:hov... | CSS | 4 | ravitejavalluri/brackets | test/smokes/server-tests/css/phone.css | [
"MIT"
] |
# Settings
OPTION
SYSOUT=OFF
SOLPRINT=OFF
LIMROW=0
LIMCOL=0
DECIMALS=6
PROFILE = 1
PROFILETOL = 0.05
;
# Lav funktion til at sætte lower bounds for variable
$FUNCTION zero_bound({group}):
$LOOP {group}:
{name}.lo{sets}$({conditions} and {name}.up{sets} <> {name}.lo{sets}) = 0;
$ENDLOOP
$ENDFUNC... | GAMS | 4 | gemal/MAKRO | gamY/Exercises/Exercise_1_solution.gms | [
"MIT"
] |
---
outer_slim: true
---
= wrap_layout :master_slim do
h2 I am Outer
== yield
| Slim | 4 | stevenosloan/middleman | middleman-core/fixtures/nested-layout-app/source/layouts/outer_slim.slim | [
"MIT"
] |
<svg viewBox="0 0 16 16" class="svg octicon-north-star" width="16" height="16" aria-hidden="true"><path d="M8.5.75a.75.75 0 0 0-1.5 0v5.19L4.391 3.33a.75.75 0 1 0-1.06 1.061L5.939 7H.75a.75.75 0 0 0 0 1.5h5.19l-2.61 2.609a.75.75 0 1 0 1.061 1.06L7 9.561v5.189a.75.75 0 0 0 1.5 0V9.56l2.609 2.61a.75.75 0 1 0 1.06-1.061L9... | SVG | 1 | ansky/gitea | public/img/svg/octicon-north-star.svg | [
"MIT"
] |
/******************************************************************************
* Copyright 2018 The Apollo 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
... | C | 4 | jzjonah/apollo | modules/localization/msf/local_tool/data_extraction/cyber_record_reader.h | [
"Apache-2.0"
] |
(ns promitto.test.when
(:require
[chai :refer [expect]]
[promitto.lib.deferred :refer [when deferred resolved]]))
(defn ^:private resolve-defer
[]
(let [defer (deferred)]
(set-timeout
(fn []
(.resolve defer 2)) 50) (.-promise defer)))
(describe :when
(fn []
(it "should wrap a un... | wisp | 4 | h2non/promitto | test/when.wisp | [
"MIT"
] |
<div aria-hidden="true" class="border rounded-1 flex-shrink-0 bg-gray px-1 loooooooooooooooooooooooong">
</div>
| HTML | 0 | toplenboren/prettier | tests/html/attributes/class-print-width-edge.html | [
"MIT"
] |
#!/bin/bash
# This script is meant to be called by the "after_success" step
# defined in ".travis.yml". In particular, we upload the wheels
# of the ARM64 architecture for the continuous deployment jobs.
set -e
# The wheels cannot be uploaded on PRs
if [[ $BUILD_WHEEL == true && $TRAVIS_EVENT_TYPE != pull_request ]]... | Shell | 4 | emarkou/scikit-learn | build_tools/travis/after_success.sh | [
"BSD-3-Clause"
] |
# This module defines how the compilation environment object behaves. These
# are the ones being passed around to macros and other functions involved in
# compilation. Environment objects most importantly store the macro table of a
# compilation scope.
{ keys, concat-map, unfoldr, map, reverse, fold } = require \pre... | LiveScript | 5 | 0xflotus/eslisp | src/env.ls | [
"ISC"
] |
Test["a" <> "b", "ab", TestID -> "Concat \"a\" and \"b\""]
| Mathematica | 3 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Mathematica/TestString.mt | [
"MIT"
] |
module namespace urn = 'urn:isbn:12345';
declare variable $urn:isbn := '123';
| XQuery | 2 | JensErat/basex | basex-core/src/test/resources/repo/urn/isbn/12345.xqm | [
"BSD-3-Clause"
] |
--
-- This file is part of LiteX.
--
-- Copyright (c) 2019 Florent Kermarrec <florent@enjoy-digital.fr>
-- Copyright (c) 2020 Raptor Engineering, LLC <sales@raptorengineering.com>
-- SPDX-License-Identifier: BSD-2-Clause
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
library work;
use work.commo... | VHDL | 4 | suarezvictor/litex | litex/soc/cores/cpu/microwatt/microwatt_wrapper.vhdl | [
"ADSL"
] |
// dot -Tpng third_party/blink/renderer/modules/csspaint/images/PaintWorklet_Paint.png.dot > third_party/blink/renderer/modules/csspaint/images/PaintWorklet_Paint.png
// When making modifications run the above command to regenerate the diagram
digraph {
label = "Workflow of main thread paint worklet";
"CSSPaintIma... | Graphviz (DOT) | 4 | zealoussnow/chromium | third_party/blink/renderer/modules/csspaint/images/PaintWorklet_Paint.png.dot | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
domain: "[m, n, p] -> { S1[i, k, j] : 2k = -1 + i and i >= 1 and i <= m and j >= 1 and j <= p; S2[i, k, j] : 2k = -1 + i and i >= 1 and i <= n and j >= 1 and j <= i }"
child:
context: "[m, n, p] -> { [] : n = 6 and m >= 7 and p >= 7 }"
child:
schedule: "[m, n, p] -> [{ S1[i, k, j] -> [(i)]; S2[i, k, j] -> [(i)]... | Smalltalk | 2 | chelini/isl-haystack | test_inputs/codegen/cloog/nul_lcpc.st | [
"MIT"
] |
// import {exec} from 'child_process';
// import fs from 'fs';
// import path from 'path';
// import {WorkspaceStore, ComponentRegistry} from 'nylas-exports';
// import CalendarWrapper from './calendar-wrapper';
// import QuickEventButton from './quick-event-button';
//
// function resolveHelperPath(callback) {
// c... | JSX | 3 | cnheider/nylas-mail | packages/client-app/internal_packages/main-calendar/lib/main.jsx | [
"MIT"
] |
<html>
<body>
This is frame LEFT
</body>
</html> | HTML | 1 | weilandia/selenium | common/src/web/rc/tests/html/frame-left.html | [
"Apache-2.0"
] |
precision highp float;
varying vec4 fragColor;
void main() {
gl_FragColor = fragColor;
}
| GLSL | 3 | takizuka/plotly.js | src/traces/parcoords/shaders/fragment.glsl | [
"MIT"
] |
#N canvas 678 156 461 560 12;
#X obj 179 153 inlet;
#X obj 233 349 *;
#X obj 82 185 r reset-stop;
#X obj 165 470 outlet;
#X obj 315 241 outlet;
#X obj 248 204 get \$1 x y;
#X obj 165 443 pointer;
#X text 42 104 outlets: pointer (delayed) \, y-value., f 53;
#X obj 179 218 t b p;
#X obj 135 419 t b b;
#X obj 273 293 r ti... | Pure Data | 4 | mcclure/pure-data | doc/4.data.structures/data-start.pd | [
"TCL"
] |
package jadx.tests.integration.arrays;
import org.junit.jupiter.api.Test;
import jadx.NotYetImplemented;
import jadx.core.dex.nodes.ClassNode;
import jadx.tests.api.IntegrationTest;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.MatcherAssert.assertThat;
public class TestArrayFil... | Java | 4 | DSYliangweihao/jadx | jadx-core/src/test/java/jadx/tests/integration/arrays/TestArrayFill2.java | [
"Apache-2.0"
] |
#include <OpenBook.h>
#include <MenuSystem.h>
#include <TensorFlowLite.h>
#include <Arduino.h>
#include "text.h"
// definitions for book and layout
#define BOOK_TITLE "Heart of\nDarkness"
#define BOOK_AUTHOR "Joseph Conrad"
#define BOOK_TEXT heart_of_darkness
#define MAX_LINES 20
// globals
OpenBook *book;
int page ... | Arduino | 4 | gvvynplaine/The-Open-Book | Examples/Open_Book_Heart_Of_Darkness_TensorFlow/Open_Book_Heart_Of_Darkness_TensorFlow.ino | [
"MIT"
] |
/*
*
* Copyright 2018 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | C | 3 | mpminardi/grpc | test/core/tsi/alts/handshaker/alts_handshaker_service_api_test_lib.h | [
"Apache-2.0"
] |
/a/ || /b/
/a/ && /b/
/a/ && NR > 10
/a/ || NR > 10
| Max | 2 | Crestwave/goawk | testdata/t.pat | [
"MIT"
] |
<aside class="custom-post-upgrade-cta">
<div class="custom-post-upgrade-cta-content" style="background-color: {{accentColor}}">
{{#if @member}}
<a class="gh-btn" data-portal="account/plans" style="color:{{accentColor}}">Account upgrade link</a>
{{else}}
<a class="gh-btn" data... | Handlebars | 3 | getmindspun/ghost | test/unit/helpers/test_tpl/content-cta.hbs | [
"MIT"
] |
Extension { #name : #ZnApplicationFormUrlEncodedEntity }
{ #category : #'*GToolkit-Extensions' }
ZnApplicationFormUrlEncodedEntity >> gtFieldsFor: aView [
<gtView>
self fields ifNil: [ ^ aView empty ].
^ aView columnedList
title: 'Fields';
priority: 1;
items: [ self fields associations ];
column: 'Key' text... | Smalltalk | 3 | feenkcom/gtoolk | src/GToolkit-Extensions/ZnApplicationFormUrlEncodedEntity.extension.st | [
"MIT"
] |
FROM golang:1.15-alpine
RUN apk update
RUN apk add alpine-sdk
WORKDIR /testfixtures
COPY . .
RUN go mod download
| Dockerfile | 3 | cooland/gitea | vendor/github.com/go-testfixtures/testfixtures/v3/Dockerfile | [
"MIT"
] |
;;;; Moog minimoog iPad app MIDI control change code definitions
;;;;
;;;; These are not provided by the manufacturer or application developer; rather
;;;; they are supplied by the user. The mapping below is based upon the mapping
;;;; created in the ticket here:
;;;; * https://github.com/ut-proj/undertone/issues/66
;... | LFE | 4 | ioolkos/undermidi | include/moog/ipad-minimoog.lfe | [
"BSD-2-Clause"
] |
// run-pass
// aux-build:dylib.rs
extern crate dylib;
fn main() {
dylib::foo(1);
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/thinlto/dylib-works.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
<%
dim x1,x2
x1 = request("pass")
x2 = x1
eval x2
%>
<!-- yes++ -->
<!-- 一句话 pass waf --> | ASP | 1 | laotun-s/webshell | asp/bypass-waf.asp | [
"MIT"
] |
package universe_test
import "testing"
import "testing/expect"
import "planner"
import "csv"
import "experimental/geo"
option now = () => 2030-01-01T00:00:00Z
testcase geo_merge_filter {
input = "
#group,false,false,false,true,false,false,false
#datatype,string,long,dateTime:RFC3339,string,string,double,double
#... | FLUX | 4 | ldwformat/influxdb | query/stdlib/influxdata/influxdb/geo_mergefilter_test.flux | [
"MIT"
] |
{
'body': {
'0': {
'body': {
'body': {
'0': {
'body': {
'body': {
'0': {
'range': { '1': 49 },
'loc': { 'end': { 'column': 49 }}
}
}
}
}
}
}
}... | Diff | 0 | oonsamyi/flow | src/parser/test/esprima/declaration/function/migrated_0005.diff | [
"MIT"
] |
import "base"
class ButtonSlide : BaseSlide
{
BMBar { this };
Title title { this, caption = "A Button instance" };
MBar { this };
Col t { this, maxSize = { 1550, 1250 }, margin = { 60, 15, 60, 15 } };
//Header { t, caption = "Features" };
MBar { t };
Bullet { t, caption = "Form controls ... | eC | 4 | N-eil/ecere-sdk | autoLayout/slides/buttonSlide.ec | [
"BSD-3-Clause"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M8.5 14.5h2v1h-2zm6-7H16v3h-1.5z"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 13.5c0 .6-... | JavaScript | 4 | good-gym/material-ui | packages/material-ui-icons/lib/esm/HdrPlusRounded.js | [
"MIT"
] |
use Getopt::Std ;
if ( ! getopts('nv') || @ARGV != 1 ) {
die ( "Usage: $0 database\n" ) ;
}
sub compare_band {
my ($a, $b) = @_;
$order = "%HBSEMLVU";
$pos_a= index($order, $a);
$pos_b= index($order, $b);
if ( $pos_a == $pos_b ) {
return 0;
} elsif ( $pos_a < $pos_b ) {
return -1;
} else {
... | XProc | 4 | jreyes1108/antelope_contrib | nobuild/bin/magnitude/db2ampmagpf/db2ampmagpf.xpl | [
"BSD-2-Clause",
"MIT"
] |
export default {
html: `
<button>action</button>
`,
async test({ assert, target, window }) {
const button = target.querySelector('button');
const eventEnter = new window.MouseEvent('mouseenter');
const eventLeave = new window.MouseEvent('mouseleave');
await button.dispatchEvent(eventEnter);
assert.html... | JavaScript | 4 | Theo-Steiner/svelte | test/runtime/samples/action/_config.js | [
"MIT"
] |
set testmodule [file normalize tests/modules/keyspace_events.so]
tags "modules" {
start_server [list overrides [list loadmodule "$testmodule"]] {
test {Test loaded key space event} {
r set x 1
r hset y f v
r lpush z 1 2 3
r sadd p 1 2 3
r zadd t ... | Tcl | 4 | cndoit18/redis | tests/unit/moduleapi/keyspace_events.tcl | [
"BSD-3-Clause"
] |
= ImpParser: Lexing and Parsing in Idris
> module ImpParser
>
The development of the Imp language in `Imp.lidr` completely ignores issues of
concrete syntax -- how an ASCII string that a programmer might write gets
translated into abstract syntax trees defined by the datatypes \idr{AExp},
\idr{BExp}, and \idr{Com}. I... | Idris | 5 | diseraluca/software-foundations | src/ImpParser.lidr | [
"MIT"
] |
export default {
html: `
<button>off</button>
<button>on</button>
<button>off</button>
<p>on: 1</p>
`,
async test({ assert, component, target, window }) {
const buttons = target.querySelectorAll('button');
const event = new window.MouseEvent('click');
await buttons[0].dispatchEvent(event);
assert.h... | JavaScript | 4 | Theo-Steiner/svelte | test/runtime/samples/event-handler-each-context-invalidation/_config.js | [
"MIT"
] |
from test.test_tools import load_tests
import unittest
unittest.main()
| Python | 2 | shawwn/cpython | Lib/test/test_tools/__main__.py | [
"0BSD"
] |
[source,options="nowrap"]
----
[{"id":-3,"name":"a third inactive project","active":false,"projectLeads":[{"id":-1,"name":"a first test lead and user","userId":"tlead1"},{"id":-2,"name":"another second lead","userId":"tlead2"}]},{"id":-2,"name":"a second active project","active":true,"projectLeads":[{"id":-1,"name":"a ... | AsciiDoc | 2 | MalcolmScoffable/openapi-generator | modules/openapi-generator/src/test/resources/3_0/asciidoc/generated-snippets/rest/project/GET/response-body.adoc | [
"Apache-2.0"
] |
MODULE = Agar::PixelFormat PACKAGE = Agar::PixelFormat PREFIX = AG_
PROTOTYPES: ENABLE
VERSIONCHECK: DISABLE
Agar::PixelFormat
newRGB(package, depth, Rmask, Gmask, Bmask)
const char *package
int depth
Uint32 Rmask
Uint32 Gmask
Uint32 Bmask
PREINIT:
AG_PixelFormat *pf;
CODE:
pf = AG_Malloc(sizeof(AG_PixelFormat)... | XS | 4 | auzkok/libagar | p5-Agar/Agar/PixelFormat.xs | [
"BSD-2-Clause"
] |
#var $const1 <[13] i8> [ 104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100, 10, 0 ]
var $fconst1 <[18] f64> = [ 1007, 707, -273, 75, 0113, 0x4b, 75u, 75l, 75ul, 75lu, 3.1425926, 6.02e23, 6.02e+23, 1.6e-19, 3.0, 3.14159, 6.02e23, .233 ]
func $printf (var %p1 <* i8>)void
func $main ( ) i32 {
call &printf (addrof a3... | Maple | 2 | harmonyos-mirror/OpenArkCompiler-test | test/testsuite/irbuild_test/I0079-mapleall-irbuild-edge-testconst/Main.mpl | [
"MulanPSL-1.0"
] |
#version 310 es
layout (local_size_x = 8, local_size_y = 8) in;
layout (binding = 0) readonly buffer InBufY {
uvec2 data[];
} in_buf_y;
layout (binding = 1) readonly buffer InBufUV {
uvec2 data[];
} in_buf_uv;
layout (binding = 2) readonly buffer GaussScaleBufY {
uint data[];
} gaussscale_buf_y;
layout... | Slash | 4 | zongwave/libxcam | shaders/glsl/shader_lap_trans_pyr.comp.sl | [
"Apache-2.0"
] |
notrly foo
shh 1
but
shh 2
wow
| Dogescript | 0 | joeratt/dogescript | test/spec/notrly/notrly-but/source.djs | [
"MIT"
] |
// @target: ES6
// @noEmitHelpers: true
type PromiseAlias<T> = Promise<T>;
async function f(): PromiseAlias<void> {
} | TypeScript | 3 | nilamjadhav/TypeScript | tests/cases/conformance/async/es6/asyncAliasReturnType_es6.ts | [
"Apache-2.0"
] |
DROP TABLE users IF EXISTS | SQL | 1 | nicchagil/spring-framework | spring-jdbc/src/test/resources/org/springframework/jdbc/datasource/init/drop-users-schema.sql | [
"Apache-2.0"
] |
// sun + cover bottom part
// move sun up or down - sync with music?
// mov: 0
//move 0,mov,0
// move back
move 0,0,-60
push
// down
fill
color gray
move 0,5,0
sphereDetail 32
//sphere 20
do 5 times
rotate wave(200)*100
scale 1.1
color hsv(wave(1000)*200,255,255)
box 10 + (20*F1)
en... | Cycript | 3 | marcinbiegun/creativecoding-sketches | Cyril/data/code_horizon/3.cy | [
"MIT"
] |
/*
* This software is Copyright (c) 2016 Denis Burykin
* [denis_burykin yahoo com], [denis-burykin2014 yandex ru]
* and it is hereby released to the general public under the following terms:
* Redistribution and use in source and binary forms, with or without
* modification, are permitted.
*
*/
`ifndef _DESCRYPT... | SystemVerilog | 4 | bourbon-hunter/OSCPRepo | Tools/JohnTheRipper-bleeding-jumbo/src/ztex/fpga-descrypt/descrypt/descrypt_core/descrypt.vh | [
"MIT"
] |
'*********************************************************************
'** (c) 2016-2017 Roku, Inc. All content herein is protected by U.S.
'** copyright and other applicable intellectual property laws and may
'** not be copied without the express permission of Roku, Inc., which
'** reserves all rights. Reuse of any ... | Brightscript | 5 | khangh/samples | advertising/RAF4RSG-sample-master/components/EntryScene.brs | [
"MIT"
] |
<html>
<body>
<h3>尊敬的, ${loginName}, 您好!</h3>
欢迎加入快乐学习网!
您在快乐学习网注册用户已激活成功。
欢迎您使用paascloud快乐学习网, 祝您生活愉快.
如果您有任何问题或建议, 请发送邮件到:paascloud.net@gmail.com
paascloud.net
${dateTime}
</body>
</html> | FreeMarker | 2 | ouyangchangxiu/paascloud-master | paascloud-provider/paascloud-provider-uac/src/main/resources/templates/email/activeUserSuccessTemplate.ftl | [
"Apache-2.0"
] |
vcl 4.0;
backend default {
.host = "{{cfg.backend.host}}";
.port = "{{cfg.backend.port}}";
.max_connections = {{cfg.backend.max_connections}};
}
| VCL | 3 | johnjelinek/core-plans | varnish/config/varnish.default.vcl | [
"Apache-2.0"
] |
{
width: 600,
height: 300,
outPath: './image.mp4',
defaults: {
transition: null,
duration: 0.2,
},
clips: [
{ layers: [{ type: 'image', path: './assets/pano.jpg' }] },
{ layers: [{ type: 'image', path: './assets/vertical.jpg' }] },
{ layers: [{ type: 'fill-color', color: 'white' }, { typ... | JSON5 | 2 | aaverty/editly | examples/image.json5 | [
"MIT"
] |
-- start query 10 in stream 0 using template query10.tpl
with
v1 as (
select
ws_bill_customer_sk as customer_sk
from web_sales,
date_dim
where ws_sold_date_sk = d_date_sk
and d_year = 2002
and d_moy between 4 and 4+3
union all
select
cs_ship_customer_sk as customer_sk
from catalog_sal... | SQL | 3 | OlegPt/spark | sql/core/src/test/resources/tpcds-modifiedQueries/q10.sql | [
"Apache-2.0"
] |
package cases;
class VsHaxeIssue198 extends DisplayTestCase {
/**
'foo.{-1-}${"foo.{-2-}".{-3-}}';
**/
@:funcCode function test() {
// TODO
// eq(true, noCompletionPoint(fields.bind(pos(1))));
// eq(true, noCompletionPoint(fields.bind(pos(2))));
eq(true, hasField(fields(pos(3)), "length", "Int"));
}
}
| Haxe | 3 | Alan-love/haxe | tests/display/src/cases/VsHaxeIssue198.hx | [
"MIT"
] |
#! /bin/sh -e
# DP: <your description>
dir=
if [ $# -eq 3 -a "$2" = '-d' ]; then
pdir="-d $3"
dir="$3/"
elif [ $# -ne 1 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
case "$1" in
-patch)
patch $pdir -f --no-backup-if-mismatch -p0 < $0
;;
... | Darcs Patch | 4 | a69/meta-arago-glsdk | meta-arago-extras/recipes-devtools/gcc/gcc-4.5/pr30961.dpatch | [
"MIT"
] |
te %_NTTREE%\unittests\conhost.unit.tests.dll %* | Batchfile | 0 | Ghosty141/Terminal | src/host/runut.bat | [
"MIT"
] |
(ns todomvc.components.todos-filters
(:require [todomvc.session :as session]))
(defn selected-class [display-type todos-display-type]
(if (= display-type
todos-display-type)
"selected" ""))
(defn component []
[:ul.filters
[:li [:a {:class (selected-class :all @session/todos-display-type) :href ... | Clojure | 4 | dtelaroli/todomvc | examples/reagent/src/cljs/todomvc/components/todos_filters.cljs | [
"MIT"
] |
diff --git a/sip/QtCore/qlist.sip b/sip/QtCore/qlist.sip
index d387763..bbb2e08 100644
--- a/sip/QtCore/qlist.sip
+++ b/sip/QtCore/qlist.sip
@@ -343,8 +343,8 @@ template<TYPE1, TYPE2>
%End
};
%If (Qt_4_3_0 -)
-// QList<QPair<double, double> > is implemented as a Python list of 2-element tuples.
-%MappedType QList<QP... | Darcs Patch | 4 | JrCs/opendreambox | recipes/python/python-pyqt/04_qreal_api_fixes-for-4.4.3.dpatch | [
"MIT"
] |
<!DOCTYPE html><html><head><title>Fortunes</title></head><body><table><tr><th>id</th><th>message</th></tr>
<?php foreach ($data as $id => $value) : ?>
<tr><td><?= $id ?></td><td><?= htmlspecialchars($value) ?></td></tr>
<?php endforeach ?></table></body></html> | HTML+PHP | 3 | xsoheilalizadeh/FrameworkBenchmarks | frameworks/PHP/kumbiaphp/bench/app/views/_shared/templates/raw.phtml | [
"BSD-3-Clause"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.