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 |
|---|---|---|---|---|---|
BEGIN {
data = "abc:easy:as:one:two:three"
FS = ":"
FIELDWIDTHS = "3 1 4 1 2 1 3 1 3 1 5"
n = split(data, a)
printf "n = %d, a[3] = %s\n", n, a[3]
}
| Awk | 3 | Crestwave/goawk | testdata/gawk/splitdef.awk | [
"MIT"
] |
find 1.4427084503999819 0.0 0.0 0.65677953638907038 0.0 0.0 0.52641771852582697 0.0 0.88309266246455909 0.0 0.0 0.43110753872150198 0.0 0.0 0.0 0.0 0.0 0.0 0.43110753872150198 0.0 0.0 0.0 0.0 0.0 0.0 1.2195648990857724 0.0 0.34409616173187213 0.0 0.34409616173187213 1.2195648990857724 0.0 0.0 0.0 0.0 0.0 0.0 0.26405345... | DM | 0 | tommasoc80/EventStoryLine | ppmi_events_ecb+_test/16/same_sentence_ppmi.dm | [
"CC-BY-3.0"
] |
// first boot the server (Ctrl-B)
// then load the synthdefs from synthdefs.scd (run the entire file) (if you don't want to do that remove the @instrument line)
// then run this.
("
80 => )
@plucking => @instrument
.high mf
.low o~~ ff
,segno`
4/4
.high | _g ]] _a# ]] d ]] d# ]] _g ]] _a# ]] d ]] d# ]] _g ]] ... | SuperCollider | 4 | sofakid/Skoarcery | SuperCollider/examples/dungeontimes.scd | [
"Artistic-2.0"
] |
<?Lassoscript
// Last modified 8/31/09 by ECL, Landmann InterActive
/*
Tagdocs;
{Tagname= OutputAuthor }
{Description= Outputs the already-built $vAuthor }
{Author= Eric Landmann }
{AuthorEmail= support@iterate.ws }
{ModifiedBy= }
{ModifiedByEmail= }
{Date= 7/6/09 }
{Usage= OutputAuthor }
{Expecte... | Lasso | 4 | subethaedit/SubEthaEd | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/LassoStartup/OutputAuthor.lasso | [
"MIT"
] |
extensions [ gis ]
globals [landuse
green-percent
greenroof-percent
init-green-percent
]
patches-own[land]
breed [bugs bug] ;; turtles representing our species of interest
bugs-own[steps green-steps gray-steps]
breed [targets target]
to load-gis
ca
set landuse gis:load-datas... | NetLogo | 5 | ajnavarro/language-dataset | data/github.com/klemensj/Pollinators/e06b2e51070c914c6684015f23209d755cc8ed1f/Greenroofs.nlogo | [
"MIT"
] |
%%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 2021. 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
%%
%% Un... | Erlang | 4 | jjhoo/otp | lib/compiler/test/compile_SUITE_data/column_pt.erl | [
"Apache-2.0"
] |
#!/bin/bash
# Copyright 2021 The Kubernetes 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 require... | Shell | 4 | skyplaying/minikube | hack/jenkins/test-flake-chart/upload_tests.sh | [
"Apache-2.0"
] |
0 reg32_t "dword"
1 code_t "proc*"
2 ptr(reg32_t) "dword[]"
3 num32_t "int"
4 uint32_t "unsigned int"
5 ptr(uint32_t) "unsigned int[]"
6 ptr(num32_t) "int*"
4 uint32_t "size_t"
7 ptr(TOP) "void*"
8 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... | BlitzBasic | 2 | matt-noonan/retypd-data | data/rm.decls | [
"MIT"
] |
Fair Correlation Clustring
===============================
This is the implementation accompanying the AISTATS 2020 paper,
[_Fair Correlation Clustering_](https://arxiv.org/abs/2002.02274).
Example Usage:
--------------
First, create a fresh virtual environment and install the requirements.
# From google-resear... | Groff | 3 | deepneuralmachine/google-research | correlation_clustering/READ.me | [
"Apache-2.0"
] |
lexer grammar t052importS8;
options {
language=JavaScript;
}
@members {
this.capture = function(t) {
this.gt052importM8.capture(t);
};
}
A : 'a' {this.capture("S.A");} ;
| G-code | 3 | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | java/java2py/antlr-3.1.3/runtime/JavaScript/tests/functional/t052importS8.g | [
"Apache-2.0"
] |
use crate::{EarlyContext, EarlyLintPass, LintContext};
use ast::util::unicode::{contains_text_flow_control_chars, TEXT_FLOW_CONTROL_CHARS};
use rustc_ast as ast;
use rustc_errors::{Applicability, SuggestionStyle};
use rustc_span::{BytePos, Span, Symbol};
declare_lint! {
/// The `text_direction_codepoint_in_literal... | Rust | 5 | ohno418/rust | compiler/rustc_lint/src/hidden_unicode_codepoints.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
CREATE TABLE v2(s VARCHAR(16));
| SQL | 2 | WizardXiao/tidb | br/tests/lightning_view/data/db0.v2-schema.sql | [
"Apache-2.0"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M20 4H4c-1.1 0-2 .9-2 2v3h2V6h16v3h2V6c0-1.1-.9-2-2-2zm0 14H4v-3H2v3c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-3h-2v3z"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "M1... | JavaScript | 3 | dany-freeman/material-ui | packages/mui-icons-material/lib/esm/MonitorHeartOutlined.js | [
"MIT"
] |
from libcpp.string cimport string as c_string
from libcpp.unordered_map cimport unordered_map
from libcpp.vector cimport vector as c_vector
cdef extern from "opencensus/tags/tag_key.h" nogil:
cdef cppclass CTagKey "opencensus::tags::TagKey":
@staticmethod
CTagKey Register(c_string &name)
co... | Cython | 4 | firebolt55439/ray | python/ray/includes/metric.pxd | [
"Apache-2.0"
] |
x=-4.601 y=-6.397 z=11.336 s=20
:px+=x:py+=y:pz+=z s-- :done=1 q/=s goto2
x=:dx y=:dy z=:dz
x=(:dx+x)/2 y=(:dy+y)/2 z=(:dz+z)/2 :px+=x:py+=y:pz+=z :done=1 goto4
/--------//--------//--------//--------//--------//--------//--------/
ux=:dx ox=1
k=ox/(ox+1) ux+=k*(:dx-ux) ox-=k*ox px+=ux :done=1
goto2-((((:dx-ux)^2+(:... | LOLCODE | 3 | Dude112113/Yolol | YololEmulator/Scripts/DriftingSpaceship.lol | [
"MIT"
] |
@prefix p: <http://a.example/>.
<http://a.example/s> p:p <http://a.example/o> .
| Turtle | 1 | joshrose/audacity | lib-src/lv2/serd/tests/TurtleTests/prefixed_IRI_predicate.ttl | [
"CC-BY-3.0"
] |
<html>
<head>
{{ghost_head}}
</head>
<body>
home.hbs
</body>
</html> | Handlebars | 2 | tiendq/Ghost | test/utils/fixtures/themes/test-theme/home.hbs | [
"MIT"
] |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http2Cat;
using Microsoft.Extensions.DependencyInjection;
namespace Microsoft.Extensions.Hosting
{
interna... | C# | 4 | tomaswesterlund/aspnetcore | src/Shared/Http2cat/Http2CatIHostBuilderExtensions.cs | [
"MIT"
] |
Module: jam-internals
Author: Peter S. Housel
Copyright: Original Code is Copyright 2004 Gwydion Dylan Maintainers
All rights reserved.
License: See License.txt in this distribution for details.
Warranty: Distributed WITHOUT WARRANTY OF ANY KIND
define function extract-grist
(... | Dylan | 4 | kryptine/opendylan | sources/lib/jam/jam-grist.dylan | [
"BSD-2-Clause"
] |
import io/Reader
/**
* Implement the Reader interface for Buffer.
*/
BufferReader: class extends Reader {
buffer: Buffer
init: func ~withBuffer (=buffer) {}
close: func {
// nothing to close.
}
read: func (dest: Char*, destOffset: Int, maxRead: Int) -> SizeT {
if (marker >= buf... | ooc | 3 | fredrikbryntesson/launchtest | sdk/io/BufferReader.ooc | [
"MIT"
] |
.. bpo: 38722
.. date: 2019-11-18-16-17-56
.. nonce: x3mECW
.. release date: 2019-11-19
.. section: Security
:mod:`runpy` now uses :meth:`io.open_code` to open code files. Patch by
Jason Killen.
..
.. bpo: 38622
.. date: 2019-11-14-16-13-23
.. nonce: 3DYkfb
.. section: Security
Add additional audit events for the :... | reStructuredText | 1 | oleksandr-pavlyk/cpython | Misc/NEWS.d/3.9.0a1.rst | [
"0BSD"
] |
---
title: "R Notebook"
author: shawshank
date: 4/20/20
output: html_document
---
# Choosing the DAG that best represents the data
### Reading data
```{r, warning=FALSE}
library(bnlearn)
library(Rgraphviz)
# df <- read.csv("data/cleansed_data.csv")
df <- read.csv("data/cleansed_data.csv")
df$BPB = as.factor(as.charac... | RMarkdown | 5 | amoskowitz14/causalML | projects/airbnb santa clara/dag_analysis.rmd | [
"MIT"
] |
SockJS relay server
require('source-map-support').install()
sockjs = require 'sockjs'
sockjsUtil = require 'sockjs/lib/utils'
http = require 'http'
crypto = require 'crypto'
serveStatic = require 'serve-static'
finalhandler = require 'finalhandler'
path = require 'path'
_ = require ... | Literate CoffeeScript | 4 | zot/Leisure | server/server.litcoffee | [
"Zlib"
] |
--TEST--
Do not constant fold increment of array
--FILE--
<?php
function test_inc_array() {
$a = [];
$a++;
}
function test_inc_partial_array($k) {
$a = [];
$a[$k] = 0;
$a++;
}
try {
test_inc_array();
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
try {
test_inc_partial_array(0);... | PHP | 3 | NathanFreeman/php-src | ext/opcache/tests/inc_array.phpt | [
"PHP-3.01"
] |
package com.baeldung.spring.cloud.archaius.zookeeperconfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ZookeeperConfigApplication {
public static void main(String[] args) {
SpringApplication.r... | Java | 4 | DBatOWL/tutorials | spring-cloud/spring-cloud-archaius/zookeeper-config/src/main/java/com/baeldung/spring/cloud/archaius/zookeeperconfig/ZookeeperConfigApplication.java | [
"MIT"
] |
datatype foo = A | B of bar
and bar = C | D of foo
val q = B (D A)
fun main () = return <xml>
{case q of
B (D A) => <xml>Good</xml>
| _ => <xml>Bad</xml>}
</xml>
| UrWeb | 3 | apple314159/urweb | tests/mutual.ur | [
"BSD-3-Clause"
] |
(define (string.rpad s n c) (string s (string.rep c (- n (string.count s)))))
(define (string.rep s k)
(cond ((< k 4)
(cond ((<= k 0) "")
((= k 1) (string s))
((= k 2) (string s s))
(else (string s s s))))
((odd? k) (string s (string.rep s (- k 1)))... | Scheme | 3 | greimel/julia | src/flisp/profile.scm | [
"Zlib"
] |
module com.networknt.encode.decode {
exports com.networknt.encode;
exports com.networknt.decode;
requires com.networknt.config;
requires com.networknt.handler;
requires com.networknt.utility;
requires com.networknt.status;
requires xnio.api;
requires org.slf4j;
requires java.loggin... | Jasmin | 3 | KellyShao/light-4j | encode-decode/src/main/java/module-info.j | [
"Apache-2.0"
] |
# A print command that concatenates arguments together with an optional separator
# By default there will be no newline
def print [
--separator(-s):any # Optional separator (not yet flagged as optional?)
...rest # All of the parameters
] {
let is_empty = ($separator | empty?)
... | Nu | 4 | x3rAx/nu_scripts | stdlib_candidate/print.nu | [
"MIT"
] |
// edition:2018
#![deny(unused_extern_crates)]
#![feature(test, rustc_private, crate_visibility_modifier)]
extern crate libc;
//~^ ERROR unused extern crate
//~| HELP remove
extern crate libc as x;
//~^ ERROR unused extern crate
//~| HELP remove
extern crate proc_macro;
#[macro_use]
extern crate test;
pub extern c... | Rust | 2 | Eric-Arellano/rust | src/test/ui/unnecessary-extern-crate.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
method tryMatch(pattern, obj) {
if (pattern.match(obj)) then {
print "OK"
} else {
print "Not OK; {obj} should have matched"
}
}
method tryNoMatch(pattern, obj) {
if (pattern.match(obj)) then {
print "Not OK; {obj} should not have matched"
} else {
print "OK"
}
}
... | Grace | 4 | Dmitri-2/GraceWebsite | js-simple/tests/retired/t116_builtintypematch_test.grace | [
"MIT",
"BSD-3-Clause"
] |
extends Button
# This script shows how to save data using Godot's custom ConfigFile format.
# ConfigFile can store any Godot type natively.
# The root game node (so we can get and instance enemies).
export(NodePath) var game_node
# The player node (so we can set/get its health and position).
export(NodePath) var playe... | GDScript | 5 | ironpeak/godot-demo-projects | loading/serialization/save_load_config_file.gd | [
"MIT"
] |
@echo off
scrcpy.exe %*
:: if the exit code is >= 1, then pause
if errorlevel 1 pause
| Batchfile | 4 | LuckyNigel/scrcpy | app/data/scrcpy-console.bat | [
"Apache-2.0"
] |
--TEST--
Relative print commands
--INI--
opcache.enable_cli=0
--PHPDBG--
b foo
r
p
p o
q
--EXPECTF--
[Successful compilation of %s]
prompt> [Breakpoint #0 added at foo]
prompt> string(4) "test"
[Breakpoint #0 in foo() at %s:15, hits: 1]
>00015: var_dump(strrev($baz));
00016: }
00017:
prompt> [Stack in foo() (8 op... | PHP | 4 | NathanFreeman/php-src | sapi/phpdbg/tests/print_002.phpt | [
"PHP-3.01"
] |
{
// Because these are not like a token object with a 'value' attribute,
// Style Dictionary won't consider them tokens and therefore won't output them.
// But, you can still access/reference them in tokens using the same reference
// syntax: "value": "{alpha.0}"
// This is an array, you can access its member... | JSON5 | 3 | pcsubirachs/sats_stream | node_modules/style-dictionary/examples/advanced/transitive-transforms/tokens/alpha.json5 | [
"MIT"
] |
\x -> x ++ ""
| Grace | 1 | DebugSteven/grace | tasty/data/unit/append-simplify-input.grace | [
"BSD-3-Clause"
] |
CREATE TABLE `tb_hbheuprskb` (
`col_mqqxkezdux` enum('enum_or_set_0','enum_or_set_1','enum_or_set_2') CHARACTER SET utf8 NOT NULL,
UNIQUE KEY `col_mqqxkezdux` (`col_mqqxkezdux`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
| SQL | 3 | yuanweikang2020/canal | parse/src/test/resources/ddl/alter/mysql_59.sql | [
"Apache-2.0"
] |
%{
/*
* Copyright © 2008, 2009 Intel Corporation
*
* 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, modify, m... | LLVM | 5 | christiancoder/bgfx | 3rdparty/glsl-optimizer/src/glsl/glsl_lexer.ll | [
"BSD-2-Clause"
] |
module audiostreamerscrobbler.players.heos.HeosDetector
import audiostreamerscrobbler.maintypes.Player.types.PlayerTypes
import audiostreamerscrobbler.players.heos.{HeosConnectionSingleton, HeosDeviceDescriptorXmlParser, HeosPlayer}
import audiostreamerscrobbler.players.heos.HeosPlayer.types.HeosImpl
import audiostrea... | Golo | 5 | vvdleun/audiostreamerscrobbler | src/main/golo/include/players/heos/HeosDetector.golo | [
"MIT"
] |
-- name: create-table-nodes
CREATE TABLE IF NOT EXISTS nodes (
node_id INTEGER PRIMARY KEY AUTO_INCREMENT
,node_uid VARCHAR(500)
,node_provider VARCHAR(50)
,node_state VARCHAR(50)
,node_name VARCHAR(50)
,node_image VARCHAR(500)
,node_region VARCHAR(100)
,node_size VARCHAR(10... | SQL | 4 | sthagen/drone-drone | store/shared/migrate/mysql/files/010_create_table_nodes.sql | [
"Apache-2.0"
] |
[
This is another cell size detector. Unlike the very simple ones it
positivly confirms that an interpreter has a cell size of 8, 16 or
32bits. If it's cells size is actually 12, 17, 31bits or something
else you get a different response.
In addition unlike the other Cellsize programs the only opti... | Brainfuck | 3 | RubenNL/brainheck | examples/cell-size-2.bf | [
"Apache-2.0"
] |
import io.vertx.ceylon.platform {
Verticle,
Container
}
import io.vertx.ceylon.core {
Vertx
}
import io.vertx.ceylon.core.http {
WebSocket
}
import org.vertx.java.core.buffer {
Buffer
}
shared class WebsocketsClient() extends Verticle() {
shared actual void start(Vertx vertx, Container container) {
v... | Ceylon | 3 | vietj/vertx-examples | src/raw/ceylon/websockets/WebsocketsClient.ceylon | [
"Apache-2.0"
] |
#include "caffe2/operators/elementwise_add_op.h"
#include "caffe2/core/context_gpu.h"
namespace caffe2 {
REGISTER_CUDA_OPERATOR(
Add,
BinaryElementwiseBroadcastOp<NumericTypes, CUDAContext, AddFunctor<CUDAContext>>);
REGISTER_CUDA_OPERATOR(
AddGradient,
BinaryElementwiseGradientBroadcastOp<
N... | C++ | 3 | Hacky-DH/pytorch | caffe2/operators/elementwise_add_op_gpu.cc | [
"Intel"
] |
#!/usr/local/bin/bash
## should be run in V's main repo folder!
rm -rf tinycc/
rm -rf thirdparty/tcc/
pushd .
git clone git://repo.or.cz/tinycc.git
cd tinycc
export CC=clang
./configure \
--cc=clang \
--prefix=thirdparty/tcc \
--bindir=thirdparty/tcc \
--crtprefix=t... | Shell | 3 | gamemaker1/v | .github/workflows/freebsd_build_tcc.sh | [
"MIT"
] |
package jadx.tests.integration.others;
import org.junit.jupiter.api.Test;
import jadx.tests.api.IntegrationTest;
import static jadx.tests.api.utils.assertj.JadxAssertions.assertThat;
public class TestFieldInitOrder extends IntegrationTest {
public static class TestCls {
private final StringBuilder sb = new Stri... | Java | 4 | Dev-kishan1999/jadx | jadx-core/src/test/java/jadx/tests/integration/others/TestFieldInitOrder.java | [
"Apache-2.0"
] |
module ciena-waveserver-xcvr-modem {
namespace "urn:ciena:params:xml:ns:yang:ciena-ws:ciena-waveserver-xcvr-modem";
prefix xcvr-modem;
import ciena-waveserver-typedefs {
prefix cienawstypes;
}
import ciena-waveserver-xcvr {
prefix xcvr;
}
organization
"Ciena Corporation";
contact
"Web ... | YANG | 5 | Shinkirou/onos | models/ciena/waveserverai/src/main/yang/ciena-waveserver-xcvr-modem@2017-10-24.yang | [
"Apache-2.0"
] |
package unit.issues;
import haxe.Int64;
class Issue4436 extends Test {
function test() {
nullableValue = 29;
t(checkNull(29));
}
var nullableValue:Null<Int64>;
private function checkNull(value:Int64) {
if (nullableValue == value) {
return true;
}
return false;
}
} | Haxe | 4 | Alan-love/haxe | tests/unit/src/unit/issues/Issue4436.hx | [
"MIT"
] |
--TEST--
A script with die() must end "normally"
--PHPDBG--
r
q
--EXPECTF--
[Successful compilation of %s]
prompt> [Script ended normally]
prompt>
--FILE--
<?php
(function($argv) {
die();
})($argv);
| PHP | 2 | thiagooak/php-src | sapi/phpdbg/tests/normal_exit.phpt | [
"PHP-3.01"
] |
package org.elixir_lang.beam.assembly;
import com.intellij.psi.tree.IElementType;
import org.elixir_lang.beam.assembly.psi.Types;
import com.intellij.psi.TokenType;
%%
%class FlexLexer
%implements com.intellij.lexer.FlexLexer
%unicode
%function advance
%type IElementType
%eof{ return;
%eof}
WHITE_SPACE=([\ ]|\R)+
... | JFlex | 3 | keyno63/intellij-elixir | src/org/elixir_lang/beam/assembly/BEAM.Assembly.flex | [
"Apache-2.0"
] |
#include "colors.inc"
// Toggle to generate all 16 states.
#declare north = (clock >= 8);
#declare binary1 = mod(clock, 8);
#declare east = (binary1 >= 4);
#declare binary2 = mod(binary1, 4);
#declare south = (binary2 >= 2);
#declare binary3 = mod(binary2, 2);
#declare west = binary3;
#declare seed1 = seed(north * 1 ... | POV-Ray SDL | 5 | bharati-software/blockly-games-Kannada | appengine/maze/sources/space_station.pov | [
"Apache-2.0"
] |
sleep X
t app appmode photo_burst
sleep 1
t app burst_settings 10-2
sleep 1
t app button shutter PR
sleep 9
t app appmode photo_burst
d.\autoexec.ash
REBOOt yes
| AGS Script | 1 | waltersgrey/autoexechack | BurstHacks/BurstLoop/10-2/Hero3Black/autoexec.ash | [
"MIT"
] |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <caml/memory.h>
#ifdef _WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif
value nproc(void) {
CAMLparam0();
... | C | 4 | esilkensen/flow | src/hack_forked/utils/sys/nproc.c | [
"MIT"
] |
#!/usr/bin/env bash
###############################################################################
# Copyright 2020 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... | Shell | 4 | jzjonah/apollo | docker/build/installers/install_proj.sh | [
"Apache-2.0"
] |
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | Shell | 3 | deepneuralmachine/google-research | bam/run.sh | [
"Apache-2.0"
] |
; States are agents
breed [states state]
states-own
[
content ; Stores the content of the state (the value)
explored? ; Shows if the state has been explored or not
path ; Stores the path to reach this state
]
; Transitions will be represented as links
directed-link-breed [transitions transition]
transitio... | NetLogo | 5 | fsancho/IA | 11. Machine Learning/Reinforcement Learning/QLearning - Hanoi.nlogo | [
"MIT"
] |
##### http://autoconf-archive.cryp.to/ax_cflags_warn_all.html
#
# SYNOPSIS
#
# AX_CFLAGS_WARN_ALL [(shellvar [,default, [A/NA]])]
#
# DESCRIPTION
#
# Try to find a compiler option that enables most reasonable
# warnings. This macro is directly derived from VL_PROG_CC_WARNINGS
# which is split up into two AX_CFL... | M4 | 5 | joshrose/audacity | lib-src/portsmf/autotools/m4/ax_cflags_warn_all.m4 | [
"CC-BY-3.0"
] |
package gw.specification.classes.the_Member_Access_Modifiers.p0
enhancement DefaultAccessEnh0 : gw.specification.classes.the_Member_Access_Modifiers.p0.DefaultAccessC0 {
function m3(){}
static function m4(){}
property get Prop5() : String {
return "property 5"
}
static property get Prop6() : String {
... | Gosu | 4 | tcmoore32/sheer-madness | gosu-test/src/test/gosu/gw/specification/classes/the_Member_Access_Modifiers/p0/DefaultAccessEnh0.gsx | [
"Apache-2.0"
] |
document.write('#{escape_javascript(stylesheet_link_tag("#{stylesheet_url 'snippets'}"))}');
document.write('#{escape_javascript(render(partial: 'shared/snippets/embed', collection: @blobs, as: :blob))}');
| Haml | 3 | glimmerhq/glimmerhq | app/views/shared/snippets/show.js.haml | [
"MIT"
] |
[[documentation.actuator]]
== Moving to Production
When you are ready to push your Spring Boot application to production, we have <<actuator#actuator, some tricks>> that you might like:
* *Management endpoints:* <<actuator#actuator.endpoints, Overview>>
* *Connection options:* <<actuator#actuator.monitoring, HTTP>> | ... | AsciiDoc | 3 | techAi007/spring-boot | spring-boot-project/spring-boot-docs/src/docs/asciidoc/documentation/actuator.adoc | [
"Apache-2.0"
] |
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package reflect
import (
"internal/goarch"
"sync"
"unsafe"
)
// MakeRO returns a copy of v with the read-only flag set.
func MakeRO(v Value) Value {
v.fla... | Go | 5 | SSSDNSY/go | src/reflect/export_test.go | [
"BSD-3-Clause"
] |
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing
**
** This file is part of the Qt Build Suite.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accord... | QML | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/QML/common.qbs | [
"MIT"
] |
// Camera is placed 10 units behind the origin
camera {
location <0, 0, -10>
look_at <0, 0, 0>
}
// Light source is placed 10 units behind the origin
light_source {
<0, 0, -10>
color rgb <1, 1, 1>
}
// Light source shining from top left corner of the scene
light_source {
<-10, 10, 0>
color r... | POV-Ray SDL | 5 | spcask/pov-ray-tracing | src/scene02.pov | [
"MIT"
] |
void FutureApi::OnFrontConnected()
{
gil_scoped_acquire acquire;
this->onFrontConnected();
};
void FutureApi::OnFrontDisconnected(int iReason)
{
gil_scoped_acquire acquire;
this->onFrontDisconnected(iReason);
};
void FutureApi::OnHeartBeatWarning(int iTimeLapse)
{
gil_scoped_acquire acquire;
this->onHeartBeatWa... | C++ | 4 | funrunskypalace/vnpy | vnpy/api/da/generator/da_future_source_task.cpp | [
"MIT"
] |
# TODO: Translation updated at 2022-01-11 21:45
translate english strings:
# game/scripts/click_to_continue.rpy:14
old "Click to continue"
new "Click to continue"
| Ren'Py | 3 | googlebleh/LearnToCodeRPG | game/tl/english/scripts/click_to_continue.rpy | [
"BSD-3-Clause"
] |
FORMAT: 1A
HOST: http://127.0.0.1:8111
# proxy_list Web API
默认只对本地 127.0.0.1 IP 开放服务,默认端口为 8111。
只提供两个接口,代理的获取和删除。
# Group API
## 获取代理 [GET /proxy{?count,anonymity,protocol}]
+ Parameters
+ count: `1` (number, optional) - 获取的代理数量,默认为 1,非必填项。
+ anonymity: transparent (enum[string], optional)
你想要获取代理的... | API Blueprint | 3 | Leader0721/ManyIP | doc/web_api.apib | [
"MIT"
] |
include("abe.nut");
function on_init_map(playerMapObj, map, xpos, ypos)
{
log_info("on_init_map for map creating player object map is " + map);
local player = Abe(playerMapObj, map);
playerMapObj.SetScriptInstance(player);
player.mBase.mXPos = xpos;
player.mBase.mYPos = ypos;
// TODO: Tell ca... | Squirrel | 3 | mouzedrift/alive | data/scripts/map.nut | [
"MIT"
] |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract ERC165MissingData {
function supportsInterface(bytes4 interfaceId) public view {} // missing return
}
| Solidity | 2 | oznfc/openzeppelin-contracts | contracts/mocks/ERC165/ERC165MissingData.sol | [
"MIT"
] |
module.exports (terms) = terms.term {
constructor (items) =
self.isRange = true
self.items = items
self.inList = false
self.range = terms.moduleConstants.define ['range'] as (
terms.javascript (
'function (a, b) {
var items = [];
... | PogoScript | 3 | Sotrek/Alexa | Alexa_Cookbook/Workshop/StatePop/4_IOT/tests/node_modules/aws-sdk/node_modules/cucumber/node_modules/pogo/lib/terms/range.pogo | [
"MIT"
] |
# Copyright (c) 2018-2021, Carnegie Mellon University
# See LICENSE for details
Declare(GT);
Declare(ListProduct);
ListProduct := function(l)
local prod, i;
if Length(l) <=0 then return 0; fi;
prod := 1;
for i in l do
prod := prod * i;
od;
return(prod);
end;
GTVec := XChain([0,1]);
GT... | GAP | 5 | sr7cb/spiral-software | namespaces/spiral/paradigms/common/gt.gi | [
"BSD-2-Clause-FreeBSD"
] |
/*
* 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 | OlegPt/spark | sql/core/src/test/scala/org/apache/spark/sql/execution/DeprecatedWholeStageCodegenSuite.scala | [
"Apache-2.0"
] |
# that one is white-listed
[third-party]
clippy-feature = "nightly"
| TOML | 1 | Eric-Arellano/rust | src/tools/clippy/tests/ui-toml/good_toml_no_false_negatives/clippy.toml | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
--TEST--
Check that __invoke() works with named parameters
--FILE--
<?php
class Test {
public function __invoke($a = 'a', $b = 'b') {
echo "a: $a, b: $b\n";
}
}
class Test2 {
public function __invoke($a = 'a', $b = 'b', ...$rest) {
echo "a: $a, b: $b\n";
var_dump($rest);
}
}
$... | PHP | 4 | NathanFreeman/php-src | Zend/tests/named_params/__invoke.phpt | [
"PHP-3.01"
] |
Assets:Static assets
AssetsOverview:Working with public assets
AssetsCoffeeScript:Using CoffeeScript
AssetsLess:Using LESS CSS
AssetsSass:Using Sass
AssetsJSHint:Using JSHint
RequireJS-support:Using RequireJs | TeX | 2 | eed3si9n/playframework | documentation/manual/working/commonGuide/assets/index.toc | [
"Apache-2.0"
] |
#
# Copyright (c) 2014, Facebook, Inc.
# 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. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
#
#
enum ReturnCode {
... | Thrift | 4 | KeleiAzz/augmented-traffic-control | atc/atc_thrift/atc_thrift.thrift | [
"BSD-3-Clause"
] |
# Find libuuid
find_package(PkgConfig)
pkg_check_modules(PC_UUID QUIET uuid)
set(UUID_DEFINITIONS ${PC_UUID_CFLAGS_OTHER})
find_path(UUID_INCLUDE_DIR uuid/uuid.h
HINTS ${PC_UUID_INCLUDEDIR} ${PC_UUID_INCLUDE_DIRS})
set(UUID_INCLUDE_DIRS ${UUID_INCLUDE_DIR})
# On OS X we don't need the library
if(CMAKE_SYSTEM_NAM... | CMake | 3 | lwhsu/swift | cmake/modules/FindUUID.cmake | [
"Apache-2.0"
] |
$$ MODE TUSCRIPT
url_encoded="http%3A%2F%2Ffoo%20bar%2F"
BUILD S_TABLE hex=":%><:><2<>2<%:"
hex=STRINGS (url_encoded,hex), hex=SPLIT(hex)
hex=DECODE (hex,hex)
url_decoded=SUBSTITUTE(url_encoded,":%><2<>2<%:",0,0,hex)
PRINT "encoded: ", url_encoded
PRINT "decoded: ", url_decoded
| Turing | 3 | LaudateCorpus1/RosettaCodeData | Task/URL-decoding/TUSCRIPT/url-decoding.tu | [
"Info-ZIP"
] |
# -*- perl -*-
use strict;
use warnings;
use tests::tests;
check_expected ([<<'EOF', <<'EOF']);
(multi-child-fd) begin
(multi-child-fd) open "sample.txt"
(child-close) begin
(child-close) end
child-close: exit(0)
(multi-child-fd) wait(exec()) = 0
(multi-child-fd) verified contents of "sample.txt"
(multi-child-fd) end
m... | ChucK | 3 | nguyenvannam2698/os_pintos_20211 | src/tests/userprog/multi-child-fd.ck | [
"MIT"
] |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
part of google_maps_flutter_web;
/// This class manages all the [CircleController]s associated to a [GoogleMapController].
class CirclesController extends... | Dart | 5 | suryatmodulus/flutter-plugins | packages/google_maps_flutter/google_maps_flutter_web/lib/src/circles.dart | [
"BSD-3-Clause"
] |
i=--:i++c--i++c--i++c--i++c--i++c--i++c--i++c:i=--i++c goto1+(i=="")
:o=c c=0goto:done++
/--------//--------//--------//--------//--------//--------//--------/
i=--:i i--i--i--i--c=5i--c++i--c++i--c++i--c++i--c++i--c++i--c++i--c++
--i++c--i++c--i++c--i++c--i++c--i++c--i++c--i++c--i++c--i++c goto2
:o=c goto:done++
/... | LOLCODE | 0 | Dude112113/Yolol | YololEmulator/Scripts/StringLength.lol | [
"MIT"
] |
GET /api/v1/blocks?transaction_id=4957744b3ac54434b8270f2c854cc1040228c82ea4e72d66d2887a4d3e30b317 HTTP/1.1
Host: example.com
| HTTP | 2 | jaromil/bigchaindb | docs/root/source/installation/api/http-samples/get-block-txid-request.http | [
"Apache-2.0"
] |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dreamview</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script>
loadJSON('parameters.json', (response) => {
window.PARAMETERS = JSON.parse(response);
});
function loadJSON(... | Handlebars | 4 | seeclong/apollo | modules/dreamview/frontend/src/index.hbs | [
"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 | OlegPt/spark | core/src/main/scala/org/apache/spark/ui/UIWorkloadGenerator.scala | [
"Apache-2.0"
] |
function f<T>(x: T): T { return null; }
var r = <T>(x: T) => x;
var r2 = < <T>(x: T) => T>f; // valid
var r3 = <<T>(x: T) => T>f; // ambiguous, appears to the parser as a << operation
| TypeScript | 2 | nilamjadhav/TypeScript | tests/cases/compiler/ambiguousGenericAssertion1.ts | [
"Apache-2.0"
] |
-- Copyright 2021 Stanford University
--
-- 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... | Rouge | 3 | mmccarty/legion | language/tests/regent/run_pass/runtime_input_args.rg | [
"Apache-2.0"
] |
"""
bar
"""
class Foo:
[getter(Bar)]
_a = Clickable(Name: "bar", Clicked: foo)
def foo():
print _a.Name
class Clickable:
[property(Name)]
_name as string
event Clicked as callable()
def Click():
Clicked()
Foo().Bar.Click()
| Boo | 2 | popcatalin81/boo | tests/testcases/regression/BOO-369-2.boo | [
"BSD-3-Clause"
] |
(set-info :smt-lib-version 2.6)
(set-logic QF_UFLRA)
(set-info :source |CPAchecker with k-induction on SV-COMP14 program using MathSAT5, submitted by Philipp Wendler, http://cpachecker.sosy-lab.org|)
(set-info :category "industrial")
(set-info :status unsat)
(declare-fun ldv_spin@1 () Real)
(declare-fun |main::ldv_s_... | SMT | 2 | livinlife6751/infer | sledge/test/smt/QF_UFLRA/cpachecker-induction-svcomp14/cpachecker-induction.43_1a_cilled_true-unreach-call_ok_nondet_linux-43_1a-drivers--input--misc--mpu3050.ko-ldv_main0_sequence_infinite_withcheck_stateful.cil.out.c.smt2 | [
"MIT"
] |
#include-once
#include <File.au3>
#include <FileConstants.au3>
#include <StringConstants.au3>
#include "ProcessEx.au3"
#AutoIt3Wrapper_Au3Check_Parameters=-q -d -w 1 -w 2 -w 3 -w- 4 -w 5 -w 6 -w- 7
; #INDEX# ==============================================================================================================... | AutoIt | 5 | IHA114/ProxAllium | Tor.au3 | [
"MIT"
] |
require("rubinius/debugger")
class Rubinius Debugger {
forwards_unary_ruby_methods
metaclass forwards_unary_ruby_methods
}
class Rubinius Debugger Command SetBreakPoint {
def match_method: method_identifier {
match method_identifier {
case /##/ ->
class_name, method_name = method_identifier sp... | Fancy | 3 | bakkdoor/fancy | lib/rbx/debugger.fy | [
"BSD-3-Clause"
] |
var A = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "... | Chapel | 1 | jhh67/chapel | test/users/ferguson/string_reduce.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
int main() {
print_wrapper (Config.x);
return return_code ();
}
| Vala | 1 | kira78/meson | test cases/vala/8 generated sources/src/test.vala | [
"Apache-2.0"
] |
GET /api/v1/transactions?operation=TRANSFER&asset_id=4957744b3ac54434b8270f2c854cc1040228c82ea4e72d66d2887a4d3e30b317 HTTP/1.1
Host: example.com
| HTTP | 2 | jaromil/bigchaindb | docs/root/source/installation/api/http-samples/get-tx-by-asset-request.http | [
"Apache-2.0"
] |
[[using.running-your-application]]
== Running Your Application
One of the biggest advantages of packaging your application as a jar and using an embedded HTTP server is that you can run your application as you would any other.
The sample applies to debugging Spring Boot applications.
You do not need any special IDE plu... | AsciiDoc | 4 | techAi007/spring-boot | spring-boot-project/spring-boot-docs/src/docs/asciidoc/using/running-your-application.adoc | [
"Apache-2.0"
] |
# Copied with little modifications from: https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/nbody-yarv-2.html
SOLAR_MASS = 4 * Math::PI**2
DAYS_PER_YEAR = 365.24
class Planet
property x : Float64
property y : Float64
property z : Float64
property vx : Float64
property vy : Float64
prop... | Crystal | 4 | mgomes/crystal | samples/nbodies.cr | [
"Apache-2.0"
] |
NAME
VTK::Filters
LIBRARY_NAME
vtkFilters
DESCRIPTION
Common filters and algorithms
| Kit | 0 | txwhhny/vtk | Filters/Core/vtk.kit | [
"BSD-3-Clause"
] |
#import "content/nw/src/api/base/base_mac.h"
#import <objc/runtime.h>
@interface CppWrapper : NSObject {
void* _obj;
}
+ (id) createFromCppObject:(void*) obj;
- (id) initWithCppObject:(void*) obj;
- (void*) obj;
@end
@implementation CppWrapper
+ (id) createFromCppObject:(void*) obj {
return [[CppWrapper alloc] i... | Objective-C++ | 4 | frank-dspeed/nw.js | src/api/base/base_mac.mm | [
"MIT"
] |
REBOL [Title: "Basic TEXT test"]
do %gfx-pre.r3
find-file: funct [
dir [file!]
file [file!]
][
foreach f read dir [
fn: dir/:f
either dir? fn [
if fn: find-file fn file [
return fn
]
][
if file = f [
return to string! fn
]
]
]
return none
]
find-font: funct [
... | Rebol | 5 | Pointillistic/rebol-lang | tests/text-test.r3 | [
"Apache-2.0"
] |
// Implement pow(x, n).
public class PowerOfXToTheN {
public double myPow(double x, int n) {
if(n == 0) {
return 1;
}
if(Double.isInfinite(x)) {
return 0;
}
if(n < 0) {
n = -n;
x = 1 / x;
}
... | Java | 4 | ChickenMomos/interviews | leetcode/binary-search/PowerOfXToTheN.java | [
"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 | jzjonah/apollo | modules/perception/fusion/base/sensor_data_manager_test.cc | [
"Apache-2.0"
] |
.pre-process-selector {
color: red;
}
| CSS | 1 | ardyno/nuxt.js | test/fixtures/with-config/assets/pre-process.css | [
"MIT"
] |
module ciena-waveserver-ptp {
namespace "urn:ciena:params:xml:ns:yang:ciena-ws:ciena-waveserver-ptp";
prefix ptp;
import ciena-waveserver-typedefs {
prefix cienawstypes;
}
import ciena-waveserver-xcvr {
prefix xcvr;
}
organization
"Ciena Corporation";
contact
"Web URL: http://www.ciena... | YANG | 5 | meodaiduoi/onos | models/ciena/waveserverai/src/main/yang/ciena-waveserver-ptp@2017-11-27.yang | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.