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 |
|---|---|---|---|---|---|
// <copyright file="SafariDriver.cs" company="WebDriver Committers">
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to ... | C# | 5 | TamsilAmani/selenium | dotnet/src/webdriver/Safari/SafariDriver.cs | [
"Apache-2.0"
] |
@comment{-*- Dictionary: target:scribe/hem/hem; Mode: spell; Package: Hemlock -*-}
@chap[Introduction]
@hemlock is a text editor which follows in the tradition of @emacs
and the Lisp Machine editor ZWEI. In its basic form, @hemlock has almost
the same command set as ITS/TOPS-20 @emacs@foot[In this document, "Emacs"
r... | CartoCSS | 5 | digikar99/ccl | cocoa-ide/hemlock/doc/user/intro.mss | [
"Apache-2.0"
] |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 459.7 459.7"><path d="M392.4 67.3C349 24 291.2 0 229.9 0S110.7 24 67.3 67.3 0 168.5 0 230s24 119 67.3 162.5c43.4 43.4 101.2 67.3 162.6 67.3s119-23.9 162.5-67.3a228.3 228.3 0 0 0 67.3-162.5c0-61.4-24-119.2-67.3-162.6zM319.6 309c19.3-21.9 29.9-49.7 29.9-79.1 0-29.5-10.... | SVG | 1 | omidtajik/material-ui | docs/public/static/themes/onepirate/producBuoy.svg | [
"MIT"
] |
# Literal as subject
"abc" <http://www.w3.org/2013/TurtleTests/p> <http://www.w3.org/2013/TurtleTests/p> .
| Turtle | 1 | joshrose/audacity | lib-src/lv2/serd/tests/TurtleTests/turtle-syntax-bad-struct-14.ttl | [
"CC-BY-3.0"
] |
Setup:
$ . $TESTDIR/setup.sh
$ echo 'blah abc def' > blah1.txt
$ echo 'abc blah def' > blah2.txt
$ echo 'abc def blah' > blah3.txt
$ echo 'abcblah def' > blah4.txt
$ echo 'abc blahdef' >> blah4.txt
$ echo 'blahx blah' > blah5.txt
$ echo 'abcblah blah blah' > blah6.txt
Match a word of the beginning:
... | Perl | 4 | kknives/the_silver_searcher | tests/literal_word_regexp.t | [
"Apache-2.0"
] |
namespace Avalonia.OpenGL
{
public enum GlProfileType
{
OpenGL,
OpenGLES
}
public struct GlVersion
{
public GlProfileType Type { get; }
public int Major { get; }
public int Minor { get; }
public GlVersion(GlProfileType type, int major, int minor)... | C# | 4 | jangernert/Avalonia | src/Avalonia.OpenGL/GlVersion.cs | [
"MIT"
] |
; Alert dialog callable from the shell.
;
; Copyright (c) 2011 Martin Hedenfalk <martin@bzero.se>
;
; Permission to use, copy, modify, and distribute this software for any
; purpose with or without fee is hereby granted, provided that the above
; copyright notice and this permission notice appear in all copies.
;
; THE... | Nu | 3 | girvo/vico | Support/lib/nu/alert.nu | [
"Unlicense"
] |
insert into t (id) values
(0), (1), (2), (3), (4), (5), (6), (7), (8), (9),
(10), (11), (12), (13), (14), (15), (16), (17), (18), (19),
(20), (21), (22), (23), (24), (25), (26), (27), (28), (29),
(30), (31), (32), (33), (34), (35), (36), (37), (38), (39),
(40), (41), (42), (43), (44), (45), (46), (47), (48), (49),
(50)... | SQL | 1 | cuishuang/tidb | br/tests/lightning_disk_quota/data/disk_quota.t.0.sql | [
"Apache-2.0"
] |
/* 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/shim/status_macros.h | [
"Apache-2.0"
] |
package com.baeldung.startup;
import org.springframework.stereotype.Component;
import java.util.concurrent.ThreadLocalRandom;
import java.util.concurrent.TimeUnit;
@Component
public class ResourceInitializer {
ResourceInitializer() throws Exception {
// simulate resource init with random delay of a few ... | Java | 4 | DBatOWL/tutorials | spring-boot-modules/spring-boot-actuator/src/main/java/com/baeldung/startup/ResourceInitializer.java | [
"MIT"
] |
default
{
state_entry()
{
float r = llFrand(2) - 1.0;
llOwnerSay("The arccosine of " + (string)r + " is " + llAcos(r));
}
}
| LSL | 4 | MandarinkaTasty/OpenSim | bin/assets/ScriptsAssetSet/llAcos.lsl | [
"BSD-3-Clause"
] |
#pragma once
#include "envoy/upstream/upstream.h"
#include "source/extensions/filters/network/thrift_proxy/thrift.h"
namespace Envoy {
namespace Extensions {
namespace NetworkFilters {
namespace ThriftProxy {
/**
* Extends Upstream::ProtocolOptionsConfig with Thrift-specific cluster options.
*/
class ProtocolOpti... | C | 4 | dcillera/envoy | source/extensions/filters/network/thrift_proxy/protocol_options_config.h | [
"Apache-2.0"
] |
--TEST--
bcadd() incorrect argument count
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=-2
--FILE--
<?php
echo bcadd("-4.27", "7.3");
?>
--EXPECT--
3
| PHP | 3 | NathanFreeman/php-src | ext/bcmath/tests/bcscale_variation002.phpt | [
"PHP-3.01"
] |
#include <stdlib.h>
int* foo() {
int* y;
y = (int*) malloc( sizeof( int ));
return y;
}
int main( int argc, char** argv ) {
// error, did not free or assign memory malloc-d by foo
foo();
return 0;
}
| Unified Parallel C | 3 | maurizioabba/rose | projects/RTED/tests/UPC/simple/test.upc | [
"BSD-3-Clause"
] |
body {
background: #181818;
}
/*
* Auth
*/
.authcontainer {
max-width: 420px;
margin: 96px auto;
}
.authcontainer a {
color: #8b5cf6 !important;
}
.authcontainer button[type='submit'] {
background: #8b5cf6 !important;
}
.authcontainer input:focus {
border-color: #8b5cf6 !important;
}
.authcontainer ... | CSS | 4 | ProPiloty/supabase | examples/nextjs-auth-tailwind/styles/globals.css | [
"Apache-2.0"
] |
many maybe
shh 1
wow
| Dogescript | 0 | joeratt/dogescript | test/spec/operators/maybe/source.djs | [
"MIT"
] |
import * as TodoTaskController from 'TodoTask.js';
import TodoInput from '../Controls/TodoInput';
define TodoTask extends TodoTaskController {
let TaskView as (.view) {
input.toggle type=checkbox {
dualbind
value = completed
// emit signal when INPUTs state changes via user input
x-signal = 'dom: t... | Mask | 5 | richorrichard/todomvc | examples/atmajs/js/Todos/TodoTask.mask | [
"MIT"
] |
.root
--dropdown-text-color: var(--color-front)
font: inherit
background: transparent
border: none
appearance: none
background-color: var(--color-back)
background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22... | Sass | 3 | snosrap/spaCy | website/src/styles/dropdown.module.sass | [
"MIT"
] |
//
// Copyright (c) 2006, Brian Frank and Andy Frank
// Licensed under the Academic Free License version 3.0
//
// History:
// 3 Nov 06 Brian Frank Creation
//
**
** Depend models a dependency as a pod name and a version
** constraint. Convention for Fantom pods is a four part
** version format of 'major.minor.bu... | Fantom | 5 | fanx-dev/fanx | library/std/fan/reflect/Depend.fan | [
"AFL-3.0"
] |
// Renderer side modules, please sort alphabetically.
export const rendererModuleList: ElectronInternal.ModuleEntry[] = [
{ name: 'contextBridge', loader: () => require('./context-bridge') },
{ name: 'crashReporter', loader: () => require('./crash-reporter') },
{ name: 'ipcRenderer', loader: () => require('./ipc-... | TypeScript | 4 | TarunavBA/electron | lib/renderer/api/module-list.ts | [
"MIT"
] |
INCLUDEPATH += $$PWD/include/
HEADERS += $$PWD/include/tabulate/cell.hpp \
$$PWD/include/tabulate/color.hpp \
$$PWD/include/tabulate/column.hpp \
$$PWD/include/tabulate/column_format.hpp \
$$PWD/include/tabulate/exporter.hpp \
$$PWD/include/tabulate/font_align.hpp \
$$PWD/include/tabulate/font_style... | QMake | 1 | byronhe/tabulate | tabulate.pri | [
"BSL-1.0",
"BSD-3-Clause",
"MIT"
] |
scriptname SKI_ConfigBase extends SKI_QuestBase
;##################################################################################################
; API Version: 3
;##################################################################################################
;
; Base script for custom config menus.
;
; This fil... | Papyrus | 5 | pragasette/skyui | dist/Data/Scripts/Headers/SKI_ConfigBase.psc | [
"Unlicense",
"MIT"
] |
implement main0 () =
println!("Hello, World!")
| ATS | 4 | vmchale/project-init | src/includes/ats/project.dats | [
"BSD-3-Clause"
] |
$$ MODE TUSCRIPT
numbers=RANDOM_NUMBERS (1,9,9),nr=0
SECTION check
LOOP o,n=numbers
IF (n!=o) THEN
DO PRINT
EXIT
ELSEIF (n==9&&o==9) THEN
DO PRINT
PRINT " You made it ... in round ",r
STOP
ELSE
CYCLE
ENDIF
ENDLOOP
ENDSECTION
SECTION print
PRINT numbers
ENDSECTION
DO PRINT
LOOP r=1,14
IF (nr>=0&&nr... | Turing | 3 | LaudateCorpus1/RosettaCodeData | Task/Number-reversal-game/TUSCRIPT/number-reversal-game.tu | [
"Info-ZIP"
] |
.template-item-details {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.template-item-details .template-item-details-sub {
width: 100%;
}
| CSS | 3 | dzma352/portainer | app/portainer/components/template-list/template-item/template-item.css | [
"Zlib"
] |
"""The tests for the utilities."""
| Python | 0 | MrDelik/core | tests/util/__init__.py | [
"Apache-2.0"
] |
polyhedron(
points=[
[10,10,0],
[10,-10,0],
[-10,-10,0],
[-10,10,0],
[0,0,10]
],
triangles=[
[0,1,4],
[1,2,4],
[2,3,4],
[3,0,4],
[1,0,3],
[2,1,3]
]
);
| OpenSCAD | 3 | heristhesiya/OpenJSCAD.org | packages/io/scad-deserializer/tests/examples/example011.scad | [
"MIT"
] |
body {
padding: 10px;
font-family: sans-serif;
}
| CSS | 1 | kennethsequeira/Hello-world | MeteorJS/client/main.css | [
"MIT"
] |
# Entry point of the nitfind command.
module cmd
import opts
import matcher
import reporter
import finder
var opt_ctx = new OptionContext
opt_ctx.options_before_rest = true
var usage = new OptionText("""Usage: nitfind [OPTIONS] PATTERN [FILES OR DIRECTORIES]
Search for PATTERN in each source file in the tree rooted... | Nit | 5 | PuerkitoBio/nitfind | cmd.nit | [
"BSD-3-Clause"
] |
#!/usr/bin/env bash
SCRCPY_SERVER_PATH="$MESON_BUILD_ROOT/server/scrcpy-server" "$MESON_BUILD_ROOT/app/scrcpy"
| Shell | 2 | LuckyNigel/scrcpy | scripts/run-scrcpy.sh | [
"Apache-2.0"
] |
module audiostreamerscrobbler.groups.BaseGroupStragegyImpl
import audiostreamerscrobbler.groups.GroupProcessEventTypes.types.GroupProcessEvents
union PlayerStatus = {
Idle
Playing
}
let DEBUG = false
let KEY_STATE = "state"
let KEY_PLAYER = "player"
function createBaseGroupStragegyImpl = |playerTypes, cbProcessEv... | Golo | 4 | vvdleun/audiostreamerscrobbler | src/main/golo/include/groups/BaseGroupStragegyImpl.golo | [
"MIT"
] |
values = []
for i in range(10):
break if i > 4
values.Add(i)
assert values == [0, 1, 2, 3, 4]
| Boo | 1 | popcatalin81/boo | tests/testcases/integration/statements/for-5.boo | [
"BSD-3-Clause"
] |
= Documentation for Close Account Feature
The close account feature allows users to close their accounts.
== Auth Value Methods
account_closed_status_value :: The integer representing closed accounts.
close_account_additional_form_tags :: HTML fragment containing additional form tags to use on the close account form... | RDoc | 4 | monorkin/rodauth | doc/close_account.rdoc | [
"MIT"
] |
/*--------------------------------------------------*/
/* SAS Programming for R Users - code for exercises */
/* Copyright 2016 SAS Institute Inc. */
/*--------------------------------------------------*/
/*SP4R03s05*/
/*Part A*/
data sp4r.sports(keep= make type msrp);
set sp4r.cars;
where type='... | SAS | 4 | snowdj/sas-prog-for-r-users | code/SP4R03s05.sas | [
"CC-BY-4.0"
] |
module NotFound.Model exposing (Model)
import Login.Login as Login
import Routes
type alias Model =
Login.Model
{ route : Routes.Route
, notFoundImgSrc : String
}
| Elm | 3 | Caprowni/concourse | web/elm/src/NotFound/Model.elm | [
"Apache-2.0"
] |
"""Support for restoring entity states on startup."""
from __future__ import annotations
from abc import abstractmethod
import asyncio
from datetime import datetime, timedelta
import logging
from typing import Any, TypeVar, cast
from homeassistant.const import ATTR_RESTORED, EVENT_HOMEASSISTANT_STOP
from homeassistan... | Python | 5 | MrDelik/core | homeassistant/helpers/restore_state.py | [
"Apache-2.0"
] |
At: "001.hac":3:
parse error: syntax error
parser stacks:
state value
#STATE# (null)
#STATE# (null)
#STATE# (null)
#STATE# keyword: defproc [3:1..7]
#STATE# identifier: empty [3:9..13]
#STATE# ( [3:14]
#STATE# (chan-type) [3:15..19]
#STATE# ( [3:20]
#STATE# list<(type-ref)>: ... [0:0]
#STATE# keyword: chan [3:21..24... | Bison | 0 | broken-wheel/hacktist | hackt_docker/hackt/test/parser/chp/001.stderr.bison | [
"MIT"
] |
BtensorJ
| PureBasic | 0 | pchandrasekaran1595/onnx | onnx/backend/test/data/node/test_sequence_insert_at_back/test_data_set_0/input_1.pb | [
"Apache-2.0"
] |
insert into USERS(name, status, id) values('Peter', 1, 1);
insert into USERS(name, status, id) values('David', 1, 2);
insert into USERS(name, status, id) values('Ed', 1, 3);
| SQL | 1 | zeesh49/tutorials | spring-boot-persistence/src/test/resources/import_active_users.sql | [
"MIT"
] |
const __floattitf = @import("floattitf.zig").__floattitf;
const testing = @import("std").testing;
fn test__floattitf(a: i128, expected: f128) !void {
const x = __floattitf(a);
try testing.expect(x == expected);
}
test "floattitf" {
try test__floattitf(0, 0.0);
try test__floattitf(1, 1.0);
try tes... | Zig | 5 | lukekras/zig | lib/std/special/compiler_rt/floattitf_test.zig | [
"MIT"
] |
/**
* Syllogism (Greek: συλλογισμός syllogismos,
* "conclusion, inference") is a kind of logical argument
* that applies deductive reasoning to arrive at a
* conclusion based on two or more propositions that
* are asserted or assumed to be true.
*
* In its earliest form, defined by Aristotle, from the
* co... | Alloy | 5 | c-luu/alloy-specs | logic/syllogism/syllogism.als | [
"Apache-2.0"
] |
/* Guides.rubyonrails.org */
/* Style.css */
/* Created January 30, 2009
--------------------------------------- */
/*
---------------------------------------
Import advanced style sheet
---------------------------------------
*/
@import url("reset.css");
@import url("main.css");
@import url("dark.css");
@import url(... | CSS | 3 | jstncarvalho/rails | guides/assets/stylesheets/style.css | [
"MIT"
] |
<!DOCTYPE html>
<html>
<head>
<title>Phalcon PHP Framework</title>
</head>
<body>
{{ content() }}
</body>
</html> | Volt | 2 | derryberni/mvc | simple-volt/app/views/index.volt | [
"BSD-3-Clause"
] |
60 mtof 0.1 bltriangle
| SourcePawn | 1 | aleatoricforest/Sporth | examples/bltriangle.sp | [
"MIT"
] |
{{#each document}}
<tr class="jta_tr">
<td class="col-record-td" data-col="record"><div class="jta_value col-record">{{record}}</div></td>
{{#each cells}}
{{print_safe this}}
{{/each}}
</tr>
{{/each}}
| Handlebars | 3 | zadcha/rethinkdb | admin/static/handlebars/dataexplorer_result_json_table_tr_value.hbs | [
"Apache-2.0"
] |
% original code:
% https://github.com/openlilylib/oll-core/blob/master/internal/predicates.scm
#(begin
(define (lilypond-version-string)
(string-join
(map (lambda (elt) (if (integer? elt) (number->string elt) elt))
(ly:version))
"."))
(display (format "~a\n~a\n" (lilypond-version-string)... | LilyPond | 4 | HolgerPeters/lyp | lib/lyp/etc/detect_system_lilypond.ly | [
"MIT"
] |
<p>Included file #2 ({$localvar}, {$hello})</p>
Parent: {basename($this->getReferringTemplate()->getName())}/{$this->getReferenceType()}
| Latte | 1 | TheDigitalOrchard/latte | tests/Latte/templates/subdir/include2.latte | [
"BSD-3-Clause"
] |
sealed class Base {
class A : Base()
class B : Base()
class C : Base()
} | Groff | 2 | qussarah/declare | jps-plugin/testData/incremental/classHierarchyAffected/sealedClassImplAdded/Base.kt.new.1 | [
"Apache-2.0"
] |
{ lib, fetchzip }:
let
version = "20130214";
in fetchzip {
name = "caladea-${version}";
url = "https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-${version}.tar.gz";
postFetch = ''
tar -xzvf $downloadedFile --strip-components=1
mkdir -p $out/etc/fonts/conf.d
mkd... | Nix | 4 | collinwright/nixpkgs | pkgs/data/fonts/caladea/default.nix | [
"MIT"
] |
\documentclass{article}
\usepackage{bbm}
\usepackage[greek,english]{babel}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage{autofe}
\usepackage{agda}
\begin{document}
\begin{code}
data αβγδεζθικλμνξρστυφχψω : Set₁ where
postulate
→⇒⇛⇉⇄↦⇨↠⇀⇁ : Set
\end{code}
\[
∀X [ ∅ ∉ X ⇒ ∃f:X ⟶ ⋃ X\ ∀A ∈ X (f(A) ∈ A) ]... | Literate Agda | 3 | andorp/plfa.github.io | papers/sbmf/text.lagda | [
"CC-BY-4.0"
] |
10 5 2 0
0 1 7 4 2 9 10 7 6 1 [0 0 0] [0 0 0] [0 0 0] [0 0 0] [0 0 0] [0 0 0] [0 0 0]
1 3 3 11 3 5 [10 6 7] [5 27 22 13 9 3 14 13 13] [2 25 28 14 -3 -1 -1 -5 6]
2 3 3 5 11 8 [1 0 0 4 12 0 1 0 1] [1 8 1] [2 0 3 8 12 0 0 0 3]
3 3 2 11 7 [4 7 5] [0 0 -1 -6 -1 1 -4 0 11]
4 3 2 10 11 [10 0 10 6 0 4 23 15 13] [4 2 8]
5... | Eagle | 1 | klorel/or-tools | examples/data/rcpsp/multi_mode_max_delay/mm_j10/psp175.sch | [
"Apache-2.0"
] |
{
"def": {
"enemySpottedMarker": {
"enabled": true,
"alpha": "{{a:spotted}}",
"x": 88,
"y": -2,
"align": "center",
"bindToIcon": true,
"format": "<font color='{{c:spotted}}'>{{spotted}}</font>",
"shadow": {}
},
"xmqpServiceMarker": {
"enabled": true,
... | XC | 3 | elektrosmoker/RelhaxModpack | RelhaxModpack/RelhaxUnitTests/bin/Debug/patch_regressions/followPath/check_06.xc | [
"Apache-2.0"
] |
onmessage = function (e) {
if (typeof self.Deno !== "undefined") {
throw new Error("Deno namespace unexpectedly available in worker");
}
postMessage(e.data);
};
| JavaScript | 3 | Preta-Crowz/deno | cli/tests/subdir/non_deno_worker.js | [
"MIT"
] |
#include <metal_stdlib>
#include "OperationShaderTypes.h"
using namespace metal;
typedef struct
{
float shadowTintIntensity;
float highlightTintIntensity;
float3 shadowTintColor;
float3 highlightTintColor;
} HighlightShadowTintUniform;
fragment half4 highlightShadowTintFragment(SingleInputVertexIO fra... | Metal | 4 | luoxiao/GPUImage3 | framework/Source/Operations/HighlightAndShadowTint.metal | [
"BSD-3-Clause"
] |
// Copyright(c) 2022 https://github.com/WangXuan95
package Rv32iCPU;
import Vector::*;
import DReg::*;
import FIFOF::*;
import SpecialFIFOs::*;
import DFIFOF1::*;
// 枚举:指令码 OPCODE ---------------------------------------------------------------------------------------------
typedef enum { AUIPC = 7'b0010111, //... | Bluespec | 5 | Xiefengshang/BSV_Tutorial_cn | src/Rv32iCPU/Rv32iCPU.bsv | [
"MIT"
] |
Note 0
Copyright (C) 2017 Jonathan Hough. All rights reserved.
)
NB. Radial Basis Function Networks for Classification and Regression.
load jpath '~Projects/jlearn/clustering/kmeans.ijs'
coclass 'RBFBase'
dot=: +/ . *
pinv=: |: dot~ %.@:(|: dot ])
create=: codestroy
NB. Radial Basis Function Network for classi... | J | 5 | jonghough/jlearn | rbf/rbf.ijs | [
"MIT"
] |
====================
eCAL @(ecal_version)
====================
- Release Date: @(gh_release.published_at.strftime("%Y-%m-%d"))
- GitHub Release Page: @(gh_release.html_url)
@{
changelog = gh_release.body
changelog = changelog.replace('\\n', '\n')
}@
@[if changelog_file != ""]@
Changelog
=========
.. literalinclude... | EmberScript | 3 | SirArep/ecal | doc/extensions/resource/download_archive_page.rst.em | [
"Apache-2.0"
] |
{ lib, buildPythonPackage, fetchFromGitHub, isPy27
, bleach
, mt-940
, requests
, sepaxml
, pytestCheckHook
, pytest-mock
}:
buildPythonPackage rec {
version = "3.0.1";
pname = "fints";
disabled = isPy27;
src = fetchFromGitHub {
owner = "raphaelm";
repo = "python-fints";
rev = "v${version}";
s... | Nix | 4 | collinwright/nixpkgs | pkgs/development/python-modules/fints/default.nix | [
"MIT"
] |
.example-accordion {
display: block;
max-width: 500px;
}
.example-accordion-item {
display: block;
border: solid 1px #ccc;
}
.example-accordion-item + .example-accordion-item {
border-top: none;
}
.example-accordion-item-header {
display: flex;
align-content: center;
justify-content: space-between;
}... | CSS | 4 | tungyingwaltz/components | src/components-examples/cdk/accordion/cdk-accordion-overview/cdk-accordion-overview-example.css | [
"MIT"
] |
#ifndef CAFFE2_UTILS_THREADPOOL_COMMON_H_
#define CAFFE2_UTILS_THREADPOOL_COMMON_H_
#ifdef __APPLE__
#include <TargetConditionals.h>
#endif
// caffe2 depends upon NNPACK, which depends upon this threadpool, so
// unfortunately we can't reference core/common.h here
// This is copied from core/common.h's definition of... | C | 4 | Hacky-DH/pytorch | caffe2/utils/threadpool/ThreadPoolCommon.h | [
"Intel"
] |
{% set result = 9999999999 | random_hash() %}
{% include 'jinja_filters/common.sls' %}
| SaltStack | 2 | byteskeptical/salt | tests/integration/files/file/base/jinja_filters/hashutils_random_hash.sls | [
"Apache-2.0"
] |
ENTRY(thorRtEntry)
SECTIONS {
/* This address is dictated by System V ABI's kernel code model. */
. = 0xFFFFFFFF80000000;
stubsPtr = .;
.text.stubs : {
*(.text.stubs)
}
stubsLimit = .;
.text : { *(.text .text.*) }
.rodata : { *(.rodata .rodata.*) }
.eh_frame_hdr : { *(.eh_frame_hdr) }
.eh_frame : { *(.e... | Logos | 3 | kITerE/managarm | kernel/thor/arch/x86/link.x | [
"MIT"
] |
discard """
errormsg: "illegal recursion in type 'Weird'"
"""
# issue #3456
import tables
type
Weird = ref seq[Weird]
var t = newTable[int, Weird]()
| Nimrod | 2 | JohnAD/Nim | tests/types/tillegaltyperecursion3.nim | [
"MIT"
] |
rhack(1)
# NAME
rhack - easily edit external crates that your Rust project depends on.
# SYNOPSIS
*rhack* <package name>
# EDITING
To check out a local copy of your dependency run:
*rhack* <package name>
This will make a copy of the crate in your _RHACK_DIR_, and patch your
*Cargo.toml*.
For example running *... | SuperCollider | 4 | SirWindfield/rhack | rhack.1.scd | [
"BSD-3-Clause"
] |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>How Many Demos Do You Need</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
.demo4 {
display: flex;
display: -webkit-flex;
align-items: center;
height: 700px;
position: relative;
... | HTML | 3 | jsm1003/react-motion | demos/demo4-photo-gallery/index.html | [
"MIT"
] |
fileFormatVersion: 2
guid: 56c88c70f2044f74dae91724d10cd93c
folderAsset: yes
timeCreated: 1477156499
licenseType: Pro
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| Unity3D Asset | 0 | Jhinhx/ET | Unity/Assets/Editor/RsyncEditor.meta | [
"MIT"
] |
get:
description: Get info about the Marathon Instance
responses:
200:
description: General configuration and runtime information about this Marathon instance.
body:
application/json:
type: info.MarathonInfo
example: !include examples/info.json
| RAML | 4 | fquesnel/marathon | docs/docs/rest-api/public/api/v2/info.raml | [
"Apache-2.0"
] |
From https://github.com/stevenrskelton/flag-icon | Markdown | 4 | asahiocean/joplin | Assets/WebsiteAssets/images/flags/README.md | [
"MIT"
] |
--TEST--
SimpleXML [interop]: simplexml_import_dom
--EXTENSIONS--
simplexml
dom
--FILE--
<?php
$dom = new domDocument;
$dom->load(__DIR__."/book.xml");
if(!$dom) {
echo "Error while parsing the document\n";
exit;
}
$s = simplexml_import_dom($dom);
$books = $s->book;
foreach ($books as $book) {
echo "{$book->tit... | PHP | 4 | NathanFreeman/php-src | ext/simplexml/tests/simplexml_import_dom.phpt | [
"PHP-3.01"
] |
-@ val script1: String
-@ val script2: String
-@ val googleAnalyticsScript: String
-@ val pv: lv.ddgatve.math.ProblemVideo
-@ val lang: String
-@ val localizationStrings: lv.ddgatve.math.LocalizationStrings
-@ val indexFile: String
-@ val topMenu: Map[String,String]
-@ val menuKeys: List[String]
-@ val lva... | Scaml | 3 | kapsitis/ddgatve-stat | src/main/resources/youtube-topics.scaml | [
"Apache-2.0"
] |
<?xml version="1.0" encoding="UTF-8"?>
<!-- tag::caches[] -->
<project>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<image>
<buildCache>
<volume>
<name>cache-${project.artifactId}.bui... | XML | 2 | techAi007/spring-boot | spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/maven/packaging-oci-image/caches-pom.xml | [
"Apache-2.0"
] |
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: eutils.eclass
# @MAINTAINER:
# base-system@gentoo.org
# @BLURB: many extra (but common) functions that are used in ebuilds
# @DESCRIPTION:
# The eutils eclass contains a suite of functions that complem... | Gentoo Eclass | 5 | NighttimeDriver50000/Sabayon-Packages | local_overlay/eclass/eutils.eclass | [
"MIT"
] |
{% if doc.this %}
<h3>Method's `this`</h3>
{$ doc.this | marked $}
{% endif %}
| HTML | 2 | alexgberry/angular.js | docs/config/templates/ngdoc/lib/this.template.html | [
"MIT"
] |
temp0[-]
temp1[-]
temp2[-]
temp3[-]
temp4[-]
temp5[-]
randomh[temp0+randomh-]
randoml[temp1+randoml-]
temp3+++++++[temp2+++++++++++@temp3-]
temp2[
temp0[randomh+temp3+temp0-]
temp3[temp0+temp3-]
temp1[randomh+temp3+temp4+temp1-]
temp4[temp1+temp4-]
temp3[
randoml+[temp4+temp5+randoml-]
temp5[randoml+temp5-]+
... | Brainfuck | 0 | iabhimanyu/Algorithms | Random Number/random.bf | [
"MIT"
] |
#ifndef __CVE_2016_0040_LIBRARY_H__
#define __CVE_2016_0040_LIBRARY_H__
#include <windef.h>
BOOLEAN TriggerExploit(VOID);
#endif //__CVE_2016_0040_LIBRARY_H__ | C | 1 | OsmanDere/metasploit-framework | external/source/exploits/CVE-2016-0040/Library/Library.h | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
--TEST--
Coalesce assign (??=): Exception handling
--FILE--
<?php
$foo = "fo";
$foo .= "o";
$bar = "ba";
$bar .= "r";
function id($arg) {
echo "id($arg)\n";
return $arg;
}
function do_throw($msg) {
throw new Exception($msg);
}
$ary = [];
try {
$ary[id($foo)] ??= do_throw("ex1");
} catch (Exception $... | PHP | 4 | NathanFreeman/php-src | Zend/tests/assign_coalesce_002.phpt | [
"PHP-3.01"
] |
package com.taobao.arthas.core.command.view;
import com.taobao.arthas.core.command.model.OgnlModel;
import com.taobao.arthas.core.shell.command.CommandProcess;
import com.taobao.arthas.core.util.StringUtils;
import com.taobao.arthas.core.view.ObjectView;
/**
* Term view of OgnlCommand
* @author gongdewei 2020/4/29
... | Java | 4 | weihubeats/arthas | core/src/main/java/com/taobao/arthas/core/command/view/OgnlView.java | [
"Apache-2.0"
] |
= This is the document title
Author McAuthorson <author@author.org>
== Table of Content
:toc:
== Paragraphs
[.lead]
This text will be styled as a lead paragraph with a larger font.
This is a normal paragraph.
This is a literal paragraph that is offset by one space,
it will be rendered in a fixed-width font.
N... | AsciiDoc | 4 | JesseVermeulen123/bat | tests/syntax-tests/source/AsciiDoc/test.adoc | [
"Apache-2.0",
"MIT"
] |
// run-rustfix
#![crate_type="lib"]
#![allow(unused)]
fn f<T: ?Sized>(t: T) {}
//~^ ERROR the size for values of type `T` cannot be known at compilation time
| Rust | 4 | mbc-git/rust | src/test/ui/unsized/unsized-fn-arg.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
// run-pass
#![feature(fn_traits)]
fn main() {
let mut zero = || 0;
let x = zero.call_mut(());
assert_eq!(x, 0);
}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/unboxed-closures/unboxed-closures-infer-explicit-call-early.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
/*
* Copyright (C) 2015 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | Java | 5 | nowkarol/okhttp | okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.java | [
"Apache-2.0"
] |
Red/System [
Title: "Red/System execeptions test script"
Author: "Nenad Rakocevic"
File: %exceptions-test.reds
Tabs: 4
Rights: "Copyright (C) 2011-2015 Red Foundation. All rights reserved."
License: "BSD-3 - https://github.com/red/red/blob/origin/BSD-3-License.txt"
]
#include %../../../../quick-test/quick... | Red | 4 | 0xflotus/red | system/tests/source/units/exceptions-test.reds | [
"BSL-1.0",
"BSD-3-Clause"
] |
// Copyright 2010-2014 RethinkDB, all rights reserved.
#include "rdb_protocol/geo/ellipsoid.hpp"
#include "rpc/serialize_macros.hpp"
RDB_IMPL_SERIALIZABLE_2(ellipsoid_spec_t, equator_radius_, flattening_);
INSTANTIATE_SERIALIZABLE_FOR_CLUSTER(ellipsoid_spec_t);
| C++ | 3 | zadcha/rethinkdb | src/rdb_protocol/geo/ellipsoid.cc | [
"Apache-2.0"
] |
import fs from "fs-extra"
import path from "path"
import mkdirp from "mkdirp"
import * as Joi from "@hapi/joi"
import isUrl from "is-url"
import fetch from "node-fetch"
import isBinaryPath from "is-binary-path"
import getDiff from "../utils/get-diff"
import resourceSchema from "../resource-schema"
const makePath = (r... | JavaScript | 5 | pipaliyajaydip/gatsby | packages/gatsby-recipes/src/providers/fs/file.js | [
"MIT"
] |
<?php
# Check for newer version
if(Library_Data_Version::check())
{ ?>
<div class="header corner full-size padding" style="float:left; text-align:center; margin-top:10px;">
A newer version of phpMemcachedAdmin may be available, visit <a href="https://blog.elijaa.org/phpmemcachedadmin-download/" ... | HTML+PHP | 3 | axelVO/tourComperator | .devilbox/www/htdocs/vendor/phpmemcachedadmin-1.3.0/View/Footer.phtml | [
"MIT"
] |
'reach 0.1';
// Stage 1 JS feature, pipe LHS into RHS function.
// Docs:
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Pipeline_operator
export const main =
Reach.App(
{},
[Participant('A', {})],
(A) => {
const double = x => x * 2;
5 |> double |> Array.iota... | RenderScript | 3 | chikeabuah/reach-lang | hs/t/n/pipeline_operator.rsh | [
"Apache-2.0"
] |
// @target:es6
let
x | TypeScript | 0 | nilamjadhav/TypeScript | tests/cases/conformance/es6/variableDeclarations/VariableDeclaration12_es6.ts | [
"Apache-2.0"
] |
"""Describe group states."""
from homeassistant.components.group import GroupIntegrationRegistry
from homeassistant.const import STATE_CLOSED, STATE_OPEN
from homeassistant.core import HomeAssistant, callback
@callback
def async_describe_on_off_states(
hass: HomeAssistant, registry: GroupIntegrationRegistry
) -... | Python | 4 | MrDelik/core | homeassistant/components/cover/group.py | [
"Apache-2.0"
] |
FROM node:lts
# Create app directory
WORKDIR /rxjs
COPY . .
WORKDIR /rxjs/docs_app
RUN npm run setup
EXPOSE 4200
CMD ["npm", "start:docker"] | Dockerfile | 3 | KevLeong/rxjs | Dockerfile | [
"Apache-2.0"
] |
<%@ page contentType="text/html; charset=utf-8" %>
<jsp:useBean id="model" type="com.dianping.cat.report.page.alert.Model" scope="request"/>
${model.alertResult}
| Java Server Pages | 2 | woozhijun/cat | cat-home/src/main/webapp/jsp/report/alert/alertResult.jsp | [
"Apache-2.0"
] |
// Ported from musl, which is licensed under the MIT license:
// https://git.musl-libc.org/cgit/musl/tree/COPYRIGHT
//
// https://git.musl-libc.org/cgit/musl/tree/src/math/__cos.c
// https://git.musl-libc.org/cgit/musl/tree/src/math/__cosdf.c
// https://git.musl-libc.org/cgit/musl/tree/src/math/__sin.c
// https://git.m... | Zig | 5 | lukekras/zig | lib/std/math/__trig.zig | [
"MIT"
] |
*** SoilNit parameters for: IOWA_01O1P1S1***
ROW SPACING (m)
1.24
Potential rate constants: Ratios and fractions:
m kh kL km kn kd fe fh r0 rL rm fa nq cs
1 0.00007 0.035 0.07 0.2 ... | Nit | 1 | ARS-CSGCL-DT/MAIZSIM | SolarCorr/IOWA_01O1P1S1/IOWA.nit | [
"Unlicense"
] |
/*
* @LANG: c
*/
#include <stdio.h>
#include <string.h>
struct forder
{
int cs;
};
%%{
machine forder;
variable cs fsm->cs;
second = 'b'
>{printf("enter b1\n");}
>{printf("enter b2\n");}
;
first = 'a'
%{printf("leave a\n");}
@{printf("finish a\n");}
;
main := first . second . '\n';
}%%
%% writ... | Ragel in Ruby Host | 4 | podsvirov/colm-suite | test/ragel.d/forder1.rl | [
"MIT"
] |
= Documentation for Password Expiration Feature
The password expiration feature requires that users change their
password on login if it has expired (default: every 90 days). You can
force password expiration checks for all logged in users by adding
the following code to your route block:
rodauth.require_current_p... | RDoc | 4 | monorkin/rodauth | doc/password_expiration.rdoc | [
"MIT"
] |
/* A Bison parser, made by GNU Bison 2.7.91-dirty. */
/* Bison implementation for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publi... | eC | 3 | mingodad/ecere-sdk | compiler/libec/src/expression.ec | [
"BSD-3-Clause"
] |
{layout '@layout.latte'}
{block title}Source file{/block}
{block content}
<div id="source">
{var $lineCount =substr_count($source, "\n")}
{var $lineRegex = '~<span class="line">(\\s*(\\d+):\\s*)</span>([^\\n]*(?:\\n|$))~'}
<pre class="numbers"><code>{$source|replaceRE:$lineRegex,'<span id=... | Latte | 2 | pujak17/tets | packages/ThemeDefault/src/source.latte | [
"MIT"
] |
# this file has been copied by the R-package antaresXpansion
#
# this file should have been copied in the temporary folder of
# current expansion optimisation, i.e.:
# study_path/user/expansion/temp/
#
# all data files are supposed to be located in the same folder
data;
#number of mc years
set YEAR :=... | AMPL | 4 | pelefebvre/antares-xpansion | data_test/test_case_7.1_structure/user/expansion/temp/master_dat.ampl | [
"Apache-2.0"
] |
"""The test for the sensibo select platform."""
from __future__ import annotations
from datetime import timedelta
from unittest.mock import patch
from pysensibo.model import SensiboData
from pytest import MonkeyPatch
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
fr... | Python | 3 | mib1185/core | tests/components/sensibo/test_sensor.py | [
"Apache-2.0"
] |
# Copyright (c) 2018-2021, Carnegie Mellon University
# See LICENSE for details
Class(ScratchpadGlobals, rec(
getOpts := meth(arg)
local lssize, opts, swp, brules, nrules, br, nrsgmts, vlen, globalUnrolling,size, ttype;
lssize := When (Length(arg) >= 2, arg[2], 2);
nrsgmts := When (Length(arg) >= 3, a... | GAP | 3 | sr7cb/spiral-software | namespaces/spiral/paradigms/scratchpad/opts.gi | [
"BSD-2-Clause-FreeBSD"
] |
<!--
NOTE: This template has escaped `\r\n` line-endings markers that will be converted to real `\r\n` line-ending chars when loaded from the test file-system.
This conversion happens in the monkeyPatchReadFile() function, which changes `fs.readFile()`.
-->
<div>\r\n
Some Message\r\n
Encoded character: 🚀... | HTML | 2 | John-Cassidy/angular | packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/escaped_chars.html | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.