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 |
|---|---|---|---|---|---|
package com.alibaba.fastjson.deserializer.issues3796.bean;
import java.util.List;
public class ObjectN {
private List<Long> a;
private List<Long> b;
private List<CommonObject3> c;
private List<CommonObject3> d;
private List<Long> e;
private List<String> f;
private List<Long> g;
private Lis... | Java | 3 | Alanwang2015/fastjson | src/test/java/com/alibaba/fastjson/deserializer/issues3796/bean/ObjectN.java | [
"Apache-2.0"
] |
--TEST--
readline(): Basic test
--CREDITS--
Milwaukee PHP User Group
#PHPTestFest2017
--EXTENSIONS--
readline
--FILE--
<?php
var_dump(readline('Enter some text:'));
?>
--STDIN--
I love PHP
--EXPECTF--
%Astring(10) "I love PHP"
| PHP | 4 | NathanFreeman/php-src | ext/readline/tests/readline_basic.phpt | [
"PHP-3.01"
] |
module DemoSensorP
{
provides interface M16c60AdcConfig;
provides interface Init;
uses interface GeneralIO as Pin;
uses interface GeneralIO as AVcc;
}
implementation
{
command error_t Init.init()
{
call Pin.makeInput();
// TODO(henrik) This Vref should be turned on in connection to the A/D
// c... | nesC | 4 | mtaghiza/tinyos-main-1 | tos/platforms/mulle/DemoSensorP.nc | [
"BSD-3-Clause"
] |
# methods.fy
# Examples of methods definitions, and method overriding in fancy
class Foo {
def bar {
Console println: "version 1"
}
}
f = Foo new
f bar # prints: version 1
# redefine Foo#bar
class Foo {
def bar {
Console println: "version 2"
}
}
f bar # prints: version 2
# redefine Foo#bar again
cl... | Fancy | 3 | bakkdoor/fancy | examples/methods.fy | [
"BSD-3-Clause"
] |
PROGRAM
PRAGMA('project(#pragma link(libcurl.lib))')
INCLUDE('libcurl.inc')
MAP
init_q()
kill_q()
add_url_to_q(STRING pUrl)
extract_name(STRING pUrl), STRING
add_transfer(TCurlMultiClass cm, LONG i)
add_output(STRING pText)
INCLUDE('cwutil.inc')
END
multi ... | Clarion | 4 | mikeduglas/libcurl | examples/10-at-a-time/ten-at-a-time.clw | [
"curl"
] |
data {
int<lower=1> N;
int<lower=0> y[N];
}
parameters {
real<lower=0> lambda;
}
model {
lambda ~ exponential(0.2);
y ~ poisson(lambda);
}
generated quantities {
real log_lik[N];
int y_rep[N];
for (n in 1:N) {
y_rep[n] = poisson_rng(lambda);
log_lik[n] = poisson_lpmf(y[n] | lambda);
}
}
| Stan | 4 | tonyctan/BDA_R_demos | demos_rstan/ppc/poisson-simple.stan | [
"BSD-3-Clause"
] |
--TEST--
Bug #47516 (nowdoc cannot be embedded in heredoc but can be embedded in double quote)
--FILE--
<?php
$s='substr';
$htm=<<<DOC
{$s(<<<'ppp'
abcdefg
ppp
,0,3)}
DOC;
echo "$htm\n";
$htm=<<<DOC
{$s(<<<ppp
abcdefg
ppp
,0,3)}
DOC;
echo "$htm\n";
$htm="{$s(<<<'ppp'
abcdefg
ppp
,0,3)}
";
echo "$htm\n";
?>
--EXPE... | PHP | 4 | NathanFreeman/php-src | Zend/tests/bug47516.phpt | [
"PHP-3.01"
] |
use @pony_exitcode[None](code: I32)
actor Main
new create(env: Env) =>
var r: I32 = 0
while true do
try
if Bool(false) then error end
break
then
r = 42
end
end
@pony_exitcode(r)
| Pony | 4 | rtpax/ponyc | test/libponyc-run/try-then-clause-break/main.pony | [
"BSD-2-Clause"
] |
"""Tests for the awair component."""
| Python | 0 | domwillcode/home-assistant | tests/components/awair/__init__.py | [
"Apache-2.0"
] |
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
[ChromeOnly,
Constructor(DOMStri... | WebIDL | 4 | tlively/wasm-bindgen | crates/web-sys/webidls/enabled/GroupedHistoryEvent.webidl | [
"Apache-2.0",
"MIT"
] |
/* Mac, ips and network of the MB, that acts as a router in this configuration (it must be the gateway)
* check around line 95 to be a transparent ARP proxy instead.
* In this example, clients are on the 10.220/16 network, and servers on the 10.221/16 network.
* We have no load balancer in this configuration (though... | Click | 4 | MassimoGirondi/fastclick | conf/middleclick/middlebox-tcp-ids.click | [
"BSD-3-Clause-Clear"
] |
package unit.issues;
import haxe.Json;
class Issue4723 extends unit.Test {
function test() {
var t = new NoNormalMethods();
eq(10, t.test());
var t = new HasNormalMethod();
eq(10, t.test());
eq(20, t.test2());
}
}
private class NoNormalMethods {
public function new() {}
public dynamic function test() ... | Haxe | 4 | wiltonlazary/haxe | tests/unit/src/unit/issues/Issue4723.hx | [
"MIT"
] |
resource "aws_security_group" "elb_sec_group" {
description = "Allow traffic from the internet to ELB port 80"
vpc_id = "${var.vpc_id}"
ingress {
from_port = 80
to_port = 80
protocol = "tcp"
cidr_blocks = ["${split(",", var.allowed_cidr_blocks)}"]
}
egress {
from_port = 0
... | HCL | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/HCL/main.tf | [
"MIT"
] |
main() {
fp := fopen("test.txt", "w")
assert(fp != null)
fprintf(fp, "Hello, ffigen!\n")
fclose(fp)
printf("test.txt has been written to disk\n")
}
| mupad | 3 | jturner/muon | ffigen/example.mu | [
"MIT"
] |
#!perl
#
# Tests for user-specified delimiter functions
# These tests first appeared in version 1.20.
use strict;
use warnings;
use Test::More tests => 19;
use_ok 'Text::Template' or exit 1;
# (1) Try a simple delimiter: <<..>>
# First with the delimiters specified at object creation time
our $V = $V = 119;
my $temp... | Perl | 5 | pmesnier/openssl | external/perl/Text-Template-1.56/t/delimiters.t | [
"Apache-2.0"
] |
Clojure support for Lounge
define ['./eval', './docOrg', 'bluebird', './gen', 'immutable', './editor', './editorSupport', 'acorn', 'lodash', 'jquery'], (Eval, DocOrg, Bluebird, Gen, Immutable, Editor, EditorSupport, Acorn, _, $)->
{
setLounge
parseIt
Scope
lineColumnStrOffset
... | Literate CoffeeScript | 5 | zot/Leisure | src/wispSupport.litcoffee | [
"Zlib"
] |
use std::fs;
use std::path::Path;
use std::process::{self, Command};
#[track_caller]
pub(crate) fn try_hard_link(src: impl AsRef<Path>, dst: impl AsRef<Path>) {
let src = src.as_ref();
let dst = dst.as_ref();
if let Err(_) = fs::hard_link(src, dst) {
fs::copy(src, dst).unwrap(); // Fallback to copy... | Rust | 5 | mbc-git/rust | compiler/rustc_codegen_cranelift/build_system/utils.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
-- | Tests for stuff under Hasura.Eventing hierarchy
module Hasura.EventingSpec (spec) where
import Control.Concurrent.STM.TVar
import Data.HashMap.Strict qualified as Map
import Data.Set qualified as Set
import Data.Time.Clock
import Hasura.Eventing.EventTrigger
import Hasura.Eventing.ScheduledTrigger
import Hasura.P... | Haskell | 4 | eazyfin/graphql-engine | server/src-test/Hasura/EventingSpec.hs | [
"Apache-2.0",
"MIT"
] |
functions {
// declare C++ functions
real getCubicHittingTime(real[] theta, real t0, real t1, real threshold, int NMAX, real TOL);
real getMax(real[] theta, real t0, real t1, int NMAX, real TOL);
// coag system
real[] dz_dt(real t, real[] z, real[] theta, real[] x_r, int[] x_i) {
real lambda = ... | Stan | 5 | pourzanj/StanCon2018_Coag | stan/fit_test_eq.stan | [
"MIT"
] |
//===--- Fingerprint.cpp - A stable identity for compiler data --*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | C++ | 4 | gandhi56/swift | lib/Basic/Fingerprint.cpp | [
"Apache-2.0"
] |
---
id: 587d7fb8367417b2b2512c11
title: Eliminare molti documenti con model.remove()
challengeType: 2
forumTopicId: 301538
dashedName: delete-many-documents-with-model-remove
---
# --description--
`Model.remove()` è utile per eliminare tutti i documenti corrispondenti ai criteri indicati.
# --instructions--
Modific... | Markdown | 4 | fcastillo-serempre/freeCodeCamp | curriculum/challenges/italian/05-back-end-development-and-apis/mongodb-and-mongoose/delete-many-documents-with-model.remove.md | [
"BSD-3-Clause"
] |
example {α : Type} {p q : α → Prop} {x : α} (h : ∀ y, p y → q y) (hx : q x) :
∀ y, x = y ∨ p y → q y
| x (or.inr p) := h x p
| ._ (or.inl rfl) := hx
| Lean | 3 | ericrbg/lean | tests/lean/run/eqn_compiler_variable_or_inaccessible.lean | [
"Apache-2.0"
] |
// unistd.hb
import sys.types;
extern void _exit(int status);
extern pid_t fork(void);
extern pid_t getpid(void);
extern pid_t getppid(void);
extern unsigned int sleep(unsigned int secs);
| Harbour | 4 | ueki5/cbc | import/unistd.hb | [
"Unlicense"
] |
ruleset id.streetcred.redir {
global {
prefix = re#^id.streetcred://launch/[?]c_i=.+#
}
//
// convert streetcred invitation into one acceptable to Agent Pico
//
rule accept_streetcred_invitation {
select when sovrin new_invitation
url re#(https://redir.streetcred.id/.+)# setting(url)
pre {
... | KRL | 4 | Picolab/G2S | krl/id.streetcred.redir.krl | [
"MIT"
] |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: src/proto/grpc/testing/echo_messages.proto
namespace Grpc\Testing;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>grpc.testi... | PHP | 4 | arghyadip01/grpc | src/php/tests/qps/generated_code/Grpc/Testing/ResponseParams.php | [
"Apache-2.0"
] |
apiVersion: release-notes/v2
kind: bug-fix
area: traffic-management
# issue is a list of GitHub issues resolved in this note.
issue:
- https://github.com/istio/istio/issues/35404
- 35404
releaseNotes:
- |
**Fixed** an issue causing stale endpoints for service entry selecting pods
| YAML | 2 | rveerama1/istio | releasenotes/notes/fix-se-stale-ep.yaml | [
"Apache-2.0"
] |
-- @shouldFailWith NoInstanceFound
module Main where
import Safe.Coerce (coerce)
recToRec :: forall r s. { x :: Int | r } -> { x :: Int | s }
recToRec = coerce
| PureScript | 3 | andys8/purescript | tests/purs/failing/CoercibleOpenRowsDoNotUnify.purs | [
"BSD-3-Clause"
] |
//
// Example code - use without restriction.
//
IMPORT $;
IMPORT Std;
BldSF := SEQUENTIAL(
Std.File.CreateSuperFile($.DeclareData.SFname),
Std.File.CreateSuperFile($.DeclareData.SKname),
Std.File.StartSuperFileTransaction(),
Std.File.AddSuperFile($.DeclareData.SFname,$.DeclareData.SubFile1),
Std.File.AddSupe... | ECL | 2 | miguelvazq/HPCC-Platform | docs/ECLProgrammersGuide/PRG_Mods/ECL Code Files/IndexSuperFile3.ecl | [
"Apache-2.0"
] |
<div class="socialbtn socialbtn-facebook">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id... | MTML | 2 | movabletype/mt-theme-jungfrau | themes/jungfrau/templates/template_660.mtml | [
"MIT"
] |
/*
* Copyright (C) 2010 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | Java | 4 | GhineaAlex/zxing | core/src/test/java/com/google/zxing/oned/rss/expanded/decoders/AbstractDecoderTest.java | [
"BSD-3-Clause-No-Nuclear-Warranty"
] |
#!/usr/bin/perl -wT
use strict;
use warnings;
use CGI;
my $cgi = new CGI;
my $csp = $cgi->param('csp');
my $plugin = $cgi->param('plugin');
my $log = $cgi->param('log');
my $type = $cgi->param('type');
if ($type) {
$type = qq/type="$type"/;
}
print qq,Content-Type: text/html; charset=UTF-8
Content-Security-Policy:... | Perl | 3 | zealoussnow/chromium | third_party/blink/web_tests/http/tests/security/contentSecurityPolicy/resources/echo-object-data.pl | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
<?Lassoscript
// Last modified 11/11/07 by ECL, Landmann InterActive
/*
Tagdocs;
{Tagname= PushIt }
{Description= Pushes content from the server to the browser. }
{Author= Unknown }
{AuthorEmail= }
{ModifiedBy= }
{ModifiedByEmail= }
{Date= }
{Usage= PushIt: 'output this string' }
{ExpectedResults=... | Lasso | 4 | fourplusone/SubEthaEdit | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/LassoStartup/PushIt.lasso | [
"MIT"
] |
Scriptname vSCM_MetaQuestScript extends Quest
{Do initialization and track variables for scripts}
;--=== Imports ===--
Import Utility
Import Game
;--=== Properties ===--
Actor Property PlayerRef Auto
Float Property ModVersion Auto Hidden
String Property ModName = "Smarter Combat Music" Auto Hidden
Message Prop... | Papyrus | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Papyrus/vSCM_MetaQuestScript.psc | [
"MIT"
] |
;;; editor/multiple-cursors/autoload/evil-mc.el -*- lexical-binding: t; -*-
;;;###if (featurep! :editor evil)
;;;###autoload
(defun +multiple-cursors/evil-mc-toggle-cursors ()
"Toggle frozen state of evil-mc cursors."
(interactive)
(unless (evil-mc-has-cursors-p)
(user-error "No cursors exist to be toggled")... | Emacs Lisp | 4 | leezu/doom-emacs | modules/editor/multiple-cursors/autoload/evil-mc.el | [
"MIT"
] |
logging.level.root=ERROR
logging.level.com.baeldung.integrationtesting=ERROR
| INI | 1 | DBatOWL/tutorials | spring-boot-modules/spring-boot-security/src/test/resources/application.properties | [
"MIT"
] |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
Describe "Assembly loaded in a separate AssemblyLoadContext should not be seen by PowerShell type resolution" -Tags "CI" {
BeforeAll {
$codeVersion1 = @'
using System.Reflection;
[assembly: AssemblyVersion("1.0.0.0")]... | PowerShell | 4 | rdtechie/PowerShell | test/powershell/engine/Basic/Assembly.LoadedInSeparateALC.Tests.ps1 | [
"MIT"
] |
p('Bonjour Spring') | Smarty | 0 | nicchagil/spring-framework | spring-webmvc/src/test/resources/org/springframework/web/servlet/view/groovy/i18n_fr.tpl | [
"Apache-2.0"
] |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="13008000">
<Property Name="NI.LV.All.SourceOnly" Type="Bool">true</Property>
<Item Name="My Computer" Type="My Computer">
<Property Name="IOScan.Faults" Type="Str"></Property>
<Property Name="IOScan.NetVarPeriod" Type="UInt">100</Property>... | LabVIEW | 3 | JKISoftware/JKI-SMO-Templates | src/DAQmx templates/SimpleDAQmx.lvproj | [
"BSD-3-Clause"
] |
{
"name": "something"
}
| JSON | 0 | 1shenxi/webpack | test/configCases/web/unique-jsonp/package.json | [
"MIT"
] |
//---------------------------------------------------------------------------//
// Copyright (c) 2017 Kristian Popov <kristian.popov@outlook.com>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
// See http://b... | OpenCL | 0 | rajeev02101987/arangodb | 3rdParty/boost/1.71.0/libs/compute/test/data/invalid_program.cl | [
"Apache-2.0"
] |
.package-level-imported-to-app {
background-color: blue
}
| Stylus | 0 | joseconstela/meteor | tools/tests/apps/app-using-stylus/packages/my-package/package-export.styl | [
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] |
@0xfb9a160831eee9bb;
struct AnnotationStruct {
test @0: Int32;
}
annotation test1(*): Text;
annotation test2(*): AnnotationStruct;
annotation test3(*): List(AnnotationStruct);
annotation test4(*): List(UInt16);
$test1("TestFile");
struct TestAnnotationOne $test1("Test") { }
struct TestAnnotationTwo $test2(test = ... | Cap'n Proto | 3 | p4l1ly/pycapnp | test/annotations.capnp | [
"BSD-2-Clause"
] |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="17008000">
<Item Name="My Computer" Type="My Computer">
<Property Name="server.app.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.control.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.tcp.ena... | LabVIEW | 2 | luferau/labview-offline-maps | labview/OfflineMap.lvproj | [
"MIT"
] |
Private
'box implementations private!
Alias BoolObject=monkey.boxes.BoolObject
Alias IntObject=monkey.boxes.IntObject
Alias FloatObject=monkey.boxes.FloatObject
Alias StringObject=monkey.boxes.StringObject
Alias ArrayObject=monkey.boxes.ArrayObject
Const ARRAY_PREFIX:="monkey.boxes.ArrayObject<"
Public
'Bitmasks r... | Monkey | 4 | Regal-Internet-Brothers/webcc-monkey | webcc.data/modules/reflection/reflection.monkey | [
"Zlib"
] |
--TEST--
Bug #79441 Segfault in mb_chr() if internal encoding is unsupported
--EXTENSIONS--
mbstring
--FILE--
<?php
mb_internal_encoding("utf-7");
try {
mb_chr(0xd800);
} catch (\ValueError $e) {
echo $e->getMessage() . \PHP_EOL;
}
?>
--EXPECT--
mb_chr() does not support the "UTF-7" encoding
| PHP | 3 | NathanFreeman/php-src | ext/mbstring/tests/bug79441.phpt | [
"PHP-3.01"
] |
should = require 'chai'.should()
global.should contain fields = (require './containsFields').contains fields
global.(x) should equal (y) = should.equal (x) (y)
global.(x) should be truthy = should.ok (x)
global.(x) should be falsy = should.ok (@not x)
| PogoScript | 3 | featurist/pogoscript | test/assertions.pogo | [
"BSD-2-Clause"
] |
.. tabs::
.. tab:: Rolling Release
This is the rolling release PPA.
It will always upgrade your installation and you will always receive the latest-and-greatest eCAL version.
.. code-block:: bash
sudo add-apt-repository ppa:ecal/ecal-latest
sudo apt-get update
... | EmberScript | 3 | SirArep/ecal | doc/extensions/resource/ppa_tabs.rst.em | [
"Apache-2.0"
] |
Lazy Loading AngularJS
<nav>
<a routerLink="/">Home</a>
<a routerLink="/users">Users</a>
<a routerLink="/notfound">404 Page</a>
</nav>
<router-outlet></router-outlet>
| HTML | 2 | coreyscherbing/angular | aio/content/examples/upgrade-lazy-load-ajs/src/app/app.component.html | [
"MIT"
] |
# DO NOT EDIT THIS FILE. This file will be overwritten when re-running go-raml.
using Go = import "/go.capnp";
@0xa7e23d857e502785;
$Go.package("main");
$Go.import("main");
enum EnumAdminClearanceLevel {
low @0;
high @1;
}
| Cap'n Proto | 3 | mrpotes/go-raml | codegen/capnp/fixtures/struct/golang/EnumAdminClearanceLevel.capnp | [
"BSD-2-Clause"
] |
instruct!
countries do
countries.each do |country|
country do
name { cdata!(country.name) }
code { cdata!(country.code) }
continent { cdata!(country.continent_name) }
capital { cdata!(country.capital) }
population country.population
boundaries do
north country.north
... | Ox | 3 | JackDanger/ox-builder | benchmarks/templates/countries.ox | [
"MIT"
] |
Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.StringTokenizerTest do
use ExUnit.Case, async: true
defp var({var, _, nil}), do: var
defp aliases({:__aliases__, _, [alias]}), do: alias
test "tokenizes vars" do
assert Code.string_to_quoted!("_12") |> var() == :_12
assert Code.string_... | Elixir | 5 | doughsay/elixir | lib/elixir/test/elixir/kernel/string_tokenizer_test.exs | [
"Apache-2.0"
] |
#!perl
use 5.008001;
use strict;
use warnings;
use blib;
use Getopt::Long;
use Net::SMTP;
=head1 NAME
smtp.self - mail a message via smtp
=head1 DESCRIPTION
C<smtp.self> will attempt to send a message to a given user
=head1 OPTIONS
=over 4
=item -debug
Enabe the output of dubug information
=item -help
... | Self | 4 | gitpan/libnet | demos/smtp.self | [
"Barr"
] |
pub trait Trait {
const CONST: u32;
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/issues/auxiliary/issue-41549.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
.. _inspection_examples:
Inspection
----------
Examples related to the :mod:`sklearn.inspection` module.
| Text | 0 | emarkou/scikit-learn | examples/inspection/README.txt | [
"BSD-3-Clause"
] |
; In this case, we will work with turtles, not patches.
; Specifically with two types of turtles
breed[nodes node] ; to represent the nodes of the network
breed[searchers searcher] ; to represent the agents that will make the search
; We don't need any extra property in the nodes. All the information will be s... | NetLogo | 5 | fsancho/IA | 03. Informed Search/A-star Turtles Geometic Network.nlogo | [
"MIT"
] |
//////////////////////////////////////////////////////////////////////
//
// CLASS_CH.prg
//
//
// Contents:
// constant for the dynamic creation of classes
//
//////////////////////////////////////////////////////////////////////
// default
DEFINE CLASS_HIDDEN := 0x0001
DEFINE CLASS_PROTECTED ... | xBase | 3 | orangesocks/XSharpPublic | Runtime/XSharp.XPP/Defines/Class_CH.prg | [
"Apache-2.0"
] |
package {
import flash.display.SimpleButton;
public class MyButton extends SimpleButton {
public function MyButton() {
trace("///MyButton constructor!");
}
}
}
| ActionScript | 3 | Sprak1/ruffle | tests/tests/swfs/avm2/simplebutton_symbolclass/MyButton.as | [
"Apache-2.0",
"Unlicense"
] |
{{
$Id: note_player.spin 14 2011-12-08 03:12:21Z pedward $
Author: Perry Harrington
Copyright: (c) 2011 Perry Harrington
=======================================================================
Sound player for Propeller, ported from Arduino to use the
Arduino_light SPIN object.
The songs play in order and re... | Propeller Spin | 4 | deets/propeller | libraries/community/p1/All/Arduino-compatible LIGHT/Auxiliary_Files/note_player.spin | [
"MIT"
] |
Call:
lm(formula = y ~ x)
Residuals:
1 2 3 4 5 6
3.3333 -0.6667 -2.6667 -2.6667 -0.6667 3.3333
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -9.3333 2.8441 -3.282 0.030453 *
x 7.0000 0.7303 9.585 0.000662 ***
---
Signif. codes: 0 ‘... | R | 3 | websharks/ace-builds | demo/kitchen-sink/docs/r.r | [
"BSD-3-Clause"
] |
--TEST--
Bug #81048 (phpinfo(INFO_VARIABLES) "Array to string conversion")
--FILE--
<?php
$_ENV = [];
$_SERVER = ['foo' => ['bar' => ['baz' => 'qux']]];
array_walk_recursive($_SERVER, function($value, $key) {
// NOP
});
phpinfo(INFO_VARIABLES);
?>
--EXPECT--
phpinfo()
PHP Variables
Variable => Value
$_SERVER['... | PHP | 3 | NathanFreeman/php-src | ext/standard/tests/bug81048.phpt | [
"PHP-3.01"
] |
#!/usr/bin/env perl
##
## Author......: See docs/credits.txt
## License.....: MIT
##
use strict;
use warnings;
use Crypt::RC4;
use Digest::SHA qw (sha1);
use Encode;
sub module_constraints { [[-1, -1], [-1, -1], [0, 15], [32, 32], [-1, -1]] }
sub module_generate_hash
{
my $word = shift;
my $salt = shift;
... | Perl | 5 | Masha/hashcat | tools/test_modules/m09800.pm | [
"MIT"
] |
sub Main()
layoutGroup = createObject("roSGNode", "LayoutGroup")
print "layoutGroup node type:" type(layoutGroup)
print "layoutGroup node subtype:" layoutGroup.subtype()
print "layoutGroup node layoutDirection:" layoutGroup.layoutDirection
print "layoutGroup node horizAlignment:" layoutGroup.horizAl... | Brightscript | 3 | lkipke/brs | test/e2e/resources/components/LayoutGroup.brs | [
"MIT"
] |
class Time {
def Time duration: block {
"""
@block @Block to be called & timed.
@return @Float@ that is the duration (in seconds) of calling @block.
Calls @block and times the runtime duration of doing so in seconds.
Example:
Time duration: { Thread sleep: 1 } # => >= 1.0
"""
... | Fancy | 4 | bakkdoor/fancy | lib/time.fy | [
"BSD-3-Clause"
] |
INSERT INTO `orm_user`(`id`,`name`,`password`,`salt`,`email`,`phone_number`) VALUES (1, 'user_1', 'ff342e862e7c3285cdc07e56d6b8973b', '412365a109674b2dbb1981ed561a4c70', 'user1@xkcoding.com', '17300000001');
INSERT INTO `orm_user`(`id`,`name`,`password`,`salt`,`email`,`phone_number`) VALUES (2, 'user_2', '6c6bf02c8d5d3... | SQL | 1 | Evan43789596/spring-boot-demo | spring-boot-demo-orm-mybatis/src/main/resources/db/data.sql | [
"MIT"
] |
Not a Solidity file.
| Solidity | 1 | gammy55/linguist | test/fixtures/Generic/sol/nil/ignored1.sol | [
"MIT"
] |
import devWarning from '../_util/devWarning';
export function validProgress(progress: number | undefined) {
if (!progress || progress < 0) {
return 0;
}
if (progress > 100) {
return 100;
}
return progress;
}
export function getSuccessPercent({
success,
successPercent,
}: {
success?: {
prog... | TypeScript | 4 | vazhalomidze/ant-design | components/progress/utils.ts | [
"MIT"
] |
#ifndef NW_CONTENT_RENDER_HOOKS_H_
#define NW_CONTENT_RENDER_HOOKS_H_
namespace content {
class RenderWidget;
}
namespace nw {
// renderer
// ref in base/message_loop/message_pumpuv_mac.mm
void KickNextTick();
// ref in content/renderer/in_process_renderer_thread.cc
void LoadNodeSymbols();
//
// implemented in nw... | C | 3 | frank-dspeed/nw.js | src/renderer/nw_content_renderer_hooks.h | [
"MIT"
] |
{-
When we construct data types, we tend to produce tagged
descriptions, i.e. those that start with a finite sum of
possible constructors. These admit induction principles
in a nicer form than that given by the standard machinery.
Let's derive such induction principles generically.
-}
make TagDesc := Sig (E ... | PigLatin | 5 | mietek/epigram | test/NiceInductionPrinciple.pig | [
"MIT"
] |
(ns todomvc.components.todos-list
(:require [todomvc.components.todo-item :as todo-item]))
(defn component [todos]
[:ul.todo-list
(for [todo todos]
^{:key (:id todo)}
[todo-item/component todo])])
| Clojure | 4 | dtelaroli/todomvc | examples/reagent/src/cljs/todomvc/components/todos_list.cljs | [
"MIT"
] |
#N canvas 770 110 527 451 12;
#X text 33 410 see also:;
#X obj 142 410 makenote;
#X msg 68 234 60 64;
#X msg 117 234 60 0;
#X msg 161 234 62 64;
#X msg 209 234 62 0;
#X text 236 352 Output is in the printout window.;
#X msg 224 284 clear;
#X obj 56 21 bag;
#X msg 217 259 flush;
#X obj 102 410 poly;
#X text 298 407 upda... | Pure Data | 4 | myQwil/pure-data | doc/5.reference/bag-help.pd | [
"TCL"
] |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="<$mt:Link template="styles" encode_html="1"$>"> | MTML | 2 | movabletype/mt-theme-SimpleCorporate | themes/simplecorporate/templates/common_stylesheet.mtml | [
"MIT"
] |
// run-pass
// Test that we are able to successfully compile a setup where a trait
// (`Trait1`) references a struct (`SomeType<u32>`) which in turn
// carries a predicate that references the trait (`u32 : Trait1`,
// substituted).
// pretty-expanded FIXME #23616
#![allow(dead_code)]
trait Trait1 : Trait2<SomeType<u... | Rust | 5 | Eric-Arellano/rust | src/test/ui/traits/astconv-cycle-between-trait-and-type.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
/* Learn distribution for a sprinkler database. */
:- ['../sprinkler.pfl'].
:- use_module(library(clpbn/learning/em)).
%:- set_em_solver(ve).
%:- set_em_solver(hve).
%:- set_em_solver(bdd).
%:- set_em_solver(bp).
%:- set_em_solver(cbp).
data(t,t,t,t).
data(_,t,_,t).
data(t,t,f,f).
data(t,t,f,t).
data(t,_,_,t).
data... | Prolog | 4 | ryandesign/yap | packages/CLPBN/examples/learning/sprinkler_params.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
@STATIC;1.0;p;8;MapKit.jt;175;@STATIC;1.0;i;12;MKGeometry.ji;11;MKMapView.ji;9;MKTypes.jt;111;
objj_executeFile("MKGeometry.j",YES);
objj_executeFile("MKMapView.j",YES);
objj_executeFile("MKTypes.j",YES);
p;11;MKMapView.jt;11818;@STATIC;1.0;I;15;AppKit/CPView.ji;12;MKGeometry.ji;9;MKTypes.jt;11748;
objj_executeFile("Ap... | Objective-J | 3 | Me1000/CappInventory | Build/Deployment/Iguana/Frameworks/MapKit/Browser.environment/MapKit.sj | [
"MIT"
] |
package com.baeldung.springbean;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import com.baeldung.springbean.domain.Company;
public class SpringBeanIntegrat... | Java | 4 | DBatOWL/tutorials | spring-core/src/test/java/com/baeldung/springbean/SpringBeanIntegrationTest.java | [
"MIT"
] |
.. role:: hidden
:class: hidden-section
algorithms.dfs
=================
| reStructuredText | 2 | vansh-tiwari/algorithms | docs/source/dfs.rst | [
"MIT"
] |
@import 'ui-variables';
body.platform-win32 {
.calendar-toggles {
.colored-checkbox {
border-radius: 0;
.bg-color {
border-radius: 0;
}
}
}
}
.nylas-calendar {
height: 100%;
display: flex;
.calendar-toggles {
display: flex;
background-color: @source-list-bg;
bo... | Less | 4 | cnheider/nylas-mail | packages/client-app/static/components/nylas-calendar.less | [
"MIT"
] |
exec("swigtest.start", -1);
try
a = new_A_UF();
catch
swigtesterror();
end
try
delete_A_UF(a);
catch
swigtesterror();
end
exec("swigtest.quit", -1);
| Scilab | 3 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/abstract_typedef2_runme.sci | [
"BSD-3-Clause"
] |
#summary How to get started with development on Music Synthesizer for Android.
#labels Featured
= Getting started with Music Synthesizer Development =
The following steps will get you started working with the Music Synthesizer for Android code in a Unix-like environment. The following environment variables are used.... | MediaWiki | 3 | google-admin/music-synthesizer-for-android | wiki/GettingStarted.wiki | [
"Apache-2.0"
] |
/// <reference path='fourslash.ts' />
// @noUnusedLocals: true
// @noUnusedParameters: true
////class C {
//// set x(value: number) {}
////}
// No codefix to remove parameter, since setter must have a parameter
verify.codeFixAvailable([{ description: "Prefix 'value' with an underscore" }]);
verify.co... | TypeScript | 4 | nilamjadhav/TypeScript | tests/cases/fourslash/codeFixUnusedIdentifier_set.ts | [
"Apache-2.0"
] |
# RUN: llc -mtriple thumbv7m-none-eabi -run-pass prologepilog %s -o - | FileCheck %s
--- |
define void @throw() noreturn { unreachable }
define void @ret() nounwind { ret void }
define void @tables() nounwind noreturn uwtable { ret void }
define void @noret() noreturn nounwind {
start:
%p = alloca i32... | Mirah | 4 | medismailben/llvm-project | llvm/test/CodeGen/ARM/noreturn-csr-skip.mir | [
"Apache-2.0"
] |
--TEST--
rewriter handles form and fieldset tags correctly
--EXTENSIONS--
session
--SKIPIF--
<?php include('skipif.inc'); ?>
--INI--
session.use_cookies=0
session.use_only_cookies=0
session.use_strict_mode=0
session.cache_limiter=
session.use_trans_sid=1
url_rewriter.tags="a=href,area=href,frame=src,input=src,form=,fie... | PHP | 3 | NathanFreeman/php-src | ext/session/tests/021.phpt | [
"PHP-3.01"
] |
HEADERS += \
$$PWD/controller.h
SOURCES += \
$$PWD/controller.cpp
include ($$PWD/receiver/receiver.pri)
include ($$PWD/inputconvert/inputconvert.pri)
INCLUDEPATH += \
$$PWD/receiver \
$$PWD/inputconvert
| QMake | 1 | jiadxin/QtScrcpy | QtScrcpy/device/controller/controller.pri | [
"Apache-2.0"
] |
:- module(pfl_ground_factors,
[generate_network/5,
f/3
]).
:- use_module(library(bhash),
[b_hash_new/1,
b_hash_lookup/3,
b_hash_insert/4,
b_hash_to_list/2
]).
:- use_module(library(lists),
[member/2]).
:- use_module(library(maplist)).
:- use_module(library(atts)).
:- use_module(library(pfl),... | Prolog | 4 | ryandesign/yap | packages/CLPBN/clpbn/ground_factors.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Machaku <bmachaku@gmail.com>, 2013-2014
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-19 16:49+0100\n"
"PO-Revision-Date: 2017-09-23 18:54+0000\n"
"Last-Translator: Jann... | Gettext Catalog | 2 | jpmallarino/django | django/contrib/gis/locale/sw/LC_MESSAGES/django.po | [
"BSD-3-Clause",
"0BSD"
] |
module tour/addressBook2b ----- Page 19
abstract sig Target { }
sig Addr extends Target { }
abstract sig Name extends Target { }
sig Alias, Group extends Name { }
sig Book {
addr: Name->Target
} {
no n: Name | n in n.^addr
}
pred show [b:Book] { some b.addr }
// This command generates an instance similar to Fi... | Alloy | 3 | Kaixi26/org.alloytools.alloy | org.alloytools.alloy.extra/extra/models/book/chapter2/addressBook2b.als | [
"Apache-2.0"
] |
import * as React from 'react';
import { styled } from '@mui/material/styles';
import Box from '@mui/material/Box';
import ButtonBase from '@mui/material/ButtonBase';
import Container from '@mui/material/Container';
import Typography from '../components/Typography';
const ImageBackdrop = styled('div')(({ theme }) => (... | TypeScript | 4 | dany-freeman/material-ui | docs/src/pages/premium-themes/onepirate/modules/views/ProductCategories.tsx | [
"MIT"
] |
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <Kernel/API/POSIX/signal.h>
#include <Kernel/API/POSIX/sys/wait.h>
__BEGIN_DECLS
pid_t waitpid(pid_t, int* wstatus, int options);
pid_t wait(int* wstatus);
int waitid(idtype_t id... | C | 3 | r00ster91/serenity | Userland/Libraries/LibC/sys/wait.h | [
"BSD-2-Clause"
] |
"""Test for the Insteon integration."""
| Python | 0 | tbarbette/core | tests/components/insteon/__init__.py | [
"Apache-2.0"
] |
/* 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 | EricRemmerswaal/tensorflow | tensorflow/compiler/xla/service/gpu/tests/gemm_broadcast_folding_rewrite_test.cc | [
"Apache-2.0"
] |
.q-touch
user-select: none
user-drag: none
-khtml-user-drag: none
-webkit-user-drag: none
.q-touch-x
touch-action: pan-x
.q-touch-y
touch-action: pan-y
| Sass | 3 | ygyg70/quasar | ui/src/css/core/touch.sass | [
"MIT"
] |
#! /usr/bin/perl -w
#-------------------------------------------------------------------------
#
# Gen_dummy_probes.pl
# Perl script that generates probes.h file when dtrace is not available
#
# Portions Copyright (c) 2008-2021, PostgreSQL Global Development Group
#
#
# IDENTIFICATION
# src/backend/utils/Gen_dumm... | Prolog | 3 | b41sh/postgres | src/backend/utils/Gen_dummy_probes.pl.prolog | [
"PostgreSQL"
] |
--TEST--
Bug #68917 (parse_url fails on some partial urls)
--FILE--
<?php
print_r(parse_url('//example.org:81/hi?a=b#c=d'));
print_r(parse_url('//example.org/hi?a=b#c=d'));
?>
--EXPECT--
Array
(
[host] => example.org
[port] => 81
[path] => /hi
[query] => a=b
[fragment] => c=d
)
Array
(
[host] =>... | PHP | 3 | thiagooak/php-src | ext/standard/tests/url/bug68917.phpt | [
"PHP-3.01"
] |
function foo():number;
function foo():string { return "" }
| TypeScript | 3 | nilamjadhav/TypeScript | tests/cases/compiler/functionOverloads11.ts | [
"Apache-2.0"
] |
class BackgroundAnimation extends BaseMapObject
{
constructor(mapObj, map, rect, stream)
{
base.constructor(mapObj, map, "BackgroundAnimation");
local animId = IStream.ReadU32(stream);
local animName = "";
switch(animId)
{
case 1201:
animName = "BAP01... | Squirrel | 4 | mouzedrift/alive | data/scripts/background_animation.nut | [
"MIT"
] |
static const uint32_t in_barycenter_val[457] = {
0x3e7a1d31, 0x3e486b96, 0x3f6ec8cd, 0x3d36626c,
0x3ec80012, 0x3f61e85a, 0x3d514f51, 0x3f2a6eb7,
0x3f6449f2, 0x3d7e4722, 0x3f6021f2, 0x3f17ead4,
0x3f3541a5, 0x3f73b3bd, 0x3f683113, 0x3f6c5870,
0x3f55978d, 0x3f1d1cc2, 0x3ed4adff, 0x3efd732c,
0x3f719... | Max | 1 | Trifunik/zephyr | tests/lib/cmsis_dsp/support/src/barycenter_f32.pat | [
"Apache-2.0"
] |
MODULE = Agar::Pane PACKAGE = Agar::Pane PREFIX = AG_
PROTOTYPES: ENABLE
VERSIONCHECK: DISABLE
Agar::Pane
newHoriz(package, parent, ...)
const char * package
Agar::Widget parent
PREINIT:
Uint flags = 0, wflags = 0;
CODE:
if ((items == 3 && SvTYPE(SvRV(ST(2))) != SVt_PVHV) || items > 3) {
Perl_croak(aTHX_ "Usage:... | XS | 4 | auzkok/libagar | p5-Agar/Agar/Pane.xs | [
"BSD-2-Clause"
] |
49 Clusters/ALA-GLU/PDBs/Generator-995.pdb (Count 3780)
1 H 5.685000 3.062000 3.392000 341 2
2 C 5.622000 2.990000 2.308000 340 5 4 3 1
3 H 5.953000 3.917000 1.846000 341 2
4 H 6.237000 2.163000 1.957000 341 2
... | Arc | 2 | bieniekmateusz/forcebalance | src/tests/files/amber_alaglu/all.arc | [
"BSD-3-Clause"
] |
package com.baeldung;
public class Account {
private Double balance;
public Account(Double initialBalance) {
this.balance = initialBalance;
}
public void credit(Double amount) {
balance += amount;
}
public Double getBalance() {
return balance;
}
}
| Java | 4 | DBatOWL/tutorials | gradle/gradle-cucumber/src/main/java/com/baeldung/Account.java | [
"MIT"
] |
namespace OpenAPI
module Helpers =
let (>=>) switch1 switch2 =
match switch1 with
| Ok v1 ->
match switch2 with
| Ok v2 ->
Ok(v1, v2)
| Error e -> Error e
| Error e -> Error e | F# | 4 | MalcolmScoffable/openapi-generator | samples/server/petstore/fsharp-giraffe/OpenAPI/src/helpers/Helpers.fs | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.