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 |
|---|---|---|---|---|---|
module Svc {
@ A generic component for repeating input
passive component GenericRepeater {
@ Port to duplicate across the repeater
sync input port portIn: serial
@ Duplicated output port
output port portOut: [GenericRepeaterOutputPorts] serial
}
}
| FORTRAN | 4 | AlperenCetin0/fprime | Svc/GenericRepeater/GenericRepeater.fpp | [
"Apache-2.0"
] |
type: bulk
args:
- type: mssql_run_sql
args:
source: mssql
sql: |
DROP TABLE test;
DROP TABLE articles;
| YAML | 1 | gh-oss-contributor/graphql-engine-1 | server/tests-py/queries/subscriptions/multiplexing/schema_teardown_mssql.yaml | [
"Apache-2.0",
"MIT"
] |
#!/usr/bin/env python3
"""This script runs cuda-memcheck on the specified unit test. Each test case
is run in its isolated process with a timeout so that:
1) different test cases won't influence each other, and
2) in case of hang, the script would still finish in a finite amount of time.
The output will be written to ... | Python | 5 | Hacky-DH/pytorch | test/scripts/run_cuda_memcheck.py | [
"Intel"
] |
FROM openfaas/classic-watchdog:0.18.8 as watchdog
FROM artemklevtsov/r-alpine:latest
COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
RUN chmod +x /usr/bin/fwatchdog
WORKDIR /application/
COPY handler.R .
ENV fprocess="Rscript handler.R"
RUN addgroup -g 1000 -S app && adduser -u 1000 -S app -G app
USER 1000
HE... | Dockerfile | 3 | oswalpalash/faas | sample-functions/BaseFunctions/R/Dockerfile | [
"MIT"
] |
CLASSES = \
ExpProvider.class \
DisableSecurityManagerAction.class \
Exploit.class
.SUFFIXES: .java .class
.java.class:
javac -source 1.2 -target 1.2 -cp "../../../../data/java:." $*.java
all: $(CLASSES:.java=.class)
install:
mv ExpProvider.class ../../../../data/exploits/cve-2013-2460/
mv DisableSecurityManag... | Makefile | 3 | OsmanDere/metasploit-framework | external/source/exploits/cve-2013-2460/Makefile | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
<!DOCTYPE html>
<!--
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 ... | HTML | 4 | DominiqueDeCordova/echarts | test/toolbox-custom.html | [
"Apache-2.0"
] |
main: func {
a := "a"
b := "b"
(a, b) = (b, a)
if (a == "a" || b == "b") {
"Fail!" println()
exit(1)
}
"Pass" println()
}
| ooc | 3 | shamanas/rock | test/compiler/tuples/tuple-swap.ooc | [
"MIT"
] |
#iface()
class #iface(
b() { 0 }
) { this }
a : class()
i : a as #iface
t1 : a.type
t2 : 5.type
t3 : a.b.type
t4 : i.type
t5 : i.classType
d1 : type(i32)
d2 : type(class)
d3 : type(()i32)
d4 : type(#iface)
debug.writeLine(t1.asString())
debug.writeLine(t2.asString())
debug.writeLine(t3.asString())
debug.writeLine(t... | Objective-J | 2 | justinmann/sj | tests/type1.sj | [
"Apache-2.0"
] |
;;; editor/parinfer/doctor.el -*- lexical-binding: t; -*-
(unless (fboundp 'module-load)
(warn! "Your emacs wasn't built with dynamic modules support. `parinfer-rust-mode' won't work"))
(when (and (eq system-type 'berkeley-unix)
(not (file-readable-p parinfer-rust-library)))
(warn! (concat "Could not re... | Emacs Lisp | 3 | leezu/doom-emacs | modules/editor/parinfer/doctor.el | [
"MIT"
] |
void subroutine(shared int * ptr, shared int * shared * pptr, shared int * shared * shared * ppptr) {
int i;
i = *ptr;
i = **pptr;
i = ***ppptr;
*ptr = i;
**pptr = i;
***ppptr = i;
}
| Unified Parallel C | 1 | maurizioabba/rose | tests/CompileTests/UPC_tests/test2014_05.upc | [
"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 ma... | Thrift | 3 | Jimexist/thrift | test/Recursive.thrift | [
"Apache-2.0"
] |
camera {
location <0,0,0>
look_at <0,0,10>
}
// Yellow ball
sphere {
<-6, 0, 20>, 5
pigment {
color rgb <0.99, 0.83, 0.40>
}
}
// Blue ball
sphere {
<0.2, 0, 10>, 2
pigment {
color rgb <0.42, 0.50, 0.99>
}
}
// Orange ball
sphere {
<4, 1, 10>, 1
pigment {
... | POV-Ray SDL | 4 | spcask/pov-ray-tracing | src/scene01.pov | [
"MIT"
] |
---
title: Message
layout: documentation
doc-tab: components
doc-subtab: message
breadcrumb:
- home
- documentation
- components
- components-message
meta:
colors: true
sizes: true
variables: true
---
{% capture message_example %}
<article class="message">
<div class="message-header">
<p>Hello World</p>
... | HTML | 3 | kalpitzeta/bulma | docs/documentation/components/message.html | [
"MIT"
] |
"""Tests for the TotalConnect alarm control panel device."""
from datetime import timedelta
from unittest.mock import patch
import pytest
from total_connect_client.exceptions import ServiceUnavailable, TotalConnectError
from homeassistant.components.alarm_control_panel import DOMAIN as ALARM_DOMAIN
from homeassistant... | Python | 5 | liangleslie/core | tests/components/totalconnect/test_alarm_control_panel.py | [
"Apache-2.0"
] |
defmodule <%= inspect context.module %>Fixtures do
@moduledoc """
This module defines test helpers for creating
entities via the `<%= inspect context.module %>` context.
"""
end
| Elixir | 4 | faheempatel/phoenix | priv/templates/phx.gen.context/fixtures_module.ex | [
"MIT"
] |
size: 2048px 768px;
dpi: 240;
font: "Latin Modern Roman";
limit-x: 0 7200;
axes {
label-format-x: datetime("%H:%M:%S");
label-placement-x: linear-interval(900 900 7000);
limit-left: 0 100;
label-placement-left: linear-interval(10 10 50);
limit-right: 0 1;
label-placement-right: linear-interval(0.1 0.5 1.0)... | CLIPS | 3 | asmuth-archive/travistest | test/examples/charts_scientific_multiple_y_axes.clp | [
"Apache-2.0"
] |
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build linux && (mips || mipsle)
// +build linux
// +build mips mipsle
#include "textflag.h"
TEXT _rt0_mips_linux(SB),NOSPLIT,$0
JMP _main<>(SB)
TEXT _r... | GAS | 4 | rleungx/go | src/runtime/rt0_linux_mipsx.s | [
"BSD-3-Clause"
] |
import QtQuick.Layouts 1.4
import QtQuick 2.4
import QtQuick.Controls 2.0
import org.kde.kirigami 2.4 as Kirigami
import Mycroft 1.0 as Mycroft
Mycroft.Delegate {
id: systemUrlFrame
skillBackgroundColorOverlay: "#000000"
Loader {
id: webViewUrlLoader
source: "WebViewUrlFrame.qml"
... | QML | 3 | assistent-cat/mycroft-core | mycroft/res/ui/SYSTEM_UrlFrame.qml | [
"Apache-2.0"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "m3.55 18.54 1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8zM11 22.45h2V19.5h-2v2.95zM4 10.5H1v2h3v-2zm11-4.19V1.5H9v4.81C7.21 7.35 6 9.28 6 11.5c0 3.31 2.69 6 6 6s6-... | JavaScript | 3 | good-gym/material-ui | packages/material-ui-icons/lib/esm/WbIncandescent.js | [
"MIT"
] |
Rem
And is a boolean operator that performs the AND function.
End Rem
For i=1 To 10
If i>3 And i<6 Print "!" Else Print i
Next
| BlitzMax | 3 | jabdoa2/blitzmax | mod/brl.mod/blitz.mod/doc/and.bmx | [
"Zlib"
] |
spring.datasource.url=jdbc:h2:mem:baeldung
# JPA-Schema-Generation
# Use below configuration to generate database schema create commands based on the entity models
# and export them into the create.sql file
#spring.jpa.properties.javax.persistence.schema-generation.scripts.action=create
#spring.jpa.properties.javax.p... | INI | 4 | DBatOWL/tutorials | persistence-modules/spring-data-jpa-enterprise/src/main/resources/application.properties | [
"MIT"
] |
interface DefaultLex = {
oper
DictionaryItem08 : Str ;
} | Grammatical Framework | 2 | Site-Command/accelerated-text | core/gf/test_grammars/DefaultLex.gf | [
"Apache-2.0"
] |
--TEST--
Bug #81111: Serialization is unexpectedly allowed on anonymous classes with __serialize()
--FILE--
<?php
class MySplFileInfo extends SplFileInfo {
public function __serialize() { return []; }
public function __unserialize($value) { return new self('file'); }
}
try {
serialize(new MySplFileInfo(__... | PHP | 4 | NathanFreeman/php-src | ext/standard/tests/serialize/bug81111.phpt | [
"PHP-3.01"
] |
// This file contains various functions for printing generated output
staload "SATS/filetype.sats"
staload "SATS/print.sats"
staload "libats/ML/SATS/string.sats"
// Optimized right pad function. In the future, it could return string(k) but
// that would require a different string append function.
fun right_pad { k : i... | ATS | 5 | lambdaxymox/polyglot | DATS/print.dats | [
"BSD-3-Clause"
] |
//tab_size=4
// Copyright 2021 nickmqb
// SPDX-License-Identifier: Apache-2.0
Util {
writeByteHexTo(b byte, sb StringBuilder) {
if b < 16 {
sb.write("0")
}
ulong.writeHexTo(b, sb)
}
format8(n int) {
assert(-(0x80) <= n && n < 0x100)
n &= 0xff
sb := StringBuilder{}
writeByteHexTo(cast(n, byte), ref... | mupad | 4 | nickmqb/fpga_craft | kasm/util.mu | [
"Apache-2.0"
] |
#!/bin/csh
# acov.di: construct gcov files for AMD, di version
gcov -o amd_i_1 amd_1.c
gcov -o amd_i_2 amd_2.c
gcov -o amd_i_aat amd_aat.c
gcov -o amd_i_control amd_control.c
gcov -o amd_i_defaults amd_defaults.c
gcov -o amd_i_info amd_info.c
gcov -o amd_i_order amd_order.c
gcov -o amd_i_post_tree amd_post_tree.c
gcov... | D | 3 | gabrielfougeron/SuiteSparse | UMFPACK/Tcov/acov.di | [
"Apache-2.0"
] |
2016-02-18 21:58:16 > fsociety (whoami@localhost) has joined #systemau
2016-02-18 21:58:16 [21:58]
2016-02-18 21:58:16 - Channel #systemau: 2 nicks (2 ops, 0 halfops, 0 voices, 0 normals)
2016-02-18 21:59:01 - irc: disconnected from server
2016-02-18 21:59:15 > fsociety (whoami@localhost) has joined #systemau
... | IRC log | 0 | 0x4b1dN/2016-dots | misc/weechat/logs/irc.bitlbee.#systemau.weechatlog | [
"MIT"
] |
"""UniFi Protect Platform."""
from __future__ import annotations
import asyncio
from datetime import timedelta
import logging
from aiohttp import CookieJar
from aiohttp.client_exceptions import ServerDisconnectedError
from pyunifiprotect import NotAuthorized, NvrError, ProtectApiClient
from homeassistant.config_entr... | Python | 5 | liangleslie/core | homeassistant/components/unifiprotect/__init__.py | [
"Apache-2.0"
] |
--TEST--
CVE 2013-4073: Null-byte certificate handling
--EXTENSIONS--
openssl
--FILE--
<?php
$cert = file_get_contents(__DIR__ . '/cve2013_4073.pem');
$info = openssl_x509_parse($cert);
var_export($info['extensions']);
?>
--EXPECTF--
array (
'basicConstraints' => 'CA:FALSE',
'subjectKeyIdentifier' => '88:5A:55:C0:... | PHP | 4 | NathanFreeman/php-src | ext/openssl/tests/cve2013_4073.phpt | [
"PHP-3.01"
] |
<?xml version="1.0" encoding="utf-8"?>
<configurationSectionModel xmlns:dm0="http://schemas.microsoft.com/VisualStudio/2008/DslTools/Core" dslVersion="1.0.0.0" Id="dd7352e1-27e2-4af2-88dd-b961e6edc89b" namespace="Samples.Configuration.ExternalTypeSample" xmlSchemaNamespace="urn:Samples.Configuration.ExternalTypeSample... | Csound | 3 | skyhoshi/ConfigurationSectionDesigner | sample/Samples-CSharp/Samples.Configuration/ExternalTypeSample.csd | [
"MIT"
] |
== Introduction ==
This project contains share parent POM for projects in FasterXML repository.
== Usage ==
When starting a new project, please use the already configured _parent pom_ to avoid replicate the same meta inf in every project:
{{{
<parent>
<groupId>com.fasterxml</groupId>
<artifactId>oss-parent</art... | Creole | 3 | GedMarc/oss-parent | README.creole | [
"Apache-2.0"
] |
package com.baeldung.actuator;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.metrics.CounterService;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.mo... | Java | 5 | DBatOWL/tutorials | spring-boot-modules/spring-boot-1/src/test/java/com/baeldung/actuator/LoginServiceUnitTest.java | [
"MIT"
] |
PUT s://]ufd/: HTTP/1.1\r\n
\r\n
| HTTP | 0 | smilerlee/gunicorn | tests/requests/invalid/016.http | [
"MIT"
] |
% Using Solidity grammar
% TXL Parser
include "solidityGrammar.Grm"
define DOSStatement
[NL] 'DOS 'CONDITION 'WARNING '==> [expression]
end define
redefine statement
...
| [DOSStatement]
end redefine
redefine functionDefinition
...
| [empty]
|'VULNERABILITY-IN 'function [opt identifier] [parameterList] [modi... | TXL | 3 | NoamaSamreen93/SmartScan | public/txlexec.txl | [
"MIT"
] |
det : ∀ {M M′ M″}
→ (M —→ M′)
→ (M —→ M″)
--------
→ M′ ≡ M″
det (ξ-·₁ L—→L′) (ξ-·₁ L—→L″) = cong₂ _·_ (det L—→L′ L—→L″) refl
det (ξ-·₁ L—→L′) (ξ-·₂ VL M—→M″) = ⊥-elim (V¬—→ VL L—→L′)
det (ξ-·₁ L—→L′) (β-ƛ _) = ⊥-elim (V¬—→ V-ƛ L—→L′)
det (ξ-·₂ VL _) (ξ-·₁ L—→L″) = ⊥-elim (V¬—→ ... | Literate Agda | 2 | andorp/plfa.github.io | papers/scp/determinism.lagda | [
"CC-BY-4.0"
] |
-- name: create-table-org-secrets
CREATE TABLE IF NOT EXISTS orgsecrets (
secret_id SERIAL PRIMARY KEY
,secret_namespace VARCHAR(50)
,secret_name VARCHAR(200)
,secret_type VARCHAR(50)
,secret_data BYTEA
,secret_pull_request BOOLEAN
,secret_pull_reques... | SQL | 4 | sthagen/drone-drone | store/shared/migrate/postgres/files/012_create_table_org_secrets.sql | [
"Apache-2.0"
] |
(set-logic QF_AUFBV)
(define-fun TRUE () (_ BitVec 1) (_ bv1 1))
(define-fun FALSE () (_ BitVec 1) (_ bv0 1))
(declare-fun zf () (_ BitVec 1))
(declare-fun of () (_ BitVec 1))
(declare-fun sf () (_ BitVec 1))
(assert (= (bvor (bvxor sf of) zf) TRUE))
(check-sat)
(get-model)
| SMT | 4 | o2e/Triton | src/samples/smt/jle.smt2 | [
"Apache-2.0"
] |
enum
{
CONST1,
Float:CONST2, // error
CONST3
};
enum Float:
{
CONST4,
_:CONST5, // error
CONST6
};
enum eNamed1
{
CONST7,
Float:CONST8,
CONST9
};
enum Float:eNamed2
{
CONST10,
Float:CONST11,
CONST12
};
main(){}
| PAWN | 0 | pawn-lang/pawn | source/compiler/tests/anonymous_enum_tags.pwn | [
"Zlib"
] |
ruleset io.picolabs.aca.trust_ping {
meta {
name "Aries Cloud Agent trust_ping protocol"
description <<
Aries RFC 0048: Trust Ping Protocol 1.0
did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/trust_ping/1.0/
https://didcomm.org/trust_ping/1.0/
>>
use module io.picolabs.aca alias aca
prov... | KRL | 5 | Picolab/aries-cloudagent-pico | krl/io.picolabs.aca.trust_ping.krl | [
"MIT"
] |
"""The QR code component."""
| Python | 0 | domwillcode/home-assistant | homeassistant/components/qrcode/__init__.py | [
"Apache-2.0"
] |
# =============================================================
# This script is written to generate structured multi-block
# grid with almost any types of waviness at TE for almost any
# airfoil according to the grid guideline.
#==============================================================
# written by Pay Dehpanah
... | Glyph | 4 | pdpdhp/wavymesher | MeshGuideline.glf | [
"BSD-3-Clause"
] |
foo :: a -> b -> c -> Int -> Maybe Int
factorial :: Num a => a -> a
g :: Ex -> Foo
g :: [Double] -> Int
g :: (Double, Int) -> Maybe Double
g :: b -> B a (D (E g ': h)) -> I [J k] (L m (O (N p ': q)))
g :: forall a. [a] -> [a]
g :: forall a b. (a, b) -> [a]
apply :: proxy d -> (forall g . d g => g a -> b) -> Union fs ... | Haskell | 2 | matsubara0507/semantic | test/fixtures/haskell/corpus/type-signatures.B.hs | [
"MIT"
] |
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
/// <reference no-default-lib="true" />
/// <reference lib="esnext" />
declare namespace globalThis {
declare namespace __bootstrap {
declare namespace console {
declare function createFilteredInspectProxy<TObject>(params: {
... | TypeScript | 3 | hkmatsumoto/deno | ext/console/internal.d.ts | [
"MIT"
] |
/*
Compile: mtasc -version 8 -swf Exploit.swf -main -header 800:600:20 Exploit.as
Author: 0a29406d9794e4f9b30b3c5d6702c708 / Unknown / metasploit
PoC: http://downloads.securityfocus.com/vulnerabilities/exploits/32896.as
*/
import flash.external.ExternalInterface;
class Exploit {
public function randname(newLength... | ActionScript | 0 | OsmanDere/metasploit-framework | external/source/exploits/CVE-2008-5499/Exploit.as | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
<http://a.example/s> <http://a.example/p> '''
''' .
| Turtle | 0 | joshrose/audacity | lib-src/lv2/serd/tests/TurtleTests/literal_with_CARRIAGE_RETURN.ttl | [
"CC-BY-3.0"
] |
[{"Name":"SQL_Message_Detected","Enabled":true,"Scanner":2,"Author":"@six2dez1","UrlEncode":false,"Grep":["true,Or,(Exception (condition )?\\d+\\. Transaction rollback|com\\.frontbase\\.jdbc|org\\.h2\\.jdbc|Unexpected end of command in statement \\[\"|Unexpected token.*?in statement \\[|org\\.hsqldb\\.jdbc|CLI Driver.*... | BitBake | 3 | 5m477/BurpBounty | profiles/SQL_Message_Detected.bb | [
"Apache-2.0"
] |
--TEST--
mysqli_report()
--EXTENSIONS--
mysqli
--SKIPIF--
<?php
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php
require_once("connect.inc");
if (true !== ($tmp = mysqli_report(-1)))
printf("[002] Expecting boolean/true even for invalid flags, got %s/%s\n", gettype($tmp), $tmp);
if (tru... | PHP | 4 | Mohammedziad599/php-src | ext/mysqli/tests/mysqli_report.phpt | [
"PHP-3.01"
] |
fun main () : transaction page = return <xml><body>
{[ 1 < 1 ]}, {[ 1 < 2 ]}, {[ 1 <= 1 ]}, {[ 2 <= 1 ]}, {[ 1 > 1 ]}, {[ 2 > 1 ]}, {[ 0 >= 1 ]}, {[ 2 >= 1 ]}<br/>
{[ 1.0 < 1.0 ]}, {[ 1.0 < 2.0 ]}, {[ 1.0 <= 1.0 ]}, {[ 2.0 <= 1.0 ]}, {[ 1.0 > 1.0 ]}, {[ 2.0 > 1.0 ]}, {[ 0.0 >= 1.0 ]}, {[ 2.0 >= 1.0 ]}<br/>
{[ Tru... | UrWeb | 1 | apple314159/urweb | tests/ord.ur | [
"BSD-3-Clause"
] |
it("should allow empty urls", () => {
const url = new URL("data:,", import.meta.url);
expect(url.href).toBe("data:,");
expect(url.protocol).toBe("data:");
expect(url.pathname).toBe(",");
});
it("should allow empty urls with mimetype", () => {
const url = new URL("data:test,", import.meta.url);
expect(url.href).t... | JavaScript | 4 | fourstash/webpack | test/configCases/asset-modules/input-data-url/index.js | [
"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:html' as html;
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:meta/dart2js.dart';
// Tests... | Dart | 4 | Mayb3Nots/flutter | dev/integration_tests/web/lib/framework_stack_trace.dart | [
"BSD-3-Clause"
] |
# EJERCICIO 2
En el ejercicio 2 lo primero que hice fue realizar la estructura del patron decorador a partir del ejercicio 1:
## Estructura
- PaginaWeb: clase que representa un documento que se puede mostrar en un navegador web.
- Component: Interfaz comun a los manejadores concretos, los métodos en común son: buscad... | RMarkdown | 5 | bryanbalderas/DAS_Sistemas | Ene-Jun-2021/monjaras-granados-alicia-montserrat/Primer Parcial/ejercicio 2/readme.rmd | [
"MIT"
] |
@echo off
rem run xstyler on xaml files
powershell -noprofile "import-module %OPENCON_TOOLS%\openconsole.psm1; Invoke-XamlFormat"
| Batchfile | 4 | hessedoneen/terminal | tools/runxamlformat.cmd | [
"MIT"
] |
require "./types"
require "../signal"
lib LibC
WNOHANG = 1
fun waitpid(x0 : PidT, x1 : Int*, x2 : Int) : PidT
end
| Crystal | 3 | jessedoyle/crystal | src/lib_c/x86_64-openbsd/c/sys/wait.cr | [
"Apache-2.0"
] |
.visible-phone{display:none}.visible-desktop{display:block}.navbar{display:block}.navbar .container{padding:0 16px;width:auto}.navbar .brand{float:left;margin:8px 80px 0 8px;padding:0}.navbar .brand a{display:block;height:30px;margin:6px 0 5px 0;overflow:hidden;padding:0;width:117px}.navbar .nav{float:right}.navbar .na... | CSS | 3 | Syamil08/project_besar | assets/libs/angular/docs/css/angular-topnav.css | [
"MIT"
] |
# This example shows how to handle silent installers.
# In short, you need IfSilent and the /SD switch for MessageBox to make your installer
# really silent when the /S switch is used.
Name "Silent"
OutFile "silent.exe"
RequestExecutionLevel user
# uncomment the following line to make the installer silent by default.... | NSIS | 4 | vbillet/Torque3D | Engine/bin/tools/nsis/app/Examples/silent.nsi | [
"MIT"
] |
source "../tests/includes/init-tests.tcl"
source "../tests/includes/job-utils.tcl"
test "Acks work in the single node case" {
set id [D 0 addjob myqueue myjob 0 replicate 1]
assert {[D 0 show $id] ne {}}
D 0 ackjob $id
assert {[D 0 show $id] eq {}}
}
test "Acks are propagated in the cluster" {
set... | Tcl | 5 | justincase/disque | tests/cluster/tests/05-acks.tcl | [
"BSD-3-Clause"
] |
# Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Python | 4 | NasTul/models | official/core/actions_test.py | [
"Apache-2.0"
] |
// RUN: not %target-swift-frontend -typecheck %s
struct CommandContext<Command> {
init() {
let input = [1,2,3].filter {
extension CommandContext {
struct Options {
subscript<T>(path: T) -> Int {
fatalError()
}
}
}
| Swift | 2 | gandhi56/swift | validation-test/compiler_crashers_2_fixed/rdar58813746.swift | [
"Apache-2.0"
] |
// run-pass
struct A {
pub x: u32,
pub y: u32,
}
fn main() {
let mut a = A { x: 1, y: 1 };
a = A { x: a.y * 2, y: a.x * 2 };
assert_eq!(a.x, 2);
assert_eq!(a.y, 2);
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/issues/issue-16602-2.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
unit Msi;
{
Inno Setup
Copyright (C) 1997-2020 Jordan Russell
Portions by Martijn Laan
For conditions of distribution and use, see LICENSE.TXT.
MSI functions
}
interface
function IsMsiProductInstalled(const UpgradeCode: String; const PackedMinVersion: Int64; var ErrorCode: Cardinal): Boolean;... | Pascal | 4 | mqt635/issrc | Projects/Msi.pas | [
"FSFAP"
] |
# -*- perl -*-
use strict;
use warnings;
use tests::tests;
check_expected ([<<'EOF', <<'EOF']);
(mmap-bad-fd) begin
(mmap-bad-fd) try to mmap invalid fd
(mmap-bad-fd) end
mmap-bad-fd: exit(0)
EOF
(mmap-bad-fd) begin
(mmap-bad-fd) try to mmap invalid fd
mmap-bad-fd: exit(-1)
EOF
pass;
| ChucK | 2 | nguyenvannam2698/os_pintos_20211 | src/tests/vm/mmap-bad-fd.ck | [
"MIT"
] |
module Error where
syntax error causing compile error
| Haskell | 0 | Unknoob/buck | test/com/facebook/buck/features/haskell/testdata/binary_test/Error.hs | [
"Apache-2.0"
] |
config_rfn="iA Writer"
config_rfn_substitue="iM Writing"
| INI | 0 | th3cyb3rc0p/nerd-fonts | src/unpatched-fonts/iA-Writer/config.cfg | [
"MIT"
] |
include "java.grm"
#pragma -raw -char -newline -comment -width 32767
redefine program
[repeat programelement]
end define
define programelement
[newline]
| [comment]
| [token]
| [key]
| [newline]
end define
function main
replace [program]
P [program]
by
P [fixNLComments][fixOtherComments]
end function
rule ... | TXL | 3 | pseudoPixels/SourceFlow | txl_features/txl_features/java/removecomments.txl | [
"MIT"
] |
{
"devDependencies": {
"shared": "~2.3.0"
}
}
| JSON | 0 | 1shenxi/webpack | test/configCases/sharing/consume-multiple-versions/node_modules/my-module2/package.json | [
"MIT"
] |
01 TRANSDATA.
05 CURRENCY PIC X(3).
05 SIGNATURE PIC X(8).
05 COMPANY-NAME-NP PIC X(15).
05 COMPANY-ID PIC X(10).
05 WEALTH-QFY PIC 9(1).
05 AMOUNT PIC S9(09)V99 BINARY.
| COBOL | 3 | gryphus-lab/kafka-connect-fs | src/test/resources/file/reader/data/cobol/code-pages.cpy | [
"Apache-2.0"
] |
<mt:entries>
<article class="entry clearfix">
<mt:if tag="entry_img">
<figure><mt:entry_imgasset><img src="<mt:assetthumbnailurl width="300">"></mt:entry_imgasset></figure>
</mt:if>
<div class="entry-meta">
<time datetime="<mt:EntryDate for... | MTML | 3 | movabletype/mt-theme-SimpleCorporate | themes/simplecorporate/templates/entry_list.mtml | [
"MIT"
] |
import requests
import pytest
from context import PytestConf
"""
NOTE:
These endpoints are admin-only
"dev/ekg"
"dev/plan_cache"
"dev/subscriptions"
"dev/subscriptions/extended"
This needs RTS to be enabled and mainly used for benchmarking:
(hence not adding any tests for this)
"dev/... | Python | 5 | gh-oss-contributor/graphql-engine-1 | server/tests-py/test_dev_endpoints.py | [
"Apache-2.0",
"MIT"
] |
SEARCHEVENTS = load '/searchevents/${YEAR}/${MONTH}/${DAY}/${HOUR}' using JsonLoader('${JSONSCHEMA}');
-- DUMP SEARCHEVENTS;
SEARCHEVENTS_data = FOREACH SEARCHEVENTS GENERATE eventid, customerid, clickeddocid ;
-- DUMP SEARCHEVENTS_data;
STORE SEARCHEVENTS_data INTO '/tmp/PIGSEARCHEVENTS_data_${YEAR}_${MONTH}_${DAY}_$... | PigLatin | 4 | lijhgithub/searchanalytics-bigdata | src/main/resources/pig/count-unique-customerids.pig | [
"MIT"
] |
# Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | Python | 5 | KiryanovKD/models | official/nlp/modeling/layers/position_embedding_test.py | [
"Apache-2.0"
] |
package com.baeldung.errorhandling;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication(scanBasePackages = "com.baeldung.errorhandling")
public class ErrorHandlingApplication {
public static void main(String [] args) {
... | Java | 4 | DBatOWL/tutorials | spring-boot-modules/spring-boot-basic-customization/src/main/java/com/baeldung/errorhandling/ErrorHandlingApplication.java | [
"MIT"
] |
default
{
state_entry()
{
llSay( 0, "I am Alive!");
}
touch_start(integer number_of_touchs)
{
llSay( 0, "Touched.");
}
}
| LSL | 3 | defraged/opensim | bin/assets/ScriptsAssetSet/DefaultSayAndTouch.lsl | [
"BSD-3-Clause"
] |
# This jq script removes empty items. Theoretically Protobuf's JSON
# converter should do this, but it's inconsistent between language
# implementations.
#
# Original source:
# https://github.com/stedolan/jq/issues/104#issuecomment-338478029
def walk(f):
. as $in
| if type == "object" then
reduce keys_unsort... | JSONiq | 4 | marcelosousa/git-town | vendor/github.com/cucumber/gherkin-go/v11/remove_empty.jq | [
"MIT"
] |
#import <Foundation/Foundation.h>
#import <AFNetworking/AFURLRequestSerialization.h>
{{>licenceInfo}}
@interface {{classPrefix}}JSONRequestSerializer : AFJSONRequestSerializer
@end
| HTML+Django | 2 | MalcolmScoffable/openapi-generator | modules/openapi-generator/src/main/resources/objc/JSONRequestSerializer-header.mustache | [
"Apache-2.0"
] |
/**
* @brief You will learn how to recover an image with motion blur distortion using a Wiener filter
* @author Karpushin Vladislav, karpushin@ngs.ru, https://github.com/VladKarpushin
*/
#include <iostream>
#include "opencv2/imgproc.hpp"
#include "opencv2/imgcodecs.hpp"
using namespace cv;
using namespace std;
void ... | C++ | 5 | thisisgopalmandal/opencv | samples/cpp/tutorial_code/ImgProc/motion_deblur_filter/motion_deblur_filter.cpp | [
"BSD-3-Clause"
] |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime version: 4.0.30319.42000
// Generator : XSharp.CodeDomProvider 2.8.0.0
// Timestamp : 22/09/2021 16:49:55
//
// Changes to this file ... | xBase | 4 | orangesocks/XSharpPublic | Tools/UDCTester/Settings.Designer.prg | [
"Apache-2.0"
] |
// run-pass
// This test illustrates that under NLL, we can remove our overly
// conservative approach for disallowing mutations of match inputs.
// See further discussion on rust-lang/rust#24535,
// rust-lang/rfcs#1006, and rust-lang/rfcs#107
fn main() {
rust_issue_24535();
rfcs_issue_1006_1();
rfcs_issu... | Rust | 5 | Eric-Arellano/rust | src/test/ui/issues/issue-24535-allow-mutable-borrow-in-match-guard.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
function pkc --description 'read the content to copy to the piknik clipboard from STDIN'
piknik -copy;
end
| fish | 3 | Shark/piknik | fish-shell/functions/pkc.fish | [
"BSD-2-Clause"
] |
\\ Copyright (c) 2012-2021 Bruno Deferrari. All rights reserved.
\\ BSD 3-Clause License: http://opensource.org/licenses/BSD-3-Clause
(package _scm [%%goto-label %%let-label %%return scm.begin scm.define scm.]
\*
# Pattern factorization optimization
## Chez specifics
Chez doesn't provide an efficient GOTO-like co... | Shen | 5 | felixr/shen-scheme | src/factorize-patterns.shen | [
"BSD-3-Clause"
] |
// @has builtin_macros/index.html
// @has - '//a/@href' '{{channel}}/core/macro.cfg.html'
//! [cfg]
| Rust | 0 | mbc-git/rust | src/test/rustdoc/intra-doc/builtin-macros.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
fn id<T>(x: T) -> T { x }
const FOO: usize = 3;
fn foo() -> &'static usize { &id(FOO) }
//~^ ERROR: cannot return reference to temporary value
fn main() {
}
| Rust | 4 | Eric-Arellano/rust | src/test/ui/issues/issue-17718-constants-not-static.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
package com.baeldung.algorithms.ga.annealing;
import lombok.Data;
@Data
public class City {
private int x;
private int y;
public City() {
this.x = (int) (Math.random() * 500);
this.y = (int) (Math.random() * 500);
}
public double distanceToCity(City city) {
int x = Math.... | Java | 4 | zeesh49/tutorials | algorithms/src/main/java/com/baeldung/algorithms/ga/annealing/City.java | [
"MIT"
] |
%%%
%%% Authors:
%%% Kostantin Popov (popov@ps.uni-sb.de)
%%%
%%% Contributors:
%%% Christian Schulte <schulte@ps.uni-sb.de>
%%%
%%% Copyright:
%%% Konstantin Popov, 1997
%%%
%%% Last change:
%%% $Date$ by $Author$
%%% $Revision$
%%%
%%% This file is part of Mozart, an implementation
%%% of Oz 3
%%% http:/... | Oz | 4 | Ahzed11/mozart2 | lib/tools/browser/Browser.oz | [
"BSD-2-Clause"
] |
package com.baeldung.actuator;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.autoconfigure.LocalMana... | Java | 4 | DBatOWL/tutorials | spring-boot-modules/spring-boot-1/src/test/java/com/baeldung/actuator/HealthCheckIntegrationTest.java | [
"MIT"
] |
import QtQuick 2.0
import QtQuick.Controls 1.0
import QtQuick.Layouts 1.0
Column {
id: page
spacing: 8
property var bootstrap: torControl.bootstrapStatus
onBootstrapChanged: {
if (bootstrap['tag'] === "done")
window.networkReady()
}
Label {
//: \u2026 is ellipsis
... | QML | 3 | garrettr/ricochet | src/ui/qml/TorBootstrapStatus.qml | [
"OpenSSL"
] |
#!/bin/bash
#call this code direction from the web with:
#bash <(wget -O - https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/installpsh-gentoo.sh) ARGUMENTS
#bash <(curl -s https://raw.githubusercontent.com/PowerShell/PowerShell/master/tools/installpsh-gentoo.sh) <ARGUMENTS>
#Usage - if you do not ... | Shell | 4 | rdtechie/PowerShell | tools/installpsh-gentoo.sh | [
"MIT"
] |
// run-pass
// Test that we are able to infer that the type of `x` is `isize` based
// on the expected type from the object.
// pretty-expanded FIXME #23616
pub trait ToPrimitive {
fn to_int(&self) {}
}
impl ToPrimitive for isize {}
impl ToPrimitive for i32 {}
impl ToPrimitive for usize {}
fn doit<T,F>(val: T, ... | Rust | 4 | Eric-Arellano/rust | src/test/ui/unboxed-closures/unboxed-closures-infer-arg-types-w-bound-regs-from-expected-bound.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
module Lang
pub type dict[#k, #v] {
keys : array[#k],
vals : array[#v]
}
impl dict[#k(Eq), #v] {
fn index (key : #k) {
let i = 0;
let len = self.(keys).len();
while i < len {
if self.(keys)[i] == key {
return i
} else {
i = i.succ()
}
};
-1
}
fn find (key : #k) {
... | Opal | 4 | iitalics/Opal | opal_libs/Lang/dict.opal | [
"MIT"
] |
server {
server_name www.eventex.com.br;
rewrite ^(.*) https://eventex.com.br$1 permanent;
}
server {
listen 80;
server_name eventex.com.br *.eventex.com.br;
rewrite ^(.*) https://$host$1 permanent;
}
server {
listen 443 ssl;
server_name stage.eventex.com.br;
charset utf-8;
ssl_certific... | ApacheConf | 4 | henriquebastos/jetpack | host/nginx.vhost | [
"MIT"
] |
;;;
;;; Parse the pgloader commands grammar
;;;
(in-package :pgloader.parser)
;;;
;;; Regular Expression support, quoted as-you-like
;;;
(defun process-quoted-regex (pr)
"Helper function to process different kinds of quotes for regexps"
(bind (((_ regex _) pr))
(list :regex (text regex))))
(defrule single-qu... | Common Lisp | 5 | micaelle/pgloader | src/parsers/command-regexp.lisp | [
"PostgreSQL"
] |
{
"Version" : 0.2,
"ModuleName" : "Installer",
"Options" : {
"Warnings" : "All",
"PreprocessorDefinitions" : [
],
"TargetType" : "Executable",
"TargetFileName" : "setup-ecere-0.44.15-win32",
"Libraries" : [
"ole32",
"uuid",
"winmm",
"mpr"... | Ecere Projects | 2 | N-eil/ecere-sdk | installer/Installer.epj | [
"BSD-3-Clause"
] |
#!/usr/bin/perl -wT
use strict;
print "Content-Type: application/x-unknown-type\n\n";
print "This is a mock plugin of a type that WebKit doesn't natively understand.";
| Perl | 2 | zealoussnow/chromium | third_party/blink/web_tests/http/tests/plugins/resources/mock-plugin-unknown-type.pl | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
.slide-banner
.banner-wrapper
position relative
.slide-banner-wrapper
min-height 1px
overflow hidden
.slide-banner-content
height 200px
white-space nowrap
font-size 0
.slide-page
display inline-block
height 200px
width 100%
line-height 200px
text-align cen... | Stylus | 3 | cym2050/better-scroll | packages/react-examples/src/pages/slide/index.styl | [
"MIT"
] |
>DL;HLA:HLA00132
HLA:HLA00132 B*07021, 1089 bases, F6C5DB26 checksum.
ATGCTGGTCA TGGCGCCCCG AACCGTCCTC CTGCTGCTCT CGGCGGCCCT
GGCCCTGACC GAGACCTGGG CCGGCTCCCA CTCCATGAGG TATTTCTACA
CCTCCGTGTC CCGGCCCGGC CGCGGGGAGC CCCGCTTCAT CTCAGTGGGC
TACGTGGACG ACACCCAGTT CGTGAGGTTC GACAGCGACG CCGCGAGTCC
GAGAGAGGAG CCGCGGGCGC CGT... | Parrot Internal Representation | 2 | lukasz-kozlowski/biopython | Tests/NBRF/B_nuc.pir | [
"BSD-3-Clause"
] |
#pragma rtGlobals=3 // Use modern global access method and strict wave access.
//-------------------------------------------------------------------------------
// Schroedinger_SOLVER
//-------------------------------------------------------------------------------
// July 2013
//
// Schroedinger_S... | IGOR Pro | 5 | ajnavarro/language-dataset | data/github.com/chumo/Schroedinger_SOLVER-IgorPRO/213cf6ef19fffb5aca329deac5a141b229faa056/Schroedinger_SOLVER.ipf | [
"MIT"
] |
#include "script_component.hpp"
/*
Name: TFAR_backpacks_fnc_onButtonClick_Enter
Author: Dorbedo
Button "Enter" was pressed
Arguments:
0: Edit control or IDC <CONTROL/SCALAR>
Return Value:
Nothing
Example:
[TF_lr_dialog_radio displayCtrl IDC_ANPRC152_EDIT] call TFAR_backpacks_fnc_onButtonC... | SQF | 4 | MrDj200/task-force-arma-3-radio | addons/backpacks/functions/fnc_onButtonClick_Enter.sqf | [
"RSA-MD"
] |
void start (int min, int max) {
int try_count = 0;
int number = Random.int_range (min, max);
stdout.printf ("Bienvenido a Adivina el número\n\n");
stdout.printf ("Tengo pensado un número entre %d y %d, ", min, max);
stdout.printf ("el cual tienes que adivinar. Pero tranquilo, ... | Vala | 4 | kennethsequeira/Hello-world | Vala/count.vala | [
"MIT"
] |
--TEST--
Fixed #69166 (Assigning array_values() to array does not reset key counter)
--FILE--
<?php
$array = [0];
$ar = array_values($array);
$ar[] = 1;
var_dump($ar);
?>
--EXPECT--
array(2) {
[0]=>
int(0)
[1]=>
int(1)
}
| PHP | 4 | thiagooak/php-src | ext/standard/tests/array/bug69166.phpt | [
"PHP-3.01"
] |
////////////////////////////////////////////////////
// Wavetable - User-definable Wavetable with //
// various interpolation algorithms //
// //
// by Joel Matthys //
// (c) 2016, GPL 2.0 //
//... | ChucK | 5 | ccdarabundit/chugins | Wavetable/wavetable-help.ck | [
"MIT"
] |
<patch-1.0 appVersion="1.0.12">
<obj type="gpio/in/analog" uuid="1c0c845ed2d7e06ae5f377ba13d9d09f4747ac87" name="analog_1" x="0" y="0">
<params/>
<attribs>
<combo attributeName="channel" selection="PA0 (ADC1_IN0)"/>
</attribs>
</obj>
<obj type="drj/math/inv_pos" uuid="ae23d42592d86ae... | NetLinx | 3 | KaiDrange/Axoloti-Block | Axoloti/patches/BlocksControls.axs | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.