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 |
|---|---|---|---|---|---|
// WinFunEnv is an Attack/Release envelope built around window functions!
// ~options
//
// .set (duration, duration), default (0.0, 0.0)
// sets duration for attack and release phase
//
// .attackTime (duration), default 0.0
// sets length for the attack phase
//
// .releaseTime (duration), default 0.0
// sets ... | ChucK | 5 | ccdarabundit/chugins | WinFuncEnv/winfuncenv-help.ck | [
"MIT"
] |
fn main() { format!("{:?}", None); }
//~^ ERROR type annotations needed [E0282]
| Rust | 2 | Eric-Arellano/rust | src/test/ui/issues/issue-5062.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
set(ENV{OLD_PO_FILE_INPUT} yes)
execute_process(
COMMAND ${MSGFMT_PRG} -o ${MO_FILE} ${PO_FILE}
ERROR_VARIABLE err
RESULT_VARIABLE res)
if(NOT res EQUAL 0)
message(FATAL_ERROR "msgfmt failed to run correctly: ${err}")
endif()
| CMake | 2 | uga-rosa/neovim | cmake/RunMsgfmt.cmake | [
"Vim"
] |
FancySpec describe: Proxies DistributingProxy with: {
it: "forwards messages to each element in turn" when: {
p = Proxies DistributingProxy new: [1,2,3]
p is: 1
p is: 2
p is: 3
# and again
p is: 1
p is: 2
p is: 3
# and once more
p class is: Fixnum
p inspect is: "2"
p to... | Fancy | 4 | bakkdoor/fancy | tests/distributing_proxy.fy | [
"BSD-3-Clause"
] |
{var $currentNamespace = ''}
{var $namespaceParts = explode('\\', $namespace)}
<div class="pull-left type">
<span n:class="label,
$type == 'Namespace' ? 'label-danger',
$type == 'Trait' ? 'label-warning',
$type == 'Interface' ? 'label-info',
$type == 'Class' ? 'label-success',
... | Latte | 3 | pujak17/tets | packages/ThemeDefault/src/partial/breadcrumbs.latte | [
"MIT"
] |
/*
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/RefCounted.h>
namespace Kernel {
// ListedRefCounted<T> is a slot-in replacement for RefCounted<T> to use in classes
// that add themselves to a SpinlockProtected<IntrusiveList> w... | C | 4 | r00ster91/serenity | Kernel/Library/ListedRefCounted.h | [
"BSD-2-Clause"
] |
package sample;
import static java.lang.Thread.sleep;
import akka.dispatch.verification.Instrumenter;
import akka.dispatch.verification.WrappedCancellable;
import akka.dispatch.verification.ShutdownHandler;
import akka.actor.ActorRef;
import akka.actor.ScalaActorRef;
import akka.actor.InternalActorRef;
import akka.a... | AspectJ | 4 | NetSys/demi | src/main/aspectj/WeaveActor.aj | [
"BSD-2-Clause-FreeBSD"
] |
/*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
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... | ECL | 3 | miguelvazq/HPCC-Platform | ecl/regress/pat14.ecl | [
"Apache-2.0"
] |
// rustfmt-indent_style: Visual
// Chain indent
fn main() {
let lorem = ipsum.dolor()
.sit()
.amet()
.consectetur()
.adipiscing()
.elite();
}
| Rust | 3 | mbc-git/rust | src/tools/rustfmt/tests/target/configs/indent_style/visual_chain.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
--TEST--
Test array_walk() function : basic functionality - associative array
--FILE--
<?php
echo "*** Testing array_walk() : basic functionality ***\n";
// associative array
$fruits = array("d" => "lemon", "a" => "orange", "b" => "banana", "c" => "apple");
function test_alter(&$item, $key, $prefix)
{
// dump the a... | PHP | 4 | NathanFreeman/php-src | ext/standard/tests/array/array_walk_basic2.phpt | [
"PHP-3.01"
] |
<h4><a href="${current}" target="_blank">ProblemReport</a></h4>
<table rules="all" border="1" >
<tr>
<td>Type</td>
<td>Total Count</td>
<td>Link</td>
</tr>
<#list types as item>
<tr>
<td>${item.type}</td>
<td style="text-align:right">${item.count}</td>
<td style="text-align:right"><a href... | FreeMarker | 3 | woozhijun/cat | cat-home/src/main/resources/freemaker/problem.ftl | [
"Apache-2.0"
] |
<!--
If you are reading the source wikitext of the main page:
This page is created by Vagrant, but it is safe to do changes by editing it.
Automatic updates will happen via [[Template:Main Page]].
If you are reading puppet/modules/mediawiki/files/main_page.wiki:
DO NOT MODIFY THIS FILE!... | MediaWiki | 1 | mitre/mediawiki-vagrant | puppet/modules/mediawiki/files/main_page.wiki | [
"FSFAP"
] |
%!PS-Adobe-3.0
%%Title: metal_stack.ps
%%Creator: XCircuit v0.0 rev-145403803
%%CreationDate: Wed Jun 17 12:42:51 2020
%%Pages: 7
%%BoundingBox: 0 0 612 792
%%DocumentNeededResources: font Times-Roman Times-RomanISO Symbol
%%EndComments
%%BeginProlog
%
% PostScript prolog for output from xcircuit
% Version: 3.9
%
% ... | PostScript | 4 | wanderrful/skywater-pdk | docs/_static/metal_stack.ps | [
"Apache-2.0"
] |
#
mes 2,EM_WSIZE,EM_PSIZE
exp $execle
pro $execle,0
lal EM_PSIZE
1
dup EM_PSIZE
loi EM_PSIZE
zer EM_PSIZE
cmp
zeq *2
adp EM_PSIZE
bra *1
2
adp EM_PSIZE
loi EM_PSIZE
lal EM_PSIZE
lal 0
loi EM_PSIZE
loc 59
mon
ste errno
loc -1
ret EM_WSIZE
end
| Eiffel | 0 | wyan/ack | plat/em/libsys/execle.e | [
"BSD-3-Clause"
] |
<%= foo() %>
| HTML+EEX | 0 | arikai/distillery | test/fixtures/mock_app/invalid_tmpl.eex | [
"MIT"
] |
-- Create a table for Public Profiles
create table profiles (
id uuid references auth.users not null,
updated_at timestamp with time zone,
username text unique,
avatar_url text,
website text,
primary key (id),
unique(username),
constraint username_length check (char_length(username) >= 3)
);
alter tab... | SQL | 4 | ProPiloty/supabase | examples/react-user-management/schema.sql | [
"Apache-2.0"
] |
package jadx.tests.api.utils.assertj;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.function.Function;
import java.util.stream.Collectors;
import org.assertj.core.api.AbstractStringAssert;
import jadx.api.ICodeWriter;
import jadx.tests.api.utils.TestUtils;
public class... | Java | 4 | mmdevlpr/jadx | jadx-core/src/test/java/jadx/tests/api/utils/assertj/JadxCodeAssertions.java | [
"Apache-2.0"
] |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Scala | 4 | kesavanvt/spark | sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/text/TextSuite.scala | [
"BSD-2-Clause",
"Apache-2.0",
"CC0-1.0",
"MIT",
"MIT-0",
"ECL-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
package com.baeldung.component.scannedscope;
import org.springframework.stereotype.Component;
@Component
public class ScannedScopeExample {
}
| Java | 3 | DBatOWL/tutorials | spring-core-5/src/main/java/com/baeldung/component/scannedscope/ScannedScopeExample.java | [
"MIT"
] |
DESCRIPTION = "Different utilities from Android - corressponding configuration files"
SECTION = "console/utils"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = "file://android-gadget-setup"
PACKAGE_ARCH = "${MACHINE_ARCH}"
do_install() {
instal... | BitBake | 3 | nunojsa/meta-openembedded | meta-oe/recipes-devtools/android-tools/android-tools-conf_1.0.bb | [
"MIT"
] |
module openconfig-if-types {
yang-version "1";
namespace "http://openconfig.net/yang/openconfig-if-types";
prefix "oc-ift";
// import statements
import openconfig-extensions { prefix oc-ext; }
// meta
organization
"OpenConfig working group";
contact
"OpenConfig working group
netopenconf... | YANG | 4 | ariscahyadi/onos-1.14-with-indopronos-app | models/openconfig/src/main/yang/interfaces/openconfig-if-types@2016-11-14.yang | [
"Apache-2.0"
] |
package test;
public final class Simple {
public Simple() { }
}
| Java | 2 | qussarah/declare | compiler/testData/loadJava/compiledJava/Simple.java | [
"Apache-2.0"
] |
\begin{code}
module CPP where
open import Data.List hiding ([_])
open import Function
data Type : Set where
base : Type
arr : Type → Type → Type
Cx' = List Type
Model' = Type → Cx' → Set
infixr 8 _⇒_
_⇒_ : (Cx' → Set) → (Cx' → Set) → Cx' → Set
(f ⇒ g) Γ = f Γ → g Γ
[_]' : (Cx' → Set) → Set
[ P ]' = ∀ {x} → P ... | Literate Agda | 4 | manikdv/plfa.github.io | extra/extra/CPP.lagda | [
"CC-BY-4.0"
] |
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} pypy3 )
inherit distutils-r1
DESCRIPTION="Python functions for thorough checks on types"
HOMEPAGE="https://pypi.org/project/typish"
# Prefer GitHub. Upstream failed to push... | Gentoo Ebuild | 2 | justxi/sci | dev-python/typish/typish-1.9.3.ebuild | [
"BSD-3-Clause"
] |
#
;
; (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.
; See the copyright notice in the ACK home directory, in the file "Copyright".
;
; $Id$
mes 2,EM_WSIZE,EM_PSIZE
#define TRAP 0
; _fptrp is called with one parameter:
; - trap number (TRAP)
exp $_fptrp
pro $_fptrp,0
lol TRA... | Eiffel | 2 | wyan/ack | mach/proto/fp/fptrp.e | [
"BSD-3-Clause"
] |
fun main () : transaction page = return <xml><body>
<img src="http://www.google.com/intl/en_ALL/images/logo.gif"/>
</body></xml>
| UrWeb | 1 | apple314159/urweb | tests/img.ur | [
"BSD-3-Clause"
] |
// _Obsolete.prg
[Obsolete];
CLASS __WindApp INHERIT AppWindow
CONSTRUCTOR(uPars)
SUPER(uPars)
END CLASS
[Obsolete];
CLASS __FormDialogWindow INHERIT ModelessDialog
CONSTRUCTOR(uPars)
SUPER(uPars)
END CLASS
[Obsolete];
CLASS __FormFrame INHERIT ChildAppWindow
CONSTRUCTOR(uPars)
SUPER(uPars)
END CLAS... | xBase | 3 | orangesocks/XSharpPublic | Runtime/VOSdkTyped/Source/VOSdk/GUI_Classes_SDK/Windows/_Obsolete.prg | [
"Apache-2.0"
] |
/*
* Copyright 2018-2019 Jiří Janoušek <janousek.jiri@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of con... | Vala | 4 | xcffl/nuvolaruntime | src/nuvolakit-runner/tiliado/MachineTrial.vala | [
"BSD-2-Clause"
] |
%
% Shading support - primarily for ASCII file translators.
%
/grays [0.98 0.9 0.75 0.6] def
/setshade {
/level exch def
level 0 le {
/textgray 0 def
/backgray 1 def
}{
/backgray level grays length gt
{/textgray 1 def 0}
{/textgray 0 def grays level 1 sub get}
ifelse def
} ifelse
textgray setgray
... | PostScript | 4 | newluhux/plan9port | src/cmd/postscript/psfiles/shade.ps | [
"MIT"
] |
<%= render(:layout => "layout_for_partial", :partial => "partial_for_use_in_layout", :locals => { :name => "David" }) %> | HTML+ERB | 3 | mdesantis/rails | actionview/test/fixtures/test/calling_partial_with_layout.html.erb | [
"MIT"
] |
# Copyright 2016 Alexandre Terrasa <alexandre@moz-code.org>.
#
# 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 applica... | Nit | 5 | ajnavarro/language-dataset | data/github.com/Morriar/CatFacts/1e5eccb9c011ec2965f2d7e9b3eabd4eb4bfe3ed/src/app.nit | [
"MIT"
] |
data {
int N;
array[N] int ids;
array[N] int y;
matrix[1000, 11] X;
}
parameters {
matrix[11, 100] beta_std;
vector<lower=0>[11] std;
cholesky_factor_corr[11] L;
}
transformed parameters {
matrix[100, 11] beta;
beta = (diag_pre_multiply(std, L) * beta_std)';
}
model {
vector[N] mu;
for (i in 1 : N... | Stan | 3 | sthagen/stan-dev-stan | src/test/test-models/good/variational/hier_logistic.stan | [
"CC-BY-3.0",
"BSD-3-Clause"
] |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <assert.h>
#include <math.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#i... | C | 4 | Hacky-DH/pytorch | aten/src/ATen/native/quantized/cpu/qnnpack/src/add.c | [
"Intel"
] |
#include <Constants.au3>
#include <Array.au3>
Func StalinSort($inputArray)
Local $iArrayLength = Ubound($inputArray)
Local $sortedArray[$iArrayLength]
Local $jCount = 1
$sortedArray[0] = $inputArray[0]
For $iCount = 1 To Ubound($inputArray) - 1
If $inputArray[$iCount] >= $sortedArray[$jCount-1] The... | AutoIt | 4 | twofist/stalin-sort | AutoIt/stalin-sort.au3 | [
"MIT"
] |
#!/usr/bin/env julia
#
# @license Apache-2.0
#
# Copyright (c) 2018 The Stdlib Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | Julia | 5 | ghalimi/stdlib | lib/node_modules/@stdlib/math/base/special/pow/test/fixtures/julia/runner.jl | [
"BSL-1.0"
] |
#!/bin/csh
pool_build_object_relational_mapping -f ../xml/DTCCBConfig-mapping-custom.xml -d CondFormatsDTObjects -c sqlite_file:testconf.db -u "user" -p "pass"
| Tcsh | 2 | ckamtsikis/cmssw | CondTools/DT/test/pool_build_conf_mapping_test.csh | [
"Apache-2.0"
] |
2016-02-18 20:29:09 fsociety you are now my friend :)
2016-02-18 20:29:09 [20:29]
2016-02-18 22:09:24 turtleshow Hooray :) hehe
2016-02-18 22:09:24 [22:09]
2016-02-18 22:09:50 fsociety welcome to the dark dean web
2016-02-18 22:10:04 fsociety i'm online 24/7. if not on my machine, my phone is constantly connected
201... | IRC log | 0 | 0x4b1dN/2016-dots | misc/weechat/logs/irc.bitlbee.turtleshow.weechatlog | [
"MIT"
] |
div {
property: 10;
property: +10;
property: -10;
property: 0.1;
property: +0.1;
property: -0.1;
property: -.1;
property: +.1;
property: 0;
property: 10;
property: .10;
property: 12.34;
property: 0.1;
property: 1.0;
property: 0.0;
property: +0.0;
prope... | CSS | 0 | mengxy/swc | crates/swc_css_parser/tests/fixture/number/input.css | [
"Apache-2.0"
] |
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="page">
<html>
<head>
<title> Test XSLT </title>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></sc... | XSLT | 4 | zealoussnow/chromium | third_party/blink/web_tests/http/tests/permissions-policy/resources/permissions-policy-report-only-in-xsl.xslt | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
package scala.tools.eclipse.contribution.weaving.jdt.ui.document;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.projection.ProjectionDocumentManager;
public privileged aspect CreateSlaveProjectionDocument {
pointcut createSlaveDocument(IDocument master):
execution(IDocument ProjectionDocum... | AspectJ | 4 | elemgee/scala-ide | org.scala-ide.sdt.aspects/src/scala/tools/eclipse/contribution/weaving/jdt/ui/document/CreateSlaveProjectionDocument.aj | [
"BSD-3-Clause"
] |
<h3>RDoc formatting tips (<a target="_new" href="http://rdoc.sourceforge.net/doc/files/markup/simple_markup_rb.html">advanced</a>)</h3>
<table cellspacing="0" cellpadding="0">
<tr><td>_your text_</td><td class="arrow">→</td><td><em>your text</em></td></tr>
<tr><td>*your text*</td><td class="arrow">→</td><... | RHTML | 3 | taskforce/instiki | app/views/rdoc_help.rhtml | [
"Ruby"
] |
"""Support for INSTEON dimmers via PowerLinc Modem."""
from pyinsteon.groups import (
CO_SENSOR,
DOOR_SENSOR,
HEARTBEAT,
LEAK_SENSOR_WET,
LIGHT_SENSOR,
LOW_BATTERY,
MOTION_SENSOR,
OPEN_CLOSE_SENSOR,
SENSOR_MALFUNCTION,
SMOKE_SENSOR,
TEST_SENSOR,
)
from homeassistant.componen... | Python | 4 | MrDelik/core | homeassistant/components/insteon/binary_sensor.py | [
"Apache-2.0"
] |
#ifndef @(package_name.upper())__@(library_name.upper())_HPP_
#define @(package_name.upper())__@(library_name.upper())_HPP_
#include "@(package_name)/visibility_control.h"
namespace @(package_name)
{
class @(class_name)
{
public:
@(class_name)();
virtual ~@(class_name)();
};
} // namespace @(package_name)
#e... | EmberScript | 4 | sunbo57123/ros2cli_common_extension | ros2pkg/ros2pkg/resource/cpp/header.hpp.em | [
"Apache-2.0"
] |
#!/usr/bin/env bash
# Copyright 2015 The Kubernetes 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 applica... | Shell | 5 | 767829413/kubernetes | hack/get-build.sh | [
"Apache-2.0"
] |
#!./parrot -C
#
# fasta.pir N (N = 2500000 for shootout)
# by Joshua Isom
# 48.2 sec on AMD@2000/512K cache
.sub makeCumulative
.param pmc genelist
.param int count
.local float cp
.local int i
cp = 0.0
i = 0
beginfor:
unless i < count goto endfor
$N0 = genelist[i;1]
cp += $N0
genelist[i;1] = cp
i... | Parrot | 4 | kragen/shootout | bench/fasta/fasta.parrot | [
"BSD-3-Clause"
] |
module LexerObjects
class Strings
@lexer : Lexer
@token : Token
def initialize(@lexer)
@token = Token.new
end
def string_should_be_delimited_by(expected_start, expected_end)
string_should_start_correctly
token.delimiter_state.nest.should eq(expected_start)
token.delimiter... | Crystal | 5 | mgomes/crystal | spec/compiler/lexer/lexer_objects/strings.cr | [
"Apache-2.0"
] |
/**
* Client-side support for the Jetty WebSocket API.
*/
@NonNullApi
@NonNullFields
package org.springframework.web.socket.client.jetty;
import org.springframework.lang.NonNullApi;
import org.springframework.lang.NonNullFields;
| Java | 2 | nicchagil/spring-framework | spring-websocket/src/main/java/org/springframework/web/socket/client/jetty/package-info.java | [
"Apache-2.0"
] |
20 3 0 0 84
0 1 8 2 4 8 6 3 5 1 7 [0] [0] [0] [0] [0] [0] [0] [0]
1 1 5 15 9 19 18 10 [3] [0] [2] [0] [2]
2 1 4 19 18 12 9 [-2] [11] [15] [-6]
3 1 5 16 18 19 20 17 [6] [17] [4] [1] [8]
4 1 5 20 17 16 19 18 [-1] [-2] [2] [3] [10]
5 1 3 9 14 19 [-4] [18] [-3]
6 1 3 14 9 19 [6] [1] [6]
7 1 5 17 16 19 20 18 [-4] [-... | Eagle | 1 | klorel/or-tools | examples/data/rcpsp/single_mode_investment/rip20/rip46.sch | [
"Apache-2.0"
] |
package experimental_test
import "experimental"
import "testing"
inData =
"
#datatype,string,long,dateTime:RFC3339,string,string,string,double
#group,false,false,false,true,true,true,false
#default,_result,,,,,,
,result,table,_time,_measurement,_field,tag0,_value
,,0,2018-12-19T22:13:30Z,_m,a,t,1
,,0,2018-12-19T... | FLUX | 4 | metrico/flux | stdlib/experimental/join_test.flux | [
"MIT"
] |
package com.baeldung.examples.common;
public interface BookService {
}
| Java | 2 | DBatOWL/tutorials | guice/src/main/java/com/baeldung/examples/common/BookService.java | [
"MIT"
] |
/home/spinalvm/hdl/riscv-compliance/work//I-FENCE.I-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
80000000 <_start>:
80000000: 00001817 auipc a6,0x1
80000004: 00480813 addi a6,a6,4 # 80001004 <test_A_data>
80000008: 00001897 auipc a7,0x1
8000000c: 0088889... | ObjDump | 3 | cbrune/VexRiscv | src/test/resources/asm/I-FENCE.I-01.elf.objdump | [
"MIT"
] |
#!/usr/bin/env bash
set -o errexit -o nounset -o pipefail
commentChar="#"
while read -r line
do
firstChar="${line:0:1}"
if [[ "$firstChar" != "$commentChar" ]] && [[ -n "$firstChar" ]]
then
echo -n "$line" | base64
else
echo "$line"
fi
done <blns.txt
| Shell | 4 | suderio/big-list-of-naughty-strings | scripts/texttobase64.sh | [
"MIT"
] |
# These tests are taken from "Mathematica Programming: An Advanced Introduction"
# by Leonid Shifrin.
# pg 26
T Map(AtomQ, [x, Sin(x), 1 + 2 * I, 2 / 3]) == [True, False, True, True]
# pg 27
ClearAll(f,g,h,x,a,b)
a = z * Sin(x+y)
T Head(a) == Times
b = f(g)(h)(x)
T Head(b) == f(g)(h)
T Head(f(g)(h)) == f(g)
T Head(f... | Objective-J | 5 | UnofficialJuliaMirrorSnapshots/Symata.jl-a906b1d5-d016-55c4-aab3-8a20cba0db2a | symata_test/shifrin_test.sj | [
"MIT"
] |
(kicad_pcb (version 20171130) (host pcbnew 5.1.10-88a1d61d58~90~ubuntu20.04.1)
(general
(thickness 1.6)
(drawings 21)
(tracks 74)
(zones 0)
(modules 5)
(nets 17)
)
(page A4)
(layers
(0 F.Cu signal)
(31 B.Cu signal)
(32 B.Adhes user)
(33 F.Adhes user)
(34 B.Paste use... | KiCad | 3 | ccwanggl/smartknob | electronics/LevelShifterBreakout/LevelShifterBreakout.kicad_pcb | [
"Apache-2.0"
] |
static const uint32_t in_f32[256] = {
0x3e7b9a11, 0x3f430e64, 0x3f7b61f8, 0x3f3e1a0a,
0x3f10ac73, 0x3f4e4019, 0x3ecb6c1a, 0x3eb9d756,
0x3edf6a04, 0x3e48703f, 0x3f0bd6e4, 0x3f338f5b,
0x3f2ccba0, 0x3f7eed8c, 0x3f40b36d, 0x3f432aa2,
0x3f3efcd1, 0x3ea25922, 0x3f14060b, 0x3f1de431,
0x3f317a8d, 0x3ea3... | Max | 3 | psychogenic/zephyr | tests/lib/cmsis_dsp/support/src/f32.pat | [
"Apache-2.0"
] |
(*
* 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.
*)
open Base.Option.Monad_infix
module Ast = Flow_ast
(** sometimes due to parse errors, we end up with empty names. hide them!
i... | OCaml | 5 | zhangmaijun/flow | src/lsp/documentSymbolProvider.ml | [
"MIT"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_activeSwRadio
Author: NKey
returns the active SR radio
Arguments:
None
Return Value:
active SR radio <STRING>
Example:
call TFAR_fnc_activeSwRadio;
Public: Yes
*/
private _result = nil;
{
if (_x call TFAR_fnc_isRadio) exitWith {_re... | SQF | 4 | MrDj200/task-force-arma-3-radio | addons/core/functions/fnc_activeSwRadio.sqf | [
"RSA-MD"
] |
/*
* Parses unix mail boxes into headers and bodies.
*/
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
using namespace std;
#define BUFSIZE 2048
/* A growable buffer for collecting headers. */
struct Buffer
{
Buffer() : data(0), allocated(0), length(0) { }
~Buffer() { empty(); }
... | Ragel in Ruby Host | 5 | garethchen/hhvm-third-party | ragel/src/examples/mailbox.rl | [
"MIT"
] |
// Copyright 2010-2013 RethinkDB, all rights reserved.
#include "serializer/log/static_header.hpp"
#include <functional>
#include <vector>
#include "arch/arch.hpp"
#include "arch/runtime/coroutines.hpp"
#include "containers/scoped.hpp"
#include "config/args.hpp"
#include "logger.hpp"
#include "utils.hpp"
// The CURR... | C++ | 4 | zadcha/rethinkdb | src/serializer/log/static_header.cc | [
"Apache-2.0"
] |
exec("swigtest.start", -1);
f = new_Foo();
b = new_Bar(f);
Bar_x_set(b, 3);
if Bar_x_get(b) <> 3 then swigtesterror(); end
fp = Bar___deref__(b);
Bar_x_set(b, 4);
if Bar_x_get(b) <> 4 then swigtesterror(); end
exec("swigtest.quit", -1);
| Scilab | 3 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/smart_pointer_simple_runme.sci | [
"BSD-3-Clause"
] |
frequency,raw,error,smoothed,error_smoothed,equalization,parametric_eq,fixed_band_eq,equalized_raw,equalized_smoothed,target
20.00,7.90,2.72,7.90,2.72,-2.72,-2.38,-1.24,5.18,5.18,5.18
20.20,7.90,2.73,7.90,2.73,-2.73,-2.40,-1.28,5.16,5.16,5.17
20.40,7.90,2.74,7.90,2.74,-2.75,-2.41,-1.31,5.15,5.15,5.16
20.61,7.90,2.75,7.... | CSV | 1 | vinzmc/AutoEq | results/referenceaudioanalyzer/referenceaudioanalyzer_siec_harman_in-ear_2019v2/Apple ME186 In-Ear Headphones/Apple ME186 In-Ear Headphones.csv | [
"MIT"
] |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="myArg1" select="'No Value Specified'"/>
<xsl:param name="myArg2" select="'No Value Specified'"/>
<xsl:param name="myArg3" select="'No Value Specified'"/>
<xsl:param name="myArg4" select="'No Value Specified'"/>
<xsl:param... | XSLT | 3 | pyracanda/runtime | src/libraries/System.Private.Xml/tests/Xslt/TestFiles/TestData/XsltApi/showParam.xsl | [
"MIT"
] |
/* 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 | 5 | EricRemmerswaal/tensorflow | tensorflow/compiler/mlir/lite/experimental/tac/common/subgraph.h | [
"Apache-2.0"
] |
(kicad_pcb (version 20171130) (host pcbnew "(5.0.2)-1")
(general
(thickness 1.6)
(drawings 74)
(tracks 94)
(zones 0)
(modules 16)
(nets 21)
)
(page A4)
(layers
(0 F.Cu signal)
(31 B.Cu signal)
(32 B.Adhes user hide)
(33 F.Adhes user)
(34 B.Paste user hide)
(35 F... | KiCad | 4 | PaulG4H/HASwitchPlate | PCB/HASwitchPlate.kicad_pcb | [
"MIT"
] |
[[spring-core]]
= Core Technologies
:toc: left
:toclevels: 4
:tabsize: 4
:docinfo1:
This part of the reference documentation covers all the technologies that are
absolutely integral to the Spring Framework.
Foremost amongst these is the Spring Framework's Inversion of Control (IoC) container.
A thorough treatment of ... | AsciiDoc | 3 | spreoW/spring-framework | src/docs/asciidoc/core.adoc | [
"Apache-2.0"
] |
__includes ["SimulatedAnnealing.nls"]
extensions [rnd matrix]
; Global Variables
globals [
nrows
ncols
rows-dist ; Distribution of cells in rows, for example: [3] or [2 5 2]
cols-dist ; Distribution of cells in columns
Initial-state
]
; Setup procedure prepares the data for the Simulated Annealing ... | NetLogo | 5 | fsancho/IA | 04. Local Search/Simulated Annealing Nonogram2.nlogo | [
"MIT"
] |
At: "027.hac":4:
parse error: syntax error
parser stacks:
state value
#STATE# (null)
#STATE# (null)
#STATE# keyword: template [3:1..8]
#STATE# list<(template-formal-decl)>: ... [3:10..11]
#STATE# keyword: defproc [4:1..7]
in state #STATE#, possible rules are:
template_specification: TEMPLATE template_formal_decl_lis... | Bison | 2 | broken-wheel/hacktist | hackt_docker/hackt/test/parser/template/027.stderr.bison | [
"MIT"
] |
#! /usr/bin/env hy
(defn salutationsnm [name] (print (+ "Hy " name "!")))
(salutationsnm "@israelzuniga")
| Hy | 3 | saurabhcommand/Hello-world | Hy/hello_githubuser.hy | [
"MIT"
] |
# Compiled Lua sources
luac.out
# luarocks build files
*.src.rock
*.zip
*.tar.gz
# Object files
*.o
*.os
*.ko
*.obj
*.elf
# Precompiled Headers
*.gch
*.pch
# Libraries
*.lib
*.a
*.la
*.lo
*.def
*.exp
# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib
# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.h... | HTML+Django | 2 | MalcolmScoffable/openapi-generator | modules/openapi-generator/src/main/resources/protobuf-schema/gitignore.mustache | [
"Apache-2.0"
] |
<div class="color-scheme-switch-container">
<button aria-label="Toggle theme" title="Toggle theme" role="switch" aria-checked="true" class="color-scheme-switch">
<div class="selector"></div>
{% include svg/moon.svg %}
{% include svg/sun.svg %}
</button>
</div>
| Liquid | 3 | ViGi-P/rome | website/src/_includes/color-scheme-switcher.liquid | [
"MIT"
] |
----------------------------------------------------------------------------------
-- Engineer: Mike Field <haster@snap.net.nz>
--
-- Module Name: detect_speed_and_reassemble_bytes - Behavioral
--
-- Description: Process the raw RGMII RX data to generate bytes and status signals
--
--------------------------------... | VHDL | 4 | hamsternz/FPGA_Webserver | hdl/detect_speed_and_reassemble_bytes.vhd | [
"MIT"
] |
@prefix : <http://www.w3.org/2013/TurtleTests/> .
:s :p [] .
| Turtle | 1 | joshrose/audacity | lib-src/lv2/serd/tests/TurtleTests/turtle-syntax-bnode-02.ttl | [
"CC-BY-3.0"
] |
import logic
section
variables (A : Type) (p q : A → Prop)
example : (∀x : A, p x ∧ q x) → ∀y : A, p y :=
assume H : ∀x : A, p x ∧ q x,
take y : A,
show p y, from and.elim_left (H y)
end
| Lean | 5 | soonhokong/ace | demo/kitchen-sink/docs/lean.lean | [
"BSD-3-Clause"
] |
#pragma once
#include <thrust/tuple.h>
#include <ATen/native/SharedReduceOps.h>
#include <ATen/cuda/DeviceUtils.cuh>
namespace at {
namespace native {
namespace cuda_utils {
constexpr int kCUDABlockReduceNumThreads = 512;
// Algorithmic limitation: BlockReduce does two WarpReduce calls, each
// of which reduces C10... | Cuda | 4 | Hacky-DH/pytorch | aten/src/ATen/native/cuda/block_reduce.cuh | [
"Intel"
] |
// Licensed to the Apache Software Foundation(ASF) under one
// or more contributor license agreements.See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership.The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not ... | Haxe | 4 | Jimexist/thrift | lib/haxe/src/org/apache/thrift/transport/TEndpointTransport.hx | [
"Apache-2.0"
] |
source "../tests/includes/init-tests.tcl"
proc cluster_allocate_mixedSlots {n} {
set slot 16383
while {$slot >= 0} {
set node [expr {$slot % $n}]
lappend slots_$node $slot
incr slot -1
}
for {set j 0} {$j < $n} {incr j} {
R $j cluster addslots {*}[set slots_${j}]
}
}... | Tcl | 5 | dawnwalk/redis | tests/cluster/tests/15-cluster-slots.tcl | [
"BSD-3-Clause"
] |
-- This test file was converted from inline-table.sql.
-- [SPARK-28291] UDFs cannot be evaluated within inline table definition
-- TODO: We should add UDFs in VALUES clause when [SPARK-28291] is resolved.
-- single row, without table and column alias
select udf(col1), udf(col2) from values ("one", 1);
-- single row, ... | SQL | 4 | OlegPt/spark | sql/core/src/test/resources/sql-tests/inputs/udf/udf-inline-table.sql | [
"Apache-2.0"
] |
// @declaration: true
module foo {
export interface IFoo<T> { }
}
module bar {
export class Foo<T> implements foo.IFoo<T> { }
}
| TypeScript | 4 | nilamjadhav/TypeScript | tests/cases/compiler/genericClassImplementingGenericInterfaceFromAnotherModule.ts | [
"Apache-2.0"
] |
@import '../../style/themes/index';
.@{list-prefix-cls}-bordered {
border: 1px solid @border-color-base;
border-radius: @border-radius-base;
.@{list-prefix-cls}-header {
padding-right: @padding-lg;
padding-left: @padding-lg;
}
.@{list-prefix-cls}-footer {
padding-right: @padding-lg;
padding-... | Less | 3 | noctis0430-open-source/ant-design-blazor | components/list/style/bordered.less | [
"MIT"
] |
# hash table
#
# ht[0] = allocated size
# ht[1] = number of used slots
# ht[2..] = table
#
# each element of the table is 2 words: the first word is a pointer to the key
# (or 0 if the element is unused); the second word is the value
#
# the "key"s are strings that are *not* strdup()'d, so they need to be
# immutable a... | Slash | 5 | jes/scamp-cpu | sys/lib/hash.sl | [
"Unlicense"
] |
-- Collections
macroScript RigidBodyCollection category:"Reactor Toolbar" tooltip:"Rigid Body Collection" Icon:#("Reactor",2)
(
StartObjectCreation HKRBCollection
)
macroScript ClothCollection category:"Reactor Toolbar" tooltip:"Cloth Collection" Icon:#("Reactor",17)
(
StartObjectCreation HKCLCollection
)
macr... | MAXScript | 4 | 89096000/MaxScript | Modelling/softinstance/treeview/icons/Reactor.mcr | [
"MIT"
] |
//===--- ReborrowVerifier.cpp ---------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | C++ | 5 | gandhi56/swift | lib/SIL/Verifier/ReborrowVerifier.cpp | [
"Apache-2.0"
] |
`define TEST(kwd) \
kwd kwd``_1; \
kwd kwd``_2; \
initial kwd``_1 = 1; \
assign kwd``_2 = 1;
`define TEST_VAR(kwd) \
var kwd var_``kwd``_1; \
var kwd var_``kwd``_2; \
initial var_``kwd``_1 = 1; \
assign var_``kwd``_2 = 1;
`define TEST_WIRE(kwd) \
wire kwd wire_``kwd``_1; \
wire kwd wire_``kwd``_2; \
initia... | SystemVerilog | 3 | gudeh/yosys | tests/verilog/wire_and_var.sv | [
"ISC"
] |
%%
%% %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 | 4 | jjhoo/otp | lib/diameter/examples/code/relay.erl | [
"Apache-2.0"
] |
.src-imports-style {
color: tan;
}
| CSS | 1 | laineus/vite | packages/playground/vue/src-import/style.css | [
"MIT"
] |
; Test strict multiplication of two f32s, producing an f64 result.
; FIXME: we do not have a strict version of fpext yet
;
; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
declare float @foo()
declare double @llvm.experimental.constrained.fmul.f64(double, double, metadata, metadata)
; Check register multiplica... | LLVM | 5 | arunkumarbhattar/llvm | test/CodeGen/SystemZ/fp-strict-mul-02.ll | [
"Apache-2.0"
] |
<%--
Copyright 2012 Netflix, Inc.
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 agree... | Groovy Server Pages | 4 | michaelneale/asgard | grails-app/views/common/_showTags.gsp | [
"Apache-2.0"
] |
#
# Copyright (c) 2020-2021 Alex Spataru <https://github.com/alex-spataru>
#
# 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 the rights
# to ... | QMake | 1 | Serial-Studio/Serial-Studio | assets/Assets.pri | [
"MIT"
] |
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
MODULE = Hash::Util PACKAGE = Hash::Util
SV*
all_keys(hash,keys,placeholder)
SV* hash
SV* keys
SV* placeholder
PROTOTYPE: \%\@\@
PREINIT:
AV* av_k;
AV* av_p;
HV* hv;
SV *key;
HE *he;
CODE:
if (!SvROK(hash) || S... | XS | 3 | vlinhd11/vlinhd11-android-scripting | perl/src/ext/Hash-Util/Util.xs | [
"Apache-2.0"
] |
-- Copyright 2020-2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local json = require("json")
name = "CIRCL"
type = "api"
function start()
set_rate_limit(2)
end
function check()
local c
local cfg = datasrc_config()
... | Ada | 3 | Elon143/Amass | resources/scripts/api/circl.ads | [
"Apache-2.0"
] |
val x = 0
val hello = "hello world"
val id = fn x => x
fun id' x = x
val () = print "hello world\n"
val _ = let
val hello = "hello"
val world = "world"
in
print (hello ^ " " ^ world ^ "\n")
end
fun isZero n =
if n = 0 then true
else false
fun isTrue b =
case b of
true => true
| false => false
... | Standard ML | 5 | JesseVermeulen123/bat | tests/syntax-tests/source/SML/sample.sml | [
"Apache-2.0",
"MIT"
] |
if (Ca.test(c.href) || Ba.test(c.href) && /(\\?|&)adurl=/.test(c.href) && !/(\\?|&)q=/.test(c.href)) / (\\ ? | & ) rct = j / .test(c.href) || (d += "&rct=j"), /(\\?|&)q=/.test(c.href) || (d += "&q=" + encodeURIComponent(W("q") || W("as_q") || A), d = d.substring(0, 1948 - c.href.length)), b = !0; | TypeScript | 1 | nilamjadhav/TypeScript | tests/cases/conformance/parser/ecmascript5/RegularExpressions/parserRegularExpression4.ts | [
"Apache-2.0"
] |
17 9 19 37 3 30 10 3 47 36 22 24 16 16 38 40 37 13 3 45
23 33 16 21 48 26 5 35 21 48 26 48 37 8 27 11 23 30 8 16
6 40 45 10 22 45 3 24 44 25 27 43 43 4 23 16 21 41 25 15
2 2 18
5 2 2 1 2 5 1 1 5 1 3 5 5 3 5 3 4 2 1 4
4 1 2 4 4 4 5 5 3 2 4 5 1 2 2 4 1 5 2 5 1 4 2 5 3 5 5 1 1 1
2 3 5 2 2 4 5 5 5 2 3 4 1 3 1 4 5 5 5 2 ... | Matlab | 0 | yinrun/LOPDC-Benchmarks | lofri/matlab/n20-m3-r30-22.matlab | [
"MIT"
] |
fn read_lines_borrowed<'a>() -> Vec<&'a str> {
let raw_lines: Vec<String> = vec!["foo ".to_string(), " bar".to_string()];
raw_lines.iter().map(|l| l.trim()).collect()
//~^ ERROR cannot return value referencing local variable `raw_lines`
}
fn main() {
println!("{:?}", read_lines_borrowed());
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/dropck/drop-with-active-borrows-2.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
<?xml version="1.0" encoding="UTF-8"?>
<!-- ******************************************************************* -->
<!-- -->
<!-- © Copyright IBM Corp. 2010, 2012 -->
<!-- ... | XPages | 3 | jesse-gallagher/XPagesExtensionLibrary | extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.oneui/src/com/ibm/xsp/extlib/config/raw-extlib-oneui-layout.xsp-config | [
"Apache-2.0"
] |
#%RAML 1.0
title: API for REST Services used in the RAML tutorials on Baeldung.com
documentation:
- title: Overview
content: |
This document defines the interface for the REST services
used in the popular RAML Tutorial series at Baeldung.com.
- title: Disclaimer
content: |
All names used i... | RAML | 4 | zeesh49/tutorials | raml/annotations/api.raml | [
"MIT"
] |
#tag Class
Protected Class UIFeedbackGenerator
Inherits NSObject
#tag Method, Flags = &h21
Private Sub Constructor()
// Calling the overridden superclass constructor.
// Note that this may need modifications if there are multiple constructor choices.
// Possible constructor calls:
// Constructor() --... | Xojo | 4 | kingj5/iOSKit | Modules/UIKit/UIFeedbackGenerator.xojo_code | [
"MIT"
] |
include("${CMAKE_CURRENT_LIST_DIR}/OpenCV-WinRT.cmake")
# Adding additional using directory for WindowsPhone 8.0 to get Windows.winmd properly
if(WINRT_8_0)
set(OPENCV_EXTRA_CXX_FLAGS "${OPENCV_EXTRA_CXX_FLAGS} /AI\$(WindowsSDK_MetadataPath)")
endif()
| CMake | 3 | thisisgopalmandal/opencv | cmake/platforms/OpenCV-WindowsPhone.cmake | [
"BSD-3-Clause"
] |
MODULE MainModule
! Pose variables
CONST num NUMPOSES := {};
CONST jointtarget poses{{NUMPOSES}} :=
[
{}
];
! Main routine
PROC main()
ConfL\Off;
SingArea\Wrist;
! Go to start position
MoveAbsJ [[0, 0, 0, 0, 0, 0], [9E9, 9E9, 9E9, 9E9, 9E9, 9E9]], v100, fine, tool0;
! Go to programmed posit... | xBase | 3 | Bootsmaat/Mimic | mimic/scripts/postproc/ABB/RAPID/template_use_as_vars.prg | [
"MIT"
] |
<!DOCTYPE html>
<html class="{{ htmlClass }}" lang="en">
<head>
<title>{{ title }}</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" href="../../css/style.css?{{ cacheBuster }}" media="all" />
<link rel="stylesheet" href="../../css/pattern... | Liquid | 3 | renestalder/patternlab-node | packages/engine-liquid/_meta/_head.liquid | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.