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 |
|---|---|---|---|---|---|
- dashboard: ec2_security_group_modifications
title: EC2 Security Group Modifications
layout: newspaper
elements:
- name: Security Group Modifications
title: Security Group Modifications
model: aws_athena_cloudtrail
explore: cloudtrail_logs
type: table
fields:
- cloudtrail_logs.event_nam... | LookML | 4 | voltagebots/aws_cloudtrail_block | ec2_security_group_modifications.dashboard.lookml | [
"MIT"
] |
---------------------------------------------------------------------------
AUTHOR
Engin Tola
---------------------------------------------------------------------------
CONTACT
web : http://cvlab.epfl.ch/~tola
email : engin.tola@epfl.ch
--------------------------------------------------------------------------... | Matlab | 5 | nitinagarwal/Transcribing_Text_Museum_Labels | mdaisy-v1.0/usage.matlab | [
"MIT"
] |
/********************************************************************************
* Copyright (c) {date} Red Hat Inc. and/or its affiliates and others
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* http://www.apache.o... | Ceylon | 3 | Kopilov/ceylon-ide-intellij | source/org/eclipse/ceylon/ide/intellij/correct/RefineFormalMembersIntention.ceylon | [
"Apache-2.0"
] |
FORMAT: 1A
# zkSync API v0.2
{{accountsEndpoints}}
{{batchesEndpoints}}
{{blocksEndpoints}}
{{configEndpoints}}
{{feeEndpoints}}
{{statusEndpoints}}
{{tokensEndpoints}}
{{transactionsEndpoints}}
# Data Structures
{{accountsTypes}}
{{batchesTypes}}
{{blocksTypes}}
{{configTypes}}
{{feeTypes}}
{{statusTypes}}
{{pagin... | API Blueprint | 3 | smishraIOV/ri-aggregation | infrastructure/api-docs/blueprint/template.apib | [
"Apache-2.0",
"MIT"
] |
insert into tb values (39, 'c31de5f7', 6132963007327558617);
insert into tb values (31, '41ca5898', 3595435854045943813);
insert into tb values (33, 'd4569ae7', 8241634006100964410);
insert into tb values (29, '380afa8b', 2866710402608067133);
insert into tb values (21, '6fc2c445', 4212433780813941282);
insert into tb ... | SQL | 2 | cuishuang/tidb | br/tests/lightning_duplicate_detection/data/dup_detect.tb.1.sql | [
"Apache-2.0"
] |
div.svelte-xyz+article.svelte-xyz.svelte-xyz{color:green}span.svelte-xyz+b.svelte-xyz.svelte-xyz{color:green}div.svelte-xyz span.svelte-xyz+b.svelte-xyz{color:green}.a.svelte-xyz+article.svelte-xyz.svelte-xyz{color:green}div.svelte-xyz+.b.svelte-xyz.svelte-xyz{color:green} | CSS | 1 | Theo-Steiner/svelte | test/css/samples/siblings-combinator/expected.css | [
"MIT"
] |
create table quniya4(name varchar(255) null,value varchar(255) null,id int not null,constraint quniya4_pk primary key (id));
alter table quniya4 modify id int not null first;
alter table quniya4 modify id int auto_increment; | SQL | 3 | yuanweikang2020/canal | parse/src/test/resources/ddl/ddl_test3.sql | [
"Apache-2.0"
] |
<style type="text/css">
a:link { color: #46641e; text-decoration: none}
.ident { color: #46641e }
</style>
<link rel="icon" href="https://developers.google.com/optimization/images/orLogo.png"> | Mako | 2 | AlohaChina/or-tools | tools/doc/templates/head.mako | [
"Apache-2.0"
] |
package com.baeldung.tx.model;
import javax.persistence.*;
@Entity
public class Payment {
@Id
@GeneratedValue
private Long id;
private Long amount;
@Column(unique = true)
private String referenceNumber;
@Enumerated(EnumType.STRING)
private State state;
public Long getId() {
... | Java | 4 | DBatOWL/tutorials | persistence-modules/spring-data-jpa-annotations/src/main/java/com/baeldung/tx/model/Payment.java | [
"MIT"
] |
*** Test Cases ***
Sleep
${time1} = Get Time
Sleep 1.111
${time2} = Get Time
Sleep 0 hours 0 mins 1 S E C O N D 234 milliseconds
${time3} = Get Time
Sleep ${1.1119}
${time4} = Get Time
Should Be True '${time4}' > '${time3}' > '${time2}' > '${time1}'
Sleep With Ne... | RobotFramework | 4 | phil-davis/robotframework | atest/testdata/standard_libraries/builtin/sleep.robot | [
"ECL-2.0",
"Apache-2.0"
] |
reset
set title "Benchmark of concurrency 100, 1000, 5000 (Allocations)"
set boxwidth 0.9
set datafile separator ","
set style data histogram
set style histogram clustered gap 2
set style fill solid 0.7 border
set border lw 0.8
set ylabel "Allocations (MB)"
set xtics nomirror rotate by -45
set ytics nomirror
set bord... | Gnuplot | 3 | abahmed/go-web-framework-benchmark | testresults/concurrency_alloc.gnu | [
"Apache-2.0"
] |
// advancedfx.org logo
//
// To be rendered with POV-Ray ( http://povray.org/ ).
#declare T_Logo_bg = texture {
pigment { color rgb <1,0.25,0.125> }
finish {
diffuse 0.5
specular 0.4
phong 0.1
phong_size 1.0
}
}
#declare T_Logo_tool = texture {
pigment { color rgb <1,1,1> }
... | POV-Ray SDL | 4 | markusforss/advancedfx | misc/icon/logo.pov | [
"MIT"
] |
# Macromedia Flash Video
signature file-flv {
file-mime "video/x-flv", 60
file-magic /^FLV/
}
# FLI animation
signature file-fli {
file-mime "video/x-fli", 50
file-magic /^.{4}\x11\xaf/
}
# FLC animation
signature file-flc {
file-mime "video/x-flc", 50
file-magic /^.{4}\x12\xaf/
}
# Motion JPEG 2000
signature... | Standard ML | 3 | yaplej/bro | scripts/base/frameworks/files/magic/video.sig | [
"Apache-2.0"
] |
// stddef.h
const void* NULL = 0;
typedef unsigned long size_t;
typedef long ptrdiff_t;
| Harbour | 3 | ueki5/cbc | import/stddef.hb | [
"Unlicense"
] |
// run-pass
#![deny(dead_code)]
const GLOBAL_BAR: u32 = 1;
struct Foo;
impl Foo {
const BAR: u32 = GLOBAL_BAR;
}
pub fn main() {
let _: u32 = Foo::BAR;
}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/associated-consts/associated-const-marks-live-code.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#ifndef TEST_INTEROP_CXX_CLASS_INLINE_FUNCTION_THROUGH_MEMBER_INPUTS_METHOD_CALLS_FUNCTION_H
#define TEST_INTEROP_CXX_CLASS_INLINE_FUNCTION_THROUGH_MEMBER_INPUTS_METHOD_CALLS_FUNCTION_H
inline int increment(int t) { return t + 1; }
struct Incrementor {
int callIncrement(int value) { return increment(value); }
};
i... | C | 4 | gandhi56/swift | test/Interop/Cxx/class/inline-function-codegen/Inputs/method-calls-function.h | [
"Apache-2.0"
] |
// Daniel Shiffman
// Snakes and Ladders
// http://codingtra.in
// http://patreon.com/codingtrain
// Code for: https://youtu.be/JrRO3OnWs5s
// Processing transcription: Chuck England
// Each tile on the board
class Tile {
float x;
float y;
float wh;
int index;
int next;
int snadder = 0;
color clr;
Til... | Processing | 4 | aerinkayne/website | CodingChallenges/CC_091_snakesladders/Processing/CC_091_snakesladders/Tile.pde | [
"MIT"
] |
// @todo The filename is .xs instead of .js to prevent eslint from linting this file.
class UnparsableProcessor extends AudioWorkletProcessor {
some 'unparsable' syntax ()
}
registerProcessor('unparsable-processor', UnparsableProcessor);
| XS | 0 | dunnky/standardized-audio-context | test/fixtures/unparsable-processor.xs | [
"MIT"
] |
-@ import val city:String = "Tampa"
- val name:String = "Hiram"
%html
%body
%p Hello #{name} from #{city}
%ul
- for ( i <- 1 to 10 )
%li Item #{i} | Scaml | 3 | btashton/pygments | tests/examplefiles/test.scaml | [
"BSD-2-Clause"
] |
USING: assocs graphs hash-sets kernel math namespaces sequences sorting
tools.test vectors ;
QUALIFIED: sets
H{ } "g" set
{ 1 2 3 } "v" set
{ } [ "v" dup get "g" get add-vertex ] unit-test
{ { "v" } } [ 1 "g" get at sets:members ] unit-test
H{
{ 1 HS{ 1 2 } }
{ 2 HS{ 3 4 } }
{ 4 HS{ 4 5 } }
} "g" set
{... | Factor | 4 | melted/factor | core/graphs/graphs-tests.factor | [
"BSD-2-Clause"
] |
.section
.list-group-flush
div (:class "list-group-item border-0")
.title "I"
.container-fluid
.row
.col
.lang Java
pre.code $ code (@insert ../../code/java/dsl/01.java) $ :class java
.col
.lang Kotlin
pre.code $ code (@insert... | Cirru | 3 | driver733/kot | cirru/dsl.cirru | [
"MIT"
] |
html
height: 100%
body
background: #173529
padding: 0
margin: 0
font-family: Arial, Helvetica, sans-serif
font-size: 14px
color: #fff
padding-bottom: 40px
padding-top: 93px
position: relative
box-sizing: border-box
min-height: 100%
-webkit-font-smoothing: antialiased... | Sass | 3 | oksumoron/locust | locust/static/sass/_base.sass | [
"MIT"
] |
<HTML>
<!--
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the follo... | ASP | 2 | jerrykcode/kkFileView | office-plugin/windows-office/share/config/webcast/edit.asp | [
"Apache-2.0"
] |
" Vim syntax file
" Language: Elm Filter rules
" Maintainer: Charles E. Campbell <NcampObell@SdrPchip.AorgM-NOSPAM>
" Last Change: Aug 31, 2016
" Version: 9
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_ELMFILT
" quit when a syntax file was already loaded
if exists("b:current_syntax")
finish
endif
sy... | VimL | 4 | uga-rosa/neovim | runtime/syntax/elmfilt.vim | [
"Vim"
] |
(* ****** ****** *)
(*
// For parsing CSV tables
*)
(* ****** ****** *)
//
#include
"share/atspre_staload.hats"
#include
"share/HATS\
/atspre_staload_libats_ML.hats"
//
(* ****** ****** *)
extern
fun
print_gvhashtbl:
print_type(gvhashtbl)
overload
print with print_gvhashtbl
implement
print_gvhashtbl(kxs) =
fprint_gvha... | ATS | 4 | ats-lang/ATS-CodeBook | RECIPE/CSV-parsing/myread.dats | [
"MIT"
] |
{
"babel": {235
}
| JSON | 0 | wuweiweiwu/babel | packages/babel-core/test/fixtures/config/config-files/pkg-error/package.json | [
"MIT"
] |
bad = 1.2_
| TOML | 0 | vanillajonathan/julia | stdlib/TOML/test/testfiles/invalid/float-underscore-after.toml | [
"Zlib"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 5 | KevinAo22/vscode | src/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.ts | [
"MIT"
] |
package com.baeldung.comparable;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.junit.Test;
public class ComparableUnitTest {
@Test
public void whenUsingComparable_thenSortedList() {
List<Player> footballTeam ... | Java | 4 | zeesh49/tutorials | core-java/src/test/java/com/baeldung/comparable/ComparableUnitTest.java | [
"MIT"
] |
# Used in top-level module constant and nested constast tests.
TestModuleTopLevelConstant = true
class TestModuleConstant {
Constant = true
class Nested {
Constant = true
}
}
# Used in multiple-assigns constant test.
TestModuleConstantMultiA, TestModuleConstantMultiB = 1, 2
FancySpec describe: Module with:... | Fancy | 4 | bakkdoor/fancy | tests/module.fy | [
"BSD-3-Clause"
] |
"""Utility functions for Aqualink devices."""
from __future__ import annotations
from collections.abc import Awaitable
from iaqualink.exception import AqualinkServiceException
from homeassistant.exceptions import HomeAssistantError
async def await_or_reraise(awaitable: Awaitable) -> None:
"""Execute API call w... | Python | 4 | MrDelik/core | homeassistant/components/iaqualink/utils.py | [
"Apache-2.0"
] |
{
"extends": [
"apollo-open-source",
// Bundle together Jest/TS-Jest updates (even major ones).
"group:jestMonorepo",
"group:jestPlusTSJest"
],
"schedule": null,
// Override this value set in apollo-open-source back to the default.
// It's nice to be able to see PRs for everything in the Depen... | JSON5 | 4 | apollographql/apollo-codegen | renovate.json5 | [
"MIT"
] |
A←1↓⍳9 ⍝ 2 3 4 5 6 7 8 9
residual ← A∘.|A ⍝ 0 1 0 1 0 1 0 1
⍝ 2 0 1 2 0 1 2 0
⍝ 2 3 0 1 2 3 0 1
⍝ 2 3 4 0 1 2 3 4
⍝ 2 3 4 5 0 1 2 3
⍝ 2 3 4 5 6 0 1 2
... | APL | 4 | melsman/apltail | tests/primes0.apl | [
"MIT"
] |
"""CloseSpider is an extension that forces spiders to be closed after certain
conditions are met.
See documentation in docs/topics/extensions.rst
"""
from collections import defaultdict
from scrapy import signals
from scrapy.exceptions import NotConfigured
class CloseSpider:
def __init__(self, crawler):
... | Python | 4 | FingerCrunch/scrapy | scrapy/extensions/closespider.py | [
"BSD-3-Clause"
] |
#!/bin/bash
# Copyright 2021 The Kubernetes 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 require... | Shell | 5 | skyplaying/minikube | hack/jenkins/test-flake-chart/report_flakes.sh | [
"Apache-2.0"
] |
<%@ LANGUAGE='VBScript' CODEPAGE='65001'%>
<%
Response.Buffer=True
Response.Clear
Response.CharSet="utf-8"
Server.ScriptTimeOut=300
'-------------------------------Config-------------------------------
Const pass="C5E83EDF778C18482D84D5489B8D8F"'admin
Const pipu=True
Const iycew=59
Const ydnj=False
Const csj="_"
Const ... | ASP | 1 | laotun-s/webshell | asp/DarkBlade1.5.asp | [
"MIT"
] |
# swaynag
complete -f -c swaynag
complete -c swaynag -s C -l config -r --description 'The config file to use. Default: $HOME/.swaynag/config, $XDG_CONFIG_HOME/swaynag/config, and SYSCONFDIR/swaynag/config.'
complete -c swaynag -s d -l debug --description 'Enable debugging.'
complete -c swaynag -s e -l edge -fr --descri... | fish | 4 | junglerobba/sway | completions/fish/swaynag.fish | [
"MIT"
] |
Meteor-based collaboration -- server side
docs = {}
{
isCodeBlock,
createDocFromOrg,
docDo,
crnl,
} = Leisure
{
safeLoad,
dump,
} = Leisure.yaml
gitReadFile = Leisure.git.readFile
gitSnapshot = Leisure.git.snapshot
gitHasFile = Leisure.git.hasFile
... | Literate CoffeeScript | 4 | zot/Leisure | METEOR-OLD/server/10-server.litcoffee | [
"Zlib"
] |
import ecs;
struct PositionComponent{
var x: Float;
var y: Float;
var z: Float;
}
struct PositionSystem{
var blah: Int;
}
implement System for PositionSystem{
public function update(delta: Float, engine: Ptr[Engine]): Void{
var entityArray = engine.entitiesForComponent("Position");
... | Kit | 4 | Gamerfiend/kit-ecs | tests/position.kit | [
"MIT"
] |
/*!
* Copyright 2021 XGBoost contributors
*/
#include <gtest/gtest.h>
#include "../../../src/tree/updater_approx.h"
#include "../helpers.h"
namespace xgboost {
namespace tree {
TEST(Approx, Partitioner) {
size_t n_samples = 1024, n_features = 1, base_rowid = 0;
ApproxRowPartitioner partitioner{n_samples, base_r... | C++ | 4 | GinkoBalboa/xgboost | tests/cpp/tree/test_approx.cc | [
"Apache-2.0"
] |
;; Test that em_asm string are extraced correctly when the __start_em_asm
;; and __stop_em_asm globals are exported.
;; RUN: wasm-emscripten-finalize %s -S | filecheck %s
;; Check for the case when __start_em_asm and __stop_em_asm don't define an
;; entire segment. In this case we preserve the segment but zero the da... | WebAssembly | 4 | phated/binaryen | test/lit/wasm-emscripten-finalize/em_asm_partial.wat | [
"Apache-2.0"
] |
#
# Copyright 2013 (c) Pointwise, Inc.
# All rights reserved.
#
# This sample script is not supported by Pointwise, Inc.
# It is provided freely for demonstration purposes only.
# SEE THE WARRANTY DISCLAIMER AT THE BOTTOM OF THIS FILE.
#
# ==========================================================================
#... | Glyph | 5 | smola/language-dataset | data/github.com/pointwise/GridRefine/29175d48795e7086ba51205b7bc26ab9c23633d6/gridRefine.glf | [
"MIT"
] |
scriptname SKI_WidgetManager extends SKI_QuestBase
; CONSTANTS ---------------------------------------------------------------------------------------
string property HUD_MENU = "HUD Menu" autoReadOnly
; PRIVATE VARIABLES -------------------------------------------------------------------------------
SKI_WidgetBa... | Papyrus | 5 | pragasette/skyui | dist/Data/Scripts/Source/SKI_WidgetManager.psc | [
"Unlicense",
"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="M17,17.97l0,-7.... | XML | 3 | bubenheimer/androidx | compose/material/material/icons/generator/raw-icons/twotone/bookmark_remove.xml | [
"Apache-2.0"
] |
let ptr = alloc(10, int) in do
ptr[0] = 20;
ptr[1] = 19;
let x: &int = &ptr[2] in
*x = 5;
putnum(*ptr); putchar('\n');
putnum(*(ptr + 1)); putchar('\n');
putnum(ptr[2]); putchar('\n');
end | Harbour | 3 | adam-mcdaniel/harbor | examples/index.hb | [
"Apache-2.0"
] |
package gw.internal.gosu.compiler.sample.enhancements
uses gw.lang.reflect.IType
enhancement GenericEnhancement<T> : _GenericEnhanced<T> {
function simpleMethod() : String {
return "foo"
}
reified function returnsGenericTypeVar() : IType {
return T
}
reified function returnsGenericTypeVarWithArg(... | Gosu | 4 | dmcreyno/gosu-lang | gosu-test/src/test/gosu/gw/internal/gosu/compiler/sample/enhancements/GenericEnhancement.gsx | [
"Apache-2.0"
] |
local helpers = require('test.functional.helpers')(after_each)
local eq = helpers.eq
local ok = helpers.ok
local call = helpers.call
local clear = helpers.clear
local iswin = helpers.iswin
describe('hostname()', function()
before_each(clear)
it('returns hostname string', function()
local actual = call('hostna... | Lua | 4 | uga-rosa/neovim | test/functional/vimscript/hostname_spec.lua | [
"Vim"
] |
. "$(dirname "$0")/functions.sh"
setup
install
# Test custom dir support
mkdir sub
npx --no-install husky install sub/husky
npx --no-install husky add sub/husky/pre-commit "echo \"pre-commit\" && exit 1"
# Test core.hooksPath
expect_hooksPath_to_be "sub/husky"
# Test pre-commit
git add package.json
expect 1 "git com... | Shell | 3 | david-tomson/husky | test/2_in-sub-dir.sh | [
"MIT"
] |
#! /bin/sh /usr/share/dpatch/dpatch-run
## 50_validate-desktop-entry.dpatch by Ming Hua <minghua-guest@users.alioth.debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
##
## DP: Update to conform Desktop Entry Specification version 1.0. The "Icon"
## DP: key uses a hardcoded path becaus... | Darcs Patch | 4 | JrCs/opendreambox | recipes/scim/files/50_validate-desktop-entry.dpatch | [
"MIT"
] |
s1 :: SchedOrderTest(1, SIZE 100, STOP true);
s2 :: SchedOrderTest(2, SIZE 100, LIMIT 10);
s3 :: SchedOrderTest(3, SIZE 100);
ScheduleInfo(s1 1, s2 2, s3 3);
DriverManager(wait_stop, print s1.order, stop);
| Click | 3 | MacWR/Click-changed-for-ParaGraph | conf/schedorder1.click | [
"Apache-2.0"
] |
extends ScrollContainer
export(bool) var auto_scroll = false setget set_auto_scroll
func _process(_delta):
if auto_scroll:
var scrollbar = get_v_scrollbar()
scrollbar.value = scrollbar.max_value
func set_auto_scroll(value):
auto_scroll = value
| GDScript | 4 | jonbonazza/godot-demo-projects | 3d/physics_tests/utils/scroll_log.gd | [
"MIT"
] |
class(
x : 1
) { this }
func() {
empty'class
}
test()'class? {
if true {
empty'class
} else {
valid(class(2))
}
}
a : func()
b : ifValid a {
a.x
} elseEmpty {
0
}
c : test() | Objective-J | 1 | justinmann/sj | tests/option3.sj | [
"Apache-2.0"
] |
# Several ways to do it
"Hello world!";
Print("Hello world!\n"); # No EOL appended
Display("Hello world!");
f := OutputTextUser();
WriteLine(f, "Hello world!\n");
CloseStream(f);
| GAP | 3 | LaudateCorpus1/RosettaCodeData | Task/Hello-world-Text/GAP/hello-world-text.gap | [
"Info-ZIP"
] |
{
"category" : "Topez-Server-Core",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"instvars" : [
"workingCopy",
"repository",
"versionInfos",
"versionInfoBlock",
"selectedVersionInfo",
"versionInfoSummaryWindowId" ],
"name" : "TDVersionInfoBrowser",
"pools" : [
],
"super" :... | STON | 1 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/STON/properties.ston | [
"MIT"
] |
parameters {
real x;
}
model {
target += -0.5 * square(x);
}
| Stan | 3 | sthagen/stan-dev-stan | src/test/test-models/good/model/valid.stan | [
"CC-BY-3.0",
"BSD-3-Clause"
] |
pub struct SendPacket<T> {
p: T
}
mod pingpong {
use SendPacket;
pub type Ping = SendPacket<Pong>;
pub struct Pong(SendPacket<Ping>);
//~^ ERROR recursive type `Pong` has infinite size
}
fn main() {}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/issues/issue-2718-a.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
body {
background: url("#foobar");
background: url("http:foobar");
background: url("https:foobar");
background: url("data:foobar");
background: url("chrome:foobar");
background: url("//foobar");
}
| CSS | 2 | jpmallarino/django | tests/staticfiles_tests/project/documents/cached/css/ignored.css | [
"BSD-3-Clause",
"0BSD"
] |
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Hello.aspx.cs" Inherits="aspnet._Hello" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!-- --------------------------------------------------------------------------------------------
Use mxGraph with the above or no DOCTYPE.
-----------... | ASP | 5 | Arkitektbedriftene/mxgraph | dotnet/aspnet/Hello.aspx | [
"Apache-2.0"
] |
package com.baeldung.constantpool;
public class ConstantPool {
public void sayHello() {
System.out.println("Hello World");
}
}
| Java | 2 | DBatOWL/tutorials | core-java-modules/core-java-jvm-2/src/main/java/com/baeldung/constantpool/ConstantPool.java | [
"MIT"
] |
// call signatures in derived types must have the same or fewer optional parameters as the base type
interface Base {
a: (...args: number[]) => number;
a2: (x: number, ...z: number[]) => number;
a3: (x: number, y?: string, ...z: number[]) => number;
a4: (x?: number, y?: string, ...z: number[]) =... | TypeScript | 5 | nilamjadhav/TypeScript | tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithCallSignaturesWithRestParameters.ts | [
"Apache-2.0"
] |
import { AsyncLocalStorage } from "async_hooks"
export interface IEngineContext {
requestId: string
}
let asyncLocalStorage
function getAsyncLocalStorage(): AsyncLocalStorage<IEngineContext> {
return asyncLocalStorage ?? (asyncLocalStorage = new AsyncLocalStorage())
}
export function getEngineContext(): IEngineC... | TypeScript | 4 | beingfranklin/gatsby | packages/gatsby/src/utils/engine-context.ts | [
"MIT"
] |
import Config
config :my_app, env: config_env(), target: config_target()
| Elixir | 3 | doughsay/elixir | lib/elixir/test/elixir/fixtures/configs/env.exs | [
"Apache-2.0"
] |
etf
load spy
ta
ema
exit | Gosu | 0 | minhhoang1023/GamestonkTerminal | scripts/test_etf_ta.gst | [
"MIT"
] |
(* ****** ****** *)
#include "share/atspre_staload.hats"
#include "share/atspre_staload_libats_ML.hats"
(* ****** ****** *)
implement
main0() = println! ("Hello, world!")
(* ****** ****** *)
(* end of [Hello.dats] *)
| ATS | 4 | ats-lang/ATS-CodeBook | RECIPE/Hello/Hello.dats | [
"MIT"
] |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BASE_NUMERICS_CLAMPED_MATH_IMPL_H_
#define BASE_NUMERICS_CLAMPED_MATH_IMPL_H_
#include <stddef.h>
#include <stdint.h>
#include <climits>
#includ... | C | 5 | wanghuan578/chrome-gn | src/base/numerics/clamped_math_impl.h | [
"BSD-3-Clause"
] |
"""
float specialization of AdjustedArrayWindow
"""
from numpy cimport float64_t
ctypedef float64_t[:, :] databuffer
include "_windowtemplate.pxi"
| Cython | 2 | leonarduschen/zipline | zipline/lib/_float64window.pyx | [
"Apache-2.0"
] |
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flutter code sample for AutofillGroup
import 'package:flutter/material.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidg... | Dart | 5 | devansh12b2/flutter | examples/api/lib/widgets/autofill/autofill_group.0.dart | [
"BSD-3-Clause"
] |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="18008000">
<Item Name="My Computer" Type="My Computer">
<Property Name="NI.SortType" Type="Int">3</Property>
<Property Name="server.app.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.control.propertiesEnabled" Type=... | LabVIEW | 2 | zlg18/webvi-examples | CallLabVIEWWebService/WebService/WebService.lvproj | [
"MIT"
] |
$(function(){
$('.global-header-navi-sp-btn').click(function() {
$('.spmenu-modal-overray').fadeIn("fast");
$(".spmenu-modal-overray .modal-close").click(function(){
$(".spmenu-modal-overray").fadeOut("fast");
});
});
});
| MTML | 3 | movabletype/mt-theme-jungfrau | themes/jungfrau/templates/template_451.mtml | [
"MIT"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M9 13h2.83L14 15.17V8.83L11.83 11H9z",
opacity: ".3"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "M7 9v6h4l5 5V4l-5 5H7zm7-.17v6.34L11.83 13H9v-2h2.83L14 8.... | JavaScript | 4 | good-gym/material-ui | packages/material-ui-icons/lib/esm/VolumeMuteTwoTone.js | [
"MIT"
] |
# =============================================================
# This script is written to generate structured multi-block
# grid with almost any types of waviness at TE for almost any
# airfoil according to the grid guideline.
#==============================================================
# written by Pay Dehpanah
... | Glyph | 5 | pdpdhp/wavymesher | wvymesher.glf | [
"BSD-3-Clause"
] |
{-# LANGUAGE ForeignFunctionInterface #-}
--------------------------------------------------------------------------------
-- |
-- Module : Foreign.CUDA.Driver.Profiler
-- Copyright : [2009..2020] Trevor L. McDonell
-- License : BSD
--
-- Profiler control for low-level driver interface
--
-------------------------... | C2hs Haskell | 4 | jmatsushita/cuda | src/Foreign/CUDA/Driver/Profiler.chs | [
"BSD-3-Clause"
] |
# Copyright 2016 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... | Python | 4 | arghyadip01/grpc | test/http2_test/test_rst_during_data.py | [
"Apache-2.0"
] |
/home/spinalvm/hdl/riscv-compliance/work//C.ADDI.elf: file format elf32-littleriscv
Disassembly of section .text.init:
80000000 <_start>:
80000000: 0001 nop
80000002: 0001 nop
80000004: 0001 nop
80000006: 0001 nop
80000008: 0001 nop... | ObjDump | 1 | cbrune/VexRiscv | src/test/resources/asm/C.ADDI.elf.objdump | [
"MIT"
] |
.taro_chooselocation {
position: fixed;
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
top: 100%;
background-color: #fff;
transition: ease top .3s;
z-index: 1;
}
.taro_chooselocation_bar {
display: flex;
flex: 0 95px;
height: 95px;
background-color: #ededed;... | CSS | 3 | qiuziz/taro-react-native | packages/taro-h5/src/api/location/style.css | [
"MIT"
] |
<%@ Page Language="C#" %>
<%@ Import namespace="System.Diagnostics"%>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Text" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script language="c#" runat="server">
private co... | ASP | 4 | laotun-s/webshell | aspx/asp.net-backdoors/filesystembrowser.aspx | [
"MIT"
] |
module MultiVirtual2
( module MultiVirtual2
, module MultiVirtual3
) where
import MultiVirtual3
bar :: Int
bar = 2
| PureScript | 2 | metaleap/purs-with-dump-coreimp | examples/docs/src/MultiVirtual2.purs | [
"BSD-3-Clause"
] |
import * as React from 'react';
import LoadingButton from '@mui/lab/LoadingButton';
import FormControlLabel from '@mui/material/FormControlLabel';
import Switch from '@mui/material/Switch';
import SaveIcon from '@mui/icons-material/Save';
import SendIcon from '@mui/icons-material/Send';
export default function FullWid... | JavaScript | 4 | dany-freeman/material-ui | test/regressions/fixtures/Button/FullWidthLoadingButtons.js | [
"MIT"
] |
IDENTIFICATION DIVISION.
PROGRAM-ID. FACTORIAL.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 CMD-ARGS PIC X(38).
01 DECINUM PIC S9999v99.
01 NUM PIC S9(7).
01 FACTORIAL PIC 9(15) V... | COBOL | 3 | ChathuraSam/sample-programs | archive/c/cobol/factorial.cbl | [
"MIT"
] |
/* Copyright (c) 2017-2019 Netronome Systems, Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
;TEST_INIT_EXEC nfp-mem i32.ctm:0x80 0x00000000 0x00000000 0x00154d0a 0x0d1a6805
;TEST_INIT_EXEC nfp-mem i32.ctm:0x90 0xca306ab8 0x81000065 0x81000258 0x81000258
;TEST_INIT_EXEC nfp-mem i32... | UnrealScript | 2 | pcasconnetronome/nic-firmware | test/datapath/pkt_vlan_vlan_vlan_vlan_vlan_vlan_vlan_vlan_vlan_ipv4_vxlan_tcp_x88.uc | [
"BSD-2-Clause"
] |
// CamIO 2: perf_mod.c
// Copyright (C) 2013: Matthew P. Grosvenor (matthew.grosvenor@cl.cam.ac.uk)
// Licensed under BSD 3 Clause, please see LICENSE for more details.
#include "../perf/perf_mon.h"
#include "../log/log.h"
make_perf_module(TSC test1[1]; TSC test2[2]; TSC test3[3];);
struct some_state {
ch_wor... | XC | 4 | mgrosvenor/libchaste | tests/test_perf_mod.xc | [
"BSD-3-Clause"
] |
Mutation=AM
Mutation=NM
Mutation=SM
PronType=Contrastive
Relative=Rel
| Cycript | 0 | mlej8/MultilangStructureKD | EUD/data/feat_val.cy | [
"MIT"
] |
// Daniel Shiffman
// http://codingtra.in
// http://patreon.com/codingtrain
// Code for this video: https://youtu.be/Cl_Gjj80gPE
float yoff = 0.0;
void setup() {
size(400, 400);
}
void draw() {
background(0);
translate(width / 2, height / 2);
float radius = 150;
beginShape();
float xoff = 0;
for (fl... | Processing | 4 | aerinkayne/website | CodingChallenges/CC_036_Blobby/Processing/CC_036_Blobby/CC_036_Blobby.pde | [
"MIT"
] |
-- TRY_CAST string representing a valid fractional number to integral should truncate the number
SELECT TRY_CAST('1.23' AS int);
SELECT TRY_CAST('1.23' AS long);
SELECT TRY_CAST('-4.56' AS int);
SELECT TRY_CAST('-4.56' AS long);
-- TRY_CAST string which are not numbers to integral should return null
SELECT TRY_CAST('a... | SQL | 4 | akhalymon-cv/spark | sql/core/src/test/resources/sql-tests/inputs/try_cast.sql | [
"Apache-2.0"
] |
--TEST--
mb_check_encoding() - Circular references
--EXTENSIONS--
mbstring
--FILE--
<?php
ini_set('default_charset', 'UTF-8');
// Valid - Detects recursion
$str = "Japanese UTF-8 text. 日本語のUTF-8テキスト";
$arr = [1234, 12.34, TRUE, FALSE, NULL, $str, 'key'=>$str, $str=>'val'];
$tmp = &$arr;
$arr[] = $tmp;
var_dump(mb_check... | PHP | 3 | NathanFreeman/php-src | ext/mbstring/tests/mb_check_encoding_array.phpt | [
"PHP-3.01"
] |
// dear imgui: Platform Backend for OSX / Cocoa
// This needs to be used along with a Renderer (e.g. OpenGL2, OpenGL3, Vulkan, Metal..)
// [ALPHA] Early backend, not well tested. If you want a portable application, prefer using the GLFW or SDL platform Backends on Mac.
// Implemented features:
// [X] Platform: Mouse ... | Objective-C++ | 5 | WillianKoessler/imgui | backends/imgui_impl_osx.mm | [
"MIT"
] |
package {
public class Test {
}
}
trace("// Date with specific time stamp");
var date = new Date(929156400000);
trace("// Date(929156400000)");
trace(date.fullYearUTC, date.monthUTC, date.dateUTC, date.dayUTC, date.hoursUTC, date.minutesUTC, date.secondsUTC);
trace("// Date with fields chosen");
var date = new Dat... | ActionScript | 4 | Sprak1/ruffle | tests/tests/swfs/avm2/date/Test.as | [
"Apache-2.0",
"Unlicense"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 5 | AgainPsychoX/vscode | src/vs/workbench/electron-sandbox/desktop.contribution.ts | [
"MIT"
] |
/*
Copyright (C) 2017 Apple Inc. All Rights Reserved.
See LICENSE.txt for this sample’s licensing information
Abstract:
The vertex and fragment shaders.
*/
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
/*
Vertex input/output structure for passing results
from a vertex shader to a fra... | Metal | 5 | 0x1306a94/AVCustomEdit | AVCustomEdit-Swift/Shaders.metal | [
"AML"
] |
#
# Copyright 2013 (c) Pointwise, Inc.
# All rights reserved.
#
# This sample Pointwise script is not supported by Pointwise, Inc.
# It is provided freely for demonstration purposes only.
# SEE THE WARRANTY DISCLAIMER AT THE BOTTOM OF THIS FILE.
#
#######################################################################... | Glyph | 5 | smola/language-dataset | data/github.com/pointwise/CreateFromAnalyticFunction/e8dc6830cd04079e9ed062f2586249a37e8cab29/CreateFromAnalyticFunction.glf | [
"MIT"
] |
{
"cells": [
{
"cell_type": "markdown",
"id": "white-electron",
"metadata": {},
"source": [
"## Connect and Manage an Exist Experiment"
]
},
{
"cell_type": "markdown",
"id": "recent-italic",
"metadata": {},
"source": [
"### 1. Connect Experiment"
]
},
{
"cell_type": "... | Jupyter Notebook | 4 | dutxubo/nni | examples/trials/sklearn/classification/python_api_connect.ipynb | [
"MIT"
] |
#include <metal_stdlib>
#include <simd/simd.h>
using namespace metal;
typedef struct
{
float2 a_position [[attribute(0)]];
} Vertex_T;
typedef struct
{
float4 position [[position]];
} Fragment_T;
typedef struct
{
float4 u_color;
} Uniforms_T;
vertex Fragment_T vsDebugRect(const Vertex_T in [[stage_in]])
{
F... | Metal | 4 | smartyw/organicmaps | shaders/Metal/debug_rect.metal | [
"Apache-2.0"
] |
== Spring Cloud AliCloud OSS
OSS(Object Storage Service)是阿里云的一款对象存储服务产品, Spring Cloud AliCloud OSS 提供了Spring Cloud规范下商业版的对象存储服务,提供简单易用的API,并且支持与 Spring 框架中 Resource 的整合。
=== 如何引入 Spring Cloud AliCloud OSS
如果要在您的项目中引入 OSS,使用 group ID 为 `org.springframework.cloud` 和 artifact ID 为 `spring-cloud-starter-alicloud-oss` 的 ... | AsciiDoc | 5 | chenjj950307/spring-cloud-aibaba | spring-cloud-alibaba-docs/src/main/asciidoc-zh/oss.adoc | [
"Apache-2.0"
] |
=head1 DESCRIPTION
blocks.pir - tetris block classes
=cut
.namespace ["Tetris::Blocks"]
.sub __onload :load
$P0 = get_class "Tetris::Block::1"
unless null $P0 goto END
load_bytecode "examples/sdl/tetris/block.pir"
get_class $P1, "Tetris::Block"
$P2 = new 'String'
$P2 = "__init"
subc... | Parrot Internal Representation | 4 | winnit-myself/Wifie | examples/sdl/tetris/blocks.pir | [
"Artistic-2.0"
] |
div::before::after::selection::first-line::first-letter {color:red} | CSS | 2 | vjpr/swc | css/parser/tests/fixture/esbuild/misc/-GZJfOA9TK6La2KGGNgCkg/input.css | [
"Apache-2.0",
"MIT"
] |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | OpenCL | 5 | thisisgopalmandal/opencv | modules/imgproc/src/opencl/color_lab.cl | [
"BSD-3-Clause"
] |
[ This contains a VERY simple check for the three common bit sizes.
It's the original version for the Bitwidth.b test program.
In addition a check has been added on the start to check
for really large, or non-binary, cells.
]
[-]>[-]
++++ [<++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>-]
... | Brainfuck | 4 | RubenNL/brainheck | examples/cell-size-3.bf | [
"Apache-2.0"
] |
A visibility qualifier was used when it was unnecessary.
Erroneous code examples:
```compile_fail,E0449
struct Bar;
trait Foo {
fn foo();
}
pub impl Bar {} // error: unnecessary visibility qualifier
pub impl Foo for Bar { // error: unnecessary visibility qualifier
pub fn foo() {} // error: unnecessary visi... | Markdown | 4 | Eric-Arellano/rust | compiler/rustc_error_codes/src/error_codes/E0449.md | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
datatype color =
Red
| Black;;
datatype node =
Leaf
| Node of color * node * int * bool * node;;
fun balance1 kv vv t n =
case n of
Node (c, Node (Red, l, kx, vx, r1), ky, vy, r2) => Node (Red, Node (Black, l, kx, vx, r1), ky, vy, Node (Black, r2, kv, vv, t))
| Node (c, l1, ky, vy, Node (Red, l2, kx, vx, r)) =>... | Standard ML | 5 | JLimperg/lean4 | tests/bench/rbmap_checkpoint2.sml | [
"Apache-2.0"
] |
@[inline] def o (n : ℕ) := prod.mk n n
set_option trace.compiler.inline true
def f := (o 1).fst
| Lean | 3 | ericrbg/lean | tests/lean/inline_bug.lean | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.