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
sequencelengths 1
8
|
---|---|---|---|---|---|
package com.alibaba.fastjson.deserializer.issues3796.bean;
import java.util.List;
public class ObjectN {
private List<Long> a;
private List<Long> b;
private List<CommonObject3> c;
private List<CommonObject3> d;
private List<Long> e;
private List<String> f;
private List<Long> g;
private List<OjectN_A> h;
private List<CommonObject3> i;
private List<Long> j;
private List<String> k;
private List<CommonObject3> l;
public List<Long> getA() {
return a;
}
public void setA(List<Long> a) {
this.a = a;
}
public List<Long> getB() {
return b;
}
public void setB(List<Long> b) {
this.b = b;
}
public List<CommonObject3> getC() {
return c;
}
public void setC(List<CommonObject3> c) {
this.c = c;
}
public List<CommonObject3> getD() {
return d;
}
public void setD(List<CommonObject3> d) {
this.d = d;
}
public List<Long> getE() {
return e;
}
public void setE(List<Long> e) {
this.e = e;
}
public List<String> getF() {
return f;
}
public void setF(List<String> f) {
this.f = f;
}
public List<Long> getG() {
return g;
}
public void setG(List<Long> g) {
this.g = g;
}
public List<OjectN_A> getH() {
return h;
}
public void setH(List<OjectN_A> h) {
this.h = h;
}
public List<CommonObject3> getI() {
return i;
}
public void setI(List<CommonObject3> i) {
this.i = i;
}
public List<Long> getJ() {
return j;
}
public void setJ(List<Long> j) {
this.j = j;
}
public List<String> getK() {
return k;
}
public void setK(List<String> k) {
this.k = k;
}
public List<CommonObject3> getL() {
return l;
}
public void setL(List<CommonObject3> l) {
this.l = l;
}
}
| Java | 3 | Alanwang2015/fastjson | src/test/java/com/alibaba/fastjson/deserializer/issues3796/bean/ObjectN.java | [
"Apache-2.0"
] |
--TEST--
readline(): Basic test
--CREDITS--
Milwaukee PHP User Group
#PHPTestFest2017
--EXTENSIONS--
readline
--FILE--
<?php
var_dump(readline('Enter some text:'));
?>
--STDIN--
I love PHP
--EXPECTF--
%Astring(10) "I love PHP"
| PHP | 4 | NathanFreeman/php-src | ext/readline/tests/readline_basic.phpt | [
"PHP-3.01"
] |
module DemoSensorP
{
provides interface M16c60AdcConfig;
provides interface Init;
uses interface GeneralIO as Pin;
uses interface GeneralIO as AVcc;
}
implementation
{
command error_t Init.init()
{
call Pin.makeInput();
// TODO(henrik) This Vref should be turned on in connection to the A/D
// converter code and not here.
// Turn on the Vref
call AVcc.makeOutput();
call AVcc.set();
}
async command uint8_t M16c60AdcConfig.getChannel()
{
// select the AN0 = P10_0 to potentiometer on the expansion board.
return M16c60_ADC_CHL_AN0;
}
async command uint8_t M16c60AdcConfig.getPrecision()
{
return M16c60_ADC_PRECISION_10BIT;
}
async command uint8_t M16c60AdcConfig.getPrescaler()
{
return M16c60_ADC_PRESCALE_4;
}
}
| nesC | 4 | mtaghiza/tinyos-main-1 | tos/platforms/mulle/DemoSensorP.nc | [
"BSD-3-Clause"
] |
# methods.fy
# Examples of methods definitions, and method overriding in fancy
class Foo {
def bar {
Console println: "version 1"
}
}
f = Foo new
f bar # prints: version 1
# redefine Foo#bar
class Foo {
def bar {
Console println: "version 2"
}
}
f bar # prints: version 2
# redefine Foo#bar again
class Foo {
def bar {
Console println: "version 3"
}
}
f bar # prints: version 3
| Fancy | 3 | bakkdoor/fancy | examples/methods.fy | [
"BSD-3-Clause"
] |
PROGRAM
PRAGMA('project(#pragma link(libcurl.lib))')
INCLUDE('libcurl.inc')
MAP
init_q()
kill_q()
add_url_to_q(STRING pUrl)
extract_name(STRING pUrl), STRING
add_transfer(TCurlMultiClass cm, LONG i)
add_output(STRING pText)
INCLUDE('cwutil.inc')
END
multi &TCurlMultiClass
q QUEUE
url STRING(64)
fs &TCurlFileStruct
END
html_folder STRING('.\html')
MAX_PARALLEL EQUATE(10) !number of simultaneous transfers
NUM_URLS LONG, AUTO !number of urls in the queue
transfers LONG, AUTO !counter
Window WINDOW('10-at-a-time example'),AT(,,363,241),CENTER,GRAY,SYSTEM, |
FONT('Segoe UI',9)
BUTTON('Start'),AT(227,214,53),USE(?bStart)
BUTTON('Exit'),AT(302,214,53),USE(?bExit)
TEXT,AT(9,13,345,191),USE(?txtOutput),HVSCROLL,READONLY
END
CODE
!- fill queue
init_q()
NUM_URLS = RECORDS(q)
!- create folder to store downloaded htmls
CreateDirectory(html_folder)
curl::GlobalInit(CURL_GLOBAL_ALL)
multi &= NEW TCurlMultiClass
multi.Init()
!- Limit the amount of simultaneous connections curl should allow:
multi.SetOpt(CURLMOPT_MAXCONNECTS, MAX_PARALLEL)
!- add first 10 urls
LOOP transfers = 1 TO MAX_PARALLEL
add_transfer(multi, transfers)
END
!- at this point transfers = 11 (MAX_PARALLEL + 1)
OPEN(Window)
ACCEPT
CASE ACCEPTED()
OF ?bStart
DISABLE(?bStart)
SETCURSOR(CURSOR:Wait)
DO Routine::Transfer
SETCURSOR()
OF ?bExit
POST(EVENT:CloseWindow)
END
END
kill_q()
multi.Cleanup()
DISPOSE(multi)
curl::GlobalCleanup()
Routine::Transfer ROUTINE
DATA
still_alive LONG, AUTO
cmsg LIKE(TCURLMsg)
easy &TCurlClass
httpRespCode LONG, AUTO
qIndex LONG, AUTO
CODE
add_output('TRANSFER STARTED...')
LOOP
!- Perform returns a number of handles that still transfer data
still_alive = multi.Perform()
LOOP WHILE multi.ReadInfo(cmsg)
IF cmsg.msg = CURLMSG_DONE
!- find current curl instance
easy &= multi.Find(cmsg.easy_handle)
IF NOT easy &= NULL
!- get index of queue item bound to this curl
easy.GetInfo(CURLINFO_PRIVATE, qIndex)
!- get queue item
GET(q, qIndex)
IF NOT ERRORCODE()
IF cmsg.result = CURLE_OK
!- get HTTP response code
httpRespCode = easy.GetResponseCode()
IF httpRespCode = 200 !- OK
add_output('<<'& CLIP(q.url) &'> DONE.')
ELSE !- not OK
!- if respcode <> 200 (OK), notify a user.
add_output('<<'& CLIP(q.url) &'> DONE. Response code '& httpRespCode)
END
ELSE
add_output('<<'& CLIP(q.url) &'> ERROR: '& curl::StrError(cmsg.result))
END
END
!- remove completed transfer
multi.Remove(cmsg.easy_handle)
END
ELSE
add_output('ReadInfo Error: '& cmsg.msg)
END
IF transfers <= NUM_URLS
!- add next transfer
add_transfer(multi, transfers)
transfers += 1
END
END
IF still_alive
multi.Wait(1000)
END
WHILE (still_alive <> 0) OR (transfers <= NUM_URLS)
add_output('TRANSFER COMPLETE! Downloaded files are in "'& LONGPATH(html_folder) &'"')
init_q PROCEDURE()
CODE
add_url_to_q('https://www.microsoft.com') !
add_url_to_q('https://www.google.com')
add_url_to_q('https://www.yahoo.com') !
add_url_to_q('https://www.ibm.com')
add_url_to_q('https://www.mysql.com') !
add_url_to_q('https://www.oracle.com')
add_url_to_q('https://www.ripe.net') !
add_url_to_q('https://www.iana.org') !
add_url_to_q('https://www.amazon.com') !
add_url_to_q('https://www.netcraft.com') !
add_url_to_q('https://www.heise.de') !
add_url_to_q('https://www.chip.de') !
add_url_to_q('https://www.ca.com') !
add_url_to_q('https://www.cnet.com') !
add_url_to_q('https://www.mozilla.org')
add_url_to_q('https://www.cnn.com')
add_url_to_q('https://www.wikipedia.org') !
add_url_to_q('https://www.dell.com') !
add_url_to_q('https://www.hp.com') !
add_url_to_q('https://www.cert.org')
add_url_to_q('https://www.mit.edu') !
add_url_to_q('https://www.nist.gov') !
add_url_to_q('https://www.ebay.com') !
add_url_to_q('https://www.playstation.com')
add_url_to_q('https://www.uefa.com') !
add_url_to_q('https://www.ieee.org') !
add_url_to_q('https://www.apple.com') !
add_url_to_q('https://www.symantec.com') !
add_url_to_q('https://www.zdnet.com') !
add_url_to_q('https://www.fujitsu.com/global/') !
add_url_to_q('https://www.supermicro.com') !
add_url_to_q('https://www.hotmail.com')
add_url_to_q('https://www.ietf.org') !
add_url_to_q('https://www.bbc.co.uk') !
add_url_to_q('https://www.foxnews.com') !
add_url_to_q('https://www.msn.com') !
add_url_to_q('https://www.wired.com') !
add_url_to_q('https://www.sky.com') !
add_url_to_q('https://www.usatoday.com') !
add_url_to_q('https://www.cbs.com') !
add_url_to_q('https://www.nbc.com') !
add_url_to_q('https://slashdot.org') !
add_url_to_q('https://www.informationweek.com') !
add_url_to_q('https://apache.org') !
add_url_to_q('https://www.un.org')
kill_q PROCEDURE()
ndx LONG, AUTO
CODE
LOOP ndx = RECORDS(q) TO 1 BY -1
GET(q, ndx)
DISPOSE(q.fs)
q.fs &= NULL
PUT(q)
END
FREE(q)
add_url_to_q PROCEDURE(STRING pUrl)
CODE
CLEAR(q)
q.url = pUrl
q.fs &= NEW TCurlFileStruct
!- set file name as xxx.com.htm
q.fs.Init(html_folder &'\'& extract_name(pUrl) &'.htm')
ADD(q)
!- extract a site name from full url (removes https://, www, etc)
extract_name PROCEDURE(STRING pUrl)
startpos UNSIGNED, AUTO
endpos UNSIGNED, AUTO
CODE
startpos = INSTRING('://', pUrl, 1, 1)
IF startpos
startpos += 3
ELSE
startpos = 1
END
IF SUB(pUrl, startpos, 4) = 'www.'
startpos += 4
END
endpos = INSTRING('/', pUrl, 1, startpos)
IF endpos
endpos -= 1
ELSE
endpos = LEN(CLIP(pUrl))
END
RETURN pUrl[startpos : endpos]
add_transfer PROCEDURE(TCurlMultiClass cm, LONG i)
ce &TCurlClass
CODE
GET(q, i)
IF NOT ERRORCODE()
ce &= cm.AddCurl()
IF NOT ce &= NULL
ce.SetUrl(q.url)
ce.SetSSLVerifyHost(FALSE)
ce.SetSSLVerifyPeer(FALSE)
ce.SetOpt(CURLOPT_PRIVATE, i)
ce.SetWriteCallback(curl::FileWrite, ADDRESS(q.fs))
! ce.SetDebugCallback(curl::DebugCallback)
END
END
add_output PROCEDURE(STRING pText)
CODE
?txtOutput{PROP:Text} = ?txtOutput{PROP:Text} & pText &'<13,10>'
SELECT(?txtOutput, LEN(?txtOutput{PROP:Text}))
DISPLAY(?txtOutput) | Clarion | 4 | mikeduglas/libcurl | examples/10-at-a-time/ten-at-a-time.clw | [
"curl"
] |
data {
int<lower=1> N;
int<lower=0> y[N];
}
parameters {
real<lower=0> lambda;
}
model {
lambda ~ exponential(0.2);
y ~ poisson(lambda);
}
generated quantities {
real log_lik[N];
int y_rep[N];
for (n in 1:N) {
y_rep[n] = poisson_rng(lambda);
log_lik[n] = poisson_lpmf(y[n] | lambda);
}
}
| Stan | 4 | tonyctan/BDA_R_demos | demos_rstan/ppc/poisson-simple.stan | [
"BSD-3-Clause"
] |
--TEST--
Bug #47516 (nowdoc cannot be embedded in heredoc but can be embedded in double quote)
--FILE--
<?php
$s='substr';
$htm=<<<DOC
{$s(<<<'ppp'
abcdefg
ppp
,0,3)}
DOC;
echo "$htm\n";
$htm=<<<DOC
{$s(<<<ppp
abcdefg
ppp
,0,3)}
DOC;
echo "$htm\n";
$htm="{$s(<<<'ppp'
abcdefg
ppp
,0,3)}
";
echo "$htm\n";
?>
--EXPECT--
abc
abc
abc
| PHP | 4 | NathanFreeman/php-src | Zend/tests/bug47516.phpt | [
"PHP-3.01"
] |
use @pony_exitcode[None](code: I32)
actor Main
new create(env: Env) =>
var r: I32 = 0
while true do
try
if Bool(false) then error end
break
then
r = 42
end
end
@pony_exitcode(r)
| Pony | 4 | rtpax/ponyc | test/libponyc-run/try-then-clause-break/main.pony | [
"BSD-2-Clause"
] |
"""Tests for the awair component."""
| Python | 0 | domwillcode/home-assistant | tests/components/awair/__init__.py | [
"Apache-2.0"
] |
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
[ChromeOnly,
Constructor(DOMString type, optional GroupedHistoryEventInit eventInitDict)]
interface GroupedHistoryEvent : Event
{
readonly attribute Element? otherBrowser;
};
dictionary GroupedHistoryEventInit : EventInit
{
Element? otherBrowser = null;
};
| WebIDL | 4 | tlively/wasm-bindgen | crates/web-sys/webidls/enabled/GroupedHistoryEvent.webidl | [
"Apache-2.0",
"MIT"
] |
/* Mac, ips and network of the MB, that acts as a router in this configuration (it must be the gateway)
* check around line 95 to be a transparent ARP proxy instead.
* In this example, clients are on the 10.220/16 network, and servers on the 10.221/16 network.
* We have no load balancer in this configuration (though that is supported) so client must query
* the address of the server on the 10.221/16 network. If the gateway of the clients is set correctly
* (eg ip route add 10.221.0.0/16 via 10.220.0.1), the ARP resolution will lead to the packets being sent to
* the LB. Perhaps the easisest to understand is to look in mininet/topology.py, and check the Mininet
* network.
**/
define($MAC1 98:03:9b:33:fe:e2) //Mac address of the port facing clients
define($MAC2 98:03:9b:33:fe:db) //Mac address of the port facing servers
define($NET1 10.220.0.0/16)
define($NET2 10.221.0.0/16)
define($IP1 10.220.0.1)
define($IP2 10.221.0.1)
define($PORT1 0) //DPDK port index, can be a PCIe address, but not an ifname
define($PORT2 1)
//IDS parameters
//Not the IDS runs on both paths. You may not want this.
define($word ATTACK) // will look for the word "ATTACK"
define($mode ALERT) /* just raise an alert. Valid values are :
* ALERT : print an alert, does not change anything. Set readonly below to 1 for performance, as well as tcpchecksum to 0
* MASK : Mask the text with asterisks
* CLOSE : Close the connection if the pattern is found
* REMOVE : Remove the word, HTTP must be enabled!!! (else the client will wait for the missing bytes). Uncomment the lines at the bottom of the file.
* REPLACE : Replace with some text. If the text length is different, you need HTTP mode too!!
* FULL : Remove the pattern, and add the full content of "$pattern" see below. This need the HTTPIn element to be in buffering mode, as adding bytes need to change the content length.
*/
define($all 0) //Search for multiple occurences. Not optimized.
define($pattern DELETED)
//Stack Parameters
define($inreorder 1) //Enable reordering
define($readonly 0) //Read-only (payload is never modified)
define($tcpchecksum 1) //Fix tcp checksum
define($checksumoffload 1) //Enable hardware checksum offload
//IO paramter
define($bout 32)
define($ignore 0)
//Debug parameters
define($rxverbose 99)
define($txverbose 99)
define($printarp 0)
define($printunknown 0)
//TSCClock allows fast user-level timing
TSCClock(NOWAIT true);
//JiffieClock use a counter for jiffies instead of reading the time (much like Linux)
JiffieClock(MINPRECISION 1000);
//ARPDispatcher separate ARP queries, ARP responses, and other IP packets
elementclass ARPDispatcher {
input[0]->
iparp :: CTXDispatcher(
12/0800,
12/0806,
-)
iparp[0] -> [0]output
iparp[1] -> arptype ::CTXDispatcher(20/0001, 20/0002, -)
iparp[2] -> [3]output
arptype[0] -> [1]output
arptype[1] -> [2]output
arptype[2] -> [3]output
}
tab :: ARPTable
/**
* Receiver encapsulate everything to handle one port (CTXManager, ARP management, IP checker, ...
*
*/
elementclass Receiver { $port, $mac, $ip, $range |
input[0]
-> arpq :: ARPQuerier($ip, $mac, TABLE tab)
-> etherOUT :: Null
f :: FromDPDKDevice($port, VERBOSE $rxverbose, PROMISC false, RSS_AGGREGATE 1, THREADOFFSET 0, MAXTHREADS 1)
-> fc :: CTXManager(BUILDER 1, AGGCACHE false, CACHESIZE 65536, VERBOSE 1, EARLYDROP true)
-> arpr :: ARPDispatcher()
arpr[0]
-> FlowStrip(14)
-> receivercheck :: CheckIPHeader(CHECKSUM false)
-> inc :: CTXDispatcher(9/01 0, 9/06 0, -)
inc[0] //TCP or ICMP
-> [0]output;
inc[1]
-> IPPrint("UNKNOWN IP")
-> Unstrip(14)
-> Discard
arpr[1]
-> Print("RX ARP Request $mac", -1, ACTIVE $printarp)
-> arpRespIN :: ARPResponder($range $mac)
-> Print("TX ARP Responding", -1, ACTIVE $printarp)
-> etherOUT;
arpRespIN[1] -> Print("ARP Packet not for $mac", -1) -> Discard
arpr[2]
-> Print("RX ARP Response $mac", -1, ACTIVE $printarp)
-> [1]arpq;
arpr[3] -> Print("Unknown packet type IN???",-1, ACTIVE $printunknown) -> Discard();
etherOUT
-> t :: ToDPDKDevice($port,BLOCKING true,BURST $bout, ALLOC true, VERBOSE $txverbose, TCO $checksumoffload)
}
//Replace the second IP1 per NET1 to act as a transparent ARP proxy, therefore not routing
r1 :: Receiver($PORT1,$MAC1,$IP1,$IP1);
r2 :: Receiver($PORT2,$MAC2,$IP2,$IP2);
//Idle -> host :: Null;
r1
-> up ::
{ [0]
-> IPIn
-> tIN :: TCPIn(FLOWDIRECTION 0, OUTNAME up/tOUT, RETURNNAME down/tIN, REORDER $inreorder)
//HTTPIn, uncomment when needed (see above)
//-> HTTPIn(HTTP10 false, NOENC false, BUFFER 0)
-> wm :: WordMatcher(WORD $word, MODE $mode, ALL $all, QUIET false, MSG $pattern)
//Same than IN
//-> HTTPOut()
-> tOUT :: TCPOut(READONLY $readonly, CHECKSUM $tcpchecksum)
-> IPOut(READONLY $readonly, CHECKSUM false)
-> [0]
}
-> r2;
r2
-> down ::
{ [0]
-> IPIn
-> tIN :: TCPIn(FLOWDIRECTION 1, OUTNAME down/tOUT, RETURNNAME up/tIN, REORDER $inreorder)
//-> HTTPIn(HTTP10 false, NOENC false, BUFFER 0)
-> wm :: WordMatcher(WORD $word, MODE $mode, ALL $all, QUIET false, MSG $pattern)
//-> HTTPOut()
-> tOUT :: TCPOut(READONLY $readonly, CHECKSUM $tcpchecksum)
-> IPOut(READONLY $readonly, CHECKSUM false)
-> [0]
}
-> r1;
| Click | 4 | MassimoGirondi/fastclick | conf/middleclick/middlebox-tcp-ids.click | [
"BSD-3-Clause-Clear"
] |
package unit.issues;
import haxe.Json;
class Issue4723 extends unit.Test {
function test() {
var t = new NoNormalMethods();
eq(10, t.test());
var t = new HasNormalMethod();
eq(10, t.test());
eq(20, t.test2());
}
}
private class NoNormalMethods {
public function new() {}
public dynamic function test() return 10;
}
private class HasNormalMethod {
public function new() {}
public dynamic function test() return 10;
public function test2() return 20;
} | Haxe | 4 | wiltonlazary/haxe | tests/unit/src/unit/issues/Issue4723.hx | [
"MIT"
] |
resource "aws_security_group" "elb_sec_group" {
description = "Allow traffic from the internet to ELB port 80"
vpc_id = "${var.vpc_id}"
ingress {
from_port = 80
to_port = 80
protocol = "tcp"
cidr_blocks = ["${split(",", var.allowed_cidr_blocks)}"]
}
egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
}
}
resource "aws_security_group" "dokku_allow_ssh_from_internal" {
description = "Allow git access over ssh from the private subnet"
vpc_id = "${var.vpc_id}"
ingress {
from_port = 22
to_port = 22
protocol = "tcp"
cidr_blocks = ["${var.private_subnet_cidr}"]
}
egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
}
}
resource "aws_security_group" "allow_from_elb_to_instance" {
description = "Allow traffic from the ELB to the private instance"
vpc_id = "${var.vpc_id}"
ingress {
security_groups = ["${aws_security_group.elb_sec_group.id}"]
from_port = 80
to_port = 80
protocol = "tcp"
}
egress {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = ["0.0.0.0/0"]
}
}
resource "aws_instance" "dokku" {
ami = "ami-47a23a30"
instance_type = "${var.instance_type}"
associate_public_ip_address = false
key_name = "${var.key_name}"
subnet_id = "${var.private_subnet_id}"
vpc_security_group_ids = [
"${var.bastion_sec_group_id}",
"${aws_security_group.allow_from_elb_to_instance.id}",
"${aws_security_group.dokku_allow_ssh_from_internal.id}"
]
tags {
Name = "${var.name}"
}
connection {
user = "ubuntu"
private_key = "${var.private_key}"
bastion_host = "${var.bastion_host}"
bastion_port = "${var.bastion_port}"
bastion_user = "${var.bastion_user}"
bastion_private_key = "${var.bastion_private_key}"
}
provisioner "file" {
source = "${path.module}/../scripts/install-dokku.sh"
destination = "/home/ubuntu/install-dokku.sh"
}
provisioner "remote-exec" {
inline = [
"chmod +x /home/ubuntu/install-dokku.sh",
"HOSTNAME=${var.hostname} /home/ubuntu/install-dokku.sh"
]
}
}
resource "aws_elb" "elb_dokku" {
name = "elb-dokku-${var.name}"
subnets = ["${var.public_subnet_id}"]
security_groups = ["${aws_security_group.elb_sec_group.id}"]
listener {
instance_port = 80
instance_protocol = "http"
lb_port = 80
lb_protocol = "http"
}
health_check {
healthy_threshold = 2
unhealthy_threshold = 2
timeout = 3
target = "HTTP:80/"
interval = 30
}
instances = ["${aws_instance.dokku.id}"]
cross_zone_load_balancing = false
idle_timeout = 400
tags {
Name = "elb-dokku-${var.name}"
}
}
resource "aws_route53_record" "dokku-deploy" {
zone_id = "${var.zone_id}"
name = "deploy.${var.hostname}"
type = "A"
ttl = "300"
records = ["${aws_instance.dokku.private_ip}"]
}
resource "aws_route53_record" "dokku-wildcard" {
zone_id = "${var.zone_id}"
name = "*.${var.hostname}"
type = "CNAME"
ttl = "300"
records = ["${aws_elb.elb_dokku.dns_name}"]
} | HCL | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/HCL/main.tf | [
"MIT"
] |
main() {
fp := fopen("test.txt", "w")
assert(fp != null)
fprintf(fp, "Hello, ffigen!\n")
fclose(fp)
printf("test.txt has been written to disk\n")
}
| mupad | 3 | jturner/muon | ffigen/example.mu | [
"MIT"
] |
#!perl
#
# Tests for user-specified delimiter functions
# These tests first appeared in version 1.20.
use strict;
use warnings;
use Test::More tests => 19;
use_ok 'Text::Template' or exit 1;
# (1) Try a simple delimiter: <<..>>
# First with the delimiters specified at object creation time
our $V = $V = 119;
my $template = q{The value of $V is <<$V>>.};
my $result = q{The value of $V is 119.};
my $template1 = Text::Template->new(
TYPE => 'STRING',
SOURCE => $template,
DELIMITERS => [ '<<', '>>' ])
or die "Couldn't construct template object: $Text::Template::ERROR; aborting";
my $text = $template1->fill_in();
is $text, $result;
# (2) Now with delimiter choice deferred until fill-in time.
$template1 = Text::Template->new(TYPE => 'STRING', SOURCE => $template);
$text = $template1->fill_in(DELIMITERS => [ '<<', '>>' ]);
is $text, $result;
# (3) Now we'll try using regex metacharacters
# First with the delimiters specified at object creation time
$template = q{The value of $V is [$V].};
$template1 = Text::Template->new(
TYPE => 'STRING',
SOURCE => $template,
DELIMITERS => [ '[', ']' ])
or die "Couldn't construct template object: $Text::Template::ERROR; aborting";
$text = $template1->fill_in();
is $text, $result;
# (4) Now with delimiter choice deferred until fill-in time.
$template1 = Text::Template->new(TYPE => 'STRING', SOURCE => $template);
$text = $template1->fill_in(DELIMITERS => [ '[', ']' ]);
is $text, $result;
# (5-18) Make sure \ is working properly
# (That is to say, it is ignored.)
# These tests are similar to those in 01-basic.t.
my @tests = (
'{""}' => '', # (5)
# Backslashes don't matter
'{"}"}' => undef,
'{"\\}"}' => undef, # One backslash
'{"\\\\}"}' => undef, # Two backslashes
'{"\\\\\\}"}' => undef, # Three backslashes
'{"\\\\\\\\}"}' => undef, # Four backslashes (10)
'{"\\\\\\\\\\}"}' => undef, # Five backslashes
# Backslashes are always passed directly to Perl
'{"x20"}' => 'x20',
'{"\\x20"}' => ' ', # One backslash
'{"\\\\x20"}' => '\\x20', # Two backslashes
'{"\\\\\\x20"}' => '\\ ', # Three backslashes (15)
'{"\\\\\\\\x20"}' => '\\\\x20', # Four backslashes
'{"\\\\\\\\\\x20"}' => '\\\\ ', # Five backslashes
'{"\\x20\\}"}' => undef, # (18)
);
while (my ($test, $result) = splice @tests, 0, 2) {
my $tmpl = Text::Template->new(
TYPE => 'STRING',
SOURCE => $test,
DELIMITERS => [ '{', '}' ]);
my $text = $tmpl->fill_in;
my $ok = (!defined $text && !defined $result || $text eq $result);
ok($ok) or diag "expected .$result., got .$text.";
}
| Perl | 5 | pmesnier/openssl | external/perl/Text-Template-1.56/t/delimiters.t | [
"Apache-2.0"
] |
Clojure support for Lounge
define ['./eval', './docOrg', 'bluebird', './gen', 'immutable', './editor', './editorSupport', 'acorn', 'lodash', 'jquery'], (Eval, DocOrg, Bluebird, Gen, Immutable, Editor, EditorSupport, Acorn, _, $)->
{
setLounge
parseIt
Scope
lineColumnStrOffset
presentHtml
} = Eval
{
blockSource
} = DocOrg
{
Promise
} = Bluebird
{
SourceNode
SourceMapConsumer
SourceMapGenerator
jsCodeFor
} = Gen
Leisure.WispNS = lounge: tools: {}
Wisp = null
wispCompile = null
wispFileCounter = 0
modules =
immutable: Immutable
eval: Eval
"doc-org": DocOrg
editor: Editor
"editor-support": EditorSupport
lodash: _
jquery: $
class WispScope extends Scope
constructor: (nsName)->
super()
@_ns_ = id: nsName
@exports = {}
wispEval: (s)->
try
Leisure.wispScope = this
@eval s
finally
Leisure.wispScope = null
wispRequire = (s, base)->
s = new URL(s, 'http://x\/' + base.replace(/\./g, "\/")).pathname.replace(/^\//, '').replace /\//g, '.'
_.get(modules, s) || findNs(s).exports
findNs = (nsName, create)->
scope = _.get Leisure.WispNS, nsName
if !scope && create
_.set Leisure.WispNS, nsName, scope = new WispScope nsName
scope
wp = null
translateIdentifierWord = null
wispPromise = ->
wp || (wp = new Promise (resolve, reject)->
req = window.require
window.require = null
requirejs ['lib/wisp'], (W)->
Leisure.Wisp = modules.wisp = Wisp = W
{translateIdentifierWord} = W.backend.escodegen.writer
baseWispCompile = Wisp.compiler.compile
window.require = req
wispCompile = (args...)->
node = baseWispCompile args...
if node.error then throw node.error
node
Leisure.wispCompilePrim = wispCompile
Leisure.wispCompileBase = baseWispCompile
exports = Leisure.WispNS.lounge.tools
newMacroDef = wispCompile """
(defn expand-defmacro
"Like defn, but the resulting function name is declared as a
macro and will be used as a macro by the compiler when it is
called."
[&form id & body]
(let [fn (with-meta `(defn ~id ~@body) (meta &form))
form `(do ~fn ~id)
ast (analyze form)
code (compile ast)
nsObj (or (and Leisure.wispScope Leisure.wispScope.*ns*) *ns*)
nsName (if nsObj (:id nsObj))
ns (or Leisure.wispScope (and *ns* (Leisure.wispFindNs nsName)))
wrapped (if ns
(str \"(function(){var exports = Leisure.WispNS.\" (:id (:_ns_ ns)) \".exports; return \" code \";})()\")
code)
macro (if ns
(.eval ns wrapped)
(eval code))]
(if window.DEBUG_WISP (do debugger 3))
(install-macro! id macro)
nil))
(install-macro! 'defmacro (with-meta expand-defmacro {:implicit [:&form]}))
"""
eval """
(function() {
var symbol = Leisure.Wisp.ast.symbol;
var meta = Leisure.Wisp.ast.meta;
var withMeta = Leisure.Wisp.ast.withMeta;
var gensym = Leisure.Wisp.ast.gensym;
var installMacro = Leisure.Wisp.expander.installMacro;
var list = Leisure.Wisp.sequence.list;
var vec = Leisure.Wisp.sequence.vec;
var analyze = Leisure.Wisp.analyzer.analyze;
var compile = Leisure.Wisp.backend.escodegen.writer.compile;
#{newMacroDef.code}
})()
"""
resolve wispCompile)
Compile Wisp code, optionally in a namespace.
class Compiler
constructor: ->
compile: (s, @nsName, @wrapFunction, @returnList)->
@reqs = ''
@splice = ''
@exportLocs = []
@pad = if @wrapFunction then ' ' else ''
try
oldScope = Leisure.wispScope
if @nsName && newScope = findNs @nsName
Leisure.wispScope = newScope
@result = wispCompile s, "source-uri": "wispEval-#{wispFileCounter++}"
finally
if newScope then Leisure.wispScope = oldScope
if @declaresNs = (@result.ast[0].op == 'ns')
@nsName = @result.ast[0].form.tail.head?.name
nameSpace: @handleNameSpace()
code: @scanNodes()
handleNameSpace: ->
@gennedNs = true
#needsExports = _.find @result.ast, (n)-> n.op == 'def'
needsExports = true
if @nsName
nsObj = findNs @nsName, true
names = {}
findExports @result.ast, names, @exportLocs
#for node in @result.ast when node.op == 'def'
# names[translateIdentifierWord node.id.id.name] = true
if @declaresNs && @result.ast[0].require
for req in @result.ast[0].require
for ref in req.refer
names[translateIdentifierWord (ref.rename ? ref.name).name] = true
nsObj.newNames _.keys names
if needsExports
if @wrapFunction then @reqs += "exports = exports || window.Leisure.WispNS.#{@nsName}.exports;\n"
else @reqs += "var exports = window.Leisure.WispNS.#{@nsName}.exports;\n"
if @result.ast[0].require then @reqs += """
var require = function(s) {
return Leisure.wispRequire(s, '#{translateIdentifierWord @nsName}');
};
"""
if @declaresNs then @reqs += """
_ns_ = {
id: '#{@nsName}',
doc: void 0
};
"""
else if @result.ast[0].doc then @splice = """
exports._ns_.doc = _ns_.doc;
"""
@end = @result.ast[0].end ? line: 0, column: 0
if @pad then @splice = @splice.replace /\n/g, '\n' + @pad
@gennedNs = false
else if needsExports
if @wrapFunction then @reqs += "exports = exports || {};\n"
else @destroyExports = true
if @pad then @reqs = @reqs.replace /\n/g, '\n' + @pad
nsObj
scanNodes: ->
if @returnList
exprs = _.filter _.map(@result.ast, (n, i)=>
if !(n.op in ['def', 'ns']) && n.form && !(n.op == 'var' && n.form.name == 'debugger') then @result['js-ast'].body[i].loc), identity
if exprs.length then @reqs += "var $ret$ = [];\n"
else @returnList = false
else if @wrapFunction then addReturn = true
# splice in export, require, and namespace code at proper position
# edit out "var " occurances because Scope objects already declare the variables
# if returning a list, add expr results to list
# replace the bottom source-mapping comment with a new one
head = []
tail = []
foundEnd = false
startedPush = false
exprPos = 0
returnNode = null
destroyingExport = false
# prevCode lookback hack for inserting 'push(' before operation
prevCode = code: ''
con = SourceMapConsumer.fromSourceMap @result['source-map']
inExpr = false
declaredNs = false
#exportLocs = _.filter _.map @result.ast, (n)-> n.export && n.start
nodes = SourceNode.fromStringWithSourceMap @result.code, con
if addReturn
addReturn = lastLoc = _.last _.filter(_.map(@result.ast, (n, i)=> if !(n.op in ['def', 'ns']) && n.form then @result['js-ast'].body[i].loc?.start), identity)
prevLoc = line: 1, column: 0
prevSemi = null
nodes.walk (code, loc)=>
if loc?.line && (loc.line > prevLoc.line || loc.column > prevLoc.column)
prevLoc = loc
if code.match /\/\/# sourceMappingURL=/
foundEnd = true
code = code.replace /\/\/# sourceMappingURL=.*/, ''
if !code.trim() then return
else if foundEnd then return
if @destroyExports && !destroyingExport && code == "exports" && prevCode.code.match(/ *= */)
destroyingExport = true
return
else if destroyingExport
if code.match(/ *= */) then destroyingExport = false
return
if @nsName
if prevLoc && @exportLocs.length && atOrAfter(prevLoc, @exportLocs[0]) && code.match /^ *var/
declaredNs = true
@exportLocs.shift()
code = code.replace /^ *var /g, ' '
else if !declaredNs && @declaresNs && code.match /^ *var/
code = code.replace /^ *var /g, ' '
closeLoc = (loc.line? && loc) || prevLoc
if (startedPush && closeLoc.line? && ((closeLoc.line > exprs[exprPos].end.line) || (closeLoc.line == exprs[exprPos].end.line && (code.match(/^void 0;/) || closeLoc.column > exprs[exprPos].end.column))))
startedPush = false
if prevSemi
c = prevSemi.node.children[0]
c2 = c.replace(/;([ \n]*)$/, ');$1')
if prevSemi.node && c != c2 then prevSemi.node.children[0] = c2
else code = code.replace(/;([ \n]*)$/, ');$1')
exprPos++
if @returnList && !startedPush && (loc.line > exprs[exprPos]?.start.line || (loc.line == exprs[exprPos]?.start.line && loc.column >= exprs[exprPos].start.column))
startedPush = true
usedPrev = false
if prevCode?.node && !prevCode.loc.line && !prevCode.node.children[0].match /;/
c = prevCode.node.children[0]
prevCode.node.children[0] = "$ret$.push(#{c}"
usedPrev = true
if !usedPrev then code = "$ret$.push(#{code}"
if @pad then code = code.replace /\n/g, '\n' + @pad
node = new SourceNode loc.line, loc.column, loc.source, code, loc.name
if addReturn && !returnNode && loc.line == lastLoc.line && loc.column >= lastLoc.column - 1
returnNode = node
if !@gennedNs && (loc.line < @end.line + 1 || (loc.line == @end.line + 1 && loc.column < @end.column))
head.push node
else
@gennedNs = true
tail.push node
if code.trim()
prevCode = {code, loc, node}
if code.match(/;[ \n]*$/) && !code.match(/^void 0;/) then prevSemi = prevCode
if loc.line && (loc.line > prevLoc.line || (loc.line == prevLoc.line && loc.column > prevLoc.column))
prevLoc = loc
file = (_.find nodes.children, (n)-> n instanceof SourceNode)?.source
children = [head, new SourceNode(1, 0, file, @splice), tail]
if returnNode
code = returnNode.children[0]
if _.last(tail) == returnNode then returnNode.children[0] = "return #{code}"
else
returnNode.children[0] = "var $ret$ = #{code}"
children.push "\n#{@pad}return $ret$;\n"
else if @returnList then children.push(if @wrapFunction then "\n#{@pad}return $ret$;\n" else "\n#{@pad}$ret$;\n")
if startedPush
lastChildren = _.last(tail)?.children || _.last(head)?.children
lastCode = lastChildren[lastChildren.length - 1]
lastChildren[lastChildren.length - 1] = lastCode.replace(/;([ \n]*)$/, ');$1')
if @reqs then children.unshift @reqs
if @wrapFunction
children.unshift "(function(exports, console){\n#{@pad}console = console ? console : window.console;\n#{@pad}"
children.push '})'
splicedResult = new SourceNode(1, 0, file, children).toStringWithSourceMap()
if file then splicedResult.map.setSourceContent file, con.sourceContentFor file
Acorn.parse splicedResult.code
splicedResult.code + "\n//# sourceMappingURL=data:application/json;base64,#{btoa JSON.stringify splicedResult.map.toJSON()}\n"
dumpNodes = (nodes)->
output = ""
nodes.walk (code, loc)->
output += "#{loc.line}:#{loc.column} #{code}\n"
output
lastExportLoc = null
findExports = (ast, names, exportLocs)->
baseFindExports ast, names, exportLocs
lastExportLoc = null
baseFindExports = (ast, names, exportLocs)->
if ast.start then lastExportLoc = ast.start
names = names ? []
if _.isArray ast
for a in ast
baseFindExports a, names, exportLocs
else
if ast.op == 'def'
names[translateIdentifierWord ast.id.id.name] = true
exportLocs.push lastExportLoc
for n in ['statements', 'result', 'methods', 'init']
if ast[n] then baseFindExports ast[n], names, exportLocs
atOrAfter = (nodeLoc, astLoc)->
nodeLoc.line - 1 > astLoc.line || (nodeLoc.line - 1 == astLoc.line && nodeLoc.column >= astLoc.column)
compile = (s, nsName, @wrapFunction, returnList)->
new Compiler().compile s, nsName, @wrapFunction, returnList
Leisure.wispCompile = compile
Leisure.wispEval = wispEval = (args...)->
{nameSpace, code} = compile args...
if nameSpace then nameSpace.wispEval code
else eval code
Leisure.wispRequire = wispRequire
Leisure.wispFindNs = findNs
sourceMapFromCode = (code)->
new SourceMapConsumer JSON.parse atob code.substring(code.lastIndexOf '\n', code.length - 2).match(/sourceMappingURL=.*base64,([^\n]*)\n/)[1]
codeOffset = (err, code, src, originalSrc)->
[ign, line, column] = err.stack.match /\n +at .*:([0-9]*):([0-9]*)/
line = Number line
column = Number column
{line, column} = sourceMapFromCode(code).originalPositionFor {line: line - 1, column}
lineColumnStrOffset(src, line, column) + (originalSrc ? src).length - src.length
envFunc = (env)->
env.presentHtml = (str)->
if str.toString()
str = str.toString()
if str.name then str = str.name
presentHtml str.replace(/\uFEFF/g, '').replace(/\uA789/g, ':').replace(/\u2044/g, '\/')
env.executeText = (text, props, cont)-> setLounge this, =>
result = [Leisure.wispEval(text)]
if cont then cont result else result
env.executeBlock = (block, cont)->
p = @compileBlock(block)
if p instanceof Promise then p.then (f)-> f.call this, cont
else p.call this, cont
env.compileBlock = (block)->
action = =>
original = res = "#{blockSource(block).trim()}"
try
props = @data.properties(block)
ns = props.namespace?.trim() ? undefined
if ns
if props.macro then macros = true
#res = "(ns #{ns})\n#{res}"
ns = ns.match(/^[^ ]+/)[0]
{nameSpace, code} = compile res, ns, true, true
func = if nameSpace then nameSpace.wispEval code else eval code
(cont, args...)->
env = this
envConsole = log: (args...)-> env.write args.join ' '
try
setLounge env, -> (cont ? identity) _.filter func.call(env, null, envConsole, args...), (n)-> typeof n != 'undefined'
catch err
console.error err.stack ? err
if (cur = (env.data.getBlock block._id)) && original != blockSource(cur).trim()
console.error "Warning, code is from a different version of block #{block._id}"
env.errorAt codeOffset(err, code, res, original), err.message
(cont ? identity) []
catch err
console.error err.stack ? err
if m = err.message.match /^([^\n]+)\nline:([^\n]+)\ncolumn:([^\n]+)(\n|$)/
[ignore, msg, line, column] = m
pos = lineColumnStrOffset(res, Number(line.trim()), Number(column.trim()))
pos += original.length - res.length
env.errorAt pos, msg
else if code
env.errorAt codeOffset(err, code, res, original), err.message
else env.errorAt 0, err.message
if wispPromise().isResolved() then action()
else wispPromise().then action
env.generateCode = (text, noFunc)-> debugger
env
Leisure.assert = (test, msg)-> assert test, msg
(env)->
wispPromise().then ->
envFunc env
resolve envFunc
| Literate CoffeeScript | 5 | zot/Leisure | src/wispSupport.litcoffee | [
"Zlib"
] |
use std::fs;
use std::path::Path;
use std::process::{self, Command};
#[track_caller]
pub(crate) fn try_hard_link(src: impl AsRef<Path>, dst: impl AsRef<Path>) {
let src = src.as_ref();
let dst = dst.as_ref();
if let Err(_) = fs::hard_link(src, dst) {
fs::copy(src, dst).unwrap(); // Fallback to copying if hardlinking failed
}
}
#[track_caller]
pub(crate) fn spawn_and_wait(mut cmd: Command) {
if !cmd.spawn().unwrap().wait().unwrap().success() {
process::exit(1);
}
}
pub(crate) fn copy_dir_recursively(from: &Path, to: &Path) {
for entry in fs::read_dir(from).unwrap() {
let entry = entry.unwrap();
let filename = entry.file_name();
if filename == "." || filename == ".." {
continue;
}
if entry.metadata().unwrap().is_dir() {
fs::create_dir(to.join(&filename)).unwrap();
copy_dir_recursively(&from.join(&filename), &to.join(&filename));
} else {
fs::copy(from.join(&filename), to.join(&filename)).unwrap();
}
}
}
| Rust | 5 | mbc-git/rust | compiler/rustc_codegen_cranelift/build_system/utils.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
-- | Tests for stuff under Hasura.Eventing hierarchy
module Hasura.EventingSpec (spec) where
import Control.Concurrent.STM.TVar
import Data.HashMap.Strict qualified as Map
import Data.Set qualified as Set
import Data.Time.Clock
import Hasura.Eventing.EventTrigger
import Hasura.Eventing.ScheduledTrigger
import Hasura.Prelude
import Hasura.RQL.Types
import System.Cron.Parser
import Test.Hspec
spec :: Spec
spec = do
scheduleTriggersSpec
eventTriggersLockingUnlockingSpec
scheduleTriggersSpec :: Spec
scheduleTriggersSpec = do
-- https://hasura.io/docs/latest/graphql/core/scheduled-triggers/create-cron-trigger.html
--
-- FYI this is quite helpful for experimenting with cron expressions:
-- https://crontab.guru/
describe "cron" $ do
it "calculates future events sanely" $ do
cronTest
"* * * * *"
[ "2021-04-20 16:20:00 UTC",
"2021-04-20 16:21:00 UTC",
"2021-04-20 16:22:00 UTC"
]
cronTest
"5 0 * 8 *" -- “At 00:05 in August.”
[ "2021-08-01 00:05:00 UTC",
"2021-08-02 00:05:00 UTC",
"2021-08-03 00:05:00 UTC"
]
cronTest
"15 14 1 * *" -- “At 14:15 on day-of-month 1.”
[ "2021-05-01 14:15:00 UTC",
"2021-06-01 14:15:00 UTC",
"2021-07-01 14:15:00 UTC"
]
cronTest
"0 22 * * 1-5" -- “At 22:00 on every day-of-week from Monday through Friday.”
[ "2021-04-20 22:00:00 UTC",
"2021-04-21 22:00:00 UTC",
"2021-04-22 22:00:00 UTC"
]
where
-- A few unit tests for schedule projection into the future, from an
-- arbitrary time:
now = read "2021-04-20 16:19:19.450 UTC" :: UTCTime -- Tuesday
cronTest cronExpr expected = case parseCronSchedule cronExpr of
Left e -> error $ "Fix test: " <> show e
Right sched ->
generateScheduleTimes now 3 sched
`shouldBe` map read expected
eventTriggersLockingUnlockingSpec :: Spec
eventTriggersLockingUnlockingSpec = do
describe "check locking and unlocking of events" $ do
lockedEventsContainer <- runIO $ newTVarIO mempty
let eventId = EventId "a7aece90-4a6a-4a8c-ad9d-da5f25dacad9"
it "locks events correctly" $ do
saveLockedEventTriggerEvents SNDefault [eventId] lockedEventsContainer
currentLockedEvents <- readTVarIO lockedEventsContainer
currentLockedEvents `shouldBe` (Map.singleton SNDefault (Set.singleton eventId))
it "unlocks (removes) an event correctly from the locked events" $ do
removeEventTriggerEventFromLockedEvents SNDefault eventId lockedEventsContainer
currentLockedEvents <- readTVarIO lockedEventsContainer
currentLockedEvents `shouldBe` (Map.singleton SNDefault mempty)
| Haskell | 4 | eazyfin/graphql-engine | server/src-test/Hasura/EventingSpec.hs | [
"Apache-2.0",
"MIT"
] |
functions {
// declare C++ functions
real getCubicHittingTime(real[] theta, real t0, real t1, real threshold, int NMAX, real TOL);
real getMax(real[] theta, real t0, real t1, int NMAX, real TOL);
// coag system
real[] dz_dt(real t, real[] z, real[] theta, real[] x_r, int[] x_i) {
real lambda = theta[1];
real dz = -lambda*z[1];
return { dz };
}
// solves tridiagonal matrix Ax=f with 2 across
// across the diagonal, a on the lower diag,
// and c on the upper diag
vector thomas_solve(vector a, vector c, vector f) {
int N = rows(f);
real alpha[N];
real beta[N-1];
real y[N];
vector[N] x;
alpha[1] = 2;
y[1] = f[1];
for(i in 2:N) {
beta[i-1] = a[i-1]/alpha[i-1];
alpha[i] = 2 - beta[i-1]*c[i-1];
y[i] = f[i] - beta[i-1]*y[i-1];
}
x[N] = y[N]/alpha[N];
for(i in 1:(N-1)) {
x[N-i] = (y[N-i]-c[N-i]*x[N-i+1])/alpha[N-i];
}
return x;
}
vector diff(vector x) {
int N = rows(x);
vector[N-1] d = x[2:N]-x[1:(N-1)];
return d;
}
// takes in points x, and function evaluated at those points, f
vector get_cubic_spline_coefficients(vector x, vector f) {
int N = rows(x)-1;
vector[N] h = diff(x);
vector[N-1] mu_ = h[1:(N-1)] ./ (h[1:(N-1)] + h[2:N]);
vector[N-1] lambda_ = h[2:N] ./ (h[1:(N-1)] + h[2:N]);
vector[N-1] d_ = 6.0 ./ (h[1:(N-1)]+h[2:N]) .* ((f[3:(N+1)]-f[2:N])./h[2:N]-(f[2:N]-f[1:(N-1)])./h[1:(N-1)]);
// extend vectors because there are still unknowns. see pg. 358 of Quarteroni Numerical Analysis book
vector[N] mu = append_row(mu_, 1);
vector[N] lambda = append_row(1,lambda_);
vector[N+1] d = append_row(append_row(d_[1], d_), d_[N-1]);
// solve for coefficients
vector[N+1] M = thomas_solve(mu, lambda, d);
vector[N] C = (f[2:(N+1)]-f[1:N])./ h - (h/6).*(M[2:(N+1)]-M[1:N]);
vector[N] Ct = f[1:N] - M[1:N].*((h .* h)/6);
// package up cubic spline parameters M, C, Ct into single vector
return(append_row(append_row(append_row(M,C),Ct),x));
}
// return the index of the array that is just after
// the first element of the array that is greater than a
int first_interval_index(vector x, real a) {
int N = rows(x);
for(idx in 1:N) if(x[idx] < a) return idx;
return -1;
}
}
data {
int<lower = 0> Nt; // total num time points to capture ODE
real ts[Nt]; // time points to capture ODE
real<lower=0> teg;
}
parameters {
real<lower=0> y0[1];
}
transformed parameters {
real<lower=0> teg_sim;
{
// temp variables to get soln curves from forward sim, which in turn are used
// to get continuous version of Fn soln via splines, which is used to get TEG
real z[Nt-1, 1];
vector[Nt] Clot;
vector[Nt+2*(Nt-1)+Nt] spline_params;
vector[Nt] M;
vector[Nt-1] C;
vector[Nt-1] Ct;
int i;
real lambda[1] = {1.0};
// integrate ODE and get Fn reprenting fibrin
z = integrate_ode_bdf(dz_dt, y0, 0, ts[2:Nt], lambda, rep_array(0.0, 0),
rep_array(0, 0), 1e-15, 1e-15, 1e3);
Clot = append_row(y0[1], to_vector(z[,1]));
// use ODE soln to get cubic spline coefficients
spline_params = get_cubic_spline_coefficients(to_vector(ts),Clot);
M = spline_params[1:Nt];
C = spline_params[(Nt+1):(2*Nt-1)];
Ct = spline_params[(2*Nt):(3*Nt-2)];
i = first_interval_index(Clot, 0.6);
teg_sim = getCubicHittingTime({M[i-1], M[i], C[i-1], Ct[i-1]}, ts[i-1], ts[i], 0.6, 100, 1e-14);
}
}
model {
y0 ~ normal(1, 0.1);
teg ~ normal(teg_sim, 1e-2);
}
| Stan | 5 | pourzanj/StanCon2018_Coag | stan/fit_test_eq.stan | [
"MIT"
] |
//===--- Fingerprint.cpp - A stable identity for compiler data --*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
#include "swift/Basic/Fingerprint.h"
#include "swift/Basic/STLExtras.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/raw_ostream.h"
#include <inttypes.h>
#include <sstream>
using namespace swift;
llvm::raw_ostream &llvm::operator<<(llvm::raw_ostream &OS,
const Fingerprint &FP) {
return OS << FP.getRawValue();
}
void swift::simple_display(llvm::raw_ostream &out, const Fingerprint &fp) {
out << fp.getRawValue();
}
Optional<Fingerprint> Fingerprint::fromString(StringRef value) {
assert(value.size() == Fingerprint::DIGEST_LENGTH &&
"Only supports 32-byte hash values!");
auto fp = Fingerprint::ZERO();
{
std::istringstream s(value.drop_back(Fingerprint::DIGEST_LENGTH/2).str());
s >> std::hex >> fp.core.first;
}
{
std::istringstream s(value.drop_front(Fingerprint::DIGEST_LENGTH/2).str());
s >> std::hex >> fp.core.second;
}
// If the input string is not valid hex, the conversion above can fail.
if (value != fp.getRawValue())
return None;
return fp;
}
llvm::SmallString<Fingerprint::DIGEST_LENGTH> Fingerprint::getRawValue() const {
llvm::SmallString<Fingerprint::DIGEST_LENGTH> Str;
llvm::raw_svector_ostream Res(Str);
Res << llvm::format_hex_no_prefix(core.first, 16);
Res << llvm::format_hex_no_prefix(core.second, 16);
return Str;
}
| C++ | 4 | gandhi56/swift | lib/Basic/Fingerprint.cpp | [
"Apache-2.0"
] |
---
id: 587d7fb8367417b2b2512c11
title: Eliminare molti documenti con model.remove()
challengeType: 2
forumTopicId: 301538
dashedName: delete-many-documents-with-model-remove
---
# --description--
`Model.remove()` è utile per eliminare tutti i documenti corrispondenti ai criteri indicati.
# --instructions--
Modifica la funzione `removeManyPeople` per eliminare tutte le persone il cui nome è all'interno della variabile `nameToRemove`, usando `Model.remove()`. Passalo a un documento di query con il campo `name` impostato e una callback.
**Nota:** `Model.remove()` non restituisce il documento eliminato, ma un oggetto JSON contenente l'esito dell'operazione e il numero di elementi interessati. Non dimenticate di passarlo alla callback `done()`, dal momento che lo utilizzeremo nei test.
# --hints--
L'eliminazione di molti oggetti contemporaneamente dovrebbe avere successo
```js
(getUserInput) =>
$.ajax({
url: getUserInput('url') + '/_api/remove-many-people',
type: 'POST',
contentType: 'application/json',
data: JSON.stringify([
{ name: 'Mary', age: 16, favoriteFoods: ['lollipop'] },
{ name: 'Mary', age: 21, favoriteFoods: ['steak'] }
])
}).then(
(data) => {
assert.isTrue(!!data.ok, 'The mongo stats are not what expected');
assert.equal(
data.n,
2,
'The number of items affected is not what expected'
);
assert.equal(data.count, 0, 'the db items count is not what expected');
},
(xhr) => {
throw new Error(xhr.responseText);
}
);
```
# --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/05-back-end-development-and-apis/mongodb-and-mongoose/delete-many-documents-with-model.remove.md | [
"BSD-3-Clause"
] |
example {α : Type} {p q : α → Prop} {x : α} (h : ∀ y, p y → q y) (hx : q x) :
∀ y, x = y ∨ p y → q y
| x (or.inr p) := h x p
| ._ (or.inl rfl) := hx
| Lean | 3 | ericrbg/lean | tests/lean/run/eqn_compiler_variable_or_inaccessible.lean | [
"Apache-2.0"
] |
// unistd.hb
import sys.types;
extern void _exit(int status);
extern pid_t fork(void);
extern pid_t getpid(void);
extern pid_t getppid(void);
extern unsigned int sleep(unsigned int secs);
| Harbour | 4 | ueki5/cbc | import/unistd.hb | [
"Unlicense"
] |
ruleset id.streetcred.redir {
global {
prefix = re#^id.streetcred://launch/[?]c_i=.+#
}
//
// convert streetcred invitation into one acceptable to Agent Pico
//
rule accept_streetcred_invitation {
select when sovrin new_invitation
url re#(https://redir.streetcred.id/.+)# setting(url)
pre {
res = http:get(url,dontFollowRedirect=true)
ok = res{"status_code"} == 302
location = ok => res{["headers","location"]} | null
}
if location && location.match(prefix) then noop()
fired {
raise sovrin event "new_invitation"
attributes event:attrs.put("url","http://"+location)
}
}
}
| KRL | 4 | Picolab/G2S | krl/id.streetcred.redir.krl | [
"MIT"
] |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: src/proto/grpc/testing/echo_messages.proto
namespace Grpc\Testing;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>grpc.testing.ResponseParams</code>
*/
class ResponseParams extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field <code>int64 request_deadline = 1;</code>
*/
protected $request_deadline = 0;
/**
* Generated from protobuf field <code>string host = 2;</code>
*/
protected $host = '';
/**
* Generated from protobuf field <code>string peer = 3;</code>
*/
protected $peer = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int|string $request_deadline
* @type string $host
* @type string $peer
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Src\Proto\Grpc\Testing\EchoMessages::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field <code>int64 request_deadline = 1;</code>
* @return int|string
*/
public function getRequestDeadline()
{
return $this->request_deadline;
}
/**
* Generated from protobuf field <code>int64 request_deadline = 1;</code>
* @param int|string $var
* @return $this
*/
public function setRequestDeadline($var)
{
GPBUtil::checkInt64($var);
$this->request_deadline = $var;
return $this;
}
/**
* Generated from protobuf field <code>string host = 2;</code>
* @return string
*/
public function getHost()
{
return $this->host;
}
/**
* Generated from protobuf field <code>string host = 2;</code>
* @param string $var
* @return $this
*/
public function setHost($var)
{
GPBUtil::checkString($var, True);
$this->host = $var;
return $this;
}
/**
* Generated from protobuf field <code>string peer = 3;</code>
* @return string
*/
public function getPeer()
{
return $this->peer;
}
/**
* Generated from protobuf field <code>string peer = 3;</code>
* @param string $var
* @return $this
*/
public function setPeer($var)
{
GPBUtil::checkString($var, True);
$this->peer = $var;
return $this;
}
}
| PHP | 4 | arghyadip01/grpc | src/php/tests/qps/generated_code/Grpc/Testing/ResponseParams.php | [
"Apache-2.0"
] |
apiVersion: release-notes/v2
kind: bug-fix
area: traffic-management
# issue is a list of GitHub issues resolved in this note.
issue:
- https://github.com/istio/istio/issues/35404
- 35404
releaseNotes:
- |
**Fixed** an issue causing stale endpoints for service entry selecting pods
| YAML | 2 | rveerama1/istio | releasenotes/notes/fix-se-stale-ep.yaml | [
"Apache-2.0"
] |
-- @shouldFailWith NoInstanceFound
module Main where
import Safe.Coerce (coerce)
recToRec :: forall r s. { x :: Int | r } -> { x :: Int | s }
recToRec = coerce
| PureScript | 3 | andys8/purescript | tests/purs/failing/CoercibleOpenRowsDoNotUnify.purs | [
"BSD-3-Clause"
] |
//
// Example code - use without restriction.
//
IMPORT $;
IMPORT Std;
BldSF := SEQUENTIAL(
Std.File.CreateSuperFile($.DeclareData.SFname),
Std.File.CreateSuperFile($.DeclareData.SKname),
Std.File.StartSuperFileTransaction(),
Std.File.AddSuperFile($.DeclareData.SFname,$.DeclareData.SubFile1),
Std.File.AddSuperFile($.DeclareData.SFname,$.DeclareData.SubFile2),
Std.File.AddSuperFile($.DeclareData.SKname,$.DeclareData.i1name),
Std.File.AddSuperFile($.DeclareData.SKname,$.DeclareData.i2name),
Std.File.FinishSuperFileTransaction()
);
F1 := FETCH($.DeclareData.sf1,$.DeclareData.sk1(personid=$.DeclareData.ds1[1].personid),RIGHT.RecPos);
F2 := FETCH($.DeclareData.sf1,$.DeclareData.sk1(personid=$.DeclareData.ds2[1].personid),RIGHT.RecPos);
Get := PARALLEL(OUTPUT(F1),OUTPUT(F2));
SEQUENTIAL(BldSF,Get);
| ECL | 2 | miguelvazq/HPCC-Platform | docs/ECLProgrammersGuide/PRG_Mods/ECL Code Files/IndexSuperFile3.ecl | [
"Apache-2.0"
] |
<div class="socialbtn socialbtn-facebook">
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/ja_JP/sdk.js#xfbml=1&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<fb:like send="false" layout="button_count" width="110" show_faces="false" data-href="<mt:ContentPermalink>"></fb:like>
</div>
<div class="socialbtn">
<a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="sixapartkk" data-lang="ja">ツイート</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
</div>
<div class="socialbtn">
<script type="text/javascript">
document.write('<a href="//b.hatena.ne.jp/entry/add/' + escape(location.href) + '" class="hatena-bookmark-button" data-hatena-bookmark-layout="standard" title="このエントリーをはてなブックマークに追加">');
</script>
<img src="//b.st-hatena.com/images/entry-button/button-only.gif" alt="このエントリーをはてなブックマークに追加" width="20" height="20" style="border: none;" /></a>
<script type="text/javascript" src="//b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script>
</div> | MTML | 2 | movabletype/mt-theme-jungfrau | themes/jungfrau/templates/template_660.mtml | [
"MIT"
] |
/*
* Copyright (C) 2010 ZXing 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.
*/
/*
* These authors would like to acknowledge the Spanish Ministry of Industry,
* Tourism and Trade, for the support in the project TSI020301-2008-2
* "PIRAmIDE: Personalizable Interactions with Resources on AmI-enabled
* Mobile Dynamic Environments", led by Treelogic
* ( http://www.treelogic.com/ ):
*
* http://www.piramidepse.com/
*/
package com.google.zxing.oned.rss.expanded.decoders;
import com.google.zxing.FormatException;
import com.google.zxing.NotFoundException;
import com.google.zxing.common.BitArray;
import com.google.zxing.oned.rss.expanded.BinaryUtil;
import org.junit.Assert;
/**
* @author Pablo Orduña, University of Deusto ([email protected])
*/
abstract class AbstractDecoderTest extends Assert {
static final String numeric10 = "..X..XX";
static final String numeric12 = "..X.X.X";
static final String numeric1FNC1 = "..XXX.X";
// static final String numericFNC11 = "XXX.XXX";
static final String numeric2alpha = "....";
static final String alphaA = "X.....";
static final String alphaFNC1 = ".XXXX";
static final String alpha2numeric = "...";
static final String alpha2isoiec646 = "..X..";
static final String i646B = "X.....X";
static final String i646C = "X....X.";
static final String i646FNC1 = ".XXXX";
static final String isoiec6462alpha = "..X..";
static final String compressedGtin900123456798908 = ".........X..XXX.X.X.X...XX.XXXXX.XXXX.X.";
static final String compressedGtin900000000000008 = "........................................";
static final String compressed15bitWeight1750 = "....XX.XX.X.XX.";
static final String compressed15bitWeight11750 = ".X.XX.XXXX..XX.";
static final String compressed15bitWeight0 = "...............";
static final String compressed20bitWeight1750 = ".........XX.XX.X.XX.";
static final String compressedDateMarch12th2010 = "....XXXX.X..XX..";
static final String compressedDateEnd = "X..X.XX.........";
static void assertCorrectBinaryString(CharSequence binaryString,
String expectedNumber) throws NotFoundException, FormatException {
BitArray binary = BinaryUtil.buildBitArrayFromStringWithoutSpaces(binaryString);
AbstractExpandedDecoder decoder = AbstractExpandedDecoder.createDecoder(binary);
String result = decoder.parseInformation();
assertEquals(expectedNumber, result);
}
}
| Java | 4 | GhineaAlex/zxing | core/src/test/java/com/google/zxing/oned/rss/expanded/decoders/AbstractDecoderTest.java | [
"BSD-3-Clause-No-Nuclear-Warranty"
] |
#!/usr/bin/perl -wT
use strict;
use warnings;
use CGI;
my $cgi = new CGI;
my $csp = $cgi->param('csp');
my $plugin = $cgi->param('plugin');
my $log = $cgi->param('log');
my $type = $cgi->param('type');
if ($type) {
$type = qq/type="$type"/;
}
print qq,Content-Type: text/html; charset=UTF-8
Content-Security-Policy: $csp
<!DOCTYPE html>
<html>
<body>
<object data="$plugin" $type></object>
,;
if ($log) {
print qq@<script>
function log(s) {
var console = document.querySelector('#console');
if (!console) {
console = document.body.appendChild(document.createElement('div'));
console.id = 'console';
}
console.appendChild(
document.createElement('p')).appendChild(
document.createTextNode(s));
}
if (document.querySelector('object').postMessage)
log("$log");
</script>@;
}
print qq,
</body>
</html>
,;
| Perl | 3 | zealoussnow/chromium | third_party/blink/web_tests/http/tests/security/contentSecurityPolicy/resources/echo-object-data.pl | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
<?Lassoscript
// Last modified 11/11/07 by ECL, Landmann InterActive
/*
Tagdocs;
{Tagname= PushIt }
{Description= Pushes content from the server to the browser. }
{Author= Unknown }
{AuthorEmail= }
{ModifiedBy= }
{ModifiedByEmail= }
{Date= }
{Usage= PushIt: 'output this string' }
{ExpectedResults= HTML content pushed to a browser }
{Dependencies= None }
{DevelNotes= This tag is used when you have a large, long-running page that you want to push content incrementally to the browser. Works only with Apache 1.3. }
{ChangeNotes= }
/Tagdocs;
*/
If: !(Lasso_TagExists: 'PushIt');
Define_Tag:'PushReply',-priority='replace',-required='reply';
$__html_reply__ += string: #reply;
/Define_Tag;
Define_Tag:'PushIt',-priority='replace',-required='reply';
PushReply: #reply;
Server_Push;
/Define_Tag;
Log_Critical: 'Custom Tag Loaded - PushIt';
/If;
?> | Lasso | 4 | fourplusone/SubEthaEdit | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/LassoStartup/PushIt.lasso | [
"MIT"
] |
Scriptname vSCM_MetaQuestScript extends Quest
{Do initialization and track variables for scripts}
;--=== Imports ===--
Import Utility
Import Game
;--=== Properties ===--
Actor Property PlayerRef Auto
Float Property ModVersion Auto Hidden
String Property ModName = "Smarter Combat Music" Auto Hidden
Message Property vSCM_ModLoadedMSG Auto
Message Property vSCM_ModUpdatedMSG Auto
;--=== Variables ===--
Float _CurrentVersion
String _sCurrentVersion
Bool _Running
Float _ScriptLatency
Float _StartTime
Float _EndTime
;--=== Events ===--
Event OnInit()
If ModVersion == 0
DoUpkeep(True)
EndIf
EndEvent
Event OnReset()
Debug.Trace("SCM: Metaquest event: OnReset")
EndEvent
Event OnGameReloaded()
Debug.Trace("SCM: Metaquest event: OnGameReloaded")
EndEvent
;--=== Functions ===--
Function DoUpkeep(Bool DelayedStart = True)
;FIXME: CHANGE THIS WHEN UPDATING!
_CurrentVersion = 0.01
_sCurrentVersion = GetVersionString(_CurrentVersion)
String sErrorMessage
If DelayedStart
Wait(RandomFloat(2,4))
EndIf
Debug.Trace("SCM: " + ModName)
Debug.Trace("SCM: Performing upkeep...")
Debug.Trace("SCM: Loaded version is " + GetVersionString(ModVersion) + ", Current version is " + _sCurrentVersion)
If ModVersion == 0
Debug.Trace("SCM: Newly installed, doing initialization...")
DoInit()
If ModVersion == _CurrentVersion
Debug.Trace("SCM: Initialization succeeded.")
Else
Debug.Trace("SCM: WARNING! Initialization had a problem!")
EndIf
ElseIf ModVersion < _CurrentVersion
Debug.Trace("SCM: Installed version is older. Starting the upgrade...")
DoUpgrade()
If ModVersion != _CurrentVersion
Debug.Trace("SCM: WARNING! Upgrade failed!")
Debug.MessageBox("WARNING! " + ModName + " upgrade failed for some reason. You should report this to the mod author.")
EndIf
Debug.Trace("SCM: Upgraded to " + _CurrentVersion)
vSCM_ModUpdatedMSG.Show(_CurrentVersion)
Else
Debug.Trace("SCM: Loaded, no updates.")
;CheckForOrphans()
EndIf
CheckForExtras()
UpdateConfig()
Debug.Trace("SCM: Upkeep complete!")
EndFunction
Function DoInit()
Debug.Trace("SCM: Initializing...")
_Running = True
ModVersion = _CurrentVersion
vSCM_ModLoadedMSG.Show(_CurrentVersion)
EndFunction
Function DoUpgrade()
_Running = False
If ModVersion < 0.01
Debug.Trace("SCM: Upgrading to 0.01...")
ModVersion = 0.01
EndIf
_Running = True
Debug.Trace("SCM: Upgrade complete!")
EndFunction
Function UpdateConfig()
Debug.Trace("SCM: Updating configuration...")
Debug.Trace("SCM: Updated configuration values, some scripts may update in the background!")
EndFunction
String Function GetVersionString(Float fVersion)
Int Major = Math.Floor(fVersion) as Int
Int Minor = ((fVersion - (Major as Float)) * 100.0) as Int
If Minor < 10
Return Major + ".0" + Minor
Else
Return Major + "." + Minor
EndIf
EndFunction
Function CheckForExtras()
EndFunction
| Papyrus | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/Papyrus/vSCM_MetaQuestScript.psc | [
"MIT"
] |
;;; editor/multiple-cursors/autoload/evil-mc.el -*- lexical-binding: t; -*-
;;;###if (featurep! :editor evil)
;;;###autoload
(defun +multiple-cursors/evil-mc-toggle-cursors ()
"Toggle frozen state of evil-mc cursors."
(interactive)
(unless (evil-mc-has-cursors-p)
(user-error "No cursors exist to be toggled"))
(setq evil-mc-frozen (not (and (evil-mc-has-cursors-p)
evil-mc-frozen)))
(if evil-mc-frozen
(message "evil-mc paused")
(message "evil-mc resumed")))
;;;###autoload (autoload '+multiple-cursors/evil-mc-toggle-cursor-here "editor/multiple-cursors/autoload/evil-mc" nil t)
(evil-define-command +multiple-cursors/evil-mc-toggle-cursor-here ()
"Create a cursor at point. If in visual block or line mode, then create
cursors on each line of the selection, on the column of the cursor. Otherwise
pauses cursors."
:repeat nil
:keep-visual nil
:evil-mc t
(interactive)
(cond ((and (evil-mc-has-cursors-p)
(evil-normal-state-p)
(let* ((pos (point))
(cursor (cl-find-if (lambda (cursor)
(eq pos (evil-mc-get-cursor-start cursor)))
evil-mc-cursor-list)))
(when cursor
(evil-mc-delete-cursor cursor)
(setq evil-mc-cursor-list (delq cursor evil-mc-cursor-list))
t))))
((memq evil-this-type '(block line))
(let ((col (evil-column))
(line-at-pt (line-number-at-pos)))
;; Fix off-by-one error
(when (= evil-visual-direction 1)
(cl-decf col)
(backward-char))
(save-excursion
(evil-apply-on-block
(lambda (ibeg _)
(unless (or (= line-at-pt (line-number-at-pos ibeg))
(invisible-p ibeg))
(goto-char ibeg)
(move-to-column col)
(when (= (current-column) col)
(evil-mc-make-cursor-here))))
evil-visual-beginning
(if (eq evil-this-type 'line) (1- evil-visual-end) evil-visual-end)
nil)
(evil-exit-visual-state))))
(t
(evil-mc-pause-cursors)
;; I assume I don't want the cursors to move yet
(evil-mc-make-cursor-here))))
;;;###autoload (autoload '+multiple-cursors:evil-mc "editor/multiple-cursors/autoload/evil-mc" nil t)
(evil-define-command +multiple-cursors:evil-mc (beg end type pattern &optional flags bang)
"Create mc cursors at each match of PATTERN within BEG and END.
This leaves the cursor where the final cursor would be. If BANG, then treat
PATTERN as literal. PATTERN is a delimited regexp (the same that :g or :s uses).
FLAGS can be g and/or i; which mean the same thing they do in
`evil-ex-substitute'."
:evil-mc t
:keep-visual t
(interactive "<R><//!><!>")
(unless (and (stringp pattern)
(not (string-empty-p pattern)))
(user-error "A regexp pattern is required"))
(require 'evil-mc)
(let ((m (evil-ex-make-pattern
(if bang (regexp-quote pattern) pattern)
(cond ((memq ?i flags) 'insensitive)
((memq ?I flags) 'sensitive)
((not +multiple-cursors-evil-mc-ex-case)
evil-ex-search-case)
(t +multiple-cursors-evil-mc-ex-case))
(or (and +multiple-cursors-evil-mc-ex-global
(not (memq ?g flags)))
(and (not +multiple-cursors-evil-mc-ex-global)
(memq ?g flags))))))
(evil-mc-run-cursors-before)
(setq evil-mc-pattern (cons m (list beg end type)))
(evil-with-restriction beg end
(goto-char beg)
(while (eq (evil-ex-find-next m 'forward t) t)
(evil-mc-make-cursor-at-pos (1- (point)))
(unless (evil-ex-pattern-whole-line m)
(goto-char (line-beginning-position 2)))))
(evil-mc-goto-cursor
(if (= (evil-visual-direction) 1)
(evil-mc-find-last-cursor)
(evil-mc-find-first-cursor))
nil)
(evil-mc-undo-cursor-at-pos (1- (point)))
(if (evil-mc-has-cursors-p)
(evil-mc-print-cursors-info "Created")
(evil-mc-message "No cursors were created"))))
;;;###autoload (autoload '+multiple-cursors/evil-mc-undo-cursor "editor/multiple-cursors/autoload/evil-mc" nil t)
(evil-define-command +multiple-cursors/evil-mc-undo-cursor ()
"Undos last cursor, or all cursors in visual region."
:repeat nil
:evil-mc t
(interactive)
(if (evil-visual-state-p)
(or (mapc (lambda (c)
(evil-mc-delete-cursor c)
(setq evil-mc-cursor-list (delq c evil-mc-cursor-list)))
(cl-remove-if-not
(lambda (pos)
(and (>= pos evil-visual-beginning)
(< pos evil-visual-end)))
evil-mc-cursor-list
:key #'evil-mc-get-cursor-start))
(message "No cursors to undo in region"))
(evil-mc-undo-last-added-cursor)))
;;;###autoload (autoload '+multiple-cursors-execute-default-operator-fn "editor/multiple-cursors/autoload/evil-mc" nil t)
(after! evil-mc
(evil-mc-define-handler +multiple-cursors-execute-default-operator-fn ()
:cursor-clear region
(evil-mc-with-region-or-execute-macro region t
(funcall (evil-mc-get-command-name) region-start region-end))))
| Emacs Lisp | 4 | leezu/doom-emacs | modules/editor/multiple-cursors/autoload/evil-mc.el | [
"MIT"
] |
logging.level.root=ERROR
logging.level.com.baeldung.integrationtesting=ERROR
| INI | 1 | DBatOWL/tutorials | spring-boot-modules/spring-boot-security/src/test/resources/application.properties | [
"MIT"
] |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
Describe "Assembly loaded in a separate AssemblyLoadContext should not be seen by PowerShell type resolution" -Tags "CI" {
BeforeAll {
$codeVersion1 = @'
using System.Reflection;
[assembly: AssemblyVersion("1.0.0.0")]
namespace ALC.Test {
public class Blah { public static string GetVersion() { return "1.0.0.0"; } }
}
'@
$codeVersion2 = @'
using System.Reflection;
[assembly: AssemblyVersion("2.0.0.0")]
namespace ALC.Test {
public class Blah { public static string GetVersion() { return "2.0.0.0"; } }
}
'@
$tempFolderPath = [System.IO.Path]::Combine([System.IO.Path]::GetTempPath(), "ALCTest")
$v1_Folder = [System.IO.Path]::Combine($tempFolderPath, "V1")
$v2_Folder = [System.IO.Path]::Combine($tempFolderPath, "V2")
$null = New-Item $tempFolderPath -ItemType Directory -Force
$null = New-Item $v1_Folder -ItemType Directory -Force
$null = New-Item $v2_Folder -ItemType Directory -Force
$v1_assembly_file = [System.IO.Path]::Combine($v1_Folder, "Test.dll")
$v2_assembly_file = [System.IO.Path]::Combine($v2_Folder, "Test.dll")
if (-not (Test-Path $v1_assembly_file)) {
Add-Type -TypeDefinition $codeVersion1 -OutputAssembly $v1_assembly_file
}
if (-not (Test-Path $v2_assembly_file)) {
Add-Type -TypeDefinition $codeVersion2 -OutputAssembly $v2_assembly_file
}
## Load the V2 assembly in a separate ALC
$alc = [System.Runtime.Loader.AssemblyLoadContext]::new("MyALC", $false)
$v2_Assembly = $alc.LoadFromAssemblyPath($v2_assembly_file)
## Load the V1 assembly in the default ALC
$v1_Assembly = [System.Reflection.Assembly]::LoadFrom($v1_assembly_file)
$v1_Blah_AssemblyQualifiedName = "[ALC.Test.Blah, {0}]" -f $v1_Assembly.FullName
$v2_Blah_AssemblyQualifiedName = "[ALC.Test.Blah, {0}]" -f $v2_Assembly.FullName
}
It "Type from the assembly loaded into a separate ALC should not be resolved by PowerShell" {
## Type resolution should only find the assembly loaded in the default ALC.
[ALC.Test.Blah]::GetVersion() | Should -BeExactly "1.0.0.0"
## Type resolution should fail even with the AssemblyQualifiedName for the 2.0 assembly that was loaded in the separate ALC.
$resolve_v1_Blah_script = [scriptblock]::Create("{0}::GetVersion()" -f $v1_Blah_AssemblyQualifiedName)
$resolve_v2_Blah_script = [scriptblock]::Create($v2_Blah_AssemblyQualifiedName)
$resolve_v2_Blah_script | Should -Throw -ErrorId 'TypeNotFound'
& $resolve_v1_Blah_script | Should -BeExactly "1.0.0.0"
}
}
| PowerShell | 4 | rdtechie/PowerShell | test/powershell/engine/Basic/Assembly.LoadedInSeparateALC.Tests.ps1 | [
"MIT"
] |
p('Bonjour Spring') | Smarty | 0 | nicchagil/spring-framework | spring-webmvc/src/test/resources/org/springframework/web/servlet/view/groovy/i18n_fr.tpl | [
"Apache-2.0"
] |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="13008000">
<Property Name="NI.LV.All.SourceOnly" Type="Bool">true</Property>
<Item Name="My Computer" Type="My Computer">
<Property Name="IOScan.Faults" Type="Str"></Property>
<Property Name="IOScan.NetVarPeriod" Type="UInt">100</Property>
<Property Name="IOScan.NetWatchdogEnabled" Type="Bool">false</Property>
<Property Name="IOScan.Period" Type="UInt">10000</Property>
<Property Name="IOScan.PowerupMode" Type="UInt">0</Property>
<Property Name="IOScan.Priority" Type="UInt">9</Property>
<Property Name="IOScan.ReportModeConflict" Type="Bool">true</Property>
<Property Name="IOScan.StartEngineOnDeploy" Type="Bool">false</Property>
<Property Name="server.app.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.control.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.tcp.enabled" Type="Bool">false</Property>
<Property Name="server.tcp.port" Type="Int">0</Property>
<Property Name="server.tcp.serviceName" Type="Str">My Computer/VI Server</Property>
<Property Name="server.tcp.serviceName.default" Type="Str">My Computer/VI Server</Property>
<Property Name="server.vi.callsEnabled" Type="Bool">true</Property>
<Property Name="server.vi.propertiesEnabled" Type="Bool">true</Property>
<Property Name="specify.custom.address" Type="Bool">false</Property>
<Item Name="DAQmx(AI).lvclass" Type="LVClass" URL="../DAQmx(AnalogInput)/DAQmx(AI).lvclass"/>
<Item Name="Dependencies" Type="Dependencies">
<Item Name="vi.lib" Type="Folder">
<Item Name="Attribute.Config.lvclass" Type="LVClass" URL="/<vilib>/JKI/JKI SMO/Support/Attribute.Config/Attribute.Config.lvclass"/>
<Item Name="Attribute.Identity.lvclass" Type="LVClass" URL="/<vilib>/JKI/JKI SMO/Support/Attribute.Identity/Attribute.Identity.lvclass"/>
<Item Name="Attribute.lvclass" Type="LVClass" URL="/<vilib>/JKI/JKI SMO/Support/Attribute/Attribute.lvclass"/>
<Item Name="Attribute.Owner.lvclass" Type="LVClass" URL="/<vilib>/JKI/JKI SMO/Support/Attribute.Owner/Attribute.Owner.lvclass"/>
<Item Name="Attribute.SharedResource.lvclass" Type="LVClass" URL="/<vilib>/JKI/JKI SMO/Support/Attribute.SharedResource/Attribute.SharedResource.lvclass"/>
<Item Name="Attribute.StartupBehavior.lvclass" Type="LVClass" URL="/<vilib>/JKI/JKI SMO/Support/Attribute.StartupBehavior/Attribute.StartupBehavior.lvclass"/>
<Item Name="Clear Errors.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Clear Errors.vi"/>
<Item Name="DAQmx Clear Task.vi" Type="VI" URL="/<vilib>/DAQmx/configure/task.llb/DAQmx Clear Task.vi"/>
<Item Name="DAQmx Configure Logging (TDMS).vi" Type="VI" URL="/<vilib>/DAQmx/configure/task.llb/DAQmx Configure Logging (TDMS).vi"/>
<Item Name="DAQmx Configure Logging.vi" Type="VI" URL="/<vilib>/DAQmx/configure/task.llb/DAQmx Configure Logging.vi"/>
<Item Name="DAQmx Create AI Channel (sub).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create AI Channel (sub).vi"/>
<Item Name="DAQmx Create AI Channel TEDS(sub).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create AI Channel TEDS(sub).vi"/>
<Item Name="DAQmx Create AO Channel (sub).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create AO Channel (sub).vi"/>
<Item Name="DAQmx Create Channel (AI-Acceleration-Accelerometer).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Acceleration-Accelerometer).vi"/>
<Item Name="DAQmx Create Channel (AI-Bridge).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Bridge).vi"/>
<Item Name="DAQmx Create Channel (AI-Current-Basic).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Current-Basic).vi"/>
<Item Name="DAQmx Create Channel (AI-Current-RMS).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Current-RMS).vi"/>
<Item Name="DAQmx Create Channel (AI-Force-Bridge-Polynomial).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Force-Bridge-Polynomial).vi"/>
<Item Name="DAQmx Create Channel (AI-Force-Bridge-Table).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Force-Bridge-Table).vi"/>
<Item Name="DAQmx Create Channel (AI-Force-Bridge-Two-Point-Linear).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Force-Bridge-Two-Point-Linear).vi"/>
<Item Name="DAQmx Create Channel (AI-Force-IEPE Sensor).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Force-IEPE Sensor).vi"/>
<Item Name="DAQmx Create Channel (AI-Frequency-Voltage).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Frequency-Voltage).vi"/>
<Item Name="DAQmx Create Channel (AI-Position-EddyCurrentProxProbe).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Position-EddyCurrentProxProbe).vi"/>
<Item Name="DAQmx Create Channel (AI-Position-LVDT).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Position-LVDT).vi"/>
<Item Name="DAQmx Create Channel (AI-Position-RVDT).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Position-RVDT).vi"/>
<Item Name="DAQmx Create Channel (AI-Pressure-Bridge-Polynomial).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Pressure-Bridge-Polynomial).vi"/>
<Item Name="DAQmx Create Channel (AI-Pressure-Bridge-Table).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Pressure-Bridge-Table).vi"/>
<Item Name="DAQmx Create Channel (AI-Pressure-Bridge-Two-Point-Linear).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Pressure-Bridge-Two-Point-Linear).vi"/>
<Item Name="DAQmx Create Channel (AI-Resistance).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Resistance).vi"/>
<Item Name="DAQmx Create Channel (AI-Sound Pressure-Microphone).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Sound Pressure-Microphone).vi"/>
<Item Name="DAQmx Create Channel (AI-Strain-Rosette Strain Gage).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Strain-Rosette Strain Gage).vi"/>
<Item Name="DAQmx Create Channel (AI-Strain-Strain Gage).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Strain-Strain Gage).vi"/>
<Item Name="DAQmx Create Channel (AI-Temperature-Built-in Sensor).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Temperature-Built-in Sensor).vi"/>
<Item Name="DAQmx Create Channel (AI-Temperature-RTD).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Temperature-RTD).vi"/>
<Item Name="DAQmx Create Channel (AI-Temperature-Thermistor-Iex).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Temperature-Thermistor-Iex).vi"/>
<Item Name="DAQmx Create Channel (AI-Temperature-Thermistor-Vex).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Temperature-Thermistor-Vex).vi"/>
<Item Name="DAQmx Create Channel (AI-Temperature-Thermocouple).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Temperature-Thermocouple).vi"/>
<Item Name="DAQmx Create Channel (AI-Torque-Bridge-Polynomial).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Torque-Bridge-Polynomial).vi"/>
<Item Name="DAQmx Create Channel (AI-Torque-Bridge-Table).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Torque-Bridge-Table).vi"/>
<Item Name="DAQmx Create Channel (AI-Torque-Bridge-Two-Point-Linear).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Torque-Bridge-Two-Point-Linear).vi"/>
<Item Name="DAQmx Create Channel (AI-Velocity-IEPE Sensor).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Velocity-IEPE Sensor).vi"/>
<Item Name="DAQmx Create Channel (AI-Voltage-Basic).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Voltage-Basic).vi"/>
<Item Name="DAQmx Create Channel (AI-Voltage-Custom with Excitation).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Voltage-Custom with Excitation).vi"/>
<Item Name="DAQmx Create Channel (AI-Voltage-RMS).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AI-Voltage-RMS).vi"/>
<Item Name="DAQmx Create Channel (AO-Current-Basic).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AO-Current-Basic).vi"/>
<Item Name="DAQmx Create Channel (AO-FuncGen).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AO-FuncGen).vi"/>
<Item Name="DAQmx Create Channel (AO-Voltage-Basic).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (AO-Voltage-Basic).vi"/>
<Item Name="DAQmx Create Channel (CI-Count Edges).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (CI-Count Edges).vi"/>
<Item Name="DAQmx Create Channel (CI-Duty Cycle).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (CI-Duty Cycle).vi"/>
<Item Name="DAQmx Create Channel (CI-Frequency).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (CI-Frequency).vi"/>
<Item Name="DAQmx Create Channel (CI-GPS Timestamp).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (CI-GPS Timestamp).vi"/>
<Item Name="DAQmx Create Channel (CI-Period).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (CI-Period).vi"/>
<Item Name="DAQmx Create Channel (CI-Position-Angular Encoder).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (CI-Position-Angular Encoder).vi"/>
<Item Name="DAQmx Create Channel (CI-Position-Linear Encoder).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (CI-Position-Linear Encoder).vi"/>
<Item Name="DAQmx Create Channel (CI-Pulse Freq).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (CI-Pulse Freq).vi"/>
<Item Name="DAQmx Create Channel (CI-Pulse Ticks).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (CI-Pulse Ticks).vi"/>
<Item Name="DAQmx Create Channel (CI-Pulse Time).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (CI-Pulse Time).vi"/>
<Item Name="DAQmx Create Channel (CI-Pulse Width).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (CI-Pulse Width).vi"/>
<Item Name="DAQmx Create Channel (CI-Semi Period).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (CI-Semi Period).vi"/>
<Item Name="DAQmx Create Channel (CI-Two Edge Separation).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (CI-Two Edge Separation).vi"/>
<Item Name="DAQmx Create Channel (CO-Pulse Generation-Frequency).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (CO-Pulse Generation-Frequency).vi"/>
<Item Name="DAQmx Create Channel (CO-Pulse Generation-Ticks).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (CO-Pulse Generation-Ticks).vi"/>
<Item Name="DAQmx Create Channel (CO-Pulse Generation-Time).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (CO-Pulse Generation-Time).vi"/>
<Item Name="DAQmx Create Channel (DI-Digital Input).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (DI-Digital Input).vi"/>
<Item Name="DAQmx Create Channel (DO-Digital Output).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (DO-Digital Output).vi"/>
<Item Name="DAQmx Create Channel (TEDS-AI-Acceleration-Accelerometer).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (TEDS-AI-Acceleration-Accelerometer).vi"/>
<Item Name="DAQmx Create Channel (TEDS-AI-Bridge).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (TEDS-AI-Bridge).vi"/>
<Item Name="DAQmx Create Channel (TEDS-AI-Current-Basic).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (TEDS-AI-Current-Basic).vi"/>
<Item Name="DAQmx Create Channel (TEDS-AI-Force-Bridge).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (TEDS-AI-Force-Bridge).vi"/>
<Item Name="DAQmx Create Channel (TEDS-AI-Force-IEPE Sensor).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (TEDS-AI-Force-IEPE Sensor).vi"/>
<Item Name="DAQmx Create Channel (TEDS-AI-Position-LVDT).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (TEDS-AI-Position-LVDT).vi"/>
<Item Name="DAQmx Create Channel (TEDS-AI-Position-RVDT).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (TEDS-AI-Position-RVDT).vi"/>
<Item Name="DAQmx Create Channel (TEDS-AI-Pressure-Bridge).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (TEDS-AI-Pressure-Bridge).vi"/>
<Item Name="DAQmx Create Channel (TEDS-AI-Resistance).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (TEDS-AI-Resistance).vi"/>
<Item Name="DAQmx Create Channel (TEDS-AI-Sound Pressure-Microphone).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (TEDS-AI-Sound Pressure-Microphone).vi"/>
<Item Name="DAQmx Create Channel (TEDS-AI-Strain-Strain Gage).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (TEDS-AI-Strain-Strain Gage).vi"/>
<Item Name="DAQmx Create Channel (TEDS-AI-Temperature-RTD).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (TEDS-AI-Temperature-RTD).vi"/>
<Item Name="DAQmx Create Channel (TEDS-AI-Temperature-Thermistor-Iex).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (TEDS-AI-Temperature-Thermistor-Iex).vi"/>
<Item Name="DAQmx Create Channel (TEDS-AI-Temperature-Thermistor-Vex).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (TEDS-AI-Temperature-Thermistor-Vex).vi"/>
<Item Name="DAQmx Create Channel (TEDS-AI-Temperature-Thermocouple).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (TEDS-AI-Temperature-Thermocouple).vi"/>
<Item Name="DAQmx Create Channel (TEDS-AI-Torque-Bridge).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (TEDS-AI-Torque-Bridge).vi"/>
<Item Name="DAQmx Create Channel (TEDS-AI-Voltage-Basic).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (TEDS-AI-Voltage-Basic).vi"/>
<Item Name="DAQmx Create Channel (TEDS-AI-Voltage-Custom with Excitation).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Channel (TEDS-AI-Voltage-Custom with Excitation).vi"/>
<Item Name="DAQmx Create CI Channel (sub).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create CI Channel (sub).vi"/>
<Item Name="DAQmx Create CO Channel (sub).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create CO Channel (sub).vi"/>
<Item Name="DAQmx Create DI Channel (sub).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create DI Channel (sub).vi"/>
<Item Name="DAQmx Create DO Channel (sub).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create DO Channel (sub).vi"/>
<Item Name="DAQmx Create Scale (Linear).vi" Type="VI" URL="/<vilib>/DAQmx/create/scale.llb/DAQmx Create Scale (Linear).vi"/>
<Item Name="DAQmx Create Scale (Map Ranges).vi" Type="VI" URL="/<vilib>/DAQmx/create/scale.llb/DAQmx Create Scale (Map Ranges).vi"/>
<Item Name="DAQmx Create Scale (Polynomial).vi" Type="VI" URL="/<vilib>/DAQmx/create/scale.llb/DAQmx Create Scale (Polynomial).vi"/>
<Item Name="DAQmx Create Scale (Table).vi" Type="VI" URL="/<vilib>/DAQmx/create/scale.llb/DAQmx Create Scale (Table).vi"/>
<Item Name="DAQmx Create Scale.vi" Type="VI" URL="/<vilib>/DAQmx/create/scale.llb/DAQmx Create Scale.vi"/>
<Item Name="DAQmx Create Strain Rosette AI Channels (sub).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Strain Rosette AI Channels (sub).vi"/>
<Item Name="DAQmx Create Task.vi" Type="VI" URL="/<vilib>/DAQmx/create/task.llb/DAQmx Create Task.vi"/>
<Item Name="DAQmx Create Virtual Channel.vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Create Virtual Channel.vi"/>
<Item Name="DAQmx Fill In Error Info.vi" Type="VI" URL="/<vilib>/DAQmx/miscellaneous.llb/DAQmx Fill In Error Info.vi"/>
<Item Name="DAQmx Read (Analog 1D DBL 1Chan NSamp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Analog 1D DBL 1Chan NSamp).vi"/>
<Item Name="DAQmx Read (Analog 1D DBL NChan 1Samp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Analog 1D DBL NChan 1Samp).vi"/>
<Item Name="DAQmx Read (Analog 1D Wfm NChan 1Samp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Analog 1D Wfm NChan 1Samp).vi"/>
<Item Name="DAQmx Read (Analog 1D Wfm NChan NSamp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Analog 1D Wfm NChan NSamp).vi"/>
<Item Name="DAQmx Read (Analog 2D DBL NChan NSamp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Analog 2D DBL NChan NSamp).vi"/>
<Item Name="DAQmx Read (Analog 2D I16 NChan NSamp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Analog 2D I16 NChan NSamp).vi"/>
<Item Name="DAQmx Read (Analog 2D I32 NChan NSamp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Analog 2D I32 NChan NSamp).vi"/>
<Item Name="DAQmx Read (Analog 2D U16 NChan NSamp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Analog 2D U16 NChan NSamp).vi"/>
<Item Name="DAQmx Read (Analog 2D U32 NChan NSamp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Analog 2D U32 NChan NSamp).vi"/>
<Item Name="DAQmx Read (Analog DBL 1Chan 1Samp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Analog DBL 1Chan 1Samp).vi"/>
<Item Name="DAQmx Read (Analog Wfm 1Chan 1Samp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Analog Wfm 1Chan 1Samp).vi"/>
<Item Name="DAQmx Read (Analog Wfm 1Chan NSamp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Analog Wfm 1Chan NSamp).vi"/>
<Item Name="DAQmx Read (Counter 1D DBL 1Chan NSamp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Counter 1D DBL 1Chan NSamp).vi"/>
<Item Name="DAQmx Read (Counter 1D DBL NChan 1Samp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Counter 1D DBL NChan 1Samp).vi"/>
<Item Name="DAQmx Read (Counter 1D Pulse Freq 1 Chan NSamp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Counter 1D Pulse Freq 1 Chan NSamp).vi"/>
<Item Name="DAQmx Read (Counter 1D Pulse Ticks 1Chan NSamp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Counter 1D Pulse Ticks 1Chan NSamp).vi"/>
<Item Name="DAQmx Read (Counter 1D Pulse Time 1Chan NSamp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Counter 1D Pulse Time 1Chan NSamp).vi"/>
<Item Name="DAQmx Read (Counter 1D U32 1Chan NSamp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Counter 1D U32 1Chan NSamp).vi"/>
<Item Name="DAQmx Read (Counter 1D U32 NChan 1Samp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Counter 1D U32 NChan 1Samp).vi"/>
<Item Name="DAQmx Read (Counter 2D DBL NChan NSamp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Counter 2D DBL NChan NSamp).vi"/>
<Item Name="DAQmx Read (Counter 2D U32 NChan NSamp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Counter 2D U32 NChan NSamp).vi"/>
<Item Name="DAQmx Read (Counter DBL 1Chan 1Samp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Counter DBL 1Chan 1Samp).vi"/>
<Item Name="DAQmx Read (Counter Pulse Freq 1 Chan 1 Samp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Counter Pulse Freq 1 Chan 1 Samp).vi"/>
<Item Name="DAQmx Read (Counter Pulse Ticks 1Chan 1Samp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Counter Pulse Ticks 1Chan 1Samp).vi"/>
<Item Name="DAQmx Read (Counter Pulse Time 1Chan 1Samp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Counter Pulse Time 1Chan 1Samp).vi"/>
<Item Name="DAQmx Read (Counter U32 1Chan 1Samp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Counter U32 1Chan 1Samp).vi"/>
<Item Name="DAQmx Read (Digital 1D Bool 1Chan 1Samp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Digital 1D Bool 1Chan 1Samp).vi"/>
<Item Name="DAQmx Read (Digital 1D Bool NChan 1Samp 1Line).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Digital 1D Bool NChan 1Samp 1Line).vi"/>
<Item Name="DAQmx Read (Digital 1D U8 1Chan NSamp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Digital 1D U8 1Chan NSamp).vi"/>
<Item Name="DAQmx Read (Digital 1D U8 NChan 1Samp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Digital 1D U8 NChan 1Samp).vi"/>
<Item Name="DAQmx Read (Digital 1D U16 1Chan NSamp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Digital 1D U16 1Chan NSamp).vi"/>
<Item Name="DAQmx Read (Digital 1D U16 NChan 1Samp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Digital 1D U16 NChan 1Samp).vi"/>
<Item Name="DAQmx Read (Digital 1D U32 1Chan NSamp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Digital 1D U32 1Chan NSamp).vi"/>
<Item Name="DAQmx Read (Digital 1D U32 NChan 1Samp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Digital 1D U32 NChan 1Samp).vi"/>
<Item Name="DAQmx Read (Digital 1D Wfm NChan 1Samp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Digital 1D Wfm NChan 1Samp).vi"/>
<Item Name="DAQmx Read (Digital 1D Wfm NChan NSamp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Digital 1D Wfm NChan NSamp).vi"/>
<Item Name="DAQmx Read (Digital 2D Bool NChan 1Samp NLine).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Digital 2D Bool NChan 1Samp NLine).vi"/>
<Item Name="DAQmx Read (Digital 2D U8 NChan NSamp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Digital 2D U8 NChan NSamp).vi"/>
<Item Name="DAQmx Read (Digital 2D U16 NChan NSamp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Digital 2D U16 NChan NSamp).vi"/>
<Item Name="DAQmx Read (Digital 2D U32 NChan NSamp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Digital 2D U32 NChan NSamp).vi"/>
<Item Name="DAQmx Read (Digital Bool 1Line 1Point).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Digital Bool 1Line 1Point).vi"/>
<Item Name="DAQmx Read (Digital U8 1Chan 1Samp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Digital U8 1Chan 1Samp).vi"/>
<Item Name="DAQmx Read (Digital U16 1Chan 1Samp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Digital U16 1Chan 1Samp).vi"/>
<Item Name="DAQmx Read (Digital U32 1Chan 1Samp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Digital U32 1Chan 1Samp).vi"/>
<Item Name="DAQmx Read (Digital Wfm 1Chan 1Samp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Digital Wfm 1Chan 1Samp).vi"/>
<Item Name="DAQmx Read (Digital Wfm 1Chan NSamp).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Digital Wfm 1Chan NSamp).vi"/>
<Item Name="DAQmx Read (Raw 1D I8).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Raw 1D I8).vi"/>
<Item Name="DAQmx Read (Raw 1D I16).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Raw 1D I16).vi"/>
<Item Name="DAQmx Read (Raw 1D I32).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Raw 1D I32).vi"/>
<Item Name="DAQmx Read (Raw 1D U8).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Raw 1D U8).vi"/>
<Item Name="DAQmx Read (Raw 1D U16).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Raw 1D U16).vi"/>
<Item Name="DAQmx Read (Raw 1D U32).vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read (Raw 1D U32).vi"/>
<Item Name="DAQmx Read.vi" Type="VI" URL="/<vilib>/DAQmx/read.llb/DAQmx Read.vi"/>
<Item Name="DAQmx Rollback Channel If Error.vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Rollback Channel If Error.vi"/>
<Item Name="DAQmx Set CJC Parameters (sub).vi" Type="VI" URL="/<vilib>/DAQmx/create/channels.llb/DAQmx Set CJC Parameters (sub).vi"/>
<Item Name="DAQmx Start Task.vi" Type="VI" URL="/<vilib>/DAQmx/configure/task.llb/DAQmx Start Task.vi"/>
<Item Name="DAQmx Stop Task.vi" Type="VI" URL="/<vilib>/DAQmx/configure/task.llb/DAQmx Stop Task.vi"/>
<Item Name="Dependency.lvclass" Type="LVClass" URL="/<vilib>/JKI/JKI SMO/Dependency/Dependency.lvclass"/>
<Item Name="Error Cluster From Error Code.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Error Cluster From Error Code.vi"/>
<Item Name="Get File Extension.vi" Type="VI" URL="/<vilib>/Utility/libraryn.llb/Get File Extension.vi"/>
<Item Name="Get LV Class Name.vi" Type="VI" URL="/<vilib>/Utility/LVClass/Get LV Class Name.vi"/>
<Item Name="Get Rendezvous Status.vi" Type="VI" URL="/<vilib>/Utility/rendezvs.llb/Get Rendezvous Status.vi"/>
<Item Name="GetNamedRendezvousPrefix.vi" Type="VI" URL="/<vilib>/Utility/rendezvs.llb/GetNamedRendezvousPrefix.vi"/>
<Item Name="MD5Checksum core.vi" Type="VI" URL="/<vilib>/Utility/MD5Checksum.llb/MD5Checksum core.vi"/>
<Item Name="MD5Checksum format message-digest.vi" Type="VI" URL="/<vilib>/Utility/MD5Checksum.llb/MD5Checksum format message-digest.vi"/>
<Item Name="MD5Checksum pad.vi" Type="VI" URL="/<vilib>/Utility/MD5Checksum.llb/MD5Checksum pad.vi"/>
<Item Name="MD5Checksum string.vi" Type="VI" URL="/<vilib>/Utility/MD5Checksum.llb/MD5Checksum string.vi"/>
<Item Name="nisyscfg.lvlib" Type="Library" URL="/<vilib>/nisyscfg/nisyscfg.lvlib"/>
<Item Name="Registry-SMO.lvclass" Type="LVClass" URL="/<vilib>/JKI/JKI SMO/Registry/Registry-SMO.lvclass"/>
<Item Name="Release Waiting Procs.vi" Type="VI" URL="/<vilib>/Utility/rendezvs.llb/Release Waiting Procs.vi"/>
<Item Name="RemoveNamedRendezvousPrefix.vi" Type="VI" URL="/<vilib>/Utility/rendezvs.llb/RemoveNamedRendezvousPrefix.vi"/>
<Item Name="Rendezvous RefNum" Type="VI" URL="/<vilib>/Utility/rendezvs.llb/Rendezvous RefNum"/>
<Item Name="RendezvousDataCluster.ctl" Type="VI" URL="/<vilib>/Utility/rendezvs.llb/RendezvousDataCluster.ctl"/>
<Item Name="Resize Rendezvous.vi" Type="VI" URL="/<vilib>/Utility/rendezvs.llb/Resize Rendezvous.vi"/>
<Item Name="Search and Replace Pattern.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Search and Replace Pattern.vi"/>
<Item Name="SMO.lvclass" Type="LVClass" URL="/<vilib>/JKI/JKI SMO/SMO/SMO.lvclass"/>
<Item Name="Trim Whitespace.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Trim Whitespace.vi"/>
<Item Name="VariantType.lvlib" Type="Library" URL="/<vilib>/Utility/VariantDataType/VariantType.lvlib"/>
<Item Name="whitespace.ctl" Type="VI" URL="/<vilib>/Utility/error.llb/whitespace.ctl"/>
</Item>
<Item Name="nilvaiu.dll" Type="Document" URL="nilvaiu.dll">
<Property Name="NI.PreserveRelativePath" Type="Bool">true</Property>
</Item>
<Item Name="XDNodeRunTimeDep.lvlib" Type="Library" URL="/<vilib>/Platform/TimedLoop/XDataNode/XDNodeRunTimeDep.lvlib"/>
</Item>
<Item Name="Build Specifications" Type="Build"/>
</Item>
</Project>
| LabVIEW | 3 | JKISoftware/JKI-SMO-Templates | src/DAQmx templates/SimpleDAQmx.lvproj | [
"BSD-3-Clause"
] |
{
"name": "something"
}
| JSON | 0 | 1shenxi/webpack | test/configCases/web/unique-jsonp/package.json | [
"MIT"
] |
//---------------------------------------------------------------------------//
// Copyright (c) 2017 Kristian Popov <[email protected]>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
// See http://boostorg.github.com/compute for more information.
//---------------------------------------------------------------------------//
__kernel void foo(__global int *input) { !@#$%^&*() }
| OpenCL | 0 | rajeev02101987/arangodb | 3rdParty/boost/1.71.0/libs/compute/test/data/invalid_program.cl | [
"Apache-2.0"
] |
.package-level-imported-to-app {
background-color: blue
}
| Stylus | 0 | joseconstela/meteor | tools/tests/apps/app-using-stylus/packages/my-package/package-export.styl | [
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] |
@0xfb9a160831eee9bb;
struct AnnotationStruct {
test @0: Int32;
}
annotation test1(*): Text;
annotation test2(*): AnnotationStruct;
annotation test3(*): List(AnnotationStruct);
annotation test4(*): List(UInt16);
$test1("TestFile");
struct TestAnnotationOne $test1("Test") { }
struct TestAnnotationTwo $test2(test = 100) { }
struct TestAnnotationThree $test3([(test=100), (test=101)]) { }
struct TestAnnotationFour $test4([200, 201]) { }
| Cap'n Proto | 3 | p4l1ly/pycapnp | test/annotations.capnp | [
"BSD-2-Clause"
] |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="17008000">
<Item Name="My Computer" Type="My Computer">
<Property Name="server.app.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.control.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.tcp.enabled" Type="Bool">false</Property>
<Property Name="server.tcp.port" Type="Int">0</Property>
<Property Name="server.tcp.serviceName" Type="Str">My Computer/VI Server</Property>
<Property Name="server.tcp.serviceName.default" Type="Str">My Computer/VI Server</Property>
<Property Name="server.vi.callsEnabled" Type="Bool">true</Property>
<Property Name="server.vi.propertiesEnabled" Type="Bool">true</Property>
<Property Name="specify.custom.address" Type="Bool">false</Property>
<Item Name="dll" Type="Folder">
<Item Name="OfflineMaps.Controls.dll" Type="Document" URL="../dll/OfflineMaps.Controls.dll"/>
<Item Name="OfflineMaps.Core.dll" Type="Document" URL="../dll/OfflineMaps.Core.dll"/>
</Item>
<Item Name="tests" Type="Folder">
<Item Name="Read track.vi" Type="VI" URL="../tests/Read track.vi"/>
</Item>
<Item Name="types" Type="Folder">
<Item Name="Data Share Type.ctl" Type="VI" URL="../types/Data Share Type.ctl"/>
<Item Name="PointData Type.ctl" Type="VI" URL="../types/PointData Type.ctl"/>
</Item>
<Item Name="Main.vi" Type="VI" URL="../Main.vi"/>
<Item Name="Dependencies" Type="Dependencies">
<Item Name="vi.lib" Type="Folder">
<Item Name="BuildHelpPath.vi" Type="VI" URL="/<vilib>/Utility/error.llb/BuildHelpPath.vi"/>
<Item Name="Check Special Tags.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Check Special Tags.vi"/>
<Item Name="Clear Errors.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Clear Errors.vi"/>
<Item Name="Convert property node font to graphics font.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Convert property node font to graphics font.vi"/>
<Item Name="Details Display Dialog.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Details Display Dialog.vi"/>
<Item Name="DialogType.ctl" Type="VI" URL="/<vilib>/Utility/error.llb/DialogType.ctl"/>
<Item Name="DialogTypeEnum.ctl" Type="VI" URL="/<vilib>/Utility/error.llb/DialogTypeEnum.ctl"/>
<Item Name="Error Code Database.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Error Code Database.vi"/>
<Item Name="ErrWarn.ctl" Type="VI" URL="/<vilib>/Utility/error.llb/ErrWarn.ctl"/>
<Item Name="eventvkey.ctl" Type="VI" URL="/<vilib>/event_ctls.llb/eventvkey.ctl"/>
<Item Name="Find Tag.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Find Tag.vi"/>
<Item Name="Format Message String.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Format Message String.vi"/>
<Item Name="General Error Handler Core CORE.vi" Type="VI" URL="/<vilib>/Utility/error.llb/General Error Handler Core CORE.vi"/>
<Item Name="General Error Handler.vi" Type="VI" URL="/<vilib>/Utility/error.llb/General Error Handler.vi"/>
<Item Name="Get String Text Bounds.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Get String Text Bounds.vi"/>
<Item Name="Get Text Rect.vi" Type="VI" URL="/<vilib>/picture/picture.llb/Get Text Rect.vi"/>
<Item Name="GetHelpDir.vi" Type="VI" URL="/<vilib>/Utility/error.llb/GetHelpDir.vi"/>
<Item Name="GetRTHostConnectedProp.vi" Type="VI" URL="/<vilib>/Utility/error.llb/GetRTHostConnectedProp.vi"/>
<Item Name="Longest Line Length in Pixels.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Longest Line Length in Pixels.vi"/>
<Item Name="LVBoundsTypeDef.ctl" Type="VI" URL="/<vilib>/Utility/miscctls.llb/LVBoundsTypeDef.ctl"/>
<Item Name="LVRectTypeDef.ctl" Type="VI" URL="/<vilib>/Utility/miscctls.llb/LVRectTypeDef.ctl"/>
<Item Name="Not Found Dialog.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Not Found Dialog.vi"/>
<Item Name="Search and Replace Pattern.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Search and Replace Pattern.vi"/>
<Item Name="Set Bold Text.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Set Bold Text.vi"/>
<Item Name="Set String Value.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Set String Value.vi"/>
<Item Name="Simple Error Handler.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Simple Error Handler.vi"/>
<Item Name="TagReturnType.ctl" Type="VI" URL="/<vilib>/Utility/error.llb/TagReturnType.ctl"/>
<Item Name="Three Button Dialog CORE.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Three Button Dialog CORE.vi"/>
<Item Name="Three Button Dialog.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Three Button Dialog.vi"/>
<Item Name="Trim Whitespace.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Trim Whitespace.vi"/>
<Item Name="whitespace.ctl" Type="VI" URL="/<vilib>/Utility/error.llb/whitespace.ctl"/>
</Item>
</Item>
<Item Name="Build Specifications" Type="Build">
<Item Name="labview-offline-maps" Type="EXE">
<Property Name="App_copyErrors" Type="Bool">true</Property>
<Property Name="App_INI_aliasGUID" Type="Str">{D286786B-FD3D-4781-B23B-2FACB0419347}</Property>
<Property Name="App_INI_GUID" Type="Str">{C877055C-88B5-450E-9C6F-7F13A9F824E9}</Property>
<Property Name="App_serverConfig.httpPort" Type="Int">8002</Property>
<Property Name="Bld_autoIncrement" Type="Bool">true</Property>
<Property Name="Bld_buildCacheID" Type="Str">{9193AE74-2B1E-4DB1-9CDC-BBD1328CDF48}</Property>
<Property Name="Bld_buildSpecName" Type="Str">labview-offline-maps</Property>
<Property Name="Bld_excludeInlineSubVIs" Type="Bool">true</Property>
<Property Name="Bld_excludeLibraryItems" Type="Bool">true</Property>
<Property Name="Bld_excludePolymorphicVIs" Type="Bool">true</Property>
<Property Name="Bld_localDestDir" Type="Path">../builds/labview-offline-maps</Property>
<Property Name="Bld_localDestDirType" Type="Str">relativeToCommon</Property>
<Property Name="Bld_modifyLibraryFile" Type="Bool">true</Property>
<Property Name="Bld_previewCacheID" Type="Str">{86CFF8F9-1533-4E41-A013-FB57EF61E12E}</Property>
<Property Name="Bld_version.build" Type="Int">9</Property>
<Property Name="Bld_version.major" Type="Int">1</Property>
<Property Name="Destination[0].destName" Type="Str">labview-offline-maps.exe</Property>
<Property Name="Destination[0].path" Type="Path">../builds/labview-offline-maps/labview-offline-maps.exe</Property>
<Property Name="Destination[0].preserveHierarchy" Type="Bool">true</Property>
<Property Name="Destination[0].type" Type="Str">App</Property>
<Property Name="Destination[1].destName" Type="Str">Support Directory</Property>
<Property Name="Destination[1].path" Type="Path">../builds/labview-offline-maps/data</Property>
<Property Name="DestinationCount" Type="Int">2</Property>
<Property Name="Source[0].itemID" Type="Str">{AD070C46-D448-4D84-B487-E9F3C65C0398}</Property>
<Property Name="Source[0].type" Type="Str">Container</Property>
<Property Name="Source[1].destinationIndex" Type="Int">0</Property>
<Property Name="Source[1].itemID" Type="Ref">/My Computer/Main.vi</Property>
<Property Name="Source[1].sourceInclusion" Type="Str">TopLevel</Property>
<Property Name="Source[1].type" Type="Str">VI</Property>
<Property Name="Source[2].destinationIndex" Type="Int">0</Property>
<Property Name="Source[2].itemID" Type="Ref">/My Computer/dll/OfflineMaps.Controls.dll</Property>
<Property Name="Source[2].sourceInclusion" Type="Str">Include</Property>
<Property Name="Source[3].destinationIndex" Type="Int">0</Property>
<Property Name="Source[3].itemID" Type="Ref">/My Computer/dll/OfflineMaps.Core.dll</Property>
<Property Name="Source[3].sourceInclusion" Type="Str">Include</Property>
<Property Name="SourceCount" Type="Int">4</Property>
<Property Name="TgtF_companyName" Type="Str">Aliaksei Luferau</Property>
<Property Name="TgtF_fileDescription" Type="Str">labview-offline-maps</Property>
<Property Name="TgtF_internalName" Type="Str">labview-offline-maps</Property>
<Property Name="TgtF_legalCopyright" Type="Str">Copyright © Aliaksei Luferau 2020 </Property>
<Property Name="TgtF_productName" Type="Str">labview-offline-maps</Property>
<Property Name="TgtF_targetfileGUID" Type="Str">{AFC80C76-C82F-477F-9428-080B49574D89}</Property>
<Property Name="TgtF_targetfileName" Type="Str">labview-offline-maps.exe</Property>
<Property Name="TgtF_versionIndependent" Type="Bool">true</Property>
</Item>
</Item>
</Item>
</Project>
| LabVIEW | 2 | luferau/labview-offline-maps | labview/OfflineMap.lvproj | [
"MIT"
] |
Private
'box implementations private!
Alias BoolObject=monkey.boxes.BoolObject
Alias IntObject=monkey.boxes.IntObject
Alias FloatObject=monkey.boxes.FloatObject
Alias StringObject=monkey.boxes.StringObject
Alias ArrayObject=monkey.boxes.ArrayObject
Const ARRAY_PREFIX:="monkey.boxes.ArrayObject<"
Public
'Bitmasks returned by Attributes() methods
Const ATTRIBUTE_EXTERN= $01
Const ATTRIBUTE_PRIVATE= $02
Const ATTRIBUTE_ABSTRACT= $04
Const ATTRIBUTE_FINAL= $08
Const ATTRIBUTE_INTERFACE= $10
Function BoolClass:ClassInfo()
Return _boolClass
End
Function IntClass:ClassInfo()
Return _intClass
End
Function FloatClass:ClassInfo()
Return _floatClass
End
Function StringClass:ClassInfo()
Return _stringClass
End
Function ArrayClass:ClassInfo( elemType:String )
Return GetClass( ARRAY_PREFIX+elemType+">" )
End
Class ConstInfo
Method New( name$,attrs,type:ClassInfo,value:Object )
_name=name
_attrs=attrs
_type=type
_value=value
End
Method Name$() Property
Return _name
End
Method Attributes() Property
Return _attrs
End
Method Type:ClassInfo() Property
Return _type
End
Method GetValue:Object()
Return _value
End
Private
Field _name$
Field _attrs
Field _type:ClassInfo
Field _value:Object
End
Class GlobalInfo
Method New( name$,attrs,type:ClassInfo )
_name=name
_attrs=attrs
_type=type
End
Method Name$() Property
Return _name
End
Method Attributes() Property
Return _attrs
End
Method Type:ClassInfo() Property
Return _type
End
Method GetValue:Object() Abstract
Method SetValue:Void( obj:Object ) Abstract
Private
Field _name$
Field _attrs
Field _type:ClassInfo
End
Class FieldInfo
Method New( name$,attrs,type:ClassInfo )
_name=name
_attrs=attrs
_type=type
End
Method Name$() Property
Return _name
End
Method Attributes() Property
Return _attrs
End
Method Type:ClassInfo() Property
Return _type
End
Method GetValue:Object( inst:Object ) Abstract
Method SetValue:Void( inst:Object,value:Object ) Abstract
Private
Field _name$
Field _attrs
Field _type:ClassInfo
End
Class MethodInfo
Method New( name$,attrs,retType:ClassInfo,argTypes:ClassInfo[] )
_name=name
_attrs=attrs
_retType=retType
_argTypes=argTypes
End
Method Name$() Property
Return _name
End
Method Attributes() Property
Return _attrs
End
Method ReturnType:ClassInfo() Property
Return _retType
End
Method ParameterTypes:ClassInfo[]() Property
Return _argTypes
End
Method Invoke:Object( inst:Object,args:Object[] ) Abstract
Private
Field _name$
Field _attrs
Field _retType:ClassInfo
Field _argTypes:ClassInfo[]
End
Class FunctionInfo
Method New( name$,attrs,retType:ClassInfo,argTypes:ClassInfo[] )
_name=name
_attrs=attrs
_retType=retType
_argTypes=argTypes
End
Method Name$() Property
Return _name
End
Method Attributes() Property
Return _attrs
End
Method ReturnType:ClassInfo() Property
Return _retType
End
Method ParameterTypes:ClassInfo[]() Property
Return _argTypes
End
Method Invoke:Object( args:Object[] ) Abstract
Private
Field _name$
Field _attrs
Field _retType:ClassInfo
Field _argTypes:ClassInfo[]
End
Class ClassInfo
Method New( name$,attrs,sclass:ClassInfo,ifaces:ClassInfo[] )
_name=name
_attrs=attrs
_sclass=sclass
_ifaces=ifaces
End
Method Name$() Property
Return _name
End
Method Attributes() Property
Return _attrs
End
Method SuperClass:ClassInfo() Property
Return _sclass
End
Method Interfaces:ClassInfo[]() Property
Return _ifaces
End
Method ElementType:ClassInfo() Property
Return Null
End
Method ArrayLength:Int( inst:Object )
Error "Class is not an array class"
End
Method GetElement:Object( inst:Object,index )
Error "Class is not an array class"
End
Method SetElement:Void( inst:Object,index,value:Object )
Error "Class is not an array class"
End
Method NewInstance:Object()
Error "Can't create instance of class"
End
Method NewArray:Object( length )
Error "Can't create instance of array"
End
Method ExtendsClass?( clas:ClassInfo )
If clas=Self Return True
If clas._attrs & ATTRIBUTE_INTERFACE
For Local t:=Eachin _ifaces
If t.ExtendsClass( clas ) Return True
Next
Endif
If _sclass Return _sclass.ExtendsClass( clas )
Return False
End
Method GetConsts:ConstInfo[]( recursive? )
If recursive Return _rconsts
Return _consts
End
Method GetConst:ConstInfo( name$,recursive?=True )
If Not _constsMap
_constsMap=New StringMap<ConstInfo>
For Local t:=Eachin _consts
_constsMap.Set t.Name(),t
Next
Endif
Local t:=_constsMap.Get( name )
If Not t And _sclass And recursive Return _sclass.GetConst( name,True )
Return t
End
Method GetGlobals:GlobalInfo[]( recursive? )
If recursive Return _rglobals
Return _globals
End
Method GetGlobal:GlobalInfo( name$,recursive?=True )
If Not _globalsMap
_globalsMap=New StringMap<GlobalInfo>
For Local g:=Eachin _globals
_globalsMap.Set g.Name(),g
Next
Endif
Local g:=_globalsMap.Get( name )
If Not g And _sclass And recursive Return _sclass.GetGlobal( name,True )
Return g
End
Method GetFields:FieldInfo[]( recursive? )
If recursive Return _rfields
Return _fields
End
Method GetField:FieldInfo( name$,recursive?=True )
If Not _fieldsMap
_fieldsMap=New StringMap<FieldInfo>
For Local f:=Eachin _fields
_fieldsMap.Set f.Name(),f
Next
Endif
Local f:=_fieldsMap.Get( name )
If Not f And _sclass And recursive Return _sclass.GetField( name,True )
Return f
End
Method GetMethods:MethodInfo[]( recursive? )
If recursive Return _rmethods
Return _methods
End
Method GetMethod:MethodInfo( name$,argTypes:ClassInfo[],recursive?=True )
If Not _methodsMap
_methodsMap=New StringMap<List<MethodInfo>>
For Local f:=Eachin _methods
Local list:=_methodsMap.Get( f.Name() )
If Not list
list=New List<MethodInfo>
_methodsMap.Set f.Name(),list
Endif
list.AddLast f
Next
Endif
Local list:=_methodsMap.Get( name )
If list
For Local f:=Eachin list
If CmpArgs( f.ParameterTypes(),argTypes ) Return f
Next
Endif
If _sclass And recursive Return _sclass.GetMethod( name,argTypes,True )
Return Null
End
Method GetFunctions:FunctionInfo[]( recursive? )
If recursive Return _rfunctions
Return _functions
End
Method GetFunction:FunctionInfo( name$,argTypes:ClassInfo[],recursive?=True )
If Not _functionsMap
_functionsMap=New StringMap<List<FunctionInfo>>
For Local f:=Eachin _functions
Local list:=_functionsMap.Get( f.Name() )
If Not list
list=New List<FunctionInfo>
_functionsMap.Set f.Name(),list
Endif
list.AddLast f
Next
Endif
Local list:=_functionsMap.Get( name )
If list
For Local f:=Eachin list
If CmpArgs( f.ParameterTypes(),argTypes ) Return f
Next
Endif
If _sclass And recursive Return _sclass.GetFunction( name,argTypes,True )
Return Null
End
Method GetConstructors:FunctionInfo[]()
Return _ctors
End
Method GetConstructor:FunctionInfo( argTypes:ClassInfo[] )
For Local f:=Eachin _ctors
If CmpArgs( f.ParameterTypes(),argTypes ) Return f
Next
Return Null
End
Private
Field _name$
Field _attrs:Int
Field _sclass:ClassInfo
Field _ifaces:ClassInfo[]
Field _consts:ConstInfo[]
Field _fields:FieldInfo[]
Field _globals:GlobalInfo[]
Field _methods:MethodInfo[]
Field _functions:FunctionInfo[]
Field _ctors:FunctionInfo[]
Field _rconsts:ConstInfo[]
Field _rglobals:GlobalInfo[]
Field _rfields:FieldInfo[]
Field _rmethods:MethodInfo[]
Field _rfunctions:FunctionInfo[]
Field _globalsMap:StringMap<GlobalInfo>
Field _fieldsMap:StringMap<FieldInfo>
Field _methodsMap:StringMap<List<MethodInfo>>
Field _functionsMap:StringMap<List<FunctionInfo>>
Method Init()
End
Method InitR()
If _sclass
Local consts:=New Stack<ConstInfo>( _sclass._rconsts )
For Local t:=Eachin _consts
consts.Push t
Next
_rconsts=consts.ToArray()
Local fields:=New Stack<FieldInfo>( _sclass._rfields )
For Local t:=Eachin _fields
fields.Push t
Next
_rfields=fields.ToArray()
Local globals:=New Stack<GlobalInfo>( _sclass._rglobals )
For Local t:=Eachin _globals
globals.Push t
Next
_rglobals=globals.ToArray()
Local methods:=New Stack<MethodInfo>( _sclass._rmethods )
For Local t:=Eachin _methods
methods.Push t
Next
_rmethods=methods.ToArray()
Local functions:=New Stack<FunctionInfo>( _sclass._rfunctions )
For Local t:=Eachin _functions
functions.Push t
Next
_rfunctions=functions.ToArray()
Else
_rconsts=_consts
_rfields=_fields
_rglobals=_globals
_rmethods=_methods
_rfunctions=_functions
Endif
End
End
Function GetClasses:ClassInfo[]()
Return _classes
End
Function GetClass:ClassInfo( name$ )
If Not _classesMap
_classesMap=New StringMap<ClassInfo>
For Local c:=Eachin _classes
Local name:=c.Name()
_classesMap.Set name,c
Local i:=name.FindLast( "." )
If i=-1 Continue
name=name[i+1..]
If _classesMap.Contains( name )
_classesMap.Set name,Null
Else
_classesMap.Set name,c
Endif
Next
Endif
Return _classesMap.Get( name )
End
Function GetClass:ClassInfo( obj:Object )
Return _getClass.GetClass( obj )
End
Function GetConsts:ConstInfo[]()
Return _consts
End
Function GetConst:ConstInfo( name$ )
If Not _constsMap
_constsMap=New StringMap<ConstInfo>
For Local t:=Eachin _consts
Local name:=t.Name()
_constsMap.Set name,t
Local i:=name.FindLast( "." )
If i<>-1
name=name[i+1..]
If _constsMap.Contains( name )
_constsMap.Set name,Null
Else
_constsMap.Set name,t
Endif
Endif
Next
Endif
Return _constsMap.Get( name )
End
Function GetGlobals:GlobalInfo[]()
Return _globals
End
Function GetGlobal:GlobalInfo( name$ )
If Not _globalsMap
_globalsMap=New StringMap<GlobalInfo>
For Local g:=Eachin _globals
Local name:=g.Name()
_globalsMap.Set name,g
Local i:=name.FindLast( "." )
If i<>-1
name=name[i+1..]
If _globalsMap.Contains( name )
_globalsMap.Set name,Null
Else
_globalsMap.Set name,g
Endif
Endif
Next
Endif
Return _globalsMap.Get( name )
End
Function GetFunctions:FunctionInfo[]()
Return _functions
End
Function GetFunction:FunctionInfo( name$,argTypes:ClassInfo[] )
If Not _functionsMap
_functionsMap=New StringMap<List<FunctionInfo>>
For Local f:=Eachin _functions
Local name:=f.Name()
Local list:=_functionsMap.Get( name )
If Not list
list=New List<FunctionInfo>
_functionsMap.Set name,list
Endif
list.AddLast f
Local i:=name.FindLast( "." )
If i=-1 Continue
name=name[i+1..]
list=_functionsMap.Get( name )
If list
Local found:=False
For Local f2:=Eachin list
If CmpArgs( f.ParameterTypes(),f2.ParameterTypes() )
found=True
Exit
Endif
Next
If found
_functionsMap.Set name,Null
Continue
Endif
Else
If _functionsMap.Contains( name ) Continue
list=New List<FunctionInfo>
_functionsMap.Set name,list
Endif
list.AddLast f
Next
Endif
Local list:=_functionsMap.Get( name )
If list
For Local f:=Eachin list
If CmpArgs( f.ParameterTypes(),argTypes ) Return f
Next
Endif
Return Null
End
Private
Function InternalErr()
Error "Error!"
End
Global _boolClass:ClassInfo
Global _intClass:ClassInfo
Global _floatClass:ClassInfo
Global _stringClass:ClassInfo
Global _unknownClass:ClassInfo=New UnknownClass
Global _classes:ClassInfo[]
Global _consts:ConstInfo[]
Global _globals:GlobalInfo[]
Global _functions:FunctionInfo[]
Global _classesMap:StringMap<ClassInfo>
Global _constsMap:StringMap<ConstInfo>
Global _globalsMap:StringMap<GlobalInfo>
Global _functionsMap:StringMap<List<FunctionInfo>>
Class _GetClass
Method GetClass:ClassInfo( obj:Object ) Abstract
End
Global _getClass:_GetClass
Function CmpArgs( args0:ClassInfo[],args1:ClassInfo[] )
If args0.Length<>args1.Length Return False
For Local i=0 Until args0.Length
If args0[i]<>args1[i] Return False
Next
Return True
End
Class UnknownClass Extends ClassInfo
Method New()
Super.New( "?",0,Null,[] )
End
End
| Monkey | 4 | Regal-Internet-Brothers/webcc-monkey | webcc.data/modules/reflection/reflection.monkey | [
"Zlib"
] |
--TEST--
Bug #79441 Segfault in mb_chr() if internal encoding is unsupported
--EXTENSIONS--
mbstring
--FILE--
<?php
mb_internal_encoding("utf-7");
try {
mb_chr(0xd800);
} catch (\ValueError $e) {
echo $e->getMessage() . \PHP_EOL;
}
?>
--EXPECT--
mb_chr() does not support the "UTF-7" encoding
| PHP | 3 | NathanFreeman/php-src | ext/mbstring/tests/bug79441.phpt | [
"PHP-3.01"
] |
should = require 'chai'.should()
global.should contain fields = (require './containsFields').contains fields
global.(x) should equal (y) = should.equal (x) (y)
global.(x) should be truthy = should.ok (x)
global.(x) should be falsy = should.ok (@not x)
| PogoScript | 3 | featurist/pogoscript | test/assertions.pogo | [
"BSD-2-Clause"
] |
.. tabs::
.. tab:: Rolling Release
This is the rolling release PPA.
It will always upgrade your installation and you will always receive the latest-and-greatest eCAL version.
.. code-block:: bash
sudo add-apt-repository ppa:ecal/ecal-latest
sudo apt-get update
sudo apt-get install ecal
Also check out this PPA on `Launchpad <https://launchpad.net/~ecal/+archive/ubuntu/ecal-latest>`_!
@{lastest_version_counter = 0}@
@[for ecal_version in ppa_list]@
@{
ecal_version_string = str(ecal_version.major) + "." + str(ecal_version.minor)
}@
.. tab:: eCAL @(ecal_version_string)
This PPA will always stay on eCAL @(ecal_version_string).
@[ if lastest_version_counter <= 1]@
You will receive patches as long as eCAL @(ecal_version_string) is supported.
@[ end if]@
If you want to upgrade to a new eCAL Version, you will have to manually add the new PPA.
@[ if lastest_version_counter == 0]@
At the moment, eCAL @(ecal_version_string) is the latest supported version.
@[ end if]@
@[ if lastest_version_counter == 1]@
At the moment, eCAL @(ecal_version_string) is the supported legacy-version.
Support will be dropped when the next eCAL Version is released.
@[ end if]@
@[ if lastest_version_counter > 1]@
eCAL @(ecal_version_string) is not supported any more and will not receive patches.
You can still use the PPA to install the latest eCAL @(ecal_version_string).
Please consider upgrading to a newer version.
@[ end if]@
.. code-block:: bash
sudo add-apt-repository ppa:ecal/ecal-@(ecal_version_string)
sudo apt-get update
sudo apt-get install ecal
Also check out this PPA on `Launchpad <https://launchpad.net/~ecal/+archive/ubuntu/ecal-@(ecal_version_string)>`_!
@{
lastest_version_counter += 1
}@
@[end for]@ | EmberScript | 3 | SirArep/ecal | doc/extensions/resource/ppa_tabs.rst.em | [
"Apache-2.0"
] |
Lazy Loading AngularJS
<nav>
<a routerLink="/">Home</a>
<a routerLink="/users">Users</a>
<a routerLink="/notfound">404 Page</a>
</nav>
<router-outlet></router-outlet>
| HTML | 2 | coreyscherbing/angular | aio/content/examples/upgrade-lazy-load-ajs/src/app/app.component.html | [
"MIT"
] |
# DO NOT EDIT THIS FILE. This file will be overwritten when re-running go-raml.
using Go = import "/go.capnp";
@0xa7e23d857e502785;
$Go.package("main");
$Go.import("main");
enum EnumAdminClearanceLevel {
low @0;
high @1;
}
| Cap'n Proto | 3 | mrpotes/go-raml | codegen/capnp/fixtures/struct/golang/EnumAdminClearanceLevel.capnp | [
"BSD-2-Clause"
] |
instruct!
countries do
countries.each do |country|
country do
name { cdata!(country.name) }
code { cdata!(country.code) }
continent { cdata!(country.continent_name) }
capital { cdata!(country.capital) }
population country.population
boundaries do
north country.north
sourth country.south
east country.east
west country.west
end
end
end
end
| Ox | 3 | JackDanger/ox-builder | benchmarks/templates/countries.ox | [
"MIT"
] |
Code.require_file("../test_helper.exs", __DIR__)
defmodule Kernel.StringTokenizerTest do
use ExUnit.Case, async: true
defp var({var, _, nil}), do: var
defp aliases({:__aliases__, _, [alias]}), do: alias
test "tokenizes vars" do
assert Code.string_to_quoted!("_12") |> var() == :_12
assert Code.string_to_quoted!("ola") |> var() == :ola
assert Code.string_to_quoted!("ólá") |> var() == :ólá
assert Code.string_to_quoted!("óLÁ") |> var() == :óLÁ
assert Code.string_to_quoted!("ólá?") |> var() == :ólá?
assert Code.string_to_quoted!("ólá!") |> var() == :ólá!
assert Code.string_to_quoted!("こんにちは世界") |> var() == :こんにちは世界
assert {:error, _} = Code.string_to_quoted("v@r")
assert {:error, _} = Code.string_to_quoted("1var")
end
test "tokenizes atoms" do
assert Code.string_to_quoted!(":_12") == :_12
assert Code.string_to_quoted!(":ola") == :ola
assert Code.string_to_quoted!(":ólá") == :ólá
assert Code.string_to_quoted!(":ólá?") == :ólá?
assert Code.string_to_quoted!(":ólá!") == :ólá!
assert Code.string_to_quoted!(":ól@") == :ól@
assert Code.string_to_quoted!(":ól@!") == :ól@!
assert Code.string_to_quoted!(":ó@@!") == :ó@@!
assert Code.string_to_quoted!(":Ola") == :Ola
assert Code.string_to_quoted!(":Ólá") == :Ólá
assert Code.string_to_quoted!(":ÓLÁ") == :ÓLÁ
assert Code.string_to_quoted!(":ÓLÁ?") == :ÓLÁ?
assert Code.string_to_quoted!(":ÓLÁ!") == :ÓLÁ!
assert Code.string_to_quoted!(":ÓL@!") == :ÓL@!
assert Code.string_to_quoted!(":Ó@@!") == :Ó@@!
assert Code.string_to_quoted!(":こんにちは世界") == :こんにちは世界
assert {:error, _} = Code.string_to_quoted(":123")
assert {:error, _} = Code.string_to_quoted(":@123")
end
test "tokenizes keywords" do
assert Code.string_to_quoted!("[_12: 0]") == [_12: 0]
assert Code.string_to_quoted!("[ola: 0]") == [ola: 0]
assert Code.string_to_quoted!("[ólá: 0]") == [ólá: 0]
assert Code.string_to_quoted!("[ólá?: 0]") == [ólá?: 0]
assert Code.string_to_quoted!("[ólá!: 0]") == [ólá!: 0]
assert Code.string_to_quoted!("[ól@: 0]") == [ól@: 0]
assert Code.string_to_quoted!("[ól@!: 0]") == [ól@!: 0]
assert Code.string_to_quoted!("[ó@@!: 0]") == [ó@@!: 0]
assert Code.string_to_quoted!("[Ola: 0]") == [Ola: 0]
assert Code.string_to_quoted!("[Ólá: 0]") == [Ólá: 0]
assert Code.string_to_quoted!("[ÓLÁ: 0]") == [ÓLÁ: 0]
assert Code.string_to_quoted!("[ÓLÁ?: 0]") == [ÓLÁ?: 0]
assert Code.string_to_quoted!("[ÓLÁ!: 0]") == [ÓLÁ!: 0]
assert Code.string_to_quoted!("[ÓL@!: 0]") == [ÓL@!: 0]
assert Code.string_to_quoted!("[Ó@@!: 0]") == [Ó@@!: 0]
assert Code.string_to_quoted!("[こんにちは世界: 0]") == [こんにちは世界: 0]
assert {:error, _} = Code.string_to_quoted("[123: 0]")
assert {:error, _} = Code.string_to_quoted("[@123: 0]")
end
test "tokenizes aliases" do
assert Code.string_to_quoted!("Ola") |> aliases() == String.to_atom("Ola")
assert Code.string_to_quoted!("M_123") |> aliases() == String.to_atom("M_123")
assert {:error, _} = Code.string_to_quoted("Óla")
assert {:error, _} = Code.string_to_quoted("Olá")
assert {:error, _} = Code.string_to_quoted("Ol@")
assert {:error, _} = Code.string_to_quoted("Ola?")
assert {:error, _} = Code.string_to_quoted("Ola!")
end
end
| Elixir | 5 | doughsay/elixir | lib/elixir/test/elixir/kernel/string_tokenizer_test.exs | [
"Apache-2.0"
] |
#!perl
use 5.008001;
use strict;
use warnings;
use blib;
use Getopt::Long;
use Net::SMTP;
=head1 NAME
smtp.self - mail a message via smtp
=head1 DESCRIPTION
C<smtp.self> will attempt to send a message to a given user
=head1 OPTIONS
=over 4
=item -debug
Enabe the output of dubug information
=item -help
Display this help text and quit
=item -user USERNAME
Send the message to C<USERNAME>
=head1 EXAMPLE
demos/smtp.self -user foo.bar
demos/smtp.self -debug -user Graham.Barr
=back
=cut
my $opt_debug = undef;
my $opt_user = undef;
my $opt_help = undef;
GetOptions(qw(debug user=s help));
exec("pod2text $0")
if defined $opt_help;
Net::SMTP->debug(1) if $opt_debug;
my $smtp = Net::SMTP->new("mailhost");
my $user = $opt_user || $ENV{USER} || $ENV{LOGNAME};
$smtp->mail($user) && $smtp->to($user);
$smtp->reset;
if($smtp->mail($user) && $smtp->to($user))
{
$smtp->data();
my @data;
map { s/-USER-/$user/g } @data=<DATA>; ## no critic (ControlStructures::ProhibitMutatingListFunctions)
$smtp->datasend(@data);
$smtp->dataend;
}
else
{
warn $smtp->message;
}
$smtp->quit;
__DATA__
To: <-USER->
Subject: A test message
The message was sent directly via SMTP using Net::SMTP
.
The message was sent directly via SMTP using Net::SMTP
| Self | 4 | gitpan/libnet | demos/smtp.self | [
"Barr"
] |
pub trait Trait {
const CONST: u32;
}
| Rust | 3 | Eric-Arellano/rust | src/test/ui/issues/auxiliary/issue-41549.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
.. _inspection_examples:
Inspection
----------
Examples related to the :mod:`sklearn.inspection` module.
| Text | 0 | emarkou/scikit-learn | examples/inspection/README.txt | [
"BSD-3-Clause"
] |
; In this case, we will work with turtles, not patches.
; Specifically with two types of turtles
breed[nodes node] ; to represent the nodes of the network
breed[searchers searcher] ; to represent the agents that will make the search
; We don't need any extra property in the nodes. All the information will be stored
; in the searchers, and to know if a node has been explored it is enough to see of there
; is a searcher on it.
; Searchers will have som additional properties for their functioning.
searchers-own [
memory ; Stores the path from the start node to here
cost ; Stores the real cost from the start
total-expected-cost ; Stores the total exepcted cost from Start to the Goal that is being computed
localization ; The node where the searcher is
active? ; is the seacrher active? That is, we have reached the node, but
; we must consider it because its neighbors have not been explored
]
; Setup procedure: simply create the geometric network based on the number of random located nodes
; and the maximum radius to connect two any nodes of the network
to setup
ca
create-nodes Num-nodes [
setxy random-xcor random-ycor
set shape "circle"
set size .5
set color blue]
ask nodes [
create-links-with other nodes in-radius radius]
end
; Auxiliary procedure to test the A* algorithm between two random nodes of the network
to test
ask nodes [set color blue set size .5]
ask links with [color = yellow][set color grey set thickness 0]
let start one-of nodes
ask start [set color green set size 1]
let goal one-of nodes with [distance start > max-pxcor]
ask goal [set color green set size 1]
; We compute the path with A*
let ti timer
let path (A* start goal)
show timer - ti
; if any, we highlight it
if path != false [highlight-path path]
end
; Searcher report to compute the heuristic for this searcher: in this case, one good option
; is the euclidean distance from the location of the node and the goal we want to reach
to-report heuristic [#Goal]
report [distance [localization] of myself] of #Goal
end
; The A* Algorithm es very similar to the previous one (patches). It is supposed that the
; network is accesible by the algorithm, so we don't need to pass it as input. Therefore,
; it will receive only the initial and final nodes.
to-report A* [#Start #Goal]
; Create a searcher for the Start node
ask #Start
[
hatch-searchers 1
[
set shape "circle"
set color red
set localization myself
set memory (list localization) ; the partial path will have only this node at the beginning
set cost 0
set total-expected-cost cost + heuristic #Goal ; Compute the expected cost
set active? true ; It is active, because we didn't calculate its neighbors yet
]
]
; The main loop will run while the Goal has not been reached and we have active searchers to
; inspect. Tha means that a path connecting start and goal is still possible
while [not any? searchers with [localization = #Goal] and any? searchers with [active?]]
[
; From the active searchers we take one of the minimal expected cost to the goal
ask min-one-of (searchers with [active?]) [total-expected-cost]
[
; We will explore its neighbors, so we deactivated it
set active? false
; Store this searcher and its localization in temporal variables to facilitate their use
let this-searcher self
let Lorig localization
; For every neighbor node of this location
ask ([link-neighbors] of Lorig)
[
; Take the link that connect it to the Location of the searcher
let connection link-with Lorig
; The cost to reach the neighbor in this path is the previous cost plus the lenght of the link
let c ([cost] of this-searcher) + [link-length] of connection
; Maybe in this node there are other searchers (comming from other nodes).
; If this new path is better than the other, then we put a new searcher and remove the old ones
if not any? searchers-in-loc with [cost < c]
[
hatch-searchers 1
[
set shape "circle"
set color red
set localization myself ; the location of the new searcher is this neighbor node
set memory lput localization ([memory] of this-searcher) ; the path is built from the
; original searcher
set cost c ; real cost to reach this node
set total-expected-cost cost + heuristic #Goal ; expected cost to reach the goal with this path
set active? true ; it is active to be explored
ask other searchers-in-loc [die] ; Remove other seacrhers in this node
]
]
]
]
]
; When the loop has finished, we have two options: no path, or a searcher has reached the goal
; By default the return will be false (no path)
let res false
; But if it is the second option
if any? searchers with [localization = #Goal]
[
; we will return the path located in the memory of the searcher that reached the goal
let lucky-searcher one-of searchers with [localization = #Goal]
set res [memory] of lucky-searcher
]
; Remove the searchers
ask searchers [die]
; and report the result
report res
end
; Auxiliary procedure the highlight the path when it is found. It makes use of reduce procedure with
; highlight report
to highlight-path [path]
let a reduce highlight path
end
; Auxiliaty report to highlight the path with a reduce method. It recieives two nodes, as a secondary
; effect it will highlight the link between them, and will return the second node.
to-report highlight [x y]
ask x
[
ask link-with y [set color yellow set thickness .4]
]
report y
end
; Auxiliary nodes report to return the searchers located in it (it is like a version of turtles-here,
; but fot he network)
to-report searchers-in-loc
report searchers with [localization = myself]
end
@#$#@#$#@
GRAPHICS-WINDOW
210
10
647
448
-1
-1
13.0
1
10
1
1
1
0
0
0
1
-16
16
-16
16
0
0
1
ticks
30.0
BUTTON
22
76
85
109
NIL
setup
NIL
1
T
OBSERVER
NIL
NIL
NIL
NIL
1
BUTTON
131
76
194
109
NIL
test
NIL
1
T
OBSERVER
NIL
NIL
NIL
NIL
1
SLIDER
22
10
194
43
radius
radius
0
10
1.5
.1
1
NIL
HORIZONTAL
SLIDER
22
43
194
76
Num-Nodes
Num-Nodes
0
1000
1000.0
50
1
NIL
HORIZONTAL
@#$#@#$#@
@#$#@#$#@
default
true
0
Polygon -7500403 true true 150 5 40 250 150 205 260 250
circle
false
0
Circle -7500403 true true 0 0 300
@#$#@#$#@
NetLogo 6.1.1
@#$#@#$#@
@#$#@#$#@
@#$#@#$#@
@#$#@#$#@
@#$#@#$#@
default
0.0
-0.2 0 0.0 1.0
0.0 1 1.0 0.0
0.2 0 0.0 1.0
link direction
true
0
Line -7500403 true 150 150 90 180
Line -7500403 true 150 150 210 180
@#$#@#$#@
0
@#$#@#$#@
| NetLogo | 5 | fsancho/IA | 03. Informed Search/A-star Turtles Geometic Network.nlogo | [
"MIT"
] |
//////////////////////////////////////////////////////////////////////
//
// CLASS_CH.prg
//
//
// Contents:
// constant for the dynamic creation of classes
//
//////////////////////////////////////////////////////////////////////
// default
DEFINE CLASS_HIDDEN := 0x0001
DEFINE CLASS_PROTECTED := 0x0002
DEFINE CLASS_EXPORTED := 0x0003
DEFINE VAR_ASSIGN_HIDDEN := 0x0010
DEFINE VAR_ASSIGN_PROTECTED := 0x0020
// default is CLASS_... value
DEFINE VAR_ASSIGN_EXPORTED := 0x0030
// default
DEFINE VAR_INSTANCE := 0x0100
DEFINE VAR_CLASS := 0x0300
DEFINE VAR_CLASS_SHARED := 0x0B00
// default
DEFINE METHOD_INSTANCE := 0x0010
DEFINE METHOD_CLASS := 0x0020
DEFINE METHOD_ACCESS := 0x0400
DEFINE METHOD_ASSIGN := 0x0800
// defines for :classDescribe(<nMode>)
DEFINE CLASS_DESCR_ALL := 0
DEFINE CLASS_DESCR_CLASSNAME := 1
DEFINE CLASS_DESCR_SUPERCLASSES := 2
DEFINE CLASS_DESCR_MEMBERS := 3
DEFINE CLASS_DESCR_METHODS := 4
DEFINE CLASS_DESCR_SUPERDETAILS := 5
// index into member array returned by :classDescribe()
DEFINE CLASS_MEMBER_NAME := 1
DEFINE CLASS_MEMBER_ATTR := 2
DEFINE CLASS_MEMBER_TYPE := 3
// index into superclass array returned by :classDescribe()
DEFINE CLASS_SUPERCLASS_NAME := 1
DEFINE CLASS_SUPERCLASS_ATTR := 2
DEFINE CLASS_SUPERCLASS_TYPE := 3
// index into method array returned by :classDescribe()
DEFINE CLASS_METHOD_NAME := 1
DEFINE CLASS_METHOD_ATTR := 2
DEFINE CLASS_METHOD_BLOCK := 3
DEFINE CLASS_METHOD_VARNAME := 4 // ACCESS/ASSIGN
DEFINE CLASS_METHOD_TYPES := 5 // => Array
| xBase | 3 | orangesocks/XSharpPublic | Runtime/XSharp.XPP/Defines/Class_CH.prg | [
"Apache-2.0"
] |
package {
import flash.display.SimpleButton;
public class MyButton extends SimpleButton {
public function MyButton() {
trace("///MyButton constructor!");
}
}
}
| ActionScript | 3 | Sprak1/ruffle | tests/tests/swfs/avm2/simplebutton_symbolclass/MyButton.as | [
"Apache-2.0",
"Unlicense"
] |
{{
$Id: note_player.spin 14 2011-12-08 03:12:21Z pedward $
Author: Perry Harrington
Copyright: (c) 2011 Perry Harrington
=======================================================================
Sound player for Propeller, ported from Arduino to use the
Arduino_light SPIN object.
The songs play in order and repeat, with a 2 second delay between each
song.
This code runs directly on the Propeller Quickstart, simply connect a
speaker (I robbed one from a giftcard) to pin 16 (positive) and pin 17
(negative).
The original code and songs came from:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1253920105
}}
CON
OCTAVE_OFFSET = -1
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
OBJ
Tone: "Arduino_light"
DAT
song0 byte "The Simpsons:d=4,o=5,b=160:c.6,e6,f#6,8a6,g.6,e6,c6,8a,8f#,8f#,8f#,2g,8p,8p,8f#,8f#,8f#,8g,a#.,8c6,8c6,8c6,c6",0
song1 byte "Indiana:d=4,o=5,b=250:e,8p,8f,8g,8p,1c6,8p.,d,8p,8e,1f,p.,g,8p,8a,8b,8p,1f6,p,a,8p,8b,2c6,2d6,2e6,e,8p,8f,8g,8p,1c6,p,d6,8p,8e6,1f.6,g,8p,8g,e.6,8p,d6,8p,8g,e.6,8p,d6,8p,8g,f.6,8p,e6,8p,8d6,2c6",0
song2 byte "TakeOnMe:d=4,o=4,b=160:8f#5,8f#5,8f#5,8d5,8p,8b,8p,8e5,8p,8e5,8p,8e5,8g#5,8g#5,8a5,8b5,8a5,8a5,8a5,8e5,8p,8d5,8p,8f#5,8p,8f#5,8p,8f#5,8e5,8e5,8f#5,8e5,8f#5,8f#5,8f#5,8d5,8p,8b,8p,8e5,8p,8e5,8p,8e5,8g#5,8g#5,8a5,8b5,8a5,8a5,8a5,8e5,8p,8d5,8p,8f#5,8p,8f#5,8p,8f#5,8e5,8e5",0
song3 byte "Entertainer:d=4,o=5,b=140:8d,8d#,8e,c6,8e,c6,8e,2c.6,8c6,8d6,8d#6,8e6,8c6,8d6,e6,8b,d6,2c6,p,8d,8d#,8e,c6,8e,c6,8e,2c.6,8p,8a,8g,8f#,8a,8c6,e6,8d6,8c6,8a,2d6",0
song4 byte "Muppets:d=4,o=5,b=250:c6,c6,a,b,8a,b,g,p,c6,c6,a,8b,8a,8p,g.,p,e,e,g,f,8e,f,8c6,8c,8d,e,8e,8e,8p,8e,g,2p,c6,c6,a,b,8a,b,g,p,c6,c6,a,8b,a,g.,p,e,e,g,f,8e,f,8c6,8c,8d,e,8e,d,8d,c",0
song5 byte "Xfiles:d=4,o=5,b=125:e,b,a,b,d6,2b.,1p,e,b,a,b,e6,2b.,1p,g6,f#6,e6,d6,e6,2b.,1p,g6,f#6,e6,d6,f#6,2b.,1p,e,b,a,b,d6,2b.,1p,e,b,a,b,e6,2b.,1p,e6,2b.",0
song6 byte "Looney:d=4,o=5,b=140:32p,c6,8f6,8e6,8d6,8c6,a.,8c6,8f6,8e6,8d6,8d#6,e.6,8e6,8e6,8c6,8d6,8c6,8e6,8c6,8d6,8a,8c6,8g,8a#,8a,8f",0
song7 byte "20thCenFox:d=16,o=5,b=140:b,8p,b,b,2b,p,c6,32p,b,32p,c6,32p,b,32p,c6,32p,b,8p,b,b,b,32p,b,32p,b,32p,b,32p,b,32p,b,32p,b,32p,g#,32p,a,32p,b,8p,b,b,2b,4p,8e,8g#,8b,1c#6,8f#,8a,8c#6,1e6,8a,8c#6,8e6,1e6,8b,8g#,8a,2b",0
song8 byte "Bond:d=4,o=5,b=80:32p,16c#6,32d#6,32d#6,16d#6,8d#6,16c#6,16c#6,16c#6,16c#6,32e6,32e6,16e6,8e6,16d#6,16d#6,16d#6,16c#6,32d#6,32d#6,16d#6,8d#6,16c#6,16c#6,16c#6,16c#6,32e6,32e6,16e6,8e6,16d#6,16d6,16c#6,16c#7,c.7,16g#6,16f#6,g#.6",0
song9 byte "MASH:d=8,o=5,b=140:4a,4g,f#,g,p,f#,p,g,p,f#,p,2e.,p,f#,e,4f#,e,f#,p,e,p,4d.,p,f#,4e,d,e,p,d,p,e,p,d,p,2c#.,p,d,c#,4d,c#,d,p,e,p,4f#,p,a,p,4b,a,b,p,a,p,b,p,2a.,4p,a,b,a,4b,a,b,p,2a.,a,4f#,a,b,p,d6,p,4e.6,d6,b,p,a,p,2b",0
songA byte "StarWars:d=4,o=5,b=45:32p,32f#,32f#,32f#,8b.,8f#.6,32e6,32d#6,32c#6,8b.6,16f#.6,32e6,32d#6,32c#6,8b.6,16f#.6,32e6,32d#6,32e6,8c#.6,32f#,32f#,32f#,8b.,8f#.6,32e6,32d#6,32c#6,8b.6,16f#.6,32e6,32d#6,32c#6,8b.6,16f#.6,32e6,32d#6,32e6,8c#6",0
songB byte "GoodBad:d=4,o=5,b=56:32p,32a#,32d#6,32a#,32d#6,8a#.,16f#.,16g#.,d#,32a#,32d#6,32a#,32d#6,8a#.,16f#.,16g#.,c#6,32a#,32d#6,32a#,32d#6,8a#.,16f#.,32f.,32d#.,c#,32a#,32d#6,32a#,32d#6,8a#.,16g#.,d#",0
songC byte "TopGun:d=4,o=4,b=31:32p,16c#,16g#,16g#,32f#,32f,32f#,32f,16d#,16d#,32c#,32d#,16f,32d#,32f,16f#,32f,32c#,16f,d#,16c#,16g#,16g#,32f#,32f,32f#,32f,16d#,16d#,32c#,32d#,16f,32d#,32f,16f#,32f,32c#,g#",0
songD byte "A-Team:d=8,o=5,b=125:4d#6,a#,2d#6,16p,g#,4a#,4d#.,p,16g,16a#,d#6,a#,f6,2d#6,16p,c#.6,16c6,16a#,g#.,2a#",0
songE byte "Flinstones:d=4,o=5,b=40:32p,16f6,16a#,16a#6,32g6,16f6,16a#.,16f6,32d#6,32d6,32d6,32d#6,32f6,16a#,16c6,d6,16f6,16a#.,16a#6,32g6,16f6,16a#.,32f6,32f6,32d#6,32d6,32d6,32d#6,32f6,16a#,16c6,a#,16a6,16d.6,16a#6,32a6,32a6,32g6,32f#6,32a6,8g6,16g6,16c.6,32a6,32a6,32g6,32g6,32f6,32e6,32g6,8f6,16f6,16a#.,16a#6,32g6,16f6,16a#.,16f6,32d#6,32d6,32d6,32d#6,32f6,16a#,16c.6,32d6,32d#6,32f6,16a#,16c.6,32d6,32d#6,32f6,16a#6,16c7,8a#.6",0
songF byte "Jeopardy:d=4,o=6,b=125:c,f,c,f5,c,f,2c,c,f,c,f,a.,8g,8f,8e,8d,8c#,c,f,c,f5,c,f,2c,f.,8d,c,a#5,a5,g5,f5,p,d#,g#,d#,g#5,d#,g#,2d#,d#,g#,d#,g#,c.7,8a#,8g#,8g,8f,8e,d#,g#,d#,g#5,d#,g#,2d#,g#.,8f,d#,c#,c,p,a#5,p,g#.5,d#,g#",0
songG byte "Gadget:d=16,o=5,b=50:32d#,32f,32f#,32g#,a#,f#,a,f,g#,f#,32d#,32f,32f#,32g#,a#,d#6,4d6,32d#,32f,32f#,32g#,a#,f#,a,f,g#,f#,8d#",0
songH byte "Smurfs:d=32,o=5,b=200:4c#6,16p,4f#6,p,16c#6,p,8d#6,p,8b,p,4g#,16p,4c#6,p,16a#,p,8f#,p,8a#,p,4g#,4p,g#,p,a#,p,b,p,c6,p,4c#6,16p,4f#6,p,16c#6,p,8d#6,p,8b,p,4g#,16p,4c#6,p,16a#,p,8b,p,8f,p,4f#",0
songI byte "MahnaMahna:d=16,o=6,b=125:c#,c.,b5,8a#.5,8f.,4g#,a#,g.,4d#,8p,c#,c.,b5,8a#.5,8f.,g#.,8a#.,4g,8p,c#,c.,b5,8a#.5,8f.,4g#,f,g.,8d#.,f,g.,8d#.,f,8g,8d#.,f,8g,d#,8c,a#5,8d#.,8d#.,4d#,8d#.",0
songJ byte "LeisureSuit:d=16,o=6,b=56:f.5,f#.5,g.5,g#5,32a#5,f5,g#.5,a#.5,32f5,g#5,32a#5,g#5,8c#.,a#5,32c#,a5,a#.5,c#.,32a5,a#5,32c#,d#,8e,c#.,f.,f.,f.,f.,f,32e,d#,8d,a#.5,e,32f,e,32f,c#,d#.,c#",0
songK byte "MissionImp:d=16,o=6,b=95:32d,32d#,32d,32d#,32d,32d#,32d,32d#,32d,32d,32d#,32e,32f,32f#,32g,g,8p,g,8p,a#,p,c7,p,g,8p,g,8p,f,p,f#,p,g,8p,g,8p,a#,p,c7,p,g,8p,g,8p,f,p,f#,p,a#,g,2d,32p,a#,g,2c#,32p,a#,g,2c,a#5,8c,2p,32p,a#5,g5,2f#,32p,a#5,g5,2f,32p,a#5,g5,2e,d#,8d",0
songL byte "smb:d=4,o=5,b=100:16e6,16e6,32p,8e6,16c6,8e6,8g6,8p,8g,8p,8c6,16p,8g,16p,8e,16p,8a,8b,16a#,8a,16g.,16e6,16g6,8a6,16f6,8g6,8e6,16c6,16d6,8b,16p,8c6,16p,8g,16p,8e,16p,8a,8b,16a#,8a,16g.,16e6,16g6,8a6,16f6,8g6,8e6,16c6,16d6,8b,8p,16g6,16f#6,16f6,16d#6,16p,16e6,16p,16g#,16a,16c6,16p,16a,16c6,16d6,8p,16g6,16f#6,16f6,16d#6,16p,16e6,16p,16c7,16p,16c7,16c7,p,16g6,16f#6,16f6,16d#6,16p,16e6,16p,16g#,16a,16c6,16p,16a,16c6,16d6,8p,16d#6,8p,16d6,8p,16c6",0
songM byte "SMBUndergr:d=16,o=6,b=100:c,c5,a5,a,a#5,a#,2p,8p,c,c5,a5,a,a#5,a#,2p,8p,f5,f,d5,d,d#5,d#,2p,8p,f5,f,d5,d,d#5,d#,2p,32d#,d,32c#,c,p,d#,p,d,p,g#5,p,g5,p,c#,p,32c,f#,32f,32e,a#,32a,g#,32p,d#,b5,32p,a#5,32p,a5,g#5",0
songN byte "SMBWater:d=8,o=6,b=225:4d5,4e5,4f#5,4g5,4a5,4a#5,b5,b5,b5,p,b5,p,2b5,p,g5,2e.,2d#.,2e.,p,g5,a5,b5,c,d,2e.,2d#,4f,2e.,2p,p,g5,2d.,2c#.,2d.,p,g5,a5,b5,c,c#,2d.,2g5,4f,2e.,2p,p,g5,2g.,2g.,2g.,4g,4a,p,g,2f.,2f.,2f.,4f,4g,p,f,2e.,4a5,4b5,4f,e,e,4e.,b5,2c.",0
songO byte "smbdeath:d=4,o=5,b=90:32c6,32c6,32c6,8p,16b,16f6,16p,16f6,16f.6,16e.6,16d6,16c6,16p,16e,16p,16c",0
end byte 0
notes word 0,Tone#NOTE_C4, Tone#NOTE_CS4, Tone#NOTE_D4, Tone#NOTE_DS4, Tone#NOTE_E4, Tone#NOTE_F4, Tone#NOTE_FS4, Tone#NOTE_G4, Tone#NOTE_GS4, Tone#NOTE_A4, Tone#NOTE_AS4, Tone#NOTE_B4,Tone#NOTE_C5, Tone#NOTE_CS5, Tone#NOTE_D5, Tone#NOTE_DS5, Tone#NOTE_E5, Tone#NOTE_F5, Tone#NOTE_FS5, Tone#NOTE_G5, Tone#NOTE_GS5, Tone#NOTE_A5, Tone#NOTE_AS5, Tone#NOTE_B5, Tone#NOTE_C6, Tone#NOTE_CS6, Tone#NOTE_D6, Tone#NOTE_DS6, Tone#NOTE_E6, Tone#NOTE_F6, Tone#NOTE_FS6, Tone#NOTE_G6, Tone#NOTE_GS6, Tone#NOTE_A6, Tone#NOTE_AS6, Tone#NOTE_B6,Tone#NOTE_C7, Tone#NOTE_CS7, Tone#NOTE_D7, Tone#NOTE_DS7, Tone#NOTE_E7, Tone#NOTE_F7, Tone#NOTE_FS7, Tone#NOTE_G7, Tone#NOTE_GS7, Tone#NOTE_A7, Tone#NOTE_AS7, Tone#NOTE_B7
PUB main | p
DIRA[16..17]~~
OUTA[17]:=0
repeat
p := @song0
repeat while p < @end
p := play_rtttl(p,16)
p++
Tone.delay(2000)
PUB play_rtttl(p,pin) | default_dur,default_oct,bpm,num,wholenote,duration,note,scale
default_dur := 4
default_oct := 6
bpm := 63
repeat while byte[p] <> ":"
p++
p++
if(byte[p] == "d")
p++
p++
num := 0
repeat while isdigit(byte[p])
num := (num * 10) + (byte[p] - "0")
p++
if(num > 0)
default_dur := num
p++
if(byte[p] == "o")
p++
p++
num := byte[p] - "0"
p++
if(num >= 3 AND num <=7)
default_oct := num
p++
if(byte[p] == "b")
p++
p++
num := 0
repeat while isdigit(byte[p])
num := (num * 10) + (byte[p] - "0")
p++
bpm := num
p++
wholenote := (60_000 / bpm) * 4
repeat while byte[p]
num := 0
repeat while isdigit(byte[p])
num := (num * 10) + (byte[p] - "0")
p++
if(num)
duration := wholenote / num
else
duration := wholenote / default_dur
note := 0
case byte[p]
"c": note := 1
"d": note := 3
"e": note := 5
"f": note := 6
"g": note := 8
"a": note := 10
"b": note := 12
other: note := 0
p++
if(byte[p] == "#")
note++
p++
if(byte[p] == ".")
duration += duration/2
p++
if(isdigit(byte[p]))
scale := byte[p] - "0"
p++
else
scale := default_oct
scale += OCTAVE_OFFSET
if(byte[p] == ",")
p++
if(note)
Tone.tone(pin,notes[(scale - 4) * 12 + note],0)
Tone.delay(duration)
Tone.notone(pin)
else
Tone.delay(duration)
return p
PUB isdigit(n)
return n => "0" AND n =< "9"
| Propeller Spin | 4 | deets/propeller | libraries/community/p1/All/Arduino-compatible LIGHT/Auxiliary_Files/note_player.spin | [
"MIT"
] |
Call:
lm(formula = y ~ x)
Residuals:
1 2 3 4 5 6
3.3333 -0.6667 -2.6667 -2.6667 -0.6667 3.3333
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -9.3333 2.8441 -3.282 0.030453 *
x 7.0000 0.7303 9.585 0.000662 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 3.055 on 4 degrees of freedom
Multiple R-squared: 0.9583, Adjusted R-squared: 0.9478
F-statistic: 91.88 on 1 and 4 DF, p-value: 0.000662
> par(mfrow=c(2, 2)) # Request 2x2 plot layout
> plot(lm_1) # Diagnostic plot of regression model | R | 3 | websharks/ace-builds | demo/kitchen-sink/docs/r.r | [
"BSD-3-Clause"
] |
--TEST--
Bug #81048 (phpinfo(INFO_VARIABLES) "Array to string conversion")
--FILE--
<?php
$_ENV = [];
$_SERVER = ['foo' => ['bar' => ['baz' => 'qux']]];
array_walk_recursive($_SERVER, function($value, $key) {
// NOP
});
phpinfo(INFO_VARIABLES);
?>
--EXPECT--
phpinfo()
PHP Variables
Variable => Value
$_SERVER['foo'] => Array
(
[bar] => Array
(
[baz] => qux
)
)
| PHP | 3 | NathanFreeman/php-src | ext/standard/tests/bug81048.phpt | [
"PHP-3.01"
] |
#!/usr/bin/env perl
##
## Author......: See docs/credits.txt
## License.....: MIT
##
use strict;
use warnings;
use Crypt::RC4;
use Digest::SHA qw (sha1);
use Encode;
sub module_constraints { [[-1, -1], [-1, -1], [0, 15], [32, 32], [-1, -1]] }
sub module_generate_hash
{
my $word = shift;
my $salt = shift;
my $param = shift;
my $param2 = shift;
my $param3 = shift;
my $salt_bin = pack ("H*", $salt);
my $tmp = sha1 ($salt_bin. encode ("UTF-16LE", $word));
my $version;
if (defined $param2)
{
$version = $param2;
}
else
{
$version = (unpack ("L", $tmp) & 1) ? 3 : 4;
}
my $rc4_key = sha1 ($tmp . "\x00\x00\x00\x00");
if ($version == 3)
{
$rc4_key = substr ($rc4_key, 0, 5) . "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00";
}
my $m = Crypt::RC4->new (substr ($rc4_key, 0, 16));
my $encdata;
if (defined $param)
{
$encdata = $m->RC4 (pack ("H*", $param));
}
else
{
$encdata = "A" x 16; ## can be anything
}
my $data1_buf = $encdata;
my $data2_buf = sha1 (substr ($data1_buf, 0, 16));
$m = Crypt::RC4->new (substr ($rc4_key, 0, 16));
my $encrypted1 = $m->RC4 ($data1_buf);
my $encrypted2 = $m->RC4 ($data2_buf);
my $secblock = "";
if ($version == 3)
{
my $key2 = substr (sha1 ($tmp . "\x01\x00\x00\x00"), 0, 5) . "\x00" x 11;
my $rc4 = Crypt::RC4->new ($key2);
if (defined $param3) # verify/decrypt:
{
if (length ($param3) > 0)
{
my $decrypted = $rc4->RC4 (pack ("H*", $param3));
# count the number of NUL (\x00) bytes:
my $num_nul_bytes = 0;
for (my $i = 0; $i < 32; $i++)
{
$num_nul_bytes++ if (substr ($decrypted, $i, 1) eq "\x00");
}
if ($num_nul_bytes < 10)
{
$secblock = "*"; # incorrect/fake/empty result
}
else
{
$secblock = "*$param3";
}
}
}
else
{
if (random_number (0, 1) == 1) # the second block data is optional
{
my $num_zeros = random_number (10, 32); # at least 10 NUL bytes
$secblock = "\x00" x $num_zeros;
# fill the buffer with some random bytes (up to 32 bytes total):
for (my $i = 0; $i < 32 - $num_zeros; $i++)
{
my $idx = random_number (0, $num_zeros + $i); # insert at random position
my $c = random_bytes (1); # 0x00-0xff
$secblock = substr ($secblock, 0, $idx) . $c . substr ($secblock, $idx);
}
$secblock = $rc4->RC4 ($secblock);
$secblock = "*" . unpack ("H*", $secblock);
}
}
}
my $hash = sprintf ("\$oldoffice\$%d*%s*%s*%s%s", $version, $salt, unpack ("H*", $encrypted1), unpack ("H*", $encrypted2), $secblock);
return $hash;
}
sub module_verify_hash
{
my $line = shift;
# Office Old $3 $4
my ($hash_in, $word) = split ":", $line;
return unless defined $hash_in;
return unless defined $word;
my @data = split /\*/, $hash_in;
my $num_fields = scalar @data;
return unless (($num_fields == 4) || ($num_fields == 5));
my $signature = shift @data;
return unless (($signature eq '$oldoffice$3') || ($signature eq '$oldoffice$4'));
return unless (length $data[0] == 32);
return unless (length $data[1] == 32);
return unless (length $data[2] == 40);
my $salt = shift @data;
my $param = shift @data;
my $param2 = substr ($signature, 11, 1);
my $param3 = "";
if ($num_fields == 5)
{
shift @data; # ignore the "digest"
$param3 = shift @data;
}
return unless defined $salt;
return unless defined $word;
return unless defined $param;
return unless defined $param2;
$word = pack_if_HEX_notation ($word);
my $new_hash = module_generate_hash ($word, $salt, $param, $param2, $param3);
return ($new_hash, $word);
}
1;
| Perl | 5 | Masha/hashcat | tools/test_modules/m09800.pm | [
"MIT"
] |
sub Main()
layoutGroup = createObject("roSGNode", "LayoutGroup")
print "layoutGroup node type:" type(layoutGroup)
print "layoutGroup node subtype:" layoutGroup.subtype()
print "layoutGroup node layoutDirection:" layoutGroup.layoutDirection
print "layoutGroup node horizAlignment:" layoutGroup.horizAlignment
parent = createObject("roSGNode", "ComponentsAsChildren")
layoutGroupAsChild = parent.findNode("layoutGroup")
print "layoutGroup as child layoutDirection:" layoutGroupAsChild.layoutDirection
print "layoutGroup as child horizAlignment:" layoutGroupAsChild.horizAlignment
end sub
| Brightscript | 3 | lkipke/brs | test/e2e/resources/components/LayoutGroup.brs | [
"MIT"
] |
class Time {
def Time duration: block {
"""
@block @Block to be called & timed.
@return @Float@ that is the duration (in seconds) of calling @block.
Calls @block and times the runtime duration of doing so in seconds.
Example:
Time duration: { Thread sleep: 1 } # => >= 1.0
"""
start = Time now
block call
Time now - start
}
}
| Fancy | 4 | bakkdoor/fancy | lib/time.fy | [
"BSD-3-Clause"
] |
INSERT INTO `orm_user`(`id`,`name`,`password`,`salt`,`email`,`phone_number`) VALUES (1, 'user_1', 'ff342e862e7c3285cdc07e56d6b8973b', '412365a109674b2dbb1981ed561a4c70', '[email protected]', '17300000001');
INSERT INTO `orm_user`(`id`,`name`,`password`,`salt`,`email`,`phone_number`) VALUES (2, 'user_2', '6c6bf02c8d5d3d128f34b1700cb1e32c', 'fcbdd0e8a9404a5585ea4e01d0e4d7a0', '[email protected]', '17300000002'); | SQL | 1 | Evan43789596/spring-boot-demo | spring-boot-demo-orm-mybatis/src/main/resources/db/data.sql | [
"MIT"
] |
Not a Solidity file.
| Solidity | 1 | gammy55/linguist | test/fixtures/Generic/sol/nil/ignored1.sol | [
"MIT"
] |
import devWarning from '../_util/devWarning';
export function validProgress(progress: number | undefined) {
if (!progress || progress < 0) {
return 0;
}
if (progress > 100) {
return 100;
}
return progress;
}
export function getSuccessPercent({
success,
successPercent,
}: {
success?: {
progress?: number;
percent?: number;
};
successPercent?: number;
}) {
let percent = successPercent;
/** @deprecated Use `percent` instead */
if (success && 'progress' in success) {
devWarning(
false,
'Progress',
'`success.progress` is deprecated. Please use `success.percent` instead.',
);
percent = success.progress;
}
if (success && 'percent' in success) {
percent = success.percent;
}
return percent;
}
| TypeScript | 4 | vazhalomidze/ant-design | components/progress/utils.ts | [
"MIT"
] |
#ifndef NW_CONTENT_RENDER_HOOKS_H_
#define NW_CONTENT_RENDER_HOOKS_H_
namespace content {
class RenderWidget;
}
namespace nw {
// renderer
// ref in base/message_loop/message_pumpuv_mac.mm
void KickNextTick();
// ref in content/renderer/in_process_renderer_thread.cc
void LoadNodeSymbols();
//
// implemented in nw_extensions_renderer_hooks.cc
//
// ref in content/renderer/render_widget.cc
bool RenderWidgetWasHiddenHook(content::RenderWidget* rw);
} // nw
#endif // NW_CONTENT_RENDER_HOOKS_H_ | C | 3 | frank-dspeed/nw.js | src/renderer/nw_content_renderer_hooks.h | [
"MIT"
] |
{-
When we construct data types, we tend to produce tagged
descriptions, i.e. those that start with a finite sum of
possible constructors. These admit induction principles
in a nicer form than that given by the standard machinery.
Let's derive such induction principles generically.
-}
make TagDesc := Sig (E : EnumU ; Enum E -> Desc) : Set ;
make toDesc := (\ t -> 'sumD (t !) (t -)) : TagDesc -> Desc ;
make toSet := (\ t -> Mu (toDesc t)) : TagDesc -> Set ;
make DescInd := induction DescD : (v : Desc)(P : Desc -> Set)(p : (x : desc DescD Desc) -> box DescD Desc P x -> P (con x)) -> P v ;
{-
The methods for the induction principle are a set of branches
(giving a tuple) rather than a function from an enumeration;
they are given by the following set.
-}
let Bits (T : TagDesc)(P : toSet T -> Set) : Set ;
= branches E (\ e -> ?) ;
give (x : desc (T e) (toSet [E , T])) -> box (T e) (toSet [E , T]) P x -> P (con [e , x]) ;
root ;
{-
We will need a mapBox-like gadget that changes the predicate.
This is a straightforward induction on descriptions.
-}
let boxer (X : Set)(P : X -> Set)(Q : X -> Set)(q : (y : X) -> P y -> Q y)(D : Desc)(x : desc D X)(b : box D X P x) : box D X Q x ;
<= DescInd D ;
define boxer X P Q q 'idD x b := q x b ;
define boxer X P Q q ('sumD E F) [c , x] b := boxer X P Q q (F c) x b ;
define boxer X P Q q ('prodD u E F) [a , b] [c , d] := [(boxer X P Q q E a c) , (boxer X P Q q F b d)] ;
define boxer X P Q q ('sigmaD E F) [s , x] b := boxer X P Q q (F s) x b ;
define boxer X P Q q ('piD S T) x b := \ s -> boxer X P Q q (T s) (x s) (b s) ;
root ;
{-
Now we can define the nicer induction principle.
-}
make Ind : (T : TagDesc)(v : toSet T)(P : toSet T -> Set)(p : Bits T P) -> P v ;
simplify ;
elim induction (toDesc [E , T]) v ;
give \ E T -> con \ e x b P p -> ? ;
give switch E e (\ e -> ((x : desc (T e) (toSet [E , T])) -> box (T e) (toSet [E , T]) P x -> P (con [e , x]))) p x ? ;
give boxer (toSet [E , T]) (\ v -> ((P : toSet [E , T] -> Set)(p : branches E (\ e -> ((x : desc (T e) (toSet [E , T])) -> box (T e) (toSet [E , T]) P x -> P (con [e , x])))) -> P v)) P ?q (T e) x b ;
simplify ;
give xf P p ;
root ;
{-
Let's see an example. We define a tagged description version of
Nat by hand, but the data tactic could easily generate this.
-}
make NatTDesc := [ ['zero 'suc] , [('constD (Sig ())) ('prodD 'n 'idD ('constD (Sig ())))]] : TagDesc ;
make Nat := Mu (toDesc NatTDesc) : Set ;
make NatInd := Ind NatTDesc : (n : Nat)(P : Nat -> Set)(p : Bits NatTDesc P) -> P n ;
{-
Note that when we eliminate by the induction principle, we have
to provide a pair of methods, one for each constructor. This
means problem simplification would not need to switch on
enumerations automatically.
-}
let plus (m : Nat)(n : Nat) : Nat ;
elim NatInd m ;
give [? , ?] ;
simplify ;
define plus 'zero n := n ;
simplify ;
define plus ('suc m) n := 'suc (plus m n) ;
root ;
elab plus ('suc ('suc 'zero)) ('suc ('suc 'zero)) ;
| PigLatin | 5 | mietek/epigram | test/NiceInductionPrinciple.pig | [
"MIT"
] |
(ns todomvc.components.todos-list
(:require [todomvc.components.todo-item :as todo-item]))
(defn component [todos]
[:ul.todo-list
(for [todo todos]
^{:key (:id todo)}
[todo-item/component todo])])
| Clojure | 4 | dtelaroli/todomvc | examples/reagent/src/cljs/todomvc/components/todos_list.cljs | [
"MIT"
] |
#N canvas 770 110 527 451 12;
#X text 33 410 see also:;
#X obj 142 410 makenote;
#X msg 68 234 60 64;
#X msg 117 234 60 0;
#X msg 161 234 62 64;
#X msg 209 234 62 0;
#X text 236 352 Output is in the printout window.;
#X msg 224 284 clear;
#X obj 56 21 bag;
#X msg 217 259 flush;
#X obj 102 410 poly;
#X text 298 407 updated for Pd version 0.33;
#X text 269 284 <= start over;
#X text 261 259 <= output them;
#X text 247 234 <= add or delete elements;
#X text 89 20 - Collection of numbers;
#X text 35 153 The collection may have many copies of the same value.
You can output the collection (and empty it) with a "flush" message
\, or just empty it with "clear." You can use this to mimic a sustain
pedal \, for example., f 63;
#X obj 161 351 print bag;
#X obj 161 321 bag;
#X text 35 61 The bag object adds a value to or removes it from a collection
of numbers depending on the flag. The left inlet takes the value and
the right inlet takes the flag. If the flag is true (nonzero) \, the
value is added to the collection and removed otherwise. The example
here takes a list input \, which gets spread at inlets (as is common
in Pd)., f 63;
#X obj 209 410 stripnote;
#X connect 2 0 18 0;
#X connect 3 0 18 0;
#X connect 4 0 18 0;
#X connect 5 0 18 0;
#X connect 7 0 18 0;
#X connect 9 0 18 0;
#X connect 18 0 17 0;
| Pure Data | 4 | myQwil/pure-data | doc/5.reference/bag-help.pd | [
"TCL"
] |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="<$mt:Link template="styles" encode_html="1"$>"> | MTML | 2 | movabletype/mt-theme-SimpleCorporate | themes/simplecorporate/templates/common_stylesheet.mtml | [
"MIT"
] |
// run-pass
// Test that we are able to successfully compile a setup where a trait
// (`Trait1`) references a struct (`SomeType<u32>`) which in turn
// carries a predicate that references the trait (`u32 : Trait1`,
// substituted).
// pretty-expanded FIXME #23616
#![allow(dead_code)]
trait Trait1 : Trait2<SomeType<u32>> {
fn dumb(&self) { }
}
trait Trait2<A> {
fn dumber(&self, _: A) { }
}
struct SomeType<A>
where A : Trait1
{
a: A
}
impl Trait1 for u32 { }
impl Trait2<SomeType<u32>> for u32 { }
fn main() { }
| Rust | 5 | Eric-Arellano/rust | src/test/ui/traits/astconv-cycle-between-trait-and-type.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
/* Learn distribution for a sprinkler database. */
:- ['../sprinkler.pfl'].
:- use_module(library(clpbn/learning/em)).
%:- set_em_solver(ve).
%:- set_em_solver(hve).
%:- set_em_solver(bdd).
%:- set_em_solver(bp).
%:- set_em_solver(cbp).
data(t,t,t,t).
data(_,t,_,t).
data(t,t,f,f).
data(t,t,f,t).
data(t,_,_,t).
data(t,f,t,t).
data(t,t,f,t).
data(t,_,f,f).
data(t,t,f,f).
data(f,f,t,t).
data(t,t,_,f).
data(t,f,f,t).
data(t,f,t,t).
main :-
findall(X, scan_data(X), L),
em(L, 0.01, 10, CPTs, Lik),
writeln(Lik:CPTs).
scan_data([cloudy(C),sprinkler(S),rain(R),wet_grass(W)]) :-
data(C, S, R, W).
| Prolog | 4 | ryandesign/yap | packages/CLPBN/examples/learning/sprinkler_params.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
@STATIC;1.0;p;8;MapKit.jt;175;@STATIC;1.0;i;12;MKGeometry.ji;11;MKMapView.ji;9;MKTypes.jt;111;
objj_executeFile("MKGeometry.j",YES);
objj_executeFile("MKMapView.j",YES);
objj_executeFile("MKTypes.j",YES);
p;11;MKMapView.jt;11818;@STATIC;1.0;I;15;AppKit/CPView.ji;12;MKGeometry.ji;9;MKTypes.jt;11748;
objj_executeFile("AppKit/CPView.j",NO);
objj_executeFile("MKGeometry.j",YES);
objj_executeFile("MKTypes.j",YES);
var _1=objj_allocateClassPair(CPView,"MKMapView"),_2=_1.isa;
class_addIvars(_1,[new objj_ivar("m_centerCoordinate"),new objj_ivar("m_zoomLevel"),new objj_ivar("m_mapType"),new objj_ivar("m_scrollWheelZoomEnabled"),new objj_ivar("m_previousTrackingLocation"),new objj_ivar("m_DOMMapElement"),new objj_ivar("m_DOMGuardElement"),new objj_ivar("m_map"),new objj_ivar("queue")]);
objj_registerClassPair(_1);
class_addMethods(_1,[new objj_method(sel_getUid("initWithFrame:"),function(_3,_4,_5){
with(_3){
return objj_msgSend(_3,"initWithFrame:centerCoordinate:",_5,nil);
}
}),new objj_method(sel_getUid("initWithFrame:centerCoordinate:"),function(_6,_7,_8,_9){
with(_6){
_6=objj_msgSendSuper({receiver:_6,super_class:objj_getClass("MKMapView").super_class},"initWithFrame:",_8);
if(_6){
objj_msgSend(_6,"setBackgroundColor:",objj_msgSend(CPColor,"colorWithRed:green:blue:alpha:",229/255,227/255,223/255,1));
objj_msgSend(_6,"setCenterCoordinate:",_9||new CLLocationCoordinate2D(52,-1));
objj_msgSend(_6,"setZoomLevel:",6);
objj_msgSend(_6,"setMapType:",MKMapTypeStandard);
objj_msgSend(_6,"setScrollWheelZoomEnabled:",YES);
queue=[];
objj_msgSend(_6,"_buildDOM");
}
return _6;
}
}),new objj_method(sel_getUid("dequeue"),function(_a,_b){
with(_a){
if(!objj_msgSend(queue,"count")){
return;
}
for(var i=0;i<objj_msgSend(queue,"count");i++){
var _c=queue[i];
objj_msgSend(_a,objj_msgSend(_c,"valueForKey:","selector"),objj_msgSend(_c,"valueForKey:","argument"));
objj_msgSend(queue,"removeObjectAtIndex:",i);
}
}
}),new objj_method(sel_getUid("_buildDOM"),function(_d,_e){
with(_d){
_f(function(){
m_DOMMapElement=document.createElement("div");
m_DOMMapElement.id="MKMapView"+objj_msgSend(_d,"UID");
var _10=m_DOMMapElement.style,_11=objj_msgSend(_d,"bounds"),_12=CGRectGetWidth(_11),_13=CGRectGetHeight(_11);
_10.overflow="hidden";
_10.position="absolute";
_10.visibility="visible";
_10.zIndex=0;
_10.left=-_12+"px";
_10.top=-_13+"px";
_10.width=_12+"px";
_10.height=_13+"px";
document.body.appendChild(m_DOMMapElement);
m_map=new google.maps.Map2(m_DOMMapElement,{size:new GSize(_12,_13)});
m_map.setCenter(LatLngFromCLLocationCoordinate2D(m_centerCoordinate));
m_map.setZoom(m_zoomLevel);
m_map.enableContinuousZoom();
m_map.setMapType(objj_msgSend(objj_msgSend(_d,"class"),"_mapTypeObjectForMapType:",m_mapType));
m_map.checkResize();
_10.left="0px";
_10.top="0px";
document.body.removeChild(m_DOMMapElement);
_DOMElement.appendChild(m_DOMMapElement);
m_DOMGuardElement=document.createElement("div");
var _10=m_DOMGuardElement.style;
_10.overflow="hidden";
_10.position="absolute";
_10.visibility="visible";
_10.zIndex=0;
_10.left="0px";
_10.top="0px";
_10.width="100%";
_10.height="100%";
_DOMElement.appendChild(m_DOMGuardElement);
objj_msgSend(_d,"dequeue");
var _14=function(){
var _15=CLLocationCoordinate2DFromLatLng(m_map.getCenter()),_16=objj_msgSend(_d,"centerCoordinate");
if(!CLLocationCoordinate2DEqualToCLLocationCoordinate2D(_16,_15)){
objj_msgSend(_d,"setCenterCoordinate:",_15);
objj_msgSend(objj_msgSend(CPRunLoop,"currentRunLoop"),"limitDateForMode:",CPDefaultRunLoopMode);
}
};
var _17=function(){
var _18=m_map.getZoom(),_19=objj_msgSend(_d,"zoomLevel");
if(_18!==_19){
objj_msgSend(_d,"setZoomLevel:",_18);
objj_msgSend(objj_msgSend(CPRunLoop,"currentRunLoop"),"limitDateForMode:",CPDefaultRunLoopMode);
}
};
google.maps.Event.addListener(m_map,"moveend",_14);
google.maps.Event.addListener(m_map,"resize",_14);
google.maps.Event.addListener(m_map,"zoomend",_17);
});
}
}),new objj_method(sel_getUid("setFrameSize:"),function(_1a,_1b,_1c){
with(_1a){
objj_msgSendSuper({receiver:_1a,super_class:objj_getClass("MKMapView").super_class},"setFrameSize:",_1c);
if(m_DOMMapElement){
var _1d=objj_msgSend(_1a,"bounds"),_1e=m_DOMMapElement.style;
_1e.width=CGRectGetWidth(_1d)+"px";
_1e.height=CGRectGetHeight(_1d)+"px";
m_map.checkResize();
}
}
}),new objj_method(sel_getUid("region"),function(_1f,_20){
with(_1f){
if(m_map){
return MKCoordinateRegionFromLatLngBounds(m_map.getBounds());
}
return nil;
}
}),new objj_method(sel_getUid("setRegion:"),function(_21,_22,_23){
with(_21){
m_region=_23;
if(m_map){
objj_msgSend(_21,"setZoomLevel:",m_map.getBoundsZoomLevel(LatLngBoundsFromMKCoordinateRegion(_23)));
objj_msgSend(_21,"setCenterCoordinate:",_23.center);
}
}
}),new objj_method(sel_getUid("setCenterCoordinate:"),function(_24,_25,_26){
with(_24){
if(m_centerCoordinate&&CLLocationCoordinate2DEqualToCLLocationCoordinate2D(m_centerCoordinate,_26)){
return;
}
m_centerCoordinate=new CLLocationCoordinate2D(_26);
if(m_map){
m_map.setCenter(LatLngFromCLLocationCoordinate2D(_26));
}
}
}),new objj_method(sel_getUid("centerCoordinate"),function(_27,_28){
with(_27){
return new CLLocationCoordinate2D(m_centerCoordinate);
}
}),new objj_method(sel_getUid("setCenterCoordinateLatitude:"),function(_29,_2a,_2b){
with(_29){
objj_msgSend(_29,"setCenterCoordinate:",new CLLocationCoordinate2D(_2b,objj_msgSend(_29,"centerCoordinateLongitude")));
}
}),new objj_method(sel_getUid("centerCoordinateLatitude"),function(_2c,_2d){
with(_2c){
return objj_msgSend(_2c,"centerCoordinate").latitude;
}
}),new objj_method(sel_getUid("setCenterCoordinateLongitude:"),function(_2e,_2f,_30){
with(_2e){
objj_msgSend(_2e,"setCenterCoordinate:",new CLLocationCoordinate2D(objj_msgSend(_2e,"centerCoordinateLatitude"),_30));
}
}),new objj_method(sel_getUid("centerCoordinateLongitude"),function(_31,_32){
with(_31){
return objj_msgSend(_31,"centerCoordinate").longitude;
}
}),new objj_method(sel_getUid("setZoomLevel:"),function(_33,_34,_35){
with(_33){
m_zoomLevel=+_35||0;
if(m_map){
m_map.setZoom(m_zoomLevel);
}
}
}),new objj_method(sel_getUid("zoomLevel"),function(_36,_37){
with(_36){
return m_zoomLevel;
}
}),new objj_method(sel_getUid("setMapType:"),function(_38,_39,_3a){
with(_38){
m_mapType=_3a;
if(m_map){
m_map.setMapType(objj_msgSend(objj_msgSend(_38,"class"),"_mapTypeObjectForMapType:",m_mapType));
}
}
}),new objj_method(sel_getUid("mapType"),function(_3b,_3c){
with(_3b){
return m_mapType;
}
}),new objj_method(sel_getUid("setScrollWheelZoomEnabled:"),function(_3d,_3e,_3f){
with(_3d){
m_scrollWheelZoomEnabled=_3f;
if(m_map){
m_map.setScrollWheelZoomEnabled(m_scrollWheelZoomEnabled);
}
}
}),new objj_method(sel_getUid("scrollWheelZoomEnabled"),function(_40,_41){
with(_40){
return m_scrollWheelZoomEnabled;
}
}),new objj_method(sel_getUid("takeStringAddressFrom:"),function(_42,_43,_44){
with(_42){
try{
var _45=new google.maps.ClientGeocoder();
_45.getLatLng(objj_msgSend(_44,"stringValue"),function(_46){
if(!_46){
return;
}
objj_msgSend(_42,"setCenterCoordinate:",CLLocationCoordinate2DFromLatLng(_46));
objj_msgSend(_42,"setZoomLevel:",7);
objj_msgSend(objj_msgSend(CPRunLoop,"currentRunLoop"),"limitDateForMode:",CPDefaultRunLoopMode);
});
}
catch(err){
var _47=objj_msgSend(CPDictionary,"new");
objj_msgSend(_47,"setValue:forKey:",_44,"argument");
objj_msgSend(_47,"setValue:forKey:",sel_getUid("takeStringAddressFrom:"),"selector");
objj_msgSend(queue,"addObject:",_47);
window.setTimeout(function(){
objj_msgSend(_42,"dequeue");
},500);
}
}
}),new objj_method(sel_getUid("mouseDown:"),function(_48,_49,_4a){
with(_48){
if(objj_msgSend(_4a,"clickCount")===2){
m_map.zoomIn(LatLngFromCLLocationCoordinate2D(objj_msgSend(_48,"convertPoint:toCoordinateFromView:",objj_msgSend(_4a,"locationInWindow"),nil)),YES,YES);
return;
}
objj_msgSend(_48,"trackPan:",_4a);
objj_msgSendSuper({receiver:_48,super_class:objj_getClass("MKMapView").super_class},"mouseDown:",_4a);
}
}),new objj_method(sel_getUid("trackPan:"),function(_4b,_4c,_4d){
with(_4b){
var _4e=objj_msgSend(_4d,"type"),_4f=objj_msgSend(_4b,"convertPoint:fromView:",objj_msgSend(_4d,"locationInWindow"),nil);
if(_4e===CPLeftMouseUp){
}else{
if(_4e===CPLeftMouseDown){
}else{
if(_4e===CPLeftMouseDragged){
var _50=objj_msgSend(_4b,"centerCoordinate"),_51=objj_msgSend(_4b,"convertPoint:toCoordinateFromView:",m_previousTrackingLocation,_4b),_52=objj_msgSend(_4b,"convertPoint:toCoordinateFromView:",_4f,_4b),_53=new CLLocationCoordinate2D(_52.latitude-_51.latitude,_52.longitude-_51.longitude);
_50.latitude-=_53.latitude;
_50.longitude-=_53.longitude;
objj_msgSend(_4b,"setCenterCoordinate:",_50);
}
}
objj_msgSend(CPApp,"setTarget:selector:forNextEventMatchingMask:untilDate:inMode:dequeue:",_4b,sel_getUid("trackPan:"),CPLeftMouseDraggedMask|CPLeftMouseUpMask,nil,nil,YES);
}
m_previousTrackingLocation=_4f;
}
}),new objj_method(sel_getUid("convertCoordinate:toPointToView:"),function(_54,_55,_56,_57){
with(_54){
if(!m_map){
return CGPointMakeZero();
}
var _58=m_map.fromLatLngToContainerPixel(LatLngFromCLLocationCoordinate2D(_56));
return objj_msgSend(_54,"convertPoint:toView:",CGPointMake(_58.x,_58.y),_57);
}
}),new objj_method(sel_getUid("convertPoint:toCoordinateFromView:"),function(_59,_5a,_5b,_5c){
with(_59){
if(!m_map){
return new CLLocationCoordinate2D();
}
var _5d=objj_msgSend(_59,"convertPoint:fromView:",_5b,_5c),_5e=m_map.fromContainerPixelToLatLng(new google.maps.Point(_5d.x,_5d.y));
return CLLocationCoordinate2DFromLatLng(_5e);
}
})]);
class_addMethods(_2,[new objj_method(sel_getUid("keyPathsForValuesAffectingCenterCoordinateLatitude"),function(_5f,_60){
with(_5f){
return objj_msgSend(CPSet,"setWithObjects:","centerCoordinate");
}
}),new objj_method(sel_getUid("keyPathsForValuesAffectingCenterCoordinateLongitude"),function(_61,_62){
with(_61){
return objj_msgSend(CPSet,"setWithObjects:","centerCoordinate");
}
}),new objj_method(sel_getUid("_mapTypeObjectForMapType:"),function(_63,_64,_65){
with(_63){
return [G_NORMAL_MAP,G_HYBRID_MAP,G_SATELLITE_MAP,G_PHYSICAL_MAP][_65];
}
})]);
var _66=[];
var _f=function(_67){
_66.push(_67);
_f=function(){
_66.push(_67);
};
if(window.google&&google.maps&&google.maps.Map2){
_MKMapViewMapsLoaded();
}else{
var _68=document.createElement("script");
_68.src="http://www.google.com/jsapi?callback=_MKMapViewGoogleAjaxLoaderLoaded";
_68.type="text/javascript";
document.getElementsByTagName("head")[0].appendChild(_68);
}
};
_MKMapViewGoogleAjaxLoaderLoaded=function(){
google.load("maps","2",{"callback":_MKMapViewMapsLoaded});
objj_msgSend(objj_msgSend(CPRunLoop,"currentRunLoop"),"limitDateForMode:",CPDefaultRunLoopMode);
};
_MKMapViewMapsLoaded=function(){
_f=function(_69){
_69();
};
var _6a=0,_6b=_66.length;
for(;_6a<_6b;++_6a){
_66[_6a]();
}
objj_msgSend(objj_msgSend(CPRunLoop,"currentRunLoop"),"limitDateForMode:",CPDefaultRunLoopMode);
};
var _6c="MKMapViewCenterCoordinateKey",_6d="MKMapViewZoomLevelKey",_6e="MKMapViewMapTypeKey";
var _1=objj_getClass("MKMapView");
if(!_1){
throw new SyntaxError("*** Could not find definition for class \"MKMapView\"");
}
var _2=_1.isa;
class_addMethods(_1,[new objj_method(sel_getUid("initWithCoder:"),function(_6f,_70,_71){
with(_6f){
_6f=objj_msgSendSuper({receiver:_6f,super_class:objj_getClass("MKMapView").super_class},"initWithCoder:",_71);
if(_6f){
objj_msgSend(_6f,"setCenterCoordinate:",CLLocationCoordinate2DFromString(objj_msgSend(_71,"decodeObjectForKey:",_6c)));
objj_msgSend(_6f,"setZoomLevel:",objj_msgSend(_71,"decodeObjectForKey:",_6d));
objj_msgSend(_6f,"setMapType:",objj_msgSend(_71,"decodeObjectForKey:",_6e));
objj_msgSend(_6f,"_buildDOM");
}
return _6f;
}
}),new objj_method(sel_getUid("encodeWithCoder:"),function(_72,_73,_74){
with(_72){
objj_msgSendSuper({receiver:_72,super_class:objj_getClass("MKMapView").super_class},"encodeWithCoder:",_74);
objj_msgSend(_74,"encodeObject:forKey:",CPStringFromCLLocationCoordinate2D(objj_msgSend(_72,"centerCoordinate")),_6c);
objj_msgSend(_74,"encodeObject:forKey:",objj_msgSend(_72,"zoomLevel"),_6d);
objj_msgSend(_74,"encodeObject:forKey:",objj_msgSend(_72,"mapType"),_6e);
}
})]);
p;12;MKGeometry.jt;2257;@STATIC;1.0;t;2238;
MKCoordinateSpan=function(_1,_2){
this.latitudeDelta=_1;
this.longitudeDelta=_2;
return this;
};
MKCoordinateSpan.prototype.toString=function(){
return "{"+this.latitudeDelta+", "+this.longitudeDelta+"}";
};
MKCoordinateSpanMake=function(_3,_4){
return new MKCoordinateSpan(_3,_4);
};
MKCoordinateSpanFromLatLng=function(_5){
return new MKCoordinateSpan(_5.lat(),_5.lng());
};
CLLocationCoordinate2D=function(_6,_7){
if(arguments.length===1){
var _8=arguments[0];
this.latitude=_8.latitude;
this.longitude=_8.longitude;
}else{
this.latitude=+_6||0;
this.longitude=+_7||0;
}
return this;
};
CPStringFromCLLocationCoordinate2D=function(_9){
return "{"+_9.latitude+", "+_9.longitude+"}";
};
CLLocationCoordinate2DFromString=function(_a){
var _b=_a.indexOf(",");
return new CLLocationCoordinate2D(parseFloat(_a.substr(1,_b-1)),parseFloat(_a.substring(_b+1,_a.length)));
};
CLLocationCoordinate2D.prototype.toString=function(){
return CPStringFromCLLocationCoordinate2D(this);
};
CLLocationCoordinate2DEqualToCLLocationCoordinate2D=function(_c,_d){
return _c===_d||_c.latitude===_d.latitude&&_c.longitude===_d.longitude;
};
CLLocationCoordinate2DMake=function(_e,_f){
return new CLLocationCoordinate2D(_e,_f);
};
CLLocationCoordinate2DFromLatLng=function(_10){
return new CLLocationCoordinate2D(_10.lat(),_10.lng());
};
LatLngFromCLLocationCoordinate2D=function(_11){
return new google.maps.LatLng(_11.latitude,_11.longitude);
};
MKCoordinateRegion=function(_12,_13){
this.center=_12;
this.span=_13;
return this;
};
MKCoordinateRegion.prototype.toString=function(){
return "{"+this.center.latitude+", "+this.center.longitude+", "+this.span.latitudeDelta+", "+this.span.longitudeDelta+"}";
};
MKCoordinateRegionMake=function(_14,_15){
return new MKCoordinateRegion(_14,_15);
};
MKCoordinateRegionFromLatLngBounds=function(_16){
return new MKCoordinateRegion(CLLocationCoordinate2DFromLatLng(_16.getCenter()),MKCoordinateSpanFromLatLng(_16.toSpan()));
};
LatLngBoundsFromMKCoordinateRegion=function(_17){
var _18=_17.center.latitude,_19=_17.center.longitude,_1a=_17.span.latitudeDelta,_1b=_17.span.longitudeDelta,_1c=google.maps.LatLng,_1d=google.maps.LatLngBounds;
return new _1d(new _1c(_18-_1a/2,_19-_1b/2),new _1c(_18+_1a/2,_19+_1b/2));
};
p;9;MKTypes.jt;100;@STATIC;1.0;t;83;
MKMapTypeStandard=0;
MKMapTypeHybrid=1;
MKMapTypeSatellite=2;
MKMapTypeTerrain=3;
| Objective-J | 3 | Me1000/CappInventory | Build/Deployment/Iguana/Frameworks/MapKit/Browser.environment/MapKit.sj | [
"MIT"
] |
package com.baeldung.springbean;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import com.baeldung.springbean.domain.Company;
public class SpringBeanIntegrationTest {
@Test
public void whenUsingIoC_thenDependenciesAreInjected() {
ApplicationContext context = new AnnotationConfigApplicationContext(Config.class);
Company company = context.getBean("company", Company.class);
assertEquals("High Street", company.getAddress().getStreet());
assertEquals(1000, company.getAddress().getNumber());
}
}
| Java | 4 | DBatOWL/tutorials | spring-core/src/test/java/com/baeldung/springbean/SpringBeanIntegrationTest.java | [
"MIT"
] |
.. role:: hidden
:class: hidden-section
algorithms.dfs
=================
| reStructuredText | 2 | vansh-tiwari/algorithms | docs/source/dfs.rst | [
"MIT"
] |
@import 'ui-variables';
body.platform-win32 {
.calendar-toggles {
.colored-checkbox {
border-radius: 0;
.bg-color {
border-radius: 0;
}
}
}
}
.nylas-calendar {
height: 100%;
display: flex;
.calendar-toggles {
display: flex;
background-color: @source-list-bg;
border-right: 1px solid @border-color-divider;
color: @text-color-subtle;
.calendar-toggles-wrap {
padding: 20px;
padding-top: 6px;
}
.colored-checkbox {
position: relative;
top: 1px;
margin-left: 1px;
display: inline-block;
border-radius: 3px;
width: 12px;
height: 12px;
box-shadow: 0 0 0.5px rgba(0,0,0,0.4), inset 0 1px 0 rgba(0,0,0,0.13);
background: white;
.bg-color {
width: 100%;
height: 100%;
border-radius: 3px;
}
}
label {
padding-left: 0.4em;
}
.toggle-wrap, .account-label {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
margin-top: 2px;
}
.account-calendars-wrap {
&:first-child {
margin-top: 0;
}
}
.account-label {
cursor: default;
color: @text-color-very-subtle;
font-weight: @font-weight-semi-bold;
font-size: @font-size-small * 0.9;
margin-top: @padding-large-vertical;
letter-spacing: -0.2px;
}
}
background: @background-off-primary;
.calendar-view {
height: 100%;
flex: 1;
position: relative;
}
.calendar-event {
@interval-height: 21px;
position: absolute;
font-size: 11px;
line-height: 11px;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
min-height: @interval-height;
border-top: 0;
border-bottom: 2px solid @background-primary;
border-left: 0;
display: flex;
cursor: default;
.default-header {
overflow: hidden;
text-overflow: ellipsis;
margin: 4px 5px 5px 6px;
cursor: default;
opacity: 0.7;
flex: 1;
}
&:before {
content: "";
position: absolute;
width: 2px;
height: 100%;
left: 0;
top: 0;
background: rgba(0,0,0,0.1);
}
&.horizontal {
white-space: nowrap;
}
&.selected {
background-color: @accent-primary !important;
}
}
.calendar-mouse-handler {
height: 100%;
display: flex;
flex-direction: column;
}
.week-view {
height: 100%;
@legend-width: 75px;
.calendar-body-wrap {
display: flex;
flex-direction: row;
position: relative;
height: 100%;
.calendar-area-wrap {
&::-webkit-scrollbar {
display: none;
}
flex: 1;
display: flex;
flex-direction: column;
overflow-x: auto;
overflow-y: hidden;
position: relative;
}
.calendar-legend {
width: @legend-width;
box-shadow: 1px 0 0 rgba(177,177,177,0.15);
z-index: 2;
}
}
.week-header {
position: relative;
padding-top: 75px;
border-bottom: 1px solid @border-color-divider;
flex-shrink: 0;
}
.date-labels {
position: absolute;
width: 100%;
top: 0;
left: 0;
height: 100%;
display: flex;
}
.all-day-events {
position: relative;
width: auto;
z-index: 2;
overflow: hidden;
}
.all-day-legend {
width: @legend-width;
position: relative;
}
.legend-text {
font-size: 11px;
position: absolute;
color: #bfbfbf;
right: 10px;
}
.date-label-legend {
width: @legend-width;
position: relative;
border-bottom: 1px solid #dddddd;
box-shadow: 0 1px 2.5px rgba(0, 0, 0, 0.15);
z-index: 3;
.legend-text {
bottom: 7px;
}
}
.day-label-wrap {
padding: 15px;
text-align: center;
flex: 1;
box-shadow: inset 1px 0 0 rgba(177,177,177,0.15);
&.is-today {
.date-label { color: @accent-primary; }
.weekday-label {
color: @accent-primary;
}
}
}
.date-label {
display: block;
font-size: 16px;
font-weight: 300;
color: #808080;
}
.weekday-label {
display: block;
font-weight: 500;
text-transform: uppercase;
margin-top: 3px;
font-size: 12px;
color: #ccd4d8;
}
.event-grid-wrap {
flex: 1;
overflow: auto;
background: @background-primary;
box-shadow: inset 0 1px 2.5px rgba(0,0,0,0.15);
height: 100%;
}
.event-grid {
display: flex;
position: relative;
}
.event-grid-legend-wrap {
overflow: hidden;
box-shadow: 1px 0 0 rgba(177,177,177,0.15);
}
.event-grid-legend {
position: relative;
background: @background-primary;
z-index: 2;
}
.event-grid-bg-wrap {
.event-grid-bg {
position: absolute;
top: 0;
left: 0;
}
.cursor {
background: rgba(0,0,0,0.04);
position: absolute;
}
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 0;
}
.event-column {
flex: 1;
position: relative;
height: 100%;
z-index: 1;
overflow: hidden;
box-shadow: 1px 0 0 rgba(177,177,177,0.15);
&.weekend {
background: rgba(0,0,0,0.02);
}
}
}
.month-view {
}
.current-time-indicator {
position: absolute;
width: 100%;
height: 1px;
opacity: 0;
border-top: 1px solid rgb(255,100,100);
z-index: 2;
transition: opacity ease-in-out 300ms;
&.visible {
opacity: 1;
}
div {
position: absolute;
width:11px;
height:11px;
border-radius: 6px;
background-color: rgb(255,100,100);
transform: translate3d(-75%, -50%, 0);
border: 1px solid @background-primary;
}
}
.top-banner {
color: rgba(33,99,146,0.6);
background: #e0eff6;
font-size: 12px;
line-height: 25px;
text-align: center;
box-shadow: inset 0 -1px 1px rgba(0,0,0,0.07);
}
.header-controls {
padding: 10px;
display: flex;
color: #808080;
border-bottom: 1px solid @border-color-divider;
box-shadow: inset 0 -1px 1px rgba(191,191,191,0.12);
flex-shrink: 0;
.title {
display: inline-block;
width: 275px;
}
.title, .btn-icon {
font-size: 15px;
line-height: 25px;
}
.btn-icon {
margin: 0;
height: auto;
img {
vertical-align: baseline;
}
}
}
.footer-controls {
padding: 10px;
min-height: 45px;
display: flex;
color: #808080;
background: @background-primary;
border-top: @border-color-divider;
box-shadow: 0 -3px 16px rgba(0,0,0,0.11);
z-index: 2;
}
.center-controls {
text-align: center;
flex: 1;
order: 0;
}
}
.mini-month-view {
width: 100%;
height: 100%;
min-width: 200px;
min-height: 200px;
text-align: center;
display: flex;
flex-direction: column;
background: @background-primary;
border: 1px solid @border-color-divider;
border-radius: @border-radius-base;
.header {
display: flex;
background: @background-secondary;
padding: 4px 0 3px 0;
.month-title {
padding-top: 3px;
color: @text-color;
flex: 1;
}
border-bottom: 1px solid @border-color-divider;
.btn.btn-icon {
line-height: 27px;
height: 27px;
margin-top: -1px;
margin-right: 0;
&:active {
background: transparent;
}
}
}
.legend {
display: flex;
.weekday {
flex: 1;
}
padding: 3px 0;
border-bottom: 1px solid @border-color-divider;
}
.day-grid {
display: flex;
flex-direction: column;
flex: 1;
.week {
flex: 1;
display: flex;
min-height: 28px;
}
.day {
display: flex;
flex-direction: column;
justify-content: center;
flex: 1;
min-height: 28px;
color: @text-color-very-subtle;
&.cur-month {
color: @text-color;
}
&:hover {
background: rgba(0,0,0,0.05);
cursor: pointer;
}
&.today {
border: 1px solid @accent-primary;
}
&.cur-day {
background: @accent-primary;
color: @text-color-inverse;
&:hover {
background: darken(@accent-primary, 5%);
}
}
}
}
}
| Less | 4 | cnheider/nylas-mail | packages/client-app/static/components/nylas-calendar.less | [
"MIT"
] |
exec("swigtest.start", -1);
try
a = new_A_UF();
catch
swigtesterror();
end
try
delete_A_UF(a);
catch
swigtesterror();
end
exec("swigtest.quit", -1);
| Scilab | 3 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/abstract_typedef2_runme.sci | [
"BSD-3-Clause"
] |
#summary How to get started with development on Music Synthesizer for Android.
#labels Featured
= Getting started with Music Synthesizer Development =
The following steps will get you started working with the Music Synthesizer for Android code in a Unix-like environment. The following environment variables are used.
* `SYNTH_PATH` - Location of the Music Synthesizer source code.
* `PROTO_PATH` - Location where Protocol Buffers are installed.
== Installing Protocol Buffers ==
Download the Google [http://code.google.com/p/protobuf/ Protocol Buffer] package from [http://code.google.com/p/protobuf/downloads/list here].
To build the `protoc` compiler, run the following commands. If you are using Windows, you can skip this step by downloading the prebuilt Windows `protoc` compiler and installing it in `$SYNTH_PATH/music-synthesizer-for-android/core/bin/`.
{{{
tar -xzvf protobuf-2.4.0a.tar.gz
cd protobuf-2.4.0a
./configure --prefix=$PROTO_PATH
make
make check
make install
mkdir $SYNTH_PATH/music-synthesizer-for-android/core/bin/
cp $PROTO_PATH/bin/protoc $SYNTH_PATH/music-synthesizer-for-android/core/bin/
}}}
Build the protocol buffer runtime libraries jar.
{{{
cd java/
mvn test
mvn install
mvn package
mkdir $SYNTH_PATH/music-synthesizer-for-android/core/lib/
cp target/protobuf-java-2.4.*.jar $SYNTH_PATH/music-synthesizer-for-android/core/lib/libprotobuf.jar
}}}
==Installing Eclipse==
Other development environments are unsupported. However, the core, test, and j2se packages can be built using Ant. So the desktop tools in the j2se package can still be built without Eclipse.
To download and install Eclipse, visit [http://www.eclipse.org/downloads/ eclipse.org].
==Installing the Android SDK==
Download and Install the Android SDK using the instructions at [http://developer.android.com/sdk/index.html android.com].
==Installing Music Synthesizer for Android==
Using Git, download the Music Synthesizer for Android source code. Visit [http://code.google.com/p/music-synthesizer-for-android/source/checkout here] for more details.
{{{
git clone https://code.google.com/p/music-synthesizer-for-android/
}}}
==Testing Music Synthesizer for Android core components==
To make sure everything so far is installed correctly, run the tests and make sure they all build and pass.
{{{
cd $SYNTH_PATH/music-synthesizer-for-android/
ant test
}}}
==Setting up NDK==
The new synth engine is written in C++ for higher performance, and uses OpenSL ES to output sound. Install the [http://developer.android.com/sdk/ndk/index.html Android NDK]. Then, you can either manually run the ndk compile, or set up your Eclipse project to run it automatically.
To run it manually: make sure that ndk-build is on your path, go into the android subdirectory and run:
{{{
ndk-build
}}}
To set up automatic building, edit android/.externalToolBuilders/NDK Builder.launch to make sure that ATTR_LOCATION points to a valid location for the ndk-build binary. The default is ${HOME}/install/android-ndk-r7b/ndk-build , so if you unpacked the NDK into the install subdirectory of your home directory, and the versions match, it may just work.
The result of the ndk-build step is to create a libsynth.so file containing the shared library. For example, android/libs/armeabi-v7a/libsynth.so.
The shared library build depends on the target architecture (unlike Java code). The default is armeabi-v7a, and can be changed by editing APP_ABI in the android/jni/Application.mk file. Note that code built for armeabi will run on ARM v7 devices, but more slowly. It might make sense to set this to "all" so that it will run on more devices, but at the expense of slowing the compile cycle and potentially bloating the APK file size.
==Setting up Music Synthesizer in Eclipse==
Make a new Eclipse workspace. Import the project into Eclipse. This should be File > Import... > Android > Existing Android Code Into Workspace. You will probably get errors on import (duplicate entry 'src', empty ${project_loc}, and maybe others). You can ignore these (although it would be great to clean them up). | MediaWiki | 3 | google-admin/music-synthesizer-for-android | wiki/GettingStarted.wiki | [
"Apache-2.0"
] |
/// <reference path='fourslash.ts' />
// @noUnusedLocals: true
// @noUnusedParameters: true
////class C {
//// set x(value: number) {}
////}
// No codefix to remove parameter, since setter must have a parameter
verify.codeFixAvailable([{ description: "Prefix 'value' with an underscore" }]);
verify.codeFix({
description: "Prefix 'value' with an underscore",
newFileContent:
`class C {
set x(_value: number) {}
}`,
});
| TypeScript | 4 | nilamjadhav/TypeScript | tests/cases/fourslash/codeFixUnusedIdentifier_set.ts | [
"Apache-2.0"
] |
# RUN: llc -mtriple thumbv7m-none-eabi -run-pass prologepilog %s -o - | FileCheck %s
--- |
define void @throw() noreturn { unreachable }
define void @ret() nounwind { ret void }
define void @tables() nounwind noreturn uwtable { ret void }
define void @noret() noreturn nounwind {
start:
%p = alloca i32
store i32 42, i32* %p
unreachable
}
...
---
# This function may return by exception. Check that $r4 is saved and restored.
# CHECK-LABEL: name: throw
# CHECK: killed $r4
# CHECK: def $r4
name: throw
body: |
bb.0:
$r4 = IMPLICIT_DEF
tBX_RET 14, $noreg
---
---
# This function may return. Check that $r4 is saved and restored.
# CHECK-LABEL: name: ret
# CHECK: killed $r4
# CHECK: def $r4
name: ret
body: |
bb.0:
$r4 = IMPLICIT_DEF
tBX_RET 14, $noreg
---
---
# This function needs correct unwind tables anyway. Check that $r4 is saved and
# restored.
# CHECK-LABEL: name: tables
# CHECK: killed $r4
# CHECK: def $r4
name: tables
body: |
bb.0:
$r4 = IMPLICIT_DEF
tBX_RET 14, $noreg
---
---
# This function does not return. We need not save any CSR, but
# other stack adjustments in the prologue are still necessary.
# CHECK-LABEL: name: noret
# CHECK-NOT: killed $r4
# CHECK-NOT: def $r4
# CHECK: $sp = frame-setup
name: noret
stack:
- { id: 0, name: p, offset: 0, size: 4, alignment: 4, local-offset: -4 }
body: |
bb.0:
$r4 = IMPLICIT_DEF
tBX_RET 14, $noreg
---
| Mirah | 4 | medismailben/llvm-project | llvm/test/CodeGen/ARM/noreturn-csr-skip.mir | [
"Apache-2.0"
] |
--TEST--
rewriter handles form and fieldset tags correctly
--EXTENSIONS--
session
--SKIPIF--
<?php include('skipif.inc'); ?>
--INI--
session.use_cookies=0
session.use_only_cookies=0
session.use_strict_mode=0
session.cache_limiter=
session.use_trans_sid=1
url_rewriter.tags="a=href,area=href,frame=src,input=src,form=,fieldset="
session.name=PHPSESSID
session.serialize_handler=php
session.save_handler=files
--FILE--
<?php
error_reporting(E_ALL);
ini_set('session.trans_sid_hosts', 'php.net');
$_SERVER['HTTP_HOST'] = 'php.net';
session_id("test021");
session_start();
?>
<form action="//bad.net/do.php">
<fieldset>
<form action="//php.net/do.php">
<fieldset>
<?php
ob_flush();
ini_set("url_rewriter.tags", "a=href,area=href,frame=src,input=src,form=");
?>
<form action="../do.php">
<fieldset>
<?php
ob_flush();
ini_set("url_rewriter.tags", "a=href,area=href,frame=src,input=src,form=fakeentry");
?>
<form action="/do.php">
<fieldset>
<?php
ob_flush();
ini_set("url_rewriter.tags", "a=href,fieldset=,area=href,frame=src,input=src");
?>
<form action="/foo/do.php">
<fieldset>
<?php
session_destroy();
?>
--EXPECT--
<form action="//bad.net/do.php">
<fieldset>
<form action="//php.net/do.php"><input type="hidden" name="PHPSESSID" value="test021" />
<fieldset>
<form action="../do.php"><input type="hidden" name="PHPSESSID" value="test021" />
<fieldset>
<form action="/do.php"><input type="hidden" name="PHPSESSID" value="test021" />
<fieldset>
<form action="/foo/do.php"><input type="hidden" name="PHPSESSID" value="test021" />
<fieldset>
| PHP | 3 | NathanFreeman/php-src | ext/session/tests/021.phpt | [
"PHP-3.01"
] |
HEADERS += \
$$PWD/controller.h
SOURCES += \
$$PWD/controller.cpp
include ($$PWD/receiver/receiver.pri)
include ($$PWD/inputconvert/inputconvert.pri)
INCLUDEPATH += \
$$PWD/receiver \
$$PWD/inputconvert
| QMake | 1 | jiadxin/QtScrcpy | QtScrcpy/device/controller/controller.pri | [
"Apache-2.0"
] |
:- module(pfl_ground_factors,
[generate_network/5,
f/3
]).
:- use_module(library(bhash),
[b_hash_new/1,
b_hash_lookup/3,
b_hash_insert/4,
b_hash_to_list/2
]).
:- use_module(library(lists),
[member/2]).
:- use_module(library(maplist)).
:- use_module(library(atts)).
:- use_module(library(pfl),
[factor/6,
defined_in_factor/2,
skolem/2
]).
:- use_module(library(clpbn/aggregates),
[avg_factors/5]).
:- use_module(library(clpbn/dists),
[dist/4]).
:- dynamic currently_defined/1, queue/1, f/4.
%
% as you add query vars the network grows
% until you reach the last variable.
%
generate_network(QueryVars, QueryKeys, Keys, Factors, EList) :-
init_global_search,
attributes:all_attvars(AVars),
b_hash_new(Evidence0),
foldl(include_evidence,AVars, Evidence0, Evidence1),
static_evidence(Evidence1, Evidence),
b_hash_to_list(Evidence, EList0),
maplist(pair_to_evidence,EList0, EList),
maplist(queue_evidence, EList),
foldl(run_through_query(Evidence), QueryVars, [], QueryKeys),
propagate,
collect(Keys, Factors).
%
% clean global stateq
%
init_global_search :-
retractall(queue(_)),
retractall(currently_defined(_)),
retractall(f(_,_,_)).
pair_to_evidence(K-E, K=E).
include_evidence(V, Evidence0, Evidence) :-
clpbn:get_atts(V,[key(K),evidence(E)]), !,
(
b_hash_lookup(K, E1, Evidence0)
->
(E \= E1 -> throw(clpbn:incompatible_evidence(K,E,E1)) ; Evidence = Evidence0)
;
b_hash_insert(Evidence0, K, E, Evidence)
).
include_evidence(_, Evidence, Evidence).
static_evidence(Evidence0, Evidence) :-
findall(Sk=Var, pfl:evidence(Sk,Var), Evs),
foldl(include_static_evidence, Evs, Evidence0, Evidence).
include_static_evidence(K=E, Evidence0, Evidence) :-
(
b_hash_lookup(K, E1, Evidence0)
->
(E \= E1 -> throw(incompatible_evidence(K,E,E1)) ; Evidence = Evidence0)
;
b_hash_insert(Evidence0, K, E, Evidence)
).
queue_evidence(K=_) :-
queue_in(K).
run_through_query(Evidence, V, QueryKeys, QueryKeys) :-
clpbn:get_atts(V,[key(K)]),
b_hash_lookup(K, _, Evidence), !.
run_through_query(_Evidence, V, QueryKeys, [K|QueryKeys]) :-
clpbn:get_atts(V,[key(K)]),
queue_in(K).
collect(Keys, Factors) :-
findall(K, currently_defined(K), Keys),
findall(f(FType,FId,FKeys), f(FType,FId,FKeys), Factors).
%
% gets key K, and collects factors that define it
queue_in(K) :-
queue(K), !.
queue_in(K) :-
% writeln(q+K),
assert(queue(K)),
fail.
queue_in(_).
propagate :-
retract(queue(K)),!,
do_propagate(K).
propagate.
do_propagate(K) :-
%writeln(-K),
\+ currently_defined(K),
( ground(K) -> assert(currently_defined(K)) ; true),
(
defined_in_factor(K, ParFactor),
add_factor(ParFactor, Ks)
*->
true
;
throw(error(no_defining_factor(K)))
),
member(K1, Ks),
\+ currently_defined(K1),
queue_in(K1),
fail.
do_propagate(_K) :-
propagate.
add_factor(factor(Type, Id, Ks, _, _Phi, Constraints), NKs) :-
% writeln(+Ks),
(
Ks = [K,Els], var(Els)
->
% aggregate factor
once(run(Constraints)),
avg_factors(K, Els, 0.0, NewKeys, NewId),
NKs = [K|NewKeys]
;
run(Constraints),
NKs = Ks,
Id = NewId
),
(
f(Type, NewId, NKs)
->
true
;
assert(f(Type, NewId, NKs))
).
run([Goal|Goals]) :-
call(user:Goal),
run(Goals).
run([]).
| Prolog | 4 | ryandesign/yap | packages/CLPBN/clpbn/ground_factors.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
# This file is distributed under the same license as the Django package.
#
# Translators:
# Machaku <[email protected]>, 2013-2014
msgid ""
msgstr ""
"Project-Id-Version: django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-19 16:49+0100\n"
"PO-Revision-Date: 2017-09-23 18:54+0000\n"
"Last-Translator: Jannis Leidel <[email protected]>\n"
"Language-Team: Swahili (http://www.transifex.com/django/django/language/"
"sw/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: sw\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "GIS"
msgstr "GIS"
msgid "The base GIS field."
msgstr ""
msgid ""
"The base Geometry field -- maps to the OpenGIS Specification Geometry type."
msgstr ""
msgid "Point"
msgstr "Nukta"
msgid "Line string"
msgstr "Mstari"
msgid "Polygon"
msgstr "Poligoni"
msgid "Multi-point"
msgstr "Nukta zaidi ya moja"
msgid "Multi-line string"
msgstr "Mstari zaidi ya mmoja. "
msgid "Multi polygon"
msgstr "Poligoni zaidi ya moja"
msgid "Geometry collection"
msgstr "Mkusanyiko wa jiometri"
msgid "Extent Aggregate Field"
msgstr ""
msgid "Raster Field"
msgstr ""
msgid "No geometry value provided."
msgstr "Hakuna thamani ya jiometri iliyotolewa"
msgid "Invalid geometry value."
msgstr "Thamani batili ya jiometri."
msgid "Invalid geometry type."
msgstr "Aina batili ya jiometri."
msgid ""
"An error occurred when transforming the geometry to the SRID of the geometry "
"form field."
msgstr ""
"Hitilafu imetokea wakati wa kubadilisha jiometri kuwa SRID ya sehemu ya fomu "
"ya jiometri."
msgid "Delete all Features"
msgstr ""
msgid "WKT debugging window:"
msgstr ""
msgid "Debugging window (serialized value)"
msgstr ""
msgid "No feeds are registered."
msgstr "Hakuna mlisho uliosajiliwa."
#, python-format
msgid "Slug %r isn't registered."
msgstr "Slagi %r haijasajiliwa"
| Gettext Catalog | 2 | jpmallarino/django | django/contrib/gis/locale/sw/LC_MESSAGES/django.po | [
"BSD-3-Clause",
"0BSD"
] |
module tour/addressBook2b ----- Page 19
abstract sig Target { }
sig Addr extends Target { }
abstract sig Name extends Target { }
sig Alias, Group extends Name { }
sig Book {
addr: Name->Target
} {
no n: Name | n in n.^addr
}
pred show [b:Book] { some b.addr }
// This command generates an instance similar to Fig 2.10
run show for 3 but 1 Book
| Alloy | 3 | Kaixi26/org.alloytools.alloy | org.alloytools.alloy.extra/extra/models/book/chapter2/addressBook2b.als | [
"Apache-2.0"
] |
import * as React from 'react';
import { styled } from '@mui/material/styles';
import Box from '@mui/material/Box';
import ButtonBase from '@mui/material/ButtonBase';
import Container from '@mui/material/Container';
import Typography from '../components/Typography';
const ImageBackdrop = styled('div')(({ theme }) => ({
position: 'absolute',
left: 0,
right: 0,
top: 0,
bottom: 0,
background: '#000',
opacity: 0.5,
transition: theme.transitions.create('opacity'),
}));
const ImageIconButton = styled(ButtonBase)(({ theme }) => ({
position: 'relative',
display: 'block',
padding: 0,
borderRadius: 0,
height: '40vh',
[theme.breakpoints.down('md')]: {
width: '100% !important',
height: 100,
},
'&:hover': {
zIndex: 1,
},
'&:hover .imageBackdrop': {
opacity: 0.15,
},
'&:hover .imageMarked': {
opacity: 0,
},
'&:hover .imageTitle': {
border: '4px solid currentColor',
},
'& .imageTitle': {
position: 'relative',
padding: `${theme.spacing(2)} ${theme.spacing(4)} 14px`,
},
'& .imageMarked': {
height: 3,
width: 18,
background: theme.palette.common.white,
position: 'absolute',
bottom: -2,
left: 'calc(50% - 9px)',
transition: theme.transitions.create('opacity'),
},
}));
const images = [
{
url: 'https://images.unsplash.com/photo-1534081333815-ae5019106622?auto=format&fit=crop&w=400&q=80',
title: 'Snorkeling',
width: '40%',
},
{
url: 'https://images.unsplash.com/photo-1531299204812-e6d44d9a185c?auto=format&fit=crop&w=400&q=80',
title: 'Massage',
width: '20%',
},
{
url: 'https://images.unsplash.com/photo-1476480862126-209bfaa8edc8?auto=format&fit=crop&w=400&q=80',
title: 'Hiking',
width: '40%',
},
{
url: 'https://images.unsplash.com/photo-1453747063559-36695c8771bd?auto=format&fit=crop&w=400&q=80',
title: 'Tour',
width: '38%',
},
{
url: 'https://images.unsplash.com/photo-1523309996740-d5315f9cc28b?auto=format&fit=crop&w=400&q=80',
title: 'Gastronomy',
width: '38%',
},
{
url: 'https://images.unsplash.com/photo-1534452203293-494d7ddbf7e0?auto=format&fit=crop&w=400&q=80',
title: 'Shopping',
width: '24%',
},
{
url: 'https://images.unsplash.com/photo-1506941433945-99a2aa4bd50a?auto=format&fit=crop&w=400&q=80',
title: 'Walking',
width: '40%',
},
{
url: 'https://images.unsplash.com/photo-1533727937480-da3a97967e95?auto=format&fit=crop&w=400&q=80',
title: 'Fitness',
width: '20%',
},
{
url: 'https://images.unsplash.com/photo-1518136247453-74e7b5265980?auto=format&fit=crop&w=400&q=80',
title: 'Reading',
width: '40%',
},
];
export default function ProductCategories() {
return (
<Container component="section" sx={{ mt: 8, mb: 4 }}>
<Typography variant="h4" marked="center" align="center" component="h2">
For all tastes and all desires
</Typography>
<Box sx={{ mt: 8, display: 'flex', flexWrap: 'wrap' }}>
{images.map((image) => (
<ImageIconButton
key={image.title}
style={{
width: image.width,
}}
>
<Box
sx={{
position: 'absolute',
left: 0,
right: 0,
top: 0,
bottom: 0,
backgroundSize: 'cover',
backgroundPosition: 'center 40%',
backgroundImage: `url(${image.url})`,
}}
/>
<ImageBackdrop className="imageBackdrop" />
<Box
sx={{
position: 'absolute',
left: 0,
right: 0,
top: 0,
bottom: 0,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
color: 'common.white',
}}
>
<Typography
component="h3"
variant="h6"
color="inherit"
className="imageTitle"
>
{image.title}
<div className="imageMarked" />
</Typography>
</Box>
</ImageIconButton>
))}
</Box>
</Container>
);
}
| TypeScript | 4 | dany-freeman/material-ui | docs/src/pages/premium-themes/onepirate/modules/views/ProductCategories.tsx | [
"MIT"
] |
/*
* Copyright (c) 2018-2020, Andreas Kling <[email protected]>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <Kernel/API/POSIX/signal.h>
#include <Kernel/API/POSIX/sys/wait.h>
__BEGIN_DECLS
pid_t waitpid(pid_t, int* wstatus, int options);
pid_t wait(int* wstatus);
int waitid(idtype_t idtype, id_t id, siginfo_t* infop, int options);
__END_DECLS
| C | 3 | r00ster91/serenity | Userland/Libraries/LibC/sys/wait.h | [
"BSD-2-Clause"
] |
"""Test for the Insteon integration."""
| Python | 0 | tbarbette/core | tests/components/insteon/__init__.py | [
"Apache-2.0"
] |
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or 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.
==============================================================================*/
#include "tensorflow/compiler/xla/error_spec.h"
#include "tensorflow/compiler/xla/service/gpu/tests/gpu_codegen_test.h"
#include "tensorflow/core/platform/test.h"
namespace xla {
namespace gpu {
namespace {
class GemmBroadcastFoldingRewriteTest : public GpuCodegenTest {};
TEST_F(GemmBroadcastFoldingRewriteTest, BroadcastedStridedRewriteRhs) {
const char* hlo_text = R"(
HloModule BroadcastedInput
ENTRY AddDotsFunc {
x = f32[3,2,2]{2,1,0} parameter(0)
y = f32[2,2]{1,0} parameter(1)
y_broadcast = f32[3,2,2]{2,1,0} broadcast(y), dimensions={1,2}
ROOT dot_a = f32[3,2,2]{2,1,0} dot(x, y_broadcast), lhs_batch_dims={0}, rhs_batch_dims={0}, lhs_contracting_dims={2}, rhs_contracting_dims={1}
}
)";
EXPECT_TRUE(RunAndCompare(hlo_text, ErrorSpec{1e-5, 1e-5}));
MatchOptimizedHlo(hlo_text,
R"(
; CHECK-LABEL: ENTRY %AddDotsFunc (x: f32[3,2,2], y: f32[2,2]) -> f32[3,2,2] {
; CHECK-NEXT: %x = f32[3,2,2]{2,1,0} parameter(0)
; CHECK-NEXT: %y = f32[2,2]{1,0} parameter(1)
; CHECK-NEXT: ROOT %cublas-batch-gemm.1 = f32[3,2,2]{2,1,0} custom-call(%x, %y), custom_call_target="__cublas$gemm", backend_config="{\"alpha_real\":1,\"alpha_imag\":0,\"beta\":0,\"dot_dimension_numbers\":{\"lhs_contracting_dimensions\":[\"2\"],\"rhs_contracting_dimensions\":[\"0\"],\"lhs_batch_dimensions\":[\"0\"],\"rhs_batch_dimensions\":[]},\"batch_size\":\"3\",\"lhs_stride\":\"4\",\"rhs_stride\":\"0\",\"selected_algorithm\":\"{{-?[0-9]+}}\"}"
)");
}
TEST_F(GemmBroadcastFoldingRewriteTest, BroadcastedStridedRewriteLhs) {
const char* hlo_text = R"(
HloModule BroadcastedInput
ENTRY AddDotsFunc {
x = f32[2,2]{1,0} parameter(0)
y = f32[3,2,2]{2,1,0} parameter(1)
x_broadcast = f32[3,2,2]{2,1,0} broadcast(x), dimensions={1,2}
ROOT dot_a = f32[3,2,2]{2,1,0} dot(x_broadcast, y), lhs_batch_dims={0}, rhs_batch_dims={0}, lhs_contracting_dims={2}, rhs_contracting_dims={1}
}
)";
EXPECT_TRUE(RunAndCompare(hlo_text, ErrorSpec{1e-5, 1e-5}));
MatchOptimizedHlo(hlo_text,
R"(
; CHECK-LABEL: ENTRY %AddDotsFunc (x: f32[2,2], y: f32[3,2,2]) -> f32[3,2,2] {
; CHECK-NEXT: %x = f32[2,2]{1,0} parameter(0)
; CHECK-NEXT: %y = f32[3,2,2]{2,1,0} parameter(1)
; CHECK-NEXT: ROOT %cublas-batch-gemm.1 = f32[3,2,2]{2,1,0} custom-call(%x, %y), custom_call_target="__cublas$gemm", backend_config="{\"alpha_real\":1,\"alpha_imag\":0,\"beta\":0,\"dot_dimension_numbers\":{\"lhs_contracting_dimensions\":[\"1\"],\"rhs_contracting_dimensions\":[\"1\"],\"lhs_batch_dimensions\":[],\"rhs_batch_dimensions\":[\"0\"]},\"batch_size\":\"3\",\"lhs_stride\":\"0\",\"rhs_stride\":\"4\",\"selected_algorithm\":\"{{-?[0-9]+}}\"}"
)");
}
} // namespace
} // namespace gpu
} // namespace xla
| C++ | 5 | EricRemmerswaal/tensorflow | tensorflow/compiler/xla/service/gpu/tests/gemm_broadcast_folding_rewrite_test.cc | [
"Apache-2.0"
] |
.q-touch
user-select: none
user-drag: none
-khtml-user-drag: none
-webkit-user-drag: none
.q-touch-x
touch-action: pan-x
.q-touch-y
touch-action: pan-y
| Sass | 3 | ygyg70/quasar | ui/src/css/core/touch.sass | [
"MIT"
] |
#! /usr/bin/perl -w
#-------------------------------------------------------------------------
#
# Gen_dummy_probes.pl
# Perl script that generates probes.h file when dtrace is not available
#
# Portions Copyright (c) 2008-2021, PostgreSQL Global Development Group
#
#
# IDENTIFICATION
# src/backend/utils/Gen_dummy_probes.pl
#
# This program was generated by running perl's s2p over Gen_dummy_probes.sed
#
#-------------------------------------------------------------------------
# turn off perlcritic for autogenerated code
## no critic
| Prolog | 3 | b41sh/postgres | src/backend/utils/Gen_dummy_probes.pl.prolog | [
"PostgreSQL"
] |
--TEST--
Bug #68917 (parse_url fails on some partial urls)
--FILE--
<?php
print_r(parse_url('//example.org:81/hi?a=b#c=d'));
print_r(parse_url('//example.org/hi?a=b#c=d'));
?>
--EXPECT--
Array
(
[host] => example.org
[port] => 81
[path] => /hi
[query] => a=b
[fragment] => c=d
)
Array
(
[host] => example.org
[path] => /hi
[query] => a=b
[fragment] => c=d
)
| PHP | 3 | thiagooak/php-src | ext/standard/tests/url/bug68917.phpt | [
"PHP-3.01"
] |
function foo():number;
function foo():string { return "" }
| TypeScript | 3 | nilamjadhav/TypeScript | tests/cases/compiler/functionOverloads11.ts | [
"Apache-2.0"
] |
class BackgroundAnimation extends BaseMapObject
{
constructor(mapObj, map, rect, stream)
{
base.constructor(mapObj, map, "BackgroundAnimation");
local animId = IStream.ReadU32(stream);
local animName = "";
switch(animId)
{
case 1201:
animName = "BAP01C06.CAM_1201_AePc_0";
mBase.mXPos = rect.x + 5;
mBase.mYPos = rect.y + 3;
break;
case 1202:
animName = "FARTFAN.BAN_1202_AePc_0";
break;
default:
animName = "AbeStandSpeak1";
}
log_info("BackgroundAnimation ctor id is " + animId + " animation is " + animName);
base.LoadAnimation(animName);
base.SetAnimation(animName);
}
function Update(actions)
{
base.AnimUpdate();
}
}
| Squirrel | 4 | mouzedrift/alive | data/scripts/background_animation.nut | [
"MIT"
] |
static const uint32_t in_barycenter_val[457] = {
0x3e7a1d31, 0x3e486b96, 0x3f6ec8cd, 0x3d36626c,
0x3ec80012, 0x3f61e85a, 0x3d514f51, 0x3f2a6eb7,
0x3f6449f2, 0x3d7e4722, 0x3f6021f2, 0x3f17ead4,
0x3f3541a5, 0x3f73b3bd, 0x3f683113, 0x3f6c5870,
0x3f55978d, 0x3f1d1cc2, 0x3ed4adff, 0x3efd732c,
0x3f719c9c, 0x3f5717be, 0x3f37bbfb, 0x3e9e74f9,
0x3efd7608, 0x3f0e7aa8, 0x3d746666, 0x3d6e0a19,
0x3eb13a0c, 0x3f128731, 0x3e5abef8, 0x3f66e14e,
0x3f12d680, 0x3eea038e, 0x3f69bffd, 0x3db994af,
0x3f70b58f, 0x3f2d57f5, 0x3dc6a60a, 0x3f2ef62e,
0x3e45128e, 0x3ea0a799, 0x3f79fd4c, 0x3d3c2e1b,
0x3e6ccd08, 0x3e3349c7, 0x3f616ee9, 0x3f0f805e,
0x3e468b31, 0x3effd5dc, 0x3f578c65, 0x3e1cf2de,
0x3f2724be, 0x3e26d45b, 0x3f749bd2, 0x3e2ce063,
0x3f45aca4, 0x3e61791b, 0x3f055c00, 0x3f556dd1,
0x3f1f3986, 0x3ee3dfb8, 0x3f51c8ae, 0x3da92278,
0x3efb6ba9, 0x3f1aed3a, 0x3f174f50, 0x3f0b26e5,
0x3f44fedf, 0x3f78f312, 0x3f5a9280, 0x3ece77ad,
0x3e863130, 0x3eaa79d2, 0x3f2fc20a, 0x3f5b0c8f,
0x3e310d3a, 0x3f53d264, 0x3ea4aba8, 0x3f54e220,
0x3d1f4bb2, 0x3f328fad, 0x3f5e61e5, 0x3e99ac59,
0x3ea378ae, 0x3cf68a1c, 0x3df1ba62, 0x3f1cf60c,
0x3f4b8801, 0x3f08dc47, 0x3ca4d766, 0x3dd7e4dc,
0x3b40f0b2, 0x3f17fdb3, 0x3f23bd35, 0x3eb39299,
0x3f79a3b2, 0x3f687a2d, 0x3f5621b6, 0x3ef99762,
0x3ebc4a84, 0x3f30d1ca, 0x3f113f3e, 0x3ef4e468,
0x3eb5dda9, 0x3e95fd88, 0x3ebce048, 0x3e6252b8,
0x3d31cbfe, 0x3ec9b91b, 0x3f3ea7a5, 0x3f6dd6ea,
0x3ea5dbb2, 0x3e8a0bfc, 0x3eaa3777, 0x3f5ad0fe,
0x3f696667, 0x3ee69115, 0x3ed34398, 0x3e1bd0eb,
0x3eafd11d, 0x3f64e9d6, 0x3e7f94c0, 0x3d499fa1,
0x3e1003ce, 0x3f2a12d5, 0x3debb768, 0x3f0d1cd8,
0x3e3b00c3, 0x3f5bafca, 0x3e807dcf, 0x3ee8a6cd,
0x3c86eaf6, 0x3f4bcdcf, 0x3bb2079f, 0x3ec4102a,
0x3f31206d, 0x3e5a0f81, 0x3f18465c, 0x3f04c9d1,
0x3f1472ba, 0x3f78e985, 0x3eef64c1, 0x3efc5ddf,
0x3f60d4e7, 0x3e8eb219, 0x3e2a1060, 0x3eddbcc0,
0x3e0da658, 0x3e2aea20, 0x3f63e6e0, 0x3eedd938,
0x3ea9d334, 0x3e23e424, 0x3f7c80f6, 0x3f54e99a,
0x3ef983eb, 0x3f709536, 0x3e9a6f34, 0x3f380012,
0x3d63520d, 0x3dc06f66, 0x3eef8a76, 0x3f3a9443,
0x3f715106, 0x3e88f47e, 0x3e873a96, 0x3e1be5be,
0x3f6f9e6f, 0x3f0147c5, 0x3eb93088, 0x3ef4a9fc,
0x3f2f1121, 0x3ca9e9a9, 0x3f67a5f8, 0x3f78b170,
0x3f175959, 0x3f5b8915, 0x3e5fcd31, 0x3f73660f,
0x3e8cccfa, 0x3f475de4, 0x3d7b1665, 0x3e8540e3,
0x3ea29ab8, 0x3f6839b0, 0x3f1a4706, 0x3f006b75,
0x3efc0cb6, 0x3ed60625, 0x3f61b248, 0x3f489003,
0x3f7213b2, 0x3f1751a4, 0x3f4fc534, 0x3f6cdbcf,
0x3f1b30ff, 0x3f78ec17, 0x3eb5dac7, 0x3f344fe1,
0x3f600841, 0x3df2f023, 0x3e078529, 0x3f3dbb4b,
0x3f5b2bb7, 0x3f4d5e28, 0x3f6dfd09, 0x3efaf402,
0x3e1ad2d9, 0x3f3ff0c1, 0x3f6a8b23, 0x3e60a5d4,
0x3f34ca00, 0x3f13b928, 0x3e10f142, 0x3e55f578,
0x3f2c38a1, 0x3f71bebc, 0x3f49e2b8, 0x3f464f7d,
0x3f42176c, 0x3ea761b7, 0x3f5927c7, 0x3f1532f2,
0x3f378d54, 0x3ea059e1, 0x3ecffde4, 0x3eca7ce5,
0x3f53f20c, 0x3e9d2ef1, 0x3c9f3f30, 0x3f2d2a55,
0x3ea92624, 0x3d18b407, 0x3f606c66, 0x3d68f7fe,
0x3f168334, 0x3f449327, 0x3d4194b3, 0x3f296bce,
0x3f035eea, 0x3ee79f20, 0x3f693050, 0x3e774730,
0x3f637925, 0x3ea5a1c8, 0x3ef75415, 0x3e9a0068,
0x3ecb247e, 0x3f25142a, 0x3f6aa74a, 0x3f748830,
0x3f1d2455, 0x3f3d6dd4, 0x3f6a70d7, 0x3e26f5d8,
0x3f5af99d, 0x3eceaf6c, 0x3efacaa6, 0x3f28264d,
0x3f1353be, 0x3f439c2f, 0x3e24f26d, 0x3f3a9a1b,
0x3f49c8c1, 0x3f4b62a8, 0x3e30f5b2, 0x3eaf1641,
0x3f1bf934, 0x3f1faa59, 0x3f457b7f, 0x3d42f82a,
0x3f1fb59c, 0x3cb4dba6, 0x3f086797, 0x3e5bebb6,
0x3ef13a04, 0x3eeef61e, 0x3f38c8f1, 0x3e768bdf,
0x3f5fd582, 0x3f48b174, 0x3f391ee4, 0x3f388666,
0x3f7fac99, 0x3e904331, 0x3ebc42db, 0x3f6d3dcf,
0x3f41796d, 0x3f6e6fb8, 0x3f0fa815, 0x3f0ee1e0,
0x3f59e895, 0x3f20ac55, 0x3f0f1ad2, 0x3f76894a,
0x3f0948a8, 0x3f221041, 0x3f1369c9, 0x3f46fd69,
0x3f3372b6, 0x3ea86f17, 0x3f77db84, 0x3e20b1e8,
0x3f4360f9, 0x3e98685c, 0x3f547f17, 0x3d537295,
0x3e05d2c9, 0x3e81844c, 0x3d2ffe3a, 0x3f47242f,
0x3f6708dc, 0x3f5f7e10, 0x3f094687, 0x3d28b078,
0x3f718d91, 0x3b82a4d7, 0x3f345757, 0x3e64ce2e,
0x3f68658f, 0x3e80f2cc, 0x3f073356, 0x3ef5b0aa,
0x3f509e69, 0x3e078b07, 0x3f13dcb9, 0x3f607dd1,
0x3e83b640, 0x3e2563ff, 0x3c258797, 0x3eb23d6b,
0x3e8ef6cc, 0x3efcb9ac, 0x3f673392, 0x3f577397,
0x3f65c95b, 0x3e26e15c, 0x3e3a83cb, 0x3e956ccc,
0x3f0787b3, 0x3e8f3f20, 0x3f4b2e7b, 0x3e38db26,
0x3e757693, 0x3e1fd1f6, 0x3f64be9c, 0x3ec4226d,
0x3c9b1fdb, 0x3de0b690, 0x3e0e23a2, 0x3dc02e8b,
0x3e9df223, 0x3e4fc356, 0x3f36d60b, 0x3aa52dd9,
0x3f5f9f19, 0x3eb21718, 0x3f4c997e, 0x3f145e75,
0x3ef0633d, 0x3f42fb62, 0x3ebc36bf, 0x3f38980e,
0x3f00238c, 0x3eb3431b, 0x3f4aedbc, 0x3f183617,
0x3f6166a8, 0x3f6bb4f1, 0x3ea4aed9, 0x3f507a4b,
0x3e606f8f, 0x3f78d843, 0x3f5607ef, 0x3e3a9c66,
0x3f12df73, 0x3f4e36a9, 0x3eab2e62, 0x3ec3c3bd,
0x3e72e1d1, 0x3f5c4d7a, 0x3e82057b, 0x3f2727fc,
0x3ee2e53a, 0x3f1501c7, 0x3f076112, 0x3f2999cd,
0x3f5719a5, 0x3e2272ca, 0x3f5a8708, 0x3f136cfc,
0x3f69dc87, 0x3e22f8b5, 0x3eb67673, 0x3f47d7f3,
0x3ece3d57, 0x3f5f00e2, 0x3ed1245c, 0x3f76cd0a,
0x3f208ac7, 0x3d453342, 0x3e482dff, 0x3f6fa340,
0x3d63173a, 0x3a6ff618, 0x3e65e260, 0x3eb71c67,
0x3e1d1448, 0x3f12f81a, 0x3ee22959, 0x3e19780c,
0x3f6cde41, 0x3f204404, 0x3f222eb7, 0x3f0ab2b9,
0x3f5ba391, 0x3de10a0f, 0x3e971ed9, 0x3f57a0fa,
0x3ee0a974, 0x3f223ac9, 0x3f6e9eca, 0x3f6c96a2,
0x3f28f8b4, 0x3ed61bf5, 0x3da19dc8, 0x3e856cc2,
0x3f5b20fc, 0x3d78dfef, 0x3ea951a0, 0x3f22b37a,
0x3f49273e, 0x3f1ec888, 0x3e9c48aa, 0x3f2ee023,
0x3e6d04de, 0x3e875e78, 0x3f22b48a, 0x3f45c0e7,
0x3f41ad7b, 0x3cd42baa, 0x3d49f068, 0x3d211bb1,
0x3f022bc4, 0x3f1d828e, 0x3c97ff88, 0x3e70c0c6,
0x3f73a83c, 0x3f434f97, 0x3e1d5148, 0x3f269130,
0x3d53a5f8, 0x3e932cbd, 0x3f60eafd, 0x3e96b66a,
0x3ee1a6ff
};
static const uint32_t in_barycenter_coeff[67] = {
0x3e5f7975, 0x3e2e62cc, 0x3d118d2d, 0x3f69c8d9,
0x3f6494c7, 0x3f2a42db, 0x3f4a91c0, 0x3f458be5,
0x3f4d5aa6, 0x3f6dd16b, 0x3e7b06d9, 0x3f3b7445,
0x3f125269, 0x3f6fe32b, 0x3e55b64b, 0x3dbfd8bc,
0x3f5cc27d, 0x3f6b672d, 0x3f6126ce, 0x3f713b2d,
0x3f002a98, 0x3ef3802d, 0x3f38e78e, 0x3e8213de,
0x3f1686a8, 0x3f35db7a, 0x3f57531a, 0x3f22ffc9,
0x3dd92f8f, 0x3f673e7d, 0x3eef73e8, 0x3e01ce1e,
0x3d3a73ae, 0x3eba2982, 0x3f5b482e, 0x3f3e5dd2,
0x3efffbc7, 0x3eca8fce, 0x3e0f2d5f, 0x3f3168f6,
0x3e8b8f3f, 0x3eb91d2d, 0x3eff79f7, 0x3e88bc72,
0x3e0bc395, 0x3f6efa7f, 0x3f52a4fa, 0x3f0e7ddd,
0x3e676ee9, 0x3f22c18b, 0x3f07b87b, 0x3e7a453e,
0x3d3d94bf, 0x3f77f73f, 0x3e8bdf15, 0x3f5f4d9d,
0x3f5cc9f6, 0x3f32e982, 0x3e19e3f8, 0x3e114cd1,
0x3f1638e8, 0x3f754c27, 0x3f619e05, 0x3eca1c20,
0x3ebc5abd, 0x3e99d3b9, 0x3eb26f11
};
static const uint16_t in_barycenter_dims[21] = {
0x000A, 0x0004, 0x0004, 0x0008, 0x0004, 0x0009, 0x0004, 0x0004,
0x0008, 0x0008, 0x0008, 0x0009, 0x0008, 0x0004, 0x0009, 0x0008,
0x0009, 0x0009, 0x0009, 0x0004, 0x0004
};
static const uint32_t ref_barycenter[67] = {
0x3f18c86f, 0x3f4bc9f5, 0x3f4d2692, 0x3f3cffa0,
0x3f1d495b, 0x3f0c12ee, 0x3ef30774, 0x3edd4019,
0x3ed72d08, 0x3f1192ce, 0x3f35b532, 0x3effa399,
0x3e0900f5, 0x3ed569bd, 0x3f0a1091, 0x3f1830b5,
0x3f2b122a, 0x3f0f751d, 0x3ee2a039, 0x3ef131f6,
0x3eb2f935, 0x3f0d0381, 0x3ec32cb3, 0x3ee1182f,
0x3ebb1a13, 0x3ef1fcc1, 0x3f021aac, 0x3f04b551,
0x3f281e83, 0x3f1891c4, 0x3edeb937, 0x3f115cc5,
0x3f15bc43, 0x3ef8646e, 0x3f331a8d, 0x3f10dc0a,
0x3eea5b03, 0x3f2c30ba, 0x3f4cc4b6, 0x3f073c99,
0x3f410db9, 0x3f289a03, 0x3eb8e7cf, 0x3efa40c8,
0x3f459f44, 0x3eed530b, 0x3f11dbad, 0x3ed11547,
0x3f2de1fc, 0x3e9f4c72, 0x3f31fb18, 0x3ea86bad,
0x3f349899, 0x3ee6dc51, 0x3f2e44fb, 0x3f10a527,
0x3ee39506, 0x3ef8bd73, 0x3ee3518a, 0x3f2bf120,
0x3ea9709a, 0x3f102cd8, 0x3f365c8f, 0x3ecd48f8,
0x3e895642, 0x3e911e62, 0x3f02931b
};
| Max | 1 | Trifunik/zephyr | tests/lib/cmsis_dsp/support/src/barycenter_f32.pat | [
"Apache-2.0"
] |
MODULE = Agar::Pane PACKAGE = Agar::Pane PREFIX = AG_
PROTOTYPES: ENABLE
VERSIONCHECK: DISABLE
Agar::Pane
newHoriz(package, parent, ...)
const char * package
Agar::Widget parent
PREINIT:
Uint flags = 0, wflags = 0;
CODE:
if ((items == 3 && SvTYPE(SvRV(ST(2))) != SVt_PVHV) || items > 3) {
Perl_croak(aTHX_ "Usage: Agar::Pane->newHoriz(parent,[{opts}])");
}
if (items == 3) {
AP_MapHashToFlags(SvRV(ST(2)), agPaneFlagNames, &flags);
AP_MapHashToFlags(SvRV(ST(2)), apWidgetFlagNames, &wflags);
}
RETVAL = AG_PaneNewHoriz(parent, flags);
if (RETVAL) { AGWIDGET(RETVAL)->flags |= wflags; }
OUTPUT:
RETVAL
Agar::Pane
newVert(package, parent, ...)
const char * package
Agar::Widget parent
PREINIT:
Uint flags = 0, wflags = 0;
CODE:
if ((items == 3 && SvTYPE(SvRV(ST(2))) != SVt_PVHV) || items > 3) {
Perl_croak(aTHX_ "Usage: Agar::Pane->newVert(parent,[{opts}])");
}
if (items == 3) {
AP_MapHashToFlags(SvRV(ST(2)), agPaneFlagNames, &flags);
AP_MapHashToFlags(SvRV(ST(2)), apWidgetFlagNames, &wflags);
}
RETVAL = AG_PaneNewVert(parent, flags);
if (RETVAL) { AGWIDGET(RETVAL)->flags |= wflags; }
OUTPUT:
RETVAL
void
setDividerWidth(self, pixels)
Agar::Pane self
int pixels
CODE:
AG_PaneSetDividerWidth(self, pixels);
void
setDivisionMin(self, pixels)
Agar::Pane self
int pixels
CODE:
AG_PaneSetDivisionMin(self, 0, pixels, pixels);
AG_PaneSetDivisionMin(self, 1, pixels, pixels);
Agar::Box
leftPane(self)
Agar::Pane self
CODE:
RETVAL = self->div[0];
OUTPUT:
RETVAL
Agar::Box
rightPane(self)
Agar::Pane self
CODE:
RETVAL = self->div[1];
OUTPUT:
RETVAL
Agar::Box
topPane(self)
Agar::Pane self
CODE:
RETVAL = self->div[0];
OUTPUT:
RETVAL
Agar::Box
bottomPane(self)
Agar::Pane self
CODE:
RETVAL = self->div[1];
OUTPUT:
RETVAL
void
moveDivider(self, x)
Agar::Pane self
int x
CODE:
AG_PaneMoveDivider(self, x);
void
moveDividerPct(self, pct)
Agar::Pane self
int pct
CODE:
AG_PaneMoveDividerPct(self, pct);
void
setFlag(self, name)
Agar::Pane self
const char * name
CODE:
if (AP_SetNamedFlag(name, agPaneFlagNames, &(self->flags))) {
AP_SetNamedFlag(name, apWidgetFlagNames, &(AGWIDGET(self)->flags));
}
void
unsetFlag(self, name)
Agar::Pane self
const char * name
CODE:
if (AP_UnsetNamedFlag(name, agPaneFlagNames, &(self->flags))) {
AP_UnsetNamedFlag(name, apWidgetFlagNames, &(AGWIDGET(self)->flags));
}
Uint
getFlag(self, name)
Agar::Pane self
const char * name
CODE:
if (AP_GetNamedFlag(name, agPaneFlagNames, self->flags, &RETVAL)) {
if (AP_GetNamedFlag(name, apWidgetFlagNames, AGWIDGET(self)->flags,
&RETVAL)) { XSRETURN_UNDEF; }
}
OUTPUT:
RETVAL
| XS | 4 | auzkok/libagar | p5-Agar/Agar/Pane.xs | [
"BSD-2-Clause"
] |
49 Clusters/ALA-GLU/PDBs/Generator-995.pdb (Count 3780)
1 H 5.685000 3.062000 3.392000 341 2
2 C 5.622000 2.990000 2.308000 340 5 4 3 1
3 H 5.953000 3.917000 1.846000 341 2
4 H 6.237000 2.163000 1.957000 341 2
5 C 4.172000 2.720000 1.908000 342 2 6 7
6 O 3.862000 1.700000 1.298000 343 5
7 N 3.282000 3.650000 2.258000 7 5 9 8
8 H 3.579000 4.444000 2.794000 10 7
9 C 1.882000 3.520000 1.938000 8 7 15 10 11
10 H 1.793000 3.253000 0.882000 12 9
11 C 1.172000 4.860000 2.148000 13 9 12 13 14
12 H 1.640000 5.626000 1.529000 14 11
13 H 0.127000 4.762000 1.850000 14 11
14 H 1.221000 5.151000 3.198000 14 11
15 C 1.202000 2.440000 2.758000 9 9 16 17
16 O 1.392000 2.350000 3.968000 11 15
17 N 0.402000 1.600000 2.088000 346 15 19 18
18 H 0.282000 1.758000 1.085000 347 17
19 C -0.298000 0.520000 2.728000 348 17 21 20 22
20 H -0.950000 0.913000 3.508000 349 19
21 H -0.894000 -0.017000 1.989000 349 19
22 H 0.423000 -0.167000 3.175000 349 19
23 H -5.073000 -2.683000 -0.371000 341 24
24 C -4.298000 -2.490000 0.368000 340 27 23 25 26
25 H -4.354000 -1.457000 0.706000 341 24
26 H -4.418000 -3.160000 1.218000 341 24
27 C -2.938000 -2.730000 -0.252000 342 24 28 29
28 O -2.158000 -3.560000 0.188000 343 27
29 N -2.648000 -2.000000 -1.332000 232 27 31 30
30 H -3.279000 -1.273000 -1.627000 235 29
31 C -1.388000 -2.130000 -2.032000 233 29 42 32 33
32 H -0.648000 -2.619000 -1.397000 237 31
33 C -0.838000 -0.750000 -2.382000 238 31 36 35 34
34 H -1.524000 -0.274000 -3.086000 239 33
35 H 0.136000 -0.868000 -2.859000 239 33
36 C -0.668000 0.150000 -1.162000 240 33 39 38 37
37 H -1.628000 0.271000 -0.655000 241 36
38 H 0.025000 -0.329000 -0.466000 241 36
39 C -0.148000 1.530000 -1.522000 242 36 40 41
40 O 0.002000 2.350000 -0.602000 243 39
41 O 0.062000 1.790000 -2.722000 243 39
42 C -1.518000 -2.980000 -3.292000 234 31 43 44
43 O -0.718000 -2.880000 -4.212000 236 42
44 N -2.558000 -3.820000 -3.322000 346 42 46 45
45 H -3.144000 -3.867000 -2.504000 347 44
46 C -2.818000 -4.690000 -4.452000 348 44 49 48 47
47 H -2.952000 -4.088000 -5.353000 349 46
48 H -1.965000 -5.354000 -4.604000 349 46
49 H -3.714000 -5.284000 -4.273000 349 46
49 Clusters/ALA-GLU/PDBs/Generator-887.pdb (Count 3621)
1 H 4.792000 1.519000 -2.214000 341 2
2 C 4.055000 2.014000 -2.843000 340 5 4 3 1
3 H 4.218000 1.760000 -3.888000 341 2
4 H 4.127000 3.093000 -2.710000 341 2
5 C 2.655000 1.564000 -2.423000 342 2 6 7
6 O 1.835000 2.394000 -2.023000 343 5
7 N 2.375000 0.264000 -2.543000 7 5 9 8
8 H 3.090000 -0.386000 -2.818000 10 7
9 C 1.065000 -0.226000 -2.223000 8 7 15 10 11
10 H 0.829000 0.055000 -1.194000 12 9
11 C 1.015000 -1.746000 -2.313000 13 9 12 13 14
12 H 1.733000 -2.181000 -1.616000 14 11
13 H 0.016000 -2.090000 -2.034000 14 11
14 H 1.237000 -2.081000 -3.326000 14 11
15 C -0.015000 0.364000 -3.093000 9 9 16 17
16 O -1.075000 0.734000 -2.603000 11 15
17 N 0.235000 0.454000 -4.393000 346 15 19 18
18 H 1.122000 0.122000 -4.726000 347 17
19 C -0.675000 1.074000 -5.313000 348 17 21 20 22
20 H -1.643000 0.570000 -5.262000 349 19
21 H -0.289000 1.017000 -6.331000 349 19
22 H -0.820000 2.120000 -5.033000 349 19
23 H -0.256000 1.771000 5.496000 341 24
24 C 0.425000 2.054000 4.697000 340 27 23 25 26
25 H 0.146000 3.024000 4.292000 341 24
26 H 1.445000 2.092000 5.075000 341 24
27 C 0.355000 1.014000 3.587000 342 24 28 29
28 O 1.355000 0.384000 3.247000 343 27
29 N -0.805000 0.824000 3.007000 232 27 31 30
30 H -1.588000 1.402000 3.261000 235 29
31 C -0.995000 -0.146000 1.967000 233 29 42 32 33
32 H -0.288000 0.058000 1.161000 237 31
33 C -2.405000 -0.066000 1.387000 238 31 36 35 34
34 H -3.124000 -0.355000 2.156000 239 33
35 H -2.604000 0.966000 1.093000 239 33
36 C -2.565000 -0.966000 0.167000 240 33 39 38 37
37 H -2.301000 -1.989000 0.441000 241 36
38 H -1.869000 -0.640000 -0.605000 241 36
39 C -3.975000 -0.996000 -0.383000 242 36 40 41
40 O -4.835000 -0.216000 0.057000 243 39
41 O -4.175000 -1.816000 -1.303000 243 39
42 C -0.705000 -1.546000 2.467000 234 31 43 44
43 O -0.055000 -2.336000 1.787000 236 42
44 N -1.205000 -1.896000 3.647000 346 42 46 45
45 H -1.762000 -1.234000 4.160000 347 44
46 C -0.905000 -3.206000 4.197000 348 44 49 48 47
47 H 0.176000 -3.322000 4.294000 349 46
48 H -1.374000 -3.321000 5.174000 349 46
49 H -1.279000 -3.978000 3.521000 349 46
49 Clusters/ALA-GLU/PDBs/Generator-446.pdb (Count 3101)
1 H 1.976000 -4.643000 -2.372000 341 2
2 C 1.454000 -3.802000 -2.823000 340 5 4 3 1
3 H 1.771000 -3.666000 -3.854000 341 2
4 H 0.379000 -3.973000 -2.788000 341 2
5 C 1.764000 -2.542000 -2.033000 342 2 6 7
6 O 0.874000 -1.902000 -1.473000 343 5
7 N 3.044000 -2.182000 -1.993000 7 5 9 8
8 H 3.735000 -2.767000 -2.423000 10 7
9 C 3.484000 -0.992000 -1.283000 8 7 15 10 11
10 H 2.793000 -0.183000 -1.515000 12 9
11 C 4.874000 -0.592000 -1.753000 13 9 12 13 14
12 H 4.860000 -0.416000 -2.829000 14 11
13 H 5.172000 0.332000 -1.254000 14 11
14 H 5.592000 -1.378000 -1.517000 14 11
15 C 3.484000 -1.222000 0.197000 9 9 16 17
16 O 3.724000 -2.332000 0.667000 11 15
17 N 3.204000 -0.162000 0.957000 346 15 19 18
18 H 2.933000 0.703000 0.481000 347 17
19 C 3.194000 -0.232000 2.407000 348 17 21 20 22
20 H 4.168000 -0.566000 2.767000 349 19
21 H 2.431000 -0.942000 2.730000 349 19
22 H 2.969000 0.753000 2.818000 349 19
23 H -4.047000 0.592000 4.599000 341 24
24 C -3.306000 1.228000 4.117000 340 27 23 25 26
25 H -3.673000 2.251000 4.067000 341 24
26 H -2.372000 1.190000 4.674000 341 24
27 C -3.066000 0.708000 2.707000 342 24 28 29
28 O -3.646000 -0.262000 2.257000 343 27
29 N -2.186000 1.408000 1.987000 232 27 31 30
30 H -1.695000 2.174000 2.414000 235 29
31 C -1.836000 1.048000 0.627000 233 29 42 32 33
32 H -1.447000 0.028000 0.595000 237 31
33 C -0.746000 2.018000 0.167000 238 31 36 35 34
34 H -1.150000 3.032000 0.135000 239 33
35 H 0.041000 2.001000 0.924000 239 33
36 C -0.116000 1.698000 -1.163000 240 33 39 38 37
37 H 0.095000 0.629000 -1.209000 241 36
38 H -0.815000 1.945000 -1.966000 241 36
39 C 1.174000 2.468000 -1.323000 242 36 40 41
40 O 2.214000 1.988000 -0.823000 243 39
41 O 1.144000 3.548000 -1.933000 243 39
42 C -3.056000 1.108000 -0.263000 234 31 43 44
43 O -3.176000 0.318000 -1.203000 236 42
44 N -3.966000 2.028000 -0.003000 346 42 46 45
45 H -3.801000 2.627000 0.787000 347 44
46 C -5.176000 2.188000 -0.773000 348 44 49 48 47
47 H -4.919000 2.374000 -1.818000 349 46
48 H -5.763000 1.269000 -0.718000 349 46
49 H -5.763000 3.021000 -0.388000 349 46
49 Clusters/ALA-GLU/PDBs/Generator-389.pdb (Count 2829)
1 H 3.082000 -1.556000 2.188000 341 2
2 C 2.710000 -1.176000 1.240000 340 5 4 3 1
3 H 3.077000 -1.804000 0.426000 341 2
4 H 3.040000 -0.153000 1.080000 341 2
5 C 1.190000 -1.226000 1.230000 342 2 6 7
6 O 0.590000 -1.916000 0.420000 343 5
7 N 0.570000 -0.496000 2.160000 7 5 9 8
8 H 1.111000 0.093000 2.767000 10 7
9 C -0.850000 -0.476000 2.260000 8 7 15 10 11
10 H -1.277000 -0.213000 1.288000 12 9
11 C -1.300000 0.544000 3.280000 13 9 12 13 14
12 H -0.970000 1.538000 2.974000 14 11
13 H -0.895000 0.310000 4.265000 14 11
14 H -2.390000 0.544000 3.331000 14 11
15 C -1.380000 -1.856000 2.640000 9 9 16 17
16 O -2.390000 -2.316000 2.120000 11 15
17 N -0.670000 -2.526000 3.560000 346 15 19 18
18 H 0.181000 -2.116000 3.904000 347 17
19 C -1.060000 -3.846000 3.990000 348 17 21 20 22
20 H -1.051000 -4.523000 3.132000 349 19
21 H -0.371000 -4.218000 4.749000 349 19
22 H -2.073000 -3.819000 4.397000 349 19
23 H 1.540000 4.164000 0.302000 341 24
24 C 1.030000 3.454000 0.950000 340 27 23 25 26
25 H 1.752000 2.923000 1.566000 341 24
26 H 0.318000 3.981000 1.583000 341 24
27 C 0.270000 2.454000 0.090000 342 24 28 29
28 O -0.930000 2.364000 0.170000 343 27
29 N 1.000000 1.704000 -0.720000 232 27 31 30
30 H 2.000000 1.797000 -0.751000 235 29
31 C 0.360000 0.714000 -1.560000 233 29 42 32 33
32 H -0.244000 0.032000 -0.959000 237 31
33 C 1.410000 -0.076000 -2.310000 238 31 36 35 34
34 H 2.145000 -0.449000 -1.596000 239 33
35 H 1.930000 0.585000 -3.006000 239 33
36 C 0.830000 -1.276000 -3.070000 240 33 39 38 37
37 H 0.091000 -0.925000 -3.793000 241 36
38 H 0.320000 -1.933000 -2.362000 241 36
39 C 1.900000 -2.046000 -3.820000 242 36 40 41
40 O 2.610000 -1.426000 -4.650000 243 39
41 O 2.040000 -3.266000 -3.580000 243 39
42 C -0.560000 1.384000 -2.560000 234 31 43 44
43 O -1.680000 0.924000 -2.780000 236 42
44 N -0.110000 2.494000 -3.150000 346 42 46 45
45 H 0.823000 2.807000 -2.943000 347 44
46 C -0.920000 3.194000 -4.130000 348 44 49 48 47
47 H -0.390000 4.070000 -4.503000 349 46
48 H -1.861000 3.502000 -3.671000 349 46
49 H -1.143000 2.522000 -4.962000 349 46
49 Clusters/ALA-GLU/PDBs/Generator-064.pdb (Count 2798)
1 H 0.049000 3.254000 4.171000 341 2
2 C -0.590000 2.782000 4.915000 340 5 4 3 1
3 H -1.618000 3.112000 4.785000 341 2
4 H -0.241000 3.040000 5.914000 341 2
5 C -0.520000 1.272000 4.745000 342 2 6 7
6 O -0.110000 0.562000 5.655000 343 5
7 N -0.910000 0.782000 3.565000 7 5 9 8
8 H -1.157000 1.406000 2.813000 10 7
9 C -0.900000 -0.628000 3.295000 8 7 15 10 11
10 H -0.221000 -1.123000 3.991000 12 9
11 C -2.290000 -1.238000 3.495000 13 9 12 13 14
12 H -2.253000 -2.313000 3.314000 14 11
13 H -2.624000 -1.062000 4.518000 14 11
14 H -2.997000 -0.783000 2.800000 14 11
15 C -0.370000 -0.898000 1.895000 9 9 16 17
16 O -0.590000 -0.118000 0.965000 11 15
17 N 0.280000 -2.038000 1.775000 346 15 19 18
18 H 0.463000 -2.572000 2.609000 347 17
19 C 0.610000 -2.648000 0.495000 348 17 21 20 22
20 H -0.253000 -2.606000 -0.171000 349 19
21 H 1.442000 -2.119000 0.030000 349 19
22 H 0.898000 -3.690000 0.633000 349 19
23 H -1.936000 2.258000 0.166000 341 24
24 C -2.400000 1.912000 -0.755000 340 27 23 25 26
25 H -2.808000 0.914000 -0.606000 341 24
26 H -3.186000 2.598000 -1.064000 341 24
27 C -1.340000 1.852000 -1.845000 342 24 28 29
28 O -1.410000 2.532000 -2.865000 343 27
29 N -0.360000 0.972000 -1.605000 232 27 31 30
30 H -0.406000 0.451000 -0.735000 235 29
31 C 0.630000 0.532000 -2.545000 233 29 42 32 33
32 H 0.732000 1.264000 -3.346000 237 31
33 C 1.960000 0.422000 -1.805000 238 31 36 35 34
34 H 2.187000 1.394000 -1.362000 239 33
35 H 1.851000 -0.292000 -0.991000 239 33
36 C 3.150000 0.002000 -2.665000 240 33 39 38 37
37 H 2.884000 -0.883000 -3.244000 241 36
38 H 3.372000 0.804000 -3.374000 241 36
39 C 4.390000 -0.318000 -1.845000 242 36 40 41
40 O 4.720000 0.422000 -0.915000 243 39
41 O 5.020000 -1.348000 -2.155000 243 39
42 C 0.240000 -0.798000 -3.125000 234 31 43 44
43 O -0.280000 -1.618000 -2.385000 236 42
44 N 0.500000 -0.988000 -4.415000 346 42 46 45
45 H 0.969000 -0.277000 -4.953000 347 44
46 C 0.310000 -2.328000 -4.945000 348 44 49 48 47
47 H -0.730000 -2.633000 -4.815000 349 46
48 H 0.952000 -3.028000 -4.405000 349 46
49 H 0.566000 -2.352000 -6.004000 349 46
49 Clusters/ALA-GLU/PDBs/Generator-668.pdb (Count 2626)
1 H -3.931000 -2.197000 -1.876000 341 2
2 C -3.594000 -2.416000 -2.887000 340 5 4 3 1
3 H -3.161000 -3.413000 -2.927000 341 2
4 H -4.434000 -2.352000 -3.577000 341 2
5 C -2.544000 -1.396000 -3.297000 342 2 6 7
6 O -2.714000 -0.676000 -4.277000 343 5
7 N -1.424000 -1.346000 -2.557000 7 5 9 8
8 H -1.324000 -1.923000 -1.739000 10 7
9 C -0.374000 -0.406000 -2.887000 8 7 15 10 11
10 H -0.514000 0.022000 -3.881000 12 9
11 C 0.976000 -1.076000 -2.857000 13 9 12 13 14
12 H 1.014000 -1.864000 -3.610000 14 11
13 H 1.757000 -0.344000 -3.072000 14 11
14 H 1.166000 -1.509000 -1.873000 14 11
15 C -0.404000 0.694000 -1.857000 9 9 16 17
16 O -0.344000 0.454000 -0.657000 11 15
17 N -0.454000 1.934000 -2.357000 346 15 19 18
18 H -0.463000 2.070000 -3.356000 347 17
19 C -0.514000 3.084000 -1.477000 348 17 21 20 22
20 H -1.366000 2.998000 -0.801000 349 19
21 H 0.403000 3.138000 -0.882000 349 19
22 H -0.606000 4.001000 -2.060000 349 19
23 H -1.824000 2.633000 1.888000 341 24
24 C -2.044000 1.724000 2.443000 340 27 23 25 26
25 H -2.622000 1.962000 3.334000 341 24
26 H -2.593000 1.028000 1.813000 341 24
27 C -0.734000 1.084000 2.863000 342 24 28 29
28 O -0.454000 0.984000 4.063000 343 27
29 N 0.076000 0.644000 1.913000 232 27 31 30
30 H -0.132000 0.836000 0.948000 235 29
31 C 1.366000 0.084000 2.263000 233 29 42 32 33
32 H 1.644000 0.360000 3.282000 237 31
33 C 2.456000 0.644000 1.363000 238 31 36 35 34
34 H 2.218000 0.431000 0.320000 239 33
35 H 3.401000 0.157000 1.610000 239 33
36 C 2.616000 2.144000 1.563000 240 33 39 38 37
37 H 2.775000 2.331000 2.628000 241 36
38 H 1.687000 2.644000 1.276000 241 36
39 C 3.756000 2.784000 0.773000 242 36 40 41
40 O 4.126000 2.294000 -0.297000 243 39
41 O 4.266000 3.824000 1.243000 243 39
42 C 1.356000 -1.426000 2.243000 234 31 43 44
43 O 2.016000 -2.096000 3.033000 236 42
44 N 0.606000 -1.996000 1.293000 346 42 46 45
45 H 0.116000 -1.385000 0.654000 347 44
46 C 0.366000 -3.426000 1.303000 348 44 49 48 47
47 H -0.079000 -3.715000 2.257000 349 46
48 H 1.315000 -3.954000 1.188000 349 46
49 H -0.304000 -3.702000 0.489000 349 46
49 Clusters/ALA-GLU/PDBs/Generator-961.pdb (Count 2626)
1 H 4.165000 -4.117000 4.911000 341 2
2 C 3.693000 -3.357000 5.529000 340 5 4 3 1
3 H 3.116000 -3.829000 6.322000 341 2
4 H 4.444000 -2.699000 5.961000 341 2
5 C 2.743000 -2.527000 4.669000 342 2 6 7
6 O 1.543000 -2.457000 4.929000 343 5
7 N 3.303000 -1.897000 3.639000 7 5 9 8
8 H 4.293000 -1.958000 3.498000 10 7
9 C 2.543000 -0.957000 2.839000 8 7 15 10 11
10 H 1.655000 -1.454000 2.438000 12 9
11 C 3.403000 -0.467000 1.679000 13 9 12 13 14
12 H 2.816000 0.214000 1.060000 14 11
13 H 4.281000 0.057000 2.056000 14 11
14 H 3.711000 -1.314000 1.066000 14 11
15 C 2.093000 0.193000 3.699000 9 9 16 17
16 O 2.743000 0.533000 4.689000 11 15
17 N 0.973000 0.813000 3.329000 346 15 19 18
18 H 0.496000 0.491000 2.482000 347 17
19 C 0.453000 1.963000 4.049000 348 17 21 20 22
20 H 1.207000 2.751000 4.079000 349 19
21 H -0.440000 2.331000 3.543000 349 19
22 H 0.199000 1.668000 5.068000 349 19
23 H -5.500000 -0.090000 -5.337000 341 24
24 C -5.117000 -0.017000 -4.321000 340 27 23 25 26
25 H -5.453000 -0.872000 -3.738000 341 24
26 H -5.460000 0.907000 -3.862000 341 24
27 C -3.597000 -0.017000 -4.371000 342 24 28 29
28 O -3.007000 -0.087000 -5.451000 343 27
29 N -2.927000 0.063000 -3.221000 232 27 31 30
30 H -3.429000 0.035000 -2.349000 235 29
31 C -1.487000 0.203000 -3.181000 233 29 42 32 33
32 H -1.003000 -0.638000 -3.679000 237 31
33 C -0.987000 0.313000 -1.741000 238 31 36 35 34
34 H 0.081000 0.535000 -1.784000 239 33
35 H -1.496000 1.146000 -1.252000 239 33
36 C -1.187000 -0.937000 -0.911000 240 33 39 38 37
37 H -2.257000 -1.151000 -0.840000 241 36
38 H -0.699000 -1.776000 -1.413000 241 36
39 C -0.617000 -0.777000 0.469000 242 36 40 41
40 O -0.027000 0.263000 0.749000 243 39
41 O -0.767000 -1.707000 1.279000 243 39
42 C -1.077000 1.483000 -3.901000 234 31 43 44
43 O -0.137000 1.513000 -4.691000 236 42
44 N -1.817000 2.553000 -3.591000 346 42 46 45
45 H -2.563000 2.437000 -2.926000 347 44
46 C -1.527000 3.863000 -4.131000 348 44 49 48 47
47 H -0.516000 4.159000 -3.845000 349 46
48 H -1.584000 3.827000 -5.221000 349 46
49 H -2.241000 4.594000 -3.752000 349 46
49 Clusters/ALA-GLU/PDBs/Generator-490.pdb (Count 2187)
1 H 1.226000 4.763000 2.318000 341 2
2 C 1.282000 3.717000 2.032000 340 5 4 3 1
3 H 2.080000 3.556000 1.309000 341 2
4 H 0.344000 3.399000 1.580000 341 2
5 C 1.572000 2.867000 3.262000 342 2 6 7
6 O 2.732000 2.657000 3.612000 343 5
7 N 0.532000 2.367000 3.922000 7 5 9 8
8 H -0.386000 2.448000 3.518000 10 7
9 C 0.732000 1.627000 5.142000 8 7 15 10 11
10 H 1.231000 2.289000 5.852000 12 9
11 C -0.588000 1.207000 5.752000 13 9 12 13 14
12 H -1.112000 0.532000 5.074000 14 11
13 H -0.407000 0.695000 6.698000 14 11
14 H -1.206000 2.086000 5.937000 14 11
15 C 1.642000 0.417000 4.982000 9 9 16 17
16 O 2.382000 0.067000 5.902000 11 15
17 N 1.602000 -0.223000 3.822000 346 15 19 18
18 H 1.128000 0.193000 3.019000 347 17
19 C 2.402000 -1.413000 3.612000 348 17 21 20 22
20 H 2.101000 -2.194000 4.310000 349 19
21 H 2.262000 -1.760000 2.587000 349 19
22 H 3.456000 -1.175000 3.766000 349 19
23 H 1.053000 -2.895000 -6.511000 341 24
24 C 1.122000 -2.093000 -5.778000 340 27 23 25 26
25 H 1.072000 -1.129000 -6.280000 341 24
26 H 2.056000 -2.179000 -5.226000 341 24
27 C -0.028000 -2.213000 -4.818000 342 24 28 29
28 O -0.858000 -3.103000 -4.958000 343 27
29 N -0.118000 -1.293000 -3.858000 232 27 31 30
30 H 0.608000 -0.605000 -3.743000 235 29
31 C -1.208000 -1.323000 -2.908000 233 29 42 32 33
32 H -1.220000 -2.282000 -2.389000 237 31
33 C -1.078000 -0.203000 -1.878000 238 31 36 35 34
34 H -1.004000 0.749000 -2.409000 239 33
35 H -1.980000 -0.196000 -1.263000 239 33
36 C 0.122000 -0.383000 -0.978000 240 33 39 38 37
37 H 0.049000 -1.353000 -0.479000 241 36
38 H 1.034000 -0.370000 -1.580000 241 36
39 C 0.192000 0.707000 0.042000 242 36 40 41
40 O -0.498000 1.727000 -0.108000 243 39
41 O 0.952000 0.537000 1.022000 243 39
42 C -2.548000 -1.183000 -3.618000 234 31 43 44
43 O -3.538000 -1.843000 -3.298000 236 42
44 N -2.568000 -0.293000 -4.618000 346 42 46 45
45 H -1.726000 0.212000 -4.836000 347 44
46 C -3.788000 -0.063000 -5.368000 348 44 49 48 47
47 H -4.577000 0.269000 -4.690000 349 46
48 H -3.623000 0.696000 -6.133000 349 46
49 H -4.104000 -0.995000 -5.842000 349 46
49 Clusters/ALA-GLU/PDBs/Generator-077.pdb (Count 2142)
1 H -7.444000 0.761000 2.059000 341 2
2 C -6.951000 0.053000 2.722000 340 5 4 3 1
3 H -7.682000 -0.385000 3.400000 341 2
4 H -6.175000 0.555000 3.295000 341 2
5 C -6.331000 -1.047000 1.902000 342 2 6 7
6 O -6.691000 -2.217000 2.052000 343 5
7 N -5.421000 -0.697000 0.992000 7 5 9 8
8 H -5.181000 0.269000 0.850000 10 7
9 C -4.761000 -1.717000 0.192000 8 7 15 10 11
10 H -5.510000 -2.368000 -0.262000 12 9
11 C -3.971000 -1.047000 -0.908000 13 9 12 13 14
12 H -3.483000 -1.804000 -1.526000 14 11
13 H -3.198000 -0.397000 -0.494000 14 11
14 H -4.634000 -0.459000 -1.543000 14 11
15 C -3.811000 -2.597000 1.002000 9 9 16 17
16 O -3.761000 -3.797000 0.812000 11 15
17 N -3.121000 -2.017000 1.982000 346 15 19 18
18 H -3.181000 -1.018000 2.081000 347 17
19 C -2.301000 -2.777000 2.892000 348 17 21 20 22
20 H -2.913000 -3.521000 3.405000 349 19
21 H -1.838000 -2.117000 3.625000 349 19
22 H -1.520000 -3.295000 2.330000 349 19
23 H 7.094000 -0.164000 -1.331000 341 24
24 C 6.989000 0.443000 -2.228000 340 27 23 25 26
25 H 7.900000 1.015000 -2.397000 341 24
26 H 6.789000 -0.193000 -3.088000 341 24
27 C 5.829000 1.413000 -2.048000 342 24 28 29
28 O 6.029000 2.633000 -2.058000 343 27
29 N 4.639000 0.883000 -1.768000 232 27 31 30
30 H 4.521000 -0.116000 -1.828000 235 29
31 C 3.469000 1.683000 -1.438000 233 29 42 32 33
32 H 3.360000 2.465000 -2.192000 237 31
33 C 2.169000 0.873000 -1.428000 238 31 36 35 34
34 H 1.374000 1.505000 -1.030000 239 33
35 H 2.297000 0.036000 -0.739000 239 33
36 C 1.689000 0.323000 -2.768000 240 33 39 38 37
37 H 2.517000 -0.219000 -3.232000 241 36
38 H 1.454000 1.167000 -3.421000 241 36
39 C 0.489000 -0.587000 -2.678000 242 36 40 41
40 O -0.661000 -0.177000 -2.498000 243 39
41 O 0.689000 -1.817000 -2.768000 243 39
42 C 3.629000 2.403000 -0.108000 234 31 43 44
43 O 3.199000 3.553000 0.022000 236 42
44 N 4.329000 1.773000 0.812000 346 42 46 45
45 H 4.696000 0.857000 0.613000 347 44
46 C 4.669000 2.473000 2.042000 348 44 49 48 47
47 H 5.260000 3.360000 1.805000 349 46
48 H 5.243000 1.821000 2.700000 349 46
49 H 3.755000 2.789000 2.550000 349 46
49 Clusters/ALA-GLU/PDBs/Generator-590.pdb (Count 2092)
1 H 4.556000 -0.978000 2.482000 341 2
2 C 4.061000 -1.840000 2.039000 340 5 4 3 1
3 H 4.229000 -1.844000 0.962000 341 2
4 H 4.437000 -2.760000 2.479000 341 2
5 C 2.571000 -1.730000 2.289000 342 2 6 7
6 O 2.091000 -0.760000 2.869000 343 5
7 N 1.791000 -2.700000 1.819000 7 5 9 8
8 H 2.149000 -3.325000 1.113000 10 7
9 C 0.361000 -2.710000 2.079000 8 7 15 10 11
10 H -0.108000 -1.898000 1.520000 12 9
11 C -0.269000 -4.020000 1.669000 13 9 12 13 14
12 H -1.343000 -3.977000 1.853000 14 11
13 H 0.160000 -4.851000 2.228000 14 11
14 H -0.110000 -4.206000 0.609000 14 11
15 C 0.131000 -2.470000 3.569000 9 9 16 17
16 O -0.689000 -1.690000 4.009000 11 15
17 N 0.811000 -3.320000 4.349000 346 15 19 18
18 H 1.462000 -3.950000 3.912000 347 17
19 C 0.611000 -3.340000 5.789000 348 17 21 20 22
20 H -0.435000 -3.561000 6.012000 349 19
21 H 0.854000 -2.358000 6.201000 349 19
22 H 1.250000 -4.094000 6.249000 349 19
23 H -3.966000 1.613000 -4.841000 341 24
24 C -4.249000 1.600000 -3.791000 340 27 23 25 26
25 H -4.449000 0.580000 -3.470000 341 24
26 H -5.131000 2.219000 -3.636000 341 24
27 C -3.099000 2.170000 -2.961000 342 24 28 29
28 O -3.239000 3.140000 -2.221000 343 27
29 N -1.969000 1.460000 -2.971000 232 27 31 30
30 H -1.907000 0.653000 -3.569000 235 29
31 C -0.769000 1.850000 -2.251000 233 29 42 32 33
32 H -1.034000 1.995000 -1.203000 237 31
33 C 0.261000 0.740000 -2.321000 238 31 36 35 34
34 H 1.179000 1.104000 -1.858000 239 33
35 H 0.472000 0.505000 -3.366000 239 33
36 C -0.169000 -0.520000 -1.601000 240 33 39 38 37
37 H -0.418000 -0.258000 -0.570000 241 36
38 H -1.078000 -0.900000 -2.075000 241 36
39 C 0.861000 -1.620000 -1.581000 242 36 40 41
40 O 2.051000 -1.400000 -1.871000 243 39
41 O 0.441000 -2.740000 -1.221000 243 39
42 C -0.179000 3.150000 -2.761000 234 31 43 44
43 O -0.069000 3.340000 -3.971000 236 42
44 N 0.241000 4.020000 -1.851000 346 42 46 45
45 H 0.108000 3.791000 -0.879000 347 44
46 C 0.911000 5.260000 -2.191000 348 44 49 48 47
47 H 1.812000 5.041000 -2.768000 349 46
48 H 1.182000 5.803000 -1.285000 349 46
49 H 0.247000 5.876000 -2.800000 349 46
| Arc | 2 | bieniekmateusz/forcebalance | src/tests/files/amber_alaglu/all.arc | [
"BSD-3-Clause"
] |
package com.baeldung;
public class Account {
private Double balance;
public Account(Double initialBalance) {
this.balance = initialBalance;
}
public void credit(Double amount) {
balance += amount;
}
public Double getBalance() {
return balance;
}
}
| Java | 4 | DBatOWL/tutorials | gradle/gradle-cucumber/src/main/java/com/baeldung/Account.java | [
"MIT"
] |
namespace OpenAPI
module Helpers =
let (>=>) switch1 switch2 =
match switch1 with
| Ok v1 ->
match switch2 with
| Ok v2 ->
Ok(v1, v2)
| Error e -> Error e
| Error e -> Error e | F# | 4 | MalcolmScoffable/openapi-generator | samples/server/petstore/fsharp-giraffe/OpenAPI/src/helpers/Helpers.fs | [
"Apache-2.0"
] |