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 |
|---|---|---|---|---|---|
/*
* 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 ... | AspectJ | 5 | timfel/netbeans | java/performance/aspectj/ListenerCount.aj | [
"Apache-2.0"
] |
package promql_test
import "testing"
import "internal/promql"
option now = () => 2030-01-01T00:00:00Z
outData =
"
#datatype,string,long,dateTime:RFC3339,dateTime:RFC3339,dateTime:RFC3339,double
#group,false,true,true,true,false,false
#default,_result,0,1970-01-01T00:00:00Z,1970-01-01T00:00:00Z,,
,result,table,_... | FLUX | 3 | metrico/flux | stdlib/testing/promql/emptyTable_test.flux | [
"MIT"
] |
.dropdown-menu {
// setting a margin is not compatible with popper.
margin: 0 !important;
> li > a {
padding: 3px 10px;
}
}
| Less | 3 | KarlParkinson/mitmproxy | web/src/css/dropdown.less | [
"MIT"
] |
#![feature(half_open_range_patterns)]
#![feature(exclusive_range_pattern)]
#![allow(illegal_floating_point_literal_pattern)]
macro_rules! m {
($s:expr, $($t:tt)+) => {
match $s { $($t)+ => {} }
}
}
fn main() {
m!(0, ..u8::MIN);
//~^ ERROR lower range bound must be less than upper
//~| ERRO... | Rust | 3 | Eric-Arellano/rust | src/test/ui/half-open-range-patterns/half-open-range-pats-thir-lower-empty.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
FORMAT: 1A
# Machines API
# Group Machines
# Machine [/machines/{name}]
+ Parameters
+ name (required,`willy`)
## Get Machine [GET]
- Response 200 (application/json; charset=utf-8)
{
"type": "bulldozer",
"name": "willy"
}
| API Blueprint | 4 | tomoyamachi/dredd | packages/dredd/test/fixtures/single-get-uri-template.apib | [
"MIT"
] |
#tag IOSView
Begin iosView ShakingView
BackButtonTitle = "Back"
Compatibility = ""
LargeTitleMode = 2
Left = 0
NavigationBarVisible= True
TabIcon = ""
TabTitle = ""
Title = "Shake the phone to start!"
Top = 0
Begin Extens... | Xojo | 3 | kingj5/iOSKit | ExampleViews/ShakingView.xojo_code | [
"MIT"
] |
Project-wide requirejs configuration for Leisure
requirejs.config
#baseUrl: (new URL(requirejs.leisureCompiled ? 'build' : 'src', document.location)).pathname.replace(/\/.*:/, ''),
#baseUrl: requirejs.leisureCompiled ? 'build' : 'src',
# disable coffeescript if this is true
# this will load... | Literate CoffeeScript | 4 | zot/Leisure | src/config.litcoffee | [
"Zlib"
] |
-include ../tools.mk
# The following command will:
# 1. dump the symbols of a library using `nm`
# 2. extract only those lines that we are interested in via `grep`
# 3. from those lines, extract just the symbol name via `sed`, which:
# * always starts with "_ZN" and ends with "E" (`legacy` mangling)
# * alway... | Makefile | 4 | Eric-Arellano/rust | src/test/run-make-fulldeps/stable-symbol-names/Makefile | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
{% assign mine_open = '<button onclick="wmctrl -s ' %}
{% assign visible_open = '<button onclick="wmctrl -s ' %}
{% assign busy_open = '<button onclick="wmctrl -s ' %}
{% assign close = '</button>' %}
{% assign middle = '">' %}
{% assign unoccupied = '<button onclick="wmctrl -s ' %}
{{'<box>'}}
{% for tag in workspace... | Liquid | 3 | Vizdun/leftwm | themes/basic_eww/legacy_eww_xml_config/template.liquid | [
"MIT"
] |
dnl Copyright (C) 1993-2002 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License. As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
dnl that contains a configuration script generate... | M4 | 4 | ucsf-ckm/geddify | magick-installer/libiconv-1.13.1/m4/ln.m4 | [
"BSD-3-Clause"
] |
fn main() {
while true { //~ WARN denote infinite loops with
true //~ ERROR mismatched types
//~| expected `()`, found `bool`
}
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/block-result/block-must-not-have-result-while.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
(ns todomvc.components.footer)
(defn component []
[:footer.info
[:p "Double-click to edit a todo"]
[:p "Credits: "
[:a {:href "https://twitter.com/gadfly361"} "Matthew Jaoudi"] ", "
[:a {:href "https://twitter.com/yogthos"} "Dmitri Sotnikov"] ", and "
[:a {:href "https://twitter.com/holmsand"} "Da... | Clojure | 4 | dtelaroli/todomvc | examples/reagent/src/cljs/todomvc/components/footer.cljs | [
"MIT"
] |
syntax = "proto3";
package tensorflow.profiler;
import "tensorflow/core/profiler/protobuf/diagnostics.proto";
message StepBreakdownEvents {
int32 id = 1;
string name = 2;
}
// A database of PodStats records.
message PodStatsDatabase {
// All PodStats records, one for each row in the PodStats tool.
repeated ... | Protocol Buffer | 3 | EricRemmerswaal/tensorflow | tensorflow/core/profiler/protobuf/pod_stats.proto | [
"Apache-2.0"
] |
//
// Double3.mm
//
// Created by Giles Payne on 2020/05/22.
//
#import "Double3.h"
#import "Mat.h"
@implementation Double3 {
cv::Vec3d native;
}
-(double)v0 {
return native[0];
}
-(void)setV0:(double)v {
native[0] = v;
}
-(double)v1 {
return native[1];
}
-(void)setV1:(double)v {
native[1] =... | Objective-C++ | 4 | artun3e/opencv | modules/core/misc/objc/common/Double3.mm | [
"BSD-3-Clause"
] |
lexer grammar GrammarFilter;
options {
language=ObjC;
filter=true;
}
@ivars {
id delegate;
}
@methodsdecl {
- (void) setDelegate:(id)theDelegate;
}
@methods {
- (void) setDelegate:(id)theDelegate
{
delegate = theDelegate; // not retained, will always be the object creating this lexer!
}
}
// figure out the gra... | G-code | 5 | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | java/java2py/antlr-3.1.3/runtime/ObjC/Xcode plugin/GrammarFilter.g | [
"Apache-2.0"
] |
// run-pass
#![allow(dead_code)]
#[repr(align(256))]
struct A {
v: u8,
}
impl A {
fn f(&self) -> *const A {
self
}
}
fn f2(v: u8) -> Box<dyn FnOnce() -> *const A> {
let a = A { v };
Box::new(move || a.f())
}
fn main() {
let addr = f2(0)();
assert_eq!(addr as usize % 256, 0, "addr... | Rust | 4 | Eric-Arellano/rust | src/test/ui/fn/dyn-fn-alignment.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
component{
void function setCallerVars(data, row, getRow, columnNames){
var currentRow=0;
var rowData = getRow(data, row, columnNames);
caller["currentRow"] = currentRow;
}
} | ColdFusion CFC | 2 | tonym128/CFLint | src/test/resources/com/cflint/tests/VarScoper/fpositive/tag.cfc | [
"BSD-3-Clause"
] |
NAME
ParaView::GUIKit
LIBRARY_NAME
vtkPVGUIKit
| Kit | 0 | xj361685640/ParaView | Kits/GUI/vtk.kit | [
"Apache-2.0",
"BSD-3-Clause"
] |
- dashboard: ga4_page_funnel
title: "[GA4] Page Funnel"
layout: newspaper
preferred_viewer: dashboards-next
elements:
- title: Page Funnel
name: Page Funnel
model: ga4
explore: sessions
type: looker_column
fields: [sessions.audience_trait, sessions.count_of_page_1, sessions.count_of_page_... | LookML | 3 | bcmu/ga_four | dashboards/page_funnel.dashboard.lookml | [
"MIT"
] |
/*!
* Copyright (c) 2015-2021 by Contributors
* \file sparse_page_raw_format.cc
* Raw binary format of sparse page.
*/
#include <xgboost/data.h>
#include <dmlc/registry.h>
#include "xgboost/logging.h"
#include "./sparse_page_writer.h"
namespace xgboost {
namespace data {
DMLC_REGISTRY_FILE_TAG(sparse_page_raw_f... | C++ | 5 | bclehmann/xgboost | src/data/sparse_page_raw_format.cc | [
"Apache-2.0"
] |
#multiple-commits-selected {
padding: 0;
display: block;
ul {
margin-top: 0px;
}
.panel {
height: 100%;
text-align: left;
}
}
| SCSS | 2 | testtas9812/desktop | app/styles/ui/history/_multiple_commits_selected.scss | [
"MIT"
] |
// Copyright 2021 The Google Research Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... | C++ | 4 | DionysisChristopoulos/google-research | scann/scann/utils/intrinsics/flags.cc | [
"Apache-2.0"
] |
<!--- My Account --->
<cfoutput>
#errorMessagesFor("user")#
<div class="row">
<div class="col-md-9">
#startFormTag(route="updateaccount")#
#includePartial("formparts/main")#
#submitTag(value="Update My Details")#
#endFormTag()#
</div>
<div class="col-md-3">
#panel(title="Change Password")#
<cfif applicatio... | ColdFusion | 3 | fintecheando/RoomBooking | views/users/myaccount.cfm | [
"Apache-1.1"
] |
"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 | 4 | good-gym/material-ui | packages/material-ui-icons/lib/DryCleaningOutlined.js | [
"MIT"
] |
import chalk from 'next/dist/compiled/chalk'
import os from 'os'
import path from 'path'
import { FatalError } from '../fatal-error'
import isError from '../is-error'
export async function getTypeScriptConfiguration(
ts: typeof import('typescript'),
tsConfigPath: string,
metaOnly?: boolean
): Promise<import('ty... | TypeScript | 5 | blomqma/next.js | packages/next/lib/typescript/getTypeScriptConfiguration.ts | [
"MIT"
] |
target datalayout = "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64"
target triple = "armv7em-none-eabi"
declare void @foo()
define void @bar() section ".text.bar" {
ret void
}
| LLVM | 2 | ybkimm/tinygo | transform/testdata/globals-function-sections.out.ll | [
"Apache-2.0"
] |
#!/usr/bin/env bash
function incompatible_function() {
:
}
compatible_function() {
if ! [ "$1" == "yes" ]
then
return 3;:;
fi
(
exec 3>&1
echo "finished! $@? $*." >&3 \
| cat | bat - | cat
exit 4
) || exit $?
}
if command -v bat &> /dev/null; then
var=1
printf "%s...\n" "$(echo some text)"
while... | Shell | 3 | JesseVermeulen123/bat | tests/syntax-tests/source/Bash/simple.sh | [
"Apache-2.0",
"MIT"
] |
let $auction := doc("auction.xml") return
for $b in $auction/site/regions//item
let $k := $b/name/text()
order by zero-or-one($b/location) ascending
return <item name="{$k}">{$b/location/text()}</item>
| XQuery | 4 | santoshkumarkannur/sirix | bundles/sirix-xquery/src/test/resources/xmark/queries/fndoc/q19.xq | [
"BSD-3-Clause"
] |
(ns fdb.storage)
(defprotocol Storage
(get-entity [storage e-id] )
(write-entity [storage entity])
(drop-entity [storage entity]))
(defrecord InMemory [] Storage
(get-entity [storage e-id] (e-id storage))
(write-entity [storage entity] (assoc storage (:id entity) entity))
(drop-entity [storage entity] (di... | Clojure | 4 | choosewhatulike/500lines | functionalDB/code/fdb/storage.clj | [
"CC-BY-3.0"
] |
fn main() {
assert_eq!(10u64, 10usize); //~ ERROR mismatched types
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/suggestions/dont-suggest-try_into-in-macros.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
class ProxyStatus {
constructor(status) {
this.name = status.name
this.type = status.type
this.status = status.status
this.err = status.err
this.local_addr = status.local_addr
this.plugin = status.plugin
this.remote_addr = status.remote_addr
}
}
export {P... | JavaScript | 3 | Icarus0xff/frp | web/frpc/src/utils/status.js | [
"Apache-2.0"
] |
package com.baeldung.overrideproperties.resolver;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@Component
public class PropertySourceResolver {
private final String firstProperty;
private final String secondProperty;
public PropertySourceRes... | Java | 4 | DBatOWL/tutorials | testing-modules/spring-testing/src/main/java/com/baeldung/overrideproperties/resolver/PropertySourceResolver.java | [
"MIT"
] |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# DSC MOF Compilation
# DSC Configuration() script that:
# Defines base configuration users, groups, settings
# Uses PS function to set package configuration (ensure=Present) for an array of packages
# Probes for the existence of a package (Apach... | PowerShell | 4 | dahlia/PowerShell | demos/dsc.ps1 | [
"MIT"
] |
0 reg32_t "dword"
1 code_t "proc*"
2 num32_t "int"
3 uint32_t "size_t"
4 ptr(struct(0:num32_t,4:ptr(num8_t),8:ptr(num8_t),12:ptr(num8_t),16:ptr(num8_t),20:ptr(num8_t),24:ptr(num8_t),28:ptr(num8_t),32:ptr(num8_t),36:ptr(num8_t),40:ptr(num8_t),44:ptr(num8_t),48:ptr(struct(0:ptr(TOP),4:ptr(struct(0:num32_t,4:ptr(reg8_t),8... | BlitzBasic | 0 | matt-noonan/retypd-data | data/uname.decls | [
"MIT"
] |
variable "region" {
description = "Azure region"
type = string
}
variable "validator_name" {
description = "Name of the validator node owner"
type = string
}
variable "zone_name" {
description = "Zone name of Azure DNS domain to create records in"
default = ""
}
variable "zone_resource_... | HCL | 4 | PragmaTwice/diem | terraform/validator/azure/variables.tf | [
"Apache-2.0"
] |
"""Tests for the Tailscale integration."""
| Python | 0 | MrDelik/core | tests/components/tailscale/__init__.py | [
"Apache-2.0"
] |
var fprintf;
var fputs;
include "stdlib.sl";
include "sys.sl";
include "xprintf.sl";
include "xscanf.sl";
var fgetc = func(fd) {
var ch;
var n = read(fd, &ch, 1);
if (n == 0) return EOF;
if (n < 0) return n;
return ch;
};
var fputc = func(fd, ch) {
return write(fd,&ch,1);
};
var getchar = fu... | Slash | 5 | jes/scamp-cpu | sys/lib/stdio.sl | [
"Unlicense"
] |
{-
Alertmanager API
API of the Prometheus Alertmanager (https://github.com/prometheus/alertmanager)
OpenAPI spec version: 0.0.1
NOTE: This file is auto generated by the openapi-generator.
https://github.com/openapitools/openapi-generator.git
Do not edit this file manually.
-}
module Data.Alert exp... | Elm | 5 | jtlisi/alertmanager | ui/app/src/Data/Alert.elm | [
"ECL-2.0",
"Apache-2.0"
] |
(: Query for searching the database for keywords :)
import module namespace index = "http://guide.com/index";
import module namespace catalog = "http://guide.com/catalog";
import module namespace req = "http://www.28msec.com/modules/http-request";
variable $phrase := (req:param-values("q"), "London")[1];
variable $l... | JSONiq | 3 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/JSONiq/query.jq | [
"MIT"
] |
package io.lattekit.template
import io.lattekit.parser.LatteClass
import io.lattekit.parser.LatteFile
import io.lattekit.parser.NativeCode
import io.lattekit.parser.XmlTag
import io.lattekit.parser.LayoutNode
import io.lattekit.parser.Prop
import io.lattekit.parser.PropSetter
/**
* Created by maan on 4/2/16.
*/
cla... | Xtend | 4 | maannajjar/lattek | gradle-plugin/src/main/java/io/lattekit/template/KotlinTemplate.xtend | [
"Unlicense",
"MIT"
] |
#include <algorithm>
#include "caffe2/core/context_gpu.h"
#include "caffe2/operators/boolean_unmask_ops.h"
namespace caffe2 {
namespace {
__global__ void ComputeIndicesKernel(
const int numMasks,
const int maskSize,
int* indices,
bool* const masks[]) {
CUDA_1D_KERNEL_LOOP(i, maskSize) {
for (i... | Cuda | 3 | Hacky-DH/pytorch | caffe2/operators/boolean_unmask_ops.cu | [
"Intel"
] |
REBOL [
Title: "Red run time error test script"
Author: "Peter W A Wood"
File: %run-time-error-test.r
Rights: "Copyright (C) 2011-2015 Peter W A Wood. All rights reserved."
License: "BSD-3 - https://github.com/red/red/blob/origin/BSD-3-License.txt"
]
~~~start-file~~~ "Red run time errors"
--test-- "rte... | R | 4 | GalenIvanov/red | tests/source/compiler/run-time-error-test.r | [
"BSL-1.0",
"BSD-3-Clause"
] |
library ieee;
use IEEE.STD_LOGIC_1164.all;
use ieee.numeric_std.all;
library STD;
use STD.textio.all;
entity tb is
end tb;
architecture beh of tb is
component simple
port (
CLK, RESET : in std_ulogic;
DATA_OUT : out std_ulogic_vector(7 downto 0);
DONE_OUT : out std_ulogic
);
end component;
signal data ... | VHDL | 5 | arjix/nixpkgs | pkgs/development/compilers/ghdl/simple-tb.vhd | [
"MIT"
] |
-- name: create-table-org-secrets
CREATE TABLE IF NOT EXISTS orgsecrets (
secret_id INTEGER PRIMARY KEY AUTOINCREMENT
,secret_namespace TEXT COLLATE NOCASE
,secret_name TEXT COLLATE NOCASE
,secret_type TEXT
,secret_data BLOB
,secret_pull_request BOOLE... | SQL | 3 | sthagen/drone-drone | store/shared/migrate/sqlite/files/012_create_table_org_secrets.sql | [
"Apache-2.0"
] |
// run-rustfix
#![allow(dead_code, unused_variables)]
pub mod foo {
#[derive(Default)]
pub struct Foo { invisible: bool, }
#[derive(Default)]
pub struct Bar { pub visible: bool, invisible: bool, }
}
fn main() {
let foo::Foo {} = foo::Foo::default();
//~^ ERROR pattern requires `..` due to ina... | Rust | 3 | Eric-Arellano/rust | src/test/ui/issues/issue-76077-1.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
--TEST--
JIT ASSIGN: Typed reference error with return value
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.protect_memory=1
--FILE--
<?php
class Test {
public string $x;
}
function test() {
$test = new Test;
$test->x = "";
$r =& $test->... | PHP | 3 | NathanFreeman/php-src | ext/opcache/tests/jit/assign_040.phpt | [
"PHP-3.01"
] |
// Copyright (c) 2018 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_RENDERER_PRINTING_PRINT_RENDER_FRAME_HELPER_DELEGATE_H_
#define SHELL_RENDERER_PRINTING_PRINT_RENDER_FRAME_HELPER_DELEGATE_H_
#include "base/macros.h"
#include "componen... | C | 4 | lingxiao-Zhu/electron | shell/renderer/printing/print_render_frame_helper_delegate.h | [
"MIT"
] |
// Copyright 2012 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.
package one
type T1 int
type T2 []T1
type T3 T2
func F1(T2) {
}
func (p *T1) M1() T3 {
return nil
}
func (p T3) M2() {
}
| Go | 3 | Havoc-OS/androidprebuilts_go_linux-x86 | test/fixedbugs/bug404.dir/one.go | [
"BSD-3-Clause"
] |
// Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "include/cppgc/object-size-trait.h"
#include "include/cppgc/allocation.h"
#include "include/cppgc/garbage-collected.h"
#include "src/heap/cppg... | C++ | 3 | LancerWang001/v8 | test/unittests/heap/cppgc/object-size-trait-unittest.cc | [
"BSD-3-Clause"
] |
/*
* Copyright (C) 2013 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 app... | JFlex | 4 | phpc0de/idea-android | android-lang/src/com/android/tools/idea/lang/rs/renderscript.flex | [
"Apache-2.0"
] |
// Copyright 2021 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... | Protocol Buffer | 4 | echo80313/grpc | test/core/promise/promise_fuzzer.proto | [
"Apache-2.0"
] |
CREATE SCHEMA IF NOT EXISTS storage AUTHORIZATION supabase_admin;
grant usage on schema storage to postgres, anon, authenticated, service_role;
alter default privileges in schema storage grant all on tables to postgres, anon, authenticated, service_role;
alter default privileges in schema storage grant all on function... | SQL | 5 | ProPiloty/supabase | docker/volumes/db/init/02-storage-schema.sql | [
"Apache-2.0"
] |
// FIR_IDENTICAL
//FILE:a.kt
package a
// no error is reported
import b.a
fun foo() = a
//FILE:b.kt
package b
object a {}
| Kotlin | 4 | Mu-L/kotlin | compiler/testData/diagnostics/tests/imports/ImportObjectHidesCurrentPackage.kt | [
"ECL-2.0",
"Apache-2.0"
] |
var $iconst1 <[4] [4] i32> = [ [1007, 707, -273, 75], [0113, 0x4b, 75u, 75l], [75ul, 75lu, 31425926, 60223], [60223, 1619, 30, 314159]]
var $fconst1 <[4] [4] f64> = [ [1007.0, 707.0, -273.0, 75.0], [113.1, 4.0, 75.0, 75.1], [75.0, 75.1, 3.1425926, 6.02e23], [6.02e+23, 1.6e-19, 3.0, 3.14159]]
func &printf (var %p1 <* i8... | Maple | 1 | harmonyos-mirror/OpenArkCompiler-test | test/testsuite/irbuild_test/I0006-mapleall-irbuild-edge-arrayinit/Main.mpl | [
"MulanPSL-1.0"
] |
#!/bin/tcsh
set CP_PATH=cmstacuser@cmstac11:/data3/CAF
set TAR_BALL=~cctrack/scratch0/DQM/${CMSSW_VERSION}/output/${1}.tar.gz
scp /afs/cern.ch/cms/CAF/CMSCOMM/COMM_TRACKER/DQM/SiStrip/jobs/merged/DQM_V0001_SiStrip_${1}-*.root ${CP_PATH}/Clusters/
tar -czvf ${TAR_BALL} ../*/${1}
scp ${TAR_BALL} ${CP_PATH}/archive/
rm -r... | Tcsh | 2 | ckamtsikis/cmssw | DQM/SiStripMonitorClient/scripts/archiveCAFProcessing.csh | [
"Apache-2.0"
] |
{{ page.content|json_encode()|raw }} | Twig | 1 | AuroraOS/grav | plugins/error/templates/error.json.twig | [
"MIT"
] |
<div class="container">
<app-ecommerce></app-ecommerce>
</div>
| HTML | 0 | DBatOWL/tutorials | spring-boot-modules/spring-boot-angular/src/main/js/ecommerce/src/app/app.component.html | [
"MIT"
] |
<?xml version="1.0" encoding="UTF-8"?>
<!-- ******************************************************************* -->
<!-- -->
<!-- Copyright IBM Corp. 2010, 2014 -->
<!-- ... | XPages | 3 | jesse-gallagher/XPagesExtensionLibrary | extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.controls/src/com/ibm/xsp/extlib/config/extlib-data-formlayout.xsp-config | [
"Apache-2.0"
] |
module openconfig-fw-link-monitoring {
yang-version "1";
// namespace
namespace "http://openconfig.net/yang/openconfig-fw-link-monitoring";
// Assign this module a prefix to be used when imported.
prefix "oc-fw-linkmon";
// Imports
import openconfig-extensions { prefix oc-ext; }
import openconfig-in... | YANG | 5 | xw-g/public | release/models/firewall/openconfig-fw-link-monitoring.yang | [
"Apache-2.0"
] |
option now = () => 2020-02-22T18:00:00Z
@tableflux.h2o_temperature{
location, state, bottom_degrees, surface_degrees, time > -3h
}
|> aggregate(
{
min(bottom_degrees),
max(bottom_degrees),
min(surface_degrees),
max(surface_degrees)
},
by: ["state"]
)
| FLUX | 3 | RohanSreerama5/flux | colm/tableflux/query16.flux | [
"MIT"
] |
/*
Copyright (c) 2012 Advanced Micro Devices, Inc.
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial... | OpenCL | 5 | N0hbdy/godot | thirdparty/bullet/Bullet3OpenCL/ParallelPrimitives/kernels/CopyKernels.cl | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] |
(ns wisp.backend.escodegen.generator
(:require [wisp.reader :refer [read-from-string read*]
:rename {read-from-string read-string}]
[wisp.ast :refer [meta with-meta symbol? symbol keyword? keyword
namespace unquote? unquote-splicing? quote?
... | wisp | 5 | NhanHo/wisp | src/backend/escodegen/generator.wisp | [
"BSD-3-Clause"
] |
--
-- 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")... | SQL | 3 | OlegPt/spark | sql/core/src/test/resources/sql-tests/inputs/typeCoercion/native/windowFrameCoercion.sql | [
"Apache-2.0"
] |
package unit.issues;
class Issue7492 extends unit.Test {
function test() {
var a = [1];
a[1] = 1;
var v = haxe.ds.Vector.fromArrayCopy(a);
eq(2, v.length);
}
} | Haxe | 4 | Alan-love/haxe | tests/unit/src/unit/issues/Issue7492.hx | [
"MIT"
] |
cpp_include "<unordered_map>"
| Thrift | 0 | JonnoFTW/thriftpy2 | tests/parser-cases/cpp_include.thrift | [
"MIT"
] |
h2. The Repository API
After reading this guide, you will
* Understand the concept
* Repository item data structure
* Know how to configure the Repository Manager
* Know how to implementing the Repository API
endprologue.
h3. Concept
A repository is a service or data source, which provides repository items and is ... | Textile | 5 | luciany/Aloha-Editor | doc/guides/source/repository.textile | [
"CC-BY-3.0"
] |
class Abe extends BaseMapObject
{
static kAnimationResources =
[
"AbeWalkToStand",
"AbeWalkToStandMidGrid",
"AbeWalkingToRunning",
"AbeWalkingToRunningMidGrid",
"AbeWalkingToSneaking",
"AbeWalkingToSneakingMidGrid",
"AbeStandToRun",
"AbeRunningToS... | Squirrel | 4 | mouzedrift/alive | data/scripts/abe.nut | [
"MIT"
] |
#lang scribble/manual
@(require scribble/eval pollen/decode pollen/setup txexpr (for-label pollen/unstable/typography txexpr racket (except-in pollen #%module-begin)))
@(define my-eval (make-base-eval))
@(my-eval `(require pollen pollen/unstable/typography))
@(require "mb-tools.rkt")
@title{Typography}
@defmodule[... | Racket | 5 | otherjoel/pollen | pollen/scribblings/typography.scrbl | [
"MIT"
] |
import { createServer } from '@graphql-yoga/node'
import gql from 'graphql-tag'
import resolvers from 'lib/resolvers'
import typeDefs from 'lib/schema'
const server = createServer({
schema: {
typeDefs: gql(typeDefs),
resolvers,
},
endpoint: '/api/graphql',
// graphiql: false // uncomment to disable Gr... | TypeScript | 4 | nazarepiedady/next.js | examples/with-typescript-graphql/pages/api/graphql.ts | [
"MIT"
] |
@import "~common/stylesheet/index";
.list_item {
height: $line-height;
.label {
flex: 1;
}
&.indent {
padding-left: 24px;
}
}
| SCSS | 4 | dajibapb/algorithm-visualizer | src/components/ListItem/ListItem.module.scss | [
"MIT"
] |
# config of tidb
new_collations_enabled_on_first_bootstrap = true
[security]
ssl-ca = "/tmp/backup_restore_test/certs/ca.pem"
ssl-cert = "/tmp/backup_restore_test/certs/tidb.pem"
ssl-key = "/tmp/backup_restore_test/certs/tidb.key"
cluster-ssl-ca = "/tmp/backup_restore_test/certs/ca.pem"
cluster-ssl-cert = "/tmp/backu... | TOML | 2 | WizardXiao/tidb | br/tests/br_charset_gbk/tidb-new-collation.toml | [
"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.
#nullable disable
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Text;
#if CODE_STYLE
usi... | C# | 5 | ffMathy/roslyn | src/CodeStyle/Core/Analyzers/FormattingAnalyzerHelper.cs | [
"MIT"
] |
/*
* Copyright (c) 2021, Luke Wilde <lukew@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/RefCounted.h>
#include <AK/Weakable.h>
#include <LibJS/Heap/Handle.h>
#include <LibWeb/Bindings/Wrappable.h>
#include <LibWeb/DOM/ExceptionOr.h>
#include <LibWeb/Forward.h>
namespace ... | C | 4 | r00ster91/serenity | Userland/Libraries/LibWeb/HTML/History.h | [
"BSD-2-Clause"
] |
<!DOCTYPE html>
<html>
<head>
<title>advanced staggering • anime.js</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta property="og:title" content="anime.js">
<meta property="og:url" content="https://animejs.com">
<meta property="og:des... | HTML | 4 | HJ959/anime | documentation/examples/advanced-staggering-2.html | [
"MIT"
] |
"""Tests for the Nest integration API glue library.
There are two interesting cases to exercise that have different strategies
for token refresh and for testing:
- API based requests, tested using aioclient_mock
- Pub/sub subcriber initialization, intercepted with patch()
The tests below exercise both cases during in... | Python | 5 | mib1185/core | tests/components/nest/test_api.py | [
"Apache-2.0"
] |
; RUN: llc -verify-machineinstrs < %s -mtriple=powerpc64-unknown-linux-gnu -no-integrated-as | FileCheck %s
define void @f() {
; CHECK: @f
entry:
%0 = tail call double* asm sideeffect "qvstfdux $2,$0,$1", "=b,{r7},{f11},0,~{memory}"(i32 64, double undef, double* undef)
ret void
; CHECK: qvstfdux 11,{{[0-9]+}},7
... | LLVM | 4 | medismailben/llvm-project | llvm/test/CodeGen/PowerPC/in-asm-f64-reg.ll | [
"Apache-2.0"
] |
/////////////////////////////////////////////////////////////////////////////
// Name: splash.pov
// Purpose: POV-Ray scene used to generate splash image for wxWidgets
// Author: Wlodzimierz ABX Skiba
// Modified by:
// Created: 04/08/2004
// Copyright: (c) Wlodzimierz Skiba
// Licence: wxWind... | POV-Ray SDL | 4 | madanagopaltcomcast/pxCore | examples/pxScene2d/external/WinSparkle/3rdparty/wxWidgets/samples/splash/splash.pov | [
"Apache-2.0"
] |
(ns hu.test.equality
(:require
[assert :refer [equal deep-equal not-equal not-deep-equal]]
[hu.lib.equality :as _]))
(suite :isPatternEqual
(fn []
(test :basic
(fn []
(equal
(.pattern-equal? _ #"[a-z]+" #"[a-z]+") true)
(equal
(.pattern-equal? _ #"[a-z]+" #"[0-... | wisp | 4 | h2non/hu | test/equality.wisp | [
"MIT"
] |
GalaxyID,x,y,e1,e2
Galaxy1,1894.56,3795.03,0.031137,-0.231662
Galaxy2,3378.43,3368.09,-0.431046,-0.138815
Galaxy3,1497.26,4032.20,0.048362,-0.174822
Galaxy4,992.56,3105.72,0.176375,-0.066931
Galaxy5,2151.59,0.14,0.018745,0.187097
Galaxy6,3706.41,1463.44,0.228807,-0.005380
Galaxy7,126.01,2510.77,-0.345459,0.055949
Galax... | CSV | 2 | jColeChanged/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers | Chapter5_LossFunctions/data/Train_Skies/Train_Skies/Training_Sky270.csv | [
"MIT"
] |
DROP TABLE IF EXISTS visits;
CREATE TABLE visits (str String) ENGINE = MergeTree ORDER BY (str);
SELECT 1
FROM visits
ARRAY JOIN arrayFilter(t -> 1, arrayMap(x -> tuple(x), [42])) AS i
WHERE ((str, i.1) IN ('x', 0));
DROP TABLE visits;
| SQL | 2 | pdv-ru/ClickHouse | tests/queries/0_stateless/00876_wrong_arraj_join_column.sql | [
"Apache-2.0"
] |
transport : (0 eq : a === b) -> a -> b
transport eq x = rewrite sym eq in x
nested : (0 _ : a === b) -> (0 _ : b === c) -> a === c
nested eq1 eq2 =
rewrite eq1 in
rewrite eq2 in
let prf : c === c := Refl in
prf
| Idris | 4 | ska80/idris-jvm | tests/ideMode/ideMode005/Rewrite.idr | [
"BSD-3-Clause"
] |
DROP TYPE IF EXISTS "Role";
CREATE TYPE "Role" AS ENUM ('USER', 'ADMIN');
DROP TABLE IF EXISTS "public"."Post" CASCADE;
CREATE TABLE "public"."Post" (
"id" text NOT NULL,
"createdAt" timestamp(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" timestamp(3) NOT NULL DEFAULT '1970-01-01 00:00:00'::timestamp w... | SQL | 3 | safareli/prisma | packages/migrate/src/__tests__/fixtures/introspection/postgresql/setup.sql | [
"Apache-2.0"
] |
9,D
20,20
85,85
A0,A0
1680,1680
2000,200A
2028,2029
202F,202F
205F,205F
3000,3000
| Component Pascal | 0 | janosch-x/character_set | lib/character_set/predefined_sets/whitespace.cps | [
"MIT"
] |
<#ftl encoding="utf-8" />
<#setting locale="en_US" />
<#import "library" as lib />
<#--
FreeMarker comment
${abc} <#assign a=12 />
-->
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8" />
<title>${title!"FreeMarker"}<title>
</head>
<body>
<h... | FreeMarker | 3 | websharks/ace-builds | demo/kitchen-sink/docs/ftl.ftl | [
"BSD-3-Clause"
] |
@import './_variables.scss'
.v-input--checkbox
&.v-input--indeterminate
&.v-input--is-disabled
opacity: $checkbox-disabled-opacity
&.v-input--dense
margin-top: $checkbox-dense-margin-top
| Sass | 3 | vanillamasonry/vuetify | packages/vuetify/src/components/VCheckbox/VCheckbox.sass | [
"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.
' vbc /t:module /out:Source4Module.netmodule /vbruntime- Source4.vb
' vbc /t:library /out:c4.dll /vbruntime- Source4.v... | Visual Basic | 2 | ffMathy/roslyn | src/Compilers/Test/Resources/Core/SymbolsTests/MultiTargeting/Source4.vb | [
"MIT"
] |
lkf_rabbitmq_vhost | ApacheConf | 0 | rushoooooo/beacon-iot | third-party/rabbitmq/config/lib/mnesia/rabbit@rabbitmq_node1/msg_stores/vhosts/80Q5R61TMWIHBR2O0SO6JOFQ6/.vhost | [
"MIT"
] |
2019-09-18 23:18:41 --> kky (~kky@103.117.23.112) has joined #sect-ctf
2019-09-18 23:18:42 -- Topic for #sect-ctf is "SECT-CTF - flag: SECT{SECT_CTF_2019} https://sect.ctf.rocks/ - September 18th, 15:00 UTC - September 19th 2019, 21:00 UTC (31h) - Theme: Cyberpunk"
2019-09-18 23:18:42 -- Topic set by likvidera (~likvid... | IRC log | 0 | akshaykumar23399/DOTS | weechat/logs/irc.freenode.#sect-ctf.weechatlog | [
"Unlicense"
] |
Raw <%= {:safe, @message} %>
| HTML+EEX | 1 | faheempatel/phoenix | test/fixtures/templates/safe.html.eex | [
"MIT"
] |
(*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
type id
val compare_id : id -> id -> int
val equal_id : id -> id -> bool
val id_of_int : int -> id
val id_as_int : id -> int op... | OCaml | 3 | Hans-Halverson/flow | src/typing/source_or_generated_id.mli | [
"MIT"
] |
\begin{code}
module OverView where
import Prelude hiding ((.), filter)
import Language.Haskell.Liquid.Prelude
{-@ LIQUID "--no-termination" @-}
\end{code}
\begin{code}
{-@ filter :: forall <p :: a -> Bool, w :: a -> Bool -> Bool>.
{y :: a, b::{v:Bool<w y> | v}|- {v:a| v == y} <: a<p>}
... | Literate Haskell | 5 | curiousleo/liquidhaskell | benchmarks/icfp15/pos/Filter.lhs | [
"MIT",
"BSD-3-Clause"
] |
# SCAMP shell
include "getopt.sl";
include "glob.sl";
include "grarr.sl";
include "malloc.sl";
include "parse.sl";
include "stdio.sl";
include "strbuf.sl";
include "string.sl";
include "sys.sl";
var sherr;
# return static "path/name" if name exists in path, otherwise return 0
var tryname_sz = 128;
var tryname = mall... | Slash | 5 | jes/scamp-cpu | sys/sh.sl | [
"Unlicense"
] |
note
description: "API tests for FAKE_API"
date: "$Date$"
revision: "$Revision$"
class FAKE_API_TEST
inherit
EQA_TEST_SET
feature -- Test routines
test_fake_outer_boolean_serialize
--
--
-- Test serialization of outer boolean types
local
... | Eiffel | 4 | MalcolmScoffable/openapi-generator | samples/client/petstore/eiffel/test/apis/fake_api_test.e | [
"Apache-2.0"
] |
(***********************************************************************)
(* *)
(* Applied Type System *)
(* *)
(***********************... | ATS | 4 | bbarker/ATS-Postiats-contrib | projects/LARGE/TUTORIATS/in-browsers/PATSHOME/libats/ML/SATS/qlistref.sats | [
"MIT"
] |
defprotocol Protocol.ConsolidationTest.Sample do
@type t :: any
@doc "Ok"
@deprecated "Reason"
@spec ok(t) :: boolean
def ok(term)
end
| Elixir | 4 | doughsay/elixir | lib/elixir/test/elixir/fixtures/consolidation/sample.ex | [
"Apache-2.0"
] |
globals [
initial-trees ;; how many trees (green patches) we started with
burned-trees ;; how many have burned so far
]
breed [fires fire] ;; bright red turtles -- the leading edge of the fire
breed [embers ember] ;; turtles gradually fading from red to near black
to setup
clear-all
set-default-shape... | NetLogo | 5 | fsancho/IA | 07. Complexity/Fire.nlogo | [
"MIT"
] |
/*
* This file is part of the X10 project (http://x10-lang.org).
*
* This file is licensed to You under the Eclipse Public License (EPL);
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.opensource.org/licenses/eclipse-1.0.php
*
*... | X10 | 5 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/X10/KMeans.x10 | [
"MIT"
] |
use Datascope;
use sysinfo;
use Cwd;
use Term::ANSIColor qw/uncolor/;
use POSIX;
use FileHandle;
use Getopt::Std;
sub show_available {
if( scalar( @Module_names ) <= 0 ) {
print "\n\n\tNo modules configured in $Pf.pf\n\n";
} else {
print "\nAvailable modules:\n\n";
foreach $module ( @Module_names ) {
... | XProc | 4 | jreyes1108/antelope_contrib | first/localmake/localmake.xpl | [
"BSD-2-Clause",
"MIT"
] |
---
title: "v0.28.1 - 2018-07-16"
linkTitle: "v0.28.1 - 2018-07-16"
weight: -41
---
<html>
<head>
<title>kubernetes/minikube - Leaderboard</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap" rel="s... | HTML | 4 | skyplaying/minikube | site/content/en/docs/contrib/leaderboard/v0.28.1.html | [
"Apache-2.0"
] |
/**
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/frontend/AcaciaFrontEnd.x10 | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.