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 |
|---|---|---|---|---|---|
<#--
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
"Licens... | Groovy Server Pages | 3 | timfel/netbeans | groovy/groovy.gsp/src/org/netbeans/modules/groovy/gsp/resources/GspTemplate.gsp | [
"Apache-2.0"
] |
# set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 500, 350
# set output 'surface1.16.png'
set dummy u,v
set label 1 "increasing v" at 6, 0, -1 left norotate back nopoint offset character 0, 0, 0
set label 2 "u=0" at 5, 6.5, -1 left norotate back nopoint offset character 0, 0, 0
set label... | Gnuplot | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Gnuplot/surface1.16.gnu | [
"MIT"
] |
CREATE TABLE meta_snapshot (
id bigint GENERATED ALWAYS AS IDENTITY NOT NULL,
gmt_create timestamp NOT NULL,
gmt_modified timestamp NOT NULL,
destination varchar(128) DEFAULT NULL,
binlog_file varchar(64) DEFAULT NULL,
binlog_offest bigint DEFAULT NULL,
binlog_master_id varchar(64) DEFAULT NULL,
binlog_... | SQL | 4 | yuanweikang2020/canal | parse/src/main/resources/ddl/derby/meta_snapshot.sql | [
"Apache-2.0"
] |
--# -path=.:../abstract:../common:../prelude
concrete GrammarSnd of Grammar =
NounSnd,
VerbSnd,
AdjectiveSnd,
AdverbSnd,
NumeralSnd,
SentenceSnd,
QuestionSnd,
RelativeSnd,
ConjunctionSnd,
PhraseSnd,
TextX - [Adv],
StructuralSnd,
TenseX - [Adv],
IdiomSnd
** {
flags... | Grammatical Framework | 3 | daherb/gf-rgl | src/sindhi/GrammarSnd.gf | [
"BSD-3-Clause"
] |
Sets
i generators / 1 * %subprob% /
k max num piecewise pts / 1 * 11 /
kk max piecewise pts for fut val func / 1 * %nPts% /
j for each demand instance / 1 * 10 /
;
Scalar
numG... | GAMS | 4 | brentian/dual-adp-suc | code/ub_fv_mip.gms | [
"MIT"
] |
---
title: Cars
output:
html_document:
theme: cerulean
---
```{r}
summary(cars)
```
Plots
```{r echo = FALSE}
plot(cars)
```
| RMarkdown | 3 | skeptycal/RTVS | src/Windows/Markdown/Editor/Test/Files/Preview/01.rmd | [
"MIT"
] |
package com.baeldung.securityprofile;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Collections;
import java.util.List;
@RestController
public class EmployeeController {
@GetMapping("/employees")
public List<String>... | Java | 4 | DBatOWL/tutorials | spring-boot-modules/spring-boot-security/src/main/java/com/baeldung/securityprofile/EmployeeController.java | [
"MIT"
] |
// This is a small "shim" program which is used when wasm32 unit tests are run
// in this repository. This program is intended to be run in node.js and will
// load a wasm module into memory, instantiate it with a set of imports, and
// then run it.
//
// There's a bunch of helper functions defined here in `imports.env... | JavaScript | 4 | Eric-Arellano/rust | src/etc/wasm32-shim.js | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
userdict /DrawWaterMark {
userdict begin
/Watermark (%ls) def
/FontSize %d def
/Font /Helvetica def
/WaterMarkColor {%s setrgbcolor} bind def
/Angle %s def
gsave
initgraphics
Angle rotate
clippath
pathbbox /MaxY exch def /MaxX exch def /MinY exch def /MinX exch def
Font findfont FontSize scalefont setfont
/MarkLen ... | PostScript | 3 | ixjf/Windows-driver-samples | print/OEM Printer Customization Plug-in Samples/C++/watermark/wmarkps/wmark.ps | [
"MS-PL"
] |
Red/System [
Title: "Red/System arrays test script"
Author: "Nenad Rakocevic"
File: %array-test.reds
Tabs: 4
Rights: "Copyright (C) 2011-2018 Red Foundation. All rights reserved."
License: "BSD-3 - https://github.com/red/red/blob/origin/BSD-3-License.txt"
]
#include %../../../../quick-test/quick-test.reds... | Red | 3 | GalenIvanov/red | system/tests/source/units/array-test.reds | [
"BSL-1.0",
"BSD-3-Clause"
] |
discard """
output: '''true
true
true
'''
"""
# issue #7615
import macros
template table(name: string) {.pragma.}
type
User {.table("tuser").} = object
id: int
name: string
age: int
echo User.hasCustomPragma(table)
## crash: Error: internal error: (filename: "sempass2.nim", line: 560, colum... | Nimrod | 4 | JohnAD/Nim | tests/macros/tcprag.nim | [
"MIT"
] |
<?xml version="1.0"?>
<!DOCTYPE rdf:RDF [
<!ENTITY owl "http://www.w3.org/2002/07/owl#" >
<!ENTITY owl11 "http://www.w3.org/2006/12/owl11#" >
<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
<!ENTITY owl11xml "http://www.w3.org/2006/12/owl11-xml#" >
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-s... | Web Ontology Language | 4 | VishalS711/protege | protege-editor-owl/src/test/resources/ontologies/tree/twoParents.owl | [
"BSD-2-Clause"
] |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="9008000">
<Item Name="My Computer" Type="My Computer">
<Property Name="server.app.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.control.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.tcp.enab... | LabVIEW | 3 | ajnavarro/language-dataset | data/github.com/keale/POLARIS-Vision/f08afdbbbdf8c20f2e789a6beeec3765bd21b6f0/POLARIS Vision.lvproj | [
"MIT"
] |
diff --git a/packages/gatsby/index.d.ts b/packages/gatsby/index.d.ts
index 4ed2e22114..df803ef8b4 100644
--- a/packages/gatsby/index.d.ts
+++ b/packages/gatsby/index.d.ts
@@ -350,7 +350,7 @@ export interface GatsbyNode<
callback: PluginCallback<void>
): void | Promise<void>
- /** Called at the end of the boo... | Diff | 4 | waltercruz/gatsby | patches/v4/3-onplugininit.patch | [
"MIT"
] |
//italic text//
| Creole | 0 | jquorning/ada-wiki | regtests/expect/wiki-import/italic.creole | [
"Apache-2.0"
] |
type t
val x : t
| UrWeb | 1 | apple314159/urweb | tests/split.urs | [
"BSD-3-Clause"
] |
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 20 20" height="20" viewBox="0 0 20 20" width="20"><rect fill="none" height="20" width="20"/><g><path d="M17.78,17.78L2.22,2.22L1.16,3.28L2.38,4.5C2.14,4.77,2,5.12,2,5.5v9C2,15.33,2.67,16,3.5,16h10.38l2.84,2.84L17.78,17.78z M3.5,14.5V7h1.38l7.5,7.5H3.5z ... | SVG | 1 | Imudassir77/material-design-icons | src/av/web_asset_off/materialiconsoutlined/20px.svg | [
"Apache-2.0"
] |
#![feature(portable_simd, generic_const_exprs, adt_const_params)]
#![allow(incomplete_features)]
#![cfg(feature = "generic_const_exprs")]
use core_simd::Simd;
#[test]
fn byte_convert() {
let int = Simd::<u32, 2>::from_array([0xdeadbeef, 0x8badf00d]);
let bytes = int.to_ne_bytes();
assert_eq!(int[0].to_ne_... | Rust | 4 | ohno418/rust | library/portable-simd/crates/core_simd/tests/to_bytes.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
call 1.2112380153173483 0.0 0.0 0.0 0.0 0.0 0.076258082478363826 1.2112380153173483 0.0 1.7344861590818963 0.0 0.0 0.0 0.0 1.0105673198551972 0.071169012970892523 0.0 1.6167031234255127 0.15036605463208574 0.92355594286556741 0.0 0.0 0.0 0.0 0.76940526303830914 1.3290210509737319 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/13/full_corpus_ppmi.dm | [
"CC-BY-3.0"
] |
// Copyright 2016 gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | Protocol Buffer | 5 | samotarnik/grpc | src/proto/grpc/binary_log/v1alpha/log.proto | [
"Apache-2.0"
] |
print $ int 1
print $ float 1.2 | Cirru | 0 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Cirru/number.cirru | [
"MIT"
] |
require "./repl"
class Crystal::Repl
# A block that's been compiled to bytecode.
class CompiledBlock
# The block that was compiled.
getter block : Block
# The bytecode to execute the block.
getter instructions : CompiledInstructions
# Local variables for the block (they might reference variab... | Crystal | 4 | jessedoyle/crystal | src/compiler/crystal/interpreter/compiled_block.cr | [
"Apache-2.0"
] |
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
DESCRIPTION="Agent providing a command line utility for a convenient access to
the logentries.com logging infrastructure."
HOMEPAGE="https://logentries.com/"
PYTHON_COMPAT=( python{2_7,3_2} )
... | Gentoo Ebuild | 3 | tobychin/ey-cloud-recipes | cookbooks/le/files/default/le-1.4.25.ebuild | [
"MIT"
] |
Everyone on this list will be familiar with Progress and Preservation
for terms in a typed calculus. Write ∅ ⊢ M : A to indicate that term
M has type A for closed M.
Progress. If ∅ ⊢ M : A then either M is a value or M —→ N,
for some term N.
Preservation. If ∅ ⊢ M : A and M —→ N then ∅ ⊢ N : A.
It is easy t... | Literate Agda | 3 | andorp/plfa.github.io | papers/sbmf/query.lagda | [
"CC-BY-4.0"
] |
%%
%unicode 6.1
%public
%class UnicodeScripts_6_1_extensions_2
%type int
%standalone
%include ../../resources/common-unicode-all-enumerated-property-defined-values-only-java
%%
<<EOF>> { printOutput(); return 1; }
\p{Script_Extensions:Devanagari} { setCurCharPropertyValue("Script_Extensions:Devanagari"); }
\p{Scri... | JFlex | 3 | Mivik/jflex | testsuite/testcases/src/test/cases/unicode-scripts/UnicodeScripts_6_1_extensions_2.flex | [
"BSD-3-Clause"
] |
@mixin bootable()
&:not([data-booted="true"])
transition: none !important
| Sass | 2 | ahmadiqbal1/vuetify | packages/vuetify/src/styles/tools/_bootable.sass | [
"MIT"
] |
#main
internal TestForMetaType0 {
prop = 'some'
TRUE = 1
static test_class_argument(class TestForMetaType0.Type) {
var_dump(class)
}
}
internal TestForMetaType1: TestForMetaType0 {
//
}
internal TestForMetaType2 {
//
}
var string_type = String
echo string_type // text "String"
var class_type = TestForMet... | Tea | 3 | jackwiy/tea | tests/syntax/type-metatype.tea | [
"Apache-2.0"
] |
reset
set title "Benchmark of different processing time"
set boxwidth 0.9
set datafile separator ","
set style data histogram
set style histogram clustered gap 2
set style fill solid 0.7 border
set border lw 0.8
set ylabel "requests / second"
set xtics nomirror rotate by -45
set ytics nomirror
set border 1+2 back
se... | Gnuplot | 3 | kinjew/kratos | examples/benchmark/testresults/benchmark.gnu | [
"MIT"
] |
#pragma TextEncoding = "UTF-8"
#pragma rtGlobals = 3
#pragma ModuleName = SIDAMRange
#include "SIDAM_Histogram"
#include "SIDAM_Utilities_Control"
#include "SIDAM_Utilities_Image"
#include "SIDAM_Utilities_ImageInfo"
#include "SIDAM_Utilities_Panel"
#include "SIDAM_Utilities_WaveDf"
#ifndef SIDAMshowProc
... | IGOR Pro | 5 | yuksk/SIDAM | src/SIDAM/func/SIDAM_Range.ipf | [
"MIT"
] |
@Grab('jackson-core')
class GrabTest {
}
| Groovy | 2 | dreamwy9/spring-boot | spring-boot-project/spring-boot-cli/src/test/resources/grab-samples/grab.groovy | [
"Apache-2.0"
] |
{{welcome-page}}
{{outlet}}
| Handlebars | 1 | asksyllable/storybook | examples/ember-cli/app/templates/application.hbs | [
"MIT"
] |
FromInput -> lv1_head :: RandomWeightedBranch({0},{1});
lv1_head[0] -> lv2_head_1 :: RandomWeightedBranch({0},{1});
lv1_head[1] -> lv2_head_2 :: RandomWeightedBranch({0},{1});
lv2_head_1[0] -> L2Forward(method {2}) -> ToOutput();
lv2_head_1[1] -> L2Forward(method {2}) -> ToOutput();
lv2_head_2[0] -> L2Forward(method {2... | Click | 2 | ANLAB-KAIST/NBA | configs/l2fwd-echo-branch-lv2.click | [
"MIT"
] |
"""Define tests for the OpenUV component."""
| Python | 1 | domwillcode/home-assistant | tests/components/openuv/__init__.py | [
"Apache-2.0"
] |
package io.swagger.client.model {
import io.swagger.client.model.Animal;
[XmlRootNode(name="Cat")]
public class Cat {
[XmlElement(name="className")]
public var className: String = null;
[XmlElement(name="declawed")]
public var declawed: Boolean = false;
pub... | ActionScript | 4 | wwadge/swagger-codegen | samples/client/petstore/flash/flash/src/io/swagger/client/model/Cat.as | [
"Apache-2.0"
] |
# rapidjson
# Chatterino2 is tested with RapidJSON v1.1.0
# - RAPIDJSON_PREFIX ($$PWD by default)
# - RAPIDJSON_SYSTEM (1 = true) (Linux only, uses pkg-config)
!defined(RAPIDJSON_PREFIX) {
RAPIDJSON_PREFIX = $$PWD
}
linux:equals(RAPIDJSON_SYSTEM, "1") {
message("Building with system RapidJSON")
PKGCONFI... | QMake | 3 | boralv/chatterino2 | lib/rapidjson.pri | [
"MIT"
] |
LG-LG100C[TF268435458510041402472375013089919426] UP.Browser/6.2.3.8 (GUI) MMP/2.0
LG-LG100C[TF268435461206033385001570019704177237] UP.Browser/6.2.3.8 (GUI) MMP/2.0
LG-LG100C[TF268435461203293972001196016412082499] UP.Browser/6.2.3.8 (GUI) MMP/2.0
| Text | 0 | 5tr1x/SecLists | Fuzzing/User-Agents/operating-platform/lg-lg100c.txt | [
"MIT"
] |
pub main
coginit(0, @entry, 0)
dat
org 0
entry
_getptr
add objptr, #16
mov result1, objptr
sub objptr, #16
_getptr_ret
ret
objptr
long @@@objmem
result1
long 0
COG_BSS_START
fit 496
objmem
long 0[8]
org COG_BSS_START
fit 496
| Parrot Assembly | 3 | archivest/spin2cpp | Test/Expect/stest064.pasm | [
"MIT"
] |
SUMMARY = "SDL graphics drawing primitives and other support functions"
SECTION = "libs"
LICENSE = "Zlib"
LIC_FILES_CHKSUM = "file://LICENSE;md5=5d1de21f0b70830e299905eac3419084"
DEPENDS = "virtual/libsdl"
SRC_URI = "http://www.ferzkopp.net/Software/SDL_gfx-2.0/SDL_gfx-${PV}.tar.gz"
SRC_URI[md5sum] = "ea24ed4b82ff130... | BitBake | 2 | guillon/meta-openembedded | meta-oe/recipes-graphics/libsdl/libsdl-gfx_2.0.25.bb | [
"MIT"
] |
factorial: n = (n <= 1 ifTrue: 1 False: [n * (factorial: n predecessor)])
| Self | 3 | LaudateCorpus1/RosettaCodeData | Task/Factorial/Self/factorial-3.self | [
"Info-ZIP"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M12 1C7.19 1 3.7 3.39 2.41 5.92c-.25.49.12 1.08.68 1.08.28 0 .54-.15.66-.4.98-1.91 3.83-4.1 8.25-4.1 3.03 0 5.79 1.14 7.91 3h-2.16c-.41 0-.75.34-.75.75s.34.... | JavaScript | 3 | dany-freeman/material-ui | packages/mui-icons-material/lib/esm/SwipeRightRounded.js | [
"MIT"
] |
/*******************************************************************
This file provides an example usage of upc_all_exchange collective
function as described in Section 7.3.1.5 in the UPC Spec v1.2.
********************************************************************/
#include <upc.h>
#include <upc_collective.h>
#def... | Unified Parallel C | 3 | maurizioabba/rose | tests/CompileTests/UPC_tests/static_upc_all_exchange_ex.upc | [
"BSD-3-Clause"
] |
#world {
line-width: 2mm;
marker-width: 2pc;
marker-height: 5pt;
building-height: 10cm;
}
| CartoCSS | 3 | nimix/carto | test/rendering/units.mss | [
"Apache-2.0"
] |
# import UserFragment, Address from './fragments.graphql'
# import * from "./otherFragments.graphql"
query MyQuery {
user(id: 6) {
...UserFragment
address {
...Address
}
}
}
| GraphQL | 3 | zowesiouff/parcel | packages/core/integration-tests/test/integration/graphql-named-import/MyQuery.graphql | [
"MIT"
] |
{{! Copyright (c) Avanade. Licensed under the MIT License. See https://github.com/Avanade/Beef }}
CREATE PROCEDURE [{{CdcSchema}}].[{{ExecuteStoredProcedureName}}]
@MaxQuerySize INT = 100, -- Maximum size of query to limit the number of changes to a manageable batch (performance vs failure trade-off).
@... | Harbour | 4 | ciaranodonnell/Beef | tools/Beef.CodeGen.Core/Templates/DbCdcSpExecuteOutbox_sql.hb | [
"MIT"
] |
package com.alibaba.json.bvt.issue_2200.issue2224_5;
import java.util.Map;
public class MA2PersonGroupedCollection extends MA2StringGroupedCollection<String> {
@Override
protected String getKeyForItem(Map<String, String[]>[] array) {
if (array == null || array.length == 0)
return null;
... | Java | 4 | Czarek93/fastjson | src/test/java/com/alibaba/json/bvt/issue_2200/issue2224_5/MA2PersonGroupedCollection.java | [
"Apache-2.0"
] |
#include "globals.hlsli"
#include "ShaderInterop_SurfelGI.h"
RWSTRUCTUREDBUFFER(surfelGridBuffer, SurfelGridCell, 0);
RWSTRUCTUREDBUFFER(surfelCellBuffer, uint, 1);
RWRAWBUFFER(surfelStatsBuffer, 2);
[numthreads(64, 1, 1)]
void main(uint3 DTid : SV_DispatchThreadID)
{
SurfelGridCell cell = surfelGridBuffer[DTid.x];
... | HLSL | 4 | zhangjiangen/WickedEngine | WickedEngine/shaders/surfel_gridoffsetsCS.hlsl | [
"MIT"
] |
diff --git a/node_modules/ts-node/dist/index.js b/node_modules/ts-node/dist/index.js
index 2dfd704..c00aa39 100644
--- a/node_modules/ts-node/dist/index.js
+++ b/node_modules/ts-node/dist/index.js
@@ -298,7 +298,7 @@ function readThrough(cachedir, shouldCache, memoryCache, compile, getExtension)
};
}
function up... | Diff | 3 | justinforbes/cypress | packages/ts/patches/ts-node+5.0.1.patch | [
"MIT"
] |
package com.baeldung.concurrent.future;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
public class FutureDemo {
... | Java | 4 | zeesh49/tutorials | core-java-concurrency/src/main/java/com/baeldung/concurrent/future/FutureDemo.java | [
"MIT"
] |
<?xml version="1.0" encoding="UTF-8"?>
<LERModel ObjectType="4003" CSAOName="LERModel" CSAOCaption="Model" InternalVersion="21.13" ProductVersion="6.5.5.7" Version="1.30"><Id>{6F251D1F-0C4B-4C62-8C79-D55341237ACA}</Id><Name>proyecto_foro</Name><Ordinal>0</Ordinal><GlobalOrder>0</GlobalOrder><ModelDefID>{CA753C22-0089-4... | TXL | 2 | smola/language-dataset | data/github.com/RAKINJA/foro_alpha/900100201950675af4e6927184837674b5effa9e/modelo/proyecto_foro_logico.txl | [
"MIT"
] |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Microsoft.AspNetCore.Http;
using Moq;
using Xunit;
namespace Microsoft.AspNetCore.Routing.Constraints
{
public class HttpMethodRouteConstraintTests
{
[Theory]
... | C# | 4 | tomaswesterlund/aspnetcore | src/Http/Routing/test/UnitTests/Constraints/HttpMethodRouteConstraintTests.cs | [
"MIT"
] |
#! parrot-nqp
# Copyright (C) 2011, Parrot Foundation.
pir::load_bytecode("YAML/Tiny.pbc");
pir::load_bytecode("nqp-setting.pbc");
=begin NAME
show_deprecated.nqp - Show deprecated features listed in api.yaml
=end NAME
=begin SYNOPSIS
parrot-nqp tools/dev/show_deprecated.nqp
=end SYNOPSIS
=begin DESCRIPTION
Sh... | Perl6 | 5 | winnit-myself/Wifie | tools/dev/show_deprecated.nqp | [
"Artistic-2.0"
] |
#ifndef TEST_INTEROP_CXX_STDLIB_INPUTS_FAKE_TOOLCHAIN_H
#define TEST_INTEROP_CXX_STDLIB_INPUTS_FAKE_TOOLCHAIN_H
namespace FakeNamespace {
void foo(int x) {}
}; // namespace FakeNamespace
#endif
| C | 3 | gabeiglio/swift | test/Interop/Cxx/stdlib/Inputs/fake-toolchain/include/c++/v1/fake-toolchain.h | [
"Apache-2.0"
] |
/**
*
* TimedGradient.x10
*
* Rudra Distributed Learning Platform
*
* Copyright (c) IBM Corporation 2016
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of sourc... | X10 | 5 | milthorpe/rudra | x10/src/rudra/TimedGradient.x10 | [
"BSD-3-Clause"
] |
concrete PredChi of Pred =
CatChi [NP,Utt,IP,IAdv,IComp,Conj,RP,RS,Imp,Subj] **
PredFunctor - [UseNP,ComplV2,SlashV3,ContVPC, StartVPC, StartClC,
RelVP, RelSlash, QuestVP, QuestSlash, QuestIComp,PredVP,
SubjUttPreS, SubjUttPreQ, SubjUttPost,
UseAdv, Compl... | Grammatical Framework | 4 | daherb/gf-rgl | src/experimental/PredChi.gf | [
"BSD-3-Clause"
] |
import fetch from "node-fetch"
import { SourceNodesArgs } from "gatsby"
import { createInterface } from "readline"
import { shiftLeft } from "shift-left"
import { nodeBuilder } from "./node-builder"
import { IShopifyBulkOperation } from "./operations"
import {
OperationError,
HttpError,
pluginErrorCodes as error... | TypeScript | 5 | beingfranklin/gatsby | packages/gatsby-source-shopify/src/make-source-from-operation.ts | [
"MIT"
] |
if(cell?(:reload_count_y),
Ground reload_count_y++,
Ground reload_count_y = 0)
| Ioke | 1 | olabini/ioke | test/reload_y.ik | [
"ICU",
"MIT"
] |
" Vim syntax file
" Language: Privoxy actions file
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" URL: http://gus.gscit.monash.edu.au/~djkea2/vim/syntax/privoxy.vim
" Last Change: 2007 Mar 30
" Privoxy 3.0.6
if exists("b:current_syntax")
finish
endif
let s:cpo_save = &cpo
set cpo&vim
setlocal iskeyword=@,48-... | VimL | 4 | uga-rosa/neovim | runtime/syntax/privoxy.vim | [
"Vim"
] |
/// <reference path="fourslash.ts" />
// @target: esnext
////async function fn(): Promise<number> {
//// return 0;
////}
verify.getSuggestionDiagnostics([]);
| TypeScript | 3 | monciego/TypeScript | tests/cases/fourslash/codeFixRemoveUnnecessaryAwait_notAvailableOnReturn.ts | [
"Apache-2.0"
] |
writeln("Fred".size);
proc bob(s:string) {
writeln(s.size);
}
var a = "Bob";
bob(a);
| Chapel | 4 | jhh67/chapel | test/trivial/jturner/stringLengthMethod.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
'd
'hare
'll
'm
're
's
't
've
0900
1
10
100
1000
1017
1020
1024
1026
1030
1039
1045
1055
1059
106
1083
11
110
1100
1110
1115
1130
1133
1145
1158
12
1200
1201
1205
1207
1209
1220
1222
1230
124
1245
1288
1291
130
1300
137338
139
150
1500
1505
1600
163
1700
1765
1800
1850
19
1940
1991
1992
1993
1994
2
20
200
201
21
210
21... | Mathematica | 0 | shyamalschandra/CNTK | Examples/LanguageUnderstanding/ATIS/BrainScript/query.wl | [
"MIT"
] |
; log := new Logger("test.log")
; log.Debug("test")
class Logger
{
__New(filename)
{
this.filename := filename
}
Debug(msg)
{
FileAppend, % A_Now . " " . msg . "`n", % this.filename
}
}
| AutoHotkey | 4 | Jvcon/vimdesktop | Lib/Logger.ahk | [
"MIT"
] |
module Api exposing
( Request
, expectJson
, get
, ignoreResponse
, paginatedGet
, post
, put
, request
, withJsonBody
)
import Api.Endpoints exposing (Endpoint, toString)
import Api.Pagination exposing (parsePagination)
import Concourse
import Concourse.Pagination exposing (Pag... | Elm | 4 | Caprowni/concourse | web/elm/src/Api.elm | [
"Apache-2.0"
] |
package main
func matchSSHD(data []byte) bool {
%% machine scanner;
%% write data;
cs, p, pe, eof := 0, 0, len(data), len(data)
_ = eof
%%{
main := any* 'sshd[' digit{5} ']:' space* 'Failed' @{ return true } ;
write init;
write exec;
}%%
return false
}
| Ragel in Ruby Host | 3 | bingoohuang/ragel-samples | samples/regexp1/sshd.rl | [
"MIT"
] |
//
// Copyright (c) 2006, Brian Frank and Andy Frank
// Licensed under the Academic Free License version 3.0
//
// History:
// 4 Nov 06 Brian Frank Creation
//
**
** GenerateOutput creates the appropriate CompilerOutput instance
** for Compiler.output based on the configured CompilerInput.output.
**
class Generate... | Fantom | 4 | fanx-dev/fantom | src/compiler/fan/steps/GenerateOutput.fan | [
"AFL-3.0"
] |
"""
42
"""
class Answer:
[getter(Value)] _value = 42
def constructor(value):
if value is null:
return
_value = value
print Answer(null).Value
| Boo | 1 | popcatalin81/boo | tests/testcases/integration/types/constructor-return-1.boo | [
"BSD-3-Clause"
] |
#tag Module
Protected Module PlugAndPlayWFS
#tag Method, Flags = &h21
Private Sub CreateInvisibleWindow()
#if TargetWin32
Soft Declare Sub RegisterClassA Lib "User32" ( wc as Ptr )
Soft Declare Sub RegisterClassW Lib "User32" ( wc as Ptr )
Soft Declare Function CreateWindowExA Lib "User32" ( ze... | REALbasic | 5 | bskrtich/WFS | Windows Functionality Suite/Miscellaneous/Modules/PlugAndPlayWFS.rbbas | [
"MIT"
] |
insert into ta values (3, '3c49f3bd', 6194643990092531757);
insert into ta values (13, '1da87b44', 3724743701402246028);
insert into ta values (6, '8b080186', 4840750639653607661);
insert into ta values (1, 'c83c0e6a', 5057094372111243649);
insert into ta values (12, 'dd73baf5', 2295098755414696158);
insert into ta val... | SQL | 2 | WizardXiao/tidb | br/tests/lightning_duplicate_detection/data/dup_detect.ta.0.sql | [
"Apache-2.0"
] |
set(MAC_CATALYST TRUE)
message(STATUS "Setting up Catalyst toolchain for IOS_ARCH='${IOS_ARCH}'")
include(${CMAKE_CURRENT_LIST_DIR}/common-ios-toolchain.cmake)
message(STATUS "Catalyst toolchain loaded")
| CMake | 3 | lefatoum2/opencv | platforms/ios/cmake/Toolchains/Toolchain-Catalyst_Xcode.cmake | [
"Apache-2.0"
] |
-- Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
--
-- LIMIT
-- https://github.com/postgres/postgres/blob/REL_12_STABLE/src/test/regress/sql/limit.sql
SELECT '' AS two, unique1, unique2, stringu1
FROM onek WHERE unique1 > 50
ORDER BY unique1 LIMIT 2;
SELECT '' AS five, unique1, unique2, str... | SQL | 4 | OlegPt/spark | sql/core/src/test/resources/sql-tests/inputs/postgreSQL/limit.sql | [
"Apache-2.0"
] |
# frozen_string_literal: true
require "thread"
require "weakref"
module ActiveRecord
module ConnectionAdapters
class ConnectionPool
# Every +frequency+ seconds, the reaper will call +reap+ and +flush+ on
# +pool+. A reaper instantiated with a zero frequency will never reap
# the connection poo... | Ruby | 5 | zvkemp/rails | activerecord/lib/active_record/connection_adapters/abstract/connection_pool/reaper.rb | [
"MIT"
] |
const runTests = () => {
it(`should redirect page to index page when there is no such page`, () => {
cy.visit(`/redirect-without-page`, {
failOnStatusCode: false,
}).waitForRouteChange()
cy.location(`pathname`).should(`equal`, `/`)
})
it(`should redirect page to index page even there is a such... | JavaScript | 4 | waltercruz/gatsby | e2e-tests/development-runtime/cypress/integration/navigation/redirect.js | [
"MIT"
] |
*"* use this source file for any type of declarations (class
*"* definitions, interfaces or type declarations) you need for
*"* components in the private section
CLASS lcl_stream DEFINITION FINAL.
PUBLIC SECTION.
TYPES: ty_hex TYPE x LENGTH 1.
METHODS:
constructor
IMPORTING
iv_data T... | ABAP | 4 | jeevanrajv1901/ABAPGIT | src/git/zcl_abapgit_git_pack.clas.locals_def.abap | [
"MIT"
] |
IDENTIFICATION DIVISION.
PROGRAM-ID. BSORT-DEV.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 TEMP PIC 9 VALUE 0.
01 I PIC 9 VALUE 0.
01 J PIC 9 VALUE 0.
01 ARRLENGTH PIC 9 VALUE 5.
01 ARRAY-TABLE.
02 ARR PIC 9 OCCURS 5 TIMES.
PROCEDURE DIVISI... | COBOL | 4 | CarbonDDR/al-go-rithms | sort/bubble_sort/cobol/bubbleSort.cbl | [
"CC0-1.0"
] |
diagram "unclosed_diagram" { // some comment
| Redcode | 0 | ralphtq/cloudgram | tests/fixtures/unclosed_diagram.cw | [
"Apache-2.0"
] |
package org.xtendroid.json
//package de.itemis.jsonized // for some reason
// the annotation refuses to import from a different package
// NOTE: the IDE plugin gives a false impression.
import com.google.gson.JsonArray
import com.google.gson.JsonElement
import com.google.gson.JsonObject
import com.google.gson.JsonPars... | Xtend | 4 | kusl/Xtendroid | Xtendroid/src/org/xtendroid/json/JsonObjectEntry.xtend | [
"MIT"
] |
from ._state cimport StateC
from ...typedefs cimport weight_t, attr_t
from .transition_system cimport Transition, TransitionSystem
cdef class ArcEager(TransitionSystem):
cdef get_arcs(self, StateC* state)
| Cython | 2 | snosrap/spaCy | spacy/pipeline/_parser_internals/arc_eager.pxd | [
"MIT"
] |
-- Script to merge all occurrences for one resource.
-- These will be used later for indexing
--
-- @param dir the directory where we find the part* files outputted by hadoop
-- @author pablomendes
SET job.name MergeResources;
------ LOADING AND CLEANING ------
occurrences = LOAD '$dir/*' USING PigStorage('\t') AS (i... | PigLatin | 4 | david-oggier/dbpedia-spotlight | index/src/main/pig/SortedOccurrences.pig | [
"Apache-2.0"
] |
// run-pass
#![feature(core_intrinsics)]
use std::intrinsics;
const SWAPPED_U8: u8 = intrinsics::bswap(0x12_u8);
const SWAPPED_U16: u16 = intrinsics::bswap(0x12_34_u16);
const SWAPPED_I32: i32 = intrinsics::bswap(0x12_34_56_78_i32);
fn main() {
assert_eq!(SWAPPED_U8, 0x12);
assert_eq!(SWAPPED_U16, 0x34_12);... | Rust | 3 | Eric-Arellano/rust | src/test/ui/consts/bswap-const.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
--TEST--
DomDocument::createAttribute() - basic test for DomDocument::createAttribute()
--CREDITS--
Muhammad Khalid Adnan
# TestFest 2008
--EXTENSIONS--
dom
--FILE--
<?php
$doc = new DOMDocument;
$node = $doc->createElement("para");
$newnode = $doc->appendChild($node);
// A pass case.
$test_attribute = $doc->createA... | PHP | 3 | NathanFreeman/php-src | ext/dom/tests/DOMDocument_createAttribute_basic.phpt | [
"PHP-3.01"
] |
# robotstxt.org/
User-agent: * | HTML+PHP | 2 | nakshatrasinghh/appwrite | app/views/general/robots.phtml | [
"BSD-3-Clause"
] |
package com.baeldung.elementcollection;
import com.baeldung.elementcollection.model.Employee;
import com.baeldung.elementcollection.model.Phone;
import com.baeldung.elementcollection.repository.EmployeeRepository;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
... | Java | 4 | DBatOWL/tutorials | persistence-modules/spring-data-jpa-enterprise/src/test/java/com/baeldung/elementcollection/ElementCollectionIntegrationTest.java | [
"MIT"
] |
func $foo1 (var %p1 i8, var %p2 i16, var %p3 i32, var %p4 i64, ...)i32 {
return (
constval i32 33)}
func $foo2 (var %p1 u8, var %p2 u16, var %p3 u32, var %p4 u64,...) i32 {
return (
constval i32 33)}
func $foo4 (var %p1 f32, var %p2 f64, ... ) i32 {
return (
constval i32 33)}
func $foo5 (... | Maple | 2 | harmonyos-mirror/OpenArkCompiler-test | test/testsuite/irbuild_test/I0081-mapleall-irbuild-edge-test_type/Main.mpl | [
"MulanPSL-1.0"
] |
from __future__ import unicode_literals
from .common import InfoExtractor
class HentaiStigmaIE(InfoExtractor):
_VALID_URL = r'^https?://hentai\.animestigma\.com/(?P<id>[^/]+)'
_TEST = {
'url': 'http://hentai.animestigma.com/inyouchuu-etsu-bonus/',
'md5': '4e3d07422a68a4cc363d8f57c8bf0d23',
... | Python | 4 | hackarada/youtube-dl | youtube_dl/extractor/hentaistigma.py | [
"Unlicense"
] |
%!PS-Adobe-3.0
%%Creator: Aaron Puchert
%%Title: The Sierpinski triangle
%%Pages: 1
%%PageOrder: Ascend
%%BeginProlog
% PAGE SETTINGS
/pageset {
28.3464566 28.3464566 scale % set cm = 1
0.5 0.5 translate
0 setlinewidth
} def
% sierpinski(n) draws a sierpinski triangle of order n
/sierpinski {
dup 0 gt {
[0... | PostScript | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/PostScript/sierpinski.ps | [
"MIT"
] |
#
# program needs:
# only process month files with one complete month before current month.
# only process day files to match last month.
#
# test current changes then
# copy snetsta and schanloc to /tmp at beginning of program
# make links from sta_db and tmp_db to tmp snetsta schanl... | XProc | 4 | jreyes1108/antelope_contrib | bin/usarray/baler_active_to_dmc/baler_active_to_dmc.xpl | [
"BSD-2-Clause",
"MIT"
] |
{#
# Copyright (C) 2017 Frank Wall
# Copyright (C) 2014-2015 Deciso B.V.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyri... | Volt | 4 | marcquark/plugins | net-mgmt/zabbix-agent/src/opnsense/mvc/app/views/OPNsense/ZabbixAgent/index.volt | [
"BSD-2-Clause"
] |
public class LibraryObject : Object {
public void func() {
stdout.printf("Method in library called.");
}
}
| Vala | 1 | kira78/meson | test cases/vala/7 shared library/lib/mylib.vala | [
"Apache-2.0"
] |
/*
* Copyright (c) 2020, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibWeb/HTML/EventNames.h>
#include <LibWeb/UIEvents/EventNames.h>
#include <LibWeb/UIEvents/MouseEvent.h>
namespace Web::UIEvents {
MouseEvent::MouseEvent(const FlyString& event_name, double offset_x, doubl... | C++ | 4 | r00ster91/serenity | Userland/Libraries/LibWeb/UIEvents/MouseEvent.cpp | [
"BSD-2-Clause"
] |
package com.example.helloworld
import android.content.Context
import android.view.View
import android.widget.Button
import android.widget.LinearLayout
import org.xtendroid.app.AndroidActivity
import android.app.Activity
import android.os.Bundle
import android.widget.Toast
import android.view.Gravity
import static ext... | Xtend | 4 | Buggaboo/Xtendroid | examples/HelloWorld/src/com/example/helloworld/HelloWorldActivity.xtend | [
"MIT"
] |
/* File generated by Tools/ssl/make_ssl_data.py *//* Generated on 2021-04-09T09:36:21.493286 */
static struct py_ssl_library_code library_codes[] = {
#ifdef ERR_LIB_ASN1
{"ASN1", ERR_LIB_ASN1},
#endif
#ifdef ERR_LIB_ASYNC
{"ASYNC", ERR_LIB_ASYNC},
#endif
#ifdef ERR_LIB_BIO
{"BIO", ERR_LIB_BIO},
#endif
#ifde... | C | 3 | pxeger/cpython | Modules/_ssl_data_111.h | [
"0BSD"
] |
= javascript_tag(nonce: content_security_policy_nonce) do
:plain
gl = window.gl || {};
gl.experiments = #{raw ApplicationExperiment.published_experiments.reject { |name, data| data[:excluded] }.to_json};
| Haml | 3 | nowkoai/test | app/views/layouts/_published_experiments.html.haml | [
"MIT"
] |
DROP TABLE IF EXISTS authorities;
DROP TABLE IF EXISTS bael_users;
CREATE TABLE bael_users (
name VARCHAR(50) NOT NULL,
email VARCHAR(50) NOT NULL,
password VARCHAR(100) NOT NULL,
enabled TINYINT NOT NULL DEFAULT 1,
PRIMARY KEY (email)
);
CREATE TABLE authorities (
email VARCHAR(50) NOT NULL,
authori... | SQL | 3 | DBatOWL/tutorials | spring-security-modules/spring-security-web-boot-2/src/main/resources/schema-mysql.sql | [
"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/CeylonBundle.ceylon | [
"Apache-2.0"
] |
# Copyright 2017 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 applica... | Python | 4 | EricRemmerswaal/tensorflow | tensorflow/python/ops/unconnected_gradients.py | [
"Apache-2.0"
] |
{% set result = [1, 2, 3, 4] | avg() %}
{% include 'jinja_filters/common.sls' %}
| SaltStack | 3 | byteskeptical/salt | tests/integration/files/file/base/jinja_filters/jinja_avg.sls | [
"Apache-2.0"
] |
// https://w3c.github.io/DOM-Parsing/#the-xmlserializer-interface
[Exposed=Window]
interface XMLSerializer {
constructor();
DOMString serializeToString(Node root);
};
| WebIDL | 4 | Unique184/jsdom | lib/jsdom/living/domparsing/XMLSerializer.webidl | [
"MIT"
] |
#!/usr/bin/perl -wT
# flush the buffers after each print
select (STDOUT);
$| = 1;
print "Content-Type: text/html\n";
print "Expires: Thu, 01 Dec 2003 16:00:00 GMT\n";
print "Cache-Control: no-store, no-cache, must-revalidate\n";
print "Pragma: no-cache\n";
print "\n";
print "\xef\xbb\xbf<body><p>Test for bug 10697: ... | Perl | 5 | zealoussnow/chromium | third_party/blink/web_tests/http/tests/incremental/slow-utf8-html.pl | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
syntax = "proto2";
| Protocol Buffer | 0 | arghyadip01/grpc | third_party/upb/tests/empty.proto | [
"Apache-2.0"
] |
import QtQuick 2.3
import QtQuick.Controls 1.2
import QGroundControl.ScreenTools 1.0
import QGroundControl.Palette 1.0
/// The SliderSwitch control implements a sliding switch control similar to the power off
/// control on an iPhone.
Rectangle {
id: _root
implicit... | QML | 5 | uav-operation-system/qgroundcontrol | src/QmlControls/SliderSwitch.qml | [
"Apache-2.0"
] |
#
mes 2,EM_WSIZE,EM_PSIZE
exa errno
errno
bss EM_WSIZE,0,0
| Eiffel | 0 | wyan/ack | plat/em/libsys/errno.e | [
"BSD-3-Clause"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.