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 |
|---|---|---|---|---|---|
# Documentation Overview
* [Configuration](./Config.md).
* [Custom Commands](./Custom_Command_Keybindings.md)
* [Custom Pagers](./Custom_Pagers.md)
* [Keybindings](./keybindings)
* [Undo/Redo](./Undoing.md)
| Markdown | 2 | ikysil/lazygit | docs/README.md | [
"MIT"
] |
/*
* Copyright 2012-2021 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 | 4 | Cuiqingqiang/spring-boot | spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/http/ApiVersionTests.java | [
"Apache-2.0"
] |
--TEST--
curl_multi_close
--CREDITS--
Stefan Koopmanschap <stefan@php.net>
#testfest Utrecht 2009
--EXTENSIONS--
curl
--FILE--
<?php
$ch = curl_multi_init();
curl_multi_close($ch);
var_dump($ch);
?>
--EXPECT--
object(CurlMultiHandle)#1 (0) {
}
| PHP | 3 | NathanFreeman/php-src | ext/curl/tests/curl_multi_close_basic.phpt | [
"PHP-3.01"
] |
export default {
props: {
user: { active: true }
},
html: '<div class="active"></div>',
test({ assert, component, target }) {
component.user = { active: false };
assert.htmlEqual(target.innerHTML, `
<div class></div>
`);
}
};
| JavaScript | 3 | Theo-Steiner/svelte | test/runtime/samples/class-helper/_config.js | [
"MIT"
] |
--TEST--
Test function posix_ttyname() by substituting argument 1 with int values.
--CREDITS--
Marco Fabbri mrfabbri@gmail.com
Francesco Fullone ff@ideato.it
#PHPTestFest Cesena Italia on 2009-06-20
--EXTENSIONS--
posix
--FILE--
<?php
echo "*** Test substituting argument 1 with int values ***\n";
$variation_array ... | PHP | 3 | NathanFreeman/php-src | ext/posix/tests/posix_ttyname_variation5.phpt | [
"PHP-3.01"
] |
// run-pass
// no-prefer-dynamic
// aux-build:custom.rs
// aux-build:helper.rs
extern crate custom;
extern crate helper;
use custom::A;
use std::sync::atomic::{AtomicUsize, Ordering};
fn main() {
#[global_allocator]
pub static GLOBAL: A = A(AtomicUsize::new(0));
let n = GLOBAL.0.load(Ordering::SeqCst);
... | Rust | 3 | Eric-Arellano/rust | src/test/ui/allocator/custom-in-block.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
-- Copyright 2020-2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local url = require("url")
local json = require("json")
name = "CertSpotter"
type = "cert"
function start()
set_rate_limit(2)
end
function vertical(ctx, domai... | Ada | 3 | Elon143/Amass | resources/scripts/cert/certspotter.ads | [
"Apache-2.0"
] |
unsigned int barFunc () // my comment
{
return 0;
} | Arduino | 1 | Maniekkk/platformio-core | tests/ino2cpp/multifiles/bar.ino | [
"Apache-2.0"
] |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| Eiffel | 1 | aravi5/drill-test-framework | framework/resources/Functional/impersonation/dfs/secondaryusernestedviews.e | [
"Apache-2.0"
] |
#!/bin/bash
# Copyright Istio 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 agreed to in ... | Shell | 4 | rveerama1/istio | operator/scripts/update_version.sh | [
"Apache-2.0"
] |
-- ==============================================================
-- File generated by Vivado(TM) HLS - High-Level Synthesis from C, C++ and SystemC
-- Version: 2016.3
-- Copyright (C) 1986-2016 Xilinx, Inc. All Rights Reserved.
--
-- ==============================================================
library ieee;... | VHDL | 4 | JimMadge/aws-fpga | hdk/common/shell_v04261818/hlx/design/ip/dds_v1_0/hdl/vhdl/process_r_dds_0_fcud.vhd | [
"Apache-2.0"
] |
#Copyright (c) 2009, 2010, 2011, 2012, Tom Schoonjans
#All rights reserved.
#Redistribution and use in source and binary forms, with or without
#modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright notice, this list of condit... | IDL | 4 | golosio/xraylib | idl/libxrlidl.dlm | [
"BSD-3-Clause"
] |
/*
* Copyright 2007 The Fornax Project Team, including 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
*
* http://www.apache.org/licenses/LIC... | Xtend | 5 | sculptor/sculptor | sculptor-generator/sculptor-generator-core/src/main/java/org/sculptor/generator/ext/UmlGraphHelper.xtend | [
"Apache-2.0"
] |
// RUN: %empty-directory(%t)
// RUN: %{python} %utils/split_file.py -o %t %s
// This used to crash with a nullptr dereference because we didn't store a
// snapshot in the FileContents of primary.swift when it is opened for the first
// time but we are trying to access the snapshot when trying determining if we
// c... | Swift | 5 | xjc90s/swift | test/SourceKit/Misc/no-crash-reopen-with-different-compiler-args.swift | [
"Apache-2.0"
] |
import time
import os
import pyautogui
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_argument("nwapp=" + os.path.dirname(... | Python | 3 | namaljayathunga/nw.js | test/remoting/shortcut-failure/test.py | [
"MIT"
] |
\sqrt{x} = y \Rightarrow y \times y = x | TeX | 1 | sethaldini/paip-lisp | docs/images/chapter14/si2_e.tex | [
"MIT"
] |
very foo is new Bar with "wow","doge"
| Dogescript | 0 | erinkeith/dogescript | test/spec/var/new/multi-args-comma-no-space/source.djs | [
"MIT"
] |
-- Tests covering different scenarios with qualified column names
-- Scenario: column resolution scenarios with datasource table
CREATE DATABASE mydb1;
USE mydb1;
CREATE TABLE t1 USING parquet AS SELECT 1 AS i1;
CREATE DATABASE mydb2;
USE mydb2;
CREATE TABLE t1 USING parquet AS SELECT 20 AS i1;
USE mydb1;
SELECT i1 F... | SQL | 4 | OlegPt/spark | sql/core/src/test/resources/sql-tests/inputs/columnresolution.sql | [
"Apache-2.0"
] |
/*
* Copyright (c) 2010, Oracle America, Inc.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and t... | Logos | 5 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/RPC/rusers.x | [
"MIT"
] |
// Functions vs. SynthDefs
{ SinOsc.ar(440, 0, 0.2) }.play;
SynthDef.new("tutorial-SinOsc", { Out.ar(0, SinOsc.ar(440, 0, 0.2)) }).play;
// Getting and freeing the Synth
x = { SinOsc.ar(440, 0, 0.2) }.play;
y = SynthDef.new("tutorial-SinOsc", { Out.ar(0, SinOsc.ar(440, 0, 0.2)) }).play;
x.free; // receiver notation
... | SuperCollider | 4 | drichardson/examples | SuperCollider/SynthDefsAndSynths.scd | [
"Unlicense"
] |
SUMMARY = "Google Cloud Platform Root Certificates"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
SRC_URI = " \
git://github.com/GoogleCloudPlatform/python-docs-samples;branch=master \
"
SRCREV = "47a39ccedf3cfdaa7825269800af7bf1294cc79c"
S = "${WORKDIR}/git"
B =... | BitBake | 4 | tjwebb/community | tutorials/cloud-iot-mender-ota/image/meta-gcp-iot/recipes-gcp/gcp-root-certs/gcp-root-certs_git.bb | [
"Apache-2.0",
"CC-BY-4.0"
] |
asdfdsa | TXL | 3 | pseudoPixels/SourceFlow | app_txl_cloud/txl_tmp_file_dir/81c9ea43-c7ae-4f55-bae4-31d30f56b898.txl | [
"MIT"
] |
The following is a list of professional events on Machine Learning and Artificial Intelligence
## Machine Learning and Artificial Intelligence
* [AI & ML Events](https://aiml.events) - The best upcoming hand-picked conferences and exhibitions in the field of artificial intelligence and machine learning
| Markdown | 0 | cvley/awesome-machine-learning | events.md | [
"CC0-1.0"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 5 | chanmaoooo/vscode | build/lib/eslint/vscode-dts-event-naming.ts | [
"MIT"
] |
#define ADD(x,y) x+y
ADD(2,5);
| C++ | 3 | r00ster91/serenity | Userland/Libraries/LibCpp/Tests/preprocessor/macro1.cpp | [
"BSD-2-Clause"
] |
#
# 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... | HCL | 4 | turtlequeue/pulsar | deployment/terraform-ansible/aws/security.tf | [
"Apache-2.0"
] |
from common import field
for i in sorted(field):
for j in range(0, 256):
print("{} ^ {} = {}".format(i, j, i ^ j))
| Sage | 3 | MarcoPolo/rust-sssmc39 | tests/fixtures/gf256/gf256_pow.sage | [
"Apache-2.0"
] |
// run-pass
#![allow(dead_code)]
pub fn main() {
enum State { BadChar, BadSyntax }
match State::BadChar {
_ if true => State::BadChar,
State::BadChar | State::BadSyntax => panic!() ,
};
}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/issues/issue-3895.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
- page_title _("Manifest import")
%h3.page-title
= _('Manifest file import')
= render 'import/githubish_status', provider: 'manifest'
| Haml | 4 | Testiduk/gitlabhq | app/views/import/manifest/status.html.haml | [
"MIT"
] |
$! INSTALL.COM -- Installs the files in a given directory tree
$!
$! Author: Richard Levitte <richard@levitte.org>
$! Time of creation: 22-MAY-1998 10:13
$!
$! Changes by Zoltan Arpadffy <zoli@polarhome.com>
$!
$! P1 root of the directory tree
$! P2 "64" for 64-bit pointers.
$!
$!
$! Announce/identify.
$!
$ proc = f$... | DIGITAL Command Language | 3 | loganfsmyth/node | deps/openssl/openssl/crypto/install-crypto.com | [
"BSD-2-Clause"
] |
// MIR for `move_out_from_end` 0 mir_map
fn move_out_from_end() -> () {
let mut _0: (); // return place in scope 0 at $DIR/uniform_array_move_out.rs:4:24: 4:24
let _1: [std::boxed::Box<i32>; 2]; // in scope 0 at $DIR/uniform_array_move_out.rs:5:9: 5:10
let mut _2: std::boxed::Box<i32... | Mirah | 3 | ohno418/rust | src/test/mir-opt/uniform_array_move_out.move_out_from_end.mir_map.0.mir | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
.direct-child--type>Button {
background-color: red;
color: white;
}
.direct-child--class>.test-child {
background-color: blue;
color: white;
}
.direct-sibling--type Button+Label {
background-color: green;
color: white;
}
.direct-sibling--id #test-child+#test-child-2 {
background-color: pink;
}
.direct... | CSS | 3 | tralves/NativeScript | apps/ui/src/css/combinators-page.css | [
"Apache-2.0"
] |
/********************************************************************************
* Copyright (c) {date} Red Hat Inc. and/or its affiliates and others
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* http://www.apache.o... | Ceylon | 4 | Kopilov/ceylon-ide-intellij | source/org/eclipse/ceylon/ide/intellij/messages/ProblemsModel.ceylon | [
"Apache-2.0"
] |
# validate new test case (Figure8_7.java)
with(simplex);
Constraints := [
# conservation of units at each node
e13+e14+e41+e15 = 400, # CHI
e21+e23+e24+e25 = 400, # DC
e13+e23 = 300, # HOU
e14+e41+e24 = 200, # ATL
e15+e25 = 300, # BOS
# maximum flow on individual edges
0 <= e13, e13 <= 200,
0 <= e14, e14 <=... | Maple | 4 | konny0311/algorithms-nutshell-2ed | Code/Maple/Chapter-8/testCommands.mpl | [
"MIT"
] |
/********************************************************************************
* Copyright (c) {date} Red Hat Inc. and/or its affiliates and others
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* http://www.apache.o... | Ceylon | 3 | Kopilov/ceylon-ide-intellij | source/org/eclipse/ceylon/ide/intellij/lightpsi/CeylonLightElement.ceylon | [
"Apache-2.0"
] |
$TTL 300
@ IN A 127.0.0.1
a IN CNAME b.domain.tld.
aaa IN A 127.0.0.3
c IN CNAME d.domain.tld.
sub IN A 127.0.0.7
bbb.sub IN A 127.0.0.4
ccc.sub IN A 127.0.0.5
e.sub IN CNAME f.sub.domain.tld.
i.sub ... | DNS Zone | 3 | hosting-de-labs/dnscontrol | pkg/js/parse_tests/030-dextenddoc/domain.tld.zone | [
"MIT"
] |
#!/bin/bash
set -eu
SCRIPT_DIR=$(CDPATH='' cd -- "$(dirname -- "$0")" && pwd)
ROOT_DIR="$(realpath "$SCRIPT_DIR"/..)";
if ! [ -x "$(command -v shellcheck)" ]; then
echo ''
echo 'ShellCheck not found.'
echo 'For more info: https://github.com/koalaman/shellcheck#installing"'
echo ''
exit 1
fi
shellcheck "$R... | Shell | 4 | JQuinnie/gatsby | scripts/lint-shell-scripts.sh | [
"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 | 5 | yage99/tensorflow | tensorflow/lite/delegates/gpu/gl/egl_context.h | [
"Apache-2.0"
] |
/******************************************************************************
* Copyright 2020 The Beijing Smarter Eye Technology Co.Ltd 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 ... | C | 4 | jzjonah/apollo | third_party/camera_library/smartereye/include/protocol.h | [
"Apache-2.0"
] |
INSERT INTO t VALUES (), (), ();
| SQL | 0 | imtbkcat/tidb-lightning | tests/default-columns/data/defcol.t.2.sql | [
"Apache-2.0"
] |
.[]
.head
.label
| JSONiq | 0 | hjyuan/reapoc | 2019/CVE-2019-1020010/vultarget/web/source/.autogen/check_pr.jq | [
"Apache-2.0"
] |
@GrabResolver(name="test", root="file:./src/test/plugins")
@Grab("custom:custom:0.0.1")
@Controller
class Foo {}
println "Hello Grab" | Groovy | 3 | Martin-real/spring-boot-2.1.0.RELEASE | spring-boot-project/spring-boot-cli/src/test/resources/grab.groovy | [
"Apache-2.0"
] |
datatype smbus_status =
| SMBusOk of ()
| SMBusBadLen of ()
| SMBusNack of ()
| SMBusOther of ()
fun send_byte (address: uint8, command: uint8): smbus_status
fun write_byte (address: uint8, command: uint8, data: uint8): smbus_status
fun write_word (address: uint8, command: uint8, data: uint16): smbus_status
f... | ATS | 3 | Proclivis/arduino-ats | SATS/smbus.sats | [
"MIT"
] |
{} (:package |app)
:configs $ {} (:init-fn |app.main/main!) (:reload-fn |app.main/reload!)
:modules $ [] |respo.calcit/ |lilac/ |memof/ |respo-ui.calcit/ |respo-markdown.calcit/ |reel.calcit/ |respo-cirru-editor.calcit/
:version nil
:files $ {}
|app.comp.candidates $ {}
:ns $ quote
ns app... | Cirru | 5 | Cirru/cirru.org | compact.cirru | [
"MIT"
] |
namespace DebugStub
// Helper functions which make it easier to use serial stuff
function ComReadEAX {
repeat 4 times {
ComReadAL()
EAX ~> 8
}
}
// Input: EDI
// Output: [EDI]
// Modified: AL, DX, EDI (+1)
//
// Reads a byte into [EDI] and does EDI + 1
function ComRead8 {
ComReadAL()
[EDI] = AL
E... | XS | 4 | marcelocaetano/XSharp | playground/SerialHelpers.xs | [
"BSD-3-Clause"
] |
<?php
/* *****************************************************************************
***
*** Laudanum Project
*** A Collection of Injectable Files used during a Penetration Test
***
*** More information is available at:
*** http://laudanum.secureideas.net
*** laudanum@secureideas.net
***
*** Project Leads:
*** ... | PHP | 3 | 5tr1x/SecLists | Web-Shells/laudanum-0.8/php/file.php | [
"MIT"
] |
package io.swagger.client.model {
import io.swagger.client.model.ByteArray;
[XmlRootNode(name="FormatTest")]
public class FormatTest {
[XmlElement(name="integer")]
public var integer: Number = NaN;
[XmlElement(name="int32")]
public var int32: Number = 0;
... | ActionScript | 3 | wwadge/swagger-codegen | samples/client/petstore/flash/flash/src/io/swagger/client/model/FormatTest.as | [
"Apache-2.0"
] |
/// <reference path='fourslash.ts' />
////let a = { b: 0 };
////let x = { y: 0 };
////a && a.b && /*a*/x && x.y;/*b*/
// Verify that we stop at a prefix sequence that is otherwise valid.
goTo.select("a", "b");
edit.applyRefactor({
refactorName: "Convert to optional chain expression",
actionName: "Co... | TypeScript | 4 | monciego/TypeScript | tests/cases/fourslash/refactorConvertToOptionalChainExpression_SubexpressionsWithPrefix2.ts | [
"Apache-2.0"
] |
/**
*
*/
import Util;
import OpenApi;
import EndpointUtil;
extends OpenApi;
init(config: OpenApi.Config){
super(config);
@endpointRule = 'regional';
checkConfig(config);
@endpoint = getEndpoint('vs', @regionId, @endpointRule, @network, @suffix, @endpointMap, @endpoint);
}
function getEndpoint(productId... | Tea | 4 | aliyun/alibabacloud-sdk | vs-20181212/main.tea | [
"Apache-2.0"
] |
CREATE TABLE account2(
user_id serial PRIMARY KEY,
username VARCHAR (50) UNIQUE NOT NULL,
password VARCHAR (50) NOT NULL,
email VARCHAR (355) UNIQUE NOT NULL,
created_on TIMESTAMP NOT NULL,
last_login TIMESTAMP
);
| SQL | 3 | gh-oss-contributor/graphql-engine-1 | cli/integration_test/v2/seeds/1591867862419_test2.sql | [
"Apache-2.0",
"MIT"
] |
xquery version "1.0-ml";
(:
: This is an implementation library, not an interface to the Smart Mastering functionality.
:
: Code in this library simply returns information about known Entity Services
: entity descriptors.
:)
module namespace es-impl = "http://marklogic.com/smart-mastering/entity-services-impl";
... | XQuery | 5 | xmlnovelist/marklogic-data-hub | marklogic-data-hub/src/main/resources/ml-modules/root/com.marklogic.smart-mastering/impl/sm-es-impl.xqy | [
"Apache-2.0"
] |
<template src="./main.pug"></template>
<style src="./style.scss"></style>
<script src="./script.ts"></script>
| Vue | 1 | acidburn0zzz/parcel | packages/core/integration-tests/test/integration/vue-external-files/App.vue | [
"MIT"
] |
module Issue4267.A0 where
record RA0 : Set₁ where
field
A : Set
| Agda | 4 | cruhland/agda | test/Succeed/Issue4267/A0.agda | [
"MIT"
] |
<div class="ui video">
<div class="play"></div>
<div class="placeholder"></div>
<div class="embed"></div>
</div> | HTML | 2 | 292388900/Semantic-UI | test/fixtures/video.html | [
"MIT"
] |
#!/bin/bash
if git status --porcelain yarn.lock | grep "M yarn.lock"
then echo "yarn.lock is dirty. Please ensure changes have been committed"
exit 1
else exit 0
fi
| Shell | 2 | waltercruz/gatsby | scripts/check-lockfile.sh | [
"MIT"
] |
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
struct Uniforms {
half a;
half b;
half c;
half4 d;
half4 e;
};
struct Inputs {
};
struct Outputs {
half4 sk_FragColor [[color(0)]];
};
fragment Outputs fragmentMain(Inputs _in [[stage_in]], constant Uniforms& _uniforms [[buffe... | Metal | 3 | fourgrad/skia | tests/sksl/intrinsics/Refract.metal | [
"BSD-3-Clause"
] |
const std = @import("std");
const testing = std.testing;
const mem = std.mem;
const assert = std.debug.assert;
const ArrayList = std.ArrayList;
const Allocator = std.mem.Allocator;
const DW = std.dwarf;
// zig fmt: off
/// Definitions of all of the x64 registers. The order is semantically meaningful.
/// The register... | Zig | 5 | lukekras/zig | src/arch/x86_64/bits.zig | [
"MIT"
] |
class Object {
# Let's define false, true & nil =)
dynamic_method(':false) |g| {
g push_false()
g ret()
}
dynamic_method(':true) |g| {
g push_true()
g ret()
}
dynamic_method(':nil) |g| {
g push_nil()
g ret()
}
}
class Class {
def alias_method: new for: old {
alias_method(n... | Fancy | 3 | bakkdoor/fancy | lib/rbx/alpha.fy | [
"BSD-3-Clause"
] |
#!/usr/bin/env sh
# Copyright 2021 The Terasology Foundation, 2015 the original author or authors.
# SPDX-License-Identifier: Apache-2.0
#
# Derived from
# https://github.com/gradle/gradle/blob/f38a522/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
#
# Alternatively use our L... | Groovy Server Pages | 4 | Elyahu41/Terasology | facades/PC/src/main/startScripts/unixStartScript.gsp | [
"Apache-2.0"
] |
import torch.nn as nn
import torch.nn.functional as F
class DummyModel(nn.Module):
def __init__(
self,
num_embeddings: int,
embedding_dim: int,
dense_input_size: int,
dense_output_size: int,
dense_layers_count: int,
sparse: bool
):
r"""
A... | Python | 5 | Hacky-DH/pytorch | benchmarks/distributed/rpc/parameter_server/models/DummyModel.py | [
"Intel"
] |
[Files]
Source: "RevitPythonShell\bin\Release\2014\PythonConsoleControl.dll"; DestDir: "{app}"; Flags: replacesameversion
Source: "RevitPythonShell\bin\Release\2014\RevitPythonShell.dll"; DestDir: "{app}"; Flags: replacesameversion
Source: "RevitPythonShell\bin\Release\2014\RpsRuntime.dll"; DestDir: "{app}"; Flags: rep... | Inno Setup | 4 | PavelAltynnikov/revitpythonshell | Setup_RevitPythonShell_2014.iss | [
"MIT"
] |
"""Constants for the Steamist integration."""
import asyncio
import aiohttp
DOMAIN = "steamist"
CONNECTION_EXCEPTIONS = (asyncio.TimeoutError, aiohttp.ClientError)
STARTUP_SCAN_TIMEOUT = 5
DISCOVER_SCAN_TIMEOUT = 10
DISCOVERY = "discovery"
| Python | 3 | MrDelik/core | homeassistant/components/steamist/const.py | [
"Apache-2.0"
] |
insert into non_pk values
('one'),
('two'),
('three'),
('four'),
('five'),
('six'),
('seven'),
('eight'),
('nine'),
('ten');
| SQL | 2 | imtbkcat/tidb-lightning | tests/tidb_rowid/data/rowid.non_pk.sql | [
"Apache-2.0"
] |
scriptname _DE_FoodDetect extends ReferenceAlias
GlobalVariable property _DE_ExposurePoints auto
formlist property _DE_Drinks10 auto
formlist property _DE_Drinks15 auto
formlist property _DE_Drinks20 auto
formlist property _DE_Foods5 auto
formlist property _DE_Foods10 auto
formlist property _DE_Foods15 auto
Keyword ... | Papyrus | 4 | chesko256/Campfire | Scripts/Source/_de_fooddetect.psc | [
"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.
' vbc /t:library /vbruntime- /r:Pia1.dll,Pia5.dll Library2.vb
Imports System.Collections.Generic
Imports System.Refle... | Visual Basic | 4 | ffMathy/roslyn | src/Compilers/Test/Resources/Core/SymbolsTests/NoPia/Library2.vb | [
"MIT"
] |
---
prev: finagle.textile
title: 검색조(Searchbird)
layout: post
---
스칼라와 앞에서 논의한 "피네이글":https://github.com/twitter/finagle 프레임워크를 사용해 간단한 분산 검색 엔진을 만들고자 한다.
h3. 설계 목표: 전체 그림
넓게 보면, 우리의 설계 목표에는 _추상화_ (내부 구조를 몰라도 만들어진 시스템을 사용할 수 있어야 한다), _모듈화_ (시스템을 이해하기 쉽고 대치하기 쉬운 더 작은 덩어리들로 나눈다), 그리고 _확장성_ (쉽게 시스템의 용량을 확대할 수 있어야 한다)이 ... | Textile | 5 | AstronomiaDev/scala_school | web/ko/searchbird.textile | [
"Apache-2.0"
] |
/*
* Copyright (C) 2016 The Android Open Source Project
*
* 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 app... | RenderScript | 5 | Theonlirosaaay/backdoor-apk | backdoor-apk/third-party/android-sdk-linux/build-tools/25.0.2/renderscript/include/rs_allocation_create.rsh | [
"Apache-2.0"
] |
MSTRINGIFY(
cbuffer PrepareLinksCB : register( b0 )
{
int numLinks;
int padding0;
int padding1;
int padding2;
};
// Node indices for each link
StructuredBuffer<int2> g_linksVertexIndices : register( t0 );
StructuredBuffer<float> g_linksMassLSC : register( t1 );
StructuredBuffer<float4> g_nodesPreviou... | HLSL | 4 | BonJovi1/Bullet-the-Blue-Sky | external/bullet-2.81-rev2613/src/BulletMultiThreaded/GpuSoftBodySolvers/DX11/HLSL/PrepareLinks.hlsl | [
"WTFPL"
] |
label.string.required.col-xs-8.control-label for="two_factor_otp"
abbr == "* "
span = t('two_factors.auth.sms')
.col-xs-14
.input-group style="width:100%;"
input.two_factor_auth_type type="hidden" name="two_factor[type]" value="sms"
input.string.required.form-control id="two_factor_otp" name="two_fa... | Slim | 4 | gsmlg/peatio | app/views/shared/_two_factor_sms.html.slim | [
"MIT"
] |
// JVM_ANNOTATIONS
package test;
import kotlin.annotations.jvm.*;
import org.jetbrains.annotations.NotNull;
import java.util.*;
public interface ReadOnlyExtendsWildcard {
void bar(); // Non-SAM
void foo(@ReadOnly List<? extends CharSequence> x, @NotNull Comparable<? super String> y);
}
| Java | 4 | AndrewReitz/kotlin | compiler/testData/loadJava/compiledJava/mutability/ReadOnlyExtendsWildcard.java | [
"ECL-2.0",
"Apache-2.0"
] |
doPlus : Nat -> Nat -> Nat
doPlus x y = x `plus` y
doMult : Nat -> Nat -> Nat
doMult x y = x `mult` y
doMinus : Nat -> Nat -> Nat
doMinus x y = x `minus` y
| Idris | 3 | mmhelloworld/idris-jvm | tests/idris2/reg042/NatOpts.idr | [
"BSD-3-Clause"
] |
(ns lt.objs.editor.file
"Provide behaviors for a file-based editor object"
(:require [lt.object :as object]
[lt.objs.editor :as ed]
[lt.objs.document :as doc]
[lt.objs.notifos :as notifos]
[lt.objs.command :as cmd]
[clojure.string :as string]
[... | Clojure | 4 | sam-aldis/LightTable | src/lt/objs/editor/file.cljs | [
"MIT"
] |
'reach 0.1';
export const main = Reach.App(
{}, [], () => {
const arr = [1, 2, 3];
return arr["hello"];
}
);
| RenderScript | 3 | chikeabuah/reach-lang | hs/t/n/Err_Eval_RefNotInt.rsh | [
"Apache-2.0"
] |
c:\tools\msys64\usr\bin\bash -l %cd%/tensorflow/tools/ci_build/windows/libtensorflow_cpu.sh %*
| Batchfile | 0 | abhaikollara/tensorflow | tensorflow/tools/ci_build/windows/cpu/bazel/run_libtensorflow.bat | [
"Apache-2.0"
] |
package universe_test
import "testing"
option now = () => 2030-01-01T00:00:00Z
inData =
"
#datatype,string,long,string,string,dateTime:RFC3339,double
#group,false,false,true,true,false,false
#default,_result,,,,,
,result,table,_measurement,_field,_time,_value
,,0,SOYcRk,NC7N,2018-12-18T21:12:45Z,55
,,0,SOYcRk,N... | FLUX | 4 | metrico/flux | stdlib/universe/median_compression_test.flux | [
"MIT"
] |
domain: "[M, N] -> { S3[i0, i1] : i0 >= 0 and i0 <= M and i1 >= 0 and i1 <= N; S1[i0, i1] : i0 >= 0 and i0 <= M and i1 >= 0 and i1 <= N; S2[i0, i1] : i0 >= 0 and i0 <= M and i1 >= 0 and i1 <= N }"
child:
context: "[M, N] -> { [] }"
child:
schedule: "[M, N] -> [{ S1[i0, i1] -> [(-4 + 3i0 + i1)]; S2[i0, i1] -> [(... | Smalltalk | 2 | chelini/isl-haystack | test_inputs/codegen/cloog/reservoir-liu-zhuge1.st | [
"MIT"
] |
#import "GeneratedPluginRegistrant.h"
| C | 0 | hmeranda/flutter_link_preview | example/ios/Runner/Runner-Bridging-Header.h | [
"MIT"
] |
theory Wallet
imports
"../Parse"
"../Hoare/HoareTripleForBasicBlocks"
"./ToyExamplesBlocks"
"../Word_Lib/Word_Lemmas_32"
begin
(*
pragma solidity ^0.4.0;
contract Wallet {
uint256 balance;
address owner;
function Wallet() public {
balance = 0;
owner = msg.sender;
}
... | Isabelle | 4 | pirapira/eth-isabelle | example/Wallet.thy | [
"Apache-2.0"
] |
/*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibGfx/Forward.h>
#include <LibWeb/CSS/ComputedValues.h>
namespace Web::Painting {
struct BorderRadiusData {
float top_left { 0 };
float top_right { 0 };
float bottom_rig... | C | 4 | r00ster91/serenity | Userland/Libraries/LibWeb/Painting/BorderPainting.h | [
"BSD-2-Clause"
] |
[attr="--"] {} | CSS | 0 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/QLHVnSGDdGN_iDeP3OAXfQ/input.css | [
"Apache-2.0"
] |
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "AEigJ-mOGOk9"
},
"outputs": [],
"source": [
"# Copyright 2021 DeepMind Technologies Limited\n",
"#\n",
"# Licensed under the Apache License, Version 2.0 (the \"Lice... | Jupyter Notebook | 5 | kawa-work/deepmind-research | perceiver/colabs/optical_flow.ipynb | [
"Apache-2.0"
] |
FORMAT: 1A
# Beehive API
# Honey [/honey]
## Retrieve Honey [GET]
+ Request (application/json)
+ Headers
Accept: application/json
+ Response 200 (application/json)
+ Headers
X-Test: Adam
+ Body
{}
| API Blueprint | 3 | tomoyamachi/dredd | packages/dredd-transactions/test/fixtures/apib/http-headers.apib | [
"MIT"
] |
import "./no-warn"
it("global", () => {
expect(typeof global).toBe("object");
});
it("__filename", () => {
expect(typeof __filename).toBe("string");
});
it("__dirname", () => {
expect(typeof __dirname).toBe("string");
});
| JavaScript | 3 | fourstash/webpack | test/configCases/web/node-source-future-defaults/index.js | [
"MIT"
] |
@program lib-ignore
def noisy_pmatch "$lib/match" match "noisy_pmatch" call
q
@register lib-ignore=lib/ignore
do @set $lib/ignore=_defs/ref_lib_ignore:{ref:$lib/ignore}
@set $lib/ignore=_docs:@list $lib/ignore=1-59
@set $lib/ignore=_defs/ignores?:ref_lib_ignore "rtn-ignores?" call
@set $lib/ignore=_defs/ignore-listify:... | MUF | 4 | natmeox/hlm-suite | lib-ignore.muf | [
"MIT"
] |
// run-pass
pub fn foo() -> isize { 10 }
| Rust | 1 | Eric-Arellano/rust | src/test/ui-fulldeps/mod_dir_simple/test.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
<div class="hidden">
\begin{code}
main = putStrLn "Easter Egg: to force Makefile"
\end{code}
</div>
{#ASD}
=======
Abstract Refinement Types
-------------------------
<br>
<br>
**Ranjit Jhala**
University of California, San Diego
<br>
<br>
Joint work with:
N. Vazou, E. Seidel, P. Rondon, D. Vytiniotis, ... | Literate Haskell | 1 | curiousleo/liquidhaskell | docs/slides/BOS14/lhs/Index.lhs | [
"MIT",
"BSD-3-Clause"
] |
%!PS
% chars-12.ps
/inch {72 mul} def
/Palatino-Roman
12 72 div inch
selectfont
% 25 chars in first row: 33-57
0.3 inch 2.0 inch moveto
3. 0. (!"#$%&'()*+,-./0123456789) ashow
% 34 chars in second row: 58-91
0.3 inch 1.4 inch moveto
3. 0. (:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[) ashow
% 34 chars in third row: 93-126
0... | PostScript | 4 | andyfuturex/tess-two | tess-two/jni/com_googlecode_leptonica_android/src/prog/fonts/chars-12.ps | [
"Apache-2.0"
] |
component {
public string function getStringFromStruct(required struct shelfLevelX,required string keyToCheck) {
if(!isNull(shelfLevelX )) {
if(StructKeyExists(shelfLevelX , keyToCheck)) {
return shelfLevelX [keyToCheck];
}
}
return '';
}
} | ColdFusion CFC | 4 | tonym128/CFLint | src/test/resources/com/cflint/tests/VariableNameChecker/sample1_635.cfc | [
"BSD-3-Clause"
] |
// Copyright 2020 The gRPC 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 agreed t... | Protocol Buffer | 4 | warlock135/grpc | src/proto/grpc/testing/xds/v3/fault_common.proto | [
"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.
*---------------------------------------------------------------... | TypeScript | 4 | sbj42/vscode | src/vs/server/node/remoteExtensionManagement.ts | [
"MIT"
] |
KIDS Distribution saved on Jan 12, 2022@14:21:26
Test Release SAMI*18.0*15 SEQ #15 (sami-18-x-15)
**KIDS**:SAMI*18.0*15^
**INSTALL NAME**
SAMI*18.0*15
"BLD",11517,0)
SAMI*18.0*15^SAMI^0^3220112^n
"BLD",11517,4,0)
^9.64PA^^0
"BLD",11517,6.3)
6
"BLD",11517,"INID")
^n
"BLD",11517,"INIT")
"BLD",11517,"KRN",0)
^9.67PA^1.5... | Genshi | 5 | OSEHRA/SAMI-VAPALS-ELCAP | dist/18-15/t3/sami-18-15-t3.kid | [
"Apache-2.0"
] |
!macro customInstall
WriteRegStr SHCTX "SOFTWARE\RegisteredApplications" "Wexond" "Software\Clients\StartMenuInternet\Wexond\Capabilities"
WriteRegStr SHCTX "SOFTWARE\Classes\Wexond" "" "Wexond HTML Document"
WriteRegStr SHCTX "SOFTWARE\Classes\Wexond\Application" "AppUserModelId" "Wexond"
WriteRegStr SHCTX "S... | NSIS | 3 | sentialx/wexond | static/installer.nsh | [
"MIT"
] |
#ifndef _NetClient_H_
#define _NetClient_H_
#include <map>
#include <string>
#include <cstring>
#include <stdbool.h>
#include <stdlib.h>
#include <glib.h>
#include <glib/gstdio.h>
#include <glib-object.h>
#include <json-glib/json-glib.h>
#include <curl/curl.h>
using namespace std;
typedef enum {
{{prefix}}_ERROR_NO... | HTML+Django | 4 | MalcolmScoffable/openapi-generator | modules/openapi-generator/src/main/resources/cpp-tizen-client/netclient-header.mustache | [
"Apache-2.0"
] |
package io.swagger.common {
import io.swagger.common.ApiUserCredentials;
/**
* @private
* Internal class for the Rest client
*/
internal class ApiUrlHelper {
private static const API_URL_KEY:String = "api_key";
private static const AUTH_TOKEN_URL_KEY:String = "auth_token";
private static const HTTP_UR... | ActionScript | 5 | wwadge/swagger-codegen | samples/client/petstore/flash/flash/src/io/swagger/common/ApiUrlHelper.as | [
"Apache-2.0"
] |
filedesc:// . . . text/plain
1 1
URL IP-address Archive-date Content-type Archive-length | Arc | 0 | CodeMR-Models/droid | droid-core/test-skeletons/fmt/fmt-410-signature-id-580.arc | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
(* Generic lens for shell-script config files like the ones found *)
(* in /etc/sysconfig, where a string needs to be split into *)
(* single words. *)
module Shellvars_list =
autoload xfm
let eol = Util.eol
let key_re = /[A-Za-z0-9_]+/
let eq = Util... | Augeas | 4 | ckaenzig/puppet-varnish | lib/augeas/lenses/shellvars_list.aug | [
"Apache-2.0"
] |
=pod
=head1 NAME
PKCS7_type_is_other - determine content type of PKCS#7 envelopedData structure
=head1 SYNOPSIS
#include <openssl/pkcs7.h>
int PKCS7_type_is_other(PKCS7 *p7);
=head1 DESCRIPTION
PKCS7_type_is_other() returns the whether the content type of a PKCS#7 envelopedData
structure is one of the followin... | Pod | 3 | pmesnier/openssl | doc/man3/PKCS7_type_is_other.pod | [
"Apache-2.0"
] |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | AspectJ | 4 | Antholoj/netbeans | java/performance/aspectj/SwingThreadRuleCheck.aj | [
"Apache-2.0"
] |
/*
Copyright (c) 2003-2006 Gino van den Bergen / Erwin Coumans http://continuousphysics.com/Bullet/
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this... | C | 5 | seeclong/apollo | third_party/tf2/include/tf2/LinearMath/QuadWord.h | [
"Apache-2.0"
] |
/* @generated */
digraph cfg {
"dealloc#Test#instance.5b6eb1b3af87ac0463c4245d2b33c913_1" [label="1: Start Test.dealloc\nFormals: self:Test*\nLocals: \n " color=yellow style=filled]
"dealloc#Test#instance.5b6eb1b3af87ac0463c4245d2b33c913_1" -> "dealloc#Test#instance.5b6eb1b3af87ac0463c4245d2b33c913_3" ;
"deallo... | Graphviz (DOT) | 4 | livinlife6751/infer | infer/tests/codetoanalyze/objc/frontend/property_in_protocol/Test.m.dot | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.