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 |
|---|---|---|---|---|---|
/******************************************************************************
* 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/canbus/vehicle/ch/protocol/control_command_115.h | [
"Apache-2.0"
] |
"""Support for ISY994 locks."""
from __future__ import annotations
from typing import Any
from pyisy.constants import ISY_VALUE_UNKNOWN
from homeassistant.components.lock import DOMAIN as LOCK, LockEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassis... | Python | 5 | MrDelik/core | homeassistant/components/isy994/lock.py | [
"Apache-2.0"
] |
div.message {
font-size: 12pt;
}
footer .message {
color: #888;
}
footer div.message {
color: #888;
}
h2, h2.message, h3 {
color: #888;
}
div.message:hovered {
color: #f00;
}
footer .message #text {
color: #369;
}
.message:hover {
color: #963;
}
.message[data-attr='42'] {
col... | CSS | 3 | ravitejavalluri/brackets | test/spec/CSSUtils-test-files/sprint4.css | [
"MIT"
] |
dialect "logo"
def length = 150
def diagonal = length * 1.414
lineWidth := 2
square(length)
turnRight(45)
lineColor := blue
forward(diagonal)
turnLeft(90)
lineColor := red
forward(diagonal / 2)
turnLeft(90)
forward(diagonal / 2)
turnLeft(90)
lineColor := blue
forward(diagonal)
method square(len) {
repeat 4 times ... | Grace | 3 | Dmitri-2/GraceWebsite | js-simple/sample/graphics/logoExample.grace | [
"MIT",
"BSD-3-Clause"
] |
--# -path=.:../portuguese:../romance:../common:../abstract:../prelude
resource TryPor = SyntaxPor, LexiconPor, ParadigmsPor - [mkAdv,mkAdN] ;
| Grammatical Framework | 2 | daherb/gf-rgl | src/api/TryPor.gf | [
"BSD-3-Clause"
] |
// Cell coords.
attribute vec2 cellCoords;
// Glyph coords.
attribute vec2 glyphCoords;
// uv mapping.
attribute vec2 uv;
// Text foreground rgb packed together with cell flags. textColor.a
// are the bitflags; consult RenderingGlyphFlags in renderer/mod.rs
// for the possible values.
attribute vec4 textColor;
// B... | GLSL | 5 | ipatch/alacritty | alacritty/res/gles2/text.v.glsl | [
"Apache-2.0"
] |
#pragma rtGlobals=1 // Use modern global access method.
// fileutils - Utility functions to work with files
#ifndef FILEUTILS_INCLUDE
#define FILEUTILS_INCLUDE
// Open a file for writing and return reference (handle) to it
Function File_openForWrite(filepath)
String filepath
Variable fileref
Open filer... | IGOR Pro | 4 | ajnavarro/language-dataset | data/github.com/yamad/igorutils/6eafc6a246974796f7680e5746b9003b68937e3c/fileutils.ipf | [
"MIT"
] |
(defun_header
function_name: (sym_lit) @definition.function (#set! definition.function.scope "parent"))
(defun_header
lambda_list: (list_lit (sym_lit) @definition.parameter))
(defun_header
keyword: (defun_keyword "defmethod")
lambda_list: (list_lit (list_lit . (sym_lit) . (sym_lit) @definition.type)))
(defun_... | Scheme | 2 | hmac/nvim-treesitter | queries/commonlisp/locals.scm | [
"Apache-2.0"
] |
[Desktop Entry]
Name=Qt4 QDbusViewer
GenericName=D-Bus Debugger
Comment=Debug D-Bus applications
Exec=qdbusviewer-qt4
Icon=qdbusviewer-qt4
Terminal=false
Type=Application
Categories=Qt;Development;Debugger;
| desktop | 0 | cyberqueen-meg/blackarch | packages/qt4/qdbusviewer-qt4.desktop | [
"BSD-3-Clause"
] |
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://purl.org/kid/ns#">
<p py:def="greeting(name)">
Hello, ${name}!
</p>
<body py:match="item.tag == '{http://www.w3.org/1999/xhtml}body'" py:strip="">
<div id="header">
<h1>${title}</h1>
</div>
${item}
<div id="footer" />
... | Genshi | 3 | LordAro/mako | examples/bench/kid/base.kid | [
"MIT"
] |
BaseCheck,{{ command }},{{ title }}
| AutoHotkey | 0 | scslmd/ahk | ahk/templates/daemon/base_check.ahk | [
"MIT"
] |
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit eutils git-r3
DESCRIPTION="Create ctags/etags for a cargo project and all of its dependencies"
HOMEPAGE="https://github.com/dan-t/rusty-tags"
SRC_URI=""
LICENSE="BSD"
SLOT="0"
KEYWORDS=""
IUSE="... | Gentoo Ebuild | 4 | gentoo/gentoo-rust | dev-util/rusty-tags/rusty-tags-9999.ebuild | [
"BSD-3-Clause"
] |
.main {
background: url('https://github.com/vercel/next.js/raw/canary/test/integration/url/public/vercel.png');
background-size: contain;
width: 300px;
height: 300px;
}
| CSS | 4 | blomqma/next.js | test/integration/url-imports/pages/css.module.css | [
"MIT"
] |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Siler's Hello World</title>
</head>
<body>
<h1>Hello World!</h1>
<p>Name <?= $params['name'] ?></p>
</body>
</html>
| HTML+PHP | 2 | factormaarten/siler | examples/hello-world/hello-world.phtml | [
"MIT"
] |
#+TITLE: :ui minimap
#+DATE: May 8, 2020
#+SINCE: v3.0.0
#+STARTUP: inlineimages nofold
* Table of Contents :TOC_3:noexport:
- [[#description][Description]]
- [[#maintainers][Maintainers]]
- [[#module-flags][Module Flags]]
- [[#plugins][Plugins]]
- [[#features][Features]]
- [[#configuration][Configuration... | Org | 3 | leezu/doom-emacs | modules/ui/minimap/README.org | [
"MIT"
] |
//tab_size=4
// Copyright 2021 nickmqb
// SPDX-License-Identifier: Apache-2.0
main() {
::currentAllocator = Memory.newArenaAllocator(checked_cast(uint.maxValue, ssize))
IntVector2.static_init_delta_8()
IntVector3.static_init_delta()
Biomes.static_init_masks()
argErrors := new List<CommandLineArgsParserError>{}
... | mupad | 3 | nickmqb/fpga_craft | terrain_gen/main.mu | [
"Apache-2.0"
] |
#tag IOSView
Begin iosView MainView
BackButtonTitle = ""
Compatibility = ""
LargeTitleMode = 2
Left = 0
NavigationBarVisible= True
TabIcon = ""
TabTitle = ""
Title = ""
Top = 0
Begin iOSTable Table1
AccessibilityHin... | Xojo | 4 | kingj5/iOSKit | ExampleViews/MainView.xojo_code | [
"MIT"
] |
module openconfig-codegen-extensions {
yang-version "1";
// namespace
namespace "http://openconfig.net/yang/openconfig-codegen-ext";
prefix "oc-codegen-ext";
// import some basic types
import openconfig-extensions { prefix oc-ext; }
// meta
organization "OpenConfig working group";
contact
"O... | YANG | 5 | xw-g/public | release/models/extensions/openconfig-codegen-extensions.yang | [
"Apache-2.0"
] |
DROP VIEW hdb_catalog.hdb_role;
DROP TABLE hdb_catalog.hdb_action_permission;
DROP TABLE hdb_catalog.hdb_action;
DROP TABLE hdb_catalog.hdb_custom_types;
DROP TABLE hdb_catalog.hdb_action_log;
DELETE FROM hdb_catalog.hdb_relationship where table_schema = 'hdb_catalog' and table_name in ('hdb_action', 'hdb_action_permi... | SQL | 2 | gh-oss-contributor/graphql-engine-1 | server/src-rsr/migrations/32_to_31.sql | [
"Apache-2.0",
"MIT"
] |
import Demo "../../backend/Demo";
import Types "../../backend/Types";
module {
public let allVideos : [Types.VideoId] = [
"alice-dog-0",
"bob-fish-0",
"cathy-bunny-0",
"dexter-hampster-0",
"esther-weasel-0",
];
public let demoScript : [Demo.Command] = [
#reset(#script 0), // clear CanCan... | Modelica | 5 | gajendraks/cancan | service/Demo/Can30_VideoRecommendations.mo | [
"Apache-2.0"
] |
$$ MODE TUSCRIPT
host=HOST ()
| Turing | 0 | LaudateCorpus1/RosettaCodeData | Task/Hostname/TUSCRIPT/hostname.tu | [
"Info-ZIP"
] |
scriptname _Camp_WoodChoppingFurnitureScript extends ObjectReference
import _CampInternal
Quest property _Camp_MainQuest auto
FormList property woodChoppingAxes auto
Actor property PlayerRef auto
weapon EquippedWeapon
Event OnActivate(ObjectReference akActionRef)
if (akActionRef as Actor) == Game.GetPlayer()
Cam... | Papyrus | 4 | chesko256/Campfire | Scripts/Source/_Camp_WoodChoppingFurnitureScript.psc | [
"MIT"
] |
FROM golang:1.12.9-alpine3.10 as builder
COPY web.go .
RUN go build -o /web .
FROM alpine:3.10
# Define GOTRACEBACK to mark this container as using the Go language runtime
# for `skaffold debug` (https://skaffold.dev/docs/workflows/debug/).
ENV GOTRACEBACK=single
CMD ["./web"]
COPY --from=builder /web .
| Dockerfile | 3 | mwht/minikube | test/integration/testdata/skaffold/leeroy-web/Dockerfile | [
"Apache-2.0"
] |
#! /usr/bin/jconsole
db =: 2e4,~(([%~0.5<.@:+*)~ 10^100&>) 19.4806*2^48%~i.479
gen =: 3 : 0"1
f =. (1.5&%-%&12) 4 o. (-(<.65*5+{:y)&{) (1.7+{.y) %: db%60
g =. ^ (-3*2+?2$0) * (%~ 0.1 + 1 o. ^&(-:3+|.y)) (1200*1+2**:y) %~/ db
crinkle =. 20 %~ (1-+:|.y) +/ .* 0>.g-1.2+(0.4*?0)-{:y
res =. -10^.(1+*:@]-*)`(^~%&d... | J | 3 | Banbeucmas/CrinGraph | data_hp/gen.ijs | [
"0BSD"
] |
module: part2
define constant $n = 251;
let m = make(<vector>, size: $n);
for (i from 0 below $n)
m[i] := make(<vector>, size: $n, fill: '#')
end;
for (i from 1 below $n - 1 by 2)
for (j from 1 below $n by 2)
m[i][j] := '.'
end
end;
let r = read-line(*standard-input*);
define function f(i, q)
let pq = q... | Dylan | 4 | Ashindustry007/competitive-programming | advent-of-code/2018/day20/part2.dylan | [
"WTFPL"
] |
start_server {} {
set i [r info]
regexp {redis_version:(.*?)\r\n} $i - version
regexp {redis_git_sha1:(.*?)\r\n} $i - sha1
puts "Testing Redis version $version ($sha1)"
}
| Tcl | 3 | tomliugen/tomliugen-redis-3.2.2-rc | tests/unit/printver.tcl | [
"BSD-3-Clause"
] |
\require "c" | LilyPond | 0 | HolgerPeters/lyp | spec/user_files/pinclude2.ly | [
"MIT"
] |
////////////////////////////////////////////////////////////////////////////////
// AssemblyInfo.prg
using System.Reflection
using System.Runtime.InteropServices
using System.Security
[assembly: AssemblyTitleAttribute( "VO-Compatible System Classes Library" )]
[assembly: AssemblyDescriptionAttribute( "VO-Compatible ... | xBase | 4 | orangesocks/XSharpPublic | Runtime/VOSDK/Source/VOSDK/System_Classes_SDK/Properties/AssemblyInfo.prg | [
"Apache-2.0"
] |
[[actuator.whats-next]]
== What to Read Next
You might want to read about graphing tools such as https://graphiteapp.org[Graphite].
Otherwise, you can continue on to read about <<deployment#deployment, "`deployment options`">> or jump ahead for some in-depth information about Spring Boot's <<build-tool-plugins#build-t... | AsciiDoc | 0 | techAi007/spring-boot | spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/whats-next.adoc | [
"Apache-2.0"
] |
actor Main
new create(env: Env) => meaning_of_life()
fun meaning_of_life(): (String, (String|U32)) =>
let x = U32(1)
("hi", "hi")
| Pony | 3 | presidentbeef/ponyc | minimal-cases/issue-849/849.pony | [
"BSD-2-Clause"
] |
invoke_method =: ] : (dyad def '(''__y'' ,~ >{:x)~ >{.x')
method_chain_z_ =: ($:~ a:"0) : (coname@'' invoke_method F..invoke_method ,.)
then_RADWIMPS_ =: coname [ stdout@'前'
se_RADWIMPS_ =: empty [ stdout@('世' , LF)
method_chain_RADWIMPS_ then`then`then`se
exit 0
| J | 2 | kokkiemouse/RADWIMPS | RADWIMPS.ijs | [
"MIT"
] |
;;;;------------------------------------------------------------------------
;;;; Global variables
globals
[
root ; root of the generated tree
cont ; Counter to enumerate the nodes in a sequencial way
acont; Counter to enumerate the depth of links
]
;;;; Agents Families
breed [nodes node] ; Nodes of Tree/Gra... | NetLogo | 5 | fsancho/IA | 02. Uninformed Search/Uninformed Explorations.nlogo | [
"MIT"
] |
# Copyright (c) 2018-2021, Carnegie Mellon University
# See LICENSE for details
_neon_binop_ev := rec(
ev := self >> self.t.value(self.semantic(self._vval(1), self._vval(2), [])).ev(),
);
############### HALF NEON #############
Class(vunpacklo_half, _neon_binop_ev, VecExp_2.binary(), rec(
semantic := (in1, ... | GAP | 4 | sr7cb/spiral-software | namespaces/spiral/platforms/neon/code.gi | [
"BSD-2-Clause-FreeBSD"
] |
#!/usr/bin/env bash
# Copyright 2016 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Shell | 4 | lack/kubernetes | hack/e2e-node-test.sh | [
"Apache-2.0"
] |
{
"targets": [
{
"target_name": "perfcounters",
"sources": [
"src/hardware-counter.cpp",
"src/perf-counters.cpp",
"src/thread-local.cpp",
],
"cflags": [
"-Wno-sign-compare",
],
},
],
}
| Python | 1 | vegYY/react | scripts/perf-counters/binding.gyp | [
"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.
-module(case_guards).
-export([
test_accepts_positive_Bad/0,
test_accepts_positive_Ok/0,
test_accepts_positive2_Bad/0,
test_a... | Erlang | 4 | niranthhr/facebook_prj | infer/tests/codetoanalyze/erlang/nonmatch/src/case_guards.erl | [
"MIT"
] |
----------------------------------------------------------------------------------
-- Company:
-- Engineer:
--
-- Create Date: 24.05.2016 21:14:53
-- Design Name:
-- Module Name: tb_main_design - Behavioral
-- Project Name:
-- Target Devices:
-- Tool Versions:
-- Description:
--
-- Dependencies:
... | VHDL | 4 | hamsternz/FPGA_Webserver | testbenches/tb_main_design_tcp.vhd | [
"MIT"
] |
# Copyright 2014 Guillaume LE VAILLANT
# Distributed under the terms of the GNU General Public License v3
EAPI="5"
inherit eutils autotools
DESCRIPTION="A bruteforce cracker for Peercoin (and Bitcoin, Litecoin, etc...) encrypted wallet files."
HOMEPAGE="https://github.com/glv2/${PN}"
SRC_URI="https://github.com/glv2... | Gentoo Ebuild | 4 | benjaga202/bitcoin-hacking-tools | private-key-harvesters/bruteforce-wallet/contrib/gentoo/app-crypt/bruteforce-wallet/bruteforce-wallet-1.2.ebuild | [
"Unlicense"
] |
<script src='bug.js'></script>
| HTML | 0 | frank-dspeed/nw.js | test/sanity/issue4018-vm-crash/bug.html | [
"MIT"
] |
@protocol TrunkBranchProtocol;
__attribute__((objc_root_class))
@interface Trunk
- (instancetype)init;
- (void)addLimb:(id<TrunkBranchProtocol>)limb;
@end
// NS_SWIFT_NAME(Trunk.Branch)
__attribute__((swift_name("Trunk.Branch")))
@protocol TrunkBranchProtocol
- (void) flower;
@end
| C | 4 | gandhi56/swift | test/ClangImporter/Inputs/nested_protocol_name.h | [
"Apache-2.0"
] |
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- --
-- ... | Ada | 4 | CandyROM/external_libncurses | Ada95/samples/ncurses2-genericputs.ads | [
"X11"
] |
- page_title _('Invitation declined')
.decline-page.gl-display-flex.gl-flex-direction-column.gl-mx-auto{ class: 'gl-xs-w-full!' }
.gl-align-self-center.gl-mb-4.gl-mt-7.gl-sm-mt-0= sprite_icon('check-circle', size: 48, css_class: 'gl-text-green-400')
%h2.gl-font-size-h2= _('You successfully declined the invitation')... | Haml | 4 | glimmerhq/glimmerhq | app/views/invites/decline.html.haml | [
"MIT"
] |
[Code]
{
Exec Helper for executing commands without blocking the InnoSetup GUI
----
The main procedure is NonUiBlockingExec().
Your GUI will remain responsive during the operation.
Initially written for 7zip by Rik and Jens A. Koch (@jakoch) on StackOverflow:
http://stackoverflow.com/questions/3225643... | Inno Setup | 5 | dendisuhubdy/opentrack | installer/non-ui-blocking-exec.iss | [
"ISC"
] |
##! Add countries for the originator and responder of a connection
##! to the connection logs.
module Conn;
export {
redef record Conn::Info += {
## Country code for the originator of the connection based
## on a GeoIP lookup.
orig_cc: string &optional &log;
## Country code for the responser of the connecti... | Bro | 4 | websharks/ace-builds | demo/kitchen-sink/docs/bro.bro | [
"BSD-3-Clause"
] |
--TEST--
DBA dba.default_handler tests
--EXTENSIONS--
dba
--SKIPIF--
<?php
$handler = "flatfile";
require_once(__DIR__ .'/skipif.inc');
?>
--INI--
dba.default_handler=flatfile
--FILE--
<?php
$handler = "flatfile";
require_once(__DIR__ .'/test.inc');
echo "database handler: $handler\n";
echo "Test 1\n";
ini_set('dba.d... | PHP | 3 | NathanFreeman/php-src | ext/dba/tests/dba012.phpt | [
"PHP-3.01"
] |
/**
* OnDemandConfigPortal.ino
* example of running the configPortal AP manually, independantly from the captiveportal
* trigger pin will start a configPortal AP for 120 seconds then turn it off.
*
*/
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
// select which pin will trigger the configurat... | Arduino | 5 | ortlof/OSSM-hardware | PlatformIO ESP32 code/OSSM_ESP32/lib/WiFiManager-master/examples/OnDemand/OnDemandConfigPortal/OnDemandConfigPortal.ino | [
"MIT"
] |
<!DOCTYPE html>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Copyright (c) 2015-2018 Skymind, Inc.
~ Copyright (c) 2019 Konduit, KK
~
~ This program and the accompanying materials are made available under the
~ terms of the Apache License, Version 2.0 which is available ... | FreeMarker | 4 | mjlorenzo305/deeplearning4j | deeplearning4j/deeplearning4j-ui-parent/deeplearning4j-vertx/src/main/resources/templates/TrainingOverview.html.ftl | [
"Apache-2.0"
] |
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C++ | 5 | 873040/Abhishek | research/lstm_object_detection/tflite/utils/ssd_utils.cc | [
"Apache-2.0"
] |
{
"Body" : {
"Data" : {
"Inverters" : {
"1" : {
"Battery_Mode" : "suspended",
"DT" : 1,
"E_Day" : null,
"E_Total" : 7512664.4041666668,
"E_Year" : null,
"P" : 186.54914855957031,
"SOC" ... | JSON | 3 | MrDelik/core | tests/components/fronius/fixtures/gen24_storage/GetPowerFlowRealtimeData.json | [
"Apache-2.0"
] |
# Copyright 2005-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/qt3.eclass,v 1.41 2009/05/17 15:17:03 hwoarang Exp $
# @ECLASS: qt3.eclass
# @MAINTAINER:
# kde-sunset overlay maintainers
# @BLURB: Eclass for Qt3 packages
# @DESCRIPTIO... | Gentoo Eclass | 4 | ivecera/gentoo-overlay | eclass/qt3.eclass | [
"Apache-2.0"
] |
{#
# Copyright (c) 2018 Deciso B.V.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditio... | Volt | 4 | Kipjr/core | src/opnsense/mvc/app/views/OPNsense/Unbound/stats.volt | [
"BSD-2-Clause"
] |
#define TORCH_ASSERT_NO_OPERATORS
#include <ATen/native/TensorIterator.h>
#include <ATen/native/cuda/Reduce.cuh>
#include <ATen/native/cuda/ReduceOps.h>
#include <ATen/native/DispatchStub.h>
#include <ATen/native/SharedReduceOps.h>
#include <ATen/Dispatch.h>
#include <ATen/cuda/NumericLimits.cuh>
#include <ATen/native/... | Cuda | 4 | xiaohanhuang/pytorch | aten/src/ATen/native/cuda/ReduceMinMaxKernel.cu | [
"Intel"
] |
<% listed_taxa ||= @listed_taxa ||= @list.listed_taxa %>
<ul class="listed_taxa">
<% for listed_taxon in listed_taxa %>
<li class="clear">
<%= render :partial => 'lists/listed_taxon',
:locals => {:listed_taxon => listed_taxon} %>
</li>
<% end %>
</ul>
| RHTML | 3 | alexshepard/inaturalist | app/views/lists/_listed_taxa.rhtml | [
"MIT"
] |
//---------------------------------------------------------
// Buffered NeoPixel driver
// by teachop
//
#include <xs1.h>
#include <stdint.h>
#include "neopixel.h"
// ---------------------------------------------------------
// neopixel_task - output driver for one neopixel strip
//
[[combinable]]
void neopixel_task... | XC | 5 | smola/language-dataset | data/github.com/teachop/xcore_neopixel_buffered/37bbce485d28b4eadbd57adbbbf6e8c0aa8d8d68/module_neopixel/src/neopixel.xc | [
"MIT"
] |
// stdlib.hb
import stddef; // for size_t
extern void exit(int status);
extern void* calloc(size_t nmemb, size_t size);
extern void* malloc(size_t size);
extern void free(void* ptr);
extern void* realloc(void* ptr, size_t size);
extern int system(char* command);
| Harbour | 3 | ueki5/cbc | import/stdlib.hb | [
"Unlicense"
] |
import { imageDemoTest } from '../../../tests/shared/imageTest';
describe('Comment image', () => {
imageDemoTest('comment');
});
| TypeScript | 3 | chnliquan/ant-design | components/comment/__tests__/image.test.ts | [
"MIT"
] |
vcl 4.0;
// this is just here so that the configuration is valid
| VCL | 0 | ausi/FOSHttpCacheBundle | tests/Functional/Fixtures/app/Resources/varnish/fos.vcl | [
"MIT"
] |
/*
* SRT - Secure, Reliable, Transport
* Copyright (c) 2019 Haivision Systems Inc.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
*/
/******************... | C | 5 | attenuation/srs | trunk/3rdparty/srt-1-fit/haicrypt/cryspr-mbedtls.c | [
"MIT"
] |
// Code generated by avx512test. DO NOT EDIT.
#include "../../../../../../runtime/textflag.h"
TEXT asmtest_aes_avx512f(SB), NOSPLIT, $0
VAESDEC X24, X7, X11 // 62124508ded8 or 6212c508ded8
VAESDEC X20, X7, X11 // 62324508dedc or 6232c508dedc
VAESDEC X24, ... | GAS | 1 | Havoc-OS/androidprebuilts_go_linux-x86 | src/cmd/asm/internal/asm/testdata/avx512enc/aes_avx512f.s | [
"BSD-3-Clause"
] |
--# -path=.:../abstract:../common:prelude
concrete GrammarDut of Grammar =
NounDut,
VerbDut,
AdjectiveDut,
AdverbDut,
NumeralDut,
SentenceDut,
QuestionDut,
RelativeDut,
ConjunctionDut,
PhraseDut,
TextX,
IdiomDut,
StructuralDut,
TenseX ;
| Grammatical Framework | 3 | daherb/gf-rgl | src/dutch/GrammarDut.gf | [
"BSD-3-Clause"
] |
import "std/test"
test.run("delete variable", fn(assert) {
let hello = "world"
assert.isTrue(isDefined("hello"))
delete hello
assert.isFalse(isDefined("hello"))
})
test.run("delete constant", fn(assert) {
assert.shouldThrow(fn() {
const place = "Earth"
delete place
})
})
| Inform 7 | 5 | lfkeitel/nitrogen | tests/basic/delete.ni | [
"BSD-3-Clause"
] |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | JavaScript | 4 | good-gym/material-ui | packages/material-ui-icons/lib/SleddingSharp.js | [
"MIT"
] |
fn foo<T, U>(x: T, y: U) {
let mut xx = x;
xx = y;
//~^ ERROR mismatched types
//~| expected type parameter `T`, found type parameter `U`
//~| expected type parameter `T`
//~| found type parameter `U`
}
fn main() {
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/issues/issue-2951.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
@prog say3-10.MUF
1 99999 d
1 i
( Say program v 3.10 By Warwick on FurryMUCK2.2fb4.1 18th February 1993
----
say is major action, sayhelp;sayset;sayfilter provide front ending
----
Properties on say program-object:
_convert : optional <DBint of property conversion program>
_version : Say version 3.10 {c} 19... | MUF | 3 | seanmcelroy/moo | moo.console/scripts/warwick/progsay3-10.muf | [
"MIT"
] |
#world [a = 1.2e3][b = 1.2e-3][c = 1.2e+3] { polygon-fill:#fff; }
| CartoCSS | 0 | nimix/carto | test/rendering/filterexp.mss | [
"Apache-2.0"
] |
FROM node:10.12
ENTRYPOINT [ "sh" ]
| Dockerfile | 2 | Andre305/angular-cli | Dockerfile | [
"MIT"
] |
.badge {
color: #fff;
background-color: #6c757d;
display: inline-block;
padding: .25em .4em;
font-size: 75%;
font-weight: 1;
line-height: 1;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: 0.25rem;
// Empty badges collapse automatically
&:empty {
display:... | SCSS | 4 | 0x7c48/mitmproxy | docs/style/badge.scss | [
"MIT"
] |
20 5 0 0 94
0 1 9 6 5 1 2 3 9 7 4 8 [0] [0] [0] [0] [0] [0] [0] [0] [0]
1 1 5 14 13 19 17 18 [16] [1] [23] [16] [9]
2 1 5 17 19 14 18 13 [-7] [9] [12] [18] [-9]
3 1 7 15 14 17 20 19 16 18 [12] [6] [3] [-5] [14] [4] [-1]
4 1 3 11 17 18 [13] [21] [7]
5 1 7 19 18 16 15 14 17 20 [9] [8] [3] [3] [1] [0] [-1]
6 1 6 17... | Eagle | 1 | klorel/or-tools | examples/data/rcpsp/single_mode_investment/rip20/rip234.sch | [
"Apache-2.0"
] |
\ @(#) $M$ 98/01/26 1.2
\ standard { v0 v1 ... vn | l0 l1 .. lm -- } syntax
\ based on ANSI basis words (LOCAL) and TO
\
\ Author: Phil Burk
\ Copyright 1994 3DO, Phil Burk, Larry Polansky, David Rosenboom
\
\ Permission to use, copy, modify, and/or distribute this
\ software for any purpose with or without fee is here... | Forth | 4 | nickpascucci/pforth | fth/locals.fth | [
"0BSD"
] |
.. _appendix_box:
Box
===
Rich has a number of constants that set the box characters used to draw tables and panels. To select a box style import one of the constants below from ``rich.box``. For example::
from rich import box
table = Table(box=box.SQUARE)
.. note::
Some of the box drawing characters w... | reStructuredText | 4 | traviscook21/rich | docs/source/appendix/box.rst | [
"MIT"
] |
#include <stdio.h>
#include <math.h>
#include <upc_relaxed.h>
#if WITH_UPC
/* with RTED */
#include "RuntimeSystem.h"
// instrument code
// runtimeCheck heattrans.upc -rose:UPC -rose:upc_threads 8 -DWITH_UPC -I../../../ROSE/config -c -I../../../ROSE/projects/RTED -I. -I../..
// compile instrumented code
// upc -O0 -... | Unified Parallel C | 4 | maurizioabba/rose | projects/RTED/tests/UPC/noerrortests/heattrans.upc | [
"BSD-3-Clause"
] |
// ParserTests.prg
// Created by : nvk
// Creation Date : 2/6/2021 11:31:16 AM
// Created for :
// WorkStation : I7
USING System
USING System.Collections.Generic
USING System.Text
// Rudimentary parser tests
// Should parse without errors
FUNCTION ParserTestsFox(mc AS XSharp.Runtime.MacroCompiler) AS VOID
... | xBase | 5 | orangesocks/XSharpPublic | Runtime/MacroCompiler.Example/ParserTests.prg | [
"Apache-2.0"
] |
extends: capitalization
message: "'%s' should be in title case"
level: error
scope: heading.h1
match: $title
style: AP
exceptions:
- brew(1)
- macOS
- Homebrew/brew
- Homebrew/homebrew-core
- Homebrew/linuxbrew-core
- Homebrew/homebrew-cask
- (or Linux)
| YAML | 3 | ylht/brew | docs/vale-styles/Homebrew/Titles.yml | [
"BSD-2-Clause"
] |
;
; AutoIt Version: 3.0
; Language: English
; Platform: Win9x/NT
; Author: Doron Ofek
;
; Script Function:
; Build CodeXL documentation with WordToHelp.
; This script uses the AutoIt 3.0 scripting automation language to run the WordToHelp application and generate the CodeXL User Guide CHM and HT... | AutoIt | 4 | jeongjoonyoo/CodeXL | CodeXL/Help/AutoItWordToHelp.au3 | [
"MIT"
] |
CLASS zcl_abapgit_persist_factory DEFINITION
PUBLIC
CREATE PRIVATE
GLOBAL FRIENDS zcl_abapgit_persist_injector .
PUBLIC SECTION.
CLASS-METHODS get_repo
RETURNING
VALUE(ri_repo) TYPE REF TO zif_abapgit_persist_repo .
CLASS-METHODS get_repo_cs
RETURNING
VALUE(ri_repo_cs) TYPE... | ABAP | 4 | gepparta/abapGit | src/persist/zcl_abapgit_persist_factory.clas.abap | [
"MIT"
] |
provider "aws" {
version = "~> 2.58"
}
provider "random" {
version = "~> 2.2"
}
resource "random_id" "suffix" {
byte_length = 4
}
resource "random_password" "db" {
length = 16
special = false
}
resource "aws_db_instance" "test" {
identifier = "metricbeat-test-${random_id.suffix.hex}"
allocat... | HCL | 4 | tetianakravchenko/beats | x-pack/metricbeat/module/aws/terraform.tf | [
"ECL-2.0",
"Apache-2.0"
] |
exec("swigtest.start", -1);
x = "hello";
// li_std_string tests
// Function tests
checkequal(test_ccvalue(x), x, "test_ccvalue()");
checkequal(test_cvalue(x), x, "test_cvalue(x)");
checkequal(test_value(x), x, "test_value()");
checkequal(test_const_reference(x), x, "test_const_reference(x)");
checkequal(test_refe... | Scilab | 3 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/li_std_string_extra_runme.sci | [
"BSD-3-Clause"
] |
; Kovri Installer for Windows, 32 bit variant
; Copyright (c) 2017, The Kovri I2P Router Project
; See LICENSE
#define Bitness 32
#include "Common.iss"
| Inno Setup | 1 | byterubpay/kovri | pkg/installers/windows/Kovri32.iss | [
"BSD-3-Clause"
] |
"""The button tests for the Mazda Connected Services integration."""
from pymazda import MazdaException
import pytest
from homeassistant.components.button import DOMAIN as BUTTON_DOMAIN, SERVICE_PRESS
from homeassistant.const import ATTR_ENTITY_ID, ATTR_FRIENDLY_NAME, ATTR_ICON
from homeassistant.exceptions import Ho... | Python | 5 | MrDelik/core | tests/components/mazda/test_button.py | [
"Apache-2.0"
] |
syntax = "proto3";
package math2;
service Math2 {
rpc Sum2 (RequestSum) returns (SumResult) {}
}
message SumResult {
int32 result = 1;
}
message RequestSum {
repeated int32 data = 1;
}
| Protocol Buffer | 4 | SuperHuangXu/nest | integration/microservices/src/grpc/math2.proto | [
"MIT"
] |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime version: 4.0.30319.42000
// Generator : XSharp.CodeDomProvider 2.9.0.0
// Timestamp : 29/09/2021 16:32:43
//
// Changes to this file ... | xBase | 3 | orangesocks/XSharpPublic | Tools/UDCTester/UDCTester.Designer.prg | [
"Apache-2.0"
] |
declare default element namespace "http://www.w3.org/1999/xhtml";
declare variable $specs := "xqft-usecases";
declare variable $sample := "xqft";
declare variable $stopwords := "xqft-sw.txt";
declare function local:getQueries() {
for $ex in doc($specs)//div[@class = 'div3']
let $header := normalize-space($ex/h4/te... | XQuery | 4 | JensErat/basex | basex-examples/src/main/resources/xml/xqft-usecases.xq | [
"BSD-3-Clause"
] |
/// $Id: HplAtm128InterruptPinP.nc,v 1.7 2010-06-29 22:07:43 scipio Exp $
/*
* Copyright (c) 2004-2005 Crossbow Technology, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redi... | nesC | 5 | mtaghiza/tinyos-main-1 | tos/chips/atm128/pins/HplAtm128InterruptPinP.nc | [
"BSD-3-Clause"
] |
import panel as Panel from './panel';
define foo extends Panel {
@title > 'Foo title'
@body {
i > tt > 'Content'
}
} | Mask | 3 | atmajs/MaskJS | examples/components/foo.mask | [
"MIT"
] |
B-aircraft_code
B-airline_code
B-airline_name
B-airport_code
B-airport_name
B-arrive_date.date_relative
B-arrive_date.day_name
B-arrive_date.day_number
B-arrive_date.month_name
B-arrive_date.today_relative
B-arrive_time.end_time
B-arrive_time.period_mod
B-arrive_time.period_of_day
B-arrive_time.start_time
B-arrive_time... | Mathematica | 1 | burhandodhy/CNTK | Examples/LanguageUnderstanding/ATIS/BrainScript/slots.wl | [
"MIT"
] |
# This file is a part of Julia. License is MIT: https://julialang.org/license
using Test
using LibCURL_jll
@testset "LibCURL_jll" begin
v = unsafe_string(ccall((:curl_version, libcurl), Cstring, ()))
@test startswith(v, "libcurl/")
end
| Julia | 4 | vanillajonathan/julia | stdlib/LibCURL_jll/test/runtests.jl | [
"Zlib"
] |
module com.networknt.cluster {
exports com.networknt.cluster;
requires com.networknt.balance;
requires com.networknt.registry;
requires com.networknt.service;
requires com.networknt.utility;
requires org.slf4j;
} | Jasmin | 3 | KellyShao/light-4j | cluster/src/main/java/module-info.j | [
"Apache-2.0"
] |
package com.alibaba.json.bvt.jdk8;
import java.time.LocalDate;
import java.util.Locale;
import org.junit.Assert;
import com.alibaba.fastjson.JSON;
import junit.framework.TestCase;
public class LocalDateTest5 extends TestCase {
private Locale origin;
protected void setUp() throws Exception {
origi... | Java | 3 | Czarek93/fastjson | src/test/java/com/alibaba/json/bvt/jdk8/LocalDateTest5.java | [
"Apache-2.0"
] |
.. _routines.fft:
.. automodule:: numpy.fft
| reStructuredText | 1 | iam-abbas/numpy | doc/source/reference/routines.fft.rst | [
"BSD-3-Clause"
] |
--TEST--
Cannot resume fiber within destructor
--FILE--
<?php
$fiber = new Fiber(function () {
Fiber::suspend();
});
$fiber->start();
return new class ($fiber) {
private $fiber;
public function __construct(Fiber $fiber) {
$this->fiber = $fiber;
}
public function __destruct() {
$t... | PHP | 3 | NathanFreeman/php-src | Zend/tests/fibers/no-switch-dtor-throw.phpt | [
"PHP-3.01"
] |
insert into various_types () values (); | SQL | 0 | WizardXiao/tidb | br/tests/lightning_generated_columns/data/gencol.various_types.0.sql | [
"Apache-2.0"
] |
// Currently, the pattern matcher widens the type of the
// scrutinee, so this doesn't typecheck. This test just
// confirms this behaviour, although it would be an improvement
// to change this and make this a `pos` test.
//
// But, to the intrepid hacker who works on this, a few notes:
// You'll have to look into pla... | Scala | 3 | jamesanto/scala | test/files/neg/t6771b.scala | [
"Apache-2.0"
] |
Test ^^Superscript^^
| Creole | 1 | jquorning/ada-wiki | regtests/expect/wiki-import/sup.creole | [
"Apache-2.0"
] |
#include <console>
b_main() {
print("hello");
}
| PAWN | 1 | pawn-lang/pawn | source/compiler/tests/gh_206_multiple_inputs_2.pwn | [
"Zlib"
] |
<mat-card class="example-card">
<mat-card-subtitle>Dog Breed</mat-card-subtitle>
<mat-card-title>Shiba Inu</mat-card-title>
<mat-card-content>
<p>This card has divider and indeterminate progress as footer</p>
<p>{{ longText }}</p>
</mat-card-content>
<mat-divider inset></mat-divider>
<mat-card-actio... | HTML | 4 | tungyingwaltz/components | src/components-examples/material/card/card-footer/card-footer-example.html | [
"MIT"
] |
/**
* @file undgraphs.yap
* @author VITOR SANTOS COSTA <vsc@VITORs-MBP.lan>
* @date 2006
*
* @brief Undirected Graph Processing Utilities.
*
*
*/
:- module( undgraphs,
[
undgraph_add_edge/4,
undgraph_add_edges/3,
undgraph_add_vertices/3,
undgraph_del_edge/4,
undgraph_del_edges/... | Logtalk | 5 | PaulBrownMagic/logtalk3 | library/graphs/undgraphs.lgt | [
"Apache-2.0"
] |
% 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.
-module(infer_parse_transform).
-export([parse_transform/2]).
-type forms() :: erl_parse:abstract_form() | erl_parse:form_info().
-spec par... | Erlang | 3 | niranthhr/facebook_prj | infer/lib/erlang/infer_parse_transform/src/infer_parse_transform.erl | [
"MIT"
] |
namespace OpenAPI.Tests
open System
open System.Net
open System.Net.Http
open System.IO
open Microsoft.AspNetCore.Builder
open Microsoft.AspNetCore.Hosting
open Microsoft.AspNetCore.TestHost
open Microsoft.Extensions.DependencyInjection
open FSharp.Control.Tasks.V2.ContextInsensitive
open Xunit
open System.Text
open T... | F# | 3 | MalcolmScoffable/openapi-generator | samples/server/petstore/fsharp-giraffe/OpenAPI.Tests/UserApiTestsHelper.fs | [
"Apache-2.0"
] |
/* Copyright 2018 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/distributed_runtime/cancellable_call.h | [
"Apache-2.0"
] |
/** @flow */
'use strict';
const listAppUtils = require('./list-app-utils');
const devToolsUtils = require('./devtools-utils');
const {test, expect} = require('@playwright/test');
const config = require('../../playwright.config');
test.use(config);
test.describe('Components', () => {
let page;
test.beforeEach(as... | JavaScript | 5 | GBKstc/react-analysis | packages/react-devtools-inline/__tests__/__e2e__/components.test.js | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.