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 |
|---|---|---|---|---|---|
{* *! version 1.0.0 19mar2014}{...}
Hello world!{p_end}
| Stata | 0 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Stata/include.ihlp | [
"MIT"
] |
a { value: 10x\, } | CSS | 0 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/sPEO1vW1kIUNhCVdR2d7fg/input.css | [
"Apache-2.0"
] |
import os
import sys
import threading
import traceback
NLOOPS = 50
NTHREADS = 30
def t1():
try:
from concurrent.futures import ThreadPoolExecutor
except Exception:
traceback.print_exc()
os._exit(1)
def t2():
try:
from concurrent.futures.thread import ThreadPoolExecutor
... | Python | 3 | pxeger/cpython | Lib/test/test_importlib/partial/cfimport.py | [
"0BSD"
] |
# Check that the isolate option is adjusted by schedule space scaling
domain: "{ A[i,j] : 0 <= i,j < 100 }"
child:
schedule: "[{ A[i,j] -> [3i] }]"
child:
schedule: "[{ A[i,j] -> [3j] }]"
options: "{ isolate[[x] -> [y]] : 10 <= x <= 20 }"
| Smalltalk | 2 | chelini/isl-haystack | test_inputs/codegen/isolate2.st | [
"MIT"
] |
/*
* Copyright (c) 2021, Dex♪ <dexes.ttp@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/ByteBuffer.h>
#include <AK/Span.h>
#include <AK/String.h>
#include <LibCore/Object.h>
#include <LibTLS/TLSv12.h>
#include <LibWebSocket/ConnectionInfo.h>
#include <LibWebSocket/Impl/AbstractW... | C | 4 | r00ster91/serenity | Userland/Libraries/LibWebSocket/Impl/TLSv12WebSocketConnectionImpl.h | [
"BSD-2-Clause"
] |
theory SimpleWallet
imports "../Hoare/HoareTripleForInstructions2" "../Hoare/HoareTripleForLogGasCall"
begin
context
includes hoare_bundle hoare_inst_bundle
sep_crunch_bundle simp_for_triples_bundle
begin
(*
0: PUSH 0
2: SLOAD
3: CALLER
4: EQ
5: PUSH 9
7: JUMPI
8: STOP
9: JUMPDEST
PUSH 0
DUP1
DUP1
... | Isabelle | 5 | pirapira/eth-isabelle | example/SimpleWallet.thy | [
"Apache-2.0"
] |
{%- include 'partials/inputs.volt' -%}
{{ flashSession.output() }}
<div class="row">
<div class="col-sm-12">
<div class="card card-success">
<div class="card-header">
<h3 class="card-title">Run Migration</h3>
</div>
<div class="card-body">
... | Volt | 4 | PSD-Company/phalcon-devtools-docker | src/Web/Tools/Views/migrations/run.volt | [
"BSD-3-Clause"
] |
CREATE TABLE course (
id bigint(20) NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE student (
id bigint(20) NOT NULL,
PRIMARY KEY (id)
);
CREATE TABLE course_like (
student_id bigint(20) NOT NULL,
course_id bigint(20) NOT NULL,
PRIMARY KEY (student_id, course_id),
CONSTRAINT fk_course_like__student FOREI... | SQL | 4 | DBatOWL/tutorials | persistence-modules/spring-jpa-2/src/test/resources/manytomany/db.sql | [
"MIT"
] |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Scala | 5 | akhalymon-cv/spark | sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/LimitPushdownThroughWindowSuite.scala | [
"Apache-2.0"
] |
package com.baeldung.springevents.synchronous;
public class GenericSpringEvent<T> {
private final T what;
protected final boolean success;
public GenericSpringEvent(final T what, final boolean success) {
this.what = what;
this.success = success;
}
public T getWhat() {
ret... | Java | 4 | DBatOWL/tutorials | spring-core-2/src/main/java/com/baeldung/springevents/synchronous/GenericSpringEvent.java | [
"MIT"
] |
<form method='POST' action="{{postUrl}}">
{{{csrfTag}}}
{{#itemTable}}
{{>table}}
{{/itemTable}}
<div class="block">
<input class="button is-link" type="submit" value="Start selected tasks" name="startTaskButton"/>
</div>
</form> | HTML+Django | 3 | asahiocean/joplin | packages/server/src/views/admin/tasks.mustache | [
"MIT"
] |
/*
Copyright 2020 Scott Bezek and the splitflap contributors
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 app... | OpenSCAD | 5 | tomihbk/splitflap | 3d/shapes.scad | [
"Apache-2.0"
] |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... | Thrift | 4 | Jimexist/thrift | test/partial/thrift_test_schema.thrift | [
"Apache-2.0"
] |
untyped
global function SpawnFunctions_Init
function SpawnFunctions_Init()
{
if ( IsLobby() )
return
// shared OnSpawned callbacks
AddSpawnCallback( "script_mover", SpawnScriptMover )
AddSpawnCallback( "path_track", SpawnPathTrack )
AddSpawnCallback( "info_hint", SpawnInfoHint )
AddDeathCallback( "npc_t... | Squirrel | 4 | GeckoEidechse/NorthstarMods | Northstar.CustomServers/mod/scripts/vscripts/mp/_spawn_functions.nut | [
"MIT"
] |
#!/usr/bin/env bash
set -eou pipefail
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source "${DIR}/common_utils.sh"
# Allow for users to pass PACKAGE_NAME
# For use with other packages, i.e. torchvision, etc.
PACKAGE_NAME=${PACKAGE_NAME:-torch}
PACKAGE_TYPE=${PACKAGE_TYPE:-whl}
PYTORCH_S3_... | Shell | 4 | Hacky-DH/pytorch | scripts/release/promote/s3_to_s3.sh | [
"Intel"
] |
actor Echo {
// Say the given phase.
public query func say(phrase : Text) : async Text {
return phrase;
};
};
| Modelica | 4 | DaveSimplifire/examples | motoko/echo/src/Main.mo | [
"Apache-2.0"
] |
include "shared.thrift"
service PingService extends shared.NotExistService {
}
| Thrift | 3 | JonnoFTW/thriftpy2 | tests/parser-cases/e_service_extends_0.thrift | [
"MIT"
] |
--TEST--
Bug #69336 (Issues with "last day of <monthname>")
--INI--
date.timezone=UTC
--FILE--
<?php
var_dump(date('d.m.Y',strtotime('last day of april')));
var_dump(date('d.m.Y',strtotime('last tuesday of march 2015')));
var_dump(date('d.m.Y',strtotime('last wednesday of march 2015')));
var_dump(date('d.m.Y',strtotime... | PHP | 3 | thiagooak/php-src | ext/date/tests/bug69336.phpt | [
"PHP-3.01"
] |
from typing import List
from fastapi import FastAPI, WebSocket, WebSocketDisconnect
from fastapi.responses import HTMLResponse
app = FastAPI()
html = """
<!DOCTYPE html>
<html>
<head>
<title>Chat</title>
</head>
<body>
<h1>WebSocket Chat</h1>
<h2>Your ID: <span id="ws-id"></span><... | Python | 5 | Aryabhata-Rootspring/fastapi | docs_src/websockets/tutorial003.py | [
"MIT"
] |
-- Copyright 2017 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 to i... | C2hs Haskell | 5 | LaudateCorpus1/grpc-haskell | src/Network/Grpc/Lib/ByteBuffer.chs | [
"Apache-2.0"
] |
struct S(u8, u16);
type A = S;
fn main() {
let s = A(0, 1); //~ ERROR expected function
match s {
A(..) => {} //~ ERROR expected tuple struct or tuple variant
}
}
| Rust | 2 | Eric-Arellano/rust | src/test/ui/resolve/tuple-struct-alias.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
build obj/third_party/ffmpeg/libffmpeg_internal.a: alink obj/third_party/sub/fft_fixed.o obj/third_party/sub/fft_float.o | bar
build obj/third_party/WebKit.a: alink obj/third_party/sub/PaintChunker.o obj/third_party/sub/ContiguousContainer.o
build a b c d elf: link obj/base/base/page_allocator.o obj/third_party/WebKit.... | Ninja | 2 | zealoussnow/chromium | tools/binary_size/libsupersize/testdata/mock_source_directory/out/Release/sub.ninja | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
template(name="spinnerDot")
.sk-spinner.sk-spinner-dot(class=currentBoard.colorClass)
+spinnerDotRaw
template(name="spinnerDotRaw")
.sk-dot1
.sk-dot2
| Jade | 3 | UBessle/wekan | client/components/main/spinner_dot.jade | [
"MIT"
] |
<http://a.example/s> <http://a.example/p> """chat"""@en .
| Turtle | 0 | joshrose/audacity | lib-src/lv2/serd/tests/TurtleTests/langtagged_LONG.ttl | [
"CC-BY-3.0"
] |
foo {
color: red;
// Line comment
top: 0;
}
| CSS | 2 | mengxy/swc | crates/swc_css_parser/tests/line-comment/css-in-js/4/input.css | [
"Apache-2.0"
] |
<%@ page import="com.baeldung.patterns.intercepting.filter.data.Book" %>
<%@ page import="java.util.List" %>
<!DOCTYPE html>
<html>
<head>
<title>Bookshelf: Title found</title>
</head>
<body>
<p>Our Bookshelf contains following titles:</p>
<% for (Book book : (List<Book>) request.get... | Java Server Pages | 4 | zeesh49/tutorials | patterns/intercepting-filter/src/main/webapp/WEB-INF/jsp/book-found.jsp | [
"MIT"
] |
spacing {
a: url('./img.png');
}
spacing {
b: url("./img.png");
}
spacing {
c: url(./img.png);
}
spacing {
d: url("./img.png#hash");
}
spacing {
e: url(
"./img.png"
);
}
spacing {
f: green url( './img.png' ) xyz;
}
spacing {
g: green url( "./img.png" ) xyz;
}
spacing {
h: green url( ./img.p... | CSS | 3 | acidburn0zzz/webpack | test/configCases/css/urls/spacing.css | [
"MIT"
] |
$Title = $CmdLine[1]
$FileAbsPath = $CmdLine[2]
While 1
WinWaitActive($Title)
if WinExists($Title) Then
ControlGetFocus('$Title')
ControlClick($Title, '', '[CLASS:Edit;INSTANCE:1]')
While Not (ControlGetText($Title, '', '[CLASS:Edit;INSTANCE:1]') == $FileAbsPath)
ControlSetText($Title, '', '[CLASS:... | AutoIt | 3 | luluuuuuu/KAOSer-SeleniumTesr | src/main/resources/file_choose.au3 | [
"Apache-2.0"
] |
apiVersion: release-notes/v2
kind: feature
area: installation
# issue is a list of GitHub issues resolved in this note.
issue:
- https://github.com/istio/istio/issues/33879
releaseNotes:
- |
**Added** labels on pod level for istio-operator and istiod.
| YAML | 2 | rveerama1/istio | releasenotes/notes/33879.yaml | [
"Apache-2.0"
] |
An excerpt from [https://raw.github.com/jashkenas/coffee-script/master/src/scope.litcoffee]:
The **Scope** class regulates lexical scoping within CoffeeScript. As you
generate code, you create a tree of scopes in the same shape as the nested
function bodies. Each scope knows about the variables declared within it,
and... | Literate CoffeeScript | 5 | felipetavares/folt-howl | bundles/coffeescript/misc/example.litcoffee | [
"MIT"
] |
.pkg-lazy-css.imported {
padding: 20px;
}
.not-imported {
padding: 0px;
}
| CSS | 4 | joseconstela/meteor | tools/tests/apps/modules/packages/modules-test-package/css/imported.css | [
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] |
<h2>Hello!</h2>
<div>{% renderbody %}</div> | Liquid | 2 | ScriptBox99/FluentEmail | test/FluentEmail.Liquid.Tests/EmailTemplates/_embedded.liquid | [
"MIT"
] |
import * as React from 'react';
import { Theme } from '@mui/material/styles';
import Box from '@mui/material/Box';
import Switch from '@mui/material/Switch';
import Paper from '@mui/material/Paper';
import Slide from '@mui/material/Slide';
import FormControlLabel from '@mui/material/FormControlLabel';
const icon = (
... | TypeScript | 4 | dany-freeman/material-ui | docs/data/material/components/transitions/SlideFromContainer.tsx | [
"MIT"
] |
pragma solidity ^0.5.0;
import "../Chainlink.sol";
contract ChainlinkTestHelper {
using Chainlink for Chainlink.Request;
using CBOR_Chainlink for Buffer_Chainlink.buffer;
Chainlink.Request private req;
event RequestData(bytes payload);
function closeEvent() public {
emit RequestData(req.buf.buf);
}... | Solidity | 4 | johnnymugs/chainlink | evm-contracts/src/v0.5/tests/ChainlinkTestHelper.sol | [
"MIT"
] |
unit Msgs;
{
Inno Setup
Copyright (C) 1997-2007 Jordan Russell
Portions by Martijn Laan
For conditions of distribution and use, see LICENSE.TXT.
Message file handling functions
$jrsoftware: issrc/Projects/Msgs.pas,v 1.20 2009/03/23 13:31:17 mlaan Exp $
}
interface
uses
MsgIDs, Struct;... | Pascal | 4 | Patriccollu/issrc | Projects/Msgs.pas | [
"FSFAP"
] |
management.endpoints.web.exposure.include=refresh
spring.properties.refreshDelay=1000
spring.config.location=file:extra.properties
spring.main.allow-bean-definition-overriding=true
spring.config.import=classpath:additional-application.properties,classpath:additional-application[.yml],optional:file:./external.properties... | INI | 3 | DBatOWL/tutorials | spring-boot-modules/spring-boot-properties/src/test/resources/application.properties | [
"MIT"
] |
(ns lt.util.ipc
"Util functions for the ipc renderer - https://github.com/atom/electron/blob/master/docs/api/ipc-renderer.md")
(def ipc "Provides access to the ipc renderer." (.-ipcRenderer (js/require "electron")))
;; `send` and `on` are declared here with their bodies defined later as otherwise Codox will use the... | Clojure | 4 | joyskmathew/LightTable | src/lt/util/ipc.cljs | [
"MIT"
] |
module Language.PureScript.Constants.Data.Newtype where
import Prelude.Compat
import Language.PureScript.Names
pattern Newtype :: Qualified (ProperName 'ClassName)
pattern Newtype = Qualified (Just (ModuleName "Data.Newtype")) (ProperName "Newtype")
| Haskell | 4 | andys8/purescript | src/Language/PureScript/Constants/Data/Newtype.hs | [
"BSD-3-Clause"
] |
This directory contains test programs for the ML Kit. Many of the test
cases for the SML Basis Library have been borrowed from the Moscow ML
distribution.
The test is invoked with the `kittester' program located (after the
Kit is installed) in the kit/bin directory. (The sources for
`kittester' are available in the di... | Kit | 2 | shwestrick/mpl | regression/README.kit | [
"HPND"
] |
<% simple_files = @files.select { |f| f.text? } %>
<% unless simple_files.empty? then %>
<nav id="fileindex-section" class="section project-section">
<h3 class="section-header">Pages</h3>
<ul>
<% simple_files.each do |f| %>
<li class="file"><a href="<%= rel_prefix %>/<%= f.path %>"><%= h f.page_name %></a>
... | RHTML | 4 | coralnexus/rdoc-darkfish-template | _sidebar_pages.rhtml | [
"Apache-2.0"
] |
(*
Copyright 2016 Yoichi Hirai
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 wr... | Isabelle | 5 | pirapira/eth-isabelle | ContractSem.thy | [
"Apache-2.0"
] |
!define PROTOCOL_TCP 6
!define SCOPE_ALL_NETWORKS 0
!define IP_VERSION_IPV4_AND_IPV6 2
; the single quote around double quote is intentional. Some compiler weirdless!
!define REMOTE_ADDRESS_ALL '""'
!define FIREWALL_ENABLED_STATUS 1
Function "OpenFirewallPorts"
${LogText} "Opening firewall port 8153"
; SimpleFC::A... | NSIS | 4 | JeroenOortwijn/gocd | installers/windows/gocd-server-firewall-helpers.nsi | [
"Apache-2.0"
] |
<html>
<head>
<title>Layout</title>
</head>
<body>
<h1>This is the global layout</h1>
<br />
<!-- Render the current template here -->
{{ yield }}
</body>
</html>
| HTML | 4 | NeatNerdPrime/iris | _examples/view/template_html_2/templates/layouts/layout.html | [
"BSD-3-Clause"
] |
<p>Check that a hidden table within a hidden block results in a hidden block with a table inside.</p>
<div style="background-color:none;width:0;max-height:0;visibility:collapse;overflow:hidden;float:left;display:none;font-size:0;line-height:0;">
<table border="0" cellspacing="0" cellpadding="0" style="font-family:Helv... | HTML | 2 | asahiocean/joplin | packages/app-cli/tests/enex_to_md/invisible_text2.html | [
"MIT"
] |
#!/bin/bash -xe
YAML_FILENAME=$1
# Allows this script to be invoked from any directory:
cd $(dirname "$0")
pushd ..
TEMP_FILENAME=$(mktemp)
cat $YAML_FILENAME | ./codegen_validation/normalize_yaml_fragment.py > $TEMP_FILENAME
mv $TEMP_FILENAME $YAML_FILENAME
popd
| Shell | 3 | Hacky-DH/pytorch | .circleci/codegen_validation/overwrite_with_normalized.sh | [
"Intel"
] |
Red/System [
Title: "Red/System getting variable pointer test script"
Author: "Nenad Rakocevic"
File: %get-pointer-test.reds
Tabs: 4
Rights: "Copyright (C) 2011-2018 Red Foundation. All rights reserved."
License: "BSD-3 - https://github.com/red/red/blob/origin/BSD-3-License.txt"
]
#include %../../../../qu... | Red | 5 | 0xflotus/red | system/tests/source/units/get-pointer-test.reds | [
"BSL-1.0",
"BSD-3-Clause"
] |
fun test() = for () | Kotlin | 0 | qussarah/declare | compiler/testData/psi/recovery/ForWithoutBodyInEOF.kt | [
"Apache-2.0"
] |
3 dmetro 1000 2 500 line
0.1 sine
| SourcePawn | 0 | aleatoricforest/Sporth | examples/line.sp | [
"MIT"
] |
extends ScrollContainer
export(bool) var auto_scroll = false setget set_auto_scroll
func _ready():
var scrollbar = get_v_scrollbar()
scrollbar.connect("scrolling", self, "_on_scrolling")
func _process(_delta):
if auto_scroll:
var scrollbar = get_v_scrollbar()
scrollbar.value = scrollbar.max_value
func se... | GDScript | 4 | jonbonazza/godot-demo-projects | 2d/physics_tests/utils/scroll_log.gd | [
"MIT"
] |
tests/cases/compiler/noMappedGetSet.ts(2,9): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
tests/cases/compiler/noMappedGetSet.ts(2,10): error TS2304: Cannot find name 'K'.
tests/cases/compiler/noMappedGetSet.ts(2,15): error TS2304: Cannot find name 'WAT'.
==== te... | Text | 1 | monciego/TypeScript | tests/baselines/reference/noMappedGetSet.errors.txt | [
"Apache-2.0"
] |
#tag Class
Class UIDevice
Inherits NSObject
#tag CompatibilityFlags = ( TargetIOS )
#tag Method, Flags = &h1021
Private Sub Constructor()
LoadLibraries()
// Calling the overridden superclass constructor.
End Sub
#tag EndMethod
#tag Method, Flags = &h1021
Private Sub Constructor(obj as ptr)
... | Xojo | 4 | kingj5/iOSKit | Modules/UIKit/UIDevice.xojo_code | [
"MIT"
] |
/* Copyright (c) 2017-2019 Netronome Systems, Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
;TEST_INIT_EXEC nfp-reg mereg:i32.me0.XferIn_32=0x0
;TEST_INIT_EXEC nfp-reg mereg:i32.me0.XferIn_33=0x0
;TEST_INIT_EXEC nfp-reg mereg:i32.me0.XferIn_34=0xdeadbeef
;TEST_INIT_EXEC nfp-reg mereg:i32.... | UnrealScript | 2 | pcasconnetronome/nic-firmware | test/datapath/actions_classify_mac_vf_match_ipv4_udp_x88_test.uc | [
"BSD-2-Clause"
] |
httpService = new http();
httpService.setUrl("http://localhost:28139/american-art/query");
httpService.setMethod("POST");
httpService.addParam(type="header", name="Content-type", value="application/sparql-query");
httpService.addParam(type="header", name="Accept", value="application/sparql-results+json");
httpService.a... | ColdFusion | 3 | csperando/curlconverter | test/fixtures/cfml/post_binary_file.cfm | [
"MIT"
] |
// Autoscaling group for Teleport Authentication servers.
// Auth servers are most privileged in terms of IAM roles
// as they are allowed to publish to SSM parameter store,
// write certificates to encrypted S3 bucket.
resource "aws_autoscaling_group" "auth" {
name = "${var.cluster_name}-auth"
... | HCL | 5 | antonio-te/teleport | examples/aws/terraform/ha-autoscale-cluster/auth_asg.tf | [
"Apache-2.0"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 6h-1.7l-4.71 8.49c-.18.31-.52.51-.88.51H7c-.83 0-1.5-.67-1.5-1.5S6.17 15 7 1... | JavaScript | 4 | good-gym/material-ui | packages/material-ui-icons/lib/esm/EscalatorRounded.js | [
"MIT"
] |
import { {{{ creator }}}, History } from '{{{ runtimePath }}}';
let options = {{{ options }}};
if ((<any>window).routerBase) {
options.basename = (<any>window).routerBase;
}
// remove initial history because of ssr
let history: History = process.env.__IS_SERVER ? null : {{{ creator }}}(options);
export const create... | Smarty | 4 | Dolov/umi | packages/preset-built-in/src/plugins/generateFiles/core/history.tpl | [
"MIT"
] |
<http://example.org/thing> <http://example.org/label> "\u007F" .
<http://example.org/thing> <http://example.org/label> "" .
| Turtle | 1 | joshrose/audacity | lib-src/lv2/serd/tests/good/test-delete.ttl | [
"CC-BY-3.0"
] |
; inherits: ocaml
| Scheme | 1 | yzia2000/nvim-treesitter | queries/ocaml_interface/locals.scm | [
"Apache-2.0"
] |
// #docplaster
// #docregion formgroup, nested-formgroup
import { Component } from '@angular/core';
// #docregion imports
import { FormGroup, FormControl } from '@angular/forms';
// #enddocregion imports
@Component({
selector: 'app-profile-editor',
templateUrl: './profile-editor.component.html',
styleUrls: ['./p... | TypeScript | 4 | coreyscherbing/angular | aio/content/examples/reactive-forms/src/app/profile-editor/profile-editor.component.1.ts | [
"MIT"
] |
// check-pass
pub struct Xyz<'a, V> {
pub v: (V, &'a u32),
}
pub fn eq<'a, 's, 't, V>(this: &'s Xyz<'a, V>, other: &'t Xyz<'a, V>) -> bool
where V: PartialEq {
this.v == other.v
}
fn main() {}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/issues/issue-28999.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
module Ref {
@ A rate group active component with input and output scheduler ports
queued component SendBuff {
# ----------------------------------------------------------------------
# Types
# ----------------------------------------------------------------------
@ Active state
enum ActiveSt... | FORTRAN | 5 | AlperenCetin0/fprime | Ref/SendBuffApp/SendBuffApp.fpp | [
"Apache-2.0"
] |
static const uint32_t in_com1[20] = {
0x3F8E0B0D, 0x00000000, 0x797DE90A, 0xC0000000,
0xAD148FFB, 0xC0000000, 0x19A8F582, 0x00000000,
0x8E8D83F5, 0xE0000000, 0x2C327693, 0x60000000,
0x7F600521, 0xC0000000, 0x1A6791F0, 0xC0000000,
0x95C9FF5C, 0x20000000, 0xF1DA90AF, 0x20000000
};
static const ui... | Max | 3 | maxvankessel/zephyr | tests/lib/cmsis_dsp/distance/src/u32.pat | [
"Apache-2.0"
] |
// Copyright 2010-2014 RethinkDB, all rights reserved.
#include "arch/timing.hpp"
#include "concurrency/cross_thread_watchable.hpp"
#include "concurrency/watchable.hpp"
#include "containers/clone_ptr.hpp"
#include "containers/scoped.hpp"
#include "unittest/unittest_utils.hpp"
#include "unittest/gtest.hpp"
namespace un... | C++ | 3 | zadcha/rethinkdb | src/unittest/cross_thread_watchable.cc | [
"Apache-2.0"
] |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Welcome to Tauri!</title>
</head>
<body>
<h1>Welcome to Tauri!</h1>
<script>
windo... | HTML | 4 | facklambda/tauri | tooling/bench/tests/files_transfer/public/index.html | [
"Apache-2.0",
"MIT"
] |
{}
:configs $ {} (:reload-fn |app.main/reload!) (:port 6001) (:output |src) (:compact-output? true) (:version |0.0.1)
:modules $ []
:init-fn |app.main/main!
:local-ui? false
:extension |.cljs
:ir $ {} (:package |app)
:files $ {}
|app.lib $ {}
:defs $ {}
|f2 $ {}
... | Cirru | 3 | calcit-lang/calcit.rs | calcit/editor/calcit.cirru | [
"MIT"
] |
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Deep Learning Models -- A collection of various deep learning architectures, models, and tips for TensorFlow and PyTorch in Jupyter Notebooks.\n",
"- Author: Sebastian Raschka\n",
"- GitHub Repository: https://github.com/rasbt/... | Jupyter Notebook | 5 | XiaoshengLin/deeplearning-models | pytorch_ipynb/gnn/gnn-basic-edge-1.ipynb | [
"MIT"
] |
SSEVAL1(IN)
WRITE !,?10,$STACK($STACK,"PLACE")
QUIT IN
SSEVAL2(IN)
WRITE !,?10,$STACK($STACK,"PLACE")
QUIT IN
SSEVAL3
NEW Z
WRITE "1 AND 1"
SET Z=$$SSEVAL1(1) SET:Z Z=Z&$$SSEVAL2(1)
WRITE !,$SELECT(Z:"TRUE",1:"FALSE")
WRITE !!,"0 AND 1"
SET Z=$$SSEVAL1(0) SET:Z Z=Z&$$SSEVAL2(1)
WRITE !,$SELECT(Z:"TRUE",1:"FA... | M | 3 | LaudateCorpus1/RosettaCodeData | Task/Short-circuit-evaluation/MUMPS/short-circuit-evaluation.mumps | [
"Info-ZIP"
] |
/* Copyright 2020 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 | computationalartist/tensorflow | tensorflow/compiler/xla/tests/exhaustive_binary_16_bit_test.cc | [
"Apache-2.0"
] |
(set-info :smt-lib-version 2.6)
(set-logic QF_UFLRA)
(set-info :source |CPAchecker with k-induction on SV-COMP14 program using MathSAT5, submitted by Philipp Wendler, http://cpachecker.sosy-lab.org|)
(set-info :category "industrial")
(set-info :status unsat)
(define-fun _1 () Bool true)
(declare-fun |main::lk12@4| ()... | SMT | 2 | livinlife6751/infer | sledge/test/smt/QF_UFLRA/cpachecker-induction-svcomp14/cpachecker-induction.test_locks_15_true-unreach-call_false-termination.c.smt2 | [
"MIT"
] |
'reach 0.1';
var x = 0;
export const main = Reach.App(
{}, [], () => { return x; }
);
| RenderScript | 1 | chikeabuah/reach-lang | hs/t/n/Err_Block_Variable.rsh | [
"Apache-2.0"
] |
Code for local-mode. This will not be loaded under meteor.
'use strict'
require ['./domCursor'], (DC)-> window.DOMCursor = DC
init = (base, jqui, EditorSupport, Modes, Diag, P2P, Tests, Defaults, UI, Search, Emacs, Todo, Advice, LoungeDefs, Atom, Tangle, Storage, Presentation, ODB)->
ODB.trackOdb(... | Literate CoffeeScript | 4 | zot/Leisure | src/local.litcoffee | [
"Zlib"
] |
XDEF _sqrt__r
XDEF _estinvsqrt__r
XDEF _estinv__r
XDEF _sqrt
XDEF _estinvsqrt
XDEF _estinv
; XREF _errno
SECTION ":0",Code
_estinvsqrt__r:
_estinvsqrt:
frsqrte f1,f1
blr
_estinv__r:
_estinv:
fres f1,f1
blr
_sqrt__r:
_sqrt:
lw r3,@__sqrt_data
lwz r4,32(r1)
stwu r1,-64(r1)
sqrt.b:
li r1... | Parrot Assembly | 3 | privatosan/RayStorm | srcAmiga/lib_ppcmath/sqrt_asm.pasm | [
"MIT"
] |
(defprolog riddle
<-- (house A) (house B) (house C) (house D) (house E) (is Houses [A B C D E])
(member [brit _ _ _ red] Houses)
(member [swede dog _ _ _] Houses)
(member [dane _ _ tea _] Houses)
(left [_ _ _ _ green] [_ _ _ _ white] Houses)
(member [_ _ _ coffee green] Houses... | Shen | 4 | tizoc/chibi-shen | shen-test-programs/einsteins-riddle.shen | [
"BSD-3-Clause"
] |
OPTION, PSDUMPFREQ=102; // 6d data written every x time steps (h5).
OPTION, STATDUMPFREQ=10; // Beam Stats written every x time steps (stat).
OPTION, BOUNDPDESTROYFQ=10; // Delete lost particles, if any
OPTION, AUTOPHASE=8;
OPTION, VERSION = 20000; //10600;
Title, string="Photoinjector Beamline";
//... | Opal | 5 | mkeilman/sirepo | tests/lib_data/opal_4/first.opal | [
"Apache-2.0"
] |
;; These options just make it easier to use the file independently
;; in a way that is consistent with how it is used via Haskell
(set-option :print-success true)
(set-option :produce-models true)
(set-option :produce-unsat-cores true)
(set-option :pp.bv-literals false)
(set-logic ALL)
(declare-sort Address 0)
(decla... | SMT | 4 | chikeabuah/reach-lang | hs/smt2/runtime-bt.smt2 | [
"Apache-2.0"
] |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Routing;
namespace CNTKAzureTutorial01
{
public class WebApiApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
GlobalConfigurati... | C# | 4 | shyamalschandra/CNTK | Examples/Evaluation/CNTKAzureTutorial01/CNTKAzureTutorial01/Global.asax.cs | [
"MIT"
] |
PREFIX : <http://example.org/>
SELECT * WHERE { ?s ?p ?o OPTIONAL {?o ?p2 ?o2 } } ORDER BY ?s ?p ?o ?p2 ?o2 | SPARQL | 3 | alpano-unibz/ontop | test/sparql-compliance/src/test/resources/testcases-dawg-sparql-1.1/json-res/jsonres02.rq | [
"Apache-2.0"
] |
/* This linker script fragment is intended to be included in SECTIONS. */
/* Zeroed-out data section */
.bss :
{
. = ALIGN(4);
_sbss = .;
*(.bss*)
*(COMMON)
. = ALIGN(4);
_ebss = .;
} >RAM
/* This is to define the start of the heap, and make sure there is a minimum size */
.heap :
{
. = AL... | Linker Script | 4 | sebastien-riou/micropython | ports/stm32/boards/common_bss_heap_stack.ld | [
"MIT"
] |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Public Structure UserDefinedBinaryOperator{2}
Public Shared Operator +(x As UserDefinedBinaryOperator{2}{0}, y As ... | Visual Basic | 3 | ffMathy/roslyn | src/Compilers/VisualBasic/Test/Emit/ExpressionTrees/Sources/UserDefinedBinaryOperators.vb | [
"MIT"
] |
package com.baeldung.couchbase.spring;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
@ComponentScan(basePackages = { "com.baeldung.couchbase.spring" })
public class IntegrationTestConfig {
}
| Java | 4 | zeesh49/tutorials | couchbase/src/test/java/com/baeldung/couchbase/spring/IntegrationTestConfig.java | [
"MIT"
] |
defmodule Phoenix.Digester.GzipTest do
use ExUnit.Case, async: true
alias Phoenix.Digester.Gzip
test "compress_file/2 compresses file" do
file_path = "test/fixtures/digest/priv/static/css/app.css"
content = File.read!(file_path)
{:ok, compressed} = Gzip.compress_file(file_path, content)
assert ... | Elixir | 3 | faheempatel/phoenix | test/phoenix/digester/gzip_test.exs | [
"MIT"
] |
package org.baeldung.conditionalflow;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ConditionalFlowA... | Java | 4 | DBatOWL/tutorials | spring-batch/src/main/java/org/baeldung/conditionalflow/ConditionalFlowApplication.java | [
"MIT"
] |
<!doctype html>
<html lang="en" data-framework="cujo">
<head>
<meta charset="utf-8">
<title>cujo • TodoMVC</title>
<link rel="stylesheet" href="node_modules/todomvc-common/base.css">
<link rel="stylesheet" href="node_modules/todomvc-app-css/index.css">
</head>
<body>
<section id="todoapp"></section>
<scr... | HTML | 3 | dtelaroli/todomvc | examples/cujo/index.html | [
"MIT"
] |
public final class VoidReturnKt /* VoidReturnKt*/ {
public static final void foo(@org.jetbrains.annotations.NotNull() java.lang.String);// foo(java.lang.String)
} | Java | 1 | Mu-L/kotlin | compiler/testData/asJava/lightClasses/nullabilityAnnotations/VoidReturn.java | [
"ECL-2.0",
"Apache-2.0"
] |
[38;2;190;132;255m{-# [0m[38;2;249;38;114mLANGUAGE[0m[38;2;190;132;255m OverloadedStrings #-}[0m
[38;2;117;113;94m--[0m[38;2;117;113;94m simple parser for a Lisp-like syntax I wrote some time ago[0m
[38;2;249;38;114mimport[0m[38;2;248;248;242m [0m[38;2;248;248;242mData.Void[0m[38;2;248;248;242m [0m... | Haskell | 5 | JesseVermeulen123/bat | tests/syntax-tests/highlighted/Haskell/test.hs | [
"Apache-2.0",
"MIT"
] |
MODULE mg_analysis
DESCRIPTION Tools for analysis
VERSION 1.0
SOURCE mgalloy
BUILD_DATE January 18, 2011
FUNCTION MG_ARRAY_EQUAL 2 2 KEYWORDS
FUNCTION MG_TOTAL 1 1
| IDL | 0 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/IDL/mg_analysis.dlm | [
"MIT"
] |
import * as c from "cmodule";
export function foo() {
// variable name matches the imported package name
const cmodule = c([1, 2]);
return cmodule + cmodule;
}
| JavaScript | 4 | 1shenxi/webpack | test/cases/optimize/concat-star-import/module.js | [
"MIT"
] |
#include <WinAPIRes.au3>
#include <WinAPISys.au3>
#include <String.au3>
#cs --------------------------------------------------------------------------------
AutoIt Version: 3.3.14.5
Author: VIVI (https://github.com/V1V1) | (https://twitter.com/_theVIVI)
Script Function:
Patches ETW out of the current pro... | AutoIt | 4 | ohio813/OffensiveAutoIt | Defense-Evasion/PatchETW.au3 | [
"BSD-2-Clause"
] |
// Copyright 2020 The 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... | Protocol Buffer | 5 | arghyadip01/grpc | src/proto/grpc/testing/xds/v3/percent.proto | [
"Apache-2.0"
] |
INSERT INTO
users(first_name, last_name)
values('Sam', 'Brannen') | SQL | 2 | nicchagil/spring-framework | spring-jdbc/src/test/resources/org/springframework/jdbc/datasource/init/users-data-without-separator.sql | [
"Apache-2.0"
] |
/* Copyright (c) 2017-2019 Netronome Systems, Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
;TEST_INIT_EXEC nfp-mem i32.ctm:0x80 0x00000000 0x00000000 0xffffffff 0xffff86c1
;TEST_INIT_EXEC nfp-mem i32.ctm:0x90 0x5ccdfc7e 0x81000190 0x08060001 0x08000604
;TEST_INIT_EXEC nfp-mem i32.ctm:0... | UnrealScript | 3 | pcasconnetronome/nic-firmware | test/datapath/pkt_vlan_ipv4_arp_x88.uc | [
"BSD-2-Clause"
] |
DROP TABLE IF EXISTS retention_test;
CREATE TABLE retention_test(date Date, uid Int32)ENGINE = Memory;
INSERT INTO retention_test SELECT '2018-08-06', number FROM numbers(80);
INSERT INTO retention_test SELECT '2018-08-07', number FROM numbers(50);
INSERT INTO retention_test SELECT '2018-08-08', number FROM numbers(60... | SQL | 3 | pdv-ru/ClickHouse | tests/queries/0_stateless/00688_aggregation_retention.sql | [
"Apache-2.0"
] |
// Copyright (c) 2021 Bluespec, Inc. All Rights Reserved
// Author: Rishiyur S. Nikhil
package AXI4L_Gate;
// ================================================================
// This package defines an AXI4-M-to-AXI4-S 'gate' module,
// that either allows or blocks the 5 AXI4 buses,
// depending on a Bool 'enable' in... | Bluespec | 5 | bluespec/Flute | src_Testbench/Fabrics/AXI4_Lite/AXI4L_Gate.bsv | [
"Apache-2.0"
] |
/*
* Licensed to Crate.io GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not use this f... | ANTLR | 4 | autophagy/crate | libs/pgwire/src/main/antlr/PgArray.g4 | [
"Apache-2.0"
] |
//
// MetalConvolutionActivation.metal
// MNN
//
// Created by MNN on 2019/02/25.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include <metal_stdlib>
#include "MetalDefine.metal"
using namespace metal;
typedef enum : int {
None = 0,
ReLU = 1,
ReLU6 = 2,
} conv_activation_type;
inline fty... | Metal | 4 | xhuan28/MNN | source/backend/metal/MetalConvolutionActivation.metal | [
"Apache-2.0"
] |
package com.baeldung.exceptions.stackoverflowerror;
public class AccountHolder {
private String firstName;
private String lastName;
AccountHolder jointAccountHolder = new AccountHolder();
}
| Java | 1 | DBatOWL/tutorials | core-java-modules/core-java-exceptions/src/main/java/com/baeldung/exceptions/stackoverflowerror/AccountHolder.java | [
"MIT"
] |
21,21
24,24
26,2E
30,3B
3D,3D
41,5B
5D,5D
5F,5F
61,7A
7E,7E
| Component Pascal | 0 | janosch-x/character_set | lib/character_set/predefined_sets/url_host.cps | [
"MIT"
] |
Feature: Test lookup on edge index
Examples:
| where_condition |
| lookup_edge_1.col1 == 201 |
| lookup_edge_1.col1 == 201 AND lookup_edge_1.col2 == 201 ... | Cucumber | 5 | wenhaocs/nebula | tests/tck/features/lookup/LookupEdge.feature | [
"Apache-2.0"
] |
/**
* @file ugraphs.yap
* @author R.A.O'Keefe
* @author adapted to support some of the functionality of the SICStus ugraphs library
by Vitor Santos Costa.
* @date 20 March 1984
*
* @brief
*
*
*/
% File : GRAPHS.PL
% Author : R.A.O'Keefe
% Updated:
% Purpose: .
%
%
%
:- module(ugraphs,
[
ad... | Logtalk | 5 | PaulBrownMagic/logtalk3 | library/graphs/ugraphs.lgt | [
"Apache-2.0"
] |
' Module monkey.monkey
'
' Placed into the public domain 24/02/2011.
' No warranty implied; use at your own risk.
Import lang
Import boxes
Import list
Import map
Import math
Import random
Import set
Import stack
Import deque
Import monkeytarget
| Monkey | 1 | Regal-Internet-Brothers/webcc-monkey | webcc.data/modules/monkey/monkey.monkey | [
"Zlib"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.