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 |
|---|---|---|---|---|---|
WBGet(WinTitle := "ahk_class IEFrame", Svr#=1) { ;// based on ComObjQuery docs
static msg := DllCall("RegisterWindowMessage", "str", "WM_HTML_GETOBJECT")
, IID := "{0002DF05-0000-0000-C000-000000000046}" ;// IID_IWebBrowserApp
;// , IID := "{332C4427-26CB-11D0-B483-00C04FD90119}" ;// IID_IHTMLWindow2
SendMessage ... | AutoHotkey | 3 | standardgalactic/PuloversMacroCreator | LIB/WBGet.ahk | [
"Unlicense"
] |
% Sort.Txl - simple numeric bubble sort
define program
[repeat number]
end define
rule main
replace [repeat number]
N1 [number] N2 [number] Rest [repeat number]
where
N1 [> N2]
by
N2 N1 Rest
end rule
| TXL | 3 | pseudoPixels/SourceFlow | app_txl_cloud/txl_sources/examples/bubble_sort/bubble_sort.txl | [
"MIT"
] |
/*
* Copyright 2002-2020 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 | spreoW/spring-framework | spring-test/src/main/java/org/springframework/test/web/reactive/server/MockServerClientHttpResponse.java | [
"Apache-2.0"
] |
create table `first` (id int primary key);
| SQL | 2 | imtbkcat/tidb-lightning | tests/black-white-list/data/firstdb.first-schema.sql | [
"Apache-2.0"
] |
{-# LANGUAGE StandaloneDeriving #-}
module Network.GRPC.Unsafe.Slice where
#include <grpc/slice.h>
#include <grpc_haskell.h>
import qualified Data.ByteString as B
import Foreign.C.String
import Foreign.C.Types
import Foreign.Ptr
-- | A 'Slice' is gRPC's string type. We can easily convert these to and from
-- ByteSt... | C2hs Haskell | 5 | rickibm/daml | nix/third-party/gRPC-haskell/core/src/Network/GRPC/Unsafe/Slice.chs | [
"Apache-2.0"
] |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
using namespace System.Collections.Generic
using namespace System.Management.Automation
$crontabcmd = "/usr/bin/crontab"
class CronJob {
[string] $Minute
[string] $Hour
[string] $DayOfMonth
[string] $Month
[string] $DayOfWee... | PowerShell | 5 | rdtechie/PowerShell | demos/crontab/CronTab/CronTab.psm1 | [
"MIT"
] |
<!doctype html>
<html>
<head>
<title>{{pageTitle}}</title>
<meta charset="utf-8">
<link rel="stylesheet" href="{{{global.baseUrl}}}/css/main.css" crossorigin="anonymous">
{{#cssFiles}}
<link rel="stylesheet" href="{{{.}}}" crossorigin="anonymous">
{{/cssFiles}}
{{#jsFiles}}
<script src="{{{.}}}"></script>
{{... | HTML+Django | 4 | asahiocean/joplin | packages/server/src/views/layouts/basic.mustache | [
"MIT"
] |
ALTER TABLE hdb_catalog.hdb_table
ADD COLUMN is_enum boolean NOT NULL DEFAULT false;
DROP TRIGGER hdb_table_oid_check ON hdb_catalog.hdb_table;
DROP FUNCTION hdb_catalog.hdb_table_oid_check();
CREATE OR REPLACE VIEW hdb_catalog.hdb_foreign_key_constraint AS
SELECT
q.table_schema :: text,
q.table_name :: tex... | SQL | 4 | gh-oss-contributor/graphql-engine-1 | server/src-rsr/migrations/19_to_20.sql | [
"Apache-2.0",
"MIT"
] |
select minMap(arrayJoin([([1], [null]), ([1], [null])])); -- { serverError 43 }
select maxMap(arrayJoin([([1], [null]), ([1], [null])])); -- { serverError 43 }
select sumMap(arrayJoin([([1], [null]), ([1], [null])])); -- { serverError 43 }
select sumMapWithOverflow(arrayJoin([([1], [null]), ([1], [null])])); -- { serve... | SQL | 3 | pdv-ru/ClickHouse | tests/queries/0_stateless/01422_map_skip_null.sql | [
"Apache-2.0"
] |
xquery version "1.0" encoding "UTF-8";
(: the prefix declaration for our custom extension :)
declare namespace efx = "http://test/saxon/ext";
<transformed extension-function-render="{efx:simple(/body/text())}" /> | XQuery | 4 | vkasala/camel-quarkus | integration-tests/saxon/src/main/resources/transformWithExtension.xquery | [
"Apache-2.0"
] |
<mt:Ignore>
# =======================
#
# ウィジェット-ブログ新着-カード
#
# =======================
</mt:Ignore>
<mt:SetVar name="entry_count" value="0" />
<mt:Entries category="NOT xxx" sort_by="authored_on" sort_order="descend" limit="6">
<mt:EntriesHeader>
<div class="widget widget-recent-card">
<mt:Unless name="__is_sub__... | MTML | 4 | webbingstudio/mt_theme_echo_bootstrap | dist/themes/echo_bootstrap/templates/widget_recent_card.mtml | [
"MIT"
] |
# -*- perl -*-
use strict;
use warnings;
use tests::tests;
my ($tree);
for my $a (0...3) {
for my $b (0...2) {
for my $c (0...2) {
for my $d (0...3) {
$tree->{$a}{$b}{$c}{$d} = [''];
}
}
}
}
check_archive ($tree);
pass;
| ChucK | 2 | nguyenvannam2698/os_pintos_20211 | src/tests/filesys/extended/dir-mk-tree-persistence.ck | [
"MIT"
] |
C Copyright(c) 1997, Space Science and Engineering Center, UW-Madison
C Refer to "McIDAS Software Acquisition and Distribution Policies"
C in the file mcidas/data/license.txt
C *** $Id: kbxmsat.dlm,v 1.1 2000/07/24 13:50:41 gad Exp $ ***
C ? REALTIME METEOSAT CALIBRATION SEE KBXMET FOR OLD TAPE RESTORES
... | IDL | 4 | oxelson/gempak | extlibs/AODT/v72/odtmcidas/navcal/navcal/kbxmsat.dlm | [
"BSD-3-Clause"
] |
// 功能:8*8 的矩阵转置,用 BRAM 做缓存
package TransposeBuffer;
import BRAM::*;
// 流式 8x8 矩阵转置器 的接口
interface TransposeBuffer;
method Action rewind; // 重置,如果当前有一块没有完全写完,则撤销其中已有的数据,重新写入
method Action put(int val); // 向矩阵转置器中写入行主序的数据
method ActionValue#(int) get; // 从矩阵转置器中获取列主序的数据
endin... | Bluespec | 5 | Xiefengshang/BSV_Tutorial_cn | src/17.TransposeBuffer/TransposeBuffer.bsv | [
"MIT"
] |
extends Control
onready var _client = $Client
onready var _log_dest = $Panel/VBoxContainer/RichTextLabel
onready var _line_edit = $Panel/VBoxContainer/Send/LineEdit
onready var _host = $Panel/VBoxContainer/Connect/Host
onready var _multiplayer = $Panel/VBoxContainer/Settings/Multiplayer
onready var _write_mode = $Pane... | GDScript | 4 | jonbonazza/godot-demo-projects | networking/websocket_chat/client/client_ui.gd | [
"MIT"
] |
<Directory "${VHostRoot}">
Options All
AllowOverride All
Order deny,allow
Allow from all
Satisfy Any
</Directory>
<VirtualHost *:80>
DocumentRoot ${VHostRoot}
ServerName ${VHost}
<IfDefine VHostDomain>
ServerAlias ${VHost}.${VHostDomain}
</IfDefine>
ServerAdmin ${VHostAd... | ApacheConf | 3 | fawno/WAMP-Tools | usr/etc/httpd/vhosts/_default_.vhost | [
"MIT"
] |
const std = @import("std");
const expect = std.testing.expect;
const c = @cImport(@cInclude("a.h"));
test "import C add" {
const result = c.add(2, 1);
try expect(result == 3);
}
| Zig | 4 | lukekras/zig | test/standalone/link_static_lib_as_system_lib/main.zig | [
"MIT"
] |
export const message = "Hello World";
| JavaScript | 0 | 1shenxi/webpack | test/statsCases/output-module/module.js | [
"MIT"
] |
xquery version "3.0";
declare function local:add-log-message($message as xs:string) as empty-sequence()?
{
let $logfile-collection := "/db/apps/exist101/log"
let $logfile-name := "exist101-log.xml"
let $logfile-full := concat($logfile-collection, '/', $logfile-name)
let $logfile-created :=
if(doc-available($logfi... | XQuery | 4 | btashton/pygments | tests/examplefiles/test-exist-update.xq | [
"BSD-2-Clause"
] |
import QtQuick 2.3
import QGroundControl.Palette 1.0
/// QGC version of ListVIew control that shows horizontal/vertial scroll indicators
ListView {
id: root
boundsBehavior: Flickable.StopAtBounds
property color indicatorColor: qgcPal.text
QGCPalette { id: qgcPal; colorGroupEnabled: enabl... | QML | 4 | uavosky/uavosky-qgroundcontrol | src/QmlControls/QGCListView.qml | [
"Apache-2.0"
] |
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!319 &31900000
AvatarMask:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: acorn mask -CopyToAddAMask-
m_Mask: 01000000010000000100000001000000010000000100000001000000010000000100000... | Mask | 2 | diegodelarocha/Acorn | Assets/acorn/animation tools/avatars/avatar masks/acorn mask -CopyToAddAMask-.mask | [
"MIT"
] |
% Program to fetch original source given the XML source coordinates
% Jim Cordy, April 2008
tokens
charlit ""
end tokens
define program
[xml_source_coordinate]
| [source_lines]
end define
define xml_source_coordinate
'< 'source 'file=[stringlit] 'startline=[stringlit] 'endline=[stringlit] '>
end define
d... | TXL | 4 | coder-chenzhi/SQA | SourcererCC/parser/java/txl/getoriginal.txl | [
"Apache-2.0"
] |
#
# @expect="/nlist[@name='profile']/list[@name='a']/*[2]=2 and /nlist[@name='profile']/long[@name='b']=2 and /nlist[@name='profile']/long[@name='c']=3 and /nlist[@name='profile']/list[@name='d']/*[2]=7"
# @format=pan
object template list7;
"/a" = list(1, 2);
"/b" = value("/a/-1");
"/c" = {
t = list(3, 4);
t[-... | Pan | 3 | aka7/pan | panc/src/test/pan/Functionality/list/list7.pan | [
"Apache-2.0"
] |
Read( "fibonacci.gi" );
ForAll( [ 1 .. 10 ], i -> fibonacci_rec( i ) = fibonacci_internal( i ) );
ForAll( [ 1 .. 10 ], i -> fibonacci_iterative( i ) = fibonacci_internal( i ) );
iterator := fibonacci_iterator( );
ForAll( [ 1 .. 100 ], i -> iterator( ) = fibonacci_internal( i ) );
| GAP | 3 | Mynogs/Algorithm-Implementations | Fibonacci_series/GAP/sebasguts/fibonacci_tests.gi | [
"MIT"
] |
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<installer-gui-script minSpecVersion="1">
<options customize="never"
hostArchitectures="i386"
require-scripts="true"
/>
<title>Haskell Platform {{hpVersion}}</title>
<background file="logo-color.png" mime-type="image/png"
... | mupad | 3 | bgamari/haskell-platform | hptool/os-extras/osx/installer.dist.mu | [
"BSD-3-Clause"
] |
-- moonscript module
import with_dev from require "spec.helpers"
describe "moonscript.base", ->
with_dev!
it "should create moonpath", ->
path = ";./?.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua;/usr/lib/lua/5.1/?.luac;/home/leafo/.luarocks/lua/5.1/?.lua"
import create_moonpath from requir... | MoonScript | 3 | Shados/moonscript | spec/moonscript_spec.moon | [
"MIT",
"Unlicense"
] |
<?xml version="1.0" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:wix="http://schemas.microsoft.com/wix/2006/wi">
<!-- Copy all attributes and elements to the output. -->
<xsl:template match="@*|*">
<xsl:copy>
<xsl:apply-templates sel... | XSLT | 5 | Eric-Arellano/rust | src/etc/installer/msi/remove-duplicates.xsl | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
{
// width: 2166, height: 1650, fps: 30,
width: 720, height: 1280, fps: 30,
outPath: './commonFeatures.mp4',
// outPath: './commonFeatures.gif',
audioFilePath: './assets/High [NCS Release] - JPB (No Copyright Music)-R8ZRCXy5vhA.m4a',
defaults: {
transition: { name: 'random' },
layer: { fontPath: '.... | JSON5 | 4 | aaverty/editly | examples/commonFeatures.json5 | [
"MIT"
] |
%%{
machine MultitokenDef;
# AddLastToken(ts, tokend) should be implemented except member functions called here
action begin_token {
BeginToken(ts, p);
}
action begin_word {
BeginToken(ts, p, TOKEN_WORD);
}
action begin_number {
BeginToken(ts, p, TOKEN_NUMBER);
... | Ragel in Ruby Host | 4 | ZhekehZ/catboost | library/tokenizer/multitoken_v3.rl | [
"Apache-2.0"
] |
%%
%eof{ /*no code same line*/return;
%eof}
%eofthrow{
%eofthrow}
NO_BRACK_IN_CLASS=[^[]
NO_MACRO_IN_LINE=abc=d
UNCLOSED_CLASS = [
DIGITS={DIGIT}+
#if($dialect == '111' || $dialect == '222')
NUMBER_PREFIX=[]
FLOAT_POSTFIX=[dDfF]
#end
NEWLINES=A
"a"
[:digit:]
[a]
(A
| B)
BAD
%% | JFlex | 1 | JojOatXGME/Grammar-Kit | testData/jflex/parser/ParserFixes2.flex | [
"Apache-2.0"
] |
(ns wisp.engine.node
(:require [fs :refer [read-file-sync]]
[wisp.compiler :refer [compile]]))
(set! global.**verbose** (<= 0 (.indexOf process.argv :--verbose)))
(defn compile-path
[path]
(let [source (read-file-sync path :utf8)
output (compile source {:source-uri path})]
(if (:error ou... | wisp | 4 | bamboo/wisp | src/engine/node.wisp | [
"BSD-3-Clause"
] |
; Copyright (C) 2008 The Android Open Source Project
;
; 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 ... | Jasmin | 3 | Unknoob/buck | third-party/java/dx/tests/109-int-branch/blort.j | [
"Apache-2.0"
] |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
namespace Microsoft.CodeAnalysis.MSBuild.Logging
{
internal class DiagnosticLogItem
{
... | C# | 4 | samaw7/roslyn | src/Workspaces/Core/MSBuild/MSBuild/Logging/DiagnosticLogItem.cs | [
"MIT"
] |
syntax = "proto3";
package upb_benchmark;
message Empty {}
| Protocol Buffer | 2 | warlock135/grpc | third_party/upb/benchmarks/empty.proto | [
"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 0x00154d0e 0x04a5001b 0x213cac30 0x08004500
;TEST_INIT_EXEC nfp-mem i32.ctm:0x90 0x006e8806 0x40004011 0x8a761400 0x00021400
;TEST_INIT_EXEC nfp-mem i32... | UnrealScript | 2 | pcasconnetronome/nic-firmware | test/datapath/pkt_ipv4_geneve_tcp_x80.uc | [
"BSD-2-Clause"
] |
use v6;
say qq/
Problem 10
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
Find the sum of all the primes below two million.
/;
# Answer: 142913828922
# Times:
#
# euler10a (array)
# $n = 200-1 : 0.82s
# $n = 2000-1 : 4.3s (with grep: 5.5s)
# $n = 20000-1: 41.9s (with grep: 53.8s)
# $n = 200000-1: ?
#... | Perl6 | 5 | Wikunia/hakank | perl6/euler10.p6 | [
"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 | OlegPt/spark | resource-managers/yarn/src/test/scala/org/apache/spark/deploy/yarn/FailureTrackerSuite.scala | [
"Apache-2.0"
] |
SmalltalkCISpec {
#loading : [
SCIMetacelloLoadSpec {
#baseline : 'IMAPClient',
#directory : 'packages',
#load : 'Tests',
#platforms : [ #squeak ]
}
],
#testing : {
#coverage : {
#packages : [ 'IMAPClient-Core', 'IMAPClient-Protocol' ]
}
}
}
| STON | 4 | hpi-swa-teaching/IMAPClient | .smalltalk.ston | [
"MIT"
] |
#pragma once
#include "envoy/network/address.h"
namespace Envoy {
namespace Network {
struct ProxyProtocolData {
const Network::Address::InstanceConstSharedPtr src_addr_;
const Network::Address::InstanceConstSharedPtr dst_addr_;
std::string asStringForHash() const {
return std::string(src_addr_ ? src_addr_... | C | 4 | dcillera/envoy | envoy/network/proxy_protocol.h | [
"Apache-2.0"
] |
type mytuple = int;
proc foo(t : mytuple, param i : int) where i == 1 {
return 1;
}
proc foo(t : mytuple, param i : int) where i == 2 {
return 2;
}
var t : mytuple;
writeln(t);
t = 4;
writeln(t);
writeln(foo(t, 1));
writeln(foo(t, 2));
| Chapel | 4 | jhh67/chapel | test/types/tuple/deitz/recordAsTuple/test_tuple_record_implementation4.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
/*--------------------------------------------------*/
/* SAS Programming for R Users - code for exercises */
/* Copyright 2016 SAS Institute Inc. */
/*--------------------------------------------------*/
/*SP4R07s01*/
proc iml;
items ={'Groceries','Utilities','Rent','Car Expenses',
... | SAS | 4 | snowdj/sas-prog-for-r-users | code/SP4R07s01.sas | [
"CC-BY-4.0"
] |
$$ MODE TUSCRIPT
SET data = REQUEST ("http://www.puzzlers.org/pub/wordlists/unixdict.txt")
DICT orderdwords CREATE 99999
COMPILE
LOOP word=data
- "<%" = any token
SET letters=STRINGS (word,":<%:")
SET wordsignatur= ALPHA_SORT (letters)
IF (wordsignatur==letters) THEN
SET wordlength=LENGTH (word)
DICT orderdword... | Turing | 3 | LaudateCorpus1/RosettaCodeData | Task/Ordered-words/TUSCRIPT/ordered-words.tu | [
"Info-ZIP"
] |
PING example.com (93.184.216.34) 56(84) bytes of data.
64 bytes from 93.184.216.34: icmp_seq=1 ttl=61 time=172 ms
--- example.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 172.585/172.585/172.585/0.000 ms
| DIGITAL Command Language | 0 | multani/inspec | test/unit/mock/cmd/ping-example.com | [
"Apache-2.0"
] |
global _start
section .data
align 16
myquad:
dq 0xad0000ceadad00ff
mydword:
dd 0xcafebabe
myaddress:
dq 0x00adbeefc0de00ce
%include "header.inc"
movq mm0, [myquad]
pshufw mm0, [myaddress], 0xAB
pshufw mm1, [myaddress], 0xFE
pshufw mm2, [myquad], 0xFF
pshufw mm6, [myaddress], 0x19
pshufw mm7, [myaddre... | Assembly | 2 | Tuna0128/Tuna0128.github.io | tests/nasm/pshufw.asm | [
"BSD-2-Clause-FreeBSD"
] |
#ifndef TEST_INTEROP_CXX_TEMPLATES_INPUTS_LINKAGE_OF_SWIFT_SYMBOLS_FOR_IMPORTED_TYPES_H
#define TEST_INTEROP_CXX_TEMPLATES_INPUTS_LINKAGE_OF_SWIFT_SYMBOLS_FOR_IMPORTED_TYPES_H
template<class T>
struct MagicWrapper {
T t;
int callGetInt() const {
return t.getInt() + 5;
}
};
struct MagicNumber {
// Swift ru... | C | 4 | gandhi56/swift | test/Interop/Cxx/templates/Inputs/linkage-of-swift-symbols-for-imported-types.h | [
"Apache-2.0"
] |
package FShow;
// The FShow typeclass is now defined in the Prelude and FShow instances
// are defined alongside the types, so there is no need for this file.
// However, we provide this empty package, so that existing code that
// imports the FShow package will still compile.
endpackage
| Bluespec | 1 | sarman1998/vscode-verilog-hdl-support | syntaxes/bsc-lib/FShow.bsv | [
"MIT"
] |
import Prelude (IO)
import Application (appMain)
main :: IO ()
main = appMain
| Haskell | 4 | JigarJoshi/openapi-generator | samples/server/petstore/haskell-yesod/app/main.hs | [
"Apache-2.0"
] |
# Check that jobs in a console pool can't be released.
# RUN: rm -rf %t.build
# RUN: mkdir -p %t.build
# RUN: cp %s %t.build/build.ninja
# RUN: cp %S/Inputs/run-releasing-control-fd %t.build
# RUN: cp %S/Inputs/wait-for-file %t.build
# RUN: %{llbuild} ninja build --jobs 3 --no-db --chdir %t.build &> %t.out
# RUN: %{Fi... | Ninja | 4 | allevato/swift-llbuild | tests/Ninja/Build/console-pool-no-control-fd.ninja | [
"Apache-2.0"
] |
@\media screen {}
@\media \screen {}
| CSS | 2 | maxxcs/swc | crates/swc_css_parser/tests/fixture/at-rule/media/input.css | [
"Apache-2.0",
"MIT"
] |
CLASS zcl_abapgit_integration_git DEFINITION PUBLIC FINAL CREATE PUBLIC.
ENDCLASS.
CLASS zcl_abapgit_integration_git IMPLEMENTATION.
ENDCLASS. | ABAP | 0 | Manny27nyc/abapGit | test/zcl_abapgit_integration_git.clas.abap | [
"MIT"
] |
---
title: "Working With Samples from Many Meters"
author: "Sam Borgeson"
date: "`r Sys.Date()`"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Working With Samples from Many Meters}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
Examples of iterator function usage TBD. Pleas... | RMarkdown | 0 | ConvergenceDA/visdom | vignettes/example_iterator_usage.rmd | [
"MIT"
] |
{******************************************************************************}
{ }
{ Visual Styles (Themes) API interface Unit for Object Pascal }
{ ... | Pascal | 5 | Patriccollu/issrc | Components/UxTheme.pas | [
"FSFAP"
] |
import time
import json
import torch
import benchmark_cpp_extension # noqa: F401
"""PyTorch performance microbenchmarks.
This module contains PyTorch-specific functionalities for performance
microbenchmarks.
"""
class TorchBenchmarkBase(torch.nn.Module):
""" This is a base class used to create Pytorch operator... | Python | 5 | Hacky-DH/pytorch | benchmarks/operator_benchmark/benchmark_pytorch.py | [
"Intel"
] |
// @traceResolution: true
// @Filename: /src/a.ts
export default 0;
// No extension: '.ts' added
// @Filename: /src/b.ts
import a from './a';
// '.js' extension: stripped and replaced with '.ts'
// @Filename: /src/d.ts
import a from './a.js';
// @Filename: /src/jquery.d.ts
declare var x: number;
expo... | TypeScript | 4 | nilamjadhav/TypeScript | tests/cases/conformance/externalModules/moduleResolutionWithExtensions.ts | [
"Apache-2.0"
] |
#! /bin/csh
eval `scramv1 runtime -csh`
cmsRun SiPixelRecHitsValid_cfg.py
root -b -p -q SiPixelRecHitsCompare.C
| Tcsh | 3 | ckamtsikis/cmssw | Validation/TrackerRecHits/test/SiPixelRecHitsValid.csh | [
"Apache-2.0"
] |
$!
$!
$ olddir = f$environment("default")
$ on control_y then goto YExit
$!
$ gosub Init
$ if .not. init_status then goto YExit
$!
$ call CompileAll
$ call BuildTransferVectors
$ call LinkShared
$!
$ call Cleanup
$!
$YExit:
$ set noon
$!
$ deassign srcdir
$ if f$search("objdir:*.*;*") .nes. "" then delete objdir:*.*;*
... | Clean | 4 | ilineicry/amr | deps/libssh/vms/libssh2_make_lib.dcl | [
"MIT"
] |
// https://doc.sccode.org/Tutorials/Getting-Started/14-Scheduling-Events.html
// https://doc.sccode.org/Classes/Event.html
// An Event specifies an action to be taken in response to a -play message. Its key/value pairs specify the parameters of that action. Event inherits most of its methods from its superclasses, esp... | SuperCollider | 5 | drichardson/examples | SuperCollider/Event.scd | [
"Unlicense"
] |
# Should be an error
function = 42
var = 42
# Shouldn't be an error
abc.with = 42
function: 42
var: 42
# Keywords shouldn't be highlighted
abc.function
abc.do
abc.break
abc.true
abc::function
abc::do
abc::break
abc::true
abc:: function
abc. function
# Numbers should be highlighted
def.42
def .42
def::42
| CoffeeScript | 1 | shriniwas26/vimrc | sources_non_forked/vim-coffee-script/test/test-reserved.coffee | [
"MIT"
] |
c dsdotsub.f
c
c The program is a fortran wrapper for dsdot.
c Witten by Keita Teranishi. 2/11/1998
c
subroutine dsdotsub(n,x,incx,y,incy,dot)
c
external dsdot
double precision dsdot,dot
integer n,incx,incy
real x(*),y(*)
c
dot=dsdot(n,x,incx,y,incy)
return
e... | FORTRAN | 3 | yatonon/dlib-face | dlib/external/cblas/dsdotsub.f | [
"BSL-1.0"
] |
// Ported from musl, which is licensed under the MIT license:
// https://git.musl-libc.org/cgit/musl/tree/COPYRIGHT
//
// https://git.musl-libc.org/cgit/musl/tree/src/math/cosf.c
// https://git.musl-libc.org/cgit/musl/tree/src/math/cos.c
const std = @import("../std.zig");
const math = std.math;
const expect = std.test... | Zig | 5 | lukekras/zig | lib/std/math/cos.zig | [
"MIT"
] |
// run-pass
pub trait FakeGenerator {
type Yield;
type Return;
}
pub trait FakeFuture {
type Output;
}
pub fn future_from_generator<
T: FakeGenerator<Yield = ()>
>(x: T) -> impl FakeFuture<Output = T::Return> {
GenFuture(x)
}
struct GenFuture<T: FakeGenerator<Yield = ()>>(T);
impl<T: FakeGenera... | Rust | 4 | Eric-Arellano/rust | src/test/ui/impl-trait/bounds_regression.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
package com.baeldung.hibernate.pessimisticlocking;
import javax.persistence.Entity;
import java.math.BigDecimal;
@Entity
public class PessimisticLockingEmployee extends Individual {
private BigDecimal salary;
public PessimisticLockingEmployee(Long id, String name, String lastName, BigDecimal salary) {
... | Java | 4 | zeesh49/tutorials | hibernate5/src/main/java/com/baeldung/hibernate/pessimisticlocking/PessimisticLockingEmployee.java | [
"MIT"
] |
google-site-verification: google385281288605d160.html | HTML | 0 | coreyscherbing/angular | aio/src/google385281288605d160.html | [
"MIT"
] |
implementation-class=org.jetbrains.kotlin.gradle.plugin.performance.KotlinPerformancePlugin | INI | 0 | Mu-L/kotlin | libraries/tools/kotlin-gradle-plugin/src/main/resources/META-INF/gradle-plugins/org.jetbrains.kotlin.native.performance.properties | [
"ECL-2.0",
"Apache-2.0"
] |
import "regent"
terralib.includepath = ".;"..terralib.includepath
local stdlib = terralib.includec("stdlib.h")
local stdio = terralib.includec("stdio.h")
local gocean2d_io_mod = terralib.includec("gocean2d_io_mod.h")
terralib.linklibrary("libgfortran.so")
terralib.linklibrary("./libgocean2d_io_mod.so")
fspace setup_t... | Rouge | 4 | stfc/PSycloneBench | benchmarks/nemo/nemolite2d/manual_versions/regent/read_namelist.rg | [
"BSD-3-Clause"
] |
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="x-appl... | Kit | 4 | smola/language-dataset | data/github.com/hmaesta/simplect-email-template/58942b86c52889844484c2b5f698282bec75aaed/kit/email.kit | [
"MIT"
] |
<!---================= Room Booking System / https://github.com/neokoenig =======================--->
<cfoutput>
<cfparam name="locations">
<!--- Get Buildings --->
<cfquery dbtype="query" name="buildings">
SELECT DISTINCT building FROM locations WHERE building IS NOT NULL;
</cfquery>
<!--- Inline CSS--->
<cfif appl... | ColdFusion | 3 | fintecheando/RoomBooking | views/bookings/_locations.cfm | [
"Apache-1.1"
] |
// check-pass
// Regression test for issue #79152
//
// Tests that we can index an array in a const function
const fn foo() {
let mut array = [[0; 1]; 1];
array[0][0] = 1;
}
fn main() {}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/consts/issue-79152-const-array-index.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
Import builder
Class AndroidBuilder Extends Builder
Method New( tcc:TransCC )
Super.New( tcc )
End
Method Config:String()
Local config:=New StringStack
For Local kv:=Eachin GetConfigVars()
config.Push "static final String "+kv.Key+"="+Enquote( kv.Value,"java" )+";"
Next
Return config.Join( "~n" )
... | Monkey | 4 | blitz-foundation/mungo-impress | src/transcc/builders/android.monkey | [
"Zlib"
] |
export { default } from './Rating';
export { default as ratingClasses } from './ratingClasses';
export * from './ratingClasses';
| JavaScript | 3 | good-gym/material-ui | packages/material-ui/src/Rating/index.js | [
"MIT"
] |
UniqueNames () = =>
unique = 0
self.generateName (name) =
unique := unique + 1
'gen' + unique + '_' + name
nil
SymbolScope = exports.SymbolScope (parentScope, uniqueNames: @new UniqueNames) = =>
variables = {}
tags = {}
self.define (name) =
variables.(name) = true
self.generateVariable (n... | PogoScript | 4 | Sotrek/Alexa | Alexa_Cookbook/Workshop/StatePop/4_IOT/tests/node_modules/aws-sdk/node_modules/cucumber/node_modules/pogo/lib/symbolScope.pogo | [
"MIT"
] |
[[heapdump]]
= Heap Dump (`heapdump`)
The `heapdump` endpoint provides a heap dump from the application's JVM.
[[heapdump.retrieving]]
== Retrieving the Heap Dump
To retrieve the heap dump, make a `GET` request to `/actuator/heapdump`.
The response is binary data and can be large.
Its format depends upon the JVM on ... | AsciiDoc | 4 | techAi007/spring-boot | spring-boot-project/spring-boot-actuator-autoconfigure/src/docs/asciidoc/endpoints/heapdump.adoc | [
"Apache-2.0"
] |
<div class="mdl-cell mdl-cell--4-col mdl-cell--8-col-tablet mdl-cell--6-col-phone">
<h3>{{ title }}</h3>
<div>{{ text }}</div>
</div> | Liquid | 1 | noahcb/lit | website/src/_includes/partials/one-of-three-column.liquid | [
"Apache-2.0"
] |
* written by Brian Raiter
->+>+++>>+>++>+>+++>>+>++>>>+>+>+>++>+>>>>+++>+>>++>+>+++>>++>++>>+>>+>++>++>+>>>>+++>+>>>>++>++>>>>+>>++>+>+++>>>++>>++++++>>+>>++>+>>>>+++>>+++++>>+>+++>>>++>>++>>+>>++>+>+++>>>++>>+++++++++++++>>+>>++>+>+++>+>+++>>>++>>++++>>+>>++>+>>>>+++>>+++++>>>>++>>>>+>+>++>>+++>+>>>>+++>+>>>>+++>+>>... | Brainfuck | 2 | RubenNL/brainheck | examples/quine/quine-br.bf | [
"Apache-2.0"
] |
/*All Units in inches */
CylinderFaces = 100;
MMPerInch = 25.4;
ZF = 0.0002;
Screw632Diam = 0.138;
Screw632HeadDiam = .279;
BeltWidth = 3/8 + .02; // Adding .02" of wiggle room
BeltPlateZ = .25;
BeltPlateX = 4.4;
BeltPlateY = 1;
TeethY = BeltWidth;
TeethH = 1.27 / MMPerInch;
TeethPitch = .2;
TeethX = TeethPitch / 4;
... | OpenSCAD | 4 | nygrenj/Windows-iotcore-samples | Demos/AirHockeyRobot/CS/Robot Parts/YCarriageBeltPlate.scad | [
"MIT"
] |
// https://dom.spec.whatwg.org/#slotable
interface mixin Slotable {
readonly attribute HTMLSlotElement? assignedSlot;
};
Element includes Slotable;
Text includes Slotable;
| WebIDL | 4 | wkh237/jsdom | lib/jsdom/living/nodes/Slotable.webidl | [
"MIT"
] |
ByJ A @A | PureBasic | 0 | cnheider/onnx | onnx/backend/test/data/node/test_scan9_sum/test_data_set_0/output_0.pb | [
"MIT"
] |
/*
* SRT - Secure, Reliable, Transport
* Copyright (c) 2018 Haivision Systems Inc.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
*/
/******************... | C | 4 | attenuation/srs | trunk/3rdparty/srt-1-fit/haicrypt/hcrypt_sa.c | [
"MIT"
] |
//===--- TerminatorUtils.h ------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | C | 5 | gandhi56/swift | include/swift/SIL/TerminatorUtils.h | [
"Apache-2.0"
] |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This is a "No Compile Test" suite.
// http://dev.chromium.org/developers/testing/no-compile-tests
#include "base/task/task_traits.h"
#include "content... | nesC | 3 | zealoussnow/chromium | content/browser/browser_task_traits_unittest.nc | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
v2 = g3
| Ninja | 0 | srid/shake | src/Test/Ninja/test6-sub.ninja | [
"BSD-3-Clause"
] |
{
"config": {
"abort": {
"already_configured": "El servicio ya est\u00e1 configurado"
},
"step": {
"user": {
"data": {
"name": "Nombre del sensor",
"power": "Potencia contratada (kW)",
"power_... | JSON | 4 | MrDelik/core | homeassistant/components/pvpc_hourly_pricing/translations/es.json | [
"Apache-2.0"
] |
../coreplexip-e31-arty/flash.lds | Linker Script | 3 | Davidfind/rt-thread | bsp/hifive1/freedom-e-sdk/bsp/env/coreplexip-e51-arty/flash.lds | [
"Apache-2.0"
] |
; ModuleID = 'bpftrace'
source_filename = "bpftrace"
target datalayout = "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128"
target triple = "bpf-pc-linux"
%printf_t.3 = type { i64 }
%printf_t.2 = type { i64 }
%printf_t.1 = type { i64 }
%printf_t.0 = type { i64 }
%printf_t = type { i64 }
; Function Attrs: nounwind
declare i6... | LLVM | 2 | casparant/bpftrace | tests/codegen/llvm/unroll_async_id.ll | [
"Apache-2.0"
] |
module fsieve
/*
The Fast Sieve of Eratosthenes.
A sequential and optimized version of the sieve of Eratosthenes.
The program calculates a list of the first NrOfPrime primes.
The result of the program is the NrOfPrimes'th prime.
Strictness annotations have been added because the strictness analyser
is not able to de... | Clean | 5 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Clean/fsieve.icl | [
"MIT"
] |
#!/usr/bin/env awk -f
#
# @license Apache-2.0
#
# Copyright (c) 2017 The Stdlib 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
#
# ... | Awk | 4 | ghalimi/stdlib | tools/awk/median.awk | [
"BSL-1.0"
] |
20 5 0 0 100
0 1 3 1 2 3 [0] [0] [0]
1 1 2 6 8 [24] [8]
2 1 5 17 16 19 18 20 [0] [3] [0] [0] [0]
3 1 2 8 7 [4] [7]
4 1 3 18 6 13 [11] [-126] [-114]
5 1 1 10 [0]
6 1 1 14 [20]
7 1 1 12 [13]
8 1 5 13 16 19 20 17 [13] [6] [3] [12] [-3]
9 1 3 6 13 16 [-139] [0] [2]
10 1 4 19 12 11 6 [-5] [-129] [-79] [6]
11 1 1... | Eagle | 1 | klorel/or-tools | examples/data/rcpsp/single_mode_investment/rip20/rip176.sch | [
"Apache-2.0"
] |
SmalltalkCISpec {
#loading : [
SCIMetacelloLoadSpec {
#baseline : 'Tealight',
#directory : 'repository',
#platforms : [ #pharo ],
#load : [ 'all' ]
}
]
} | STON | 3 | badetitou/Tealight | .smalltalk.ston | [
"MIT"
] |
# This file is distributed under the same license as the Django package.
#
# Translators:
# F Wolff <friedel@translate.org.za>, 2019
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2019-01-04 18:57+0000\n"
"Last-Translator: F W... | Gettext Catalog | 2 | jpmallarino/django | django/contrib/sessions/locale/af/LC_MESSAGES/django.po | [
"BSD-3-Clause",
"0BSD"
] |
package {{invokerPackage}}.auth;
public enum OAuthFlow {
accessCode, implicit, password, application
} | HTML+Django | 3 | MalcolmScoffable/openapi-generator | modules/openapi-generator/src/main/resources/Java/libraries/webclient/auth/OAuthFlow.mustache | [
"Apache-2.0"
] |
// Daniel Shiffman
// http://codingtra.in
// http://patreon.com/codingtrain
// Code for: https://youtu.be/jrk_lOg_pVA
import toxi.physics3d.*;
import toxi.physics3d.behaviors.*;
import toxi.physics3d.constraints.*;
import toxi.geom.*;
int cols = 40;
int rows = 40;
Particle[][] particles = new Particle[cols][rows];
A... | Processing | 4 | aerinkayne/website | CodingChallenges/CC_020_ClothSimulation/Processing/CC_020_Cloth3D/Processing/CC_020_Cloth3D/CC_020_Cloth3D.pde | [
"MIT"
] |
#version 310 es
layout (local_size_x = 8, local_size_y = 8) in;
layout (binding = 0) readonly buffer In0BufY {
uvec2 data[];
} in0_buf_y;
layout (binding = 1) readonly buffer In0BufUV {
uvec2 data[];
} in0_buf_uv;
layout (binding = 2) readonly buffer In1BufY {
uvec2 data[];
} in1_buf_y;
layout (binding... | Slash | 3 | zongwave/libxcam | shaders/glsl/shader_blend_pyr.comp.sl | [
"Apache-2.0"
] |
#version 330
uniform vec3 light_source_position;
uniform float gloss;
uniform float shadow;
uniform float focal_distance;
uniform vec2 parameter;
uniform float opacity;
uniform float n_steps;
uniform float mandelbrot;
uniform vec3 color0;
uniform vec3 color1;
uniform vec3 color2;
uniform vec3 color3;
uniform vec3 co... | GLSL | 4 | OrKedar/geo-manimgl-app | manimlib/shaders/mandelbrot_fractal/frag.glsl | [
"MIT"
] |
Extension { #name : #AsyncImageSortedMethodsStream }
{ #category : #'*GToolkit-Extensions' }
AsyncImageSortedMethodsStream >> gtCompositionChildren [
^ { stream }
]
| Smalltalk | 2 | feenkcom/gtoolk | src/GToolkit-Extensions/AsyncImageSortedMethodsStream.extension.st | [
"MIT"
] |
/******************************************************************************
* 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++ | 5 | seeclong/apollo | modules/canbus/vehicle/wey/protocol/fbs1_243.cc | [
"Apache-2.0"
] |
= yield_content :foo
| Slim | 0 | kou/sinatra | sinatra-contrib/spec/content_for/layout.slim | [
"MIT"
] |
module.exports (terms) = terms.term {
constructor (args) =
self.is argument list = true
self.args = args
arguments () =
self.args
}
| PogoScript | 0 | Sotrek/Alexa | Alexa_Cookbook/Workshop/StatePop/4_IOT/tests/node_modules/aws-sdk/node_modules/cucumber/node_modules/pogo/lib/terms/argumentList.pogo | [
"MIT"
] |
package universe_test
import "testing"
option now = () => 2030-01-01T12:00:00Z
inData =
"
#datatype,string,long,dateTime:RFC3339,double,string,string,string,string
#group,false,false,false,false,true,true,true,true
#default,_result,,,,,,,
,result,table,_time,_value,_field,_measurement,cpu,host
,,0,2018-05-22T19... | FLUX | 4 | metrico/flux | stdlib/universe/today_test.flux | [
"MIT"
] |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
import 'dart:async';
import 'package:meta/meta.dart';
import 'package:process/process.dart';
import '../application_package.dart';
import... | Dart | 4 | Mayb3Nots/flutter | packages/flutter_tools/lib/src/macos/macos_ipad_device.dart | [
"BSD-3-Clause"
] |
{-# LANGUAGE CPP, RankNTypes, UndecidableInstances, GADTs, TypeSynonymInstances, FlexibleInstances, MultiParamTypeClasses, FlexibleContexts, ScopedTypeVariables #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Graphics.UI.FLTK.LowLevel.FileBrowser
(
-- * Hierarchy
--
-- $hierarchy
-- * Widget F... | C2hs Haskell | 4 | ericu/fltkhs | src/Graphics/UI/FLTK/LowLevel/FileBrowser.chs | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.