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 |
|---|---|---|---|---|---|
#!/usr/bin/env bash
set -e
set -o pipefail
RESULT_SNAP=$(find ./ -name "*.snap")
sudo snap install "$RESULT_SNAP" --dangerous --classic
/snap/bin/nvim --version
SHA256=$(sha256sum "$RESULT_SNAP")
echo "SHA256: ${SHA256} ."
| Shell | 3 | uga-rosa/neovim | ci/snap/after_success.sh | [
"Vim"
] |
<transformed subject="{mail/subject}">
{.}
</transformed> | XQuery | 1 | vkasala/camel-quarkus | integration-tests/saxon/src/main/resources/transform.xquery | [
"Apache-2.0"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M14 2H4v20h16V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"
}), 'NoteAddSharp'); | JavaScript | 3 | good-gym/material-ui | packages/material-ui-icons/lib/esm/NoteAddSharp.js | [
"MIT"
] |
a>b>div.svelte-xyz{color:red} | CSS | 1 | vatro/svelte | test/css/samples/global-with-child-combinator-3/expected.css | [
"MIT"
] |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX : <http://example.org/test#>
SELECT ?x
WHERE {
?x a [
a owl:Class ;
owl:intersectionOf (
:A
[
a owl:Class ;
owl:unionOf ( :B :C )
... | SPARQL | 3 | yanaspaula/rdf4j | testsuites/sparql/src/main/resources/testcases-sparql-1.1-w3c/entailment/simple7.rq | [
"BSD-3-Clause"
] |
#############################################################################
## v # The Coq Proof Assistant ##
## <O___,, # INRIA - CNRS - LIX - LRI - PPS ##
## \VV/ # ##
## //... | Coq | 4 | k16shikano/cpdt-japanese | Makefile.coq | [
"MIT"
] |
Queens New count,flip,row,sol
Set sol=0
For row(1)=1:1:4 Do try(2) ; Not 8, the other 4 are symmetric...
;
; Remove symmetric solutions
Set sol="" For Set sol=$Order(sol(sol)) Quit:sol="" Do
. New xx,yy
. Kill sol($Translate(sol,12345678,87654321)) ; Vertical flip
. Kill sol($Reverse(sol)) ; Horizontal flip
... | M | 4 | LaudateCorpus1/RosettaCodeData | Task/N-queens-problem/MUMPS/n-queens-problem-1.mumps | [
"Info-ZIP"
] |
#N canvas 591 65 452 454 12;
#X floatatom 225 125 0 0 0 0 - - -;
#X floatatom 189 125 0 0 0 0 - - -;
#X obj 170 97 notein;
#X floatatom 153 125 0 0 0 0 - - -;
#X floatatom 342 125 0 0 0 0 - - -;
#X floatatom 306 125 0 0 0 0 - - -;
#X floatatom 270 125 0 0 0 0 - - -;
#X obj 290 97 ctlin;
#X floatatom 96 125 0 0 0 0 - - ... | Pure Data | 2 | mxa/pure-data | doc/2.control.examples/17.PART3.midi.pd | [
"TCL"
] |
; inherits: ecma
(required_parameter (identifier) @definition)
(optional_parameter (identifier) @definition)
; x => x
(arrow_function
parameter: (identifier) @definition.parameter)
;; ({ a }) => null
(required_parameter
(object_pattern
(shorthand_property_identifier_pattern) @definition.parameter))
;; ({ a: ... | Scheme | 3 | hmac/nvim-treesitter | queries/typescript/locals.scm | [
"Apache-2.0"
] |
// 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 <Arduino.h>
// This Arduino sketch is used for manual testing with the browser test
// SerialApiTest.SerialExtension. We have tested with Ar... | Arduino | 4 | zealoussnow/chromium | chrome/test/data/extensions/api_test/serial/real_hardware/serial_arduino_test.ino | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
INSERT INTO movie(id, title, director, rating, duration) VALUES(1, 'Godzilla: King of the Monsters', ' Michael Dougherty', 'PG-13', 132);
INSERT INTO movie(id, title, director, rating, duration) VALUES(2, 'Avengers: Endgame', 'Anthony Russo', 'PG-13', 181);
INSERT INTO movie(id, title, director, rating, duration) VALUE... | SQL | 1 | DBatOWL/tutorials | persistence-modules/spring-data-jpa-repo-2/src/test/resources/test-movie-data.sql | [
"MIT"
] |
//===--- AsyncStream.cpp - Multi-resume locking interface -----------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | C++ | 3 | ldhough/swift | stdlib/public/Concurrency/AsyncStream.cpp | [
"Apache-2.0"
] |
// Copyright 2009 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.
#include "textflag.h"
TEXT _rt0_386_freebsd(SB),NOSPLIT,$0
JMP _rt0_386(SB)
TEXT _rt0_386_freebsd_lib(SB),NOSPLIT,$0
JMP _rt0_386_lib(SB)
TEXT main(SB),NOS... | GAS | 2 | Havoc-OS/androidprebuilts_go_linux-x86 | src/runtime/rt0_freebsd_386.s | [
"BSD-3-Clause"
] |
[CustomMessages]
pt_br.IDP_FormCaption =Baixando arquivos
pt_br.IDP_FormDescription =Por favor aguarde, enquanto recebe arquivos adicionais...
pt_br.IDP_TotalProgress =Progresso total
pt_br.IDP_CurrentFile =Arquivo atual
pt_br.IDP_File =Arquivo:
pt_br.IDP_Speed ... | Inno Setup | 2 | lemalcs/Inno-download-plugin | unicode/idplang/brazilianPortuguese.iss | [
"Zlib"
] |
/*
* This file implements a fast L3 UDP packet generatior
*
* This can be used to test the throughput of a DUT, using a receiver-l3.click
* on some other end.
*
*
* A launch line would be :
* sudo bin/click -c 0x1 -n 4 -- conf/fastclick/pktgen-l3.click L=60 S=1000000 N=100
*/
//Default values for packet le... | Click | 4 | BorisPis/asplos22-nicmem-fastclick | conf/pktgen/pktgen-l3.click | [
"BSD-3-Clause-Clear"
] |
CREATE TABLE `enum-set` (
`enum` ENUM(
'g00','g01','g02','g03','g04','g05','g06','g07','g08','g09','g0a','g0b','g0c','g0d','g0e','g0f',
'g10','g11','g12','g13','g14','g15','g16','g17','g18','g19','g1a','g1b','g1c','g1d','g1e','g1f',
'g20','g21','g22','g23','g24','g25','g26','g27','g28','g29'... | SQL | 4 | imtbkcat/tidb-lightning | tests/various_types/data/vt.enum-set-schema.sql | [
"Apache-2.0"
] |
#pragma once
namespace Envoy {
class TestRunner {
public:
static int RunTests(int argc, char** argv);
};
} // namespace Envoy
| C | 4 | dcillera/envoy | test/test_runner.h | [
"Apache-2.0"
] |
[Desktop Entry]
Name=Pixelorama
Comment=A free & open-source 2D sprite editor, made with the Godot Engine!
Exec=godot --main-pack Pixelorama.pck --maximized
Icon=icon.png
Terminal=false
Type=Application
X-Ubuntu-Touch=true
| desktop | 2 | sksdutra/Pixelorama | Misc/Clickable/click/pixelorama.desktop | [
"MIT"
] |
package com.baeldung.okta.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.okta.sdk.client.Client;... | Java | 4 | DBatOWL/tutorials | spring-security-modules/spring-security-okta/src/main/java/com/baeldung/okta/controller/AdminController.java | [
"MIT"
] |
fun helloworld("") = "Hello World!"
| helloworld(name : string) = "Hello " ^ name ^ "!";
helloworld("");
helloworld("Hacktoberfest 2018"); | Standard ML | 4 | PushpneetSingh/Hello-world | SMLNJ/helloworld.sml | [
"MIT"
] |
--TEST--
php_ini_scanned_files() function
--FILE--
<?php
$inifile = __DIR__.DIRECTORY_SEPARATOR.'loaded.ini';
$php = sprintf('"%s" -c "%s"', getenv('TEST_PHP_EXECUTABLE'), $inifile);
$scandir = __DIR__.DIRECTORY_SEPARATOR.'scandir';
// Empty env value disables any config option
putenv('PHP_INI_SCAN... | PHP | 3 | thiagooak/php-src | ext/standard/tests/ini_info/php_ini_scanned_files.phpt | [
"PHP-3.01"
] |
#include "CsvReader.h"
/** The default constructor of the CSV reader Class */
CsvReader::CsvReader(const string &path, char separator){
_file.open(path.c_str(), ifstream::in);
_separator = separator;
}
/* Read a plane text file with .ply format */
void CsvReader::readPLY(vector<Point3f> &list_vertex, vector<v... | C++ | 4 | thisisgopalmandal/opencv | samples/cpp/tutorial_code/calib3d/real_time_pose_estimation/src/CsvReader.cpp | [
"BSD-3-Clause"
] |
# 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 | 4 | deepneuralmachine/google-research | dense_representations_for_entity_retrieval/mel/wikinews_extractor/run_test_oss.sh | [
"Apache-2.0"
] |
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
CRATES="
aho-corasick-0.6.4
bitflags-0.9.1
bitflags-1.0.1
cfg-if-0.1.2
diff-0.1.11
dtoa-0.4.2
env_logger-0.4.3
extprim-1.5.1
fuchsia-zircon-0.3.3
fuchsia-zircon-sys-0.3.3
getopts-0.2.17
itoa-0.3.4
kernel3... | Gentoo Ebuild | 4 | gentoo/gentoo-rust | dev-util/rustfmt/rustfmt-0.10.0.ebuild | [
"BSD-3-Clause"
] |
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.4;
contract Logs {
event Event(uint256 indexed first, uint256 indexed second);
constructor() {
emit Event(1, 2);
}
function logNTimes(uint8 n) public {
for (uint8 i = 0; i < n; i++) {
emit Event(i, i);
}
}
}
| Solidity | 4 | Shiba-Chain/ganache | src/chains/ethereum/ethereum/tests/api/eth/contracts/Logs.sol | [
"MIT"
] |
--TEST--
__set_state first parameter must be an array
--FILE--
<?php
class Foo {
public static function __set_state(int $properties) {}
}
?>
--EXPECTF--
Fatal error: Foo::__set_state(): Parameter #1 ($properties) must be of type array when declared in %s on line %d
| PHP | 2 | NathanFreeman/php-src | Zend/tests/magic_methods_020.phpt | [
"PHP-3.01"
] |
/*
Copyright © 2011, 2012 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, ... | Opa | 5 | Machiaweliczny/oppailang | lib/stdlib/apis/mongo/replset.opa | [
"MIT"
] |
// @esModuleInterop: true
// @Filename: foo.d.ts
declare function foo(): void;
declare namespace foo {}
export = foo;
// @Filename: index.ts
import * as foo from "./foo";
foo.default;
| TypeScript | 4 | nilamjadhav/TypeScript | tests/cases/compiler/esModuleInteropImportNamespace.ts | [
"Apache-2.0"
] |
#*****************************************************************************
# *
# Make file for VMS *
# Author : J.Jansen (joukj@hrem.stm.tudelft.nl) *
# Da... | Module Management System | 3 | madanagopaltcomcast/pxCore | examples/pxScene2d/external/WinSparkle/3rdparty/wxWidgets/samples/drawing/descrip.mms | [
"Apache-2.0"
] |
# DO NOT EDIT THIS FILE. This file will be overwritten when re-running go-raml.
using import "EnumAdminClearanceLevel.capnp".EnumAdminClearanceLevel;
@0xafe0adbd57c12353;
struct Admin {
clearanceLevel @0 :EnumAdminClearanceLevel;
}
| Cap'n Proto | 3 | mrpotes/go-raml | codegen/capnp/fixtures/struct/vanilla/Admin.capnp | [
"BSD-2-Clause"
] |
<body>
<h1>HTML File b</h1>
</body>
| HTML | 1 | zowesiouff/parcel | packages/core/integration-tests/test/integration/html-pkg-source-array/b.html | [
"MIT"
] |
<%= form_for @changeset, @action, [multipart: true, class: "ui form"], fn f -> %>
<div class="field required <%= AdminHelpers.error_class(f, :name) %>">
<%= label(f, :name, "Name") %>
<%= text_input(f, :name, placeholder: "The Kubernetes") %>
<%= AdminHelpers.error_message(f, :name) %>
</div>
<div ... | HTML+EEX | 4 | gustavoarmoa/changelog.com | lib/changelog_web/templates/admin/metacast/_form.html.eex | [
"MIT"
] |
// input: []
// output: false
package {
public class EqualsOperator {
public static function main():Boolean{
return 1 == 2;
}
}
}
| ActionScript | 2 | hackarada/youtube-dl | test/swftests/EqualsOperator.as | [
"Unlicense"
] |
=== MQL4/Libraries/OTMql4/ZmqSendReceive.mq4 ===
Parent: [[Home]]
| Creole | 2 | lionelyoung/OTMql4Zmq | wiki/ZmqSendReceive.creole | [
"MIT"
] |
$(function () {
$('time[data-content]').each(function () {
let tz_display = $(this).data('content');
$(this).text(luxon.DateTime.fromSeconds(tz_display).toLocaleString(luxon.DateTime.TIME_SIMPLE));
});
});
| HTML+PHP | 3 | ikafridi/PlayCast | templates/admin/relays/index.js.phtml | [
"Apache-2.0"
] |
newSeq[int]()
system.newSeq[int]()#[!]#
offsetOf[int]()
discard """
$nimsuggest --tester $file
>highlight $1
highlight;;skType;;1;;7;;3
highlight;;skProc;;1;;0;;6
highlight;;skProc;;1;;0;;6
highlight;;skType;;1;;7;;3
highlight;;skProc;;1;;0;;6
highlight;;skType;;2;;14;;3
highlight;;skProc;;2;;7;;6
highlight;;skProc;;2... | Nimrod | 1 | JohnAD/Nim | nimsuggest/tests/tgeneric_highlight.nim | [
"MIT"
] |
//usr/bin/env myatscc "$0"; exit
(* ****** ****** *)
//
(*
##myatsccdef=\
patsopt --constraint-ignore --dynamic $1 | \
tcc - -run -DATS_MEMALLOC_LIBC -I${PATSHOME} -I${PATSHOME}/ccomp/runtime -L${PATSHOME}/ccomp/atslib/lib -latslib
*)
//
(* ****** ****** *)
#include "./myread.dats"
(* ****** ****** *)
//
#define
NDX1... | ATS | 4 | ats-lang/ATS-CodeBook | RECIPE/CSV-parsing/NDX100.dats | [
"MIT"
] |
@prefix : <http://www.w3.org/2013/TurtleTests/> .
[ :p :o1,:2 ] .
:s :p :o .
| Turtle | 2 | joshrose/audacity | lib-src/lv2/serd/tests/TurtleTests/turtle-syntax-bnode-09.ttl | [
"CC-BY-3.0"
] |
# Singly-linked list
#
# A list consists of a head element pointer and a tail element pointer.
# An element consists of a value and a next element pointer.
#
# TODO: make it doubly-linked so that lstpop() is O(1)?
# TODO: insert element at given index
# TODO: retrieve element at given index
# TODO: delete element at gi... | Slash | 5 | jes/scamp-cpu | compiler/test/list.sl | [
"Unlicense"
] |
#N canvas 72 23 799 373 12;
#X symbolatom 228 68 10 0 0 0 - - -, f 10;
#X obj 37 184 osc~;
#X obj 526 88 hsl 128 15 0 127 0 0 empty empty hslider 2 -8 0 10 -204786
-258113 -1 0 0;
#X obj 37 222 dac~;
#X floatatom 523 116 5 0 0 0 - - -, f 5;
#X obj 375 86 vsl 15 128 0 127 0 0 empty empty vslider 17 2 0 10 -261234
-4034 ... | Pure Data | 3 | mxa/pure-data | doc/7.stuff/tools/sizingtest.pd | [
"TCL"
] |
#%RAML 1.0
title: Advanced Rest Client
version: v2
baseUri: https://api.advancedrestclient.com/{version}
description: |
A backend API for Advanced Rest Client APP.
The API is based on Google Cloud Endpoinds. Therefore OAuth2 authentication using Google account is required.
All request are restricted to the author... | RAML | 5 | Acidburn0zzz/ChromeRestClient | Server API/api.raml | [
"Apache-2.0"
] |
<%= link(SharedHelpers.domain_name(@item.url), to: SharedHelpers.domain_url(@item.url), title: @author.name, rel: "external") %>
| HTML+EEX | 2 | gustavoarmoa/changelog.com | lib/changelog_web/templates/news_item/source/_name_author.html.eex | [
"MIT"
] |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {browser, by, element} from 'protractor';
import {verifyNoBrowserErrors} from '../../../test-utils';
describe... | TypeScript | 4 | raghavendramohan/angular | packages/examples/service-worker/push/e2e_test/push_spec.ts | [
"MIT"
] |
fun showList l = case l of
[] => "[]"
| h :: t => strcat (strcat (show h) " :: ") (showList t)
fun rpcFunc l : transaction string =
case l of h :: _ => return (showList h) | [] => return "[]"
fun main () : transaction page = return <xml><body>
<button onclick={
s <- rpc (rpcFunc (("foo" :: []) :: []));... | UrWeb | 4 | apple314159/urweb | tests/rpcList2.ur | [
"BSD-3-Clause"
] |
grammar t058rewriteAST42;
options {language=JavaScript;output=AST;}
a : type ID (',' ID)* ';' -> ^(type ID)+ ;
type : 'int' ;
ID : 'a'..'z'+ ;
WS : (' '|'\n') {$channel=HIDDEN;} ; | G-code | 4 | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | java/java2py/antlr-3.1.3/runtime/JavaScript/tests/functional/t058rewriteAST42.g | [
"Apache-2.0"
] |
.minimap-container
.scroll-wrapper
width 320px
height 180px
overflow hidden
.scroll-content
width 1920px
height 1080px
.scroll-indicator
margin-top 15px
width 320px
height 180px
position relative
.scroll-indicator-bg
position absolute
width 100%
height 100%
.scr... | Stylus | 3 | cym2050/better-scroll | packages/react-examples/src/pages/indicators/index.styl | [
"MIT"
] |
describe Supply do
describe Supply::Client do
let(:service_account_file) { File.read(fixture_file("sample-service-account.json")) }
before do
stub_request(:post, "https://www.googleapis.com/oauth2/v4/token").
to_return(status: 200, body: '{}', headers: { 'Content-Type' => 'application/json' })
... | Ruby | 4 | flufff42/fastlane | supply/spec/client_spec.rb | [
"MIT"
] |
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C++ | 5 | EricRemmerswaal/tensorflow | tensorflow/compiler/mlir/tensorflow/utils/session_utils.cc | [
"Apache-2.0"
] |
%%{
machine conf_lexer;
line_sane = ( '\n' ) >{ ctx->line++; };
line_weird = ( '\r' ) >{ ctx->line++; };
line_insane = ( '\r' ( '\n' >{ ctx->line--; } ) );
line = ( line_sane | line_weird | line_insane );
ws = ( '\t' | ' ' );
comment = ( '#' (any - line)* line );
noise = ( ws | line | comment );
dli... | Ragel in Ruby Host | 3 | liyichao/kids | src/lexer.rl | [
"BSD-3-Clause"
] |
// https://drafts.csswg.org/cssom/#linkstyle
interface mixin LinkStyle {
readonly attribute StyleSheet? sheet;
};
| WebIDL | 4 | wkh237/jsdom | lib/jsdom/living/nodes/LinkStyle.webidl | [
"MIT"
] |
<?xml version="1.0" encoding="utf-8"?>
<Session>
<CoreClrProfilerReport name="SystemSettings_UnitTest.log" path="./" />
<Proc name="proc.log" path="./" />
<Time value="1546414214607.83" />
<ProjectName value="SystemSettings_UnitTest" />
<ProfilingType value="CPU Sampling" />
<DeviceName value="W-5.0-circle-x86" />
<Pro... | Component Pascal | 3 | yoowonyoung/TizenFX | test/Tizen.System.SystemSettings.UnitTest/SystemSettings.UnitTest/TizenProfiler/DotNET-20190102-163018/Session.cps | [
"Apache-2.0"
] |
%%
%unicode 5.1
%public
%class UnicodeGeneralCategoryAliases1_5_1
%type int
%standalone
%include ../../resources/common-unicode-all-enumerated-property-java
%%
<<EOF>> { printOutput(); return 1; }
\p{General_Category:Cc} { setCurCharPropertyValue("Cc"); }
\p{General_Category:Cf} { setCurCharPropertyValue("Cf"); }
... | JFlex | 3 | Mivik/jflex | testsuite/testcases/src/test/cases/unicode-general-category/UnicodeGeneralCategoryAliases1_5_1.flex | [
"BSD-3-Clause"
] |
/// <reference path='fourslash.ts'/>
////declare function f<T>(x: T, y: (p: T) => T, z: (p: T) => T): T;
////var /*1*/result = /*2*/f(0, /*3*/x => null, /*4*/x => x.blahblah);
verify.quickInfos({
1: "var result: number",
2: "function f<number>(x: number, y: (p: number) => number, z: (p: number) => numb... | TypeScript | 4 | nilamjadhav/TypeScript | tests/cases/fourslash/fixingTypeParametersQuickInfo.ts | [
"Apache-2.0"
] |
@import "ui-variables";
@import "ui-mixins";
input[type="text"],
input[type="email"],
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
input[type="month"],
input[type="number"],
input[type="password"],
input[type="range"],
input[type="search"],
input[type="tel"],
input[type="time"],
input[type... | Less | 3 | cnheider/nylas-mail | packages/client-app/static/inputs.less | [
"MIT"
] |
//
// Copyright (C) 1999-2005 Google, Inc.
//
#include "rdb_protocol/geo/s2/strings/strutil.h"
#include <ctype.h>
#include <errno.h>
#include <float.h> // for DBL_DIG and FLT_DIG
#include <math.h> // for HUGE_VAL
#include <pthread.h> // for gmtime_r (on Windows)
#include <stdarg.h>
#include ... | C++ | 4 | zadcha/rethinkdb | src/rdb_protocol/geo/s2/strings/strutil.cc | [
"Apache-2.0"
] |
/*
* All data present in IS2Location can be accessed like so:
*
* var thingYouWant = IS2Location.<insert_thing_here>();
*
* You will need to setup IS2Location with a function to call whenever data is updated by InfoStats 2.
* To do so, in the first function that you've defined at either <body onload="firstFuncti... | Cycript | 4 | Matchstic/InfoStats2 | Scripts/Location/IS2Location.cy | [
"BSD-2-Clause"
] |
module Hasura.SQL.GeoJSON
( Position (..),
Point (..),
MultiPoint (..),
LineString (..),
LinearRing (..),
MultiLineString (..),
Polygon (..),
MultiPolygon (..),
Geometry (..),
GeometryCollection (..),
GeometryWithCRS (..),
)
where
import Control.Monad
import Data.Aeson quali... | Haskell | 5 | eazyfin/graphql-engine | server/src-lib/Hasura/SQL/GeoJSON.hs | [
"Apache-2.0",
"MIT"
] |
---
prev: collections.textile
next: type-basics.textile
title: 패턴 매치와 함수 합성
layout: post
---
이번 강좌에서 다루는 내용은 다음과 같다.
* "함수 합성":#composition
** compose
** andThen
* "커링과 부분 적용 비교":#curryvspartial
* "PartialFunction(부분 함수 클래스)":#PartialFunction
** 치역과 정의역
** orElse로 합성하기
* "case 문이란 무엇인가?":#case
h2(#composition). 함수 합... | Textile | 5 | AstronomiaDev/scala_school | web/ko/pattern-matching-and-functional-composition.textile | [
"Apache-2.0"
] |
// @module: commonjs
// @Filename: foo_0.ts
class Foo<T>{
test: T;
}
export = Foo;
// @Filename: foo_1.ts
import foo = require("./foo_0");
var x = new foo<number>();
var y:number = x.test;
| TypeScript | 4 | nilamjadhav/TypeScript | tests/cases/conformance/externalModules/exportAssignmentGenericType.ts | [
"Apache-2.0"
] |
//
// This file is part of the Simutrans project under the Artistic License.
// (see LICENSE.txt)
//
//
// Tests for depots
//
function test_depot_build_invalid_params()
{
local pl = player_x(0)
local public_pl = player_x(1)
// invalid default_param
{
local error_caught = false
try {
ASSERT_EQUAL(comman... | Squirrel | 4 | Andarix/simutrans_nightly | tests/tests/test_depot.nut | [
"Artistic-1.0"
] |
// (c) Copyright 1995-2019 Xilinx, Inc. All rights reserved.
//
// This file contains confidential and proprietary information
// of Xilinx, Inc. and is protected under U.S. and
// international copyright and other intellectual property
// laws.
//
// DISCLAIMER
// This disclaimer is not a license and does not grant ... | Verilog | 4 | JKHHai/galapagos | shells/shell_ips/tcp/repo/tcp_ip_0/tcp_ip.srcs/sources_1/ip/axis_interconnect_3to1/axis_interconnect_3to1.veo | [
"MIT"
] |
[[documentation.first-steps]]
== First Steps
If you are getting started with Spring Boot or 'Spring' in general, start with <<getting-started#getting-started, the following topics>>:
* *From scratch:* <<getting-started#getting-started.introducing-spring-boot, Overview>> | <<getting-started#getting-started.system-requi... | AsciiDoc | 3 | techAi007/spring-boot | spring-boot-project/spring-boot-docs/src/docs/asciidoc/documentation/first-steps.adoc | [
"Apache-2.0"
] |
package DefaultValue ;
// Default Value package
// This package has been moved to the Prelude
endpackage
| Bluespec | 0 | sarman1998/vscode-verilog-hdl-support | syntaxes/bsc-lib/DefaultValue.bsv | [
"MIT"
] |
within ModelicaByExample.Subsystems.Pendula;
model Pendulum "A single individual pendulum"
import Modelica.Mechanics.MultiBody.Parts;
import Modelica.Mechanics.MultiBody.Joints;
parameter Modelica.SIunits.Position x;
parameter Modelica.SIunits.Mass m "Mass of mass point";
parameter Modelica.SIunits.Angle phi... | Modelica | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Modelica/Pendulum.mo | [
"MIT"
] |
body {
background-color: #333;
color: whitesmoke;
transition: all 0.5s;
} | CSS | 3 | Theo-Steiner/svelte | site/static/tutorial/dark-theme.css | [
"MIT"
] |
/* Copyright 2019 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/c/eager/c_api_remote_test.cc | [
"Apache-2.0"
] |
{
"version" : "v1_0_21",
"payload" : {
"payloadName" : "SubscribePayload",
"payloadClass" : "ru.fix.completable.reactor.example.chain.SubscribePayload",
"payloadDoc" : [ ]
},
"startPoint" : {
"coordinates" : {
"x" : 680,
"y" : 60
},
"coordinatesSource" : {
"className" :... | Rouge | 5 | fix-ru/completable-reactor | completable-reactor-graph-viewer/src/test/resources/SubscribePayload.rg | [
"MIT"
] |
// Copyright (c) 2011 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 "content/nw/src/browser/browser_view_layout.h"
#include "content/nw/src/common/shell_switches.h"
#include "base/logging.h"
using views::Vie... | C++ | 4 | frank-dspeed/nw.js | src/browser/browser_view_layout.cc | [
"MIT"
] |
; CLW file contains information for the MFC ClassWizard
[General Info]
Version=1
LastClass=CHostProcDlg
LastTemplate=CDialog
NewFileInclude1=#include "stdafx.h"
NewFileInclude2=#include "HostProc.h"
ClassCount=4
Class1=CHostProcApp
Class2=CHostProcDlg
Class3=CAboutDlg
ResourceCount=3
Resource1=IDD_ABO... | Clarion | 2 | gxw1/review_the_national_post-graduate_entrance_examination | books_and_notes/professional_courses/Security/sources/extra_books/加密与解密第四版光盘资料/chap12/1.HostProc/HostProc.clw | [
"MIT"
] |
#!/bin/sh
gource -1920x1080 -c 4 -s 0.75 -b 000000 --colour-images --padding 1.2 --hide filenames,mouse,progress --bloom-multiplier 0.75 --bloom-intensity 1.5 --logo ccxt-logo-white.svg --highlight-users -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -th... | Shell | 3 | ngugcx/ccxt | gource.sh | [
"MIT"
] |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
param(
[string] $SigningXmlPath = (Join-Path -Path $PSScriptRoot -ChildPath 'signing.xml'),
[switch] $SkipPwshExe
)
# Script for use in VSTS to update signing.xml
if ($SkipPwshExe) {
## This is required for fxdependent package as no ... | PowerShell | 4 | rdtechie/PowerShell | tools/releaseBuild/updateSigning.ps1 | [
"MIT"
] |
# Copyright (C) 2007-2012, Parrot Foundation.
=pod
=head1 DESCRIPTION
A tutorial lesson about Parrot's continuations.
=head1 CONTINUATIONS
Continuations are tricky and amazing things. Parrot uses continuations for
all sorts of things internally and you can use them too if you want. A
continuation is like a snapsho... | Parrot Internal Representation | 4 | winnit-myself/Wifie | examples/tutorial/81_continuation.pir | [
"Artistic-2.0"
] |
function export.GetGlobalInfo()
return {
Version = { #{VER_MAJOR}, #{VER_MINOR}, #{VER_MICRO}, 0 },
MinFarVersion = #{MINFARVERSION},
Guid = win.Uuid("a745761d-42b5-4e67-83da-f07af367ae86"),
Title = "LuaFAR History",
Description = "History of commands, files and folders",
... | MAXScript | 4 | shmuz/far_plugins | plugins/luafarhistory/_globalinfo.lua.mcr | [
"MIT"
] |
TotalCommander:
global TCPath
global TCDir
global TCIni
global TCMarkIni
global ini
global TC64Bit
TCPath := ini.TotalCommander_Config.TCPath
TCIni := ini.TotalCommander_Config.TCIni
Splitpath, TCPath, , TCDir
TCMarkIni := TCDir "\TCMark.ini"
if (!FileExist(TCPath) || !Fil... | AutoHotkey | 5 | Jvcon/vimdesktop | Plugins/TotalCommander/TotalCommander.ahk | [
"MIT"
] |
export * from "./reexport";
| JavaScript | 1 | fourstash/webpack | test/cases/side-effects/issue-12570/module.js | [
"MIT"
] |
// Persistence Of Vision raytracer version 1.0 sample file.
// By Various and Sundry
//
// Revision Note:
// Reworked both the declared wood texture (turb and colormap) and
// the application of it on the floor plane.
// Note that wood doesn't really look like much until you get around
// 640x480. Anti-aliasi... | POV-Ray SDL | 5 | Falken42/SecondReality | source/jni/u2/water/waterbow.pov | [
"Unlicense"
] |
- content_for(:title, 'Encoding Error')
%img{ :alt => "GitLab Logo", :src => image_path('logo.svg') }
%h1
412
.container
%h3 Precondition failed
%hr
%p Page can't be loaded because of invalid parameters.
| Haml | 2 | hugorebelo/gitlabhq | app/views/errors/precondition_failed.html.haml | [
"MIT"
] |
{ fetchgit, fetchFromGitHub }:
{
letoram-openal-src = fetchFromGitHub {
owner = "letoram";
repo = "openal";
rev = "1c7302c580964fee9ee9e1d89ff56d24f934bdef";
hash = "sha256-InqU59J0zvwJ20a7KU54xTM7d76VoOlFbtj7KbFlnTU=";
};
freetype-src = fetchgit {
url = "git://git.sv.nongnu.org/freetype/freet... | Nix | 3 | siddhantk232/nixpkgs | pkgs/desktops/arcan/arcan/clone-sources.nix | [
"MIT"
] |
###. Single line comment
###..
Multi line comment.
This line is also part of comment.
Continues till next block element
p. This is not a comment, but I am a paragraph.
<!-- HTML comments can also be used -->
h1. This is an <h1>
h2. This is an <h2>
h3. This is an <h3>
h4. This is an <h4>
h5. This is an <h5>
... | Textile | 3 | purveshpatel511/bat | tests/syntax-tests/source/Textile/test.textile | [
"Apache-2.0",
"MIT"
] |
package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.util.ArrayList
import java.util.List
import io.micronaut.test.extensions.spock.annotation.MicronautTest
import spock.lang.Specification
import jakarta.inject.Inject
/**
* Model tests for E... | Groovy | 4 | JigarJoshi/openapi-generator | samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/EnumArraysSpec.groovy | [
"Apache-2.0"
] |
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
/*
* If linux/types.h is already been included, assume it has defined
* everything we need. (cross fingers) Other header files may have
* also defined the types that we need.
*/
#if (... | C | 4 | r00ster91/serenity | Kernel/FileSystem/ext2_types.h | [
"BSD-2-Clause"
] |
# Specify the provider and access details
provider "aws" {
version = "~> 2.0"
region = "${var.aws_region}"
}
resource "aws_security_group" "docdbtest" {
name_prefix = "docdbtest"
description = "Test mongo driver on docdb"
vpc_id = "${var.vpc_id}"
ingress {
from_port = 22
to_port = 22
... | HCL | 3 | saeidakbari/go-cloud | docstore/mongodocstore/awsdocdb/main.tf | [
"Apache-2.0"
] |
/** @babel */
/** @jsx etch.dom */
import etch from 'etch';
import VIEW_URI from './view-uri';
const REBUILDING = 'rebuilding';
const REBUILD_FAILED = 'rebuild-failed';
const REBUILD_SUCCEEDED = 'rebuild-succeeded';
export default class IncompatiblePackagesComponent {
constructor(packageManager) {
this.rebuild... | JavaScript | 4 | Embodimentgeniuslm3/BDB11A0E2DE062D2E39E4C5301B2FE5E | packages/incompatible-packages/lib/incompatible-packages-component.js | [
"MIT"
] |
// Whitney Music Box
//
// Jim Bumgardner jbum@jbum.com
48 => int nbrDots;
55 => float baseFreq;
180 => float durationOfPiece;
2.0/nbrDots => float dotGain;
fun void whitneyDot(float baseFreq, float secs, int nDots)
{
StifKarp voc => dac;
dotGain => voc.gain;
for (0 => int i; i < nDots; ++i)
{
baseFreq => voc.... | ChucK | 5 | Haroenv/Whitney-Music-Box-Examples | chuck/whitney.ck | [
"AAL"
] |
*/**
* The MIT License (MIT)
* Copyright (c) 2012 René van Mil
*
* 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, ... | ABAP | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/ABAP/cl_csv_parser.abap | [
"MIT"
] |
forall (a : Type) .
forall (b : Type) .
forall (c : Type) .
forall (d : Fields) .
forall (e : Type) .
forall (f : Type) .
{ or: Bool -> Bool -> Bool
, and: Bool -> Bool -> Bool
, apply: (b -> a) -> b -> a
, field: { foo: c, d } -> c
, _if: Bool -> e -> e -> e
, times: Natural -> Natural -> Natural
, plus:... | Grace | 4 | DebugSteven/grace | tasty/data/complex/abstract-irreducible-type.grace | [
"BSD-3-Clause"
] |
console.log(`Oops! Gatsby noticed some lint or style warnings in the code for this
commit. Your changes have been committed, but you should fix the warnings before
creating a pull request.
Use 'npm run lint' to manually re-run these checks. You can also disable these
checks:
- for a single commit: git commit --no-ver... | JavaScript | 3 | JQuinnie/gatsby | scripts/on-lint-error.js | [
"MIT"
] |
;; Homerange example of R-extension
;;
;;
;; by Jan C. Thiele
;; University of Goettingen, Germany
;; Department Ecoinformatics, Biometrics and Forest Growth
;; Buesgenweg 4
;; 37077 Goettingen
;; Germany
;;
;; Contact: jthiele@gwdg.de
;;
;; Copyright: 2011, J.C. Thiele
extensions [r]
breed [animals animal]
breed [ho... | NetLogo | 5 | RongjianDai/NetLogo | examples/homerange-example.nlogo | [
"Vim",
"X11"
] |
{}
:configs $ {} (:reload-fn |app.main/reload!) (:port 6001) (:output |src) (:storage-key |calcit.cirru) (:version |0.0.3-a2)
:modules $ [] |respo.calcit/ |lilac/ |memof/ |respo-ui.calcit/ |respo-markdown.calcit/ |reel.calcit/ |calcit-test/
:init-fn |app.main/main!
:extension |.cljs
:ir $ {} (:package ... | Cirru | 2 | Cirru/jiuzhang-lang | calcit.cirru | [
"MIT"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_getTeamSpeakChannelName
Author: NKey
Returns TeamSpeak channel name.
Arguments:
None
Return Value:
name of the channel <STRING>
Example:
call TFAR_fnc_getTeamSpeakChannelName;
Public: Yes
*/
"task_force_radio_pipe" callExtension "TS_IN... | SQF | 4 | MrDj200/task-force-arma-3-radio | addons/core/functions/plugin/fnc_getTeamSpeakChannelName.sqf | [
"RSA-MD"
] |
-- demo
define a (read cd) $ if (> a cd)
print demo
print "not demo"
say $ print a $ save $ b $ x $ c 8
print fun
-- test on folding
a $
b $ c
d $ e $ f
g $ h $ i j $ k $
-- test on comma
print (, a)
a
, b
, c (, d)
-- test on HTML
doctype
html
head
title $ = Cirru
script (:defer... | Cirru | 3 | oslab-swrc/juxta | analyzer/libs/pygments/tests/examplefiles/scope.cirru | [
"MIT"
] |
--
-- Thanks to Horia Muntean for submitting this, Mikkel Heisterberg for updating it
--
-- .. known to work with DB2 7.2 and the JDBC driver "COM.ibm.db2.jdbc.net.DB2Driver"
-- .. likely to work with others...
--
-- In your Quartz properties file, you'll need to set
-- org.quartz.jobStore.driverDelegateClass = org.qua... | SQL | 4 | zcy2095/spring-boot-demo | demo-task-quartz/init/dbTables/tables_db2_v72.sql | [
"MIT"
] |
@ July 19, 2018
What up!
So far so good. Here is another batch of changes for the upcoming 18.7
release from assorted areas. Also included is the latest Suricata 4.0.5.
We have bundled the firewall alias API progress under the hood, but
it looks like we will miss our initial 18.7 target. Sorry about that.
Though ... | Rebol | 0 | eole/opnsense-changelog | community/18.7/18.7.r2 | [
"BSD-2-Clause"
] |
// Rubiks Cube 1
// Daniel Shiffman
// https://thecodingtrain.com/CodingChallenges/142.1-rubiks-cube.html
// https://youtu.be/9PGfL4t-uqE
import peasy.*;
PeasyCam cam;
// UP, DOWN, RIGHT, LEFT, FRONT, BACK
final int UPP = 0;
final int DWN = 1;
final int RGT = 2;
final int LFT = 3;
final int FRT = 4;
final int BCK =... | Processing | 5 | aerinkayne/website | CodingChallenges/CC_142_Rubiks_Cube_1/Processing/CC_142_Rubiks_Cube_1/CC_142_Rubiks_Cube_1.pde | [
"MIT"
] |
package com.alibaba.json.bvt.issue_1800;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONCreator;
import com.alibaba.fastjson.annotation.JSONField;
import junit.framework.TestCase;
import java.util.ArrayList;
import java.util.List;
public class Issue1879 extends TestCase {
// public v... | Java | 4 | Czarek93/fastjson | src/test/java/com/alibaba/json/bvt/issue_1800/Issue1879.java | [
"Apache-2.0"
] |
class Base {
Int i
new make(Int x) {
i = x
}
virtual Str say(Str name) { "hi $name" }
}
mixin Bar {
virtual Str foo() { "bar" }
}
class Sub : Base, Bar {
Int j
new make(Int j) : super(0) {
this.j = j
}
override Str say(Str name) { "hello $name" }
override Str foo() { "sub" }
static ... | Fantom | 4 | fanx-dev/fanx | library/baseTest/fan/InheritTest.fan | [
"AFL-3.0"
] |
SetKeyDelay,{{ delay }},{{ press_duration }}
{% if raw %}WinSendRaw{% else %}WinSend{% endif %},{{ title }},{{ keys }}
| AutoHotkey | 1 | scslmd/ahk | ahk/templates/daemon/win_send.ahk | [
"MIT"
] |
POM_NAME=Glide GifEncoder Integration
POM_ARTIFACT_ID=gifencoder-integration
POM_PACKAGING=aar
POM_DESCRIPTION=An integration library allowing users to re-encode or create animated GIFs
| INI | 1 | ZhouLiang0000/glide-parent | integration/gifencoder/gradle.properties | [
"Apache-2.0"
] |
def notify() {
if (!currentBuild.resultIsBetterOrEqualTo('SUCCESS')) {
// Send an email only if the build status has changed from green/unstable to red
emailext subject: '$DEFAULT_SUBJECT',
body: '$DEFAULT_CONTENT',
recipientProviders: [
[$class: 'DevelopersRecipientProvi... | Groovy | 4 | mfkiwl/milvus | tests/benchmark/ci/jenkinsfile/notify.groovy | [
"Apache-2.0"
] |
#+TITLE: lang/fstar
#+DATE: February 2, 2020
#+SINCE: 2.0.10
#+STARTUP: inlineimages nofold
* Table of Contents :TOC_3:noexport:
- [[#description][Description]]
- [[#maintainers][Maintainers]]
- [[#module-flags][Module Flags]]
- [[#plugins][Plugins]]
- [[#prerequisites][Prerequisites]]
- [[#f][F*]]
... | Org | 3 | leezu/doom-emacs | modules/lang/fstar/README.org | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.