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 |
|---|---|---|---|---|---|
class Test extends Object; | UnrealScript | 0 | LaudateCorpus1/Unreal-Library | Test/upk/TestUC2/Classes/Test.uc | [
"MIT"
] |
-- Copyright (c) 2010 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.
-- This script bookmarks the currently open tabs of a window.
tell application "Chromium"
set url_list to {}
set title_list to {}
tell window 1
r... | AppleScript | 3 | zealoussnow/chromium | chrome/browser/ui/cocoa/applescript/examples/bookmark_current_tabs.applescript | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Scala | 4 | kesavanvt/spark | sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/csv/CSVExprUtilsSuite.scala | [
"BSD-2-Clause",
"Apache-2.0",
"CC0-1.0",
"MIT",
"MIT-0",
"ECL-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
Rebol [
Title: "Rebol3 percent test script"
Author: "Oldes, Peter W A Wood"
File: %percent-test.r3
Tabs: 4
Needs: [%../quick-test-module.r3]
]
~~~start-file~~~ "percent"
===start-group=== "make percent!"
--test-- "make percent from integer"
--assert 100% = make percent! 1
--test-- "make percent from ... | Rebol | 5 | 0branch/r3 | src/tests/units/percent-test.r3 | [
"Apache-2.0"
] |
#pragma once
#include <string>
#include <vector>
class ReparsePoint
{
public:
static bool CreateMountPoint(const std::wstring& path, const std::wstring& target, const std::wstring& printname);
static bool DeleteMountPoint(const std::wstring& path);
static std::wstring GetMountPointTarget(const std::wstring& path... | C | 4 | OsmanDere/metasploit-framework | external/source/exploits/CVE-2020-0787/CommonUtils/ReparsePoint.h | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
#include <Blynk.h>
#include <Blynk/BlynkDetectDevice.h>
/*
* Pins Quantity
*/
#if defined(NUM_DIGITAL_PINS)
#define BOARD_DIGITAL_MAX int(NUM_DIGITAL_PINS)
#elif defined(PINS_COUNT)
#define BOARD_DIGITAL_MAX int(PINS_COUNT)
#else
#warning "BOARD_DIGITAL_MAX not detected"
#define BOARD_DIGITAL_MAX 32
#endif
... | Arduino | 4 | kayatmin/blynk-library | tests/GenerateJSON/GenerateJSON.ino | [
"MIT"
] |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Baeldung</title>
</head>
<body>
<h2 th:text="${header}"></h2>
<p th:text="${message}"></p>
</body>
</html>
| HTML | 2 | DBatOWL/tutorials | spring-boot-modules/spring-boot/src/main/resources/templates/displayallbeans.html | [
"MIT"
] |
41,5A
61,7A
| Component Pascal | 1 | janosch-x/character_set | lib/character_set/predefined_sets/ascii_letter.cps | [
"MIT"
] |
[shark](../../index.md) / [shark](../index.md) / [LeakTrace](index.md) / [retainedHeapByteSize](./retained-heap-byte-size.md)
# retainedHeapByteSize
`val retainedHeapByteSize: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`?`
The minimum number of bytes which would be freed if the leak... | Markdown | 3 | slavonnet/leakcanary | docs/api/shark/shark/-leak-trace/retained-heap-byte-size.md | [
"Apache-2.0"
] |
a { value: 10\65m } | CSS | 0 | vjpr/swc | css/parser/tests/fixture/esbuild/misc/Mdtiu_Fpfso6gXZMciRJgw/input.css | [
"Apache-2.0",
"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 | 5 | Kopilov/ceylon-ide-intellij | source/org/eclipse/ceylon/ide/intellij/refactoring/AbstractExtractHandler.ceylon | [
"Apache-2.0"
] |
create table t (x timestamp not null);
| SQL | 1 | imtbkcat/tidb-lightning | tests/no_schema/schema-data/noschema.t-schema.sql | [
"Apache-2.0"
] |
/*
* Copyright 2014-2019 Jiří Janoušek <janousek.jiri@gmail.com>
*
* 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 of con... | Vala | 4 | xcffl/nuvolaruntime | src/apprunner/apprunner.vala | [
"BSD-2-Clause"
] |
---
layout: post
title: "Verifing Efficient Sorting Algorithms"
date: 2013-02-15 16:12
comments: true
external-url:
categories: abstract-refinements
author: Niki Vazou
published: false
---
In this example, we will see how abstract refinements can be used to verify
complex sorting algorithms, like the ones implemented... | Literate Haskell | 5 | curiousleo/liquidhaskell | docs/blog/todo/verifying-efficient-sorting-algorithms.lhs | [
"MIT",
"BSD-3-Clause"
] |
"""Helpers for instantiating name table records."""
from contextlib import contextmanager
from copy import deepcopy
from enum import IntEnum
import re
class NameID(IntEnum):
FAMILY_NAME = 1
SUBFAMILY_NAME = 2
UNIQUE_FONT_IDENTIFIER = 3
FULL_FONT_NAME = 4
VERSION_STRING = 5
POSTSCRIPT_NAME = 6... | Python | 5 | 13rianlucero/CrabAgePrediction | crabageprediction/venv/Lib/site-packages/fontTools/varLib/instancer/names.py | [
"MIT"
] |
/*
* Copyright (c) 2008 Johns Hopkins University.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this l... | nesC | 4 | mtaghiza/tinyos-main-1 | tos/lib/tosthreads/lib/tinyld/DynamicLoaderP.nc | [
"BSD-3-Clause"
] |
/home/spinalvm/hdl/riscv-compliance/work//C.SW.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
8... | ObjDump | 2 | cbrune/VexRiscv | src/test/resources/asm/C.SW.elf.objdump | [
"MIT"
] |
export default {
props: {
obj: { a: 1, b: 42 },
c: 5,
d: 10
},
html: `
<p>1</p>
<p>42</p>
<p>5</p>
<p>10</p>
`,
test({ assert, target, component }) {
component.obj = { a: 2, b: 50, c: 30 };
assert.htmlEqual(target.innerHTML, `
<p>2</p>
<p>50</p>
<p>30</p>
<p>10</p>
`);
component... | JavaScript | 3 | Theo-Steiner/svelte | test/runtime/samples/component-slot-spread/_config.js | [
"MIT"
] |
# TODO: Translation updated at 2022-01-11 21:45
# game/scripts/labels/day_start_end_events.rpy:25
translate english day_start_text1_f805c7ea:
# player happy "A new day!"
player happy "A new day!"
# game/scripts/labels/day_start_end_events.rpy:27
translate english day_start_text1_b0010ea5:
# player "Goo... | Ren'Py | 4 | googlebleh/LearnToCodeRPG | game/tl/english/scripts/labels/day_start_end_events.rpy | [
"BSD-3-Clause"
] |
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | C++ | 4 | EricRemmerswaal/tensorflow | tensorflow/core/platform/cloud/gcs_dns_cache.cc | [
"Apache-2.0"
] |
#version 310 es
layout (local_size_x = 8, local_size_y = 8) in;
layout (binding = 0) readonly buffer InBufY {
uint data[];
} in_buf_y;
layout (binding = 1) readonly buffer InBufUV {
uint data[];
} in_buf_uv;
layout (binding = 2) writeonly buffer OutBufY {
uint data[];
} out_buf_y;
layout (binding = 3) ... | Slash | 5 | zongwave/libxcam | shaders/glsl/shader_gauss_scale_pyr.comp.sl | [
"Apache-2.0"
] |
PROGRAM_NAME='prime-debug'
#IF_NOT_DEFINED __PRIME_DEBUG
#DEFINE __PRIME_DEBUG
(***********************************************************)
(* FILE CREATED ON: 01/23/2016 AT: 21:43:16 *)
(***********************************************************)
(***************************************************... | NetLinx | 5 | marselle001/amx-snmp-library | prime-debug.axi | [
"MIT"
] |
-- A lot of this is copied basically verbatim from the full python grammar
-- located at http://docs.python.org/3/reference/grammar.html
-- For example, the function `fileInput` is actually just a rule in the Python
-- grammar. Nearly everything also appears in the order it does in the grammar.
module Parser (parseFile... | Haskell | 5 | choosewhatulike/500lines | incomplete/parser-and-lexer/src/Parser.hs | [
"CC-BY-3.0"
] |
#main
internal CollectorDemo: IView {
subnode CollectorDemo
text(value) {
return this
}
}
internal CollectorDemoFactory {
new_collector_demo() {
return CollectorDemo()
}
}
internal new_collector_demo() {
return CollectorDemo()
}
internal collector1() XView >> Array {
// collect
<div>hei~</div>
// c... | Tea | 4 | jackwiy/tea | tests/syntax/type-collector.tea | [
"Apache-2.0"
] |
@aws
runtime python3.8
timeout 38
# concurrency 1
# memory 1152
| Arc | 1 | copperinc/sandbox | test/mock/normal/src/http/get-python3_8/config.arc | [
"Apache-2.0"
] |
{:cljdoc.doc/tree [["README" {:file "README.md"}]]
:cljdoc.api/namespaces []}
| edn | 1 | green-coder/re-frame | doc/cljdoc.edn | [
"MIT"
] |
CLASS ltcl_data_utils_test DEFINITION FINAL
FOR TESTING
RISK LEVEL HARMLESS
DURATION SHORT.
PRIVATE SECTION.
METHODS build_filename FOR TESTING.
ENDCLASS.
CLASS ltcl_data_utils_test IMPLEMENTATION.
METHOD build_filename.
DATA ls_config TYPE zif_abapgit_data_config=>ty_config.
ls_config-name... | ABAP | 4 | Manny27nyc/abapGit | src/data/zcl_abapgit_data_utils.clas.testclasses.abap | [
"MIT"
] |
/******************************************************************************
* Copyright 2019 The Apollo 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
... | C | 4 | jzjonah/apollo | modules/map/tools/map_datachecker/server/loops_verify_agent.h | [
"Apache-2.0"
] |
# Copyright (c) 2018-2021, Carnegie Mellon University
# See LICENSE for details
Class(AsmX86Unparser, Unparser, rec(
asmvolatile := meth(self, o)
local oo,a,x;
a := [];
oo := self.preprocess(o);
while(ObjId(oo)=data) do
oo.var.asmpseudoregister:=Length(a);
Append(a,[[oo.var,oo.value]])... | GAP | 3 | sr7cb/spiral-software | namespaces/spiral/compiler/x86.gi | [
"BSD-2-Clause-FreeBSD"
] |
import datetime
import wrapcache
import TickerConfig
from config.urlConf import urls
from inter.ConfirmHB import confirmHB
class passengerInitApi:
def __init__(self, session, secretList, tickerNo):
"""
获取候补信息
"""
self.secretList = secretList
self.tickerNo = tickerNo
... | Python | 4 | middleprince/12306 | inter/PassengerInitApi.py | [
"MIT"
] |
%lex
%options case-insensitive
ID_BEG [a-zA-Z]
ID_BODY [a-zA-Z0-9_$#]
BID_BEG [a-zA-Z0-9]
E ([Ee][+-]?[0-9][0-9_]*)
FS [df]
%%
'/*'(.|\n)*?'/*' /* skip comments */
'--'[^\n]* /* skip comments */
\s+ /* skip whitespace */
':'{BID_BEG}{ID_BODY}* return 'bound_id';
'"'[^"]+'"' return 'quoted_id';
[0-9]+'.'?{E... | Bison | 5 | jameschenjav/antlr-plsql | grammar/plsql.bison | [
"Apache-2.0"
] |
@prefix eg: <http://example.org/> .
<> eg:p eg:o ; eg:p1 eg:o2 , | Turtle | 2 | joshrose/audacity | lib-src/lv2/serd/tests/bad/bad-eof-in-object-list2.ttl | [
"CC-BY-3.0"
] |
namespace Google.OrTools.FSharp
module Tests =
open System
open Xunit
open Google.OrTools.LinearSolver
open Google.OrTools.FSharp
[<Fact>]
let ``Equality Matrix cannot be empty`` () =
try
let opts = SolverOpts.Default.Name("Equality Constraints").Goal(Minimize).Objective([2.0;1.0;0.0;0.0;... | F# | 4 | sreesubbash/or-tools | ortools/dotnet/Google.OrTools.FSharp.Tests/Tests.fs | [
"Apache-2.0"
] |
'Simple graphics compatibility test
'
'Should behave the same on all targets
Import mojo2
Class Test Extends App
Field canvas:Canvas
Field image:Image
Field tx#,ty#
Field c=7,r=255,g=255,b=255
Method OnCreate()
canvas=New Canvas
LoadStuff
SetUpdateRate 0
End
Method LoadStuff()
If image i... | Monkey | 4 | blitz-research/monkey | modules/mojo2/bananas/mojotest/mojotest.monkey | [
"Zlib"
] |
[[cli.whats-next]]
== What to Read Next
There are some {spring-boot-code}/spring-boot-project/spring-boot-cli/samples[sample groovy scripts] available from the GitHub repository that you can use to try out the Spring Boot CLI.
There is also extensive Javadoc throughout the {spring-boot-cli-module-code}[source code].
I... | AsciiDoc | 1 | techAi007/spring-boot | spring-boot-project/spring-boot-docs/src/docs/asciidoc/cli/whats-next.adoc | [
"Apache-2.0"
] |
vcl 4.0;
# This Varnish VCL has been adapted from the Four Kitchens VCL for Varnish 3.
# Default backend definition. Points to Apache, normally.
backend default {
.host = "127.0.0.1";
.port = "8080";
.first_byte_timeout = 300s;
}
# Access control list for PURGE requests.
acl purge {
"127.0.0.1";
}
... | VCL | 5 | jaykay-design/app-service-quickstart-docker-images | drupal-nginx-fpm/0.6/default.vcl | [
"MIT"
] |
--TEST--
openssl_cms_sign() and verify detached tests
--EXTENSIONS--
openssl
--FILE--
<?php
$infile = __DIR__ . "/plain.txt";
$outfile = tempnam(sys_get_temp_dir(), "ssl");
$vout= $outfile . ".vout";
if ($outfile === false) {
die("failed to get a temporary filename!");
}
$privkey = "file://" . __DIR__ . "/private... | PHP | 4 | NathanFreeman/php-src | ext/openssl/tests/openssl_cms_sign_verify_detached.phpt | [
"PHP-3.01"
] |
/*
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
*/
function main() {
println(4 / 2);
println(4 / 4000000000000);
println(3000000000000 / 3);
println(3000000000000 / 30... | Slash | 2 | CAFxX/simplelanguage | language/tests/Div.sl | [
"UPL-1.0"
] |
vespaControllers = angular.module('vespaControllers')
vespaControllers.controller 'diffCtrl', ($scope, VespaLogger, WSUtils,
IDEBackend, $timeout, $modal, PositionManager, RefPolicy, $q, SockJSService) ->
comparisonPolicy = null
comparisonRules = []
comparisonNodes = []
compari... | Literate CoffeeScript | 4 | visigoth/V3SPA | src/js/controllers/diff.litcoffee | [
"BSD-3-Clause"
] |
(set-info :smt-lib-version 2.6)
(set-logic QF_UFLRA)
(set-info :source |CPAchecker with k-induction on SV-COMP14 program using MathSAT5, submitted by Philipp Wendler, http://cpachecker.sosy-lab.org|)
(set-info :category "industrial")
(set-info :status unsat)
(define-fun _1 () Bool true)
(declare-fun |main::lk1@5| () ... | SMT | 2 | livinlife6751/infer | sledge/test/smt/QF_UFLRA/cpachecker-induction-svcomp14/cpachecker-induction.test_locks_10_true-unreach-call.c.smt2 | [
"MIT"
] |
export { default } from './AvatarGroup';
export * from './AvatarGroup';
export { default as avatarGroupClasses } from './avatarGroupClasses';
export * from './avatarGroupClasses';
| TypeScript | 2 | good-gym/material-ui | packages/material-ui/src/AvatarGroup/index.d.ts | [
"MIT"
] |
<div class="video-wrapper" data-streaming="youtube" data-videoid="{{.Get "id"}}" >
<i class="icon-video-play-button shortcode"></i>
{{if (.Get "thumbnail")}}
<div style="background-image:url(/images/thumbnails/{{.Get "thumbnail"}})" alt="YouTube Thumbnail" class="video-thumbnail"></div>
{{else}}
<div style="backgr... | HTML | 3 | jlevon/hugo | docs/layouts/shortcodes/yt.html | [
"Apache-2.0"
] |
// edition:2018
// compile-flags: --crate-type lib
pub const async fn x() {}
//~^ ERROR functions cannot be both `const` and `async`
| Rust | 2 | Eric-Arellano/rust | src/test/ui/async-await/no-const-async.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
httpService = new http();
httpService.setUrl("http://localhost:28139/");
httpService.setMethod("GET");
httpService.addParam(type="cookie", name="GeoIP", value="US:Albuquerque:35.1241:-106.7675:v4");
httpService.addParam(type="cookie", name="uls-previous-languages", value="%5B%22en%22%5D");
httpService.addParam(type="co... | ColdFusion | 3 | csperando/curlconverter | test/fixtures/cfml/get_with_browser_headers.cfm | [
"MIT"
] |
HAI 1.2
HOW IZ I ISOPTIMUSPRIME YR OPTIMUSPRIMEWANNABE
BTW OPTIMUSPRIME IS NOT A NEGATIVE GUY
BOTH SAEM BIGGR OF OPTIMUSPRIMEWANNABE 1 1, O RLY?
YA RLY, FOUND YR FAIL, OIC
BOTH SAEM OPTIMUSPRIMEWANNABE 2, O RLY?
YA RLY, FOUND YR WIN, OIC
BOTH SAEM MOD OF OPTIMUSPRIM... | LOLCODE | 3 | ajnavarro/language-dataset | data/github.com/LeartS/loleuler/f8f508b45f07f8c59043c1e25756e369e246f965/010.lol | [
"MIT"
] |
/* Copyright (c) 2017-2019 Netronome Systems, Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
;TEST_INIT_EXEC nfp-reg mereg:i32.me0.XferIn_32=0x100
;TEST_INIT_EXEC nfp-reg mereg:i32.me0.XferIn_33=0xdeadbeef
#include "actions_harness.uc"
#include "pkt_inc_pat_256B_x88.uc"
#include <single... | UnrealScript | 4 | pcasconnetronome/nic-firmware | test/datapath/actions_csum_complete_256B_x88_test.uc | [
"BSD-2-Clause"
] |
.admin-reports-content
height: auto !important
| Stylus | 1 | Knitter/wekan | client/components/settings/adminReports.styl | [
"MIT"
] |
@0xb7ef89601eedef15;
struct Ingress {
source @0 :UInt64;
receiver @1 :UInt64;
methodName @2 :Text;
methodPayload @3 :Data;
messageId @4 :UInt64;
messageTimeNs @5 :UInt64;
}
| Cap'n Proto | 4 | 3cL1p5e7/ic | experimental/encoding_bench/capnproto/ingress.capnp | [
"Apache-2.0"
] |
Rebol [
title: "Needs module test 1"
name: test-needs-name
needs: test-needs-name-value
]
export test-needs-name-result: (42 = test-needs-name-value)
| Rebol | 2 | 0branch/r3 | src/tests/units/files/test-needs-name.reb | [
"Apache-2.0"
] |
# this is imported by test_deploy to do some checks in python
import sys
import subprocess
from pathlib import Path
# we've taken steps to clear out the embedded python environment,
# so we have to go searching for real python to figure out where its libraries are installed.
def python_path(cpath):
for maybe in cp... | Python | 4 | Hacky-DH/pytorch | torch/csrc/deploy/test_deploy_python.py | [
"Intel"
] |
package org.xtendroid.xtendroidtest.fragments
import org.xtendroid.annotations.AndroidFragment
import org.xtendroid.app.OnCreate
import org.xtendroid.xtendroidtest.R
/**
* Fragment to test the @AndroidFragment annotation
*/
@AndroidFragment(R.layout.fragment_test) class TestFragment {
@OnCreate
def init() {
fr... | Xtend | 3 | kusl/Xtendroid | XtendroidTest/src/org/xtendroid/xtendroidtest/fragments/TestFragment.xtend | [
"MIT"
] |
= Dell XPS 15 7590 =
*Mostly copied from 15-9550
== Tested Hardware ==
* CPU: Intel(R) Core(TM) i9-9980HK
* RAM: 32 GB
* HDD: 1 TiB SSD
* Screen: 15" 4k (3840✕2160)
* Input: Touchscreen and trackpad.
== Firmware Configuration ==
Not much tweaking of NixOS itself was needed. But we currently cannot automate the firm... | MediaWiki | 4 | pmeiyu/nixos-hardware | dell/xps/15-7590/README.wiki | [
"CC0-1.0"
] |
%default total
test : (String, ()) -> ()
test ("a", ()) = ()
test' : (Int, ()) -> ()
test' (1, ()) = ()
test'' : Type -> Type
test'' (List a) = a
| Idris | 3 | ska80/idris-jvm | tests/idris2/coverage015/Issue1169.idr | [
"BSD-3-Clause"
] |
#|
exec /usr/bin/env sbcl --noinform --quit --load "$0" --end-toplevel-options "$@"
|#
;;; Silently loads :cl-json.
(with-open-file (*standard-output* "/dev/null"
:direction :output
:if-exists :supersede)
(ql:quickload "cl-json"))
(defparameter *... | Common Lisp | 4 | kudlav/organicmaps | search/search_quality/gen-samples.lisp | [
"Apache-2.0"
] |
package jenkins.model.CauseOfInterruption
// by default we just print the short description.
text(my.shortDescription) | Groovy | 1 | 1st/jenkins | core/src/main/resources/jenkins/model/CauseOfInterruption/summary.groovy | [
"MIT"
] |
package influxdb_test
import "testing/expect"
testcase push_down_group_one_tag_count extends "flux/planner/group_agg_test" {
expect.planner(rules: ["PushDownGroupAggregateRule": 1])
group_agg_test.group_one_tag_count()
}
testcase push_down_group_all_filter_field_count extends "flux/planner/group_agg_test" {
... | FLUX | 4 | SGZW/influxdb | query/stdlib/influxdata/influxdb/group_agg_influxdb_test.flux | [
"MIT"
] |
/*
* Copyright (C) 2009 The Android Open Source Project
*
* 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 app... | Logos | 4 | bkw/Broadway | Decoder/src/EvaluationTestBench.x | [
"BSD-3-Clause"
] |
# Copyright (C) 2007-2012, Parrot Foundation.
=head1 DESCRIPTION
Based on the Range object described in S03:
L<http://design.perl6.org/S03.html#Range_semantics>
=cut
.HLL 'parrot'
.namespace [ 'Range' ]
=head1 macros
=cut
.macro exhausted_check()
.local pmc exhausted_check
exhausted_check = getattribute self... | Parrot Internal Representation | 5 | winnit-myself/Wifie | runtime/parrot/library/Range.pir | [
"Artistic-2.0"
] |
size: 1024px 60px;
dpi: 96;
margin: 1em;
axis {
scale: log(2);
limit: 0 4096;
}
| CLIPS | 3 | asmuth-archive/travistest | test/examples/charts_reference_scale_logarithmic.clp | [
"Apache-2.0"
] |
intersection_for(i = [
[0, 0, 0],
[10, 20, 300],
[200, 40, 57],
[20, 88, 57]
])
rotate(i) cube([100, 20, 20], center = true);
| OpenSCAD | 0 | heristhesiya/OpenJSCAD.org | packages/io/scad-deserializer/tests/examples/example014.scad | [
"MIT"
] |
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# CNTK 206: Part B - Deep Convolutional GAN with MNIST data\n",
"\n",
"**Prerequisites**: We assume that you have successfully downloaded the MNIST data by completing the tutorial titled CNTK_103A_MNIST_DataLoader.ipynb.\n",
... | Jupyter Notebook | 5 | shyamalschandra/CNTK | Tutorials/CNTK_206B_DCGAN.ipynb | [
"MIT"
] |
<?Lassoscript
// Last modified 12/21/09 by ECL
// CHANGE NOTES
// 8/14/08
// First implementation
// 12/21/09
// Added Response_FilePath
// If Debug is on, dump out Page Info, Action_Params and Variables
Local:'VarDumpPage' = string;
#VarDumpPage += '<p class="debug"><font color="green"><strong>PAGE INFO</strong></fo... | Lasso | 3 | fourplusone/SubEthaEdit | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/site/libs/vardumpalpha.lasso | [
"MIT"
] |
//*****************************************************************************
// (c) Copyright 2009 - 2011 Xilinx, Inc. All rights reserved.
//
// This file contains confidential and proprietary information
// of Xilinx, Inc. and is protected under U.S. and
// international copyright and other intellectual property
/... | Verilog | 4 | tramblei/vivaldo | src/vivaldo_fresh_eth_xadc_fft_dma_corr.srcs/sources_1/bd/design_1/ip/design_1_mig_7series_0_0/design_1_mig_7series_0_0.veo | [
"MIT"
] |
div.svelte-xyz{color:red} | CSS | 0 | Theo-Steiner/svelte | test/css/samples/basic/expected.css | [
"MIT"
] |
#![feature(rustc_attrs)]
#[rustc_specialization_trait]
pub trait SpecTrait {
fn method(&self);
}
| Rust | 2 | Eric-Arellano/rust | src/test/ui/specialization/min_specialization/auxiliary/specialization-trait.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
' ********** Copyright 2017 Roku, Inc. All Rights Reserved. **********
function Main()
screen = createObject("roSGScreen")
m.port = createObject("roMessagePort")
screen.setMessagePort(m.port)
m.scene = screen.createScene("MainScene")
screen.show()
while(true)
msg = wait(0, m.port)
... | Brightscript | 4 | khangh/samples | advertising/rsgupl/source/main.brs | [
"MIT"
] |
<?LassoScript
Variable: 'ScreenText' = 'Hello World';
$ScreenText;
?>
| Lasso | 0 | Gabrielarodrigues10/ga | l/LassoScript.lasso | [
"MIT"
] |
<table class="ui celled striped table">
<thead>
<tr>
<th>Name</th>
<th>Cover</th>
<th></th>
</tr>
</thead>
<tbody>
<%= for metacast <- @metacasts do %>
<tr>
<td><%= metacast.name %></td>
<td class="center aligned">
<h2 class="ui image header">
<img sr... | HTML+EEX | 3 | gustavoarmoa/changelog.com | lib/changelog_web/templates/admin/metacast/_table.html.eex | [
"MIT"
] |
T StringLength("cat") == 3
T ToString(a + b) == "a + b"
T StringJoin("cat","dog") == "catdog"
T StringJoin(["cat","dog"]) == "catdog"
T StringJoin(Characters("zebra")) == "zebra"
T ToUpperCase("cat") == "CAT"
T ToLowerCase("CAT") == "cat"
T UpperCaseQ("CAT")
T ! UpperCaseQ("Cat")
T LowerCaseQ("cat")
T ! LowerCaseQ("C... | Objective-J | 4 | UnofficialJuliaMirrorSnapshots/Symata.jl-a906b1d5-d016-55c4-aab3-8a20cba0db2a | symata_test/string_test.sj | [
"MIT"
] |
begin
pushfirst!(LOAD_PATH, "@stdlib")
import Pkg
popfirst!(LOAD_PATH)
# We need to Pkg.instantiate the package environment that this notebook worker process will launch in
local my_dir = @__DIR__
local pluto_dir = joinpath(my_dir, "..", "..")
local runner_env_dir = mkpath(joinpath(Pkg.envdir(Pkg.depots()[1]), "__plu... | Julia | 5 | Mechachleopteryx/Pluto.jl | src/runner/Loader.jl | [
"MIT"
] |
"""
Extended Euclidean Algorithm.
Finds 2 numbers a and b such that it satisfies
the equation am + bn = gcd(m, n) (a.k.a Bezout's Identity)
https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm
"""
# @Author: S. Sharma <silentcat>
# @Date: 2019-02-25T12:08:53-06:00
# @Email: silentcat@protonmail.com
# @Last ... | Python | 5 | NavpreetDevpuri/Python | maths/extended_euclidean_algorithm.py | [
"MIT"
] |
new class CombSort {
new method __init__(shrink = None) {
if shrink is None {
new float tmp;
tmp = sortingVisualizer.getUserInput(
"Insert shrink factor:",
"1.3",
["1.2", "1.5", "2.0"],
float
);
... | Opal | 4 | thatsOven/sorting-visualizer | sorts/CombSort.opal | [
"MIT"
] |
{
name: 'npm',
publishConfig: {
'proprietary-attribs': false,
},
description: 'A package manager for node',
keywords: [
'package manager',
'modules',
'install',
'package.json',
],
version: '1.1.22',
preferGlobal: true,
config: {
publishtest: false,
},
homepage: 'http://npmj... | JSON5 | 3 | leandrochomp/react-skeleton | node_modules/babelify/node_modules/babel-core/node_modules/json5/test/parse-cases/misc/npm-package.json5 | [
"MIT"
] |
CREATE TABLE `tb_caahynuejc` (
`col_ceosnfriqs` int(11) DEFAULT NULL,
`col_aklqoixrun` year(4) DEFAULT NULL,
`col_noipbutgvd` char(1) CHARACTER SET utf8mb4 DEFAULT NULL,
`col_eyefseknmn` time,
`col_tlcpasbobp` bigint(20) unsigned zerofill DEFAULT NULL,
UNIQUE KEY `col_ceosnfriqs` (`col_ceosnfriqs`),
UNIQU... | SQL | 2 | yuanweikang2020/canal | parse/src/test/resources/ddl/alter/mysql_23.sql | [
"Apache-2.0"
] |
(*
Copyright 2017 Sidney Amani
Copyright 2017 Maksym Bortin
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 a... | Isabelle | 5 | pirapira/eth-isabelle | Hoare/EvmFacts.thy | [
"Apache-2.0"
] |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
.blm {
font-size: 20px;
height: 80px;
padding: 20px;
text-align: center;
}
@media only screen and (max-width: 996px) {
... | CSS | 3 | ozairi121/draft-js | website/src/pages/styles.module.css | [
"MIT"
] |
doctype html
html
head
title My Blog
body
h1= title
time= date
div!= contents
| Jade | 3 | contentascode/metalsmith | examples/wintersmith/templates/post.jade | [
"MIT",
"Unlicense"
] |
// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
// You may push code into the target .java compilation unit if you wish to edit any member(s).
package com.journaldev.web;
import com.journaldev.web.ApplicationBean;
import javax.annotation.PostConstruct;
import javax.el.ELContext;
import javax.el... | AspectJ | 3 | ghiloufibelgacem/jornaldev | PrimeFaces/Primefaces-SpringRoo-Hibernate-Sample/src/main/java/com/journaldev/web/ApplicationBean_Roo_ApplicationBean.aj | [
"MIT"
] |
import {
FormGroup,
ControlLabel,
HelpBlock
} from '@freecodecamp/react-bootstrap';
import React from 'react';
import { ButtonSpacer } from '../helpers';
import TB from '../helpers/toggle-button';
import './toggle-setting.css';
type ToggleSettingProps = {
action: string;
explain?: string;
flag: boolean;
... | TypeScript | 4 | fcastillo-serempre/freeCodeCamp | client/src/components/settings/toggle-setting.tsx | [
"BSD-3-Clause"
] |
////////////////////////////////////////////////////////////////////////////////
// AssemblyInfo.prg
using System.Reflection
using System.Runtime.InteropServices
using System.Security
[assembly: AssemblyTitleAttribute( "VO-Compatible Internet Classes Library" )]
[assembly: AssemblyDescriptionAttribute( "VO-Compatibl... | xBase | 3 | orangesocks/XSharpPublic | Runtime/VOSDK/Source/VOSDK/Internet_SDK/Properties/AssemblyInfo.prg | [
"Apache-2.0"
] |
#!/bin/csh
#This script can be used to generate a web page to compare histograms from
#two input root files produced using the EDAnalyzers in RecoEgamma/Examples,
#by running one of:
#
#
#
# "Validation/RecoEgamma/test/PhotonValidator_cfg.py
#
# The default list of histograms (configurable) is based on version V... | Tcsh | 4 | ckamtsikis/cmssw | Validation/RecoEgamma/test/validationPreProd.csh | [
"Apache-2.0"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"
}), 'GamepadSharp'); | JavaScript | 4 | good-gym/material-ui | packages/material-ui-icons/lib/esm/GamepadSharp.js | [
"MIT"
] |
;;
;
; Name: stager_sock_find
; Qualities: Nothing Special
; Version: $Revision: 1630 $
; License:
;
; This file is part of the Metasploit Exploit Framework
; and is subject to the same licenses and copyrights as
; the rest of this package.
;
; Description:
;
; Implementat... | Assembly | 3 | OsmanDere/metasploit-framework | external/source/shellcode/bsd/ia32/stager_sock_find.asm | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
query GetPendingInvites($teamID: ID!) {
team(teamID: $teamID) {
id
teamInvitations {
inviteeRole
inviteeEmail
id
}
}
}
| GraphQL | 3 | miily8310s/hoppscotch | packages/hoppscotch-app/helpers/backend/gql/queries/pendingInvites.graphql | [
"MIT"
] |
# DO NOT EDIT THIS FILE. This file will be overwritten when re-running go-raml.
@0x9a9eadaa8c275fee;
struct NumberFormat {
d @0 :Float64;
f @1 :Float64;
i @2 :Int16;
i16 @3 :Int16;
i32 @4 :Int32;
i64 @5 :Int64;
i8 @6 :Int8;
l @7 :Int32;
num @8 :Float64;
}
| Cap'n Proto | 3 | mrpotes/go-raml | codegen/python/fixtures/python_capnp/NumberFormat.capnp | [
"BSD-2-Clause"
] |
500 0.1 sine
0.1 1 sine pan
| SourcePawn | 0 | aleatoricforest/Sporth | examples/pan.sp | [
"MIT"
] |
class Bar<K> {
} | Java | 0 | Mu-L/kotlin | jps-plugin/testData/incremental/withJava/javaUsedInKotlin/rawErrorTypeDuringSerialization/Bar.java | [
"ECL-2.0",
"Apache-2.0"
] |
class A
{
Int testA() { return x.a }
This x() { return this }
Int a() { return 'A' }
virtual This o() { return this }
This n() { return this }
}
class B : A
{
Int testB1() { return x.b }
Int testB2() { return x.y.b }
Int testB3() { return o.b }
This y() { return this }
Int b() { return 'B' }
over... | Fantom | 3 | fanx-dev/fanx | compiler/testCompilerx/res/inherit/testThisReturn.fan | [
"AFL-3.0"
] |
lms_ctr_app.elf: file format elf32-littlenios2
lms_ctr_app.elf
architecture: nios2:r1, flags 0x00000112:
EXEC_P, HAS_SYMS, D_PAGED
start address 0x00008020
Program Header:
LOAD off 0x00001000 vaddr 0x00008000 paddr 0x00008000 align 2**12
filesz 0x00000020 memsz 0x00000020 flags r-x
LOAD off ... | ObjDump | 2 | wangqiang1588/LimeSDR-USB_GW | software/lms_ctr_app/lms_ctr_app.objdump | [
"Apache-2.0"
] |
'reach 0.1';
const ROWS = 11;
const COLS = 11;
const CELLS = ROWS * COLS;
const Board = Array(Bool, CELLS);
//the state consists of the index of the cat, and the array of blockers
const State = Object({catIndex: UInt,
blockers: Board });
const boardEmpty = Array.replicate(CELLS, false);
const... | RenderScript | 4 | chikeabuah/reach-lang | hs/t/n/pr-e017b.rsh | [
"Apache-2.0"
] |
var webpack = require("../../../../");
/** @type {import("../../../../").Configuration} */
module.exports = {
plugins: [
new webpack.ContextReplacementPlugin(
/context-replacement.a$/,
"new-context",
true,
/^replaced$/
)
]
};
| JavaScript | 3 | 1shenxi/webpack | test/configCases/context-replacement/a/webpack.config.js | [
"MIT"
] |
#version 330 core
layout (location = 0) in vec2 aPos;
layout (location = 1) in vec4 aColor;
flat out vec4 color;
void main()
{
color = aColor;
gl_Position = vec4(aPos.x, aPos.y, 0.0, 1.0);
}
| GLSL | 4 | tantei3/alacritty | alacritty/res/rect.v.glsl | [
"Apache-2.0"
] |
package com.bumptech.glide.testutil;
import static com.google.common.truth.Fact.simpleFact;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import androidx.annotation.DrawableRes;
import androidx.annotation.Non... | Java | 4 | hiddow/glide | testutil/src/main/java/com/bumptech/glide/testutil/BitmapSubject.java | [
"Apache-2.0"
] |
INSERT INTO person VALUES('bob'); | SQL | 0 | nicchagil/spring-framework | spring-test/src/test/resources/org/springframework/test/jdbc/data.sql | [
"Apache-2.0"
] |
HEADERS += \
$$PWD/recorder.h
SOURCES += \
$$PWD/recorder.cpp
| QMake | 2 | jiadxin/QtScrcpy | QtScrcpy/device/recorder/recorder.pri | [
"Apache-2.0"
] |
--TEST--
func_get_arg() tests
--FILE--
<?php
function test1() {
try {
var_dump(func_get_arg(-10));
} catch (\ValueError $e) {
echo $e->getMessage() . \PHP_EOL;
}
try {
var_dump(func_get_arg(0));
} catch (\Error $e) {
echo $e->getMessage() . \PHP_EOL;
}
try {... | PHP | 3 | NathanFreeman/php-src | Zend/tests/002.phpt | [
"PHP-3.01"
] |
vec2 complex_mult(vec2 z, vec2 w){
return vec2(z.x * w.x - z.y * w.y, z.x * w.y + z.y * w.x);
}
vec2 complex_div(vec2 z, vec2 w){
return complex_mult(z, vec2(w.x, -w.y)) / (w.x * w.x + w.y * w.y);
}
vec2 complex_pow(vec2 z, int n){
vec2 result = vec2(1.0, 0.0);
for(int i = 0; i < n; i++){
resu... | GLSL | 4 | OrKedar/geo-manimgl-app | manimlib/shaders/inserts/complex_functions.glsl | [
"MIT"
] |
// compile-flags:--test
// edition:2018
/// ```rust
/// fn main() {
/// let _ = async { };
/// }
/// ```
fn main() {
let _ = async { };
}
| Rust | 4 | Eric-Arellano/rust | src/test/rustdoc/edition-flag.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
#!/usr/bin/env sh
execute_backup_job() {
BACKUP_ARG_PATH="${1:-}"
BACKUP_ARG_CONFIG="${BACKUP_ARG_CONFIG:-}"
BACKUP_ARG_EXCLUDE_REPOS="${BACKUP_ARG_EXCLUDE_REPOS:-}"
cd "/app/gogs" || exit 1
BACKUP_ARGS="--target=${BACKUP_ARG_PATH}"
if [ -n "${BACKUP_ARG_CONFIG}" ]; then
BACKUP_ARGS="${BACKUP_ARGS} --config=... | Shell | 3 | crazbot/gogs | docker/runtime/backup-job.sh | [
"MIT"
] |
# Copyright (c) 2021 vesoft inc. All rights reserved.
#
# This source code is licensed under Apache 2.0 License.
@skip
# unimplement
Feature: Path1 - Nodes of a path
Background:
Given a graph with space named "nba"
Scenario: [1] `nodes()` on null path
When executing query:
"""
WITH null AS a
... | Cucumber | 2 | liuqian1990/nebula | tests/tck/openCypher/features/expressions/path/Path1.feature | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.