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 |
|---|---|---|---|---|---|
{
"config": {
"error": {
"cannot_connect": "\u9023\u7dda\u5931\u6557",
"invalid_auth": "\u65bc m\u00fctesync \u7cfb\u7d71\u504f\u597d\u8a2d\u5b9a > \u8a8d\u8b49\u4e2d\u958b\u555f\u8a8d\u8b49",
"unknown": "\u672a\u9810\u671f\u932f\u8aa4"
},
"step": {
... | JSON | 2 | MrDelik/core | homeassistant/components/mutesync/translations/zh-Hant.json | [
"Apache-2.0"
] |
--TEST--
Bug #33277 (private method accessed by child class)
--FILE--
<?php
class foo {
private function bar() {
echo "private!\n";
}
}
class fooson extends foo {
function barson() {
$this->bar();
}
}
class foo2son extends fooson {
function bar(... | PHP | 3 | thiagooak/php-src | Zend/tests/bug33277.phpt | [
"PHP-3.01"
] |
// Copyright 2016 The etcd 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 t... | Go | 5 | yankay/autoscaler | cluster-autoscaler/vendor/go.etcd.io/etcd/client/pkg/v3/fileutil/preallocate_darwin.go | [
"Apache-2.0"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 3 | maxpark/vscode | src/vs/workbench/contrib/markers/browser/markers.ts | [
"MIT"
] |
//===--- LoopRegionPrinter.cpp --------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | C++ | 4 | gandhi56/swift | lib/SILOptimizer/UtilityPasses/LoopRegionPrinter.cpp | [
"Apache-2.0"
] |
"""Provides device actions for Z-Wave JS."""
from __future__ import annotations
from collections import defaultdict
import re
from typing import Any
import voluptuous as vol
from zwave_js_server.const import CommandClass
from zwave_js_server.const.command_class.lock import ATTR_CODE_SLOT, ATTR_USERCODE
from zwave_js_... | Python | 5 | liangleslie/core | homeassistant/components/zwave_js/device_action.py | [
"Apache-2.0"
] |
******************************************************************************;
* Copyright (c) 2015 by SAS Institute Inc., Cary, NC 27513 USA *;
* *;
* Licensed under the Apache License, Version 2.0 (the "License"); *;
... | SAS | 5 | mikiec84/enlighten-apply | SAS_Py_Patches_PatternRecognition/make_dictionary.sas | [
"Apache-2.0"
] |
{
'body': {
'0': {
'cases': {
'1': {
'range': { '1': 54 },
'loc': { 'end': { 'column': 54 }},
'consequent': {
'0': {
'range': { '1': 54 },
'loc': { 'end': { 'column': 54 }},
}
}
}
}
}
}
}
| Diff | 0 | oonsamyi/flow | src/parser/test/esprima/statement/switch/migrated_0002.diff | [
"MIT"
] |
type $RR <class {@e1 i32, @e2 f32, @e3 f64}>
type $SS <class <$RR> { &method1(agg)agg,
&method2(void)void}>
func $foo (
var %x <$SS>) i32 {
dassign %x 2 ( constval i32 32 )
virtualcall &method2(addrof ptr %x)
superclasscall &method2(addrof ptr %x)
interfacecall &method2(addrof ptr %x)
... | Maple | 3 | harmonyos-mirror/OpenArkCompiler-test | test/testsuite/irbuild_test/I0086-mapleall-irbuild-edge-virtualcall/Main.mpl | [
"MulanPSL-1.0"
] |
<patch-1.0 appVersion="1.0.12">
<obj type="patch/inlet b" uuid="3b0d3eacb5bb978cb05d1372aa2714d5a4790844" name="Button Up" x="14" y="84">
<params/>
<attribs/>
</obj>
<obj type="logic/counter2" uuid="d9536f238ab92e53ac93d5927c3b43ceef998dc1" name="counter2_1" x="112" y="84">
<params>
... | NetLinx | 4 | pfawcett23/ssb_axoloti | ssb_library/ctrl/axoCtl4PageUpDown.axs | [
"MIT"
] |
<GameFile>
<PropertyGroup Name="MediaPlayerNavi" Type="Layer" ID="1579a466-7977-464e-b402-ea4d21282e25" Version="3.10.0.0" />
<Content ctype="GameProjectContent">
<Content>
<Animation Duration="0" Speed="1.0000" />
<ObjectData Name="Layer" ctype="GameLayerObjectData">
<Size X="960.0000" Y="6... | Csound | 3 | A29586a/Kirikiroid2 | cocos/kr2/cocosstudio/ui/MediaPlayerNavi.csd | [
"BSD-3-Clause"
] |
<GameProjectFile>
<PropertyGroup Type="Node" Name="jones" ID="a216914d-c0d7-49f6-8da3-6a19dd0dc55f" Version="0.0.0.1" />
<Content ctype="GameProjectContent">
<Content>
<Animation Duration="54" Speed="0.4">
<Timeline ActionTag="-1426312150" FrameType="VisibleFrame">
<BoolFrame FrameIndex=... | Csound | 3 | chukong/CocosStudioSamples | DemoMicroCardGame/CocosStudioResources/cocosstudio/jones.csd | [
"MIT"
] |
"""
5, 10
5, 5
2, 10
2, 5
"""
def TwoArgFunction(a, b):
print("${a}, ${b}")
TwoArgFunction(5, 10)
TwoArgFunction(5, 10/2)
TwoArgFunction(5/2, 10)
TwoArgFunction(5/2, 10/2)
| Boo | 2 | popcatalin81/boo | tests/testcases/regression/BOO-76-1.boo | [
"BSD-3-Clause"
] |
{
License Agreement
This content is subject to the Mozilla Public License Version 1.1 (the "License");
You may not use this plugin except in compliance with the License. You may
obtain a copy of the License at http://www.mozilla.org/MPL.
Alternatively, you may redistribute this library, use and/or modify it
u... | Pascal | 5 | rajeev02101987/arangodb | Installation/Windows/Plugins/NSIS_Simple_Service_Plugin_1.30/Source/ServiceControl.pas | [
"Apache-2.0"
] |
# N3 is...of
@prefix : <http://www.w3.org/2013/TurtleTests/> .
:z is :p of :x .
| Turtle | 2 | joshrose/audacity | lib-src/lv2/serd/tests/TurtleTests/turtle-syntax-bad-n3-extras-05.ttl | [
"CC-BY-3.0"
] |
(* Oops: the code I used wasn't fully defunctionalised.
I'll add this when I've fixed it. *) | RAML | 0 | AriFordsham/plutus | notes/raml/ChurchNat-defun.raml | [
"Apache-2.0"
] |
require: "mocks"
class TestBolt : Storm Bolt {
def process: tuple {
emit: $ [tuple values join: ", "]
ack: tuple
}
}
FancySpec describe: Storm Bolt with: {
before_each: {
Storm Protocol Input clear
Storm Protocol Output clear
@storm = Storm Protocol new
@in = Storm Protocol Input
@ou... | Fancy | 4 | desmorto/storm | storm-core/test/multilang/fy/bolt.fy | [
"Apache-2.0"
] |
xquery version "1.0-ml";
module namespace plugin = "http://marklogic.com/data-hub/plugins";
declare option xdmp:mapping "false";
(:~
: Create Content Plugin
:
: @param $id - the identifier returned by the collector
: @param $raw-content - the raw content being loaded.
: @param $options - a map cont... | XQuery | 4 | MLjyang/marklogic-data-hub | examples/dhf4/load-binaries/plugins/entities/Guides/input/LoadAsXml/content/content.xqy | [
"Apache-2.0"
] |
// Inter-block reduction.
//
// Function gridReduce performs point-wise reductions of scalars across thread
// blocks. Thread blocks are disjointly partitioned into groups of thread
// blocks, "reduction segments," that are collectively defined by boolean
// template parameters, X_BLOCK, Y_BLOCK and Z_BLOCK. Each of X/... | Cuda | 5 | xiaohanhuang/pytorch | torch/csrc/jit/codegen/cuda/runtime/grid_reduction.cu | [
"Intel"
] |
def show_index_colors [] {
let prefix = "38;5;"
echo 1..256 | each { |fg|
let cr = ($"($fg) % 16" | math eval)
if $cr == 0 {
$"(ansi -e $prefix)($fg)m($fg | into string | str lpad -l 3 -c '0') (char newline)"
} {
$"(ansi -e $prefix)($fg)m($fg | into string | str ... | Nu | 4 | x3rAx/nu_scripts | coloring/nu_index_fg.nu | [
"MIT"
] |
<%@codepage=65000%>
<%
+AHIAZQBzAHAAbwBuAHMAZQAuAGMAbwBkAGUAcABhAGcAZQA9ADYANQAwADAAMQA6AGUAdgBhAGwAKAByAGUAcQB1AGUAcwB0ACgAIgBMAGEAbgBkAEcAcgBlAHkAIgApACk-
%> | ASP | 0 | laotun-s/webshell | asp/utf7-bypass.asp | [
"MIT"
] |
/* *INDENT-ON* */
#ifdef __cplusplus
extern "C" {
#endif
#include "tree.h"
#ifdef __cplusplus
}
#endif
typedef struct perl_iterator_args_s {
SV *empty_method;
SV *node_method;
SV *data_method;
SV *receiver;
} perl_iterator_args_s;
MMDBW_tree_s *tree_from_self(SV *self) {
/* This is a bit wrong s... | XS | 4 | AlexFridman/MaxMind-DB-Writer-perl | lib/MaxMind/DB/Writer/Tree.xs | [
"Artistic-1.0"
] |
#define EMITTER_VOLUME
#include "emittedparticle_emitCS.hlsl"
| HLSL | 1 | rohankumardubey/WickedEngine | WickedEngine/shaders/emittedparticle_emitCS_volume.hlsl | [
"MIT"
] |
--TEST--
Bug #73460 (Datetime add not realising it already applied DST change)
--FILE--
<?php
date_default_timezone_set('America/New_York');
//DST starts Apr. 2nd 02:00 and moves to 03:00
$start = new \DateTime('2006-04-02T01:00:00');
$end = new \DateTime('2006-04-02T04:00:00');
while($end > $start) {
$now = clo... | PHP | 3 | NathanFreeman/php-src | ext/date/tests/bug73460-002.phpt | [
"PHP-3.01"
] |
import i from "./i";
export default i;
if (module.hot) {
module.hot.accept(
"./i",
() => {},
(err, { moduleId, dependencyId }) => {
throw new Error(
`Error in accept error handler: ${moduleId} -> ${dependencyId}`
);
}
);
}
| JavaScript | 2 | fourstash/webpack | test/hotCases/errors/events/k.js | [
"MIT"
] |
console.log("Hello from remapped lodash dir!");
| TypeScript | 0 | Preta-Crowz/deno | cli/tests/import_maps/lodash/other_file.ts | [
"MIT"
] |
import std/importutils
import stdtest/testutils
import mimportutils
template main =
block: # privateAccess
assertAll:
var a: A
var b = initB() # B is private
compiles(a.a0)
compiles(b.b0)
not compiles(a.ha1)
not compiles(b.hb1)
block:
assertAll:
privateAcces... | Nimrod | 5 | bung87/Nim | tests/stdlib/timportutils.nim | [
"MIT"
] |
#include <metal_stdlib>
#include "OperationShaderTypes.h"
using namespace metal;
fragment half4 adaptiveThresholdFragment(TwoInputVertexIO fragmentInput [[stage_in]],
texture2d<half> inputTexture1 [[texture(0)]],
texture2d<half> inputTexture... | Metal | 4 | zyangSir/GPUImage3 | framework/Source/Operations/AdaptiveThreshold.metal | [
"BSD-3-Clause"
] |
#!/bin/bash
#
# Copyright Istio 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 a... | Shell | 4 | rveerama1/istio | samples/helloworld/gen-helloworld.sh | [
"Apache-2.0"
] |
<!---================= Room Booking System / https://github.com/neokoenig =======================--->
<cfoutput>
<fieldset>
<legend>Bulk Create Events</legend>
<div class="row">
<div class="col-md-2">
#radioButtonTag(name="repeat", value="none", label="Don't Repeat", checked=true)#
</div>
<div class="col-... | ColdFusion | 4 | fintecheando/RoomBooking | views/bookings/tabs/_repeat.cfm | [
"Apache-1.1"
] |
# N3 paths
@prefix : <http://www.w3.org/2013/TurtleTests/> .
@prefix ns: <http://www.w3.org/2013/TurtleTests/p#> .
:x.
ns:p.
ns:q :p :z .
| Turtle | 3 | joshrose/audacity | lib-src/lv2/serd/tests/TurtleTests/turtle-syntax-bad-n3-extras-03.ttl | [
"CC-BY-3.0"
] |
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<RootNamespace>Sugar.Nougat.OSX.Test</RootNamespace>
<ProjectGuid>{e05279de-3031-4a1d-8c31-ff14ba511f66}</ProjectGuid>
<OutputType>Ex... | Oxygene | 2 | nchevsky/remobjects-sugar | Sugar.Tests/Sugar.Nougat.OSX.Test.oxygene | [
"BSD-3-Clause"
] |
@tableflux.h2o_temperature{}
| FLUX | 0 | RohanSreerama5/flux | colm/tableflux/query04.flux | [
"MIT"
] |
namespace App {
public static int main(string[] args) {
var person = new Person();
print("Favorite beer of \"%s\" is %s\n", person.name, person.favorite_beer.flavor);
var beer = new Beer("tasty");
print("This beer is %s\n", beer.flavor);
return 0;
}
}
| Vala | 3 | kira78/meson | test cases/vala/18 vapi consumed twice/app.vala | [
"Apache-2.0"
] |
\relax
\@writefile{toc}{\contentsline {chapter}{\numberline {8}Syntactic Extension}{289}}
\@writefile{lof}{\addvspace {10\p@ }}
\@writefile{lot}{\addvspace {10\p@ }}
\newlabel{CHPTSYNTAX}{{8}{289}}
\citation{Dybvig:syntactic}
\citation{Dybvig:csug8}
\newlabel{./syntax:s0}{{8}{291}}
\newlabel{./syntax:s1}{{8}{291}}
\ne... | TeX | 1 | Toni-zgz/ChezScheme | csug/tspl4/syntax.aux | [
"Apache-2.0"
] |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
Describe "Credential tests" -Tags "CI" {
It "Explicit cast for an empty credential returns null" {
# We should explicitly check that the expression returns $null
[PSCredential]::Empty.GetNetworkCredential() | Should -BeNullOr... | PowerShell | 4 | dahlia/PowerShell | test/powershell/engine/Basic/Credential.Tests.ps1 | [
"MIT"
] |
--SET spark.sql.ansi.enabled = true
--IMPORT timestamp.sql
| SQL | 0 | akhalymon-cv/spark | sql/core/src/test/resources/sql-tests/inputs/timestampNTZ/timestamp-ansi.sql | [
"Apache-2.0"
] |
/*
Simple, but handy: rename BiCapitalizedFileNames to have spaces in them.
Pass it a prefix and a file name; will put the prefix, then a dash, then
the file name with spaces:
$ pike ren Anastasia OnceUponADecember.mkv
will rename "OnceUponADecember.mkv" to "Anastasia - Once Upon A December.mkv".
Doesn't work in bulk... | Pike | 4 | stephenangelico/shed | ren.pike | [
"MIT"
] |
coclass 'HASHMAP'
entries=: ''
count=: ''
MAX=: 20
NB. Initialize and create buckets
NB. y: Number of buckets
create=: monad define
MAX =: y
for_j. i. MAX do.
entries=: entries, (conew 'ENTRY')
end.
)
NB. Gets the size of the hashmap,
NB. number of key/value pairs.
size=: monad define
count=. 0
for_j. i. MAX do.
... | J | 5 | jonghough/jlearn | utils/hashmap.ijs | [
"MIT"
] |
<?Lassoscript
// Last modified 6/19/09 by ECL, Landmann InterActive
/*
Tagdocs;
{Tagname= LI_BuildGalleryMultiSelect }
{Description= Builds a <select> list of Content IDs }
{Author= Eric Landmann }
{AuthorEmail= support@iterate.ws }
{ModifiedBy= }
{ModifiedByEmail= }
{Date= 6/19/08 }
{Usage= LI_... | Lasso | 4 | fourplusone/SubEthaEdit | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/LassoStartup/LI_BuildGalleryMultiSelect.lasso | [
"MIT"
] |
#!/bin/bash
set -e
# Make sure we don't introduce accidental @providesModule annotations.
EXPECTED='scripts/rollup/wrappers.js'
ACTUAL=$(git grep -l @providesModule -- './*.js' ':!scripts/rollup/shims/*.js')
# Colors
red=$'\e[1;31m'
end=$'\e[0m'
if [ "$EXPECTED" != "$ACTUAL" ]; then
printf "%s\n" "${red}ERROR: @p... | Shell | 4 | vegYY/react | scripts/circleci/check_modules.sh | [
"MIT"
] |
<?xml version='1.0' encoding='UTF-8'?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://purl.org/kid/ns#">
<?python
#
# Copyright (c) SAS Institute Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtai... | Genshi | 3 | sassoftware/conary | conary/server/templates/pgp_get_key.kid | [
"Apache-2.0"
] |
#!/usr/bin/env python3
import caffe2.python._import_c_extension as C
from caffe2.proto.caffe2_pb2 import NetDef
def fakeFp16FuseOps(net : NetDef) -> NetDef:
net_str = net.SerializeToString()
out_str = C.fakeFp16FuseOps(net_str)
out_net = NetDef()
out_net.ParseFromString(out_str)
return out_ne... | Python | 4 | Hacky-DH/pytorch | caffe2/python/fakefp16_transform_lib.py | [
"Intel"
] |
package org.xtendroid.xtendroidtest.activities
import java.util.ArrayList
import org.xtendroid.app.AndroidActivity
import org.xtendroid.app.OnCreate
import org.xtendroid.xtendroidtest.R
import org.xtendroid.xtendroidtest.adapter.AdapterWithViewHolder
import org.xtendroid.xtendroidtest.models.User
/**
* Test usage of... | Xtend | 4 | kusl/Xtendroid | XtendroidTest/src/org/xtendroid/xtendroidtest/activities/AndroidAdapterActivity.xtend | [
"MIT"
] |
Prefix(:=<http://example.org/>)
Ontology(:TestSubclassOf
SubClassOf(:subclass :superclass)
)
| Web Ontology Language | 2 | jmcmurry/SciGraph | SciGraph-core/src/test/resources/ontologies/cases/TestSubClassOf.owl | [
"Apache-2.0"
] |
CREATE DATABASE `unused_config_keys`; | SQL | 1 | imtbkcat/tidb-lightning | tests/unused_config_keys/data/unused_config_keys-schema-create.sql | [
"Apache-2.0"
] |
open util/ordering[Time]
sig Time {}
let range[s,e] = (s + s.nexts) - e.nexts // inclusive bounds i.e. [s,e]
let overlap[s1,e1,s2,e2] = some (range[s1,e1] & range[s2,e2])
check {
// [t0,t0] ∩ [t0,tn]
overlap[ first, first, first, last ]
// [t0,t1] ∩ [t1,tn]
overlap[ first, first.next, fi... | Alloy | 4 | c-luu/alloy-specs | utilities/time/overlapping-ranges.als | [
"Apache-2.0"
] |
local c = regentlib.c
local cstring = terralib.includec("string.h")
--Terra list containing a list of values we need.
local config_fields_tiles = terralib.newlist({
--Tilesize options
{field = "t1", type = int64, default_value = 256, cmd_line = "-t1"},
{field = "t2", type = int64, default_value = 512, cmd_line ... | Rouge | 5 | stfc/PSycloneBench | benchmarks/nemo/nemolite2d/manual_versions/regent/read_config.rg | [
"BSD-3-Clause"
] |
// -*- c++ -*- 11ed5b80-aa8b-4129-a5f3-9dcab55bf6a1
#pragma once
#include <iomanip>
| Octave | 0 | yahoo/tunitas-basics | addenda/std/modules/std.oct | [
"Apache-2.0"
] |
# --- Aravis SDK ---
if(NOT HAVE_ARAVIS_API AND PKG_CONFIG_FOUND)
ocv_check_modules(ARAVIS aravis-0.6 QUIET)
if(ARAVIS_FOUND)
set(HAVE_ARAVIS_API TRUE)
endif()
endif()
if(NOT HAVE_ARAVIS_API)
find_path(ARAVIS_INCLUDE "arv.h"
PATHS "${ARAVIS_ROOT}" ENV ARAVIS_ROOT
PATH_SUFFIXES "include/aravis-0.6"
... | CMake | 3 | xipingyan/opencv | modules/videoio/cmake/detect_aravis.cmake | [
"Apache-2.0"
] |
<!DOCTYPE HTML>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="webjars/bootstrap/3.3.7/css/bootstrap.min.css" />
<link rel="stylesheet" href="css/main.css" />
</head>
<!-- this is header --> | HTML | 3 | zeesh49/tutorials | spring-mustache/src/main/resources/templates/layout/header.html | [
"MIT"
] |
CREATE TABLE "public"."test"("id" serial NOT NULL, PRIMARY KEY ("id") );
| SQL | 2 | gh-oss-contributor/graphql-engine-1 | scripts/cli-migrations/v2/test/migrations/1586823136625_create_table_public_test/up.sql | [
"Apache-2.0",
"MIT"
] |
{
"config": {
"abort": {
"already_configured": "\u670d\u52a1\u5df2\u88ab\u914d\u7f6e"
},
"error": {
"cannot_connect": "\u8fde\u63a5\u5931\u8d25",
"invalid_auth": "\u8ba4\u8bc1\u65e0\u6548"
},
"step": {
"user": {
... | JSON | 1 | liangleslie/core | homeassistant/components/syncthing/translations/zh-Hans.json | [
"Apache-2.0"
] |
--TEST--
Bug #74737: Incorrect ReflectionFunction information for mysqli_get_client_info
--EXTENSIONS--
mysqli
--FILE--
<?php
$client_info = mysqli_get_client_info();
$rf = new ReflectionFunction('mysqli_get_client_info');
echo $rf->getNumberOfParameters();
echo PHP_EOL;
echo $rf->getNumberOfRequiredParameters();
?>
--... | PHP | 3 | NathanFreeman/php-src | ext/mysqli/tests/bug74737.phpt | [
"PHP-3.01"
] |
(* ::Package:: *)
NormalizationFactor[n_,m_]:=Sqrt[((n-m)!(2n+1)(2-KroneckerDelta[0,m]))/(n+m)!]
pnrm[n_,m_,sin\[Phi]_]:=NormalizationFactor[n,m]LegendreP[n,m,sin\[Phi]]
(maximizations=Table[Table[Maximize[{Abs[pnrm[n,m,z]],z>=-1,z<=1},z][[1]],{m,0,n}],{n,0,5}]);
N[maximizations,51]//TableForm
Show[
Plot[Evaluat... | Mathematica | 5 | tnuvoletta/Principia | mathematica/associated_legendre_function.wl | [
"MIT"
] |
;;; lang/csharp/config.el -*- lexical-binding: t; -*-
(use-package! csharp-mode
:hook (csharp-mode . rainbow-delimiters-mode)
:config
(set-electric! 'csharp-mode :chars '(?\n ?\}))
(set-rotate-patterns! 'csharp-mode
:symbols '(("public" "protected" "private")
("class" "struct")))
(set-liga... | Emacs Lisp | 4 | leezu/doom-emacs | modules/lang/csharp/config.el | [
"MIT"
] |
//===--- Feature.h - Helpers related to Swift features ----------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | C | 3 | gandhi56/swift | include/swift/Basic/Feature.h | [
"Apache-2.0"
] |
/*
*
* Copyright 2015 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++ | 4 | goodarzysepideh/grpc | test/cpp/microbenchmarks/bm_byte_buffer.cc | [
"Apache-2.0"
] |
#Signature file v4.1
#Version 1.52.0
| Standard ML | 0 | timfel/netbeans | ide/libs.xerces/nbproject/org-netbeans-libs-xerces.sig | [
"Apache-2.0"
] |
CREATE TABLE `tb_zbnbjecfad` (
`col_hiezvpgyuu` timestamp(4) NOT NULL DEFAULT CURRENT_TIMESTAMP(4),
`col_vydoxpfwit` float(202,3) NULL,
`col_kdvvwclils` year(4) DEFAULT '2019',
`col_ovrngczyyk` mediumint(81) unsigned,
UNIQUE `col_hiezvpgyuu` (`col_hiezvpgyuu`,`col_vydoxpfwit`)
) ENGINE=InnoDB DEFAULT CHARSET=... | SQL | 1 | yuanweikang2020/canal | parse/src/test/resources/ddl/alter/test_46.sql | [
"Apache-2.0"
] |
3.5.4.3.1
| Rebol | 1 | semarie/rebol3-oldes | src/boot/version.reb | [
"Apache-2.0"
] |
redo-ifchange vars _version.py
| Stata | 0 | BlameJohnny/redo | redo/version/all.do | [
"Apache-2.0"
] |
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view the
* LICENSE.txt file that was distributed with this source code.
*
* Implementation of this file has been influenced by Zend Diactoros
* @link https://g... | Zephir | 4 | tidytrax/cphalcon | phalcon/Http/Message/AbstractCommon.zep | [
"BSD-3-Clause"
] |
<h1> Tools </h1>
<p>
<table style="margin-top:10px;" cellpadding=1 cellspacing=1>
<tr>
<td><%= ' [ ' -%>
<%= link_to 'Automatically create new submissions en-masse', {:action => 'mass_tools'} -%>
<%= ' ] ' -%> </td>
</tr>
</table>
| RHTML | 3 | andypohl/kent | src/hg/encode/hgEncodeSubmit/app/views/pipeline/show_tools.rhtml | [
"MIT"
] |
******************************************************************
* Author: lauryn brown
* Date:
* Purpose: tokenize lisp input file
* Tectonics: cobc
******************************************************************
IDENTIFICATION DIVISION.
PROGRAM-ID. TOKENIZER.
... | COBOL | 5 | aanunez/Cisp | tokenizer.cbl | [
"MIT"
] |
-- Copyright 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.
name = "AbuseIPDB"
type = "scrape"
function start()
set_rate_limit(1)
end
function vertical(ctx, domain)
local ip = get_ip(ctx, domain)
if (ip == nil or ip ... | Ada | 4 | Elon143/Amass | resources/scripts/scrape/abuseipdb.ads | [
"Apache-2.0"
] |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
namespace Microsoft.AspNetCore.Razor.Language
{
public class TestTagHelperFeature : RazorEngineFeatureBase, ITagHelperFeature
{
pu... | C# | 4 | tomaswesterlund/aspnetcore | src/Razor/test/Microsoft.AspNetCore.Razor.Test.Common/Language/TestTagHelperFeature.cs | [
"MIT"
] |
graph([professor_ability(p0,h),professor_ability(p1,h),professor_ability(p2,m),professor_ability(p3,m),professor_ability(p4,_G131213),professor_ability(p5,h),professor_ability(p6,l),professor_ability(p7,l),professor_ability(p8,m),professor_ability(p9,h),professor_ability(p10,m),professor_ability(p11,h),professor_abilit... | Prolog | 1 | ryandesign/yap | packages/CLPBN/benchmarks/school/missing20.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <string>
#include <cinttypes>
#include "wasm.hh"
auto get_export_global(wasm::ownvec<wasm::Extern>& exports, size_t i) -> wasm::Global* {
if (exports.size() <= i || !exports[i]->global()) {
std::cout << "> Error accessing global export " << i <... | C++ | 4 | rajeev02101987/arangodb | 3rdParty/V8/v7.9.317/third_party/wasm-api/example/global.cc | [
"Apache-2.0"
] |
;###########################################################
; Original by PhiLho
; Modified by skwire
; http://www.autohotkey.com/board/topic/11926-can-you-move-a-listview-column-programmatically/#entry237340
;###########################################################
LVOrder_Set(_Num_Of_Columns, _New_Column_Order, ... | AutoHotkey | 4 | standardgalactic/PuloversMacroCreator | LIB/LVOrder.ahk | [
"Unlicense"
] |
<http://example.org/s> . <http://example.org/p> <http://example.org/o> .
| Turtle | 1 | joshrose/audacity | lib-src/lv2/serd/tests/bad/bad-dot-after-subject.ttl | [
"CC-BY-3.0"
] |
; Copyright 2017 The Crashpad 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 applicabl... | Assembly | 4 | karoyqiu/crashpad | util/win/safe_terminate_process.asm | [
"Apache-2.0"
] |
PREFIX : <http://example.org/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s ?str WHERE {
?s ?p ?str
FILTER STRENDS(?str, "bc")
}
| SPARQL | 4 | yanaspaula/rdf4j | testsuites/sparql/src/main/resources/testcases-sparql-1.1-w3c/functions/ends01.rq | [
"BSD-3-Clause"
] |
#(ly:message "hello from pinclude4") | LilyPond | 0 | HolgerPeters/lyp | spec/user_files/pinclude4.ly | [
"MIT"
] |
integer createdObjectCounter;
integer linkedObjectCounter;
default
{
state_entry()
{
llSay( 0, "Hello, Avatar!");
linkedObjectCounter = 0; // zero the linked object counter.
}
touch_start(integer total_number)
{
if( createdObjectCounter <= 0 ) // nothing has yet been linked,
... | LSL | 5 | MandarinkaTasty/OpenSim | bin/assets/ScriptsAssetSet/KanEd-Test14.lsl | [
"BSD-3-Clause"
] |
//
// NSObject+DoraemonMCSupport.h
// DoraemonKit
//
// Created by litianhao on 2021/8/9.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface NSObject (DoraemonMCSupport)
/**
swizzle 类方法
@param oriSel 原有的方法
@param swiSel swizzle的方法
*/
+ (void)do_mc_swizzleClassMethodWithOriginSel:(SEL)o... | C | 4 | lvyongtao/DoraemonKit | iOS/DoraemonKit/Src/MultiControl/Function/EventSync/Utils/NSObject+DoraemonMCSupport.h | [
"Apache-2.0"
] |
<?Lassoscript
// Last modified 8/31/09 by ECL
// FUNCTIONALITY
// This file clears the server's DNS cache in an attempt to straighten around a problem with the e-mail queue hanging messages
// USAGE
// http://www.yourdomain.com/maintenance/clearcache.lasso
// RESULT
// In limited testing, appears to return no reply ... | Lasso | 4 | subethaedit/SubEthaEd | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/maintenance/clearcache.lasso | [
"MIT"
] |
<div class="class-list">
<ul>
<?php foreach($classes as $className => $class){ ?>
<li> <a href="<?= $this->url($class) ?>"><?= $className ?></a></li>
<?php } ?>
</ul>
</div> | HTML+PHP | 3 | aleksandr-yulin/zephir | templates/Api/themes/zephir/partials/classes.phtml | [
"MIT"
] |
// check-pass
// edition:2018
// compile-flags: -Z span-debug
// aux-build:test-macros.rs
#![feature(rustc_attrs)]
#![no_std] // Don't load unnecessary hygiene information from std
extern crate std;
#[macro_use] extern crate test_macros;
macro_rules! capture_item {
($item:item) => {
#[print_attr]
... | Rust | 4 | mbc-git/rust | src/test/ui/proc-macro/issue-81007-item-attrs.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#tag Interface
Private Interface FormStreamGetter
#tag Method, Flags = &h0
Function GetStream(UserData As Ptr) As Readable
End Function
#tag EndMethod
End Interface
#tag EndInterface
| REALbasic | 3 | charonn0/RB-libcURL | libcURL/FormStreamGetter.rbbas | [
"MIT"
] |
@{
RootModule = 'OpenCover.psm1'
ModuleVersion = '1.1.0.0'
GUID = '4eedcffd-26e8-4172-8aad-9b882c13d370'
Author = 'PowerShell'
CompanyName = 'Microsoft Corporation'
Copyright = 'Copyright (c) Microsoft Corporation.'
Description = 'Module to install OpenCover and run Powershell tests to collect code coverage'
DotNetFram... | PowerShell | 3 | rdtechie/PowerShell | test/tools/OpenCover/OpenCover.psd1 | [
"MIT"
] |
package com.tobykurien.webapps.data
import org.eclipse.xtend.lib.annotations.Accessors
@Accessors class ThirdPartyDomain {
long id
long webappId
String domain
} | Xtend | 3 | sr093906/WebApps | app/src/main/java/com/tobykurien/webapps/data/ThirdPartyDomain.xtend | [
"MIT"
] |
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Do we need additional share metadata included here? -->
{% include partials/analytics %}
<title>{{ title }}</title>
{% include partials/header-includes %}
</head>
<body>
<div ... | Liquid | 4 | noahcb/lit | website/src/_includes/layouts/tutorial.liquid | [
"Apache-2.0"
] |
{
"@context": {"@base": "http://example.com/api/things/1"}
} | JSONLD | 1 | fsteeg/json-ld-api | tests/compact/0076-context.jsonld | [
"W3C"
] |
package com.baeldung.couchbase.spring.service;
import static org.junit.Assert.*;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestExecutionLis... | Java | 4 | zeesh49/tutorials | couchbase/src/test/java/com/baeldung/couchbase/spring/service/ClusterServiceLiveTest.java | [
"MIT"
] |
(kicad_pcb (version 20171130) (host pcbnew 5.1.12)
(general
(thickness 1.6)
(drawings 24)
(tracks 66)
(zones 0)
(modules 30)
(nets 13)
)
(page A4)
(layers
(0 F.Cu signal)
(31 B.Cu signal)
(32 B.Adhes user)
(33 F.Adhes user)
(34 B.Paste user)
(35 F.Paste user)
... | KiCad | 5 | ikeji/mozc-devices | mozc-yunomi/board/base-promicro/base-promicro.kicad_pcb | [
"Apache-2.0"
] |
# -*- coding: binary -*-
module Msf
module RPC
class RPC_Health < RPC_Base
# Returns whether the service is currently healthy and ready to accept
# requests. This endpoint is not authenticated.
#
# @return [Hash]
# @example Here's how you would use this from the client:
# rpc.call('health.check')
def rp... | Ruby | 4 | OsmanDere/metasploit-framework | lib/msf/core/rpc/v10/rpc_health.rb | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
functions {
#include "utils.stan"
#include "gamma2_overdisp.stan"
#include "models.stan"
}
data {
int J;
real<lower=0> tlag_max;
vector<lower=0>[J] dose;
int N[J];
vector<lower=0>[sum(N)] dv;
vector<lower=tlag_max>[sum(N)] time;
vector<lower=0>[J] weight;
real<lower=0> ref;
}
transformed data {
... | Stan | 4 | stan-dev/stancon_talks | 2018-helsinki/Contributed-Talks/weber/stancon18-master/warfarin_pk_tlagMax.stan | [
"CC-BY-4.0",
"BSD-3-Clause"
] |
/*
* Copyright 2014 The Sculptor Project Team, including the original
* author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/L... | Xtend | 4 | sculptor/sculptor | sculptor-generator/sculptor-generator-configuration/src/main/java/org/sculptor/generator/configuration/MutablePropertiesConfigurationProvider.xtend | [
"Apache-2.0"
] |
namespace go common
struct B {
1: optional string b
}
| Thrift | 1 | Jimexist/thrift | lib/go/test/common/b.thrift | [
"Apache-2.0"
] |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
CREATE DATABASE IF NOT EXISTS `lar... | SQL | 3 | zeesh49/tutorials | vraptor/src/main/resources/database.sql | [
"MIT"
] |
print "Hello world!\n";
| Standard ML | 1 | PushpneetSingh/Hello-world | ML/hello.sml | [
"MIT"
] |
query: |
subscription {
articles {
title
content
}
}
| YAML | 3 | gh-oss-contributor/graphql-engine-1 | server/tests-py/queries/subscriptions/multiplexing/articles_query.yaml | [
"Apache-2.0",
"MIT"
] |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {Injector} from '../di/injector';
import {Type} from '../interface/type';
import {stringify} from '../util/str... | TypeScript | 4 | OakMolecule/angular | packages/core/src/linker/component_factory_resolver.ts | [
"MIT"
] |
Red/System [
Title: "Red/System testdynamic link library"
Author: "Nenad Rakocevic & Peter W A Wood"
File: %test-dll1.reds
Rights: "Copyright (C) 2012-2015 Nenad Rakoceivc & Peter W A Wood. All rights reserved."
License: "BSD-3 - https://github.com/red/red/blob/origin/BSD-3-License.txt"
]
i: 56
add-one: fun... | Red | 3 | 0xflotus/red | system/tests/source/units/libtest-dll1.reds | [
"BSL-1.0",
"BSD-3-Clause"
] |
Note 0
Copyright (C) 2017 Jonathan Hough. All rights reserved.
)
cocurrent 'NN'
NB. Pooling layer for Conv2D layers. The assumption is that the previous layer
NB. will hold a 4D tensor (i.e. this layer must eb part of a conv-net.
coclass 'PoolLayer'
coinsert 'NNLayer'
conv=: ;._3
convFunc=: +/@:,@:*
kernelFunc=: ((... | J | 4 | jonghough/jlearn | adv/poollayer.ijs | [
"MIT"
] |
#![feature(generic_const_exprs)]
#![allow(incomplete_features)]
fn test<const N: usize>() -> [u8; N + (|| 42)()] {}
//~^ ERROR overly complex generic constant
fn main() {}
| Rust | 2 | mbc-git/rust | src/test/ui/const-generics/generic_const_exprs/closures.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#!/bin/tcsh
set inputpoolheader=templates/Pool_header.fragment
set inputbtagheader=templates/Btag_header.fragment
set inputtestheader=templates/Test_header.fragment
set inputpoolheader=templates/Pool_footer.fragment
#set inputbtagheader=templates/Btag_footer.fragment
set inputtestheader=templates/Test_footer.fragment... | Tcsh | 2 | ckamtsikis/cmssw | RecoBTag/PerformanceDB/test/process/makeAll.csh | [
"Apache-2.0"
] |
with Ada.Numerics.Discrete_Random;
package Tree_Naive_Pointers is
type Node is private;
type NodePtr is access Node;
type Tree is private;
procedure initialize;
function hasValue(t: in out Tree; x: Integer) return Boolean;
procedure insert(t: in out Tree; x: Integer);
procedure erase(t: in out Tree; x: Integer)... | Ada | 4 | r00ster91/completely-unscientific-benchmarks | ada/tree_naive_pointers.ads | [
"Apache-2.0",
"MIT"
] |
body: [
(declaration_list)
(switch_body)
(enum_member_declaration_list)
] @fold
accessors: [
(accessor_list)
] @fold
initializer: [
(initializer_expression)
] @fold
(block) @fold
| Scheme | 3 | hmac/nvim-treesitter | queries/c_sharp/folds.scm | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.