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 |
|---|---|---|---|---|---|
unique template site/ceph/client/libvirt;
include 'site/ceph/client/config';
variable CEPH_LIBVIRT_USER ?= 'oneadmin';
variable CEPH_LIBVIRT_GROUP ?= CEPH_LIBVIRT_USER;
prefix '/software/components/metaconfig/services/{/etc/ceph/ceph.client.libvirt.keyring}';
"contents" = if (is_defined(CEPH_LIBVIRT_SECRET)) {
d... | Pan | 3 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Pan/libvirt.pan | [
"MIT"
] |
- public_visible = local_assigns.fetch(:public_visible, false)
- if rate_limit && (public_visible || user_signed_in?)
%tr
%td= title
%td= instance_configuration_cell_html(rate_limit[:enabled] ? rate_limit[:requests_per_period] : nil)
%td= instance_configuration_cell_html(rate_limit[:enabled] ? rate_limit... | Haml | 4 | Testiduk/gitlabhq | app/views/help/instance_configuration/_rate_limit_row.html.haml | [
"MIT"
] |
# Copyright (C) 2001-2012, Parrot Foundation.
=begin pod
=head1 NAME
examples/mops/mops.p6 - Benchmark Integer Mops
=head1 SYNOPSIS
% perl6 examples/mops/mops.p6
=head1 DESCRIPTION
A Perl 6 implementation of the F<examples/benchmarks/mops_intval.pasm>
benchmark, for speed comparisons.
Calculates a value for... | Perl6 | 4 | winnit-myself/Wifie | examples/mops/mops.p6 | [
"Artistic-2.0"
] |
package com.baeldung.emptystringoptional;
import com.google.common.base.Strings;
import org.junit.Assert;
import org.junit.Test;
import java.util.Optional;
import java.util.function.Predicate;
public class EmptyStringToEmptyOptionalUnitTest {
@Test
public void givenEmptyString_whenFilteringOnOptional_thenEm... | Java | 4 | DBatOWL/tutorials | core-java-modules/core-java-optional/src/test/java/com/baeldung/emptystringoptional/EmptyStringToEmptyOptionalUnitTest.java | [
"MIT"
] |
param ($CertBase64)
$ErrorActionPreference = "Stop"
$CertBytes = [System.Convert]::FromBase64String($CertBase64)
$CertCollection = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2Collection
$CertCollection.Import($CertBytes, $null, [System.Security.Cryptography.X509Certificates.X509KeyStorageF... | PowerShell | 4 | sbj42/vscode | build/azure-pipelines/win32/import-esrp-auth-cert.ps1 | [
"MIT"
] |
"""
42
"""
import System.Collections
import System.Collections.Generic
class IntCollection (ICollection[of int]):
Count as int:
get: return 42
def IEnumerable.GetEnumerator():
raise System.NotImplementedException()
c = IntCollection()
print len(c)
| Boo | 2 | popcatalin81/boo | tests/testcases/regression/BOO-1154-1.boo | [
"BSD-3-Clause"
] |
#main
internal fib_closure() {
a = 0
b = 1
return () => {
c = b
b = a + b
a = c
return a
}
}
var f = fib_closure()
for i = 0 to 9 {
echo "$i ==> ${f()}"
}
| Tea | 4 | jackwiy/tea | examples/fib_closure.tea | [
"Apache-2.0"
] |
<title>Some Title</title>
<link href="/" rel="canonical">
<meta content="some description" name="description">
<meta content="some keywords" name="keywords">
| HTML | 3 | vatro/svelte | test/hydration/samples/head-meta-hydrate-duplicate/_after_head.html | [
"MIT"
] |
/* This is a stylesheet. How exciting!
Content of this file is irrelevant; it is used for testing `getPrecachePages` */
| CSS | 1 | JQuinnie/gatsby | packages/gatsby-plugin-offline/src/__tests__/fixtures/public/style.css | [
"MIT"
] |
include:
- issue-47182.stateA.newer
| SaltStack | 0 | byteskeptical/salt | tests/integration/files/file/base/issue-47182/stateA/init.sls | [
"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 applica... | Python | 4 | EricRemmerswaal/tensorflow | tensorflow/python/framework/immutable_dict.py | [
"Apache-2.0"
] |
{% extends "form_div_layout.html.twig" %}
{%- block checkbox_row -%}
{%- set parent_class = parent_class|default(attr.class|default('')) -%}
{%- if 'switch-input' in parent_class -%}
{{- form_label(form) -}}
{%- set attr = attr|merge({class: (attr.class|default('') ~ ' switch-input')|trim}) -%}... | Twig | 4 | simonberger/symfony | src/Symfony/Bridge/Twig/Resources/views/Form/foundation_6_layout.html.twig | [
"MIT"
] |
import ComponentPage from "./ComponentPage"
export default ComponentPage
| JavaScript | 1 | cwlsn/gatsby | examples/styleguide/src/templates/ComponentPage/index.js | [
"MIT"
] |
// @target: es2015
class Parent {
#foo = 3;
static #bar = 5;
accessChildProps() {
new Child().#foo; // OK (`#foo` was added when `Parent`'s constructor was called on `child`)
Child.#bar; // Error: not found
}
}
class Child extends Parent {
#foo = "foo"; // OK (Child's #... | TypeScript | 4 | monciego/TypeScript | tests/cases/conformance/classes/members/privateNames/privateNamesConstructorChain-1.ts | [
"Apache-2.0"
] |
precision highp float;
varying vec4 fragColor;
attribute vec4 p01_04, p05_08, p09_12, p13_16,
p17_20, p21_24, p25_28, p29_32,
p33_36, p37_40, p41_44, p45_48,
p49_52, p53_56, p57_60, colors;
uniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,
... | GLSL | 4 | njwhite/plotly.js | src/traces/parcoords/shaders/vertex.glsl | [
"MIT"
] |
/*!
* Copyright 2017-2020 by Contributors
* \file hist_util.cc
*/
#include <dmlc/timer.h>
#include <dmlc/omp.h>
#include <rabit/rabit.h>
#include <numeric>
#include <vector>
#include "xgboost/base.h"
#include "../common/common.h"
#include "hist_util.h"
#include "random.h"
#include "column_matrix.h"
#include "quant... | C++ | 4 | GinkoBalboa/xgboost | src/common/hist_util.cc | [
"Apache-2.0"
] |
package org.opencv.test.calib3d;
import org.opencv.test.OpenCVTestCase;
public class StereoBMTest extends OpenCVTestCase {
public void testComputeMatMatMat() {
fail("Not yet implemented");
}
public void testComputeMatMatMatInt() {
fail("Not yet implemented");
}
public void testS... | Java | 1 | thisisgopalmandal/opencv | modules/calib3d/misc/java/test/StereoBMTest.java | [
"BSD-3-Clause"
] |
--TEST--
Trying to clone mysqli object
--EXTENSIONS--
mysqli
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php
require_once("connect.inc");
if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
printf("[001] Cannot connect to the server using host=%s, us... | PHP | 3 | NathanFreeman/php-src | ext/mysqli/tests/mysqli_unclonable.phpt | [
"PHP-3.01"
] |
// rustfmt-indent_style: Block
// Where predicate indent
fn lorem<Ipsum, Dolor, Sit, Amet>() -> T
where
Ipsum: Eq,
Dolor: Eq,
Sit: Eq,
Amet: Eq,
{
// body
}
| Rust | 3 | mbc-git/rust | src/tools/rustfmt/tests/target/configs/indent_style/block_where_pred.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
Conv1
Conv2
Identity
Reshape
Dense
Dense
CustomOp
AvgPool3D
SoftmaxH | PureBasic | 0 | yage99/tensorflow | tensorflow/lite/toco/logging/testdata/toco_log_before.pb | [
"Apache-2.0"
] |
<html>
<body>
<span id="opacity" style="transition-duration: 2s;">opacity</span>
<script>
document.getElementById('opacity').addEventListener('click', function(event) {
event.target.style.opacity = 0
})
</script>
</body>
</html>
| HTML | 4 | bkucera2/cypress | packages/driver/cypress/fixtures/opacity.html | [
"MIT"
] |
// dpl.eh
// see dpl.ec
#ifndef _DPL_EH
#define _DPL_EH 1
// Debug Print Line Format (_dplf)
#ifdef _DPL_ON
#define _dplf(...) __dplf(__FILE__, __LINE__, ##__VA_ARGS__)
#else
#define _dplf(...)
#endif
// Debug Print Channel Line (_dpcl)
#ifdef _DPL_ON
#define _dpcl(...) __dpcl(__FILE__, __LINE__, ##__VA_ARGS__)
#els... | eC | 3 | N-eil/ecere-sdk | extras/include/dpl.eh | [
"BSD-3-Clause"
] |
--TEST--
Bug #39508 (imagefill crashes with small images 3 pixels or less)
--EXTENSIONS--
gd
--FILE--
<?php
$im = imagecreatetruecolor(3,1);
$bgcolor = imagecolorallocatealpha($im,255, 255, 0, 0);
imagefill($im,0,0,$bgcolor);
print_r(imagecolorat($im, 1,0));
?>
--EXPECT--
16776960
| PHP | 4 | NathanFreeman/php-src | ext/gd/tests/bug39508.phpt | [
"PHP-3.01"
] |
/*
[The "BSD licence"]
Copyright (c) 2005-2008 Terence Parr
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list ... | G-code | 5 | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | java/java2py/antlr-3.1.3/tool/src/main/antlr/org/antlr/grammar/v3/ActionTranslator.g | [
"Apache-2.0"
] |
%%{
machine FRAME;
include UUID "./uuid-grammar.rl";
action spec_start {
ps.omitted = 15;
}
action redef_uuid {
if (atm>0) {
atoms[atm] = atoms[atm-1];
}
}
action spec_uuid_start {
n = (int)(ABC[fc]);
hlf, dgt = VALUE, 0;
if (n ... | Ragel in Ruby Host | 4 | gritzko/ron | op-grammar.rl | [
"Apache-2.0"
] |
module.exports = require('./dist/shared/lib/dynamic')
| JavaScript | 0 | blomqma/next.js | packages/next/dynamic.js | [
"MIT"
] |
/** @type {import("../../../../").LoaderDefinition<{}, { shouldReplace: boolean }>} */
module.exports = function (source) {
if (this.shouldReplace) {
this._module.buildInfo._isReplaced = true;
return "module.exports = { foo: { foo: 'bar' }, doThings: (v) => v}";
}
return source;
};
| JavaScript | 3 | fourstash/webpack | test/configCases/rebuild/finishModules/loader.js | [
"MIT"
] |
( Generated from test_oper_ternary_in.muv by the MUV compiler. )
( https://github.com/revarbat/pymuv )
: _main[ _arg -- ret ]
1 if
"T"
else
"F"
then
;
: __start
"me" match me ! me @ location loc ! trig trigger !
_main
;
| MUF | 3 | revarbat/pymuv | tests/test_oper_ternary_cmp.muf | [
"MIT"
] |
#include "mop.h"
MODULE = Class::MOP::Attribute PACKAGE = Class::MOP::Attribute
PROTOTYPES: DISABLE
BOOT:
INSTALL_SIMPLE_READER(Attribute, associated_class);
INSTALL_SIMPLE_READER(Attribute, associated_methods);
| XS | 3 | skington/Moose | xs/Attribute.xs | [
"Artistic-1.0"
] |
0 reg32_t "dword"
1 code_t "proc*"
2 num32_t "int"
3 uint32_t "size_t"
4 ptr(struct(0:num32_t,4:ptr(num8_t),8:ptr(num8_t),12:ptr(num8_t),16:ptr(num8_t),20:ptr(num8_t),24:ptr(num8_t),28:ptr(num8_t),32:ptr(num8_t),36:ptr(num8_t),40:ptr(num8_t),44:ptr(num8_t),48:ptr(struct(0:ptr(TOP),4:ptr(struct(0:num32_t,4:ptr(reg8_t),8... | BlitzBasic | 1 | matt-noonan/retypd-data | data/sha384sum.decls | [
"MIT"
] |
<!---
<!--- Used for the default query --->
<cfset variables.defaultQueryList = "title,description,link,date,enclosure,categories">
--->
| ColdFusion | 1 | fourplusone/SubEthaEdit | Documentation/ModeDevelopment/Reference Files/CFML/RecursiveComments.cfm | [
"MIT"
] |
@keyframes svelte-xyz-why{0%{color:red}100%{color:blue}}.animated.svelte-xyz{animation:svelte-xyz-why 2s}.also-animated.svelte-xyz{animation:not-defined-here 2s} | CSS | 2 | Theo-Steiner/svelte | test/css/samples/keyframes/expected.css | [
"MIT"
] |
"""Support for Fibaro locks."""
from __future__ import annotations
from typing import Any
from homeassistant.components.lock import ENTITY_ID_FORMAT, LockEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import Platform
from homeassistant.core import HomeAssistant
from homeassistant... | Python | 4 | mcx/core | homeassistant/components/fibaro/lock.py | [
"Apache-2.0"
] |
--TEST--
Testing null byte injection in imagegd2
--EXTENSIONS--
gd
--FILE--
<?php
$image = imagecreate(1,1);// 1px image
try {
imagegd($image, "./foo\0bar");
} catch (ValueError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
imagegd(): Argument #2 ($file) must not contain any null bytes
| PHP | 4 | NathanFreeman/php-src | ext/gd/tests/imagegd2_nullbyte_injection.phpt | [
"PHP-3.01"
] |
' Medium Frequency R2R Sine Wave Generator 1.25MHz - v0.1 using PASM
' (c) Tubular Controls June 2011. MIT license, see end of DAT section
'
' DESCRIPTION:
' This object generates a Medium Frequency Sine Wave using a "DDS precalculation" technique.
' The cosine wave has N=16 steps, each step takes 4CLK for a ... | Propeller Spin | 4 | deets/propeller | libraries/community/p1/All/Medium Frequency R2R Sine Wave Generator 1.25 Mhz/Medium_Frequency_R2R_Sine_Wave_Generator_1.25_Mhz_v01.spin | [
"MIT"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_copyRadioSettingMenu
Author: NKey
Returns a sub menu for radio settings copying.
Arguments:
None
Return Value:
Flexi-menu <ARRAY>
Example:
call TFAR_fnc_copyRadioSettingMenu;
Public: No
*/
private _menu = [];
private _menuDef = ["main... | SQF | 4 | MrDj200/task-force-arma-3-radio | addons/core/functions/flexiUI/fnc_copyRadioSettingMenu.sqf | [
"RSA-MD"
] |
import { withRouter } from "next/router";
class AddonsPage extends React.Component {
render() {
const {
router
} = this.props
return (
<Page>
<Header
user={user}
pathname={router.pathname}
onLogout={() => onUser(null)}
onLogoRightClick={() => Rou... | JavaScript | 4 | blomqma/next.js | packages/next-codemod/transforms/__testfixtures__/url-to-withrouter/destructuring-this-props.output.js | [
"MIT"
] |
struct S;
impl S {
fn get<K, V: Default>(_: K) -> Option<V> {
Default::default()
}
}
enum Val {
Foo,
Bar,
}
impl Default for Val {
fn default() -> Self {
Val::Foo
}
}
fn main() {
match S::get(1) {
Some(Val::Foo) => {}
_ => {}
}
match S::get(2) {
... | Rust | 3 | mbc-git/rust | src/test/ui/parser/match-arm-without-braces.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
Red/System [
Title: "Red/System #define test script"
Author: "Nenad Rakocevic & Peter W A Wood"
File: %define-test.reds
Version: "0.1.0"
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 %... | Red | 3 | 0xflotus/red | system/tests/source/compiler/define-test.reds | [
"BSL-1.0",
"BSD-3-Clause"
] |
functor
import
FD
Search
export
Return
define
Data = [ belgium # [france netherlands germany luxemburg]
germany # [austria france luxemburg netherlands]
switzerland # [italy france germany austria]
austria # [italy switzerland germany]
france ... | Oz | 4 | Ahzed11/mozart2 | platform-test/fd/mapcoloring.oz | [
"BSD-2-Clause"
] |
[{:type :warning,
:file "/win32nativeext/src/main.cpp",
:line 30,
:column 9,
:message
"unused variable 'a' [-Wunused-variable]\n int a;\n ^"}
{:type :warning,
:file "/win32nativeext/src/main.cpp",
:line 46,
:column 9,
:message
"unused variable 'b' [-Wunused-variable]\n int b = 100;\n ... | edn | 2 | cmarincia/defold | editor/test/resources/native_extension_error_parsing/missingSymbols_parsed_2.edn | [
"ECL-2.0",
"Apache-2.0"
] |
#include "textures.inc"
camera {
location <2.3, 5, -4>
look_at <2, 2, 1>
}
// Light source on the left side of the scene
light_source {
<-6, 10, 2>
color rgb <1, 1, 1>
}
// Tiled floor
#declare white_floor =
plane {
y, 0
pigment {
rgb <1.0, 1.0, 1.0>
}
finish {
specula... | POV-Ray SDL | 4 | spcask/pov-ray-tracing | src/scene21.pov | [
"MIT"
] |
LiveScript = require './index'
# `.run`s LiveScript code and calls back, passing error if any.
LiveScript.stab = (code, callback, filename) !->
try
LiveScript.run code, {filename, map: 'embedded'}
catch
callback? e
# `.stab`s a remote script via `XMLHttpRequest`.
LiveScript.load = (url, callback) ... | LiveScript | 4 | apaleslimghost/LiveScript | src/browser.ls | [
"MIT"
] |
const fs = require('fs');
const process = require('process');
const assert = require('assert');
const buffer = fs.readFileSync(process.argv[2]);
let m = new WebAssembly.Module(buffer);
let imports = WebAssembly.Module.imports(m);
console.log('imports', imports);
assert.strictEqual(imports.length, 2);
assert.strictEqu... | JavaScript | 3 | Eric-Arellano/rust | src/test/run-make/wasm-import-module/foo.js | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
--TEST--
Bug #81249: Intermittent property assignment failure with JIT enabled
--EXTENSIONS--
opcache
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.jit_buffer_size=1M
opcache.jit=tracing
--SKIPIF--
<?php if (PHP_INT_SIZE != 8) die("skip: 64-bit only"); ?>
--FILE--
<?php
declare(strict_types=1);
final class Eu... | PHP | 4 | NathanFreeman/php-src | ext/opcache/tests/jit/bug81249.phpt | [
"PHP-3.01"
] |
package jadx.tests.integration.invoke;
import org.junit.jupiter.api.Test;
import jadx.tests.api.IntegrationTest;
import static jadx.tests.api.utils.assertj.JadxAssertions.assertThat;
public class TestVarArg2 extends IntegrationTest {
@SuppressWarnings("ConstantConditions")
public static class TestCls {
protect... | Java | 4 | Dev-kishan1999/jadx | jadx-core/src/test/java/jadx/tests/integration/invoke/TestVarArg2.java | [
"Apache-2.0"
] |
# configuration file for util/mkerr.pl
#
# use like this:
#
# perl ../../../util/mkerr.pl -conf hw_zencod.ec \
# -nostatic -staticloader -write *.c
L ZENCOD hw_zencod_err.h hw_zencod_err.c
| eC | 2 | jiangzhu1212/oooii | Ouroboros/External/OpenSSL/openssl-1.0.0e/demos/engines/zencod/hw_zencod.ec | [
"MIT"
] |
fn
badly_formatted
(
) {} | Rust | 0 | mbc-git/rust | src/tools/rustfmt/tests/mod-resolver/issue-4874/foo/qux.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
cylinder(h = 10, r1 = 20, r2 = 10, center = true); | OpenSCAD | 1 | heristhesiya/OpenJSCAD.org | packages/io/scad-deserializer/tests/primitive_solids/cylinderEx2.scad | [
"MIT"
] |
Note 0
Copyright (C) 2018 Jonathan Hough. All rights reserved.
)
NB. Genetic Algorithm Solver implementation. This implementation
NB. requires two object. The 'GenObj' which creates and holds
NB. chromosome population and cost information, and the 'GASolver'
NB. object which runs the search algorithm whose goal is to... | J | 4 | jonghough/jlearn | genetic/gasolver.ijs | [
"MIT"
] |
<?xml version="1.0"?>
<rdf:RDF
xmlns = "http://neo4j.com/voc/movies#"
xmlns:mov = "http://neo4j.com/voc/movies#"
xml:base = "http://neo4j.com/voc/movies#"
xmlns:owl = "http://www.w3.org/2002/07/owl#"
xmlns:rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdf... | Web Ontology Language | 5 | jonmcalder/neosemantics | src/test/resources/moviesontologyMultilabel.owl | [
"Apache-2.0"
] |
//
// DoraemonMCGustureSerializer.h
// DoraemonKit-DoraemonKit
//
// Created by litianhao on 2021/7/13.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface DoraemonMCGustureSerializer : NSObject
+ (NSDictionary *)dictFromGusture:(UIGestureRecognizer *)gusture;
+ (void)syncInfoToGusture:(UIGestureRecog... | C | 4 | didichuxing/DoraemonKit | iOS/DoraemonKit/Src/MultiControl/Function/EventSync/Serialize/EventInfo/DoraemonMCGustureSerializer.h | [
"Apache-2.0"
] |
package org.openapitools.model
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.math.BigDecimal
import io.micronaut.test.extensions.spock.annotation.MicronautTest
import spock.lang.Specification
import jakarta.inject.Inject
/**
* Model tests for OuterComposite
*/
@Mi... | Groovy | 4 | JigarJoshi/openapi-generator | samples/client/petstore/java-micronaut-client/src/test/groovy/org/openapitools/model/OuterCompositeSpec.groovy | [
"Apache-2.0"
] |
\section{Motivation}
\label{sec:motivation}
Before describing the \emph{implementation} of our library, we will
provide a brief introduction to Agda's reflection mechanism and
illustrate how the proof automation described in this paper may be
used.
\subsection*{Reflection in Agda}
Agda has a \emph{reflection} mechan... | Literate Agda | 4 | wenkokke/AutoInAgda | doc/motivation.lagda | [
"MIT"
] |
fn main() {
inline!(); //~ ERROR cannot find macro `inline` in this scope
}
| Rust | 1 | Eric-Arellano/rust | src/test/ui/macros/macro-path-prelude-fail-3.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
# Ubuntu 16.04 with nvidia-docker2 beta opengl support
@{suffix = '16.04' if image_distro_version == '16.04' else '18.04'}@
FROM nvidia/opengl:1.0-glvnd-devel-ubuntu@(suffix) as glvnd
| EmberScript | 2 | traversaro/rocker | src/rocker/templates/nvidia_preamble.Dockerfile.em | [
"Apache-2.0"
] |
/*
Copyright (c) Microsoft Corporation.
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 to in... | CSS | 3 | NareshMurthy/playwright | src/web/traceViewer/ui/contextSelector.css | [
"Apache-2.0"
] |
var $arr1 <[10] f32>
func $ArrayAdd () f32 {
var %ff i32
var %sum f32
dassign %sum ( constval f32 0.0f )
foreachelem %ff $arr1 {
dassign %sum ( add f32 ( dread f32 %sum, dread f32 %ff ) )
}
return ( dread f32 %sum )
}
# EXEC: %irbuild Main.mpl
# EXEC: %irbuild Main.irb.mpl
# EXEC: %cmp Main.irb.mpl Main.... | Maple | 3 | harmonyos-mirror/OpenArkCompiler-test | test/testsuite/irbuild_test/I0034-mapleall-irbuild-edge-foreachelem/Main.mpl | [
"MulanPSL-1.0"
] |
/**************************************************************************************************
* *
* This file is part of BLASFEO. *
* ... | C | 4 | shoes22/openpilot | third_party/acados/include/blasfeo/include/blasfeo_d_aux_old.h | [
"MIT"
] |
#tag IOSView
Begin iosView CreateQRView
BackButtonTitle = "Back"
Compatibility = ""
LargeTitleMode = 2
Left = 0
NavigationBarVisible= True
TabIcon = ""
TabTitle = ""
Title = "Create a QRCode"
Top = 0
Begin iOSTextField Te... | Xojo | 4 | kingj5/iOSKit | ExampleViews/CreateQRView.xojo_code | [
"MIT"
] |
<html>
<header>
<title>@title</title>
<meta charset="utf-8"/>
@css 'assets/site.css'
</header>
<body>
<h1>@title</h1>
<button>Close the connection</button>
<ul></ul>
<script>
"use strict";
var button = document.querySelector('button');
... | HTML | 3 | gamemaker1/v | examples/vweb/server_sent_events/index.html | [
"MIT"
] |
"~~\{say .perl~\$_}"~~{say .perl~$_}
| Perl6 | 0 | MakeNowJust/quine | quine.p6 | [
"Beerware"
] |
diff --git a/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js b/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js
index 1776c09..e08aad1 100644
--- a/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js
+++ b/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js
@@ -52,26 +52,27 @@... | Diff | 4 | mm73628486283/cypress | patches/@popperjs+core+2.9.2.dev.patch | [
"MIT"
] |
// Copyright 2014 the V8 project 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 "src/base/platform/time.h"
#if V8_OS_MACOSX
#include <mach/mach_time.h>
#endif
#if V8_OS_POSIX
#include <sys/time.h>
#endif
#if V8_OS_WIN
#in... | C++ | 5 | EXHades/v8 | test/unittests/base/platform/time-unittest.cc | [
"BSD-3-Clause"
] |
#
# program needs:
# DONE miniseed2days BH and LH data
# DONE miniseed2days VH, UH, and SOH data into year files
# DONE miniseed2db into one db
# DONE attach dbmaster, dbops, and idserver
# DONE verify if start and endtimes match deployment table
#
# DONE idservers dbpath locking
# DONE net-sta ... | XProc | 4 | jreyes1108/antelope_contrib | bin/usarray/sta_final_prep/sta_final_prep.xpl | [
"BSD-2-Clause",
"MIT"
] |
frequency,raw
20.00,-5.30
20.20,-5.29
20.40,-5.29
20.61,-5.29
20.81,-5.24
21.02,-5.24
21.23,-5.24
21.44,-5.20
21.66,-5.20
21.87,-5.17
22.09,-5.16
22.31,-5.16
22.54,-5.16
22.76,-5.12
22.99,-5.11
23.22,-5.11
23.45,-5.08
23.69,-5.06
23.92,-5.03
24.16,-4.98
24.40,-4.95
24.65,-4.92
24.89,-4.90
25.14,-4.87
25.39,-4.85
25.65,... | CSV | 0 | vinzmc/AutoEq | measurements/oratory1990/data/onear/Audeze LCD-4/Audeze LCD-4.csv | [
"MIT"
] |
# Copyright 2019 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 to in writing... | Cython | 4 | warlock135/grpc | src/python/grpcio/grpc/_cython/_cygrpc/aio/callback_common.pxd.pxi | [
"Apache-2.0"
] |
# bug #2039
type
RegionTy = object
ThingyPtr = RegionTy ptr Thingy
Thingy = object
next: ThingyPtr
name: string
proc iname(t: ThingyPtr) =
var x = t
while not x.isNil:
echo x.name
x = x.next
proc go() =
var athing : ThingyPtr
iname(athing)
go()
| Nimrod | 4 | alehander92/Nim | tests/typerel/tregionptrs2.nim | [
"MIT"
] |
#pragma once
#include <cstdint>
#ifdef _MSC_VER
#include <intrin.h>
#endif
#include <c10/macros/Export.h>
namespace caffe2 {
class CpuId;
TORCH_API const CpuId& GetCpuId();
///////////////////////////////////////////////////////////////////////////////
// Implementation of CpuId that is borrowed from folly.
////... | C | 4 | Hacky-DH/pytorch | caffe2/utils/cpuid.h | [
"Intel"
] |
#Signature file v4.1
#Version 1.42
CLSS public abstract interface java.io.Serializable
CLSS public abstract interface java.lang.Comparable<%0 extends java.lang.Object>
meth public abstract int compareTo({java.lang.Comparable%0})
CLSS public abstract java.lang.Enum<%0 extends java.lang.Enum<{java.lang.Enum%0}>>
cons ... | Standard ML | 1 | timfel/netbeans | platform/api.annotations.common/nbproject/org-netbeans-api-annotations-common.sig | [
"Apache-2.0"
] |
#############################################################################
## v # The Coq Proof Assistant ##
## <O___,, # INRIA - CNRS - LIX - LRI - PPS ##
## \VV/ # ##
## //... | Coq | 3 | yoshihiro503/ocaml_util | Makefile.coq | [
"MIT"
] |
Extension { #name : #AsyncBehaviorAllLocalMethodsStream }
{ #category : #'*GToolkit-Extensions' }
AsyncBehaviorAllLocalMethodsStream >> gtCompositionChildren [
^ { instanceStream . classStream }
]
| Smalltalk | 2 | feenkcom/gtoolk | src/GToolkit-Extensions/AsyncBehaviorAllLocalMethodsStream.extension.st | [
"MIT"
] |
class A{
public a = 0;
public static s = 1;
function init(a){
this.a = a;
print 'A init', a;
}
function f(a, b=1){
return a + b;
}
}
print A.s; // 1
a = new A(1); // A init 1
print a.f(1, 2);
| COBOL | 2 | cau991/ssdb | deps/cpy/samples/class.cpy | [
"BSD-3-Clause"
] |
import QtQuick 2.0
import QtQuick.Dialogs 1.1
import "utils.js" as Utils
MessageDialog {
id: removeContactDialog
title: qsTr("Remove %1").arg(Utils.htmlEscaped(contact.nickname))
//: %1 nickname
text: qsTr("Do you want to permanently remove %1?").arg(Utils.htmlEscaped(contact.nickname))
informativ... | QML | 4 | garrettr/ricochet | src/ui/qml/MessageDialogWrapper.qml | [
"OpenSSL"
] |
record thingy {
}
class whatchamacallit {
/* This field contains a thingy */
var aThingy: thingy;
}
class recursion {
/* This field contains a whatchamacallit */
var aWhatchamacallit: whatchamacallit;
/* This field is recursive */
var recursive: recursion;
} | Chapel | 2 | jhh67/chapel | test/chpldoc/types/fields/recordsAndClasses.doc.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
parser grammar FlatVyos_bgp;
import FlatVyos_common;
options {
tokenVocab = FlatVyosLexer;
}
bnt_nexthop_self
:
NEXTHOP_SELF
;
bnt_null
:
(
SOFT_RECONFIGURATION
| TIMERS
) null_filler
;
bnt_remote_as
:
REMOTE_AS asnum = DEC
;
bnt_route_map_export
:
ROUTE_MAP EXPORT name = variable
;
... | ANTLR | 4 | zabrewer/batfish | projects/batfish/src/main/antlr4/org/batfish/grammar/flatvyos/FlatVyos_bgp.g4 | [
"Apache-2.0"
] |
<div class="sidebar-section">
<li class="sidebar-title">
<span>{{ ::$ctrl.title }}</span>
</li>
<div class="sidebar-section-items" ng-transclude> </div>
</div>
| HTML | 2 | GizMan/portainer | app/portainer/components/sidebar/sidebar-section/sidebar-section.html | [
"Zlib"
] |
create table t0 (x real primary key);
| SQL | 2 | imtbkcat/tidb-lightning | tests/routes/data/routes_a0.t0-schema.sql | [
"Apache-2.0"
] |
"""Tests for the SolarEdge component."""
| Python | 0 | domwillcode/home-assistant | tests/components/solaredge/__init__.py | [
"Apache-2.0"
] |
---
keylayout: valuelayout
---
<div id="layout">
{{ content }}
</div>
| Liquid | 2 | binyamin/eleventy | test/stubs/_includes/layoutLiquid.liquid | [
"MIT"
] |
package foo
class A {
companion object {
val bar = 1
fun foo() {}
}
}
| Groff | 3 | qussarah/declare | jps-plugin/testData/incremental/pureKotlin/removeAndRestoreCompanionWithImplicitUsages/A.kt.new.2 | [
"Apache-2.0"
] |
@app
remix-architect-app
@http
/*
method any
src server
@static
# @aws
# profile default
# region us-west-1
| Arc | 1 | andmayorov/remix | packages/create-remix/templates/arc/app.arc | [
"MIT"
] |
// Copyright 2016 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 "textflag.h"
// func archFloor(x float64) float64
TEXT ·archFloor(SB),NOSPLIT,$0
FMOVD x+0(FP), F0
FRINTMD F0, F0
FMOVD F0, ret+8(FP)
RET
// func... | GAS | 4 | SSSDNSY/go | src/math/floor_arm64.s | [
"BSD-3-Clause"
] |
#Signature file v4.1
#Version 1.30.0
CLSS public abstract interface !annotation java.lang.Deprecated
anno 0 java.lang.annotation.Documented()
anno 0 java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy value=RUNTIME)
anno 0 java.lang.annotation.Target(java.lang.annotation.ElementType[] value=[CONSTRU... | Standard ML | 3 | timfel/netbeans | java/java.hints.declarative.test/nbproject/org-netbeans-modules-java-hints-declarative-test.sig | [
"Apache-2.0"
] |
[Exposed=Window,
HTMLConstructor]
interface HTMLHeadElement : HTMLElement {};
| WebIDL | 3 | corsarstl/Learn-Vue-2 | vue-testing/node_modules/jsdom/lib/jsdom/living/nodes/HTMLHeadElement.webidl | [
"MIT"
] |
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");
body {
font-family: "Inter", sans-serif;
}
main {
max-width: 95%;
width: 600px;
margin-left: auto;
margin-right: auto;
}
h3 {
display: inline-block;
}
input,
textarea,
h3 {
width: 31%;
padding: 5px;
margin-bot... | CSS | 4 | waltercruz/gatsby | examples/functions-google-sheets/src/pages/index.css | [
"MIT"
] |
local helpers = require('test.functional.helpers')(after_each)
local NIL = helpers.NIL
local clear = helpers.clear
local command = helpers.command
local curbufmeths = helpers.curbufmeths
local eq = helpers.eq
local meths = helpers.meths
local source = helpers.source
local pcall_err = helpers.pcall_err
describe('nvim_... | Lua | 5 | uga-rosa/neovim | test/functional/api/command_spec.lua | [
"Vim"
] |
// run-pass
pub fn main() {
let mut x: isize = 10;
let mut y: isize = 0;
while y < x { println!("{}", y); println!("hello"); y = y + 1; }
while x > 0 {
println!("goodbye");
x = x - 1;
println!("{}", x);
}
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/for-loop-while/while.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
using System;
using System.IO;
using Xunit;
namespace Microsoft.Maui.Resizetizer.Tests
{
public class SkiaSharpAppIconToolsTests
{
public class Resize : IDisposable
{
readonly string DestinationFilename;
readonly TestLogger Logger;
public Resize()
{
DestinationFilename = Path.GetTempFileName() +... | C# | 3 | andreas-nesheim/maui | src/SingleProject/Resizetizer/test/UnitTests/SkiaSharpAppIconToolsTests.cs | [
"MIT"
] |
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M10.52,10.73L7.... | XML | 3 | semoro/androidx | compose/material/material/icons/generator/raw-icons/rounded/subscript.xml | [
"Apache-2.0"
] |
/* @generated */
digraph cfg {
"dealloc#Bla#instance.febc9b8c0e8bc29905272eecbf85b31a_1" [label="1: Start Bla.dealloc\nFormals: self:Bla*\nLocals: \n " color=yellow style=filled]
"dealloc#Bla#instance.febc9b8c0e8bc29905272eecbf85b31a_1" -> "dealloc#Bla#instance.febc9b8c0e8bc29905272eecbf85b31a_3" ;
"dealloc#Bla... | Graphviz (DOT) | 4 | JacobBarthelmeh/infer | infer/tests/codetoanalyze/objc/frontend/protocol/protocol.m.dot | [
"MIT"
] |
<?Lassoscript
// Last modified 9/15/09 by ECL, Landmann InterActive
/*
Tagdocs;
{Tagname= OutputURL }
{Description= Outputs the already-built $vURL }
{Author= Eric Landmann }
{AuthorEmail= support@iterate.ws }
{ModifiedBy= }
{ModifiedByEmail= }
{Date= 9/15/09 }
{Usage= OutputURL }
{ExpectedResults... | Lasso | 4 | subethaedit/SubEthaEd | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/LassoStartup/OutputURL.lasso | [
"MIT"
] |
-- Script to merge all occurrences for one resource.
-- These will be used later for indexing
--
-- @param dir the directory where we find the part* files outputted by hadoop
-- @author pablomendes
SET job.name OccurrencesByTypeSortedByURI;
------ LOADING AND CLEANING ------
occurrences = LOAD '$dir/part*' USING PigS... | PigLatin | 4 | david-oggier/dbpedia-spotlight | index/src/main/pig/OccurrencesByType.pig | [
"Apache-2.0"
] |
try
display dialog "Are you sure you want to remove Karabiner?" buttons {"Cancel", "OK"}
if the button returned of the result is "OK" then
try
do shell script "test -f '/Library/Application Support/org.pqrs/Karabiner/uninstall.sh'"
try
do shell script "sh '/Librar... | AppleScript | 2 | liasica/Karabiner_CN | files/extra/uninstaller.applescript | [
"Unlicense"
] |
config = require("lapis.config").get!
if config.postgres
require "lapis.db.postgres"
elseif config.mysql
require "lapis.db.mysql"
else
error "You have to configure either postgres or mysql"
| MoonScript | 4 | tommy-mor/lapis | lapis/db.moon | [
"MIT",
"Unlicense"
] |
FORMAT: 1A
# My API
| API Blueprint | 0 | tomoyamachi/dredd | packages/dredd/test/fixtures/error-blueprint.apib | [
"MIT"
] |
\require "i@~>0.3.1" | LilyPond | 1 | HolgerPeters/lyp | spec/package_setups/big/g@0.3.2/package.ly | [
"MIT"
] |
package Math;
import Complex::*;
import FixedPoint::*;
import NumberTypes::*;
import Divide::*;
import SquareRoot::*;
import FloatingPoint::*;
endpackage
| Bluespec | 0 | sarman1998/vscode-verilog-hdl-support | syntaxes/bsc-lib/Math.bsv | [
"MIT"
] |
<?Lassoscript
// Last modified 7/23/09 by ECL, Landmann InterActive
// FUNCTIONALITY
// Used to modify categories nestedset data in the $svHeirarchyTable table
// NOTES
// Parameters passed by this form:
// "DataType" Value of "Node" means that we are modifying the node table
// "NodeID" Value of the existing node... | Lasso | 4 | subethaedit/SubEthaEd | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/admin/manage_heirarchy.lasso | [
"MIT"
] |
//tab_size=4
// Copyright 2021 nickmqb
// SPDX-License-Identifier: Apache-2.0
Compilation struct #RefType {
unit CodeUnit
symbols Map<string, SymbolInfo>
constUsages Map<int, ConstInfo>
}
SymbolInfo struct #RefType {
type SymbolType
node Node
opcode int
}
SymbolType enum {
reserved
opcode
decl
label
}
Err... | mupad | 5 | nickmqb/fpga_craft | kasm/parser.mu | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.