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 |
|---|---|---|---|---|---|
module Star where
open import Prelude
infixr 40 _•_ _++_
infixl 30 _on_
infixr 20 _==>_ _=[_]=>_
data Star {X : Set} (R : Rel X) : Rel X where
ε : {x : X} -> Star R x x
_•_ : {x y z : X} -> R x y -> Star R y z -> Star R x z
_++_ : {X : Set}{R : Rel X}{x y z : X} ->
Star R x y -> Star R y z -> Star R x... | Agda | 5 | cruhland/agda | examples/AIM6/Path/Star.agda | [
"MIT"
] |
module shape()
{
difference()
{
translate([ -35, -35 ]) intersection()
{
union() {
difference() {
square(100, true);
square(50, true);
}
translate([ 50, 50 ])
square(15, true);
}
rotate(45) translate([ 0, -15 ]) square([ 100, 30 ]);
}
rotate(-45) scale([ 0.7, 1.3 ]) circ... | OpenSCAD | 4 | heristhesiya/OpenJSCAD.org | packages/io/scad-deserializer/tests/examples/example015.scad | [
"MIT"
] |
signature S = sig
type t
val x : t
end
structure M : S = struct
type t = _
val x = 0
end
| UrWeb | 3 | apple314159/urweb | tests/sig_wild.ur | [
"BSD-3-Clause"
] |
module CausalityTest exposing (all)
import Application.Application as Application
import Causality.Causality as Causality
import Common exposing (initCustomOpts)
import Concourse
exposing
( Causality
, CausalityBuild
, CausalityDirection(..)
, CausalityJob
, CausalityResourc... | Elm | 5 | Caprowni/concourse | web/elm/tests/CausalityTest.elm | [
"Apache-2.0"
] |
(* Parsing /etc/hosts *)
module Hosts =
autoload xfm
let sep_tab = Util.del_ws_tab
let sep_spc = Util.del_ws_spc
let eol = del /[ \t]*\n/ "\n"
let indent = del /[ \t]*/ ""
let comment = Util.comment
let empty = [ del /[ \t]*#?[ \t]*\n/ "\n" ]
let word = /[^# \n\t]+/
let record = [ seq "host" . ... | Augeas | 4 | mcarbonneaux/php-augeas | tests/loadpath/hosts.aug | [
"PHP-3.01"
] |
# XCB_UTIL_M4_WITH_INCLUDE_PATH
# ------------------------------
#
# This macro attempts to locate an m4 macro processor which supports
# -I option and is only useful for modules relying on M4 in order to
# expand macros in source code files.
#
# M4: variable holding the path to an usable m4 program.
#
# This macro re... | M4 | 4 | collinwright/nixpkgs | pkgs/development/libraries/xcb-util-cursor/m4/xcb_util_m4_with_include_path.m4 | [
"MIT"
] |
module.exports = 'react-dom';
| JavaScript | 1 | 1shenxi/webpack | test/configCases/entry/depend-on-simple/node_modules/react-dom.js | [
"MIT"
] |
#!/bin/bash
# Copyright 2015 gRPC 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 applicable law or agreed t... | Shell | 4 | samotarnik/grpc | tools/dockerfile/interoptest/grpc_interop_go1.8/build_interop.sh | [
"Apache-2.0"
] |
2016-03-19 12:53:19 > fsociety (whoami@localhost) has joined &##systemau
2016-03-19 12:53:19 - Channel &##systemau: 17 nicks (2 ops, 3 halfops, 10 voices, 2 normals)
2016-03-19 12:54:22 - Mode &##systemau [+v BliTz] by localhost
2016-03-19 12:54:56 < BliTz (76561197992831293@steam) has quit (Leaving...)
| IRC log | 0 | 0x4b1dN/2016-dots | misc/weechat/logs/irc.bitlbee.&##systemau.weechatlog | [
"MIT"
] |
#ifndef CONTAINERS_ARCHIVE_VERSIONED_HPP_
#define CONTAINERS_ARCHIVE_VERSIONED_HPP_
#include <functional>
#include "containers/archive/archive.hpp"
#include "version.hpp"
namespace archive_internal {
class bogus_made_up_type_t;
} // namespace archive_internal
// These are generally universal. They must not hav... | C++ | 4 | zadcha/rethinkdb | src/containers/archive/versioned.hpp | [
"Apache-2.0"
] |
<html>
<head>
<title>Error</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF">
<h2>An error has occurred.</h2>
<p><strong>Error Number:</strong> [Error_Code]<br>
<strong>Error Message:</strong> [Error_Msg]</p>
<p><strong>File Error:</strong> [File_CurrentEr... | Lasso | 2 | fourplusone/SubEthaEdit | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/error.lasso | [
"MIT"
] |
reset;
option randseed'';
option solver cplex;
######## Definition of Workload ##########
param N := 50; # number of columns
param Q := 10*N; # number of queries
param dd :=10; # scan costs main memory
param dr := 1; # scan costs second storage
para... | AMPL | 5 | hpi-epic/column_selection_example | column_selection_example.ampl | [
"MIT"
] |
/**
* ImmedLearner.x10
*
* Rudra Distributed Learning Platform
*
* Copyright (c) IBM Corporation 2016
* 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 co... | X10 | 5 | milthorpe/rudra | x10/src/rudra/ImmedLearner.x10 | [
"BSD-3-Clause"
] |
# Guide
This guide covers Koa topics that are not directly API related, such as best practices for writing middleware and application structure suggestions. In these examples we use async functions as middleware - you can also use commonFunction or generatorFunction which will be a little different.
## Table of Co... | Markdown | 5 | VBetsun/koa | docs/guide.md | [
"MIT"
] |
include "stdio.sl";
include "sys.sl";
# TODO: [bug] suport numbers > 16-bit
var showstat = func(name) {
var statbuf = [0,0,0,0];
var n = stat(name, statbuf);
if (n < 0) {
fprintf(2, "stat: %s: %s\n", [name, strerror(n)]);
return 0;
};
var typch = 'f';
if (*statbuf == 0) typch ... | Slash | 4 | jes/scamp-cpu | sys/stat.sl | [
"Unlicense"
] |
[Desktop Entry]
Name=Raiden
Version=XXVERSIONXX
Exec=raiden
Icon=raiden
Type=Application
StartupNotify=true
| desktop | 2 | karlb/raiden | docker/raiden.desktop | [
"MIT"
] |
-- test for misc functions
-- typeof
select typeof(null);
select typeof(true);
select typeof(1Y), typeof(1S), typeof(1), typeof(1L);
select typeof(cast(1.0 as float)), typeof(1.0D), typeof(1.2);
select typeof(date '1986-05-23'), typeof(timestamp '1986-05-23'), typeof(interval '23 days');
select typeof(x'ABCD'), typeo... | SQL | 4 | kesavanvt/spark | sql/core/src/test/resources/sql-tests/inputs/misc-functions.sql | [
"BSD-2-Clause",
"Apache-2.0",
"CC0-1.0",
"MIT",
"MIT-0",
"ECL-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
% A simple Hello Git implemented in MatLab
% also has a weird syntax
% or a very simple one
x = 'Hello Git'
disp(x) % ouputs Hello Git
% Going with the OOP style
classdef hello
methods
function greet(this)
disp('Hello Git')
end
end
end
| Matlab | 4 | bones97/Prog_langSyntax | Matlab.matlab | [
"Apache-2.0"
] |
FROM mhart/alpine-node:12
COPY . .
EXPOSE 8095
RUN yarn
RUN yarn build
CMD ["yarn", "start"]
| Dockerfile | 4 | ahmadiqbal1/vuetify | Dockerfile | [
"MIT"
] |
/*
* Copyright 2012-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Java | 5 | techAi007/spring-boot | spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/AutoConfigurationPackagesTests.java | [
"Apache-2.0"
] |
--TEST--
bcpow() does not support exponents >= 2**63
--EXTENSIONS--
bcmath
--FILE--
<?php
try {
var_dump(bcpow('0', '9223372036854775808', 2));
} catch (\ValueError $e) {
echo $e->getMessage() . \PHP_EOL;
}
?>
--EXPECT--
bcpow(): Argument #2 ($exponent) is too large
| PHP | 3 | NathanFreeman/php-src | ext/bcmath/tests/bcpow_error2.phpt | [
"PHP-3.01"
] |
insert into book values(1, 'The Tartar Steppe');
insert into book values(2, 'Poem Strip');
insert into book values(3, 'Restless Nights: Selected Stories of Dino Buzzati'); | SQL | 3 | DBatOWL/tutorials | persistence-modules/spring-boot-persistence/src/test/resources/import_books.sql | [
"MIT"
] |
<%--
Copyright 2012 Netflix, Inc.
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 agree... | Groovy Server Pages | 3 | Threadless/asgard | grails-app/views/alarm/show.gsp | [
"Apache-2.0"
] |
// all of these are valid
var x: any;
var a: number = x;
var b: boolean = x;
var c: string = x;
var d: void = x;
var e = null;
e = x;
var f = undefined;
f = x;
enum E {
A
}
var g: E = x;
var g2 = E.A;
g2 = x;
class C {
foo: string;
}
var h: C = x;
interface I {
foo: string... | TypeScript | 3 | nilamjadhav/TypeScript | tests/cases/conformance/types/any/assignAnyToEveryType.ts | [
"Apache-2.0"
] |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// #docregion Reactive
import {Component} from '@angular/core';
import {FormControl, FormGroup} from '@angular/forms'... | TypeScript | 4 | raghavendramohan/angular | packages/examples/forms/ts/reactiveRadioButtons/reactive_radio_button_example.ts | [
"MIT"
] |
#version 120
// Input vertex attributes (from vertex shader)
varying vec2 fragTexCoord;
varying vec4 fragColor;
// Input uniform values
uniform sampler2D texture0;
uniform vec4 colDiffuse;
// NOTE: Add here your custom variables
uniform vec2 resolution = vec2(800, 450);
void main()
{
// Texel color fetching fro... | F# | 4 | chrisws/raylib | examples/shaders/resources/shaders/glsl120/base.fs | [
"Zlib"
] |
extends RigidBody2D
var _picked = false
var _last_mouse_pos = Vector2.ZERO
func _ready():
input_pickable = true
func _input(event):
var mouse_event = event as InputEventMouseButton
if mouse_event and not mouse_event.pressed:
_picked = false
func _input_event(_viewport, event, _shape_idx):
var mouse_event ... | GDScript | 4 | jonbonazza/godot-demo-projects | 2d/physics_tests/utils/rigidbody_pick.gd | [
"MIT"
] |
(assert (str.suffixof "def" "abcdef"))
(check-sat)
| SMT | 3 | mauguignard/cbmc | regression/smt2_strings/suffixof_const_sat/suffixof_const_sat.smt2 | [
"BSD-4-Clause"
] |
%YAML 1.1
# ROS Dockerfile database
---
images:
ros-core:
base_image: @(os_name):@(os_code_name)
maintainer_name: @(maintainer_name)
template_name: docker_images/create_ros_core_image.Dockerfile.em
entrypoint_name: docker_images/ros_entrypoint.sh
template_packages:
... | EmberScript | 3 | christophebedard/docker_images-1 | ros/noetic/ubuntu/focal/images.yaml.em | [
"Apache-2.0"
] |
/*************************************************************************
* *
* YAP Prolog *
* *
* Yap Prolog was developed at NCCUP - Universidade do Porto *
* *
* Copyright L.Damas, V.S.Costa and Universidade do Porto 1985-1997 *
* *
************************************... | Prolog | 5 | KuroLevin/yap-6.3 | pl/callcount.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
exec("swigtest.start", -1);
// TODO: add tests here
exec("swigtest.quit", -1);
| Scilab | 1 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/allowexcept_runme.sci | [
"BSD-3-Clause"
] |
> v
v <
~ @
>:25*3*2+`!|
^ v\!`*9*52::>::25*2+25**2+`!\v
>25*6*4+`*v *`+6*9*52 <
, !
^ _v
^ -+2*3*52<
| Befunge | 0 | SuprDewd/BefungeSimulator | befunge_code/codeforces_130/g.befunge | [
"MIT"
] |
insert into tc values (24, '047d33e1', 6258079592828397861);
insert into tc values (23, '2243ea6f', 7088347479672485798);
insert into tc values (23, 'cea49f09', 8001462897050647577);
insert into tc values (23, 'e006730c', 7519413717684482848);
insert into tc values (22, '4f5ef461', 5346582882338619316);
insert into tc ... | SQL | 0 | cuishuang/tidb | br/tests/lightning_duplicate_detection/data/dup_detect.tc.1.sql | [
"Apache-2.0"
] |
<http://a.example/s> <http://a.example/p> _:a·̀ͯ‿.⁀ .
| Turtle | 0 | joshrose/audacity | lib-src/lv2/serd/tests/TurtleTests/labeled_blank_node_with_non_leading_extras.ttl | [
"CC-BY-3.0"
] |
-include ../../run-make-fulldeps/tools.mk
ifeq ($(TARGET),wasm32-unknown-unknown)
all:
$(RUSTC) foo.rs -C lto -O --target wasm32-unknown-unknown
wc -c < $(TMPDIR)/foo.wasm
[ "`wc -c < $(TMPDIR)/foo.wasm`" -lt "25000" ]
else
all:
endif
| Makefile | 3 | Eric-Arellano/rust | src/test/run-make/wasm-stringify-ints-small/Makefile | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#
# Copyright 2013 (c) Pointwise, Inc.
# All rights reserved.
#
# This sample script is not supported by Pointwise, Inc.
# It is provided freely for demonstration purposes only.
# SEE THE WARRANTY DISCLAIMER AT THE BOTTOM OF THIS FILE.
#
if { ![namespace exists pwio] } {
package require PWI_Glyph
#puts "pwio scriptd... | Glyph | 4 | smola/language-dataset | data/github.com/pointwise/GridCoordEnum/3807bade6eff04871e489562ae8587f59eb7de97/pwio.glf | [
"MIT"
] |
# Platform-specific build configurations.
"""
TF profiler build macros for use in OSS.
"""
load("//tensorflow:tensorflow.bzl", "cc_header_only_library")
def tf_profiler_alias(target_dir, name):
return target_dir + "oss:" + name
def tf_profiler_pybind_cc_library_wrapper(name, actual, **kwargs):
"""Wrapper for... | Python | 4 | EricRemmerswaal/tensorflow | tensorflow/core/profiler/builds/oss/build_config.bzl | [
"Apache-2.0"
] |
name: hol-compatibility
version: 1.0
description: Interface between OpenTheory Standard Library and HOL4
author: Ramana Kumar <ramana@member.fsf.org>
license: GPL
requires: base
show: "Data.Bool"
bool {
package: hol-bool-1.0
}
sat {
import: bool
package: hol-sat-1.0
}
combin {
import: bool
package: hol-combin... | Isabelle | 3 | dwRchyngqxs/HOL | src/opentheory/compat/hol-compatibility.thy | [
"BSD-3-Clause"
] |
/*
* myname2.lex : A sample Flex program
* that does token replacement.
*/
%{
#include <stdio.h>
%}
%x STRING
%%
\" ECHO; BEGIN(STRING);
<STRING>[^\"\n]* ECHO;
<STRING>\" ECHO; BEGIN(INITIAL);
%NAME { printf("%s",getenv("LOGNAME")); }
%HOST { pri... | Lex | 4 | DemiMarie/flex | examples/manual/myname2.lex | [
"BSD-4-Clause-UC"
] |
This category provides data and a methodology for the measurement and monitoring of greenhouse gas emissions resulting from the production of nitric acid (HNO,,3,,). The methodology is sourced from the WRI Greenhouse Gas protocol [[http://www.ghgprotocol.org/calculation-tools/all-tools|worksheets]] but ultimately fo... | Creole | 0 | OpenAMEE/datasets | business/processes/production/nitricAcid/documentation.creole | [
"MIT"
] |
// Copyright 2021 The Google Research 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 applicable law... | C | 4 | xxdreck/google-research | scann/scann/utils/intrinsics/horizontal_sum.h | [
"Apache-2.0"
] |
(defun starts-with (search-in search-for)
"Determine whether `str` starts with `search-for`"
(declare (string search-in)
(string search-for))
(and (<= (length search-for) (length search-in))
(string= search-in search-for :end1 (length search-for))))
| Common Lisp | 4 | xsoheilalizadeh/FrameworkBenchmarks | frameworks/Lisp/woo/helpers/starts-with.lisp | [
"BSD-3-Clause"
] |
// Error for construct signature overloads to differ only by return type
class C {
constructor(x: number) { }
}
class C2<T> {
constructor(x: T, y?: string) { }
}
interface I {
new(x: number, y: string): C;
new(x: number, y: string): C2<number>; // error
}
interface I2<T> {
new (x... | TypeScript | 4 | nilamjadhav/TypeScript | tests/cases/conformance/types/objectTypeLiteral/constructSignatures/constructSignaturesWithOverloadsThatDifferOnlyByReturnType.ts | [
"Apache-2.0"
] |
/******************************************************************************
* Copyright 2017 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++ | 5 | seeclong/apollo | modules/common/math/linear_interpolation.cc | [
"Apache-2.0"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_onSpeakVolumeModifierPressed
Author: ACyprus
Transiently changes the volume for the player's voice in game to either Yelling or Whisper
Arguments:
0: Volume level : VALUES ("yelling" or "whispering") <STRING>
Return Value:
Whether or not the even... | SQF | 5 | MrDj200/task-force-arma-3-radio | addons/core/functions/events/keys/fnc_onSpeakVolumeModifierPressed.sqf | [
"RSA-MD"
] |
package restful
import "strings"
// Copyright 2013 Ernest Micklei. All rights reserved.
// Use of this source code is governed by a license
// that can be found in the LICENSE file.
// OPTIONSFilter is a filter function that inspects the Http Request for the OPTIONS method
// and provides the response with a set of ... | Go | 4 | pkoushik/ARO-RP | vendor/github.com/emicklei/go-restful/options_filter.go | [
"Apache-2.0"
] |
-- Copyright 2014-2015 The Howl Developers
-- License: MIT (see LICENSE.md at the top-level directory of the distribution)
require 'ljglibs.gio.output_stream'
core = require 'ljglibs.core'
core.define 'GFileOutputStream < GOutputStream', {
}
| MoonScript | 4 | felipetavares/folt-howl | lib/ljglibs/gio/file_output_stream.moon | [
"MIT"
] |
#version 3.6;
#include "colors.inc"
#include "metals.inc"
#include "textures.inc"
camera {
location <0,-50,15>
sky z
right -0.25*x*image_width/image_height
up 0.25*y
look_at <0,0,0>
}
background{rgb 1}
light_source{<-16,-30,30> color rgb <0.77,0.75,0.75>}
light_source{<25,-16,8> color rgb <0.43,0.45,0.45>}
#de... | POV-Ray SDL | 4 | wgq-iapcm/Parvoro- | 3rdparty/voro++-0.4.6/examples/extra/irregular.pov | [
"BSD-3-Clause"
] |
unit
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% MenuBarClass - Class that implements menus in OOT.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The external interface of MenuBarClass empty. The MenuBarClass should not
% be used directly b... | Turing | 5 | ttracx/OpenTuring | turing/test/support/lib/GUIClass/MenuBarClass.tu | [
"MIT"
] |
package com.baeldung.xmlhtml.pojo.jaxb.html.elements;
import javax.xml.bind.annotation.XmlElement;
public class NestedElement {
private CustomElement customElement;
public CustomElement getCustomElement() {
return customElement;
}
@XmlElement(name = "p")
public void setCustomElement(Cus... | Java | 4 | DBatOWL/tutorials | xml/src/main/java/com/baeldung/xmlhtml/pojo/jaxb/html/elements/NestedElement.java | [
"MIT"
] |
use inner::Trait;
mod inner {
pub struct Foo;
pub trait Trait {
fn f(&self);
fn f_ufcs(&self);
}
impl Trait for Foo {
fn f(&self) { }
fn f_ufcs(&self) { }
}
}
pub trait Outer {
fn foo<T: Trait>(&self, t: T) { t.f(); }
fn foo_ufcs<T: Trait>(&self, t: T) { T:... | Rust | 4 | Eric-Arellano/rust | src/test/ui/issues/auxiliary/issue-11225-2.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
export default function AboutBypass({ message }) {
return (
<div>
<h1 className="title">About Bypassed Page</h1>
<p className={message}>{message}</p>
</div>
)
}
export const getServerSideProps = ({ query }) => ({
props: { message: query.message || '' },
})
| JavaScript | 4 | blomqma/next.js | test/integration/middleware/core/pages/rewrites/about-bypass.js | [
"MIT"
] |
// (c) Copyright 1995-2017 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 | 3 | mrDrivingDuck/mips32-CPU | soc/rtl/xilinx_ip/ahblite_axi_bridge_0/ahblite_axi_bridge_0.veo | [
"MIT"
] |
DefaultBehavior FlowControl tap = dmacro("takes one or two arguments that represent code. Will yield the receiver and then return the receiver after executing the given code",
[code]
code evaluateOn(call ground, self)
self,
[argName, code]
LexicalBlock createFrom(list(argName, code), call ground) call(self)... | Ioke | 4 | olabini/ioke | src/builtin/O05_misc.ik | [
"ICU",
"MIT"
] |
#Signature file v4.1
#Version 1.36
| Standard ML | 0 | timfel/netbeans | platform/libs.osgi/nbproject/org-netbeans-libs-osgi.sig | [
"Apache-2.0"
] |
# this file and {QtAssistant, QAssistantClient} were copied from the
# Qt 4.6.3 source code, directory "include/QtAssistant". This file
# was modified so that the Q* headers are located in the same
# directory as this file.
SYNCQT.HEADER_FILES = ../../qassistantclient.h ../../qassistantclient_global.h QtAssistant
SY... | QMake | 2 | davidlrichmond/macports-ports | devel/qt-assistant/files/headers.pri | [
"BSD-3-Clause"
] |
/*
examples for shared and unshared, global and static data in UPC
Liao, 7/7/2008
*/
/* ---------- unshared data (TLD)--------------------------*/
/*Unshared global variables , with extern */
extern int quux;
/*unshared global variables: scalar, array, w or w/o initializer */
int counter;
int counter2 = 100;
double m... | Unified Parallel C | 4 | maurizioabba/rose | tests/CompileTests/UPC_tests/shared.upc | [
"BSD-3-Clause"
] |
/**
Copyright 2015 Acacia Team
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 agreed to in writing, software
di... | X10 | 3 | mdherath/Acacia | src/org/acacia/localstore/AcaciaLocalStore.x10 | [
"Apache-2.0"
] |
CREATE DATABASE `fail_fast`;
| SQL | 0 | WizardXiao/tidb | br/tests/lightning_fail_fast/data/fail_fast-schema-create.sql | [
"Apache-2.0"
] |
package com.baeldung.event.listener;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
@ComponentScan(basePackages = "com.baeldung.event.listener")
public class EventConfig {
}
| Java | 4 | DBatOWL/tutorials | spring-core/src/main/java/com/baeldung/event/listener/EventConfig.java | [
"MIT"
] |
header.home=Accueil!
helloMsg=Bonjour, bienvenue dans Ninja Framework! | INI | 1 | DBatOWL/tutorials | ninja/src/main/java/conf/messages_fr.properties | [
"MIT"
] |
"""Scaffold new integration."""
| Python | 0 | domwillcode/home-assistant | script/scaffold/__init__.py | [
"Apache-2.0"
] |
#N canvas 556 43 508 402 12;
#X obj 138 73 inlet~;
#X obj 229 74 inlet~;
#X obj 138 202 outlet~;
#X obj 212 202 outlet~;
#X obj 138 121 +~;
#X obj 211 119 -~;
#X obj 211 143 delwrite~ \$1 \$2;
#X obj 212 172 delread~ \$1 \$2;
#X text 45 20 This appears as an abstraction in patch G08.reverb.pd
;
#X text 34 256 This netw... | Pure Data | 4 | mcclure/pure-data | doc/3.audio.examples/reverb-echo.pd | [
"TCL"
] |
a {
background: url('
}
| Less | 0 | rakacreative/prettier | tests/misc/errors/less/open-sigle-quote.less | [
"MIT"
] |
#lang scribble/base
@(require
"defs.rkt"
"bib.rkt"
scribble/manual
scriblib/footnote
scriblib/figure
scribble-latex-utils/utils)
@title*{Olly - Ott-Like LibrarY}
All the previous extensions are features of existing proof assistants.
In this section we present Olly, a domain-specific language (DSL) for mode... | Racket | 5 | bluephoenix47/cic-redex | cur-paper/olly.scrbl | [
"BSD-2-Clause"
] |
public func overloaded() {}
| Swift | 1 | lwhsu/swift | test/attr/Inputs/warn_unqualified_access_other.swift | [
"Apache-2.0"
] |
// MIR for `add` before PreCodegen
fn add() -> u32 {
let mut _0: u32; // return place in scope 0 at $DIR/return_place.rs:5:13: 5:16
bb0: {
_0 = const 4_u32; // scope 0 at $DIR/return_place.rs:6:5: 6:10
return; // scope 0 at $DIR/retur... | Mirah | 4 | Eric-Arellano/rust | src/test/mir-opt/const_prop/return_place.add.PreCodegen.before.mir | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#!/bin/bash
# Redis is one of those servers which by default accept connections from
# everywhere. Luckily, homebrew and presumably debian come with sane defaults.
# However, they're located in different directories.
if [[ $(uname) = 'Darwin' ]]; then
echo "Running redis from Homebrew..."
redis-server /usr/loc... | Shell | 4 | cnheider/nylas-mail | packages/cloud-core/scripts/run-redis.sh | [
"MIT"
] |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE TypeApplications #-}
module Analysis.Effect.Store
( -- * Store effect
alloc
, (.=)
, fetch
, Store(..)
-- * Re-exports
, Algebra
, Has
, run
) where
import Analysis.Name
import Control.Effect.Labelled
import Data.... | Haskell | 4 | tabulon-ext/semantic | semantic-analysis/src/Analysis/Effect/Store.hs | [
"MIT"
] |
"""Tests for the APRS component."""
| Python | 0 | domwillcode/home-assistant | tests/components/aprs/__init__.py | [
"Apache-2.0"
] |
--TEST--
getprotobyname function basic test
--CREDITS--
edgarsandi - <edgar.r.sandi@gmail.com>
--SKIPIF--
<?php
if(in_array(PHP_OS_FAMILY, ['BSD', 'Darwin', 'Solaris', 'Linux'])){
if (!file_exists("/etc/protocols")) die("skip reason: missing /etc/protocols");
}
if (getenv('SKIP_MSAN')) die('skip msan missing interc... | PHP | 4 | NathanFreeman/php-src | ext/standard/tests/network/getprotobyname_basic.phpt | [
"PHP-3.01"
] |
&::2**\-.@
| Befunge | 0 | SuprDewd/BefungeSimulator | befunge_code/codeforces_130/a.befunge | [
"MIT"
] |
-- ==============================================================
-- RTL generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and OpenCL
-- Version: 2020.2
-- Copyright (C) 1986-2020 Xilinx, Inc. All Rights Reserved.
--
-- ===========================================================
library IEEE;
use IEEE.st... | VHDL | 3 | hito0512/Vitis-AI | Whole-App-Acceleration/apps/resnet50/build_flow/DPUCVDX8G_vck190/vck190_platform/hw/source/ip/isppipeline_accel/hdl/vhdl/xfExtractPixels.vhd | [
"Apache-2.0"
] |
primitive DoNotOptimise
"""
Contains functions preventing some compiler optimisations, namely dead code
removal. This is useful for benchmarking purposes.
"""
fun apply[A](obj: A) =>
"""
Prevent the compiler from optimising out obj and any computation it is
derived from. This doesn't prevent cons... | Pony | 4 | presidentbeef/ponyc | packages/builtin/do_not_optimise.pony | [
"BSD-2-Clause"
] |
#import <Foundation/NSObject.h>
@protocol ExceptionThrower
-(void)throwException;
@end;
@interface ExceptionThrowerManager : NSObject
+(void)throwExceptionWith:(id<ExceptionThrower>)thrower;
@end;
| C | 4 | Mu-L/kotlin | kotlin-native/backend.native/tests/interop/objc/tests/exceptions.h | [
"ECL-2.0",
"Apache-2.0"
] |
# Copyright 2017-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# Auto-Generated by cargo-ebuild 0.1.4
EAPI=6
CRATES="
bitflags-0.5.0
cbox-0.3.0
gcc-0.3.31
libc-0.2.14
llvm-alt-0.5.0
llvm-sys-0.3.0
semver-0.1.20
"
inherit cargo
DESCRIPTION="A wrapper for LLVM, a powerful ... | Gentoo Ebuild | 4 | gentoo/gentoo-rust | dev-util/llvm-alt/llvm-alt-0.5.0.ebuild | [
"BSD-3-Clause"
] |
#%RAML 1.0
title: Contiv
description: Contiv API Specification
version: v1
baseUri:
value: https://{serverfqdn}:10000/api/{version}
(rediractable): true
baseUriParameters:
serverfqdn:
type: string
protocols: [ HTTPS ]
mediaType: [ application/json ]
resourceTypes:
collection: !include netmaster/schemas/co... | RAML | 3 | sap-ariba/netplugin | contivmodel/spec/netmaster.raml | [
"Apache-2.0"
] |
export function getTypeByValue(value) {
const valueType = typeof value;
switch (valueType) {
case 'number':
if (Number.isNaN(value)) {
return 'NaN';
}
if (!Number.isFinite(value)) {
return 'Infinity';
}
if (value !== Math.floor(value)) {
return 'float';
... | JavaScript | 5 | good-gym/material-ui | packages/material-ui-utils/src/integerPropType.js | [
"MIT"
] |
CREATE TABLE t (key STRING, value STRING, ds STRING, hr INT) USING parquet
PARTITIONED BY (ds, hr);
INSERT INTO TABLE t PARTITION (ds='2017-08-01', hr=10)
VALUES ('k1', 100), ('k2', 200), ('k3', 300);
INSERT INTO TABLE t PARTITION (ds='2017-08-01', hr=11)
VALUES ('k1', 101), ('k2', 201), ('k3', 301), ('k4', 401);... | SQL | 4 | OlegPt/spark | sql/core/src/test/resources/sql-tests/inputs/describe-part-after-analyze.sql | [
"Apache-2.0"
] |
--TEST--
JIT ASSIGN: incorrect narrowing to double
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.protect_memory=1
--FILE--
<?php
function test(){
$x = (object)['x'=>0];
for($i=0;$i<10;$i++){
+$a;
$a=$x->x;
$a=7;
}
}
test()
?>
DONE
--EXPECTF--
... | PHP | 2 | NathanFreeman/php-src | ext/opcache/tests/jit/assign_047.phpt | [
"PHP-3.01"
] |
/**
* Lexical grammar for lexical grammar.
*
* The grammar is heavily based on the lexical grammar from Jison.
* https://raw.githubusercontent.com/zaach/lex-parser/master/lex.l
*/
{
macros: {
NAME: `[a-zA-Z_][a-zA-Z0-9_-]*`,
BR: `(?:\\r?\\n)`,
},
startConditions: {
indented: 0,
trail: 0,
... | Lex | 4 | ruby-on-rust/syntax | src/generated/lex.lex | [
"MIT"
] |
Red/System [
Title: "2d vector"
Author: "bitbegin"
File: %vector2d.reds
Note: "2d vector lib for image"
Tabs: 4
Rights: "Copyright (C) 2020 Red Foundation. All rights reserved."
License: {
Distributed under the Boost Software License, Version 1.0.
See https://github.com/red/red/blob/master/BSL-License.txt
... | Red | 5 | GalenIvanov/red | runtime/datatypes/vector2d.reds | [
"BSL-1.0",
"BSD-3-Clause"
] |
//-----------------------------------------
// Demo scene for some sci-fi props
// including buildings and flying vehicles
// -----------------------------------------
// Made for Persistence of vision 3.6
//==========================================
// Copyright 2004 Gilles Tran http://www.oyonale.com
// ---... | POV-Ray SDL | 5 | SDRausty/TermuxPovray | scifi/scifi_demo.pov | [
"Apache-2.0"
] |
<html>
<head>
<title>DropzoneJS Uploader</title>
<!-- 1 -->
<link href="/public/css/dropzone.css" type="text/css" rel="stylesheet" />
<!-- 2 -->
<script src="/public/js/dropzone.js"></script>
<!-- 4 -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
... | HTML | 4 | tamsanh/examples | tutorial/dropzonejs/src/views/upload.html | [
"MIT"
] |
-------------------------------------------------------------
--Copyright 2020 Science and Technologies Facilities Council
--Licensed under the MIT License
--Author Aidan Chalk, STFC Hartree Centre
import "regent"
require("defaults")
require("src/interactions/MinimalSPH/interactions")
require("src/interactions/Minima... | Rouge | 5 | stfc/RegentParticleDSL | src/interactions/MinimalSPH/program.rg | [
"MIT"
] |
-module(para2_adt).
%% More parameterized opaque types
-export_type([c1/0, c2/0]).
-export_type([ct1/0, ct2/0]).
-export_type([circ/1, circ/2]).
-export_type([un/2]).
-export([c1/0, c2/0, ct1/0, ct2/0, circ1/0, circ2/0, u1/0, u2/0]).
-opaque c1() :: c2().
-opaque c2() :: c1().
-spec c1() -> c1().
c1() ->
a... | Erlang | 4 | jjhoo/otp | lib/dialyzer/test/opaque_SUITE_data/src/para/para2_adt.erl | [
"Apache-2.0"
] |
"""
Test URLs for auth admins.
"""
from django.contrib import admin
from django.contrib.auth.admin import GroupAdmin, UserAdmin
from django.contrib.auth.models import Group, User
from django.contrib.auth.urls import urlpatterns
from django.urls import path
# Create a silo'd admin site for just the user/group admins.
... | Python | 4 | ni-ning/django | tests/auth_tests/urls_admin.py | [
"CNRI-Python-GPL-Compatible",
"BSD-3-Clause"
] |
/*++
Copyright (c) Microsoft Corporation
Licensed under the MIT license.
Module Name:
- DbcsAttribute.hpp
Abstract:
- helper class for storing double byte character set information about a cell in the output buffer.
Author(s):
- Austin Diviness (AustDi) 26-Jan-2018
Revision History:
--*/
#pragma on... | C++ | 5 | hessedoneen/terminal | src/buffer/out/DbcsAttribute.hpp | [
"MIT"
] |
Red [
Title: "Red case function test script"
Author: "Nenad Rakocevic & Peter W A Wood"
File: %case-test.red
Tabs: 4
Rights: "Copyright (C) 2011-2015, Red Foundation. All rights reserved."
License: "BSD-3 - https://github.com/red/red/blob/origin/BSD-3-License.txt"
]
#include %../../../quick-test/quick-te... | Red | 4 | 0xflotus/red | tests/source/units/case-test.red | [
"BSL-1.0",
"BSD-3-Clause"
] |
public shellcode08
public shellcode7
public shellcode03
public NtUserSetImeInfoEx
_TEXT SEGMENT
NtUserSetImeInfoEx PROC
mov r10,rcx;
mov eax,4871;
syscall;
ret;
NtUserSetImeInfoEx ENDP
shellcode08 PROC
mov rax, gs:[392];// Get nt!_KPCR.PcrbData.CurrentThread
mov rax, [rax + 104];// Get nt!... | Assembly | 3 | OsmanDere/metasploit-framework | external/source/exploits/CVE-2018-8120/CVE-2018-8120/shellcode.asm | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
Mozilla/5.0 (Linux; Android 5.0; LG-X170g Build/LRX21M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.83 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.0; LG-X170g Build/LRX21M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Mobile Safari/537.36
| Text | 0 | 5tr1x/SecLists | Fuzzing/User-Agents/operating-platform/lg-x170g.txt | [
"MIT"
] |
t ia2 -dzoom 0 1 400
| AGS Script | 0 | waltersgrey/autoexechack | photofov/NarrowFOV/autoexec.ash | [
"MIT"
] |
#include "caffe2/operators/async_net_barrier_op.h"
namespace caffe2 {
namespace {
std::pair<std::vector<DeviceOption>, std::vector<DeviceOption>>
asyncBarrierOpDevInfer(const OperatorDef& def) {
auto op_device =
def.has_device_option() ? def.device_option() : DeviceOption();
ArgumentHelper helper(def);
au... | C++ | 4 | Hacky-DH/pytorch | caffe2/operators/async_net_barrier_op.cc | [
"Intel"
] |
*> This file is part of GnuCOBOL.
*>
*> The GnuCOBOL compiler is free software: you can redistribute
*> it and/or modify it under the terms of the GNU General Public
*> License as published by the Free Software Foundation, either
*> version 3 of the License, or (at your option) ... | COBOL | 3 | 6un9-h0-Dan/cobaul | deps/gnucobol-2.2/tests/testsuite.src/numeric-dump.cob | [
"MIT"
] |
pub main
coginit(0, @entry, 0)
dat
org 0
entry
_toReal
mov arg02, imm_1199570944_
call #__system___float_mul
mov arg01, result1
mov arg02, #0
call #__system___float_tointeger
_toReal_ret
ret
__system___float_tointeger
mov __system___float_tointeger_r, arg02
mov __system___float_Unpack_s, arg01
shr __syste... | Parrot Assembly | 2 | archivest/spin2cpp | Test/Expect/stest247.pasm | [
"MIT"
] |
component{
public void function onRequest(required string targetPage) {
include arguments.targetPage;
return;
}
} | ColdFusion CFC | 1 | tonym128/CFLint | src/test/resources/com/cflint/tests/Parsing/include_96.cfc | [
"BSD-3-Clause"
] |
"""
Module for formatting output data in console (to string).
"""
from __future__ import annotations
from shutil import get_terminal_size
from typing import Iterable
import numpy as np
from pandas.io.formats.format import DataFrameFormatter
from pandas.io.formats.printing import pprint_thing
class StringFormatter:... | Python | 5 | 13rianlucero/CrabAgePrediction | crabageprediction/venv/Lib/site-packages/pandas/io/formats/string.py | [
"MIT"
] |
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
/* for Perl prior to v5.7.1 */
#ifndef SvUOK
# define SvUOK(sv) SvIOK_UV(sv)
#endif
double XS_BASE = 0;
double XS_BASE_LEN = 0;
MODULE = Math::BigInt::FastCalc PACKAGE = Math::BigInt::FastCalc
PROTOTYPES: DISABLE
###########################################... | XS | 5 | vlinhd11/vlinhd11-android-scripting | perl/src/ext/Math-BigInt-FastCalc/FastCalc.xs | [
"Apache-2.0"
] |
[package]
name = "cargo-test"
version = "0.1.0"
authors = ["josealbizures <albizures3601@gmail.com>"]
[dependencies]
[lib]
crate-type = ["cdylib"]
| TOML | 2 | johanberonius/parcel | packages/core/integration-tests/test/integration/rust-cargo/Cargo.toml | [
"MIT"
] |
sub Main()
mockComponentsHelper()
_brs_.resetMockComponent("ResetMocks_Testbed_2")
node = createObject("RoSGNode", "ResetMocks_Testbed")
node2 = createObject("RoSGNode", "ResetMocks_Testbed_2")
print node.foo ' => "fake testbed 1"
print node2.foo ' => "bar"
end sub
| Brightscript | 3 | lkipke/brs | test/e2e/resources/components/mocks/reset/resetMockComponent.brs | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.