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 |
|---|---|---|---|---|---|
--TEST--
__serialize() mechanism (002): TypeError on invalid return type
--FILE--
<?php
class Test {
public function __serialize() {
return $this;
}
}
try {
serialize(new Test);
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
Test::__serialize() must return an array
| PHP | 4 | thiagooak/php-src | ext/standard/tests/serialize/__serialize_002.phpt | [
"PHP-3.01"
] |
DROP TABLE "public"."table12";
| SQL | 1 | devrsi0n/graphql-engine | cli/commands/testdata/migrate-squash-test/migrations/1588172668691_create_table_public_table12/down.sql | [
"Apache-2.0",
"MIT"
] |
BEGIN {
print;
print "The following FV tests will run in this batch";
print "=============================================";
}
/msg="Loaded config"/ {
next;
}
/^Running Suite:/ {
next;
}
/^==============/ {
next;
}
/^Random Seed:/ {
next;
}
/^Parallel test node/ {
next;
}
/^JUnit r... | Awk | 3 | pluzun/calico | felix/fv/test-list-filter.awk | [
"Apache-2.0"
] |
## -*- coding: utf-8 -*-
## Licensed to Cloudera, Inc. under one
## or more contributor license agreements. See the NOTICE file
## distributed with this work for additional information
## regarding copyright ownership. Cloudera, Inc. licenses this file
## to you under the Apache License, Version 2.0 (the
## "License"... | Mako | 3 | kokosing/hue | apps/oozie/src/oozie/templates/editor/gen/bundle.xml.mako | [
"Apache-2.0"
] |
DejaVu Sans Mono for Powerline
==============================
:Font creator: Roy Y.T. Chen
:Source: http://dejavu-fonts.org/wiki/Main_Page
:Version: 2.37
:Patched by: `Roy-Orbison <https://github.com/Roy-Orbison>`_
Includes column number, diagonal block and line characters in same positions as `Nerdfonts' <https://gi... | reStructuredText | 2 | davidascher/fonts | DejaVuSansMono/README.rst | [
"Apache-1.1"
] |
#lang scribble/manual
@title[#:tag "big-picture"]{The big picture}
A summary of the key components & concepts of the Pollen publishing system and how they fit together. If you've completed the @secref["quick-tour"], this will lend some context to what you saw. The upcoming @seclink["first-tutorial"]{tutorials} will m... | Racket | 5 | otherjoel/pollen | pollen/scribblings/big-picture.scrbl | [
"MIT"
] |
# API name
# Group Users
User related endpoints
| API Blueprint | 0 | darkcl/drafter | test/fixtures/api/resource-group.apib | [
"MIT"
] |
source ./test-functions.sh
mkdir ./pid
install_service
echo 'LOG_FOLDER=log' > /test-service/spring-boot-app.conf
mkdir -p /test-service/log
start_service
await_app
[[ -s /test-service/log/spring-boot-app.log ]] && echo "Log written"
| Shell | 2 | yiou362/spring-boot-2.2.9.RELEASE | spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/src/test/resources/scripts/launch-with-relative-log-folder.sh | [
"Apache-2.0"
] |
// aux-build:test-macros.rs
#[macro_use(Empty)]
extern crate test_macros;
use test_macros::empty_attr as empty_helper;
#[empty_helper] //~ ERROR `empty_helper` is ambiguous
//~| WARN derive helper attribute is used before it is introduced
//~| WARN this was previously accepted
#[derive... | Rust | 2 | mbc-git/rust | src/test/ui/proc-macro/helper-attr-blocked-by-import-ambig.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
lines(0);
ilib_verbose(0);
ierr = exec('loader.sce', 'errcatch');
if ierr <> 0 then
disp(lasterror());
exit(ierr);
end
// First create some objects using the pointer library.
printf("Testing the pointer library\n")
a = new_intp();
b = new_intp();
c = new_intp(); // Memory for result
intp_assign(a, 37);
intp_assig... | Scilab | 4 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/scilab/pointer/runme.sci | [
"BSD-3-Clause"
] |
<!--
~ Copyright 2016 Red Hat, Inc. and/or its affiliates
~ and other contributors as indicated by the @author tags.
~
~ 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/... | XSLT | 4 | evtr/keycloak | testsuite/integration-arquillian/servers/cache-server/infinispan/common/cache-authentication-enabled.xsl | [
"Apache-2.0"
] |
\title{Probabilistic Models}
\subsection{Probabilistic Models}
A probabilistic model asserts how observations from a natural phenomenon arise.
The model is a \emph{joint distribution}
\begin{align*}
p(\mathbf{x}, \mathbf{z})
\end{align*}
of observed variables $\mathbf{x}$ corresponding to data, and latent
variables... | TeX | 4 | xiangze/edward | docs/tex/tutorials/model.tex | [
"Apache-2.0"
] |
---
layout: default
route: index
fixed_navbar: true
---
{% include global/navbar.html id="Index" %}
{% include index/hello.html %}
{% include index/focus.html %}
{% include index/best.html %}
{% include index/sponsors.html %}
{% include index/columns.html %}
{% include index/modifiers.html %}
{% include index/c... | HTML | 3 | kalpitzeta/bulma | docs/index.html | [
"MIT"
] |
message.exception = Je suis une exception. | INI | 0 | DBatOWL/tutorials | core-java-modules/core-java-exceptions-3/src/main/resources/messages_fr.properties | [
"MIT"
] |
@program cmd-id.muf
1 1000 d
i
( cmd-id.muf by Natasha@HLM
A simple object describer.
Copyright 2003-2019 Natasha Snunkmeox. Copyright 2003-2019 Here Lie Monsters.
"@view $box/mit" for license information.
Version history
1.0, 25 Oct 2003: First version.
1.1, 26 Jan 2019: Vendorized the obj-color word for... | MUF | 4 | natmeox/hlm-suite | cmd-id.muf | [
"MIT"
] |
{
metadata: {
namespace: "XMLNS",
namespaceURI: "http://www.w3.org/2000/xmlns/",
},
data: [
"xmlns",
],
}
| JSON5 | 2 | zealoussnow/chromium | third_party/blink/renderer/core/xml/xmlns_attribute_names.json5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
"""Test config flow."""
from http import HTTPStatus
from unittest.mock import Mock, patch
from homeassistant.components.hassio import HassioServiceInfo
from homeassistant.components.hassio.handler import HassioAPIError
from homeassistant.const import EVENT_HOMEASSISTANT_START
from homeassistant.setup import async_setu... | Python | 4 | MrDelik/core | tests/components/hassio/test_discovery.py | [
"Apache-2.0"
] |
type X = u32<i32>; //~ ERROR E0109
fn main() {
}
| Rust | 2 | Eric-Arellano/rust | src/test/ui/error-codes/E0109.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
(module
(type $none_=>_i32 (func (result i32)))
(global $~lib/memory/__data_end i32 (i32.const 8))
(global $~lib/memory/__stack_pointer (mut i32) (i32.const 16392))
(global $~lib/memory/__heap_base i32 (i32.const 16392))
(memory $0 0)
(table $0 1 funcref)
(elem $0 (i32.const 1))
(export "default" (func $named-e... | WebAssembly | 1 | romdotdog/assemblyscript | tests/compiler/named-export-default.untouched.wat | [
"Apache-2.0"
] |
SELECT xor(1, 0);
| SQL | 3 | pdv-ru/ClickHouse | tests/queries/0_stateless/01411_xor_itai_shirav.sql | [
"Apache-2.0"
] |
exec("swigtest.start", -1);
// TODO: support for STL vectors operator =
iv = new_DoubleVector();
//for i=1:4
// iv(i) = i;
//end
//x = average(iv);
//if x <> 2.5 then swigtesterror(); end
exit
exec("swigtest.quit", -1);
| Scilab | 0 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/li_std_vector_runme.sci | [
"BSD-3-Clause"
] |
option now = () => 2020-02-22T18:00:00Z
@tableflux.h2o_temperature{bottom_degrees, time > -3h}
|> aggregate({count(bottom_degrees)})
| FLUX | 3 | RohanSreerama5/flux | colm/tableflux/query12.flux | [
"MIT"
] |
# Copyright (c) 2018-2021, Carnegie Mellon University
# See LICENSE for details
#F DiagFunc - base class for diagonal generating functions
#F Required fields in subclasses:
#F .abbrevs = [ (p1) -> [parlist1],
#F (p1,...) -> [parlist2] ]
#F Mapping from various lengths of parameter lists ... | GAP | 5 | sr7cb/spiral-software | namespaces/spiral/spl/diags.gi | [
"BSD-2-Clause-FreeBSD"
] |
\ require pdump.fth
\ require structs.fth
\ require exceptions.fth
{ ."
minidump.fth
Given a process ID, collect a minidump for analysis or download. This is a
full memory dump of the process, so it can be very useful for finding secrets
or examining the running state of a process.
PID minidump... | Forth | 5 | jephthai/EvilVM | samples/minidump.fth | [
"MIT"
] |
DOWHILELOOP
set val = 0
do {
set val = val + 1
write val,!
} while ((val # 6) '= 0)
quit
| M | 3 | LaudateCorpus1/RosettaCodeData | Task/Loops-Do-while/MUMPS/loops-do-while.mumps | [
"Info-ZIP"
] |
/*
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <Kernel/API/POSIX/sys/types.h>
#ifdef __cplusplus
extern "C" {
#endif
struct sched_param {
int sched_priority;
};
#ifdef __cplusplus
}
#endif
| C | 3 | r00ster91/serenity | Kernel/API/POSIX/sched.h | [
"BSD-2-Clause"
] |
ID PP1B_HUMAN Reviewed; 327 AA.
AC P62140; B2R5V4; D6W565; P37140; Q5U087; Q6FG45;
DT 21-JUN-2004, integrated into UniProtKB/Swiss-Prot.
DT 23-JAN-2007, sequence version 3.
DT 25-OCT-2017, entry version 157.
DE RecName: Full=Serine/threonine-protein phosphatase PP1-beta catalytic subuni... | TXL | 0 | kp14/biocuration | tests/SwissProt/atomic.txl | [
"Unlicense"
] |
package io.swagger.client.api {
import io.swagger.common.ApiInvoker;
import io.swagger.exception.ApiErrorCodes;
import io.swagger.exception.ApiError;
import io.swagger.common.ApiUserCredentials;
import io.swagger.event.Response;
import io.swagger.common.SwaggerApi;
import io.swagger.client.model.Order;
import mx.rpc.... | ActionScript | 4 | wwadge/swagger-codegen | samples/client/petstore/flash/flash/src/io/swagger/client/api/StoreApi.as | [
"Apache-2.0"
] |
size: 1024px 80px;
dpi: 96;
margin: 2em;
axis {
label-format: scientific();
label-placement: linear(500);
limit: 0 3500;
}
| CLIPS | 2 | asmuth-archive/travistest | test/examples/charts_reference_format_scientific.clp | [
"Apache-2.0"
] |
func(x: 'f32) { x }; func(1.0) | Objective-J | 0 | justinmann/sj | tests/function16.sj | [
"Apache-2.0"
] |
[[local lapis = require("lapis")
local app = lapis.Application()
app:get("/", function()
return "Welcome to Lapis " .. require("lapis.version")
end)
return app
]]
| MoonScript | 3 | tommy-mor/lapis | lapis/cmd/templates/app_lua.moon | [
"MIT",
"Unlicense"
] |
; Copyright © 2006-2020 Phil Pennock
; No warranty: if it breaks, you get to cut your hands picking up the shards.
; Permission granted to duplicate in its entirety with authorship preserved,
; or redact as needed for test frameworks, or copy fragments for use in your
; own domains, or pretty much anything else except ... | DNS Zone | 4 | IT-Sumpfling/dnscontrol | commands/test_data/example.org.zone | [
"MIT"
] |
/* cursor.h - definitions for the cursor type
*
* Copyright (C) 2004-2010 Gerhard Häring <gh@ghaering.de>
*
* This file is part of pysqlite.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of th... | C | 4 | Horcruxes/cpython | Modules/_sqlite/cursor.h | [
"0BSD"
] |
;; This file has no tests of its own, and only exists to be required
;; by `language.hy`, and sit in the same directory to test
;; single-period relative `require`.
(defmacro xyzzy []
'1)
| Hy | 3 | lafrenierejm/hy | tests/native_tests/language_beside.hy | [
"MIT"
] |
-- Copyright (C) 2008-2011 Maciej Sobczak
-- 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)
package SOCI.Oracle is
--
-- Registers the Oracle backend so that it is ready for use
-- by the dynamic b... | Ada | 4 | thishome153/soci | languages/ada/soci-oracle.ads | [
"BSL-1.0"
] |
<!DOCTYPE html>
<html>
<head>
<style>
table {
border-collapse: collapse;
}
table,
th,
td {
border: 1px solid black;
}
ul {
font-size: 24px
}
li {
font-size: 16px
}
</style>
<script src='../../dist/zone.js'></script>
<script src='./performance_s... | HTML | 3 | coreyscherbing/angular | packages/zone.js/test/performance/performance.html | [
"MIT"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 5 | sbj42/vscode | src/vs/workbench/contrib/debug/test/browser/debugMemory.test.ts | [
"MIT"
] |
package test;
public class JavaBeanVal {
public String getColor() { return ""; }
}
| Java | 1 | qussarah/declare | compiler/testData/loadJava/compiledJava/javaBean/JavaBeanVal.java | [
"Apache-2.0"
] |
scriptname SKI_WidgetBase extends SKI_QuestBase
; CONSTANTS ---------------------------------------------------------------------------------------
string property HUD_MENU = "HUD Menu" autoReadOnly
; PRIVATE VARIABLES -------------------------------------------------------------------------------
SKI_WidgetManag... | Papyrus | 5 | pragasette/skyui | dist/Data/Scripts/Source/SKI_WidgetBase.psc | [
"Unlicense",
"MIT"
] |
"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/Vrpano.js | [
"MIT"
] |
import { generateUtilityClass, generateUtilityClasses } from '@mui/base';
export interface AvatarClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if not `src` or `srcSet`. */
colorDefault: string;
/** Styles applied to the root element if `variant="cir... | TypeScript | 4 | dany-freeman/material-ui | packages/mui-material/src/Avatar/avatarClasses.ts | [
"MIT"
] |
import { assert_mapped } from '../../helpers';
import { COMMON, STYLES } from './_config';
export function test({ input, preprocessed }) {
// Transformed script, main file
assert_mapped({
filename: 'input.svelte',
code: 'Divs ftw!',
input: input.locate,
preprocessed
});
// External files
assert_mapped({
... | JavaScript | 4 | Theo-Steiner/svelte | test/sourcemaps/samples/external/test.js | [
"MIT"
] |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports Microsoft.CodeAnalysis.ChangeSignature
Imports Microsoft.CodeAnalysis.Editor.UnitTests.ChangeSignature
Imports... | Visual Basic | 5 | ffMathy/roslyn | src/EditorFeatures/VisualBasicTest/ChangeSignature/AddParameterTests.OptionalParameter.Omit.vb | [
"MIT"
] |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive ... | HTML+PHP | 3 | s4-2/scancode-toolkit | tests/licensedcode/data/datadriven/external/fossology-tests/AFL/list_sidebar.phtml | [
"Apache-2.0",
"CC-BY-4.0"
] |
package com.baeldung.hibernate.transaction;
import com.baeldung.hibernate.HibernateUtil;
import com.baeldung.hibernate.pojo.Post;
import com.baeldung.hibernate.transaction.PostService;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.junit.BeforeClass;
import org.junit.Test;
import org.slf... | Java | 5 | DBatOWL/tutorials | persistence-modules/hibernate-jpa/src/test/java/com/baeldung/hibernate/transaction/TransactionIntegrationTest.java | [
"MIT"
] |
- dashboard: push_marketing_pressure
title: Push Marketing Pressure
layout: newspaper
description: Uses push messaging cadence and frequency views to explore how push
messaging timing and pressure affects user behavior.
elements:
- name: Push Send Frequency
type: text
title_text: Push Send Frequen... | LookML | 4 | looker-open-source/braze_message_engagement_block | push_marketing_pressure.dashboard.lookml | [
"MIT"
] |
#
# Copyright 2011 (c) Pointwise, Inc.
# All rights reserved.
#
# This sample Pointwise script is not supported by Pointwise, Inc.
# It is provided freely for demonstration purposes only.
# SEE THE WARRANTY DISCLAIMER AT THE BOTTOM OF THIS FILE.
#
# ===============================================
# HYBRID MESH GENE... | Glyph | 5 | smola/language-dataset | data/github.com/traviscarrigan/VAWTMesh/716f4fdaa9ecfe68d74143d5f1f5301e0d3d41e3/VAWTMesh.glf | [
"MIT"
] |
/*****************************************************************************
*
* CALL <proc_name> [(params, ...)]
*
*****************************************************************************/
CallStmt: CALL_P func_application
{
PGCallStmt *n = makeNode(PGCallStmt);
n->func = $2;
$$ = (PGNode... | Yacc | 3 | AldoMyrtaj/duckdb | third_party/libpg_query/grammar/statements/call.y | [
"MIT"
] |
<?xml version="1.0" encoding="UTF-8"?>
<faces-config>
<faces-config-extension>
<namespace-uri>http://unplugged.teamstudio.com</namespace-uri>
<default-prefix>unp</default-prefix>
</faces-config-extension>
<composite-component>
<component-type>UnpBootCalendar</component-type>
<composite-name>UnpBoo... | XPages | 4 | teamstudio/xcontrols-domino | sampler-app/CustomControls/UnpBootCalendar.xsp-config | [
"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/lite/kernels/unidirectional_sequence_gru.cc | [
"Apache-2.0"
] |
@file:Suppress("OPT_IN_USAGE_ERROR")
@OptionalExpectation
expect annotation class Optional(val value: String)
@Optional("Foo")
class Foo | Kotlin | 4 | Mu-L/kotlin | jps-plugin/testData/incremental/multiModule/multiplatform/custom/commonSourcesCompilerArg/c_a.kt | [
"ECL-2.0",
"Apache-2.0"
] |
// check-pass
#[derive(Clone, PartialEq, Debug)]
struct Example<T, const N: usize = 1usize>([T; N]);
fn main() {
let a = Example([(); 16]);
let b = a.clone();
if a != b {
let _c = format!("{:?}", a);
}
}
| Rust | 3 | ohno418/rust | src/test/ui/derives/derive-macro-const-default.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#Signature file v4.1
#Version 0.33
CLSS public abstract interface java.io.Serializable
CLSS public abstract interface java.lang.Comparable<%0 extends java.lang.Object>
meth public abstract int compareTo({java.lang.Comparable%0})
CLSS public abstract java.lang.Enum<%0 extends java.lang.Enum<{java.lang.Enum%0}>>
cons ... | Standard ML | 2 | timfel/netbeans | php/php.api.testing/nbproject/org-netbeans-modules-php-api-testing.sig | [
"Apache-2.0"
] |
//
// Copyright (c) XSharp B.V. All Rights Reserved.
// Licensed under the Apache License, Version 2.0.
// See License.txt in the project root for license information.
//
/// <summary>
/// Convert a string to a Symbol.
/// </summary>
/// <param name="c"></param>
/// <returns>
/// </returns>
/// <include file="RT... | xBase | 4 | JohanNel/XSharpPublic | Runtime/XSharp.RT/Functions/Symbol.prg | [
"Apache-2.0"
] |
# vcpkg completions for fish
set vcpkg_executable (string split -m1 ' ' (commandline -cb))[1]
function _vcpkg_completions
set arg (string split -m1 ' ' (commandline -cb))[2]
set curr_token (commandline -t)
if [ -n $arg ]
if [ -z $curr_token ]
set arg $arg " "
end
end
for key in ($vcpkg_executab... | fish | 4 | Nuclearfossil/vcpkg | scripts/vcpkg_completion.fish | [
"MIT"
] |
#include "caffe2/core/context_gpu.h"
#include "caffe2/operators/alias_with_name.h"
namespace caffe2 {
REGISTER_CUDA_OPERATOR(AliasWithName, AliasWithNameOp<CUDAContext>);
} // namespace caffe2
C10_EXPORT_CAFFE2_OP_TO_C10_CUDA(
AliasWithName,
caffe2::AliasWithNameOp<caffe2::CUDAContext>);
| Cuda | 3 | Hacky-DH/pytorch | caffe2/operators/alias_with_name.cu | [
"Intel"
] |
CLASS ControlWindow INHERIT Window
PROTECT oCtrl AS Control
PROTECT oSurface AS VOSurfacePanel
ACCESS __Surface AS IVOControlContainer
RETURN oSurface
ACCESS Control AS Control
RETURN oCtrl
ACCESS ControlID AS LONG
RETURN oCtrl:ControlID
METHOD Destroy() AS USUAL
IF oCtrl:__IsValid
oCtrl:Dest... | xBase | 4 | orangesocks/XSharpPublic | Runtime/VOSdkTyped/Source/VOSdk/GUI_Classes_SDK/Windows/ControlWindow.prg | [
"Apache-2.0"
] |
functions {
real model_log_dens(
int[] deaths_slice,
int start,
int end,
//pars
vector logit_p_avg,
// data
int[] casesM
)
{
int n;
real lpmf;
int N_slice;
lpmf = 0.0;
N_slice = end - start + 1;
... | Stan | 4 | viniciuszendron/covid19model | covid19AgeModel/inst/ifr-by-age/base_age_prior_ifr_200820b1_cmdstanv.stan | [
"MIT"
] |
/*
* Copyright 2012-2021 the original author or 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Java | 4 | techAi007/spring-boot | spring-boot-project/spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/jar/CentralDirectoryParserTests.java | [
"Apache-2.0"
] |
// ignore_for_file: avoid_equals_and_hash_code_on_mutable_classes
import 'package:bloc/bloc.dart';
abstract class CounterEvent {}
class Increment extends CounterEvent {
@override
bool operator ==(Object value) {
if (identical(this, value)) return true;
return value is Increment;
}
@override
int get... | Dart | 4 | Rukkaitto/bloc | packages/bloc_concurrency/test/src/helpers.dart | [
"MIT"
] |
In Tiger Creek Street, <MASK_REP> Community, residents are using their phones to scan two-dimensional code, log in to fill in the information.
<MASK_REP> , the more in such a key stage, more to stick to the end; The more victory is in sight, the less we can relax our efforts and slacken our efforts. We will never sto... | Mask | 0 | ZhenYangIACAS/WeTS | corpus/cn2en/cn2en.dev.mask | [
"Unlicense"
] |
'reach 0.1';
'use strict';
export const main = Reach.App(
{},
[ Participant('Creator', {
benefactor: Address,
}),
ParticipantClass('Owner', {
claim: Fun([Address, UInt], UInt),
}),
],
(Creator, Owner) => {
Creator.only(() => {
const benefactor = declassify(interact.benefactor)... | RenderScript | 3 | chikeabuah/reach-lang | hs/t/y/algorealm.rsh | [
"Apache-2.0"
] |
extern m#strlen#cp
; Returns the size of the string
; It stops at a null termination
; Arguments 1:
; RDI - the char pointer
; Returns:
; RAX - the string size without the null character
m#strlen#cp:
; Start at offset 0
xor ecx, ecx
.loop:
; Get the character in AL
mov al, byte [rdi+rcx]
; Increase the index
inc ecx
;... | Parrot Assembly | 4 | giag3/peng-utils | lib/std-lib/unix/asm/strlen.pasm | [
"MIT"
] |
# Test default value for choice type
# @expect="/nlist[@name='profile']/string[@name='x']='a'"
#
object template choice5;
type mychoice = choice("a", "b", "c") = "a";
bind '/x' = mychoice;
| Pan | 4 | aka7/pan | panc/src/test/pan/Functionality/choice/choice5.pan | [
"Apache-2.0"
] |
include "stdio.sl";
serflags(0, 0);
var ch;
while (1) {
ch = getchar();
printf("%d ", [ch]);
if (ch == 3) break; # ctrl-c
};
| Slash | 3 | jes/scamp-cpu | sys/keys.sl | [
"Unlicense"
] |
syntax = "proto2";
option go_package = "urlfetch";
package appengine;
message URLFetchServiceError {
enum ErrorCode {
OK = 0;
INVALID_URL = 1;
FETCH_ERROR = 2;
UNSPECIFIED_ERROR = 3;
RESPONSE_TOO_LARGE = 4;
DEADLINE_EXCEEDED = 5;
SSL_CERTIFICATE_ERROR = 6;
DNS_ERROR = 7;
CLOSED =... | Protocol Buffer | 3 | t12g/terraform-validator | vendor/google.golang.org/appengine/internal/urlfetch/urlfetch_service.proto | [
"Apache-2.0"
] |
/**
*
*/
import Util;
import OpenApi;
import EndpointUtil;
extends OpenApi;
init(config: OpenApi.Config){
super(config);
@endpointRule = 'regional';
@endpointMap = {
ap-northeast-1 = 'reidcloud.aliyuncs.com',
ap-northeast-2-pop = 'reidcloud.aliyuncs.com',
ap-south-1 = 'reidcloud.aliyuncs.com',... | Tea | 4 | aliyun/alibabacloud-sdk | reid_cloud-20201030/main.tea | [
"Apache-2.0"
] |
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate... | Inno Setup | 3 | exNTLDR/audacity | lib-src/portmidi/pm_java/pmdefaults-setup-script.iss | [
"CC-BY-3.0"
] |
-- trace calls
-- example: lua -ltrace-calls bisect.lua
local level=0
local function hook(event)
local t=debug.getinfo(3)
io.write(level," >>> ",string.rep(" ",level))
if t~=nil and t.currentline>=0 then io.write(t.short_src,":",t.currentline," ") end
t=debug.getinfo(2)
if event=="call" then
level=level+1
els... | Lua | 3 | tomliugen/tomliugen-redis-3.2.2-rc | deps/lua/test/trace-calls.lua | [
"BSD-3-Clause"
] |
// tests for the write action
assertEquals := method(a, b,
if(a != b,
Exception raise(call message argAt(0) .. " == " .. a .. " instead of " .. b)
)
)
base := "http://localhost:8080"
// two ways to write
URL with(base .. "/?action=write&key=_testkey1&value=testval1") fetch
URL with(base .. "/?action=write&key... | Io | 3 | stevedekorte/vertexdb | tests/write_test.io | [
"BSD-3-Clause"
] |
domain: "[n] -> { S2[i0, i1, i2, i1, i0] : i2 >= 1 and i2 <= n and i2 <= -1 + i1 and i1 <= n and i2 <= -1 + i0 and i0 <= n; S1[i0, n, i0, i3] : i0 >= 1 and i0 <= n and i3 >= 1 + i0 and i3 <= n }"
child:
context: "[n] -> { [] }"
child:
schedule: "[n] -> [{ S2[i0, i1, i2, i3, i4] -> [(i0)]; S1[i0, i1, i2, i3] -> ... | Smalltalk | 2 | chelini/isl-haystack | test_inputs/codegen/cloog/lu2.st | [
"MIT"
] |
(defmodule lein-node
(behaviour jvm-node)
(export all))
(defun start ()
(start "./"))
(defun start (filesystem-path)
(start filesystem-path '()))
(defun start (filesystem-path args)
(let ((cmd (os:find_executable "lein"))
(opts `(#(cd ,filesystem-path)
#(args ,(++ args '("run")))
... | LFE | 4 | clojusc/clojang | src/lfe/lein-node.lfe | [
"Apache-2.0"
] |
#!/usr/bin/tclsh
set cachefile [lindex $argv 0]
if { $cachefile == "" } {
puts stderr "Usage: [file tail $argv0] <existing CMakeCache.txt file>"
exit 1
}
set struct {
name
type
value
description
}
set fd [open $cachefile r]
set cached ""
set dbase ""
while {[gets $fd line] != -1 } {
set line [string trim ... | Tcl | 5 | attenuation/srs | trunk/3rdparty/srt-1-fit/scripts/generate-configure-options.tcl | [
"MIT"
] |
:- use_module(library(jpl)).
:- use_module(library(lists)).
:- use_module(library(gensym)).
:- use_module(library(apply)).
:- use_module(library(readutil)).
:- use_module(library(porter_stem)).
:- use_module(library(listing)).
:- use_module(library(ctypes)).
:- use_module(library(error)).
:- set_prolog_flag(do... | Logtalk | 3 | PaulBrownMagic/logtalk3 | tools/wrapper/psrc/swi.lgt | [
"Apache-2.0"
] |
export { default } from './Menu';
export * from './Menu';
export { default as menuClasses } from './menuClasses';
export * from './menuClasses';
| TypeScript | 2 | good-gym/material-ui | packages/material-ui/src/Menu/index.d.ts | [
"MIT"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_haveDDRadio
Author: NKey, Garth de Wet (L-H)
Returns whether the player has a DD radio.
Arguments:
None
Return Value:
has a DD <BOOL>
Example:
_hasDD = call TFAR_fnc_haveDDRadio;
Public: Yes
*/
private _lastCache = GVAR(VehicleConfigC... | SQF | 5 | MrDj200/task-force-arma-3-radio | addons/core/functions/fnc_haveDDRadio.sqf | [
"RSA-MD"
] |
// https://dom.spec.whatwg.org/#text
[Exposed=Window]
interface Text : CharacterData {
constructor(optional DOMString data = "");
[NewObject] Text splitText(unsigned long offset);
readonly attribute DOMString wholeText;
};
| WebIDL | 4 | Unique184/jsdom | lib/jsdom/living/nodes/Text.webidl | [
"MIT"
] |
[[io.email]]
== Sending Email
The Spring Framework provides an abstraction for sending email by using the `JavaMailSender` interface, and Spring Boot provides auto-configuration for it as well as a starter module.
TIP: See the {spring-framework-docs}/integration.html#mail[reference documentation] for a detailed explan... | AsciiDoc | 4 | techAi007/spring-boot | spring-boot-project/spring-boot-docs/src/docs/asciidoc/io/email.adoc | [
"Apache-2.0"
] |
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="20dp"
android:height="20dp"
android:viewportWidth="20"
android:viewportHeight="20"
android:tint="?attr/colorControlNormal"
android:autoMirrored="true">
<path
android:fillColor="@android:color/white"
a... | XML | 3 | Imudassir77/material-design-icons | android/editor/notes/materialiconsround/black/res/drawable/round_notes_20.xml | [
"Apache-2.0"
] |
#include <console>
main() {
printf("Hello World!");
}
| PAWN | 3 | pawn-lang/pawn | source/compiler/tests/pcode_test_example.pwn | [
"Zlib"
] |
// Inferno's libkern/memset-arm.s
// https://bitbucket.org/inferno-os/inferno-os/src/master/libkern/memset-arm.s
//
// Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved.
// Revisions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuova.com). All rights reserved.
// ... | GAS | 3 | SSSDNSY/go | src/runtime/memclr_arm.s | [
"BSD-3-Clause"
] |
datatype option a = None | Some of a
val none : option int = None
val some_1 : option int = Some 1
val f = fn t ::: Type => fn x : option t =>
case x of None => None | Some x => Some (Some x)
val none_again = f none
val some_1_again = f some_1
val show = fn t ::: Type => fn x : option t => case x of None =>... | UrWeb | 5 | apple314159/urweb | tests/datatypeP.ur | [
"BSD-3-Clause"
] |
\
\ netstat is a nice command, but we can do most of what it does
\ directly with iphlpapi.dll.
\
{ ."
netstats.fth
Provides some basic netstat-like functionality using the interfaces
provided by iphlpapi.dll.
Run netstat to see current TCP connections
Run routes to view the route table
" ETX... | Forth | 4 | jephthai/EvilVM | samples/netstats.fth | [
"MIT"
] |
# Check the basic monitoring and failover capabilities.
source "../tests/includes/init-tests.tcl"
if {$::simulate_error} {
test "This test will fail" {
fail "Simulated error"
}
}
# Reboot an instance previously in very short time but do not check if it is loading
proc reboot_instance {type id} {
... | Tcl | 5 | hpdic/redis | tests/sentinel/tests/12-master-reboot.tcl | [
"BSD-3-Clause"
] |
<html>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<body>
There was nothing special about this site,
nothing was left to be seen,
not even a kite.
</body>
</html>
| HTML | 0 | ethcar/lighthouse | lighthouse-cli/test/fixtures/online-only.html | [
"Apache-2.0"
] |
#600
embiggening~
1 0 r 185 -1
A
19 1
R
1206 1 # 1x an iridescent blue iris
R
1300 1 # 1x a glowing green seashell
R
104 1 # 1x a red bloodstone
R
103 1 # 1x a yellow lightning stone
S
$
| Augeas | 0 | EmpireMUD/EmpireMUD-2.0-Beta | lib/world/aug/6.aug | [
"DOC",
"Unlicense"
] |
Object.defineProperties(exports, {
__esModule: { value: true },
abc: { enumerable: true, value: "abc" },
default: { enumerable: true, value: "default" }
});
| JavaScript | 3 | 1shenxi/webpack | test/cases/cjs-tree-shaking/namespace/namespace-via-define-properties.js | [
"MIT"
] |
# itk.decls --
#
# This file contains the declarations for all supported public
# functions that are exported by the Itk library via the stubs table.
# This file is used to generate the itkDecls.h file.
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF... | BlitzBasic | 4 | maths22/brlcad | src/other/incrTcl/itk/generic/itk.decls | [
"BSD-4-Clause",
"BSD-3-Clause"
] |
BEGIN {
printf "["
previous=""
}
match($0, /@test "(.*)" \{/, arr) {
if ( previous != "" ) {
printf "%s, ",previous
}
previous = sprintf("\"%s\"", arr[1])
}
END {
printf "%s",previous
print "]"
}
| Awk | 4 | ebaklund/vagrant-libvirt | tests/parse_tests.awk | [
"MIT"
] |
// run-pass
#![allow(unused_macros)]
macro_rules! m {
($e:expr) => {
macro_rules! n { () => { $e } }
}
}
fn main() {
m!(foo!());
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/issues/issue-40770.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#lang scribble/sigplan @preprint @nocopyright
@(require "defs.rkt" "bib.rkt")
@title{Growing a Proof Assistant}
@(authorinfo "William J. Bowman" "wjb@williamjbowman.com" "Northeastern University")
@include-abstract{abstract.scrbl}
@include-section{intro.scrbl}
@include-section{curnel.scrbl}
@include-section{cur.scrb... | Racket | 4 | bluephoenix47/cic-redex | cur-paper/main.scrbl | [
"BSD-2-Clause"
] |
export const getStaticProps = ({ params }) => {
return {
props: {
random: Math.random(),
params: params || null,
},
revalidate: 1,
}
}
export const getStaticPaths = () => {
return {
paths: [],
fallback: true,
}
}
export default function Page(props) {
return (
<>
<p ... | JavaScript | 4 | christopherklint97/next.js | test/production/required-server-files/pages/[slug]/social/[[...rest]].js | [
"MIT"
] |
#include "caffe2/perfkernels/adagrad.h"
#include <cmath>
#include "caffe2/perfkernels/common.h"
namespace caffe2 {
void adagrad_update__base(
int N,
const float* w,
const float* g,
const float* h,
float* nw,
float* nh,
float epsilon,
float decay,
const float lr,
const float w... | C++ | 3 | Hacky-DH/pytorch | caffe2/perfkernels/adagrad.cc | [
"Intel"
] |
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C++ | 4 | akshit-protonn/models | research/seq_flow_lite/tf_ops/sequence_string_projection_op_v2_test.cc | [
"Apache-2.0"
] |
package jadx.api.plugins.input.insns;
public enum InsnIndexType {
NONE,
TYPE_REF,
STRING_REF,
FIELD_REF,
METHOD_REF,
CALL_SITE
}
| Java | 4 | Dev-kishan1999/jadx | jadx-plugins/jadx-plugins-api/src/main/java/jadx/api/plugins/input/insns/InsnIndexType.java | [
"Apache-2.0"
] |
i e 9 | Clean | 0 | bo3b/iZ3D | TestsPack/DX10ShaderAnalyzingTest/Shaders/shader17_0x4E32E4A5.dcl | [
"MIT"
] |
# Pong Game in Codeskulptor
import random
import simplegui
WIDTH = 600
HEIGHT = 400
BALL_RADIUS = 20
PAD_WIDTH = 8
PAD_HEIGHT = 80
HALF_PAD_WIDTH = PAD_WIDTH / 2
HALF_PAD_HEIGHT = PAD_HEIGHT / 2
LEFT = False
RIGHT = True
score1 = 0
score2 = 0
paddle1_pos = 0
paddle2_pos = 0
paddle1_vel = 0
paddle2_vel = 0
def spaw... | Python | 4 | nicetone/Python | PONG_GAME.py | [
"MIT"
] |
// run-rustfix
#![warn(clippy::imprecise_flops)]
fn main() {
let x = 3f32;
let y = 4f32;
let _ = (x * x + y * y).sqrt();
let _ = ((x + 1f32) * (x + 1f32) + y * y).sqrt();
let _ = (x.powi(2) + y.powi(2)).sqrt();
// Cases where the lint shouldn't be applied
// TODO: linting this adds some com... | Rust | 4 | Eric-Arellano/rust | src/tools/clippy/tests/ui/floating_point_hypot.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
-module(petstore_tag).
-include("petstore.hrl").
-export([petstore_tag/0]).
-export([petstore_tag/1]).
-export_type([petstore_tag/0]).
-type petstore_tag() ::
[ {'id', integer() }
| {'name', binary() }
].
petstore_tag() ->
petstore_tag([]).
petstore_tag(Fields) ->
Default = [ {'id', integer() }
... | Erlang | 4 | MalcolmScoffable/openapi-generator | samples/client/petstore/erlang-proper/src/model/petstore_tag.erl | [
"Apache-2.0"
] |
#include "config.hats"
#include "{$TOP}/avr_prelude/kernel_staload.hats"
staload "{$TOP}/SATS/arduino.sats"
staload UN = "prelude/SATS/unsafe.sats"
#define LED 9
#define BLINK_DELAY_MS 10.0
implement main () = {
fun loop_fadein {n:nat | n <= 255} .<255 - n>. (i: int n): void = {
val () = analogWrite (LED, i)
... | ATS | 4 | Proclivis/arduino-ats | demo/04_pwm/DATS/main.dats | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.