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 |
|---|---|---|---|---|---|
#!/bin/sh
# Install bazel remote cache proxy
# This is temporary until the feature is no longer experimental on CircleCI.
# See remote cache documentation in /docs/BAZEL.md
set -u -e
readonly DOWNLOAD_URL="https://5-116431813-gh.circle-artifacts.com/0/pkg/bazel-remote-proxy-$(uname -s)_$(uname -m)"
curl --fail -o ~/... | Shell | 4 | coreyscherbing/angular | .circleci/setup_cache.sh | [
"MIT"
] |
cdef dict attrname_to_abbrevs
cdef enum c_FreqGroup:
# Mirrors FreqGroup in the .pxy file
FR_ANN = 1000
FR_QTR = 2000
FR_MTH = 3000
FR_WK = 4000
FR_BUS = 5000
FR_DAY = 6000
FR_HR = 7000
FR_MIN = 8000
FR_SEC = 9000
FR_MS = 10000
FR_US = 11000
FR_NS = 12000
FR_UND ... | Cython | 4 | CJL89/pandas | pandas/_libs/tslibs/dtypes.pxd | [
"BSD-3-Clause"
] |
// top-level actor objects are supported
actor Counter {
flexible shared func bad_private_shared() { }; // unsupported private shared
public func ok_actorarg(a:actor{}) : async () {};
public func ok_functionarg(f:shared()->async ()) : async () {};
public func ok_oneway(){}; // supported oneway
... | Modelica | 4 | olaszakos/motoko | test/run-drun/unsupported.mo | [
"Apache-2.0"
] |
(import hyper json)
(defn http2bin [path]
(with [[conn (hyper.HTTPConnection "http2bin.org")]]
(.request conn "GET" path)
(-> (.get_response conn) (.read) (json.loads))))
(-> (http2bin "/ip") (get "origin") (print))
| Hy | 3 | dhdavvie/hyper | examples/ip.hy | [
"MIT"
] |
mail = load '${in}' using PigStorage();
store mail into '${out}' using PigStorage(); | PigLatin | 2 | alexvanboxel/luigiext-gcloud | examples/queries/pig_foreach_example.pig | [
"Apache-2.0"
] |
import { element, by } from 'protractor';
import { AppPage } from './app.po';
describe('providers App', () => {
let page: AppPage;
beforeEach(async () => {
page = new AppPage();
await page.navigateTo();
});
it('should display header that says Users list', async () => {
expect(await page.getTitleT... | TypeScript | 4 | John-Cassidy/angular | aio/content/examples/providers/e2e/src/app.e2e-spec.ts | [
"MIT"
] |
{
"cells": [
{
"metadata": {
"id": "DhWmZgAVwDGu",
"colab_type": "text"
},
"cell_type": "markdown",
"source": [
"Copyright 2021 Google LLC\n",
"\n",
"Licensed under the Apache License, Version 2.0 (the \"License\");\n",
"you may not use this ... | Jupyter Notebook | 5 | shaun95/google-research | aptamers_mlpd/figures/Figure_2_Machine_learning_guided_aptamer_discovery_(submission).ipynb | [
"Apache-2.0"
] |
require go-cross-canadian.inc
require go-${PV}.inc
| BitBake | 0 | cmonr/meta-pelion-edge | recipes-devtools/go/go-cross-canadian_1.14.bb | [
"Apache-2.0"
] |
package jadx.tests.functional;
import org.junit.jupiter.api.Test;
import jadx.core.export.TemplateFile;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
public class TemplateFileTest {
@Test
public void testBuildGradle() throws Exception {
TemplateFile tm... | Java | 4 | Dev-kishan1999/jadx | jadx-core/src/test/java/jadx/tests/functional/TemplateFileTest.java | [
"Apache-2.0"
] |
"""Support for the Airzone diagnostics."""
from __future__ import annotations
from typing import Any
from aioairzone.const import API_MAC, AZD_MAC
from homeassistant.components.diagnostics.util import async_redact_data
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_UNIQUE_I... | Python | 4 | liangleslie/core | homeassistant/components/airzone/diagnostics.py | [
"Apache-2.0"
] |
ic =: 4 : 0
defn =. 'pdefn' conew~ x;y
DU =. get_DU__defn ''
coerase"0 (#~ >:&".&>&defn) conl 1
DU
)
NB. =========================================================
cocurrent 'pcommon'
NB. split into (chars,.prec)
sp1 =: ((,(<-~2),~<)`(}:@[ (,>:&.>) {:@[)@.(' '=])~ ,@boxopen)/@:|.&.(' '&,)
sp =: [: ({."1 ,. [:]&.> _ (_1... | J | 4 | mlochbaum/ILanguage | ic/ic.ijs | [
"0BSD"
] |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#include "precomp.hpp"
#include "opencv2/videoio/registry.hpp"
#include "videoio_registry.hpp"
using namespace cv;
// Legac... | C++ | 4 | thisisgopalmandal/opencv | modules/videoio/src/videoio_c.cpp | [
"BSD-3-Clause"
] |
BITS 32
push eax
hlt
| Assembly | 0 | brenden7158/v86 | tests/expect/tests/push.asm | [
"BSD-2-Clause"
] |
CREATE TABLE `tb_fwnltgnpeg` (
`col_gzxmlukzgv` smallint(169) unsigned zerofill NOT NULL,
PRIMARY KEY (`col_gzxmlukzgv`),
UNIQUE INDEX `uk_gwlvlnvrkh` (`col_gzxmlukzgv`),
UNIQUE INDEX `uk_ygsnwxzroc` (`col_gzxmlukzgv`)
) DEFAULT CHARSET=utf8;
RENAME TABLE `tb_fwnltgnpeg` TO `tb_hmfoniytbf`;
ALTER TABLE `tb_hmfo... | SQL | 2 | yuanweikang2020/canal | parse/src/test/resources/ddl/alter/test_8.sql | [
"Apache-2.0"
] |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4.233 4.233" height="16" width="16"><path d="M.15 2.992c-.198.1-.2.266-.002.365l1.604.802a.93.93 0 00.729-.001l1.602-.801c.198-.1.197-.264 0-.364l-.695-.348c-1.306.595-2.542 0-2.542 0m-.264.53l.658-.329c.6.252 1.238.244 1.754 0l.659.329-1.536.768zM.15 1.935c-.198.1-.... | SVG | 0 | MMeent/pdf.js | web/images/toolbarButton-viewLayers.svg | [
"Apache-2.0"
] |
plot sin(x) with lines
replot cos(x) with lines
| Gnuplot | 2 | Iinguistics/algorithm-archivists.github.io | contents/plotting/code/gnuplot/sine.gp | [
"MIT"
] |
path = require 'path'
fs = require 'fs'
script = require './pogoAssertions'
withArgsShouldOutput = script.withArgsShouldOutput
childProcess = require 'child_process'
net = require 'net'
require 'chai'.should()
describe 'pogo command'
it "`process.argv` contains 'pogo', the name of the
script executed, and... | PogoScript | 5 | featurist/pogoscript | test/shell/pogoSpec.pogo | [
"BSD-2-Clause"
] |
# Copyright (c) 2018-2021, Carnegie Mellon University
# See LICENSE for details
Class(SMP_Unparser, SMP_UnparseMixin, CUnparserProg);
Class(SMP_MacroUnparser, SMP_UnparseMixin, CMacroUnparserProg);
Class(OpenMP_Unparser, OpenMP_UnparseMixin, CUnparserProg);
Class(OpenMP_MacroUnparser, OpenMP_UnparseMixin,... | GAP | 4 | sr7cb/spiral-software | namespaces/spiral/libgen/recgt.gi | [
"BSD-2-Clause-FreeBSD"
] |
;;
;
; Name: stager_sock_bind
; Qualities: Can Have Nulls
; Platforms: MacOS X / PPC
; Authors: H D Moore <hdm [at] metasploit.com>
; Version: $Revision: 1612 $
; License:
;
; This file is part of the Metasploit Exploit Framework
; and is subject to the same licenses and copyrights ... | Assembly | 3 | OsmanDere/metasploit-framework | external/source/shellcode/osx/ppc/stager_sock_bind.asm | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
MyConvertFrom-StringData @'
string1=fallback string1 for en-US
string2=fallback string2 for en-US
'@
42 | PowerShell | 2 | Jellyfrog/PowerShell | test/powershell/Language/Scripting/I18n.Tests_fallback.psd1 | [
"MIT"
] |
% Generic filtering of nonterminals
% Jim Cordy, May 2010
define xml_source_coordinate
'< [SPOFF] 'source [SP] 'file=[stringlit] [SP] 'startline=[stringlit] [SP] 'endline=[stringlit] '> [SPON] [NL]
end define
define end_xml_source_coordinate
[NL] '< [SPOFF] '/ 'source '> [SPON] [NL]
end define
define source_... | TXL | 5 | coder-chenzhi/SQA | SourcererCC/parser/java/txl/generic-filter.txl | [
"Apache-2.0"
] |
attribute [reducible]
definition nat_has_add2 : has_add nat :=
has_add.mk (λ x y : nat, x + y)
attribute [reducible]
definition nat_has_add3 : nat → has_add nat :=
λ n, has_add.mk (λ x y : nat, x + y)
open tactic
set_option pp.all true
-- Example where instance canonization does not work.
-- Remark: we can "fix" it ... | Lean | 5 | ericrbg/lean | tests/lean/defeq_simp4.lean | [
"Apache-2.0"
] |
fileFormatVersion: 2
guid: cfba650367f74698998618a4a140d696
timeCreated: 1613591825 | Unity3D Asset | 0 | samisuleman10/open-project-1 | UOP1_Project/Assets/Scripts/SaveSystem/SerializableScriptableObject.cs.meta | [
"Apache-2.0"
] |
call %SCRIPT_HELPERS_DIR%\setup_pytorch_env.bat
echo Copying over test times file
copy /Y "%PYTORCH_FINAL_PACKAGE_DIR_WIN%\.pytorch-test-times.json" "%TEST_DIR_WIN%"
pushd test
echo Run jit_profiling tests
python run_test.py --include test_jit_legacy test_jit_fuser_legacy --verbose --determine-from="%1"
if ... | Batchfile | 3 | Hacky-DH/pytorch | .jenkins/pytorch/win-test-helpers/test_python_jit_legacy.bat | [
"Intel"
] |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE Typ... | Haskell | 5 | wwadge/swagger-codegen | samples/server/petstore/haskell-servant/lib/SwaggerPetstore/API.hs | [
"Apache-2.0"
] |
fn bar<const X: u8, 'a>(_: &'a ()) {
//~^ ERROR lifetime parameters must be declared prior to const parameters
}
fn foo<const X: u8, T>(_: &T) {}
fn main() {}
| Rust | 4 | ohno418/rust | src/test/ui/const-generics/const-param-before-other-params.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
default
{
state_entry()
{
llSetParcelMusicURL("http://www.archive.org/download/Torley_Wong_-_The_Final_Selection/Torley_Wong-Lovers__Dance.mp3");
}
}
| LSL | 3 | Misterblue/opensim | bin/assets/ScriptsAssetSet/llSetParcelMusicURL.lsl | [
"BSD-3-Clause"
] |
program HelloWorld;
{$APPTYPE CONSOLE}
begin
WriteLn('Hello World');
end. | Pascal | 1 | venusing1998/hello-world | d/delphi.pas | [
"MIT"
] |
--
section
variable A : Type
parameter a : A
end
section
variable A : Type
variable a : A
end
| Lean | 4 | JLimperg/lean | tests/lean/var.lean | [
"Apache-2.0"
] |
domain: "[M, N, O, P, Q, R, S, T, U] -> { S1[i0, i1, i2] : i0 >= 1 and i0 <= -1 + O and i1 >= Q and i1 <= -1 + N and i2 >= P and i2 <= -1 + M; S3[i0, i1, i2] : i0 >= 1 and i0 <= -1 + O and i1 >= 1 and i1 <= -1 + N and i2 >= P and i2 <= -1 + M; S4[i0, i1, i2] : i0 >= 1 and i0 <= -1 + O and i1 >= 1 and i1 <= -1 + N and i... | Smalltalk | 2 | chelini/isl-haystack | test_inputs/codegen/cloog/reservoir-long.st | [
"MIT"
] |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
#pragma once
#include "ConvolutionEngine.h"
#include "BatchNormalizationEngine.h"
namespace Microsoft { namespace MSR { namespace CNTK {
template <class Ele... | C | 4 | burhandodhy/CNTK | Source/Math/CuDnnFactories.h | [
"MIT"
] |
#pragma once
#include "envoy/compression/compressor/factory.h"
#include "envoy/extensions/compression/brotli/compressor/v3/brotli.pb.h"
#include "envoy/extensions/compression/brotli/compressor/v3/brotli.pb.validate.h"
#include "source/common/http/headers.h"
#include "source/extensions/compression/brotli/compressor/br... | C | 4 | dcillera/envoy | source/extensions/compression/brotli/compressor/config.h | [
"Apache-2.0"
] |
<%--
Copyright 2012 Netflix, 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 by applicable law or agree... | Groovy Server Pages | 3 | claymccoy/asgard | grails-app/views/fastProperty/create.gsp | [
"Apache-2.0"
] |
unique template site/one/onevm;
include 'components/chkconfig/config';
# set opennebula map
include 'quattor/aii/opennebula/schema';
bind "/system/opennebula" = opennebula_vmtemplate;
include 'site/config-vm';
include 'quattor/aii/opennebula/default';
"/software/packages/{acpid}" = dict();
"/software/components/ch... | Pan | 3 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Pan/onevm.pan | [
"MIT"
] |
it("should compile non-immutable exports with missing semicolons", function(){
require("./exportvar");
});
| JavaScript | 2 | 1shenxi/webpack | test/cases/compile/issue2221/index.js | [
"MIT"
] |
#tag Module
Protected Module HooksWFS
#tag Method, Flags = &h21
Private Function IdleHookCallbackFunction(nCode as Integer, wParam as Integer, lParam as Integer) As Integer
if nCode >= 0 then
if mIdleHandler <> nil then
' Call the idle handler for the user
mIdleHandler.Idle
end
en... | REALbasic | 4 | bskrtich/WFS | Windows Functionality Suite/Miscellaneous/Modules/HooksWFS.rbbas | [
"MIT"
] |
<html>
<head>
<title>AutoMLBoard</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% load staticfiles %}
<!-- jquery and bootstrap dependency -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJ... | HTML | 3 | firebolt55439/ray | python/ray/tune/automlboard/templates/job.html | [
"Apache-2.0"
] |
// @target: es5
// @module: esnext
// @experimentalDecorators: true
declare function foo(...args: any[]): any;
@foo
export default class C {
static x() { return C.y; }
static y = 1
p = 1;
method() { }
} | TypeScript | 3 | nilamjadhav/TypeScript | tests/cases/conformance/externalModules/esnext/esnextmodulekindWithES5Target11.ts | [
"Apache-2.0"
] |
<div class="attribute" {{modifier}} {{! comment}}>
Hello
</div>
<div>
Hello
</div>
<div>
hi
</div>
<div>
A long enough string to trigger a line break that would prevent wrapping.
</div>
<div>
A long enough string to trigger a line break that would prevent wrapping more.
</div>
<div>
A long enough strin... | Handlebars | 2 | tumido/prettier | tests/format/handlebars/element-node/element-node.hbs | [
"MIT"
] |
//
// DoraemonDemoImageViewController.h
// DoraemonKitDemo
//
// Created by yixiang on 2019/6/18.
// Copyright © 2019年 yixiang. All rights reserved.
//
#import "DoraemonDemoBaseViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface DoraemonDemoImageViewController : DoraemonDemoBaseViewController
@end
NS_ASSUME_N... | C | 3 | wangfengye/DoraemonKit | iOS/DoraemonKitDemo/DoraemonKitDemo/DemoVC/Net/Image/DoraemonDemoImageViewController.h | [
"Apache-2.0"
] |
size: 2048px 1200px;
dpi: 240;
limit-x: 1 5;
limit-y: 0 10000;
scale-y: log;
axes {
label-format-y: base(10);
}
grid {
color: rgba(0 0 0 0.05);
}
lines {
data-x: csv("test/testdata/log_example.csv" x);
data-y: csv("test/testdata/log_example.csv" y);
}
| CLIPS | 3 | asmuth-archive/travistest | test/examples/charts_custom_logarithmic_scale.clp | [
"Apache-2.0"
] |
<mat-expansion-panel>
<mat-expansion-panel-header>
<mat-panel-title>
Enabled-by-default column resize for MatTable
</mat-panel-title>
</mat-expansion-panel-header>
<default-enabled-column-resize-example></default-enabled-column-resize-example>
</mat-expansion-panel>
<mat-expansion-panel>
<mat-ex... | HTML | 4 | tungyingwaltz/components | src/dev-app/column-resize/column-resize-home.html | [
"MIT"
] |
@import './child.css';
h1 {
color: gray;
}
| CSS | 2 | acidburn0zzz/parcel | packages/examples/kitchen-sink/src/styles.css | [
"MIT"
] |
.foo {margin:var( --n-gutterSize) 0 var( --gutterSize ) var( --n-gutterSize );
}
| CSS | 2 | fuelingtheweb/prettier | tests/stylefmt/var-notation/var-notation.css | [
"MIT"
] |
package com.bumptech.glide.testutil;
import static com.google.common.truth.Truth.assertThat;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
/** Shared utility classes for tests. */
// Public API.
@SuppressWarnings("WeakerAccess")
public final class TestUtil {
private ... | Java | 4 | qq411860630/glide | testutil/src/main/java/com/bumptech/glide/testutil/TestUtil.java | [
"Apache-2.0"
] |
RSpec.shared_examples_for 'Msf::DBManager::Import::Spiceworks' do
it { is_expected.to respond_to :import_spiceworks_csv }
end
| Ruby | 3 | OsmanDere/metasploit-framework | spec/support/shared/examples/msf/db_manager/import/spiceworks.rb | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
--TEST--
Bug #38850 (lookupNamespaceURI does not return default namespace)
--EXTENSIONS--
dom
--FILE--
<?php
$xml = <<<HERE
<?xml version="1.0" ?>
<foo xmlns="http://www.example.com/ns/foo" />
HERE;
$doc = new DOMDocument();
$doc->loadXML($xml);
$root = $doc->documentElement;
print $root->lookupNamespaceURI(NULL);
... | PHP | 3 | NathanFreeman/php-src | ext/dom/tests/bug38850.phpt | [
"PHP-3.01"
] |
@0x9ef128e10a8010b2;
struct NullableUInt64
{
union
{
value @0 : UInt64;
null @1 : Void;
}
}
struct Tuple
{
nullable @0 : NullableUInt64;
}
struct Message
{
nullable @0 : NullableUInt64;
array @1 : List(NullableUInt64);
tuple @2 : Tuple;
}
| Cap'n Proto | 2 | pdv-ru/ClickHouse | tests/queries/0_stateless/format_schemas/02030_capnp_nullable.capnp | [
"Apache-2.0"
] |
-@ import val it: InvoiceInfo
%h1 Paid Invoice
- for { invoice <- paidInvoiceOption }
- render(webPath("Invoice.scaml"), Map("invoice" -> invoice))
- render(webPath("InvoiceAddress.scaml"), Map("address" -> invoice.address))
| Scaml | 3 | pkeshab/eventsourced-example | src/main/webapp/WEB-INF/org/eligosource/eventsourced/example/web/Invoice.paid.scaml | [
"Apache-2.0"
] |
sleep 1
t app key mode
sleep 5
t app key record
sleep 1
reboot yes
| AGS Script | 1 | waltersgrey/autoexechack | HERO/TimeLapse/10Seconds/autoexec.ash | [
"MIT"
] |
/**
* This file is part of the Phalcon Framework.
*
* (c) Phalcon Team <team@phalcon.io>
*
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
namespace Phalcon\Mvc\Micro;
use Phalcon\Mvc\Micro;
/**
* Allows to implement Phalcon... | Zephir | 4 | tidytrax/cphalcon | phalcon/Mvc/Micro/MiddlewareInterface.zep | [
"BSD-3-Clause"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M12 5c-1.93 0-5 4.91-5 9 0 2.76 2.24 5 5 5s5-2.24 5-5c0-4.09-3.07-9-5-9zm1 13c-3.01 0-5-2-5-5 0-.55.45-1 1-1s1 .45 1 1c0 2.92 2.42 3 3 3 .55 0 1 .45 1 1s-.4... | JavaScript | 3 | dany-freeman/material-ui | packages/mui-icons-material/lib/esm/EggTwoTone.js | [
"MIT"
] |
select hostname();
select hostName() h, count() from cluster(test_cluster_two_shards, system.one) group by h;
| SQL | 3 | pdv-ru/ClickHouse | tests/queries/0_stateless/02001_hostname_test.sql | [
"Apache-2.0"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "m9.31 17 2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44L9.31 17zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11... | JavaScript | 3 | good-gym/material-ui | packages/material-ui-icons/lib/esm/EventBusy.js | [
"MIT"
] |
At: "import-014-c.hac":17:
parse error: syntax error
parser stacks:
state value
#STATE# (imported-root-list) [7:1--8:27]
#STATE# (process-prototype) [10:1..48]
#STATE# { [11:1]
#STATE# list<(def-body-item)>: (instance-decl) ... [12:2--13:15]
#STATE# keyword: prs [16:2..4]
#STATE# (null)
#STATE# { [16:6]
#STATE# (prs-li... | Bison | 1 | broken-wheel/hacktist | hackt_docker/hackt/test/lexer/import-014-c.stderr.bison | [
"MIT"
] |
<div class="modal error hidden" id="modal-cancel-subscription">
<!-- <button class="close"><img src="../assets/cross.svg" alt="close" title="close message"></button> -->
<h3>CANCEL SUBSCRIPTION</h3>
<p>are you sure you'd like to cancel your subscription?</p>
<b></b>
<section>
<p cl... | Kit | 3 | pws1453/web-client | source/imports/app/account-modal-cancel-subscription.kit | [
"MIT"
] |
.class Landroid/support/v4/app/BackStackRecord$1;
.super Ljava/lang/Object;
.source "BackStackRecord.java"
# interfaces
.implements Landroid/support/v4/app/FragmentTransitionCompat21$ViewRetriever;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroid/support/v4/app/BackStackRecor... | Smali | 3 | jarekankowski/pegasus_spyware | sample3/decompiled_raw/smali/android/support/v4/app/BackStackRecord$1.smali | [
"MIT"
] |
github: [preactjs]
open_collective: preact
| YAML | 5 | webschik/preact | .github/FUNDING.yml | [
"MIT"
] |
# Copyright 2015 Reservoir Labs, Inc.
# All rights reserved.
#
# Contributed by Bob Rotsted
module TrackDHCP;
export {
global ip_to_mac: table[addr] of string &synchronized &write_expire=1day;
redef record Conn::Info += {
orig_mac: string &optional &log;
resp_mac: string &optional &log;... | Bro | 4 | reservoirlabs/bro-scripts | track-dhcp/track-dhcp.bro | [
"Apache-2.0"
] |
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<ProductVersion>3.5</ProductVersion>
<ProjectGuid>{9d6d09c7-2c9e-4e67-abbf-8cfeaf30bade}</ProjectGuid>
<OutputType>Library</OutputType>
... | Oxygene | 1 | teamro/elements-samples | Oxygene/Java/Android/com.remobjects.CardView/com.remobjects.CardView.oxygene | [
"MIT"
] |
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="require-trusted-types-for 'script'; trusted-types *">
</head>
<body>
<webview preload="../module/isolated-ping.js" src="about:blank"/>
</body>
</html>
| HTML | 1 | lingxiao-Zhu/electron | spec/fixtures/pages/webview-trusted-types.html | [
"MIT"
] |
echo n2-$2
echo $2 >>$2.count
echo $2 >>in.countall
# we deliberately use 'redo' here instead of redo-ifchange, because this *heavily*
# stresses redo's locking when building in parallel. We end up with 100
# different targets that all not only depend on this file, but absolutely must
# acquire the lock on this file,... | Stata | 3 | BlameJohnny/redo | t/950-curse/default.n2.do | [
"Apache-2.0"
] |
"""Constants for the flo integration."""
import logging
LOGGER = logging.getLogger(__package__)
CLIENT = "client"
DOMAIN = "flo"
FLO_HOME = "home"
FLO_AWAY = "away"
FLO_SLEEP = "sleep"
FLO_MODES = [FLO_HOME, FLO_AWAY, FLO_SLEEP]
| Python | 3 | tbarbette/core | homeassistant/components/flo/const.py | [
"Apache-2.0"
] |
{
"Version" : 0.2,
"ModuleName" : "ungif",
"Options" : {
"Debug" : false,
"Optimization" : "None",
"TargetType" : "StaticLibrary",
"TargetFileName" : "ungif",
"BuildBitDepth" : "Bits32"
},
"Configurations" : [
{
"Name" : "Debug",
"Options" : {
... | Ecere Projects | 2 | N-eil/ecere-sdk | deps/libungif-4.1.1/libungif.epj | [
"BSD-3-Clause"
] |
# pylint: skip-file
from common.kalman.simple_kalman_impl import KF1D as KF1D
assert KF1D
| Python | 1 | Neptos/openpilot | common/kalman/simple_kalman.py | [
"MIT"
] |
// Copyright 2018 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.
//go:build ppc64 || ppc64le
// +build ppc64 ppc64le
#include "go_asm.h"
#include "textflag.h"
TEXT ·IndexByte<ABIInternal>(SB),NOSPLIT|NOFRAME,$0-40
#ifndef G... | GAS | 5 | rleungx/go | src/internal/bytealg/indexbyte_ppc64x.s | [
"BSD-3-Clause"
] |
public class Test : GLib.Object {
construct {
stdout.printf("Test from main directory\n");
}
}
| Vala | 3 | kira78/meson | test cases/vala/22 same target in directories/Test.vala | [
"Apache-2.0"
] |
// name: flute.ck
// desc: demo of Faust chugin in action!
// instantiate and connect faust => ck
Faust flute => dac;
// evaluate Faust code
flute.eval(`
process = pm.flute_ui_MIDI <: _,_;
`);
// dump parameters
flute.dump();
// time loop
while( true )
{
flute.v("/flute/gate",1); // start note
flute.v("/flute... | ChucK | 4 | ccdarabundit/chugins | Faust/examples/flute.ck | [
"MIT"
] |
very foo is new Bar with a, b, c
| Dogescript | 0 | erinkeith/dogescript | test/spec/var/new/multi-args-comma/source.djs | [
"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 ma... | Haxe | 5 | Jimexist/thrift | lib/haxe/src/org/apache/thrift/helper/BitConverter.hx | [
"Apache-2.0"
] |
DROP TABLE IF EXISTS hdb_catalog.hdb_source_catalog_version;
DROP FUNCTION IF EXISTS hdb_catalog.insert_event_log(text, text, text, text, json);
DROP TABLE IF EXISTS hdb_catalog.event_invocation_logs;
DROP TABLE IF EXISTS hdb_catalog.event_log;
| SQL | 1 | gh-oss-contributor/graphql-engine-1 | server/src-rsr/drop_pg_source.sql | [
"Apache-2.0",
"MIT"
] |
This utility only reads in a file and prints it out
Read:
>+[>,]
Rewind:
<[<]
Write:
>>[.>]
| Brainfuck | 1 | RubenNL/brainheck | examples/cat-1.bf | [
"Apache-2.0"
] |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
Describe "Hierarchical paths" -Tags "CI" {
BeforeAll {
$data = "Hello World"
Setup -File testFile.txt -Content $data
}
It "should work with Join-Path " {
$testPath = Join-Path $TestDrive testFile.txt
Ge... | PowerShell | 4 | rdtechie/PowerShell | test/powershell/Modules/Microsoft.PowerShell.Management/Hierarchical-Path.Tests.ps1 | [
"MIT"
] |
package com.baeldung.autovalue;
public class MutableMoney {
@Override
public String toString() {
return "MutableMoney [amount=" + amount + ", currency=" + currency + "]";
}
public long getAmount() {
return amount;
}
public void setAmount(long amount) {
this.amount = am... | Java | 4 | zeesh49/tutorials | autovalue/src/main/java/com/baeldung/autovalue/MutableMoney.java | [
"MIT"
] |
MEMORY
{
ram (rw) : o = 0x0000400, l = 31k
rom (rx) : o = 0x00A0000, l = 384k
nrom(rx) : o = 0x0000F000, l = 4k
xram(rw) : o = 0x00028000, l = 4k
}
_system_stack_size = 0x800;
SECTIONS
{
/* Variable Vector Section */
.var_vects 0x000FA000 :
{
KEEP(*( .var_vects))
} > rom
.text 0x000DD000 :
{
*(.t... | Linker Script | 4 | Davidfind/rt-thread | bsp/m16c62p/m16c62p.ld | [
"Apache-2.0"
] |
import QtQuick 2.3
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.4
import QGroundControl.ScreenTools 1.0
import QGroundControl.Palette 1.0
Item {
id: _root
signal clicked()
property alias buttonImage: button.source
property real radius: ... | QML | 4 | uavosky/uavosky-qgroundcontrol | src/QmlControls/RoundButton.qml | [
"Apache-2.0"
] |
#AutoIt3Wrapper_Change2CUI=y
ConsoleWrite("Hello World !")
sleep(99999999)
| AutoIt | 1 | tanay-pingalkar/HelloWorld | autoit/HelloWorld.au3 | [
"MIT"
] |
//===--- UnavailableFoundationMethodThunks.mm -----------------------------===//
//
// 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/L... | Objective-C++ | 3 | lwhsu/swift | stdlib/private/StdlibUnittestFoundationExtras/UnavailableFoundationMethodThunks.mm | [
"Apache-2.0"
] |
#! /bin/sh /usr/share/dpatch/dpatch-run
## 12_arpa_inet_header.dpatch by Luciano Bello <luciano@linux.org.ar>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: aviod the "implicit declaration of function 'ntohs'" warning
@DPATCH@
diff -urNad dsniff-2.4b1+debian~/decode_aim.c dsniff-2.4b1+d... | Darcs Patch | 4 | acheong08/dsniff | debian/patches/12_arpa_inet_header.dpatch | [
"BSD-3-Clause"
] |
source ./test-functions.sh
install_service
useradd wagner
echo 'RUN_AS_USER=wagner' > /test-service/spring-boot-app.conf
useradd phil
chown phil /test-service/spring-boot-app.jar
start_service
await_app
ls -la /var/log/spring-boot-app.log
| Shell | 3 | yiou362/spring-boot-2.2.9.RELEASE | spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/src/test/resources/scripts/launch-with-run-as-user-preferred-to-jar-owner.sh | [
"Apache-2.0"
] |
stocks
load tsla
bt
whatif
whatif -n 2.34
whatif 2021-01-01
ema
ema_cross
rsi | Gosu | 2 | minhhoang1023/GamestonkTerminal | scripts/test_stocks_bt.gst | [
"MIT"
] |
(set-info :smt-lib-version 2.6)
(set-logic QF_UFLRA)
(set-info :source |CPAchecker with k-induction on SV-COMP14 program using MathSAT5, submitted by Philipp Wendler, http://cpachecker.sosy-lab.org|)
(set-info :category "industrial")
(set-info :status unsat)
(define-fun _1 () Bool true)
(define-fun _2 () Bool false)
... | SMT | 2 | livinlife6751/infer | sledge/test/smt/QF_UFLRA/cpachecker-induction-svcomp14/cpachecker-induction.32_1_cilled_true-unreach-call_ok_nondet_linux-3.4-32_1-drivers--i2c--algos--i2c-algo-pca.ko-ldv_main0_sequence_infinite_withcheck_stateful.cil.out.c.smt2 | [
"MIT"
] |
module RequestBufferTests exposing (all)
import Common
import Dashboard.RequestBuffer exposing (Buffer(..), handleCallback, handleDelivery)
import Expect
import Message.Callback exposing (Callback(..))
import Message.Effects exposing (Effect(..))
import Message.Subscription exposing (Delivery(..), Interval(..))
import... | Elm | 4 | Caprowni/concourse | web/elm/tests/RequestBufferTests.elm | [
"Apache-2.0"
] |
// RubyInstaller Inno Setup GUI Customizations
//
// Copyright (c) 2009-2012 Jon Maken
// Copyright (c) 2012 Yusuke Endoh
// Revision: 2012-05-28 13:58:04 -0600
// License: Modified BSD License
const
ChkBoxBaseY = 95;
ChkBoxBaseHeight = 17;
ChkBoxBaseLeft = 18;
var
PathChkBox, PathExtChkBox, TclTkChkBox: TChe... | Inno Setup | 5 | i-s-o/rubyinstaller | resources/installer/ri_gui.iss | [
"BSD-3-Clause"
] |
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -O0 -mtriple=mipsel-linux-gnu -mcpu=mips32r5 -mattr=msa,+fp64 -mattr=nan2008 -run-pass=legalizer -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=P5600
--- |
define void @load_store_v16i8(<16 x i8>* %a, <16 x i8>* %b... | Mirah | 3 | medismailben/llvm-project | llvm/test/CodeGen/Mips/GlobalISel/legalizer/load_store_vec.mir | [
"Apache-2.0"
] |
sleep 1
t app led_count 0
sleep 1
t app led red_back on
| AGS Script | 1 | waltersgrey/autoexechack | TurnOnAndLED/Back-led/Hero3PlusBlack/autoexec.ash | [
"MIT"
] |
<%@ page contentType="text/html; charset=utf-8"%>
<%@include file="../../report/reportTree.jsp"%>
| Java Server Pages | 1 | woozhijun/cat | cat-home/src/main/webapp/jsp/system/alarm/alarm.jsp | [
"Apache-2.0"
] |
{#
# Copyright (C) 2017-2018 Fabian Franz
# Copyright (C) 2015 YoungJoo.Kim <vozltx@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain th... | Volt | 4 | ccesario/plugins | www/nginx/src/opnsense/mvc/app/views/OPNsense/Nginx/vts.volt | [
"BSD-2-Clause"
] |
;;;
;;; Manage PostgreSQL specific quoting of identifiers.
;;;
;;; We use this facility as early as possible (in schema-structs), so we
;;; need those bits of code in utils/ rather than pgsql/.
;;;
(in-package :pgloader.quoting)
(defun apply-identifier-case (identifier)
"Return given IDENTIFIER with CASE handled to... | Common Lisp | 5 | eveoh/pgloader | src/utils/quoting.lisp | [
"PostgreSQL"
] |
very multiObj is obj
test: ['wow']
wow
| Dogescript | 0 | erinkeith/dogescript | test/spec/var/very-obj-singleprop/source.djs | [
"MIT"
] |
# Triple, no DOT, operator
PREFIX : <http://example.org/ns#>
SELECT *
{ :p :q :r OPTIONAL { :a :b :c } }
| SPARQL | 3 | alpano-unibz/ontop | test/sparql-compliance/src/test/resources/testcases-dawg/data-r2/syntax-sparql1/syntax-struct-03.rq | [
"Apache-2.0"
] |
#!/bin/bash
# This script wraps the `Atom` binary, allowing the `chromedriver` server to
# execute it with positional arguments and environment variables. `chromedriver`
# only allows 'switches' to be specified when starting a browser, not positional
# arguments, so this script accepts the following special switches:
... | Shell | 4 | pyrolabs/atom | spec/integration/helpers/atom-launcher.sh | [
"MIT"
] |
# RUN: llc -o - %s -mtriple=amdgcn--amdhsa -verify-machineinstrs -run-pass=greedy,virtregrewriter | FileCheck %s
--- |
define amdgpu_kernel void @func0() {
ret void
}
...
---
# We should not detect any interference between v0/v1 here and only allocate
# sgpr0-sgpr3.
#
# CHECK-LABEL: func0
# CHECK: S_NOP 0, i... | Mirah | 3 | medismailben/llvm-project | llvm/test/CodeGen/AMDGPU/subreg_interference.mir | [
"Apache-2.0"
] |
a { value: '\1' } | CSS | 0 | kitsonk/swc | css/parser/tests/fixture/esbuild/misc/GI1rffTXev-78n9ei_53wQ/input.css | [
"Apache-2.0",
"MIT"
] |
---
prev: advanced-types.textile
next: coll2.textile
title: 简单构建工具
layout: post
---
这堂课将概述SBT!具体议题包括:
* 创建一个SBT项目
* 基本命令
* sbt控制台
* 连续命令执行
* 自定义你的项目
* 自定义命令
* 快速浏览SBT资源(如果时间允许)
h2. 关于SBT
SBT是一个现代化的构建工具。虽然它由Scala编写并提供了很多Scala便利,但它是一个通用的构建工具。
h2. 为什么选择SBT?
* 明智的依赖管理
** 使用Ivy做依赖管理
** “只在请求时更新”... | Textile | 5 | AstronomiaDev/scala_school | web/zh_cn/sbt.textile | [
"Apache-2.0"
] |
/*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "Gradient.h"
#include <LibGUI/Painter.h>
namespace Profiler {
static Gfx::Bitmap const& heat_gradient()
{
static RefPtr<Gfx::Bitmap> bitmap;
if (!bitmap) {
bitmap = Gfx::Bitmap::try... | C++ | 4 | densogiaichned/serenity | Userland/DevTools/Profiler/Gradient.cpp | [
"BSD-2-Clause"
] |
.root
&:not(:last-child):not(:last-of-type)
margin-bottom: var(--spacing-md)
padding-bottom: var(--spacing-md)
border-bottom: 1px dotted var(--color-subtle)
.hr
border: 0
padding: var(--spacing-sm) 0
| Sass | 2 | snosrap/spaCy | website/src/styles/section.module.sass | [
"MIT"
] |
; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 7
; Bound: 35
; Schema: 0
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %FragColor
OpExecutionMode %m... | GLSL | 3 | Alan-love/filament | third_party/spirv-cross/shaders/asm/frag/do-while-statement-fallback.asm.frag | [
"Apache-2.0"
] |
global_settings {
assumed_gamma 1.0
noise_generator 1
}
// Camera
camera {
location <0, 10, -3>
look_at <0, 11, 0>
angle 90
}
// Sunlight
light_source {
<2000, 2000, -2000>
color rgb <1, 1, 1>
}
// Blue sky
plane {
y, 10000
hollow
pigment {
color rgb <0.05, 0.25... | POV-Ray SDL | 4 | spcask/pov-ray-tracing | src/scene22.pov | [
"MIT"
] |
### GNU/LINUX
alias ng.status systemctl status nginx
alias ng.reload systemctl reload nginx
alias ng.restart systemctl restart nginx
alias ng.test '/usr/sbin/nginx -t -c /etc/nginx/nginx.conf'
alias ng.dump '/usr/sbin/nginx -T -c /etc/nginx/nginx.conf'
alias CD_NGX_ROOT 'cd /etc/nginx && ls -lh'
alias CD_NGX_LOGS 'cd ... | Tcsh | 3 | Muzsor/nginx-admins-handbook | lib/nginx/snippets/skel/global-aliases.csh | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.