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 |
|---|---|---|---|---|---|
Use Wikimedia identities to log in. This uses a predefined consumer
([https://meta.wikimedia.org/wiki/Special:OAuthListConsumers/view/7e5461e6907ad6ed43684793046fd3a9 7e5461e6907ad6ed43684793046fd3a9])
and the secret key of that consumer is part of the MediaWiki-Vagrant
code and thus public, which makes it somewhat ins... | MediaWiki | 2 | mitre/mediawiki-vagrant | puppet/modules/role/files/oauthauthentication/VagrantRoleOAuthAuthentication.wiki | [
"FSFAP"
] |
using AMQPClient
const VIRTUALHOST = "/"
const HOST = "127.0.0.1"
function send()
# 1. Create a connection to the localhost or 127.0.0.1 of virtualhost '/'
connection(; virtualhost=VIRTUALHOST, host=HOST) do conn
# 2. Create a channel to send messages
channel(conn, AMQPClient.UNUSED_CHANNEL, t... | Julia | 5 | muhammadali8767/rabbit_php | julia/emit_log_direct.jl | [
"Apache-2.0"
] |
#!/bin/bash
docker stop spring-data-mongodb-live-test
docker rm spring-data-mongodb-live-test
| Shell | 3 | DBatOWL/tutorials | persistence-modules/spring-data-mongodb/src/live-test/resources/live-test-teardown.sh | [
"MIT"
] |
tests/cases/compiler/main.ts(1,20): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
==== tests/cases/compiler/a.ts (0 errors) ====
class a { }
export = a;
==== tests/cases/compiler/main.ts... | Text | 3 | monciego/TypeScript | tests/baselines/reference/es6ImportEqualsExportModuleCommonJsError.errors.txt | [
"Apache-2.0"
] |
KIDS Distribution saved on Sep 03, 2015@16:03:22
FAMILY HISTORY 1.0
**KIDS**:FAMILY HISTORY 1.0^
**INSTALL NAME**
FAMILY HISTORY 1.0
"BLD",8515,0)
FAMILY HISTORY 1.0^^0^3150903^n
"BLD",8515,4,0)
^9.64PA^9000014.1^3
"BLD",8515,4,9000014,0)
9000014
"BLD",8515,4,9000014,222)
y^y^f^^^^n
"BLD",8515,4,9000014.1,0)
9000014.1... | Genshi | 3 | mdgeek/VistA-FHIR-CWF | Scripts/Install/CWF/kid/14-bgofhx-1.0.kid | [
"Apache-2.0"
] |
## Licensed to Cloudera, Inc. under one
## or more contributor license agreements. See the NOTICE file
## distributed with this work for additional information
## regarding copyright ownership. Cloudera, Inc. licenses this file
## to you under the Apache License, Version 2.0 (the
## "License"); you may not use this f... | Mako | 3 | yetsun/hue | desktop/core/src/desktop/templates/common_footer.mako | [
"Apache-2.0"
] |
package com.baeldung.dynamicproperties;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.DynamicPropertyRegistry;... | Java | 4 | DBatOWL/tutorials | testing-modules/spring-testing-2/src/test/java/com/baeldung/dynamicproperties/ArticleLiveTest.java | [
"MIT"
] |
-- This is a new query in TPCDS v2.7
with results as (
select
i_category,
i_class,
i_brand,
i_product_name,
d_year,
d_qoy,
d_moy,
s_store_id,
sum(coalesce(ss_sales_price * ss_quantity, 0)) sumsales
from
store_sales, date_dim, store, i... | SQL | 3 | OlegPt/spark | sql/core/src/test/resources/tpcds-v2.7.0/q67a.sql | [
"Apache-2.0"
] |
MODULE = Agar::Editable PACKAGE = Agar::Editable PREFIX = AG_
PROTOTYPES: ENABLE
VERSIONCHECK: DISABLE
Agar::Editable
new(package, parent, ...)
const char * package
Agar::Widget parent
PREINIT:
Uint flags = 0, wflags = 0;
CODE:
if ((items == 3 && SvTYPE(SvRV(ST(2))) != SVt_PVHV) || items > 3) {
Perl_croak(aTHX_... | XS | 3 | auzkok/libagar | p5-Agar/Agar/Editable.xs | [
"BSD-2-Clause"
] |
[Desktop Entry]
Version=1.0
Type=Application
Name=musikcube
GenericName=musikcube
Comment=terminal-based music player
Comment[ru]=консольный аудиоплеер
Exec=musikcube %U
TryExec=musikcube
Icon=musikcube
Terminal=true
Categories=AudioVideo;Player;Audio;
StartupNotify=false
StartupWMClass=musikcube
| desktop | 3 | trofi/musikcube | src/musikcube/data/linux/share/applications/musikcube.desktop | [
"BSD-3-Clause"
] |
Note 0
Copyright (C) 2017 Jonathan Hough. All rights reserved.
)
NB. Implementation of a Dropout Layer. Dropout Layer can
NB. be placed after other layers to allow backpropagation
NB. updates to only a random percentage fo the number of
NB. nodes in the previous layer, as a form of regularization.
coclass 'Dropout'
... | J | 4 | jonghough/jlearn | adv/dropout.ijs | [
"MIT"
] |
stroke 1
rotate 90
move 1,0,0
push
i: (TIME % 1000) / 1000
move 0,0,i*10
color hsv(155, 200, 200)
scale 10
for y: 0 to 3 step 1
move 0,0,y*-1
grid
end
pop
| Cycript | 3 | marcinbiegun/creativecoding-sketches | Cyril/data/code_old/2.cy | [
"MIT"
] |
(* Modified by Vesa Karvonen on 2007-12-18.
* Create line directives in output.
*)
(* ML-Yacc Parser Generator (c) 1989 Andrew W. Appel, David R. Tarditi
yacc.lex: Lexer specification
*)
structure Tokens = Tokens
type svalue = Tokens.svalue
type pos = Header.pos
type ('a,'b) token = ('a,'b) Tokens.token
type le... | Lex | 4 | lazear/mlton | mlyacc/src/yacc.lex | [
"HPND"
] |
@import './_variables.scss'
.v-date-picker-title
display: flex
justify-content: space-between
flex-direction: column
flex-wrap: wrap
line-height: 1
.v-picker__title__btn
+ltr()
text-align: left
+rtl()
text-align: right
&__year
align-items: center
display: inline-flex
... | Sass | 3 | ahmadiqbal1/vuetify | packages/vuetify/src/components/VDatePicker/VDatePickerTitle.sass | [
"MIT"
] |
const execa = require(`execa`)
const defaultSpawnArgs = {
cwd: process.cwd(),
stdio: `inherit`,
}
exports.setDefaultSpawnStdio = stdio => {
defaultSpawnArgs.stdio = stdio
}
exports.promisifiedSpawn = async ([cmd, args = [], spawnArgs = {}]) => {
const spawnOptions = {
...defaultSpawnArgs,
...spawnArg... | JavaScript | 4 | Pabelnedved/ghostlocoko | packages/gatsby-dev-cli/src/utils/promisified-spawn.js | [
"MIT"
] |
%span.gl-flex-grow-1.gl-py-3.gl-pr-3
= yield
| Haml | 0 | glimmerhq/glimmerhq | app/views/shared/members/tab_pane/_title.html.haml | [
"MIT"
] |
use @pony_exitcode[None](code: I32)
class C1 fun one(): I32 => 1
class C2 fun two(): I32 => 2
class C3 fun three(): I32 => 3
primitive Foo
fun apply(c': (C1 | C2 | C3)): I32 =>
match c'
| let c: C1 => c.one()
| let c: C2 => c.two()
| let c: C3 => c.three()
end
actor Main
new create(env: Env) ... | Pony | 3 | rtpax/ponyc | test/libponyc-run/match-exhaustive-all-cases-of-union/main.pony | [
"BSD-2-Clause"
] |
-- Test for Visual mode and operators.
--
-- Tests for the two kinds of operations: Those executed with Visual mode
-- followed by an operator and those executed via Operator-pending mode. Also
-- part of the test are mappings, counts, and repetition with the . command.
local helpers = require('test.functional.helpers... | Lua | 4 | uga-rosa/neovim | test/functional/legacy/094_visual_mode_operators_spec.lua | [
"Vim"
] |
{
"@context": {
"dc11": "http://purl.org/dc/elements/1.1/",
"ex": "http://example.org/vocab#",
"ex:authored": {
"@type": "@id"
},
"ex:contains": {
"@type": "@id"
},
"foaf": "http://xmlns.com/foaf/0.1/",
"xsd": "http://www.w3.org/2001/XMLSchema#"
},
"@graph": [
{
... | JSONLD | 3 | fsteeg/json-ld-api | tests/toRdf/0052-in.jsonld | [
"W3C"
] |
component.modal-body.teacher-panel(:is="panel", v-on:continue="onContinue", v-on:back="onBack", trial-request-attributes="trialRequestAttributes")
| Jade | 3 | cihatislamdede/codecombat | app/templates/core/create-account-modal/teacher-signup-component.jade | [
"CC-BY-4.0",
"MIT"
] |
:- module(clpbn_vmap,
[init_vmap/1, % init_vmap(-Vmap)
add_to_vmap/4, % add_to_vmap(+V,-I,+VMap0,VMapF)
get_from_vmap/3, % add_to_vmap(+V,-I,+VMap0)
vars_to_numbers/4, % vars_to_numbers(+Vs,-Is,+VMap0,VMapF)
lvars_to_numbers/4, % lvars_to_numbers(+LVs,-LIs,+VMap0,VMapF)
vmap_to_list/2
]).
:- use_mo... | Prolog | 4 | ryandesign/yap | packages/CLPBN/clpbn/vmap.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
fn main() {
let a_longer_variable_name = 1;
println!("{}", a_variable_longer_name); //~ ERROR E0425
}
| Rust | 2 | Eric-Arellano/rust | src/test/ui/suggestions/issue-66968-suggest-sorted-words.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
using Uno;
using Uno.Collections;
using Uno.Reflection;
using Uno.Compiler.ExportTargetInterop;
using Outracks.Simulator.Runtime;
namespace Outracks.Simulator.Client
{
using Bytecode;
extern(CPLUSPLUS && REFLECTION) internal static class ReflectionCache
{
static readonly Dictionary<Type, CppFunction[]> _fu... | Uno | 4 | mortend/fuse-studio | Source/Preview/Core/Reflection/ReflectionCache.uno | [
"MIT"
] |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
Describe "Error handling within a single 'Clean' block" -Tag 'CI' {
BeforeAll {
function ErrorInClean {
[CmdletBinding()]
param(
[switch] $ThrowTerminatingError,
[switch] $Error... | PowerShell | 5 | rdtechie/PowerShell | test/powershell/Language/Scripting/CleanBlockErrorHandling.Tests.ps1 | [
"MIT"
] |
--TEST--
COOKIE multiple cookie test
--EXTENSIONS--
filter
--INI--
filter.default=stripped
filter.default_flags=0
error_reporting=E_ALL&~E_DEPRECATED
--COOKIE--
abc=dir; def=true; abc=root; xyz="foo bar";
--FILE--
<?php
var_dump($_COOKIE);
var_dump(filter_has_var(INPUT_COOKIE, "abc"));
var_dump(filter_input(INPUT_COOKI... | PHP | 4 | NathanFreeman/php-src | ext/filter/tests/041.phpt | [
"PHP-3.01"
] |
%%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 2010-2020. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
... | Erlang | 5 | jjhoo/otp | lib/diameter/src/compiler/diameter_codegen.erl | [
"Apache-2.0"
] |
#define OBJECTSHADER_COMPILE_DS
#define OBJECTSHADER_LAYOUT_PREPASS_TEX
#define OBJECTSHADER_USE_NORMAL
#include "objectHF_tessellation.hlsli"
| HLSL | 1 | rohankumardubey/WickedEngine | WickedEngine/shaders/objectDS_prepass_alphatest.hlsl | [
"MIT"
] |
fill
palette $p
// 10 red
10 yellow
10 orange
end
scale 10
rotate 90,1,0,0
stroke 2
i: 0
do 10 times
i: i + 0.1
color lerp($p, i)
color pink
rotate FRAME / 100, 0,1,0
cone
end
| Cycript | 3 | danhett/cyril | bin/data/code/8.cy | [
"MIT"
] |
#! /usr/bin/env awk -f
BEGIN { on=0 ; skip=1 ; block=0 ; section=""}
/^[[:blank:]]*id:/ { relId = $NF }
/r[0-9]+: *{/ { on=1 ; next }
/^[[:blank:]]*}[[:blank:]]*$/ { if (on) {
print "[Full release notes on gitblit.com](http://gitblit.com/releases.html#" relId ")"
... | Awk | 4 | Curly060/gitblit | src/site/templates/ghreleasenotes.awk | [
"Apache-2.0"
] |
( Generated from test_namespace1_in.muv by the MUV compiler. )
( https://github.com/revarbat/muv )
lvar foo::ltuaa
: foo::abc[ _a -- ret ]
foo::ltuaa @ _a @ +
;
: foo::def[ _a -- ret ]
_a @ 2 * foo::abc
;
: _main[ _arg -- ret ]
3 foo::def
;
: __start
"me" match me ! me @ location loc ! trig trigger !
... | MUF | 4 | revarbat/muv | tests/test_namespace1_cmp.muf | [
"BSD-2-Clause"
] |
struct Person {
1: string name,
2: i32 age,
}
const Person jack = {'name': 'jack', 'age': 1.8}
| Thrift | 1 | JonnoFTW/thriftpy2 | tests/parser-cases/e_type_error_2.thrift | [
"MIT"
] |
t app appmode photo
sleep 1
t ia2 -ae still_exp P X Y
sleep 1
t app button shutter PR
sleep A
d:\autoexec.ash
REBOOT yes
| AGS Script | 1 | waltersgrey/autoexechack | LongExpTimeLapse/autoexec.ash | [
"MIT"
] |
#ifndef _RANDOMDGEN__ALIGNED_MALLOC_H_
#define _RANDOMDGEN__ALIGNED_MALLOC_H_
#include <Python.h>
#include "numpy/npy_common.h"
#define NPY_MEMALIGN 16 /* 16 for SSE2, 32 for AVX, 64 for Xeon Phi */
static NPY_INLINE void *PyArray_realloc_aligned(void *p, size_t n)
{
void *p1, **p2, *base;
size_t old_offs, o... | C | 3 | iam-abbas/numpy | numpy/random/include/aligned_malloc.h | [
"BSD-3-Clause"
] |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once
#include <winrt/Windows.ApplicationModel.Resources.h>
#include <string>
using namespace std::string_view_literals;
namespace AppInstaller::StringResource
{
#define WINGET_WIDE_STRINGIFY_HELP(_id_) L ## _id_
#define ... | C | 4 | midoriiro/winget-cli | src/AppInstallerCommonCore/Public/winget/Resources.h | [
"MIT"
] |
let mut x = 10;
if true {
x += 1;
}
println(x);
let mut y = 10;
if y == 10 {
let y = y + 1;
}
println(y);
let mut z = 10;
if z == (5 + 5) && 45 != 9 || "hello" == "he" + "l" + "lo" {
z += 1;
}
println(z);
let mut a = 10;
if "hello" != "he" + "l" + "lo" {
a += 1;
}
println(a);
let mut b = 10;
if ... | Ox | 3 | 54k1/oxide-lang | tests/scripts/if.ox | [
"MIT"
] |
something less new Number with 5 | Dogescript | 3 | joeratt/dogescript | test/spec/operators/assignment/less/object/source.djs | [
"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 | 2 | matt-noonan/retypd-data | data/sha1sum.decls | [
"MIT"
] |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
Describe 'ConvertTo-Json' -tags "CI" {
BeforeAll {
$newline = [System.Environment]::NewLine
}
It 'Newtonsoft.Json.Linq.Jproperty should be converted to Json properly' {
$EgJObject = New-Object -TypeName Newtonsoft.Json... | PowerShell | 5 | dahlia/PowerShell | test/powershell/Modules/Microsoft.PowerShell.Utility/ConvertTo-Json.Tests.ps1 | [
"MIT"
] |
/******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | C | 4 | seeclong/apollo | modules/canbus/vehicle/lexus/protocol/headlight_aux_rpt_318.h | [
"Apache-2.0"
] |
#! /bin/csh
setenv RELEASE $CMSSW_VERSION
if ( ! -d /afs/cern.ch/cms/performance/tracker/activities/validation/$RELEASE/) mkdir /afs/cern.ch/cms/performance/tracker/activities/validation/$RELEASE/
setenv WWWDIR /afs/cern.ch/cms/performance/tracker/activities/validation/$RELEASE/SimHits
if ( ! -d $WWWDIR) mkdir $WWWD... | Tcsh | 3 | ckamtsikis/cmssw | Validation/TrackerHits/test/copyWWWall.csh | [
"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_1.png'
plot \
'iteration_1.csv' title "iteration_1", 100 title 'Napkin math lower bound iteration_1.' lw 3 lc 'red' | Gnuplot | 3 | epk/napkin-math | newsletter/14-syncing/iteration_1.gnuplot | [
"MIT"
] |
echo pyon pyon
function ponyo_install --on-event ponyo_install
set --global ponyo pyon pyon
end
function ponyo_update --on-event ponyo_update
set --global --append ponyo pyon
end
function ponyo_uninstall --on-event ponyo_uninstall
set --erase ponyo
end | fish | 3 | kenchou/fisher | tests/ponyo/conf.d/ponyo.fish | [
"MIT"
] |
begin {
for i in 1..10 do
writeln("Hi there!");
writeln("Oh, I forgot to say something!");
}
begin sayHiBack();
for i in 1..10 do
writeln("Goodbye...");
proc sayHiBack() {
for i in 1..10 do
writeln("Well, hello to you too!");
}
| Chapel | 3 | jhh67/chapel | test/release/examples/users-guide/taskpar/beginBiggerStatements.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
---
layout: post
title: "A Finer Filter"
date: 2014-08-15 16:12
author: Ranjit Jhala
published: true
comments: true
external-url:
categories: abstract-refinements
demo: filter.hs
---
This morning, I came across this [nice post](https://twitter.com/ertesx/status/500034598042996736) which describes how one can write a ... | Literate Haskell | 5 | curiousleo/liquidhaskell | docs/blog/2014-08-15-a-finer-filter.lhs | [
"MIT",
"BSD-3-Clause"
] |
*** Settings ***
Documentation Example test cases using the keyword-driven testing approach.
...
... All tests contain a workflow constructed from keywords in
... `CalculatorLibrary`. Creating new tests or editing existing
... is easy even for people without programming ski... | RobotFramework | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/RobotFramework/keyword_driven.robot | [
"MIT"
] |
use Datascope;
use Datascope::dbmon;
sub newrow {
my( @db ) = splice( @_, 0, 4 );
my( $table, $irecord, $sync, $fhref ) = @_;
$row = dbget( @db );
printf $fhref "New Row $irecord in '$table' [sync '$sync']: $row\n";
return;
}
sub delrow {
my( @db ) = splice( @_, 0, 4 );
my( $table, $sync, $fhref ) = @_;... | XProc | 3 | jreyes1108/antelope_contrib | nobuild/lib/perl/dbmon/certify/try_dbmon_resync.xpl | [
"BSD-2-Clause",
"MIT"
] |
#lang scribble/manual
@begin[(require "../utils.rkt")
(require (for-label (only-meta-in 0 [except-in typed/racket for])))]
@title{Typed Racket Syntax Without Type Checking}
@defmodulelang*[(typed/racket/no-check
typed/racket/base/no-check)]
On occasions where the Typed Racket syntax is usefu... | Racket | 4 | SnapCracklePopGone/typed-racket | typed-racket-doc/typed-racket/scribblings/reference/no-check.scrbl | [
"Apache-2.0",
"MIT"
] |
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C++ | 3 | yage99/tensorflow | tensorflow/core/kernels/reverse_op_gpu.cu.cc | [
"Apache-2.0"
] |
(
echo native
echo fake-always-fails
if [ -z "$NO_SLOW_TESTS" ]; then
IFS=:
for dir in $PATH; do
for d in "$dir"/*-cc "$dir"/*-gcc; do
base=${d##*/}
arch=${base%-*}
if [ -x "$d" ]; then echo "$arch"; fi
done
done
fi
) >$3
redo-always
redo-stamp <$3
| Stata | 3 | BlameJohnny/redo | docs/cookbook/c/arches.do | [
"Apache-2.0"
] |
"""Sensor component that handles additional Tomorrowio data for your location."""
from __future__ import annotations
from abc import abstractmethod
from collections.abc import Callable
from dataclasses import dataclass
from typing import Any
from pytomorrowio.const import (
HealthConcernType,
PollenIndex,
... | Python | 5 | liangleslie/core | homeassistant/components/tomorrowio/sensor.py | [
"Apache-2.0"
] |
MSTRINGIFY(
//#define float3 float4
/*float length3(float3 a)
{
a.w = 0;
return length(a);
}
float normalize3(float3 a)
{
a.w = 0;
return normalize(a);
}*/
__kernel void
ResetNormalsAndAreasKernel(
const unsigned int numNodes,
__global float4 * g_vertexNormals,
__global float * g_vertexA... | OpenCL | 3 | albertobarri/idk | tests/third_party/bullet/src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/OpenCLC/UpdateNormals.cl | [
"MIT"
] |
#define PJON_INCLUDE_MAC
#include <PJONSoftwareBitBang.h>
// <Strategy name> bus(mac address of the network interface)
const uint8_t mac[6] = {1, 2, 3, 4, 5, 6};
PJONSoftwareBitBang bus(mac);
void receiver_function(uint8_t *payload, uint16_t length, const PJON_Packet_Info &packet_info) {
/* Make use of the payload... | Arduino | 5 | jcallano/PJON | examples/ARDUINO/Local/SoftwareBitBang/BlinkTestMAC/Receiver/Receiver.ino | [
"Apache-2.0"
] |
%% INDEX, BIBLIOGRAPHY, APPENDIX, TABLE OF CONTENTS
%
% change this info string if making any custom modification
\ProvidesFile{sphinxlatexindbibtoc.sty}[2021/01/27 index, bib., toc]
% Provides support for this output mark-up from Sphinx latex writer:
%
% - environments: (backup defaults or get redefined)
%
% - sphi... | TeX | 4 | samdoran/sphinx | sphinx/texinputs/sphinxlatexindbibtoc.sty | [
"BSD-2-Clause"
] |
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C++ | 4 | EricRemmerswaal/tensorflow | tensorflow/core/common_runtime/request_cost_accessor_registry.cc | [
"Apache-2.0"
] |
#include "benchmark/benchmark.h"
#include <nlohmann/json.hpp>
#include <fstream>
#include <test_data.hpp>
using json = nlohmann::json;
//////////////////////////////////////////////////////////////////////////////
// parse JSON from file
//////////////////////////////////////////////////////////////////////////////
... | C++ | 4 | theShmoo/json | benchmarks/src/benchmarks.cpp | [
"MIT"
] |
[
{
"ProfileName": "Linux-source-list",
"Name": "",
"Enabled": true,
"Scanner": 1,
"Author": "@Sy3Omda",
"Payloads": [
"true,../{FILE}",
"true,../../{FILE}",
"true,../../../{FILE}",
"true,../../../../{FILE}",
"true,../../../../../{FILE}",
"true,../../../../.... | BitBake | 1 | upenderadepu/BurpBounty | profiles/Linux-source-list.bb | [
"Apache-2.0"
] |
<svg viewBox="0 0 575 279" fill="none" xmlns="http://www.w3.org/2000/svg">
<g filter="url(#filter0_d)">
<rect width="520" height="255" transform="translate(12 10)" fill="var(--vscode-quickInput-background)"/>
<g clip-path="url(#clip0)">
<path d="M36.4912 33V26.2861H38.9243V25.2495H32.8496V26.2861H35.2881V33H36.4912ZM45... | SVG | 4 | sbj42/vscode | src/vs/workbench/contrib/welcomeGettingStarted/common/media/terminal.svg | [
"MIT"
] |
// run-pass
// compile-flags:--test
#![deny(private_in_public)]
#[test] fn foo() {}
mod foo {}
#[test] fn core() {}
extern crate core;
| Rust | 3 | Eric-Arellano/rust | src/test/ui/issues/issue-36768.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
<?xml version="1.0" encoding="UTF-8"?>
<LERModel ObjectType="4003" CSAOName="LERModel" CSAOCaption="Model" InternalVersion="20.11" ProductVersion="6.3.3.2" Version="1.20"><Id>{70254B51-C29E-4CE3-ADAB-D8F7BDF1332D}</Id><Name>Logical model</Name><Ordinal>0</Ordinal><GlobalOrder>0</GlobalOrder><ModelDefID>{CA753C22-0089-... | TXL | 1 | smola/language-dataset | data/github.com/BazhanovMaxim/College_coursework/fe5a1ec5aa0d01f3d68948adeee168afe898e5f8/Logical_model.txl | [
"MIT"
] |
style style1
style style2
fun main () : transaction page = return <xml><body>
<div class="style1" dynClass={return (CLASS "style2")}>Text</div>
<div dynClass={return (CLASS "style2")}>Text</div>
<div style="font-weight: bold" dynStyle={return (STYLE "font-variant: small-caps")}>Text</div>
<div dynStyle={return... | UrWeb | 1 | apple314159/urweb | tests/classAndDynClass.ur | [
"BSD-3-Clause"
] |
=pod
=head1 NAME
OSSL_ESS_signing_cert_new_init,
OSSL_ESS_signing_cert_v2_new_init,
OSSL_ESS_check_signing_certs
- Enhanced Security Services (ESS) functions
=head1 SYNOPSIS
#include <openssl/ess.h>
ESS_SIGNING_CERT *OSSL_ESS_signing_cert_new_init(const X509 *signcert,
... | Pod | 5 | pmesnier/openssl | doc/man3/OSSL_ESS_check_signing_certs.pod | [
"Apache-2.0"
] |
shared void run() {
print("Hello world!");
}
| Ceylon | 2 | saurabhcommand/Hello-world | Ceylon/main.ceylon | [
"MIT"
] |
[Exposed=Window,
HTMLConstructor]
interface HTMLTimeElement : HTMLElement {
[CEReactions, Reflect] attribute DOMString dateTime;
};
| WebIDL | 3 | corsarstl/Learn-Vue-2 | vue-testing/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTimeElement.webidl | [
"MIT"
] |
#!/usr/bin/env io
// evaluating a string
writeln("1 + 2 ==> ", doString("1 + 2"))
simpleDecompile := method(
// test of decompiling a method
Dog := Object clone
Dog bark := method("woof!" print)
writeln("simple decompiled method: ", Dog getSlot("bark") code)
)
fancyDecompile := method(
writeln("fancy decompil... | Io | 3 | akluth/io | samples/misc/Decompile.io | [
"BSD-3-Clause"
] |
dialect "none"
// The intrinsic module. This is the home for language elements that cannot
// be defined in Grace itself because they are beyond the descriptive power
// of the language.
once method Exception { native "js" code ‹return ExceptionObject;› }
def UnimplementedMethod = Exception.refine "UnimplementedMeth... | Grace | 5 | smola/language-dataset | data/github.com/gracelang/minigrace/db1564417d1656f565740442951a9ede852345ab/intrinsic.grace | [
"MIT"
] |
<html>
<body>
<form id="form" action="d.html" method="post" accept-charset="utf-8">
<p><input type="submit" value="submit"></p>
</form>
<script type="text/javascript" charset="utf-8">
document.getElementById("form").submit();
</script>
</body>
</html>
| HTML | 3 | lingxiao-Zhu/electron | spec/fixtures/pages/post.html | [
"MIT"
] |
function pkpr --description 'extract piknik clipboard content sent using the pkfr command'
piknik -paste | tar xzpvf -
end
| fish | 2 | Shark/piknik | fish-shell/functions/pkpr.fish | [
"BSD-2-Clause"
] |
-- we have to hard code the query literals because pig substitution via pigserver can't handle this kind of substitution
hits = load '$INPUT' using com.twitter.elephantbird.pig.PigLuceneIndexingIntegrationTest\$Loader('--queries','+(macbeth achilles)','+shield','+out, +"candle!"');
store hits into '$OUTPUT' using PigSt... | PigLatin | 3 | bcoverston/elephant-bird | pig-lucene/src/test/resources/com/twitter/elephantbird/pig/search_queries.pig | [
"Apache-2.0"
] |
syntax = "proto3";
package containerd.services.version.v1;
import "google/protobuf/empty.proto";
import weak "gogoproto/gogo.proto";
// TODO(stevvooe): Should version service actually be versioned?
option go_package = "github.com/containerd/containerd/api/services/version/v1;version";
service Version {
rpc Version... | Protocol Buffer | 4 | yankay/autoscaler | vertical-pod-autoscaler/e2e/vendor/github.com/containerd/containerd/api/services/version/v1/version.proto | [
"Apache-2.0"
] |
*-------------------------------------------------------------------------------
* Generate the model equations
*-------------------------------------------------------------------------------
$label start_loop
$if "a%1"=="a" $goto end_loop
Equations
$batinclude modules 'eql' %1
;
$batinclude modules 'eqs' %1
mode... | GAMS | 4 | witch-team/witchmodel | algo/model.gms | [
"Apache-2.0"
] |
"""
string: the string indexer value
object: the object indexer value
"""
[System.Reflection.DefaultMember("Item")]
class Container:
Item(index as object):
set:
print "object: $value"
Item(index as string):
set:
print "string: $value"
d = Container() as duck
str = "index"
obj = object()
d[str] = "the st... | Boo | 3 | popcatalin81/boo | tests/testcases/regression/duck-default-setter-overload.boo | [
"BSD-3-Clause"
] |
array colors=values(Image.Color); //Snapshot the arbitrary order so it's consistent within a given run
int r=0,g=255,b=255;
Image.Image genfractal(float x1,float x2,float y1,float y2,int xres,int yres,int iter)
{
Image.Image img=Image.Image(xres,yres);
for (int ypos=0;ypos<yres;++ypos)
{
for (int xpos=0;xpos<xres;... | Pike | 4 | stephenangelico/shed | mandelbrot.pike | [
"MIT"
] |
# This file is a part of Julia. License is MIT: https://julialang.org/license
module MiniCassette
# A minimal demonstration of the cassette mechanism. Doesn't support all the
# fancy features, but sufficient to exercise this code path in the compiler.
using Core.Compiler: method_instances, retrieve_code_i... | Julia | 5 | jonas-schulze/julia | test/compiler/contextual.jl | [
"MIT"
] |
{ ."
clipboard.fth
Monitor the clipboard and print out its text contents whenever
they become available. Exit the loop by submitting any input
(detected using key?).
Run monitor-clipboard to enter the loop.
" ETX emit }!
loadlib user32.dll
value user32
1 value CF_TEXT
user32 0 dllfun GetForeg... | Forth | 4 | jephthai/EvilVM | samples/clipboard.fth | [
"MIT"
] |
#include badrecurse2.stan
| Stan | 0 | sthagen/stan-dev-stan | src/test/test-models/included/badrecurse3.stan | [
"CC-BY-3.0",
"BSD-3-Clause"
] |
<li class="
{{if showAsCarousel "career-interests__pill--slide-item" "career-interests__pill"}}
"></li>
{{
yield
(hash
header=(component "fluid-table/thead")
body=(component "fluid-table/tbody")
th=(component "fluid-table/th")
td=(component "fluid-table/td")
)
}}
<LinkTo
@query={{
hash
... | Handlebars | 3 | tumido/prettier | tests/format/handlebars/mustache-statement/issue-8691.hbs | [
"MIT"
] |
{{^editing}}
<span>{{quantity}}x {{name}}</span>
<button class='edit'>Edit</button>
<button class='remove'>x</button>
{{/editing}}
{{#editing}}
<span>{{name}}</span>
<input class='edit-quantity' value='{{quantity}}' type='number' />
<button class='cancel'>Cancel</button>
<button class='save'>Save</button>
{{/editing}}
... | mupad | 3 | royriojas/buildfirst | ch08/07b_testability-boulevard/app/views/templates/listItem.mu | [
"MIT"
] |
(* /etc/libvirt/libvirtd.conf *)
module Libvirtd =
autoload xfm
let eol = del /[ \t]*\n/ "\n"
let value_sep = del /[ \t]*=[ \t]*/ " = "
let indent = del /[ \t]*/ ""
let array_sep = del /,[ \t\n]*/ ", "
let array_start = del /\[[ \t\n]*/ "[ "
let array_end = del /\]/ "]"
let str_val = d... | Augeas | 5 | SIIS-cloud/pileus | libvirt/pileus-libvirt-1.2.12/daemon/libvirtd.aug | [
"Apache-2.0"
] |
.header-link:after {
position: relative;
left: 0.5em;
opacity: 0;
font-size: 0.8em;
-moz-transition: opacity 0.2s ease-in-out 0.1s;
-ms-transition: opacity 0.2s ease-in-out 0.1s;
}
h2:hover .header-link,
h3:hover .header-link,
h4:hover .header-link,
h5:hover .header-link,
h6:hover .header-link {
opacity: ... | CSS | 3 | Ondoz/hugo | docs/_vendor/github.com/gohugoio/gohugoioTheme/assets/css/_header-link.css | [
"Apache-2.0"
] |
"""
A ring is a group of processes connected to each other using
unidirectional links through which messages can pass from process to
process in a cyclic manner.
The logic of this program is as follows:
* Each process in a ring is represented by the actor `Ring`
* `Main` creates Ring by instantiating `Ring` actors bas... | Pony | 5 | rtpax/ponyc | examples/ring/main.pony | [
"BSD-2-Clause"
] |
/* Mask Syntax Demo */
div > ' Test ~[name]';
define :userProfile {
header {
h4 > @title;
button.close;
}
}
:userProfile {
@title > ' Hello ~[: username.toUpperCase()]'
}
style {
html, body {
background: url('name.png') 0 0 no-repeat;
}
}
button {
event click (e) {
this.textContent = `... | Mask | 4 | websharks/ace-builds | demo/kitchen-sink/docs/mask.mask | [
"BSD-3-Clause"
] |
package com.baeldung.poi.excel.newcolumn;
import org.apache.poi.ss.usermodel.CellType;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
public class ExcelColumn {
public void addColumn... | Java | 4 | DBatOWL/tutorials | apache-poi-2/src/main/java/com/baeldung/poi/excel/newcolumn/ExcelColumn.java | [
"MIT"
] |
(ns jepsen.clickhouse-keeper.queue
(:require
[clojure.tools.logging :refer :all]
[jepsen
[checker :as checker]
[client :as client]
[generator :as gen]]
[knossos.model :as model]
[jepsen.checker.timeline :as timeline]
[jepsen.clickhouse-keeper.utils :refer :all]
[zookeeper :as zk])
(:im... | Clojure | 4 | pdv-ru/ClickHouse | tests/jepsen.clickhouse-keeper/src/jepsen/clickhouse_keeper/queue.clj | [
"Apache-2.0"
] |
/*
* Copyright (c) 2012 - present Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation ... | CSS | 3 | ravitejavalluri/brackets | test/perf/OpenFile-perf-files/quiet-scrollbars.css | [
"MIT"
] |
{#measures}
============
Measuring Data Types
--------------------
<div class="hidden">
\begin{code}
{-# LIQUID "--no-termination" #-}
{-# LIQUID "--full" #-}
module Measures where
import Prelude hiding ((!!), length)
import Language.Haskell.Liquid.Prelude
length :: L a -> Int
(!) :: L a -> Int ->... | Literate Haskell | 5 | curiousleo/liquidhaskell | docs/slides/ETH14/lhs/02_Measures.lhs | [
"MIT",
"BSD-3-Clause"
] |
"""Constants for the Matrix integration."""
DOMAIN = "matrix"
SERVICE_SEND_MESSAGE = "send_message"
| Python | 1 | domwillcode/home-assistant | homeassistant/components/matrix/const.py | [
"Apache-2.0"
] |
public class SporthRepl {
Sporth s;
OscIn oin;
OscMsg msg;
fun void init() {
s => dac;
s.parse("0");
}
fun void launchSporth(string str)
{
s.parse(str);
me.yield();
}
fun void probe() {
6449 => oin.port;
oin.addAddress( "/foo/sporth,... | ChucK | 4 | aleatoricforest/Sporth | util/chorth/repl/repl.ck | [
"MIT"
] |
<GameFile>
<PropertyGroup Name="MainScene" Type="Scene" ID="a2ee0952-26b5-49ae-8bf9-4f1d6279b798" Version="3.10.0.0" />
<Content ctype="GameProjectContent">
<Content>
<Animation Duration="0" Speed="1.0000" />
<ObjectData Name="Scene" ctype="GameNodeObjectData">
<Size X="960.0000" Y="640.0000... | Csound | 4 | cyz0054/cocos2dx_lua_skynet_client | cocosstudio/MainScene.csd | [
"MIT"
] |
{{
This object emulates a Playstation controller, with support
for all known Dual Shock controller commands.
This emulator is based on my own reverse engineering notes:
http://docs.google.com/View?docid=ddbmmwds_5cw4pk3
Each controller emulator can have several input/output
buffers attached to it:... | Propeller Spin | 5 | deets/propeller | libraries/community/p1/All/Playstation 2 Controller Emulator/psx_controller_emulator.spin | [
"MIT"
] |
(\* functions-and-types.shen *\)
(\* Mac Radigan *\)
(\* adapted from Dr. Mark Tarver's examples at http://shenlanguage.org *\)
(\* see http://shenlanguage.org/learn-shen/index.html#9.2%20Functions%20and%20Types *\)
(\* enable type checking *\)
(tc +)
(define member
{A --> (list A) --> boolean}
_ [] -> ... | Shen | 5 | ajnavarro/language-dataset | data/github.com/radiganm/shen-dev/0816137200699b9dcadf214f0d80731ac5193e5e/functions_and_types/functions-and-types.shen | [
"MIT"
] |
CREATE TABLE `tb_jhqwojqbtj` (
`col_flcxltquqr` longtext,
`col_ksprsgkzrb` longtext CHARACTER SET utf8mb4,
`col_ndohgxbgox` float DEFAULT '1',
`col_egszzxhsvf` enum('enum_or_set_0','enum_or_set_1','enum_or_set_2') NOT NULL,
`col_cuzojqplje` year(4) DEFAULT '2019',
`col_sexypgjnak` date DEFAULT '2019-07-04'
... | SQL | 2 | yuanweikang2020/canal | parse/src/test/resources/ddl/alter/mysql_12.sql | [
"Apache-2.0"
] |
Class {
#name : #GtNotificationMessageExamples,
#superclass : #GtNotificationCommonExamples,
#category : #'GToolkit-Notifications-Examples'
}
{ #category : #'examples - message notification' }
GtNotificationMessageExamples >> basicMessageElement [
<gtExample>
| anElement |
anElement := GtNotificationMessageEleme... | Smalltalk | 4 | markfirmware/gtoolkit | src/GToolkit-Notifications/GtNotificationMessageExamples.class.st | [
"MIT"
] |
template components/spma/functions;
# This template is used for testing the --pancinclude/--pancexclude options
# of "aq compile".
"/software/packages" = {
debug("Assigning repositories to packages...");
null;
};
| Pan | 2 | ned21/aquilon | tests/templates/aquilon/components/spma/functions.pan | [
"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\Image;
class Enum
{
// Resizing constraints
const AUTO = 4... | Zephir | 3 | tidytrax/cphalcon | phalcon/Image/Enum.zep | [
"BSD-3-Clause"
] |
#define PERL_NO_GET_CONTEXT
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
MODULE = XSBench::XS PACKAGE = XSBench::XS
NV xs_sum(AV* array)
INIT:
NV sum = 0;
SSize_t i, top = av_top_index(array);
CODE:
sv_2mortal(SvREFCNT_inc(array));
for (i = 0; i <= top; i++) {
SV **sv = av_fetch(array, i, 0);
if ... | XS | 4 | hiratara/perl-xs | bench/xs/XS.xs | [
"BSD-2-Clause"
] |
.hex-rule {
background: #abcdef;
}
.hex-three-rule {
background: #abc;
}
.rgb-rule {
background: rgb(100, 200, 150);
}
.rgba-rule {
background: rgba(100, 200, 150, 0.5);
}
.hsl-rule {
background: hsl(180, 50%, 50%);
}
.hsla-rule {
background: hsla(180, 50%, 50%, 0.5);
}
.invalid-color {
... | CSS | 3 | ravitejavalluri/brackets | src/extensions/default/InlineColorEditor/unittest-files/unittests.css | [
"MIT"
] |
<?xml version="1.0" encoding="UTF-8"?>
<?python
"""
A OWS exception report.
@param report: An ows_common.exception_report object
"""
def hide_optionals(attrDict, optionals=None):
"""
Returns a copy of attrDict where any value which is None and in optionals is removed.
If optionals=None all keys are consi... | Genshi | 4 | cedadev/cows | cows/pylons/templates/exception_report.kid | [
"BSD-2-Clause"
] |
lexer grammar t056lexer13;
options {language=JavaScript;}
B : x=A x=A ;
fragment A : 'a' ;
| G-code | 3 | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | java/java2py/antlr-3.1.3/runtime/JavaScript/tests/functional/t056lexer13.g | [
"Apache-2.0"
] |
module com.networknt.common {
exports com.networknt.common;
requires com.networknt.service;
requires com.networknt.utility;
requires com.networknt.decryptor;
} | Jasmin | 3 | KellyShao/light-4j | common/src/main/java/module-info.j | [
"Apache-2.0"
] |
using Uno;
using Fuse.Controls;
using Fuse.Gestures;
public class ConstructorThrower : Button
{
public ConstructorThrower()
{
throw new Exception("Bye from Uno constructor");
}
} | Uno | 3 | mortend/fuse-studio | Projects/JsErrors/ConstructorThrower.uno | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.