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 |
|---|---|---|---|---|---|
from fastapi import Depends, FastAPI
from fastapi.requests import HTTPConnection
from fastapi.testclient import TestClient
from starlette.websockets import WebSocket
app = FastAPI()
app.state.value = 42
async def extract_value_from_http_connection(conn: HTTPConnection):
return conn.app.state.value
@app.get("/h... | Python | 4 | Aryabhata-Rootspring/fastapi | tests/test_http_connection_injection.py | [
"MIT"
] |
<?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... | LabVIEW | 3 | JamesBalisciano/gsharp | Verification/TestCases/TestClasses/TestClassesG#.lvproj | [
"BSD-3-Clause"
] |
{-# LANGUAGE CPP, RankNTypes, UndecidableInstances, GADTs, TypeSynonymInstances, FlexibleInstances, MultiParamTypeClasses, FlexibleContexts, ScopedTypeVariables #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Graphics.UI.FLTK.LowLevel.Adjuster
(
-- * Hierarchy
--
-- $hierarchy
-- * Widget Func... | C2hs Haskell | 3 | ericu/fltkhs | src/Graphics/UI/FLTK/LowLevel/Adjuster.chs | [
"MIT"
] |
(assert (= (str.++ "abc" "cdef") "abcde"))
(check-sat)
| SMT | 2 | mauguignard/cbmc | regression/smt2_strings/concat_const_unsat/concat_const_unsat.smt2 | [
"BSD-4-Clause"
] |
exec("swigtest.start", -1);
// Functions
checkequal(foo(int32([1, 2, 3])), "foo:int[SIZE]", "foo(int[SIZE])");
checkequal(foo([1, 2, 3]), "foo:double[SIZE]", "foo(double[SIZE])");
checkequal(foo(["1" "2" "3"]), "foo:char *[SIZE]", "foo(char *[SIZE])");
// Class methods
s = new_Spam();
checkequal(Spam_foo(s, int32([... | Scilab | 3 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/overload_arrays_runme.sci | [
"BSD-3-Clause"
] |
/**
* Unit.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 source code must ... | X10 | 1 | milthorpe/rudra | x10/src/rudra/util/Unit.x10 | [
"BSD-3-Clause"
] |
#raw "template.cpy"
int main()
int a, b;
? a b
! (a + b) | COBOL | 0 | saviour07/CPY | Examples/Simple sum/main.cpy | [
"MIT"
] |
BmaxJ | PureBasic | 0 | pchandrasekaran1595/onnx | onnx/backend/test/data/node/test_clip_default_int8_max/test_data_set_0/input_1.pb | [
"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.
' See the LICENSE file in the project root for more information.
Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols
Friend NotInheritable Class GeneratedNameConstants
Fr... | Visual Basic | 4 | frandesc/roslyn | src/Compilers/VisualBasic/Portable/Symbols/SynthesizedSymbols/GeneratedNameConstants.vb | [
"MIT"
] |
---
title: "ee-palettes"
author: "Gennadii Donchyts, Fedor Baart & Justin Braaten"
output:
html_document:
self_contained: no
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
# About
*ee-palettes* is a module for generating color palettes in [Google Earth Engine](https://earthengine.google... | RMarkdown | 5 | gee-community/ee-palettes | misc/pals_doc.rmd | [
"MIT"
] |
#!/bin/bash
set -e
RED="\033[0;31m"
GREEN="\033[0;32m"
CLEAR="\033[0m"
BRANCHES="devel dashcam dashcam3 release2 release3"
for b in $BRANCHES; do
if git diff --quiet origin/$b origin/$b-staging && [ "$(git rev-parse origin/$b)" = "$(git rev-parse origin/$b-staging)" ]; then
printf "%-10s $GREEN ok $CLEAR\n" "$... | Shell | 4 | shoes22/openpilot | release/verify.sh | [
"MIT"
] |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="Nette Framework web application skeleton">
<title>Nette Application Skeleton</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax... | Latte | 3 | timfel/netbeans | php/php.latte/test/unit/data/testfiles/indent/testInlineLatte.latte | [
"Apache-2.0"
] |
FiniteElementSpace
FiniteElementCollection: H1_2D_P2
VDim: 1
Ordering: 0
0.97999075
0.97537986
0.67892127
0.33269358
0.35484595
0.38605807
0.42445473
0.4568031
0.48429672
0.48928851
0.40892627
0.31474538
0.27113353
0.25399318
0.24929919
0.99707847
0.97553477
0.67478035
0.31536867
0.33773023
0.36545924
0.39895175
0.430... | Grammatical Framework | 0 | ajithvallabai/mfem | miniapps/gslib/triple-pt-1.gf | [
"BSD-3-Clause"
] |
use GPUDist, Random;
config const threadsPerBlock = 16;
config const useRandomSeed = true,
seed = if useRandomSeed then SeedGenerator.currentTime else 314159265;
var m = 64: int(64);
proc main() {
const GPUBlockDist = new GPUDist(rank=1, threadsPerBlock=threadsPerBlock);
const space: domain(1, int(64)... | Chapel | 4 | jhh67/chapel | test/gpu/sidelnik/stencil.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
@0x9ef128e10a8010b8;
struct Nested5
{
x @0 : UInt64;
}
struct Nested4
{
nested2 @0 : Nested5;
}
struct Nested3
{
nested1 @0 : Nested4;
}
struct Nested2
{
three @0 : UInt64;
four @1 : UInt64;
}
struct Nested1
{
one @0 : UInt64;
two @1 : Nested2;
}
struct Message
{
value @0 : UIn... | Cap'n Proto | 3 | pdv-ru/ClickHouse | tests/queries/0_stateless/format_schemas/02030_capnp_tuples.capnp | [
"Apache-2.0"
] |
package com.baeldung.clearsitedata;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@Controller
public class LogoutClearSiteDataController {
@G... | Java | 4 | DBatOWL/tutorials | spring-security-modules/spring-security-web-mvc/src/main/java/com/baeldung/clearsitedata/LogoutClearSiteDataController.java | [
"MIT"
] |
D:/gitee/tmp/tinyriscv/tests/riscv-compliance/build_generated/rv32Zicsr/I-CSRRC-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6... | ObjDump | 3 | DuBirdFly/TinyRISCV_Learn | tests/riscv-compliance/build_generated/rv32Zicsr/I-CSRRC-01.elf.objdump | [
"Apache-2.0"
] |
wraith-master(1)
# NAME
*wraith-master* - The CLI frontend for Wraith Master, a Wraith cooler RGB control application
# SYNOPSIS
*wraith-master* [_SPECIAL-OPTIONS_] [_GLOBAL-OPTIONS_]
*wraith-master* {logo|fan|ring} [_COMPONENT-OPTIONS_] [_GLOBAL-OPTIONS_]
# DESCRIPTION
Wraith Master is a feature-complete graphi... | SuperCollider | 4 | serebit/wraith-master | resources/cli/wraith-master.1.scd | [
"Apache-2.0"
] |
---
title: "Similar packages"
author: Konrad Rudolph
date: "`r Sys.Date()`"
output:
rmarkdown::html_vignette:
toc: true
md_document:
variant: gfm
vignette: >
%\VignetteEngine{knitr::rmarkdown}
%\VignetteIndexEntry{Similar packages}
%\VignetteEncoding{UTF-8}
---
The need for tools to... | RMarkdown | 4 | klmr/box | vignettes/related.rmd | [
"MIT"
] |
;; seqmidi.lsp -- functions to use MIDI files in Nyquist
;
; example call:
;
; (seq-midi my-seq
; (note (chan pitch velocity) (= chan 2) (my-note pitch velocity))
; (ctrl (chan control value) (...))
; (bend (chan value) (...))
; (touch (chan value) (...))
; (prgm (chan value) (setf (aref my-prgm chan) value)... | Common Lisp | 5 | joshrose/audacity | nyquist/seqmidi.lsp | [
"CC-BY-3.0"
] |
import Expression, VariableDecl
Declaration: abstract class extends Expression {
init: func ~declaration (.token) { super(token) }
addTypeArg: func (typeArg: VariableDecl) -> Bool { false }
}
| ooc | 3 | fredrikbryntesson/launchtest | source/rock/middle/Declaration.ooc | [
"MIT"
] |
$first-style = dotted
@import "subdir/foo.import.styl"
.el1 { border-style: $first-style; }
.el2 { border-style: $el2-style; }
.el3 { border-style: $el3-style; }
@import "{local-pack}/p.styl"
.el4 { border-style: $el4-style; }
| Stylus | 3 | joseconstela/meteor | tools/tests/apps/caching-stylus/top.styl | [
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] |
package com.baeldung.circuitbreaker;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.circuitbreaker.CircuitBreaker;
import org.springframework.cloud.client.circuitbreaker.CircuitBreakerFactory;
import org.sp... | Java | 4 | DBatOWL/tutorials | spring-cloud/spring-cloud-circuit-breaker/src/main/java/com/baeldung/circuitbreaker/AlbumService.java | [
"MIT"
] |
.sub-common {
content: 'sub-common';
} | CSS | 0 | Brain777777/taro | packages/taro-mini-runner/src/__tests__/fixtures/mini-split-chunks/src/css/sub-common.css | [
"MIT"
] |
lol iz 71
wtf lol iz liek 71
lmao lol
brb
w00t Hello, World!
rofl lol
lol iz 101
rofl lol
lol iz 108
rofl lol
rofl lol
lool iz 111
rofl lool
loool iz 44
rofl loool
loool iz 32
rofl loool
loool iz 87
rofl loool
rofl lool
lool iz 114
rofl lool
rofl lol
lol iz 100
rofl lol
lol iz 33
rofl lol
stfu
| Omgrofl | 0 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Omgrofl/hello.omgrofl | [
"MIT"
] |
{# Copyright 2016 The Chromium Authors. All rights reserved. #}
{# Use of this source code is governed by a BSD-style license that can be #}
{# found in the LICENSE file. #}
// Generated by //build/android/generate_gradle.py
buildscript {
repositories {
google()
jcenter()
{% if channel == 'canary' ... | HTML+Django | 3 | Chilledheart/naiveproxy | src/build/android/gradle/root.jinja | [
"BSD-3-Clause"
] |
#include <a_samp>
#include <kickbanfix>
#include <zcmd>
#include <easydialog>
#include <sscanf2>
#include <TimestampToDate>
#define COLOR_WHITE (0xFFFFFFFF)
#define COL_WHITE "{FFFFFF}"
#define COLOR_RED (0xFF0400FF)
#define COL_RED "{FF0400}"
#define COLOR_TOMATO (0xFF6347FF)
#define COL_TOMATO "{FF6347}"
#define ... | PAWN | 5 | nathanramli/SA-MP | filterscripts/gban.pwn | [
"Apache-2.0"
] |
/*
*
* Copyright 2018 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | C++ | 4 | echo80313/grpc | test/core/tsi/alts/crypt/gsec_test_util.cc | [
"Apache-2.0"
] |
#[rustfmt::skip]
pub struct Foo {
/// 位
/// ^ Do not remove this tab character.
/// It was required to trigger the ICE.
pub bar: u8,
}
fn main() {}
| Rust | 3 | narpfel/rust-clippy | tests/ui/crashes/ice-5835.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
! This is a demonstration for
! Zemax ZPL macro syntax-highlighting and code management
! AND auto-completion for functions and keywords
! AND calltip function hints
! Developed on Notepad++
! Nice eye-easy color theme ported from Solarized
250.00 ! Numbers are red
NFLD() ! Numeric functions are blue
$COMMENT(5) ! ... | Zimpl | 4 | huxinda/UDL_Zemax_ZPL | demo.zpl | [
"MIT"
] |
<mt:Ignore><__trans phrase="Sets the common meta keywords for each page."></mt:Ignore>
<mt:SetVarBlock name="meta_keywords">movable type,mt,テーマ,theme</mt:SetVarBlock>
<mt:Ignore><__trans phrase="Sets the main and sub colors."></mt:Ignore>
<mt:SetVarBlock name="main_color">#004B9A</mt:SetVarBlock>
<mt:SetVarBlock name=... | MTML | 3 | kanpapa/mt-theme-rimo | themes/rimo/templates/common_variables.mtml | [
"MIT"
] |
;;
;
; Name: stager_sock_reverse
; Qualities: Can Have Nulls
; Version: $Revision: 1626 $
; License:
;
; This file is part of the Metasploit Exploit Framework
; and is subject to the same licenses and copyrights as
; the rest of this package.
;
; Description:
;
; Implement... | Assembly | 3 | OsmanDere/metasploit-framework | external/source/shellcode/bsd/ia32/stager_sock_reverse.asm | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
/home/spinalvm/hdl/riscv-compliance/work//I-SRAI-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
80000000 <_start>:
80000000: 00001097 auipc ra,0x1
80000004: 00008093 mv ra,ra
80000008: 00001117 auipc sp,0x1
8000000c: 01810113 addi sp,sp,24 # 8000... | ObjDump | 2 | cbrune/VexRiscv | src/test/resources/asm/I-SRAI-01.elf.objdump | [
"MIT"
] |
<template>
<div
class="source-code"
ref="sourceCode"
>
</div>
</template>
<script>
import codeMirror, { setMode, setCursorAtLastLine, setTextDirection } from '../../codeMirror'
import { wordCount as getWordCount } from 'muya/lib/utils'
import { mapState } from 'vuex'
import { adjustCursor } from '../../u... | Vue | 5 | TankNee/marktext | src/renderer/components/editorWithTabs/sourceCode.vue | [
"MIT"
] |
INTERFACE zif_abapgit_data_serializer
PUBLIC .
METHODS serialize
IMPORTING
!ii_config TYPE REF TO zif_abapgit_data_config
RETURNING
VALUE(rt_files) TYPE zif_abapgit_definitions=>ty_files_tt
RAISING
zcx_abapgit_exception .
ENDINTERFACE.
| ABAP | 4 | amit3kumar/ABAP_ALL | src/data/zif_abapgit_data_serializer.intf.abap | [
"MIT"
] |
using Gdk;
using Gtk;
class MyApp : Gtk.Window {
public MyApp() {
SourceView view = new SourceView();
TextBuffer buffer = view.get_buffer();
buffer.set_text("Line 1.\nLine 2 (left branch)\nLine 3 (left branch and right branch)\nLine 4");
SourceGutterTextColumn textColumn = new SourceGutterTextColumn("99x", 1... | Vala | 3 | swils/verifast | src/linemarks/hello-vala.vala | [
"MIT"
] |
"""Support for LCN covers."""
from __future__ import annotations
from typing import Any
import pypck
from homeassistant.components.cover import DOMAIN as DOMAIN_COVER, CoverEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_ADDRESS, CONF_DOMAIN, CONF_ENTITIES
from homeas... | Python | 5 | MrDelik/core | homeassistant/components/lcn/cover.py | [
"Apache-2.0"
] |
kind: pipeline
name: application
steps:
- name: build-app
image: plugins/docker
settings:
repo: platyplus/authentication
tags: latest
username:
from_secret: DH_USER
password:
from_secret: DH_PASSWORD
| YAML | 4 | gh-oss-contributor/graphql-engine-1 | community/boilerplates/auth-servers/passportjs-jwt-roles/.drone.yml | [
"Apache-2.0",
"MIT"
] |
diagram "rgb_attribute" {
group vpc [fill="rgb(255,0,0,0.1)"] {
aws.alb load_balancer;
}
}
| Redcode | 2 | ralphtq/cloudgram | tests/fixtures/rgb_attribute.cw | [
"Apache-2.0"
] |
/// Test a serialized interface contains the module real names when -module-alias flag is passed.
///
/// 'Lib' imports module 'XLogging', and 'XLogging' is aliased 'AppleLogging'.
// RUN: %empty-directory(%t)
// RUN: %{python} %utils/split_file.py -o %t %s
/// 1. AppleLogging
/// Create AppleLogging.swiftmodule by a... | Swift | 4 | xjc90s/swift | test/Frontend/module-alias-serialize-swiftinterface.swift | [
"Apache-2.0"
] |
# Compare Redis commadns against Tcl implementations of the same commands.
proc count_bits s {
binary scan $s b* bits
string length [regsub -all {0} $bits {}]
}
proc simulate_bit_op {op args} {
set maxlen 0
set j 0
set count [llength $args]
foreach a $args {
binary scan $a b* bits
... | Tcl | 5 | hzhangse/codis | extern/deprecated/redis-test/tcl/tests/unit/bitops.tcl | [
"MIT"
] |
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head><!-- start favicons snippet, use https://realfavicongenerator.net/ --><link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png"><link rel="icon" type="image/png... | HTML | 4 | SreeniMannem/CustoMSExoPlayer | docs/doc/reference/com/google/android/exoplayer2/trackselection/BaseTrackSelection.html | [
"Apache-2.0"
] |
% Abstract given nonterminals from potential clones - C block version
% Jim Cordy, May 2010
% Using Gnu C grammar
include "c.grm"
% Redefinition for potential clones
redefine compound_statement
{ [IN] [NL]
[compound_statement_body] [EX]
} [NL]
end redefine
define potential_clone
[compound_state... | TXL | 4 | coder-chenzhi/SQA | SourcererCC/parser/java/txl/c-abstract-blocks.txl | [
"Apache-2.0"
] |
Account = Origin mimic do(
transfer = method(amount, from: self, to:,
from balance -= amount
to balance += amount
)
print = method(
"<Account name: #{name} balance: #{balance}>" println
)
)
Xiao = Account with(name: "Xiao", balance: 142.0)
Jiajun = Account with(name: "Jiajun", balance: 45.7)
Acc... | Ioke | 3 | olabini/ioke | examples/multilang/chinese/account_en.ik | [
"ICU",
"MIT"
] |
structure Tokens = Tokens
type pos = int
type svalue = Tokens.svalue
type ('a,'b) token = ('a,'b) Tokens.token
type lexresult= (svalue,pos) token
val pos = ref 0
fun eof () = Tokens.EOF(!pos,!pos)
fun error (e,l : int,_) = TextIO.output (TextIO.stdOut, String.concat[
"line ", (Int.toString l), ": ", e, "\n"
])... | Lex | 4 | athas/mlk | src/Tools/ml-yacc/examples/calc/calc.lex | [
"MIT"
] |
functions {
real calculate_binomial(//pars
real p_avg,
// data
real total,
int suc
)
{
real ans;
ans = lchoose(total, suc) + suc * log(p_avg) + (total - suc ) * log(1-p_avg);
return(ans);
}
real model_log_dens(
int[] deaths_slice,
... | Stan | 5 | viniciuszendron/covid19model | covid19AgeModel/inst/ifr-by-age/base_age_prior_ifr_200820a15_cmdstanv.stan | [
"MIT"
] |
/data_section_start_ram/ { data_start = $1 }
/data_section_end_ram/ { data_end = $1 }
/bss_section_start_ram/ { bss_start = $1 }
/bss_section_end_ram/ { bss_end = $1 }
/heap_start/ { heap_start = $1 }
/heap_end/ { heap_end = $1 }
/stack_start/ { stack_start = $1 }
/stack_end/ { stack_end = $1 }
function log_section(na... | Awk | 4 | VersiraSec/epsilon-cfw | build/device/memory_map.awk | [
"FSFAP"
] |
<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="a" uri="/WEB-INF/app.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="res" uri="http://www.unidal.org/webres" %>
<%@ taglib prefix="w" uri="http://www.unidal.org/web/core" %>
<jsp:useBean id="ctx" type="com.... | Java Server Pages | 3 | woozhijun/cat | cat-home/src/main/webapp/jsp/system/server/serverConfigUpdate.jsp | [
"Apache-2.0"
] |
= ${product.name.full} Admin REST API
== Overview
This is a REST API reference for the ${product.name.full} Admin
=== Version information
Version: 1
=== URI scheme
Host: localhost:8080
BasePath: /auth
Schemes: HTTP
| AsciiDoc | 2 | rmartinc/keycloak | services/src/docs/asciidoc/overview.adoc | [
"Apache-2.0"
] |
At: "016.hac":4:
parse error: syntax error
parser stacks:
state value
#STATE# (null)
#STATE# (null)
#STATE# keyword: template [3:1..8]
#STATE# < [3:10]
#STATE# list<(template-formal-decl)>: (template-formal-decl) ... [3:11..24]
#STATE# keyword: defproc [4:1..7]
in state #STATE#, possible rules are:
template_formal_d... | Bison | 1 | broken-wheel/hacktist | hackt_docker/hackt/test/parser/process/016.stderr.bison | [
"MIT"
] |
(ns lt.plugins.user
(:require [lt.object :as object]
[lt.objs.tabs :as tabs]
[lt.objs.command :as cmd])
(:require-macros [lt.macros :refer [defui behavior]]))
;; UI to be associated with an object
(defui hello-panel [this]
[:h1 "Hello World!"])
;; Define an object prototype
(object/objec... | Clojure | 4 | sam-aldis/LightTable | deploy/core/User/src/lt/plugins/user.cljs | [
"MIT"
] |
/*
* 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 | 4 | yiou362/spring-boot-2.2.9.RELEASE | spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/integration/IntegrationGraphEndpointTests.java | [
"Apache-2.0"
] |
import mforwarded_pure_enum2
export mforwarded_pure_enum2.PureEnum
| Nimrod | 0 | JohnAD/Nim | tests/modules/mforwarded_pure_enum.nim | [
"MIT"
] |
#%RAML 1.0
title: Example API
/fj239vbnJH39NVosjhgbvFWEFbodjkf:
post:
body:
application/json:
schema: |
{ "type": "string" }
| RAML | 2 | mulesoft/osprey | test/fixtures/error-handler-example.raml | [
"Apache-2.0"
] |
D:/gitee/tmp/tinyriscv/tests/riscv-compliance/build_generated/rv32Zicsr/I-CSRRCI-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t... | ObjDump | 3 | DuBirdFly/TinyRISCV_Learn | tests/riscv-compliance/build_generated/rv32Zicsr/I-CSRRCI-01.elf.objdump | [
"Apache-2.0"
] |
<%@ page contentType="text/html; charset=utf-8" isELIgnored="false" trimDirectiveWhitespaces="true" %>
<jsp:useBean id="ctx" type="com.dianping.cat.system.page.project.Context" scope="request"/>
<jsp:useBean id="payload" type="com.dianping.cat.system.page.project.Payload" scope="request"/>
<jsp:useBean id="model" type=... | Java Server Pages | 1 | woozhijun/cat | cat-home/src/main/webapp/jsp/system/project.jsp | [
"Apache-2.0"
] |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf8">
<title>App.open event test</title>
</head>
<body>
<h1 id='result'>App.open event test</h1>
<script type="text/javascript">
nw.App.on('open', function(cmd){
document.getElementById('result').innerHTML = cmd;
});... | HTML | 3 | namaljayathunga/nw.js | test/remoting/app-open-event/index.html | [
"MIT"
] |
#lang scribble/doc
@(require "common.rkt"
(for-label errortrace/errortrace-lib compiler/cm planet/config
racket/pretty drracket/tool drracket/tool-lib))
@title[#:tag "languages" #:style 'toc]{Languages}
This chapter describes some of the languages that are available for
use within DrRac... | Racket | 5 | rrthomas/drracket | drracket/scribblings/drracket/languages.scrbl | [
"Apache-2.0",
"MIT"
] |
(defun ss () (osc c5))
(defun tt () (stretch 2 (snd-tapv (ss) 1.1 (scale *d* (lfo 10)) 2.2)))
(setf *d* .01)
(defun g () (play (tt)))
;(set-sound-srate 10)
;(set-control-srate 10)
(defun rr () (stretch 10 (ramp)))
(defun ll () (stretch 10 (lfo .5)))
(defun xx () (snd-tapv (rr) 1.1 (ll) 2.2))
(defun h () (snd-sample... | Common Lisp | 4 | joshrose/audacity | nyquist/test.lsp | [
"CC-BY-3.0"
] |
fileFormatVersion: 2
guid: a5f54f019e6510541ac61eeec96aa82d
folderAsset: yes
timeCreated: 1531456012
licenseType: Pro
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| Unity3D Asset | 0 | samotarnik/grpc | src/csharp/unitypackage/unitypackage_skeleton/Plugins/Grpc.Core/runtimes/ios.meta | [
"Apache-2.0"
] |
.two-factor-auth-container
.form-group.string.required
- if app_activated && sms_activated
= render partial: 'shared/two_factor_app_and_sms'
- elsif app_activated
= render partial: 'shared/two_factor_app'
- elsif sms_activated
= render partial: 'shared/two_factor_sms'
| Slim | 4 | gsmlg/peatio | app/views/shared/_two_factor_auth.html.slim | [
"MIT"
] |
unique template features/testclusterfeature/config; | Pan | 1 | ned21/aquilon | tests/broker/data/utsandbox/hacluster/features/testclusterfeature/config.pan | [
"Apache-2.0"
] |
terraform {
backend "local" {
path = "pool.tfstate"
}
}
locals {
name = var.name
k3s_cluster_secret = var.k3s_cluster_secret
}
provider "aws" {
region = "us-east-2"
profile = "rancher-eng"
}
resource "aws_security_group" "k3s" {
name = "${local.name}-pool"
vpc_id = data.aws_vpc... | HCL | 3 | TReZ42/k3s | tests/perf/agents/main.tf | [
"Apache-2.0"
] |
" Vim syntax file
" Language: UnrealScript
" Maintainer: Mark Ferrell <major@chaoticdreams.org>
" URL: ftp://ftp.chaoticdreams.org/pub/ut/vim/uc.vim
" Credits: Based on the java.vim syntax file by Claudio Fleiner
" Last change: 2003 May 31
" Please check :help uc.vim for comments on some of the options available.
" ... | VimL | 4 | uga-rosa/neovim | runtime/syntax/uc.vim | [
"Vim"
] |
-- @shouldFailWith OrphanKindDeclaration
module Main where
type Foo :: Type
data Foo = Foo Int
| PureScript | 3 | andys8/purescript | tests/purs/failing/OrphanKindDeclaration2.purs | [
"BSD-3-Clause"
] |
--TEST--
Phar front controller index.php relocate zip-based
--INI--
phar.require_hash=0
--EXTENSIONS--
phar
zlib
--ENV--
SCRIPT_NAME=/frontcontroller5.phar.php
REQUEST_URI=/frontcontroller5.phar.php/
PATH_INFO=/
--FILE_EXTERNAL--
files/frontcontroller.phar.zip
--EXPECTHEADERS--
Status: 301 Moved Permanently
Location: /... | PHP | 2 | NathanFreeman/php-src | ext/phar/tests/zip/frontcontroller5.phar.phpt | [
"PHP-3.01"
] |
package jadx.gui.ui.dialog;
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dialog;
import java.awt.Dimension;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import ja... | Java | 4 | zhongqingsong/jadx | jadx-gui/src/main/java/jadx/gui/ui/dialog/CommentDialog.java | [
"Apache-2.0"
] |
<div class="modal hidden" id="modal-toc">
<button class="close"><img src="../assets/cross.svg" alt="close" title="close modal"></button>
<h3>TABLE OF CONTENTS</h3>
<p></p>
<b></b>
<section id="tableofcontents"></section>
</div>
| Kit | 2 | pws1453/web-client | source/imports/app/docs-modal-toc.kit | [
"MIT"
] |
: main
"foo" string?
3.14 string?
#5 string?
5 string?
;
| MUF | 1 | revarbat/mufsim | tests/stringp.muf | [
"BSD-2-Clause"
] |
package foo
private open class A {
open fun f() {}
} | Groff | 4 | qussarah/declare | jps-plugin/testData/incremental/classHierarchyAffected/multiModuleSimple/module1_A.kt.new.1 | [
"Apache-2.0"
] |
;----------------- Include Algorithms Library --------------------------------
__includes [ "A-star-LT.nls" ]
;--------------- Customizable Reports -------------------
; These reports must be customized in order to solve different problems using the
; same A* function.
; Rules are represented by using pairs [ "repr... | NetLogo | 4 | fsancho/IA | 03. Informed Search/A-star Problem Solver LT - Numerical Puzzle.nlogo | [
"MIT"
] |
/*!
* Copyright 2021 XGBoost contributors
*/
#ifndef XGBOOST_DATA_HISTOGRAM_CUT_FORMAT_H_
#define XGBOOST_DATA_HISTOGRAM_CUT_FORMAT_H_
#include "../common/hist_util.h"
namespace xgboost {
namespace data {
inline bool ReadHistogramCuts(common::HistogramCuts *cuts, dmlc::SeekStream *fi) {
if (!fi->Read(&cuts->cut_v... | C | 3 | GinkoBalboa/xgboost | src/data/histogram_cut_format.h | [
"Apache-2.0"
] |
CREATE TABLE `q_system_update` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`version` varchar(255) DEFAULT '',
`timepoint` datetime NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; | SQL | 3 | WizardXiao/tidb | br/tests/lightning_tool_241/data/qyjc.q_system_update-schema.sql | [
"Apache-2.0"
] |
#pragma once
#include <ATen/ATen.h>
#include <c10/util/Optional.h>
#include <torch/csrc/autograd/generated/variable_factories.h>
#include <torch/csrc/autograd/variable.h>
namespace torch {
// NOTE [ Exposing declarations in `at::` to `torch::` ]
//
// The following line `using namespace at;` is responsible for exp... | C | 4 | Hacky-DH/pytorch | torch/csrc/api/include/torch/types.h | [
"Intel"
] |
// REQUIRES: VENDOR=apple
// REQUIRES: OS=macosx
// RUN: %empty-directory(%t.module-cache)
// RUN: %target-swift-frontend -emit-module -o %t.foo.swiftmodule -module-cache-path %t.module-cache -I %S/Inputs/CHeaders -I %S/Inputs/Swift %s -target %target-cpu-apple-macosx10.14
// Without -clang-target, we build two X.pcm... | Swift | 3 | gandhi56/swift | test/ScanDependencies/clang-target.swift | [
"Apache-2.0"
] |
FORMAT: 1A
# My API
## Resource 204 without Body [/204-without-body]
### Retrieve Representation [GET]
+ Response 204
## Resource 205 without Body [/205-without-body]
### Retrieve Representation [GET]
+ Response 205
## Resource 204 with Body [/204-with-body]
### Retrieve Representation [GET]
+ Response 204 (text... | API Blueprint | 3 | tomoyamachi/dredd | packages/dredd/test/fixtures/response/204-205-body.apib | [
"MIT"
] |
import _normalize from "normalize-path"
import memoize from "memoizee"
const normalize = memoize(_normalize)
export default normalize
| TypeScript | 4 | waltercruz/gatsby | packages/gatsby/src/redux/reducers/normalize-path.ts | [
"MIT"
] |
(defrule startup
=>
(assert (stage (value duplicate))
(line (p1 50003) (p2 60003))
(line (p1 30005) (p2 30006))
(line (p1 80005) (p2 80006))
(line (p1 50008) (p2 60008))
(line (p1 0) (p2 20000))
(line (p1 20000) (p2 30000))
(line (p1 300... | CLIPS | 1 | smarr/CLIPS | examples/waltz/waltz37.clp | [
"Apache-2.0"
] |
-- Copyright (c) 2015 Jakob von Raumer. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Jakob von Raumer
-- Category of sets
import .basic types.pi trunc
open truncation sigma sigma.ops pi function eq morphism precategory
open equiv
namespace precategory
uni... | Lean | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Lean/set.hlean | [
"MIT"
] |
[Desktop Entry]
Name=Qt4 Linguist
Comment=Add translations to Qt4 applications
Exec=linguist-qt4
Icon=linguist-qt4
MimeType=text/vnd.trolltech.linguist;application/x-linguist;
Terminal=false
Encoding=UTF-8
Type=Application
Categories=Qt;Development;
| desktop | 1 | cyberqueen-meg/blackarch | packages/qt4/linguist-qt4.desktop | [
"BSD-3-Clause"
] |
Tuple mimic!(Mixins Comparing)
Tuple createFrom = method(
"Returns a tuple, assuming the arguments are the right length for it",
args,
Tuple)
Tuple asTuple = method(self)
Tuple Two = Tuple mimic
Tuple Two private:initializeWith(nil, nil)
Tuple Two first = Tuple private:accessor(0)
Tuple Two _1 = Tuple ... | Ioke | 4 | olabini/ioke | src/builtin/D37_tuple.ik | [
"ICU",
"MIT"
] |
Gramatika
0 $accept: program $end
1 program: program statement '\n'
2 | program error '\n'
3 | %empty
4 statement: expression
5 | VARIABLE '=' expression
6 expression: INTEGER
7 | VARIABLE
8 | expression '+' expression
9 | ... | Bison | 4 | YKG/y | testdata/dev/error.y.bison | [
"BSD-3-Clause"
] |
type $atyp <[10] f32>
type $aaaa <f32>
var $fff <$atyp>
func $foo ( var %i i32 )i32
func $fact (
var %n i32, var %m f32) i32 {
regassign i32 %987 (constval i32 '0')
if (ne i32 i32 (regread i32 %987, constval i32 10)) {
eval (regread i32 %987)
call &foo(
sub i32 (regread i32 %1, constval i32 1))
r... | Maple | 3 | harmonyos-mirror/OpenArkCompiler-test | test/testsuite/irbuild_test/I0062-mapleall-irbuild-edge-pregs/Main.mpl | [
"MulanPSL-1.0"
] |
FORMAT: 1A
HOST: https://owner-api.teslamotors.com
# Tesla Model S JSON API
# ⚠️ ⚠️ ⚠️ ⚠️
# This site has moved! [https://tesla-api.timdorr.com/](https://tesla-api.timdorr.com/)
# ⚠️ ⚠️ ⚠️ ⚠️
| API Blueprint | 0 | jasminsehic/tesla-api | apiary.apib | [
"MIT"
] |
{{ EmicDriverExtended.spin, v1.0
Copyright (c) 2010 Austin Bowen
*See end of file for terms of use*
This is a driver for the Emic Text-to-Speech module.
This program is completely self-contained, not requiring
imported objects for communication. It also does not use
an additional COG for operat... | Propeller Spin | 5 | deets/propeller | libraries/community/p1/All/Emic Text-to-Speech Driver, Extended/EmicDriverExtended.spin | [
"MIT"
] |
version https://git-lfs.github.com/spec/v1
oid sha256:e064832e37f56bd7effcfba73a25428750887b79c9da09259397899d76062217
size 899773262
| Octave | 0 | dust-engine/dust | test.oct | [
"RSA-MD"
] |
discard """
output: '''
foo
'''
"""
block: # #12672
var a = @[1]
let i = 1
inc a[i-1]
var b: seq[int]
doAssertRaises(IndexDefect): inc b[0]
doAssertRaises(IndexDefect): inc b[i-1]
var x: seq[seq[int]]
doAssertRaises(IndexDefect): # not TypeError
inc x[0][i-1]
block: # #14087
type Obj = objec... | Nimrod | 3 | JohnAD/Nim | tests/js/ttempgen.nim | [
"MIT"
] |
"""The Wallbox integration."""
from __future__ import annotations
from datetime import timedelta
from http import HTTPStatus
import logging
from typing import Any
import requests
from wallbox import Wallbox
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_PASSWORD, CONF_USERN... | Python | 5 | liangleslie/core | homeassistant/components/wallbox/__init__.py | [
"Apache-2.0"
] |
*** Setting ***
Documentation Normal test cases
Force Tags f1
Default Tags d1 d2
Metadata Something My Value
*** Test Case ***
Suite1 First
[Tags] t1
Log Suite1_First
Sleep 0.01 Make sure elapsed time > 0
Suite1 Second
[Tags] t2
Log Suite1_Second
T... | RobotFramework | 4 | phil-davis/robotframework | atest/testdata/misc/suites/tsuite1.robot | [
"ECL-2.0",
"Apache-2.0"
] |
0 code_t "proc*"
1 uint32_t "unsigned int"
2 ptr(TOP) "void*"
3 reg32_t "dword"
4 ptr(struct(0:num32_t,4:ptr(TOP),8:ptr(TOP))) "_SCOPETABLE_ENTRY*"
1 uint32_t "UINT"
3 reg32_t "HANDLE"
5 ptr(struct(0:reg32_t,8:reg32_t,12:reg32_t,16:reg32_t,20:reg32_t,24:reg32_t,28:reg32_t)) "Struct_781*"
6 ptr(num8_t) "char*"
1 uint32_... | BlitzBasic | 1 | matt-noonan/retypd-data | data/plink.exe.decls | [
"MIT"
] |
/*
* Copyright (C) 2020 Netronome Systems, Inc. All rights reserved.
*
* @file actions_l2_switch_host_bc_mc_test.uc
* @brief Tests the L2 switch (host) action with broadcast
* and multicast traffic
*
* SPDX-License-Identifier: BSD-2-Clause
*/
;TEST_INIT_EXEC nfp-reg mereg:i32.m... | UnrealScript | 3 | rodinluo/nic-firmware | test/datapath/actions_l2_switch_host_bc_mc_test.uc | [
"BSD-2-Clause"
] |
#+TITLE: lang/ledger
#+DATE: October 13, 2019
#+SINCE: v2.0.4
#+STARTUP: inlineimages
* Table of Contents :TOC_3:noexport:
- [[#description][Description]]
- [[#module-flags][Module Flags]]
- [[#plugins][Plugins]]
- [[#hacks][Hacks]]
- [[#prerequisites][Prerequisites]]
- [[#features][Features]]
- [[#config... | Org | 4 | leezu/doom-emacs | modules/lang/ledger/README.org | [
"MIT"
] |
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct Uniforms {
half4 colorGreen;
half4 colorRed;
};
struct Inputs {
};
struct Outputs {
half4 sk_FragColor [[color(0)]];
};
thread bool operator==(const half3x3 left, const half3x3 right);
thread bool operator!=(const half3x3 left, co... | Metal | 4 | stayf/skia | tests/sksl/shared/MatrixScalarSplat.metal | [
"BSD-3-Clause"
] |
{{data}}
{% for item in data.test %}{{item.title}}{% endfor %} | Liquid | 3 | stevenosloan/middleman | middleman-core/fixtures/liquid-app/source/data2.html.liquid | [
"MIT"
] |
# A very minimal sftp server for integration testing rclone
FROM alpine:latest
# User rclone, password password
RUN \
apk add openssh && \
ssh-keygen -A && \
adduser -D rclone && \
echo "rclone:password" | chpasswd
ENTRYPOINT [ "/usr/sbin/sshd", "-D" ]
| Dockerfile | 4 | wlerin/rclone | fstest/testserver/images/test-sftp-openssh/Dockerfile | [
"MIT"
] |
module.exports = [
[
/export 'default' \(imported as 'Default1'\) was not found in '\.\/direct-export'/
]
];
| JavaScript | 1 | 1shenxi/webpack | test/cases/side-effects/dynamic-reexports/warnings.js | [
"MIT"
] |
/*
* 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 "License"); you may ... | Scala | 4 | kesavanvt/spark | sql/core/src/test/scala/org/apache/spark/sql/execution/command/ShowNamespacesParserSuite.scala | [
"BSD-2-Clause",
"Apache-2.0",
"CC0-1.0",
"MIT",
"MIT-0",
"ECL-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
# generated from colcon_core/shell/template/hook_set_value.sh.em
export @(name)="@(value)"
| EmberScript | 1 | esteve/colcon-core | colcon_core/shell/template/hook_set_value.sh.em | [
"Apache-2.0"
] |
#pragma TextEncoding = "UTF-8"
#pragma rtGlobals=3
#include "SIDAM_InfoBar"
#include "SIDAM_Range"
#include "SIDAM_Hook"
#ifndef SIDAMshowProc
#pragma hide = 1
#endif
Function SIDAMBackwardCompatibility()
// Set the temporary folder to root:Packages:SIDAM
updateDF("")
// Rename KM*Hook to SIDAM*Ho... | IGOR Pro | 5 | yuksk/SIDAM | src/SIDAM/func/SIDAM_Compatibility.ipf | [
"MIT"
] |
DROP VIEW IF EXISTS hdb_catalog.hdb_table_info_agg;
DROP VIEW IF EXISTS hdb_catalog.hdb_function_info_agg; | SQL | 2 | gh-oss-contributor/graphql-engine-1 | server/src-rsr/migrations/14_to_13.sql | [
"Apache-2.0",
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.