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 |
|---|---|---|---|---|---|
Import mojo
Function Main()
Local app := New MyApp
End
Class MyApp Extends App
Method OnCreate()
Local segment:Segment
segment = New Segment(20,460,255,0,0,Null)
Local flag := False
For Local count := 0 To 30
If flag = False
segment = New Segment(0,0,255,255,255,segment)
flag = True
... | Monkey | 4 | blitz-research/monkey | bananas/skn3/spiralmatrix/spiralmatrix.monkey | [
"Zlib"
] |
package com.baeldung.apache.commons;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.apache.commons.c... | Java | 5 | DBatOWL/tutorials | libraries-6/src/test/java/com/baeldung/apache/commons/CollectionsUnitTest.java | [
"MIT"
] |
CXX=icl
CXXOPTS=/Ox /GX /GR -Wall -Qwd383,981,193 -c $(INCLUDES) -I$(TUT) -DTUT_USE_SEH /Fo
LNK=link
LNKOPTS=/link $(LIBS) /OUT:
SFX=_icl.exe
OFX=_icl.obj
RM=del
| Clean | 3 | wohaaitinciu/zpublic | 3rdparty/tut/Makefile.icl | [
"Unlicense"
] |
/*
* Varnish 4 example config for Drupal 7 & 8 / Pressflow 6 & 7
*/
# Original source: https://github.com/NITEMAN/varnish-bites/varnish4/drupal-base.vcl
# Copyright (c) 2015 Pedro González Serrano and individual contributors.
# MIT License
# Intended to be used both in simple production environments and with
# lear... | VCL | 5 | Roll-Forward/docker-varnish | example.vcl | [
"Apache-2.0"
] |
// Color abstraction hierarchy:
// 1. Hex code (#428bca)
// 2. Common color name (@blue)
// 3. Generic color descriptor (@accent-primary, @background-primary)
// --------
// 4. Generic usage descriptor (@input-background, @button-background)
// 5. Application-specific usage (@unread-label-background)
// Typography abs... | Less | 5 | cnheider/nylas-mail | packages/client-app/static/variables/ui-variables.less | [
"MIT"
] |
package com.baeldung.algorithms.minheapmerge;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import org.junit.Test;
public class MinHeapUnitTest {
private final int[][] inputArray = { { 0, 6 }, { 1, 5, 10, 100 }, { 2, 4, 20... | Java | 4 | DBatOWL/tutorials | algorithms-miscellaneous-6/src/test/java/com/baeldung/algorithms/minheapmerge/MinHeapUnitTest.java | [
"MIT"
] |
-module(petstore_api_response).
-export([encode/1]).
-export_type([petstore_api_response/0]).
-type petstore_api_response() ::
#{ 'code' => integer(),
'type' => binary(),
'message' => binary()
}.
encode(#{ 'code' := Code,
'type' := Type,
'message' := Message
}) ->
... | Erlang | 4 | MalcolmScoffable/openapi-generator | samples/client/petstore/erlang-client/src/petstore_api_response.erl | [
"Apache-2.0"
] |
if w2nn and w2nn.LeakyReLU then
return w2nn.LeakyReLU
end
local LeakyReLU, parent = torch.class('w2nn.LeakyReLU','nn.Module')
function LeakyReLU:__init(negative_scale)
parent.__init(self)
self.negative_scale = negative_scale or 0.333
self.negative = torch.Tensor()
end
function LeakyReLU:updateOutput(in... | Lua | 4 | Nyanarchy/waifu2x | lib/LeakyReLU.lua | [
"MIT"
] |
AudioBufferSource id2 { url https://raw.githubusercontent.com/borismus/webaudioapi.com/master/content/posts/audio-tag/chrono.mp3
, loop true} [ gain ]
Gain gain { gain 2 } [ conv ]
Convolver conv { url assets/ogg/irHall.ogg } [ output ]
End | Augeas | 2 | newlandsvalley/purescript-audiograph | audiograph-editor/dist/augsamples/Convolution.aug | [
"MIT"
] |
SELECT * { } BINDINGS ?x ?y { (1 2) }
| SPARQL | 0 | yanaspaula/rdf4j | testsuites/sparql/src/main/resources/testcases-sparql-1.1-w3c/syntax-query/syntax-bindings-05.rq | [
"BSD-3-Clause"
] |
__kernel_virt_addr_space_size = 2 * 1024 * 1024 * 1024
| Linker Script | 0 | TomaszWaszczyk/rust-raspberrypi-OS-tutorials | 16_virtual_mem_part4_higher_half_kernel/src/bsp/raspberrypi/kernel_virt_addr_space_size.ld | [
"Apache-2.0",
"MIT"
] |
coclass 'TestKNN'
coinsert 'TestBase'
create=: 3 : 0
''
)
test1=: 3 : 0
D=: 99 3 $ , (=@i.) 3
R=: D
knn=: (D;R;7;D) conew 'KNN'
predict__knn ''
(33 33 33&-:@:(#/.~)) assertTrue maxClasses__knn
)
run=: 3 : 0
test1 testWrapper 'Knn test 1'
''
)
destroy=: 3 : 0
if. -. knn-: '' do. destroy__knn '' end.
codestro... | J | 3 | jonghough/jlearn | test/testknn.ijs | [
"MIT"
] |
;;; lang/lua/autoload/lua.el -*- lexical-binding: t; -*-
(defun +lua-love-build-command ()
(when-let (root (+lua-love-project-root))
(format "%s %s"
(if (executable-find "love")
"love"
(if IS-MAC "open -a love.app"))
(shell-quote-argument root))))
;;;###auto... | Emacs Lisp | 5 | leezu/doom-emacs | modules/lang/lua/autoload/lua.el | [
"MIT"
] |
At: "local-02.hac":4:
parse error: syntax error
parser stacks:
state value
#STATE# (null)
#STATE# keyword: chan [4:1..4]
#STATE# ! [4:5]
in state #STATE#, possible rules are:
base_chan_type: CHANNEL . data_type_ref_list_optional_in_parens (#RULE#)
acceptable tokens are:
'(' (shift)
| Bison | 1 | broken-wheel/hacktist | hackt_docker/hackt/test/parser/channel/local-02.stderr.bison | [
"MIT"
] |
%%---------------------------------------------------------------------------
%% A test case with:
%% - a genuine matching error -- 1st branch
%% - a violation of the opacity of timer:tref() -- 2nd branch
%% - a subtle violation of the opacity of timer:tref() -- 3rd branch
%% The test is supposed to check th... | Erlang | 4 | jjhoo/otp | lib/dialyzer/test/opaque_SUITE_data/src/timer/timer_use.erl | [
"Apache-2.0"
] |
#%RAML 0.8
---
title: Starhackit
baseUri: http://localhost:8080/api/v1/db
version: v1
mediaType: application/json
protocols: [ HTTP, HTTPS ]
documentation:
- title: Database Explorer REST API
content: 'Database Explorer REST API documentation'
/schema:
description: Get the database schema
get:
responses:
... | RAML | 3 | surumen/msoma.org | server/src/plugins/dbSchema/raml/db.explorer.raml | [
"Unlicense"
] |
2019-09-18 23:34:59 --> kky (~kky@103.117.23.112) has joined #Root-Me
2019-09-18 23:35:00 -- Channel #Root-Me: 5 nicks (1 op, 0 voices, 4 normals)
2019-09-18 23:35:02 -- Channel created on Fri, 12 Feb 2010 22:34:49
2019-09-18 23:35:14 kky how come this is so deserted
2019-09-18 23:35:21 -- irc: disconnected from server... | IRC log | 0 | akshaykumar23399/DOTS | weechat/logs/irc.freenode.#root-me.weechatlog | [
"Unlicense"
] |
<?xml version="1.0"?>
<!DOCTYPE rdf:RDF [
<!ENTITY owl "http://www.w3.org/2002/07/owl#" >
<!ENTITY dc "http://purl.org/dc/elements/1.1/" >
<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
<!ENTITY owl2xml "http://www.w3.org/2006/12/owl2-xml#" >
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema... | Web Ontology Language | 4 | VishalS711/protege | protege-editor-owl/src/test/resources/ontologies/photography.owl | [
"BSD-2-Clause"
] |
= Preface
== Welcome
This electronic book is a course on _Software Foundations_, the mathematical
underpinnings of reliable software. Topics include basic concepts of logic,
computer-assisted theorem proving, the Idris programming language, functional
programming, operational semantics, Hoare logic, and static type s... | Idris | 4 | diseraluca/software-foundations | src/Preface.lidr | [
"MIT"
] |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | C | 5 | Aoikiseki/folly | folly/concurrency/CoreCachedSharedPtr.h | [
"Apache-2.0"
] |
import numpy as np
import pytest
from pandas import (
DatetimeIndex,
Index,
NaT,
PeriodIndex,
TimedeltaIndex,
timedelta_range,
)
import pandas._testing as tm
def check_freq_ascending(ordered, orig, ascending):
"""
Check the expected freq on a PeriodIndex/DatetimeIndex/TimedeltaIndex
... | Python | 5 | 13rianlucero/CrabAgePrediction | crabageprediction/venv/Lib/site-packages/pandas/tests/indexes/datetimelike_/test_sort_values.py | [
"MIT"
] |
FROM node:14
WORKDIR /code
COPY package.json /code/package.json
COPY package-lock.json /code/package-lock.json
RUN npm install
COPY . /code
CMD ["npm", "run", "dev"]
| Dockerfile | 3 | praniya-tech/AdminLTE | Dockerfile | [
"MIT"
] |
--TEST--
JIT FETCH_DIM_R: 008
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
--FILE--
<?php
function &test() { return $x; }
test()[1];
?>
DONE
--EXPECTF--
Warning: Trying to access array offset on value of type null in %sfetch_dim_r_008.php on line 3
DONE
| PHP | 2 | NathanFreeman/php-src | ext/opcache/tests/jit/fetch_dim_r_008.phpt | [
"PHP-3.01"
] |
import named from "./a";
export { named }
| JavaScript | 1 | 1shenxi/webpack | test/cases/scope-hoisting/indirect-reexport/b.js | [
"MIT"
] |
functor
import
FS
Search
export
Return
define
Bits = 7 % maximal domain (7 bit, ie, 128 codes)
Dist = 2 % minimal hamming distance
Num = 16 % number of variables
Top = {FS.value.make [1#Bits]}
proc {MinDist X Y}
Common1s = {FS.intersect X Y}
Common0s = {FS.complIn ... | Oz | 3 | Ahzed11/mozart2 | platform-test/fs/hamming.oz | [
"BSD-2-Clause"
] |
/**
* IMPORTANT: must compile with JFlex 1.4, JFlex 1.4.3 seems buggy with look-ahead
*
* How to generate StrptimeLexer.java
* 1. Download and install JFlex 1.4 from https://sourceforge.net/projects/jflex/files/jflex/1.4/
* 2. Execute bin/jflex command to generate StrptimeLexer.java
* $ bin/jflex core/src/main... | JFlex | 4 | barrhaim/jruby | core/src/main/java/org/jruby/lexer/StrptimeLexer.flex | [
"Ruby",
"Apache-2.0"
] |
with Ada.Strings.Unbounded;
use Ada.Strings.Unbounded;
package body Gilded_Rose is
procedure Update_Quality(Self : in out Gilded_Rose) is
Cursor : Item_Vecs.Cursor := Item_Vecs.First(Self.Items);
begin
while Item_Vecs.Has_Element(Cursor) loop
if Self.Items(Cursor).Name /= To_Unbounded_String("Aged Br... | Ada | 3 | yangyangisyou/GildedRose-Refactoring-Kata | Ada/gilded_rose.adb | [
"MIT"
] |
//MOC-FLAG --actor-idl bad-actor-import5
import imported1 "canister:foo";
//SKIP run
//SKIP run-ir
//SKIP run-low
//SKIP comp
| Modelica | 1 | olaszakos/motoko | test/fail/bad-actor-import5.mo | [
"Apache-2.0"
] |
// https://dom.spec.whatwg.org/#interface-documentfragment
[Exposed=Window]
interface DocumentFragment : Node {
constructor();
};
| WebIDL | 3 | Unique184/jsdom | lib/jsdom/living/nodes/DocumentFragment.webidl | [
"MIT"
] |
def gen_keywords [] {
let cmds = (help commands | where description != '' | get name | str collect '|')
let var_with_dash_or_under_regex = "(([a-zA-Z]+[\\-_]){1,}[a-zA-Z]+\\s)"
let preamble = "\\b("
let postamble = ")\\b"
$'"match": "($var_with_dash_or_under_regex)|($preamble)($cmds)($postamble)",'
... | Nu | 3 | x3rAx/nu_scripts | make_release/gen-js-ext.nu | [
"MIT"
] |
package gw.specContrib.classes
uses java.lang.Runnable
enhancement Errant_EnhancementNotNamedAfterFile_222: String { //## issuekeys: MSG_WRONG_CLASSNAME
function test() {
new Runnable(){
override function run() {
}
}.run()
}
}
| Gosu | 3 | tcmoore32/sheer-madness | gosu-test/src/test/gosu/gw/specContrib/classes/Errant_EnhancementNotNamedAfterFile.gsx | [
"Apache-2.0"
] |
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="20dp"
android:height="20dp"
android:viewportWidth="20"
android:viewportHeight="20"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M11.5,5l-0.31,-... | XML | 3 | Imudassir77/material-design-icons | android/image/assistant_photo/materialiconsround/black/res/drawable/round_assistant_photo_20.xml | [
"Apache-2.0"
] |
USING: help.markup help.syntax math strings ;
IN: math.text.french
HELP: number>text
{ $values { "n" integer } { "str" string } }
{ $description "Return the a string describing " { $snippet "n" } " in French. Numbers with absolute value equal to or greater than 10^12 will be returned using their numeric representation... | Factor | 4 | alex-ilin/factor | extra/math/text/french/french-docs.factor | [
"BSD-2-Clause"
] |
<?php
namespace {{invokerPackage}}\Validator;
use App\Strategy\QueryParameter;
class QueryParameterType extends Type
{
const RE_INT = '0|-?[1-9]\d*';
const RE_BOOL = 'true|false';
const RE_FLOAT = '0(\.\d+)?|-?[1-9]\d*(\.\d+)?|-0\.\d+';
protected function checkType($value)
{
switch ($this... | HTML+Django | 4 | derBiggi/swagger-codegen | modules/swagger-codegen/src/main/resources/ze-ph/QueryParameterType.php.mustache | [
"Apache-2.0"
] |
-- Andreas, 2019-02-24, issue #3457
-- Error messages for illegal as-clause
import Agda.Builtin.Nat Fresh-name as _
-- Previously, this complained about a duplicate module definition
-- with unspeakable name.
-- Expected error:
-- Not in scope: Fresh-name
| Agda | 4 | shlevy/agda | test/Fail/Issue3457.agda | [
"BSD-3-Clause"
] |
IMAGE POINT FILE
174
pt_id,val,fid_val,no_obs,l.,s.,sig_l,sig_s,res_l,res_s,fid_x,fid_y
9_8344_8845_4r 1 0 0
1987.945190 -843.060364
0.000000 0.000000
0.457822 -0.080303
0.000000 0.000000
10_8344_8845_4r 1 0 0
2006.141113 -2234.915283
0.000000 0.000000
0.318779 -0.585138
0.000000 0.000000
11_83... | IGOR Pro | 1 | kaitlyndlee/plio | plio/examples/SocetSet/P01_001540_1889_XI_08N204W.ipf | [
"Unlicense"
] |
// The Great Computer Language Shootout
// contributed by Isaac Gouy (Clean novice)
implementation module LanguageShootout
import StdEnv, ArgEnv
// The first commandline arg (if it will convert to Int) otherwise 1
argi :: Int
argi = if (argAsInt <= 0) 1 argAsI... | Clean | 4 | kragen/shootout | bench/Include/clean/LanguageShootout.icl | [
"BSD-3-Clause"
] |
//import com.intellij.openapi.fileTypes {
// LanguageFileType
//}
//
//import org.eclipse.ceylon.ide.intellij.util {
// icons
//}
//
//shared class CeylonFileType extends LanguageFileType {
//
// shared new instance extends LanguageFileType(ceylonLanguage) {}
//
// name => "Ceylon";
//
// description => ... | Ceylon | 3 | Kopilov/ceylon-ide-intellij | source/org/eclipse/ceylon/ide/intellij/lang/CeylonFileType.ceylon | [
"Apache-2.0"
] |
xquery version "1.0-ml";
import module namespace merge-impl = "http://marklogic.com/smart-mastering/survivorship/merging" at "/com.marklogic.smart-mastering/survivorship/merging/base.xqy";
import module namespace test = "http://marklogic.com/test" at "/test/test-helper.xqy";
let $json := merge-impl:build-path-json(
... | XQuery | 4 | iveyMarklogic/marklogic-data-hub | marklogic-data-hub/src/test/ml-modules/root/test/suites/data-hub/5/smart-mastering/merging-json/retain-property-type.xqy | [
"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 | 5 | sbj42/vscode | src/vs/platform/terminal/common/terminalRecorder.ts | [
"MIT"
] |
D:/gitee/open/tinyriscv/tests/riscv-compliance/build_generated/rv32i/I-SW-01.elf: file format elf32-littleriscv
Disassembly of section .text.init:
00000000 <_start>:
0: 04c0006f j 4c <reset_vector>
00000004 <trap_vector>:
4: 34202f73 csrr t5,mcause
8: 00800f93 li t6,8
... | ObjDump | 3 | DuBirdFly/TinyRISCV_Learn | tests/riscv-compliance/build_generated/rv32i/I-SW-01.elf.objdump | [
"Apache-2.0"
] |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M22 6.98V16c0 1.1-.9 2-2 2H6l-4 4V4c0-1.1.9-2 2-2h10.1c-.06.32-.1.66-.1 1s.04.68.1 1H4v12h16V7.9c.74-.15 1.42-.48 2-.92zM16 3c0 1.66 1.34 3 3 3s3-1.34 3-3-1... | JavaScript | 4 | good-gym/material-ui | packages/material-ui-icons/lib/esm/MarkChatUnreadOutlined.js | [
"MIT"
] |
/*
* 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 | 5 | OlegPt/spark | graphx/src/main/scala/org/apache/spark/graphx/impl/VertexRDDImpl.scala | [
"Apache-2.0"
] |
<div class="section">
<h2>@SkipSelf() Component</h2>
<p>Leaf emoji: {{leaf.emoji}}</p>
</div>
| HTML | 2 | coreyscherbing/angular | aio/content/examples/resolution-modifiers/src/app/skipself/skipself.component.html | [
"MIT"
] |
VOSTRUCT _winPOINTF
MEMBER x AS REAL4
MEMBER y AS REAL4
VOSTRUCT _winCONTROLINFO
MEMBER cb AS DWORD
MEMBER hAccel AS PTR
MEMBER cAccel AS WORD
MEMBER dwFlags AS DWORD
VOSTRUCT _winCONNECTDATA
MEMBER pUnk AS PTR
MEMBER dwCookie AS DWORD
VOSTRUCT _winLICINFO
MEMBER cbLicInfo AS LONGINT
MEMBER fRuntimeKeyA... | xBase | 3 | JohanNel/XSharpPublic | Runtime/VOSDK/Source/VOSDK/Win32_API_Library_SDK/OLE Control.prg | [
"Apache-2.0"
] |
#
# Makefile.180 for Arduino/AVR
#
# Note:
# Display list make database: make -p -f/dev/null | less
# Install path of the arduino software. Requires a '/' at the end.
ARDUINO_PATH:=/home/kraus/prg/arduino-1.8.4/
# Board (and prozessor) information: see $(ARDUINO_PATH)hardware/arduino/avr/boards.txt
# Some exampl... | Uno | 5 | a-v-s/ucglib | sys/arduino/UcgLogo/Makefile.184.uno | [
"BSD-2-Clause"
] |
At: "042.hac":7:
parse error: syntax error
parser stacks:
state value
#STATE# (null)
#STATE# list<(root_item)>: (instance-decl) ... [4:1--6:8]
#STATE# (array-concatenation) [7:1]
#STATE# = [7:3]
#STATE# { [7:5]
#STATE# list<(expr)>: (array-concatenation) ... [7:6]
#STATE# , [7:7]
#STATE# } [7:9]
in state #STATE#, poss... | Bison | 1 | broken-wheel/hacktist | hackt_docker/hackt/test/parser/array/042.stderr.bison | [
"MIT"
] |
static const uint16_t in_com1[512] = {
0xb21b, 0xadde, 0x2c99, 0x30b9, 0x3494, 0xb456, 0xb994, 0xb76a,
0x3239, 0xab76, 0x2f4f, 0x38aa, 0x3548, 0x344c, 0xb876, 0xb690,
0x345e, 0xb64c, 0xaf70, 0xb9c6, 0xb2d3, 0x2d58, 0xb5fc, 0x3257,
0xb660, 0xb87b, 0x2a39, 0x3916, 0xadd4, 0xb63e, 0x2caf, 0xb468,
0xb2c... | Max | 1 | ldalek/zephyr | tests/lib/cmsis_dsp/complexmath/src/f16.pat | [
"Apache-2.0"
] |
% BSD 3-Clause License
%
% Copyright (c) 2017, Ali ElShakankiry
% 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 not... | TXL | 5 | alishak/TAG | TXL/UID_references.txl | [
"BSD-3-Clause"
] |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | 4 | KevinAo22/vscode | src/vs/workbench/api/common/extHostTestingPrivateApi.ts | [
"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="UTF-8"/>
<xsl:template match="TEST">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" c... | XSLT | 3 | zealoussnow/chromium | third_party/blink/web_tests/fast/xsl/resources/xslt-enc.xsl | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
"""
before block
Disposable.constructor
inside block
Disposable.Dispose
after block
"""
import BooCompiler.Tests.SupportingClasses from BooCompiler.Tests
print("before block")
using Disposable():
print("inside block")
print("after block")
| Boo | 3 | popcatalin81/boo | tests/testcases/macros/using-2.boo | [
"BSD-3-Clause"
] |
Module ScanCell {
Attribute lic = 'h 619af116;
ScanInPort SI;
ShiftEnPort SE;
CaptureEnPort CE;
UpdateEnPort UE;
SelectPort SEL;
ResetPort RST;
TCKPort TCK;
ScanOutPort SO {
Source SMux;
}
ScanInterface flex_Scan {
Port SI;
Port SO;
Port SEL;
}
ScanInPort maskSI;
SelectPort maskSEL;
ScanO... | Clean | 4 | ajnavarro/language-dataset | data/github.com/IJTAG-Ecosystem/Public/c09f43976b4941104e35f7ca227931afc6406037/ScanCell.icl | [
"MIT"
] |
<?php
# Server seems down
if((isset($stats)) && (($stats === false) || ($stats == array())))
{ ?>
<div class="header corner full-size padding" style="margin-top:10px;text-align:center;">
<?php
# Asking server of cluster stats
if(isset($_REQUEST['server']))
{
echo ($_ini->... | HTML+PHP | 4 | axelVO/tourComperator | .devilbox/www/htdocs/vendor/phpmemcachedadmin-1.3.0/View/Stats/Error.phtml | [
"MIT"
] |
function ssd_uniform;
load ../solvers/ssdsolver/ssd.dll;
var x >= 42;
minimize o: x;
subject to ssd: ssd_uniform(x, 0);
| AMPL | 2 | ampl/plugins | test/data/ssd.ampl | [
"BSD-3-Clause"
] |
module audiostreamerscrobbler.maintypes.ScrobbleType
struct Scrobble = {
utcTimestamp,
song
} | Golo | 3 | vvdleun/audiostreamerscrobbler | src/main/golo/include/maintypes/Scrobble.golo | [
"MIT"
] |
FROM busybox
EXPOSE 80/tcp
COPY httpserver .
CMD ["./httpserver"]
| Dockerfile | 3 | mi2016/docker | contrib/httpserver/Dockerfile | [
"Apache-2.0"
] |
##Version=1.1##
# Device rules for Intel RealSense devices (R200, F200, SR300 LR200, ZR300, D400, L500, T200)
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0a80", MODE:="0666", GROUP:="plugdev", RUN+="/usr/local/bin/usb-R200-in_udev"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="8086", ATTRS{idProduct}=="0a66",... | EmberScript | 3 | NoppanutPat/realsense-ros | realsense2_camera/debian/udev.em | [
"Apache-2.0"
] |
find_package(MKL QUIET)
if(NOT TARGET caffe2::mkl)
add_library(caffe2::mkl INTERFACE IMPORTED)
endif()
set_property(
TARGET caffe2::mkl PROPERTY INTERFACE_INCLUDE_DIRECTORIES
${MKL_INCLUDE_DIR})
set_property(
TARGET caffe2::mkl PROPERTY INTERFACE_LINK_LIBRARIES
${MKL_LIBRARIES})
| CMake | 4 | Hacky-DH/pytorch | cmake/public/mkl.cmake | [
"Intel"
] |
/******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | C++ | 4 | jzjonah/apollo | cyber/transport/common/identity_test.cc | [
"Apache-2.0"
] |
/*
* Copyright (c) 2000-2005 The Regents of the University of California.
* Copyright (c) 2012, Eric B. Decker
* 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 ... | nesC | 5 | tgtakaoka/tinyos-prod | tos/interfaces/I2CPacket.nc | [
"BSD-3-Clause"
] |
'reach 0.1';
const [ ...x, y ] = [ 1, 2 ];
| RenderScript | 2 | chikeabuah/reach-lang | hs/t/n/Err_Decl_ArraySpreadNotLast.rsh | [
"Apache-2.0"
] |
module org-openroadm-swdl {
namespace "http://org/openroadm/de/swdl";
prefix org-openroadm-swdl;
import ietf-yang-types {
prefix yang;
}
import org-openroadm-common-types {
prefix org-openroadm-common-types;
}
organization "Open ROADM MSA";
contact
"OpenROADM.org";
description
"Yang... | YANG | 5 | meodaiduoi/onos | models/openroadm/src/main/yang/org-openroadm-swdl@2016-10-14.yang | [
"Apache-2.0"
] |
iter myIter() {
writeln("start myIter");
yield [1, 2, 3];
yield [4, 5, 6];
writeln("finish myIter");
}
var r = + reduce [idx in myIter()] idx;
writeln(r);
| Chapel | 4 | jhh67/chapel | test/reductions/vass/extra-iter-call.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
/* Copyright 2017 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 | abhaikollara/tensorflow | tensorflow/core/kernels/mfcc_mel_filterbank.h | [
"Apache-2.0"
] |
// eql.g4
grammar Eql;
// Tokens
EQ: '==';
NEQ: '!=';
GT: '>';
LT: '<';
GTE: '>=';
LTE: '<=';
ADD: '+';
SUB: '-';
MUL: '*';
DIV: '/';
MOD: '%';
AND: 'and' | 'AND';
OR: 'or' | 'OR';
TRUE: 'true' | 'TRUE';
FALSE: 'false' | 'FALSE';
FLOAT: [\-]? [0-9]+ '.' [0-9]+;
NUMBER: [\-]? [0-9]+;
WHITESPACE: [ \r\n\t]+ -> skip;
NOT... | ANTLR | 4 | tetianakravchenko/beats | x-pack/elastic-agent/pkg/eql/Eql.g4 | [
"ECL-2.0",
"Apache-2.0"
] |
"""
# Signals package
The Signals package provides support for handling Unix style signals.
For each signal that you want to handle, you need to create a `SignalHandler`
and a corresponding `SignalNotify` object. Each SignalHandler runs as it own
actor and upon receiving the signal will call its corresponding
`SignalN... | Pony | 5 | rtpax/ponyc | packages/signals/signals.pony | [
"BSD-2-Clause"
] |
0 code_t "proc*"
1 reg32_t "dword"
2 ptr(struct(0:ptr(struct(0:reg32_t,4:reg32_t,8:ptr(struct(0:reg32_t,4:reg32_t,8:ptr(TOP),12:ptr(TOP),16:reg32_t,20:array(uint32_t,15))),12:ptr(TOP),16:reg32_t,20:array(uint32_t,15))),4:ptr(struct(0:reg32_t,4:reg32_t,8:reg32_t,12:reg32_t,16:reg32_t,20:reg32_t,24:reg32_t,28:struct(0:re... | BlitzBasic | 1 | matt-noonan/retypd-data | data/ivfdec.exe.decls | [
"MIT"
] |
## Disjunction
In order to state totality, we need a way to formalise disjunction,
the notion that given two propositions either one or the other holds.
In Agda, we do so by declaring a suitable inductive type.
\begin{code}
data _⊎_ : Set → Set → Set where
inj₁ : ∀ {A B : Set} → A → A ⊎ B
inj₂ : ∀ {A B : Set} → B ... | Literate Agda | 5 | manikdv/plfa.github.io | extra/extra/Extra.lagda | [
"CC-BY-4.0"
] |
#! /bin/sh -e
# DP: GPC updates for GCC 4.1.2
dir=gcc/
if [ $# -eq 3 -a "$2" = '-d' ]; then
pdir="-d $3/gcc"
dir="$3/gcc/"
elif [ $# -ne 1 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
case "$1" in
-patch)
patch $pdir -f --no-backup-if-mismatch -p1 ... | Darcs Patch | 4 | JrCs/opendreambox | recipes/gcc/gcc-4.3.4/debian/gpc-4.1.dpatch | [
"MIT"
] |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tauri</title>
</head>
<body>
<h1>index.html</h1>
<select id="route">
<option value... | HTML | 3 | facklambda/tauri | examples/navigation/public/index.html | [
"Apache-2.0",
"MIT"
] |
a { value: x\2c() } | CSS | 0 | vjpr/swc | css/parser/tests/fixture/esbuild/misc/AVaQlt9z0lhJC6bHHDPVeA/input.css | [
"Apache-2.0",
"MIT"
] |
(ns wisp.compiler
(:require [wisp.analyzer :refer [analyze]]
[wisp.reader :refer [read* read push-back-reader]]
[wisp.string :refer [replace]]
[wisp.sequence :refer [map conj cons vec first rest empty? count]]
[wisp.runtime :refer [error?]]
[wisp.ast :refer ... | wisp | 5 | bamboo/wisp | src/compiler.wisp | [
"BSD-3-Clause"
] |
[38;2;249;38;114mfunction[0m[38;2;248;248;242m zz[0m[38;2;249;38;114m=[0m[38;2;166;226;46msample[0m[38;2;248;248;242m([0m[3;38;2;253;151;31maa[0m[38;2;248;248;242m)[0m
[38;2;117;113;94m%%[0m[38;2;117;113;94m%%%%%%%%%%%%%%%%[0m
[38;2;117;113;94m%[0m[38;2;117;113;94m some comments[0m
[38;2;117;113;... | Matlab | 4 | JesseVermeulen123/bat | tests/syntax-tests/highlighted/MATLAB/test.matlab | [
"Apache-2.0",
"MIT"
] |
<?zpl version="2.0"?><smil>
<head>
<meta name="generator" content="Zune -- 2.5.447.0" />
<meta name="itemCount" content="172" />
<meta name="totalDuration" content="41412928" />
<meta name="averageRating" content="6" />
<title>2005 Music</title>
<guid>{E1D551A2-869D-43AB-B203-8669FD98E08C}</gu... | Zimpl | 3 | windows-development/Windows-classic-samples | Samples/Win7Samples/winui/shell/appshellintegration/PlaylistPropertyHandler/Sample2.zpl | [
"MIT"
] |
#define PJON_INCLUDE_MAC
#include <PJONSoftwareBitBang.h>
// <Strategy name> bus(mac address of the network interface)
const uint8_t mac[6] = {2, 3, 4, 5, 6, 7};
const uint8_t rx_mac[6] = {1, 2, 3, 4, 5, 6};
PJONSoftwareBitBang bus(mac);
void setup() {
bus.strategy.set_pin(12);
bus.begin();
PJON_Packet_Info inf... | Arduino | 3 | jcallano/PJON | examples/ARDUINO/Local/SoftwareBitBang/BlinkTestMAC/Transmitter/Transmitter.ino | [
"Apache-2.0"
] |
kalamazoo: func ~Int (a, b: Int) -> String { "Int" }
kalamazoo: func ~Double (a, b: Double) -> String { "Double" }
check: func (result, signature, expected: String) {
if (result != expected) {
"Fail! expected (#{signature}) to call ~#{expected}, but got ~#{result} instead." println()
exit(1)... | ooc | 3 | shamanas/rock | test/compiler/functions/inference-precision-loss.ooc | [
"MIT"
] |
export const value = "shared";
| JavaScript | 1 | 1shenxi/webpack | test/configCases/container/1-transitive-overriding/shared.js | [
"MIT"
] |
--TEST--
strip comments and whitespace with -w
--SKIPIF--
<?php
include "skipif.inc";
if (substr(PHP_OS, 0, 3) == 'WIN') {
die ("skip not for Windows");
}
?>
--FILE--
<?php
$php = getenv('TEST_PHP_EXECUTABLE');
$filename = __DIR__.'/007.test.php';
$code ='
<?php
/* some test script */
class test { /* {{{ */
... | PHP | 4 | NathanFreeman/php-src | sapi/cli/tests/007.phpt | [
"PHP-3.01"
] |
{% set result = '192.168.0.12/24' | ip_host() %}
{% include 'jinja_filters/common.sls' %}
| SaltStack | 2 | byteskeptical/salt | tests/integration/files/file/base/jinja_filters/network_ip_host.sls | [
"Apache-2.0"
] |
:- web_resource(plaintext/1, content_type(text/plain)).
plaintext('Hello, World!').
:- web_resource(json/1).
json([message('Hello, World!')]).
| Prolog | 4 | efectn/FrameworkBenchmarks | frameworks/Prolog/tuProlog/app/application.prolog | [
"BSD-3-Clause"
] |
module Algebra.Preorder
%default total
||| Preorder defines a binary relation using the `<=` operator
public export
interface Preorder a where
(<=) : a -> a -> Bool
preorderRefl : {x : a} -> x <= x = True
preorderTrans : {x, y, z : a} -> x <= y = True -> y <= z = True -> x <= z = True
||| Least Upper Bound, re... | Idris | 4 | Qqwy/Idris2-Erlang | idris2/src/Algebra/Preorder.idr | [
"BSD-3-Clause"
] |
#! /bin/sh /usr/share/dpatch/dpatch-run
## no-chunk-align.dpatch by <domas.mituzas@gmail.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.
@DPATCH@
diff -urNad memcached-1.2.8~/slabs.c memcached-1.2.8/slabs.c
--- memcached-1.2.8~/slabs.c 2009-04-11 03:48:08.000000000 ... | Darcs Patch | 2 | aliostad/deep-learning-lang-detection | data/test/bash/7d52b7d72638578f118efab3bfb419d6df167f47no-chunk-align.dpatch | [
"MIT"
] |
umar_0x01@b0x:~/Desktop/SUID3NUM$ python3 suid3num.py
___ _ _ _ ___ _____ _ _ _ __ __
/ __| | | / | \ |__ / \| | | | | \/ |
\__ \ |_| | | |) | |_ \ .` | |_| | |\/| |
|___/\___/|_|___/ |___/_|\_|\___/|_| |_| twitter@syed__umar
[#] Finding/Listing all SUID Binaries ..
---------------------------... | Matlab | 4 | bbhunter/SUID3NUM | output.matlab | [
"MIT"
] |
PREFIX : <http://www.example.org/>
SELECT ?O12 (COUNT(?O1) AS ?C)
WHERE { ?S :p ?O1; :q ?O2 } GROUP BY ((?O1 + ?O2) AS ?O12)
ORDER BY ?O12
| SPARQL | 4 | alpano-unibz/ontop | test/sparql-compliance/src/test/resources/testcases-dawg-sparql-1.1/aggregates/agg08b.rq | [
"Apache-2.0"
] |
-- @shouldWarnWith HiddenConstructors
module Main (N) where
import Data.Newtype (class Newtype)
newtype N a = N a
derive instance newtypeN :: Newtype (N a) _
| PureScript | 3 | andys8/purescript | tests/purs/warning/HiddenConstructorsNewtype.purs | [
"BSD-3-Clause"
] |
--TEST--
Test lchgrp() function : basic functionality
--SKIPIF--
<?php
if (substr(PHP_OS, 0, 3) == 'WIN') die('skip no windows support');
if (!function_exists("posix_getgid")) die("skip no posix_getgid()");
?>
--FILE--
<?php
$filename = __DIR__ . DIRECTORY_SEPARATOR . 'lchgrp.txt';
$symlink = __DIR__ . DIRECTORY_SEPARA... | PHP | 3 | thiagooak/php-src | ext/standard/tests/file/lchgrp_basic.phpt | [
"PHP-3.01"
] |
// License Agreement
// For Open Source Computer Vision Library
//
// Copyright (C) 2010-2012, Institute Of Software Chinese Academy Of Science, all rights reserved.
// Copyright (C) 2010-2012, Advanced Micro Devices, Inc., all rights reserved.
// Copyright (C) 2014, Itseez, Inc... | OpenCL | 3 | lefatoum2/opencv | modules/imgproc/src/opencl/filterSepRow.cl | [
"Apache-2.0"
] |
# ======================================================================================================================
# Consumers
# - Consumption decisions and budget constraint
# ======================================================================================================================
# ===============... | GAMS | 5 | gemal/MAKRO | Model/consumers.gms | [
"MIT"
] |
--
-- Copyright 2021 Apollo Authors
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to i... | SQL | 3 | lff0305/apollo | apollo-portal/src/test/resources/sql/appnamespaceservice/init-appnamespace.sql | [
"Apache-2.0"
] |
(%
% rowl - 1st generation
% Copyright (C) 2010 nineties
%
% $Id: code.rl 2010-06-02 09:20:21 nineties $
%);
NODE_CONS => 0;
NODE_SYMBOL => 1;
NODE_INT => 2;
NODE_CHAR => 3;
NODE_STRING => 4;
NODE_PRIM => 5; (% (code,ptr) %);
NODE_ARRAY => 6; (% (code,size,buf) %);
NODE_LAMBDA => 7; (% (code... | Ragel in Ruby Host | 3 | waldo2590/amber-1 | amber/code.rl | [
"MIT"
] |
<html>
<head>
</head>
<body>
<p>Console Test</p>
</body>
</html>
| HTML | 0 | weilandia/selenium | common/src/web/devToolsConsoleTest.html | [
"Apache-2.0"
] |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="16008000">
<Item Name="My Computer" Type="My Computer">
<Property Name="server.app.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.control.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.tcp.ena... | LabVIEW | 3 | XDRM-IRobot/upper-computer | src/UpUpUpUp.lvproj | [
"MIT"
] |
server {
listen 80;
root /var/www/devopsbyexample.io/html;
index index.html;
server_name devopsbyexample.io;
location / {
try_files $uri $uri/ =404;
}
}
| Io | 4 | murasaki718/tutorials | lessons/062/devopsbyexample.io | [
"MIT"
] |
Red [
Title: "Red conditonal test script"
Author: "Nenad Rakocevic & Peter W A Wood"
File: %conditional-test.red
Tabs: 4
Rights: "Copyright (C) 2011-2015 Red Foundation. All rights reserved."
License: "BSD-3 - https://github.com/red/red/blob/origin/BSD-3-License.txt"
]
#include %../../../quick-test/quick... | Red | 5 | GalenIvanov/red | tests/source/units/conditional-test.red | [
"BSL-1.0",
"BSD-3-Clause"
] |
package com.baeldung.datetime;
import org.junit.Assert;
import org.junit.Test;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeParseException;
imp... | Java | 5 | DBatOWL/tutorials | core-java-modules/core-java-datetime-string/src/test/java/com/baeldung/datetime/DateTimeFormatterUnitTest.java | [
"MIT"
] |
得 $ js/Math.min 两百 一百 四百
得 js/Math.PI
| Cirru | 1 | Cirru/jiuzhang-lang | tests/native-api.cirru | [
"MIT"
] |
unit
class A
implement by Abody
export MyA, MyA2
deferred procedure MyA
deferred procedure MyA2
end A
| Turing | 2 | ttracx/OpenTuring | turing/test/implement by example/A.tu | [
"MIT"
] |
<article class="article">
<div class="richtext">
<h1>Contribute to Changelog.com</h1>
<p>Write for Changelog.com to reach a wide developer audience. We're a news and podcasts destination for software makers and leaders that reaches 75,000+ developers weekly.</p>
<hr>
<h2>What we bring</h2>
<p>... | HTML+EEX | 0 | PsOverflow/changelog.com | lib/changelog_web/templates/page/contribute.html.eex | [
"MIT"
] |
/**
* An ECS library written in kit
* @author Tyler Bezera
*/
import kit.hash;
import kit.map;
import kit.set;
/**
* Used as flags when notifying the engine when one of it's entites have changed.p
*/
enum EntityState{
COMPONENT_ADDED;
COMPONENT_REMOVED;
TAG_ADDED;
TAG_REMOVED;
public funct... | Kit | 5 | smola/language-dataset | data/github.com/Gamerfiend/kit-ecs/8ab8a2c861820acf24a0f24aa19647b50821da18/src/ecs.kit | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.