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 |
|---|---|---|---|---|---|
default
{
state_entry()
{
llSay( 0, "I am Alive!");
}
}
| LSL | 2 | defraged/opensim | bin/assets/ScriptsAssetSet/DefaultSay.lsl | [
"BSD-3-Clause"
] |
//
// Float6.mm
//
// Created by Giles Payne on 2020/02/05.
//
#import "Float6.h"
#import "Mat.h"
@implementation Float6 {
cv::Vec6f native;
}
-(float)v0 {
return native[0];
}
-(void)setV0:(float)v {
native[0] = v;
}
-(float)v1 {
return native[1];
}
-(void)setV1:(float)v {
native[1] = v;
}
... | Objective-C++ | 4 | lefatoum2/opencv | modules/core/misc/objc/common/Float6.mm | [
"Apache-2.0"
] |
func $liori32 (
var %i i32, var %j i32
) i32 {
return (
lior i32(dread i32 %i, dread i32 %j))}
func $liori64 (
var %i i64, var %j i64
) i32 {
return (
lior i64(dread i64 %i, dread i64 %j))}
# EXEC: %irbuild Main.mpl
# EXEC: %irbuild Main.irb.mpl
# EXEC: %cmp Main.irb.mpl Main.irb.irb.mpl... | Maple | 3 | harmonyos-mirror/OpenArkCompiler-test | test/testsuite/irbuild_test/I0051-mapleall-irbuild-edge-lior/Main.mpl | [
"MulanPSL-1.0"
] |
{#
Copyright © 2017 Fabian Franz
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following dis... | Volt | 3 | marcquark/plugins | benchmarks/iperf/src/opnsense/mvc/app/views/OPNsense/iperf/index.volt | [
"BSD-2-Clause"
] |
CON
CR = 13 'carriage return character value
NULL = 0 'null terminator for strings
DQ = 34 'double quote character
DAT
cog long 0 'cog flag/id
'The following locations will be filled by the start() procedure
param1 long 0 'holds address of the txr... | Propeller Spin | 5 | deets/propeller | libraries/community/p1/All/MultiPortUART with C# (windows) client/CogTestOfMultiUART.spin | [
"MIT"
] |
package
{
import mx.core.ByteArrayAsset;
[Embed(source="binary_data_windows", mimeType="application/octet-stream")]
public class GraphShadWindows extends ByteArrayAsset
{
}
}
| ActionScript | 2 | OsmanDere/metasploit-framework | external/source/exploits/CVE-2014-0515/GraphShadWindows.as | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
public final class Derived /* Derived*/ implements Base {
@org.jetbrains.annotations.NotNull()
public java.lang.String getBoo();// getBoo()
public Derived(@org.jetbrains.annotations.NotNull() Base);// .ctor(Base)
} | Java | 4 | Mu-L/kotlin | compiler/testData/asJava/lightClasses/delegation/Property.java | [
"ECL-2.0",
"Apache-2.0"
] |
REBOL [
System: "REBOL [R3] Language Interpreter and Run-time Environment"
Title: "REBOL 3 Mezzanine: Function Helpers"
Rights: {
Copyright 2012 REBOL Technologies
REBOL is a trademark of REBOL Technologies
}
License: {
Licensed under the Apache License, Version 2.0
See: http://www.apache.org/licenses/LICE... | Rebol | 5 | 0branch/r3 | src/mezz/mezz-func.reb | [
"Apache-2.0"
] |
--TEST--
Bug #73291 (imagecropauto() $threshold differs from external libgd)
--EXTENSIONS--
gd
--FILE--
<?php
$src = imagecreatetruecolor(255, 255);
$white = imagecolorallocate($src, 255, 255, 255);
imagefilledrectangle($src, 0, 0, 254, 254, $white);
for ($i = 254; $i > 0; $i--) {
$color = imagecolorallocate($src... | PHP | 3 | NathanFreeman/php-src | ext/gd/tests/bug73291.phpt | [
"PHP-3.01"
] |
////////////////////////////////////////////////////////////////////////////////
// =RVWMO axioms=
module riscv
// See the RVWMO Chapter in the RISC-V Non-Privileged ISA Specification
// Preserved Program Order
fun ppo : Event->Event {
// same-address ordering
po_loc :> Store
+ (AMO + StoreConditional) <: rfi
... | Alloy | 5 | pratapsingh1729/riscv-semantics | riscv.als | [
"BSD-3-Clause"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | CSS | 2 | sbj42/vscode | src/vs/workbench/browser/parts/notifications/media/notificationsCenter.css | [
"MIT"
] |
// error-pattern: can't capture dynamic environment in a fn item
fn foo() {
let x: isize;
fn bar() { log(debug, x); }
}
fn main() { foo(); }
| Rust | 2 | Eric-Arellano/rust | src/test/ui/bad/bad-env-capture.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
.icon-tokenpass {
display: inline-block;
width: 24px;
height: 0.8em;
margin-bottom: -1px;
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MzIgMzgxLjUiPjxkZWZzPjxzdHlsZT4uY2xzLTF7ZmlsbDojNDE3MGEwO308L3N0eWxlPjwvZGVmcz48dGl0bGU+VG9rZW5seV9JY2... | CSS | 3 | subramanir2143/Rocket.Chat | app/tokenpass/client/styles.css | [
"MIT"
] |
exec("swigtest.start", -1);
try
// This call must fail because the constructor does not exist
Spam = new_Spam()
swigtesterror();
catch
end
exec("swigtest.quit", -1);
| Scilab | 3 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/abstract_inherit_runme.sci | [
"BSD-3-Clause"
] |
module openconfig-p4rt {
yang-version "1";
prefix "oc-p4rt";
namespace "http://openconfig.net/yang/p4rt";
import openconfig-extensions { prefix oc-ext; }
import openconfig-interfaces { prefix oc-if; }
import openconfig-platform { prefix oc-platform; }
import openconfig-system-grpc { prefix oc-grpc; }
... | YANG | 5 | wenovus/public | release/models/p4rt/openconfig-p4rt.yang | [
"Apache-2.0"
] |
export * from './input-highlight.directive';
export * from './validate.directive';
| TypeScript | 1 | coreyscherbing/angular | aio/content/examples/styleguide/src/02-08/app/shared/index.ts | [
"MIT"
] |
; Scopes
;-------
(statement_block) @scope
(function) @scope
(arrow_function) @scope
(function_declaration) @scope
(method_definition) @scope
(for_statement) @scope
(for_in_statement) @scope
(catch_clause) @scope
; Definitions
;------------
(variable_declarator
name: (identifier) @definition.var)
(import_specifie... | Scheme | 3 | hmac/nvim-treesitter | queries/ecma/locals.scm | [
"Apache-2.0"
] |
.countries-and-states {
line-color: #024;
line-width: 2;
line-join: round;
}
| CartoCSS | 1 | nimix/carto | test/rendering/issue_273.mss | [
"Apache-2.0"
] |
data {
int<lower=0> N; // number of observations
int<lower=0> D; // number of days
int<lower=0> O; // number of officers
int<lower=0> W; // number of day of week
int<lower=0> M; // number of months
int<lower=0> H; // number of holidays
int<lower=0> P; // number of periods
int day[N];
int offic... | Stan | 4 | stan-dev/stancon_talks | 2018/Contributed-Talks/01_auerbach/model1.stan | [
"CC-BY-4.0",
"BSD-3-Clause"
] |
breed [personen persoon]
patches-own [ d-score pd-score path? access? exit? ]
to setup
clear-all
reset-ticks
ask patches [
set path? false
set access? true
set exit? false
]
set-default-shape personen "person"
end
to d-path
clear-turtles
ask patches with [access?] [
set path? false
... | NetLogo | 4 | eelcodijkstra/website | assets/evacueer_klaslokaal.nlogo | [
"MIT"
] |
{
"@id": "http://greggkellogg.net/foaf#me",
"http://purl.org/dc/terms/created": {
"@value": "1957-02-27",
"@type": "http://www.w3.org/2001/XMLSchema#date"
}
}
| JSONLD | 3 | fsteeg/json-ld-api | tests/toRdf/0006-in.jsonld | [
"W3C"
] |
-- Unit tests for simple NOT IN predicate subquery across multiple columns.
--
-- See not-in-single-column-unit-tests.sql for an introduction.
--
-- Test cases for multi-column ``WHERE a NOT IN (SELECT c FROM r ...)'':
-- | # | does subquery include null? | do filter columns contain null? | a = c? | b = d? | row in... | SQL | 5 | OlegPt/spark | sql/core/src/test/resources/sql-tests/inputs/subquery/in-subquery/not-in-unit-tests-multi-column.sql | [
"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 y... | Scilab | 0 | Grosskopf/openoffice | main/sd/qa/unoapi/sd.sce | [
"Apache-2.0"
] |
open prod
definition tst1 : nat × Prop × nat × Prop := (1, true, 2, false)
definition tst2 : nat × nat × nat := (1, 2, 3)
| Lean | 3 | ericrbg/lean | tests/lean/run/prod_notation.lean | [
"Apache-2.0"
] |
<p>Included file #1</p>
{include "include2.latte", 'localvar' => 20}
{include ../include3.latte, }
<textarea>
pre
</textarea>
Parent: {basename($this->getReferringTemplate()->getName())}/{$this->getReferenceType()}
| Latte | 2 | TheDigitalOrchard/latte | tests/Latte/templates/subdir/include1.latte | [
"BSD-3-Clause"
] |
# Copyright (C) 2004-2009, Parrot Foundation.
# $Id$
newclass P0, "Japh"
new P0, "Japh"
set I0, 0
set S0, P0[I0]
print S0
inc I0
set S0, P0[I0]
print S0
end
.namespace ["Japh"]
.pcc_sub :vtable get_string_keyed:
get_params "0,0", P1, I1
unless I1, x
set S1, "Parrot Hacker\n"
set_returns "0", S1
returncc
... | Parrot Assembly | 3 | allisonrandal/pcc_testing | examples/japh/japh1.pasm | [
"Artistic-2.0"
] |
--TEST--
Bug #24766 (strange result array from unpack)
--FILE--
<?php
error_reporting(E_ALL);
$a = unpack('C2', "\0224V");
$b = array(1 => 18, 2 => 52);
var_dump($a, $b);
$k = array_keys($a);
$l = array_keys($b);
var_dump($k, $l);
$i=$k[0];
var_dump($a[$i]);
$i=$l[0];
var_dump($b[$i]);
?>
--EXPECT--
array(2) {
[1]=... | PHP | 3 | NathanFreeman/php-src | ext/standard/tests/array/bug24766.phpt | [
"PHP-3.01"
] |
{{#isBusy this}}{{/isBusy}} | HTML | 0 | DBatOWL/tutorials | libraries-2/src/test/resources/handlebars/person.html | [
"MIT"
] |
//Compile with mxmlc Vickers.as -o Vickers.swf
package
{
import flash.display.Sprite;
import flash.system.Capabilities;
import flash.utils.ByteArray;
import __AS3__.vec.Vector;
import flash.system.ApplicationDomain;
import avm2.intrinsics.memory.*;
public class Vickers extends Sprite
{
pub... | ActionScript | 1 | OsmanDere/metasploit-framework | external/source/exploits/CVE-2014-0497/Vickers.as | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
-- CreateTable
CREATE TABLE "Blog" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"viewCount" INTEGER NOT NULL
);
| SQL | 3 | safareli/prisma | packages/migrate/src/__tests__/fixtures/baseline-sqlite/prisma/migrations/20201113150239_/migration.sql | [
"Apache-2.0"
] |
{-
Swagger Petstore
This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
OpenAPI spec versio... | Elm | 4 | Nirostar/swagger-codegen | samples/client/petstore/elm/src/Data/Amount.elm | [
"Apache-2.0"
] |
--TEST--
JIT ASSIGN_DIM_OP: Cyclic dependency
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
--FILE--
<?php
$a = null;
$a[] .= $a;
var_dump($a);
?>
--EXPECT--
array(1) {
[0]=>
string(0) ""
}
| PHP | 2 | NathanFreeman/php-src | ext/opcache/tests/jit/assign_dim_op_004.phpt | [
"PHP-3.01"
] |
#lang scribble/doc
@(require scribble/manual
(for-label browser
browser/browser-unit
browser/browser-sig
browser/htmltext
browser/external
browser/tool
racket/base
racket/contrac... | Racket | 4 | rrthomas/drracket | drracket/browser/browser.scrbl | [
"Apache-2.0",
"MIT"
] |
(kicad_pcb (version 20171130) (host pcbnew 5.1.6)
(general
(thickness 1.6)
(drawings 59)
(tracks 820)
(zones 0)
(modules 102)
(nets 74)
)
(page A4)
(layers
(0 F.Cu signal)
(31 B.Cu signal)
(32 B.Adhes user)
(33 F.Adhes user)
(34 B.Paste user)
(35 F.Paste user)
... | KiCad | 4 | ankitp4t3l/ferris | 0.1/high/ferris.kicad_pcb | [
"CC0-1.0"
] |
--TEST--
Property types must be invariant
--FILE--
<?php
interface X {}
interface Y {}
class A {
public X&Y $prop;
}
class B extends A {
public X&Y&Z $prop;
}
?>
--EXPECTF--
Fatal error: Type of B::$prop must be X&Y (as in class A) in %s on line %d
| PHP | 3 | NathanFreeman/php-src | Zend/tests/type_declarations/intersection_types/variance/invalid_invariance1.phpt | [
"PHP-3.01"
] |
#!/bin/bash
# Copyright 2017 The Kubernetes 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 ... | Shell | 3 | leileiwan/kubernetes | cluster/addons/fluentd-elasticsearch/fluentd-es-image/entrypoint.sh | [
"Apache-2.0"
] |
# Group Network status
## api/v0.2/networkStatus [/networkStatus]
### Get network status [GET]
Returns the status of the network
+ Response 200 (application/json)
+ Attributes
+ request (Request, required)
+ status: success (string, required)
+ result (NetworkStatus, required{{isResultNul... | API Blueprint | 3 | smishraIOV/ri-aggregation | infrastructure/api-docs/blueprint/groups/status.apib | [
"Apache-2.0",
"MIT"
] |
package gw.lang.spec_old.bugs
uses java.util.concurrent.Callable
@gw.testharness.DoNotVerifyResource
enhancement Errant_BugDumpingGroundTestEnhancement : BugDumpingGroundTest {
function sampleEnhancementMethod() : Callable<Callable<String>> {
return \-> new Callable<String>() {
var x : String = this.getTe... | Gosu | 4 | tcmoore32/sheer-madness | gosu-test/src/test/gosu/gw/lang/spec_old/bugs/Errant_BugDumpingGroundTestEnhancement.gsx | [
"Apache-2.0"
] |
FROM debian:bullseye-slim
RUN apt-get update && apt-get install -y gcc libc6-dev --no-install-recommends
COPY . /usr/src/
WORKDIR /usr/src/
RUN gcc -g -Wall -static nnp-test.c -o /usr/bin/nnp-test
RUN chmod +s /usr/bin/nnp-test
| Dockerfile | 4 | Avijit009/moby | contrib/nnp-test/Dockerfile | [
"Apache-2.0"
] |
html {
color: red;
}
HTML {
color: orange;
}
.firstGrade {
color: green;
}
.FIRSTGRADE {
color: yellow;
}
#brack3ts {
color: blue;
}
#BRACK3TS {
color: black;
} | CSS | 3 | ravitejavalluri/brackets | test/spec/CSSUtils-test-files/simple.css | [
"MIT"
] |
#pragma once
#include <functional>
class SecondaryMouseButtonsHook
{
public:
SecondaryMouseButtonsHook(std::function<void()>);
void enable();
void disable();
private:
static HHOOK hHook;
static std::function<void()> callback;
static LRESULT CALLBACK SecondaryMouseButtonsProc(int, WPARAM, LPAR... | C | 4 | szlatkow/PowerToys | src/modules/fancyzones/FancyZonesLib/SecondaryMouseButtonsHook.h | [
"MIT"
] |
class C {
y: number;
constructor(y: number) { } // ok
}
var c: C;
var r = c.y;
class D {
y: number;
constructor(public y: number) { } // error
}
var d: D;
var r2 = d.y;
class E {
y: number;
constructor(private y: number) { } // error
}
var e: E;
var r3 = e.y; // error
... | TypeScript | 4 | nilamjadhav/TypeScript | tests/cases/conformance/classes/constructorDeclarations/constructorParameters/constructorParameterProperties2.ts | [
"Apache-2.0"
] |
@import './_variables.scss'
// Block
.v-data-footer
display: flex
flex-wrap: wrap
align-items: center
font-size: $data-footer-font-size
padding: $data-footer-padding
.v-btn
color: inherit
// Elements
.v-data-footer__icons-before
.v-btn:last-child
+ltr()
margin-right: $data-footer-icons-be... | Sass | 3 | vanillamasonry/vuetify | packages/vuetify/src/components/VDataIterator/VDataFooter.sass | [
"MIT"
] |
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M11.13,4.57l-8.... | XML | 3 | semoro/androidx | compose/material/material/icons/generator/raw-icons/rounded/details.xml | [
"Apache-2.0"
] |
(declare-const str String)
(declare-const index Int)
(assert (> index 4))
(assert (= (str.at str index) "c"))
(assert (= (str.at str index) "d"))
(check-sat)
| SMT | 2 | mauguignard/cbmc | regression/smt2_strings/str_at_input_unsat/str_at_input_unsat.smt2 | [
"BSD-4-Clause"
] |
#!/bin/ash
#
# Copyright 2016 Google, Inc. 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 applic... | AGS Script | 4 | jll-labs/cloud-builders | go/go.ash | [
"Apache-2.0"
] |
[qsort.b -- quicksort
(c) 2016 Daniel B. Cristofani
http://brainfuck.org/]
>>+>>>>>,[>+>>,]>+[--[+<<<-]<[<+>-]<[<[->[<<<+>>>>+<-]<<[>>+>[->]<<[<]
<-]>]>>>+<[[-]<[>+<-]<]>[[>>>]+<<<-<[<<[<<<]>>+>[>>>]<-]<<[<<<]>[>>[>>
>]<+<<[<<<]>-]]+<<<]+[->>>]>>]>>[.>>>]
[This program sorts input bytes via quicksort.]
| Brainfuck | 2 | RubenNL/brainheck | examples/sort/quicksort.bf | [
"Apache-2.0"
] |
{% set result = {"Question": "Quieres Café?"} %}
test:
module.run:
- name: test.echo
- text: "{{ result | yaml }}"
| SaltStack | 3 | byteskeptical/salt | tests/integration/files/file/base/jinja_filters/yaml.sls | [
"Apache-2.0"
] |
in=: 1!:1 <'1.in'
depths=: __ ". > LF cut in
p1=: +/ 2 </\ depths
p2=: +/ 2 </\ 3 +/\ depths
| J | 3 | alan-turing-institute/advent-of-code-2021 | day-01/j_ots22/day1.ijs | [
"MIT"
] |
'reach 0.1';
export const main = Reach.App(
{}, [], () => {
possible(false);
possible(false); // Multiple failures display
}
);
| RenderScript | 2 | chikeabuah/reach-lang | hs/t/n/possible_false.rsh | [
"Apache-2.0"
] |
#!/bin/bash
set -e
echo '# linux arm7'
GOARM=7 GOARCH=arm GOOS=linux go build
echo '# linux arm5'
GOARM=5 GOARCH=arm GOOS=linux go build
echo '# windows 386'
GOARCH=386 GOOS=windows go build
echo '# windows amd64'
GOARCH=amd64 GOOS=windows go build
echo '# darwin'
GOARCH=amd64 GOOS=darwin go build
echo '# freebsd'
GO... | Shell | 3 | mpursley/cortex-tools | vendor/github.com/jessevdk/go-flags/check_crosscompile.sh | [
"Apache-2.0"
] |
<%= t('.missing') do |translation, key| %>
<%= key %>: <%= translation %>
<% end %>
| HTML+ERB | 3 | zvkemp/rails | actionview/test/fixtures/translations/templates/missing_yield_block.erb | [
"MIT"
] |
<div class="alert alert-error displayed_alert">Deleting a table will delete all its data. This action cannot be reversed.</div>
<div class="alert alert-error error_answer"></div>
{{#if single_delete}}
<h4>Are you sure you want to delete this table:</h4>
{{else}}
<h4>Are you sure you wan... | Handlebars | 3 | zadcha/rethinkdb | admin/static/handlebars/remove_table-modal.hbs | [
"Apache-2.0"
] |
# Copyright (C) 2005-2010, Parrot Foundation.
.loadlib 'io_ops'
.sub main :main
.local pmc stdin
.local string line
stdin = getstdin
# Skip to block THREE
beginwhile_1:
line = readline stdin
$S0 = chopn line, -6
if $S0 != ">THREE" goto beginwhile_1
line = ''
.local string seq
beginwhile_2:
line = chopn line... | Parrot Internal Representation | 4 | winnit-myself/Wifie | examples/shootout/knucleotide.pir | [
"Artistic-2.0"
] |
import { value } from "package";
it("should import reexported export correctly", () => {
expect(value).toBe(42);
});
| JavaScript | 4 | 1shenxi/webpack | test/cases/scope-hoisting/side-effects-11662/index.js | [
"MIT"
] |
- dashboard: google_ads_pulse
title: Google Ads Pulse
layout: newspaper
preferred_viewer: dashboards-next
elements:
- title: Spend
name: Spend
explore: ad_basic_stats
type: single_value
fields: [fact.total_cost, last_fact.total_cost]
filters:
fact.date_period_latest: 'Yes'
limit:... | LookML | 4 | dbrinegar-4mile/block-google-ads-transfer | lookml_dashboards/google_ads_pulse.dashboard.lookml | [
"MIT"
] |
#pragma once
#include "envoy/buffer/buffer.h"
#include "envoy/common/pure.h"
namespace Envoy {
namespace Extensions {
namespace IoSocket {
namespace UserSpace {
/**
* The interface for the peer as a writer and supplied read status query.
*/
class IoHandle {
public:
virtual ~IoHandle() = default;
/**
* Set ... | C | 4 | dcillera/envoy | source/extensions/io_socket/user_space/io_handle.h | [
"Apache-2.0"
] |
"oneart.wav" diskin 0.06 reverse
dup 0.97 10000 revsc drop
| SourcePawn | 1 | brandenbyers/Sporth | examples/reverse.sp | [
"MIT"
] |
/*
* Irresistible Gaming (c) 2018
* Developed by Lorenc
* Module: anticheat\carparticlespam.pwn
* Purpose: detection for car particle spamming (where doors particles spam)
*/
/* ** Includes ** */
#include < YSI\y_hooks >
/* ** Error Checking ** */
DEFINE_HOOK_REPLACEMENT ( Vehicle, Veh );
/* ** Variab... | PAWN | 4 | omcho420/gta-open | gamemodes/core/anti-cheat/car_particle_spam.pwn | [
"Apache-2.0"
] |
#Signature file v4.1
#Version 1.45
CLSS public java.lang.Object
cons public init()
meth protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
meth protected void finalize() throws java.lang.Throwable
meth public boolean equals(java.lang.Object)
meth public final java.lang.Class<?> getClass()
m... | Standard ML | 2 | timfel/netbeans | java/j2ee.metadata.model.support/nbproject/org-netbeans-modules-j2ee-metadata-model-support.sig | [
"Apache-2.0"
] |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {CldrLocaleData} from './cldr-data';
import {fileHeader} from './file-header';
import {stringify} from './obje... | TypeScript | 5 | yuchenghu/angular-cn | packages/common/locales/generate-locales-tool/locale-base-currencies.ts | [
"MIT"
] |
A
1000
DECAL
DECAL_RGBA 0.25 placeholder.png
| Clean | 0 | aussig/X-Plane-Backup-Library | support/placeholders/placeholder.dcl | [
"MIT"
] |
it("should load", () => import("./test.js"));
| JavaScript | 1 | fourstash/webpack | test/configCases/entry/issue-12562/app.js | [
"MIT"
] |
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build" ToolsVersion="4.0">
<PropertyGroup>
<ProductVersion>3.5</ProductVersion>
<ProjectGuid>{8dac177a-64eb-4175-ac9c-e6b121b6f34b}</ProjectGuid>
<OutputType>L... | Oxygene | 3 | nchevsky/remobjects-sugar | Sugar/Sugar.Cooper.Android.oxygene | [
"BSD-3-Clause"
] |
fileFormatVersion: 2
guid: 5999bd61b5ca4e5ba50b20b2e3a7f9b2
timeCreated: 1507865451 | Unity3D Asset | 0 | shunfy/ET | Unity/Assets/Editor/Helper.meta | [
"MIT"
] |
/* Autogenerated with ../tools/generate_variables at Thu Feb 25 23:43:21 CET 2016
*
* Do not modify, modify VARIABLES and rerun ../tools/generate_variables instead.
*/
sub vcl_recv
{
if (req.restarts == 0) {
unset req.http.X-VSF-Severity;
unset req.http.X-VSF-Return;
unset req.http.X-VSF-Arg;
un... | VCL | 2 | Sudavar/VSF | vcl/build/variables.vcl | [
"BSD-2-Clause"
] |
2018-12-13 18:42:52 -- irc: connecting to server irc.morethan.tv/6667...
2018-12-13 18:42:52 -- irc: connected to irc.morethan.tv/6667 (94.242.62.16)
2018-12-13 18:42:52 -- eu2.irc.morethan.tv: *** Looking up your hostname...
2018-12-13 18:42:52 -- eu2.irc.morethan.tv: *** Found your hostname (pool-74-105-95-132.nwrknj... | IRC log | 1 | Brettm12345/dotfiles | weechat/logs/irc.server.morethantv.weechatlog | [
"MIT"
] |
namespace X1
inductive wrap (A : Type) : Type
| mk : A → wrap
inductive type : Type
| mk : list type → type
| refinement : type → (bool → type) → type
end X1
namespace X2
inductive type : Type
| mk : (bool → type) → list type → ℕ → type
| refinement : list type → type → ℕ → (∀ (b : bool), b = tt → type) → (bool → ... | Lean | 4 | ericrbg/lean | tests/lean/run/1657.lean | [
"Apache-2.0"
] |
h = <['foo => 'bar, 'bar => 'baz, 'baz => 42.5]>
h at: 'foo . println
h['bar] println
h['baz] println
h = <[ 2 + 2 => 5 ]>
h[4] println
| Fancy | 2 | bakkdoor/fancy | examples/hashes.fy | [
"BSD-3-Clause"
] |
pragma solidity ^0.5.0;
contract LeafC {
uint leafC;
}
| Solidity | 1 | wbt/truffle | packages/truffle/test/sources/inheritance/contracts/LeafC.sol | [
"MIT"
] |
/*
Copyright (c) 2013 Albert "Alberth" Hofkamp
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, merge, publish, di... | Yacc | 4 | rmnvgr/CorsixTH | SpriteEncoder/parser.y | [
"MIT"
] |
// run-fail
// error-pattern:1 == 2
// ignore-emscripten no processes
fn main() {
assert!(1 == 2);
}
| Rust | 2 | Eric-Arellano/rust | src/test/ui/panics/panic.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
(define backchain
Conc Assumptions -> (backchain* [Conc] Assumptions Assumptions))
(define backchain*
[] _ _ -> proved
[[P & Q] | Goals] _ Assumptions
-> (backchain* [P Q | Goals] Assumptions Assumptions)
[P | Goals] [[P <= | Subgoal] | _] Assumptions
<- (backchain* (append Subgoal Go... | Shen | 4 | WilliamStone/Shen.java | shen/test/proplog version 1.shen | [
"Unlicense"
] |
# Flag queries for sinkhole domains
# CrowdStrike 2015
# josh.liburdi@crowdstrike.com
# @jshlbrd
module DNS;
export {
redef record DNS::Info += {
sinkhole: bool &log &default=F;
};
}
type sinkhole_idx: record {
ip: string;
};
global sinkhole_list: set[string] = set();
const sinkhole_list_location =... | Bro | 4 | LaudateCorpus1/cs-bro | bro-scripts/sinkholes/main.bro | [
"BSD-2-Clause"
] |
; RUN: llc -mtriple=thumbv8m.main %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-V8M
; RUN: llc -mtriple=armv8 %s -o - | FileCheck %s --check-prefix=CHECK-V8
; CHECK-LABEL: pre_inc_ldr
; CHECK: ldr{{.*}}, [r0, #4]!
define i32* @pre_inc_ldr(i32* %base, i32 %a) {
%addr = getelementptr i32, i32* %base... | LLVM | 4 | medismailben/llvm-project | llvm/test/CodeGen/ARM/indexed-mem.ll | [
"Apache-2.0"
] |
spring.social.facebook.appId=1715784745414888
spring.social.facebook.appSecret=abefd6497e9cc01ad03be28509617bf0
spring.thymeleaf.cache=false
server.servlet.register-default-servlet=true
spring.sql.init.mode=always
spring.jpa.defer-datasource-initialization=true | INI | 1 | DBatOWL/tutorials | spring-security-modules/spring-social-login/src/main/resources/application.properties | [
"MIT"
] |
package unit.issues;
class Issue4246 extends Test {
public static function and() { }
public static function _and() { }
function test() {
and();
_and();
noAssert();
}
} | Haxe | 1 | wiltonlazary/haxe | tests/unit/src/unit/issues/Issue4246.hx | [
"MIT"
] |
--TEST--
Bug #80462: Nullsafe operator tokenize with TOKEN_PARSE flag fails
--EXTENSIONS--
tokenizer
--FILE--
<?php
foreach (PhpToken::tokenize('<?php $foo = $a?->b();', TOKEN_PARSE) as $token) {
echo $token->getTokenName(), "\n";
}
?>
--EXPECT--
T_OPEN_TAG
T_VARIABLE
T_WHITESPACE
=
T_WHITESPACE
T_VARIABLE
T_NULL... | PHP | 4 | NathanFreeman/php-src | ext/tokenizer/tests/bug80462.phpt | [
"PHP-3.01"
] |
--TEST--
Bug #65419 (Inside trait, self::class != __CLASS__)
--FILE--
<?php
trait abc
{
static function def()
{
echo self::class, "\n";
echo __CLASS__, "\n";
}
}
class ghi
{
use abc;
}
ghi::def();
?>
--EXPECT--
ghi
ghi
| PHP | 4 | thiagooak/php-src | Zend/tests/bug65419.phpt | [
"PHP-3.01"
] |
//This file is part of "GZE - GroundZero Engine"
//The permisive licence allow to use GZE for free or commercial project (Apache License, Version 2.0).
//For conditions of distribution and use, see copyright notice in Licence.txt, this license must be included with any distribution of the code.
package {
import G... | Redcode | 3 | VLiance/GZE | src/Lib_GZ/Gfx/Clip/ButtonImg.cw | [
"Apache-2.0"
] |
f(x) = m*x
fit f(x) 'stats.csv' using 2:1 via m
set term png size 1920,1080
set output "stats_nonorm_plot.png"
set title "Time versus RLimit"
set xlabel "Time in seconds"
set xtics 2.5
set ylabel "RLimit"
set ytics 10000000
set grid
set timestamp
plot 'stats.csv' using 2:1 with points, f(x)
quit
| Gnuplot | 3 | SwampertX/FStar | .scripts/statistics_nonorm_plot.gnu | [
"Apache-2.0"
] |
Released GMRY*4*6 SEQ #5
Extracted from mail message
**KIDS**:GMRY*4.0*6^
**INSTALL NAME**
GMRY*4.0*6
"BLD",5017,0)
GMRY*4.0*6^GEN. MED. REC. - I/O^0^3041004^y
"BLD",5017,1,0)
^^2^2^3041004^^
"BLD",5017,1,1,0)
This patch will correct two problems within the
"BLD",5017,1,2,0)
INTAKE/OUTPUT application as reported.
"BL... | Genshi | 3 | josephsnyder/VistA-1 | Packages/General Medical Record - IO/Patches/GMRY_4.0_6/GMRY-4_SEQ-5_PAT-6.kid | [
"Apache-2.0"
] |
from fastapi import FastAPI, Request
app = FastAPI(
servers=[
{"url": "https://stag.example.com", "description": "Staging environment"},
{"url": "https://prod.example.com", "description": "Production environment"},
],
root_path="/api/v1",
root_path_in_servers=False,
)
@app.get("/app")... | Python | 4 | Aryabhata-Rootspring/fastapi | docs_src/behind_a_proxy/tutorial004.py | [
"MIT"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 4 | sbj42/vscode | src/vs/workbench/browser/parts/statusbar/statusbarActions.ts | [
"MIT"
] |
local helpers = require('test.functional.helpers')(after_each)
local clear = helpers.clear
local NIL = helpers.NIL
local exec_lua = helpers.exec_lua
local eq = helpers.eq
describe('vim.json.decode function', function()
before_each(function()
clear()
end)
it('parses null, true, false', function()
eq(NIL,... | Lua | 5 | uga-rosa/neovim | test/functional/lua/json_spec.lua | [
"Vim"
] |
// Test for diagnostic improvement issue #76547
// edition:2018
use std::{
future::Future,
task::{Context, Poll}
};
use std::pin::Pin;
pub struct ListFut<'a>(&'a mut [&'a mut [u8]]);
impl<'a> Future for ListFut<'a> {
type Output = ();
fn poll(self: Pin<&mut Self>, _cx: &mut Context) -> Poll<Self::Out... | Rust | 4 | Eric-Arellano/rust | src/test/ui/issues/issue-76547.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
@import ObjectiveC;
@import CoreGraphics;
@protocol AVVideoCompositionInstruction<NSObject>
@required
@property (nonatomic, readonly) BOOL enablePostProcessing;
@end
@interface AVVideoCompositionInstruction : NSObject </*NSSecureCoding, NSCopying, NSMutableCopying,*/ AVVideoCompositionInstruction>
/* Indicates the b... | C | 4 | lwhsu/swift | test/Inputs/clang-importer-sdk/usr/include/AVFoundation.h | [
"Apache-2.0"
] |
// (c) Copyright 1995-2019 Xilinx, Inc. All rights reserved.
//
// This file contains confidential and proprietary information
// of Xilinx, Inc. and is protected under U.S. and
// international copyright and other intellectual property
// laws.
//
// DISCLAIMER
// This disclaimer is not a license and does not grant ... | Verilog | 4 | trustcoinmining/FMx-PG195-PCIe-DMA | xdma_0_ex.srcs/sources_1/ip/xdma_0/xdma_0.veo | [
"MIT"
] |
/* eslint-disable no-restricted-syntax */
export default function getThemeProps(params) {
const { theme, name, props } = params;
if (
!theme ||
!theme.components ||
!theme.components[name] ||
!theme.components[name].defaultProps
) {
return props;
}
const output = { ...props };
// Reso... | JavaScript | 4 | good-gym/material-ui | packages/material-ui/src/styles/getThemeProps.js | [
"MIT"
] |
//SPDX-License-Identifier: MIT
pragma solidity ^0.4.18;
// These are out of alphabetic order
// Solc will alphabetize them, we should restore source-order.
contract SimpleOrdered {
function theFirst() public pure {}
function second() public pure {}
function andThird() public pure {}
}
| Solidity | 3 | santanaluiz/truffle | packages/compile-solidity/test/sources/v0.4.x/SimpleOrdered.sol | [
"MIT"
] |
ruleset did-sov-SLfEi9esrjzybysFxQZbfq {
meta {
name "TicTacToe"
description <<
Implements protocol for Tic Tac Toe over DIDComm
did:sov:SLfEi9esrjzybysFxQZbfq;spec/tictactoe/1.0
>>
use module io.picolabs.wrangler alias wrangler
use module org.sovrin.agent alias agent
shares __test... | KRL | 5 | Picolab/TicTacToe | 0.51.1/krl/did-sov-SLfEi9esrjzybysFxQZbfq.krl | [
"MIT"
] |
<!-- $pageTitle: The Kit Language -->
<section>
<h1><!-- $pageTitle --></h1>
<p>
<!-- @include "loremipsum" -->
</p>
</section> | Kit | 1 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Kit/demo.kit | [
"MIT"
] |
#!/bin/bash
echo "Testing ${docker_image:=grpc_interop_node:a53aa5e3-b548-4566-b5a8-6d15c1315b32}"
docker run -i --rm=true -w /var/local/git/grpc --net=host --name interop_client_node_00c688f2-57da-4023-89f3-46b1f7b5869f $docker_image bash -l -c "node src/node/interop/interop_client.js --server_host=grpc-test.sandbox.g... | Groff | 3 | samotarnik/grpc | tools/interop_matrix/testcases/node__v1.0.1 | [
"Apache-2.0"
] |
# Find optimal strategy for row player
# Row and Column definitions
set Columns := { 0 .. 2 };
set Rows := { "00", "01", "10", "11" };
# Parameter (game matrix)
param a[Rows*Columns] :=
| 0, 1, 2 |
|"00"| 0, 0, 0 |
|"01"| -1, 1, -1 |
|"10"| -1, 1, 1 |
|"11"| 0, -... | Zimpl | 4 | ArielMant0/ko2017 | sheet11/task28/maximin.zpl | [
"MIT"
] |
#include <iostream>
using namespace std;
#include "rectangle.h"
main()
Rectangle rect
int w, h
? "Input rectangle width: " w
? "Input rectangle height: " h
rect.set_values(w, h)
! "Rectangle area =" rect.area()
return 0 | COBOL | 2 | saviour07/CPY | Examples/Class/main.cpy | [
"MIT"
] |
pub main
coginit(0, @entry, 0)
dat
org 0
entry
_set
add objptr, #4
rdlong _var01, objptr
add objptr, #4
add _var01, objptr
wrbyte arg01, _var01
sub objptr, #8
_set_ret
ret
objptr
long @@@objmem
COG_BSS_START
fit 496
objmem
long 0[3]
org COG_BSS_START
_var01
res 1
arg01
res 1
fit 496
| Parrot Assembly | 3 | archivest/spin2cpp | Test/Expect/stest066.pasm | [
"MIT"
] |
field = GF(2**8, name='a', modulus=x^8+x^4+x^3+x^2+1, repr='int')
| Sage | 3 | mbrysa/RustySecrets | tests/fixtures/gf256/common.sage | [
"BSD-3-Clause"
] |
insheet using /Users/fulton/projects/statsmodels/statsmodels/datasets/macrodata/macrodata.csv, clear
gen tq = yq(year, quarter)
format tq %tq
tsset tq
cusum6 cpi m1, rr(rr) cs(cusum) lw(lw) uw(uw) cs2(cusum2) lww(lww) uww(uww) noplot
outsheet rr-lww using results_rls_stata.csv, comma replace
// Section for restrict... | Stata | 4 | madhushree14/statsmodels | statsmodels/regression/tests/results/test_rls.do | [
"BSD-3-Clause"
] |
package io.swagger.client.model {
[XmlRootNode(name="SpecialModelName")]
public class SpecialModelName {
[XmlElement(name="$special[property.name]")]
public var $Special[propertyName]: Number = 0;
public function toString(): String {
var str: String = "SpecialModelName: ";... | ActionScript | 4 | wwadge/swagger-codegen | samples/client/petstore/flash/flash/src/io/swagger/client/model/SpecialModelName.as | [
"Apache-2.0"
] |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | JavaScript | 4 | good-gym/material-ui | packages/material-ui-icons/lib/ViewQuiltRounded.js | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.