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
namespace OpenAPI open UserApiHandlerParams open System open Giraffe open Microsoft.AspNetCore.Http module UserApiServiceInterface = //#region Service interface type IUserApiService = abstract member CreateUser:HttpContext -> CreateUserArgs->CreateUserResult abstract member CreateUsersWithAr...
F#
4
MalcolmScoffable/openapi-generator
samples/server/petstore/fsharp-giraffe/OpenAPI/src/api/UserApiServiceInterface.fs
[ "Apache-2.0" ]
""" 01 02 03 04 """ callable Transform[of TIn, TOut](x as TIn) as TOut def Map[of TIn, TOut](source as (TIn), func as Transform[of TIn, TOut]): arr = array(TOut, source.Length) for i in range(source.Length): arr[i] = func(source[i]) return arr ints = (1,2,3,4) strings = Map(ints, {i | i.ToString("00")}) print ...
Boo
4
popcatalin81/boo
tests/testcases/integration/closures/closure-inference-6.boo
[ "BSD-3-Clause" ]
50 5 0 0 0 1 7 6 3 7 5 2 4 1 [0] [0] [0] [0] [0] [0] [0] 1 1 4 12 16 39 29 [5] [11] [-2] [1] 2 1 1 45 [13] 3 1 3 24 37 19 [12] [0] [26] 4 1 4 25 44 23 17 [-1] [11] [2] [-3] 5 1 4 34 29 12 19 [-8] [14] [10] [12] 6 1 2 38 44 [18] [5] 7 1 1 47 [6] 8 1 3 42 31 24 [6] [-2] [1] 9 1 6 25 48 50 43 36 49 [27] [30] [10...
Eagle
0
klorel/or-tools
examples/data/rcpsp/single_mode_max_delay/ubo_50/psp53.sch
[ "Apache-2.0" ]
# Test for : allowed @prefix : <http://example.org/ron> . [] : [] . : : : .
Turtle
2
joshrose/audacity
lib-src/lv2/sord/tests/test-13.ttl
[ "CC-BY-3.0" ]
USING: arrays assocs english help.markup kernel math sequences strings tools.test ; FROM: english => a/an ; { "record" } [ "records" singularize ] unit-test { "record" } [ "record" singularize ] unit-test { "baby" } [ "babies" singularize ] unit-test { "baby" } [ "baby" singularize ] unit-test { "FOOT" } [ ...
Factor
3
alex-ilin/factor
basis/english/english-tests.factor
[ "BSD-2-Clause" ]
import Data.Vect import Data.Fin Vect_ext : (v : Vect n a) -> (w : Vect n a) -> ((i : Fin n) -> index i v = index i w) -> v = w Weird : (v: Vect n a) -> v = v Weird v = Vect_ext ?hole0 ?hole1 ?hole2 f : Bool -> Nat f True = 0 f True = ?help f False = 1
Idris
3
Qqwy/Idris2-Erlang
idris2/tests/idris2/reg003/Holes.idr
[ "BSD-3-Clause" ]
#tag Module Protected Module InternetConnectionWFS #tag Method, Flags = &h1 Protected Function Configured() As Boolean return Bitwise.BitAnd( Query, &h40 ) <> 0 End Function #tag EndMethod #tag Method, Flags = &h1 Protected Function LAN() As Boolean return Bitwise.BitAnd( Query, &h2 ) <> 0 End Funct...
REALbasic
4
bskrtich/WFS
Windows Functionality Suite/Networking/Modules/InternetConnectionWFS.rbbas
[ "MIT" ]
;;; 26 lines 14 code 4 comments 8 blanks (import (srfi srfi-1)) ; for reduce ;; Constant (define %pi 3.14159265358979323846) #| This is a block comment |# (define (degrees->radians deg) (* deg (/ %pi 180))) ;; Function (define (sq x) (* x x)) (define (sum xs) "Sum list of elements." (reduce + 0 xs)) ; commen...
Scheme
5
alexmaco/tokei
tests/data/scheme.scm
[ "Apache-2.0", "MIT" ]
--TEST-- Cloning unconstructed IntlDateFormatter --EXTENSIONS-- intl --FILE-- <?php class A extends IntlDateFormatter { function __construct() {} } $a = new A; try { $b = clone $a; } catch (Exception $e) { var_dump($e->getMessage()); } ?> --EXPECTF-- string(%s) "Cannot clone unconstructed IntlDateFormatte...
PHP
3
NathanFreeman/php-src
ext/intl/tests/dateformat_clone_bad_obj.phpt
[ "PHP-3.01" ]
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
TypeScript
4
KevinAo22/vscode
src/vs/workbench/contrib/debug/common/breakpoints.ts
[ "MIT" ]
# support Compose v2 as docker CLI plugin DOCKER_CONTEXT=default command docker compose &>/dev/null \ && dccmd='docker compose' \ || dccmd='docker-compose' alias dco="$dccmd" alias dcb="$dccmd build" alias dce="$dccmd exec" alias dcps="$dccmd ps" alias dcrestart="$dccmd restart" alias dcrm="$dccmd rm" alias dcr="$...
Shell
3
jxlwqq/ohmyzsh
plugins/docker-compose/docker-compose.plugin.zsh
[ "MIT" ]
20 5 2 0 0 1 21 14 8 17 5 18 15 21 10 6 9 20 13 2 16 1 4 3 19 7 12 11 [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] 1 5 ...
Eagle
1
klorel/or-tools
examples/data/rcpsp/multi_mode_max_delay/mm_j20/psp268.sch
[ "Apache-2.0" ]
#tag Module Protected Module CryptographyWFS #tag Method, Flags = &h21 Private Sub AppendDataChunkToBuffer(dataChunk as MemoryBlock, size as Integer) if dataChunk = nil then return dim replacementBuffer as MemoryBlock dim startLoc as Integer if mBuffer = nil then // First, we may need...
REALbasic
5
bskrtich/WFS
Windows Functionality Suite/Miscellaneous/Modules/CryptographyWFS.rbbas
[ "MIT" ]
# QMake include file that calls some functions # and does nothing else... exists(.git/HEAD) { system(git rev-parse HEAD >rev.txt) } else { system(echo ThisIsNotAGitRepo >rev.txt) }
QMake
3
JavascriptID/sourcerer-app
src/test/resources/samples/langs/QMake/functions.pri
[ "MIT" ]
// Copyright 2010-2015 RethinkDB, all rights reserved. #include "clustering/table_contract/coordinator/calculate_contracts.hpp" #include "clustering/table_contract/branch_history_gc.hpp" #include "clustering/table_contract/cpu_sharding.hpp" #include "logger.hpp" /* A `contract_ack_t` is not necessarily homogeneous. I...
C++
5
zadcha/rethinkdb
src/clustering/table_contract/coordinator/calculate_contracts.cc
[ "Apache-2.0" ]
```{r echo=FALSE} box::use(./a) ```
RMarkdown
2
jimhester/box
tests/testthat/support/knitr/doc.rmd
[ "MIT" ]
// Code generated by mkduff.go; DO NOT EDIT. // Run go generate from src/runtime to update. // See mkduff.go for comments. #include "textflag.h" TEXT runtime·duffzero(SB), NOSPLIT, $0-0 MOVW.P R0, 4(R1) MOVW.P R0, 4(R1) MOVW.P R0, 4(R1) MOVW.P R0, 4(R1) MOVW.P R0, 4(R1) MOVW.P R0, 4(R1) MOVW.P R0, 4(R1) MOVW....
GAS
2
Havoc-OS/androidprebuilts_go_linux-x86
src/runtime/duff_arm.s
[ "BSD-3-Clause" ]
<zone Name="Title"><h1>Add/Edit Todo (Liquid)</h1></zone> {{ Model | shape_render }}
Liquid
3
SvanBoxel/OrchardCore
src/OrchardCore.Modules/OrchardCore.Demo/Views/Todo/Edit.liquid
[ "BSD-3-Clause" ]
CoroTest := UnitTest clone do( testRecentInChain := method( o := Object clone o s := Sequence clone o l := method( j := 1 loop( s appendSeq("a", j asString, ".") if(j%2==0, pause) j = j + 1 ) ) ...
Io
3
akluth/io
libs/iovm/tests/correctness/CoroTest.io
[ "BSD-3-Clause" ]
(1 & 'Hello' & 2.0 & someObject) asVector
Self
0
LaudateCorpus1/RosettaCodeData
Task/Arrays/Self/arrays-3.self
[ "Info-ZIP" ]
const Err = error{Foo}; fn foo() u8 { var x = @intCast(u8, 9); return x; } pub fn main() !u8 { if (foo() == 7) return Err.Foo; return 123; }
Zig
4
aruniiird/zig
test/standalone/main_return_error/error_u8_non_zero.zig
[ "MIT" ]
# frozen_string_literal: true module RuboCop module Cop module RSpec # Checks for a specified error in checking raised errors. # # Enforces one of an Exception type, a string, or a regular # expression to match against the exception message as a parameter # to `raise_error` # ...
Ruby
5
ylht/brew
Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-rspec-2.4.0/lib/rubocop/cop/rspec/unspecified_exception.rb
[ "BSD-2-Clause" ]
#tag Class Protected Class ErrorReportWFS #tag Method, Flags = &h0 Sub AddDump(type as Integer, flags as Integer) #if TargetWin32 Soft Declare Sub WerReportAddDump Lib "Wer" ( handle as Integer, processHandle as Integer, threadHandle as Integer, _ type as Integer, exceptionInfo as Integer, cus...
REALbasic
5
bskrtich/WFS
Windows Functionality Suite/Miscellaneous/Classes/ErrorReportWFS.rbbas
[ "MIT" ]
module TrackedProviders; export { redef record Conn::Info += { found_tracked_provider: bool &log &default=F; }; } event connection_state_remove (c: connection) { if ( c?$provider ) c$conn$found_tracked_provider = T; }
Bro
4
LaudateCorpus1/cs-bro
bro-scripts/tracked-providers/add-provider.bro
[ "BSD-2-Clause" ]
// 功能:SPI写控制器的 testbench // 目的:演示多文件(多包)项目的组织方式 package TbSPIWriter; // 包名 TbSPIWriter ,必须与文件名相同 import StmtFSM::*; // 引入 BSV 标准库 StmtFSM import SPIWriter::*; // 引入用户编写的包 SPIWriter (见文件SPIWriter.bsv) module mkTb (); let spi_writer <- mkSPIWriter; mkAutoFSM( seq spi_writer...
Bluespec
5
Xiefengshang/BSV_Tutorial_cn
src/3.SPIWriter/TbSPIWriter.bsv
[ "MIT" ]
// Copyright (c) 2019 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. package edwards25519 import ( "testing" "testing/quick" ) func TestScalarAliasing(t *testing.T) { checkAliasingOneArg := func(f func(v, x *Scalar) *Sca...
Go
5
SSSDNSY/go
src/crypto/ed25519/internal/edwards25519/scalar_alias_test.go
[ "BSD-3-Clause" ]
-- ConjunctionMlt.gf: co-ordination -- -- Maltese GF Resource Grammar -- John J. Camilleri 2011 -- 2013 -- Licensed under LGPL concrete ConjunctionMlt of Conjunction = CatMlt ** open ResMlt, Coordination, Prelude in { lin -- Conj -> [S] -> S -- "he walks and she runs" ConjS = conjunctDistrSS ; --...
Grammatical Framework
5
daherb/gf-rgl
src/maltese/ConjunctionMlt.gf
[ "BSD-3-Clause" ]
#include "caffe2/core/context_gpu.h" #include "caffe2/operators/stop_gradient.h" namespace caffe2 { REGISTER_CUDA_OPERATOR(StopGradient, StopGradientOp<CUDAContext>); } // namespace caffe2
C++
3
Hacky-DH/pytorch
caffe2/operators/stop_gradient_gpu.cc
[ "Intel" ]
# Copyright 2021 The Google Research 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...
Shell
4
deepneuralmachine/google-research
bigg/bigg/experiments/synthetic/scripts/run_grid.sh
[ "Apache-2.0" ]
require! \fs $ = require \jquery-browserify {compile} = require \livescript/lib {concat-map, drop, filter, find, fold, group-by, id, keys, last, map, Obj, obj-to-pairs, pairs-to-obj, reject, reverse, Str, sort-by, take, unique, unique-by, values, zip-with} = require \prelude-ls {partition-string} = require \prelude-e...
LiveScript
5
santiagoGuti/react-selectize
public/components/App.ls
[ "Apache-2.0" ]
{layout '@layout.latte'} {block title}{$title ?: 'Overview'}{/block} {block content} <h1>{include title}</h1> {if count($allNamespaces)} <table class="table table-responsive table-bordered table-striped" id="namespaces"> <tr><th>Namespaces Summary</th></tr> <tr n:foreach="$all...
Latte
4
pujak17/tets
packages/ThemeDefault/src/index.latte
[ "MIT" ]
class(x : 'i32) { this } a: list!heap class() for x : 1 to 100000 { a.add(item : heap class(x)) } c : a[0] c.x
Objective-J
2
justinmann/sj
tests/list1.sj
[ "Apache-2.0" ]
{ "FAILOVER": { "summary": "Start a coordinated failover between this server and one of its replicas.", "complexity": "O(1)", "group": "server", "since": "6.2.0", "arity": -1, "function": "failoverCommand", "command_flags": [ "ADMIN", "...
JSON
4
hpdic/redis
src/commands/failover.json
[ "BSD-3-Clause" ]
class LLVM::MemoryBuffer def self.from_file(filename : String) ret = LibLLVM.create_memory_buffer_with_contents_of_file(filename, out mem_buf, out msg) if ret != 0 && msg raise LLVM.string_and_dispose(msg) end new(mem_buf) end def initialize(@unwrap : LibLLVM::MemoryBufferRef) @finalize...
Crystal
4
n00p3/crystal
src/llvm/memory_buffer.cr
[ "Apache-2.0" ]
/*############################################################################## HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®. 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...
ECL
4
miguelvazq/HPCC-Platform
ecl/regress/indexreadset.ecl
[ "Apache-2.0" ]
package { import GZ.Gpu.ShaderBase.FragmentShader; import GZ.Gpu.ShaderBase.VertexShader; import GZ.Gpu.ShaderBase.ProgramShader; import GZ.Gpu.Base.Attribute; import GZ.Gpu.Base.Texture; import GZ.Gpu.Base.Uniform; import GZ.Gpu.Base.UnVec2; import GZ.Gpu.Base.UnVec4; import GZ.Gpu.Base.UnFloat; import GZ...
Redcode
3
VLiance/GZE
src/Lib_GZ/Gpu/ShaderModel/GzModel/GzShModel_Quad/GzShModel_Quad.cw
[ "Apache-2.0" ]
HEADERS += \ $$PWD/filehandler.h SOURCES += \ $$PWD/filehandler.cpp
QMake
1
jiadxin/QtScrcpy
QtScrcpy/device/filehandler/filehandler.pri
[ "Apache-2.0" ]
# Disable busy waiting, so that we don't waste # resources when running in the cloud +sbwt none +sbwtdcpu none +sbwtdio none
HTML+EEX
1
kianmeng/livebook
rel/vm.args.eex
[ "Apache-2.0" ]
POST /stuff/here?foo=bar HTTP/1.0\r\n CONTENT-LENGTH: bla-bla-bla\r\n \r\n {"test": "-1}
HTTP
0
ashishmjn/gunicorn
tests/requests/invalid/015.http
[ "MIT" ]
<?xml version="1.0" encoding="UTF-8"?> <!-- generated with COPASI 4.29 (Build 228) (http://www.copasi.org) at 2021-01-04T13:52:49Z --> <?oxygen RNGSchema="http://www.copasi.org/static/schema/CopasiML.rng" type="xml"?> <COPASI xmlns="http://www.copasi.org/static/schema" versionMajor="4" versionMinor="29" versionDevel="2...
Component Pascal
5
MedAnisse/COPASI
speed-test-suite/Ecoli_efm.cps
[ "Artistic-2.0" ]
FancySpec describe: Matchers with: { it: "matches with any value defined matching" when: { m = Matchers MatchAny new: 1 with: 2 m === 0 is: false m === 1 is: true m === 2 is: true m === 3 is_not: true } it: "matches only with all values defined matching" when: { m = Matchers MatchAll new:...
Fancy
4
bakkdoor/fancy
tests/matchers.fy
[ "BSD-3-Clause" ]
import Head from 'next/head' import styles from '../styles/Home.module.css' import { connectToDatabase } from '../util/couchbase' export default function Home({ isConnected }) { return ( <div className={styles.container}> <Head> <title>Create Next App</title> <link rel="icon" href="/favicon...
JavaScript
5
blomqma/next.js
examples/with-couchbase/pages/index.js
[ "MIT" ]
package { public class TestOne { { trace("//TestOne class init"); } function TestOne() { trace("//TestOne constructor"); } } } trace("//TestOne.as start"); import TestTwo; new TestTwo(); trace("//TestOne.as end");
ActionScript
3
Sprak1/ruffle
tests/tests/swfs/avm2/lazyinit/TestOne.as
[ "Apache-2.0", "Unlicense" ]
<article id="pricing" style="padding-top: 12rem; margin-top: -12rem;"> <aside></aside> <!-- spacing --> <section> <h2 class="full balanced spaced">PRICING</h2> </section> <aside></aside> <!-- spacing --> </article> <br style="--r:8"> <article> <aside></aside> <!-- spacing --> ...
Kit
2
pws1453/web-client
source/imports/www/index-pricing.kit
[ "MIT" ]
ClearAll(mat,imat,idmat,a,b,c) mat = [[1,2], [3,4]] imat = Inverse(mat) T imat == [[-2,1],[3/2,-1/2]] T Dot([1,2,3], [a,b,c]) == a + 2b + 3c idmat = IdentityMatrix(5) T idmat == [[1,0,0,0,0],[0,1,0,0,0],[0,0,1,0,0],[0,0,0,1,0],[0,0,0,0,1]] T Dot(idmat, [1,2,3,4,5]) == [1,2,3,4,5] T Dot([[a,b], [c,d]] , [e,f]) == [a*...
Objective-J
4
UnofficialJuliaMirrorSnapshots/Symata.jl-a906b1d5-d016-55c4-aab3-8a20cba0db2a
symata_test/linalg_test.sj
[ "MIT" ]
Class { #name : #GtTranscriptTextTaskAction, #superclass : #BlTask, #instVars : [ 'editor' ], #category : #'GToolkit-Transcript' } { #category : #testing } GtTranscriptTextTaskAction class >> isAbstract [ ^ self name = #GtTranscriptTextTaskAction ] { #category : #accessing } GtTranscriptTextTaskAction >> edi...
Smalltalk
3
markfirmware/gtoolkit
src/GToolkit-Transcript/GtTranscriptTextTaskAction.class.st
[ "MIT" ]
extends /templates/common/table block tableResultsHeader tr th(colspan=4) span(data-i18n="general.results") | Results span |: #{documents.length} block tableHeader tr th(data-i18n="general.name") Name th(data-i18n="general.description") Description block tableBody for co...
Jade
4
cihatislamdede/codecombat
app/templates/editor/course/table.jade
[ "CC-BY-4.0", "MIT" ]
<%inherit file="/base.mako"/> <%namespace file="/message.mako" import="render_msg" /> <%namespace file="/webapps/tool_shed/common/common.mako" import="*" /> <%def name="javascripts()"> ${parent.javascripts()} ${common_misc_javascripts()} </%def> %if message: ${render_msg( message, status )} %endif <style...
Mako
4
rikeshi/galaxy
lib/tool_shed/webapp/templates/webapps/tool_shed/common/reset_metadata_on_selected_repositories.mako
[ "CC-BY-3.0" ]
// revisions:cfail1 fn combinator<T, const S: usize>() -> [T; S] {} //[cfail1]~^ ERROR mismatched types fn main() { combinator().into_iter(); //[cfail1]~^ ERROR type annotations needed }
Rust
3
mbc-git/rust
src/test/incremental/const-generics/issue-64087.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
SELECT 'Pacific/Kiritimati', toDateTime('2020-01-02 03:04:05', 'Pacific/Kiritimati') AS x, toStartOfDay(x), toHour(x); SELECT 'Africa/El_Aaiun', toDateTime('2020-01-02 03:04:05', 'Africa/El_Aaiun') AS x, toStartOfDay(x), toHour(x); SELECT 'Asia/Pyongyang', toDateTime('2020-01-02 03:04:05', 'Asia/Pyongyang') AS x, toSta...
SQL
4
pdv-ru/ClickHouse
tests/queries/0_stateless/01252_weird_time_zone.sql
[ "Apache-2.0" ]
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; /** @typedef {import("http").ServerOptions} HttpServerOptions */ /** @typedef {import("https").ServerOptions} HttpsServerOptions */ /** @typedef {import("../../declarations/WebpackOptions").LazyCompilatio...
JavaScript
5
vikusss/sub4.3
node_modules/webpack/lib/hmr/lazyCompilationBackend.js
[ "MIT" ]
- if branch.name == @project.repository.root_ref .js-delete-branch-button{ data: { tooltip: s_('Branches|The default branch cannot be deleted'), disabled: true.to_s } } - elsif protected_branch?(@project, branch) - if can?(current_user, :push_to_delete_protected_branch, @project) .js-delete-branch-button{ d...
Haml
4
Testiduk/gitlabhq
app/views/projects/branches/_delete_branch_modal_button.html.haml
[ "MIT" ]
import structs/[ArrayList, HashMap] fails := false main: func { stringString() if (fails) { "We've had failures" println() exit(1) } "Pass" println() } stringString: func { keys := [ "interpretation", "interpretations", "interpretative", "interpreted", "interpreting", "i...
ooc
4
shamanas/rock
test/sdk/structs/hashmap_resize_test.ooc
[ "MIT" ]
[Desktop Entry] Name=YakYak Comment=Chat client for Google Hangouts GenericName=YakYak Exec=/opt/yakyak/yakyak %U Icon=yakyak Terminal=false Type=Application StartupNotify=true #StartupWMClass=YakYak Keywords=hangouts;messenger Categories=Network;InstantMessaging X-GNOME-UsesNotifications=true
desktop
2
cwonrails/yakyak
resources/linux/app.desktop
[ "MIT" ]
<cfoutput> <div class="row"> <div class="col-md-6 col-md-offset-3"> #panel(title="Request Password Reset")# #includePartial("create")# #panelend()# </div> </div> </cfoutput>
ColdFusion
2
fintecheando/RoomBooking
views/passwordresets/new.cfm
[ "Apache-1.1" ]
" Vim syntax file " Language: TSS (Thermal Synthesizer System) Command Line " Maintainer: Adrian Nagle, anagle@ball.com " Last Change: 2003 May 11 " Filenames: *.tsscl " URL: http://www.naglenet.org/vim/syntax/tsscl.vim " MAIN URL: http://www.naglenet.org/vim/ " quit when a syntax file was already loa...
VimL
3
uga-rosa/neovim
runtime/syntax/tsscl.vim
[ "Vim" ]
package com.alibaba.json.bvt.fullSer; import junit.framework.TestCase; import org.junit.Assert; import com.alibaba.fastjson.JSON; import com.alibaba.json.bvt.fullSer.get_set_Test.VO; public class getfTest extends TestCase { public void test_codec() throws Exception { VO vo = new VO(); vo.setfId...
Java
4
Czarek93/fastjson
src/test/java/com/alibaba/json/bvt/fullSer/getfTest.java
[ "Apache-2.0" ]
// --------------------------------------------------------------------- // The Great Computer Language Shootout // http://shootout.alioth.debian.org/ // // Contributed by Anthony Borla // --------------------------------------------------------------------- int main(int argc, array(string) argv) { constant ITERATIO...
Pike
4
kragen/shootout
bench/mandelbrot/mandelbrot.pike
[ "BSD-3-Clause" ]
- dashboard: issue_details title: Issue Details layout: newspaper load_configuration: wait elements: - title: Issue Severity name: Issue Severity model: jira_block explore: issue_extended type: single_value fields: - issue_extended.severity_name sorts: - issue_extended.severity...
LookML
3
llooker/jira_block_fivetran
issue_details.dashboard.lookml
[ "MIT" ]
--TEST-- Bug #78236 (convert error on receiving variables when duplicate [) --POST-- id[name=1&id[[name=a&id[na me.=3 --FILE-- <?php var_dump($_POST); ?> --EXPECT-- array(3) { ["id_name"]=> string(1) "1" ["id__name"]=> string(1) "a" ["id_na_me_"]=> string(1) "3" }
PHP
3
NathanFreeman/php-src
tests/basic/bug78236.phpt
[ "PHP-3.01" ]
/* Copyright © 2011 MLstate This file is part of Opa. 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, copy, modify...
Opa
5
Machiaweliczny/oppailang
lib/stdlib/apis/facebook/graph/graph.opa
[ "MIT" ]
use "lib:identity-digestof-object-additional" use @ptr_to_int[USize](env: Env) use @pony_exitcode[None](code: I32) actor Main new create(env: Env) => let dg = digestof env if dg == @ptr_to_int(env) then @pony_exitcode(1) end
Pony
2
rtpax/ponyc
test/libponyc-run/identity-digestof-object/main.pony
[ "BSD-2-Clause" ]
/* * Irresistible Gaming (c) 2018 * Developed by Lorenc * Module: anticheat\rapidfire.pwn * Purpose: rapid fire detection as well as invalid bullet filtering */ /* ** Includes ** */ #include < YSI\y_hooks > /* ** Variables ** */ static stock p_RapidFireTickCount [ MAX_PLAYERS ], p_RapidFireShots [ ...
PAWN
4
omcho420/gta-open
gamemodes/core/anti-cheat/rapidfire.pwn
[ "Apache-2.0" ]
from django.contrib.gis.gdal.error import GDALException from django.contrib.gis.ptr import CPointerBase class GDALBase(CPointerBase): null_ptr_exception_class = GDALException
Python
3
jpmallarino/django
django/contrib/gis/gdal/base.py
[ "BSD-3-Clause", "0BSD" ]
frequency,raw 20.00,-1.64 20.20,-1.56 20.40,-1.49 20.61,-1.41 20.81,-1.33 21.02,-1.26 21.23,-1.18 21.44,-1.11 21.66,-1.03 21.87,-0.96 22.09,-0.88 22.31,-0.81 22.54,-0.74 22.76,-0.67 22.99,-0.60 23.22,-0.54 23.45,-0.46 23.69,-0.38 23.92,-0.31 24.16,-0.24 24.40,-0.16 24.65,-0.08 24.89,0.00 25.14,0.07 25.39,0.14 25.65,0.2...
CSV
2
vinzmc/AutoEq
measurements/referenceaudioanalyzer/data/inear/SIEC/Whizzer TP1s (closed vent)/Whizzer TP1s (closed vent).csv
[ "MIT" ]
KIDS Distribution saved on Sep 03, 2015@16:03:22 BIV SUPPLEMENT 1.0 **KIDS**:BIV SUPPLEMENT 1.0^ **INSTALL NAME** BIV SUPPLEMENT 1.0 "BLD",8520,0) BIV SUPPLEMENT 1.0^^0^3150903^n "BLD",8520,1,0) ^^1^1^3150903^ "BLD",8520,1,1,0) Additional BI files not included in VistA port. "BLD",8520,4,0) ^9.64PA^9002084.118^11 "BLD...
Genshi
2
mdgeek/VistA-FHIR-CWF
Scripts/Install/CWF/kid/28-BIV_SUPPLEMENT-1.0.kid
[ "Apache-2.0" ]
using Uno; using Uno.Testing; using Fuse.Charting; using FuseTest; namespace Fuse.Test { public class LayoutTest: TestBase { [Test] public void Enums() { Assert.AreEqual( 0, (int)PlotAxisLayoutAxis.X ); Assert.AreEqual( 1, (int)PlotAxisLayoutAxis.Y ); } } }
Uno
4
helilabs/fuselibs
Source/Fuse.Charting/Tests/Layout.Test.uno
[ "MIT" ]
package com.baeldung.apache.curator; import org.apache.curator.RetryPolicy; import org.apache.curator.framework.CuratorFramework; import org.apache.curator.framework.CuratorFrameworkFactory; import org.apache.curator.retry.RetryNTimes; import org.junit.Before; public abstract class BaseManualTest { @Before p...
Java
4
zeesh49/tutorials
apache-curator/src/test/java/com/baeldung/apache/curator/BaseManualTest.java
[ "MIT" ]
--TEST-- Test that mixed is a reserved class name --FILE-- <?php class mixed { } ?> --EXPECTF-- Fatal error: Cannot use 'mixed' as class name as it is reserved in %s on line %d
PHP
4
NathanFreeman/php-src
Zend/tests/type_declarations/mixed/syntax/mixed_class_error.phpt
[ "PHP-3.01" ]
/* * Copyright (c) 2021, Davipb <daviparca@gmail.com> * * SPDX-License-Identifier: BSD-2-Clause */ #include "Mask.h" namespace PixelPaint { Mask::Mask(Gfx::IntRect bounding_rect, u8 default_value) : m_bounding_rect(bounding_rect) { auto data_size = bounding_rect.size().area(); m_data.resize(data_size...
C++
4
r00ster91/serenity
Userland/Applications/PixelPaint/Mask.cpp
[ "BSD-2-Clause" ]
// @target: es5 // @declaration: true interface I { ["" + ""](): void; }
TypeScript
1
nilamjadhav/TypeScript
tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit3_ES5.ts
[ "Apache-2.0" ]
( ==================== Brain Fuck Compiler =================== ) ( The following brain fuck compiler is based on one available here http://rosettacode.org/wiki/Execute_Brain****/Forth. It has been adapted to work with libforth. The license for this program is GNU Free Documentation License, [v1.2], as it is derived fro...
Forth
5
andrewtholt/libforth
fth/bf.fth
[ "MIT" ]
package { import flash.display.Shader import flash.display.Sprite import flash.display.LoaderInfo import mx.utils.Base64Decoder import flash.utils.ByteArray import flash.geom.Point import flash.utils.Endian public class Exploit extends Sprite { private var uv:Vector...
ActionScript
4
OsmanDere/metasploit-framework
external/source/exploits/CVE-2015-3105/Exploit.as
[ "BSD-2-Clause", "BSD-3-Clause" ]
# Generated from: catkin_simple/cmake/catkin_simple-extras.cmake.em if(_CATKIN_SIMPLE_EXTRAS_INCLUDED_) return() endif() set(_CATKIN_SIMPLE_EXTRAS_INCLUDED_ TRUE) include(CMakeParseArguments) @[if DEVELSPACE]@ # cmake dir in develspace set(catkin_simple_CMAKE_DIR "@(CMAKE_CURRENT_SOURCE_DIR)/cmake") @[else]@ # cma...
EmberScript
4
sahibdhanjal/astrobee
dependencies/catkin_simple/cmake/catkin_simple-extras.cmake.em
[ "Apache-2.0" ]
// Copyright 2018 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 "go_asm.h" #include "textflag.h" TEXT ·Index(SB),NOSPLIT,$0-56 MOVQ a_base+0(FP), DI MOVQ a_len+8(FP), DX MOVQ b_base+24(FP), R8 MOVQ b_len+32(FP)...
GAS
4
SSSDNSY/go
src/internal/bytealg/index_amd64.s
[ "BSD-3-Clause" ]
lib LibC TCP_NODELAY = 0x01 TCP_KEEPINTVL = 0x101 TCP_KEEPCNT = 0x102 TCP_KEEPALIVE = 0x10 end
Crystal
3
n00p3/crystal
src/lib_c/x86_64-darwin/c/netinet/tcp.cr
[ "Apache-2.0" ]
"""Utils for Nexia / Trane XL Thermostats.""" from http import HTTPStatus def is_invalid_auth_code(http_status_code): """HTTP status codes that mean invalid auth.""" if http_status_code in (HTTPStatus.UNAUTHORIZED, HTTPStatus.FORBIDDEN): return True return False def percent_conv(val): """C...
Python
4
MrDelik/core
homeassistant/components/nexia/util.py
[ "Apache-2.0" ]
--TEST-- Autovivification of false to array with data clobbering by error handler --FILE-- <?php set_error_handler(function($code, $msg) { echo "Err: $msg\n"; $GLOBALS['a']=9; }); $a=[]; ($a[PHP_INT_MAX+1]); ?> DONE --EXPECTF-- Err: Implicit conversion from float %f to int loses precision Err: Undefined array k...
PHP
3
NathanFreeman/php-src
Zend/tests/falsetoarray_003.phpt
[ "PHP-3.01" ]
import asset from "./asset.jpg"; it("should define public path", () => { expect(asset).toBe("/other/inner1/inner2/../../asset.jpg"); });
JavaScript
3
fourstash/webpack
test/configCases/output/publicPath-web/c.js
[ "MIT" ]
{{>licenseInfo}} package {{invokerPackage}}.auth; import {{invokerPackage}}.Pair; {{^java8}} import com.migcomponents.migbase64.Base64; {{/java8}} {{#java8}} import java.util.Base64; import java.nio.charset.StandardCharsets; {{/java8}} import java.util.Map; import java.util.List; {{^java8}} import java.io.Unsuppor...
HTML+Django
4
bradatmailchimp/mailchimp-client-lib-codegen
resources/swagger-original-templates/java/auth/HttpBasicAuth.mustache
[ "Apache-2.0" ]
* List of Nyxt extensions - [[https://github.com/kssytsrk/nx-freestance-handler][nx-freestance-handler]] :: nx-freestance-handler is a redirector from mainstream websites to their privacy-supporting mirrors for the Nyxt browser. It is currently able to redirect from Youtube to Invidious, from Reddit to Teddit, ...
Org
3
atlas-engineer/next
documents/EXTENSIONS.org
[ "BSD-3-Clause" ]
#!/bin/bash # Copyright 2019 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 agreed t...
Shell
3
rveerama1/istio
tools/dump-docker-logs.sh
[ "Apache-2.0" ]
// MIR for `foo` before PreCodegen fn foo(_1: Option<()>) -> () { debug bar => _1; // in scope 0 at $DIR/matches_reduce_branches.rs:7:8: 7:11 let mut _0: (); // return place in scope 0 at $DIR/matches_reduce_branches.rs:7:25: 7:25 bb0: { return; ...
Mirah
3
mbc-git/rust
src/test/mir-opt/matches_reduce_branches.foo.PreCodegen.before.64bit.mir
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
@import './shared.css'; .green { color: green }
CSS
4
coreyscherbing/angular
packages/compiler-cli/integrationtest/src/basic.css
[ "MIT" ]
<article class="{{ Model.Classes | join: " " }}"> <blockquote> {{ Model.ContentItem.Content.Blockquote.Quote.Text }} </blockquote> </article>
Liquid
3
SvanBoxel/OrchardCore
src/OrchardCore.Themes/TheBlogTheme/Views/Widget-Blockquote.liquid
[ "BSD-3-Clause" ]
var getData = require("library"); it("should be able get items from library (" + NAME + ")", function() { const d = getData(); expect(d).toHaveProperty("x"); expect(d.x).toHaveProperty("y"); const data = d.x.y; expect(data).toHaveProperty("default", "default-value"); expect(data).toHaveProperty("a", "a"); expec...
JavaScript
3
1shenxi/webpack
test/configCases/library/1-use-library/var-test.js
[ "MIT" ]
--TEST-- Test for correct colors of imagecopyresampled() wrt. alpha --EXTENSIONS-- gd --FILE-- <?php const EXP_RED = 66; const EXP_GREEN = 66; const EXP_BLUE = 133; const EXP_ALPHA = 32; /* create the source image */ $im = imagecreatetruecolor(10, 10); imagealphablending($im, false); $solid = imagecolorallocate($im, ...
PHP
4
NathanFreeman/php-src
ext/gd/tests/imagecopyresampled_variation1.phpt
[ "PHP-3.01" ]
// dlfcn.hb // from bits/dlfcn.h const int RTLD_LAZY = 0x0001; const int RTLD_NOW = 0x0002; const int RTLD_NOLOAD = 0x0004; const int RTLD_DEEPBIND = 0x0008; const int RTLD_LOCAL = 0x0000; const int RTLD_GLOBAL = 0x0100; const int RTLD_NODELETE = 0x1000; // from dlfcn.h extern void* dlopen(char* filen...
Harbour
3
ueki5/cbc
import/dlfcn.hb
[ "Unlicense" ]
@prefix : <http://localhost/ontologies/2019/1/10/automobile#> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix xml: <http://www.w3.org/XML/1998/namespace> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . @prefix rdfs: <http://www.w3.org/2000/01/r...
Web Ontology Language
4
jonmcalder/neosemantics
docs/rdf/vw.owl
[ "Apache-2.0" ]
// Copyright 2015 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. //go:build mips64 || mips64le // +build mips64 mips64le #include "textflag.h" #define SYNC WORD $0xf TEXT ·publicationBarrier(SB),NOSPLIT|NOFRAME,$0-0 SYNC ...
GAS
4
rleungx/go
src/runtime/atomic_mips64x.s
[ "BSD-3-Clause" ]
/* * Copyright (C) 2009 Steve Rowe <sarowe@gmail.com> * Copyright (C) 2020 Google, LLC. * * License: https://opensource.org/licenses/BSD-3-Clause * * Redistribution and use in source and binary forms, with or without modification, are permitted * provided that the following conditions are met: * * 1. Redistrib...
JFlex
4
WeDoSoftware/jflex
java/de/jflex/ucd_generator/scanner/EnumeratedPropertyFileScanner.flex
[ "BSD-3-Clause" ]
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. #ifndef OPENCV_DNN_SRC_CUDA4DNN_CSL_NVCC_DEFS_HPP #define OPENCV_DNN_SRC_CUDA4DNN_CSL_NVCC_DEFS_HPP #include <cuda_runtime_a...
C++
2
thisisgopalmandal/opencv
modules/dnn/src/cuda4dnn/csl/nvcc_defs.hpp
[ "BSD-3-Clause" ]
=pod =head1 NAME PKCS12_get_friendlyname - Retrieve the friendlyname attribute from a PKCS#12 safeBag =head1 SYNOPSIS #include <openssl/pkcs12.h> char *PKCS12_get_friendlyname(PKCS12_SAFEBAG *bag); =head1 DESCRIPTION PKCS12_get_friendlyname() retrieves a UTF-8 string representation of the PKCS#9 friendlyName a...
Pod
4
pmesnier/openssl
doc/man3/PKCS12_get_friendlyname.pod
[ "Apache-2.0" ]
// The types for printf are actually the same in Windows and other OSes, but // for the purposes of an example that everyone can compile without an external // library we'll assume they're different. // Give FFI declaration with a guard for each platform. use @printf[I32](fmt: Pointer[U8] tag, ...) if windows use @pri...
Pony
5
presidentbeef/ponyc
examples/ifdef/ifdef.pony
[ "BSD-2-Clause" ]
/*############################################################################## HPCC SYSTEMS software Copyright (C) 2015 HPCC Systems®. 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...
ECL
4
miguelvazq/HPCC-Platform
testing/regress/ecl/parallelchild.ecl
[ "Apache-2.0" ]
template <class T> struct HasTypeWithSelfAsParam { using TT = HasTypeWithSelfAsParam<HasTypeWithSelfAsParam<T>>; }; using WillBeInfinite = HasTypeWithSelfAsParam<int>; namespace RegressionTest { // This is a regression test to check that we don't instantiate exponentially // large templates. The below template wil...
C
4
gandhi56/swift
test/Interop/Cxx/templates/Inputs/large-class-templates.h
[ "Apache-2.0" ]
--TEST-- Bug #72819 (EXIF thumbnails not read anymore) --EXTENSIONS-- exif --INI-- output_handler= zlib.output_compression=0 --FILE-- <?php $infile = __DIR__.'/bug72819.jpg'; var_dump(strlen(exif_thumbnail($infile))); ?> --EXPECT-- int(5448)
PHP
2
NathanFreeman/php-src
ext/exif/tests/bug72819/bug72819.phpt
[ "PHP-3.01" ]
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #nullable enable using System; using System.Collections.Generic; namespace System.Management.Automation.Subsystem { /// <summary> /// Define the kinds of subsystems. /// </summary> public enum SubsystemKind { /// <...
C#
5
dahlia/PowerShell
src/System.Management.Automation/engine/Subsystem/ISubsystem.cs
[ "MIT" ]
.rmc-pull-to-refresh-content { transform-origin: left top 0px; } .rmc-pull-to-refresh-content-wrapper { overflow: hidden; } .rmc-pull-to-refresh-transition { transition: transform 0.3s; } @keyframes rmc-pull-to-refresh-indicator { 50% { opacity: 0.2; } 100% { opacity: 1; } } ...
CSS
4
qiuziz/taro-react-native
packages/taro-components/src/components/pull-down-refresh/style/index.css
[ "MIT" ]
@font-face { font-family: "Test"; src: url("./fonts/test.woff2") format("woff2"); } .index { background: url("http://google.com"); } .quotes { background: url("data:image/gif;base64,quotes"); } .no-quote { background: url(data:image/gif;base64,no-quote); }
CSS
3
johanberonius/parcel
packages/core/integration-tests/test/integration/css-url/index.css
[ "MIT" ]