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 |
|---|---|---|---|---|---|
Strict
Module BRL.Basic
ModuleInfo "Version: 1.02"
ModuleInfo "Author: Mark Sibly"
ModuleInfo "License: zlib/libpng"
ModuleInfo "Copyright: Blitz Research Ltd"
ModuleInfo "Modserver: BRL"
ModuleInfo "History: 1.02 Release"
ModuleInfo "History: Added BRL.Socket"
Import BRL.Math
Import BRL.Bank
Import BRL.Random
Imp... | BlitzMax | 2 | jabdoa2/blitzmax | mod/brl.mod/basic.mod/basic.bmx | [
"Zlib"
] |
package com.taobao.arthas.core.command.model;
/**
* @author gongdewei 2020/5/11
*/
public class PwdModel extends ResultModel {
private String workingDir;
public PwdModel() {
}
public PwdModel(String workingDir) {
this.workingDir = workingDir;
}
@Override
public String getType()... | Java | 4 | weihubeats/arthas | core/src/main/java/com/taobao/arthas/core/command/model/PwdModel.java | [
"Apache-2.0"
] |
[
define_tag:'lp_logical_in',
-description='Evaluates if a value is contained within a list of elements. Returns true or false.',
-priority='replace',
-required='value', -copy,
-required='list',
-optional='list_delimiter';
local:'trim' = true;
if: params->(find:'-notrim') > 0;
local:'trim' = fal... | Lasso | 4 | fourplusone/SubEthaEdit | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/LassoStartup/lp_logical_in.lasso | [
"MIT"
] |
// Copyright 2021 The gRPC Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... | Protocol Buffer | 3 | warlock135/grpc | src/proto/grpc/testing/xds/v3/router.proto | [
"Apache-2.0"
] |
= Caveats for implementing Signal.trap callbacks
As with implementing signal handlers in C or most other languages,
all code passed to Signal.trap must be reentrant. If you are not
familiar with reentrancy, you need to read up on it at
{Wikipedia}[https://en.wikipedia.org/wiki/Reentrancy_(computing)] or
elsewhere bef... | RDoc | 5 | silathdiir/artichoke | artichoke-backend/vendor/ruby/doc/signals.rdoc | [
"MIT"
] |
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 20 20" height="20" viewBox="0 0 20 20" width="20"><rect fill="none" height="20" width="20" x="0" y="0"/><polygon points="15.41,11.88 14,13.29 12.59,11.88 11.88,12.59 13.29,14 11.88,15.41 12.59,16.12 14,14.71 15.41,16.12 16.12,15.41 14.71,14 16.12,12.59"... | SVG | 1 | mobiledesres/material-icons | svg/action/cancel_schedule_send/materialiconstwotone/20px.svg | [
"Apache-2.0"
] |
complete -c my-app -n "__fish_use_subcommand" -s h -l help -d 'Print help information'
complete -c my-app -n "__fish_use_subcommand" -s V -l version -d 'Print version information'
complete -c my-app -n "__fish_use_subcommand" -l single-quotes -d 'Can be /'always/', /'auto/', or /'never/''
complete -c my-app -n "__fish_... | fish | 4 | omjadas/clap | clap_complete/tests/snapshots/quoting.fish | [
"Apache-2.0",
"MIT"
] |
<?xml version="1.0"?>
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="*">
<html>
<body>
<script>if (window.testRunner) testRunner.dumpAsText();</script>
<p>SUCCESS</p>
</body>
</html>
</xsl:template>
</xsl:transform>
| XSLT | 3 | zealoussnow/chromium | third_party/blink/web_tests/fast/xsl/resources/import-after-comment-transform.xsl | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include "go_asm.h"
#include "textflag.h"
TEXT ·IndexByte(SB), NOSPLIT, $0-40
I64Load b_base+0(FP)
I32WrapI64
I32Load8U c+24(FP)
I64Load b_len+8(FP)
I32Wr... | GAS | 3 | SSSDNSY/go | src/internal/bytealg/indexbyte_wasm.s | [
"BSD-3-Clause"
] |
// format: OFF
package mesosphere.marathon.raml
case class {{ name }}({{ params | join:", " }}) extends RamlGenerated
object {{ name }} {
implicit val playJsonFormat = play.api.libs.json.Json.format[{{ name }}]
}
| Liquid | 4 | fquesnel/marathon | type-generator/src/main/resources/templates/object.liquid | [
"Apache-2.0"
] |
//
// Copyright (c) 2018, chunquedong
// Licensed under the Academic Free License version 3.0
//
// History:
// 2018-07-14 Jed Young
//
class NioBuf : Buf
{
new fromFile(File file, Str mode, Int pos, Int? size) : super.privateMake() {
init(file, mode, pos, size)
}
new makeMem(Int size) : super.privateMak... | Fantom | 4 | fanx-dev/fanx | library/std/fan/io/NioBuf.fan | [
"AFL-3.0"
] |
<div>
{syntax latte}
{$foo}
{{$notFoo}}
{/syntax}
</div> | Latte | 2 | Antholoj/netbeans | php/php.latte/test/unit/data/testfiles/lexer/top/syntax-latte.latte | [
"Apache-2.0"
] |
// run-fail
// error-pattern: thread 'main' panicked at 'explicit panic'
// ignore-emscripten no processes
fn main() {
let mut vec = vec![];
vec.push((vec.len(), panic!()));
}
| Rust | 2 | Eric-Arellano/rust | src/test/ui/issues/issue-51345-2.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
# This file is distributed under the same license as the Django package.
#
# Translators:
# GunChleoc, 2015
# GunChleoc, 2015
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-01-16 20:42+0100\n"
"PO-Revision-Date: 2018-05-29 09:32+0000\n"
"Last-Translator: GunChleoc\... | Gettext Catalog | 4 | jpmallarino/django | django/contrib/humanize/locale/gd/LC_MESSAGES/django.po | [
"BSD-3-Clause",
"0BSD"
] |
exclude:
- sls: issue-47182.stateA
somestuff:
cmd.run:
- name: echo This supersedes the stuff previously done in issue-47182.stateA
| SaltStack | 2 | byteskeptical/salt | tests/integration/files/file/base/issue-47182/stateA/newer.sls | [
"Apache-2.0"
] |
NoDecorators.ɵfac = …;
NoDecorators.ɵprov = …;
(function () {
(typeof ngDevMode === "undefined" || ngDevMode) && $i0$.ɵsetClassMetadata(NoDecorators, [{
type: Injectable
}], function () {
return [{
type: Service
}];
}, null);
})();
| JavaScript | 3 | John-Cassidy/angular | packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/class_metadata/parameter_decorators_no_decorators.js | [
"MIT"
] |
size: 1024px 512px;
dpi: 96;
lines {
data-x: list(100px 300px 500px 700px 900px);
data-y: list(200px 300px 200px 300px);
}
| CLIPS | 3 | paulasmuth/fnordmetric | test/plot-lines/lines_err_inconsistent_data.clp | [
"Apache-2.0"
] |
<MediaContainer allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="1" librarySectionTitle="Movies" librarySectionUUID="805308ec-5019-43d4-a449-75d2b9e42f93" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1603922053" size="1"><Video addedAt="1377829261" art="/library/metadata/1/art/1... | XML | 2 | MrDelik/core | tests/components/plex/fixtures/media_1.xml | [
"Apache-2.0"
] |
var A : [1..5, 1..5] int;
writeln(A(6, 1));
| Chapel | 1 | jhh67/chapel | test/arrays/deitz/part6/test_bounds1.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
[Desktop Entry]
Name=Remarkable
Comment=A free, fully featured markdown editor for Linux.
Categories=GNOME;Utility;
Exec=/usr/bin/remarkable %f
Icon=remarkable
Terminal=false
Type=Application
| desktop | 2 | Noorquacker/Remarkable | remarkable.desktop | [
"MIT"
] |
if( $#ARGV != 0 ) {
die( "Usage: $0 docfile" );
} else {
$docfile = $ARGV[0];
}
if( ! -e "$docfile" ) {
die( "File $docfile does not exist\n" );
}
$docname = `basename $docfile`;
chop( $docname );
$docname =~ s/.doc$//;
$outname = $docname . ".m";
open( O,">$outname" );
open(M,$docfile);
$synopsis = <M>;
$toss =... | XProc | 3 | jreyes1108/antelope_contrib | nobuild/data/matlab/antelope/matlabdoc/matdoc2dotm.xpl | [
"BSD-2-Clause",
"MIT"
] |
use Getopt::Std ;
if ( ! getopts('f:o:') || @ARGV < 1 ) {
die ( "Usage: $0 [-f time] [-o fmt] [sign] [count] [interval]\ne.g $0 - 1 day gives you the last day\n" ) ;
}
use Datascope ;
use POSIX qw(floor);
$ts= $opt_f ? str2epoch($opt_f) : str2epoch("now");
$fmt= $opt_o ? $opt_o : "%E";
$offset=1.0;
fo... | XProc | 2 | jreyes1108/antelope_contrib | bin/utility/reltime/reltime.xpl | [
"BSD-2-Clause",
"MIT"
] |
xof 0302txt 0064
Header
{
1;
0;
1;
}
Mesh ToeConeMesh
{
5;
0.00; 0.00; 0.00;,
0.00; 0.00; 1.00;,
0.00; 0.15; 0.00;,
0.15; 0.00; 0.00;,
-0.15; 0.00; 0.00;;
4;
3;1,4,3;,
3;1,2,4;,
3;1,3,2;,
3;2,3,4;;
Material
{
1.000000;1.000000;1.000000;1.000000;;
0.000000;
1.000000;1.... | Logos | 2 | Ybalrid/orbiter | Extern/mssdk_dx7/samples/Multimedia/VBSamples/DXMisc/Media/toecone.x | [
"MIT"
] |
use crate::simd::intrinsics;
use crate::simd::{LaneCount, Simd, SimdElement, SupportedLaneCount};
use core::ops::{Add, Mul};
use core::ops::{BitAnd, BitOr, BitXor};
use core::ops::{Div, Rem, Sub};
use core::ops::{Shl, Shr};
mod assign;
mod deref;
mod unary;
impl<I, T, const LANES: usize> core::ops::Index<I> for Simd<... | Rust | 5 | david-perez/rust | library/portable-simd/crates/core_simd/src/ops.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
# this script will print a blue gradient on the screen
# We can get the terminal width and height now with term size
# but we like to use the script as a benchmark, so let's keep
# it a constant size for now
let height = 40 # really need to get the terminal height here
let width = 160 # really need to get the termina... | Nu | 4 | x3rAx/nu_scripts | coloring/gradient.nu | [
"MIT"
] |
/**
* @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
*/
export {ContentOrigin} from './src/content_origin';
export {MapAndPath, RawSourceMap} from './src/raw_source_map';
exp... | TypeScript | 2 | John-Cassidy/angular | packages/compiler-cli/src/ngtsc/sourcemaps/index.ts | [
"MIT"
] |
# Copyright 2013 Reservoir Labs, Inc.
# All rights reserved.
#
# Contributed by Bob Rotsted
#
# Small Business Innovation Research (SBIR) Data Rights.
#
# These SBIR data are furnished with SBIR rights under Contract
# No. DE-SC0004400 and DE-SC0006343. For a period of 4 years
# (expiring August, 2018), unless exten... | Bro | 5 | reservoirlabs/bro-scripts | producer-consumer-ratio/producer-consumer-ratio.bro | [
"Apache-2.0"
] |
%%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 2021. 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
%%
%% Un... | Erlang | 4 | jjhoo/otp | lib/kernel/test/error_info_lib.erl | [
"Apache-2.0"
] |
<p>It's often a good idea to start the test with opening <tt>/selenium/setup</tt> (see <%%= link_to 'here', :controller => 'selenium', :action => 'setup' %> for more info).</p>
<table>
<tr><th colspan="3"><%%= @page_title %></th></tr>
<tr><td>open</td><td>/selenium/setup</td><td> </td></tr>
<%% for page in... | RHTML | 3 | RockHong/railscasts-episodes | episode-116/store/vendor/plugins/selenium-on-rails/generators/selenium/templates/rhtml.rhtml | [
"MIT"
] |
--TEST--
Bug #64070 (Inheritance with Traits failed with error)
--FILE--
<?php
trait first_trait
{
function first_function()
{
echo "From First Trait\n";
}
}
trait second_trait
{
use first_trait {
first_trait::first_function as second_function;
}
function first_function()
{... | PHP | 4 | guomoumou123/php5.5.10 | Zend/tests/traits/bug64070.phpt | [
"PHP-3.01"
] |
#define TERRAIN
#include "envMapPS.hlsl"
| HLSL | 0 | rohankumardubey/WickedEngine | WickedEngine/shaders/envMapPS_terrain.hlsl | [
"MIT"
] |
use "lib:codegen-trace-additional"
use @gc_local[Pointer[None]](target: Main)
use @gc_local_snapshot[Pointer[None]](target: Main)
use @gc_local_snapshot_destroy[None](obj_map: Pointer[None])
use @objectmap_size[USize](obj_map: Pointer[None])
use @pony_ctx[Pointer[None]]()
use @pony_triggergc[None](ctx: Pointer[None])
... | Pony | 4 | rtpax/ponyc | test/libponyc-run/codegen-trace-no-trace/main.pony | [
"BSD-2-Clause"
] |
/*
See LICENSE folder for this sample’s licensing information.
Abstract:
Metal shaders used for ray tracing
*/
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
#include "ShaderTypes.h"
#include "ClosestHitShader.h"
// Interpolates vertex attribute of an arbitrary type across the surface o... | Metal | 5 | RemiArnaud/The-Forge | Examples_3/Unit_Tests/src/16_Raytracing/Shaders/Metal/ClosestHit.rchit.metal | [
"Apache-2.0"
] |
<%= if Enum.any?(@results.episodes), do: render("episode.html", Map.merge(assigns, %{query: @query, results: @results.episodes})) %>
<%= if Enum.any?(@results.news_items), do: render("news_item.html", Map.merge(assigns, %{query: @query, results: @results.news_items})) %>
<%= if Enum.any?(@results.news_sources), do: ren... | HTML+EEX | 3 | PsOverflow/changelog.com | lib/changelog_web/templates/admin/search/all.html.eex | [
"MIT"
] |
#version 310 es
layout (local_size_x = 4, local_size_y = 4) in;
layout (binding = 0) readonly buffer InBufUV {
uint data[];
} in_buf_uv;
layout (binding = 1) writeonly buffer OutBufUV {
uvec2 data[];
} out_buf_uv;
layout (binding = 2) readonly buffer CoordX {
vec4 data[];
} coordx;
layout (binding = 3)... | Slash | 3 | zongwave/libxcam | shaders/glsl/shader_geomap_fastmap_uv_nv12.comp.sl | [
"Apache-2.0"
] |
use v6;
class Item {
has Str $.name;
has Int $.sell_in is rw = 0;
has Int $.quality is rw = 0;
method Str {
"{$!name}, {$!sell_in}, {$!quality}"
}
};
| Perl6 | 3 | yangyangisyou/GildedRose-Refactoring-Kata | perl6/lib/Item.pm6 | [
"MIT"
] |
source "https://rubygems.org"
gem "nokogiri", "~> 1.6.0"
gemspec :path=>"../"
| Logos | 2 | shanipribadi/phonelib | gemfiles/Gemfile.ruby-2.0.x | [
"MIT"
] |
import { WorkerPool } from "gatsby-worker"
import { initJobsMessagingInMainProcess } from "../../../jobs/worker-messaging"
import { initReporterMessagingInMainProcess } from "../../reporter"
import type { MessagesFromChild, MessagesFromParent } from "../../messaging"
export type GatsbyTestWorkerPool = WorkerPool<
ty... | TypeScript | 4 | waltercruz/gatsby | packages/gatsby/src/utils/worker/__tests__/test-helpers/create-test-worker.ts | [
"MIT"
] |
- dashboard: customer_segment_deepdive
preferred_viewer: dashboards-next
title: Customer Segment Deep-dive
layout: newspaper
elements:
- title: Sales
name: Sales
model: retail_block_model_v2
explore: transactions
type: single_value
fields: [transactions.selected_comparison, transactions__l... | LookML | 4 | dbrinegar-4mile/block-retail | dashboards/customer_segment_deepdive.dashboard.lookml | [
"MIT"
] |
= Pass query parameters to auth URLs
The <tt>*_path</tt> and <tt>*_url</tt> methods allow passing additional query parameters:
rodauth.create_account_path(type: "seller")
#=> "/create-account?type=seller"
rodauth.login_url(type: "operator")
#=> "https//example.com/login?type=operator"
| RDoc | 4 | dmitryzuev/rodauth | doc/guides/query_params.rdoc | [
"MIT"
] |
#version 3.6;
// Right-handed coordinate system in which the z-axis points upwards
camera {
orthographic
location <8,11,-50>
right 25*x*image_width/image_height
up 25*y
look_at <8,11,0>
}
// White background
background{rgb 1}
// Two lights with slightly different colors
light_source{<-8,30,-20> color rgb <0.79,... | POV-Ray SDL | 3 | softwarecapital/chr1shr.voro | 2d/examples/basic/doe_diagram.pov | [
"BSD-3-Clause-LBNL"
] |
(*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
(* A well known condition variable. When we need to exit, we will broadcast on it. This allows
* various bits of code to wait for ... | OCaml | 4 | esilkensen/flow | src/monitor/utils/exitSignal.ml | [
"MIT"
] |
-- |
-- The core functional representation
--
module Language.PureScript.CoreFn (
module C
) where
import Language.PureScript.AST.Literals as C
import Language.PureScript.CoreFn.Ann as C
import Language.PureScript.CoreFn.Binders as C
import Language.PureScript.CoreFn.Desugar as C
import Language.PureScript.CoreFn.Ex... | Haskell | 4 | ethansaxenian/RosettaDecode | lang/Haskell/CoreFn.hs | [
"MIT"
] |
'reach 0.1';
function sum(...xs) {
return Array.reduce(array(UInt, xs), 0, add);
}
export const main =
Reach.App(
{},
[Participant('A', {})],
(A) => {
const x = sum(1, 2, 3, 4, 5);
assert(x == 15);
const y = (...all) =>
Array.reduce(array(UInt, all), 1, mul);
assert(y(1... | RenderScript | 4 | chikeabuah/reach-lang | hs/t/y/rest_parameter.rsh | [
"Apache-2.0"
] |
-- @shouldFailWith PossiblyInfiniteCoercibleInstance
module Main where
import Safe.Coerce (coerce)
newtype N a = N (a -> N a)
infinite :: forall a b. N a -> N b
infinite = coerce
| PureScript | 4 | andys8/purescript | tests/purs/failing/PossiblyInfiniteCoercibleInstance.purs | [
"BSD-3-Clause"
] |
(*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
type t
val new_gcx : unit -> t
val mark_ids_of_type : Context.t -> t -> Type.t -> Scope_id.t -> t
val blame_ids_of_type : Contex... | OCaml | 4 | Hans-Halverson/flow | src/typing/generics/generic_cx.mli | [
"MIT"
] |
@foo
@file @bar
@file:
@:baz
@fil:ann
@ :
package boo
| Kotlin | 0 | qussarah/declare | compiler/testData/psi/annotation/targeted/onFile/nonFIleAnnotationBeforePackage.kt | [
"Apache-2.0"
] |
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!319 &31900000
AvatarMask:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: Raven Head Mask
m_Mask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
m_Elements:
... | Mask | 2 | Interactml/iml_framework | Assets/ART/Malbers Animations/Animals Packs/Animations/Raven/Raven Head Mask.mask | [
"MIT"
] |
// https://raw.githubusercontent.com/beefytech/Beef/5d5186f8127af4c670f76d7af7df735d3544a16d/IDE/dist/lib/gen/src/Program.bf
#pragma warning disable 168
using System;
using System;
using System.Interop;
using System.IO;
using System.Threading;
using System.Diagnostics;
using System.Collections;
namespace gen
{
class... | Brainfuck | 3 | gammy55/linguist | samples/Beef/Program.bf | [
"MIT"
] |
package test;
@meta @interface MyAnn {
}
@meta class My {
} | Java | 1 | qussarah/declare | compiler/testData/compileJavaAgainstKotlin/targets/annotation.java | [
"Apache-2.0"
] |
(defmodule pattern-test
(export all))
;; Testing multiple recurring variables.
(defun rv
;; Testing with cons and list.
([x (cons x xs)] (list 'c-1 x xs))
([(cons x _) (cons x xs)] (list 'c-2 x xs))
([(cons x _) (list x _)] (list 'c-3 x))
([(list x x) (list x y)] (list 'c-4 x y))
;; Testing with tuples.... | LFE | 5 | haetze/lfe | dev/pattern-test.lfe | [
"Apache-2.0"
] |
set testmodule [file normalize tests/modules/mallocsize.so]
start_server {tags {"modules"}} {
r module load $testmodule
test {MallocSize of raw bytes} {
assert_equal [r mallocsize.setraw key 40] {OK}
assert_morethan [r memory usage key] 40
}
test {MallocSize of string} {
... | Tcl | 4 | cndoit18/redis | tests/unit/moduleapi/mallocsize.tcl | [
"BSD-3-Clause"
] |
Format: Pe Little-endian 32-bit
Kind: Executable
Architecture: I386
Flags: Coff { characteristics: 102 }
Relative Address Base: 400000
Entry Address: 4012e1
Segment { name: ".text", address: 401000, size: 104d3 }
Segment { name: ".rdata", address: 412000, size: 6808 }
Segment { name: ".data", address: 419000, size: 12f... | ObjDump | 1 | sunfishcode/object | crates/examples/testfiles/pe/base.exe.objdump | [
"Apache-2.0",
"MIT"
] |
GuardedOperation
================
Copyright (C) 2015, Bill Burdick, Roy Riggs, TEAM CTHULHU
An operation with a set of "guarded" regions that can fail or cause
other operations to fail if the guarded regions would be
"concurrently" modified.
Licensed with ZLIB license.
=============================
This software is ... | Literate CoffeeScript | 3 | zot/Leisure | src/lib/ot/guarded-operation.litcoffee | [
"Zlib"
] |
const NodeAttributes = require('../utils/node-attributes.js')
module.exports = {
meta: {
docs: {
description: 'Ensure preconnect is used with Google Fonts',
recommended: true,
url: 'https://nextjs.org/docs/messages/google-font-preconnect',
},
},
create: function (context) {
return {... | JavaScript | 4 | blomqma/next.js | packages/eslint-plugin-next/lib/rules/google-font-preconnect.js | [
"MIT"
] |
<?php # vim:ft=php
include 'jlex.php';
include 'svg-path.php';
%%
%{
/* w/e */
%}
%function nextToken
D = [0-9]
E = [Ee][+-]?{D}+
%%
<YYINITIAL> [0|1] { return $this->createToken(A2S_SVGPathParser::TK_FLAG); }
<YYINITIAL> [+]?{D}+ { return $this->createToken(A2S_SVGPathParser::TK_POSNUM); }
<YYINITIAL> "-"{D}+ ... | Lex | 4 | JailbreakFox/LightWeightRepository | ZeroMQ/filecode/bin/asciitosvg/svg-path.lex | [
"BSD-2-Clause"
] |
img, svg {
max-width: 100%;
display: block;
margin-left: auto;
margin-right: auto;
}
img.inline
display: inline;
.nav-item .icon.outbound {
display: none !important;
}
.navbar {
box-shadow: 0px 1px 10px 0px rgba(221,221,221,0.1);
top: 0px;
position: fixed;
z-index: 222;
width:100%;
paddin... | Stylus | 4 | TheEssenceSentry/AI-Expert-Roadmap | .vuepress/styles/index.styl | [
"MIT"
] |
class Out<out T>
class In<in Z>
interface A<T, E> {
fun foo1(x: Out<T>): Out<T>
fun foo2(x: In<E>): In<E>
var prop: Out<T>
}
// method: A::foo1
// generic signature: (LOut<+TT;>;)LOut<TT;>;
// method: A::foo2
// generic signature: (LIn<-TE;>;)LIn<TE;>;
// method: A::getProp
// generic signature: ()LOut... | Kotlin | 3 | qussarah/declare | compiler/testData/writeSignature/declarationSiteVariance/GenericOverrides.kt | [
"Apache-2.0"
] |
/* bright */
.gradient-bg {
background: linear-gradient(338.96deg, rgba(0, 0, 0, 0.2) -18.99%, rgba(0, 0, 0, 0) 25.34%),
linear-gradient(300.08deg, #53ffb1 7.6%, #3ecf8e 64.93%);
/* transform: rotate(-89.79deg); */
}
| CSS | 3 | ProPiloty/supabase | www/components/Carousels/ImageCarousel.module.css | [
"Apache-2.0"
] |
Rectangle {
#origin : Point [ -40, -15 ],
#corner : Point [ 60, 35 ]
}
| STON | 2 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/STON/Rectangle.ston | [
"MIT"
] |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | JavaScript | 4 | good-gym/material-ui | packages/material-ui-icons/lib/NoStrollerSharp.js | [
"MIT"
] |
.free-scroll-container
&.view
position fixed!important
.core-container
.scroll-wrapper
height 400px
position relative
overflow hidden
.scroll-item
height 50px
line-height 50px
font-size 24px
font-weight bold
border-bottom 1px solid #eee
text-align center
... | Stylus | 3 | cym2050/better-scroll | packages/react-examples/src/pages/core/index.styl | [
"MIT"
] |
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.9-slim
WORKDIR /app
RUN apt update
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY ./app ./app
| Dockerfile | 4 | malywonsz/awesome-compose | fastapi/Dockerfile | [
"CC0-1.0"
] |
module Svc {
@ Fatal announce port with FATAL Event ID
port FatalEvent(
Id: FwEventIdType @< The ID of the FATAL event
)
}
| FORTRAN | 3 | AlperenCetin0/fprime | Svc/Fatal/Fatal.fpp | [
"Apache-2.0"
] |
cat apache_header.txt $1 > _add_apache_header.txt && mv _add_apache_header.txt $1
| Shell | 2 | Hacky-DH/pytorch | scripts/add_apache_header.sh | [
"Intel"
] |
/*
* Copyright (c) 2015, Technische Universitaet Berlin
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, ... | nesC | 5 | tgtakaoka/tinyos-prod | apps/jennic-tests/radio/Ieee154Bare/TestC.nc | [
"BSD-3-Clause"
] |
#version 450
#extension GL_ARB_sparse_texture2 : require
struct ResType
{
uint _m0;
vec4 _m1;
};
layout(binding = 0) uniform sampler2D uSamp;
layout(location = 0) in vec2 vUV;
void main()
{
uint _30;
vec4 _31;
_30 = sparseTextureARB(uSamp, vUV, _31);
ResType _26 = ResType(_30, _31);
vec4... | GLSL | 3 | js6i/SPIRV-Cross | reference/shaders-no-opt/asm/frag/sparse-texture-feedback-uint-code.asm.desktop.frag | [
"Apache-2.0"
] |
:noheader:
= Spring Framework Documentation
[horizontal]
<<overview.adoc#overview, Overview>> :: history, design philosophy, feedback,
getting started.
<<core.adoc#spring-core, Core>> :: IoC Container, Events, Resources, i18n,
Validation, Data Binding, Type Conversion, SpEL, AOP.
<<testing.adoc#testing, Testing>> :: M... | AsciiDoc | 1 | spreoW/spring-framework | src/docs/asciidoc/index.adoc | [
"Apache-2.0"
] |
using Uno;
using Uno.Collections;
using Uno.Compiler.ExportTargetInterop;
namespace Fuse.Scripting.V8
{
[Require("Header.Include", "include/V8Simple.h")]
internal extern(USE_V8) class Object: Scripting.Object
{
[WeakReference]
readonly Context _context;
internal readonly Simple.JSObject _object;
internal S... | Uno | 4 | helilabs/fuselibs | Source/Fuse.Scripting.JavaScript/V8/Object.uno | [
"MIT"
] |
#+TITLE: ui/unicode
#+DATE: June 8, 2020
#+SINCE: v2.0
#+STARTUP: inlineimages nofold
* Table of Contents :TOC_3:noexport:
- [[#description][Description]]
- [[#maintainers][Maintainers]]
- [[#module-flags][Module Flags]]
- [[#plugins][Plugins]]
- [[#prerequisites][Prerequisites]]
- [[#features][Features]... | Org | 5 | leezu/doom-emacs | modules/ui/unicode/README.org | [
"MIT"
] |
--TEST--
Bug #48428 (crash when exception is thrown while passing function arguments)
--FILE--
<?php
try {
function x() { throw new Exception("ERROR"); }
x(x());
} catch(Exception $e) {
echo($e -> getMessage());
}
?>
--EXPECT--
ERROR
| PHP | 3 | thiagooak/php-src | Zend/tests/bug48428.phpt | [
"PHP-3.01"
] |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes' />
<xsl:variable name="main_menu" select="/htmlhelp_toc/main_menu_file"/>
<xsl:variable name="docs" select="/htmlhel... | XSLT | 4 | yatonon/dlib-face | docs/docs/chm/htmlhelp_stylesheet.xsl | [
"BSL-1.0"
] |
class Class1 : GLib.Object {
public void hello() {
var c2 = new Class2();
c2.hello();
}
}
| Vala | 2 | kira78/meson | test cases/vala/2 multiple files/class1.vala | [
"Apache-2.0"
] |
namespace OpenAPI
open PetApiHandlerParams
open System
open Microsoft.AspNetCore.Http
module PetApiServiceInterface =
//#region Service interface
type IPetApiService =
abstract member AddPet : AddPetBodyParams -> AddPetResult
abstract member DeletePet : unit -> DeletePetResult
abstract... | F# | 4 | MalcolmScoffable/openapi-generator | samples/server/petstore/fsharp-functions/OpenAPI/src/api/PetApiServiceInterface.fs | [
"Apache-2.0"
] |
(kicad_pcb (version 4) (host pcbnew 4.0.7-e2-6376~58~ubuntu17.04.1)
(general
(links 28)
(no_connects 0)
(area 32.520599 27.275 76.550001 43.575001)
(thickness 2)
(drawings 50)
(tracks 206)
(zones 0)
(modules 16)
(nets 29)
)
(page User 101.6 101.6)
(layers
(0 F.Cu signal... | KiCad | 4 | xkey10x/u2f-zero | hardware/u2f-zero.kicad_pcb | [
"BSD-2-Clause-FreeBSD"
] |
10 5
0 1 4 2 4 3 1 [0] [0] [0] [0]
1 1 1 7 [20]
2 1 1 10 [22]
3 1 1 8 [14]
4 1 2 6 7 [16] [-3]
5 1 3 6 9 11 [-6] [0] [8]
6 1 2 10 5 [-4] [4]
7 1 2 11 1 [9] [-23]
8 1 2 11 3 [3] [-18]
9 1 1 11 [4]
10 1 1 11 [3]
11 1 0
0 1 0 0 0 0 0
1 1 -1 0 -1 0 -1
2 1 0 0 -1 1 0
3 1 2 1 2 0 0
4 1 2 -1 -1 -1 0
5 1 -2 ... | Eagle | 2 | klorel/or-tools | examples/data/rcpsp/single_mode_consumer_producer/ubo10_cum_2/psp10_26.sch | [
"Apache-2.0"
] |
/**
* @file verify.yap
*
* @brief JUpyter support.
*/
%% :- module( verify,
%% [errors/2,
%% ready/2]
%% ).
:- use_module(library(hacks)).
%% :- use_module(library(jupyter)).
:- use_module(library(lists)).
:- use_module(library(maplist)).
%% :- use_modu... | Prolog | 4 | ryandesign/yap | packages/python/yap_kernel/yap_ipython/prolog/verify.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
--TEST--
Fractions with DateTime objects (create_from_format)
--INI--
date.timezone=UTC
--FILE--
<?php
$dt = date_create_from_format( "Y-m-d H:i:s.u", "2016-10-03 12:47:18.819313" );
var_dump( $dt );
$dt = date_create_from_format( "U.u", "1475500799.176312" );
var_dump( $dt );
?>
--EXPECTF--
object(DateTime)#%d (%d) {... | PHP | 3 | thiagooak/php-src | ext/date/tests/date_time_fractions_create_from_format.phpt | [
"PHP-3.01"
] |
version (!gc) {
Foo: enum {
test = UNDEFINED_C_CONST
}
} | ooc | 0 | shamanas/rock | test/compiler/enums/versioned-enum.ooc | [
"MIT"
] |
#!perl
#
# test apparatus for Text::Template module
# still incomplete.
use strict;
use warnings;
use Test::More;
unless (eval { require Safe; 1 }) {
plan skip_all => 'Safe.pm is required for this test';
}
else {
plan tests => 12;
}
use_ok 'Text::Template' or exit 1;
my $c = Safe->new or die;
# Test handli... | Perl | 4 | pmesnier/openssl | external/perl/Text-Template-1.56/t/safe2.t | [
"Apache-2.0"
] |
" Vim syntax file
" Language: ldap.conf(5) configuration file.
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
" Latest Revision: 2006-12-11
if exists("b:current_syntax")
finish
endif
let s:cpo_save = &cpo
set cpo&vim
syn keyword ldapconfTodo contained TODO FIXME XXX NOTE
syn regi... | VimL | 4 | uga-rosa/neovim | runtime/syntax/ldapconf.vim | [
"Vim"
] |
mailq_refresh=Väntetid (sekunder) för att uppdatera e-postkön,3,Uppdatera inte
perpage=Antal e-postbrev per sida,0
wrap_width=Maximal bredd för e-postbrev (ombrytning sker),0
sort_mode=Sortera tabeller efter,1,0-ordningen i filen,1-Namn
send_mode=Skicka e-post via förbindelse till,3,Sendmail executable
sendmail_cf=Full... | SystemVerilog | 3 | GalaxyGFX/webmin | sendmail/config.info.sv | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
service Storage {
oneway void incr(1: i32 amount);
i32 get();
}
| Thrift | 3 | Jimexist/thrift | contrib/zeromq/storage.thrift | [
"Apache-2.0"
] |
\\
\\ AJY 2016-01-09
\\
\\ Vector and array ops for ANN software
\\
\\ ------------------------------------------------------------
\\ Aux array operations
\\ First load Ramil Farkhshatov's for macro:
\\ (load "for.shen")
\\ Then load this file:
\\ (load "array.shen")
(define outer-product
{ vector --> vector -->... | Shen | 5 | ajnavarro/language-dataset | data/github.com/bluejay77/ANN-with-Shen-4/f93c9c32bd161f7467a635f6f62d7dc0c2d6ebf7/array.shen | [
"MIT"
] |
/*
* Copyright (c) Ian F. Darwin 1986-1995.
* Software written by Ian F. Darwin and others;
* maintained 1995-present by Christos Zoulas and others.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistr... | C | 5 | thiagooak/php-src | ext/fileinfo/libmagic/is_tar.c | [
"PHP-3.01"
] |
#! /usr/bin/env perl
# Copyright 2006-2018 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the OpenSSL license (the "License"). You may not use
# this file except in compliance with the License. You can obtain a copy
# in the file LICENSE in the source distribution or at
# https://www.openssl.org... | Perl | 5 | vanga-top/mediasoup | worker/deps/openssl/openssl/util/mkrc.pl | [
"0BSD"
] |
;;
;
; Name: single_bind_tcp_shell
; Version: $Revision: 1633 $
; License:
;
; This file is part of the Metasploit Exploit Framework
; and is subject to the same licenses and copyrights as
; the rest of this package.
;
; Description:
;
; Single portbind TCP shell.
;
; Meta-I... | Assembly | 3 | OsmanDere/metasploit-framework | external/source/shellcode/bsdi/ia32/single_bind_tcp_shell.asm | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
title: Motovun Jack.pdf
type: application/pdf
tags: picture
| Unity3D Asset | 0 | 8d1h/TiddlyWiki5 | editions/tw5.com/tiddlers/images/Motovun Jack.pdf.meta | [
"BSD-3-Clause"
] |
////////////////////////////////////////////////////////////////////////////////
// ____ ____
// / /\/ /
// /___/ \ / Vendor: Xilinx
// \ \ \/ Version : 1.12
// \ \ Application : Virtex-6 FPGA GTX Transceiver Wizard
// / / Filename : vertex6_gtx_rx_component.v
// /___/ ... | Verilog | 3 | Marslanali/fpga_vertex_6_gtx_Interface | vertex6_gtx_rx_component.veo | [
"MIT"
] |
PREFIX : <http://example.org/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?s (STRDT(?str,xsd:string) AS ?str1) WHERE {
?s :str ?str
FILTER(LANGMATCHES(LANG(?str), "en"))
}
| SPARQL | 3 | alpano-unibz/ontop | test/sparql-compliance/src/test/resources/testcases-dawg-sparql-1.1/functions/strdt01.rq | [
"Apache-2.0"
] |
@0xe0b7ff464fbc7ee1;
struct Foo {
bar @0 :Text;
baz @1 :Text;
}
| Cap'n Proto | 2 | sahirgomez1/capnp-ts | packages/capnp-ts-test/test/integration/foo-new.capnp | [
"MIT"
] |
--TEST--
Enum prevent unsetting value
--FILE--
<?php
enum Foo: int {
case Bar = 0;
}
unset(Foo::Bar->value);
?>
--EXPECTF--
Fatal error: Cannot use temporary expression in write context in %s on line %d
| PHP | 3 | NathanFreeman/php-src | Zend/tests/enum/no-unsed-value.phpt | [
"PHP-3.01"
] |
# docker wrapper that returns a nushell table
def docker [
...args:string # command to be passed to the real docker command
] {
let data = (^docker $args --format={{json .}}|lines|each {$it|from json})
if Labels in ($data|get) {
$data|docker labels
} {
$data
}
}
# subcommand used to reformat doc... | Nu | 4 | CommonLoon102/scc | examples/language/docker.nu | [
"MIT",
"Unlicense"
] |
\ For testing REQUIRED etc
1+
| Forth | 0 | jamesbowman/swapforth | anstests/required-helper2.fth | [
"BSD-3-Clause"
] |
DROP TABLE IF EXISTS `User`;
CREATE TABLE `User` (
`id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` text COLLATE utf8mb4_unicode_ci NOT NULL,
`name` text COLLATE utf8mb4_unicode_ci,
`age` tinyint unsigned DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLL... | SQL | 3 | safareli/prisma | packages/client/src/__tests__/integration/errors/int-errors/setup.sql | [
"Apache-2.0"
] |
;;;;;::=--------------------------------=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;::=- SuperCollider server options -=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;::=--------------------------------=::;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun server-options ()
#m(arch undefined ; - the target architecture ... | LFE | 4 | ioolkos/undertone | include/xt/options.lfe | [
"Apache-2.0"
] |
{{ flashSession.output() }}
<div class="row">
<div class="col-sm-12">
<div class="card card-secondary">
<div class="card-header">
<h3 class="card-title">
Migrations List
<br/>
<small>All migrations that we managed to fi... | Volt | 3 | PSD-Company/phalcon-devtools-docker | src/Web/Tools/Views/migrations/index.volt | [
"BSD-3-Clause"
] |
// MIT License
// Copyright (c) 2019-2021 bloc97
// All rights reserved.
// 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
// t... | GLSL | 4 | dvdvideo1234/Anime4K | glsl/Upscale/Anime4K_Upscale_GAN_x4_UL.glsl | [
"MIT"
] |
scriptname SKI_ActiveEffectsWidget extends SKI_WidgetBase
; SCRIPT VERSION ----------------------------------------------------------------------------------
;
; History
;
; 1: - Initial version
;
; 2: - Updated hudModes
;
; 3: - Added MinimumTimeLeft
int function GetVersion()
return 3
endFunction
; PRIVATE VARIABL... | Papyrus | 5 | pragasette/skyui | dist/Data/Scripts/Source/SKI_ActiveEffectsWidget.psc | [
"Unlicense",
"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 | src/vs/workbench/contrib/themes/test/electron-browser/colorRegistryExport.test.ts | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.