Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed
Error code: DatasetGenerationError
Exception: ArrowInvalid
Message: JSON parse error: Missing a closing quotation mark in string. in row 205
Traceback: Traceback (most recent call last):
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/json/json.py", line 145, in _generate_tables
dataset = json.load(f)
File "/usr/local/lib/python3.9/json/__init__.py", line 293, in load
return loads(fp.read(),
File "/usr/local/lib/python3.9/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.9/json/decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 1270)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1995, in _prepare_split_single
for _, table in generator:
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/json/json.py", line 148, in _generate_tables
raise e
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/packaged_modules/json/json.py", line 122, in _generate_tables
pa_table = paj.read_json(
File "pyarrow/_json.pyx", line 308, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 154, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 91, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: JSON parse error: Missing a closing quotation mark in string. in row 205
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1529, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1154, in convert_to_parquet
builder.download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1027, in download_and_prepare
self._download_and_prepare(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1122, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1882, in _prepare_split
for job_id, done, content in self._prepare_split_single(
File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2038, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
text
string | meta
dict |
|---|---|
namespace tensorflow {
namespace ops {
namespace internal {
// NOTE: This namespace has internal TensorFlow details that
// are not part of TensorFlow's public API.
/// @defgroup lookup_ops_internal Lookup Ops Internal
/// @{
} // namespace internal
} // namespace ops
} // namespace tensorflow
#endif // TENSORFLOW_CC_OPS_LOOKUP_OPS_INTERNAL_H_
|
{
"content_hash": "e0ad76a14dd452bfa80def3603603670",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 60,
"avg_line_length": 25.214285714285715,
"alnum_prop": 0.7280453257790368,
"repo_name": "Synopsis/Synopsis-Framework",
"id": "c83c91431eb647fb0682114b53854b399b48361d",
"size": "827",
"binary": false,
"copies": "1",
"ref": "refs/heads/development",
"path": "Synopsis/Synopsis/Tensorflow/includes/tensorflow/cc/ops/lookup_ops_internal.h",
"mode": "33261",
"license": "bsd-3-clause",
"language": [
{
"name": "C",
"bytes": "1161462"
},
{
"name": "C++",
"bytes": "14424720"
},
{
"name": "CMake",
"bytes": "15105"
},
{
"name": "JavaScript",
"bytes": "11088"
},
{
"name": "Metal",
"bytes": "20137"
},
{
"name": "Objective-C",
"bytes": "515396"
},
{
"name": "Objective-C++",
"bytes": "196380"
},
{
"name": "Shell",
"bytes": "9049"
},
{
"name": "Starlark",
"bytes": "410139"
}
]
}
|
function y = inv_pos( x )
%INV_POS Reciprocal of a positive quantity.
% INV_POS(X) returns 1./X if X is positive, and +Inf otherwise.
% X must be real.
%
% For matrices and N-D arrays, the function is applied to each element.
%
% Disciplined convex programming information:
% INV_POS is convex and nonincreasing; therefore, when used in CVX
% specifications, its argument must be concave (or affine).
error( nargchk( 1, 1, nargin ) );
if ~isreal( x ),
error( 'Input must be real.' );
end
y = 1.0 ./ max( x, 0 );
% Copyright 2012 Michael C. Grant and Stephen P. Boyd.
% See the file COPYING.txt for full copyright information.
% The command 'cvx_where' will show where this file is located.
|
{
"content_hash": "48e80c373b37900e6ccbff21570c5b0f",
"timestamp": "",
"source": "github",
"line_count": 21,
"max_line_length": 74,
"avg_line_length": 34.666666666666664,
"alnum_prop": 0.6785714285714286,
"repo_name": "LiZimo/FuncFlow",
"id": "19cd35b567ce4ab71acaf1476d5e1d071e6541ac",
"size": "728",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "external/cvx/functions/inv_pos.m",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "Matlab",
"bytes": "115858"
}
]
}
|
fix entry
|
{
"content_hash": "b923e622e299a21c5314e7291ac7f1ea",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 9,
"avg_line_length": 10,
"alnum_prop": 0.8,
"repo_name": "metaperl/fixw",
"id": "2a46b05e5a5c46fb5928cc383c25058830f3ac42",
"size": "17",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": []
}
|
if [ -d "${HOME}/.pyenv" ]; then
export PYENV_ROOT="${HOME}/.pyenv"
command -v pyenv &>/dev/null || export PATH="${PYENV_ROOT}/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
fi
function with_no_poetry() {
# Prefixing any command with wnp runs it outside the virtualenv if a virtualenv is active.
local last_env
if [[ -v VIRTUAL_ENV ]]; then
last_env="${VIRTUAL_ENV}"
deactivate
fi
"$@"
ret=$?
# shellcheck disable=SC1091
if [[ -v last_env ]]; then
. "${last_env}/bin/activate"
fi
return ${ret}
}
alias wnp='with_no_poetry' # dev: Run a command outside the virtualenv
if [ -d "/opt/homebrew/anaconda3/bin" ]; then
export PATH="/opt/homebrew/anaconda3/bin:${PATH}"
elif [ -d "/usr/local/anaconda3/bin" ]; then
export PATH="/opt/homebrew/anaconda3/condabin:${PATH}"
fi
|
{
"content_hash": "58bf73ad0f9b5f4e42a2bea1ac8c0f38",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 94,
"avg_line_length": 29.066666666666666,
"alnum_prop": 0.6100917431192661,
"repo_name": "natelandau/dotfiles",
"id": "5017c58e306973b4c9cd447a974092852f49828a",
"size": "872",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "shell/python.sh",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Shell",
"bytes": "237842"
},
{
"name": "sed",
"bytes": "31473"
}
]
}
|
@implementation PageInfo
@end
|
{
"content_hash": "a6c920a5e97933041137172bf3f47f78",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 24,
"avg_line_length": 10.333333333333334,
"alnum_prop": 0.8064516129032258,
"repo_name": "YiQieSuiYuan/HealthMenu",
"id": "372236c0333948c1b5426b31554921237d5c4700",
"size": "183",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "MVCTest/PageInfo.m",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "2571"
},
{
"name": "HTML",
"bytes": "1636"
},
{
"name": "Objective-C",
"bytes": "1803666"
}
]
}
|
import TemplateList from "./TemplateList";
export default TemplateList;
|
{
"content_hash": "3a935bebcb72df7088b5f43eeb4afe54",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 42,
"avg_line_length": 24,
"alnum_prop": 0.8194444444444444,
"repo_name": "lancer07/fe_scaffold",
"id": "8599dd277eb2535ea5a9c38b6a872a1bad0969ec",
"size": "72",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/res/vue/components/TemplateList/index.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "1041599"
},
{
"name": "HTML",
"bytes": "558901"
},
{
"name": "JavaScript",
"bytes": "1646466"
},
{
"name": "Makefile",
"bytes": "4561"
},
{
"name": "Smarty",
"bytes": "2059"
},
{
"name": "Vue",
"bytes": "33383"
}
]
}
|
/**
*/
package org.afplib.afplib.impl;
import org.afplib.afplib.AfplibPackage;
import org.afplib.afplib.FNMRG;
import org.afplib.base.impl.TripletImpl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>FNMRG</b></em>'.
* <!-- end-user-doc -->
* <p>
* The following features are implemented:
* </p>
* <ul>
* <li>{@link org.afplib.afplib.impl.FNMRGImpl#getCharBoxWd <em>Char Box Wd</em>}</li>
* <li>{@link org.afplib.afplib.impl.FNMRGImpl#getCharBoxHt <em>Char Box Ht</em>}</li>
* <li>{@link org.afplib.afplib.impl.FNMRGImpl#getPatDOset <em>Pat DOset</em>}</li>
* </ul>
*
* @generated
*/
public class FNMRGImpl extends TripletImpl implements FNMRG {
/**
* The default value of the '{@link #getCharBoxWd() <em>Char Box Wd</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCharBoxWd()
* @generated
* @ordered
*/
protected static final Integer CHAR_BOX_WD_EDEFAULT = null;
/**
* The cached value of the '{@link #getCharBoxWd() <em>Char Box Wd</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCharBoxWd()
* @generated
* @ordered
*/
protected Integer charBoxWd = CHAR_BOX_WD_EDEFAULT;
/**
* The default value of the '{@link #getCharBoxHt() <em>Char Box Ht</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCharBoxHt()
* @generated
* @ordered
*/
protected static final Integer CHAR_BOX_HT_EDEFAULT = null;
/**
* The cached value of the '{@link #getCharBoxHt() <em>Char Box Ht</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getCharBoxHt()
* @generated
* @ordered
*/
protected Integer charBoxHt = CHAR_BOX_HT_EDEFAULT;
/**
* The default value of the '{@link #getPatDOset() <em>Pat DOset</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getPatDOset()
* @generated
* @ordered
*/
protected static final Integer PAT_DOSET_EDEFAULT = null;
/**
* The cached value of the '{@link #getPatDOset() <em>Pat DOset</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @see #getPatDOset()
* @generated
* @ordered
*/
protected Integer patDOset = PAT_DOSET_EDEFAULT;
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected FNMRGImpl() {
super();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return AfplibPackage.eINSTANCE.getFNMRG();
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Integer getCharBoxWd() {
return charBoxWd;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setCharBoxWd(Integer newCharBoxWd) {
Integer oldCharBoxWd = charBoxWd;
charBoxWd = newCharBoxWd;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.FNMRG__CHAR_BOX_WD, oldCharBoxWd, charBoxWd));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Integer getCharBoxHt() {
return charBoxHt;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setCharBoxHt(Integer newCharBoxHt) {
Integer oldCharBoxHt = charBoxHt;
charBoxHt = newCharBoxHt;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.FNMRG__CHAR_BOX_HT, oldCharBoxHt, charBoxHt));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public Integer getPatDOset() {
return patDOset;
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setPatDOset(Integer newPatDOset) {
Integer oldPatDOset = patDOset;
patDOset = newPatDOset;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.FNMRG__PAT_DOSET, oldPatDOset, patDOset));
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case AfplibPackage.FNMRG__CHAR_BOX_WD:
return getCharBoxWd();
case AfplibPackage.FNMRG__CHAR_BOX_HT:
return getCharBoxHt();
case AfplibPackage.FNMRG__PAT_DOSET:
return getPatDOset();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case AfplibPackage.FNMRG__CHAR_BOX_WD:
setCharBoxWd((Integer)newValue);
return;
case AfplibPackage.FNMRG__CHAR_BOX_HT:
setCharBoxHt((Integer)newValue);
return;
case AfplibPackage.FNMRG__PAT_DOSET:
setPatDOset((Integer)newValue);
return;
}
super.eSet(featureID, newValue);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case AfplibPackage.FNMRG__CHAR_BOX_WD:
setCharBoxWd(CHAR_BOX_WD_EDEFAULT);
return;
case AfplibPackage.FNMRG__CHAR_BOX_HT:
setCharBoxHt(CHAR_BOX_HT_EDEFAULT);
return;
case AfplibPackage.FNMRG__PAT_DOSET:
setPatDOset(PAT_DOSET_EDEFAULT);
return;
}
super.eUnset(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case AfplibPackage.FNMRG__CHAR_BOX_WD:
return CHAR_BOX_WD_EDEFAULT == null ? charBoxWd != null : !CHAR_BOX_WD_EDEFAULT.equals(charBoxWd);
case AfplibPackage.FNMRG__CHAR_BOX_HT:
return CHAR_BOX_HT_EDEFAULT == null ? charBoxHt != null : !CHAR_BOX_HT_EDEFAULT.equals(charBoxHt);
case AfplibPackage.FNMRG__PAT_DOSET:
return PAT_DOSET_EDEFAULT == null ? patDOset != null : !PAT_DOSET_EDEFAULT.equals(patDOset);
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String toString() {
if (eIsProxy()) return super.toString();
StringBuffer result = new StringBuffer(super.toString());
result.append(" (CharBoxWd: ");
result.append(charBoxWd);
result.append(", CharBoxHt: ");
result.append(charBoxHt);
result.append(", PatDOset: ");
result.append(patDOset);
result.append(')');
return result.toString();
}
} //FNMRGImpl
|
{
"content_hash": "08f0321e8ddfed2105f712898031f39b",
"timestamp": "",
"source": "github",
"line_count": 272,
"max_line_length": 117,
"avg_line_length": 24.30514705882353,
"alnum_prop": 0.6350022689456966,
"repo_name": "yan74/afplib",
"id": "d54aa25bc9e35c9074c5f0095d1143e272a5a516",
"size": "6611",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "org.afplib/src/main/java/org/afplib/afplib/impl/FNMRGImpl.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "HTML",
"bytes": "1436"
},
{
"name": "Java",
"bytes": "7624188"
},
{
"name": "Swift",
"bytes": "303471"
}
]
}
|
<?php
namespace AppBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Security\Core\Role\RoleInterface;
/**
* @ORM\Table(name="bt_role")
* @ORM\Entity
*/
class Role implements RoleInterface
{
const OPERATOR = 'ROLE_OPERATOR';
const MANAGER = 'ROLE_MANAGER';
const ADMINISTRATOR = 'ROLE_ADMINISTRATOR';
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=64)
*/
protected $name;
/**
* @var int
*
* @ORM\Column(name="role", type="string", length=64, unique=true)
*/
protected $role;
/**
* @var ArrayCollection User[]
*
* @ORM\ManyToMany(targetEntity="User", mappedBy="roles")
*/
protected $users;
public function __construct()
{
$this->users = new ArrayCollection();
}
/**
* @inheritdoc
*/
public function getRole()
{
return $this->role;
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set name.
*
* @param string $name
*
* @return Role
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name.
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set role.
*
* @param string $role
*
* @return Role
*/
public function setRole($role)
{
$this->role = $role;
return $this;
}
/**
* Get users.
*
* @return ArrayCollection User[]
*/
public function getUsers()
{
return $this->users;
}
}
|
{
"content_hash": "755d1adef9d2a9d6203b6c3972202684",
"timestamp": "",
"source": "github",
"line_count": 119,
"max_line_length": 70,
"avg_line_length": 16.45378151260504,
"alnum_prop": 0.5025536261491318,
"repo_name": "zebimax/symfony2_project",
"id": "b6a18a0d48e18b9907b773c0abd3a967ada33a0d",
"size": "1958",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/AppBundle/Entity/Role.php",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "3073"
},
{
"name": "CSS",
"bytes": "253"
},
{
"name": "HTML",
"bytes": "38115"
},
{
"name": "JavaScript",
"bytes": "680"
},
{
"name": "PHP",
"bytes": "333743"
}
]
}
|
.sample
{
position: absolute;
}
|
{
"content_hash": "8192ff9cf4bcf9b731692e62d8ff53c0",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 20,
"avg_line_length": 8.25,
"alnum_prop": 0.6666666666666666,
"repo_name": "LadaTech/savepaise",
"id": "52aaccff36e7b9e3194e0f1e541999ae9b977f01",
"size": "33",
"binary": false,
"copies": "7",
"ref": "refs/heads/master",
"path": "docs praveen/Vyspro/vyspro_website/ckeditor/_source/tests/_assets/sample.css",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "1068"
},
{
"name": "CSS",
"bytes": "456158"
},
{
"name": "HTML",
"bytes": "10175300"
},
{
"name": "JavaScript",
"bytes": "2885366"
},
{
"name": "PHP",
"bytes": "2642316"
}
]
}
|
function render_map(year, map_type, static_url) {
function initialize() {
proj.scale(7000);
proj.translate([-1310, 800]);
}
var width = 600;
var height = 650;
var proj = d3.geo.mercator();
var path = d3.geo.path().projection(proj);
var trans = proj.translate();
var scale = proj.scale();
var map = d3.select("#india-map").append("svg:svg")
.attr("width", width)
.attr("height", height)
.call(initialize);
var stats = d3.select("#stats");
var india = map.append("svg:g")
.attr("id", "india");
d3.json(static_url + "states.json", function (json) {
india.selectAll("path")
.data(json.features)
.enter().append("path")
.attr("d", path)
.attr("class", "state")
.on("click", function(d, i){
d3.selectAll("path").classed("selected", false);
d3.select(this).classed("selected", true);
render_chart(year, states_map[d.id], 'chart-container');
})
.on("mouseover", function(d, i){
d3.select(this).classed("hover", true);
})
.on("mouseout", function(d, i){
d3.select(this).classed("hover", false);
});
});
setTimeout(function() {
d3.json("/analytics/data/" + map_type + "/" + year, function(json) {
data = json[map_type + '_data'];
states_map = json['states'];
india.selectAll("path").style("opacity", quantize);
});
}, 100);
}
function quantize(d, i) {
d['wealth'] = data[d.id];
return Math.floor(d.wealth/10)/10;
}
|
{
"content_hash": "46936308808b56e62b1ace83a2c43a9c",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 72,
"avg_line_length": 29.51923076923077,
"alnum_prop": 0.5589576547231271,
"repo_name": "arpitprogressive/arpittest",
"id": "eb0c6f33309b2faa6cf6c79e7f3a4c48da05b2a9",
"size": "1535",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "pursuite/web/static/js/analytics.js",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "CSS",
"bytes": "133532"
},
{
"name": "JavaScript",
"bytes": "227983"
},
{
"name": "Python",
"bytes": "782274"
},
{
"name": "Shell",
"bytes": "290"
}
]
}
|
sdftoolkit
==========
Software Defined Forensic Toolkit
|
{
"content_hash": "9ab096b5d0c7e3974e548ee0688cf57d",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 33,
"avg_line_length": 14.25,
"alnum_prop": 0.7017543859649122,
"repo_name": "lismore/sdftoolkit",
"id": "e10a9a0e057363e06a7c7b994ee079c1805b413c",
"size": "57",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "bsd-3-clause",
"language": []
}
|
<!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<link rel="import" href="../../bower_components/polymer/polymer.html">
<dom-module id="orders-list-item">
<template>
<style>
:host {
display: block;
}
</style>
<div>Hello from <span>{{foo}}</span></div>
</template>
<script>
(function() {
'use strict';
Polymer({
is: 'orders-list-item',
properties: {
foo: {
type: String,
value: 'orders-item',
notify: true
}
}
});
})();
</script>
</dom-module>
|
{
"content_hash": "b8b73cebbe4c869d259866c25258ee72",
"timestamp": "",
"source": "github",
"line_count": 39,
"max_line_length": 100,
"avg_line_length": 26.435897435897434,
"alnum_prop": 0.6362754607177498,
"repo_name": "Nicotu/polyfood",
"id": "5980bb62c5dd82c677ec5b8c8ffbc0823840b061",
"size": "1031",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/elements/orders-list-item/orders-list-item.html",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "CSS",
"bytes": "622"
},
{
"name": "HTML",
"bytes": "35640"
},
{
"name": "JavaScript",
"bytes": "11020"
}
]
}
|
require 'spec_helper'
describe "Revision::Auditor" do
before :each do
@versionable = create(:parent_with_children)
@child_1 = @versionable.child_resources[0]
end
context "#changes_original?" do
it "returns true if an attribute has changed" do
@versionable.assign_attributes(r_string: "new string")
expect(Revision::Auditor.new(@versionable).changes_original?).to be_truthy
end
it "returns true if a child resource's attribute has changed" do
@versionable.assign_attributes(child_resources_attributes: [{ id: @child_1.id, r_string: "new string" }])
expect(Revision::Auditor.new(@versionable).changes_original?).to be_truthy
end
it "returns true if a child resource is marked_for_destruction" do
@versionable.assign_attributes(child_resources_attributes: [{ id: @child_1.id, _destroy: true }])
expect(Revision::Auditor.new(@versionable).changes_original?).to be_truthy
end
it "returns false if neither it nor its children have changed" do
@versionable.assign_attributes(r_string: "my string")
expect(Revision::Auditor.new(@versionable).changes_original?).to be_falsey
end
end
end
|
{
"content_hash": "d74c330efde944f1768469e3398cfa59",
"timestamp": "",
"source": "github",
"line_count": 32,
"max_line_length": 111,
"avg_line_length": 36.875,
"alnum_prop": 0.7067796610169491,
"repo_name": "null-null-null/rubber_stamp",
"id": "a5f2e817002b92bdc2129dd78b2a46618abc3ac4",
"size": "1180",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "spec/lib/rubber_stamp/revision/auditor_spec.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "546"
},
{
"name": "JavaScript",
"bytes": "599"
},
{
"name": "Ruby",
"bytes": "83791"
}
]
}
|
This bundle provides basic content management functionality for Symfony-based applications.
- [**Виджеты контента**](Resources/doc/content_widgets.md);
- [**Контроллеры контента**](Resources/doc/content_controllers.md);
- [**Метаданные**](Resources/doc/metadata.md);
- [**Переводы**](Resources/doc/translations.md).
|
{
"content_hash": "cc56c366426bd749f7867417b38ef53f",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 91,
"avg_line_length": 52.833333333333336,
"alnum_prop": 0.7570977917981072,
"repo_name": "DarvinStudio/DarvinContentBundle",
"id": "fcdf0bca7d49c348568ca1c1ee9f234fd09468a1",
"size": "391",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "1891"
},
{
"name": "PHP",
"bytes": "314095"
},
{
"name": "Twig",
"bytes": "9010"
}
]
}
|
/* $Header$
*/
package com.realtor.rets.compliance.tests;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.realtor.rets.compliance.TestResult;
/**
* Negative Tests Result Evaluator class for GetMetadata Negative test that sends an
* Invalid Resource will evaluate each of the name in the <id\> tag in the script
* The test (in processNegativeTestResults) the passed in transRespStatus value
* MUST match the value of msf_EXPECTED_STATUS_RESPONSE_CODE, for the test to succeed.
*
* @author pobrien
*/
public class InvalidResource extends NegativeBaseEvaluator {
private static Log log = LogFactory.getLog(InvalidResource.class);
private final static String msf_EXPECTED_STATUS_RESPONSE_CODE = "20500";
/**
*
*/
public InvalidResource() {
super();
setCorrectResponseStatus(msf_EXPECTED_STATUS_RESPONSE_CODE);
}
protected TestResult processNegativeTestResults(String transName,
String responseBody,
String transRespStatus) {
TestResult negativeTestResult = null;
if (log.isDebugEnabled()) {
log.debug("Test Transaction: " + transName + " : "
+ transRespStatus);
}
if (!transRespStatus.equals(msf_EXPECTED_STATUS_RESPONSE_CODE)) {
//20501 - 20503, 20508, 20509, 20513. 20512
if (transRespStatus.equals("20501")||transRespStatus.equals("20502")||transRespStatus.equals("20503")||transRespStatus.equals("20508")||transRespStatus.equals("20509")||transRespStatus.equals("20513")||transRespStatus.equals("20512")) {
setWarningResponse(responseBody, transName, transRespStatus);
} else{
setFailureResponse(responseBody, transName, transRespStatus);
}
} else {
setSuccessResponse(responseBody, transName, transRespStatus);
}
negativeTestResult = reportResult(transName, testResultDesc,
testResultStatus, testResultNotes);
return negativeTestResult;
}
}
|
{
"content_hash": "da2466a6e92c0ffc09107d61aad18432",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 248,
"avg_line_length": 37.145161290322584,
"alnum_prop": 0.6152844116369952,
"repo_name": "RESO-RETS/RESO-Server-Compliance-Tester",
"id": "045fba20896717488de9c8409f952cf04e458256",
"size": "2303",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/com/realtor/rets/compliance/tests/InvalidResource.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "442"
},
{
"name": "HTML",
"bytes": "706"
},
{
"name": "Java",
"bytes": "651352"
}
]
}
|
ACCEPTED
#### According to
Index Fungorum
#### Published in
Lilloa 22: 714 (1951)
#### Original name
Russula puellaris var. caucasica Singer
### Remarks
null
|
{
"content_hash": "756fe747e1fb1b7dbd235a3905a01221",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 12.384615384615385,
"alnum_prop": 0.7142857142857143,
"repo_name": "mdoering/backbone",
"id": "ef8bb65c37f9193592caf1ef89b70273ac658a52",
"size": "218",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Fungi/Basidiomycota/Agaricomycetes/Russulales/Russulaceae/Russula/Russula caucasica/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": []
}
|
var http = require('http'),
host = "api.openweathermap.org",
path = "/data/2.5/weather?mode=json&units=metric&q=";
exports.weather = {
name: 'weather',
group: 'Weather',
about: 'Show weather',
help: 'weather <CITY>',
enabled: 1,
aliases: ['w', 'temp', 'temperature'],
run: function(params, stanza, plugins, client) {
if (!params[0]) {
return this.help;
}
var options = {
host: host,
path: path + params[0]
};
if (/[а-яА-Я]/.test(params[0])) {
options.path += '&lang=ru'
}
callback = function(response) {
var str = '';
response.on('data', function (chunk) {
str += chunk;
});
response.on('end', function () {
var message = '';
try {
var weather = JSON.parse (str);
message =
'\n' + weather.weather[0].description + '\n' +
'Temperature: ' + weather.main.temp + '° (' + weather.main.temp_min + '° - ' + weather.main.temp_max + '°)\n' +
'Humidity: ' + weather.main.humidity + '%\n' +
'Pressure: ' + weather.main.pressure.toFixed(0) + ' hpa\n' +
'Wind: ' + weather.wind.speed + ' m/s\n' +
'\nMore info: http://openweathermap.org/city/' + weather.id;
} catch (e) {
console.log(options);
console.log(e);
message = "There is an error. Try again later";
}
stanza.c('body').t(message);
client.send(stanza);
});
};
http.request(options, callback).end();
return null;
}
};
|
{
"content_hash": "90af7b780fecf724e31c9fc06a6ee453",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 135,
"avg_line_length": 30.9,
"alnum_prop": 0.43042071197411,
"repo_name": "vanchester/node-xmpp-bot",
"id": "458f304fbc937010cd832a7479428172e1ba8716",
"size": "1861",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "plugins/weather.weather.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "104812"
},
{
"name": "Shell",
"bytes": "75"
}
]
}
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-deployable-pom</artifactId>
<version>1.5-SNAPSHOT</version>
<relativePath>../hapi-deployable-pom/pom.xml</relativePath>
</parent>
<artifactId>hapi-fhir-jaxrsserver-base</artifactId>
<packaging>jar</packaging>
<name>HAPI FHIR JAX-RS Server</name>
<dependencies>
<!-- HAPI DEPENDENCIES -->
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-base</artifactId>
<version>1.5-SNAPSHOT</version>
<exclusions>
<exclusion>
<artifactId>commons-logging</artifactId>
<groupId>commons-logging</groupId>
</exclusion>
<exclusion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- conformance profile -->
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-structures-dstu2</artifactId>
<version>1.5-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.ejb</groupId>
<artifactId>ejb-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlet</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-server</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-servlet-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-jetty-http</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-moxy</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
</plugin>
</plugins>
</reporting>
</project>
|
{
"content_hash": "21594fccd8909612fada78b4ee0e8af7",
"timestamp": "",
"source": "github",
"line_count": 102,
"max_line_length": 204,
"avg_line_length": 27.92156862745098,
"alnum_prop": 0.7004915730337079,
"repo_name": "ismael-sarmento-jr/hapi-fhir",
"id": "9f751617fb957ab5f95e74a01244e84a7d19eca1",
"size": "2848",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "hapi-fhir-jaxrsserver-base/pom.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "228150"
},
{
"name": "Eagle",
"bytes": "4388418"
},
{
"name": "HTML",
"bytes": "187043"
},
{
"name": "Java",
"bytes": "19165894"
},
{
"name": "JavaScript",
"bytes": "23709"
},
{
"name": "KiCad",
"bytes": "12030"
},
{
"name": "Ruby",
"bytes": "238370"
},
{
"name": "Shell",
"bytes": "5593"
}
]
}
|
/**
* SECTION:graphene-ray
* @Title: Ray
* @Short_Description: A ray emitted from an origin in a given direction
*
* #graphene_ray_t is a structure representing a ray emitted by an origin,
* identified by a point in 3D space, in a given direction, identified
* by a vector with 3 components.
*/
#include "graphene-private.h"
#include "graphene-ray.h"
#include "graphene-alloc-private.h"
#include "graphene-plane.h"
#include "graphene-point3d.h"
#include "graphene-vec3.h"
#include <math.h>
#include <float.h>
/**
* graphene_ray_alloc: (constructor)
*
* Allocates a new #graphene_ray_t structure.
*
* The contents of the returned structure are undefined.
*
* Returns: (transfer full): the newly allocated #graphene_ray_t.
* Use graphene_ray_free() to free the resources allocated by
* this function
*
* Since: 1.4
*/
graphene_ray_t *
graphene_ray_alloc (void)
{
return graphene_aligned_alloc (sizeof (graphene_ray_t), 1, 16);
}
/**
* graphene_ray_free:
* @r: a #graphene_ray_t
*
* Frees the resources allocated by graphene_ray_alloc().
*
* Since: 1.4
*/
void
graphene_ray_free (graphene_ray_t *r)
{
graphene_aligned_free (r);
}
/**
* graphene_ray_init:
* @r: the #graphene_ray_t to initialize
* @origin: (nullable): the origin of the ray
* @direction: (nullable): the direction vector
*
* Initializes the given #graphene_ray_t using the given @origin
* and @direction values.
*
* Returns: (transfer none): the initialized ray
*
* Since: 1.4
*/
graphene_ray_t *
graphene_ray_init (graphene_ray_t *r,
const graphene_point3d_t *origin,
const graphene_vec3_t *direction)
{
if (origin != NULL)
graphene_point3d_to_vec3 (origin, &r->origin);
else
graphene_vec3_init_from_vec3 (&r->origin, graphene_vec3_zero ());
if (direction != NULL)
graphene_vec3_normalize (direction, &r->direction);
else
graphene_vec3_init_from_vec3 (&r->direction, graphene_vec3_zero ());
return r;
}
/**
* graphene_ray_init_from_ray:
* @r: the #graphene_ray_t to initialize
* @src: a #graphene_ray_t
*
* Initializes the given #graphene_ray_t using the origin and direction
* values of another #graphene_ray_t.
*
* Returns: (transfer none): the initialized ray
*
* Since: 1.4
*/
graphene_ray_t *
graphene_ray_init_from_ray (graphene_ray_t *r,
const graphene_ray_t *src)
{
return graphene_ray_init_from_vec3 (r, &src->origin, &src->direction);
}
/**
* graphene_ray_init_from_vec3:
* @r: the #graphene_ray_t to initialize
* @origin: (nullable): a #graphene_vec3_t
* @direction: (nullable): a #graphene_vec3_t
*
* Initializes the given #graphene_ray_t using the given vectors.
*
* Returns: (transfer none): the initialized ray
*
* Since: 1.4
*/
graphene_ray_t *
graphene_ray_init_from_vec3 (graphene_ray_t *r,
const graphene_vec3_t *origin,
const graphene_vec3_t *direction)
{
if (origin != NULL)
graphene_vec3_init_from_vec3 (&r->origin, origin);
else
graphene_vec3_init_from_vec3 (&r->origin, graphene_vec3_zero ());
if (direction != NULL)
graphene_vec3_normalize (direction, &r->direction);
else
graphene_vec3_init_from_vec3 (&r->direction, graphene_vec3_zero ());
return r;
}
/**
* graphene_ray_get_origin:
* @r: a #graphene_ray_t
* @origin: (out caller-allocates): return location for the origin
*
* Retrieves the origin of the given #graphene_ray_t.
*
* Since: 1.4
*/
void
graphene_ray_get_origin (const graphene_ray_t *r,
graphene_point3d_t *origin)
{
graphene_point3d_init_from_vec3 (origin, &r->origin);
}
/**
* graphene_ray_get_direction:
* @r: a #graphene_ray_t
* @direction: (out caller-allocates): return location for the direction
*
* Retrieves the direction of the given #graphene_ray_t.
*
* Since: 1.4
*/
void
graphene_ray_get_direction (const graphene_ray_t *r,
graphene_vec3_t *direction)
{
graphene_vec3_init_from_vec3 (direction, &r->direction);
}
/**
* graphene_ray_get_position_at:
* @r: a #graphene_ray_t
* @t: the distance along the ray
* @position: (out caller-allocates): return location for the position
*
* Retrieves the coordinates of a point at the distance @t along the
* given #graphene_ray_t.
*
* Since: 1.4
*/
void
graphene_ray_get_position_at (const graphene_ray_t *r,
float t,
graphene_point3d_t *position)
{
graphene_vec3_t res;
graphene_vec3_scale (&r->direction, t, &res);
graphene_vec3_add (&res, &r->origin, &res);
graphene_point3d_init_from_vec3 (position, &res);
}
/**
* graphene_ray_get_distance_to_point:
* @r: a #graphene_ray_t
* @p: a #graphene_point3d_t
*
* Computes the distance from the origin of the given ray to the given point.
*
* Returns: the distance of the point
*
* Since: 1.4
*/
float
graphene_ray_get_distance_to_point (const graphene_ray_t *r,
const graphene_point3d_t *p)
{
graphene_vec3_t point;
graphene_vec3_t tmp;
float distance;
graphene_point3d_to_vec3 (p, &point);
graphene_vec3_subtract (&point, &r->origin, &tmp);
distance = graphene_vec3_dot (&tmp, &r->direction);
/* the point is behind the ray */
if (distance < 0)
{
graphene_vec3_subtract (&r->origin, &point, &tmp);
return graphene_vec3_length (&tmp);
}
/* get the position on the ray at the given distance */
graphene_vec3_scale (&r->direction, distance, &tmp);
graphene_vec3_add (&tmp, &r->origin, &tmp);
graphene_vec3_subtract (&tmp, &point, &tmp);
return graphene_vec3_length (&tmp);
}
/**
* graphene_ray_get_distance_to_plane:
* @r: a #graphene_ray_t
* @p: a #graphene_plane_t
*
* Computes the distance of the origin of the given #graphene_ray_t from the
* given plane.
*
* If the ray does not intersect the plane, this function returns `INFINITY`.
*
* Returns: the distance of the origin of the ray from the plane
*
* Since: 1.4
*/
float
graphene_ray_get_distance_to_plane (const graphene_ray_t *r,
const graphene_plane_t *p)
{
float denom, t;
denom = graphene_vec3_dot (&p->normal, &r->direction);
if (fabsf (denom) < GRAPHENE_FLOAT_EPSILON)
{
graphene_point3d_t tmp;
/* If the ray is coplanar, return 0 */
graphene_point3d_init_from_vec3 (&tmp, &r->origin);
if (fabsf (graphene_plane_distance (p, &tmp)) < GRAPHENE_FLOAT_EPSILON)
return 0.f;
return INFINITY;
}
t = -1.f * (graphene_vec3_dot (&r->origin, &p->normal) + p->constant) / denom;
if (t >= 0.f)
return t;
return INFINITY;
}
/**
* graphene_ray_equal:
* @a: a #graphene_ray_t
* @b: a #graphene_ray_t
*
* Checks whether the two given #graphene_ray_t are equal.
*
* Returns: `true` if the given rays are equal
*
* Since: 1.4
*/
bool
graphene_ray_equal (const graphene_ray_t *a,
const graphene_ray_t *b)
{
if (a == b)
return true;
if (a == NULL || b == NULL)
return false;
return graphene_vec3_equal (&a->origin, &b->origin) &&
graphene_vec3_equal (&a->direction, &b->direction);
}
/**
* graphene_ray_get_closest_point_to_point:
* @r: a #graphene_ray_t
* @p: a #graphene_point3d_t
* @res: (out caller-allocates): return location for the closest point3d
*
* Computes the point on the given #graphene_ray_t that is closest to the
* given point @p.
*
* Since: 1.4
*/
void
graphene_ray_get_closest_point_to_point (const graphene_ray_t *r,
const graphene_point3d_t *p,
graphene_point3d_t *res)
{
graphene_vec3_t point, result;
float distance;
graphene_point3d_to_vec3 (p, &point);
graphene_vec3_subtract (&point, &r->origin, &result);
distance = graphene_vec3_dot (&result, &r->direction);
if (distance < 0)
graphene_vec3_init_from_vec3 (&result, &r->origin);
else
{
graphene_vec3_scale (&r->direction, distance, &result);
graphene_vec3_add (&result, &r->origin, &result);
}
graphene_point3d_init_from_vec3 (res, &result);
}
|
{
"content_hash": "b809a70e6a15debbc625b8a2bffb4ce5",
"timestamp": "",
"source": "github",
"line_count": 331,
"max_line_length": 80,
"avg_line_length": 24.966767371601208,
"alnum_prop": 0.6265730880929332,
"repo_name": "criptych/graphene",
"id": "828a76a2eaa9d2f20f332b47d479e0d2ddd922cd",
"size": "9449",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/graphene-ray.c",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "687811"
},
{
"name": "C++",
"bytes": "6637"
},
{
"name": "Makefile",
"bytes": "6464"
},
{
"name": "Python",
"bytes": "758"
},
{
"name": "Shell",
"bytes": "20661"
}
]
}
|
package com.utilsplus.tree;
import java.util.ArrayList;
import java.util.List;
public class RootNodeCollection {
List<RootNode> rootNodes;
public RootNodeCollection() {
rootNodes = new ArrayList<>();
}
public void addRoot(RootNode root) {
rootNodes.add(root);
}
public List<RootNode> getRootNodes() {
return this.rootNodes;
}
public RootNode getRoot(int index) {
return rootNodes.get(index);
}
}
|
{
"content_hash": "b3b85524fbffad22fad237a2ee7cd927",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 39,
"avg_line_length": 18.458333333333332,
"alnum_prop": 0.6884875846501128,
"repo_name": "Thyaris/UtilsPlus",
"id": "1a86e518f760036947b73543eeecf699eaef7307",
"size": "443",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "UtilsPlus/src/com/utilsplus/tree/RootNodeCollection.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "124007"
}
]
}
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>automata: 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 / automata - 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>
automata
<small>
8.8.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-06-30 02:36:08 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-06-30 02:36:08 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
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.9.5 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-contribs/automata"
license: "LGPL 2.1"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/Automata"]
depends: [
"ocaml"
"coq" {>= "8.8" & < "8.9~"}
]
tags: [
"keyword: formal language theory"
"keyword: finite automata"
"keyword: push-down automata"
"keyword: rational langages"
"keyword: Kleene"
"category: Computer Science/Formal Languages Theory and Automata"
"date: June-July 1993"
]
authors: [ "Judicaël Courant" "Jean-Christophe Filliâtre" ]
bug-reports: "https://github.com/coq-contribs/automata/issues"
dev-repo: "git+https://github.com/coq-contribs/automata.git"
synopsis: "Beginning of formal language theory"
description: """
This library formalises the beginning of formal language theory:
finite automata and rational languages, context-free grammars
and push-down automata."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/automata/archive/v8.8.0.tar.gz"
checksum: "md5=5ecdd9983ca49655f57431616796d3d4"
}
</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-automata.8.8.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-automata -> coq < 8.9~ -> 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-automata.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>
|
{
"content_hash": "5d81bd561ae5de83d093d06371650ba6",
"timestamp": "",
"source": "github",
"line_count": 174,
"max_line_length": 159,
"avg_line_length": 40.85057471264368,
"alnum_prop": 0.5498030388294879,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "4b641bbd06849000551cdb6838dddc4088eb9709",
"size": "7135",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "clean/Linux-x86_64-4.05.0-2.0.1/released/8.10.2/automata/8.8.0.html",
"mode": "33188",
"license": "mit",
"language": []
}
|
package org.cybergarage.upnp.std.av.renderer;
import org.cybergarage.util.*;
import org.cybergarage.upnp.*;
import org.cybergarage.upnp.control.*;
public class AVTransport implements ActionListener, QueryListener
{
////////////////////////////////////////////////
// Constants
////////////////////////////////////////////////
public final static String SERVICE_TYPE = "urn:schemas-upnp-org:service:AVTransport:1";
// Browse Action
public final static String TRANSPORTSTATE = "TransportState";
public final static String TRANSPORTSTATUS = "TransportStatus";
public final static String PLAYBACKSTORAGEMEDIUM = "PlaybackStorageMedium";
public final static String RECORDSTORAGEMEDIUM = "RecordStorageMedium";
public final static String POSSIBLEPLAYBACKSTORAGEMEDIA = "PossiblePlaybackStorageMedia";
public final static String POSSIBLERECORDSTORAGEMEDIA = "PossibleRecordStorageMedia";
public final static String CURRENTPLAYMODE = "CurrentPlayMode";
public final static String TRANSPORTPLAYSPEED = "TransportPlaySpeed";
public final static String RECORDMEDIUMWRITESTATUS = "RecordMediumWriteStatus";
public final static String CURRENTRECORDQUALITYMODE = "CurrentRecordQualityMode";
public final static String POSSIBLERECORDQUALITYMODES = "PossibleRecordQualityModes";
public final static String NUMBEROFTRACKS = "NumberOfTracks";
public final static String CURRENTTRACK = "CurrentTrack";
public final static String CURRENTTRACKDURATION = "CurrentTrackDuration";
public final static String CURRENTMEDIADURATION = "CurrentMediaDuration";
public final static String CURRENTTRACKMETADATA = "CurrentTrackMetaData";
public final static String CURRENTTRACKURI = "CurrentTrackURI";
public final static String AVTRANSPORTURI = "AVTransportURI";
public final static String AVTRANSPORTURIMETADATA = "AVTransportURIMetaData";
public final static String NEXTAVTRANSPORTURI = "NextAVTransportURI";
public final static String NEXTAVTRANSPORTURIMETADATA = "NextAVTransportURIMetaData";
public final static String RELATIVETIMEPOSITION = "RelativeTimePosition";
public final static String ABSOLUTETIMEPOSITION = "AbsoluteTimePosition";
public final static String RELATIVECOUNTERPOSITION = "RelativeCounterPosition";
public final static String ABSOLUTECOUNTERPOSITION = "AbsoluteCounterPosition";
public final static String CURRENTTRANSPORTACTIONS = "CurrentTransportActions";
public final static String LASTCHANGE = "LastChange";
public final static String SETAVTRANSPORTURI = "SetAVTransportURI";
public final static String INSTANCEID = "InstanceID";
public final static String CURRENTURI = "CurrentURI";
public final static String CURRENTURIMETADATA = "CurrentURIMetaData";
public final static String SETNEXTAVTRANSPORTURI = "SetNextAVTransportURI";
public final static String NEXTURI = "NextURI";
public final static String NEXTURIMETADATA = "NextURIMetaData";
public final static String GETMEDIAINFO = "GetMediaInfo";
public final static String NRTRACKS = "NrTracks";
public final static String MEDIADURATION = "MediaDuration";
public final static String PLAYMEDIUM = "PlayMedium";
public final static String RECORDMEDIUM = "RecordMedium";
public final static String WRITESTATUS = "WriteStatus";
public final static String GETTRANSPORTINFO = "GetTransportInfo";
public final static String CURRENTTRANSPORTSTATE = "CurrentTransportState";
public final static String CURRENTTRANSPORTSTATUS = "CurrentTransportStatus";
public final static String CURRENTSPEED = "CurrentSpeed";
public final static String GETPOSITIONINFO = "GetPositionInfo";
public final static String TRACK = "Track";
public final static String TRACKDURATION = "TrackDuration";
public final static String TRACKMETADATA = "TrackMetaData";
public final static String TRACKURI = "TrackURI";
public final static String RELTIME = "RelTime";
public final static String ABSTIME = "AbsTime";
public final static String RELCOUNT = "RelCount";
public final static String ABSCOUNT = "AbsCount";
public final static String GETDEVICECAPABILITIES = "GetDeviceCapabilities";
public final static String PLAYMEDIA = "PlayMedia";
public final static String RECMEDIA = "RecMedia";
public final static String RECQUALITYMODES = "RecQualityModes";
public final static String GETTRANSPORTSETTINGS = "GetTransportSettings";
public final static String PLAYMODE = "PlayMode";
public final static String RECQUALITYMODE = "RecQualityMode";
public final static String STOP = "Stop";
public final static String PLAY = "Play";
public final static String SPEED = "Speed";
public final static String PAUSE = "Pause";
public final static String RECORD = "Record";
public final static String SEEK = "Seek";
public final static String UNIT = "Unit";
public final static String TARGET = "Target";
public final static String NEXT = "Next";
public final static String PREVIOUS = "Previous";
public final static String SETPLAYMODE = "SetPlayMode";
public final static String NEWPLAYMODE = "NewPlayMode";
public final static String SETRECORDQUALITYMODE = "SetRecordQualityMode";
public final static String NEWRECORDQUALITYMODE = "NewRecordQualityMode";
public final static String GETCURRENTTRANSPORTACTIONS = "GetCurrentTransportActions";
public final static String ACTIONS = "Actions";
public final static String STOPPED = "STOPPED";
public final static String PLAYING = "PLAYING";
public final static String OK = "OK";
public final static String ERROR_OCCURRED = "ERROR_OCCURRED";
public final static String NORMAL = "NORMAL";
public final static String TRACK_NR = "TRACK_NR";
public final static String SCPD =
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" +
"<scpd xmlns=\"urn:schemas-upnp-org:service-1-0\">\n" +
" <specVersion>\n" +
" <major>1</major>\n" +
" <minor>0</minor>\n" +
" </specVersion>\n" +
" <serviceStateTable>"+
" <stateVariable>"+
" <name>TransportState</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>string</dataType>"+
" <allowedValueList>"+
" <allowedValue>STOPPED</allowedValue>"+
" <allowedValue>PLAYING</allowedValue>"+
" </allowedValueList>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>TransportStatus</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>string</dataType>"+
" <allowedValueList>"+
" <allowedValue>OK</allowedValue>"+
" <allowedValue>ERROR_OCCURRED</allowedValue> "+
" </allowedValueList>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>PlaybackStorageMedium</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>string</dataType>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>RecordStorageMedium</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>string</dataType>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>PossiblePlaybackStorageMedia</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>string</dataType>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>PossibleRecordStorageMedia</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>string</dataType>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>CurrentPlayMode</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>string</dataType>"+
" <allowedValueList>"+
" <allowedValue>NORMAL</allowedValue>"+
" </allowedValueList>"+
" <defaultValue>NORMAL</defaultValue>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>TransportPlaySpeed</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>string</dataType>"+
" <allowedValueList>"+
" <allowedValue>1</allowedValue>"+
" </allowedValueList>"+
" </stateVariable>"+
" <stateVariable>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <name>RecordMediumWriteStatus </name>"+
" <dataType>string</dataType>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>CurrentRecordQualityMode</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>string</dataType>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>PossibleRecordQualityModes</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>string</dataType>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>NumberOfTracks</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>ui4</dataType>"+
" <allowedValueRange>"+
" <minimum>0</minimum>"+
" </allowedValueRange>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>CurrentTrack</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>ui4</dataType>"+
" <allowedValueRange>"+
" <minimum>0</minimum>"+
" <step>1</step>"+
" </allowedValueRange>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>CurrentTrackDuration</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>string</dataType>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>CurrentMediaDuration</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>string</dataType>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>CurrentTrackMetaData</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>string</dataType>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>CurrentTrackURI</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>string</dataType>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>AVTransportURI</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>string</dataType>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>AVTransportURIMetaData</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>string</dataType>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>NextAVTransportURI</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>string</dataType>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>NextAVTransportURIMetaData</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>string</dataType>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>RelativeTimePosition</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>string</dataType>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>AbsoluteTimePosition</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>string</dataType>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>RelativeCounterPosition</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>i4</dataType>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>AbsoluteCounterPosition</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>i4</dataType>"+
" </stateVariable>"+
" <stateVariable>"+
" <Optional/>"+
" <name>CurrentTransportActions</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>string</dataType>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>LastChange</name>"+
" <sendEventsAttribute>yes</sendEventsAttribute>"+
" <dataType>string</dataType>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>A_ARG_TYPE_SeekMode</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>string</dataType>"+
" <allowedValueList>"+
" <allowedValue>TRACK_NR</allowedValue>"+
" </allowedValueList>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>A_ARG_TYPE_SeekTarget</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>string</dataType>"+
" </stateVariable>"+
" <stateVariable>"+
" <name>A_ARG_TYPE_InstanceID</name>"+
" <sendEventsAttribute>no</sendEventsAttribute>"+
" <dataType>ui4</dataType>"+
" </stateVariable>"+
" </serviceStateTable>"+
" <actionList>"+
" <action>"+
" <name>SetAVTransportURI</name>"+
" <argumentList>"+
" <argument>"+
" <name>InstanceID</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>A_ARG_TYPE_InstanceID</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>CurrentURI</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>AVTransportURI</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>CurrentURIMetaData</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>AVTransportURIMetaData</relatedStateVariable>"+
" </argument>"+
" </argumentList>"+
" </action>"+
" <action> <Optional/>"+
" <name>SetNextAVTransportURI</name>"+
" <argumentList>"+
" <argument>"+
" <name>InstanceID</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>A_ARG_TYPE_InstanceID</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>NextURI</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>NextAVTransportURI</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>NextURIMetaData</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>NextAVTransportURIMetaData</relatedStateVariable>"+
" </argument>"+
" </argumentList>"+
" </action>"+
" <action>"+
" <name>GetMediaInfo</name>"+
" <argumentList>"+
" <argument>"+
" <name>InstanceID</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>A_ARG_TYPE_InstanceID</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>NrTracks</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>NumberOfTracks</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>MediaDuration</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>CurrentMediaDuration</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>CurrentURI</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>AVTransportURI</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>CurrentURIMetaData</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>AVTransportURIMetaData</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>NextURI</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>NextAVTransportURI</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>NextURIMetaData</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>NextAVTransportURIMetaData</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>PlayMedium</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>PlaybackStorageMedium</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>RecordMedium</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>RecordStorageMedium</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>WriteStatus</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>RecordMediumWriteStatus </relatedStateVariable>"+
" </argument>"+
" </argumentList>"+
" </action>"+
" <action>"+
" <name>GetTransportInfo</name>"+
" <argumentList>"+
" <argument>"+
" <name>InstanceID</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>A_ARG_TYPE_InstanceID</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>CurrentTransportState</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>TransportState</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>CurrentTransportStatus</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>TransportStatus</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>CurrentSpeed</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>TransportPlaySpeed</relatedStateVariable>"+
" </argument>"+
" </argumentList>"+
" </action>"+
" <action>"+
" <name>GetPositionInfo</name>"+
" <argumentList>"+
" <argument>"+
" <name>InstanceID</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>A_ARG_TYPE_InstanceID</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>Track</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>CurrentTrack</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>TrackDuration</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>CurrentTrackDuration</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>TrackMetaData</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>CurrentTrackMetaData</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>TrackURI</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>CurrentTrackURI</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>RelTime</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>RelativeTimePosition</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>AbsTime</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>AbsoluteTimePosition</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>RelCount</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>RelativeCounterPosition</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>AbsCount</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>AbsoluteCounterPosition</relatedStateVariable>"+
" </argument>"+
" </argumentList>"+
" </action>"+
" <action>"+
" <name>GetDeviceCapabilities</name>"+
" <argumentList>"+
" <argument>"+
" <name>InstanceID</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>A_ARG_TYPE_InstanceID</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>PlayMedia</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>PossiblePlaybackStorageMedia</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>RecMedia</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>PossibleRecordStorageMedia</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>RecQualityModes</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>PossibleRecordQualityModes</relatedStateVariable>"+
" </argument>"+
" </argumentList>"+
" </action>"+
" <action>"+
" <name>GetTransportSettings</name>"+
" <argumentList>"+
" <argument>"+
" <name>InstanceID</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>A_ARG_TYPE_InstanceID</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>PlayMode</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>CurrentPlayMode</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>RecQualityMode</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>CurrentRecordQualityMode</relatedStateVariable>"+
" </argument>"+
" </argumentList>"+
" </action>"+
" <action>"+
" <name>Stop</name>"+
" <argumentList>"+
" <argument>"+
" <name>InstanceID</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>A_ARG_TYPE_InstanceID</relatedStateVariable>"+
" </argument>"+
" </argumentList>"+
" </action>"+
" <action>"+
" <name>Play</name>"+
" <argumentList>"+
" <argument>"+
" <name>InstanceID</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>A_ARG_TYPE_InstanceID</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>Speed</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>TransportPlaySpeed</relatedStateVariable>"+
" </argument>"+
" </argumentList>"+
" </action>"+
" <action> <Optional/>"+
" <name>Pause</name>"+
" <argumentList>"+
" <argument>"+
" <name>InstanceID</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>A_ARG_TYPE_InstanceID</relatedStateVariable>"+
" </argument>"+
" </argumentList>"+
" </action>"+
" <action> <Optional/>"+
" <name>Record</name>"+
" <argumentList>"+
" <argument>"+
" <name>InstanceID</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>A_ARG_TYPE_InstanceID</relatedStateVariable>"+
" </argument>"+
" </argumentList>"+
" </action>"+
" <action>"+
" <name>Seek</name>"+
" <argumentList>"+
" <argument>"+
" <name>InstanceID</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>A_ARG_TYPE_InstanceID</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>Unit</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>A_ARG_TYPE_SeekMode</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>Target</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>A_ARG_TYPE_SeekTarget</relatedStateVariable>"+
" </argument>"+
" </argumentList>"+
" </action>"+
" <action>"+
" <name>Next</name>"+
" <argumentList>"+
" <argument>"+
" <name>InstanceID</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>A_ARG_TYPE_InstanceID</relatedStateVariable>"+
" </argument>"+
" </argumentList>"+
" </action>"+
" <action>"+
" <name>Previous</name>"+
" <argumentList>"+
" <argument>"+
" <name>InstanceID</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>A_ARG_TYPE_InstanceID</relatedStateVariable>"+
" </argument>"+
" </argumentList>"+
" </action>"+
" <action> <Optional/>"+
" <name>SetPlayMode</name>"+
" <argumentList>"+
" <argument>"+
" <name>InstanceID</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>A_ARG_TYPE_InstanceID</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>NewPlayMode</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>CurrentPlayMode</relatedStateVariable>"+
" </argument>"+
" </argumentList>"+
" </action>"+
" <action> <Optional/>"+
" <name>SetRecordQualityMode</name>"+
" <argumentList>"+
" <argument>"+
" <name>InstanceID</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>A_ARG_TYPE_InstanceID</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>NewRecordQualityMode</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>CurrentRecordQualityMode</relatedStateVariable>"+
" </argument>"+
" </argumentList>"+
" </action>"+
" <action> <Optional/>"+
" <name>GetCurrentTransportActions</name>"+
" <argumentList>"+
" <argument>"+
" <name>InstanceID</name>"+
" <direction>in</direction>" +
" <relatedStateVariable>A_ARG_TYPE_InstanceID</relatedStateVariable>"+
" </argument>"+
" <argument>"+
" <name>Actions</name>"+
" <direction>out</direction>" +
" <relatedStateVariable>CurrentTransportActions</relatedStateVariable>"+
" </argument>"+
" </argumentList>"+
" </action>"+
" </actionList>"+
"</scpd>";
////////////////////////////////////////////////
// Constructor
////////////////////////////////////////////////
public AVTransport(MediaRenderer render)
{
setMediaRenderer(render);
avTransInfoList = new AVTransportInfoList();
}
////////////////////////////////////////////////
// MediaRender
////////////////////////////////////////////////
private MediaRenderer mediaRenderer;
private void setMediaRenderer(MediaRenderer render)
{
mediaRenderer = render;
}
public MediaRenderer getMediaRenderer()
{
return mediaRenderer;
}
////////////////////////////////////////////////
// Mutex
////////////////////////////////////////////////
private Mutex mutex = new Mutex();
public void lock()
{
mutex.lock();
}
public void unlock()
{
mutex.unlock();
}
////////////////////////////////////////////////
// AVTransportInfoList
////////////////////////////////////////////////
private AVTransportInfoList avTransInfoList;
public AVTransportInfoList getAvTransInfoList()
{
return avTransInfoList;
}
////////////////////////////////////////////////
// AVTransportInfo (Current)
////////////////////////////////////////////////
public void setCurrentAvTransInfo(AVTransportInfo avTransInfo)
{
AVTransportInfoList avTransInfoList = getAvTransInfoList();
synchronized (avTransInfoList) {
if (1 <= avTransInfoList.size())
avTransInfoList.remove(0);
avTransInfoList.insertElementAt(avTransInfo, 0);
}
}
public AVTransportInfo getCurrentAvTransInfo()
{
AVTransportInfo avTransInfo = null;
synchronized (avTransInfoList) {
if (avTransInfoList.size() < 1)
return null;
avTransInfo = avTransInfoList.getAVTransportInfo(0);
}
return avTransInfo;
}
////////////////////////////////////////////////
// AVTransportInfo (Current)
////////////////////////////////////////////////
public void setNextAvTransInfo(AVTransportInfo avTransInfo)
{
synchronized (avTransInfoList) {
if (2 <= avTransInfoList.size())
avTransInfoList.remove(0);
avTransInfoList.insertElementAt(avTransInfo, 1);
}
}
public AVTransportInfo getNextAvTransInfo()
{
AVTransportInfo avTransInfo = null;
synchronized (avTransInfoList) {
if (avTransInfoList.size() < 2)
return null;
avTransInfo = avTransInfoList.getAVTransportInfo(1);
}
return avTransInfo;
}
////////////////////////////////////////////////
// ActionListener
////////////////////////////////////////////////
public boolean actionControlReceived(Action action)
{
boolean isActionSuccess;
String actionName = action.getName();
if (actionName == null)
return false;
isActionSuccess = false;
if (actionName.equals(SETAVTRANSPORTURI) == true) {
AVTransportInfo avTransInfo = new AVTransportInfo();
avTransInfo.setInstanceID(action.getArgument(INSTANCEID).getIntegerValue());
avTransInfo.setURI(action.getArgument(CURRENTURI).getValue());
avTransInfo.setURIMetaData(action.getArgument(CURRENTURIMETADATA).getValue());
setCurrentAvTransInfo(avTransInfo);
isActionSuccess = true;
}
if (actionName.equals(SETNEXTAVTRANSPORTURI) == true) {
AVTransportInfo avTransInfo = new AVTransportInfo();
avTransInfo.setInstanceID(action.getArgument(INSTANCEID).getIntegerValue());
avTransInfo.setURI(action.getArgument(NEXTURI).getValue());
avTransInfo.setURIMetaData(action.getArgument(NEXTURIMETADATA).getValue());
setNextAvTransInfo(avTransInfo);
isActionSuccess = true;
}
if (actionName.equals(GETMEDIAINFO) == true) {
int instanceID = action.getArgument(INSTANCEID).getIntegerValue();
synchronized (avTransInfoList) {
int avTransInfoCnt = avTransInfoList.size();
for (int n=0; n<avTransInfoCnt; n++) {
AVTransportInfo avTransInfo = avTransInfoList.getAVTransportInfo(n);
if (avTransInfo == null)
continue;
if (avTransInfo.getInstanceID() != instanceID)
continue;
action.getArgument(CURRENTURI).setValue(avTransInfo.getURI());
action.getArgument(CURRENTURIMETADATA).setValue(avTransInfo.getURIMetaData());
isActionSuccess = true;
}
}
return false;
}
if (actionName.equals(PLAY) == true) {
int instanceID = action.getArgument(INSTANCEID).getIntegerValue();
int speed = action.getArgument(SPEED).getIntegerValue();
isActionSuccess = true;
}
if (actionName.equals(STOP) == true) {
int instanceID = action.getArgument(INSTANCEID).getIntegerValue();
isActionSuccess = true;
}
if (actionName.equals(PAUSE) == true) {
int instanceID = action.getArgument(INSTANCEID).getIntegerValue();
isActionSuccess = true;
}
/*
if (actionName.equals(PREPARE_FOR_CONNECTION) == true) {
action.getArgument(CONNECTION_ID).setValue(-1);
action.getArgument(AV_TRNSPORT_ID).setValue(-1);
action.getArgument(RCS_ID).setValue(-1);
return true;
}
if (actionName.equals(CONNECTION_COMPLETE) == true) {
return true;
}
if (actionName.equals(GET_CURRENT_CONNECTION_INFO) == true)
return getCurrentConnectionInfo(action);
if (actionName.equals(GET_CURRENT_CONNECTION_IDS) == true)
return getCurrentConnectionIDs(action);
*/
MediaRenderer dmr = getMediaRenderer();
if (dmr != null) {
ActionListener listener = dmr.getActionListener();
if (listener != null)
listener.actionControlReceived(action);
}
return isActionSuccess;
}
////////////////////////////////////////////////
// QueryListener
////////////////////////////////////////////////
public boolean queryControlReceived(StateVariable stateVar)
{
return false;
}
}
|
{
"content_hash": "05252a22391cdfcaba689c70e1ab7faf",
"timestamp": "",
"source": "github",
"line_count": 846,
"max_line_length": 98,
"avg_line_length": 41.695035460992905,
"alnum_prop": 0.5388671542779384,
"repo_name": "gpfduoduo/cybergarage-upnp",
"id": "03731f28c1780c40dbded89dbf3676b6c1fa6449",
"size": "35554",
"binary": false,
"copies": "5",
"ref": "refs/heads/master",
"path": "std/src/main/java/org/cybergarage/upnp/std/av/renderer/AVTransport.java",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Java",
"bytes": "778742"
}
]
}
|
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.42000
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
Namespace My
'NOTE: This file is auto-generated; do not modify it directly. To make changes,
' or if you encounter build errors in this file, go to the Project Designer
' (go to Project Properties or double-click the My Project node in
' Solution Explorer), and make changes on the Application tab.
'
Partial Friend Class MyApplication
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
Public Sub New()
MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
Me.IsSingleInstance = false
Me.EnableVisualStyles = true
Me.SaveMySettingsOnExit = true
Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses
End Sub
<Global.System.Diagnostics.DebuggerStepThroughAttribute()> _
Protected Overrides Sub OnCreateMainForm()
Me.MainForm = Global.bus_rode_add.Form1
End Sub
End Class
End Namespace
|
{
"content_hash": "65227560c23b8ba935ba268351f7716e",
"timestamp": "",
"source": "github",
"line_count": 38,
"max_line_length": 112,
"avg_line_length": 38.26315789473684,
"alnum_prop": 0.6231086657496562,
"repo_name": "yyc12345/bus_rode_windows",
"id": "e624a55303fbdf40eba10379b5b07be1c8064874",
"size": "1456",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "bus_rode_add/My Project/Application.Designer.vb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "160228"
}
]
}
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_66) on Mon Dec 14 15:42:38 CST 2015 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Package play.deps (Play! API)</title>
<meta name="date" content="2015-12-14">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Package play.deps (Play! API)";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li>Class</li>
<li class="navBarCell1Rev">Use</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-all.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../index.html?play/deps/package-use.html" target="_top">Frames</a></li>
<li><a href="package-use.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 title="Uses of Package play.deps" class="title">Uses of Package<br>play.deps</h1>
</div>
<div class="contentContainer">
<ul class="blockList">
<li class="blockList">
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <a href="../../play/deps/package-summary.html">play.deps</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Package</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="#play.deps">play.deps</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="play.deps">
<!-- -->
</a>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../play/deps/package-summary.html">play.deps</a> used by <a href="../../play/deps/package-summary.html">play.deps</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../play/deps/class-use/HumanReadyLogger.html#play.deps">HumanReadyLogger</a> </td>
</tr>
</tbody>
</table>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li>Class</li>
<li class="navBarCell1Rev">Use</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-all.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../index.html?play/deps/package-use.html" target="_top">Frames</a></li>
<li><a href="package-use.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small><a href=http://guillaume.bort.fr>Guillaume Bort</a> & <a href=http://www.zenexity.fr>zenexity</a> - Distributed under <a href=http://www.apache.org/licenses/LICENSE-2.0.html>Apache 2 licence</a>, without any warrantly</small></p>
</body>
</html>
|
{
"content_hash": "b250be1412aa372db85e0b9b7aa1e96d",
"timestamp": "",
"source": "github",
"line_count": 159,
"max_line_length": 261,
"avg_line_length": 33.79245283018868,
"alnum_prop": 0.6339102922017494,
"repo_name": "play1-maven-plugin/play1-maven-plugin.github.io",
"id": "9c3c98726deb1d7dcbd90978a63c90de4a996d1f",
"size": "5373",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "external-apidocs/com/google/code/maven-play-plugin/org/playframework/play/1.2.6.2/play/deps/package-use.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "245466"
},
{
"name": "HTML",
"bytes": "161333450"
},
{
"name": "JavaScript",
"bytes": "11578"
}
]
}
|
ACCEPTED
#### According to
Index Fungorum
#### Published in
null
#### Original name
Lecanora pallidesulphurea Schaer.
### Remarks
null
|
{
"content_hash": "ef6e89018e44de5ffd9f2166f735fcb2",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 33,
"avg_line_length": 10.615384615384615,
"alnum_prop": 0.7246376811594203,
"repo_name": "mdoering/backbone",
"id": "3a27a8e506d0ce81b87a50412bf56d51e8a986a6",
"size": "195",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Fungi/Ascomycota/Lecanoromycetes/Lecanorales/Lecanoraceae/Lecanora/Lecanora pallidesulphurea/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": []
}
|
<link rel="import" href="../bower_components/polymer/polymer.html">
<link rel="import" href="../post-service/post-service.html">
<link rel="import" href="custom-keyboard.html">
<polymer-element name="post-list" attributes="show">
<template>
<style>
:host {
display: block;
width: 100%;
}
post-card {
margin-bottom: 30px;
}
</style>
<!-- add markup here -->
<post-service id="service" question="{{question}}">
</post-service>
<div layout vertical center>
<custom-keyboard
id="keyboard"
reponse="{{question.questions.reponse}}"
on-favorite-tap="{{handleFavorite}}">
<p>{{question.questions.question}}</p>
</custom-keyboard>
</div>
</template>
<script>
Polymer({
handleFavorite: function(event, detail, sender) {
var question = sender.templateInstance.model.question;
this.$.service.setFavorite(question.questions.reponse, question.questions.question);
location.href = "#rep";
//this.$.keyboard.toggle();
}
});
</script>
</polymer-element>
|
{
"content_hash": "4d54600069aaee6705b19bf0e08b8ae3",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 88,
"avg_line_length": 22.76086956521739,
"alnum_prop": 0.6427889207258835,
"repo_name": "squalll/intechQuiz",
"id": "09fc3fb7c28a63fba81a03533f778d628cbbe249",
"size": "1047",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "public2/components/post-list.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "1330"
},
{
"name": "HTML",
"bytes": "16247"
},
{
"name": "JavaScript",
"bytes": "219060"
}
]
}
|
async some
## Installation
$ component install enricomarino/async-some
## License
(The MIT License)
Copyright (c) 2013 Enrico Marino
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.
|
{
"content_hash": "0bfb7e05d1ba36577a6779b9a7093cae",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 70,
"avg_line_length": 38.86666666666667,
"alnum_prop": 0.7975986277873071,
"repo_name": "enricomarino/async-some",
"id": "673e51b77462dda19cd31f9ec31ea28d12b5533c",
"size": "1180",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "529"
}
]
}
|
[](https://travis-ci.org/graves/mongoid_extended_dirty_trackable)
# Mongoid::ExtendedDirtyTrackable
A Mongoid Extension that gives you the ability to track changes to embedded and related documents through a parent.
It was born from a need in a production app I work on from which it was extracted. If you'd like a pretty detailed run down of what exactly the code is doing you can find it on [my blog.](http://blog.ooo.pm/dirty-tracking-embedded-documents-with-mongoid/)
I don't consider this Gem production ready. Mostly because I ran into some issues when writing the specs after Gemifying the original Concern. None of these problems exist in my production app so I'm led to believe they are the result of the _hack_ job I did setting up and tearing down mongo for the tests. I plan on working these issues out in the near future and if you'd like to know more check out my [blog post that covers them.](http://blog.ooo.pm/post-im-gonna-write-tomorrow-morning)
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'mongoid_extended_dirty_trackable'
```
And then execute:
$ bundle
Or install it yourself with:
$ gem install mongoid_extended_dirty_trackable
## Usage
I tried to make the specs work as documentation but for those of you averse to reading them I'll make it easy for you.
```ruby
class Account
include Mongoid::Document
include Mongoid::ExtendedDirtyTrackable
field :name
embeds_one :address
embeds_many :invoices
has_many :offices
end
account = Account.create(name: "Prestige Worldwide")
account.name = "Umbrella Corp"
account.changed? #=> true
account.changes["name"] #=> ["Prestige Worldwide", "Umbrella Corp"]
account.create_address(zipcode: "90210")
account.address.zipcode = "1000 AS"
account.changed? #=> true
account.changes["zipcode"] #=> ["90210", "1000 AS"]
account.invoices.create(total: 420.00)
account.invoices.first.total = 69.69
account.changed? #=> true
account.changes["total"] #=> [420.00, 69.69]
office = account.offices.create(number: 666)
office.number = 5446
account.changed? #=> true
account.changes["number"] #=> [666, 5446]
```
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
## Contributing
All pull requests are met with open arms and gratitude.
Check the TODO file or the Github Issue tracker for suggestions on where to begin.
Please be sure your pull request includes descriptive commit messages and tests that cover your feature, change, or bug.
1. Fork it ( https://github.com/graves/mongoid_extended_dirty_trackable/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Similar Projects
[versative/mongoid_relations_dirty_tracking](https://github.com/versative/mongoid_relations_dirty_tracking) - This is a little more full featured and much more in the direction I plan on taking but I feel like it can be done in a more simple manner with less code.
[millisami/gist:721466](https://gist.github.com/millisami/721466) - The code in this Gist no longer works or maybe it never did but it served as the inspiration for my Gem. Thanks [millisami!](https://github.com/millisami)
|
{
"content_hash": "c6320d2680703317d661a66ee22485b5",
"timestamp": "",
"source": "github",
"line_count": 87,
"max_line_length": 492,
"avg_line_length": 42.206896551724135,
"alnum_prop": 0.7197712418300654,
"repo_name": "graves/mongoid_extended_dirty_trackable",
"id": "a18e811de860feaa80be73333f3b326011088542",
"size": "3672",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ruby",
"bytes": "5465"
},
{
"name": "Shell",
"bytes": "115"
}
]
}
|
namespace :vlad do
namespace :delayed_job do
set(:delayed_job_cmd) { 'script/delayed_job' }
set(:dj_processes_count) { nil }
%w(start restart stop).each do |task|
desc "#{task.capitalize} the delayed_job process(es)"
remote_task task.to_sym, :roles => :app do
processes = dj_processes_count and task=~/start/ ? "-n #{dj_processes_count}" : ''
puts "[Delayed Job] #{task.capitalize}"
run "cd #{current_path} && RAILS_ENV=#{rails_env} #{delayed_job_cmd} #{task} #{processes}"
end
end
end
end
|
{
"content_hash": "908aaa5b2bb8c96b9f5d01e17f84de50",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 98,
"avg_line_length": 31.055555555555557,
"alnum_prop": 0.6046511627906976,
"repo_name": "dennisreimann/vlad-extras",
"id": "3a777a2cb3058d400b950b8e7c68475bd0073b70",
"size": "786",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/vlad/delayed_job.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ruby",
"bytes": "27583"
}
]
}
|
layout: post
disqus: "true"
title: "Conceptos de Cartografía III"
date: 2015-12-30 20:36:00
modified: 2016-01-10
categories: Cartography
urlshort: http://bit.ly/1TNTmHi
mathjax: true
---
Este es el tercer post a cerca de fundamentos cartográficos. En esta entrada voy a tratar los diferentes sistemas de coordenadas.
Es muy común que se manejen diferentes tipos de coordenadas, sobre diferentes sistemas y en todos los casos se deben de saber manejar y usar correctamente en su respectivo contexto.
El fundamento inicial de cualquier sistema de coordenadas es permitir la definición de un objeto en el espacio. Desde un punto de vista matemático cualquier sistema sería admisible para ello. Sin embargo, para usos cartográficos utilizamos los que describen de forma más sencilla y práctica un objeto.
Los sitemas se pueden clasificar en función de:
+ **La situación de su origen**
* Sistemas **topocéntricos**: origen en un punto en la superficie terrestre.
* Sistemas **geocéntricos**: origen en centro de masas terrestre.
+ **El tipo de coordenadas**
* Coordenadas **carterianas**:
- Geocéntricas ($X,Y,Z$)
- Locales ($x,y,z$)
* Coordenadas **curvilíneas**:
- Polares
- Esféricas
- _Geodésicas o geográficas_
- Astronómicas
* Coordenadas en **proyección**:
- Sobre superficie _desarrollable_ (UTM, Lambert): **_cartesianas_**
- Sobre superficie no desarrollable : curvilíneas
Muchos de estos sitemas son utilizados en topografía, geodésia y astronomía. Sin embargo son muy poco frecuentes dentro del mundo del GIS. En este contexto los sistemas más comúnmente usados los sistemas curvilíneos geodésicos y los sistemas proyectados sobre superficies desarrollables (UTM). Por ello voy a entrar más en detalle con estos:
#### Coordenadas Geodésicas (geográficas)
Como se ha comentado en entradas anteriores de esta serie, la inmensa mayoría de sistemas de referencia tienen como base un elipsoide de revolución. El utilizar un elipsoide de referencia implica que para un punto P sobre la superficie se corresponde una proyección P' sobre el elipsoide, y a su vez la posición de ese punto mediante dos coordenadas correspondientes a la parametrización de la superficie del elipsoide ($φ,$λ).
+ *Latitud ($φ$*): Ángulo medido en el plano meridiano que forman la normal al elipsoide en el punto P y el plano del ecuador. Los valores se encuentran entre $π/2 < φ < π/2$
+ *Longitud ($λ$*): Ángulo medido en el plano del ecuador que forman el plano meridiano que contiene al punto P y el plano meridiano de Greenwich. Los valores se encuentran entre $-π < φ < π$

#### Coordenadas proyectadas (UTM)
En cartografía se emplean las proyecciones para representar en un plano (2D) la situación de puntos sobre la Tierra (3D). Para poder realizar esta labor se utilizan las proyecciones cartográficas ([+info]({{site.url}}/cartography/2015/12/27/conceptos-webmapping-II/)). Una de las más utilizadas en la proyección UTM. Esta proyeción lo que hace es asignar a cada punto de coordenadas ($φ,$λ) unas coordenadas carterianas ($x,$y) sobre un plano, siguiendo unas determinadas condiciones de conformidad. Ver definición completa en la [Wikipedia](https://es.wikipedia.org/wiki/Sistema_de_coordenadas_universal_transversal_de_Mercator)

+ **Características de la proyección UTM**
La división de la tierra por sus meridianos y pararlelos hace que se genere una "malla" o "rejilla". Esta malla sienta la base para definir el concepto de *Huso*, que son todas aquellas posiciones geográficas que ocupan los puntos entre dos meridianos. Cada uno de ellos será de $6^0$.
Además esto nos lleva a otro concepto que es el *meridiano central del huso*. Este es el punto donde el cilindro es tangente a la esfera con lo que los puntos que se sitúen sobre este meridiano no tendrán deformación alguna al proyectarse. Sobre esta línea, el módulo de deformación lineal $K$ es 1, aumentando linealmente conforme nos alejamos del mismo.
|
{
"content_hash": "981708d4250ca7283b80acac350d4440",
"timestamp": "",
"source": "github",
"line_count": 52,
"max_line_length": 629,
"avg_line_length": 81.40384615384616,
"alnum_prop": 0.7647058823529411,
"repo_name": "ccabanes/ccabanes.github.io",
"id": "b30744db55bd478aee4ac585328160cbd4bb1932",
"size": "4307",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "_posts/2015-12-30-conceptos-webmapping-III.markdown",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "95231"
},
{
"name": "HTML",
"bytes": "240404"
},
{
"name": "JavaScript",
"bytes": "1052236"
}
]
}
|
from pybald.core.controllers import BaseController
from pybald.core import pybald_class_loader
controllers_path = __path__[0]
__all__ = pybald_class_loader(controllers_path, (BaseController,), globals(), locals())
|
{
"content_hash": "1011d29ef04dfcb1d27cabb4c623f9a3",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 87,
"avg_line_length": 53.25,
"alnum_prop": 0.7699530516431925,
"repo_name": "mikepk/jotbits",
"id": "9b56f0c6c47f8c17da795c6b53a5f8b1c362f356",
"size": "253",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/controllers/__init__.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "1015"
},
{
"name": "Python",
"bytes": "16119"
}
]
}
|
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
/// <summary>
/// Load all game data from database and prepare the models
/// </summary>
public class GameDataController : MonoBehaviour {
private SqliteController sqliteController;
public static Dictionary<long, BuildingTypesModel> buildingTypes;
public static Dictionary<long, ResourceTypesModel> resourceTypes;
public static Dictionary<long, EpochModel> epochs;
public static Dictionary<long, TechnologyModel> technologies;
public static List<BuildingModel> playerBuildings;
public static Dictionary<ResourceTypesModel, float> playerResources;
// Use this for initialization
void Start () {
DontDestroyOnLoad(gameObject);
sqliteController = new SqliteController(Application.dataPath);
if (sqliteController.LoadGameData()) {
buildingTypes = sqliteController.GetBuildingTypes();
resourceTypes = sqliteController.GetResourceTypes();
epochs = sqliteController.GetEpochs();
technologies = sqliteController.GetTechnologies();
playerBuildings = sqliteController.GetPlayerBuildings();
playerResources = sqliteController.GetPlayerResources();
SceneManager.LoadScene("MainScene");
}
else {
Debug.LogError("Error while loading game data");
}
}
}
|
{
"content_hash": "507dae7f08607ae10d363e174ecb17cc",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 72,
"avg_line_length": 40.4,
"alnum_prop": 0.7128712871287128,
"repo_name": "bambusa/Domini",
"id": "56a15b6bfea99011d6c4a771519851f19997344e",
"size": "1416",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Assets/Controller/GameDataController.cs",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C#",
"bytes": "465313"
},
{
"name": "GLSL",
"bytes": "336590"
}
]
}
|
local default_output_file = nil
function LuaExportStart()
ConnectToResponder()
end
function ConnectToResponder()
package.path = package.path..";"..lfs.currentdir().."/LuaSocket/?.lua"
package.cpath = package.cpath..";"..lfs.currentdir().."/LuaSocket/?.dll"
socket = require("socket")
host = "localhost"
port = 9514
c = socket.connect(host, port) -- connect to the listener socket
if c == nil then
return
end
c:setoption("tcp-nodelay",true) -- set immediate transmission mode
end
function LuaExportBeforeNextFrame()
end
function LuaExportAfterNextFrame()
end
function LuaExportStop()
socket.try(c:send("quit"))
c:close()
end
function LuaExportActivityNextEvent(t)
local tNext = t
if c == nil then
return
else
local t = LoGetModelTime()
local name = LoGetPilotName()
local altBar = LoGetAltitudeAboveSeaLevel()
local altRad = LoGetAltitudeAboveGroundLevel()
local speedTrue = LoGetTrueAirSpeed()
local speedInstr = LoGetIndicatedAirSpeed()
local verticalSpeed = LoGetVerticalVelocity()
if name == nil then
name = ""
end
if altBar == nil then
altBar = 0
end
if altRad == nil then
altRad = 0
end
if speedTrue == nil then
speedTrue = 0
end
if speedInstr == nil then
speedInstr = 0
end
if verticalSpeed == nil then
verticalSpeed = 0
end
local plainInfo = LoGetSelfData()
if plainInfo == nil then
plainInfo = {}
plainInfo.LatLongAlt = {}
plainInfo.LatLongAlt.Lat = 0
plainInfo.LatLongAlt.Long = 0
plainInfo.Heading = 0
end
local payload = "{"
payload = payload..string.format("\"time\":\"%.2f\",", t)
payload = payload..string.format("\"name\":\"%s\",", name)
payload = payload..string.format("\"altBar\":\"%.2f\",", altBar)
payload = payload..string.format("\"alrRad\":\"%.2f\",", altRad)
payload = payload..string.format("\"speedTrue\":\"%.2f\",", speedTrue)
payload = payload..string.format("\"speedInstrumental\":\"%.2f\",", speedInstr)
payload = payload..string.format("\"vspeed\":\"%.2f\",", verticalSpeed)
payload = payload.."\"navigation\": {"
payload = payload..string.format("\"heading\":\"%f\",", plainInfo.Heading)
payload = payload..string.format("\"lat\":\"%f\",", plainInfo.LatLongAlt.Lat)
payload = payload..string.format("\"long\":\"%f\"", plainInfo.LatLongAlt.Long)
payload = payload.."}"
payload = payload.."}\n"
local sentResult = c:send(payload)
if sentResult == nil then
c:close()
c = nil
end
end
tNext = tNext + 0.3
return tNext
end
|
{
"content_hash": "b694e3347a06c57bbaae50591d02d5f1",
"timestamp": "",
"source": "github",
"line_count": 99,
"max_line_length": 81,
"avg_line_length": 26.424242424242426,
"alnum_prop": 0.6422018348623854,
"repo_name": "primebit/DCS_Remote_Cockpit",
"id": "a1dfd16ec30a028c3882d16b4d421335193b3557",
"size": "2616",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Export.lua",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "1566"
},
{
"name": "Go",
"bytes": "3523"
},
{
"name": "HTML",
"bytes": "5020"
},
{
"name": "JavaScript",
"bytes": "1272"
},
{
"name": "Lua",
"bytes": "5664"
}
]
}
|
include("InstanceManager");
include("TechAndCivicSupport");
include("SupportFunctions");
include("GameCapabilities");
-- Hotloading note: The World Tracker button check now positions based on how many hooks are showing.
-- You'll need to save "LaunchBar" to see the tracker button appear.
-- ===========================================================================
-- CONSTANTS
-- ===========================================================================
local RELOAD_CACHE_ID:string = "WorldTracker"; -- Must be unique (usually the same as the file name)
local MAX_BEFORE_TRUNC_TRACKER :number = 180;
local MAX_BEFORE_TRUNC_CHECK :number = 160;
local MAX_BEFORE_TRUNC_TITLE :number = 225;
local LAUNCH_BAR_PADDING :number = 50;
local WORLD_TRACKER_PANEL_WIDTH :number = 300;
local STARTING_TRACKER_OPTIONS_OFFSET :number = 75;
-- ===========================================================================
-- VARIABLES
-- ===========================================================================
local m_hideAll :boolean = false;
local m_prevHideAll :boolean = false;
local m_hideChat :boolean = false;
local m_hideCivics :boolean = false;
local m_hideResearch :boolean = false;
local m_dropdownExpanded :boolean = false;
local m_unreadChatMsgs :number = 0; -- number of chat messages unseen due to the chat panel being hidden.
local m_researchInstance :table = {}; -- Single instance wired up for the currently being researched tech
local m_civicsInstance :table = {}; -- Single instance wired up for the currently being researched civic
local m_currentResearchID :number = -1;
local m_lastResearchCompletedID :number = -1;
local m_currentCivicID :number = -1;
local m_lastCivicCompletedID :number = -1;
local m_TrackerAlwaysVisuallyCollapsed:boolean = false; -- Once the launch bar extends past the width of the world tracker, we always show the collapsed version of the backing for the tracker element
function RealizeEmptyMessage()
if(m_hideChat and m_hideCivics and m_hideResearch) then
Controls.EmptyPanel:SetHide(false);
else
Controls.EmptyPanel:SetHide(true);
end
end
-- ===========================================================================
function ToggleDropdown()
if m_dropdownExpanded then
m_dropdownExpanded = false;
Controls.DropdownAnim:Reverse();
Controls.DropdownAnim:Play();
UI.PlaySound("Tech_Tray_Slide_Closed");
else
UI.PlaySound("Tech_Tray_Slide_Open");
m_dropdownExpanded = true;
Controls.DropdownAnim:SetToBeginning();
Controls.DropdownAnim:Play();
end
end
-- ===========================================================================
function ToggleAll(hideAll:boolean)
-- Do nothing if value didn't change
if m_hideAll == hideAll then return; end
m_hideAll = hideAll;
if(not hideAll) then
Controls.PanelStack:SetHide(false);
UI.PlaySound("Tech_Tray_Slide_Open");
end
Controls.ToggleAllButton:SetCheck(not m_hideAll);
if ( not m_TrackerAlwaysVisuallyCollapsed) then
Controls.TrackerHeading:SetHide(hideAll);
Controls.TrackerHeadingCollapsed:SetHide(not hideAll);
else
Controls.TrackerHeading:SetHide(true);
Controls.TrackerHeadingCollapsed:SetHide(false);
end
if( hideAll ) then
UI.PlaySound("Tech_Tray_Slide_Closed");
if( m_dropdownExpanded ) then
Controls.DropdownAnim:SetToBeginning();
m_dropdownExpanded = false;
end
end
Controls.WorldTrackerAlpha:Reverse();
Controls.WorldTrackerSlide:Reverse();
CheckUnreadChatMessageCount();
LuaEvents.WorldTracker_ToggleCivicPanel(m_hideCivics or m_hideAll);
LuaEvents.WorldTracker_ToggleResearchPanel(m_hideResearch or m_hideAll);
end
function OnWorldTrackerAnimationFinished()
if(m_hideAll) then
Controls.PanelStack:SetHide(true);
end
end
-- When the launch bar is resized, make sure that we adjust the world tracker button position/size to accommodate it
function OnLaunchBarResized( buttonStackSize: number)
Controls.TrackerHeading:SetSizeX(buttonStackSize + LAUNCH_BAR_PADDING);
Controls.TrackerHeadingCollapsed:SetSizeX(buttonStackSize + LAUNCH_BAR_PADDING);
if( buttonStackSize > WORLD_TRACKER_PANEL_WIDTH - LAUNCH_BAR_PADDING) then
m_TrackerAlwaysVisuallyCollapsed = true;
Controls.TrackerHeading:SetHide(true);
Controls.TrackerHeadingCollapsed:SetHide(false);
else
m_TrackerAlwaysVisuallyCollapsed = false;
Controls.TrackerHeading:SetHide(m_hideAll);
Controls.TrackerHeadingCollapsed:SetHide(not m_hideAll);
end
Controls.ToggleAllButton:SetOffsetX(buttonStackSize - 7);
end
-- ===========================================================================
function RealizeStack()
Controls.PanelStack:CalculateSize();
Controls.PanelStack:ReprocessAnchoring();
if(m_hideAll) then ToggleAll(true); end
end
-- ===========================================================================
function UpdateResearchPanel( isHideResearch:boolean )
if not HasCapability("CAPABILITY_TECH_CHOOSER") then
isHideResearch = true;
Controls.ResearchCheck:SetHide(true);
end
if isHideResearch ~= nil then
m_hideResearch = isHideResearch;
end
m_researchInstance.MainPanel:SetHide( m_hideResearch );
Controls.ResearchCheck:SetCheck( not m_hideResearch );
LuaEvents.WorldTracker_ToggleResearchPanel(m_hideResearch or m_hideAll);
RealizeEmptyMessage();
RealizeStack();
-- Set the technology to show (or -1 if none)...
local iTech :number = m_currentResearchID;
if m_currentResearchID == -1 then
iTech = m_lastResearchCompletedID;
end
local ePlayer :number = Game.GetLocalPlayer();
local pPlayer :table = Players[ePlayer];
local pPlayerTechs :table = pPlayer:GetTechs();
local kTech :table = (iTech ~= -1) and GameInfo.Technologies[ iTech ] or nil;
local kResearchData :table = GetResearchData( ePlayer, pPlayerTechs, kTech );
if iTech ~= -1 then
if m_currentResearchID == iTech then
kResearchData.IsCurrent = true;
elseif m_lastResearchCompletedID == iTech then
kResearchData.IsLastCompleted = true;
end
end
RealizeCurrentResearch( ePlayer, kResearchData, m_researchInstance );
-- No tech started (or finished)
if kResearchData == nil then
m_researchInstance.TitleButton:SetHide( false );
TruncateStringWithTooltip(m_researchInstance.TitleButton, MAX_BEFORE_TRUNC_TITLE, Locale.ToUpper(Locale.Lookup("LOC_WORLD_TRACKER_CHOOSE_RESEARCH")) );
m_researchInstance.MainPanel:LocalizeAndSetToolTip(nil); --ARISTOS: to avoid showing last tech tooltip when no tech chosen yet
else
-- ARISTOS: to show full tooltip in research panel
m_researchInstance.MainPanel:LocalizeAndSetToolTip(kResearchData.ToolTip);
end
end
-- ===========================================================================
function UpdateCivicsPanel(hideCivics:boolean)
if not HasCapability("CAPABILITY_CIVICS_CHOOSER") then
hideCivics = true;
Controls.CivicsCheck:SetHide(true);
end
if hideCivics ~= nil then
m_hideCivics = hideCivics;
end
m_civicsInstance.MainPanel:SetHide(m_hideCivics);
Controls.CivicsCheck:SetCheck(not m_hideCivics);
LuaEvents.WorldTracker_ToggleCivicPanel(m_hideCivics or m_hideAll);
RealizeEmptyMessage();
RealizeStack();
-- Set the civic to show (or -1 if none)...
local iCivic :number = m_currentCivicID;
if iCivic == -1 then
iCivic = m_lastCivicCompletedID;
end
local ePlayer :number = Game.GetLocalPlayer();
local pPlayer :table = Players[ePlayer];
local pPlayerCulture:table = pPlayer:GetCulture();
local kCivic :table = (iCivic ~= -1) and GameInfo.Civics[ iCivic ] or nil;
local kCivicData :table = GetCivicData( ePlayer, pPlayerCulture, kCivic );
if iCivic ~= -1 then
if m_currentCivicID == iCivic then
kCivicData.IsCurrent = true;
elseif m_lastCivicCompletedID == iCivic then
kCivicData.IsLastCompleted = true;
end
end
RealizeCurrentCivic( ePlayer, kCivicData, m_civicsInstance );
-- No civic started (or finished)
if kCivicData == nil then
m_civicsInstance.TitleButton:SetHide( false );
TruncateStringWithTooltip(m_civicsInstance.TitleButton, MAX_BEFORE_TRUNC_TITLE, Locale.ToUpper(Locale.Lookup("LOC_WORLD_TRACKER_CHOOSE_CIVIC")) );
m_civicsInstance.MainPanel:LocalizeAndSetToolTip(nil); --ARISTOS: to avoid showing last civic tooltip when no civic chosen yet
else
--TruncateStringWithTooltip(m_civicsInstance.TitleButton, MAX_BEFORE_TRUNC_TITLE, m_civicsInstance.TitleButton:GetText() );
-- ARISTOS: to show full tooltip in civics panel
m_civicsInstance.MainPanel:LocalizeAndSetToolTip(kCivicData.ToolTip);
end
end
-- ===========================================================================
function UpdateChatPanel(hideChat:boolean)
m_hideChat = hideChat;
Controls.ChatPanel:SetHide(m_hideChat);
Controls.ChatCheck:SetCheck(not m_hideChat);
RealizeEmptyMessage();
RealizeStack();
CheckUnreadChatMessageCount();
end
-- ===========================================================================
function CheckUnreadChatMessageCount()
-- Unhiding the chat panel resets the unread chat message count.
if(not hideAll and not m_hideChat) then
m_unreadChatMsgs = 0;
UpdateUnreadChatMsgs();
LuaEvents.WorldTracker_OnChatShown();
end
end
-- ===========================================================================
function UpdateUnreadChatMsgs()
if(m_unreadChatMsgs > 0) then
Controls.ChatCheck:GetTextButton():SetText(Locale.Lookup("LOC_HIDE_CHAT_PANEL_UNREAD_MESSAGES", m_unreadChatMsgs));
else
Controls.ChatCheck:GetTextButton():SetText(Locale.Lookup("LOC_HIDE_CHAT_PANEL"));
end
Controls.ChatCheck:ReprocessAnchoring();
end
-- ===========================================================================
-- Obtains full refresh and views most current research and civic IDs.
-- ===========================================================================
function Refresh()
local localPlayer :number = Game.GetLocalPlayer();
if localPlayer < 0 then
ToggleAll(true);
return;
end
local pPlayerTechs :table = Players[localPlayer]:GetTechs();
m_currentResearchID = pPlayerTechs:GetResearchingTech();
m_lastResearchCompletedID = -1;
UpdateResearchPanel();
local pPlayerCulture:table = Players[localPlayer]:GetCulture();
m_currentCivicID = pPlayerCulture:GetProgressingCivic();
m_lastCivicCompletedID = -1;
UpdateCivicsPanel();
-- Hide world tracker by default if there are no tracker options enabled
if( Controls.ChatCheck:IsHidden() and
Controls.CivicsCheck:IsHidden() and
Controls.ResearchCheck:IsHidden() ) then
ToggleAll(true);
end
end
-- ===========================================================================
-- Game Engine Event
-- ===========================================================================
function OnLocalPlayerTurnBegin()
local localPlayer = Game.GetLocalPlayer();
if localPlayer ~= -1 then
Refresh();
end
end
-- ===========================================================================
function OnCityInitialized( playerID:number, cityID:number )
if playerID == Game.GetLocalPlayer() then
Refresh();
end
end
-- ===========================================================================
function OnBuildingChanged( plotX:number, plotY:number, buildingIndex:number, playerID:number, iPercentComplete:number )
if playerID == Game.GetLocalPlayer() then
Refresh(); -- Buildings can change culture/science yield which can effect "turns to complete" values
end
end
-- ===========================================================================
-- Game Engine EVENT
-- A civic item has changed, this may not be the current civic item
-- but an item deeper in the tree that was just boosted by a player action.
-- ===========================================================================
function OnCivicChanged( ePlayer:number, eCivic:number )
local localPlayer = Game.GetLocalPlayer();
ResetOverflowArrow( m_civicsInstance );
if localPlayer ~= -1 and localPlayer == ePlayer then
local pPlayerCulture:table = Players[localPlayer]:GetCulture();
m_currentCivicID = pPlayerCulture:GetProgressingCivic();
m_lastCivicCompletedID = -1;
if eCivic == m_currentCivicID then
UpdateCivicsPanel();
end
end
end
-- ===========================================================================
function OnCivicCompleted( ePlayer:number, eCivic:number )
local localPlayer = Game.GetLocalPlayer();
if localPlayer ~= -1 and localPlayer == ePlayer then
m_currentCivicID = -1;
m_lastCivicCompletedID = eCivic;
UpdateCivicsPanel();
end
end
-- ===========================================================================
function OnCultureYieldChanged( ePlayer:number )
local localPlayer = Game.GetLocalPlayer();
if localPlayer ~= -1 and localPlayer == ePlayer then
UpdateCivicsPanel();
end
end
-- ===========================================================================
-- Game Engine EVENT
-- ===========================================================================
function OnInterfaceModeChanged(eOldMode:number, eNewMode:number)
if eNewMode == InterfaceModeTypes.VIEW_MODAL_LENS then
ContextPtr:SetHide(true);
end
if eOldMode == InterfaceModeTypes.VIEW_MODAL_LENS then
ContextPtr:SetHide(false);
end
end
-- ===========================================================================
-- Game Engine EVENT
-- A research item has changed, this may not be the current researched item
-- but an item deeper in the tree that was just boosted by a player action.
-- ===========================================================================
function OnResearchChanged( ePlayer:number, eTech:number )
local localPlayer = Game.GetLocalPlayer();
ResetOverflowArrow( m_researchInstance );
if localPlayer ~= -1 and localPlayer == ePlayer then
local pPlayerTechs :table = Players[localPlayer]:GetTechs();
m_currentResearchID = pPlayerTechs:GetResearchingTech();
m_lastResearchCompletedID = -1;
if eTech == m_currentResearchID then
UpdateResearchPanel();
end
end
end
function OnResearchCompleted( ePlayer:number, eTech:number )
if (ePlayer == Game.GetLocalPlayer()) then
m_currentResearchID = -1;
m_lastResearchCompletedID = eTech;
UpdateResearchPanel();
end
end
function OnResearchYieldChanged( ePlayer:number )
local localPlayer = Game.GetLocalPlayer();
if localPlayer ~= -1 and localPlayer == ePlayer then
UpdateResearchPanel();
end
end
-- ===========================================================================
function OnMultiplayerChat( fromPlayer, toPlayer, text, eTargetType )
-- If the chat panels are hidden, indicate there are unread messages waiting on the world tracker panel toggler.
if(m_hideAll or m_hideChat) then
m_unreadChatMsgs = m_unreadChatMsgs + 1;
UpdateUnreadChatMsgs();
end
end
-- ===========================================================================
-- HOT-RELOADING EVENTS
-- ===========================================================================
function OnInit(isReload:boolean)
if isReload then
LuaEvents.GameDebug_GetValues(RELOAD_CACHE_ID);
else
Refresh(); -- Standard refresh.
end
end
function OnShutdown()
LuaEvents.GameDebug_AddValue(RELOAD_CACHE_ID, "m_currentResearchID", m_currentResearchID);
LuaEvents.GameDebug_AddValue(RELOAD_CACHE_ID, "m_lastResearchCompletedID", m_lastResearchCompletedID);
LuaEvents.GameDebug_AddValue(RELOAD_CACHE_ID, "m_currentCivicID", m_currentCivicID);
LuaEvents.GameDebug_AddValue(RELOAD_CACHE_ID, "m_lastCivicCompletedID", m_lastCivicCompletedID);
end
function OnGameDebugReturn(context:string, contextTable:table)
if context == RELOAD_CACHE_ID then
m_currentResearchID = contextTable["m_currentResearchID"];
m_lastResearchCompletedID = contextTable["m_lastResearchCompletedID"];
m_currentCivicID = contextTable["m_currentCivicID"];
m_lastCivicCompletedID = contextTable["m_lastCivicCompletedID"];
if m_currentResearchID == nil then m_currentResearchID = -1; end
if m_lastResearchCompletedID == nil then m_lastResearchCompletedID = -1; end
if m_currentCivicID == nil then m_currentCivicID = -1; end
if m_lastCivicCompletedID == nil then m_lastCivicCompletedID = -1; end
-- Don't call refresh, use cached data from last hotload.
UpdateResearchPanel();
UpdateCivicsPanel();
end
end
-- ===========================================================================
function OnTutorialGoalsShowing()
RealizeStack();
end
-- ===========================================================================
function OnTutorialGoalsHiding()
RealizeStack();
end
-- ===========================================================================
function Initialize()
-- Create semi-dynamic instances; hack: change parent back to self for ordering:
ContextPtr:BuildInstanceForControl( "ResearchInstance", m_researchInstance, Controls.PanelStack );
ContextPtr:BuildInstanceForControl( "CivicInstance", m_civicsInstance, Controls.PanelStack );
Controls.ChatPanel:ChangeParent( Controls.PanelStack );
Controls.TutorialGoals:ChangeParent( Controls.PanelStack );
-- Handle any text overflows with truncation and tooltip
local fullString :string = Controls.WorldTracker:GetText();
Controls.DropdownScroll:SetOffsetY(Controls.WorldTrackerHeader:GetSizeY() + STARTING_TRACKER_OPTIONS_OFFSET);
Controls.ChatCheck:ReprocessAnchoring();
-- Hot-reload events
ContextPtr:SetInitHandler(OnInit);
ContextPtr:SetShutdown(OnShutdown);
LuaEvents.GameDebug_Return.Add(OnGameDebugReturn);
Controls.ChatCheck:SetCheck(true);
Controls.CivicsCheck:SetCheck(true);
Controls.ResearchCheck:SetCheck(true);
Controls.ToggleAllButton:SetCheck(true);
Controls.ChatCheck:RegisterCheckHandler( function() UpdateChatPanel(not m_hideChat); end);
Controls.CivicsCheck:RegisterCheckHandler( function() UpdateCivicsPanel(not m_hideCivics); end);
Controls.ResearchCheck:RegisterCheckHandler( function() UpdateResearchPanel(not m_hideResearch); end);
m_researchInstance.IconButton:RegisterCallback( Mouse.eLClick, function() LuaEvents.WorldTracker_OpenChooseResearch(); end);
m_civicsInstance.IconButton:RegisterCallback( Mouse.eLClick, function() LuaEvents.WorldTracker_OpenChooseCivic(); end);
Controls.ToggleAllButton:RegisterCheckHandler( function() ToggleAll(not Controls.ToggleAllButton:IsChecked()) end);
Controls.ToggleDropdownButton:RegisterCallback( Mouse.eLClick, ToggleDropdown);
Controls.WorldTrackerAlpha:RegisterEndCallback( OnWorldTrackerAnimationFinished );
Events.CityInitialized.Add(OnCityInitialized);
Events.BuildingChanged.Add(OnBuildingChanged);
Events.CivicChanged.Add(OnCivicChanged);
Events.CivicCompleted.Add(OnCivicCompleted);
Events.CultureYieldChanged.Add(OnCultureYieldChanged);
Events.InterfaceModeChanged.Add( OnInterfaceModeChanged );
Events.LocalPlayerTurnBegin.Add(OnLocalPlayerTurnBegin);
Events.MultiplayerChat.Add( OnMultiplayerChat );
Events.ResearchChanged.Add(OnResearchChanged);
Events.ResearchCompleted.Add(OnResearchCompleted);
Events.ResearchYieldChanged.Add(OnResearchYieldChanged);
LuaEvents.LaunchBar_Resize.Add(OnLaunchBarResized);
LuaEvents.CivicChooser_ForceHideWorldTracker.Add( function() ContextPtr:SetHide(true); end);
LuaEvents.CivicChooser_RestoreWorldTracker.Add( function() ContextPtr:SetHide(false); end);
LuaEvents.ResearchChooser_ForceHideWorldTracker.Add(function() ContextPtr:SetHide(true); end);
LuaEvents.ResearchChooser_RestoreWorldTracker.Add( function() ContextPtr:SetHide(false); end);
LuaEvents.Tutorial_ForceHideWorldTracker.Add( function() ContextPtr:SetHide(true); end);
LuaEvents.Tutorial_RestoreWorldTracker.Add( function() ContextPtr:SetHide(false); end);
LuaEvents.TutorialGoals_Showing.Add( OnTutorialGoalsShowing );
LuaEvents.TutorialGoals_Hiding.Add( OnTutorialGoalsHiding );
-- InitChatPanel
if(GameConfiguration.IsNetworkMultiplayer()) then
UpdateChatPanel(false);
else
UpdateChatPanel(true);
Controls.ChatCheck:SetHide(true);
end
-- Initialize Unread Chat Messages Count
UpdateUnreadChatMsgs();
end
Initialize();
--???TRON debug:
--[[
hstructure GoalItem
Id : string; -- Id of item
Text : string; -- Text to always display
Tooltip : string; -- (optional) tooltip text
IsCompleted : boolean; -- Is the goal completed?
ItemId : string; -- For debugging, the id of the item that is setting the goal
CompletedOnTurn : number; -- Which turn # the tutorial goal was completed on (required for auto-remove)
end
local goal1:GoalItem = hmake GoalItem {};
goal1.Id = "foo";
goal1.Text = "Foo!";
OnTutorialGoalsShowing();
LuaEvents.TutorialUIRoot_GoalAdd( goal1 );
LuaEvents.TutorialUIRoot_OpenGoals();
Controls.TutorialGoals:ReprocessAnchoring();
Controls.PanelStack:CalculateSize();
]]
|
{
"content_hash": "b60436cf6f46d66959d8938a4754b678",
"timestamp": "",
"source": "github",
"line_count": 535,
"max_line_length": 199,
"avg_line_length": 39.51775700934579,
"alnum_prop": 0.6636079841074638,
"repo_name": "sejbr/cqui",
"id": "bc13fe650da3d9fbbf1b968731e0c5b00c09383f",
"size": "21142",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Assets/UI/WorldTracker.lua",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Lua",
"bytes": "2472562"
}
]
}
|
package oap.http;
import oap.util.Maps;
import org.testng.annotations.Test;
import static oap.util.Pair.__;
import static org.assertj.core.api.Assertions.assertThat;
import static org.testng.Assert.assertEquals;
public class UrlTest {
@Test
public void parseQuery() {
assertEquals( Url.parseQuery( "a=&b=2" ), Maps.listmmap( __( "a", "" ), __( "b", "2" ) ) );
assertEquals( Url.parseQuery( "a=1&b=2&" ), Maps.listmmap( __( "a", "1" ), __( "b", "2" ) ) );
assertEquals( Url.parseQuery( "a=1&b=2&b=3&b=2" ),
Maps.listmmap( __( "a", "1" ), __( "b", "2" ), __( "b", "3" ), __( "b", "2" ) ) );
}
@Test
public void subdomains() {
assertThat( Url.subdomains( null ) ).isEmpty();
assertThat( Url.subdomains( "test" ) ).containsSequence( "test" );
assertThat( Url.subdomains( "test.com" ) ).containsSequence( "com", "test.com" );
assertThat( Url.subdomains( "www.test.com" ) ).containsSequence( "com", "test.com", "www.test.com" );
assertThat( Url.subdomains( "www.a.test.com" ) ).containsSequence( "com", "test.com", "a.test.com",
"www.a.test.com" );
}
@Test
public void domainOf() {
assertThat( Url.domainOf( null ) ).isNull();
assertThat( Url.domainOf( "test" ) ).isEqualTo( "test" );
assertThat( Url.domainOf( "test.com" ) ).isEqualTo( "test.com" );
assertThat( Url.domainOf( "http://test.com" ) ).isEqualTo( "test.com" );
assertThat( Url.domainOf( "https://test.com" ) ).isEqualTo( "test.com" );
assertThat( Url.domainOf( "https://test.com/" ) ).isEqualTo( "test.com" );
assertThat( Url.domainOf( "https://test.com?aaa=bbb" ) ).isEqualTo( "test.com" );
assertThat( Url.domainOf( "https://test.com#sss" ) ).isEqualTo( "test.com" );
}
}
|
{
"content_hash": "0f47f4b8d0ffdb4dd7f1277fb0758fcc",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 109,
"avg_line_length": 44.51219512195122,
"alnum_prop": 0.5764383561643835,
"repo_name": "oaplatform/oap",
"id": "e61b71fd734ca3c7fe1d9abcaf6dc0ebd5eea0e6",
"size": "2985",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "oap-stdlib/src/test/java/oap/http/UrlTest.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ANTLR",
"bytes": "17734"
},
{
"name": "Java",
"bytes": "2499156"
},
{
"name": "Shell",
"bytes": "4123"
}
]
}
|
package de.qaware.theo.mc.cdi;
import de.qaware.theo.mc.ConfigStore;
import de.qaware.theo.mc.annotation.ConfigKey;
import de.qaware.theo.mc.model.Metadata;
import de.qaware.theo.mc.store.PropertiesStore;
import javax.enterprise.context.spi.CreationalContext;
import javax.enterprise.inject.Any;
import javax.enterprise.inject.Default;
import javax.enterprise.inject.spi.AnnotatedType;
import javax.enterprise.inject.spi.Bean;
import javax.enterprise.inject.spi.InjectionPoint;
import javax.enterprise.util.AnnotationLiteral;
import javax.inject.Singleton;
import java.lang.annotation.Annotation;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.lang.reflect.Type;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import java.util.logging.Logger;
/**
* The bean implementation that can be injected.
* Proxies all actions to a config proxy.
* @author s.wittke
*/
public class ConfigurationProxy implements Bean {
public static final Logger LOGGER = Logger.getLogger(ConfigurationProxy.class.getName());
private final AnnotatedType type;
private final Metadata metadata;
private ConfigStore store;
ConfigurationProxy(AnnotatedType type, Metadata metadata, ConfigStore store) {
this.type = type;
this.metadata = metadata;
this.store = store;
}
@Override
public Set<Type> getTypes() {
return type.getTypeClosure();
}
@Override
public Set<Annotation> getQualifiers() {
Set<Annotation> qualifiers = new HashSet<>();
qualifiers.add( new AnnotationLiteral<Default>() {} );
qualifiers.add( new AnnotationLiteral<Any>() {} );
return qualifiers;
}
@Override
public Class<? extends Annotation> getScope() {
return Singleton.class;
}
@Override
public String getName() {
return "MC_" + metadata.getName();
}
@Override
public Set<Class<? extends Annotation>> getStereotypes() {
return Collections.emptySet();
}
@Override
public Class<?> getBeanClass() {
return type.getJavaClass();
}
@Override
public boolean isAlternative() {
return false;
}
@Override
public boolean isNullable() {
return false;
}
@Override
public Set<InjectionPoint> getInjectionPoints() {
return Collections.emptySet();
}
@Override
public Object create(CreationalContext creationalContext) {
return Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(), new Class[]{type.getJavaClass()}, new InvocationHandler() {
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
//check which method was invoked
ConfigKey configKey = method.getAnnotation(ConfigKey.class);
if (configKey != null) {
LOGGER.info("Found config key annotation on invoked method.");
String requestedKey = configKey.key();
return store.getConfigValue(requestedKey);
} else {
throw new IllegalStateException("Invoked method " + method + " does not have a config key annotation.");
}
}
});
}
@Override
public void destroy(Object instance, CreationalContext creationalContext) {
}
}
|
{
"content_hash": "d28dd831eca0f841ca4bc7b5301c186a",
"timestamp": "",
"source": "github",
"line_count": 120,
"max_line_length": 145,
"avg_line_length": 28.933333333333334,
"alnum_prop": 0.6719470046082949,
"repo_name": "Pink-Ponyhof/mission-control",
"id": "8926cce1b9ec3d8cd236fb11ebe40a1771777142",
"size": "3472",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "mission-control-core/src/main/java/de/qaware/theo/mc/cdi/ConfigurationProxy.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "1038"
},
{
"name": "Java",
"bytes": "42698"
},
{
"name": "JavaScript",
"bytes": "7289"
}
]
}
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jprover: 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.1 / jprover - 8.6.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
jprover
<small>
8.6.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-05-11 14:48:27 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-05-11 14:48:27 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.1 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.3 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-contribs/jprover"
license: "Unknown"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/JProver"]
depends: [
"ocaml"
"coq" {>= "8.6" & < "8.7~"}
]
tags: [
"keyword: decision procedure"
"keyword: first-order logic"
"keyword: intuitionistic logic"
"keyword: theorem proving"
"keyword: proof search"
"category: Miscellaneous/Coq Extensions"
"category: Computer Science/Decision Procedures and Certified Algorithms/Decision procedures"
"date: 2002-04 (contribution since January 2009)"
]
authors: [ "Huang Guan-Shieng" ]
bug-reports: "https://github.com/coq-contribs/jprover/issues"
dev-repo: "git+https://github.com/coq-contribs/jprover.git"
synopsis: "A theorem prover for first-order intuitionistic logic"
description: """
JProver is a theorem prover for first-order intuitionistic logic.
It is originally implemented by Stephan Schmitt and then integrated into
MetaPRL by Aleksey Nogin. After this, Huang Guan-Shieng extracted the
necessary ML-codes from MetaPRL and then adapted it to Coq."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/jprover/archive/v8.6.0.tar.gz"
checksum: "md5=d7a8888e2da482827e2bc958d6902b89"
}
</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-jprover.8.6.0 coq.8.12.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.12.1).
The following dependencies couldn't be met:
- coq-jprover -> coq < 8.7~ -> 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-jprover.8.6.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>
|
{
"content_hash": "f2e1de500f446a51fd9f944613a135b9",
"timestamp": "",
"source": "github",
"line_count": 173,
"max_line_length": 159,
"avg_line_length": 41.26589595375722,
"alnum_prop": 0.5535789326236168,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "a48930ee28d587fd87ed6c94dca01d79b2cd751c",
"size": "7164",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "clean/Linux-x86_64-4.08.1-2.0.5/released/8.12.1/jprover/8.6.0.html",
"mode": "33188",
"license": "mit",
"language": []
}
|
End of preview.
No dataset card yet
- Downloads last month
- 3