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 |
|---|---|---|---|---|---|
{% include scripts/index.js %}
| Liquid | 0 | JoostKersjes/tools | website/src/_includes/scripts/index.liquid | [
"MIT"
] |
@program con-laston.muf
1 1000 d
i
( con-laston.muf by Natasha@HLM
Sets users' @/laston and @/lastoff props appropriately, for use with Natasha's cmd-laston.
Copyright 2002 Natasha Snunkmeox. Copyright 2002 Here Lie Monsters.
"@view $box/mit" for license information.
)
: main ( str -- )
systime ( str int )... | MUF | 4 | natmeox/hlm-suite | con-laston.muf | [
"MIT"
] |
"""Constants for the Coronavirus integration."""
from coronavirus import DEFAULT_SOURCE
DOMAIN = "coronavirus"
OPTION_WORLDWIDE = "__worldwide"
ATTRIBUTION = f"Data provided by {DEFAULT_SOURCE.NAME}"
| Python | 3 | domwillcode/home-assistant | homeassistant/components/coronavirus/const.py | [
"Apache-2.0"
] |
- // MIR for `test` before ConstProp
+ // MIR for `test` after ConstProp
fn test(_1: i32) -> i32 {
debug x => _1; // in scope 0 at $DIR/mult_by_zero.rs:4:9: 4:10
let mut _0: i32; // return place in scope 0 at $DIR/mult_by_zero.rs:4:21: 4:24
let mut _2: i3... | Diff | 5 | Eric-Arellano/rust | src/test/mir-opt/const_prop/mult_by_zero.test.ConstProp.diff | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
(*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
type estimates = {
estimated_time_to_recheck: float;
estimated_time_to_restart: float;
estimated_time_to_init: float;
estim... | OCaml | 4 | Hans-Halverson/flow | src/services/inference/recheck_stats.mli | [
"MIT"
] |
interface Display {
String asText()
}
trait Entity {
Integer id
}
class Product implements Entity, Display {
public String name
public Boolean available
public Float price
private String key
protected String data
/**
* Creates a new product instance.
* @param id Product ID.... | Groovy | 5 | JesseVermeulen123/bat | tests/syntax-tests/source/Groovy/test.groovy | [
"Apache-2.0",
"MIT"
] |
<p><em>Inline formulas</em> are surrounded by single dollar signs. For example, <code>$f(x) = ax^2 + bx + c$</code> renders as <span class="MathJax_Preview" style="color: inherit;"></span><span class="MathJax" id="MathJax-Element-2-Frame" tabindex="0" style="position: relative;" data-mathml="<math xmlns="http://ww... | HTML | 2 | asahiocean/joplin | packages/app-cli/tests/html_to_md/mathjax_inline.html | [
"MIT"
] |
---
layout: post
title: Arithmetic Overflows
date: 2017-03-20
author: Ranjit Jhala
published: true
comments: true
tags: basic
demo: overflow.hs
---
Computers are great at crunching numbers.
However, if programmers aren't careful, their
machines can end up biting off more than
they can chew: simple arithmetic operatio... | Literate Haskell | 5 | curiousleo/liquidhaskell | docs/blog/2017-03-20-arithmetic-overflows.lhs | [
"MIT",
"BSD-3-Clause"
] |
{:objects
{:person
{:fields {:name {:type String}
:age {:type Int}}}
:photo
{:fields {:imageURL {:type String}
:title {:type String}
:height {:type Int}
:width {:type Int}}}}
:unions
{:search_result
{:members [:person :photo]}}
:queries
{:search
{:type (... | edn | 3 | hagenek/lacinia | docs/_examples/union-definition.edn | [
"Apache-2.0"
] |
class D[T]
class C[F[_]](val i: Int)
object C {
def apply[F[_]](implicit cf: C[F]): Int = cf.i
implicit def c0[F[_]]: C[F] = new C[F](0)
implicit def c1: C[D] = new C[D](1)
}
object Test extends App {
assert(C[D] == 1) // Works in Dotty ...
}
| Scala | 4 | jamesanto/scala | test/files/run/t10545.scala | [
"Apache-2.0"
] |
class US3HelloWorld extends GameInfo;
event InitGame( string Options, out string Error )
{
`log( "Hello, world!" );
}
defaultproperties
{
}
| UnrealScript | 3 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/UnrealScript/US3HelloWorld.uc | [
"MIT"
] |
module Views.SilenceForm.Types exposing
( Model
, SilenceForm
, SilenceFormFieldMsg(..)
, SilenceFormMsg(..)
, fromDateTimePicker
, fromMatchersAndCommentAndTime
, fromSilence
, initSilenceForm
, parseEndsAt
, toSilence
, validateForm
, validateMatchers
)
import Brow... | Elm | 5 | creganFL/alertmanager | ui/app/src/Views/SilenceForm/Types.elm | [
"ECL-2.0",
"Apache-2.0"
] |
#pragma once
#include <functional>
#include <memory>
#include <vector>
#include "envoy/common/pure.h"
#include "envoy/stats/histogram.h"
#include "envoy/stats/scope.h"
#include "envoy/stats/stats.h"
#include "envoy/stats/stats_matcher.h"
#include "envoy/stats/tag_producer.h"
namespace Envoy {
namespace Event {
clas... | C | 5 | giantcroc/envoy | envoy/stats/store.h | [
"Apache-2.0"
] |
[3;38;2;102;217;239mprovider[0m[38;2;248;248;242m [0m[38;2;230;219;116m"[0m[38;2;230;219;116mgithub[0m[38;2;230;219;116m"[0m[38;2;248;248;242m [0m[38;2;248;248;242m{[0m
[38;2;248;248;242m [0m[38;2;255;255;255morganization[0m[38;2;248;248;242m [0m[38;2;249;38;114m= [0m[38;2;102;217;239mvar[0m[3... | HCL | 3 | JesseVermeulen123/bat | tests/syntax-tests/highlighted/Terraform/main.tf | [
"Apache-2.0",
"MIT"
] |
// 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.
import 'dart:convert' show jsonDecode;
import 'package:flutter/services.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
group('Te... | Dart | 4 | Mayb3Nots/flutter | packages/flutter/test/services/text_editing_delta_test.dart | [
"BSD-3-Clause"
] |
# Copyright 2017-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# Auto-Generated by cargo-ebuild 0.1.4
EAPI=6
CRATES="
backtrace-0.3.0
backtrace-sys-0.1.5
cfg-if-0.1.0
cross-0.1.14
dbghelp-sys-0.2.0
error-chain-0.7.2
gcc-0.3.45
kernel32-sys-0.2.2
lazy_static-0.2.8
libc-0.2.... | Gentoo Ebuild | 3 | gentoo/gentoo-rust | dev-rust/cross/cross-0.1.14.ebuild | [
"BSD-3-Clause"
] |
{% from "issue-54765-map.jinja" import defaults with context %}
issue-54765:
file.managed:
- name: {{ pillar['file_path'] }}
- contents: {{ defaults['foo'] }}
| SaltStack | 3 | Noah-Huppert/salt | tests/integration/files/file/base/issue-54765.sls | [
"Apache-2.0"
] |
POM_ARTIFACT_ID=leakcanary-android-utils
POM_NAME=LeakCanary Android Utils
POM_PACKAGING=aar
| INI | 1 | slavonnet/leakcanary | leakcanary-android-utils/gradle.properties | [
"Apache-2.0"
] |
#!/bin/sh
gcc ntreg.c addmsf.c --static -m32 -o regeditor
| Shell | 2 | OsmanDere/metasploit-framework | external/source/pxesploit/regeditor/compile.sh | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
package com.baeldung.dddmodules.ordercontext.model;
import java.util.List;
public class CustomerOrder {
private int orderId;
private String paymentMethod;
private String address;
private List<OrderItem> orderItems;
public CustomerOrder() {
}
public float calculateTotalPrice() {
... | Java | 4 | DBatOWL/tutorials | ddd-modules/ordercontext/src/main/java/com/baeldung/dddmodules/ordercontext/model/CustomerOrder.java | [
"MIT"
] |
/* Poisson "hurdle" model (also with upper truncation)
*
* Note: for simplicity I assume that there is only one way to obtain
* a zero, as opposed to some zero-inflated models where there are
* multiple processes that lead to a zero. So in this example, y is
* zero with probability theta and y is modeled as a t... | Stan | 5 | tonyctan/BDA_R_demos | demos_rstan/ppc/poisson-hurdle.stan | [
"BSD-3-Clause"
] |
infix 6 ƛ`_⇒_
ƛ`_⇒_ : Term → Term → Term
ƛ`_⇒_ (` x) N = ƛ x ⇒ N
ƛ`_⇒_ _ _ = ⊥-elim impossible
where postulate impossible : ⊥
plusᶜ′ : Term
plusᶜ′ = ƛ` m ⇒ ƛ` n ⇒ ƛ` s ⇒ ƛ` z ⇒ (m · s · (n · s · z))
where
m = ` "m"
n = ` "n"
s = ` "s"
z = ` "z"
_ : plusᶜ ≡ plusᶜ′
_ = refl
| Literate Agda | 4 | manikdv/plfa.github.io | extra/extra/LambdaSyntax.lagda | [
"CC-BY-4.0"
] |
require("./module");
require("./reexport");
import { value } from "./reexport2";
const { value: value2, own } = require("./reexport2");
it("should not crash", () => {
expect(value).toBe(42);
expect(value2).toBe(42);
expect(own).toBe(42);
});
| JavaScript | 3 | fourstash/webpack | test/cases/side-effects/issue-12071/index.js | [
"MIT"
] |
macroScript openScriptFile
icon:#("~set_and_get_paths",3)
category:"Tools"
toolTip:"Open Script File..."
(
f=getOpenFileName caption:"Choose Editor File" types:"Script files (*.ms, *.mcr)|*.ms;*.mcr|All files (*.*)|*.*"
if f!=undefined then edit f
)
| MAXScript | 4 | 89096000/MaxScript | Workflow/set_and_get_paths/MacroScripts/~openScriptFile.mcr | [
"MIT"
] |
$ORIGIN ens.domains.
$TTL 1h
ens.domains. IN SOA 397437541a757880eCC5d26606624F4FC8958Cb5.ns1.ens.domains. hostmaster.ens.domains. (1481214534 1h 1h 1h 1h)
@ IN A 217.70.184.38
docs IN CNAME readthedocs.io.
ns1 IN A 13.69.156.224
*.ns1 ... | DNS Zone | 2 | mennat1/simple-yield-farm-truffle-version | node_modules/@ethereum-waffle/ens/node_modules/@ensdomains/ens/ens.domains.zone | [
"MIT"
] |
#tag Module
Protected Module GameKit
#tag DelegateDeclaration, Flags = &h0
Delegate Sub GKChallengeComposeCompletionBlock(viewController as ptr, didIssueChallenge as Boolean, sentPlayerIDsArray as ptr)
#tag EndDelegateDeclaration
#tag DelegateDeclaration, Flags = &h0
Delegate Sub GKMatchCompletionHandler(match ... | Xojo | 3 | kingj5/iOSKit | Modules/GameKitFolder/GameKit.xojo_code | [
"MIT"
] |
fn Foo<T>()
where
T: Bar,
{
}
| Rust | 3 | mbc-git/rust | src/tools/rustfmt/tests/target/issue-3253/paths/foo_bar.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
let str = "Hello, world"
println(str)
| Inform 7 | 2 | lfkeitel/nitrogen | src/moduleutils/testdata/cache1.ni | [
"BSD-3-Clause"
] |
Add fast path for ``0 <= k <= n <= 67`` for :func:`math.comb`.
| reStructuredText | 4 | juliangilbey/cpython | Misc/NEWS.d/next/Library/2021-12-27-15-52-28.bpo-37295.s3LPo0.rst | [
"0BSD"
] |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable disable
using System;
using Microsoft.VisualStudio.Shell.Interop;
using Microsoft.VisualStudio.LanguageS... | C# | 4 | ffMathy/roslyn | src/Tools/ExternalAccess/FSharp/Internal/VisualStudio/FSharpProjectExternalErrorReporterFactory.cs | [
"MIT"
] |
NAME = $(GLEW_NAME)
CC = cc
LD = cc
LDFLAGS.EXTRA = -L/usr/X11R6/lib
LDFLAGS.GL = -lGL -lX11
LDFLAGS.STATIC = -Wl,-Bstatic
LDFLAGS.DYNAMIC = -Wl,-Bdynamic
NAME = GLEW
WARN = -Wall -W
POPT = -O2
CFLAGS.EXTRA += -fPIC
BIN.SUFFIX =
LIB.SONAME = lib$(NAME).so.$(SO_MAJOR)
LIB.DEVLNK = lib$(NAME).so
LIB.SHARED = lib... | Gnuplot | 3 | aykamko/glew | config/Makefile.gnu | [
"Intel",
"MIT"
] |
/* Copyright 2020 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/python/framework/experimental/nn_ops.cc | [
"Apache-2.0"
] |
\\ Copyright (c) 2019 Bruno Deferrari. All rights reserved.
\\ BSD 3-Clause License: http://opensource.org/licenses/BSD-3-Clause
\\ Documentation: docs/extensions/programmable-pattern-matching.md
(package shen.x.programmable-pattern-matching []
(define apply-pattern-handlers
[] _ _ _ _ -> (fail)
[Handler | _] S... | Shen | 5 | vishalbelsare/shen-sources | extensions/programmable-pattern-matching.shen | [
"BSD-3-Clause"
] |
require(httr)
cookies = c(
'GeoIP' = 'US:Albuquerque:35.1241:-106.7675:v4',
'uls-previous-languages' = '%5B%22en%22%5D',
'mediaWiki.user.sessionId' = 'VaHaeVW3m0ymvx9kacwshZIDkv8zgF9y',
'centralnotice_buckets_by_campaign' = '%7B%22C14_enUS_dsk_lw_FR%22%3A%7B%22val%22%3A%220%22%2C%22start%22%3A1412172000%2C%22e... | R | 4 | kado0413/curlconverter | fixtures/r/get_with_browser_headers.r | [
"MIT"
] |
<!doctype html><HTML></HTML>
| HTML | 1 | mikoscz/prettier | tests/vue/html-vue/upper-case-html-tag.html | [
"MIT"
] |
/*
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
%{ /* -*- C++ -*- */
# include <cerrno>
# include <climits>
# include <cstdlib>
# include <cstring>
# include <string>
# include "pio_assembler.h"
# include "parser.hpp"
#ifdef _MSC_VER
#pragma warning(disable : 4996)... | LLVM | 4 | sudobash1/pico-sdk | tools/pioasm/lexer.ll | [
"BSD-3-Clause"
] |
' Highly unsafe threads!!!!! Use at your own considerable risk!!!!!
'
' Monkey is not thread safe - nothing is safe to call.
'
' C++ threads must not create arrays or objects, or modify elements/variables/fields etc that contain arrays or objects. Strings might be OK.
'
' This is undocced, as it's mainly intended for ... | Monkey | 3 | Regal-Internet-Brothers/webcc-monkey | webcc.data/modules/brl/thread.monkey | [
"Zlib"
] |
require_relative 'module'
require_relative 'storage'
require_relative 'encryption'
module Match
# These functions should only be used while in (UI.) interactive mode
class ChangePassword
def self.update(params: nil)
if params[:storage_mode] != "git"
# Only git supports changing the password
... | Ruby | 4 | flufff42/fastlane | match/lib/match/change_password.rb | [
"MIT"
] |
exec("swigtest.start", -1);
checkequal(ref_int(3), 3, "ref_int() test fails.");
checkequal(ref_uint(uint32(3)), 3, "ref_uint() test fails.");
checkequal(ref_short(3), 3, "ref_short() test fails.");
checkequal(ref_ushort(uint16(3)), 3, "ref_ushort() test fails.");
checkequal(ref_long(3), 3, "ref_long() test fails.");... | Scilab | 3 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/primitive_ref_runme.sci | [
"BSD-3-Clause"
] |
package jadx.tests.integration.others;
import org.junit.jupiter.api.Test;
import jadx.tests.api.IntegrationTest;
import static jadx.tests.api.utils.assertj.JadxAssertions.assertThat;
public class TestFieldInitOrderStatic extends IntegrationTest {
@SuppressWarnings("ConstantName")
public static class TestCls {
... | Java | 4 | Dev-kishan1999/jadx | jadx-core/src/test/java/jadx/tests/integration/others/TestFieldInitOrderStatic.java | [
"Apache-2.0"
] |
#include "script_component.hpp"
/*
Name: TFAR_fnc_getLrSettings
Author: NKey, Garth de Wet (L-H)
Returns the current settings for the passed radio.
Arguments:
0: Radio object <OBJECT>
1: Radio ID <STRING>
Return Value:
settings <ARRAY>
Example:
(call TFAR_fnc_activeLrRadio) call TFAR_... | SQF | 4 | MrDj200/task-force-arma-3-radio | addons/core/functions/fnc_getLrSettings.sqf | [
"RSA-MD"
] |
<html>
<body>
<script src="https://unpkg.com/systemjs@0.19.41/dist/system.js"></script>
<div id="container"></div>
<script>
System.config({
paths: {
react: '../../../build/node_modules/react/umd/react.production.min.js',
'react-dom': '../../../build/node_modules/react-dom... | HTML | 3 | vegYY/react | fixtures/packaging/systemjs/prod.html | [
"MIT"
] |
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" encoding="iso8859-1"/>
<xsl:template match="TEST">
<body>
<script>
debugger;
</script>
</body>
</xsl:template>
</xsl:styl... | XSLT | 1 | zealoussnow/chromium | third_party/blink/web_tests/inspector-protocol/debugger/resources/xslt.xslt | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
;;; checkers/spell/doctor.el -*- lexical-binding: t; -*-
(when (or (not (featurep! +flyspell))
(featurep! +aspell))
(unless (executable-find "aspell")
(warn! "Couldn't find aspell executable; spell checker will not work")))
(when (featurep! +hunspell)
(unless (executable-find "hunspell")
(warn! ... | Emacs Lisp | 4 | leezu/doom-emacs | modules/checkers/spell/doctor.el | [
"MIT"
] |
< M A T L A B (R) >
Copyright 1984-2010 The MathWorks, Inc.
Version 7.11.0.584 (R2010b) 64-bit (glnxa64)
August 16, 2010
To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.m... | Matlab | 2 | githubkusi/ToolboxToolbox | external/jsonlab-1.2/jsonlab/examples/jsonlab_selftest.matlab | [
"Unlicense"
] |
module org-openroadm-ethernet-interfaces {
namespace "http://org/openroadm/ethernet-interfaces";
prefix org-openroadm-eth-interfaces;
import org-openroadm-device {
prefix org-openroadm-device;
}
import org-openroadm-interfaces {
prefix openROADM-if;
}
organization "Open ROADM MSA";
contact
... | YANG | 4 | meodaiduoi/onos | models/openroadm/src/main/yang/org-openroadm-ethernet-interfaces@2016-10-14.yang | [
"Apache-2.0"
] |
def _bencode_torepr:
if .type == "string" then .value | tovalue
elif .type == "integer" then .value | tovalue
elif .type == "list" then .values | map(_bencode_torepr)
elif .type == "dictionary" then
( .pairs
| map({key: (.key | _bencode_torepr), value: (.value | _bencode_torepr)})
| from_entries
... | JSONiq | 3 | bbhunter/fq | format/bencode/bencode.jq | [
"MIT"
] |
=pod
=head1 NAME
EVP_KEYEXCH-DH
- DH Key Exchange algorithm support
=head1 DESCRIPTION
Key exchange support for the B<DH> key type.
=head2 DH key exchange parameters
=over 4
=item "pad" (B<OSSL_EXCHANGE_PARAM_PAD>) <unsigned integer>
See L<provider-keyexch(7)/Common Key Exchange parameters>.
=item "kdf-ukm" (B... | Pod | 5 | pmesnier/openssl | doc/man7/EVP_KEYEXCH-DH.pod | [
"Apache-2.0"
] |
rm -f x/shouldfail
log=$PWD/$1.log
expect_fail() {
local rv=$1
shift
if ("$@") >>$log 2>&1; then
cat "$log" >&2
echo "unexpected success:" "$@" >&2
return $rv
else
return 0
fi
}
# These should all fail because there is no matching .do file.
# In previous versions of redo, it would accidentally try to us... | Stata | 4 | BlameJohnny/redo | t/122-defaults-parent/all.do | [
"Apache-2.0"
] |
; Handle legacy Yaki plugin tags
(import
[config [*scaled-media-base*]]
[models [search]]
[logging [getLogger]]
[lxml.etree [fromstring tostring]]
[messages [inline-message inline-table]]
[utils [compute-hmac memoize get-image-size]])
(setv log (getLogger))
(defn plugin-tagge... | Hy | 4 | CyberFlameGO/sushy | sushy/plugins.hy | [
"MIT"
] |
//tab_size=4
// Copyright 2021 nickmqb
// SPDX-License-Identifier: Apache-2.0
// Syntax:
// "x.png": Load texture
// "a.png|b.png": Overlay b on top of a
// "a.png,FF80FF": Multiply all pixels with specified hex color
Ids {
:bedrock = "bedrock.png"
:birch_leaves = "birch_leaves.png,ABCC79"
:birch_log = "birch_log.p... | mupad | 5 | nickmqb/fpga_craft | block_info_gen/block_info_generator.mu | [
"Apache-2.0"
] |
package com.baeldung.jna;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.BeforeClass;
import org.junit.jupiter.api.Test;
import com.sun.jna.Native;
import com.sun.jna.Platform;
import com.sun.jna.Pointer;
class StdCUnitTest {
@BeforeClass
public static void setupProtectedMode() {
... | Java | 4 | DBatOWL/tutorials | java-native/src/test/java/com/baeldung/jna/StdCUnitTest.java | [
"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/model/IdeaCeylonProjects.ceylon | [
"Apache-2.0"
] |
// Copyright (c) 2020 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_COMMON_GIN_CONVERTERS_TIME_CONVERTER_H_
#define SHELL_COMMON_GIN_CONVERTERS_TIME_CONVERTER_H_
#include "gin/converter.h"
namespace base {
class Time;
}
namespace gin {... | C | 3 | TarunavBA/electron | shell/common/gin_converters/time_converter.h | [
"MIT"
] |
//===--- Error.h - Swift Concurrency error helpers --------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | C | 4 | gandhi56/swift | stdlib/public/Concurrency/Error.h | [
"Apache-2.0"
] |
module example
import StdEnv
qsort :: [Int] -> [Int]
qsort [] = []
qsort [p:l] = (qsort [x \\ x<-l | x<p])
++[p]
++(qsort [x \\ x<-l | x>=p])
Start :: [Int]
Start = qsort [3,5,1,4,2]
| Clean | 3 | OfekShilon/compiler-explorer | examples/clean/qsort.icl | [
"BSD-2-Clause"
] |
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 8.00.0603 */
/* at Tue Jul 02 08:26:16 2019
*/
/* Compiler settings for rpc.idl:
Oicf, W1, Zp8, env=Win64 (32b run), target_arch=AMD64 8.00.0603
protocol : dce , ms_ext, c_ext, ... | C | 3 | OsmanDere/metasploit-framework | external/source/exploits/CVE-2019-0841/rpc_h.h | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
/* ******************************************************************************
## HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®. All rights reserved.
******************************************************************************/
IMPORT $ AS Certification;
out_file := DATASET(Certification.Setup.Sprayfi... | ECL | 3 | miguelvazq/HPCC-Platform | initfiles/examples/_Certification/spray_verification.ecl | [
"Apache-2.0"
] |
From 97c473937382a5b5858d9cce3c947855d23b2dc5 Mon Sep 17 00:00:00 2001
From: bjorn3 <bjorn3@users.noreply.github.com>
Date: Thu, 18 Nov 2021 19:28:40 +0100
Subject: [PATCH] Disable unsupported tests
---
crates/core_simd/src/math.rs | 6 ++++++
crates/core_simd/src/vector.rs | 2 ++
crates/core_simd/test... | Diff | 4 | david-perez/rust | compiler/rustc_codegen_cranelift/patches/0001-portable-simd-Disable-unsupported-tests.patch | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
<script>
console.log(1);
//# sourceURL=nicename.js
</script>
| HTML | 1 | NareshMurthy/playwright | test/assets/jscoverage/sourceurl.html | [
"Apache-2.0"
] |
export function checkIsNonemptyString() {}
| JavaScript | 0 | fourstash/webpack | test/configCases/side-effects/issue-13063/vendors/types.js | [
"MIT"
] |
<?php
@unlink(__FILE__);
// Validate if the request is from Softaculous
if($_REQUEST['pass'] != 'mv8gdj4ohqfxpu34yj5ursupfabcmvdm'){ // your password here
die("Unauthorized Access");
}
require('wp-blog-header.php');
require('wp-includes/pluggable.php');
$user_info = get_userdata(1);
// Automatic login //
$username =... | PHP | 3 | 5tr1x/SecLists | Web-Shells/WordPress/bypass-login.php | [
"MIT"
] |
SET optimize_read_in_order = 1;
SELECT CounterID FROM test.hits ORDER BY CounterID DESC LIMIT 50;
SELECT CounterID FROM test.hits ORDER BY CounterID LIMIT 50;
SELECT CounterID FROM test.hits ORDER BY CounterID, EventDate LIMIT 50;
SELECT EventDate FROM test.hits ORDER BY CounterID, EventDate LIMIT 50;
SELECT EventDate ... | SQL | 3 | pdv-ru/ClickHouse | tests/queries/1_stateful/00151_order_by_read_in_order.sql | [
"Apache-2.0"
] |
;;; tools/pass/autoload/pass.el -*- lexical-binding: t; -*-
(defun +pass--copy-username (entry)
(if-let* ((user (+pass-get-field entry +pass-user-fields)))
(progn (password-store-clear)
(message "Copied username to the kill ring.")
(kill-new user))
(error "Username not found.")))
... | Emacs Lisp | 5 | leezu/doom-emacs | modules/tools/pass/autoload/pass.el | [
"MIT"
] |
"""YoLink Lock."""
from __future__ import annotations
from typing import Any
from homeassistant.components.lock import LockEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from .con... | Python | 4 | mib1185/core | homeassistant/components/yolink/lock.py | [
"Apache-2.0"
] |
<a href="#">
{if $create}
{_"Create category"}
{else}
{_"Edit category"}
{/if}
</a> | Latte | 2 | timfel/netbeans | php/php.latte/test/unit/data/testfiles/indent/testIssue237326_01.latte | [
"Apache-2.0"
] |
01 COBOL-TEST-RECORD.
05 COBOL-TEST-USAGES.
10 COBOL-4-COMP PIC S9(4) COMP.
10 COBOL-8-COMP PIC S9(8) COMP.
10 COBOL-9-COMP PIC S9(9) COMP.
10 COBOL-4-COMP2 PIC S9(4) COMP-2.
10 COBOL-7-COMP2 PIC 9(7) COMP-2.
| COBOL | 3 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/COBOL/simple.cpy | [
"MIT"
] |
;-----------------------------------------------------------------------------;
; Author: Stephen Fewer (stephen_fewer[at]harmonysecurity[dot]com)
; Compatible: Windows 7, 2008, Vista, 2003, XP, 2000, NT4
; Version: 1.0 (24 July 2009)
; Size: 31 bytes
;-------------------------------------------------------------------... | Assembly | 3 | OsmanDere/metasploit-framework | external/source/shellcode/windows/x86/src/block/block_exitfunk.asm | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
# DO NOT EDIT THIS FILE. This file will be overwritten when re-running go-raml.
using import "Cat.capnp".Cat;
@0xdfb77c5498cdf75b;
struct Petshop {
cats @0 :List(Cat);
name @1 :Text;
}
| Cap'n Proto | 3 | mrpotes/go-raml | codegen/python/fixtures/python_capnp/Petshop.capnp | [
"BSD-2-Clause"
] |
<div class="sf-toolbar-block sf-toolbar-block-{{ name }} sf-toolbar-status-{{ status|default('normal') }} {{ additional_classes|default('') }}" {{ block_attrs|default('')|raw }}>
{% if link is not defined or link %}<a href="{{ url('_profiler', { token: token, panel: name }) }}">{% endif %}
<div class="sf-to... | Twig | 3 | simonberger/symfony | src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_item.html.twig | [
"MIT"
] |
#import <Foundation/Foundation.h>
#define MY_ERROR_ENUM(_type, _name, _domain) \
enum _name : _type _name; \
enum __attribute__((ns_error_domain(_domain))) _name : _type
@class NSString;
extern NSString *const TestErrorDomain;
ty... | C | 3 | lwhsu/swift | test/ClangImporter/Inputs/enum-error.h | [
"Apache-2.0"
] |
MSTRINGIFY(
cbuffer SolvePositionsFromLinksKernelCB : register( b0 )
{
int startLink;
int numLinks;
float kst;
float ti;
};
// Node indices for each link
StructuredBuffer<int2> g_linksVertexIndices : register( t0 );
StructuredBuffer<float> g_linksMassLSC : register( t1 );
StructuredBuffer<float> g_... | HLSL | 4 | BonJovi1/Bullet-the-Blue-Sky | external/bullet-2.81-rev2613/src/BulletMultiThreaded/GpuSoftBodySolvers/DX11/HLSL/SolvePositions.hlsl | [
"WTFPL"
] |
//This file is part of "GZE - GroundZero Engine"
//The permisive licence allow to use GZE for free or commercial project (Apache License, Version 2.0).
//For conditions of distribution and use, see copyright notice in Licence.txt, this license must be included with any distribution of the code.
#skipContent
package {... | Redcode | 2 | VLiance/GZE | src/Lib_GZ/Base/Mat3x4.cw | [
"Apache-2.0"
] |
/** if-then-else loops */
if (true)
foo();
else
bar();
if (true) {
foo();
bar();
} else {
foo();
}
// https://github.com/atom/atom/issues/6691
if (true)
{
foo();
bar();
}
else
{
foo();
}
if (true) {
if (yes)
doit(); // 2
bar();
} else if (more()) {
foo(); // 1
}
if (true)
foo();
else
... | JavaScript | 3 | Embodimentgeniuslm3/BDB11A0E2DE062D2E39E4C5301B2FE5E | spec/fixtures/indentation/if_then_else.js | [
"MIT"
] |
0
inputPlaceholder*
dtype0*
shape:" | PureBasic | 0 | mjlorenzo305/deeplearning4j | nd4j/nd4j-tensorflow/src/main/resources/cast_graph/cast_int32_int32.pb | [
"Apache-2.0"
] |
#!/bin/sh
set -e
go tool dist list | while IFS=/ read os arch; do
echo "Checking $os/$arch..."
echo " normal"
GOARCH=$arch GOOS=$os go build -o /dev/null .
echo " noasm"
GOARCH=$arch GOOS=$os go build -tags noasm -o /dev/null .
echo " appengine"
GOARCH=$arch GOOS=$os go build -tags appengi... | Shell | 4 | phillipahereza/mattermost-server | vendor/github.com/klauspost/cpuid/v2/test-architectures.sh | [
"Apache-2.0"
] |
--TEST--
Call header_register_callback() after headers sent
--FILE--
<?php
echo "Send headers.\n";
header_register_callback(function() { echo "Too late";});
?>
--EXPECT--
Send headers.
| PHP | 3 | NathanFreeman/php-src | tests/basic/header_register_callback_after_output.phpt | [
"PHP-3.01"
] |
<style type="text/css">
.row {
height: 33%;
text-align: center;
border-bottom: 1px solid black;
margin: 0;
padding: 0;
-webkit-user-select: none;
}
</style>
<div class="row" (swipe)="onSwipe($event)">Swipe (direction = {{swipeDirection}})</div>
<div class="row" (pinch)="onPinch($event)">pin... | HTML | 3 | coreyscherbing/angular | modules/playground/src/gestures/template.html | [
"MIT"
] |
#include <ATen/ATen.h>
#include <ATen/NativeFunctions.h>
#include <ATen/native/quantized/fake_quant_affine.h>
#include <ATen/native/TensorIterator.h>
#include <ATen/native/cuda/Loops.cuh>
#include <thrust/tuple.h>
#include <cmath>
/* Fake quantize a tensor
Args:
output: output tensor.
input : input tensor.
sc: ... | Cuda | 5 | xiaohanhuang/pytorch | aten/src/ATen/native/quantized/cuda/fake_quantize_core.cu | [
"Intel"
] |
Red/System [
Title: "Red/System Android runtime"
Author: "Nenad Rakocevic"
File: %android.reds
Tabs: 4
Rights: "Copyright (C) 2011-2018 Red Foundation. All rights reserved."
License: {
Distributed under the Boost Software License, Version 1.0.
See https://github.com/red/red/blob/master/BSL-License.txt
... | Red | 3 | 0xflotus/red | system/runtime/android.reds | [
"BSL-1.0",
"BSD-3-Clause"
] |
fs=${1%.fs}
rm -rf "$fs" "$fs.fakeroot"
redo-ifchange debootstrap.fs
fakeroot -i debootstrap.fakeroot -s "$fs.fakeroot" \
cp -a debootstrap/. "$fs" >&2
# Work around bug (in fakechroot?) where /lib64 symlink ends up pointing
# at an absolute path including $PWD, rather than inside the chroot.
# Rather than fix the s... | Stata | 4 | BlameJohnny/redo | docs/cookbook/container/debian.fs.do | [
"Apache-2.0"
] |
BxJ0, / @ C C S $ W F X | PureBasic | 0 | cnheider/onnx | onnx/backend/test/data/node/test_eyelike_with_dtype/test_data_set_0/input_0.pb | [
"MIT"
] |
require ttf.inc
SUMMARY = "Ubuntu Font Family - TTF Version"
HOMEPAGE = "http://font.ubuntu.com"
LICENSE = "UFL"
LIC_FILES_CHKSUM = "file://LICENCE.txt;md5=325a1a9029112a2405e743c7f816427b"
PR = "r1"
SHA1SUM = "0cef8205"
SRC_URI = "https://assets.ubuntu.com/v1/${SHA1SUM}-ubuntu-font-family-${PV}.zip"
SRC_URI[md5su... | BitBake | 3 | shipinglinux/meta-openembedded | meta-oe/recipes-graphics/ttf-fonts/ttf-ubuntu-font-family_0.83.bb | [
"MIT"
] |
table t : {A : int}
fun main () : transaction page =
let
fun check () =
r <- oneRow (SELECT SUM(t.A) AS X FROM t);
return (if r.X < 0 then
(Some 3, None)
else
(None, Some "Hi"))
fun show (t ::: Type) (_ : s... | UrWeb | 3 | apple314159/urweb | tests/rpcO.ur | [
"BSD-3-Clause"
] |
Module: Win32-Automation
Synopsis: Dylan accessors for data structures used with OLE Automation.
Author: David N. Gray
Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc.
All rights reserved.
License: See License.txt in this distribution for details.
Warranty: D... | Dylan | 5 | kryptine/opendylan | sources/ole/win32-automation/variant.dylan | [
"BSD-2-Clause"
] |
(module
(type $none_=>_i32 (func (result i32)))
(memory $0 1)
(data (i32.const 1036) "\1c")
(data (i32.const 1048) "\01\00\00\00\0c\00\00\00a\00b\00i\00.\00t\00s")
(export "exported" (func $abi/exported))
(export "exportedExported" (func $abi/exported))
(export "exportedInternal" (func $abi/exported))
(export "... | WebAssembly | 3 | romdotdog/assemblyscript | tests/compiler/abi.optimized.wat | [
"Apache-2.0"
] |
<!-- foldFusion page by lawKnee -->
<!-- useful when you can upload cfm and would like to talk to all db's avail -->
<!-- but dont want to (or can't) connect from the OS -->
<!-- this page uses ServiceFactory to auto-enum all datasources on the instance -->
<!-- only works on CF8 and below, but unpatched CF9 s... | ColdFusion | 4 | laotun-s/webshell | fuzzdb-webshell/cfm/cfSQL.cfm | [
"MIT"
] |
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M5.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1 0-1.5-.5-1.5-1.5v-5C1 4.5 1.5 4 2.5 4zM7 0v.5C7 1.5 6.5 2 5.5 2h-3C1.5 2 1 1.5 1 .5V0h6zM7 16v-.5c0-1-.5-1.5-1.5-1.5h-3c-1 0-1.5.5-1.5 1.5v.5h6zM13.5 4c1 0 1.5.5 1.5 1.5v5c0 1-.5 1.5-1.5 1.5h-3c-1... | SVG | 1 | MMeent/pdf.js | web/images/secondaryToolbarButton-scrollWrapped.svg | [
"Apache-2.0"
] |
This is en__zh example 1
这是en__zh例子1
1279257697000,en zh,tuid-0001
This is en__zh example 2
这是en__zh例子2
1279257697000,en zh-CN,tuid-0002
This is en__zh example 3
这是en__zh例子3
1279257697000,en zh-XX,tuid-0003
This is en__zh example 4
这是en__zh例子4
1279257697000,en zh-TW,tuid-0004
This is en__zh example 5
这是en__zh例子5
127925... | ColdFusion CFC | 1 | Centaurioun/modernmt | test/testcases/res/onlinelearning/Memory.en__zh.cfc | [
"Apache-2.0"
] |
color hsv(55, 200, 200)
stroke 11
push
o: (TIME % 3000) / 3000
i: map(o, 0, 1, 0, TWO_PI)
move sin(i)*2,0,cos(i)*8
cone 0.3, 0.5
pop
| Cycript | 3 | marcinbiegun/creativecoding-sketches | Cyril/data/code_old/1.cy | [
"MIT"
] |
<GameProjectFile>
<PropertyGroup Type="Scene" Name="TestArmatureNode" ID="38066ea4-9551-409c-ac41-663c8a6f9cef" Version="2.1.0.0" />
<Content ctype="GameProjectContent">
<Content>
<Animation Duration="56" Speed="1.0000">
<Timeline ActionTag="-776642477" Property="Position">
<PointFrame F... | Csound | 3 | dum999/CocosStudioSamples | CocosStudioProjects/TestArmatureNode/cocosstudio/TestArmatureNode.csd | [
"MIT"
] |
#include <ctpl.h>
#include <iostream>
#include <string>
void first(int id) { std::cout << "hello from " << id << ", function\n"; }
void aga(int id, int par) {
std::cout << "hello from " << id << ", function with parameter " << par
<< '\n';
}
struct Third {
Third(int v) {
this->v = v;
std::cou... | C++ | 4 | jzjonah/apollo | modules/perception/tool/benchmark/lidar/ctpl/example.cpp | [
"Apache-2.0"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 4 | sbj42/vscode | src/vs/workbench/services/title/electron-sandbox/titleService.ts | [
"MIT"
] |
DROP TABLE "public"."table50";
DROP TABLE "public"."table49";
DROP TABLE "public"."table48";
DROP TABLE "public"."table47";
DROP TABLE "public"."table46";
DROP TABLE "public"."table45";
DROP TABLE "public"."table44";
DROP TABLE "public"."table43";
DROP TABLE "public"."table42";
DROP TABLE "public"."table41";
... | SQL | 1 | eazyfin/graphql-engine | cli/commands/testdata/migrate-squash-test/want_from.down.sql | [
"Apache-2.0",
"MIT"
] |
suspend fun dummy() {}
class C {
suspend fun dummy() = "OK"
}
class WithNested {
class Nested {
suspend fun dummy() = "OK"
}
}
class WithInner {
inner class Inner {
suspend fun dummy() = "OK"
}
}
fun builder(c: suspend () -> Unit) {}
fun builder2(c: suspend Int.(String) -> Unit) ... | Kotlin | 4 | AndrewReitz/kotlin | compiler/testData/compileKotlinAgainstCustomBinaries/experimentalCoroutineCallFromReleaseWarnings/library/experimental.kt | [
"ECL-2.0",
"Apache-2.0"
] |
/// <reference types="node"/>
import './browser_symbol_setup';
import './test_fake_polyfill';
import './wtf_mock';
import './test-env-setup-jasmine';
| TypeScript | 1 | coreyscherbing/angular | packages/zone.js/test/browser-env-setup.ts | [
"MIT"
] |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="14008000">
<Property Name="NI.LV.All.SourceOnly" Type="Bool">true</Property>
<Property Name="SMProvider.SMVersion" Type="Int">201310</Property>
<Item Name="My Computer" Type="My Computer">
<Property Name="IOScan.Faults" Type="Str"></Propert... | LabVIEW | 1 | wheelsailor/TagEditorCore | source/Standard Editor/Module Configuration Editor.lvproj | [
"Apache-2.0"
] |
--TEST--
Reusing connection with same connection string
--EXTENSIONS--
pgsql
--SKIPIF--
<?php include("skipif.inc"); ?>
--FILE--
<?php
include('config.inc');
$db1 = pg_connect($conn_str);
$db2 = pg_connect($conn_str);
var_dump($db1, $db2);
?>
--EXPECT--
object(PgSql\Connection)#1 (0) {
}
object(PgSql\Connection)#1 (0)... | PHP | 3 | NathanFreeman/php-src | ext/pgsql/tests/connection_reuse.phpt | [
"PHP-3.01"
] |
TDSmalltalkLeafNode {
#name : 'tst',
#contents : '| suite result |
suite := TestSuite named: \'Simple SUnit Suite\'.
suite
addTest:
(MetacelloRegistryLoadScriptTestCase
selector: #\'testFie35Foo40FeauxLoadLockError\');
addTest:
(MetacelloRegistryLoadScriptTestCase
selector: #\'test... | STON | 3 | tom95/metacello | tode/tst.ston | [
"MIT"
] |
/* 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,
* 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/.
* You can obtain one at http://mozilla.o... | WebIDL | 3 | dkozma/wasm-bindgen | crates/web-sys/webidls/unstable/QueuingStrategy.webidl | [
"Apache-2.0",
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.