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 |
|---|---|---|---|---|---|
@supports (transform-origin: 5% 5%) {}
@supports (transform-origin:5% 5%) {}
@supports ( transform-origin : 5% 5% ) {}
@supports ( transform-origin : 5% 5% ) {}
@supports
(transform-origin: 5% 5%) {}
@supports
(transform-origin: 5% 5%) {}
@supports
(
transform-origin
:
5%
5%
) {}
@supports
(
transform-origin... | CSS | 2 | toplenboren/prettier | tests/css/atrule/supports.css | [
"MIT"
] |
/*
This is a simple, working, selection sort example
Here you can see how to work with multiple files and
imply variables's types, curly brackets, parenthesis and semicolons
To compile this code simply run cpy example.cpy
OBS:
The -k flag keeps the generated source files after compilation,
this way you ca... | COBOL | 2 | saviour07/CPY | Examples/Selection Sort/main.cpy | [
"MIT"
] |
{:queries
{:hello {:type String
:resolve [:literal "Hello World"]}}}
| edn | 3 | hagenek/lacinia | docs/_examples/resolver-factory-schema.edn | [
"Apache-2.0"
] |
# API Name
## GET /
+ Response 200 (application/json)
mis indented
mis indented
mis indented
mis indented
mis indented
mis indented
mis indented
mis indented
mis indented
mis indented
mis indented
mis indented
mis indented
mis indented
mis indented
mis ... | API Blueprint | 0 | realcredit1/drafter | test/fixtures/api/issue-741.apib | [
"BSL-1.0",
"MIT"
] |
/**
This module is a plain C class emulation. The POC written by decoder was in cpp and used some classes
in particular for the local negotiator.
See https://stackoverflow.com/questions/40992945/convert-a-cpp-class-cpp-file-into-a-c-structure-c-file
for how I emulated a class in pure C.
The local negotiator is a... | C | 5 | OsmanDere/metasploit-framework | external/source/exploits/drunkpotato/Common_Src_Files/LocalNegotiator.c | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
- dashboard: traffic_summary
title: Traffic Summary
layout: grid
width: 800
rows:
- elements: [last_week_sessions, last_week_uniques, last_week_bounce_rate]
height: 200
- elements: [sessions]
height: 300
- elements: [sessions_by_traffic_source, time_on_site]
height: 300
- eleme... | LookML | 3 | park0450/snowplow | lookml/traffic_summary.dashboard.lookml | [
"Apache-2.0"
] |
/*!
* Copyright 2019 XGBoost contributors
*/
// Dummy file to keep the CUDA conditional compile trick.
#if !defined(XGBOOST_USE_CUDA)
#include "multiclass_metric.cu"
#endif // !defined(XGBOOST_USE_CUDA)
| C++ | 1 | puneetjain-iclp/xgboost | src/metric/multiclass_metric.cc | [
"Apache-2.0"
] |
OPTION, PSDUMPFREQ=5000; // 6d data written on steps (h5).
OPTION, STATDUMPFREQ=1; // Beam Stats written on steps (stat).
OPTION, BOUNDPDESTROYFQ=10; // Delete lost particles, if any
OPTION, AUTOPHASE= 6;
OPTION, VERSION = 20000;
Title, string="conversion";
//----------------------------------------------... | Opal | 5 | mkeilman/sirepo | tests/lib_data/opal_2/first.opal | [
"Apache-2.0"
] |
SOURCES += \
$$PWD/buffer.cpp \
$$PWD/bufferprovider.cpp \
$$PWD/filebufferprovider.cpp \
$$PWD/markdownbuffer.cpp \
$$PWD/markdownbufferfactory.cpp \
$$PWD/filetypehelper.cpp \
$$PWD/nodebufferprovider.cpp \
$$PWD/textbuffer.cpp \
$$PWD/textbufferfactory.cpp
HEADERS += \
$$PWD/... | QMake | 1 | lizhyumzi/vnote | src/core/buffer/buffer.pri | [
"MIT"
] |
--TEST--
Test printf() function : error conditions
--FILE--
<?php
echo "*** Testing printf() : error conditions ***\n";
// Zero arguments
echo "\n-- Testing printf() function with Zero arguments --\n";
try {
var_dump( printf() );
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
echo "\n-- Testing print... | PHP | 5 | NathanFreeman/php-src | ext/standard/tests/strings/printf_error.phpt | [
"PHP-3.01"
] |
XPC
XCTest
SceneKit.ModelIO
CoreImage.CIFilterBuiltins
| Text | 0 | gandhi56/swift | utils/api_checker/sdk-module-lists/fixed-clang-modules-macosx.txt | [
"Apache-2.0"
] |
<mt:Ignore>
# =======================
#
# ウィジェット-カテゴリーアーカイブリスト
#
# 参照する変数:
# ec_taxonomy_basename
#
# ローカル変数:
# __current_taxonomy_basename__
#
# =======================
</mt:Ignore>
<mt:IfArchiveTypeEnabled archive_type="Category">
<mt:If tag="BlogCategoryCount">
<div class="card widget widget-localnav widget-... | MTML | 4 | webbingstudio/mt_theme_echo_bootstrap | dist/themes/echo_bootstrap/templates/widget_category_archive.mtml | [
"MIT"
] |
#!/bin/bash
set -euxo pipefail
##
# @license Copyright 2020 The Lighthouse 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... | Shell | 4 | martin-maunoury/lighthouse | lighthouse-core/scripts/gcp-collection/gcp-run.sh | [
"Apache-2.0"
] |
<html>
<body>
<form id="form" method="post">
<input name="greeting" value="hello">
<input type="submit" value="submit">
</form>
</body>
</html>
| HTML | 3 | lingxiao-Zhu/electron | spec/fixtures/pages/form-with-data.html | [
"MIT"
] |
namespace OpenAPI
open UserApiHandlerParams
open System
open Microsoft.AspNetCore.Http
module UserApiServiceInterface =
//#region Service interface
type IUserApiService =
abstract member CreateUser : CreateUserBodyParams -> CreateUserResult
abstract member CreateUsersWithArrayInput : CreateU... | F# | 4 | MalcolmScoffable/openapi-generator | samples/server/petstore/fsharp-functions/OpenAPI/src/api/UserApiServiceInterface.fs | [
"Apache-2.0"
] |
"""
Project Euler Problem 89: https://projecteuler.net/problem=89
For a number written in Roman numerals to be considered valid there are basic rules
which must be followed. Even though the rules allow some numbers to be expressed in
more than one way there is always a "best" way of writing a particular number.
For e... | Python | 5 | NavpreetDevpuri/Python | project_euler/problem_089/sol1.py | [
"MIT"
] |
@0x9ef128e10a8010b2;
struct Nested1
{
b @0 : UInt64;
c @1 : List(List(UInt64));
}
struct Nested2
{
e @0 : List(List(Nested3));
h @1 : List(Nested4);
}
struct Nested3
{
f @0 : UInt64;
g @1 : UInt64;
}
struct Nested4
{
k @0 : List(UInt64);
}
struct Nested
{
a @0 : Nested1;
d @... | Cap'n Proto | 4 | pdv-ru/ClickHouse | tests/queries/0_stateless/format_schemas/02030_capnp_nested_lists_and_tuples.capnp | [
"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>
<Property Name="NI.Project.Description" Type="Str"></Property>
<Item Name="My Computer" Type="My Computer">
<Property Name="server.app.propertiesEnabled" Type="Boo... | LabVIEW | 2 | advancedplotting/aplot | tests/TestSuite.lvproj | [
"BSD-3-Clause"
] |
BpositionJ | PureBasic | 0 | pchandrasekaran1595/onnx | onnx/backend/test/data/node/test_sequence_insert_at_front/test_data_set_0/input_2.pb | [
"Apache-2.0"
] |
// build-pass
// only-x86_64
#![feature(target_feature_11)]
use std::arch::asm;
#[target_feature(enable = "avx")]
fn main() {
unsafe {
asm!(
"/* {} */",
out(ymm_reg) _,
);
}
}
| Rust | 1 | david-perez/rust | src/test/ui/asm/x86_64/issue-89875.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
"name": "perfect"
| CoffeeScript | 0 | pyrolabs/atom | spec/fixtures/packages/package-without-module/package.cson | [
"MIT"
] |
{
"firstName": "Joe",
"lastName": "Jackson",
"gender": "male",
"age": 28,
"address": {
"streetAddress": "101",
"city": "San Diego",
"state": "CA"
},
"phoneNumbers": [
{ "type": "home", "number": "7349282382" }
]
} | JSON | 1 | CySecWee/ML | pandas/data1.json | [
"MIT"
] |
Gramatika
0 $accept: Start $end
1 AlterTableStmt: _ALTER _TABLE TableName AlterTableStmt1
2 AlterTableStmt1: _ADD ColumnDef
3 | _DROP _COLUMN ColumnName
4 Assignment: ColumnName '=' Expression
5 AssignmentList: Assignment AssignmentList1 AssignmentList2
6 AssignmentList1... | Bison | 5 | YKG/y | testdata/dev/ql.y.bison | [
"BSD-3-Clause"
] |
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
namespace Phalcon\Mvc;
use Phalcon\Di\Injectable;
/**
* Phalcon\Mvc\Controller
*
* ... | Zephir | 4 | tidytrax/cphalcon | phalcon/Mvc/Controller.zep | [
"BSD-3-Clause"
] |
{% extends '@WebProfiler/Profiler/layout.html.twig' %}
{% import _self as helper %}
{% block toolbar %}
{% if collector.messages|length > 0 %}
{% set status_color = collector.exceptionsCount ? 'red' %}
{% set icon %}
{{ include('@WebProfiler/Icon/messenger.svg') }}
<span cl... | Twig | 4 | simonberger/symfony | src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/messenger.html.twig | [
"MIT"
] |
[3;38;2;102;217;239mdigraph[0m[38;2;248;248;242m [0m[38;2;255;255;255m{[0m
[38;2;248;248;242m [0m[38;2;102;217;239mlabel[0m[38;2;248;248;242m [0m[38;2;249;38;114m=[0m[38;2;248;248;242m [0m[38;2;248;248;242m<[0m[38;2;248;248;242mLabel [0m[38;2;255;255;255m<[0m[38;2;249;38;114mfont[0m[38;2;166;22... | Graphviz (DOT) | 3 | JesseVermeulen123/bat | tests/syntax-tests/highlighted/Graphviz DOT/test_digraph.dot | [
"Apache-2.0",
"MIT"
] |
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
TEXT ·Fn0(SB), 0, $0-0
RET
| GAS | 1 | SSSDNSY/go | src/internal/abi/testdata/x.s | [
"BSD-3-Clause"
] |
// Check that we apply unsizing coercions based on the return type.
//
// Also serves as a regression test for #60424.
//
// edition:2018
// check-pass
#![allow(warnings)]
use std::fmt::Debug;
const TMP: u32 = 22;
// Coerce from `&u32` to `*const u32`
fn raw_pointer_coercion() {
fn sync_example() -> *const u32 ... | Rust | 4 | Eric-Arellano/rust | src/test/ui/async-await/return-ty-raw-ptr-coercion.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
Red [
Title: "Rich Text Dialect"
Author: "Nenad Rakocevic"
File: %RTD.red
Tabs: 4
Rights: "Copyright (C) 2018 Red Foundation. All rights reserved."
License: {
Distributed under the Boost Software License, Version 1.0.
See https://github.com/dockimbel/Red/blob/master/BSL-License.txt
}
]
context [
sta... | Red | 5 | 0xflotus/red | modules/view/RTD.red | [
"BSL-1.0",
"BSD-3-Clause"
] |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Angular Material Universal Kitchen Sink Test</title>
<link href="theme.css" rel="stylesheet">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https:... | HTML | 4 | tungyingwaltz/components | src/universal-app/index.html | [
"MIT"
] |
(kicad_pcb (version 20171130) (host pcbnew "(5.1.4)-1")
(general
(thickness 1.6)
(drawings 168)
(tracks 745)
(zones 0)
(modules 91)
(nets 84)
)
(page A4)
(layers
(0 Top signal)
(31 Bottom signal hide)
(32 B.Adhes user hide)
(33 F.Adhes user hide)
(34 B.Paste user hi... | KiCad | 5 | sfiera/RASCSI | hw/rascsi_tester/rascsi_tester.kicad_pcb | [
"BSD-3-Clause"
] |
--TEST--
callback function returns non modified value
--EXTENSIONS--
filter
--FILE--
<?php
function callback($var) {
return $var;
}
$var = "test";
var_dump(filter_var($var, FILTER_CALLBACK, array('options'=>'callback')));
?>
--EXPECT--
string(4) "test"
| PHP | 4 | NathanFreeman/php-src | ext/filter/tests/callback_non_modified_var.phpt | [
"PHP-3.01"
] |
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C | 5 | EricRemmerswaal/tensorflow | tensorflow/tools/android/test/jni/object_tracking/image-inl.h | [
"Apache-2.0"
] |
[Exposed=Window]
interface DocumentType : Node {
readonly attribute DOMString name;
readonly attribute DOMString publicId;
readonly attribute DOMString systemId;
};
| WebIDL | 4 | corsarstl/Learn-Vue-2 | vue-testing/node_modules/jsdom/lib/jsdom/living/nodes/DocumentType.webidl | [
"MIT"
] |
(ns hu.lib.function)
(def ^:private bind-fn
(.-bind (.-prototype Function)))
(defn ^fn constant
"Creates a function that returns value"
[x] (fn [] x))
(def ^fn identify constant)
(defn ^fn lazy
[lambda default-result]
(fn [task & args]
(let [result (apply task args)]
(when result
(app... | wisp | 5 | h2non/hu | src/function.wisp | [
"MIT"
] |
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend-typecheck %S/basic.swift \
// RUN: -emit-module-interface-path %t/basic.swiftinterface
// RUN: %target-swift-frontend -emit-ir -module-name Foo %s -I %t -g -o - \
// RUN: | %FileCheck %s
// RUN: %target-swift-frontend -emit-ir -module-name Foo %s -I %t -... | Swift | 3 | lwhsu/swift | test/DebugInfo/ParseableInterfaceImports.swift | [
"Apache-2.0"
] |
defmodule FrameworkBenchmarks.Handlers.CachedWorld do
@moduledoc """
handler for the /cached-worlds route
"""
def handle(conn) do
number_of_queries = FrameworkBenchmarks.Handlers.Helpers.parse_queries(conn, "count")
ids =
1..number_of_queries
|> Enum.map(fn _ ->
:rand.uniform(10_000... | Elixir | 4 | xsoheilalizadeh/FrameworkBenchmarks | frameworks/Elixir/plug/lib/framework_benchmarks/handlers/cached-world.ex | [
"BSD-3-Clause"
] |
Scene: Utitled
ActiveCameraEntity: 2
Entities:
- Entity: 1234567890
TagComponent:
Tag: Secondary Camera Entity
TransformComponent:
Translation: [0, 0, 0]
Rotation: [0, 0, 0]
Scale: [1, 1, 1]
CameraComponent:
Camera:
ProjectionType: 1
ProjectionFOV: 45
... | Parrot | 3 | MiloHX/Parrot | editor/asset/scene/example.parrot | [
"Apache-2.0"
] |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE REDXIF> | RMarkdown | 0 | richardlehane/testsf | cmd/sf/testdata/skeleton-suite/fmt/fmt-1039-signature-id-1398.rmd | [
"Apache-2.0"
] |
proc foo(i : int = 1, j : int = 2) {
writeln("foo of ", i, " and ", j);
}
foo(j=3);
foo(4, 5);
| Chapel | 3 | jhh67/chapel | test/functions/deitz/defaultnamed/test_defaultnamed4.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Python | 4 | EricRemmerswaal/tensorflow | tensorflow/python/kernel_tests/linalg/linear_operator_test.py | [
"Apache-2.0"
] |
{{=< >=}}(ns <package>.<classname>
(:require [<baseNamespace>.core :refer [call-api check-required-params with-collection-format]])
(:import (java.io File)))
<#operations><#operation>
(defn <operationId>-with-http-info
"<&summary><#notes>
<¬es></notes>"<#hasOptionalParams>
([<#allParams><#required><#isFile... | HTML+Django | 4 | wwadge/swagger-codegen | modules/swagger-codegen/src/main/resources/clojure/api.mustache | [
"Apache-2.0"
] |
' 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.
Namespace Microsoft.CodeAnalysis.VisualBasic.Utilities.IntrinsicOperators
Friend NotInheritable Class TryCastExpre... | Visual Basic | 4 | ffMathy/roslyn | src/Workspaces/VisualBasic/Portable/Utilities/IntrinsicOperators/TryCastExpressionDocumentation.vb | [
"MIT"
] |
-- Andreas, 2018-10-15, issue #3264 reported by Guillaume Brunerie
-- Refine should not say "cannot refine" just because of a termination error.
f : Set → Set
f A = {!f!} -- C-c C-r
-- EXPECTED ANSWER:
--
-- ?1 : Set
-- ———— Errors ————————————————————————————————————————————————
-- Termination checking failed for ... | Agda | 3 | cruhland/agda | test/interaction/Issue3264.agda | [
"MIT"
] |
process.on('uncaughtException', (err) => {
console.error(err);
process.exit(1);
});
const { autoUpdater } = require('electron');
autoUpdater.on('error', (err) => {
console.error(err);
process.exit(1);
});
const feedUrl = process.argv[1];
autoUpdater.setFeedURL({
url: feedUrl,
headers: {
'X-test': 't... | JavaScript | 3 | lingxiao-Zhu/electron | spec-main/fixtures/auto-update/check-with-headers/index.js | [
"MIT"
] |
{
"@context": {
"valueOf": "http://example.org/valueOf",
"toString": "http://example.org/toString"
},
"valueOf": "first",
"toString": "second"
}
| JSONLD | 2 | fsteeg/json-ld-api | tests/expand/0113-in.jsonld | [
"W3C"
] |
class Switch extends BaseMapObject
{
mScale = 0;
mId = 0;
static kAnimationResources =
[
"SwitchIdle",
"SwitchActivateLeft",
"SwitchDeactivateLeft",
"SwitchActivateRight",
"SwitchDeactivateRight"
];
static kSoundResources =
[
"FX_LEVER"
... | Squirrel | 3 | mouzedrift/alive | data/scripts/switch.nut | [
"MIT"
] |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
// Copyright (C) 2014, Itseez, Inc., all rights reserved.
// Third party copyrights are property of their respective owners.
... | OpenCL | 3 | thisisgopalmandal/opencv | modules/core/src/opencl/gemm.cl | [
"BSD-3-Clause"
] |
module appendixA/undirected
sig Node { adjs: set Node }
pred acyclic {
adjs = ~adjs
// You have to fill in additional formula here
}
run acyclic for 4
| Alloy | 3 | Kaixi26/org.alloytools.alloy | org.alloytools.alloy.extra/extra/models/book/appendixA/undirected.als | [
"Apache-2.0"
] |
label ccc0018b:
"うーん。"
"ま、曜子ちゃんが作ってくれたものだし。"
"……自分で食べないとな。"
"さすがに可哀相だし。"
return
# | Ren'Py | 0 | fossabot/cross-channel_chinese-localization_project | AllPlatforms/scripts/ccc/ccc0018b.rpy | [
"Apache-2.0"
] |
package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import io.micronaut.test.extensions.spock.annotation.MicronautTest
import spock.lang.Specification
import jakarta.inject.Inject
/**
* Model tests for SpecialModelName
*/
@MicronautTest
public class S... | Groovy | 4 | JigarJoshi/openapi-generator | samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/SpecialModelNameSpec.groovy | [
"Apache-2.0"
] |
// run-pass
#![allow(dead_code)]
enum Animal {
Cat = 0,
Dog = 1,
Horse = 2,
Snake = 3,
}
enum Hero {
Batman = -1,
Superman = -2,
Ironman = -3,
Spiderman = -4
}
pub fn main() {
let pet: Animal = Animal::Snake;
let hero: Hero = Hero::Superman;
assert_eq!(pet as usize, 3);
... | Rust | 3 | Eric-Arellano/rust | src/test/ui/structs-enums/enum-discr.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
set testmodule [file normalize tests/modules/getkeys.so]
start_server {tags {"modules"}} {
r module load $testmodule
test {COMMAND INFO correctly reports a movable keys module command} {
set info [lindex [r command info getkeys.command] 0]
assert_equal {module movablekeys} [lindex $info 2]
... | Tcl | 4 | mowenliunian/redis | tests/unit/moduleapi/getkeys.tcl | [
"BSD-3-Clause"
] |
deps := ex ex2
-include ./scrape.mk
all: scrape
| Makefile | 1 | ohno418/rust | src/test/run-make/rustdoc-scrape-examples-multiple/Makefile | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
include "included.thrift"
const included.Timestamp datetime = 1422009523
| Thrift | 1 | JonnoFTW/thriftpy2 | tests/parser-cases/include.thrift | [
"MIT"
] |
# Simple Zsh prompt with Git status.
# Source gitstatus.plugin.zsh from $GITSTATUS_DIR or from the same directory
# in which the current script resides if the variable isn't set.
source "${GITSTATUS_DIR:-${${(%):-%x}:h}}/gitstatus.plugin.zsh" || return
# Sets GITSTATUS_PROMPT to reflect the state of the current git r... | Shell | 4 | ptavares/powerlevel10k | gitstatus/gitstatus.prompt.zsh | [
"MIT"
] |
CREATE TABLE `table_x1` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`key1` longtext NOT NULL COMMENT 'key1',
`value1` longtext NOT NULL COMMENT 'value1',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE IF NOT EXISTS `table_x1` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`... | SQL | 4 | mclubing/canal | parse/src/test/resources/ddl/ddl_create_if_not_exist.sql | [
"Apache-2.0"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | CSS | 1 | sbj42/vscode | src/vs/workbench/contrib/notebook/browser/media/notebookFocusIndicator.css | [
"MIT"
] |
include assembler.rx
include bf.rx
bf: >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-]~
bf: <.>+++++++++++[<+++++>-]<.>++++++++[<+++>-]<.+++.------.--------.[-]>++++++++[~
bf: <++++>-]<+.[-]++++++++++.~
endApp
saveImage
| Brainfuck | 2 | 610t/retrobsd | src/cmd/retroforth/examples/langs/examples/hello.bf | [
"BSD-3-Clause"
] |
{:duct.database/sql {} ; define it empty
:duct.database.mongodb/monger
{:logger #ig/ref :duct/logger
:uri "mongodb://tfb-database:27017/hello_world?username=benchmarkdbuser&password=benchmarkdbpass&maxPoolSize=64"}
} | edn | 3 | xsoheilalizadeh/FrameworkBenchmarks | frameworks/Clojure/duct/resources/hello/db-mongo.edn | [
"BSD-3-Clause"
] |
// run-pass
#![allow(dead_code)]
#![allow(deprecated)]
use std::mem;
enum Tag {
TagInner(u64)
}
struct Rec {
c8: u8,
t: Tag
}
fn mk_rec() -> Rec {
return Rec { c8:0, t:Tag::TagInner(0) };
}
fn is_u64_aligned(u: &Tag) -> bool {
let p: usize = unsafe { mem::transmute(u) };
let u64_align = std... | Rust | 4 | Eric-Arellano/rust | src/test/ui/structs-enums/tag-align-u64.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
// Regression test for #89173: Make sure a helpful note is issued for
// printf-style format strings using `*` to specify the width.
fn main() {
let num = 0x0abcde;
let width = 6;
print!("%0*x", width, num);
//~^ ERROR: multiple unused formatting arguments
//~| NOTE: multiple missing formatting spe... | Rust | 5 | ohno418/rust | src/test/ui/fmt/issue-89173.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
/*
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/NonnullRefPtr.h>
#include <AK/RefCounted.h>
#include <LibWeb/Bindings/Wrappable.h>
namespace Web::Selection {
class Selection
: public RefCounted<Selection>
, public Bindi... | C | 4 | r00ster91/serenity | Userland/Libraries/LibWeb/Selection/Selection.h | [
"BSD-2-Clause"
] |
--TEST--
Bug #71826 (DateTime::diff confuse on timezone 'Asia/Tokyo')
--FILE--
<?php
// Asia/Tokyo ...something wrong
date_default_timezone_set('Asia/Tokyo');
$a = (new DateTime('2015-2-1'))->diff(new DateTime('2015-3-1'));
echo "a(Asia/Tokyo): 2015-2-1 <--> 2015-3-1\n";
var_dump($a->m, $a->d);
$b = (new DateTime('20... | PHP | 3 | NathanFreeman/php-src | ext/date/tests/bug71826.phpt | [
"PHP-3.01"
] |
import QtQuick 2.3
import QtQuick.Controls 1.2
import QtQuick.Layouts 1.2
import QGroundControl 1.0
import QGroundControl.ScreenTools 1.0
import QGroundControl.Controls 1.0
import QGroundControl.FactControls 1.0
import QGroundControl.Palette 1.0
// Camera sect... | QML | 4 | uav-operation-system/qgroundcontrol | src/PlanView/CameraSection.qml | [
"Apache-2.0"
] |
<?php
$status = new OpCacheGUI\OpCache\Status($this->byteFormatter, $this->translator, opcache_get_status());
$directories = [];
foreach($status->getCachedScripts() as $data) {
$directories[dirname($data['full_path'])][basename($data['full_path'])] = $data;
}
?>
<section id="cached-scripts-tabs" class="tabs">
... | HTML+PHP | 3 | oldbk/admin | frontend/web/tools/cacheop/template/cached.phtml | [
"BSD-3-Clause"
] |
open util/ordering[Trace]
enum Event { C, X }
enum State { On, Off }
fun transitions : State -> Event -> State {
On -> C -> Off
+ On -> X -> On
+ Off -> C -> On
+ Off -> X -> Off
}
sig Trace {
state : State,
event : lone Event
}
fact {
first.state = On
no last.event
all t' : Trace - first, t : ... | Alloy | 4 | c-luu/alloy-specs | simple-models/state-machine/reset-flipflop-with-enable.als | [
"Apache-2.0"
] |
(kicad_pcb (version 20171130) (host pcbnew "(5.1.4)-1")
(general
(thickness 1.6)
(drawings 88)
(tracks 1214)
(zones 0)
(modules 91)
(nets 63)
)
(page A4)
(layers
(0 Top signal)
(31 Bottom signal)
(32 B.Adhes user)
(33 F.Adhes user)
(34 B.Paste user)
(35 F.Paste ... | KiCad | 5 | sfiera/RASCSI | hw/rascsi_2p1/rascsi_2p1.kicad_pcb | [
"BSD-3-Clause"
] |
package scala.math
import org.junit.Test
import scala.annotation.unused
class EquivTest {
import EquivTest._
@Test
def testOrderingToEquivResolution(): Unit = {
implicit val o: Ordering[Box[Int]] = intBoxOrdering
assert(Equiv[Box[Int]] == intBoxOrdering)
}
@Test
def testPartialOrderingToEquivRe... | Scala | 5 | jamesanto/scala | test/junit/scala/math/EquivTest.scala | [
"Apache-2.0"
] |
(ns rabbitmq.tutorials.emit-log-direct
(:require [langohr.core :as lc]
[langohr.channel :as lch]
[langohr.exchange :as le]
[langohr.basic :as lb]
[clojure.string :as s]))
(def ^{:const true} x "direct_logs")
(defn -main
[severity & args]
(with-open [conn (lc/conne... | Clojure | 3 | Diffblue-benchmarks/Rabbitmq-rabbitmq-tutorials | clojure/src/rabbitmq/tutorials/emit_log_direct.clj | [
"Apache-2.0"
] |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Scala | 5 | akhalymon-cv/spark | sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/SchemaHelper.scala | [
"Apache-2.0"
] |
#include <iostream>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
try
{
// calling at() for an invalid index
json j = {1, 2, 3, 4};
j.at(4) = 10;
}
catch (json::out_of_range& e)
{
// output exception information
std::cout << "message... | C++ | 4 | sdmg15/json | doc/examples/out_of_range.cpp | [
"MIT"
] |
TabView {
font-size: 10;
}
| CSS | 0 | wiltonlazary/NativeScript | e2e/ui-tests-app/app/tab-view/tab-view-more-page.css | [
"Apache-2.0"
] |
%{#
#include <avr/eeprom.h>
%}
fun eeprom_read_byte {n:nat} (address: int n): uint8 = "mac#"
fun eeprom_write_byte {n:nat} (address: int n, value: uint8): void = "mac#"
| ATS | 3 | Proclivis/arduino-ats | SATS/eeprom.sats | [
"MIT"
] |
#!/bin/sh
# This script will run a couple of linter on the documentation
set -eu
# We want to run all linters before returning success (exit 0) or failure (exit 1)
# So this variable holds the global exit code
EXIT_CODE=0
readonly BASE_DIR=/app
echo "== Linting Markdown"
# Uses the file ".markdownlint.json" for setu... | Shell | 4 | r0ck3rt/traefik | docs/scripts/lint.sh | [
"MIT"
] |
-- Make hdb_catalog.hdb_schema_update_event as single row table
-- Delete insert trigger and setup update trigger
DELETE FROM hdb_catalog.hdb_schema_update_event;
CREATE UNIQUE INDEX hdb_schema_update_event_one_row
ON hdb_catalog.hdb_schema_update_event ((occurred_at IS NOT NULL));
ALTER TABLE hdb_catalog.hdb_sche... | SQL | 3 | gh-oss-contributor/graphql-engine-1 | server/src-rsr/migrations/18_to_19.sql | [
"Apache-2.0",
"MIT"
] |
type v = [mut isize]; //~ ERROR expected type, found keyword `mut`
| Rust | 0 | Eric-Arellano/rust | src/test/ui/parser/removed-syntax-mut-vec-ty.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#include <test/cpp/api/support.h>
namespace torch {
namespace test {
std::mutex AutoDefaultDtypeMode::default_dtype_mutex;
} // namespace test
} // namespace torch
| C++ | 3 | Hacky-DH/pytorch | test/cpp/api/support.cpp | [
"Intel"
] |
<script>
<!--
alert(1)
-->
</script>
<script>
<!--
alert(2)
//-->
</script>
| HTML | 1 | rakacreative/prettier | tests/html/script/legacy.html | [
"MIT"
] |
EXTREMES
NEW INF,NINF,ZERO,NOTNUM,NEGZERO
SET INF=$DOUBLE(3.0E310),NINF=$DOUBLE(-3.0E310),ZERO=$DOUBLE(0),NOTNUM=$DOUBLE(INF-INF),NEGZERO=$DOUBLE(ZERO*-1)
WRITE "Infinity: ",INF,!
WRITE "Infinity ",$SELECT($ISVALIDNUM(INF):"is a number",1:"is not a number"),!
WRITE "Negative Infinity: ",NINF,!
WRITE "Negati... | M | 3 | LaudateCorpus1/RosettaCodeData | Task/Extreme-floating-point-values/MUMPS/extreme-floating-point-values.mumps | [
"Info-ZIP"
] |
package com.alibaba.json.bvt.issue_1500;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;
import junit.framework.TestCase;
import java.util.List;
public class Issue1570 extends TestCase {
public void test_for_issue() throws Exception {
Model model = new Model();... | Java | 4 | Czarek93/fastjson | src/test/java/com/alibaba/json/bvt/issue_1500/Issue1570.java | [
"Apache-2.0"
] |
within Modelica.Electrical.Analog;
package Sensors "Potential, voltage, current, and power sensors"
extends Modelica.Icons.SensorsPackage;
model PotentialSensor "Sensor to measure the potential"
extends Modelica.Icons.RotationalSensor;
Interfaces.PositivePin p "pin to be measured" annotation (Placement(
... | Modelica | 5 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Modelica/modelica.mo | [
"MIT"
] |
integer counter;
default
{
state_entry()
{
llSay( 0, "Hello, Avatar! Touch to change color and size.");
counter = 0;
}
touch_start(integer total_number)
{ // do these instructions when the object is touched.
counter = counter + 1;
// choose three random RGB color componen... | LSL | 4 | MandarinkaTasty/OpenSim | bin/assets/ScriptsAssetSet/KanEd-Test02.lsl | [
"BSD-3-Clause"
] |
/*--------------------------------------------------*/
/* SAS Programming for R Users - code for exercises */
/* Copyright 2016 SAS Institute Inc. */
/*--------------------------------------------------*/
/*SP4R03s01*/
/*Part A*/
data sp4r.cars;
set sp4r.cars;
mpg_average = mean(mpg_city,mpg_high... | SAS | 4 | snowdj/sas-prog-for-r-users | code/SP4R03s01.sas | [
"CC-BY-4.0"
] |
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<xsl:apply-templates/>
<xsl:apply-templates select="document('resources/document-function-source.xml')/doc"/>
</html>
</xsl:template>
<xsl:template match="para">
<p><xsl:value... | XSLT | 3 | zealoussnow/chromium | third_party/blink/web_tests/fast/xsl/document-function.xsl | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
# @ECLASS: provided-inherit.eclass
# @MAINTAINER:
# Random Person <maintainer@random.email>
# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7
# @PROVIDES: inherit
# @BLURB: Stub eclass for testing InheritsCheck.
inherit inherit
| Gentoo Eclass | 3 | floppym/pkgcheck | testdata/repos/eclass/eclass/provided-inherit.eclass | [
"BSD-3-Clause"
] |
insert into t (id) values
(500), (501), (502), (503), (504), (505), (506), (507), (508), (509),
(510), (511), (512), (513), (514), (515), (516), (517), (518), (519),
(520), (521), (522), (523), (524), (525), (526), (527), (528), (529),
(530), (531), (532), (533), (534), (535), (536), (537), (538), (539),
(540), (541), ... | SQL | 2 | cuishuang/tidb | br/tests/lightning_disk_quota/data/disk_quota.t.1.sql | [
"Apache-2.0"
] |
export function test({ assert, input, css }) {
const expectedBar = input.locate('--baritone');
const expectedBaz = input.locate('--baz');
let start = css.locate('--bar');
const actualbar = css.mapConsumer.originalPositionFor({
line: start.line + 1,
column: start.column
});
assert.deepEqual(actualbar, {
s... | JavaScript | 4 | Theo-Steiner/svelte | test/sourcemaps/samples/preprocessed-styles/test.js | [
"MIT"
] |
[{:type :error,
:file "/androidnative/src/main.cpp",
:line 17,
:column 1,
:message "unknown type name 'ubar'\nubar g_foo = 0;\n^"}
{:type :error,
:message
"Undefined symbols for architecture arm64:\n \"__Z6Foobarv\", referenced from:\n __ZL22AppInitializeExtensionPN11dmExtension9AppParamsE in lib4439... | edn | 2 | cmarincia/defold | editor/test/resources/native_extension_error_parsing/errorLogiOS_parsed.edn | [
"ECL-2.0",
"Apache-2.0"
] |
#!perl
#
# Test for breakage of Dist::Milla in v1.46
#
use strict;
use warnings;
use Text::Template;
BEGIN {
# Minimum Test::More version; 0.94+ is required for `done_testing`
unless (eval { require Test::More; "$Test::More::VERSION" >= 0.94; }) {
Test::More::plan(skip_all => '[ Test::More v0.94+ ] is... | Perl | 4 | pmesnier/openssl | external/perl/Text-Template-1.56/t/nested-tags.t | [
"Apache-2.0"
] |
2016-01-24 12:27:19 > fs0ciety (~whoami@c27-253-43-52.thoms4.vic.optusnet.com.au) has joined #python
2016-01-24 12:27:19 - Topic for #python is "Don't paste, use https://bpaste.net/+python | http://bit.ly/psf-coc | NO LOL | Tutorial: http://bit.ly/MCAhYx | New programmer? http://goo.gl/c170V | Specify 2.x or 3.x in... | IRC log | 1 | 0x4b1dN/2016-dots | misc/weechat/logs/irc.freenode.#python.weechatlog | [
"MIT"
] |
module.exports = {
test: 'world',
}
| JavaScript | 1 | blomqma/next.js | test/unit/isolated/_resolvedata/server/static/development/pages/world.js | [
"MIT"
] |
{{0}}div {
margin: 0;
padding: 0;
}
{{4}}
{{1}}.foo {
{{5}} color: #f00;
{{6}} }{{3}}
{{7}}
{{8}}.bar {
background-image: url(fu.bar);
}
@keyframes colorize {
from {
-webkit-filter: grayscale(100%);
}
to {
-webkit-filter: grayscale(0%);
}
}
{{2}}#myDiv {
display:... | CSS | 3 | ravitejavalluri/brackets | test/spec/InlineEditorProviders-test-files/test1.css | [
"MIT"
] |
; -*- scheme -*-
(define Instructions
(let ((e (table))
(keys
[nop dup pop call tcall jmp brf brt jmp.l brf.l brt.l ret
eq? eqv? equal? atom? not null? boolean? symbol?
number? bound? pair? builtin? vector? fixnum? function?
cons list car cdr set-car! set-cdr!
apply
+ - * / div0 = < compare
... | Common Lisp | 5 | greimel/julia | src/flisp/compiler.lsp | [
"Zlib"
] |
||| Test if :typeat can report the type of variables in interface definitions
||| and implementations
interface Nattable a where
toNat : a -> Nat
Nattable Bool where
-- Create some variables just to test
toNat True = let x = 0 in S x
toNat False = let y = 0 in y
| Idris | 4 | ska80/idris-jvm | tests/idris2/interactive025/TypeAtInterfaces.idr | [
"BSD-3-Clause"
] |
fileFormatVersion: 2
guid: da68dfde501d241c788cadc9805b214a
folderAsset: yes
timeCreated: 1517539094
licenseType: Free
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| Unity3D Asset | 0 | krossruiz/pb3 | unity-environment/Assets/ML-Agents/Examples/WallJump/TFModels.meta | [
"Apache-2.0"
] |
Rebol [
Title: "Rebol3 datatype! test script"
Author: "Oldes, Peter W A Wood"
File: %datatype-test.r3
Tabs: 4
Needs: [%../quick-test-module.r3]
]
~~~start-file~~~ "datatype"
===start-group=== "datatype!"
--test-- "reflect datatype!"
;@@ https://github.com/Oldes/Rebol-issues/issues/1534
--assert objec... | Rebol | 4 | 0branch/r3 | src/tests/units/datatype-test.r3 | [
"Apache-2.0"
] |
pub trait Trait1<X> {
type Output;
}
pub trait Trait2<X> {}
pub struct A;
impl<X, T> Trait1<X> for T where T: Trait2<X> {
type Output = ();
}
impl<X> Trait1<Box<X>> for A {
//~^ ERROR conflicting implementations of trait
//~| downstream crates may implement trait `Trait2<std::boxed::Box<_>>` for type `A`
... | Rust | 3 | Eric-Arellano/rust | src/test/ui/issues/issue-43355.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
--TEST--
SQLite3::backup test
--EXTENSIONS--
sqlite3
--FILE--
<?php
require_once(__DIR__ . '/new_db.inc');
echo "Creating table\n";
$db->exec('CREATE TABLE test (a, b);');
$db->exec('INSERT INTO test VALUES (42, \'php\');');
echo "Checking if table has been created\n";
var_dump($db->querySingle('SELECT COUNT(*) FROM... | PHP | 4 | NathanFreeman/php-src | ext/sqlite3/tests/sqlite3_38_backup.phpt | [
"PHP-3.01"
] |
MODULE_NAME='snmp-manager'(dev vdvModule, dev connman_device, dev connman_server_device)
(***********************************************************)
(* FILE CREATED ON: 12/27/2015 AT: 20:36:24 *)
(***********************************************************)
(********************************************... | NetLinx | 5 | marselle001/amx-snmp-library | snmp-manager.axs | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.