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
#define TORCH_ASSERT_NO_OPERATORS #define _USE_MATH_DEFINES #include <ATen/native/Activation.h> #include <cmath> #include <thrust/tuple.h> #include <ATen/AccumulateType.h> #include <ATen/Dispatch.h> #include <ATen/core/TensorBase.h> #include <ATen/cuda/ApplyGridUtils.cuh> #include <ATen/cuda/detail/OffsetCalculator...
Cuda
5
xiaohanhuang/pytorch
aten/src/ATen/native/cuda/Activation.cu
[ "Intel" ]
use assert_cmd::prelude::*; use dir_diff; use std::process::Command; use tempdir; use tempdir::TempDir; #[test] fn test_go_help() { let path = if cfg!(targe_os = "windows") { "../gen-license-go/bin/windows/gen-license-go.exe" } else if cfg!(target_os = "linux") { "../gen-license-go/bin/linux/ge...
Rust
4
luyouli/996.ICU
archived/licenses[WIP]/tools/test-gen-license/src/test_go.rs
[ "ICU", "MIT" ]
<?xml version='1.0' encoding='UTF-8'?> <Project Type="Project" LVVersion="19008000"> <Property Name="NI.LV.All.SourceOnly" Type="Bool">true</Property> <Item Name="My Computer" Type="My Computer"> <Property Name="server.app.propertiesEnabled" Type="Bool">true</Property> <Property Name="server.control.propertiesEn...
LabVIEW
2
NJKirchner/grpc-labview
tests/Tests.lvproj
[ "MIT" ]
#N canvas 325 92 664 335 12; #X obj 62 82 inlet; #X obj 62 110 float \$1; #X obj 62 138 send \$2; #X text 180 223 For obvious reasons you might not want to call a patch as an abstraction from itself., f 43; #X text 177 182 In this case \$1 is a number you can specify and \$2 is a "send" destination.; #X text 411 287 up...
Pure Data
5
mcclure/pure-data
doc/2.control.examples/sendnumber.pd
[ "TCL" ]
CREATE TABLE `tb_qinfehbzem` ( `col_ginzfhyvfi` int(10) unsigned DEFAULT '1', `col_cakcnwuchg` date DEFAULT '2019-07-04', `col_hgdcocydeg` int(10) unsigned zerofill DEFAULT NULL, `col_opsrfpouaa` longblob, UNIQUE KEY `uk_tcqbsivphi` (`col_opsrfpouaa`(1)), UNIQUE KEY `col_hgdcocydeg` (`col_hgdcocydeg`,`col_o...
SQL
3
yuanweikang2020/canal
parse/src/test/resources/ddl/table/mysql_9.sql
[ "Apache-2.0" ]
PREFIX : <http://example.org/> SELECT * WHERE { ?s :num ?num FILTER(ABS(?num) >= 2) }
SPARQL
4
alpano-unibz/ontop
test/sparql-compliance/src/test/resources/testcases-dawg-sparql-1.1/functions/abs01.rq
[ "Apache-2.0" ]
package pandas_test import "testing" import "strings" option now = () => 2030-01-01T00:00:00Z inData = " #datatype,string,long,dateTime:RFC3339,string,string,string,string,string,string,string #group,false,false,false,false,true,true,true,true,true,true #default,_result,,,,,,,,, ,result,table,_time,_value,_fiel...
FLUX
4
metrico/flux
stdlib/testing/pandas/cat_strings_joinStr_test.flux
[ "MIT" ]
[a|b|="c"]{}
CSS
1
mengxy/swc
crates/swc_css_parser/tests/fixture/esbuild/misc/fYJdtIZOdQKTLI8JJC2b_g/input.css
[ "Apache-2.0" ]
`numpy.fromregex` now accepts ``os.PathLike`` implementations ------------------------------------------------------------- `numpy.fromregex` now accepts objects implementing the `__fspath__<os.PathLike>` protocol, *e.g.* `pathlib.Path`.
reStructuredText
1
iam-abbas/numpy
doc/release/upcoming_changes/19680.improvement.rst
[ "BSD-3-Clause" ]
<?xml version="1.0" encoding="utf-8"?> <?python import urlparse import logging logger = logging.getLogger('pywms.templates.GetCapabilities') def strip_qs(url): t = urlparse.urlparse(url) return urlparse.urlunparse(list(t[:3])+['','','']) def layerFolderName(indexes): """Turn a list of indexes into a lay...
Genshi
4
cedadev/cows
cows/service/imps/pywms/templates/GetCapabilities.kid
[ "BSD-2-Clause" ]
;============================================================================== ; Autopsy Forensic Browser ; ; Copyright 2019 Basis Technology Corp. ; Contact: carrier <at> sleuthkit <dot> org ; ; Licensed under the Apache License, Version 2.0 (the "License"); ; you may not use this file except in compliance with the L...
AutoIt
5
ljmf00/autopsy
Tools/ManifestTool/ManifestTool.au3
[ "Apache-2.0" ]
/****************************************************************************** * Copyright 2019 The Apollo 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 ...
C++
5
jzjonah/apollo
modules/canbus/vehicle/zhongyun/protocol/gear_control_a1.cc
[ "Apache-2.0" ]
/** @type {import("../../../../../").LoaderDefinition} */ module.exports = function () { const callback = this.async(); this.resolve(this.context, "./file", (err, file) => { if (err) return callback(err); if (!file) return callback(new Error("Resolving failed")); this.fs.readFile(file, (err, result) => { if ...
JavaScript
4
fourstash/webpack
test/watchCases/resolve/in-loader/0/loader.js
[ "MIT" ]
# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit cargo CARGO_FETCH_CRATES=yes DESCRIPTION="md cat" HOMEPAGE="https://github.com/lunaryorn/mdcat" SRC_URI="https://github.com/lunaryorn/mdcat/archive/mdcat-${PV}.tar.gz" RESTRICT="mirror" LICENSE=...
Gentoo Ebuild
2
gentoo/gentoo-rust
app-misc/mdcat/mdcat-0.4.0.ebuild
[ "BSD-3-Clause" ]
/* * Alloy model of the Halmos handshake problem * * Hilary and Jocelyn are married. They invite four couples who are friends for dinner. When * they arrive, they shake hands with each other. Nobody shakes hands with him or herself * or with his or her spouse. After there has been some handshaking, Jocelyn jumps u...
Alloy
5
c-luu/alloy-specs
puzzles/halmos-handshake/handshake.als
[ "Apache-2.0" ]
\documentclass{article} \usepackage{hyperref} \usepackage[links]{agda} \begin{document} \AgdaTarget{ℕ} \AgdaTarget{zero} \begin{code} data ℕ : Set where zero : ℕ suc : ℕ → ℕ \end{code} See next page for how to define \AgdaFunction{two} (doesn't turn into a link because the target hasn't been defined yet). We c...
Literate Agda
5
cruhland/agda
test/LaTeXAndHTML/succeed/Links.lagda
[ "MIT" ]
--- foo: bar --- a { color:blue } --- .b { color:red }
CSS
1
fuelingtheweb/prettier
tests/css_yaml/malformed-2.css
[ "MIT" ]
package com.baeldung.gson.primitives.models; public class CharExample { public char value; public String toString() { return "{char: " + value + "}"; } }
Java
3
DBatOWL/tutorials
gson/src/main/java/com/baeldung/gson/primitives/models/CharExample.java
[ "MIT" ]
# # Copyright 2013 (c) Pointwise, Inc. # All rights reserved. # # This sample Pointwise script is not supported by Pointwise, Inc. # It is provided freely for demonstration purposes only. # SEE THE WARRANTY DISCLAIMER AT THE BOTTOM OF THIS FILE. # ####################################################################...
Glyph
5
smola/language-dataset
data/github.com/pointwise/ButterflyMaker/69640569d9a6c1fe89f21373e5dc9c943685b041/ButterflyMaker.glf
[ "MIT" ]
x : y : 2
Objective-J
0
justinmann/sj
tests/assignment8.sj
[ "Apache-2.0" ]
#include <Arduino.h> #include <SPI.h> #include "U8x8lib.h" /*=============================================*/ /* display setup procedures */ u8x8_t u8x8; uint8_t tile[8] = { 0x0f, 0x0f, 0x0f, 0x0f, 0xf0, 0xf0, 0xf0, 0xf0 }; void setup(void) { pinMode(7, OUTPUT); pinMode(9, OUTPUT); pinMode(10, OUTPUT); ...
Arduino
5
Linghhh/u8g2
sys/arduino/ssd1306_test/test.ino
[ "BSD-2-Clause" ]
;; Test that the function docs are handled as they should be. (defmodule test_docs "Testing function docs. This line and the next are indented 3. We have the functions one/3, two/3, three/3, four/3, five/3, six/3" (export (one 3) (two 3) (three 3) (four 3) (five 3) (six 3))) (defun one (x y z) "...
LFE
4
haetze/lfe
dev/test_docs.lfe
[ "Apache-2.0" ]
#!/usr/bin/env sage # Use sage's built in Elliptic Curve Method for factorization of large composites import sys n = int(sys.argv[1]) try: print(ecm.factor(n)) except: print(0)
Sage
4
CrackerCat/RsaCtfTool
sage/ecm2.sage
[ "Beerware" ]
class BOOK_COLLECTION create make feature {NONE} -- Initialization make (a_name: STRING_32) -- Create a book collection with `a_name' as `name'. do set_name (a_name) create book_index.make (10) ensure name_set: name = a_name end feature -- Access name: STRING_32 -- Name. books: LIST [BOO...
Eiffel
5
JavascriptID/sourcerer-app
src/test/resources/samples/langs/Eiffel/book_collection.e
[ "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. *) (* A mini-LLAIR model, based on the files in sledge/src/llair *) open HolKernel boolLib bossLib Parse; open settingsTheory memory_...
Standard ML
5
JacobBarthelmeh/infer
sledge/semantics/llairScript.sml
[ "MIT" ]
export default { compile_options: { enableSourcemap: false } };
JavaScript
1
vatro/svelte
test/sourcemaps/samples/no-sourcemap/_config.js
[ "MIT" ]
--TEST-- Test that mixed is a valid return type --FILE-- <?php function foo(): mixed { return null; } ?> --EXPECT--
PHP
4
NathanFreeman/php-src
Zend/tests/type_declarations/mixed/syntax/mixed_return_success.phpt
[ "PHP-3.01" ]
<html> <body> <!-- #include file ="headers\header.inc" --> <% For i = 0 To 5 Response.Write("The number is " & i & "<br />") Next %> <% Response.Write("Hello World!") %> <% Dim x(2,2) x(0,0)="Volvo" x(0,1)="BMW" x(0,2)="Ford" x(1,0)="Apple" x(1,1)="Orange" x(1,2)="Banana" x(2,0)="Coke" x(2,1)="Pepsi" x(2,2)="Sprite"...
ASP
3
purveshpatel511/bat
tests/syntax-tests/source/ASP/test.asp
[ "Apache-2.0", "MIT" ]
/* Copyright (c) 2017-2019 Netronome Systems, Inc. All rights reserved. * * SPDX-License-Identifier: BSD-2-Clause */ #include "actions_harness.uc" #include "global.uc" .sig s .reg addr .reg value .reg loop_cntr .reg expected_hdr_stack .reg expected_proto .reg in_args .reg volatile write $pkt_data_wr[20] .xfer_or...
UnrealScript
4
pcasconnetronome/nic-firmware
test/datapath/pv_parse_ipv6_ext_hdrs_udp_x80_test.uc
[ "BSD-2-Clause" ]
// 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" #define PosInf 0x7FF0000000000000 #define NaN 0x7FF8000000000001 #define NegInf 0xFFF0000000000000 // func ·archMax(x, y float64) flo...
GAS
4
SSSDNSY/go
src/math/dim_arm64.s
[ "BSD-3-Clause" ]
Released PSS*1*139 SEQ #126 Extracted from mail message **KIDS**:PSS*1.0*139^ **INSTALL NAME** PSS*1.0*139 "BLD",7709,0) PSS*1.0*139^PHARMACY DATA MANAGEMENT^0^3080825^y "BLD",7709,1,0) ^^26^26^3080825^ "BLD",7709,1,1,0) This patch has enhancements which extend the capabilities of the Veterans "BLD",7709,1,2,0) Healt...
Genshi
3
smola/language-dataset
data/github.com/OSEHRA/FOIA_Mirror/1bcf94ce6d6ae5bcf71aab9eaf8ecf05d42340cd/Packages/Pharmacy Data Management/Patches/PSS_1.0_139/pss-1_seq-126_pat-139.kid
[ "MIT" ]
msgid "" msgstr "" "Project-Id-Version: view_tests\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2007-09-15 19:15+0200\n" "PO-Revision-Date: 2010-05-12 12:41-0300\n" "Last-Translator: Unknown\n" "Language: pt\n" "Language-Team: Portuguese <pt@li.org>\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8...
Gettext Catalog
3
jpmallarino/django
tests/view_tests/locale/pt/LC_MESSAGES/djangojs.po
[ "BSD-3-Clause", "0BSD" ]
"<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=Content-Type content="text/html; charset=utf-8"> <meta name=ProgId content=Excel.Sheet> <meta name=Generator...
HTML
2
cnheider/nylas-mail
packages/client-app/spec/fixtures/paste/excel-paste-out.html
[ "MIT" ]
--- title: 'AIFH Vol 3: Deep Learning and Neural Networks' output: pdf_document --- This document is a notebook of calculations for: Artificial Intelligence for Humans Volume 3: Deep Learning and Neural Networks For more information about the series visit: <http://www.heatonresearch.com/aifh>. In the interest of op...
RMarkdown
5
Sun-Joong/aifh
vol3/aifh_vol3.rmd
[ "Apache-2.0" ]
[Desktop Entry] Name=MeshLab Version=@version@ Name[en_GB]=MeshLab GenericName=Mesh processing GenericName[en_GB]=Mesh processing Comment=View and process meshes Type=Application Exec=@out@/bin/meshlab %U TryExec=@out@/bin/meshlab Icon=@out@/share/icons/hicolor/meshlab.png Terminal=false MimeType=model/mesh;application...
desktop
2
collinwright/nixpkgs
pkgs/applications/graphics/meshlab/meshlab.desktop
[ "MIT" ]
@n: 4; #world { building-height: 2 * 3 * [HEIGHT] + 2 + [NOTHEIGHT] + (@n * 2); }
CartoCSS
2
nimix/carto
test/rendering/building_height.mss
[ "Apache-2.0" ]
exec("swigtest.start", -1); if typeof(CSP_ITERATION_FWD_get()) <> "constant" then swigtesterror(); end if typeof(CSP_ITERATION_BWD_get()) <> "constant" then swigtesterror(); end if typeof(ABCDE_get()) <> "constant" then swigtesterror(); end if typeof(FGHJI_get()) <> "constant" then swigtesterror(); end try bar1(C...
Scilab
3
kyletanyag/LL-Smartcard
cacreader/swig-4.0.2/Examples/test-suite/scilab/enums_runme.sci
[ "BSD-3-Clause" ]
var $g <*ptr> var $h <*ptr> = addrof ptr $g var $g <*ptr> = addrof ptr $h var $h <*ptr> # EXEC: %irbuild Main.mpl # EXEC: %irbuild Main.irb.mpl # EXEC: %cmp Main.irb.mpl Main.irb.irb.mpl
Maple
1
harmonyos-mirror/OpenArkCompiler-test
test/testsuite/irbuild_test/I0025-mapleall-irbuild-edge-dupvardecl/Main.mpl
[ "MulanPSL-1.0" ]
[a|b |= "c"]{}
CSS
0
vjpr/swc
css/parser/tests/fixture/esbuild/misc/kubgOdBUY3iT30KfPRcbsA/input.css
[ "Apache-2.0", "MIT" ]
import Debug "mo:base/Debug"; import Float "mo:base/Float"; Debug.print("Float"); do { Debug.print(" abs"); assert(Float.abs(1.1) == 1.1); assert(Float.abs(-1.1) == 1.1); }; do { Debug.print(" ceil"); assert(Float.ceil(1.1) == 2.0); }; do { Debug.print(" floor"); assert(Float.floor(1.1) == 1.0);...
Modelica
4
nomeata/motoko-base
test/floatTest.mo
[ "Apache-2.0" ]
/* Copyright 2020 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...
Objective-C++
4
EricRemmerswaal/tensorflow
tensorflow/lite/delegates/gpu/metal/buffer_test.mm
[ "Apache-2.0" ]
using Fuse.Internal; using Uno; using Uno.Testing; using FuseTest; namespace Fuse.Test { public class CollisionTest : TestBase { [Test] public void LineLineIntersection() { float2 r; Assert.IsTrue( Collision.LineLineIntersection( float2(1), float2(2,1), float2(4,5), float2(-1,5), out r)); ...
Uno
4
helilabs/fuselibs
Source/Fuse.Common/Tests/Fuse.Common.Test/Collision.Test.uno
[ "MIT" ]
extends Spatial onready var _cube_point_scene: PackedScene = preload("res://assets/cube/cube_point.tscn") onready var _parent = get_parent() var _is_parent_ready := false var _cube_points_math = [] var _cube_math_spatials = [] func _ready(): _parent = get_parent() for i in range(27): # warning-ignore:integer_di...
GDScript
5
jonbonazza/godot-demo-projects
misc/2.5d/assets/cube/cube_math.gd
[ "MIT" ]
-- fib_improver = ->(partial : Proc(Int32)) { -- ->(n : Int32) { n < 2 ? n : partial.call(n-1) + partial.call(n-2) } -- } -- y = ->(f : Int32) { -- ->(x) { x.call(x) }.call( -- ->(x) { f.call(->(v) { x.call(x).call(v)}) } -- ) -- } -- fib = fib_improver.call(y.call(fib_improver)) -- p f...
Ox
3
ozra/onyx-lang
spec/onyx-alpha-throwups/example_1877.ox
[ "Apache-2.0" ]
#![allow(dead_code)] #![feature(rustc_attrs)] use std::cell::Cell; // Check that a type parameter which is only used in a trait bound is // not considered bivariant. #[rustc_variance] struct InvariantMut<'a,A:'a,B:'a> { //~ ERROR [-, o, o] t: &'a mut (A,B) } #[rustc_variance] struct InvariantCell<A> { //~ ERROR...
Rust
4
Eric-Arellano/rust
src/test/ui/variance/variance-types.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
# Export Ignition environment variables @[if INSTALLSPACE]@ export IGN_LAUNCH_CONFIG_PATH=@(CMAKE_INSTALL_PREFIX)/@(CATKIN_PACKAGE_SHARE_DESTINATION)/launch export IGN_GAZEBO_RESOURCE_PATH=@(CMAKE_INSTALL_PREFIX)/@(CATKIN_PACKAGE_SHARE_DESTINATION)/worlds:${IGN_GAZEBO_RESOURCE_PATH} @[else]@ export IGN_LAUNCH_CONFIG_P...
EmberScript
4
jfkeller/subt_explorer_canary1_sensor_config_1
ign_migration_scripts/env-hooks/29.ign_migration_scripts.zsh.em
[ "ECL-2.0", "Apache-2.0" ]
/* DQ (2/3/2011): Bug report from iastate: blocksize_reparse/short_test.upc */ #include<upc.h> shared [5] char buffer[10*THREADS]; shared [8] char bufferA[8*THREADS]; int main() { return 0; }
Unified Parallel C
1
maurizioabba/rose
tests/CompileTests/UPC_tests/test2011_03.upc
[ "BSD-3-Clause" ]
<script type="application/x-typescript"> class Student { fullName: string; constructor(public firstName: string, public middleInitial: string, public lastName: string) { this.fullName = firstName + " " + middleInitial + " " + lastName; } } interface Person { firstName: string; lastName: str...
HTML
4
fuelingtheweb/prettier
tests/html_js/typescript.html
[ "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
4
elliottslaughter/regent-tutorial
Solutions/x2.rg
[ "Apache-2.0" ]
Strict Rem bbdoc: Math/Random numbers End Rem Module BRL.Random ModuleInfo "Version: 1.05" ModuleInfo "Author: Mark Sibly, Floyd" ModuleInfo "License: zlib/libpng" ModuleInfo "Copyright: Blitz Research Ltd" ModuleInfo "Modserver: BRL" ModuleInfo "History: 1.05 Release" ModuleInfo "History: Fixed Rand() with negativ...
BlitzMax
5
jabdoa2/blitzmax
mod/brl.mod/random.mod/random.bmx
[ "Zlib" ]
img(src=item.getPortraitURL()) div.item-info if includes.name h4= item.get('name') if includes.stats || (includes.props && props.length) ul.list-unstyled if includes.stats for stat, prop in stats if stat.display == 'true' li= stat.name else li #{stat...
Jade
3
cihatislamdede/codecombat
app/templates/play/menu/item-view.jade
[ "CC-BY-4.0", "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/Performance.bsv
[ "Apache-2.0" ]
require(httr) params = list( `page` = '1', `available` = c('', '1'), `location` = '0', `city[id]` = '0', `city[locality]` = '', `city[locality_text]` = '', `city[administrative_area_level_2]` = '', `city[administrative_area_level_2_text]` = '', `city[administrative_area_level_1]` = '', `city[admini...
R
4
verhovsky/curlconverter
fixtures/r/get_complex_url_params.r
[ "MIT" ]
"""Tests for the hddtemp component."""
Python
0
domwillcode/home-assistant
tests/components/hddtemp/__init__.py
[ "Apache-2.0" ]
IN: tools.disassembler.tests USING: kernel fry vocabs tools.disassembler tools.test sequences ; "math" vocab-words [ [ { } ] dip '[ _ disassemble ] unit-test ] each
Factor
4
alex-ilin/factor
basis/tools/disassembler/disassembler-tests.factor
[ "BSD-2-Clause" ]
- dashboard: opportunity_history title: Opportunity History layout: tile tile_size: 100 elements: - name: quarterly_pipeline_development_report title: 'Quarterly Pipeline Development Report' type: looker_area model: salesforce explore: historical_snapshot dimensions: [historical_snapshot...
LookML
3
rsharma03/blocks_salesforce
submodules/opportunity_snapshot/opportunity_history.dashboard.lookml
[ "MIT" ]
#N canvas 791 132 485 426 12; #X obj 79 323 snapshot~; #X floatatom 79 353 6 0 0 0 - - - 0; #X obj 84 13 sig~; #X obj 79 160 sig~; #X floatatom 79 128 6 0 0 0 - - - 0; #X text 120 15 - convert numbers to audio signal; #X text 51 54 In this example \, the sig~ object converts numbers to an audio signal \, which the snap...
Pure Data
4
myQwil/pure-data
doc/5.reference/sig~-help.pd
[ "TCL" ]
--TEST-- Magic methods in overridden stdClass inside namespace --FILE-- <?php namespace test; class foo { public $e = array(); public function __construct() { $this->e[] = $this; } public function __set($a, $b) { var_dump($a, $b); } public function __get($a) { var_dum...
PHP
3
thiagooak/php-src
Zend/tests/ns_064.phpt
[ "PHP-3.01" ]
/* Cycript - The Truly Universal Scripting Language * Copyright (C) 2009-2016 Jay Freeman (saurik) */ /* GNU Lesser General Public License, Version 3 {{{ */ /* * Cycript is free software: you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the * Free...
Cycript
3
pipihi/nx
cycript/Cycript.lib/cycript0.9/org/cycript/NSLog.cy
[ "MIT" ]
(* ** ATS-extsolve: ** For solving ATS-constraints ** with external SMT-solvers *) (* ****** ****** *) (* ** Author: Hongwei Xi ** Authoremail: gmhwxiATgmailDOTcom ** Start time: May, 2015 *) (* ****** ****** *) // extern fun parse_s2exp_node (jsonval): s2exp_node // (* ****** ****** *) implement parse_s2exp (jsn...
ATS
5
bbarker/ATS-Postiats-contrib
projects/MEDIUM/ATS-extsolve-0.3.2/DATS/PARSING/patsolve_parsing_s2exp.dats
[ "MIT" ]
component { if (!['all'].foo()) { } }
ColdFusion CFC
0
tonym128/CFLint
src/test/resources/com/cflint/tests/Parsing/inlinearray_650.cfc
[ "BSD-3-Clause" ]
/** * */ import Util; import OpenApi; import OpenApiUtil; import EndpointUtil; extends OpenApi; init(config: OpenApi.Config){ super(config); @endpointRule = ''; checkConfig(config); @endpoint = getEndpoint('live-interaction', @regionId, @endpointRule, @network, @suffix, @endpointMap, @endpoint); } funct...
Tea
5
aliyun/alibabacloud-sdk
live-interaction-20201214/main.tea
[ "Apache-2.0" ]
default { state_entry() { llOwnerSay("The absolute value of -4 is: "+(string)llAbs(-4) ); } }
LSL
4
MandarinkaTasty/OpenSim
bin/assets/ScriptsAssetSet/llAbs.lsl
[ "BSD-3-Clause" ]
// Daniel Shiffman // http://youtube.com/thecodingtrain // http://codingtra.in // Coding Challenge #112: 3D Rendering with Rotation and Projection // https://youtu.be/p4Iz0XJY-Qk float angle = 0; PVector[] points = new PVector[8]; float[][] projection = { {1, 0, 0}, {0, 1, 0} }; void setup() { size(600, 400)...
Processing
5
aerinkayne/website
CodingChallenges/CC_112_3D_Rendering/Processing/CC_112_3D_Rendering/CC_112_3D_Rendering.pde
[ "MIT" ]
--- simple-sidebar: true social-image: social-logo-universe.png layout: layouts/base.liquid no-sidebar: true body-class: inc force-light --- <div id="inc-color-scheme"> {% include color-scheme-switcher %} </div> <div class="inc-bg"></div> <div class="inc-bg-padding" aria-hidden="true"> <a href="/">Rome</a> </div> ...
Liquid
4
JoostKersjes/tools
website/src/_includes/layouts/inc.liquid
[ "MIT" ]
^XA^FO0,0^GFA,120000,120000,100,,::::::::::::J0G3oRFGCH0J0G7oRFGEH0::J0G7G8hO0G3GClY0G1GEH0:::::::::::::::::::::::::::J0G7G8Q0G1gIFGCS0G3GClY0G1GEH0J0G7G8Q0G7gIFGES0G3GClY0G1GEH0::J0G7G8Q0G7gIFGES0G3GCkS0G1GCgJ0G1GEH0J0G7G8Q0G7gIFGES0G3GCkS0G3GEgJ0G1GEH0J0G7G8Q0G7gIFGES0G3GCkS0G7GFgJ0G1GEH0J0G7G8Q0G7gIFGES0G3GCkS0HFG8g...
Zimpl
1
nelsontkq/zplify
Zplify.Tests/Data/USPS-label.zpl
[ "MIT" ]
-module(complex3). -export([foo/1, bar/1]). foo(X) -> call_cnode({foo, X}). bar(Y) -> call_cnode({bar, Y}). call_cnode(Msg) -> {any, c1@idril} ! {call, self(), Msg}, receive {cnode, Result} -> Result end.
Erlang
4
jjhoo/otp
system/doc/tutorial/complex3.erl
[ "Apache-2.0" ]
#![allow(unused_variables)] #![allow(unused_assignments)] #![allow(dead_code)] #![deny(unreachable_code)] fn a() { loop { return; } println!("I am dead."); //~^ ERROR unreachable statement } fn b() { loop { break; } println!("I am not dead."); } fn c() { loop { return; } print...
Rust
3
Eric-Arellano/rust
src/test/ui/reachable/expr_loop.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
CREATE TABLE `q_report_summary` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `group_id` int(11) unsigned NOT NULL DEFAULT '0', `host_count` int(11) unsigned NOT NULL DEFAULT '0', `circular_count` int(11) unsigned NOT NULL DEFAULT '0', `active_count` int(11) unsigned NOT NULL DEFAULT '0', `security_num` int(11) unsi...
SQL
3
imtbkcat/tidb-lightning
tests/tool_241/data/qyjc.q_report_summary-schema.sql
[ "Apache-2.0" ]
MandarinDefaultBehavior = Reflector other:mimic(DefaultBehavior) MandarinDefaultBehavior 细胞 = cell(:cell) MandarinDefaultBehavior 摹拟 = cell(:mimic) MandarinDefaultBehavior 除非 = cell(:if) MandarinDefaultBehavior 法 = cell(:method) MandarinDefaultBehavior 函数 = cell(:fn) MandarinDefaultBehavior 本 = Origin Mandari...
Ioke
2
olabini/ioke
examples/multilang/chinese/mandarin.ik
[ "ICU", "MIT" ]
// @declaration: true // @filename: root.ts export function getSomething(): Something { return null as any } export default class Something {} // @filename: main.ts import Thing, { getSomething } from "./root"; export const instance = getSomething();
TypeScript
4
nilamjadhav/TypeScript
tests/cases/compiler/defaultDeclarationEmitDefaultImport.ts
[ "Apache-2.0" ]
module appendixA/closure pred transCover [R, r: univ->univ] { // You have to fill in the appropriate formula here } pred transClosure [R, r: univ->univ] { transCover [R, r] // You have to fill in the appropriate formula here } assert Equivalence { all R, r: univ->univ | transClosure [R,r] iff R = ^r } check Equ...
Alloy
3
Kaixi26/org.alloytools.alloy
org.alloytools.alloy.extra/extra/models/book/appendixA/closure.als
[ "Apache-2.0" ]
.style { grid-template-columns: repeat(4, minmax(min-content, 300px)); }
CSS
2
mengxy/swc
crates/swc_css_parser/tests/fixture/rome/grid/repeat/minmax/input.css
[ "Apache-2.0" ]
--TEST-- Bug #69549 (Memory leak with opcache.optimization_level=0xFFFFFFFF) --INI-- opcache.enable=1 opcache.enable_cli=1 opcache.optimization_level=-1 --EXTENSIONS-- opcache --FILE-- <?php $a = array(true); if($a[0] && false) { echo 'test'; } echo "ok\n"; ?> --EXPECT-- ok
PHP
2
NathanFreeman/php-src
ext/opcache/tests/bug69549.phpt
[ "PHP-3.01" ]
// Need to deal with non powers of base for the length of the hash #include <Dip.h> module DipSummaryP { provides interface DipDecision; uses interface DipSend as SummarySend; uses interface DipReceive as SummaryReceive; uses interface DipHelp; uses interface DipEstimates; uses interface Random; } im...
nesC
4
mtaghiza/tinyos-main-1
tos/lib/net/dip/DipSummaryP.nc
[ "BSD-3-Clause" ]
module gate(w, x, y, z); function automatic integer bar( integer a ); bar = 2 ** a; endfunction output integer w = bar(4); function automatic integer foo( input integer a, /* implicitly input */ integer b, output integer c, /* implicitly output */ integer d ); c = 42; d = 51; foo = a + b + 1; endf...
SystemVerilog
4
gudeh/yosys
tests/various/func_port_implied_dir.sv
[ "ISC" ]
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 20 20" height="20" viewBox="0 0 20 20" width="20"><g><rect fill="none" height="20" width="20"/><path d="M15,3H5C4.45,3,4,3.45,4,4v13h12V4C16,3.45,15.55,3,15,3z M13,11c-0.55,0-1-0.45-1-1c0-0.55,0.45-1,1-1s1,0.45,1,1 C14,10.55,13.55,11,13,11z"/></g></svg>
SVG
1
elisoncrum/piipan
query-tool/src/Piipan.QueryTool/wwwroot/images/usa-icons-unused/sensor_door.svg
[ "CC0-1.0" ]
module Favorites exposing (Model, handleDelivery, isFavorited, isInstanceGroupFavorited, isPipelineFavorited, update) import Concourse exposing (PipelineGrouping(..)) import EffectTransformer exposing (ET) import Message.Callback exposing (Callback(..)) import Message.Effects as Effects import Message.Message exposing...
Elm
5
Caprowni/concourse
web/elm/src/Favorites.elm
[ "Apache-2.0" ]
QT += core CONFIG += c++11 INCLUDEPATH += $$PWD/src DEFINES += ELPP_QT_LOGGING \ ELPP_STL_LOGGING \ ELPP_STRICT_SIZE_CHECK ELPP_UNICODE \ ELPP_MULTI_LOGGER_SUPPORT \ ELPP_THREAD_SAFE \ ELPP_UNICODE \ ELPP_NO_DEFAULT_LOG_FILE SOURCES += $$PWD/src/easy...
QMake
3
VolodymyrKuksa/easyloggingpp
easyloggingpp.pri
[ "MIT" ]
within ; package DocuModels model Filter Modelica.Electrical.Analog.Basic.Resistor R(R=0.5) annotation (Placement(transformation(extent={{-50,40},{-30,60}}))); Modelica.Electrical.Analog.Basic.Capacitor C(C=2.0) annotation (Placement( transformation( extent={{-10,-10},{10,10}}, ...
Modelica
3
vishalbelsare/Modia.jl
docs/resources/models/DocuModels.mo
[ "MIT" ]
package com.baeldung.nullmethodparameter; public class NullParameterExample { public void processSomethingNotNull(Object myParameter) { if (myParameter == null) { throw new IllegalArgumentException("Parameter 'myParameter' cannot be null"); } //Do something with the parameter ...
Java
4
DBatOWL/tutorials
core-java-modules/core-java-exceptions-3/src/main/java/com/baeldung/nullmethodparameter/NullParameterExample.java
[ "MIT" ]
//ascript #useLSLAPI public void state_entry() { //First get the IScenePresence from the Scene. IScenePresence SP = Scene.GetScenePresence(UUID.Parse(llGetOwner())); llSay(0, SP.Name); //Say their name, then teleport them SP.Teleport(new Vector3((float)llGetPos().x,(float)llGetPos().y,(float)llGetPos().z)); }
LSL
3
BillyWarrhol/Aurora-Sim
AuroraDocs/AScript/UserTeleport.lsl
[ "BSD-3-Clause" ]
package com.baeldung; import java.util.Date; import org.apache.camel.Exchange; import org.apache.camel.Processor; public class MyPayloadClonePrepare implements Processor { public void process(Exchange exchange) throws Exception { MyPayload myPayload = exchange.getIn().getBody(MyPayload.class); exchange.getIn()...
Java
3
DBatOWL/tutorials
patterns/enterprise-patterns/wire-tap/src/main/java/com/baeldung/MyPayloadClonePrepare.java
[ "MIT" ]
Module: sample-OLE-server Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc. All rights reserved. License: See License.txt in this distribution for details. Warranty: Distributed WITHOUT WARRANTY OF ANY KIND //*****************************************************...
Dylan
5
kryptine/opendylan
sources/ole/examples/sample-ole-server/iec.dylan
[ "BSD-2-Clause" ]
--TEST-- Bug #76737: Unserialized reflection objects are broken, they shouldn't be serializable --FILE-- <?php try { $r = new ReflectionClass('stdClass'); var_dump(serialize($r)); } catch (Exception $e) { echo $e->getMessage(), "\n"; } try { $s = 'C:15:"ReflectionClass":0:{}'; var_dump(unserialize(...
PHP
4
NathanFreeman/php-src
ext/reflection/tests/bug76737.phpt
[ "PHP-3.01" ]
/** * 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...
AspectJ
4
dm20/hadoop-mapreduce
src/test/system/aop/org/apache/hadoop/mapred/JobInProgressAspect.aj
[ "Apache-2.0" ]
values = ["woo", 3, false, 7] fn2(n Int) -> say "{n}" fn2(..._ *) -> raise "I wasn't prepared for that type!" fn2 values.1 fn2 values.3 fn2 values.0
Ox
3
ozra/onyx-lang
spec/onyx-alpha-throwups/mixed-type-list-test.ox
[ "Apache-2.0" ]
#version 3.1; // By Jonathan Hunt <jonathan@xlcus.com> #declare TulipHeadTexture = texture { pigment { bumps color_map { [0.0 colour rgb<0.9, 0.0, 0.0>] [1.0 colour rgb<0.8, 0.0, 0.2>] } scale <0.005, 0.02, 0.005> } normal { bumps 0.25 scale <0.025, 1, 0.025> } fi...
POV-Ray SDL
5
SDRausty/TermuxPovray
tulips/tulips.pov
[ "Apache-2.0" ]
/** * extension point * * @author caikang * @date 2017/06/19 */ package com.alibaba.p3c.idea.ep;
Java
0
zyling10/p3c
idea-plugin/p3c-common/src/main/kotlin/com/alibaba/p3c/idea/ep/package-info.java
[ "Apache-2.0" ]
# GoCD Server Docker image An ${distro.name()} based docker image for [GoCD server](https://www.gocd.org). # Issues, feedback? Please make sure to log them at https://github.com/gocd/gocd. # Usage Start the container with this: ```shell docker run -d -p8153:8153 gocd/${imageName}:v${goVersion} ``` This will expo...
FreeMarker
4
JeroenOortwijn/gocd
buildSrc/src/main/resources/gocd-docker-server/README.md.ftl
[ "Apache-2.0" ]
# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v3 # @ECLASS: invalid-license-header1.eclass # @MAINTAINER: # Random Dev <random.dev@gentoo.org> # @AUTHOR: # Random Dev <random.dev@gentoo.org> # @BLURB: Stub eclass.
Gentoo Eclass
1
floppym/pkgcheck
testdata/repos/gentoo/eclass/invalid-license-header.eclass
[ "BSD-3-Clause" ]
@interface NSManagedObject +alloc; -init; @end
C
0
lwhsu/swift
test/ClangImporter/Inputs/custom-modules/NSManagedObject.h
[ "Apache-2.0" ]
import Trie "mo:base/Trie"; import List "mo:base/List"; import Iter "mo:base/Iter"; import Hash "mo:base/Hash"; import Text "mo:base/Text"; import Prelude "mo:base/Prelude"; import Rel "Rel"; /// OO-based binary relation representation. /// /// See also: Rel module. module { public class RelObj<X, Y>( hash : Re...
Modelica
4
gajendraks/cancan
backend/RelObj.mo
[ "Apache-2.0" ]
/* * 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
core/src/test/scala/org/apache/spark/internal/io/FileCommitProtocolInstantiationSuite.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" ]
i 00001 17 24 02000 00 042 0017 i 00002 00 012 2003 00 040 0016 i 00003 00 010 2004 00 003 2005 i 00004 00 003 2006 00 003 0000 i 00005 16 045 0017 17 25 77776 i 00006 17 35 00014 00 010 2000 i 00007 00 012 2004 00 27 00014 i 00010 00 010 2001 00 012 2005 i 00011 00 27 00014 00 010 2002 i 00012 00 012 2006 00 27 00014 ...
Octave
1
besm6/mesm6
test/xts/xts.oct
[ "MIT" ]
import { useEffect, useState } from 'react' const foo = (query) => query export const FOO = foo('query') const MyPage = () => { const [isMounted, setMounted] = useState(false) useEffect(() => { setMounted(true) }, []) if (isMounted) { return <p>client loaded</p> } return <p>server</p> } const ge...
JavaScript
4
blomqma/next.js
test/integration/getserversideprops/pages/refresh.js
[ "MIT" ]
--TEST-- SPL: ArrayObject::exchangeArray() and copy-on-write references --FILE-- <?php $ao = new ArrayObject(); $swapIn = array(); $cowRef = $swapIn; // create a copy-on-write ref to $swapIn $ao->exchangeArray($swapIn); $ao['a'] = 'adding element to $ao'; $swapIn['b'] = 'adding element to $swapIn'; $ao['c'] = 'adding ...
PHP
3
guomoumou123/php5.5.10
ext/spl/tests/arrayObject_exchangeArray_basic1.phpt
[ "PHP-3.01" ]
such foo much bar baz shh 1 wow
Dogescript
0
joeratt/dogescript
test/spec/such/such-args/source.djs
[ "MIT" ]
/* Copyright 2019 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
abhaikollara/tensorflow
tensorflow/compiler/jit/cluster_scoping_pass.h
[ "Apache-2.0" ]
exec("swigtest.start", -1); smallnum = -127; checkequal(CharValFunction(smallnum), smallnum, "CharValFunction(smallnum)"); checkequal(CCharValFunction(smallnum), smallnum, "CCharValFunction(smallnum)"); checkequal(CCharRefFunction(smallnum), smallnum, "CCharRefFunction(smallnum)"); try globalchar_set(smallnum); cat...
Scilab
3
kyletanyag/LL-Smartcard
cacreader/swig-4.0.2/Examples/test-suite/scilab/apply_signed_char_runme.sci
[ "BSD-3-Clause" ]