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 |
|---|---|---|---|---|---|
[[howto.build]]
== Build
Spring Boot includes build plugins for Maven and Gradle.
This section answers common questions about these plugins.
[[howto.build.generate-info]]
=== Generate Build Information
Both the Maven plugin and the Gradle plugin allow generating build information containing the coordinates, name, an... | AsciiDoc | 5 | Cuiqingqiang/spring-boot | spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/build.adoc | [
"Apache-2.0"
] |
(:~
: Normalize AST, reducing EBNF to use just two operators, g:choice and
: g:oneOrMore. This serves both for simplifying factorization rules, and
: for a uniform appearance of the railroad graphics regardless of the
: original formulation of grammar rules. Also some flattening of g:choice
: and g:charClass opera... | XQuery | 5 | bannmann/rr | src/main/resources/de/bottlecaps/railroad/xq/normalize-ast.xq | [
"Apache-2.0"
] |
// run-pass
#![allow(dead_code)]
// check that we handle recursive arrays correctly in `type_of`
struct Loopy {
ptr: *mut [Loopy; 1]
}
fn main() {
let _t = Loopy { ptr: core::ptr::null_mut() };
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/issues/issue-19001.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; GNU GENERAL PUBLIC LICENSE ;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ----------------------------------------------------------------TÍTULO
;; ----------------------------------------------------------------"TÍTULO" is an agent-based model designed to
;; study cooperative calls f... | NetLogo | 5 | mas178/reproduction-of-papers | Emergence and Evolution of Cooperation Under Resource Pressure/CURP.nlogo | [
"MIT"
] |
React = require \react
{svg} = require \react-dom-factories
{find-DOM-node} = require \react-dom
# set the focusable attribute to false, this prevents having to press the tab key multiple times in IE
module.exports = class SvgWrapper extends React.PureComponent
# render :: () -> ReactElement
render: -> svg @p... | LiveScript | 4 | rodcope1/react-selectize-rodcope1 | src/SvgWrapper.ls | [
"Apache-2.0"
] |
module org-openroadm-service {
namespace "http://org/openroadm/service";
prefix org-openroadm-service;
import ietf-yang-types {
prefix yang;
}
import org-openroadm-routing-constraints {
prefix org-openroadm-routing-constraints;
}
import org-openroadm-common-types {
prefix org-openroadm-common... | YANG | 5 | meodaiduoi/onos | models/openroadm/src/main/yang/org-openroadm-service@2016-10-14.yang | [
"Apache-2.0"
] |
@inproceedings{Cordts2016Cityscapes,
title={The Cityscapes Dataset for Semantic Urban Scene Understanding},
author={Cordts, Marius and Omran, Mohamed and Ramos, Sebastian and Rehfeld, Timo and Enzweiler, Markus and Benenson, Rodrigo and Franke, Uwe and Roth, Stefan and Schiele, Bernt},
booktitle={Proc. of the IEEE Conf... | TeX | 0 | chuxiuhong/ganilla | datasets/bibtex/cityscapes.tex | [
"BSD-3-Clause"
] |
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: opam.eclass
# @MAINTAINER:
# Gentoo ML Project <ml@gentoo.org>
# @AUTHOR:
# Alexis Ballier <aballier@gentoo.org>
# @SUPPORTED_EAPIS: 5 6 7
# @BLURB: Provides functions for installing opam packages.
# @... | Gentoo Eclass | 5 | NighttimeDriver50000/Sabayon-Packages | local_overlay/eclass/opam.eclass | [
"MIT"
] |
#!/usr/bin/env bash
(
cd $(dirname $0)
echo "digraph {"
echo "rankdir=RL; splines=ortho; node [shape=box];"
jq -f org_chart.jq --raw-output < ../../content/marketing/contributors.json
echo "}"
) | dot -Tpng > org.png | Shell | 3 | coreyscherbing/angular | aio/scripts/contributors/generate_org_chart.sh | [
"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.
using System.Collections.Immutable;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using ... | C# | 4 | frandesc/roslyn | src/EditorFeatures/CSharpTest/Intents/AddConstructorParameterIntentTests.cs | [
"MIT"
] |
const { shell } = require('electron')
const os = require('os')
const exLinksBtn = document.getElementById('open-ex-links')
const fileManagerBtn = document.getElementById('open-file-manager')
fileManagerBtn.addEventListener('click', (event) => {
shell.showItemInFolder(os.homedir())
})
exLinksBtn.addEventListener('c... | JavaScript | 4 | lingxiao-Zhu/electron | docs/fiddles/native-ui/external-links-file-manager/renderer.js | [
"MIT"
] |
html,
body {
padding: 0;
margin: 0;
}
a {
color: inherit;
text-decoration: none;
}
* {
box-sizing: border-box;
font-family: IBM Plex Sans, 'sans-serif';
}
p {
color: #19303d;
font-size: 18px;
line-height: 25px;
margin: 0;
}
strong {
color: black;
font-weight: 500;
}
h2 {
font-size: 30px;
... | CSS | 3 | blomqma/next.js | examples/auth-with-stytch/styles/globals.css | [
"MIT"
] |
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h3>Download CSV</h3>
<a data-cy="download-csv" href="records.csv" download>records.csv</a>
<h3>Download XLSX</h3>
<a data-cy="download-xlsx" href="people.xlsx" download>people.xlsx</a>
<h3>Download ZIP file</h3>
<a data-cy="download-zip" href="files.zip" downl... | HTML | 3 | bkucera2/cypress | packages/server/test/support/fixtures/projects/downloads/cypress/fixtures/downloads.html | [
"MIT"
] |
--TEST--
Test typed properties type must precede first declaration in group
--FILE--
<?php
class Foo {
public $bar,
int $qux;
}
?>
--EXPECTF--
Parse error: syntax error, unexpected identifier "int", expecting variable in %s on line %d
| PHP | 2 | NathanFreeman/php-src | Zend/tests/type_declarations/typed_properties_025.phpt | [
"PHP-3.01"
] |
/*
* Copyright (c) 2021, Luke Wilde <lukew@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibWeb/DOM/LiveNodeList.h>
#include <LibWeb/DOM/Node.h>
namespace Web::DOM {
LiveNodeList::LiveNodeList(Node& root, Function<bool(Node const&)> filter)
: m_root(root)
, m_filter(move(filter))... | C++ | 5 | r00ster91/serenity | Userland/Libraries/LibWeb/DOM/LiveNodeList.cpp | [
"BSD-2-Clause"
] |
a { width: +.10; } | CSS | 0 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/-JoxoRcnA-zaaEC7RjXKvQ/input.css | [
"Apache-2.0"
] |
// Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/libplatform/default-platform.h"
#include "src/base/platform/semaphore.h"
#include "src/base/platform/time.h"
#include "testing/gmock/inclu... | C++ | 5 | EXHades/v8 | test/unittests/libplatform/default-platform-unittest.cc | [
"BSD-3-Clause"
] |
SmalltalkCISpec {
#loading : [
SCIMetacelloLoadSpec {
#baseline : 'Tode',
#load : [ 'GemStone', 'Rewrite' ],
#directory : 'repository',
#onWarningLog : true,
#platforms : [ #gemstone ]
},
SCIMetacelloLoadSpec {
#baseline : 'Tode',
#load : [ 'CI' ],
#director... | STON | 3 | dassi/tode | .client.smalltalk.ston | [
"MIT"
] |
#*****************************************************************************
# *
# Make file for VMS *
# Author : J.Jansen (joukj@hrem.stm.tudelft.nl) *
# Da... | Module Management System | 2 | addstone/unrealengine3 | Development/External/wxWindows_2.4.0/utils/dialoged/src/descrip.mms | [
"FSFAP"
] |
% a bakedFDA c -def
stdout:"0:a 1:backedFDA 2:c 3:-def"
exit:0
| Io | 0 | Refusal-Type-Bamboo/virgil | test/system/Params01.io | [
"Apache-2.0"
] |
## Description
A similar approach to psexec but executing commands through DCOM.
You can select different objects to be used to execute the commands.
Currently supported objects are:
1. MMC20.Application (`49B2791A-B1AE-4C90-9B8E-E860BA07F889`)
- Tested Windows 7, Windows 10, Server 2012R2
1. ShellWindows (`9BA0597... | Markdown | 3 | OsmanDere/metasploit-framework | documentation/modules/auxiliary/scanner/smb/impacket/dcomexec.md | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
// build-fail
#![feature(repr_simd)]
struct E;
// error-pattern:monomorphising SIMD type `S<E>` with a non-primitive-scalar (integer/float/pointer) element type `E`
#[repr(simd)]
struct S<T>([T; 4]);
fn main() {
let _v: Option<S<E>> = None;
}
| Rust | 2 | mbc-git/rust | src/test/ui/simd/simd-type-generic-monomorphisation-non-primitive.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
# this is sample property file for PropertiesLoaderTest configuration needs
! this is also a comment
sampleConfEntry = sample String value
colonSeparatedEntry : colon separated entry value
| INI | 3 | zeesh49/tutorials | core-java/src/test/resources/configuration.properties | [
"MIT"
] |
At: "inv-01.hac":6:
parse error: syntax error
parser stacks:
state value
#STATE# (null)
#STATE# (null)
#STATE# keyword: defproc [3:1..7]
#STATE# identifier: inv [3:9..11]
#STATE# list<(port-formal-decl)>: (port-formal-decl) ... [3:12..22]
#STATE# { [3:24]
#STATE# keyword: prs [4:1..3]
#STATE# { [4:5]
#STATE# (unknown... | Bison | 0 | broken-wheel/hacktist | hackt_docker/hackt/test/parser/prs/inv-01.stderr.bison | [
"MIT"
] |
#N canvas 642 81 520 354 12;
#X obj 150 207 metro 100;
#X obj 150 235 snapshot~;
#X floatatom 98 125 5 0 0 0 - - - 0;
#X floatatom 150 261 7 0 0 0 - - - 0;
#X text 215 315 updated for Pd version 0.42.;
#X obj 98 180 abs~;
#X obj 51 18 abs~;
#X text 63 68 Passes nonnegative values unchanged \, but replaces negative
ones... | Pure Data | 4 | myQwil/pure-data | doc/5.reference/abs~-help.pd | [
"TCL"
] |
<h1>{{.Title}</h1>
| HTML | 2 | itsursujit/fiber | .github/testdata/template-invalid.html | [
"MIT"
] |
// [full] check-pass
// revisions: full min
#![cfg_attr(full, feature(adt_const_params))]
#![cfg_attr(full, allow(incomplete_features))]
struct Bar<T>(T);
impl<T> Bar<T> {
const fn value() -> usize {
42
}
}
struct Foo<const N: [u8; Bar::<u32>::value()]>;
//[min]~^ ERROR `[u8; _]` is forbidden as the ... | Rust | 3 | mbc-git/rust | src/test/ui/const-generics/issues/issue-75047.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
// Umbilical Torus generator, by Bruce Mueller 2013/03/30 CC-BY-SA
// inc = incremental segments
inc=5;
// r = radius of circle
// t = 'radius' of triangle -distance from center to vertex
// a = angle of rotation of triangle
// b = angle rotation around center of circle
function tri(r,t,a,b) = [(r + t*sin(a))*cos(b),... | OpenSCAD | 4 | samiwa/test | examples/umbilical_torus.scad | [
"MIT"
] |
// test of Scape Chubgraph
//
// This example uses the caps library
// from http://quitte.de/dsp/caps.html
// installed in /usr/local/lib/ladspa/caps.so
// (If it's in another location, change the path
// in Scape.ck)
//
// Run with: chuck Scape.ck scape-test.ck
adc => Scape scape => dac;
scape.ladspa.info();
120 => s... | ChucK | 4 | mariobuoninfante/chugins | Ladspa/scape-test.ck | [
"MIT"
] |
---
title: "Regular polygons and ellipses in grid graphics"
author: "Baptiste Auguie"
date: '`r Sys.Date()`'
vignette: >
%\VignetteEngine{knitr::rmarkdown}
%\VignetteIndexEntry{ngonGrob: regular polygons and ellipses in grid graphics}
output:
knitr:::html_vignette:
toc: yes
---
```{r setup, echo=FALSE, resul... | RMarkdown | 4 | Chicago-R-User-Group/2017-n3-Meetup-RStudio | packrat/lib/x86_64-pc-linux-gnu/3.2.5/gridExtra/doc/ngonGrob.rmd | [
"MIT"
] |
{default $class = NULL, $namespace = NULL, $top = TRUE}
<!DOCTYPE html>
<head>
<title>{block title|stripHtml|upper}My website{/block}</title>
</head>
<body>
<div id="sidebar">
{block sidebar}
<ul>
<li><a href="/">Homepage</a></li>
</ul>
{/block}
</div>
<div id="content">
{include content}
{include... | Latte | 4 | TheDigitalOrchard/latte | tests/Latte/templates/BlockMacros.parent.latte | [
"BSD-3-Clause"
] |
// More complex version of hello world
>++++++++[<+++++++++>-]<.>>+>+>++>[-]+<[>[->+<<++++>]<<]>.+++++++..+++.>
>+++++++.<<<[[-]<[-]>]<+++++++++++++++.>>.+++.------.--------.>>+.>++++. | Brainfuck | 2 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Brainfuck/hello.bf | [
"MIT"
] |
OBTW
This is a FizzBuzz solution in the
esoteric programming LOLCODE! :)
Author: @NLDev
TLDR
HAI 1.2
I HAS A VAR ITZ 1
IM IN YR LOOP UPPIN YR VAR TIL BOTH SAEM VAR AN 101
I HAS A FIFTEN ITZ MOD OF VAR AN 15
I HAS A FIVE ITZ MOD OF VAR AN 5
I HAS A THREE ITZ MOD OF VAR AN 3... | LOLCODE | 4 | veotani/Hacktoberfest-2020-FizzBuzz | LOLCODE/FizzBuzz-lolcode.lol | [
"Unlicense"
] |
Clean | 0 | bo3b/iZ3D | TestsPack/DX10ShaderAnalyzingTest/Shaders/shader9_0x1C6711EA.dcl | [
"MIT"
] | |
/*
* This is a L3 version of tester. Port 0 and 1 are expected to be attached to the
* two interface of your DUT.
* Port 0 will only generate packets while port 1 expects to receive packets back.
* Both ports will respond to ARP queries.
*
* Author: Tom Barbette <barbette@kth.se>, Lida Liu <lidal@kth.se>
*/
de... | Click | 4 | BorisPis/asplos22-nicmem-fastclick | conf/pktgen/tester-l3.click | [
"BSD-3-Clause-Clear"
] |
// Daniel Shiffman
// http://codingtra.in
// http://patreon.com/codingtrain
// Pong
// https://youtu.be/IIrC5Qcb2G4
class Paddle {
float x;
float y = height/2;
float w = 20;
float h = 100;
float ychange = 0;
Paddle(boolean left) {
if (left) {
x = w;
} else {
x = width - w;
}
}
... | Processing | 4 | aerinkayne/website | CodingChallenges/CC_067_Pong/Processing/CC_067_Pong/Paddle.pde | [
"MIT"
] |
\require "g@>=0.2.2" | LilyPond | 0 | HolgerPeters/lyp | spec/package_setups/big/e@0.3.2/package.ly | [
"MIT"
] |
# N3 paths
@prefix : <http://www.w3.org/2013/TurtleTests/> .
@prefix ns: <http://www.w3.org/2013/TurtleTests/p#> .
:x^ns:p :p :z .
| Turtle | 2 | joshrose/audacity | lib-src/lv2/serd/tests/TurtleTests/turtle-syntax-bad-n3-extras-04.ttl | [
"CC-BY-3.0"
] |
// (c) Copyright 1995-2018 Xilinx, Inc. All rights reserved.
//
// This file contains confidential and proprietary information
// of Xilinx, Inc. and is protected under U.S. and
// international copyright and other intellectual property
// laws.
//
// DISCLAIMER
// This disclaimer is not a license and does not grant ... | Verilog | 4 | MJurczak-PMarchut/uec2_DeathRace | vivado/DeathRace.srcs/sources_1/ip/xadc_wiz_0/xadc_wiz_0.veo | [
"MIT"
] |
insert into a values
(268435456, '268435456'),
(1, 'adgagdadgagag'),
(262144, 'gadgagaha'),
(32, '32'),
(4, 'hahaha'),
(65536, 'luck dog'),
(8388608, 'heyhey'),
(0, '999');
| SQL | 2 | cuishuang/tidb | br/tests/lightning_partitioned-table/data/partitioned.a.sql | [
"Apache-2.0"
] |
HTTP/1.1 200 OK
Content-Type: application/json
{
"asset": {
"data": {
"msg": "Hello BigchainDB!"
}
},
"id": "4957744b3ac54434b8270f2c854cc1040228c82ea4e72d66d2887a4d3e30b317",
"inputs": [
{
"fulfillment": "pGSAIDE5i63cn4X8T8N1sZ2mGkJD5lNRnBM4PZgI_zvzbr-cgUCy4BR6gKaYT-tdyAGPPpknIqI4JYQQ-... | HTTP | 3 | jaromil/bigchaindb | docs/root/source/installation/api/http-samples/get-tx-id-response.http | [
"Apache-2.0"
] |
.style {
grid-template-columns: minmax(1fr, 200px);
}
| CSS | 3 | mengxy/swc | crates/swc_css_parser/tests/errors/rome/invalid/grid/minmax/.incorrect-flex/input.css | [
"Apache-2.0"
] |
'Ok, little example of converting objects to/from JSON using reflection
'
'Also handles built in list, stack and map classes.
'
'CAN'T HANDLE CYCLES!!!!!
#REFLECTION_FILTER="jsonstream*|monkey.list|monkey.stack|monkey.map"
Import reflection
Class JsonStream
Method New()
End
Method New( json$ )
WriteJson json... | Monkey | 5 | blitz-research/monkey | bananas/mak/jsonstream/jsonstream.monkey | [
"Zlib"
] |
// This is a ragel file for generating a paser for MTL files
// Note that some MTL files are whitespace sensitive
// Mainly with unquoted string names with spaces
// ala
//
// newmtl material name with spaces and no quotes
//
// or
//
// map_Kd my texture file.png
//
%%{
machine simple_lexer;
default = ^0;
linee... | Ragel in Ruby Host | 4 | forestGzh/VTK | IO/Import/mtlsyntax.rl | [
"BSD-3-Clause"
] |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
//This contract is purely here to make sure that
//internal sources are generated, to make sure that the decoder
//doesn't choke on them
contract SliceTest {
function slice(uint[] calldata arr) public pure returns (uint[] calldata) {
return arr[1:arr.lengt... | Solidity | 3 | santanaluiz/truffle | packages/decoder/test/current/contracts/SliceTest.sol | [
"MIT"
] |
# Copyright (c) 2018-2021, Carnegie Mellon University
# See LICENSE for details
#F _IPCodeSums(<sums-spl>, <x-input-output-var>)
#F
#F Generates unoptimize inplace loop code for <sums-spl>
#F if we know how (i.e. 'ipcode' methods exist for <sums-spl>)
#F
_IPCodeSums := function(sums, x)
local code;
code := s... | GAP | 4 | sr7cb/spiral-software | namespaces/spiral/compiler/sums2ipcode.gi | [
"BSD-2-Clause-FreeBSD"
] |
@import Foundation;
@interface Foo: NSObject
- (BOOL)foo:(int)x error:(NSError**)error;
- (BOOL)foothrows:(int)x error:(NSError**)error;
@end
| C | 3 | lwhsu/swift | test/stdlib/Inputs/ErrorBridgedStaticImpl.h | [
"Apache-2.0"
] |
# Copyright (c) 2018-2021, Carnegie Mellon University
# See LICENSE for details
#---------------------------------------------------------------------------------------
# SPU vector instructions
#---------------------------------------------------------------------------------------
Class(vbinop_8x16i_spu, vbinop... | GAP | 3 | sr7cb/spiral-software | namespaces/spiral/platforms/cellSPU/code.gi | [
"BSD-2-Clause-FreeBSD"
] |
<?xml version="1.0" encoding="UTF-8" ?>
<!--
- Copyright (c) 2014 3 Round Stones Inc., Some 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.ap... | XProc | 3 | 3-Round-Stones/callimachus | webapp/pipelines/error.xpl | [
"ECL-2.0",
"Apache-2.0",
"BSD-3-Clause"
] |
[
(function_definition)
(while_statement)
(for_statement)
(if_statement)
(begin_statement)
(switch_statement)
] @indent
[
(else_if_clause)
(else_clause)
"end"
] @branch
(comment) @ignore
| Scheme | 3 | hmac/nvim-treesitter | queries/fish/indents.scm | [
"Apache-2.0"
] |
<%= form_tag Routes.person_path(@conn, :subscribe), id: "subscribe", class: "signup-form" do %>
<input name="to" type="hidden" value="<%= SharedHelpers.get_assigns_or_param(assigns, "to", "weekly") %>">
<input name="email" class="signup-form-input" placeholder="you@example.com" aria-label="you@example.com" required... | HTML+EEX | 4 | snyk-omar/changelog.com | lib/changelog_web/templates/shared/_subscribe_form.html.eex | [
"MIT"
] |
"""Support for tracking a Volvo."""
from __future__ import annotations
from collections.abc import Awaitable, Callable
from homeassistant.components.device_tracker import SOURCE_TYPE_GPS
from homeassistant.core import HomeAssistant
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from homeassista... | Python | 5 | MrDelik/core | homeassistant/components/volvooncall/device_tracker.py | [
"Apache-2.0"
] |
/*
Copyright © 2011, 2012 MLstate
This file is part of Opa.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ... | Opa | 5 | Machiaweliczny/oppailang | lib/stdlib/core/cache/cache.opa | [
"MIT"
] |
#import "Foo.h"
#import "Decls.h"
| C | 0 | lwhsu/swift | test/SourceKit/InterfaceGen/Inputs/mock-sdk/APINotesTests.framework/Headers/APINotesTests.h | [
"Apache-2.0"
] |
"Android IF" by Simon Christiansen
[This is Simon's original AndroidIF story file. Big Cat source available on request! ~ Demitrius]
The story genre is "Mystery". The release number is 1. The story creation year is 2015.
Use full-length room descriptions, American dialect, no scoring, and the serial comma.
Include ... | Inform 7 | 4 | SimonChris/AndroidIF | Inform Source/story.ni | [
"MIT"
] |
#! /bin/sh -e
# DP: Add gcc/ada/system-linux-ppc64.ads and use it in gcc/ada/Makefile.in
# DP:
dir=
if [ $# -eq 3 -a "$2" = '-d' ]; then
pdir="-d $3"
dir="$3/"
elif [ $# -ne 1 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
case "$1" in
-patch)
patch... | Darcs Patch | 4 | JrCs/opendreambox | recipes/gcc/gcc-4.3.4/debian/ppc64-ada.dpatch | [
"MIT"
] |
--TEST--
Bug #28386 (wordwrap() wraps text 1 character too soon)
--FILE--
<?php
$text = "Some text";
$string = "$text $text $text $text";
echo wordwrap($string, 9);
?>
--EXPECT--
Some text
Some text
Some text
Some text
| PHP | 3 | guomoumou123/php5.5.10 | ext/standard/tests/strings/bug28386.phpt | [
"PHP-3.01"
] |
module Test_FAI_DiskConfig =
(* Test disk_config *)
let disk_config_test = "disk_config hda preserve_always:6,7 disklabel:msdos bootable:3
"
test FAI_DiskConfig.disk_config get disk_config_test =
{ "disk_config" = "hda"
{ "preserve_always"
{ "1" = "6" }
{ "2" = "7" }
}
{ "disklabel" = ... | Augeas | 5 | ajnavarro/language-dataset | data/github.com/raphink/config-augeas-validator/ee8aeffb9753fcb260e6227b2ef6b785bdca77c8/lenses/tests/test_fai_diskconfig.aug | [
"MIT"
] |
SELECT number % 2 ? ['Hello', 'World'] : ['abc'] FROM system.numbers LIMIT 10;
SELECT number % 2 ? materialize(['Hello', 'World']) : ['abc'] FROM system.numbers LIMIT 10;
SELECT number % 2 ? ['Hello', 'World'] : materialize(['abc']) FROM system.numbers LIMIT 10;
SELECT number % 2 ? materialize(['Hello', 'World']) : mat... | SQL | 3 | pdv-ru/ClickHouse | tests/queries/0_stateless/00176_if_string_arrays.sql | [
"Apache-2.0"
] |
"""Binary Sensor platform for Garages Amsterdam."""
from __future__ import annotations
from homeassistant.components.binary_sensor import (
BinarySensorDeviceClass,
BinarySensorEntity,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers... | Python | 4 | MrDelik/core | homeassistant/components/garages_amsterdam/binary_sensor.py | [
"Apache-2.0"
] |
package com.baeldung.reactive.cors.global.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.config.CorsRegistry;
import org.springframework.web.reactive.config.EnableWebFlux;
import org.springframework.web.reactive.config.WebFluxConfigurer;
@Configuration
@En... | Java | 4 | scharanreddy/tutorials | spring-5-reactive/src/main/java/com/baeldung/reactive/cors/global/config/CorsGlobalConfiguration.java | [
"MIT"
] |
wttr:
apikey: insert-api-key-here-and-make-this-pillar-available-to-salt
| SaltStack | 0 | harunpehlivan/wttr.in | share/salt/pillar.sls | [
"Apache-2.0"
] |
#!/bin/bash
##############################################################################
# Example command to build Caffe2 on Tegra X1.
##############################################################################
#
# This script shows how one can build a Caffe2 binary for NVidia's TX1.
# The build script assumes th... | Shell | 4 | Hacky-DH/pytorch | scripts/build_tegra_x1.sh | [
"Intel"
] |
#include <Wire.h>
#include "DHT.h"
#define DEBUG_MODE 0
// Address Pins
#define AD0 11
#define AD1 12
// I2C Defaults
#define I2C_DEFAULT_ADDRESS 0x0A
#define I2C_BUFFER_SIZE 4
//
// 0 H LSB
// 1 H MSB
// 2 T LSB
// 3 T MSB
//
byte buffer[I2C_BUFFER_SIZE];
int addressPins[] = { AD0, AD1 };
int address = I2C_DEFAULT... | Arduino | 4 | mattp94/johnny-five | firmwares/dht_i2c_nano_backpack.ino | [
"MIT"
] |
textarea {
width: 100%;
margin-top: 1rem;
font-size: 1.2rem;
box-sizing: border-box;
}
| CSS | 2 | John-Cassidy/angular | aio/content/examples/router/src/app/compose-message/compose-message.component.css | [
"MIT"
] |
//@declaration: true
class C1 {
method(a = 0, b) { }
} | TypeScript | 1 | nilamjadhav/TypeScript | tests/cases/compiler/requiredInitializedParameter4.ts | [
"Apache-2.0"
] |
function fish_title
# Customize terminal window title
end
| fish | 1 | d-dorazio/theme-sashimi | fish_title.fish | [
"MIT"
] |
package com.baeldung.daos;
import com.baeldung.models.User;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Restrictions;
import org.omg.PortableInterceptor.LOCATION_FORWARD;
import javax.enterpr... | Java | 4 | zeesh49/tutorials | vraptor/src/main/java/com/baeldung/daos/UserDao.java | [
"MIT"
] |
// Copyright 2010-2015 RethinkDB, all rights reserved.
#include "clustering/administration/auth/permissions.hpp"
#include "errors.hpp"
#include <boost/algorithm/string/join.hpp>
#include "clustering/administration/admin_op_exc.hpp"
#include "containers/archive/optional.hpp"
#include "containers/archive/versioned.hpp"... | C++ | 4 | zadcha/rethinkdb | src/clustering/administration/auth/permissions.cc | [
"Apache-2.0"
] |
import * as React from 'react';
import { unstable_useControlled as useControlled, unstable_useId as useId } from '@mui/utils';
export interface UseTabsProps {
/**
* The value of the currently selected `Tab`.
* If you don't want any selected `Tab`, you can set this prop to `false`.
*/
value?: string | numb... | TypeScript | 5 | dany-freeman/material-ui | packages/mui-base/src/TabsUnstyled/useTabs.ts | [
"MIT"
] |
(module
(type $FUNCSIG$vf (func (param f32)))
(type $FUNCSIG$v (func))
(type $FUNCSIG$id (func (param f64) (result i32)))
(type $FUNCSIG$ddd (func (param f64 f64) (result f64)))
(type $4 (func (result f64)))
(type $5 (func (result i32)))
(type $6 (func (param i32) (result i32)))
(type $7 (func (param f6... | WebAssembly | 3 | phated/binaryen | test/unit.wat | [
"Apache-2.0"
] |
package test
fun useDefault() {
f(5)
} | Groff | 1 | qussarah/declare | jps-plugin/testData/incremental/pureKotlin/defaultValueRemoved1/useDefault.kt.new.2 | [
"Apache-2.0"
] |
CLASS zcl_abapgit_object_scvi DEFINITION
PUBLIC
INHERITING FROM zcl_abapgit_objects_super
FINAL
CREATE PUBLIC .
PUBLIC SECTION.
INTERFACES zif_abapgit_object .
PROTECTED SECTION.
PRIVATE SECTION.
TYPES:
BEGIN OF ty_screen_variant,
shdsvci TYPE shdsvci,
shdsvtxci TYPE S... | ABAP | 4 | IvxLars/abapGit | src/objects/zcl_abapgit_object_scvi.clas.abap | [
"MIT"
] |
#
# @expect=org.quattor.pan.exceptions.EvaluationException
#
object template join6;
'/x1' = dict('key1', 1, 'key2', 2);
'/x2' = join(',', value('/x1'));
| Pan | 4 | aka7/pan | panc/src/test/pan/Functionality/join/join6.pan | [
"Apache-2.0"
] |
// errno.hb
extern char*[] sys_errlist;
extern int sys_nerr;
extern int errno;
| Harbour | 2 | ueki5/cbc | import/errno.hb | [
"Unlicense"
] |
#!/bin/bash
release=$1
cp mobile/build/outputs/apk/release/mobile-armeabi-v7a-release.apk shadowsocks-armeabi-v7a-${release}.apk
cp mobile/build/outputs/apk/release/mobile-arm64-v8a-release.apk shadowsocks-arm64-v8a-${release}.apk
cp mobile/build/outputs/apk/release/mobile-x86-release.apk ... | Shell | 3 | BitlikerAppFork/shadowsocks-android | release.sh | [
"ISC",
"OpenSSL",
"MIT"
] |
very is_sooper = false
| Dogescript | 0 | PinkDiamond1/dogescript | test/language-spec/sooper/identifier-part/source.djs | [
"MIT"
] |
; CLW file contains information for the MFC ClassWizard
[General Info]
Version=1
ClassCount=1
ResourceCount=1
NewFileInclude1=#include "stdafx.h"
Class1=CPortView
LastClass=CPortView
LastTemplate=CFormView
Resource1=IDD_NODEVIEW
[DLG:IDD_NODEVIEW]
Type=1
Class=CPortView
ControlCount=6
Control1=IDC_STATIC,static,13423... | Clarion | 1 | CarysT/medusa | Tools/NodeBlurPort/NodeBlurPort.clw | [
"MIT"
] |
ru внизу
http://sanskritdocuments.org/doc_vishhnu/bhajagovindam.html?lang=sa
भज गोविन्दं
भजगोविन्दं भजगोविन्दं
गोविन्दं भजमूढमते ।
सम्प्राप्ते सन्निहिते काले
नहि नहि रक्षति डुकृञ्करणे ॥ १॥
Worship Govinda, worship Govinda, worship Govinda, Oh fool !
Rules of grammar will not save you at the time of your death.
म... | Objective-J | 1 | hareeshbabu82ns/sandhi | test/bhaja_govindam.sj | [
"Apache-2.0"
] |
// (c) Copyright 1995-2015 Xilinx, Inc. All rights reserved.
//
// This file contains confidential and proprietary information
// of Xilinx, Inc. and is protected under U.S. and
// international copyright and other intellectual property
// laws.
//
// DISCLAIMER
// This disclaimer is not a license and does not grant ... | Verilog | 4 | security-geeks/parallella-examples | rpi-camera/parallella_7020_headless_gpiose_elink2/parallella_7020_headless_gpiose_elink2.srcs/sources_1/bd/elink2_top/ip/elink2_top_eio_rx_0_0/elink2_top_eio_rx_0_0.veo | [
"BSD-3-Clause"
] |
// check-pass
fn macros() {
macro_rules! foo {
($p:pat, $e:expr, $b:block) => {{
if let $p = $e $b
//~^ WARN irrefutable `if let`
//~| WARN irrefutable `if let`
}}
}
macro_rules! bar{
($p:pat, $e:expr, $b:block) => {{
foo!($p, $e, $b)
... | Rust | 4 | mbc-git/rust | src/test/ui/expr/if/if-let.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
i 00001 00 010 2000 00 036 0160
i 00002 00 031 0000 00 000 2002
i 00003 00 031 0000 00 012 2000
i 00004 00 27 00061 00 010 2002
i 00005 00 012 2000 00 27 00061
i 00006 00 010 2000 00 036 0160
i 00007 00 037 0023 00 031 0123
i 00010 00 000 2002 00 031 0065
i 00011 00 012 2003 00 27 00061
i 00012 00 010 2002 00 012 2004
... | Octave | 0 | besm6/mesm6 | test/yta/yta.oct | [
"MIT"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | CSS | 3 | sbj42/vscode | src/vs/workbench/browser/parts/editor/media/notabstitlecontrol.css | [
"MIT"
] |
#include <stdio.h>
#include <stdlib.h>
#define BUPC_USE_UPC_NAMESPACE
#include <upc_relaxed.h>
#include <upc_collective.h>
#include <bupc_timers.h>
#include "params.h"
#include "mt-cilkp.h"
#define second() (TIME()/1000000.0)
shared matblock_t A[THREADS];
upc_cilk_common_t commons;
/*re-check if this really is t... | Unified Parallel C | 4 | fredmorcos/attic | Projects/Matrix FFT UPC Cilk/mt/mt-single-buffer-cilkp.upc | [
"Unlicense"
] |
PREFIX : <http://example.org/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s ?num (ROUND(?num) AS ?round) WHERE {
?s :num ?num
}
| SPARQL | 3 | alpano-unibz/ontop | test/sparql-compliance/src/test/resources/testcases-dawg-sparql-1.1/functions/round01.rq | [
"Apache-2.0"
] |
source ./test-functions.sh
install_service
start_service
echo "PID: $(cat /var/run/spring-boot-app/spring-boot-app.pid)"
start_service
echo "Status: $?"
| Shell | 3 | Martin-real/spring-boot-2.1.0.RELEASE | spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/src/test/resources/scripts/start-when-started.sh | [
"Apache-2.0"
] |
// (c) Copyright 1995-2015 Xilinx, Inc. All rights reserved.
//
// This file contains confidential and proprietary information
// of Xilinx, Inc. and is protected under U.S. and
// international copyright and other intellectual property
// laws.
//
// DISCLAIMER
// This disclaimer is not a license and does not grant ... | Verilog | 2 | williambong/Vivado | Zynq/ZynqAXIMemoryMappedInterface/ZynqAXIMemoryMappedInterface.srcs/sources_1/bd/design_1/ip/design_1_axi_cdma_0_0/design_1_axi_cdma_0_0.veo | [
"MIT"
] |
0 reg32_t "dword"
1 code_t "proc*"
2 uint32_t "unsigned int"
3 num32_t "int"
4 num8_t "char"
2 uint32_t "size_t"
5 ptr(struct(0:num32_t,4:ptr(num8_t),8:ptr(num8_t),12:ptr(num8_t),16:ptr(num8_t),20:ptr(num8_t),24:ptr(num8_t),28:ptr(num8_t),32:ptr(num8_t),36:ptr(num8_t),40:ptr(num8_t),44:ptr(num8_t),48:ptr(struct(0:ptr(T... | BlitzBasic | 2 | matt-noonan/retypd-data | data/csplit.decls | [
"MIT"
] |
#!/usr/bin/env bash
DIRNAME="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
LH_ROOT="$DIRNAME/.."
tmp_dir=$(mktemp -d -t lh-XXXXXXXXXX)
cd "$tmp_dir"
npm pack "$LH_ROOT" 2>/dev/null
mv *.tgz "$LH_ROOT/dist/lighthouse.tgz"
rmdir "$tmp_dir"
| Shell | 4 | martin-maunoury/lighthouse | build/build-pack.sh | [
"Apache-2.0"
] |
{* This is temporary page, you can delete it *}
{block content}
<div id="test">
This is example file.
{foreach [1,2] as $item}
{$item}
{/foreach}
</div>
{/block} | Latte | 3 | arusinha/incubator-netbeans | php/php.latte/src/org/netbeans/modules/php/latte/resources/LatteExample.latte | [
"Apache-2.0"
] |
--TEST--
Success cases for static variance
--FILE--
<?php
class A {
public function test1(): self {}
public function test2(): B {}
public function test3(): object {}
public function test4(): X|Y|self {}
public function test5(): ?static {}
}
class B extends A {
public function test1(): static {... | PHP | 4 | thiagooak/php-src | Zend/tests/type_declarations/variance/static_variance_success.phpt | [
"PHP-3.01"
] |
precision highp float;
varying vec2 vTextureCoord;
varying vec4 vColor;
uniform float uNoise;
uniform float uSeed;
uniform sampler2D uSampler;
float rand(vec2 co)
{
return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);
}
void main()
{
vec4 color = texture2D(uSampler, vTextureCoord);
float r... | GLSL | 4 | fanlistener/pixijs | packages/filters/filter-noise/src/noise.frag | [
"MIT"
] |
ruleset org.sovrin.agency {
meta {
use module io.picolabs.visual_params alias vp
use module io.picolabs.wrangler alias wrangler
use module org.sovrin.agency.ui alias ui
shares __testing, html, invitation
}
global {
__testing = { "queries":
[ { "name": "__testing" }
//, { "name": "e... | KRL | 5 | Picolab/G2S | krl/org.sovrin.agency.krl | [
"MIT"
] |
const Columns = Object.freeze({ name: "name", snack: "snack", drink: "drink" })
export default Columns
| JavaScript | 3 | waltercruz/gatsby | examples/functions-google-sheets/src/models/columns.js | [
"MIT"
] |
<<< "Hello world!">>>; | ChucK | 0 | JStearsman/hello-worlds | examples/ChucK.ck | [
"Unlicense"
] |
pragma solidity ^0.8.0;
contract Version8Pragma {
uint x;
constructor() {
x = 5;
}
}
| Solidity | 3 | santanaluiz/truffle | packages/compile-solidity/test/sources/v0.8.x/Version8Pragma.sol | [
"MIT"
] |
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
print_error() {
echo "Error: \`$1\` is not a valid commit. To debug, run:"
echo
echo " git rev-parse --verify $1"
echo
}
full_sha() {
git rev-parse \
--verify \
--quiet \
"$1^{object}" || print_error $1
}
commit_message_with_backport_note() {
messa... | Shell | 4 | mbc-git/rust | src/tools/cherry-pick.sh | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
! Copyright (C) 2009 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.
USING: calendar curses curses.ffi kernel random sequences threads
tools.test ;
IN: curses.tests
: hello-curses ( -- )
<curses-window> [
"Hello Curses!" [
dup cmove addch
] each-index
cref... | Factor | 4 | alex-ilin/factor | extra/curses/curses-tests.factor | [
"BSD-2-Clause"
] |
{% form_theme form '@SyliusAdmin/Product/Attribute/attributesCollection.html.twig' %}
<div class="ui tab" data-tab="attributes">
<h3 class="ui top attached header">{{ 'sylius.ui.attributes'|trans }}</h3>
<div class="ui attached segment">
{{ render(url('sylius_admin_get_product_attributes')) }}
... | Twig | 4 | titomtd/Sylius | src/Sylius/Bundle/AdminBundle/Resources/views/Product/Tab/_attributes.html.twig | [
"MIT"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 4 | KevinAo22/vscode | src/vs/workbench/services/userDataSync/browser/userDataSyncEnablementService.ts | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.