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 |
|---|---|---|---|---|---|
#tag Module
Protected Module GraphicsHelpersWFS
#tag Method, Flags = &h1
Protected Function CanBeDisplayed(g as Graphics, text as String) As Boolean
// Note, this function is *supposed* to fire a FunctionNotFoundException
// in the case that we cannot load the GetGlyphIndices API. The API is
// only sup... | REALbasic | 5 | bskrtich/WFS | Windows Functionality Suite/Graphics Helpers/Modules/GraphicsHelpersWFS.rbbas | [
"MIT"
] |
# Copyright 2017-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# Auto-Generated by cargo-ebuild 0.1.5
EAPI=6
CRATES="
adler32-1.0.3
aho-corasick-0.6.6
ansi_term-0.11.0
arrayref-0.3.4
arrayvec-0.4.7
atoi-0.2.3
atty-0.2.11
backtrace-0.3.9
backtrace-sys-0.1.23
badtouch-0.6.1
... | Gentoo Ebuild | 3 | gentoo/gentoo-rust | net-analyzer/badtouch/badtouch-0.6.1.ebuild | [
"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 | OlegPt/spark | sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/ReassignLambdaVariableIDSuite.scala | [
"Apache-2.0"
] |
print "Hello World!\n";
| Standard ML | 0 | PushpneetSingh/Hello-world | SML/hello-world.sml | [
"MIT"
] |
; inherits: ecma,jsx
| Scheme | 1 | hmac/nvim-treesitter | queries/javascript/injections.scm | [
"Apache-2.0"
] |
require! \jsdom
{ window } = new jsdom.JSDOM '<!doctype html><html><body></body></html>'
global <<<
document: window.document
navigator: user-agent: \JSDOM
window: window
# introduction of the following poperty is caused by a react 16 bug.
# for more information visit https://github.com/facebook/r... | LiveScript | 3 | rodcope1/react-selectize-rodcope1 | test/index.ls | [
"Apache-2.0"
] |
package com.airbnb.lottie.network;
import androidx.annotation.NonNull;
import java.io.File;
/**
* Interface for providing the custom cache directory where animations downloaded via url are saved.
*
* @see com.airbnb.lottie.Lottie#initialize
*/
public interface LottieNetworkCacheProvider {
/**
* Called dur... | Java | 4 | headsvk/lottie-android | lottie/src/main/java/com/airbnb/lottie/network/LottieNetworkCacheProvider.java | [
"Apache-2.0"
] |
#include <stdio.h>
void printhello(){
printf("Helloworld\n");
}
| C | 2 | Havoc-OS/androidprebuilts_go_linux-x86 | src/internal/xcoff/testdata/printhello.c | [
"BSD-3-Clause"
] |
#include <MsgBoxConstants.au3>
MsgBox($MB_OK, "Hi!", "Hello World!")
| AutoIt | 2 | JStearsman/hello-worlds | examples/AutoIt.au3 | [
"Unlicense"
] |
// @target: es3
var x: number = 02343 | TypeScript | 1 | nilamjadhav/TypeScript | tests/cases/compiler/isLiteral2.ts | [
"Apache-2.0"
] |
export async function getStaticProps(ctx) {
let toLocale = ctx.params.locale
if (toLocale === 'from-ctx') {
toLocale = ctx.locale
}
return {
redirect: {
destination: `/${toLocale}/home`,
permanent: false,
},
}
}
export async function getStaticPaths() {
return { paths: [], fallback:... | JavaScript | 4 | nazarepiedady/next.js | test/e2e/i18n-data-fetching-redirect/app/pages/gsp-fallback-redirect/[locale].js | [
"MIT"
] |
module org-openroadm-de-operations {
namespace "http://org/openroadm/de/operations";
prefix org-openroadm-de-operations;
import org-openroadm-resource {
prefix org-openroadm-resource;
}
import org-openroadm-common-types {
prefix org-openroadm-common-types;
}
organization "Open ROADM MSA";
... | YANG | 5 | meodaiduoi/onos | models/openroadm/src/main/yang/org-openroadm-de-operations@2016-10-14.yang | [
"Apache-2.0"
] |
t app appmode photo
t app test vin_rotate 90
sleep 5
t app button shutter PR
d:\autoexec.ash
REBOOT yes
| AGS Script | 1 | waltersgrey/autoexechack | rotation/panorama/90/autoexec.ash | [
"MIT"
] |
<span class="bd-color" style="background: hsl(14, 100%, 53%);"></span>
<code>hsl(14, 100%, 53%)</code>
| HTML | 1 | kalpitzeta/bulma | docs/_includes/color/orange.html | [
"MIT"
] |
digraph callgraph {
N1 [ label = "a", flag = true ];
N1 -> N7 ;
N5 [ label = "f", flag = false ];
N5 -> N4 ;
N0 [ label = "b", flag = true ];
N0 -> N1 ;
N7 [ label = "main", flag = true ];
N6 [ label = "e", flag = true ];
N6 -> N7 ;
N4 [ label = "d", flag = true ];
N4 -> N6 ;
N4 -> N3 ;
... | Graphviz (DOT) | 3 | JacobBarthelmeh/infer | infer/tests/build_systems/incremental_analysis_change_procedure/reverse_analysis_callgraph.dot | [
"MIT"
] |
<figure class="attachment attachment--preview">
<%= image_tag(remote_image.url, width: remote_image.width, height: remote_image.height) %>
<% if caption = remote_image.try(:caption) %>
<figcaption class="attachment__caption">
<%= caption %>
</figcaption>
<% end %>
</figure>
| HTML+ERB | 4 | mdesantis/rails | actiontext/app/views/action_text/attachables/_remote_image.html.erb | [
"MIT"
] |
mutation DeleteTeam($teamID: ID!) {
deleteTeam(teamID: $teamID)
} | GraphQL | 2 | miily8310s/hoppscotch | packages/hoppscotch-app/helpers/backend/gql/mutations/DeleteTeam.graphql | [
"MIT"
] |
data division.
linkage section.
01 require.
procedure division.
local http.
local server.
perform require using "http" giving http.
perform createServer in http using doget giving server.
perform listen in server using 8000.
display "listening on port 8000".
doget section using request, response.
perfo... | COBOL | 4 | jmptrader/CobolScript | samples/webserver/webserver.cob | [
"MIT"
] |
MEMORY
{
FLASH_TEXT (rx) : ORIGIN = 0x08000000, LENGTH = 32K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 8K
}
_stack_size = 2K;
INCLUDE "targets/arm.ld" | Linker Script | 3 | attriaayush/tinygo | targets/stm32l031k6.ld | [
"Apache-2.0"
] |
10 5 0 0
0 1 5 1 3 4 5 2 [0] [0] [0] [0] [0]
1 1 5 8 9 10 6 7 [-1] [25] [11] [17] [-3]
2 1 4 10 8 6 7 [0] [0] [0] [0]
3 1 5 7 10 6 9 8 [2] [0] [3] [10] [0]
4 1 5 7 9 10 6 8 [-4] [2] [11] [-4] [10]
5 1 4 6 9 7 8 [13] [23] [-3] [3]
6 1 4 11 2 4 3 [5] [-21] [-11] [-13]
7 1 1 11 [8]
8 1 1 11 [10]
9 1 1 11 [1]
10... | Eagle | 1 | klorel/or-tools | examples/data/rcpsp/single_mode_max_delay/sm_j10/psp167.sch | [
"Apache-2.0"
] |
%%
%unicode 5.1
%public
%class UnicodeScripts_f
%type int
%standalone
%include ../../resources/common-unicode-enumerated-property-java
%%
\p{Script:This will never be a script name} { setCurCharPropertyValue("Never a script name"); }
<<EOF>> { printOutput(); return 1; }
| JFlex | 3 | Mivik/jflex | testsuite/testcases/src/test/cases/unicode-scripts/unicode-scripts-f.flex | [
"BSD-3-Clause"
] |
# Test the behavior of order-only dependencies.
# We run the build in a sandbox in the temp directory to ensure we don't
# interact with the source dirs.
#
# RUN: rm -rf %t.build
# RUN: mkdir -p %t.build
# RUN: cp %s %t.build/build.ninja
# RUN: echo "input-1" > %t.build/input-1
# RUN: echo "input-2" > %t.build/input-2... | Ninja | 5 | trombonehero/swift-llbuild | tests/Ninja/Build/order-only-deps.ninja | [
"Apache-2.0"
] |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Drag-Drop</title>
</head>
<body>
<style>
main {
text-align: center;
margin: 20px auto;
max-width: 400px;
}
</style>
<main cla... | HTML | 3 | camiloforero/uppy | private/dev/dragdrop.html | [
"MIT"
] |
#*****************************************************************************
# *
# Make file for VMS *
# Author : J.Jansen (joukj@hrem.nano.tudelft.nl) *
... | Module Management System | 3 | gamekit-developers/gamekit | wxWidgets-2.9.1/src/xml/descrip.mms | [
"Zlib",
"MIT"
] |
[{
"@id": "_:cl1",
"http://www.w3.org/1999/02/22-rdf-syntax-ns#value": [{"@value": "en-US"}],
"http://www.w3.org/1999/02/22-rdf-syntax-ns#language": [{"@value": "en-us"}],
"http://www.w3.org/1999/02/22-rdf-syntax-ns#direction": [{"@value": "rtl"}]
}, {
"@id": "http://example.com/a",
"http://example.org/labe... | JSONLD | 3 | donbowman/rdflib | test/jsonld/1.1/fromRdf/di08-out.jsonld | [
"BSD-3-Clause"
] |
class_name Cel extends Reference
# A class for cel properties.
# The term "cel" comes from "celluloid" (https://en.wikipedia.org/wiki/Cel).
# The "image" variable is where the image data of each cel are.
var image : Image setget image_changed
var image_texture : ImageTexture
var opacity : float
func _init(_image :=... | GDScript | 4 | triptych/Pixelorama | src/Classes/Cel.gd | [
"MIT"
] |
module openconfig-optical-amplifier {
yang-version "1";
// namespace
namespace "http://openconfig.net/yang/optical-amplfier";
prefix "oc-opt-amp";
import openconfig-transport-line-common {
prefix oc-line-com;
revision-date "2016-03-31";
}
import openconfig-extensions {
prefix oc-ext;
r... | YANG | 5 | Shinkirou/onos | models/openconfig-infinera/src/main/yang/openconfig-optical-amplifier@2016-03-31.yang | [
"Apache-2.0"
] |
' 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.
Imports System.Collections.Generic
Imports System.Collections.Immutable
Imports System.Collections.ObjectModel
Imports... | Visual Basic | 5 | ffMathy/roslyn | src/Compilers/VisualBasic/Portable/Symbols/Metadata/PE/PENamespaceSymbol.vb | [
"MIT"
] |
// This example is copied from this article: https://developers.google.com/web/updates/2017/12/audio-worklet
class GainProcessor extends AudioWorkletProcessor {
constructor() {
super();
this.port.onmessage = (event) => {
this.port.postMessage(event.data);
};
}
// eslin... | XS | 4 | dunnky/standardized-audio-context | test/fixtures/gain-processor-with-comment.xs | [
"MIT"
] |
shlide(1) ["Version 1.0"]
# NAME
shlide - a slide deck presentation tool written in pure bash
# SYNOPSIS
shlide _deck-directory/_
# DESCRIPTION
Create a directory for your slides. Name each slide starting with
a number and a hyphen, like so:
$ mkdir deck++
$ touch deck/1-first-slide.txt++
$ touch deck/2-anothe... | SuperCollider | 4 | puneethkanna/shlide | shlide.1.scd | [
"MIT"
] |
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.todomvc.duel</groupId>
... | XML | 4 | dtelaroli/todomvc | examples/duel/pom.xml | [
"MIT"
] |
DROP TABLE "public"."t6";
| SQL | 1 | gh-oss-contributor/graphql-engine-1 | cli/commands/testdata/config-v2-test-project/migrations/1620138189381_create_table_public_t6/down.sql | [
"Apache-2.0",
"MIT"
] |
#define TORCH_ASSERT_NO_OPERATORS
#include <ATen/Dispatch.h>
#include <ATen/native/DispatchStub.h>
#include <ATen/native/cuda/Loops.cuh>
#include <ATen/native/BinaryOps.h>
#include <ATen/native/TensorIterator.h>
#include <type_traits>
// NOTE: CUDA on Windows requires that the enclosing function
// of a __device__ la... | Cuda | 4 | PaliC/pytorch | aten/src/ATen/native/cuda/BinaryRemainderKernel.cu | [
"Intel"
] |
= Documentation for JWT Feature
The jwt feature adds support for JSON API access for all other features
that ship with Rodauth, using JWT (JSON Web Tokens) to hold the
session information. It depends on the json feature.
In order to use this feature, you have to set the +jwt_secret+ configuration
option the secret us... | RDoc | 4 | BearerPipelineTest/rodauth | doc/jwt.rdoc | [
"MIT"
] |
// https://dom.spec.whatwg.org/#documentorshadowroot
interface mixin DocumentOrShadowRoot {
};
Document includes DocumentOrShadowRoot;
ShadowRoot includes DocumentOrShadowRoot;
// https://html.spec.whatwg.org/multipage/dom.html#documentorshadowroot
partial interface mixin DocumentOrShadowRoot {
readonly attribute El... | WebIDL | 4 | Unique184/jsdom | lib/jsdom/living/nodes/DocumentOrShadowRoot.webidl | [
"MIT"
] |
"""The radiotherm component data."""
from __future__ import annotations
from dataclasses import dataclass
from typing import Any
import radiotherm
from radiotherm.thermostat import CommonThermostat
from homeassistant.core import HomeAssistant
from homeassistant.helpers import device_registry as dr
from .const impor... | Python | 5 | mib1185/core | homeassistant/components/radiotherm/data.py | [
"Apache-2.0"
] |
exec("swigtest.start", -1);
// Test on NULL
null = getNull();
checkequal(SWIG_this(null), 0, "SWIG_this(null)");
null = SWIG_ptr(0);
checkequal(isNull(null), %T, "func(null)");
// Test on variable
expected_foo_addr = getFooAddress();
foo_addr = SWIG_this(pfoo_get());
checkequal(foo_addr, expected_foo_addr, "SWIG_thi... | Scilab | 3 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/scilab_pointer_conversion_functions_runme.sci | [
"BSD-3-Clause"
] |
<!-- Number badge -->
<span class="mdl-badge" data-badge="4">Inbox</span>
| HTML | 2 | greatwqs/staffjoy | frontend/third_party/node/material_design_lite/badge/snippets/badge-on-text-text.html | [
"MIT"
] |
(module
(memory 1 1)
(import "spectest" "print" (func $print (param i32)))
(import "asyncify" "start_unwind" (func $asyncify_start_unwind (param i32)))
(import "asyncify" "stop_unwind" (func $asyncify_stop_unwind))
(import "asyncify" "start_rewind" (func $asyncify_start_rewind (param i32)))
(import "asyncif... | WebAssembly | 3 | phated/binaryen | test/unit/input/asyncify-pure.wat | [
"Apache-2.0"
] |
data {
int<lower=1> M; // number of countries
int<lower=1> N0; // number of initial days for which to estimate infections
int<lower=1> N[M]; // days of observed data for country m. each entry must be <= N2
int<lower=1> N2; // days of observed data + # of days to forecast
int<lower=1> A; // number of age bands... | Stan | 5 | viniciuszendron/covid19model | covid19AgeModel/inst/stan-models-deprecated/base_age_google_mobility_200427b.stan | [
"MIT"
] |
#|
exec /usr/bin/env sbcl --noinform --quit --eval "(defparameter *script-name* \"$0\")" --load "$0" --end-toplevel-options "$@"
|#
;;; This script clusterizes values from the taginfo database and
;;; prints information about clusters.
;;; Silently loads sqlite.
(with-open-file (*standard-output* "/dev/null"
... | Common Lisp | 5 | smartyw/organicmaps | search/search_quality/clusterize-tag-values.lisp | [
"Apache-2.0"
] |
30 5 2 0
0 1 31 21 2 17 26 5 15 19 11 8 31 4 18 12 6 27 16 1 30 22 13 29 7 20 28 23 14 3 25 10 24 9 [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0] [0 0 0 0 0]... | Eagle | 1 | klorel/or-tools | examples/data/rcpsp/multi_mode_max_delay/mm_j30/psp222.sch | [
"Apache-2.0"
] |
---
"tauri-macros": patch
---
Fixes a name collision when the command function is named `message` or `resolver`.
| Markdown | 0 | facklambda/tauri | .changes/cmd-touch-bindings.md | [
"Apache-2.0",
"MIT"
] |
// run-pass
// aux-build:xcrate_generic_fn_nested_return.rs
extern crate xcrate_generic_fn_nested_return as test;
pub fn main() {
assert!(test::decode::<()>().is_err());
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/cross-crate/xcrate_generic_fn_nested_return.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
size: 1024px 512px;
dpi: 96;
margin: 8em;
axis {
align: y;
label-placement: linear(1);
tick-offset: 0;
limit: 0 16;
}
| CLIPS | 2 | asmuth-archive/travistest | test/plot-axis/axis_vert_tick_center.clp | [
"Apache-2.0"
] |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>自定义模块 - layui</title>
<link rel="stylesheet" href="../src/css/layui.css">
<style>
</style>
</head>
<body>
<script src="../src/layui.js"></script>
<script>
layui.config(... | HTML | 4 | Death-Dinner-Git/aliveHouse | public/static/plugins/layui/test/extend.html | [
"Apache-2.0"
] |
.q-circular-progress
display: inline-block
position: relative
vertical-align: middle
width: 1em
height: 1em
line-height: 1
&.q-focusable
border-radius: 50%
&__svg
width: 100%
height: 100%
&__text
font-size: .25em
&--indeterminate
.q-circular-progress__svg
transform-ori... | Sass | 4 | ygyg70/quasar | ui/src/components/circular-progress/QCircularProgress.sass | [
"MIT"
] |
<!DOCTYPE html>
<html>
<head>
<title>Text-decoration:underline tests</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="../../test.js"></script>
<script type="text/javascript">
function setUp() {
... | HTML | 3 | abhijit-paul/html2canvas | tests/reftests/text/underline.html | [
"MIT"
] |
/////////////////////////////////////////////
//
// ~~ [ Strange Crystal ] ~~
// version 4 out of 4
//
// by Michael Scharrer
// https://mscharrer.net
//
// CC-BY-4.0 license
// https://creativecommons.org/licenses/by/4.0/
//
/////////////////////////////////////////////
#version 3.7;
#include "spectral.i... | POV-Ray SDL | 4 | mixdowninc/orbuculum | Tools/povray/pr.pov | [
"BSD-3-Clause"
] |
(set-logic QF_AUFBV)
(declare-fun SymVar_0 () (_ BitVec 64))
(assert (=
((_ extract 63 63)SymVar_0) (_ bv1 1)
)
)
(check-sat)
(get-model)
;(get-value (SymVar_1))
| SMT | 3 | o2e/Triton | src/samples/smt/sf.smt2 | [
"Apache-2.0"
] |
/*
* Copyright (c) 2009 Stanford 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 list of c... | Logos | 4 | mtaghiza/tinyos-main-1 | tos/platforms/sam3u_ek/sam3u-ek-flash.x | [
"BSD-3-Clause"
] |
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8"/>
<title> À propos des codes barres 1D </title>
<link href="../style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<p> Les codes barres traditionnels, tels que ceux imprimés sur l'emballage des produits commerciaux, sont appelés codes barres 1D. Il existe plu... | HTML | 2 | newcoremobile/nccameraqr | android/src/main/assets/html-fr/about1d.html | [
"Unlicense"
] |
#!/bin/tcsh
root -l BxAnalysis.C -q
| Tcsh | 1 | ckamtsikis/cmssw | RecoVertex/BeamSpotProducer/scripts/root/BxAnalysis/Run.csh | [
"Apache-2.0"
] |
Red [
Title: "Red call test program"
Author: "Bruno Anselme & Peter W A Wood"
File: %call-test.red
Tabs: 4
Rights: "Copyright (C) 2014-2015 Bruno Anselme & Peter W A Wood. All rights reserved."
License: "BSD-3 - https://github.com/red/red/blob/origin/BSD-3-License.txt"
]
#include %../../../system/library/... | Red | 3 | 0xflotus/red | tests/source/library/call-test.red | [
"BSL-1.0",
"BSD-3-Clause"
] |
"""Implementation of DLNA DMS as a media source.
URIs look like "media-source://dlna_dms/<source_id>/<media_identifier>"
Media identifiers can look like:
* `/path/to/file`: slash-separated path through the Content Directory
* `:ObjectID`: colon followed by a server-assigned ID for an object
* `?query`: question mark ... | Python | 5 | MrDelik/core | homeassistant/components/dlna_dms/media_source.py | [
"Apache-2.0"
] |
#! /bin/sh -e
# DP: Add options and specs for languages that are not built from a source
# DP: (but built from separate sources).
dir=
if [ $# -eq 3 -a "$2" = '-d' ]; then
pdir="-d $3"
dir="$3/"
elif [ $# -ne 1 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
case... | Darcs Patch | 4 | JrCs/opendreambox | recipes/gcc/gcc-4.3.4/debian/gcc-driver-extra-langs.dpatch | [
"MIT"
] |
.class public Lothers/TestFieldInitOrder2;
.super Ljava/lang/Object;
.field private static final VALUE:Ljava/lang/String;
.field static final ZPREFIX:Ljava/lang/String; = "SOME_"
# direct methods
.method static constructor <clinit>()V
.registers 2
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct... | Smali | 4 | Dev-kishan1999/jadx | jadx-core/src/test/smali/others/TestFieldInitOrder2.smali | [
"Apache-2.0"
] |
desc_sv=Filsystem för diskar och nätverk
| SystemVerilog | 0 | GalaxyGFX/webmin | mount/module.info.sv | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
package app
import lib.*
fun runAppAndReturnOk(): String {
if (prop != 1) error("prop is '$prop', but is expected to be '1'")
val funcValue = func()
if (funcValue != 2) error("func() is '$funcValue', but is expected to be '2'")
val inlineFuncValue = inlineFunc()
if (inlineFuncValue != 3) error("in... | Kotlin | 4 | AndrewReitz/kotlin | plugins/jvm-abi-gen/testData/compile/topLevel/app/app.kt | [
"ECL-2.0",
"Apache-2.0"
] |
"""
"""
import System
import System.Reflection
import Boo.Lang.Compiler.Ast
class Foo:
protected properties:
ProtectedProperty as string
macro properties:
for stmt as DeclarationStatement in properties.Body.Statements:
name = stmt.Declaration.Name
type = stmt.Declaration.Type
yield [|
$name as $type:
... | Boo | 4 | popcatalin81/boo | tests/testcases/macros/member-macro-nodes-inherit-visibility-only-when-not-set.boo | [
"BSD-3-Clause"
] |
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -march=amdgcn -mcpu=tahiti -run-pass=regbankselect -regbankselect-fast -verify-machineinstrs -o - %s | FileCheck -check-prefix=GFX6 %s
# RUN: llc -march=amdgcn -mcpu=tahiti -run-pass=regbankselect -regbankselect-greedy -verify-mach... | Mirah | 3 | arunkumarbhattar/llvm | test/CodeGen/AMDGPU/GlobalISel/regbankselect-smulh.mir | [
"Apache-2.0"
] |
'use strict';
jest.mock('scheduler', () => jest.requireActual('scheduler/unstable_mock'));
| JavaScript | 3 | GBKstc/react-analysis | scripts/jest/setupTests.build.js | [
"MIT"
] |
<!-- Inputs -->
<ng-content></ng-content>
<!-- Track -->
<div class="mdc-slider__track">
<div class="mdc-slider__track--inactive"></div>
<div class="mdc-slider__track--active">
<div class="mdc-slider__track--active_fill" #trackActive></div>
</div>
<div *ngIf="showTickMarks" class="mdc-slider__tick-marks" #... | HTML | 4 | tungyingwaltz/components | src/material-experimental/mdc-slider/slider.html | [
"MIT"
] |
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24" viewBox="0 0 24 24" width="24"><g><rect fill="none" height="24" width="24" y="0"/></g><g><g><path d="M21,12l-8-3.56V6h-1c-0.55,0-1-0.45-1-1s0.45-1,1-1s1,0.45,1,1h2c0-1.84-1.66-3.3-3.56-2.95 C10.26,2.27,9.29,3.22,9.06,4.4C8.76,5.96,9.6... | SVG | 1 | good-gym/material-ui | packages/material-ui-icons/material-icons/dry_cleaning_sharp_24px.svg | [
"MIT"
] |
fn main() {
let a: i8 = loop {
1 //~ ERROR mismatched types
};
let b: i8 = loop {
break 1;
};
}
fn foo() -> i8 {
let a: i8 = loop {
1 //~ ERROR mismatched types
};
let b: i8 = loop {
break 1;
};
loop {
1 //~ ERROR mismatched types
}
... | Rust | 3 | mbc-git/rust | src/test/ui/loops/loop-no-implicit-break.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
ISPRIME(N)
QUIT:(N=2) 1
NEW I,R
SET R=N#2
IF R FOR I=3:2:(N**.5) SET R=N#I Q:'R
KILL I
QUIT R
| M | 3 | LaudateCorpus1/RosettaCodeData | Task/Primality-by-trial-division/MUMPS/primality-by-trial-division.mumps | [
"Info-ZIP"
] |
# ignore-none no-std is not supported
# ignore-nvptx64-nvidia-cuda FIXME: can't find crate for `std`
include ../../run-make-fulldeps/tools.mk
# Tests that we don't ICE during incremental compilation after modifying a
# function span such that its previous end line exceeds the number of lines
# in the new file, but it... | Makefile | 3 | mbc-git/rust | src/test/run-make/incr-prev-body-beyond-eof/Makefile | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
Foobarius NixEffector = Foobarius mimic
Foobarius NixEffector documentation = "You don't want to know"
Foobarius NixEffector private = method("this method should be private and is untested",
42)
Foobarius NixEffector private2 = method("this method should also be private and is also untested",
42)
| Ioke | 0 | olabini/ioke | examples/project/lib/foobarius/nix_effector.ik | [
"ICU",
"MIT"
] |
component {
public void function foo() {
if (something) {
doSomething();
} else {
doSomethingElse();
}
}
} | ColdFusion CFC | 2 | tonym128/CFLint | src/test/resources/com/cflint/tests/Complexity/ifelse.cfc | [
"BSD-3-Clause"
] |
grammar Combined;
options {
language=ObjC;
}
stat: identifier+ ;
identifier
: ID
;
ID : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'0'..'9'|'_')*
;
INT : ('0'..'9')+
;
WS : ( ' '
| '\t'
| '\r'
| '\n'
)+
{ $channel=99; }
;
| G-code | 4 | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | java/java2py/antlr-3.1.3/runtime/ObjC/Framework/examples/combined/Combined.g | [
"Apache-2.0"
] |
# THIS FILE WAS AUTOMATICALLY GENERATED BY script/ssl_server_defaults.cr
# on 2020-10-09 20:33:59 UTC.
abstract class OpenSSL::SSL::Context
# The list of secure ciphers on **modern** compatibility level as per Mozilla
# recommendations.
#
# The oldest clients supported by this configuration are:
# * Firefox ... | Crystal | 4 | n00p3/crystal | src/openssl/ssl/defaults.cr | [
"Apache-2.0"
] |
? my $context = $main::context;
? $_mt->wrapper_file("wrapper.mt")->(sub {
<style>
.headerlink {
display: none;
}
</style>
<title>Tutorial - JSX</title>
?= $_mt->render_file("header.mt")
?= $_mt->render_file("breadcrumb.mt", [ qw(Documents doc.html) ], [ qw(Tutorial) ])
<div id="main">
<h2 id="background">Bac... | Mathematica | 5 | monkpit/JSX | doc/src/doc/tutorial.mt | [
"MIT"
] |
<%--
Copyright 2013 Netflix, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agree... | Groovy Server Pages | 3 | claymccoy/asgard | grails-app/views/fastProperty/_fastPropertyAttributes.gsp | [
"Apache-2.0"
] |
// deno-lint-ignore no-explicit-any
const [, errorInfo] = (Deno as any).core.evalContext(
'/* aaaaaaaaaaaaaaaaa */ throw new Error("foo")',
new URL("eval_context_conflicting_source.ts", import.meta.url).href,
);
throw errorInfo.thrown;
| TypeScript | 3 | petamoriken/deno | cli/tests/testdata/eval_context_throw_with_conflicting_source.ts | [
"MIT"
] |
<mt:Ignore>
# =======================
#
# ウィジェット-コールトゥアクション
#
# =======================
</mt:Ignore>
<mt:Pages tag="@cta" limit="1">
<mt:PageBody mteval="1" />
<mt:PageMore mteval="1" />
</mt:Pages>
| MTML | 1 | webbingstudio/mt_theme_echo_bootstrap | dist/themes/echo_bootstrap/templates/widget_cta.mtml | [
"MIT"
] |
\require "a@0.1"
| LilyPond | 0 | HolgerPeters/lyp | spec/user_files/circular_invalid.ly | [
"MIT"
] |
fn closure_to_loc() {
let mut x = |c| c + 1;
x = |c| c + 1;
//~^ ERROR mismatched types
}
fn closure_from_match() {
let x = match 1usize {
1 => |c| c + 1,
2 => |c| c - 1,
_ => |c| c - 1
};
//~^^^^ ERROR type annotations needed
}
fn main() { }
| Rust | 3 | Eric-Arellano/rust | src/test/ui/issues/issue-24036.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
all:
mkdir -p ../../../../data/exploits/CVE-2020-1054
cp -vf Release/x64/CVE-2020-1054.x64.dll ../../../../data/exploits/CVE-2020-1054/exploit.dll
| Makefile | 1 | OsmanDere/metasploit-framework | external/source/exploits/CVE-2020-1054/Makefile | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
MultiselectSplitInteractionHandler = require '../../src/components/multiselect-split-interaction-handler'
WorkspaceStore = require '../../src/flux/stores/workspace-store'
FocusedContentStore = require '../../src/flux/stores/focused-content-store'
Thread = require('../../src/flux/models/thread').default
Actions = requir... | CoffeeScript | 3 | cnheider/nylas-mail | packages/client-app/spec/components/multiselect-split-interaction-handler-spec.coffee | [
"MIT"
] |
#N canvas 720 236 851 575 12;
#N canvas 0 22 450 300 (subpatch) 0;
#X array table2-ex 10 float 3;
#A 0 1 4 2 8 5 6 1 1 4 2;
#X coords 0 10 10 0 250 150 1 0 0;
#X restore 557 340 graph;
#X obj 36 434 snapshot~;
#X obj 55 402 metro 200;
#X obj 36 165 sig~;
#X floatatom 36 139 6 1 8 0 - - - 0;
#X floatatom 36 460 6 0 0 0 ... | Pure Data | 4 | myQwil/pure-data | doc/5.reference/tabread4~-help.pd | [
"TCL"
] |
<?xml version='1.0' encoding='UTF-8'?>
<?python
#
# Copyright (c) SAS Institute Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unl... | Genshi | 4 | sassoftware/conary | conary/server/templates/trove_info.kid | [
"Apache-2.0"
] |
(kicad_pcb (version 20171130) (host pcbnew "(5.0.0-rc2-dev-252-gb5f1fdd98)")
(general
(thickness 1.6)
(drawings 76)
(tracks 161)
(zones 0)
(modules 13)
(nets 1)
)
(page A4)
(layers
(0 F.Cu signal)
(31 B.Cu signal)
(32 B.Adhes user)
(33 F.Adhes user)
(34 B.Paste user... | KiCad | 5 | TargetTriple/stm32-ssd1306 | examples/oled-tester/hardware/oled-tester.kicad_pcb | [
"MIT"
] |
ruleset org.sovrin.edge {
meta {
use module io.picolabs.wrangler alias wrangler
use module org.sovrin.agent_message alias a_msg
shares __testing, get_vk, get_did, invitation_via, ui
}
global {
__testing = { "queries":
[ { "name": "__testing" }
, { "name": "get_vk", "args": [ "label" ] ... | KRL | 3 | Picolab/G2S | krl/org.sovrin.edge.krl | [
"MIT"
] |
{eq} = require './_helpers'
suite 'count' ->
test 'single file - no filename' ->
eq '--count "#x" test/data/a.js', '3', it
test 'single file - with filename' ->
eq '--count --filename "#x" test/data/a.js', 'test/data/a.js:3', it
test 'multiple files - no filename' ->
eq '--count --no-filename "#/^z... | LiveScript | 4 | GerHobbelt/grasp | test/count.ls | [
"MIT"
] |
/*
* Copyright (c) 2005 Hewlett-Packard Company
* 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 list o... | nesC | 3 | mtaghiza/tinyos-main-1 | tos/platforms/sam3u_ek/chips/sd/Time.nc | [
"BSD-3-Clause"
] |
import ../Thread
import native/win32/[types, errors]
version(windows) {
/**
* Win32 implementation of threads.
*/
ThreadWin32: class extends Thread {
handle: Handle
threadID: UInt
init: func ~win (=_code) {}
start: func -> Bool {
handle = _beginthreadex... | ooc | 5 | fredrikbryntesson/launchtest | sdk/threading/native/ThreadWin32.ooc | [
"MIT"
] |
{contentType text}
User-agent: *
Disallow:
Sitemap: {$config->baseUrl}/sitemap.xml
| Latte | 1 | gitetsu/aws-sdk-php | build/docs/theme/robots.txt.latte | [
"Apache-2.0"
] |
// run-rustfix
use std::collections::BTreeMap;
fn main() {
println!("{}", std::mem:size_of::<BTreeMap<u32, u32>>());
//~^ ERROR casts cannot be followed by a function call
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/type/ascription/issue-54516.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
\documentclass[submission,copyright,creativecommons]{eptcs}
\providecommand{\event}{MSFP 2018} % Name of the event you are submitting to
\usepackage{breakurl} % Not needed if you use pdflatex only.
\usepackage{underscore} % Only needed if you use pdflatex.
\usepackage{pig}
\usepackage{stmaryrd}
... | Literate Agda | 4 | gallais/EGTBS | old-EGTBS.lagda | [
"BSD-3-Clause"
] |
--# -path=.:../abstract:../common:../prelude
-- Adam Slaski, 2009 <adam.slaski@gmail.com>
concrete VerbPol of Verb = CatPol ** open ResPol, Prelude in {
flags optimize=all_subs ; coding=utf8 ;
lin
UseV v = defVP v;
PassV2 v = setImienne (defVP (castv2 v)) True;
SlashV2a v = (defVP (castv2 v)... | Grammatical Framework | 4 | daherb/gf-rgl | src/polish/VerbPol.gf | [
"BSD-3-Clause"
] |
scale 2
rotate
color green
stroke wave(1000)*20
do 10 times
rotate 5,1,2
scale wave(1000)+0.5
box
end
| Cycript | 3 | marcinbiegun/creativecoding-sketches | Cyril/data/code_old/7.cy | [
"MIT"
] |
"""Sensor for the Austrian "Zentralanstalt für Meteorologie und Geodynamik"."""
from __future__ import annotations
import csv
from dataclasses import dataclass
from datetime import datetime, timedelta
import gzip
import json
import logging
import os
from typing import Union
from aiohttp.hdrs import USER_AGENT
import ... | Python | 5 | MrDelik/core | homeassistant/components/zamg/sensor.py | [
"Apache-2.0"
] |
blank_issues_enabled: true
contact_links:
- name: Ask A Question
url: https://github.com/3b1b/manim/discussions/categories/q-a
about: Please ask questions you encountered here. | YAML | 0 | OrKedar/geo-manimgl-app | .github/ISSUE_TEMPLATE/config.yml | [
"MIT"
] |
<div class="footer">
<div class="container">
<p>
<span class="item">© 2014–2015 haskell.org</span>
<span class="item footer-contribute">
Got changes to contribute?
<a href="https://github.com/haskell-infra/hl"> Fork or comment on Github</a>
... | mupad | 3 | TikhonJelvis/haskell-platform | website/templates/plan-a/footer.mu | [
"BSD-3-Clause"
] |
<#macro guide title summary includedOptions="">
:title: ${title}
:summary: ${summary}
[[${ctx.getAnchor(title)}]]
= {title}
{summary}
<#nested>
<#if includedOptions?has_content>
== Relevant options
|===
|Key|CLI|ENV|Description|Default|Values
<#list ctx.options.getOptions(includedOptions) as option>
|${option.key}... | AsciiDoc | 4 | sre4ever/keycloak | docs/guides/src/main/templates/guide.adoc | [
"Apache-2.0"
] |
--TEST--
Bug #19566 (get_declared_classes() segfaults)
--FILE--
<?php
class foo {}
$result = get_declared_classes();
var_dump(array_search('foo', $result));
?>
--EXPECTF--
int(%d)
| PHP | 4 | guomoumou123/php5.5.10 | tests/lang/bug19566.phpt | [
"PHP-3.01"
] |
package Test3;
import FIFO::*;
module mkTb ();
Reg#(int) cnt <- mkReg(0);
Wire#(int) w1 <- mkWire; // w1 用于构造隐式条件
rule up_counter;
cnt <= cnt + 1;
if(cnt < 2) w1 <= cnt + 1; // 只有在 cnt<2 时写 w1
if(cnt > 5) $finish;
endrule
Reg#(int) x <- mkReg(1);
Reg#(int) y <- ... | Bluespec | 4 | Xiefengshang/BSV_Tutorial_cn | src/9.RuleUrgency/Test3.bsv | [
"MIT"
] |
unit t_main;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
aPLib, ExtCtrls, StdCtrls, ComCtrls;
type
TfrmMain = class(TForm)
aPLib: TaPLib;
Button1: TButton;
Button2: TButton;
Panel1: TPanel;
OD: TOpenDialog;
GroupBox1: TGroupBox... | Pascal | 3 | nehalem501/gendev | tools/files/applib/contrib/delphi/t_main.pas | [
"BSD-3-Clause"
] |
Opt("WinTitleMatchMode", 2)
If WinExists("VLC") Then
WinActivate("VLC", "")
EndIf
Send("{Media_Next}") | AutoIt | 3 | Aleks130699/majordomo | rc/scripts/vlc_next.au3 | [
"MIT"
] |
--TEST--
Bug #77613 (method visibility change)
--FILE--
<?php
class A {
public function __construct() {
static $foo;
}
}
class B extends A { }
class C extends B {
private function __construct() {}
}
?>
OK
--EXPECT--
OK
| PHP | 4 | thiagooak/php-src | Zend/tests/bug77613.phpt | [
"PHP-3.01"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.