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 |
|---|---|---|---|---|---|
turtles-own [tolerance]
patches-own [comments]
breed [jacks jack]
breed [freds fred]
breed [hans han]
to setup
clear-all
setup-patches
setup-turtles
reset-ticks
end
to go
move-turtles
check-comments
tick
end
to setup-patches
ask patches [
set comments random-float 10
]
check-comments
end
to... | NetLogo | 5 | jericson/jericson.github.io | NetLogo/.welcome_comments.tmp.nlogo | [
"Artistic-2.0"
] |
{{ define "main" }}
<article class="markdown">
<h1>{{ .Title | title }}</h1>
{{ $taxonomies := index .Site.Taxonomies .Page.Type }}
{{ range $taxonomies }}
<div><a href="{{ .Page.Permalink }}">{{ .Page.Title }} <sup>{{ .Count }}</sup></a></div>
{{ end }}
</article>
{{ end }}
{{ define "toc" }}
{{ partial... | HTML | 4 | sohaoo/LeetCode-Go | website/themes/book/layouts/taxonomy/list.html | [
"MIT"
] |
h2. Sidebar
The Sidebar is an HTML container you can use in your own implementation.
endprologue.
h3. Overview
Aloha Editor comes with two preconfigured Sidebars that can be referenced via the @Aloha.Sidebar.*@ property:
<javascript>
Aloha.Sidebar.left; // references the left Sidebar
Aloha.Sidebar.right; // refer... | Textile | 4 | luciany/Aloha-Editor | doc/guides/source/sidebar.textile | [
"CC-BY-3.0"
] |
package com.baeldung.couchbase.async.service;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.couchbase.client.java.Bucket;
import com.... | Java | 4 | zeesh49/tutorials | couchbase/src/main/java/com/baeldung/couchbase/async/service/ClusterServiceImpl.java | [
"MIT"
] |
module Svc {
@ A generic hub component
passive component GenericHub {
# ----------------------------------------------------------------------
# General Ports
# ----------------------------------------------------------------------
@ Input array of generic ports to shuttle to the other side of th... | FORTRAN | 4 | AlperenCetin0/fprime | Svc/GenericHub/GenericHub.fpp | [
"Apache-2.0"
] |
.excalidraw {
.ActiveFile {
.ActiveFile__fileName {
display: flex;
align-items: center;
span {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
width: 9.3em;
}
svg {
width: 1.15em;
margin-inline-end: 0.3em;
tran... | SCSS | 3 | dineshondev/excalidraw | src/components/ActiveFile.scss | [
"MIT"
] |
.bar
color: green
| Stylus | 1 | johanberonius/parcel | packages/core/integration-tests/test/integration/stylus-glob-import/subdir/bar/bar.styl | [
"MIT"
] |
module models.toon
import m33ki.mongodb
# Collection
function Toons = {
let collection = Mongo()
: database("toonsdb")
: collection("Toons")
# Model
let Toon = |collection| -> MongoModel(collection)
return MongoCollection(Toon, collection)
}
| Golo | 3 | TypeUnsafe/golo-tour | 05-Golo.75.devoxxfr.2014/4.grosse.demo.golo.loves.java/toons/app/models/Toon.golo | [
"MIT"
] |
<html>
<head>
<title>template_html_3</title>
<style>
a {
color: #0f7afc;
border-bottom-color: rgba(15, 122, 252, 0.2);
text-decoration: none
}
a:hover {
color: #cf0000;
border-bottom-color: rgba(208, 64, 0, 0.2);
text-decoration: none
}
a:v... | HTML | 3 | NeatNerdPrime/iris | _examples/view/template_html_3/templates/page.html | [
"BSD-3-Clause"
] |
/*
* Copyright 2005-2010 LAMP/EPFL
*/
// $Id$
package scala.tools.eclipse.contribution.weaving.jdt.core;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector;
public aspect... | AspectJ | 3 | elemgee/scala-ide | org.scala-ide.sdt.aspects/src/scala/tools/eclipse/contribution/weaving/jdt/core/SourceLookupAspect.aj | [
"BSD-3-Clause"
] |
.icon-github_enterprise::before {
height: 1em;
content: "";
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wJGBYxHYxl31wAAAHpSURBVDjLpZI/aFNRFMZ/973bJqGRPopV4qNq/+SpTYnWRhCKilShg9BGcHOM+GfQoZu... | CSS | 3 | subramanir2143/Rocket.Chat | app/github-enterprise/client/github-enterprise-login-button.css | [
"MIT"
] |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "precomp.h"
using namespace WEX::Logging;
class MultipleInflightMessageTests
{
BEGIN_TEST_CLASS(MultipleInflightMessageTests)
END_TEST_CLASS()
// This test is intended to make sure that we do not regress afte... | C++ | 5 | sonvt1710/terminal | src/host/ft_host/API_MultipleInflightMessageTests.cpp | [
"MIT"
] |
size: 600px 900px;
dpi: 96;
areas {
data-x: csv("test/testdata/measurement.csv" value2);
data-y: csv("test/testdata/measurement.csv" time);
direction: horizontal;
color: #999;
}
| CLIPS | 2 | asmuth-archive/travistest | test/plot-areas/areas_vertical.clp | [
"Apache-2.0"
] |
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#include "des.h"
#define deschar char
static STRLEN len;
static int
not_here(s)
char *s;
{
croak("%s not implemented on this architecture", s);
return -1;
}
MODULE = DES PACKAGE = DES PREFIX = des_
char *
des_crypt(buf,salt)
char *... | XS | 4 | jiangzhu1212/oooii | Ouroboros/External/OpenSSL/openssl-1.0.0e/crypto/des/DES.xs | [
"MIT"
] |
rly foo not bar
shh 1
wow
| Dogescript | 0 | joeratt/dogescript | test/spec/operators/not/source.djs | [
"MIT"
] |
// Uncomment to use the mode you prefer (default SWBB_MODE 1)
// #define SWBB_MODE 1 // 1.95kB/s - 15625Bd
// #define SWBB_MODE 2 // 2.21kB/s - 17696Bd
// #define SWBB_MODE 3 // 2.94kB/s - 23529Bd
// #define SWBB_MODE 4 // 3.40kB/s - 27210Bd
#include <PJONSoftwareBitBang.h>
// Bus id definition
uint8_t bus_id[] = {0... | Arduino | 4 | solhuebner/PJON | examples/ARDUINO/Network/SoftwareBitBang/SpeedTest/Transmitter/Transmitter.ino | [
"Apache-2.0"
] |
pub fn f2<F: FnMut(u32) + Clone>(f: F) {}
pub fn f3<F: FnMut(u64) -> () + Clone>(f: F) {}
| Rust | 3 | Eric-Arellano/rust | src/test/rustdoc/auxiliary/unit-return.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
include(CMakeParseArguments)
# BuildLuajit(TARGET targetname CONFIGURE_COMMAND ... BUILD_COMMAND ... INSTALL_COMMAND ...)
# Reusable function to build luajit, wraps ExternalProject_Add.
# Failing to pass a command argument will result in no command being run
function(BuildLuajit)
cmake_parse_arguments(_luajit
""... | CMake | 4 | andymass/neovim | third-party/cmake/BuildLuajit.cmake | [
"Vim"
] |
import { useContext } from 'react'
import { I18nContext } from '../lib/i18n'
export default function useI18n() {
const i18n = useContext(I18nContext)
return i18n
}
| JavaScript | 4 | blomqma/next.js | examples/with-i18n-rosetta/hooks/use-i18n.js | [
"MIT"
] |
import App from '../components/App'
export default function About() {
return (
<App>
<p>About Page</p>
</App>
)
}
| JSX | 3 | blomqma/next.js | examples/with-firebase-hosting/src/pages/about.jsx | [
"MIT"
] |
; Script Name : clipboard_logger.au3
; Author : Craig Richards
; Created : 25th January 2012
; Last Modified :
; Version : 1.0
; Modifications :
; Description : Will log all contents added to the clipboard, even if they use 1Passwd, Keypass, Lastpass etc
#Include <clipboard.au3> ; Include the Clipboard H... | AutoIt | 4 | X-EcutiOnner/Notepad3 | test/test_files/StyleLexers/styleLexAU3/clipboard_logger.au3 | [
"BSD-3-Clause"
] |
/obj/lamp
name = "lamp"
icon = 'ExampleProject/obj.dmi'
icon_state = "lamp-on"
light_range = 5
// light_color = "#FFFF00"
/obj/lamp/verb/change_color(var/new_color as color)
set src in view()
set_light(l_color = new_color)
/obj/lamp/verb/change_range(var/new_range as num)
set src in view()
s... | DM | 4 | PJB3005/GoonLight-Heist | ExampleProject/lamp.dm | [
"MIT"
] |
my class IO::Spec::QNX is IO::Spec::Unix {
method canonpath ($patharg, :$parent) {
my $path = $patharg.Str;
# Handle POSIX-style node names beginning with double slash (qnx, nto)
# (POSIX says: "a pathname that begins with two successive slashes
# may be interpreted in an implementa... | Perl6 | 5 | raydiak/rakudo | src/core.c/IO/Spec/QNX.pm6 | [
"Artistic-2.0"
] |
// Print a newline
fn putln() -> void = do
putchar('\n')
end in
// Print a number, and a newline
fn putnumln(n: int) -> void = do
putnum(n); putln()
end in
fn inc(n: &int) -> &int = do
*n += 1;
n
end in
fn square(n: &int) -> &int = do
*n *= *n;
n
end in
let x = 5,
ptr = alloc(int)
in do
... | Harbour | 4 | adam-mcdaniel/harbor | examples/assignment.hb | [
"Apache-2.0"
] |
<div xmlns:py="http://purl.org/kid/ns#" id="archives">
<dl py:for="post in archive_posts">
<dt><a href="/${site.name}/blog/archives/${post[7]}">${post[3].strftime('%B %Y')}</a></dt>
<dd>(${post[9]})</dd>
</dl>
</div> | Genshi | 3 | CarlosGabaldon/calabro | calabro/widgets/templates/archives.kid | [
"MIT"
] |
=pod
=head1 NAME
PKCS12_init, PKCS12_init_ex - Create a new empty PKCS#12 structure
=head1 SYNOPSIS
#include <openssl/pkcs12.h>
PKCS12 *PKCS12_init(int mode);
PKCS12 *PKCS12_init_ex(int mode, OSSL_LIB_CTX *ctx, const char *propq);
=head1 DESCRIPTION
PKCS12_init() creates an empty PKCS#12 structure. Any PKCS#7... | Pod | 5 | pmesnier/openssl | doc/man3/PKCS12_init.pod | [
"Apache-2.0"
] |
; CLW file contains information for the MFC ClassWizard
[General Info]
Version=1
LastClass=MainMenuDlg
LastTemplate=CDialog
NewFileInclude1=#include "stdafx.h"
NewFileInclude2=#include "smpackage.h"
ClassCount=12
Class1=CSmpackageApp
Class2=CSmpackageDlg
ResourceCount=13
Resource1=IDR_MAINFRAME
Resour... | Clarion | 2 | MidflightDigital/stepmania | src/smpackage/smpackage.clw | [
"MIT"
] |
<h1 class="title">Error</h1>
<p class="error_title">
{{#if js_error}}
JavaScript error:
{{else}}
Server error:
{{/if}}
</p>
<pre class="error error_details">{{error}}</pre>
{{#if query}}
<p class="error">The query that returned an error is:</... | Handlebars | 2 | zadcha/rethinkdb | admin/static/handlebars/dataexplorer-error.hbs | [
"Apache-2.0"
] |
package gw.specContrib.classes
enhancement Errant_EnhancementEnhancingItself: Errant_EnhancementEnhancingItself { //## issuekeys: ENAHCEMENTS CANNOT ENHANCE OTHER ENHANCEMENTS
}
| Gosu | 0 | tcmoore32/sheer-madness | gosu-test/src/test/gosu/gw/specContrib/classes/Errant_EnhancementEnhancingItself.gsx | [
"Apache-2.0"
] |
(module
(type $FUNCSIG$vii (func (param i32 i32)))
(type $FUNCSIG$ii (func (param i32) (result i32)))
(type $FUNCSIG$iiiiii (func (param i32 i32 i32 i32 i32) (result i32)))
(type $FUNCSIG$viii (func (param i32 i32 i32)))
(type $FUNCSIG$viiiiii (func (param i32 i32 i32 i32 i32 i32)))
(type $FUNCSIG$viiiii (func (p... | WebAssembly | 3 | romdotdog/assemblyscript | lib/parse/build/index.wat | [
"Apache-2.0"
] |
div { 'Lorem ipsum doler' };
---
div >
'Lorem ipsum doler'
==================================
ul {
li > span > em > '~[name]'
}
---
ul >
li >
span >
em >
'~[name]'
==================================
if () {
div > 'Baz'
}
---
if () >
div >
'Baz'
| Mask | 1 | atmajs/MaskJS | test/tmpl/stringify/node_single.mask | [
"MIT"
] |
function f(a, b=1){
return a + b;
}
print f(1);
print f(1, 2);
| COBOL | 4 | cau991/ssdb | deps/cpy/samples/function.cpy | [
"BSD-3-Clause"
] |
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C | 4 | EricRemmerswaal/tensorflow | tensorflow/core/util/determinism_test_util.h | [
"Apache-2.0"
] |
[Exposed=Window,
HTMLConstructor]
interface HTMLTableCaptionElement : HTMLElement {
// also has obsolete members
};
partial interface HTMLTableCaptionElement {
[CEReactions, Reflect] attribute DOMString align;
};
| WebIDL | 3 | corsarstl/Learn-Vue-2 | vue-testing/node_modules/jsdom/lib/jsdom/living/nodes/HTMLTableCaptionElement.webidl | [
"MIT"
] |
(define parse
Sentence -> (let Parse (sent [Sentence []])
(if (parsed? Parse)
(output_parse Parse)
ungrammatical)))
(define parsed?
[[] _] -> true
_ -> false)
(define output_parse
[_ Parse_Rules] -> (reverse Parse_Rules))
(define sen... | Shen | 5 | WilliamStone/Shen.java | shen/test/parser.shen | [
"Unlicense"
] |
#!/usr/bin/env bash
###############################################################################
# Copyright 2017 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 | scripts/filter_planning.sh | [
"Apache-2.0"
] |
#include "caffe2/serialize/read_adapter_interface.h"
namespace caffe2 {
namespace serialize {
// NOLINTNEXTLINE(modernize-use-equals-default)
ReadAdapterInterface::~ReadAdapterInterface() {}
} // namespace serialize
} // namespace caffe2
| C++ | 1 | Hacky-DH/pytorch | caffe2/serialize/read_adapter_interface.cc | [
"Intel"
] |
camera {
location <3, 2, -8>
look_at <2, 1, 0>
}
light_source {
<5, 9, -5>
color rgb <0.7, 0.7, 0.7>
}
light_source {
<5, 9, 0>
color rgb <0.6, 0.6, 0.6>
}
// Front wall
box {
<0, 0, 0> <10, 10, 1>
pigment {
bozo
turbulence 1
color_map {
[0.7 color ... | POV-Ray SDL | 4 | spcask/pov-ray-tracing | src/scene04.pov | [
"MIT"
] |
/*
* Copyright 2012-2020 the original author or 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | Java | 5 | techAi007/spring-boot | spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/IncompatibleConfigurationException.java | [
"Apache-2.0"
] |
#version 450 core
#define PRECISION $precision
layout(std430) buffer;
/* Qualifiers: layout - storage - precision - memory */
layout(set = 0, binding = 0) uniform PRECISION restrict writeonly image3D uOutput;
layout(set = 0, binding = 1) uniform PRECISION sampler3D uInput;
layout(set = 0, bindin... | GLSL | 4 | Hacky-DH/pytorch | aten/src/ATen/native/vulkan/glsl/reflection_pad2d.glsl | [
"Intel"
] |
{
"type": "Script",
"span": {
"start": 16,
"end": 526,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 16,
"end": 33,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type":... | JSON | 2 | mengxy/swc | crates/swc_ecma_parser/tests/typescript/tsc/emitCompoundExponentiationOperator2/input.ts.json | [
"Apache-2.0"
] |
[
Rebol [
Title: "Service-oriented HTTP Protocol"
Author: "Christopher Ross-Gill"
Date: 24-Jul-2013
Home: http://ross-gill.com/page/REST_Protocol
File: %rest.r3
Version: 0.0.1
Type: module
Name: rgchris.rest
Usage: [
read [
scheme: 'rest
url: http://www.ross-gill.com/
]
write [
scheme: 'rest
... | Rebol | 4 | hostilefork/rgchris-scripts | r3-alpha/rest.r3 | [
"Apache-2.0"
] |
use mut = "collections"
type Set[A: (mut.Hashable val & Equatable[A])] is HashSet[A, mut.HashEq[A]]
type SetIs[A: Any #share] is HashSet[A, mut.HashIs[A]]
class val HashSet[A: Any #share, H: mut.HashFunction[A] val]
is Comparable[HashSet[A, H] box]
"""
A set, built on top of persistent Map. This is implemented... | Pony | 5 | presidentbeef/ponyc | packages/collections/persistent/set.pony | [
"BSD-2-Clause"
] |
\*
Copyright (c) 2010-2015, Mark Tarver
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 source code must retain the above copyright
notice, this list of conditions and the foll... | Shen | 4 | nondejus/shen-go | ShenOSKernel-22.2/sources/sequent.shen | [
"BSD-3-Clause"
] |
-- Tags: distributed
DROP TABLE IF EXISTS big_array;
CREATE TABLE big_array (x Array(UInt8)) ENGINE=TinyLog;
SET min_insert_block_size_rows = 0, min_insert_block_size_bytes = 0;
INSERT INTO big_array SELECT groupArray(number % 255) AS x FROM (SELECT * FROM system.numbers LIMIT 1000000);
SELECT sum(y) AS s FROM remote(... | SQL | 2 | pdv-ru/ClickHouse | tests/queries/0_stateless/00028_shard_big_agg_aj_distributed.sql | [
"Apache-2.0"
] |
// Copyright 2010-2014 RethinkDB, all rights reserved.
#if defined(__MACH__)
#include "arch/runtime/event_queue/kqueue.hpp"
#include <unistd.h>
#include <sys/types.h>
#include <sys/event.h>
#include <sys/time.h>
#include <set>
#include "arch/runtime/event_queue.hpp"
#include "arch/runtime/thread_pool.hpp"
#include ... | C++ | 4 | zadcha/rethinkdb | src/arch/runtime/event_queue/kqueue.cc | [
"Apache-2.0"
] |
//
// Copyright (c) 2018, chunquedong
// Licensed under the Academic Free License version 3.0
//
// History:
// 2018-07-14 Jed Young
//
internal class FileBuf : Buf
{
private Int handle
new make(File file, Str mode) : super.privateMake() {
if (!init(file, mode)) {
throw IOErr("open file error: $file,... | Fantom | 3 | fanx-dev/fanx | library/std/fan/io/FileBuf.fan | [
"AFL-3.0"
] |
let encoding = &enc
if encoding == ''
let encoding = 'utf-8'
endif
if encoding == 'utf-8'
source <sfile>:p:h/persian-iranian_utf-8.vim
endif
| VimL | 2 | uga-rosa/neovim | runtime/keymap/persian.vim | [
"Vim"
] |
turtles-own [
;Psychological attributes:
mA ;Motivation for achievement
mS ;Motivation for sociability
social-need ;Expected interaction
achiev-need ;Expected challenge
interest ;Experienced interest for the game
tolerance ;Tolerance to frustration
ret-mem ;Memory given... | NetLogo | 5 | Andrelhu/WoW-Subscription-Behavior | World of Warcraft Motivation 1.0.nlogo | [
"MIT"
] |
"""Constants for TCP platform."""
from __future__ import annotations
from typing import Final
CONF_BUFFER_SIZE: Final = "buffer_size"
CONF_VALUE_ON: Final = "value_on"
DEFAULT_BUFFER_SIZE: Final = 1024
DEFAULT_NAME: Final = "TCP Sensor"
DEFAULT_TIMEOUT: Final = 10
DEFAULT_SSL: Final = False
DEFAULT_VERIFY_SSL: Final... | Python | 4 | MrDelik/core | homeassistant/components/tcp/const.py | [
"Apache-2.0"
] |
int main(int argc, array(string) argv)
{
if (argc < 2) exit(1, "USAGE: pike %s program [arg [arg [arg...]]]\nRuns program with the given args, shuffled.\n");
Process.exec(argv[1], @Array.shuffle(argv[2..]));
}
| Pike | 3 | stephenangelico/shed | argshuf.pike | [
"MIT"
] |
option now = () => 2020-02-22T18:00:00Z
@tableflux.h2o_temperature{
location, bottom_degrees, time > -3h
}
|> aggregate(
{
min(bottom_degrees),
max(bottom_degrees),
mean(bottom_degrees)
},
by: ["location"],
window: 1h
)
| FLUX | 3 | RohanSreerama5/flux | colm/tableflux/query17.flux | [
"MIT"
] |
module org-openroadm-resource-types {
namespace "http://org/openroadm/resource/types";
prefix org-openroadm-resource-types;
organization "Open ROADM MSA";
contact
"OpenROADM.org";
description
"YANG definitions of common resource types.
Copyright of the Members of the Open ROADM MSA Agre... | YANG | 5 | ariscahyadi/onos-1.14-with-indopronos-app | models/openroadm/src/main/yang/org-openroadm-resource-types@2016-10-14.yang | [
"Apache-2.0"
] |
require "../abi"
# Based on https://github.com/rust-lang/rust/blob/29ac04402d53d358a1f6200bea45a301ff05b2d1/src/librustc_trans/trans/cabi_x86_win64.rs
class LLVM::ABI::X86_Win64 < LLVM::ABI::X86
private def compute_arg_types(atys, context)
atys.map do |t|
case t.kind
when Type::Kind::Struct
s... | Crystal | 4 | n00p3/crystal | src/llvm/abi/x86_win64.cr | [
"Apache-2.0"
] |
\data\
ngram 1= 4
ngram 2= 3
ngram 3= 2
\1-grams:
-1.716003 <s> -0.576253
-1.062791 Ahmet -0.316824
-1.062791 elma -0.617854
-0.975641 yedi -1.191886
\2-grams:
-0.455510 <s> Ahmet -0.226396
-0.770464 Ahmet elma -0.124939
-0.530704 elma yedi -0.176091
\3-grams:
-0.851937 <s> Ahmet elma
-0.903090 Ahmet elma yedi
\en... | DNS Zone | 2 | flower-gardener/zemberek-nlp | lm/src/test/resources/nano.arpa | [
"ECL-2.0",
"Apache-2.0",
"BSD-3-Clause"
] |
package com.baeldung.jupiter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
@Configuration
public class TestConfig {
@Bean
static PropertySourcesPlaceholderConfi... | Java | 4 | scharanreddy/tutorials | spring-5/src/main/java/com/baeldung/jupiter/TestConfig.java | [
"MIT"
] |
#include "caffe2/operators/moments_op.h"
#include <array>
#include <functional>
#include "caffe2/core/context_gpu.h"
#include "caffe2/utils/fixed_divisor.h"
namespace caffe2 {
namespace {
template <typename T, int D>
__global__ void ComputeMomentsGradientCUDAKernel(
const int X_size,
const SimpleArray<int,... | Cuda | 4 | Hacky-DH/pytorch | caffe2/operators/moments_op.cu | [
"Intel"
] |
--TEST--
Test ctype_print() function : basic functionality
--EXTENSIONS--
ctype
--FILE--
<?php
echo "*** Testing ctype_print() : basic functionality ***\n";
$orig = setlocale(LC_CTYPE, "C");
$c1 = "Hello, World!";
$c2 = null;
var_dump(ctype_print($c1));
var_dump(ctype_print($c2));
setlocale(LC_CTYPE, $orig);
?>
--E... | PHP | 4 | NathanFreeman/php-src | ext/ctype/tests/ctype_print_basic.phpt | [
"PHP-3.01"
] |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | JavaScript | 4 | good-gym/material-ui | packages/material-ui-icons/lib/HvacSharp.js | [
"MIT"
] |
#!/usr/bin/nu
# I actually use it as a part of my startup, so I am not really sure how to pack it, yet I wouldd like to contribute
#-------------------------------------------------------------------------------------------------------------------------------
#
# How to use?
#------------------------------------------... | Nu | 3 | lily-mara/nu_scripts | cool_oneliners/cdpath-implementation.nu | [
"MIT"
] |
// Copyright 2010-2015 RethinkDB, all rights reserved.
#ifndef CONCURRENCY_EXPONENTIAL_BACKOFF_HPP_
#define CONCURRENCY_EXPONENTIAL_BACKOFF_HPP_
#include "arch/timing.hpp"
class exponential_backoff_t {
public:
exponential_backoff_t(
uint64_t _mnbm, uint64_t _mxbm, double _ff = 1.5, double _sf = 0.0) :... | C++ | 4 | zadcha/rethinkdb | src/concurrency/exponential_backoff.hpp | [
"Apache-2.0"
] |
# Axis
v -168.528413877983 49.982798466129 -169.689195501779
v -198.656987988408 40.5465207970757 -159.382555148643
v -205.026801281859 18.7109389957435 -142.116251932928
v -210.567265898051 -5.79832295290325 -126.661108962861
v -198.530794601416 -34.7512743649006 -106.112813582553
v -167.277348606649 -50.6733684... | NetLinx | 3 | liuxinren/TopoMender | TopoMender_MendIT/sktfile.axs | [
"MIT"
] |
class A <<!ELEMENT!>, <!ELEMENT!>>
where <!ELEMENT!> : CharSequence,
<!ELEMENT!> : Comparable<<!ELEMENT!>>
annotation class B <<!ELEMENT!>>
where <!ELEMENT!> : CharSequence,
@A<List<Nothing?>> @B <!ELEMENT!> : Comparable<<!ELEMENT!>>
annotation class C <<!ELEMENT!>, <!ELEME... | Kotlin | 0 | punzki/kotlin | compiler/tests-spec/testData/psi/templates/identifiers/typeConstraint.kt | [
"ECL-2.0",
"Apache-2.0"
] |
{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"# Python编程环境"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"## Guido Van Rossum和版本 "
... | Jupyter Notebook | 3 | microsoft/ai-edu | 基础教程/A1-Python与基础知识/Python基础/01_编程环境.ipynb | [
"Apache-2.0"
] |
## Formalising preorder
\begin{code}
record IsPreorder {A : Set} (_≤_ : A → A → Set) : Set where
field
reflexive : ∀ {x : A} → x ≤ x
trans : ∀ {x y z : A} → x ≤ y → y ≤ z → x ≤ z
IsPreorder-≤ : IsPreorder _≤_
IsPreorder-≤ =
record
{ reflexive = ≤-refl
; trans = ≤-trans
}
record Preorder : Set... | Literate Agda | 5 | manikdv/plfa.github.io | extra/extra/Preorder.lagda | [
"CC-BY-4.0"
] |
strict digraph kdf {
bgcolor="transparent";
begin [label=start, color="#deeaee", style="filled"];
newed [label="newed", fontcolor="#c94c4c", style="solid"];
deriving [label="deriving", fontcolor="#c94c4c"];
end [label="freed", color="#deeaee", style="filled"];
begin -> newed [label="EVP_KDF_CT... | Graphviz (DOT) | 4 | pmesnier/openssl | doc/life-cycles/kdf.dot | [
"Apache-2.0"
] |
print "Hello world!\n"
end
| Parrot Assembly | 0 | LaudateCorpus1/RosettaCodeData | Task/Hello-world-Text/PASM/hello-world-text.pasm | [
"Info-ZIP"
] |
# transform the aligned text output of aws s3 ls into something useful
# presumes you have the aws CLI
aws s3 ls s3://your-bucket-and-path | lines | each { echo $it | str find-replace ' ' ' ' | str find-replace ' ' ' ' } | split column ' '
| Nu | 3 | x3rAx/nu_scripts | cool_oneliners/parse_aws_s3_ls.nu | [
"MIT"
] |
/* Copyright 2020 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 | pedro-r-marques/tensorflow | tensorflow/core/profiler/utils/derived_timeline.cc | [
"Apache-2.0"
] |
# needs-profiler-support
-include ../tools.mk
all:
$(RUSTC) -g -Z profile test.rs
$(call RUN,test) || exit 1
[ -e "$(TMPDIR)/test.gcno" ] || (echo "No .gcno file"; exit 1)
[ -e "$(TMPDIR)/test.gcda" ] || (echo "No .gcda file"; exit 1)
$(RUSTC) -g -Z profile -Z profile-emit=$(TMPDIR)/abc/abc.gcda test.rs
$(call ... | Makefile | 3 | Eric-Arellano/rust | src/test/run-make-fulldeps/profile/Makefile | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
Rem
Maxim
Maxim evaluates to the value of the largest of the two operators.
End Rem
Print Maxim(10,20) '20
Print Maxim(20,10) '20 | BlitzMax | 2 | jabdoa2/blitzmax | mod/brl.mod/blitz.mod/doc/maxim.bmx | [
"Zlib"
] |
;;
;
; Name: stager_stdin
; Platforms: *BSD, Linux
; Authors: vlad902 <vlad902 [at] gmail.com>
; Authors: skape <mmiller [at] hick.org>
; Version: $Revision: 1656 $
; License:
;
; This file is part of the Metasploit Exploit Framework
; and is subject to the same licenses and cop... | Assembly | 4 | OsmanDere/metasploit-framework | external/source/shellcode/generic/ia32/stager_stdin.asm | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
'oneart.wav' diskin 3.5 0.01 comb 0.5 *
| SourcePawn | 3 | aleatoricforest/Sporth | examples/comb.sp | [
"MIT"
] |
/*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
*/
function double(x) {
return 2 * x;
}
function main() {
5 + double(2) = 4;
}
| Slash | 1 | CAFxX/simplelanguage | language/tests/error/InvalidAssignmentInBinOp.sl | [
"UPL-1.0"
] |
--CONFIG_DIM1 spark.sql.optimizeNullAwareAntiJoin=true
--CONFIG_DIM1 spark.sql.optimizeNullAwareAntiJoin=false
create temporary view tab_a as select * from values (1, 1) as tab_a(a1, b1);
create temporary view tab_b as select * from values (1, 1) as tab_b(a2, b2);
create temporary view struct_tab as select struct(col1... | SQL | 4 | OlegPt/spark | sql/core/src/test/resources/sql-tests/inputs/subquery/in-subquery/in-basic.sql | [
"Apache-2.0"
] |
%run ( | => -1 ):
hput -1 1 -- put handler 1 on channel -1
get -1 -- get on channel -1
store -- store
hput -1 1
get -1
store
load 2
load 1
add
hput -1 2
put -1
hput -1 3
close -1
| AMPL | 1 | prashant007/AMPL | myAMPL/src/Examples/ctest1.ampl | [
"MIT"
] |
Generic block #1
| Twig | 3 | titomtd/Sylius | src/Sylius/Bundle/UiBundle/Tests/Functional/templates/blocks/multipleEvents/genericFirst.txt.twig | [
"MIT"
] |
!https://github.com/tinkerpop/gremlin/raw/master/doc/images/gremlin-kilt.png!
Most Gremlin pipelines are serial in that one step feeds to the next, so on and so forth. There are situations where it is desirable to split a pipeline and thus, have @n@-parallel steps that are later merged back into a serial flow. To supp... | Textile | 3 | echinopsii/net.echinopsii.3rdparty.gremlin | doc/Split-Merge-Pattern.textile | [
"BSD-3-Clause"
] |
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
#
# @ECLASS: mozcoreconf-v5.eclass
# @MAINTAINER:
# Mozilla team <mozilla@gentoo.org>
# @BLURB: core options and configuration functions for mozilla
# @DESCRIPTION:
#
# inherit mozconfig-v6.* or above for mozilla ... | Gentoo Eclass | 5 | NighttimeDriver50000/Sabayon-Packages | local_overlay/eclass/mozcoreconf-v5.eclass | [
"MIT"
] |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports System.Runtime.CompilerServices
Imports Microsoft.CodeAnalysis.VisualBasic.Syntax
Namespace Microsoft.CodeAna... | Visual Basic | 4 | ffMathy/roslyn | src/Workspaces/SharedUtilitiesAndExtensions/Workspace/VisualBasic/Extensions/ObjectCreationExpressionExtensions.vb | [
"MIT"
] |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "electron/shell/browser/extensions/api/streams_private/streams_private_api.h"
#include <memory>
#include <utility>
#include "content/public... | C++ | 4 | TarunavBA/electron | shell/browser/extensions/api/streams_private/streams_private_api.cc | [
"MIT"
] |
/* eslint react/sort-comp: 0 */
import _ from 'underscore';
import React from 'react';
import {
Message,
Actions,
DraftStore,
WorkspaceStore,
ComponentRegistry,
ExtensionRegistry,
InflatesDraftClientId,
CustomContenteditableComponents,
} from 'nylas-exports';
import {OverlaidComposerExtension} from 'nyl... | JSX | 5 | cnheider/nylas-mail | packages/client-app/internal_packages/composer/lib/main.jsx | [
"MIT"
] |
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: mysql-multilib-r1.eclass
# @MAINTAINER:
# Maintainers:
# - MySQL Team <mysql-bugs@gentoo.org>
# - Robin H. Johnson <robbat2@gentoo.org>
# - Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
# - Brian... | Gentoo Eclass | 5 | NighttimeDriver50000/Sabayon-Packages | local_overlay/eclass/mysql-multilib-r1.eclass | [
"MIT"
] |
module org-openroadm-fwdl {
namespace "http://org/openroadm/fwdl";
prefix org-openroadm-fwdl;
import org-openroadm-common-types {
prefix org-openroadm-common-types;
}
organization "Open ROADM MSA";
contact
"OpenROADM.org";
description
"This module contains definitions for System Management... | YANG | 4 | ariscahyadi/onos-1.14-with-indopronos-app | models/openroadm/src/main/yang/org-openroadm-fwdl@2016-10-14.yang | [
"Apache-2.0"
] |
/*##############################################################################
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 | 4 | miguelvazq/HPCC-Platform | ecl/regress/aggregate7.ecl | [
"Apache-2.0"
] |
// Daniel Shiffman
// http://codingtra.in
// http://patreon.com/codingtrain
// Code for: https://youtu.be/CKeyIbT3vXI
import peasy.*;
ArrayList<Firework> fireworks;
PVector gravity = new PVector(0, 0.2);
PeasyCam cam;
void setup() {
fullScreen(P3D);
//size(800, 600, P3D);
//cam = new PeasyCam(this, 1500);
... | Processing | 4 | aerinkayne/website | CodingChallenges/CC_027_FireWorks/Processing/CC_027_FireWorks_3D/CC_027_FireWorks_3D.pde | [
"MIT"
] |
module.exports = function computeSearchTitleProcessor() {
return {
$runAfter: ['ids-computed'],
$runBefore: ['generateKeywordsProcessor'],
$process(docs) {
docs.forEach(doc => {
switch(doc.docType) {
case 'function':
doc.searchTitle = `${doc.name}()`;
break;
... | JavaScript | 4 | coreyscherbing/angular | aio/tools/transforms/angular-api-package/processors/computeSearchTitle.js | [
"MIT"
] |
sleep 1
t ia2 -ae on
| AGS Script | 0 | waltersgrey/autoexechack | AE-Video/HERO3Black/autoexec.ash | [
"MIT"
] |
/* eslint-env jest */
import { join } from 'path'
import {
findPort,
killApp,
launchApp,
nextBuild,
nextStart,
} from 'next-test-utils'
import webdriver from 'next-webdriver'
const appDir = join(__dirname, '../')
let appPort
let app
const runTests = () => {
it('should navigate to a simple rewrite withou... | JavaScript | 4 | blomqma/next.js | test/integration/rewrites-has-condition/test/index.test.js | [
"MIT"
] |
#pragma ExtendedLineups
import "errormessages" as errormessages
import "ast" as ast
inherits prelude.methods
// Checker error
def CheckerFailure is public = Exception.refine "CheckerFailure"
// Helper Map
class entryFrom(key') to(value') is confidential {
def key is public = key'
var value is public := va... | Grace | 4 | Dmitri-2/GraceWebsite | js-simple/sample/dialects/dialect.grace | [
"MIT",
"BSD-3-Clause"
] |
Mozilla/5.0 (Linux; Android 7.0; LG-M470 Build/NRD90U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 7.0; LG-M470 Build/NRD90U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 7.0; LG-M470 Build/NRD... | Text | 0 | 5tr1x/SecLists | Fuzzing/User-Agents/operating-platform/lg-m470.txt | [
"MIT"
] |
open nat
protected theorem my_add_comm : ∀ (n m : ℕ), n + m = m + n
| n 0 := eq.symm (nat.zero_add n)
| n (m+1) :=
suffices succ (n + m) = succ (m + n), from
eq.symm (succ_add m n) ▸ this,
congr_arg succ (my_add_comm n m)
| Lean | 4 | ericrbg/lean | tests/lean/run/new_elab1.lean | [
"Apache-2.0"
] |
"""Tests for hassfest version."""
import pytest
import voluptuous as vol
from script.hassfest.manifest import (
CUSTOM_INTEGRATION_MANIFEST_SCHEMA,
validate_version,
)
from script.hassfest.model import Integration
@pytest.fixture
def integration():
"""Fixture for hassfest integration model."""
integr... | Python | 5 | MrDelik/core | tests/hassfest/test_version.py | [
"Apache-2.0"
] |
require("./file");
require("./FILE"); | JavaScript | 0 | 1shenxi/webpack | test/fixtures/errors/case-sensitive.js | [
"MIT"
] |
*---------------------------------------------------------------------------------
*
* REFORM 73-sector setup
*
*---------------------------------------------------------------------------------
set ns73 "Investing industries in national accounting definition, 73 sectors" /
01000 " 1 Agriculture and horticulture"
... | GAMS | 4 | gemal/MAKRO | Model/Sets/REFORM.Sets.gms | [
"MIT"
] |
2016-03-15 10:32:17 fsociety logged on are we this wonderful morning ;)
2016-03-15 10:34:26 sedman morning
2016-03-15 10:34:56 sedman yes, I have an interview this afternoon, getting my washing done ATM.
2016-03-15 10:35:01 sedman how is your morning?
2016-03-15 10:35:07 sedman at work or WFH?
2016-03-15 11:59:29 < s... | IRC log | 0 | 0x4b1dN/2016-dots | misc/weechat/logs/irc.bitlbee.sedman.weechatlog | [
"MIT"
] |
##! Protocol stats summary (originator)
# Contributed by Reservoir Labs, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any late... | Bro | 5 | reservoirlabs/bro-scripts | supercomputing/protocol-stats.bro | [
"Apache-2.0"
] |
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: python-r1.eclass
# @MAINTAINER:
# Python team <python@gentoo.org>
# @AUTHOR:
# Author: Michał Górny <mgorny@gentoo.org>
# Based on work of: Krzysztof Pawlik <nelchael@gentoo.org>
# @SUPPORTED_EAPIS: 5 ... | Gentoo Eclass | 5 | NighttimeDriver50000/Sabayon-Packages | local_overlay/eclass/python-r1.eclass | [
"MIT"
] |
using Uno;
using Uno.IO;
using Uno.Collections;
using Fuse;
using Uno.Diagnostics;
using Uno.UX;
using Fuse.Controls;
using Fuse.Elements;
namespace Outracks.Simulator.Client
{
using Bytecode;
using Protocol;
using Runtime;
sealed class UserAppState
{
// This list should be up-to-date with https://www.fusetoo... | Uno | 4 | mortend/fuse-studio | Source/Preview/Core/UserAppState.uno | [
"MIT"
] |
push
rotate
sphereDetail 3
scale 1,2,1
sphere 1
pop
rotate 90
push
move 0,wave(1000),0
rotate
box 1.5
pop | Cycript | 3 | marcinbiegun/creativecoding-sketches | Cyril/data/code_retro/6.cy | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.