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 |
|---|---|---|---|---|---|
/// <reference path='fourslash.ts'/>
////
//// const [] = [Math.min(./*marker*/)]
////
goTo.marker("marker");
verify.completions({ exact: undefined });
edit.insert(".");
verify.completions({ exact: undefined });
edit.insert(".");
verify.completions({ exact: completion.globals });
| TypeScript | 3 | monciego/TypeScript | tests/cases/fourslash/completionsWritingSpreadArgument.ts | [
"Apache-2.0"
] |
[{:type :error,
:file "/androidnative/src/main.cpp",
:line 17,
:column 1,
:message "‘ubar’ does not name a type\n ubar g_foo = 0;\n ^"}
{:type :warning,
:file "/engine/lua/build/../src/lua/loslib.c",
:line 60,
:column nil,
:message "the use of `tmpnam' is dangerous, better use `mkstemp'"}
{:type :erro... | edn | 1 | cmarincia/defold | editor/test/resources/native_extension_error_parsing/errorLogLinux_parsed.edn | [
"ECL-2.0",
"Apache-2.0"
] |
--TEST--
Phar: copy-on-write test 23 [cache_list]
--INI--
default_charset=UTF-8
phar.cache_list={PWD}/copyonwrite23.phar.php
phar.readonly=0
--EXTENSIONS--
phar
zlib
--FILE_EXTERNAL--
files/write23.phar
--EXPECT--
bool(true)
bool(false)
bool(false)
bool(true)
ok
| PHP | 2 | NathanFreeman/php-src | ext/phar/tests/cache_list/copyonwrite23.phar.phpt | [
"PHP-3.01"
] |
'hello\
world' | JSON5 | 0 | leandrochomp/react-skeleton | node_modules/babelify/node_modules/babel-core/node_modules/json5/test/parse-cases/strings/multi-line-string.json5 | [
"MIT"
] |
package com.baeldung.concurrent.priorityblockingqueue;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.ArrayList;
import java.util.concurrent.PriorityBlockingQueue;
import java.util.concurrent.TimeUnit;
import static org.assertj.core.api.Assertions.assertThat;
import ... | Java | 4 | zeesh49/tutorials | core-java-concurrency/src/test/java/com/baeldung/concurrent/priorityblockingqueue/PriorityBlockingQueueIntegrationTest.java | [
"MIT"
] |
forex
load -h
load -i
to EUR
quote -h
quote -argument
quote
load
candle
from ILS
quote
load
candle
exit | Gosu | 2 | minhhoang1023/GamestonkTerminal | scripts/test_forex_av.gst | [
"MIT"
] |
functions {
real[] f(real[] s, real[] a, real[] b, real[] c, real[] d) {
int tot_obs;
real ret[dims(s)[1]];
tot_obs = dims(s)[1];
//apply logistic function to each observation
for(obs in 1:tot_obs) {
ret[obs] = a[obs]/(1 + exp(-b[obs]*s[obs]+c[obs])) + d[obs];
}
return ret;
... | Stan | 5 | stan-dev/stancon_talks | 2018/Contributed-Talks/02_pourzanjani/stan/linear_progression.stan | [
"CC-BY-4.0",
"BSD-3-Clause"
] |
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
class MetasploitModule < Msf::Exploit::Remote
Rank = ManualRanking
include Msf::Exploit::Remote::HttpServer::HTML
def initialize(info = {})
super(update_info(info,
... | Ruby | 2 | captaainconfrontation/metasploit-framework | modules/exploits/apple_ios/browser/webkit_trident.rb | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
package com.baeldung.batchtesting.service;
import com.baeldung.batchtesting.model.Book;
import com.baeldung.batchtesting.model.BookRecord;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.batch.item.ItemProcessor;
public class BookItemProcessor implements ItemProcessor<BookRecord, B... | Java | 4 | DBatOWL/tutorials | spring-batch/src/main/java/com/baeldung/batchtesting/service/BookItemProcessor.java | [
"MIT"
] |
--TEST--
Test iconv_strlen() function : basic functionality
--EXTENSIONS--
iconv
--FILE--
<?php
/*
* Test basic functionality of iconv_strlen()
*/
echo "*** Testing iconv_strlen() : basic functionality***\n";
$string_ascii = 'abc def';
//Japanese string in UTF-8
$string_mb = base64_decode('5pel5pys6Kqe44OG44Kt44K54... | PHP | 4 | NathanFreeman/php-src | ext/iconv/tests/iconv_strlen_basic.phpt | [
"PHP-3.01"
] |
public struct AType {}
| Swift | 1 | lwhsu/swift | test/stdlib/Inputs/RuntimeRetroactiveConformance/A.swift | [
"Apache-2.0"
] |
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal"
android:autoMirrored="true">
<path
android:fillColor="@android:color/white"
a... | XML | 3 | semoro/androidx | compose/material/material/icons/generator/raw-icons/rounded/grading.xml | [
"Apache-2.0"
] |
\section{Functors as Arrows}
%if False
\begin{code}
module Functors where
open import Agda.Primitive renaming (_⊔_ to _\-/_)
open import DeBruijn
open import Thinnings
open import Slime
open import Worry
open import Categories
\end{code}
%endif
When does one category tell you about another? When we have a
structure... | Literate Agda | 5 | gallais/EGTBS | extended/Functors.lagda | [
"BSD-3-Clause"
] |
#pragma once
#include "envoy/config/subscription.h"
#include "envoy/local_info/local_info.h"
#include "envoy/service/discovery/v3/discovery.pb.h"
#include "source/common/common/logger.h"
#include "source/common/config/new_delta_subscription_state.h"
#include "source/common/config/old_delta_subscription_state.h"
#inc... | C | 4 | giantcroc/envoy | source/common/config/delta_subscription_state.h | [
"Apache-2.0"
] |
# Pointwise V18.4R2 Journal file - Wed Nov 10 13:20:06 2021
package require PWI_Glyph 4.18.4
pw::Application setUndoMaximumLevels 5
pw::Application reset
pw::Application markUndoLevel {Journal Reset}
pw::Application clearModified
pw::Application setCAESolver {EXODUS II} 3
pw::Application markUndoLevel {Select Solve... | Glyph | 4 | marchdf/hybrid-amr-nalu-sphere | meshes/sphere_background.glf | [
"Apache-2.0"
] |
HTML from different view
| HTML+EEX | 2 | mrcasals/bamboo | test/support/templates/admin_email/text_and_html_from_different_view.html.eex | [
"MIT"
] |
#ifndef Py_WINREPARSE_H
#define Py_WINREPARSE_H
#ifdef MS_WINDOWS
#include <windows.h>
#ifdef __cplusplus
extern "C" {
#endif
/* The following structure was copied from
http://msdn.microsoft.com/en-us/library/ff552012.aspx as the required
include km\ntifs.h isn't present in the Windows SDK (at least as include... | C | 4 | shawwn/cpython | Modules/winreparse.h | [
"0BSD"
] |
---
prev: pattern-matching-and-functional-composition.textile
next: advanced-types.textile
title: 类型和多态基础
layout: post
---
课程内容:
* "什么是静态类型":#background
* "Scala中的类型":#scala
* "参数化多态性":#parametricpoly
* "类型推断: Hindley-Milner算法 vs. 局部类型推理":#inference
* "变性":#variance
* "边界":#bounds
* "量化":#quantificatio... | Textile | 5 | AstronomiaDev/scala_school | web/zh_cn/type-basics.textile | [
"Apache-2.0"
] |
-- @shouldFailWith OrphanKindDeclaration
module Main where
type Foo :: Type
| PureScript | 1 | andys8/purescript | tests/purs/failing/OrphanKindDeclaration1.purs | [
"BSD-3-Clause"
] |
SRC_DIR=./proto
DST_DIR=./proto
protoc -I=$SRC_DIR --python_out=$DST_DIR $SRC_DIR/*.proto
| Shell | 3 | seeclong/apollo | modules/tools/navigator/dbmap/setup.sh | [
"Apache-2.0"
] |
#ifndef LINKER_H
#define LINKER_H
int load_program(jq_state *jq, struct locfile* src, block *out_block);
jv load_module_meta(jq_state *jq, jv modname);
#endif
| C | 3 | aakropotkin/jq | src/linker.h | [
"CC-BY-3.0"
] |
-- Copyright 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 json = require("json")
name = "Greynoise"
type = "api"
function start()
set_rate_limit(1)
end
function vertical(ctx, domain)
local resp, err = request(ct... | Ada | 4 | digitalsanctum/Amass | resources/scripts/api/greynoise.ads | [
"Apache-2.0"
] |
<GameFile>
<PropertyGroup Name="TableView" Type="Layer" ID="23410f2e-2ffa-4490-ba35-5eb7172f5c97" Version="3.10.0.0" />
<Content ctype="GameProjectContent">
<Content>
<Animation Duration="0" Speed="1.0000" />
<ObjectData Name="Layer" Tag="12" ctype="GameLayerObjectData">
<Size X="720.0000" Y... | Csound | 2 | A29586a/Kirikiroid2 | cocos/kr2/cocosstudio/ui/TableView.csd | [
"BSD-3-Clause"
] |
module.exports = () => {
return (
!process.version.startsWith("v10.") && !process.version.startsWith("v12.")
);
};
| JavaScript | 3 | fourstash/webpack | test/configCases/externals/concatenated-module/test.filter.js | [
"MIT"
] |
---
layout: post
title: "Encoding Induction with Abstract Refinements"
date: 2013-02-20 16:12
comments: true
external-url:
categories: abstract-refinements
author: Niki Vazou
published: false
---
In this example, we explain how abstract refinements allow us to formalize
some kinds of structural induction within the ... | Literate Haskell | 5 | curiousleo/liquidhaskell | docs/blog/todo/encoding-induction.lhs | [
"MIT",
"BSD-3-Clause"
] |
<!DOCTYPE html>
<html lang="en">
<body>
<#list cityList as city>
City: ${city.cityName}! <br>
Q:Why I like? <br>
A:${city.description}!
</#list>
</body>
</html> | FreeMarker | 3 | Clayburn6/Spring-Boot-Learning | springboot-freemarker/src/main/resources/web/cityList.ftl | [
"Apache-2.0"
] |
<html>
<body>
<h3>尊敬的, ${username}, 您好!</h3>
感谢您注册 paascloud快乐学习网, 请您在24小时内点击下面的认证链接, 完成账号邮箱认证。
${url}
过期后链接将会自动失效(如果无法点击该链接, 可以将链接复制并粘帖到浏览器的地址输入框, 然后单击回车即可)。
如果您已经通过验证了, 请忽略这封邮件。
该邮件为系统自动发出, 请勿回复!
paascloud.net
${dateTime}
Aug 8, 2017 2:05:58 PM
</body>
</html> | FreeMarker | 3 | ouyangchangxiu/paascloud-master | paascloud-provider/paascloud-provider-opc/src/main/resources/templates/mail/sendRegisterSuccessTemplate.ftl | [
"Apache-2.0"
] |
<GameProjectFile>
<PropertyGroup Type="Layer" Name="BattleLayer" ID="df56f77a-5216-4587-a690-9c3facf31085" Version="2.0.0.0" />
<Content ctype="GameProjectContent">
<Content>
<Animation Duration="0" Speed="1" />
<ObjectData Name="Layer" CanEdit="False" FrameEvent="" ComboBoxIndex="1" ColorAngle="0" ... | Csound | 2 | chukong/CocosStudioSamples | DemoMicroCardGame/CocosStudioResources/cocosstudio/BattleLayer.csd | [
"MIT"
] |
i 00001 02 24 77767 03 24 77766
i 00002 03 25 00001 02 37 00002
i 00003 02 35 00076 03 35 00076
i 00004 02 37 00076 02 35 00076
i 00005 00 010 2000 16 24 77401
i 00006 16 000 2400 16 37 00006
i 00007 00 010 0000 17 24 77401
i 00010 17 013 2400 17 37 00010
i 00011 00 012 0000 00 26 00076
i 00012 00 012 2000 00 27 00076
... | Octave | 1 | besm6/mesm6 | test/vlm/vlm.oct | [
"MIT"
] |
package {
public class Test {
}
}
trace("///new NotoSansRegular().hasGlyphs(\"abc\")");
trace(new NotoSansRegular().hasGlyphs("abc"));
trace("///new NotoSansRegular().hasGlyphs(\"Abc\")");
trace(new NotoSansRegular().hasGlyphs("Abc"));
trace("///new NotoSansRegular().hasGlyphs(\"ABC\")");
trace(new NotoSansRegula... | ActionScript | 4 | Sprak1/ruffle | tests/tests/swfs/avm2/font_hasglyphs/Test.as | [
"Apache-2.0",
"Unlicense"
] |
scriptname _Camp_SearchAliasBase extends ReferenceAlias
import CampUtil
Actor property PlayerRef auto
GlobalVariable property _Camp_PerkRank_KeenSenses auto
_Camp_ConditionValues property Conditions auto
bool property initialized = false auto hidden
Event OnInit()
;debug.trace("[Campfire] " + self.GetRef() + " init... | Papyrus | 4 | chesko256/Campfire | Scripts/Source/_Camp_SearchAliasBase.psc | [
"MIT"
] |
my class Array::Element {
method access(\SELF, \pos, %adverbs, $adverb, $value) {
my $lookup := Rakudo::Internals.ADVERBS_AND_NAMED_TO_DISPATCH_INDEX(
%adverbs, $adverb, $value
);
nqp::if(
nqp::istype($lookup,X::Adverb),
nqp::stmts(
($lookup.what =... | Perl6 | 3 | raydiak/rakudo | src/core.c/Array/Element.pm6 | [
"Artistic-2.0"
] |
<div class="modal hidden" id="modal-low-storage">
<button class="close"><img src="../assets/cross.svg" alt="close" title="close modal"></button>
<h3>ALMOST OUT OF STORAGE</h3>
<p>you're about to run out of storage space.</p>
<b></b>
<p>for the price of a cup of coffee, you can switch to a la... | Kit | 2 | pws1453/web-client | source/imports/app/modal-low-storage.kit | [
"MIT"
] |
--TEST--
FE_FETCH op2 is a def and needs special live range handling
--FILE--
<?php
try {
foreach (["test"] as $k => func()[]) {}
} catch (Error $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
Call to undefined function func()
| PHP | 1 | thiagooak/php-src | Zend/tests/fe_fetch_op2_live_range.phpt | [
"PHP-3.01"
] |
#define PERL_NO_GET_CONTEXT
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
static cv_flags_t
get_flag(char *attr)
{
if (strnEQ(attr, "method", 6))
return CVf_METHOD;
else if (strnEQ(attr, "locked", 6))
return CVf_LOCKED;
else
return 0;
}
MODULE = attrs PACKAGE = attrs
void
import(Class, ...)... | XS | 4 | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | perl/ext/attrs/attrs.xs | [
"Apache-1.1"
] |
package test
const val b: Byte = 50 + 50
const val s: Short = 10000 + 10000
const val i: Int = 1000000 + 1000000
const val l: Long = 1000000000000L + 1000000000000L
const val f: Float = 0.0f + 3.14f
const val d: Double = 0.0 + 3.14
const val bb: Boolean = !false
const val c: Char = '\u03c0' // pi symbol
const val str... | Groff | 3 | qussarah/declare | jps-plugin/testData/incremental/pureKotlin/allConstants/const.kt.new.1 | [
"Apache-2.0"
] |
{% assign product-id = include.product-id | default: 0 %}
{% assign product = site.data.products[product-id] %}
<div class="card">
<div class="card-body"{% unless include.lorem %} style="height: 5rem"{% endunless %}>
{% if include.lorem %}
<h3 class="card-title">Card with ribbon</h3>
<p>Lorem ipsum dolor sit ... | HTML | 3 | muhginanjar/tabler | src/pages/_includes/cards/ribbon.html | [
"MIT"
] |
# This file is a part of Julia. License is MIT: https://julialang.org/license
"""
Like UnitRange{Int}, but can handle the `last` field, being temporarily
< first (this can happen during compacting)
"""
struct StmtRange <: AbstractUnitRange{Int}
start::Int
stop::Int
end
first(r::StmtRange) = r.start
last(r::St... | Julia | 4 | vanillajonathan/julia | base/compiler/ssair/basicblock.jl | [
"Zlib"
] |
db = require "lapis.db.mysql"
schema = require "lapis.db.mysql.schema"
import setup_db, teardown_db from require "spec_mysql.helpers"
import drop_tables from require "lapis.spec.db"
import create_table, drop_table, types from schema
describe "model", ->
setup ->
setup_db!
teardown ->
teardown_db!
it ... | MoonScript | 4 | tommy-mor/lapis | spec_mysql/query_spec.moon | [
"MIT",
"Unlicense"
] |
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C++ | 4 | EricRemmerswaal/tensorflow | tensorflow/lite/kernels/var_handle.cc | [
"Apache-2.0"
] |
* 峠 (とうげ tōge "mountain pass")
* 榊 (さかき sakaki "tree, genus Cleyera")
* 辻 (つじ tsuji "crossroads, street")
* 働 (どう dō, はたら hatara(ku) "work")
* 腺 (せん sen, "gland")
| HTML | 0 | ni-ning/django | tests/test_client_regress/templates/unicode.html | [
"CNRI-Python-GPL-Compatible",
"BSD-3-Clause"
] |
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div id="foo1" class="foo"></div>
<code>
<div id="foo2" class="foo"></div>
<div id="foo3" class="foo"></div>
</code>
<pre id="out"></pre>
<script>
var elements = document.querySelectorAll("code .foo");
try {
if (elements.length !== 2)
throw 1;
if (elements[0... | HTML | 3 | r00ster91/serenity | Base/res/html/misc/qsa.html | [
"BSD-2-Clause"
] |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix ex: <http://example.org/stuff/1.0/> .
<http://www.w3.org/TR/rdf-syntax-grammar>
dc:title "RDF/XML Syntax Specification (Revised)" ;
ex:editor [
ex:fullname "Dave Beckett";
ex:homePage <http... | Turtle | 3 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Turtle/rdf-syntax-grammar.ttl | [
"MIT"
] |
// build-pass (FIXME(62277): could be check-pass?)
#![allow(unused_variables)]
#![allow(dead_code)]
#![deny(unreachable_code)]
fn foo() {
// No error here.
let x = false && (return);
println!("I am not dead.");
}
fn main() { }
| Rust | 4 | Eric-Arellano/rust | src/test/ui/reachable/expr_andand.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
import * as path from "path"
import fs from "fs-extra"
import { describeWhenLMDB } from "../worker/__tests__/test-helpers"
const complexObject = {
key: `value`,
another_key: 2,
nested: { hello: `world`, foo: `bar`, nested: { super: `duper` } },
}
describeWhenLMDB(`cache-lmdb`, () => {
let cache
beforeAll(a... | TypeScript | 5 | waltercruz/gatsby | packages/gatsby/src/utils/__tests__/cache-lmdb.ts | [
"MIT"
] |
"""Test the Rainforest Eagle diagnostics."""
from homeassistant.components.diagnostics import REDACTED
from homeassistant.components.rainforest_eagle.const import (
CONF_CLOUD_ID,
CONF_INSTALL_CODE,
)
from . import MOCK_200_RESPONSE_WITHOUT_PRICE
from tests.components.diagnostics import get_diagnostics_for_co... | Python | 4 | MrDelik/core | tests/components/rainforest_eagle/test_diagnostics.py | [
"Apache-2.0"
] |
"""The FiveM sensor platform."""
from dataclasses import dataclass
from typing import Any
from homeassistant.components.sensor import SensorEntity, SensorEntityDescription
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import... | Python | 4 | MrDelik/core | homeassistant/components/fivem/sensor.py | [
"Apache-2.0"
] |
'reach 0.1';
export const main = Reach.App(
{}, [], () => { x *= 0; }
);
| RenderScript | 0 | chikeabuah/reach-lang | hs/t/n/Err_Block_Assign.rsh | [
"Apache-2.0"
] |
/*--------------------------------------------------*/
/* SAS Programming for R Users - code for exercises */
/* Copyright 2016 SAS Institute Inc. */
/*--------------------------------------------------*/
/*SP4R05d05*/
/*Part A*/
%macro mymac(dist,param1,param2=,n=100,stats=no,plot=no);
/*Part B*/
%if... | SAS | 4 | snowdj/sas-prog-for-r-users | code/SP4R05d05.sas | [
"CC-BY-4.0"
] |
module com.networknt.server {
exports com.networknt.server;
requires com.networknt.client;
requires com.networknt.common;
requires com.networknt.config;
requires com.networknt.handler;
requires com.networknt.registry;
requires com.networknt.service;
requires com.networknt.utility;
r... | Jasmin | 4 | KellyShao/light-4j | server/src/main/java/module-info.j | [
"Apache-2.0"
] |
:- object(familytree,
implements(familyp)).
:- set_logtalk_flag(complements, allow).
:- public([
father/2, mother/2,
sister/2, brother/2
]).
father(Father, Child) :-
::male(Father),
::parent(Father, Child).
mother(Mother, Child) :-
::female(Mother),
::parent(Mother, Child).
sister(Sister, Child... | Logtalk | 4 | PaulBrownMagic/logtalk3 | examples/family/alt/familytree.lgt | [
"Apache-2.0"
] |
Prefix(:=<http://example.org/>)
Ontology(:TestSubclassOf
SubClassOf(
Annotation(:foo "bar"^^xsd:string)
:subclass :superclass)
)
| Web Ontology Language | 3 | jmcmurry/SciGraph | SciGraph-core/src/test/resources/ontologies/cases/TestSubClassOfAnnotation.owl | [
"Apache-2.0"
] |
package com.baeldung.oauth2.authorization.server.api;
import com.baeldung.oauth2.authorization.server.handler.AuthorizationGrantTypeHandler;
import com.baeldung.oauth2.authorization.server.model.AppDataRepository;
import com.baeldung.oauth2.authorization.server.model.Client;
import com.nimbusds.jose.JOSEException;
im... | Java | 5 | DBatOWL/tutorials | oauth2-framework-impl/oauth2-authorization-server/src/main/java/com/baeldung/oauth2/authorization/server/api/TokenEndpoint.java | [
"MIT"
] |
component{
function foo(){
addressComponents.streetName = "Main";
}
} | ColdFusion CFC | 0 | tonym128/CFLint | src/test/resources/com/cflint/tests/MissingDeclaration/array_used.cfc | [
"BSD-3-Clause"
] |
extends Label
tool
func _process(_delta):
var slider = get_node("../HSlider")
text = "%.1f" % slider.value
| GDScript | 3 | jonbonazza/godot-demo-projects | 2d/physics_tests/utils/label_slider_value.gd | [
"MIT"
] |
--TEST--
SplFileInfo::setInfoClass() expects SplFileInfo or child class
--FILE--
<?php
class MyInfoObject extends SplFileInfo {}
$info = new SplFileInfo(__FILE__);
$info->setInfoClass('MyInfoObject');
echo get_class($info->getFileInfo()), "\n";
echo get_class($info->getPathInfo()), "\n";
$info->setInfoClass('SplFil... | PHP | 3 | thiagooak/php-src | ext/spl/tests/SplFileInfo_setInfoClass_basic.phpt | [
"PHP-3.01"
] |
<!DOCTYPE html>
<html>
<head>
<title>Leaflet debug page</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="../../dist/leaflet.css" />
<link rel="stylesheet" href="../css/screen.css" />
<script src="../.... | HTML | 4 | geoapify/Leaflet | debug/tests/add_remove_layers.html | [
"BSD-2-Clause"
] |
#!/usr/bin/env bash
# Copyright 2019 The Kubernetes 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 applica... | Shell | 5 | columbus9963/kubernetes | cluster/gce/windows/node-helper.sh | [
"Apache-2.0"
] |
from __future__ import annotations
import contextlib
import inspect
import os
@contextlib.contextmanager
def rewrite_exception(old_name: str, new_name: str):
"""
Rewrite the message of an exception.
"""
try:
yield
except Exception as err:
if not err.args:
raise
... | Python | 4 | 13rianlucero/CrabAgePrediction | crabageprediction/venv/Lib/site-packages/pandas/util/_exceptions.py | [
"MIT"
] |
use std::ops::{Index, IndexMut};
struct Foo {
x: isize,
y: isize,
}
impl<'a> Index<&'a String> for Foo {
type Output = isize;
fn index(&self, z: &String) -> &isize {
if *z == "x" {
&self.x
} else {
&self.y
}
}
}
impl<'a> IndexMut<&'a String> for Fo... | Rust | 3 | Eric-Arellano/rust | src/test/ui/borrowck/borrowck-overloaded-index-ref-index.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
{{#itemTable}}
{{>table}}
{{/itemTable}}
| HTML+Django | 1 | asahiocean/joplin | packages/server/src/views/index/items.mustache | [
"MIT"
] |
$$ MODE TUSCRIPT
str="Hello"
dst=str
| Turing | 1 | LaudateCorpus1/RosettaCodeData | Task/Copy-a-string/TUSCRIPT/copy-a-string.tu | [
"Info-ZIP"
] |
<%@ page session="false" language="java" pageEncoding="UTF-8"%>
<h4 class="text-success">1. 项目配置</h4>
<p>接口调用请求说明</p>
<pre>
http请求方式: GET或POST(请使用http协议)
http://cat.dianpingoa.com/cat/s/project?op=projectUpdate
</pre>
<p>参数说明</p>
<table style="width:100%" class="table table-bordered table-striped table-condensed ">... | Java Server Pages | 4 | woozhijun/cat | cat-home/src/main/webapp/jsp/report/home/interface/project.jsp | [
"Apache-2.0"
] |
<!DOCTYPE html>
<head>
</head>
<body>
<iframe name="random-name" src="http://localhost:3501/fixtures/generic.html"></iframe>
</body>
</html>
| HTML | 1 | bkucera2/cypress | packages/driver/cypress/fixtures/cross_origin_name.html | [
"MIT"
] |
#ifndef _WINDEFS_H
#define _WINDEFS_H
// Hooray for windows API stuff being so shit including different files results in a mess
#pragma warning(disable: 4005) // Macro redefinition
#include <Windows.h>
#include <WinIoCtl.h>
#include <ntstatus.h>
#ifndef NT_SUCCESS
#define NT_SUCCESS(Status) (((NTSTATUS)(... | C | 3 | OsmanDere/metasploit-framework | external/source/win_kernel_common/windefs.h | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
(package js [this]
(define cut-package'
"" W -> W
(@s "." Cs) W -> (cut-package' Cs "")
(@s C Cs) W -> (cut-package' Cs (@s W C)))
(define cut-package
S -> (cut-package' S "") where (string? S)
S -> (intern (cut-package' (str S) "")))
(define item
X _ -> (cut-package (str X)) where (symbol? X)
X _ -> (... | Shen | 4 | ajnavarro/language-dataset | data/github.com/gravicappa/js-kl/d4de095f7cec122b0ec71b6e42a353538b9b6dd0/ffi.shen | [
"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 | 4 | Kopilov/ceylon-ide-intellij | source/org/eclipse/ceylon/ide/intellij/structureView/CeylonInheritedMembersNodeProvider.ceylon | [
"Apache-2.0"
] |
functions {
#include "utils.stan"
#include "gamma2_overdisp.stan"
#include "models.stan"
real[] turnover_kin_inhib_2(real t, real[] R, real[] theta, real[] x_r, int[] x_i) {
//real ldose = x_r[1];
//real llag = x_r[2];
//real lka = x_r[3];
//real lCl = x_r[4];
//real lV = x_r[5];
real lconc =... | Stan | 4 | stan-dev/stancon_talks | 2018-helsinki/Contributed-Talks/weber/stancon18-master/warfarin_pd_tlagMax_2par.stan | [
"CC-BY-4.0",
"BSD-3-Clause"
] |
static const q31_t in_val[46] = {
0x00367EDA, 0x0222EDFF, 0x03B79801, 0x0362C3FF,
0x010D754A, 0xFE9091B0, 0xFC6EA009, 0xFC88FC88,
0xFCE808E1, 0xFFCC34C9, 0x0279887A, 0x03E0E7CE,
0x03747F9E, 0x0158E952, 0xFEBF8EB2, 0xFCC878DC,
0xFBBBBBBC, 0xFD945B6E, 0xFFC6390C, 0x01E2F09B,
0x04005A54, 0x036ACA57... | Max | 2 | maxvankessel/zephyr | tests/lib/cmsis_dsp/filtering/src/fir_q31.pat | [
"Apache-2.0"
] |
# 1 public class sync {
# 2 private Object go = new Object();
# 3 private int waiters = 0;
# 4
# 5 public void foo() {
# 6 synchronized (go) {
# 7 waiters++;
# 8 }
# 9 }
# 10 }
# some unrelated functions are removed
type $Ljava... | Maple | 4 | harmonyos-mirror/OpenArkCompiler-test | test/testsuite/irbuild_test/I0077-mapleall-irbuild-edge-sync/Main.mpl | [
"MulanPSL-1.0"
] |
/*
Basic MQTT example
This sketch demonstrates the basic capabilities of the library.
It connects to an MQTT server then:
- publishes "hello world" to the topic "outTopic"
- subscribes to the topic "inTopic", printing out any messages
it receives. NB - it assumes the received payloads are strings not binary... | Arduino | 4 | rovale/pubsubclient | examples/mqtt_basic/mqtt_basic.ino | [
"MIT"
] |
#tag Module
Protected Module FileProcessingWFS
#tag Method, Flags = &h1
Protected Sub EmptyTrashes()
'// This method will empty all RecycleBins in the system
'// By Anthony G. Cyphers
'// 05/17/2007
#if TargetWin32 then
Soft Declare Function SHEmptyRecycleBinA Lib "shell32" ( hwnd As Integ... | REALbasic | 5 | bskrtich/WFS | Windows Functionality Suite/File Processing/Modules/FileProcessingWFS.rbbas | [
"MIT"
] |
---
title: Content View Templates
# linktitle: Content Views
description: Hugo can render alternative views of your content, which is especially useful in list and summary views.
date: 2017-02-01
publishdate: 2017-02-01
lastmod: 2017-02-01
categories: [templates]
keywords: [views]
menu:
docs:
parent: "templates"
... | Markdown | 5 | jlevon/hugo | docs/content/en/templates/views.md | [
"Apache-2.0"
] |
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7,8} )
inherit bash-completion-r1 check-reqs estack flag-o-matic llvm multiprocessing multilib-build python-any-r1 rust-toolchain toolchain-funcs git-r3
SLOT="git"
MY_P="rust-git... | Gentoo Ebuild | 4 | gentoo/gentoo-rust | dev-lang/rust/rust-9999.ebuild | [
"BSD-3-Clause"
] |
x'i32 := 1.0 | Objective-J | 0 | justinmann/sj | tests/assignment3.sj | [
"Apache-2.0"
] |
mod a {
struct Foo;
impl Foo { pub fn new() {} }
enum Bar {}
impl Bar { pub fn new() {} }
}
fn main() {
a::Foo::new();
//~^ ERROR: struct `Foo` is private
a::Bar::new();
//~^ ERROR: enum `Bar` is private
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/issues/issue-13641.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
module.exports (cg) = cg.term {
constructor (value) =
self.boolean = value
self.is boolean = true
generate (scope) =
self.code (
if (self.boolean)
'true'
else
'false'
)
}
| PogoScript | 3 | Sotrek/Alexa | Alexa_Cookbook/Workshop/StatePop/4_IOT/tests/node_modules/aws-sdk/node_modules/cucumber/node_modules/pogo/lib/terms/boolean.pogo | [
"MIT"
] |
.q-pull-to-refresh
position: relative
&__puller
border-radius: 50%
width: 40px
height: 40px
color: var(--q-primary)
background: #fff
box-shadow: 0 0 4px 0 rgba(0,0,0,.3)
&--animating
transition: transform .3s, opacity .3s
| Sass | 3 | ygyg70/quasar | ui/src/components/pull-to-refresh/QPullToRefresh.sass | [
"MIT"
] |
#%RAML 1.0 Library
uses:
strings: stringTypes.raml
command: mesosCommand.raml
numbers: numberTypes.raml
types:
HttpCheck:
type: object
properties:
endpoint:
type: strings.Name
description: |
The endpoint name to use.
In "host" mode checks use the hostPort. In ot... | RAML | 4 | fquesnel/marathon | docs/docs/rest-api/public/api/v2/types/check.raml | [
"Apache-2.0"
] |
import { PreprocessSourceArgs } from "gatsby"
import { babelParseToAst } from "./parser"
import path from "path"
import { extractStaticImageProps } from "./parser"
import { codeFrameColumns } from "@babel/code-frame"
import { writeImages } from "./image-processing"
import { getCacheDir } from "./node-utils"
import { s... | TypeScript | 4 | waltercruz/gatsby | packages/gatsby-plugin-image/src/node-apis/preprocess-source.ts | [
"MIT"
] |
import { NextApiRequest, NextApiResponse } from 'next'
import Unsplash, { toJson } from 'unsplash-js'
export default function getPhotos(req: NextApiRequest, res: NextApiResponse) {
return new Promise((resolve) => {
const u = new Unsplash({ accessKey: process.env.UNSPLASH_ACCESS_KEY })
u.users
.photos(... | TypeScript | 4 | blomqma/next.js | examples/with-unsplash/pages/api/photo/index.tsx | [
"MIT"
] |
#ifndef INDIRECTLY_IMPORTED_H
#define INDIRECTLY_IMPORTED_H
struct IndirectlyImportedStruct {
int value;
};
#endif
| C | 2 | lwhsu/swift | test/Serialization/Recovery/Inputs/custom-modules/IndirectlyImported.h | [
"Apache-2.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.
Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.Recommendations.Declarations
Public Class ClassKeywo... | Visual Basic | 4 | frandesc/roslyn | src/EditorFeatures/VisualBasicTest/Recommendations/Declarations/ClassKeywordRecommenderTests.vb | [
"MIT"
] |
<ul id="slide-out" class="sidenav">
<li><div class="user-view">
<div class="background">
<img src="images/office.jpg">
</div>
<a href="#!user"><img class="circle" src="images/yuna.jpg"></a>
<a href="#!name"><span class="white-text name">John Doe</span></a>
<a href="#!email"><span class="whit... | HTML | 4 | afzalsayed96/materialize | tests/spec/sidenav/sidenavFixture.html | [
"MIT"
] |
/*
* Copyright (c) 2020, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/NonnullRefPtr.h>
#include <AK/String.h>
#include <AK/StringBuilder.h>
#include <AK/Vector.h>
#include <LibGemini/Document.h>
namespace Gemini {
String Document::render_to_html() const
{
StringBuilder... | C++ | 4 | r00ster91/serenity | Userland/Libraries/LibGemini/Document.cpp | [
"BSD-2-Clause"
] |
.ifdef MMSIA64
SUFFIX = _IA64
CFLAGS = $(CFLAGS)/define=(_LARGEFILE)
.endif
.ifdef MMSALPHA
SUFFIX = _ALPHA
CFLAGS = $(CFLAGS)/define=(_LARGEFILE)
.endif
.ifdef MMSVAX
XFER_VECTOR = ftplib_vector.obj
.endif
TARGETS = ftplib$(SUFFIX).exe qftp$(SUFFIX).exe
SHLINKFLAGS = /SHARE=$(MMS$TARGET)/NOMAP
* : $(TARGETS)
contin... | Module Management System | 3 | sleede/react-native-ftp | ios/Libraries/include/ftplib/src/descrip.mms | [
"MIT"
] |
'use strict';
/**
* {{ id }} service.
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('{{ uid }}');
| Handlebars | 3 | Mithenks/strapi | packages/generators/generators/lib/templates/core-service.js.hbs | [
"MIT"
] |
Get-AppxPackage -Name '*PowerToys' | select -ExpandProperty "PackageFullName" | Remove-AppxPackage
| PowerShell | 1 | tameemzabalawi/PowerToys | installer/MSIX/uninstall_msix.ps1 | [
"MIT"
] |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="17008000">
<Property Name="NI.LV.All.SourceOnly" Type="Bool">true</Property>
<Property Name="NI.LV.ExampleFinder" Type="Str"><?xml version="1.0" encoding="UTF-8"?><ExampleProgram><Title><Text Locale="US">Graphics.lvproj... | LabVIEW | 4 | ribeirojose/FINALE | testAssets/Graphics/Graphics.lvproj | [
"MIT"
] |
'
' Change History :
' BaH 28/09/2007 - Added custom appstub compiles using -b parameter.
' Synched with current bmk source.
'
Strict
Framework brl.basic
Import "bmk_make.bmx"
Import "bmk_zap.bmx"
Import "bmk_bb2bmx.bmx"
?MacOS
Incbin "macos.icns"
?
If AppArgs.length<2 CmdError
Local cmd$=AppArg... | BlitzMax | 5 | jabdoa2/blitzmax | src/bmk/bmk.bmx | [
"Zlib"
] |
within ;
package ServoSystem
"Servo system consisting of current and speed controlled DC motor + gear with elasticity and damping + load"
model Gear "Gear with elasticity and damping"
parameter Real ratio=105 "Getriebe-Uebersetzung";
Modelica.Mechanics.Rotational.Components.IdealGear gear(
... | Modelica | 5 | vishalbelsare/Modia.jl | examples/ServoSystem.mo | [
"MIT"
] |
CREATE TABLE `bigint`(
`id` BIGINT NOT NULL PRIMARY KEY
);
| SQL | 3 | cuishuang/tidb | br/tests/lightning_various_types/data/vt.bigint-schema.sql | [
"Apache-2.0"
] |
// edition:2018
async fn free(); //~ ERROR without a body
struct A;
impl A {
async fn inherent(); //~ ERROR without body
}
trait B {
async fn associated();
//~^ ERROR cannot be declared `async`
}
impl B for A {
async fn associated(); //~ ERROR without body
//~^ ERROR cannot be declared `async`
... | Rust | 2 | Eric-Arellano/rust | src/test/ui/resolve/issue-70736-async-fn-no-body-def-collector.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
/*---------------------------------------------------------------------------------------------
* 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 | extensions/typescript-language-features/src/utils/arrays.ts | [
"MIT"
] |
$$ MODE TUSCRIPT
text="http://foo bar/"
BUILD S_TABLE spez_char="::>/:</::<%:"
spez_char=STRINGS (text,spez_char)
LOOP/CLEAR c=spez_char
c=ENCODE(c,hex),c=concat("%",c),spez_char=APPEND(spez_char,c)
ENDLOOP
url_encoded=SUBSTITUTE(text,spez_char,0,0,spez_char)
print "text: ", text
PRINT "encoded: ", url_encoded
| Turing | 2 | LaudateCorpus1/RosettaCodeData | Task/URL-encoding/TUSCRIPT/url-encoding.tu | [
"Info-ZIP"
] |
package gw.specContrib.enhancements
uses java.time.LocalDate
uses gw.specContrib.classes.property_Declarations.new_syntax.MyMethodAnno
enhancement ReceiverTestClassEnh : ReceiverTestClass
{
@MyMethodAnno(1)
@receiver:MyReceiverAnno( LocalDate )
function good_enhFunc() : String {
return "nonstatic"
}
... | Gosu | 3 | dmcreyno/gosu-lang | gosu-test/src/test/gosu/gw/specContrib/enhancements/ReceiverTestClassEnh.gsx | [
"Apache-2.0"
] |
asdasldaskdhjkashdahsdkjahskdjhakjsdkjahsdhkasdhkajsdhakjsdhkajsdhjkahskjdkjahsjkdjkakjsdm,
asdasldaskdhjkashdahsdkjahskdjhakjsdkjahsdhkasdhkajsdhakjsdhkajsdhjkahskjdkjahsjkdjkakjsdm, {
}
.some-class, {
&.another-class, {
color: red;
}
}
| CSS | 0 | fuelingtheweb/prettier | tests/css_trailing_comma/selector_list.css | [
"MIT"
] |
[CustomMessages]
ru.IDP_FormCaption =Скачивание дополнительных файлов
ru.IDP_FormDescription =Пожалуйста подождите, пока инсталлятор скачает дополнительные файлы...
ru.IDP_TotalProgress =Общий прогресс
ru.IDP_CurrentFile =Текущий файл
ru.IDP_File =Файл:
ru.IDP_Speed ... | Inno Setup | 2 | lemalcs/Inno-download-plugin | unicode/idplang/russian.iss | [
"Zlib"
] |
{layout '@layout.latte'}
{block title}Interface {$interface->getName()}{/block}
{block breadcrumbs}
{include "partial/breadcrumbs.latte",
"type" => "Interface",
"namespace" => $interface->getNamespaceName(),
"name" => $interface->getShortName()
}
{/block}
{block content}
<h1 n:c... | Latte | 4 | pujak17/tets | packages/ThemeDefault/src/interface.latte | [
"MIT"
] |
#! /bin/sh /usr/share/dpatch/dpatch-run
## 10_urlsnarf_escape.dpatch by Hilko Bengen <bengen@debian.org>
##
## DP: Escape user, vhost, uri, referer, agent strings in log (Closes: #372536).
@DPATCH@
--- dsniff-2.4b1+debian~/urlsnarf.c 2006-11-27 17:09:54.000000000 +0100
+++ dsniff-2.4b1+debian/urlsnarf.c 2006-11-27 17:... | Darcs Patch | 4 | acheong08/dsniff | debian/patches/10_urlsnarf_escape.dpatch | [
"BSD-3-Clause"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.