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 |
|---|---|---|---|---|---|
# This file is a part of Julia. License is MIT: https://julialang.org/license
@testset "Floating point numbers - basic tests" begin
@test 4.00000000000001 ≈ 4.0
@test 5.0 ≈ 4.999999999999993
@test 4.000000002 ≉ 4.00300002
end
@testset "Other tolerance levels" begin
@test 4.32 ≈ 4.3 rtol=0.1 atol=0.01
... | Julia | 4 | greimel/julia | test/floatapprox.jl | [
"Zlib"
] |
= simple_form_for @identity do |f|
= f.input :old_password
= f.input :password
= f.input :password_confirmation
hr.split
= f.button :wrapped, cancel: settings_path
| Slim | 3 | gsmlg/peatio | app/views/identities/edit.html.slim | [
"MIT"
] |
PREFIX : <http://example.org/ns#>
SELECT ?p ?v
{ :x ?p (?v) . }
| SPARQL | 2 | Hendrikto/jena | jena-arq/testing/DAWG-Final/basic/list-3.rq | [
"Apache-2.0"
] |
import {Component, NgModule} from '@angular/core';
@Component({selector: 'my-app', template: '<div @attr [@binding]="exp"></div>'})
export class MyApp {
exp!: any;
any!: any;
}
@NgModule({declarations: [MyApp]})
export class MyModule {
}
| TypeScript | 3 | John-Cassidy/angular | packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/animations/static_animation_attribute.ts | [
"MIT"
] |
@app
multihandler
@http
get /deno/index.js
get /deno/mod.js
get /deno/index.ts
get /deno/mod.ts
get /deno/index.tsx
get /deno/mod.tsx
@aws
runtime deno
| Arc | 3 | copperinc/sandbox | test/mock/multihandler/app.arc | [
"Apache-2.0"
] |
"""Tests for the Velbus component initialisation."""
import pytest
from homeassistant.components.velbus.const import DOMAIN
from homeassistant.config_entries import ConfigEntry, ConfigEntryState
from homeassistant.core import HomeAssistant
from tests.common import mock_device_registry
@pytest.mark.usefixtures("cont... | Python | 4 | MrDelik/core | tests/components/velbus/test_init.py | [
"Apache-2.0"
] |
%{
#include "grep.h"
%}
%union
{
int val;
char* str;
Re2 re;
}
%type <re> expr prog
%type <re> expr0 expr1 expr2 expr3 expr4
%token <str> LCLASS
%token <val> LCHAR
%token LLPAREN LRPAREN LALT LSTAR LPLUS LQUES
%token LBEGIN LEND LDOT LBAD LNEWLINE
%%
prog:
expr newlines
{
$$.beg = ral(Tend);
$$.end = $$.b... | Yacc | 3 | newluhux/plan9port | src/cmd/grep/grep.y | [
"MIT"
] |
client_max_body_size 1k;
########### hash #############
# map変数のハッシュテーブルのbucketサイズを設定
map_hash_bucket_size 128;
# map変数のハッシュテーブルの最大size
map_hash_max_size 2048;
##############################
######### autoindex ##########
#autoindex on;
#autoindex_exact_size off;
#autoindex_localtime on;
##############################... | Nginx | 5 | ryuichi1208/poc-nginx | nginx/config/ssl_offload.nginxconf | [
"Apache-2.0"
] |
;; -*- no-byte-compile: t; -*-
;;; editor/objed/packages.el
(package! objed :pin "70f9fb5e0aa1627b0afc7c6b3d0aea9bac70a210")
| Emacs Lisp | 0 | leezu/doom-emacs | modules/editor/objed/packages.el | [
"MIT"
] |
// Daniel Shiffman
// http://codingtra.in
// http://patreon.com/codingtrain
// Machine Learning
// Perceptron
// More: http://natureofcode.com/book/chapter-10-neural-networks/
// Video: https://youtu.be/ntKn5TPHHAk
// The activation function
int sign(float n) {
if (n >= 0) {
return 1;
} else {
return -1;
... | Processing | 5 | aerinkayne/website | Courses/intelligence_learning/session4/SimplePerceptron/Perceptron.pde | [
"MIT"
] |
open native
#eval to_bool ("a" < "b")
#eval to_bool ("b" < "b")
namespace test1
meta def m := rb_map.mk string nat
meta def m' := m.insert "foo" 10
#eval m'.find "foo"
end test1
namespace test2
meta def m := rb_map.mk nat nat
meta def m' := m.insert 3 10
#eval m'.find 3
end test2
| Lean | 3 | ericrbg/lean | tests/lean/vm_string_lt_bug.lean | [
"Apache-2.0"
] |
PREFIX : <http://example/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT *
{
?x :p ?v1 .
?y :q ?v2 .
FILTER ( ?v1 != ?v2 || ?v1 = ?v2 )
}
| SPARQL | 3 | yanaspaula/rdf4j | testsuites/sparql/src/main/resources/testcases-sparql-1.0-w3c/data-r2/open-world/open-eq-11.rq | [
"BSD-3-Clause"
] |
;;
;
; Name: single_exec
; Platforms: *BSD
; Authors: vlad902 <vlad902 [at] gmail.com>
; Version: $Revision: 1499 $
; License:
;
; This file is part of the Metasploit Exploit Framework
; and is subject to the same licenses and copyrights as
; the rest of this package.
;
; Desc... | Assembly | 3 | OsmanDere/metasploit-framework | external/source/shellcode/bsd/ia32/single_exec.asm | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
#%RAML 1.0 Library
# This is the file /libraries/dataTypes.raml
usage: This library defines the data types for the API
types:
Foo:
properties:
id: integer
name: string
ownerName?: string
Bar:
properties:
id: integer
name: string
city?: string
fooId: integer
Error:... | RAML | 3 | zeesh49/tutorials | raml/modularization/libraries/dataTypes.raml | [
"MIT"
] |
[
define_tag:'lp_logical_between',
-description='Evaluates if a value is inclusively between a high and low value. Returns true or false.',
-priority='replace',
-required='value',
-required='low',
-required='high';
select: #value->type;
case:'integer';
return: (integer:#value) >= (integer:#low... | Lasso | 5 | fourplusone/SubEthaEdit | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/LassoStartup/lp_logical_between.lasso | [
"MIT"
] |
module FlySuccessTests exposing (all)
import Application.Application as Application
import Common exposing (defineHoverBehaviour, queryView)
import DashboardTests exposing (iconSelector)
import Expect exposing (Expectation)
import FlySuccess.FlySuccess as FlySuccess
import Html.Attributes as Attr
import Http
import Me... | Elm | 4 | Caprowni/concourse | web/elm/tests/FlySuccessTests.elm | [
"Apache-2.0"
] |
-- @shouldFailWith OrphanRoleDeclaration
module Main where
type role D nominal
| PureScript | 3 | andys8/purescript | tests/purs/failing/OrphanRoleDeclaration1.purs | [
"BSD-3-Clause"
] |
#!/usr/bin/perl
# Simple script to generate a 302 HTTP redirect
print "Status: 302 Moved Temporarily\r\n";
print "Location: referrer.html\r\n";
print "Content-type: text/html\r\n";
print "\r\n";
print <<HERE_DOC_END
<html><body>
This page should not be seen - it is a 302 redirect to another page.
</body></html>
HERE_... | Perl | 4 | zealoussnow/chromium | third_party/blink/web_tests/http/tests/navigation/resources/redirect-to-referrer-check.pl | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 130.229 87.986"><g fill="none" stroke="#626366" stroke-width="3" stroke-linejoin="round"><path d="M1.5 27.426L50.34 1.5l78.38 47.098-48.84 25.924z"/><path d="M79.88 74.52l.008 11.965L1.508 39.4 1.5 27.425z"/><path d="M79.88 74.52l48.84-25.924.008 11.965-48.84 25.924z... | SVG | 2 | Tomkirn/drawio | src/main/webapp/img/lib/allied_telesis/switch/Switch_52_port_L3.svg | [
"Apache-2.0"
] |
FROM ubuntu:18.04
MAINTAINER PaddlePaddle Authors <paddle-dev@baidu.com>
WORKDIR /workspace
ENV PATH /opt/python3/bin:/root/.local/bin:$PATH
ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:/opt/python3/lib
# Install Python
ADD https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-4.7.12.1-Linux-x86_64.sh miniconda... | Dockerfile | 4 | zmxdream/Paddle | r/Dockerfile | [
"Apache-2.0"
] |
drop table EMPLOYEES if exists;
create table EMPLOYEES(
ID int not null AUTO_INCREMENT,
NAME varchar(100) not null,
TITLE varchar(100),
PRIMARY KEY ( ID )
);
| SQL | 3 | DBatOWL/tutorials | persistence-modules/spring-boot-persistence/src/test/resources/employees_schema.sql | [
"MIT"
] |
{block title}{$note->name}{/block}
{block page_title}<span>{$note->name}</span>{/block}
{block body}
<form n:name="editNote-form" class="note">
{control $form ownerrors}
{control $form body}
</form>
| Latte | 3 | aleanza/notejam | nette/doctrine/notejam/app/Presenters/templates/Note/edit.latte | [
"MIT"
] |
# Returns the area of the square with given sides
# Side length should eb given in input
side = 2
# side = float(input("Enter the side of the square: "))
#calculate area
area = side**2
print(f"Area of the given square is {area}.")
| Python | 4 | wisarut-si/Python | area_of_square.py | [
"MIT"
] |
#ifndef TEST_INTEROP_CXX_TEMPLATES_INPUTS_CLASS_TEMPLATE_WITH_PRIMITIVE_ARGUMENT_H
#define TEST_INTEROP_CXX_TEMPLATES_INPUTS_CLASS_TEMPLATE_WITH_PRIMITIVE_ARGUMENT_H
template<class T>
struct MagicWrapper {
T t;
int getValuePlusArg(int arg) const { return t + arg; }
};
typedef MagicWrapper<int> WrappedMagicInt;
#... | C | 4 | gandhi56/swift | test/Interop/Cxx/templates/Inputs/class-template-with-primitive-argument.h | [
"Apache-2.0"
] |
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C++ | 4 | EricRemmerswaal/tensorflow | tensorflow/core/profiler/convert/xplane_to_trace_events_test.cc | [
"Apache-2.0"
] |
REBOL [
Title: "Generates Red equal? tests"
Author: "Peter W A Wood"
File: %make-strict-equal-auto-test.r
Version: 0.1.0
Tabs: 4
Rights: "Copyright (C) 2013-2016 Peter W A Wood. All rights reserved."
License: "BSD-3 - https://github.com/red/red/blob/origin/BSD-3-License.txt"
]
;; initialisations
make-d... | R | 5 | 0xflotus/red | tests/source/units/make-strict-equal-auto-test.r | [
"BSL-1.0",
"BSD-3-Clause"
] |
module.exports = {
experimental: {
modularizeImports: {
'../components/halves': {
transform: '../components/halves/{{ member }}',
},
},
},
}
| JavaScript | 3 | hanneslund/next.js | examples/modularize-imports/next.config.js | [
"MIT"
] |
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-php/Attic/eselect-php-0.7.0.ebuild,v 1.3 2013/04/10 13:25:36 olemarkus dead $
EAPI=5
#inherit depend.apache
DESCRIPTION="PHP eselect module"
HOMEPAGE="http:/... | Gentoo Ebuild | 4 | tobychin/ey-cloud-recipes | cookbooks/php56/files/default/eselect-php-0.7.0.ebuild | [
"MIT"
] |
package com.baeldung.samples.endpoints;
public interface Activator<T> {
public void handleMessage(T input);
}
| Java | 3 | zeesh49/tutorials | spring-integration/src/main/java/com/baeldung/samples/endpoints/Activator.java | [
"MIT"
] |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @file ALog.h
*
* Very simple android only logging. Define LOG_TAG to enable the macros.
*/
#pragma once
#ifdef __ANDROID_... | C | 5 | anaskhraza/react-native | ReactAndroid/src/main/jni/first-party/fb/include/fb/ALog.h | [
"CC-BY-4.0",
"MIT"
] |
{:main reagenttest.runtests
:optimizations :advanced
:output-to "target/bundle-adv/resources/public/js/out/karma.js"
:output-dir "target/bundle-adv/resources/public/js/out"
; :pseudo-names true
:elide-asserts true
:target :bundle
:closure-defines {cljs.core/*global* "window"}}
| edn | 2 | oakmac/reagent | test-environments/bundle-adv/karma.edn | [
"MIT"
] |
import convertHrtime from "convert-hrtime"
export function calcElapsedTime(startTime: [number, number]): string {
const elapsed = process.hrtime(startTime)
return convertHrtime(elapsed)[`seconds`].toFixed(3)
}
| TypeScript | 4 | JQuinnie/gatsby | packages/gatsby-cli/src/util/calc-elapsed-time.ts | [
"MIT"
] |
#N canvas 380 43 335 239 12;
#X obj 74 93 dspobj~;
#X obj 74 65 sig~ 0;
#X msg 90 121 bang;
#X obj 74 149 print~;
#X floatatom 74 37 0 0 0 0 - - -;
#X msg 193 56 \; pd dsp 1;
#X connect 0 0 3 0;
#X connect 1 0 0 0;
#X connect 2 0 3 0;
#X connect 4 0 1 0;
| Pure Data | 4 | mcclure/pure-data | doc/6.externs/test-dspobj~.pd | [
"TCL"
] |
\title{API}
{{navbar}}
Edward's design reflects the building blocks for probabilistic
modeling. It defines interchangeable components, enabling rapid
experimentation and research with probabilistic models.
Edward is named after the innovative statistician
\href{https://en.wikipedia.org/wiki/George_E._P._Box}{George ... | TeX | 3 | xiangze/edward | docs/tex/api/index.tex | [
"Apache-2.0"
] |
<!doctype html>
<html lang="en" data-framework="jsblocks">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jsblocks • TodoMVC</title>
<link rel="stylesheet" href="node_modules/todomvc-common/base.css">
<link rel="stylesheet" href="node_modules/todomvc... | HTML | 4 | dtelaroli/todomvc | examples/jsblocks/index.html | [
"MIT"
] |
= ActiveRecord Fetching for Core Data =
In software engineering, the active record pattern is a design pattern found in software that stores its data in relational databases. It was named by Martin Fowler in his book Patterns of Enterprise Application Architecture. The interface to such an object would include functio... | Creole | 5 | steipete/PSFoundation | activerecord-coredata/README.creole | [
"MIT"
] |
/*
* Copyright (c) 2005 Arched Rock Corporation
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* Redistributions of source code must retain the above copyright
* notice, this list of con... | nesC | 5 | mtaghiza/tinyos-main-1 | tos/chips/pxa27x/timer/HalPXA27xCounterM.nc | [
"BSD-3-Clause"
] |
.bg-foo {
background-image: url("./foo.png");
}
| CSS | 1 | mickaelamimba/Round-game | node_modules/tailwindcss/jit/tests/mutable.test.css | [
"MIT"
] |
--TEST--
SOAP Interop Round3 GroupD Compound2 001 (php/wsdl): echoEmployee
--EXTENSIONS--
soap
--INI--
precision=14
soap.wsdl_cache_enabled=0
--FILE--
<?php
class Person {
function __construct(public $Age, public $ID, public $Name, public $Male) {}
}
class Employee {
function __construct(public $person, public ... | PHP | 3 | NathanFreeman/php-src | ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound2_001w.phpt | [
"PHP-3.01"
] |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "JSCExecutorFactory.h"
#import <jsi/JSCRuntime.h>
#import <memory>
namespace facebook {
namespace react {
std::unique_... | Objective-C++ | 4 | anaskhraza/react-native | React/CxxBridge/JSCExecutorFactory.mm | [
"CC-BY-4.0",
"MIT"
] |
<cfprocessingdirective suppressWhitespace="true"><cfcontent type="application/rss+xml" reset="true"><?xml version="1.0"?>
<rss version="2.0">
<channel><cfoutput>
<title>#application.rbs.setting.sitetitle# Events</title>
<link>#urlFor(controller="api", onlyPath=false)#</link>
<description>#application.rbs.settin... | ColdFusion | 3 | fintecheando/RoomBooking | views/api/rss2.xml.cfm | [
"Apache-1.1"
] |
## Shaded JSON
This source was originally taken from `com.vaadin.external.google:android-json` which
provides a clean room re-implementation of the `org.json` APIs and does not include the
"Do not use for evil" clause.
| AsciiDoc | 1 | Martin-real/spring-boot-2.1.0.RELEASE | spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/json-shade/README.adoc | [
"Apache-2.0"
] |
## libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
## Copyright (C) 1996-1999,2000 Free Software Foundation, Inc.
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Publ... | M4 | 4 | wapache-org/greenplum-gpdb | config/libtool.m4 | [
"PostgreSQL",
"Apache-2.0"
] |
server {
server_name sslon.com;
ssl on;
ssl_certificate snakeoil.cert;
ssl_certificate_key snakeoil.key;
}
| DIGITAL Command Language | 4 | tsrivishnu/certbot | certbot-nginx/certbot_nginx/tests/testdata/etc_nginx/sites-enabled/sslon.com | [
"Apache-2.0"
] |
// this looks like another JSDOM quirk — svg.className = 'foo' behaves
// differently from browsers. So this test succeeds even when it should fail
export default {
html: "<svg class='foo'></svg>",
test({ assert, target }) {
const svg = target.querySelector('svg');
assert.equal(svg.namespaceURI, 'http://www.w3.... | JavaScript | 4 | vatro/svelte | test/runtime/samples/svg-class/_config.js | [
"MIT"
] |
<pre>
DEF: 1
Titel: The Social Smart Contract
Autor: @DemocracyEarth.
Kommentarzusammenfassung: No comments yet.
Status: Aktiv
Typ: Paper
Erstellt: 2017-06-08
Lizenz: MIT
Ersetzt: 0
</pre>
=The Social Smart Contract.=
An Initial Rights Offering from [http://democracy.earth Democracy Earth Foundation]... | MediaWiki | 3 | Dkdaniz/paper | translations/german/README_DE.mediawiki | [
"MIT"
] |
sub Main(args)
screen = CreateObject("roSGScreen") 'Create Screen object
m.port = CreateObject("roMessagePort") 'Create Message port
screen.setMessagePort(m.port) 'Set message port to listen to screen
scene = screen.CreateScene("HomeScene") 'Create HomeScene
m.global = screen.getGlobalNode()
... | Brightscript | 4 | khangh/samples | certification/deep-Linking-samples-master/Basic_DeepLink_roInput_Sample/source/main.brs | [
"MIT"
] |
Feature: Insert duration
Background:
Given an empty graph
And create a space with following options:
| partition_num | 9 |
| replica_factor | 1 |
| vid_type | FIXED_STRING(20) |
Scenario: insert duration failed
Given having executed:
"""
... | Cucumber | 4 | wenhaocs/nebula | tests/tck/features/mutate/InsertDurationType.feature | [
"Apache-2.0"
] |
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<div align=\"right\" style=\"text-align: right;\"><i>Peter Norvig<br>April 2020</i></div>\n",
"\n",
"# Jotto\n",
"\n",
"[Jotto](https://en.wikipedia.org/wiki/Jotto) is a word game in which a **guesser** tries to guess a... | Jupyter Notebook | 5 | notSahil/pytudes | ipynb/jotto.ipynb | [
"MIT"
] |
(defprolog a
X <-- (b X) (c X);)
(defprolog b
1 <--;
4 <--;)
(defprolog c
X <-- (d X) ! (e* X);
X <-- (f X);)
(defprolog d
X <-- (g* X);
X <-- (h X);)
(defprolog e*
3 <--;)
(defprolog f
4 <--;)
(defprolog g*
2 <--;)
(defprolog h
1 <--;) | Shen | 3 | tizoc/chibi-shen | shen-test-programs/cut.shen | [
"BSD-3-Clause"
] |
{:input-objects
{:Filter
{:fields
{:id {:type (non-null :ID)}
:limit {:type (non-null :Int)}}}}
:queries
{:filter
{:type String
:resolve :queries/filter
:args
{:input {:type (non-null :Filter)}}}}} | edn | 3 | hagenek/lacinia | dev-resources/dynamic-input-objects.edn | [
"Apache-2.0"
] |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>babel-standalone example - Script tag</title>
</head>
<body>
Using Babel <strong id="version"></strong>:
<pre id="output">Loading...</pre>
<script src="../babel.js"></script>
<script type="text/javascript">
// just disable the auto transform... | HTML | 4 | wuweiweiwu/babel | packages/babel-standalone/examples/scriptTag-custom.htm | [
"MIT"
] |
INSERT INTO b (id, k) VALUES (11, 13), (17, 19);
| SQL | 3 | suryatmodulus/tidb | br/tests/lightning_error_summary/data/error_summary.b.sql | [
"Apache-2.0",
"BSD-3-Clause"
] |
"""Test config flow."""
from homeassistant import data_entry_flow
from homeassistant.components.shopping_list.const import DOMAIN
from homeassistant.config_entries import SOURCE_IMPORT, SOURCE_USER
async def test_import(hass):
"""Test entry will be imported."""
result = await hass.config_entries.flow.async_... | Python | 5 | domwillcode/home-assistant | tests/components/shopping_list/test_config_flow.py | [
"Apache-2.0"
] |
/datum/socket
/datum/socket/proc/__register_socket()
/datum/socket/proc/__deregister_socket()
/datum/socket/proc/__check_has_data()
/datum/socket/proc/__wait_for_data()
/datum/socket/proc/__retrieve_data()
/datum/socket/New()
__register_socket()
/datum/socket/Del()
__deregister_socket()
//addr is a s... | DM | 4 | brooje/extools | byond-extools/src/dm/socket.dm | [
"MIT"
] |
div[data-primitive] {
padding-bottom: 2em;
border-bottom: 1px solid #888;
margin-bottom: 2em;
}
div[data-primitive] .pair {
display: flex;
flex-direction: column-reverse;
margin-bottom: 1em;
}
div[data-primitive] .shape {
flex: 0 0 auto;
width: 100%;
height: 250px;
}
div[data-primitive] .desc {
... | CSS | 3 | yangmengwei925/3d | manual/resources/threejs-primitives.css | [
"MIT"
] |
//===--- TypeInfoProvider.h - Abstract access to type info ------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.... | C | 5 | gandhi56/swift | include/swift/Remote/TypeInfoProvider.h | [
"Apache-2.0"
] |
// not compliant
component{
function x(){
sampleStruct.yetAnotherKey = "yetAnotherValue";
//repeat
sampleStruct.yetAnotherKey = "yetAnotherValue";
sampleStruct.foo["abc"] = "yetAnotherValue";
sampleStruct.foo().xyzzy["abc"] = "yetAnotherValue";
sampleStruct.foo().bar = "yetAnotherValue";
sampleS... | ColdFusion CFC | 2 | tonym128/CFLint | src/test/resources/com/cflint/tests/StructKeyChecker/dotNotation_405.cfc | [
"BSD-3-Clause"
] |
module ADTProto where
type Ident = String
newtype Type = TypeName Ident
deriving Show
type Program = [DeclType]
data DeclType = TypeDeclADT DeclADT
| TypeDeclMessage DeclMessage
| TypeDeclEnum DeclEnum
deriving Show
-- ADTs
data DeclADT = ADT { adtName :: Ident, adtB... | Haskell | 4 | zadcha/rethinkdb | scripts/adtproto/ADTProto.hs | [
"Apache-2.0"
] |
1@<<<1>>>@ 2@<<<2>>>@ 3@<<<3>>>@ | Creole | 0 | jquorning/ada-wiki | regtests/files/wiki/template-1-param.creole | [
"Apache-2.0"
] |
%namespace Dot2Graph
%option out:DotLex.cs
%{
int nesting = 0;
string stringId = null;
internal void LoadYylVal() {
int dummy = yytext.Length;
yylval.sVal = tokTxt;
}
%}
alpha [a-zA-Z]
alphaplus [a-zA-Z0-9\-\200-\377\_!\.\'\?]
alphaplain [a-zA-Z0-9\200-\377\_*!\.\'\?]
num [\-]?(\.([0-... | Lex | 4 | MVoloshin/automatic-graph-layout | GraphLayout/tools/Dot2Graph/dot.lex | [
"MIT"
] |
{{ partial "redirect" .Permalink }}
| HTML | 1 | earcam/bootstrap | site/layouts/alias.html | [
"MIT"
] |
## 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"); you may not use this f... | Mako | 4 | yetsun/hue | apps/oozie/src/oozie/templates/editor/submit_job_popup.mako | [
"Apache-2.0"
] |
cdef class Pipe:
cdef public str name
| Cython | 2 | snosrap/spaCy | spacy/pipeline/pipe.pxd | [
"MIT"
] |
/* @generated */
digraph cfg {
"div0_b1#17650173920024552929.38acfc238efbf35c1ac5da7290b49422_1" [label="1: Start div0_b1\nFormals: s:Sub&\nLocals: \n " color=yellow style=filled]
"div0_b1#17650173920024552929.38acfc238efbf35c1ac5da7290b49422_1" -> "div0_b1#17650173920024552929.38acfc238efbf35c1ac5da7290b49422_... | Graphviz (DOT) | 3 | JacobBarthelmeh/infer | infer/tests/codetoanalyze/cpp/shared/types/inheritance_field.cpp.dot | [
"MIT"
] |
= (object~ a b) c
= (array~ a b) c
= (array~ a (d)) c
| Cirru | 0 | Cirru/cirru-script | examples/destructuring.cirru | [
"Xnet",
"X11"
] |
##! This script will generate a notice if a host exceeds a threshold
##! count of ICMP payloads or those payloads have interesting entropy.
@load base/frameworks/sumstats
@load base/frameworks/notice
@load evernote/human
module Exfiltration;
export {
# Use unique and descriptive names for each notice
redef enum No... | Bro | 5 | evernote/bro-scripts | exfiltration/scripts/icmp.bro | [
"BSD-3-Clause"
] |
<mt:Unless regex_replace="/\s*\n+/g","\n"><mt:Ignore>
# =======================
#
# ダイナミックパブリッシングエラー
#
# =======================
</mt:Ignore>
<!DOCTYPE html>
<html lang="<mt:BlogLanguage />">
<head>
<mt:Include module="コンフィグ-共通" />
<mt:SetVarBlock name="ec_meta_title">ページが見つかりません<mt:Var name="ec_website_suffix" /></... | MTML | 4 | webbingstudio/mt_theme_echo_bootstrap | dist/themes/echo_bootstrap/templates/dynamic_error.mtml | [
"MIT"
] |
<h1>This should never be visible!</h1>
<table>
<tr><th colspan="3">RHTML partial</th></tr>
<tr><td>type</td><td><%= hello %></td><td>RHTML partial</td></tr>
</table>
<p>Neither should this!</p> | RHTML | 2 | RockHong/railscasts-episodes | episode-116/store/vendor/plugins/selenium-on-rails/test_data/partials/_rhtml.rhtml | [
"MIT"
] |
// check-pass
// Demonstrates what's needed to make use of `?` in const contexts.
#![crate_type = "lib"]
#![feature(try_trait_v2)]
#![feature(const_trait_impl)]
#![feature(const_try)]
use std::ops::{ControlFlow, FromResidual, Try};
struct TryMe;
struct Error;
impl const FromResidual<Error> for TryMe {
fn from_... | Rust | 5 | mbc-git/rust | src/test/ui/consts/const-try.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
//===- FuzzerCrossOver.cpp - Cross over two test inputs -------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C++ | 4 | karoyqiu/crashpad | third_party/libfuzzer/src/FuzzerCrossOver.cpp | [
"Apache-2.0"
] |
#N canvas 260 23 796 509 12;
#N canvas 0 0 450 300 (subpatch) 0;
#X array \$0-tab1 100 float 0;
#X coords 0 5 99 0 200 300 1 0 0;
#X restore 549 81 graph;
#X obj 65 307 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X floatatom 65 361 3 0 0 0 - - -;
#X text 604 387 frequency;
#N canvas 876 177 279 249 start... | Pure Data | 5 | mcclure/pure-data | doc/3.audio.examples/H13.butterworth.pd | [
"TCL"
] |
The [[mw:Extension:TitleBlacklist|TitleBlacklist extension]] allows wiki administrators to block the creation, movement and upload of pages, the title of which matches one or more regular expressions, as well as blocking creation of accounts with matching usernames.
The remote blacklist is fetched from [[metawikimedia... | MediaWiki | 1 | mitre/mediawiki-vagrant | puppet/modules/role/files/titleblacklist/VagrantRoleTitleBlacklist.wiki | [
"FSFAP"
] |
:orphan:
Remote mirrors proposal
=======================
.. contents::
This proposal describes a new implementation for nominal type metadata which
will enable out-of-process heap inspection, intended for use by debugging tools
for detecting leaks and cycles. This implementation will subsume the existing
reflection ... | reStructuredText | 4 | lwhsu/swift | docs/proposals/RemoteMirrors.rst | [
"Apache-2.0"
] |
#If Not BRL_FILESYSTEM_IMPLEMENTED
#If TARGET="android" Or TARGET="ios" Or TARGET="winrt" Or TARGET="glfw" Or TARGET="stdcpp"
#BRL_FILESYSTEM_IMPLEMENTED=True
Import "native/filesystem.${LANG}"
#Endif
#Endif
#If Not BRL_FILESYSTEM_IMPLEMENTED
#Error "Native FileSystem class not implemented"
#Endif
Extern Private
Cl... | Monkey | 4 | Regal-Internet-Brothers/webcc-monkey | webcc.data/modules/brl/filesystem.monkey | [
"Zlib"
] |
1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -84.00
-1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -89.00
1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -90.00
-1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -85.00
1.00 -1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -46.00
-1.00 1.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 -73.00
... | Matlab | 0 | yinrun/LOPDC-Benchmarks | jobshop/matlab/js-8-6-33.matlab | [
"MIT"
] |
/******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | C | 4 | seeclong/apollo | modules/perception/lidar/lib/segmentation/ncut/common/flood_fill.h | [
"Apache-2.0"
] |
; This is a Hy package
| Hy | 0 | peaceamongworlds/HyREPL | HyREPL/__init__.hy | [
"MIT"
] |
(set-info :smt-lib-version 2.6)
(set-logic QF_UFLRA)
(set-info :source |CPAchecker with k-induction on SV-COMP14 program using MathSAT5, submitted by Philipp Wendler, http://cpachecker.sosy-lab.org|)
(set-info :category "industrial")
(set-info :status unsat)
(declare-fun |main::tmp@1| () Real)
(declare-fun ldv_spin@1... | SMT | 3 | livinlife6751/infer | sledge/test/smt/QF_UFLRA/cpachecker-induction-svcomp14/cpachecker-induction.43_1a_cilled_true-unreach-call_ok_nondet_linux-43_1a-drivers--net--arcnet--rfc1201.ko-ldv_main0_sequence_infinite_withcheck_stateful.cil.out.c.smt2 | [
"MIT"
] |
Gramatika
0 $accept: E $end
1 E: T E2
2 E2: '+' T E2
3 | %empty
4 T: F T2
5 T2: '*' F T2
6 | %empty
7 F: '(' E ')'
8 | id
Terminály s pravidly, ve kterých se objevují
$end (0) 0
'(' (40) 7
')' (41) 7
'*' (42) 5
'+' (43) 2
error (256)
id (258) 8
Neterminály s pravidly,... | Bison | 4 | YKG/y | testdata/dev/ff.y.bison | [
"BSD-3-Clause"
] |
new class WeakHeapSort {
new method __init__(array, length) {
this.array = array;
this.length = length;
this.bits = sortingVisualizer.createValueArray((this.length + 7) // 8);
}
new method getBitwiseFlag(x) {
return (this.bits[x >> 3] >> (x & 7)) & 1;
}
new metho... | Opal | 4 | thatsOven/sorting-visualizer | sorts/WeakHeapSort.opal | [
"MIT"
] |
*** Settings ***
Test Template TestDoc Run Should Fail
Resource testdoc_resource.robot
*** Test Cases ***
Invalid usage
Expected at least 2 arguments, got 1.
Non-existing input
Parsing 'nonex.robot' failed: File or directory to execute does not exist.
... nonex.robot
Invalid input
S... | RobotFramework | 3 | bhirsz/robotframework | atest/robot/testdoc/invalid_usage.robot | [
"ECL-2.0",
"Apache-2.0"
] |
{-# LANGUAGE PolyKinds #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Data.GADT.Compare.Extended
( module Data.GADT.Compare,
strengthenOrdering,
extendGOrdering,
)
where
import Data.GADT.Compare
import Type.Reflection
import Prelude
instance GEq ((:~~:) a) where
geq HRefl HRefl = Just Refl
instance ... | Haskell | 4 | devrsi0n/graphql-engine | server/src-lib/Data/GADT/Compare/Extended.hs | [
"Apache-2.0",
"MIT"
] |
/* 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 | yage99/tensorflow | tensorflow/lite/delegates/xnnpack/reduce_tester.h | [
"Apache-2.0"
] |
# Set this to minimum supported API level for React Native.
sdk=21
| INI | 0 | anaskhraza/react-native | ReactAndroid/src/test/resources/robolectric.properties | [
"CC-BY-4.0",
"MIT"
] |
;###########################################################
; Create a scheduled task natively [AHK_L]
; Original by shajul
; http://www.autohotkey.com/board/topic/61042-create-a-scheduled-task-natively-ahk-l/
;###########################################################
ScheduleTask(TriggerType, startTime, Path, Args... | AutoHotkey | 5 | standardgalactic/PuloversMacroCreator | LIB/ScheduleTask.ahk | [
"Unlicense"
] |
exec("swigtest.start", -1);
// Check passing by value
checkequal(val_double(42), 42, "val_double() test fails.");
checkequal(val_float(42), 42, "val_float() test fails.");
checkequal(val_char('a'), 'a', "val_char() test fails.");
checkequal(val_schar(42), 42, "val_schar() test fails.");
checkequal(val_schar(int8(42)... | Scilab | 3 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/primitive_types_runme.sci | [
"BSD-3-Clause"
] |
(ns swagger-petstore.api.pet-test
(:require [clojure.test :refer :all]
[clojure.java.io :as io]
[swagger-petstore.core :refer [with-api-context]]
[swagger-petstore.api.pet :refer :all]))
(defn credentials-fixture [f]
(with-api-context {:auths {"api_key" "special-key"}}
(f)))... | Clojure | 4 | wwadge/swagger-codegen | samples/client/petstore/clojure/test/swagger_petstore/api/pet_test.clj | [
"Apache-2.0"
] |
/// <reference path="fourslash.ts" />
//// class C {
//// /**/set Bar(bar:string) {}
//// }
//// var o2 = { set Foo(val:number) { } };
goTo.marker();
edit.insert("public ");
| TypeScript | 4 | nilamjadhav/TypeScript | tests/cases/fourslash/insertPublicBeforeSetter.ts | [
"Apache-2.0"
] |
---
title: Blog
layout: layouts/page.liquid
---
{% for post in collections.post reversed %}
<section class="blog">
<article>
<h1><a href="{{ post.url }}">{{ post.data.title }}</a></h1>
{% assign author_url = post.data.author_url %}
{% assign author_avatar = post.data.author_avatar %}
{% assign author_na... | Liquid | 3 | ViGi-P/rome | website/src/blog/index.liquid | [
"MIT"
] |
//
// MetalROIPooling.metal
// MNN
//
// Created by MNN on 2018/08/14.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include <metal_stdlib>
#include "MetalDefine.metal"
using namespace metal;
struct ROI_shape {
int input_width;
int input_height;
int input_size;
int output_width;
int ... | Metal | 4 | xhuan28/MNN | source/backend/metal/MetalROIPooling.metal | [
"Apache-2.0"
] |
func $foo (
var %i i32
#var %i1 i32, var %j1 i32, var %k1 i32
) i32 {
return (
neg i32(dread i32 %i))}
func $foo1 (
var %i i32, var %j i32, var %k i32,
var %i1 i32, var %j1 i32, var %k1 i32
) i32 {
return (
neg i32(dread i32 %i))}
func $foo2 (
var %i i32, var %j i32, var %k i32
) ... | Maple | 3 | harmonyos-mirror/OpenArkCompiler-test | test/testsuite/irbuild_test/I0059-mapleall-irbuild-edge-neg/Main.mpl | [
"MulanPSL-1.0"
] |
--- TESTS FOR DATETIME PARSING FUNCTIONS ---
-- parsing with pattern 'y'.
-- the range of valid year is [-290307, 294247],
-- but particularly, some thrift client use java.sql.Timestamp to parse timestamp, which allows
-- only positive year values less or equal than 9999. So the cases bellow only use [1, 9999] to pass... | SQL | 5 | OlegPt/spark | sql/core/src/test/resources/sql-tests/inputs/datetime-parsing.sql | [
"Apache-2.0"
] |
function foo<A extends any[]>(
arg: <T extends { a: number }>(t: T, ...rest: A) => number
) { }
foo((t, u: number) => t.a) | TypeScript | 3 | monciego/TypeScript | tests/cases/compiler/contextuallyTypedGenericAssignment.ts | [
"Apache-2.0"
] |
<interface name="stream">
<datafield ftype="struct stream_pkt *" name="start" />
<datafield ftype="struct stream_pkt *" name="end" />
<datafield ftype="struct stream_pkt *" name="completed_start" />
<datafield ftype="struct stream_pkt *" name="completed_end" />
<method rtype="int" name="sync" />
</interface... | D | 3 | CyberQueenMara/baseband-research | okl4_kernel/okl4_2.1.1-patch.9/libs/driverv2/include/stream_if.di | [
"MIT"
] |
# @ECLASS: deep-provided-inherit.eclass
# @MAINTAINER:
# Random Person <maintainer@random.email>
# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7
# @PROVIDES: provided-inherit
# @BLURB: Stub eclass for testing InheritsCheck.
inherit provided-inherit
# @FUNCTION: deep-provided-inherit_public_func
# @DESCRIPTION:
# Public stub fun... | Gentoo Eclass | 4 | floppym/pkgcheck | testdata/repos/eclass/eclass/deep-provided-inherit.eclass | [
"BSD-3-Clause"
] |
# Comment
| YAML | 0 | fuelingtheweb/prettier | tests/yaml_spec/spec-example-6-10-comment-lines.yml | [
"MIT"
] |
\2a {} | CSS | 0 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/GNiHtd4OPiZDQlN5KGAmRQ/input.css | [
"Apache-2.0"
] |
package com.baeldung.webclient.timeout;
import io.netty.channel.ChannelOption;
import io.netty.channel.epoll.EpollChannelOption;
import io.netty.handler.ssl.SslContextBuilder;
import io.netty.handler.timeout.ReadTimeoutHandler;
import io.netty.handler.timeout.WriteTimeoutHandler;
import lombok.experimental.UtilityClas... | Java | 4 | DBatOWL/tutorials | spring-5-reactive-client/src/main/java/com/baeldung/webclient/timeout/WebClientTimeoutProvider.java | [
"MIT"
] |
import operator_benchmark as op_bench
import torch
"""Microbenchmarks for quantized unary operators (point-wise and reduction)."""
# Configs for pointwise and reduction unary ops
qunary_ops_configs_short = op_bench.config_list(
attr_names=['M', 'N'],
attrs=[
[512, 512],
],
cross_product_con... | Python | 4 | Hacky-DH/pytorch | benchmarks/operator_benchmark/pt/qunary_test.py | [
"Intel"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.