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 |
|---|---|---|---|---|---|
//
// Copyright (c) 2008, Brian Frank and Andy Frank
// Licensed under the Academic Free License version 3.0
//
// History:
// 17 Nov 08 Brian Frank Creation
//
using compiler
**
** JavaSlot is the implementation of CSlot for a Java member.
**
abstract class JavaSlot : CSlot
{
new make(CType parent, Str name, I... | Fantom | 5 | fanx-dev/fantom | src/compilerJava/fan/JavaSlot.fan | [
"AFL-3.0"
] |
$$ MODE TUSCRIPT
SET DATEN = REQUEST ("http://www.rosettacode.org")
*{daten}
| Turing | 2 | LaudateCorpus1/RosettaCodeData | Task/HTTP/TUSCRIPT/http.tu | [
"Info-ZIP"
] |
{
// 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": "{lightness.0}"
// This can be used when defining colors a... | JSON5 | 4 | pcsubirachs/sats_stream | node_modules/style-dictionary/examples/advanced/transitive-transforms/tokens/lightness.json5 | [
"MIT"
] |
#include <metal_stdlib>
#include "OperationShaderTypes.h"
#include "BlendShaderTypes.h"
using namespace metal;
typedef struct {
float radius;
float scale;
float2 center;
float aspectRatio;
} PinchDistortionUniform;
fragment half4 pinchDistortionFragment(SingleInputVertexIO fragmentInput [[stage_in]],
... | Metal | 4 | zyangSir/GPUImage3 | framework/Source/Operations/PinchDistortion.metal | [
"BSD-3-Clause"
] |
{ lib
, stdenv
, fetchurl
, fetchFromGitLab
, meson
, ninja
, pkg-config
, libsndfile
, libtool
, makeWrapper
, perlPackages
, xorg
, libcap
, alsa-lib
, glib
, dconf
, avahi
, libjack2
, libasyncns
, lirc
, dbus
, sbc
, bluez5
, udev
, openssl
, fftwFloat
, soxr
, speexdsp
, systemd
, webrtc-audio-processing
, gtk3
, ... | Nix | 4 | arjix/nixpkgs | pkgs/servers/pulseaudio/pali.nix | [
"MIT"
] |
---
layout: post
title: "Okasaki's Lazy Queues"
date: 2015-01-28
comments: true
external-url:
author: Ranjit Jhala
published: true
categories: measures
demo: LazyQueue.hs
---
The "Hello World!" example for fancy type systems is probably the sized vector
or list `append` function ("The output has size equal to the *su... | Literate Haskell | 5 | curiousleo/liquidhaskell | docs/blog/2015-01-30-okasakis-lazy-queue.lhs | [
"MIT",
"BSD-3-Clause"
] |
package protobuf;
option java_package = "com.baeldung.protobuf";
option java_outer_classname = "AddressBookProtos";
message Person {
required string name = 1;
required int32 id = 2;
optional string email = 3;
repeated string numbers = 4;
}
message AddressBook {
repeated Person people = 1;
} | Protocol Buffer | 4 | zeesh49/tutorials | protobuffer/src/main/resources/addressbook.proto | [
"MIT"
] |
defmodule Mix.Tasks.Phx.Server do
use Mix.Task
@shortdoc "Starts applications and their servers"
@moduledoc """
Starts the application by configuring all endpoints servers to run.
Note: to start the endpoint without using this mix task you must set
`server: true` in your `Phoenix.Endpoint` configuration.... | Elixir | 4 | faheempatel/phoenix | lib/mix/tasks/phx.server.ex | [
"MIT"
] |
#!/bin/bash
echo "Testing ${docker_image:=grpc_interop_go:dd8fbf3a-4964-4387-9997-5dadeea09835}"
docker run -i --rm=true -w /go/src/google.golang.org/grpc/interop/client --net=host $docker_image bash -c "go run client.go --server_host=grpc-test.sandbox.googleapis.com --server_host_override=grpc-test.sandbox.googleapis.... | Groff | 3 | mpminardi/grpc | tools/interop_matrix/testcases/go__v1.0.5 | [
"Apache-2.0"
] |
<%@ page session="false" language="java" pageEncoding="UTF-8" %>
<%@ page contentType="text/xml; charset=utf-8" trimDirectiveWhitespaces="true" %>
<jsp:useBean id="model" type="com.dianping.cat.report.page.model.Model" scope="request"/>
${model.modelInXml} | Java Server Pages | 0 | woozhijun/cat | cat-home/src/main/webapp/jsp/report/model.jsp | [
"Apache-2.0"
] |
import {Component, HostBinding, NgModule} from '@angular/core';
@Component({
selector: 'my-component',
template: '',
host: {'style': 'width:200px; height:500px', 'class': 'foo baz'}
})
export class MyComponent {
@HostBinding('style') myStyle = {width: '100px'};
@HostBinding('class') myClass = {bar: false};
... | TypeScript | 4 | John-Cassidy/angular | packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/static_and_dynamic.ts | [
"MIT"
] |
--TEST--
Bug #75318 (The parameter of UConverter::getAliases() is not optional)
--EXTENSIONS--
intl
--FILE--
<?php
$rm = new ReflectionMethod('UConverter', 'getAliases');
var_dump($rm->getNumberOfRequiredParameters());
?>
--EXPECT--
int(1)
| PHP | 3 | NathanFreeman/php-src | ext/intl/tests/bug75318.phpt | [
"PHP-3.01"
] |
set optimize_normalize_count_variants = 1;
explain syntax select count(), count(1), count(-1), sum(1), count(null);
| SQL | 4 | pdv-ru/ClickHouse | tests/queries/0_stateless/01706_optimize_normalize_count_variants.sql | [
"Apache-2.0"
] |
Setup:
$ . $TESTDIR/setup.sh
$ cp $TESTDIR/is_binary.pdf .
PDF files are binary. Do not search them by default:
$ ag PDF
[1]
OK, search binary files
$ ag --search-binary PDF
Binary file is_binary.pdf matches.
| Perl | 4 | kknives/the_silver_searcher | tests/is_binary_pdf.t | [
"Apache-2.0"
] |
,loser,convai2_logs,ed_logs
0,convai2_logs,,0.5
1,ed_logs,0.5,
| CSV | 0 | zl930216/ParlAI | tests/crowdsourcing/tasks/acute_eval/test_fast_acute_dataset/test_grid_csv.csv | [
"MIT"
] |
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page session="false" %>
<html>
<head>
<link href="<c:url value="/resources/bootstrap.css" />" rel="stylesheet">
<script type="text/javascript" src="<c:url value="/js/foo.js" />">
</script>
<title>Home</title>
</head>
<body>
<h1>
This is Home!
</h... | Java Server Pages | 3 | zeesh49/tutorials | spring-static-resources/src/main/webapp/WEB-INF/view/home.jsp | [
"MIT"
] |
<div class="{{ type }}-hero-container" style="background-image:url( {% root %}{{ hero-image }} );{% if hero-height %} height: {{ hero-height}}px; {% endif%}">
<div class="hero-container mdl-grid">
<div class="mdl-cell--8-col mdl-cell--6-col-tablet mdl-cell--4-col-phone">
<div class="{{ type }}-title">{{ he... | Liquid | 3 | noahcb/lit | website/src/_includes/partials/hero-element.liquid | [
"Apache-2.0"
] |
.oauth-panel {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
& ul,
& li,
& ol {
list-style: initial;
}
& ul {
margin-left: 6px;
padding-left: 10px;
}
& form {
min-width: 400px;
padding: 40px;
... | CSS | 3 | subramanir2143/Rocket.Chat | app/oauth2-server-config/client/oauth/stylesheets/oauth2.css | [
"MIT"
] |
--TEST--
Bug #72188 (Nested try/finally blocks losing return value)
--FILE--
<?php
function test() {
try {
return 5;
} finally {
try {
echo 1;
} finally {
echo 2;
}
}
}
$a = test();
if($a !== 5) {
echo "FAILED: expected 5, received ", var_export... | PHP | 4 | thiagooak/php-src | Zend/tests/bug72188.phpt | [
"PHP-3.01"
] |
--TEST--
version_compare test
--FILE--
<?php
print "TESTING COMPARE\n";
$special_forms = array("-dev", "a1", "b1", "RC1", "rc1", "", "pl1");
$operators = array(
"lt", "<",
"le", "<=",
"gt", ">",
"ge", ">=",
"eq", "=", "==",
"ne", "<>", "!="
);
test("1", "2");
test("10", "2");
test("1.0", "1.1")... | PHP | 4 | thiagooak/php-src | ext/standard/tests/versioning/version_compare.phpt | [
"PHP-3.01"
] |
#!/usr/bin/env octave
%
% This is an example on how to load a cps file
% and output some information on the model
%
COPASI
%!assert( swig_this(CRootContainer.getRoot()) != 0);
% create a datamodel
dataModel = CRootContainer.addDatamodel();
%!assert( CRootContainer.getDatamodelList().size() == 1);
% the only argument... | Octave | 4 | SzVarga/COPASI | copasi/bindings/octave/examples/example2.oct | [
"Artistic-2.0"
] |
#! parrot
# Copyright (C) 2009-2010, Parrot Foundation.
=head1 Builtins
Variour helper builtins.
=cut
.namespace []
.sub 'lc'
.param string arg
$S0 = downcase arg
.return ($S0)
.end
.sub 'uc'
.param string arg
$S0 = upcase arg
.return ($S0)
.end
.sub 'defined'
.param pmc thing
$I0 ... | Parrot Internal Representation | 5 | winnit-myself/Wifie | compilers/opsc/src/builtins.pir | [
"Artistic-2.0"
] |
sleep 5
t app appmode photo
sleep 3
t app button shutter P
sleep 6
t app button shutter R
| AGS Script | 1 | waltersgrey/autoexechack | ContinuousPhotoHacks/3SPS/10SecsShoots30Photos/autoexec.ash | [
"MIT"
] |
-module(petstore_pet_api).
-export([add_pet/2, add_pet/3,
delete_pet/2, delete_pet/3,
find_pets_by_status/2, find_pets_by_status/3,
find_pets_by_tags/2, find_pets_by_tags/3,
get_pet_by_id/2, get_pet_by_id/3,
update_pet/2, update_pet/3,
update_pet_with_form/2, updat... | Erlang | 5 | derBiggi/swagger-codegen | samples/client/petstore/erlang-client/src/petstore_pet_api.erl | [
"Apache-2.0"
] |
table {
colo\r: \red;
}
| CSS | 0 | mengxy/swc | crates/swc_css_parser/tests/fixture/property/escaped/input.css | [
"Apache-2.0"
] |
0 code_t "proc*"
1 reg32_t "dword"
2 ptr(struct(0:ptr(struct(0:reg32_t,4:reg32_t,8:ptr(struct(0:reg32_t,4:reg32_t,8:ptr(TOP),12:ptr(TOP),16:reg32_t,20:array(uint32_t,15))),12:ptr(TOP),16:reg32_t,20:array(uint32_t,15))),4:ptr(struct(0:reg32_t,4:reg32_t,8:reg32_t,12:reg32_t,16:reg32_t,20:reg32_t,24:reg32_t,28:struct(0:re... | BlitzBasic | 1 | matt-noonan/retypd-data | data/vp8cx_set_ref.exe.decls | [
"MIT"
] |
Module: llvm-write-builder
Copyright: Original Code is Copyright 2014-2018 Gwydion Dylan Maintainers
All rights reserved.
License: See License.txt in this distribution for details.
Warranty: Distributed WITHOUT WARRANTY OF ANY KIND
define function llvm-write-builder
(module :: <llvm-modul... | Dylan | 5 | kryptine/opendylan | sources/app/llvm-as/llvm-write-builder.dylan | [
"BSD-2-Clause"
] |
.svelte-xyz:not(.foo){color:red} | CSS | 1 | Theo-Steiner/svelte | test/css/samples/not-selector/expected.css | [
"MIT"
] |
- view: _task
sql_table_name: salesforce._task
fields:
# dimensions #
- dimension: id
primary_key: true
type: string
sql: ${TABLE}.id
- dimension: account_id
type: string
hidden: true
sql: ${TABLE}.account_id
- dimension_group: activity
type: time
timeframes: [date, week, m... | LookML | 4 | rsharma03/blocks_salesforce | submodules/campaign_attribution/_task.view.lookml | [
"MIT"
] |
package org.lamport.tla.toolbox.test.threading;
import org.aspectj.lang.annotation.SuppressAjWarnings;
/**
* The purpose of this advice is to intercept method execution in the backend
* code - namely all code in the packages tlc2, tla2sany, tla2tex, pcal and util.
*
* It notifies the {@link MonitorAdaptor} about... | AspectJ | 5 | zwergziege/tlaplus | toolbox/org.lamport.tla.toolbox.uitest/src-aj/org/lamport/tla/toolbox/test/threading/MonitorAspect.aj | [
"MIT"
] |
50 3 3 0
0 1 5 1 3 2 4 5 [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0]
1 5 2 40 51 [1 2 2 2 4 2 2 3 3 3 2 2 1 2 2 2 4 4 2 0 8 8 9 13 12] [2 2 1 2 8]
2 5 2 51 17 [5 4 5 5 10] [10 3 10 1 0 4 4 8 1 1 6 7 5 6 0 5 5 2 7 8 19 20 1 3 16]
3 5 2 51 47 [8 4 2 10 5] [1 6 8 15 9 6 4 5 5 0 0 1 4 2 1 4 9 15 4 10 5 ... | Eagle | 3 | klorel/or-tools | examples/data/rcpsp/multi_mode_max_delay/testset_mm50/psp216.sch | [
"Apache-2.0"
] |
// sdk stuff
import structs/[ArrayList, List]
// our stuff
import Version
import rock/frontend/Token
import rock/middle/tinker/[Resolver, Response, Trail, Errors]
IncludeMode: enum {
LOCAL
PATHY
MACRO
}
Define: class {
name, value: String
init: func (=name, =value) {}
}
Include: class {
t... | ooc | 4 | fredrikbryntesson/launchtest | source/rock/middle/Include.ooc | [
"MIT"
] |
#!/bin/bash
set -eu -o pipefail
dir=$(git rev-parse --show-toplevel)
scratch=$(mktemp -d -t tmp.XXXXXXXXXX)
function finish {
rm -rf "$scratch"
}
trap finish EXIT SIGHUP SIGINT SIGTERM
cd "$scratch"
git clone https://github.com/json-schema-org/JSON-Schema-Test-Suite Suite
cp -r Suite/tests/draft4/* "$dir/fixtures... | Shell | 3 | jtlisi/alertmanager | vendor/github.com/go-openapi/validate/update-fixtures.sh | [
"ECL-2.0",
"Apache-2.0"
] |
# GET /
+ Response 200 (text/plain)
Hello World
| API Blueprint | 1 | kylef/Curasow | Sources/example/example.apib | [
"BSD-2-Clause"
] |
2016-02-19 10:33:20 > fs0ciety (~whoami@c27-253-43-52.thoms4.vic.optusnet.com.au) has joined ##systemau
2016-02-19 10:33:20 [10:33]
2016-02-19 10:33:20 - Mode ##systemau [+ns] by cameron.freenode.net
2016-02-19 10:33:20 - Channel ##systemau: 1 nick (1 op, 0 voices, 0 normals)
2016-02-19 10:33:22 - Channel crea... | IRC log | 0 | 0x4b1dN/2016-dots | misc/weechat/logs/irc.freenode.##systemau.weechatlog | [
"MIT"
] |
<!DOCTYPE html>
<!--
Copyright 2011 WebDriver committers
Copyright 2011 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required ... | HTML | 2 | weilandia/selenium | javascript/chrome-driver/test/location_in_view.html | [
"Apache-2.0"
] |
import io.vertx.ceylon.platform {
Verticle,
Container
}
import io.vertx.ceylon.core {
Vertx
}
import io.vertx.ceylon.core.http {
HttpServerRequest
}
import ceylon.json {
Array,
Object
}
import ceylon.promise {
Deferred
}
import io.vertx.ceylon.core.sockjs {
EventBusBridgeHook,
SockJSSocket
}
shared cl... | Ceylon | 4 | vietj/vertx-examples | src/raw/ceylon/eventbusbridge/BridgeServer.ceylon | [
"Apache-2.0"
] |
<% unless klass.includes.empty? then %>
<!-- Included Modules -->
<nav id="includes-section" class="section">
<h3 class="section-header">Included Modules</h3>
<ul class="link-list">
<% klass.each_include do |inc| %>
<% unless String === inc.module then %>
<li><a class="include" href="<%= klass.aref_to inc.... | RHTML | 3 | coralnexus/rdoc-darkfish-template | _sidebar_includes.rhtml | [
"Apache-2.0"
] |
sub fibonacci($n) {
if ($n <= 1) { return $n; }
else {
return fibonacci($n - 1) + fibonacci($n - 2);
}
}
sub MAIN($i) {
say fibonacci($i);
}
| Perl6 | 4 | iabhimanyu/Algorithms | Mathematics/fibonacci/Perl 6/fibonacci.p6 | [
"MIT"
] |
tb.array[0].age=99
tb.list[1].name=test
| INI | 0 | nicchagil/spring-framework | spring-beans/src/test/resources/org/springframework/beans/factory/config/PropertyResourceConfigurerTests-test.properties | [
"Apache-2.0"
] |
#!/bin/bash
#==============================================================================#
# SETUP #
#==============================================================================#
# Start in scripts/integration-tests/ even if run from root dir... | Shell | 4 | fatash89/babel | scripts/integration-tests/e2e-react-native.sh | [
"MIT"
] |
(let (c (Chan/new 1))
(push c 42)
(test (= (len c) 1))
(test (= (pop c) 42)))
(test (= (wait (task () 'foo)) 'foo))
(let _
(task t1 () 35)
(task t2 () 7)
(test (= (+ (wait t1 t2)..) 42)))
(let (v 42)
(task t () (inc v))
(test (= (wait t) 43))
(test (= v 42)))
(let _
(task t (0)
(Task... | Grammatical Framework | 4 | daota2/fffff | v1/test/task.gf | [
"MIT"
] |
module audiostreamerscrobbler.scrobbler.MissedScrobblerHandler
import audiostreamerscrobbler.utils.ThreadUtils
import gololang.concurrent.workers.WorkerEnvironment
import java.lang.Thread
import java.util.{Calendar, TimeZone}
import java.util.concurrent
import java.util.concurrent.atomic.AtomicBoolean
import java.uti... | Golo | 4 | vvdleun/audiostreamerscrobbler | src/main/golo/include/scrobblers/MissedScrobblerThread.golo | [
"MIT"
] |
# generated from colcon_core/shell/template/hook_append_value.sh.em
@{
import os
if os.path.isabs(subdirectory):
value = subdirectory
else:
value = '$COLCON_CURRENT_PREFIX'
if subdirectory:
value += '/' + subdirectory
}@
# function to append a value to a variable
# which uses colons as separators
... | EmberScript | 4 | esteve/colcon-core | colcon_core/shell/template/hook_append_value.sh.em | [
"Apache-2.0"
] |
// This source file is part of the Swift.org open source project
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the li... | Swift | 2 | lwhsu/swift | validation-test/compiler_crashers_2_fixed/0070-sr3515.swift | [
"Apache-2.0"
] |
= Dell XPS 15 9550 =
== Tested Hardware ==
* CPU: Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz
* RAM: 64 GB
* HDD: 1 TiB SSD
* Screen: 15" 4k (3840✕2160)
* Graphics: NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile], with Intel Graphics too.
* Input: Touchscreen and trackpad.
== Notes ==
Also tested with Dell WD1... | MediaWiki | 3 | pmeiyu/nixos-hardware | dell/xps/15-9500/README.wiki | [
"CC0-1.0"
] |
unit Antlr.Runtime.Tests;
interface
uses
Classes,
SysUtils,
TestFramework,
Antlr.Runtime;
type
// Test methods for class IANTLRStringStream
TestANTLRStringStream = class(TTestCase)
strict private
const
NL = #13#10;
GRAMMARSTR = ''
+ 'parser grammar p;' + NL
+ 'prog : WHI... | Pascal | 5 | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | java/java2py/antlr-3.1.3/runtime/Delphi/Sources/Antlr3.Runtime.Tests/Antlr.Runtime.Tests.pas | [
"Apache-2.0"
] |
parser grammar Mrv_interface;
import Mrv_common;
options {
tokenVocab = MrvLexer;
}
a_interface
:
INTERFACE PERIOD
(
a_interface_authtype
| a_interface_banner
| a_interface_bonddevs
| a_interface_bondmiimon
| a_interface_bondmode
| a_interface_dhcp
| a_interface_ifn... | ANTLR | 4 | zabrewer/batfish | projects/batfish/src/main/antlr4/org/batfish/grammar/mrv/Mrv_interface.g4 | [
"Apache-2.0"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | CSS | 4 | sbj42/vscode | src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.css | [
"MIT"
] |
; CLW file contains information for the MFC ClassWizard
[General Info]
Version=1
LastClass=CAboutDlg
LastTemplate=CDialog
NewFileInclude1=#include "stdafx.h"
NewFileInclude2=#include "server.h"
LastPage=0
ClassCount=9
Class1=CServerApp
Class2=CServerDoc
Class3=CServerView
Class4=CMainFrame
Class9=CAbou... | Clarion | 2 | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | ace/tao/examples/mfc/server.clw | [
"Apache-1.1"
] |
Feature: Networking Topology Visualization
In order to increase the ease and understanding of network automation
As as network engineer
I want a visualization of the network topology so that I can
easily understand how the network topology is connected
Scenario: Blank canvas
Given an ansibl... | Cucumber | 4 | gitEdouble/awx | docs/networking.feature | [
"Apache-2.0"
] |
- description: set table custom fields
url: /v1/metadata
status: 200
response:
message: success
query:
type: bigquery_set_table_customization
args:
source: bigquery
table:
dataset: hasura_test
name: table_to_customize
configuration:
custom_name: customized_t... | YAML | 3 | devrsi0n/graphql-engine | server/tests-py/queries/v1/metadata/set_table_customization_bigquery.yaml | [
"Apache-2.0",
"MIT"
] |
<!doctype html>
<script type="module">
import {a, b, c} from './script.js';
output({a, b, c});
</script>
| HTML | 3 | acidburn0zzz/parcel | packages/core/integration-tests/test/integration/html-inline-escape/script.html | [
"MIT"
] |
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | Gnuplot | 4 | yanivru/lucene-solr | lucene/misc/src/java/org/apache/lucene/misc/doc-files/ss.gnuplot | [
"Apache-2.0"
] |
#+TITLE:${1:1234-5678}
#+DATE: `(format-time-string "%Y-%m-%d")`
#+ISSUED: ${2:`(format-time-string "%Y-%m-%d")`}
#+PAID: ${3:`(format-time-string "%Y-%m-%d")`}
#+CURRENCY: ${4:CAD|USD|DKK|GBP}
#+CONTACT: ${5:Contact ID}
#+PROJECT: ${6:Project ID}
| *Description* | *qty* | ... | Org | 4 | leezu/doom-emacs | modules/editor/file-templates/templates/org-mode/__invoice.org | [
"MIT"
] |
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C | 5 | EricRemmerswaal/tensorflow | tensorflow/lite/kernels/internal/reference/broadcast_args.h | [
"Apache-2.0"
] |
mutual
data MyBool = MyFalse | MyTrue
even : Nat -> MyBool
even (S k) = odd k
even Z = MyTrue
odd : Nat -> MyBool
odd (S k) = even k
odd Z = MyFalse
eodd : Nat -> (Bool, Bool)
eodd num = (isEven num, isOdd num)
where
mutual
isEven : Nat -> Bool
isEven (S k) = isOdd k
isEven Z = ... | Idris | 5 | Qqwy/Idris2-Erlang | idris2/tests/idris2/basic020/Mut.idr | [
"BSD-3-Clause"
] |
// Daniel Shiffman
// http://codingtra.in
// http://patreon.com/codingtrain
// Code for: https://youtu.be/l8SiJ-RmeHU
class Planet {
float radius;
float distance;
Planet[] planets;
float angle;
float orbitspeed;
Planet(float r, float d, float o) {
radius = r;
distance = d;
angle = random(TWO_P... | Processing | 4 | aerinkayne/website | CodingChallenges/CC_007_SolarSystemGenerator/Processing/CC_007_SolarSystemGenerator/Planet.pde | [
"MIT"
] |
Apply(ClearAll,UserSyms())
ex = [[1,2],[3,4], [a,b,c,[d,1]]]
## four ways to specify list of replacements
T ReplacePart(ex, [[2,2], 1, [3,4,2]] => zz) == [zz,[3,zz],[a,b,c,[d,zz]]]
T ReplacePart(ex, 1 => zz ) == [zz,[3,4],[a,b,c,[d,1]]]
T ReplacePart(ex, [2,2] => zz) == [[1,2],[3,zz],[a,b,c,[d,1]]]
T ReplacePart(ex... | Objective-J | 4 | UnofficialJuliaMirrorSnapshots/Symata.jl-a906b1d5-d016-55c4-aab3-8a20cba0db2a | symata_test/part_test.sj | [
"MIT"
] |
package com.baeldung.spring.cloud.connectors.heroku.product;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transac... | Java | 4 | DBatOWL/tutorials | spring-cloud/spring-cloud-connectors-heroku/src/main/java/com/baeldung/spring/cloud/connectors/heroku/product/ProductService.java | [
"MIT"
] |
-- Copyright 2014-2015 The Howl Developers
-- License: MIT (see LICENSE.md at the top-level directory of the distribution)
timer = howl.timer
{:get_monotonic_time} = require 'ljglibs.glib'
describe 'timer', ->
setup -> set_howl_loop!
describe 'asap(f, ...)', ->
it 'invokes <f> once as part of the next main lo... | MoonScript | 5 | jasperpilgrim/howl | spec/timer_spec.moon | [
"MIT"
] |
\chapter{图}
无向图的节点定义如下:
\begin{Code}
// 无向图的节点
struct UndirectedGraphNode {
int label;
vector<UndirectedGraphNode *> neighbors;
UndirectedGraphNode(int x) : label(x) {};
};
\end{Code}
\section{Clone Graph} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\label{sec:clone-graph}
\subsubsection{描述}
Clone an undirected gra... | TeX | 5 | yuliping/LeetCode | C++/chapGraph.tex | [
"BSD-3-Clause"
] |
/*
Copyright © 2011 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, modify... | Opa | 5 | Machiaweliczny/oppailang | lib/stdlib/tools/markdown/markdown.opa | [
"MIT"
] |
(set *timestamp* 0)
(define assq
{ A --> (list (A * B)) --> (maybe B) }
X [(@p X Y) | _] -> [just Y]
X [_ | Ps] -> (assq X Ps)
_ [] -> nothing)
(define maybe
{ B --> (A --> B) --> (maybe A) --> B }
D F nothing -> D
_ F [just X] -> (F X))
(define reified-name?
{ string --> boolean }... | Shen | 3 | mthom/shen-minikanren | minikanren.shen | [
"BSD-3-Clause"
] |
# frozen_string_literal: true
class UnencryptedBook < ActiveRecord::Base
self.table_name = "encrypted_books"
end
class EncryptedBook < ActiveRecord::Base
self.table_name = "encrypted_books"
encrypts :name, deterministic: true
end
class EncryptedBookWithDowncaseName < ActiveRecord::Base
self.table_name = "en... | Ruby | 4 | jstncarvalho/rails | activerecord/test/models/book_encrypted.rb | [
"MIT"
] |
extends Area2D
const MOTION_SPEED = 150
export var left = false
var _motion = 0
var _you_hidden = false
onready var _screen_size_y = get_viewport_rect().size.y
func _process(delta):
# Is the master of the paddle.
if is_network_master():
_motion = Input.get_action_strength("move_down") - Input.get_action_streng... | GDScript | 4 | jonbonazza/godot-demo-projects | networking/multiplayer_pong/logic/paddle.gd | [
"MIT"
] |
size: 2048px 800px;
dpi: 240;
limit-x: -12 22;
limit-y: -35 55;
axes {
position: bottom left;
}
lines {
data-x: csv("test/testdata/irregular_data1.csv" x);
data-y: csv("test/testdata/irregular_data1.csv" y);
color: 4;
marker-size: 3pt;
}
lines {
data-x: csv("test/testdata/irregular_data2.csv" x);
data-... | CLIPS | 4 | asmuth-archive/travistest | test/examples/charts_custom_irregular_data.clp | [
"Apache-2.0"
] |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This file is part of Logtalk <https://logtalk.org/>
% Copyright (c) 2010, Victor Lagerkvist
% SPDX-License-Identifier: BSD-3-Clause
%
% Redistribution and use in source and binary forms, with or without
% modification, are permitted pr... | Logtalk | 5 | PaulBrownMagic/logtalk3 | contributions/verdi_neruda/bfs_interpreter.lgt | [
"Apache-2.0"
] |
Scriptname CAMTEST_OverShoulderME extends activemagiceffect
{Play with camera effects}
;--=== Imports ===--
Import Utility
Import Game
;--=== Properties ===--
Actor Property PlayerRef Auto
ActorBase Property CAMTEST_CameraActor Auto
;--=== Variables ===--
Actor Player
Actor Camera
Actor Target
Float PosX
Flo... | Papyrus | 3 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Papyrus/CAMTEST_OverShoulderME.psc | [
"MIT"
] |
const r = await fetch("https://google.com");
console.log(r.status);
| TypeScript | 3 | petamoriken/deno | cli/tests/testdata/deno_land_unsafe_ssl.ts | [
"MIT"
] |
--# -path=.:../abstract:../common
concrete DocumentationTha of Documentation = CatTha ** open
HTML in {
lincat
Inflection = {t : Str; s1,s2 : Str} ;
Definition = {s : Str} ;
Document = {s : Str} ;
Tag = {s : Str} ;
lin
NoDefinition t = {s=t.s};
MkDefinition t d = {s="<p>"++t.s++d.s++"</p>... | Grammatical Framework | 3 | daherb/gf-rgl | src/thai/DocumentationTha.gf | [
"BSD-3-Clause"
] |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Scheduler
#
# A service client - single point of access to the REST API.
#
class SchedulerManagementClient < MsRestAzure:... | Ruby | 4 | sbj42/vscode | extensions/vscode-colorize-tests/test/colorize-fixtures/test.rb | [
"MIT"
] |
17379
1737.9
173.79
17.379
1.7379
16693
1669.3
166.93
16.693
1.6693
16116
1611.6
161.16
16.116
1.6116
15713
1571.3
157.13
15.713
1.5713
11895
1189.5
118.95
11.895
1.1895
10409
1040.9
104.09
10.409
1.0409
10252
1025.2
102.52
10.252
1.0252
9853
985.3
98.53
9.853
9748
974.8
97.48
9.748
9492
949.2
94.92
9.492
9190
919
91.9... | Logos | 0 | Crestwave/goawk | testdata/output/t.3.x | [
"MIT"
] |
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.PARAMETER})
@kotlin.annotation.Target(allowedTargets = {kotlin.annotation.Annotatio... | Java | 4 | Mu-L/kotlin | compiler/testData/asJava/ultraLightClasses/annotations.java | [
"ECL-2.0",
"Apache-2.0"
] |
import "ecere"
class ControlsSample : Window
{
text = "Common Controls Sample";
borderStyle = fixed;
hasMaximize = true;
hasMinimize = true;
hasClose = true;
tabCycle = true;
size = { 280, 100 };
Button button1
{
this, caption = "Push Me", altP, isDefault = true, position = { 32, 40 }... | eC | 3 | N-eil/ecere-sdk | samples/guiAndGfx/Controls/controls.ec | [
"BSD-3-Clause"
] |
module B where
x :: Boolean
x = false
| PureScript | 2 | metaleap/purs-with-dump-coreimp | examples/failing/ExportConflictValue/B.purs | [
"BSD-3-Clause"
] |
__includes["Code.nls"]
@#$#@#$#@
GRAPHICS-WINDOW
220
10
733
524
-1
-1
5.0
1
10
1
1
1
0
1
1
1
0
100
0
100
1
1
1
ticks
30.0
BUTTON
10
10
80
50
NIL
setup
NIL
1
T
OBSERVER
NIL
NIL
NIL
NIL
1
BUTTON
90
10
160
50
NIL
go
T
1
T
OBSERVER
NIL
NIL
NIL
NIL
1
@#$#@#$#@
## WHAT IS IT?
## HOW IT WORKS
## HOW TO USE IT
@#$#@#$#@
d... | NetLogo | 0 | mlange-42/yarner | examples/netlogo/nlogo/Model.nlogo | [
"MIT"
] |
;;;
;;; Parse user given s-expressions in commands
;;;
(in-package #:pgloader.parser)
(defun not-doublequote (char)
(not (eql #\" char)))
(defun symbol-character-p (character)
(not (member character '(#\Space #\( #\)))))
(defun symbol-first-character-p (character)
(and (symbol-character-p character)
(n... | Common Lisp | 4 | micaelle/pgloader | src/parsers/command-sexp.lisp | [
"PostgreSQL"
] |
/*
* Copyright 2021 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/licens... | C | 4 | pmesnier/openssl | test/user_property_test.c | [
"Apache-2.0"
] |
--TEST--
Delimiters crash test
--FILE--
<?php
var_dump(preg_match('', ''));
var_dump(preg_match(' ', ''));
var_dump(preg_match('@@', ''));
var_dump(preg_match('12', ''));
var_dump(preg_match('<>', ''));
var_dump(preg_match('~a', ''));
var_dump(preg_match('@\@\@@', '@@'));
var_dump(preg_match('//z', '@@'));
var_du... | PHP | 3 | guomoumou123/php5.5.10 | ext/pcre/tests/delimiters.phpt | [
"PHP-3.01"
] |
# is and of are not in turtle
@prefix : <http://example.org/stuff/1.0/> .
:a is :b of :c .
| Turtle | 2 | joshrose/audacity | lib-src/lv2/serd/tests/bad/bad-06.ttl | [
"CC-BY-3.0"
] |
let mut x = 0;
while true {
x += 1;
if x == 5 {
break;
}
}
println(x);
let mut y = 0;
while y < 10 {
if y == 4 {
y += 1;
continue;
}
y = y + 2;
}
println(y);
let mut z = 0;
while z < 1000 {
while z < 7 {
z += 1;
if z > 5 {
break;
... | Ox | 3 | 54k1/oxide-lang | tests/scripts/while.ox | [
"MIT"
] |
#
# @expect="/nlist[@name='profile']/nlist[@name='h']/nlist[@name='a']/long[@name='y']=10 and /nlist[@name='profile']/nlist[@name='i']/string[@name='b']='bb'"
# @format=pan
#
object template default25;
type f = {
'x' ? long
'y' ? long
} = dict('y', 10);
type g = {
'a' ? f
'b' ? string
} = dict('a', undef)... | Pan | 2 | aka7/pan | panc/src/test/pan/Functionality/default/default25.pan | [
"Apache-2.0"
] |
<html>
<title><%= @title || default_title() %></title>
<%= @inner_content %>
</html>
| HTML+EEX | 2 | faheempatel/phoenix | test/fixtures/templates/layout/app.html.eex | [
"MIT"
] |
library ieee;
use ieee.std_logic_1164.all;
-- We don't have VHDL primitives yet, so declare them in examples for now.
package components is
component OSCH
generic (
NOM_FREQ : string := "2.08"
);
port(
STDBY : in std_logic;
OSC : out std_logic;
SEDSTDBY : out std_logic
);
end component;
end c... | VHDL | 4 | antmicro/nextpnr | machxo2/examples/prims.vhd | [
"0BSD"
] |
-- This code is made available 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 in writing, software
... | PigLatin | 4 | adineskumar/alanfgates-programmingpig | examples/ch6/macro.pig | [
"Apache-2.0"
] |
/*
* Copyright 2002-2017 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 | nicchagil/spring-framework | spring-aop/src/main/java/org/springframework/aop/config/AbstractInterceptorDrivenBeanDefinitionDecorator.java | [
"Apache-2.0"
] |
#version 3.6;
// By Jonathan Hunt <jonathan@xlcus.com>
#include "functions.inc"
/****************************************************************************/
#declare FeatureRadiosity = true; // Set to true to enable radiosity.
#declare FeatureFocalBlur = true; // Set to true to enable focal blur.
#declare Featur... | POV-Ray SDL | 5 | SDRausty/TermuxPovray | pebbles/pebbles.pov | [
"Apache-2.0"
] |
"""Tests for the ness_alarm component."""
| Python | 0 | domwillcode/home-assistant | tests/components/ness_alarm/__init__.py | [
"Apache-2.0"
] |
TDTxtLeafNode {
#name : 'analysis',
#contents : Text {
#string : '==============================\r==============================\r',
#runs : RunArray {
#runs : [
62
],
#values : [
[
TextEmphasis {
#emphasisCode : 1,
#setMode : true
}
]
],
#lastIndex : 32,
#lastR... | STON | 2 | dalehenrich/filetree | tode/analysis.ston | [
"MIT"
] |
staload "libats/ML/SATS/string.sats"
staload "SATS/error.sats"
implement redundant_cli_flag () =
prerr!("\33[33mWarning:\33[0m Flag -s/--no-style has no effect when --html is not present\n")
implement bad_file (s) =
if s != "" then
prerr!("\33[33mWarning:\33[0m could not open file at " + s + "\n")
else
... | ATS | 4 | lambdaxymox/polyglot | DATS/error.dats | [
"BSD-3-Clause"
] |
package com.baeldung.gson.primitives.models;
public class BooleanExample {
public boolean value;
public String toString() {
return "{boolean: " + value + "}";
}
}
| Java | 4 | DBatOWL/tutorials | gson/src/main/java/com/baeldung/gson/primitives/models/BooleanExample.java | [
"MIT"
] |
server {
server_name _;
listen *:80 default_server;
listen [::]:80 default_server;
root {{NGINX_DOCROOT}}/default;
server_tokens off;
server_name_in_redirect off;
limit_req ... | ApacheConf | 3 | ivanli/docker-nginx-2 | conf/nginx/sites-available/default.vhost | [
"MIT"
] |
import numpy as np
import pytest
from pandas import (
Series,
bdate_range,
date_range,
period_range,
)
import pandas._testing as tm
class TestBetween:
# TODO: redundant with test_between_datetime_values?
def test_between(self):
series = Series(date_range("1/1/2000", periods=10))
... | Python | 5 | ajayiagbebaku/NFL-Model | venv/Lib/site-packages/pandas/tests/series/methods/test_between.py | [
"MIT"
] |
/*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <Kernel/FileSystem/Inode.h>
#include <Kernel/Memory/PrivateInodeVMObject.h>
namespace Kernel::Memory {
ErrorOr<NonnullRefPtr<PrivateInodeVMObject>> PrivateInodeVMObject::try_create_with_inode(Inode... | C++ | 3 | r00ster91/serenity | Kernel/Memory/PrivateInodeVMObject.cpp | [
"BSD-2-Clause"
] |
{% extends 'tests/_data/fixtures/views/templates/a.volt' %}{% block body %}[B]{% endblock %}
| Volt | 1 | tidytrax/cphalcon | tests/_data/fixtures/views/templates/b.volt | [
"BSD-3-Clause"
] |
- dashboard: transactions_conversions_and_revenue
title: Transactions, Conversions, and Revenue
layout: newspaper
elements:
- name: Top Acquisition Sources by Revenue
title: Top Acquisition Sources by Revenue
model: google_analytics_block
explore: ga_sessions
type: looker_line
fields:
- ... | LookML | 3 | thomasbanghart/testing-remote-dep | lookml_dashboards/transactions_conversions_revenue.dashboard.lookml | [
"MIT"
] |
<cfscript>
new tests.packagecase.packagecase_nokC();
</cfscript>
| ColdFusion CFC | 0 | tonym128/CFLint | src/test/resources/com/cflint/tests/PackageCase/packagecase_nokC.cfc | [
"BSD-3-Clause"
] |
<cfoutput>
<!--- Reset --->
#startFormTag(action="create", id="pwresetForm")#
#textFieldTag(name="email", label="Email Address", type="email", required="true")#
<p class="help-block append">Enter your e-mail address to receive instructions for resetting your password.</p>
<div class="btn-group">
#submitTag(v... | ColdFusion | 4 | fintecheando/RoomBooking | views/passwordresets/_create.cfm | [
"Apache-1.1"
] |
module Issue4022 where
open import Common.Prelude
open import Agda.Builtin.Equality
open import Agda.Builtin.Char.Properties
open import Agda.Builtin.String.Properties
open import Agda.Builtin.Float.Properties
open import Issue4022.Import
| Agda | 2 | cruhland/agda | test/interaction/Issue4022.agda | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.