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 |
|---|---|---|---|---|---|
class RedirectRecord {
RedirectRecord(this.statusCode, this.method, this.location);
/// Returns the status code used for the redirect.
final int statusCode;
/// Returns the method used for the redirect.
final String method;
///Returns the location for the redirect.
final Uri location;
}
| Dart | 4 | safarmer/dio | dio/lib/src/redirect_record.dart | [
"MIT"
] |
<div>
<div class="note">
<p>Values added to the global scope of a content script with</p>
</div>
<h2 id="Loading_content_scripts">Loading content scripts</h2>
<p>You can load a content script into a web page in one of three ways:</p>
</div> | HTML | 3 | asahiocean/joplin | packages/app-cli/tests/enex_to_md/heading.html | [
"MIT"
] |
#ifdef __VULCAN__
USING System.Runtime.InteropServices
#endif
/// <include file="Gui.xml" path="doc/DataBrowser/*" />
CLASS DataBrowser INHERIT Control
PROTECT iBufferGranularity AS INT
PROTECT iBufferMaximum AS INT
PROTECT iFTHeight AS INT
PROTECT iSelectionStyle AS INT
PROTECT iBufferSize AS INT
... | xBase | 5 | orangesocks/XSharpPublic | Runtime/VOSDK/Source/VOSDK/GUI_Classes_SDK/DataBrowser.prg | [
"Apache-2.0"
] |
ARCHIVE_ENTRY_LINKIFY(3) manual page
== NAME ==
'''archive_entry_linkresolver''',
'''archive_entry_linkresolver_new''',
'''archive_entry_linkresolver_set_strategy''',
'''archive_entry_linkresolver_free''',
'''archive_entry_linkify'''
- hardlink resolver functions
== LIBRARY ==
Streaming Archive Library (libarc... | MediaWiki | 4 | probonopd/imagewriter | dependencies/libarchive-3.4.2/doc/wiki/ManPageArchiveEntryLinkify3.wiki | [
"Apache-2.0"
] |
array levl 0 levl 1
| Dogescript | 0 | erinkeith/dogescript | test/spec/property-operators/levl/multi-expression/source.djs | [
"MIT"
] |
import torch
from torch.testing import FileCheck
from torch.testing._internal.jit_utils import JitTestCase
if __name__ == "__main__":
raise RuntimeError(
"This test file is not meant to be run directly, use:\n\n"
"\tpython test/test_jit.py TESTNAME\n\n"
"instead."
)
class TestBatchMM(... | Python | 4 | sanchitintel/pytorch | test/jit/test_batch_mm.py | [
"Intel"
] |
"""Support for IHC devices."""
import voluptuous as vol
from homeassistant.core import HomeAssistant
import homeassistant.helpers.config_validation as cv
from .const import (
ATTR_CONTROLLER_ID,
ATTR_IHC_ID,
ATTR_VALUE,
DOMAIN,
IHC_CONTROLLER,
IHC_CONTROLLER_INDEX,
SERVICE_PULSE,
SERVI... | Python | 4 | MrDelik/core | homeassistant/components/ihc/service_functions.py | [
"Apache-2.0"
] |
/*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Forward.h>
#include <LibWeb/Forward.h>
#include <LibWeb/TreeNode.h>
namespace Web::DOM {
template<typename NodeType>
class NonDocumentTypeChildNode {
public:
Element* previous... | C | 4 | r00ster91/serenity | Userland/Libraries/LibWeb/DOM/NonDocumentTypeChildNode.h | [
"BSD-2-Clause"
] |
@-webkit-keyframes fadeOut {
0% {
opacity: 1;
}
50% {
opacity: 0.8;
}
99% {
opacity: 0.01;
}
100% {
opacity: 0;
}
}
@keyframes fadeOut {
0% {
opacity: 1;
}
50% {
opacity: 0.8;
}
99% {
opacity: 0.01;
}
100% {
opacity: 0;
}
}
.copy-button-fadeout {
animat... | CSS | 4 | GizMan/portainer | app/portainer/components/copy-button/copy-button.css | [
"Zlib"
] |
/**
* @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
*/
/**
* To create smaller locale files, we remove duplicated data.
* To make this work we store the data in arrays, w... | TypeScript | 5 | yuchenghu/angular-cn | packages/common/locales/generate-locales-tool/array-deduplication.ts | [
"MIT"
] |
<?xml version="1.0" encoding="UTF-8"?>
<!-- ******************************************************************* -->
<!-- -->
<!-- Copyright IBM Corp. 2010, 2014 -->
<!-- ... | XPages | 3 | jesse-gallagher/XPagesExtensionLibrary | extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.controls/src/com/ibm/xsp/extlib/config/extlib-dynamicview.xsp-config | [
"Apache-2.0"
] |
function pko --description 'copy inline content to the piknik clipboard'
echo $argv | piknik -copy;
end
| fish | 3 | Shark/piknik | fish-shell/functions/pko.fish | [
"BSD-2-Clause"
] |
@prefix eg: <http://example.org/eg#> .
eg:s eg:p [ =: _:o ; eg:name "o" ] .
| Turtle | 2 | joshrose/audacity | lib-src/lv2/serd/tests/bad/bad-ext-namedblank-op.ttl | [
"CC-BY-3.0"
] |
; Clean, simple and efficient code -- that's the power of Racket!
; http://racket-lang.org/
(define (bottles n more)
(printf "~a bottle~a of beer~a"
(case n [(0) "no more"] [(1) "1"] [else n])
(if (= n 1) "" "s")
more))
(for ([n (in-range 99 0 -1)])
(bottles n " on the wall, ")
(bo... | Racket | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Racket/99-bottles-of-beer.scrbl | [
"MIT"
] |
package flash.xml;
extern class XMLNode {
@:flash.property var attributes(get,set) : Dynamic;
@:flash.property var childNodes(get,never) : Array<Dynamic>;
var firstChild : XMLNode;
var lastChild : XMLNode;
@:flash.property var localName(get,never) : String;
@:flash.property var namespaceURI(get,never) : String;
... | Haxe | 3 | Alan-love/haxe | std/flash/xml/XMLNode.hx | [
"MIT"
] |
--TEST--
Nop statement before namespace
--FILE--
<?php
;
namespace Foo;
?>
===DONE===
--EXPECT--
===DONE===
| PHP | 1 | NathanFreeman/php-src | Zend/tests/namespace_first_stmt_nop.phpt | [
"PHP-3.01"
] |
struct Foo {
1: optional string bar (go.tag = "json:\"bar\" db:\"id_text\"")
}
struct Baz {
1: optional string bar = "foobarbaz" (go.tag = "json:\"bar\" db:\"id_text\"")
}
| Thrift | 3 | JonnoFTW/thriftpy2 | tests/parser-cases/issue_252.thrift | [
"MIT"
] |
redo-ifchange bork
echo sub
echo sub >&2
printf y >>$1.log
| Stata | 0 | BlameJohnny/redo | t/351-deps-forget/sub.do | [
"Apache-2.0"
] |
MSTRINGIFY(
cbuffer ComputeBoundsCB : register( b0 )
{
int numNodes;
int numSoftBodies;
int padding1;
int padding2;
};
// Node indices for each link
StructuredBuffer<int> g_vertexClothIdentifier : register( t0 );
StructuredBuffer<float4> g_vertexPositions : register( t1 );
RWStructuredBuffer<uint4>... | HLSL | 3 | BonJovi1/Bullet-the-Blue-Sky | external/bullet-2.81-rev2613/src/BulletMultiThreaded/GpuSoftBodySolvers/DX11/HLSL/ComputeBounds.hlsl | [
"WTFPL"
] |
Sets
i generators / 1 * %subprob% /
k max num piecewise pts / 1 * 11 /
kk max piecewise pts for fut val func / 1 * %nPts% /
;
Scalar
numGens number of generators without buy and sell generator... | GAMS | 4 | brentian/dual-adp-suc | code/ub_fv.gms | [
"MIT"
] |
;;; app/taskrunner/autoload.el -*- lexical-binding: t; -*-
;;;###autoload
(defun +taskrunner/project-tasks ()
"Invokes `ivy-taskrunner' or `helm-tasksrunner', depending on which is
available."
(interactive)
(cond ((featurep! :completion ivy) (ivy-taskrunner))
((featurep! :completion helm) (helm-taskrunne... | Emacs Lisp | 4 | leezu/doom-emacs | modules/tools/taskrunner/autoload.el | [
"MIT"
] |
canvas {
width = 800
height = 700
}
Colors {
-- Keenan palette
black = rgba(0.0, 0.0, 0.0, 1.0)
darkpurple = rgba(0.549,0.565,0.757, 1.0)
purple2 = rgba(0.106, 0.122, 0.54, 0.2)
lightpurple = rgba(0.816,0.824, 0.902, 1.0)
verylightpurple = rgba(0.953, 0.957, 0.977, 1.0)
purple3 = rgba... | TeX | 4 | meeki-ai/penrose | examples/geometry-domain/euclidean.sty | [
"MIT"
] |
/*
* Copyright (c) 2020-2021 Alex Spataru <https://github.com/alex-spataru>
*
* 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... | QML | 4 | Serial-Studio/Serial-Studio | assets/qml/Windows/JsonEditor.qml | [
"MIT"
] |
export default "other3";
| JavaScript | 0 | 1shenxi/webpack | test/configCases/parsing/import-ignore/other3.js | [
"MIT"
] |
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
# Erwann Mest <m+transifex@kud.io>, 2019
# Etienne Desgagné <etienne.desgagne@evimbec.ca>, 2015
# Martin Maillard <martin.maillard@gmail.com>, 2015
# ... | Gettext Catalog | 2 | scratchmex/django-rest-framework | rest_framework/locale/fr/LC_MESSAGES/django.po | [
"BSD-3-Clause"
] |
/*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.jvm.compiler.ir;
import com.intellij.testFramework.TestDataPath;
import org.jetb... | Java | 4 | jiqimaogou/kotlin | compiler/tests-gen/org/jetbrains/kotlin/jvm/compiler/ir/IrCompileJavaAgainstKotlinTestGenerated.java | [
"ECL-2.0",
"Apache-2.0"
] |
<!doctype html>
<html>
<head>
<title>5947</title>
</head>
<body>
<h1 id="result"></h1>
<script>
var url = localStorage.getItem('url');
document.getElementById("result").innerHTML = "URL is: " + url;
</script>
</body>
</html> | HTML | 3 | frank-dspeed/nw.js | test/sanity/issue5947-localStorage_getItem_url_crash/index.html | [
"MIT"
] |
submodule openconfig-qos-mem-mgmt {
belongs-to openconfig-qos {
prefix "oc-qos";
}
import openconfig-extensions { prefix oc-ext; }
import openconfig-types { prefix oc-types; }
include openconfig-qos-elements;
organization
"OpenConfig working group";
contact
"OpenConfig working group
w... | YANG | 5 | wenovus/public | release/models/qos/openconfig-qos-mem-mgmt.yang | [
"Apache-2.0"
] |
submodule openconfig-rib-bgp-attributes {
belongs-to openconfig-rib-bgp {
prefix "oc-rib-bgp";
}
// import some basic types
import ietf-inet-types { prefix inet; }
import openconfig-bgp-types { prefix oc-bgpt; }
import openconfig-extensions { prefix oc-ext; }
// meta
organization "OpenConfig wor... | YANG | 5 | meodaiduoi/onos | models/openconfig/src/main/yang/rib/openconfig-rib-bgp-attributes@2016-10-17.yang | [
"Apache-2.0"
] |
#! /bin/sh -e
dir=
if [ $# -eq 3 -a "$2" = '-d' ]; then
pdir="-d $3"
dir="$3/"
elif [ $# -ne 1 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
case "$1" in
-patch)
patch $pdir -f --no-backup-if-mismatch -p0 < $0
#cd ${dir}gcc && autoconf
... | Darcs Patch | 4 | JrCs/opendreambox | recipes/gcc/gcc-3.3.3/arm-10730.dpatch | [
"MIT"
] |
-module(erl_tar_table).
%% OTP-14860, PR 1670.
-export([t/0, v/0, x/0]).
t() ->
{ok, ["file"]} = erl_tar:table("table.tar").
v() ->
{ok, [{_,_,_,_,_,_,_}]} = erl_tar:table("table.tar", [verbose]).
x() ->
{ok, ["file"]} = erl_tar:table("table.tar", []).
| Erlang | 4 | jjhoo/otp | lib/dialyzer/test/small_SUITE_data/src/erl_tar_table.erl | [
"Apache-2.0"
] |
copy node_modules\webpack5\lib\hmr\HotModuleReplacement.runtime.js packages\next\bundles\webpack\packages\
copy node_modules\webpack5\lib\hmr\JavascriptHotModuleReplacement.runtime.js packages\next\bundles\webpack\packages\
copy node_modules\webpack5\hot\lazy-compilation-node.js packages\next\bundles\webpack\packages\
... | Batchfile | 1 | blomqma/next.js | scripts/check-pre-compiled.bat | [
"MIT"
] |
-module(yes_23).
-export([?MODULE/0]).
?MODULE() ->
ok = return_before_receive(ok),
ok = return_before_receive(ok),
{error, whatever} = return_before_receive(error),
ok.
return_before_receive(Cmd) ->
RecvRef = make_ref(),
case value(Cmd, RecvRef) of
ok ->
ok;
{erro... | Erlang | 4 | jjhoo/otp | lib/compiler/test/receive_SUITE_data/ref_opt/yes_23.erl | [
"Apache-2.0"
] |
(* ****** ****** *)
#include
"share/atspre_staload.hats"
#include
"share/atspre_staload_libats_ML.hats"
(* ****** ****** *)
#include
"$PATSHOMELOCS\
/atscntrb-hx-libjson-c/mylibies.hats"
#include
"$PATSHOMELOCS\
/atscntrb-hx-libjson-c/mylibies_link.hats"
#staload $JSON_ML
fun
jsonval_int
(x: int) = JSONint(g0i2i(x... | ATS | 3 | ats-lang/ATS-CodeBook | RECIPE/Hangman3/Hangman3_player0.dats | [
"MIT"
] |
module functions01;
wire t;
wire [5:2]x;
wire [3:0]y[2:7];
wire [3:0]z[7:2][2:9];
//wire [$size(x)-1:0]x_size;
//wire [$size({x, x})-1:0]xx_size;
//wire [$size(y)-1:0]y_size;
//wire [$size(z)-1:0]z_size;
assert property ($size(t) == 1);
assert property ($size(x) == 4);
assert property ($size({3{x}}) == 3*4);
assert ... | SystemVerilog | 3 | gudeh/yosys | tests/sat/sizebits.sv | [
"ISC"
] |
html {
head {
title('Parrot parser')
link[href='/content/site.css' rel='stylesheet' type='text/css']
}
body {
form[action='/' method='post'] {
table[style='width:100%;'] {
tr {
td[style='width:50%'] {
h3('Model'... | Parrot | 3 | ParrotFx/Parrot | src/Backup/Parrot.SampleSite/Views/Home/Index.parrot | [
"MIT"
] |
; CLW file contains information for the MFC ClassWizard
[General Info]
Version=1
LastClass=CMFCDialogDlg
LastTemplate=CDialog
NewFileInclude1=#include "stdafx.h"
NewFileInclude2=#include "MFCDialog.h"
ClassCount=4
Class1=CMFCDialogApp
Class2=CMFCDialogDlg
Class3=CAboutDlg
ResourceCount=3
Resource1=IDD_ABOUTBOX
Resou... | Clarion | 0 | youngqqcn/WindowsNotes | MFC/day01/MFCDialog/MFCDialog.clw | [
"MIT"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 5 | sbj42/vscode | src/vs/editor/common/core/cursorColumns.ts | [
"MIT"
] |
acl:relcl
flat:name
nmod:poss
nmod:obl
nmod:agent
nmod:nsubj
nmod:obj
nmod:ccomp
case:pred
aux:pass
obl:agent
nsubj:pass
| Cycript | 0 | mlej8/MultilangStructureKD | EUD/data/deprel.cy | [
"MIT"
] |
{
key.results: [
{
key.typename: "S<T>",
key.typeusr: "$s20typecontext_generics1SVyxGD",
key.implicitmembers: [
{
key.name: "instance",
key.sourcetext: "instance",
key.description: "instance"
}
]
}
]
}
| Groff | 0 | lwhsu/swift | test/SourceKit/TypeContextInfo/typecontext_generics.swift.response.3 | [
"Apache-2.0"
] |
*** Setting ***
Resource 02_resource.robot
*** Test Case ***
Test 1.1
Keyword From 02 Resource
Log ${var_from_02_resource}
| RobotFramework | 3 | phil-davis/robotframework | atest/testdata/parsing/resource_parsing/01_tests.robot | [
"ECL-2.0",
"Apache-2.0"
] |
.SUBCKT BUF A Y
.model buffer1 d_buffer
Abuf A Y buffer1
.ENDS NOT
.SUBCKT NOT A Y
.model not1 d_inverter
Anot A Y not1
.ENDS NOT
.SUBCKT NAND A B Y
.model nand1 d_nand
Anand [A B] Y nand1
.ENDS NAND
.SUBCKT NOR A B Y
.model nor1 d_nor
Anand [A B] Y nor1
.ENDS NOR
.SUBCKT DLATCH E D Q
.model latch1 d_latch
Alatch ... | SourcePawn | 4 | kallisti5/yosys | examples/cmos/cmos_cells_digital.sp | [
"ISC"
] |
(ns wisp.string
(:require [wisp.runtime :refer [str subs re-matches nil? string?]]
[wisp.sequence :refer [vec empty?]]))
(defn split
"Splits string on a regular expression. Optional argument limit is
the maximum number of splits. Not lazy. Returns vector of the splits."
[string pattern limit]
(.... | wisp | 5 | bamboo/wisp | src/string.wisp | [
"BSD-3-Clause"
] |
$$ MODE TUSCRIPT
condition="c"
IF (condition=="a") THEN
---> do something
ELSEIF (condition=="b") THEN
---> do something
ELSE
---> do something
ENDIF
| Turing | 3 | LaudateCorpus1/RosettaCodeData | Task/Conditional-structures/TUSCRIPT/conditional-structures-1.tu | [
"Info-ZIP"
] |
Two songs: {{song}} {{song}} | Volt | 1 | tidytrax/cphalcon | tests/_data/fixtures/views/extends/other.volt | [
"BSD-3-Clause"
] |
bst-unpersist(1) "bst" "Bestie"
# NAME
bst-unpersist - release persisted namespace files
# SYNOPSIS
bst-unpersist [options] <path> [path...]
# DESCRIPTION
Releases persisted specified namespace files, or all known namespace files
in the specified directories.
*bst*(1) can persist created namespaces on entry via ... | SuperCollider | 3 | wwade/bst | man/bst-unpersist.1.scd | [
"MIT"
] |
SELECT tupleHammingDistance(tuple(1), tuple(1));
SELECT tupleHammingDistance(tuple(1), tuple(2));
SELECT tupleHammingDistance(tuple(1), tuple(Null));
SELECT tupleHammingDistance(tuple(Null), tuple(Null));
SELECT tupleHammingDistance((1, 2), (3, 4));
SELECT tupleHammingDistance((1, 2), (1, 4));
SELECT tupleHammingDistan... | SQL | 4 | pdv-ru/ClickHouse | tests/queries/0_stateless/01653_tuple_hamming_distance_2.sql | [
"Apache-2.0"
] |
# Generate go.capnp.out with:
# capnp compile -o- go.capnp > go.capnp.out
# Must run inside this directory to preserve paths.
@0xd12a1c51fedd6c88;
annotation package(file) :Text;
annotation import(file) :Text;
annotation doc(struct, field, enum) :Text;
annotation tag(enumerant) :Text;
annotation notag(enumerant) :Voi... | Cap'n Proto | 4 | tsuna/go-capnproto2 | capnpc-go/testdata/go.capnp | [
"MIT"
] |
<html>
<head>
<title>Hover test!</title>
<style>
a:hover {
color: red;
}
</style>
</head>
<body>
<a href="hover.html">this is a link</a>
</body>
</html>
| HTML | 4 | r00ster91/serenity | Base/res/html/misc/hover.html | [
"BSD-2-Clause"
] |
/*
* Copyright 2014 The Sculptor 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/LI... | Xtend | 5 | sculptor/sculptor | sculptor-generator/sculptor-generator-configuration/src/main/java/org/sculptor/generator/configuration/ConfigurationProviderModule.xtend | [
"Apache-2.0"
] |
-- This is an empty migration. | SQL | 0 | Alex4386/meiling | prisma/migrations/20210222021851_/migration.sql | [
"MIT"
] |
"""Demo platform that offers fake meteorological data."""
from __future__ import annotations
from datetime import timedelta
from homeassistant.components.weather import (
ATTR_CONDITION_CLOUDY,
ATTR_CONDITION_EXCEPTIONAL,
ATTR_CONDITION_FOG,
ATTR_CONDITION_HAIL,
ATTR_CONDITION_LIGHTNING,
ATTR_... | Python | 5 | MrDelik/core | homeassistant/components/demo/weather.py | [
"Apache-2.0"
] |
cdef bint c_is_list_like(object, bint) except -1
| Cython | 0 | CJL89/pandas | pandas/_libs/lib.pxd | [
"BSD-3-Clause"
] |
/*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
*/
function main() {
println(typeOf(42));
println(typeOf(42000000000000000000000000000000000000000));
println(typeOf("42"));
pr... | Slash | 4 | CAFxX/simplelanguage | language/tests/TypeOf.sl | [
"UPL-1.0"
] |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports System.Runtime.CompilerServices
Imports Microsoft.CodeAnalysis.VisualBasic.Symbols
Namespace Microsoft.CodeAn... | Visual Basic | 4 | ffMathy/roslyn | src/ExpressionEvaluator/VisualBasic/Source/ExpressionCompiler/Symbols/TypeSubstitutionExtensions.vb | [
"MIT"
] |
'use strict';
/**
* {{id}} service.
*/
module.exports = () => ({});
| Handlebars | 1 | Mithenks/strapi | packages/generators/generators/lib/templates/service.js.hbs | [
"MIT"
] |
const DefaultDirectoryProvider = require('../src/default-directory-provider');
const path = require('path');
const fs = require('fs-plus');
const temp = require('temp').track();
describe('DefaultDirectoryProvider', function() {
let tmp = null;
beforeEach(() => (tmp = temp.mkdirSync('atom-spec-default-dir-provider... | JavaScript | 4 | Embodimentgeniuslm3/BDB11A0E2DE062D2E39E4C5301B2FE5E | spec/default-directory-provider-spec.js | [
"MIT"
] |
// check-pass
// Regression test of #77475, this used to be ICE.
#![feature(decl_macro)]
use crate as _;
pub macro ice(){}
fn main() {}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/macros/issue-77475.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
/* Catchall baseclass */
.glyphicon {
}
| CSS | 1 | tumido/prettier | tests/format/css/comments/bug.css | [
"MIT"
] |
%
% PostScript header for NASM documentation
%
% Avoid barfing on old PS implementations
/pdfmark where
{pop} {userdict /pdfmark /cleartomark load put} ifelse
/setpagedevice where
{pop} {userdict /setpagedevice /pop load put} ifelse
% Useful definition
/space 32 def
%
% This asks the PostScript interpreter for the p... | PostScript | 5 | Mr-Sheep/naiveproxy | src/third_party/nasm/doc/head.ps | [
"BSD-3-Clause"
] |
for i in {1..104}; do
echo "The file is now $i" >> README.md
git commit -am "commit $i"; done | Shell | 3 | testtas9812/desktop | app/test/fixtures/repository-with-105-commits/script.sh | [
"MIT"
] |
fn putnumln(n: int) -> void =
do
putnum(n);
putchar('\n');
end
in
fn fact(n: int) -> int =
let acc: int = 1 in
do
while n != 0 do
acc = acc * n;
n = n - 1;
end;
acc;
end
end
in
fn fib(n: int) -> void =
... | Harbour | 3 | adam-mcdaniel/harbor | examples/test.hb | [
"Apache-2.0"
] |
$! File: Build_GNV_curl_release_notes.com
$!
$! $Id$
$!
$! Build the release note file from the four components:
$! 1. The curl_release_note_start.txt
$! 2. The hp_ssl_release_info.txt
$! 3. [--]readme. file from the Curl distribution.
$! 4. The Curl_gnv-build_steps.txt.
$!
$! Set the name of the release no... | DIGITAL Command Language | 4 | jjatria/curl | packages/vms/build_gnv_curl_release_notes.com | [
"curl"
] |
(import [nose.tools [eq_]])
(import [processor [run_pipeline sources outputs]])
(defn test_source_as_a_list []
(setv results [])
(run_pipeline [1 2 3 4]
results.append)
(eq_ [1 2 3 4] results))
(defn test_source_as_a_function []
(setv items [1 2 3])
(setv results [])
(defn source []
... | Hy | 5 | svetlyak40wt/python-processor | tests/pipeline.hy | [
"BSD-2-Clause"
] |
/******************************************************************************
* Copyright 2020 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | C++ | 4 | jzjonah/apollo | modules/planning/tasks/learning_model/learning_model_inference_trajectory_task.cc | [
"Apache-2.0"
] |
"""
p
Foo.Bar
"""
import System
import System.Xml.Serialization from System.Xml
[XmlRoot("p", Namespace: "Foo.Bar")]
class Person:
pass
xmlroot as XmlRootAttribute = Attribute.GetCustomAttribute(Person, XmlRootAttribute)
print(xmlroot.ElementName)
print(xmlroot.Namespace)
| Boo | 3 | popcatalin81/boo | tests/testcases/integration/attributes/attributes-2.boo | [
"BSD-3-Clause"
] |
do
print "hello"
print "world"
x = do
print "hello"
print "world"
y = do
things = "shhh"
-> "hello: " .. things
-> if something then do "yeah"
t = {
y: do
number = 100
(x) -> x + number
}
(y=(do
x = 10 + 2
x), k=do
"nothing") -> do
"uhhh"
| MoonScript | 0 | Shados/moonscript | spec/inputs/do.moon | [
"MIT",
"Unlicense"
] |
// ResourceMenu.prg
USING System.Collections.Generic
#define M_GRAYED 0x0001 // 'GRAYED' keyword
#define M_INACTIVE 0x0002 // 'INACTIVE' keyword
#define M_BITMAP 0x0004 // 'BITMAP' keyword
#define M_OWNERDRAW 0x0100 // 'OWNERDRAW' keyword
#define M_CHECKED 0... | xBase | 5 | orangesocks/XSharpPublic | Runtime/VOSdkTyped/Source/VOSdk/GUI_Classes_SDK/ResourceReader/ResourceMenu.prg | [
"Apache-2.0"
] |
functions {
real psi_max(vector u_psi, int[] subj, vector RT) {
real psi_max;
psi_max = positive_infinity();
for (i in 1:num_elements(RT))
psi_max = fmin(psi_max, log(RT[i]) - u_psi[subj[i]]);
return (psi_max);
}
real da(int winner, real RT, vector beta, real P_b, real mu_da,
... | Stan | 5 | simeond/stancon_talks | 2017/Contributed-Talks/07_nicenboim/direct_access_h_Kfold.stan | [
"CC-BY-4.0",
"BSD-3-Clause"
] |
; Setup script for use with Inno Setup.
[Setup]
AppName=Open Asset Import Library - Viewer
AppVerName=Open Asset Import Library - Viewer (v2.0)
DefaultDirName={pf}\AssimpView
DefaultGroupName=AssimpView
UninstallDisplayIcon={app}\bin\x86\assimp.exe
OutputDir=out_vieweronly
AppCopyright=Assimp Development Team... | Inno Setup | 4 | sercand/assimp | packaging/windows-innosetup/script_vieweronly.iss | [
"BSD-3-Clause"
] |
1 --DiffieHellman key exchange
%handles:
IntTerm =
Get
Put
Close
%cohandles:
Console =
Get
Put
Close
%processes:
alice (agreedKey1,agreedKey2 | secretA,messageA => cipher) =
get secretA ;store skey
call power (agreedKey2,ske... | AMPL | 5 | prashant007/AMPL | myAMPL/src/DiffHellman.ampl | [
"MIT"
] |
#ifndef mingw32_HOST_OS
import System.Posix.Signals
#endif
| Haskell | 2 | matsubara0507/semantic | test/fixtures/haskell/corpus/cpp-directives.A.hs | [
"MIT"
] |
#![feature(trait_alias)]
#![crate_name = "foo"]
use std::fmt::Debug;
// @has foo/all.html '//a[@href="traitalias.CopyAlias.html"]' 'CopyAlias'
// @has foo/all.html '//a[@href="traitalias.Alias2.html"]' 'Alias2'
// @has foo/all.html '//a[@href="traitalias.Foo.html"]' 'Foo'
// @has foo/index.html '//h2[@id="trait-ali... | Rust | 5 | david-perez/rust | src/test/rustdoc/trait_alias.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
encryptedv2.property=ENC(dQWokHUXXFe+OqXRZYWu22BpXoRZ0Drt)
| INI | 0 | zeesh49/tutorials | spring-boot-jasypt/src/main/resources/encryptedv2.properties | [
"MIT"
] |
Feature: hub push
Background:
Given I am in "git://github.com/mislav/coral.git" git repo
Scenario: Normal push
When I successfully run `hub push`
Then the git command should be unchanged
Scenario: Push current branch to multiple remotes
Given I am on the "cool-feature" branch
When I successf... | Cucumber | 3 | JLLeitschuh/hub | features/push.feature | [
"MIT"
] |
# fix broken locale
if not python -c 'import locale; locale.getdefaultlocale();' >/dev/null ^&1
set -gx LANG en_US.UTF-8
set -gx LC_ALL en_US.UTF-8
end
# set paths
set DIR (dirname (status -f))
set -gx PATH $PATH $DIR/../bin $DIR/../app
set -gx PYTHONPATH $PYTHONPATH $DIR/../app
| fish | 4 | boringusername99/cabot | bin/activate.fish | [
"MIT"
] |
/*
* Copyright 2010-2017 JetBrains s.r.o.
*
* 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 agre... | C++ | 4 | Mu-L/kotlin | kotlin-native/runtime/src/main/cpp/Mutex.hpp | [
"ECL-2.0",
"Apache-2.0"
] |
Red [
Title: "Red comparison tests"
Author: "Peter W A Wood"
File: %comparison-test.red
Tabs: 4
Rights: "Copyright (C) 2011-2016 Red Foundation. All rights reserved."
License: "BSD-3 - https://github.com/red/red/blob/origin/BSD-3-License.txt"
]
#include %../../../quick-test/quick-test.red
~~~start-file~... | Red | 5 | 0xflotus/red | tests/source/units/comparison-test.red | [
"BSL-1.0",
"BSD-3-Clause"
] |
package {
/**
* @author Maeiky
*/
public class Test {
public var sName : String;
public function Test():Void {
}
}
}
| Redcode | 2 | VLiance/GZE | UnitTest/String/src_(Demo)/Test.cw | [
"Apache-2.0"
] |
-include ../tools.mk
# Checks that all the targets returned by `rustc --print target-list` are valid
# target specifications
all:
for target in $(shell $(BARE_RUSTC) --print target-list); do \
$(BARE_RUSTC) --target $$target --print sysroot; \
done
| Makefile | 4 | Eric-Arellano/rust | src/test/run-make-fulldeps/print-target-list/Makefile | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Michael Wolf <milupo@sorbzilla.de>, 2016
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-01-17 11:07+0100\n"
"PO-Revision-Date: 2017-09-23 00:02+0000\n"
"Last-Translator: Mic... | Gettext Catalog | 3 | jpmallarino/django | django/contrib/sites/locale/dsb/LC_MESSAGES/django.po | [
"BSD-3-Clause",
"0BSD"
] |
---
layout: post
title: 基础
next: basics2.textile
---
课程内容:
* "关于这节课":#overview
* "表达式":#expressions
* "值":#val
* "函数":#functions
* "类":#class
* "继承":#extends
* "特质":#trait
* "类型":#types
h2(#overview). 关于这节课
最初的几个星期将涵盖基本语法和概念,然后我们将通过更多的练习展开这些内容。
有一些例子是以解释器交互的形式给出的,另一些则是以源文件的形式给出的。
安装一个解释器,可以使探索问题空间变得更容易。
h3. 为什么选... | Textile | 5 | AstronomiaDev/scala_school | web/zh_cn/basics.textile | [
"Apache-2.0"
] |
<http://a.example/s> <http://a.example/p> "chat"@en-us .
| Turtle | 0 | joshrose/audacity | lib-src/lv2/serd/tests/TurtleTests/lantag_with_subtag.ttl | [
"CC-BY-3.0"
] |
@program quellwarn.muf
1 1000 d
i
( quellwarn.muf by Natasha@HLM
Warns wizards that they're unquelled.
Thrust into the public domain this First of November, 2002.
)
$iflib $lib/dotcom $include $lib/dotcom $endif
$def val_delay 300 (five minutes)
: main ( -- )
background
{ #-1 begin #-1 "" "pw" findnext d... | MUF | 5 | natmeox/hlm-suite | quellwarn.muf | [
"MIT"
] |
graph {
a--b
}
| Graphviz (DOT) | 0 | JesseVermeulen123/bat | tests/syntax-tests/source/Graphviz DOT/test_graph.dot | [
"Apache-2.0",
"MIT"
] |
h1. Textile document
h2. Heading Two
h3. A two-line
header
h2. Another two-line
header
Paragraph:
one, two,
thee lines!
p(classone two three). This is a paragraph with classes
p(#id). (one with an id)
p(one two three#my_id). ..classes + id
* Unordered list
** sublist
* back again!
** sublist again..
# orde... | Textile | 2 | websharks/ace-builds | demo/kitchen-sink/docs/textile.textile | [
"BSD-3-Clause"
] |
package main
import (
"fmt"
)
type Baggins interface {
WearRing() bool
}
type Gollum interface {
Scowl() int
}
type hobbit struct {
hasRing bool
}
func (h *hobbit) WearRing() bool {
h.hasRing = !h.hasRing
return h.hasRing
}
type Wolf struct {
Claw int
HasRing bool
}
func (w *Wolf) Scowl() int {
w.Claw+... | GAP | 5 | gijit/gi-minimal | pkg/compiler/attic/bilbo.gi | [
"MIT"
] |
# Copywrite (C) 2015 Jan Vaillant <jan.vaillant@zalf.de>
# Licensed under the MIT licence
# LP implementation of TMR problem
# For simplicity we assume one cow in each group
# The concentrate fill value (FVC) has been estimated with dairy.js (dairy.intake.FV_cs_diet)
# and is corrected by 0.05 (the average overestimat... | Zimpl | 5 | jvail/diet | tmr_lp_two_groups.zpl | [
"MIT"
] |
Rebol [
Title: "Transaction-based HTTP(S) Protocol"
Author: "Christopher Ross-Gill"
Date: 5-Jun-2017
Home: http://ross-gill.com/page/REST_Protocol
File: %rest.reb
Version: 0.0.2
Purpose: {Minimal HTTP(S) scheme with elemental Request/Response model}
Rights: http://opensource.org/licenses/Apache-2.0
Type: modul... | Rebol | 4 | hostilefork/rgchris-scripts | experimental/rest.reb | [
"Apache-2.0"
] |
0 reg32_t "dword"
1 code_t "proc*"
2 num32_t "int"
3 uint32_t "size_t"
4 ptr(struct(0:num32_t,4:ptr(num8_t),8:ptr(num8_t),12:ptr(num8_t),16:ptr(num8_t),20:ptr(num8_t),24:ptr(num8_t),28:ptr(num8_t),32:ptr(num8_t),36:ptr(num8_t),40:ptr(num8_t),44:ptr(num8_t),48:ptr(struct(0:ptr(TOP),4:ptr(struct(0:num32_t,4:ptr(reg8_t),8... | BlitzBasic | 1 | matt-noonan/retypd-data | data/sum.decls | [
"MIT"
] |
*** Settings ***
Suite Setup Run Tests ${EMPTY} keywords/wrapping_decorators.robot
Resource atest_resource.robot
*** Test Cases ***
Wrapped functions
Check Test Case ${TESTNAME}
Wrapped function with wrong number of arguments
Check Test Case ${TESTNAME}
Wrapped methods
Check Te... | RobotFramework | 2 | rdagum/robotframework | atest/robot/keywords/wrapping_decorators.robot | [
"ECL-2.0",
"Apache-2.0"
] |
@app
dep-warn
@http
get /deps-in-lambda
get /deps-in-root
get /deps-in-shared
get /deps-found
get /deps-missing
| Arc | 3 | copperinc/sandbox | test/mock/dep-warn/basic/app.arc | [
"Apache-2.0"
] |
size: 2048px 1024px;
dpi: 240;
limit-y: -4 5;
limit-x: 0 1000;
points {
data-x: list(100 200 300 400 500 600 700 800 900);
data-y: list(-1.2 -1.8 -1.3 -1.6 -1.5 -1.3 -1.8 -1.9 -2.0);
shape: pentagon;
size: 8pt;
}
points {
data-x: list(100 200 300 400 500 600 700 800 900);
data-y: list(1.2 1.8 1.3 0.6 1.5 ... | CLIPS | 2 | paulasmuth/fnordmetric | test/plot-points/markers_unicode.clp | [
"Apache-2.0"
] |
<?python
from textile import textile
from cgi import escape
?>
<div xmlns:py="http://purl.org/kid/ns#" id="recent-comments">
<ol>
<div py:strip="" py:for="comment in recent_comments">
<li>
<small class="commentmetadata">
... | Genshi | 2 | CarlosGabaldon/calabro | calabro/widgets/templates/recent_comments.kid | [
"MIT"
] |
// MIR for `main` before ElaborateDrops
fn main() -> () {
let mut _0: (); // return place in scope 0 at $DIR/box_expr.rs:6:11: 6:11
let _1: std::boxed::Box<S>; // in scope 0 at $DIR/box_expr.rs:7:9: 7:10
let mut _2: usize; // in scope 0 at $DIR/box_expr.rs:7:... | Mirah | 3 | david-perez/rust | src/test/mir-opt/box_expr.main.ElaborateDrops.before.mir | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
// @allowJs: true
// @checkJs: true
// @noEmit: true
// @strict: true
// @target: es6
// @filename: lateBoundAssignmentDeclarationSupport1.js
// currently unsupported
const _sym = Symbol();
const _str = "my-fake-sym";
exports[_sym] = "ok";
exports[_str] = "ok";
exports.S = _sym;
// @filename: usage.js
co... | TypeScript | 3 | monciego/TypeScript | tests/cases/conformance/salsa/lateBoundAssignmentDeclarationSupport1.ts | [
"Apache-2.0"
] |
AstraMagnetostatic 40
-3.0000000e-01 0.0000000e+00
-2.9800000e-01 2.9075045e-05
-2.9600000e-01 5.9367702e-05
-2.9400000e-01 9.0866460e-05
-2.9200000e-01 1.2374798e-04
-2.9000000e-01 1.5799850e-04
-2.8800000e-01 1.9377892e-04
-2.8600000e-01 2.3112877e-04
-2.8400000e-01 2.7014139e-04
... | Opal | 0 | mkeilman/sirepo | sirepo/package_data/template/opal/lib/SOLENOID-fmapfn.NEW_SINGLE_SOL_NOFRINGE_ASTRA.opal | [
"Apache-2.0"
] |
#include <lighttpd/base.h>
#include <lighttpd/url_parser.h>
#include <stdlib.h>
%%{
machine url_parser;
action mark { mark = fpc; }
action mark_host { host_mark = fpc; }
action save_host {
g_string_truncate(uri->host, 0);
g_string_append_len(uri->host, host_mark, fpc - host_mark);
g_string_ascii_down(uri... | Ragel in Ruby Host | 4 | kurtace72/lighttpd2 | src/main/url_parser.rl | [
"Apache-2.0"
] |
<mt:SetVarBlock name="__website_sort_option__" note="項目並び替え: ウェブサイト">
name,description,
c:ecwebsitecommontitle,
c:ecwebsiteindexcomponent,
c:ecwebsitehometitle,
c:ecwebsitehomedescription,
c:ecwebsitemainimage1,
c:ecwebsitemainimage2,
c:ecwebsitemainimage3,
c:ecwebsitemainimage4,
c:ecwebsitemainimage5,
c:ecwebsiteog... | MTML | 4 | webbingstudio/mt_theme_echo_bootstrap | dist/themes/echo_bootstrap/templates/mtappjquery_user_js.mtml | [
"MIT"
] |
#####################################################
# solver.ampl : solver name and its options
#####################################################
option solver bonmin; # ... path/binary of the AMPLsolver binary
option bonmin_options "bonmin.algorithm=B-BB outlev=1 bonmin.time_limit=259200 max_cpu_time=259200"; # ... | AMPL | 3 | JuliaInv/ConvDiffMIPDECO | examples/ampl/solver.ampl | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.