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
// 功能:SPI写控制器 package SPIWriter; // 包名 SPIWriter ,必须与文件名相同 import StmtFSM::*; interface SPIWriter; method Action write(Bit#(8) data); method Bit#(3) spi; endinterface (* synthesize, always_ready="spi" *) module mkSPIWriter (SPIWriter); // BSV SPI 发送(可综合), 模块名称为 mkSPIWriter Reg#(b...
Bluespec
5
Xiefengshang/BSV_Tutorial_cn
src/3.SPIWriter/SPIWriter.bsv
[ "MIT" ]
"""The tests for the hassio component.""" from http import HTTPStatus from unittest.mock import MagicMock, patch from aiohttp.hdrs import X_FORWARDED_FOR, X_FORWARDED_HOST, X_FORWARDED_PROTO import pytest @pytest.mark.parametrize( "build_type", [ ("a3_vl", "test/beer/ping?index=1"), ("core", ...
Python
5
MrDelik/core
tests/components/hassio/test_ingress.py
[ "Apache-2.0" ]
// Package bitwise provides functions for performing bitwise operations on integers. // // All integers are 64 bit integers. // // Functions prefixed with s operate on signed integers (int). // Functions prefixed with u operate on unsigned integers (uint). // // introduced: 0.138.0 // tags: bitwise // package bitwise ...
FLUX
5
geropl/flux
stdlib/experimental/bitwise/bitwise.flux
[ "MIT" ]
10 5 0 1 4 2 1 4 3 [0] [0] [0] [0] 1 1 2 6 11 [-3] [10] 2 1 2 6 9 [-1] [20] 3 1 1 5 [1] 4 1 2 5 7 [6] [9] 5 1 1 10 [4] 6 1 2 1 10 [-5] [0] 7 1 3 9 8 4 [1] [0] [-9] 8 1 2 5 6 [12] [-2] 9 1 1 11 [7] 10 1 1 11 [5] 11 1 0 0 1 0 0 0 0 0 1 1 -1 -1 -1 0 0 2 1 -1 0 0 1 0 3 1 0 2 1 2 0 4 1 0 0 2 -1 0 5 1 -1 0...
Eagle
0
klorel/or-tools
examples/data/rcpsp/single_mode_consumer_producer/ubo10_cum_2/psp10_43.sch
[ "Apache-2.0" ]
{ "title": "\u0e41\u0e08\u0e49\u0e07" }
JSON
0
domwillcode/home-assistant
homeassistant/components/notify/translations/th.json
[ "Apache-2.0" ]
vector rotationCenter; default { state_entry() { llSay( 0, "Hello, Avatar!"); vector startPoint = llGetPos(); rotationCenter = startPoint + < 3, 3, 3 >; // distance to the point of rotation should probably be a // function of the max dimension of the object. } touch_sta...
LSL
4
MandarinkaTasty/OpenSim
bin/assets/ScriptsAssetSet/KanEd-Test07.lsl
[ "BSD-3-Clause" ]
(ns hacker-scripts.kumar (:import (java.util Properties) (javax.mail Session Authenticator PasswordAuthentication Message$RecipientType Transport Folder Flags Flags$Flag) (javax.mail.internet MimeMessage InternetAddress) (javax.mail.search FlagTerm FromTerm AndTerm OrTerm SubjectTerm BodyTerm SearchTe...
Clojure
4
johndemlon/hacker-scripts
clojure/kumar.clj
[ "WTFPL" ]
SpanishDefaultBehavior = Reflector other:mimic(DefaultBehavior) SpanishDefaultBehavior Origen = Origin SpanishDefaultBehavior celda = cell(:cell) SpanishDefaultBehavior imitación = cell(:mimic) SpanishDefaultBehavior imita! = cell(:mimic!) SpanishDefaultBehavior método = cell(:method) SpanishDefaultBehavior función ...
Ioke
3
olabini/ioke
examples/multilang/spanish/spanish.ik
[ "ICU", "MIT" ]
discard """ output: '''[1 2 3 ] [1 2 3 ] [1 2 3 ]''' """ # bug #297 import json, tables, algorithm proc outp(a: openarray[int]) = stdout.write "[" for i in a: stdout.write($i & " ") stdout.write "]\n" proc works() = var f = @[3, 2, 1] sort(f, system.cmp[int]) outp(f) proc weird(json_params: Table) = ...
Nimrod
4
JohnAD/Nim
tests/typerel/texplicitcmp.nim
[ "MIT" ]
#if defined(_WIN32) # include <windows.h> #endif #include "EXTERN.h" #include "perl.h" #include "XSUB.h" #ifdef USE_PPPORT_H # include "ppport.h" #endif #ifndef HAVE_SYSLOG #define HAVE_SYSLOG 1 #endif #if defined(_WIN32) && !defined(__CYGWIN__) # undef HAVE_SYSLOG # include "fallback/syslog.h" #else # if defin...
XS
4
vlinhd11/vlinhd11-android-scripting
perl/src/ext/Sys-Syslog/Syslog.xs
[ "Apache-2.0" ]
<div id="home-section" role="region" title="Quick navigation" class="nav-section"> <h2> <a href="<%= rel_prefix %>/index.html" rel="home">Home</a> </h2> <div id="table-of-contents-navigation"> <a href="<%= rel_prefix %>/table_of_contents.html#pages">Pages</a> <a href="<%= rel_prefix %>/table_of_conte...
RHTML
4
Bhuvanesh1208/ruby2.6.1
lib/ruby/2.6.0/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml
[ "Ruby" ]
- dashboard: us_state_dashboard title: US State Dashboard layout: newspaper elements: - title: Workplace Time vs. Baseline name: Workplace Time vs Baseline model: mobility explore: mobility type: looker_map fields: [mobility.workplaces_dynamic, mobility.sub_region_1] filters: mobil...
LookML
4
isabella232/data-block-community-mobility
dashboards/us_state_mobility.dashboard.lookml
[ "MIT" ]
-- REGISTER 's3://solr-scale-tk/pig/hadoop-lws-job-1.2.0-SNAPSHOT-rc2-0.jar'; -- REGISTER 's3://solr-scale-tk/pig/hadoop-lws-job-2.0.1-0-0-hadoop2.jar'; REGISTER '$JOB_JAR'; set solr.zkhost '$zkHost'; set solr.collection '$collection'; set lww.buffer.docs.size $batch; set lww.commit.on.close true; SET mapred.map.task...
PigLatin
3
lucidworks/solr-scale-tk
src/main/pig/s3_to_solr.pig
[ "Apache-2.0" ]
--TEST-- Flexible heredoc syntax complex test 2: interpolated nested heredocs with the same delimiter name --FILE-- <?php $a = 'b'; ${"b\nb\n d"} = 'b'; var_dump(<<<DOC1 a ${<<<DOC1 b ${<<<DOC1 a DOC1} d DOC1 } c DOC1); ?> --EXPECT-- string...
PHP
2
thiagooak/php-src
Zend/tests/flexible-heredoc-complex-test2.phpt
[ "PHP-3.01" ]
mod super_sekrit { pub enum sooper_sekrit { quux, baz } }
Rust
3
Eric-Arellano/rust
src/test/ui/reachable/auxiliary/unreachable_variant.rs
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
-----BEGIN RSA PRIVATE KEY----- Proc-Type: 4,ENCRYPTED DEK-Info: DES-EDE3-CBC,8B3708EAD53963D4 uyLo4sFmSo7+K1uVgSENI+85JsG5o1JmovvxD/ucUl9CDhDj4KgFzs95r7gjjlhS kA/hIY8Ec9i6T3zMXpAswWI5Mv2LE+UdYR5h60dYtIinLC7KF0QIztSecNWy20Bi /NkobZhN7VZUuCEoSRWj4Ia3EuATF8Y9ZRGFPNsqMbSAhsGZ1P5xbDMEpE+5PbJP LvdF9yWDT77rHeI4CKV4aP/yxtm1h...
Org
0
cjerdonek/urllib3
dummyserver/certs/server.key.org
[ "MIT" ]
<!DOCTYPE html> <html lang="en" data-layout-decorate="~{layouts/default-layout-no-menu}"> <head id="head"> <title data-th-text="#{label_login}">Login- Spring Roo application</title> </head> <body id="body"> <header role="banner"> <!-- Content replaced by layout of the page displayed --> </...
HTML
4
zeesh49/tutorials
spring-roo/src/main/resources/templates/login.html
[ "MIT" ]
'' MonitorVars, program to show variables on video screen, leaving main program free to run fast '' three per line, seperated with commas by groups of three ' Eric Ratliff, 2008_3_x to 2008_4_2 ' Eric Ratliff, 2008.6.7 eliminating flicker by using modified version of TV_Termainal OBJ Num : "Numbers" ...
Propeller Spin
4
deets/propeller
libraries/community/p1/All/IR2101PWM/IR2101d_demo-bst-archive-091016-073833/MonVarsNF.spin
[ "MIT" ]
#pragma TextEncoding="UTF-8" #pragma rtGlobals=3 #pragma ModuleName = SIDAMLineSpectra #include "SIDAM_Color" #include "SIDAM_Line" #include "SIDAM_Range" #include "SIDAM_Utilities_Bias" #include "SIDAM_Utilities_Control" #include "SIDAM_Utilities_Image" #include "SIDAM_Utilities_misc" #include "SIDAM_Utili...
IGOR Pro
5
yuksk/SIDAM
src/SIDAM/func/SIDAM_LineSpectra.ipf
[ "MIT" ]
DESCRPTION = "ansi2html - Convert text with ANSI color codes to HTML or to LaTeX" HOMEPAGE = "https://github.com/ralphbean/ansi2html" LIC_FILES_CHKSUM = "file://LICENSE;md5=3000208d539ec061b899bce1d9ce9404" LICENSE = "GPLv3" PYPI_PACKAGE = "ansi2html" SRC_URI[sha256sum] = "0f124ea7efcf3f24f1f9398e527e688c9ae6eab26b0b...
BitBake
2
shipinglinux/meta-openembedded
meta-python/recipes-devtools/python/python3-ansi2html_1.6.0.bb
[ "MIT" ]
/* ** Case Study Financial Econometrics 4.3 ** ** Purpose: ** Estimate all t-GAS model parameters ** ** Date: ** 10/01/2015 ** ** Author: ** Tamer Dilaver, Koen de Man & Sina Zolnoor ** ** Supervisor: ** L.F. Hoogerheide & S.J. Koopman ** */ #include <oxstd.h> #include <oxdraw.h> #include <oxprob.h> #in...
Ox
5
tamerdilaver/Group4_Code_Data
CS_EMP_2_t-GAS.ox
[ "MIT" ]
unit HtmlHelpFunc; { Inno Setup Copyright (C) 1997-2006 Jordan Russell Portions by Martijn Laan For conditions of distribution and use, see LICENSE.TXT. Functions for HTML Help $jrsoftware: issrc/Projects/HtmlHelpFunc.pas,v 1.6 2009/03/23 23:16:44 mlaan Exp $ } interface {$I VERSION.INC}...
Pascal
4
Patriccollu/issrc
Projects/HtmlHelpFunc.pas
[ "FSFAP" ]
<faces-config> <faces-config-extension> <namespace-uri>http://www.openntf.org/xsp/xpt</namespace-uri> <default-prefix>xpt</default-prefix> </faces-config-extension> <complex-type> <description>RSS Feed as Datasource</description> <display-name>RSS Feed Datasource</display-name> ...
XPages
4
OpenNTF/XPagesToolk
org.openntf.xpt.rss/src/org/openntf/xpt/rss/config/xpt-rss-datasource.xsp-config
[ "Apache-2.0" ]
/* * Program type: Embedded Static SQL * * Description: * This program executes a stored procedure and selects from * a stored procedure. First, a list of projects an employee * is involved in is printed. Then the employee is added to * another project. The new list of projects is printed again. * Th...
Eiffel
5
jiemurat/delphimvcframework
unittests/general/Several/bin/firebird/examples/stat/stat9.e
[ "Apache-2.0" ]
set title "Utilisation of Old space" plot for [i in "OU OC"] datafile using 1:i title columnheader(i) with lines
Gnuplot
3
rmartinc/keycloak
testsuite/performance/tests/src/main/gnuplot/jstat/gc-o.gp
[ "Apache-2.0" ]
<div class="faq-element"> <h3 class="faq-title">{{ f-title }}</h3> <div class="faq-copy">{{ f-copy }}</div> </div>
Liquid
3
noahcb/lit
website/src/_includes/partials/faq-element.liquid
[ "Apache-2.0" ]
DROP TABLE IF EXISTS src; DROP TABLE IF EXISTS src1; DROP TABLE IF EXISTS src_json; DROP TABLE IF EXISTS src_sequencefile; DROP TABLE IF EXISTS src_thrift; DROP TABLE IF EXISTS srcbucket; DROP TABLE IF EXISTS srcbucket2; DROP TABLE IF EXISTS srcpart; DROP TABLE IF EXISTS primitives;
SQL
2
OlegPt/spark
sql/hive/src/test/resources/data/scripts/q_test_cleanup.sql
[ "Apache-2.0" ]
camera { location <0, 4, -6> look_at <0, 0, 1> } // Light source on the left side of the scene light_source { <-6, 6, 1> color rgb <1, 1, 1> fade_distance 6 fade_power 2 area_light <3, 0, 0>, <0, 3, 0>, 12, 12 circular orient } // Light source from the camera light_source { <...
POV-Ray SDL
3
spcask/pov-ray-tracing
src/scene19.pov
[ "MIT" ]
<?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" > <svg xmlns="http://www.w3.org/2000/svg"> <metadata>Generated by IcoMoon</metadata> <defs> <font id="icomoon" horiz-adv-x="1024"> <font-face units-per-em="1024" ascent="960" descent="...
SVG
3
asahiocean/joplin
packages/app-desktop/style/icons/fonts/icomoon.svg
[ "MIT" ]
live 1.3185761870649397 0.0 0.0 0.0 0.0 0.0 0.0 0.056334474615027837 0.0 1.3185761870649397 0.33774693405321343 0.0 0.0 0.11460338273900378 2.4171884757330493 0.0 0.0 0.0 0.0 0.0 0.0 0.0 ill 0.0 2.5713391555603078 0.0 0.0 0.67421917067442649 0.0 0.0 0.0 0.0 0.0 0.8973627219886362 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0...
DM
0
tommasoc80/EventStoryLine
ppmi_events_ecb+_test/23/same_sentence_ppmi.dm
[ "CC-BY-3.0" ]
/* Copyright © 2011-2013 MLstate This file is part of Opa. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, m...
Opa
5
Machiaweliczny/oppailang
lib/stdlib/core/rpc/core/channel.opa
[ "MIT" ]
(ns hu.lib.maths (:require [hu.lib.type :refer [array?]])) (defcurry ^array cross "Crosses two vectors" [x y] (when (array? x) (if (? (.-length x) 3) [(- (* (aget x 1) (aget y 2)) (* (aget x 2) (aget y 1))) (- (* (aget x 2) (aget y 0)) (* (aget x 0) (aget y 2))) (- (* (aget x 0) (aget y...
wisp
4
h2non/hu
src/maths.wisp
[ "MIT" ]
export default 'foobar'
JavaScript
0
blomqma/next.js
test/integration/next-dynamic/apples/index.js
[ "MIT" ]
#version 300 es #define SHADER_NAME Tiling-Sprite-100 precision lowp float; in vec2 vTextureCoord; out vec4 fragmentColor; uniform sampler2D uSampler; uniform vec4 uColor; uniform mat3 uMapCoord; uniform vec4 uClampFrame; uniform vec2 uClampOffset; void main(void) { vec2 coord = vTextureCoord + ceil(uClampOffs...
GLSL
4
fanlistener/pixijs
packages/sprite-tiling/src/sprite-tiling.frag
[ "MIT" ]
/* Copyright (c) 2017-2019 Netronome Systems, Inc. All rights reserved. * * SPDX-License-Identifier: BSD-2-Clause */ #include <single_ctx_test.uc> #include "pkt_ipv6_ipv6_lso_vxlan_tcp_x80.uc" #include <config.h> #include <global.uc> #include <pv.uc> #include <stdmac.uc> #define PV_TEST_SIZE_LW (PV_SIZE_LW/2) ...
UnrealScript
3
pcasconnetronome/nic-firmware
test/datapath/pv_lso_fixup_ipv6_ipv6_vxlan_test.uc
[ "BSD-2-Clause" ]
grammar Query; AND : 'and'; OR : 'or'; // comparison operators EQ : '='; CONTAINS : '~'; GT : '>'; GTE : '>='; LT : '<'; LTE : '<='; WS : [ \t\r\n]+ -> skip; INT : '-'? [0-9]+ ; FLOAT : '-'? [0-9]+'.'[0-9]+; STRING : '"' .*? '...
ANTLR
4
theRealBaccata/picotorrent
src/pql/Query.g4
[ "MIT" ]
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. // // Copyright (C) 2021 Intel Corporation #include "gstreamer_pipeline_facade.hpp" #include "gstreamerpipeline_priv.hpp" #in...
C++
4
pazamelin/openvino
thirdparty/fluid/modules/gapi/src/streaming/gstreamer/gstreamerpipeline.cpp
[ "Apache-2.0" ]
a ← ⍳ 4 b ← a / a ⍝ --> 1 2 2 3 3 3 4 4 4 4 +/ b ⍝ --> 30
APL
3
melsman/apltail
tests/replicate.apl
[ "MIT" ]
use BlockDist; var Space = {1..10}; var BlockSpace = Space dmapped Block(boundingBox=Space); var BA: [BlockSpace] int; for ba in BA do ba = here.id; writeln("Locales running for iterations"); writeln(BA);
Chapel
3
jhh67/chapel
test/users/ferguson/distributed_for.chpl
[ "ECL-2.0", "Apache-2.0" ]
:mod:`plistlib` --- Generate and parse Apple ``.plist`` files ============================================================= .. module:: plistlib :synopsis: Generate and parse Apple plist files. .. moduleauthor:: Jack Jansen .. sectionauthor:: Georg Brandl <georg@python.org> .. (harvested from docstrings in the ori...
reStructuredText
5
oleksandr-pavlyk/cpython
Doc/library/plistlib.rst
[ "0BSD" ]
'seq' '60 62 64 67' gen_vals 1 metro 0 'seq' tseq mtof 0.1 sine
SourcePawn
2
aleatoricforest/Sporth
examples/tseq.sp
[ "MIT" ]
size: 3600px 1920px; dpi: 400; legend { border: none; margin: 0; item { label: "北京市 (Beijing)"; color: #06c; } item { label: "תל אביב (Tel Aviv)"; color: #c06; } item { label: "القاهرة‎ (Cairo)"; color: #c06; } item { label: "Москва"; color: #60c; } item { ...
CLIPS
2
asmuth-archive/travistest
test/examples/charts_custom_text_i18n.clp
[ "Apache-2.0" ]
stocks load aa fa fmp profile -h quote -h enterprise -h dcf -h income -h balance -h cash -h metrics -h ratios -h growth -h profile quote enterprise dcf income balance cash metrics ratios growth .. load aapl fmp profile quote enterprise dcf income balance cash metrics ratios growth exit
Gosu
2
minhhoang1023/GamestonkTerminal
scripts/test_stocks_fa_fmp.gst
[ "MIT" ]
cluster1:10:5001 cluster2:1:5002
Octave
0
ADanayi/openCOT
Controller/init/init_clusters.oct
[ "MIT" ]
.class public stack_var8 .super java/lang/Object .field private n I .method public <init>()V .limit stack 5 aload_0 invokenonvirtual java/lang/Object/<init>()V aload_0 iconst_0 putfield stack_var8/n I return .end method .method public f()I .limit stack 8 .limit locals 5 aload_0 getfiel...
Jasmin
4
mauguignard/cbmc
jbmc/regression/jbmc/stack_var8/stack_var8.j
[ "BSD-4-Clause" ]
"""The microsoft_face_identify component."""
Python
0
domwillcode/home-assistant
homeassistant/components/microsoft_face_identify/__init__.py
[ "Apache-2.0" ]
"This module has a docstring. It covers multiple lines, too! " (setv a 1)
Hy
1
josephwillard/hy
tests/resources/importer/docstring.hy
[ "MIT" ]
(assert (= (sha256 (bytes "abc")) [ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad]) ) (assert (= (sha256 (bytes "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq")) [248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1]) ) (assert (= (sha256 (* (bytes "a") 1000000)) [cdc76e...
Slash
5
Leo-Neat/h2o
deps/picotls/deps/cifra/shitlisp/test-sha256.sl
[ "MIT" ]
[Desktop Entry] Encoding=UTF-8 Type=Application Name=Algernon GenericName=Web Server Comment=QUIC Web Server with Lua, Markdown and Pongo2 support Exec=algernon -m Icon=markdown Terminal=false StartupNotify=false Categories=Application; MimeType=text/markdown; NoDisplay=true
desktop
2
HarshCasper/algernon
desktop/algernon_md.desktop
[ "MIT" ]
; CLW file contains information for the MFC ClassWizard [General Info] Version=1 LastClass=CMineWnd LastTemplate=CDialog NewFileInclude1=#include "stdafx.h" NewFileInclude2=#include "mine.h" LastPage=0 ClassCount=5 Class1=CDlgCustom Class2=CDlgHero Class3=CDlgNewRecord Class4=CMineApp Class5=CMineWnd ...
Clarion
3
gxw1/review_the_national_post-graduate_entrance_examination
books_and_notes/professional_courses/computer_organization_and_architecture/sources/lab/Skyblue_Mine/Mine.clw
[ "MIT" ]
--TEST-- Test fscanf() function: usage variations - objects --FILE-- <?php /* Test fscanf() to scan a file to read objects */ $file_path = __DIR__; echo "*** Test fscanf(): to read objects from a file ***\n"; // declare a class class foo { public $var1 = 1; public $var2 = 2; function __toString() { return...
PHP
5
NathanFreeman/php-src
ext/standard/tests/file/fscanf_variation54.phpt
[ "PHP-3.01" ]
;;;; -*- Mode: Lisp; Syntax: Common-Lisp -*- ;;;; Code from Paradigms of AI Programming ;;;; Copyright (c) 1991 Peter Norvig ;;;; File waltz.lisp: Line-labeling using Waltz filtering. (defstruct diagram "A diagram is a list of vertexes." vertexes) (defstruct (vertex (:print-function print-vertex)) (name nil :...
Common Lisp
5
sethaldini/paip-lisp
lisp/waltz.lisp
[ "MIT" ]
scriptname _Seed_AlcoholSystem extends Quest import Utility import CampUtil GlobalVariable property _Seed_Setting_VitalitySystemEnabled auto GlobalVariable property _Seed_AlcoholSystemEnabled auto GlobalVariable property _Seed_AttributeDrunk auto GlobalVariable property _Seed_Setting_VampireBehavior auto GlobalVariab...
Papyrus
5
chesko256/Campfire
Scripts/Source/_Seed_AlcoholSystem.psc
[ "MIT" ]
%default total test : (f : () -> Bool) -> f () = True test (\x => True) = Refl bad : False = True bad = test (\() => False)
Idris
3
ska80/idris-jvm
tests/idris2/coverage016/Issue633.idr
[ "BSD-3-Clause" ]
#include <metal_stdlib> #include <simd/simd.h> using namespace metal; struct Uniforms { half4 colorGreen; }; struct Inputs { }; struct Outputs { half4 sk_FragColor [[color(0)]]; }; fragment Outputs fragmentMain(Inputs _in [[stage_in]], constant Uniforms& _uniforms [[buffer(0)]], bool _frontFacing [[front_facing...
Metal
3
fourgrad/skia
tests/sksl/shared/Overflow.metal
[ "BSD-3-Clause" ]
# -*- perl -*- use strict; use warnings; use tests::tests; check_expected ([<<'EOF']); (priority-sema) begin (priority-sema) Thread priority 30 woke up. (priority-sema) Back in main thread. (priority-sema) Thread priority 29 woke up. (priority-sema) Back in main thread. (priority-sema) Thread priority 28 woke up. (prio...
ChucK
3
Jeffxzj/PintOS-Project1
tests/threads/priority-sema.ck
[ "MIT" ]
/* * The code is adopted from original (half) c implementation: * https://github.com/ulfjack/ryu.git with some more comments and tidying. License is * attached below. * * Copyright 2018 Ulf Adams * * The contents of this file may be used under the terms of the Apache License, * Version 2.0. * * (See accom...
C++
5
bclehmann/xgboost
tests/cpp/common/test_charconv.cc
[ "Apache-2.0" ]
//This is the solution to http://codeforces.com/contest/900/problem/C //C. Remove Extra One #raw "template.cpy" #define N 100007 int main() int n cin n a = 0 b = 0 int x int blk[N] memset(blk, 0, sizeof(blk)) t = n while t-- cin x if x > a b = a a = x blk[a]-- else if x > b b = x blk...
COBOL
3
saviour07/CPY
Examples/Contest problems/900C. Remove Extra One/c.cpy
[ "MIT" ]
" Vim filetype plugin file " Language: reStructuredText documentation format with R code " Maintainer: Jakson Alves de Aquino <jalvesaq@gmail.com> " Homepage: https://github.com/jalvesaq/R-Vim-runtime " Last Change: Sat Aug 15, 2020 12:02PM " Original work by Alex Zvoleff " Only do this when not yet done for this buf...
VimL
4
uga-rosa/neovim
runtime/ftplugin/rrst.vim
[ "Vim" ]
@baze eg: <http://example.org/> .
Turtle
0
joshrose/audacity
lib-src/lv2/serd/tests/bad/bad-misspelled-base.ttl
[ "CC-BY-3.0" ]
exec("swigtest.start", -1); foo_ptr = Foo_ptr_getPtr(); foo = Foo_ptr___deref__(foo_ptr); checkequal(Foo_getVal(foo), 17, "Foo_getVal(p)"); foo_ptr = Foo_ptr_getConstPtr(); foo = Foo_ptr___deref__(foo_ptr); checkequal(Foo_getVal(foo), 17, "Foo_getVal(p)"); exec("swigtest.quit", -1);
Scilab
3
kyletanyag/LL-Smartcard
cacreader/swig-4.0.2/Examples/test-suite/scilab/return_const_value_runme.sci
[ "BSD-3-Clause" ]
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "ReadableNativeMap.h" using namespace facebook::jni; namespace facebook { namespace react { void ReadableNativeMap::map...
C++
4
anaskhraza/react-native
ReactAndroid/src/main/jni/react/jni/ReadableNativeMap.cpp
[ "CC-BY-4.0", "MIT" ]
'* Copyright (c) 2017 Roku, Inc. All rights reserved. ' ' File: SampleVideo.brs ' '* video.manifestData field is roAssociativeArray which currently carries two elements: '* "mpd" - roAssociativeArray of string values '* "periods" - roArray of roAssociativeArrays of string values '* '* Examples of accessing m...
Brightscript
5
khangh/samples
certification/manifestData-sample-master/components/SampleVideo.brs
[ "MIT" ]
// Copyright (c) 2019 Bluespec, Inc. All Rights Reserved package Unit_Test_Fabric; // ================================================================ // Standalone unit tester for AXI4_Lite_Fabric.bsv // ================================================================ // Bluespec library imports import FIFOF ...
Bluespec
5
Skydive/Piccolo
src_Testbench/Fabrics/AXI4_Lite/Unit_Test/Unit_Test_Fabric.bsv
[ "Apache-2.0" ]
############################################################################# ## #W sml512.cw GAP library of groups Hans Ulrich Besche ## Bettina Eick, Eamonn O'Brien ## SMALL_GROUP_LIB[ 512 ][ 101 ] := [ "%%%%%%%%(G8,->e1)<,,/D%/%%)&%%!}nD<j!}uD)F!...
Redcode
1
hulpke/smallgrp
small7/sml512.cw
[ "Artistic-2.0" ]
%{ #include <stdio.h> #include <stdlib.h> #include <string> #include <cstring> #include <iostream> #include "euler/parser/tree.h" typedef struct yy_buffer_state * YY_BUFFER_STATE; typedef size_t yy_size_t; extern YY_BUFFER_STATE yy_scan_string(const char * str); extern void yy_delete_buffer(YY_BUFFER_STATE buffer); e...
Yacc
4
timpcfan/euler
euler/parser/gremlin.y
[ "Apache-2.0" ]
-- @shouldFailWith TransitiveExportError module Test (class Foo) where import Prelude class Foo a where bar :: a -> a
PureScript
4
metaleap/purs-with-dump-coreimp
examples/failing/MissingClassMemberExport.purs
[ "BSD-3-Clause" ]
:- object(t). :- uses(assignvars, [ assignable/1, assignable/2, op(100, xfx, '<='), ('<=')/2, op(100, xfx, '=>'), ('=>')/2 ]). :- public(p/1). p(Value) :- assignable(Assignable), Assignable <= 1, Assignable <= 2, Assignable <= 3, Assignable => Value. :- public(q/1). q(Value) :- assignvars::(a...
Logtalk
3
PaulBrownMagic/logtalk3
library/assignvars/t.lgt
[ "Apache-2.0" ]
<?xml version='1.0' encoding='utf-8'?> <?python from ennepe import __url__, __version__ ?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"> <head> <title py:content="title" /> <link rel="alternate" type="application/atom+xml" title="Atom" href="${blogroot}/feed/atom.xml" /> ...
Genshi
3
decklin/ennepe
examples/simple/style/xhtml.kid
[ "0BSD" ]
#pragma once #include <eigen3/Eigen/Dense> #include "coordinates.hpp" Eigen::Quaterniond ensure_unique(Eigen::Quaterniond quat); Eigen::Quaterniond euler2quat(Eigen::Vector3d euler); Eigen::Vector3d quat2euler(Eigen::Quaterniond quat); Eigen::Matrix3d quat2rot(Eigen::Quaterniond quat); Eigen::Quaterniond rot2quat(co...
C++
4
wolterhv/openpilot
common/transformations/orientation.hpp
[ "MIT" ]
// @noImplicitAny: true function getNumber(): number { return 1; } class Example { getNumber(): number { return 1; } doSomething(a = this.getNumber()): typeof a { return a; } } function weird(this: Example, a = this.getNumber()) { return a; } class Weird { doSomething(this: E...
TypeScript
3
nilamjadhav/TypeScript
tests/cases/compiler/inferParameterWithMethodCallInitializer.ts
[ "Apache-2.0" ]
import * as React from 'react'; import CircularProgress from '@mui/material/CircularProgress'; export default function CircularUnderLoad() { return <CircularProgress disableShrink />; }
TypeScript
4
dany-freeman/material-ui
docs/data/material/components/progress/CircularUnderLoad.tsx
[ "MIT" ]
/** * A NIC offloading example using DPDK's Flow API. * Three NIC rules are offloaded, each dispatching matched packets * to one of the first 3 NIC queues. Another 2 queues are used by RSS. */ /** * Deploy as follows: * sudo ../../bin/click --dpdk -l 0-4 -w 0000:11:00.0 -v -- dpdk-flow-parser.click */ define( ...
Click
4
BorisPis/asplos22-nicmem-fastclick
conf/flow-parser/dpdk-flow-parser.click
[ "BSD-3-Clause-Clear" ]
REBOL [ System: "REBOL [R3] Language Interpreter and Run-time Environment" Title: "REBOL Internal Dialect: Rich Text" Rights: { Copyright 2012 REBOL Technologies REBOL is a trademark of REBOL Technologies } License: { Licensed under the Apache License, Version 2.0 See: http://www.apache.org/licenses/LICENS...
Rebol
4
0branch/r3
src/mezz/dial-text.reb
[ "Apache-2.0" ]
- description: JSON variables should not be interpreted as graphql input values url: /v1/graphql status: 200 response: data: insert_article_one: body: 1: 2 2: 3 query: query: | mutation insert_article($body: jsonb) { insert_article_one(object: {body: $body...
YAML
3
gh-oss-contributor/graphql-engine-1
server/tests-py/queries/graphql_validation/json_column_value.yaml
[ "Apache-2.0", "MIT" ]
Rem Ceil(x#) returns the smallest integral value not less than x End Rem for i#=-1 to 1 step .2 print "Ceil("+i+")="+Ceil(i) next
BlitzMax
3
jabdoa2/blitzmax
mod/brl.mod/blitz.mod/doc/ceil.bmx
[ "Zlib" ]
package com.baeldung.config; import org.jobrunr.jobs.mappers.JobMapper; import org.jobrunr.storage.InMemoryStorageProvider; import org.jobrunr.storage.StorageProvider; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @Configuration public class StoragePr...
Java
4
DBatOWL/tutorials
spring-boot-modules/spring-boot-libraries-2/src/main/java/com/baeldung/config/StorageProviderConfig.java
[ "MIT" ]
import time import os from selenium import webdriver from selenium.webdriver.chrome.options import Options chrome_options = Options() chrome_options.add_argument("nwapp=" + os.path.dirname(os.path.abspath(__file__))) driver = webdriver.Chrome(executable_path=os.environ['CHROMEDRIVER'], chrome_options=chrome_options) ...
Python
2
namaljayathunga/nw.js
test/remoting/wopen-obj-navigate/test.py
[ "MIT" ]
(set-info :smt-lib-version 2.6) (set-logic QF_IDL) (set-info :source |The Averest Framework (http://www.averest.org)|) (set-info :category "industrial") (set-info :status sat) (declare-fun cvclZero () Int) (declare-fun F0 () Int) (declare-fun F2 () Int) (declare-fun F4 () Int) (declare-fun F6 () Int) (declare-fun F8 ()...
SMT
3
livinlife6751/infer
sledge/test/smt/QF_IDL/Averest/linear_search/LinearSearch_safe_blmc000.smt2
[ "MIT" ]
/// Error handling with the Result type. import Prim "mo:⛔"; import P "Prelude"; import Order "Order"; module { /// `Result<Ok, Err>` is the type used for returning and propagating errors. It /// is a type with the variants, `#ok(Ok)`, representing success and containing /// a value, and `#err(Err)`, represent...
Modelica
5
nomeata/motoko-base
src/Result.mo
[ "Apache-2.0" ]
/*############################################################################## HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®. 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...
ECL
3
miguelvazq/HPCC-Platform
ecl/regress/enum.ecl
[ "Apache-2.0" ]
.root background: var(--color-back) border-radius: 2em border: 1px solid var(--color-subtle) width: 100% padding: 0.25em 1em display: inline-flex margin: var(--spacing-xs) 0 font: var(--font-size-code)/var(--line-height-code) var(--font-code) -webkit-font-smoothing: subpixel-antialia...
Sass
2
snosrap/spaCy
website/src/styles/copy.module.sass
[ "MIT" ]
/****************************************************************************** * Copyright 2018 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
5
seeclong/apollo
modules/canbus/vehicle/lexus/protocol/interior_lights_rpt_416.h
[ "Apache-2.0" ]
<script> // the actual server response does not matter // just trying to verify the network layer does not crash // https://github.com/cypress-io/cypress/issues/15901 fetch('http://localhost:5000/api/sample', { method: 'POST', body: JSON.stringify({ // does not crash // first: 'hello' ...
HTML
4
bkucera2/cypress
packages/driver/cypress/fixtures/utf8-post.html
[ "MIT" ]
M ← 200 N ← 300 K ← 200 300 Kr ← 300 200 ⍝ b ← 1 4 ⍝ 2 5 ⍝ 3 6 ⍝ c ← 11 24 ⍝ 12 25 ⍝ 13 26 ⍝ d ← 35 37 39 ⍝ e ← 50505 a ← K ⍴ ⍳ M × N b ← ⍉ a c ← b + 10 × Kr ⍴ ⍳ M d ← +/ Kr ⍴ c e ← +/ d
APL
2
mbudde/apltail
tests/cosmin.apl
[ "MIT" ]
FORMAT: 1A # Attributes API This API example demonstrates how to describe body attributes of a request or response message. In this case, the description is complementary (and duplicate!) to the provided JSON example in the body section. The [Advanced Attributes](09.%20Advanced%20Attributes.md) API example will demon...
API Blueprint
4
JavascriptID/sourcerer-app
src/test/resources/samples/langs/API Blueprint/attributes.apib
[ "MIT" ]
/* Empty CSS to avoid styles leaking from the page - https://github.com/NativeScript/NativeScript/issues/8143 */
CSS
0
tralves/NativeScript
apps/ui/src/tab-view/text-transform-page.css
[ "Apache-2.0" ]
package com.baeldung.concurrent.atomic; import java.util.concurrent.atomic.AtomicMarkableReference; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; public class AtomicMarkableReferenceUnitTest { class Employee { private int id; private String name; Employee(in...
Java
5
DBatOWL/tutorials
core-java-modules/core-java-concurrency-basic-2/src/test/java/com/baeldung/concurrent/atomic/AtomicMarkableReferenceUnitTest.java
[ "MIT" ]
[ { "@id": "_:b0", "http://example.com/datelist": [ { "@list": [ { "@value": "2012-04-12", "@type": "http://www.w3.org/2001/XMLSchema#date" } ] } ],...
JSONLD
3
fsteeg/json-ld-api
tests/flatten/0023-out.jsonld
[ "W3C" ]
// FOREIGN_ANNOTATIONS // FILE: A.java import javax.annotation.*; @ParametersAreNonnullByDefault public class A { @Nullable public String field = null; public String foo(String q, @Nonnull String x, @CheckForNull CharSequence y) { return ""; } @Nonnull public String bar() { retu...
Java
4
AndrewReitz/kotlin
compiler/fir/resolve/testData/enhancement/jsr305/typeQualifierDefault/ParametersAreNonnullByDefault.java
[ "ECL-2.0", "Apache-2.0" ]
// WMISensor.cpp : Defines the entry point for the DLL application. // #include "stdafx.h" #include "WMIServiceJNI.h" #include "WMIService.h" #include "WMIUtils.h" /* * Class: org_jkiss_wmi_service_WMIService * Method: connect * Signature: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/S...
C++
4
SubOptimal/dbeaver
bundles/org.jkiss.wmi/src/native/WMIServiceJNI.cpp
[ "Apache-2.0" ]
type VRMConversation implements Node, Entity @foo { a: Int }
GraphQL
2
fuelingtheweb/prettier
tests/graphql_object_type_def/implements.graphql
[ "MIT" ]
# frozen_string_literal: true module ActiveRecord class PredicateBuilder class RangeHandler # :nodoc: RangeWithBinds = Struct.new(:begin, :end, :exclude_end?) def initialize(predicate_builder) @predicate_builder = predicate_builder end def call(attribute, value) begin_bi...
Ruby
3
mdesantis/rails
activerecord/lib/active_record/relation/predicate_builder/range_handler.rb
[ "MIT" ]
[{ "@id": "http://a.example.com/base", "http://example.com/bar": [{"@value": "foo"}] }]
JSONLD
1
fsteeg/json-ld-api
tests/expand/h022-out.jsonld
[ "W3C" ]
.kg-file-card, .kg-file-card * { box-sizing: border-box; } .kg-file-card { display: flex; } .kg-file-card a.kg-file-card-container { display: flex; align-items: stretch; justify-content: space-between; color: inherit; padding: 6px; min-height: 92px; border: 1px solid rgb(124 139 15...
CSS
3
ClashgamesFR/Ghost
core/frontend/src/cards/css/file.css
[ "MIT" ]
import { browser } from 'protractor'; import {OnPrepareConfig, runServer} from '@bazel/protractor/protractor-utils'; import * as path from 'path'; export = function(config: OnPrepareConfig) { const isProdserver = path.basename(config.server, path.extname(config.server)) === 'prodserver'; return runServer(config.wo...
TypeScript
4
coreyscherbing/angular
integration/bazel/test/e2e/on-prepare.ts
[ "MIT" ]
\initial {/} \entry {/etc/hostname}{800} \entry {\file {/etc/nsswitch.conf}}{762} \initial {{\_}} \entry {__va_copy}{90} \entry {\code {_POSIX_OPTION_ORDER} environment variable.}{722} \entry {\code {_POSIX_SAVED_IDS}}{772} \initial {4} \entry {4.\var {n} BSD Unix}{3} \initial {A} \entry {abort signal}{640} \entry {abo...
Component Pascal
3
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/glibc/manual/libc.cps
[ "FSFAP" ]
#!/usr/bin/tclsh proc is-section line { return [regexp {^[A-Z ]+$} $line] } # First argument is Manifest file, others are sections. set sections [lassign $argv maffile] if { $sections == "" } { puts stderr "Usage: [file tail $argv0] <MAF file> <section name>" exit 1 } # NOTE: If the file doesn't exist, simply pr...
Tcl
4
attenuation/srs
trunk/3rdparty/srt-1-fit/scripts/mafread.tcl
[ "MIT" ]
/* * Copyright 2014-2019 Jiří Janoušek <janousek.jiri@gmail.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of con...
Vala
4
xcffl/nuvolaruntime
src/nuvolakit-runner/components/developer/DeveloperSidebar.vala
[ "BSD-2-Clause" ]
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/nw/src/renderer/printing/print_web_view_helper.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "base/metr...
C++
4
namaljayathunga/nw.js
src/renderer/printing/print_web_view_helper_win.cc
[ "MIT" ]