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 |
|---|---|---|---|---|---|
data {
// numbers of things
int<lower=1> I; // items
int<lower=1> S; // subjects
int<lower=1> R; // responses
int<lower=1> G; // grades
// training data
int<lower=1,upper=I> item[R];
int<lower=1,upper=S> subject[R];
int<lower=1,upper=G> grade[R];
// test data
int<lower=1> R_holdout;
int<lo... | Stan | 5 | simeond/stancon_talks | 2017/Contributed-Talks/06_groves/graded_irt_xval.stan | [
"CC-BY-4.0",
"BSD-3-Clause"
] |
frequency,raw,error,smoothed,error_smoothed,equalization,parametric_eq,fixed_band_eq,equalized_raw,equalized_smoothed,target
20.00,4.45,0.12,4.45,0.12,-0.12,-0.05,0.02,4.33,4.33,4.33
20.20,4.44,0.12,4.45,0.12,-0.13,-0.05,0.02,4.32,4.32,4.32
20.40,4.43,0.12,4.44,0.13,-0.13,-0.05,0.02,4.30,4.31,4.31
20.61,4.43,0.13,4.43,... | CSV | 3 | vinzmc/AutoEq | results/referenceaudioanalyzer/referenceaudioanalyzer_siec_harman_in-ear_2019v2/Whizzer A15 Pro/Whizzer A15 Pro.csv | [
"MIT"
] |
/*--------------------------------------------------*/
/* SAS Programming for R Users - code for exercises */
/* Copyright 2016 SAS Institute Inc. */
/*--------------------------------------------------*/
/*SP4R08d01*/
/*Part A*/
ods select basicmeasures histogram;
proc univariate data=sp4r.fish;
va... | SAS | 4 | snowdj/sas-prog-for-r-users | code/SP4R08d01.sas | [
"CC-BY-4.0"
] |
#!/usr/bin/env bash
cd internal
make clean && make
| Shell | 2 | columbus9963/kubernetes | vendor/gonum.org/v1/gonum/graph/formats/dot/makeinternal.bash | [
"Apache-2.0"
] |
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct Inputs {
};
struct Outputs {
half4 sk_FragColor [[color(0)]];
};
fragment Outputs fragmentMain(Inputs _in [[stage_in]], bool _frontFacing [[front_facing]], float4 _fragCoord [[position]]) {
Outputs _out;
(void)_out;
array<half,... | Metal | 3 | fourgrad/skia | tests/sksl/shared/ArrayFollowedByScalar.metal | [
"BSD-3-Clause"
] |
\begin{code}
module Main (main) where
import Distribution.Simple (defaultMain)
main :: IO ()
main = defaultMain
\end{code}
| Literate Haskell | 3 | duobei/lens | Setup.lhs | [
"BSD-2-Clause"
] |
((c++-mode (flycheck-gcc-language-standard . "c++11")
(flycheck-clang-language-standard . "c++11")
))
| Emacs Lisp | 3 | Neptos/openpilot | .dir-locals.el | [
"MIT"
] |
# set terminal postscript eps color 20 lw 3
# set output '| epstopdf -f -o=computation-time-reduce-surface.pdf'
set terminal svg fname 'Verdana' lw 2 # size 640 480 fname 'Verdana' lw 3
set output 'computation-time-reduce-surface.svg'
set key autotitle columnheader
set ylabel "Time (sec)"
set xlabel "#Darts"
set key... | Gnuplot | 3 | ffteja/cgal | Surface_mesh_topology/benchmark/Surface_mesh_topology/graphs/computation-time-reduce-surface.gnuplot | [
"CC0-1.0"
] |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | JavaScript | 3 | dany-freeman/material-ui | packages/mui-icons-material/lib/AirlineStopsOutlined.js | [
"MIT"
] |
#!/bin/bash
# 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.
# Set terminal title
echo -en "\\033]0;Metro\\a"
clear
THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BAS... | Shell | 4 | peterc1731/react-native | scripts/launchPackager.command | [
"CC-BY-4.0",
"MIT"
] |
/home/spinalvm/hdl/riscv-compliance/work//I-SLTU-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
80000000 <_start>:
80000000: 00001097 auipc ra,0x1
80000004: 00008093 mv ra,ra
80000008: 00001117 auipc sp,0x1
8000000c: 01810113 addi sp,sp,24 # 8000... | ObjDump | 3 | cbrune/VexRiscv | src/test/resources/asm/I-SLTU-01.elf.objdump | [
"MIT"
] |
%%%
%%% Authors:
%%% Leif Kornstaedt <kornstae@ps.uni-sb.de>
%%%
%%% Copyright:
%%% Leif Kornstaedt, 1998
%%%
%%% Last change:
%%% $Date$ by $Author$
%%% $Revision$
%%%
%%% This file is part of Mozart, an implementation of Oz 3:
%%% http://www.mozart-oz.org
%%%
%%% See the file "LICENSE" or
%%% http://www.m... | Oz | 4 | Ahzed11/mozart2 | platform-test/base/compiler.oz | [
"BSD-2-Clause"
] |
2016-02-18 11:42:24 > fsociety (whoami@localhost) has joined #telegram
2016-02-18 11:42:24 - Channel #telegram: 2 nicks (2 ops, 0 halfops, 0 voices, 0 normals)
| IRC log | 0 | 0x4b1dN/2016-dots | misc/weechat/logs/irc.bitlbee.#telegram.weechatlog | [
"MIT"
] |
package {
/**
* @author Maeiky
*/
import GZ.File.File;
public extension Resource {
public var sFile : String;
//public var oFileHandle : File;
public var oFile : File;
public var aSrcMemData : CArray<UInt8>;
public var sPath : String;
public var sVDrive : String;
//public var n... | Redcode | 3 | VLiance/GZE | src/Lib_GZ/File/Resource.cw | [
"Apache-2.0"
] |
(*
Module: Grub
Parses grub configuration
Author: David Lutterkort <lutter@redhat.com>
About: License
This file is licenced under the LGPL v2+, like the rest of Augeas.
About: Lens Usage
To be documented
*)
module Grub =
autoload xfm
(* This only covers the most basic grub directives. Needs to be *)
... | Augeas | 4 | zwass/launcher | pkg/augeas/assets/lenses/grub.aug | [
"MIT"
] |
/*
* Copyright (c) 2021, Liav A. <liavalb@hotmail.co.il>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/OwnPtr.h>
#include <AK/RefPtr.h>
#include <AK/Types.h>
#include <Kernel/Devices/BlockDevice.h>
#include <Kernel/Storage/StorageController.h>
namespace Kernel {
class AsyncBlockDeviceRe... | C | 4 | r00ster91/serenity | Kernel/Storage/ATA/ATAController.h | [
"BSD-2-Clause"
] |
// @jsx: react
declare const React: any
let Foo = {
Bar() {}
}
let Baz = () => {}
let x = < Foo.Bar >Hello
let y = < Baz >Hello | TypeScript | 3 | monciego/TypeScript | tests/cases/compiler/errorSpanForUnclosedJsxTag.tsx | [
"Apache-2.0"
] |
@app
mockapp
@static
| Arc | 0 | copperinc/sandbox | test/mock/root-handling/bare-static/app.arc | [
"Apache-2.0"
] |
var complex1 = require("./lib/complex1");
require.ensure(["./lib/complex1", "complexm/step2"], function(require) {
require("./lib/complex1");
var a = function() {}
require.ensure(["complexm/step1"], function(require) {
require("./lib/complex1");
var s1 = require("complexm/step1");
var s2 = require("complexm/st... | JavaScript | 2 | 1shenxi/webpack | test/fixtures/complex.js | [
"MIT"
] |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#pragma once
#include <winrt/Microsoft.Terminal.TerminalConnection.h>
#include <til/latch.h>
namespace winrt::Microsoft::TerminalApp::implementation
{
class DebugInputTapConnection;
class DebugTapConnection : public winrt::... | C | 4 | sonvt1710/terminal | src/cascadia/TerminalApp/DebugTapConnection.h | [
"MIT"
] |
{% set tmp_dir = pillar['tmp_dir'] %}
{{ tmp_dir }}/pki:
file.directory
{{ tmp_dir }}/pki/issued_certs:
file.directory
{{ tmp_dir }}/pki/ca.key:
x509.private_key_managed:
# speed this up
- bits: 1024
- require:
- file: {{ tmp_dir }}/pki
{{ tmp_dir }}/pki/ca.crt:
x509.certificate_managed... | SaltStack | 4 | babs/salt | tests/integration/files/file/base/x509/proper_cert_comparison.sls | [
"Apache-2.0"
] |
/**********************************************************************
* File: statistc.h (Formerly stats.h)
* Description: Class description for STATS class.
* Author: Ray Smith
*
* (C) Copyright 1991, Hewlett-Packard Ltd.
** Licensed under the Apache License, Version 2.0 (the "License");
** you m... | C | 5 | CatBruh/tesseract | src/ccstruct/statistc.h | [
"Apache-2.0"
] |
' ********** Copyright 2016 Roku Corp. All Rights Reserved. **********
sub init()
m.top.SetFocus(true)
infoPane = m.top.findNode("infoPane")
infoPane.infoText = "The InfoPane node class is used to display an opaque, white-bordered, rounded rectangular label with text providing help for a spec... | Brightscript | 4 | khangh/samples | ux components/screen elements/renderable nodes/InfoPaneExample/components/MainScene.brs | [
"MIT"
] |
(defproject todomvc "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-3058" :scope "provided"]
[reagent "0.5.0"]
[secretary "1.2.2"]
[alandipert/storage-atom "1.2.4"]]
:jvm-opts ["--add-modules" "java.xm... | Clojure | 4 | dtelaroli/todomvc | examples/reagent/project.clj | [
"MIT"
] |
const { app, BrowserWindow } = require('electron');
const windows = [];
function createWindow (id) {
const window = new BrowserWindow({ show: false });
window.loadURL(`data:,window${id}`);
windows.push(window);
}
app.whenReady().then(() => {
for (let i = 1; i <= 5; i++) {
createWindow(i);
}
setImmed... | JavaScript | 4 | lingxiao-Zhu/electron | spec/fixtures/api/exit-closes-all-windows-app/main.js | [
"MIT"
] |
Support code for Leisure
'use strict'
define ['./base', './ast', './runtime', './gen', './eval', './org', './transaction'], (Base, Ast, Runtime, Gen, Eval, Org, Transaction)->
{
define
getType
cons
unescapePresentationHtml
isNil
isPartial
partialCal... | Literate CoffeeScript | 4 | zot/Leisure | src/leisure-support.litcoffee | [
"Zlib"
] |
// Copyright 2017-2018 Elias Aebi
//
// 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... | Vala | 4 | Timmmm/xi-gtk | src/Utilities.vala | [
"Apache-2.0"
] |
% Pretty-printing parser for HTML files
% Jim Cordy, Queen's, September 2007
include "html.grm"
function main
match [program]
P [program]
end function
| TXL | 3 | grammarware/slps | topics/grammars/html/cordy/HTML/html.txl | [
"BSD-3-Clause"
] |
RPTSTR(S,N)
;Repeat a string S for N times
NEW I
FOR I=1:1:N WRITE S
KILL I
QUIT
RPTSTR1(S,N) ;Functionally equivalent, but denser to read
F I=1:1:N W S
Q
| M | 4 | LaudateCorpus1/RosettaCodeData | Task/Repeat-a-string/MUMPS/repeat-a-string-1.mumps | [
"Info-ZIP"
] |
#*****************************************************************************
# *
# Make file for VMS *
# Author : J.Jansen (joukj@hrem.nano.tudelft.nl) *
... | Module Management System | 2 | gamekit-developers/gamekit | wxWidgets-2.9.1/src/generic/descrip.mms | [
"Zlib",
"MIT"
] |
discard """
ccodecheck: "\\i !@('systemInit')"
ccodecheck: "\\i !@('systemDatInit')"
output: "hello"
"""
# bug #2041: Macros need to be available for os:standalone!
import macros
proc printf(frmt: cstring) {.varargs, header: "<stdio.h>", cdecl.}
var x = 0
inc x
printf("hi %ld\n", x+4777)
proc substr(a: string): str... | Nimrod | 3 | JohnAD/Nim | tests/manyloc/standalone/barebone.nim | [
"MIT"
] |
,AA,AAPL,GE,IBM,JNJ,MSFT,PEP,SPX,XOM
1990-02-01 00:00:00,4.98,7.86,2.87,16.79,4.27,0.51,6.04,328.79,6.12
1990-02-02 00:00:00,5.04,8.0,2.87,16.89,4.37,0.51,6.09,330.92,6.24
1990-02-05 00:00:00,5.07,8.18,2.87,17.32,4.34,0.51,6.05,331.85,6.25
1990-02-06 00:00:00,5.01,8.12,2.88,17.56,4.32,0.51,6.15,329.66,6.23
1990-02-07 0... | CSV | 1 | robcarreiro/pydata-book | examples/stock_px.csv | [
"MIT"
] |
X : Nat
X = let a : Nat
a = 0
in a
Y : Nat
Y = let a : Nat
a = 0
in a
Z : Nat
Z = let a : Nat
a = 0
in a
A : Nat
A = let a : Nat
a = 0
in a
| Idris | 2 | ska80/idris-jvm | tests/idris2/basic057/LetIn.idr | [
"BSD-3-Clause"
] |
a { value: x\0 } | CSS | 0 | kitsonk/swc | css/parser/tests/fixture/esbuild/misc/D5Oyf1ABeS8lie5Lg-5pqg/input.css | [
"Apache-2.0",
"MIT"
] |
== Performance ==
Merlin put a close attention on performance. All was done to provide answer
below reaction time for common queries.
The idea was that the work done for answering should be proportional to the
diff since the last query rather than the whole buffer size.
To this end, the design was a bit more comple... | MediaWiki | 3 | ZavierHenry/merlin | doc/next/RATIONALE.wiki | [
"MIT"
] |
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24" viewBox="0 0 24 24" width="24"><g><path d="M0,0h24v24H0V0z" fill="none"/></g><g><g><path d="M4,18h16V6H4V18z M16,8l2,2h-4L16,8z M18,14.25l-2,2l-2-2H18z M6,14h4v-1H7c-0.55,0-1-0.45-1-1V9 c0-0.55,0.45-1,1-1h1V7h2v1h2v2H8v1h3c0.55,0,1,0.... | SVG | 1 | good-gym/material-ui | packages/material-ui-icons/material-icons/price_change_two_tone_24px.svg | [
"MIT"
] |
scriptname _Frost_BaseSystem extends Quest
import _FrostInternal
GlobalVariable property UpdateFrequencyGlobal auto
{The global variable that determines how often this system should update. If left blank, this system is event-driven.}
bool initialized = false
function StartSystem()
FrostDebug(-1, "StartSystem " + ... | Papyrus | 4 | chesko256/Campfire | Scripts/Source/_Frost_BaseSystem.psc | [
"MIT"
] |
let n = getnum() in putnum(n * n) | Harbour | 2 | adam-mcdaniel/harbor | examples/square.hb | [
"Apache-2.0"
] |
<p>
<b>DAF (<%= @dafName -%>) for project: <%= @project.name -%></b>
</p>
<pre>
<font size=-1>
<%=@dafText-%>
</font>
</pre>
<%= link_to 'Download Daf', {:action => 'download_daf', :id => @project.id} -%>
| RHTML | 3 | andypohl/kent | src/hg/encode/hgEncodeSubmit/app/views/pipeline/show_daf.rhtml | [
"MIT"
] |
-include ../tools.mk
all: $(call NATIVE_STATICLIB,foo) $(call NATIVE_STATICLIB,bar)
$(RUSTC) lib1.rs
$(RUSTC) lib2.rs
$(RUSTC) main.rs -Clto
$(call RUN,main)
| Makefile | 3 | Eric-Arellano/rust | src/test/run-make-fulldeps/lto-no-link-whole-rlib/Makefile | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
// Copyright 2010-2014 RethinkDB, all rights reserved.
#ifndef BTREE_OPERATIONS_HPP_
#define BTREE_OPERATIONS_HPP_
#include <algorithm>
#include <utility>
#include <vector>
#include "btree/node.hpp"
#include "btree/stats.hpp"
#include "buffer_cache/alt.hpp"
#include "concurrency/fifo_enforcer.hpp"
#include "concurren... | C++ | 4 | zadcha/rethinkdb | src/btree/operations.hpp | [
"Apache-2.0"
] |
package {
public class Test {
}
}
function assert_uinteger(val) {
var num_val : uint = val;
trace(num_val);
}
trace("//true");
assert_uinteger(true);
trace("//false");
assert_uinteger(false);
trace("//null");
assert_uinteger(null);
trace("//undefined");
assert_uinteger(undefined);
trace("//\"\"");
assert_u... | ActionScript | 4 | Sprak1/ruffle | tests/tests/swfs/avm2/convert_uinteger/Test.as | [
"Apache-2.0",
"Unlicense"
] |
# Copyright (C) 2007, Parrot Foundation.
=begin overview
abc::Grammar::Actions - ast transformations for abc
This file contains the methods that are used by the parse
grammar to build the PAST representation of an abc program.
Each method below corresponds to a rule in F<grammar.pg>,
and is invoked at the point wher... | Perl6 | 5 | winnit-myself/Wifie | examples/languages/abc/src/parser/actions.nqp | [
"Artistic-2.0"
] |
.local-blue {
color: blue;
margin-left: 20;
}
| CSS | 1 | tralves/NativeScript | apps/ui/src/issues/component2/customView2-page.css | [
"Apache-2.0"
] |
.phishingIndicator {
display: block;
box-sizing: border-box;
-webkit-print-color-adjust: exact;
padding: 8px 12px;
margin-bottom: 5px;
border: 1px solid rgb(235, 204, 209);
border-radius: 4px;
color: rgb(169, 68, 66);
background-color: rgb(242, 222, 222);
white-space: nowrap;
overflow: hidden;
}
... | Less | 4 | cnheider/nylas-mail | packages/client-app/internal_packages/phishing-detection/stylesheets/phishing.less | [
"MIT"
] |
C
u
=
v
AP
d
2
K [
;}IA$
# 4eQ K
| AspectJ | 0 | TesterSzymoon/esofiles | adjust/src/hell.aj | [
"MIT"
] |
fun main() : nothing
var x: int[70][150][26];
var i,j,c: int;
fun printArray(ref x: int[150][26]; ref y: int[26]) : nothing
{
i <- 0;
while (i < 15) do {
j <- 0;
while (j < 15) do {
puti(x[i][j]); putc(' ');
j <- j+1;
}... | Grace | 3 | iPapatsoris/Grace-Compiler | src/tests/nonsense/array_test.grace | [
"MIT"
] |
package com.baeldung.morphia.domain;
import java.util.List;
import dev.morphia.annotations.Entity;
import dev.morphia.annotations.Id;
@Entity
public class Author {
@Id
private String name;
private List<String> books;
public String getName() {
return name;
}
public void setName(Stri... | Java | 3 | DBatOWL/tutorials | persistence-modules/java-mongodb/src/main/java/com/baeldung/morphia/domain/Author.java | [
"MIT"
] |
--TEST--
Bug #78441 (Parse error due to heredoc identifier followed by digit)
--FILE--
<?php
echo <<<FOO
FOO4
FOO, PHP_EOL;
echo <<<FOO
bar
FOO4
FOO, PHP_EOL;
echo <<<'FOO'
bar
FOO4
FOO, PHP_EOL;
?>
--EXPECT--
FOO4
bar
FOO4
bar
FOO4
| PHP | 3 | thiagooak/php-src | Zend/tests/grammar/bug78441.phpt | [
"PHP-3.01"
] |
defmodule ChatApiWeb.UserProfileController do
use ChatApiWeb, :controller
alias ChatApi.Users
action_fallback ChatApiWeb.FallbackController
@spec show(Plug.Conn.t(), map()) :: Plug.Conn.t()
def show(conn, _params) do
with %{id: user_id} <- conn.assigns.current_user do
user_profile = Users.get_use... | Elixir | 4 | raditya3/papercups | lib/chat_api_web/controllers/user_profile_controller.ex | [
"MIT"
] |
/*
Copyright © 2011-2013 MLstate
This file is part of Opa.
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 use, copy, m... | Opa | 5 | Machiaweliczny/oppailang | lib/stdlib/core/pack/pack.opa | [
"MIT"
] |
//tab_size=4
// Copyright 2021 nickmqb
// SPDX-License-Identifier: Apache-2.0
BlockInfo struct {
textureBits int
infoBits int // Bits: 0-6: texture; 7: truncate_last_2_bits_on_pickup; 8: rotate; 9: rotate3; 10: truncate_last_4_bits_on_pickup; 11: is_gravity_block; 12: is_door
}
main() {
::currentAllocator = Memory... | mupad | 3 | nickmqb/fpga_craft | block_info_gen/main.mu | [
"Apache-2.0"
] |
.def("reqSubscribeTopic", &StockTdApi::reqSubscribeTopic)
.def("reqUserLogin", &StockTdApi::reqUserLogin)
.def("reqUserLogout", &StockTdApi::reqUserLogout)
.def("reqUserPasswordUpdate", &StockTdApi::reqUserPasswordUpdate)
.def("reqStockInsert", &StockTdApi::reqStockInsert)
.def("reqStockCancel", &StockTdApi::reqStockCa... | C++ | 3 | funrunskypalace/vnpy | vnpy/api/nh/generator/stock/nh_stock_source_module.cpp | [
"MIT"
] |
@(type_);@(name);@(value)
| EmberScript | 0 | esteve/colcon-core | colcon_core/shell/template/hook_prepend_value.dsv.em | [
"Apache-2.0"
] |
Package { #name : #'GToolkit-Pharo6Compatibility' }
| Smalltalk | 0 | markfirmware/gtoolkit | src/GToolkit-Pharo6Compatibility/package.st | [
"MIT"
] |
/// <include file="Gui.xml" path="doc/EditWindow/*" />
CLASS EditWindow INHERIT ControlWindow
/// <include file="Gui.xml" path="doc/EditWindow.AsString/*" />
METHOD AsString()
RETURN SELF:TextValue
/// <include file="Gui.xml" path="doc/EditWindow.Clear/*" />
METHOD Clear()
oCtrl:Clear()
RETURN SE... | xBase | 3 | orangesocks/XSharpPublic | Runtime/VOSDK/Source/VOSDK/GUI_Classes_SDK/EditWindow.prg | [
"Apache-2.0"
] |
// ---------------------------------------------------------------------
// The Great Computer Language Shootout
// http://shootout.alioth.debian.org/
//
// Requires that the PCRE [Perl Compatible Regular Expression] library
// be installed [Pike needs to be rebuilt after this is installed].
//
// Also, makes use of co... | Pike | 4 | kragen/shootout | bench/regexdna/regexdna.pike | [
"BSD-3-Clause"
] |
%= $_[0] + 20
Hello World!
| Mathematica | 0 | reneeb/mojo | t/mojo/templates/test.mt | [
"Artistic-2.0"
] |
// Daniel Shiffman
// http://codingtra.in
// http://patreon.com/codingtrain
// Video: https://youtu.be/xXjRlEr7AGk
class Segment {
PVector a;
float len;
float angle;
float selfAngle;
float t = random(1000);
Segment parent = null;
Segment child = null;
float sw = 1;
PVector b;
Segment(Segment pa... | Processing | 4 | aerinkayne/website | CodingChallenges/CC_064.1_ForwardKinematics/Processing/CC_064_1_B_ForwardKinematics/Segment.pde | [
"MIT"
] |
logging.level.root=INFO
# OracleDB connection settings
spring.datasource.url=jdbc:oracle:thin:@//localhost:11521/ORCLPDB1
spring.datasource.username=books
spring.datasource.password=books
spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
# Comment this line for standard Spring Boot default choosing algorit... | INI | 3 | DBatOWL/tutorials | persistence-modules/spring-boot-persistence-2/src/main/resources/application-oracle-pooling-basic.properties | [
"MIT"
] |
/**
* Colors
*/
@taiga-light: darken(#A3ACB1, 10%);
@taiga-lighter: #F0F7FA;
@taiga-dark: darken(#727C83, 4%);
@taiga-accent: #5DADE1;
@white: #ffffff;
/**
* Borders
*/
@base-border-radius: 4px;
| Less | 2 | cnheider/nylas-mail | packages/client-app/internal_packages/ui-taiga/styles/variables.less | [
"MIT"
] |
#eval rbtree.from_list [3, 4, 2, 5, 1] (<)
#eval rbtree.from_list [3, 4, 2, 5, 1] (>)
#eval (rbtree.from_list [3, 4, 2, 5]).to_list
#eval rbtree.from_list [3, 4, 2, 5]
#eval rbtree.to_list $ rbtree.from_list [3, 4, 2, 5]
| Lean | 3 | JLimperg/lean | tests/lean/run/rbtree1.lean | [
"Apache-2.0"
] |
:- object(epq).
:- info([
version is 0:0:0,
author is 'Paul Tarau. Adapted to Logtalk by Paulo Moura',
date is 2016-06-18,
comment is 'Description'
]).
:- public(new/1).
:- mode(new(-engine), one).
:- info(new/1, [
comment is 'Description',
argnames is ['Queue']
]).
:- public(top/2).
:- mode(top... | Logtalk | 4 | PaulBrownMagic/logtalk3 | examples/engines/eheaps/eheaps.lgt | [
"Apache-2.0"
] |
// Run: sudo bin/click --dpdk -c 0x4 -n 4 --proc-type secondary -v -- conf/dpdk/dpdk-ring-secondary.click
define(
$queueSize 1024
);
// Rx ring from Main (primary) to NF1 (secondary)
nf1_from_main :: FromDPDKRing(MEM_POOL 1, FROM_PROC nf1_rx, TO_PROC main_tx);
// Tx ring from NF1 (secondary) back to Main (primary)
n... | Click | 3 | BorisPis/asplos22-nicmem-fastclick | conf/dpdk/dpdk-ring-secondary.click | [
"BSD-3-Clause-Clear"
] |
FancySpec describe: DynamicValueArray with: {
it: "has the correct values defined" when: {
dva = DynamicValueArray new
dva tap: @{
name: "Chris"
age: 25
country: "Germany"
another_symbol
and_another_one
} . array is: [['name, "Chris"], ['age, 25], ['country, "Germany"], 'anot... | Fancy | 3 | bakkdoor/fancy | tests/dynamic_value_array.fy | [
"BSD-3-Clause"
] |
{
"class" : {
},
"instance" : {
"clientList:listElement:" : "dkh 03/20/2014 16:27",
"copyObjectMenuAction:selectionIndex:" : "dkh 10/13/2013 10:20",
"definitionForSelection:" : "dkh 10/13/2013 10:15",
"editMenuActionSpec" : "dkh 10/13/2013 10:19",
"itemSelected:listElement:selectedIndex:shiftPressed:" : ... | STON | 1 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/STON/methodProperties.ston | [
"MIT"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 4 | sbj42/vscode | src/vs/editor/common/viewModel/viewContext.ts | [
"MIT"
] |
<%= tag.p do %>
<%= tag.b 'Hello' %>
<% end %>
| HTML+ERB | 3 | mdesantis/rails | actionview/test/fixtures/test/_builder_tag_nested_in_content_tag.erb | [
"MIT"
] |
# Tests that Spack can handle targets in include files
include include.ninja
| Ninja | 0 | kkauder/spack | lib/spack/spack/test/data/ninja/affirmative/include/build.ninja | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
use super::mul_div_u64;
#[test]
fn test_muldiv() {
assert_eq!(mul_div_u64(1_000_000_000_001, 1_000_000_000, 1_000_000), 1_000_000_000_001_000);
}
| Rust | 4 | Eric-Arellano/rust | library/std/src/sys_common/tests.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
KIDS Distribution saved on Nov 18, 2021@15:42:23
Test Release SAMI*18.0*15 SEQ #15 T2 (sami-18-x-15-t2)
**KIDS**:SAMI*18.0*15^
**INSTALL NAME**
SAMI*18.0*15
"BLD",11517,0)
SAMI*18.0*15^SAMI^0^3211118^n
"BLD",11517,4,0)
^9.64PA^311.14^1
"BLD",11517,4,311.14,0)
311.14
"BLD",11517,4,311.14,222)
y^y^f^^^^y
"BLD",11517,4,"... | Genshi | 4 | OSEHRA/SAMI-VAPALS-ELCAP | dist/18-15/t2/sami-18-x-15-t2.kid | [
"Apache-2.0"
] |
//! shouldcrash
// sdk
import structs/[ArrayList, List]
import os/Time
version (windows) {
RaiseException: extern func (ULong, ULong, ULong, Pointer)
}
foo: func {
// SIGSEGV or access violation
//*
f: Int* = null
f@ = 0
//*/
// SIGFPE
/*
a := 30
b := 0
... | ooc | 3 | shamanas/rock | test/sdk/lang/crash.ooc | [
"MIT"
] |
The `@angular/localize` package contains helpers and tools for localizing your application.
You should install this package using `ng add @angular/localize` if you need to tag text in your
application that you want to be translatable.
The approach is based around the concept of tagging strings in code with a [templat... | Markdown | 5 | John-Cassidy/angular | packages/localize/PACKAGE.md | [
"MIT"
] |
DROP TABLE "public"."test";
| SQL | 0 | gh-oss-contributor/graphql-engine-1 | scripts/cli-migrations/v3/test/migrations/default/1616826329751_create_table_public_test/down.sql | [
"Apache-2.0",
"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 applica... | Python | 5 | annietllnd/tensorflow | tensorflow/python/types/trace.py | [
"Apache-2.0"
] |
//
// KeyPoint.m
//
// Created by Giles Payne on 2019/12/25.
//
#import "KeyPoint.h"
#import "Point2f.h"
@implementation KeyPoint {
cv::KeyPoint native;
}
- (cv::KeyPoint&)nativeRef {
native.pt.x = self.pt.x;
native.pt.y = self.pt.y;
native.size = self.size;
native.angle = self.angle;
nativ... | Objective-C++ | 4 | lefatoum2/opencv | modules/core/misc/objc/common/KeyPoint.mm | [
"Apache-2.0"
] |
Columns
=======
Rich can render text or other Rich renderables in neat columns with the :class:`~rich.columns.Columns` class. To use, construct a Columns instance with an iterable of renderables and print it to the Console.
The following example is a very basic clone of the ``ls`` command in OSX / Linux to list direc... | reStructuredText | 3 | traviscook21/rich | docs/source/columns.rst | [
"MIT"
] |
// Copyright(c) 2022 https://github.com/WangXuan95
package SPIFlashController;
import BRAM::*;
import StmtFSM::*;
import SPIController::*;
interface SPIFlashController;
method Action operate(Bool wr, Bit#(9) addr, Bit#(8) data);
method ActionValue#(Bit#(8)) read_byte;
method bit ss_o;... | Bluespec | 4 | Xiefengshang/BSV_Tutorial_cn | src/SPIFlash/SPIFlashController.bsv | [
"MIT"
] |
[Exposed=Window,
HTMLConstructor]
interface HTMLDivElement : HTMLElement {
// also has obsolete members
};
partial interface HTMLDivElement {
[CEReactions, Reflect] attribute DOMString align;
};
| WebIDL | 3 | corsarstl/Learn-Vue-2 | vue-testing/node_modules/jsdom/lib/jsdom/living/nodes/HTMLDivElement.webidl | [
"MIT"
] |
/*
* Copyright (C) 2009 Steve Rowe <sarowe@gmail.com>
* Copyright (C) 2020 Google, LLC.
*
* License: https://opensource.org/licenses/BSD-3-Clause
*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following conditions are met:
*
* 1. Redistrib... | JFlex | 4 | WeDoSoftware/jflex | java/de/jflex/ucd_generator/scanner/ArchaicBlocksScanner.flex | [
"BSD-3-Clause"
] |
#include <torch/nn/options/conv.h>
namespace torch {
namespace nn {
template struct ConvOptions<1>;
template struct ConvOptions<2>;
template struct ConvOptions<3>;
namespace functional {
template struct ConvFuncOptions<1>;
template struct ConvFuncOptions<2>;
template struct ConvFuncOptions<3>;
template struct Conv... | C++ | 3 | Hacky-DH/pytorch | torch/csrc/api/src/nn/options/conv.cpp | [
"Intel"
] |
Simple server test
WebSocket = require 'websocket'
WebSocketServer = WebSocket.server
http = require 'http'
server = http.createServer (request, response)->
console.log 'Received request for ' + request.url
response.writeHead 400
response.end
server.listen 8080, ->
console.... | Literate CoffeeScript | 4 | zot/Leisure | server/index.litcoffee | [
"Zlib"
] |
const VALUES = Array.from('abcdefghijklmnopqrstuvwxyz');
function toObjects(array) {
return array.split('').map(x => ({ id: x }));
}
function permute() {
const values = VALUES.slice();
const number = Math.floor(Math.random() * VALUES.length);
const permuted = [];
for (let i = 0; i < number; i++) {
permuted.pus... | JavaScript | 4 | Theo-Steiner/svelte | test/runtime/samples/each-block-keyed-random-permute/_config.js | [
"MIT"
] |
const __floatdidf = @import("floatdidf.zig").__floatdidf;
const testing = @import("std").testing;
fn test__floatdidf(a: i64, expected: f64) !void {
const r = __floatdidf(a);
try testing.expect(r == expected);
}
test "floatdidf" {
try test__floatdidf(0, 0.0);
try test__floatdidf(1, 1.0);
try test__... | Zig | 4 | lukekras/zig | lib/std/special/compiler_rt/floatdidf_test.zig | [
"MIT"
] |
package com.baeldung.traits
class Employee implements UserTrait {
String name() {
return 'Bob'
}
String lastName() {
return "Marley"
}
} | Groovy | 4 | DBatOWL/tutorials | core-groovy/src/main/groovy/com/baeldung/traits/Employee.groovy | [
"MIT"
] |
<!DOCTYPE html>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Copyright (c) 2015-2018 Skymind, Inc.
~
~ This program and the accompanying materials are made available under the
~ terms of the Apache License, Version 2.0 which is available at
~ https://www.apache.org/licen... | FreeMarker | 3 | mjlorenzo305/deeplearning4j | deeplearning4j/deeplearning4j-ui-parent/deeplearning4j-vertx/src/main/resources/templates/TrainingModel.html.ftl | [
"Apache-2.0"
] |
--TEST--
Phar::mapPhar buffer overrun
--EXTENSIONS--
phar
--INI--
phar.require_hash=0
--FILE--
<?php
$file = "<?php
Phar::mapPhar('hio');
__HALT_COMPILER(); ?>";
// this fails because the manifest length does not include the other 10 byte manifest data
$manifest = pack('V', 1) . 'a' . pack('VVVVVV', 0, time(), 0, crc... | PHP | 3 | NathanFreeman/php-src | ext/phar/tests/010.phpt | [
"PHP-3.01"
] |
// $Id: Alarm32khz32C.nc,v 1.4 2006-12-12 18:23:42 vlahan Exp $
/*
* Copyright (c) 2005-2006 Intel Corporation
* All rights reserved.
*
* This file is distributed under the terms in the attached INTEL-LICENSE
* file. If you do not find these files, copies can be found by writing to
* Intel Research Berkeley,... | nesC | 4 | mtaghiza/tinyos-main-1 | tos/platforms/mica/Alarm32khz32C.nc | [
"BSD-3-Clause"
] |
package com.baeldung.okhttp.download;
public interface ProgressCallback {
void onProgress(double progress);
}
| Java | 3 | DBatOWL/tutorials | libraries-http-2/src/main/java/com/baeldung/okhttp/download/ProgressCallback.java | [
"MIT"
] |
grammar grammar1;
rule pod {
\=[pod|head1|kwid|for]
.*?
\=cut
}
push @statements, \&pod;
=kwid
pX/Common/iterator_engine_p6.pl - fglock
- experimental implementation of a grammar that could parse Perl 6
=cut
rule term1 {
<@grammar1::terms>
}
r... | Perl6 | 5 | lablua/Perlito | misc/iterator_engine/iterator_engine_p6prelude.p6 | [
"Artistic-2.0"
] |
*** Settings ***
Suite Setup Run Tests ${EMPTY} standard_libraries/operating_system/path_expansion.robot
Resource atest_resource.robot
*** Test Cases ***
Tilde in path
Check testcase ${TESTNAME}
Tilde and username in path
Check testcase ${TESTNAME}
| RobotFramework | 3 | rdagum/robotframework | atest/robot/standard_libraries/operating_system/path_expansion.robot | [
"ECL-2.0",
"Apache-2.0"
] |
#!/bin/csh
foreach i (`cat list`)
set jold=194057
foreach j (`cat list2`)
if(${i} > ${j}) then
set jold=${j}
endif
end
echo ${i}_${jold}
end
| Tcsh | 2 | ckamtsikis/cmssw | DPGAnalysis/HcalTools/scripts/rmt/newlist.csh | [
"Apache-2.0"
] |
' currentdate.bmx
Print "The date is "+CurrentDate$()
| BlitzMax | 2 | jabdoa2/blitzmax | mod/brl.mod/system.mod/doc/currentdate.bmx | [
"Zlib"
] |
<html>
<head>
</head>
<body style="background: transparent;">
<script src="scripts/docstrap.lib.js"></script>
<script src="scripts/lunr.min.js"></script>
<script src="scripts/fulltext-search.js"></script>
<script type="text/x-docstrap-searchdb">
{"global.html":{"id":"global.html","title":"Global","... | HTML | 4 | digitalcoyote/faker | doc/quicksearch.html | [
"MIT"
] |
// RUN: %target-run-stdlib-swift
// REQUIRES: executable_test
// Freestanding doesn't support environment variables, and this test depends on SWIFT_DETERMINISTIC_HASHING=1
// UNSUPPORTED: freestanding
import Swift
import SwiftPrivate
import StdlibUnittest
var HashingTestSuite = TestSuite("Hashing")
func checkHash(... | Swift | 5 | xjc90s/swift | validation-test/stdlib/Hashing.swift | [
"Apache-2.0"
] |
/*620 <exp> stwu r1,-80(r1)
624 <exp+4> stfd f1,32(r1)
628 <exp+8> mffs f9
0000062c <exp+c> lis r3,0
RELOC: 0000062e R_PPC_ADDR16_HA log_table_base
00000630 <exp+10> lwz r10,32(r1)
00000634 <exp+14> addi r3,r3,0
RELOC: 00000636 R_PPC_ADDR16_LO log_table_base
00000638 <exp+18> lfd f0,-1200(r3)
0000063c <ex... | Parrot Assembly | 2 | privatosan/RayStorm | srcAmiga/lib_ppcmath/exp.pasm | [
"MIT"
] |
CREATE OR REPLACE TEMPORARY VIEW tbl_a AS VALUES (1, 1), (2, 1), (3, 6) AS T(c1, c2);
CREATE OR REPLACE TEMPORARY VIEW tbl_b AS VALUES 1 AS T(c1);
-- SPARK-18597: Do not push down predicates to left hand side in an anti-join
SELECT *
FROM tbl_a
LEFT ANTI JOIN tbl_b ON ((tbl_a.c1 = tbl_a.c2) IS NULL OR tbl_a.c... | SQL | 3 | OlegPt/spark | sql/core/src/test/resources/sql-tests/inputs/pred-pushdown.sql | [
"Apache-2.0"
] |
/**
* AtLeastRAllReducer.x10
*
* Rudra Distributed Learning Platform
*
* Copyright (c) IBM Corporation 2016
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of sou... | X10 | 5 | milthorpe/rudra | x10/src/rudra/AtLeastRAllReducer.x10 | [
"BSD-3-Clause"
] |
do
{a, b} = hello
{{a}, b, {c}} = hello
{ :hello, :world } = value
do
{ yes: no, thing } = world
{:a,:b,:c,:d} = yeah
{a} = one, two
{b}, c = one
{d}, e = one, two
x, {y} = one, two
xx, yy = 1, 2
{yy, xx} = {xx, yy}
{a, :b, c, :d, e, :f, g} = tbl
---
do
futurists =
sculptor: "U... | MoonScript | 3 | Shados/moonscript | spec/inputs/destructure.moon | [
"MIT",
"Unlicense"
] |
openapi: 3.1.0
info:
summary: My API's summary
title: My API
version: 1.0.0
license:
name: Apache 2.0
identifier: Apache-2.0
jsonSchemaDialect: https://spec.openapis.org/oas/3.1/dialect/base
paths:
/:
get:
parameters: []
/{pathTest}: {}
webhooks:
myWebhook:
$ref: '#/components/pathIt... | YAML | 4 | karenetheridge/OpenAPI-Specification | tests/v3.1/pass/mega.yaml | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.