code
stringlengths 3
1.05M
| repo_name
stringlengths 4
116
| path
stringlengths 3
942
| language
stringclasses 30
values | license
stringclasses 15
values | size
int32 3
1.05M
|
---|---|---|---|---|---|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>corn: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.12.2 / corn - 8.8.1</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
corn
<small>
8.8.1
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-01-21 17:10:36 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-21 17:10:36 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
coq 8.12.2 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.06.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.06.1 Official 4.06.1 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "http://corn.cs.ru.nl/"
dev-repo: "git+https://github.com/coq-community/corn.git"
bug-reports: "https://github.com/coq-community/corn/issues"
doc: "http://corn.cs.ru.nl/"
authors: "Corn development team"
license: "GPL 2"
build: [
["./configure.sh"]
[make "-j%{jobs}%"]
]
install: [
[make "install"]
]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/CoRN"]
depends: [
"ocaml"
"coq" {>= "8.6" & < "8.9~"}
"coq-math-classes" {>= "8.8.1"}
]
synopsis: "The CoRN library. A library for constructive analysis"
flags: light-uninstall
url {
src: "https://github.com/coq-community/corn/archive/8.8.1.zip"
checksum: "md5=8fb4305a8b6041aab68e503a9eb97510"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-corn.8.8.1 coq.8.12.2</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.12.2).
The following dependencies couldn't be met:
- coq-corn -> coq < 8.9~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-corn.8.8.1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.06.1-2.0.5/released/8.12.2/corn/8.8.1.html | HTML | mit | 6,597 |
import collections
import re
import urlparse
class DSN(collections.MutableMapping):
''' Hold the results of a parsed dsn.
This is very similar to urlparse.ParseResult tuple.
http://docs.python.org/2/library/urlparse.html#results-of-urlparse-and-urlsplit
It exposes the following attributes:
scheme
schemes -- if your scheme has +'s in it, then this will contain a list of schemes split by +
path
paths -- the path segment split by /, so "/foo/bar" would be ["foo", "bar"]
host -- same as hostname (I just like host better)
hostname
hostloc -- host:port
username
password
netloc
query -- a dict of the query string
query_str -- the raw query string
port
fragment
'''
DSN_REGEXP = re.compile(r'^\S+://\S+')
FIELDS = ('scheme', 'netloc', 'path', 'params', 'query', 'fragment')
def __init__(self, dsn, **defaults):
''' Parse a dsn to parts similar to urlparse.
This is a nuts function that can serve as a good basis to parsing a custom dsn
:param dsn: the dsn to parse
:type dsn: str
:param defaults: any values you want to have defaults for if they aren't in the dsn
:type defaults: dict
'''
assert self.DSN_REGEXP.match(dsn), \
"{} is invalid, only full dsn urls (scheme://host...) allowed".format(dsn)
first_colon = dsn.find(':')
scheme = dsn[0:first_colon]
dsn_url = dsn[first_colon+1:]
url = urlparse.urlparse(dsn_url)
options = {}
if url.query:
for k, kv in urlparse.parse_qs(url.query, True, True).iteritems():
if len(kv) > 1:
options[k] = kv
else:
options[k] = kv[0]
self.scheme = scheme
self.hostname = url.hostname
self.path = url.path
self.params = url.params
self.query = options
self.fragment = url.fragment
self.username = url.username
self.password = url.password
self.port = url.port
self.query_str = url.query
for k, v in defaults.iteritems():
self.set_default(k, v)
def __iter__(self):
for f in self.FIELDS:
yield getattr(self, f, '')
def __len__(self):
return len(iter(self))
def __getitem__(self, field):
return getattr(self, field, None)
def __setitem__(self, field, value):
setattr(self, field, value)
def __delitem__(self, field):
delattr(self, field)
@property
def schemes(self):
'''the scheme, split by plus signs'''
return self.scheme.split('+')
@property
def netloc(self):
'''return username:password@hostname:port'''
s = ''
prefix = ''
if self.username:
s += self.username
prefix = '@'
if self.password:
s += ":{}".format(self.password)
prefix = '@'
s += "{}{}".format(prefix, self.hostloc)
return s
@property
def paths(self):
'''the path attribute split by /'''
return filter(None, self.path.split('/'))
@property
def host(self):
'''the hostname, but I like host better'''
return self.hostname
@property
def hostloc(self):
'''return host:port'''
hostloc = self.hostname
if self.port:
hostloc = '{}:{}'.format(hostloc, self.port)
return hostloc
def set_default(self, key, value):
''' Set a default value for key.
This is different than dict's setdefault because it will set default either
if the key doesn't exist, or if the value at the key evaluates to False, so
an empty string or a None will value will be updated.
:param key: the item to update
:type key: str
:param value: the items new value if key has a current value that evaluates to False
'''
if not getattr(self, key, None):
setattr(self, key, value)
def get_url(self):
'''return the dsn back into url form'''
return urlparse.urlunparse((
self.scheme,
self.netloc,
self.path,
self.params,
self.query_str,
self.fragment,
))
def copy(self):
return DSN(self.get_url())
def __str__(self):
return self.get_url()
| mylokin/servy | servy/utils/dsntool.py | Python | mit | 4,496 |
<script>
var visibilityChanged = function() {
steroids.logger.log("FROM PRELOADED VIEW window.location: " + window.location.href + ", document.visibilityState == " + document.visibilityState + " && document.hidden ==" + document.hidden);
alert("FROM PRELOADED VIEW window.location: " + window.location.href + ", document.visibilityState == " + document.visibilityState + " && document.hidden ==" + document.hidden);
}
steroids.on("ready", function() {
document.addEventListener("visibilitychange", visibilityChanged);
});
</script>
<h2>hi i have eventlisteners on visibilitychange</h2> | AppGyver/steroids-js | testApp/app/views/visibilitychange/preloadThatSetsVisibilityChanges.html | HTML | mit | 607 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-finmap: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.12.0 / mathcomp-finmap - 1.4.0+coq-8.11</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
mathcomp-finmap
<small>
1.4.0+coq-8.11
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-11-05 11:22:42 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-11-05 11:22:42 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
coq 8.12.0 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.06.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.06.1 Official 4.06.1 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Cyril Cohen <[email protected]>"
homepage: "https://github.com/math-comp/finmap"
bug-reports: "https://github.com/math-comp/finmap/issues"
dev-repo: "git+https://github.com/math-comp/finmap.git"
license: "CeCILL-B"
build: [ make "-j" "%{jobs}%" ]
install: [ make "install" ]
depends: [
"coq" { (>= "8.11" & < "8.12~") }
"coq-mathcomp-ssreflect" { (>= "1.8.0" & < "1.11~") }
"coq-mathcomp-bigenough" { (>= "1.0.0" & < "1.1~") }
]
tags: [ "keyword:finmap" "keyword:finset" "keyword:multiset" "keyword:order" "date:2019-11-27" "logpath:mathcomp.finmap"]
authors: [ "Cyril Cohen <[email protected]>" "Kazuhiko Sakaguchi <[email protected]>" ]
synopsis: "Finite sets, finite maps, finitely supported functions, orders"
description: """
This library is an extension of mathematical component in order to
support finite sets and finite maps on choicetypes (rather that finite
types). This includes support for functions with finite support and
multisets. The library also contains a generic order and set libary,
which will be used to subsume notations for finite sets, eventually."""
url {
src: "https://github.com/math-comp/finmap/archive/1.4.0+coq-8.11.tar.gz"
checksum: "sha256=c3cad8192f2b7f9e4800cd10cbf8ae89b79e028a751cafd04c746a88f33d122f"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-mathcomp-finmap.1.4.0+coq-8.11 coq.8.12.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.12.0).
The following dependencies couldn't be met:
- coq-mathcomp-finmap -> coq < 8.12~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-mathcomp-finmap.1.4.0+coq-8.11</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.06.1-2.0.5/released/8.12.0/mathcomp-finmap/1.4.0+coq-8.11.html | HTML | mit | 7,401 |
/**
* Pre Tests
* Check to make sure jQuery and Zest are loaded
*/
module("Setup");
test("jQuery is loaded", function() {
expect(3);
ok( jQuery,
"jQuery is defined." );
ok( $,
"$ is defined.");
equal( typeof jQuery, "function",
"jQuery is a function." );
});
test("Zest is loaded", function() {
expect(3);
ok( Zest,
"Zest is defined." );
ok( Z$,
"Z$ is defined." );
equal( typeof Zest, "function",
"Zest is a function." );
}); | ItsJonQ/zest | test/units/setup.js | JavaScript | mit | 518 |
package org.ebaloo.itkeeps.core.domain.vertex;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import org.ebaloo.itkeeps.api.enumeration.enAclAdmin;
import org.ebaloo.itkeeps.api.enumeration.enAclData;
import org.ebaloo.itkeeps.api.model.jAclGroup;
import org.ebaloo.itkeeps.api.model.jBaseLight;
import org.ebaloo.itkeeps.core.database.annotation.DatabaseVertrex;
import org.ebaloo.itkeeps.core.domain.edge.DirectionType;
import org.ebaloo.itkeeps.core.domain.edge.notraverse.eAclNoTraverse;
import com.tinkerpop.blueprints.impls.orient.OrientBaseGraph;
/**
*
*
*/
@DatabaseVertrex()
final class vAclGroup extends vBase {
vAclGroup() {
super();
}
/*
* CHILD
*/
vAclGroup(final jAclGroup j) {
super(j);
try {
this.update(j);
} catch (Exception e) {
this.delete();
throw e;
}
}
final jBaseLight getChild() {
vAclGroup child = this.getEdge(vAclGroup.class, DirectionType.CHILD, false, eAclNoTraverse.class);
return child == null ? null : getJBaseLight(child);
}
/*
* PARENTS
*/
final void setChild(final jBaseLight group) {
vAclGroup child = get(this.getGraph(), vAclGroup.class, group, false);
setEdges(this.getGraph(), vAclGroup.class, this, vAclGroup.class, child, DirectionType.CHILD, eAclNoTraverse.class, false);
}
final List<jBaseLight> getParents() {
return this.getEdges(
vAclGroup.class,
DirectionType.PARENT,
false,
eAclNoTraverse.class).stream().map(vBase::getJBaseLight).collect(Collectors.toList());
}
/*
* ACL ADMIN
*/
final void setParents(List<jBaseLight> list) {
if (list == null)
list = new ArrayList<>();
// Optimization
OrientBaseGraph graph = this.getGraph();
setEdges(
graph,
vAclGroup.class,
this,
vAclGroup.class,
list.stream().map(e -> get(graph, vAclGroup.class, e, false)).collect(Collectors.toList()),
DirectionType.PARENT,
eAclNoTraverse.class,
false);
}
final List<enAclAdmin> getAclAdmin() {
return this.getEdges(
vAclAdmin.class,
DirectionType.PARENT,
true,
eAclNoTraverse.class)
.stream().map(e -> enAclAdmin.valueOf(e.getName())).collect(Collectors.toList());
}
/*
* ACL DATA
*/
final void setAclAdmin(List<enAclAdmin> list) {
if(list == null)
list = new ArrayList<>();
// Optimization
OrientBaseGraph graph = this.getGraph();
setEdges(
graph,
vAclGroup.class,
this,
vAclAdmin.class,
list.stream().map(e -> vAclAdmin.get(graph, vAclAdmin.class, e.name())).collect(Collectors.toList()),
DirectionType.PARENT,
eAclNoTraverse.class,
false);
}
final List<enAclData> getAclData() {
return this.getEdges(
vAclData.class,
DirectionType.PARENT,
true,
eAclNoTraverse.class)
.stream().map(e -> enAclData.valueOf(e.getName())).collect(Collectors.toList());
}
// API
final void setAclData(List<enAclData> list) {
if(list == null)
list = new ArrayList<>();
// Optimization
OrientBaseGraph graph = this.getGraph();
setEdges(
graph,
vAclGroup.class,
this,
vAclData.class,
list.stream().map(e -> vAclData.get(graph, vAclData.class, e.name())).collect(Collectors.toList()),
DirectionType.PARENT,
eAclNoTraverse.class,
false);
}
final jAclGroup read() {
jAclGroup j = new jAclGroup();
this.readBase(j);
j.setAclAdmin(this.getAclAdmin());
j.setAclData(this.getAclData());
j.setChild(this.getChild());
j.setParents(this.getParents());
return j;
}
/*
public static final jAclGroup create(Rid requesteurRid, jAclGroup j) {
SecurityAcl sAcl = SecurityFactory.getSecurityAcl(requesteurRid, Rid.NULL);
if(!sAcl.isRoleRoot())
throw ExceptionPermission.NOT_ROOT;
vAclGroup aclGroup = new vAclGroup(j);
return vAclGroup.read(requesteurRid, aclGroup.getId());
}
*/
/*
public static final jAclGroup delete(Rid requesteurRid, Rid guid) {
SecurityAcl sAcl = SecurityFactory.getSecurityAcl(requesteurRid, Rid.NULL);
if(!sAcl.isRoleRoot())
throw ExceptionPermission.NOT_ROOT;
vAclGroup aclGroup = vAclGroup.get(null, vAclGroup.class, guid, false);
jAclGroup j = aclGroup.read();
aclGroup.delete();
return j;
}
*/
/*
public static final jAclGroup read(Rid requesteurRid, Rid guid) {
SecurityAcl sAcl = SecurityFactory.getSecurityAcl(requesteurRid, Rid.NULL);
if(!sAcl.isRoleRoot())
throw ExceptionPermission.NOT_ROOT;
vAclGroup aclGroup = vAclGroup.get(null, vAclGroup.class, guid, false);
return aclGroup.read();
}
*/
/*
public static final jAclGroup update(Rid requesteurRid, jAclGroup j) {
SecurityAcl sAcl = SecurityFactory.getSecurityAcl(requesteurRid, Rid.NULL);
if(!sAcl.isRoleRoot())
throw ExceptionPermission.NOT_ROOT;
vAclGroup aclGroup = vAclGroup.get(null, vAclGroup.class, j.getId(), false);
aclGroup.checkVersion(j);
aclGroup.update(j);
return vAclGroup.read(requesteurRid, j.getId());
}
*/
final void update(jAclGroup j) {
this.setAclAdmin(j.getAclAdmin());
this.setAclData(j.getAclData());
this.setParents(j.getParents());
this.setChild(j.getChild());
}
/*
public static final List<jAclGroup> readAll(Rid requesteurRid) {
SecurityAcl sAcl = SecurityFactory.getSecurityAcl(requesteurRid, Rid.NULL);
if(!sAcl.isRoleRoot())
throw ExceptionPermission.NOT_ROOT;
List<jAclGroup> list = vAclGroup.getAllBase(null, vAclGroup.class, false).stream().map(e -> e.read()).collect(Collectors.toList());
return list;
}
*/
}
| e-baloo/it-keeps | it-keeps-core/src/main/java/org/ebaloo/itkeeps/core/domain/vertex/vAclGroup.java | Java | mit | 6,089 |
import { expect } from 'chai';
import 'mocha';
import { Integer, TestContext } from '../../..';
import { makeInteger } from './make-integer';
describe('make-integer', () => {
it('should handle single digits', () => {
const ctx = new TestContext("test");
const delayedValue = makeInteger("5");
const value = delayedValue(ctx) as Integer;
expect(ctx.callCount).to.equal(0);
expect(value.value).to.equal(5);
expect(value.pretties).to.equal("5");
expect(value.dice()).to.equal(0);
expect(value.depth()).to.equal(1);
});
it('should handle multiple digits', () => {
const ctx = new TestContext("test");
const delayedValue = makeInteger("189465");
const value = delayedValue(ctx) as Integer;
expect(ctx.callCount).to.equal(0);
expect(value.value).to.equal(189465);;
expect(value.pretties).to.equal("189465");
expect(value.dice()).to.equal(0);
expect(value.depth()).to.equal(1);
});
it('should handle negative numbers', () => {
const ctx = new TestContext("test");
const delayedValue = makeInteger("-189465");
const value = delayedValue(ctx) as Integer;
expect(ctx.callCount).to.equal(0);
expect(value.value).to.equal(-189465);
expect(value.pretties).to.equal("-189465");
expect(value.dice()).to.equal(0);
expect(value.depth()).to.equal(1);
});
}); | lemtzas/rollem-discord | packages/language/src/rollem-language-2/evaluators/unary/make-integer.spec.ts | TypeScript | mit | 1,351 |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
/* Body style, for the entire document */
body {
background: #F3F3F4;
color: #1E1E1F;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
padding: 0;
margin: 0;
}
/* Header1 style, used for the main title */
h1 {
padding: 10px 0px 10px 10px;
font-size: 21pt;
background-color: #E2E2E2;
border-bottom: 1px #C1C1C2 solid;
color: #201F20;
margin: 0;
font-weight: normal;
}
/* Header2 style, used for "Overview" and other sections */
h2 {
font-size: 18pt;
font-weight: normal;
padding: 15px 0 5px 0;
margin: 0;
}
/* Header3 style, used for sub-sections, such as project name */
h3 {
font-weight: normal;
font-size: 15pt;
margin: 0;
padding: 15px 0 5px 0;
background-color: transparent;
}
h4 {
font-weight: normal;
font-size: 12pt;
margin: 0;
padding: 0 0 0 0;
background-color: transparent;
}
/* Color all hyperlinks one color */
a {
color: #1382CE;
}
/* Paragraph text (for longer informational messages) */
p {
font-size: 10pt;
}
/* Table styles */
table {
border-spacing: 0 0;
border-collapse: collapse;
font-size: 10pt;
}
table th {
background: #E7E7E8;
text-align: left;
text-decoration: none;
font-weight: normal;
padding: 3px 6px 3px 6px;
}
table td {
vertical-align: top;
padding: 3px 6px 5px 5px;
margin: 0px;
border: 1px solid #E7E7E8;
background: #F7F7F8;
}
.NoBreakingChanges {
color: darkgreen;
font-weight:bold;
}
.FewBreakingChanges {
color: orange;
font-weight:bold;
}
.ManyBreakingChanges {
color: red;
font-weight:bold;
}
.BreakDetails {
margin-left: 30px;
}
.CompatMessage {
font-style: italic;
font-size: 10pt;
}
.GoodMessage {
color: darkgreen;
}
/* Local link is a style for hyperlinks that link to file:/// content, there are lots so color them as 'normal' text until the user mouse overs */
.localLink {
color: #1E1E1F;
background: #EEEEED;
text-decoration: none;
}
.localLink:hover {
color: #1382CE;
background: #FFFF99;
text-decoration: none;
}
/* Center text, used in the over views cells that contain message level counts */
.textCentered {
text-align: center;
}
/* The message cells in message tables should take up all avaliable space */
.messageCell {
width: 100%;
}
/* Padding around the content after the h1 */
#content {
padding: 0px 12px 12px 12px;
}
/* The overview table expands to width, with a max width of 97% */
#overview table {
width: auto;
max-width: 75%;
}
/* The messages tables are always 97% width */
#messages table {
width: 97%;
}
/* All Icons */
.IconSuccessEncoded, .IconInfoEncoded, .IconWarningEncoded, .IconErrorEncoded {
min-width: 18px;
min-height: 18px;
background-repeat: no-repeat;
background-position: center;
}
/* Success icon encoded */
.IconSuccessEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
/* [---XsltValidateInternal-Base64EncodedImage:IconSuccess#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABPElEQVR4Xp1Tv0vDUBi8FqeA4NpBcBLcWnQSApncOnTo4FSnjP0DsnXpH5CxiwbHDg4Zuj4oOEXiJgiC4FDcCkLWmIMc1Pfw+eMgQ77v3Xf3Pe51YKGqqisAEwCR1TIAsiAIblSo6xrdHeJR85Xle3mdmCQKb0PsfqyxxzM8K15HZADl/H5+sHpZwYfxyRjTs+kWwKBx8yoHd2mRiuzF8mkJniWH/13u3Fjrs/EdhsdDFHGB/DLXEJBDLh1MWPAhPo1BLB4WX5yQywHR+m3tVe/t97D52CB/ziG0nIgD/qDuYg8WuCcVZ2YGwlJ3YDugkpR/VNcAEx6GEKhERSr71FuO4YCM4XBdwKvecjIlkSnsO0Hyp/GxSeJAdzBKzpOtnPwyyiPdAZhpZptT04tU+zk7s8czeges//s5C5+CwqrR4/gw+AAAAABJRU5ErkJggg==);
}
/* Information icon encoded */
.IconInfoEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
/* [---XsltValidateInternal-Base64EncodedImage:IconInformation#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABHElEQVR4Xs2TsUoDQRRF7wwoziokjZUKadInhdhukR9YP8DMX1hYW+QvdsXa/QHBbcXC7W0CamWTQnclFutceIQJwwaWNLlwm5k5d94M76mmaeCrrmsLYOocY12FcxZFUeozCqKqqgYA8uevv1H6VuPxcwlfk5N92KHBxfFeCSAxxswlYAW/Xr989x/mv9gkhtyMDhcAxgzRsp7flj8B/HF1RsMXq+NZMkopaHe7lbKxQUEIGbKsYNoGn969060hZBkQex/W8oRQwsQaW2o3Ago2SVcJUzAgY3N0lTCZZm+zPS8HB51gMmS1DEYyOz9acKO1D8JWTlafKIMxdhvlfdyT94Vv5h7P8Ky7nQzACmhvKq3zk3PjW9asz9D/1oigecsioooAAAAASUVORK5CYII=);
}
/* Warning icon encoded */
.IconWarningEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
/* [---XsltValidateInternal-Base64EncodedImage:IconWarning#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAx0lEQVR4XpWSMQ7CMAxFf4xAyBMLCxMrO8dhaBcuwdCJS3RJBw7SA/QGTCxdWJgiQYWKXJWKIXHIlyw5lqr34tQgEOdcBsCOx5yZK3hCCKdYXneQkh4pEfqzLfu+wVDSyyzFoJjfz9NB+pAF+eizx2Vruts0k15mPgvS6GYvpVtQhB61IB/dk6AF6fS4Ben0uIX5odtFe8Q/eW1KvFeH4e8khT6+gm5B+t3juyDt7n0jpe+CANTd+oTUjN/U3yVaABnSUjFz/gFq44JaVSCXeQAAAABJRU5ErkJggg==);
}
/* Error icon encoded */
.IconErrorEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
/* [---XsltValidateInternal-Base64EncodedImage:IconError#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABQElEQVR4XqWTvUoEQRCE6wYPZUA80AfwAQz23uCMjA7MDRQEIzPBVEyNTQUFIw00vcQTTMzuAh/AxEQQT8HF/3G/oGGnEUGuoNnd6qoZuqltyKEsyzVJq5I6rnUp6SjGeGhESikzzlc1eL7opfuVbrqbU1Zw9NCgtQMaZpY0eNnaaL2fHusvTK5vKu7sjSS1Y4y3QUA6K3e3Mau5UFDyMP7tYF9o8cAHZv68vipoIJg971PZIZ5HiwdvYGGvFVFHmGmZ2MxwmQYPXubPl9Up0tfoMQGetXd6mRbvhBw+boZ6WF7Mbv1+GsHRk0fQmPAH1GfmZirbCfDJ61tw3Px8/8pZsPAG4jlVhcPgZ7adwNWBB68lkRQWFiTgFlbnLY3DGGM7izIJIyT/jjIvEJw6fdJTc6krDzh6aMwMP9bvDH4ADSsa9uSWVJkAAAAASUVORK5CYII=);
}
</style>
</head>
<body>
<h1 _locid="PortabilityReport">.NET Portability Report</h1>
<div id="content">
<div id="submissionId" style="font-size:8pt;">
<p>
<i>
Submission Id
232883ef-6c2d-44e4-bd95-6797acaec299
</i>
</p>
</div>
<h2 _locid="SummaryTitle">
<a name="Portability Summary"></a>Portability Summary
</h2>
<div id="summary">
<table>
<tbody>
<tr>
<th>Assembly</th>
<th>ASP.NET 5,Version=v1.0</th>
<th>Windows,Version=v8.1</th>
<th>.NET Framework,Version=v4.6</th>
<th>Windows Phone,Version=v8.1</th>
</tr>
<tr>
<td><strong><a href="#ElmahR.Api.Messages">ElmahR.Api.Messages</a></strong></td>
<td class="text-center">100.00 %</td>
<td class="text-center">100.00 %</td>
<td class="text-center">100.00 %</td>
<td class="text-center">100.00 %</td>
</tr>
</tbody>
</table>
</div>
<div id="details">
</div>
</div>
</body>
</html> | kuhlenh/port-to-core | Reports/el/elmahr.api.client.1.0.0/ElmahR.Api.Messages-net45.html | HTML | mit | 9,653 |
<html><body>
<h4>Windows 10 x64 (18363.476)</h4><br>
<h2>_PO_POWER_PLANE_PROFILE</h2>
<font face="arial"> +0x000 ExclusivePowerMw : Uint4B<br>
+0x004 PeakPowerMw : Uint4B<br>
</font></body></html> | epikcraw/ggool | public/Windows 10 x64 (18363.476)/_PO_POWER_PLANE_PROFILE.html | HTML | mit | 211 |
<?php
/**
* This file is part of GSSimpleOcr.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @copyright Copyright (c) 2014 Gordon Schmidt
* @license MIT
*/
namespace GSSimpleOcr\Service;
use GSImage\Entity\Image;
use GSOcr\Service\OcrServiceInterface;
use GSSimpleOcr\Exception;
use GSSimpleOcr\Entity\Font;
use GSSimpleOcr\Entity\BWImage;
/**
* This class provides a simple OCR service.
*
* @author Gordon Schmidt <[email protected]>
*/
class SimpleOcrService implements OcrServiceInterface
{
const MODE_GLYPHS = 0;
const MODE_LINES = 1;
const MODE_WORDS = 2;
const MODE_ALL = 3;
const MODE_TEXT = 4;
/**
* Maximum variation in the y for 2 glyphs to be on the same line
* @var int
*/
protected $maxYVariation = 1;
/**
* Maximum variation in the x for 2 glyphs to be in the same word
* @var int
*/
protected $maxXVariation = 2;
/**
* Seperator for 2 glyphs
* @var string
*/
protected $glyphSeperator = '';
/**
* Seperator for 2 words
* @var string
*/
protected $wordSeperator = ' ';
/**
* Seperator for 2 lines
* @var string
*/
protected $lineSeperator = PHP_EOL;
/**
* List of fonts
* @var array
*/
protected $fonts = array();
/**
* Set config to ocr service
*
* @param array $config
*/
public function setConfig($config)
{
if (isset($config['fonts'])) {
$this->setFonts($config['fonts']);
}
if (isset($config['maxYVariation'])) {
$this->maxYVariation = $config['maxYVariation'];
}
if (isset($config['maxXVariation'])) {
$this->maxXVariation = $config['maxXVariation'];
}
}
/**
* Recognize image
*
* @param string $image
* @param array $options
* @return string
*/
public function recognize($image, $options)
{
if (isset($options['threshold'])) {
$threshold = $options['threshold'];
} else {
$threshold = 127;
}
if (isset($options['mode'])) {
$mode = $options['mode'];
} else {
$mode = self::MODE_TEXT;
}
$image = new Image($image);
$bwImage = new BWImage($image, $threshold);
if (isset($options['rotate']) && in_array($options['rotate'], array(-90, 90, 180, 270))) {
$bwImage->rotate($options['rotate']);
}
return $this->workflow($bwImage, $mode, array(
'recognizeGlyphs',
'recognizeLines',
'recognizeWords',
'generateTexts',
));
}
/**
* Perform workflow of given steps
*
* @param mixed $input
* @param int $mode
* @param array $steps
* @return mixed
*/
protected function workflow($input, $mode, $steps)
{
if (empty($steps)) {
//output only text
return $input['text'];
}
//array_assoc_shift
list($stepMode) = array_keys($steps);
$stepMethod = $steps[$stepMode];
unset($steps[$stepMode]);
//execute workflow step
$input = $this->$stepMethod($input);
//stop if mode is reached
if ($mode == $stepMode) {
return $input;
}
//recursive call
return $this->workflow($input, $mode, $steps);
}
/**
* Recognize glyphs of known fonts in black and white image
*
* @param GSSimpleOcr\Entity\BWImage $image
* @param int GSSimpleOcr\Entity\BWImage $image
* @return array
*/
protected function recognizeGlyphs(BWImage $image)
{
$chars = array();
foreach ($this->fonts as $font) {
$glyphs = $font->getGlyphs();
foreach ($glyphs as $c => $glyph) {
$results = $image->findSubImage($glyph);
if (is_array($results)) {
$w = $glyph->getWidth();
$h = $glyph->getHeight();
foreach ($results as $result) {
$chars[] = array('text' => $c, 'x' => $result['x'], 'y' => $result['y'], 'w' => $w, 'h' => $h);
}
}
}
}
return array('glyphs' => $chars);
}
/**
* Recognize lines in data array
*
* @param array $data
*/
protected function recognizeLines($data)
{
$glyphs = $data['glyphs'];
$this->sortByKey('y', $glyphs);
$last = array(array_shift($glyphs));
$lines = array();
foreach ($glyphs as $glyph) {
if ($this->maxYVariation >= abs($last[0]['y'] - $glyph['y'])) {
$last[] = $glyph;
} else {
$lines[] = array('glyphs' => $last);
$last = array($glyph);
}
}
if (!empty($last)) {
$lines[] = array('glyphs' => $last);
}
return array('lines' => $lines);
}
/**
* Recognize words in char array
*
* @param array $data
*/
protected function recognizeWords($data)
{
foreach ($data['lines'] as &$line) {
$glyphs = $line['glyphs'];
$this->sortByKey('x', $glyphs);
$latest = array_shift($glyphs);
$last = array($latest);
$words = array();
foreach ($glyphs as $glyph) {
if (($this->maxXVariation + $latest['w']) > abs($glyph['x'] - $latest['x'])) {
$latest = $glyph;
$last[] = $latest;
} else {
$latest = $glyph;
$words[] = array('glyphs' => $last);
$last = array($latest);
}
}
if (!empty($last)) {
$words[] = array('glyphs' => $last);
}
$line = array('words' => $words);
}
return $data;
}
/**
* Generate texts from data array
*
* @param array $data
*/
protected function generateTexts($data)
{
foreach ($data['lines'] as &$line) {
foreach ($line['words'] as &$word) {
$word['text'] = $this->implodeByKey($this->glyphSeperator, 'text', $word['glyphs']);
}
$line['text'] = $this->implodeByKey($this->wordSeperator, 'text', $line['words']);
}
$data['text'] = $this->implodeByKey($this->lineSeperator, 'text', $data['lines']);
return $data;
}
/**
* Set Fonts to simple ocr service
*
* @param array $fonts
* @return self
*/
protected function setFonts($fonts)
{
$this->fonts = array();
foreach ($fonts as $font) {
if ($font instanceof Font) {
$this->fonts[] = $font;
} else {
$this->fonts[] = new Font($font);
}
}
return $this;
}
/**
* Order data by given key
*
* @param string $key
* @param array &$data
* @return array
*/
protected function sortByKey($key, &$data)
{
return usort($data, $this->generateSorter($key));
}
/**
* Generate a sort function for given key
*
* @param string $key
* @return function
*/
protected function generateSorter($key)
{
return function ($a, $b) use ($key) {
if ($a[$key] == $b[$key]) {
return 0;
}
return ($a[$key] < $b[$key]) ? -1 : 1;
};
}
/**
* Implode data by given key
*
* @param string $seperator
* @param string $key
* @param array $data
* @return function
*/
protected function implodeByKey($seperator, $key, $data)
{
$values = array();
foreach ($data as $value) {
$values[] = $value[$key];
}
return implode($seperator, $values);
}
}
| GordonSchmidt/GSSimpleOcr | src/GSSimpleOcr/Service/SimpleOcrService.php | PHP | mit | 8,111 |
package com.vexus2.jenkins.chatwork.jenkinschatworkplugin.api;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown=true)
public class Room {
@JsonProperty("room_id")
public String roomId;
@JsonProperty("name")
public String name;
@JsonProperty("type")
public String type;
@Override
public int hashCode(){
return new HashCodeBuilder()
.append(name)
.append(roomId)
.append(type)
.toHashCode();
}
@Override
public boolean equals(final Object obj){
if(obj instanceof Room){
final Room other = (Room) obj;
return new EqualsBuilder()
.append(name, other.name)
.append(roomId, other.roomId)
.append(type, other.type)
.isEquals();
} else{
return false;
}
}
}
| jenkinsci/chatwork-plugin | src/main/java/com/vexus2/jenkins/chatwork/jenkinschatworkplugin/api/Room.java | Java | mit | 992 |
<!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en" dir="ltr">
<!--<![endif]-->
<!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open&id=3 (optional: ?Open&page=filename.html&id=x) -->
<!-- Created: ; Product Code: 536; Server: stratnotes2.ic.gc.ca -->
<head>
<!-- Title begins / Début du titre -->
<title>
Le Groupe Créa Inc. -
Complete profile - Canadian Company Capabilities - Industries and Business - Industry Canada
</title>
<!-- Title ends / Fin du titre -->
<!-- Meta-data begins / Début des métadonnées -->
<meta charset="utf-8" />
<meta name="dcterms.language" title="ISO639-2" content="eng" />
<meta name="dcterms.title" content="" />
<meta name="description" content="" />
<meta name="dcterms.description" content="" />
<meta name="dcterms.type" content="report, data set" />
<meta name="dcterms.subject" content="businesses, industry" />
<meta name="dcterms.subject" content="businesses, industry" />
<meta name="dcterms.issued" title="W3CDTF" content="" />
<meta name="dcterms.modified" title="W3CDTF" content="" />
<meta name="keywords" content="" />
<meta name="dcterms.creator" content="" />
<meta name="author" content="" />
<meta name="dcterms.created" title="W3CDTF" content="" />
<meta name="dcterms.publisher" content="" />
<meta name="dcterms.audience" title="icaudience" content="" />
<meta name="dcterms.spatial" title="ISO3166-1" content="" />
<meta name="dcterms.spatial" title="gcgeonames" content="" />
<meta name="dcterms.format" content="HTML" />
<meta name="dcterms.identifier" title="ICsiteProduct" content="536" />
<!-- EPI-11240 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- MCG-202 -->
<meta content="width=device-width,initial-scale=1" name="viewport">
<!-- EPI-11567 -->
<meta name = "format-detection" content = "telephone=no">
<!-- EPI-12603 -->
<meta name="robots" content="noarchive">
<!-- EPI-11190 - Webtrends -->
<script>
var startTime = new Date();
startTime = startTime.getTime();
</script>
<!--[if gte IE 9 | !IE ]><!-->
<link href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/favicon.ico" rel="icon" type="image/x-icon">
<link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/wet-boew.min.css">
<!--<![endif]-->
<link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/theme.min.css">
<!--[if lt IE 9]>
<link href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/favicon.ico" rel="shortcut icon" />
<link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/ie8-wet-boew.min.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/ie8-wet-boew.min.js"></script>
<![endif]-->
<!--[if lte IE 9]>
<![endif]-->
<noscript><link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/noscript.min.css" /></noscript>
<!-- Google Tag Manager DO NOT REMOVE OR MODIFY - NE PAS SUPPRIMER OU MODIFIER -->
<script>dataLayer1 = [];</script>
<!-- End Google Tag Manager -->
<!-- EPI-11235 -->
<link rel="stylesheet" href="/eic/home.nsf/css/add_WET_4-0_Canada_Apps.css">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<link href="/app/ccc/srch/css/print.css" media="print" rel="stylesheet" type="text/css" />
</head>
<body class="home" vocab="http://schema.org/" typeof="WebPage">
<!-- EPIC HEADER BEGIN -->
<!-- Google Tag Manager DO NOT REMOVE OR MODIFY - NE PAS SUPPRIMER OU MODIFIER -->
<noscript><iframe title="Google Tag Manager" src="//www.googletagmanager.com/ns.html?id=GTM-TLGQ9K" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer1'?'&l='+l:'';j.async=true;j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer1','GTM-TLGQ9K');</script>
<!-- End Google Tag Manager -->
<!-- EPI-12801 -->
<span typeof="Organization"><meta property="legalName" content="Department_of_Industry"></span>
<ul id="wb-tphp">
<li class="wb-slc">
<a class="wb-sl" href="#wb-cont">Skip to main content</a>
</li>
<li class="wb-slc visible-sm visible-md visible-lg">
<a class="wb-sl" href="#wb-info">Skip to "About this site"</a>
</li>
</ul>
<header role="banner">
<div id="wb-bnr" class="container">
<section id="wb-lng" class="visible-md visible-lg text-right">
<h2 class="wb-inv">Language selection</h2>
<div class="row">
<div class="col-md-12">
<ul class="list-inline mrgn-bttm-0">
<li><a href="nvgt.do?V_TOKEN=1492298355321&V_SEARCH.docsCount=3&V_DOCUMENT.docRank=26721&V_SEARCH.docsStart=26720&V_SEARCH.command=navigate&V_SEARCH.resultsJSP=/prfl.do&lang=fra&redirectUrl=/app/scr/imbs/ccc/rgstrtn//components/com_media/index.php?_flId?_flxKy=e1s1&estblmntNo=234567041301&profileId=61&_evId=bck&lang=eng&V_SEARCH.showStricts=false&prtl=1&_flId?_flId?_flxKy=e1s1" title="Français" lang="fr">Français</a></li>
</ul>
</div>
</div>
</section>
<div class="row">
<div class="brand col-xs-8 col-sm-9 col-md-6">
<a href="http://www.canada.ca/en/index.html"><object type="image/svg+xml" tabindex="-1" data="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/sig-blk-en.svg"></object><span class="wb-inv"> Government of Canada</span></a>
</div>
<section class="wb-mb-links col-xs-4 col-sm-3 visible-sm visible-xs" id="wb-glb-mn">
<h2>Search and menus</h2>
<ul class="list-inline text-right chvrn">
<li><a href="#mb-pnl" title="Search and menus" aria-controls="mb-pnl" class="overlay-lnk" role="button"><span class="glyphicon glyphicon-search"><span class="glyphicon glyphicon-th-list"><span class="wb-inv">Search and menus</span></span></span></a></li>
</ul>
<div id="mb-pnl"></div>
</section>
<!-- Site Search Removed -->
</div>
</div>
<nav role="navigation" id="wb-sm" class="wb-menu visible-md visible-lg" data-trgt="mb-pnl" data-ajax-fetch="//cdn.canada.ca/gcweb-cdn-dev/sitemenu/sitemenu-en.html" typeof="SiteNavigationElement">
<h2 class="wb-inv">Topics menu</h2>
<div class="container nvbar">
<div class="row">
<ul class="list-inline menu">
<li><a href="https://www.canada.ca/en/services/jobs.html">Jobs</a></li>
<li><a href="http://www.cic.gc.ca/english/index.asp">Immigration</a></li>
<li><a href="https://travel.gc.ca/">Travel</a></li>
<li><a href="https://www.canada.ca/en/services/business.html">Business</a></li>
<li><a href="https://www.canada.ca/en/services/benefits.html">Benefits</a></li>
<li><a href="http://healthycanadians.gc.ca/index-eng.php">Health</a></li>
<li><a href="https://www.canada.ca/en/services/taxes.html">Taxes</a></li>
<li><a href="https://www.canada.ca/en/services.html">More services</a></li>
</ul>
</div>
</div>
</nav>
<!-- EPIC BODY BEGIN -->
<nav role="navigation" id="wb-bc" class="" property="breadcrumb">
<h2 class="wb-inv">You are here:</h2>
<div class="container">
<div class="row">
<ol class="breadcrumb">
<li><a href="/eic/site/icgc.nsf/eng/home" title="Home">Home</a></li>
<li><a href="/eic/site/icgc.nsf/eng/h_07063.html" title="Industries and Business">Industries and Business</a></li>
<li><a href="/eic/site/ccc-rec.nsf/tpl-eng/../eng/home" >Canadian Company Capabilities</a></li>
</ol>
</div>
</div>
</nav>
</header>
<main id="wb-cont" role="main" property="mainContentOfPage" class="container">
<!-- End Header -->
<!-- Begin Body -->
<!-- Begin Body Title -->
<!-- End Body Title -->
<!-- Begin Body Head -->
<!-- End Body Head -->
<!-- Begin Body Content -->
<br>
<!-- Complete Profile -->
<!-- Company Information above tabbed area-->
<input id="showMore" type="hidden" value='more'/>
<input id="showLess" type="hidden" value='less'/>
<h1 id="wb-cont">
Company profile - Canadian Company Capabilities
</h1>
<div class="profileInfo hidden-print">
<ul class="list-inline">
<li><a href="cccSrch.do?lang=eng&profileId=&prtl=1&key.hitsPerPage=25&searchPage=%252Fapp%252Fccc%252Fsrch%252FcccBscSrch.do%253Flang%253Deng%2526amp%253Bprtl%253D1%2526amp%253Btagid%253D&V_SEARCH.scopeCategory=CCC.Root&V_SEARCH.depth=1&V_SEARCH.showStricts=false&V_SEARCH.sortSpec=title+asc&rstBtn.x=" class="btn btn-link">New Search</a> |</li>
<li><form name="searchForm" method="post" action="/app/ccc/srch/bscSrch.do">
<input type="hidden" name="lang" value="eng" />
<input type="hidden" name="profileId" value="" />
<input type="hidden" name="prtl" value="1" />
<input type="hidden" name="searchPage" value="%2Fapp%2Fccc%2Fsrch%2FcccBscSrch.do%3Flang%3Deng%26amp%3Bprtl%3D1%26amp%3Btagid%3D" />
<input type="hidden" name="V_SEARCH.scopeCategory" value="CCC.Root" />
<input type="hidden" name="V_SEARCH.depth" value="1" />
<input type="hidden" name="V_SEARCH.showStricts" value="false" />
<input id="repeatSearchBtn" class="btn btn-link" type="submit" value="Return to search results" />
</form></li>
<li>| <a href="nvgt.do?V_SEARCH.docsStart=26719&V_DOCUMENT.docRank=26720&V_SEARCH.docsCount=3&lang=eng&prtl=1&sbPrtl=&profile=cmpltPrfl&V_TOKEN=1492298382899&V_SEARCH.command=navigate&V_SEARCH.resultsJSP=%2fprfl.do&estblmntNo=234567138776&profileId=&key.newSearchLabel=">Previous Company</a></li>
<li>| <a href="nvgt.do?V_SEARCH.docsStart=26721&V_DOCUMENT.docRank=26722&V_SEARCH.docsCount=3&lang=eng&prtl=1&sbPrtl=&profile=cmpltPrfl&V_TOKEN=1492298382899&V_SEARCH.command=navigate&V_SEARCH.resultsJSP=%2fprfl.do&estblmntNo=234567049262&profileId=&key.newSearchLabel=">Next Company</a></li>
</ul>
</div>
<details>
<summary>Third-Party Information Liability Disclaimer</summary>
<p>Some of the information on this Web page has been provided by external sources. The Government of Canada is not responsible for the accuracy, reliability or currency of the information supplied by external sources. Users wishing to rely upon this information should consult directly with the source of the information. Content provided by external sources is not subject to official languages, privacy and accessibility requirements.</p>
</details>
<h2>
Le Groupe Créa Inc.
</h2>
<div class="row">
<div class="col-md-5">
<h2 class="h5 mrgn-bttm-0">Legal/Operating Name:</h2>
<p>Le Groupe Créa Inc.</p>
<div class="mrgn-tp-md"></div>
<p class="mrgn-bttm-0" ><a href="http://www.groupecrea.com"
target="_blank" title="Website URL">http://www.groupecrea.com</a></p>
<p><a href="mailto:[email protected]" title="[email protected]">[email protected]</a></p>
</div>
<div class="col-md-4 mrgn-sm-sm">
<h2 class="h5 mrgn-bttm-0">Mailing Address:</h2>
<address class="mrgn-bttm-md">
9 Ch. Du Lac-Bowker<br/>
ORFORD,
Quebec<br/>
J1X 6R6
<br/>
</address>
<h2 class="h5 mrgn-bttm-0">Location Address:</h2>
<address class="mrgn-bttm-md">
9 Ch. Du Lac-Bowker<br/>
ORFORD,
Quebec<br/>
J1X 6R6
<br/>
</address>
<p class="mrgn-bttm-0"><abbr title="Telephone">Tel.</abbr>:
(819) 679-6970
</p>
<p class="mrgn-bttm-lg"><abbr title="Facsimile">Fax</abbr>:
(450) 250-1501</p>
</div>
<div class="col-md-3 mrgn-tp-md">
</div>
</div>
<div class="row mrgn-tp-md mrgn-bttm-md">
<div class="col-md-12">
<h2 class="wb-inv">Company Profile</h2>
<br> The CREA GROUP is a multidisciplinary consulting firm offering a complete array of integrated consulting services to assist customers in the achievement of technologically innovative projects and companies within the industries of life sciences, biotechnology, agri-food and environment.<br>
</div>
</div>
<!-- <div class="wb-tabs ignore-session update-hash wb-eqht-off print-active"> -->
<div class="wb-tabs ignore-session">
<div class="tabpanels">
<details id="details-panel1">
<summary>
Full profile
</summary>
<!-- Tab 1 -->
<h2 class="wb-invisible">
Full profile
</h2>
<!-- Contact Information -->
<h3 class="page-header">
Contact information
</h3>
<section class="container-fluid">
<div class="row mrgn-tp-lg">
<div class="col-md-3">
<strong>
Charles
Farrar
</strong></div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Title:
</strong>
</div>
<div class="col-md-7">
<!--if client gender is not null or empty we use gender based job title-->
Chief Executive Officer
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Telephone:
</strong>
</div>
<div class="col-md-7">
(819) 679-6970
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Email:
</strong>
</div>
<div class="col-md-7">
[email protected]
</div>
</div>
</section>
<p class="mrgn-tp-lg text-right small hidden-print">
<a href="#wb-cont">top of page</a>
</p>
<!-- Company Description -->
<h3 class="page-header">
Company description
</h3>
<section class="container-fluid">
<div class="row">
<div class="col-md-5">
<strong>
Country of Ownership:
</strong>
</div>
<div class="col-md-7">
Canada
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Exporting:
</strong>
</div>
<div class="col-md-7">
Yes
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Primary Industry (NAICS):
</strong>
</div>
<div class="col-md-7">
541990 - All Other Professional, Scientific and Technical Services
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Alternate Industries (NAICS):
</strong>
</div>
<div class="col-md-7">
541619 - Other Management Consulting Services<br>
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Primary Business Activity:
</strong>
</div>
<div class="col-md-7">
Services
</div>
</div>
</section>
<!-- Products / Services / Licensing -->
<h3 class="page-header">
Product / Service / Licensing
</h3>
<section class="container-fluid">
<div class="row mrgn-bttm-md">
<div class="col-md-3">
<strong>
Service Name:
</strong>
</div>
<div class="col-md-9">
Consulting services in health sciences<br>
</div>
</div>
<div class="row mrgn-bttm-md">
<div class="col-md-12">
CREA GROUP life science professionals provide business advice to biotechnology, medical device and medical companies and has a long history working with emerging Canadian companies and the investors who fund them.<br>
<br>
</div>
</div>
</section>
<p class="mrgn-tp-lg text-right small hidden-print">
<a href="#wb-cont">top of page</a>
</p>
<!-- Technology Profile -->
<!-- Market Profile -->
<!-- Sector Information -->
<details class="mrgn-tp-md mrgn-bttm-md">
<summary>
Third-Party Information Liability Disclaimer
</summary>
<p>
Some of the information on this Web page has been provided by external sources. The Government of Canada is not responsible for the accuracy, reliability or currency of the information supplied by external sources. Users wishing to rely upon this information should consult directly with the source of the information. Content provided by external sources is not subject to official languages, privacy and accessibility requirements.
</p>
</details>
</details>
<details id="details-panel2">
<summary>
Contacts
</summary>
<h2 class="wb-invisible">
Contact information
</h2>
<!-- Contact Information -->
<section class="container-fluid">
<div class="row mrgn-tp-lg">
<div class="col-md-3">
<strong>
Charles
Farrar
</strong></div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Title:
</strong>
</div>
<div class="col-md-7">
<!--if client gender is not null or empty we use gender based job title-->
Chief Executive Officer
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Telephone:
</strong>
</div>
<div class="col-md-7">
(819) 679-6970
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Email:
</strong>
</div>
<div class="col-md-7">
[email protected]
</div>
</div>
</section>
</details>
<details id="details-panel3">
<summary>
Description
</summary>
<h2 class="wb-invisible">
Company description
</h2>
<section class="container-fluid">
<div class="row">
<div class="col-md-5">
<strong>
Country of Ownership:
</strong>
</div>
<div class="col-md-7">
Canada
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Exporting:
</strong>
</div>
<div class="col-md-7">
Yes
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Primary Industry (NAICS):
</strong>
</div>
<div class="col-md-7">
541990 - All Other Professional, Scientific and Technical Services
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Alternate Industries (NAICS):
</strong>
</div>
<div class="col-md-7">
541619 - Other Management Consulting Services<br>
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Primary Business Activity:
</strong>
</div>
<div class="col-md-7">
Services
</div>
</div>
</section>
</details>
<details id="details-panel4">
<summary>
Products, services and licensing
</summary>
<h2 class="wb-invisible">
Product / Service / Licensing
</h2>
<section class="container-fluid">
<div class="row mrgn-bttm-md">
<div class="col-md-3">
<strong>
Service Name:
</strong>
</div>
<div class="col-md-9">
Consulting services in health sciences<br>
</div>
</div>
<div class="row mrgn-bttm-md">
<div class="col-md-12">
CREA GROUP life science professionals provide business advice to biotechnology, medical device and medical companies and has a long history working with emerging Canadian companies and the investors who fund them.<br>
<br>
</div>
</div>
</section>
</details>
</div>
</div>
<div class="row">
<div class="col-md-12 text-right">
Last Update Date 2015-07-14
</div>
</div>
<!--
- Artifact ID: CBW - IMBS - CCC Search WAR
- Group ID: ca.gc.ic.strategis.imbs.ccc.search
- Version: 3.26
- Built-By: bamboo
- Build Timestamp: 2017-03-02T21:29:28Z
-->
<!-- End Body Content -->
<!-- Begin Body Foot -->
<!-- End Body Foot -->
<!-- END MAIN TABLE -->
<!-- End body -->
<!-- Begin footer -->
<div class="row pagedetails">
<div class="col-sm-5 col-xs-12 datemod">
<dl id="wb-dtmd">
<dt class=" hidden-print">Date Modified:</dt>
<dd class=" hidden-print">
<span><time>2017-03-02</time></span>
</dd>
</dl>
</div>
<div class="clear visible-xs"></div>
<div class="col-sm-4 col-xs-6">
</div>
<div class="col-sm-3 col-xs-6 text-right">
</div>
<div class="clear visible-xs"></div>
</div>
</main>
<footer role="contentinfo" id="wb-info">
<nav role="navigation" class="container wb-navcurr">
<h2 class="wb-inv">About government</h2>
<!-- EPIC FOOTER BEGIN -->
<!-- EPI-11638 Contact us -->
<ul class="list-unstyled colcount-sm-2 colcount-md-3">
<li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07026.html#pageid=E048-H00000&from=Industries">Contact us</a></li>
<li><a href="https://www.canada.ca/en/government/dept.html">Departments and agencies</a></li>
<li><a href="https://www.canada.ca/en/government/publicservice.html">Public service and military</a></li>
<li><a href="https://www.canada.ca/en/news.html">News</a></li>
<li><a href="https://www.canada.ca/en/government/system/laws.html">Treaties, laws and regulations</a></li>
<li><a href="https://www.canada.ca/en/transparency/reporting.html">Government-wide reporting</a></li>
<li><a href="http://pm.gc.ca/eng">Prime Minister</a></li>
<li><a href="https://www.canada.ca/en/government/system.html">How government works</a></li>
<li><a href="http://open.canada.ca/en/">Open government</a></li>
</ul>
</nav>
<div class="brand">
<div class="container">
<div class="row">
<nav class="col-md-10 ftr-urlt-lnk">
<h2 class="wb-inv">About this site</h2>
<ul>
<li><a href="https://www.canada.ca/en/social.html">Social media</a></li>
<li><a href="https://www.canada.ca/en/mobile.html">Mobile applications</a></li>
<li><a href="http://www1.canada.ca/en/newsite.html">About Canada.ca</a></li>
<li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07033.html">Terms and conditions</a></li>
<li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07033.html#p1">Privacy</a></li>
</ul>
</nav>
<div class="col-xs-6 visible-sm visible-xs tofpg">
<a href="#wb-cont">Top of Page <span class="glyphicon glyphicon-chevron-up"></span></a>
</div>
<div class="col-xs-6 col-md-2 text-right">
<object type="image/svg+xml" tabindex="-1" role="img" data="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/wmms-blk.svg" aria-label="Symbol of the Government of Canada"></object>
</div>
</div>
</div>
</div>
</footer>
<!--[if gte IE 9 | !IE ]><!-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/wet-boew.min.js"></script>
<!--<![endif]-->
<!--[if lt IE 9]>
<script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/ie8-wet-boew2.min.js"></script>
<![endif]-->
<script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/theme.min.js"></script>
<!-- EPI-10519 -->
<span class="wb-sessto"
data-wb-sessto='{"inactivity": 1800000, "reactionTime": 180000, "sessionalive": 1800000, "logouturl": "/app/ccc/srch/cccSrch.do?lang=eng&prtl=1"}'></span>
<script src="/eic/home.nsf/js/jQuery.externalOpensInNewWindow.js"></script>
<!-- EPI-11190 - Webtrends -->
<script src="/eic/home.nsf/js/webtrends.js"></script>
<script>var endTime = new Date();</script>
<noscript>
<div><img alt="" id="DCSIMG" width="1" height="1" src="//wt-sdc.ic.gc.ca/dcs6v67hwe0ei7wsv8g9fv50d_3k6i/njs.gif?dcsuri=/nojavascript&WT.js=No&WT.tv=9.4.0&dcssip=www.ic.gc.ca"/></div>
</noscript>
<!-- /Webtrends -->
<!-- JS deps -->
<script src="/eic/home.nsf/js/jquery.imagesloaded.js"></script>
<!-- EPI-11262 - Util JS -->
<script src="/eic/home.nsf/js/_WET_4-0_utils_canada.min.js"></script>
<!-- EPI-11383 -->
<script src="/eic/home.nsf/js/jQuery.icValidationErrors.js"></script>
<span style="display:none;" id='app-info' data-project-groupid='' data-project-artifactid='' data-project-version='' data-project-build-timestamp='' data-issue-tracking='' data-scm-sha1='' data-scm-sha1-abbrev='' data-scm-branch='' data-scm-commit-date=''></span>
</body></html>
<!-- End Footer -->
<!--
- Artifact ID: CBW - IMBS - CCC Search WAR
- Group ID: ca.gc.ic.strategis.imbs.ccc.search
- Version: 3.26
- Built-By: bamboo
- Build Timestamp: 2017-03-02T21:29:28Z
-->
| GoC-Spending/data-corporations | html/234567106902.html | HTML | mit | 34,315 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-multinomials: 1 m 9 s</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.9.0 / mathcomp-multinomials - 1.3</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
mathcomp-multinomials
<small>
1.3
<span class="label label-success">1 m 9 s</span>
</small>
</h1>
<p><em><script>document.write(moment("2020-08-18 22:12:38 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-08-18 22:12:38 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.12 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-m4 1 Virtual package relying on m4
coq 8.9.0 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.8.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/math-comp/multinomials-ssr"
bug-reports: "https://github.com/math-comp/multinomials-ssr/issues"
dev-repo: "git+https://github.com/math-comp/multinomials.git"
license: "CeCILL-B"
authors: ["Pierre-Yves Strub"]
build: [
[make "INSTMODE=global" "config"]
[make "-j%{jobs}%"]
]
install: [
[make "install"]
]
depends: [
"coq" {>= "8.7" & < "8.12~"}
"coq-mathcomp-algebra" {>= "1.8.0" & < "1.10~"}
"coq-mathcomp-bigenough" {>= "1.0.0" & < "1.1~"}
"coq-mathcomp-finmap" {>= "1.2.1" & < "1.3~"}
]
tags: [
"keyword:multinomials"
"keyword:monoid algebra"
"category:Mathematics/Algebra"
"date:2019-06-04"
"logpath:SsrMultinomials"
]
synopsis: "A multivariate polynomial library for the Mathematical Components Library"
url {
src: "https://github.com/math-comp/multinomials/archive/1.3.tar.gz"
checksum: "sha256=dd07b00ca5ed8b46d3a635d4ca1261948020f615bddfc4d9ac7bdc2842e83604"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-mathcomp-multinomials.1.3 coq.8.9.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam list; echo; ulimit -Sv 4000000; timeout 2h opam install -y --deps-only coq-mathcomp-multinomials.1.3 coq.8.9.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>9 m 25 s</dd>
</dl>
<h2>Install</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam list; echo; ulimit -Sv 16000000; timeout 2h opam install -y -v coq-mathcomp-multinomials.1.3 coq.8.9.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>1 m 9 s</dd>
</dl>
<h2>Installation size</h2>
<p>Total: 16 M</p>
<ul>
<li>11 M <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/SsrMultinomials/xfinmap.vo</code></li>
<li>2 M <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/SsrMultinomials/mpoly.vo</code></li>
<li>1 M <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/SsrMultinomials/mpoly.glob</code></li>
<li>456 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/SsrMultinomials/monalg.vo</code></li>
<li>426 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/SsrMultinomials/monalg.glob</code></li>
<li>378 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/SsrMultinomials/freeg.vo</code></li>
<li>370 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/SsrMultinomials/freeg.glob</code></li>
<li>189 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/SsrMultinomials/mpoly.v</code></li>
<li>131 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/SsrMultinomials/ssrcomplements.vo</code></li>
<li>122 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/SsrMultinomials/ssrcomplements.glob</code></li>
<li>64 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/SsrMultinomials/monalg.v</code></li>
<li>48 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/SsrMultinomials/freeg.v</code></li>
<li>14 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/SsrMultinomials/ssrcomplements.v</code></li>
<li>4 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/SsrMultinomials/xfinmap.glob</code></li>
<li>1 K <code>../ocaml-base-compiler.4.05.0/lib/coq/user-contrib/SsrMultinomials/xfinmap.v</code></li>
</ul>
<h2>Uninstall</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq-mathcomp-multinomials.1.3</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
<small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small>
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.6/released/8.9.0/mathcomp-multinomials/1.3.html | HTML | mit | 8,779 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>pi-agm: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.8.0 / pi-agm - 1.2.6</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
pi-agm
<small>
1.2.6
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-11-06 23:39:54 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-11-06 23:39:54 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 1 Virtual package relying on perl
coq 8.8.0 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.08.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.08.1 Official release 4.08.1
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "http://www-sop.inria.fr/members/Yves.Bertot/"
bug-reports: "[email protected]"
license: "CECILL-B"
build: [["coq_makefile" "-f" "_CoqProject" "-o" "Makefile" ]
[ make "-j" "%{jobs}%" ]]
install: [ make "install" "DEST='%{lib}%/coq/user-contrib/pi_agm'" ]
depends: [
"ocaml"
"coq" {>= "8.12"}
"coq-coquelicot" {>= "3" & < "4~"}
"coq-interval" {>= "4"}
]
dev-repo: "git+https://github.com/ybertot/pi-agm.git"
tags: [ "keyword:real analysis" "keyword:pi" "category:Mathematics/Real Calculus and Topology" "logpath:agm" "date:2020-06-23" ]
authors: [ "Yves Bertot <[email protected]>" ]
synopsis:
"Computing thousands or millions of digits of PI with arithmetic-geometric means"
description: """
This is a proof of correctness for two algorithms to compute PI to high
precision using arithmetic-geometric means. A first file contains
the calculus-based proofs for an abstract view of the algorithm, where all
numbers are real numbers. A second file describes how to approximate all
computations using large integers. Other files describe the second algorithm
which is close to the one used in mpfr, for instance.
The whole development can be used to produce mathematically proved and
formally verified approximations of PI."""
url {
src: "https://github.com/ybertot/pi-agm/archive/v1.2.6.zip"
checksum: "sha256=f690dd8e464acafb4c14437a0ad09545a11f4ebd6771b05f4e7f74ca5c08a7ff"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-pi-agm.1.2.6 coq.8.8.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.8.0).
The following dependencies couldn't be met:
- coq-pi-agm -> coq >= 8.12
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-pi-agm.1.2.6</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.08.1-2.0.5/released/8.8.0/pi-agm/1.2.6.html | HTML | mit | 7,535 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fundamental-arithmetics: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.7.1+2 / fundamental-arithmetics - 8.10.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
fundamental-arithmetics
<small>
8.10.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-12-10 15:24:45 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-10 15:24:45 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-ocamlbuild base OCamlbuild binary and libraries distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 1 Virtual package relying on perl
coq 8.7.1+2 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.02.3 The OCaml compiler (virtual package)
ocaml-base-compiler 4.02.3 Official 4.02.3 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "http://perso.ens-lyon.fr/sebastien.briais/tools/Arith_080201.tar.gz"
license: "LGPL"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/FundamentalArithmetics"]
depends: [
"ocaml"
"coq" {>= "8.10" & < "8.11~"}
]
tags: [
"keyword: arithmetic"
"keyword: number theory"
"category: Mathematics/Arithmetic and Number Theory/Miscellaneous"
"date: 2008-02-1"
]
authors: [
"Sébastien Briais <sebastien.briais at ens-lyon.fr> [http://perso.ens-lyon.fr/sebastien.briais/]"
]
bug-reports: "https://github.com/coq-contribs/fundamental-arithmetics/issues"
dev-repo: "git+https://github.com/coq-contribs/fundamental-arithmetics.git"
synopsis: "Fundamental theorems of arithmetic"
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/fundamental-arithmetics/archive/v8.10.0.tar.gz"
checksum: "md5=9bfe4243869934181ccc5297fdef96a5"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-fundamental-arithmetics.8.10.0 coq.8.7.1+2</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.7.1+2).
The following dependencies couldn't be met:
- coq-fundamental-arithmetics -> coq >= 8.10 -> ocaml >= 4.05.0
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-fundamental-arithmetics.8.10.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.02.3-2.0.6/released/8.7.1+2/fundamental-arithmetics/8.10.0.html | HTML | mit | 7,172 |
package com.goodworkalan.mix.builder;
import org.testng.annotations.Test;
// TODO Document.
public class BasicJavaProjectTest {
// TODO Document.
@Test
public void build() {
}
}
| defunct/cafe | src/test/java/com/goodworkalan/mix/builder/BasicJavaProjectTest.java | Java | mit | 196 |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
errorHandler = require('./errors.server.controller'),
Task = mongoose.model('Task'),
Project = mongoose.model('Project'),
Person = mongoose.model('Person'),
_ = require('lodash');
/**
* Create a Task
*/
var person, project;
exports.createTask = function(req, res) {
var task = new Task(req.body);
task.user = req.user;
Person.findById(req.body.personId).exec(function(err, person_object) {
person = person_object;
Project.findById(req.body.projectId).exec(function(err, project_object) {
project = project_object;
task.projectName = project.name;
task.personName = person.name;
task.save(function(err) {
if (err) {
return res.status(400).send({
message: errorHandler.getErrorMessage(err)
});
} else {
person.tasks.push(task);
person.save();
project.tasks.push(task);
project.save();
res.jsonp(task);
}
});
});
});
};
/**
* Show the current Task
*/
exports.readTask = function(req, res) {
res.jsonp(req.task);
};
/**
* Update a Task
*/
exports.updateTask = function(req, res) {
var task = req.task;
task = _.extend(task, req.body);
task.save(function(err) {
if (err) {
return res.status(400).send({
message: errorHandler.getErrorMessage(err)
});
} else {
res.jsonp(task);
}
});
};
/**
* Delete an Task
*/
exports.deleteTask = function(req, res) {
var task = req.task;
Project.findById(req.task.project).exec(function(err, project) {
if (project && project.tasks) {
var i = project.tasks.indexOf(task._id);
project.tasks.splice(i, 1);
project.save();
}
});
Person.findById(req.task.person).exec(function(err, person) {
if (person && person.tasks) {
var i = person.tasks.indexOf(task._id);
person.tasks.splice(i, 1);
person.save();
}
});
task.remove(function(err) {
if (err) {
return res.status(400).send({
message: errorHandler.getErrorMessage(err)
});
} else {
res.jsonp(task);
}
});
};
/**
* List of Tasks
*/
exports.listTasks = function(req, res) {
Task.find({'user':req.user._id}).sort('-created').populate('person', 'name').populate('project', 'name').exec(function(err, tasks) {
if (err) {
return res.status(400).send({
message: errorHandler.getErrorMessage(err)
});
} else {
res.jsonp(tasks);
}
});
};
/**
* Task middleware
*/
exports.taskByID = function(req, res, next, id) {
Task.findById(id).populate('user', 'username').exec(function(err, task) {
if (err) return next(err);
if (!task) return next(new Error('Failed to load Task ' + id));
req.task = task;
next();
});
};
/**
* Task authorization middleware
*/
exports.hasAuthorization = function(req, res, next) {
if (req.task.user.id !== req.user.id) {
return res.status(403).send('User is not authorized');
}
next();
};
| andela-ajayeoba/Calendarize | app/controllers/tasks.server.controller.js | JavaScript | mit | 3,108 |
import { useCallback, useState, useEffect } from 'react';
import { KeyStore } from './keystore';
import type { Accounts, Hooks as HooksType } from './../types';
export const Hooks = {
useKeyStore: () => {
const [accounts, setAccounts] = useState<Accounts>();
const [error, setError] = useState<string>();
useEffect(() => {
async function getAccounts() {
try {
setAccounts(await KeyStore.getAccounts());
} catch (err: any) {
setError(err);
}
}
getAccounts();
}, []);
const newAccount = useCallback((passphrase: string) => {
async function addAccount() {
try {
await KeyStore.newAccount(passphrase);
setAccounts(await KeyStore.getAccounts());
} catch (err: any) {
setError(err);
}
}
addAccount();
}, []);
return { accounts, error, newAccount };
},
useEthereumClient: () => {},
} as HooksType;
| YsnKsy/react-native-geth | src/packages/hooks.tsx | TypeScript | mit | 960 |
// MusicXML Class Library
// Copyright (c) by Matthew James Briggs
// Distributed under the MIT License
#pragma once
#include "mxtest/control/CompileControl.h"
#ifdef MX_COMPILE_CORE_TESTS
#include "mxtest/core/HelperFunctions.h"
#include "mx/core/Elements.h"
namespace mxtest
{
mx::core::FullNoteGroupPtr tgenFullNoteGroup( TestMode v );
void tgenFullNoteGroupExpected(std::ostream& os, int indentLevel, TestMode v );
}
#endif
| Webern/MusicXML-Class-Library | Sourcecode/private/mxtest/core/FullNoteGroupTest.h | C | mit | 440 |
# Blog based on symfony
### Requirement
- php
## Installation
```bash
$ git clone [email protected]:athlonUA/symfony-simple-blog.git
```
## Running
```bash
$ composer install
$ php app/console do:dat:cr
$ php app/console doctrine:schema:create
$ php app/console doctrine:fixtures:load
$ php app/console ass:in --symlink
$ php app/console ass:du
$ php app/console server:run
```
Go to the http://127.0.0.1:8000/ to run surf
| athlonUA/Symfony_blog_test | README.md | Markdown | mit | 427 |
package net.ihiroky.reservoir.coder;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.ByteBuffer;
/**
* Created on 12/10/04, 19:26
*
* @author Hiroki Itoh
*/
public class ByteBufferOutputStream extends OutputStream {
ByteBuffer byteBuffer;
ByteBufferOutputStream(int initialCapacity) {
byteBuffer = ByteBuffer.allocate(initialCapacity);
}
private void ensureCapacity(int minimumIncrement) {
int c = byteBuffer.capacity();
int newSize = c / 2 * 3;
if (newSize < c + minimumIncrement) {
newSize = c + minimumIncrement;
}
ByteBuffer t = ByteBuffer.allocate(newSize);
byteBuffer.flip();
t.put(byteBuffer);
byteBuffer = t;
}
@Override
public void write(int b) throws IOException {
if (!byteBuffer.hasRemaining()) {
ensureCapacity(1);
}
byteBuffer.put((byte) b);
}
@Override
public void write(byte[] bytes, int offset, int length) {
if (byteBuffer.remaining() < length) {
ensureCapacity(length);
}
byteBuffer.put(bytes, offset, length);
}
@Override
public void close() {
byteBuffer.flip();
}
}
| ihiroky/reservoir | src/main/java/net/ihiroky/reservoir/coder/ByteBufferOutputStream.java | Java | mit | 1,244 |
// angular.module is a global place for creating, registering and retrieving Angular modules
// 'directory' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
// 'directory.services' is found in services.js
// 'directory.controllers' is found in controllers.js
angular.module('directory', ['ionic', 'directory.controllers', 'ionic.contrib.ui.cards'])
.config(function ($stateProvider, $urlRouterProvider) {
// Ionic uses AngularUI Router which uses the concept of states
// Learn more here: https://github.com/angular-ui/ui-router
// Set up the various states which the app can be in.
// Each state's controller can be found in controllers.js
$stateProvider
.state('landing', {
url: '/landing',
templateUrl: 'templates/index.html',
controller: 'FbCtrl'
})
.state('profilec', {
url: '/createProfile',
templateUrl: 'templates/profilec.html',
controller: 'ProfileCtrl'
})
.state('matches', {
url: '/matches',
templateUrl: 'templates/matches.html',
controller: 'TestCtrl'
})
.state('food', {
url: '/restaurants',
templateUrl: 'templates/restaurants.html',
controller: 'RecCtrl'
})
.state('chat', {
url: '/chat',
templateUrl: 'templates/chat.html',
controller: 'ChatCtrl'
})
.state('home', {
url: '/home',
templateUrl: 'templates/home.html',
controller: 'DocCtrl'
})
.state('stats', {
url: '/stats',
templateUrl: 'templates/stats.html',
controller: 'DocCtrl'
})
.state('graphs', {
url: '/graphs',
templateUrl: 'templates/graphs.html',
controller: 'GraphCtrl'
})
.state('doc-index', {
url: '/docs',
templateUrl: 'templates/doc-index.html',
controller: 'DocCtrl'
})
.state('doc-detail', {
url: '/doclist/:doclistId',
templateUrl: 'templates/doc-detail.html',
controller: 'DocCtrl'
});
/*.state('employee-index', {
url: '/employees',
templateUrl: 'templates/employee-index.html',
controller: 'EmployeeIndexCtrl'
})
.state('employee-detail', {
url: '/employee/:employeeId',
templateUrl: 'templates/employee-detail.html',
controller: 'EmployeeDetailCtrl'
})
.state('employee-reports', {
url: '/employee/:employeeId/reports',
templateUrl: 'templates/employee-reports.html',
controller: 'EmployeeReportsCtrl'
}); */
// if none of the above states are matched, use this as the fallback
$urlRouterProvider.otherwise('landing');
});
| zzeleznick/zzeleznick.github.io | hackerlove/main/www/js/app.js | JavaScript | mit | 3,330 |
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
import { get } from '@ember/object';
export default Route.extend({
ajax: service(),
model() {
return get(this, 'ajax').request(
'https://api.github.com/repos/ember-cli/ember-ajax/commits',
{
headers: {
'User-Agent': 'Ember AJAX Testing'
}
}
);
}
});
| ember-cli/ember-ajax | tests/dummy/app/routes/commits.js | JavaScript | mit | 404 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>User agent detail - SonyEricssonW850iv/R1ED Browser/NetFront/3.3 Profile/MIDP-2.0 Configuration/CLDC-1.1</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="../circle.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="section">
<h1 class="header center orange-text">User agent detail</h1>
<div class="row center">
<h5 class="header light">
SonyEricssonW850iv/R1ED Browser/NetFront/3.3 Profile/MIDP-2.0 Configuration/CLDC-1.1
</h5>
</div>
</div>
<div class="section">
<table class="striped"><tr><th></th><th colspan="3">General</th><th colspan="5">Device</th><th colspan="3">Bot</th><th colspan="2"></th></tr><tr><th>Provider</th><th>Browser</th><th>Engine</th><th>OS</th><th>Brand</th><th>Model</th><th>Type</th><th>Is mobile</th><th>Is touch</th><th>Is bot</th><th>Name</th><th>Type</th><th>Parse time</th><th>Actions</th></tr><tr><th colspan="14" class="green lighten-3">Test suite</th></tr><tr><td>UAParser<br /><small>v0.5.0.2</small><br /><small>vendor/thadafinser/uap-core/tests/test_device.yaml</small></td><td> </td><td><i class="material-icons">close</i></td><td> </td><td style="border-left: 1px solid #555">SonyEricsson</td><td>W850iv</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-cfed3005-df48-4fa8-bf03-4f6ef8988f59">Detail</a>
<!-- Modal Structure -->
<div id="modal-cfed3005-df48-4fa8-bf03-4f6ef8988f59" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>UAParser result detail</h4>
<p><pre><code class="php">Array
(
[user_agent_string] => SonyEricssonW850iv/R1ED Browser/NetFront/3.3 Profile/MIDP-2.0 Configuration/CLDC-1.1
[family] => Ericsson W850iv
[brand] => SonyEricsson
[model] => W850iv
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><th colspan="14" class="green lighten-3">Providers</th></tr><tr><td>BrowscapFull<br /><small>6014</small><br /></td><td>NetFront 3.3</td><td>NetFront </td><td> </td><td style="border-left: 1px solid #555"></td><td></td><td>Mobile Device</td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.034</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-47a9cd06-e213-4882-bc34-db6aed664223">Detail</a>
<!-- Modal Structure -->
<div id="modal-47a9cd06-e213-4882-bc34-db6aed664223" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>BrowscapFull result detail</h4>
<p><pre><code class="php">stdClass Object
(
[browser_name_regex] => /^.*netfront\/3\.3.*$/
[browser_name_pattern] => *netfront/3.3*
[parent] => NetFront 3.3
[comment] => Access NetFront 3.3
[browser] => NetFront
[browser_type] => Browser
[browser_bits] => 0
[browser_maker] => Access
[browser_modus] => unknown
[version] => 3.3
[majorver] => 3
[minorver] => 3
[platform] => unknown
[platform_version] => unknown
[platform_description] => unknown
[platform_bits] => 0
[platform_maker] => unknown
[alpha] =>
[beta] =>
[win16] =>
[win32] =>
[win64] =>
[frames] => 1
[iframes] => 1
[tables] => 1
[cookies] => 1
[backgroundsounds] =>
[javascript] => 1
[vbscript] =>
[javaapplets] =>
[activexcontrols] =>
[ismobiledevice] => 1
[istablet] =>
[issyndicationreader] =>
[crawler] =>
[isfake] =>
[isanonymized] =>
[ismodified] =>
[cssversion] => 2
[aolversion] => 0
[device_name] => general Mobile Device
[device_maker] => unknown
[device_type] => Mobile Device
[device_pointing_method] => unknown
[device_code_name] => general Mobile Device
[device_brand_name] => unknown
[renderingengine_name] => NetFront
[renderingengine_version] => unknown
[renderingengine_description] => For Access NetFront.
[renderingengine_maker] => Access
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>BrowscapLite<br /><small>6014</small><br /></td>
<td colspan="12" class="center-align red lighten-1">
<strong>No result found</strong>
</td>
</tr><tr><td>BrowscapPhp<br /><small>6014</small><br /></td><td>NetFront 3.3</td><td><i class="material-icons">close</i></td><td> </td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>Mobile Device</td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.068</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-ad0041a2-b0f4-43f6-a70d-cad1443caa68">Detail</a>
<!-- Modal Structure -->
<div id="modal-ad0041a2-b0f4-43f6-a70d-cad1443caa68" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>BrowscapPhp result detail</h4>
<p><pre><code class="php">stdClass Object
(
[browser_name_regex] => /^.*netfront\/3\.3.*$/
[browser_name_pattern] => *netfront/3.3*
[parent] => NetFront 3.3
[comment] => Access NetFront 3.3
[browser] => NetFront
[browser_type] => unknown
[browser_bits] => 0
[browser_maker] => Access
[browser_modus] => unknown
[version] => 3.3
[majorver] => 3
[minorver] => 3
[platform] => unknown
[platform_version] => unknown
[platform_description] => unknown
[platform_bits] => 0
[platform_maker] => unknown
[alpha] => false
[beta] => false
[win16] => false
[win32] => false
[win64] => false
[frames] => false
[iframes] => false
[tables] => false
[cookies] => false
[backgroundsounds] => false
[javascript] => false
[vbscript] => false
[javaapplets] => false
[activexcontrols] => false
[ismobiledevice] => 1
[istablet] =>
[issyndicationreader] => false
[crawler] =>
[isfake] => false
[isanonymized] => false
[ismodified] => false
[cssversion] => 0
[aolversion] => 0
[device_name] => unknown
[device_maker] => unknown
[device_type] => Mobile Device
[device_pointing_method] => unknown
[device_code_name] => unknown
[device_brand_name] => unknown
[renderingengine_name] => unknown
[renderingengine_version] => unknown
[renderingengine_description] => unknown
[renderingengine_maker] => unknown
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>DonatjUAParser<br /><small>v0.5.1</small><br /></td><td>SonyEricssonW850iv R1ED</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-15fbc1f0-2615-4d42-b5d9-a30dd647b050">Detail</a>
<!-- Modal Structure -->
<div id="modal-15fbc1f0-2615-4d42-b5d9-a30dd647b050" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>DonatjUAParser result detail</h4>
<p><pre><code class="php">Array
(
[platform] =>
[browser] => SonyEricssonW850iv
[version] => R1ED
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>JenssegersAgent<br /><small>v2.3.3</small><br /></td><td> </td><td><i class="material-icons">close</i></td><td>JavaOS </td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.001</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-b85a2b91-6a55-4436-a82c-1ea0d46e2e51">Detail</a>
<!-- Modal Structure -->
<div id="modal-b85a2b91-6a55-4436-a82c-1ea0d46e2e51" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>JenssegersAgent result detail</h4>
<p><pre><code class="php">Array
(
[browserName] => GenericBrowser
[browserVersion] =>
[osName] => JavaOS
[osVersion] =>
[deviceModel] => Sony
[isMobile] => 1
[isRobot] =>
[botName] =>
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>NeutrinoApiCom<br /><small></small><br /></td><td>NetFront 3.3</td><td><i class="material-icons">close</i></td><td>JVM </td><td style="border-left: 1px solid #555">SonyEricsson</td><td>W850iv</td><td>mobile-browser</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.25201</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-8c2a7a4e-3fbf-4df2-8d61-5e730422f67b">Detail</a>
<!-- Modal Structure -->
<div id="modal-8c2a7a4e-3fbf-4df2-8d61-5e730422f67b" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>NeutrinoApiCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[mobile_screen_height] => 320
[is_mobile] => 1
[type] => mobile-browser
[mobile_brand] => SonyEricsson
[mobile_model] => W850iv
[version] => 3.3
[is_android] =>
[browser_name] => NetFront
[operating_system_family] => JVM
[operating_system_version] =>
[is_ios] =>
[producer] => ACCESS CO.,LTD
[operating_system] => JVM (Platform Micro Edition)
[mobile_screen_width] => 240
[mobile_browser] => Access Netfront
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>PiwikDeviceDetector<br /><small>3.6.1</small><br /></td><td>NetFront 3.3</td><td>NetFront </td><td> </td><td style="border-left: 1px solid #555">Sony Ericsson</td><td>W850iv</td><td>feature phone</td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.005</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-4a941d34-a8d3-4914-9724-346f60ad7046">Detail</a>
<!-- Modal Structure -->
<div id="modal-4a941d34-a8d3-4914-9724-346f60ad7046" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>PiwikDeviceDetector result detail</h4>
<p><pre><code class="php">Array
(
[client] => Array
(
[type] => browser
[name] => NetFront
[short_name] => NF
[version] => 3.3
[engine] => NetFront
)
[operatingSystem] => Array
(
)
[device] => Array
(
[brand] => SE
[brandName] => Sony Ericsson
[model] => W850iv
[device] => 3
[deviceName] => feature phone
)
[bot] =>
[extra] => Array
(
[isBot] =>
[isBrowser] => 1
[isFeedReader] =>
[isMobileApp] =>
[isPIM] =>
[isLibrary] =>
[isMediaPlayer] =>
[isCamera] =>
[isCarBrowser] =>
[isConsole] =>
[isFeaturePhone] => 1
[isPhablet] =>
[isPortableMediaPlayer] =>
[isSmartDisplay] =>
[isSmartphone] =>
[isTablet] =>
[isTV] =>
[isDesktop] =>
[isMobile] => 1
[isTouchEnabled] =>
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>SinergiBrowserDetector<br /><small>6.0.1</small><br /></td>
<td colspan="12" class="center-align red lighten-1">
<strong>No result found</strong>
</td>
</tr><tr><td>UAParser<br /><small>v3.4.5</small><br /></td><td>NetFront 3.3</td><td><i class="material-icons">close</i></td><td> </td><td style="border-left: 1px solid #555">SonyEricsson</td><td>W850iv</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.004</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-3160e405-8a8f-46dd-8f47-5115f06462d2">Detail</a>
<!-- Modal Structure -->
<div id="modal-3160e405-8a8f-46dd-8f47-5115f06462d2" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>UAParser result detail</h4>
<p><pre><code class="php">UAParser\Result\Client Object
(
[ua] => UAParser\Result\UserAgent Object
(
[major] => 3
[minor] => 3
[patch] =>
[family] => NetFront
)
[os] => UAParser\Result\OperatingSystem Object
(
[major] =>
[minor] =>
[patch] =>
[patchMinor] =>
[family] => Other
)
[device] => UAParser\Result\Device Object
(
[brand] => SonyEricsson
[model] => W850iv
[family] => Ericsson W850iv
)
[originalUserAgent] => SonyEricssonW850iv/R1ED Browser/NetFront/3.3 Profile/MIDP-2.0 Configuration/CLDC-1.1
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>UserAgentApiCom<br /><small></small><br /></td><td>Netfront Browser 3.3</td><td> </td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>Mobile</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.15301</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-afeb05fb-26b9-4509-b8ac-0c604a9e97d6">Detail</a>
<!-- Modal Structure -->
<div id="modal-afeb05fb-26b9-4509-b8ac-0c604a9e97d6" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>UserAgentApiCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[platform_name] => Sony Ericsson
[platform_version] => 850
[platform_type] => Mobile
[browser_name] => Netfront Browser
[browser_version] => 3.3
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>UserAgentStringCom<br /><small></small><br /></td><td>NetFront 3.3</td><td><i class="material-icons">close</i></td><td> </td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.057</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-08a9ddfb-838f-48d7-9ede-1d132306b2ee">Detail</a>
<!-- Modal Structure -->
<div id="modal-08a9ddfb-838f-48d7-9ede-1d132306b2ee" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>UserAgentStringCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[agent_type] => Browser
[agent_name] => NetFront
[agent_version] => 3.3
[os_type] => unknown
[os_name] => unknown
[os_versionName] =>
[os_versionNumber] =>
[os_producer] =>
[os_producerURL] =>
[linux_distibution] => Null
[agent_language] =>
[agent_languageTag] =>
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>WhatIsMyBrowserCom<br /><small></small><br /></td><td>NetFront </td><td> </td><td> </td><td style="border-left: 1px solid #555">Sony Ericsson</td><td>Sony Ericsson W850iv</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.24401</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-5fc1ff22-a74d-481b-9ad1-fcfde73ded9c">Detail</a>
<!-- Modal Structure -->
<div id="modal-5fc1ff22-a74d-481b-9ad1-fcfde73ded9c" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>WhatIsMyBrowserCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[operating_system_name] =>
[simple_sub_description_string] =>
[simple_browser_string] => NetFront 3.3 on Sony Ericsson W850iv
[browser_version] => 3.3
[extra_info] => Array
(
)
[operating_platform] => Sony Ericsson W850iv
[extra_info_table] => Array
(
)
[layout_engine_name] =>
[detected_addons] => Array
(
)
[operating_system_flavour_code] =>
[hardware_architecture] =>
[operating_system_flavour] =>
[operating_system_frameworks] => Array
(
)
[browser_name_code] => netfront
[operating_system_version] =>
[simple_operating_platform_string] =>
[is_abusive] =>
[layout_engine_version] =>
[browser_capabilities] => Array
(
[0] => MIDP v2.0
[1] => CLDC v1.1
)
[operating_platform_vendor_name] => Sony Ericsson
[operating_system] =>
[operating_system_version_full] =>
[operating_platform_code] => W850iv
[browser_name] => NetFront
[operating_system_name_code] =>
[user_agent] => SonyEricssonW850iv/R1ED Browser/NetFront/3.3 Profile/MIDP-2.0 Configuration/CLDC-1.1
[browser_version_full] =>
[browser] => NetFront 3.3
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>WhichBrowser<br /><small>v2.0.18</small><br /></td><td>NetFront 3.3</td><td> </td><td> </td><td style="border-left: 1px solid #555">Sony Ericsson</td><td>W850iv</td><td>mobile:feature</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.002</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-083a336f-5d73-4505-84f3-c5fc9bb78652">Detail</a>
<!-- Modal Structure -->
<div id="modal-083a336f-5d73-4505-84f3-c5fc9bb78652" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>WhichBrowser result detail</h4>
<p><pre><code class="php">Array
(
[browser] => Array
(
[name] => NetFront
[version] => 3.3
[type] => browser
)
[device] => Array
(
[type] => mobile
[subtype] => feature
[manufacturer] => Sony Ericsson
[model] => W850iv
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>Woothee<br /><small>v1.2.0</small><br /></td>
<td colspan="12" class="center-align red lighten-1">
<strong>No result found</strong>
</td>
</tr><tr><td>Wurfl<br /><small>1.7.1.0</small><br /></td><td>NetFront 3.3</td><td><i class="material-icons">close</i></td><td> </td><td style="border-left: 1px solid #555">SonyEricsson</td><td>W850iv</td><td>Feature Phone</td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.023</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-a2bedf8c-4a95-42a7-96c5-aaf233b2ac50">Detail</a>
<!-- Modal Structure -->
<div id="modal-a2bedf8c-4a95-42a7-96c5-aaf233b2ac50" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Wurfl result detail</h4>
<p><pre><code class="php">Array
(
[virtual] => Array
(
[is_android] => false
[is_ios] => false
[is_windows_phone] => false
[is_app] => false
[is_full_desktop] => false
[is_largescreen] => false
[is_mobile] => true
[is_robot] => false
[is_smartphone] => false
[is_touchscreen] => false
[is_wml_preferred] => false
[is_xhtmlmp_preferred] => false
[is_html_preferred] => true
[advertised_device_os] =>
[advertised_device_os_version] =>
[advertised_browser] => NetFront
[advertised_browser_version] => 3.3
[complete_device_name] => SonyEricsson W850iv
[device_name] => SonyEricsson W850iv
[form_factor] => Feature Phone
[is_phone] => true
[is_app_webview] => false
)
[all] => Array
(
[brand_name] => SonyEricsson
[model_name] => W850iv
[unique] => true
[ununiqueness_handler] =>
[is_wireless_device] => true
[device_claims_web_support] => false
[has_qwerty_keyboard] => false
[can_skip_aligned_link_row] => true
[uaprof] => http://wap.sonyericsson.com/UAprof/W850iR101.xml
[uaprof2] => http://wap.sonyericsson.com/UAprof/W850iR201.xml
[uaprof3] =>
[nokia_series] => 0
[nokia_edition] => 0
[device_os] =>
[mobile_browser] => Access Netfront
[mobile_browser_version] => 3.3
[device_os_version] =>
[pointing_method] =>
[release_date] => 2005_july
[marketing_name] =>
[model_extra_info] =>
[nokia_feature_pack] => 0
[can_assign_phone_number] => true
[is_tablet] => false
[manufacturer_name] =>
[is_bot] => false
[is_google_glass] => false
[proportional_font] => false
[built_in_back_button_support] => false
[card_title_support] => true
[softkey_support] => false
[table_support] => true
[numbered_menus] => false
[menu_with_select_element_recommended] => false
[menu_with_list_of_links_recommended] => true
[icons_on_menu_items_support] => false
[break_list_of_links_with_br_element_recommended] => true
[access_key_support] => false
[wrap_mode_support] => false
[times_square_mode_support] => false
[deck_prefetch_support] => false
[elective_forms_recommended] => true
[wizards_recommended] => false
[image_as_link_support] => false
[insert_br_element_after_widget_recommended] => false
[wml_can_display_images_and_text_on_same_line] => false
[wml_displays_image_in_center] => false
[opwv_wml_extensions_support] => false
[wml_make_phone_call_string] => wtai://wp/mc;
[chtml_display_accesskey] => false
[emoji] => false
[chtml_can_display_images_and_text_on_same_line] => false
[chtml_displays_image_in_center] => false
[imode_region] => none
[chtml_make_phone_call_string] => tel:
[chtml_table_support] => false
[xhtml_honors_bgcolor] => true
[xhtml_supports_forms_in_table] => true
[xhtml_support_wml2_namespace] => false
[xhtml_autoexpand_select] => false
[xhtml_select_as_dropdown] => false
[xhtml_select_as_radiobutton] => false
[xhtml_select_as_popup] => false
[xhtml_display_accesskey] => false
[xhtml_supports_invisible_text] => false
[xhtml_supports_inline_input] => false
[xhtml_supports_monospace_font] => false
[xhtml_supports_table_for_layout] => true
[xhtml_supports_css_cell_table_coloring] => true
[xhtml_format_as_css_property] => true
[xhtml_format_as_attribute] => false
[xhtml_nowrap_mode] => false
[xhtml_marquee_as_css_property] => false
[xhtml_readable_background_color1] => #FFFFFF
[xhtml_readable_background_color2] => #FFFFFF
[xhtml_allows_disabled_form_elements] => false
[xhtml_document_title_support] => true
[xhtml_preferred_charset] => utf8
[opwv_xhtml_extensions_support] => false
[xhtml_make_phone_call_string] => tel:
[xhtmlmp_preferred_mime_type] => application/xhtml+xml
[xhtml_table_support] => true
[xhtml_send_sms_string] => sms:
[xhtml_send_mms_string] => mms:
[xhtml_file_upload] => supported
[cookie_support] => true
[accept_third_party_cookie] => true
[xhtml_supports_iframe] => none
[xhtml_avoid_accesskeys] => false
[xhtml_can_embed_video] => none
[ajax_support_javascript] => true
[ajax_manipulate_css] => true
[ajax_support_getelementbyid] => true
[ajax_support_inner_html] => true
[ajax_xhr_type] => none
[ajax_manipulate_dom] => true
[ajax_support_events] => true
[ajax_support_event_listener] => true
[ajax_preferred_geoloc_api] => none
[xhtml_support_level] => 3
[preferred_markup] => html_web_4_0
[wml_1_1] => true
[wml_1_2] => true
[wml_1_3] => true
[html_wi_w3_xhtmlbasic] => true
[html_wi_oma_xhtmlmp_1_0] => true
[html_wi_imode_html_1] => true
[html_wi_imode_html_2] => true
[html_wi_imode_html_3] => true
[html_wi_imode_html_4] => false
[html_wi_imode_html_5] => false
[html_wi_imode_htmlx_1] => false
[html_wi_imode_htmlx_1_1] => false
[html_wi_imode_compact_generic] => false
[html_web_3_2] => false
[html_web_4_0] => true
[voicexml] => false
[multipart_support] => false
[total_cache_disable_support] => false
[time_to_live_support] => false
[resolution_width] => 240
[resolution_height] => 320
[columns] => 16
[max_image_width] => 234
[max_image_height] => 320
[rows] => 16
[physical_screen_width] => 30
[physical_screen_height] => 41
[dual_orientation] => false
[density_class] => 1.0
[wbmp] => true
[bmp] => false
[epoc_bmp] => false
[gif_animated] => true
[jpg] => true
[png] => true
[tiff] => false
[transparent_png_alpha] => false
[transparent_png_index] => false
[svgt_1_1] => false
[svgt_1_1_plus] => false
[greyscale] => false
[gif] => true
[colors] => 262144
[webp_lossy_support] => false
[webp_lossless_support] => false
[post_method_support] => true
[basic_authentication_support] => true
[empty_option_value_support] => true
[emptyok] => false
[nokia_voice_call] => false
[wta_voice_call] => false
[wta_phonebook] => false
[wta_misc] => false
[wta_pdc] => true
[https_support] => true
[phone_id_provided] => false
[max_data_rate] => 384
[wifi] => false
[sdio] => false
[vpn] => false
[has_cellular_radio] => true
[max_deck_size] => 40000
[max_url_length_in_requests] => 256
[max_url_length_homepage] => 0
[max_url_length_bookmark] => 0
[max_url_length_cached_page] => 0
[max_no_of_connection_settings] => 0
[max_no_of_bookmarks] => 0
[max_length_of_username] => 0
[max_length_of_password] => 0
[max_object_size] => 0
[downloadfun_support] => false
[directdownload_support] => true
[inline_support] => true
[oma_support] => true
[ringtone] => true
[ringtone_3gpp] => false
[ringtone_midi_monophonic] => true
[ringtone_midi_polyphonic] => true
[ringtone_imelody] => true
[ringtone_digiplug] => false
[ringtone_compactmidi] => false
[ringtone_mmf] => false
[ringtone_rmf] => false
[ringtone_xmf] => false
[ringtone_amr] => true
[ringtone_awb] => true
[ringtone_aac] => false
[ringtone_wav] => true
[ringtone_mp3] => true
[ringtone_spmidi] => false
[ringtone_qcelp] => false
[ringtone_voices] => 40
[ringtone_df_size_limit] => 0
[ringtone_directdownload_size_limit] => 0
[ringtone_inline_size_limit] => 0
[ringtone_oma_size_limit] => 0
[wallpaper] => true
[wallpaper_max_width] => 240
[wallpaper_max_height] => 320
[wallpaper_preferred_width] => 240
[wallpaper_preferred_height] => 320
[wallpaper_resize] => none
[wallpaper_wbmp] => false
[wallpaper_bmp] => false
[wallpaper_gif] => true
[wallpaper_jpg] => true
[wallpaper_png] => true
[wallpaper_tiff] => false
[wallpaper_greyscale] => false
[wallpaper_colors] => 18
[wallpaper_df_size_limit] => 0
[wallpaper_directdownload_size_limit] => 0
[wallpaper_inline_size_limit] => 0
[wallpaper_oma_size_limit] => 0
[screensaver] => true
[screensaver_max_width] => 240
[screensaver_max_height] => 320
[screensaver_preferred_width] => 240
[screensaver_preferred_height] => 320
[screensaver_resize] => none
[screensaver_wbmp] => false
[screensaver_bmp] => false
[screensaver_gif] => true
[screensaver_jpg] => true
[screensaver_png] => false
[screensaver_greyscale] => false
[screensaver_colors] => 2
[screensaver_df_size_limit] => 0
[screensaver_directdownload_size_limit] => 0
[screensaver_inline_size_limit] => 0
[screensaver_oma_size_limit] => 0
[picture] => true
[picture_max_width] => 0
[picture_max_height] => 0
[picture_preferred_width] => 0
[picture_preferred_height] => 0
[picture_resize] => none
[picture_wbmp] => false
[picture_bmp] => false
[picture_gif] => true
[picture_jpg] => false
[picture_png] => false
[picture_greyscale] => false
[picture_colors] => 2
[picture_df_size_limit] => 0
[picture_directdownload_size_limit] => 0
[picture_inline_size_limit] => 0
[picture_oma_size_limit] => 0
[video] => true
[oma_v_1_0_forwardlock] => true
[oma_v_1_0_combined_delivery] => true
[oma_v_1_0_separate_delivery] => true
[streaming_video] => true
[streaming_3gpp] => true
[streaming_mp4] => false
[streaming_mov] => false
[streaming_video_size_limit] => 0
[streaming_real_media] => none
[streaming_flv] => false
[streaming_3g2] => false
[streaming_vcodec_h263_0] => 10
[streaming_vcodec_h263_3] => -1
[streaming_vcodec_mpeg4_sp] => 3
[streaming_vcodec_mpeg4_asp] => -1
[streaming_vcodec_h264_bp] => 1.3
[streaming_acodec_amr] => nb
[streaming_acodec_aac] => lc
[streaming_wmv] => none
[streaming_preferred_protocol] => rtsp
[streaming_preferred_http_protocol] => none
[wap_push_support] => true
[connectionless_service_indication] => true
[connectionless_service_load] => false
[connectionless_cache_operation] => false
[connectionoriented_unconfirmed_service_indication] => false
[connectionoriented_unconfirmed_service_load] => false
[connectionoriented_unconfirmed_cache_operation] => false
[connectionoriented_confirmed_service_indication] => false
[connectionoriented_confirmed_service_load] => false
[connectionoriented_confirmed_cache_operation] => false
[utf8_support] => false
[ascii_support] => false
[iso8859_support] => false
[expiration_date] => false
[j2me_cldc_1_0] => true
[j2me_cldc_1_1] => true
[j2me_midp_1_0] => true
[j2me_midp_2_0] => true
[doja_1_0] => false
[doja_1_5] => false
[doja_2_0] => false
[doja_2_1] => false
[doja_2_2] => false
[doja_3_0] => false
[doja_3_5] => false
[doja_4_0] => false
[j2me_jtwi] => true
[j2me_mmapi_1_0] => true
[j2me_mmapi_1_1] => true
[j2me_wmapi_1_0] => true
[j2me_wmapi_1_1] => true
[j2me_wmapi_2_0] => true
[j2me_btapi] => true
[j2me_3dapi] => true
[j2me_locapi] => false
[j2me_nokia_ui] => false
[j2me_motorola_lwt] => false
[j2me_siemens_color_game] => false
[j2me_siemens_extension] => false
[j2me_heap_size] => 0
[j2me_max_jar_size] => 0
[j2me_storage_size] => 0
[j2me_max_record_store_size] => 0
[j2me_screen_width] => 0
[j2me_screen_height] => 0
[j2me_canvas_width] => 0
[j2me_canvas_height] => 0
[j2me_bits_per_pixel] => 0
[j2me_audio_capture_enabled] => false
[j2me_video_capture_enabled] => false
[j2me_photo_capture_enabled] => false
[j2me_capture_image_formats] => none
[j2me_http] => false
[j2me_https] => false
[j2me_socket] => false
[j2me_udp] => false
[j2me_serial] => false
[j2me_gif] => false
[j2me_gif89a] => false
[j2me_jpg] => false
[j2me_png] => false
[j2me_bmp] => false
[j2me_bmp3] => false
[j2me_wbmp] => false
[j2me_midi] => false
[j2me_wav] => false
[j2me_amr] => false
[j2me_mp3] => false
[j2me_mp4] => false
[j2me_imelody] => false
[j2me_rmf] => false
[j2me_au] => false
[j2me_aac] => false
[j2me_realaudio] => false
[j2me_xmf] => false
[j2me_wma] => false
[j2me_3gpp] => false
[j2me_h263] => false
[j2me_svgt] => false
[j2me_mpeg4] => false
[j2me_realvideo] => false
[j2me_real8] => false
[j2me_realmedia] => false
[j2me_left_softkey_code] => -6
[j2me_right_softkey_code] => -7
[j2me_middle_softkey_code] => 0
[j2me_select_key_code] => -5
[j2me_return_key_code] => -11
[j2me_clear_key_code] => -8
[j2me_datefield_no_accepts_null_date] => false
[j2me_datefield_broken] => false
[receiver] => true
[sender] => true
[mms_max_size] => 307200
[mms_max_height] => 1200
[mms_max_width] => 1600
[built_in_recorder] => false
[built_in_camera] => false
[mms_jpeg_baseline] => true
[mms_jpeg_progressive] => false
[mms_gif_static] => true
[mms_gif_animated] => false
[mms_png] => true
[mms_bmp] => true
[mms_wbmp] => true
[mms_amr] => true
[mms_wav] => true
[mms_midi_monophonic] => true
[mms_midi_polyphonic] => false
[mms_midi_polyphonic_voices] => 0
[mms_spmidi] => true
[mms_mmf] => false
[mms_mp3] => true
[mms_evrc] => false
[mms_qcelp] => false
[mms_ota_bitmap] => false
[mms_nokia_wallpaper] => false
[mms_nokia_operatorlogo] => false
[mms_nokia_3dscreensaver] => false
[mms_nokia_ringingtone] => false
[mms_rmf] => false
[mms_xmf] => false
[mms_symbian_install] => false
[mms_jar] => true
[mms_jad] => true
[mms_vcard] => true
[mms_vcalendar] => true
[mms_wml] => false
[mms_wbxml] => false
[mms_wmlc] => false
[mms_video] => true
[mms_mp4] => true
[mms_3gpp] => true
[mms_3gpp2] => false
[mms_max_frame_rate] => 0
[nokiaring] => false
[picturemessage] => false
[operatorlogo] => false
[largeoperatorlogo] => false
[callericon] => false
[nokiavcard] => false
[nokiavcal] => false
[sckl_ringtone] => false
[sckl_operatorlogo] => false
[sckl_groupgraphic] => false
[sckl_vcard] => false
[sckl_vcalendar] => false
[text_imelody] => false
[ems] => false
[ems_variablesizedpictures] => false
[ems_imelody] => false
[ems_odi] => false
[ems_upi] => false
[ems_version] => 0
[siemens_ota] => false
[siemens_logo_width] => 101
[siemens_logo_height] => 29
[siemens_screensaver_width] => 101
[siemens_screensaver_height] => 50
[gprtf] => false
[sagem_v1] => false
[sagem_v2] => false
[panasonic] => false
[sms_enabled] => true
[wav] => true
[mmf] => false
[smf] => false
[mld] => false
[midi_monophonic] => true
[midi_polyphonic] => true
[sp_midi] => true
[rmf] => false
[xmf] => true
[compactmidi] => false
[digiplug] => false
[nokia_ringtone] => false
[imelody] => true
[au] => false
[amr] => true
[awb] => true
[aac] => false
[mp3] => true
[voices] => 40
[qcelp] => false
[evrc] => false
[flash_lite_version] => 1_1
[fl_wallpaper] => true
[fl_screensaver] => true
[fl_standalone] => false
[fl_browser] => true
[fl_sub_lcd] => false
[full_flash_support] => false
[css_supports_width_as_percentage] => true
[css_border_image] => none
[css_rounded_corners] => none
[css_gradient] => none
[css_spriting] => true
[css_gradient_linear] => none
[is_transcoder] => false
[transcoder_ua_header] => user-agent
[rss_support] => false
[pdf_support] => false
[progressive_download] => true
[playback_vcodec_h263_0] => 10
[playback_vcodec_h263_3] => -1
[playback_vcodec_mpeg4_sp] => 3
[playback_vcodec_mpeg4_asp] => -1
[playback_vcodec_h264_bp] => 1b
[playback_real_media] => 8
[playback_3gpp] => true
[playback_3g2] => false
[playback_mp4] => true
[playback_mov] => false
[playback_acodec_amr] => nb
[playback_acodec_aac] => lc
[playback_df_size_limit] => 0
[playback_directdownload_size_limit] => 0
[playback_inline_size_limit] => 0
[playback_oma_size_limit] => 0
[playback_acodec_qcelp] => false
[playback_wmv] => none
[hinted_progressive_download] => false
[html_preferred_dtd] => xhtml_mp1
[viewport_supported] => false
[viewport_width] =>
[viewport_userscalable] =>
[viewport_initial_scale] =>
[viewport_maximum_scale] =>
[viewport_minimum_scale] =>
[mobileoptimized] => false
[handheldfriendly] => false
[canvas_support] => none
[image_inlining] => true
[is_smarttv] => false
[is_console] => false
[nfc_support] => false
[ux_full_desktop] => false
[jqm_grade] => none
[is_sencha_touch_ok] => false
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>Zsxsoft<br /><small>1.3</small><br /></td><td>NetFront 3.3</td><td><i class="material-icons">close</i></td><td> </td><td style="border-left: 1px solid #555">SonyEricsson</td><td>W850iv</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-5d43e024-b46c-44f6-8914-529b05569bc2">Detail</a>
<!-- Modal Structure -->
<div id="modal-5d43e024-b46c-44f6-8914-529b05569bc2" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Zsxsoft result detail</h4>
<p><pre><code class="php">Array
(
[browser] => Array
(
[link] => http://www.access-company.com/
[title] => NetFront 3.3
[code] => netfront
[version] => 3.3
[name] => NetFront
[image] => img/16/browser/netfront.png
)
[os] => Array
(
[link] =>
[name] =>
[version] =>
[code] => null
[x64] =>
[title] =>
[type] => os
[dir] => os
[image] => img/16/os/null.png
)
[device] => Array
(
[link] => http://en.wikipedia.org/wiki/SonyEricsson
[title] => SonyEricsson W850iv
[model] => W850iv
[brand] => SonyEricsson
[code] => sonyericsson
[dir] => device
[type] => device
[image] => img/16/device/sonyericsson.png
)
[platform] => Array
(
[link] => http://en.wikipedia.org/wiki/SonyEricsson
[title] => SonyEricsson W850iv
[model] => W850iv
[brand] => SonyEricsson
[code] => sonyericsson
[dir] => device
[type] => device
[image] => img/16/device/sonyericsson.png
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr></table>
</div>
<div class="section">
<h1 class="header center orange-text">About this comparison</h1>
<div class="row center">
<h5 class="header light">
The primary goal of this project is simple<br />
I wanted to know which user agent parser is the most accurate in each part - device detection, bot detection and so on...<br />
<br />
The secondary goal is to provide a source for all user agent parsers to improve their detection based on this results.<br />
<br />
You can also improve this further, by suggesting ideas at <a href="https://github.com/ThaDafinser/UserAgentParserComparison">ThaDafinser/UserAgentParserComparison</a><br />
<br />
The comparison is based on the abstraction by <a href="https://github.com/ThaDafinser/UserAgentParser">ThaDafinser/UserAgentParser</a>
</h5>
</div>
</div>
<div class="card">
<div class="card-content">
Comparison created <i>2016-05-10 07:54:55</i> | by
<a href="https://github.com/ThaDafinser">ThaDafinser</a>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/list.js/1.2.0/list.min.js"></script>
<script>
$(document).ready(function(){
// the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered
$('.modal-trigger').leanModal();
});
</script>
</body>
</html> | ThaDafinser/UserAgentParserComparison | v5/user-agent-detail/35/b3/35b394d8-18ec-401d-b768-7f610a83b80c.html | HTML | mit | 48,773 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>exceptions: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.11.2 / exceptions - 8.9.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
exceptions
<small>
8.9.0
<span class="label label-info">Not compatible</span>
</small>
</h1>
<p><em><script>document.write(moment("2020-09-11 16:27:45 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-09-11 16:27:45 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
conf-m4 1 Virtual package relying on m4
coq 8.11.2 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.8.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/coq-contribs/exceptions"
license: "LGPL 2.1"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/Exceptions"]
depends: [
"ocaml"
"coq" {>= "8.9" & < "8.10~"}
]
tags: [
"keyword: exceptions"
"keyword: continuations"
"category: Computer Science/Semantics and Compilation/Semantics"
]
authors: [
"Pierre Castéran"
]
bug-reports: "https://github.com/coq-contribs/exceptions/issues"
dev-repo: "git+https://github.com/coq-contribs/exceptions.git"
synopsis: "Pro[gramm,v]ing with continuations:A development in Coq"
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/exceptions/archive/v8.9.0.tar.gz"
checksum: "md5=9e283687f9337ae021f0b8bf0ea7377e"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-exceptions.8.9.0 coq.8.11.2</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.11.2).
The following dependencies couldn't be met:
- coq-exceptions -> coq < 8.10~ -> ocaml < 4.03.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-exceptions.8.9.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
<small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small>
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.6/released/8.11.2/exceptions/8.9.0.html | HTML | mit | 6,818 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>stalmarck: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.10.0 / stalmarck - 8.9.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
stalmarck
<small>
8.9.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-11-03 02:25:39 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-11-03 02:25:39 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
coq 8.10.0 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.08.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.08.1 Official release 4.08.1
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/coq-community/stalmarck"
dev-repo: "git+https://github.com/coq-community/stalmarck.git"
bug-reports: "https://github.com/coq-community/stalmarck/issues"
license: "LGPL-2.1-or-later"
synopsis: "Proof of Stålmarck's algorithm in Coq"
description: """
A two-level approach to prove tautologies using Stålmarck's algorithm in Coq.
"""
build: [make "-j%{jobs}%"]
install: [make "install"]
depends: [
"ocaml"
"coq" {>= "8.9" & < "8.10~"}
]
tags: [
"category:Computer Science/Decision Procedures and Certified Algorithms/Decision procedures"
"category:Miscellaneous/Extracted Programs/Decision procedures"
"keyword:boolean formula"
"keyword:tautology checker"
"logpath:Stalmarck"
"date:2019-05-19"
]
authors: [
"Pierre Letouzey"
"Laurent Théry"
]
url {
src: "https://github.com/coq-community/stalmarck/archive/v8.9.0.tar.gz"
checksum: "sha256=c0c6958e059d632cca0d0e67ff673d996abb0c9e389ecdffa9d1e1186884168b"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-stalmarck.8.9.0 coq.8.10.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.10.0).
The following dependencies couldn't be met:
- coq-stalmarck -> coq < 8.10~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-stalmarck.8.9.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.08.1-2.0.5/released/8.10.0/stalmarck/8.9.0.html | HTML | mit | 6,949 |
const fs = require('fs');
class Loader {
static extend (name, loader) {
return { name, loader };
}
static get (name, options) {
const item = options.loaders.find((loader) => name === loader.name);
if (!item) {
throw new Error(`Missing loader for ${name}`);
}
return item.loader;
}
static getFileContent (filename, options) {
return fs.readFileSync(filename, options).toString();
}
constructor (options) {
this.options = options;
}
/* istanbul ignore next */
/* eslint-disable-next-line class-methods-use-this */
load () {
throw new Error('Cannot call abstract Loader.load() method');
}
emitTemplate (source) {
this.options.source.template = source || '';
return Promise.resolve();
}
emitScript (source) {
this.options.source.script = source || '';
return Promise.resolve();
}
emitErrors (errors) {
this.options.source.errors.push(...errors);
return Promise.resolve();
}
pipe (name, source) {
const LoaderClass = Loader.get(name, this.options);
return new LoaderClass(this.options).load(source);
}
}
module.exports = Loader;
| vuedoc/parser | lib/Loader.js | JavaScript | mit | 1,150 |
//
// MSProfileViewController.h
// Minsta
//
// Created by maocl023 on 16/5/12.
// Copyright © 2016年 jjj2mdd. All rights reserved.
//
#import <AsyncDisplayKit/AsyncDisplayKit.h>
@interface MSProfileViewController : ASViewController
@end
| jjj2mdd/Minsta | Minsta/Controllers/MSProfileViewController.h | C | mit | 247 |
package org.ayo.ui.sample.material;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.content.Context;
import android.support.design.widget.CoordinatorLayout;
import android.support.v4.view.ViewCompat;
import android.util.AttributeSet;
import android.view.View;
import org.ayo.animate.yoyo.Techniques;
import org.ayo.animate.yoyo.YoYo;
import org.ayo.view.widget.TitleBar;
/**
* FloatingActionBar会跟着ScrollView缩小
*/
public class ScaleTitlebarBehavior extends CoordinatorLayout.Behavior<TitleBar> {
public ScaleTitlebarBehavior(Context context, AttributeSet attrs) {
super();
}
@Override
public boolean onStartNestedScroll(CoordinatorLayout coordinatorLayout, TitleBar child,
View directTargetChild, View target, int nestedScrollAxes) {
return nestedScrollAxes == ViewCompat.SCROLL_AXIS_VERTICAL ||
super.onStartNestedScroll(coordinatorLayout, child, directTargetChild, target,
nestedScrollAxes);
}
@Override
public void onNestedScroll(CoordinatorLayout coordinatorLayout, final TitleBar child,
View target, int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed) {
super.onNestedScroll(coordinatorLayout, child, target, dxConsumed, dyConsumed, dxUnconsumed, dyUnconsumed);
if (dyConsumed > 0 && child.getVisibility() == View.VISIBLE) {
//child.setVisibility(View.GONE);
YoYo.with(Techniques.ZoomOut).duration(300).listen(new AnimatorListenerAdapter() {
@Override
public void onAnimationStart(Animator animation) {
}
@Override
public void onAnimationEnd(Animator animation) {
child.setVisibility(View.GONE);
}
@Override
public void onAnimationCancel(Animator animation) {
}
@Override
public void onAnimationRepeat(Animator animation) {
}
}).playOn(child);
} else if (dyConsumed < 0 && child.getVisibility() != View.VISIBLE) {
YoYo.with(Techniques.ZoomIn).duration(300).listen(new AnimatorListenerAdapter() {
@Override
public void onAnimationStart(Animator animation) {
}
@Override
public void onAnimationEnd(Animator animation) {
child.setVisibility(View.VISIBLE);
}
@Override
public void onAnimationCancel(Animator animation) {
}
@Override
public void onAnimationRepeat(Animator animation) {
}
}).playOn(child);
}
}
}
| cowthan/Ayo2022 | Ayo/app/src/main/java/org/ayo/ui/sample/material/ScaleTitlebarBehavior.java | Java | mit | 2,886 |
/**
* @license angular-sortable-column
* (c) 2013 Knight Rider Consulting, Inc. http://www.knightrider.com
* License: MIT
*/
/**
*
* @author Dale "Ducky" Lotts
* @since 7/21/13
*/
basePath = '..';
files = [
JASMINE,
JASMINE_ADAPTER,
'bower_components/jquery/dist/jquery.js',
'bower_components/angular/angular.js',
'bower_components/angular-route/angular-route.js',
'bower_components/angular-mocks/angular-mocks.js',
'src/js/sortableColumn.js',
'test/*.spec.js'
];
// list of files to exclude
exclude = [
];
preprocessors = {
'**/src/js/*.js': 'coverage'
};
// test results reporter to use
// possible values: 'dots', 'progress', 'junit'
reporters = ['progress', 'coverage'];
// web server port
port = 9876;
// cli runner port
runnerPort = 9100;
// enable / disable colors in the output (reporters and logs)
colors = true;
// level of logging
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
logLevel = LOG_INFO;
// enable / disable watching file and executing tests whenever any file changes
autoWatch = false;
// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari (only Mac)
// - PhantomJS
// - IE (only Windows)
browsers = ['Chrome'];
// If browser does not capture in given timeout [ms], kill it
captureTimeout = 60000;
// Continuous Integration mode
// if true, it capture browsers, run tests and exit
singleRun = true; | dalelotts/angular-sortable-column | test/test.conf.js | JavaScript | mit | 1,481 |
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>CMsgGCCStrike15V2ClientToGCRequestTicket | demofile</title>
<meta name="description" content="Documentation for demofile">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
</head>
<body>
<header>
<div class="tsd-page-toolbar">
<div class="container">
<div class="table-wrap">
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
<div class="field">
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
<input id="tsd-search-field" type="text" />
</div>
<ul class="results">
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../index.html" class="title">demofile</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
<div class="tsd-filter-group">
<div class="tsd-select" id="tsd-filter-visibility">
<span class="tsd-select-label">All</span>
<ul class="tsd-select-list">
<li data-value="public">Public</li>
<li data-value="protected">Public/Protected</li>
<li data-value="private" class="selected">All</li>
</ul>
</div>
<input type="checkbox" id="tsd-filter-inherited" checked />
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
<input type="checkbox" id="tsd-filter-externals" checked />
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
<input type="checkbox" id="tsd-filter-only-exported" />
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
</div>
</div>
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
</div>
</div>
</div>
</div>
<div class="tsd-page-title">
<div class="container">
<ul class="tsd-breadcrumb">
<li>
<a href="../globals.html">Globals</a>
</li>
<li>
<a href="../modules/_protobufs_cstrike15_gcmessages_.html">"protobufs/cstrike15_gcmessages"</a>
</li>
<li>
<a href="_protobufs_cstrike15_gcmessages_.cmsggccstrike15v2clienttogcrequestticket.html">CMsgGCCStrike15V2ClientToGCRequestTicket</a>
</li>
</ul>
<h1>Interface CMsgGCCStrike15V2ClientToGCRequestTicket</h1>
</div>
</div>
</header>
<div class="container container-main">
<div class="row">
<div class="col-8 col-content">
<section class="tsd-panel tsd-hierarchy">
<h3>Hierarchy</h3>
<ul class="tsd-hierarchy">
<li>
<span class="target">CMsgGCCStrike15V2ClientToGCRequestTicket</span>
</li>
</ul>
</section>
<section class="tsd-panel-group tsd-index-group">
<h2>Index</h2>
<section class="tsd-panel tsd-index-panel">
<div class="tsd-index-content">
<section class="tsd-index-section ">
<h3>Properties</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="_protobufs_cstrike15_gcmessages_.cmsggccstrike15v2clienttogcrequestticket.html#authorizedpublicip" class="tsd-kind-icon">authorized<wbr>Public<wbr>Ip</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="_protobufs_cstrike15_gcmessages_.cmsggccstrike15v2clienttogcrequestticket.html#authorizedsteamid" class="tsd-kind-icon">authorized<wbr>Steam<wbr>Id</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="_protobufs_cstrike15_gcmessages_.cmsggccstrike15v2clienttogcrequestticket.html#gameserversdrrouting" class="tsd-kind-icon">gameserver<wbr>Sdr<wbr>Routing</a></li>
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="_protobufs_cstrike15_gcmessages_.cmsggccstrike15v2clienttogcrequestticket.html#gameserversteamid" class="tsd-kind-icon">gameserver<wbr>Steam<wbr>Id</a></li>
</ul>
</section>
</div>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
<a name="authorizedpublicip" class="tsd-anchor"></a>
<h3>authorized<wbr>Public<wbr>Ip</h3>
<div class="tsd-signature tsd-kind-icon">authorized<wbr>Public<wbr>Ip<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/saul/demofile/blob/b4d2298/src/protobufs/cstrike15_gcmessages.ts#L1207">src/protobufs/cstrike15_gcmessages.ts:1207</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
<a name="authorizedsteamid" class="tsd-anchor"></a>
<h3>authorized<wbr>Steam<wbr>Id</h3>
<div class="tsd-signature tsd-kind-icon">authorized<wbr>Steam<wbr>Id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Long</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/saul/demofile/blob/b4d2298/src/protobufs/cstrike15_gcmessages.ts#L1206">src/protobufs/cstrike15_gcmessages.ts:1206</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
<a name="gameserversdrrouting" class="tsd-anchor"></a>
<h3>gameserver<wbr>Sdr<wbr>Routing</h3>
<div class="tsd-signature tsd-kind-icon">gameserver<wbr>Sdr<wbr>Routing<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/saul/demofile/blob/b4d2298/src/protobufs/cstrike15_gcmessages.ts#L1209">src/protobufs/cstrike15_gcmessages.ts:1209</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
<a name="gameserversteamid" class="tsd-anchor"></a>
<h3>gameserver<wbr>Steam<wbr>Id</h3>
<div class="tsd-signature tsd-kind-icon">gameserver<wbr>Steam<wbr>Id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Long</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/saul/demofile/blob/b4d2298/src/protobufs/cstrike15_gcmessages.ts#L1208">src/protobufs/cstrike15_gcmessages.ts:1208</a></li>
</ul>
</aside>
</section>
</section>
</div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<nav class="tsd-navigation primary">
<ul>
<li class="globals ">
<a href="../globals.html"><em>Globals</em></a>
</li>
<li class="current tsd-kind-module">
<a href="../modules/_protobufs_cstrike15_gcmessages_.html">"protobufs/cstrike15_<wbr>gcmessages"</a>
</li>
</ul>
</nav>
<nav class="tsd-navigation secondary menu-sticky">
<ul class="before-current">
</ul>
<ul class="current">
<li class="current tsd-kind-interface tsd-parent-kind-module">
<a href="_protobufs_cstrike15_gcmessages_.cmsggccstrike15v2clienttogcrequestticket.html" class="tsd-kind-icon">CMsgGCCStrike15<wbr>V2Client<wbr>ToGCRequest<wbr>Ticket</a>
<ul>
<li class=" tsd-kind-property tsd-parent-kind-interface">
<a href="_protobufs_cstrike15_gcmessages_.cmsggccstrike15v2clienttogcrequestticket.html#authorizedpublicip" class="tsd-kind-icon">authorized<wbr>Public<wbr>Ip</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface">
<a href="_protobufs_cstrike15_gcmessages_.cmsggccstrike15v2clienttogcrequestticket.html#authorizedsteamid" class="tsd-kind-icon">authorized<wbr>Steam<wbr>Id</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface">
<a href="_protobufs_cstrike15_gcmessages_.cmsggccstrike15v2clienttogcrequestticket.html#gameserversdrrouting" class="tsd-kind-icon">gameserver<wbr>Sdr<wbr>Routing</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-interface">
<a href="_protobufs_cstrike15_gcmessages_.cmsggccstrike15v2clienttogcrequestticket.html#gameserversteamid" class="tsd-kind-icon">gameserver<wbr>Steam<wbr>Id</a>
</li>
</ul>
</li>
</ul>
<ul class="after-current">
</ul>
</nav>
</div>
</div>
</div>
<footer class="with-border-bottom">
<div class="container">
<h2>Legend</h2>
<div class="tsd-legend-group">
<ul class="tsd-legend">
<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
<li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
</ul>
</div>
</div>
</footer>
<div class="container tsd-generator">
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
</body>
</html> | saul/demofile | docs/interfaces/_protobufs_cstrike15_gcmessages_.cmsggccstrike15v2clienttogcrequestticket.html | HTML | mit | 10,385 |
/*
* The MIT License
*
* Copyright 2019 Intuit Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package com.intuit.karate.job;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.function.Predicate;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
import java.util.zip.ZipOutputStream;
/**
*
* @author pthomas3
*/
public class JobUtils {
public static void zip(File src, File dest) {
try {
src = src.getCanonicalFile();
FileOutputStream fos = new FileOutputStream(dest);
ZipOutputStream zipOut = new ZipOutputStream(fos);
zip(src, "", zipOut, 0);
zipOut.close();
fos.close();
} catch (IOException e) {
throw new RuntimeException(e);
}
}
private static void zip(File fileToZip, String fileName, ZipOutputStream zipOut, int level) throws IOException {
if (fileToZip.isHidden()) {
return;
}
if (fileToZip.isDirectory()) {
String entryName = fileName;
zipOut.putNextEntry(new ZipEntry(entryName + "/"));
zipOut.closeEntry();
File[] children = fileToZip.listFiles();
for (File childFile : children) {
String childFileName = childFile.getName();
// TODO improve ?
if (childFileName.equals("target") || childFileName.equals("build")) {
continue;
}
if (level != 0) {
childFileName = entryName + "/" + childFileName;
}
zip(childFile, childFileName, zipOut, level + 1);
}
return;
}
ZipEntry zipEntry = new ZipEntry(fileName);
zipOut.putNextEntry(zipEntry);
FileInputStream fis = new FileInputStream(fileToZip);
byte[] bytes = new byte[1024];
int length;
while ((length = fis.read(bytes)) >= 0) {
zipOut.write(bytes, 0, length);
}
fis.close();
}
public static void unzip(File src, File dest) {
try {
byte[] buffer = new byte[1024];
ZipInputStream zis = new ZipInputStream(new FileInputStream(src));
ZipEntry zipEntry = zis.getNextEntry();
while (zipEntry != null) {
File newFile = createFile(dest, zipEntry);
if (zipEntry.isDirectory()) {
newFile.mkdirs();
} else {
File parentFile = newFile.getParentFile();
if (parentFile != null && !parentFile.exists()) {
parentFile.mkdirs();
}
FileOutputStream fos = new FileOutputStream(newFile);
int len;
while ((len = zis.read(buffer)) > 0) {
fos.write(buffer, 0, len);
}
fos.close();
}
zipEntry = zis.getNextEntry();
}
zis.closeEntry();
zis.close();
} catch (IOException e) {
throw new RuntimeException(e);
}
}
private static File createFile(File destinationDir, ZipEntry zipEntry) throws IOException {
File destFile = new File(destinationDir, zipEntry.getName());
String destDirPath = destinationDir.getCanonicalPath();
String destFilePath = destFile.getCanonicalPath();
if (!destFilePath.startsWith(destDirPath)) {
throw new IOException("entry outside target dir: " + zipEntry.getName());
}
return destFile;
}
public static File getFirstFileMatching(File parent, Predicate<String> predicate) {
File[] files = parent.listFiles((f, n) -> predicate.test(n));
return files == null || files.length == 0 ? null : files[0];
}
}
| intuit/karate | karate-core/src/main/java/com/intuit/karate/job/JobUtils.java | Java | mit | 5,009 |
const storage = require("./storage");
const recognition = require("./recognition");
async function labelPictures(bucketName) {
const bucket = await storage.getOrCreateBucket(bucketName);
const fileNames = await storage.ls(bucket);
for (const file of fileNames) {
console.log(`Retrieve labels for file ${file.name}`);
try {
const labels = await recognition.getLabels(file.metadata.mediaLink);
const metadata = {
metadata: {
labels: JSON.stringify(labels)
}
};
console.log(`Set metadata for file ${file.name}`);
await storage.setMetadata(file, metadata);
} catch (ex) {
console.warn("Failed to set metadata for file ${file.name}", ex);
}
}
}
async function main(bucketName) {
try {
await labelPictures(bucketName);
} catch (error) {
console.error(error);
}
}
if (process.argv.length < 3) {
throw new Error("Please specify a bucket name");
}
main(process.argv[2]);
| zack17/klio-picture-labeler | labler.js | JavaScript | mit | 1,072 |
//
// GKCartServiceMock.h
// GKCommerce
//
// Created by 小悟空 on 1/31/15.
// Copyright (c) 2015 GKCommerce. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface GKCartServiceMock : NSObject
- (RACSignal *)fetchCartWithUser:(GKUser *)user;
- (RACSignal *)addItem:(CartItem *)item;
- (RACSignal *)addItemWithProduct:(Product *)product cart:(Cart *)aCart;
- (RACSignal *)updateItem:(CartItem *)item oldQuantity:(NSInteger)anOldQuantity;
- (RACSignal *)removeItem:(CartItem *)item;
- (RACSignal *)removeItems:(NSArray *)items;
@end
| gokush/GKCommerce | GKCommerce/GKCommerce/Cart/GKCartServiceMock.h | C | mit | 556 |
require "magnitude"
describe Magnitude::Registry do
context "#register" do
it "registers a unit and returns an instance" do
result = subject.register(:length, name: "meter", abbr: :m)
expect(result).to be_kind_of(Magnitude::Unit)
expect(result.name).to eq("meter")
end
end
context "#fetch" do
before{ subject.register :mass, name: "Pound", abbr: :lb }
it "finds unit by abbreviation" do
result = subject.fetch(:lb)
expect(result).to be_kind_of(Magnitude::Unit)
expect(result.name).to eq("Pound")
end
it "finds unit by name" do
result = subject.fetch("Pound")
expect(result).to be_kind_of(Magnitude::Unit)
expect(result.name).to eq("Pound")
end
it "finds unit by plural name" do
result = subject.fetch("Pounds")
expect(result).to be_kind_of(Magnitude::Unit)
expect(result.name).to eq("Pound")
end
it "finds unit by lower cased name" do
result = subject.fetch("pound")
expect(result).to be_kind_of(Magnitude::Unit)
expect(result.name).to eq("Pound")
end
it "finds unit by lower cased name" do
result = subject.fetch("pounds")
expect(result).to be_kind_of(Magnitude::Unit)
expect(result.name).to eq("Pound")
end
it "raises unknown unit error" do
action = ->{ subject.fetch(:foo) }
expect(&action).to raise_error(Magnitude::UnknownUnitError, "unknown unit: foo")
end
it "raises unknown type error" do
action = ->{ subject.fetch(:foo, type: :bar) }
expect(&action).to raise_error(Magnitude::UnknownTypeError, "unknown type: bar")
end
context "ambiguous unit" do
before{ subject.register :force, name: "Pound", abbr: :lb }
it "raises ambiguous error" do
action = ->{ subject.fetch(:lb) }
expect(&action).to raise_error(Magnitude::AmbiguousUnitError, "ambiguous unit: lb. Possible types: mass, force")
end
end
end
end
| rwz/magnitude | spec/registry_spec.rb | Ruby | mit | 1,972 |
'use strict';
describe('TestComponent', function () {
var componentController;
beforeEach(module('APPLICATION'));
beforeEach(inject(function ($componentController) {
componentController = $componentController('testComponent', null, {
test: {
data: 'data'
}
});
}));
it('is defined', function () {
expect(componentController).toBeDefined();
});
describe('when called', function () {
it('modifyTestData modifies test data', function () {
componentController.data = 'data';
componentController.modifyTestData();
expect(componentController.data).toBe(' edited in the component controller');
});
});
});
| tomtomssi/AngularTemplate | app/component/test_component/TestComponent.spec.js | JavaScript | mit | 754 |
/*******************************************************************************
Copyright © 2016, STMicroelectronics International N.V.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of STMicroelectronics nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND
NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS ARE DISCLAIMED.
IN NO EVENT SHALL STMICROELECTRONICS INTERNATIONAL N.V. BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
******************************************************************************/
#include "vl53l0x_api.h"
#include "vl53l0x_api_core.h"
#include "vl53l0x_api_strings.h"
#ifndef __KERNEL__
#include <stdlib.h>
#endif
#define LOG_FUNCTION_START(fmt, ...) \
_LOG_FUNCTION_START(TRACE_MODULE_API, fmt, ##__VA_ARGS__)
#define LOG_FUNCTION_END(status, ...) \
_LOG_FUNCTION_END(TRACE_MODULE_API, status, ##__VA_ARGS__)
#define LOG_FUNCTION_END_FMT(status, fmt, ...) \
_LOG_FUNCTION_END_FMT(TRACE_MODULE_API, status, fmt, ##__VA_ARGS__)
VL53L0X_Error VL53L0X_check_part_used(VL53L0X_DEV Dev,
uint8_t *Revision,
VL53L0X_DeviceInfo_t *pVL53L0X_DeviceInfo) {
VL53L0X_Error Status = VL53L0X_ERROR_NONE;
uint8_t ModuleIdInt;
char *ProductId_tmp;
LOG_FUNCTION_START("");
Status = VL53L0X_get_info_from_device(Dev, 2);
if (Status == VL53L0X_ERROR_NONE) {
ModuleIdInt = VL53L0X_GETDEVICESPECIFICPARAMETER(Dev, ModuleId);
if (ModuleIdInt == 0) {
*Revision = 0;
VL53L0X_COPYSTRING(pVL53L0X_DeviceInfo->ProductId, "");
} else {
*Revision = VL53L0X_GETDEVICESPECIFICPARAMETER(Dev, Revision);
ProductId_tmp = VL53L0X_GETDEVICESPECIFICPARAMETER(Dev,
ProductId);
VL53L0X_COPYSTRING(pVL53L0X_DeviceInfo->ProductId, ProductId_tmp);
}
}
LOG_FUNCTION_END(Status);
return Status;
}
VL53L0X_Error VL53L0X_get_device_info(VL53L0X_DEV Dev,
VL53L0X_DeviceInfo_t *pVL53L0X_DeviceInfo) {
VL53L0X_Error Status = VL53L0X_ERROR_NONE;
uint8_t revision_id;
uint8_t Revision;
Status = VL53L0X_check_part_used(Dev, &Revision, pVL53L0X_DeviceInfo);
if (Status == VL53L0X_ERROR_NONE) {
if (Revision == 0) {
VL53L0X_COPYSTRING(pVL53L0X_DeviceInfo->Name,
VL53L0X_STRING_DEVICE_INFO_NAME_TS0);
} else if ((Revision <= 34) && (Revision != 32)) {
VL53L0X_COPYSTRING(pVL53L0X_DeviceInfo->Name,
VL53L0X_STRING_DEVICE_INFO_NAME_TS1);
} else if (Revision < 39) {
VL53L0X_COPYSTRING(pVL53L0X_DeviceInfo->Name,
VL53L0X_STRING_DEVICE_INFO_NAME_TS2);
} else {
VL53L0X_COPYSTRING(pVL53L0X_DeviceInfo->Name,
VL53L0X_STRING_DEVICE_INFO_NAME_ES1);
}
VL53L0X_COPYSTRING(pVL53L0X_DeviceInfo->Type,
VL53L0X_STRING_DEVICE_INFO_TYPE);
}
if (Status == VL53L0X_ERROR_NONE) {
Status = VL53L0X_RdByte(Dev, VL53L0X_REG_IDENTIFICATION_MODEL_ID,
&pVL53L0X_DeviceInfo->ProductType);
}
if (Status == VL53L0X_ERROR_NONE) {
Status = VL53L0X_RdByte(Dev,
VL53L0X_REG_IDENTIFICATION_REVISION_ID,
&revision_id);
pVL53L0X_DeviceInfo->ProductRevisionMajor = 1;
pVL53L0X_DeviceInfo->ProductRevisionMinor =
(revision_id & 0xF0) >> 4;
}
return Status;
}
VL53L0X_Error VL53L0X_get_device_error_string(VL53L0X_DeviceError ErrorCode,
char *pDeviceErrorString) {
VL53L0X_Error Status = VL53L0X_ERROR_NONE;
LOG_FUNCTION_START("");
switch (ErrorCode) {
case VL53L0X_DEVICEERROR_NONE:
VL53L0X_COPYSTRING(pDeviceErrorString,
VL53L0X_STRING_DEVICEERROR_NONE);
break;
case VL53L0X_DEVICEERROR_VCSELCONTINUITYTESTFAILURE:
VL53L0X_COPYSTRING(pDeviceErrorString,
VL53L0X_STRING_DEVICEERROR_VCSELCONTINUITYTESTFAILURE);
break;
case VL53L0X_DEVICEERROR_VCSELWATCHDOGTESTFAILURE:
VL53L0X_COPYSTRING(pDeviceErrorString,
VL53L0X_STRING_DEVICEERROR_VCSELWATCHDOGTESTFAILURE);
break;
case VL53L0X_DEVICEERROR_NOVHVVALUEFOUND:
VL53L0X_COPYSTRING(pDeviceErrorString,
VL53L0X_STRING_DEVICEERROR_NOVHVVALUEFOUND);
break;
case VL53L0X_DEVICEERROR_MSRCNOTARGET:
VL53L0X_COPYSTRING(pDeviceErrorString,
VL53L0X_STRING_DEVICEERROR_MSRCNOTARGET);
break;
case VL53L0X_DEVICEERROR_SNRCHECK:
VL53L0X_COPYSTRING(pDeviceErrorString,
VL53L0X_STRING_DEVICEERROR_SNRCHECK);
break;
case VL53L0X_DEVICEERROR_RANGEPHASECHECK:
VL53L0X_COPYSTRING(pDeviceErrorString,
VL53L0X_STRING_DEVICEERROR_RANGEPHASECHECK);
break;
case VL53L0X_DEVICEERROR_SIGMATHRESHOLDCHECK:
VL53L0X_COPYSTRING(pDeviceErrorString,
VL53L0X_STRING_DEVICEERROR_SIGMATHRESHOLDCHECK);
break;
case VL53L0X_DEVICEERROR_TCC:
VL53L0X_COPYSTRING(pDeviceErrorString,
VL53L0X_STRING_DEVICEERROR_TCC);
break;
case VL53L0X_DEVICEERROR_PHASECONSISTENCY:
VL53L0X_COPYSTRING(pDeviceErrorString,
VL53L0X_STRING_DEVICEERROR_PHASECONSISTENCY);
break;
case VL53L0X_DEVICEERROR_MINCLIP:
VL53L0X_COPYSTRING(pDeviceErrorString,
VL53L0X_STRING_DEVICEERROR_MINCLIP);
break;
case VL53L0X_DEVICEERROR_RANGECOMPLETE:
VL53L0X_COPYSTRING(pDeviceErrorString,
VL53L0X_STRING_DEVICEERROR_RANGECOMPLETE);
break;
case VL53L0X_DEVICEERROR_ALGOUNDERFLOW:
VL53L0X_COPYSTRING(pDeviceErrorString,
VL53L0X_STRING_DEVICEERROR_ALGOUNDERFLOW);
break;
case VL53L0X_DEVICEERROR_ALGOOVERFLOW:
VL53L0X_COPYSTRING(pDeviceErrorString,
VL53L0X_STRING_DEVICEERROR_ALGOOVERFLOW);
break;
case VL53L0X_DEVICEERROR_RANGEIGNORETHRESHOLD:
VL53L0X_COPYSTRING(pDeviceErrorString,
VL53L0X_STRING_DEVICEERROR_RANGEIGNORETHRESHOLD);
break;
default:
VL53L0X_COPYSTRING(pDeviceErrorString,
VL53L0X_STRING_UNKNOW_ERROR_CODE);
}
LOG_FUNCTION_END(Status);
return Status;
}
VL53L0X_Error VL53L0X_get_range_status_string(uint8_t RangeStatus,
char *pRangeStatusString) {
VL53L0X_Error Status = VL53L0X_ERROR_NONE;
LOG_FUNCTION_START("");
switch (RangeStatus) {
case 0:
VL53L0X_COPYSTRING(pRangeStatusString,
VL53L0X_STRING_RANGESTATUS_RANGEVALID);
break;
case 1:
VL53L0X_COPYSTRING(pRangeStatusString,
VL53L0X_STRING_RANGESTATUS_SIGMA);
break;
case 2:
VL53L0X_COPYSTRING(pRangeStatusString,
VL53L0X_STRING_RANGESTATUS_SIGNAL);
break;
case 3:
VL53L0X_COPYSTRING(pRangeStatusString,
VL53L0X_STRING_RANGESTATUS_MINRANGE);
break;
case 4:
VL53L0X_COPYSTRING(pRangeStatusString,
VL53L0X_STRING_RANGESTATUS_PHASE);
break;
case 5:
VL53L0X_COPYSTRING(pRangeStatusString,
VL53L0X_STRING_RANGESTATUS_HW);
break;
default: /**/
VL53L0X_COPYSTRING(pRangeStatusString,
VL53L0X_STRING_RANGESTATUS_NONE);
}
LOG_FUNCTION_END(Status);
return Status;
}
VL53L0X_Error VL53L0X_get_pal_error_string(VL53L0X_Error PalErrorCode,
char *pPalErrorString) {
VL53L0X_Error Status = VL53L0X_ERROR_NONE;
LOG_FUNCTION_START("");
switch (PalErrorCode) {
case VL53L0X_ERROR_NONE:
VL53L0X_COPYSTRING(pPalErrorString,
VL53L0X_STRING_ERROR_NONE);
break;
case VL53L0X_ERROR_CALIBRATION_WARNING:
VL53L0X_COPYSTRING(pPalErrorString,
VL53L0X_STRING_ERROR_CALIBRATION_WARNING);
break;
case VL53L0X_ERROR_MIN_CLIPPED:
VL53L0X_COPYSTRING(pPalErrorString,
VL53L0X_STRING_ERROR_MIN_CLIPPED);
break;
case VL53L0X_ERROR_UNDEFINED:
VL53L0X_COPYSTRING(pPalErrorString,
VL53L0X_STRING_ERROR_UNDEFINED);
break;
case VL53L0X_ERROR_INVALID_PARAMS:
VL53L0X_COPYSTRING(pPalErrorString,
VL53L0X_STRING_ERROR_INVALID_PARAMS);
break;
case VL53L0X_ERROR_NOT_SUPPORTED:
VL53L0X_COPYSTRING(pPalErrorString,
VL53L0X_STRING_ERROR_NOT_SUPPORTED);
break;
case VL53L0X_ERROR_INTERRUPT_NOT_CLEARED:
VL53L0X_COPYSTRING(pPalErrorString,
VL53L0X_STRING_ERROR_INTERRUPT_NOT_CLEARED);
break;
case VL53L0X_ERROR_RANGE_ERROR:
VL53L0X_COPYSTRING(pPalErrorString,
VL53L0X_STRING_ERROR_RANGE_ERROR);
break;
case VL53L0X_ERROR_TIME_OUT:
VL53L0X_COPYSTRING(pPalErrorString,
VL53L0X_STRING_ERROR_TIME_OUT);
break;
case VL53L0X_ERROR_MODE_NOT_SUPPORTED:
VL53L0X_COPYSTRING(pPalErrorString,
VL53L0X_STRING_ERROR_MODE_NOT_SUPPORTED);
break;
case VL53L0X_ERROR_BUFFER_TOO_SMALL:
VL53L0X_COPYSTRING(pPalErrorString,
VL53L0X_STRING_ERROR_BUFFER_TOO_SMALL);
break;
case VL53L0X_ERROR_GPIO_NOT_EXISTING:
VL53L0X_COPYSTRING(pPalErrorString,
VL53L0X_STRING_ERROR_GPIO_NOT_EXISTING);
break;
case VL53L0X_ERROR_GPIO_FUNCTIONALITY_NOT_SUPPORTED:
VL53L0X_COPYSTRING(pPalErrorString,
VL53L0X_STRING_ERROR_GPIO_FUNCTIONALITY_NOT_SUPPORTED);
break;
case VL53L0X_ERROR_CONTROL_INTERFACE:
VL53L0X_COPYSTRING(pPalErrorString,
VL53L0X_STRING_ERROR_CONTROL_INTERFACE);
break;
case VL53L0X_ERROR_INVALID_COMMAND:
VL53L0X_COPYSTRING(pPalErrorString,
VL53L0X_STRING_ERROR_INVALID_COMMAND);
break;
case VL53L0X_ERROR_DIVISION_BY_ZERO:
VL53L0X_COPYSTRING(pPalErrorString,
VL53L0X_STRING_ERROR_DIVISION_BY_ZERO);
break;
case VL53L0X_ERROR_REF_SPAD_INIT:
VL53L0X_COPYSTRING(pPalErrorString,
VL53L0X_STRING_ERROR_REF_SPAD_INIT);
break;
case VL53L0X_ERROR_NOT_IMPLEMENTED:
VL53L0X_COPYSTRING(pPalErrorString,
VL53L0X_STRING_ERROR_NOT_IMPLEMENTED);
break;
default:
VL53L0X_COPYSTRING(pPalErrorString,
VL53L0X_STRING_UNKNOW_ERROR_CODE);
}
LOG_FUNCTION_END(Status);
return Status;
}
VL53L0X_Error VL53L0X_get_pal_state_string(VL53L0X_State PalStateCode,
char *pPalStateString) {
VL53L0X_Error Status = VL53L0X_ERROR_NONE;
LOG_FUNCTION_START("");
switch (PalStateCode) {
case VL53L0X_STATE_POWERDOWN:
VL53L0X_COPYSTRING(pPalStateString,
VL53L0X_STRING_STATE_POWERDOWN);
break;
case VL53L0X_STATE_WAIT_STATICINIT:
VL53L0X_COPYSTRING(pPalStateString,
VL53L0X_STRING_STATE_WAIT_STATICINIT);
break;
case VL53L0X_STATE_STANDBY:
VL53L0X_COPYSTRING(pPalStateString,
VL53L0X_STRING_STATE_STANDBY);
break;
case VL53L0X_STATE_IDLE:
VL53L0X_COPYSTRING(pPalStateString,
VL53L0X_STRING_STATE_IDLE);
break;
case VL53L0X_STATE_RUNNING:
VL53L0X_COPYSTRING(pPalStateString,
VL53L0X_STRING_STATE_RUNNING);
break;
case VL53L0X_STATE_UNKNOWN:
VL53L0X_COPYSTRING(pPalStateString,
VL53L0X_STRING_STATE_UNKNOWN);
break;
case VL53L0X_STATE_ERROR:
VL53L0X_COPYSTRING(pPalStateString,
VL53L0X_STRING_STATE_ERROR);
break;
default:
VL53L0X_COPYSTRING(pPalStateString,
VL53L0X_STRING_STATE_UNKNOWN);
}
LOG_FUNCTION_END(Status);
return Status;
}
VL53L0X_Error VL53L0X_get_sequence_steps_info(
VL53L0X_SequenceStepId SequenceStepId,
char *pSequenceStepsString) {
VL53L0X_Error Status = VL53L0X_ERROR_NONE;
LOG_FUNCTION_START("");
switch (SequenceStepId) {
case VL53L0X_SEQUENCESTEP_TCC:
VL53L0X_COPYSTRING(pSequenceStepsString,
VL53L0X_STRING_SEQUENCESTEP_TCC);
break;
case VL53L0X_SEQUENCESTEP_DSS:
VL53L0X_COPYSTRING(pSequenceStepsString,
VL53L0X_STRING_SEQUENCESTEP_DSS);
break;
case VL53L0X_SEQUENCESTEP_MSRC:
VL53L0X_COPYSTRING(pSequenceStepsString,
VL53L0X_STRING_SEQUENCESTEP_MSRC);
break;
case VL53L0X_SEQUENCESTEP_PRE_RANGE:
VL53L0X_COPYSTRING(pSequenceStepsString,
VL53L0X_STRING_SEQUENCESTEP_PRE_RANGE);
break;
case VL53L0X_SEQUENCESTEP_FINAL_RANGE:
VL53L0X_COPYSTRING(pSequenceStepsString,
VL53L0X_STRING_SEQUENCESTEP_FINAL_RANGE);
break;
default:
Status = VL53L0X_ERROR_INVALID_PARAMS;
}
LOG_FUNCTION_END(Status);
return Status;
}
VL53L0X_Error VL53L0X_get_limit_check_info(VL53L0X_DEV Dev, uint16_t LimitCheckId,
char *pLimitCheckString) {
VL53L0X_Error Status = VL53L0X_ERROR_NONE;
LOG_FUNCTION_START("");
switch (LimitCheckId) {
case VL53L0X_CHECKENABLE_SIGMA_FINAL_RANGE:
VL53L0X_COPYSTRING(pLimitCheckString,
VL53L0X_STRING_CHECKENABLE_SIGMA_FINAL_RANGE);
break;
case VL53L0X_CHECKENABLE_SIGNAL_RATE_FINAL_RANGE:
VL53L0X_COPYSTRING(pLimitCheckString,
VL53L0X_STRING_CHECKENABLE_SIGNAL_RATE_FINAL_RANGE);
break;
case VL53L0X_CHECKENABLE_SIGNAL_REF_CLIP:
VL53L0X_COPYSTRING(pLimitCheckString,
VL53L0X_STRING_CHECKENABLE_SIGNAL_REF_CLIP);
break;
case VL53L0X_CHECKENABLE_RANGE_IGNORE_THRESHOLD:
VL53L0X_COPYSTRING(pLimitCheckString,
VL53L0X_STRING_CHECKENABLE_RANGE_IGNORE_THRESHOLD);
break;
case VL53L0X_CHECKENABLE_SIGNAL_RATE_MSRC:
VL53L0X_COPYSTRING(pLimitCheckString,
VL53L0X_STRING_CHECKENABLE_SIGNAL_RATE_MSRC);
break;
case VL53L0X_CHECKENABLE_SIGNAL_RATE_PRE_RANGE:
VL53L0X_COPYSTRING(pLimitCheckString,
VL53L0X_STRING_CHECKENABLE_SIGNAL_RATE_PRE_RANGE);
break;
default:
VL53L0X_COPYSTRING(pLimitCheckString,
VL53L0X_STRING_UNKNOW_ERROR_CODE);
}
LOG_FUNCTION_END(Status);
return Status;
}
| svanacker/cen-electronic | drivers/tof/vl53l0x/vl53l0x_api_strings.c | C | mit | 17,182 |
/**
* The MIT License (MIT)
*
*
* Copyright (C) 2013 Yu Jing ([email protected])
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute,sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED,INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
*/
#include "dirTraversal.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifndef WIN32 // for linux
#undef __STRICT_ANSI__
#define D_GNU_SOURCE
#define _GNU_SOURCE
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/dir.h>
#else // for windows
#include <io.h>
#endif //WIN32
#ifndef WIN32 // for linux
inline int isDir(const char* path)
{
struct stat st;
lstat(path, &st);
return S_ISDIR(st.st_mode);
}
//
int doTraversal(const char *path, int recursive,file_callback xCallback,void * usr)
{
DIR *pdir;
struct dirent *pdirent;
char tmp[1024];
pdir = opendir(path);
if(pdir)
{
while((pdirent = readdir(pdir)) != 0)
{
//ignore "." && ".."
if(!strcmp(pdirent->d_name, ".")||
!strcmp(pdirent->d_name, "..")) continue;
sprintf(tmp, "%s/%s", path, pdirent->d_name);
xCallback(usr,tmp,isDir(tmp));
//if is Dir and recursive is true , into recursive
if(isDir(tmp) && recursive)
{
doTraversal(tmp, recursive,xCallback,usr);
}
}
}else
{
fprintf(stderr,"opendir error:%s\n", path);
}
closedir(pdir);
return 1;
}
//interface
int dirTraversal(const char *path, int recursive,file_callback xCallback,void * usr)
{
int len;
char tmp[256];
len = strlen(path);
strcpy(tmp, path);
if(tmp[len - 1] == '/') tmp[len -1] = '\0';
if(isDir(tmp))
{
doTraversal(tmp, recursive,xCallback,usr);
}
else
{
//printf("%s\n", path);
xCallback(usr,path,isDir(path));
}
return 1;
}
#else //for windows
/**
*
*/
//int dirTraversal(const char *path, int recursive,file_callback xCallback)
int dirTraversal(const char *path, int recursive,file_callback xCallback,void * usr)
{
int len = strlen(path)+3;
long handle;
char mypath[1024];
char searchpath[1024];
char tmppath[1024];
char nxtpath[1024];
char sp = '/';
int i;
struct _finddata_t fileinfo;
sprintf(mypath,"%s",path);
switch(mypath[len-1])
{
case '\\':
sp = '\\';
len -= 1;
mypath[len-1] = '\0';
break;
case '/':
len -= 1;
mypath[len-1] = '\0';
case '.':
sp = '/';
break;
default :
for(i=0;i<len;i++)
{
if(mypath[i]=='\\'||mypath[i]=='/')
{
sp = mypath[i];
break;
}
}
}
sprintf(tmppath,"%s",mypath);
sprintf(searchpath,"%s%c%s",mypath,sp,"*");
for(handle=_findfirst(searchpath,&fileinfo);!_findnext(handle,&fileinfo);)
{
if(-1==handle) return -1;
//
sprintf(nxtpath,"%s%c%s",tmppath,sp,fileinfo.name);
// call back
if((0 != strcmp(fileinfo.name,"."))
&& (0 != strcmp(fileinfo.name,"..")))
xCallback(usr,nxtpath,((fileinfo.attrib & _A_SUBDIR)!=0));
if(((fileinfo.attrib & _A_SUBDIR)!=0)
&& recursive
&& 0 != strcmp(fileinfo.name,".")
&& 0 != strcmp(fileinfo.name,".."))
dirTraversal(nxtpath,recursive,xCallback,usr);
}
_findclose(handle);
return 1;
}
#endif //end of linux/windows
| yuikns/eiparser | src/dirTraversal.c | C | mit | 4,209 |
//Generated by the Argon Build System
/*
Copyright (C) 2006, 2007 Sony Computer Entertainment Inc.
All rights reserved.
Redistribution and use in source and binary forms,
with or without modification, are permitted provided that the
following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the Sony Computer Entertainment Inc nor the names
of its contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef _VECTORMATH_QUAT_AOS_CPP_H
#define _VECTORMATH_QUAT_AOS_CPP_H
//-----------------------------------------------------------------------------
// Definitions
#ifndef _VECTORMATH_INTERNAL_FUNCTIONS
#define _VECTORMATH_INTERNAL_FUNCTIONS
#endif
namespace Vectormath {
namespace Aos {
VECTORMATH_FORCE_INLINE void Quat::set128(vec_float4 vec)
{
mVec128 = vec;
}
VECTORMATH_FORCE_INLINE Quat::Quat( const floatInVec &_x, const floatInVec &_y, const floatInVec &_z, const floatInVec &_w )
{
mVec128 = _mm_unpacklo_ps(
_mm_unpacklo_ps( _x.get128(), _z.get128() ),
_mm_unpacklo_ps( _y.get128(), _w.get128() ) );
}
VECTORMATH_FORCE_INLINE Quat::Quat( const Vector3 &xyz, float _w )
{
mVec128 = xyz.get128();
_vmathVfSetElement(mVec128, _w, 3);
}
VECTORMATH_FORCE_INLINE Quat::Quat(const Quat& quat)
{
mVec128 = quat.get128();
}
VECTORMATH_FORCE_INLINE Quat::Quat( float _x, float _y, float _z, float _w )
{
mVec128 = _mm_setr_ps(_x, _y, _z, _w);
}
VECTORMATH_FORCE_INLINE Quat::Quat( const Vector3 &xyz, const floatInVec &_w )
{
mVec128 = xyz.get128();
mVec128 = _vmathVfInsert(mVec128, _w.get128(), 3);
}
VECTORMATH_FORCE_INLINE Quat::Quat( const Vector4 &vec )
{
mVec128 = vec.get128();
}
VECTORMATH_FORCE_INLINE Quat::Quat( float scalar )
{
mVec128 = floatInVec(scalar).get128();
}
VECTORMATH_FORCE_INLINE Quat::Quat( const floatInVec &scalar )
{
mVec128 = scalar.get128();
}
VECTORMATH_FORCE_INLINE Quat::Quat( __m128 vf4 )
{
mVec128 = vf4;
}
VECTORMATH_FORCE_INLINE const Quat Quat::identity( )
{
return Quat( _VECTORMATH_UNIT_0001 );
}
VECTORMATH_FORCE_INLINE const Quat lerp( float t, const Quat &quat0, const Quat &quat1 )
{
return lerp( floatInVec(t), quat0, quat1 );
}
VECTORMATH_FORCE_INLINE const Quat lerp( const floatInVec &t, const Quat &quat0, const Quat &quat1 )
{
return ( quat0 + ( ( quat1 - quat0 ) * t ) );
}
VECTORMATH_FORCE_INLINE const Quat slerp( float t, const Quat &unitQuat0, const Quat &unitQuat1 )
{
return slerp( floatInVec(t), unitQuat0, unitQuat1 );
}
VECTORMATH_FORCE_INLINE const Quat slerp( const floatInVec &t, const Quat &unitQuat0, const Quat &unitQuat1 )
{
Quat start;
vec_float4 scales, scale0, scale1, cosAngle, angle, tttt, oneMinusT, angles, sines;
__m128 selectMask;
cosAngle = _vmathVfDot4( unitQuat0.get128(), unitQuat1.get128() );
selectMask = (__m128)vec_cmpgt( _mm_setzero_ps(), cosAngle );
cosAngle = vec_sel( cosAngle, negatef4( cosAngle ), selectMask );
start = Quat( vec_sel( unitQuat0.get128(), negatef4( unitQuat0.get128() ), selectMask ) );
selectMask = (__m128)vec_cmpgt( _mm_set1_ps(_VECTORMATH_SLERP_TOL), cosAngle );
angle = acosf4( cosAngle );
tttt = t.get128();
oneMinusT = vec_sub( _mm_set1_ps(1.0f), tttt );
angles = vec_mergeh( _mm_set1_ps(1.0f), tttt );
angles = vec_mergeh( angles, oneMinusT );
angles = vec_madd( angles, angle, _mm_setzero_ps() );
sines = sinf4( angles );
scales = _mm_div_ps( sines, vec_splat( sines, 0 ) );
scale0 = vec_sel( oneMinusT, vec_splat( scales, 1 ), selectMask );
scale1 = vec_sel( tttt, vec_splat( scales, 2 ), selectMask );
return Quat( vec_madd( start.get128(), scale0, vec_mul( unitQuat1.get128(), scale1 ) ) );
}
VECTORMATH_FORCE_INLINE const Quat squad( float t, const Quat &unitQuat0, const Quat &unitQuat1, const Quat &unitQuat2, const Quat &unitQuat3 )
{
return squad( floatInVec(t), unitQuat0, unitQuat1, unitQuat2, unitQuat3 );
}
VECTORMATH_FORCE_INLINE const Quat squad( const floatInVec &t, const Quat &unitQuat0, const Quat &unitQuat1, const Quat &unitQuat2, const Quat &unitQuat3 )
{
return slerp( ( ( floatInVec(2.0f) * t ) * ( floatInVec(1.0f) - t ) ), slerp( t, unitQuat0, unitQuat3 ), slerp( t, unitQuat1, unitQuat2 ) );
}
VECTORMATH_FORCE_INLINE __m128 Quat::get128( ) const
{
return mVec128;
}
VECTORMATH_FORCE_INLINE Quat & Quat::operator =( const Quat &quat )
{
mVec128 = quat.mVec128;
return *this;
}
VECTORMATH_FORCE_INLINE Quat & Quat::setXYZ( const Vector3 &vec )
{
VM_ATTRIBUTE_ALIGN16 unsigned int sw[4] = {0, 0, 0, 0xffffffff};
mVec128 = vec_sel( vec.get128(), mVec128, sw );
return *this;
}
VECTORMATH_FORCE_INLINE const Vector3 Quat::getXYZ( ) const
{
return Vector3( mVec128 );
}
VECTORMATH_FORCE_INLINE Quat & Quat::setX( float _x )
{
_vmathVfSetElement(mVec128, _x, 0);
return *this;
}
VECTORMATH_FORCE_INLINE Quat & Quat::setX( const floatInVec &_x )
{
mVec128 = _vmathVfInsert(mVec128, _x.get128(), 0);
return *this;
}
VECTORMATH_FORCE_INLINE const floatInVec Quat::getX( ) const
{
return floatInVec( mVec128, 0 );
}
VECTORMATH_FORCE_INLINE Quat & Quat::setY( float _y )
{
_vmathVfSetElement(mVec128, _y, 1);
return *this;
}
VECTORMATH_FORCE_INLINE Quat & Quat::setY( const floatInVec &_y )
{
mVec128 = _vmathVfInsert(mVec128, _y.get128(), 1);
return *this;
}
VECTORMATH_FORCE_INLINE const floatInVec Quat::getY( ) const
{
return floatInVec( mVec128, 1 );
}
VECTORMATH_FORCE_INLINE Quat & Quat::setZ( float _z )
{
_vmathVfSetElement(mVec128, _z, 2);
return *this;
}
VECTORMATH_FORCE_INLINE Quat & Quat::setZ( const floatInVec &_z )
{
mVec128 = _vmathVfInsert(mVec128, _z.get128(), 2);
return *this;
}
VECTORMATH_FORCE_INLINE const floatInVec Quat::getZ( ) const
{
return floatInVec( mVec128, 2 );
}
VECTORMATH_FORCE_INLINE Quat & Quat::setW( float _w )
{
_vmathVfSetElement(mVec128, _w, 3);
return *this;
}
VECTORMATH_FORCE_INLINE Quat & Quat::setW( const floatInVec &_w )
{
mVec128 = _vmathVfInsert(mVec128, _w.get128(), 3);
return *this;
}
VECTORMATH_FORCE_INLINE const floatInVec Quat::getW( ) const
{
return floatInVec( mVec128, 3 );
}
VECTORMATH_FORCE_INLINE Quat & Quat::setElem( int idx, float value )
{
_vmathVfSetElement(mVec128, value, idx);
return *this;
}
VECTORMATH_FORCE_INLINE Quat & Quat::setElem( int idx, const floatInVec &value )
{
mVec128 = _vmathVfInsert(mVec128, value.get128(), idx);
return *this;
}
VECTORMATH_FORCE_INLINE const floatInVec Quat::getElem( int idx ) const
{
return floatInVec( mVec128, idx );
}
VECTORMATH_FORCE_INLINE VecIdx Quat::operator []( int idx )
{
return VecIdx( mVec128, idx );
}
VECTORMATH_FORCE_INLINE const floatInVec Quat::operator []( int idx ) const
{
return floatInVec( mVec128, idx );
}
VECTORMATH_FORCE_INLINE const Quat Quat::operator +( const Quat &quat ) const
{
return Quat( _mm_add_ps( mVec128, quat.mVec128 ) );
}
VECTORMATH_FORCE_INLINE const Quat Quat::operator -( const Quat &quat ) const
{
return Quat( _mm_sub_ps( mVec128, quat.mVec128 ) );
}
VECTORMATH_FORCE_INLINE const Quat Quat::operator *( float scalar ) const
{
return *this * floatInVec(scalar);
}
VECTORMATH_FORCE_INLINE const Quat Quat::operator *( const floatInVec &scalar ) const
{
return Quat( _mm_mul_ps( mVec128, scalar.get128() ) );
}
VECTORMATH_FORCE_INLINE Quat & Quat::operator +=( const Quat &quat )
{
*this = *this + quat;
return *this;
}
VECTORMATH_FORCE_INLINE Quat & Quat::operator -=( const Quat &quat )
{
*this = *this - quat;
return *this;
}
VECTORMATH_FORCE_INLINE Quat & Quat::operator *=( float scalar )
{
*this = *this * scalar;
return *this;
}
VECTORMATH_FORCE_INLINE Quat & Quat::operator *=( const floatInVec &scalar )
{
*this = *this * scalar;
return *this;
}
VECTORMATH_FORCE_INLINE const Quat Quat::operator /( float scalar ) const
{
return *this / floatInVec(scalar);
}
VECTORMATH_FORCE_INLINE const Quat Quat::operator /( const floatInVec &scalar ) const
{
return Quat( _mm_div_ps( mVec128, scalar.get128() ) );
}
VECTORMATH_FORCE_INLINE Quat & Quat::operator /=( float scalar )
{
*this = *this / scalar;
return *this;
}
VECTORMATH_FORCE_INLINE Quat & Quat::operator /=( const floatInVec &scalar )
{
*this = *this / scalar;
return *this;
}
VECTORMATH_FORCE_INLINE const Quat Quat::operator -( ) const
{
return Quat(_mm_sub_ps( _mm_setzero_ps(), mVec128 ) );
}
VECTORMATH_FORCE_INLINE const Quat operator *( float scalar, const Quat &quat )
{
return floatInVec(scalar) * quat;
}
VECTORMATH_FORCE_INLINE const Quat operator *( const floatInVec &scalar, const Quat &quat )
{
return quat * scalar;
}
VECTORMATH_FORCE_INLINE const floatInVec dot( const Quat &quat0, const Quat &quat1 )
{
return floatInVec( _vmathVfDot4( quat0.get128(), quat1.get128() ), 0 );
}
VECTORMATH_FORCE_INLINE const floatInVec norm( const Quat &quat )
{
return floatInVec( _vmathVfDot4( quat.get128(), quat.get128() ), 0 );
}
VECTORMATH_FORCE_INLINE const floatInVec length( const Quat &quat )
{
return floatInVec( _mm_sqrt_ps(_vmathVfDot4( quat.get128(), quat.get128() )), 0 );
}
VECTORMATH_FORCE_INLINE const Quat normalize( const Quat &quat )
{
vec_float4 dot =_vmathVfDot4( quat.get128(), quat.get128());
return Quat( _mm_mul_ps( quat.get128(), newtonrapson_rsqrt4( dot ) ) );
}
VECTORMATH_FORCE_INLINE const Quat Quat::rotation( const Vector3 &unitVec0, const Vector3 &unitVec1 )
{
Vector3 crossVec;
__m128 cosAngle, cosAngleX2Plus2, recipCosHalfAngleX2, cosHalfAngleX2, res;
cosAngle = _vmathVfDot3( unitVec0.get128(), unitVec1.get128() );
cosAngleX2Plus2 = vec_madd( cosAngle, _mm_set1_ps(2.0f), _mm_set1_ps(2.0f) );
recipCosHalfAngleX2 = _mm_rsqrt_ps( cosAngleX2Plus2 );
cosHalfAngleX2 = vec_mul( recipCosHalfAngleX2, cosAngleX2Plus2 );
crossVec = cross( unitVec0, unitVec1 );
res = vec_mul( crossVec.get128(), recipCosHalfAngleX2 );
VM_ATTRIBUTE_ALIGN16 unsigned int sw[4] = {0, 0, 0, 0xffffffff};
res = vec_sel( res, vec_mul( cosHalfAngleX2, _mm_set1_ps(0.5f) ), sw );
return Quat( res );
}
VECTORMATH_FORCE_INLINE const Quat Quat::rotation( float radians, const Vector3 &unitVec )
{
return rotation( floatInVec(radians), unitVec );
}
VECTORMATH_FORCE_INLINE const Quat Quat::rotation( const floatInVec &radians, const Vector3 &unitVec )
{
__m128 s, c, angle, res;
angle = vec_mul( radians.get128(), _mm_set1_ps(0.5f) );
sincosf4( angle, &s, &c );
VM_ATTRIBUTE_ALIGN16 unsigned int sw[4] = {0, 0, 0, 0xffffffff};
res = vec_sel( vec_mul( unitVec.get128(), s ), c, sw );
return Quat( res );
}
VECTORMATH_FORCE_INLINE const Quat Quat::rotationX( float radians )
{
return rotationX( floatInVec(radians) );
}
VECTORMATH_FORCE_INLINE const Quat Quat::rotationX( const floatInVec &radians )
{
__m128 s, c, angle, res;
angle = vec_mul( radians.get128(), _mm_set1_ps(0.5f) );
sincosf4( angle, &s, &c );
VM_ATTRIBUTE_ALIGN16 unsigned int xsw[4] = {0xffffffff, 0, 0, 0};
VM_ATTRIBUTE_ALIGN16 unsigned int wsw[4] = {0, 0, 0, 0xffffffff};
res = vec_sel( _mm_setzero_ps(), s, xsw );
res = vec_sel( res, c, wsw );
return Quat( res );
}
VECTORMATH_FORCE_INLINE const Quat Quat::rotationY( float radians )
{
return rotationY( floatInVec(radians) );
}
VECTORMATH_FORCE_INLINE const Quat Quat::rotationY( const floatInVec &radians )
{
__m128 s, c, angle, res;
angle = vec_mul( radians.get128(), _mm_set1_ps(0.5f) );
sincosf4( angle, &s, &c );
VM_ATTRIBUTE_ALIGN16 unsigned int ysw[4] = {0, 0xffffffff, 0, 0};
VM_ATTRIBUTE_ALIGN16 unsigned int wsw[4] = {0, 0, 0, 0xffffffff};
res = vec_sel( _mm_setzero_ps(), s, ysw );
res = vec_sel( res, c, wsw );
return Quat( res );
}
VECTORMATH_FORCE_INLINE const Quat Quat::rotationZ( float radians )
{
return rotationZ( floatInVec(radians) );
}
VECTORMATH_FORCE_INLINE const Quat Quat::rotationZ( const floatInVec &radians )
{
__m128 s, c, angle, res;
angle = vec_mul( radians.get128(), _mm_set1_ps(0.5f) );
sincosf4( angle, &s, &c );
VM_ATTRIBUTE_ALIGN16 unsigned int zsw[4] = {0, 0, 0xffffffff, 0};
VM_ATTRIBUTE_ALIGN16 unsigned int wsw[4] = {0, 0, 0, 0xffffffff};
res = vec_sel( _mm_setzero_ps(), s, zsw );
res = vec_sel( res, c, wsw );
return Quat( res );
}
VECTORMATH_FORCE_INLINE const Quat Quat::operator *( const Quat &quat ) const
{
__m128 ldata, rdata, qv, tmp0, tmp1, tmp2, tmp3;
__m128 product, l_wxyz, r_wxyz, xy, qw;
ldata = mVec128;
rdata = quat.mVec128;
tmp0 = _mm_shuffle_ps( ldata, ldata, _MM_SHUFFLE(3,0,2,1) );
tmp1 = _mm_shuffle_ps( rdata, rdata, _MM_SHUFFLE(3,1,0,2) );
tmp2 = _mm_shuffle_ps( ldata, ldata, _MM_SHUFFLE(3,1,0,2) );
tmp3 = _mm_shuffle_ps( rdata, rdata, _MM_SHUFFLE(3,0,2,1) );
qv = vec_mul( vec_splat( ldata, 3 ), rdata );
qv = vec_madd( vec_splat( rdata, 3 ), ldata, qv );
qv = vec_madd( tmp0, tmp1, qv );
qv = vec_nmsub( tmp2, tmp3, qv );
product = vec_mul( ldata, rdata );
l_wxyz = vec_sld( ldata, ldata, 12 );
r_wxyz = vec_sld( rdata, rdata, 12 );
qw = vec_nmsub( l_wxyz, r_wxyz, product );
xy = vec_madd( l_wxyz, r_wxyz, product );
qw = vec_sub( qw, vec_sld( xy, xy, 8 ) );
VM_ATTRIBUTE_ALIGN16 unsigned int sw[4] = {0, 0, 0, 0xffffffff};
return Quat( vec_sel( qv, qw, sw ) );
}
VECTORMATH_FORCE_INLINE Quat & Quat::operator *=( const Quat &quat )
{
*this = *this * quat;
return *this;
}
VECTORMATH_FORCE_INLINE const Vector3 rotate( const Quat &quat, const Vector3 &vec )
{ __m128 qdata, vdata, product, tmp0, tmp1, tmp2, tmp3, wwww, qv, qw, res;
qdata = quat.get128();
vdata = vec.get128();
tmp0 = _mm_shuffle_ps( qdata, qdata, _MM_SHUFFLE(3,0,2,1) );
tmp1 = _mm_shuffle_ps( vdata, vdata, _MM_SHUFFLE(3,1,0,2) );
tmp2 = _mm_shuffle_ps( qdata, qdata, _MM_SHUFFLE(3,1,0,2) );
tmp3 = _mm_shuffle_ps( vdata, vdata, _MM_SHUFFLE(3,0,2,1) );
wwww = vec_splat( qdata, 3 );
qv = vec_mul( wwww, vdata );
qv = vec_madd( tmp0, tmp1, qv );
qv = vec_nmsub( tmp2, tmp3, qv );
product = vec_mul( qdata, vdata );
qw = vec_madd( vec_sld( qdata, qdata, 4 ), vec_sld( vdata, vdata, 4 ), product );
qw = vec_add( vec_sld( product, product, 8 ), qw );
tmp1 = _mm_shuffle_ps( qv, qv, _MM_SHUFFLE(3,1,0,2) );
tmp3 = _mm_shuffle_ps( qv, qv, _MM_SHUFFLE(3,0,2,1) );
res = vec_mul( vec_splat( qw, 0 ), qdata );
res = vec_madd( wwww, qv, res );
res = vec_madd( tmp0, tmp1, res );
res = vec_nmsub( tmp2, tmp3, res );
return Vector3( res );
}
VECTORMATH_FORCE_INLINE const Quat conj( const Quat &quat )
{
VM_ATTRIBUTE_ALIGN16 unsigned int sw[4] = {0x80000000,0x80000000,0x80000000,0};
return Quat( vec_xor( quat.get128(), _mm_load_ps((float *)sw) ) );
}
VECTORMATH_FORCE_INLINE const Quat select( const Quat &quat0, const Quat &quat1, bool select1 )
{
return select( quat0, quat1, boolInVec(select1) );
}
//VECTORMATH_FORCE_INLINE const Quat select( const Quat &quat0, const Quat &quat1, const boolInVec &select1 )
//{
// return Quat( vec_sel( quat0.get128(), quat1.get128(), select1.get128() ) );
//}
VECTORMATH_FORCE_INLINE void loadXYZW(Quat& quat, const float* fptr)
{
#ifdef USE_SSE3_LDDQU
quat = Quat( SSEFloat(_mm_lddqu_si128((const __m128i*)((float*)(fptr)))).m128 );
#else
SSEFloat fl;
fl.f[0] = fptr[0];
fl.f[1] = fptr[1];
fl.f[2] = fptr[2];
fl.f[3] = fptr[3];
quat = Quat( fl.m128);
#endif
}
VECTORMATH_FORCE_INLINE void storeXYZW(const Quat& quat, float* fptr)
{
fptr[0] = quat.getX();
fptr[1] = quat.getY();
fptr[2] = quat.getZ();
fptr[3] = quat.getW();
// _mm_storeu_ps((float*)quat.get128(),fptr);
}
#ifdef _VECTORMATH_DEBUG
VECTORMATH_FORCE_INLINE void print( const Quat &quat )
{
union { __m128 v; float s[4]; } tmp;
tmp.v = quat.get128();
printf( "( %f %f %f %f )\n", tmp.s[0], tmp.s[1], tmp.s[2], tmp.s[3] );
}
VECTORMATH_FORCE_INLINE void print( const Quat &quat, const char * name )
{
union { __m128 v; float s[4]; } tmp;
tmp.v = quat.get128();
printf( "%s: ( %f %f %f %f )\n", name, tmp.s[0], tmp.s[1], tmp.s[2], tmp.s[3] );
}
#endif
} // namespace Aos
} // namespace Vectormath
#endif
| skylersaleh/ArgonEngine | common/vectormath/sse/quat_aos.h | C | mit | 17,519 |
<html>
<head>
<title>User agent detail - MQQBrowser/Mini2.2 (SAMSUNG-C3050/XXKB1)</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="section">
<h1 class="header center orange-text">User agent detail</h1>
<div class="row center">
<h5 class="header light">
MQQBrowser/Mini2.2 (SAMSUNG-C3050/XXKB1)
</h5>
</div>
</div>
<div class="section">
<table class="striped"><tr><th></th><th colspan="3">General</th><th colspan="5">Device</th><th colspan="3">Bot</th><th colspan="2"></th></tr><tr><th>Provider</th><th>Browser</th><th>Engine</th><th>OS</th><th>Brand</th><th>Model</th><th>Type</th><th>Is mobile</th><th>Is touch</th><th>Is bot</th><th>Name</th><th>Type</th><th>Parse time</th><th>Actions</th></tr><tr><th colspan="14" class="green lighten-3">Source result (test suite)</th></tr><tr><td>ua-parser/uap-core<br /><small>vendor/thadafinser/uap-core/tests/test_device.yaml</small></td><td> </td><td> </td><td> </td><td style="border-left: 1px solid #555">Samsung</td><td>C3050</td><td></td><td></td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td></td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-test">Detail</a>
<!-- Modal Structure -->
<div id="modal-test" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Testsuite result detail</h4>
<p><pre><code class="php">Array
(
[user_agent_string] => MQQBrowser/Mini2.2 (SAMSUNG-C3050/XXKB1)
[family] => Samsung C3050
[brand] => Samsung
[model] => C3050
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><th colspan="14" class="green lighten-3">Providers</th></tr><tr><td>BrowscapPhp<br /><small>6012</small></td>
<td colspan="12" class="center-align red lighten-1">
<strong>No result found</strong>
</td>
</tr><tr><td>DonatjUAParser<br /><small>v0.5.0</small></td><td>MQQBrowser Mini2.2</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-f1436016-fdf1-4aea-b4be-1d7c99ab0661">Detail</a>
<!-- Modal Structure -->
<div id="modal-f1436016-fdf1-4aea-b4be-1d7c99ab0661" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>DonatjUAParser result detail</h4>
<p><pre><code class="php">Array
(
[platform] =>
[browser] => MQQBrowser
[version] => Mini2.2
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>NeutrinoApiCom<br /><small></small></td><td>QQbrowser Mini2.2</td><td><i class="material-icons">close</i></td><td> </td><td style="border-left: 1px solid #555"></td><td></td><td>mobile-browser</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.19202</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-9b0fa449-ec1b-40c8-8b1c-9486eb3b9cbc">Detail</a>
<!-- Modal Structure -->
<div id="modal-9b0fa449-ec1b-40c8-8b1c-9486eb3b9cbc" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>NeutrinoApiCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[mobile_screen_height] => 90
[is_mobile] => 1
[type] => mobile-browser
[mobile_brand] =>
[mobile_model] =>
[version] => Mini2.2
[is_android] =>
[browser_name] => QQbrowser
[operating_system_family] => unknown
[operating_system_version] =>
[is_ios] =>
[producer] => Tencent Ltd.
[operating_system] => unknown
[mobile_screen_width] => 90
[mobile_browser] =>
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>PiwikDeviceDetector<br /><small>3.5.2</small></td><td> </td><td> </td><td> </td><td style="border-left: 1px solid #555">Samsung</td><td>C3050</td><td>smartphone</td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.008</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-21638055-738d-46ba-a1b1-f5114bc26475">Detail</a>
<!-- Modal Structure -->
<div id="modal-21638055-738d-46ba-a1b1-f5114bc26475" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>PiwikDeviceDetector result detail</h4>
<p><pre><code class="php">Array
(
[client] =>
[operatingSystem] => Array
(
)
[device] => Array
(
[brand] => SA
[brandName] => Samsung
[model] => C3050
[device] => 1
[deviceName] => smartphone
)
[bot] =>
[extra] => Array
(
[isBot] =>
[isBrowser] =>
[isFeedReader] =>
[isMobileApp] =>
[isPIM] =>
[isLibrary] =>
[isMediaPlayer] =>
[isCamera] =>
[isCarBrowser] =>
[isConsole] =>
[isFeaturePhone] =>
[isPhablet] =>
[isPortableMediaPlayer] =>
[isSmartDisplay] =>
[isSmartphone] => 1
[isTablet] =>
[isTV] =>
[isDesktop] =>
[isMobile] => 1
[isTouchEnabled] =>
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>SinergiBrowserDetector<br /><small>6.0.0</small></td>
<td colspan="12" class="center-align red lighten-1">
<strong>No result found</strong>
</td>
</tr><tr><td>UAParser<br /><small>v3.4.5</small></td><td>QQ Browser Mini 2.2</td><td><i class="material-icons">close</i></td><td> </td><td style="border-left: 1px solid #555">Samsung</td><td>C3050</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.008</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-346c1a98-5fd3-454f-b6c8-350f2f505d8b">Detail</a>
<!-- Modal Structure -->
<div id="modal-346c1a98-5fd3-454f-b6c8-350f2f505d8b" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>UAParser result detail</h4>
<p><pre><code class="php">UAParser\Result\Client Object
(
[ua] => UAParser\Result\UserAgent Object
(
[major] => 2
[minor] => 2
[patch] =>
[family] => QQ Browser Mini
)
[os] => UAParser\Result\OperatingSystem Object
(
[major] =>
[minor] =>
[patch] =>
[patchMinor] =>
[family] => Other
)
[device] => UAParser\Result\Device Object
(
[brand] => Samsung
[model] => C3050
[family] => Samsung C3050
)
[originalUserAgent] => MQQBrowser/Mini2.2 (SAMSUNG-C3050/XXKB1)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>UserAgentStringCom<br /><small></small></td>
<td colspan="12" class="center-align red lighten-1">
<strong>No result found</strong>
</td>
</tr><tr><td>WhatIsMyBrowserCom<br /><small></small></td><td>QQ Browser </td><td> </td><td> </td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.40704</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-9795f66f-7271-430e-973a-a5c0e14dc35a">Detail</a>
<!-- Modal Structure -->
<div id="modal-9795f66f-7271-430e-973a-a5c0e14dc35a" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>WhatIsMyBrowserCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[operating_system_name] =>
[simple_sub_description_string] =>
[simple_browser_string] => QQ Browser
[browser_version] =>
[extra_info] => Array
(
)
[operating_platform] =>
[extra_info_table] => Array
(
)
[layout_engine_name] =>
[detected_addons] => Array
(
)
[operating_system_flavour_code] =>
[hardware_architecture] =>
[operating_system_flavour] =>
[operating_system_frameworks] => Array
(
)
[browser_name_code] => qq-browser
[operating_system_version] =>
[simple_operating_platform_string] =>
[is_abusive] =>
[layout_engine_version] =>
[browser_capabilities] => Array
(
)
[operating_platform_vendor_name] =>
[operating_system] =>
[operating_system_version_full] =>
[operating_platform_code] =>
[browser_name] => QQ Browser
[operating_system_name_code] =>
[user_agent] => MQQBrowser/Mini2.2 (SAMSUNG-C3050/XXKB1)
[browser_version_full] =>
[browser] => QQ Browser
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>WhichBrowser<br /><small>2.0.10</small></td><td>QQ Browser Mini 2.2</td><td> </td><td> </td><td style="border-left: 1px solid #555">Samsung</td><td>C3050</td><td>mobile:feature</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.012</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-342c8d32-4765-40a8-8a5c-af3a38d19ae4">Detail</a>
<!-- Modal Structure -->
<div id="modal-342c8d32-4765-40a8-8a5c-af3a38d19ae4" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>WhichBrowser result detail</h4>
<p><pre><code class="php">Array
(
[browser] => Array
(
[name] => QQ Browser Mini
[version] => 2.2
[type] => browser
)
[device] => Array
(
[type] => mobile
[subtype] => feature
[manufacturer] => Samsung
[model] => C3050
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>Woothee<br /><small>v1.2.0</small></td>
<td colspan="12" class="center-align red lighten-1">
<strong>No result found</strong>
</td>
</tr><tr><td>Wurfl<br /><small>1.6.4</small></td><td>Opera 11.10</td><td><i class="material-icons">close</i></td><td>Linux armv6l </td><td style="border-left: 1px solid #555"></td><td></td><td>Feature Phone</td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.025</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-1a1aee36-7ce7-4111-a391-8e2c501f1532">Detail</a>
<!-- Modal Structure -->
<div id="modal-1a1aee36-7ce7-4111-a391-8e2c501f1532" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Wurfl result detail</h4>
<p><pre><code class="php">Array
(
[virtual] => Array
(
[is_android] => false
[is_ios] => false
[is_windows_phone] => false
[is_app] => false
[is_full_desktop] => false
[is_largescreen] => false
[is_mobile] => true
[is_robot] => false
[is_smartphone] => false
[is_touchscreen] => false
[is_wml_preferred] => false
[is_xhtmlmp_preferred] => true
[is_html_preferred] => false
[advertised_device_os] => Linux armv6l
[advertised_device_os_version] =>
[advertised_browser] => Opera
[advertised_browser_version] => 11.10
[complete_device_name] =>
[form_factor] => Feature Phone
[is_phone] => true
[is_app_webview] => false
)
[all] => Array
(
[brand_name] =>
[model_name] =>
[unique] => true
[ununiqueness_handler] =>
[is_wireless_device] => true
[device_claims_web_support] => false
[has_qwerty_keyboard] => false
[can_skip_aligned_link_row] => false
[uaprof] =>
[uaprof2] =>
[uaprof3] =>
[nokia_series] => 0
[nokia_edition] => 0
[device_os] =>
[mobile_browser] =>
[mobile_browser_version] =>
[device_os_version] =>
[pointing_method] =>
[release_date] => 2002_january
[marketing_name] =>
[model_extra_info] =>
[nokia_feature_pack] => 0
[can_assign_phone_number] => true
[is_tablet] => false
[manufacturer_name] =>
[is_bot] => false
[is_google_glass] => false
[proportional_font] => false
[built_in_back_button_support] => false
[card_title_support] => true
[softkey_support] => false
[table_support] => true
[numbered_menus] => false
[menu_with_select_element_recommended] => false
[menu_with_list_of_links_recommended] => true
[icons_on_menu_items_support] => false
[break_list_of_links_with_br_element_recommended] => true
[access_key_support] => false
[wrap_mode_support] => false
[times_square_mode_support] => false
[deck_prefetch_support] => false
[elective_forms_recommended] => true
[wizards_recommended] => false
[image_as_link_support] => false
[insert_br_element_after_widget_recommended] => false
[wml_can_display_images_and_text_on_same_line] => false
[wml_displays_image_in_center] => false
[opwv_wml_extensions_support] => false
[wml_make_phone_call_string] => wtai://wp/mc;
[chtml_display_accesskey] => false
[emoji] => false
[chtml_can_display_images_and_text_on_same_line] => false
[chtml_displays_image_in_center] => false
[imode_region] => none
[chtml_make_phone_call_string] => tel:
[chtml_table_support] => false
[xhtml_honors_bgcolor] => false
[xhtml_supports_forms_in_table] => false
[xhtml_support_wml2_namespace] => false
[xhtml_autoexpand_select] => false
[xhtml_select_as_dropdown] => false
[xhtml_select_as_radiobutton] => false
[xhtml_select_as_popup] => false
[xhtml_display_accesskey] => false
[xhtml_supports_invisible_text] => false
[xhtml_supports_inline_input] => false
[xhtml_supports_monospace_font] => false
[xhtml_supports_table_for_layout] => false
[xhtml_supports_css_cell_table_coloring] => false
[xhtml_format_as_css_property] => false
[xhtml_format_as_attribute] => false
[xhtml_nowrap_mode] => false
[xhtml_marquee_as_css_property] => false
[xhtml_readable_background_color1] => #FFFFFF
[xhtml_readable_background_color2] => #FFFFFF
[xhtml_allows_disabled_form_elements] => false
[xhtml_document_title_support] => true
[xhtml_preferred_charset] => utf8
[opwv_xhtml_extensions_support] => false
[xhtml_make_phone_call_string] => tel:
[xhtmlmp_preferred_mime_type] => application/vnd.wap.xhtml+xml
[xhtml_table_support] => false
[xhtml_send_sms_string] => none
[xhtml_send_mms_string] => none
[xhtml_file_upload] => not_supported
[cookie_support] => true
[accept_third_party_cookie] => true
[xhtml_supports_iframe] => none
[xhtml_avoid_accesskeys] => false
[xhtml_can_embed_video] => none
[ajax_support_javascript] => false
[ajax_manipulate_css] => false
[ajax_support_getelementbyid] => false
[ajax_support_inner_html] => false
[ajax_xhr_type] => none
[ajax_manipulate_dom] => false
[ajax_support_events] => false
[ajax_support_event_listener] => false
[ajax_preferred_geoloc_api] => none
[xhtml_support_level] => 1
[preferred_markup] => html_wi_oma_xhtmlmp_1_0
[wml_1_1] => true
[wml_1_2] => false
[wml_1_3] => false
[html_wi_w3_xhtmlbasic] => true
[html_wi_oma_xhtmlmp_1_0] => true
[html_wi_imode_html_1] => false
[html_wi_imode_html_2] => false
[html_wi_imode_html_3] => false
[html_wi_imode_html_4] => false
[html_wi_imode_html_5] => false
[html_wi_imode_htmlx_1] => false
[html_wi_imode_htmlx_1_1] => false
[html_wi_imode_compact_generic] => false
[html_web_3_2] => false
[html_web_4_0] => false
[voicexml] => false
[multipart_support] => false
[total_cache_disable_support] => false
[time_to_live_support] => false
[resolution_width] => 90
[resolution_height] => 90
[columns] => 11
[max_image_width] => 90
[max_image_height] => 35
[rows] => 6
[physical_screen_width] => 27
[physical_screen_height] => 27
[dual_orientation] => false
[density_class] => 1.0
[wbmp] => true
[bmp] => false
[epoc_bmp] => false
[gif_animated] => false
[jpg] => false
[png] => false
[tiff] => false
[transparent_png_alpha] => false
[transparent_png_index] => false
[svgt_1_1] => false
[svgt_1_1_plus] => false
[greyscale] => false
[gif] => true
[colors] => 256
[webp_lossy_support] => false
[webp_lossless_support] => false
[post_method_support] => true
[basic_authentication_support] => true
[empty_option_value_support] => true
[emptyok] => false
[nokia_voice_call] => false
[wta_voice_call] => false
[wta_phonebook] => false
[wta_misc] => false
[wta_pdc] => false
[https_support] => true
[phone_id_provided] => false
[max_data_rate] => 9
[wifi] => false
[sdio] => false
[vpn] => false
[has_cellular_radio] => true
[max_deck_size] => 4000
[max_url_length_in_requests] => 128
[max_url_length_homepage] => 0
[max_url_length_bookmark] => 0
[max_url_length_cached_page] => 0
[max_no_of_connection_settings] => 0
[max_no_of_bookmarks] => 0
[max_length_of_username] => 0
[max_length_of_password] => 0
[max_object_size] => 0
[downloadfun_support] => false
[directdownload_support] => false
[inline_support] => false
[oma_support] => false
[ringtone] => false
[ringtone_3gpp] => false
[ringtone_midi_monophonic] => false
[ringtone_midi_polyphonic] => false
[ringtone_imelody] => false
[ringtone_digiplug] => false
[ringtone_compactmidi] => false
[ringtone_mmf] => false
[ringtone_rmf] => false
[ringtone_xmf] => false
[ringtone_amr] => false
[ringtone_awb] => false
[ringtone_aac] => false
[ringtone_wav] => false
[ringtone_mp3] => false
[ringtone_spmidi] => false
[ringtone_qcelp] => false
[ringtone_voices] => 1
[ringtone_df_size_limit] => 0
[ringtone_directdownload_size_limit] => 0
[ringtone_inline_size_limit] => 0
[ringtone_oma_size_limit] => 0
[wallpaper] => false
[wallpaper_max_width] => 0
[wallpaper_max_height] => 0
[wallpaper_preferred_width] => 0
[wallpaper_preferred_height] => 0
[wallpaper_resize] => none
[wallpaper_wbmp] => false
[wallpaper_bmp] => false
[wallpaper_gif] => false
[wallpaper_jpg] => false
[wallpaper_png] => false
[wallpaper_tiff] => false
[wallpaper_greyscale] => false
[wallpaper_colors] => 2
[wallpaper_df_size_limit] => 0
[wallpaper_directdownload_size_limit] => 0
[wallpaper_inline_size_limit] => 0
[wallpaper_oma_size_limit] => 0
[screensaver] => false
[screensaver_max_width] => 0
[screensaver_max_height] => 0
[screensaver_preferred_width] => 0
[screensaver_preferred_height] => 0
[screensaver_resize] => none
[screensaver_wbmp] => false
[screensaver_bmp] => false
[screensaver_gif] => false
[screensaver_jpg] => false
[screensaver_png] => false
[screensaver_greyscale] => false
[screensaver_colors] => 2
[screensaver_df_size_limit] => 0
[screensaver_directdownload_size_limit] => 0
[screensaver_inline_size_limit] => 0
[screensaver_oma_size_limit] => 0
[picture] => false
[picture_max_width] => 0
[picture_max_height] => 0
[picture_preferred_width] => 0
[picture_preferred_height] => 0
[picture_resize] => none
[picture_wbmp] => false
[picture_bmp] => false
[picture_gif] => false
[picture_jpg] => false
[picture_png] => false
[picture_greyscale] => false
[picture_colors] => 2
[picture_df_size_limit] => 0
[picture_directdownload_size_limit] => 0
[picture_inline_size_limit] => 0
[picture_oma_size_limit] => 0
[video] => false
[oma_v_1_0_forwardlock] => false
[oma_v_1_0_combined_delivery] => false
[oma_v_1_0_separate_delivery] => false
[streaming_video] => false
[streaming_3gpp] => false
[streaming_mp4] => false
[streaming_mov] => false
[streaming_video_size_limit] => 0
[streaming_real_media] => none
[streaming_flv] => false
[streaming_3g2] => false
[streaming_vcodec_h263_0] => -1
[streaming_vcodec_h263_3] => -1
[streaming_vcodec_mpeg4_sp] => -1
[streaming_vcodec_mpeg4_asp] => -1
[streaming_vcodec_h264_bp] => -1
[streaming_acodec_amr] => none
[streaming_acodec_aac] => none
[streaming_wmv] => none
[streaming_preferred_protocol] => rtsp
[streaming_preferred_http_protocol] => none
[wap_push_support] => false
[connectionless_service_indication] => false
[connectionless_service_load] => false
[connectionless_cache_operation] => false
[connectionoriented_unconfirmed_service_indication] => false
[connectionoriented_unconfirmed_service_load] => false
[connectionoriented_unconfirmed_cache_operation] => false
[connectionoriented_confirmed_service_indication] => false
[connectionoriented_confirmed_service_load] => false
[connectionoriented_confirmed_cache_operation] => false
[utf8_support] => false
[ascii_support] => false
[iso8859_support] => false
[expiration_date] => false
[j2me_cldc_1_0] => false
[j2me_cldc_1_1] => false
[j2me_midp_1_0] => false
[j2me_midp_2_0] => false
[doja_1_0] => false
[doja_1_5] => false
[doja_2_0] => false
[doja_2_1] => false
[doja_2_2] => false
[doja_3_0] => false
[doja_3_5] => false
[doja_4_0] => false
[j2me_jtwi] => false
[j2me_mmapi_1_0] => false
[j2me_mmapi_1_1] => false
[j2me_wmapi_1_0] => false
[j2me_wmapi_1_1] => false
[j2me_wmapi_2_0] => false
[j2me_btapi] => false
[j2me_3dapi] => false
[j2me_locapi] => false
[j2me_nokia_ui] => false
[j2me_motorola_lwt] => false
[j2me_siemens_color_game] => false
[j2me_siemens_extension] => false
[j2me_heap_size] => 0
[j2me_max_jar_size] => 0
[j2me_storage_size] => 0
[j2me_max_record_store_size] => 0
[j2me_screen_width] => 0
[j2me_screen_height] => 0
[j2me_canvas_width] => 0
[j2me_canvas_height] => 0
[j2me_bits_per_pixel] => 0
[j2me_audio_capture_enabled] => false
[j2me_video_capture_enabled] => false
[j2me_photo_capture_enabled] => false
[j2me_capture_image_formats] => none
[j2me_http] => false
[j2me_https] => false
[j2me_socket] => false
[j2me_udp] => false
[j2me_serial] => false
[j2me_gif] => false
[j2me_gif89a] => false
[j2me_jpg] => false
[j2me_png] => false
[j2me_bmp] => false
[j2me_bmp3] => false
[j2me_wbmp] => false
[j2me_midi] => false
[j2me_wav] => false
[j2me_amr] => false
[j2me_mp3] => false
[j2me_mp4] => false
[j2me_imelody] => false
[j2me_rmf] => false
[j2me_au] => false
[j2me_aac] => false
[j2me_realaudio] => false
[j2me_xmf] => false
[j2me_wma] => false
[j2me_3gpp] => false
[j2me_h263] => false
[j2me_svgt] => false
[j2me_mpeg4] => false
[j2me_realvideo] => false
[j2me_real8] => false
[j2me_realmedia] => false
[j2me_left_softkey_code] => 0
[j2me_right_softkey_code] => 0
[j2me_middle_softkey_code] => 0
[j2me_select_key_code] => 0
[j2me_return_key_code] => 0
[j2me_clear_key_code] => 0
[j2me_datefield_no_accepts_null_date] => false
[j2me_datefield_broken] => false
[receiver] => false
[sender] => false
[mms_max_size] => 0
[mms_max_height] => 0
[mms_max_width] => 0
[built_in_recorder] => false
[built_in_camera] => false
[mms_jpeg_baseline] => false
[mms_jpeg_progressive] => false
[mms_gif_static] => false
[mms_gif_animated] => false
[mms_png] => false
[mms_bmp] => false
[mms_wbmp] => false
[mms_amr] => false
[mms_wav] => false
[mms_midi_monophonic] => false
[mms_midi_polyphonic] => false
[mms_midi_polyphonic_voices] => 0
[mms_spmidi] => false
[mms_mmf] => false
[mms_mp3] => false
[mms_evrc] => false
[mms_qcelp] => false
[mms_ota_bitmap] => false
[mms_nokia_wallpaper] => false
[mms_nokia_operatorlogo] => false
[mms_nokia_3dscreensaver] => false
[mms_nokia_ringingtone] => false
[mms_rmf] => false
[mms_xmf] => false
[mms_symbian_install] => false
[mms_jar] => false
[mms_jad] => false
[mms_vcard] => false
[mms_vcalendar] => false
[mms_wml] => false
[mms_wbxml] => false
[mms_wmlc] => false
[mms_video] => false
[mms_mp4] => false
[mms_3gpp] => false
[mms_3gpp2] => false
[mms_max_frame_rate] => 0
[nokiaring] => false
[picturemessage] => false
[operatorlogo] => false
[largeoperatorlogo] => false
[callericon] => false
[nokiavcard] => false
[nokiavcal] => false
[sckl_ringtone] => false
[sckl_operatorlogo] => false
[sckl_groupgraphic] => false
[sckl_vcard] => false
[sckl_vcalendar] => false
[text_imelody] => false
[ems] => false
[ems_variablesizedpictures] => false
[ems_imelody] => false
[ems_odi] => false
[ems_upi] => false
[ems_version] => 0
[siemens_ota] => false
[siemens_logo_width] => 101
[siemens_logo_height] => 29
[siemens_screensaver_width] => 101
[siemens_screensaver_height] => 50
[gprtf] => false
[sagem_v1] => false
[sagem_v2] => false
[panasonic] => false
[sms_enabled] => true
[wav] => false
[mmf] => false
[smf] => false
[mld] => false
[midi_monophonic] => false
[midi_polyphonic] => false
[sp_midi] => false
[rmf] => false
[xmf] => false
[compactmidi] => false
[digiplug] => false
[nokia_ringtone] => false
[imelody] => false
[au] => false
[amr] => false
[awb] => false
[aac] => false
[mp3] => false
[voices] => 1
[qcelp] => false
[evrc] => false
[flash_lite_version] =>
[fl_wallpaper] => false
[fl_screensaver] => false
[fl_standalone] => false
[fl_browser] => false
[fl_sub_lcd] => false
[full_flash_support] => false
[css_supports_width_as_percentage] => true
[css_border_image] => none
[css_rounded_corners] => none
[css_gradient] => none
[css_spriting] => false
[css_gradient_linear] => none
[is_transcoder] => false
[transcoder_ua_header] => user-agent
[rss_support] => false
[pdf_support] => false
[progressive_download] => false
[playback_vcodec_h263_0] => -1
[playback_vcodec_h263_3] => -1
[playback_vcodec_mpeg4_sp] => -1
[playback_vcodec_mpeg4_asp] => -1
[playback_vcodec_h264_bp] => -1
[playback_real_media] => none
[playback_3gpp] => false
[playback_3g2] => false
[playback_mp4] => false
[playback_mov] => false
[playback_acodec_amr] => none
[playback_acodec_aac] => none
[playback_df_size_limit] => 0
[playback_directdownload_size_limit] => 0
[playback_inline_size_limit] => 0
[playback_oma_size_limit] => 0
[playback_acodec_qcelp] => false
[playback_wmv] => none
[hinted_progressive_download] => false
[html_preferred_dtd] => xhtml_mp1
[viewport_supported] => false
[viewport_width] =>
[viewport_userscalable] =>
[viewport_initial_scale] =>
[viewport_maximum_scale] =>
[viewport_minimum_scale] =>
[mobileoptimized] => false
[handheldfriendly] => false
[canvas_support] => none
[image_inlining] => false
[is_smarttv] => false
[is_console] => false
[nfc_support] => false
[ux_full_desktop] => false
[jqm_grade] => none
[is_sencha_touch_ok] => false
[controlcap_is_smartphone] => default
[controlcap_is_ios] => default
[controlcap_is_android] => default
[controlcap_is_robot] => default
[controlcap_is_app] => default
[controlcap_advertised_device_os] => default
[controlcap_advertised_device_os_version] => default
[controlcap_advertised_browser] => default
[controlcap_advertised_browser_version] => default
[controlcap_is_windows_phone] => default
[controlcap_is_full_desktop] => default
[controlcap_is_largescreen] => default
[controlcap_is_mobile] => default
[controlcap_is_touchscreen] => default
[controlcap_is_wml_preferred] => default
[controlcap_is_xhtmlmp_preferred] => default
[controlcap_is_html_preferred] => default
[controlcap_form_factor] => default
[controlcap_complete_device_name] => default
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr></table>
</div>
<div class="section">
<h1 class="header center orange-text">About this comparison</h1>
<div class="row center">
<h5 class="header light">
The primary goal of this project is simple<br />
I wanted to know which user agent parser is the most accurate in each part - device detection, bot detection and so on...<br />
<br />
The secondary goal is to provide a source for all user agent parsers to improve their detection based on this results.<br />
<br />
You can also improve this further, by suggesting ideas at <a href="https://github.com/ThaDafinser/UserAgentParserComparison">ThaDafinser/UserAgentParserComparison</a><br />
<br />
The comparison is based on the abstraction by <a href="https://github.com/ThaDafinser/UserAgentParser">ThaDafinser/UserAgentParser</a>
</h5>
</div>
</div>
<div class="card">
<div class="card-content">
Comparison created <i>2016-02-13 13:42:15</i> | by
<a href="https://github.com/ThaDafinser">ThaDafinser</a>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/list.js/1.1.1/list.min.js"></script>
<script>
$(document).ready(function(){
// the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered
$('.modal-trigger').leanModal();
});
</script>
</body>
</html> | ThaDafinser/UserAgentParserComparison | v4/user-agent-detail/ef/62/ef62acfb-b7bb-4a65-a942-01f8a1a03829.html | HTML | mit | 37,736 |
import Ember from 'ember';
export default Ember.Controller.extend({
resume: Ember.inject.controller(),
actions: {
scrollToElem: function(selector) {
this.get('resume').send('scrollToElem', selector);
},
selectTemplate: function(template) {
this.get('resume').send('selectTemplate', template);
},
selectPalette: function(palette) {
this.get('resume').send('selectPalette', palette);
}
}
});
| iorrah/you-rockstar | app/controllers/resume/index.js | JavaScript | mit | 439 |
<?php
/*
* This file is part of the PHPExifTool package.
*
* (c) Alchemy <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\XMPPlus;
use JMS\Serializer\Annotation\ExclusionPolicy;
use PHPExiftool\Driver\AbstractTag;
/**
* @ExclusionPolicy("all")
*/
class MinorModelAgeDisclosure extends AbstractTag
{
protected $Id = 'MinorModelAgeDisclosure';
protected $Name = 'MinorModelAgeDisclosure';
protected $FullName = 'XMP::plus';
protected $GroupName = 'XMP-plus';
protected $g0 = 'XMP';
protected $g1 = 'XMP-plus';
protected $g2 = 'Author';
protected $Type = 'string';
protected $Writable = true;
protected $Description = 'Minor Model Age Disclosure';
protected $Values = array(
'AG-A15' => array(
'Id' => 'AG-A15',
'Label' => 'Age 15',
),
'AG-A16' => array(
'Id' => 'AG-A16',
'Label' => 'Age 16',
),
'AG-A17' => array(
'Id' => 'AG-A17',
'Label' => 'Age 17',
),
'AG-A18' => array(
'Id' => 'AG-A18',
'Label' => 'Age 18',
),
'AG-A19' => array(
'Id' => 'AG-A19',
'Label' => 'Age 19',
),
'AG-A20' => array(
'Id' => 'AG-A20',
'Label' => 'Age 20',
),
'AG-A21' => array(
'Id' => 'AG-A21',
'Label' => 'Age 21',
),
'AG-A22' => array(
'Id' => 'AG-A22',
'Label' => 'Age 22',
),
'AG-A23' => array(
'Id' => 'AG-A23',
'Label' => 'Age 23',
),
'AG-A24' => array(
'Id' => 'AG-A24',
'Label' => 'Age 24',
),
'AG-A25' => array(
'Id' => 'AG-A25',
'Label' => 'Age 25 or Over',
),
'AG-U14' => array(
'Id' => 'AG-U14',
'Label' => 'Age 14 or Under',
),
'AG-UNK' => array(
'Id' => 'AG-UNK',
'Label' => 'Age Unknown',
),
);
}
| bburnichon/PHPExiftool | lib/PHPExiftool/Driver/Tag/XMPPlus/MinorModelAgeDisclosure.php | PHP | mit | 2,220 |
# alfirahadian.github.io
Building Hybrid Web Application with Ionic from start to end
| alfirahadian/parade_web | README.md | Markdown | mit | 86 |
#include "../common/gba.h"
#include "../common/fixed.c"
typedef struct{
union{
struct{
fixed x;
fixed y;
};
fixed vec[2];
};
} Vec2;
fixed DotProduct(Vec2 a, Vec2 b){
return fixMult(a.x, b.x) + fixMult(a.y, b.y);
}
Vec2 VecSub(Vec2 a, Vec2 b){
Vec2 retVal = {a.x - b.x, a.y - b.y};
return retVal;
}
Vec2 VecAdd(Vec2 a, Vec2 b){
Vec2 retVal = {a.x + b.x, a.y + b.y};
return retVal;
}
Vec2 VecScale(Vec2 v, fixed s){
Vec2 retVal = {fixMult(v.x, s), fixMult(v.y, s)};
return retVal;
}
Vec2 AngleToVec(fixed angle){
Vec2 forward = {mySin(angle), myCos(angle)};
return forward;
}
typedef struct{
Vec2 start;
Vec2 end;
rgb15 col;
} Wall;
#define MAX_WALL_COUNT 20
Wall walls[MAX_WALL_COUNT];
int wallCount = 0;
void AddWall(Wall wall){
walls[wallCount] = wall;
wallCount++;
}
#define FRAME_MEM ((volatile uint16*)MEM_VRAM)
static inline fixed mySqrt(fixed in){
int reduce = (in >= makeFixed(4));
if(reduce){
in /= 4;
}
in -= FIXED_ONE;
fixed guess = FIXED_ONE + in/2 - fixMult(in,in)/8 + fixPow(in,3)/16 - 5*fixPow(in,4)/128 + 7*fixPow(in,5)/256;
in += FIXED_ONE;
for(int i = 0; i < 10; i++){
if(guess == 0){
break;
}
guess = (guess + fixDiv(in, guess))/2;
}
if(reduce){
guess *= 2;
}
return abs(guess);
}
int main(void) {
INT_VECTOR = InterruptMain;
BNS_REG_IME = 0;
REG_DISPSTAT |= LCDC_VBL;
BNS_REG_IE |= IRQ_VBLANK;
BNS_REG_IME = 1;
REG_DISPLAY = 0x0403;
for(int i = 0; i < SCREEN_WIDTH*SCREEN_HEIGHT; i++){
FRAME_MEM[i] = 0;
}
Wall firstWall = {{fixedFromFlt(-5.0f), fixedFromFlt(0.0f)}, {fixedFromFlt(5.0f), fixedFromFlt(4.0f)}, 0x3448};
AddWall(firstWall);
fixed playerAngle = 0;
Vec2 playerPos = {fixedFromFlt(0.0f), fixedFromFlt(-4.0f)};
uint32 keyStates = 0;
uint32 prevStates = 0;
while(1){
asm("swi 0x05");
keyStates = ~REG_KEY_INPUT & KEY_ANY;
Vec2 playerForward = AngleToVec(playerAngle);
Vec2 playerRight = {playerForward.y, -playerForward.x};
if(keyStates & KEY_UP){
playerPos = VecAdd(playerPos, VecScale(playerForward, fixedFromFlt(0.f)));
}
if(keyStates & KEY_DOWN){
playerPos = VecSub(playerPos, VecScale(playerForward, fixedFromFlt(0.5f)));
}
if(keyStates & KEY_LEFT){
playerPos = VecSub(playerPos, VecScale(playerRight, fixedFromFlt(0.f)));
}
if(keyStates & KEY_RIGHT){
playerPos = VecAdd(playerPos, VecScale(playerRight, fixedFromFlt(0.f)));
}
if(keyStates & BUTTON_L){
playerAngle += fixedFromFlt(2.5f);
}
if(keyStates & BUTTON_R){
playerAngle -= fixedFromFlt(2.5f);
}
//uint16
for(int i = 0; i < wallCount; i++){
Vec2 playerToWallStart = VecSub(walls[i].start, playerPos);
Vec2 playerToWallEnd = VecSub(walls[i].end, playerPos);
fixed forwardDotToStart = DotProduct(playerToWallStart, playerForward);
fixed forwardDotToEnd = DotProduct(playerToWallEnd, playerForward);
if(forwardDotToStart > 0 || forwardDotToEnd > 0){
Vec2 startProj = VecSub(walls[i].start, VecScale(playerForward, forwardDotToStart));
Vec2 endProj = VecSub(walls[i].end, VecScale(playerForward, forwardDotToEnd));
fixed startProjDotRight = DotProduct(startProj, playerRight);
fixed endProjDotRight = DotProduct(endProj, playerRight);
int32 pixelStart = roundFixedToInt(startProjDotRight*SCREEN_WIDTH)+SCREEN_WIDTH/2;
int32 pixelEnd = roundFixedToInt( endProjDotRight*SCREEN_WIDTH)+SCREEN_WIDTH/2;
fixed startDepth = mySqrt(forwardDotToStart);
fixed endDepth = mySqrt(forwardDotToEnd);
if(pixelStart > pixelEnd){
int32 temp = pixelStart;
pixelStart = pixelEnd;
pixelEnd = temp;
fixed depthTmp = startDepth;
startDepth = endDepth;
endDepth = depthTmp;
}
if(pixelEnd < 0 || pixelStart >= SCREEN_WIDTH){
continue;
}
else{
if(pixelStart < 0){
fixed ratio = makeFixed(-pixelStart)/makeFixed(pixelEnd-pixelStart);
pixelStart = 0;
startDepth = fixMult(FIXED_ONE-ratio, startDepth) + fixMult(ratio, endDepth);
}
if(pixelEnd >= SCREEN_WIDTH){
fixed ratio = makeFixed(pixelEnd - SCREEN_WIDTH)/makeFixed(pixelEnd);
pixelEnd = SCREEN_WIDTH - 1;
endDepth = fixMult(FIXED_ONE-ratio, endDepth) + fixMult(ratio, startDepth);
}
fixed depthIncrement = fixDiv(endDepth - startDepth, makeFixed(pixelEnd - pixelStart + 1));
fixed currDepth = startDepth;
rgb15 wallCol = walls[i].col;
for(int32 x = pixelStart; x <= pixelEnd; x++){
int32 wallHeight = roundFixedToInt(fixDiv(makeFixed(SCREEN_HEIGHT), currDepth));
int32 y = 0;
for(; y < SCREEN_HEIGHT/2-wallHeight; y++){
FRAME_MEM[y*SCREEN_WIDTH+x] = 0x4433;
}
for(;y < SCREEN_HEIGHT/2+wallHeight; y++){
FRAME_MEM[y*SCREEN_WIDTH+x] = wallCol;
}
for(;y < SCREEN_HEIGHT; y++){
FRAME_MEM[y*SCREEN_WIDTH+x] = 0x2211;
}
currDepth += depthIncrement;
}
}
}
}
prevStates = keyStates;
}
return 0;
} | Benjins/GBADev | 3dproper/main.c | C | mit | 5,048 |
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Fri Feb 24 12:49:36 2017
@author: drsmith
"""
import os
from .globals import FdpError
def canonicalMachineName(machine=''):
aliases = {'nstxu': ['nstx', 'nstxu', 'nstx-u'],
'diiid': ['diiid', 'diii-d', 'd3d'],
'cmod': ['cmod', 'c-mod']}
for key, value in aliases.items():
if machine.lower() in value:
return key
# invalid machine name
raise FdpError('"{}" is not a valid machine name\n'.format(machine))
MDS_SERVERS = {
'nstxu': {'hostname': 'skylark.pppl.gov',
'port': '8000'},
'diiid': {'hostname': 'atlas.gat.com',
'port': '8000'}
}
EVENT_SERVERS = {
'nstxu': {'hostname': 'skylark.pppl.gov',
'port': '8000'},
'diiid': {'hostname': 'atlas.gat.com',
'port': '8000'},
'ltx': {'hostname': 'lithos.pppl.gov',
'port': '8000'}
}
LOGBOOK_CREDENTIALS = {
'nstxu': {'server': 'sql2008.pppl.gov',
'instance': None,
'username': None,
'password': None,
'database': None,
'port': '62917',
'table': 'entries',
'loginfile': os.path.join(os.getenv('HOME'),
'nstxlogs.sybase_login')
}
}
| Fusion-Data-Platform/fdp | fdp/lib/datasources.py | Python | mit | 1,353 |
process.env.NODE_ENV = 'test';
const chai = require('chai');
const chaiHttp = require('chai-http');
const should = chai.should();
const CostCalculator = require("../libs/costcalculator");
describe('Calculate Cost', () => {
describe("Book Meeting Room", () => {
it("it should calcuate cost for meeting room for 30m", async (done) => {
try {
let result = await CostCalculator("5bd7283ebfc02163c7b4d5d7", new Date("2020-01-01T09:00:00"), new Date("2020-01-01T09:30:00"));
result.should.equal(2.8);
done();
} catch(err) {
done(err);
}
});
});
}); | 10layer/jexpress | test/costcalculator.js | JavaScript | mit | 675 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>monae: Black list 🏴☠️</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.7.1+2 / monae - 0.2.2</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
monae
<small>
0.2.2
<span class="label label-default">Black list 🏴☠️</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-01-27 01:18:40 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-27 01:18:40 UTC)</em><p>
<div class="alert alert-info" role="alert">
<p>This result is black-listed as it is considered as too hard to reproduce / to solve. If you find a way to fix this package, please make a pull-request to <a class="alert-link" href="https://github.com/coq/opam-coq-archive">github.com/coq/opam-coq-archive</a>. The list of black-listed packages is in <a class="alert-link" href="https://github.com/coq-bench/make-html/blob/master/black_list.rb">black_list.rb</a>.</p>
</div>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 2 Virtual package relying on perl
coq 8.7.1+2 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.03.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.03.0 Official 4.03.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.2 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Reynald Affeldt <[email protected]>"
homepage: "https://github.com/affeldt-aist/monae"
dev-repo: "git+https://github.com/affeldt-aist/monae.git"
bug-reports: "https://github.com/affeldt-aist/monae/issues"
license: "LGPL-2.1-or-later"
synopsis: "Monads and equational reasoning in Coq"
description: """
This Coq library contains a hierarchy of monads with their laws used
in several examples of monadic equational reasoning."""
build: [
[make "-j%{jobs}%"]
[make "sect5"]
[make "-C" "impredicative_set"]
]
install: [make "install"]
depends: [
"coq" { (>= "8.11" & < "8.13~") | (= "dev") }
"coq-mathcomp-ssreflect" { (>= "1.11.0" & < "1.13~") }
"coq-mathcomp-fingroup" { (>= "1.11.0" & < "1.13~") }
"coq-mathcomp-algebra" { (>= "1.11.0" & < "1.13~") }
"coq-mathcomp-solvable" { (>= "1.11.0" & < "1.13~") }
"coq-mathcomp-field" { (>= "1.11.0" & < "1.13~") }
"coq-mathcomp-analysis" { (>= "0.3.4" & < "0.3.6~") }
"coq-infotheo" { >= "0.2.1" & < "0.3~"}
"coq-paramcoq" { >= "1.1.2" & < "1.2~" }
]
tags: [
"keyword:monae"
"keyword:effects"
"keyword:probability"
"keyword:nondeterminism"
"logpath:monae"
]
authors: [
"Reynald Affeldt"
"David Nowak"
"Takafumi Saikawa"
"Jacques Garrigue"
"Celestine Sauvage"
"Kazunari Tanaka"
]
url {
http: "https://github.com/affeldt-aist/monae/archive/0.2.2.tar.gz"
checksum: "sha512=a752aa916752306c3ce5231e118d96154633976bcd1062174496c9f74b7d5f216c6d70552f1abcc1ea1b0706708938e6d6ffc8c05b276eec779c80ec90b70660"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-monae.0.2.2 coq.8.7.1+2</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.7.1+2).
The following dependencies couldn't be met:
- coq-monae -> coq >= dev -> ocaml >= 4.05.0
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-monae.0.2.2</code></dd>
<dt>Return code</dt>
<dd>15360</dd>
<dt>Output</dt>
<dd><pre>The following actions will be performed:
- remove coq 8.7.1+2
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[WARNING] package uninstall script failed at /home/bench/.opam/opam-init/hooks/sandbox.sh remove rm -R /home/bench/.opam/ocaml-base-compiler.4.03.0/lib/coq /home/bench/.opam/ocaml-base-compiler.4.03.0/share/coq:
# context 2.0.5 | linux/x86_64 | ocaml-base-compiler.4.03.0 | https://opam.ocaml.org#d4502500
# path ~/run
# command ~/.opam/opam-init/hooks/sandbox.sh remove rm -R /home/bench/.opam/ocaml-base-compiler.4.03.0/lib/coq /home/bench/.opam/ocaml-base-compiler.4.03.0/share/coq
# exit-code 1
# env-file ~/.opam/log/coq-842-9b8556.env
# output-file ~/.opam/log/coq-842-9b8556.out
### output ###
# rm: cannot remove '/home/bench/.opam/ocaml-base-compiler.4.03.0/share/coq': No such file or directory
Done.
# Run eval $(opam env) to update the current shell environment
[ERROR] Sorry, resolution of the request timed out.
Try to specify a simpler request, use a different solver, or increase the allowed time by setting OPAMSOLVERTIMEOUT to a bigger value (currently, it is set to 600.0 seconds).
</pre></dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.03.0-2.0.5/released/8.7.1+2/monae/0.2.2.html | HTML | mit | 10,025 |
<?php
/**
* Created by PhpStorm.
* User: GuoHao
* Date: 2016/1/10
* Time: 14:32
*/
class BeauticianRestModel extends BaseModel
{
public function setTable()
{
$this->table = 'beautician_rest';
}
public function rules()
{
$validate = new ValidateUtil();
$validate->required('rest_day');
$validate->required('start_time');
$validate->required('end_time');
$validate->required('ps');
$validate->required('beautician_id');
return $validate;
}
} | guohao214/xinya | application/models/BeauticianRestModel.php | PHP | mit | 561 |
package com.java.group34;
import java.util.ArrayList;
/**
* Created by dell-pc on 2017/9/11.
*/
public class NewsPictures {
private Value[] value;
private static class Value
{
String contentUrl;
}
public ArrayList<String> getFirstNthPictures(int n)
{
ArrayList<String> ans=new ArrayList<String>();
System.out.println(value.length);
for(int i=0;i<n&&i<value.length;++i)
ans.add(value[i].contentUrl);
return ans;
}
}
| bennyguo/AssemblyNews | app/src/main/java/com/java/group34/NewsPictures.java | Java | mit | 500 |
<!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en" dir="ltr">
<!--<![endif]-->
<!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open&id=3 (optional: ?Open&page=filename.html&id=x) -->
<!-- Created: ; Product Code: 536; Server: stratnotes2.ic.gc.ca -->
<head>
<!-- Title begins / Début du titre -->
<title>
Icon Technologies Limited -
Complete profile - Canadian Company Capabilities - Industries and Business - Industry Canada
</title>
<!-- Title ends / Fin du titre -->
<!-- Meta-data begins / Début des métadonnées -->
<meta charset="utf-8" />
<meta name="dcterms.language" title="ISO639-2" content="eng" />
<meta name="dcterms.title" content="" />
<meta name="description" content="" />
<meta name="dcterms.description" content="" />
<meta name="dcterms.type" content="report, data set" />
<meta name="dcterms.subject" content="businesses, industry" />
<meta name="dcterms.subject" content="businesses, industry" />
<meta name="dcterms.issued" title="W3CDTF" content="" />
<meta name="dcterms.modified" title="W3CDTF" content="" />
<meta name="keywords" content="" />
<meta name="dcterms.creator" content="" />
<meta name="author" content="" />
<meta name="dcterms.created" title="W3CDTF" content="" />
<meta name="dcterms.publisher" content="" />
<meta name="dcterms.audience" title="icaudience" content="" />
<meta name="dcterms.spatial" title="ISO3166-1" content="" />
<meta name="dcterms.spatial" title="gcgeonames" content="" />
<meta name="dcterms.format" content="HTML" />
<meta name="dcterms.identifier" title="ICsiteProduct" content="536" />
<!-- EPI-11240 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- MCG-202 -->
<meta content="width=device-width,initial-scale=1" name="viewport">
<!-- EPI-11567 -->
<meta name = "format-detection" content = "telephone=no">
<!-- EPI-12603 -->
<meta name="robots" content="noarchive">
<!-- EPI-11190 - Webtrends -->
<script>
var startTime = new Date();
startTime = startTime.getTime();
</script>
<!--[if gte IE 9 | !IE ]><!-->
<link href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/favicon.ico" rel="icon" type="image/x-icon">
<link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/wet-boew.min.css">
<!--<![endif]-->
<link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/theme.min.css">
<!--[if lt IE 9]>
<link href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/favicon.ico" rel="shortcut icon" />
<link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/ie8-wet-boew.min.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/ie8-wet-boew.min.js"></script>
<![endif]-->
<!--[if lte IE 9]>
<![endif]-->
<noscript><link rel="stylesheet" href="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/css/noscript.min.css" /></noscript>
<!-- Google Tag Manager DO NOT REMOVE OR MODIFY - NE PAS SUPPRIMER OU MODIFIER -->
<script>dataLayer1 = [];</script>
<!-- End Google Tag Manager -->
<!-- EPI-11235 -->
<link rel="stylesheet" href="/eic/home.nsf/css/add_WET_4-0_Canada_Apps.css">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<link href="/app/ccc/srch/css/print.css" media="print" rel="stylesheet" type="text/css" />
</head>
<body class="home" vocab="http://schema.org/" typeof="WebPage">
<!-- EPIC HEADER BEGIN -->
<!-- Google Tag Manager DO NOT REMOVE OR MODIFY - NE PAS SUPPRIMER OU MODIFIER -->
<noscript><iframe title="Google Tag Manager" src="//www.googletagmanager.com/ns.html?id=GTM-TLGQ9K" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer1'?'&l='+l:'';j.async=true;j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer1','GTM-TLGQ9K');</script>
<!-- End Google Tag Manager -->
<!-- EPI-12801 -->
<span typeof="Organization"><meta property="legalName" content="Department_of_Industry"></span>
<ul id="wb-tphp">
<li class="wb-slc">
<a class="wb-sl" href="#wb-cont">Skip to main content</a>
</li>
<li class="wb-slc visible-sm visible-md visible-lg">
<a class="wb-sl" href="#wb-info">Skip to "About this site"</a>
</li>
</ul>
<header role="banner">
<div id="wb-bnr" class="container">
<section id="wb-lng" class="visible-md visible-lg text-right">
<h2 class="wb-inv">Language selection</h2>
<div class="row">
<div class="col-md-12">
<ul class="list-inline mrgn-bttm-0">
<li><a href="nvgt.do?V_TOKEN=1492292700377&V_SEARCH.docsCount=3&V_DOCUMENT.docRank=22419&V_SEARCH.docsStart=22418&V_SEARCH.command=navigate&V_SEARCH.resultsJSP=/prfl.do&lang=fra&redirectUrl=/app/scr/wp-config.php?_flId?_flxKy=e1s1&estblmntNo=234567041301&profileId=61&_evId=bck&lang=eng&V_SEARCH.showStricts=false&prtl=1&_flId?_flId?_flxKy=e1s1" title="Français" lang="fr">Français</a></li>
</ul>
</div>
</div>
</section>
<div class="row">
<div class="brand col-xs-8 col-sm-9 col-md-6">
<a href="http://www.canada.ca/en/index.html"><object type="image/svg+xml" tabindex="-1" data="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/sig-blk-en.svg"></object><span class="wb-inv"> Government of Canada</span></a>
</div>
<section class="wb-mb-links col-xs-4 col-sm-3 visible-sm visible-xs" id="wb-glb-mn">
<h2>Search and menus</h2>
<ul class="list-inline text-right chvrn">
<li><a href="#mb-pnl" title="Search and menus" aria-controls="mb-pnl" class="overlay-lnk" role="button"><span class="glyphicon glyphicon-search"><span class="glyphicon glyphicon-th-list"><span class="wb-inv">Search and menus</span></span></span></a></li>
</ul>
<div id="mb-pnl"></div>
</section>
<!-- Site Search Removed -->
</div>
</div>
<nav role="navigation" id="wb-sm" class="wb-menu visible-md visible-lg" data-trgt="mb-pnl" data-ajax-fetch="//cdn.canada.ca/gcweb-cdn-dev/sitemenu/sitemenu-en.html" typeof="SiteNavigationElement">
<h2 class="wb-inv">Topics menu</h2>
<div class="container nvbar">
<div class="row">
<ul class="list-inline menu">
<li><a href="https://www.canada.ca/en/services/jobs.html">Jobs</a></li>
<li><a href="http://www.cic.gc.ca/english/index.asp">Immigration</a></li>
<li><a href="https://travel.gc.ca/">Travel</a></li>
<li><a href="https://www.canada.ca/en/services/business.html">Business</a></li>
<li><a href="https://www.canada.ca/en/services/benefits.html">Benefits</a></li>
<li><a href="http://healthycanadians.gc.ca/index-eng.php">Health</a></li>
<li><a href="https://www.canada.ca/en/services/taxes.html">Taxes</a></li>
<li><a href="https://www.canada.ca/en/services.html">More services</a></li>
</ul>
</div>
</div>
</nav>
<!-- EPIC BODY BEGIN -->
<nav role="navigation" id="wb-bc" class="" property="breadcrumb">
<h2 class="wb-inv">You are here:</h2>
<div class="container">
<div class="row">
<ol class="breadcrumb">
<li><a href="/eic/site/icgc.nsf/eng/home" title="Home">Home</a></li>
<li><a href="/eic/site/icgc.nsf/eng/h_07063.html" title="Industries and Business">Industries and Business</a></li>
<li><a href="/eic/site/ccc-rec.nsf/tpl-eng/../eng/home" >Canadian Company Capabilities</a></li>
</ol>
</div>
</div>
</nav>
</header>
<main id="wb-cont" role="main" property="mainContentOfPage" class="container">
<!-- End Header -->
<!-- Begin Body -->
<!-- Begin Body Title -->
<!-- End Body Title -->
<!-- Begin Body Head -->
<!-- End Body Head -->
<!-- Begin Body Content -->
<br>
<!-- Complete Profile -->
<!-- Company Information above tabbed area-->
<input id="showMore" type="hidden" value='more'/>
<input id="showLess" type="hidden" value='less'/>
<h1 id="wb-cont">
Company profile - Canadian Company Capabilities
</h1>
<div class="profileInfo hidden-print">
<ul class="list-inline">
<li><a href="cccSrch.do?lang=eng&profileId=&prtl=1&key.hitsPerPage=25&searchPage=%252Fapp%252Fccc%252Fsrch%252FcccBscSrch.do%253Flang%253Deng%2526amp%253Bprtl%253D1%2526amp%253Btagid%253D&V_SEARCH.scopeCategory=CCC.Root&V_SEARCH.depth=1&V_SEARCH.showStricts=false&V_SEARCH.sortSpec=title+asc&rstBtn.x=" class="btn btn-link">New Search</a> |</li>
<li><form name="searchForm" method="post" action="/app/ccc/srch/bscSrch.do">
<input type="hidden" name="lang" value="eng" />
<input type="hidden" name="profileId" value="" />
<input type="hidden" name="prtl" value="1" />
<input type="hidden" name="searchPage" value="%2Fapp%2Fccc%2Fsrch%2FcccBscSrch.do%3Flang%3Deng%26amp%3Bprtl%3D1%26amp%3Btagid%3D" />
<input type="hidden" name="V_SEARCH.scopeCategory" value="CCC.Root" />
<input type="hidden" name="V_SEARCH.depth" value="1" />
<input type="hidden" name="V_SEARCH.showStricts" value="false" />
<input id="repeatSearchBtn" class="btn btn-link" type="submit" value="Return to search results" />
</form></li>
<li>| <a href="nvgt.do?V_SEARCH.docsStart=22417&V_DOCUMENT.docRank=22418&V_SEARCH.docsCount=3&lang=eng&prtl=1&sbPrtl=&profile=cmpltPrfl&V_TOKEN=1492292729174&V_SEARCH.command=navigate&V_SEARCH.resultsJSP=%2fprfl.do&estblmntNo=234567164090&profileId=&key.newSearchLabel=">Previous Company</a></li>
<li>| <a href="nvgt.do?V_SEARCH.docsStart=22419&V_DOCUMENT.docRank=22420&V_SEARCH.docsCount=3&lang=eng&prtl=1&sbPrtl=&profile=cmpltPrfl&V_TOKEN=1492292729174&V_SEARCH.command=navigate&V_SEARCH.resultsJSP=%2fprfl.do&estblmntNo=234567159333&profileId=&key.newSearchLabel=">Next Company</a></li>
</ul>
</div>
<details>
<summary>Third-Party Information Liability Disclaimer</summary>
<p>Some of the information on this Web page has been provided by external sources. The Government of Canada is not responsible for the accuracy, reliability or currency of the information supplied by external sources. Users wishing to rely upon this information should consult directly with the source of the information. Content provided by external sources is not subject to official languages, privacy and accessibility requirements.</p>
</details>
<h2>
Icon Technologies Limited
</h2>
<div class="row">
<div class="col-md-5">
<h2 class="h5 mrgn-bttm-0">Legal/Operating Name:</h2>
<p>Icon Technologies Limited</p>
<div class="mrgn-tp-md"></div>
<p class="mrgn-bttm-0" ><a href="http://www.icondirect.com"
target="_blank" title="Website URL">http://www.icondirect.com</a></p>
<p><a href="mailto:[email protected]" title="[email protected]">[email protected]</a></p>
</div>
<div class="col-md-4 mrgn-sm-sm">
<h2 class="h5 mrgn-bttm-0">Mailing Address:</h2>
<address class="mrgn-bttm-md">
P.O. Box 1088<br/>
427 Buffalo St<br/>
WINKLER,
Manitoba<br/>
R6W 4B2
<br/>
</address>
<h2 class="h5 mrgn-bttm-0">Location Address:</h2>
<address class="mrgn-bttm-md">
427 Buffalo St<br/>
WINKLER,
Manitoba<br/>
R6W 4B2
<br/>
</address>
<p class="mrgn-bttm-0"><abbr title="Telephone">Tel.</abbr>:
(204) 325-1081
</p>
<p class="mrgn-bttm-lg"><abbr title="Facsimile">Fax</abbr>:
(204) 325-6441</p>
</div>
<div class="col-md-3 mrgn-tp-md">
</div>
</div>
<div class="row mrgn-tp-md mrgn-bttm-md">
<div class="col-md-12">
</div>
</div>
<!-- <div class="wb-tabs ignore-session update-hash wb-eqht-off print-active"> -->
<div class="wb-tabs ignore-session">
<div class="tabpanels">
<details id="details-panel1">
<summary>
Full profile
</summary>
<!-- Tab 1 -->
<h2 class="wb-invisible">
Full profile
</h2>
<!-- Contact Information -->
<h3 class="page-header">
Contact information
</h3>
<section class="container-fluid">
<div class="row mrgn-tp-lg">
<div class="col-md-3">
<strong>
John
Loewen
</strong></div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Title:
</strong>
</div>
<div class="col-md-7">
<!--if client gender is not null or empty we use gender based job title-->
President
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Area of Responsibility:
</strong>
</div>
<div class="col-md-7">
Management Executive.
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Telephone:
</strong>
</div>
<div class="col-md-7">
(204) 325-1081
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Ext:
</strong>
</div>
<div class="col-md-7">
222
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Facsimile:
</strong>
</div>
<div class="col-md-7">
(204) 325-6441
</div>
</div>
<div class="row mrgn-tp-lg">
<div class="col-md-3">
<strong>
George
Krahn
</strong></div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Title:
</strong>
</div>
<div class="col-md-7">
Customer Service Representative<br>
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Area of Responsibility:
</strong>
</div>
<div class="col-md-7">
Customer Service.
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Telephone:
</strong>
</div>
<div class="col-md-7">
(204) 325-1081
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Ext:
</strong>
</div>
<div class="col-md-7">
227
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Facsimile:
</strong>
</div>
<div class="col-md-7">
(204) 325-6441
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Email:
</strong>
</div>
<div class="col-md-7">
[email protected]
</div>
</div>
</section>
<p class="mrgn-tp-lg text-right small hidden-print">
<a href="#wb-cont">top of page</a>
</p>
<!-- Company Description -->
<h3 class="page-header">
Company description
</h3>
<section class="container-fluid">
<div class="row">
<div class="col-md-5">
<strong>
Country of Ownership:
</strong>
</div>
<div class="col-md-7">
Canada
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Exporting:
</strong>
</div>
<div class="col-md-7">
Yes
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Quality Certification:
</strong>
</div>
<div class="col-md-7">
ISO 9001.
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Primary Industry (NAICS):
</strong>
</div>
<div class="col-md-7">
326198 - All Other Plastic Product Manufacturing
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Primary Business Activity:
</strong>
</div>
<div class="col-md-7">
Manufacturer / Processor / Producer
</div>
</div>
</section>
<!-- Products / Services / Licensing -->
<h3 class="page-header">
Product / Service / Licensing
</h3>
<section class="container-fluid">
<div class="row mrgn-bttm-md">
<div class="col-md-3">
<strong>
Service Name:
</strong>
</div>
<div class="col-md-9">
Thermoforming, Molds, Reverse Engineering, <br>
</div>
</div>
<div class="row mrgn-bttm-md">
<div class="col-md-12">
Icon Technologies Limited, Manufactures high quality thermoformed
<br>
plastic products. Services are Mold Making, Product Development,
<br>
Solid Modeling, Revese Engineering.<br>
<br>
</div>
</div>
</section>
<p class="mrgn-tp-lg text-right small hidden-print">
<a href="#wb-cont">top of page</a>
</p>
<!-- Technology Profile -->
<!-- Market Profile -->
<h3 class="page-header">
Market profile
</h3>
<section class="container-fluid">
<h4>
Geographic markets:
</h4>
<h5>
Export experience:
</h5>
<ul>
<li>United States</li>
</ul>
</section>
<p class="mrgn-tp-lg text-right small hidden-print">
<a href="#wb-cont">top of page</a>
</p>
<!-- Sector Information -->
<details class="mrgn-tp-md mrgn-bttm-md">
<summary>
Third-Party Information Liability Disclaimer
</summary>
<p>
Some of the information on this Web page has been provided by external sources. The Government of Canada is not responsible for the accuracy, reliability or currency of the information supplied by external sources. Users wishing to rely upon this information should consult directly with the source of the information. Content provided by external sources is not subject to official languages, privacy and accessibility requirements.
</p>
</details>
</details>
<details id="details-panel2">
<summary>
Contacts
</summary>
<h2 class="wb-invisible">
Contact information
</h2>
<!-- Contact Information -->
<section class="container-fluid">
<div class="row mrgn-tp-lg">
<div class="col-md-3">
<strong>
John
Loewen
</strong></div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Title:
</strong>
</div>
<div class="col-md-7">
<!--if client gender is not null or empty we use gender based job title-->
President
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Area of Responsibility:
</strong>
</div>
<div class="col-md-7">
Management Executive.
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Telephone:
</strong>
</div>
<div class="col-md-7">
(204) 325-1081
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Ext:
</strong>
</div>
<div class="col-md-7">
222
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Facsimile:
</strong>
</div>
<div class="col-md-7">
(204) 325-6441
</div>
</div>
<div class="row mrgn-tp-lg">
<div class="col-md-3">
<strong>
George
Krahn
</strong></div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Title:
</strong>
</div>
<div class="col-md-7">
Customer Service Representative<br>
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Area of Responsibility:
</strong>
</div>
<div class="col-md-7">
Customer Service.
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Telephone:
</strong>
</div>
<div class="col-md-7">
(204) 325-1081
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Ext:
</strong>
</div>
<div class="col-md-7">
227
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Facsimile:
</strong>
</div>
<div class="col-md-7">
(204) 325-6441
</div>
</div>
<div class="row mrgn-lft-md">
<div class="col-md-5">
<strong>
Email:
</strong>
</div>
<div class="col-md-7">
[email protected]
</div>
</div>
</section>
</details>
<details id="details-panel3">
<summary>
Description
</summary>
<h2 class="wb-invisible">
Company description
</h2>
<section class="container-fluid">
<div class="row">
<div class="col-md-5">
<strong>
Country of Ownership:
</strong>
</div>
<div class="col-md-7">
Canada
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Exporting:
</strong>
</div>
<div class="col-md-7">
Yes
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Quality Certification:
</strong>
</div>
<div class="col-md-7">
ISO 9001.
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Primary Industry (NAICS):
</strong>
</div>
<div class="col-md-7">
326198 - All Other Plastic Product Manufacturing
</div>
</div>
<div class="row">
<div class="col-md-5">
<strong>
Primary Business Activity:
</strong>
</div>
<div class="col-md-7">
Manufacturer / Processor / Producer
</div>
</div>
</section>
</details>
<details id="details-panel4">
<summary>
Products, services and licensing
</summary>
<h2 class="wb-invisible">
Product / Service / Licensing
</h2>
<section class="container-fluid">
<div class="row mrgn-bttm-md">
<div class="col-md-3">
<strong>
Service Name:
</strong>
</div>
<div class="col-md-9">
Thermoforming, Molds, Reverse Engineering, <br>
</div>
</div>
<div class="row mrgn-bttm-md">
<div class="col-md-12">
Icon Technologies Limited, Manufactures high quality thermoformed
<br>
plastic products. Services are Mold Making, Product Development,
<br>
Solid Modeling, Revese Engineering.<br>
<br>
</div>
</div>
</section>
</details>
<details id="details-panel6">
<summary>
Market
</summary>
<h2 class="wb-invisible">
Market profile
</h2>
<section class="container-fluid">
<h4>
Geographic markets:
</h4>
<h5>
Export experience:
</h5>
<ul>
<li>United States</li>
</ul>
</section>
</details>
</div>
</div>
<div class="row">
<div class="col-md-12 text-right">
Last Update Date 2016-06-15
</div>
</div>
<!--
- Artifact ID: CBW - IMBS - CCC Search WAR
- Group ID: ca.gc.ic.strategis.imbs.ccc.search
- Version: 3.26
- Built-By: bamboo
- Build Timestamp: 2017-03-02T21:29:28Z
-->
<!-- End Body Content -->
<!-- Begin Body Foot -->
<!-- End Body Foot -->
<!-- END MAIN TABLE -->
<!-- End body -->
<!-- Begin footer -->
<div class="row pagedetails">
<div class="col-sm-5 col-xs-12 datemod">
<dl id="wb-dtmd">
<dt class=" hidden-print">Date Modified:</dt>
<dd class=" hidden-print">
<span><time>2017-03-02</time></span>
</dd>
</dl>
</div>
<div class="clear visible-xs"></div>
<div class="col-sm-4 col-xs-6">
</div>
<div class="col-sm-3 col-xs-6 text-right">
</div>
<div class="clear visible-xs"></div>
</div>
</main>
<footer role="contentinfo" id="wb-info">
<nav role="navigation" class="container wb-navcurr">
<h2 class="wb-inv">About government</h2>
<!-- EPIC FOOTER BEGIN -->
<!-- EPI-11638 Contact us -->
<ul class="list-unstyled colcount-sm-2 colcount-md-3">
<li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07026.html#pageid=E048-H00000&from=Industries">Contact us</a></li>
<li><a href="https://www.canada.ca/en/government/dept.html">Departments and agencies</a></li>
<li><a href="https://www.canada.ca/en/government/publicservice.html">Public service and military</a></li>
<li><a href="https://www.canada.ca/en/news.html">News</a></li>
<li><a href="https://www.canada.ca/en/government/system/laws.html">Treaties, laws and regulations</a></li>
<li><a href="https://www.canada.ca/en/transparency/reporting.html">Government-wide reporting</a></li>
<li><a href="http://pm.gc.ca/eng">Prime Minister</a></li>
<li><a href="https://www.canada.ca/en/government/system.html">How government works</a></li>
<li><a href="http://open.canada.ca/en/">Open government</a></li>
</ul>
</nav>
<div class="brand">
<div class="container">
<div class="row">
<nav class="col-md-10 ftr-urlt-lnk">
<h2 class="wb-inv">About this site</h2>
<ul>
<li><a href="https://www.canada.ca/en/social.html">Social media</a></li>
<li><a href="https://www.canada.ca/en/mobile.html">Mobile applications</a></li>
<li><a href="http://www1.canada.ca/en/newsite.html">About Canada.ca</a></li>
<li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07033.html">Terms and conditions</a></li>
<li><a href="http://www.ic.gc.ca/eic/site/icgc.nsf/eng/h_07033.html#p1">Privacy</a></li>
</ul>
</nav>
<div class="col-xs-6 visible-sm visible-xs tofpg">
<a href="#wb-cont">Top of Page <span class="glyphicon glyphicon-chevron-up"></span></a>
</div>
<div class="col-xs-6 col-md-2 text-right">
<object type="image/svg+xml" tabindex="-1" role="img" data="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/assets/wmms-blk.svg" aria-label="Symbol of the Government of Canada"></object>
</div>
</div>
</div>
</div>
</footer>
<!--[if gte IE 9 | !IE ]><!-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/wet-boew.min.js"></script>
<!--<![endif]-->
<!--[if lt IE 9]>
<script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/ie8-wet-boew2.min.js"></script>
<![endif]-->
<script src="/utils/scripts/_WET_4-0/apps/themes-dist/gcweb/js/theme.min.js"></script>
<!-- EPI-10519 -->
<span class="wb-sessto"
data-wb-sessto='{"inactivity": 1800000, "reactionTime": 180000, "sessionalive": 1800000, "logouturl": "/app/ccc/srch/cccSrch.do?lang=eng&prtl=1"}'></span>
<script src="/eic/home.nsf/js/jQuery.externalOpensInNewWindow.js"></script>
<!-- EPI-11190 - Webtrends -->
<script src="/eic/home.nsf/js/webtrends.js"></script>
<script>var endTime = new Date();</script>
<noscript>
<div><img alt="" id="DCSIMG" width="1" height="1" src="//wt-sdc.ic.gc.ca/dcs6v67hwe0ei7wsv8g9fv50d_3k6i/njs.gif?dcsuri=/nojavascript&WT.js=No&WT.tv=9.4.0&dcssip=www.ic.gc.ca"/></div>
</noscript>
<!-- /Webtrends -->
<!-- JS deps -->
<script src="/eic/home.nsf/js/jquery.imagesloaded.js"></script>
<!-- EPI-11262 - Util JS -->
<script src="/eic/home.nsf/js/_WET_4-0_utils_canada.min.js"></script>
<!-- EPI-11383 -->
<script src="/eic/home.nsf/js/jQuery.icValidationErrors.js"></script>
<span style="display:none;" id='app-info' data-project-groupid='' data-project-artifactid='' data-project-version='' data-project-build-timestamp='' data-issue-tracking='' data-scm-sha1='' data-scm-sha1-abbrev='' data-scm-branch='' data-scm-commit-date=''></span>
</body></html>
<!-- End Footer -->
<!--
- Artifact ID: CBW - IMBS - CCC Search WAR
- Group ID: ca.gc.ic.strategis.imbs.ccc.search
- Version: 3.26
- Built-By: bamboo
- Build Timestamp: 2017-03-02T21:29:28Z
-->
| GoC-Spending/data-corporations | html/234567000049.html | HTML | mit | 42,890 |
# cpu
A simple but interactive design of CPU I hand-wired with logic gates back in college. It was fun :) Sample programs included!
# to view samples in interactive editor
1. Download and install Digital Works (Demo version is enough), i.e. from following url
http://electronics-lab.com/downloads/schematic/002/index.html
* unfortunately it is windows-only and license forbids me to redistribute. Should work on WINE as well.
2. Open DigitalWorks, type CTRL-O and navigate to CPU_final.dwm
3. You should see view like this

4. Now to run simulation
* double click RAM in the middle. Memory contents dialog should pop-up. CPU is already loaded with program that counts squares of natural numbers from 0 to 7, feel free to load other program from /program directory (*.map file, txt source is only for reference). Feel free to write own programs :)
* from program menu select Circuit -> Run. You should notice clock in bottom left corner started to toggle its state
* you can change frequency of clock from Circuit -> Clock speed menu
* select "Object interaction" tool from pallete (hand with pointing finger icon)
* left click "start" input in bottom-left corner
* after a while (around 100 clock ticks) you should see numbers changing on display register
* you can double click most of the parts to view what's inside, even when simulation is running!
5. Have fun!
6. Trouble? Send me an e-mail to 
# to view schematics
1. Just go to img directory, it is not so fun though if not interactive... | sakfa/cpu | README.md | Markdown | mit | 1,602 |
module.exports = {
// Token you get from discord
"token": "",
// Prefix before your commands
"prefix": "",
// Port for webserver (Not working)
"port": 8080,
// Mongodb stuff
"mongodb": {
// Mongodb uri
"uri": ""
},
// Channel IDs
"channelIDs": {
// Where to announce the events in ACCF
"events": "",
// Where to announce online towns
"onlineTowns": "",
// Where to log the logs
"logs": ""
}
}
| rey2952/RoverBot | config.js | JavaScript | mit | 455 |
# Docker image list
## Build Base
- k11e/build-base:alpine-3.4
- k11e/build-base:alpine-3.5
## Apps
- k11e/ffmpeg:3.1.2-alpine
- k11e/strongswan:5.3
- k11e/megahit:v1.1.1
- k11e/metaphlan2:2.6.0 | k11e/dockerized | README.md | Markdown | mit | 197 |
Object.prototype.getKeyByValue = function( value ) {
for( var prop in this ) {
if( this.hasOwnProperty( prop ) ) {
if( this[ prop ] === value )
return prop;
}
}
}
| tametheboardgame/tametheboardgame.github.io | CrushTheCrown/tools.js | JavaScript | mit | 217 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>square-matrices: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.6.1 / square-matrices - 8.8.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
square-matrices
<small>
8.8.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-10-24 00:12:32 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-10-24 00:12:32 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 1 Virtual package relying on perl
coq 8.6.1 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/coq-contribs/square-matrices"
license: "LGPL 2.1"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/SquareMatrices"]
depends: [
"ocaml"
"coq" {>= "8.8" & < "8.9~"}
]
tags: [ "keyword: exponentiation" "keyword: vectors" "keyword: matrices" "keyword: polymorphic recursion" "keyword: nested datatypes" "category: Mathematics/Algebra" ]
authors: [ "Jean-Christophe Filliâtre" ]
bug-reports: "https://github.com/coq-contribs/square-matrices/issues"
dev-repo: "git+https://github.com/coq-contribs/square-matrices.git"
synopsis: "From Fast Exponentiation to Square Matrices"
description: """
This development is a formalization of Chris Okasaki's article
``From Fast Exponentiation to Square Matrices: An Adventure in Types''"""
flags: light-uninstall
url {
src:
"https://github.com/coq-contribs/square-matrices/archive/v8.8.0.tar.gz"
checksum: "md5=d5c82c9fe214e8e1689aa247b375b055"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-square-matrices.8.8.0 coq.8.6.1</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.6.1).
The following dependencies couldn't be met:
- coq-square-matrices -> coq >= 8.8
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-square-matrices.8.8.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.1/released/8.6.1/square-matrices/8.8.0.html | HTML | mit | 7,140 |
# grunt-phpmd-runner
> A phpmd runner that works
## Getting Started
This plugin requires Grunt `~0.4.5`
If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
```shell
npm install grunt-phpmd-runner --save-dev
```
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
```js
grunt.loadNpmTasks('grunt-phpmd-runner');
```
## The "phpmd-runner" task
### Overview
In your project's Gruntfile, add a section named `phpmd-runner` to the data object passed into `grunt.initConfig()`.
```js
grunt.initConfig({
'phpmd-runner': {
options: {
// Task-specific options go here.
},
your_target: {
// Target-specific file lists and/or options go here.
}
}
});
```
phpmd currently doesn't support individual files to deal with.
`grunt-phpmd-runner` bridges that gap... sort of.
### Example configuration
```js
grunt.initConfig({
'phpmd-runner': {
options: {
phpmd: 'vendor/bin/phpmd',
reportFormat: 'xml',
reportFile: 'reports/md.xml'
rulesets: [
'cleancode',
'codesize',
'controversial',
'design',
'naming',
'unusedcode'
],
strict: true
},
files: '**/*.php'
}
});
```
### A watch config that runs phpmd on the files that have changed
```js
grunt.initConfig({
watch: {
php: {
files: '**/*.php',
tasks: [
'phpmd-runner'
],
options: {
spawn: false
}
}
},
'phpmd-runner': {
options: {
phpmd: 'vendor/bin/phpmd'
},
files: '**.*.php'
}
});
grunt.event.on('watch', function (action, filepath) {
if (grunt.file.isMatch(grunt.config('watch.php.files'), filepath)) {
grunt.config('phpmd-runner.files', [filepath]);
}
});
```
### Options
The options more or less mimic `phpmd`'s configuration parameters.
### options.phpmd
Type: `string`
The location of the `phpmd` binary
### options.reportFormat
Type: `string`
Valid values are: `xml`, `text`, `html`
### options.reportFile
Type: `string`
Where you want the report to be saved
### options.rulesets
Type: `Array`
A collection of rulesets to apply.
### options.minimumPriority
Type: `string`
Equivalent of:
`--minimumpriority: rule priority threshold; rules with lower priority than this will not be used`
### options.suffixes
Type: `string` or `Array`
> You can use an array version, it will be converted to the comma separated string phpmd needs
Equivalent of:
`--suffixes: comma-separated string of valid source code filename extensions`
```js
options: {
suffixes: [
'.php',
'.inc'
]
}
```
### options.exclude
Type: `string` or `Array`
> You can use an array version, it will be converted to the comma separated string phpmd needs
Equivalent of:
`--exclude: comma-separated string of patterns that are used to ignore directories`
## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).
## Release History
* 0.1.4 - Fixed proper logging and quitting on error
* 0.1.3 - added watch config
* 0.1.2 - no duplicate output
* 0.1.0 - basic functionality
| tailored-tunes/grunt-phpmd-runner | README.md | Markdown | mit | 3,545 |
require('./ramda-mori')
| fractalPlatform/Fractal.js | tests/index.js | JavaScript | mit | 24 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ruler-compass-geometry: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.10.2 / ruler-compass-geometry - 8.9.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
ruler-compass-geometry
<small>
8.9.0
<span class="label label-info">Not compatible</span>
</small>
</h1>
<p><em><script>document.write(moment("2020-07-11 07:20:54 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-07-11 07:20:54 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
conf-m4 1 Virtual package relying on m4
coq 8.10.2 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.8.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/coq-contribs/ruler-compass-geometry"
license: "GNU Lesser Public License"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/RulerCompassGeometry"]
depends: [
"ocaml"
"coq" {>= "8.9" & < "8.10~"}
]
tags: [
"keyword: geometry"
"keyword: plane geometry"
"keyword: ruler and compass geometry"
"keyword: Euclidian geometry"
"keyword: Hilbert's axioms"
"category: Mathematics/Geometry/General"
"date: 2007-11"
]
authors: [
"Jean Duprat <[email protected]>"
]
bug-reports: "https://github.com/coq-contribs/ruler-compass-geometry/issues"
dev-repo: "git+https://github.com/coq-contribs/ruler-compass-geometry.git"
synopsis: "Ruler and compass geometry axiomatization"
description: """
This library contains an axiomatization of the ruler and
compass euclidian geometry. Files A1 to A6 contain the axioms and the
basic constructions. The other files build the proof that this
axiomatization induces the whole plane geometry except the continuity
axiom. For that the proofs of the Hilbert's axioms conclude this work in
the files E1 to E5."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/ruler-compass-geometry/archive/v8.9.0.tar.gz"
checksum: "md5=acb5da0e0abd055cd69d361a73a0a4c0"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-ruler-compass-geometry.8.9.0 coq.8.10.2</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.10.2).
The following dependencies couldn't be met:
- coq-ruler-compass-geometry -> coq < 8.10~ -> ocaml < 4.03.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-ruler-compass-geometry.8.9.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
<small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small>
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.6/released/8.10.2/ruler-compass-geometry/8.9.0.html | HTML | mit | 7,524 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ptsf: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.7.2 / ptsf - 8.5.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
ptsf
<small>
8.5.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-02-25 02:33:12 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-25 02:33:12 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 2 Virtual package relying on perl
coq 8.7.2 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.07.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.07.1 Official release 4.07.1
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.3 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/coq-contribs/ptsf"
license: "BSD"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/PTSF"]
depends: [
"ocaml"
"coq" {>= "8.5" & < "8.6~"}
"coq-ptsatr" {= "8.5.0"}
]
tags: [ "keyword:pure type systems" "keyword:judgmental equality" "keyword:explicit equality proofs" "keyword:proof relevance" "category:Mathematics/Logic/Type theory" ]
authors: [ "Herman Geuvers <[email protected]>" "Floris van Doorn <[email protected]>" "Freek Wiedijk <[email protected]>" ]
bug-reports: "https://github.com/coq-contribs/ptsf/issues"
dev-repo: "git+https://github.com/coq-contribs/ptsf.git"
synopsis: "Explicit Convertibility Proofs in Pure Type Systems"
description:
"Formalization of the proof that PTS and PTS with explicit convertibility proofs (PTSf) are equivalent."
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/ptsf/archive/v8.5.0.tar.gz"
checksum: "md5=29e7294dfdd89c6e120b3b812938ad20"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-ptsf.8.5.0 coq.8.7.2</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.7.2).
The following dependencies couldn't be met:
- coq-ptsf -> coq < 8.6~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-ptsf.8.5.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.07.1-2.0.6/released/8.7.2/ptsf/8.5.0.html | HTML | mit | 7,024 |
### Indentation
When writing any block of code that is logically subordinate to the line immediately before and after it, that block should be indented two spaces more than the surrounding lines
* Do not put any tab characters anywhere in your code. You would do best to stop pressing the tab key entirely.
* Increase the indent level for all blocks by two extra spaces
* When a line opens a block, the next line starts 2 spaces further in than the line that opened
```javascript
// good:
if(condition){
action();
}
// bad:
if(condition){
action();
}
```
* When a line closes a block, that line starts at the same level as the line that opened the block
```javascript
// good:
if(condition){
action();
}
// bad:
if(condition){
action();
}
```
* No two lines should ever have more or less than 2 spaces difference in their indentation. Any number of mistakes in the above rules could lead to this, but one example would be:
```javascript
// bad:
transmogrify({
a: {
b: function(){
}
}});
```
* use sublime's arrow collapsing as a guide. do the collapsing lines seem like they should be 'contained' by the line with an arrow on it?
### Variable names
* A single descriptive word is best.
```javascript
// good:
var animals = ['cat', 'dog', 'fish'];
// bad:
var targetInputs = ['cat', 'dog', 'fish'];
```
* Collections such as arrays and maps should have plural noun variable names.
```javascript
// good:
var animals = ['cat', 'dog', 'fish'];
// bad:
var animalList = ['cat', 'dog', 'fish'];
// bad:
var animal = ['cat', 'dog', 'fish'];
```
* Name your variables after their purpose, not their structure
```javascript
// good:
var animals = ['cat', 'dog', 'fish'];
// bad:
var array = ['cat', 'dog', 'fish'];
```
### Language constructs
* Never omit braces for statement blocks (although they are technically optional).
```javascript
// good:
for(key in object){
alert(key);
}
// bad:
for(key in object)
alert(key);
```
* Always use `===` and `!==`, since `==` and `!=` will automatically convert types in ways you're unlikely to expect.
```javascript
// good:
// this comparison evaluates to false, because the number zero is not the same as the empty string.
if(0 === ''){
alert('looks like they\'re equal');
}
// bad:
// This comparison evaluates to true, because after type coercion, zero and the empty string are equal.
if(0 == ''){
alert('looks like they\'re equal');
}
```
### Semicolons
* Don't forget semicolons at the end of lines
```javascript
// good:
alert('hi');
// bad:
alert('hi')
```
# Supplemental reading
### Code density
* Conserve line quantity by minimizing the number lines you write in. The more concisely your code is written, the more context can be seen in one screen.
* Conserve line length by minimizing the amount of complexity you put on each line. Long lines are difficult to read. Rather than a character count limit, I recommend limiting the amount of complexity you put on a single line. Try to make it easily read in one glance. This goal is in conflict with the line quantity goal, so you must do your best to balance them.
### Comments
* Provide comments any time you are confident it will make reading your code easier.
* Be aware that comments come at some cost. They make a file longer and can drift out of sync with the code they annotate.
* Comment on what code is attempting to do, not how it will achieve it.
* A good comment is often less effective than a good variable name.
### Padding & additional whitespace
* Generally, we don't care where you put extra spaces, provided they are not distracting.
* You may use it as padding for visual clarity. If you do though, make sure it's balanced on both sides.
```javascript
// optional:
alert( "I chose to put visual padding around this string" );
// bad:
alert( "I only put visual padding on one side of this string");
```
* You may use it to align two similar lines, but it is not recommended. This pattern usually leads to unnecessary edits of many lines in your code every time you change a variable name.
```javascript
// discouraged:
var firstItem = getFirst ();
var secondItem = getSecond();
```
* Put `else` and `else if` statements on the same line as the ending curly brace for the preceding `if` block
```javascript
// good:
if(condition){
response();
}else{
otherResponse();
}
// bad:
if(condition){
response();
}
else{
otherResponse();
}
```
### Variable declaration
* Use a new var statement for each line you declare a variable on.
* Do not break variable declarations onto mutiple lines.
* Use a new line for each variable declaration.
* See http://benalman.com/news/2012/05/multiple-var-statements-javascript/ for more details
```javascript
// good:
var ape;
var bat;
// bad:
var cat,
dog
// use sparingly:
var eel, fly;
```
### Capital letters in variable names
* Some people choose to use capitalization of the first letter in their variable names to indicate that they contain a [class](http://en.wikipedia.org/wiki/Class_(computer_science\)). This capitalized variable might contain a function, a prototype, or some other construct that acts as a representative for the whole class.
* Optionally, some people use a capital letter only on functions that are written to be run with the keyword `new`.
* Do not use all-caps for any variables. Some people use this pattern to indicate an intended "constant" variable, but the language does not offer true constants, only mutable variables.
### Minutia
* For lists, put commas at the end of each newline, not at the beginning of each item in a list
```javascript
// good:
var animals = [
'ape',
'bat',
'cat'
];
// bad:
var animals = [
'ape'
, 'bat'
, 'cat'
];
```
* Avoid use of `switch` statements altogether. They are hard to outdent using the standard whitespace rules above, and are prone to error due to missing `break` statements. See [this article](http://ericleads.com/2012/12/switch-case-considered-harmful/) for more detail.
* Prefer double quotes around JavaScript strings, rather than single quotes.
### HTML
* Do not use ids for html elements. Use a class instead.
```html
<!-- good -->
<img class="lucy" />
<!-- bad -->
<img id="lucy" />
```
* Do not include a `type=text/javascript"` attribute on script tags
```html
<!-- good -->
<script src="a.js"></script>
<!-- bad -->
<script src="a.js" type="text/javascript"></script>
```
### STYLING
* For now, add any styling using the style.css file rather than utilizing SCSS.
| fastpassexchange/fastpass | STYLE-GUIDE.md | Markdown | mit | 7,183 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>User agent detail - Mozilla/5.0 (Linux; U; Android 2.3.6; zh-cn; SHV-E160L Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="../circle.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="section">
<h1 class="header center orange-text">User agent detail</h1>
<div class="row center">
<h5 class="header light">
Mozilla/5.0 (Linux; U; Android 2.3.6; zh-cn; SHV-E160L Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
</h5>
</div>
</div>
<div class="section">
<table class="striped"><tr><th></th><th colspan="3">General</th><th colspan="5">Device</th><th colspan="3">Bot</th><th colspan="2"></th></tr><tr><th>Provider</th><th>Browser</th><th>Engine</th><th>OS</th><th>Brand</th><th>Model</th><th>Type</th><th>Is mobile</th><th>Is touch</th><th>Is bot</th><th>Name</th><th>Type</th><th>Parse time</th><th>Actions</th></tr><tr><th colspan="14" class="green lighten-3">Test suite</th></tr><tr><td>PiwikDeviceDetector<br /><small>3.6.1</small><br /><small>vendor/piwik/device-detector/Tests/fixtures/smartphone-3.yml</small></td><td>Android Browser </td><td>WebKit </td><td>Android 2.3.6</td><td style="border-left: 1px solid #555">Samsung</td><td>SHV-E160L</td><td>smartphone</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-a952e161-ace3-4c73-a03c-12746b7cf6d1">Detail</a>
<!-- Modal Structure -->
<div id="modal-a952e161-ace3-4c73-a03c-12746b7cf6d1" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>PiwikDeviceDetector result detail</h4>
<p><pre><code class="php">Array
(
[user_agent] => Mozilla/5.0 (Linux; U; Android 2.3.6; zh-cn; SHV-E160L Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
[os] => Array
(
[name] => Android
[short_name] => AND
[version] => 2.3.6
[platform] =>
)
[client] => Array
(
[type] => browser
[name] => Android Browser
[short_name] => AN
[version] =>
[engine] => WebKit
)
[device] => Array
(
[type] => smartphone
[brand] => SA
[model] => SHV-E160L
)
[os_family] => Android
[browser_family] => Android Browser
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><th colspan="14" class="green lighten-3">Providers</th></tr><tr><td>BrowscapFull<br /><small>6014</small><br /></td><td>Android 4.0</td><td>WebKit </td><td>Android 2.3</td><td style="border-left: 1px solid #555"></td><td></td><td>Mobile Phone</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.027</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-47a9cd06-e213-4882-bc34-db6aed664223">Detail</a>
<!-- Modal Structure -->
<div id="modal-47a9cd06-e213-4882-bc34-db6aed664223" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>BrowscapFull result detail</h4>
<p><pre><code class="php">stdClass Object
(
[browser_name_regex] => /^mozilla\/5\.0 \(.*linux.*android.2\.3.* build\/.*\).*applewebkit\/.*\(.*khtml,.*like gecko.*\).*version\/4\.0.*safari.*$/
[browser_name_pattern] => mozilla/5.0 (*linux*android?2.3* build/*)*applewebkit/*(*khtml,*like gecko*)*version/4.0*safari*
[parent] => Android Browser 4.0
[comment] => Android Browser 4.0
[browser] => Android
[browser_type] => Browser
[browser_bits] => 32
[browser_maker] => Google Inc
[browser_modus] => unknown
[version] => 4.0
[majorver] => 4
[minorver] => 0
[platform] => Android
[platform_version] => 2.3
[platform_description] => Android OS
[platform_bits] => 32
[platform_maker] => Google Inc
[alpha] =>
[beta] =>
[win16] =>
[win32] =>
[win64] =>
[frames] => 1
[iframes] => 1
[tables] => 1
[cookies] => 1
[backgroundsounds] =>
[javascript] => 1
[vbscript] =>
[javaapplets] => 1
[activexcontrols] =>
[ismobiledevice] => 1
[istablet] =>
[issyndicationreader] =>
[crawler] =>
[isfake] =>
[isanonymized] =>
[ismodified] =>
[cssversion] => 3
[aolversion] => 0
[device_name] => general Mobile Phone
[device_maker] => unknown
[device_type] => Mobile Phone
[device_pointing_method] => touchscreen
[device_code_name] => general Mobile Phone
[device_brand_name] => unknown
[renderingengine_name] => WebKit
[renderingengine_version] => unknown
[renderingengine_description] => For Google Chrome, iOS (including both mobile Safari, WebViews within third-party apps, and web clips), Safari, Arora, Midori, OmniWeb, Shiira, iCab since version 4, Web, SRWare Iron, Rekonq, and in Maxthon 3.
[renderingengine_maker] => Apple Inc
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>BrowscapLite<br /><small>6014</small><br /></td><td>Android 4.0</td><td><i class="material-icons">close</i></td><td>Android </td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>Mobile Phone</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.005</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-42bb56ba-b834-47c5-bea0-c0270e9ab371">Detail</a>
<!-- Modal Structure -->
<div id="modal-42bb56ba-b834-47c5-bea0-c0270e9ab371" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>BrowscapLite result detail</h4>
<p><pre><code class="php">stdClass Object
(
[browser_name_regex] => /^mozilla\/5\.0 \(.*linux.*android.* build\/.*\).*applewebkit\/.*\(.*khtml,.*like gecko.*\).*version\/4\.0.*safari.*$/
[browser_name_pattern] => mozilla/5.0 (*linux*android* build/*)*applewebkit/*(*khtml,*like gecko*)*version/4.0*safari*
[parent] => Android Browser 4.0
[comment] => Android Browser 4.0
[browser] => Android
[browser_type] => unknown
[browser_bits] => 0
[browser_maker] => unknown
[browser_modus] => unknown
[version] => 4.0
[majorver] => 0
[minorver] => 0
[platform] => Android
[platform_version] => unknown
[platform_description] => unknown
[platform_bits] => 0
[platform_maker] => unknown
[alpha] => false
[beta] => false
[win16] => false
[win32] => false
[win64] => false
[frames] => false
[iframes] => false
[tables] => false
[cookies] => false
[backgroundsounds] => false
[javascript] => false
[vbscript] => false
[javaapplets] => false
[activexcontrols] => false
[ismobiledevice] => 1
[istablet] =>
[issyndicationreader] => false
[crawler] => false
[isfake] => false
[isanonymized] => false
[ismodified] => false
[cssversion] => 0
[aolversion] => 0
[device_name] => unknown
[device_maker] => unknown
[device_type] => Mobile Phone
[device_pointing_method] => unknown
[device_code_name] => unknown
[device_brand_name] => unknown
[renderingengine_name] => unknown
[renderingengine_version] => unknown
[renderingengine_description] => unknown
[renderingengine_maker] => unknown
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>BrowscapPhp<br /><small>6014</small><br /></td><td>Android 4.0</td><td><i class="material-icons">close</i></td><td>Android </td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>Mobile Phone</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.014</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-ad0041a2-b0f4-43f6-a70d-cad1443caa68">Detail</a>
<!-- Modal Structure -->
<div id="modal-ad0041a2-b0f4-43f6-a70d-cad1443caa68" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>BrowscapPhp result detail</h4>
<p><pre><code class="php">stdClass Object
(
[browser_name_regex] => /^mozilla\/5\.0 \(.*linux.*android.* build\/.*\).*applewebkit\/.*\(.*khtml,.*like gecko.*\).*version\/4\.0.*safari.*$/
[browser_name_pattern] => mozilla/5.0 (*linux*android* build/*)*applewebkit/*(*khtml,*like gecko*)*version/4.0*safari*
[parent] => Android Browser 4.0
[comment] => Android Browser 4.0
[browser] => Android
[browser_type] => unknown
[browser_bits] => 0
[browser_maker] => Google Inc
[browser_modus] => unknown
[version] => 4.0
[majorver] => 4
[minorver] => 0
[platform] => Android
[platform_version] => unknown
[platform_description] => unknown
[platform_bits] => 0
[platform_maker] => unknown
[alpha] => false
[beta] => false
[win16] => false
[win32] => false
[win64] => false
[frames] => false
[iframes] => false
[tables] => false
[cookies] => false
[backgroundsounds] => false
[javascript] => false
[vbscript] => false
[javaapplets] => false
[activexcontrols] => false
[ismobiledevice] => 1
[istablet] =>
[issyndicationreader] => false
[crawler] =>
[isfake] => false
[isanonymized] => false
[ismodified] => false
[cssversion] => 0
[aolversion] => 0
[device_name] => unknown
[device_maker] => unknown
[device_type] => Mobile Phone
[device_pointing_method] => touchscreen
[device_code_name] => unknown
[device_brand_name] => unknown
[renderingengine_name] => unknown
[renderingengine_version] => unknown
[renderingengine_description] => unknown
[renderingengine_maker] => unknown
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>DonatjUAParser<br /><small>v0.5.1</small><br /></td><td>Android Browser 4.0</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-15fbc1f0-2615-4d42-b5d9-a30dd647b050">Detail</a>
<!-- Modal Structure -->
<div id="modal-15fbc1f0-2615-4d42-b5d9-a30dd647b050" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>DonatjUAParser result detail</h4>
<p><pre><code class="php">Array
(
[platform] => Android
[browser] => Android Browser
[version] => 4.0
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>JenssegersAgent<br /><small>v2.3.3</small><br /></td><td>Safari 4.0</td><td><i class="material-icons">close</i></td><td>AndroidOS 2.3.6</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.002</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-b85a2b91-6a55-4436-a82c-1ea0d46e2e51">Detail</a>
<!-- Modal Structure -->
<div id="modal-b85a2b91-6a55-4436-a82c-1ea0d46e2e51" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>JenssegersAgent result detail</h4>
<p><pre><code class="php">Array
(
[browserName] => Safari
[browserVersion] => 4.0
[osName] => AndroidOS
[osVersion] => 2.3.6
[deviceModel] => WebKit
[isMobile] => 1
[isRobot] =>
[botName] =>
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>NeutrinoApiCom<br /><small></small><br /></td><td>Android Webkit 4.0</td><td><i class="material-icons">close</i></td><td>Android 2.3.6</td><td style="border-left: 1px solid #555">Samsung</td><td>SHV-E160L</td><td>mobile-browser</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.27502</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-8c2a7a4e-3fbf-4df2-8d61-5e730422f67b">Detail</a>
<!-- Modal Structure -->
<div id="modal-8c2a7a4e-3fbf-4df2-8d61-5e730422f67b" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>NeutrinoApiCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[mobile_screen_height] => 1280
[is_mobile] => 1
[type] => mobile-browser
[mobile_brand] => Samsung
[mobile_model] => SHV-E160L
[version] => 4.0
[is_android] => 1
[browser_name] => Android Webkit
[operating_system_family] => Android
[operating_system_version] => 2.3.6
[is_ios] =>
[producer] => Google Inc.
[operating_system] => Android 2.3.x Gingerbread
[mobile_screen_width] => 800
[mobile_browser] => Android Webkit
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>PiwikDeviceDetector<br /><small>3.6.1</small><br /></td><td>Android Browser </td><td>WebKit </td><td>Android 2.3</td><td style="border-left: 1px solid #555">Samsung</td><td>SHV-E160L</td><td>smartphone</td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.01</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-4a941d34-a8d3-4914-9724-346f60ad7046">Detail</a>
<!-- Modal Structure -->
<div id="modal-4a941d34-a8d3-4914-9724-346f60ad7046" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>PiwikDeviceDetector result detail</h4>
<p><pre><code class="php">Array
(
[client] => Array
(
[type] => browser
[name] => Android Browser
[short_name] => AN
[version] =>
[engine] => WebKit
)
[operatingSystem] => Array
(
[name] => Android
[short_name] => AND
[version] => 2.3
[platform] =>
)
[device] => Array
(
[brand] => SA
[brandName] => Samsung
[model] => SHV-E160L
[device] => 1
[deviceName] => smartphone
)
[bot] =>
[extra] => Array
(
[isBot] =>
[isBrowser] => 1
[isFeedReader] =>
[isMobileApp] =>
[isPIM] =>
[isLibrary] =>
[isMediaPlayer] =>
[isCamera] =>
[isCarBrowser] =>
[isConsole] =>
[isFeaturePhone] =>
[isPhablet] =>
[isPortableMediaPlayer] =>
[isSmartDisplay] =>
[isSmartphone] => 1
[isTablet] =>
[isTV] =>
[isDesktop] =>
[isMobile] => 1
[isTouchEnabled] =>
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>SinergiBrowserDetector<br /><small>6.0.1</small><br /></td><td>Navigator 4.0</td><td><i class="material-icons">close</i></td><td>Android 2.3.6</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td></td><td><i class="material-icons">close</i></td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-ec1cd248-02b0-457e-8a9d-35bb99af008c">Detail</a>
<!-- Modal Structure -->
<div id="modal-ec1cd248-02b0-457e-8a9d-35bb99af008c" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>SinergiBrowserDetector result detail</h4>
<p><pre><code class="php">Array
(
[browser] => Sinergi\BrowserDetector\Browser Object
(
[userAgent:Sinergi\BrowserDetector\Browser:private] => Sinergi\BrowserDetector\UserAgent Object
(
[userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; U; Android 2.3.6; zh-cn; SHV-E160L Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
)
[name:Sinergi\BrowserDetector\Browser:private] => Navigator
[version:Sinergi\BrowserDetector\Browser:private] => 4.0
[isRobot:Sinergi\BrowserDetector\Browser:private] =>
[isChromeFrame:Sinergi\BrowserDetector\Browser:private] =>
[isFacebookWebView:Sinergi\BrowserDetector\Browser:private] =>
[isCompatibilityMode:Sinergi\BrowserDetector\Browser:private] =>
)
[operatingSystem] => Sinergi\BrowserDetector\Os Object
(
[name:Sinergi\BrowserDetector\Os:private] => Android
[version:Sinergi\BrowserDetector\Os:private] => 2.3.6
[isMobile:Sinergi\BrowserDetector\Os:private] => 1
[userAgent:Sinergi\BrowserDetector\Os:private] => Sinergi\BrowserDetector\UserAgent Object
(
[userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; U; Android 2.3.6; zh-cn; SHV-E160L Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
)
)
[device] => Sinergi\BrowserDetector\Device Object
(
[name:Sinergi\BrowserDetector\Device:private] => unknown
[userAgent:Sinergi\BrowserDetector\Device:private] => Sinergi\BrowserDetector\UserAgent Object
(
[userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; U; Android 2.3.6; zh-cn; SHV-E160L Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
)
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>UAParser<br /><small>v3.4.5</small><br /></td><td>Android 2.3.6</td><td><i class="material-icons">close</i></td><td>Android 2.3.6</td><td style="border-left: 1px solid #555">Samsung</td><td>SHV-E160L</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.002</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-3160e405-8a8f-46dd-8f47-5115f06462d2">Detail</a>
<!-- Modal Structure -->
<div id="modal-3160e405-8a8f-46dd-8f47-5115f06462d2" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>UAParser result detail</h4>
<p><pre><code class="php">UAParser\Result\Client Object
(
[ua] => UAParser\Result\UserAgent Object
(
[major] => 2
[minor] => 3
[patch] => 6
[family] => Android
)
[os] => UAParser\Result\OperatingSystem Object
(
[major] => 2
[minor] => 3
[patch] => 6
[patchMinor] =>
[family] => Android
)
[device] => UAParser\Result\Device Object
(
[brand] => Samsung
[model] => SHV-E160L
[family] => Samsung SHV-E160L
)
[originalUserAgent] => Mozilla/5.0 (Linux; U; Android 2.3.6; zh-cn; SHV-E160L Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>UserAgentApiCom<br /><small></small><br /></td><td>Safari 533.1</td><td>WebKit 533.1</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>Mobile</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.14901</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-afeb05fb-26b9-4509-b8ac-0c604a9e97d6">Detail</a>
<!-- Modal Structure -->
<div id="modal-afeb05fb-26b9-4509-b8ac-0c604a9e97d6" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>UserAgentApiCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[platform_name] => Android
[platform_version] => 2.3.6
[platform_type] => Mobile
[browser_name] => Safari
[browser_version] => 533.1
[engine_name] => WebKit
[engine_version] => 533.1
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>UserAgentStringCom<br /><small></small><br /></td><td>Android Webkit Browser </td><td><i class="material-icons">close</i></td><td>Android 2.3.6</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.075</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-08a9ddfb-838f-48d7-9ede-1d132306b2ee">Detail</a>
<!-- Modal Structure -->
<div id="modal-08a9ddfb-838f-48d7-9ede-1d132306b2ee" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>UserAgentStringCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[agent_type] => Browser
[agent_name] => Android Webkit Browser
[agent_version] => --
[os_type] => Android
[os_name] => Android
[os_versionName] =>
[os_versionNumber] => 2.3.6
[os_producer] =>
[os_producerURL] =>
[linux_distibution] => Null
[agent_language] => Chinese - China
[agent_languageTag] => zh-cn
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>WhatIsMyBrowserCom<br /><small></small><br /></td><td>Android Browser 4.0</td><td>WebKit 533.1</td><td>Android 2.3.6</td><td style="border-left: 1px solid #555">Samsung</td><td></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.23701</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-5fc1ff22-a74d-481b-9ad1-fcfde73ded9c">Detail</a>
<!-- Modal Structure -->
<div id="modal-5fc1ff22-a74d-481b-9ad1-fcfde73ded9c" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>WhatIsMyBrowserCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[operating_system_name] => Android
[simple_sub_description_string] =>
[simple_browser_string] => Android Browser 4 on Android (Gingerbread)
[browser_version] => 4
[extra_info] => Array
(
)
[operating_platform] =>
[extra_info_table] => Array
(
)
[layout_engine_name] => WebKit
[detected_addons] => Array
(
)
[operating_system_flavour_code] =>
[hardware_architecture] =>
[operating_system_flavour] =>
[operating_system_frameworks] => Array
(
)
[browser_name_code] => android-browser
[operating_system_version] => Gingerbread
[simple_operating_platform_string] => Samsung SHV-E160L
[is_abusive] =>
[layout_engine_version] => 533.1
[browser_capabilities] => Array
(
)
[operating_platform_vendor_name] => Samsung
[operating_system] => Android (Gingerbread)
[operating_system_version_full] => 2.3.6
[operating_platform_code] => SHV-E160L
[browser_name] => Android Browser
[operating_system_name_code] => android
[user_agent] => Mozilla/5.0 (Linux; U; Android 2.3.6; zh-cn; SHV-E160L Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
[browser_version_full] => 4.0
[browser] => Android Browser 4
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>WhichBrowser<br /><small>v2.0.18</small><br /></td><td>Android Browser </td><td>Webkit 533.1</td><td>Android 2.3.6</td><td style="border-left: 1px solid #555">Samsung</td><td>Galaxy Note</td><td>mobile:smart</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.001</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-083a336f-5d73-4505-84f3-c5fc9bb78652">Detail</a>
<!-- Modal Structure -->
<div id="modal-083a336f-5d73-4505-84f3-c5fc9bb78652" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>WhichBrowser result detail</h4>
<p><pre><code class="php">Array
(
[browser] => Array
(
[name] => Android Browser
)
[engine] => Array
(
[name] => Webkit
[version] => 533.1
)
[os] => Array
(
[name] => Android
[version] => 2.3.6
)
[device] => Array
(
[type] => mobile
[subtype] => smart
[manufacturer] => Samsung
[model] => Galaxy Note
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>Woothee<br /><small>v1.2.0</small><br /></td><td>Safari 4.0</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>smartphone</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-f00e7198-0e22-49fe-bad0-dbb3a9cde9b9">Detail</a>
<!-- Modal Structure -->
<div id="modal-f00e7198-0e22-49fe-bad0-dbb3a9cde9b9" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Woothee result detail</h4>
<p><pre><code class="php">Array
(
[name] => Safari
[vendor] => Apple
[version] => 4.0
[category] => smartphone
[os] => Android
[os_version] => 2.3.6
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>Wurfl<br /><small>1.7.1.0</small><br /></td><td>Android Webkit 2.3.6</td><td><i class="material-icons">close</i></td><td>Android 2.3.6</td><td style="border-left: 1px solid #555">Samsung</td><td>SHV-E160L</td><td>Smartphone</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.02</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-a2bedf8c-4a95-42a7-96c5-aaf233b2ac50">Detail</a>
<!-- Modal Structure -->
<div id="modal-a2bedf8c-4a95-42a7-96c5-aaf233b2ac50" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Wurfl result detail</h4>
<p><pre><code class="php">Array
(
[virtual] => Array
(
[is_android] => true
[is_ios] => false
[is_windows_phone] => false
[is_app] => false
[is_full_desktop] => false
[is_largescreen] => true
[is_mobile] => true
[is_robot] => false
[is_smartphone] => true
[is_touchscreen] => true
[is_wml_preferred] => false
[is_xhtmlmp_preferred] => false
[is_html_preferred] => true
[advertised_device_os] => Android
[advertised_device_os_version] => 2.3.6
[advertised_browser] => Android Webkit
[advertised_browser_version] => 2.3.6
[complete_device_name] => Samsung SHV-E160L (Galaxy Note)
[device_name] => Samsung Galaxy Note
[form_factor] => Smartphone
[is_phone] => true
[is_app_webview] => false
)
[all] => Array
(
[brand_name] => Samsung
[model_name] => SHV-E160L
[unique] => true
[ununiqueness_handler] =>
[is_wireless_device] => true
[device_claims_web_support] => true
[has_qwerty_keyboard] => true
[can_skip_aligned_link_row] => true
[uaprof] =>
[uaprof2] =>
[uaprof3] =>
[nokia_series] => 0
[nokia_edition] => 0
[device_os] => Android
[mobile_browser] => Android Webkit
[mobile_browser_version] =>
[device_os_version] => 2.3
[pointing_method] => touchscreen
[release_date] => 2012_january
[marketing_name] => Galaxy Note
[model_extra_info] => Korean Market
[nokia_feature_pack] => 0
[can_assign_phone_number] => true
[is_tablet] => false
[manufacturer_name] =>
[is_bot] => false
[is_google_glass] => false
[proportional_font] => false
[built_in_back_button_support] => false
[card_title_support] => true
[softkey_support] => false
[table_support] => true
[numbered_menus] => false
[menu_with_select_element_recommended] => false
[menu_with_list_of_links_recommended] => true
[icons_on_menu_items_support] => false
[break_list_of_links_with_br_element_recommended] => true
[access_key_support] => false
[wrap_mode_support] => false
[times_square_mode_support] => false
[deck_prefetch_support] => false
[elective_forms_recommended] => true
[wizards_recommended] => false
[image_as_link_support] => false
[insert_br_element_after_widget_recommended] => false
[wml_can_display_images_and_text_on_same_line] => false
[wml_displays_image_in_center] => false
[opwv_wml_extensions_support] => false
[wml_make_phone_call_string] => wtai://wp/mc;
[chtml_display_accesskey] => false
[emoji] => false
[chtml_can_display_images_and_text_on_same_line] => false
[chtml_displays_image_in_center] => false
[imode_region] => none
[chtml_make_phone_call_string] => tel:
[chtml_table_support] => false
[xhtml_honors_bgcolor] => true
[xhtml_supports_forms_in_table] => true
[xhtml_support_wml2_namespace] => false
[xhtml_autoexpand_select] => false
[xhtml_select_as_dropdown] => false
[xhtml_select_as_radiobutton] => false
[xhtml_select_as_popup] => false
[xhtml_display_accesskey] => false
[xhtml_supports_invisible_text] => false
[xhtml_supports_inline_input] => false
[xhtml_supports_monospace_font] => false
[xhtml_supports_table_for_layout] => true
[xhtml_supports_css_cell_table_coloring] => true
[xhtml_format_as_css_property] => false
[xhtml_format_as_attribute] => false
[xhtml_nowrap_mode] => false
[xhtml_marquee_as_css_property] => false
[xhtml_readable_background_color1] => #FFFFFF
[xhtml_readable_background_color2] => #FFFFFF
[xhtml_allows_disabled_form_elements] => true
[xhtml_document_title_support] => true
[xhtml_preferred_charset] => iso-8859-1
[opwv_xhtml_extensions_support] => false
[xhtml_make_phone_call_string] => tel:
[xhtmlmp_preferred_mime_type] => text/html
[xhtml_table_support] => true
[xhtml_send_sms_string] => sms:
[xhtml_send_mms_string] => mms:
[xhtml_file_upload] => supported
[cookie_support] => true
[accept_third_party_cookie] => true
[xhtml_supports_iframe] => full
[xhtml_avoid_accesskeys] => true
[xhtml_can_embed_video] => none
[ajax_support_javascript] => true
[ajax_manipulate_css] => true
[ajax_support_getelementbyid] => true
[ajax_support_inner_html] => true
[ajax_xhr_type] => standard
[ajax_manipulate_dom] => true
[ajax_support_events] => true
[ajax_support_event_listener] => true
[ajax_preferred_geoloc_api] => w3c_api
[xhtml_support_level] => 4
[preferred_markup] => html_web_4_0
[wml_1_1] => false
[wml_1_2] => false
[wml_1_3] => false
[html_wi_w3_xhtmlbasic] => true
[html_wi_oma_xhtmlmp_1_0] => true
[html_wi_imode_html_1] => false
[html_wi_imode_html_2] => false
[html_wi_imode_html_3] => false
[html_wi_imode_html_4] => false
[html_wi_imode_html_5] => false
[html_wi_imode_htmlx_1] => false
[html_wi_imode_htmlx_1_1] => false
[html_wi_imode_compact_generic] => false
[html_web_3_2] => true
[html_web_4_0] => true
[voicexml] => false
[multipart_support] => false
[total_cache_disable_support] => false
[time_to_live_support] => false
[resolution_width] => 800
[resolution_height] => 1280
[columns] => 60
[max_image_width] => 400
[max_image_height] => 640
[rows] => 40
[physical_screen_width] => 72
[physical_screen_height] => 115
[dual_orientation] => true
[density_class] => 2.0
[wbmp] => true
[bmp] => false
[epoc_bmp] => false
[gif_animated] => false
[jpg] => true
[png] => true
[tiff] => false
[transparent_png_alpha] => true
[transparent_png_index] => true
[svgt_1_1] => false
[svgt_1_1_plus] => false
[greyscale] => false
[gif] => true
[colors] => 65536
[webp_lossy_support] => false
[webp_lossless_support] => false
[post_method_support] => true
[basic_authentication_support] => true
[empty_option_value_support] => true
[emptyok] => false
[nokia_voice_call] => false
[wta_voice_call] => false
[wta_phonebook] => false
[wta_misc] => false
[wta_pdc] => false
[https_support] => true
[phone_id_provided] => false
[max_data_rate] => 384
[wifi] => true
[sdio] => false
[vpn] => false
[has_cellular_radio] => true
[max_deck_size] => 2000000
[max_url_length_in_requests] => 256
[max_url_length_homepage] => 0
[max_url_length_bookmark] => 0
[max_url_length_cached_page] => 0
[max_no_of_connection_settings] => 0
[max_no_of_bookmarks] => 0
[max_length_of_username] => 0
[max_length_of_password] => 0
[max_object_size] => 0
[downloadfun_support] => false
[directdownload_support] => true
[inline_support] => false
[oma_support] => true
[ringtone] => false
[ringtone_3gpp] => false
[ringtone_midi_monophonic] => false
[ringtone_midi_polyphonic] => false
[ringtone_imelody] => false
[ringtone_digiplug] => false
[ringtone_compactmidi] => false
[ringtone_mmf] => false
[ringtone_rmf] => false
[ringtone_xmf] => false
[ringtone_amr] => false
[ringtone_awb] => false
[ringtone_aac] => false
[ringtone_wav] => false
[ringtone_mp3] => false
[ringtone_spmidi] => false
[ringtone_qcelp] => false
[ringtone_voices] => 1
[ringtone_df_size_limit] => 0
[ringtone_directdownload_size_limit] => 0
[ringtone_inline_size_limit] => 0
[ringtone_oma_size_limit] => 0
[wallpaper] => false
[wallpaper_max_width] => 0
[wallpaper_max_height] => 0
[wallpaper_preferred_width] => 0
[wallpaper_preferred_height] => 0
[wallpaper_resize] => none
[wallpaper_wbmp] => false
[wallpaper_bmp] => false
[wallpaper_gif] => false
[wallpaper_jpg] => false
[wallpaper_png] => false
[wallpaper_tiff] => false
[wallpaper_greyscale] => false
[wallpaper_colors] => 2
[wallpaper_df_size_limit] => 0
[wallpaper_directdownload_size_limit] => 0
[wallpaper_inline_size_limit] => 0
[wallpaper_oma_size_limit] => 0
[screensaver] => false
[screensaver_max_width] => 0
[screensaver_max_height] => 0
[screensaver_preferred_width] => 0
[screensaver_preferred_height] => 0
[screensaver_resize] => none
[screensaver_wbmp] => false
[screensaver_bmp] => false
[screensaver_gif] => false
[screensaver_jpg] => false
[screensaver_png] => false
[screensaver_greyscale] => false
[screensaver_colors] => 2
[screensaver_df_size_limit] => 0
[screensaver_directdownload_size_limit] => 0
[screensaver_inline_size_limit] => 0
[screensaver_oma_size_limit] => 0
[picture] => false
[picture_max_width] => 0
[picture_max_height] => 0
[picture_preferred_width] => 0
[picture_preferred_height] => 0
[picture_resize] => none
[picture_wbmp] => false
[picture_bmp] => false
[picture_gif] => false
[picture_jpg] => false
[picture_png] => false
[picture_greyscale] => false
[picture_colors] => 2
[picture_df_size_limit] => 0
[picture_directdownload_size_limit] => 0
[picture_inline_size_limit] => 0
[picture_oma_size_limit] => 0
[video] => false
[oma_v_1_0_forwardlock] => false
[oma_v_1_0_combined_delivery] => false
[oma_v_1_0_separate_delivery] => false
[streaming_video] => true
[streaming_3gpp] => true
[streaming_mp4] => true
[streaming_mov] => false
[streaming_video_size_limit] => 0
[streaming_real_media] => none
[streaming_flv] => false
[streaming_3g2] => false
[streaming_vcodec_h263_0] => 10
[streaming_vcodec_h263_3] => -1
[streaming_vcodec_mpeg4_sp] => 2
[streaming_vcodec_mpeg4_asp] => -1
[streaming_vcodec_h264_bp] => 3.0
[streaming_acodec_amr] => nb
[streaming_acodec_aac] => lc
[streaming_wmv] => none
[streaming_preferred_protocol] => rtsp
[streaming_preferred_http_protocol] => progressive_download
[wap_push_support] => false
[connectionless_service_indication] => false
[connectionless_service_load] => false
[connectionless_cache_operation] => false
[connectionoriented_unconfirmed_service_indication] => false
[connectionoriented_unconfirmed_service_load] => false
[connectionoriented_unconfirmed_cache_operation] => false
[connectionoriented_confirmed_service_indication] => false
[connectionoriented_confirmed_service_load] => false
[connectionoriented_confirmed_cache_operation] => false
[utf8_support] => true
[ascii_support] => false
[iso8859_support] => false
[expiration_date] => false
[j2me_cldc_1_0] => false
[j2me_cldc_1_1] => false
[j2me_midp_1_0] => false
[j2me_midp_2_0] => false
[doja_1_0] => false
[doja_1_5] => false
[doja_2_0] => false
[doja_2_1] => false
[doja_2_2] => false
[doja_3_0] => false
[doja_3_5] => false
[doja_4_0] => false
[j2me_jtwi] => false
[j2me_mmapi_1_0] => false
[j2me_mmapi_1_1] => false
[j2me_wmapi_1_0] => false
[j2me_wmapi_1_1] => false
[j2me_wmapi_2_0] => false
[j2me_btapi] => false
[j2me_3dapi] => false
[j2me_locapi] => false
[j2me_nokia_ui] => false
[j2me_motorola_lwt] => false
[j2me_siemens_color_game] => false
[j2me_siemens_extension] => false
[j2me_heap_size] => 0
[j2me_max_jar_size] => 0
[j2me_storage_size] => 0
[j2me_max_record_store_size] => 0
[j2me_screen_width] => 0
[j2me_screen_height] => 0
[j2me_canvas_width] => 0
[j2me_canvas_height] => 0
[j2me_bits_per_pixel] => 0
[j2me_audio_capture_enabled] => false
[j2me_video_capture_enabled] => false
[j2me_photo_capture_enabled] => false
[j2me_capture_image_formats] => none
[j2me_http] => false
[j2me_https] => false
[j2me_socket] => false
[j2me_udp] => false
[j2me_serial] => false
[j2me_gif] => false
[j2me_gif89a] => false
[j2me_jpg] => false
[j2me_png] => false
[j2me_bmp] => false
[j2me_bmp3] => false
[j2me_wbmp] => false
[j2me_midi] => false
[j2me_wav] => false
[j2me_amr] => false
[j2me_mp3] => false
[j2me_mp4] => false
[j2me_imelody] => false
[j2me_rmf] => false
[j2me_au] => false
[j2me_aac] => false
[j2me_realaudio] => false
[j2me_xmf] => false
[j2me_wma] => false
[j2me_3gpp] => false
[j2me_h263] => false
[j2me_svgt] => false
[j2me_mpeg4] => false
[j2me_realvideo] => false
[j2me_real8] => false
[j2me_realmedia] => false
[j2me_left_softkey_code] => 0
[j2me_right_softkey_code] => 0
[j2me_middle_softkey_code] => 0
[j2me_select_key_code] => 0
[j2me_return_key_code] => 0
[j2me_clear_key_code] => 0
[j2me_datefield_no_accepts_null_date] => false
[j2me_datefield_broken] => false
[receiver] => false
[sender] => false
[mms_max_size] => 0
[mms_max_height] => 0
[mms_max_width] => 0
[built_in_recorder] => false
[built_in_camera] => true
[mms_jpeg_baseline] => false
[mms_jpeg_progressive] => false
[mms_gif_static] => false
[mms_gif_animated] => false
[mms_png] => false
[mms_bmp] => false
[mms_wbmp] => false
[mms_amr] => false
[mms_wav] => false
[mms_midi_monophonic] => false
[mms_midi_polyphonic] => false
[mms_midi_polyphonic_voices] => 0
[mms_spmidi] => false
[mms_mmf] => false
[mms_mp3] => false
[mms_evrc] => false
[mms_qcelp] => false
[mms_ota_bitmap] => false
[mms_nokia_wallpaper] => false
[mms_nokia_operatorlogo] => false
[mms_nokia_3dscreensaver] => false
[mms_nokia_ringingtone] => false
[mms_rmf] => false
[mms_xmf] => false
[mms_symbian_install] => false
[mms_jar] => false
[mms_jad] => false
[mms_vcard] => false
[mms_vcalendar] => false
[mms_wml] => false
[mms_wbxml] => false
[mms_wmlc] => false
[mms_video] => false
[mms_mp4] => false
[mms_3gpp] => false
[mms_3gpp2] => false
[mms_max_frame_rate] => 0
[nokiaring] => false
[picturemessage] => false
[operatorlogo] => false
[largeoperatorlogo] => false
[callericon] => false
[nokiavcard] => false
[nokiavcal] => false
[sckl_ringtone] => false
[sckl_operatorlogo] => false
[sckl_groupgraphic] => false
[sckl_vcard] => false
[sckl_vcalendar] => false
[text_imelody] => false
[ems] => false
[ems_variablesizedpictures] => false
[ems_imelody] => false
[ems_odi] => false
[ems_upi] => false
[ems_version] => 0
[siemens_ota] => false
[siemens_logo_width] => 101
[siemens_logo_height] => 29
[siemens_screensaver_width] => 101
[siemens_screensaver_height] => 50
[gprtf] => false
[sagem_v1] => false
[sagem_v2] => false
[panasonic] => false
[sms_enabled] => true
[wav] => false
[mmf] => false
[smf] => false
[mld] => false
[midi_monophonic] => false
[midi_polyphonic] => false
[sp_midi] => false
[rmf] => false
[xmf] => false
[compactmidi] => false
[digiplug] => false
[nokia_ringtone] => false
[imelody] => false
[au] => false
[amr] => false
[awb] => false
[aac] => true
[mp3] => true
[voices] => 1
[qcelp] => false
[evrc] => false
[flash_lite_version] =>
[fl_wallpaper] => false
[fl_screensaver] => false
[fl_standalone] => false
[fl_browser] => false
[fl_sub_lcd] => false
[full_flash_support] => true
[css_supports_width_as_percentage] => true
[css_border_image] => webkit
[css_rounded_corners] => webkit
[css_gradient] => none
[css_spriting] => true
[css_gradient_linear] => none
[is_transcoder] => false
[transcoder_ua_header] => user-agent
[rss_support] => false
[pdf_support] => true
[progressive_download] => true
[playback_vcodec_h263_0] => 10
[playback_vcodec_h263_3] => -1
[playback_vcodec_mpeg4_sp] => 0
[playback_vcodec_mpeg4_asp] => -1
[playback_vcodec_h264_bp] => 3.0
[playback_real_media] => none
[playback_3gpp] => true
[playback_3g2] => false
[playback_mp4] => true
[playback_mov] => false
[playback_acodec_amr] => nb
[playback_acodec_aac] => none
[playback_df_size_limit] => 0
[playback_directdownload_size_limit] => 0
[playback_inline_size_limit] => 0
[playback_oma_size_limit] => 0
[playback_acodec_qcelp] => false
[playback_wmv] => none
[hinted_progressive_download] => true
[html_preferred_dtd] => html4
[viewport_supported] => true
[viewport_width] => device_width_token
[viewport_userscalable] => no
[viewport_initial_scale] =>
[viewport_maximum_scale] =>
[viewport_minimum_scale] =>
[mobileoptimized] => false
[handheldfriendly] => false
[canvas_support] => full
[image_inlining] => true
[is_smarttv] => false
[is_console] => false
[nfc_support] => false
[ux_full_desktop] => false
[jqm_grade] => A
[is_sencha_touch_ok] => false
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>Zsxsoft<br /><small>1.3</small><br /></td><td>Android Webkit 4.0</td><td><i class="material-icons">close</i></td><td>Android 2.3.6</td><td style="border-left: 1px solid #555">Samsung</td><td>E160L</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.001</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-5d43e024-b46c-44f6-8914-529b05569bc2">Detail</a>
<!-- Modal Structure -->
<div id="modal-5d43e024-b46c-44f6-8914-529b05569bc2" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Zsxsoft result detail</h4>
<p><pre><code class="php">Array
(
[browser] => Array
(
[link] => http://developer.android.com/reference/android/webkit/package-summary.html
[title] => Android Webkit 4.0
[name] => Android Webkit
[version] => 4.0
[code] => android-webkit
[image] => img/16/browser/android-webkit.png
)
[os] => Array
(
[link] => http://www.android.com/
[name] => Android
[version] => 2.3.6
[code] => android
[x64] =>
[title] => Android 2.3.6
[type] => os
[dir] => os
[image] => img/16/os/android.png
)
[device] => Array
(
[link] => http://www.samsungmobile.com/
[title] => Samsung E160L
[model] => E160L
[brand] => Samsung
[code] => samsung
[dir] => device
[type] => device
[image] => img/16/device/samsung.png
)
[platform] => Array
(
[link] => http://www.samsungmobile.com/
[title] => Samsung E160L
[model] => E160L
[brand] => Samsung
[code] => samsung
[dir] => device
[type] => device
[image] => img/16/device/samsung.png
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr></table>
</div>
<div class="section">
<h1 class="header center orange-text">About this comparison</h1>
<div class="row center">
<h5 class="header light">
The primary goal of this project is simple<br />
I wanted to know which user agent parser is the most accurate in each part - device detection, bot detection and so on...<br />
<br />
The secondary goal is to provide a source for all user agent parsers to improve their detection based on this results.<br />
<br />
You can also improve this further, by suggesting ideas at <a href="https://github.com/ThaDafinser/UserAgentParserComparison">ThaDafinser/UserAgentParserComparison</a><br />
<br />
The comparison is based on the abstraction by <a href="https://github.com/ThaDafinser/UserAgentParser">ThaDafinser/UserAgentParser</a>
</h5>
</div>
</div>
<div class="card">
<div class="card-content">
Comparison created <i>2016-05-10 08:07:34</i> | by
<a href="https://github.com/ThaDafinser">ThaDafinser</a>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/list.js/1.2.0/list.min.js"></script>
<script>
$(document).ready(function(){
// the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered
$('.modal-trigger').leanModal();
});
</script>
</body>
</html> | ThaDafinser/UserAgentParserComparison | v5/user-agent-detail/c9/71/c9718a46-6ee7-4e44-90dc-389ea29b1c63.html | HTML | mit | 57,101 |
<?php
use Squarely\Setup;
use Squarely\Wrapper;
?>
<?php get_template_part('templates/head'); ?>
<body <?php body_class('main-body'); ?>>
<!--[if IE]>
<div class="alert alert-warning">
<?php _e('You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.', 'squarely'); ?>
</div>
<![endif]-->
<?php
do_action('get_header');
get_template_part('templates/header');
?>
<div class="wrapper" role="document" style="margin-top: 110px;">
<main>
<?php include Wrapper\template_path(); ?>
</main><!-- /.main -->
</div><!-- /.wrap -->
<?php
do_action('get_footer');
get_template_part('templates/footer');
wp_footer();
?>
</body>
</html>
| jessicahawkins3344/SquarelyV.1 | base-template-home.php | PHP | mit | 810 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>founify: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.11.0 / founify - 8.8.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
founify
<small>
8.8.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-01-08 11:23:12 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-08 11:23:12 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
coq 8.11.0 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.08.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.08.1 Official release 4.08.1
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/coq-contribs/founify"
license: "Unknown"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/FOUnify"]
depends: [
"ocaml"
"coq" {>= "8.8" & < "8.9~"}
]
tags: [ "keyword: First-order Unification" "keyword: Robinson" "category: Computer Science/Decision Procedures and Certified Algorithms/Correctness proofs of algorithms" "category: Miscellaneous/Extracted Programs/Type checking unification and normalization" ]
authors: [ "Jocelyne Rouyer" ]
bug-reports: "https://github.com/coq-contribs/founify/issues"
dev-repo: "git+https://github.com/coq-contribs/founify.git"
synopsis: "Correctness and extraction of the unification algorithm"
description: """
A notion of terms based on symbols without fixed arities is defined
and an extended unification problem is proved solvable on these terms.
An algorithm, close from Robinson algorithm, can be extracted from the
proof."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/founify/archive/v8.8.0.tar.gz"
checksum: "md5=41f09092e13a8bc95d4aa178ea3e3ad1"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-founify.8.8.0 coq.8.11.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.11.0).
The following dependencies couldn't be met:
- coq-founify -> coq < 8.9~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-founify.8.8.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.08.1-2.0.5/released/8.11.0/founify/8.8.0.html | HTML | mit | 7,075 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ach" version="2.0">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About CoinsBazar Core</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+39"/>
<source><b>CoinsBazar Core</b> version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+57"/>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young ([email protected]) and UPnP software written by Thomas Bernard.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../utilitydialog.cpp" line="+29"/>
<source>Copyright</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The CoinsBazar Core developers</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+30"/>
<source>Double-click to edit address or label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&New</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Copy</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+52"/>
<source>C&lose</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+74"/>
<source>&Copy Address</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="-41"/>
<source>Delete the currently selected address from the list</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Export</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-27"/>
<source>&Delete</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../addressbookpage.cpp" line="-30"/>
<source>Choose the address to send coins to</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Choose the address to receive coins with</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>C&hoose</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Sending addresses</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Receiving addresses</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>These are your CoinsBazar addresses for sending payments. Always check the amount and the receiving address before sending coins.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>These are your CoinsBazar addresses for receiving payments. It is recommended to use a new receiving address for each transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Copy &Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>&Edit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+194"/>
<source>Export Address List</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Exporting Failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>There was an error trying to save the address list to %1.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+168"/>
<source>Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+40"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR BITCOINS</b>!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+100"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-130"/>
<location line="+58"/>
<source>Wallet encrypted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-56"/>
<source>CoinsBazar will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+42"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-54"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<location line="+48"/>
<source>The supplied passphrases do not match.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-37"/>
<source>Wallet unlock failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<location line="+11"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>CoinsBazarGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+295"/>
<source>Sign &message...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+335"/>
<source>Synchronizing with network...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-407"/>
<source>&Overview</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-137"/>
<source>Node</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+138"/>
<source>Show general overview of wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>&Transactions</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>E&xit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Show information about CoinsBazar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<location line="+2"/>
<source>About &Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Show information about Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>&Encrypt Wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>&Sending addresses...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>&Receiving addresses...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Open &URI...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+325"/>
<source>Importing blocks from disk...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Reindexing blocks on disk...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-405"/>
<source>Send coins to a CoinsBazar address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+49"/>
<source>Modify configuration options for CoinsBazar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Backup wallet to another location</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>&Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-4"/>
<source>&Verify message...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+430"/>
<source>CoinsBazar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-643"/>
<source>Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+146"/>
<source>&Send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Receive</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+46"/>
<location line="+2"/>
<source>&Show / Hide</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show or hide the main Window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Encrypt the private keys that belong to your wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Sign messages with your CoinsBazar addresses to prove you own them</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Verify messages to ensure they were signed with specified CoinsBazar addresses</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+48"/>
<source>&File</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Settings</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>&Help</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Tabs toolbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-284"/>
<location line="+376"/>
<source>[testnet]</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-401"/>
<source>CoinsBazar Core</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+163"/>
<source>Request payments (generates QR codes and bitcoin: URIs)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<location line="+2"/>
<source>&About CoinsBazar Core</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Show the list of used sending addresses and labels</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Show the list of used receiving addresses and labels</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Open a bitcoin: URI or payment request</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>&Command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show the CoinsBazar Core help message to get a list with possible CoinsBazar command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+159"/>
<location line="+5"/>
<source>CoinsBazar client</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+142"/>
<source>%n active connection(s) to CoinsBazar network</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+22"/>
<source>No block source available...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Processed %1 of %2 (estimated) blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Processed %1 blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+23"/>
<source>%n hour(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n week(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>%1 behind</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>Last received block was generated %1 ago.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Transactions after this will not yet be visible.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Error</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-85"/>
<source>Up to date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+34"/>
<source>Catching up...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+130"/>
<source>Sent transaction</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Incoming transaction</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+69"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../bitcoin.cpp" line="+438"/>
<source>A fatal error occurred. CoinsBazar can no longer continue safely and will quit.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+119"/>
<source>Network Alert</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>CoinControlDialog</name>
<message>
<location filename="../forms/coincontroldialog.ui" line="+14"/>
<source>Coin Control Address Selection</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+34"/>
<source>Quantity:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Bytes:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+45"/>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Priority:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+45"/>
<source>Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Low Output:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+48"/>
<source>After Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Change:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+63"/>
<source>(un)select all</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Tree mode</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>List mode</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+52"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirmations</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Priority</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="+42"/>
<source>Copy address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<location line="+26"/>
<source>Copy amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-25"/>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Lock unspent</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Unlock unspent</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>Copy quantity</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Copy fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+323"/>
<source>highest</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>higher</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>high</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>medium-high</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>low-medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>low</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>lower</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>lowest</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>(%1 locked)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>none</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+140"/>
<source>Dust</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>yes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>no</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>This label turns red, if the transaction size is greater than 1000 bytes.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<location line="+5"/>
<source>This means a fee of at least %1 per kB is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-4"/>
<source>Can vary +/- 1 byte per input.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Transactions with higher priority are more likely to get included into a block.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if the priority is smaller than "medium".</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>This label turns red, if any recipient receives an amount smaller than %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<location line="+4"/>
<source>This means a fee of at least %1 is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-3"/>
<source>Amounts below 0.546 times the minimum relay fee are shown as dust.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>This label turns red, if the change is smaller than %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+43"/>
<location line="+66"/>
<source>(no label)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-9"/>
<source>change from %1 (%2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>(change)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address list entry</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>The address associated with this address list entry. This can only be modified for sending addresses.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-10"/>
<source>&Address</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+28"/>
<source>New receiving address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid CoinsBazar address.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>FreespaceChecker</name>
<message>
<location filename="../intro.cpp" line="+65"/>
<source>A new data directory will be created.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>name</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Directory already exists. Add %1 if you intend to create a new directory here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Path already exists, and is not a directory.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Cannot create data directory here.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>HelpMessageDialog</name>
<message>
<location filename="../forms/helpmessagedialog.ui" line="+19"/>
<source>CoinsBazar Core - Command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../utilitydialog.cpp" line="+38"/>
<source>CoinsBazar Core</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Choose data directory on startup (default: 0)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>Intro</name>
<message>
<location filename="../forms/intro.ui" line="+14"/>
<source>Welcome</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Welcome to CoinsBazar Core.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+26"/>
<source>As this is the first time the program is launched, you can choose where CoinsBazar Core will store its data.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>CoinsBazar Core will download and store a copy of the CoinsBazar block chain. At least %1GB of data will be stored in this directory, and it will grow over time. The wallet will also be stored in this directory.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Use the default data directory</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Use a custom data directory:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../intro.cpp" line="+85"/>
<source>CoinsBazar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error: Specified data directory "%1" can not be created.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Error</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>GB of free space available</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>(of %1GB needed)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OpenURIDialog</name>
<message>
<location filename="../forms/openuridialog.ui" line="+14"/>
<source>Open URI</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Open payment request from URI or file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>URI:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Select payment request file</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../openuridialog.cpp" line="+47"/>
<source>Select payment request file to open</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>&Main</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Automatically start CoinsBazar after logging in to the system.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Start CoinsBazar on system login</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Size of &database cache</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>MB</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Number of script &verification threads</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Set the number of script verification threads (up to 16, 0 = auto, <0 = leave that many cores free, default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+58"/>
<source>Connect to the CoinsBazar network through a SOCKS proxy.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy (default proxy):</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+34"/>
<source>IP address of the proxy (e.g. IPv4: 127.0.0.1 / IPv6: ::1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+224"/>
<source>Active command-line options that override above options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+43"/>
<source>Reset all client options to default.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Reset Options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-323"/>
<source>&Network</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Automatically open the CoinsBazar client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Proxy &IP:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>&Port:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting CoinsBazar.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Whether to show CoinsBazar addresses in the transaction list or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Whether to show coin control features or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Display coin &control features (experts only)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+136"/>
<source>&OK</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+67"/>
<source>default</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+57"/>
<source>none</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+75"/>
<source>Confirm options reset</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<location line="+29"/>
<source>Client restart required to activate changes.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>Client will be shutdown, do you want to proceed?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+33"/>
<source>This change would require a client restart.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+34"/>
<source>The supplied proxy address is invalid.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+50"/>
<location line="+231"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the CoinsBazar network after a connection is established, but this process has not completed yet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-155"/>
<source>Unconfirmed:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-83"/>
<source>Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Confirmed:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current spendable balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the spendable balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Immature:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Total:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current total balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source><b>Recent transactions</b></source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../overviewpage.cpp" line="+120"/>
<location line="+1"/>
<source>out of sync</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>PaymentServer</name>
<message>
<location filename="../paymentserver.cpp" line="+403"/>
<location line="+13"/>
<source>URI handling</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>URI can not be parsed! This can be caused by an invalid CoinsBazar address or malformed URI parameters.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+96"/>
<source>Requested payment amount of %1 is too small (considered dust).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-221"/>
<location line="+212"/>
<location line="+13"/>
<location line="+95"/>
<location line="+18"/>
<location line="+16"/>
<source>Payment request error</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-353"/>
<source>Cannot start bitcoin: click-to-pay handler</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+58"/>
<source>Net manager warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Your active proxy doesn't support SOCKS5, which is required for payment requests via proxy.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+52"/>
<source>Payment request fetch URL is invalid: %1</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Payment request file handling</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Payment request file can not be read or processed! This can be caused by an invalid payment request file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+73"/>
<source>Unverified payment requests to custom payment scripts are unsupported.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>Refund from %1</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+43"/>
<source>Error communicating with %1: %2</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>Payment request can not be parsed or processed!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Bad response from server %1</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+33"/>
<source>Payment acknowledged</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-11"/>
<source>Network request error</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>QObject</name>
<message>
<location filename="../bitcoin.cpp" line="+71"/>
<location line="+11"/>
<source>CoinsBazar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error: Specified data directory "%1" does not exist.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>Error: Invalid combination of -regtest and -testnet.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>QRImageWidget</name>
<message>
<location filename="../receiverequestdialog.cpp" line="+36"/>
<source>&Save Image...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Copy Image</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Save QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>PNG Image (*.png)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+23"/>
<location line="+26"/>
<location line="+23"/>
<location line="+23"/>
<location line="+36"/>
<location line="+23"/>
<location line="+36"/>
<location line="+23"/>
<location line="+23"/>
<location filename="../rpcconsole.cpp" line="+359"/>
<source>N/A</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-223"/>
<source>Client version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-10"/>
<source>Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>General</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+53"/>
<source>Using OpenSSL version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Name</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Number of connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Block chain</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+72"/>
<source>&Network Traffic</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+52"/>
<source>&Clear</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Totals</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+64"/>
<source>In:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+80"/>
<source>Out:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-521"/>
<source>Build date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+206"/>
<source>Debug log file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Open the CoinsBazar debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+76"/>
<source>Clear console</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-30"/>
<source>Welcome to the CoinsBazar RPC console.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+122"/>
<source>%1 B</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1 KB</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1 MB</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1 GB</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>%1 m</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>%1 h</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1 h %2 m</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ReceiveCoinsDialog</name>
<message>
<location filename="../forms/receivecoinsdialog.ui" line="+83"/>
<source>&Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-13"/>
<source>&Label:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-34"/>
<source>&Message:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-17"/>
<source>Reuse one of the previously used receiving addresses. Reusing addresses has security and privacy issues. Do not use this unless re-generating a payment request made before.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>R&euse an existing receiving address (not recommended)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>An optional label to associate with the new receiving address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>An optional message to attach to the payment request, which will be displayed when the request is opened. Note: The message will not be sent with the payment over the CoinsBazar network.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Use this form to request payments. All fields are <b>optional</b>.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+39"/>
<source>An optional amount to request. Leave this empty or zero to not request a specific amount.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Clear all fields of the form.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Clear</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+36"/>
<source>&Request payment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+47"/>
<source>Requested payments</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Show the selected request (does the same as double clicking an entry)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Show</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Remove the selected entries from the list</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Remove</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ReceiveRequestDialog</name>
<message>
<location filename="../forms/receiverequestdialog.ui" line="+29"/>
<source>QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+46"/>
<source>Copy &URI</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Copy &Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Save Image...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../receiverequestdialog.cpp" line="+56"/>
<source>Request payment to %1</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Payment information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>URI</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error encoding URI into QR Code.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>RecentRequestsTableModel</name>
<message>
<location filename="../recentrequeststablemodel.cpp" line="+24"/>
<source>Date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+38"/>
<source>(no label)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>(no message)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="+14"/>
<location filename="../sendcoinsdialog.cpp" line="+381"/>
<location line="+80"/>
<source>Send Coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+76"/>
<source>Coin Control Features</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Inputs...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>automatically selected</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Insufficient funds!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+89"/>
<source>Quantity:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Bytes:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+48"/>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Priority:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+48"/>
<source>Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Low Output:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+48"/>
<source>After Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Change:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+44"/>
<source>If this is activated, but the change address is empty or invalid, change will be sent to a newly generated address.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Custom change address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+115"/>
<source>Send to multiple recipients at once</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Clear all fields of the form.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>Balance:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Confirm the send action</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-228"/>
<source>Confirm send coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-74"/>
<location line="+5"/>
<location line="+5"/>
<location line="+4"/>
<source>%1 to %2</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-136"/>
<source>Enter a CoinsBazar address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Copy quantity</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+170"/>
<source>Total Amount %1 (= %2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>or</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+202"/>
<source>The recipient address is not valid, please recheck.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>The amount to pay must be larger than 0.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>The amount exceeds your balance.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Transaction creation failed!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+112"/>
<source>Warning: Invalid CoinsBazar address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>(no label)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-11"/>
<source>Warning: Unknown change address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-366"/>
<source>Are you sure you want to send?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>added as transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+170"/>
<source>Payment request expired</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Invalid payment address %1</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+131"/>
<location line="+521"/>
<location line="+536"/>
<source>A&mount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1152"/>
<source>Pay &To:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+30"/>
<source>Enter a label for this address to add it to your address book</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+57"/>
<source>&Label:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-50"/>
<source>Choose previously used address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-40"/>
<source>This is a normal payment.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+50"/>
<source>Alt+A</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Paste address from clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<location line="+524"/>
<location line="+536"/>
<source>Remove this entry</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1008"/>
<source>Message:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>A message that was attached to the CoinsBazar URI which will be stored with the transaction for your reference. Note: This message will not be sent over the CoinsBazar network.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+958"/>
<source>This is a verified payment request.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-991"/>
<source>Enter a label for this address to add it to the list of used addresses</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+459"/>
<source>This is an unverified payment request.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<location line="+532"/>
<source>Pay To:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-498"/>
<location line="+536"/>
<source>Memo:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a CoinsBazar address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ShutdownWindow</name>
<message>
<location filename="../utilitydialog.cpp" line="+48"/>
<source>CoinsBazar Core is shutting down...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Do not shut down the computer until this window disappears.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>&Sign Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+213"/>
<source>Choose previously used address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-203"/>
<location line="+213"/>
<source>Alt+A</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-203"/>
<source>Paste address from clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Enter the message you want to sign here</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Copy the current signature to the system clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this CoinsBazar address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Reset all sign message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-87"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified CoinsBazar address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Verify &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Reset all verify message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+29"/>
<location line="+3"/>
<source>Enter a CoinsBazar address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Enter CoinsBazar signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+84"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-81"/>
<location line="+8"/>
<location line="+73"/>
<location line="+8"/>
<source>Please check the address and try again.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SplashScreen</name>
<message>
<location filename="../splashscreen.cpp" line="+28"/>
<source>CoinsBazar Core</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>The CoinsBazar Core developers</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>[testnet]</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TrafficGraphWidget</name>
<message>
<location filename="../trafficgraphwidget.cpp" line="+79"/>
<source>KB/s</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+28"/>
<source>Open until %1</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>%1/offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+53"/>
<source>Credit</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-125"/>
<source>matures in %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+53"/>
<source>Debit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-62"/>
<source>Transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<location line="+9"/>
<source>Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-7"/>
<source>Comment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Merchant</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Generated coins must mature %1 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Debug information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Inputs</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-232"/>
<source>, has not been successfully broadcast yet</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-35"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+70"/>
<source>unknown</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="+14"/>
<source>Transaction details</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="+234"/>
<source>Date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>Immature (%1 confirmations, will be available after %2)</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+16"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+3"/>
<source>Open until %1</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Offline (%1 confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed (%1 of %2 confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-22"/>
<location line="+25"/>
<source>Confirmed (%1 confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-22"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+62"/>
<source>Received with</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+38"/>
<source>(n/a)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+199"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+57"/>
<location line="+16"/>
<source>All</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Enter address or label to search</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Min amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+142"/>
<source>Export Transaction History</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Exporting Failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the transaction history to %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Exporting Successful</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The transaction history was successfully saved to %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-22"/>
<source>Comma separated file (*.csv)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Confirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+107"/>
<source>Range:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>WalletFrame</name>
<message>
<location filename="../walletframe.cpp" line="+26"/>
<source>No wallet has been loaded.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+245"/>
<source>Send Coins</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>WalletView</name>
<message>
<location filename="../walletview.cpp" line="+43"/>
<source>&Export</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+181"/>
<source>Backup Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Wallet Data (*.dat)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Backup Failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>The wallet data was successfully saved to %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Backup Successful</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+221"/>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-54"/>
<source>List commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-14"/>
<source>Get help for a command</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+26"/>
<source>Options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>Specify configuration file (default: bitcoin.conf)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Specify pid file (default: bitcoind.pid)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-9"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-26"/>
<source>Listen for connections on <port> (default: 8333 or testnet: 18333)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-51"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+84"/>
<source>Specify your own public address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-148"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-36"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+34"/>
<source>Listen for JSON-RPC connections on <port> (default: 8332 or testnet: 18332)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+45"/>
<source>Accept command line and JSON-RPC commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+80"/>
<source>Run in the background as a daemon and accept commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+39"/>
<source>Use the test network</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-118"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-95"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=bitcoinrpc
rpcpassword=%s
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
It is also recommended to set alertnotify so you are notified of problems;
for example: alertnotify=echo %%s | mail -s "CoinsBazar Alert" [email protected]
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Acceptable ciphers (default: TLSv1.2+HIGH:TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!3DES:@STRENGTH)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Cannot obtain a lock on data directory %s. CoinsBazar is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Enter regression test mode, which uses a special chain in which blocks can be solved instantly. This is intended for regression testing tools and app development.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Enter regression test mode, which uses a special chain in which blocks can be solved instantly.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Use separate SOCKS5 proxy to reach peers via Tor hidden services (default: -proxy)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong CoinsBazar will not work properly.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: We do not appear to fully agree with our peers! You may need to upgrade, or other nodes may need to upgrade.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source><category> can be:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>CoinsBazar Core Daemon</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>CoinsBazar RPC client version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Block creation options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Connect only to the specified node(s)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Connect through SOCKS proxy</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Connect to JSON-RPC on <port> (default: 8332 or testnet: 18332)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Corrupted block database detected</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Do not load the wallet and disable wallet RPC calls</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Do you want to rebuild the block database now?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error initializing block database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error initializing wallet database environment %s!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading block database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error opening block database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error: Disk space is low!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error: Wallet locked, unable to create transaction!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error: system error: </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to read block info</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to read block</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to sync block index</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write block index</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write block info</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write block</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write file info</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write to coin database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write transaction index</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write undo data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Fee per kB to add to transactions you send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Find peers using DNS lookup (default: 1 unless -connect)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Generate coins (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 288, 0 = all)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-4, default: 3)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>If <category> is not supplied, output all debugging information.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Incorrect or no genesis block found. Wrong datadir for network?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Invalid -onion address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Not enough file descriptors available.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Prepend debug output with timestamp (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>RPC client options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Rebuild block chain index from current blk000??.dat files</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Select SOCKS version for -proxy (4 or 5, default: 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Send command to CoinsBazar server</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Set maximum block size in bytes (default: %d)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Set the number of threads to service RPC calls (default: 4)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Specify wallet file (within data directory)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Start CoinsBazar server</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>This is intended for regression testing tools and app development.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Usage (deprecated, use bitcoin-cli):</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Verifying blocks...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Verifying wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Wait for RPC server to start</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Wallet %s resides outside data directory %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Wallet options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Warning: Deprecated argument -debugnet ignored, use -debug=net</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>You need to rebuild the database using -reindex to change -txindex</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-79"/>
<source>Imports blocks from external blk000??.dat file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-105"/>
<source>Execute command when a relevant alert is received or we see a really long fork (%s in cmd is replaced by message)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Output debugging information (default: 0, supplying <category> is optional)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: %d)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Set the number of script verification threads (up to 16, 0 = auto, <0 = leave that many cores free, default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+89"/>
<source>Information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Invalid amount for -minrelaytxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Invalid amount for -mintxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Maintain a full transaction index (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Only accept block chain matching built-in checkpoints (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>SSL options: (see the CoinsBazar Wiki for SSL setup instructions)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Signing transaction failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>System error: </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Transaction amount too small</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transaction amounts must be positive</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transaction too large</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Username for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-58"/>
<source>Password for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-70"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+80"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-132"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+161"/>
<source>Upgrade wallet to latest format</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-24"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-11"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+38"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-30"/>
<source>Server certificate file (default: server.cert)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>This help message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-107"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+60"/>
<source>Loading addresses...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-37"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat: Wallet requires newer version of CoinsBazar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+98"/>
<source>Wallet needed to be rewritten: restart CoinsBazar to complete</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-100"/>
<source>Error loading wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Invalid -proxy address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+56"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-101"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+48"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Invalid amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-6"/>
<source>Insufficient funds</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Loading block index...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-62"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-32"/>
<source>Unable to bind to %s on this computer. CoinsBazar is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+95"/>
<source>Loading wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-56"/>
<source>Cannot downgrade wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Cannot write default address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+67"/>
<source>Rescanning...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-58"/>
<source>Done loading</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+85"/>
<source>To use the %s option</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-77"/>
<source>Error</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-35"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation type="unfinished"/>
</message>
</context>
</TS> | aqavi-paracha/coinsbazar | src/qt/locale/bitcoin_ach.ts | TypeScript | mit | 130,916 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Identity;
namespace DND.AspNetCore.Web.Models.ManageViewModels
{
public class IndexViewModel
{
public bool HasPassword { get; set; }
public IList<UserLoginInfo> Logins { get; set; }
public string PhoneNumber { get; set; }
public bool TwoFactor { get; set; }
public bool BrowserRemembered { get; set; }
}
}
| davidikin45/DigitalNomadDave | DND.AspNetCore.Web/Models/ManageViewModels/IndexViewModel.cs | C# | mit | 490 |
/**
* Programmer: Minhas Kamal (BSSE0509,IIT,DU)
* Date: 30-Mar-2014
**/
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
#define X 3
struct node{
int value;
int depth;
node *previous;
node *next[X];
} nullNode;
int main(){
///input array
int arrayLength=1;
for(int i=0; i<X; i++){
arrayLength = arrayLength * 2;
}
int array[arrayLength];
for(int i=0; i<arrayLength; i++){
array[i]=rand()%100;
printf("%d \n", array[i]);///test
}
///initialize null node
nullNode.value=-1;
nullNode.depth=0;
nullNode.previous=NULL;
for(int i=0; i<X; i++){
nullNode.next[i]=NULL;
}
///constructing binomial tree
bool similarityFound=true;
node binomialTree[arrayLength];
for(int i=0; i<arrayLength; i++){
///initialization
binomialTree[i].value = array[i];
binomialTree[i].depth = 0;
binomialTree[i].previous = &nullNode;
for(int j=0; j<X; j++){
binomialTree[i].next[j] =NULL;
}
nullNode.next[nullNode.depth]=&binomialTree[i];
nullNode.depth++;
///finding & merging similar trees
int newNode=i;
while(1){
similarityFound=false;
int j;
for(j=0; j<nullNode.depth-1; j++){
if(nullNode.next[j]->depth==binomialTree[newNode].depth)
similarityFound=true;
}
if(similarityFound){
if(binomialTree[j].value < binomialTree[newNode].value){
binomialTree[j].next[binomialTree[j].depth]=&binomialTree[newNode];
binomialTree[newNode].previous=&binomialTree[j];
newNode=j;
binomialTree[j].depth++;
}
else{
binomialTree[newNode].next[binomialTree[newNode].depth]=&binomialTree[j];
binomialTree[j].previous=&binomialTree[newNode];
newNode=newNode;
binomialTree[newNode].depth++;
}
nullNode.depth--;
nullNode.next[nullNode.depth]=&binomialTree[newNode];
}else{
break;
}
}
}
///traversing
for(int i=0; i<arrayLength; i++){
cout << &binomialTree[i] << "\t" << binomialTree[i].value << "\t";
cout << binomialTree[i].depth << "\t" << binomialTree[i].previous << "\t";
for(int j=0; j<X; j++){
cout << binomialTree[i].next[j] << "\t";
}
cout << endl;
}
return 0;
}
| MinhasKamal/AlgorithmImplementations | dataStructures/tree/BinomialTree.cpp | C++ | mit | 2,759 |
<?php
namespace PlaceFinder\APIBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files
*
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
*/
class Configuration implements ConfigurationInterface
{
/**
* {@inheritdoc}
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('place_finder_api');
// Here you should define the parameters that are allowed to
// configure your bundle. See the documentation linked above for
// more information on that topic.
return $treeBuilder;
}
}
| yoannrenard/place-finder | src/PlaceFinder/APIBundle/DependencyInjection/Configuration.php | PHP | mit | 886 |
# tuxedoneko
tuxedoneko is a minimal blog theme for [hugo](http://gohugo.io).
The theme is based on [Hemingway2](https://github.com/beli3ver/hemingway2.git).
## Getting Started
Clone this repository to your hugo theme directory.
```
mkdir themes
cd themes
git clone https://github.com/tuxedocat/tuxedoneko.git
```
## Configuration
Take a look in the exampleSite dir.
This directory contains an example config file and the content for the demo.
It serves as an example setup for your documentation.
Copy the `config.toml` in the root directory of your website. Overwrite the existing config file if necessary.
```toml
baseurl = "https://example.com"
languageCode = "en"
title = "miaulog"
theme = "tuxedoneko"
copyright = "© tuxedocat"
disqusShortname = "shortname"
googleAnalytics = "trackingcode"
[taxonomies]
tag = "tags"
category = "categories"
[params]
description = "Your description here"
keywords = ["keyword 1", "keyword 2", "keyword 3"]
author = "tuxedocat"
sharingicons = true
enableMathJax = false
[params.highlight]
style = "github"
languages = ["scala", "sh", "python", "r", "go", "dockerfile"]
# Navbar on upper-right area, decorated with Fontawesome icons.
[[params.social]]
name = "Me on Github" # -> title
url = "https://github.com/tuxedocat" # -> href
iconName = "logo-octocat" # -> icon name
[[params.social]]
url = "https://gitlab.com/tuxedocat"
iconName = "logo"
[[params.social]]
url = "/index.xml"
iconName = "rss_feed"
[[params.socialshare]]
url = "https://linkedin.com/in/_your_name_"
iconName = "logo-linkedin"
```
## Build
### CSS
Build CSS from Sass using gulp:
```bash
$ yarn add gulp
$ yarn add gulp-sass
# Default: just build css from sass file.
$ yarn gulp
# Or run build for each modification.
$ yarn gulp watch
```
### Hugo
```bash
$ hugo server
# Or set theme variable explicitly
$ hugo server -t tuxedoneko
# Or set theme directory explicitly, if this theme is in somewhere/tuxedoneko
$ hugo server --themeDir somewhere/
```
You can go to localhost:1313 and this theme should be visible.
## License
tuxedoneko is licensed under the [MIT License](LICENSE.md).
## Credits
tuxedoneko is based on Hucore and Hemingway (1 and 2).
| tuxedocat/tuxedoneko | README.md | Markdown | mit | 2,234 |
/*istanbul ignore next*/'use strict';
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
Object.defineProperty(exports, "__esModule", {
value: true
});
var _request2 = require('request');
var _request3 = _interopRequireDefault(_request2);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
/**
* A set of utlity methods.
* @abstract
*/
var EgoJSUtils = (function () {
function EgoJSUtils() {
_classCallCheck(this, EgoJSUtils);
}
_createClass(EgoJSUtils, null, [{
key: '_fullfilledPromise',
/**
* Returns an already fullfilled promise with a given value.
* @param {bollean} success - Whether to call `resolve` or `reject`.
* @param {*} response - The object to resolve or reject.
* @return {Promise<*,*>}
* @private
* @ignore
*/
value: function _fullfilledPromise(success, response) {
return new Promise(function (resolve, reject) {
if (success) {
resolve(response);
} else {
reject(response);
}
});
}
/**
* Returns an already rejected promise.
* @example
* EgoJSUtils.rejectedPromise('error message').catch((e) => {
* // It will log 'error message'
* console.log(e);
* });
*
* @param {*} response - The object to send to the `.catch` method.
* @return {Promise<null, *>} This promise won't call `.then` but `.catch` directly.
*/
}, {
key: 'rejectedPromise',
value: function rejectedPromise(response) {
return this._fullfilledPromise(false, response);
}
/**
* Returns an already resolved promise.
* @example
* EgoJSUtils.rejectedPromise('hello world').then((message) => {
* // It will log 'hello world'
* console.log(message);
* });
*
* @param {*} response - The object to send to the `.then` method.
* @return {Promise<*, null>} This promise won't call `.catch`.
*/
}, {
key: 'resolvedPromise',
value: function resolvedPromise(response) {
return this._fullfilledPromise(true, response);
}
/**
* It will merge a given list of Objects into a new one. It works recursively, so any "sub
* objects" will also be merged. This method returns a new Object, so none of the targets will
* be modified.
* @example
* const a = {
* b: 'c',
* d: {
* e: 'f',
* g: {
* h: ['i'],
* },
* },
* j: 'k',
* };
* const b = {
* j: 'key',
* d: {
* g: {
* h: ['x', 'y', 'z'],
* l: 'm',
* },
* },
* };
* // The result will be
* // {
* // b: 'c',
* // d: {
* // e: 'f',
* // g: {
* // h: ['x', 'y', 'z'],
* // l: 'm',
* // },
* // },
* // j: 'key',
* // }
* ._mergeObjects(a, b);
*
* @param {...Object} objects - The list of objects to merge.
* @return {Object} A new object with the merged properties.
*/
}, {
key: 'mergeObjects',
value: function mergeObjects() {
/*istanbul ignore next*/
var _this = this;
var result = {};
/*istanbul ignore next*/
for (var _len = arguments.length, objects = Array(_len), _key = 0; _key < _len; _key++) {
objects[_key] = arguments[_key];
}
objects.forEach(function (obj) {
if (typeof obj !== 'undefined') {
Object.keys(obj).forEach(function (objKey) {
var current = obj[objKey];
var target = result[objKey];
if (typeof target !== 'undefined' && current.constructor === Object && target.constructor === Object) {
result[objKey] = /*istanbul ignore next*/_this.mergeObjects(target, current);
} else {
result[objKey] = current;
}
}, /*istanbul ignore next*/_this);
}
}, this);
return result;
}
/**
* Wraps a Request call into a Promise.
* @example
* request({uri: 'https://homer0.com/rosario'})
* .then((response) => doSomething(response))
* .catch((err) => handleErrors(err));
*
* @param {Object} data The request settings. The same you would use with request().
* @return {Promise<Object, Error>} It will be resolved or rejected depending on the response.
*/
}, {
key: 'request',
value: function request(data) {
return new Promise(function (resolve, reject) {
/*istanbul ignore next*/(0, _request3.default)(data, function (err, httpResponse, body) {
if (err) {
reject(err);
} else {
resolve(body);
}
});
});
}
}]);
return EgoJSUtils;
})();
/*istanbul ignore next*/exports.default = EgoJSUtils; | homer0/egojs | dist/utils.js | JavaScript | mit | 6,397 |
<?php
$i++;
++$j;
$k--;
--$l;
$a['a']++;
$a['a']--;
| slevomat/coding-standard | tests/Sniffs/Operators/data/disallowIncrementAndDecrementOperatorsErrors.php | PHP | mit | 55 |
// shexmap-simple - Simple ShEx2 validator for HTML.
// Copyright 2017 Eric Prud'hommeux
// Release under MIT License.
const ShEx = ShExWebApp; // @@ rename globally
const ShExJsUrl = 'https://github.com/shexSpec/shex.js'
const RdfJs = N3js;
const ShExApi = ShEx.Api({
fetch: window.fetch.bind(window), rdfjs: RdfJs, jsonld: null
})
const MapModule = ShEx.Map({rdfjs: RdfJs, Validator: ShEx.Validator});
ShEx.ShapeMap.start = ShEx.Validator.start
const SharedForTests = {} // an object to share state with a test harness
const START_SHAPE_LABEL = "START";
const START_SHAPE_INDEX_ENTRY = "- start -"; // specificially not a JSON-LD @id form.
const INPUTAREA_TIMEOUT = 250;
const NO_MANIFEST_LOADED = "no manifest loaded";
const LOG_PROGRESS = false;
const DefaultBase = location.origin + location.pathname;
const Caches = {};
Caches.inputSchema = makeSchemaCache($("#inputSchema textarea.schema"));
Caches.inputData = makeTurtleCache($("#inputData textarea"));
Caches.manifest = makeManifestCache($("#manifestDrop"));
Caches.extension = makeExtensionCache($("#extensionDrop"));
Caches.shapeMap = makeShapeMapCache($("#textMap")); // @@ rename to #shapeMap
Caches.bindings = makeJSONCache($("#bindings1 textarea"));
Caches.statics = makeJSONCache($("#staticVars textarea"));
Caches.outputSchema = makeSchemaCache($("#outputSchema textarea"));
// let ShExRSchema; // defined in calling page
const ParseTriplePattern = (function () {
const uri = "<[^>]*>|[a-zA-Z0-9_-]*:[a-zA-Z0-9_-]*";
const literal = "((?:" +
"'(?:[^'\\\\]|\\\\')*'" + "|" +
"\"(?:[^\"\\\\]|\\\\\")*\"" + "|" +
"'''(?:(?:'|'')?[^'\\\\]|\\\\')*'''" + "|" +
"\"\"\"(?:(?:\"|\"\")?[^\"\\\\]|\\\\\")*\"\"\"" +
")" +
"(?:@[a-zA-Z-]+|\\^\\^(?:" + uri + "))?)";
const uriOrKey = uri + "|FOCUS|_";
// const termOrKey = uri + "|" + literal + "|FOCUS|_";
return "(\\s*{\\s*)("+
uriOrKey+")?(\\s*)("+
uri+"|a)?(\\s*)("+
uriOrKey+"|" + literal + ")?(\\s*)(})?(\\s*)";
})();
const Getables = [
{queryStringParm: "schema", location: Caches.inputSchema.selection, cache: Caches.inputSchema},
{queryStringParm: "data", location: Caches.inputData.selection, cache: Caches.inputData },
{queryStringParm: "manifest", location: Caches.manifest.selection, cache: Caches.manifest , fail: e => $("#manifestDrop li").text(NO_MANIFEST_LOADED)},
{queryStringParm: "extension", location: Caches.extension.selection, cache: Caches.extension },
{queryStringParm: "shape-map", location: $("#textMap"), cache: Caches.shapeMap },
{queryStringParm: "bindings", location: Caches.bindings.selection, cache: Caches.bindings },
{queryStringParm: "statics", location: Caches.statics.selection, cache: Caches.statics },
{queryStringParm: "outSchema", location: Caches.outputSchema.selection,cache: Caches.outputSchema},
];
const QueryParams = Getables.concat([
{queryStringParm: "interface", location: $("#interface"), deflt: "human" },
{queryStringParm: "success", location: $("#success"), deflt: "proof" },
{queryStringParm: "regexpEngine", location: $("#regexpEngine"), deflt: "eval-threaded-nerr" },
]);
// utility functions
function parseTurtle (text, meta, base) {
const ret = new RdfJs.Store();
RdfJs.Parser._resetBlankNodePrefix();
const parser = new RdfJs.Parser({baseIRI: base, format: "text/turtle" });
const quads = parser.parse(text);
if (quads !== undefined)
ret.addQuads(quads);
meta.base = parser._base;
meta.prefixes = parser._prefixes;
return ret;
}
const shexParser = ShEx.Parser.construct(DefaultBase, null, {index: true});
function parseShEx (text, meta, base) {
shexParser._setOptions({duplicateShape: $("#duplicateShape").val()});
shexParser._setBase(base);
const ret = shexParser.parse(text);
// ret = ShEx.Util.canonicalize(ret, DefaultBase);
meta.base = ret._base; // base set above.
meta.prefixes = ret._prefixes || {}; // @@ revisit after separating shexj from meta and indexes
return ret;
}
function sum (s) { // cheap way to identify identical strings
return s.replace(/\s/g, "").split("").reduce(function (a,b){
a = ((a<<5) - a) + b.charCodeAt(0);
return a&a
},0);
}
// <n3.js-specific>
function rdflib_termToLex (node, resolver) {
if (node === "http://www.w3.org/1999/02/22-rdf-syntax-ns#type")
return "a";
if (node === ShEx.Validator.start)
return START_SHAPE_LABEL;
if (node === resolver._base)
return "<>";
if (node.indexOf(resolver._base) === 0/* &&
['#', '?'].indexOf(node.substr(resolver._base.length)) !== -1 */)
return "<" + node.substr(resolver._base.length) + ">";
if (node.indexOf(resolver._basePath) === 0 &&
['#', '?', '/', '\\'].indexOf(node.substr(resolver._basePath.length)) === -1)
return "<" + node.substr(resolver._basePath.length) + ">";
return ShEx.ShExTerm.intermalTermToTurtle(node, resolver.meta.base, resolver.meta.prefixes);
}
function rdflib_lexToTerm (lex, resolver) {
return lex === START_SHAPE_LABEL ? ShEx.Validator.start :
lex === "a" ? "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" :
new RdfJs.Lexer().tokenize(lex + " ") // need " " to parse "chat"@en
.map(token => {
const left =
token.type === "typeIRI" ? "^^" :
token.type === "langcode" ? "@" :
token.type === "type" ? "^^" + resolver.meta.prefixes[token.prefix] :
token.type === "prefixed" ? resolver.meta.prefixes[token.prefix] :
token.type === "blank" ? "_:" :
"";
const right = token.type === "IRI" || token.type === "typeIRI" ?
resolver._resolveAbsoluteIRI(token) :
token.value;
return left + right;
}).join("");
return lex === ShEx.Validator.start ? lex : lex[0] === "<" ? lex.substr(1, lex.length - 2) : lex;
}
// </n3.js-specific>
// caches for textarea parsers
function _makeCache (selection) {
let _dirty = true;
const ret = {
selection: selection,
parsed: null, // a Promise
meta: { prefixes: {}, base: DefaultBase },
dirty: function (newVal) {
const ret = _dirty;
_dirty = newVal;
return ret;
},
get: function () {
return selection.val();
},
set: async function (text, base) {
_dirty = true;
selection.val(text);
this.meta.base = base;
if (base !== DefaultBase) {
this.url = base; // @@crappyHack1 -- parms should differntiate:
// working base: base for URL resolution.
// loaded base: place where you can GET current doc.
// Note that Caches.manifest.set takes a 3rd parm.
}
},
refresh: async function () {
if (!_dirty)
return this.parsed;
this.parsed = await this.parse(selection.val(), this.meta.base);
await this.parsed;
_dirty = false;
return this.parsed;
},
asyncGet: async function (url) {
url = new URL(url, window.location).href
const _cache = this;
let resp
try {
resp = await fetch(url, {headers: {
accept: 'text/shex,text/turtle,*/*;q=0.9, test/html;q=0.8',
cache: 'no-cache'
}})
} catch (e) {
throw Error("unable to fetch <" + url + ">: " + '\n' + e.message);
}
if (!resp.ok)
throw Error("fetch <" + url + "> got error response " + resp.status + ": " + resp.statusText);
const data = await resp.text();
_cache.meta.base = url;
try {
await _cache.set(data, url, undefined, resp.headers.get('content-type'));
} catch (e) {
throw Error("error setting " + this.queryStringParm + " with <" + url + ">: " + '\n' + e.message);
}
$("#loadForm").dialog("close");
toggleControls();
return { url: url, data: data };
},
url: undefined // only set if inputarea caches some web resource.
};
ret.meta.termToLex = function (trm) { return rdflib_termToLex(trm, new IRIResolver(ret.meta)); };
ret.meta.lexToTerm = function (lex) { return rdflib_lexToTerm(lex, new IRIResolver(ret.meta)); };
return ret;
}
function makeSchemaCache (selection) {
const ret = _makeCache(selection);
let graph = null;
ret.language = null;
ret.parse = async function (text, base) {
const isJSON = text.match(/^\s*\{/);
graph = isJSON ? null : tryN3(text);
this.language =
isJSON ? "ShExJ" :
graph ? "ShExR" :
"ShExC";
$("#results .status").text("parsing "+this.language+" schema...").show();
const schema =
isJSON ? ShEx.Util.ShExJtoAS(JSON.parse(text)) :
graph ? parseShExR() :
parseShEx(text, ret.meta, base);
$("#results .status").hide();
markEditMapDirty(); // ShapeMap validity may have changed.
return schema;
function tryN3 (text) {
try {
if (text.match(/^\s*$/))
return null;
const db = parseTurtle (text, ret.meta, DefaultBase); // interpret empty schema as ShExC
if (db.getQuads().length === 0)
return null;
return db;
} catch (e) {
return null;
}
}
function parseShExR () {
const graphParser = ShEx.Validator.construct(
parseShEx(ShExRSchema, {}, base), // !! do something useful with the meta parm (prefixes and base)
ShEx.Util.rdfjsDB(graph),
{}
);
const schemaRoot = graph.getQuads(null, ShEx.Util.RDF.type, "http://www.w3.org/ns/shex#Schema")[0].subject; // !!check
const val = graphParser.validate(schemaRoot, ShEx.Validator.start); // start shape
return ShEx.Util.ShExJtoAS(ShEx.Util.ShExRtoShExJ(ShEx.Util.valuesToSchema(ShEx.Util.valToValues(val))));
}
};
ret.getItems = async function () {
const obj = await this.refresh();
const start = "start" in obj ? [START_SHAPE_LABEL] : [];
const rest = "shapes" in obj ? obj.shapes.map(se => Caches.inputSchema.meta.termToLex(se.id)) : [];
return start.concat(rest);
};
return ret;
}
function makeTurtleCache (selection) {
const ret = _makeCache(selection);
ret.parse = async function (text, base) {
const res = ShEx.Util.rdfjsDB(parseTurtle(text, ret.meta, base));
markEditMapDirty(); // ShapeMap validity may have changed.
return res;
};
ret.getItems = async function () {
const data = await this.refresh();
return data.getQuads().map(t => {
return Caches.inputData.meta.termToLex(t.subject); // !!check
});
};
return ret;
}
function makeManifestCache (selection) {
const ret = _makeCache(selection);
ret.set = async function (textOrObj, url, source) {
$("#inputSchema .manifest li").remove();
$("#inputData .passes li, #inputData .fails li").remove();
if (typeof textOrObj !== "object") {
if (url !== DefaultBase) {
this.url = url; // @@crappyHack1 -- parms should differntiate:
}
try {
// exceptions pass through to caller (asyncGet)
textOrObj = JSON.parse(textOrObj);
} catch (e) {
$("#inputSchema .manifest").append($("<li/>").text(NO_MANIFEST_LOADED));
const throwMe = Error(e + '\n' + textOrObj);
throwMe.action = 'load manifest'
throw throwMe
// @@DELME(2017-12-29)
// transform deprecated examples.js structure
// textOrObj = eval(textOrObj).reduce(function (acc, schema) {
// function x (data, status) {
// return {
// schemaLabel: schema.name,
// schema: schema.schema,
// dataLabel: data.name,
// data: data.data,
// queryMap: data.queryMap,
// outputSchema: data.outputSchema,
// outputShape: data.outputShape,
// staticVars: data.staticVars,
// createRoot: data.createRoot,
// status: status
// };
// }
// return acc.concat(
// schema.passes.map(data => x(data, "conformant")),
// schema.fails.map(data => x(data, "nonconformant"))
// );
// }, []);
}
}
if (!Array.isArray(textOrObj))
textOrObj = [textOrObj];
const demos = textOrObj.reduce((acc, elt) => {
if ("action" in elt) {
// compatibility with test suite structure.
const action = elt.action;
let schemaLabel = action.schema.substr(action.schema.lastIndexOf('/')+1);
let dataLabel = elt["@id"];
let match = null;
const emptyGraph = "-- empty graph --";
if ("comment" in elt) {
if ((match = elt.comment.match(/^(.*?) \/ { (.*?) }$/))) {
schemaLabel = match[1]; dataLabel = match[2] || emptyGraph;
} else if ((match = elt.comment.match(/^(.*?) on { (.*?) }$/))) {
schemaLabel = match[1]; dataLabel = match[2] || emptyGraph;
} else if ((match = elt.comment.match(/^(.*?) as { (.*?) }$/))) {
schemaLabel = match[2]; dataLabel = match[1] || emptyGraph;
}
}
const queryMap = "map" in action ?
null :
ldToTurtle(action.focus, Caches.inputData.meta.termToLex) + "@" + ("shape" in action ? ldToTurtle(action.shape, Caches.inputSchema.meta.termToLex) : START_SHAPE_LABEL);
const queryMapURL = "map" in action ?
action.map :
null;
elt = Object.assign(
{
schemaLabel: schemaLabel,
schemaURL: action.schema || url,
// dataLabel: "comment" in elt ? elt.comment : (queryMap || dataURL),
dataLabel: dataLabel,
dataURL: action.data || DefaultBase
},
(queryMap ? { queryMap: queryMap } : { queryMapURL: queryMapURL }),
{ status: elt["@type"] === "sht:ValidationFailure" ? "nonconformant" : "conformant" }
);
if ("termResolver" in action || "termResolverURL" in action) {
elt.meta = action.termResolver;
elt.metaURL = action.termResolverURL || DefaultBase;
}
}
["schemaURL", "dataURL", "queryMapURL"].forEach(parm => {
if (parm in elt) {
elt[parm] = new URL(elt[parm], new URL(url, DefaultBase).href).href;
} else {
delete elt[parm];
}
});
return acc.concat(elt);
}, []);
await prepareManifest(demos, url);
$("#manifestDrop").show(); // may have been hidden if no manifest loaded.
};
ret.parse = async function (text, base) {
throw Error("should not try to parse manifest cache");
};
ret.getItems = async function () {
throw Error("should not try to get manifest cache items");
};
return ret;
function maybeGET(obj, base, key, accept) { // !!not used
if (obj[key] != null) {
// Take the passed data, guess base if not provided.
if (!(key + "URL" in obj))
obj[key + "URL"] = base;
obj[key] = Promise.resolve(obj[key]);
} else if (key + "URL" in obj) {
// absolutize the URL
obj[key + "URL"] = ret.meta.lexToTerm("<"+obj[key + "URL"]+">");
// Load the remote resource.
obj[key] = new Promise((resolve, reject) => {
$.ajax({
accepts: {
mycustomtype: accept
},
url: ret.meta.lexToTerm("<"+obj[key + "URL"]+">"),
dataType: "text"
}).then(text => {
resolve(text);
}).fail(e => {
results.append($("<pre/>").text(
"Error " + e.status + " " + e.statusText + " on GET " + obj[key + "URL"]
).addClass("error"));
reject(e);
});
});
} else {
// Ignore this parameter.
obj[key] = Promise.resolve(obj[key]);
}
}
}
function makeExtensionCache (selection) {
const ret = _makeCache(selection);
ret.set = async function (code, url, source, mediaType) {
this.url = url; // @@crappyHack1 -- parms should differntiate:
try {
// exceptions pass through to caller (asyncGet)
// const resp = await fetch('http://localhost/checkouts/shexSpec/extensions/Eval/')
// const text = await resp.text();
if (mediaType.startsWith('text/html'))
return this.grepHtmlIndexForPackage(code, url, source)
const extension = Function(`"use strict";
const module = {exports: {}};
${code}
return module.exports;
`)()
const name = extension.name;
const id = "extension_" + name;
// Delete any old li associated with this extension.
const old = $(`.extensionControl[data-url="${extension.url}"]`)
if (old.length) {
results.append($("<div/>").append(
$("<span/>").text(`removing old ${old.attr('data-name')} extension`)
));
old.parent().remove();
}
// Create a new li.
const elt = $("<li/>", { class: "menuItem", title: extension.description }).append(
$("<input/>", {
type: "checkbox",
checked: "checked",
class: "extensionControl",
id: id,
"data-name": name,
"data-url": extension.url
}),
$("<label/>", { for: id }).append(
$("<a/>", {href: extension.url, text: name})
)
);
elt.insertBefore("#load-extension-button");
$("#" + id).data("code", extension);
Caches.extension.url = url; // @@ cheesy hack that only works to remember one extension URL
results.append($("<div/>").append(
$("<span/>").text(`extension ${name} loaded from <${url}>`)
));
} catch (e) {
// $("#inputSchema .extension").append($("<li/>").text(NO_EXTENSION_LOADED));
const throwMe = Error(e + '\n' + code);
throwMe.action = 'load extension'
throw throwMe
}
// $("#extensionDrop").show(); // may have been hidden if no extension loaded.
};
/* Poke around in HTML for a PACKAGE link in
<table class="implementations">
<td property="code:softwareAgent" resource="https://github.com/shexSpec/shex.js">shexjs</td>
<td><a property="shex:package" href="PACKAGE"/>...</td>...
</table>
*/
ret.grepHtmlIndexForPackage = async function (code, url, source) {
const jq = $(code);
const impls = $(jq.find('table.implementations'))
if (impls.length !== 1) {
results.append($("<div/>").append(
$("<span/>").text("unparsable extension index at " + url)
).addClass("error"));
return;
}
const tr = $(impls).find(`tr td[resource="${ShExJsUrl}"]`).parent()
if (tr.length !== 1) {
results.append($("<div/>").append(
$("<span/>").text("no entry for shexjs in index HTML at " + url)
).addClass("error"));
return;
}
const href = tr.find('[property="shex:package"]').attr('href')
if (!href) {
results.append($("<div/>").append(
$("<span/>").text("no package for shexjs in index HTML at " + url)
).addClass("error"));
return;
}
const refd = await fetch(href);
if (!refd.ok) {
results.append($("<div/>").append(
$("<span/>").text(`error fetching implementation: ${refd.status} (${refd.statusText}) for URL <${href}>`)
).addClass("error"));
} else {
code = await refd.text();
await this.set(code, url, source, refd.headers.get('content-type'));
}
};
ret.parse = async function (text, base) {
throw Error("should not try to parse extension cache");
};
ret.getItems = async function () {
throw Error("should not try to get extension cache items");
};
return ret;
}
function ldToTurtle (ld, termToLex) {
return typeof ld === "object" ? lit(ld) : termToLex(ld);
function lit (o) {
let ret = "\""+o["@value"].replace(/["\r\n\t]/g, (c) => {
return {'"': "\\\"", "\r": "\\r", "\n": "\\n", "\t": "\\t"}[c];
}) +"\"";
if ("@type" in o)
ret += "^^<" + o["@type"] + ">";
if ("@language" in o)
ret += "@" + o["@language"];
return ret;
}
}
function makeShapeMapCache (selection) {
const ret = _makeCache(selection);
ret.parse = async function (text) {
removeEditMapPair(null);
$("#textMap").val(text);
copyTextMapToEditMap();
await copyEditMapToFixedMap();
};
// ret.parse = function (text, base) { };
ret.getItems = async function () {
throw Error("should not try to get manifest cache items");
};
return ret;
}
function makeJSONCache(selection) {
const ret = _makeCache(selection);
ret.parse = async function (text) {
return Promise.resolve(JSON.parse(text));
};
return ret;
}
// controls for manifest buttons
async function paintManifest (selector, list, func, listItems, side) {
$(selector).empty();
await Promise.all(list.map(async entry => {
// build button disabled and with leading "..." to indicate that it's being loaded
const button = $("<button/>").text("..." + entry.label.substr(3)).attr("disabled", "disabled");
const li = $("<li/>").append(button);
$(selector).append(li);
if (entry.text === undefined) {
entry.text = await fetchOK(entry.url).catch(responseOrError => {
// leave a message in the schema or data block
return "# " + renderErrorMessage(
responseOrError instanceof Error
? { url: entry.url, status: -1, statusText: responseOrError.message }
: responseOrError,
side);
})
textLoaded();
} else {
textLoaded();
}
function textLoaded () {
li.on("click", async () => {
SharedForTests.promise = func(entry.name, entry, li, listItems, side);
});
listItems[side][sum(entry.text)] = li;
// enable and get rid of the "..." in the label now that it's loaded
button.text(entry.label).removeAttr("disabled");
}
}))
setTextAreaHandlers(listItems);
}
function fetchOK (url) {
return fetch(url).then(responseOrError => {
if (!responseOrError.ok) {
throw responseOrError;
}
return responseOrError.text()
});
}
function renderErrorMessage (response, what) {
const message = "failed to load " + "queryMap" + " from <" + response.url + ">, got: " + response.status + " " + response.statusText;
results.append($("<pre/>").text(message).addClass("error"));
return message;
}
async function clearData () {
// Clear out data textarea.
await Caches.inputData.set("", DefaultBase);
$("#inputData .status").text(" ");
// Clear out every form of ShapeMap.
$("#textMap").val("").removeClass("error");
makeFreshEditMap();
$("#fixedMap").empty();
results.clear();
}
async function clearAll () {
$("#results .status").hide();
await Caches.inputSchema.set("", DefaultBase);
$(".inputShape").val("");
$("#inputSchema .status").text(" ");
$("#inputSchema li.selected").removeClass("selected");
clearData();
$("#inputData .passes, #inputData .fails").hide();
$("#inputData .passes p:first").text("");
$("#inputData .fails p:first").text("");
$("#inputData .passes ul, #inputData .fails ul").empty();
}
async function pickSchema (name, schemaTest, elt, listItems, side) {
if ($(elt).hasClass("selected")) {
await clearAll();
} else {
await Caches.inputSchema.set(schemaTest.text, new URL((schemaTest.url || ""), DefaultBase).href);
Caches.inputSchema.url = undefined; // @@ crappyHack1
$("#inputSchema .status").text(name);
clearData();
const headings = {
"passes": "Passing:",
"fails": "Failing:",
"indeterminant": "Data:"
};
await Promise.all(Object.keys(headings).map(async function (key) {
if (key in schemaTest) {
$("#inputData ." + key + "").show();
$("#inputData ." + key + " p:first").text(headings[key]);
await paintManifest("#inputData ." + key + " ul", schemaTest[key], pickData, listItems, "inputData");
} else {
$("#inputData ." + key + " ul").empty();
}
}));
$("#inputSchema li.selected").removeClass("selected");
$(elt).addClass("selected");
try {
await Caches.inputSchema.refresh();
} catch (e) {
failMessage(e, "parsing schema");
}
}
}
async function pickData (name, dataTest, elt, listItems, side) {
clearData();
if ($(elt).hasClass("selected")) {
$(elt).removeClass("selected");
} else {
// Update data pane.
await Caches.inputData.set(dataTest.text, new URL((dataTest.url || ""), DefaultBase).href);
Caches.inputData.url = undefined; // @@ crappyHack1
$("#inputData .status").text(name);
$("#inputData li.selected").removeClass("selected");
$(elt).addClass("selected");
try {
await Caches.inputData.refresh();
} catch (e) {
failMessage(e, "parsing data");
}
// Update ShapeMap pane.
removeEditMapPair(null);
if (dataTest.entry.queryMap !== undefined) {
await queryMapLoaded(dataTest.entry.queryMap);
} else if (dataTest.entry.queryMapURL !== undefined) {
try {
const resp = await fetchOK(dataTest.entry.queryMapURL)
queryMapLoaded(resp);
} catch (e) {
renderErrorMessage(e, "queryMap");
}
} else {
results.append($("<div/>").text("No queryMap or queryMapURL supplied in manifest").addClass("warning"));
}
async function queryMapLoaded (text) {
dataTest.entry.queryMap = text;
try {
$("#textMap").val(JSON.parse(dataTest.entry.queryMap).map(entry => `<${entry.node}>@<${entry.shape}>`).join(",\n"));
} catch (e) {
$("#textMap").val(dataTest.entry.queryMap);
}
await copyTextMapToEditMap();
Caches.outputSchema.set(dataTest.entry.outputSchema, dataTest.outputSchemaUrl);
$("#outputSchema .status").text(name);
Caches.statics.set(JSON.stringify(dataTest.entry.staticVars, null, " "));
$("#staticVars .status").text(name);
$("#outputShape").val(dataTest.entry.outputShape); // targetSchema.start in Map-test
$("#createRoot").val(dataTest.entry.createRoot); // createRoot in Map-test
// callValidator();
}
}
}
// Control results area content.
const results = (function () {
const resultsElt = document.querySelector("#results div");
const resultsSel = $("#results div");
return {
replace: function (text) {
return resultsSel.text(text);
},
append: function (text) {
return resultsSel.append(text);
},
clear: function () {
resultsSel.removeClass("passes fails error");
$("#results .status").text("").hide();
$("#shapeMap-tabs").removeAttr("title");
return resultsSel.text("");
},
start: function () {
resultsSel.removeClass("passes fails error");
$("#results").addClass("running");
},
finish: function () {
$("#results").removeClass("running");
const height = resultsSel.height();
resultsSel.height(1);
resultsSel.animate({height:height}, 100);
},
text: function () {
return $(resultsElt).text();
}
};
})();
let LastFailTime = 0;
// Validation UI
function disableResultsAndValidate (evt) {
if (new Date().getTime() - LastFailTime < 100) {
results.append(
$("<div/>").addClass("warning").append(
$("<h2/>").text("see shape map errors above"),
$("<button/>").text("validate (ctl-enter)").on("click", disableResultsAndValidate),
" again to continue."
)
);
return; // return if < 100ms since last error.
}
results.clear();
results.start();
SharedForTests.promise = new Promise((resolve, reject) => {
setTimeout(async function () {
const errors = await copyEditMapToTextMap() // will update if #editMap is dirty
if (errors.length === 0)
resolve(await callValidator())
}, 0);
})
}
function hasFocusNode () {
return $(".focus").map((idx, elt) => {
return $(elt).val();
}).get().some(str => {
return str.length > 0;
});
}
let Mapper = null
async function callValidator (done) {
$("#fixedMap .pair").removeClass("passes fails");
$("#results .status").hide();
let currentAction = "parsing input schema";
try {
await Caches.inputSchema.refresh(); // @@ throw away parser stack?
$("#schemaDialect").text(Caches.inputSchema.language);
if (hasFocusNode()) {
currentAction = "parsing input data";
$("#results .status").text("parsing data...").show();
const inputData = await Caches.inputData.refresh(); // need prefixes for ShapeMap
// $("#shapeMap-tabs").tabs("option", "active", 2); // select fixedMap
currentAction = "parsing shape map";
const fixedMap = fixedShapeMapToTerms($("#fixedMap tr").map((idx, tr) => {
return {
node: Caches.inputData.meta.lexToTerm($(tr).find("input.focus").val()),
shape: Caches.inputSchema.meta.lexToTerm($(tr).find("input.inputShape").val())
};
}).get());
currentAction = "creating validator";
$("#results .status").text("creating validator...").show();
// const dataURL = "data:text/json," +
// JSON.stringify(
// ShEx.Util.AStoShExJ(
// ShEx.Util.canonicalize(
// Caches.inputSchema.refresh())));
const alreadLoaded = {
schema: await Caches.inputSchema.refresh(),
url: Caches.inputSchema.url || DefaultBase
};
// shex-node loads IMPORTs and tests the schema for structural faults.
try {
const loaded = await ShExApi.load([alreadLoaded], [], [], []);
let time;
const validator = ShEx.Validator.construct(
loaded.schema,
inputData,
{ results: "api", regexModule: ShEx[$("#regexpEngine").val()] });
$(".extensionControl:checked").each(function () {
$(this).data("code").register(validator, ShEx);
})
Mapper = MapModule.register(validator, ShEx);
currentAction = "validating";
$("#results .status").text("validating...").show();
time = new Date();
const ret = validator.validate(fixedMap, LOG_PROGRESS ? makeConsoleTracker() : null);
time = new Date() - time;
$("#shapeMap-tabs").attr("title", "last validation: " + time + " ms")
// const dated = Object.assign({ _when: new Date().toISOString() }, ret);
$("#results .status").text("rendering results...").show();
await Promise.all(ret.map(renderEntry));
// for debugging values and schema formats:
// try {
// const x = ShExUtil.valToValues(ret);
// // const x = ShExUtil.ShExJtoAS(valuesToSchema(valToValues(ret)));
// res = results.replace(JSON.stringify(x, null, " "));
// const y = ShExUtil.valuesToSchema(x);
// res = results.append(JSON.stringify(y, null, " "));
// } catch (e) {
// console.dir(e);
// }
finishRendering();
return { validationResults: ret }; // for tester or whoever is awaiting this promise
} catch (e) {
$("#results .status").text("validation errors:").show();
failMessage(e, currentAction);
console.error(e); // dump details to console.
return { validationError: e };
}
} else {
const outputLanguage = Caches.inputSchema.language === "ShExJ" ? "ShExC" : "ShExJ";
$("#results .status").
text("parsed "+Caches.inputSchema.language+" schema, generated "+outputLanguage+" ").
append($("<button>(copy to input)</button>").
css("border-radius", ".5em").
on("click", async function () {
await Caches.inputSchema.set($("#results div").text(), DefaultBase);
})).
append(":").
show();
let parsedSchema;
if (Caches.inputSchema.language === "ShExJ") {
const opts = {
simplifyParentheses: false,
base: Caches.inputSchema.meta.base,
prefixes: Caches.inputSchema.meta.prefixes
}
new ShEx.Writer(opts).writeSchema(Caches.inputSchema.parsed, (error, text) => {
if (error) {
$("#results .status").text("unwritable ShExJ schema:\n" + error).show();
// res.addClass("error");
} else {
results.append($("<pre/>").text(text).addClass("passes"));
}
});
} else {
const pre = $("<pre/>");
pre.text(JSON.stringify(ShEx.Util.AStoShExJ(ShEx.Util.canonicalize(Caches.inputSchema.parsed)), null, " ")).addClass("passes");
results.append(pre);
}
results.finish();
return { transformation: {
from: Caches.inputSchema.language,
to: outputLanguage
} }
}
} catch (e) {
failMessage(e, currentAction);
console.error(e); // dump details to console.
return { inputError: e };
}
function makeConsoleTracker () {
function padding (depth) { return (new Array(depth + 1)).join(" "); } // AKA " ".repeat(depth)
function sm (node, shape) {
return `${Caches.inputData.meta.termToLex(node)}@${Caches.inputSchema.meta.termToLex(shape)}`;
}
const logger = {
recurse: x => { console.log(`${padding(logger.depth)}↻ ${sm(x.node, x.shape)}`); return x; },
known: x => { console.log(`${padding(logger.depth)}↵ ${sm(x.node, x.shape)}`); return x; },
enter: (point, label) => { console.log(`${padding(logger.depth)}→ ${sm(point, label)}`); ++logger.depth; },
exit: (point, label, ret) => { --logger.depth; console.log(`${padding(logger.depth)}← ${sm(point, label)}`); },
depth: 0
};
return logger;
}
}
async function renderEntry (entry) {
const fails = entry.status === "nonconformant";
// locate FixedMap entry
const shapeString = entry.shape === ShEx.Validator.start ? START_SHAPE_INDEX_ENTRY : entry.shape;
const fixedMapEntry = $("#fixedMap .pair"+
"[data-node='"+entry.node+"']"+
"[data-shape='"+shapeString+"']");
const klass = (fails ^ fixedMapEntry.find(".shapeMap-joiner").hasClass("nonconformant")) ? "fails" : "passes";
const resultStr = fails ? "✗" : "✓";
let elt = null;
if (!fails) {
if ($("#success").val() === "query" || $("#success").val() === "remainder") {
const proofStore = new RdfJs.Store();
ShEx.Util.getProofGraph(entry.appinfo, proofStore, RdfJs.DataFactory);
entry.graph = proofStore.getQuads();
}
if ($("#success").val() === "remainder") {
const remainder = new RdfJs.Store();
remainder.addQuads((await Caches.inputData.refresh()).getQuads());
entry.graph.forEach(q => remainder.removeQuad(q));
entry.graph = remainder.getQuads();
}
}
if (entry.graph) {
const wr = new RdfJs.Writer(Caches.inputData.meta);
wr.addQuads(entry.graph);
wr.end((error, results) => {
if (error)
throw error;
entry.turtle = ""
+ "# node: " + entry.node + "\n"
+ "# shape: " + entry.shape + "\n"
+ results.trim();
elt = $("<pre/>").text(entry.turtle).addClass(klass);
});
delete entry.graph;
} else {
let renderMe = entry
switch ($("#interface").val()) {
case "human":
elt = $("<div class='human'/>").append(
$("<span/>").text(resultStr),
$("<span/>").text(
`${Caches.inputData.meta.termToLex(entry.node)}@${fails ? "!" : ""}${Caches.inputSchema.meta.termToLex(entry.shape)}`
)).addClass(klass);
if (fails)
elt.append($("<pre>").text(ShEx.Util.errsToSimple(entry.appinfo).join("\n")));
break;
case "minimal":
if (fails)
entry.reason = ShEx.Util.errsToSimple(entry.appinfo).join("\n");
renderMe = Object.keys(entry).reduce((acc, key) => {
if (key !== "appinfo")
acc[key] = entry[key];
return acc
}, {});
// falling through to default covers the appinfo case
default:
elt = $("<pre/>").text(JSON.stringify(renderMe, null, " ")).addClass(klass);
}
}
results.append(elt);
// update the FixedMap
fixedMapEntry.addClass(klass).find("a").text(resultStr);
const nodeLex = fixedMapEntry.find("input.focus").val();
const shapeLex = fixedMapEntry.find("input.inputShape").val();
const anchor = encodeURIComponent(nodeLex) + "@" + encodeURIComponent(shapeLex);
elt.attr("id", anchor);
fixedMapEntry.find("a").attr("href", "#" + anchor);
fixedMapEntry.attr("title", entry.elapsed + " ms")
if (entry.status === "conformant") {
const resultBindings = ShEx.Util.valToExtension(entry.appinfo, MapModule.url);
await Caches.bindings.set(JSON.stringify(resultBindings, null, " "));
} else {
await Caches.bindings.set("{}");
}
}
function finishRendering (done) {
$("#results .status").text("rendering results...").show();
// Add commas to JSON results.
if ($("#interface").val() !== "human")
$("#results div *").each((idx, elt) => {
if (idx === 0)
$(elt).prepend("[");
$(elt).append(idx === $("#results div *").length - 1 ? "]" : ",");
});
$("#results .status").hide();
// for debugging values and schema formats:
// try {
// const x = ShEx.Util.valToValues(ret);
// // const x = ShEx.Util.ShExJtoAS(valuesToSchema(valToValues(ret)));
// res = results.replace(JSON.stringify(x, null, " "));
// const y = ShEx.Util.valuesToSchema(x);
// res = results.append(JSON.stringify(y, null, " "));
// } catch (e) {
// console.dir(e);
// }
results.finish();
}
function failMessage (e, action, text) {
$("#results .status").empty().text("Errors encountered:").show()
const div = $("<div/>").addClass("error");
div.append($("<h3/>").text("error " + action + ":\n"));
div.append($("<pre/>").text(e.message));
if (text)
div.append($("<pre/>").text(text));
results.append(div);
LastFailTime = new Date().getTime();
}
async function materialize () {
SharedForTests.promise = materializeAsync()
}
async function materializeAsync () {
if (Caches.bindings.get().trim().length === 0) {
results.replace("You must validate data against a ShExMap schema to populate mappings bindings.").
removeClass("passes fails").addClass("error");
return null;
}
results.start();
const parsing = "output schema";
try {
const outputSchemaText = Caches.outputSchema.selection.val();
const outputSchemaIsJSON = outputSchemaText.match(/^\s*\{/);
const outputSchema = await Caches.outputSchema.refresh();
// const resultBindings = Object.assign(
// await Caches.statics.refresh(),
// await Caches.bindings.refresh()
// );
function _dup (obj) { return JSON.parse(JSON.stringify(obj)); }
const resultBindings = _dup(await Caches.bindings.refresh());
if (Caches.statics.get().trim().length === 0)
await Caches.statics.set("{ }");
const _t = await Caches.statics.refresh();
if (_t && Object.keys(_t) > 0) {
if (!Array.isArray(resultBindings))
resultBindings = [resultBindings];
resultBindings.unshift(_t);
}
// const trivialMaterializer = Mapper.trivialMaterializer(outputSchema);
const outputShapeMap = fixedShapeMapToTerms([{
node: Caches.inputData.meta.lexToTerm($("#createRoot").val()),
shape: Caches.outputSchema.meta.lexToTerm($("#outputShape").val()) // resolve with Caches.outputSchema
}]);
const binder = Mapper.binder(resultBindings);
await Caches.bindings.set(JSON.stringify(resultBindings, null, " "));
// const outputGraph = trivialMaterializer.materialize(binder, lexToTerm($("#createRoot").val()), outputShape);
// binder = Mapper.binder(resultBindings);
const generatedGraph = new RdfJs.Store();
$("#results div").empty();
$("#results .status").text("materializing data...").show();
outputShapeMap.forEach(pair => {
try {
const materializer = MapModule.materializer.construct(outputSchema, Mapper, {});
const res = materializer.validate(binder, pair.node, pair.shape);
if ("errors" in res) {
renderEntry( {
node: pair.node,
shape: pair.shape,
status: "errors" in res ? "nonconformant" : "conformant",
appinfo: res,
elapsed: -1
})
// $("#results .status").text("validation errors:").show();
// $("#results .status").text("synthesis errors:").show();
// failMessage(e, currentAction);
} else {
// console.log("g:", ShEx.Util.valToTurtle(res));
generatedGraph.addQuads(ShEx.Util.valToN3js(res, RdfJs.DataFactory));
}
} catch (e) {
console.dir(e);
}
});
finishRendering();
$("#results .status").text("materialization results").show();
const writer = new RdfJs.Writer({ prefixes: Caches.outputSchema.parsed._prefixes });
writer.addQuads(generatedGraph.getQuads());
writer.end(function (error, result) {
results.append(
$("<div/>", {class: "passes"}).append(
$("<span/>", {class: "shapeMap"}).append(
"# ",
$("<span/>", {class: "data"}).text($("#createRoot").val()),
$("<span/>", {class: "valStatus"}).text("@"),
$("<span/>", {class: "schema"}).text($("#outputShape").val()),
),
$("<pre/>").text(result)
)
)
// results.append($("<pre/>").text(result));
});
results.finish();
return { materializationResults: generatedGraph };
} catch (e) {
results.replace("error parsing " + parsing + ":\n" + e).
removeClass("passes fails").addClass("error");
// results.finish();
return null;
}
}
function addEmptyEditMapPair (evt) {
addEditMapPairs(null, $(evt.target).parent().parent());
markEditMapDirty();
return false;
}
function addEditMapPairs (pairs, target) {
(pairs || [{node: {type: "empty"}}]).forEach(pair => {
const nodeType = (typeof pair.node !== "object" || "@value" in pair.node)
? "node"
: pair.node.type;
let skip = false;
let node, shape;
switch (nodeType) {
case "empty": node = shape = ""; break;
case "node": node = ldToTurtle(pair.node, Caches.inputData.meta.termToLex); shape = startOrLdToTurtle(pair.shape); break;
case "TriplePattern": node = renderTP(pair.node); shape = startOrLdToTurtle(pair.shape); break;
case "Extension":
failMessage(Error("unsupported extension: <" + pair.node.language + ">"),
"parsing Query Map", pair.node.lexical);
skip = true; // skip this entry.
break;
default:
results.append($("<div/>").append(
$("<span/>").text("unrecognized ShapeMap:"),
$("<pre/>").text(JSON.stringify(pair))
).addClass("error"));
skip = true; // skip this entry.
break;
}
if (!skip) {
const spanElt = $("<tr/>", {class: "pair"});
const focusElt = $("<textarea/>", {
rows: '1',
type: 'text',
class: 'data focus'
}).text(node).on("change", markEditMapDirty);
const joinerElt = $("<span>", {
class: 'shapeMap-joiner'
}).append("@").addClass(pair.status);
joinerElt.append(
$("<input>", {style: "border: none; width: .2em;", readonly: "readonly"}).val(pair.status === "nonconformant" ? "!" : " ").on("click", function (evt) {
const status = $(this).parent().hasClass("nonconformant") ? "conformant" : "nonconformant";
$(this).parent().removeClass("conformant nonconformant");
$(this).parent().addClass(status);
$(this).val(status === "nonconformant" ? "!" : "");
markEditMapDirty();
evt.preventDefault();
})
);
// if (pair.status === "nonconformant") {
// joinerElt.append("!");
// }
const shapeElt = $("<input/>", {
type: 'text',
value: shape,
class: 'schema inputShape'
}).on("change", markEditMapDirty);
const addElt = $("<button/>", {
class: "addPair",
title: "add a node/shape pair"}).text("+");
const removeElt = $("<button/>", {
class: "removePair",
title: "remove this node/shape pair"}).text("-");
addElt.on("click", addEmptyEditMapPair);
removeElt.on("click", removeEditMapPair);
spanElt.append([focusElt, joinerElt, shapeElt, addElt, removeElt].map(elt => {
return $("<td/>").append(elt);
}));
if (target) {
target.after(spanElt);
} else {
$("#editMap").append(spanElt);
}
}
});
if ($("#editMap .removePair").length === 1)
$("#editMap .removePair").css("visibility", "hidden");
else
$("#editMap .removePair").css("visibility", "visible");
$("#editMap .pair").each(idx => {
addContextMenus("#editMap .pair:nth("+idx+") .focus", Caches.inputData);
addContextMenus(".pair:nth("+idx+") .inputShape", Caches.inputSchema);
});
return false;
function renderTP (tp) {
const ret = ["subject", "predicate", "object"].map(k => {
const ld = tp[k];
if (ld === ShEx.ShapeMap.focus)
return "FOCUS";
if (!ld) // ?? ShEx.Uti.any
return "_";
return ldToTurtle(ld, Caches.inputData.meta.termToLex);
});
return "{" + ret.join(" ") + "}";
}
function startOrLdToTurtle (term) {
return term === ShEx.Validator.start ? START_SHAPE_LABEL : ldToTurtle(term, Caches.inputSchema.meta.termToLex);
}
}
function removeEditMapPair (evt) {
markEditMapDirty();
if (evt) {
$(evt.target).parent().parent().remove();
} else {
$("#editMap .pair").remove();
}
if ($("#editMap .removePair").length === 1)
$("#editMap .removePair").css("visibility", "hidden");
return false;
}
function prepareControls () {
$("#menu-button").on("click", toggleControls);
$("#interface").on("change", setInterface);
$("#success").on("change", setInterface);
$("#regexpEngine").on("change", toggleControls);
$("#validate").on("click", disableResultsAndValidate);
$("#clear").on("click", clearAll);
$("#materialize").on("click", materialize);
$("#download-results-button").on("click", downloadResults);
$("#loadForm").dialog({
autoOpen: false,
modal: true,
buttons: {
"GET": function (evt, ui) {
results.clear();
const target = Getables.find(g => g.queryStringParm === $("#loadForm span.whatToLoad").text());
const url = $("#loadInput").val();
const tips = $(".validateTips");
function updateTips (t) {
tips
.text( t )
.addClass( "ui-state-highlight" );
setTimeout(function() {
tips.removeClass( "ui-state-highlight", 1500 );
}, 500 );
}
if (url.length < 5) {
$("#loadInput").addClass("ui-state-error");
updateTips("URL \"" + url + "\" is way too short.");
return;
}
tips.removeClass("ui-state-highlight").text();
SharedForTests.promise = target.cache.asyncGet(url).catch(function (e) {
updateTips(e.message);
});
},
"Cancel": function() {
$("#loadInput").removeClass("ui-state-error");
$("#loadForm").dialog("close");
toggleControls();
}
},
close: function() {
$("#loadInput").removeClass("ui-state-error");
$("#loadForm").dialog("close");
toggleControls();
}
});
Getables.forEach(target => {
const type = target.queryStringParm
$("#load-"+type+"-button").click(evt => {
const prefillURL = target.url ? target.url :
target.cache.meta.base && target.cache.meta.base !== DefaultBase ? target.cache.meta.base :
"";
$("#loadInput").val(prefillURL);
$("#loadForm").attr("class", type).find("span.whatToLoad").text(type);
$("#loadForm").dialog("open");
});
});
$("#about").dialog({
autoOpen: false,
modal: true,
width: "50%",
buttons: {
"Dismiss": dismissModal
},
close: dismissModal
});
$("#about-button").click(evt => {
$("#about").dialog("open");
});
$("#shapeMap-tabs").tabs({
activate: async function (event, ui) {
if (ui.oldPanel.get(0) === $("#editMap-tab").get(0))
await copyEditMapToTextMap();
else if (ui.oldPanel.get(0) === $("#textMap").get(0))
await copyTextMapToEditMap()
}
});
$("#textMap").on("change", evt => {
results.clear();
SharedForTests.promise = copyTextMapToEditMap();
});
Caches.inputData.selection.on("change", dataInputHandler); // input + paste?
// $("#copyEditMapToFixedMap").on("click", copyEditMapToFixedMap); // may add this button to tutorial
function dismissModal (evt) {
// $.unblockUI();
$("#about").dialog("close");
toggleControls();
return true;
}
// Prepare file uploads
$("input.inputfile").each((idx, elt) => {
$(elt).on("change", function (evt) {
const reader = new FileReader();
reader.onload = function(evt) {
if(evt.target.readyState != 2) return;
if(evt.target.error) {
alert("Error while reading file");
return;
}
$($(elt).attr("data-target")).val(evt.target.result);
};
reader.readAsText(evt.target.files[0]);
});
});
}
async function dataInputHandler (evt) {
const active = $('#shapeMap-tabs ul li.ui-tabs-active a').attr('href');
if (active === "#editMap-tab")
return await copyEditMapToTextMap();
else // if (active === "#textMap")
return await copyTextMapToEditMap();
}
async function toggleControls (evt) {
// don't use `return false` 'cause the browser doesn't wait around for a promise before looking at return false to decide the event is handled
if (evt) evt.preventDefault();
const revealing = evt && $("#controls").css("display") !== "flex";
$("#controls").css("display", revealing ? "flex" : "none");
toggleControlsArrow(revealing ? "up" : "down");
if (revealing) {
let target = evt.target;
while (target.tagName !== "BUTTON")
target = target.parentElement;
if ($("#menuForm").css("position") === "absolute") {
$("#controls").
css("top", 0).
css("left", $("#menu-button").css("margin-left"));
} else {
const bottonBBox = target.getBoundingClientRect();
const controlsBBox = $("#menuForm").get(0).getBoundingClientRect();
const left = bottonBBox.right - bottonBBox.width; // - controlsBBox.width;
$("#controls").css("top", bottonBBox.bottom).css("left", left);
}
$("#permalink a").removeAttr("href"); // can't click until ready
const permalink = await getPermalink();
$("#permalink a").attr("href", permalink);
}
}
function toggleControlsArrow (which) {
// jQuery can't find() a prefixed attribute (xlink:href); fall back to DOM:
if (document.getElementById("menu-button") === null)
return;
const down = $(document.getElementById("menu-button").
querySelectorAll('use[*|href="#down-arrow"]'));
const up = $(document.getElementById("menu-button").
querySelectorAll('use[*|href="#up-arrow"]'));
switch (which) {
case "down":
down.show();
up.hide();
break;
case "up":
down.hide();
up.show();
break;
default:
throw Error("toggleControlsArrow expected [up|down], got \"" + which + "\"");
}
}
function setInterface (evt) {
toggleControls();
customizeInterface();
}
function downloadResults (evt) {
const typed = [
{ type: "text/plain", name: "results.txt" },
{ type: "application/json", name: "results.json" }
][$("#interface").val() === "appinfo" ? 1 : 0];
const blob = new Blob([results.text()], {type: typed.type});
$("#download-results-button")
.attr("href", window.URL.createObjectURL(blob))
.attr("download", typed.name);
toggleControls();
console.log(results.text());
}
/**
*
* location.search: e.g. "?schema=asdf&data=qwer&shape-map=ab%5Ecd%5E%5E_ef%5Egh"
*/
const parseQueryString = function(query) {
if (query[0]==='?') query=query.substr(1); // optional leading '?'
const map = {};
query.replace(/([^&,=]+)=?([^&,]*)(?:[&,]+|$)/g, function(match, key, value) {
key=decodeURIComponent(key);value=decodeURIComponent(value);
(map[key] = map[key] || []).push(value);
});
return map;
};
function markEditMapDirty () {
$("#editMap").attr("data-dirty", true);
}
function markEditMapClean () {
$("#editMap").attr("data-dirty", false);
}
/** getShapeMap -- zip a node list and a shape list into a ShapeMap
* use {Caches.inputData,Caches.inputSchema}.meta.{prefix,base} to complete IRIs
* @return array of encountered errors
*/
async function copyEditMapToFixedMap () {
$("#fixedMap tbody").empty(); // empty out the fixed map.
const fixedMapTab = $("#shapeMap-tabs").find('[href="#fixedMap-tab"]');
const restoreText = fixedMapTab.text();
fixedMapTab.text("resolving Fixed Map").addClass("running");
$("#fixedMap .pair").remove(); // clear out existing edit map (make optional?)
const nodeShapePromises = $("#editMap .pair").get().reduce((acc, queryPair) => {
$(queryPair).find(".error").removeClass("error"); // remove previous error markers
const node = $(queryPair).find(".focus").val();
const shape = $(queryPair).find(".inputShape").val();
const status = $(queryPair).find(".shapeMap-joiner").hasClass("nonconformant") ? "nonconformant" : "conformant";
if (!node || !shape)
return acc;
const smparser = ShEx.ShapeMapParser.construct(
Caches.shapeMap.meta.base, Caches.inputSchema.meta, Caches.inputData.meta);
const nodes = [];
try {
const sm = smparser.parse(node + '@' + shape)[0];
const added = typeof sm.node === "string" || "@value" in sm.node
? Promise.resolve({nodes: [node], shape: shape, status: status})
: getQuads(sm.node.subject, sm.node.predicate, sm.node.object)
.then(nodes => Promise.resolve({nodes: nodes, shape: shape, status: status}));
return acc.concat(added);
} catch (e) {
// find which cell was broken
try { smparser.parse(node + '@' + "START"); } catch (e) {
$(queryPair).find(".focus").addClass("error");
}
try { smparser.parse("<>" + '@' + shape); } catch (e) {
$(queryPair).find(".inputShape").addClass("error");
}
failMessage(e, "parsing Edit Map", node + '@' + shape);
nodes = Promise.resolve([]); // skip this entry
return acc;
}
}, []);
const pairs = await Promise.all(nodeShapePromises)
pairs.reduce((acc, pair) => {
pair.nodes.forEach(node => {
const nodeTerm = Caches.inputData.meta.lexToTerm(node + " "); // for langcode lookahead
let shapeTerm = Caches.inputSchema.meta.lexToTerm(pair.shape);
if (shapeTerm === ShEx.Validator.start)
shapeTerm = START_SHAPE_INDEX_ENTRY;
const key = nodeTerm + "|" + shapeTerm;
if (key in acc)
return;
const spanElt = createEntry(node, nodeTerm, pair.shape, shapeTerm, pair.status);
acc[key] = spanElt; // just needs the key so far.
});
return acc;
}, {})
// scroll inputs to right
$("#fixedMap input").each((idx, focusElt) => {
focusElt.scrollLeft = focusElt.scrollWidth;
});
fixedMapTab.text(restoreText).removeClass("running");
return []; // no errors
async function getQuads (s, p, o) {
const get = s === ShEx.ShapeMap.focus ? "subject" : "object";
return (await Caches.inputData.refresh()).getQuads(mine(s), mine(p), mine(o)).map(t => {
return Caches.inputData.meta.termToLex(t[get]);// !!check
});
function mine (term) {
return term === ShEx.ShapeMap.focus || term === ShEx.ShapeMap.wildcard
? null
: term;
}
}
function createEntry (node, nodeTerm, shape, shapeTerm, status) {
const spanElt = $("<tr/>", {class: "pair"
,"data-node": nodeTerm
,"data-shape": shapeTerm
});
const focusElt = $("<input/>", {
type: 'text',
value: node,
class: 'data focus',
disabled: "disabled"
});
const joinerElt = $("<span>", {
class: 'shapeMap-joiner'
}).append("@").addClass(status);
if (status === "nonconformant") {
joinerElt.addClass("negated");
joinerElt.append("!");
}
const shapeElt = $("<input/>", {
type: 'text',
value: shape,
class: 'schema inputShape',
disabled: "disabled"
});
const removeElt = $("<button/>", {
class: "removePair",
title: "remove this node/shape pair"}).text("-");
removeElt.on("click", evt => {
// Remove related result.
let href, result;
if ((href = $(evt.target).closest("tr").find("a").attr("href"))
&& (result = document.getElementById(href.substr(1))))
$(result).remove();
// Remove FixedMap entry.
$(evt.target).closest("tr").remove();
});
spanElt.append([focusElt, joinerElt, shapeElt, removeElt, $("<a/>")].map(elt => {
return $("<td/>").append(elt);
}));
$("#fixedMap").append(spanElt);
return spanElt;
}
}
function lexifyFirstColumn (row) { // !!not used
return Caches.inputData.meta.termToLex(row[0]); // row[0] is the first column.
}
/**
* @return list of errors encountered
*/
async function copyEditMapToTextMap () {
if ($("#editMap").attr("data-dirty") === "true") {
const text = $("#editMap .pair").get().reduce((acc, queryPair) => {
const node = $(queryPair).find(".focus").val();
const shape = $(queryPair).find(".inputShape").val();
if (!node || !shape)
return acc;
const status = $(queryPair).find(".shapeMap-joiner").hasClass("nonconformant") ? "!" : "";
return acc.concat([node+"@"+status+shape]);
}, []).join(",\n");
$("#textMap").empty().val(text);
const ret = await copyEditMapToFixedMap();
markEditMapClean();
return ret;
} else {
return []; // no errors
}
}
/**
* Parse query map to populate #editMap and #fixedMap.
* @returns list of errors. ([] means everything was good.)
*/
async function copyTextMapToEditMap () {
$("#textMap").removeClass("error");
const shapeMap = $("#textMap").val();
results.clear();
try {
await Caches.inputSchema.refresh();
await Caches.inputData.refresh();
const smparser = ShEx.ShapeMapParser.construct(
Caches.shapeMap.meta.base, Caches.inputSchema.meta, Caches.inputData.meta);
const sm = smparser.parse(shapeMap);
removeEditMapPair(null);
addEditMapPairs(sm.length ? sm : null);
const ret = await copyEditMapToFixedMap();
markEditMapClean();
results.clear();
return ret;
} catch (e) {
$("#textMap").addClass("error");
failMessage(e, "parsing Query Map");
makeFreshEditMap()
return [e];
}
}
function makeFreshEditMap () {
removeEditMapPair(null);
addEditMapPairs(null, null);
markEditMapClean();
return [];
}
/** fixedShapeMapToTerms -- map ShapeMap to API terms
* @@TODO: add to ShExValidator so API accepts ShapeMap
*/
function fixedShapeMapToTerms (shapeMap) {
return shapeMap; /*.map(pair => {
return {node: Caches.inputData.meta.lexToTerm(pair.node + " "),
shape: Caches.inputSchema.meta.lexToTerm(pair.shape)};
});*/
}
/**
* Load URL search parameters
*/
async function loadSearchParameters () {
// don't overwrite if we arrived here from going back and forth in history
if (Caches.inputSchema.selection.val() !== "" || Caches.inputData.selection.val() !== "")
return Promise.resolve();
const iface = parseQueryString(location.search);
toggleControlsArrow("down");
$(".manifest li").text("no manifest schemas loaded");
if ("examples" in iface) { // deprecated ?examples= interface
iface.manifestURL = iface.examples;
delete iface.examples;
}
if (!("manifest" in iface) && !("manifestURL" in iface)) {
iface.manifestURL = ["../examples/manifest.json"];
}
if ("output-map" in iface)
parseShapeMap("output-map", function (node, shape) {
// only works for one n/s pair
$("#createNode").val(node);
$("#outputShape").val(shape);
});
// Load all known query parameters. Save load results into array like:
/* [ [ "data", { "skipped": "skipped" } ],
[ "manifest", { "fromUrl": { "url": "http://...", "data": "..." } } ], ] */
const loadedAsArray = await Promise.all(QueryParams.map(async input => {
const label = input.queryStringParm;
const parm = label;
if (parm + "URL" in iface) {
const url = iface[parm + "URL"][0];
if (url.length > 0) { // manifest= loads no manifest
// !!! set anyways in asyncGet?
input.cache.url = url; // all fooURL query parms are caches.
try {
const got = await input.cache.asyncGet(url)
return [label, {fromUrl: got}]
} catch(e) {
if ("fail" in input) {
input.fail(e);
} else {
input.location.val(e.message);
}
results.append($("<pre/>").text(e).addClass("error"));
return [label, { loadFailure: e instanceof Error ? e : Error(e) }];
};
}
} else if (parm in iface) {
const prepend = input.location.prop("tagName") === "TEXTAREA" ?
input.location.val() :
"";
const value = prepend + iface[parm].join("");
const origValue = input.location.val();
try {
if ("cache" in input) {
await input.cache.set(value, location.href);
} else {
input.location.val(prepend + value);
if (input.location.val() === null)
throw Error(`Unable to set value to ${prepend + value}`)
}
return [label, { literal: value }]
} catch (e) {
input.location.val(origValue);
if ("fail" in input) {
input.fail(e);
}
results.append($("<pre/>").text(
"error setting " + label + ":\n" + e + "\n" + value
).addClass("error"));
return [label, { failure: e }]
}
} else if ("deflt" in input) {
input.location.val(input.deflt);
return [label, { deflt: "deflt" }]; // flag that it was a default
}
return [label, { skipped: "skipped" }]
}))
// convert loaded array into Object:
/* { "data": { "skipped": "skipped" },
"manifest": { "fromUrl": { "url": "http://...", "data": "..." } }, } */
const loaded = loadedAsArray.reduce((acc, fromArray) => {
acc[fromArray[0]] = fromArray[1]
return acc
}, {})
// Parse the shape-map using the prefixes and base.
const shapeMapErrors = $("#textMap").val().trim().length > 0
? copyTextMapToEditMap()
: makeFreshEditMap();
customizeInterface();
$("body").keydown(async function (e) { // keydown because we need to preventDefault
const code = e.keyCode || e.charCode; // standards anyone?
if (e.ctrlKey && (code === 10 || code === 13)) { // ctrl-enter
// const at = $(":focus");
const smErrors = await dataInputHandler();
if (smErrors.length === 0)
$("#validate")/*.focus()*/.click();
// at.focus();
return false; // same as e.preventDefault();
} else if (e.ctrlKey && e.key === "\\") {
$("#materialize").click();
return false; // same as e.preventDefault();
} else if (e.ctrlKey && e.key === "[") {
bindingsToTable()
return false; // same as e.preventDefault();
} else if (e.ctrlKey && e.key === "]") {
tableToBindings()
return false; // same as e.preventDefault();
} else {
return true;
}
});
addContextMenus("#focus0", Caches.inputData);
addContextMenus("#inputShape0", Caches.inputSchema);
addContextMenus("#outputShape", Caches.outputSchema);
if ("schemaURL" in iface ||
// some schema is non-empty
("schema" in iface &&
iface.schema.reduce((r, elt) => { return r+elt.length; }, 0))
&& shapeMapErrors.length === 0) {
return callValidator();
}
return loaded;
}
function setTextAreaHandlers (listItems) {
const textAreaCaches = ["inputSchema", "inputData", "shapeMap"]
const timeouts = Object.keys(Caches).reduce((acc, k) => {
acc[k] = undefined;
return acc;
}, {});
Object.keys(Caches).forEach(function (cache) {
Caches[cache].selection.keyup(function (e) { // keyup to capture backspace
const code = e.keyCode || e.charCode;
// if (!(e.ctrlKey)) {
// results.clear();
// }
if (!(e.ctrlKey && (code === 10 || code === 13))) {
later(e.target, cache, Caches[cache]);
}
});
});
function later (target, side, cache) {
cache.dirty(true);
if (timeouts[side])
clearTimeout(timeouts[side]);
timeouts[side] = setTimeout(() => {
timeouts[side] = undefined;
const curSum = sum($(target).val());
if (curSum in listItems[side])
listItems[side][curSum].addClass("selected");
else
$("#"+side+" .selected").removeClass("selected");
delete cache.url;
}, INPUTAREA_TIMEOUT);
}
}
/**
* update location with a current values of some inputs
*/
async function getPermalink () {
let parms = [];
await copyEditMapToTextMap();
parms = parms.concat(QueryParams.reduce((acc, input) => {
let parm = input.queryStringParm;
let val = input.location.val();
if (input.cache && input.cache.url &&
// Specifically avoid loading from DefaultBase?schema=blah
// because that will load the HTML page.
!input.cache.url.startsWith(DefaultBase)) {
parm += "URL";
val = input.cache.url;
}
return val.length > 0 ?
acc.concat(parm + "=" + encodeURIComponent(val)) :
acc;
}, []));
const s = parms.join("&");
return location.origin + location.pathname + "?" + s;
}
function customizeInterface () {
if ($("#interface").val() === "minimal") {
$("#inputSchema .status").html("schema (<span id=\"schemaDialect\">ShEx</span>)").show();
$("#inputData .status").html("data (<span id=\"dataDialect\">Turtle</span>)").show();
$("#actions").parent().children().not("#actions").hide();
$("#title img, #title h1").hide();
$("#menuForm").css("position", "absolute").css(
"left",
$("#inputSchema .status").get(0).getBoundingClientRect().width -
$("#menuForm").get(0).getBoundingClientRect().width
);
$("#controls").css("position", "relative");
} else {
$("#inputSchema .status").html("schema (<span id=\"schemaDialect\">ShEx</span>)").hide();
$("#inputData .status").html("data (<span id=\"dataDialect\">Turtle</span>)").hide();
$("#actions").parent().children().not("#actions").show();
$("#title img, #title h1").show();
$("#menuForm").removeAttr("style");
$("#controls").css("position", "absolute");
}
}
/**
* Prepare drag and drop into text areas
*/
async function prepareDragAndDrop () {
QueryParams.filter(q => {
return "cache" in q;
}).map(q => {
return {
location: q.location,
targets: [{
ext: "", // Will match any file
media: "", // or media type.
target: q.cache
}]
};
}).concat([
{location: $("body"), targets: [
{media: "application/json", target: Caches.manifest},
{ext: ".shex", media: "text/shex", target: Caches.inputSchema},
{ext: ".ttl", media: "text/turtle", target: Caches.inputData},
{ext: ".json", media: "application/json", target: Caches.manifest},
{ext: ".smap", media: "text/plain", target: Caches.shapeMap}]}
]).forEach(desc => {
const droparea = desc.location;
// kudos to http://html5demos.com/dnd-upload
desc.location.
on("drag dragstart dragend dragover dragenter dragleave drop", function (e) {
e.preventDefault();
e.stopPropagation();
}).
on("dragover dragenter", (evt) => {
desc.location.addClass("hover");
}).
on("dragend dragleave drop", (evt) => {
desc.location.removeClass("hover");
}).
on("drop", (evt) => {
evt.preventDefault();
droparea.removeClass("droppable");
$("#results .status").removeClass("error");
results.clear();
let xfer = evt.originalEvent.dataTransfer;
const prefTypes = [
{type: "files"},
{type: "application/json"},
{type: "text/uri-list"},
{type: "text/plain"}
];
const promises = [];
if (prefTypes.find(l => {
if (l.type.indexOf("/") === -1) {
if (l.type in xfer && xfer[l.type].length > 0) {
$("#results .status").text("handling "+xfer[l.type].length+" files...").show();
promises.push(readfiles(xfer[l.type], desc.targets));
return true;
}
} else {
if (xfer.getData(l.type)) {
const val = xfer.getData(l.type);
$("#results .status").text("handling "+l.type+"...").show();
if (l.type === "application/json") {
if (desc.location.get(0) === $("body").get(0)) {
let parsed = JSON.parse(val);
if (!(Array.isArray(parsed))) {
parsed = [parsed];
}
parsed.map(elt => {
const action = "action" in elt ? elt.action: elt;
action.schemaURL = action.schema; delete action.schema;
action.dataURL = action.data; delete action.data;
});
promises.push(Caches.manifest.set(parsed, DefaultBase, "drag and drop"));
} else {
promises.push(inject(desc.targets, DefaultBase, val, l.type));
}
} else if (l.type === "text/uri-list") {
$.ajax({
accepts: {
mycustomtype: 'text/shex,text/turtle,*/*'
},
url: val,
dataType: "text"
}).fail(function (jqXHR, textStatus) {
const error = jqXHR.statusText === "OK" ? textStatus : jqXHR.statusText;
results.append($("<pre/>").text("GET <" + val + "> failed: " + error));
}).done(function (data, status, jqXhr) {
try {
promises.push(inject(desc.targets, val, data, (jqXhr.getResponseHeader("Content-Type") || "unknown-media-type").split(/[ ;,]/)[0]));
$("#loadForm").dialog("close");
toggleControls();
} catch (e) {
results.append($("<pre/>").text("unable to evaluate <" + val + ">: " + (e.stack || e)));
}
});
} else if (l.type === "text/plain") {
promises.push(inject(desc.targets, DefaultBase, val, l.type));
}
$("#results .status").text("").hide();
// desc.targets.text(xfer.getData(l.type));
return true;
async function inject (targets, url, data, mediaType) {
const target =
targets.length === 1 ? targets[0].target :
targets.reduce((ret, elt) => {
return ret ? ret :
mediaType === elt.media ? elt.target :
null;
}, null);
if (target) {
const appendTo = $("#append").is(":checked") ? target.get() : "";
await target.set(appendTo + data, url, 'drag and drop', mediaType);
} else {
results.append("don't know what to do with " + mediaType + "\n");
}
}
}
}
return false;
}) === undefined)
results.append($("<pre/>").text(
"drag and drop not recognized:\n" +
JSON.stringify({
dropEffect: xfer.dropEffect,
effectAllowed: xfer.effectAllowed,
files: xfer.files.length,
items: [].slice.call(xfer.items).map(i => {
return {kind: i.kind, type: i.type};
})
}, null, 2)
));
SharedForTests.promise = Promise.all(promises);
});
});
/*async*/ function readfiles(files, targets) { // returns promise but doesn't use await
const formData = new FormData();
let successes = 0;
const promises = [];
for (let i = 0; i < files.length; i++) {
const file = files[i], name = file.name;
const target = targets.reduce((ret, elt) => {
return ret ? ret :
name.endsWith(elt.ext) ? elt.target :
null;
}, null);
if (target) {
promises.push(new Promise((resolve, reject) => {
formData.append("file", file);
const reader = new FileReader();
reader.onload = (function (target) {
return async function (event) {
const appendTo = $("#append").is(":checked") ? target.get() : "";
await target.set(appendTo + event.target.result, DefaultBase);
++successes;
resolve()
};
})(target);
reader.readAsText(file);
}))
} else {
results.append("don't know what to do with " + name + "\n");
}
}
return Promise.all(promises).then(() => {
$("#results .status").text("loaded "+successes+" files.").show();
})
}
}
async function prepareManifest (demoList, base) {
const listItems = Object.keys(Caches).reduce((acc, k) => {
acc[k] = {};
return acc;
}, {});
const nesting = demoList.reduce(function (acc, elt) {
const key = elt.schemaLabel + "|" + elt.schema;
if (!(key in acc)) {
// first entry with this schema
acc[key] = {
label: elt.schemaLabel,
text: elt.schema,
url: elt.schemaURL || (elt.schema ? base : undefined)
};
} else {
// nth entry with this schema
}
if ("dataLabel" in elt) {
const dataEntry = {
label: elt.dataLabel,
text: elt.data,
url: elt.dataURL || (elt.data ? base : undefined),
outputSchemaUrl: elt.outputSchemaURL || (elt.outputSchema ? base : undefined),
entry: elt
};
const target = elt.status === "nonconformant"
? "fails"
: elt.status === "conformant" ? "passes" : "indeterminant";
if (!(target in acc[key])) {
// first entry with this data
acc[key][target] = [dataEntry];
} else {
// n'th entry with this data
acc[key][target].push(dataEntry);
}
} else {
// this is a schema-only example
}
return acc;
}, {});
const nestingAsList = Object.keys(nesting).map(e => nesting[e]);
await paintManifest("#inputSchema .manifest ul", nestingAsList, pickSchema, listItems, "inputSchema");
}
function addContextMenus (inputSelector, cache) {
// !!! terribly stateful; only one context menu at a time!
const DATA_HANDLE = 'runCallbackThingie'
let terms = null, nodeLex = null, target, scrollLeft, m, addSpace = "";
$(inputSelector).on('contextmenu', rightClickHandler)
$.contextMenu({
trigger: 'none',
selector: inputSelector,
build: function($trigger, e) {
// return callback set by the mouseup handler
return $trigger.data(DATA_HANDLE)();
}
});
async function buildMenuItemsPromise (elt, evt) {
if (elt.hasClass("data")) {
nodeLex = elt.val();
const shapeLex = elt.parent().parent().find(".schema").val()
// Would like to use SMParser but that means users can't fix bad SMs.
/*
const sm = smparser.parse(nodeLex + '@START')[0];
const m = typeof sm.node === "string" || "@value" in sm.node
? null
: tpToM(sm.node);
*/
m = nodeLex.match(RegExp("^"+ParseTriplePattern+"$"));
if (m) {
target = evt.target;
const selStart = target.selectionStart;
scrollLeft = target.scrollLeft;
terms = [0, 1, 2].reduce((acc, ord) => {
if (m[(ord+1)*2-1] !== undefined) {
const at = acc.start + m[(ord+1)*2-1].length;
const len = m[(ord+1)*2] ? m[(ord+1)*2].length : 0;
return {
start: at + len,
tz: acc.tz.concat([[at, len]]),
match: acc.match === null && at + len >= selStart ?
ord :
acc.match
};
} else {
return acc;
}
}, {start: 0, tz: [], match: null });
function norm (tz) {
return tz.map(t => {
return t.startsWith('!')
? "- " + t.substr(1) + " -"
: Caches.inputData.meta.termToLex(t); // !!check
});
}
const queryMapKeywords = ["FOCUS", "_"];
const getTermsFunctions = [
() => { return queryMapKeywords.concat(norm(store.getSubjects())); },
() => { return norm(store.getPredicates()); },
() => { return queryMapKeywords.concat(norm(store.getObjects())); },
];
const store = await Caches.inputData.refresh();
if (terms.match === null)
return false; // prevent contextMenu from whining about an empty list
return listToCTHash(getTermsFunctions[terms.match]())
}
}
terms = nodeLex = null;
try {
return listToCTHash(await cache.getItems())
} catch (e) {
failMessage(e, cache === Caches.inputSchema ? "parsing schema" : "parsing data");
let items = {};
const failContent = "no choices found";
items[failContent] = failContent;
return items
}
// hack to emulate regex parsing product
/*
function tpToM (tp) {
return [nodeLex, '{', lex(tp.subject), " ", lex(tp.predicate), " ", lex(tp.object), "", "}", ""];
function lex (node) {
return node === ShEx.ShapeMap.focus
? "FOCUS"
: node === null
? "_"
: Caches.inputData.meta.termToLex(node);
}
}
*/
}
function rightClickHandler (e) {
e.preventDefault();
const $this = $(this);
$this.off('contextmenu', rightClickHandler);
// when the items are ready,
const p = buildMenuItemsPromise($this, e)
p.then(items => {
// store a callback on the trigger
$this.data(DATA_HANDLE, function () {
return {
callback: menuCallback,
items: items
};
});
const _offset = $this.offset();
$this.contextMenu({
x: _offset.left + 10,
y: _offset.top + 10
})
$this.on('contextmenu', rightClickHandler)
});
}
function menuCallback (key, options) {
markEditMapDirty();
if (options.items[key].ignore) { // ignore the event
} else if (terms) {
const term = terms.tz[terms.match];
let val = nodeLex.substr(0, term[0]) +
key + addSpace +
nodeLex.substr(term[0] + term[1]);
if (terms.match === 2 && !m[9])
val = val + "}";
else if (term[0] + term[1] === nodeLex.length)
val = val + " ";
$(options.selector).val(val);
// target.scrollLeft = scrollLeft + val.length - nodeLex.length;
target.scrollLeft = target.scrollWidth;
} else {
$(options.selector).val(key);
}
}
function listToCTHash (items) {
return items.reduce((acc, item) => {
acc[item] = { name: item }
return acc
}, {})
}
}
function bindingsToTable () {
let d = JSON.parse($("#bindings1 textarea").val())
let div = $("<div/>").css("overflow", "auto").css("border", "thin solid red")
div.css("width", $("#bindings1 textarea").width()+10)
div.css("height", $("#bindings1 textarea").height()+12)
$("#bindings1 textarea").hide()
let thead = $("<thead/>")
let tbody = $("<tbody/>")
let table = $("<table>").append(thead, tbody)
$("#bindings1").append(div.append(table))
let vars = [];
function varsIn (a) {
return a.forEach(elt => {
if (Array.isArray(elt)) {
varsIn(elt)
} else {
let tr = $("<tr/>")
let cols = []
Object.keys(elt).forEach(k => {
if (vars.indexOf(k) === -1)
vars.push(k)
let i = vars.indexOf(k)
cols[i] = elt[k]
})
// tr.append(cols.map(c => $("<td/>").text(c)))
for (let colI = 0; colI < cols.length; ++colI)
tr.append($("<td/>").text(cols[colI] ? Caches.inputData.meta.termToLex(n3ify(cols[colI])) : "").css("background-color", "#f7f7f7"))
tbody.append(tr)
}
})
}
varsIn(Array.isArray(d) ? d : [d])
vars.forEach(v => {
thead.append($("<th/>").css("font-size", "small").text(v.substr(v.lastIndexOf("#")+1, 999)))
})
}
function tableToBindings () {
$("#bindings1 div").remove()
$("#bindings1 textarea").show()
}
prepareControls();
const dndPromise = prepareDragAndDrop(); // async 'cause it calls Cache.X.set("")
const loads = loadSearchParameters();
const ready = Promise.all([ dndPromise, loads ]);
if ('_testCallback' in window) {
SharedForTests.promise = ready.then(ab => ({drop: ab[0], loads: ab[1]}));
window._testCallback(SharedForTests);
}
ready.then(resolves => {
if (!('_testCallback' in window))
console.log('search parameters:', resolves[1]);
// Update UI to say we're done loading everything?
}, e => {
// Drop catch on the floor presuming thrower updated the UI.
});
function n3ify (ldterm) {
if (typeof ldterm !== "object")
return ldterm;
const ret = "\"" + ldterm.value + "\"";
if ("language" in ldterm)
return ret + "@" + ldterm.language;
if ("type" in ldterm)
return ret + "^^" + ldterm.type;
return ret;
}
| shexSpec/shex.js | packages/extension-map/doc/shexmap-simple.js | JavaScript | mit | 82,436 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-analysis: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.9.1 / mathcomp-analysis - 0.3.1</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
mathcomp-analysis
<small>
0.3.1
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-11-05 07:20:37 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-11-05 07:20:37 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 1 Virtual package relying on perl
coq 8.9.1 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.09.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.09.1 Official release 4.09.1
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/math-comp/analysis"
bug-reports: "https://github.com/math-comp/analysis/issues"
dev-repo: "git+https://github.com/math-comp/analysis.git"
license: "CECILL-C"
authors: [
"Reynald Affeldt"
"Cyril Cohen"
"Assia Mahboubi"
"Damien Rouhling"
"Pierre-Yves Strub"
]
build: [
[make "INSTMODE=global" "config"]
[make "-j%{jobs}%"]
]
install: [
[make "install"]
]
depends: [
"coq" {(>= "8.10" & < "8.12~") | (= "dev")}
"coq-mathcomp-field" {(>= "1.11.0" & < "1.12~")}
"coq-mathcomp-finmap" {(>= "1.5.0" & < "1.6~")}
]
synopsis: "An analysis library for mathematical components"
description: """
This repository contains an experimental library for real analysis for
the Coq proof-assistant and using the Mathematical Components library.
It is inspired by the Coquelicot library.
"""
tags: [
"category:Mathematics/Real Calculus and Topology"
"keyword: analysis"
"keyword: topology"
"keyword: real numbers"
"logpath: mathcomp.analysis"
"date:2020-06-11"
]
url {
http: "https://github.com/math-comp/analysis/archive/0.3.1.tar.gz"
checksum: "sha512=f2844551078450858081ece35d213571b56a34351378e4f7d808f9f21028651c227bf9b629be536318e2b8bca66e56027b04a279ad23ea650461efafbb46c74c"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-mathcomp-analysis.0.3.1 coq.8.9.1</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.9.1).
The following dependencies couldn't be met:
- coq-mathcomp-analysis -> coq >= dev
no matching version
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-mathcomp-analysis.0.3.1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.09.1-2.0.6/released/8.9.1/mathcomp-analysis/0.3.1.html | HTML | mit | 7,475 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>msets-extra: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.13.1 / msets-extra - 1.0.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
msets-extra
<small>
1.0.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-02-28 11:08:17 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-02-28 11:08:17 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
conf-gmp 4 Virtual package relying on a GMP lib system installation
coq 8.13.1 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.06.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.06.1 Official 4.06.1 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.3 A library manager for OCaml
zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/thtuerk/MSetsExtra"
dev-repo: "git+https://github.com/thtuerk/MSetsExtra.git"
bug-reports: "https://github.com/thtuerk/MSetsExtra/issues"
authors: ["FireEye Formal Methods Team <[email protected]>" "Thomas Tuerk <[email protected]>"]
license: "LGPL 2.1"
build: [
["./configure.sh"]
[make "-j%{jobs}%"]
]
install: [
[make "install"]
]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/MSetsExtra"]
depends: [
"ocaml"
"coq" {>= "8.4.5" & < "8.5~"}
"coq-mathcomp-ssreflect" {>= "1.6"}
]
tags: [ "keyword:finite sets"
"keyword:fold with abort"
"keyword:extracting efficient code"
"keyword:data structures"
"category:Computer Science/Data Types and Data Structures"
"category:Miscellaneous/Extracted Programs/Data structures"
"date:2016-10-04" ]
synopsis: "Extensions of MSets for Efficient Execution"
description: """
Coq's MSet library provides various, reasonably efficient finite set
implementations. Nevertheless, FireEye was struggling with performance
issues. This library contains extensions to Coq's MSet library that
helped the FireEye Formal Methods team ([email protected]),
solve these performance issues. There are
- Fold With Abort
efficient folding with possibility to start late and stop early
- Interval Sets
a memory efficient representation of sets of numbers
- Unsorted Lists with Duplicates"""
flags: light-uninstall
url {
src: "https://github.com/thtuerk/MSetsExtra/archive/1.0.0.tar.gz"
checksum: "md5=297a95b8ca4157760862e5812e8addd3"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-msets-extra.1.0.0 coq.8.13.1</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.13.1).
The following dependencies couldn't be met:
- coq-msets-extra -> coq < 8.5~ -> ocaml < 4.03.0
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-msets-extra.1.0.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.06.1-2.0.5/released/8.13.1/msets-extra/1.0.0.html | HTML | mit | 7,768 |
var Branch = function (origin, baseRadius, baseSegment, maxSegments, depth, tree) {
this.gid = Math.round(Math.random() * maxSegments);
this.topPoint = origin;
this.radius = baseRadius;
this.maxSegments = maxSegments;
this.lenghtSubbranch = tree.genes.pSubBranch !== 0 ? Math.floor(maxSegments * tree.genes.pSubBranch) : 0;
this.segmentLenght = baseSegment;
this.depth = depth; //current position of the branch in chain
this.tree = tree;
this.segments = 0; //always start in 0
//Directions are represented as a Vector3 where dirx*i+diry*j+dirz*k and
//each dir is the magnitude that can go from 0 to 1 and multiplies the max segment lenght
//Starting direction is UP
this.direction = {
x: 0,
y: 1,
z: 0
};
this.material = new THREE.MeshLambertMaterial({
color: Math.floor(Math.random()*16777215),//tree.genes.color,
side: 2,
shading: THREE.FlatShading
});
};
/**
* Conceptually grows and renders the branch
* @param {THREE.Scene} scene The scene to which the branch belongs
*/
Branch.prototype.grow = function (scene) {
var thisBranch = this;
//calculate new direction, our drawing space is a 200x200x200 cube
var newX = newPos('x');
var newY = newPos('y');
var newZ = newPos('z');
if (newY < 0 || newY > 300 ){
// newZ < -100 || newZ > 100 ||
// newX < -100 || newX > 100) {
randomizeDir();
return true;
} else {
//direction is ok and branch is going to grow
thisBranch.segments += 1;
}
var destination = new THREE.Vector3(newX, newY, newZ);
var lcurve = new THREE.LineCurve3(this.topPoint, destination);
var geometry = new THREE.TubeGeometry(
lcurve, //path
thisBranch.tree.genes.segmentLenght, //segments
thisBranch.radius, //radius
8, //radiusSegments
true //opened, muuuch more efficient but not so nice
);
// modify next segment's radius
thisBranch.radius = thisBranch.radius * thisBranch.tree.genes.radiusDimP;
var tube = new THREE.Mesh(geometry, this.material);
scene.add(tube);
this.topPoint = destination;
randomizeDir();
//Helper functions.
function randomizeDir() {
//we want our dir to be from -1 to
thisBranch.direction.x = (thisBranch.tree.mtwister.random() * 2) - 1;
thisBranch.direction.y = (thisBranch.tree.mtwister.random() * 2) - 1;
thisBranch.direction.z = (thisBranch.tree.mtwister.random() * 2) - 1;
}
function newPos(dimension) {
return thisBranch.topPoint[dimension] + (thisBranch.direction[dimension] * thisBranch.segmentLenght);
}
//calculate segment lenght for new segment
thisBranch.segmentLenght = thisBranch.segmentLenght * thisBranch.tree.genes.segmentLenghtDim;
if (thisBranch.lenghtSubbranch !== 0 && thisBranch.segments % thisBranch.lenghtSubbranch === 0) {
thisBranch.tree.spawnBranch(thisBranch.topPoint, thisBranch.radius, thisBranch.segmentLenght, this.maxSegments, this.depth);
}
//check if we can kill branch
if (thisBranch.radius <= thisBranch.tree.genes.minRadius) {
return false; //kill branch
}
//Kill if we have reached the max number of segments
if (thisBranch.segments > thisBranch.maxSegments) {
return false;
} else {
return true;
}
};
| tupini07/Brownian-Shrubs | js/Branch.js | JavaScript | mit | 3,324 |
/// <reference path="../../config/config.ts" />
/// <reference path="../interfaces/directives/IDirective.ts" />
declare var angular:any;
//Directive responsible for manipulating left (top) menu icons area when available size change
module Directives {
'use strict';
export class LeftMenuAutosize implements Directives.IDirective {
private static Timeout:any;
private static Window:any;
private Scope:any;
private Element:any;
private Promise:any;
private WindowDimensions:any;
private MenuDimensions:any;
//@ngInject
public static DirectiveOptions($timeout:any, $window:any):any {
LeftMenuAutosize.Timeout = $timeout;
LeftMenuAutosize.Window = $window;
return {
restrict: 'A',
scope: {
expandIconSize: '=',
iconSize: '=',
iconCount: '='
},
replace: false,
link: function ($scope:any, $linkElement:any, $linkAttributes:any):void {
var instance:Directives.IDirective = new LeftMenuAutosize();
instance.Link($scope, $linkElement, $linkAttributes);
}
};
}
public Link($scope:any, $linkElement:any, $linkAttributes:any):void {
this.Scope = $scope;
this.Element = $linkElement;
this.SizeChanged();
$scope.$watch('iconCount', this.SizeChanged.bind(this));
angular.element(LeftMenuAutosize.Window).on('resize', this.SizeChanged.bind(this));
this.BindExpandButton();
}
private SizeChanged():void {
LeftMenuAutosize.Timeout.cancel(this.Promise);
this.Promise = LeftMenuAutosize.Timeout(this.SetIconsVisibility.bind(this), 0, false);
}
private MeasureDimensions():void {
this.WindowDimensions = {
width: LeftMenuAutosize.Window.innerWidth,
height: LeftMenuAutosize.Window.innerHeight
};
this.MenuDimensions = {
width: this.Element[0].offsetWidth,
height: this.Element[0].offsetHeight
};
this.MenuDimensions.primaryDimensionSize = Math.max(this.MenuDimensions.width, this.MenuDimensions.height);
this.MenuDimensions.primaryDimension = this.MenuDimensions.height > this.MenuDimensions.width ? 'height' : 'width';
this.MenuDimensions.secondaryDimension = this.MenuDimensions.primaryDimension === 'height' ? 'width' : 'height';
}
private SetIconsVisibility():void {
//Collapse menu
if (this.Element.hasClass('expanded')) {
this.ExpandCollapseMenu(null, true);
}
//Assume that everything can fit
this.Element.removeClass('collapsed');
var elementChildren:any[] = this.Element.children();
angular.forEach(elementChildren, function (item:any, key:number):void {
angular.element(item).removeClass('collapsed');
});
//Measure space
this.MeasureDimensions();
var availableSpace:number = this.MenuDimensions.primaryDimensionSize;
var everythingCanFit:boolean = (this.Scope.iconCount || 0) * this.Scope.iconSize <= availableSpace;
if (!everythingCanFit) {
//Enable collapse-expand of panel
this.Element.addClass('collapsed');
//Hide records that cannot fit
var canFitNumber:number = Math.floor((availableSpace - this.Scope.expandIconSize) / this.Scope.iconSize);
angular.forEach(elementChildren, function (item:any, key:number):void {
if (item.className !== 'menuEntityExpand' && key >= canFitNumber) {
angular.element(item).addClass('collapsed');
}
});
}
}
private BindExpandButton():void {
var toggle:any = this.Element[0].querySelector('.menuEntityExpand');
toggle.onclick = this.ExpandCollapseMenu.bind(this);
toggle.onblur = this.ExpandCollapseMenu.bind(this);
}
private ExpandCollapseMenu(event:any, collapse:boolean):void {
var _this:LeftMenuAutosize = this;
var isExpanded:boolean = this.Element.hasClass('expanded');
var shouldCollapse:boolean = collapse !== null ? collapse : isExpanded;
if (event.type === 'blur') {
shouldCollapse = true;
}
//Toggle
if (shouldCollapse) {
//Collapse
setTimeout(function ():void {
_this.Element.addClass('collapsed');
_this.Element.removeClass('expanded');
_this.Element.css(_this.MenuDimensions.primaryDimension, '');
_this.Element.css(_this.MenuDimensions.secondaryDimension, '');
_this.Element.css('max-' + _this.MenuDimensions.secondaryDimension, '');
}, 200);
} else {
//Calculate required size
var totalCount:number = this.Scope.iconCount + 1;
var primaryDimensionFitCount:number = Math.floor((this.MenuDimensions.primaryDimensionSize - this.Scope.expandIconSize) / this.Scope.iconSize);
var requiredSecondaryDimensionFitCount:number = Math.ceil(totalCount / primaryDimensionFitCount);
var requiredSecondaryDimensionSize:number = Math.min(requiredSecondaryDimensionFitCount * this.Scope.iconSize,
this.WindowDimensions[this.MenuDimensions.secondaryDimension] - this.Scope.iconSize);
var secondaryDimensionRealFitCount:number = Math.floor(requiredSecondaryDimensionSize / this.Scope.iconSize);
var primaryDimensionReconciledFitCount:number = Math.ceil(totalCount / secondaryDimensionRealFitCount);
var primaryDimensionReconciledSize:number = Math.min(primaryDimensionReconciledFitCount * this.Scope.iconSize,
this.WindowDimensions[this.MenuDimensions.primaryDimension] - this.Scope.iconSize);
//Expand
this.Element.removeClass('collapsed');
this.Element.addClass('expanded');
this.Element.css(this.MenuDimensions.primaryDimension, primaryDimensionReconciledSize + 'px');
this.Element.css(this.MenuDimensions.secondaryDimension, requiredSecondaryDimensionSize + 'px');
this.Element.css('max-' + this.MenuDimensions.secondaryDimension, requiredSecondaryDimensionSize + 'px');
}
}
}
}
| tsimeunovic/BerryForms | client/angular/directives/leftMenuAutosize.ts | TypeScript | mit | 6,839 |
.select2-container {
box-sizing: border-box;
display: inline-block;
margin: 0;
position: relative;
vertical-align: middle;
font-size: 13px;
}
.select2-container .select2-selection--single {
box-sizing: border-box;
cursor: pointer;
display: block;
height: 28px;
user-select: none;
-webkit-user-select: none;
}
.select2-container .select2-selection--single .select2-selection__rendered {
display: block;
padding-left: 8px;
padding-right: 20px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.select2-container .select2-selection--single .select2-selection__clear {
position: relative;
}
.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
padding-right: 8px;
padding-left: 20px;
}
.select2-container .select2-selection--multiple {
box-sizing: border-box;
cursor: pointer;
display: block;
min-height: 32px;
padding: 7px;
font-size: 15px;
user-select: none;
-webkit-user-select: none;
}
.select2-container .select2-selection--multiple .select2-selection__rendered {
display: inline-block;
overflow: hidden;
padding-left: 8px;
text-overflow: ellipsis;
white-space: nowrap;
}
.select2-container .select2-search--inline {
float: left;
width: 100%;
}
.select2-container .select2-search--inline .select2-search__field {
box-sizing: border-box;
border: none;
font-size: 100%;
margin-top: 5px;
padding: 0;
}
.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
-webkit-appearance: none;
}
.select2-dropdown {
background-color: white;
border: 1px solid #e3e3e3;
box-sizing: border-box;
display: block;
position: absolute;
left: -100000px;
width: 100%;
z-index: 1051;
}
.select2-results {
display: block;
}
.select2-results__options {
list-style: none;
margin: 0;
padding: 0;
}
.select2-results__option {
padding: 6px;
user-select: none;
-webkit-user-select: none;
}
.select2-results__option[aria-selected] {
cursor: pointer;
}
.select2-container--open .select2-dropdown {
left: 0;
}
.select2-container--open .select2-dropdown--above {
border-bottom: none;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.select2-container--open .select2-dropdown--below {
border-top: none;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.select2-search--dropdown {
display: block;
padding: 4px;
}
.select2-search--dropdown .select2-search__field {
padding: 4px;
width: 100%;
box-sizing: border-box;
}
.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
-webkit-appearance: none;
}
.select2-search--dropdown.select2-search--hide {
display: none;
}
.select2-close-mask {
border: 0;
margin: 0;
padding: 0;
display: block;
position: fixed;
left: 0;
top: 0;
min-height: 100%;
min-width: 100%;
height: auto;
width: auto;
opacity: 0;
z-index: 99;
background-color: #fff;
filter: alpha(opacity=0);
}
.select2-hidden-accessible {
border: 0 !important;
clip: rect(0 0 0 0) !important;
height: 1px !important;
margin: -1px !important;
overflow: hidden !important;
padding: 0 !important;
position: absolute !important;
width: 1px !important;
}
.select2-container--default .select2-selection--single {
background-color: #fff;
width: 96%;
border: 1px solid #d1d1d1;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
color: #444;
line-height: 28px;
}
.select2-container--default .select2-selection--single .select2-selection__clear {
cursor: pointer;
float: right;
font-weight: bold;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
color: #999;
font-style: italic!important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
height: 26px;
position: absolute;
top: 1px;
right: 1px;
width: 20px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
border-color: #888 transparent transparent transparent;
border-style: solid;
border-width: 5px 4px 0 4px;
height: 0;
left: 50%;
margin-left: -4px;
margin-top: -2px;
position: absolute;
top: 50%;
width: 0;
}
.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
float: left;
}
.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
left: 1px;
right: auto;
}
.select2-container--default.select2-container--disabled .select2-selection--single {
background-color: #eee;
cursor: default;
}
.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
display: none;
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
border-color: transparent transparent #888 transparent;
border-width: 0 4px 5px 4px;
}
.select2-container--default .select2-selection--multiple {
background-color: white;
border: 1px solid #ddd;
border-top: none;
border-left: none;
border-right: none;
cursor: text;
}
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
box-sizing: border-box;
list-style: none;
margin: 0;
padding: 0 5px;
width: 100%}
.select2-container--default .select2-selection--multiple .select2-selection__rendered li {
list-style: none;
}
.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
color: #999;
margin-top: 5px;
font-style: italic!important;
float: left;
}
.select2-container--default .select2-selection--multiple .select2-selection__clear {
cursor: pointer;
float: right;
font-weight: bold;
margin-top: 5px;
margin-right: 10px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
background-color: #e4e4e4;
border: 1px solid #ddd;
border-radius: 0px;
font-family: Open Sans!important;
font-weight: normal!important;
cursor: default;
display: block; float: left;
padding: 5px;
text-decoration:none;
margin-right: 5px;
margin-top: 5px;
padding: 0 5px;
font-size: 13px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
color: #999;
cursor: pointer;
display: inline-block;
font-weight: bold;
margin-right: 2px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
color: #333;
}
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline {
float: right;
font-style: italic;
}
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
margin-left: 5px;
margin-right: auto;
}
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
margin-left: 2px;
margin-right: auto;
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
border: solid #bbb 1px;
border-top: none;
border-right: none;
border-left: none;
outline: 0;
}
.select2-container--default.select2-container--disabled .select2-selection--multiple {
background-color: #eee;
cursor: default;
}
.select2-container--default.select2-container--disabled .select2-selection__choice__remove {
display: none;
}
.select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
border: 1px solid #ddd;
}
.select2-container--default .select2-search--inline .select2-search__field {
background: transparent;
border: none;
outline: 0;
box-shadow: none;
-webkit-appearance: textfield;
}
.select2-container--default .select2-results>.select2-results__options {
max-height: 200px;
overflow-y: auto;
}
.select2-container--default .select2-results__option[role=group] {
padding: 0;
}
.select2-container--default .select2-results__option[aria-disabled=true] {
color: #999;
}
.select2-container--default .select2-results__option[aria-selected=true] {
background-color: #ddd;
}
.select2-container--default .select2-results__option .select2-results__option {
padding-left: 1em;
}
.select2-container--default .select2-results__option .select2-results__option .select2-results__group {
padding-left: 0;
}
.select2-container--default .select2-results__option .select2-results__option .select2-results__option {
margin-left: -1em;
padding-left: 2em;
}
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
margin-left: -2em;
padding-left: 3em;
}
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
margin-left: -3em;
padding-left: 4em;
}
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
margin-left: -4em;
padding-left: 5em;
}
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
margin-left: -5em;
padding-left: 6em;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
background-color: #5897fb;
color: white;
}
.select2-container--default .select2-results__group {
cursor: default;
display: block;
padding: 6px;
}
| blekerfeld/donut | library/assets/css/vendors/jquery.select2.css | CSS | mit | 10,713 |
package org.craft.client.render.blocks;
import java.util.*;
import java.util.Map.Entry;
import com.google.common.collect.*;
import org.craft.blocks.*;
import org.craft.blocks.states.*;
import org.craft.client.*;
import org.craft.client.models.*;
import org.craft.client.render.*;
import org.craft.client.render.texture.TextureIcon;
import org.craft.client.render.texture.TextureMap;
import org.craft.maths.*;
import org.craft.utils.*;
import org.craft.world.*;
public class BlockModelRenderer extends AbstractBlockRenderer
{
private HashMap<BlockVariant, HashMap<String, TextureIcon>> icons;
private List<BlockVariant> blockVariants;
private static Quaternion rotationQuaternion;
/**
* Creates a new renderer for given block variants
*/
public BlockModelRenderer(List<BlockVariant> list)
{
this.blockVariants = list;
icons = Maps.newHashMap();
for(BlockVariant v : list)
icons.put(v, new HashMap<String, TextureIcon>());
if(rotationQuaternion == null)
rotationQuaternion = new Quaternion();
}
@Override
public void render(RenderEngine engine, OffsettedOpenGLBuffer buffer, World w, Block b, int x, int y, int z)
{
if(!b.shouldRender())
return;
Chunk chunk = null;
if(w != null)
chunk = w.getChunk(x, y, z);
BlockVariant variant = null;
float lightValue = 1f;
if(chunk == null)
variant = blockVariants.get(0);
else
{
variant = getVariant(w, b, x, y, z);
lightValue = chunk.getLightValue(w, x, y, z);
}
if(variant == null)
variant = blockVariants.get(0);
Model blockModel = variant.getModels().get(w == null ? 0 : w.getRNG().nextInt(variant.getModels().size())); // TODO: random model ?
for(int i = 0; i < blockModel.getElementsCount(); i++ )
{
ModelElement element = blockModel.getElement(i);
if(element.hasRotation())
{
Vector3 axis = Vector3.xAxis;
if(element.getRotationAxis() == null)
;
else if(element.getRotationAxis().equalsIgnoreCase("y"))
axis = Vector3.yAxis;
else if(element.getRotationAxis().equalsIgnoreCase("z"))
axis = Vector3.zAxis;
rotationQuaternion.init(axis, (float) Math.toRadians(element.getRotationAngle()));
}
Set<Entry<String, ModelFace>> entries = element.getFaces().entrySet();
Vector3 startPos = element.getFrom();
Vector3 size = element.getTo().sub(startPos);
for(Entry<String, ModelFace> entry : entries)
{
Vector3 faceStart = Vector3.NULL;
Vector3 faceSize = Vector3.NULL;
TextureIcon icon = getTexture(blockModel, variant, entry.getValue().getTexture());
boolean flip = false;
EnumSide cullface = EnumSide.fromString(entry.getValue().getCullface());
EnumSide side = EnumSide.fromString(entry.getKey());
if(side != null)
{
if(entry.getValue().hideIfSameAdjacent() && w.getBlockNextTo(x, y, z, side) == b)
{
continue;
}
}
if(cullface != EnumSide.UNDEFINED)
{
Block next = Blocks.air;
if(w != null)
next = w.getBlockNextTo(x, y, z, cullface);
if(next.isSideOpaque(w, x, y, z, cullface.opposite()))
{
continue;
}
}
if(entry.getKey().equals("up"))
{
faceStart = Vector3.get(startPos.getX(), startPos.getY() + size.getY(), startPos.getZ());
faceSize = Vector3.get(size.getX(), 0, size.getZ());
flip = true;
}
else if(entry.getKey().equals("down"))
{
faceStart = Vector3.get(startPos.getX(), startPos.getY(), startPos.getZ());
faceSize = Vector3.get(size.getX(), 0, size.getZ());
flip = true;
}
else if(entry.getKey().equals("west"))
{
faceStart = Vector3.get(startPos.getX(), startPos.getY(), startPos.getZ());
faceSize = Vector3.get(0, size.getY(), size.getZ());
}
else if(entry.getKey().equals("east"))
{
faceStart = Vector3.get(startPos.getX() + size.getX(), startPos.getY(), startPos.getZ());
faceSize = Vector3.get(0, size.getY(), size.getZ());
}
else if(entry.getKey().equals("north"))
{
faceStart = Vector3.get(startPos.getX(), startPos.getY(), startPos.getZ());
faceSize = Vector3.get(size.getX(), size.getY(), 0);
}
else if(entry.getKey().equals("south"))
{
faceStart = Vector3.get(startPos.getX(), startPos.getY(), startPos.getZ() + size.getZ());
faceSize = Vector3.get(size.getX(), size.getY(), 0);
}
else
{
continue;
}
renderFace(lightValue, buffer, x, y, z, icon, faceStart, faceSize, flip, entry.getValue().getMinUV(), entry.getValue().getMaxUV(), element.getRotationOrigin(), rotationQuaternion, element.shouldRescale());
faceSize.dispose();
faceStart.dispose();
}
size.dispose();
}
}
/**
* Returns most revelant variant depending on block states values at (x,y,z)
*/
private BlockVariant getVariant(World w, Block b, int x, int y, int z)
{
BlockVariant variant = null;
variantLoop: for(BlockVariant v : blockVariants)
{
if(v.getBlockStates() == null && variant == null)
{
variant = v;
}
else if(v.getBlockStates().isEmpty() && variant == null)
{
variant = v;
}
else
{
for(int i = 0; i < v.getBlockStates().size(); i++ )
{
BlockState state = v.getBlockStates().get(i);
IBlockStateValue value = v.getBlockStateValues().get(i);
if(w.getBlockState(x, y, z, state) != value)
{
continue variantLoop;
}
}
if(variant != null)
{
if(variant.getBlockStates().size() <= v.getBlockStates().size())
{
variant = v;
}
else if(variant.getBlockStates().size() > v.getBlockStates().size())
continue variantLoop;
}
else
{
variant = v;
}
}
}
return variant;
}
/**
* Gets TextureIcon from texture variable found in json model file
*/
private TextureIcon getTexture(Model blockModel, BlockVariant variant, String texture)
{
if(texture == null)
return null;
if(!icons.get(variant).containsKey(texture))
{
if(texture.startsWith("#"))
{
TextureIcon icon = getTexture(blockModel, variant, blockModel.getTexturePath(texture.substring(1)));
icons.get(variant).put(texture, icon);
}
else
{
TextureMap blockMap = OurCraft.getOurCraft().getRenderEngine().blocksAndItemsMap;
icons.get(variant).put(texture, blockMap.get(texture + ".png"));
}
}
return icons.get(variant).get(texture);
}
@Override
public boolean shouldRenderInPass(EnumRenderPass currentPass, World w, Block b, int x, int y, int z)
{
BlockVariant variant = getVariant(w, b, x, y, z);
if(variant == null)
return false;
return currentPass == variant.getPass();
}
}
| OurCraft/OurCraft | src/main/java/org/craft/client/render/blocks/BlockModelRenderer.java | Java | mit | 8,599 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mini-compiler: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.13.0 / mini-compiler - 8.7.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
mini-compiler
<small>
8.7.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-12-05 18:22:55 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-05 18:22:55 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
conf-gmp 3 Virtual package relying on a GMP lib system installation
coq 8.13.0 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.09.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.09.1 Official release 4.09.1
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/coq-contribs/mini-compiler"
license: "LGPL 2.1"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/MiniCompiler"]
depends: [
"ocaml"
"coq" {>= "8.7" & < "8.8~"}
]
tags: [ "keyword: compilation" "keyword: correctness" "keyword: arithmetic" "category: Computer Science/Semantics and Compilation/Compilation" "date: 2003" ]
authors: [ "Jean-Christophe Filliâtre" ]
bug-reports: "https://github.com/coq-contribs/mini-compiler/issues"
dev-repo: "git+https://github.com/coq-contribs/mini-compiler.git"
synopsis: "Correctness of a tiny compiler for arithmetic expressions"
description: """
Tutorial correctness proof of a tiny compiler from
simple arithmetic expressions (constants, variables and additions) to
simple assembly-like code (one accumulator, infinitly many registers and
addition)"""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/mini-compiler/archive/v8.7.0.tar.gz"
checksum: "md5=dd4f40c8ef66e6bdb212edec29102e53"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-mini-compiler.8.7.0 coq.8.13.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.13.0).
The following dependencies couldn't be met:
- coq-mini-compiler -> coq < 8.8~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-mini-compiler.8.7.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.09.1-2.0.6/released/8.13.0/mini-compiler/8.7.0.html | HTML | mit | 7,248 |
// Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using System.Windows.Forms;
namespace NodeEditor
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
var engine = new GUILayer.EngineDevice();
GC.KeepAlive(engine);
var catalog = new TypeCatalog(
typeof(ShaderPatcherLayer.Manager),
typeof(ShaderFragmentArchive.Archive),
typeof(NodeEditorCore.ShaderFragmentArchiveModel),
typeof(NodeEditorCore.ModelConversion),
typeof(NodeEditorCore.ShaderFragmentNodeCreator),
typeof(NodeEditorCore.DiagramDocument),
typeof(ExampleForm)
);
using (var container = new CompositionContainer(catalog))
{
container.ComposeExportedValue<ExportProvider>(container);
container.ComposeExportedValue<CompositionContainer>(container);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(container.GetExport<ExampleForm>().Value);
}
engine.Dispose();
}
}
}
| xlgames-inc/XLE | Tools/NodeEditor/Program.cs | C# | mit | 1,542 |
{% extends "base.html" %}
{% block title -%}S'up — Log in{%- endblock %}
{% block content %}
<div class="container signup">
{% if errors or form.errors %}
<span class="form-error"><strong>Errors:</strong></span>
{% if errors %}
{% for error in errors %}
<span class="form-error">{{ error }}</span>
{% endfor %}
{% endif %}
{% for field_name, field_errors in form.errors|dictsort if field_errors %}
{% for error in field_errors %}
<span class="form-error">{{ error }}</span>
{% endfor %}
{% endfor %}
{% endif %}
<form action="{{ request.url }}" method="POST">
{{ form.hidden_tag() }}
<label>{{ form.username(placeholder="Username") }}</label>
<label>{{ form.password(placeholder="Password") }}</label>
<label>{{ form.remember() }}Remember this device</label>
<input type="submit" value="Log in">
</form>
<p><a href="{{ url_for('.forgot') }}">Forgot your password?</a></p>
</div>
{% endblock %}
| dfm/sup | sup/templates/login.html | HTML | mit | 1,086 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>geocoq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / extra-dev</a></li>
<li class="active"><a href="">8.11.dev / geocoq - 2.2.1</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
geocoq
<small>
2.2.1
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2020-07-18 17:11:19 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-07-18 17:11:19 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
conf-m4 1 Virtual package relying on m4
coq 8.11.dev Formal proof management system
num 1.3 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.06.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.06.1 Official 4.06.1 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.8.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Julien Narboux <[email protected]>"
homepage: "http://geocoq.github.io/GeoCoq/"
bug-reports: "https://github.com/GeoCoq/GeoCoq/issues"
authors: ["Gabriel Braun <[email protected]>"
"Pierre Boutry <[email protected]>"
"Charly Gries <[email protected]>"
"Julien Narboux <[email protected]>"]
license: "LGPL 3"
build: [
["./configure.sh"]
[make "-j%{jobs}%"]
]
install: [
[make "install"]
]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/GeoCoq"]
depends: [
"ocaml"
"coq"
{((>= "8.4pl4" & < "8.5~") | (>= "8.5" & < "8.6~") |
(>= "8.6" & < "8.7~"))}
]
tags: [ "keyword:geometry" "keyword:neutral geometry" "keyword:euclidean geometry" "keyword:foundations"
"keyword:Tarski" "keyword:hilbert" "keyword:Pappus" "keyword:desargues" "keyword:parallel postulates"
"category:Mathematics/Geometry/General" "date:2016-12-22"]
synopsis: "A formalization of foundations of geometry in Coq"
flags: light-uninstall
url {
src: "https://github.com/GeoCoq/GeoCoq/archive/v2.2.1.tar.gz"
checksum: "md5=be429fbeba560c84c994d551bb17c894"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-geocoq.2.2.1 coq.8.11.dev</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.11.dev).
The following dependencies couldn't be met:
- coq-geocoq -> coq < 8.5~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-geocoq.2.2.1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.06.1-2.0.5/extra-dev/8.11.dev/geocoq/2.2.1.html | HTML | mit | 7,282 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-template: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.7.1 / metacoq-template - 1.0~beta2+8.11</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
metacoq-template
<small>
1.0~beta2+8.11
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-01-22 02:24:22 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-22 02:24:22 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 1 Virtual package relying on perl
coq 8.7.1 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.05.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.05.0 Official 4.05.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://metacoq.github.io/metacoq"
dev-repo: "git+https://github.com/MetaCoq/metacoq.git#coq-8.11"
bug-reports: "https://github.com/MetaCoq/metacoq/issues"
authors: ["Abhishek Anand <[email protected]>"
"Simon Boulier <[email protected]>"
"Cyril Cohen <[email protected]>"
"Yannick Forster <[email protected]>"
"Fabian Kunze <[email protected]>"
"Gregory Malecha <[email protected]>"
"Matthieu Sozeau <[email protected]>"
"Nicolas Tabareau <[email protected]>"
"Théo Winterhalter <[email protected]>"
]
license: "MIT"
build: [
["sh" "./configure.sh"]
[make "-j%{jobs}%" "template-coq"]
]
install: [
[make "-C" "template-coq" "install"]
]
depends: [
"ocaml" {>= "4.07.1"}
"coq" {>= "8.11" & < "8.12~"}
"coq-equations" { >= "1.2.3" }
]
synopsis: "A quoting and unquoting library for Coq in Coq"
description: """
MetaCoq is a meta-programming framework for Coq.
Template Coq is a quoting library for Coq. It takes Coq terms and
constructs a representation of their syntax tree as a Coq inductive data
type. The representation is based on the kernel's term representation.
In addition to a complete reification and denotation of CIC terms,
Template Coq includes:
- Reification of the environment structures, for constant and inductive declarations.
- Denotation of terms and global declarations
- A monad for manipulating global declarations, calling the type
checker, and inserting them in the global environment, in the style of
MetaCoq/MTac.
"""
# url {
# src: "https://github.com/MetaCoq/metacoq/archive/v2.1-beta3.tar.gz"
# checksum: "md5=e81b8ecabef788a10337a39b095d54f3"
# }
url {
src: "https://github.com/MetaCoq/metacoq/archive/v1.0-beta2-8.11.tar.gz"
checksum: "sha256=35d4a30bb19e6710fc03d178a2c8a17bc964bfbfd9236d1c59a0e77a30c425df"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-metacoq-template.1.0~beta2+8.11 coq.8.7.1</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.7.1).
The following dependencies couldn't be met:
- coq-metacoq-template -> ocaml >= 4.07.1
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-metacoq-template.1.0~beta2+8.11</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.1/released/8.7.1/metacoq-template/1.0~beta2+8.11.html | HTML | mit | 8,229 |
<html><body>
<h4>Windows 10 x64 (19041.388)</h4><br>
<h2>_DBGKD_MANIPULATE_STATE32</h2>
<font face="arial"> +0x000 ApiNumber : Uint4B<br>
+0x004 ProcessorLevel : Uint2B<br>
+0x006 Processor : Uint2B<br>
+0x008 ReturnStatus : Int4B<br>
+0x00c u : <a href="./<anonymous-tag>.html"><anonymous-tag></a><br>
</font></body></html> | epikcraw/ggool | public/Windows 10 x64 (19041.388)/_DBGKD_MANIPULATE_STATE32.html | HTML | mit | 381 |
# encoding: utf-8
module Eij
class Translator
def initialize(key)
@src = File.dirname(__FILE__) + "/func.sh"
@func = File.dirname(__FILE__) + "/../../data/kanjidicks.txt"
@col = %x{bash -lic 'echo $COLUMNS'}
@msg = key
@res = Hash.new { |h,k| h[k] = Hash.new(&h.default_proc) }
ch_reset
end
def ch_reset
@ch = 'a'
end
def exit_msg(res)
"Results: #{res}. Search query too vague!\n"
end
def jap
@msg = %x{bash -lic 'source #{@src}; jj #{@msg}'}
format_jp
end
def to_eng
@msg = %x{bash -lic 'source #{@src}; je #{@msg}'}
format_jp
end
def to_jap
if @msg.contains_cjk?
jap
else
@msg = %x{bash -lic "source #{@src}; ej #{@msg}"}
format_jp
end
end
def grab_item(key)
ch_reset
if @res[key].size > 1
@msg = @res[key].map do |x|
"#{x[0]}#{x[1]}"
end
@msg = @msg.join
else
@msg = @res[key][1]
end
end
def grab_char(ch)
@msg = @msg[ch.to_i-1].strip + "\n"
end
def grab_split(i)
@msg = @msg.split(' ')[i.to_i-1].strip + "\n"
end
def grab_inner_item(key, i)
ch_reset
@msg = @res[key][i.to_i].strip + "\n"
end
def out
@msg = %x{source #{@src}; fmt_msg "#{@msg}"}
print @msg.strip + "\n"
end
def format_jp
@msg = @msg.gsub(":@;", "\n")
@msg.strip!
@msg = @msg.gsub(" \n", "")
divs = @msg.split(/\n/)
prim = divs[1..-1]
prim_list = []
offset = 0
if prim.count > 52
print exit_msg prim.count
exit
end
prim.each_with_index do |str, index|
@ch = 'A' if @ch.ord == 123
chm = "{#{@ch}} "
if !str.include? "-->"
prim_list[index] = "#{chm.colorize(index-offset)}#{str}"
indx = 0
str.split(/\d\./).each do |split|
if split.split.size > 0
indx += 1
@res[@ch][indx] = "#{split}"
end
end
@ch = @ch.ord.next.chr
else
prim_list[index] = "#{str}"
offset += 1
end
end
prim_merge = prim_list.join("\n")
prim_merge += "\n"
@msg.sub!(@msg, prim_merge)
end
def print_num_lines
lst = {}
@msg.split("\n").each_with_index do |str, index|
if index > 0
print "#{(index).to_s.rjust(2).colorize(index)}#{str}\n"
lst[(index).to_s] = str.split(" ")[0]
end
end
print "#: "
begin
@msg = lst[gets.strip]
rescue Exception => e
exit
end
lookup
end
def lookup
@msg = %x{bash -ic 'source #{@src}; dfind #{@msg.strip} #{@func}'}
divs = @msg.split(":;!;")
@msg = divs[0]
@msg = @msg.gsub(":@;", "\n")
@msg.strip!
if @msg.include? "No matches found:"
print exit_msg 0
exit
elsif @msg.include? "Disambiguation required:"
print "Disambiguation required:\n"
print_num_lines
else
@msg += "\n"
lookup_prims divs[1] if divs[1].size > 0
lookup_jukugo divs[2] if divs[2].size > 0
lookup_usedin divs[3] if divs[3].size > 0
end
end
def lookup_prims(div)
prim_list = []
div.split("+").each_with_index do |str, index|
chm = ":#{index+1}:"
prim_list[index] = chm.colorize(index) + str.strip
@res[@ch][index+1] = " " + str.strip + " "
end
prim_merge = prim_list.join(", ")
@msg.sub!(div, "\n{#{@ch}} ".blue + prim_merge)
end
def lookup_jukugo(div)
prim_list = []
@ch = @ch.ord.next.chr
offset = 0
div.split("\n").each_with_index do |str, index|
chm = "{#{@ch}} "
if str[0].to_s.contains_cjk?
prim_list[index] = "#{chm.colorize(index-offset)}#{str}"
@res[@ch][1] = str.strip
@ch = @ch.ord.next.chr
else
prim_list[index] = str
offset += 1
end
end
prim_merge = prim_list.join("\n")
@msg.sub!(div, prim_merge)
end
def lookup_usedin(div)
prim_list = []
offset = 0
strsizetotal = 0
div.split("\n").each_with_index do |str, index|
if @ch[-1] == 'z'
@ch[0,0] = '1'
@ch[-1] = 'a'
end
chm = "{#{@ch}}"
if str == "USED IN:"
prim_list[index] = "\n" + str.strip + "\n"
offset += 1
elsif str.strip.size > 0
if strsizetotal + str.size + @ch.size >= @col.to_i/2
newl = "\n"
strsizetotal = 0
end
prim_list[index] = "#{chm.colorize(index-offset)}#{str.strip}#{newl}"
@res[@ch][1] = str.strip
strsizetotal += str.size
@ch[-1] = @ch[-1].ord.next.chr
end
end
prim_merge = prim_list.join("")
prim_merge.gsub!(", , ", "")
@msg.sub!(div, prim_merge)
end
end
end
| jollywho/eij | lib/eij/translator.rb | Ruby | mit | 5,026 |
using System;
using System.Collections.Generic;
using System.Linq;
using Moq;
using NUnit.Framework;
using Ploeh.AutoFixture;
using RememBeer.Models.Contracts;
using RememBeer.Models.Dtos;
using RememBeer.Models.Factories;
using RememBeer.Services.RankingStrategies;
using RememBeer.Tests.Utils;
namespace RememBeer.Tests.Services.RankingStrategies.DoubleOverallScoreStrategyTests
{
[TestFixture]
public class GetBeerRank_Should : TestClassBase
{
[Test]
public void ThrowArgumentNullException_WhenReviewsArgumentIsNull()
{
// Arrange
var factory = new Mock<IModelFactory>();
var beer = new Mock<IBeer>();
var strategy = new DoubleOverallScoreStrategy(factory.Object);
// Act & Assert
Assert.Throws<ArgumentNullException>(() => strategy.GetBeerRank(null, beer.Object));
}
[Test]
public void ThrowArgumentNullException_WhenBeerArgumentIsNull()
{
// Arrange
var factory = new Mock<IModelFactory>();
var reviews = new Mock<IEnumerable<IBeerReview>>();
var strategy = new DoubleOverallScoreStrategy(factory.Object);
// Act & Assert
Assert.Throws<ArgumentNullException>(() => strategy.GetBeerRank(reviews.Object, null));
}
[Test]
public void ThrowArgumentException_WhenReviewsAreEmpty()
{
// Arrange
var factory = new Mock<IModelFactory>();
var beer = new Mock<IBeer>();
var reviews = new List<IBeerReview>();
var strategy = new DoubleOverallScoreStrategy(factory.Object);
// Act & Assert
Assert.Throws<ArgumentException>(() => strategy.GetBeerRank(reviews, beer.Object));
}
[Test]
public void CallFactoryCreateBeerRankMethod_WithCorrectParamsOnce()
{
// Arrange
var overallScore = this.Fixture.Create<int>();
var tasteScore = this.Fixture.Create<int>();
var smellScore = this.Fixture.Create<int>();
var looksScore = this.Fixture.Create<int>();
var factory = new Mock<IModelFactory>();
var mockedReview = new Mock<IBeerReview>();
mockedReview.Setup(r => r.Overall).Returns(overallScore);
mockedReview.Setup(r => r.Taste).Returns(tasteScore);
mockedReview.Setup(r => r.Smell).Returns(smellScore);
mockedReview.Setup(r => r.Look).Returns(looksScore);
var mockedReview2 = new Mock<IBeerReview>();
mockedReview.Setup(r => r.Overall).Returns(overallScore + this.Fixture.Create<int>());
mockedReview.Setup(r => r.Taste).Returns(tasteScore + this.Fixture.Create<int>());
mockedReview.Setup(r => r.Smell).Returns(smellScore + this.Fixture.Create<int>());
mockedReview.Setup(r => r.Look).Returns(looksScore + this.Fixture.Create<int>());
var beer = new Mock<IBeer>();
var reviews = new List<IBeerReview>()
{
mockedReview.Object,
mockedReview2.Object
};
var expectedAggregateScore = reviews.Sum(beerReview =>
(decimal)(2 * beerReview.Overall
+ beerReview.Look
+ beerReview.Smell
+ beerReview.Taste)
/ 5) / reviews.Count;
var expectedOverall = (decimal)reviews.Sum(r => r.Overall) / reviews.Count;
var expectedTaste = (decimal)reviews.Sum(r => r.Taste) / reviews.Count;
var expectedSmell = (decimal)reviews.Sum(r => r.Smell) / reviews.Count;
var expectedLook = (decimal)reviews.Sum(r => r.Look) / reviews.Count;
var strategy = new DoubleOverallScoreStrategy(factory.Object);
// Act
var result = strategy.GetBeerRank(reviews, beer.Object);
// Assert
factory.Verify(
f => f.CreateBeerRank(expectedOverall,
expectedTaste,
expectedLook,
expectedSmell,
beer.Object,
expectedAggregateScore,
reviews.Count),
Times.Once);
}
[Test]
public void ReturnResultFromFactory()
{
// Arrange
var expectedRank = new Mock<IBeerRank>();
var overallScore = this.Fixture.Create<int>();
var tasteScore = this.Fixture.Create<int>();
var smellScore = this.Fixture.Create<int>();
var looksScore = this.Fixture.Create<int>();
var expectedAggregateScore = (decimal)((overallScore * 2) + tasteScore + smellScore + looksScore) / 5;
var mockedReview = new Mock<IBeerReview>();
mockedReview.Setup(r => r.Overall).Returns(overallScore);
mockedReview.Setup(r => r.Taste).Returns(tasteScore);
mockedReview.Setup(r => r.Smell).Returns(smellScore);
mockedReview.Setup(r => r.Look).Returns(looksScore);
var beer = new Mock<IBeer>();
var reviews = new List<IBeerReview>()
{
mockedReview.Object
};
var factory = new Mock<IModelFactory>();
factory.Setup(
f => f.CreateBeerRank(overallScore,
tasteScore,
looksScore,
smellScore,
beer.Object,
expectedAggregateScore,
1))
.Returns(expectedRank.Object);
var strategy = new DoubleOverallScoreStrategy(factory.Object);
// Act
var result = strategy.GetBeerRank(reviews, beer.Object);
// Assert
Assert.IsNotNull(result);
Assert.AreSame(expectedRank.Object, result);
}
}
}
| J0hnyBG/RememBeerMeMvc | src/RememBeer.Tests/Services/RankingStrategies/DoubleOverallScoreStrategyTests/GetBeerRank_Should.cs | C# | mit | 6,676 |
/**
* @file sdram.c
* @brief SDRAM configuration
*
* @section License
*
* Copyright (C) 2010-2015 Oryx Embedded SARL. All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* @author Oryx Embedded SARL (www.oryx-embedded.com)
* @version 1.6.4
**/
#include "sam3xa.h"
#include "sam3x_ek.h"
#include "sdram.h"
#include "error.h"
#include "debug.h"
/**
* @brief SDRAM initialization
* @param[in] coreClockFrequency Core clock frequency
**/
void sdramInit(uint32_t coreClockFrequency)
{
uint32_t n;
//Enable PIO peripheral clocks
PMC->PMC_PCER0 = (1 << ID_PIOC) | (1 << ID_PIOD);
//Enable SMC peripheral clock
PMC->PMC_PCER0 = (1 << ID_SMC);
//Assign SDRAM pins to Peripheral A function
PIOC->PIO_ABSR &= ~SDRAM_PIOC_MASK;
//Disable the PIO from controlling the corresponding pins
PIOC->PIO_PDR = SDRAM_PIOC_MASK;
//Enable pull-ups
PIOC->PIO_PUER = SDRAM_PIOC_MASK;
//Assign SDRAM pins to Peripheral A function
PIOD->PIO_ABSR &= ~SDRAM_PIOD_MASK;
//Disable the PIO from controlling the corresponding pins
PIOD->PIO_PDR = SDRAM_PIOD_MASK;
//Enable pull-ups
PIOD->PIO_PUER = SDRAM_PIOD_MASK;
//Configure SDRAM enable pin as an output
PIOD->PIO_PER = PIO_PD18;
PIOD->PIO_OER = PIO_PD18;
PIOD->PIO_SODR = PIO_PD18;
//SDRAM features must be set in the Configuration Register
SDRAMC->SDRAMC_CR = SDRAMC_CR_NC_COL9 | //Number of columns (512)
SDRAMC_CR_NR_ROW13 | //Number of rows (8192)
SDRAMC_CR_NB_BANK4 | //Number of banks (4)
SDRAMC_CR_CAS_LATENCY2 | //CAS latency (2 cycles)
SDRAMC_CR_DBW | //Data bus width (16 bits)
SDRAMC_CR_TWR(2) | //Write recovery delay (2 cycles)
SDRAMC_CR_TRC_TRFC(9) | //Row cycle delay (9 cycles)
SDRAMC_CR_TRP(3) | //Row precharge delay (3 cycles)
SDRAMC_CR_TRCD(3) | //Row to column delay (3 cycles)
SDRAMC_CR_TRAS(6) | //Active to precharge delay (6 cycles)
SDRAMC_CR_TXSR(10); //Exit self refresh to active delay (10 cycles)
//For mobile SDRAM, temperature-compensated self refresh (TCSR), drive strength (DS)
//and partial array self refresh (PASR) must be set in the Low Power Register
SDRAMC->SDRAMC_LPR = 0;
//The SDRAM memory type must be set in the Memory Device Register
SDRAMC->SDRAMC_MDR = SDRAMC_MDR_MD_SDRAM;
//A minimum pause of 200 us is provided to precede any signal toggle
sleep(1);
//A NOP command is issued to the SDRAM device. The application must set Mode to 1
//in the Mode Register and perform a write access to any SDRAM address
SDRAMC->SDRAMC_MR = SDRAMC_MR_MODE_NOP;
*((uint16_t *)(SDRAM_BASE)) = 0x00000000;
//An All Banks Precharge command is issued to the SDRAM devices. The application must
//set Mode to 2 in the Mode Register and perform a write access to any SDRAM address
SDRAMC->SDRAMC_MR = SDRAMC_MR_MODE_ALLBANKS_PRECHARGE;
*((uint16_t *)(SDRAM_BASE)) = 0x00000000;
//Eight auto-refresh (CBR) cycles are provided. The application must set the Mode to 4
//in the Mode Register and perform a write access to any SDRAM location eight times
SDRAMC->SDRAMC_MR = SDRAMC_MR_MODE_AUTO_REFRESH;
*((uint16_t *)(SDRAM_BASE)) = 0x00000000;
SDRAMC->SDRAMC_MR = SDRAMC_MR_MODE_AUTO_REFRESH;
*((uint16_t *)(SDRAM_BASE)) = 0x00000000;
SDRAMC->SDRAMC_MR = SDRAMC_MR_MODE_AUTO_REFRESH;
*((uint16_t *)(SDRAM_BASE)) = 0x00000000;
SDRAMC->SDRAMC_MR = SDRAMC_MR_MODE_AUTO_REFRESH;
*((uint16_t *)(SDRAM_BASE)) = 0x00000000;
SDRAMC->SDRAMC_MR = SDRAMC_MR_MODE_AUTO_REFRESH;
*((uint16_t *)(SDRAM_BASE)) = 0x00000000;
SDRAMC->SDRAMC_MR = SDRAMC_MR_MODE_AUTO_REFRESH;
*((uint16_t *)(SDRAM_BASE)) = 0x00000000;
SDRAMC->SDRAMC_MR = SDRAMC_MR_MODE_AUTO_REFRESH;
*((uint16_t *)(SDRAM_BASE)) = 0x00000000;
SDRAMC->SDRAMC_MR = SDRAMC_MR_MODE_AUTO_REFRESH;
*((uint16_t *)(SDRAM_BASE)) = 0x00000000;
//A Mode Register set (MRS) cycle is issued to program the parameters of the SDRAM device,
//in particular CAS latency and burst length. The application must set Mode to 3 in the
//Mode Register and perform a write access to the SDRAM. The write address must be chosen
//so that BA[1:0] are set to 0
SDRAMC->SDRAMC_MR = SDRAMC_MR_MODE_LOAD_MODEREG;
*((uint16_t *)(SDRAM_BASE)) = 0x00000000;
//For mobile SDRAM initialization, an Extended Mode Register set (EMRS) cycle is
//issued to program the SDRAM parameters (TCSR, PASR, DS). The application must
//set Mode to 5 in the Mode Register and perform a write access to the SDRAM. The
//write address must be chosen so that BA[1] or BA[0] are set to 1
SDRAMC->SDRAMC_MR = SDRAMC_MR_MODE_EXT_LOAD_MODEREG;
*((uint16_t *)(SDRAM_BASE) + 0x01000000) = 0x00000000;
//The application must go into Normal Mode, setting Mode to 0 in the Mode Register and
//performing a write access at any location in the SDRAM
SDRAMC->SDRAMC_MR = SDRAMC_MR_MODE_NORMAL;
*((uint16_t *)(SDRAM_BASE)) = 0x00000000;
//Set refresh rate (15.625us)
n = coreClockFrequency / 1000;
n = (n * 15625) / 1000000;
//Write the refresh rate into the count field in the SDRAMC Refresh Timer register
SDRAMC->SDRAMC_TR = SDRAMC_TR_COUNT(n);
}
/**
* @brief SDRAM test routine
* @return Error code
**/
error_t sdramTest(void)
{
uint_t i;
//Point to the beginning of the memory space
uint32_t *address = (uint32_t *) SDRAM_BASE;
//Initialize test pattern generation
uint32_t value = 0x12345678;
//Write SDRAM memory contents
for(i = 0; i < (SDRAM_SIZE / 4); i++)
{
//Write current location
*(address++) = value;
//Test pattern generation
value = value * 0x7AB5 + 0x5E8AC93D;
}
//Point to the beginning of the memory space
address = (uint32_t *) SDRAM_BASE;
//Initialize test pattern generation
value = 0x12345678;
//Read back and check SDRAM memory contents
for(i = 0; i < (SDRAM_SIZE / 4); i++)
{
//Read current location
if(*(address++) != value)
return ERROR_FAILURE;
//Test pattern generation
value = value * 0x7AB5 + 0x5E8AC93D;
}
//Successful test
return NO_ERROR;
}
| miragecentury/M2_SE_RTOS_Project | Project/LPC1549_Keil/CycloneTCP_SSL_Crypto_Open_1_6_4/demo/common/atmel/boards/sam3x_ek/sdram.c | C | mit | 7,070 |
using CreativeMinds.CQS.Commands;
using NForum.Core.Dtos;
using NForum.Datastores;
using NForum.Domain;
using NForum.Infrastructure;
using System;
using System.Security.Principal;
namespace NForum.CQS.Commands.Topics {
public class CreateTopicCommandHandler : CommandWithStatusHandler<CreateTopicCommand> {
protected readonly IForumDatastore forums;
protected readonly ITopicDatastore topics;
protected readonly IPrincipal principal;
public CreateTopicCommandHandler(IForumDatastore forums, ITopicDatastore topics, ITaskDatastore taskDatastore, IPrincipal principal) : base(taskDatastore) {
this.forums = forums;
this.topics = topics;
this.principal = principal;
}
public override void Execute(CreateTopicCommand command) {
// Nothing special to do here, permissions have been checked and parameters validated!
IForumDto forum = this.forums.ReadById(command.ForumId);
if (forum == null) {
// TODO:
throw new ArgumentException("Parent forum not found!");
}
Topic t = new Topic(new Forum(forum), command.Subject, command.Content, command.Type, command.State);
ITopicDto newTopic = this.topics.Create(t);
this.SetTaskStatus(command.TaskId, newTopic.Id, "Topic");
}
}
}
| steentottrup/NForum | src/NForum/CQS/Commands/Topics/CreateTopicCommandHandler.cs | C# | mit | 1,229 |
CREATE OR REPLACE FUNCTION ts.updatechroncontrolage(_chroncontrolid integer, _age double precision DEFAULT NULL::double precision)
RETURNS void
LANGUAGE sql
AS $function$
UPDATE ndb.chroncontrols
SET age = _age
WHERE chroncontrolid = _chroncontrolid
$function$
| NeotomaDB/Neotoma_SQL | function/ts/updatechroncontrolage.sql | SQL | mit | 273 |
<?php
namespace js4php5;
/**
* Blatantly stolen from Yii2 for debug use, as it's much better than var_dump() or print_r() (but not as good as
* the one included in some other frameworks).
*/
class VarDumper
{
private static $_output;
private static $_depth;
private static $_objects;
/**
* Displays a variable.
* This method achieves the similar functionality as var_dump and print_r
* but is more robust when handling complex objects such as Yii controllers.
* @param mixed $var variable to be dumped
* @param integer $depth maximum depth that the dumper should go into the variable. Defaults to 10.
* @param boolean $highlight whether the result should be syntax-highlighted
*/
public static function dump($var, $label = '', $depth = 10, $highlight = true)
{
echo static::dumpAsString($var, $label, $depth, $highlight);
}
/**
* Dumps a variable in terms of a string.
* This method achieves the similar functionality as var_dump and print_r
* but is more robust when handling complex objects such as Yii controllers.
* @param mixed $var variable to be dumped
* @param integer $depth maximum depth that the dumper should go into the variable. Defaults to 10.
* @param boolean $highlight whether the result should be syntax-highlighted
* @return string the string representation of the variable
*/
public static function dumpAsString($var, $label = '', $depth = 10, $highlight = true)
{
self::$_output = '';
self::$_objects = [];
self::$_depth = $depth;
self::dumpInternal($var, 0);
if ($highlight) {
$result = highlight_string("<?php\n" . self::$_output, true);
// self::$_output = preg_replace('/<\\?php<br \\/>/', '', $result, 1);
self::$_output = preg_replace('/<\\?php<br \\/>/', ($label ? $label . ' = ' : ''), $result, 1);
}
return self::$_output;
}
/**
* @param mixed $var variable to be dumped
* @param integer $level depth level
*/
private static function dumpInternal($var, $level)
{
switch (gettype($var)) {
case 'boolean':
self::$_output .= $var ? 'true' : 'false';
break;
case 'integer':
self::$_output .= "$var";
break;
case 'double':
self::$_output .= "$var";
break;
case 'string':
self::$_output .= "'" . addslashes($var) . "'";
break;
case 'resource':
self::$_output .= '{resource}';
break;
case 'NULL':
self::$_output .= "null";
break;
case 'unknown type':
self::$_output .= '{unknown}';
break;
case 'array':
if (self::$_depth <= $level) {
self::$_output .= '[...]';
} elseif (empty($var)) {
self::$_output .= '[]';
} else {
$keys = array_keys($var);
$spaces = str_repeat(' ', $level * 4);
self::$_output .= '[';
foreach ($keys as $key) {
self::$_output .= "\n" . $spaces . ' ';
self::dumpInternal($key, 0);
self::$_output .= ' => ';
self::dumpInternal($var[$key], $level + 1);
}
self::$_output .= "\n" . $spaces . ']';
}
break;
case 'object':
if (($id = array_search($var, self::$_objects, true)) !== false) {
self::$_output .= get_class($var) . '#' . ($id + 1) . '(...)';
} elseif (self::$_depth <= $level) {
self::$_output .= get_class($var) . '(...)';
} else {
$id = array_push(self::$_objects, $var);
$className = get_class($var);
$spaces = str_repeat(' ', $level * 4);
self::$_output .= "$className#$id\n" . $spaces . '(';
foreach ((array) $var as $key => $value) {
$keyDisplay = strtr(trim($key), "\0", ':');
self::$_output .= "\n" . $spaces . " [$keyDisplay] => ";
self::dumpInternal($value, $level + 1);
}
self::$_output .= "\n" . $spaces . ')';
}
break;
}
}
/**
* Exports a variable as a string representation.
*
* The string is a valid PHP expression that can be evaluated by PHP parser
* and the evaluation result will give back the variable value.
*
* This method is similar to `var_export()`. The main difference is that
* it generates more compact string representation using short array syntax.
*
* It also handles objects by using the PHP functions serialize() and unserialize().
*
* PHP 5.4 or above is required to parse the exported value.
*
* @param mixed $var the variable to be exported.
* @return string a string representation of the variable
*/
public static function export($var)
{
self::$_output = '';
self::exportInternal($var, 0);
return self::$_output;
}
/**
* @param mixed $var variable to be exported
* @param integer $level depth level
*/
private static function exportInternal($var, $level)
{
switch (gettype($var)) {
case 'NULL':
self::$_output .= 'null';
break;
case 'array':
if (empty($var)) {
self::$_output .= '[]';
} else {
$keys = array_keys($var);
$outputKeys = ($keys !== range(0, sizeof($var) - 1));
$spaces = str_repeat(' ', $level * 4);
self::$_output .= '[';
foreach ($keys as $key) {
self::$_output .= "\n" . $spaces . ' ';
if ($outputKeys) {
self::exportInternal($key, 0);
self::$_output .= ' => ';
}
self::exportInternal($var[$key], $level + 1);
self::$_output .= ',';
}
self::$_output .= "\n" . $spaces . ']';
}
break;
case 'object':
self::$_output .= 'unserialize(' . var_export(serialize($var), true) . ')';
break;
default:
self::$_output .= var_export($var, true);
}
}
}
| hiltonjanfield/js4php5 | VarDumper.php | PHP | mit | 6,924 |
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import <iWorkImport/GQDBGPlaceholder.h>
#import "GQDNameMappable-Protocol.h"
@class GQDWPLayoutFrame;
// Not exported
@interface GQDBGTitlePlaceholder : GQDBGPlaceholder <GQDNameMappable>
{
GQDWPLayoutFrame *mFrame;
}
+ (const struct StateSpec *)stateForReading;
- (_Bool)isBlank;
- (id)layoutFrame;
- (void)dealloc;
@end
| matthewsot/CocoaSharp | Headers/PrivateFrameworks/iWorkImport/GQDBGTitlePlaceholder.h | C | mit | 475 |
/**
* Logback: the reliable, generic, fast and flexible logging framework.
* Copyright (C) 1999-2015, QOS.ch. All rights reserved.
*
* This program and the accompanying materials are dual-licensed under
* either the terms of the Eclipse Public License v1.0 as published by
* the Eclipse Foundation
*
* or (per the licensee's choosing)
*
* under the terms of the GNU Lesser General Public License version 2.1
* as published by the Free Software Foundation.
*/
package ch.qos.logback.core.pattern.color;
import static ch.qos.logback.core.pattern.color.ANSIConstants.*;
/**
* Encloses a given set of converter output in gray using the appropriate ANSI
* escape codes.
*
* @param <E>
* @author Ceki Gülcü
* @since 1.0.5
*/
public class GrayCompositeConverter<E> extends ForegroundCompositeConverterBase<E> {
@Override
protected String getForegroundColorCode(E event) {
return BOLD + BLACK_FG;
}
}
| cscfa/bartleby | library/logBack/logback-1.1.3/logback-core/src/main/java/ch/qos/logback/core/pattern/color/GrayCompositeConverter.java | Java | mit | 970 |
s3backup
========
A simple folder backup solution to AWS S3.
* Central configuration - Job configuration is downloaded from S3 allowing easy
changes from a central location instead of separate config files on each machine.
* S3 Cache - File metadata is cached initially to avoid hitting S3 for each file.
Author: Brian Gershon
License: MIT
Usage
-----
s3backup.rb job backup_job_s3_key aws_bucket aws_profile
Example:
s3backup.rb job laptop_backup_job.yml my-bucket brian
Description
-----------
`aws_bucket` is a string like `my-s3-bucket`
`aws_profile` is a profile name in `~/.aws/credentials`
See [Setting up AWS Credentials](http://docs.aws.amazon.com/AWSSdkDocsRuby/latest/DeveloperGuide/set-up-creds.html)
`backup_job_s3_key` is the name (s3_key) of a YAML file in aws_bucket.
See below for file format.
Job Configuration (YAML file)
-----------------------------
Here is an example `laptop_backup_job.yml` job file:
```
---
backup_base_path: /Volumes
backup_folder: /Volumes/stuff
backup_folder_excludes:
- /Volumes/stuff/Lib/
- /Volumes/stuff/cache/
```
`backup_folder` is the absolute path of the folder you want to backup, recursively.
`backup_base_path` is the part that is stripped off the beginning to determine the S3 key.
If you don't want to strip anything off, you must include just a `/` (forward slash),
you can't leave it blank.
`backup_folder_excludes` is an array of absolute paths to exclude from the backup_folder.
If you don't have any excludes just use this line: `backup_folder_excludes: []`.
| briangershon/s3backup | README.md | Markdown | mit | 1,547 |
---
title: Argo Contribution
category: technology
tags: [Argo,Kubernetes,Github,PullRequest]
author: JackyWu
comments: true
---
## Contact me

或者用邮件交流 <a href="mailto:[email protected]">[email protected]</a>
## Argo Contribution
Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes.
PR: <https://github.com/argoproj/argo/pulls?utf8=✓&q=+is%3Apr+author%3Ajackywu+> | jackywu/jackywu.github.io | _posts/2019-02-23-argo-contribution.md | Markdown | mit | 503 |
<?php
namespace OroCRM\Bundle\ContactBundle\Tests\Unit\Twig;
use OroCRM\Bundle\ContactBundle\Twig\SocialUrlExtension;
use OroCRM\Bundle\ContactBundle\Model\Social;
class SocialUrlExtensionTest extends \PHPUnit_Framework_TestCase
{
/**
* @var SocialUrlExtension
*/
protected $twigExtension;
/**
* @var \PHPUnit_Framework_MockObject_MockObject
*/
protected $urlFormatter;
protected function setUp()
{
$this->urlFormatter = $this->getMockBuilder('OroCRM\Bundle\ContactBundle\Formatter\SocialUrlFormatter')
->setMethods(array('getSocialUrl'))
->disableOriginalConstructor()
->getMock();
$this->twigExtension = new SocialUrlExtension($this->urlFormatter);
}
protected function tearDown()
{
unset($this->urlFormatter);
unset($this->twigExtension);
}
public function testGetFunctions()
{
$expectedFunctions = array(
'oro_social_url' => 'getSocialUrl',
);
$actualFunctions = array();
/** @var \Twig_SimpleFunction $function */
foreach ($this->twigExtension->getFunctions() as $function) {
$this->assertInstanceOf('\Twig_SimpleFunction', $function);
$callable = $function->getCallable();
$this->assertArrayHasKey(1, $callable);
$actualFunctions[$function->getName()] = $callable[1];
}
$this->assertEquals($expectedFunctions, $actualFunctions);
}
/**
* @param string $expectedUrl
* @param string $socialType
* @param string $username
* @dataProvider socialUrlDataProvider
*/
public function testGetSocialUrl($expectedUrl, $socialType, $username)
{
if ($socialType && $username) {
$this->urlFormatter->expects($this->once())
->method('getSocialUrl')
->with($socialType, $username)
->will(
$this->returnCallback(
function ($socialType, $username) {
return 'http://' . $socialType . '/' . $username;
}
)
);
} else {
$this->urlFormatter->expects($this->never())
->method('getSocialUrl');
}
$this->assertEquals($expectedUrl, $this->twigExtension->getSocialUrl($socialType, $username));
}
/**
* @return array
*/
public function socialUrlDataProvider()
{
return array(
'no type' => array(
'expectedUrl' => '#',
'socialType' => null,
'username' => 'me',
),
'no username' => array(
'expectedUrl' => '#',
'socialType' => Social::TWITTER,
'username' => null,
),
'valid data' => array(
'expectedUrl' => 'http://' . Social::TWITTER . '/me',
'socialType' => Social::TWITTER,
'username' => 'me',
),
);
}
}
| MarkThink/OROCRM | vendor/oro/crm/src/OroCRM/Bundle/ContactBundle/Tests/Unit/Twig/SocialUrlExtensionTest.php | PHP | mit | 3,113 |
**Repel Vermin**
**School** abjuration; **Level** bard 4, cleric 4, druid 4, ranger 3
**Casting Time** 1 standard action
**Components** V, S, DF
**Range** 10 ft.
**Area** 10-ft.-radius emanation centered on you
**Duration** 10 min./level (D)
**Saving Throw** none or [Will](../combat#_will) negates; see text; **[Spell Resistance](../glossary#_spell-resistance)** yes
An invisible barrier holds back vermin. A vermin with HD of less than one-third your level cannot penetrate the barrier.
A vermin with HD of one-third your level or more can penetrate the barrier if it succeeds on a [Will](../combat#_will) save. Even so, crossing the barrier deals the vermin 2d6 points of damage, and pressing against the barrier causes pain, which deters most vermin.
| brunokoga/pathfinder-markdown | prd_markdown/spells/repelVermin.md | Markdown | mit | 766 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-field: 17 m 57 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.9.1 / mathcomp-field - 1.11.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
mathcomp-field
<small>
1.11.0
<span class="label label-success">17 m 57 s 🏆</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-12-28 10:10:01 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-28 10:10:01 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 1 Virtual package relying on perl
coq 8.9.1 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.03.0 The OCaml compiler (virtual package)
ocaml-base-compiler 4.03.0 Official 4.03.0 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Mathematical Components <[email protected]>"
homepage: "https://math-comp.github.io/"
bug-reports: "https://github.com/math-comp/math-comp/issues"
dev-repo: "git+https://github.com/math-comp/math-comp.git"
license: "CECILL-B"
build: [ make "-C" "mathcomp/field" "-j" "%{jobs}%" ]
install: [ make "-C" "mathcomp/field" "install" ]
depends: [ "coq-mathcomp-solvable" { = version } ]
tags: [ "keyword:algebra" "keyword:field" "keyword:small scale reflection" "keyword:mathematical components" "keyword:odd order theorem" "logpath:mathcomp.field" ]
authors: [ "Jeremy Avigad <>" "Andrea Asperti <>" "Stephane Le Roux <>" "Yves Bertot <>" "Laurence Rideau <>" "Enrico Tassi <>" "Ioana Pasca <>" "Georges Gonthier <>" "Sidi Ould Biha <>" "Cyril Cohen <>" "Francois Garillot <>" "Alexey Solovyev <>" "Russell O'Connor <>" "Laurent Théry <>" "Assia Mahboubi <>" ]
synopsis: "Mathematical Components Library on Fields"
description:"""
This library contains definitions and theorems about field extensions,
galois theory, algebraic numbers, cyclotomic polynomials...
"""
url {
src: "https://github.com/math-comp/math-comp/archive/mathcomp-1.11.0.tar.gz"
checksum: "sha256=b16108320f77d15dd19ecc5aad90775b576edfa50c971682a1a439f6d364fef6"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-mathcomp-field.1.11.0 coq.8.9.1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam list; echo; ulimit -Sv 4000000; timeout 4h opam install -y --deps-only coq-mathcomp-field.1.11.0 coq.8.9.1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>20 m 54 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam list; echo; ulimit -Sv 16000000; timeout 8h opam install -y -v coq-mathcomp-field.1.11.0 coq.8.9.1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>17 m 57 s</dd>
</dl>
<h2>Installation size</h2>
<p>Total: 10 M</p>
<ul>
<li>1 M <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/fieldext.vo</code></li>
<li>1 M <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/galois.vo</code></li>
<li>721 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/algebraics_fundamentals.vo</code></li>
<li>562 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/algnum.vo</code></li>
<li>521 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/galois.glob</code></li>
<li>520 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/separable.vo</code></li>
<li>480 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/algC.vo</code></li>
<li>477 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/closed_field.glob</code></li>
<li>464 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/closed_field.vo</code></li>
<li>444 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/falgebra.vo</code></li>
<li>439 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/fieldext.glob</code></li>
<li>391 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/separable.glob</code></li>
<li>374 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/algebraics_fundamentals.glob</code></li>
<li>352 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/finfield.vo</code></li>
<li>333 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/algC.glob</code></li>
<li>308 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/falgebra.glob</code></li>
<li>286 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/algnum.glob</code></li>
<li>226 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/finfield.glob</code></li>
<li>180 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/cyclotomic.vo</code></li>
<li>108 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/cyclotomic.glob</code></li>
<li>69 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/galois.v</code></li>
<li>67 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/fieldext.v</code></li>
<li>54 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/all_field.vo</code></li>
<li>52 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/algebraics_fundamentals.v</code></li>
<li>49 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/algC.v</code></li>
<li>47 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/falgebra.v</code></li>
<li>44 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/separable.v</code></li>
<li>39 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/closed_field.v</code></li>
<li>39 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/algnum.v</code></li>
<li>32 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/finfield.v</code></li>
<li>15 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/cyclotomic.v</code></li>
<li>1 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/all_field.glob</code></li>
<li>1 K <code>../ocaml-base-compiler.4.03.0/lib/coq/user-contrib/mathcomp/field/all_field.v</code></li>
</ul>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq-mathcomp-field.1.11.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.03.0-2.0.5/released/8.9.1/mathcomp-field/1.11.0.html | HTML | mit | 11,424 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-character: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / extra-dev</a></li>
<li class="active"><a href="">dev / mathcomp-character - 1.7.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
mathcomp-character
<small>
1.7.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-12-29 01:31:58 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-12-29 01:31:58 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
conf-findutils 1 Virtual package relying on findutils
conf-gmp 3 Virtual package relying on a GMP lib system installation
coq dev Formal proof management system
dune 2.9.1 Fast, portable, and opinionated build system
ocaml 4.07.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.07.1 Official release 4.07.1
ocaml-config 1 OCaml Switch Configuration
ocaml-secondary-compiler 4.08.1-1 OCaml 4.08.1 Secondary Switch Compiler
ocamlfind 1.9.1 A library manager for OCaml
ocamlfind-secondary 1.9.1 Adds support for ocaml-secondary-compiler to ocamlfind
zarith 1.12 Implements arithmetic and logical operations over arbitrary-precision integers
# opam file:
opam-version: "2.0"
name: "coq-mathcomp-character"
version: "1.7.0"
maintainer: "Mathematical Components <[email protected]>"
synopsis: "The Mathematical Components library"
homepage: "https://math-comp.github.io/math-comp/"
bug-reports: "Mathematical Components <[email protected]>"
dev-repo: "git+https://github.com/math-comp/math-comp.git"
license: "CeCILL-B"
build: [ make "-C" "mathcomp/character" "-j" "%{jobs}%" ]
install: [ make "-C" "mathcomp/character" "install" ]
remove: [ "sh" "-c" "rm -rf '%{lib}%/coq/user-contrib/mathcomp/character'" ]
depends: [
"ocaml"
"coq-mathcomp-field" {= "1.7.0"}
]
tags: [ "keyword:algebra" "keyword:character" "keyword:small scale reflection" "keyword:mathematical components" "keyword:odd order theorem" ]
authors: [ "Jeremy Avigad <>" "Andrea Asperti <>" "Stephane Le Roux <>" "Yves Bertot <>" "Laurence Rideau <>" "Enrico Tassi <>" "Ioana Pasca <>" "Georges Gonthier <>" "Sidi Ould Biha <>" "Cyril Cohen <>" "Francois Garillot <>" "Alexey Solovyev <>" "Russell O'Connor <>" "Laurent Théry <>" "Assia Mahboubi <>" ]
url {
src: "http://github.com/math-comp/math-comp/archive/mathcomp-1.7.0.tar.gz"
checksum: "md5=e1bde60e67844e692f88c5d64a44004e"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-mathcomp-character.1.7.0 coq.dev</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is dev).
The following dependencies couldn't be met:
- coq-mathcomp-character -> coq-mathcomp-field = 1.7.0 -> coq-mathcomp-solvable = 1.7.0 -> coq-mathcomp-algebra = 1.7.0 -> coq-mathcomp-fingroup = 1.7.0 -> coq-mathcomp-ssreflect = 1.7.0 -> coq < 8.10~ -> ocaml < 4.06.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-mathcomp-character.1.7.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.07.1-2.0.6/extra-dev/dev/mathcomp-character/1.7.0.html | HTML | mit | 8,054 |
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>PathHandler | Orange</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/css/main.css">
<script src="../assets/js/modernizr.js"></script>
</head>
<body>
<header>
<div class="tsd-page-toolbar">
<div class="container">
<div class="table-wrap">
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.js" data-base="..">
<div class="field">
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
<input id="tsd-search-field" type="text" />
</div>
<ul class="results">
<li class="state loading">Preparing search index...</li>
<li class="state failure">The search index is not available</li>
</ul>
<a href="../index.html" class="title">Orange</a>
</div>
<div class="table-cell" id="tsd-widgets">
<div id="tsd-filter">
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
<div class="tsd-filter-group">
<div class="tsd-select" id="tsd-filter-visibility">
<span class="tsd-select-label">All</span>
<ul class="tsd-select-list">
<li data-value="public">Public</li>
<li data-value="protected">Public/Protected</li>
<li data-value="private" class="selected">All</li>
</ul>
</div>
<input type="checkbox" id="tsd-filter-inherited" checked />
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
<input type="checkbox" id="tsd-filter-externals" checked />
<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
<input type="checkbox" id="tsd-filter-only-exported" />
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
</div>
</div>
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
</div>
</div>
</div>
</div>
<div class="tsd-page-title">
<div class="container">
<ul class="tsd-breadcrumb">
<li>
<a href="../index.html">Globals</a>
</li>
<li>
<a href="../modules/orange.html">Orange</a>
</li>
<li>
<a href="../modules/orange.routing.html">Routing</a>
</li>
<li>
<a href="orange.routing.pathhandler.html">PathHandler</a>
</li>
</ul>
<h1>Class PathHandler</h1>
</div>
</div>
</header>
<div class="container container-main">
<div class="row">
<div class="col-8 col-content">
<section class="tsd-panel tsd-hierarchy">
<h3>Hierarchy</h3>
<ul class="tsd-hierarchy">
<li>
<span class="target">PathHandler</span>
</li>
</ul>
</section>
<section class="tsd-panel-group tsd-index-group">
<h2>Index</h2>
<section class="tsd-panel tsd-index-panel">
<div class="tsd-index-content">
<section class="tsd-index-section tsd-is-external tsd-is-not-exported">
<h3>Constructors</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-external tsd-is-not-exported"><a href="orange.routing.pathhandler.html#constructor" class="tsd-kind-icon">constructor</a></li>
</ul>
</section>
<section class="tsd-index-section tsd-is-external tsd-is-not-exported">
<h3>Properties</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-external tsd-is-not-exported"><a href="orange.routing.pathhandler.html#handler" class="tsd-kind-icon">handler</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-external tsd-is-not-exported"><a href="orange.routing.pathhandler.html#path" class="tsd-kind-icon">path</a></li>
</ul>
</section>
<section class="tsd-index-section tsd-is-external tsd-is-not-exported">
<h3>Methods</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-external tsd-is-not-exported"><a href="orange.routing.pathhandler.html#trymatch" class="tsd-kind-icon">try<wbr>Match</a></li>
</ul>
</section>
</div>
</section>
</section>
<section class="tsd-panel-group tsd-member-group tsd-is-external tsd-is-not-exported">
<h2>Constructors</h2>
<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-is-external tsd-is-not-exported">
<a name="constructor" class="tsd-anchor"></a>
<h3>constructor</h3>
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-external tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">new <wbr>Path<wbr>Handler<span class="tsd-signature-symbol">(</span>path<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">RegExp</span>, handler<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="orange.routing.pathhandler.html" class="tsd-signature-type">PathHandler</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Infviz/Orange/blob/56b9b45/Orange/Router.ts#L6">Router.ts:6</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>path: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">RegExp</span></h5>
</li>
<li>
<h5>handler: <span class="tsd-signature-type">Function</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <a href="orange.routing.pathhandler.html" class="tsd-signature-type">PathHandler</a></h4>
</li>
</ul>
</section>
</section>
<section class="tsd-panel-group tsd-member-group tsd-is-external tsd-is-not-exported">
<h2>Properties</h2>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external tsd-is-not-exported">
<a name="handler" class="tsd-anchor"></a>
<h3>handler</h3>
<div class="tsd-signature tsd-kind-icon">handler<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Function</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Infviz/Orange/blob/56b9b45/Orange/Router.ts#L6">Router.ts:6</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-external tsd-is-not-exported">
<a name="path" class="tsd-anchor"></a>
<h3>path</h3>
<div class="tsd-signature tsd-kind-icon">path<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">RegExp</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Infviz/Orange/blob/56b9b45/Orange/Router.ts#L5">Router.ts:5</a></li>
</ul>
</aside>
</section>
</section>
<section class="tsd-panel-group tsd-member-group tsd-is-external tsd-is-not-exported">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-external tsd-is-not-exported">
<a name="trymatch" class="tsd-anchor"></a>
<h3>try<wbr>Match</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-external tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">try<wbr>Match<span class="tsd-signature-symbol">(</span>path<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">object</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/Infviz/Orange/blob/56b9b45/Orange/Router.ts#L16">Router.ts:16</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>path: <span class="tsd-signature-type">string</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">object</span></h4>
<ul class="tsd-parameters">
</ul>
</li>
</ul>
</section>
</section>
</div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<nav class="tsd-navigation primary">
<ul>
<li class="globals ">
<a href="../index.html"><em>Globals</em></a>
</li>
<li class="label tsd-is-external">
<span>Externals</span>
</li>
<li class=" tsd-kind-module tsd-is-external">
<a href="../modules/orange.html">Orange</a>
</li>
<li class=" tsd-kind-module tsd-parent-kind-module tsd-is-external">
<a href="../modules/orange.bindings.html">Orange.<wbr>Bindings</a>
</li>
<li class=" tsd-kind-module tsd-parent-kind-module tsd-is-external">
<a href="../modules/orange.controls.html">Orange.<wbr>Controls</a>
</li>
<li class=" tsd-kind-module tsd-parent-kind-module tsd-is-external">
<a href="../modules/orange.modularity.html">Orange.<wbr>Modularity</a>
</li>
<li class="current tsd-kind-module tsd-parent-kind-module tsd-is-external">
<a href="../modules/orange.routing.html">Orange.<wbr>Routing</a>
</li>
</ul>
</nav>
<nav class="tsd-navigation secondary menu-sticky">
<ul class="before-current">
</ul>
<ul class="current">
<li class="current tsd-kind-class tsd-parent-kind-module tsd-is-external tsd-is-not-exported">
<a href="orange.routing.pathhandler.html" class="tsd-kind-icon">Path<wbr>Handler</a>
<ul>
<li class=" tsd-kind-constructor tsd-parent-kind-class tsd-is-external tsd-is-not-exported">
<a href="orange.routing.pathhandler.html#constructor" class="tsd-kind-icon">constructor</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-external tsd-is-not-exported">
<a href="orange.routing.pathhandler.html#handler" class="tsd-kind-icon">handler</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-external tsd-is-not-exported">
<a href="orange.routing.pathhandler.html#path" class="tsd-kind-icon">path</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-external tsd-is-not-exported">
<a href="orange.routing.pathhandler.html#trymatch" class="tsd-kind-icon">try<wbr>Match</a>
</li>
</ul>
</li>
</ul>
<ul class="after-current">
<li class=" tsd-kind-class tsd-parent-kind-module tsd-is-external">
<a href="orange.routing.router.html" class="tsd-kind-icon">Router</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<footer class="with-border-bottom">
<div class="container">
<h2>Legend</h2>
<div class="tsd-legend-group">
<ul class="tsd-legend">
<li class="tsd-kind-module"><span class="tsd-kind-icon">Module</span></li>
<li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
<li class="tsd-kind-index-signature"><span class="tsd-kind-icon">Index signature</span></li>
<li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
<li class="tsd-kind-enum-member"><span class="tsd-kind-icon">Enumeration member</span></li>
<li class="tsd-kind-property tsd-parent-kind-enum"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-enum"><span class="tsd-kind-icon">Method</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
<li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li>
<li class="tsd-kind-constructor tsd-parent-kind-interface"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
<li class="tsd-kind-index-signature tsd-parent-kind-interface"><span class="tsd-kind-icon">Index signature</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li>
<li class="tsd-kind-index-signature tsd-parent-kind-class"><span class="tsd-kind-icon">Index signature</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
<li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private accessor</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li>
<li class="tsd-kind-call-signature tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li>
</ul>
</div>
</div>
</footer>
<div class="container tsd-generator">
<p>Generated using <a href="http://typedoc.io" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
<script>if (location.protocol == 'file:') document.write('<script src="../assets/js/search.js"><' + '/script>');</script>
</body>
</html> | Infviz/Orange | Reference/dist/classes/orange.routing.pathhandler.html | HTML | mit | 16,115 |
'use strict';
var assert = require('assert')
, TestEvents = require('../lib/TestEvents');
var wasCalled = false;
var FN = function (ev) {
wasCalled = true;
};
describe('TestEvents', function () {
beforeEach(function () {
wasCalled = false;
});
describe('#on', function () {
it('Should bind a function for an event', function () {
TestEvents.on(TestEvents.EMITTED_EVENTS, FN);
});
});
describe('#emit', function () {
it('Should call bound function for an event', function () {
TestEvents.emit(TestEvents.EMITTED_EVENTS);
assert.equal(wasCalled, true);
});
});
})
| briangallagher/testDrivenDevelopment | node_modules/fh-health/test/TestEvents.js | JavaScript | mit | 623 |
<?php
/**
* @author rugk
* @copyright Copyright (c) 2015-2016 rugk
* @license MIT
*/
// set end of line
$eol = PHP_EOL;
if (php_sapi_name() != 'cli') {
$eol .= '<br>';
}
//list all functions
$functions = get_extension_funcs('libsodium');
foreach ($functions as $func) {
echo $func . $eol;
}
echo $eol;
| rugk/threema-msgapi-webui | debug/libsodium_functions.php | PHP | mit | 317 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.