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 |
|---|---|---|---|---|---|
0 reg32_t "dword"
1 code_t "proc*"
2 num32_t "int"
3 uint32_t "size_t"
4 ptr(struct(0:num32_t,4:ptr(num8_t),8:ptr(num8_t),12:ptr(num8_t),16:ptr(num8_t),20:ptr(num8_t),24:ptr(num8_t),28:ptr(num8_t),32:ptr(num8_t),36:ptr(num8_t),40:ptr(num8_t),44:ptr(num8_t),48:ptr(struct(0:ptr(TOP),4:ptr(struct(0:num32_t,4:ptr(reg8_t),8... | BlitzBasic | 1 | matt-noonan/retypd-data | data/ptx.decls | [
"MIT"
] |
fn part(_: u16) -> u32 {
1
}
fn main() {
for n in 100_000.. {
//~^ ERROR: literal out of range for `u16`
let _ = part(n);
}
}
| Rust | 1 | Eric-Arellano/rust | src/test/ui/issues/issue-63364.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
{layout '@layout.latte'}
{block title}Function {$function->getName()}{/block}
{block breadcrumbs}
{include "partial/breadcrumbs.latte",
"type" => "Function",
"namespace" => $function->getNamespaceName(),
"name" => $function->getShortName()
}
{/block}
{block content}
<h1 n:class=... | Latte | 4 | pujak17/tets | packages/ThemeDefault/src/function.latte | [
"MIT"
] |
#\2d- {} | CSS | 0 | vjpr/swc | css/parser/tests/fixture/esbuild/misc/s6SbuS-mSQuuf1eQzngAFw/input.css | [
"Apache-2.0",
"MIT"
] |
#!/bin/bash
../../../../dist/bin/run_konan defFileDependencies -target tvos_arm64 -target tvos_x64 *.def
| Shell | 1 | Mu-L/kotlin | kotlin-native/platformLibs/src/platform/tvos/set_depends.sh | [
"ECL-2.0",
"Apache-2.0"
] |
%option reentrant
%option 8bit
%option prefix="Aql"
%option bison-locations
%option bison-bridge
%option yylineno
%option noyywrap nounput batch
%x BACKTICK
%x FORWARDTICK
%x SINGLE_QUOTE
%x DOUBLE_QUOTE
%x COMMENT_SINGLE
%x COMMENT_MULTI
%top{
#include <stdint.h>
#if (_MSC_VER >= 1)
// fix ret_val = EOB_ACT_LAST_MATC... | LLVM | 5 | elfringham/arangodb | arangod/Aql/tokens.ll | [
"BSL-1.0",
"Apache-2.0"
] |
" Vim syntax file
" Language: DNS/BIND Zone File
" This has been replaced by the bindzone syntax
:runtime! syntax/bindzone.vim
| VimL | 2 | uga-rosa/neovim | runtime/syntax/dns.vim | [
"Vim"
] |
/* IP Group Telephony system based around prior art in Her Yeri Parlak
Named after a minor artifact in Soyutlanma, and before that from Turkish
"burdayım" = "I am here", this allows a moderate number of people to
communicate on a global channel, while a small number of people (or several
such groups) communicate on pr... | Pike | 5 | stephenangelico/shed | burdayim.pike | [
"MIT"
] |
/**
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/rdf/sparql/InferenceHandler.x10 | [
"Apache-2.0"
] |
resource "aws_instance" "webserver_backend" {
count = length(var.availability_zones)
ami = "${data.aws_ami.ubuntu.id}"
instance_type = "t2.micro"
subnet_id = "${aws_subnet.test_elb[count.index].id}"
user_data = "${data.local_file.install_webserver.content}"
associate_public_ip_address = ... | HCL | 4 | tetianakravchenko/beats | x-pack/filebeat/module/aws/elb/_meta/terraform/instance.tf | [
"ECL-2.0",
"Apache-2.0"
] |
double precision function dqwgts(x,a,b,alfa,beta,integr)
c***begin prologue dqwgts
c***refer to dqk15w
c***routines called (none)
c***revision date 810101 (yymmdd)
c***keywords weight function, algebraico-logarithmic
c end-point singularities
c***author piessens,robert,appl. math. & progr. div.... | FORTRAN | 4 | Ennosigaeon/scipy | scipy/integrate/quadpack/dqwgts.f | [
"BSD-3-Clause"
] |
module Main where
import Prelude
import Effect.Console (log)
import Test.Assert (assert)
import Foo as Foo.Bar
main = do
assert $ 4 Foo.Bar.-#- 10 == 33
assert $ Foo.Bar.(-#-) 4 10 == 33
log "Done"
| PureScript | 3 | andys8/purescript | tests/purs/passing/QualifiedOperators.purs | [
"BSD-3-Clause"
] |
"""Diagnostics support for Nanoleaf."""
from __future__ import annotations
from aionanoleaf import Nanoleaf
from homeassistant.components.diagnostics import async_redact_data
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_TOKEN
from homeassistant.core import HomeAssistant
f... | Python | 4 | MrDelik/core | homeassistant/components/nanoleaf/diagnostics.py | [
"Apache-2.0"
] |
scriptname PN_NeedsManager extends Quest
; PRIVATE VARIABLES -------------------------------------------------------------------------------
; Time in game hours
float _curTime = 0.0
float _lastIncreaseTime = 0.0
; Timers in real seconds
float _hungerSoundTimer = 0.0
float _thirstSoundTimer = 0.0
float _fati... | Papyrus | 4 | pragasette/skyui | misc/PrimaryNeeds/Scripts/Source/PN_NeedsManager.psc | [
"Unlicense",
"MIT"
] |
-- Copyright 2018 Stanford University
--
-- 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... | Rouge | 5 | elliottslaughter/regent-tutorial | Tasks/2a.rg | [
"Apache-2.0"
] |
# https://github.com/graphql/graphql-js/pull/2733/files
type Query {
someField(
nonDeprecated: String
deprecated: String @deprecated(reason: "Removed in 1.0")
deprecatedWithEmptyReason: String @deprecated(reason: "")
): String
}
type Query {
someField(
nonDeprecated: String
deprecated: Stri... | GraphQL | 3 | tumido/prettier | tests/format/graphql/deprecation/directives.graphql | [
"MIT"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M19 5H5v14h14V5zm-5 12h-2V9h-2V7h4v10z",
opacity: ".3"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "M5 21h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2... | JavaScript | 4 | good-gym/material-ui | packages/material-ui-icons/lib/esm/LooksOneTwoTone.js | [
"MIT"
] |
<!DOCTYPE html>
<html>
<head>
<title>Baeldung HTTP/2 Client in Jetty</title>
</head>
<body>
<h2>HTTP/2 Demo</h2>
<div>
<img src="images/homepage-latest_articles.jpg" alt="latest articles" />
<img src="images/homepage-rest_with_spring.jpg" alt="rest with spring" />
<img src="images/ho... | HTML | 1 | DBatOWL/tutorials | libraries-server-2/src/main/webapp/http2.html | [
"MIT"
] |
=begin
%%{
machine simple_tokenizer;
action MyTs {
my_ts = p
}
action MyTe {
my_te = p
}
action Emit {
emit data[my_ts...my_te].pack('c*')
my_ts = nil
my_te = nil
}
foo = 'STARTFOO' any+ >MyTs :>> 'ENDFOO' >MyTe %Emit;
main := ( foo | any+ )*;
}%%
=end
# Scans a file for "S... | Ragel in Ruby Host | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Ragel/simple_tokenizer.rl | [
"MIT"
] |
#!/bin/jconsole
x=.>0".&.>;:}:stdin''
x=.(I.x~:0){x
x=.2}.x+(_1|.!.0 x)+(_2|.!.0 x)
echo+/(1|.!.0 x)>x
| J | 0 | abeaumont/competitive-programming | advent-of-code/2021/day1/part2.ijs | [
"WTFPL"
] |
pub extern "C" fn f() -> i32 { 1 }
pub extern "C" fn g() -> i32 { 2 }
pub fn get_f() -> extern "C" fn() -> i32 { f }
pub fn get_g() -> extern "C" fn() -> i32 { g }
| Rust | 3 | mbc-git/rust | src/test/ui/extern/auxiliary/extern-take-value.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
FORMAT: 1A
# Machines API
# Group Machines
# Machines collection [/machines]
## Get Machines [GET]
- Response 200 (application/json; charset=utf-8)
+ Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "array",
"items": {
... | API Blueprint | 3 | tomoyamachi/dredd | packages/dredd/test/fixtures/json-schema-draft-7.apib | [
"MIT"
] |
# System calls
extern sys_trap;
extern sys_blkwrite;
extern sys_blkread;
extern sys_random;
extern sys_serflags;
extern sys_cmdargs;
extern sys_osbase;
extern sys_copyfd;
extern sys_unlink;
extern sys_stat;
extern sys_readdir;
extern sys_opendir;
extern sys_mkdir;
extern sys_chdir;
extern sys_rename;
extern sys_sync;
... | Slash | 4 | jes/scamp-cpu | sys/lib/sys.sl | [
"Unlicense"
] |
<!doctype html>
<html>
<head>
<!-- Prevent the browser from requesting any favicon. -->
<link rel="icon" href="data:,">
</head>
<body>
<h2>Params</h2>
<form>
Cols:
<input type="number" name="cols" placeholder="cols" value="40">
<br>
Rows:
<input type="number" name="rows" placeholder="rows" ... | HTML | 3 | duluca/angular | modules/benchmarks/src/largetable/ng2_switch/index.html | [
"MIT"
] |
<%@ WebHandler Language="C#" CodeBehind="EchoWebSocket.ashx.cs" Class="WebServer.EchoWebSocket" %>
| ASP | 1 | pyracanda/runtime | src/libraries/Common/tests/System/Net/Prerequisites/Servers/CoreFxNetCloudService/WebServer/WebSocket/EchoWebSocket.ashx | [
"MIT"
] |
import 'package:jaguar_serializer/jaguar_serializer.dart';
{{#models}}
{{#model}}
{{#imports}}import 'package:{{pubName}}/model/{{.}}.dart';
{{/imports}}
{{#isEnum}}{{>enum}}{{/isEnum}}{{^isEnum}}{{>class}}{{/isEnum}}
{{/model}}
{{/models}}
| HTML+Django | 3 | derBiggi/swagger-codegen | modules/swagger-codegen/src/main/resources/dart-jaguar/model.mustache | [
"Apache-2.0"
] |
%~dp0\..\..\..\bin\x64\Debug\OpenConsole.exe cmd.exe /K te.exe %~dp0\..\..\..\bin\x64\Debug\Conhost.API.Tests.dll %*
| Batchfile | 0 | Ghosty141/Terminal | src/host/ft_host/runtest.bat | [
"MIT"
] |
# This file is a script for GAP and tests a list of polynomials in hexadecimal
# for irreducibility over F_2
# create x over F_2 = GF(2)
x := Indeterminate(GF(2), "x");
# test if polynomial is irreducible, i.e. the number of factors is one
IrredPoly := function (poly)
return (Length(Factors(poly)) = 1);
end;;
# ... | GAP | 5 | swaitw/restic | doc/test_irreducibility.gap | [
"BSD-2-Clause"
] |
package com.serverless;
import com.amazonaws.services.lambda.runtime.Context;
import com.amazonaws.services.lambda.runtime.RequestHandler;
import com.amazonaws.services.lambda.runtime.events.CodeCommitEvent;
public class RequestHandlerCodeCommitEvent implements RequestHandler<CodeCommitEvent, Object> {
public stati... | Java | 3 | Arun-kc/serverless | lib/plugins/aws/invokeLocal/runtimeWrappers/java/src/test/java/com/serverless/RequestHandlerCodeCommitEvent.java | [
"MIT"
] |
from .module_loader import import_module
from .cwrap_common import set_declaration_defaults, sort_by_number_of_args
| Python | 1 | Hacky-DH/pytorch | tools/shared/__init__.py | [
"Intel"
] |
using Uno.Collections;
namespace Fuse.Text
{
class SinglyLinkedList<T> : IEnumerable<T>
{
public T Value { get; private set; }
public SinglyLinkedList<T> Next;
public SinglyLinkedList(T value, SinglyLinkedList<T> next = null)
{
Value = value;
Next = next;
}
public IEnumerator<T> GetEnumerator()
... | Uno | 5 | helilabs/fuselibs | Source/Fuse.Text/Implementation/SinglyLinkedList.uno | [
"MIT"
] |
--TEST--
Multi-line match
--FILE--
<?php
var_dump(preg_match_all('/^.{2,3}$/', "aei\nou", $dummy));
var_dump(preg_match_all('/^.{2,3}$/', "aei\nou\n", $dummy));
var_dump(preg_match_all('/^.{2,3}$/m', "aei\nou", $dummy));
var_dump(preg_match_all('/^.{2,3}$/m', "aei\nou\n", $dummy));
echo "done\n";
?>
--EXPECT--
int(0)... | PHP | 4 | guomoumou123/php5.5.10 | ext/pcre/tests/multiline.phpt | [
"PHP-3.01"
] |
// @target: ES6
async function fAsync() {
// Without explicit type annotation, this is just an array.
return [1, true];
}
async function fAsyncExplicit(): Promise<[number, boolean]> {
// This is contextually typed as a tuple.
return [1, true];
}
// https://github.com/Microsoft/TypeScript/is... | TypeScript | 5 | nilamjadhav/TypeScript | tests/cases/compiler/asyncFunctionReturnType.ts | [
"Apache-2.0"
] |
#include "caffe2/opt/custom/concat_elim.h"
#include "caffe2/core/logging.h"
#include "caffe2/opt/nql/graphmatcher.h"
#include "caffe2/opt/passes.h"
#include "nomnigraph/Representations/NeuralNet.h"
#include "nomnigraph/Support/Common.h"
#include "nomnigraph/Transformations/SubgraphMatcher.h"
namespace caffe2 {
namespa... | C++ | 3 | Hacky-DH/pytorch | caffe2/opt/custom/concat_elim.cc | [
"Intel"
] |
//@module: commonjs
// @sourcemap: true
export module m {
export class c {
}
}
import a = m.c;
export import b = m.c;
var x = new a();
var y = new b(); | TypeScript | 3 | nilamjadhav/TypeScript | tests/cases/compiler/sourceMapValidationImport.ts | [
"Apache-2.0"
] |
Boutput_2J | PureBasic | 1 | pchandrasekaran1595/onnx | onnx/backend/test/data/node/test_split_zero_size_splits/test_data_set_0/output_1.pb | [
"Apache-2.0"
] |
"""Support for Modbus Coil and Discrete Input sensors."""
from __future__ import annotations
from datetime import datetime
import logging
from typing import Any
from homeassistant.components.binary_sensor import BinarySensorEntity
from homeassistant.const import (
CONF_BINARY_SENSORS,
CONF_DEVICE_CLASS,
C... | Python | 4 | MrDelik/core | homeassistant/components/modbus/binary_sensor.py | [
"Apache-2.0"
] |
#summary What is a LifecycleCallback and how to use it.
= Introduction =
Since release 1.4.3 it is possible to register !LifecycleCallback (aka callback). A callback is an interface exposing methods which are invoked during different wro4j processing phases. This might be useful if you want to perform some kind of ben... | MediaWiki | 4 | supakiad/wro4j | docs/RegisteringCallbacks.wiki | [
"Apache-2.0"
] |
-- this script tests that it is possible to get the url property of the current article
-- it uses system event accessibility scripting to set up the main window
-- one needs to authorize scripting accessibility control in the System Preferences'
-- Privacy and security pane
try
tell application "NetNewsWire"
... | AppleScript | 4 | bubudrc/NetNewsWire | Tests/NetNewsWireTests/ScriptingTests/scripts/testCurrentArticleIsNil.applescript | [
"MIT"
] |
// Copyright (c) 2017 Massachusetts Institute of Technology
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restriction, including without limitation the rights to use, cop... | Bluespec | 4 | faddat/Flute | src_Core/Near_Mem_VM_WB_L1_L2/src_LLCache/procs/lib/MemLoaderIF.bsv | [
"Apache-2.0"
] |
' requestfont.bmx
Import MaxGui.Drivers
Strict
AppTitle = "RequestFont() Example"
Const teststring:String = "The quick brown fox jumps over the lazy dog."
Local window:TGadget = CreateWindow(AppTitle,50,50,300,200,Null,WINDOW_TITLEBAR|WINDOW_STATUS|WINDOW_RESIZABLE)
SetMinWindowSize window, GadgetWidth(window), ... | BlitzMax | 4 | jabdoa2/blitzmax | mod/maxgui.mod/maxgui.mod/doc/requestfont.bmx | [
"Zlib"
] |
# EDGELIB project file (edit at your own risk)
# Copyright (c) 2004-2017 Elements Interactive B.V.
# -----------------------------------------
# General project properties
projectname = "animate3d"
caption = "Animate 3D"
vendor = "Elements Interactive B.V."
vendorshort = "EI"
domain = "nl.e... | Ecere Projects | 2 | elementsinteractive/edgelib | samples/Animate3D/workspace_eide_edge3d/animate3d.epj | [
"BSD-3-Clause"
] |
drop table users if exists;
create table users (last_name varchar(50) not null);
| SQL | 2 | spreoW/spring-framework | spring-r2dbc/src/test/resources/org/springframework/r2dbc/connection/init/db-schema.sql | [
"Apache-2.0"
] |
fun implicitRef() {
A.x?.length
} | Groff | 1 | AndrewReitz/kotlin | jps-plugin/testData/incremental/classHierarchyAffected/companionObjectMemberChanged/companionReferenceImplicit.kt.new.2 | [
"ECL-2.0",
"Apache-2.0"
] |
// Tencent is pleased to support the open source community by making Mars available.
// Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
// Licensed under the MIT License (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License... | Objective-C++ | 4 | jonetomtom/mars | samples/benchmark/benchmark_afnetworking_mars.mm | [
"BSD-2-Clause",
"Apache-2.0"
] |
#tag Class
Protected Class AVAudioRecorder
Inherits NSObject
#tag Method, Flags = &h0
Function AveragePowerForChannel(channelNumber as UInteger) As Double
declare function averagePowerForChannel_ lib AVFoundationLib selector "averagePowerForChannel:" (obj_id as ptr, channelNumber as UInteger) as Double
Retur... | Xojo | 3 | kingj5/iOSKit | Modules/AVFoundation/AVAudioRecorder.xojo_code | [
"MIT"
] |
<!doctype html>
<html>
<body>
<h6 class="border-bottom border-gray pb-2 mb-0">Something went wrong</h6>
<div class="media text-muted pt-3">
<i class="fas fa-door-closed fa-2x fa-fw mr-2 spring-green" data-fa-transform="shrink-4"></i>
<p class="media-body pb-3 mb-0 small lh-125 border-bottom bord... | HTML | 2 | DBatOWL/tutorials | spring-security-modules/spring-security-saml/src/main/resources/templates/error.html | [
"MIT"
] |
//
// This file is part of the Simutrans project under the Artistic License.
// (see LICENSE.txt)
//
//
// Tests for bridge building / removal
//
function test_way_bridge_build_ground()
{
local pl = player_x(0)
local bridge_desc = bridge_desc_x.get_available_bridges(wt_road)[0]
local remover = comma... | Squirrel | 5 | Andarix/simutrans_nightly | tests/tests/test_way_bridge.nut | [
"Artistic-1.0"
] |
-- Copyright 2021 Stanford University
--
-- 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... | Rouge | 5 | mmccarty/legion | language/examples/separate_compilation.rg | [
"Apache-2.0"
] |
(***********************************************************
BSS SOUNDWEB LONDON PROTOCOL
TESTS
Website: https://github.com/amclain/amx-lib-bss
These functions test the library's functionality.
************************************************************)
PROGRAM_NAME='bss-test... | NetLinx | 2 | marselle001/amx-lib-bss | tests/bss-tests2.axs | [
"Apache-2.0"
] |
Note 0
Copyright (C) 2017 Jonathan Hough. All rights reserved.
)
NB. Capsule Layer
coclass 'CapsLayer'
coinsert 'NNLayer'v
create=: 3 : 0
'shape ks activation alpha'=: y
assert. 4 = # shape NB. wxhxdinxdout
assert. 2 3 -: $ ks
assert. alpha > 0
filter=: 1 %~ +: 0.5-~ ? shape $ 0 NB. TODO create random
a=. setActiv... | J | 2 | jonghough/jlearn | adv/capslayer.ijs | [
"MIT"
] |
// Copyright (c) 2014 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/browser/ui/win/notify_icon.h"
#include "shell/browser/ui/win/notify_icon_host.h"
namespace electron {
// static
TrayIcon* TrayIcon::Create(absl::optional<UUID> guid) ... | C++ | 3 | TarunavBA/electron | shell/browser/ui/tray_icon_win.cc | [
"MIT"
] |
// Copyright 2010-2015 RethinkDB, all rights reserved.
#include "rdb_protocol/terms/terms.hpp"
#include "rdb_protocol/error.hpp"
#include "rdb_protocol/op.hpp"
#include "math.hpp"
namespace ql {
class var_term_t : public term_t {
public:
var_term_t(compile_env_t *env, const raw_term_t &term)
: term_t... | C++ | 4 | zadcha/rethinkdb | src/rdb_protocol/terms/var.cc | [
"Apache-2.0"
] |
pub main
coginit(0, @entry, 0)
dat
org 0
entry
_set
add objptr, #9
rdbyte _var01, objptr
sub objptr, #5
wrlong _var01, objptr
sub objptr, #4
_set_ret
ret
objptr
long @@@objmem
COG_BSS_START
fit 496
objmem
long 0[3]
org COG_BSS_START
_var01
res 1
fit 496
| Parrot Assembly | 2 | archivest/spin2cpp | Test/Expect/stest065.pasm | [
"MIT"
] |
.Container {
width: 100%;
flex: 1;
padding: 0.5rem;
}
.PatternPath {
stroke: var(--color-commit-did-not-render-pattern);
stroke-width: 1;
}
| CSS | 4 | vegYY/react | packages/react-devtools-shared/src/devtools/views/Profiler/CommitFlamegraph.css | [
"MIT"
] |
require './assertions'
require './parserAssertions'
terms = require '../lib/parser/codeGenerator'.code generator ()
loc = {
first line 1
last line 1
first column 3
last column 8
}
describe 'macros'
describe 'if'
it 'if'
(macro expression 'if (true) @{a}') should contain fields ... | PogoScript | 4 | featurist/pogoscript | test/macrosSpec.pogo | [
"BSD-2-Clause"
] |
CLASS ltcl_test DEFINITION FOR TESTING DURATION SHORT RISK LEVEL HARMLESS FINAL.
PRIVATE SECTION.
DATA mv_json TYPE string.
DATA ms_config TYPE zif_abapgit_data_config=>ty_config.
METHODS setup.
METHODS to_json FOR TESTING RAISING cx_static_check.
METHODS from_json
IMPORTING it_files TYPE ... | ABAP | 5 | amit3kumar/ABAP_ALL | src/data/zcl_abapgit_data_config.clas.testclasses.abap | [
"MIT"
] |
FORMAT: 1A
# Binary API
## Resource [/binary]
### Send Binary Data [POST]
+ Request (application/octet-stream)
+ Response 200 (application/json; charset=utf-8)
+ Body
{"test": "OK"}
| API Blueprint | 2 | tomoyamachi/dredd | packages/dredd/test/fixtures/request/application-octet-stream.apib | [
"MIT"
] |
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include "textflag.h"
// func block(dig *digest, p []byte)
TEXT ·block(SB), NOSPLIT|NOFRAME, $0-32
MOVBZ ·useAsm(SB), R4
LMG dig+0(FP), R1, R3 ... | GAS | 2 | Havoc-OS/androidprebuilts_go_linux-x86 | src/crypto/sha1/sha1block_s390x.s | [
"BSD-3-Clause"
] |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
</head>
<body>
<h1>Hello World!</h1>
<p>Keep an eye on the dock (Mac) or taskbar (Windows, Unity) for this application!</p>
... | HTML | 2 | TarunavBA/electron | docs/fiddles/features/progress-bar/index.html | [
"MIT"
] |
create table td (
id int not null primary key clustered,
name varchar(20) not null,
size bigint not null,
unique key uni_name(name)
);
| SQL | 3 | suryatmodulus/tidb | br/tests/lightning_duplicate_detection/data/dup_detect.td-schema.sql | [
"Apache-2.0",
"BSD-3-Clause"
] |
--TEST--
Operations on uninitialized tidy object
--EXTENSIONS--
tidy
--FILE--
<?php
$tidy = new tidy;
try {
var_dump($tidy->getHtmlVer());
} catch (Error $e) {
echo $e->getMessage(), "\n";
}
try {
var_dump($tidy->isXhtml());
} catch (Error $e) {
echo $e->getMessage(), "\n";
}
try {
var_dump($tidy->... | PHP | 4 | NathanFreeman/php-src | ext/tidy/tests/uninitialized.phpt | [
"PHP-3.01"
] |
/* Copyright 2021 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 | computationalartist/tensorflow | tensorflow/core/grappler/optimizers/data/make_deterministic.h | [
"Apache-2.0"
] |
<mt:Ignore>
# =======================
#
# コンフィグ-検索結果
#
# =======================
</mt:Ignore>
<mt:Ignore>
# -----------------------
# Search Result
# -----------------------
</mt:Ignore>
<mt:CurrentPage setvar="ec_search_current_page" note="検索結果の現在のページ数" />
<mt:IfStraightSearch>
<mt:SetVarBlock name="ec_archive... | MTML | 4 | webbingstudio/mt_theme_echo_bootstrap | dist/themes/echo_bootstrap/templates/config_search_results.mtml | [
"MIT"
] |
=pod
=head1 NAME
EVP_KDF-X942-ASN1 - The X9.42-2003 asn1 EVP_KDF implementation
=head1 DESCRIPTION
The EVP_KDF-X942-ASN1 algorithm implements the key derivation function
X942KDF-ASN1. It is used by DH KeyAgreement, to derive a key using input such as
a shared secret key and other info. The other info is DER encoded... | Pod | 5 | pmesnier/openssl | doc/man7/EVP_KDF-X942-ASN1.pod | [
"Apache-2.0"
] |
insert into tf values (6, '26634405', 2766688356459756352);
insert into tf values (4, 'c1eee960', 360295164351965585);
insert into tf values (1, 'bc20d613', 3326413653961467336);
insert into tf values (14, '3d5a7823', 7595043549211606767);
insert into tf values (7, '53d487c7', 4221264734661766949);
insert into tf value... | SQL | 3 | cuishuang/tidb | br/tests/lightning_duplicate_detection/data/dup_detect.tf.0.sql | [
"Apache-2.0"
] |
; -- CodeDll.iss --
;
; This script shows how to call functions in external DLLs (like Windows API functions)
; at runtime and how to perform direct callbacks from these functions to functions
; in the script.
[Setup]
AppName=My Program
AppVersion=1.5
WizardStyle=modern
DefaultDirName={autopf}\My Program
Di... | Inno Setup | 5 | Patriccollu/issrc | Examples/CodeDll.iss | [
"FSFAP"
] |
use std::alloc::System;
use std::collections::VecDeque;
#[global_allocator]
static ALLOCATOR: System = System;
fn main() {
let mut deque = VecDeque::with_capacity(32);
deque.push_front(0);
deque.reserve(31);
deque.push_back(0);
}
| Rust | 4 | Eric-Arellano/rust | src/test/run-pass-valgrind/issue-44800.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
module Feature.Query.DeleteSpec where
import Network.Wai (Application)
import Network.HTTP.Types
import Test.Hspec hiding (pendingWith)
import Test.Hspec.Wai
import Test.Hspec.Wai.JSON
import Protolude hiding (get)
import SpecHelper
spec :: SpecWith ((), Application)
spec =
describe "Deleting" $ do
... | Haskell | 5 | fjf2002/postgrest | test/spec/Feature/Query/DeleteSpec.hs | [
"MIT"
] |
# while using circle we'll use circle's base image.
FROM alpine:3.14.2@sha256:e1c082e3d3c45cccac829840a25941e679c25d438cc8412c2fa221cf1a824e6a AS setup_ci_alpine
WORKDIR /diem
COPY rust-toolchain /diem/rust-toolchain
COPY scripts/dev_setup.sh /diem/scripts/dev_setup.sh
ENV HOME "/github/home"
#Needed for sccache to f... | Dockerfile | 4 | PragmaTwice/diem | docker/ci/alpine/Dockerfile | [
"Apache-2.0"
] |
---
layout: default
---
<!-- head -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inconsolata">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.css">
<!-- head -->
{% if page.permalink contains '/docs' %}
{% assign items = site.data.docs %}
{% assign cate... | HTML | 4 | ionurboz/quill | docs/_layouts/docs.html | [
"BSD-3-Clause"
] |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet SYSTEM "xslt-second-level-import.xsl.dtd">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="xslt-second-level-import2.xsl" />
<xsl:template match="/">
<script>
if (window.testRunner)
... | XSLT | 3 | zealoussnow/chromium | third_party/blink/web_tests/fast/xsl/resources/xslt-second-level-import.xsl | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
" Polish letters under VIM >= 6
" Maintainer: HS6_06 <hs6_06@o2.pl>
" Last changed: 2005 Jan 12
" Current version: 1.0.2
" History:
" 2005.01.12 1.0.2 keymap_name shortened, added Current version, History
" 2005.01.10 1.0.1 un*x line ends for all files
" 2005.01.09 1.0.0 Initial release
let encoding = &enc
if enc... | VimL | 3 | uga-rosa/neovim | runtime/keymap/polish-slash.vim | [
"Vim"
] |
(ns hacker-scripts.hangover
(:import
(com.twilio Twilio)
(com.twilio.rest.api.v2010.account Message)
(com.twilio.type PhoneNumber)))
(def acc-sid "my twilio account SID")
(def acc-tkn "my twilio secret token")
(def my-num (PhoneNumber. "+10001112222"))
(def boss-num (PhoneNumber. "+19998887777"))
(def ... | Clojure | 4 | johndemlon/hacker-scripts | clojure/hangover.clj | [
"WTFPL"
] |
;;;; The LFE API for the "Bevin" backend (send/receive MIDI via the CLI tools
;;;; by Geert Bevin.
;;;;
;;;; Note that this backend is 100% MIDI, so you won't see 'midi' in any of the
;;;; function names ;-)
(defmodule bv
;; Deviceless/channelless API
(export
(devices 0)
(version 0))
;; MIDI "stream"-based ... | LFE | 4 | ut-proj/undertone | src/bv.lfe | [
"Apache-2.0"
] |
REBOL [
System: "REBOL [R3] Language Interpreter and Run-time Environment"
Title: "REBOL 3 Boot Base: Series Functions"
Rights: {
Copyright 2012 REBOL Technologies
REBOL is a trademark of REBOL Technologies
}
License: {
Licensed under the Apache License, Version 2.0
See: http://www.apache.org/licenses/LICE... | Rebol | 5 | semarie/rebol3-oldes | src/mezz/base-series.reb | [
"Apache-2.0"
] |
#!/usr/bin/env pike
/* Multi-purpose git hook
Run this script from your top-level git directory and it'll install itself. Then,
it provides two services:
1) One-file commits can be tagged to show what file/module they're working on.
The first time you do such a commit, identify the file with a tag, followed by
a colo... | Pike | 5 | stephenangelico/shed | githook.pike | [
"MIT"
] |
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Why don't we use the classification error as a metric to grow a decision tree?"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"... | Jupyter Notebook | 5 | Gopalbansal8106/python-machine-learning-book | faq/decisiontree-error-vs-entropy/decisiontree-error-vs-entropy.ipynb | [
"MIT"
] |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports Microsoft.CodeAnalysis.VisualBasic.Completion.Providers
Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.U... | Visual Basic | 4 | ffMathy/roslyn | src/EditorFeatures/VisualBasicTest/Completion/CompletionProviders/ObjectCreationCompletionProviderTests.vb | [
"MIT"
] |
#include <ATen/ATen.h>
#include <ATen/Config.h>
#include <ATen/CPUFunctions.h>
#include <ATen/NamedTensorUtils.h>
#include <ATen/native/sparse/ParamUtils.h>
#include <ATen/NativeFunctions.h>
#include <ATen/Parallel.h>
#include <ATen/SparseTensorUtils.h>
#include <c10/util/accumulate.h>
#include <map>
namespace at {
n... | C++ | 5 | xiaohanhuang/pytorch | aten/src/ATen/native/sparse/SoftMax.cpp | [
"Intel"
] |
>+ Set c1 = 1
>++ Set c2 = 2
>+++ Set c3 = 3
>++++ Set c4 = 4
[->>>>>>>>+<<<<<<<<] Move the value of c4 to c12
<
[->>>>>>>>>+<<<<<<<<<] Add the value of c3 to c12
Print the value of ... | Brainfuck | 4 | mikiec84/code-for-blog | 2017/bfjit/tests/testcases/movedataloops.bf | [
"Unlicense"
] |
$ write sys$output "*** TEST SYMBOL ASSIGN ***"
$ s1 := test1
$ s2 :== test2
$ s3 = -1
$ s4 = 1
$ s5 = s1
$ s6 == s1
$ sho symbol /global
$ sho symbol /local
$ sho symbol s1
$ delete /symbol s1 /log
$ delete /symbol /local /log /all
$ ... | Clean | 2 | MichelValentin/PC-DCL | examples/symbol.dcl | [
"BSD-3-Clause"
] |
/*
* Copyright 2012-2021 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Java | 4 | techAi007/spring-boot | spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/features/testing/springbootapplications/withmockenvironment/MyMockMvcTests.java | [
"Apache-2.0"
] |
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct Inputs {
float2 vLocalCoord_Stage0 [[user(locn0)]];
};
struct Outputs {
half4 sk_FragColor [[color(0)]];
};
struct uniformBuffer {
float4 sk_RTAdjust;
half2 uIncrement_Stage1_c0;
char pad0[12];
array<half4, 7> uKernel_... | Metal | 3 | fourgrad/skia | tests/sksl/shared/GaussianBlur.metal | [
"BSD-3-Clause"
] |
/*
* Copyright 2012-2019 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Java | 5 | yiou362/spring-boot-2.2.9.RELEASE | spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/source/AliasedConfigurationPropertySource.java | [
"Apache-2.0"
] |
{-# LANGUAGE CPP, DisambiguateRecordFields, OverloadedStrings, TypeApplications, ImplicitParams #-}
{-# OPTIONS_GHC -Wno-unused-imports #-}
module Main (main) where
import qualified System.Path as Path
import Test.Tasty
import TreeSitter.Python
import qualified Language.Python.AST as Py
import ... | Haskell | 4 | quentinLeDilavrec/semantic | semantic-python/test/PreciseTest.hs | [
"MIT"
] |
#*****************************************************************************
# *
# Make file for VMS *
# Author : J.Jansen (joukj@hrem.nano.tudelft.nl) *
# Da... | Module Management System | 4 | madanagopaltcomcast/pxCore | examples/pxScene2d/external/WinSparkle/3rdparty/wxWidgets/samples/notebook/descrip.mms | [
"Apache-2.0"
] |
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: distutils-r1.eclass
# @MAINTAINER:
# Python team <python@gentoo.org>
# @AUTHOR:
# Author: Michał Górny <mgorny@gentoo.org>
# Based on the work of: Krzysztof Pawlik <nelchael@gentoo.org>
# @SUPPORTED_EA... | Gentoo Eclass | 5 | NighttimeDriver50000/Sabayon-Packages | local_overlay/eclass/distutils-r1.eclass | [
"MIT"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_canUseSWRadio
Author: NKey
Checks whether the radio would be able to be used at passed depth.
Arguments:
0: Unit <OBJECT>
1: Isolated and inside <BOOL>
2: Can Speak <BOOL>
3: Eye height ASL <NUMBER>
Return Value:
radio can be used <BO... | SQF | 4 | MrDj200/task-force-arma-3-radio | addons/core/functions/fnc_canUseSWRadio.sqf | [
"RSA-MD"
] |
a { value: url(\,) } | CSS | 0 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/dCIAD8Ab98J4V9rGaJvZlw/input.css | [
"Apache-2.0"
] |
#![deny(clippy::index_refutable_slice)]
enum SomeEnum<T> {
One(T),
Two(T),
Three(T),
Four(T),
}
fn lintable_examples() {
// Try with reference
let slice: Option<&[u32]> = Some(&[1, 2, 3]);
if let Some(slice) = slice {
println!("{}", slice[0]);
}
// Try with copy
let sl... | Rust | 4 | ohno418/rust | src/tools/clippy/tests/ui/index_refutable_slice/if_let_slice_binding.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
/*
* Author: Jiří Janoušek <janousek.jiri@gmail.com>
*
* To the extent possible under law, author has waived all
* copyright and related or neighboring rights to this file.
* http://creativecommons.org/publicdomain/zero/1.0/
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS... | Vala | 4 | xcffl/nuvolaruntime | src/tests/GraphicsTest.vala | [
"BSD-2-Clause"
] |
using AMQPClient
const VIRTUALHOST = "/"
const HOST = "127.0.0.1"
function receive()
# 1. Create a connection to the localhost or 127.0.0.1 of virtualhost '/'
connection(; virtualhost=VIRTUALHOST, host=HOST) do conn
# 2. Create a channel to send messages
channel(conn, AMQPClient.UNUSED_CHANNEL... | Julia | 5 | muhammadali8767/rabbit_php | julia/receive_logs.jl | [
"Apache-2.0"
] |
<template>
<app-ad
class="v-app-ad--sponsored"
compact
max-width="512"
v-bind="$attrs"
>
<v-hover>
<template #default="{ hover }">
<a v-bind="adAttrs">
<v-sheet
class="overflow-none position-relative d-flex px-4 py-2 align-center"
color="transparen... | Vue | 4 | mark-gene/vuetify | packages/docs/src/components/ad/Sponsored.vue | [
"MIT"
] |
label.string.required.col-xs-8.control-label for="two_factor_otp"
abbr == "* "
span = t('two_factors.auth.google_app')
.col-xs-14
.input-group style="width:100%;"
input.two_factor_auth_type type="hidden" name="two_factor[type]" value="app"
input.string.required.form-control id="two_factor_otp" name=... | Slim | 3 | gsmlg/peatio | app/views/shared/_two_factor_app.html.slim | [
"MIT"
] |
"""Component to interface with locks that can be controlled remotely."""
from __future__ import annotations
from dataclasses import dataclass
from datetime import timedelta
from enum import IntEnum
import functools as ft
import logging
from typing import Any, final
import voluptuous as vol
from homeassistant.config_... | Python | 5 | mtarjoianu/core | homeassistant/components/lock/__init__.py | [
"Apache-2.0"
] |
.syntax--comment {
color: @syntax-comment-color;
font-style: italic;
.syntax--markup.syntax--link {
color: @syntax-comment-color;
}
}
.syntax--string {
color: @cyan;
&.syntax--regexp {
color: @red;
}
}
.syntax--constant {
&.syntax--numeric {
color: @magenta;
}
&.syntax--language {
... | Less | 2 | davidbertsch/atom | packages/solarized-light-syntax/styles/syntax/_base.less | [
"MIT"
] |
(*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(* Define SSA form and the concept of variable liveness, and then show how SSA
* simplifies it *)
open HolKernel boolLib bossLib ... | Standard ML | 5 | JacobBarthelmeh/infer | sledge/semantics/llvm_ssaScript.sml | [
"MIT"
] |
exec("swigtest.start", -1);
f = new_Foo();
b = new_Bar();
v = malloc_void(32);
// Functions
checkequal(foo(int32(3)), "foo:int", "foo(int)");
checkequal(foo(3), "foo:double", "foo(double)");
checkequal(foo("hello"), "foo:char *", "foo(char* )");
checkequal(foo(f), "foo:Foo *", "foo(Foo *)");
checkequal(foo(b), "foo:... | Scilab | 4 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/overload_simple_runme.sci | [
"BSD-3-Clause"
] |
--TEST--
SplFixedArray::toArray with empty array
--CREDITS--
Gabriel Caruso (carusogabriel34@gmail.com)
--FILE--
<?php var_dump((new SplFixedArray())->toArray()); ?>
--EXPECT--
array(0) {
}
| PHP | 3 | thiagooak/php-src | ext/spl/tests/SplFixedArray_toArray_empty.phpt | [
"PHP-3.01"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.