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' />
// Handle having zero modifiers on a method.
// @allowNonTsExtensions: true
// @Filename: file1.js
//// class C {
//// M() {
//// const q = /*a*/1 + 2/*b*/;
//// q.toString();
//// }
//// }
goTo.select('a', 'b')
edit.applyRefactor({
ref... | TypeScript | 5 | nilamjadhav/TypeScript | tests/cases/fourslash/extract-method26.ts | [
"Apache-2.0"
] |
else ← {(⍺⍺⍣⍺)(⍵⍵⍣(~⍺))⍵}
f ← {⍵ + 30}
g ← {⍵ - 30}
⎕ ← (3>2) f else g 28
⎕ ← (3>3) f else g 28
A ← (2 2 ⍴ ⍳ 4)
⎕ ← (3>2) f else g A
⎕ ← (3>3) f else g A
0 | APL | 3 | melsman/apltail | tests/else.apl | [
"MIT"
] |
C Copyright(c) 1998, Space Science and Engineering Center, UW-Madison
C Refer to "McIDAS Software Acquisition and Distribution Policies"
C in the file mcidas/data/license.txt
C *** $Id: kbxfy2.dlm,v 1.2 2005/06/08 14:58:31 rickk Tst $ ***
C$ Name:
C$ kbxini - Calibration module for FY2 data
C$
C$ Interface:
C$ ... | IDL | 5 | oxelson/gempak | extlibs/AODT/v72/odtmcidas/navcal/navcal/kbxfy2.dlm | [
"BSD-3-Clause"
] |
namespace OpenAPI.Model
open System
open System.Collections.Generic
open Newtonsoft.Json
open OpenAPI.Model.Category
open OpenAPI.Model.Tag
module Pet =
//#region Pet
[<CLIMutable>]
type Pet = {
[<JsonProperty(PropertyName = "id")>]
Id : int64;
[<JsonProperty(PropertyName = "category")>]
Cate... | F# | 4 | MalcolmScoffable/openapi-generator | samples/server/petstore/fsharp-functions/OpenAPI/src/model/Pet.fs | [
"Apache-2.0"
] |
> module EvilTransform where
> type Latitude = Double
> type Longitude = Double
> type Coordinate = (Latitude, Longitude)
> outOfChina :: Coordinate -> Bool
> outOfChina (lat, lng)
> | lat < 0.8293 || lat > 55.8271 = True
> | lng < 72.004 || lng > 137.8347 = True
> | ot... | Literate Haskell | 4 | doctorjane/eviltransform-1 | haskell/EvilTransform.lhs | [
"BSD-2-Clause-FreeBSD"
] |
IokeGround Struct = fn(+attributes, +:attributesWithDefaultValues,
attributeNames = attributes + attributesWithDefaultValues map(key)
val = fn(+values, +:keywordValues,
Struct internal:createInitial(val, attributeNames, attributes, attributesWithDefaultValues, values, keywordValues)
)
val attributeNames = ... | Ioke | 3 | olabini/ioke | src/builtin/H50_struct.ik | [
"ICU",
"MIT"
] |
frequency,raw
20.00,2.68
20.20,2.73
20.40,2.77
20.61,2.82
20.81,2.87
21.02,2.92
21.23,3.00
21.44,3.08
21.66,3.16
21.87,3.23
22.09,3.30
22.31,3.33
22.54,3.37
22.76,3.40
22.99,3.44
23.22,3.50
23.45,3.55
23.69,3.61
23.92,3.67
24.16,3.73
24.40,3.78
24.65,3.83
24.89,3.89
25.14,3.95
25.39,4.02
25.65,4.09
25.91,4.15
26.16,4.2... | CSV | 1 | vinzmc/AutoEq | measurements/innerfidelity/data/onear/Beyerdynamic DT 770 600 Ohm/Beyerdynamic DT 770 600 Ohm.csv | [
"MIT"
] |
#tag Module
Protected Module RegistryWFS
#tag Method, Flags = &h1
Protected Function AllowActiveDesktop() As Boolean
#if TargetWin32
dim policies as RegistryItem
policies = CurrentUsersPolicies
if policies = nil then return true
policies = policies.Child( "Explorer" )... | REALbasic | 4 | bskrtich/WFS | Windows Functionality Suite/Miscellaneous/Modules/RegistryWFS.rbbas | [
"MIT"
] |
#include "pch.h"
#include "State.h"
#include <optional>
// Function to get the iterator of a single key remap given the source key. Returns nullopt if it isn't remapped
std::optional<SingleKeyRemapTable::iterator> State::GetSingleKeyRemap(const DWORD& originalKey)
{
auto it = singleKeyReMap.find(originalKey);
... | C++ | 5 | szlatkow/PowerToys | src/modules/keyboardmanager/KeyboardManagerEngineLibrary/State.cpp | [
"MIT"
] |
2016-01-20 22:32:20 > fs0ciety (~whoami@c27-253-43-52.thoms4.vic.optusnet.com.au) has joined #linux.conf.au
2016-01-20 22:32:20 - Topic for #linux.conf.au is "SOLD OUT | LCA2016 Registrations now open! | Conference Schedule now available: https://linux.conf.au/programme/schedule/monday | https://linux.conf.au | LCA... | IRC log | 0 | 0x4b1dN/2016-dots | misc/weechat/logs/irc.freenode.#linux.conf.au.weechatlog | [
"MIT"
] |
package unit.issues.misc;
typedef Issue5255Class<T> = Issue5255Class_<T>;
class Issue5255Class_<T> {
@:generic public static function test<T>(arg:T){
return arg;
}
}
| Haxe | 3 | Alan-love/haxe | tests/unit/src/unit/issues/misc/Issue5255Class.hx | [
"MIT"
] |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This file is part of Logtalk <https://logtalk.org/>
% Copyright 1998-2021 Paulo Moura <pmoura@logtalk.org>
% SPDX-License-Identifier: Apache-2.0
%
% Licensed under the Apache License, Version 2.0 (the "License");
% you may not use this... | Logtalk | 4 | LogtalkDotOrg/logtalk3 | tools/packs/safety_hooks.lgt | [
"Apache-2.0"
] |
--TEST--
curl_multi_close closed by cleanup functions
--EXTENSIONS--
curl
--FILE--
<?php
$mh = curl_multi_init();
$array = array($mh);
$array[] = &$array;
curl_multi_add_handle($mh, curl_init());
curl_multi_add_handle($mh, curl_init());
curl_multi_add_handle($mh, curl_init());
curl_multi_add_handle($mh, curl_init());
... | PHP | 3 | NathanFreeman/php-src | ext/curl/tests/curl_multi_close_reference.phpt | [
"PHP-3.01"
] |
extern crate foobar;
extern crate foobar_macro;
use foobar::*;
use foobar_macro::*;
a_proc_macro!(); // no
#[an_attr_macro]
fn a() {
f(); // no
}
#[an_attr_macro(with_span)]
fn b() {
f(); // yes
}
fn c() {
a_rules_macro!(f()); // yes
}
fn d() {
a_rules_macro!(()); // no
}
fn main(){}
| Rust | 4 | ohno418/rust | src/test/run-make-fulldeps/rustdoc-scrape-examples-macros/examples/ex.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
proc f() {
return 0;
}
proc g() {
return 1;
}
class Parent {
proc method(arg:int = f()) {
writeln("in Parent.method arg=", arg);
}
}
class Child : Parent {
override proc method(arg:int = g()) {
writeln("in Child.method arg=", arg);
}
}
proc main() {
var x:Parent = new Child();
x.method();
... | Chapel | 4 | jhh67/chapel | test/classes/override/override-vdispatch-def-arg.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
set --local BASENAME --regex -- '[^/]+$'
@echo (fisher --version)
@test "fisher install" (
fisher install tests/ponyo >/dev/null
) "$ponyo" = "pyon pyon"
@test "fisher list" (
fisher list | string match $BASENAME | string join " "
) = "fisher fishtape ponyo"
@test "fisher list regex" (
fisher list pony... | fish | 3 | kenchou/fisher | tests/fisher.fish | [
"MIT"
] |
package {
public class Test {
}
}
import flash.utils.Dictionary;
trace("///var a = new Dictionary()");
var a = new Dictionary();
trace("///a[\"key\"] = 5");
a["key"] = 5;
trace("///a[\"key\"]");
trace(a["key"]);
trace("///a[\"key\"] = 6");
a["key"] = 6;
trace("///var key2 = new Test()");
var key2 = new Test();... | ActionScript | 4 | Sprak1/ruffle | tests/tests/swfs/avm2/dictionary_foreach/Test.as | [
"Apache-2.0",
"Unlicense"
] |
/*
* Copyright Disney Enterprises, Inc. 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
* and the following modification to it: Section 6 Trademarks.
* deleted and replaced with:
*
* 6. Trademarks. This License d... | Slash | 4 | zsnake1209/SeExpr | src/demos/rman2/testdisp.sl | [
"Apache-2.0"
] |
/* jconfig.sas --- jconfig.h for Amiga systems using SAS C 6.0 and up. */
/* see jconfig.doc for explanations */
#define HAVE_PROTOTYPES
#define HAVE_UNSIGNED_CHAR
#define HAVE_UNSIGNED_SHORT
/* #define void char */
/* #define const */
#undef CHAR_IS_UNSIGNED
#define HAVE_STDDEF_H
#define HAVE_STDLIB_H
#undef NEED_BSD... | SAS | 3 | hyu-iot/gem5 | mibench/office/ghostscript/src/jpeg-6a/jconfig.sas | [
"BSD-3-Clause"
] |
/********************************************************************************
* 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/presentation/PresentationProvider.ceylon | [
"Apache-2.0"
] |
{-# LANGUAGE CPP, RankNTypes, UndecidableInstances, GADTs, TypeSynonymInstances, FlexibleInstances, MultiParamTypeClasses, FlexibleContexts, ScopedTypeVariables #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Graphics.UI.FLTK.LowLevel.FileInput
(
-- * Hierarchy
--
-- $hierarchy
-- * Widget Fun... | C2hs Haskell | 4 | ericu/fltkhs | src/Graphics/UI/FLTK/LowLevel/FileInput.chs | [
"MIT"
] |
<!DOCTYPE html>
<html xmlns:py="http://genshi.edgewall.org/">
<head>
<title>PyOpenGL ${version} Function Reference</title>
<link rel="stylesheet" href="./manpage.css" type="text/css" />
<link rel="stylesheet" href="./modern.css" type="text/css" />
<meta charset="utf-8" />
</head>
<body>
<header>
<ul cl... | Genshi | 3 | t20100/pyopengl | directdocs/templates/index.kid | [
"BSD-2-Clause",
"MIT"
] |
"""Diagnostics support for NAM."""
from __future__ import annotations
from dataclasses import asdict
from homeassistant.components.diagnostics import async_redact_data
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
from homeassistant.core import HomeA... | Python | 5 | MrDelik/core | homeassistant/components/nam/diagnostics.py | [
"Apache-2.0"
] |
@import 'nib'
// From https://github.com/tobiasahlin/SpinKit
.sk-spinner-bounce {
margin: 100px auto 0;
width: 70px;
text-align: center;
div {
width: 18px;
height: 18px;
background-color: #333;
border-radius: 100%;
display: inline-block;
-webkit-animation: sk-bouncedelay 1.4s infinite... | Stylus | 3 | UBessle/wekan | client/components/main/spinner_bounce.styl | [
"MIT"
] |
#summary archive_entry 3 manual page
== NAME ==
*archive_entry_acl_add_entry*,
*archive_entry_acl_add_entry_w*,
*archive_entry_acl_clear*,
*archive_entry_acl_count*,
*archive_entry_acl_next*,
*archive_entry_acl_next_w*,
*archive_entry_acl_reset*,
*archive_entry_acl_text_w*,
*archive_entry_atime*,
*archive_entry_atime_n... | MediaWiki | 4 | OakCityLabs/ios_system | libarchive/libarchive/doc/wiki/ManPageArchiveEntry3.wiki | [
"BSD-3-Clause"
] |
= Maps: Total and Partial Maps
> module Maps
>
> import Logic
> import IndProp
>
> %access public export
>
Maps (or dictionaries) are ubiquitous data structures both generally and in the
theory of programming languages in particular; we're going to need them in many
places in the coming chapters. They also make a nic... | Idris | 5 | diseraluca/software-foundations | src/Maps.lidr | [
"MIT"
] |
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head><!-- start favicons snippet, use https://realfavicongenerator.net/ --><link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png"><link rel="icon" type="image/png... | HTML | 5 | ITS-TVS/ExoPlayer | docs/doc/reference/com/google/android/exoplayer2/analytics/PlaybackStats.html | [
"Apache-2.0"
] |
#pragma once
#include <torch/all.h>
#ifdef TORCH_API_INCLUDE_EXTENSION_H
#include <torch/extension.h>
#endif // defined(TORCH_API_INCLUDE_EXTENSION_H)
| C | 1 | Hacky-DH/pytorch | torch/csrc/api/include/torch/torch.h | [
"Intel"
] |
{
"@context": {
"property": { "@id": "http://example.com/vocab/property", "@language": "de" },
"indexMap": { "@id": "http://example.com/vocab/indexMap", "@language": "en", "@container": "@index" }
},
"@id": "http://example.com/node",
"property": [
{
"@id": "http://example.com/propertyValueNode... | JSONLD | 3 | fsteeg/json-ld-api | tests/toRdf/0084-in.jsonld | [
"W3C"
] |
<% f = fn 1 -> %>b<% end\nf.() %>
| HTML+EEX | 1 | keyno63/intellij-elixir | testData/org/elixir_lang/eex/psi/parser/test/FnUnexpectedEnd.eex | [
"Apache-2.0"
] |
const path = require("path");
const fs = require("fs");
const asc = require("assemblyscript/cli/asc");
// When --write is set, files will be written in place
// Otherwise it only prints outdated files
const doWrite = process.argv.includes("--write");
const files = ["lib/util/hash/xxhash64.js", "lib/util/hash/md4.js"]... | JavaScript | 5 | fourstash/webpack | tooling/generate-wasm-code.js | [
"MIT"
] |
### 请求 /login 接口 => 成功
POST {{baseUrl}}/login
Content-Type: application/json
{
"username": "admin",
"password": "admin123",
"uuid": "9b2ffbc1-7425-4155-9894-9d5c08541d62",
"code": "1024"
}
### 请求 /get-permission-info 接口 => 成功
GET {{baseUrl}}/get-permission-info
Authorization: Bearer {{token}}
### 请求 /list-me... | HTTP | 3 | TFdream/ruoyi-vue-pro | src/main/java/cn/iocoder/dashboard/modules/system/controller/auth/SysAuthController.http | [
"MIT"
] |
Gramatika
0 $accept: E $end
1 E: A '1'
2 | B '2'
3 A: '1'
4 B: '1'
Terminály s pravidly, ve kterých se objevují
$end (0) 0
'1' (49) 1 3 4
'2' (50) 2
error (256)
Neterminály s pravidly, ve kterých se objevují
$accept (5)
vlevo: 0
E (6)
vlevo: 1 2, vpravo: 0
A (7)
vlevo: 3, vpra... | Bison | 4 | YKG/y | testdata/dev/rr.y.bison | [
"BSD-3-Clause"
] |
'
' Copyright (c) 2016 Roku, Inc. All rights reserved.
'
' File: utils.brs
'
'=======================================================
' Converts the object to a displayable string.
' If obj is invalid, returns <<invalid>>
'
function roToString(obj as Dynamic) as String
return roToStringInv(obj, "<<invalid>>")
end ... | Brightscript | 4 | khangh/samples | certification/manifestData-sample-master/source/utils.brs | [
"MIT"
] |
// model 4:
// marginalise Binomial between casesL and casesU as total
// and p specified as average in age band interval
// using implementation of binomial_lpmf to prepare vectorisation
functions {
real calculate_p_avg_for_obs(//pars
vector p_predict,
real study_rnde_local,
//... | Stan | 5 | viniciuszendron/covid19model | covid19AgeModel/inst/ifr-by-age/base_age_prior_ifr_200820a4_cmdstanv.stan | [
"MIT"
] |
%% This module, when loaded as a plugin, overrides the default `install_deps`
%% provider and erases the dependencies from the rebar3 state, when
%% REBAR_IGNORE_DEPS is true.
-module(rebar_ignore_deps).
-export([init/1, do/1, format_error/1]).
init(State0) ->
case os:getenv("REBAR_IGNORE_DEPS", "") of
"... | Erlang | 4 | arjix/nixpkgs | pkgs/development/tools/build-managers/rebar3/rebar_ignore_deps.erl | [
"MIT"
] |
load '../train/train.plot'
set yrange [:60]
set ylabel 'perplexity'
plot 'model.step-devperplexity' t 'dev perplexity' w lines ls 2
| Gnuplot | 3 | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | Projects/hackernews-comments/train-wiki/dev-perplexity.plot | [
"Apache-2.0"
] |
global $Os
A07000035222()
global $SA3700804E15=A0700003522($Os[0x1]),$SA1400903D2D=A0700003522($Os[0x2]),$SA4300A04532=A0700003522($Os[0x3]),$SA2F00B0060B=A0700003522($Os[0x4]),$SA3C00C02F61=A0700003522($Os[0x5]),$SA2600D04516=A0700003522($Os[0x6]),$SA2100E0632F=A0700003522($Os[0x7]),$SA5C00F02254=A0700003522($Os[0x8])... | AutoIt | 0 | fossabot/myAut2Exe | samples/VanZande2 Obfuscated/VanZandeObfuscated-Protect_Obfuscated.au3 | [
"MS-PL"
] |
(ns hu.lib.equality
(:require
[hu.lib.number
:refer [inc dec]]
[hu.lib.object
:refer [keys]]
[hu.lib.type
:refer [date? array? object? fn? null? undef? string? number? bool? iterable? pattern? pattern-equal? date-equal?]]))
(defcurry ^boolean date-equal?
"Check if the given dates are ... | wisp | 4 | h2non/hu | src/equality.wisp | [
"MIT"
] |
(ns wisp.wisp
"Wisp program that reads wisp code from stdin and prints
compiled javascript code into stdout"
(:require [fs :refer [createReadStream]]
[path :refer [basename dirname join resolve]]
[module :refer [Module]]
[commander]
[wisp.package :refer [version]]
... | wisp | 5 | NhanHo/wisp | src/wisp.wisp | [
"BSD-3-Clause"
] |
/*
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibJS/Runtime/ArgumentsObject.h>
#include <LibJS/Runtime/Completion.h>
#include <LibJS/Runtime/GlobalObject.h>
namespace JS {
ArgumentsObject::ArgumentsObject(GlobalObject& global_object, Environm... | C++ | 5 | r00ster91/serenity | Userland/Libraries/LibJS/Runtime/ArgumentsObject.cpp | [
"BSD-2-Clause"
] |
RwSimpleProjectLoadComponentV2 {
#name : 'Tests',
#condition : 'tests',
#projectNames : [ ],
#componentNames : [
'gemstone32-5/Tests',
'gemstone36-/Tests'
],
#packageNames : [
'STON-Tests',
'STON-GemStone-Tests'
],
#conditionalPackageMapSpecs : {
'gemstone' : {
'allusers' : {
#packageNameToPla... | STON | 3 | GemTalk/Rowan | platforms/gemstone/projects/STON/componentsV2/Tests.ston | [
"MIT"
] |
#
# This is the trd-files recipe
#
#
SUMMARY = "TRD Files"
SECTION = "PETALINUX/apps"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = "\
file://trd-autostart.sh \
file://xocl.txt \
"
S = "${WORKDIR}"
inherit update-rc.d
INITSCRIPT_NAME = "trd-... | BitBake | 4 | hito0512/Vitis-AI | Whole-App-Acceleration/apps/resnet50/build_flow/DPUCVDX8G_vck190/vck190_platform/sw/petalinux/project-spec/meta-base-trd/recipes-apps/trd-files/trd-files.bb | [
"Apache-2.0"
] |
{{
Ethernet TCP/IP Socket Driver
-----------------------------
Original code (c) 2007,2008 Harrison Pham.
Modifications (c) 2008 Robert Quattlebaum.
}}
OBJ
nic : "driver_enc28j60"
random : "RealRandom"
settings : "settings"
q : "qring"
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_0... | Propeller Spin | 5 | deets/propeller | libraries/community/p1/All/Settings/driver_socket.spin | [
"MIT"
] |
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 | 0 | matt-noonan/retypd-data | data/id.decls | [
"MIT"
] |
# Copyright (c) 2016 Snowplow Analytics Ltd. All rights reserved.
#
# This program is licensed to you under the Apache License Version 2.0,
# and you may not use this file except in compliance with the Apache License Version 2.0.
# You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/license... | LookML | 4 | chuwy/snowplow-build-test | 5-data-modeling/web-model/looker/web-block-old-lookml/00_scratch_web_page_context.view.lookml | [
"Apache-2.0"
] |
mixin M
{
Str i() { return priI + " " + intI }
static Str s() { return priS + " " + intS }
private Str priI() { return "private instance" }
private Str intI() { return "internal instance" }
private static Str priS() { return "private static" }
private static Str intS() { return "internal static" }
}
class... | Fantom | 3 | fanx-dev/fanx | compiler/testCompilerx/res/regression/test529.fan | [
"AFL-3.0"
] |
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<i>Copyright (c) Microsoft Corporation. All rights reserved.</i>\n",
"\n",
"<i>Licensed under the MIT License.</i>"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Train SAR on MovieLens with ... | Jupyter Notebook | 5 | enowy/Recommenders | examples/00_quick_start/sar_movielens_with_azureml.ipynb | [
"MIT"
] |
Terminals unused in grammar
illegal
tkRCurl
Gramatika
0 $accept: spec $end
1 spec: defs tkMark rules tail
2 tail: %empty
3 | tkMark
4 defs: %empty
5 | defs def
6 def: tkStart tkIdent
7 | tkUnion
8 | tkLCurl
9 | tkErrorVerbose
10 | rword tag nl... | Bison | 3 | YKG/y | testdata/ok/yacc.y.bison | [
"BSD-3-Clause"
] |
<!-- Processed by Id: cwm.py,v 1.197 2007/12/13 15:38:39 syosi Exp -->
<!-- using base file:///Users/markw/Documents/WORK/ruby_scripting_book/src/part2/data/rdfs_sample_1.n3-->
<rdf:RDF xmlns="http://www.w3.org/2000/01/rdf-schema#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<Class rdf:abou... | Web Ontology Language | 4 | stephensheridan/Java-AI-Book-Code | semantic_web_apache_jena/data/rdfs_sample_1.owl | [
"Apache-2.0"
] |
Listen 8090
<VirtualHost *:8090>
ServerName 127.0.0.1
DocumentRoot /var/www/html/public
DirectoryIndex index.php
<Directory "/var/www/html/public">
AllowOverride All
</Directory>
RewriteRule ^(.*)$ index.php?$1 [L,QSA]
</VirtualHost> | ApacheConf | 3 | SpecialDragonfly/SimulationX | Service/Api/apache/dev.vhost | [
"MIT"
] |
import 'package:dio/dio.dart';
class CacheInterceptor extends Interceptor {
CacheInterceptor();
final _cache = <Uri, Response>{};
@override
void onRequest(RequestOptions options, RequestInterceptorHandler handler) {
var response = _cache[options.uri];
if (options.extra['refresh'] == true) {
pri... | Dart | 5 | rockyoung/dio | example/custom_cache_interceptor.dart | [
"MIT"
] |
#!/usr/bin/env python
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See https://swift.org/LICENSE.txt for license information
# See https://swift.org/CONTRIBU... | Python | 5 | gandhi56/swift | utils/build_swift/run_tests.py | [
"Apache-2.0"
] |
#%RAML 1.0
title: API for REST Services used in the RAML tutorials on Baeldung.com
documentation:
- title: Overview
- content: |
This document defines the interface for the REST services
used in the popular RAML Tutorial series at Baeldung.com.
- title: Disclaimer:
- content: |
All names used ... | RAML | 4 | zeesh49/tutorials | raml/modularization/api-with-libraries.raml | [
"MIT"
] |
.unsupported-desktop-browser {
@include absoluteAligning();
display: block;
text-align: center;
&__title {
color: $unsupportedBrowserTitleColor;
font-weight: 300;
font-size: $unsupportedBrowserTitleFontSize;
letter-spacing: 1px;
}
&__description {
color... | SCSS | 3 | citygxoxo/jitsi-meet | css/unsupported-browser/_unsupported-desktop-browser.scss | [
"Apache-2.0"
] |
#![allow(
unused_variables,
clippy::blacklisted_name,
clippy::needless_pass_by_value,
dead_code
)]
/// This should not compile-fail with:
///
/// error[E0277]: the trait bound `T: Foo` is not satisfied
// See rust-lang/rust-clippy#2760.
trait Foo {
type Bar;
}
struct Baz<T: Foo> {
bar: T... | Rust | 4 | Eric-Arellano/rust | src/tools/clippy/tests/ui/crashes/ice-2760.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
.css-url-relative-at-imported {
background: url(../../nested/asset.png);
background-size: 10px;
}
| CSS | 2 | laineus/vite | packages/playground/assets/css/nested/at-imported-css-url.css | [
"MIT"
] |
desc_sv=Fildelning med Samba
| SystemVerilog | 0 | GalaxyGFX/webmin | samba/module.info.sv | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
# A Script to try and create the table for the readme.md file
# | Category | File |
# | ---------------- | ----------------------------------------------------------------------------- |
# | coloring | [24bit-1.nu](./coloring\24bit... | Nu | 4 | x3rAx/nu_scripts | make_readme_table.nu | [
"MIT"
] |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?python import sitetemplate ?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#" py:extends="sitetemplate">
<head py:match="item.tag=='{http://www.w3.org/1999/xhtml... | Genshi | 4 | ChowNow/elixir | examples/videostore/videostore/templates/master.kid | [
"MIT"
] |
abstract class A { abstract Str x }
class B : A { override Str x } | Fantom | 2 | fanx-dev/fanx | compiler/testCompilerx/res/regression/test1482.fan | [
"AFL-3.0"
] |
#include <PJONOverSampling.h>
// Bus id definition
uint8_t bus_id[] = {0, 0, 0, 1};
// PJON object
PJONOverSampling bus(bus_id, 45);
void receiver_function(uint8_t *payload, uint16_t length, const PJON_Packet_Info &packet_info) {
/* Make use of the payload before sending something, the buffer where payload points ... | Arduino | 4 | jcallano/PJON | examples/ARDUINO/Network/OverSampling/HalfDuplexNoAcknowledge/Device2/Device2.ino | [
"Apache-2.0"
] |
SUMMARY = "bitbake-layers recipe"
DESCRIPTION = "Recipe created by bitbake-layers"
LICENSE = "MIT"
inherit core-image
IMAGE_INSTALL += "openssh hostapd dnsmasq userland initscript rtsp-server wpa-supplicant exfat-utils fuse-exfat main paho-mqtt-c pear libnice curl gdbserver watchdog"
| BitBake | 3 | abir1999/xiaoPi | bsp/meta-xiaopi/recipes-images/xiaopi/xiaopi_0.1.bb | [
"Unlicense"
] |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script src="//use.edgefonts.net/source-code-pro.js"></script>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700' rel='stylesheet... | HTML | 2 | TradeCast/video.js | docs/legacy-docs/api/md.html | [
"Apache-2.0"
] |
local function update_particle(p)
{
p.x+=p.vx
p.y+=p.vy
p.z+=p.vz
}
local function update(particles)
{
foreach(p in particles) {
update_particle(p)
}
}
local function update_several_times(particles, count)
{
for (local i = 0; i < count; ++i)
{
update(particles)
}
}
local function update_sever... | Squirrel | 4 | profelis/daScript | examples/profile/tests/squirrel/particles.nut | [
"BSD-3-Clause"
] |
provider "google" {
project = var.project
region = var.region
zone = var.zone
}
terraform {
required_version = ">= 0.12"
}
data "google_compute_network" "default" {
name = var.network
}
resource "google_container_cluster" "loadtest" {
name = var.cluster_name
location = var.region
# cluster... | HCL | 5 | zouxifeng/teleport | assets/loadtest/cluster/main.tf | [
"Apache-2.0"
] |
class A { Void make() {} }
class B { Int make }
class C : Foo { } // ok
virtual class D { static D make() { return null } private new privateMake() { return } }
class E : D {}
virtual class Foo { new make(Int x := 0) {} } | Fantom | 2 | fanx-dev/fanx | compiler/testCompilerx/res/misc/testDefaultCtor2.fan | [
"AFL-3.0"
] |
--------------------------------------------------------------------------------
-- Engineer: Mike Field <hamster@snap.net.nz>
-- Description: Converts VGA signals into DVID bitstreams.
--
-- 'blank' must be asserted during the non-display
-- portions of the frame
--
-- NOTE due... | VHDL | 5 | AmigaPorts/amiga2000-gfxcard | va2000-spartan6/dvid_out.vhd | [
"MIT",
"IJG",
"Unlicense"
] |
'use strict';
/**
* `{{ name }}` middleware.
*/
module.exports = (config, { strapi }) => {
// Add your own logic here.
return async (ctx, next) => {
strapi.log.info('In {{ name }} middleware.');
await next();
};
};
| Handlebars | 4 | Mithenks/strapi | packages/generators/generators/lib/templates/middleware.js.hbs | [
"MIT"
] |
CACHE>WRITE $DATA(VARI)
0
CACHE>SET VARI="HELLO" WRITE $DATA(VARI)
1
CACHE>NEW VARI WRITE $DATA(VARI) ;Change to a new scope
0
CACHE 1S1>SET VARI(1,2)="DOWN" WRITE $DATA(VARI)
10
CACHE 1S1>WRITE $DATA(VARI(1))
10
CACHE 1S1>WRITE $D(VARI(1,2))
1
CACHE 1S1>SET VARI(1)="UP" WRITE $DATA(VARI(1))
11
<CACHE 1S1>QUIT ;Leave t... | M | 4 | LaudateCorpus1/RosettaCodeData | Task/Null-object/MUMPS/null-object.mumps | [
"Info-ZIP"
] |
BcJ | PureBasic | 1 | dennyac/onnxruntime | onnxruntime/test/testdata/transform/gemm_activation_fusion/test_data_set_0/input_2.pb | [
"MIT"
] |
# phpenv
> A PHP version manager for development purposes.
> More information: <https://github.com/phpenv/phpenv>.
- Install a PHP version globally:
`phpenv install {{version}}`
- Refresh shim files for all PHP binaries known to `phpenv`:
`phpenv rehash`
- List all installed PHP versions:
`phpenv versions`
- Di... | Markdown | 3 | pavelshtanko/tldr | pages/common/phpenv.md | [
"CC-BY-4.0"
] |
"""Test the Control4 config flow."""
import datetime
from unittest.mock import AsyncMock, patch
from pyControl4.account import C4Account
from pyControl4.director import C4Director
from pyControl4.error_handling import Unauthorized
from homeassistant import config_entries
from homeassistant.components.control4.const i... | Python | 5 | MrDelik/core | tests/components/control4/test_config_flow.py | [
"Apache-2.0"
] |
{define elements}
<tr n:foreach="$elements as $element">
<td class="name">
<a href="{$element|linkReflection}" n:class="$element->isDeprecated() ? deprecated">
{if $activeNamespace}{$element->getShortName()}{else}{$element->getName()}{/if}
</a>
</td>
<... | Latte | 4 | pablorg77/tienda_onlineCI | system/apigen/packages/ThemeDefault/src/@elementlist.latte | [
"MIT"
] |
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C | 5 | EricRemmerswaal/tensorflow | tensorflow/cc/client/client_session.h | [
"Apache-2.0"
] |
--TEST--
Bug #46806 (mb_strimwidth cutting too early)
--CREDITS--
Sebastian Schürmann
sebs@php.net
Testfest 2009
--EXTENSIONS--
mbstring
--FILE--
<?php
echo mb_strimwidth('helloworld', 0, 5, '...', 'UTF-8') . "\n";
echo mb_strimwidth('hello', 0, 5, '...', 'UTF-8');
?>
--EXPECT--
he...
hello
| PHP | 3 | NathanFreeman/php-src | ext/mbstring/tests/bug46806.phpt | [
"PHP-3.01"
] |
package com.baeldung.springamqp.exponentialbackoff;
import org.springframework.amqp.core.Queue;
public class RetryQueues {
private Queue[] queues;
private long initialInterval;
private double factor;
private long maxWait;
public RetryQueues(long initialInterval, double factor, long maxWait, Queue... | Java | 4 | DBatOWL/tutorials | spring-amqp/src/main/java/com/baeldung/springamqp/exponentialbackoff/RetryQueues.java | [
"MIT"
] |
fun main () : nothing
var r : char;
var x: char;
fun reverse () : nothing
fun foo() : nothing
fun bar() : nothing
{
r <- 'c';
putc(r);
main();
}
{
r <- 'b';
putc(r);
bar();
putc(r);
}
{
r <- 'a';
put... | Grace | 3 | iPapatsoris/Grace-Compiler | src/tests/nonsense/3.grace | [
"MIT"
] |
$(header)
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
USE work.types_pkg.ALL;
USE work.muon_types.ALL;
PACKAGE def_val_pkg IS
-- default-values for 8-bit registers
-- all types based on STD_LOGIC_VECTOR(7 DOWNTO 0),
-- converted to string in reg_rw_def_val.vhd because
-- of use in lpm_ff as string
--... | VHDL | 4 | ckamtsikis/cmssw | L1TriggerConfig/L1GtConfigProducers/data/VhdlTemplates/Templates/def_val_pkg.vhd | [
"Apache-2.0"
] |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:flutter/cupertino.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:google_maps_flutter_platform_interface/google_ma... | Dart | 5 | simpleclub-extended/plugins | packages/google_maps_flutter/google_maps_flutter_platform_interface/test/types/marker_test.dart | [
"BSD-3-Clause"
] |
[[messaging.whats-next]]
== What to Read Next
The next section describes how to enable <<io#io, IO capabilities>> in your application.
You can read about <<io#io.caching, caching>>, <<io#io.email, mail>>, <<io#io.validation, validation>>, <<io#io.rest-client, rest clients>> and more in this section. | AsciiDoc | 0 | techAi007/spring-boot | spring-boot-project/spring-boot-docs/src/docs/asciidoc/messaging/whats-next.adoc | [
"Apache-2.0"
] |
--TEST--
Bug #48667 (Implementing both iterator and iteratoraggregate)
--FILE--
<?php
abstract class A implements IteratorAggregate, Iterator { }
?>
--EXPECTF--
Fatal error: Class A cannot implement both Iterator and IteratorAggregate at the same time in %s on line %d
| PHP | 3 | guomoumou123/php5.5.10 | Zend/tests/bug48667_2.phpt | [
"PHP-3.01"
] |
Red/System [
Title: "macOS Menu widget"
Author: "Qingtian Xie"
File: %menu.reds
Tabs: 4
Rights: "Copyright (C) 2016-2018 Red Foundation. All rights reserved."
License: {
Distributed under the Boost Software License, Version 1.0.
See https://github.com/red/red/blob/master/BSL-License.txt
}
]
red-menu-actio... | Red | 5 | GalenIvanov/red | modules/view/backends/macOS/menu.reds | [
"BSL-1.0",
"BSD-3-Clause"
] |
# Copyright (c) 2018-2021, Carnegie Mellon University
# See LICENSE for details
myScript := function()
local k, filename;
for k in [16, 32, 64, 128] do
filename := ConcatenationString("fft", String(k));
HDLSynthesize(streamDFTUnroll(k, 2, 4), 1, 0, 16, 300, 0, filename);
od;
end;
| GAP | 3 | sr7cb/spiral-software | namespaces/spiral/paradigms/stream/scripts.gi | [
"BSD-2-Clause-FreeBSD"
] |
<div data-acl data-page-title="<?php echo $this->escape($this->getParam('title', '')); ?>" data-analytics-pageview>
<?php echo $this->exec($this->getParam('body', [])); ?>
</div> | HTML+PHP | 3 | nakshatrasinghh/appwrite | app/views/layouts/empty.phtml | [
"BSD-3-Clause"
] |
"""Fixtures for CPU Speed integration tests."""
from __future__ import annotations
from collections.abc import Generator
from unittest.mock import AsyncMock, MagicMock, patch
import pytest
from homeassistant.components.cpuspeed.const import DOMAIN
from homeassistant.core import HomeAssistant
from tests.common impor... | Python | 5 | MrDelik/core | tests/components/cpuspeed/conftest.py | [
"Apache-2.0"
] |
# varnish extra config here
| VCL | 0 | sejo/fiaas | playbooks/roles/varnish/files/extra.vcl | [
"MIT"
] |
consul = "1.2.3.4"
// This is a comment
template "foo" {
bar = "zip"
}
| HCL | 2 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/HCL/example.hcl | [
"MIT"
] |
{
"@context": {
"so": "https://schema.org/",
"pb": "?jsonld=types#"
},
"AuthenticatedData": {
"@container": "@list",
"@value": [
{
"@type": "pb:CipherParameters"
},
{
"@type": "pb:Formatter"
},
{
"@type": "pb:OpenDiscussion"
},
{
"@type": "pb:BurnAfterReading"
}
]
}... | JSONLD | 3 | DigitEgal/PrivateBin | js/pastemeta.jsonld | [
"CC-BY-4.0"
] |
# frozen_string_literal: true
# Big thanks to ruby_parser, graphql-ruby and oga maintainers (who also use
# ragel) for inspiring some implementations ideas and for saving hours (and even
# more) of ragel lexer integration
module VimlValue
class Lexer
%%{
machine lexer; # % fix syntax highlight
access... | Ragel in Ruby Host | 5 | eugen0329/vim-easy-search | spec/support/lib/viml_value/lexer.rl | [
"Vim"
] |
// rust-lang/rust#83309: The compiler tries to suggest potential
// methods that return `&mut` items. However, when it doesn't
// find such methods, it still tries to add suggestions
// which then fails an assertion later because there was
// no suggestions to make.
fn main() {
for v in Query.iter_mut() {
... | Rust | 4 | mbc-git/rust | src/test/ui/borrowck/issue-83309-ice-immut-in-for-loop.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
package com.baeldung.boot.converter;
import com.baeldung.boot.domain.AbstractEntity;
import com.baeldung.boot.domain.Bar;
import com.baeldung.boot.domain.Foo;
import org.springframework.core.convert.converter.Converter;
import org.springframework.core.convert.converter.ConverterFactory;
public class StringToAbstractE... | Java | 4 | DBatOWL/tutorials | spring-web-modules/spring-mvc-basics-3/src/main/java/com/baeldung/boot/converter/StringToAbstractEntityConverterFactory.java | [
"MIT"
] |
# Usage: cd $PLAN9; awk -f dist/checkman.awk man?/*.?
#
# Checks:
# - .TH is first line, and has proper name section number
# - sections are in order NAME, SYNOPSIS, DESCRIPTION, EXAMPLES,
# FILES, SOURCE, SEE ALSO, DIAGNOSTICS, BUGS
# - there's a manual page for each cross-referenced page
BEGIN {
# .SH sections sho... | Awk | 5 | newluhux/plan9port | dist/checkman.awk | [
"MIT"
] |
"""
Before running this, copy attachments/tanh_crypto.py to this directory.
When coding this addition law, I wrote a version using projective coordinates
The break becomes obvious when you do this. Let a, b, and s, be rational
numbers, with numerators an, bn, and sn, and denominators ad, bd, sd. Then we
can write ou... | Sage | 4 | tonghuaroot/google-ctf | 2017/finals/2017-finals-crypto-tanh/solution.sage | [
"Apache-2.0"
] |
INSERT INTO employees (employee_number, employee_name, employee_age) VALUES ('111', 'John Doe', 55);
INSERT INTO employees (employee_number, employee_name, employee_age) VALUES ('A123', 'John Doe Junior', 25); | SQL | 3 | DBatOWL/tutorials | persistence-modules/java-jpa-2/src/test/resources/queryparams.sql | [
"MIT"
] |
# This file has been generated by the GAP build system,
# do not edit manually!
GAParch=FAKE-GAP-ARCH
GAP_ABI=64
GAP_HPCGAP=no
GAP_VERSION="4.12dev"
GAP_BUILD_VERSION="4.12dev"
GAP_LIBTOOL_CURRENT=8
GAP_LIBTOOL_AGE=0
GAP_KERNEL_MAJOR_VERSION=8
GAP_KERNEL_MINOR_VERSION=0
GAP_BIN_DIR="/workspace/destdir/share/gap"
GAP_... | GAP | 1 | sharanry/Yggdrasil | G/GAP_pkg/bundled/sysinfo.gap | [
"MIT"
] |
vespaFilters = angular.module 'vespaFilters', []
vespaFilters.filter 'unique', () ->
return (items, filterOn) ->
if filterOn == false
return items
if (filterOn or angular.isUndefined(filterOn)) and angular.isArray(items)
newItems = []
extractValueToCompare... | Literate CoffeeScript | 4 | visigoth/V3SPA | src/js/filters.litcoffee | [
"BSD-3-Clause"
] |
#!/usr/bin/env bash
set -evo pipefail
SERVER_BUILD_OUTPUT="$1"
CLI_BUILD_OUTPUT="$2"
BUILD_OUTPUT="$3"
CLI_MIGRATIONS_IMAGE="cli-migrations-v3"
SERVER_IMAGE=$(docker load -i "${SERVER_BUILD_OUTPUT}/image.tar" | grep "^Loaded image: " | sed "s/Loaded image: //g")
SERVER_IMAGE_TAG=$(echo "$SERVER_IMAGE" | sed "s/.*:\(... | Shell | 4 | gh-oss-contributor/graphql-engine-1 | scripts/cli-migrations/v3/build.sh | [
"Apache-2.0",
"MIT"
] |
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- --
-- ... | Ada | 5 | CandyROM/external_libncurses | Ada95/samples/sample-menu_demo-aux.ads | [
"X11"
] |
/*
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <Kernel/Arch/ScopedCritical.h>
#include <Kernel/Arch/Processor.h>
namespace Kernel {
ScopedCritical::ScopedCritical()
{
enter();
}
ScopedCritical::~ScopedCritical()
{
if (m_valid)
... | C++ | 4 | r00ster91/serenity | Kernel/Arch/x86/common/ScopedCritical.cpp | [
"BSD-2-Clause"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.