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 |
|---|---|---|---|---|---|
.section
.list-group-flush
div (:class "list-group-item border-0")
.title "Immutable Configuration properties"
.container-fluid
.row
.col
.lang Java
pre.code $ code (@insert ../../code/java/spring-framework/spring-framework-00.java) $ :class java
.col
.lang Kotlin
pre.code $ code (@insert ../../code/kotlin/spring-framework/spring-framework-00.kt) $ :class kotlin
| Cirru | 2 | driver733/kot | cirru/spring-framework.cirru | [
"MIT"
] |
{
"name": "wvtest",
"version": "1.0.0",
"license": "MIT",
"description": "",
"main": "http://127.0.0.1:{port}/",
"webview": {
"partitions": [
{
"name": "trusted*",
"accessible_resources": ["*"]
}
]
},
"node-remote": "<all_urls>"
}
| Smarty | 2 | frank-dspeed/nw.js | test/sanity/issue6784-webview/package.json.tpl | [
"MIT"
] |
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: cmake-multilib.eclass
# @MAINTAINER:
# gx86-multilib team <multilib@gentoo.org>
# @AUTHOR:
# Author: Michał Górny <mgorny@gentoo.org>
# @SUPPORTED_EAPIS: 5 6
# @BLURB: cmake-utils wrapper for multilib builds
# @DESCRIPTION:
# The cmake-multilib.eclass provides a glue between cmake-utils.eclass(5)
# and multilib-minimal.eclass(5), aiming to provide a convenient way
# to build packages using cmake for multiple ABIs.
#
# Inheriting this eclass sets IUSE and exports default multilib_src_*()
# sub-phases that call cmake-utils phase functions for each ABI enabled.
# The multilib_src_*() functions can be defined in ebuild just like
# in multilib-minimal, yet they ought to call appropriate cmake-utils
# phase rather than 'default'.
# EAPI=5 is required for meaningful MULTILIB_USEDEP.
case ${EAPI:-0} in
5|6) ;;
*) die "EAPI=${EAPI} is not supported" ;;
esac
if [[ ${CMAKE_IN_SOURCE_BUILD} ]]; then
die "${ECLASS}: multilib support requires out-of-source builds."
fi
inherit cmake-utils multilib-minimal
EXPORT_FUNCTIONS src_configure src_compile src_test src_install
cmake-multilib_src_configure() {
local _cmake_args=( "${@}" )
multilib-minimal_src_configure
}
multilib_src_configure() {
cmake-utils_src_configure "${_cmake_args[@]}"
}
cmake-multilib_src_compile() {
local _cmake_args=( "${@}" )
multilib-minimal_src_compile
}
multilib_src_compile() {
cmake-utils_src_compile "${_cmake_args[@]}"
}
cmake-multilib_src_test() {
local _cmake_args=( "${@}" )
multilib-minimal_src_test
}
multilib_src_test() {
cmake-utils_src_test "${_cmake_args[@]}"
}
cmake-multilib_src_install() {
local _cmake_args=( "${@}" )
multilib-minimal_src_install
}
multilib_src_install() {
cmake-utils_src_install "${_cmake_args[@]}"
}
| Gentoo Eclass | 4 | NighttimeDriver50000/Sabayon-Packages | local_overlay/eclass/cmake-multilib.eclass | [
"MIT"
] |
(***********************************************************************)
(* *)
(* Applied Type System *)
(* *)
(***********************************************************************)
(*
** ATS/Postiats - Unleashing the Potential of Types!
** Copyright (C) 2010-2015 Hongwei Xi, ATS Trustful Software, Inc.
** All rights reserved
**
** ATS is free software; you can redistribute it and/or modify it under
** the terms of the GNU GENERAL PUBLIC LICENSE (GPL) as published by the
** Free Software Foundation; either version 3, or (at your option) any
** later version.
**
** ATS is distributed in the hope that it will be useful, but WITHOUT ANY
** WARRANTY; without even the implied warranty of MERCHANTABILITY or
** FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
** for more details.
**
** You should have received a copy of the GNU General Public License
** along with ATS; see the file COPYING. If not, please write to the
** Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
** 02110-1301, USA.
*)
(* ****** ****** *)
(* Author: Hongwei Xi *)
(* Authoremail: gmhwxiATgmailDOTcom *)
(* Start time: May, 2012 *)
(* ****** ****** *)
(*
** Source:
** $PATSHOME/prelude/DATS/CODEGEN/integer.atxt
** Time of generation: Tue Dec 6 09:50:55 2016
*)
(* ****** ****** *)
//
#define
ATS_DYNLOADFLAG 0 // no dynloading
//
(* ****** ****** *)
//
staload UN = "prelude/SATS/unsafe.sats"
//
(* ****** ****** *)
implement
g0int2int<intknd,intknd> = g0int2int_int_int
(* ****** ****** *)
//
implement
g0int_neg<intknd> = g0int_neg_int
implement
g0int_abs<intknd> = g0int_abs_int
implement
g0int_succ<intknd> = g0int_succ_int
implement
g0int_pred<intknd> = g0int_pred_int
implement
g0int_half<intknd> = g0int_half_int
implement
g0int_add<intknd> = g0int_add_int
implement
g0int_sub<intknd> = g0int_sub_int
implement
g0int_mul<intknd> = g0int_mul_int
implement
g0int_div<intknd> = g0int_div_int
implement
g0int_mod<intknd> = g0int_mod_int
implement
g0int_asl<intknd> = g0int_asl_int
implement
g0int_asr<intknd> = g0int_asr_int
implement
g0int_isltz<intknd> = g0int_isltz_int
implement
g0int_isltez<intknd> = g0int_isltez_int
implement
g0int_isgtz<intknd> = g0int_isgtz_int
implement
g0int_isgtez<intknd> = g0int_isgtez_int
implement
g0int_iseqz<intknd> = g0int_iseqz_int
implement
g0int_isneqz<intknd> = g0int_isneqz_int
implement
g0int_lt<intknd> = g0int_lt_int
implement
g0int_lte<intknd> = g0int_lte_int
implement
g0int_gt<intknd> = g0int_gt_int
implement
g0int_gte<intknd> = g0int_gte_int
implement
g0int_eq<intknd> = g0int_eq_int
implement
g0int_neq<intknd> = g0int_neq_int
implement
g0int_compare<intknd> = g0int_compare_int
implement
g0int_max<intknd> = g0int_max_int
implement
g0int_min<intknd> = g0int_min_int
//
implement
fprint_val<int> (out, x) = fprint_int (out, x)
//
(* ****** ****** *)
//
implement
{}(*tmp*)
mul_int1_size0(i, j) =
let val i = g1int2uint_int_size(i) in i * j end
implement
{}(*tmp*)
mul_size0_int1(i, j) =
let val j = g1int2uint_int_size(j) in i * j end
//
(* ****** ****** *)
implement
{tk}(*tk*)
g0int_npow
(x, n) = let
//
typedef gint = g0int(tk)
//
fun
loop
(
x: gint, res: gint, n: int
) : gint = (
//
if
(n > 1)
then let
val n2 = n >> 1
val b0 = n - (n2 << 1)
val xx = x * x
in
if b0 = 0
then loop(xx, res, n2) else loop(xx, x * res, n2)
// end of [if]
end // end of [then]
else (
if n > 0 then x * res else res
) (* end of [else] *)
//
) (* end of [loop] *)
//
val res = $UN.cast{gint}(1)
//
in
$effmask_all(loop(x, res, n))
end // end of [g0int_npow]
(* ****** ****** *)
//
implement
g1int2int<intknd,intknd> = g1int2int_int_int
//
(* ****** ****** *)
//
implement
g1int_neg<intknd> = g1int_neg_int
implement
g1int_abs<intknd> = g1int_abs_int
implement
g1int_succ<intknd> = g1int_succ_int
implement
g1int_pred<intknd> = g1int_pred_int
implement
g1int_half<intknd> = g1int_half_int
implement
g1int_add<intknd> = g1int_add_int
implement
g1int_sub<intknd> = g1int_sub_int
implement
g1int_mul<intknd> = g1int_mul_int
implement
g1int_div<intknd> = g1int_div_int
implement
g1int_nmod<intknd> = g1int_nmod_int
implement
g1int_isltz<intknd> = g1int_isltz_int
implement
g1int_isltez<intknd> = g1int_isltez_int
implement
g1int_isgtz<intknd> = g1int_isgtz_int
implement
g1int_isgtez<intknd> = g1int_isgtez_int
implement
g1int_iseqz<intknd> = g1int_iseqz_int
implement
g1int_isneqz<intknd> = g1int_isneqz_int
implement
g1int_lt<intknd> = g1int_lt_int
implement
g1int_lte<intknd> = g1int_lte_int
implement
g1int_gt<intknd> = g1int_gt_int
implement
g1int_gte<intknd> = g1int_gte_int
implement
g1int_eq<intknd> = g1int_eq_int
implement
g1int_neq<intknd> = g1int_neq_int
implement
g1int_compare<intknd> = g1int_compare_int
implement
g1int_max<intknd> = g1int_max_int
implement
g1int_min<intknd> = g1int_min_int
//
(* ****** ****** *)
implement
{tk}(*tmp*)
g1int_sgn(x) = compare_g1int_int<tk> (x, 0)
(* ****** ****** *)
//
implement{
} add_size1_int1
{i,j}(i, j) = $UN.cast{size_t(i+j)}(i+g0i2u(j))
implement{
} add_int1_size1
{i,j}(i, j) = $UN.cast{size_t(i+j)}(g0i2u(i)+j)
//
implement{
} sub_size1_int1
{i,j}(i, j) = $UN.cast{size_t(i-j)}(i-g0i2u(j))
//
(* ****** ****** *)
implement
{tk}(*tmp*)
g1int_mul2
{i,j}(x, y) = let
//
prval pf =
mul_make{i,j}() in (pf | g1int_mul<tk> (x, y))
//
end // end of [let] // end of [g1int_mul2]
(* ****** ****** *)
//
implement
{}(*tmp*)
mul_int1_size1
{i,j}(i, j) = $UN.cast{size_t(i*j)}(g0i2u(i)*j)
implement
{}(*tmp*)
mul_size1_int1
{i,j}(i, j) = $UN.cast{size_t(i*j)}(i*g0i2u(j))
//
(* ****** ****** *)
implement
{tk}(*tmp*)
g1int_ndiv
{i,j}(x, y) = let
//
val q =
g1int_div<tk>(x, y) in $UN.cast{g1int(tk,ndiv(i,j))}(q)
//
end // end of [let] // end of [g1int_ndiv]
(* ****** ****** *)
implement
{tk}(*tmp*)
g1int_ndiv2
{i,j}(x, y) = let
//
val
[q:int] q = g1int_div(x, y)
//
prval
[q2:int,r:int]
pf_istot = divmod_istot{i,j}()
//
prval
EQINT((*void*)) =
$UN.castview0{EQINT(q,q2)}(0)
//
in
(pf_istot | q(*quotient*))
end // end of [let] // end of [g1int_ndiv2]
(* ****** ****** *)
//
implement
{tk}(*tmp*)
ndiv_g1int_int1
(x, y) = g1i2i(g1int_ndiv(x, g1i2i(y)))
//
(* ****** ****** *)
implement
{tk}(*tmp*)
g1int_nmod2
{i,j}(x, y) = let
//
val r = g1int_nmod(x, y)
//
prval
[q:int,r2:int]
pf_istot = divmod_istot{i,j}()
//
prval
EQINT((*void*)) =
$UN.castview0{EQINT(i%j,r2)}(0)
//
in
(pf_istot | r(*remainder*))
end // end of [let] // end of [g1int_nmod2]
(* ****** ****** *)
//
implement
{tk}(*tmp*)
nmod_g1int_int1
(x, y) = g1i2i(g1int_nmod(x, g1i2i(y)))
//
(* ****** ****** *)
implement
{tk}(*tmp*)
nmod2_g1int_int1
{i,j}(x, y) = let
//
val r = nmod_g1int_int1(x, y)
//
prval
[q:int,r2:int]
pf_istot = divmod_istot{i,j}()
//
prval
EQINT((*void*)) = $UN.castview0{EQINT(i%j,r2)}(0)
//
in
(pf_istot | r(*remainder*))
end // end of [let] // end of [nmod2_g1int_int1]
(* ****** ****** *)
(*
//
// HX-2016-12:
// [ngcd] is no longer pre-declared
//
implement
{tk}(*tmp*)
g1int_ngcd
(x, y) = let
//
fun
loop{i,j:nat} .<j>.
(
x: g1int(tk, i)
, y: g1int(tk, j)
) :<> [r:nat] g1int(tk, r) = let
in
//
if y > 0 then loop (y, g1int_nmod(x, y)) else x
//
end // end of [loop]
//
in
loop (x, y)
end // end of [g1int_ngcd]
*)
(* ****** ****** *)
//
// HX: int -> uint
//
implement
g0int2uint<intknd,uintknd> = g0int2uint_int_uint
//
(* ****** ****** *)
//
// HX: uint -> int
//
implement
g0uint2int<uintknd,intknd> = g0uint2int_uint_int
//
(* ****** ****** *)
//
// HX: uint -> uint
//
implement
g0uint2uint<uintknd,uintknd> = g0uint2uint_uint_uint
//
(* ****** ****** *)
//
implement
g0uint_succ<uintknd> = g0uint_succ_uint
implement
g0uint_pred<uintknd> = g0uint_pred_uint
implement
g0uint_half<uintknd> = g0uint_half_uint
implement
g0uint_add<uintknd> = g0uint_add_uint
implement
g0uint_sub<uintknd> = g0uint_sub_uint
implement
g0uint_mul<uintknd> = g0uint_mul_uint
implement
g0uint_div<uintknd> = g0uint_div_uint
implement
g0uint_mod<uintknd> = g0uint_mod_uint
implement
g0uint_lsl<uintknd> = g0uint_lsl_uint
implement
g0uint_lsr<uintknd> = g0uint_lsr_uint
implement
g0uint_lnot<uintknd> = g0uint_lnot_uint
implement
g0uint_lor<uintknd> = g0uint_lor_uint
implement
g0uint_lxor<uintknd> = g0uint_lxor_uint
implement
g0uint_land<uintknd> = g0uint_land_uint
implement
g0uint_isgtz<uintknd> = g0uint_isgtz_uint
implement
g0uint_iseqz<uintknd> = g0uint_iseqz_uint
implement
g0uint_isneqz<uintknd> = g0uint_isneqz_uint
implement
g0uint_lt<uintknd> = g0uint_lt_uint
implement
g0uint_lte<uintknd> = g0uint_lte_uint
implement
g0uint_gt<uintknd> = g0uint_gt_uint
implement
g0uint_gte<uintknd> = g0uint_gte_uint
implement
g0uint_eq<uintknd> = g0uint_eq_uint
implement
g0uint_neq<uintknd> = g0uint_neq_uint
implement
g0uint_compare<uintknd> = g0uint_compare_uint
implement
g0uint_max<uintknd> = g0uint_max_uint
implement
g0uint_min<uintknd> = g0uint_min_uint
//
implement
fprint_val<uint> (out, x) = fprint_uint (out, x)//
(* ****** ****** *)
//
// HX: int -> uint
//
implement
g1int2uint<intknd,uintknd> = g1int2uint_int_uint
//
(* ****** ****** *)
//
// HX: uint -> int
//
implement
g1uint2int<uintknd,intknd> = g1uint2int_uint_int
//
(* ****** ****** *)
//
// HX: uint -> uint
//
implement
g1uint2uint<uintknd,uintknd> = g1uint2uint_uint_uint
//
(* ****** ****** *)
//
implement
g1uint_succ<uintknd> = g1uint_succ_uint
implement
g1uint_pred<uintknd> = g1uint_pred_uint
implement
g1uint_half<uintknd> = g1uint_half_uint
implement
g1uint_add<uintknd> = g1uint_add_uint
implement
g1uint_sub<uintknd> = g1uint_sub_uint
implement
g1uint_mul<uintknd> = g1uint_mul_uint
implement
g1uint_div<uintknd> = g1uint_div_uint
implement
g1uint_mod<uintknd> = g1uint_mod_uint
implement
g1uint_isgtz<uintknd> = g1uint_isgtz_uint
implement
g1uint_iseqz<uintknd> = g1uint_iseqz_uint
implement
g1uint_isneqz<uintknd> = g1uint_isneqz_uint
implement
g1uint_lt<uintknd> = g1uint_lt_uint
implement
g1uint_lte<uintknd> = g1uint_lte_uint
implement
g1uint_gt<uintknd> = g1uint_gt_uint
implement
g1uint_gte<uintknd> = g1uint_gte_uint
implement
g1uint_eq<uintknd> = g1uint_eq_uint
implement
g1uint_neq<uintknd> = g1uint_neq_uint
implement
g1uint_compare<uintknd> = g1uint_compare_uint
implement
g1uint_max<uintknd> = g1uint_max_uint
implement
g1uint_min<uintknd> = g1uint_min_uint
//
(* ****** ****** *)
implement
{tk}(*tmp*)
g1uint_div2
{i,j}(x, y) = let
//
prval () = lemma_g1uint_param (x)
//
val [q:int] q = g1uint_div (x, y)
//
prval
[q2:int,r:int] pf = divmod_istot{i,j}((*void*))
//
prval EQINT((*void*)) = $UN.castview0{EQINT(q,q2)}(0)
//
in
(pf | q)
end // end of [let] // end of [g1uint_div2]
(* ****** ****** *)
implement
{tk}(*tmp*)
g1uint_mod2 {i,j} (x, y) = let
//
prval () = lemma_g1uint_param (x)
//
val [r:int] r = g1uint_mod (x, y)
prval [q:int,r2:int] pf = divmod_istot{i,j}()
prval EQINT() = $UN.castview0{EQINT(r,r2)}(0)
in
(pf | r)
end // end of [let] // end of [g1uint_mod2]
(* ****** ****** *)
//
implement g0int2string<intknd> = g0int2string_int
//
(* ****** ****** *)
//
implement g0string2int<intknd> = g0string2int_int
implement g0string2uint<uintknd> = g0string2uint_uint
//
(* ****** ****** *)
implement
{tk}(*tmp*)
g1string2int(rep) = g1ofg0_int(g0string2int<tk>(rep))
implement
{tk}(*tmp*)
g1string2uint(rep) = g1ofg0_uint(g0string2uint<tk>(rep))
(* ****** ****** *)
implement
{tk}(*tmp*)
lt_g0int_int
(x, y) = g0int_lt<tk> (x, g0int2int(y))
implement
{tk}(*tmp*)
lte_g0int_int
(x, y) = g0int_lte<tk> (x, g0int2int(y))
//
implement
{tk}(*tmp*)
gt_g0int_int
(x, y) = g0int_gt<tk> (x, g0int2int(y))
implement
{tk}(*tmp*)
gte_g0int_int
(x, y) = g0int_gte<tk> (x, g0int2int(y))
//
implement
{tk}(*tmp*)
eq_g0int_int
(x, y) = g0int_eq<tk> (x, g0int2int(y))
implement
{tk}(*tmp*)
neq_g0int_int
(x, y) = g0int_neq<tk> (x, g0int2int(y))
//
implement{tk}
compare_g0int_int
(x, y) = g0int_compare<tk>(x, g0int2int(y))
//
(* ****** ****** *)
implement
{tk}(*tmp*)
lt_g1int_int
(x, y) = g1int_lt<tk> (x, g1int2int(y))
implement
{tk}(*tmp*)
lte_g1int_int
(x, y) = g1int_lte<tk> (x, g1int2int(y))
//
implement
{tk}(*tmp*)
gt_g1int_int
(x, y) = g1int_gt<tk> (x, g1int2int(y))
implement
{tk}(*tmp*)
gte_g1int_int
(x, y) = g1int_gte<tk> (x, g1int2int(y))
//
implement
{tk}(*tmp*)
eq_g1int_int
(x, y) = g1int_eq<tk> (x, g1int2int(y))
implement
{tk}(*tmp*)
neq_g1int_int
(x, y) = g1int_neq<tk> (x, g1int2int(y))
//
implement
{tk}(*tmp*)
compare_g1int_int
(x, y) = g1int_compare<tk> (x, g1int2int(y))
//
(* ****** ****** *)
implement
{tk}(*tmp*)
lt_g0uint_int
(x, y) = g0uint_lt<tk> (x, g0int2uint(y))
implement
{tk}(*tmp*)
lte_g0uint_int
(x, y) = g0uint_lte<tk> (x, g0int2uint(y))
//
implement
{tk}(*tmp*)
gt_g0uint_int
(x, y) = g0uint_gt<tk> (x, g0int2uint(y))
implement
{tk}(*tmp*)
gte_g0uint_int
(x, y) = g0uint_gte<tk> (x, g0int2uint(y))
//
implement
{tk}(*tmp*)
eq_g0uint_int
(x, y) = g0uint_eq<tk> (x, g0int2uint(y))
implement
{tk}(*tmp*)
neq_g0uint_int
(x, y) = g0uint_neq<tk> (x, g0int2uint(y))
//
(* ****** ****** *)
implement
{tk}(*tmp*)
lt_g1uint_int
(x, y) = g1uint_lt<tk> (x, g1int2uint(y))
implement
{tk}(*tmp*)
lte_g1uint_int
(x, y) = g1uint_lte<tk> (x, g1int2uint(y))
//
implement
{tk}(*tmp*)
gt_g1uint_int
(x, y) = g1uint_gt<tk> (x, g1int2uint(y))
implement
{tk}(*tmp*)
gte_g1uint_int
(x, y) = g1uint_gte<tk> (x, g1int2uint(y))
//
implement
{tk}(*tmp*)
eq_g1uint_int
(x, y) = g1uint_eq<tk> (x, g1int2uint(y))
implement
{tk}(*tmp*)
neq_g1uint_int
(x, y) = g1uint_neq<tk> (x, g1int2uint(y))
//
(* ****** ****** *)
(* end of [integer.dats] *)
| ATS | 5 | bbarker/ATS-Postiats-contrib | projects/LARGE/TUTORIATS/in-browsers/PATSHOME/prelude/DATS/integer.dats | [
"MIT"
] |
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"input": {
"value": .
}
}
} | JSONiq | 1 | StefanIvemo/AzOps | src/data/template/template.parameters.jq | [
"MIT"
] |
#
#
# The Nim Compiler
# (c) Copyright 2012 Andreas Rumpf
#
# See the file "copying.txt", included in this
# distribution, for details about the copyright.
#
# This module implements Nim's simple filters and helpers for filters.
import
llstream, idents, strutils, ast, msgs, options,
renderer, pathutils
proc invalidPragma(conf: ConfigRef; n: PNode) =
localError(conf, n.info,
"'$1' not allowed here" % renderTree(n, {renderNoComments}))
proc getArg(conf: ConfigRef; n: PNode, name: string, pos: int): PNode =
result = nil
if n.kind in {nkEmpty..nkNilLit}: return
for i in 1..<n.len:
if n[i].kind == nkExprEqExpr:
if n[i][0].kind != nkIdent: invalidPragma(conf, n)
if cmpIgnoreStyle(n[i][0].ident.s, name) == 0:
return n[i][1]
elif i == pos:
return n[i]
proc charArg*(conf: ConfigRef; n: PNode, name: string, pos: int, default: char): char =
var x = getArg(conf, n, name, pos)
if x == nil: result = default
elif x.kind == nkCharLit: result = chr(int(x.intVal))
else: invalidPragma(conf, n)
proc strArg*(conf: ConfigRef; n: PNode, name: string, pos: int, default: string): string =
var x = getArg(conf, n, name, pos)
if x == nil: result = default
elif x.kind in {nkStrLit..nkTripleStrLit}: result = x.strVal
else: invalidPragma(conf, n)
proc boolArg*(conf: ConfigRef; n: PNode, name: string, pos: int, default: bool): bool =
var x = getArg(conf, n, name, pos)
if x == nil: result = default
elif x.kind == nkIdent and cmpIgnoreStyle(x.ident.s, "true") == 0: result = true
elif x.kind == nkIdent and cmpIgnoreStyle(x.ident.s, "false") == 0: result = false
else: invalidPragma(conf, n)
proc filterStrip*(conf: ConfigRef; stdin: PLLStream, filename: AbsoluteFile, call: PNode): PLLStream =
var pattern = strArg(conf, call, "startswith", 1, "")
var leading = boolArg(conf, call, "leading", 2, true)
var trailing = boolArg(conf, call, "trailing", 3, true)
result = llStreamOpen("")
var line = newStringOfCap(80)
while llStreamReadLine(stdin, line):
var stripped = strip(line, leading, trailing)
if pattern.len == 0 or startsWith(stripped, pattern):
llStreamWriteln(result, stripped)
else:
llStreamWriteln(result, line)
llStreamClose(stdin)
proc filterReplace*(conf: ConfigRef; stdin: PLLStream, filename: AbsoluteFile, call: PNode): PLLStream =
var sub = strArg(conf, call, "sub", 1, "")
if sub.len == 0: invalidPragma(conf, call)
var by = strArg(conf, call, "by", 2, "")
result = llStreamOpen("")
var line = newStringOfCap(80)
while llStreamReadLine(stdin, line):
llStreamWriteln(result, replace(line, sub, by))
llStreamClose(stdin)
| Nimrod | 4 | JohnAD/Nim | compiler/filters.nim | [
"MIT"
] |
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M17,3H7C6.45,3 6,3.45 6,4v0c0,0.55 0.45,1 1,1h10c0.55,0 1,-0.45 1,-1v0C18,3.45 17.55,3 17,3z"/>
<path
android:fillColor="@android:color/white"
android:pathData="M17,6H7C5.9,6 5,6.9 5,8v11c0,1.1 0.9,2 2,2h10c1.1,0 2,-0.9 2,-2V8C19,6.9 18.1,6 17,6zM14.5,15h-1v1c0,0.83 -0.67,1.5 -1.5,1.5h0c-0.83,0 -1.5,-0.67 -1.5,-1.5v-1h-1C8.67,15 8,14.33 8,13.5v0C8,12.67 8.67,12 9.5,12h1v-1c0,-0.83 0.67,-1.5 1.5,-1.5h0c0.83,0 1.5,0.67 1.5,1.5v1h1c0.83,0 1.5,0.67 1.5,1.5v0C16,14.33 15.33,15 14.5,15z"/>
</vector>
| XML | 3 | bubenheimer/androidx | compose/material/material/icons/generator/raw-icons/rounded/medication.xml | [
"Apache-2.0"
] |
{
"id": "https://monarchinitiative.org/genelist/",
"kg_source": "Test",
"type": "biolink:KnowledgeGraph",
"@context": {
"id": "@id",
"type": "@type",
"z": "@id"
}
} | JSONLD | 2 | logilab/rdflib-jsonld | test/local-suite/toRdf-twoidnodes-in.jsonld | [
"BSD-3-Clause"
] |
#include "e.h"
exp $PROCENTR ; calls through to the (lower case) pascal RT system
exp $PROCEXIT
; these are calls through to the (lower case) pascal run-time system
pro $PROCENTR,0
LFL 0
cal $procentry
asp SZADDR
ret 0
end 0
pro $PROCEXIT,0
LFL 0
cal $procexit
asp SZADDR
ret 0
end 0
| Eiffel | 2 | wyan/ack | lang/a68s/liba68s/trace.e | [
"BSD-3-Clause"
] |
fun useG() {
A.g()
} | Groff | 0 | qussarah/declare | jps-plugin/testData/incremental/classHierarchyAffected/packageFacadeToClass/useG.kt.new.2 | [
"Apache-2.0"
] |
/********************************************************************************
* Copyright (c) {date} Red Hat Inc. and/or its affiliates and others
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* http://www.apache.org/licenses/LICENSE-2.0
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/
import com.intellij.compiler.server {
BuildProcessParametersProvider
}
import com.intellij.openapi.util.io {
FileUtil
}
import java.lang {
Str=String,
Types {
str=nativeString
}
}
import java.util {
ArrayList,
List
}
import org.eclipse.ceylon.ide.intellij.startup {
CeylonIdePlugin
}
shared class BuildClasspathProvider() extends BuildProcessParametersProvider() {
function compute() {
value repo = CeylonIdePlugin.embeddedCeylonRepository;
value modulePaths = ArrayList<Str>();
modulePaths.add(str(CeylonIdePlugin.classesDir.absolutePath));
FileUtil.visitFiles(repo, (file) {
if (file.file && file.name.endsWith(".jar")) {
modulePaths.add(str(file.absolutePath));
}
return true;
});
return modulePaths;
}
shared actual late List<Str> classPath = compute();
}
| Ceylon | 4 | Kopilov/ceylon-ide-intellij | source/org/eclipse/ceylon/ide/intellij/build/BuildClasspathProvider.ceylon | [
"Apache-2.0"
] |
- if can_admin_cluster?(current_user, @cluster)
.settings.expanded.border-0.m-0
%p
= s_('ClusterIntegration|Advanced options on this Kubernetes cluster’s integration')
.settings-content#advanced-settings-section
= render 'clusters/clusters/advanced_settings'
| Haml | 2 | hugorebelo/gitlabhq | app/views/clusters/clusters/_advanced_settings_container.html.haml | [
"MIT"
] |
#!/bin/csh
./mkcfg_new.csh ${1}
ls PYTHON_${1}/*py
if( ${status} == "0" ) then
foreach i (`ls PYTHON_${1}`)
set j=`echo ${i} | awk -F _ '{print $2}'`
echo ${i} ${j} ${1}
#./batchjobs.csh ${1} ${j}
#bsub -q 8nh batchjobs.csh ${1} ${j} `pwd`
bsub -q 1nd batchjobs.csh ${1} ${j} `pwd`
end
#rm -rf PYTHON_${1}
#rm -rf TXT_${1}
rm Reco_*_cfg.py
else
echo "Problem: No jobs are created: check PYTHON_${1} directory: Notify developpers"
endif
| Tcsh | 2 | ckamtsikis/cmssw | DPGAnalysis/HcalTools/scripts/cmt/run_batch1nd.csh | [
"Apache-2.0"
] |
---
id: 589fc831f9fc0f352b528e76
title: Gestire una disconnessione
challengeType: 2
forumTopicId: 301552
dashedName: handle-a-disconnect
---
# --description--
Potresti notare che fino a questo momento hai solo incremementato il numero degli utenti. Gestire la disconnessione di un utente è semplice come gestire la connessione iniziale, solo che si deve mettersi in ascolto per essa su ogni socket invece che su tutto il server.
Per fare questo, aggiungi un altro listener all'interno del listener `'connect'` esistente, in modo che attenda un evento `'disconnect'` sul socket (senza alcun passaggio di dati). È possibile testare questa funzionalità semplicemente scrivendo nella console che un utente si è disconnesso.
```js
socket.on('disconnect', () => {
/*anything you want to do on disconnect*/
});
```
Per assicurarti che i client continuino ad avere il numero aggiornato degli utenti connessi, quando avviene una disconnessione dovresti diminuire currentUsers di 1 e emettere l'evento 'user count' con il conteggio aggiornato!
**Nota:** Proprio come `'disconnect'`, tutti gli altri eventi che un socket può emettere sul server devono essere gestiti all'interno del listener di connessione dove abbiamo definito 'socket'.
Invia la tua pagina quando pensi di averlo fatto correttamente. Se dovessi incontrare degli errori, puoi controllare il progetto completato fino a questo punto [qui](https://gist.github.com/camperbot/ab1007b76069884fb45b215d3c4496fa).
# --hints--
Il server deve gestire l'evento di disconnessione da un socket.
```js
(getUserInput) =>
$.get(getUserInput('url') + '/_api/server.js').then(
(data) => {
assert.match(data, /socket.on.*('|")disconnect('|")/gi, '');
},
(xhr) => {
throw new Error(xhr.statusText);
}
);
```
Il tuo client dovrebbe essere in ascolto per eventi di tipo 'user count'.
```js
(getUserInput) =>
$.get(getUserInput('url') + '/public/client.js').then(
(data) => {
assert.match(
data,
/socket.on.*('|")user count('|")/gi,
'Your client should be connection to server with the connection defined as socket'
);
},
(xhr) => {
throw new Error(xhr.statusText);
}
);
```
# --solutions--
```js
/**
Backend challenges don't need solutions,
because they would need to be tested against a full working project.
Please check our contributing guidelines to learn more.
*/
```
| Markdown | 4 | fcastillo-serempre/freeCodeCamp | curriculum/challenges/italian/06-quality-assurance/advanced-node-and-express/handle-a-disconnect.md | [
"BSD-3-Clause"
] |
IDENTIFICATION DIVISION.
PROGRAM-ID. HELLO-WORLD.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 CMDARGS PIC X(38).
01 NUM PIC S9(30).
PROCEDURE DIVISION.
ACCEPT CMDARGS FROM COMMAND-LINE.
IF CMDARGS IS ALPHABETIC THEN
DISPLAY "Usage: please input a number"
STOP RUN.
COMPUTE NUM = FUNCTION NUMVAL(CMDARGS).
IF NUM IS NUMERIC THEN
IF FUNCTION MOD (NUM, 2) = 0 THEN
DISPLAY "Even"
ELSE
DISPLAY "Odd"
ELSE
DISPLAY "Usage: please input a number"
STOP RUN.
| COBOL | 3 | Sudhanshu-Dubey14/sample-programs | archive/c/cobol/even-odd.cbl | [
"MIT"
] |
# 8876
foo:
<<: &anchor
K1: "One"
K2: "Two"
bar:
<<: *anchor
K3: "Three"
| YAML | 3 | rakacreative/prettier | tests/yaml/inline-extend-syntax/inline-extend-syntax.yml | [
"MIT"
] |
//Maya ASCII 2016 scene
//Name: test.ma
//Last modified: Tue, Mar 21, 2017 03:42:59 PM
//Codeset: UTF-8
requires maya "2016";
currentUnit -l centimeter -a degree -t film;
fileInfo "application" "maya";
fileInfo "product" "Maya batch mode";
fileInfo "version" "2016";
fileInfo "cutIdentifier" "201610262200-1005964";
fileInfo "osv" "Linux 3.10.0-327.4.4.el7.x86_64 #1 SMP Thu Dec 17 15:51:24 EST 2015 x86_64";
createNode transform -s -n "persp";
rename -uid "5154D740-0000-4C43-58D1-AC7300000028";
setAttr ".v" no;
setAttr ".t" -type "double3" 28 21 28 ;
setAttr ".r" -type "double3" -27.938352729602379 44.999999999999972 -5.172681101354183e-14 ;
createNode camera -s -n "perspShape" -p "persp";
rename -uid "5154D740-0000-4C43-58D1-AC7300000029";
setAttr -k off ".v" no;
setAttr ".fl" 34.999999999999993;
setAttr ".coi" 44.82186966202994;
setAttr ".imn" -type "string" "persp";
setAttr ".den" -type "string" "persp_depth";
setAttr ".man" -type "string" "persp_mask";
setAttr ".hc" -type "string" "viewSet -p %camera";
createNode transform -s -n "top";
rename -uid "5154D740-0000-4C43-58D1-AC730000002A";
setAttr ".v" no;
setAttr ".t" -type "double3" 0 100.1 0 ;
setAttr ".r" -type "double3" -89.999999999999986 0 0 ;
createNode camera -s -n "topShape" -p "top";
rename -uid "5154D740-0000-4C43-58D1-AC730000002B";
setAttr -k off ".v" no;
setAttr ".rnd" no;
setAttr ".coi" 100.1;
setAttr ".ow" 30;
setAttr ".imn" -type "string" "top";
setAttr ".den" -type "string" "top_depth";
setAttr ".man" -type "string" "top_mask";
setAttr ".hc" -type "string" "viewSet -t %camera";
setAttr ".o" yes;
createNode transform -s -n "front";
rename -uid "5154D740-0000-4C43-58D1-AC730000002C";
setAttr ".v" no;
setAttr ".t" -type "double3" 0 0 100.1 ;
createNode camera -s -n "frontShape" -p "front";
rename -uid "5154D740-0000-4C43-58D1-AC730000002D";
setAttr -k off ".v" no;
setAttr ".rnd" no;
setAttr ".coi" 100.1;
setAttr ".ow" 30;
setAttr ".imn" -type "string" "front";
setAttr ".den" -type "string" "front_depth";
setAttr ".man" -type "string" "front_mask";
setAttr ".hc" -type "string" "viewSet -f %camera";
setAttr ".o" yes;
createNode transform -s -n "side";
rename -uid "5154D740-0000-4C43-58D1-AC730000002E";
setAttr ".v" no;
setAttr ".t" -type "double3" 100.1 0 0 ;
setAttr ".r" -type "double3" 0 89.999999999999986 0 ;
createNode camera -s -n "sideShape" -p "side";
rename -uid "5154D740-0000-4C43-58D1-AC730000002F";
setAttr -k off ".v" no;
setAttr ".rnd" no;
setAttr ".coi" 100.1;
setAttr ".ow" 30;
setAttr ".imn" -type "string" "side";
setAttr ".den" -type "string" "side_depth";
setAttr ".man" -type "string" "side_mask";
setAttr ".hc" -type "string" "viewSet -s %camera";
setAttr ".o" yes;
createNode transform -n "ZZ100_501__LAY3__cam1";
rename -uid "5154D740-0000-4C43-58D1-AC73000001B7";
createNode camera -n "ZZ100_501__LAY3__camShape2" -p "ZZ100_501__LAY3__cam1";
rename -uid "5154D740-0000-4C43-58D1-AC73000001B8";
setAttr -k off ".v";
setAttr ".rnd" no;
setAttr ".imn" -type "string" "ZZ100_501__LAY3__cam1";
setAttr ".den" -type "string" "ZZ100_501__LAY3__cam1_depth";
setAttr ".man" -type "string" "ZZ100_501__LAY3__cam1_mask";
createNode transform -n "ZZ100_502A__LAY3__cam1";
rename -uid "5154D740-0000-4C43-58D1-AC73000001BB";
createNode camera -n "ZZ100_502A__LAY3__camShape2" -p "ZZ100_502A__LAY3__cam1";
rename -uid "5154D740-0000-4C43-58D1-AC73000001BC";
setAttr -k off ".v";
setAttr ".rnd" no;
setAttr ".imn" -type "string" "ZZ100_502A__LAY3__cam1";
setAttr ".den" -type "string" "ZZ100_502A__LAY3__cam1_depth";
setAttr ".man" -type "string" "ZZ100_502A__LAY3__cam1_mask";
createNode transform -n "ZZ100_503A__LAY1__cam1";
rename -uid "5154D740-0000-4C43-58D1-AC73000001BE";
createNode camera -n "ZZ100_503A__LAY1__camShape2" -p "ZZ100_503A__LAY1__cam1";
rename -uid "5154D740-0000-4C43-58D1-AC73000001BF";
setAttr -k off ".v";
setAttr ".rnd" no;
setAttr ".imn" -type "string" "ZZ100_503A__LAY1__cam1";
setAttr ".den" -type "string" "ZZ100_503A__LAY1__cam1_depth";
setAttr ".man" -type "string" "ZZ100_503A__LAY1__cam1_mask";
createNode transform -n "ZZ100_504C__LAY1__cam1";
rename -uid "5154D740-0000-4C43-58D1-AC73000001C1";
createNode camera -n "ZZ100_504C__LAY1__camShape2" -p "ZZ100_504C__LAY1__cam1";
rename -uid "5154D740-0000-4C43-58D1-AC73000001C2";
setAttr -k off ".v";
setAttr ".rnd" no;
setAttr ".imn" -type "string" "ZZ100_504C__LAY1__cam1";
setAttr ".den" -type "string" "ZZ100_504C__LAY1__cam1_depth";
setAttr ".man" -type "string" "ZZ100_504C__LAY1__cam1_mask";
createNode transform -n "ZZ100_504B__LAY1__cam1";
rename -uid "5154D740-0000-4C43-58D1-AC73000001C4";
createNode camera -n "ZZ100_504B__LAY1__camShape2" -p "ZZ100_504B__LAY1__cam1";
rename -uid "5154D740-0000-4C43-58D1-AC73000001C5";
setAttr -k off ".v";
setAttr ".rnd" no;
setAttr ".imn" -type "string" "ZZ100_504B__LAY1__cam1";
setAttr ".den" -type "string" "ZZ100_504B__LAY1__cam1_depth";
setAttr ".man" -type "string" "ZZ100_504B__LAY1__cam1_mask";
createNode transform -n "ZZ100_507C__LAY2__cam1";
rename -uid "5154D740-0000-4C43-58D1-AC73000001C7";
createNode camera -n "ZZ100_507C__LAY2__camShape2" -p "ZZ100_507C__LAY2__cam1";
rename -uid "5154D740-0000-4C43-58D1-AC73000001C8";
setAttr -k off ".v";
setAttr ".rnd" no;
setAttr ".imn" -type "string" "ZZ100_507C__LAY2__cam1";
setAttr ".den" -type "string" "ZZ100_507C__LAY2__cam1_depth";
setAttr ".man" -type "string" "ZZ100_507C__LAY2__cam1_mask";
createNode transform -n "ZZ100_508__LAY2__cam1";
rename -uid "5154D740-0000-4C43-58D1-AC73000001CA";
createNode camera -n "ZZ100_508__LAY2__camShape2" -p "ZZ100_508__LAY2__cam1";
rename -uid "5154D740-0000-4C43-58D1-AC73000001CB";
setAttr -k off ".v";
setAttr ".rnd" no;
setAttr ".imn" -type "string" "ZZ100_508__LAY2__cam1";
setAttr ".den" -type "string" "ZZ100_508__LAY2__cam1_depth";
setAttr ".man" -type "string" "ZZ100_508__LAY2__cam1_mask";
createNode transform -n "ZZ100_510__LAY1__cam1";
rename -uid "5154D740-0000-4C43-58D1-AC73000001CD";
createNode camera -n "ZZ100_510__LAY1__camShape2" -p "ZZ100_510__LAY1__cam1";
rename -uid "5154D740-0000-4C43-58D1-AC73000001CE";
setAttr -k off ".v";
setAttr ".rnd" no;
setAttr ".imn" -type "string" "ZZ100_510__LAY1__cam1";
setAttr ".den" -type "string" "ZZ100_510__LAY1__cam1_depth";
setAttr ".man" -type "string" "ZZ100_510__LAY1__cam1_mask";
createNode transform -n "ZZ100_510B__LAY1__cam1";
rename -uid "5154D740-0000-4C43-58D1-AC73000001D0";
createNode camera -n "ZZ100_510B__LAY1__camShape2" -p "ZZ100_510B__LAY1__cam1";
rename -uid "5154D740-0000-4C43-58D1-AC73000001D1";
setAttr -k off ".v";
setAttr ".rnd" no;
setAttr ".imn" -type "string" "ZZ100_510B__LAY1__cam1";
setAttr ".den" -type "string" "ZZ100_510B__LAY1__cam1_depth";
setAttr ".man" -type "string" "ZZ100_510B__LAY1__cam1_mask";
createNode lightLinker -s -n "lightLinker1";
rename -uid "5154D740-0000-4C43-58D1-AC7300000033";
setAttr -s 2 ".lnk";
setAttr -s 2 ".slnk";
createNode displayLayerManager -n "layerManager";
rename -uid "5154D740-0000-4C43-58D1-AC73000001B3";
createNode displayLayer -n "defaultLayer";
rename -uid "5154D740-0000-4C43-58D1-AC73000001B4";
createNode renderLayerManager -n "renderLayerManager";
rename -uid "5154D740-0000-4C43-58D1-AC73000001B5";
createNode renderLayer -n "defaultRenderLayer";
rename -uid "5154D740-0000-4C43-58D1-AC73000001B6";
setAttr ".g" yes;
createNode sequencer -n "sequencer1";
rename -uid "5154D740-0000-4C43-58D1-AC73000001BA";
setAttr ".mnf" 0;
setAttr ".mxf" 1048;
setAttr -s 9 ".shts";
createNode shot -n "ZZ100_501__LAY3_";
rename -uid "5154D740-0000-4C43-58D1-AC73000001B9";
setAttr ".sf" 86501;
setAttr ".ef" 86531;
setAttr ".tk" 0;
setAttr ".sn" -type "string" "ZZ100_501 (LAY3)";
setAttr ".wres" 1024;
createNode shot -n "ZZ100_502A__LAY3_";
rename -uid "5154D740-0000-4C43-58D1-AC73000001BD";
setAttr ".sf" 86557;
setAttr ".ef" 86606;
setAttr ".ssf" 31;
setAttr ".tk" 0;
setAttr ".sn" -type "string" "ZZ100_502A (LAY3)";
setAttr ".wres" 1024;
createNode shot -n "ZZ100_503A__LAY1_";
rename -uid "5154D740-0000-4C43-58D1-AC73000001C0";
setAttr ".sf" 86601;
setAttr ".ef" 86628;
setAttr ".ssf" 81;
setAttr ".tk" 0;
setAttr ".sn" -type "string" "ZZ100_503A (LAY1)";
setAttr ".wres" 1024;
createNode shot -n "ZZ100_504C__LAY1_";
rename -uid "5154D740-0000-4C43-58D1-AC73000001C3";
setAttr ".sf" 86641;
setAttr ".ef" 86755;
setAttr ".ssf" 109;
setAttr ".tk" 0;
setAttr ".sn" -type "string" "ZZ100_504C (LAY1)";
setAttr ".wres" 1024;
createNode shot -n "ZZ100_504B__LAY1_";
rename -uid "5154D740-0000-4C43-58D1-AC73000001C6";
setAttr ".sf" 86753;
setAttr ".ef" 86853;
setAttr ".ssf" 224;
setAttr ".tk" 0;
setAttr ".sn" -type "string" "ZZ100_504B (LAY1)";
setAttr ".wres" 1024;
createNode shot -n "ZZ100_507C__LAY2_";
rename -uid "5154D740-0000-4C43-58D1-AC73000001C9";
setAttr ".sf" 86501;
setAttr ".ef" 86661;
setAttr ".ssf" 325;
setAttr ".tk" 0;
setAttr ".sn" -type "string" "ZZ100_507C (LAY2)";
setAttr ".wres" 1024;
createNode shot -n "ZZ100_508__LAY2_";
rename -uid "5154D740-0000-4C43-58D1-AC73000001CC";
setAttr ".sf" 86628;
setAttr ".ef" 86797;
setAttr ".ssf" 486;
setAttr ".tk" 0;
setAttr ".sn" -type "string" "ZZ100_508 (LAY2)";
setAttr ".wres" 1024;
createNode shot -n "ZZ100_510__LAY1_";
rename -uid "5154D740-0000-4C43-58D1-AC73000001CF";
setAttr ".sf" 86722;
setAttr ".ef" 86857;
setAttr ".ssf" 656;
setAttr ".tk" 0;
setAttr ".sn" -type "string" "ZZ100_510 (LAY1)";
setAttr ".wres" 1024;
createNode shot -n "ZZ100_510B__LAY1_";
rename -uid "5154D740-0000-4C43-58D1-AC73000001D2";
setAttr ".sf" 86501;
setAttr ".ef" 86757;
setAttr ".ssf" 792;
setAttr ".tk" 0;
setAttr ".sn" -type "string" "ZZ100_510B (LAY1)";
setAttr ".wres" 1024;
createNode script -n "uiConfigurationScriptNode";
rename -uid "5154D740-0000-4C43-58D1-AC73000001D3";
setAttr ".b" -type "string" "// Maya Mel UI Configuration File.\n// No UI generated in batch mode.\n";
setAttr ".st" 3;
createNode script -n "sceneConfigurationScriptNode";
rename -uid "5154D740-0000-4C43-58D1-AC73000001D4";
setAttr ".b" -type "string" "playbackOptions -min 1 -max 24 -ast 1 -aet 48 ";
setAttr ".st" 6;
select -ne :time1;
setAttr ".o" 86502;
setAttr ".unw" 86502;
select -ne :sequenceManager1;
select -ne :hardwareRenderingGlobals;
setAttr ".fprt" yes;
select -ne :renderPartition;
setAttr -s 2 ".st";
select -ne :renderGlobalsList1;
select -ne :defaultShaderList1;
setAttr -s 4 ".s";
select -ne :postProcessList1;
setAttr -s 2 ".p";
select -ne :defaultRenderingList1;
select -ne :initialShadingGroup;
setAttr ".ro" yes;
select -ne :initialParticleSE;
setAttr ".ro" yes;
select -ne :hardwareRenderGlobals;
setAttr ".ctrs" 256;
setAttr ".btrs" 512;
relationship "link" ":lightLinker1" ":initialShadingGroup.message" ":defaultLightSet.message";
relationship "link" ":lightLinker1" ":initialParticleSE.message" ":defaultLightSet.message";
relationship "shadowLink" ":lightLinker1" ":initialShadingGroup.message" ":defaultLightSet.message";
relationship "shadowLink" ":lightLinker1" ":initialParticleSE.message" ":defaultLightSet.message";
connectAttr "layerManager.dli[0]" "defaultLayer.id";
connectAttr "renderLayerManager.rlmi[0]" "defaultRenderLayer.rlid";
connectAttr "ZZ100_501__LAY3_.msg" "sequencer1.shts" -na;
connectAttr "ZZ100_502A__LAY3_.msg" "sequencer1.shts" -na;
connectAttr "ZZ100_503A__LAY1_.msg" "sequencer1.shts" -na;
connectAttr "ZZ100_504C__LAY1_.msg" "sequencer1.shts" -na;
connectAttr "ZZ100_504B__LAY1_.msg" "sequencer1.shts" -na;
connectAttr "ZZ100_507C__LAY2_.msg" "sequencer1.shts" -na;
connectAttr "ZZ100_508__LAY2_.msg" "sequencer1.shts" -na;
connectAttr "ZZ100_510__LAY1_.msg" "sequencer1.shts" -na;
connectAttr "ZZ100_510B__LAY1_.msg" "sequencer1.shts" -na;
connectAttr "ZZ100_501__LAY3__camShape2.msg" "ZZ100_501__LAY3_.ccm";
connectAttr "ZZ100_502A__LAY3__camShape2.msg" "ZZ100_502A__LAY3_.ccm";
connectAttr "ZZ100_503A__LAY1__camShape2.msg" "ZZ100_503A__LAY1_.ccm";
connectAttr "ZZ100_504C__LAY1__camShape2.msg" "ZZ100_504C__LAY1_.ccm";
connectAttr "ZZ100_504B__LAY1__camShape2.msg" "ZZ100_504B__LAY1_.ccm";
connectAttr "ZZ100_507C__LAY2__camShape2.msg" "ZZ100_507C__LAY2_.ccm";
connectAttr "ZZ100_508__LAY2__camShape2.msg" "ZZ100_508__LAY2_.ccm";
connectAttr "ZZ100_510__LAY1__camShape2.msg" "ZZ100_510__LAY1_.ccm";
connectAttr "ZZ100_510B__LAY1__camShape2.msg" "ZZ100_510B__LAY1_.ccm";
connectAttr "sequencer1.msg" ":sequenceManager1.seqts[0]";
connectAttr "defaultRenderLayer.msg" ":defaultRenderingList1.r" -na;
// End of test.ma
| Mathematica | 3 | alatdneg/OpenTimelineIO | opentimelineio_contrib/adapters/tests/sample_data/screening_example.ma | [
"Apache-2.0"
] |
##### Part 0: Formatted and processed data in BigQuery
## Creating list of number of users in each subreddit:
## Thanks to Reddit users /u/Stuck_In_the_Matrix for pulling the data originally and /u/fhoffa for hosting the data on BigQery
SELECT subreddit, authors, DENSE_RANK() OVER (ORDER BY authors DESC) AS rank_authors
FROM (SELECT subreddit, SUM(1) as authors
FROM (SELECT subreddit, author, COUNT(1) as cnt
FROM [fh-bigquery:reddit_comments.all_starting_201501]
WHERE author NOT IN (SELECT author FROM [fh-bigquery:reddit_comments.bots_201505])
GROUP BY subreddit, author HAVING cnt > 0)
GROUP BY subreddit) t
ORDER BY authors DESC;
# Creating list of number of users who authored at least 10 posts in pairs of subreddits:
SELECT t1.subreddit, t2.subreddit, SUM(1) as NumOverlaps
FROM (SELECT subreddit, author, COUNT(1) as cnt
FROM [fh-bigquery:reddit_comments.all_starting_201501]
WHERE author NOT IN (SELECT author FROM [fh-bigquery:reddit_comments.bots_201505])
AND subreddit IN (SELECT subreddit FROM [subreddit-vectors:subredditoverlaps.subr_rank_all_starting_201501]
WHERE rank_authors>200 AND rank_authors<2201)
GROUP BY subreddit, author HAVING cnt > 10) t1
JOIN (SELECT subreddit, author, COUNT(1) as cnt
FROM [fh-bigquery:reddit_comments.all_starting_201501]
WHERE author NOT IN (SELECT author FROM [fh-bigquery:reddit_comments.bots_201505])
GROUP BY subreddit, author HAVING cnt > 10) t2
ON t1.author=t2.author
WHERE t1.subreddit!=t2.subreddit
GROUP BY t1.subreddit, t2.subreddit | SQL | 4 | h4ckfu/data | subreddit-algebra/processData.sql | [
"CC-BY-4.0"
] |
use("ispec")
describe(DefaultBehavior,
describe("FlowControl",
describe("for",
it("should handle a simple iteration",
for(x <- [1,2,3], x) should == [1,2,3]
for(x <- 1..10, x) should == [1,2,3,4,5,6,7,8,9,10]
for(x <- set(:a, :b, :c), x) sort should == [:a, :b, :c]
)
it("should be possible to do something advanced in the output part",
for(x <- 1..10, x*2) should == [2,4,6,8,10,12,14,16,18,20]
mex = method(f, f+f+f)
for(x <- 1...5, mex(x)) should == [3, 6, 9, 12]
)
it("should be possible to combine two or more iterations",
for(x <- [1,2,3], y <- [15,16,17], [x,y]) should == [[1,15],[1,16],[1,17],[2,15],[2,16],[2,17],[3,15],[3,16],[3,17]]
)
it("should be possible to filter output",
for(x <- 1..100, x<5, x) should == [1,2,3,4]
for(x <- 1..10, (x%2) == 0, x) should == [2,4,6,8,10]
)
it("should be possible to do midlevel assignment",
for(x <- 1..20, y = x*2, y<10, [x,y]) should == [[1,2],[2,4],[3,6],[4,8]]
)
it("should be possible to combine these parts into a larger comprehension",
for(x <- 0..10, x*x > 3, 2*x) should == [4, 6, 8, 10, 12, 14, 16, 18, 20]
for(x <- 1..6, y <- x..6, z <- y..6, (x**2 + y**2) == z**2, [x,y,z]) should == [[3,4,5]]
)
)
describe("for:set",
it("should handle a simple iteration",
for:set(x <- [1,2,3], x) should == set(1,2,3)
for:set(x <- [1,2,3,1,2,3], x) should == set(1,2,3)
for:set(x <- 1..10, x) should == set(1,2,3,4,5,6,7,8,9,10)
for:set(x <- set(:a, :b, :c), x) should == set(:a, :b, :c)
)
it("should be possible to do something advanced in the output part",
for:set(x <- 1..10, x*2) should == set(2,4,6,8,10,12,14,16,18,20)
mex = method(f, f+f+f)
for:set(x <- 1...5, mex(x)) should == set(3, 6, 9, 12)
)
it("should be possible to combine two or more iterations",
for:set(x <- [1,2,3], y <- [15,16,17], [x,y]) should == set([1,15],[1,16],[1,17],[2,15],[2,16],[2,17],[3,15],[3,16],[3,17])
)
it("should be possible to filter output",
for:set(x <- 1..100, x<5, x) should == set(1,2,3,4)
for:set(x <- 1..10, (x%2) == 0, x) should == set(2,4,6,8,10)
)
it("should be possible to do midlevel assignment",
for:set(x <- 1..20, y = x*2, y<10, [x,y]) should == set([1,2],[2,4],[3,6],[4,8])
)
it("should be possible to combine these parts into a larger comprehension",
for:set(x <- 0..10, x*x > 3, 2*x) should == set(4, 6, 8, 10, 12, 14, 16, 18, 20)
for:set(x <- 1..6, y <- x..6, z <- y..6, (x**2 + y**2) == z**2, [x,y,z]) should == set([3,4,5])
)
)
describe("for:dict",
it("should handle a simple iteration",
for:dict(x <- [1,2,3], x => x*x) should == dict(1=>1,2=>4,3=>9)
for:dict(x <- [1,2,3,1,2,3], x => x*x) should == dict(1=>1,2=>4,3=>9)
for:dict(x <- 1..10, x) should == dict(1=>nil,2=>nil,3=>nil,4=>nil,5=>nil,6=>nil,7=>nil,8=>nil,9=>nil,10=>nil)
for:dict(x <- set(:a, :b, :c), x => x asText) should == dict(a: "a", b: "b", c: "c")
)
it("should handle more than one generator",
for:dict(x <- [1,2,3], y <- [10,11,12], x*y => [x,y]) should == {10=>[1,10], 11=>[1,11], 12=>[1,12], 20=>[2,10], 22=>[2,11], 24=>[2,12], 30=>[3,10], 33=>[3,11], 36=>[3,12]}
)
)
)
)
| Ioke | 5 | olabini/ioke | test/comprehension_spec.ik | [
"ICU",
"MIT"
] |
precision mediump float;
uniform float uAlpha;
varying float vDepthDistance;
const highp float kMaxDepthInMeters = 8.0; // In meters.
const float kInvalidDepthThreshold = 0.01;
vec3 TurboColormap(in float x);
// Returns a color corresponding to the depth passed in. Colors range from red
// to green to blue, where red is closest and blue is farthest.
//
// Uses Turbo color mapping :
// https://ai.googleblog.com/2019/08/turbo-improved-rainbow-colormap-for.html
vec3 DepthGetColorVisualization(in float x) {
return step(kInvalidDepthThreshold, x) * TurboColormap(x);
}
void main(void) {
highp float normalized_depth = clamp(vDepthDistance / kMaxDepthInMeters, 0.0, 1.0);
gl_FragColor = vec4(DepthGetColorVisualization(normalized_depth), uAlpha);
}
// Insert turbo.glsl here.
| GLSL | 4 | zealoussnow/chromium | third_party/webxr_test_pages/webxr-samples/shaders/depth-api-cpu.frag | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
# Copyright 2021 The Google Research 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 in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#!/bin/bash
# Obtain estimates of various information-theoretic measures based on entropy
# of n-grams. The first argument specifies the original training data in the
# format required for training the neural measures. This is a tab-separated text
# file. The second argument is the language name. The temporary files are
# created in the `/tmp` directory.
#
# Bazel build system should be installed locally for this tool to work.
#
# Examples:
# --------
# ./compute_relative_entropy.sh ${DATA_DIR}/korean-jamo.tsv Korean
# ./compute_relative_entropy.sh ${DATA_DIR}/japanese.tsv Japanese
set -euo pipefail
# N-gram order.
ORDER=2
# Language name.
LANGUAGE="$2"
# Check for Bazel installation.
which bazel > /dev/null 2>&1
if [ $? -ne 0 ] ; then
echo "Please install Bazel to run this tool!"
exit 1
fi
# Split the corpus into training/test written/pronounced/joint.
bazel build -c opt :split_corpus_main
bazel-bin/split_corpus_main experimental/nlp/sweet/logo/entropy/split_corpus.py --corpus="$1"
# Extract symbol table.
bazel build -c opt :ngramsymbols
NGRAM_SYMBOLS_TOOL=bazel-bin/external/org_opengrm_ngram/ngramsymbols
cat /tmp/wtrain.txt /tmp/wtest.txt > /tmp/xxx
${NGRAM_SYMBOLS_TOOL} \
/tmp/xxx /tmp/written.syms
cat /tmp/ptrain.txt /tmp/ptest.txt > /tmp/xxx
${NGRAM_SYMBOLS_TOOL} \
/tmp/xxx /tmp/phoneme.syms
cat /tmp/jtrain.txt /tmp/jtest.txt > /tmp/xxx
${NGRAM_SYMBOLS_TOOL} \
/tmp/xxx /tmp/joint.syms
# Compile FST archives (FARs).
bazel build -c opt :farcompilestrings
FAR_COMPILE_STRINGS_TOOL=bazel-bin/external/org_openfst/farcompilestrings
${FAR_COMPILE_STRINGS_TOOL} \
--fst_type=compact \
--symbols=/tmp/written.syms \
--keep_symbols \
/tmp/wtrain.txt /tmp/wtrain.far
${FAR_COMPILE_STRINGS_TOOL} \
--fst_type=compact \
--symbols=/tmp/written.syms \
--keep_symbols \
/tmp/wtest.txt /tmp/wtest.far
${FAR_COMPILE_STRINGS_TOOL} \
--fst_type=compact \
--symbols=/tmp/phoneme.syms \
--keep_symbols \
/tmp/ptrain.txt /tmp/ptrain.far
${FAR_COMPILE_STRINGS_TOOL} \
--fst_type=compact \
--symbols=/tmp/phoneme.syms \
--keep_symbols \
/tmp/ptest.txt /tmp/ptest.far
${FAR_COMPILE_STRINGS_TOOL} \
--fst_type=compact \
--symbols=/tmp/joint.syms \
--keep_symbols \
/tmp/jtrain.txt /tmp/jtrain.far
# Accumulate n-gram counts.
bazel build -c opt :ngramcount
NGRAM_COUNT_TOOL=bazel-bin/external/org_opengrm_ngram/ngramcount
${NGRAM_COUNT_TOOL} \
--order="${ORDER}" \
/tmp/wtrain.far /tmp/wtrain.cnts
${NGRAM_COUNT_TOOL} \
--order="${ORDER}" \
/tmp/ptrain.far /tmp/ptrain.cnts
${NGRAM_COUNT_TOOL} \
--order="${ORDER}" \
/tmp/jtrain.far /tmp/jtrain.cnts
# Build n-gram models.
bazel build -c opt :ngrammake
NGRAM_MAKE_TOOL=bazel-bin/external/org_opengrm_ngram/ngrammake
${NGRAM_MAKE_TOOL} \
/tmp/wtrain.cnts /tmp/wtrain.mod
${NGRAM_MAKE_TOOL} \
/tmp/ptrain.cnts /tmp/ptrain.mod
${NGRAM_MAKE_TOOL} \
/tmp/jtrain.cnts /tmp/jtrain.mod
# Compute perplexities.
bazel build -c opt :ngramperplexity
NGRAM_PERPLEXITY_TOOL=bazel-bin/external/org_opengrm_ngram/ngramperplexity
${NGRAM_PERPLEXITY_TOOL} \
/tmp/wtrain.mod /tmp/wtest.far /tmp/wtest.perp
${NGRAM_PERPLEXITY_TOOL} \
/tmp/ptrain.mod /tmp/ptest.far /tmp/ptest.perp
# Compute entropy difference/ratio.
bazel build -c opt :entropy_difference_main
bazel-bin/entropy_difference_main \
--corpus=$1 \
--wperp=/tmp/wtest.perp \
--pperp=/tmp/ptest.perp
# Print models.
bazel build -c opt :ngramprint
NGRAM_PRINT_TOOL=bazel-bin/external/org_opengrm_ngram/ngramprint
${NGRAM_PRINT_TOOL} \
/tmp/ptrain.mod /tmp/ptrain.mod.txt
${NGRAM_PRINT_TOOL} \
/tmp/wtrain.mod /tmp/wtrain.mod.txt
${NGRAM_PRINT_TOOL} \
/tmp/jtrain.mod /tmp/jtrain.mod.txt
# Compute (cross-)entropies/KL divergences and mutual information (MI) measures.
# bazel build -c opt :ngramcrossentropy
bazel build -c opt :ngramcrossentropy
bazel-bin/ngramcrossentropy \
--info_header="["${LANGUAGE}"]:" \
--ngram_joint_fst=/tmp/jtrain.mod \
--ngram_source_fst=/tmp/ptrain.mod \
--ngram_destination_fst=/tmp/wtrain.mod \
--source_samples_far=/tmp/ptest.far \
--destination_samples_far=/tmp/wtest.far
| Shell | 5 | DionysisChristopoulos/google-research | homophonous_logography/entropic/compute_relative_entropy.sh | [
"Apache-2.0"
] |
{-
Epigram Syntax
-}
{-
This is a guided tour into Epigram syntax. Syntax is a strong
word, I would personally call that a random set of hieroglyphic
symbols. Hence this file.
Champollion.
-}
-- * The world of Set
make set := Set : Set;
-- ** Pi-types
make pi1 := (x : Set) -> Set : Set;
make pi2 := (x : Set)(y : Set) -> Set : Set;
make pi3 := (x : Set) -> Set -> Set : Set;
make pi4 := (x : Set) -> Set -> (y : Set) -> Set : Set;
-- No: make pi5 := (x y : Set) -> Set : Set;
make pi6 := (x : Set)(_ : Set) -> Set : Set;
-- For perverts:
make pi7 := Pi Set (\ x -> Set) : Set;
-- ** Lambda
make lambda1 := \ x -> x : Set -> Set;
-- No: make lambda2 := \x -> x : Set -> Set;
make lambda3 := \ x -> \ y -> x : Set -> Set -> Set;
make lambda4 := \ x y -> x : Set -> Set -> Set;
make lambda5 := \ x _ -> x : Set -> Set -> Set;
-- ** Sigma-types
-- Unit:
make sigma1 := Sig () : Set;
make sigma2 := Sig ( Set ; Set ) : Set;
make sigma3 := Sig ( Set ; Set ;) : Set;
make sigma4 := Sig ( X : Set ; X ) : Set;
make sigma5 := Sig ( X : Set ; b : X ; ) : Set;
-- Packing proofs (specifications)
make sigma6 := Sig ( Set :- TT ) : Set;
make sigma7 := Sig ( X : Set :- TT) : Set;
make sigma8 := Sig ( X : Set :- TT :- FF ) : Set;
-- For perverts again:
make sigma9 := Sig Set (\ _ -> Set) : Set;
-- *** Tuple
-- Void:
make tuple1 := [] : Sig ();
make tuple2 := [Set , Set] : Sig (Set ; Set );
make tuple3 := [Set , [Set , []]] : Sig (Set ; Set ; Sig ());
make tuple4 := [Set , [Set , []]] : Sig (Set ; Set ;);
-- Lisp convention: [a b c] == [a , [b , [c , []]]]
make tuple5 := [Set Set] : Sig (Set ; Set ;);
-- With proofs:
make sigma10 := Sig ( Set :- TT ) : Set;
make tuple6 := [ Set , [] ] : sigma10;
-- No: make tuple7 := [ Set [] ] : sigma10;
-- *** Projections
make proj1 := \ x -> x ! : Sig ( (Enum ['a 'b]) ; (Enum ['c 'd]) ) -> (Enum ['a 'b]);
make proj2 := \ x -> x - : Sig ( (Enum ['a 'b]) ; (Enum ['c 'd]) ) -> (Enum ['c 'd]);
-- No: make proj3 := \ x -> x - - : Sig ( Set ; Set ) -> Sig ();
make proj4 := \ x -> x - - : Sig ( Set ; Set ; Set ) -> Set ;
-- No? make proj5 := \ x -> x -- : Sig ( Set ; Set ; Set ) -> Set ;
make proj6 := \ x -> x - - : Sig ( Set ; Set ; ) -> Sig ();
-- *** Function space on Sigmas
-- When the domain is a |Sig A|, the elaborator accept the |con| of a
-- function which type is a |Pi A|:
make funs1 := con (\ x -> x) : Sig () -> Set -> Set;
make funs2 := con (\ x y z -> x) : Sig ( Set ; Set ) -> Set -> Set ;
-- ** UId
make uid1 := UId : Set;
make uid2 := 'a : UId;
make uid3 := 'aristotle : UId;
-- ** Enumerations
make enum1 := ['a 'b 'c ] : EnumU;
make enum2 := \ e -> Enum e : EnumU -> Set;
make enumT1 := Enum ['a 'b 'c] : Set;
make enumT2 := Enum ['a 'b 'c] : Set;
make enumT3 := Enum [] : Set;
-- *** Indexing by position
-- Index 'a:
make enum3 := 0 : Enum ['a 'b 'c];
-- Index 'b:
make enum4 := 1 : Enum ['a 'b 'c];
-- Index 'c
make enum5 := 2 : Enum ['a 'b 'c];
-- No: make enum6 := 3 : Enum ['a 'b 'c];
-- *** Indexing by name
make enum7 := 'a : Enum ['a 'b 'c];
make enum8 := 'b : Enum ['a 'b 'c];
make enum9 := 'c : Enum ['a 'b 'c];
-- *** Relative indexing
-- Index 'b
make enum10 := 1 + 1 : Enum ['a 'b 'c];
make enum11 := \ x -> 1 + x : Enum ['b 'c] -> Enum ['a 'b 'c];
-- *** Finite function space
-- We write a tuple covering each cases, instead of a lambda and
-- appeal to |switch|
make enum12 := [(Enum ['e 'f 'g]) (Enum ['i 'k 'l 'm])] : Enum ['a 'b] -> Set;
make enum13 := ['f 'm] : (x : Enum ['a 'b]) -> enum12 x;
-- ** Type annotation
infer (: Set) Set;
infer (: Enum ['a 'b 'c]) 'a;
-- ** Joker
make joker1 := _ : Sig ();
-- ** Question mark
make qmark1 := ? : Sig ();
next;
give _ ;
root;
make qmark2 := ?name : Sig ();
next;
give _ ;
root;
-- ** Con / Out
{-
Con is very general container, used all over the place to pack stuff
up. However, I cannot think of a non-contrived example of its
use. If someone have an idea, please write something.
While con packs things up, Out -- written '%' -- unpacks
containers. Again, I cannot think of a simple example right away.
-}
-- make con1 := con ? : ?
-- make out1 := ? % : Set
-- * The world of Prop
make prop1 := Prop : Set;
-- ** Trivial, Absurd, And
make tf1 := TT : Prop;
make tf2 := FF : Prop;
make tf3 := TT && TT : Prop;
make tf4 := TT && FF : Prop;
-- ** Proofs in Set
make pf1 := :- TT : Set;
make pf2 := :- FF : Set;
make pf3 := [] : :- TT;
make pf4 := _ : :- TT;
-- The *only* eliminator over Prop
make pf5 := naughtE : :- FF -> (A : Set) -> A;
-- ** All
make all1 := All Set (\ _ -> TT) : Prop;
make all2 := All Set (\ X -> All X (\ _ -> TT)) : Prop;
make all3 := (X : Set) => TT : Prop;
make all4 := (X : Set)(y : X) => TT : Prop;
-- No: make all5 := (x : Set) => Set => TT : Prop;
-- No: make all6 := (x : Set) => Set => (y : Set) => TT : Prop;
-- No: make all7 := (x y : Set) => TT : Prop;
make all8 := (x : Set)(_ : Set) => TT : Prop;
-- ** Implication
make imp1 := TT => FF : Prop;
make imp2 := TT => TT => FF : Prop;
make imp3 := (X : Set) => TT => FF : Prop;
-- ** Inh, Wit
-- I don't know how these things ought to be used.
-- * Equality
-- ** Blue equality
make eq1 := (A : Set)(x : A) => x == x : Prop;
make eq2 := (A : Set)(x : A)(y : A) => x == y : Prop;
make eq3 := (A : Set)(B : Set)(x : A)(y : B) => (: A) x == (: B) y : Prop;
make eq4 := (A : Set)(B : Set)(x : A)(y : B) => x == y : Prop;
-- ** Green equality
make geq1 := (S : Set)(s : S)(T : Set)(t : T) => eqGreen S s T t : Prop;
-- Blue to green
make geq2 := \ _ _ _ _ eq -> eq % : (S : Set)(s : S)(T : Set)(t : T) -> :- (s == t) -> :- (eqGreen S s T t);
-- ** Refl
make refl1 := refl : :- ((A : Set)(x : A) => x == x);
-- ** Operators
make coe1 := coe : (S : Set)(T : Set)
(q : :- S == T) -> S -> T;
make coh1 := coh : (X : Set)(Y : Set)
(q : :- X == Y)
(s : X) -> :- s == (coe X Y q s);
-- ** Substitution (example)
-- Often called |ship|, for bad reasons.
make subst := (\ X x y q P p ->
coe (P x) (P y) (con (((: :- P == P) _)
% x y _)) p)
: (X : Set)(x : X)(y : X)(q : :- x == y)(P : X -> Set) -> P x -> P y ;
-- * Data-type definitions
data Nat := ('zero : Nat)
; ('suc : Nat -> Nat);
-- No: data Nat := ('zero : Nat) ;
-- ('suc : Nat -> Nat);
-- because an end-of-line is a ";"
data List (X : Set) := ('nil : List X)
; ('cons : X -> List X -> List X);
data Tree (X : Set) := ('leaf : Tree X)
; ('node : X -> Tree X -> Tree X -> Tree X);
-- ** Inhabitants of data-types
make ze1 := 'zero : Nat;
make ze2 := con ['zero] : Nat;
make ze3 := con ['zero , []] : Nat;
make su1 := \ n -> 'suc n : Nat -> Nat;
make su2 := \ n -> con [ 'suc n ] : Nat -> Nat;
-- * Programming problems
let pbm1 (A : Set) : Set;
undo;
let pbm2 (A : Set)(b : A) : Set;
undo;
-- Implicit argument:
let pbm3 {A : Set}(b : A) : Set;
undo;
{-
Local Variables:
mode: outline-minor
outline-regexp: "-- [*\f]+"
outline-level: outline-level
End:
-}
| PigLatin | 5 | mietek/epigram | test/Syntax.pig | [
"MIT"
] |
@function func($arg, $arg1, $arg2: 10, $args...) {
@return "Func";
}
@function func($arg,$arg1,$arg2:10,$args...){
@return "Func";
}
@function func ( $arg , $arg1 , $arg2 : 10 , $args ... ) {
@return "Func";
}
@function func ( $arg , $arg1 , $arg2 : 10 , $args ... ) {
@return "Func";
}
@function func(
$arg,
$arg1,
$arg2: 10,
$args...
) {
@return "Func";
}
@function
func(
$arg,
$arg1,
$arg2: 10,
$args...
) {
@return "Func";
}
@function
func
(
$arg
,
$arg1
,
$arg2
:
10
,
$args
...
)
{
@return
"Func"
;
}
@function
func
(
$arg
,
$arg1
,
$arg2
:
10
,
$args
...
)
{
@return
"Func"
;
}
@function func($very-very-very-very-very-very-very-very-very-very-very-very-very-very-long-arg, $very-very-very-very-very-very-very-very-very-very-very-very-very-very-long-arg1, $very-very-very-very-very-very-very-very-very-very-very-very-very-very-long-arg2: 10, $very-very-very-very-very-very-very-very-very-very-very-very-very-very-long-args...) {
@return "Func";
}
| CSS | 0 | fuelingtheweb/prettier | tests/css_atrule/function.css | [
"MIT"
] |
sleep 1
t ia2 -3a 1 0 1 1
| AGS Script | 0 | waltersgrey/autoexechack | ProTunePhoto/autoexec.ash | [
"MIT"
] |
@-webkit-keyframes name {} | CSS | 2 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/spDFEMXbzLdZOmhoxVkAIQ/input.css | [
"Apache-2.0"
] |
; RUN: llc --mtriple=mips-mti-linux-gnu < %s -debug 2>&1 | FileCheck %s --check-prefixes=CHECK,MIPS
; RUN: llc --mtriple=mips-mti-linux-gnu < %s -mattr=+micromips -debug 2>&1 | FileCheck %s --check-prefixes=CHECK,MM
; REQUIRES: asserts
; Test that the correct mul instruction is selected upfront.
; CHECK-LABEL: Instruction selection ends:
; MIPS: t{{[0-9]+}}: i32,i32 = MUL t{{[0-9]+}}, t{{[0-9]+}}
; MM: t{{[0-9]+}}: i32,i32 = MUL_MM t{{[0-9]+}}, t{{[0-9]+}}
define i32 @mul(i32 %a, i32 %b) {
entry:
%0 = mul i32 %a, %b
ret i32 %0
}
| LLVM | 5 | medismailben/llvm-project | llvm/test/CodeGen/Mips/llvm-ir/isel.ll | [
"Apache-2.0"
] |
// run-pass
#![allow(unused_attributes)]
// aux-build:issue-29485.rs
// needs-unwind
// ignore-emscripten no threads
#[feature(recover)]
extern crate a;
fn main() {
let _ = std::thread::spawn(move || {
a::f(&mut a::X(0), g);
}).join();
}
fn g() {
panic!();
}
| Rust | 3 | ohno418/rust | src/test/ui/issues/issue-29485.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
class Foo
{
static Str f(Int a)
{
b := 2
s := ""
2.times |Int c|
{
d := c+10
2.times |Int e|
{
s += "[$a $b $c $d $e]"
a++
b*=2
}
}
return s
}
} | Fantom | 2 | fanx-dev/fanx | compiler/testCompilerx/res/closure/testNested1.fan | [
"AFL-3.0"
] |
"oneart.wav" diskin dup
15 # delay
200 # lf_x
7.0 # rtlo
8.0 # rthi
10000 # hfdamp
315 # eq1 fre1
0 # eq1 level
1500 # eq2 freq
0 # eq2 level
1 # all wet mix
0 # 0 dB level
zitarev
drop
| SourcePawn | 1 | aleatoricforest/Sporth | examples/zitarev.sp | [
"MIT"
] |
// Note that this file contains extracts from the rstanarm package.
// Copyright (C) 2015, 2016, 2017 Trustees of Columbia University
// Copyright (C) 2016, 2017 Sam Brilleman
functions {
/**
* Evaluate the linear predictor for the glmer submodel
*
* @param X Design matrix for fe
* @param Z Design matrix for re, for a single grouping factor
* @param Z_id Group indexing for Z
* @param gamma The intercept parameter
* @param beta Vector of population level parameters
* @param bMat Matrix of group level params
* @param shift Number of columns in bMat
* that correpond to group level params from prior glmer submodels
* @return A vector containing the linear predictor for the glmer submodel
*/
vector evaluate_eta(matrix X, vector[] Z, int[] Z_id, real gamma,
vector beta, matrix bMat, int shift) {
int N = rows(X); // num rows in design matrix
int K = rows(beta); // num predictors
int p = size(Z); // num group level params
vector[N] eta;
if (K > 0) eta = X * beta;
else eta = rep_vector(0.0, N);
for (k in 1:p)
for (n in 1:N)
eta[n] = eta[n] + (bMat[Z_id[n], k + shift]) * Z[k,n];
return eta;
}
/**
* Get the indices corresponding to the lower tri of a square matrix
*
* @param dim The number of rows in the square matrix
* @return A vector of indices
*/
int[] lower_tri_indices(int dim) {
int indices[dim + choose(dim, 2)];
int mark = 1;
for (r in 1:dim) {
for (c in r:dim) {
indices[mark] = (r - 1) * dim + c;
mark = mark + 1;
}
}
return indices;
}
}
data {
//----- Longitudinal submodels
// number of long. submodels
// NB this is fixed equal to 2 for this simplified jm.stan
// file. See the jm.stan file in rstanarm for more general
// code that allows for 1, 2 or 3 longitudinal submodels.
int<lower=2,upper=2> M;
// population level dimensions
int<lower=0> y_N[2]; // num observations
int<lower=0> y_K[2]; // num predictors
// population level data
// NB these design matrices are evaluated at the observation times
vector[y_N[1]] y1; // response vectors
vector[y_N[2]] y2;
matrix[y_N[1],y_K[1]] y1_X; // fe design matrix
matrix[y_N[2],y_K[2]] y2_X;
vector[y_K[1]] y1_Xbar; // predictor means
vector[y_K[2]] y2_Xbar;
// group level dimensions
int<lower=0> b_N; // num groups
int<lower=0> b_K; // total num params
int<lower=0> b_KM[2]; // num params in each submodel
// group level data
vector[y_N[1]] y1_Z[b_KM[1]]; // re design matrix
vector[y_N[2]] y2_Z[b_KM[2]];
int<lower=0> y1_Z_id[y_N[1]]; // group ids for y*_Z
int<lower=0> y2_Z_id[y_N[2]];
//----- Event submodel
// data for calculating event submodel linear predictor in GK quadrature
// NB these design matrices are evaluated AT the event time and
// the (unstandardised) quadrature points
int<lower=0> e_K; // num. of predictors in event submodel
int<lower=0> a_K; // num. of association parameters
int<lower=0> Npat; // num. individuals
int<lower=0> Nevents; // num. events (ie. not censored)
int<lower=0> qnodes; // num. of nodes for GK quadrature
int<lower=0> Npat_times_qnodes;
int<lower=0> nrow_e_Xq; // num. rows in event submodel predictor matrix
vector[nrow_e_Xq] e_times; // event times and quadrature points
matrix[nrow_e_Xq,e_K] e_Xq; // predictor matrix (event submodel)
vector[e_K] e_xbar; // predictor means (event submodel)
int<lower=0> basehaz_df; // df for B-splines baseline hazard
matrix[nrow_e_Xq,basehaz_df] basehaz_X; // design matrix (basis terms) for baseline hazard
vector[Npat_times_qnodes] qwts; // GK quadrature weights with (b-a)/2 scaling
// data for calculating long. submodel linear predictor in GK quadrature
// NB these design matrices are evaluated AT the event time and
// the (unstandardised) quadrature points
int<lower=0> nrow_y_Xq[2]; // num. rows in long. predictor matrix at quadpoints
matrix[nrow_y_Xq[1],y_K[1]] y1_Xq; // fe design matrix at quadpoints
matrix[nrow_y_Xq[2],y_K[2]] y2_Xq;
vector[nrow_y_Xq[1]] y1_Zq[b_KM[1]]; // re design matrix at quadpoints
vector[nrow_y_Xq[2]] y2_Zq[b_KM[2]];
int<lower=0> y1_Zq_id[nrow_y_Xq[1]]; // group indexing for re design matrix
int<lower=0> y2_Zq_id[nrow_y_Xq[2]];
//----- Hyperparameters for prior distributions
// means for priors
// coefficients
vector[y_K[1]] y1_prior_mean;
vector[y_K[2]] y2_prior_mean;
vector[e_K] e_prior_mean;
vector[a_K] a_prior_mean;
vector[M] y_prior_mean_for_intercept;
vector<lower=0>[M] y_prior_mean_for_aux;
vector[basehaz_df] e_prior_mean_for_aux;
// scale for priors
vector<lower=0>[y_K[1]] y1_prior_scale;
vector<lower=0>[y_K[2]] y2_prior_scale;
vector<lower=0>[e_K] e_prior_scale;
vector<lower=0>[a_K] a_prior_scale;
vector<lower=0>[M] y_prior_scale_for_intercept;
vector<lower=0>[M] y_prior_scale_for_aux;
vector<lower=0>[basehaz_df] e_prior_scale_for_aux;
// lkj prior stuff
vector<lower=0>[b_K] b_prior_scale;
vector<lower=0>[b_K] b_prior_df;
real<lower=0> b_prior_regularization;
}
transformed data {
// indexing used to extract lower tri of RE covariance matrix
int b_cov_idx[b_K + choose(b_K, 2)];
if (b_K > 0)
b_cov_idx = lower_tri_indices(b_K);
}
parameters {
real y1_gamma; // intercepts in long. submodels
real y2_gamma;
vector[y_K[1]] y1_z_beta; // primitive coefs in long. submodels
vector[y_K[2]] y2_z_beta;
vector[e_K] e_z_beta; // primitive coefs in event submodel (log hazard ratios)
vector[a_K] a_z_beta; // primitive assoc params (log hazard ratios)
real<lower=0> y1_aux_unscaled; // unscaled residual error SDs
real<lower=0> y2_aux_unscaled;
vector[basehaz_df] e_aux_unscaled; // unscaled coefs for baseline hazard
// group level params
vector<lower=0>[b_K] b_sd; // group level sds
matrix[b_K,b_N] z_b_mat; // unscaled group level params
cholesky_factor_corr[b_K > 1 ? b_K : 0]
b_cholesky; // cholesky factor of corr matrix
}
transformed parameters {
vector[y_K[1]] y1_beta; // population level params for long. submodels
vector[y_K[2]] y2_beta;
real y1_aux; // residual error SDs for long. submodels
real y2_aux;
vector[e_K] e_beta; // coefs in event submodel (log hazard ratios)
vector[a_K] a_beta; // assoc params in event submodel (log hazard ratios)
vector[basehaz_df] e_aux; // b-spline coefs for baseline hazard
matrix[b_N,b_K] b_mat; // group level params
// coefs for long. submodels
y1_beta = y1_z_beta .* y1_prior_scale + y1_prior_mean;
y2_beta = y2_z_beta .* y2_prior_scale + y2_prior_mean;
// coefs for event submodel (incl. association parameters)
e_beta = e_z_beta .* e_prior_scale + e_prior_mean;
a_beta = a_z_beta .* a_prior_scale + a_prior_mean;
// residual error SDs for long. submodels
y1_aux = y1_aux_unscaled * y_prior_scale_for_aux[1] + y_prior_mean_for_aux[1];
y2_aux = y2_aux_unscaled * y_prior_scale_for_aux[2] + y_prior_mean_for_aux[2];
// b-spline coefs for baseline hazard
e_aux = e_aux_unscaled .* e_prior_scale_for_aux + e_prior_mean_for_aux;
// group level params
if (b_K == 1)
b_mat = (b_sd[1] * z_b_mat)';
else if (b_K > 1)
b_mat = (diag_pre_multiply(b_sd, b_cholesky) * z_b_mat)';
}
model {
//---- Log-lik for longitudinal submodels
{
// declare linear predictors
vector[y_N[1]] y1_eta;
vector[y_N[2]] y2_eta;
// evaluate linear predictor for each long. submodel
y1_eta = evaluate_eta(y1_X, y1_Z, y1_Z_id, y1_gamma, y1_beta, b_mat, 0);
y2_eta = evaluate_eta(y2_X, y2_Z, y2_Z_id, y2_gamma, y2_beta, b_mat, b_KM[1]);
// increment the target with the log-lik
target += normal_lpdf(y1 | y1_eta, y1_aux);
target += normal_lpdf(y2 | y2_eta, y2_aux);
}
//----- Log-lik for event submodel (Gauss-Kronrod quadrature)
{
vector[nrow_y_Xq[1]] y1_eta_q;
vector[nrow_y_Xq[2]] y2_eta_q;
vector[nrow_e_Xq] e_eta_q;
vector[nrow_e_Xq] log_basehaz; // log baseline hazard AT event time and quadrature points
vector[nrow_e_Xq] log_haz_q; // log hazard AT event time and quadrature points
vector[Nevents] log_haz_etimes; // log hazard AT the event time only
vector[Npat_times_qnodes] log_haz_qtimes; // log hazard AT the quadrature points
// Event submodel: linear predictor at event time and quadrature points
e_eta_q = e_Xq * e_beta;
// Long. submodel: linear predictor at event time and quadrature points
y1_eta_q = evaluate_eta(y1_Xq, y1_Zq, y1_Zq_id, y1_gamma, y1_beta, b_mat, 0);
y2_eta_q = evaluate_eta(y2_Xq, y2_Zq, y2_Zq_id, y2_gamma, y2_beta, b_mat, b_KM[1]);
// Event submodel: add on contribution from association structure to
// the linear predictor at event time and quadrature points
e_eta_q = e_eta_q + a_beta[1] * y1_eta_q + a_beta[2] * y2_eta_q;
// Log baseline hazard at event time and quadrature points
log_basehaz = basehaz_X * e_aux;
// Log hazard at event time and quadrature points
log_haz_q = log_basehaz + e_eta_q;
// Log hazard at event times only
log_haz_etimes = head(log_haz_q, Nevents);
// Log hazard at quadrature points only
log_haz_qtimes = tail(log_haz_q, Npat_times_qnodes);
// Log likelihood for event submodel
// NB The first term is the log hazard contribution to the log
// likelihood for the event submodel. The second term is the log
// survival contribution to the log likelihood for the event submodel.
// The latter is obtained by summing over the quadrature points to get
// the approximate integral (i.e. cumulative hazard). Note that the
// 'qwts' vector already incorporates (b-a)/2 scaling such that the
// integral is evaluated over limits (a,b) rather than (-1,+1), where
// 'a' is baseline, i.e. time 0, and 'b' is the event or censoring
// time for the individual.
target += sum(log_haz_etimes) - dot_product(qwts, exp(log_haz_qtimes));
}
//----- Log-priors
// intercepts for long. submodels
target += normal_lpdf(y1_gamma |
y_prior_mean_for_intercept[1], y_prior_scale_for_intercept[1]);
target += normal_lpdf(y2_gamma |
y_prior_mean_for_intercept[2], y_prior_scale_for_intercept[2]);
// coefficients for long. submodels
target += normal_lpdf(y1_z_beta | 0, 1);
target += normal_lpdf(y2_z_beta | 0, 1);
// coefficients for event submodel
target += normal_lpdf(e_z_beta | 0, 1);
target += normal_lpdf(a_z_beta | 0, 1);
// residual error SDs for long. submodels
target += normal_lpdf(y1_aux_unscaled | 0, 1);
target += normal_lpdf(y2_aux_unscaled | 0, 1);
// b-spline coefs for baseline hazard
target += normal_lpdf(e_aux_unscaled | 0, 1);
// group level terms
// sds
target += student_t_lpdf(b_sd | b_prior_df, 0, b_prior_scale);
// primitive coefs
target += normal_lpdf(to_vector(z_b_mat) | 0, 1);
// corr matrix
if (b_K > 1)
target += lkj_corr_cholesky_lpdf(b_cholesky | b_prior_regularization);
}
generated quantities {
real y1_alpha; // transformed intercepts for long. submodels
real y2_alpha;
real e_alpha; // transformed intercept for event submodel
vector[size(b_cov_idx)] b_cov; // var-cov for REs
// Transformed intercepts for long. submodels
y1_alpha = y1_gamma - dot_product(y1_Xbar, y1_beta);
y2_alpha = y2_gamma - dot_product(y2_Xbar, y2_beta);
// Transformed intercept for event submodel
e_alpha = 0.0 - dot_product(e_xbar, e_beta);
// Transform variance-covariance matrix for REs
if (b_K == 1)
b_cov[1] = b_sd[1] * b_sd[1];
else
b_cov = to_vector(quad_form_diag(
multiply_lower_tri_self_transpose(b_cholesky), b_sd))[b_cov_idx];
}
| Stan | 5 | stan-dev/stancon_talks | 2018/Contributed-Talks/03_brilleman/Stan/jm.stan | [
"CC-BY-4.0",
"BSD-3-Clause"
] |
DROP TABLE IF EXISTS nested;
CREATE TABLE nested (nest Nested(x UInt8, y UInt8)) ENGINE = Memory;
INSERT INTO nested VALUES ([1, 2, 3], [4, 5, 6]);
SELECT nx FROM nested ARRAY JOIN nest.x AS nx, nest.y AS ny WHERE notEmpty(nest.y);
SELECT 1 FROM nested ARRAY JOIN nest.x AS nx, nest.y AS ny WHERE notEmpty(nest.y);
SELECT nx, ny FROM nested ARRAY JOIN nest.x AS nx, nest.y AS ny WHERE notEmpty(nest.y);
SELECT nx FROM nested ARRAY JOIN nest.x AS nx, nest.y AS ny WHERE notEmpty(nest.x);
SELECT nx, nest.y FROM nested ARRAY JOIN nest.x AS nx, nest.y AS ny;
SELECT nx, ny, nest.x, nest.y FROM nested ARRAY JOIN nest.x AS nx, nest.y AS ny;
DROP TABLE nested;
| SQL | 3 | pdv-ru/ClickHouse | tests/queries/0_stateless/00468_array_join_multiple_arrays_and_use_original_column.sql | [
"Apache-2.0"
] |
fall 0.0 0.0 0.022840604316256421 0.14719692086267672 0.021978906718775164 0.0 0.0 0.12702291659772899 0.0 0.0 0.0 0.0 0.0 0.0 0.014598799421152631 0.0 0.040671039730927783 0.0 0.54522705048332298 0.034401426717332317 0.0 0.13976194237515879 0.0 0.7683706017975328 0.0 0.54522705048332309 0.13976194237515879 0.0 0.83290912293510411 1.2383742310432684 0.0
slip 0.27734916782894242 0.20750559446167827 0.0 0.24125788126656977 0.13851272297472669 0.0 0.34330713562073994 0.0 0.0 0.0 0.9494429391910556 0.067053758992581744 0.0 0.033152207316900342 0.0 0.34330713562073994 0.15720485598687917 0.016622905365689986 0.0 0.43861731542506488 0.17625305095757385 0.25629575863111032 0.033152207316900342 0.0 0.067053758992581744 0.0 0.0 0.79529225936379722 0.0 0.0 0.0
attempt 0.28864872308287598 0.0 0.26067487104046971 0.0 0.0 0.0 0.0 0.46249565288585842 1.3055829807367185 0.0 0.0 1.4646476753664057 0.0 0.0 1.3055829807367185 0.0 0.16850441124081267 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.4646476753664057 0.0 0.0 0.0 0.0 0.0 0.0
slide 0.0 0.0 0.54835694349225084 0.0 1.5361066393485507 0.0 0.0 0.46249565288585842 1.3055829807367185 0.0 0.0 1.4646476753664057 0.0 0.0 0.0 0.0 0.86165159180075801 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.4646476753664057 0.0 0.0 0.0 0.0 0.0 0.0
kill 0.62285081116954955 0.042181614036294661 0.055880458394456628 0.0 0.0 0.31411532951993648 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.50270649932748634 0.12096249188940891 0.0 0.78411895876567195 0.0 1.2949445825316626 0.0 0.31411532951993648 0.0 2.3935568711997726 1.2949445825316626 0.0 0.0 0.0 0.0
die 0.094492708641918347 0.052820012241350321 0.0 0.1919328147040682 0.0 0.0 0.29398206905823848 0.19423166629117897 0.0 0.74596719280129564 0.0 0.0 0.29934401219962381 0.0 0.0 0.0 0.0 0.085080874459571854 0.2069706920686088 0.0 0.12692798439507227 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
climb 0.21562358806798598 0.0 0.0 0.14876064283885959 0.0 0.19457017887015376 0.56926362831156452 0.0 0.1339455570537188 1.0212487520546216 0.0 0.0 0.38046955701199253 0.25910870000772496 0.1339455570537188 0.0 0.095479276225922838 0.088428718229256062 1.1753994318818799 0.0 0.40220954364839823 0.48225225132193467 0.25910870000772496 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
approach 0.0 0.0 0.17366349405084008 0.0 0.0 0.0 0.0 0.78094938400439295 0.0 0.0 0.0 0.0 0.0 2.4423470353692043 0.0 0.0 0.0 0.0 0.0 0.0 2.5854478790098776 0.0 2.4423470353692043 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
reach 0.0 0.0909717782057268 0.0 0.0 0.0 0.0 1.836211231798889 0.0 0.0 2.2881963555419462 0.0 0.0 0.0 2.2192034840549946 0.0 0.0 0.0 0.0 0.0 0.0 1.6691571471357227 0.0 2.2192034840549946 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
experience" 0.67164097533898171 0.37865385065750756 0.2382020151884113 0.0 0.0 1.7491998548092591 0.0 0.1523407245820188 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.55149666349691839 0.0 0.0 0.0 0.0 2.0368819272610401 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
slide_down 0.89478452665319141 0.60179740197171738 0.0 0.0 1.4490952623589208 0.0 0.0 0.37548427589622857 1.2185716037470886 0.0 0.0 1.377636298376776 0.21233263520999415 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.377636298376776 0.0 0.0 0.0 0.0 0.0 0.0
drop_off 0.0 0.042181614036294661 0.0 0.0 0.88947947442349817 0.71958043762810076 0.0 0.0 0.65895581581166585 0.0 0.0 0.81802051044135327 0.0 0.0 0.65895581581166585 0.0 0.90817160743565073 0.0 0.0 1.1895840668738364 0.0 1.0072625100798818 0.0 0.0 0.81802051044135327 0.0 1.7004096906398272 0.0 0.0 0.0 0.0
death 0.065505171768666035 0.17798315519535643 0.19168199955351822 0.0 0.0 0.0 0.0 0.057030544777694064 0.0 0.0 0.73759894313077912 0.0 0.29934401219962398 0.0 0.0 0.41914521201224458 0.0 0.037401204574167027 0.33213383502261484 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.58344826330352084 0.0 0.0 0.0
live 0.69411383119104031 0.0 0.26067487104046971 0.0 0.0 0.67306042199320792 1.0477538714346186 0.17481358043407746 0.0 0.0 0.0 0.078353314246515163 0.011661939747842957 0.73759894313077912 0.61243580017677313 1.0477538714346186 0.16850441124081267 0.0 0.0 0.0 0.18755260621150732 0.0 0.73759894313077912 0.0 0.0 0.0 0.0 0.80659181461773055 0.0 0.0 0.0
rescue 0.3351687387177687 0.042181614036294661 0.3071948866753626 0.0 0.88947947442349817 0.0 0.0 0.5090156685207512 1.3521029963716111 0.0 0.0 0.0 0.0 0.0 1.3521029963716111 0.0 0.21502442687570542 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.5111676910012986 0.0 0.0 0.0 0.0 0.0 0.0
inexperienced 0.0 0.8894794744234984 0.055880458394456628 0.8279215814240648 0.0 0.0 0.0 0.0 0.0 0.0 2.5477075510270306 0.0 0.50001470766177503 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.3935568711997721 0.0 0.0 0.0
en_route 0.0 0.68880877896134718 0.0 1.0327159940700781 0.0 0.0 0.0 0.0 0.0 0.0 2.3470368555648795 0.0 0.99249119275956932 0.0 0.0 2.4340482325545092 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
Dies 0.0 0.44764672214445905 0.0 0.79155393725319012 0.0 0.0 0.0 0.0 0.0 0.0 2.1058747987479913 0.0 0.75132913594268125 0.0 0.0 2.192886175737621 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.9517241189207331 0.0 0.0 4.5907814485359921
describe 0.67164097533898171 0.37865385065750756 0.2382020151884113 0.0 0.0 1.0560526742493137 0.0 0.1523407245820188 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.55149666349691839 0.074442476254515999 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.7300291078209855 0.0 0.0 0.0 0.0
walk 0.0 0.11628958619001659 0.38130285882908455 0.0 0.96358744657722006 0.79368840978182276 0.0 0.29544156822269213 0.73306378796538774 0.0 0.0 0.89212848259507516 0.0 0.0 0.73306378796538774 0.0 0.0 0.0 0.0 1.2636920390275583 0.0 0.0 0.0 0.0 0.89212848259507516 0.0 1.7745176627935488 0.0 0.0 0.0 0.0
take 0.3839589028872008 0.0909717782057268 0.35598505084479481 0.0 0.93826963859293022 0.0 0.0 0.55780583269018336 1.4008931605410433 0.0 0.0 0.86681067461078543 0.0 0.0 1.4008931605410433 0.0 0.26381459104513749 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
ill 0.0 1.0072625100798818 0.17366349405084008 0.9457046170804484 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.61779774331815862 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.5113399068561559 0.0 0.0 0.0
accident 0.0 0.521754694298181 0.0 0.0 0.0 0.0 2.2669941478913431 0.0 0.0 0.0 0.0 0.0 0.1322899275364578 1.9568392195875037 0.0 0.0 0.0 0.0 0.0 0.0 2.0999400632281771 0.0 1.9568392195875037 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
Fall 0.0 0.521754694298181 0.0 0.86566190940691201 0.0 0.0 0.0 0.0 0.0 0.0 2.1799827709017134 0.0 0.82543710809640314 0.0 0.0 2.2669941478913431 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2.0258320910744549 0.0 0.0 0.0
on_the_way 0.43525219727475128 0.14226507259327717 0.0018132371241807218 0.48617228770200827 0.9895629329804807 0.81966389618508317 0.0 0.60909912707773373 0.0 0.0 0.0 0.9181039689983358 0.0 0.0 0.0 0.0 0.31510788543268792 0.0 0.0 1.9828147059907641 0.0 0.0 0.0 0.0 0.9181039689983358 0.0 0.0 0.0 0.0 0.0 0.0
spend 0.0 1.0072625100798818 0.17366349405084008 0.0 0.0 0.0 0.0 0.0 0.0 3.2044870874161013 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.19222551191089948 0.0 0.0 1.8923006984499324 0.0 2.4423470353692043 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
dead 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.81637982098389361 0.0 0.0 0.0 0.0 0.0 2.8478121434773689 0.0 0.0 0.0 0.0 3.1354942159291497 0.0 0.0
recover 0.0 0.0 0.055880458394456628 0.13477440086411954 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.76758965681446134 0.0 0.0 0.0 0.0 0.0 2.2600254785752498 0.0 0.0 0.0 0.0 0.0 0.0 0.0
it 0.0 0.0 0.46134556650262099 0.5402395089722839 0.0 0.0 0.0 1.0686314564561739 0.0 0.0 0.0 0.0 0.90547981576993941 0.0 0.0 0.0 0.0 0.074442476254515999 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
witness 0.0 0.0 0.17366349405084008 0.0 0.0 0.0 0.0 0.0 0.0 3.2044870874161013 0.0 0.0 0.0 2.4423470353692043 0.0 0.0 0.0 0.19222551191089948 0.0 0.0 2.5854478790098776 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
think 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0395233722981032 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3.3586377672433594 0.0 0.0
| DM | 0 | tommasoc80/EventStoryLine | ppmi_events_ecb+_test/23/full_corpus_ppmi.dm | [
"CC-BY-3.0"
] |
// RUN: %target-typecheck-verify-swift -swift-version 5
@_inlineable public func oldInlinableFunction() {}
// expected-error@-1 {{'@_inlineable' has been renamed to '@inlinable'}}{{2-13=inlinable}}
@_versioned func oldVersionedFunction() {}
// expected-error@-1 {{'@_versioned' has been renamed to '@usableFromInline'}}{{2-12=usableFromInline}}
| Swift | 2 | lwhsu/swift | test/attr/attr_inlinable_old_spelling.swift | [
"Apache-2.0"
] |
"Sun-$Revision: 9.1 $"
"The method cache maps a message name and its argument number
to a corresponding constraint_mapping_table"
traits cecil_interp _AddSlotsIfAbsent: ( | cecil_method_cache = () | )
traits cecil_method_cache _Define: ( |
_ parent* = traits dictionary.
_ errHandlingParent* = mixins cecil_error_handling.
copy = ( error: 'cannot copy me' ).
copyRemoveAll = (
resend.copyRemoveAll
constrainedPositions: constrainedPositions copyRemoveAll ).
_ keyFor: msgName ArgCount: argc ParamCount: paramc = (
"prolog-like naming, with argcount & param count in msg name"
msgName, '/', argc printString, '/', paramc printString ).
_ keyFor: aMethod = (
keyFor: aMethod name
ArgCount: aMethod formals size
ParamCount: aMethod params size ).
^ lookup: msgName Args: args Params: params In: context
IfAbsentPut: block = (
| constrainedArgs. cacheKey. method. |
constrainedArgs:
constrainedPositions filter: msgName Args: args Params: params
In: context.
cacheKey: constrainedArgs cacheKey.
if: (keyFor: msgName ArgCount: args size ParamCount: params size)
IsPresentDo: [ | :table |
method: table lookupArgs: cacheKey IfAbsentPut: block.
] IfAbsentPut: [
method: block value.
createEntryFor: method Args: cacheKey
] AndDo: [].
method ).
^ createEntryFor: aMethod Args: args = (
createEntryFor: aMethod Args: args At: 0 ).
^ createEntryFor: aMethod Args: args At: position = (
| entry |
args size = position ifTrue: [
entry: mapping_table_leaf copy.
entry method: aMethod.
] False: [
entry: constraint_mapping_table copy.
entry at: (args at: position) Put:
createEntryFor: aMethod Args: args At: position+1.
].
entry ).
"a new method has been added; update tables to handle it"
^ addMethod: aMethod = (
removeKey: (keyFor: aMethod) IfAbsent: [].
constrainedPositions addMethod: aMethod.
).
^ reset = ( copyRemoveAll ).
| )
globals cecil_interp _AddSlotsIfAbsent: (| constrained_positions_table = ()|)
globals cecil_interp _AddSlotsIfAbsent: ( | cecil_method_cache = () | )
cecil_method_cache _Define: dictionary clone _AddSlots: ( |
_ parent* = traits cecil_method_cache.
constrainedPositions <- constrained_positions_table.
| )
"constraint_mapping_table is a trie-like data structure, where each level
dispatches on one arg position and maps to another trie with one fewer args
to test. The leaves of this tree are mapping_table_leaf objects"
traits cecil_interp _AddSlotsIfAbsent: ( | constraint_mapping_table = () | )
traits constraint_mapping_table _Define: ( |
parent* = traits dictionary.
errHandlingParent* = mixins cecil_error_handling.
^ lookupArgs: args IfAbsentPut: block = (
lookupArgs: args At: 0 IfAbsentPut: block ).
^ lookupArgs: args At: position IfAbsentPut: block = ( | method |
if: (args at: position) IsPresentDo: [ | :entry |
method:
entry lookupArgs: args At: position+1 IfAbsentPut: block.
] IfAbsentPut: [
method: block value.
cecil_method_cache
createEntryFor: method Args: args At: position+1
] AndDo: [].
method ).
| )
globals cecil_interp _AddSlotsIfAbsent: ( | constraint_mapping_table = () | )
constraint_mapping_table _Define: dictionary clone _AddSlots: ( |
_ parent* = traits constraint_mapping_table.
| )
traits cecil_interp _AddSlotsIfAbsent: ( | mapping_table_leaf = () | )
traits mapping_table_leaf _Define: ( |
parent* = traits clonable.
errHandlingParent* = mixins cecil_error_handling.
printString = ( method printString ).
^ lookupArgs: args IfAbsentPut: block = (
lookupArgs: args At: 0 IfAbsentPut: block ).
^ lookupArgs: args At: position IfAbsentPut: block = (
args size = position ifFalse: [ error: 'shouldn\'t be at a leaf' ].
debugMsg: 'cache hit on ', method printString.
method ).
| )
globals cecil_interp _AddSlotsIfAbsent: ( | mapping_table_leaf = () | )
mapping_table_leaf _Define: ( |
_ parent* = traits mapping_table_leaf.
_ thisObjectPrints = true.
method <- cecil_method.
| )
traits cecil_interp _AddSlotsIfAbsent: ( | constrained_positions_table = () | )
traits constrained_positions_table _Define: ( |
_ parent* = traits dictionary.
_ errHandlingParent* = mixins cecil_error_handling.
^ keyFor: msgName ArgCount: argc ParamCount: paramc = (
"prolog-like naming, with argcount & paramcount in msg name"
msgName, '/', argc printString, '/', paramc printString ).
_ keyFor: aMethod = (
keyFor: aMethod name
ArgCount: aMethod formals size
ParamCount: aMethod params size ).
^ constrainedPositionsFor: msgName ArgCount: argc ParamCount: paramc
In: context = ( | ps |
if: (keyFor: msgName ArgCount: argc ParamCount: paramc)
IsPresentDo: [ | :ps1 |
ps: ps1.
] IfAbsentPut: [
ps: context calculateConstrainedPositionsFor: msgName
ArgCount: argc.
ps
] AndDo: [].
ps ).
^ filter: msgName Args: args Params: params In: context = (
| argc. paramc. constrainedPositions. argKey. |
"lookup/compute&cache constrained positions for this message"
argc: args size.
paramc: params size.
constrainedPositions:
constrainedPositionsFor: msgName ArgCount: argc ParamCount: paramc
In: context.
"now filter actual arguments to include only the constrained positions"
argKey: cecil_obj_list copyRemoveAll.
constrainedPositions do: [ |:pos|
argKey add: args at: pos.
].
argKey ).
^ addMethod: aMethod = ( | constrainedPositions |
constrainedPositions: at: (keyFor: aMethod) IfAbsent: [ ^ self ].
constrainedPositions addAll: aMethod constrainedPositions.
).
"returns whether there was a change to the database"
^ insertMethod: aMethod = ( | mps |
mps: aMethod constrainedPositions.
if: (keyFor: aMethod)
IsPresentDo: [ | :ps. |
(ps includesAll: mps) ifTrue: false False: [ ps addAll: mps. true ]
] IfAbsentPut: [ set copyRemoveAll addAll: mps ] AndDo: true ).
| )
globals cecil_interp _AddSlotsIfAbsent: (| constrained_positions_table = ()|)
constrained_positions_table _Define: dictionary clone _AddSlots: ( |
_ parent* = traits constrained_positions_table.
| )
"Extensions of other data structures"
traits cecil_context _AddSlots: ( |
^ calculateConstrainedPositionsFor: msg ArgCount: argc = (
| constrainedPositions |
constrainedPositions: treeSet copyRemoveAll.
argc > 0 ifTrue: [
calculateConstrainedPositions: constrainedPositions
For: msg ArgCount: argc.
].
constrainedPositions ).
_ calculateConstrainedPositions: constrainedPositions
For: msg ArgCount: argc = (
methods do: [ | :method |
(method name = msg) && [method formals size = argc] ifTrue: [
constrainedPositions addAll: method constrainedPositions.
constrainedPositions size = argc ifTrue: [
"all arguments are constrained;
no more searching needed"
^ self
].
].
].
enclosingContext calculateConstrainedPositions: constrainedPositions
For: msg ArgCount: argc.
).
| )
cecil_empty_context _AddSlots: ( |
"_" calculateConstrainedPositions: constrainedPositions
For: msg ArgCount: argc = ( self ).
| )
traits cecil_obj_list _AddSlots: ( |
^ cacheKey = ( | args |
args: copyRemoveAll.
do: [ | :arg | args add: arg cacheKey ].
args ).
| )
traits cecil_object _AddSlots: ( |
cacheKey = ( | ps |
"compute which ancestor up a single inheritance chain holds the
first method, and use that as the cache index"
hasAttachedMethods not && [ps: parents. ps size = 1]
ifTrue: [ ps first cacheKey ]
False: self ).
| )
| Self | 5 | ajnavarro/language-dataset | data/github.com/russellallen/self/2bcf2c4cab23f52bf68ac4f617020e748699a548/objects/applications/cecil/interp/methodCache.self | [
"MIT"
] |
redo-ifchange md-to-man $2.md.tmp
. ./md-to-man $1 $2 $3
| Stata | 1 | BlameJohnny/redo | docs/default.1.do | [
"Apache-2.0"
] |
import "nested-package1";
import "nested-package2";
import "inline-loader!nested-package1";
import "inline-loader!nested-package2";
| JavaScript | 2 | fourstash/webpack | test/fixtures/watch/node_modules/package/index.js | [
"MIT"
] |
#pragma once
#include <ATen/ATen.h>
namespace torch {
namespace utils {
TORCH_API void check_out_type_matches(
const at::Tensor& result,
at::ScalarType scalarType, bool scalarType_is_none,
c10::optional<at::Layout> layout,
const at::Device& device, bool device_is_none);
}}
| C | 2 | Hacky-DH/pytorch | torch/csrc/utils/out_types.h | [
"Intel"
] |
export const template = 'template';
| JavaScript | 0 | Theo-Steiner/svelte | test/runtime/samples/deconflict-template-1/module.js | [
"MIT"
] |
(defmodule ltest-named-tests
(behaviour ltest-unit)
(import
(from ltest
(check-failed-assert 2))))
(include-lib "include/ltest-macros.lfe")
(deftest named-is
(tuple '"Testing the 'is' assertion macro."
(is 'true)
(is (not 'false))
(is (not (not 'true)))))
(deftest named-is-not-fail
(tuple '"Testing the 'is-not' assertion under failing conditions."
(try
(progn
(is-not 'true)
(error 'unexpected-test-success))
(catch ((tuple type value _)
(check-failed-assert value (assertion-failed)))))))
(deftest named-testset-with-one
(tuple '"Testing a named test set with one entry."
(list (is 'true))))
(deftest named-testset-with-two
(tuple '"Testing a named test set with two entries."
(list (is 'true)
(is-not 'false))))
(deftest named-testset-with-three
(tuple '"Testing a named test set with three entries."
(list (is 'true)
(is-not 'false)
(is-equal 2 2))))
(deftest named-testset-nested
(tuple '"Testing a named nested test set."
(list (is 'true)
(is-not 'false)
(is-equal 2 2)
(list (is 'true)
(is-not 'false)
(is-equal 1 1)))))
(deftest named-testset-deeply-nested
(tuple '"Testing a named, deeply-nested test set."
(list (is 'true)
(is-not 'false)
(is-equal 1 1)
(list (is 'true)
(is-not 'false)
(is-equal 2 2)
(list (is 'true)
(is-not 'false)
(is-equal 3 3)
(try
(progn
(is-equal 3 4)
(error 'unexpected-test-succes))
(catch
((tuple type value _)
(check-failed-assert value
(assert-equal-failed))))))))))
| LFE | 4 | ioolkos/ltest | test/ltest-named-tests.lfe | [
"BSD-3-Clause"
] |
{
"Version" : 0.2,
"ModuleName" : "ecere",
"ModuleVersion" : "0.44",
"Description" : "Ecere Runtime library",
"License" : "The Ecere SDK v0.44.15 - http://ecere.org\n\nThe Ecere SDK is Free Open Source Software. It is provided with NO WARRANTY\nexpressed or implied to the extent permitted by law.\n\nApplications built with it can be distributed both commercially and non\ncommercially, along with the supporting Ecere runtime library(ies):\n\n * libecere.so / ecere.dll\n - Core eC framework + GUI toolkit, 2D/3D graphics engine, networking\n * libecereCOM.so / ecereCOM.dll\n - Core eC framework only\n * libEDA.so / EDA.dll\n - Data Access System\n * libEDASQLite.so / EDASQLite.dll\n - SQLite driver for EDA\n * libEcereAudio.so / EcereAudio.dll\n - Audio output library (using ALSA / DirectSound)\n\nThe Ecere SDK is distributed under the New BSD license:\n\n================================================================================\n\n Copyright (c) 1996-2016, Jerome Jacovella-St-Louis\n Copyright (c) 2005-2016, Ecere Corporation\n\n All rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright notice,\n this list of conditions and the following disclaimer.\n * Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n * Neither the name of Ecere Corporation nor the names of its contributors\n may be used to endorse or promote products derived from this software\n without specific prior written permission.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR\n CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n================================================================================\n\nThis software makes use of other software components whose licenses may also\napply, which are found in their respective source directories (most under\ndeps/).\n\nAmong them: zlib, libPNG, libJPEG, giflib or libungif, HarfBuzz, FreeType,\n Tango icons\n\nFor EDA: SQLite (EDASQLite), libffi\n\nOn Windows, applications built statically with the MinGW-w64 runtime should\ninclude the MinGW-w64 runtime license in their application.\n See ecere-sdk/extras/res/licenses/MinGW-w64.LICENSE or\n Program Files/Ecere SDK/tdm/licenses/COPYING.MinGW-w64-runtime.txt\n\nThe Ecere IDE also communicates with GCC for compiling\n(MinGW/MinGW-w64 on Windows), GDB for debugging, and UPX for optionally\ncompressing executables.\n\nEach of these have their own license, which can be found from wherever you\nobtained them or under:\n Program Files/Ecere SDK/tdm/licenses/ and\n Program Files/Ecere SDK/upx/doc/\nif distributed with the Ecere SDK Windows installer.\n",
"Options" : {
"Warnings" : "All",
"PreprocessorDefinitions" : [
"BUILDING_ECERE_COM",
"CURL_DISABLE_TYPECHECK"
],
"IncludeDirs" : [
"src/gfx/drivers/harfbuzz",
"/usr/X11R6/include",
"/usr/X11R6/include/freetype2",
"src/gfx/drivers/gl3"
],
"DefaultNameSpace" : "ecere",
"TargetType" : "SharedLibrary",
"TargetFileName" : "ecere",
"TargetDirectory" : "",
"Libraries" : [
"jpeg",
"png",
"z",
"freetype",
"curl"
]
},
"Platforms" : [
{
"Name" : "Linux",
"Options" : {
"IncludeDirs" : [
"/usr/include/freetype2"
],
"Libraries" : [
"ncurses",
"pthread",
"m",
"dl",
"fontconfig",
"gif",
"X11",
"Xext",
"Xrender",
"GL",
"ssl",
"crypto",
"curl"
],
"LibraryDirs" : [
"/usr/X11R6/lib"
]
}
},
{
"Name" : "Win32",
"Options" : {
"IncludeDirs" : [
"../deps/jpeg-9a",
"../deps/libpng-1.6.12",
"../deps/libungif-4.1.1/lib",
"../deps/zlib-1.2.8",
"../deps/freetype-2.3.12/include",
"../deps/glext",
"../deps/curl-7.51.0/include",
"$(OPENSSL_INCLUDE_DIR)"
],
"Libraries" : [
"dxguid",
"ddraw",
"dinput",
"winmm",
"opengl32",
"ws2_32",
"kernel32",
"user32",
"gdi32",
"mpr",
"advapi32",
"shell32",
"winspool",
"imm32",
"ungif",
"ssl",
"crypto"
],
"LibraryDirs" : [
"../deps/zlib-1.2.8/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)",
"../deps/jpeg-9a/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)",
"../deps/libpng-1.6.12/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)",
"../deps/libungif-4.1.1/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)",
"../deps/freetype-2.3.12/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)",
"../deps/curl-7.51.0/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)",
"$(OPENSSL_BIN_DIR)",
"$(OPENSSL_LIB_DIR)"
]
}
},
{
"Name" : "apple",
"Options" : {
"IncludeDirs" : [
"/usr/include/freetype2",
"$(SYSROOT)/usr/X11/include/freetype2",
"$(SYSROOT)/usr/X11/include",
"/usr/X11R6/include/freetype2",
"/usr/X11R6/include",
"../deps/jpeg-9a",
"../deps/libpng-1.6.12",
"../deps/libungif-4.1.1/lib"
],
"Libraries" : [
"curses",
"pthread",
"m",
"dl",
"fontconfig",
"ungif",
"X11",
"Xext",
"Xrender",
"GL",
"ssl",
"crypto"
],
"LibraryDirs" : [
"$(SYSROOT)/usr/X11/lib",
"/usr/X11R6/lib",
"../deps/jpeg-9a/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)",
"../deps/libungif-4.1.1/obj/release.$(PLATFORM)$(COMPILER_SUFFIX)"
]
}
}
],
"Configurations" : [
{
"Name" : "Debug",
"Options" : {
"Debug" : true,
"PreprocessorDefinitions" : [
"_DEBUG"
]
}
},
{
"Name" : "MemoryGuard",
"Options" : {
"Debug" : true,
"MemoryGuard" : true,
"PreprocessorDefinitions" : [
"BUILDING_ECERE_COM",
"_DEBUG",
"MEMINFO",
"REDZONE=32"
]
}
},
{
"Name" : "MemoryGuardRelease",
"Options" : {
"MemoryGuard" : true,
"Optimization" : "Speed",
"PreprocessorDefinitions" : [
"BUILDING_ECERE_COM",
"MEMINFO",
"REDZONE=256"
],
"FastMath" : true
}
},
{
"Name" : "Profile",
"Options" : {
"Debug" : true,
"Profile" : true,
"Optimization" : "Speed",
"PreprocessorDefinitions" : [
"BUILDING_ECERE_COM",
"ECERE_STATIC"
],
"TargetType" : "StaticLibrary",
"TargetFileName" : "ecereStatic",
"FastMath" : true
}
},
{
"Name" : "Release",
"Options" : {
"Warnings" : "All",
"Debug" : true,
"Optimization" : "Speed",
"CompilerOptions" : [
"-mmmx",
"-msse",
"-msse2",
"-msse3",
"-msse4"
],
"FastMath" : true,
"PostbuildCommands" : [
"$(call mkdir,../$(SODESTDIR))",
"$(call cp,$(TARGET),../$(SODESTDIR))"
],
"InstallCommands" : [
"$(call cp,$(TARGET),\"$(DESTLIBDIR)/\")",
"$(if $(WINDOWS_HOST),,ln -sf $(LP)$(MODULE)$(SOV) $(DESTLIBDIR)/$(LP)$(MODULE)$(SO).0)",
"$(if $(WINDOWS_HOST),,ln -sf $(LP)$(MODULE)$(SOV) $(DESTLIBDIR)/$(LP)$(MODULE)$(SO))"
]
}
},
{
"Name" : "Static",
"Options" : {
"Optimization" : "Speed",
"PreprocessorDefinitions" : [
"ECERE_STATIC",
"ECERE_NOSSL"
],
"TargetType" : "StaticLibrary",
"TargetFileName" : "ecereStatic",
"Libraries" : [
"jpeg",
"png",
"z",
"freetype"
],
"Compress" : true,
"FastMath" : true
}
},
{
"Name" : "Tight",
"Options" : {
"Optimization" : "Size",
"PreprocessorDefinitions" : [
"BUILDING_ECERE_COM"
],
"Compress" : true
}
},
{
"Name" : "PACS",
"Options" : {
"Optimization" : "Size",
"PreprocessorDefinitions" : [
"ECERE_STATIC",
"ECERE_NOBLENDING",
"ECERE_NO3D",
"ECERE_NODINPUT",
"ECERE_NOTRUETYPE",
"ECERE_NOSSL"
],
"TargetType" : "StaticLibrary",
"TargetFileName" : "ecerePACS"
}
},
{
"Name" : "Bootstrap",
"Options" : {
"NoLineNumbers" : true,
"PreprocessorDefinitions" : [
"BUILDING_ECERE_COM",
"ECERE_STATIC",
"ECERE_BOOTSTRAP"
],
"IncludeDirs" : [
"../compiler/bootstrap/include"
],
"TargetType" : "StaticLibrary",
"TargetFileName" : "ecereBootstrap",
"Libraries" : [
]
}
},
{
"Name" : "Vanilla",
"Options" : {
"Warnings" : "None",
"NoLineNumbers" : true,
"Optimization" : "Size",
"PreprocessorDefinitions" : [
"BUILDING_ECERE_COM",
"ECERE_STATIC",
"ECERE_VANILLA",
"NOBLENDING"
],
"TargetType" : "StaticLibrary",
"TargetFileName" : "ecereVanilla",
"PostbuildCommands" : [
"$(call cp,$(TARGET),../obj/$(PLATFORM)$(COMPILER_SUFFIX)$(DEBUG_SUFFIX)/lib/)"
],
"InstallCommands" : [
"$(if $(WINDOWS_HOST),$(call cp,$(TARGET),\"$(DESTSLIBDIR)/\"),install $(INSTALL_FLAGS) $(TARGET) $(DESTSLIBDIR)/$(MODULE)$(A))"
]
}
},
{
"Name" : "WSMS",
"Options" : {
"Optimization" : "Speed",
"PreprocessorDefinitions" : [
"ECERE_STATIC",
"ECERE_NO3D",
"ECERE_NOSSL",
"ECERE_NOCURL"
],
"TargetType" : "StaticLibrary",
"TargetFileName" : "ecereWSMS",
"FastMath" : true
},
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"PreprocessorDefinitions" : [
"ECERE_NOTRUETYPE",
"ECERE_NOBLENDING",
"ECERE_NODINPUT"
]
}
}
]
},
{
"Name" : "Installer",
"Options" : {
"NoLineNumbers" : true,
"Optimization" : "Size",
"PreprocessorDefinitions" : [
"BUILDING_ECERE_COM",
"ECERE_STATIC",
"ECERE_NO3D",
"ECERE_ONEDRIVER",
"ECERE_NONET",
"ECERE_NODINPUT"
],
"TargetType" : "StaticLibrary",
"TargetFileName" : "ecereInstaller"
}
},
{
"Name" : "Android",
"Options" : {
"Debug" : true,
"Optimization" : "Speed",
"PreprocessorDefinitions" : [
"ECERE_NOFONTCONFIG",
"HIGH_DPI",
"ECERE_NOSSL",
"_GLES2"
],
"IncludeDirs" : [
"../deps/jpeg-9a",
"../deps/libpng-1.6.12",
"../deps/libungif-4.1.1/lib",
"../deps/zlib",
"../deps/freetype-2.3.12/include",
"../deps/glext",
"../deps/curl-7.51.0/include"
],
"FastMath" : true
},
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"Libraries" : [
"m",
"dl",
"ungif",
"log",
"android",
"EGL",
"GLESv3"
],
"LibraryDirs" : [
"../deps/libungif-4.1.1/obj/release.$(PLATFORM).$(COMPILER)",
"../deps/libpng-1.6.12/obj/release.$(PLATFORM).$(COMPILER)",
"../deps/jpeg-9a/obj/release.$(PLATFORM).$(COMPILER)",
"../deps/freetype-2.3.12/obj/release.$(PLATFORM).$(COMPILER)",
"../deps/curl-7.51.0/obj/release.$(PLATFORM).$(COMPILER)",
"../deps/etc2comp/EtcLib/obj/android.$(PLATFORM).$(COMPILER)"
]
}
}
]
},
{
"Name" : "Lumin",
"Options" : {
"Debug" : false,
"Optimization" : "Speed",
"PreprocessorDefinitions" : [
"ECERE_NOFONTCONFIG",
"HIGH_DPI",
"ECERE_NOSSL",
"_GLES2",
"_DEBUG",
"ECERE_STATIC"
],
"IncludeDirs" : [
"../deps/jpeg-9a",
"../deps/libpng-1.6.12",
"../deps/libungif-4.1.1/lib",
"../deps/zlib",
"../deps/freetype-2.3.12/include",
"../deps/glext",
"../deps/curl-7.51.0/include"
],
"TargetType" : "StaticLibrary",
"TargetFileName" : "ecereLuminStatic",
"FastMath" : true
},
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"Libraries" : [
"m",
"dl",
"ungif",
"log",
"android",
"EGL",
"GLESv3"
],
"LibraryDirs" : [
"../deps/libungif-4.1.1/obj/release.$(PLATFORM).$(COMPILER)",
"../deps/libpng-1.6.12/obj/release.$(PLATFORM).$(COMPILER)",
"../deps/jpeg-9a/obj/release.$(PLATFORM).$(COMPILER)",
"../deps/freetype-2.3.12/obj/release.$(PLATFORM).$(COMPILER)",
"../deps/curl-7.51.0/obj/release.$(PLATFORM).$(COMPILER)",
"../deps/etc2comp/EtcLib/obj/android.$(PLATFORM).$(COMPILER)"
]
}
}
]
},
{
"Name" : "GLES",
"Options" : {
"PreprocessorDefinitions" : [
"_GLES2"
]
}
},
{
"Name" : "StaticGLES",
"Options" : {
"Optimization" : "Speed",
"PreprocessorDefinitions" : [
"_GLES",
"ECERE_STATIC",
"ECERE_NOSSL"
],
"TargetType" : "StaticLibrary",
"TargetFileName" : "ecereStatic",
"CompilerOptions" : [
"-mmmx",
"-msse3",
"-msse4"
],
"FastMath" : true
}
},
{
"Name" : "Emscripten",
"Options" : {
"PreprocessorDefinitions" : [
"ECERE_STATIC",
"NOBLENDING",
"ECERE_NOSSL",
"ECERE_NONET"
],
"TargetType" : "StaticLibrary",
"TargetFileName" : "ecereStatic",
"FastMath" : true
}
},
{
"Name" : "MinEmscripten",
"Options" : {
"PreprocessorDefinitions" : [
"ECERE_STATIC",
"NOBLENDING",
"ECERE_NOSSL",
"ECERE_NO3D",
"ECERE_NONET",
"ECERE_NOTRUETYPE"
],
"TargetType" : "StaticLibrary",
"TargetFileName" : "ecereStatic",
"FastMath" : true
}
}
],
"Files" : [
{
"Folder" : "src",
"Files" : [
{
"Folder" : "sys",
"Files" : [
"Archive.ec",
{
"FileName" : "BufferedFile.ec",
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : false
}
}
]
},
"Date.ec",
{
"FileName" : "DualPipe.ec",
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : false
}
}
]
},
"EARArchive.ec",
{
"FileName" : "File.ec",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"PreprocessorDefinitions" : [
"_FILE_OFFSET_BITS=64"
]
}
}
],
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : false
}
}
]
},
"FileMonitor.ec",
"GlobalAppSettings.ec",
"JSON.ec",
"JSONGlobalSettings.ec",
{
"FileName" : "memory.ec",
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : false
}
}
]
},
{
"FileName" : "Mutex.ec",
"Options" : {
"PreprocessorDefinitions" : [
"ECERE_COM_MODULE"
]
},
"Configurations" : [
{
"Name" : "MemoryGuard",
"Options" : {
"MemoryGuard" : false
}
},
{
"Name" : "MemoryGuardRelease",
"Options" : {
"MemoryGuard" : false
}
}
]
},
"Semaphore.ec",
{
"FileName" : "System.ec",
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : false
}
}
]
},
{
"FileName" : "TempFile.ec",
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : false
}
}
]
},
{
"FileName" : "Thread.ec",
"Configurations" : [
{
"Name" : "MemoryGuard",
"Options" : {
"MemoryGuard" : false
}
},
{
"Name" : "MemoryGuardRelease",
"Options" : {
"MemoryGuard" : false
}
}
]
},
"Time.ec",
"unicode.ec",
"units.ec",
{
"FileName" : "File.c",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"PreprocessorDefinitions" : [
"_FILE_OFFSET_BITS=64"
]
}
}
]
},
"DualPipe.c",
"System.c",
{
"FileName" : "i18n.ec",
"Options" : {
"PreprocessorDefinitions" : [
"ECERE_COM_MODULE"
]
},
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : false
}
}
]
},
"Condition.ec"
],
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Folder" : "gfx",
"Files" : [
{
"Folder" : "3D",
"Files" : [
{
"Folder" : "meshes",
"Files" : [
"Cube.ec",
"SkyBox.ec",
"Sphere.ec"
]
},
{
"Folder" : "models",
"Files" : [
"Object3DSFormat.ec"
]
},
"Camera.ec",
"Matrix.ec",
"Mesh.ec",
"Object.ec",
"Plane.ec",
"Quaternion.ec",
"Vector3D.ec"
],
"Configurations" : [
{
"Name" : "PACS",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Vanilla",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "WSMS",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Installer",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "MinEmscripten",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Folder" : "bitmaps",
"Files" : [
{
"FileName" : "BMPFormat.ec",
"Configurations" : [
{
"Name" : "Vanilla",
"Options" : {
"ExcludeFromBuild" : false
}
}
]
},
{
"FileName" : "GIFFormat.ec",
"Configurations" : [
{
"Name" : "PACS",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "WSMS",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Installer",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "StaticGLES",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Emscripten",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"FileName" : "JPEGFormat.ec",
"Configurations" : [
{
"Name" : "WSMS",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Installer",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"FileName" : "PCXFormat.ec",
"Configurations" : [
{
"Name" : "PACS",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
"PNGFormat.ec",
{
"FileName" : "RGBFormat.ec",
"Configurations" : [
{
"Name" : "PACS",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "WSMS",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Installer",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Emscripten",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
"ETC2Format.ec"
],
"Configurations" : [
{
"Name" : "Vanilla",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "MinEmscripten",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Folder" : "drivers",
"Files" : [
{
"Folder" : "harfbuzz",
"Files" : [
{
"Folder" : "unicode",
"Files" : [
{
"Folder" : "tables",
"Files" : [
"category-properties.h",
"combining-properties.h",
"grapheme-break-properties.h",
"script-properties.h"
]
},
"harfbuzz-freetype.h",
"harfbuzz-unicode.h",
"harfbuzz-freetype.c",
"harfbuzz-unicode-tables.c",
"harfbuzz-unicode.c"
]
},
"harfbuzz-arabic.c",
"harfbuzz-buffer.c",
"harfbuzz-buffer.h",
"harfbuzz-external.h",
"harfbuzz-gdef-private.h",
"harfbuzz-gdef.c",
"harfbuzz-gdef.h",
"harfbuzz-global.h",
"harfbuzz-gpos-private.h",
"harfbuzz-gpos.c",
"harfbuzz-gpos.h",
"harfbuzz-gsub-private.h",
"harfbuzz-gsub.c",
"harfbuzz-gsub.h",
"harfbuzz-hangul.c",
"harfbuzz-hebrew.c",
"harfbuzz-impl.h",
"harfbuzz-indic.c",
"harfbuzz-khmer.c",
"harfbuzz-myanmar.c",
"harfbuzz-open-private.h",
"harfbuzz-open.c",
"harfbuzz-open.h",
"harfbuzz-shape.h",
"harfbuzz-shaper-private.h",
"harfbuzz-shaper.c",
"harfbuzz-shaper.h",
"harfbuzz-stream.c",
"harfbuzz-stream.h",
"harfbuzz-tibetan.c",
"harfbuzz.h",
"harfbuzz-impl.c",
"harfbuzz-thai.c",
"harfbuzz-buffer-private.h",
"harfbuzz-dump.h",
"harfbuzz-stream-private.h"
],
"Options" : {
"ExcludeFromBuild" : false
},
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Vanilla",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "WSMS",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Installer",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "MinEmscripten",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Folder" : "gl3",
"Files" : [
{
"FileName" : "glab.ec",
"Configurations" : [
{
"Name" : "Debug",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "GLES",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Release",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "MemoryGuard",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Android",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Lumin",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "StaticGLES",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Static",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Emscripten",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "MinEmscripten",
"Options" : {
"ExcludeFromBuild" : false
}
}
]
},
{
"FileName" : "immediate.ec",
"Configurations" : [
{
"Name" : "Debug",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "GLES",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Release",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "MemoryGuard",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Android",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Lumin",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "StaticGLES",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Static",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Emscripten",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "MinEmscripten",
"Options" : {
"ExcludeFromBuild" : false
}
}
]
},
{
"FileName" : "matrixStack.ec",
"Configurations" : [
{
"Name" : "Debug",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "GLES",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Release",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "MemoryGuard",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Android",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Lumin",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "StaticGLES",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Emscripten",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "MinEmscripten",
"Options" : {
"ExcludeFromBuild" : false
}
}
]
},
"wglDefs.h",
{
"FileName" : "egl.ec",
"Configurations" : [
{
"Name" : "Android",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Lumin",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Static",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Emscripten",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"FileName" : "gl_compat_4_4.c",
"Configurations" : [
{
"Name" : "GLES",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Debug",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Release",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "MemoryGuard",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "StaticGLES",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Static",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Emscripten",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "MinEmscripten",
"Options" : {
"ExcludeFromBuild" : false
}
}
]
},
"gl_compat_4_4.h",
"gl123es.h",
"default.vert",
"default.frag",
{
"FileName" : "shaders.ec",
"Options" : {
"ExcludeFromBuild" : false
},
"Configurations" : [
{
"Name" : "Vanilla",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Android",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Lumin",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Installer",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "WSMS",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"FileName" : "defaultShader.ec",
"Options" : {
"ExcludeFromBuild" : false
},
"Configurations" : [
{
"Name" : "Vanilla",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Android",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Lumin",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Static",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Installer",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "WSMS",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
}
],
"Configurations" : [
{
"Name" : "Static",
"Options" : {
"ExcludeFromBuild" : false
}
}
]
},
{
"FileName" : "Direct3D8DisplayDriver.ec",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : false
}
}
],
"Configurations" : [
{
"Name" : "WSMS",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Vanilla",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "PACS",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Bootstrap",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Installer",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "StaticGLES",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Static",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
}
]
},
{
"FileName" : "Direct3D9DisplayDriver.ec",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : false
}
}
],
"Configurations" : [
{
"Name" : "WSMS",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Vanilla",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "PACS",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Bootstrap",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Installer",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "StaticGLES",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Static",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
}
]
},
{
"FileName" : "DirectDrawDisplayDriver.ec",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : false
}
}
],
"Configurations" : [
{
"Name" : "WSMS",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Vanilla",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "PACS",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Bootstrap",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Installer",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "StaticGLES",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Static",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
}
]
},
{
"FileName" : "GDIDisplayDriver.ec",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : false
}
}
],
"Configurations" : [
{
"Name" : "Bootstrap",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Static",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : false
}
}
]
}
]
},
{
"FileName" : "lfbBlit.ec",
"Options" : {
"ExcludeFromBuild" : false
},
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"FileName" : "lfbConvert.ec",
"Options" : {
"ExcludeFromBuild" : false
},
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"FileName" : "LFBDisplayDriver.ec",
"Options" : {
"ExcludeFromBuild" : false
},
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"FileName" : "NCursesDisplayDriver.ec",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "apple",
"Options" : {
"ExcludeFromBuild" : false
}
}
],
"Configurations" : [
{
"Name" : "WSMS",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Bootstrap",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "apple",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Android",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Lumin",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "MinEmscripten",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
}
]
},
{
"FileName" : "OpenGLDisplayDriver.ec",
"Options" : {
"ExcludeFromBuild" : false
},
"Configurations" : [
{
"Name" : "WSMS",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Vanilla",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "PACS",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Installer",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"FileName" : "Win32BitmapPrinterDisplayDriver.ec",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : false
}
}
],
"Configurations" : [
{
"Name" : "WSMS",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Vanilla",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "PACS",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Bootstrap",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Installer",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "StaticGLES",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Static",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
}
]
},
{
"FileName" : "CocoaOpenGLDisplayDriver.ec",
"Options" : {
"IncludeDirs" : [
"src/gui/drivers/cocoa"
]
},
"Platforms" : [
{
"Name" : "apple",
"Options" : {
"ExcludeFromBuild" : false
}
}
],
"Configurations" : [
{
"Name" : "Vanilla",
"Options" : {
"ExcludeFromBuild" : true
},
"Platforms" : [
{
"Name" : "apple",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Bootstrap",
"Platforms" : [
{
"Name" : "apple",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Static",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Debug",
"Platforms" : [
{
"Name" : "apple",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Installer",
"Platforms" : [
{
"Name" : "apple",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
}
]
},
{
"FileName" : "Win32ConsoleDisplayDriver.ec",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : false
}
}
],
"Configurations" : [
{
"Name" : "WSMS",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Vanilla",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "PACS",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Bootstrap",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Installer",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "StaticGLES",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Static",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
}
]
},
{
"FileName" : "Win32PrinterDisplayDriver.ec",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : false
}
}
],
"Configurations" : [
{
"Name" : "Vanilla",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "PACS",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Bootstrap",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Installer",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "StaticGLES",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Static",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
}
]
},
{
"FileName" : "XDisplayDriver.ec",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "apple",
"Options" : {
"ExcludeFromBuild" : false
}
}
],
"Configurations" : [
{
"Name" : "Bootstrap",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "apple",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Android",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Lumin",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Emscripten",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "MinEmscripten",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
}
]
}
],
"Options" : {
"ExcludeFromBuild" : true
},
"Configurations" : [
{
"Name" : "PACS",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Folder" : "newFonts",
"Files" : [
{
"Folder" : "cc",
"Files" : [
"cc.c",
"cc.h",
"cchybridsort.h",
"ccmergesort.h",
"cpuconfig.h",
"mm.c",
"mm.h",
"mmatomic.h",
"mmthread.h",
"ccstr.c",
"ccstr.h",
{
"FileName" : "mmhash.c",
"Configurations" : [
{
"Name" : "WSMS",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Vanilla",
"Options" : {
"ExcludeFromBuild" : false
}
}
]
},
"mmhash.h",
"mmhashinline.h",
"mmhashinternal.h"
]
},
"atlasBuilder.ec",
"drawManager.ec",
"fmFontManager.ec",
"fontRenderer.ec",
"textureManager.ec"
],
"Options" : {
"IncludeDirs" : [
"src/gfx/newFonts/cc"
]
},
"Configurations" : [
{
"Name" : "WSMS",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Vanilla",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
"Bitmap.ec",
"BitmapResource.ec",
"Color.ec",
"Display.ec",
"DisplaySystem.ec",
"FontResource.ec",
"Resource.ec",
"Surface.ec",
{
"FileName" : "fontManagement.ec",
"Configurations" : [
{
"Name" : "Vanilla",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"FileName" : "fontRendering.ec",
"Configurations" : [
{
"Name" : "WSMS",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Vanilla",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"FileName" : "imgDistMap.ec",
"Options" : {
"ExcludeFromBuild" : false
},
"Configurations" : [
{
"Name" : "Vanilla",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "MinEmscripten",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
}
],
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Folder" : "gui",
"Files" : [
{
"Folder" : "controls",
"Files" : [
"Button.ec",
"CalendarControl.ec",
"DataBox.ec",
"DropBox.ec",
"EditBox.ec",
"Label.ec",
"ListBox.ec",
"Menu.ec",
"Picture.ec",
"ProgressBar.ec",
"ScrollBar.ec",
"StatusBar.ec",
{
"FileName" : "TabControl.ec",
"Configurations" : [
{
"Name" : "Vanilla",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"FileName" : "PaneSplitter.ec",
"Configurations" : [
{
"Name" : "Vanilla",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
"Stacker.ec",
"PathBox.ec",
"ToolTip.ec",
"SelectorBar.ec"
]
},
{
"Folder" : "dialogs",
"Files" : [
"ColorPicker.ec",
"FileDialog.ec",
"FindDialog.ec",
"GoToDialog.ec",
"MessageBox.ec",
"ReplaceDialog.ec",
"WindowList.ec"
]
},
{
"Folder" : "drivers",
"Files" : [
{
"Folder" : "cocoa",
"Files" : [
"CocoaDispatch.ec",
"CocoaEcereBridge.h",
"CocoaEcereBridge.m",
"CocoaInterface.ec",
"EcereView.h",
"EcereView.m"
],
"Platforms" : [
{
"Name" : "apple",
"Options" : {
"ExcludeFromBuild" : false
}
}
],
"Configurations" : [
{
"Name" : "Bootstrap",
"Platforms" : [
{
"Name" : "apple",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Vanilla",
"Platforms" : [
{
"Name" : "apple",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Debug",
"Platforms" : [
{
"Name" : "apple",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Installer",
"Platforms" : [
{
"Name" : "apple",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
}
]
},
{
"FileName" : "NCursesInterface.ec",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "apple",
"Options" : {
"ExcludeFromBuild" : false
}
}
],
"Configurations" : [
{
"Name" : "Vanilla",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Bootstrap",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "apple",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Android",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Lumin",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Emscripten",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "MinEmscripten",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
}
]
},
{
"FileName" : "Win32Interface.ec",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : false
}
}
],
"Configurations" : [
{
"Name" : "PACS",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Bootstrap",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
}
]
},
{
"FileName" : "Win32ConsoleInterface.ec",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : false
}
}
],
"Configurations" : [
{
"Name" : "Vanilla",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "WSMS",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Bootstrap",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Installer",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "StaticGLES",
"Platforms" : [
{
"Name" : "win32",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
}
]
},
{
"FileName" : "XInterface.ec",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "apple",
"Options" : {
"ExcludeFromBuild" : false
}
}
],
"Configurations" : [
{
"Name" : "Bootstrap",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "apple",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Android",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Lumin",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "Emscripten",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Name" : "MinEmscripten",
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
}
]
},
{
"FileName" : "AndroidInterface.ec",
"Configurations" : [
{
"Name" : "Android",
"Options" : {
"ExcludeFromBuild" : false
}
}
]
},
{
"FileName" : "EmscriptenInterface.ec",
"Configurations" : [
{
"Name" : "Emscripten",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "MinEmscripten",
"Options" : {
"ExcludeFromBuild" : false
}
}
]
},
{
"FileName" : "LuminInterface.ec",
"Configurations" : [
{
"Name" : "Lumin",
"Options" : {
"ExcludeFromBuild" : false
}
}
]
},
"test_html5.c"
],
"Options" : {
"ExcludeFromBuild" : true
},
"Configurations" : [
{
"Name" : "PACS",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Folder" : "skins",
"Files" : [
{
"FileName" : "TVisionSkin.ec",
"Configurations" : [
{
"Name" : "PACS",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Vanilla",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Installer",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "MinEmscripten",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
"WindowsSkin.ec"
]
},
"Anchor.ec",
"ClipBoard.ec",
"Cursor.ec",
{
"FileName" : "Desktop3D.ec",
"Configurations" : [
{
"Name" : "PACS",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Vanilla",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "WSMS",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Installer",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"FileName" : "FormDesigner.ec",
"Configurations" : [
{
"Name" : "PACS",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Emscripten",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
"GuiApplication.ec",
"Interface.ec",
"Key.ec",
"Skin.ec",
"Timer.ec",
"typeEdit.ec",
"Window.ec"
],
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Folder" : "net",
"Files" : [
{
"FileName" : "dcom.ec",
"Configurations" : [
{
"Name" : "PACS",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
"HTTPFile.ec",
"network.ec",
{
"FileName" : "NetworkClientFile.ec",
"Configurations" : [
{
"Name" : "PACS",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
"Service.ec",
"Socket.ec",
{
"FileName" : "SSLSocket.ec",
"Configurations" : [
{
"Name" : "WSMS",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "PACS",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Android",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Lumin",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Installer",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
}
],
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Vanilla",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Installer",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "MinEmscripten",
"Options" : {
"ExcludeFromBuild" : true
}
},
{
"Name" : "Emscripten",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Folder" : "com",
"Files" : [
{
"Folder" : "containers",
"Files" : [
"Array.ec",
"AVLTree.ec",
"BuiltInContainer.ec",
"Container.ec",
"CustomAVLTree.ec",
"LinkList.ec",
"List.ec",
"Map.ec",
{
"FileName" : "HashMap.ec",
"Options" : {
"IncludeDirs" : [
"src/gfx/newFonts/cc"
]
}
},
{
"FileName" : "HashTable.ec",
"Options" : {
"IncludeDirs" : [
"src/gfx/newFonts/cc"
]
}
}
]
},
{
"FileName" : "BinaryTree.ec",
"Configurations" : [
{
"Name" : "MemoryGuard",
"Options" : {
"MemoryGuard" : false
}
},
{
"Name" : "MemoryGuardRelease",
"Options" : {
"MemoryGuard" : false
}
}
]
},
{
"FileName" : "BTNode.ec",
"Configurations" : [
{
"Name" : "MemoryGuard",
"Options" : {
"MemoryGuard" : false
}
},
{
"Name" : "MemoryGuardRelease",
"Options" : {
"MemoryGuard" : false
}
}
]
},
"dataTypes.ec",
{
"FileName" : "instance.ec",
"Configurations" : [
{
"Name" : "MemoryGuard",
"Options" : {
"MemoryGuard" : false
}
},
{
"Name" : "MemoryGuardRelease",
"Options" : {
"MemoryGuard" : false
}
}
]
},
"String.ec",
"OldList.ec",
{
"FileName" : "instance.c",
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
}
],
"Options" : {
"PreprocessorDefinitions" : [
"ECERE_COM_MODULE"
]
}
}
]
}
],
"ResourcesPath" : "res",
"Resources" : [
{
"Folder" : "actions",
"Files" : [
"editFind.png",
"folderNew.png",
"goDown.png",
"goHome.png",
"goNext.png",
"goPrevious.png",
"goUp.png",
"listAdd.png",
"listRemove.png",
"viewRefresh.png",
"windowNew.png",
"clean.png",
"docSave.png",
"docNew.png"
],
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Folder" : "constructs",
"Files" : [
"class.png",
"data.png",
"dataPrivate.png",
"dataType.png",
"enum.png",
"enumValue.png",
"event.png",
"library.png",
"method.png",
"methodPrivate.png",
"namespace.png",
"property.png",
"propertyPrivate.png"
],
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Folder" : "controls",
"Files" : [
"button.png",
"calendar.png",
"checkBox.png",
"dataBox.png",
"dropBox.png",
"editBox.png",
"groupBox.png",
"label.png",
"listBox.png",
"menu.png",
"optionBox.png",
"progressBar.png",
"scrollBarHorizontal.png",
"scrollBarVertical.png",
"statusBar.png"
],
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Folder" : "cursors",
"Files" : [
"arrow.png",
"cross.png",
"iBeam.png",
"move.png",
"sizeEastWest.png",
"sizeNortEastSouthWest.png",
"sizeNorthSouth.png",
"sizeNortWestSouthEast.png"
],
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Folder" : "devices",
"Files" : [
"computer.png",
"driveHardDisk.png",
"driveRemovableMedia.png",
"mediaFloppy.png",
"mediaOptical.png"
],
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Folder" : "elements",
"Files" : [
"areaClose.png",
"areaMaximize.png",
"areaMinimize.png",
"areaRestore.png",
"arrowDown.png",
"arrowLeft.png",
"arrowRight.png",
"arrowUp.png",
"checkBoxChecked.png",
"checkBoxDisabled.png",
"checkBoxDisabledChecked.png",
"checkBox.png",
"optionBoxDisabled.png",
"optionBoxDisabledSelected.png",
"optionBoxDown.png",
"optionBoxSelectedDown.png",
"optionBoxSelectedUp.png",
"optionBoxUp.png",
"orderAscending.png",
"orderCategorized.png",
"orderDescending.png"
],
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Folder" : "emblems",
"Files" : [
"unreadable.png"
],
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Folder" : "mimeTypes",
"Files" : [
"file.png",
"image.png",
"package.png",
"packageOpticalDisc.png",
"packageSoftware.png",
"text.png",
"textCHeader.png",
"textCSource.png",
"textC++Header.png",
"textC++Source.png",
"textEcereHeader.png",
"textEcereProject.png",
"textEcereSource.png",
"textEcereWorkspace.png",
"textHyperTextMarkup.png",
"brokenFile.png"
],
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Folder" : "places",
"Files" : [
"driveRemote.png",
"folder.png",
"folderRemote.png",
"networkServer.png",
"networkWorkgroup.png",
"brokenFolder.png"
],
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Folder" : "status",
"Files" : [
"audioVolumeHigh.png",
"folderOpen.png"
],
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Folder" : "unicode",
"Files" : [
"derivedGeneralCategoryStripped.txt"
],
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Folder" : "locale",
"Files" : [
"locale/es.mo",
"locale/hu.mo",
"locale/mr.mo",
"locale/nl.mo",
"locale/pt_BR.mo",
"locale/ru.mo",
"locale/zh_CN.mo"
],
"Configurations" : [
{
"Name" : "Bootstrap",
"Options" : {
"ExcludeFromBuild" : true
}
}
]
},
{
"Folder" : "shaders",
"Files" : [
"src/gfx/drivers/gl3/default.frag",
"src/gfx/drivers/gl3/default.vert"
]
},
{
"FileName" : "res/fonts/tahomabd.ttf",
"Options" : {
"ExcludeFromBuild" : true
},
"Configurations" : [
{
"Name" : "Android",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Lumin",
"Options" : {
"ExcludeFromBuild" : false
}
}
]
},
{
"FileName" : "res/fonts/tahoma.ttf",
"Options" : {
"ExcludeFromBuild" : true
},
"Configurations" : [
{
"Name" : "Android",
"Options" : {
"ExcludeFromBuild" : false
}
},
{
"Name" : "Lumin",
"Options" : {
"ExcludeFromBuild" : false
}
}
]
}
]
}
| Ecere Projects | 2 | redj/ecere-sdk | ecere/ecere.epj | [
"BSD-3-Clause"
] |
insert into virtual_only (id) values (30), (40);
| SQL | 4 | suryatmodulus/tidb | br/tests/lightning_generated_columns/data/gencol.virtual_only.0.sql | [
"Apache-2.0",
"BSD-3-Clause"
] |
IDENTIFICATION DIVISION.
PROGRAM-ID. prog.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 X-P1 PIC 9(1) VALUE 1.
01 X-P2 PIC 9(2) VALUE 12.
01 X-P3 PIC 9(3) VALUE 123.
01 X-P4 PIC 9(4) VALUE 1234.
01 X-P5 PIC 9(5) VALUE 12345.
01 X-P6 PIC 9(6) VALUE 123456.
01 X-P7 PIC 9(7) VALUE 1234567.
01 X-P8 PIC 9(8) VALUE 12345678.
01 X-P9 PIC 9(9) VALUE 123456789.
01 X-P10 PIC 9(10) VALUE 1234567890.
01 X-P11 PIC 9(11) VALUE 12345678901.
01 X-P12 PIC 9(12) VALUE 123456789012.
01 X-P13 PIC 9(13) VALUE 1234567890123.
01 X-P14 PIC 9(14) VALUE 12345678901234.
01 X-P15 PIC 9(15) VALUE 123456789012345.
01 X-P16 PIC 9(16) VALUE 1234567890123456.
01 X-P17 PIC 9(17) VALUE 12345678901234567.
01 X-P18 PIC 9(18) VALUE 123456789012345678.
PROCEDURE DIVISION.
DISPLAY X-P1
END-DISPLAY.
DISPLAY X-P2
END-DISPLAY.
DISPLAY X-P3
END-DISPLAY.
DISPLAY X-P4
END-DISPLAY.
DISPLAY X-P5
END-DISPLAY.
DISPLAY X-P6
END-DISPLAY.
DISPLAY X-P7
END-DISPLAY.
DISPLAY X-P8
END-DISPLAY.
DISPLAY X-P9
END-DISPLAY.
DISPLAY X-P10
END-DISPLAY.
DISPLAY X-P11
END-DISPLAY.
DISPLAY X-P12
END-DISPLAY.
DISPLAY X-P13
END-DISPLAY.
DISPLAY X-P14
END-DISPLAY.
DISPLAY X-P15
END-DISPLAY.
DISPLAY X-P16
END-DISPLAY.
DISPLAY X-P17
END-DISPLAY.
DISPLAY X-P18
END-DISPLAY.
STOP RUN.
| COBOL | 3 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_cobol_tests/display_reals.cob | [
"BSD-3-Clause"
] |
import ../[unistd, FileDescriptor, Pipe]
version(unix || apple) {
/**
* Unix implementation of pipes.
*/
PipeUnix: class extends Pipe {
readFD, writeFD: FileDescriptor
init: func ~withFDs (=readFD, =writeFD) {
if(readFD == -1 && writeFD == -1) {
init()
return
}
if(readFD == -1) {
fds := [-1] as Int*
pipe(fds)
this readFD = fds[0]
if (pipe(fds) < 0) {
// TODO: add detailed error message
Exception new(This, "Couldn't create pipe") throw()
}
}
if(writeFD == -1) {
fds := [-1] as Int*
pipe(fds)
this writeFD = fds[0]
if (pipe(fds) < 0) {
// TODO: add detailed error message
Exception new(This, "Couldn't create pipe") throw()
}
}
}
init: func ~twos {
fds := [-1, -1] as Int*
/* Try to open a new pipe */
if (pipe(fds) < 0) {
// TODO: add detailed error message
Exception new(This, "Couldn't create pipes") throw()
}
readFD = fds[0]
writeFD = fds[1]
}
read: func ~cstring (buf: CString, len: Int) -> Int {
howmuch := readFD read(buf, len)
if (howmuch <= 0) {
if (errno == EAGAIN) {
return 0
}
eof = true
return -1
}
howmuch
}
/** write 'len' bytes of 'data' to the pipe */
write: func(data: Pointer, len: Int) -> Int {
return writeFD write(data, len)
}
/**
* close the pipe, either in reading or writing
* @param arg 'r' = close in reading, 'w' = close in writing
*/
close: func (end: Char) -> Int {
fd := _getFD(end)
if (fd == 0) return 0
fd close()
}
close: func ~both {
readFD close()
writeFD close()
}
setNonBlocking: func (end: Char) {
fd := _getFD(end)
if (fd == 0) return
fd setNonBlocking()
}
setBlocking: func (end: Char) {
fd := _getFD(end)
if (fd == 0) return
fd setBlocking()
}
// utility functions
_getFD: func (end: Char) -> FileDescriptor {
match end {
case 'r' => readFD
case 'w' => writeFD
case => 0 as FileDescriptor
}
}
}
/* C interface */
include fcntl
include sys/stat
include sys/types
EAGAIN: extern Int
}
| ooc | 5 | fredrikbryntesson/launchtest | sdk/os/native/PipeUnix.ooc | [
"MIT"
] |
"""
Some correct syntax for variable annotation here.
More examples are in test_grammar and test_parser.
"""
from typing import no_type_check, ClassVar
i: int = 1
j: int
x: float = i/10
def f():
class C: ...
return C()
f().new_attr: object = object()
class C:
def __init__(self, x: int) -> None:
self.x = x
c = C(5)
c.new_attr: int = 10
__annotations__ = {}
@no_type_check
class NTC:
def meth(self, param: complex) -> None:
...
class CV:
var: ClassVar['CV']
CV.var = CV()
| Python | 4 | shawwn/cpython | Lib/test/ann_module2.py | [
"0BSD"
] |
export default function userIdHandler(req, res) {
res.json(req.params)
}
| JavaScript | 4 | waltercruz/gatsby | integration-tests/functions/src/api/users/[userId]/[super].js | [
"MIT"
] |
[[io.webservices]]
== Web Services
Spring Boot provides Web Services auto-configuration so that all you must do is define your `Endpoints`.
The {spring-webservices-docs}[Spring Web Services features] can be easily accessed with the `spring-boot-starter-webservices` module.
`SimpleWsdl11Definition` and `SimpleXsdSchema` beans can be automatically created for your WSDLs and XSDs respectively.
To do so, configure their location, as shown in the following example:
[source,yaml,indent=0,subs="verbatim",configprops,configblocks]
----
spring:
webservices:
wsdl-locations: "classpath:/wsdl"
----
[[io.webservices.template]]
=== Calling Web Services with WebServiceTemplate
If you need to call remote Web services from your application, you can use the {spring-webservices-docs}#client-web-service-template[`WebServiceTemplate`] class.
Since `WebServiceTemplate` instances often need to be customized before being used, Spring Boot does not provide any single auto-configured `WebServiceTemplate` bean.
It does, however, auto-configure a `WebServiceTemplateBuilder`, which can be used to create `WebServiceTemplate` instances when needed.
The following code shows a typical example:
[source,java,indent=0,subs="verbatim"]
----
include::{docs-java}/io/webservices/template/MyService.java[]
----
By default, `WebServiceTemplateBuilder` detects a suitable HTTP-based `WebServiceMessageSender` using the available HTTP client libraries on the classpath.
You can also customize read and connection timeouts as follows:
[source,java,indent=0,subs="verbatim"]
----
include::{docs-java}/io/webservices/template/MyWebServiceTemplateConfiguration.java[]
----
| AsciiDoc | 3 | techAi007/spring-boot | spring-boot-project/spring-boot-docs/src/docs/asciidoc/io/webservices.adoc | [
"Apache-2.0"
] |
#N canvas 614 110 522 601 12;
#X text 259 526 updated for Pd version 0.26;
#X obj 87 163 select 1 2;
#X floatatom 87 135 0 0 0 0 - - -;
#X obj 87 240 print select-1;
#X obj 120 215 print select-2;
#X obj 154 190 print select-3;
#X floatatom 267 138 0 0 0 0 - - -;
#X obj 307 176 pack;
#X obj 307 203 route 1 2;
#X obj 307 147 t b f;
#X floatatom 307 123 0 0 0 0 - - -;
#X obj 367 231 unpack;
#X floatatom 307 231 0 0 0 0 - - -;
#X floatatom 337 231 0 0 0 0 - - -;
#X floatatom 367 256 0 0 0 0 - - -;
#X floatatom 406 256 0 0 0 0 - - -;
#X text 37 20 Pd provides at least four objects for doing conditional
computations. The "select" object tests its input against its argument(s)
\, and outputs "bang" when they match. The "route" object works similarly
but also copies data. In other words \, "route" takes a list \, tests
its first element \, and conditionally passes on the rest of the list.
;
#X text 44 287 You also get "spigot" which turns a flow of messages
on and off (like the Gate object in Max \, but with the inputs reversed):
, f 54;
#X floatatom 185 347 0 0 0 0 - - -;
#X obj 185 374 spigot;
#X floatatom 224 347 0 0 0 0 - - -;
#X floatatom 185 401 0 0 0 0 - - -;
#X text 252 377 if open \, messages coming in at left are sent to output.
, f 28;
#X text 56 438 And finally \, "moses" sends numbers to the left if
they're less than the argument \, right otherwise:, f 49;
#X floatatom 119 493 0 0 0 0 - - -;
#X floatatom 119 549 0 0 0 0 - - -;
#X obj 119 521 moses 5;
#X floatatom 165 549 0 0 0 0 - - -;
#X text 254 348 <= nonzero to open;
#X connect 1 0 3 0;
#X connect 1 1 4 0;
#X connect 1 2 5 0;
#X connect 2 0 1 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 8 0 12 0;
#X connect 8 1 13 0;
#X connect 8 2 11 0;
#X connect 9 0 7 0;
#X connect 9 1 7 1;
#X connect 10 0 9 0;
#X connect 11 0 14 0;
#X connect 11 1 15 0;
#X connect 18 0 19 0;
#X connect 19 0 21 0;
#X connect 20 0 19 1;
#X connect 24 0 26 0;
#X connect 26 0 25 0;
#X connect 26 1 27 0;
| Pure Data | 4 | mcclure/pure-data | doc/2.control.examples/18.conditional.pd | [
"TCL"
] |
# Task: Align columns
#
# Uses `Text::justify` from the standard library.
module align_columns
fun aligner(text: String, left: Float)
do
# Each row is a sequence of fields
var rows = new Array[Array[String]]
for line in text.split('\n') do
rows.add line.split("$")
end
# Compute the final length of each column
var lengths = new Array[Int]
for fields in rows do
var i = 0
for field in fields do
var fl = field.length
if lengths.length <= i or fl > lengths[i] then
lengths[i] = fl
end
i += 1
end
end
# Process each line and align each field
for fields in rows do
var line = new Array[String]
var i = 0
for field in fields do
line.add field.justify(lengths[i], left)
i += 1
end
print line.join(" ")
end
end
var text = """
Given$a$text$file$of$many$lines,$where$fields$within$a$line$
are$delineated$by$a$single$'dollar'$character,$write$a$program
that$aligns$each$column$of$fields$by$ensuring$that$words$in$each$
column$are$separated$by$at$least$one$space.
Further,$allow$for$each$word$in$a$column$to$be$either$left$
justified,$right$justified,$or$center$justified$within$its$column."""
aligner(text, 0.0)
aligner(text, 1.0)
aligner(text, 0.5)
| Nit | 4 | LaudateCorpus1/RosettaCodeData | Task/Align-columns/Nit/align-columns.nit | [
"Info-ZIP"
] |
#ifdef ROSE_USE_NEW_EDG_INTERFACE
// DQ (2/17/2011): Remove the initializaion since EDG reports it as an error with EDG 4.0.
shared int array [2*THREADS];
#else
shared int array [2*THREADS] = {0,1};
#endif
| Unified Parallel C | 3 | maurizioabba/rose | tests/CompileTests/UPC_tests/sharedArrayInit.upc | [
"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.
*--------------------------------------------------------------------------------------------*/
import * as vscode from 'vscode';
import { GitHubAuthenticationProvider, AuthProviderType } from './github';
export function activate(context: vscode.ExtensionContext) {
context.subscriptions.push(new GitHubAuthenticationProvider(context, AuthProviderType.github));
let githubEnterpriseAuthProvider: GitHubAuthenticationProvider | undefined;
if (vscode.workspace.getConfiguration().get<string>('github-enterprise.uri')) {
githubEnterpriseAuthProvider = new GitHubAuthenticationProvider(context, AuthProviderType.githubEnterprise);
context.subscriptions.push(githubEnterpriseAuthProvider);
}
context.subscriptions.push(vscode.workspace.onDidChangeConfiguration(async e => {
if (e.affectsConfiguration('github-enterprise.uri')) {
if (!githubEnterpriseAuthProvider && vscode.workspace.getConfiguration().get<string>('github-enterprise.uri')) {
githubEnterpriseAuthProvider = new GitHubAuthenticationProvider(context, AuthProviderType.githubEnterprise);
context.subscriptions.push(githubEnterpriseAuthProvider);
}
}
}));
}
| TypeScript | 4 | sbj42/vscode | extensions/github-authentication/src/extension.ts | [
"MIT"
] |
class Rubinius VariableScope {
forwards_unary_ruby_methods
def receiver {
@self
}
def receiver: recv {
@self = recv
}
}
class Rubinius ConstantScope {
forwards_unary_ruby_methods
}
| Fancy | 2 | bakkdoor/fancy | lib/rbx/scopes.fy | [
"BSD-3-Clause"
] |
[
{
"@id": "http://example.com/Subj1",
"http://example.com/prop": [
{
"@value": "true",
"@type": "http://www.w3.org/2001/XMLSchema#boolean"
},
{
"@value": "false",
"@type": "http://www.w3.org/2001/XMLSchema#boolean"
},
{
"@value": "1",
"@type": "http://www.w3.org/2001/XMLSchema#integer"
},
{
"@value": "1.1",
"@type": "http://www.w3.org/2001/XMLSchema#decimal"
},
{
"@value": "1.1E-1",
"@type": "http://www.w3.org/2001/XMLSchema#double"
}
]
}
]
| JSONLD | 3 | fsteeg/json-ld-api | tests/fromRdf/0002-out.jsonld | [
"W3C"
] |
$ORIGIN sub.example.com.
$TTL 3600
sub.example.com. IN SOA ns1.example.com. admin.example.com. ( 2020091025 7200 3600 1209600 3600 )
sub.example.com. IN NS ns1
sub.example.com. IN NS ns2
ns1 IN A 192.0.2.2
ns2 IN A 192.0.2.3
| DIGITAL Command Language | 3 | 4n3i5v74/certbot | certbot-ci/certbot_integration_tests/assets/bind-config/zones/db.sub.example.com | [
"Apache-2.0"
] |
FORMS +=
HEADERS += \
$$PWD/keepratiowidget.h \
$$PWD/magneticwidget.h
SOURCES += \
$$PWD/keepratiowidget.cpp \
$$PWD/magneticwidget.cpp
| QMake | 2 | gejiyu/QtScrcpy | QtScrcpy/uibase/uibase.pri | [
"Apache-2.0"
] |
var t: int;
const c = 1:t;
compilerWarning("c: ", c.type:string, 0);
| Chapel | 0 | jhh67/chapel | test/expressions/vass/cast-to-non-type-1.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
// Copyright 2010-2014 RethinkDB, all rights reserved.
#include "clustering/administration/servers/server_config.hpp"
#include "clustering/administration/datum_adapter.hpp"
#include "clustering/administration/servers/config_client.hpp"
#include "concurrency/cross_thread_signal.hpp"
bool convert_server_config_from_datum(
ql::datum_t datum,
server_id_t *server_id_out,
server_config_t *server_config_out,
admin_err_t *error_out) {
converter_from_datum_object_t converter;
if (!converter.init(datum, error_out)) {
return false;
}
ql::datum_t name_datum;
if (!converter.get("name", &name_datum, error_out)) {
return false;
}
if (!convert_name_from_datum(name_datum, "server name",
&server_config_out->name, error_out)) {
error_out->msg = "In `name`: " + error_out->msg;
return false;
}
ql::datum_t id_datum;
if (!converter.get("id", &id_datum, error_out)) {
return false;
}
if (!convert_server_id_from_datum(id_datum, server_id_out, error_out)) {
error_out->msg = "In `id`: " + error_out->msg;
return false;
}
ql::datum_t tags_datum;
if (!converter.get("tags", &tags_datum, error_out)) {
return false;
}
if (!convert_set_from_datum<name_string_t>(
[](ql::datum_t datum2, name_string_t *val2_out, admin_err_t *error2_out) {
return convert_name_from_datum(
datum2, "server tag", val2_out, error2_out);
},
true, /* don't complain if a tag appears twice */
tags_datum, &server_config_out->tags, error_out)) {
error_out->msg = "In `tags`: " + error_out->msg;
return false;
}
ql::datum_t cache_size_datum;
if (!converter.get("cache_size_mb", &cache_size_datum, error_out)) {
return false;
}
if (cache_size_datum == ql::datum_t("auto")) {
server_config_out->cache_size_bytes = optional<uint64_t>();
} else if (cache_size_datum.get_type() == ql::datum_t::R_NUM) {
double cache_size_mb = cache_size_datum.as_num();
if (cache_size_mb * MEGABYTE >
static_cast<double>(std::numeric_limits<int64_t>::max())) {
*error_out = admin_err_t{
"In `cache_size_mb`: Value is too big.",
query_state_t::FAILED};
return false;
}
if (cache_size_mb < 0) {
*error_out = admin_err_t{
"In `cache_size_mb`: Cache size cannot be negative.",
query_state_t::FAILED};
return false;
}
server_config_out->cache_size_bytes =
optional<uint64_t>(cache_size_mb * MEGABYTE);
} else {
*error_out = admin_err_t{
"In `cache_size_mb`: Expected a number or 'auto', got "
+ cache_size_datum.print(),
query_state_t::FAILED};
return false;
}
if (!converter.check_no_extra_keys(error_out)) {
return false;
}
return true;
}
server_config_artificial_table_backend_t::server_config_artificial_table_backend_t(
rdb_context_t *rdb_context,
lifetime_t<name_resolver_t const &> name_resolver,
watchable_map_t<peer_id_t, cluster_directory_metadata_t> *_directory,
server_config_client_t *_server_config_client)
: common_server_artificial_table_backend_t(
name_string_t::guarantee_valid("server_config"),
rdb_context,
name_resolver,
_server_config_client,
_directory) {
}
server_config_artificial_table_backend_t::~server_config_artificial_table_backend_t() {
begin_changefeed_destruction();
}
bool server_config_artificial_table_backend_t::format_row(
UNUSED auth::user_context_t const &user_context,
server_id_t const & server_id,
UNUSED peer_id_t const & peer_id,
cluster_directory_metadata_t const & metadata,
UNUSED signal_t *interruptor_on_home,
ql::datum_t *row_out,
UNUSED admin_err_t *error_out) {
ql::datum_object_builder_t builder;
builder.overwrite("name",
convert_name_to_datum(metadata.server_config.config.name));
builder.overwrite("id", convert_uuid_to_datum(server_id.get_uuid()));
builder.overwrite("tags", convert_set_to_datum<name_string_t>(
&convert_name_to_datum, metadata.server_config.config.tags));
optional<uint64_t> cache_size_bytes =
metadata.server_config.config.cache_size_bytes;
if (static_cast<bool>(cache_size_bytes)) {
builder.overwrite("cache_size_mb",
ql::datum_t(static_cast<double>(*cache_size_bytes) / MEGABYTE));
} else {
builder.overwrite("cache_size_mb", ql::datum_t("auto"));
}
*row_out = std::move(builder).to_datum();
return true;
}
bool server_config_artificial_table_backend_t::write_row(
UNUSED auth::user_context_t const &user_context,
ql::datum_t primary_key,
UNUSED bool pkey_was_autogenerated,
ql::datum_t *new_value_inout,
signal_t *interruptor_on_caller,
admin_err_t *error_out) {
cross_thread_signal_t interruptor_on_home(interruptor_on_caller, home_thread());
on_thread_t thread_switcher(home_thread());
new_mutex_in_line_t write_mutex_in_line(&write_mutex);
wait_interruptible(write_mutex_in_line.acq_signal(), &interruptor_on_home);
server_id_t server_id;
peer_id_t peer_id;
cluster_directory_metadata_t metadata;
if (!lookup(primary_key, &server_id, &peer_id, &metadata)) {
if (new_value_inout->has()) {
*error_out = admin_err_t{"It's illegal to insert new rows into the "
"`rethinkdb.server_config` system table.",
query_state_t::FAILED};
return false;
} else {
/* The user is re-deleting an already-absent row. OK. */
return true;
}
}
if (!new_value_inout->has()) {
*error_out = admin_err_t{
"It's illegal to delete rows from the `rethinkdb.server_config` "
"system table.",
query_state_t::FAILED};
return false;
}
server_id_t new_server_id;
server_config_t new_server_config;
if (!convert_server_config_from_datum(*new_value_inout, &new_server_id,
&new_server_config, error_out)) {
error_out->msg = "The row you're trying to put into `rethinkdb.server_config` "
"has the wrong format. " + error_out->msg;
return false;
}
guarantee(server_id == new_server_id, "artificial_table_t should ensure that "
"primary key is unchanged.");
if (!server_config_client->set_config(server_id, metadata.server_config.config.name,
new_server_config, &interruptor_on_home, error_out)) {
return false;
}
return true;
}
| C++ | 4 | zadcha/rethinkdb | src/clustering/administration/servers/server_config.cc | [
"Apache-2.0"
] |
using Uno;
using Uno.Collections;
using Uno.Compiler.ExportTargetInterop;
namespace Fuse.Scripting.Duktape
{
extern(USE_DUKTAPE) class Array : Fuse.Scripting.Array
{
internal readonly IntPtr _handle;
readonly Context _ctx;
readonly int _stashKey;
public Array(Context ctx, IntPtr handle)
{
_ctx = ctx;
_handle = handle;
_stashKey = _ctx.Stash(_handle);
}
~Array()
{
_ctx._unstash.Enqueue(_stashKey);
}
public override int Length
{
get
{
var index = _ctx.DukContext.push_heapptr(_handle);
var l = _ctx.DukContext.get_length(index);
_ctx.DukContext.pop();
return (int)l;
}
}
public override object this[int index]
{
get
{
var objIndex = _ctx.DukContext.push_heapptr(_handle);
_ctx.DukContext.get_prop_index(objIndex, index);
var res = _ctx.IndexToObject(-1);
_ctx.DukContext.pop_2();
return res;
}
set
{
var objIndex = _ctx.DukContext.push_heapptr(_handle);
_ctx.Push(value);
_ctx.DukContext.put_prop_index(objIndex, index);
_ctx.DukContext.pop();
}
}
public override bool Equals(Fuse.Scripting.Array a)
{
var ja = a as Array;
return ja != null && _ctx == ja._ctx && _handle == ja._handle;
}
public override int GetHashCode()
{
return _handle.GetHashCode();
}
}
}
| Uno | 4 | helilabs/fuselibs | Source/Fuse.Scripting.JavaScript/Duktape/Array.uno | [
"MIT"
] |
domain: "[Ny] -> { S1[i0, i1, 2i0, -2i0 + 2i1, i4] : i0 >= 0 and i0 <= 1 and i1 >= 1 + i0 and 2i1 <= -1 + Ny + 2i0 and i4 >= 1 and i4 <= 2; S2[i0, i1, 2i0, -1 - 2i0 + 2i1, i4] : i0 >= 0 and i0 <= 1 and i1 >= 1 + i0 and 2i1 <= Ny + 2i0 and i4 >= 1 and i4 <= 2 }"
child:
context: "[Ny] -> { [] }"
child:
schedule: "[Ny] -> [{ S1[i0, i1, i2, i3, i4] -> [(i0 + i1)]; S2[i0, i1, i2, i3, i4] -> [(i0 + i1)] }, { S1[i0, i1, i2, i3, i4] -> [(i1)]; S2[i0, i1, i2, i3, i4] -> [(i1)] }, { S1[i0, i1, i2, i3, i4] -> [(i4)]; S2[i0, i1, i2, i3, i4] -> [(i4)] }, { S1[i0, i1, i2, i3, i4] -> [(i2)]; S2[i0, i1, i2, i3, i4] -> [(i2)] }, { S1[i0, i1, i2, i3, i4] -> [(i3)]; S2[i0, i1, i2, i3, i4] -> [(1 + i3)] }, { S1[i0, i1, i2, i3, i4] -> [(i4)]; S2[i0, i1, i2, i3, i4] -> [(1 + i4)] }]"
options: "[Ny] -> { separate[x] : x >= 2 }"
| Smalltalk | 3 | chelini/isl-haystack | test_inputs/codegen/cloog/pouchet.st | [
"MIT"
] |
// RUN: %target-typecheck-verify-swift -parse-as-library
//===--- Recovery for extra braces at top level.
//===--- Keep this test the first one in the file.
// Check that we handle multiple consecutive right braces.
} // expected-error{{extraneous '}' at top level}} {{1-3=}}
} // expected-error{{extraneous '}' at top level}} {{1-3=}}
func foo() {}
// Check that we handle multiple consecutive right braces.
} // expected-error{{extraneous '}' at top level}} {{1-3=}}
} // expected-error{{extraneous '}' at top level}} {{1-3=}}
func bar() {}
//===--- Recovery for extra braces at top level.
//===--- Keep this test the last one in the file.
// Check that we handle multiple consecutive right braces.
} // expected-error{{extraneous '}' at top level}} {{1-3=}}
} // expected-error{{extraneous '}' at top level}} {{1-3=}}
| Swift | 4 | lwhsu/swift | test/Parse/recovery_library.swift | [
"Apache-2.0"
] |
#define BLEND_WITH_HIGHER_RESOLUTION
#include "msao_blurupsampleCS.hlsl"
| HLSL | 1 | rohankumardubey/WickedEngine | WickedEngine/shaders/msao_blurupsampleCS_blendout.hlsl | [
"MIT"
] |
signature file-shellscript {
file-mime "text/x-shellscript", 250
file-magic /^\x23\x21[^\n]{1,15}bin\/(env[[:space:]]+)?(ba|tc|c|z|fa|ae|k)?sh/
}
signature file-perl {
file-magic /^\x23\x21[^\n]{1,15}bin\/(env[[:space:]]+)?perl/
file-mime "text/x-perl", 60
}
signature file-ruby {
file-magic /^\x23\x21[^\n]{1,15}bin\/(env[[:space:]]+)?ruby/
file-mime "text/x-ruby", 60
}
signature file-python {
file-magic /^\x23\x21[^\n]{1,15}bin\/(env[[:space:]]+)?python/
file-mime "text/x-python", 60
}
signature file-awk {
file-mime "text/x-awk", 60
file-magic /^\x23\x21[^\n]{1,15}bin\/(env[[:space:]]+)?(g|n)?awk/
}
signature file-tcl {
file-mime "text/x-tcl", 60
file-magic /^\x23\x21[^\n]{1,15}bin\/(env[[:space:]]+)?(wish|tcl)/
}
signature file-lua {
file-mime "text/x-lua", 49
file-magic /^\x23\x21[^\n]{1,15}bin\/(env[[:space:]]+)?lua/
}
signature file-javascript {
file-mime "application/javascript", 60
file-magic /^\x23\x21[^\n]{1,15}bin\/(env[[:space:]]+)?node(js)?/
}
signature file-javascript2 {
file-mime "application/javascript", 60
file-magic /^[\x0d\x0a[:blank:]]*<[sS][cC][rR][iI][pP][tT][[:blank:]]+([tT][yY][pP][eE]|[lL][aA][nN][gG][uU][aA][gG][eE])=['"]?([tT][eE][xX][tT]\/)?[jJ][aA][vV][aA][sS][cC][rR][iI][pP][tT]/
}
signature file-javascript3 {
file-mime "application/javascript", 60
# This seems to be a somewhat common idiom in javascript.
file-magic /^[\x0d\x0a[:blank:]]*for \(;;\);/
}
signature file-javascript4 {
file-mime "application/javascript", 60
file-magic /^[\x0d\x0a[:blank:]]*document\.write(ln)?[:blank:]?\(/
}
signature file-javascript5 {
file-mime "application/javascript", 60
file-magic /^\(function\(\)[[:blank:]\n]*\{/
}
signature file-javascript6 {
file-mime "application/javascript", 60
file-magic /^[\x0d\x0a[:blank:]]*<script>[\x0d\x0a[:blank:]]*(var|function) /
}
signature file-php {
file-mime "text/x-php", 60
file-magic /^\x23\x21[^\n]{1,15}bin\/(env[[:space:]]+)?php/
}
signature file-php2 {
file-magic /^.*<\?php/
file-mime "text/x-php", 40
}
signature file-batch1 {
file-mime "text/x-msdos-batch", 110
file-magic /\x40 *[eE][cC][hH][oO] {1,}[oO][fF][fF]/
}
signature file-batch2 {
file-mime "text/x-msdos-batch", 60
file-magic /\x40[rR][eE][mM]/
}
signature file-batch3 {
file-mime "text/x-msdos-batch", 70
file-magic /\x40[sS][eE][tT] {1,}/
}
# M4 macro processor script text
signature file-m4 {
file-mime "text/x-m4", 40
file-magic /^dnl /
}
| Standard ML | 4 | yaplej/bro | scripts/base/frameworks/files/magic/programming.sig | [
"Apache-2.0"
] |
{- Ace {- 4 -} Elm -}
main = lift clock (every second)
clock t = collage 400 400 [ filled lightGrey (ngon 12 110)
, outlined (solid grey) (ngon 12 110)
, hand orange 100 t
, hand charcoal 100 (t/60)
, hand charcoal 60 (t/720) ]
hand clr len time =
let angle = degrees (90 - 6 * inSeconds time)
in traced (solid clr) <| segment (0,0) (len * cos angle, len * sin angle) | Elm | 4 | websharks/ace-builds | demo/kitchen-sink/docs/elm.elm | [
"BSD-3-Clause"
] |
{
"config": {
"abort": {
"already_configured": "Az eszk\u00f6z m\u00e1r konfigur\u00e1lva van",
"already_in_progress": "A be\u00e1ll\u00edt\u00e1si folyamat m\u00e1r el lett kezdve",
"no_devices_found": "Nem tal\u00e1lhat\u00f3 egy\u00e9b eszk\u00f6z"
},
"error": {
"cannot_connect": "Sikertelen csatlakoz\u00e1s"
},
"step": {
"usb_confirm": {
"description": "Ez egy integr\u00e1ci\u00f3 a CX93001 hangmodemmel t\u00f6rt\u00e9n\u0151 vezet\u00e9kes h\u00edv\u00e1sokhoz. Ez k\u00e9pes lek\u00e9rdezni a h\u00edv\u00f3azonos\u00edt\u00f3 inform\u00e1ci\u00f3t a bej\u00f6v\u0151 h\u00edv\u00e1s visszautas\u00edt\u00e1s\u00e1nak lehet\u0151s\u00e9g\u00e9vel."
},
"user": {
"data": {
"name": "Elnevez\u00e9s",
"port": "Port"
},
"description": "Ez egy integr\u00e1ci\u00f3 a CX93001 hangmodemmel t\u00f6rt\u00e9n\u0151 vezet\u00e9kes h\u00edv\u00e1sokhoz. Ez k\u00e9pes lek\u00e9rdezni a h\u00edv\u00f3azonos\u00edt\u00f3 inform\u00e1ci\u00f3t a bej\u00f6v\u0151 h\u00edv\u00e1s visszautas\u00edt\u00e1s\u00e1nak lehet\u0151s\u00e9g\u00e9vel."
}
}
}
} | JSON | 3 | liangleslie/core | homeassistant/components/modem_callerid/translations/hu.json | [
"Apache-2.0"
] |
-----------------------------------------------------------------------
-- stemmer -- Multi-language stemmer with Snowball generator
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
-- All rights reserved.
--
-- 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 conditions and the following disclaimer.
-- 2. Redistributions in binary form must reproduce the above copyright notice,
-- this list of conditions and the following disclaimer in the documentation
-- and/or other materials provided with the distribution.
-- 3. Neither the name of the Snowball project nor the names of its contributors
-- may be used to endorse or promote products derived from this software
-- without specific prior written permission.
--
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-- ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-- ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-----------------------------------------------------------------------
package Stemmer with SPARK_Mode is
pragma Preelaborate;
WORD_MAX_LENGTH : constant := 1024;
type Context_Type is abstract tagged private;
-- Apply the stemming algorithm on the word initialized in the context.
procedure Stem (Context : in out Context_Type;
Result : out Boolean) is abstract;
-- Stem the word and return True if it was reduced.
procedure Stem_Word (Context : in out Context_Type'Class;
Word : in String;
Result : out Boolean) with
Global => null,
Pre => Word'Length < WORD_MAX_LENGTH;
-- Get the stem or the input word unmodified.
function Get_Result (Context : in Context_Type'Class) return String with
Global => null,
Post => Get_Result'Result'Length < WORD_MAX_LENGTH;
private
type Mask_Type is mod 2**32;
-- A 32-bit character value that was read from UTF-8 sequence.
-- A modular value is used because shift and logical arithmetic is necessary.
type Utf8_Type is mod 2**32;
-- Index of the Grouping_Array. The index comes from the 32-bit character value
-- minus a starting offset. We don't expect large tables and we check against
-- a maximum value.
subtype Grouping_Index is Utf8_Type range 0 .. 16384;
type Grouping_Array is array (Grouping_Index range <>) of Boolean with Pack;
subtype Among_Index is Natural range 0 .. 65535;
subtype Among_Start_Index is Among_Index range 1 .. Among_Index'Last;
subtype Operation_Index is Natural range 0 .. 65535;
subtype Result_Index is Integer range -1 .. WORD_MAX_LENGTH - 1;
subtype Char_Index is Result_Index range 0 .. Result_Index'Last;
type Among_Type is record
First : Among_Start_Index;
Last : Among_Index;
Substring_I : Integer;
Result : Integer;
Operation : Operation_Index;
end record;
type Among_Array_Type is array (Natural range <>) of Among_Type;
function Eq_S (Context : in Context_Type'Class;
S : in String) return Char_Index with
Global => null,
Pre => S'Length > 0,
Post => Eq_S'Result = 0 or Eq_S'Result = S'Length;
function Eq_S_Backward (Context : in Context_Type'Class;
S : in String) return Char_Index with
Global => null,
Pre => S'Length > 0,
Post => Eq_S_Backward'Result = 0 or Eq_S_Backward'Result = S'Length;
procedure Find_Among (Context : in out Context_Type'Class;
Amongs : in Among_Array_Type;
Pattern : in String;
Execute : access procedure
(Ctx : in out Context_Type'Class;
Operation : in Operation_Index;
Status : out Boolean);
Result : out Integer) with
Global => null,
Pre => Pattern'Length > 0 and Amongs'Length > 0;
procedure Find_Among_Backward (Context : in out Context_Type'Class;
Amongs : in Among_Array_Type;
Pattern : in String;
Execute : access procedure
(Ctx : in out Context_Type'Class;
Operation : in Operation_Index;
Status : out Boolean);
Result : out Integer) with
Global => null,
Pre => Pattern'Length > 0 and Amongs'Length > 0;
function Skip_Utf8 (Context : in Context_Type'Class) return Result_Index with
Global => null;
function Skip_Utf8 (Context : in Context_Type'Class;
N : in Integer) return Result_Index with
Global => null;
function Skip_Utf8_Backward (Context : in Context_Type'Class) return Result_Index with
Global => null;
function Skip_Utf8_Backward (Context : in Context_Type'Class;
N : in Integer) return Result_Index with
Global => null;
procedure Get_Utf8 (Context : in Context_Type'Class;
Value : out Utf8_Type;
Count : out Natural);
procedure Get_Utf8_Backward (Context : in Context_Type'Class;
Value : out Utf8_Type;
Count : out Natural);
function Length (Context : in Context_Type'Class) return Natural;
function Length_Utf8 (Context : in Context_Type'Class) return Natural;
function Check_Among (Context : in Context_Type'Class;
Pos : in Char_Index;
Shift : in Natural;
Mask : in Mask_Type) return Boolean;
procedure Out_Grouping (Context : in out Context_Type'Class;
S : in Grouping_Array;
Min : in Utf8_Type;
Max : in Utf8_Type;
Repeat : in Boolean;
Result : out Result_Index);
procedure Out_Grouping_Backward (Context : in out Context_Type'Class;
S : in Grouping_Array;
Min : in Utf8_Type;
Max : in Utf8_Type;
Repeat : in Boolean;
Result : out Result_Index);
procedure In_Grouping (Context : in out Context_Type'Class;
S : in Grouping_Array;
Min : in Utf8_Type;
Max : in Utf8_Type;
Repeat : in Boolean;
Result : out Result_Index);
procedure In_Grouping_Backward (Context : in out Context_Type'Class;
S : in Grouping_Array;
Min : in Utf8_Type;
Max : in Utf8_Type;
Repeat : in Boolean;
Result : out Result_Index);
procedure Replace (Context : in out Context_Type'Class;
C_Bra : in Char_Index;
C_Ket : in Char_Index;
S : in String;
Adjustment : out Integer) with
Global => null,
Pre => C_Bra >= Context.Lb and C_Ket >= C_Bra and C_Ket <= Context.L;
procedure Slice_Del (Context : in out Context_Type'Class) with
Global => null,
Pre => Context.Bra >= Context.Lb and Context.Ket >= Context.Bra
and Context.Ket <= Context.L;
procedure Slice_From (Context : in out Context_Type'Class;
Text : in String) with
Global => null,
Pre => Context.Bra >= Context.Lb and Context.Ket >= Context.Bra
and Context.Ket <= Context.L
and Context.L - Context.Lb + Text'Length + Context.Ket - Context.Bra < Context.P'Length;
function Slice_To (Context : in Context_Type'Class) return String;
procedure Insert (Context : in out Context_Type'Class;
C_Bra : in Char_Index;
C_Ket : in Char_Index;
S : in String) with
Global => null,
Pre => C_Bra >= Context.Lb and C_Ket >= C_Bra and C_Ket <= Context.L;
-- The context indexes follow the C paradigm: they start at 0 for the first character.
-- This is necessary because several algorithms rely on this when they compare the
-- cursor position ('C') or setup some markers from the cursor.
type Context_Type is abstract tagged record
C : Char_Index := 0;
L : Char_Index := 0;
Lb : Char_Index := 0;
Bra : Char_Index := 0;
Ket : Char_Index := 0;
P : String (1 .. WORD_MAX_LENGTH);
end record;
end Stemmer;
| Ada | 5 | Klabauterman/snowball | ada/src/stemmer.ads | [
"BSD-3-Clause"
] |
// Test that regionck suggestions in a provided method of a trait
// don't ICE
trait Foo<'a> {
fn foo(&'a self);
fn bar(&self) {
self.foo();
//~^ ERROR cannot infer
}
}
fn main() {}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/issues/issue-17758.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
[attr="-a"] {} | CSS | 0 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/54mhLGCwQMwsuiVkiTzAAQ/input.css | [
"Apache-2.0"
] |
.HocBadges {
padding: 0.125rem 0.25rem;
user-select: none;
}
.Badge {
display: inline-block;
background-color: var(--color-component-badge-background);
color: var(--color-text);
padding: 0.125rem 0.25rem;
line-height: normal;
border-radius: 0.125rem;
margin-right: 0.25rem;
font-family: var(--font-family-monospace);
font-size: var(--font-size-monospace-small);
}
| CSS | 3 | vegYY/react | packages/react-devtools-shared/src/devtools/views/Components/HocBadges.css | [
"MIT"
] |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {Component, EventEmitter, Input, Output} from '@angular/core';
@Component({selector: 'zippy', templateUrl: './zippy.html'})
export class Zippy {
visible: boolean = true;
@Input() title: string = '';
@Output() open: EventEmitter<any> = new EventEmitter();
@Output() close: EventEmitter<any> = new EventEmitter();
toggle() {
this.visible = !this.visible;
if (this.visible) {
this.open.emit(null);
} else {
this.close.emit(null);
}
}
}
| TypeScript | 5 | raghavendramohan/angular | modules/playground/src/zippy_component/app/zippy.ts | [
"MIT"
] |
module audiostreamerscrobbler.factories.PlayerMonitorThreadFactory
import audiostreamerscrobbler.factories.PlayerMonitorFactory
import audiostreamerscrobbler.factories.ScrobblersFactory
import audiostreamerscrobbler.threads.PlayerMonitorThread
function createPlayerMonitorThreadFactory = {
let factory = DynamicObject("PlayerMonitorThreadFactory"):
define("createMonitorThread", |this, player, scrobblerHandler, cbPlayerAlive| {
return createMonitorThread(player, scrobblerHandler, cbPlayerAlive)
})
return factory
}
local function createMonitorThread = |player, scrobblerHandler, cbPlayerAlive| {
let monitorFactory = createPlayerMonitorFactory()
return createPlayerMonitorThread(monitorFactory, scrobblerHandler, player, cbPlayerAlive)
}
| Golo | 4 | vvdleun/audiostreamerscrobbler | src/main/golo/include/factories/PlayerMonitorThreadFactory.golo | [
"MIT"
] |
SYSTIME
NEW PH
SET PH=$PIECE($HOROLOG,",",2)
WRITE "The system time is ",PH\3600,":",PH\60#60,":",PH#60
KILL PH
QUIT
| M | 3 | LaudateCorpus1/RosettaCodeData | Task/System-time/MUMPS/system-time.mumps | [
"Info-ZIP"
] |
[[web.spring-hateoas]]
== Spring HATEOAS
If you develop a RESTful API that makes use of hypermedia, Spring Boot provides auto-configuration for Spring HATEOAS that works well with most applications.
The auto-configuration replaces the need to use `@EnableHypermediaSupport` and registers a number of beans to ease building hypermedia-based applications, including a `LinkDiscoverers` (for client side support) and an `ObjectMapper` configured to correctly marshal responses into the desired representation.
The `ObjectMapper` is customized by setting the various `spring.jackson.*` properties or, if one exists, by a `Jackson2ObjectMapperBuilder` bean.
You can take control of Spring HATEOAS's configuration by using `@EnableHypermediaSupport`.
Note that doing so disables the `ObjectMapper` customization described earlier.
WARNING: `spring-boot-starter-hateoas` is specific to Spring MVC and should not be combined with Spring WebFlux.
In order to use Spring HATEOAS with Spring WebFlux, you can add a direct dependency on `org.springframework.hateoas:spring-hateoas` along with `spring-boot-starter-webflux`.
| AsciiDoc | 3 | techAi007/spring-boot | spring-boot-project/spring-boot-docs/src/docs/asciidoc/web/spring-hateoas.adoc | [
"Apache-2.0"
] |
# Export Ignition environment variables
@[if INSTALLSPACE]@
export IGN_LAUNCH_CONFIG_PATH=@(CMAKE_INSTALL_PREFIX)/@(CATKIN_PACKAGE_SHARE_DESTINATION)/launch
export IGN_LAUNCH_PLUGIN_PATH=@(CMAKE_INSTALL_PREFIX)/@(CATKIN_PACKAGE_LIB_DESTINATION):${IGN_LAUNCH_PLUGIN_PATH}
export IGN_GAZEBO_RESOURCE_PATH=@(CMAKE_INSTALL_PREFIX)/@(CATKIN_PACKAGE_SHARE_DESTINATION)/worlds:${IGN_GAZEBO_RESOURCE_PATH}
export SUBT_IMAGES_PATH=@(CMAKE_INSTALL_PREFIX)/@(CATKIN_PACKAGE_SHARE_DESTINATION)/images
@[else]@
export IGN_LAUNCH_CONFIG_PATH=@(CMAKE_CURRENT_SOURCE_DIR)/launch
export IGN_LAUNCH_PLUGIN_PATH=@(CATKIN_DEVEL_PREFIX)/@(CATKIN_PACKAGE_LIB_DESTINATION):${IGN_LAUNCH_PLUGIN_PATH}
export IGN_GAZEBO_RESOURCE_PATH=@(CMAKE_CURRENT_SOURCE_DIR)/worlds:${IGN_GAZEBO_RESOURCE_PATH}
export SUBT_IMAGES_PATH=@(CMAKE_CURRENT_SOURCE_DIR)/images
@[end if]@
export IGN_TRANSPORT_TOPIC_STATISTICS=1
| EmberScript | 3 | jfkeller/subt_explorer_canary1_sensor_config_1 | subt_ign/env-hooks/30.subt_ign.bash.em | [
"ECL-2.0",
"Apache-2.0"
] |
#tag Class
Protected Class InAppPurchaseHelper
Inherits StoreKit.PaymentTransactionObserver
#tag Event
Sub UpdatedTransactions(queue as StoreKit.SKPaymentQueue, transactions() as StoreKit.SKPaymentTransaction)
for each t as StoreKit.SKPaymentTransaction in transactions
select case t.transactionState
case StoreKit.SKPaymentTransaction.SKPaymentTransactionState.Purchased
completeTransaction(t)
case StoreKit.SKPaymentTransaction.SKPaymentTransactionState.Failed
failedTransaction(t)
case StoreKit.SKPaymentTransaction.SKPaymentTransactionState.Restored
restoreTransaction(t)
end select
next
#Pragma Unused queue
End Sub
#tag EndEvent
#tag Method, Flags = &h0
Sub BuyProduct(product as StoreKit.SKProduct)
dim payment as StoreKit.SKPayment = StoreKit.SKPayment.PaymentWithProduct(product)
StoreKit.SKPaymentQueue.DefaultQueue.addPayment(payment)
End Sub
#tag EndMethod
#tag Method, Flags = &h21
Private Sub CleanUpAndNilRequest()
RemoveHandler productsRequest.DidReceiveResponse, AddressOf HandleDidReceiveResponse
RemoveHandler productsRequest.RequestDidFail, AddressOf HandleDidFail
productsRequest = nil
End Sub
#tag EndMethod
#tag Method, Flags = &h21
Private Sub CompleteTransaction(t as StoreKit.SKPaymentTransaction)
ProvideContentForProductID(t.payment.productIdentifier)
StoreKit.SKPaymentQueue.DefaultQueue.finishTransaction(t)
End Sub
#tag EndMethod
#tag Method, Flags = &h1001
Protected Sub Constructor(productIds as Foundation.NSSet)
// Calling the overridden superclass constructor.
// Note that this may need modifications if there are multiple constructor choices.
// Possible constructor calls:
// Constructor() -- From PaymentTransactionObserver
// Constructor() -- From NSObject
// Constructor(ref as ptr) -- From NSObject
Super.Constructor
productIdentifiers = productIds
purchasedProductIdentifiers = Foundation.NSMutableSet.Set
dim productIDsArray as Foundation.NSArray = productIdentifiers.allObjects
dim count as UInteger = productIDsArray.count
for i as Integer = 0 to count - 1
dim productID as new Foundation.NSString(productIDsArray.Value(i))
dim productPurchased as Boolean = Foundation.NSUserDefaults.StandardUserDefaults.BoolForKey(productID.StringValue)
if productPurchased then
purchasedProductIdentifiers.AddObject productID
end if
next
StoreKit.SKPaymentQueue.DefaultQueue.AddTransactionObserver(self)
End Sub
#tag EndMethod
#tag Method, Flags = &h1
Protected Sub failedTransaction(t as StoreKit.SKPaymentTransaction)
System.DebugLog "Transaction failed: " + t.error.localizedDescription
StoreKit.SKPaymentQueue.DefaultQueue.finishTransaction(t)
End Sub
#tag EndMethod
#tag Method, Flags = &h0
Shared Function GetInstance() As StoreKit.InAppPurchaseHelper
static instance as StoreKit.InAppPurchaseHelper
if ClearInstance = True then
instance = Nil
ClearInstance = False
end if
if instance = nil then
dim set as new Foundation.NSMutableSet
for each t as Text in productIDArray
set.AddObject( new NSString(t) )
next
instance = new InAppPurchaseHelper(set)
end if
Return instance
End Function
#tag EndMethod
#tag Method, Flags = &h1
Protected Sub HandleDidFail(sender as StoreKit.SKProductsRequest, err as Foundation.NSError)
CleanUpAndNilRequest
completionHandler.Invoke(False, nil)
#Pragma unused sender
#Pragma unused err
End Sub
#tag EndMethod
#tag Method, Flags = &h1
Protected Sub HandleDidReceiveResponse(sender as StoreKit.SKProductsRequest, response as StoreKit.SKProductsResponse)
CleanUpAndNilRequest
dim products as Foundation.NSArray = response.products
completionHandler.Invoke(True, products)
#Pragma unused sender
End Sub
#tag EndMethod
#tag Method, Flags = &h0
Function isProductPurchased(identifier as Text) As Boolean
Return purchasedProductIdentifiers.ContainsObject(new NSString(identifier))
End Function
#tag EndMethod
#tag Method, Flags = &h1
Protected Sub ProvideContentForProductID(ID as Foundation.NSString)
purchasedProductIdentifiers.AddObject ID
Foundation.NSUserDefaults.StandardUserDefaults.SetBoolForKey(True, id.StringValue)
call Foundation.NSUserDefaults.StandardUserDefaults.Synchronize
dim userInfo as new xojo.Core.Dictionary
userInfo.Value("productID") = ID.StringValue
Notification_Center.JK_NotificationCenter.MainCenter.PostNotification(_
new Notification_Center.JK_Notification(SKProvideContentForProductNotification, self, userInfo))
End Sub
#tag EndMethod
#tag Method, Flags = &h0
Sub RequestProductsWithCompletionHandler(compHandler as RequestProductsCompletionHandler)
completionHandler = compHandler
productsRequest = new StoreKit.SKProductsRequest(productIdentifiers)
AddHandler productsRequest.DidReceiveResponse, AddressOf HandleDidReceiveResponse
AddHandler productsRequest.RequestDidFail, AddressOf HandleDidFail
productsRequest.Start
End Sub
#tag EndMethod
#tag Method, Flags = &h0
Sub RestoreCompletedTransactions()
StoreKit.SKPaymentQueue.DefaultQueue.RestoreCompletedTransactions
End Sub
#tag EndMethod
#tag Method, Flags = &h21
Private Sub RestoreTransaction(t as StoreKit.SKPaymentTransaction)
ProvideContentForProductID(t.originalTransaction.payment.productIdentifier)
StoreKit.SKPaymentQueue.DefaultQueue.finishTransaction(t)
End Sub
#tag EndMethod
#tag Method, Flags = &h0
Sub Setup()
dim set as new Foundation.NSMutableSet
for each t as Text in productIDArray
set.AddObject( new NSString(t) )
next
productIdentifiers = set
purchasedProductIdentifiers = Foundation.NSMutableSet.Set
dim productIDsArray as Foundation.NSArray = productIdentifiers.allObjects
dim count as UInteger = productIDsArray.count
for i as Integer = 0 to count - 1
dim productID as new Foundation.NSString(productIDsArray.Value(i))
dim productPurchased as Boolean = Foundation.NSUserDefaults.StandardUserDefaults.BoolForKey(productID.StringValue)
if productPurchased then
purchasedProductIdentifiers.AddObject productID
end if
next
StoreKit.SKPaymentQueue.DefaultQueue.AddTransactionObserver(self)
End Sub
#tag EndMethod
#tag Property, Flags = &h0
Shared ClearInstance As Boolean
#tag EndProperty
#tag Property, Flags = &h21
Private completionHandler As RequestProductsCompletionHandler
#tag EndProperty
#tag Property, Flags = &h0
Shared productIDArray() As Text
#tag EndProperty
#tag Property, Flags = &h21
Private productIdentifiers As Foundation.NSSet
#tag EndProperty
#tag Property, Flags = &h21
Private productsRequest As StoreKit.SKProductsRequest
#tag EndProperty
#tag Property, Flags = &h21
Private purchasedProductIdentifiers As Foundation.NSMutableSet
#tag EndProperty
#tag Constant, Name = SKProvideContentForProductNotification, Type = Text, Dynamic = False, Default = \"skprovidecontent", Scope = Public
#tag EndConstant
#tag ViewBehavior
#tag ViewProperty
Name="Index"
Visible=true
Group="ID"
InitialValue="-2147483648"
Type="Integer"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="Left"
Visible=true
Group="Position"
InitialValue="0"
Type="Integer"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="Name"
Visible=true
Group="ID"
InitialValue=""
Type="String"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="Super"
Visible=true
Group="ID"
InitialValue=""
Type="String"
EditorType=""
#tag EndViewProperty
#tag ViewProperty
Name="Top"
Visible=true
Group="Position"
InitialValue="0"
Type="Integer"
EditorType=""
#tag EndViewProperty
#tag EndViewBehavior
End Class
#tag EndClass
| Xojo | 4 | kingj5/iOSKit | Modules/StoreKit/InAppPurchaseHelper.xojo_code | [
"MIT"
] |
lines(0);
ilib_verbose(0);
ierr = exec('loader.sce', 'errcatch');
if ierr <> 0 then
disp(lasterror());
exit(ierr);
end
example_Init();
printf("\nTest constants\n");
printf("ICONST = %i (should be 42)\n", ICONST);
printf("FCONST = %5.4f (should be 2.1828)\n", FCONST);
printf("SCONST = ''%s'' (should be ''Hello World'')\n", SCONST);
printf("EXPR = %5.4f (should be 48.5484)\n", EXPR);
printf("iconst = %i (should be 37)\n", iconst);
printf("fconst = %3.2f (should be 3.14)\n", fconst);
exit
| Scilab | 3 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/scilab/constants/runme.sci | [
"BSD-3-Clause"
] |
' createaudiosample.bmx
Local sample:TAudioSample=CreateAudioSample( 32,11025,SF_MONO8 )
For Local k=0 Until 32
sample.samples[k]=Sin(k*360/32)*127.5+127.5
Next
Local sound:TSound=LoadSound( sample,True )
PlaySound(sound)
Input | BlitzMax | 4 | jabdoa2/blitzmax | mod/brl.mod/audiosample.mod/doc/createaudiosample.bmx | [
"Zlib"
] |
CREATE TEMPORARY VIEW tab1 AS SELECT * FROM VALUES
(0), (1), (2), (2), (2), (2), (3), (null), (null) AS tab1(c1);
CREATE TEMPORARY VIEW tab2 AS SELECT * FROM VALUES
(1), (2), (2), (3), (5), (5), (null) AS tab2(c1);
CREATE TEMPORARY VIEW tab3 AS SELECT * FROM VALUES
(1, 2),
(1, 2),
(1, 3),
(2, 3),
(2, 2)
AS tab3(k, v);
CREATE TEMPORARY VIEW tab4 AS SELECT * FROM VALUES
(1, 2),
(2, 3),
(2, 2),
(2, 2),
(2, 20)
AS tab4(k, v);
-- Basic EXCEPT ALL
SELECT * FROM tab1
EXCEPT ALL
SELECT * FROM tab2;
-- MINUS ALL (synonym for EXCEPT)
SELECT * FROM tab1
MINUS ALL
SELECT * FROM tab2;
-- EXCEPT ALL same table in both branches
SELECT * FROM tab1
EXCEPT ALL
SELECT * FROM tab2 WHERE c1 IS NOT NULL;
-- Empty left relation
SELECT * FROM tab1 WHERE c1 > 5
EXCEPT ALL
SELECT * FROM tab2;
-- Empty right relation
SELECT * FROM tab1
EXCEPT ALL
SELECT * FROM tab2 WHERE c1 > 6;
-- Type Coerced ExceptAll
SELECT * FROM tab1
EXCEPT ALL
SELECT CAST(1 AS BIGINT);
-- Error as types of two side are not compatible
SELECT * FROM tab1
EXCEPT ALL
SELECT array(1);
-- Basic
SELECT * FROM tab3
EXCEPT ALL
SELECT * FROM tab4;
-- Basic
SELECT * FROM tab4
EXCEPT ALL
SELECT * FROM tab3;
-- EXCEPT ALL + INTERSECT
SELECT * FROM tab4
EXCEPT ALL
SELECT * FROM tab3
INTERSECT DISTINCT
SELECT * FROM tab4;
-- EXCEPT ALL + EXCEPT
SELECT * FROM tab4
EXCEPT ALL
SELECT * FROM tab3
EXCEPT DISTINCT
SELECT * FROM tab4;
-- Chain of set operations
SELECT * FROM tab3
EXCEPT ALL
SELECT * FROM tab4
UNION ALL
SELECT * FROM tab3
EXCEPT DISTINCT
SELECT * FROM tab4;
-- Mismatch on number of columns across both branches
SELECT k FROM tab3
EXCEPT ALL
SELECT k, v FROM tab4;
-- Chain of set operations
SELECT * FROM tab3
EXCEPT ALL
SELECT * FROM tab4
UNION
SELECT * FROM tab3
EXCEPT DISTINCT
SELECT * FROM tab4;
-- Using MINUS ALL
SELECT * FROM tab3
MINUS ALL
SELECT * FROM tab4
UNION
SELECT * FROM tab3
MINUS DISTINCT
SELECT * FROM tab4;
-- Chain of set operations
SELECT * FROM tab3
EXCEPT ALL
SELECT * FROM tab4
EXCEPT DISTINCT
SELECT * FROM tab3
EXCEPT DISTINCT
SELECT * FROM tab4;
-- Join under except all. Should produce empty resultset since both left and right sets
-- are same.
SELECT *
FROM (SELECT tab3.k,
tab4.v
FROM tab3
JOIN tab4
ON tab3.k = tab4.k)
EXCEPT ALL
SELECT *
FROM (SELECT tab3.k,
tab4.v
FROM tab3
JOIN tab4
ON tab3.k = tab4.k);
-- Join under except all (2)
SELECT *
FROM (SELECT tab3.k,
tab4.v
FROM tab3
JOIN tab4
ON tab3.k = tab4.k)
EXCEPT ALL
SELECT *
FROM (SELECT tab4.v AS k,
tab3.k AS v
FROM tab3
JOIN tab4
ON tab3.k = tab4.k);
-- Group by under ExceptAll
SELECT v FROM tab3 GROUP BY v
EXCEPT ALL
SELECT k FROM tab4 GROUP BY k;
-- Clean-up
DROP VIEW IF EXISTS tab1;
DROP VIEW IF EXISTS tab2;
DROP VIEW IF EXISTS tab3;
DROP VIEW IF EXISTS tab4;
| SQL | 4 | OlegPt/spark | sql/core/src/test/resources/sql-tests/inputs/except-all.sql | [
"Apache-2.0"
] |
extends RigidBody2D
var _initial_velocity = Vector2.ZERO
var _constant_velocity = Vector2.ZERO
var _motion_speed = 400.0
var _gravity_force = 50.0
var _jump_force = 1000.0
var _velocity = Vector2.ZERO
var _on_floor = false
var _jumping = false
var _keep_velocity = false
func _physics_process(_delta):
if _initial_velocity != Vector2.ZERO:
_velocity = _initial_velocity
_initial_velocity = Vector2.ZERO
_keep_velocity = true
elif _constant_velocity != Vector2.ZERO:
_velocity = _constant_velocity
elif not _keep_velocity:
_velocity.x = 0.0
# Handle horizontal controls.
if Input.is_action_pressed("character_left"):
if position.x > 0.0:
_velocity.x = -_motion_speed
_keep_velocity = false
_constant_velocity = Vector2.ZERO
elif Input.is_action_pressed("character_right"):
if position.x < 1024.0:
_velocity.x = _motion_speed
_keep_velocity = false
_constant_velocity = Vector2.ZERO
# Handle jump controls and gravity.
if is_on_floor():
if not _jumping and Input.is_action_just_pressed("character_jump"):
# Start jumping.
_jumping = true
_velocity.y = -_jump_force
elif not _jumping:
# Reset gravity.
_velocity.y = 0.0
else:
# Apply gravity and get jump ready.
_velocity.y += _gravity_force
_jumping = false
linear_velocity = _velocity
func _integrate_forces(state):
_on_floor = false
var contacts = state.get_contact_count()
for i in contacts:
var pos = state.get_contact_collider_position(i)
if pos.y > position.y:
_on_floor = true
func is_on_floor():
return _on_floor
| GDScript | 4 | jonbonazza/godot-demo-projects | 2d/physics_tests/utils/rigidbody_controller.gd | [
"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 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 in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import React from 'react';
import { SuperChart } from '@superset-ui/core';
import sampleEvents from '@data-ui/event-flow/build/sampleEvents';
import EventFlowChartPlugin from '@superset-ui/legacy-plugin-chart-event-flow';
new EventFlowChartPlugin().configure({ key: 'event-flow' }).register();
export default {
title: 'Legacy Chart Plugins/legacy-plugin-chart-event-flow',
};
const data = sampleEvents.twentyUsers.allEvents.map(
({ ENTITY_ID, EVENT_NAME, TS }) => ({
__timestamp: TS,
eventName: EVENT_NAME,
userId: ENTITY_ID,
}),
);
export const basic = () => (
<SuperChart
chartType="event-flow"
width={400}
height={400}
queriesData={[{ data }]}
formData={{
allColumnsX: 'eventName',
entity: 'userId',
minLeafNodeEventCount: 1,
}}
/>
);
| JSX | 4 | delorenzosoftware/superset | superset-frontend/packages/superset-ui-demo/storybook/stories/plugins/legacy-plugin-chart-event-flow/Stories.jsx | [
"Apache-2.0"
] |
module Fpp {
module ToCpp {
enum Phases {
configConstants
configObjects
instances
initComponents
configComponents
regCommands
readParameters
loadParameters
startTasks
stopTasks
freeThreads
tearDownComponents
}
}
}
| FORTRAN | 3 | AlperenCetin0/fprime | Fpp/ToCpp.fpp | [
"Apache-2.0"
] |
.section
.list-group-flush
div (:class "list-group-item border-0")
.title "ListOf"
.container-fluid
.row
.col
.lang Java
pre.code $ code (@insert ../../code/java/collections/01_ListOf.java) $ :class java
.col
.lang Kotlin
pre.code $ code (@insert ../../code/kotlin/collections/01_ListOf.kt) $ :class kotlin
div (:class "list-group-item border-0")
.title "Filter"
.container-fluid
.row
.col
.lang Java
pre.code $ code (@insert ../../code/java/collections/02_Filter.java) $ :class java
.col
.lang Kotlin
pre.code $ code (@insert ../../code/kotlin/collections/02_Filter.kt) $ :class kotlin
div (:class "list-group-item border-0")
.title "GroupBy"
.container-fluid
.row
.col
.lang Java
pre.code $ code (@insert ../../code/java/collections/03_GroupBy.java) $ :class java
.col
.lang Kotlin
pre.code $ code (@insert ../../code/kotlin/collections/03_GroupBy.kt) $ :class kotlin
div (:class "list-group-item border-0")
.title "PartitionBy"
.container-fluid
.row
.col
.lang Java
pre.code $ code (@insert ../../code/java/collections/04_PartitionBy.java) $ :class java
.col
.lang Kotlin
pre.code $ code (@insert ../../code/kotlin/collections/04_PartitionBy.kt) $ :class kotlin
div (:class "list-group-item border-0")
.title "SortBy"
.container-fluid
.row
.col
.lang Java
pre.code $ code (@insert ../../code/java/collections/05_SortBy.java) $ :class java
.col
.lang Kotlin
pre.code $ code (@insert ../../code/kotlin/collections/05_SortBy.kt) $ :class kotlin
div (:class "list-group-item border-0")
.title "Fold"
.container-fluid
.row
.col
.lang Java
pre.code $ code (@insert ../../code/java/collections/06_Fold.java) $ :class java
.col
.lang Kotlin
pre.code $ code (@insert ../../code/kotlin/collections/06_Fold.kt) $ :class kotlin
div (:class "list-group-item border-0")
.title "AssociateBy"
.container-fluid
.row
.col
.lang Java
pre.code $ code (@insert ../../code/java/collections/07_AssociateBy.java) $ :class java
.col
.lang Kotlin
pre.code $ code (@insert ../../code/kotlin/collections/07_AssociateBy.kt) $ :class kotlin
div (:class "list-group-item border-0")
.title "Zip"
.container-fluid
.row
.col
.lang Java
pre.code $ code (@insert ../../code/java/collections/08_Zip.java) $ :class java
.col
.lang Kotlin
pre.code $ code (@insert ../../code/kotlin/collections/08_Zip.kt) $ :class kotlin
div (:class "list-group-item border-0")
.title "Infix functions"
.container-fluid
.row
.col
.lang Java
pre.code $ code (@insert ../../code/java/collections/09_InfixFunctions.java) $ :class java
.col
.lang Kotlin
pre.code $ code (@insert ../../code/kotlin/collections/09_InfixFunctions.kt) $ :class kotlin
div (:class "list-group-item border-0")
.title "CollectingAndThen"
.container-fluid
.row
.col
.lang Java
pre.code $ code (@insert ../../code/java/collections/10_CollectingAndThen.java) $ :class java
.col
.lang Kotlin
pre.code $ code (@insert ../../code/kotlin/collections/10_CollectingAndThen.kt) $ :class kotlin
div (:class "list-group-item border-0")
.title "For"
.container-fluid
.row
.col
.lang Java
pre.code $ code (@insert ../../code/java/collections/11_For.java) $ :class java
.col
.lang Kotlin
pre.code $ code (@insert ../../code/kotlin/collections/11_For.kt) $ :class kotlin
div (:class "list-group-item border-0")
.title "Repeat"
.container-fluid
.row
.col
.lang Java
pre.code $ code (@insert ../../code/java/collections/12_Repeat.java) $ :class java
.col
.lang Kotlin
pre.code $ code (@insert ../../code/kotlin/collections/12_Repeat.kt) $ :class kotlin
div (:class "list-group-item border-0")
.title "Comparators"
.container-fluid
.row
.col
.lang Java
pre.code $ code (@insert ../../code/java/collections/13_Comparators.java) $ :class java
.col
.lang Kotlin
pre.code $ code (@insert ../../code/kotlin/collections/13_Comparators.kt) $ :class kotlin
| Cirru | 4 | driver733/kot | cirru/collections.cirru | [
"MIT"
] |
/*
* MyDll demonstration of how to write D DLLs.
*
* stripped down version of mydll.d to avoid inclusion into module dependency
* for dynamic linking
*/
/* --------------------------------------------------------- */
class MyClass
{
string concat(string a, string b);
void free(string s);
}
export MyClass getMyClass();
| D | 4 | veelo/dmd | test/win32/mydll.di | [
"BSL-1.0"
] |
/*
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
*/
function main() {
context = java("org.graalvm.polyglot.Context").create();
context.eval("sl", "function createObject() { return new(); }");
context.eval("sl", "function getPrimitive() { return 42; }");
innerBindings = context.getBindings("sl");
println(innerBindings.createObject());
println(innerBindings.getPrimitive());
context.close();
// this is expected fail as
innerBindings.getPrimitive();
}
| Slash | 4 | guillermomolina/simplelanguage | language/tests/CreateContext.sl | [
"UPL-1.0"
] |
import "regent"
--To use cell_pair neighbour finding you must include this file in
--the require decelarations.
require("src/neighbour_search/empty_search/neighbour_part")
| Rouge | 2 | stfc/RegentParticleDSL | src/neighbour_search/empty_search/import_empty_search.rg | [
"MIT"
] |
<p>Hello {{name}}, your order #{{orderId}} is now shipping. Your order includes:</p>
<ul>
{{#items}}
<li>{{.}}</li>
{{/items}}
</ul>
| mupad | 3 | royriojas/buildfirst | ch07/02_backbone-view-templates/app/views/templates/sample.mu | [
"MIT"
] |
module appendixA/prison
sig Gang { members: set Inmate }
sig Inmate { room: Cell }
sig Cell { }
pred safe {
// your constraints should go here
}
pred show {
// your constraints should go here
}
run show
| Alloy | 4 | Kaixi26/org.alloytools.alloy | org.alloytools.alloy.extra/extra/models/book/appendixA/prison.als | [
"Apache-2.0"
] |
cg = require '../lib/parser/codeGenerator'.code generator ()
require './assertions'
expression (expression) =
cg.operator expression (complex expression (expression))
complex expression (expression) =
cg.complex expression [expression]
variable (name) =
cg.variable [name]
loc = {
first line 1
last line 1
first column 3
last column 8
}
id (name) = cg.loc (cg.identifier (name), loc)
describe 'operator expression'
it 'a'
e = expression [id 'a']
(e.expression ()) should contain fields {
is variable
variable ['a']
}
it 'looks up macro'
e = expression [id 'a']
e.add operator '+' expression (complex expression [id 'b'])
(e.expression ()) should contain fields {
operator '+'
operator arguments [{variable ['a']}, {variable ['b']}]
}
describe 'hash entry'
it 'a'
e = expression [id 'a']
(e.hash entry ()) should contain fields {
is hash entry
field ['a']
value = undefined
}
it 'a */ b'
e = expression [id 'a']
e.add operator '*/' expression (complex expression [id 'b'])
(e.hash entry ()) should contain fields {
is semantic error
}
describe 'definition'
it 'a = b'
e = expression [id 'a']
(e.definition (variable 'b').expression ()) should contain fields {
is definition
target {variable ['a']}
source {variable ['b']}
}
it 'a */ b = c'
e = expression [id 'a']
e.add operator '*/' expression (complex expression [id 'b'])
(e.definition (variable 'c')) should contain fields {
is definition
target {
is field reference
object {variable ['a']}
name ['*/']
}
source {
is block
parameters [{variable ['b']}]
optional parameters []
body {statements [{variable ['c']}]}
}
}
| PogoScript | 4 | featurist/pogoscript | test/operatorExpressionSpec.pogo | [
"BSD-2-Clause"
] |
/* Copyright (c) 2017-2019 Netronome Systems, Inc. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
;TEST_INIT_EXEC nfp-mem emem0:0x80 0x00154d0a 0x0d1a6805 0xca306ab8 0x080045aa
;TEST_INIT_EXEC nfp-mem emem0:0x90 0xff00de06 0x40004011 0xffff0501 0x01020501
;TEST_INIT_EXEC nfp-mem emem0:0xa0 0x0101d87e 0x12b5ff00 0x00000800 0x0000ffff
;TEST_INIT_EXEC nfp-mem emem0:0xb0 0xff00404d 0x8e6f97ad 0x001e101f 0x00010800
;TEST_INIT_EXEC nfp-mem emem0:0xc0 0x4555ff00 0x7a9f4000 0x4006ffff 0xc0a80164
;TEST_INIT_EXEC nfp-mem emem0:0xd0 0xd5c7b3a6 0xcb580050 0xea8d9a10 0xffffffff
;TEST_INIT_EXEC nfp-mem emem0:0xe0 0x51ffffff 0xffffffff 0x97ae878f 0x08377a4d
;TEST_INIT_EXEC nfp-mem emem0:0xf0 0x85a1fec4 0x97a27c00 0x784648ea 0x31ab0538
;TEST_INIT_EXEC nfp-mem emem0:0x100 0xac9ca16e 0x8a809e58 0xa6ffc15f
#include <aggregate.uc>
#include <stdmac.uc>
#include <pv.uc>
#define pkt_vec *l$index1
#define pre_meta *l$index2
local_csr_wr[ACTIVE_LM_ADDR_1, 0x80]
local_csr_wr[ACTIVE_LM_ADDR_2, 0xa0]
nop
nop
nop
aggregate_zero(pkt_vec, PV_SIZE_LW)
move(pkt_vec[0], 0x8c)
move(pkt_vec[1], 0x13000000)
move(pkt_vec[2], 0x80)
move(pkt_vec[4], 0x3fc0)
| UnrealScript | 3 | pcasconnetronome/nic-firmware | test/datapath/pkt_ipv4_ipv4_lso_vxlan_tcp_x80.uc | [
"BSD-2-Clause"
] |
#foo {
line: none;
line-width: 2;
[feature = 'bar'] {
line-color: red;
}
[feature = 'baz'] {
line-color: blue;
}
}
| CartoCSS | 3 | nimix/carto | test/rendering-mss/issue_462.mss | [
"Apache-2.0"
] |
FROM golang AS builder
COPY . /go/src/github.com/rclone/rclone/
WORKDIR /go/src/github.com/rclone/rclone/
RUN \
CGO_ENABLED=0 \
make
RUN ./rclone version
# Begin final image
FROM alpine:latest
RUN apk --no-cache add ca-certificates fuse tzdata && \
echo "user_allow_other" >> /etc/fuse.conf
COPY --from=builder /go/src/github.com/rclone/rclone/rclone /usr/local/bin/
RUN addgroup -g 1009 rclone && adduser -u 1009 -Ds /bin/sh -G rclone rclone
ENTRYPOINT [ "rclone" ]
WORKDIR /data
ENV XDG_CONFIG_HOME=/config
| Dockerfile | 3 | database64128/rclone | Dockerfile | [
"MIT"
] |
// Reported at bug #6
// unparsed as: shared[] shared[0] int *shared_ptr;
shared[] int* shared_ptr;
| Unified Parallel C | 0 | maurizioabba/rose | tests/CompileTests/UPC_tests/test2011_09.upc | [
"BSD-3-Clause"
] |
/// Red-Black Trees
import Debug "Debug";
import I "Iter";
import List "List";
import Nat "Nat";
import O "Order";
module {
/// Node color: red or black.
public type Color = { #R; #B };
/// Ordered, (red-black) tree of entries.
public type Tree<X, Y> = {
#node : (Color, Tree<X, Y>, (X, ?Y), Tree<X, Y>);
#leaf;
};
/// Create an order map from an order function for its keys.
public class RBTree<X, Y>(compareTo : (X, X) -> O.Order) {
var tree : Tree<X, Y> = (#leaf : Tree<X, Y>);
/// Tree as sharable data.
///
/// Get non-OO, purely-functional representation:
/// for drawing, pretty-printing and non-OO contexts
/// (e.g., async args and results):
public func share() : Tree<X, Y> {
tree
};
/// Get the value associated with a given key.
public func get(x : X) : ?Y {
getRec(x, compareTo, tree);
};
/// Replace the value associated with a given key.
public func replace(x : X, y : Y) : ?Y {
let (res, t) = insertRoot(x, compareTo, y, tree);
tree := t;
res
};
/// Put an entry: A value associated with a given key.
public func put(x : X, y : Y) {
let (res, t) = insertRoot(x, compareTo, y, tree);
tree := t;
};
/// Delete the entry associated with a given key.
public func delete(x : X) {
let (res, t) = removeRec(x, compareTo, tree);
tree := t
};
/// Remove the entry associated with a given key.
public func remove(x : X) : ?Y {
let (res, t) = removeRec(x, compareTo, tree);
tree := t;
res
};
/// An iterator for the key-value entries of the map, in ascending key order.
///
/// iterator is persistent, like the tree itself
public func entries() : I.Iter<(X, Y)> { iter(tree, #fwd) };
/// An iterator for the key-value entries of the map, in descending key order.
///
/// iterator is persistent, like the tree itself
public func entriesRev() : I.Iter<(X, Y)> { iter(tree, #bwd) };
};
type IterRep<X, Y> = List.List<{ #tr:Tree<X, Y>; #xy:(X, ?Y) }>;
/// An iterator for the entries of the map, in ascending (`#fwd`) or descending (`#bwd`) order.
public func iter<X, Y>(t : Tree<X, Y>, dir : { #fwd; #bwd }) : I.Iter<(X, Y)> {
object {
var trees : IterRep<X, Y> = ?(#tr(t), null);
public func next() : ?(X, Y) {
switch (dir, trees) {
case (_, null) { null };
case (_, ?(#tr(#leaf), ts)){
trees := ts;
next()
};
case (_, ?(#xy(xy), ts)) {
trees := ts;
switch (xy.1) {
case null { next() };
case (?y) { ?(xy.0, y) }
}
};
case (#fwd, ?(#tr(#node(_, l, xy, r)), ts)) {
trees := ?(#tr(l), ?(#xy(xy), ?(#tr(r), ts)));
next()
};
case (#bwd, ?(#tr(#node(_, l, xy, r)), ts)) {
trees := ?(#tr(r), ?(#xy(xy), ?(#tr(l), ts)));
next()
};
}
};
}
};
/// Remove the value associated with a given key.
func removeRec<X, Y>(x : X, compareTo : (X, X) -> O.Order, t : Tree<X, Y>)
: (?Y, Tree<X, Y>) {
switch t {
case (#leaf) { (null, #leaf) };
case (#node(c, l, xy, r)) {
switch (compareTo(x, xy.0)) {
case (#less) {
let (yo, l2) = removeRec(x, compareTo, l);
(yo, #node(c, l2, xy, r))
};
case (#equal) {
(xy.1, #node(c, l, (x, null), r))
};
case (#greater) {
let (yo, r2) = removeRec(x, compareTo, r);
(yo, #node(c, l, xy, r2))
};
}
}
}
};
func bal<X, Y>(color : Color, lt : Tree<X, Y>, kv : (X, ?Y), rt : Tree<X, Y>) : Tree<X, Y> {
// thank you, algebraic pattern matching!
// following notes from [Ravi Chugh](https://www.classes.cs.uchicago.edu/archive/2019/spring/22300-1/lectures/RedBlackTrees/index.html)
switch (color, lt, kv, rt) {
case (#B, #node(#R, #node(#R, a, x, b), y, c), z, d) {
#node(#R, #node(#B, a, x, b), y, #node(#B, c, z, d))
};
case (#B, #node(#R, a, x, #node(#R, b, y, c)), z, d) {
#node(#R, #node(#B, a, x, b), y, #node(#B, c, z, d))
};
case (#B, a, x, #node(#R, #node(#R, b, y, c), z, d)) {
#node(#R, #node(#B, a, x, b), y, #node(#B, c, z, d))
};
case (#B, a, x, #node(#R, b, y, #node(#R, c, z, d))) {
#node(#R, #node(#B, a, x, b), y, #node(#B, c, z, d))
};
case _ { #node(color, lt, kv, rt) };
}
};
func insertRoot<X, Y>(x : X, compareTo : (X, X) -> O.Order, y : Y, t : Tree<X, Y>)
: (?Y, Tree<X, Y>) {
switch (insertRec(x, compareTo, y, t)) {
case (_, #leaf) { assert false; loop { } };
case (yo, #node(_, l, xy, r)) { (yo, #node(#B, l, xy, r)) };
}
};
func insertRec<X, Y>(x : X, compareTo : (X, X) -> O.Order, y : Y, t : Tree<X, Y>)
: (?Y, Tree<X, Y>) {
switch t {
case (#leaf) { (null, #node(#R, #leaf, (x, ?y), #leaf)) };
case (#node(c, l, xy, r)) {
switch (compareTo(x, xy.0)) {
case (#less) {
let (yo, l2) = insertRec(x, compareTo, y, l);
(yo, bal(c, l2, xy, r))
};
case (#equal) {
(xy.1, #node(c, l, (x, ?y), r))
};
case (#greater) {
let (yo, r2) = insertRec(x, compareTo, y, r);
(yo, bal(c, l, xy, r2))
};
}
}
}
};
func getRec<X, Y>(x : X, compareTo : (X, X) -> O.Order, t : Tree<X, Y>) : ?Y {
switch t {
case (#leaf) { null };
case (#node(c, l, xy, r)) {
switch (compareTo(x, xy.0)) {
case (#less) { getRec(x, compareTo, l) };
case (#equal) { xy.1 };
case (#greater) { getRec(x, compareTo, r) };
}
};
}
};
func height<X, Y>(t : Tree<X, Y>) : Nat {
switch t {
case (#leaf) { 0 };
case (#node(_, l, _, r)) {
Nat.max(height(l), height(r)) + 1
}
}
};
/// The size of the tree as the number of key-value entries.
public func size<X, Y>(t : Tree<X, Y>) : Nat {
switch t {
case (#leaf) { 0 };
case (#node(_, l, _, r)) {
size(l) + size(r) + 1
};
}
};
}
| Modelica | 5 | nomeata/motoko-base | src/RBTree.mo | [
"Apache-2.0"
] |
@###############################################
@#
@# EmPy template
@#
@###############################################
@# generates CDR serialization & deserialization methods
@#
@# Context:
@# - spec (msggen.MsgSpec) Parsed specification of the .msg file
@# - search_path (str) Path to .msg files
@###############################################
@{
import genmsg.msgs
from px_generate_uorb_topic_helper import * # this is in Tools/
topic = spec.short_name
uorb_struct = '%s_s'%spec.short_name
# get fields, struct size and paddings
def add_fields(msg_fields, name_prefix='', offset=0):
fields = []
for field in msg_fields:
if not field.is_header:
field_size = sizeof_field_type(field)
type_name = field.type
# detect embedded types
sl_pos = type_name.find('/')
if (sl_pos >= 0):
package = type_name[:sl_pos]
type_name = type_name[sl_pos + 1:]
# detect arrays
a_pos = type_name.find('[')
array_size = 1
if (a_pos >= 0):
# field is array
array_size = int(type_name[a_pos+1:-1])
type_name = type_name[:a_pos]
if sl_pos >= 0: # nested type
children_fields = get_children_fields(field.base_type, search_path)
for i in range(array_size):
sub_name_prefix = name_prefix+field.name
if array_size > 1:
sub_name_prefix += '['+str(i)+']'
sub_fields, offset = add_fields(children_fields, sub_name_prefix+'.', offset)
fields.extend(sub_fields)
else:
assert field_size > 0
# note: the maximum alignment for XCDR is 8 and for XCDR2 it is 4
padding = (field_size - (offset % field_size)) & (field_size - 1)
fields.append((type_name, name_prefix+field.name, field_size * array_size, padding))
offset += array_size * field_size + padding
return fields, offset
fields, struct_size = add_fields(spec.parsed_fields())
}@
// auto-generated file
#pragma once
#include <ucdr/microcdr.h>
#include <string.h>
#include <uORB/topics/@(topic).h>
@##############################
@# Includes for dependencies
@##############################
@{
for field in spec.parsed_fields():
if (not field.is_builtin):
if not field.is_header:
(package, name) = genmsg.names.package_resource_name(field.base_type)
package = package or spec.package # convert '' to package
print('#include <uORB/ucdr/%s.h>'%(name))
}@
static inline constexpr int ucdr_topic_size_@(topic)()
{
return @(struct_size);
}
bool ucdr_serialize_@(topic)(const @(uorb_struct)& topic, ucdrBuffer& buf)
{
if (ucdr_buffer_remaining(&buf) < @(struct_size)) {
return false;
}
@{
for field_type, field_name, field_size, padding in fields:
if padding > 0:
print('\tbuf.iterator += {:}; // padding'.format(padding))
print('\tbuf.offset += {:}; // padding'.format(padding))
print('\tstatic_assert(sizeof(topic.{0}) == {1}, "size mismatch");'.format(field_name, field_size))
print('\tmemcpy(buf.iterator, &topic.{0}, sizeof(topic.{0}));'.format(field_name))
print('\tbuf.iterator += sizeof(topic.{:});'.format(field_name))
print('\tbuf.offset += sizeof(topic.{:});'.format(field_name))
}@
return true;
}
bool ucdr_deserialize_@(topic)(ucdrBuffer& buf, @(uorb_struct)& topic)
{
if (ucdr_buffer_remaining(&buf) < @(struct_size)) {
return false;
}
@{
for field_type, field_name, field_size, padding in fields:
if padding > 0:
print('\tbuf.iterator += {:}; // padding'.format(padding))
print('\tbuf.offset += {:}; // padding'.format(padding))
print('\tstatic_assert(sizeof(topic.{0}) == {1}, "size mismatch");'.format(field_name, field_size))
print('\tmemcpy(&topic.{0}, buf.iterator, sizeof(topic.{0}));'.format(field_name))
print('\tbuf.iterator += sizeof(topic.{:});'.format(field_name))
print('\tbuf.offset += sizeof(topic.{:});'.format(field_name))
}@
return true;
}
| EmberScript | 5 | uavosky/uavosky-px4 | msg/templates/ucdr/msg.h.em | [
"BSD-3-Clause"
] |
h2. Autoparagraph Plugin
The Autoparagraph Plugin checks the contents of editables and wraps content that is not contained in block level elements into paragraphs.
endprologue.
h3. Functional Description
The Plugin relies on the events @aloha-editable-created@ (which is fired when an editable is created) and @aloha-smart-content-changed@ (fired when the content of an editable changes).
This will make sure that missing paragraphs are created when starting to edit and whenever content was changed.
NOTE: The @aloha-smart-content-changed@ is not triggered immediately after content changes, but may take some time.
The plugin will then first check whether the root DOM element of the editable allows insertion of paragraphs. If the root DOM element e.g. itself is a paragraph or a header, inserting paragraphs is not allowed and the plugin will simply do nothing.
If inserting paragraphs is allowed and the plugin activated for the editable (see below for configuration settings), the plugin will find all immediate child DOM elements of the editable, that are allowed to be nested in paragraphs and wrap paragraphs around them.
Siblings are nested into a single paragraph.
Examples:
|_. Before transformation |_. After transformation |
| +Before<table>...</table>After+ | +<p>Before</p><table>...</table><p>After</p>+ |
| +Before<hr/>After+ | +<p>Before</p><hr/><p>After</p>+ |
| +Something <b>bold</b> or <i>italic</i>+ | +<p>Something <b>bold</b> or <i>italic</i></p>+ |
h3. Configuration settings
The Autoparagraph plugin can be switched on or off generally (default is on). Additionally, this global setting can be overwritten per editable.
The following example switches the plugin off generally and on only for specific editables:
<javascript>
Aloha.settings.plugins = {
autoparagraph: {
// generally switch autoparagraph off
config: [ ],
// per editable configuration
editables: {
// switch on autoparagraph for the class with_autoparagraph
'.with_autoparagraph': [ 'autoparagraph' ]
}
}
};
</javascript>
The example below is the reverse, the plugin is generally switched on, but disabled for specific editables:
<javascript>
Aloha.settings.plugins = {
autoparagraph: {
// generally switch autoparagraph on
config: [ 'autoparagraph' ],
// per editable configuration
editables: {
// switch off autoparagraph for the class without_autoparagraph
'.without_autoparagraph': [ ]
}
}
};
</javascript>
| Textile | 4 | antonella-del/Aloha-Editor | doc/guides/source/plugin_autoparagraph.textile | [
"CC-BY-3.0"
] |
NAME
VTK::OpenGL
LIBRARY_NAME
vtkOpenGL
DESCRIPTION
Rendering implementations for OpenGL
| Kit | 0 | txwhhny/vtk | Rendering/OpenGL2/vtk.kit | [
"BSD-3-Clause"
] |
#---------------------------------------------------------------------------
#
# xc-val-flgs.m4
#
# Copyright (c) 2013 - 2020, Daniel Stenberg <daniel@haxx.se>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#
#---------------------------------------------------------------------------
# serial 1
dnl _XC_CHECK_VAR_LIBS
dnl -------------------------------------------------
dnl Private macro.
AC_DEFUN([_XC_CHECK_VAR_LIBS], [
xc_bad_var_libs=no
for xc_word in $LIBS; do
case "$xc_word" in
-l* | --library=*)
:
;;
*)
xc_bad_var_libs=yes
;;
esac
done
if test $xc_bad_var_libs = yes; then
AC_MSG_NOTICE([using LIBS: $LIBS])
AC_MSG_NOTICE([LIBS note: LIBS should only be used to specify libraries (-lname).])
fi
])
dnl _XC_CHECK_VAR_LDFLAGS
dnl -------------------------------------------------
dnl Private macro.
AC_DEFUN([_XC_CHECK_VAR_LDFLAGS], [
xc_bad_var_ldflags=no
for xc_word in $LDFLAGS; do
case "$xc_word" in
-D*)
xc_bad_var_ldflags=yes
;;
-U*)
xc_bad_var_ldflags=yes
;;
-I*)
xc_bad_var_ldflags=yes
;;
-l* | --library=*)
xc_bad_var_ldflags=yes
;;
esac
done
if test $xc_bad_var_ldflags = yes; then
AC_MSG_NOTICE([using LDFLAGS: $LDFLAGS])
xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
for xc_word in $LDFLAGS; do
case "$xc_word" in
-D*)
AC_MSG_NOTICE([$xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word])
;;
-U*)
AC_MSG_NOTICE([$xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word])
;;
-I*)
AC_MSG_NOTICE([$xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word])
;;
-l* | --library=*)
AC_MSG_NOTICE([$xc_bad_var_msg libraries. Use LIBS for: $xc_word])
;;
esac
done
fi
])
dnl _XC_CHECK_VAR_CPPFLAGS
dnl -------------------------------------------------
dnl Private macro.
AC_DEFUN([_XC_CHECK_VAR_CPPFLAGS], [
xc_bad_var_cppflags=no
for xc_word in $CPPFLAGS; do
case "$xc_word" in
-rpath*)
xc_bad_var_cppflags=yes
;;
-L* | --library-path=*)
xc_bad_var_cppflags=yes
;;
-l* | --library=*)
xc_bad_var_cppflags=yes
;;
esac
done
if test $xc_bad_var_cppflags = yes; then
AC_MSG_NOTICE([using CPPFLAGS: $CPPFLAGS])
xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
for xc_word in $CPPFLAGS; do
case "$xc_word" in
-rpath*)
AC_MSG_NOTICE([$xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word])
;;
-L* | --library-path=*)
AC_MSG_NOTICE([$xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word])
;;
-l* | --library=*)
AC_MSG_NOTICE([$xc_bad_var_msg libraries. Use LIBS for: $xc_word])
;;
esac
done
fi
])
dnl _XC_CHECK_VAR_CFLAGS
dnl -------------------------------------------------
dnl Private macro.
AC_DEFUN([_XC_CHECK_VAR_CFLAGS], [
xc_bad_var_cflags=no
for xc_word in $CFLAGS; do
case "$xc_word" in
-D*)
xc_bad_var_cflags=yes
;;
-U*)
xc_bad_var_cflags=yes
;;
-I*)
xc_bad_var_cflags=yes
;;
-rpath*)
xc_bad_var_cflags=yes
;;
-L* | --library-path=*)
xc_bad_var_cflags=yes
;;
-l* | --library=*)
xc_bad_var_cflags=yes
;;
esac
done
if test $xc_bad_var_cflags = yes; then
AC_MSG_NOTICE([using CFLAGS: $CFLAGS])
xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
for xc_word in $CFLAGS; do
case "$xc_word" in
-D*)
AC_MSG_NOTICE([$xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word])
;;
-U*)
AC_MSG_NOTICE([$xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word])
;;
-I*)
AC_MSG_NOTICE([$xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word])
;;
-rpath*)
AC_MSG_NOTICE([$xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word])
;;
-L* | --library-path=*)
AC_MSG_NOTICE([$xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word])
;;
-l* | --library=*)
AC_MSG_NOTICE([$xc_bad_var_msg libraries. Use LIBS for: $xc_word])
;;
esac
done
fi
])
dnl XC_CHECK_USER_FLAGS
dnl -------------------------------------------------
dnl Public macro.
dnl
dnl Performs some sanity checks for LIBS, LDFLAGS,
dnl CPPFLAGS and CFLAGS values that the user might
dnl have set. When checks fails, user is noticed
dnl about errors detected in all of them and script
dnl execution is halted.
dnl
dnl Intended to be used early in configure script.
AC_DEFUN([XC_CHECK_USER_FLAGS], [
AC_PREREQ([2.50])dnl
AC_BEFORE([$0],[XC_CHECK_PROG_CC])dnl
dnl check order below matters
_XC_CHECK_VAR_LIBS
_XC_CHECK_VAR_LDFLAGS
_XC_CHECK_VAR_CPPFLAGS
_XC_CHECK_VAR_CFLAGS
if test $xc_bad_var_libs = yes ||
test $xc_bad_var_cflags = yes ||
test $xc_bad_var_ldflags = yes ||
test $xc_bad_var_cppflags = yes; then
AC_MSG_ERROR([Can not continue. Fix errors mentioned immediately above this line.])
fi
])
dnl XC_CHECK_BUILD_FLAGS
dnl -------------------------------------------------
dnl Public macro.
dnl
dnl Performs some sanity checks for LIBS, LDFLAGS,
dnl CPPFLAGS and CFLAGS values that the configure
dnl script might have set. When checks fails, user
dnl is noticed about errors detected in all of them
dnl but script continues execution.
dnl
dnl Intended to be used very late in configure script.
AC_DEFUN([XC_CHECK_BUILD_FLAGS], [
AC_PREREQ([2.50])dnl
dnl check order below matters
_XC_CHECK_VAR_LIBS
_XC_CHECK_VAR_LDFLAGS
_XC_CHECK_VAR_CPPFLAGS
_XC_CHECK_VAR_CFLAGS
if test $xc_bad_var_libs = yes ||
test $xc_bad_var_cflags = yes ||
test $xc_bad_var_ldflags = yes ||
test $xc_bad_var_cppflags = yes; then
AC_MSG_WARN([Continuing even with errors mentioned immediately above this line.])
fi
])
| M4 | 5 | jjatria/curl | m4/xc-val-flgs.m4 | [
"curl"
] |
POST /upload HTTP/1.1
Host: localhost:8080
Content-Type: multipart/form-data; boundary=----TLV0SrKD4z1TRxRhAPUvZ
Content-Length: 221
------TLV0SrKD4z1TRxRhAPUvZ
Content-Disposition: form-data; name="file"; filename="plain.txt"
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
I am a plain text file
------TLV0SrKD4z1TRxRhAPUvZ--
| HTTP | 2 | ravitejavalluri/brackets | src/extensions/default/StaticServer/node/node_modules/connect/node_modules/multiparty/test/fixture/http/encoding/plain.txt.http | [
"MIT"
] |
#!/usr/bin/parrot -C
# by Joshua Isom
.sub main :main
.param pmc argv
.local int argc, n
argc = argv
n = 1
unless argc == 2 goto argsok
$S0 = argv[1]
n = $S0
argsok:
.local float f
$N0 = n
$N0 *= 3
$N1 = n
$N1 *= 2
$N2 = n
$N2 *= 1
f = Tak($N0, $N1, $N2)
$P0 = new .FixedFloatArray
$P0 = 1
$P0[0] = f
$S0 = sprintf "%.1f\n", $P0
print $S0
.end
.sub Tak
.param float x
.param float y
.param float z
unless y >= x goto endif
.return(z)
endif:
.local float tmp
tmp = x - 1
$N0 = Tak(tmp, y, z)
tmp = y - 1
$N1 = Tak(tmp, z, x)
tmp = z - 1
$N2 = Tak(tmp, x, y)
.return Tak($N0, $N1, $N2)
.end
| Parrot | 4 | kragen/shootout | bench/takfp/takfp.parrot | [
"BSD-3-Clause"
] |
codegen utils = require './codegenUtils'
module.exports (terms) = terms.term {
constructor (entries) =
self.is hash = true
self.entries = entries
generate (scope) =
self.generate into buffer @(buffer)
buffer.write ('{')
codegen utils.write to buffer with delimiter (self.entries, ',', buffer) @(item)
buffer.write (item.generate hash entry (scope))
buffer.write ('}')
generateStatement (scope) =
terms.definition(terms.generatedVariable ['o'], self).generateStatement (scope)
}
| PogoScript | 3 | Sotrek/Alexa | Alexa_Cookbook/Workshop/StatePop/4_IOT/tests/node_modules/aws-sdk/node_modules/cucumber/node_modules/pogo/lib/terms/hash.pogo | [
"MIT"
] |
/**
* Copyright 2020 Espressif Systems (Shanghai) PTE LTD
*
* 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 in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
SECTIONS
{
.eh_frame_hdr :
{
__eh_frame_hdr = ABSOLUTE(.);
*(.eh_frame_hdr) *(.eh_frame_entry .eh_frame_entry.*)
}
.eh_frame : ONLY_IF_RO
{
__eh_frame = ABSOLUTE(.);
KEEP (*(.eh_frame)) *(.eh_frame.*)
}
}
INSERT BEFORE .gcc_except_table;
| Linker Script | 4 | cablelabs/esp-idf | components/esp_system/test_eh_frame_parser/linker.ld | [
"Apache-2.0"
] |
<cfcomponent>
<cfset variables.bugEmailSender = "">
<cfset variables.bugEmailRecipients = "">
<cfset variables.defaultSeverityCode = "ERROR">
<cfset variables.hostName = CreateObject("java", "java.net.InetAddress").getLocalHost().getHostName()>
<cfset variables.appName = replace(application.applicationName," ","","all")>
<cffunction name="init" returntype="bugTrackerService" access="public" hint="Constructor">
<cfargument name="bugEmailSender" type="string" required="true">
<cfargument name="bugEmailRecipients" type="string" required="true">
<cfscript>
variables.bugEmailSender = arguments.bugEmailSender;
variables.bugEmailRecipients = arguments.bugEmailRecipients;
</cfscript>
<cfreturn this>
</cffunction>
<cffunction name="notifyService" access="public" returntype="void" hint="Use this method to tell the bugTrackerService that an error has ocurred">
<cfargument name="message" type="string" required="true">
<cfargument name="exception" type="any" required="false" default="#structNew()#">
<cfargument name="ExtraInfo" type="any" required="no" default="">
<cfargument name="severityCode" type="string" required="false" default="#variables.defaultSeverityCode#">
<cfset var shortMessage = "">
<cfset var longMessage = "">
<cfset var msgHash = "">
<cfset var st = structNew()>
<cfif arguments.severityCode neq "">
<cfset arguments.message = "[#arguments.severityCode#] " & arguments.message>
</cfif>
<!--- compose short and full messages --->
<cfset shortMessage = composeShortMessage(arguments.message, arguments.exception, arguments.extraInfo)>
<cfset longMessage = composeFullMessage(arguments.message, arguments.exception, arguments.extraInfo)>
<!--- send bug report via email --->
<cfif variables.bugEmailRecipients neq "">
<cfset sendEmail(arguments.message, longMessage)>
</cfif>
<!--- add entry to coldfusion log --->
<cflog type="error"
text="#shortMessage#"
file="#variables.appName#_BugTrackingErrors">
<!--- do any additional processing (to allow this cfc to be extended) --->
<cfset doCustomProcessing(arguments.message, arguments.exception, arguments.extraInfo)>
</cffunction>
<cffunction name="sendEmail" access="private" hint="Sends the actual email message" returntype="void">
<cfargument name="message" type="string" required="true">
<cfargument name="longMessage" type="string" required="true">
<cfmail to="#variables.bugEmailRecipients#"
from="#variables.bugEmailSender#"
subject="BUG REPORT: [#variables.appName#] [#variables.hostName#] #arguments.message#"
type="html">
#arguments.longMessage#
</cfmail>
</cffunction>
<cffunction name="doCustomProcessing" access="private" hint="this method can be overloaded by descendants of this cfc to allow for custom handling of exception info">
<cfargument name="message" type="string" required="true">
<cfargument name="exception" type="any" required="false" default="#structNew()#">
<cfargument name="ExtraInfo" type="any" required="no" default="">
</cffunction>
<cffunction name="composeShortMessage" access="private" returntype="string">
<cfargument name="message" type="string" required="true">
<cfargument name="exception" type="any" required="false" default="#structNew()#">
<cfargument name="ExtraInfo" type="any" required="no" default="">
<cfscript>
var errorText = arguments.message;
if(structKeyExists(arguments.exception,"message") and arguments.exception.message neq arguments.message)
errorText = errorText & ". Message: " & arguments.exception.message;
if(structKeyExists(arguments.exception, "detail") and arguments.exception.detail neq "")
errorText = errorText & ". Details: " & arguments.exception.detail;
</cfscript>
<cfreturn errorText>
</cffunction>
<cffunction name="composeFullMessage" access="private" returntype="string">
<cfargument name="message" type="string" required="true">
<cfargument name="exception" type="any" required="false" default="#structNew()#">
<cfargument name="ExtraInfo" type="any" required="no" default="">
<cfset var tmpHTML = "">
<cfset var i = 0>
<cfsavecontent variable="tmpHTML">
<h3>Exception Summary</h3>
<cfoutput>
<table style="font-size:11px;font-family:arial;">
<tr>
<td><b>Application:</b></td>
<td>#variables.appName#</td>
</tr>
<tr>
<td><b>Host:</b></td>
<td>#variables.hostName#</td>
</tr>
<tr>
<td><b>Server Date/Time:</b></td>
<td>#lsDateFormat(now())# #lsTimeFormat(now())#</td>
</tr>
<cfif structKeyExists(arguments.exception,"message")>
<tr>
<td><b>Message:</b></td>
<td>#arguments.exception.message#</td>
</tr>
</cfif>
<cfif structKeyExists(arguments.exception,"detail")>
<tr>
<td><b>Detail:</b></td>
<td>#arguments.exception.detail#</td>
</tr>
</cfif>
<cfif structKeyExists(arguments.exception,"tagContext")>
<tr valign="top">
<td><b>Tag Context:</b></td>
<td>
<cfloop from="1" to="#arrayLen(arguments.exception.tagContext)#" index="i">
<li>#htmlEditFormat(arguments.exception.tagContext[i].template)# [#arguments.exception.tagContext[i].line#]</li>
</cfloop>
</td>
</tr>
</cfif>
<tr>
<td><b>User Agent:</b></td>
<td>#cgi.HTTP_USER_AGENT#</td>
</tr>
<tr>
<td><b>Query String:</b></td>
<td>#cgi.QUERY_STRING#</td>
</tr>
<tr valign="top">
<td><strong>Coldfusion ID:</strong></td>
<td>
<cftry>
[SESSION]
CFID = #session.cfid#;
CFTOKEN = #session.cftoken#
JSessionID=#session.sessionID#
<cfcatch type="any">
<span style="color:red;">#cfcatch.message#</span>
</cfcatch>
</cftry><br>
<cftry>
[CLIENT]
CFID = #client.cfid#;
CFTOKEN = #client.cftoken#
<cfcatch type="any">
<span style="color:red;">#cfcatch.message#</span>
</cfcatch>
</cftry><br>
<cftry>
[COOKIES]
CFID = #cookie.cfid#;
CFTOKEN = #cookie.cftoken#
<cfcatch type="any">
<span style="color:red;">#cfcatch.message#</span>
</cfcatch>
</cftry><br>
<cftry>
[J2EE SESSION]
JSessionID = #session.JSessionID#;
<cfcatch type="any">
<span style="color:red;">#cfcatch.message#</span>
</cfcatch>
</cftry>
</td>
</tr>
</table>
</cfoutput>
<h3>Exception Info</h3>
<cfdump var="#arguments.exception#">
<h3>Additional Info</h3>
<cfdump var="#arguments.ExtraInfo#">
</cfsavecontent>
<cfreturn tmpHTML>
</cffunction>
</cfcomponent> | ColdFusion CFC | 5 | subethaedit/SubEthaEd | Documentation/ModeDevelopment/Reference Files/CFML/bugTrackerService.cfc | [
"MIT"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.