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 |
|---|---|---|---|---|---|
At: "027.hac":4:
parse error: syntax error
parser stacks:
state value
#STATE# (null)
#STATE# (type-ref) [4:1..4]
#STATE# identifier: a [4:6]
#STATE# (null)
#STATE# [ [4:7]
#STATE# (range) [4:8]
#STATE# } [4:9]
in state #STATE#, possible rules are:
bracketed_sparse_range: '[' range . ']' (#RULE#)
acceptable tokens a... | Bison | 0 | broken-wheel/hacktist | hackt_docker/hackt/test/parser/basic/027.stderr.bison | [
"MIT"
] |
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/OwnPtr.h>
#include <AK/RefPtr.h>
#include <AK/StringView.h>
#include "Database.h"
namespace PCIDB {
RefPtr<Database> Database::open(const String& filename)
{
auto file_or_error = Core... | C++ | 4 | r00ster91/serenity | Userland/Libraries/LibPCIDB/Database.cpp | [
"BSD-2-Clause"
] |
<%= render inline: 'Some inline content' %>
<%= cache do %>Some cached content<% end %>
| HTML+ERB | 2 | swaathi/rails | actionpack/test/fixtures/functional_caching/inline_fragment_cached.html.erb | [
"MIT"
] |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | JavaScript | 3 | dany-freeman/material-ui | packages/mui-icons-material/lib/JoinLeftOutlined.js | [
"MIT"
] |
<?xml version="1.0" encoding="UTF-8"?>
<!-- ******************************************************************* -->
<!-- -->
<!-- © Copyright IBM Corp. 2010, 2012 -->
<!-- ... | XPages | 5 | jesse-gallagher/XPagesExtensionLibrary | extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.controls/src/com/ibm/xsp/extlib/config/raw-extlib-dojo-form.xsp-config | [
"Apache-2.0"
] |
<template>
<div class="wrapper">
<input v-model="username" />
<div v-if="error" class="error">{{ error }}</div>
<img src="./logo.png" />
<Card/>
</div>
</template>
<script>
import Card from "../Card/Card.vue"
export default {
name: "Hello",
components: { Card },
data() {
return {
u... | Vue | 4 | justinforbes/cypress | npm/vite-dev-server/cypress/components/vue/Hello/Hello.vue | [
"MIT"
] |
<% template example() {...}
a = 123
b = "test";
c = 4.5
d = call other()
f = other2()
define g as String
h = true
i = false
j = null
%>
<html>
<head>
<title>Example<title>
<body>
<a href="http://example.com">Test link</a>
<% // Second block
if(a == 123 and b == "test") {
'yes'
} else {
'no'
}
foreach(i in 1.... | Tea | 3 | btashton/pygments | tests/examplefiles/example.tea | [
"BSD-2-Clause"
] |
function foo1(strs: TemplateStringsArray, x: number): string;
function foo1(strs: string[], x: number): number;
function foo1(...stuff: any[]): any {
return undefined;
}
var a = foo1 `${1}`;
var b = foo1([], 1);
function foo2(strs: string[], x: number): number;
function foo2(strs: TemplateStringsArra... | TypeScript | 4 | nilamjadhav/TypeScript | tests/cases/conformance/es6/templates/taggedTemplateStringsWithOverloadResolution2.ts | [
"Apache-2.0"
] |
/**
* 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\Http\Server;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Mes... | Zephir | 4 | tidytrax/cphalcon | phalcon/Http/Server/AbstractRequestHandler.zep | [
"BSD-3-Clause"
] |
[[languages]]
= Language Support
:toc: left
:toclevels: 4
:tabsize: 4
:docinfo1:
include::languages/kotlin.adoc[leveloffset=+1]
include::languages/groovy.adoc[leveloffset=+1]
include::languages/dynamic-languages.adoc[leveloffset=+1]
| AsciiDoc | 0 | spreoW/spring-framework | src/docs/asciidoc/languages.adoc | [
"Apache-2.0"
] |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>多媒体文件预览</title>
<script src="js/flv.min.js" type="text/javascript"></script>
<#include "*/commonHeader.ftl">
</head>
<style>
body {
background-color: #404040;
}
.m {
width: 1024px;
margin: 0 auto;... | FreeMarker | 3 | jerrykcode/kkFileView | server/src/main/resources/web/flv.ftl | [
"Apache-2.0"
] |
// run-pass
// Simple smoke test that unsafe traits can be compiled etc.
unsafe trait Foo {
fn foo(&self) -> isize;
}
unsafe impl Foo for isize {
fn foo(&self) -> isize { *self }
}
fn take_foo<F:Foo>(f: &F) -> isize { f.foo() }
fn main() {
let x: isize = 22;
assert_eq!(22, take_foo(&x));
}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/traits/trait-safety-ok.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
- dashboard: custom_goal_conversions
title: "[GA4] Custom Goal Conversions"
layout: newspaper
preferred_viewer: dashboards-next
elements:
- name: ''
type: text
title_text: ''
subtitle_text: ''
body_text: "<div style=\"text-align: center;\">\n\t<div>\n\t\t<h1 style=\"font-size:\
\ 28px;\... | LookML | 3 | bcmu/ga_four | dashboards/custom_goal_conversions.dashboard.lookml | [
"MIT"
] |
<!DOCTYPE html>
<html lang="en" class="spf-link no-js">
<head>
{% include meta.liquid %}
<!-- begin spf head -->
{% include styles.liquid %}
<!-- end spf head -->
</head>
<body id="body" class="{{ page.original_layout }}">
<header id="app-bar" class="app-bar promote-layer">
<div class="app-bar-container">
<butto... | Liquid | 4 | enterstudio/spfjs | web/layouts/base.liquid | [
"MIT"
] |
/*
* Copyright 2009-2016 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | C | 4 | funrunskypalace/vnpy | vnpy/api/oes/include/oes/sutil/logger/spk_log_config.h | [
"MIT"
] |
\\ Copyright (c) 2019 Bruno Deferrari.
\\ BSD 3-Clause License: http://opensource.org/licenses/BSD-3-Clause
\\ Documentation: docs/extensions/launcher.md
(package shen.x.launcher [*argv* success error launch-repl show-help unknown-arguments]
(define quiet-load
File -> (let Contents (read-file File)
(ma... | Shen | 4 | nondejus/shen-go | ShenOSKernel-22.2/extensions/launcher.shen | [
"BSD-3-Clause"
] |
const std = @import("std");
const expect = std.testing.expect;
const expectEqual = std.testing.expectEqual;
const Vector = std.meta.Vector;
test "@popCount vectors" {
comptime try testPopCountVectors();
try testPopCountVectors();
}
fn testPopCountVectors() !void {
{
var x: Vector(8, u32) = [1]u32{... | Zig | 4 | silversquirl/zig | test/behavior/popcount_stage1.zig | [
"MIT"
] |
module Clash (module Clash1) where
import Clash1 as Clash1
import Clash2 as Clash2
| PureScript | 0 | metaleap/purs-with-dump-coreimp | examples/docs/src/Clash.purs | [
"BSD-3-Clause"
] |
/*****************************************************************************
*
* QUERY:
* PREPARE <plan_name> [(args, ...)] AS <query>
*
*****************************************************************************/
PrepareStmt: PREPARE name prep_type_clause AS PreparableStmt
{
PGPrepareStmt *n = ma... | Yacc | 3 | AldoMyrtaj/duckdb | third_party/libpg_query/grammar/statements/prepare.y | [
"MIT"
] |
/* Do not edit this file - Generated by Perlito5 9.0 */
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
MODULE = ReturnArrayRef PACKAGE = ReturnArrayRef
void test ()
PPCODE:
SV *something = [newSVpv("Hello", 0), newSVpv("World", 0)];
PUSHs(something);
| XS | 2 | lablua/Perlito | misc/t5-xs/ReturnArrayRef/ReturnArrayRef.xs | [
"Artistic-2.0"
] |
Module: environment-reports
Author: Andy Armstrong, Jason Trenouth
Synopsis: ReStructuredText Library report generator (use with Sphinx)
Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc.
All rights reserved.
License: See License.txt in this distribution for detail... | Dylan | 4 | kryptine/opendylan | sources/environment/reports/library-report-rst.dylan | [
"BSD-2-Clause"
] |
import {Injectable} from '@angular/core';
class MyAlternateService {}
function alternateFactory() {
return new MyAlternateService();
}
@Injectable({providedIn: 'root', useFactory: alternateFactory})
export class MyService {
}
| TypeScript | 4 | John-Cassidy/angular | packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_di/di/usefactory_without_deps.ts | [
"MIT"
] |
{ buildPythonPackage
, fetchPypi
, fetchurl
, pythonOlder
, lib
, nixosTests
# pythonPackages
, tqdm
, dnspython
, expiringdict
, urllib3
, requests
, publicsuffix2
, xmltodict
, geoip2
, imapclient
, dateparser
, elasticsearch-dsl
, kafka-python
, mailsuite
, lxml
, boto3
}:
let
dashboard = fetchurl {
url = "h... | Nix | 4 | siddhantk232/nixpkgs | pkgs/development/python-modules/parsedmarc/default.nix | [
"MIT"
] |
--- ps/base.ps.org 2007-02-28 11:43:50.000000000 +0000
+++ ps/base.ps 2007-02-28 11:44:05.000000000 +0000
@@ -158,48 +158,46 @@
% reencode the font
% <encoding-vector> <fontdict> -> <newfontdict>
-/reencode { %def
- dup length 5 add dict begin
- { %forall
- 1 index /FID ne
- { def }{ pop pop } ifelse... | PostScript | 4 | davidlrichmond/macports-ports | print/a2ps/files/patch-ps-base.ps | [
"BSD-3-Clause"
] |
"""
Template for AdjustedArray windowed iterators.
This file is intended to be used by inserting it via a Cython include into a
file that's defined a type symbol named `databuffer` that can be used like a
2-D numpy array.
See Also
--------
zipline.lib._floatwindow
zipline.lib._intwindow
zipline.lib._datewindow
"""
fr... | Cython | 5 | leonarduschen/zipline | zipline/lib/_windowtemplate.pxi | [
"Apache-2.0"
] |
require "./basic_block"
struct LLVM::BasicBlockCollection
include Enumerable(LLVM::BasicBlock)
def initialize(@function : Function)
end
def append(name = "")
context = LibLLVM.get_module_context(LibLLVM.get_global_parent(@function))
BasicBlock.new LibLLVM.append_basic_block_in_context(context, @funct... | Crystal | 3 | mgomes/crystal | src/llvm/basic_block_collection.cr | [
"Apache-2.0"
] |
NB. Restricted Boltzmann Machine Implementation
NB. Restricted Boltzmann Machines can be used for pattern recognition,
NB. similar to Hopfield Networks (see hopfield.ijs) and for
NB. classification problems. The RBM network is generated with two
NB. layers - the visible layer, and the hidden layer.
NB. The Energy Fun... | J | 5 | jonghough/jlearn | energy/rbm.ijs | [
"MIT"
] |
\require "a@0.3"
| LilyPond | 0 | HolgerPeters/lyp | spec/user_files/not_found.ly | [
"MIT"
] |
#%RAML 0.8
title: Machines API
baseUri: http://example.api.com/{version}
version: v1
schemas:
- type1: !include schemas/type1.json
- type2: !include schemas/type2.json
/machines:
get:
description: Gets a list of existing machines
responses:
200:
body:
application/json:
... | RAML | 3 | plroebuck/abao | test/fixtures/machines-ref_other_schemas.raml | [
"MIT"
] |
# this is ignored by Clippy, but allowed for other tools like clippy-service
[third-party]
clippy-feature = "nightly"
| TOML | 0 | Eric-Arellano/rust | src/tools/clippy/tests/ui/crashes/third-party/clippy.toml | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#[no_mangle]
pub fn cold_function(c: u8) {
println!("cold {}", c);
}
#[no_mangle]
pub fn hot_function(c: u8) {
std::env::set_var(format!("var{}", c), format!("hot {}", c));
}
fn main() {
let arg = std::env::args().skip(1).next().unwrap();
for i in 0 .. 1000_000 {
let some_value = arg.as_bytes... | Rust | 3 | Eric-Arellano/rust | src/test/run-make-fulldeps/pgo-use/main.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
// MODULE: m1
// FILE: k1.kt
package k
private class KPrivate
internal class KInternal
public class KPublic
class A {
protected class KProtected
}
// FILE: k2.kt
package k2
import k.<!INVISIBLE_REFERENCE!>KPrivate<!>
import k.KInternal
import k.KPublic
import k.A.KProtected
// MODULE: m2(m1)
// FILE: k3.kt
pac... | Kotlin | 4 | qussarah/declare | compiler/testData/diagnostics/tests/imports/CheckVisibility.kt | [
"Apache-2.0"
] |
package test
abstract class A {
inner class Inner(val x: String)
}
abstract class B : A()
| Kotlin | 3 | Mu-L/kotlin | jps-plugin/testData/incremental/pureKotlin/innerClassesFromSupertypes/a.kt | [
"ECL-2.0",
"Apache-2.0"
] |
---
layout: post
title: Measures and Case Splitting
date: 2018-02-23
comments: true
author: Niki Vazou
published: true
tags: measures, flags
demo: MeasuresAndCaseSplitting.hs
---
Liquid Haskell has a flag called `--no-case-expand`
which can make verification of your code much faster,
especially when your code is usin... | Literate Haskell | 5 | curiousleo/liquidhaskell | docs/blog/2018-02-23-measures-and-case-splitting.lhs | [
"MIT",
"BSD-3-Clause"
] |
# Interface features should not be unique
template features/interface/src_route/config;
| Pan | 0 | ned21/aquilon | tests/broker/data/utsandbox/aquilon/features/interface/src_route/config.pan | [
"Apache-2.0"
] |
<table width="3D"600"" border="3D"0"" align="3D"center"" cellpadding="3D"0"" cellsp="acing=3D"0"" bgcolor="3D"#ffffff""><tbody><tr><td colspan="3D"3""><table border="=3D"0"" cellpadding="3D"0"" cellspacing="3D"0"" width=... | HTML | 0 | cnheider/nylas-mail | packages/client-app/spec/fixtures/emails/email_17_stripped.html | [
"MIT"
] |
<?xml version="1.0"?>
<!DOCTYPE rdf:RDF [
<!ENTITY lumify "http://lumify.io#" >
<!ENTITY owl "http://www.w3.org/2002/07/owl#" >
<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
]>... | Web Ontology Language | 4 | wulinyun/lumify | examples/ontology-minimal/minimal.owl | [
"Apache-2.0"
] |
<VirtualHost *:80>
ServerName unhealthyauthor
ServerAlias ${AUTHOR_DEFAULT_HOSTNAME}
DocumentRoot /mnt/var/www/default
<Directory />
Options FollowSymLinks
AllowOverride None
# Insert filter
SetOutputFilter DEFLATE
# Don't compress images
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png)... | ApacheConf | 4 | ChristoVP/my-test-project | dispatcher/src/conf.d/available_vhosts/000_unhealthy_author.vhost | [
"Apache-2.0"
] |
( function () {
async function OimoPhysics() {
const frameRate = 60;
const world = new OIMO.World( 2, new OIMO.Vec3( 0, - 9.8, 0 ) ); //
function getShape( geometry ) {
const parameters = geometry.parameters; // TODO change type to is*
if ( geometry.type === 'BoxGeometry' ) {
const sx = parameter... | JavaScript | 5 | brunnacroches/portifolio-brunna | node_modules/three/examples/js/physics/OimoPhysics.js | [
"Unlicense"
] |
$$ MODE TUSCRIPT
LOOP n=0,999999999
n=n+1
ENDLOOP
| Turing | 1 | LaudateCorpus1/RosettaCodeData | Task/Integer-sequence/TUSCRIPT/integer-sequence.tu | [
"Info-ZIP"
] |
/*
BLAKE2 reference source code package - optimized C implementations
Written in 2012 by Samuel Neves <sneves@dei.uc.pt>
To the extent possible under law, the author(s) have dedicated all copyright
and related and neighboring rights to this software to the public domain
worldwide. This software is dist... | C | 4 | shawwn/cpython | Modules/_blake2/impl/blake2-dispatch.c | [
"0BSD"
] |
/*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.js.sourceMap;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.ann... | Java | 4 | Mu-L/kotlin | js/js.sourcemap/src/org/jetbrains/kotlin/js/sourceMap/SourceMapMappingConsumer.java | [
"ECL-2.0",
"Apache-2.0"
] |
@app
mockapp
@events
ping
@http
get /foo
| Arc | 2 | defionscode/sandbox | test/mock/no-index-pass/.arc | [
"Apache-2.0"
] |
#%RAML 1.0 Trait
displayName: Paged
description: |
Apply pagination to the API endpoint. Use page token to pass a cursor to the external app to simplify pagination.
queryParameters:
nextPageToken?:
type: string
description: |
List response may contain this parameter pointing to the next results page. ... | RAML | 4 | Acidburn0zzz/ChromeRestClient | Server API/traits/paged.raml | [
"Apache-2.0"
] |
#![crate_type = foo!()] //~ ERROR malformed `crate_type` attribute
macro_rules! foo {
() => {"rlib"};
}
fn main() {}
| Rust | 3 | ohno418/rust | src/test/ui/invalid/invalid-crate-type-macro.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
/*
graphviz dot file that renders the Thrift Decoder state machine.
Rendered via: dot -Tsvg -o thrift_state_machine.svg thrift_state_machine.dot
*/
digraph {
{
rank = same;
Start;
MessageBegin;
MessageEnd;
Done;
};
{
rank = same;
StructBegin;
StructEnd;
};
{
rank = s... | Graphviz (DOT) | 5 | dcillera/envoy | source/extensions/filters/network/thrift_proxy/docs/thrift_state_machine.dot | [
"Apache-2.0"
] |
<!DOCTYPE html>
<html>
<head>
<script src="../module-test-files/Car.js"></script>
<script src="../module-test-files/shirt.js"></script>
<script src="../file1.js"></script>
<script src="../file3.js"></script>
<!-- leave follow empty line for later file including -->
<script>
... | HTML | 1 | ravitejavalluri/brackets | src/extensions/default/JavaScriptCodeHints/unittest-files/basic-test-files/test.html | [
"MIT"
] |
- view: _opportunity
sql_table_name: salesforce._opportunity
fields:
# dimensions #
- dimension: id
primary_key: true
type: string
sql: ${TABLE}.id
- dimension: account_id
type: string
hidden: true
sql: ${TABLE}.account_id
- dimension: amount
type: number
sql: ${TABLE}.amou... | LookML | 4 | rsharma03/blocks_salesforce | submodules/opportunity_snapshot/_opportunity.view.lookml | [
"MIT"
] |
output "worker_ips" {
value = join(",", aws_instance.worker.*.public_ip)
}
| HCL | 2 | ursinnDev/rancher_rancher | tests/validation/tests/v3_api/resource/terraform/rke2/worker/outputs.tf | [
"Apache-2.0"
] |
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (crosschain/CrossChainEnabled.sol)
pragma solidity ^0.8.4;
import "./errors.sol";
/**
* @dev Provides information for building cross-chain aware contracts. This
* abstract contract provides accessors and modifiers to control the execut... | Solidity | 5 | ScopeLift/openzeppelin-contracts | contracts/crosschain/CrossChainEnabled.sol | [
"MIT"
] |
#include "caffe2/operators/mod_op.h"
#include "caffe2/core/context_gpu.h"
namespace caffe2 {
namespace {
template <typename T>
__global__ void ModOpSimpleKernel(const int N, const int64_t divisor_,
const T* data_ptr, T* output_ptr) {
CUDA_1D_KERNEL_LOOP(i, N) {
output_ptr[i] = data... | Cuda | 4 | Hacky-DH/pytorch | caffe2/operators/mod_op.cu | [
"Intel"
] |
^FX module: HelloWorld
^FX date: 2014/12/26
^FX descr: Simple hello world program in Extended ZPL
^FO20,10
^ADN90,50,N
^FDHello World!
^FS | Zimpl | 3 | haskellcamargo/ExtendedZPL | zpl/output.zpl | [
"MIT"
] |
-- A library that can be used in custom lua scripts for benchmarking
local _M = {}
local json = require "cjson"
local os = require "os"
-- Use `null` to represent any NaN or Inf:
json.encode_invalid_numbers("null")
function _M.init(args)
local query = args[1]
return json.encode({query=query}), args[2], args[3],... | Lua | 5 | gh-oss-contributor/graphql-engine-1 | server/bench-wrk/wrk-websocket-server/bench_scripts/bench-lib-wrk2.lua | [
"Apache-2.0",
"MIT"
] |
exec("swigtest.start", -1);
nums = new_Nums();
// In overloading in Scilab, double has priority over all other numeric types
checkequal(Nums_over(nums, 0), "double", "Nums_over(nums, 0)");
// Just checkequal if the following are accepted without exceptions being thrown
Nums_doublebounce(nums, %inf);
Nums_doubleboun... | Scilab | 4 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/overload_numeric_runme.sci | [
"BSD-3-Clause"
] |
// run
// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Check closure in const declaration group can be compiled
// and set correct value
package main
import "unsafe"
const (
x = unsafe.Sizeof(func() {... | Go | 3 | SSSDNSY/go | test/fixedbugs/issue30709.go | [
"BSD-3-Clause"
] |
REVERSE
;Take in a string and reverse it using the built in function $REVERSE
NEW S
READ:30 "Enter a string: ",S
WRITE !,$REVERSE(S)
QUIT
| M | 4 | LaudateCorpus1/RosettaCodeData | Task/Reverse-a-string/MUMPS/reverse-a-string.mumps | [
"Info-ZIP"
] |
#include "metrics/stats_reporter.h"
#include "util/streaming_logging.h"
namespace ray {
namespace streaming {
std::shared_ptr<ray::stats::Metric> StatsReporter::GetMetricByName(
const std::string &metric_name) {
std::unique_lock<std::mutex> lock(metric_mutex_);
auto metric = metric_map_.find(metric_name);
i... | C++ | 4 | linyiyue/ray | streaming/src/metrics/stats_reporter.cc | [
"Apache-2.0"
] |
multi sub next(\x --> Nil) { THROW(nqp::const::CONTROL_NEXT, x) }
multi sub last(\x --> Nil) { THROW(nqp::const::CONTROL_LAST, x) }
# vim: expandtab shiftwidth=4
| Perl6 | 3 | raydiak/rakudo | src/core.e/control.pm6 | [
"Artistic-2.0"
] |
function handler () {
echo "Custom Runtime Lambda handler executing." 1>&2;
EVENT_DATA=$1
echo "$EVENT_DATA" 1>&2;
RESPONSE="Echoing request: '$EVENT_DATA'"
echo $RESPONSE
}
| Shell | 4 | matt-mercer/localstack | tests/integration/awslambda/functions/custom-runtime/function.sh | [
"Apache-2.0"
] |
' Module trans.astranslator
'
' Placed into the public domain 24/02/2011.
' No warranty implied; use at your own risk.
Import trans
Class AsTranslator Extends CTranslator
Method TransType$( ty:Type )
If VoidType( ty ) Return "void"
If BoolType( ty ) Return "Boolean"
If IntType( ty ) Return "int"
If FloatTy... | Monkey | 5 | Regal-Internet-Brothers/webcc-monkey | webcc.data/modules/trans/astranslator.monkey | [
"Zlib"
] |
{
"@context": {
"@version": 1.1,
"@protected": true,
"protected1": "ex:protected1",
"protected2": {
"@id": "ex:protected2",
"@context": null
}
},
"protected1": "p === ex:protected1",
"protected2": {
"@context": {
"protected1": "ex:protected3"
},
"protected1": "p... | JSONLD | 2 | fsteeg/json-ld-api | tests/expand/pr14-in.jsonld | [
"W3C"
] |
.class public Ltrycatch/TestTryWithEmptyCatchTriple;
.super Ljava/lang/Object;
.field static field:[I
.method static test()V
.registers 3
const/4 v0, 0x1
:try_start_1
sget-object v1, Ltrycatch/TestTryWithEmptyCatchTriple;->field:[I
const/4 v2, 0x0
aput v0, v1, v2
:try_end_1
.catch ... | Smali | 3 | Dev-kishan1999/jadx | jadx-core/src/test/smali/trycatch/TestTryWithEmptyCatchTriple.smali | [
"Apache-2.0"
] |
cylinder(h = 10, r=20, $fs=6); | OpenSCAD | 1 | heristhesiya/OpenJSCAD.org | packages/io/scad-deserializer/tests/primitive_solids/cylinderEx4.scad | [
"MIT"
] |
:- object('04-apt').
:- uses(user,[is_list/1]).
:- uses(marelle,[bash/1,install_apt/1,join/2]).
:- use_module(apply,[maplist/2]).
:- private([apt_updated/0]).
:- discontiguous met/2.
:- discontiguous meet/2.
% before the directive:
% :- multifile installs_with_apt/1
% add the directive:
:- public installs_with_... | Logtalk | 3 | PaulBrownMagic/logtalk3 | tools/wrapper/marelle/04-apt.lgt | [
"Apache-2.0"
] |
USING: llvm.ffi ;
IN: llvm
: initialize ( -- )
LLVMGetGlobalPassRegistry LLVMInitializeCore ;
! https://github.com/fsprojects/llvm-fs/blob/master/src/LLVM/Target.fs
: initialize-native-target ( -- )
LLVMInitializeX86TargetInfo
LLVMInitializeX86Target
LLVMInitializeX86TargetMC ;
: initialize-native-as... | Factor | 4 | alex-ilin/factor | extra/llvm/llvm.factor | [
"BSD-2-Clause"
] |
#pragma once
#if _DEBUG && _WIN64
void init_global_error_handlers();
#endif
| C | 3 | tameemzabalawi/PowerToys | src/runner/unhandled_exception_handler.h | [
"MIT"
] |
#N canvas 680 39 575 871 12;
#X declare -stdpath ./;
#X floatatom 310 374 0 0 100 0 - - - 0;
#X obj 88 553 +~;
#X text 55 88 If you're writing to and reading from a delay line \,
you have to get the write sorted before the read or else you'll never
get less than a block's delay. This patch compares a "wrong" flanger
wi... | Pure Data | 5 | myQwil/pure-data | doc/3.audio.examples/G05.execution.order.pd | [
"TCL"
] |
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exslt="http://exslt.org/common"
exclude-result-prefixes="exslt">
<xsl:variable name="x">
<y/>
</xsl:variable>
<xsl:template match="doc">
<html>
<body>
<script>if (window.testRunner) testRunner.dumpAsText();</sc... | XSLT | 3 | zealoussnow/chromium | third_party/blink/web_tests/fast/xsl/exslt-node-set.xsl | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
$TTL 300
1 IN PTR foo.example.com.
2 IN PTR bar.example.com.
3 IN PTR baz.example.com.
4 IN PTR silly.example.com.
5 IN PTR willy.example.com.
6 IN PTR billy.example.com.
7 IN PTR my.example.com.
8 ... | DNS Zone | 1 | IT-Sumpfling/dnscontrol | pkg/js/parse_tests/032-reverseip/3.2.1.in-addr.arpa.zone | [
"MIT"
] |
path = require 'path'
_ = require 'underscore'
_str = require 'underscore.string'
{convertStackTrace} = require 'coffeestack'
React = require 'react'
ReactDOM = require 'react-dom'
marked = require 'marked'
sourceMaps = {}
formatStackTrace = (spec, message='', stackTrace, indent="") ->
return stackTrace unless stack... | CoffeeScript | 5 | cnheider/nylas-mail | packages/client-app/spec/n1-spec-runner/n1-gui-reporter.cjsx | [
"MIT"
] |
using Uno;
using Uno.UX;
using Fuse;
public class UXClassTest
{
public UXClassTest()
{
var mc = new MyClass();
debug_log("String: " + mc.MyString);
debug_log("Int: " + mc.MyInt);
}
}
| Uno | 2 | mortend/fuse-studio | Source/Simulator/Tests/UXFeaturesTestApp/UXClass/UXClass.uno | [
"MIT"
] |
ARCHIVE_READ_NEW(3) manual page
== NAME ==
'''archive_read_new'''
- functions for reading streaming archives
== LIBRARY ==
Streaming Archive Library (libarchive, -larchive)
== SYNOPSIS ==
'''<nowiki>#include <archive.h></nowiki>'''
<br>
''struct archive *''
<br>
'''archive_read_new'''(''void'');
== DESCRIPT... | MediaWiki | 2 | probonopd/imagewriter | dependencies/libarchive-3.4.2/doc/wiki/ManPageArchiveReadNew3.wiki | [
"Apache-2.0"
] |
public final class MyException /* MyException*/ extends java.lang.Exception {
public MyException();// .ctor()
}
public final class C /* C*/ {
@kotlin.jvm.Throws(exceptionClasses = {Exception::class})
public C() throws java.lang.Exception;// .ctor()
@kotlin.jvm.Throws(exceptionClasses = {Exception::class}... | Java | 4 | Mu-L/kotlin | compiler/testData/asJava/ultraLightClasses/throwsAnnotation.java | [
"ECL-2.0",
"Apache-2.0"
] |
*** Settings ***
Documentation This resource provides any keywords related to the Harbor private registry appliance
*** Variables ***
${retag_btn} //clr-dg-action-bar//button[contains(.,'Retag')]
${copy_project_name_xpath} //*[@id='project-name']
${copy_repo_name_xpath} //*[@id='repo-name']
${tag_name_xpath} //*... | RobotFramework | 3 | yxxhero/harbor | tests/resources/Harbor-Pages/Project-Copy-Elements.robot | [
"Apache-2.0"
] |
( Generated from test_example_listedit_in.muv by the MUV compiler. )
( https://github.com/revarbat/muv )
lvar argparse::current_mode
lvar argparse::modes_list
lvar argparse::flags_map
lvar argparse::posargs_map
lvar argparse::remainder_map
: argparse::init[ -- ret ]
"" argparse::current_mode !
{ }list argpar... | MUF | 5 | revarbat/muv | tests/test_example_listedit_cmp.muf | [
"BSD-2-Clause"
] |
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/npm-debug.log*
/yarn-error.log
/yarn.lock
/package-lock.json
# production
/dist
# misc
.DS_Store
# umi
/src/.umi
/src/.umi-production
/src/.umi-test
/.env.local
| Smarty | 4 | Dolov/umi | packages/create-umi-app/templates/AppGenerator/.gitignore.tpl | [
"MIT"
] |
# Parameters
param N := read "network.csv" as "1n" use 1 comment "#";
set Ns := {0..N-1};
set N0 := {1..N-1};
param L := read "network.csv" as "2n" use 1 comment "#";
set Ls := {1..L};
param piTp := read "network.csv" as "3n" use 1 comment "#";
param piTd := read "network.csv" as "4n" use 1 comment "#";
param... | Zimpl | 5 | sebMathieu/dsima | simulator/models/DSO-operation.zpl | [
"BSD-3-Clause"
] |
CREATE KEYSPACE mykeyspace WITH replication = {'class':'SimpleStrategy', 'replication_factor' : 1};
USE mykeyspace;
CREATE TABLE mykeyspace.users
(
id uuid PRIMARY KEY,
ip_numbers frozen<set<inet>>,
addresses frozen<map<text, tuple<text>>>,
emails frozen<list<varchar>>,
);
INSERT INTO my... | SQL | 4 | DBatOWL/tutorials | persistence-modules/java-cassandra/src/main/resources/frozen-keyword.cql | [
"MIT"
] |
module snabb-config-leader-v1 {
namespace snabb:config-leader;
prefix config-leader;
import ietf-alarms { prefix al; }
organization "Igalia, S.L.";
contact "Andy Wingo <wingo@igalia.com>";
description
"RPC interface for ConfigLeader Snabb app.";
revision 2017-09-28 {
description "Add default dis... | YANG | 5 | peahonen/snabb | src/lib/yang/snabb-config-leader-v1.yang | [
"Apache-2.0"
] |
---
title: "Men's and Women's Tennis"
author: "Thomas Mock"
date: "4/6/2019"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
```{r}
library(tidyverse)
library(rvest)
library(lubridate)
library(janitor)
```
### Get Women's Slams Records
I couldn't find a great source of h... | RMarkdown | 5 | StephRoark/tidytuesday-1 | data/2019/2019-04-09/tennis_pros.rmd | [
"CC0-1.0"
] |
import haxe.macro.Compiler;
import haxe.macro.Context;
import haxe.macro.Expr;
import haxe.macro.Expr.Field;
class Main {
static function main() OldClass.define();
}
#if !macro
@:build(OldClass.build())
#end
@:native("NewClass")
class OldClass {
#if !macro
public function new() {};
#end
macro public static fu... | Haxe | 3 | Alan-love/haxe | tests/misc/java/projects/Issue10280/Main.hx | [
"MIT"
] |
/**
Copyright 2015 Acacia Team
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | X10 | 4 | mdherath/Acacia | src/org/acacia/log/Logger.x10 | [
"Apache-2.0"
] |
name = "LibSSH2_jll"
uuid = "29816b5a-b9ab-546f-933c-edad1886dfa8"
version = "1.9.1+2"
[deps]
MbedTLS_jll = "c8ffd9c3-330d-5841-b78e-0817d7145fa1"
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
[compat]
julia = "1.6"
[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f... | TOML | 3 | jonas-schulze/julia | stdlib/LibSSH2_jll/Project.toml | [
"MIT"
] |
hello-world = (name = "World") ->
console.log "Hello, ${name}!"
# usage:
# with parameter
hello-world "Dude" # => "Hello, Dude!"
# parameterless call with default
hello-world! # => "Hello, World!" | LiveScript | 4 | kennethsequeira/Hello-world | LiveScript/hello-world.ls | [
"MIT"
] |
DROP TRIGGER event_trigger_table_name_update_trigger ON hdb_catalog.hdb_table;
DROP FUNCTION hdb_catalog.event_trigger_table_name_update();
ALTER TABLE hdb_catalog.event_triggers
ADD CONSTRAINT event_triggers_schema_name_table_name_fkey
FOREIGN KEY (schema_name, table_name)
REFERENCES hdb_catalog.hdb_table(table_sche... | SQL | 3 | gh-oss-contributor/graphql-engine-1 | server/src-rsr/migrations/40_to_39.sql | [
"Apache-2.0",
"MIT"
] |
#---------------------------------------------------------------------------
#
# zz40-xc-ovr.m4
#
# Copyright (c) 2013 - 2018 Daniel Stenberg <daniel@haxx.se>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright no... | M4 | 5 | jjatria/curl | m4/zz40-xc-ovr.m4 | [
"curl"
] |
<!DOCTYPE html>
<head>
<meta charset=UTF-8/>
<title>CacheCloud审核邮件</title>
</head>
<body>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<p>
<table style="width:100%; font-size:12px;" width="100%" cellpadding="0" cellspacing="0">
<colgroup>
<col style="width: 5px;">
</colgro... | FreeMarker | 3 | JokerQueue/cachecloud | cachecloud-web/src/main/resources/templates/appAudit.ftl | [
"Apache-2.0"
] |
BaxisJ | PureBasic | 1 | pchandrasekaran1595/onnx | onnx/backend/test/data/node/test_cumsum_2d_axis_1/test_data_set_0/input_1.pb | [
"Apache-2.0"
] |
#define UPSAMPLE_FORMAT uint4
#define UPSAMPLE_DISABLE_FILTERING
#include "upsample_bilateral_float4CS.hlsl"
| HLSL | 0 | rohankumardubey/WickedEngine | WickedEngine/shaders/upsample_bilateral_uint4CS.hlsl | [
"MIT"
] |
size: 2048px 1024px;
dpi: 240;
font: "Latin Modern Roman";
limit-x: -4 4;
limit-y: -2 2;
axes {
}
vectors {
size: 1pt;
data-x: csv("test/testdata/vectorfield.csv" x);
data-y: csv("test/testdata/vectorfield.csv" y);
data-dx: csv("test/testdata/vectorfield.csv" dx);
data-dy: csv("test/testdata/vectorfield.csv... | CLIPS | 3 | asmuth-archive/travistest | test/examples/charts_scientific_vectorfield.clp | [
"Apache-2.0"
] |
set title 'Checksum performance (lower is better)'
set ylabel 'Time in ms'
set xlabel 'Batch'
set grid # Show the grid
set term png
set output 'iteration_4.png'
plot \
'iteration_1.csv' title "iteration_1", 'iteration_2.csv' title "iteration_2", 'iteration_4.csv' title "iteration_4", 100 title 'Napkin math lower bound ... | Gnuplot | 4 | epk/napkin-math | newsletter/14-syncing/iteration_4.gnuplot | [
"MIT"
] |
concrete RelativeSpa of Relative = CatSpa ** RelativeRomance with
(ResRomance = ResSpa) ;
| Grammatical Framework | 0 | daherb/gf-rgl | src/spanish/RelativeSpa.gf | [
"BSD-3-Clause"
] |
#![allow(unused_assignments)]
// expect-exit-status-1
struct Firework {
strength: i32,
}
impl Drop for Firework {
fn drop(&mut self) {
println!("BOOM times {}!!!", self.strength);
}
}
fn main() -> Result<(),u8> {
let _firecracker = Firework { strength: 1 };
let _tnt = Firework { strength... | Rust | 5 | Eric-Arellano/rust | src/test/run-make-fulldeps/coverage/drop_trait.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
<?php
echo "The content (Test #15)";
| HTML+PHP | 0 | tidytrax/cphalcon | tests/_data/fixtures/views/activerender/index.phtml | [
"BSD-3-Clause"
] |
// Copyright (c) 2013-2022 Bluespec, Inc. All Rights Reserved.
package Cur_Cycle;
// ================================================================
// A convenience function to return the current cycle number during BSV simulations
ActionValue #(Bit #(32)) cur_cycle = actionvalue
Bit #(32) t <- $stime;
r... | Bluespec | 4 | darius-bluespec/Flute | src_Core/BSV_Additional_Libs/Cur_Cycle.bsv | [
"Apache-2.0"
] |
# This script uses the Sysmon Network Connections to create a list of Connection IDs and their associated process details.
# Version 1.0 (November 2018)
#
# Authors: Jeff Atkinson (jatkinson@salesforce.com)
#
# Copyright (c) 2017, salesforce.com, inc.
# All rights reserved.
# Licensed under the BSD 3-Clause license.
#... | Bro | 4 | Mantix4/bro-sysmon | bro/fingerprint_mapping/trackNetConns.bro | [
"BSD-3-Clause"
] |
*-------------------------------------------------------------------------------
* GHG module
* - CH4 FFI + CH4 waste + CH4 open fires
* - N2O FFI + N2O waste + N2O open fires
*-------------------------------------------------------------------------------
$ifthen %phase%=='conf'
* Define the oghg baseline dat... | GAMS | 3 | witch-team/witchmodel | modules/mod_ghg.gms | [
"Apache-2.0"
] |
;-----------------------------------------------------------------------------------
;
; The usual norm is:
; Don't change anything in this file. It's the heart of the system.
; But if you change something, be careful...
;
; Write your scripts in the scripts.nls file (open it from "Included Files" chooser
;
; Please,... | NetLogo | 5 | ajnavarro/language-dataset | data/github.com/fsancho/Complex-Networks-Toolbox/01101be05580d57d04c2e720dc1837cf0fa743dd/Complex Networks Model 6.0.nlogo | [
"MIT"
] |
name: haskell-platform
version: {{hpVersion}}
homepage: http://haskell.org/platform
license: BSD3
license-file: LICENSE
author: libraries@haskell.org
maintainer: haskell-platform@projects.haskell.org
category: System
synopsis: ... | mupad | 4 | bgamari/haskell-platform | hptool/templates/haskell-platform.cabal.mu | [
"BSD-3-Clause"
] |
import { UIRow, UIText, UISpan, UIBreak } from './libs/ui.js';
function SidebarGeometryBufferGeometry( editor ) {
var strings = editor.strings;
var signals = editor.signals;
var container = new UIRow();
function update( object ) {
if ( object === null ) return; // objectSelected.dispatch( null )
if ( obje... | JavaScript | 4 | yangmengwei925/3d | editor/js/Sidebar.Geometry.BufferGeometry.js | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.