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 |
|---|---|---|---|---|---|
<template>
<div class="a-child">Real child component</div>
</template>
<script>
export default {
data () {
return {}
}
}
</script>
| Vue | 4 | bkucera2/cypress | npm/vue/cypress/component/advanced/mocking-components/Child.vue | [
"MIT"
] |
Extension { #name : #ZnClient }
{ #category : #'*GToolkit-Extensions' }
ZnClient >> gtCurlFor: aView [
<gtView>
self request ifNil: [ ^ aView empty ].
self request requestLine ifNil: [ ^ aView empty ].
self request method ifNil: [ ^ aView empty ].
self request uri ifNil: [ ^ aView empty ].
^ aView textEditor... | Smalltalk | 4 | feenkcom/gtoolk | src/GToolkit-Extensions/ZnClient.extension.st | [
"MIT"
] |
string div(float a, float b) {
if (a == 0.0 || b == 0.0) {
return sprintf("% 8s", "-");
}
return sprintf("% 8.1f ", (1-a/b)*100);
}
float average(array(float|int) a) {
return `+(@a)/(float)sizeof(a);
}
array combine(mixed ... a) {
function f = a[-1];
a = a[..<1];
array ret = allocate(siz... | Pike | 5 | arneg/GJAlloc | perf/compare.pike | [
"BSD-3-Clause"
] |
SOURCES += \
$$PWD/dummyversioncontroller.cpp \
$$PWD/versioncontrollerserver.cpp \
$$PWD/dummyversioncontrollerfactory.cpp
HEADERS += \
$$PWD/iversioncontroller.h \
$$PWD/dummyversioncontroller.h \
$$PWD/versioncontrollerserver.h \
$$PWD/iversioncontrollerfactory.h \
$$PWD/dummyversion... | QMake | 2 | lizhyumzi/vnote | src/core/versioncontroller/versioncontroller.pri | [
"MIT"
] |
"""wsgiref -- a WSGI (PEP 3333) Reference Library
Current Contents:
* util -- Miscellaneous useful functions and wrappers
* headers -- Manage response headers
* handlers -- base classes for server/gateway implementations
* simple_server -- a simple BaseHTTPServer that supports WSGI
* validate -- validation wrappe... | Python | 3 | shawwn/cpython | Lib/wsgiref/__init__.py | [
"0BSD"
] |
<a href='#items/{{id}}'>Open Item Details</a>
<p>
<span>Item:</span>
<span>{{name}}</span>
</p>
| mupad | 2 | royriojas/buildfirst | ch07/05_backbone-routing/app/views/templates/item.mu | [
"MIT"
] |
package com.baeldung.mbassador;
public class Message {
}
| Java | 1 | zeesh49/tutorials | libraries/src/main/java/com/baeldung/mbassador/Message.java | [
"MIT"
] |
{% for service in services %}
/** Returns the {{ service.simpleName | capitalize }} instance. **/
val {{ imported("android.content.Context") }}.{{ service.simpleName }}: {{ imported(service.fqName) }}
get() = getSystemService(Context.{{ service.constantName }}) as {{ imported(service.fqName) }}
{% endfor %} | Twig | 4 | tobiasdubois/anko | anko/props/templates/services.twig | [
"Apache-2.0"
] |
FROM parrotsec/core
RUN DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true apt-get update && \
DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true apt-get dist-upgrade -y && \
DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true apt-get install --no-install-recommends aircrack-ng... | Parrot | 3 | trevorbryant/rfctf-container | contestant_containers/Dockerfile.parrot | [
"BSD-2-Clause"
] |
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
namespace Phalcon\Db;
/**
* Interface for Phalcon\Db\Index
*/
interface IndexInterfac... | Zephir | 4 | tidytrax/cphalcon | phalcon/Db/IndexInterface.zep | [
"BSD-3-Clause"
] |
nios_vga_test2.elf: file format elf32-littlenios2
nios_vga_test2.elf
architecture: nios2, flags 0x00000112:
EXEC_P, HAS_SYMS, D_PAGED
start address 0x080001b4
Program Header:
LOAD off 0x00001000 vaddr 0x08000000 paddr 0x08000000 align 2**12
filesz 0x00000020 memsz 0x00000020 flags r-x
LOAD off... | ObjDump | 4 | UCR-CS179-SUMMER2014/NES_FPGA | source/NES_FPGA/software/nios_vga_test2/nios_vga_test2.objdump | [
"MIT"
] |
_dry var
"oneart.wav" diskin 0.5 *
48 mtof 0.5 saw
53 mtof 0.5 saw +
58 mtof 0.5 saw +
60 mtof 0.5 saw +
-5 ampdb *
1.0 talkbox
_dry set
_dry get dup 0.97 10000 revsc + -20 ampdb * dcblk
_dry get 0.5 0.7 delay -6 ampdb * 1000 butlp +
_dry get +
| SourcePawn | 3 | brandenbyers/Sporth | examples/talkbox.sp | [
"MIT"
] |
class Mixin {
def mixin_method {
'mixed_in_found
}
}
class ClassWithMixin {
def normal_method {
'normal_found
}
}
class ClassWithNoMixin {
read_slots: ['foo, 'bar, 'baz]
write_slots: ['hello, 'world]
read_write_slots: ['oh, 'noes]
def normal_method {
'new_normal_found
}
}
class ClassWi... | Fancy | 5 | bakkdoor/fancy | tests/class.fy | [
"BSD-3-Clause"
] |
//
// MetalConvolution.metal
// MNN
//
// Created by MNN on 2018/08/22.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include <metal_stdlib>
#include "MetalConvolutionActivation.metal"
using namespace metal;
using namespace MNN;
#define CONV_UNROLL (4)
#define CONV_MUL_PACK_W2(x,y) \
x += FLOAT4(i... | Metal | 4 | Napoleon-Jm/MNN | source/backend/metal/MetalConvolution.metal | [
"Apache-2.0"
] |
/*
* Copyright (C) 1995, 1996 Systemics Ltd (http://www.systemics.com/)
* All rights reserved.
*/
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#include "des.h"
MODULE = Crypt::DES PACKAGE = Crypt::DES PREFIX = des_
PROTOTYPES: DISABLE
char *
des_expand_key(key)
char * key = NO_INIT
STRLEN key_len ... | XS | 4 | dendisuhubdy/grokmachine | Encryption/Cryptix-1.16/Crypt-DES/DES.xs | [
"BSD-3-Clause"
] |
/// <reference path="fourslash.ts" />
//// class D { }
//// D();
var funcDecl = 'declare function D();';
goTo.bof();
edit.insert(funcDecl);
goTo.bof();
edit.deleteAtCaret(funcDecl.length);
| TypeScript | 2 | nilamjadhav/TypeScript | tests/cases/fourslash/toggleDuplicateFunctionDeclaration.ts | [
"Apache-2.0"
] |
(set-info :smt-lib-version 2.6)
(set-logic QF_UF)
(set-info :source |
Generated by: Aman Goel (amangoel@umich.edu), Karem A. Sakallah (karem@umich.edu)
Generated on: 2018-04-06
Generated by the tool Averroes 2 (successor of [1]) which implements safety property
verification on hardware systems.
This SMT problem belon... | SMT | 3 | livinlife6751/infer | sledge/test/smt/QF_UF/2018-Goel-hwbench/QF_UF_bug-1_ab_cti_max.smt2 | [
"MIT"
] |
.eventlog {
height: 200px;
flex: 0 0 auto;
display: flex;
flex-direction: column;
> div {
background-color: #F2F2F2;
padding: 0 5px;
flex: 0 0 auto;
border-top: 1px solid #aaa;
cursor: row-resize;
}
> pre {
flex: 1 1 auto;
margin: ... | Less | 3 | 0x7c48/mitmproxy | web/src/css/eventlog.less | [
"MIT"
] |
{
"Version" : 0.2,
"ModuleName" : "extract",
"Options" : {
"Warnings" : "All",
"TargetType" : "Executable",
"TargetFileName" : "extract",
"LibraryDirs" : [
"../../ecere/obj/vanilla.$(PLATFORM)$(COMPILER_SUFFIX)",
"../../deps/zlib-1.2.8/obj/release.$(PLATFORM)$(COMPILER... | Ecere Projects | 2 | N-eil/ecere-sdk | ear/extract/extract.epj | [
"BSD-3-Clause"
] |
<!--- Remote Concurrency Check --->
<cfoutput>
<cfif eCheck.recordcount>
<div class="alert alert-danger">
<strong>Potential Clash!</strong>
<p>We've identified #eCheck.recordcount# event(s) which may clash with your selected time in that location:</p>
<ul>
<cfloop query="eCheck">
<li>#title# - (#_formatD... | ColdFusion | 4 | fintecheando/RoomBooking | views/bookings/check.cfm | [
"Apache-1.1"
] |
wire.cmi :
| D | 1 | leithaus/pi4u | Higher category models of the pi-calculus hctm/strid-0.1.0/src/._ncdi/wire.di | [
"CC0-1.0"
] |
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 20 20" height="20" viewBox="0 0 20 20" width="20"><g><rect fill="none" height="20" width="20"/></g><g><g><path d="M11.16,6c-0.13,0-0.26,0-0.39,0.02c-1.2,0.09-2.18,0.42-2.99,0.89l2.61,1.07c1.72,0.71,2.17,2.94,0.85,4.25 C10.75,12.73,10.08,13,9.39,13H4.12C... | SVG | 2 | mobiledesres/material-icons | svg/social/sports_motorsports/materialiconstwotone/20px.svg | [
"Apache-2.0"
] |
PREFIX ex: <http://example.org/ns#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?x
WHERE {
?x rdf:type ex:cType .
}
| SPARQL | 3 | yanaspaula/rdf4j | testsuites/sparql/src/main/resources/testcases-sparql-1.1-w3c/entailment/rdfs07.rq | [
"BSD-3-Clause"
] |
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/DOM/Element.h>
namespace Web::DOM {
NonnullRefPtr<Element> create_element(Document&, const FlyString& tag_name, const FlyString& namespace_);
}
| C | 4 | r00ster91/serenity | Userland/Libraries/LibWeb/DOM/ElementFactory.h | [
"BSD-2-Clause"
] |
=head1 NAME
SDL - Parrot extension for SDL bindings
=head1 SYNOPSIS
None.
You probably shouldn't use this library directly, unless you're writing your
own wrappers around the SDL NCI code or if you're calling the NCI functions
directly.
In that case, I'm perfectly happy saying "Hey buddy, you're on your own!"
=h... | Parrot Internal Representation | 5 | winnit-myself/Wifie | runtime/parrot/library/SDL.pir | [
"Artistic-2.0"
] |
(***********************************************************
Remote Procedure Call (Troubleshoot by calling functions)
************************************************************)
/*---------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2014 Alex McLa... | NetLinx | 5 | amclain/amx-lib-redis | integration/include/rpc.axi | [
"MIT"
] |
# flake8: noqa: F401
r"""
This file is in the process of migration to `torch/ao/quantization`, and
is kept here for compatibility while the migration process is ongoing.
If you are adding a new entry/functionality, please, add it to the
`torch/ao/quantization/quantize.py`, while adding an import statement
here.
"""
fr... | Python | 1 | xiaohanhuang/pytorch | torch/quantization/quantize.py | [
"Intel"
] |
#%RAML 0.8
title: Handling
baseUri: http://dddsample.marcusoncode.se/handling/{version}
version: v1
/incidents:
post:
description: Register a handling incident.
body:
application/json:
example: |
{
"completion_time": "0001-01-01T00:00:00Z",
"tracking_id": "... | RAML | 3 | joergmis/goddd | handling/docs/api.raml | [
"MIT"
] |
#!/usr/bin/Rscript --vanilla
#
# distrib.r:
# utility to plot distribution/density of a numeric data-set column
#
# Usage:
# distrib.r data_file ["optional chart title string"]
# where data_file contains the numeric vector, a number per line.
#
suppressPackageStartupMessages(library(ggplot2))
ratio = 1.618... | R | 4 | HollowMan6/vowpal_wabbit | demo/random-noise/distrib.r | [
"BSD-3-Clause"
] |
#!/bin/sh
objroot=$1
cat <<EOF
#ifndef JEMALLOC_H_
#define JEMALLOC_H_
#ifdef __cplusplus
extern "C" {
#endif
EOF
for hdr in jemalloc_defs.h jemalloc_rename.h jemalloc_macros.h \
jemalloc_protos.h jemalloc_typedefs.h jemalloc_mangle.h ; do
cat "${objroot}include/jemalloc/${hdr}" \
| grep -v 'Gene... | Shell | 4 | Mu-L/jemalloc | include/jemalloc/jemalloc.sh | [
"BSD-2-Clause"
] |
Unicode True
!define PRODUCT_NAME "KeeWeb"
!define PRODUCT_VERSION "${version}"
!define PRODUCT_PUBLISHER "KeeWeb"
!define PRODUCT_WEB_SITE "${homepage}"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!define PRODUCT_EXE "KeeWeb.e... | NSIS | 3 | MetaEngr/keeweb | package/nsis/defines.nsh | [
"Apache-2.0",
"MIT"
] |
111
0 -0.098094038114096
1 0.408027771026713
2 -0.00235400646170757
3 -0.0980999995894446
4 -2.14329491898238e-07
5 -2.14316886322245e-07
6 -0.098238694337703
7 0.0160546377637006
8 -5.21060356536526e-05
9 -0.0981
10 0
11 0
12 7.58440520457719e-06
13 -0.00113798172848282
14 -0.0980980964127637
15 0.000121794189665509
1... | IDL | 0 | ricortiz/OpenTissue | demos/data/dlm/111/b.dlm | [
"Zlib"
] |
At: "supply-02.hac":12:
parse error: syntax error
parser stacks:
state value
#STATE# (null)
#STATE# list<(root_item)>: (process-definition) ... [4:1--11:7]
#STATE# (id-expr): foo [12:1..3]
#STATE# . [12:4]
#STATE# ! [12:5]
in state #STATE#, possible rules are:
member_expr: id_expr '.' . ID (#RULE#)
acceptable tokens... | Bison | 1 | broken-wheel/hacktist | hackt_docker/hackt/test/parser/connect/supply-02.stderr.bison | [
"MIT"
] |
{% set result = 'Salt Rocks!' | hmac(shared_secret='topsecret', challenge_hmac='nMgLxwHPFyRgGfunkXXAI3Z/ZR4p5lmPTUjk2eGDqks=') %}
{% include 'jinja_filters/common.sls' %}
| SaltStack | 4 | byteskeptical/salt | tests/integration/files/file/base/jinja_filters/hashutils_hmac.sls | [
"Apache-2.0"
] |
#!/usr/bin/env bash
# Prints a nicely-formatted commit history.
# - Commits are grouped below their merge-commit.
# - Issue numbers are moved next to the commit-id.
#
# Parameters:
# $1 "since" commit
# $2 "inverse match" regex pattern
set -e
set -u
set -o pipefail
__SINCE=$1
__INVMATCH=$2
is_merge_co... | Shell | 4 | uga-rosa/neovim | scripts/git-log-pretty-since.sh | [
"Vim"
] |
global _start
%include "header.inc"
mov dword [esp], 0
mov dword [esp+4], 0
mov dword [esp+8], 0
mov dword [esp+12], 0
mov dword [esp+16], 0
mov dword [esp+20], 0
mov dword [esp+24], 0
mov dword [esp+28], 0
mov eax, 0
bts word [esp], ax
mov eax, -5
bts word [esp + 4], ... | Assembly | 3 | brenden7158/v86 | tests/nasm/bts-reg16.asm | [
"BSD-2-Clause"
] |
import { createMuiTheme, ThemeOptions, adaptV4Theme } from '@material-ui/core';
export const muiTheme = createMuiTheme();
export const muiTheme2 = createMuiTheme(adaptV4Theme({}));
| JavaScript | 3 | dany-freeman/material-ui | packages/mui-codemod/src/v5.0.0/adapter-v4.test/core-import.expected.js | [
"MIT"
] |
----------------------------------------------------------------------------------
-- Engineer: Mike Field <hamster@snap.net.nz>
--
-- Module Name: ethernet_extract_header - Behavioral
--
-- Description: Extract the Ethernet header fields
--
-------------------------------------------------------------------------... | VHDL | 5 | hamsternz/FPGA_Webserver | hdl/ethernet/ethernet_extract_header.vhd | [
"MIT"
] |
image from https://hub.docker.com/r/dweomer/atlassian-bamboo/
| DM | 3 | Praqma/staci | images/bamboo/README.dm | [
"MIT"
] |
(ns fw.test.whilst
(:require
[chai :refer [expect]]
[fw.lib.whilst :refer [whilst]]))
(defn ^:private delay
[lambda]
(set-timeout lambda (* (.random Math) 100)))
(suite :whilst
(fn []
(test :basic
(fn [done]
(let [count 0]
(whilst
(fn [next] (< count 5))
... | wisp | 5 | h2non/fw | test/whilst.wisp | [
"MIT"
] |
package com.baeldung.filterresponse.model;
import com.baeldung.filterresponse.controller.View;
import com.fasterxml.jackson.annotation.JsonView;
public class Item {
@JsonView(View.User.class)
private int id;
@JsonView(View.User.class)
private String name;
@JsonView(View.Admin.class)
private S... | Java | 4 | DBatOWL/tutorials | spring-security-modules/spring-security-core/src/main/java/com/baeldung/filterresponse/model/Item.java | [
"MIT"
] |
/proc/CreateDefaultInternalOrgans(var/mob/owner)
owner.organs += new /obj/item/organ/paired(owner, _left_side = TRUE, _organ_key = ORGAN_EYE, _limb_key = BP_HEAD, _max_damage = 20, _icon = 'icons/objects/items/organ/eyeball.dmi')
owner.organs += new /obj/item/organ/paired(owner, _left_side = FALSE, _organ_ke... | DM | 4 | BloodyMan/Antimonium | code/mobs/organs/_organ.dm | [
"CC-BY-4.0"
] |
package com.alibaba.json.bvt.issue_2300;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.JSONPath;
import junit.framework.TestCase;
public class Issue2306 extends TestCase {
public void test_for_issue() throws Exception {
JSONObject object = new JSONObject();
object.put("help_s... | Java | 4 | Czarek93/fastjson | src/test/java/com/alibaba/json/bvt/issue_2300/Issue2306.java | [
"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.
*/
#include <hermes/inspector/detail/CallbackOStream.h>
#include <memory>
#include <ostream>
#include <type_traits>
#include <vector>... | C++ | 5 | pdlanl/react-native | ReactCommon/hermes/inspector/detail/tests/CallbackOStreamTests.cpp | [
"CC-BY-4.0",
"MIT"
] |
import "ecere"
import "eda"
define ODBC = "ODBC";
| eC | 1 | N-eil/ecere-sdk | eda/drivers/ODBC.ec | [
"BSD-3-Clause"
] |
// A more complicated 3D shape in OpenSCAD
$fn=32;
difference() {
// main shape
union() {
translate( [ 0, 0, 2 ] ) cube( [ 15, 15, 4 ], center=true );
translate( [ 0, 0, 13 ] ) cylinder( h=25, r1=5, r2=3, center=true );
translate( [ 0, 0, 28 ] ) sphere( r=6 );
}
// hole through... | OpenSCAD | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/OpenSCAD/not_simple.scad | [
"MIT"
] |
-- (c) 2009 Rami Shashati under LGPL
concrete FoodsPor of Foods = open Prelude in {
flags coding=utf8;
lincat
Comment = {s : Str} ;
Quality = {s : Gender => Number => Str} ;
Kind = {s : Number => Str ; g : Gender} ;
Item = {s : Str ; n : Number ; g : Gender } ;
lin
Pred item quality =
{s = it... | Grammatical Framework | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Grammatical Framework/FoodsPor.gf | [
"MIT"
] |
module namespace d="de/bottlecaps/railroad/xq/disassemble.xq";
declare namespace svg="http://www.w3.org/2000/svg";
declare namespace xhtml="http://www.w3.org/1999/xhtml";
declare namespace xlink="http://www.w3.org/1999/xlink";
declare namespace xsl="http://www.w3.org/1999/XSL/Transform";
declare function d:file($name... | XQuery | 4 | bannmann/rr | src/main/resources/de/bottlecaps/railroad/xq/disassemble.xq | [
"Apache-2.0"
] |
spring.security.user.name=user
spring.security.user.password=password
spring.mongodb.embedded.version=3.5.5
| INI | 1 | techAi007/spring-boot | spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-session-webflux/src/main/resources/application.properties | [
"Apache-2.0"
] |
#!/bin/bash -e
SDK_DIR=$1
echo "OpenCV Android SDK path: ${SDK_DIR}"
ANDROID_HOME=${ANDROID_HOME:-${ANDROID_SDK_ROOT:-${ANDROID_SDK?Required ANDROID_HOME/ANDROID_SDK/ANDROID_SDK_ROOT}}}
ANDROID_NDK=${ANDROID_NDK_HOME-${ANDROID_NDK:-${NDKROOT?Required ANDROID_NDK_HOME/ANDROID_NDK/NDKROOT}}}
echo "Android SDK: ${ANDROI... | Shell | 4 | thisisgopalmandal/opencv | platforms/android/build-tests/test_gradle.sh | [
"BSD-3-Clause"
] |
library ieee;
use ieee.std_logic_1164.all;
entity test is
port(
clk : in std_logic;
d : in std_logic;
q : out std_logic);
end test;
architecture rtl of test is
begin
process (clk)
begin
if rising_edge(clk) then
q <= d;
end if;
end;
end rtl;
| VHDL | 4 | jmullercuber/atom-beautify | examples/nested-jsbeautifyrc/vhdl/expected/test.vhd | [
"MIT"
] |
var x = {};
var y = {foo: "bar"};
var a: object;
x = a;
y = a; // expect error
a = x;
a = y;
var n = 123;
var b = true;
var s = "fooo";
a = n; // expect error
a = b; // expect error
a = s; // expect error
n = a; // expect error
b = a; // expect error
s = a; // expect error
var numObj: Number = 1... | TypeScript | 3 | nilamjadhav/TypeScript | tests/cases/conformance/types/nonPrimitive/nonPrimitiveAssignError.ts | [
"Apache-2.0"
] |
note
description: "API tests for USER_API"
date: "$Date$"
revision: "$Revision$"
class USER_API_TEST
inherit
EQA_TEST_SET
feature -- Test routines
test_create_user
-- Create user
--
-- This can only be done by the logged in user.
local
... | Eiffel | 4 | MalcolmScoffable/openapi-generator | samples/client/petstore/eiffel/test/apis/user_api_test.e | [
"Apache-2.0"
] |
#!/usr/bin/env bash
set -e
cd $BUILD_STAGINGDIRECTORY
mkdir extraction
cd extraction
git clone --depth 1 https://github.com/microsoft/vscode-extension-telemetry.git
git clone --depth 1 https://github.com/microsoft/vscode-chrome-debug-core.git
git clone --depth 1 https://github.com/microsoft/vscode-node-debug2.git
git ... | Shell | 3 | sbj42/vscode | build/azure-pipelines/common/extract-telemetry.sh | [
"MIT"
] |
/*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
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... | ECL | 3 | miguelvazq/HPCC-Platform | ecl/regress/ebcdiccast.ecl | [
"Apache-2.0"
] |
package unit.issues;
private class V2 {
public var x:Float;
public var y:Float;
inline public function new(x, y) {
this.x = x;
this.y = y;
}
}
class Issue6711 extends unit.Test {
function test() {
eq("(0,1)(0,1)(0,1)", run());
}
inline static function getPos() : V2 {
return new V2(0, 1);
}
inline s... | Haxe | 4 | Alan-love/haxe | tests/unit/src/unit/issues/Issue6711.hx | [
"MIT"
] |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Tom Fifield <tom@tomfifield.net>, 2021
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-01-15 09:00+0100\n"
"PO-Revision-Date: 2021-04-11 13:16+0000\n"
"Last-Translator: Tom F... | Gettext Catalog | 2 | Joshua-Barawa/My-Photos | venv/lib/python3.8/site-packages/django/contrib/redirects/locale/en_AU/LC_MESSAGES/django.po | [
"PostgreSQL",
"Unlicense"
] |
0 code_t "proc*"
1 reg32_t "dword"
2 ptr(struct(0:ptr(struct(0:reg32_t,4:reg32_t,8:ptr(struct(0:reg32_t,4:reg32_t,8:ptr(TOP),12:ptr(TOP),16:reg32_t,20:array(uint32_t,15))),12:ptr(TOP),16:reg32_t,20:array(uint32_t,15))),4:ptr(struct(0:reg32_t,4:reg32_t,8:reg32_t,12:reg32_t,16:reg32_t,20:reg32_t,24:reg32_t,28:struct(0:re... | BlitzBasic | 0 | matt-noonan/retypd-data | data/simple_encoder.exe.decls | [
"MIT"
] |
.main-content {
display: flex;
flex-direction: column;
}
.rc-audit-empty {
padding: 1.5rem;
text-align: center;
}
.rc-select {
margin: 0.5rem 0;
}
.rc-audit-container {
overflow-y: scroll;
flex: 1 1 auto;
}
.rc-audit {
display: flex;
flex-direction: column;
flex: 1 1 100%;
}
.rc-audit-form {
display: f... | CSS | 3 | subramanir2143/Rocket.Chat | ee/app/auditing/client/index.css | [
"MIT"
] |
from fontTools.ttLib.tables import otTables as ot
from .table_builder import TableUnbuilder
def unbuildColrV1(layerV1List, baseGlyphV1List):
unbuilder = LayerV1ListUnbuilder(layerV1List.Paint)
return {
rec.BaseGlyph: unbuilder.unbuildPaint(rec.Paint)
for rec in baseGlyphV1List.BaseGlyphV1Recor... | Python | 4 | gregdavill/fonttools | Lib/fontTools/colorLib/unbuilder.py | [
"Apache-2.0",
"MIT"
] |
import Image from './dist/client/image'
export * from './dist/client/image'
export default Image
| TypeScript | 1 | blomqma/next.js | packages/next/image.d.ts | [
"MIT"
] |
$$ MODE TUSCRIPT
oldnumbers=newnumbers="",range=20
LOOP nr=1,#range
oldnumbers=APPEND(oldnumbers,nr)
ENDLOOP
PRINT "before ",oldnumbers
LOOP r=#range,1,-1
RANDNR=RANDOM_NUMBERS (1,#r,1)
shuffle=SELECT (oldnumbers,#randnr,oldnumbers)
newnumbers=APPEND(newnumbers,shuffle)
ENDLOOP
PRINT "after ",newnumbers
| Turing | 3 | LaudateCorpus1/RosettaCodeData | Task/Knuth-shuffle/TUSCRIPT/knuth-shuffle.tu | [
"Info-ZIP"
] |
# To build, run the following command from the top level project directory:
#
# docker build -f src/main/docker/Dockerfile .
FROM adoptopenjdk:11-jre-hotspot as builder
ARG JAR_FILE=target/*.jar
COPY ${JAR_FILE} application.jar
RUN java -Djarmode=layertools -jar application.jar extract
FROM adoptopenjdk:11-jre-hotspo... | Dockerfile | 4 | DBatOWL/tutorials | docker/docker-spring-boot/src/main/docker/Dockerfile | [
"MIT"
] |
[naughty..naughty]
| TOML | 3 | vanillajonathan/julia | stdlib/TOML/test/testfiles/invalid/empty-implicit-table.toml | [
"Zlib"
] |
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.158.0/containers/typescript-node/.devcontainer/base.Dockerfile
# [Choice] Node.js version: 14, 12, 10
ARG VARIANT="14-buster"
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0-${VARIANT}
# same package list from gith... | Dockerfile | 3 | Yongrui-Su/github1s | .devcontainer/Dockerfile | [
"MIT"
] |
"""Test helpers for Tibber."""
import pytest
from homeassistant.components.tibber.const import DOMAIN
from homeassistant.const import CONF_ACCESS_TOKEN
from tests.common import MockConfigEntry
@pytest.fixture
def config_entry(hass):
"""Tibber config entry."""
config_entry = MockConfigEntry(
domain=D... | Python | 4 | MrDelik/core | tests/components/tibber/conftest.py | [
"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 | abhaikollara/tensorflow | tensorflow/core/platform/default/mutex.cc | [
"Apache-2.0"
] |
REBOL [
Title: "Red/System compilation error test"
File: %comp-err-test.r
License: "BSD-3 - https://github.com/dockimbel/Red/blob/master/BSD-3-License.txt"
]
change-dir %../ ;; revert to tests/ dir (from runnable)
~~~start-file~~~ "comp-err"
--test-- "sample compilation error test"
--c... | R | 4 | 0xflotus/red | system/tests/source/compiler/comp-err-test.r | [
"BSL-1.0",
"BSD-3-Clause"
] |
{eq, q, StdIn, FileSystem} = require './_helpers'
{strict-equal: equal}:assert = require 'assert'
suite 'lib options' ->
data =
'function square(x) {\n'
' return x * x;\n'
'}\n'
results = [
'1:function square(##x#) {'
'2: return ##x# * x;'
'2: return x * ##x#;'
]
suite 'stdin' ->
... | LiveScript | 4 | GerHobbelt/grasp | test/lib-options.ls | [
"MIT"
] |
# Check the handling of commands which have changed.
# RUN: rm -rf %t.build
# RUN: mkdir -p %t.build
# RUN: cp %s %t.build/build.ninja
# RUN: echo input-1 > %t.build/input-1
# RUN: echo input-2 > %t.build/input-2
# RUN: echo "build output: CAT input-1 input-2" > %t.build/output-rule.ninja
# RUN: %{llbuild} ninja build... | Ninja | 4 | uraimo/swift-llbuild | tests/Ninja/Build/changed-commands.ninja | [
"Apache-2.0"
] |
{%- macro formRow(form, tag, attributes = '', col = 6) -%}
{%- set defaultClass = 'form-control ' -%}
{%- if attributes is iterable -%}
{%- for key, value in attributes -%}
{%- set attr[key] = value -%}
{%-endfor -%}
{%- else -%}
{%- set attr['class'] = defaultClass ~ at... | Volt | 3 | tidytrax/cphalcon | tests/_data/fixtures/views/macro/form_row.volt | [
"BSD-3-Clause"
] |
---
layout: post
title: "LiquidHaskell Caught Telling Lies!"
date: 2013-11-23 16:12
comments: true
external-url:
categories: termination
author: Ranjit Jhala, Niki Vazou
published: true
demo: TellingLies.hs
---
One crucial goal of a type system is to provide the guarantee,
memorably phrased by Milner as *well-typed ... | Literate Haskell | 5 | curiousleo/liquidhaskell | docs/blog/2013-11-23-telling_lies.lhs | [
"MIT",
"BSD-3-Clause"
] |
-@ var body: String
-@ var title : String = "Fuse Insight"
-@ var navigationBar : String = ""
-@ var head : String = ""
- response.setContentType("text/html")
-# Only include the console if it's available and the engine is in dev mode.
- val include_console = engine.isDevelopmentMode && engine.resourceLoader.exists("... | Scaml | 3 | rjakubco/fuse | sandbox/insight-maven-web/src/main/webapp/WEB-INF/scalate/layouts/default.scaml | [
"Apache-2.0"
] |
# SiEPIC EBeam PDK cross-section, based on ANT NanoSOI process
# https://www.appliednt.com/nanosoi/
# Mustafa Hammood mustafa@siepic.com
# input layers:
si = layer("1/0")
sietch1 = layer("11/0")
sietch2 = layer("12/0")
ml = layer("12/0")
mlopen = layer("13/0")
mh = layer("11/0")
# cross section calculations
# t... | XS | 4 | YixuanWUSTL/SiEPIC_EBeam_PDK | klayout_dot_config/tech/EBeam/pymacros/EBeam_ANT.xs | [
"MIT"
] |
#![crate_type = "lib"]
pub struct V<S>(S);
pub trait An {
type U;
}
pub trait F<A> {
}
impl<A: An> F<A> for V<<A as An>::U> {
}
| Rust | 3 | Eric-Arellano/rust | src/test/run-make-fulldeps/issues-41478-43796/a.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
=pod
=head1 NAME
DSA_dup_DH - create a DH structure out of DSA structure
=head1 SYNOPSIS
#include <openssl/dsa.h>
The following functions have been deprecated since OpenSSL 3.0, and can be
hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value,
see L<openssl_user_macros(7)>:
DH *DSA_dup... | Pod | 4 | lbbxsxlz/openssl | doc/man3/DSA_dup_DH.pod | [
"Apache-2.0"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z... | JavaScript | 3 | good-gym/material-ui | packages/material-ui-icons/lib/esm/PageviewRounded.js | [
"MIT"
] |
/* For list of changes made to the original C.g4 see C11Parser.g4.
Copyright (c) 2020 International Business Machines Corporation
Prepared by: Geert Janssen <geert@us.ibm.com>
*/
lexer grammar C11Tokens;
import C11_lexer_common;
//A.1.2 Keywords
Keyword
: AUTO | IF | UNSIGNED
| BREAK ... | ANTLR | 3 | yingkitw/Project_CodeNet | tools/spt-generator/src/com/ibm/ai4code/parser/c_multi/C11Tokens.g4 | [
"Apache-2.0"
] |
/*
* This file is part of the X10 project (http://x10-lang.org).
*
* This file is licensed to You under the Eclipse Public License (EPL);
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.opensource.org/licenses/eclipse-1.0.php
*
*... | X10 | 5 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/X10/KMeansSPMD.x10 | [
"MIT"
] |
/*
* Copyright (c) 2012 Martin Cerveny
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of cond... | nesC | 4 | tgtakaoka/tinyos-prod | apps/MHHello/MHHelloAppC.nc | [
"BSD-3-Clause"
] |
%%%
%%% Authors:
%%% Leif Kornstaedt <kornstae@ps.uni-sb.de>
%%% Ralf Scheidhauer <scheidhr@ps.uni-sb.de>
%%%
%%% Copyright:
%%% Leif Kornstaedt, 1997-2001
%%% Ralf Scheidhauer, 1997
%%%
%%% Last change:
%%% $Date$ by $Author$
%%% $Revision$
%%%
%%% This file is part of Mozart, an implementation of Oz 3:
%%... | Oz | 5 | Ahzed11/mozart2 | lib/compiler/Assembler.oz | [
"BSD-2-Clause"
] |
{
"tag_name": "v1.6.0",
"name": "The Zenobius release",
"draft": true,
"prerelease": false,
"body": $changelog
} | JSONiq | 1 | zwergziege/tlaplus | general/docs/changelogs/gh-1_6_0.jq | [
"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/contrib/localHistory/electron-sandbox/localHistoryCommands.ts | [
"MIT"
] |
@0x9ef128e10a8010b7;
struct Message
{
value @0 : UInt64;
list1 @1 : List(UInt64);
list2 @2 : List(List(List(UInt64)));
}
| Cap'n Proto | 3 | pdv-ru/ClickHouse | tests/queries/0_stateless/format_schemas/02030_capnp_lists.capnp | [
"Apache-2.0"
] |
using System;
namespace Ryujinx.Memory
{
public interface IWritableBlock
{
void Write(ulong va, ReadOnlySpan<byte> data);
void WriteUntracked(ulong va, ReadOnlySpan<byte> data) => Write(va, data);
}
}
| C# | 4 | BSoDGamingYT/Ryujinx | Ryujinx.Memory/IWritableBlock.cs | [
"MIT"
] |
module org-openroadm-physical-types {
namespace "http://org/openroadm/physical/types";
prefix org-openroadm-physical-types;
import org-openroadm-common-types {
prefix org-openroadm-common-types;
}
import ietf-yang-types {
prefix yang;
}
organization "Open ROADM MSA";
contact
"OpenROADM.org... | YANG | 4 | meodaiduoi/onos | models/openroadm/src/main/yang/org-openroadm-physical-types@2016-10-14.yang | [
"Apache-2.0"
] |
/******************************************************************************
* 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/brake_status__511_test.cc | [
"Apache-2.0"
] |
# a function returning (i + j) * -998
func $foo (
# var %i xxx,
var %i i32,
var %j i32) i32 {
return (
mul i32 (
add i32 ( dread i32 %i, dread i32 %j),
constval i32 -998))}
# EXEC: %irbuild Main.mpl
# EXEC: %irbuild Main.irb.mpl
# EXEC: %cmp Main.irb.mpl Main.irb.irb.mpl
| Maple | 3 | harmonyos-mirror/OpenArkCompiler-test | test/testsuite/irbuild_test/I0032-mapleall-irbuild-edge-first/Main.mpl | [
"MulanPSL-1.0"
] |
%%
%unicode 11.0
%public
%class UnicodeWordBreak_11_0
%type int
%standalone
%include ../../resources/common-unicode-all-enumerated-property-java
%%
<<EOF>> { printOutput(); return 1; }
\p{WordBreak:ALetter} { setCurCharPropertyValue("WordBreak:ALetter"); }
\p{WordBreak:CR} { setCurCharPropertyValue("WordBreak:CR")... | JFlex | 3 | Mivik/jflex | testsuite/testcases/src/test/cases/unicode-word-break/UnicodeWordBreak_11_0.flex | [
"BSD-3-Clause"
] |
ISpec do(
Condition = Ground Condition mimic
ExpectationNotMet = Condition mimic
ExamplePending = Condition mimic
UnhandledErrorCondition = Condition mimic
ExampleStarted = Condition mimic
ExamplePassed = Condition mimic
ExampleFailed = Condition mimic
)
| Ioke | 1 | olabini/ioke | lib/ioke/ispec/conditions.ik | [
"ICU",
"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 | trixiedev/vscode | src/vs/platform/configuration/test/common/policyConfiguration.test.ts | [
"MIT"
] |
union return {}
| Thrift | 0 | Jimexist/thrift | compiler/cpp/test/keyword-samples/union1_return.thrift | [
"Apache-2.0"
] |
(module
(type $0 (func (param i32) (result i32)))
(type $1 (func))
(type $2 (func (result i32)))
(import "env" "memory" (memory $0 0))
(data (global.get $gimport$2) "Hello, world\00\00\00\00\00\00\00\00\00\00\00\00")
(import "env" "__stack_pointer" (global $sp (mut i32)))
(import "env" "__indirect_function_table... | WebAssembly | 3 | phated/binaryen | test/lld/main_module.wat | [
"Apache-2.0"
] |
#tag Class
Protected Class TurnBasedMatchHelper
Inherits NSObject
#tag Method, Flags = &h1
Protected Sub Constructor()
dim selfRef as Ptr = Initialize(Allocate(TargetClass))
Super.Constructor(selfRef)
if dispatch = nil then dispatch = new xojo.Core.Dictionary
dispatch.Value(selfRef) = xojo.Core.WeakR... | Xojo | 3 | kingj5/iOSKit | Modules/GameKitFolder/TurnBasedMatchHelper.xojo_code | [
"MIT"
] |
<mat-form-field appearance="fill">
<mat-label>Favorite food</mat-label>
<mat-select>
<mat-option *ngFor="let food of foods" [value]="food.value">
{{food.viewValue}}
</mat-option>
</mat-select>
</mat-form-field>
| HTML | 3 | tungyingwaltz/components | src/components-examples/material/select/select-harness/select-harness-example.html | [
"MIT"
] |
@font-face
font-family: "Test"
src: url("./fonts/test.woff2") format("woff2")
.index
background: url("http://google.com")
| Stylus | 1 | johanberonius/parcel | packages/core/integration-tests/test/integration/stylus-url/index.styl | [
"MIT"
] |
module peg
import StdEnv
import Control.Applicative
import Control.Monad
import Data.Func
import Data.Functor
import Data.Maybe
import Data.Monoid
:: Position :== Char
Inv :== ' '
Emp :== '.'
Peg :== 'o'
:: Direction :== Int
N :== 0
E :== 1
S :== 2
W :== 3
:: Coord = {x :: !Int , y :: !Int}
:: Move = {... | Clean | 4 | ajnavarro/language-dataset | data/github.com/dopefishh/cleanpeg/5d548d628cace01760cbd6ca2aacb1f6d65afdde/peg.icl | [
"MIT"
] |
package org.springframework.test.context.web
beans { foo String, 'Groovy Foo' } | Groovy | 1 | nicchagil/spring-framework | spring-test/src/test/resources/org/springframework/test/context/web/BasicGroovyWacTestsContext.groovy | [
"Apache-2.0"
] |
(ns wisp.test.runtime
(:require [wisp.test.util :refer [is thrown?]]
[wisp.src.runtime :refer [dictionary? vector? iterable? set?
subs str and or = == not= > >= < <=
+ - / * quot mod rem rem* nan?]]
[wisp.src.sequence ... | wisp | 5 | rcarmo/wisp | test/runtime.wisp | [
"BSD-3-Clause"
] |
' 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.
Imports System.ComponentModel.Composition
Imports System.Threading
Imports Microsoft.CodeAnalysis.Editor.Implementatio... | Visual Basic | 5 | frandesc/roslyn | src/EditorFeatures/VisualBasic/AutomaticCompletion/AutomaticLineEnderCommandHandler.vb | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.