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
-- In a module instantiation 'module A = e', 'e' should have the form 'm e1 .. -- en' where 'm' is a module name. module NotAModuleExpr where module Bad = \x -> x
Agda
1
cruhland/agda
test/Fail/NotAModuleExpr.agda
[ "MIT" ]
const expect = @import("std").testing.expect; usingnamespace @import("foo.zig"); usingnamespace @import("bar.zig"); test "no clobbering happened" { @This().foo_function(); @This().bar_function(); try expect(@This().saw_foo_function); try expect(@This().saw_bar_function); }
Zig
3
lukekras/zig
test/behavior/usingnamespace/import_segregation.zig
[ "MIT" ]
% Blind renaming - C blocks % Jim Cordy, May 2010 % Using Gnu C grammar include "c.grm" redefine compound_statement { [IN] [NL] [compound_statement_body] [EX] } [NL] end redefine define potential_clone [compound_statement] end define % Generic blind renaming include "generic-rename-blind.txl"
TXL
3
coder-chenzhi/SQA
SourcererCC/parser/java/txl/c-rename-blind-blocks.txl
[ "Apache-2.0" ]
import "std/file" import "std/filepath" import "std/test" import "std/os" const testdataDir = os.env()['TESTDATA_DIR'] if isNil(testdataDir) { println("TESTDATA_DIR not set") exit(1) } const filename = filepath.join(testdataDir, 'test.txt') test.run("file.readFile", fn(assert) { const data = file.readFil...
Inform 7
4
lfkeitel/nitrogen
tests/stdlib/file.ni
[ "BSD-3-Clause" ]
int a=100; int main() { upc_barrier ; upc_barrier 10; upc_barrier a+10; //upc_barrier 0.9; //illegal case return 0; }
Unified Parallel C
2
maurizioabba/rose
projects/UpcTranslation/tests/barrier.upc
[ "BSD-3-Clause" ]
import Foundation public class Fish { @NSManaged public var name: String }
Swift
4
lwhsu/swift
test/SILGen/Inputs/nsmanaged-witness-multi-other.swift
[ "Apache-2.0" ]
import * as React from 'react'; import clsx from 'clsx'; import { useForkRef, capitalize } from '@mui/material/utils'; import { alpha, styled } from '@mui/material/styles'; import { unstable_composeClasses as composeClasses, generateUtilityClass, generateUtilityClasses, } from '@mui/base'; import { WrapperVaria...
TypeScript
4
timwang-ai/material-ui
packages/mui-lab/src/YearPicker/PickersYear.tsx
[ "MIT" ]
static const q15_t in_com1[512] = { 0x3AE0, 0x07CC, 0xFBCC, 0x1E50, 0x9245, 0xDE55, 0xC639, 0x9BD7, 0x0F04, 0xF9D3, 0x1791, 0x09CF, 0xE123, 0xEABD, 0x9027, 0xB7F0, 0xD705, 0xBEEE, 0x15DD, 0x13D9, 0xFB04, 0x096A, 0x364E, 0xDEE3, 0xF4ED, 0x1DEA, 0xE666, 0xF072, 0xCAC8, 0x2674, 0x1092, 0xEC36, 0x0CB8, ...
Max
2
maxvankessel/zephyr
tests/lib/cmsis_dsp/complexmath/src/q15.pat
[ "Apache-2.0" ]
--TEST-- void socket_clear_error ([ resource $socket ] ) ; --CREDITS-- marcosptf - <marcosptf@yahoo.com.br> - #phparty7 - @phpsp - novatec/2015 - sao paulo - br --EXTENSIONS-- sockets --SKIPIF-- <?php if (substr(PHP_OS, 0, 3) == 'WIN' ) { die('skip non-windows only test'); } ?> --FILE-- <?php $socket = socket_crea...
PHP
3
NathanFreeman/php-src
ext/sockets/tests/socket_clear_error.phpt
[ "PHP-3.01" ]
import os import unittest from test import support from test.support import import_helper # skip tests if _ctypes was not built ctypes = import_helper.import_module('ctypes') ctypes_symbols = dir(ctypes) def need_symbol(name): return unittest.skipUnless(name in ctypes_symbols, '{!r...
Python
4
shawwn/cpython
Lib/ctypes/test/__init__.py
[ "0BSD" ]
// Ensure we appropriately error instead of overflowing a calculation when creating a new Alloc // Layout // run-fail // compile-flags: -C opt-level=3 // error-pattern: index out of bounds: the len is 0 but the index is 16777216 // ignore-wasm no panic or subprocess support // ignore-emscripten no panic or subprocess ...
Rust
3
Eric-Arellano/rust
src/test/ui/issues/issue-69225-layout-repeated-checked-add.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64--linux" @intToPtrResult = local_unnamed_addr global i8 2 @ptrToIntResult = local_unnamed_addr global i8 2 define void @runtime.initAll() local_unnamed_addr { ret void }
LLVM
2
ybkimm/tinygo
interp/testdata/consteval.out.ll
[ "Apache-2.0" ]
--- title: Title description: Description --- /* comment */ .something { }
CSS
1
fuelingtheweb/prettier
tests/css_yaml/comment_after.css
[ "MIT" ]
#!/usr/bin/env bash # This script allows you install your msf payload apk to your Android emulator. # Make sure you have Java and Android SDK. apk_path=$1 if ! [ -x "$(command -v adb)" ] then echo "Android SDK platform-tools not included in \$PATH." exit fi if ! [ -x "$(command -v jarsigner)" ] then echo "ja...
Shell
4
OsmanDere/metasploit-framework
tools/exploit/install_msf_apk.sh
[ "BSD-2-Clause", "BSD-3-Clause" ]
(* * 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. *) open OUnit2 let assert_same_elements ~ctxt lst1 lst2 = let sort = List.fast_sort (fun x y -> x - y) in assert_equal ~ctxt (sor...
OCaml
5
zhangmaijun/flow
src/common/utils/__tests__/unionFind_test.ml
[ "MIT" ]
( Generated from test_builtin_haskey_in.muv by the MUV compiler. ) ( https://github.com/revarbat/pymuv ) : _main[ _arg -- ret ] { "foo" 3 "bar" 7 "baz" 9 }dict var! _arr "bar" _arr @ swap 1 array_make array_extract ; : __start "me" match me ! me @ location loc ! trig trigger ! _main ;
MUF
3
revarbat/pymuv
tests/test_builtin_haskey_cmp.muf
[ "MIT" ]
(* Get User Name This script uses UI element scripting to get the name for the current user. If "Enable access for assistive devices" is not checked, this script will open the Universal Access System Preference and ask the user to check the checkbox. Copyright 2007 Apple Inc. You may incorporate this Apple sample c...
AppleScript
4
JavascriptID/sourcerer-app
src/test/resources/samples/langs/AppleScript/Get User Name.applescript
[ "MIT" ]
ul - sections.each do |section| li = section.title
Slim
1
tnir/asciidoctor
test/fixtures/custom-backends/slim/html5-custom-outline/outline.html.slim
[ "MIT" ]
module example import StdEnv maxArray :: [Real] [Real] -> [Real] maxArray list1 list2 = [ (max e1 e2) \\ e1 <- list1 & e2 <- list2 ] Start :: [Real] Start = maxArray [1.3,4.1,6.6,2.3,3.5] [2.1,3.3,88.9,-5.0,3.56]
Clean
3
OfekShilon/compiler-explorer
examples/clean/Max_array.icl
[ "BSD-2-Clause" ]
SET optimize_arithmetic_operations_in_aggregate_functions = 1; SELECT max(multiply(1)); -- { serverError 42 } SELECT min(multiply(2));-- { serverError 42 } SELECT sum(multiply(3)); -- { serverError 42 } SELECT max(plus(1)); -- { serverError 42 } SELECT min(plus(2)); -- { serverError 42 } SELECT sum(plus(3)); -- {...
SQL
2
pdv-ru/ClickHouse
tests/queries/0_stateless/01323_bad_arg_in_arithmetic_operations.sql
[ "Apache-2.0" ]
codec_type: AUTO stat_prefix: "ingress_http" route_config { virtual_hosts { name: "service" domains: "*" routes { match { prefix: "/service" } route { cluster: "local_service" timeout { seconds: 0 } } } } } http_filters { name: "...
PureBasic
4
dcillera/envoy
api/examples/service_envoy/http_connection_manager.pb
[ "Apache-2.0" ]
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. Describe 'Enable-PSBreakpoint' -Tags 'CI' { BeforeEach { # Set some breakpoints $lineBp = Set-PSBreakpoint -Line ([int]::MaxValue) -Script $PSCommandPath | Disable-PSBreakpoint -PassThru $cmdBp =...
PowerShell
5
rdtechie/PowerShell
test/powershell/Modules/Microsoft.PowerShell.Utility/Enable-PSBreakpoint.Tests.ps1
[ "MIT" ]
upstream githubprapi { server 127.0.0.1:8000; } server { listen 80; server_name default; location / { proxy_pass http://githubprapi; proxy_connect_timeout 60s; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $remote_addr; } }
ApacheConf
4
ganeshkj/githubprapi_nginx_prometheus
githubprapi.vhost
[ "MIT" ]
# Copyright 2019 Google LLC # # 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 applicable law or agreed to in writin...
Sage
3
iicarus-bit/google-ctf
2019/finals/crypto-fractorization/solve.sage
[ "Apache-2.0" ]
#include "concurrency/interruptor.hpp" #include "concurrency/wait_any.hpp" void wait_interruptible(const signal_t *signal, const signal_t *interruptor) THROWS_ONLY(interrupted_exc_t) { wait_any_t waiter(signal, interruptor); waiter.wait_lazily_unordered(); if (interruptor->is_pulsed()) { t...
C++
4
zadcha/rethinkdb
src/concurrency/interruptor.cc
[ "Apache-2.0" ]
#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)]]; }; template <typename T1, typename T2, size_t N> bool operator==(thread const array<T1, N>& left, thread const ar...
Metal
5
fourgrad/skia
tests/sksl/shared/ArrayCast.metal
[ "BSD-3-Clause" ]
/** * * GlobalTimedWeight.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 s...
X10
4
milthorpe/rudra
x10/src/rudra/GlobalTimedWeight.x10
[ "BSD-3-Clause" ]
<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'> <qgis styleCategories="AllStyleCategories" maxScale="0" version="3.18.0-Zürich" hasScaleBasedVisibilityFlag="0" minScale="1e+08"> <flags> <Identifiable>1</Identifiable> <Removable>1</Removable> <Searchable>1</Searchable> <Private>0</Private> ...
QML
3
FeU-aKlos/gdal
autotest/utilities/data/color_pseudocolor_spectral_0-100.qml
[ "Apache-2.0" ]
Foo: class{ test := [1, 2, 3] init: func } Bar: class{ test := static const [1, 2, 3] init: func } describe("ArrayLiteral should be correctly unwrapped",|| foo := Foo new() assert(foo test[0] == 1) assert(foo test[1] == 2) assert(foo test[2] == 3) assert(Bar test[0] == 1) asser...
ooc
2
shamanas/rock
test/compiler/literals/array-literal-in-class.ooc
[ "MIT" ]
fn putnumln(n: int) -> void = do putnum(n); putchar('\n'); end in fn one() -> int = 1 in (one() + 2).putnumln
Harbour
4
adam-mcdaniel/harbor
examples/fn.hb
[ "Apache-2.0" ]
CREATE TABLE `tb_hgbecqwvnf` ( `col_qppnejcxiu` binary(137) DEFAULT NULL, `col_nyrvlflfiz` mediumblob, `col_zfwcescosm` bit(1) DEFAULT NULL, `col_dqpoxmoyzl` bigint(111) unsigned DEFAULT '1', `col_rfnetihhhs` decimal(15,0) NOT NULL, `col_jhaqzczhxe` mediumblob, `col_gfdmpyoigq` time(1) DEFAULT NULL ) ENGI...
SQL
1
yuanweikang2020/canal
parse/src/test/resources/ddl/alter/mysql_15.sql
[ "Apache-2.0" ]
using Uno; using Uno.IO; using Uno.Net; using Uno.Net.Sockets; using Uno.Collections; using Uno.Compiler.ExportTargetInterop; using Fuse; using Uno.Diagnostics; using Fuse.Controls; using Fuse.Elements; using Fuse.Input; namespace Outracks.Simulator.Client { using Bytecode; using Protocol; using Runtime; using Uno...
Uno
5
mortend/fuse-studio
Source/Preview/Core/ApplicationStates.uno
[ "MIT" ]
screen bonus_screen(): tag menu ## This use statement includes the game_menu screen inside this one. The ## vbox child is then included inside the viewport inside the game_menu ## screen. use game_menu(_("Bonus"), scroll="viewport"): style_prefix "bonus" vbox: spacing 15 ...
Ren'Py
5
googlebleh/LearnToCodeRPG
game/scripts/bonus_screen.rpy
[ "BSD-3-Clause" ]
import { value3 } from "./reexport"; expect(value3).toBe(42);
JavaScript
2
1shenxi/webpack
test/cases/scope-hoisting/side-effects-11990/chunk1.js
[ "MIT" ]
%%{ machine smtp_ip; }%%
Ragel in Ruby Host
0
podsvirov/colm-suite
test/ragel.d/include3/smtp_ip.rl
[ "MIT" ]
package com.baeldung.reducingIfElse; public enum Operator { ADD { @Override public int apply(int a, int b) { return a + b; } }, MULTIPLY { @Override public int apply(int a, int b) { return a * b; } }, SUBTRACT { @Ove...
Java
5
DBatOWL/tutorials
patterns/design-patterns-creational/src/main/java/com/baeldung/reducingIfElse/Operator.java
[ "MIT" ]
// run-pass struct Foo { new: isize, } pub fn main() { let foo = Foo{ new: 3 }; assert_eq!(foo.new, 3); }
Rust
3
Eric-Arellano/rust
src/test/ui/structs-enums/struct-new-as-field-name.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
"""Test the Switcher switch platform.""" from unittest.mock import patch from aioswitcher.api import Command, SwitcherBaseResponse from aioswitcher.device import DeviceState import pytest from homeassistant.components.switch import DOMAIN as SWITCH_DOMAIN from homeassistant.const import ( ATTR_ENTITY_ID, SERV...
Python
5
MrDelik/core
tests/components/switcher_kis/test_switch.py
[ "Apache-2.0" ]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % This file is part of Logtalk <https://logtalk.org/> % Copyright (c) 2010, Victor Lagerkvist % SPDX-License-Identifier: BSD-3-Clause % % Redistribution and use in source and binary forms, with or without % modification, are permitted pr...
Logtalk
4
PaulBrownMagic/logtalk3
contributions/verdi_neruda/bup_interpreter.lgt
[ "Apache-2.0" ]
/* * Top-level definitions */ //================================================================== Ingress module "ingress_www_petshop_com_br" { source = "./modules/ingress/www.petshop.com.br" ingress_host = "www.petshop.com.br" } //================================================================== Deployme...
HCL
3
DBatOWL/tutorials
terraform/best-practices/k8s-modules/main.tf
[ "MIT" ]
CREATE OR REPLACE FUNCTION hdb_catalog.insert_event_log(schema_name text, table_name text, trigger_name text, op text, row_data json) RETURNS text AS $$ DECLARE id text; payload json; session_variables json; server_version_num int; trace_context json; BEGIN id := gen_random_uuid(); ser...
SQL
4
gh-oss-contributor/graphql-engine-1
server/src-rsr/migrations/36_to_37.sql
[ "Apache-2.0", "MIT" ]
--TEST-- Instanceof checks in VERIFY_RETURN_TYPE optimization may deal with unlinked classes --EXTENSIONS-- opcache --FILE-- <?php interface foo { } interface biz {} class qux implements foo { public function bar(): biz { $x = $this; return $x; } } ?> ===DONE=== --EXPECT-- ===DONE===
PHP
4
NathanFreeman/php-src
ext/opcache/tests/verify_return_instanceof.phpt
[ "PHP-3.01" ]
pragma solidity ^0.5.0; import "./LeafC.sol"; contract LeafB is LeafC { uint leafB; }
Solidity
3
wbt/truffle
packages/truffle/test/sources/inheritance/contracts/LeafB.sol
[ "MIT" ]
# Copyright (C) 2005-2009, Parrot Foundation. =head1 Title PGE::Hs - Match and display PGE rules as Haskell expressions =head1 SYNOPSIS (You need to run C<make PGE-Hs.pbc> in F<compilers/pge> first.) .sub _main load_bytecode "PGE.pbc" load_bytecode "PGE/Hs.pir" $P0 = get_hll_global ["PG...
Parrot Internal Representation
4
winnit-myself/Wifie
runtime/parrot/library/PGE/Hs.pir
[ "Artistic-2.0" ]
HAI 1.2 I HAS A LIMIT ITZ 100 I HAS A SUMOFSQUARES ITZ 0 I HAS A SQUAREOFSUMS ITZ 0 IM IN YR LIFE UPPIN YR N WILE DIFFRINT N SUM OF LIMIT 1 SUMOFSQUARES R SUM OF SUMOFSQUARES PRODUKT OF N N SQUAREOFSUMS R SUM OF SQUAREOFSUMS N IM OUTTA YR LIFE SQUAREOFSUMS R PRODUKT OF SQUAREOFSU...
LOLCODE
3
LeartS/loleuler
006.lol
[ "MIT" ]
UPDATE hdb_catalog.hdb_table SET is_system_defined = 'false' WHERE table_schema = 'hdb_catalog' AND table_name = 'hdb_allowlist';
SQL
3
gh-oss-contributor/graphql-engine-1
server/src-rsr/migrations/17_to_16.sql
[ "Apache-2.0", "MIT" ]
module.exports = -> "foo"
CoffeeScript
1
bkucera2/cypress
packages/server/test/support/fixtures/projects/e2e/lib/foo.coffee
[ "MIT" ]
<%@ Page Language="C#" %> <%@ Import Namespace="System.IO" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server"> private const string HEADER = "<html>\n<head>\n<title>filesystembrowser</title>\n<style type=\"text/css\">...
ASP
5
laotun-s/webshell
web-malware-collection-13-06-2012/ASP/fileupload.aspx
[ "MIT" ]
#pragma once #include <cstdint> #include <memory> #include <queue> #include "envoy/common/random_generator.h" #include "envoy/common/time.h" #include "envoy/common/token_bucket.h" #include "envoy/config/grpc_mux.h" #include "envoy/config/subscription.h" #include "envoy/event/dispatcher.h" #include "envoy/grpc/status....
C
5
giantcroc/envoy
source/common/config/xds_mux/grpc_mux_impl.h
[ "Apache-2.0" ]
# This file is distributed under the same license as the Django package. # # Translators: # Jafry Hisham, 2021 msgid "" msgstr "" "Project-Id-Version: django\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-01-15 09:00+0100\n" "PO-Revision-Date: 2021-11-16 13:42+0000\n" "Last-Translator: Jafry Hisham\n" "Language...
Gettext Catalog
3
Joshua-Barawa/My-Photos
venv/lib/python3.8/site-packages/django/contrib/admin/locale/ms/LC_MESSAGES/djangojs.po
[ "PostgreSQL", "Unlicense" ]
.message { &.otr-ack { .info { color: lightgreen; &::before { display: inline-block; visibility: visible; content: "\e952"; font-family: 'fontello'; } } } }
CSS
3
subramanir2143/Rocket.Chat
app/otr/client/stylesheets/otr.css
[ "MIT" ]
module Libraries.Utils.Term import System.FFI %default total libterm : String -> String libterm s = "C:" ++ s ++ ", libidris2_support, idris_term.h" %foreign libterm "idris2_setupTerm" "jvm:setup,io/github/mmhelloworld/idrisjvm/runtime/Terminal" prim__setupTerm : PrimIO () %foreign libterm "idris2_getTerm...
Idris
3
ska80/idris-jvm
src/Libraries/Utils/Term.idr
[ "BSD-3-Clause" ]
((exe_name hello) (link_order (world hello)))
Common Lisp
0
JavascriptID/sourcerer-app
src/test/resources/samples/langs/Common Lisp/config.sexp
[ "MIT" ]
{ "@context": { "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", "rdfs": "http://www.w3.org/2000/01/rdf-schema#", "xsd": "http://www.w3.org/2001/XMLSchema#" }, "@graph": [ { "@id": "http://schema.org/downloadUrl", "@type": "rdf:Property", "http://schema.org/domainIncludes": ...
JSONLD
5
whiteslack/schemaorg
data/releases/7.01/schema.jsonld
[ "Apache-2.0" ]
library IEEE; use IEEE.std_logic_1164.all; use IEEE.numeric_std.all; entity regslice_both is GENERIC (DataWidth : INTEGER := 32); port ( ap_clk : IN STD_LOGIC; ap_rst : IN STD_LOGIC; data_in : IN STD_LOGIC_VECTOR (DataWidth-1 downto 0); vld_in : IN STD_LOGIC; ack_in : OUT STD_LOGIC; data_out...
VHDL
5
hito0512/Vitis-AI
Whole-App-Acceleration/apps/resnet50/build_flow/DPUCVDX8G_vck190/vck190_platform/hw/source/ip/isppipeline_accel/hdl/vhdl/regslice_core.vhd
[ "Apache-2.0" ]
: main prog #-1 begin over swap nextentrance dup not until pop pop ;
MUF
1
revarbat/mufsim
tests/nextentrance.muf
[ "BSD-2-Clause" ]
/obj/item/shot name = "shot" edged = TRUE icon = 'icons/objects/items/firearms/lead_shot.dmi' default_material_path = /datum/material/metal/lead /obj/item/shot/EndThrow(var/meters_per_second) if(meters_per_second > 1) // Fired from a gun. QDel(src)
DM
3
BloodyMan/Antimonium
code/objects/items/gun/gun_ammo.dm
[ "CC-BY-4.0" ]
import structs/ArrayList s := [ " %c%s%c,", "import structs/ArrayList", "s := [", "] as ArrayList<String>", "for (i in 1..3) s[i] println()", "for (l in s) s[0] printfln(34,l,34)", "for (i in 3..s size) s[i] println()", ] as ArrayList<String> for (i in 1..3) s[i] println() for (l in s) s[0] printfln(34,l...
ooc
2
MakeNowJust/quine
quine.ooc
[ "Beerware" ]
\* Copyright 2010-2011 Vasil S. Diadov defpackage.shen is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. defpackage.shen is distributed in th...
Shen
4
ajnavarro/language-dataset
data/github.com/vasil-sd/shen-libs/6512ba4fad752158470a92766b55e30591eae12f/utils/defpackage.shen
[ "MIT" ]
# Copyright 2016 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 applica...
Python
4
EricRemmerswaal/tensorflow
tensorflow/python/ops/nn_grad_test.py
[ "Apache-2.0" ]
MODULE_NAME='Cisco SX v1' (DEV vdv, DEV dv) DEFINE_CONSTANT TCP_PORT_TELNET = 23 MAX_CMD_LENGTH = 100 MAX_QUEUE_SIZE = 10 MAX_PARAM_LENGTH = 100 MAX_BUFFER_SIZE = 5000 MAX_CALLS = 5 // SNAPI LITE ///////////////////////////////////////////////////////////////// PWR_ON = 27 PWR_OFF ...
NetLinx
5
kielthecoder/amx
Cisco SX/Cisco SX v1.axs
[ "MIT" ]
lines(0); ilib_verbose(0); ierr = exec('loader.sce', 'errcatch'); if ierr <> 0 then disp(lasterror()); exit(ierr); end // Call our gcd() function x = 42; y = 105; g = gcd(x,y); printf("The gcd of %d and %d is %d\n",x,y,g); // Manipulate the Foo global variable // Get its default value (see in example.c) default...
Scilab
3
kyletanyag/LL-Smartcard
cacreader/swig-4.0.2/Examples/scilab/simple/runme.sci
[ "BSD-3-Clause" ]
benf_10 =: (10&^.@+&1@%) (1+i.9) first_digit =: monad : '{. "."0":y' NB. , first_digit"0 smoothed_cases fl_ix NB. by Roger Hui histogram =: (1+i.9) & (<: @ (#/.~) @ (i.@#@[ , I.)) mk_histogram =: monad : 'histogram , first_digit"0 y' NB. pd'type bar' NB. pd benf_10 NB. pd'show'
J
3
vmchale/coronavirus
fraud.ijs
[ "BSD-3-Clause" ]
' ' A minimalistic SN dump player. CON _clkmode = xtal1 + pll16x _xinfreq = 5_000_000 sdPins = 0 rightPin = 10 leftPin = 11 VAR byte buffer[64] OBJ SN : "SNEcog" SD : "fsrw" PUB Main | cont...
Propeller Spin
4
deets/propeller
libraries/community/p1/All/SNEcog v0.6/ExampleSnDumpPlay/ExampleSnDumpPlay.spin
[ "MIT" ]
particle_system explosion { src = "assets/particles/fire.png" blendmode = add acceleration = 1.000000 gravity = 0.000000,0.588997 velocity = 0.000000,-0.794998 spread = 720.000000 lifetime = 0.439000 lifetime_variance = 0.000000 colour = 255,255,255,255 random_initial_rotation = ...
Component Pascal
3
fallahn/crogine
samples/threat_level/assets/particles/explosion.cps
[ "FTL", "Zlib" ]
MODULE MainModule ! Main routine PROC main() ConfL\Off; SingArea\Wrist; ! Go to start position MoveAbsJ [[0, 0, 0, 0, 0, 0], [9E9, 9E9, 9E9, 9E9, 9E9, 9E9]], v100, fine, tool0; ! Go to programmed positions {} ! Go to end position MoveAbsJ [[0, 0, 0, 0, 0, 0], [9E9, 9E9, 9E9, 9E9, 9E9, 9E9]], v100,...
xBase
4
Bootsmaat/Mimic
mimic/scripts/postproc/ABB/RAPID/template.prg
[ "MIT" ]
scriptname CampLargeTentTriggerVolumeScript extends ObjectReference {Attach this script to custom large tent trigger volume activators.} import _CampInternal import CampUtil ObjectReference property ParentTent auto hidden {Assigned at runtime. The tent this trigger volume belongs to.} Event OnTriggerEnter(ObjectRefe...
Papyrus
4
chesko256/Campfire
Scripts/Source/CampLargeTentTriggerVolumeScript.psc
[ "MIT" ]
../../../feeds/telephony/net/asterisk-11.x
Logos
0
superice119/ud_work
youshi_sdk/package/feeds/telephony/asterisk-11.x
[ "MIT" ]
!define registerExtension "!insertmacro registerExtension" !define unregisterExtension "!insertmacro unregisterExtension" !define SHCNE_ASSOCCHANGED 0x8000000 !define SHCNF_IDLIST 0 ; Source = http://nsis.sourceforge.net/File_Association ; Patched for SABnzbd by swi-tch !macro registerExtension icon executable extens...
NSIS
4
smilers/sabnzbd
builder/win/nsis/Include/registerExtension.nsh
[ "MIT", "PSF-2.0", "0BSD" ]
inittab_file=Sökväg till inittab-fil,0
SystemVerilog
0
GalaxyGFX/webmin
inittab/config.info.sv
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
FROM nvidia/cuda:11.2.0-cudnn8-devel AS compile # Install dependencies ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update -y && apt-get install -y \ git \ cmake \ libsm6 \ libxext6 \ libxrender-dev \ python3 \ python3-pip \ python3-venv \ python3-dev \ python3-numpy \ gcc...
Dockerfile
4
boldsort/face_recognition
docker/gpu/Dockerfile
[ "MIT" ]
# ====================================================================================================================== # Shocks based on empirical impulse responses that we want to match # ====================================================================================================================== $import .....
GAMS
4
gemal/MAKRO
Analysis/Shocks_Main/VARshocks.gms
[ "MIT" ]
(* Copyright 2016 Yoichi Hirai Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wr...
Isabelle
5
pirapira/eth-isabelle
Parse.thy
[ "Apache-2.0" ]
httpService = new http(); httpService.setUrl("http://localhost:28139/?format=json&"); httpService.setMethod("GET"); httpService.addParam(type="header", name="Host", value="api.ipify.org"); httpService.addParam(type="header", name="Accept", value="*/*"); httpService.addParam(type="header", name="User-Agent", value="Gift...
ColdFusion
3
csperando/curlconverter
test/fixtures/cfml/get_charles_syntax.cfm
[ "MIT" ]
_ = require 'underscore' React = require "react" classnames = require 'classnames' {Actions, Contact} = require 'nylas-exports' {Menu, MenuItem} = require('electron').remote MAX_COLLAPSED = 5 class MessageParticipants extends React.Component @displayName: 'MessageParticipants' @propTypes: to: React.PropType...
CoffeeScript
4
cnheider/nylas-mail
packages/client-app/internal_packages/message-list/lib/message-participants.cjsx
[ "MIT" ]
\begin{code} open import Data.Empty using (⊥; ⊥-elim) open import Data.Sum using (_⊎_; inj₁; inj₂) open import Data.Product using (_×_; _,_; proj₁; proj₂) open import Function using (_∘_) open import Relation.Nullary using (¬_) \end{code} Two halves of de Morgan's laws hold intuitionistically. The other two halves ar...
Literate Agda
4
manikdv/plfa.github.io
extra/extra/Negation-notes.lagda
[ "CC-BY-4.0" ]
package Func; import Vector::*; // 参数:Vector 类型的变量 // 返回:返回 Vector 的长度 function Integer vectorLen(Vector#(n, td) vec) = valueOf(n); // 功能:把寄存器向量中的数据取出来,组成新的数据向量返回 // 参数:Vector#(n, Reg#(td)) 寄存器向量 // 返回:Vector#(n, td) function Vector#(n, td) regVector2Vector( Vector#(n, Reg#(td)) reg_vec ) provis...
Bluespec
5
Xiefengshang/BSV_Tutorial_cn
src/21.PolyFunc/Func.bsv
[ "MIT" ]
module.exports = { activateCallCount: 0, activationCommandCallCount: 0, initialize() {}, activate () { this.activateCallCount++ atom.commands.add('atom-workspace', 'activation-command-2', () => this.activationCommandCallCount++) }, deserializeMethod1 (state) { return { wasDeserializedBy...
JavaScript
3
Embodimentgeniuslm3/BDB11A0E2DE062D2E39E4C5301B2FE5E
spec/fixtures/packages/package-with-activation-commands-and-deserializers/index.js
[ "MIT" ]
use v6; say qq{ Problem 28 Starting with the number 1 and moving to the right in a clockwise direction a 5 by 5 spiral is formed as follows: 21 22 23 24 25 20 7 8 9 10 19 6 1 2 11 18 5 4 3 12 17 16 15 14 13 It can be verified that the sum of the numbers on the diagonals is 101. What is the sum of the num...
Perl6
4
Wikunia/hakank
perl6/euler28.p6
[ "MIT" ]
:less @import "library.less"; div.section { border: solid 1px blue; .rounded-border(5px); }
Scaml
4
maslovalex/scalate
scalate-less/src/test/resources/org/fusesource/scalate/filter/less/inline_include.scaml
[ "Apache-2.0" ]
/* Copyright © 2011, 2012 MLstate This file is part of OPA. OPA is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License, version 3, as published by the Free Software Foundation. OPA is distributed in the hope that it will be useful, ...
Opa
3
Machiaweliczny/oppailang
lib/stdlib/database/common/db_common.opa
[ "MIT" ]
import { useRouter } from 'next/router' import Link from 'next/link' export default function Page() { // eslint-disable-next-line @typescript-eslint/no-unused-vars const router = useRouter() return ( <> <p>hello world</p> <Link href="/another"> <a>to /another</a> </Link> </> ...
TypeScript
3
ottob/next.js
test/production/typescript-basic/app/pages/index.tsx
[ "MIT" ]
[b = "c" i] {}
CSS
0
vjpr/swc
css/parser/tests/fixture/esbuild/misc/Drl1Excz8WEwlfIfA2oRQg/input.css
[ "Apache-2.0", "MIT" ]
#tag Window Begin BotWindow ProfileWindow BackColor = "#Colors.UI.WindowBackColor" Backdrop = "" CloseButton = True Composite = False Frame = 0 FullScreen = False HasBackColor = True Height = 304 ImplicitInstance= T...
REALbasic
4
carlbennett/BNRBot
src/Windows/ProfileWindow.rbfrm
[ "MIT" ]
---------------------------------------------------------------------------------- -- Company: -- Engineer: -- -- Create Date: 24.05.2016 21:14:53 -- Design Name: -- Module Name: tb_main_design_icmp - Behavioral -- Project Name: -- Target Devices: -- Tool Versions: -- Description: -- -- Dependencie...
VHDL
4
hamsternz/FPGA_Webserver
testbenches/tb_main_design_icmp.vhd
[ "MIT" ]
#!./parrot -j # The Computer Language Shootout # http://shootout.alioth.debian.org/ # # Contributed by Joshua Isom # speed up from 1m25 to 6s by Leopold Toetsch .const int x = 0 .const int y = 1 .const int z = 2 .const int vx = 3 .const int vy = 4 .const int vz = 5 .const int m = 6 # save on repetition of code .mac...
Parrot
4
kragen/shootout
bench/nbody/nbody.parrot-2.parrot
[ "BSD-3-Clause" ]
package tlc2.tool; public aspect WorkerMonitorAspect perthis(callToRunMethod()) { private long threadStartTime, threadEndTime; pointcut callToRunMethod() : execution(* tlc2.tool.Worker.run(..)); before(): (callToRunMethod()) { threadStartTime = System.currentTimeMillis(); } after(): (callToRunMeth...
AspectJ
3
zwergziege/tlaplus
tlatools/org.lamport.tlatools/src-aj/tlc2/tool/WorkerMonitorAspect.aj
[ "MIT" ]
// Copyright 2010-2012 RethinkDB, all rights reserved. #ifndef CLUSTERING_ADMINISTRATION_MAIN_INITIAL_JOIN_HPP_ #define CLUSTERING_ADMINISTRATION_MAIN_INITIAL_JOIN_HPP_ #include <set> #include "arch/timing.hpp" #include "rpc/connectivity/cluster.hpp" /* `initial_joiner_t` is the class that `rethinkdb serve` and `ret...
C++
4
zadcha/rethinkdb
src/clustering/administration/main/initial_join.hpp
[ "Apache-2.0" ]
import React from 'react' import MobxDevTools, { setLogEnabled, setUpdatesEnabled, setGraphEnabled } from 'mobx-react-devtools' const DevTools = () => { if ( (window.env === 'development' || window.env === 'test') && !localStorage.noDevtools ) { setLogEnabled(true) setUpdatesEnabled(true) setGr...
JSX
4
bkucera2/cypress
packages/desktop-gui/src/lib/dev-tools.jsx
[ "MIT" ]
# This tests just quoted text within a contenteditable. # # For a test of the basic component itself see # contenteditable-component-spec.cjsx # _ = require "underscore" React = require "react" ReactDOM = require 'react-dom' ReactTestUtils = require('react-addons-test-utils') Fields = require('../lib/fields').default ...
CoffeeScript
5
cnheider/nylas-mail
packages/client-app/internal_packages/composer/spec/quoted-text-spec.cjsx
[ "MIT" ]
""" BCW0022-2.boo(31,23): BCW0022: WARNING: Boolean expression will always have the same value. BCW0022-2.boo(32,38): BCW0022: WARNING: Boolean expression will always have the same value. BCW0022-2.boo(44,4): BCW0022: WARNING: Boolean expression will always have the same value. BCW0022-2.boo(46,4): BCW0022: WARNING: Bo...
Boo
3
popcatalin81/boo
tests/testcases/warnings/BCW0022-2.boo
[ "BSD-3-Clause" ]
"""Define tests for the AirVisual component."""
Python
0
domwillcode/home-assistant
tests/components/airvisual/__init__.py
[ "Apache-2.0" ]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en-US"><head><title>Joplin Portable Help</title> <link rel="alternate" type="application/rss+xml" title="PortableApps.com" href="http://portableapps.com/feeds/general"> <link rel="SHORTCUT ICON" href="Ot...
HTML
3
asahiocean/joplin
packages/tools/PortableAppsLauncher/help.html
[ "MIT" ]
MODULE_NAME='Sharp LCD' (DEV vdv, DEV dv) // --------------------------------------------------------------------------- // Control module for Sharp LCD // Version 1 - 3/8/16 // // Channels: // 1 Initialize // 5 Power On/Off // 10 - 13 Input 1 - 4 // // Feedback: // 6 Power On/Off feedback // // ----------...
NetLinx
4
kielthecoder/amx
Sharp LCD/Sharp LCD.axs
[ "MIT" ]
/* Copyright © 2011, 2012, 2013 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, ...
Opa
5
Machiaweliczny/oppailang
lib/stdlib/apis/mongo/wire_protocol.opa
[ "MIT" ]
# This SJulia code is for testing the algorithm # for ReplaceRepeated. replacerepeated(ex_, rules_) := Module([res,res1,i,maxits = 100], (res = ReplaceAll(ex,rules); For(i=1, i<= maxits, i += 1, (res1 = ReplaceAll(res,rules); res = res1; ...
Objective-J
4
UnofficialJuliaMirrorSnapshots/Symata.jl-a906b1d5-d016-55c4-aab3-8a20cba0db2a
symata_test/replacerepeated.sj
[ "MIT" ]
S 0 387 * * * * * b235271fbc8a6c9d990037857189ee9a;size=22254 * S 1 374 * * * * * 7e02ae2e1e404d4e7c6035a6e374d29d;size=20728 * S 2 383 * * * * * 39392bbb9626a64e6663c05b70293e7c;size=11535 * S 3 384 * * * * * b970fcbdd71ad2a333f702c7ecfe7114;size=10907 * S 4 385 * * * * * a9d668eae33f9fd4484585d9fe52b05e;size=8638 * S...
UnrealScript
1
ic4f/tools-iuc
tools/vsearch/test-data/clustering_uc_result3.uc
[ "MIT" ]
package consulo.sandboxPlugin.lang.lexer; import java.util.*; import com.intellij.lexer.LexerBase; import com.intellij.psi.tree.IElementType; import consulo.sandboxPlugin.lang.psi.SandTokens; %% %public %class SandLexer %extends LexerBase %unicode %function advanceImpl %type IElementType %eof{ return; %eof} %stat...
JFlex
4
halotroop2288/consulo
sandbox/sand-language-plugin/src/main/java/consulo/sandboxPlugin/lang/lexer/_SandLexer.flex
[ "Apache-2.0" ]
defmodule Mix.Tasks.Phx.Gen do use Mix.Task @shortdoc "Lists all available Phoenix generators" @moduledoc """ Lists all available Phoenix generators. ## CRUD related generators The table below shows a summary of the contents created by the CRUD generators: | Task | Schema | Migration | Context | Co...
Elixir
5
faheempatel/phoenix
lib/mix/tasks/phx.gen.ex
[ "MIT" ]
<GameProjectFile> <PropertyGroup Type="Scene" Name="TestNullProjectNode" ID="691cf8eb-87a6-4100-b178-07ab0993261f" Version="2.1.0.0" /> <Content ctype="GameProjectContent"> <Content> <Animation Duration="0" Speed="1.0000" /> <ObjectData Name="Scene" FrameEvent="" Tag="114" ctype="SingleNodeObjectDat...
Csound
3
rh101/engine-x
tests/cpp-tests/Resources/ActionTimeline/TestNullProjectNode.csd
[ "MIT" ]