text stringlengths 2 1.04M | meta dict |
|---|---|
(function CharacterModel(angular, clazz) {
'use strict';
var app = angular.module('jsWars');
app.factory('Character', ['GameObject', function CharacterFactory() {
return clazz(function Character() {
this.extend = 'GameObject';
this.private = {
id: {
get: 0
},
player: {
get: null
},
boardImage: {
getSet: null
},
hasAttacked: {
set: false
},
hasMoved: {
set: false
},
lastAppliedDmg: {
get: 0
},
notify: {
set: null
}
};
this.protected = {
attack: {
get: 0
},
mobility: {
get: 0
}
};
this.public = {
applyDmg: function applyDmg(dmg) {
var hp = this.public.getHp() - dmg;
this.public.setHp(hp);
this.private.lastAppliedDmg = dmg;
setTimeout(this.public.resetLastAppliedDmg, 1500);
},
resetLastAppliedDmg: function resetLastAppliedDmg() {
this.private.lastAppliedDmg = 0;
this.private.notify();
},
canAttack: function canAttack() {
return true;
},
canMove: function canMove() {
return true;
},
hasAttacked: function hasAttacked() {
return this.private.hasAttacked;
},
hasMoved: function hasMoved() {
return this.private.hasMoved;
}
};
this.constructor = function constructor(id, player, hp, attack, defence, mobility, sizeX, sizeY) {
this.super.constructor(hp, defence, sizeX, sizeY);
this.protected.attack = attack;
this.protected.mobility = mobility;
this.private.player = player || null;
this.private.id = id;
};
});
}]);
}(window.angular, window.clazz)); | {
"content_hash": "b73f55d7027c7ac7f6289533a8654ffc",
"timestamp": "",
"source": "github",
"line_count": 79,
"max_line_length": 110,
"avg_line_length": 30.936708860759495,
"alnum_prop": 0.395253682487725,
"repo_name": "EnoF/JSWars",
"id": "855cee6dfb403ccedad19d9f723859159ecf5baa",
"size": "2498",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/models/characters/Character.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "8236"
},
{
"name": "JavaScript",
"bytes": "93634"
}
],
"symlink_target": ""
} |
riko FAQ
========
Index
-----
`What pipes are available`_ | `What file types are supported`_ | `What protocols are supported`_
What pipes are available?
-------------------------
Overview
^^^^^^^^
riko's available pipes are outlined below [#]_:
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| Pipe name | Pipe type | Pipe sub-type | Pipe description |
+======================+===========+===============+==============================================================================================+
| `count`_ | operator | aggregator | counts the number of items in a feed |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `csv`_ | processor | source | parses a csv file to yield items |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `currencyformat`_ | processor | transformer | formats a number to a given currency string |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `dateformat`_ | processor | transformer | formats a date |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `exchangerate`_ | processor | transformer | retrieves the current exchange rate for a given currency pair |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `feedautodiscovery`_ | processor | source | fetches and parses the first feed found on a site |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `fetch`_ | processor | source | fetches and parses a feed to return the entries |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `fetchdata`_ | processor | source | fetches and parses an XML or JSON file to return the feed entries |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `fetchpage`_ | processor | source | fetches the content of a given web site as a string |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `fetchsitefeed`_ | processor | source | fetches and parses the first feed found on a site |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `fetchtext`_ | processor | source | fetches and parses a text file |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `filter`_ | operator | composer | extracts items matching the given rules |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `hash`_ | processor | transformer | hashes the field of a feed item |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `input`_ | processor | source | prompts for text and parses it into a variety of different types, e.g., int, bool, date, etc |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `itembuilder`_ | processor | source | builds an item |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `join`_ | operator | aggregator | perform a SQL like join on two feeds |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `regex`_ | processor | transformer | replaces text in fields of a feed item using regexes |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `refind`_ | processor | transformer | finds text located before, after, or between substrings using regular expressions |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `rename`_ | processor | transformer | renames or copies fields in a feed item |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `reverse`_ | operator | composer | reverses the order of source items in a feed |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `rssitembuilder`_ | processor | source | builds an rss item |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `simplemath`_ | processor | transformer | performs basic arithmetic, such as addition and subtraction |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `slugify`_ | operator | transformer | slugifies text |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `sort`_ | operator | composer | sorts a feed according to a specified key |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `split`_ | operator | composer | splits a feed into identical copies |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `strconcat`_ | processor | transformer | concatenates strings |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `strfind`_ | processor | transformer | finds text located before, after, or between substrings |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `strreplace`_ | processor | transformer | replaces the text of a field of a feed item |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `strtransform`_ | processor | transformer | performs string transformations on the field of a feed item |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `subelement`_ | processor | transformer | extracts sub-elements for the item of a feed |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `substr`_ | processor | transformer | returns a substring of a field of a feed item |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `sum`_ | operator | aggregator | sums a field of items in a feed |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `tail`_ | operator | composer | truncates a feed to the last N items |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `timeout`_ | operator | composer | returns items from a stream until a certain amount of time has passed |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `tokenizer`_ | processor | transformer | splits a string by a delimiter |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `truncate`_ | operator | composer | returns a specified number of items from a feed |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `union`_ | operator | composer | merges multiple feeds together |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `uniq`_ | operator | composer | filters out non unique items according to a specified field |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `urlbuilder`_ | processor | transformer | builds a url |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `urlparse`_ | processor | transformer | parses a URL into its six components |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `xpathfetchpage`_ | processor | source | fetches the content of a given website as DOM nodes or a string |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
| `yql`_ | processor | source | fetches the result of a given YQL query |
+----------------------+-----------+---------------+----------------------------------------------------------------------------------------------+
Args
^^^^
riko ``pipes`` come in two flavors; ``operator`` and ``processor`` [#]_.
``operator``s operate on an entire ``stream`` at once. Example ``operator``s include ``pipecount``, ``pipefilter``,
and ``pipereverse``.
.. code-block:: python
>>> from riko.modules.reverse import pipe
>>>
>>> stream = [{'title': 'riko pt. 1'}, {'title': 'riko pt. 2'}]
>>> next(pipe(stream))
{'title': 'riko pt. 2'}
``processor``s process individual ``items``. Example ``processor``s include
``pipefetchsitefeed``, ``pipehash``, ``pipeitembuilder``, and ``piperegex``.
.. code-block:: python
>>> from riko.modules.hash import pipe
>>>
>>> item = {'title': 'riko pt. 1'}
>>> stream = pipe(item, field='title')
>>> next(stream)
{'title': 'riko pt. 1', 'hash': 2853617420L}
Kwargs
^^^^^^
The following table outlines the available kwargs.
========== ==== ================================================ =======
kwarg type description default
========== ==== ================================================ =======
conf dict The pipe configuration varies
extract str The key with which to get a value from `conf` None
listize bool Ensure that an `extract` value is list-like False
pdictize bool Convert `conf` / `extract` to a DotDict instance varies
objectify bool Convert `conf` to an Objectify instance varies
ptype str Used to convert `conf` items to a specific type. pass
dictize bool Convert the input `item` to a DotDict instance True
field str The key with which to get a value from the input None
ftype str Converts the input `item` to a specific type pass
count str The output count all
assign str Attribute used to assign output varies
emit bool Return the output as is (don't assign) varies
skip_if func Determines if processing should be skipped None
inputs dict Values to be used in place of prompting the user None
========== ==== ================================================ =======
Notes
^^^^^
.. [#] See `Design Principles`_ for explanation on `pipe` types and sub-types
.. [#] See `Alternate workflow creation`_ for pipe composition examples
What file types are supported?
------------------------------
File types that riko supports are outlined below:
==================== ======================= ===========================================
File type Recognized extension(s) Supported pipes
==================== ======================= ===========================================
HTML html feedautodiscovery, fetchpage, fetchsitefeed
XML xml fetch, fetchdata
JSON json fetchdata
Comma separated file csv, tsv csv
==================== ======================= ===========================================
What protocols are supported?
-----------------------------
Protocols that riko supports are outlined below:
======== =========================================
Protocol example
======== =========================================
http http://google.com
https https://github.com/reubano/feed
file file:///Users/reubano/Downloads/feed.xml
======== =========================================
.. _What pipes are available: #what-pipes-are-available
.. _What file types are supported: #what-file-types-are-supported
.. _What protocols are supported: #what-protocols-are-supported
.. _Design Principles: https://github.com/nerevu/riko/blob/master/README.rst#design-principles
.. _Alternate workflow creation: https://github.com/nerevu/riko/blob/master/docs/COOKBOOK.rst#synchronous-processing
.. _split: https://github.com/nerevu/riko/blob/master/riko/modules/split.py
.. _count: https://github.com/nerevu/riko/blob/master/riko/modules/count.py
.. _csv: https://github.com/nerevu/riko/blob/master/riko/modules/csv.py
.. _currencyformat: https://github.com/nerevu/riko/blob/master/riko/modules/currencyformat.py
.. _dateformat: https://github.com/nerevu/riko/blob/master/riko/modules/dateformat.py
.. _exchangerate: https://github.com/nerevu/riko/blob/master/riko/modules/exchangerate.py
.. _feedautodiscovery: https://github.com/nerevu/riko/blob/master/riko/modules/feedautodiscovery.py
.. _fetch: https://github.com/nerevu/riko/blob/master/riko/modules/fetch.py
.. _fetchdata: https://github.com/nerevu/riko/blob/master/riko/modules/fetchdata.py
.. _fetchpage: https://github.com/nerevu/riko/blob/master/riko/modules/fetchpage.py
.. _fetchsitefeed: https://github.com/nerevu/riko/blob/master/riko/modules/fetchsitefeed.py
.. _fetchtext: https://github.com/nerevu/riko/blob/master/riko/modules/fetchtext.py
.. _filter: https://github.com/nerevu/riko/blob/master/riko/modules/filter.py
.. _hash: https://github.com/nerevu/riko/blob/master/riko/modules/hash.py
.. _input: https://github.com/nerevu/riko/blob/master/riko/modules/input.py
.. _itembuilder: https://github.com/nerevu/riko/blob/master/riko/modules/itembuilder.py
.. _join: https://github.com/nerevu/riko/blob/master/riko/modules/join.py
.. _regex: https://github.com/nerevu/riko/blob/master/riko/modules/regex.py
.. _refind: https://github.com/nerevu/riko/blob/master/riko/modules/refind.py
.. _rename: https://github.com/nerevu/riko/blob/master/riko/modules/rename.py
.. _reverse: https://github.com/nerevu/riko/blob/master/riko/modules/reverse.py
.. _rssitembuilder: https://github.com/nerevu/riko/blob/master/riko/modules/rssitembuilder.py
.. _simplemath: https://github.com/nerevu/riko/blob/master/riko/modules/simplemath.py
.. _slugify: https://github.com/nerevu/riko/blob/master/riko/modules/slugify.py
.. _sort: https://github.com/nerevu/riko/blob/master/riko/modules/sort.py
.. _split: https://github.com/nerevu/riko/blob/master/riko/modules/split.py
.. _strconcat: https://github.com/nerevu/riko/blob/master/riko/modules/strconcat.py
.. _strfind: https://github.com/nerevu/riko/blob/master/riko/modules/strfind.py
.. _strreplace: https://github.com/nerevu/riko/blob/master/riko/modules/strreplace.py
.. _strtransform: https://github.com/nerevu/riko/blob/master/riko/modules/strtransform.py
.. _subelement: https://github.com/nerevu/riko/blob/master/riko/modules/subelement.py
.. _substr: https://github.com/nerevu/riko/blob/master/riko/modules/substr.py
.. _sum: https://github.com/nerevu/riko/blob/master/riko/modules/sum.py
.. _tail: https://github.com/nerevu/riko/blob/master/riko/modules/tail.py
.. _timeout: https://github.com/nerevu/riko/blob/master/riko/modules/timeout.py
.. _tokenizer: https://github.com/nerevu/riko/blob/master/riko/modules/tokenizer.py
.. _truncate: https://github.com/nerevu/riko/blob/master/riko/modules/truncate.py
.. _union: https://github.com/nerevu/riko/blob/master/riko/modules/union.py
.. _uniq: https://github.com/nerevu/riko/blob/master/riko/modules/uniq.py
.. _urlbuilder: https://github.com/nerevu/riko/blob/master/riko/modules/urlbuilder.py
.. _urlparse: https://github.com/nerevu/riko/blob/master/riko/modules/urlparse.py
.. _xpathfetchpage: https://github.com/nerevu/riko/blob/master/riko/modules/xpathfetchpage.py
.. _yql: https://github.com/nerevu/riko/blob/master/riko/modules/yql.py
| {
"content_hash": "fc0fb12d23663e35d02bae9375e945ec",
"timestamp": "",
"source": "github",
"line_count": 238,
"max_line_length": 147,
"avg_line_length": 86.25630252100841,
"alnum_prop": 0.3620731647912709,
"repo_name": "nerevu/riko",
"id": "e19e06de423c458b0111566bcafc8506d5d1fc81",
"size": "20529",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/FAQ.rst",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Makefile",
"bytes": "1090"
},
{
"name": "Python",
"bytes": "501805"
},
{
"name": "Shell",
"bytes": "3188"
}
],
"symlink_target": ""
} |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "c5c6f50605083f11022d61ccd14b0617",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 10.307692307692308,
"alnum_prop": 0.6940298507462687,
"repo_name": "mdoering/backbone",
"id": "7d387179af24a4a223b68312bc401a7e342da04d",
"size": "211",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Plantae/Magnoliophyta/Magnoliopsida/Fabales/Fabaceae/Psoralea/Psoralea psoralioides/Psoralea psoralioides psoralioides/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
package pe.org.reclamos.entidad;
import java.io.Serializable;
import java.util.Date;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;
import com.google.gson.annotations.Expose;
/**
* The persistent class for the devolucion database table.
*
*/
@Entity
@Table(name="devolucion")
public class Devolucion implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
@Expose
private Integer idDevolucion;
@Temporal( TemporalType.TIMESTAMP)
@Column(name="created_at")
private Date createdAt;
@Temporal( TemporalType.TIMESTAMP)
@Column(name="fecha_autorizacion")
private Date fechaAutorizacion;
@Lob()
private String detalle;
@Column(name="numero_acta")
@Expose
private String numeroActa;
private int estado;
@Temporal( TemporalType.TIMESTAMP)
@Column(name="updated_at")
private Date updatedAt;
//bi-directional many-to-one association to DetalleDevolucion
//@OneToMany(mappedBy="devolucion")
@Transient
private Set<DetalleDevolucion> detalleDevolucions;
//bi-directional many-to-one association to Reclamo
@ManyToOne
@JoinColumn(name="idReclamo")
private Reclamo reclamo;
public Devolucion() {
}
public Integer getIdDevolucion() {
return this.idDevolucion;
}
public void setIdDevolucion(Integer idDevolucion) {
this.idDevolucion = idDevolucion;
}
public Date getCreatedAt() {
return this.createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public String getDetalle() {
return this.detalle;
}
public void setDetalle(String detalle) {
this.detalle = detalle;
}
public int getEstado() {
return this.estado;
}
public void setEstado(int estado) {
this.estado = estado;
}
public Date getUpdatedAt() {
return this.updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
public Set<DetalleDevolucion> getDetalleDevolucions() {
return this.detalleDevolucions;
}
public void setDetalleDevolucions(Set<DetalleDevolucion> detalleDevolucions) {
this.detalleDevolucions = detalleDevolucions;
}
public Reclamo getReclamo() {
return this.reclamo;
}
public void setReclamo(Reclamo reclamo) {
this.reclamo = reclamo;
}
public Date getFechaAutorizacion() {
return fechaAutorizacion;
}
public void setFechaAutorizacion(Date fechaAutorizacion) {
this.fechaAutorizacion = fechaAutorizacion;
}
public String getNumeroActa() {
return numeroActa;
}
public void setNumeroActa(String numeroActa) {
this.numeroActa = numeroActa;
}
@Override
public String toString() {
return "Devolucion [idDevolucion=" + idDevolucion + ", fechaAutorizacion=" + fechaAutorizacion + ", numeroActa="
+ numeroActa + ", estado=" + estado + "]";
}
} | {
"content_hash": "4320e1b66f34d15dfabd9d1ac30802fb",
"timestamp": "",
"source": "github",
"line_count": 149,
"max_line_length": 114,
"avg_line_length": 21.543624161073826,
"alnum_prop": 0.7498442367601246,
"repo_name": "lekvispk/reclamos_vera",
"id": "fe3ed7087ad992140811892156ed09245882b8e8",
"size": "3210",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/pe/org/reclamos/entidad/Devolucion.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "9226"
},
{
"name": "Java",
"bytes": "566630"
},
{
"name": "JavaScript",
"bytes": "71328"
}
],
"symlink_target": ""
} |
using System.Collections.Generic;
using MOE.Common.Models.Inrix;
using MOE.Common.Models.Inrix.Repositories;
namespace MOE.Common.Business.Inrix
{
public class Group
{
protected string description;
protected int id;
public List<Route> Items = new List<Route>();
protected string name;
/// <summary>
/// Default Constructor for the RouteGroupClass
/// </summary>
/// <param name="id"></param>
/// <param name="name"></param>
/// <param name="description"></param>
public Group(int id, string name, string description)
{
ID = id;
Name = name;
Description = description;
FillMembers();
}
public Group(Group groupCopy)
{
SetProperties(groupCopy);
InsertGroup(groupCopy.name, groupCopy.Description);
foreach (var route in groupCopy.Items)
Items.Add(route);
SaveMembers();
}
public int ID
{
get => id;
set => id = value;
}
public string Description
{
get => description;
set => description = value;
}
public string Name
{
get => name;
set => name = value;
}
private void SetProperties(Group groupCopy)
{
Name = "Copy of " + groupCopy.Name;
Description = groupCopy.Description;
}
public void FillMembers()
{
Items.Clear();
var rr = RouteRepositoryFactory.CreateRepository();
foreach (var routeRow in rr.GetRoutesByGroupID(ID))
{
var route = new Route(routeRow.Route_ID, routeRow.Route_Name, routeRow.Route_Description);
Items.Add(route);
}
}
public void AddMember(Route route)
{
Items.Add(route);
}
public void RemoveMember(Route route)
{
Items.Remove(route);
}
public void DeleteGroup()
{
var gmr = new GroupMemberRepository();
var gr = new GroupRepository();
gr.RemoveByID(ID);
gmr.DeleteByGroupID(ID);
}
public void SaveMembers()
{
var gmr = new GroupMemberRepository();
var x = 0;
//remove the old Group from Group Members
gmr.DeleteByGroupID(ID);
//Save the new group members
foreach (var route in Items)
{
x++;
var gm = new Group_Members();
gm.Group_ID = ID;
gm.Route_ID = route.ID;
gm.Group_Order = x;
gmr.Add(gm);
}
}
public static void InsertGroup(string groupName, string groupDescription)
{
var gr = new GroupRepository();
var newGroup = new Models.Inrix.Group();
newGroup.Group_Name = groupName;
newGroup.Group_Description = groupDescription;
gr.Add(newGroup);
//ID = newGroup.Group_ID;
}
public void UpdateRouteGroup(string NewName, string NewDescription)
{
var gr = new GroupRepository();
var g = new Models.Inrix.Group();
g.Group_ID = ID;
g.Group_Description = NewDescription;
g.Group_Name = NewName;
gr.Update(g);
//groupsTA.Update(NewDescription, NewName, this.ID, this.Name);
}
}
} | {
"content_hash": "58a635d4d8a579b18bd9edec8ec6d177",
"timestamp": "",
"source": "github",
"line_count": 145,
"max_line_length": 106,
"avg_line_length": 25.186206896551724,
"alnum_prop": 0.5035596933187295,
"repo_name": "udotdevelopment/ATSPM",
"id": "6198661561fedbe918066c91931404e1156281a3",
"size": "3654",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "MOE.Common/Business/Inrix/Group.cs",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ASP.NET",
"bytes": "507"
},
{
"name": "C#",
"bytes": "6376155"
},
{
"name": "CSS",
"bytes": "120997"
},
{
"name": "HTML",
"bytes": "931688"
},
{
"name": "JavaScript",
"bytes": "818463"
},
{
"name": "Rich Text Format",
"bytes": "40945"
},
{
"name": "TSQL",
"bytes": "51043"
}
],
"symlink_target": ""
} |
FAQS
======
Conda related
---------------
Create a conda environment on IP cluster::
module load conda
conda create --name py37 python=3.7
conda activate py37
add channel from where to download packages::
conda config --add channels r bioconda
conda install sequana
What are the dependencies
-----------------------------
There are two kind of dependencies. First, the Python libraries such as
matplotlib or Pandas. Second, the external tools such as BWA (alignment) or
Kraken (taxonomy). The first kind of tools can be installed using Anaconda and the
default conda channel. For instance::
conda install pandas
The second kind of tools can also be installed using another conda channel
called **bioconda**. For instance::
conda install bwa
Since version 0.12, most pipelines have been moved outside of sequana. Sequana itself only requires::
conda install kraken2 cd-hit krona
Installation issues
-----------------------
As explained in the previous section, most of the dependencies can be installed
via Conda. If not, pip is recommended. Yet there are still a few dependencies
that needs manual installation.
quast
~~~~~~~~~
http://quast.bioinf.spbau.ru/manual.html#sec1
::
wget https://downloads.sourceforge.net/project/quast/quast-4.2.tar.gz
tar -xzf quast-4.2.tar.gz
cd quast-4.2
Alternatively, get the source code from their GitHub (takes a while)::
git clone https://github.com/ablab/quast
cd quast
python setup.py install
graphviz
~~~~~~~~~~~~~~~~~~
graphviz provides an executable called **dot**. If you type **dot** in a shell
and get this error message::
Warning: Could not load
...lib/graphviz/libgvplugin_gd.so.6" - file not found
This may be solved by re-installation graphviz using the main anaconda channel
(instead of bioconda)::
conda install --override-channels -c anaconda graphviz=2.38.0
:Update April 2017: replace anaconda with conda-forge
matplotlib
~~~~~~~~~~~~~~~~~
If you get errors related to the X connection, you may need to change the
backend of matplotlib. To do so, go in your home directory and in this directory
cd /home/user/.config/matplotlib/
Check if the file **matplotlibrc** exits, if not, type::
echo "backend: Agg" > matplotlibrc
or edit the file and make sure the line starting with "backend" uses the Agg
backend::
backend: Agg
Save, exit the shell, start a new shell.
pysam / samtools / bzip2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
We have experienced few issues with pysam and samtools. Here are some solutions.
::
from pysam.libchtslib import *
...ImportError: libhts.so.1: cannot open shared object file: No such file or directory
This may be solved by removing conda installation and using pip instead::
conda remove pysam
pip install pysam
Another error know for pysam version 0.11.2.2 raises this error::
ImportError: libbz2.so.1.0: cannot open shared object file: No such file or
directory
Downgrading to version 0.11.2.1 and upgrading to working version solves the problem::
conda install pysam=0.11.2.1
but one reason was also related to the order of the channel in the .condarc
file. You may get bzip2 from the default channel and not from
conda-forge (reference: https://github.com/bioconda/bioconda-recipes/issues/5188)
::
conda install --override-channels -c conda-forge bzip2
pysam may not compile due to a missing dependency on lzma. Under fedora,
type::
yum install liblzma liblzma-devel
qt and pyqt
~~~~~~~~~~~~~~~~~~
Qt Version
^^^^^^^^^^
With PyQt 5.12.3 and python3.7, we got lots of errors::
SystemError: <built-in function connectSlotsByName> returned a result with an error set
This seems to be a PyQt bug according to several github projets based on pyqt.
It may be fixed a version above. Dowgrading e.g. to pyqt 5.9.2 does not solve
the problem.
Qt compatibility across platform
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
::
from PyQt5.QtWebKitWidgets import QWebView
...ImportError: libQt5WebKitWidgets.so.5: cannot open shared object file: No such file or directory
This may be solved by re-installation qt using the main anaconda channel
(instead of bioconda)::
conda install --override-channels -c anaconda qt
and possibly::
pip install PyQtWebEngine
If we believe this issue: https://github.com/conda-forge/pyqt-feedstock/issues/19
libselinux
~~~~~~~~~~~~~~~~~
If you get this error (using **conda install sequana**)::
ImportError: libselinux.so.1: cannot open shared object file: No such file or directory
it looks like you need to install libselinux on your environment as reported
`here <https://github.com/sequana/sequana/issues/438>`_.
pytz installation
~~~~~~~~~~~~~~~~~~~~
If you get this error::
ImportError: C extension: No module named 'pytz.tzinfo' not built. If you
want to import pandas from the source directory, you may need to run 'python
setup.py build_ext --inplace --force' to build the C extensions first.
try this::
pip uninstall pytz
pip install --pre pytz
reference: https://github.com/sequana/sequana/issues/499
Expected input format
----------------------------
Most of the pipelines and standalone expect FastQ files with the extension
**fastq.gz** meaning that files are gzipped.
Besides, the filename convention is as follows::
PREFIX_R1_.fastq.gz
that is **_R1_** and **_R2_** indicates the paired or single-ended files and
the PREFIX is used to create directories or reports; it must be present.
.. versionadded:: 0.2
more flexible tags are now possible in sequana pipelines and sequanix using
e.g. _R[12] in the **input_readtag** in the configuration file of the
pipelines.
Sequanix related
----------------------
For question related to Sequanix, we have a dedicated section in
:ref:`sequanix_faqs`.
QXcbConnection issue
----------------------
If you get this error::
QXcbConnection: Could not connect to display localhost:10.0
this is an issue with your Qt backend. You need to change it to Agg.
Variant Calling pipeline
----------------------------
If snpeff fails with this type of errors::
java.lang.RuntimeException: Error reading file 'null'
java.lang.RuntimeException: Cannot find sequence for 'LN831026.gbk'
this may be because your genbank does not contain the sequences.
Another type of errors is that the sequence and genbank are not synchrone. We
would recommend to use the code here to download the Fasta and genbank:
http://sequana.readthedocs.io/en/main/tutorial.html#new-in-v0-10
Quality Control pipeline
---------------------------
Please see the tutorial, user guide or pipelines section and look for the quality control.
Then, if you do not find your solution, please open an issue on github: https://github.com/sequana/sequana/issues
Singularity
-----------------
If you use the singularity container and get this kind of error::
singularity shell sequana-sequana-master.img
ERROR : Base home directory does not exist within the container: /pasteur
ABORT : Retval = 255
it means the container does not know about the Base home directory.
If you have sudo access, add the missing path as follows::
sudo singularity shell --writable sequana-sequana-master.img
mkdir /pasteur
exit
If you do not have sudo permissions, copy the image on a computer where you have
such permission, use the same code as above and copy back the new image on the
computer where you had the issue.
Finally, try to use the container again using this code::
singularity shell sequana-sequana-master.img
I got a error "main thread is not in the main loop"
---------------------------------------------------
::
Traceback (most recent call last):
File
".../lib/python3.5/tkinter/__init__.py",
line 627, in after_cancel
data = self.tk.call('after', 'info', id)
RuntimeError: main thread is not in main loop
This is related to the backend used by matplotlib. This can be ignored. We do
not have any solution for now, except finding an alternated backend for
matplotlib. This can be done using a special file called matplotlibrc with this
content::
backend: tkagg
where you can replace tkagg with e.g. qt5agg
Installation issue on Mac
--------------------------
On a MacOSx conda environment (PYthon3.9), I could not build **datrie** with this kinf of error message::
error: command ‘llvm-ar’ failed: No such file or directory
ERROR: Failed building wheel for datrie
Failed to build datrie
Failed to build datrie
ERROR: Could not build wheels for datrie, which is required to install pyproject.toml-based projects
The solution was to set the AR variable::
export AR=/usr/bin/ar
| {
"content_hash": "e228f38923b8d64819135463ec205258",
"timestamp": "",
"source": "github",
"line_count": 330,
"max_line_length": 113,
"avg_line_length": 26.6,
"alnum_prop": 0.7058555479608111,
"repo_name": "sequana/sequana",
"id": "ec2410ea8fcf083b57259c14384b9610d82cba03",
"size": "8782",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "doc/faqs.rst",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "CSS",
"bytes": "6314"
},
{
"name": "Dockerfile",
"bytes": "1693"
},
{
"name": "HTML",
"bytes": "5379"
},
{
"name": "JavaScript",
"bytes": "686"
},
{
"name": "Jupyter Notebook",
"bytes": "1990042"
},
{
"name": "Python",
"bytes": "1509148"
},
{
"name": "R",
"bytes": "60806"
},
{
"name": "Shell",
"bytes": "2553"
},
{
"name": "Singularity",
"bytes": "4235"
}
],
"symlink_target": ""
} |
require 'json'
require 'time'
require 'concurrent'
require 'sprockets/manifest_utils'
require 'sprockets/utils/gzip'
module Sprockets
# The Manifest logs the contents of assets compiled to a single directory. It
# records basic attributes about the asset for fast lookup without having to
# compile. A pointer from each logical path indicates which fingerprinted
# asset is the current one.
#
# The JSON is part of the public API and should be considered stable. This
# should make it easy to read from other programming languages and processes
# that don't have sprockets loaded. See `#assets` and `#files` for more
# infomation about the structure.
class Manifest
include ManifestUtils
attr_reader :environment
# Create new Manifest associated with an `environment`. `filename` is a full
# path to the manifest json file. The file may or may not already exist. The
# dirname of the `filename` will be used to write compiled assets to.
# Otherwise, if the path is a directory, the filename will default a random
# ".sprockets-manifest-*.json" file in that directory.
#
# Manifest.new(environment, "./public/assets/manifest.json")
#
def initialize(*args)
if args.first.is_a?(Base) || args.first.nil?
@environment = args.shift
end
@directory, @filename = args[0], args[1]
# Whether the manifest file is using the old manifest-*.json naming convention
@legacy_manifest = false
# Expand paths
@directory = File.expand_path(@directory) if @directory
@filename = File.expand_path(@filename) if @filename
# If filename is given as the second arg
if @directory && File.extname(@directory) != ""
@directory, @filename = nil, @directory
end
# Default dir to the directory of the filename
@directory ||= File.dirname(@filename) if @filename
# If directory is given w/o filename, pick a random manifest location
@rename_filename = nil
if @directory && @filename.nil?
@filename = find_directory_manifest(@directory)
# If legacy manifest name autodetected, mark to rename on save
if File.basename(@filename).start_with?("manifest")
@rename_filename = File.join(@directory, generate_manifest_path)
end
end
unless @directory && @filename
raise ArgumentError, "manifest requires output filename"
end
data = {}
begin
if File.exist?(@filename)
data = json_decode(File.read(@filename))
end
rescue JSON::ParserError => e
logger.error "#{@filename} is invalid: #{e.class} #{e.message}"
end
@data = data
end
# Returns String path to manifest.json file.
attr_reader :filename
alias_method :path, :filename
attr_reader :directory
alias_method :dir, :directory
# Returns internal assets mapping. Keys are logical paths which
# map to the latest fingerprinted filename.
#
# Logical path (String): Fingerprint path (String)
#
# { "application.js" => "application-2e8e9a7c6b0aafa0c9bdeec90ea30213.js",
# "jquery.js" => "jquery-ae0908555a245f8266f77df5a8edca2e.js" }
#
def assets
@data['assets'] ||= {}
end
# Returns internal file directory listing. Keys are filenames
# which map to an attributes array.
#
# Fingerprint path (String):
# logical_path: Logical path (String)
# mtime: ISO8601 mtime (String)
# digest: Base64 hex digest (String)
#
# { "application-2e8e9a7c6b0aafa0c9bdeec90ea30213.js" =>
# { 'logical_path' => "application.js",
# 'mtime' => "2011-12-13T21:47:08-06:00",
# 'digest' => "2e8e9a7c6b0aafa0c9bdeec90ea30213" } }
#
def files
@data['files'] ||= {}
end
# Public: Find all assets matching pattern set in environment.
#
# Returns Enumerator of Assets.
def find(*args)
unless environment
raise Error, "manifest requires environment for compilation"
end
return to_enum(__method__, *args) unless block_given?
paths, filters = args.flatten.partition { |arg| self.class.simple_logical_path?(arg) }
filters = filters.map { |arg| self.class.compile_match_filter(arg) }
environment = self.environment.cached
paths.each do |path|
environment.find_all_linked_assets(path) do |asset|
yield asset
end
end
if filters.any?
environment.logical_paths do |logical_path, filename|
if filters.any? { |f| f.call(logical_path, filename) }
environment.find_all_linked_assets(filename) do |asset|
yield asset
end
end
end
end
nil
end
# Public: Find the source of assets by paths.
#
# Returns Enumerator of assets file content.
def find_sources(*args)
return to_enum(__method__, *args) unless block_given?
if environment
find(*args).each do |asset|
yield asset.source
end
else
args.each do |path|
asset = assets[path]
yield File.binread(File.join(dir, asset)) if asset
end
end
end
# Compile and write asset to directory. The asset is written to a
# fingerprinted filename like
# `application-2e8e9a7c6b0aafa0c9bdeec90ea30213.js`. An entry is
# also inserted into the manifest file.
#
# compile("application.js")
#
def compile(*args)
unless environment
raise Error, "manifest requires environment for compilation"
end
filenames = []
concurrent_compressors = []
concurrent_writers = []
find(*args) do |asset|
files[asset.digest_path] = {
'logical_path' => asset.logical_path,
'mtime' => asset.mtime.iso8601,
'size' => asset.bytesize,
'digest' => asset.hexdigest,
# Deprecated: Remove beta integrity attribute in next release.
# Callers should DigestUtils.hexdigest_integrity_uri to compute the
# digest themselves.
'integrity' => DigestUtils.hexdigest_integrity_uri(asset.hexdigest)
}
assets[asset.logical_path] = asset.digest_path
if alias_logical_path = self.class.compute_alias_logical_path(asset.logical_path)
assets[alias_logical_path] = asset.digest_path
end
target = File.join(dir, asset.digest_path)
if File.exist?(target)
logger.debug "Skipping #{target}, already exists"
else
logger.info "Writing #{target}"
write_file = Concurrent::Future.execute { asset.write_to target }
concurrent_writers << write_file
end
filenames << asset.filename
next if environment.skip_gzip?
gzip = Utils::Gzip.new(asset)
next if gzip.cannot_compress?(environment.mime_types)
if File.exist?("#{target}.gz")
logger.debug "Skipping #{target}.gz, already exists"
else
logger.info "Writing #{target}.gz"
concurrent_compressors << Concurrent::Future.execute do
write_file.wait! if write_file
gzip.compress(target)
end
end
end
concurrent_writers.each(&:wait!)
concurrent_compressors.each(&:wait!)
save
filenames
end
# Removes file from directory and from manifest. `filename` must
# be the name with any directory path.
#
# manifest.remove("application-2e8e9a7c6b0aafa0c9bdeec90ea30213.js")
#
def remove(filename)
path = File.join(dir, filename)
gzip = "#{path}.gz"
logical_path = files[filename]['logical_path']
if assets[logical_path] == filename
assets.delete(logical_path)
end
files.delete(filename)
FileUtils.rm(path) if File.exist?(path)
FileUtils.rm(gzip) if File.exist?(gzip)
save
logger.info "Removed #{filename}"
nil
end
# Cleanup old assets in the compile directory. By default it will
# keep the latest version, 2 backups and any created within the past hour.
#
# Examples
#
# To force only 1 backup to be kept, set count=1 and age=0.
#
# To only keep files created within the last 10 minutes, set count=0 and
# age=600.
#
def clean(count = 2, age = 3600)
asset_versions = files.group_by { |_, attrs| attrs['logical_path'] }
asset_versions.each do |logical_path, versions|
current = assets[logical_path]
versions.reject { |path, _|
path == current
}.sort_by { |_, attrs|
# Sort by timestamp
Time.parse(attrs['mtime'])
}.reverse.each_with_index.drop_while { |(_, attrs), index|
_age = [0, Time.now - Time.parse(attrs['mtime'])].max
# Keep if under age or within the count limit
_age < age || index < count
}.each { |(path, _), _|
# Remove old assets
remove(path)
}
end
end
# Wipe directive
def clobber
FileUtils.rm_r(directory) if File.exist?(directory)
logger.info "Removed #{directory}"
nil
end
# Persist manfiest back to FS
def save
if @rename_filename
logger.info "Renaming #{@filename} to #{@rename_filename}"
FileUtils.mv(@filename, @rename_filename)
@filename = @rename_filename
@rename_filename = nil
end
data = json_encode(@data)
FileUtils.mkdir_p File.dirname(@filename)
PathUtils.atomic_write(@filename) do |f|
f.write(data)
end
end
private
def json_decode(obj)
JSON.parse(obj, create_additions: false)
end
def json_encode(obj)
JSON.generate(obj)
end
def logger
if environment
environment.logger
else
logger = Logger.new($stderr)
logger.level = Logger::FATAL
logger
end
end
end
end
| {
"content_hash": "1838bbf089c0914abeb3a5d7a0659d39",
"timestamp": "",
"source": "github",
"line_count": 336,
"max_line_length": 92,
"avg_line_length": 30.116071428571427,
"alnum_prop": 0.6126099416938433,
"repo_name": "msaintemarie/msaintemarie.github.io",
"id": "2d42c9f8b08a8c597153394b7472a114055e253e",
"size": "10119",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "vendor/cache/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "697688"
},
{
"name": "HTML",
"bytes": "931801"
},
{
"name": "JavaScript",
"bytes": "131524"
},
{
"name": "Ruby",
"bytes": "5192"
}
],
"symlink_target": ""
} |
ACCEPTED
#### According to
Index Fungorum
#### Published in
Syst. mycol. (Lundae) 1: 505 (1821)
#### Original name
Boletus sector Ehrenb., 1820
### Remarks
null | {
"content_hash": "b9f9a59aa1f1b8724b72ba6287ba0e78",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 35,
"avg_line_length": 12.615384615384615,
"alnum_prop": 0.6829268292682927,
"repo_name": "mdoering/backbone",
"id": "4a81c6e5136d2f6c754cd317330de19f1a80d4ca",
"size": "230",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Fungi/Basidiomycota/Agaricomycetes/Polyporales/Polyporaceae/Trichaptum/Trichaptum sector/Polyporus sector sector/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Threading;
using System.Threading.Tasks;
using Azure.Core.Cryptography;
using Azure.Core.TestFramework;
using Azure.Security.KeyVault.Keys.Cryptography;
using Azure.Storage.Blobs.Models;
using Azure.Storage.Blobs.Specialized;
using Azure.Storage.Blobs.Tests;
using Azure.Storage.Cryptography;
using Azure.Storage.Cryptography.Models;
using Azure.Storage.Test;
using Azure.Storage.Test.Shared;
using Moq;
using NUnit.Framework;
using static Moq.It;
namespace Azure.Storage.Blobs.Test
{
public class ClientSideEncryptionTests : BlobTestBase
{
private const string s_algorithmName = "some algorithm name";
private static readonly CancellationToken s_cancellationToken = new CancellationTokenSource().Token;
public ClientSideEncryptionTests(bool async, BlobClientOptions.ServiceVersion serviceVersion)
: base(async, serviceVersion, null /* RecordedTestMode.Record /* to re-record */)
{
}
/// <summary>
/// Provides encryption functionality clone of client logic, letting us validate the client got it right end-to-end.
/// </summary>
private byte[] EncryptData(byte[] data, byte[] key, byte[] iv)
{
using (var aesProvider = new AesCryptoServiceProvider() { Key = key, IV = iv })
using (var encryptor = aesProvider.CreateEncryptor())
using (var memStream = new MemoryStream())
using (var cryptoStream = new CryptoStream(memStream, encryptor, CryptoStreamMode.Write))
{
cryptoStream.Write(data, 0, data.Length);
cryptoStream.FlushFinalBlock();
return memStream.ToArray();
}
}
private async Task<IKeyEncryptionKey> GetKeyvaultIKeyEncryptionKey()
{
var keyClient = GetKeyClient_TargetKeyClient();
Security.KeyVault.Keys.KeyVaultKey key = await keyClient.CreateRsaKeyAsync(
new Security.KeyVault.Keys.CreateRsaKeyOptions($"CloudRsaKey-{Guid.NewGuid()}", false));
return new CryptographyClient(key.Id, GetTokenCredential_TargetKeyClient());
}
private async Task<DisposingContainer> GetTestContainerEncryptionAsync(
ClientSideEncryptionOptions encryptionOptions,
string containerName = default,
IDictionary<string, string> metadata = default)
{
// normally set through property on subclass; this is easier to hook up in current test infra with internals access
var options = GetOptions();
options._clientSideEncryptionOptions = encryptionOptions;
containerName ??= GetNewContainerName();
var service = BlobsClientBuilder.GetServiceClient_SharedKey(options);
BlobContainerClient container = InstrumentClient(service.GetBlobContainerClient(containerName));
await container.CreateAsync(metadata: metadata);
return new DisposingContainer(container);
}
private Mock<IKeyEncryptionKey> GetIKeyEncryptionKey(byte[] userKeyBytes = default, string keyId = default)
{
if (userKeyBytes == default)
{
const int keySizeBits = 256;
var bytes = new byte[keySizeBits >> 3];
new RNGCryptoServiceProvider().GetBytes(bytes);
userKeyBytes = bytes;
}
keyId ??= Guid.NewGuid().ToString();
var keyMock = new Mock<IKeyEncryptionKey>(MockBehavior.Strict);
keyMock.SetupGet(k => k.KeyId).Returns(keyId);
if (IsAsync)
{
keyMock.Setup(k => k.WrapKeyAsync(s_algorithmName, IsNotNull<ReadOnlyMemory<byte>>(), s_cancellationToken))
.Returns<string, ReadOnlyMemory<byte>, CancellationToken>((algorithm, key, cancellationToken) => Task.FromResult(Xor(userKeyBytes, key.ToArray())));
keyMock.Setup(k => k.UnwrapKeyAsync(s_algorithmName, IsNotNull<ReadOnlyMemory<byte>>(), s_cancellationToken))
.Returns<string, ReadOnlyMemory<byte>, CancellationToken>((algorithm, wrappedKey, cancellationToken) => Task.FromResult(Xor(userKeyBytes, wrappedKey.ToArray())));
}
else
{
keyMock.Setup(k => k.WrapKey(s_algorithmName, IsNotNull<ReadOnlyMemory<byte>>(), s_cancellationToken))
.Returns<string, ReadOnlyMemory<byte>, CancellationToken>((algorithm, key, cancellationToken) => Xor(userKeyBytes, key.ToArray()));
keyMock.Setup(k => k.UnwrapKey(s_algorithmName, IsNotNull<ReadOnlyMemory<byte>>(), It.IsAny<CancellationToken>()))
.Returns<string, ReadOnlyMemory<byte>, CancellationToken>((algorithm, wrappedKey, cancellationToken) => Xor(userKeyBytes, wrappedKey.ToArray()));
}
return keyMock;
}
private void VerifyUnwrappedKeyWasCached(Mock<IKeyEncryptionKey> keyMock)
{
if (IsAsync)
{
keyMock.Verify(k => k.UnwrapKeyAsync(s_algorithmName, IsNotNull<ReadOnlyMemory<byte>>(), s_cancellationToken), Times.Once);
}
else
{
keyMock.Verify(k => k.UnwrapKey(s_algorithmName, IsNotNull<ReadOnlyMemory<byte>>(), It.IsAny<CancellationToken>()), Times.Once);
}
}
private Mock<IKeyEncryptionKeyResolver> GetAlwaysFailsKeyResolver(bool throws)
{
var mock = new Mock<IKeyEncryptionKeyResolver>(MockBehavior.Strict);
if (IsAsync)
{
if (throws)
{
mock.Setup(r => r.ResolveAsync(IsNotNull<string>(), s_cancellationToken))
.Throws<Exception>();
}
else
{
mock.Setup(r => r.ResolveAsync(IsNotNull<string>(), s_cancellationToken))
.Returns(Task.FromResult<IKeyEncryptionKey>(null));
}
}
else
{
if (throws)
{
mock.Setup(r => r.Resolve(IsNotNull<string>(), s_cancellationToken))
.Throws<Exception>();
}
else
{
mock.Setup(r => r.Resolve(IsNotNull<string>(), s_cancellationToken))
.Returns((IKeyEncryptionKey)null);
}
}
return mock;
}
private Mock<IKeyEncryptionKeyResolver> GetIKeyEncryptionKeyResolver(IKeyEncryptionKey iKey)
{
var resolverMock = new Mock<IKeyEncryptionKeyResolver>(MockBehavior.Strict);
if (IsAsync)
{
resolverMock.Setup(r => r.ResolveAsync(IsNotNull<string>(), s_cancellationToken))
.Returns<string, CancellationToken>((keyId, cancellationToken) => iKey?.KeyId == keyId ? Task.FromResult(iKey) : throw new Exception("Mock resolver couldn't resolve key id."));
}
else
{
resolverMock.Setup(r => r.Resolve(IsNotNull<string>(), s_cancellationToken))
.Returns<string, CancellationToken>((keyId, cancellationToken) => iKey?.KeyId == keyId ? iKey : throw new Exception("Mock resolver couldn't resolve key id."));
}
return resolverMock;
}
private Mock<Microsoft.Azure.KeyVault.Core.IKey> GetTrackOneIKey(byte[] userKeyBytes = default, string keyId = default)
{
if (userKeyBytes == default)
{
const int keySizeBits = 256;
var bytes = new byte[keySizeBits >> 3];
new RNGCryptoServiceProvider().GetBytes(bytes);
userKeyBytes = bytes;
}
keyId ??= Guid.NewGuid().ToString();
var keyMock = new Mock<Microsoft.Azure.KeyVault.Core.IKey>(MockBehavior.Strict);
keyMock.SetupGet(k => k.Kid).Returns(keyId);
keyMock.SetupGet(k => k.DefaultKeyWrapAlgorithm).Returns(s_algorithmName);
// track one had async-only key wrapping
keyMock.Setup(k => k.WrapKeyAsync(IsNotNull<byte[]>(), IsAny<string>(), IsNotNull<CancellationToken>())) // track 1 doesn't pass in the same cancellation token?
// track 1 doesn't pass in the algorithm name, it lets the implementation return the default algorithm it chose
.Returns<byte[], string, CancellationToken>((key, algorithm, cancellationToken) => Task.FromResult(Tuple.Create(Xor(userKeyBytes, key), s_algorithmName)));
keyMock.Setup(k => k.UnwrapKeyAsync(IsNotNull<byte[]>(), s_algorithmName, IsNotNull<CancellationToken>())) // track 1 doesn't pass in the same cancellation token?
.Returns<byte[], string, CancellationToken>((wrappedKey, algorithm, cancellationToken) => Task.FromResult(Xor(userKeyBytes, wrappedKey)));
return keyMock;
}
private Mock<Microsoft.Azure.KeyVault.Core.IKeyResolver> GetTrackOneIKeyResolver(Microsoft.Azure.KeyVault.Core.IKey iKey)
{
var resolverMock = new Mock<Microsoft.Azure.KeyVault.Core.IKeyResolver>(MockBehavior.Strict);
resolverMock.Setup(r => r.ResolveKeyAsync(IsNotNull<string>(), IsNotNull<CancellationToken>())) // track 1 doesn't pass in the same cancellation token?
.Returns<string, CancellationToken>((keyId, cancellationToken) => iKey?.Kid == keyId ? Task.FromResult(iKey) : throw new Exception("Mock resolver couldn't resolve key id."));
return resolverMock;
}
private static byte[] Xor(byte[] a, byte[] b)
{
if (a.Length != b.Length)
{
throw new ArgumentException("Keys must be the same length for this mock implementation.");
}
var aBits = new System.Collections.BitArray(a);
var bBits = new System.Collections.BitArray(b);
var result = new byte[a.Length];
aBits.Xor(bBits).CopyTo(result, 0);
return result;
}
[Test]
[LiveOnly]
public void CanSwapKey()
{
var options1 = new ClientSideEncryptionOptions(ClientSideEncryptionVersion.V1_0)
{
KeyEncryptionKey = GetIKeyEncryptionKey().Object,
KeyResolver = GetIKeyEncryptionKeyResolver(default).Object,
KeyWrapAlgorithm = "foo"
};
var options2 = new ClientSideEncryptionOptions(ClientSideEncryptionVersion.V1_0)
{
KeyEncryptionKey = GetIKeyEncryptionKey().Object,
KeyResolver = GetIKeyEncryptionKeyResolver(default).Object,
KeyWrapAlgorithm = "bar"
};
var client = new BlobClient(new Uri("http://someuri.com"), new SpecializedBlobClientOptions()
{
ClientSideEncryption = options1,
});
Assert.AreEqual(options1.KeyEncryptionKey, client.ClientSideEncryption.KeyEncryptionKey);
Assert.AreEqual(options1.KeyResolver, client.ClientSideEncryption.KeyResolver);
Assert.AreEqual(options1.KeyWrapAlgorithm, client.ClientSideEncryption.KeyWrapAlgorithm);
client = client.WithClientSideEncryptionOptions(options2);
Assert.AreEqual(options2.KeyEncryptionKey, client.ClientSideEncryption.KeyEncryptionKey);
Assert.AreEqual(options2.KeyResolver, client.ClientSideEncryption.KeyResolver);
Assert.AreEqual(options2.KeyWrapAlgorithm, client.ClientSideEncryption.KeyWrapAlgorithm);
}
[TestCase(16)] // a single cipher block
[TestCase(14)] // a single unalligned cipher block
[TestCase(Constants.KB)] // multiple blocks
[TestCase(Constants.KB - 4)] // multiple unalligned blocks
[TestCase(Constants.MB)] // larger test, increasing likelihood to trigger async extension usage bugs
[LiveOnly] // cannot seed content encryption key
public async Task UploadAsync(long dataSize)
{
var data = GetRandomBuffer(dataSize);
var mockKey = GetIKeyEncryptionKey().Object;
await using (var disposable = await GetTestContainerEncryptionAsync(
new ClientSideEncryptionOptions(ClientSideEncryptionVersion.V1_0)
{
KeyEncryptionKey = mockKey,
KeyWrapAlgorithm = s_algorithmName
}))
{
var blobName = GetNewBlobName();
var blob = InstrumentClient(disposable.Container.GetBlobClient(blobName));
// upload with encryption
await blob.UploadAsync(new MemoryStream(data), cancellationToken: s_cancellationToken);
// download without decrypting
var encryptedDataStream = new MemoryStream();
await InstrumentClient(new BlobClient(blob.Uri, Tenants.GetNewSharedKeyCredentials())).DownloadToAsync(encryptedDataStream, cancellationToken: s_cancellationToken);
var encryptedData = encryptedDataStream.ToArray();
// encrypt original data manually for comparison
if (!(await blob.GetPropertiesAsync()).Value.Metadata.TryGetValue(Constants.ClientSideEncryption.EncryptionDataKey, out string serialEncryptionData))
{
Assert.Fail("No encryption metadata present.");
}
EncryptionData encryptionMetadata = EncryptionDataSerializer.Deserialize(serialEncryptionData);
Assert.NotNull(encryptionMetadata, "Never encrypted data.");
var explicitlyUnwrappedKey = IsAsync // can't instrument this
? await mockKey.UnwrapKeyAsync(s_algorithmName, encryptionMetadata.WrappedContentKey.EncryptedKey, s_cancellationToken).ConfigureAwait(false)
: mockKey.UnwrapKey(s_algorithmName, encryptionMetadata.WrappedContentKey.EncryptedKey, s_cancellationToken);
byte[] expectedEncryptedData = EncryptData(
data,
explicitlyUnwrappedKey,
encryptionMetadata.ContentEncryptionIV);
// compare data
Assert.AreEqual(expectedEncryptedData, encryptedData);
}
}
[TestCase(16, null)] // a single cipher block
[TestCase(14, null)] // a single unalligned cipher block
[TestCase(Constants.KB, null)] // multiple blocks
[TestCase(Constants.KB - 4, null)] // multiple unalligned blocks
[TestCase(Constants.MB, 64*Constants.KB)] // make sure we cache unwrapped key for large downloads
[LiveOnly] // cannot seed content encryption key
public async Task RoundtripAsync(long dataSize, long? initialDownloadRequestSize)
{
var data = GetRandomBuffer(dataSize);
var mockKey = GetIKeyEncryptionKey();
var mockKeyResolver = GetIKeyEncryptionKeyResolver(mockKey.Object).Object;
await using (var disposable = await GetTestContainerEncryptionAsync(
new ClientSideEncryptionOptions(ClientSideEncryptionVersion.V1_0)
{
KeyEncryptionKey = mockKey.Object,
KeyResolver = mockKeyResolver,
KeyWrapAlgorithm = s_algorithmName
}))
{
var blob = InstrumentClient(disposable.Container.GetBlobClient(GetNewBlobName()));
// upload with encryption
await blob.UploadAsync(new MemoryStream(data), cancellationToken: s_cancellationToken);
// download with decryption
byte[] downloadData;
using (var stream = new MemoryStream())
{
await blob.DownloadToAsync(stream,
transferOptions: new StorageTransferOptions() { InitialTransferSize = initialDownloadRequestSize },
cancellationToken: s_cancellationToken);
downloadData = stream.ToArray();
}
// compare data
Assert.AreEqual(data, downloadData);
VerifyUnwrappedKeyWasCached(mockKey);
}
}
[TestCase(Constants.MB, 64*Constants.KB)]
[TestCase(Constants.MB, Constants.MB)]
[TestCase(Constants.MB, 4*Constants.MB)]
[LiveOnly] // cannot seed content encryption key
public async Task RoundtripAsyncWithOpenRead(long dataSize, int bufferSize)
{
var data = GetRandomBuffer(dataSize);
var mockKey = GetIKeyEncryptionKey();
var mockKeyResolver = GetIKeyEncryptionKeyResolver(mockKey.Object).Object;
await using (var disposable = await GetTestContainerEncryptionAsync(
new ClientSideEncryptionOptions(ClientSideEncryptionVersion.V1_0)
{
KeyEncryptionKey = mockKey.Object,
KeyResolver = mockKeyResolver,
KeyWrapAlgorithm = s_algorithmName
}))
{
var blob = InstrumentClient(disposable.Container.GetBlobClient(GetNewBlobName()));
// upload with encryption
await blob.UploadAsync(new MemoryStream(data), cancellationToken: s_cancellationToken);
// download with decryption
byte[] downloadData;
using (var stream = new MemoryStream())
{
using var blobStream = await blob.OpenReadAsync(new BlobOpenReadOptions(false) { BufferSize = bufferSize }, cancellationToken: s_cancellationToken);
if (IsAsync)
{
await blobStream.CopyToAsync(stream, bufferSize, s_cancellationToken);
} else
{
blobStream.CopyTo(stream, bufferSize);
}
downloadData = stream.ToArray();
}
// compare data
Assert.AreEqual(data, downloadData);
VerifyUnwrappedKeyWasCached(mockKey);
}
}
[RecordedTest] // multiple unalligned blocks
[LiveOnly] // cannot seed content encryption key
public async Task KeyResolverKicksIn()
{
var data = GetRandomBuffer(Constants.KB);
var mockKey = GetIKeyEncryptionKey().Object;
var mockKeyResolver = GetIKeyEncryptionKeyResolver(mockKey).Object;
await using (var disposable = await GetTestContainerEncryptionAsync(
new ClientSideEncryptionOptions(ClientSideEncryptionVersion.V1_0)
{
KeyEncryptionKey = mockKey,
KeyWrapAlgorithm = s_algorithmName
}))
{
string blobName = GetNewBlobName();
// upload with encryption
await InstrumentClient(disposable.Container.GetBlobClient(blobName)).UploadAsync(new MemoryStream(data), cancellationToken: s_cancellationToken);
// download with decryption and no cached key
byte[] downloadData;
using (var stream = new MemoryStream())
{
var options = GetOptions();
options._clientSideEncryptionOptions = new ClientSideEncryptionOptions(ClientSideEncryptionVersion.V1_0)
{
KeyResolver = mockKeyResolver
};
await InstrumentClient(new BlobContainerClient(disposable.Container.Uri, Tenants.GetNewSharedKeyCredentials(), options).GetBlobClient(blobName)).DownloadToAsync(stream, cancellationToken: s_cancellationToken);
downloadData = stream.ToArray();
}
// compare data
Assert.AreEqual(data, downloadData);
}
}
[TestCase(0, 16)] // first block
[TestCase(16, 16)] // not first block
[TestCase(32, 32)] // multiple blocks; IV not at blob start
[TestCase(16, 17)] // overlap end of block
[TestCase(32, 17)] // overlap end of block; IV not at blob start
[TestCase(15, 17)] // overlap beginning of block
[TestCase(31, 17)] // overlap beginning of block; IV not at blob start
[TestCase(15, 18)] // overlap both sides
[TestCase(31, 18)] // overlap both sides; IV not at blob start
[TestCase(16, null)]
[LiveOnly] // cannot seed content encryption key
public async Task PartialDownloadAsync(int offset, int? count)
{
var data = GetRandomBuffer(offset + (count ?? 16) + 32); // ensure we have enough room in original data
var mockKey = GetIKeyEncryptionKey().Object;
var mockKeyResolver = GetIKeyEncryptionKeyResolver(mockKey).Object;
await using (var disposable = await GetTestContainerEncryptionAsync(
new ClientSideEncryptionOptions(ClientSideEncryptionVersion.V1_0)
{
KeyEncryptionKey = mockKey,
KeyResolver = mockKeyResolver,
KeyWrapAlgorithm = s_algorithmName
}))
{
var blob = InstrumentClient(disposable.Container.GetBlobClient(GetNewBlobName()));
// upload with encryption
await blob.UploadAsync(new MemoryStream(data), cancellationToken: s_cancellationToken);
// download range with decryption
byte[] downloadData; // no overload that takes Stream and HttpRange; we must buffer read
Stream downloadStream = (await blob.DownloadAsync(new HttpRange(offset, count), cancellationToken: s_cancellationToken)).Value.Content;
byte[] buffer = new byte[Constants.KB];
using (MemoryStream stream = new MemoryStream())
{
int read;
while ((read = downloadStream.Read(buffer, 0, buffer.Length)) > 0)
{
stream.Write(buffer, 0, read);
}
downloadData = stream.ToArray();
}
// compare range of original data to downloaded data
var slice = data.Skip(offset);
slice = count.HasValue
? slice.Take(count.Value)
: slice;
var sliceArray = slice.ToArray();
Assert.AreEqual(sliceArray, downloadData);
}
}
[Test]
[LiveOnly] // cannot seed content encryption key
public async Task Track2DownloadTrack1Blob()
{
var data = GetRandomBuffer(Constants.KB);
const int keySizeBits = 256;
var keyEncryptionKeyBytes = new byte[keySizeBits >> 3];
new RNGCryptoServiceProvider().GetBytes(keyEncryptionKeyBytes);
var keyId = Guid.NewGuid().ToString();
var mockKey = GetTrackOneIKey(keyEncryptionKeyBytes, keyId).Object;
var mockKeyResolver = GetIKeyEncryptionKeyResolver(GetIKeyEncryptionKey(keyEncryptionKeyBytes, keyId).Object).Object;
await using (var disposable = await GetTestContainerEncryptionAsync(new ClientSideEncryptionOptions(ClientSideEncryptionVersion.V1_0)
{
KeyResolver = mockKeyResolver,
KeyWrapAlgorithm = s_algorithmName
}))
{
var track2Blob = InstrumentClient(disposable.Container.GetBlobClient(GetNewBlobName()));
// upload with track 1
var creds = Tenants.GetNewSharedKeyCredentials();
var track1Blob = new Microsoft.Azure.Storage.Blob.CloudBlockBlob(
track2Blob.Uri,
new Microsoft.Azure.Storage.Auth.StorageCredentials(creds.AccountName, creds.GetAccountKey()));
var track1RequestOptions = new Microsoft.Azure.Storage.Blob.BlobRequestOptions()
{
EncryptionPolicy = new Microsoft.Azure.Storage.Blob.BlobEncryptionPolicy(mockKey, default)
};
if (IsAsync) // can't instrument track 1
{
await track1Blob.UploadFromByteArrayAsync(data, 0, data.Length, default, track1RequestOptions, default, s_cancellationToken);
}
else
{
track1Blob.UploadFromByteArray(data, 0, data.Length, default, track1RequestOptions, default);
}
// download with track 2
var downloadStream = new MemoryStream();
await track2Blob.DownloadToAsync(downloadStream, cancellationToken: s_cancellationToken);
// compare original data to downloaded data
Assert.AreEqual(data, downloadStream.ToArray());
}
}
[Test]
[LiveOnly] // cannot seed content encryption key
public async Task Track1DownloadTrack2Blob()
{
var data = GetRandomBuffer(Constants.KB); // ensure we have enough room in original data
const int keySizeBits = 256;
var keyEncryptionKeyBytes = new byte[keySizeBits >> 3];
new RNGCryptoServiceProvider().GetBytes(keyEncryptionKeyBytes);
var keyId = Guid.NewGuid().ToString();
var mockKey = GetIKeyEncryptionKey(keyEncryptionKeyBytes, keyId).Object;
var mockKeyResolver = GetTrackOneIKeyResolver(GetTrackOneIKey(keyEncryptionKeyBytes, keyId).Object).Object;
await using (var disposable = await GetTestContainerEncryptionAsync(
new ClientSideEncryptionOptions(ClientSideEncryptionVersion.V1_0)
{
KeyEncryptionKey = mockKey,
KeyWrapAlgorithm = s_algorithmName
}))
{
var track2Blob = InstrumentClient(disposable.Container.GetBlobClient(GetNewBlobName()));
// upload with track 2
await track2Blob.UploadAsync(new MemoryStream(data), cancellationToken: s_cancellationToken);
// download with track 1
var creds = Tenants.GetNewSharedKeyCredentials();
var track1Blob = new Microsoft.Azure.Storage.Blob.CloudBlockBlob(
track2Blob.Uri,
new Microsoft.Azure.Storage.Auth.StorageCredentials(creds.AccountName, creds.GetAccountKey()));
var downloadData = new byte[data.Length];
var track1RequestOptions = new Microsoft.Azure.Storage.Blob.BlobRequestOptions()
{
EncryptionPolicy = new Microsoft.Azure.Storage.Blob.BlobEncryptionPolicy(default, mockKeyResolver)
};
if (IsAsync) // can't instrument track 1
{
await track1Blob.DownloadToByteArrayAsync(downloadData, 0, default, track1RequestOptions, default, s_cancellationToken);
}
else
{
track1Blob.DownloadToByteArray(downloadData, 0, default, track1RequestOptions, default);
}
// compare original data to downloaded data
Assert.AreEqual(data, downloadData);
}
}
[Test]
[LiveOnly] // need access to keyvault service && cannot seed content encryption key
public async Task RoundtripWithKeyvaultProvider()
{
var data = GetRandomBuffer(Constants.KB);
IKeyEncryptionKey key = await GetKeyvaultIKeyEncryptionKey();
await using (var disposable = await GetTestContainerEncryptionAsync(
new ClientSideEncryptionOptions(ClientSideEncryptionVersion.V1_0)
{
KeyEncryptionKey = key,
KeyWrapAlgorithm = "RSA-OAEP-256"
}))
{
var blob = disposable.Container.GetBlobClient(GetNewBlobName());
await blob.UploadAsync(new MemoryStream(data), cancellationToken: s_cancellationToken);
var downloadStream = new MemoryStream();
await blob.DownloadToAsync(downloadStream, cancellationToken: s_cancellationToken);
Assert.AreEqual(data, downloadStream.ToArray());
}
}
[TestCase(Constants.MB, 64*Constants.KB)]
[LiveOnly] // need access to keyvault service && cannot seed content encryption key
public async Task RoundtripWithKeyvaultProviderOpenRead(long dataSize, int bufferSize)
{
var data = GetRandomBuffer(dataSize);
IKeyEncryptionKey key = await GetKeyvaultIKeyEncryptionKey();
await using (var disposable = await GetTestContainerEncryptionAsync(
new ClientSideEncryptionOptions(ClientSideEncryptionVersion.V1_0)
{
KeyEncryptionKey = key,
KeyWrapAlgorithm = "RSA-OAEP-256"
}))
{
var blob = disposable.Container.GetBlobClient(GetNewBlobName());
await blob.UploadAsync(new MemoryStream(data), cancellationToken: s_cancellationToken);
var downloadStream = new MemoryStream();
using var blobStream = await blob.OpenReadAsync(new BlobOpenReadOptions(false) { BufferSize = bufferSize});
await blobStream.CopyToAsync(downloadStream);
Assert.AreEqual(data, downloadStream.ToArray());
}
}
[TestCase(true)]
[TestCase(false)]
[LiveOnly]
public async Task CannotFindKeyAsync(bool resolverThrows)
{
var data = GetRandomBuffer(Constants.KB);
var mockKey = GetIKeyEncryptionKey().Object;
await using (var disposable = await GetTestContainerEncryptionAsync(
new ClientSideEncryptionOptions(ClientSideEncryptionVersion.V1_0)
{
KeyEncryptionKey = mockKey,
KeyWrapAlgorithm = s_algorithmName
}))
{
var blob = InstrumentClient(disposable.Container.GetBlobClient(GetNewBlobName()));
await blob.UploadAsync(new MemoryStream(data), cancellationToken: s_cancellationToken);
bool threw = false;
var resolver = GetAlwaysFailsKeyResolver(resolverThrows);
try
{
// download but can't find key
var options = GetOptions();
options._clientSideEncryptionOptions = new ClientSideEncryptionOptions(ClientSideEncryptionVersion.V1_0)
{
KeyResolver = resolver.Object,
KeyWrapAlgorithm = "test"
};
var encryptedDataStream = new MemoryStream();
await InstrumentClient(new BlobClient(blob.Uri, Tenants.GetNewSharedKeyCredentials(), options)).DownloadToAsync(encryptedDataStream, cancellationToken: s_cancellationToken);
}
catch (MockException e)
{
Assert.Fail(e.Message);
}
catch (Exception)
{
threw = true;
}
finally
{
Assert.IsTrue(threw);
// we already asserted the correct method was called in `catch (MockException e)`
Assert.AreEqual(1, resolver.Invocations.Count);
}
}
}
// using 5 to setup offsets to avoid any off-by-one confusion in debugging
[TestCase(0, null)]
[TestCase(0, 2 * Constants.ClientSideEncryption.EncryptionBlockSize)]
[TestCase(0, 2 * Constants.ClientSideEncryption.EncryptionBlockSize + 5)]
[TestCase(Constants.ClientSideEncryption.EncryptionBlockSize, Constants.ClientSideEncryption.EncryptionBlockSize)]
[TestCase(Constants.ClientSideEncryption.EncryptionBlockSize, Constants.ClientSideEncryption.EncryptionBlockSize + 5)]
[TestCase(Constants.ClientSideEncryption.EncryptionBlockSize + 5, 2 * Constants.ClientSideEncryption.EncryptionBlockSize)]
[LiveOnly]
public async Task AppropriateRangeDownloadOnPlaintext(int rangeOffset, int? rangeLength)
{
var data = GetRandomBuffer(rangeOffset + (rangeLength ?? Constants.KB) + Constants.ClientSideEncryption.EncryptionBlockSize);
var mockKeyResolver = GetIKeyEncryptionKeyResolver(GetIKeyEncryptionKey().Object).Object;
await using (var disposable = await GetTestContainerAsync())
{
// upload plaintext
var blob = disposable.Container.GetBlobClient(GetNewBlobName());
await blob.UploadAsync(new MemoryStream(data));
// download plaintext range with encrypted client
var cryptoClient = InstrumentClient(new BlobClient(blob.Uri, Tenants.GetNewSharedKeyCredentials(), new SpecializedBlobClientOptions()
{
ClientSideEncryption = new ClientSideEncryptionOptions(ClientSideEncryptionVersion.V1_0)
{
KeyResolver = mockKeyResolver
}
}));
var desiredRange = new HttpRange(rangeOffset, rangeLength);
var response = await cryptoClient.DownloadAsync(desiredRange);
// assert we recieved the data we requested
int expectedLength = rangeLength ?? data.Length - rangeOffset;
var memoryStream = new MemoryStream();
await response.Value.Content.CopyToAsync(memoryStream);
var recievedData = memoryStream.ToArray();
Assert.AreEqual(expectedLength, recievedData.Length);
for (int i = 0; i < recievedData.Length; i++)
{
Assert.AreEqual(data[i + rangeOffset], recievedData[i]);
}
}
}
[Test]
[LiveOnly] // cannot seed content encryption key
[Ignore("stress test")]
public async Task StressAsync()
{
static async Task<byte[]> RoundTripData(BlobClient client, byte[] data)
{
using (var dataStream = new MemoryStream(data))
{
await client.UploadAsync(dataStream, cancellationToken: s_cancellationToken);
}
using (var downloadStream = new MemoryStream())
{
await client.DownloadToAsync(downloadStream, cancellationToken: s_cancellationToken);
return downloadStream.ToArray();
}
}
var data = GetRandomBuffer(10 * Constants.MB);
var mockKey = GetIKeyEncryptionKey().Object;
var mockKeyResolver = GetIKeyEncryptionKeyResolver(mockKey).Object;
await using (var disposable = await GetTestContainerEncryptionAsync(
new ClientSideEncryptionOptions(ClientSideEncryptionVersion.V1_0)
{
KeyEncryptionKey = mockKey,
KeyResolver = mockKeyResolver,
KeyWrapAlgorithm = s_algorithmName
}))
{
var downloadTasks = new List<Task<byte[]>>();
foreach (var _ in Enumerable.Range(0, 10))
{
var blob = disposable.Container.GetBlobClient(GetNewBlobName());
downloadTasks.Add(RoundTripData(blob, data));
}
var downloads = await Task.WhenAll(downloadTasks);
foreach (byte[] downloadData in downloads)
{
Assert.AreEqual(data, downloadData);
}
}
}
[Test]
[LiveOnly]
public async Task EncryptedReuploadSuccess()
{
var originalData = GetRandomBuffer(Constants.KB);
var editedData = GetRandomBuffer(Constants.KB);
(string Key, string Value) originalMetadata = ("foo", "bar");
var mockKey = GetIKeyEncryptionKey().Object;
await using (var disposable = await GetTestContainerEncryptionAsync(
new ClientSideEncryptionOptions(ClientSideEncryptionVersion.V1_0)
{
KeyEncryptionKey = mockKey,
KeyWrapAlgorithm = s_algorithmName
}))
{
var encryptedBlobClient = InstrumentClient(disposable.Container.GetBlobClient(GetNewBlobName()));
// upload data with encryption
await encryptedBlobClient.UploadAsync(
new MemoryStream(originalData),
new BlobUploadOptions
{
Metadata = new Dictionary<string, string> { { originalMetadata.Key, originalMetadata.Value } }
},
cancellationToken: s_cancellationToken);
// download with decryption
var downloadResult = await encryptedBlobClient.DownloadAsync(cancellationToken: s_cancellationToken);
Assert.AreEqual(2, downloadResult.Value.Details.Metadata.Count);
Assert.IsTrue(downloadResult.Value.Details.Metadata.ContainsKey(originalMetadata.Key));
Assert.IsTrue(downloadResult.Value.Details.Metadata.ContainsKey(Constants.ClientSideEncryption.EncryptionDataKey));
var firstDownloadEncryptionData = downloadResult.Value.Details.Metadata[Constants.ClientSideEncryption.EncryptionDataKey];
// reupload edited blob, maintaining metadata as we recommend to customers
await encryptedBlobClient.UploadAsync(
new MemoryStream(editedData),
new BlobUploadOptions
{
Metadata = downloadResult.Value.Details.Metadata
},
cancellationToken: s_cancellationToken);
// if we didn't throw, success in reuploading with new encryption metadata
// download edited blob to assert expected data was uploaded
downloadResult = await encryptedBlobClient.DownloadAsync(cancellationToken: s_cancellationToken);
Assert.AreEqual(2, downloadResult.Value.Details.Metadata.Count);
Assert.IsTrue(downloadResult.Value.Details.Metadata.ContainsKey(originalMetadata.Key));
Assert.IsTrue(downloadResult.Value.Details.Metadata.ContainsKey(Constants.ClientSideEncryption.EncryptionDataKey));
Assert.AreNotEqual(firstDownloadEncryptionData, downloadResult.Value.Details.Metadata[Constants.ClientSideEncryption.EncryptionDataKey]);
}
}
[RecordedTest]
public void CanGenerateSas_WithClientSideEncryptionOptions_True()
{
// Arrange
var constants = TestConstants.Create(this);
var blobEndpoint = new Uri("https://127.0.0.1/" + constants.Sas.Account);
var blobSecondaryEndpoint = new Uri("https://127.0.0.1/" + constants.Sas.Account + "-secondary");
var storageConnectionString = new StorageConnectionString(constants.Sas.SharedKeyCredential, blobStorageUri: (blobEndpoint, blobSecondaryEndpoint));
string connectionString = storageConnectionString.ToString(true);
var options = new ClientSideEncryptionOptions(ClientSideEncryptionVersion.V1_0)
{
KeyEncryptionKey = GetIKeyEncryptionKey().Object,
KeyResolver = GetIKeyEncryptionKeyResolver(default).Object,
KeyWrapAlgorithm = "bar"
};
// Create blob
BlobClient blob = InstrumentClient(new BlobClient(
connectionString,
GetNewContainerName(),
GetNewBlobName()));
Assert.IsTrue(blob.CanGenerateSasUri);
// Act
BlobClient blobEncrypted = blob.WithClientSideEncryptionOptions(options);
// Assert
Assert.IsTrue(blobEncrypted.CanGenerateSasUri);
}
[RecordedTest]
public void CanGenerateSas_WithClientSideEncryptionOptions_False()
{
// Arrange
var constants = TestConstants.Create(this);
var blobEndpoint = new Uri("https://127.0.0.1/" + constants.Sas.Account);
var options = new ClientSideEncryptionOptions(ClientSideEncryptionVersion.V1_0)
{
KeyEncryptionKey = GetIKeyEncryptionKey().Object,
KeyResolver = GetIKeyEncryptionKeyResolver(default).Object,
KeyWrapAlgorithm = "bar"
};
// Create blob
BlobClient blob = InstrumentClient(new BlobClient(
blobEndpoint,
GetOptions()));
Assert.IsFalse(blob.CanGenerateSasUri);
// Act
BlobClient blobEncrypted = blob.WithClientSideEncryptionOptions(options);
// Assert
Assert.IsFalse(blobEncrypted.CanGenerateSasUri);
}
[Test]
public void CanParseLargeContentRange()
{
long compareValue = (long)Int32.MaxValue + 1; //Increase max int32 by one
ContentRange contentRange = ContentRange.Parse($"bytes 0 {compareValue} {compareValue}");
Assert.AreEqual((long)Int32.MaxValue + 1, contentRange.Size);
Assert.AreEqual(0, contentRange.Start);
Assert.AreEqual((long)Int32.MaxValue + 1, contentRange.End);
}
}
}
| {
"content_hash": "7209e12b158ee217cb02c6413a64f2ab",
"timestamp": "",
"source": "github",
"line_count": 877,
"max_line_length": 229,
"avg_line_length": 48.4321550741163,
"alnum_prop": 0.601577398469688,
"repo_name": "AsrOneSdk/azure-sdk-for-net",
"id": "0e46569a94e91373d6570c6c8288d221b30d3682",
"size": "42477",
"binary": false,
"copies": "1",
"ref": "refs/heads/psSdkJson6Current",
"path": "sdk/storage/Azure.Storage.Blobs/tests/ClientSideEncryptionTests.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "15473"
},
{
"name": "Bicep",
"bytes": "13438"
},
{
"name": "C#",
"bytes": "72203239"
},
{
"name": "CSS",
"bytes": "6089"
},
{
"name": "Dockerfile",
"bytes": "5652"
},
{
"name": "HTML",
"bytes": "6169271"
},
{
"name": "JavaScript",
"bytes": "16012"
},
{
"name": "PowerShell",
"bytes": "649218"
},
{
"name": "Shell",
"bytes": "31287"
},
{
"name": "Smarty",
"bytes": "11135"
}
],
"symlink_target": ""
} |
FROM balenalib/orangepi-plus2-ubuntu:eoan-run
# remove several traces of debian python
RUN apt-get purge -y python.*
# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8
# install python dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
netbase \
&& rm -rf /var/lib/apt/lists/*
# key 63C7CC90: public key "Simon McVittie <smcv@pseudorandom.co.uk>" imported
# key 3372DCFA: public key "Donald Stufft (dstufft) <donald@stufft.io>" imported
RUN gpg --keyserver keyring.debian.org --recv-keys 4DE8FF2A63C7CC90 \
&& gpg --keyserver keyserver.ubuntu.com --recv-key 6E3CBCE93372DCFA \
&& gpg --keyserver keyserver.ubuntu.com --recv-keys 0x52a43a1e4b77b059
ENV PYTHON_VERSION 3.9.1
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
ENV PYTHON_PIP_VERSION 20.3.1
ENV SETUPTOOLS_VERSION 51.0.0
RUN set -x \
&& buildDeps=' \
curl \
' \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
&& curl -SLO "http://resin-packages.s3.amazonaws.com/python/v$PYTHON_VERSION/Python-$PYTHON_VERSION.linux-armv7hf-openssl1.1.tar.gz" \
&& echo "14d708685cc8d0cfe988048490bf33abd2e4422683bccfbbdee0081278ca7948 Python-$PYTHON_VERSION.linux-armv7hf-openssl1.1.tar.gz" | sha256sum -c - \
&& tar -xzf "Python-$PYTHON_VERSION.linux-armv7hf-openssl1.1.tar.gz" --strip-components=1 \
&& rm -rf "Python-$PYTHON_VERSION.linux-armv7hf-openssl1.1.tar.gz" \
&& ldconfig \
&& if [ ! -e /usr/local/bin/pip3 ]; then : \
&& curl -SLO "https://raw.githubusercontent.com/pypa/get-pip/430ba37776ae2ad89f794c7a43b90dc23bac334c/get-pip.py" \
&& echo "19dae841a150c86e2a09d475b5eb0602861f2a5b7761ec268049a662dbd2bd0c get-pip.py" | sha256sum -c - \
&& python3 get-pip.py \
&& rm get-pip.py \
; fi \
&& pip3 install --no-cache-dir --upgrade --force-reinstall pip=="$PYTHON_PIP_VERSION" setuptools=="$SETUPTOOLS_VERSION" \
&& find /usr/local \
\( -type d -a -name test -o -name tests \) \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
-exec rm -rf '{}' + \
&& cd / \
&& rm -rf /usr/src/python ~/.cache
# make some useful symlinks that are expected to exist
RUN cd /usr/local/bin \
&& ln -sf pip3 pip \
&& { [ -e easy_install ] || ln -s easy_install-* easy_install; } \
&& ln -sf idle3 idle \
&& ln -sf pydoc3 pydoc \
&& ln -sf python3 python \
&& ln -sf python3-config python-config
# set PYTHONPATH to point to dist-packages
ENV PYTHONPATH /usr/lib/python3/dist-packages:$PYTHONPATH
CMD ["echo","'No CMD command was set in Dockerfile! Details about CMD command could be found in Dockerfile Guide section in our Docs. Here's the link: https://balena.io/docs"]
RUN curl -SLO "https://raw.githubusercontent.com/balena-io-library/base-images/8accad6af708fca7271c5c65f18a86782e19f877/scripts/assets/tests/test-stack@python.sh" \
&& echo "Running test-stack@python" \
&& chmod +x test-stack@python.sh \
&& bash test-stack@python.sh \
&& rm -rf test-stack@python.sh
RUN [ ! -d /.balena/messages ] && mkdir -p /.balena/messages; echo 'Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/): \nArchitecture: ARM v7 \nOS: Ubuntu eoan \nVariant: run variant \nDefault variable(s): UDEV=off \nThe following software stack is preinstalled: \nPython v3.9.1, Pip v20.3.1, Setuptools v51.0.0 \nExtra features: \n- Easy way to install packages with `install_packages <package-name>` command \n- Run anywhere with cross-build feature (for ARM only) \n- Keep the container idling with `balena-idle` command \n- Show base image details with `balena-info` command' > /.balena/messages/image-info
RUN echo '#!/bin/sh.real\nbalena-info\nrm -f /bin/sh\ncp /bin/sh.real /bin/sh\n/bin/sh "$@"' > /bin/sh-shim \
&& chmod +x /bin/sh-shim \
&& cp /bin/sh /bin/sh.real \
&& mv /bin/sh-shim /bin/sh | {
"content_hash": "a0c729ccae74e338913fcb9e4ee1e8bb",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 706,
"avg_line_length": 51.8974358974359,
"alnum_prop": 0.7080039525691699,
"repo_name": "nghiant2710/base-images",
"id": "c700861eb166a56f25cb563b8f465a8db1cdf1e4",
"size": "4069",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "balena-base-images/python/orangepi-plus2/ubuntu/eoan/3.9.1/run/Dockerfile",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Dockerfile",
"bytes": "144558581"
},
{
"name": "JavaScript",
"bytes": "16316"
},
{
"name": "Shell",
"bytes": "368690"
}
],
"symlink_target": ""
} |
package in.devmetric.opportunityhackcwdr.Fragments;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;
import com.android.volley.Request;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.StringRequest;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonParser;
import java.util.ArrayList;
import in.devmetric.opportunityhackcwdr.AppConfig;
import in.devmetric.opportunityhackcwdr.AppController;
import in.devmetric.opportunityhackcwdr.Hotline;
import in.devmetric.opportunityhackcwdr.MainActivity;
import in.devmetric.opportunityhackcwdr.Pojo.SearchPojo;
import in.devmetric.opportunityhackcwdr.R;
/**
* A simple {@link Fragment} subclass.
*/
public class HotlinesPage extends Fragment {
private RecyclerView recyclerView;
private RecyclerView.Adapter adapter;
private RecyclerView.LayoutManager layoutManager;
private ArrayList<Hotline> list;
public HotlinesPage() {
list = new ArrayList<>();
}
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_hotlines_page, container, false);
recyclerView = (RecyclerView) view.findViewById(R.id.recyalerView);
recyclerView.setHasFixedSize(true);
layoutManager = new LinearLayoutManager(getContext());
recyclerView.setLayoutManager(layoutManager);
getContent();
adapter = new HotlineAdapter(list);
recyclerView.setAdapter(adapter);
return view;
}
class HotlineAdapter extends RecyclerView.Adapter
<HotlineViewHolder> {
ArrayList<Hotline> mDataSet;
public HotlineAdapter(ArrayList<Hotline> mDataSet) {
this.mDataSet = mDataSet;
}
@Override
public HotlineViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.hotline_card, parent, false);
return new HotlineViewHolder(view);
}
@Override
public void onBindViewHolder(HotlineViewHolder holder, int position) {
holder.tvName.setText(mDataSet.get(position).getName());
holder.tvNumber.setText(mDataSet.get(position).getphone());
holder.tvLocation.setText(mDataSet.get(position).getLocation());
holder.tvInitial.setText(mDataSet.get(position).getName().charAt(0) + "");
}
@Override
public int getItemCount() {
return mDataSet.size();
}
}
class HotlineViewHolder extends RecyclerView.ViewHolder {
TextView tvName, tvNumber, tvLocation, tvInitial;
public HotlineViewHolder(View itemView) {
super(itemView);
tvName = (TextView) itemView.findViewById(R.id.tvName);
tvNumber = (TextView) itemView.findViewById(R.id.tvNumber);
tvLocation = (TextView) itemView.findViewById(R.id.tvLocation);
tvInitial = (TextView) itemView.findViewById(R.id.tvInitial);
}
}
private void getContent() {
StringRequest stringRequest = new StringRequest(Request.Method.GET, AppConfig.CONTACTS, new Response.Listener<String>() {
@Override
public void onResponse(String response1) {
System.out.println(response1 + "");
JsonArray response = new JsonParser().parse(response1).getAsJsonArray();
for (int i = 0; i < response.size(); i++) {
Hotline item = new Gson().fromJson(response.get(i).getAsJsonObject().toString(), Hotline.class);
list.add(item);
adapter.notifyDataSetChanged();
}
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
Toast.makeText(getContext(), error.getLocalizedMessage() + "No result found", Toast.LENGTH_SHORT).show();
}
});
stringRequest.setShouldCache(false);
AppController.getInstance().addToRequestQueue(stringRequest, "hotline");
}
}
| {
"content_hash": "44c3f7f84a90dc01cc5ccf77b0b204e0",
"timestamp": "",
"source": "github",
"line_count": 131,
"max_line_length": 129,
"avg_line_length": 34.732824427480914,
"alnum_prop": 0.6751648351648352,
"repo_name": "SilverFoxA/OpportunityHack2k16",
"id": "2298515c2a8d6181a20aa900ec634020131817a8",
"size": "4550",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "app/src/main/java/in/devmetric/opportunityhackcwdr/Fragments/HotlinesPage.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "113069"
}
],
"symlink_target": ""
} |
1. **Database**: [Dynomite](https://github.com/Netflix/dynomite)
2. **Indexing Backend**: [Elasticsearch 2.x](https://www.elastic.co)
2. **Servlet Container**: Tomcat, Jetty, or similar running JDK 1.8 or higher
There are 3 ways in which you can install Conductor:
#### 1. Build from source
To build from source, checkout the code from github and build server module using ```gradle build``` command. If you do not have gradle installed, you can run the command ```./gradlew build``` from the project root. This produces *conductor-server-all-VERSION.jar* in the folder *./server/build/libs/*
The jar can be executed using:
```shell
java -jar conductor-server-VERSION-all.jar
```
#### 2. Download pre-built binaries from jcenter or maven central
Use the following coordinates:
|group|artifact|version
|---|---|---|
|com.netflix.conductor|conductor-server-all|1.6.+|
#### 3. Use the pre-configured Docker image
To build the docker images for the conductor server and ui run the commands:
```shell
cd docker
docker-compose build
```
After the docker images are built, run the following command to start the containers:
```shell
docker-compose up
```
This will create a docker container network that consists of the following images: conductor:server, conductor:ui, [elasticsearch:2.4](https://hub.docker.com/_/elasticsearch/), and dynomite.
To view the UI, navigate to [localhost:5000](http://localhost:5000/), to view the Swagger docs, navigate to [localhost:8080](http://localhost:8080/).
# Configuration
Conductor server uses a property file based configuration. The property file is passed to the Main class as a command line argument.
```shell
java -jar conductor-server-all-VERSION.jar [PATH TO PROPERTY FILE] [log4j.properties file path]
```
log4j.properties file path is optional and allows finer control over the logging (defaults to INFO level logging in the console).
### Configuration Parameters
```properties
# Database persistence model. Possible values are memory, redis, and dynomite.
# If omitted, the persistence used is memory
#
# memory : The data is stored in memory and lost when the server dies. Useful for testing or demo
# redis : non-Dynomite based redis instance
# dynomite : Dynomite cluster. Use this for HA configuration.
db=dynomite
# Dynomite Cluster details.
# format is host:port:rack separated by semicolon
workflow.dynomite.cluster.hosts=host1:8102:us-east-1c;host2:8102:us-east-1d;host3:8102:us-east-1e
# Dynomite cluster name
workflow.dynomite.cluster.name=dyno_cluster_name
# Namespace for the keys stored in Dynomite/Redis
workflow.namespace.prefix=conductor
# Namespace prefix for the dyno queues
workflow.namespace.queue.prefix=conductor_queues
# No. of threads allocated to dyno-queues (optional)
queues.dynomite.threads=10
# Non-quorum port used to connect to local redis. Used by dyno-queues.
# When using redis directly, set this to the same port as redis server
# For Dynomite, this is 22122 by default or the local redis-server port used by Dynomite.
queues.dynomite.nonQuorum.port=22122
# Transport address to elasticsearch
workflow.elasticsearch.url=localhost:9300
# Name of the elasticsearch cluster
workflow.elasticsearch.index.name=conductor
# Additional modules (optional)
conductor.additional.modules=class_extending_com.google.inject.AbstractModule
```
# High Availability Configuration
Conductor servers are stateless and can be deployed on multiple servers to handle scale and availability needs. The scalability of the server is achieved by scaling the [Dynomite](https://github.com/Netflix/dynomite) cluster along with [dyno-queues](https://github.com/Netflix/dyno-queues) which is used for queues.
Clients connects to the server via HTTP load balancer or using Discovery (on NetflixOSS stack).
| {
"content_hash": "bf30e8968ef4c8f596ca75a87c1bef30",
"timestamp": "",
"source": "github",
"line_count": 96,
"max_line_length": 316,
"avg_line_length": 39.458333333333336,
"alnum_prop": 0.7745512143611405,
"repo_name": "d3sw/conductor",
"id": "6d2d58a906a771d06966a46baa1ca9716bc9d536",
"size": "3820",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "docs/docs/server/index.md",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "117415"
},
{
"name": "Dockerfile",
"bytes": "1898"
},
{
"name": "Go",
"bytes": "28582"
},
{
"name": "HCL",
"bytes": "25073"
},
{
"name": "HTML",
"bytes": "3658"
},
{
"name": "Java",
"bytes": "2088936"
},
{
"name": "JavaScript",
"bytes": "510546"
},
{
"name": "Makefile",
"bytes": "4982"
},
{
"name": "Python",
"bytes": "20268"
},
{
"name": "Shell",
"bytes": "7234"
}
],
"symlink_target": ""
} |
package ledger
import (
"crypto/ecdsa"
"errors"
"fmt"
"math/big"
"github.com/wojtechnology/glacier/crypto"
)
type Transaction struct {
AccountNonce uint64
V *big.Int
R, S *big.Int
To Address
Amount *big.Int
}
// ---------------
// Transaction API
// ---------------
type TransactionBody struct {
To Address
Amount *big.Int
}
// Returns the hash to be used for signing the transaction
func (t *Transaction) SigHash() Hash {
body := &TransactionBody{To: t.To, Amount: t.Amount}
return rlpHash(body)
}
// Returns the From address for the transaction derived from the V, R, S signature
func (t *Transaction) From() (Address, error) {
var emptyAddr Address
if t.R == nil || t.S == nil || t.V == nil {
// TODO: Maybe new error for this
return emptyAddr, errors.New("Transaction is missing a signature\n")
}
sig := make([]byte, 65)
r, s, v := PaddedBytes(t.R, 32), PaddedBytes(t.S, 32), PaddedBytes(t.V, 1)
hash := t.SigHash()
if len(r) != 32 {
return emptyAddr, errors.New(fmt.Sprintf("t.R = %v, should be 32 bytes long\n", r))
}
if len(s) != 32 {
return emptyAddr, errors.New(fmt.Sprintf("t.S = %v, should be 32 bytes long\n", s))
}
if len(v) != 1 {
return emptyAddr, errors.New(fmt.Sprintf("t.V = %v, should be 1 byte long\n", v))
}
for i := range r {
sig[i] = r[i]
}
for i := range s {
sig[32+i] = s[i]
}
sig[64] = v[0]
pub, err := crypto.RetrievePublicKey(hash.Bytes(), sig)
if err != nil {
return emptyAddr, err
}
return AddressFromPubKey(pub), nil
}
// Signs the transaction body and writes the corresponding values to V, R, S
func SignTx(t *Transaction, priv *ecdsa.PrivateKey) (*Transaction, error) {
hash := t.SigHash()
sig, err := crypto.Sign(hash.Bytes(), priv)
if err != nil {
return nil, err
}
if len(sig) != 65 {
return nil, errors.New(fmt.Sprintf("Signature \"%v\" must have a length of 65", sig))
}
newT := &Transaction{To: t.To, Amount: t.Amount}
newT.R = new(big.Int).SetBytes(sig[:32])
newT.S = new(big.Int).SetBytes(sig[32:64])
newT.V = new(big.Int).SetBytes([]byte{sig[64]})
return newT, nil
}
| {
"content_hash": "f856cf53281f65b39bf6e7c2bdfb2c47",
"timestamp": "",
"source": "github",
"line_count": 90,
"max_line_length": 87,
"avg_line_length": 23.655555555555555,
"alnum_prop": 0.6284640676373885,
"repo_name": "Wojtechnology/glacier",
"id": "686c845df32f36cb877d3cb72138ec3803deb5ff",
"size": "2129",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "ledger/transaction.go",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Go",
"bytes": "240896"
}
],
"symlink_target": ""
} |
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.longsh.pagerslidingtabstrip">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest> | {
"content_hash": "b920c2b3ff5e1b21705472bf3249385e",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 76,
"avg_line_length": 33.55,
"alnum_prop": 0.6199701937406855,
"repo_name": "q805699513/PagerSlidingTabStrip",
"id": "dfaf5717a298128360f92d3f99a57588defd44b7",
"size": "671",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/src/main/AndroidManifest.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "36030"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-pcuic: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.9.0 / metacoq-pcuic - 1.0~beta2+8.11</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
metacoq-pcuic
<small>
1.0~beta2+8.11
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-08-30 23:26:01 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-08-30 23:26:01 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 2 Virtual package relying on perl
coq 8.9.0 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.04.2 The OCaml compiler (virtual package)
ocaml-base-compiler 4.04.2 Official 4.04.2 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.5 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "matthieu.sozeau@inria.fr"
homepage: "https://metacoq.github.io/metacoq"
dev-repo: "git+https://github.com/MetaCoq/metacoq.git#coq-8.11"
bug-reports: "https://github.com/MetaCoq/metacoq/issues"
authors: ["Abhishek Anand <aa755@cs.cornell.edu>"
"Simon Boulier <simon.boulier@inria.fr>"
"Cyril Cohen <cyril.cohen@inria.fr>"
"Yannick Forster <forster@ps.uni-saarland.de>"
"Fabian Kunze <fkunze@fakusb.de>"
"Gregory Malecha <gmalecha@gmail.com>"
"Matthieu Sozeau <matthieu.sozeau@inria.fr>"
"Nicolas Tabareau <nicolas.tabareau@inria.fr>"
"Théo Winterhalter <theo.winterhalter@inria.fr>"
]
license: "MIT"
build: [
["sh" "./configure.sh"]
[make "-j%{jobs}%" "-C" "pcuic"]
]
install: [
[make "-C" "pcuic" "install"]
]
depends: [
"ocaml" {>= "4.07.1"}
"coq" {>= "8.11" & < "8.12~"}
"coq-equations" {>= "1.2.3"}
"coq-metacoq-template" {= version}
]
synopsis: "A type system equivalent to Coq's and its metatheory"
description: """
MetaCoq is a meta-programming framework for Coq.
The PCUIC module provides a cleaned-up specification of Coq's typing algorithm along
with a certified typechecker for it. This module includes the standard metatheory of
PCUIC: Weakening, Substitution, Confluence and Subject Reduction are proven here.
"""
# url {
# src: "https://github.com/MetaCoq/metacoq/archive/v2.1-beta3.tar.gz"
# checksum: "md5=e81b8ecabef788a10337a39b095d54f3"
# }
url {
src: "https://github.com/MetaCoq/metacoq/archive/v1.0-beta2-8.11.tar.gz"
checksum: "sha256=35d4a30bb19e6710fc03d178a2c8a17bc964bfbfd9236d1c59a0e77a30c425df"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-metacoq-pcuic.1.0~beta2+8.11 coq.8.9.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.9.0).
The following dependencies couldn't be met:
- coq-metacoq-pcuic -> ocaml >= 4.07.1
base of this switch (use `--unlock-base' to force)
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-metacoq-pcuic.1.0~beta2+8.11</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| {
"content_hash": "f7576cb92eb2039d6e729f3dffa8febe",
"timestamp": "",
"source": "github",
"line_count": 185,
"max_line_length": 159,
"avg_line_length": 42.74054054054054,
"alnum_prop": 0.557986594157076,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "d21a8f704dd7c40d2c784a2473365c52eb798a4b",
"size": "7933",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "clean/Linux-x86_64-4.04.2-2.0.5/released/8.9.0/metacoq-pcuic/1.0~beta2+8.11.html",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
} |
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/light_primary_color" />
<corners android:radius="20px" />
</shape> | {
"content_hash": "ca7815d8fd1dde428e2b294099f58ce5",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 65,
"avg_line_length": 39.833333333333336,
"alnum_prop": 0.6861924686192469,
"repo_name": "engineerchef/MovieDB",
"id": "281fc9eb39b039dee35f0a26cb5ba9fca177a2d8",
"size": "239",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "app/src/main/res/drawable/oval.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "509770"
}
],
"symlink_target": ""
} |
<?php
namespace Brainstrap\Bundles\FrontBundle\Tests\Controller\Tariff;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class TariffGroupControllerTest extends WebTestCase
{
/*
public function testCompleteScenario()
{
// Create a new client to browse the application
$client = static::createClient();
// Create a new entry in the database
$crawler = $client->request('GET', '/tariff_tariffgroup/');
$this->assertEquals(200, $client->getResponse()->getStatusCode(), "Unexpected HTTP status code for GET /tariff_tariffgroup/");
$crawler = $client->click($crawler->selectLink('Create a new entry')->link());
// Fill in the form and submit it
$form = $crawler->selectButton('Create')->form(array(
'brainstrap_bundles_frontbundle_tariff_tariffgroup[field_name]' => 'Test',
// ... other fields to fill
));
$client->submit($form);
$crawler = $client->followRedirect();
// Check data in the show view
$this->assertGreaterThan(0, $crawler->filter('td:contains("Test")')->count(), 'Missing element td:contains("Test")');
// Edit the entity
$crawler = $client->click($crawler->selectLink('Edit')->link());
$form = $crawler->selectButton('Update')->form(array(
'brainstrap_bundles_frontbundle_tariff_tariffgroup[field_name]' => 'Foo',
// ... other fields to fill
));
$client->submit($form);
$crawler = $client->followRedirect();
// Check the element contains an attribute with value equals "Foo"
$this->assertGreaterThan(0, $crawler->filter('[value="Foo"]')->count(), 'Missing element [value="Foo"]');
// Delete the entity
$client->submit($crawler->selectButton('Delete')->form());
$crawler = $client->followRedirect();
// Check the entity has been delete on the list
$this->assertNotRegExp('/Foo/', $client->getResponse()->getContent());
}
*/
}
| {
"content_hash": "fb37f7cb404c0d8c548a764d4a711097",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 134,
"avg_line_length": 36.92727272727273,
"alnum_prop": 0.6174298375184638,
"repo_name": "karmis/hotel",
"id": "68d26583b8925eb0d70c1feaebc23e3a46a19e95",
"size": "2031",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/Brainstrap/Bundles/FrontBundle/Tests/Controller/Tariff/TariffGroupControllerTest.php",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "99647"
},
{
"name": "JavaScript",
"bytes": "90173"
},
{
"name": "PHP",
"bytes": "366245"
}
],
"symlink_target": ""
} |
require "pathname"
require "execjs"
require "json"
IS_SECTION = /^\s*\[(.+)\]\s*$/
module AutoprefixerRails
# Ruby to JS wrapper for Autoprefixer processor instance
class Processor
def initialize(params = {})
@params = params || {}
end
# Process `css` and return result.
#
# Options can be:
# * `from` with input CSS file name. Will be used in error messages.
# * `to` with output CSS file name.
# * `map` with true to generate new source map or with previous map.
def process(css, opts = {})
opts = convert_options(opts)
apply_wrapper =
"(function(opts, pluginOpts) {" \
"return eval(process.apply(this, opts, pluginOpts));" \
"})"
plugin_opts = params_with_browsers(opts[:from]).merge(opts)
process_opts = {
from: plugin_opts.delete(:from),
to: plugin_opts.delete(:to),
map: plugin_opts.delete(:map),
}
begin
result = runtime.call(apply_wrapper, [css, process_opts, plugin_opts])
rescue ExecJS::ProgramError => e
contry_error = "BrowserslistError: " \
"Country statistics is not supported " \
"in client-side build of Browserslist"
if e.message == contry_error
raise "Country statistics is not supported in AutoprefixerRails. " \
"Use Autoprefixer with webpack or other Node.js builder."
else
raise e
end
end
Result.new(result["css"], result["map"], result["warnings"])
end
# Return, which browsers and prefixes will be used
def info
runtime.eval("autoprefixer(#{js_params}).info()")
end
# Parse Browserslist config
def parse_config(config)
sections = {"defaults" => []}
current = "defaults"
config.gsub(/#[^\n]*/, "")
.split(/\n/)
.map(&:strip)
.reject(&:empty?)
.each do |line|
if IS_SECTION =~ line
current = line.match(IS_SECTION)[1].strip
sections[current] ||= []
else
sections[current] << line
end
end
sections
end
private
def params_with_browsers(from = nil)
from ||= if defined?(Rails) && Rails.respond_to?(:root) && Rails.root
Rails.root.join("app/assets/stylesheets").to_s
else
"."
end
params = @params
if !params.key?(:browsers) && from
file = find_config(from)
if file
env = params[:env].to_s || "development"
config = parse_config(file)
params = params.dup
params[:browsers] = (config[env] || config["defaults"])
end
end
params
end
# Convert params to JS string and add browsers from Browserslist config
def js_params
"{ " +
params_with_browsers.map { |k, v| "#{k}: #{v.inspect}"}.join(", ") +
" }"
end
# Convert ruby_options to jsOptions
def convert_options(opts)
converted = {}
opts.each_pair do |name, value|
if /_/ =~ name
name = name.to_s.gsub(/_\w/) { |i| i.delete("_").upcase }.to_sym
end
value = convert_options(value) if value.is_a? Hash
converted[name] = value
end
converted
end
# Try to find Browserslist config
def find_config(file)
path = Pathname(file).expand_path
while path.parent != path
config1 = path.join("browserslist")
return config1.read if config1.exist? && !config1.directory?
config2 = path.join(".browserslistrc")
return config2.read if config2.exist? && !config1.directory?
path = path.parent
end
nil
end
# Lazy load for JS library
def runtime
@runtime ||= begin
if ExecJS.eval("typeof Uint8Array") != "function"
if ExecJS.runtime.name.start_with?("therubyracer")
raise "ExecJS::RubyRacerRuntime is not supported. " \
"Please replace therubyracer with mini_racer " \
"in your Gemfile or use Node.js as ExecJS runtime."
else
raise "#{ExecJS.runtime.name} runtime does’t support ES6. " \
"Please update or replace your current ExecJS runtime."
end
end
if ExecJS.runtime == ExecJS::Runtimes::Node
version = ExecJS.runtime.eval("process.version")
first = version.match(/^v(\d+)/)[1].to_i
if first < 6
raise "Autoprefixer doesn’t support Node #{version}. Update it."
end
end
ExecJS.compile(build_js)
end
end
# Cache autoprefixer.js content
def read_js
@@js ||= begin
root = Pathname(File.dirname(__FILE__))
path = root.join("../../vendor/autoprefixer.js")
path.read
end
end
# Return processor JS with some extra methods
def build_js
"var global = this;" + read_js + process_proxy
end
# Return JS code for process method proxy
def process_proxy
<<-JS
var processor;
var process = function() {
var result = autoprefixer.process.apply(autoprefixer, arguments);
var warns = result.warnings().map(function (i) {
delete i.plugin;
return i.toString();
});
var map = result.map ? result.map.toString() : null;
return { css: result.css, map: map, warnings: warns };
};
JS
end
end
end
| {
"content_hash": "3cdc7ca6f1f6ea4063daf923c3a55348",
"timestamp": "",
"source": "github",
"line_count": 194,
"max_line_length": 78,
"avg_line_length": 28.144329896907216,
"alnum_prop": 0.5642857142857143,
"repo_name": "hafeild/alice",
"id": "f5fa0b05e25793f58764873cd928757541529408",
"size": "5464",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "vendor/bundle/ruby/2.3.0/gems/autoprefixer-rails-9.4.10.2/lib/autoprefixer-rails/processor.rb",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "CoffeeScript",
"bytes": "211"
},
{
"name": "HTML",
"bytes": "226549"
},
{
"name": "JavaScript",
"bytes": "22184"
},
{
"name": "Ruby",
"bytes": "426829"
},
{
"name": "SCSS",
"bytes": "12517"
},
{
"name": "Shell",
"bytes": "16921"
}
],
"symlink_target": ""
} |
{-# LANGUAGE UnicodeSyntax #-}
import Criterion.Main
import Control.DeepSeq
import Control.Monad (MonadPlus)
import Data.Serialize
import System.Environment
import LogicGrowsOnTrees
import LogicGrowsOnTrees.Checkpoint
import LogicGrowsOnTrees.Utils.PerfectTree
import qualified LogicGrowsOnTrees.Parallel.Adapter.Threads as Threads
import LogicGrowsOnTrees.Parallel.Adapter.Threads (setNumberOfWorkers)
import LogicGrowsOnTrees.Parallel.Common.Worker (exploreTreeGeneric)
import LogicGrowsOnTrees.Parallel.ExplorationMode (ExplorationMode(AllMode))
import LogicGrowsOnTrees.Parallel.Main
import LogicGrowsOnTrees.Parallel.Purity (Purity(Pure))
makeTree ∷ MonadPlus m ⇒ MyUnit → m MyUnit
makeTree x = perfectTree x 2 15
-- We need to define our own version of () because the mconcat method for ()
-- completely ignores the argument list and so bypasses the cost of adding the
-- ()'s up.
data MyUnit = MyUnit
instance Serialize MyUnit where
put _ = put ()
get = return MyUnit
instance Semigroup MyUnit where
x <> y = x `seq` y `seq` MyUnit
instance Monoid MyUnit where
mempty = MyUnit
instance NFData MyUnit where
rnf x = x `seq` ()
main :: IO ()
main = defaultMain
[bench "list" $ nf (mconcat . makeTree) MyUnit
,bench "tree" $ nf (exploreTree . makeTree) MyUnit
,bench "tree w/ checkpointing" $
nf (exploreTreeStartingFromCheckpoint Unexplored . makeTree) MyUnit
,bench "tree using worker" $ nfIO $
exploreTreeGeneric AllMode Pure (makeTree MyUnit)
,bench "tree using single thread (direct)" $ nfIO $
Threads.exploreTree (setNumberOfWorkers 1) (makeTree MyUnit)
,bench "tree using single thread (main)" $ nfIO $
withArgs ["-n1"] $
simpleMainForExploreTree
Threads.driver
mempty
(const $ return ())
(makeTree MyUnit)
]
| {
"content_hash": "e3d64878a689bf57f220493ef47d4dce",
"timestamp": "",
"source": "github",
"line_count": 57,
"max_line_length": 78,
"avg_line_length": 33.10526315789474,
"alnum_prop": 0.7170111287758346,
"repo_name": "gcross/LogicGrowsOnTrees",
"id": "49ae73e5d4b177d4baec55761423f616d224a48c",
"size": "1893",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "LogicGrowsOnTrees/benchmarks/tree-versus-list-unit-tree.hs",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "C",
"bytes": "3112"
},
{
"name": "Gnuplot",
"bytes": "561"
},
{
"name": "Haskell",
"bytes": "788159"
},
{
"name": "Shell",
"bytes": "486"
}
],
"symlink_target": ""
} |
/**
* JBusiCmdProd.java 2010/06/08
*/
package com.ycsoft.beans.core.job;
import java.io.Serializable;
import com.ycsoft.daos.config.POJO;
/**
* JBusiCmdProd -> J_BUSI_CMD_PROD mapping
*/
@POJO(tn = "J_BUSI_CMD_PROD", sn = "", pk = "")
public class JBusiCmdProd implements Serializable {
// JBusiCmdProd all properties
/**
*
*/
private static final long serialVersionUID = -811042361311810842L;
private Integer job_id;
private String sn;
private String time_stamp;
/**
* default empty constructor
*/
public JBusiCmdProd() {
}
// job_id getter and setter
public int getJob_id() {
return job_id;
}
public void setJob_id(int job_id) {
this.job_id = job_id;
}
// sn getter and setter
public String getSn() {
return sn;
}
public void setSn(String sn) {
this.sn = sn;
}
// time_stamp getter and setter
public String getTime_stamp() {
return time_stamp;
}
public void setTime_stamp(String time_stamp) {
this.time_stamp = time_stamp;
}
} | {
"content_hash": "5d6054990c1348baf3c8e88105f4ea0b",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 67,
"avg_line_length": 17.483333333333334,
"alnum_prop": 0.6339370829361296,
"repo_name": "leopardoooo/cambodia",
"id": "a95d7136e163b9f7ff61cd42f327228c0fe00d75",
"size": "1049",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "ycsoft-lib/src/main/java/com/ycsoft/beans/core/job/JBusiCmdProd.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "826"
},
{
"name": "CSS",
"bytes": "1028439"
},
{
"name": "HTML",
"bytes": "17547"
},
{
"name": "Java",
"bytes": "14519872"
},
{
"name": "JavaScript",
"bytes": "4711774"
},
{
"name": "Shell",
"bytes": "2315"
}
],
"symlink_target": ""
} |
package s3shared
// goModuleVersion is the tagged release for this module
const goModuleVersion = "1.13.3"
| {
"content_hash": "a24832d02a015ab7bf759c332d29e23f",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 56,
"avg_line_length": 27,
"alnum_prop": 0.7870370370370371,
"repo_name": "GeoNet/fdsn",
"id": "fac99791b7aca775eb4dc05d324d3fea5cb1540f",
"size": "183",
"binary": false,
"copies": "2",
"ref": "refs/heads/main",
"path": "vendor/github.com/aws/aws-sdk-go-v2/service/internal/s3shared/go_module_metadata.go",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Dockerfile",
"bytes": "1009"
},
{
"name": "Go",
"bytes": "207849"
},
{
"name": "HTML",
"bytes": "5524"
},
{
"name": "Shell",
"bytes": "9043"
},
{
"name": "XSLT",
"bytes": "121118"
}
],
"symlink_target": ""
} |
.class public Landroid/media/AudioTrack;
.super Ljava/lang/Object;
.source "AudioTrack.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroid/media/AudioTrack$NativeEventHandlerDelegate;,
Landroid/media/AudioTrack$OnPlaybackPositionUpdateListener;
}
.end annotation
# static fields
.field public static final ERROR:I = -0x1
.field public static final ERROR_BAD_VALUE:I = -0x2
.field public static final ERROR_INVALID_OPERATION:I = -0x3
.field private static final ERROR_NATIVESETUP_AUDIOSYSTEM:I = -0x10
.field private static final ERROR_NATIVESETUP_INVALIDCHANNELMASK:I = -0x11
.field private static final ERROR_NATIVESETUP_INVALIDFORMAT:I = -0x12
.field private static final ERROR_NATIVESETUP_INVALIDSTREAMTYPE:I = -0x13
.field private static final ERROR_NATIVESETUP_NATIVEINITFAILED:I = -0x14
.field public static final MODE_STATIC:I = 0x0
.field public static final MODE_STREAM:I = 0x1
.field private static final NATIVE_EVENT_MARKER:I = 0x3
.field private static final NATIVE_EVENT_NEW_POS:I = 0x4
.field public static final PLAYSTATE_PAUSED:I = 0x2
.field public static final PLAYSTATE_PLAYING:I = 0x3
.field public static final PLAYSTATE_STOPPED:I = 0x1
.field public static final STATE_INITIALIZED:I = 0x1
.field public static final STATE_NO_STATIC_DATA:I = 0x2
.field public static final STATE_UNINITIALIZED:I = 0x0
.field public static final SUCCESS:I = 0x0
.field private static final SUPPORTED_OUT_CHANNELS:I = 0x4fc
.field private static final TAG:Ljava/lang/String; = "AudioTrack-Java"
.field private static final VOLUME_MAX:F = 1.0f
.field private static final VOLUME_MIN:F
# instance fields
.field private mAudioFormat:I
.field private mChannelConfiguration:I
.field private mChannelCount:I
.field private mChannels:I
.field private mDataLoadMode:I
.field private mEventHandlerDelegate:Landroid/media/AudioTrack$NativeEventHandlerDelegate;
.field private mInitializationLooper:Landroid/os/Looper;
.field private mJniData:I
.field private mNativeBufferSizeInBytes:I
.field private mNativeTrackInJavaObj:I
.field private mPlayState:I
.field private final mPlayStateLock:Ljava/lang/Object;
.field private mPositionListener:Landroid/media/AudioTrack$OnPlaybackPositionUpdateListener;
.field private final mPositionListenerLock:Ljava/lang/Object;
.field private mSampleRate:I
.field private mSessionId:I
.field private mState:I
.field private mStreamType:I
# direct methods
.method public constructor <init>(IIIIII)V
.locals 8
.parameter "streamType"
.parameter "sampleRateInHz"
.parameter "channelConfig"
.parameter "audioFormat"
.parameter "bufferSizeInBytes"
.parameter "mode"
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/IllegalArgumentException;
}
.end annotation
.prologue
.line 267
const/4 v7, 0x0
move-object v0, p0
move v1, p1
move v2, p2
move v3, p3
move v4, p4
move v5, p5
move v6, p6
invoke-direct/range {v0 .. v7}, Landroid/media/AudioTrack;-><init>(IIIIIII)V
.line 269
return-void
.end method
.method public constructor <init>(IIIIIII)V
.locals 11
.parameter "streamType"
.parameter "sampleRateInHz"
.parameter "channelConfig"
.parameter "audioFormat"
.parameter "bufferSizeInBytes"
.parameter "mode"
.parameter "sessionId"
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/IllegalArgumentException;
}
.end annotation
.prologue
.line 307
invoke-direct/range {p0 .. p0}, Ljava/lang/Object;-><init>()V
.line 150
const/4 v1, 0x0
iput v1, p0, Landroid/media/AudioTrack;->mState:I
.line 154
const/4 v1, 0x1
iput v1, p0, Landroid/media/AudioTrack;->mPlayState:I
.line 158
new-instance v1, Ljava/lang/Object;
invoke-direct/range {v1 .. v1}, Ljava/lang/Object;-><init>()V
iput-object v1, p0, Landroid/media/AudioTrack;->mPlayStateLock:Ljava/lang/Object;
.line 164
const/4 v1, 0x0
iput-object v1, p0, Landroid/media/AudioTrack;->mPositionListener:Landroid/media/AudioTrack$OnPlaybackPositionUpdateListener;
.line 168
new-instance v1, Ljava/lang/Object;
invoke-direct/range {v1 .. v1}, Ljava/lang/Object;-><init>()V
iput-object v1, p0, Landroid/media/AudioTrack;->mPositionListenerLock:Ljava/lang/Object;
.line 172
const/4 v1, 0x0
iput v1, p0, Landroid/media/AudioTrack;->mNativeBufferSizeInBytes:I
.line 176
const/4 v1, 0x0
iput-object v1, p0, Landroid/media/AudioTrack;->mEventHandlerDelegate:Landroid/media/AudioTrack$NativeEventHandlerDelegate;
.line 180
const/4 v1, 0x0
iput-object v1, p0, Landroid/media/AudioTrack;->mInitializationLooper:Landroid/os/Looper;
.line 188
const/4 v1, 0x1
iput v1, p0, Landroid/media/AudioTrack;->mChannelCount:I
.line 192
const/4 v1, 0x4
iput v1, p0, Landroid/media/AudioTrack;->mChannels:I
.line 201
const/4 v1, 0x3
iput v1, p0, Landroid/media/AudioTrack;->mStreamType:I
.line 205
const/4 v1, 0x1
iput v1, p0, Landroid/media/AudioTrack;->mDataLoadMode:I
.line 209
const/4 v1, 0x4
iput v1, p0, Landroid/media/AudioTrack;->mChannelConfiguration:I
.line 215
const/4 v1, 0x2
iput v1, p0, Landroid/media/AudioTrack;->mAudioFormat:I
.line 219
const/4 v1, 0x0
iput v1, p0, Landroid/media/AudioTrack;->mSessionId:I
.line 308
const/4 v1, 0x0
iput v1, p0, Landroid/media/AudioTrack;->mState:I
.line 311
invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;
move-result-object v1
iput-object v1, p0, Landroid/media/AudioTrack;->mInitializationLooper:Landroid/os/Looper;
if-nez v1, :cond_0
.line 312
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v1
iput-object v1, p0, Landroid/media/AudioTrack;->mInitializationLooper:Landroid/os/Looper;
:cond_0
move-object v1, p0
move v2, p1
move v3, p2
move v4, p3
move v5, p4
move/from16 v6, p6
.line 315
invoke-direct/range {v1 .. v6}, Landroid/media/AudioTrack;->audioParamCheck(IIIII)V
.line 317
move/from16 v0, p5
invoke-direct {p0, v0}, Landroid/media/AudioTrack;->audioBuffSizeCheck(I)V
.line 319
if-gez p7, :cond_1
.line 320
new-instance v1, Ljava/lang/IllegalArgumentException;
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "Invalid audio session ID: "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
move/from16 v0, p7
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v1
.line 323
:cond_1
const/4 v1, 0x1
new-array v9, v1, [I
.line 324
.local v9, session:[I
const/4 v1, 0x0
aput p7, v9, v1
.line 326
new-instance v2, Ljava/lang/ref/WeakReference;
invoke-direct {v2, p0}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
iget v3, p0, Landroid/media/AudioTrack;->mStreamType:I
iget v4, p0, Landroid/media/AudioTrack;->mSampleRate:I
iget v5, p0, Landroid/media/AudioTrack;->mChannels:I
iget v6, p0, Landroid/media/AudioTrack;->mAudioFormat:I
iget v7, p0, Landroid/media/AudioTrack;->mNativeBufferSizeInBytes:I
iget v8, p0, Landroid/media/AudioTrack;->mDataLoadMode:I
move-object v1, p0
invoke-direct/range {v1 .. v9}, Landroid/media/AudioTrack;->native_setup(Ljava/lang/Object;IIIIII[I)I
move-result v10
.line 329
.local v10, initResult:I
if-eqz v10, :cond_2
.line 330
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Error code "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, v10}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, " when initializing AudioTrack."
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v1}, Landroid/media/AudioTrack;->loge(Ljava/lang/String;)V
.line 341
:goto_0
return-void
.line 334
:cond_2
const/4 v1, 0x0
aget v1, v9, v1
iput v1, p0, Landroid/media/AudioTrack;->mSessionId:I
.line 336
iget v1, p0, Landroid/media/AudioTrack;->mDataLoadMode:I
if-nez v1, :cond_3
.line 337
const/4 v1, 0x2
iput v1, p0, Landroid/media/AudioTrack;->mState:I
goto :goto_0
.line 339
:cond_3
const/4 v1, 0x1
iput v1, p0, Landroid/media/AudioTrack;->mState:I
goto :goto_0
.end method
.method static synthetic access$000(Landroid/media/AudioTrack;)Landroid/os/Looper;
.locals 1
.parameter "x0"
.prologue
.line 62
iget-object v0, p0, Landroid/media/AudioTrack;->mInitializationLooper:Landroid/os/Looper;
return-object v0
.end method
.method static synthetic access$200(Landroid/media/AudioTrack;)Ljava/lang/Object;
.locals 1
.parameter "x0"
.prologue
.line 62
iget-object v0, p0, Landroid/media/AudioTrack;->mPositionListenerLock:Ljava/lang/Object;
return-object v0
.end method
.method static synthetic access$300(Landroid/media/AudioTrack;)Landroid/media/AudioTrack$OnPlaybackPositionUpdateListener;
.locals 1
.parameter "x0"
.prologue
.line 62
iget-object v0, p0, Landroid/media/AudioTrack;->mPositionListener:Landroid/media/AudioTrack$OnPlaybackPositionUpdateListener;
return-object v0
.end method
.method private audioBuffSizeCheck(I)V
.locals 5
.parameter "audioBufferSize"
.prologue
const/4 v2, 0x1
.line 482
iget v3, p0, Landroid/media/AudioTrack;->mChannelCount:I
iget v1, p0, Landroid/media/AudioTrack;->mAudioFormat:I
const/4 v4, 0x3
if-ne v1, v4, :cond_1
move v1, v2
:goto_0
mul-int v0, v3, v1
.line 484
.local v0, frameSizeInBytes:I
rem-int v1, p1, v0
if-nez v1, :cond_0
if-ge p1, v2, :cond_2
.line 485
:cond_0
new-instance v1, Ljava/lang/IllegalArgumentException;
const-string v2, "Invalid audio buffer size."
invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v1
.line 482
.end local v0 #frameSizeInBytes:I
:cond_1
const/4 v1, 0x2
goto :goto_0
.line 488
.restart local v0 #frameSizeInBytes:I
:cond_2
iput p1, p0, Landroid/media/AudioTrack;->mNativeBufferSizeInBytes:I
.line 489
return-void
.end method
.method private audioParamCheck(IIIII)V
.locals 5
.parameter "streamType"
.parameter "sampleRateInHz"
.parameter "channelConfig"
.parameter "audioFormat"
.parameter "mode"
.prologue
const/4 v4, 0x4
const/4 v3, 0x2
const/4 v2, 0x1
const/4 v1, 0x0
.line 367
if-eq p1, v4, :cond_0
const/4 v0, 0x3
if-eq p1, v0, :cond_0
if-eq p1, v3, :cond_0
if-eq p1, v2, :cond_0
if-eqz p1, :cond_0
const/4 v0, 0x5
if-eq p1, v0, :cond_0
const/4 v0, 0x6
if-eq p1, v0, :cond_0
const/16 v0, 0x8
if-eq p1, v0, :cond_0
.line 373
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Invalid stream type."
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.line 375
:cond_0
iput p1, p0, Landroid/media/AudioTrack;->mStreamType:I
.line 380
const/16 v0, 0xfa0
if-lt p2, v0, :cond_1
const v0, 0xbb80
if-le p2, v0, :cond_2
.line 381
:cond_1
new-instance v0, Ljava/lang/IllegalArgumentException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, "Hz is not a supported sample rate."
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.line 384
:cond_2
iput p2, p0, Landroid/media/AudioTrack;->mSampleRate:I
.line 389
iput p3, p0, Landroid/media/AudioTrack;->mChannelConfiguration:I
.line 391
sparse-switch p3, :sswitch_data_0
.line 404
invoke-static {p3}, Landroid/media/AudioTrack;->isMultichannelConfigSupported(I)Z
move-result v0
if-nez v0, :cond_3
.line 406
iput v1, p0, Landroid/media/AudioTrack;->mChannelCount:I
.line 407
iput v1, p0, Landroid/media/AudioTrack;->mChannels:I
.line 408
iput v1, p0, Landroid/media/AudioTrack;->mChannelConfiguration:I
.line 409
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Unsupported channel configuration."
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.line 395
:sswitch_0
iput v2, p0, Landroid/media/AudioTrack;->mChannelCount:I
.line 396
iput v4, p0, Landroid/media/AudioTrack;->mChannels:I
.line 418
:goto_0
packed-switch p4, :pswitch_data_0
.line 427
iput v1, p0, Landroid/media/AudioTrack;->mAudioFormat:I
.line 428
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Unsupported sample encoding. Should be ENCODING_PCM_8BIT or ENCODING_PCM_16BIT."
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.line 400
:sswitch_1
iput v3, p0, Landroid/media/AudioTrack;->mChannelCount:I
.line 401
const/16 v0, 0xc
iput v0, p0, Landroid/media/AudioTrack;->mChannels:I
goto :goto_0
.line 411
:cond_3
iput p3, p0, Landroid/media/AudioTrack;->mChannels:I
.line 412
invoke-static {p3}, Ljava/lang/Integer;->bitCount(I)I
move-result v0
iput v0, p0, Landroid/media/AudioTrack;->mChannelCount:I
goto :goto_0
.line 420
:pswitch_0
iput v3, p0, Landroid/media/AudioTrack;->mAudioFormat:I
.line 434
:goto_1
if-eq p5, v2, :cond_4
if-eqz p5, :cond_4
.line 435
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Invalid mode."
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.line 424
:pswitch_1
iput p4, p0, Landroid/media/AudioTrack;->mAudioFormat:I
goto :goto_1
.line 437
:cond_4
iput p5, p0, Landroid/media/AudioTrack;->mDataLoadMode:I
.line 439
return-void
.line 391
nop
:sswitch_data_0
.sparse-switch
0x1 -> :sswitch_0
0x2 -> :sswitch_0
0x3 -> :sswitch_1
0x4 -> :sswitch_0
0xc -> :sswitch_1
.end sparse-switch
.line 418
:pswitch_data_0
.packed-switch 0x1
:pswitch_0
:pswitch_1
:pswitch_1
.end packed-switch
.end method
.method public static getMaxVolume()F
.locals 1
.prologue
.line 530
const/high16 v0, 0x3f80
return v0
.end method
.method public static getMinBufferSize(III)I
.locals 4
.parameter "sampleRateInHz"
.parameter "channelConfig"
.parameter "audioFormat"
.prologue
const/4 v2, -0x1
const/4 v1, -0x2
.line 661
const/4 v0, 0x0
.line 662
.local v0, channelCount:I
sparse-switch p1, :sswitch_data_0
.line 672
and-int/lit16 v3, p1, 0x4fc
if-eq v3, p1, :cond_1
.line 674
const-string v2, "getMinBufferSize(): Invalid channel configuration."
invoke-static {v2}, Landroid/media/AudioTrack;->loge(Ljava/lang/String;)V
.line 699
:cond_0
:goto_0
return v1
.line 665
:sswitch_0
const/4 v0, 0x1
.line 681
:goto_1
const/4 v3, 0x2
if-eq p2, v3, :cond_2
const/4 v3, 0x3
if-eq p2, v3, :cond_2
.line 683
const-string v2, "getMinBufferSize(): Invalid audio format."
invoke-static {v2}, Landroid/media/AudioTrack;->loge(Ljava/lang/String;)V
goto :goto_0
.line 669
:sswitch_1
const/4 v0, 0x2
.line 670
goto :goto_1
.line 677
:cond_1
invoke-static {p1}, Ljava/lang/Integer;->bitCount(I)I
move-result v0
goto :goto_1
.line 688
:cond_2
const/16 v3, 0xfa0
if-lt p0, v3, :cond_3
const v3, 0xbb80
if-le p0, v3, :cond_4
.line 689
:cond_3
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "getMinBufferSize(): "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v2
const-string v3, "Hz is not a supported sample rate."
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-static {v2}, Landroid/media/AudioTrack;->loge(Ljava/lang/String;)V
goto :goto_0
.line 693
:cond_4
invoke-static {p0, v0, p2}, Landroid/media/AudioTrack;->native_get_min_buff_size(III)I
move-result v1
.line 694
.local v1, size:I
if-eq v1, v2, :cond_5
if-nez v1, :cond_0
.line 695
:cond_5
const-string v3, "getMinBufferSize(): error querying hardware"
invoke-static {v3}, Landroid/media/AudioTrack;->loge(Ljava/lang/String;)V
move v1, v2
.line 696
goto :goto_0
.line 662
nop
:sswitch_data_0
.sparse-switch
0x2 -> :sswitch_0
0x3 -> :sswitch_1
0x4 -> :sswitch_0
0xc -> :sswitch_1
.end sparse-switch
.end method
.method public static getMinVolume()F
.locals 1
.prologue
.line 521
const/4 v0, 0x0
return v0
.end method
.method public static getNativeOutputSampleRate(I)I
.locals 1
.parameter "streamType"
.prologue
.line 640
invoke-static {p0}, Landroid/media/AudioTrack;->native_get_output_sample_rate(I)I
move-result v0
return v0
.end method
.method private static isMultichannelConfigSupported(I)Z
.locals 5
.parameter "channelConfig"
.prologue
const/4 v2, 0x0
.line 448
and-int/lit16 v3, p0, 0x4fc
if-eq v3, p0, :cond_0
.line 449
const-string v3, "AudioTrack-Java"
const-string v4, "Channel configuration features unsupported channels"
invoke-static {v3, v4}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
.line 469
:goto_0
return v2
.line 455
:cond_0
const/16 v1, 0xc
.line 457
.local v1, frontPair:I
and-int/lit8 v3, p0, 0xc
const/16 v4, 0xc
if-eq v3, v4, :cond_1
.line 458
const-string v3, "AudioTrack-Java"
const-string v4, "Front channels must be present in multichannel configurations"
invoke-static {v3, v4}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_0
.line 461
:cond_1
const/16 v0, 0xc0
.line 463
.local v0, backPair:I
and-int/lit16 v3, p0, 0xc0
if-eqz v3, :cond_2
.line 464
and-int/lit16 v3, p0, 0xc0
const/16 v4, 0xc0
if-eq v3, v4, :cond_2
.line 465
const-string v3, "AudioTrack-Java"
const-string v4, "Rear channels can\'t be used independently"
invoke-static {v3, v4}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_0
.line 469
:cond_2
const/4 v2, 0x1
goto :goto_0
.end method
.method private static logd(Ljava/lang/String;)V
.locals 3
.parameter "msg"
.prologue
.line 1262
const-string v0, "AudioTrack-Java"
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "[ android.media.AudioTrack ] "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 1263
return-void
.end method
.method private static loge(Ljava/lang/String;)V
.locals 3
.parameter "msg"
.prologue
.line 1266
const-string v0, "AudioTrack-Java"
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "[ android.media.AudioTrack ] "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
.line 1267
return-void
.end method
.method private final native native_attachAuxEffect(I)I
.end method
.method private final native native_finalize()V
.end method
.method private final native native_flush()V
.end method
.method private final native native_get_marker_pos()I
.end method
.method private static final native native_get_min_buff_size(III)I
.end method
.method private final native native_get_native_frame_count()I
.end method
.method private static final native native_get_output_sample_rate(I)I
.end method
.method private final native native_get_playback_rate()I
.end method
.method private final native native_get_pos_update_period()I
.end method
.method private final native native_get_position()I
.end method
.method private final native native_get_session_id()I
.end method
.method private final native native_pause()V
.end method
.method private final native native_release()V
.end method
.method private final native native_reload_static()I
.end method
.method private final native native_setAuxEffectSendLevel(F)V
.end method
.method private final native native_setVolume(FF)V
.end method
.method private final native native_set_loop(III)I
.end method
.method private final native native_set_marker_pos(I)I
.end method
.method private final native native_set_playback_rate(I)I
.end method
.method private final native native_set_pos_update_period(I)I
.end method
.method private final native native_set_position(I)I
.end method
.method private final native native_setup(Ljava/lang/Object;IIIIII[I)I
.end method
.method private final native native_start()V
.end method
.method private final native native_stop()V
.end method
.method private final native native_write_byte([BIII)I
.end method
.method private final native native_write_short([SIII)I
.end method
.method private static postEventFromNative(Ljava/lang/Object;IIILjava/lang/Object;)V
.locals 3
.parameter "audiotrack_ref"
.parameter "what"
.parameter "arg1"
.parameter "arg2"
.parameter "obj"
.prologue
.line 1188
check-cast p0, Ljava/lang/ref/WeakReference;
.end local p0
invoke-virtual {p0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroid/media/AudioTrack;
.line 1189
.local v1, track:Landroid/media/AudioTrack;
if-nez v1, :cond_1
.line 1199
:cond_0
:goto_0
return-void
.line 1193
:cond_1
iget-object v2, v1, Landroid/media/AudioTrack;->mEventHandlerDelegate:Landroid/media/AudioTrack$NativeEventHandlerDelegate;
if-eqz v2, :cond_0
.line 1194
iget-object v2, v1, Landroid/media/AudioTrack;->mEventHandlerDelegate:Landroid/media/AudioTrack$NativeEventHandlerDelegate;
invoke-virtual {v2}, Landroid/media/AudioTrack$NativeEventHandlerDelegate;->getHandler()Landroid/os/Handler;
move-result-object v2
invoke-virtual {v2, p1, p2, p3, p4}, Landroid/os/Handler;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;
move-result-object v0
.line 1196
.local v0, m:Landroid/os/Message;
iget-object v2, v1, Landroid/media/AudioTrack;->mEventHandlerDelegate:Landroid/media/AudioTrack$NativeEventHandlerDelegate;
invoke-virtual {v2}, Landroid/media/AudioTrack$NativeEventHandlerDelegate;->getHandler()Landroid/os/Handler;
move-result-object v2
invoke-virtual {v2, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
goto :goto_0
.end method
# virtual methods
.method public attachAuxEffect(I)I
.locals 2
.parameter "effectId"
.prologue
.line 1059
iget v0, p0, Landroid/media/AudioTrack;->mState:I
const/4 v1, 0x1
if-eq v0, v1, :cond_0
.line 1060
const/4 v0, -0x3
.line 1062
:goto_0
return v0
:cond_0
invoke-direct {p0, p1}, Landroid/media/AudioTrack;->native_attachAuxEffect(I)I
move-result v0
goto :goto_0
.end method
.method protected finalize()V
.locals 0
.prologue
.line 509
invoke-direct {p0}, Landroid/media/AudioTrack;->native_finalize()V
.line 510
return-void
.end method
.method public flush()V
.locals 2
.prologue
.line 944
iget v0, p0, Landroid/media/AudioTrack;->mState:I
const/4 v1, 0x1
if-ne v0, v1, :cond_0
.line 946
invoke-direct {p0}, Landroid/media/AudioTrack;->native_flush()V
.line 949
:cond_0
return-void
.end method
.method public getAudioFormat()I
.locals 1
.prologue
.line 552
iget v0, p0, Landroid/media/AudioTrack;->mAudioFormat:I
return v0
.end method
.method public getAudioSessionId()I
.locals 1
.prologue
.line 709
iget v0, p0, Landroid/media/AudioTrack;->mSessionId:I
return v0
.end method
.method public getChannelConfiguration()I
.locals 1
.prologue
.line 573
iget v0, p0, Landroid/media/AudioTrack;->mChannelConfiguration:I
return v0
.end method
.method public getChannelCount()I
.locals 1
.prologue
.line 580
iget v0, p0, Landroid/media/AudioTrack;->mChannelCount:I
return v0
.end method
.method protected getNativeFrameCount()I
.locals 1
.prologue
.line 612
invoke-direct {p0}, Landroid/media/AudioTrack;->native_get_native_frame_count()I
move-result v0
return v0
.end method
.method public getNotificationMarkerPosition()I
.locals 1
.prologue
.line 619
invoke-direct {p0}, Landroid/media/AudioTrack;->native_get_marker_pos()I
move-result v0
return v0
.end method
.method public getPlayState()I
.locals 2
.prologue
.line 603
iget-object v1, p0, Landroid/media/AudioTrack;->mPlayStateLock:Ljava/lang/Object;
monitor-enter v1
.line 604
:try_start_0
iget v0, p0, Landroid/media/AudioTrack;->mPlayState:I
monitor-exit v1
return v0
.line 605
:catchall_0
move-exception v0
monitor-exit v1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v0
.end method
.method public getPlaybackHeadPosition()I
.locals 1
.prologue
.line 633
invoke-direct {p0}, Landroid/media/AudioTrack;->native_get_position()I
move-result v0
return v0
.end method
.method public getPlaybackRate()I
.locals 1
.prologue
.line 544
invoke-direct {p0}, Landroid/media/AudioTrack;->native_get_playback_rate()I
move-result v0
return v0
.end method
.method public getPositionNotificationPeriod()I
.locals 1
.prologue
.line 626
invoke-direct {p0}, Landroid/media/AudioTrack;->native_get_pos_update_period()I
move-result v0
return v0
.end method
.method public getSampleRate()I
.locals 1
.prologue
.line 537
iget v0, p0, Landroid/media/AudioTrack;->mSampleRate:I
return v0
.end method
.method public getState()I
.locals 1
.prologue
.line 593
iget v0, p0, Landroid/media/AudioTrack;->mState:I
return v0
.end method
.method public getStreamType()I
.locals 1
.prologue
.line 563
iget v0, p0, Landroid/media/AudioTrack;->mStreamType:I
return v0
.end method
.method public pause()V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/IllegalStateException;
}
.end annotation
.prologue
.line 922
iget v0, p0, Landroid/media/AudioTrack;->mState:I
const/4 v1, 0x1
if-eq v0, v1, :cond_0
.line 923
new-instance v0, Ljava/lang/IllegalStateException;
const-string/jumbo v1, "pause() called on uninitialized AudioTrack."
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 928
:cond_0
iget-object v1, p0, Landroid/media/AudioTrack;->mPlayStateLock:Ljava/lang/Object;
monitor-enter v1
.line 929
:try_start_0
invoke-direct {p0}, Landroid/media/AudioTrack;->native_pause()V
.line 930
const/4 v0, 0x2
iput v0, p0, Landroid/media/AudioTrack;->mPlayState:I
.line 931
monitor-exit v1
.line 932
return-void
.line 931
:catchall_0
move-exception v0
monitor-exit v1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v0
.end method
.method public play()V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/IllegalStateException;
}
.end annotation
.prologue
.line 882
iget v0, p0, Landroid/media/AudioTrack;->mState:I
const/4 v1, 0x1
if-eq v0, v1, :cond_0
.line 883
new-instance v0, Ljava/lang/IllegalStateException;
const-string/jumbo v1, "play() called on uninitialized AudioTrack."
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 886
:cond_0
iget-object v1, p0, Landroid/media/AudioTrack;->mPlayStateLock:Ljava/lang/Object;
monitor-enter v1
.line 887
:try_start_0
invoke-direct {p0}, Landroid/media/AudioTrack;->native_start()V
.line 888
const/4 v0, 0x3
iput v0, p0, Landroid/media/AudioTrack;->mPlayState:I
.line 889
monitor-exit v1
.line 890
return-void
.line 889
:catchall_0
move-exception v0
monitor-exit v1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v0
.end method
.method public release()V
.locals 1
.prologue
.line 499
:try_start_0
invoke-virtual {p0}, Landroid/media/AudioTrack;->stop()V
:try_end_0
.catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0
.line 503
:goto_0
invoke-direct {p0}, Landroid/media/AudioTrack;->native_release()V
.line 504
const/4 v0, 0x0
iput v0, p0, Landroid/media/AudioTrack;->mState:I
.line 505
return-void
.line 500
:catch_0
move-exception v0
goto :goto_0
.end method
.method public reloadStaticData()I
.locals 2
.prologue
.line 1031
iget v0, p0, Landroid/media/AudioTrack;->mDataLoadMode:I
const/4 v1, 0x1
if-ne v0, v1, :cond_0
.line 1032
const/4 v0, -0x3
.line 1034
:goto_0
return v0
:cond_0
invoke-direct {p0}, Landroid/media/AudioTrack;->native_reload_static()I
move-result v0
goto :goto_0
.end method
.method public setAuxEffectSendLevel(F)I
.locals 2
.parameter "level"
.prologue
.line 1081
iget v0, p0, Landroid/media/AudioTrack;->mState:I
const/4 v1, 0x1
if-eq v0, v1, :cond_0
.line 1082
const/4 v0, -0x3
.line 1092
:goto_0
return v0
.line 1085
:cond_0
invoke-static {}, Landroid/media/AudioTrack;->getMinVolume()F
move-result v0
cmpg-float v0, p1, v0
if-gez v0, :cond_1
.line 1086
invoke-static {}, Landroid/media/AudioTrack;->getMinVolume()F
move-result p1
.line 1088
:cond_1
invoke-static {}, Landroid/media/AudioTrack;->getMaxVolume()F
move-result v0
cmpl-float v0, p1, v0
if-lez v0, :cond_2
.line 1089
invoke-static {}, Landroid/media/AudioTrack;->getMaxVolume()F
move-result p1
.line 1091
:cond_2
invoke-direct {p0, p1}, Landroid/media/AudioTrack;->native_setAuxEffectSendLevel(F)V
.line 1092
const/4 v0, 0x0
goto :goto_0
.end method
.method public setLoopPoints(III)I
.locals 2
.parameter "startInFrames"
.parameter "endInFrames"
.parameter "loopCount"
.prologue
.line 856
iget v0, p0, Landroid/media/AudioTrack;->mDataLoadMode:I
const/4 v1, 0x1
if-ne v0, v1, :cond_0
.line 857
const/4 v0, -0x3
.line 859
:goto_0
return v0
:cond_0
invoke-direct {p0, p1, p2, p3}, Landroid/media/AudioTrack;->native_set_loop(III)I
move-result v0
goto :goto_0
.end method
.method public setNotificationMarkerPosition(I)I
.locals 2
.parameter "markerInFrames"
.prologue
.line 810
iget v0, p0, Landroid/media/AudioTrack;->mState:I
const/4 v1, 0x1
if-eq v0, v1, :cond_0
.line 811
const/4 v0, -0x3
.line 813
:goto_0
return v0
:cond_0
invoke-direct {p0, p1}, Landroid/media/AudioTrack;->native_set_marker_pos(I)I
move-result v0
goto :goto_0
.end method
.method public setPlaybackHeadPosition(I)I
.locals 3
.parameter "positionInFrames"
.prologue
.line 837
iget-object v1, p0, Landroid/media/AudioTrack;->mPlayStateLock:Ljava/lang/Object;
monitor-enter v1
.line 838
:try_start_0
iget v0, p0, Landroid/media/AudioTrack;->mPlayState:I
const/4 v2, 0x1
if-eq v0, v2, :cond_0
iget v0, p0, Landroid/media/AudioTrack;->mPlayState:I
const/4 v2, 0x2
if-ne v0, v2, :cond_1
.line 839
:cond_0
invoke-direct {p0, p1}, Landroid/media/AudioTrack;->native_set_position(I)I
move-result v0
monitor-exit v1
.line 841
:goto_0
return v0
:cond_1
const/4 v0, -0x3
monitor-exit v1
goto :goto_0
.line 843
:catchall_0
move-exception v0
monitor-exit v1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v0
.end method
.method public setPlaybackPositionUpdateListener(Landroid/media/AudioTrack$OnPlaybackPositionUpdateListener;)V
.locals 1
.parameter "listener"
.prologue
.line 723
const/4 v0, 0x0
invoke-virtual {p0, p1, v0}, Landroid/media/AudioTrack;->setPlaybackPositionUpdateListener(Landroid/media/AudioTrack$OnPlaybackPositionUpdateListener;Landroid/os/Handler;)V
.line 724
return-void
.end method
.method public setPlaybackPositionUpdateListener(Landroid/media/AudioTrack$OnPlaybackPositionUpdateListener;Landroid/os/Handler;)V
.locals 2
.parameter "listener"
.parameter "handler"
.prologue
.line 736
iget-object v1, p0, Landroid/media/AudioTrack;->mPositionListenerLock:Ljava/lang/Object;
monitor-enter v1
.line 737
:try_start_0
iput-object p1, p0, Landroid/media/AudioTrack;->mPositionListener:Landroid/media/AudioTrack$OnPlaybackPositionUpdateListener;
.line 738
monitor-exit v1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 739
if-eqz p1, :cond_0
.line 740
new-instance v0, Landroid/media/AudioTrack$NativeEventHandlerDelegate;
invoke-direct {v0, p0, p0, p2}, Landroid/media/AudioTrack$NativeEventHandlerDelegate;-><init>(Landroid/media/AudioTrack;Landroid/media/AudioTrack;Landroid/os/Handler;)V
iput-object v0, p0, Landroid/media/AudioTrack;->mEventHandlerDelegate:Landroid/media/AudioTrack$NativeEventHandlerDelegate;
.line 743
:cond_0
return-void
.line 738
:catchall_0
move-exception v0
:try_start_1
monitor-exit v1
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v0
.end method
.method public setPlaybackRate(I)I
.locals 2
.parameter "sampleRateInHz"
.prologue
.line 793
iget v0, p0, Landroid/media/AudioTrack;->mState:I
const/4 v1, 0x1
if-eq v0, v1, :cond_0
.line 794
const/4 v0, -0x3
.line 799
:goto_0
return v0
.line 796
:cond_0
if-gtz p1, :cond_1
.line 797
const/4 v0, -0x2
goto :goto_0
.line 799
:cond_1
invoke-direct {p0, p1}, Landroid/media/AudioTrack;->native_set_playback_rate(I)I
move-result v0
goto :goto_0
.end method
.method public setPositionNotificationPeriod(I)I
.locals 2
.parameter "periodInFrames"
.prologue
.line 823
iget v0, p0, Landroid/media/AudioTrack;->mState:I
const/4 v1, 0x1
if-eq v0, v1, :cond_0
.line 824
const/4 v0, -0x3
.line 826
:goto_0
return v0
:cond_0
invoke-direct {p0, p1}, Landroid/media/AudioTrack;->native_set_pos_update_period(I)I
move-result v0
goto :goto_0
.end method
.method protected setState(I)V
.locals 0
.parameter "state"
.prologue
.line 868
iput p1, p0, Landroid/media/AudioTrack;->mState:I
.line 869
return-void
.end method
.method public setStereoVolume(FF)I
.locals 2
.parameter "leftVolume"
.parameter "rightVolume"
.prologue
.line 757
iget v0, p0, Landroid/media/AudioTrack;->mState:I
const/4 v1, 0x1
if-eq v0, v1, :cond_0
.line 758
const/4 v0, -0x3
.line 777
:goto_0
return v0
.line 762
:cond_0
invoke-static {}, Landroid/media/AudioTrack;->getMinVolume()F
move-result v0
cmpg-float v0, p1, v0
if-gez v0, :cond_1
.line 763
invoke-static {}, Landroid/media/AudioTrack;->getMinVolume()F
move-result p1
.line 765
:cond_1
invoke-static {}, Landroid/media/AudioTrack;->getMaxVolume()F
move-result v0
cmpl-float v0, p1, v0
if-lez v0, :cond_2
.line 766
invoke-static {}, Landroid/media/AudioTrack;->getMaxVolume()F
move-result p1
.line 768
:cond_2
invoke-static {}, Landroid/media/AudioTrack;->getMinVolume()F
move-result v0
cmpg-float v0, p2, v0
if-gez v0, :cond_3
.line 769
invoke-static {}, Landroid/media/AudioTrack;->getMinVolume()F
move-result p2
.line 771
:cond_3
invoke-static {}, Landroid/media/AudioTrack;->getMaxVolume()F
move-result v0
cmpl-float v0, p2, v0
if-lez v0, :cond_4
.line 772
invoke-static {}, Landroid/media/AudioTrack;->getMaxVolume()F
move-result p2
.line 775
:cond_4
invoke-direct {p0, p1, p2}, Landroid/media/AudioTrack;->native_setVolume(FF)V
.line 777
const/4 v0, 0x0
goto :goto_0
.end method
.method public stop()V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/IllegalStateException;
}
.end annotation
.prologue
const/4 v1, 0x1
.line 902
iget v0, p0, Landroid/media/AudioTrack;->mState:I
if-eq v0, v1, :cond_0
.line 903
new-instance v0, Ljava/lang/IllegalStateException;
const-string/jumbo v1, "stop() called on uninitialized AudioTrack."
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.line 907
:cond_0
iget-object v1, p0, Landroid/media/AudioTrack;->mPlayStateLock:Ljava/lang/Object;
monitor-enter v1
.line 908
:try_start_0
invoke-direct {p0}, Landroid/media/AudioTrack;->native_stop()V
.line 909
const/4 v0, 0x1
iput v0, p0, Landroid/media/AudioTrack;->mPlayState:I
.line 910
monitor-exit v1
.line 911
return-void
.line 910
:catchall_0
move-exception v0
monitor-exit v1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw v0
.end method
.method public write([BII)I
.locals 3
.parameter "audioData"
.parameter "offsetInBytes"
.parameter "sizeInBytes"
.prologue
const/4 v2, 0x1
.line 968
iget v0, p0, Landroid/media/AudioTrack;->mDataLoadMode:I
if-nez v0, :cond_0
iget v0, p0, Landroid/media/AudioTrack;->mState:I
const/4 v1, 0x2
if-ne v0, v1, :cond_0
if-lez p3, :cond_0
.line 971
iput v2, p0, Landroid/media/AudioTrack;->mState:I
.line 974
:cond_0
iget v0, p0, Landroid/media/AudioTrack;->mState:I
if-eq v0, v2, :cond_1
.line 975
const/4 v0, -0x3
.line 983
:goto_0
return v0
.line 978
:cond_1
if-eqz p1, :cond_2
if-ltz p2, :cond_2
if-ltz p3, :cond_2
add-int v0, p2, p3
array-length v1, p1
if-le v0, v1, :cond_3
.line 980
:cond_2
const/4 v0, -0x2
goto :goto_0
.line 983
:cond_3
iget v0, p0, Landroid/media/AudioTrack;->mAudioFormat:I
invoke-direct {p0, p1, p2, p3, v0}, Landroid/media/AudioTrack;->native_write_byte([BIII)I
move-result v0
goto :goto_0
.end method
.method public write([SII)I
.locals 3
.parameter "audioData"
.parameter "offsetInShorts"
.parameter "sizeInShorts"
.prologue
const/4 v2, 0x1
.line 1004
iget v0, p0, Landroid/media/AudioTrack;->mDataLoadMode:I
if-nez v0, :cond_0
iget v0, p0, Landroid/media/AudioTrack;->mState:I
const/4 v1, 0x2
if-ne v0, v1, :cond_0
if-lez p3, :cond_0
.line 1007
iput v2, p0, Landroid/media/AudioTrack;->mState:I
.line 1010
:cond_0
iget v0, p0, Landroid/media/AudioTrack;->mState:I
if-eq v0, v2, :cond_1
.line 1011
const/4 v0, -0x3
.line 1019
:goto_0
return v0
.line 1014
:cond_1
if-eqz p1, :cond_2
if-ltz p2, :cond_2
if-ltz p3, :cond_2
add-int v0, p2, p3
array-length v1, p1
if-le v0, v1, :cond_3
.line 1016
:cond_2
const/4 v0, -0x2
goto :goto_0
.line 1019
:cond_3
iget v0, p0, Landroid/media/AudioTrack;->mAudioFormat:I
invoke-direct {p0, p1, p2, p3, v0}, Landroid/media/AudioTrack;->native_write_short([SIII)I
move-result v0
goto :goto_0
.end method
| {
"content_hash": "5aa7beee04027b4a5fa9aa92273b6aae",
"timestamp": "",
"source": "github",
"line_count": 2150,
"max_line_length": 176,
"avg_line_length": 20.162790697674417,
"alnum_prop": 0.6659515570934256,
"repo_name": "baidurom/reference",
"id": "9013634ea3a0bd8799fbb59f9178ef77c3bb4da5",
"size": "43350",
"binary": false,
"copies": "4",
"ref": "refs/heads/coron-4.2",
"path": "aosp/framework.jar.out/smali/android/media/AudioTrack.smali",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
The first release!!!
| {
"content_hash": "23da1fa31940180652efdcceb98393f3",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 20,
"avg_line_length": 21,
"alnum_prop": 0.7142857142857143,
"repo_name": "kou/mruby-slop",
"id": "4727ed8fd1380f044c044ea9a030d52162fe8fdf",
"size": "51",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "doc/text/news.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ruby",
"bytes": "22784"
}
],
"symlink_target": ""
} |
<?php
namespace Gems\Task\Tracker\Import;
use Gems\Tracker\Engine\FieldsDefinition;
/**
*
*
* @package Gems
* @subpackage Task\Tracker
* @copyright Copyright (c) 2018 Erasmus MC
* @license New BSD License
* @since Class available since version 1.8.4
*/
class CreateTrackRoundConditionImportTask extends \MUtil_Task_TaskAbstract
{
/**
*
* @var \Gems_Loader
*/
protected $loader;
/**
* Should handle execution of the task, taking as much (optional) parameters as needed
*
* The parameters should be optional and failing to provide them should be handled by
* the task
*/
public function execute($lineNr = null, $conditionData = null)
{
$batch = $this->getBatch();
$import = $batch->getVariable('import');
$conditionId = $conditionData['gcon_id'];
if (! (isset($import['trackId']) && $import['trackId'])) {
// Do nothing
return;
}
$conditions = $this->loader->getConditions();
$model = $this->loader->getModels()->getConditionModel()->applyEditSettings(true);
if (preg_match('/.*(AndCondition|OrCondition)$/', $conditionData['gcon_class']) == 1) {
// We have a nested condition
$this->resolveCondition($conditionData);
}
// Try to find by classname and options
$filter = [
'gcon_class' => $conditionData['gcon_class'],
'gcon_condition_text1' => $conditionData['gcon_condition_text1'] == '' ? null : $conditionData['gcon_condition_text1'],
'gcon_condition_text2' => $conditionData['gcon_condition_text2'] == '' ? null : $conditionData['gcon_condition_text2'],
'gcon_condition_text3' => $conditionData['gcon_condition_text3'] == '' ? null : $conditionData['gcon_condition_text3'],
'gcon_condition_text4' => $conditionData['gcon_condition_text4'] == '' ? null : $conditionData['gcon_condition_text4'],
];
$found = $model->loadFirst($filter);
if (!$found) {
// Insert
$conditionData['gcon_id'] = null;
} else {
$conditionData['gcon_id'] = $found['gcon_id'];
}
$conditionSaved = $model->save($conditionData);
$import['importConditions'][$conditionId] = $conditionSaved['gcon_id'];
$batch->setVariable('import', $import);
}
public function resolveCondition(&$conditionData)
{
$batch = $this->getBatch();
$import = $batch->getVariable('import');
for ($index = 1; $index < 5; $index++) {
$originalId = $conditionData['gcon_condition_text' . $index];
if ($originalId) {
$newId = $import['importConditions'][$originalId];
$conditionData['gcon_condition_text' . $index] = $newId;
}
}
}
}
| {
"content_hash": "334fce94970aae606fe6af750c87695a",
"timestamp": "",
"source": "github",
"line_count": 89,
"max_line_length": 131,
"avg_line_length": 33.69662921348315,
"alnum_prop": 0.5541847282427476,
"repo_name": "GemsTracker/gemstracker-library",
"id": "d1b0fb2ac95ee0fe8597648564560eea4d20ef72",
"size": "3189",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "classes/Gems/Task/Tracker/Import/CreateTrackRoundConditionImportTask.php",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Batchfile",
"bytes": "865"
},
{
"name": "HTML",
"bytes": "20681"
},
{
"name": "JavaScript",
"bytes": "2008"
},
{
"name": "Less",
"bytes": "196"
},
{
"name": "PHP",
"bytes": "5500664"
},
{
"name": "R",
"bytes": "540"
},
{
"name": "Scheme",
"bytes": "528"
},
{
"name": "XSLT",
"bytes": "520"
}
],
"symlink_target": ""
} |
/**
*/
package io.yaktor.conversation;
import io.yaktor.types.ProjectionField;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Transition</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link io.yaktor.conversation.Transition#getToState <em>To State</em>}</li>
* <li>{@link io.yaktor.conversation.Transition#isRequiresExecution <em>Requires Execution</em>}</li>
* <li>{@link io.yaktor.conversation.Transition#getExCausedBy <em>Ex Caused By</em>}</li>
* <li>{@link io.yaktor.conversation.Transition#getCausedBy <em>Caused By</em>}</li>
* <li>{@link io.yaktor.conversation.Transition#getExTriggers <em>Ex Triggers</em>}</li>
* <li>{@link io.yaktor.conversation.Transition#getTriggers <em>Triggers</em>}</li>
* <li>{@link io.yaktor.conversation.Transition#getFieldMapping <em>Field Mapping</em>}</li>
* </ul>
* </p>
*
* @see io.yaktor.conversation.ConversationPackage#getTransition()
* @model
* @generated
*/
public interface Transition extends EObject {
/**
* Returns the value of the '<em><b>To State</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>To State</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>To State</em>' reference.
* @see #setToState(State)
* @see io.yaktor.conversation.ConversationPackage#getTransition_ToState()
* @model required="true"
* @generated
*/
State getToState();
/**
* Sets the value of the '{@link io.yaktor.conversation.Transition#getToState <em>To State</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>To State</em>' reference.
* @see #getToState()
* @generated
*/
void setToState(State value);
/**
* Returns the value of the '<em><b>Requires Execution</b></em>' attribute.
* The default value is <code>"false"</code>.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Requires Execution</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Requires Execution</em>' attribute.
* @see #setRequiresExecution(boolean)
* @see io.yaktor.conversation.ConversationPackage#getTransition_RequiresExecution()
* @model default="false"
* @generated
*/
boolean isRequiresExecution();
/**
* Sets the value of the '{@link io.yaktor.conversation.Transition#isRequiresExecution <em>Requires Execution</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Requires Execution</em>' attribute.
* @see #isRequiresExecution()
* @generated
*/
void setRequiresExecution(boolean value);
/**
* Returns the value of the '<em><b>Ex Caused By</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Ex Caused By</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Ex Caused By</em>' reference.
* @see #setExCausedBy(SubscribableByOthers)
* @see io.yaktor.conversation.ConversationPackage#getTransition_ExCausedBy()
* @model
* @generated
*/
SubscribableByOthers getExCausedBy();
/**
* Sets the value of the '{@link io.yaktor.conversation.Transition#getExCausedBy <em>Ex Caused By</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Ex Caused By</em>' reference.
* @see #getExCausedBy()
* @generated
*/
void setExCausedBy(SubscribableByOthers value);
/**
* Returns the value of the '<em><b>Caused By</b></em>' containment reference.
* It is bidirectional and its opposite is '{@link io.yaktor.conversation.PrivatePubSub#getTransition <em>Transition</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Caused By</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Caused By</em>' containment reference.
* @see #setCausedBy(PrivatePubSub)
* @see io.yaktor.conversation.ConversationPackage#getTransition_CausedBy()
* @see io.yaktor.conversation.PrivatePubSub#getTransition
* @model opposite="transition" containment="true"
* @generated
*/
PrivatePubSub getCausedBy();
/**
* Sets the value of the '{@link io.yaktor.conversation.Transition#getCausedBy <em>Caused By</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Caused By</em>' containment reference.
* @see #getCausedBy()
* @generated
*/
void setCausedBy(PrivatePubSub value);
/**
* Returns the value of the '<em><b>Ex Triggers</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Ex Triggers</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Ex Triggers</em>' reference.
* @see #setExTriggers(PublishableByOthers)
* @see io.yaktor.conversation.ConversationPackage#getTransition_ExTriggers()
* @model
* @generated
*/
PublishableByOthers getExTriggers();
/**
* Sets the value of the '{@link io.yaktor.conversation.Transition#getExTriggers <em>Ex Triggers</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Ex Triggers</em>' reference.
* @see #getExTriggers()
* @generated
*/
void setExTriggers(PublishableByOthers value);
/**
* Returns the value of the '<em><b>Triggers</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Triggers</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Triggers</em>' reference.
* @see #setTriggers(PublishableByMe)
* @see io.yaktor.conversation.ConversationPackage#getTransition_Triggers()
* @model
* @generated
*/
PublishableByMe getTriggers();
/**
* Sets the value of the '{@link io.yaktor.conversation.Transition#getTriggers <em>Triggers</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Triggers</em>' reference.
* @see #getTriggers()
* @generated
*/
void setTriggers(PublishableByMe value);
/**
* Returns the value of the '<em><b>Field Mapping</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Field Mapping</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Field Mapping</em>' reference.
* @see #setFieldMapping(ProjectionField)
* @see io.yaktor.conversation.ConversationPackage#getTransition_FieldMapping()
* @model
* @generated
*/
ProjectionField getFieldMapping();
/**
* Sets the value of the '{@link io.yaktor.conversation.Transition#getFieldMapping <em>Field Mapping</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Field Mapping</em>' reference.
* @see #getFieldMapping()
* @generated
*/
void setFieldMapping(ProjectionField value);
} // Transition
| {
"content_hash": "9cb4d2ad2832112ba3db5cc805a810a8",
"timestamp": "",
"source": "github",
"line_count": 216,
"max_line_length": 128,
"avg_line_length": 34.7037037037037,
"alnum_prop": 0.6604855923159018,
"repo_name": "SciSpike/yaktor-dsl-xtext",
"id": "859dfa1048783c117a9897a799852e34a7b8096f",
"size": "7496",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "conversation/io.yaktor.conversation.as/src/io/yaktor/conversation/Transition.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "1379581"
},
{
"name": "JavaScript",
"bytes": "39007"
},
{
"name": "Logos",
"bytes": "11010"
},
{
"name": "Shell",
"bytes": "11591"
},
{
"name": "Xtend",
"bytes": "589769"
}
],
"symlink_target": ""
} |
import { MongoClient, MongoClientOptions, Db, Collection } from "mongodb";
import { Bucket } from "./Bucket";
import {
AutoIncrementStrategy,
IncrementCountersStrategy,
} from "./autoIncrementStrategies";
export interface EventStoreOptions {
url: string;
connectOptions?: MongoClientOptions;
}
export class EventStore {
private client: MongoClient;
db: Db | undefined;
autoIncrementStrategy: AutoIncrementStrategy;
constructor(options: EventStoreOptions) {
this.client = new MongoClient(options.url, {
...options.connectOptions,
useUnifiedTopology: true,
});
this.autoIncrementStrategy = new IncrementCountersStrategy(this);
}
async connect(): Promise<EventStore> {
if (!this.client.isConnected()) {
await this.client.connect();
if (!this.db) {
this.db = this.client.db();
}
}
return this;
}
async close(): Promise<void> {
if (this.client.isConnected()) {
await this.client.close();
this.db = undefined;
}
}
bucket(bucketName: string) {
if (!this.client.isConnected() || !this.db) {
throw new Error("Event store not connected");
}
return new Bucket(this, bucketName);
}
mongoCollection(bucketName: string): Collection {
if (!this.client.isConnected() || !this.db) {
throw new Error("Event store not connected");
}
const collectionName = `${bucketName}.commits`;
return this.db.collection(collectionName);
}
}
| {
"content_hash": "81c4e982aeaddd00c5ebc2a8f136fb32",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 74,
"avg_line_length": 23.822580645161292,
"alnum_prop": 0.6648612051455653,
"repo_name": "deltatre-webplu/nestore-js-mongodb",
"id": "4bc04e2ce6e855e1c77ae86f51a048039c387262",
"size": "1477",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/EventStore.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "1272"
},
{
"name": "TypeScript",
"bytes": "44579"
}
],
"symlink_target": ""
} |
import pytest
from astropy.tests.helper import assert_quantity_allclose
from astropy.units import allclose as quantity_allclose
from astropy import units as u
from astropy.coordinates import Longitude, Latitude, EarthLocation
from astropy.coordinates.sites import get_builtin_sites, get_downloaded_sites, SiteRegistry
def test_builtin_sites():
reg = get_builtin_sites()
greenwich = reg['greenwich']
lon, lat, el = greenwich.to_geodetic()
assert_quantity_allclose(lon, Longitude('0:0:0', unit=u.deg),
atol=10*u.arcsec)
assert_quantity_allclose(lat, Latitude('51:28:40', unit=u.deg),
atol=1*u.arcsec)
assert_quantity_allclose(el, 46*u.m, atol=1*u.m)
names = reg.names
assert 'greenwich' in names
assert 'example_site' in names
with pytest.raises(KeyError) as exc:
reg['nonexistent site']
assert exc.value.args[0] == "Site 'nonexistent site' not in database. Use the 'names' attribute to see available sites."
@pytest.mark.remote_data(source='astropy')
def test_online_sites():
reg = get_downloaded_sites()
keck = reg['keck']
lon, lat, el = keck.to_geodetic()
assert_quantity_allclose(lon, -Longitude('155:28.7', unit=u.deg),
atol=0.001*u.deg)
assert_quantity_allclose(lat, Latitude('19:49.7', unit=u.deg),
atol=0.001*u.deg)
assert_quantity_allclose(el, 4160*u.m, atol=1*u.m)
names = reg.names
assert 'keck' in names
assert 'ctio' in names
# The JSON file contains `name` and `aliases` for each site, and astropy
# should use names from both, but not empty strings [#12721].
assert '' not in names
assert 'Royal Observatory Greenwich' in names
with pytest.raises(KeyError) as exc:
reg['nonexistent site']
assert exc.value.args[0] == "Site 'nonexistent site' not in database. Use the 'names' attribute to see available sites."
with pytest.raises(KeyError) as exc:
reg['kec']
assert exc.value.args[0] == "Site 'kec' not in database. Use the 'names' attribute to see available sites. Did you mean one of: 'keck'?'"
@pytest.mark.remote_data(source='astropy')
# this will *try* the online so we have to make it remote_data, even though it
# could fall back on the non-remote version
def test_EarthLocation_basic():
greenwichel = EarthLocation.of_site('greenwich')
lon, lat, el = greenwichel.to_geodetic()
assert_quantity_allclose(lon, Longitude('0:0:0', unit=u.deg),
atol=10*u.arcsec)
assert_quantity_allclose(lat, Latitude('51:28:40', unit=u.deg),
atol=1*u.arcsec)
assert_quantity_allclose(el, 46*u.m, atol=1*u.m)
names = EarthLocation.get_site_names()
assert 'greenwich' in names
assert 'example_site' in names
with pytest.raises(KeyError) as exc:
EarthLocation.of_site('nonexistent site')
assert exc.value.args[0] == "Site 'nonexistent site' not in database. Use EarthLocation.get_site_names to see available sites."
def test_EarthLocation_state_offline():
EarthLocation._site_registry = None
EarthLocation._get_site_registry(force_builtin=True)
assert EarthLocation._site_registry is not None
oldreg = EarthLocation._site_registry
newreg = EarthLocation._get_site_registry()
assert oldreg is newreg
newreg = EarthLocation._get_site_registry(force_builtin=True)
assert oldreg is not newreg
@pytest.mark.remote_data(source='astropy')
def test_EarthLocation_state_online():
EarthLocation._site_registry = None
EarthLocation._get_site_registry(force_download=True)
assert EarthLocation._site_registry is not None
oldreg = EarthLocation._site_registry
newreg = EarthLocation._get_site_registry()
assert oldreg is newreg
newreg = EarthLocation._get_site_registry(force_download=True)
assert oldreg is not newreg
def test_registry():
reg = SiteRegistry()
assert len(reg.names) == 0
names = ['sitea', 'site A']
loc = EarthLocation.from_geodetic(lat=1*u.deg, lon=2*u.deg, height=3*u.km)
reg.add_site(names, loc)
assert len(reg.names) == 2
loc1 = reg['SIteA']
assert loc1 is loc
loc2 = reg['sIte a']
assert loc2 is loc
def test_non_EarthLocation():
"""
A regression test for a typo bug pointed out at the bottom of
https://github.com/astropy/astropy/pull/4042
"""
class EarthLocation2(EarthLocation):
pass
# This lets keeps us from needing to do remote_data
# note that this does *not* mess up the registry for EarthLocation because
# registry is cached on a per-class basis
EarthLocation2._get_site_registry(force_builtin=True)
el2 = EarthLocation2.of_site('greenwich')
assert type(el2) is EarthLocation2
assert el2.info.name == 'Royal Observatory Greenwich'
def check_builtin_matches_remote(download_url=True):
"""
This function checks that the builtin sites registry is consistent with the
remote registry (or a registry at some other location).
Note that current this is *not* run by the testing suite (because it
doesn't start with "test", and is instead meant to be used as a check
before merging changes in astropy-data)
"""
builtin_registry = EarthLocation._get_site_registry(force_builtin=True)
dl_registry = EarthLocation._get_site_registry(force_download=download_url)
in_dl = {}
matches = {}
for name in builtin_registry.names:
in_dl[name] = name in dl_registry
if in_dl[name]:
matches[name] = quantity_allclose(builtin_registry[name].geocentric, dl_registry[name].geocentric)
else:
matches[name] = False
if not all(matches.values()):
# this makes sure we actually see which don't match
print("In builtin registry but not in download:")
for name in in_dl:
if not in_dl[name]:
print(' ', name)
print("In both but not the same value:")
for name in matches:
if not matches[name] and in_dl[name]:
print(' ', name, 'builtin:', builtin_registry[name], 'download:', dl_registry[name])
assert False, "Builtin and download registry aren't consistent - failures printed to stdout"
def test_meta_present():
reg = get_builtin_sites()
greenwich = reg['greenwich']
assert greenwich.info.meta['source'] == ('Ordnance Survey via '
'http://gpsinformation.net/main/greenwich.htm and UNESCO')
| {
"content_hash": "5332f143f01e4ff4e59e3294128be919",
"timestamp": "",
"source": "github",
"line_count": 181,
"max_line_length": 141,
"avg_line_length": 36.270718232044196,
"alnum_prop": 0.6673267326732674,
"repo_name": "saimn/astropy",
"id": "160a24baa158808f31426c2f2a50e9da3e700399",
"size": "6566",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "astropy/coordinates/tests/test_sites.py",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "C",
"bytes": "11034753"
},
{
"name": "C++",
"bytes": "47001"
},
{
"name": "Cython",
"bytes": "78631"
},
{
"name": "HTML",
"bytes": "1172"
},
{
"name": "Lex",
"bytes": "183333"
},
{
"name": "M4",
"bytes": "18757"
},
{
"name": "Makefile",
"bytes": "52457"
},
{
"name": "Python",
"bytes": "12214998"
},
{
"name": "Shell",
"bytes": "17024"
},
{
"name": "TeX",
"bytes": "853"
}
],
"symlink_target": ""
} |
module ActiveRecord
module ConnectionAdapters
module SQLServer
module DatabaseLimits
def table_alias_length
128
end
def column_name_length
128
end
deprecate :column_name_length
def table_name_length
128
end
deprecate :table_name_length
def index_name_length
128
end
def columns_per_table
1024
end
deprecate :columns_per_table
def indexes_per_table
999
end
deprecate :indexes_per_table
def columns_per_multicolumn_index
16
end
deprecate :columns_per_multicolumn_index
def sql_query_length
65_536 * 4_096
end
deprecate :sql_query_length
def joins_per_query
256
end
deprecate :joins_per_query
private
# The max number of binds is 2100, but because sp_executesql takes
# the first 2 params as the query string and the list of types,
# we have only 2098 spaces left
def bind_params_length
2_098
end
def insert_rows_length
1_000
end
end
end
end
end
| {
"content_hash": "f7e9e7e18316b60bfb96d61a821a7492",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 74,
"avg_line_length": 19.873015873015873,
"alnum_prop": 0.5439297124600639,
"repo_name": "rails-sqlserver/activerecord-sqlserver-adapter",
"id": "4fa681115d827c80cfa862eb892345bbec05bd38",
"size": "1283",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "lib/active_record/connection_adapters/sqlserver/database_limits.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "PowerShell",
"bytes": "1006"
},
{
"name": "Ruby",
"bytes": "403591"
},
{
"name": "Shell",
"bytes": "1183"
},
{
"name": "TSQL",
"bytes": "3375"
}
],
"symlink_target": ""
} |
<?xml version="1.0" encoding="UTF-8"?>
<Message xmlns="urn:Messages">
<someData/>
<PolicyAccount>
<bankAccount>aaaaaaaaaaaaaaaaaa</bankAccount>
<GEVONDEN xmlns="">Hoi</GEVONDEN>
<PartyAgreementRole>
<Id>2410367</Id>
</PartyAgreementRole>
<PartyAgreementRole>
<Id>2412367</Id>
</PartyAgreementRole>
</PolicyAccount>
<someMoreData/>
</Message> | {
"content_hash": "edd1af354cd863a1f495b99b5305249d",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 47,
"avg_line_length": 24.2,
"alnum_prop": 0.7107438016528925,
"repo_name": "ibissource/iaf",
"id": "3bc1f7149cf8508fcbba6b2fc262dff6bb1fdbb8",
"size": "363",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "core/src/test/resources/Xslt/3205/result-ok-with-param-namespaces-removed.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "12835"
},
{
"name": "CSS",
"bytes": "183245"
},
{
"name": "Dockerfile",
"bytes": "11185"
},
{
"name": "HTML",
"bytes": "187009"
},
{
"name": "Java",
"bytes": "9699471"
},
{
"name": "JavaScript",
"bytes": "1754626"
},
{
"name": "Less",
"bytes": "78481"
},
{
"name": "PLSQL",
"bytes": "2900"
},
{
"name": "Python",
"bytes": "14514"
},
{
"name": "Rich Text Format",
"bytes": "43789"
},
{
"name": "Roff",
"bytes": "1046"
},
{
"name": "SCSS",
"bytes": "79489"
},
{
"name": "Shell",
"bytes": "9171"
},
{
"name": "TSQL",
"bytes": "3354"
},
{
"name": "XQuery",
"bytes": "37"
},
{
"name": "XSLT",
"bytes": "252809"
}
],
"symlink_target": ""
} |
page_title: "Usage - Hyper-V Provider"
sidebar_current: "hyperv-usage"
---
# Usage
The Hyper-V provider is used just like any other provider. Please
read the general [basic usage](/v2/providers/basic_usage.html) page for
providers.
The value to use for the `--provider` flag is `hyperv`.
Hyper-V also requires that you execute Vagrant with administrative
privileges. Creating and managing virtual machines with Hyper-V requires
admin rights. Vagrant will show you an error if it doesn't have the proper
permissions.
Boxes for Hyper-V can be easily found on
[HashiCorp's Atlas](https://atlas.hashicorp.com). To get started, you might
want to try the `hashicorp/precise64` box.
| {
"content_hash": "06d94e2332aab086f1dcc6a7dd3586b6",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 75,
"avg_line_length": 34.05,
"alnum_prop": 0.7723935389133627,
"repo_name": "iNecas/vagrant",
"id": "e91c7e92e94b59eac584302deacc593c1152c5fc",
"size": "685",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "website/docs/source/v2/hyperv/usage.html.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "81375"
},
{
"name": "Emacs Lisp",
"bytes": "420"
},
{
"name": "JavaScript",
"bytes": "113623"
},
{
"name": "PowerShell",
"bytes": "20660"
},
{
"name": "Ruby",
"bytes": "1946476"
},
{
"name": "Shell",
"bytes": "6458"
},
{
"name": "VimL",
"bytes": "309"
}
],
"symlink_target": ""
} |
var AnnotationToolMixin = require("../../writer").AnnotationToolMixin;
var TimecodeTool = React.createClass({
mixins: [AnnotationToolMixin],
displayName: "TimecodeTool",
annotationType: "timecode",
toolIcon: "fa-clock-o"
});
module.exports = TimecodeTool; | {
"content_hash": "f3e16f7d99d867c07ab03fe65634eef5",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 70,
"avg_line_length": 26.5,
"alnum_prop": 0.7396226415094339,
"repo_name": "substance/archivist-composer",
"id": "c2aeb0bb4cf8121191aa516390275bce1e2e4dea",
"size": "265",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "src/writer_extensions/timecodes/timecode_tool.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "39938"
},
{
"name": "HTML",
"bytes": "1443"
},
{
"name": "JavaScript",
"bytes": "5277455"
}
],
"symlink_target": ""
} |
import React from 'react'
import { renderWithTheme } from '@looker/components-test-utils'
import { screen, waitFor, fireEvent } from '@testing-library/react'
import { api } from '../../test-data'
import { DocPrimaryResponse } from './DocPrimaryResponse'
describe('DocPrimaryResponse', () => {
const response = api.methods.create_query.primaryResponse
test('it renders response type name', () => {
renderWithTheme(<DocPrimaryResponse response={response} />)
expect(screen.getByText(response.type.name)).toBeInTheDocument()
})
test('it renders a tooltip on mouse over', async () => {
renderWithTheme(<DocPrimaryResponse response={response} />)
const resp = screen.getByText(response.type.name)
fireEvent.mouseOver(resp)
await waitFor(() => {
expect(screen.getByRole('tooltip')).toHaveTextContent(
`${response.description} ${response.mediaType}`
)
})
})
})
| {
"content_hash": "abadcd4429950b3f6c0d8b93280039a6",
"timestamp": "",
"source": "github",
"line_count": 28,
"max_line_length": 68,
"avg_line_length": 32.785714285714285,
"alnum_prop": 0.6928104575163399,
"repo_name": "looker-open-source/sdk-codegen",
"id": "23418cacf29088c294ca25488595d71751f2c78f",
"size": "2026",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "packages/api-explorer/src/components/DocPseudo/DocPrimaryResponse.spec.tsx",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "1558559"
},
{
"name": "Go",
"bytes": "780579"
},
{
"name": "HTML",
"bytes": "1094"
},
{
"name": "JavaScript",
"bytes": "46766"
},
{
"name": "Jupyter Notebook",
"bytes": "44336"
},
{
"name": "Kotlin",
"bytes": "1224618"
},
{
"name": "Nix",
"bytes": "132"
},
{
"name": "Python",
"bytes": "2119978"
},
{
"name": "Shell",
"bytes": "4961"
},
{
"name": "Swift",
"bytes": "1996724"
},
{
"name": "TypeScript",
"bytes": "2759848"
}
],
"symlink_target": ""
} |
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<configuration supports_final="true">
<!--
Refer to the oozie-default.xml file for the complete list of
Oozie configuration properties and their default values.
-->
<property>
<name>oozie.base.url</name>
<value>http://localhost:11000/oozie</value>
<description>Base Oozie URL.</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.system.id</name>
<value>oozie-${user.name}</value>
<description>
The Oozie system ID.
</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.systemmode</name>
<value>NORMAL</value>
<description>
System mode for Oozie at startup.
</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.service.AuthorizationService.security.enabled</name>
<value>true</value>
<description>
Specifies whether security (user name/admin role) is enabled or not.
If disabled any user can manage Oozie system and manage any job.
</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.service.PurgeService.older.than</name>
<value>30</value>
<description>
Jobs older than this value, in days, will be purged by the PurgeService.
</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.service.PurgeService.purge.interval</name>
<value>3600</value>
<description>
Interval at which the purge service will run, in seconds.
</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.service.CallableQueueService.queue.size</name>
<value>1000</value>
<description>Max callable queue size</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.service.CallableQueueService.threads</name>
<value>10</value>
<description>Number of threads used for executing callables</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.service.CallableQueueService.callable.concurrency</name>
<value>3</value>
<description>
Maximum concurrency for a given callable type.
Each command is a callable type (submit, start, run, signal, job, jobs, suspend,resume, etc).
Each action type is a callable type (Map-Reduce, Pig, SSH, FS, sub-workflow, etc).
All commands that use action executors (action-start, action-end, action-kill and action-check) use
the action type as the callable type.
</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.service.coord.normal.default.timeout</name>
<value>120</value>
<description>Default timeout for a coordinator action input check (in minutes) for normal job.
-1 means infinite timeout
</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.db.schema.name</name>
<value>oozie</value>
<description>
Oozie DataBase Name
</description>
<value-attributes>
<type>database</type>
</value-attributes>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.authentication.type</name>
<value>simple</value>
<description>
Authentication used for Oozie HTTP endpoint, the supported values are: simple | kerberos |
#AUTHENTICATION_HANDLER_CLASSNAME#.
</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.service.WorkflowAppService.system.libpath</name>
<value>/user/${user.name}/share/lib</value>
<description>
System library path to use for workflow applications.
This path is added to workflow application if their job properties sets
the property 'oozie.use.system.libpath' to true.
</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>use.system.libpath.for.mapreduce.and.pig.jobs</name>
<value>false</value>
<description>
If set to true, submissions of MapReduce and Pig jobs will include
automatically the system library path, thus not requiring users to
specify where the Pig JAR files are. Instead, the ones from the system
library path are used.
</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.authentication.kerberos.name.rules</name>
<value>
</value>
<description>The mapping from kerberos principal names to local OS user names.</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.service.HadoopAccessorService.hadoop.configurations</name>
<value>*=/etc/hadoop/conf</value>
<description>
Comma separated AUTHORITY=HADOOP_CONF_DIR, where AUTHORITY is the HOST:PORT of
the Hadoop service (JobTracker, HDFS). The wildcard '*' configuration is
used when there is no exact match for an authority. The HADOOP_CONF_DIR contains
the relevant Hadoop *-site.xml files. If the path is relative is looked within
the Oozie configuration directory; though the path can be absolute (i.e. to point
to Hadoop client conf/ directories in the local filesystem.
</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.service.ActionService.executor.ext.classes</name>
<value>
org.apache.oozie.action.email.EmailActionExecutor,
org.apache.oozie.action.hadoop.HiveActionExecutor,
org.apache.oozie.action.hadoop.ShellActionExecutor,
org.apache.oozie.action.hadoop.SqoopActionExecutor,
org.apache.oozie.action.hadoop.DistcpActionExecutor
</value>
<description>
List of ActionExecutors extension classes (separated by commas). Only action types with associated executors can
be used in workflows. This property is a convenience property to add extensions to the built in executors without
having to include all the built in ones.
</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.service.SchemaService.wf.ext.schemas</name>
<value>shell-action-0.1.xsd,email-action-0.1.xsd,hive-action-0.2.xsd,sqoop-action-0.2.xsd,ssh-action-0.1.xsd,distcp-action-0.1.xsd,shell-action-0.2.xsd,oozie-sla-0.1.xsd,oozie-sla-0.2.xsd,hive-action-0.3.xsd</value>
<description>
Schemas for additional actions types. IMPORTANT: if there are no schemas leave a 1 space string, the service
trims the value, if empty Configuration assumes it is NULL.
</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.service.JPAService.create.db.schema</name>
<value>false</value>
<description>
Creates Oozie DB.
If set to true, it creates the DB schema if it does not exist. If the DB schema exists is a NOP.
If set to false, it does not create the DB schema. If the DB schema does not exist it fails start up.
</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.service.JPAService.jdbc.driver</name>
<value>org.apache.derby.jdbc.EmbeddedDriver</value>
<description>
JDBC driver class.
</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.service.JPAService.jdbc.url</name>
<value>jdbc:derby:${oozie.data.dir}/${oozie.db.schema.name}-db;create=true</value>
<description>
JDBC URL.
</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.service.JPAService.jdbc.username</name>
<value>oozie</value>
<description>
Database user name to use to connect to the database
</description>
<on-ambari-upgrade add="true"/>
</property>
<property require-input="true">
<name>oozie.service.JPAService.jdbc.password</name>
<value> </value>
<property-type>PASSWORD</property-type>
<description>
DB user password.
IMPORTANT: if password is emtpy leave a 1 space string, the service trims the value,
if empty Configuration assumes it is NULL.
</description>
<value-attributes>
<type>password</type>
</value-attributes>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.service.JPAService.pool.max.active.conn</name>
<value>10</value>
<description>
Max number of connections.
</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.services</name>
<value>
org.apache.oozie.service.SchedulerService,
org.apache.oozie.service.InstrumentationService,
org.apache.oozie.service.CallableQueueService,
org.apache.oozie.service.UUIDService,
org.apache.oozie.service.ELService,
org.apache.oozie.service.AuthorizationService,
org.apache.oozie.service.UserGroupInformationService,
org.apache.oozie.service.HadoopAccessorService,
org.apache.oozie.service.URIHandlerService,
org.apache.oozie.service.MemoryLocksService,
org.apache.oozie.service.DagXLogInfoService,
org.apache.oozie.service.SchemaService,
org.apache.oozie.service.LiteWorkflowAppService,
org.apache.oozie.service.JPAService,
org.apache.oozie.service.StoreService,
org.apache.oozie.service.CoordinatorStoreService,
org.apache.oozie.service.SLAStoreService,
org.apache.oozie.service.DBLiteWorkflowStoreService,
org.apache.oozie.service.CallbackService,
org.apache.oozie.service.ActionService,
org.apache.oozie.service.ActionCheckerService,
org.apache.oozie.service.RecoveryService,
org.apache.oozie.service.PurgeService,
org.apache.oozie.service.CoordinatorEngineService,
org.apache.oozie.service.BundleEngineService,
org.apache.oozie.service.DagEngineService,
org.apache.oozie.service.CoordMaterializeTriggerService,
org.apache.oozie.service.StatusTransitService,
org.apache.oozie.service.PauseTransitService,
org.apache.oozie.service.GroupsService,
org.apache.oozie.service.ProxyUserService
</value>
<description>List of Oozie services</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.service.URIHandlerService.uri.handlers</name>
<value>org.apache.oozie.dependency.FSURIHandler,org.apache.oozie.dependency.HCatURIHandler</value>
<description>
Enlist the different uri handlers supported for data availability checks.
</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.services.ext</name>
<value>org.apache.oozie.service.PartitionDependencyManagerService,org.apache.oozie.service.HCatAccessorService
</value>
<description>
To add/replace services defined in 'oozie.services' with custom implementations.
Class names must be separated by commas.
</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.service.coord.push.check.requeue.interval</name>
<value>30000</value>
<description>
Command re-queue interval for push dependencies (in millisecond).
</description>
<on-ambari-upgrade add="true"/>
</property>
<property>
<name>oozie.credentials.credentialclasses</name>
<value>hcat=org.apache.oozie.action.hadoop.HCatCredentials</value>
<description>
Credential Class to be used for HCat.
</description>
<on-ambari-upgrade add="true"/>
</property>
</configuration>
| {
"content_hash": "81c9ef7a447b53e451788c4469237331",
"timestamp": "",
"source": "github",
"line_count": 324,
"max_line_length": 219,
"avg_line_length": 38.0462962962963,
"alnum_prop": 0.7030907763446094,
"repo_name": "arenadata/ambari",
"id": "6c9289a767d682d57a909f0827cc1a744c523f9f",
"size": "12327",
"binary": false,
"copies": "3",
"ref": "refs/heads/branch-adh-1.6",
"path": "ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/OOZIE/configuration/oozie-site.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "46700"
},
{
"name": "C",
"bytes": "331204"
},
{
"name": "C#",
"bytes": "215907"
},
{
"name": "C++",
"bytes": "257"
},
{
"name": "CSS",
"bytes": "343739"
},
{
"name": "CoffeeScript",
"bytes": "8465"
},
{
"name": "Dockerfile",
"bytes": "6387"
},
{
"name": "EJS",
"bytes": "777"
},
{
"name": "FreeMarker",
"bytes": "2654"
},
{
"name": "Gherkin",
"bytes": "990"
},
{
"name": "Groovy",
"bytes": "15882"
},
{
"name": "HTML",
"bytes": "717983"
},
{
"name": "Handlebars",
"bytes": "1819641"
},
{
"name": "Java",
"bytes": "29172298"
},
{
"name": "JavaScript",
"bytes": "18571926"
},
{
"name": "Jinja",
"bytes": "1490416"
},
{
"name": "Less",
"bytes": "412933"
},
{
"name": "Makefile",
"bytes": "11111"
},
{
"name": "PHP",
"bytes": "149648"
},
{
"name": "PLpgSQL",
"bytes": "287501"
},
{
"name": "PowerShell",
"bytes": "2090340"
},
{
"name": "Python",
"bytes": "18507704"
},
{
"name": "R",
"bytes": "3943"
},
{
"name": "Ruby",
"bytes": "38590"
},
{
"name": "SCSS",
"bytes": "40072"
},
{
"name": "Shell",
"bytes": "924115"
},
{
"name": "Stylus",
"bytes": "820"
},
{
"name": "TSQL",
"bytes": "42351"
},
{
"name": "Vim script",
"bytes": "5813"
},
{
"name": "sed",
"bytes": "2303"
}
],
"symlink_target": ""
} |
package object
import (
"bytes"
"io"
"io/ioutil"
"github.com/go-git/go-git/v5/plumbing"
. "gopkg.in/check.v1"
)
type BlobsSuite struct {
BaseObjectsSuite
}
var _ = Suite(&BlobsSuite{})
func (s *BlobsSuite) TestBlobHash(c *C) {
o := &plumbing.MemoryObject{}
o.SetType(plumbing.BlobObject)
o.SetSize(3)
writer, err := o.Writer()
c.Assert(err, IsNil)
defer func() { c.Assert(writer.Close(), IsNil) }()
writer.Write([]byte{'F', 'O', 'O'})
blob := &Blob{}
c.Assert(blob.Decode(o), IsNil)
c.Assert(blob.Size, Equals, int64(3))
c.Assert(blob.Hash.String(), Equals, "d96c7efbfec2814ae0301ad054dc8d9fc416c9b5")
reader, err := blob.Reader()
c.Assert(err, IsNil)
defer func() { c.Assert(reader.Close(), IsNil) }()
data, err := ioutil.ReadAll(reader)
c.Assert(err, IsNil)
c.Assert(string(data), Equals, "FOO")
}
func (s *BlobsSuite) TestBlobDecodeEncodeIdempotent(c *C) {
var objects []*plumbing.MemoryObject
for _, str := range []string{"foo", "foo\n"} {
obj := &plumbing.MemoryObject{}
obj.Write([]byte(str))
obj.SetType(plumbing.BlobObject)
obj.Hash()
objects = append(objects, obj)
}
for _, object := range objects {
blob := &Blob{}
err := blob.Decode(object)
c.Assert(err, IsNil)
newObject := &plumbing.MemoryObject{}
err = blob.Encode(newObject)
c.Assert(err, IsNil)
newObject.Hash() // Ensure Hash is pre-computed before deep comparison
c.Assert(newObject, DeepEquals, object)
}
}
func (s *BlobsSuite) TestBlobIter(c *C) {
encIter, err := s.Storer.IterEncodedObjects(plumbing.BlobObject)
c.Assert(err, IsNil)
iter := NewBlobIter(s.Storer, encIter)
blobs := []*Blob{}
iter.ForEach(func(b *Blob) error {
blobs = append(blobs, b)
return nil
})
c.Assert(len(blobs) > 0, Equals, true)
iter.Close()
encIter, err = s.Storer.IterEncodedObjects(plumbing.BlobObject)
c.Assert(err, IsNil)
iter = NewBlobIter(s.Storer, encIter)
i := 0
for {
b, err := iter.Next()
if err == io.EOF {
break
}
c.Assert(err, IsNil)
c.Assert(b.ID(), Equals, blobs[i].ID())
c.Assert(b.Size, Equals, blobs[i].Size)
c.Assert(b.Type(), Equals, blobs[i].Type())
r1, err := b.Reader()
c.Assert(err, IsNil)
b1, err := ioutil.ReadAll(r1)
c.Assert(err, IsNil)
c.Assert(r1.Close(), IsNil)
r2, err := blobs[i].Reader()
c.Assert(err, IsNil)
b2, err := ioutil.ReadAll(r2)
c.Assert(err, IsNil)
c.Assert(r2.Close(), IsNil)
c.Assert(bytes.Compare(b1, b2), Equals, 0)
i++
}
iter.Close()
}
| {
"content_hash": "612250ff2c13d03992b9f6d04b3cee47",
"timestamp": "",
"source": "github",
"line_count": 115,
"max_line_length": 81,
"avg_line_length": 21.495652173913044,
"alnum_prop": 0.6557443365695793,
"repo_name": "go-git/go-git",
"id": "44613433a1f474a719c7a29dbecfa63b548566a7",
"size": "2472",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "plumbing/object/blob_test.go",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Go",
"bytes": "2040586"
},
{
"name": "Makefile",
"bytes": "828"
},
{
"name": "Shell",
"bytes": "2051"
}
],
"symlink_target": ""
} |
int error_count = 0;
#ifndef BOOST_NO_ADL_BARRIER
#include "boost_no_adl_barrier.ipp"
#else
namespace boost_no_adl_barrier = empty_boost;
#endif
#ifndef BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
#include "boost_no_arg_dep_lookup.ipp"
#else
namespace boost_no_argument_dependent_lookup = empty_boost;
#endif
#ifndef BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS
#include "boost_no_array_type_spec.ipp"
#else
namespace boost_no_array_type_specializations = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_AUTO_DECLARATIONS
#include "boost_no_auto_declarations.ipp"
#else
namespace boost_no_cxx11_auto_declarations = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS
#include "boost_no_auto_multidecl.ipp"
#else
namespace boost_no_cxx11_auto_multideclarations = empty_boost;
#endif
#ifndef BOOST_NO_AUTO_PTR
#include "boost_no_auto_ptr.ipp"
#else
namespace boost_no_auto_ptr = empty_boost;
#endif
#ifndef BOOST_BCB_PARTIAL_SPECIALIZATION_BUG
#include "boost_no_bcb_partial_spec.ipp"
#else
namespace boost_bcb_partial_specialization_bug = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_CHAR16_T
#include "boost_no_char16_t.ipp"
#else
namespace boost_no_cxx11_char16_t = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_CHAR32_T
#include "boost_no_char32_t.ipp"
#else
namespace boost_no_cxx11_char32_t = empty_boost;
#endif
#ifndef BOOST_NO_COMPLETE_VALUE_INITIALIZATION
#include "boost_no_com_value_init.ipp"
#else
namespace boost_no_complete_value_initialization = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_CONSTEXPR
#include "boost_no_constexpr.ipp"
#else
namespace boost_no_cxx11_constexpr = empty_boost;
#endif
#ifndef BOOST_NO_CTYPE_FUNCTIONS
#include "boost_no_ctype_functions.ipp"
#else
namespace boost_no_ctype_functions = empty_boost;
#endif
#ifndef BOOST_NO_CV_SPECIALIZATIONS
#include "boost_no_cv_spec.ipp"
#else
namespace boost_no_cv_specializations = empty_boost;
#endif
#ifndef BOOST_NO_CV_VOID_SPECIALIZATIONS
#include "boost_no_cv_void_spec.ipp"
#else
namespace boost_no_cv_void_specializations = empty_boost;
#endif
#ifndef BOOST_NO_CWCHAR
#include "boost_no_cwchar.ipp"
#else
namespace boost_no_cwchar = empty_boost;
#endif
#ifndef BOOST_NO_CWCTYPE
#include "boost_no_cwctype.ipp"
#else
namespace boost_no_cwctype = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_ADDRESSOF
#include "boost_no_cxx11_addressof.ipp"
#else
namespace boost_no_cxx11_addressof = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_ALIGNAS
#include "boost_no_cxx11_alignas.ipp"
#else
namespace boost_no_cxx11_alignas = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_ALLOCATOR
#include "boost_no_cxx11_allocator.ipp"
#else
namespace boost_no_cxx11_allocator = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_ATOMIC_SMART_PTR
#include "boost_no_cxx11_atomic_sp.ipp"
#else
namespace boost_no_cxx11_atomic_smart_ptr = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_FINAL
#include "boost_no_cxx11_final.ipp"
#else
namespace boost_no_cxx11_final = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_HDR_ARRAY
#include "boost_no_cxx11_hdr_array.ipp"
#else
namespace boost_no_cxx11_hdr_array = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_HDR_ATOMIC
#include "boost_no_cxx11_hdr_atomic.ipp"
#else
namespace boost_no_cxx11_hdr_atomic = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_HDR_CHRONO
#include "boost_no_cxx11_hdr_chrono.ipp"
#else
namespace boost_no_cxx11_hdr_chrono = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_HDR_CODECVT
#include "boost_no_cxx11_hdr_codecvt.ipp"
#else
namespace boost_no_cxx11_hdr_codecvt = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_HDR_CONDITION_VARIABLE
#include "boost_no_cxx11_hdr_condition_variable.ipp"
#else
namespace boost_no_cxx11_hdr_condition_variable = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_HDR_FORWARD_LIST
#include "boost_no_cxx11_hdr_forward_list.ipp"
#else
namespace boost_no_cxx11_hdr_forward_list = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_HDR_FUTURE
#include "boost_no_cxx11_hdr_future.ipp"
#else
namespace boost_no_cxx11_hdr_future = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_HDR_INITIALIZER_LIST
#include "boost_no_cxx11_hdr_initializer_list.ipp"
#else
namespace boost_no_cxx11_hdr_initializer_list = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_HDR_MUTEX
#include "boost_no_cxx11_hdr_mutex.ipp"
#else
namespace boost_no_cxx11_hdr_mutex = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_HDR_RANDOM
#include "boost_no_cxx11_hdr_random.ipp"
#else
namespace boost_no_cxx11_hdr_random = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_HDR_RATIO
#include "boost_no_cxx11_hdr_ratio.ipp"
#else
namespace boost_no_cxx11_hdr_ratio = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_HDR_REGEX
#include "boost_no_cxx11_hdr_regex.ipp"
#else
namespace boost_no_cxx11_hdr_regex = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_HDR_SYSTEM_ERROR
#include "boost_no_cxx11_hdr_system_error.ipp"
#else
namespace boost_no_cxx11_hdr_system_error = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_HDR_THREAD
#include "boost_no_cxx11_hdr_thread.ipp"
#else
namespace boost_no_cxx11_hdr_thread = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_HDR_TUPLE
#include "boost_no_cxx11_hdr_tuple.ipp"
#else
namespace boost_no_cxx11_hdr_tuple = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_HDR_TYPE_TRAITS
#include "boost_no_cxx11_hdr_type_traits.ipp"
#else
namespace boost_no_cxx11_hdr_type_traits = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_HDR_TYPEINDEX
#include "boost_no_cxx11_hdr_typeindex.ipp"
#else
namespace boost_no_cxx11_hdr_typeindex = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_HDR_UNORDERED_MAP
#include "boost_no_cxx11_hdr_unordered_map.ipp"
#else
namespace boost_no_cxx11_hdr_unordered_map = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_HDR_UNORDERED_SET
#include "boost_no_cxx11_hdr_unordered_set.ipp"
#else
namespace boost_no_cxx11_hdr_unordered_set = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_INLINE_NAMESPACES
#include "boost_no_cxx11_inline_namespaces.ipp"
#else
namespace boost_no_cxx11_inline_namespaces = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS
#include "boost_no_cxx11_non_pub_def_fun.ipp"
#else
namespace boost_no_cxx11_non_public_defaulted_functions = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_NUMERIC_LIMITS
#include "boost_no_cxx11_numeric_limits.ipp"
#else
namespace boost_no_cxx11_numeric_limits = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_REF_QUALIFIERS
#include "boost_no_cxx11_ref_qualifiers.ipp"
#else
namespace boost_no_cxx11_ref_qualifiers = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_SMART_PTR
#include "boost_no_cxx11_smart_ptr.ipp"
#else
namespace boost_no_cxx11_smart_ptr = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_STD_ALIGN
#include "boost_no_cxx11_std_align.ipp"
#else
namespace boost_no_cxx11_std_align = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_TRAILING_RESULT_TYPES
#include "boost_no_cxx11_trailing_result_types.ipp"
#else
namespace boost_no_cxx11_trailing_result_types = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_USER_DEFINED_LITERALS
#include "boost_no_cxx11_user_lit.ipp"
#else
namespace boost_no_cxx11_user_defined_literals = empty_boost;
#endif
#ifndef BOOST_NO_CXX14_BINARY_LITERALS
#include "boost_no_cxx14_binary_literals.ipp"
#else
namespace boost_no_cxx14_binary_literals = empty_boost;
#endif
#ifndef BOOST_NO_CXX14_CONSTEXPR
#include "boost_no_cxx14_constexpr.ipp"
#else
namespace boost_no_cxx14_constexpr = empty_boost;
#endif
#ifndef BOOST_NO_CXX14_DECLTYPE_AUTO
#include "boost_no_cxx14_decltype_auto.ipp"
#else
namespace boost_no_cxx14_decltype_auto = empty_boost;
#endif
#ifndef BOOST_NO_CXX14_DIGIT_SEPARATOR
#include "boost_no_cxx14_digit_separator.ipp"
#else
namespace boost_no_cxx14_digit_separator = empty_boost;
#endif
#ifndef BOOST_NO_CXX14_GENERIC_LAMBDAS
#include "boost_no_cxx14_generic_lambda.ipp"
#else
namespace boost_no_cxx14_generic_lambdas = empty_boost;
#endif
#ifndef BOOST_NO_CXX14_INITIALIZED_LAMBDA_CAPTURES
#include "boost_no_cxx14_lambda_capture.ipp"
#else
namespace boost_no_cxx14_initialized_lambda_captures = empty_boost;
#endif
#ifndef BOOST_NO_CXX14_AGGREGATE_NSDMI
#include "boost_no_cxx14_member_init.ipp"
#else
namespace boost_no_cxx14_aggregate_nsdmi = empty_boost;
#endif
#ifndef BOOST_NO_CXX14_RETURN_TYPE_DEDUCTION
#include "boost_no_cxx14_return_type_ded.ipp"
#else
namespace boost_no_cxx14_return_type_deduction = empty_boost;
#endif
#ifndef BOOST_NO_CXX14_VARIABLE_TEMPLATES
#include "boost_no_cxx14_var_templ.ipp"
#else
namespace boost_no_cxx14_variable_templates = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_HDR_FUNCTIONAL
#include "boost_no_cxx_hdr_functional.ipp"
#else
namespace boost_no_cxx11_hdr_functional = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_DECLTYPE
#include "boost_no_decltype.ipp"
#else
namespace boost_no_cxx11_decltype = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_DECLTYPE_N3276
#include "boost_no_decltype_n3276.ipp"
#else
namespace boost_no_cxx11_decltype_n3276 = empty_boost;
#endif
#ifndef BOOST_DEDUCED_TYPENAME
#include "boost_no_ded_typename.ipp"
#else
namespace boost_deduced_typename = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS
#include "boost_no_defaulted_functions.ipp"
#else
namespace boost_no_cxx11_defaulted_functions = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_DELETED_FUNCTIONS
#include "boost_no_deleted_functions.ipp"
#else
namespace boost_no_cxx11_deleted_functions = empty_boost;
#endif
#ifndef BOOST_NO_DEPENDENT_NESTED_DERIVATIONS
#include "boost_no_dep_nested_class.ipp"
#else
namespace boost_no_dependent_nested_derivations = empty_boost;
#endif
#ifndef BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS
#include "boost_no_dep_val_param.ipp"
#else
namespace boost_no_dependent_types_in_template_value_parameters = empty_boost;
#endif
#ifndef BOOST_NO_EXCEPTION_STD_NAMESPACE
#include "boost_no_excep_std.ipp"
#else
namespace boost_no_exception_std_namespace = empty_boost;
#endif
#ifndef BOOST_NO_EXCEPTIONS
#include "boost_no_exceptions.ipp"
#else
namespace boost_no_exceptions = empty_boost;
#endif
#ifndef BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
#include "boost_no_exp_func_tem_arg.ipp"
#else
namespace boost_no_explicit_function_template_arguments = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS
#include "boost_no_explicit_cvt_ops.ipp"
#else
namespace boost_no_cxx11_explicit_conversion_operators = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_EXTERN_TEMPLATE
#include "boost_no_extern_template.ipp"
#else
namespace boost_no_cxx11_extern_template = empty_boost;
#endif
#ifndef BOOST_NO_FENV_H
#include "boost_no_fenv_h.ipp"
#else
namespace boost_no_fenv_h = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_FIXED_LENGTH_VARIADIC_TEMPLATE_EXPANSION_PACKS
#include "boost_no_fixed_len_variadic_templates.ipp"
#else
namespace boost_no_cxx11_fixed_length_variadic_template_expansion_packs = empty_boost;
#endif
#ifndef BOOST_NO_FUNCTION_TEMPLATE_ORDERING
#include "boost_no_func_tmp_order.ipp"
#else
namespace boost_no_function_template_ordering = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS
#include "boost_no_function_template_default_args.ipp"
#else
namespace boost_no_cxx11_function_template_default_args = empty_boost;
#endif
#ifndef BOOST_NO_FUNCTION_TYPE_SPECIALIZATIONS
#include "boost_no_function_type_spec.ipp"
#else
namespace boost_no_function_type_specializations = empty_boost;
#endif
#ifndef BOOST_NO_MS_INT64_NUMERIC_LIMITS
#include "boost_no_i64_limits.ipp"
#else
namespace boost_no_ms_int64_numeric_limits = empty_boost;
#endif
#ifndef BOOST_NO_INCLASS_MEMBER_INITIALIZATION
#include "boost_no_inline_memb_init.ipp"
#else
namespace boost_no_inclass_member_initialization = empty_boost;
#endif
#ifndef BOOST_NO_INTEGRAL_INT64_T
#include "boost_no_integral_int64_t.ipp"
#else
namespace boost_no_integral_int64_t = empty_boost;
#endif
#ifndef BOOST_NO_IOSFWD
#include "boost_no_iosfwd.ipp"
#else
namespace boost_no_iosfwd = empty_boost;
#endif
#ifndef BOOST_NO_IOSTREAM
#include "boost_no_iostream.ipp"
#else
namespace boost_no_iostream = empty_boost;
#endif
#ifndef BOOST_NO_IS_ABSTRACT
#include "boost_no_is_abstract.ipp"
#else
namespace boost_no_is_abstract = empty_boost;
#endif
#ifndef BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS
#include "boost_no_iter_construct.ipp"
#else
namespace boost_no_templated_iterator_constructors = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_LAMBDAS
#include "boost_no_lambdas.ipp"
#else
namespace boost_no_cxx11_lambdas = empty_boost;
#endif
#ifndef BOOST_NO_LIMITS
#include "boost_no_limits.ipp"
#else
namespace boost_no_limits = empty_boost;
#endif
#ifndef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
#include "boost_no_limits_const_exp.ipp"
#else
namespace boost_no_limits_compile_time_constants = empty_boost;
#endif
#ifndef BOOST_NO_LONG_LONG_NUMERIC_LIMITS
#include "boost_no_ll_limits.ipp"
#else
namespace boost_no_long_long_numeric_limits = empty_boost;
#endif
#ifndef BOOST_NO_LONG_LONG
#include "boost_no_long_long.ipp"
#else
namespace boost_no_long_long = empty_boost;
#endif
#ifndef BOOST_NO_MEMBER_FUNCTION_SPECIALIZATIONS
#include "boost_no_mem_func_spec.ipp"
#else
namespace boost_no_member_function_specializations = empty_boost;
#endif
#ifndef BOOST_NO_MEMBER_TEMPLATE_KEYWORD
#include "boost_no_mem_tem_keyword.ipp"
#else
namespace boost_no_member_template_keyword = empty_boost;
#endif
#ifndef BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS
#include "boost_no_mem_tem_pnts.ipp"
#else
namespace boost_no_pointer_to_member_template_parameters = empty_boost;
#endif
#ifndef BOOST_NO_MEMBER_TEMPLATE_FRIENDS
#include "boost_no_mem_templ_frnds.ipp"
#else
namespace boost_no_member_template_friends = empty_boost;
#endif
#ifndef BOOST_NO_MEMBER_TEMPLATES
#include "boost_no_mem_templates.ipp"
#else
namespace boost_no_member_templates = empty_boost;
#endif
#ifndef BOOST_NO_NESTED_FRIENDSHIP
#include "boost_no_nested_friendship.ipp"
#else
namespace boost_no_nested_friendship = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_NOEXCEPT
#include "boost_no_noexcept.ipp"
#else
namespace boost_no_cxx11_noexcept = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_NULLPTR
#include "boost_no_nullptr.ipp"
#else
namespace boost_no_cxx11_nullptr = empty_boost;
#endif
#ifndef BOOST_NO_OPERATORS_IN_NAMESPACE
#include "boost_no_ops_in_namespace.ipp"
#else
namespace boost_no_operators_in_namespace = empty_boost;
#endif
#ifndef BOOST_NO_PARTIAL_SPECIALIZATION_IMPLICIT_DEFAULT_ARGS
#include "boost_no_part_spec_def_args.ipp"
#else
namespace boost_no_partial_specialization_implicit_default_args = empty_boost;
#endif
#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
#include "boost_no_partial_spec.ipp"
#else
namespace boost_no_template_partial_specialization = empty_boost;
#endif
#ifndef BOOST_NO_PRIVATE_IN_AGGREGATE
#include "boost_no_priv_aggregate.ipp"
#else
namespace boost_no_private_in_aggregate = empty_boost;
#endif
#ifndef BOOST_NO_POINTER_TO_MEMBER_CONST
#include "boost_no_ptr_mem_const.ipp"
#else
namespace boost_no_pointer_to_member_const = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_RANGE_BASED_FOR
#include "boost_no_range_based_for.ipp"
#else
namespace boost_no_cxx11_range_based_for = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_RAW_LITERALS
#include "boost_no_raw_literals.ipp"
#else
namespace boost_no_cxx11_raw_literals = empty_boost;
#endif
#ifndef BOOST_NO_UNREACHABLE_RETURN_DETECTION
#include "boost_no_ret_det.ipp"
#else
namespace boost_no_unreachable_return_detection = empty_boost;
#endif
#ifndef BOOST_NO_RTTI
#include "boost_no_rtti.ipp"
#else
namespace boost_no_rtti = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
#include "boost_no_rvalue_references.ipp"
#else
namespace boost_no_cxx11_rvalue_references = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_SCOPED_ENUMS
#include "boost_no_scoped_enums.ipp"
#else
namespace boost_no_cxx11_scoped_enums = empty_boost;
#endif
#ifndef BOOST_NO_SFINAE
#include "boost_no_sfinae.ipp"
#else
namespace boost_no_sfinae = empty_boost;
#endif
#ifndef BOOST_NO_SFINAE_EXPR
#include "boost_no_sfinae_expr.ipp"
#else
namespace boost_no_sfinae_expr = empty_boost;
#endif
#ifndef BOOST_NO_STRINGSTREAM
#include "boost_no_sstream.ipp"
#else
namespace boost_no_stringstream = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_STATIC_ASSERT
#include "boost_no_static_assert.ipp"
#else
namespace boost_no_cxx11_static_assert = empty_boost;
#endif
#ifndef BOOST_NO_STD_ALLOCATOR
#include "boost_no_std_allocator.ipp"
#else
namespace boost_no_std_allocator = empty_boost;
#endif
#ifndef BOOST_NO_STD_DISTANCE
#include "boost_no_std_distance.ipp"
#else
namespace boost_no_std_distance = empty_boost;
#endif
#ifndef BOOST_NO_STD_ITERATOR_TRAITS
#include "boost_no_std_iter_traits.ipp"
#else
namespace boost_no_std_iterator_traits = empty_boost;
#endif
#ifndef BOOST_NO_STD_ITERATOR
#include "boost_no_std_iterator.ipp"
#else
namespace boost_no_std_iterator = empty_boost;
#endif
#ifndef BOOST_NO_STD_LOCALE
#include "boost_no_std_locale.ipp"
#else
namespace boost_no_std_locale = empty_boost;
#endif
#ifndef BOOST_NO_STD_MESSAGES
#include "boost_no_std_messages.ipp"
#else
namespace boost_no_std_messages = empty_boost;
#endif
#ifndef BOOST_NO_STD_MIN_MAX
#include "boost_no_std_min_max.ipp"
#else
namespace boost_no_std_min_max = empty_boost;
#endif
#ifndef BOOST_NO_STD_OUTPUT_ITERATOR_ASSIGN
#include "boost_no_std_oi_assign.ipp"
#else
namespace boost_no_std_output_iterator_assign = empty_boost;
#endif
#ifndef BOOST_NO_STD_TYPEINFO
#include "boost_no_std_typeinfo.ipp"
#else
namespace boost_no_std_typeinfo = empty_boost;
#endif
#ifndef BOOST_NO_STD_USE_FACET
#include "boost_no_std_use_facet.ipp"
#else
namespace boost_no_std_use_facet = empty_boost;
#endif
#ifndef BOOST_NO_STD_WSTREAMBUF
#include "boost_no_std_wstreambuf.ipp"
#else
namespace boost_no_std_wstreambuf = empty_boost;
#endif
#ifndef BOOST_NO_STD_WSTRING
#include "boost_no_std_wstring.ipp"
#else
namespace boost_no_std_wstring = empty_boost;
#endif
#ifndef BOOST_NO_STDC_NAMESPACE
#include "boost_no_stdc_namespace.ipp"
#else
namespace boost_no_stdc_namespace = empty_boost;
#endif
#ifndef BOOST_NO_SWPRINTF
#include "boost_no_swprintf.ipp"
#else
namespace boost_no_swprintf = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS
#include "boost_no_tem_local_classes.ipp"
#else
namespace boost_no_cxx11_local_class_template_parameters = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_TEMPLATE_ALIASES
#include "boost_no_template_aliases.ipp"
#else
namespace boost_no_cxx11_template_aliases = empty_boost;
#endif
#ifndef BOOST_NO_TEMPLATED_IOSTREAMS
#include "boost_no_template_streams.ipp"
#else
namespace boost_no_templated_iostreams = empty_boost;
#endif
#ifndef BOOST_NO_TEMPLATE_TEMPLATES
#include "boost_no_template_template.ipp"
#else
namespace boost_no_template_templates = empty_boost;
#endif
#ifndef BOOST_NO_TWO_PHASE_NAME_LOOKUP
#include "boost_no_two_phase_lookup.ipp"
#else
namespace boost_no_two_phase_name_lookup = empty_boost;
#endif
#ifndef BOOST_NO_TYPEID
#include "boost_no_typeid.ipp"
#else
namespace boost_no_typeid = empty_boost;
#endif
#ifndef BOOST_NO_TYPENAME_WITH_CTOR
#include "boost_no_typename_with_ctor.ipp"
#else
namespace boost_no_typename_with_ctor = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_UNICODE_LITERALS
#include "boost_no_unicode_literals.ipp"
#else
namespace boost_no_cxx11_unicode_literals = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
#include "boost_no_unified_init.ipp"
#else
namespace boost_no_cxx11_unified_initialization_syntax = empty_boost;
#endif
#ifndef BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
#include "boost_no_using_breaks_adl.ipp"
#else
namespace boost_function_scope_using_declaration_breaks_adl = empty_boost;
#endif
#ifndef BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE
#include "boost_no_using_decl_overld.ipp"
#else
namespace boost_no_using_declaration_overloads_from_typename_base = empty_boost;
#endif
#ifndef BOOST_NO_USING_TEMPLATE
#include "boost_no_using_template.ipp"
#else
namespace boost_no_using_template = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_VARIADIC_MACROS
#include "boost_no_variadic_macros.ipp"
#else
namespace boost_no_cxx11_variadic_macros = empty_boost;
#endif
#ifndef BOOST_NO_CXX11_VARIADIC_TEMPLATES
#include "boost_no_variadic_templates.ipp"
#else
namespace boost_no_cxx11_variadic_templates = empty_boost;
#endif
#ifndef BOOST_NO_VOID_RETURNS
#include "boost_no_void_returns.ipp"
#else
namespace boost_no_void_returns = empty_boost;
#endif
#ifndef BOOST_NO_INTRINSIC_WCHAR_T
#include "boost_no_wchar_t.ipp"
#else
namespace boost_no_intrinsic_wchar_t = empty_boost;
#endif
#ifdef BOOST_HAS_TWO_ARG_USE_FACET
#include "boost_has_2arg_use_facet.ipp"
#else
namespace boost_has_two_arg_use_facet = empty_boost;
#endif
#ifdef BOOST_HAS_BETHREADS
#include "boost_has_bethreads.ipp"
#else
namespace boost_has_bethreads = empty_boost;
#endif
#ifdef BOOST_HAS_CLOCK_GETTIME
#include "boost_has_clock_gettime.ipp"
#else
namespace boost_has_clock_gettime = empty_boost;
#endif
#ifdef BOOST_HAS_DIRENT_H
#include "boost_has_dirent_h.ipp"
#else
namespace boost_has_dirent_h = empty_boost;
#endif
#ifdef BOOST_HAS_EXPM1
#include "boost_has_expm1.ipp"
#else
namespace boost_has_expm1 = empty_boost;
#endif
#ifdef BOOST_HAS_FTIME
#include "boost_has_ftime.ipp"
#else
namespace boost_has_ftime = empty_boost;
#endif
#ifdef BOOST_HAS_GETSYSTEMTIMEASFILETIME
#include "boost_has_getsystemtimeasfiletime.ipp"
#else
namespace boost_has_getsystemtimeasfiletime = empty_boost;
#endif
#ifdef BOOST_HAS_GETTIMEOFDAY
#include "boost_has_gettimeofday.ipp"
#else
namespace boost_has_gettimeofday = empty_boost;
#endif
#ifdef BOOST_HAS_HASH
#include "boost_has_hash.ipp"
#else
namespace boost_has_hash = empty_boost;
#endif
#ifdef BOOST_HAS_INT128
#include "boost_has_int128.ipp"
#else
namespace boost_has_int128 = empty_boost;
#endif
#ifdef BOOST_HAS_LOG1P
#include "boost_has_log1p.ipp"
#else
namespace boost_has_log1p = empty_boost;
#endif
#ifdef BOOST_HAS_LONG_LONG
#include "boost_has_long_long.ipp"
#else
namespace boost_has_long_long = empty_boost;
#endif
#ifdef BOOST_HAS_MACRO_USE_FACET
#include "boost_has_macro_use_facet.ipp"
#else
namespace boost_has_macro_use_facet = empty_boost;
#endif
#ifdef BOOST_HAS_MS_INT64
#include "boost_has_ms_int64.ipp"
#else
namespace boost_has_ms_int64 = empty_boost;
#endif
#ifdef BOOST_HAS_NANOSLEEP
#include "boost_has_nanosleep.ipp"
#else
namespace boost_has_nanosleep = empty_boost;
#endif
#ifdef BOOST_HAS_NL_TYPES_H
#include "boost_has_nl_types_h.ipp"
#else
namespace boost_has_nl_types_h = empty_boost;
#endif
#ifdef BOOST_HAS_NRVO
#include "boost_has_nrvo.ipp"
#else
namespace boost_has_nrvo = empty_boost;
#endif
#ifdef BOOST_HAS_PARTIAL_STD_ALLOCATOR
#include "boost_has_part_alloc.ipp"
#else
namespace boost_has_partial_std_allocator = empty_boost;
#endif
#ifdef BOOST_HAS_PTHREAD_DELAY_NP
#include "boost_has_pthread_delay_np.ipp"
#else
namespace boost_has_pthread_delay_np = empty_boost;
#endif
#ifdef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
#include "boost_has_pthread_ma_st.ipp"
#else
namespace boost_has_pthread_mutexattr_settype = empty_boost;
#endif
#ifdef BOOST_HAS_PTHREAD_YIELD
#include "boost_has_pthread_yield.ipp"
#else
namespace boost_has_pthread_yield = empty_boost;
#endif
#ifdef BOOST_HAS_PTHREADS
#include "boost_has_pthreads.ipp"
#else
namespace boost_has_pthreads = empty_boost;
#endif
#ifdef BOOST_HAS_RVALUE_REFS
#include "boost_has_rvalue_refs.ipp"
#else
namespace boost_has_rvalue_refs = empty_boost;
#endif
#ifdef BOOST_HAS_SCHED_YIELD
#include "boost_has_sched_yield.ipp"
#else
namespace boost_has_sched_yield = empty_boost;
#endif
#ifdef BOOST_HAS_SGI_TYPE_TRAITS
#include "boost_has_sgi_type_traits.ipp"
#else
namespace boost_has_sgi_type_traits = empty_boost;
#endif
#ifdef BOOST_HAS_SIGACTION
#include "boost_has_sigaction.ipp"
#else
namespace boost_has_sigaction = empty_boost;
#endif
#ifdef BOOST_HAS_SLIST
#include "boost_has_slist.ipp"
#else
namespace boost_has_slist = empty_boost;
#endif
#ifdef BOOST_HAS_STATIC_ASSERT
#include "boost_has_static_assert.ipp"
#else
namespace boost_has_static_assert = empty_boost;
#endif
#ifdef BOOST_HAS_STDINT_H
#include "boost_has_stdint_h.ipp"
#else
namespace boost_has_stdint_h = empty_boost;
#endif
#ifdef BOOST_HAS_STLP_USE_FACET
#include "boost_has_stlp_use_facet.ipp"
#else
namespace boost_has_stlp_use_facet = empty_boost;
#endif
#ifdef BOOST_HAS_TR1_ARRAY
#include "boost_has_tr1_array.ipp"
#else
namespace boost_has_tr1_array = empty_boost;
#endif
#ifdef BOOST_HAS_TR1_BIND
#include "boost_has_tr1_bind.ipp"
#else
namespace boost_has_tr1_bind = empty_boost;
#endif
#ifdef BOOST_HAS_TR1_COMPLEX_OVERLOADS
#include "boost_has_tr1_complex_over.ipp"
#else
namespace boost_has_tr1_complex_overloads = empty_boost;
#endif
#ifdef BOOST_HAS_TR1_COMPLEX_INVERSE_TRIG
#include "boost_has_tr1_complex_trig.ipp"
#else
namespace boost_has_tr1_complex_inverse_trig = empty_boost;
#endif
#ifdef BOOST_HAS_TR1_FUNCTION
#include "boost_has_tr1_function.ipp"
#else
namespace boost_has_tr1_function = empty_boost;
#endif
#ifdef BOOST_HAS_TR1_HASH
#include "boost_has_tr1_hash.ipp"
#else
namespace boost_has_tr1_hash = empty_boost;
#endif
#ifdef BOOST_HAS_TR1_MEM_FN
#include "boost_has_tr1_mem_fn.ipp"
#else
namespace boost_has_tr1_mem_fn = empty_boost;
#endif
#ifdef BOOST_HAS_TR1_RANDOM
#include "boost_has_tr1_random.ipp"
#else
namespace boost_has_tr1_random = empty_boost;
#endif
#ifdef BOOST_HAS_TR1_REFERENCE_WRAPPER
#include "boost_has_tr1_ref_wrap.ipp"
#else
namespace boost_has_tr1_reference_wrapper = empty_boost;
#endif
#ifdef BOOST_HAS_TR1_REGEX
#include "boost_has_tr1_regex.ipp"
#else
namespace boost_has_tr1_regex = empty_boost;
#endif
#ifdef BOOST_HAS_TR1_RESULT_OF
#include "boost_has_tr1_result_of.ipp"
#else
namespace boost_has_tr1_result_of = empty_boost;
#endif
#ifdef BOOST_HAS_TR1_SHARED_PTR
#include "boost_has_tr1_shared_ptr.ipp"
#else
namespace boost_has_tr1_shared_ptr = empty_boost;
#endif
#ifdef BOOST_HAS_TR1_TUPLE
#include "boost_has_tr1_tuple.ipp"
#else
namespace boost_has_tr1_tuple = empty_boost;
#endif
#ifdef BOOST_HAS_TR1_TYPE_TRAITS
#include "boost_has_tr1_type_traits.ipp"
#else
namespace boost_has_tr1_type_traits = empty_boost;
#endif
#ifdef BOOST_HAS_TR1_UNORDERED_MAP
#include "boost_has_tr1_unordered_map.ipp"
#else
namespace boost_has_tr1_unordered_map = empty_boost;
#endif
#ifdef BOOST_HAS_TR1_UNORDERED_SET
#include "boost_has_tr1_unordered_set.ipp"
#else
namespace boost_has_tr1_unordered_set = empty_boost;
#endif
#ifdef BOOST_HAS_TR1_UTILITY
#include "boost_has_tr1_utility.ipp"
#else
namespace boost_has_tr1_utility = empty_boost;
#endif
#ifdef BOOST_HAS_UNISTD_H
#include "boost_has_unistd_h.ipp"
#else
namespace boost_has_unistd_h = empty_boost;
#endif
#ifdef BOOST_HAS_VARIADIC_TMPL
#include "boost_has_variadic_tmpl.ipp"
#else
namespace boost_has_variadic_tmpl = empty_boost;
#endif
#ifdef BOOST_MSVC6_MEMBER_TEMPLATES
#include "boost_has_vc6_mem_templ.ipp"
#else
namespace boost_msvc6_member_templates = empty_boost;
#endif
#ifdef BOOST_MSVC_STD_ITERATOR
#include "boost_has_vc_iterator.ipp"
#else
namespace boost_msvc_std_iterator = empty_boost;
#endif
#ifdef BOOST_HAS_WINTHREADS
#include "boost_has_winthreads.ipp"
#else
namespace boost_has_winthreads = empty_boost;
#endif
int main( int, char *[] )
{
if(0 != boost_has_two_arg_use_facet::test())
{
std::cerr << "Failed test for BOOST_HAS_TWO_ARG_USE_FACET at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_bethreads::test())
{
std::cerr << "Failed test for BOOST_HAS_BETHREADS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_clock_gettime::test())
{
std::cerr << "Failed test for BOOST_HAS_CLOCK_GETTIME at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_dirent_h::test())
{
std::cerr << "Failed test for BOOST_HAS_DIRENT_H at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_expm1::test())
{
std::cerr << "Failed test for BOOST_HAS_EXPM1 at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_ftime::test())
{
std::cerr << "Failed test for BOOST_HAS_FTIME at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_getsystemtimeasfiletime::test())
{
std::cerr << "Failed test for BOOST_HAS_GETSYSTEMTIMEASFILETIME at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_gettimeofday::test())
{
std::cerr << "Failed test for BOOST_HAS_GETTIMEOFDAY at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_hash::test())
{
std::cerr << "Failed test for BOOST_HAS_HASH at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_int128::test())
{
std::cerr << "Failed test for BOOST_HAS_INT128 at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_log1p::test())
{
std::cerr << "Failed test for BOOST_HAS_LOG1P at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_long_long::test())
{
std::cerr << "Failed test for BOOST_HAS_LONG_LONG at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_macro_use_facet::test())
{
std::cerr << "Failed test for BOOST_HAS_MACRO_USE_FACET at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_ms_int64::test())
{
std::cerr << "Failed test for BOOST_HAS_MS_INT64 at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_nanosleep::test())
{
std::cerr << "Failed test for BOOST_HAS_NANOSLEEP at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_nl_types_h::test())
{
std::cerr << "Failed test for BOOST_HAS_NL_TYPES_H at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_nrvo::test())
{
std::cerr << "Failed test for BOOST_HAS_NRVO at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_partial_std_allocator::test())
{
std::cerr << "Failed test for BOOST_HAS_PARTIAL_STD_ALLOCATOR at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_pthread_delay_np::test())
{
std::cerr << "Failed test for BOOST_HAS_PTHREAD_DELAY_NP at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_pthread_mutexattr_settype::test())
{
std::cerr << "Failed test for BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_pthread_yield::test())
{
std::cerr << "Failed test for BOOST_HAS_PTHREAD_YIELD at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_pthreads::test())
{
std::cerr << "Failed test for BOOST_HAS_PTHREADS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_rvalue_refs::test())
{
std::cerr << "Failed test for BOOST_HAS_RVALUE_REFS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_sched_yield::test())
{
std::cerr << "Failed test for BOOST_HAS_SCHED_YIELD at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_sgi_type_traits::test())
{
std::cerr << "Failed test for BOOST_HAS_SGI_TYPE_TRAITS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_sigaction::test())
{
std::cerr << "Failed test for BOOST_HAS_SIGACTION at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_slist::test())
{
std::cerr << "Failed test for BOOST_HAS_SLIST at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_static_assert::test())
{
std::cerr << "Failed test for BOOST_HAS_STATIC_ASSERT at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_stdint_h::test())
{
std::cerr << "Failed test for BOOST_HAS_STDINT_H at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_stlp_use_facet::test())
{
std::cerr << "Failed test for BOOST_HAS_STLP_USE_FACET at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_tr1_array::test())
{
std::cerr << "Failed test for BOOST_HAS_TR1_ARRAY at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_tr1_bind::test())
{
std::cerr << "Failed test for BOOST_HAS_TR1_BIND at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_tr1_complex_overloads::test())
{
std::cerr << "Failed test for BOOST_HAS_TR1_COMPLEX_OVERLOADS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_tr1_complex_inverse_trig::test())
{
std::cerr << "Failed test for BOOST_HAS_TR1_COMPLEX_INVERSE_TRIG at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_tr1_function::test())
{
std::cerr << "Failed test for BOOST_HAS_TR1_FUNCTION at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_tr1_hash::test())
{
std::cerr << "Failed test for BOOST_HAS_TR1_HASH at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_tr1_mem_fn::test())
{
std::cerr << "Failed test for BOOST_HAS_TR1_MEM_FN at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_tr1_random::test())
{
std::cerr << "Failed test for BOOST_HAS_TR1_RANDOM at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_tr1_reference_wrapper::test())
{
std::cerr << "Failed test for BOOST_HAS_TR1_REFERENCE_WRAPPER at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_tr1_regex::test())
{
std::cerr << "Failed test for BOOST_HAS_TR1_REGEX at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_tr1_result_of::test())
{
std::cerr << "Failed test for BOOST_HAS_TR1_RESULT_OF at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_tr1_shared_ptr::test())
{
std::cerr << "Failed test for BOOST_HAS_TR1_SHARED_PTR at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_tr1_tuple::test())
{
std::cerr << "Failed test for BOOST_HAS_TR1_TUPLE at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_tr1_type_traits::test())
{
std::cerr << "Failed test for BOOST_HAS_TR1_TYPE_TRAITS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_tr1_unordered_map::test())
{
std::cerr << "Failed test for BOOST_HAS_TR1_UNORDERED_MAP at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_tr1_unordered_set::test())
{
std::cerr << "Failed test for BOOST_HAS_TR1_UNORDERED_SET at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_tr1_utility::test())
{
std::cerr << "Failed test for BOOST_HAS_TR1_UTILITY at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_unistd_h::test())
{
std::cerr << "Failed test for BOOST_HAS_UNISTD_H at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_variadic_tmpl::test())
{
std::cerr << "Failed test for BOOST_HAS_VARIADIC_TMPL at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_msvc6_member_templates::test())
{
std::cerr << "Failed test for BOOST_MSVC6_MEMBER_TEMPLATES at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_msvc_std_iterator::test())
{
std::cerr << "Failed test for BOOST_MSVC_STD_ITERATOR at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_has_winthreads::test())
{
std::cerr << "Failed test for BOOST_HAS_WINTHREADS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_adl_barrier::test())
{
std::cerr << "Failed test for BOOST_NO_ADL_BARRIER at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_argument_dependent_lookup::test())
{
std::cerr << "Failed test for BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_array_type_specializations::test())
{
std::cerr << "Failed test for BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_auto_declarations::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_AUTO_DECLARATIONS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_auto_multideclarations::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_auto_ptr::test())
{
std::cerr << "Failed test for BOOST_NO_AUTO_PTR at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_bcb_partial_specialization_bug::test())
{
std::cerr << "Failed test for BOOST_BCB_PARTIAL_SPECIALIZATION_BUG at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_char16_t::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_CHAR16_T at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_char32_t::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_CHAR32_T at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_complete_value_initialization::test())
{
std::cerr << "Failed test for BOOST_NO_COMPLETE_VALUE_INITIALIZATION at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_constexpr::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_CONSTEXPR at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_ctype_functions::test())
{
std::cerr << "Failed test for BOOST_NO_CTYPE_FUNCTIONS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cv_specializations::test())
{
std::cerr << "Failed test for BOOST_NO_CV_SPECIALIZATIONS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cv_void_specializations::test())
{
std::cerr << "Failed test for BOOST_NO_CV_VOID_SPECIALIZATIONS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cwchar::test())
{
std::cerr << "Failed test for BOOST_NO_CWCHAR at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cwctype::test())
{
std::cerr << "Failed test for BOOST_NO_CWCTYPE at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_addressof::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_ADDRESSOF at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_alignas::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_ALIGNAS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_allocator::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_ALLOCATOR at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_atomic_smart_ptr::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_ATOMIC_SMART_PTR at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_final::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_FINAL at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_hdr_array::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_HDR_ARRAY at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_hdr_atomic::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_HDR_ATOMIC at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_hdr_chrono::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_HDR_CHRONO at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_hdr_codecvt::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_HDR_CODECVT at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_hdr_condition_variable::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_HDR_CONDITION_VARIABLE at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_hdr_forward_list::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_HDR_FORWARD_LIST at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_hdr_future::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_HDR_FUTURE at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_hdr_initializer_list::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_HDR_INITIALIZER_LIST at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_hdr_mutex::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_HDR_MUTEX at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_hdr_random::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_HDR_RANDOM at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_hdr_ratio::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_HDR_RATIO at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_hdr_regex::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_HDR_REGEX at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_hdr_system_error::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_HDR_SYSTEM_ERROR at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_hdr_thread::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_HDR_THREAD at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_hdr_tuple::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_HDR_TUPLE at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_hdr_type_traits::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_HDR_TYPE_TRAITS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_hdr_typeindex::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_HDR_TYPEINDEX at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_hdr_unordered_map::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_HDR_UNORDERED_MAP at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_hdr_unordered_set::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_HDR_UNORDERED_SET at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_inline_namespaces::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_INLINE_NAMESPACES at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_non_public_defaulted_functions::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_numeric_limits::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_NUMERIC_LIMITS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_ref_qualifiers::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_REF_QUALIFIERS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_smart_ptr::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_SMART_PTR at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_std_align::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_STD_ALIGN at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_trailing_result_types::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_TRAILING_RESULT_TYPES at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_user_defined_literals::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_USER_DEFINED_LITERALS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx14_binary_literals::test())
{
std::cerr << "Failed test for BOOST_NO_CXX14_BINARY_LITERALS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx14_constexpr::test())
{
std::cerr << "Failed test for BOOST_NO_CXX14_CONSTEXPR at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx14_decltype_auto::test())
{
std::cerr << "Failed test for BOOST_NO_CXX14_DECLTYPE_AUTO at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx14_digit_separator::test())
{
std::cerr << "Failed test for BOOST_NO_CXX14_DIGIT_SEPARATOR at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx14_generic_lambdas::test())
{
std::cerr << "Failed test for BOOST_NO_CXX14_GENERIC_LAMBDAS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx14_initialized_lambda_captures::test())
{
std::cerr << "Failed test for BOOST_NO_CXX14_INITIALIZED_LAMBDA_CAPTURES at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx14_aggregate_nsdmi::test())
{
std::cerr << "Failed test for BOOST_NO_CXX14_AGGREGATE_NSDMI at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx14_return_type_deduction::test())
{
std::cerr << "Failed test for BOOST_NO_CXX14_RETURN_TYPE_DEDUCTION at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx14_variable_templates::test())
{
std::cerr << "Failed test for BOOST_NO_CXX14_VARIABLE_TEMPLATES at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_hdr_functional::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_HDR_FUNCTIONAL at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_decltype::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_DECLTYPE at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_decltype_n3276::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_DECLTYPE_N3276 at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_deduced_typename::test())
{
std::cerr << "Failed test for BOOST_DEDUCED_TYPENAME at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_defaulted_functions::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_DEFAULTED_FUNCTIONS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_deleted_functions::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_DELETED_FUNCTIONS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_dependent_nested_derivations::test())
{
std::cerr << "Failed test for BOOST_NO_DEPENDENT_NESTED_DERIVATIONS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_dependent_types_in_template_value_parameters::test())
{
std::cerr << "Failed test for BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_exception_std_namespace::test())
{
std::cerr << "Failed test for BOOST_NO_EXCEPTION_STD_NAMESPACE at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_exceptions::test())
{
std::cerr << "Failed test for BOOST_NO_EXCEPTIONS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_explicit_function_template_arguments::test())
{
std::cerr << "Failed test for BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_explicit_conversion_operators::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_extern_template::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_EXTERN_TEMPLATE at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_fenv_h::test())
{
std::cerr << "Failed test for BOOST_NO_FENV_H at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_fixed_length_variadic_template_expansion_packs::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_FIXED_LENGTH_VARIADIC_TEMPLATE_EXPANSION_PACKS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_function_template_ordering::test())
{
std::cerr << "Failed test for BOOST_NO_FUNCTION_TEMPLATE_ORDERING at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_function_template_default_args::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_function_type_specializations::test())
{
std::cerr << "Failed test for BOOST_NO_FUNCTION_TYPE_SPECIALIZATIONS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_ms_int64_numeric_limits::test())
{
std::cerr << "Failed test for BOOST_NO_MS_INT64_NUMERIC_LIMITS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_inclass_member_initialization::test())
{
std::cerr << "Failed test for BOOST_NO_INCLASS_MEMBER_INITIALIZATION at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_integral_int64_t::test())
{
std::cerr << "Failed test for BOOST_NO_INTEGRAL_INT64_T at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_iosfwd::test())
{
std::cerr << "Failed test for BOOST_NO_IOSFWD at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_iostream::test())
{
std::cerr << "Failed test for BOOST_NO_IOSTREAM at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_is_abstract::test())
{
std::cerr << "Failed test for BOOST_NO_IS_ABSTRACT at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_templated_iterator_constructors::test())
{
std::cerr << "Failed test for BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_lambdas::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_LAMBDAS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_limits::test())
{
std::cerr << "Failed test for BOOST_NO_LIMITS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_limits_compile_time_constants::test())
{
std::cerr << "Failed test for BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_long_long_numeric_limits::test())
{
std::cerr << "Failed test for BOOST_NO_LONG_LONG_NUMERIC_LIMITS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_long_long::test())
{
std::cerr << "Failed test for BOOST_NO_LONG_LONG at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_member_function_specializations::test())
{
std::cerr << "Failed test for BOOST_NO_MEMBER_FUNCTION_SPECIALIZATIONS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_member_template_keyword::test())
{
std::cerr << "Failed test for BOOST_NO_MEMBER_TEMPLATE_KEYWORD at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_pointer_to_member_template_parameters::test())
{
std::cerr << "Failed test for BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_member_template_friends::test())
{
std::cerr << "Failed test for BOOST_NO_MEMBER_TEMPLATE_FRIENDS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_member_templates::test())
{
std::cerr << "Failed test for BOOST_NO_MEMBER_TEMPLATES at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_nested_friendship::test())
{
std::cerr << "Failed test for BOOST_NO_NESTED_FRIENDSHIP at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_noexcept::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_NOEXCEPT at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_nullptr::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_NULLPTR at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_operators_in_namespace::test())
{
std::cerr << "Failed test for BOOST_NO_OPERATORS_IN_NAMESPACE at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_partial_specialization_implicit_default_args::test())
{
std::cerr << "Failed test for BOOST_NO_PARTIAL_SPECIALIZATION_IMPLICIT_DEFAULT_ARGS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_template_partial_specialization::test())
{
std::cerr << "Failed test for BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_private_in_aggregate::test())
{
std::cerr << "Failed test for BOOST_NO_PRIVATE_IN_AGGREGATE at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_pointer_to_member_const::test())
{
std::cerr << "Failed test for BOOST_NO_POINTER_TO_MEMBER_CONST at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_range_based_for::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_RANGE_BASED_FOR at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_raw_literals::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_RAW_LITERALS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_unreachable_return_detection::test())
{
std::cerr << "Failed test for BOOST_NO_UNREACHABLE_RETURN_DETECTION at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_rtti::test())
{
std::cerr << "Failed test for BOOST_NO_RTTI at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_rvalue_references::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_RVALUE_REFERENCES at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_scoped_enums::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_SCOPED_ENUMS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_sfinae::test())
{
std::cerr << "Failed test for BOOST_NO_SFINAE at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_sfinae_expr::test())
{
std::cerr << "Failed test for BOOST_NO_SFINAE_EXPR at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_stringstream::test())
{
std::cerr << "Failed test for BOOST_NO_STRINGSTREAM at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_static_assert::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_STATIC_ASSERT at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_std_allocator::test())
{
std::cerr << "Failed test for BOOST_NO_STD_ALLOCATOR at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_std_distance::test())
{
std::cerr << "Failed test for BOOST_NO_STD_DISTANCE at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_std_iterator_traits::test())
{
std::cerr << "Failed test for BOOST_NO_STD_ITERATOR_TRAITS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_std_iterator::test())
{
std::cerr << "Failed test for BOOST_NO_STD_ITERATOR at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_std_locale::test())
{
std::cerr << "Failed test for BOOST_NO_STD_LOCALE at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_std_messages::test())
{
std::cerr << "Failed test for BOOST_NO_STD_MESSAGES at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_std_min_max::test())
{
std::cerr << "Failed test for BOOST_NO_STD_MIN_MAX at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_std_output_iterator_assign::test())
{
std::cerr << "Failed test for BOOST_NO_STD_OUTPUT_ITERATOR_ASSIGN at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_std_typeinfo::test())
{
std::cerr << "Failed test for BOOST_NO_STD_TYPEINFO at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_std_use_facet::test())
{
std::cerr << "Failed test for BOOST_NO_STD_USE_FACET at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_std_wstreambuf::test())
{
std::cerr << "Failed test for BOOST_NO_STD_WSTREAMBUF at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_std_wstring::test())
{
std::cerr << "Failed test for BOOST_NO_STD_WSTRING at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_stdc_namespace::test())
{
std::cerr << "Failed test for BOOST_NO_STDC_NAMESPACE at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_swprintf::test())
{
std::cerr << "Failed test for BOOST_NO_SWPRINTF at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_local_class_template_parameters::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_template_aliases::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_TEMPLATE_ALIASES at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_templated_iostreams::test())
{
std::cerr << "Failed test for BOOST_NO_TEMPLATED_IOSTREAMS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_template_templates::test())
{
std::cerr << "Failed test for BOOST_NO_TEMPLATE_TEMPLATES at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_two_phase_name_lookup::test())
{
std::cerr << "Failed test for BOOST_NO_TWO_PHASE_NAME_LOOKUP at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_typeid::test())
{
std::cerr << "Failed test for BOOST_NO_TYPEID at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_typename_with_ctor::test())
{
std::cerr << "Failed test for BOOST_NO_TYPENAME_WITH_CTOR at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_unicode_literals::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_UNICODE_LITERALS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_unified_initialization_syntax::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_function_scope_using_declaration_breaks_adl::test())
{
std::cerr << "Failed test for BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_using_declaration_overloads_from_typename_base::test())
{
std::cerr << "Failed test for BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_using_template::test())
{
std::cerr << "Failed test for BOOST_NO_USING_TEMPLATE at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_variadic_macros::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_VARIADIC_MACROS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_cxx11_variadic_templates::test())
{
std::cerr << "Failed test for BOOST_NO_CXX11_VARIADIC_TEMPLATES at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_void_returns::test())
{
std::cerr << "Failed test for BOOST_NO_VOID_RETURNS at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
if(0 != boost_no_intrinsic_wchar_t::test())
{
std::cerr << "Failed test for BOOST_NO_INTRINSIC_WCHAR_T at: " << __FILE__ << ":" << __LINE__ << std::endl;
++error_count;
}
return error_count;
}
| {
"content_hash": "a8f07b54036c685ae28d52916aa191d5",
"timestamp": "",
"source": "github",
"line_count": 1929,
"max_line_length": 148,
"avg_line_length": 33.37532400207361,
"alnum_prop": 0.6293005700439571,
"repo_name": "aspectron/jsx",
"id": "5af882395085f0ec09390a61d6768dcea32076fa",
"size": "65100",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "extern/boost/libs/config/test/config_test.cpp",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Assembly",
"bytes": "1021"
},
{
"name": "Batchfile",
"bytes": "3660"
},
{
"name": "C",
"bytes": "36314"
},
{
"name": "C++",
"bytes": "665660"
},
{
"name": "CSS",
"bytes": "118318"
},
{
"name": "Emacs Lisp",
"bytes": "13142"
},
{
"name": "Groff",
"bytes": "2072"
},
{
"name": "HTML",
"bytes": "119878"
},
{
"name": "JavaScript",
"bytes": "744690"
},
{
"name": "Makefile",
"bytes": "208"
},
{
"name": "Objective-C",
"bytes": "7705"
},
{
"name": "Objective-C++",
"bytes": "1857"
},
{
"name": "Python",
"bytes": "2105398"
},
{
"name": "Shell",
"bytes": "12994"
}
],
"symlink_target": ""
} |
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/elimina"
android:title="@string/dialog_remove_title" />
<!-- menu group
<group android:id="@+id/group1">
<item android:id="@+id/groupItem1"
android:title="@string/groupItem1" />
<item android:id="@+id/groupItem2"
android:title="@string/groupItem2" />
</group> -->
</menu> | {
"content_hash": "a5c98d39ea0f9ddf8a2356adbe49cf35",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 65,
"avg_line_length": 34.285714285714285,
"alnum_prop": 0.5770833333333333,
"repo_name": "souliss/soulissapp",
"id": "f46a1e90794c6720e0a9cc0ee899cb7d26455d17",
"size": "480",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "SoulissApp/src/main/res/menu/programs_ctx_menu.xml",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "1539350"
}
],
"symlink_target": ""
} |
This Docker image features
- backup files to Amazon S3 (including tar & gzip)
- restore a backup
- optional: encrypt the backup file before uploading to S3 / decrypt after downloading from S3
## Backup
tar & gzip files in volume "/data", upload to S3 bucket
docker run --rm \
-v /var/myapp/data:/data:ro \
-e AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE \
-e AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY \
-e S3_PATH=s3://mybucket/myapp/ \
rori/backup-to-s3 \
backup
If you want to encrypt the backup file, additionally provide the following 2 parameters
...
-v /mykeys:/gpgkey \
-e GPGKEY_FILE=/gpgkey/public.key \
...
The environment variable GPGKEY_FILE refers to your public GPG key. Therefore you have to provide a Docker volume /gpgkey, containing your public key.
## Restore
Download from S3 bucket, un-gzip & untar files to volume "/data"
docker run --rm \
-v /var/myapp/data:/data \
-e AWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE \
-e AWS_SECRET_ACCESS_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY \
-e S3_PATH=s3://mybucket/myapp/2016-01-23_22-40-42.tar.gz.gpg \
rori/backup-to-s3 \
restore
The environment variable S3_PATH refers to the backup file in your S3 bucket.
If you want to decrypt the backup, please provide 3 additional parameters:
...
-v /mykeys/private:/gpgkey \
-e GPGKEY_FILE=/gpgkey/private.key \
-it \
...
The environment variable GPGKEY_FILE refers to your private GPG key. Therefore you have to provide a Docker volume /gpgkey, containing the private key. The container will ask for your private key passphrase.
If you don't like the fact, that a Docker container uses your private key, just run the command without the decrypt parameters and decrypt, un-gzip & untar the backup file yourself. The container won't be offended :-)
# Periodic backups
The image does not run periodic backups itself. You can achieve this by running cron jobs or systemd timers.
| {
"content_hash": "e582b125bef4e2f2d6e59da8b5c20305",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 217,
"avg_line_length": 36.96363636363636,
"alnum_prop": 0.7137235612395475,
"repo_name": "rori-dev/backup-to-s3",
"id": "84e944b124ff43f5ea6ea83d1f071cdeab792e06",
"size": "2048",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Shell",
"bytes": "2045"
}
],
"symlink_target": ""
} |
from __future__ import absolute_import
import ast
# ============= standard library imports ========================
import os
import six
import yaml
from traits.api import Int, on_trait_change, Str, Property, cached_property, \
Float, Bool, HasTraits, Instance, TraitError, Button, List, Enum
from traitsui.api import View, Item, EnumEditor, VGroup, HGroup, CheckListEditor
# ============= local library imports ==========================
from pychron.core.helpers.ctx_managers import no_update
from pychron.core.helpers.filetools import glob_list_directory
from pychron.core.ui.qt.combobox_editor import ComboboxEditor
from pychron.core.yaml import yload
from pychron.envisage.icon_button_editor import icon_button_editor
from pychron.paths import paths
from pychron.pychron_constants import QTEGRA_INTEGRATION_TIMES
from pychron.pyscripts.context_editors.context_editor import ContextEditor
from pychron.pyscripts.hops_editor import HopEditorModel, HopEditorView
class YamlObject(HasTraits):
name = ''
excludes = None
def load(self, ctx):
try:
for k, v in ctx[self.name].items():
setattr(self, k, v)
ctx.pop(self.name)
except (KeyError, TraitError):
pass
def dump(self):
def get(k):
v = getattr(self, k)
if isinstance(v, six.text_type):
v = str(v)
elif hasattr(v, '__iter__'):
v = list(v)
return v
excludes = ['trait_added', 'trait_modified', 'name']
if self.excludes:
excludes += self.excludes
return {k: get(k)
for k in self.trait_names() if not k in excludes}
class IsotopeDetectorObject(YamlObject):
isotope = Str(enter_set=True, auto_set=False)
detector = Str(enter_set=True, auto_set=False)
# available_detectors = List
# isotopes = List
# excludes = ['detectors','isotopes']
class Multicollect(IsotopeDetectorObject):
name = 'multicollect'
counts = Int(enter_set=True, auto_set=False)
class Baseline(YamlObject):
name = 'baseline'
detector = Str(enter_set=True, auto_set=False)
mass = Float(enter_set=True, auto_set=False)
counts = Int(enter_set=True, auto_set=False)
before = Bool
after = Bool
settling_time = Float(enter_set=True, auto_set=False)
class PeakCenter(IsotopeDetectorObject):
name = 'peakcenter'
before = Bool
after = Bool
detectors = List
integration_time = Enum(QTEGRA_INTEGRATION_TIMES)
class Equilibration(YamlObject):
name = 'equilibration'
inlet = Str(enter_set=True, auto_set=False)
outlet = Str(enter_set=True, auto_set=False)
inlet_delay = Int(enter_set=True, auto_set=False)
use_extraction_eqtime = Bool
eqtime = Float(enter_set=True, auto_set=False)
class PeakHop(YamlObject):
name = 'peakhop'
use_peak_hop = Bool
hops_name = Str
ncycles = Int
generate_ic_table = Bool
class MeasurementContextEditor(ContextEditor):
# context values
multicollect = Instance(Multicollect, ())
baseline = Instance(Baseline, ())
peakcenter = Instance(PeakCenter, ())
equilibration = Instance(Equilibration, ())
peakhop = Instance(PeakHop, ())
# general
default_fits = Str(enter_set=True, auto_set=False)
available_default_fits = Property
available_hops = Property
edit_peakhop_button = Button
valves = List
available_detectors = List
isotopes = List
_octx = None
# persistence
def load(self, s):
with no_update(self):
try:
s = self._extract_docstring(s)
except SyntaxError:
return
if s:
try:
ctx = yload(s)
except yaml.YAMLError:
return
self.multicollect.load(ctx)
self.baseline.load(ctx)
self.peakcenter.load(ctx)
# self.multicollect.detectors = self.detectors
# self.multicollect.isotopes = self.isotopes
# self.peakcenter.detectors = self.detectors
# self.peakcenter.isotopes = self.isotopes
self.equilibration.load(ctx)
self.peakhop.load(ctx)
self.default_fits = ctx.get('default_fits', '')
self._octx = ctx
def dump(self):
ctx = dict(default_fits=self.default_fits,
multicollect=self.multicollect.dump(),
baseline=self.baseline.dump(),
peakcenter=self.peakcenter.dump(),
equilibration=self.equilibration.dump(),
peakhop=self.peakhop.dump())
if self._octx:
ctx.update(self._octx)
return yaml.dump(ctx, default_flow_style=False)
def generate_docstr(self):
def gen():
yield "'''"
for di in reversed(self.dump().split('\n')):
if di.strip():
yield di
yield "'''"
return list(gen())
def _extract_docstring(self, s):
m = ast.parse(s)
return ast.get_docstring(m)
def _edit_peakhop_button_fired(self):
name = self.peakhop.hops_name
if name:
p = os.path.join(paths.measurement_dir, 'hops', '{}.txt'.format(name))
pem = HopEditorModel()
pem.open(p)
pev = HopEditorView(model=pem)
pev.edit_traits(kind='livemodal')
def _use_extraction_eqtime_changed(self, new):
if new:
self.equilibration.eqtime = 'eqtime'
else:
self.equilibration.eqtime = 15
@on_trait_change('peakhop:+, multicollect:+, baseline:+, peakcenter:+, equilibration:+, default_fits')
def request_update(self):
if self._no_update:
return
self.update_event = True
@cached_property
def _get_available_default_fits(self):
return glob_list_directory(paths.fits_dir, extension='.yaml', remove_extension=True)
@cached_property
def _get_available_hops(self):
return glob_list_directory(os.path.join(paths.measurement_dir, 'hops'),
extension='.txt', remove_extension=True)
def traits_view(self):
mc_grp = VGroup(HGroup(Item('object.multicollect.isotope',
editor=ComboboxEditor(name='isotopes')),
Item('object.multicollect.detector',
editor=ComboboxEditor(name='available_detectors'))),
Item('object.multicollect.counts'),
enabled_when='not object.peakhop.use_peak_hop',
show_border=True, label='Multicollect')
bs_grp = VGroup(HGroup(Item('object.baseline.mass'),
Item('object.baseline.detector',
editor=ComboboxEditor(name='available_detectors')),
Item('object.baseline.counts')),
HGroup(Item('object.baseline.before'),
Item('object.baseline.after')),
Item('object.baseline.settling_time', ),
show_border=True, label='Baseline')
pc_grp = VGroup(
HGroup(Item('object.peakcenter.isotope',
editor=ComboboxEditor(name='isotopes'),
label='Iso.'),
Item('object.peakcenter.detector',
label='Det.',
editor=ComboboxEditor(name='available_detectors'))),
Item('object.peakcenter.integration_time'),
HGroup(Item('object.peakcenter.before'),
Item('object.peakcenter.after')),
Item('object.peakcenter.detectors', style='custom',
editor=CheckListEditor(name='available_detectors', cols=max(1, len(self.available_detectors)))),
show_border=True, label='PeakCenter')
eq_grp = VGroup(HGroup(Item('object.equilibration.inlet',
editor=ComboboxEditor(name='valves')),
Item('object.equilibration.outlet',
editor=ComboboxEditor(name='valves'))),
Item('object.equilibration.inlet_delay'),
Item('object.equilibration.use_extraction_eqtime'),
Item('object.equilibration.eqtime',
enabled_when='not object.equilibration.use_extraction_eqtime',
label='Duration'),
show_border=True, label='Equilibration')
ph_grp = VGroup(Item('object.peakhop.use_peak_hop'),
Item('object.peakhop.ncycles'),
Item('object.peakhop.generate_ic_table'),
HGroup(Item('object.peakhop.hops_name',
label='Hops',
editor=EnumEditor(name='available_hops')),
icon_button_editor('edit_peakhop_button', 'cog',
enabled_when='object.peakhop.hops_name',
tooltip='Edit selected "Hops" file')),
show_border=True, label='Peak Hop')
gen_grp = VGroup(Item('default_fits',
editor=EnumEditor(name='available_default_fits')),
show_border=True, label='General')
# using VFold causing crash. just use VGroup for now
# v = View(VFold(gen_grp, mc_grp, bs_grp, pc_grp, eq_grp, ph_grp))
v = View(VGroup(gen_grp, ph_grp, mc_grp, bs_grp, pc_grp, eq_grp))
return v
# ============= EOF =============================================
| {
"content_hash": "b505d9e83d2d6b675a0b29c423db54d5",
"timestamp": "",
"source": "github",
"line_count": 273,
"max_line_length": 113,
"avg_line_length": 36.48717948717949,
"alnum_prop": 0.5541612287922899,
"repo_name": "UManPychron/pychron",
"id": "71ab0dee4ed52548ae9cce15a786c3f6aad90634",
"size": "10761",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "pychron/pyscripts/context_editors/measurement_context_editor.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "131"
},
{
"name": "C++",
"bytes": "3706"
},
{
"name": "CSS",
"bytes": "279"
},
{
"name": "Fortran",
"bytes": "455875"
},
{
"name": "HTML",
"bytes": "40346"
},
{
"name": "Mako",
"bytes": "412"
},
{
"name": "Processing",
"bytes": "11421"
},
{
"name": "Python",
"bytes": "10234954"
},
{
"name": "Shell",
"bytes": "10753"
}
],
"symlink_target": ""
} |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>ITKMultigridAnisotropicDiffusion: Main Page</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="mad-logo.png"/></td>
<td style="padding-left: 0.5em;">
<div id="projectname">ITKMultigridAnisotropicDiffusion
 <span id="projectnumber">1.0.0</span>
</div>
<div id="projectbrief">Implementation of an Anisotropic Diffusion filter, using Multigrid techniques</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li class="current"><a href="index.html"><span>Main Page</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Enumerations</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">ITKMultigridAnisotropicDiffusion Documentation</div> </div>
</div><!--header-->
<div class="contents">
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Sep 5 2014 09:34:51 for ITKMultigridAnisotropicDiffusion by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.2
</small></address>
</body>
</html>
| {
"content_hash": "0693517e9816413466e87a8dbf24b943",
"timestamp": "",
"source": "github",
"line_count": 90,
"max_line_length": 690,
"avg_line_length": 48.06666666666667,
"alnum_prop": 0.6715210355987055,
"repo_name": "nellogrb/MultigridAnisotropicDiffusion",
"id": "129fcd0eca7bd152d40277d4b0643c6b5725cd68",
"size": "4326",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "doc/html/index.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "9125"
},
{
"name": "C++",
"bytes": "122089"
},
{
"name": "CSS",
"bytes": "25159"
},
{
"name": "JavaScript",
"bytes": "29577"
},
{
"name": "TeX",
"bytes": "178806"
}
],
"symlink_target": ""
} |
package com.intellij.ide.projectView.impl.nodes;
import com.intellij.icons.AllIcons;
import com.intellij.ide.IdeBundle;
import com.intellij.ide.projectView.PresentationData;
import com.intellij.ide.projectView.ProjectViewNode;
import com.intellij.ide.projectView.ViewSettings;
import com.intellij.ide.util.treeView.AbstractTreeNode;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.projectRoots.Sdk;
import com.intellij.openapi.roots.LibraryOrderEntry;
import com.intellij.openapi.roots.ModuleExtensionWithSdkOrderEntry;
import com.intellij.openapi.roots.OrderEntry;
import com.intellij.openapi.roots.OrderRootType;
import com.intellij.openapi.roots.libraries.Library;
import com.intellij.openapi.roots.ui.CellAppearanceEx;
import com.intellij.openapi.roots.ui.ModifiableCellAppearanceEx;
import com.intellij.openapi.roots.ui.OrderEntryAppearanceService;
import com.intellij.openapi.roots.ui.configuration.libraries.LibraryPresentationManager;
import com.intellij.openapi.util.io.FileUtil;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vfs.VfsUtilCore;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.pom.NavigatableWithText;
import consulo.bundle.SdkUtil;
import consulo.roots.OrderEntryWithTracking;
import consulo.roots.orderEntry.OrderEntryType;
import consulo.roots.orderEntry.OrderEntryTypeEditor;
import consulo.ui.image.Image;
import javax.annotation.Nonnull;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
public class NamedLibraryElementNode extends ProjectViewNode<NamedLibraryElement> implements NavigatableWithText {
public NamedLibraryElementNode(Project project, NamedLibraryElement value, ViewSettings viewSettings) {
super(project, value, viewSettings);
}
@Override
@Nonnull
public Collection<AbstractTreeNode> getChildren() {
final List<AbstractTreeNode> children = new ArrayList<AbstractTreeNode>();
LibraryGroupNode.addLibraryChildren(getValue().getOrderEntry(), children, getProject(), this);
return children;
}
@Override
public String getTestPresentation() {
return "Library: " + getValue().getName();
}
@Override
public String getName() {
return getValue().getName();
}
@Override
public boolean contains(@Nonnull VirtualFile file) {
return orderEntryContainsFile(getValue().getOrderEntry(), file);
}
private static boolean orderEntryContainsFile(OrderEntry orderEntry, VirtualFile file) {
for (OrderRootType rootType : OrderRootType.getAllTypes()) {
if (containsFileInOrderType(orderEntry, rootType, file)) return true;
}
return false;
}
private static boolean containsFileInOrderType(final OrderEntry orderEntry, final OrderRootType orderType, final VirtualFile file) {
if (!orderEntry.isValid()) return false;
VirtualFile[] files = orderEntry.getFiles(orderType);
for (VirtualFile virtualFile : files) {
boolean ancestor = VfsUtilCore.isAncestor(virtualFile, file, false);
if (ancestor) return true;
}
return false;
}
@Override
public void update(PresentationData presentation) {
presentation.setPresentableText(getValue().getName());
final OrderEntry orderEntry = getValue().getOrderEntry();
if (orderEntry instanceof ModuleExtensionWithSdkOrderEntry) {
final ModuleExtensionWithSdkOrderEntry sdkOrderEntry = (ModuleExtensionWithSdkOrderEntry)orderEntry;
final Sdk sdk = sdkOrderEntry.getSdk();
presentation.setIcon(SdkUtil.getIcon(((ModuleExtensionWithSdkOrderEntry)orderEntry).getSdk()));
if (sdk != null) { //jdk not specified
final String path = sdk.getHomePath();
if (path != null) {
presentation.setLocationString(FileUtil.toSystemDependentName(path));
}
}
presentation.setTooltip(null);
}
else if (orderEntry instanceof LibraryOrderEntry) {
presentation.setIcon(getIconForLibrary(orderEntry));
presentation.setTooltip(StringUtil.capitalize(IdeBundle.message("node.projectview.library", ((LibraryOrderEntry)orderEntry).getLibraryLevel())));
}
else if(orderEntry instanceof OrderEntryWithTracking) {
Image icon = null;
CellAppearanceEx cellAppearance = OrderEntryAppearanceService.getInstance().forOrderEntry(orderEntry);
if(cellAppearance instanceof ModifiableCellAppearanceEx) {
icon = ((ModifiableCellAppearanceEx)cellAppearance).getIcon();
}
presentation.setIcon(icon == null ? AllIcons.Actions.Help : icon);
}
}
private static Image getIconForLibrary(OrderEntry orderEntry) {
if (orderEntry instanceof LibraryOrderEntry) {
Library library = ((LibraryOrderEntry)orderEntry).getLibrary();
if (library != null) {
return LibraryPresentationManager.getInstance().getNamedLibraryIcon(library, null);
}
}
return AllIcons.Nodes.PpLib;
}
@Override
@SuppressWarnings("unchecked")
public void navigate(final boolean requestFocus) {
OrderEntryType type = getValue().getOrderEntry().getType();
OrderEntryTypeEditor editor = OrderEntryTypeEditor.FACTORY.getByKey(type);
if(editor != null) {
editor.navigate(getValue().getOrderEntry());
}
}
@Override
public boolean canNavigate() {
return true;
}
@Override
public String getNavigateActionText(boolean focusEditor) {
return "Open Library Settings";
}
}
| {
"content_hash": "fde3369aaee10fca78f1becea156fb7a",
"timestamp": "",
"source": "github",
"line_count": 143,
"max_line_length": 151,
"avg_line_length": 37.84615384615385,
"alnum_prop": 0.7642276422764228,
"repo_name": "consulo/consulo",
"id": "cf0327c85f27d4abc2212df40d476d4ad59559e9",
"size": "6012",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "modules/base/lang-impl/src/main/java/com/intellij/ide/projectView/impl/nodes/NamedLibraryElementNode.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "299"
},
{
"name": "C",
"bytes": "52718"
},
{
"name": "C++",
"bytes": "72795"
},
{
"name": "CMake",
"bytes": "854"
},
{
"name": "CSS",
"bytes": "64655"
},
{
"name": "Groovy",
"bytes": "36006"
},
{
"name": "HTML",
"bytes": "173780"
},
{
"name": "Java",
"bytes": "64026758"
},
{
"name": "Lex",
"bytes": "5909"
},
{
"name": "Objective-C",
"bytes": "23787"
},
{
"name": "Python",
"bytes": "3276"
},
{
"name": "SCSS",
"bytes": "9782"
},
{
"name": "Shell",
"bytes": "5689"
},
{
"name": "Thrift",
"bytes": "1216"
},
{
"name": "XSLT",
"bytes": "49230"
}
],
"symlink_target": ""
} |
using std::vector;
using cv::Mat; using cv::RotatedRect;
//¸¨ÖúÀ࣬ÓÃÒÔ´æ´¢Êä³öÄ¿±êµÄÖØÐÄ×ø±ê
class Coordinate
{
public:
Coordinate(){}
Coordinate(float x, float y) { mCenterX = x; mCenterY = y;}
void setCenterX(float x) { mCenterX = x;}
float getCenterX() {return mCenterX;}
void setCenterY(float y) {mCenterY = y;}
float getCenterY() {return mCenterY;}
private:
float mCenterX;
float mCenterY;
};
//ËùÓзָî²ß¿©ÀàµÄ³¬À࣬Æä×ÓÀàΪ¸÷ÖÖ¾ßÌåµÄ·Ö¸î²ßÂÔÀà
class SegmentStrategy
{
public:
SegmentStrategy(void) : mDilationSize(1), mDilationType(0), mErosionSize(1), mErosionType(0){}
~SegmentStrategy(void) {}
virtual void process(Mat& srcImg, Mat& segImg, Mat& desImg,
vector<Coordinate>& coordinates, vector<RotatedRect>& rotatedRects) = 0;
void setErosionType(int type) { mErosionType = type; }
void setDilationType(int type) { mDilationType = type; }
void setErosionSize(int size) { mErosionSize = size; }
void setDilationSize(int size) { mDilationSize = size; }
protected:
//ÐÎ̬ѧÂ˲¨²ÎÊý
int mErosionType;
int mDilationType;
int mErosionSize;
int mDilationSize;
void morphFilter(Mat& srcImage, Mat &dstImage, int erosionType, int dilationType, int erosionSize, int dilationSize);
void positionResult(Mat& srcImage, Mat &dstImage, std::vector<Coordinate>& coordinates, std::vector<cv::RotatedRect>& rotateRects);
void fillHole(const Mat& srcBw, Mat &dstBw);
};
| {
"content_hash": "29be6bcb9b8719f9e8c85c9e705813c2",
"timestamp": "",
"source": "github",
"line_count": 50,
"max_line_length": 132,
"avg_line_length": 28,
"alnum_prop": 0.7314285714285714,
"repo_name": "sxxlearn2rock/SissorActionTest",
"id": "51a282c059302e52d6dc5e1a61ab9c31b578d7a8",
"size": "1543",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "HODTest/HODTest/Processors/SegmentStrategy.h",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "1083"
},
{
"name": "C++",
"bytes": "268443"
}
],
"symlink_target": ""
} |
@interface PodsDummy_Pods_ShakeNBake_BouncerSDK : NSObject
@end
@implementation PodsDummy_Pods_ShakeNBake_BouncerSDK
@end
| {
"content_hash": "8efc6b7e8124a2d0a8dc537245d847fa",
"timestamp": "",
"source": "github",
"line_count": 4,
"max_line_length": 58,
"avg_line_length": 30.5,
"alnum_prop": 0.8442622950819673,
"repo_name": "yahoo/SynUserMock",
"id": "c6d5b7b11972d2f32f06fa4a738add2f71212b93",
"size": "156",
"binary": false,
"copies": "1",
"ref": "refs/heads/Origin",
"path": "Example/Pods/Pods-ShakeNBake-BouncerSDK-dummy.m",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "14613"
},
{
"name": "C++",
"bytes": "739"
},
{
"name": "Objective-C",
"bytes": "558432"
},
{
"name": "Ruby",
"bytes": "4616"
},
{
"name": "Shell",
"bytes": "23332"
}
],
"symlink_target": ""
} |
<!--<div class="login-page" [@routerTransition]>-->
<!--<div class="row">-->
<!--<div class="col-md-4 push-md-4">-->
<!--<img src="assets/images/logo.png" width="150px" class="user-avatar" />-->
<!--<h1>SB Admin BS4 Angular4</h1>-->
<!--<form #f="ngForm" (ngSubmit)="onLoggedin(f.value)">-->
<!--<div class="form-content">-->
<!--<div class="form-group">-->
<!--<input type="text" id="email" name="email" ngModel class="form-control input-underline input-lg" placeholder="Email">-->
<!--</div>-->
<!--<div class="form-group">-->
<!--<input type="password" id="password" ngModel name="password" class="form-control input-underline input-lg" placeholder="Password">-->
<!--</div>-->
<!--</div>-->
<!--<button type="submit" class="btn rounded-btn"> Log in </button>-->
<!-- -->
<!--<a class="btn rounded-btn" [routerLink]="['/signup']">Register</a>-->
<!--</form>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<div class="login-page" [@routerTransition]>
<div class="da1 row background">
<div class="tabL col-md-8">
<div class ="container-fluid">
<div class="heart pull-left">
<img src="assets/images/logo.png" width="170px" class="user-avatar" />
<h1>Welcome to Utilica</h1>
<form #f="ngForm" (ngSubmit)="onLoggedin(f.value)">
<div class="form-content">
<div class="form-group">
<input type="text" id="email" name="email" ngModel class="form-control input-underline input-lg" placeholder="Email">
</div>
<div class="form-group">
<input type="password" id="password" ngModel name="password" class="form-control input-underline input-lg" placeholder="Password">
</div>
</div>
<button type="submit" class="btn rounded-btn"> Log in </button>
<a class="btn rounded-btn" [routerLink]="['/signup']">Register</a>
</form>
</div>
</div>
</div>
<div class="tabR col-md-4">
<!-- <div class="con">
<button type="button" class="btn btn-default">ABOUT</button>
</div> -->
<ngb-carousel>
<ng-template ngbSlide *ngFor="let slider of sliders">
<img class="restrict img-fluid mx-auto d-block" [src]="slider.imagePath" alt="Random first slide" width="100%">
<div class="carousel-caption">
<h3>{{slider.label}}</h3>
<p>{{slider.text}}</p>
</div>
</ng-template>
</ngb-carousel>
<div class="textbox">
<p><span class="first-word">Utilica</span> is a centralized system that provides both the landlords and tenants easy access to different <br> utilities and information regarding their living space.</p>
<ul>
<li class="tick"> Lightweight, easy to use</li>
<li class="tick"> Quick registration</li>
<li class="tick"> Easy administration</li>
<li class="tick"> Easy access to information</li>
<li class="tick"> Mobile version</li>
</ul>
</div>
</div>
</div>
</div>
| {
"content_hash": "aeb2ce06997a49fbc86203d9b166da81",
"timestamp": "",
"source": "github",
"line_count": 88,
"max_line_length": 217,
"avg_line_length": 44.01136363636363,
"alnum_prop": 0.4606248386263878,
"repo_name": "delacro14/Utilica",
"id": "ee15e67cbdf2b9de21bdf14e905f1f90f5451ed5",
"size": "3873",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "angular-frontend/src/app/login/login.component.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "115968"
},
{
"name": "HTML",
"bytes": "102873"
},
{
"name": "JavaScript",
"bytes": "1646"
},
{
"name": "PHP",
"bytes": "69128"
},
{
"name": "TypeScript",
"bytes": "121112"
},
{
"name": "Vue",
"bytes": "563"
}
],
"symlink_target": ""
} |
/* @flow*/
import { connect } from 'react-redux'
import { receiveLogin, requestLogin, loginError, validateEmail,
successValidateEmail, emailError, successValidatePassword,
passwordError, updateEmail, logoutUser, loginUser } from '../modules/loginUser'
import { userObject } from '../interfaces/user'
/* This is a container component. Notice it does not contain any JSX,
nor does it import React. This component is **only** responsible for
wiring in the actions and state necessary to render a presentational
component - in this case, the counter: */
import LoginView from '../components/LoginView'
/* Object of action creators (can also be function that returns object).
Keys will be passed as props to presentational components. Here we are
implementing our wrapper around increment; the component doesn't care */
const mapActionCreators = {
requestLogin,
receiveLogin,
loginError,
successValidateEmail,
successValidatePassword,
emailError,
passwordError,
validateEmail,
updateEmail,
logoutUser,
loginUser
}
const mapStateToProps = (state) => ({
user: state.loginUser.user,
creds: state.loginUser.creds,
errorMessage: state.loginUser.errorMessage,
isAuthenticated: state.loginUser.isAuthenticated,
isFetching: state.loginUser.isFetching,
playblu_token: state.loginUser.playblu_token,
emailValid: state.loginUser.emailValid,
passwordValid: state.loginUser.passwordValid,
userEmail: state.loginUser.userEmail,
userPassword: state.loginUser.userPassword
})
/* Note: mapStateToProps is where you should use `reselect` to create selectors, ie:
import { createSelector } from 'reselect'
const counter = (state) => state.counter
const tripleCount = createSelector(counter, (count) => count * 3)
const mapStateToProps = (state) => ({
counter: tripleCount(state)
})
Selectors can compute derived data, allowing Redux to store the minimal possible state.
Selectors are efficient. A selector is not recomputed unless one of its arguments change.
Selectors are composable. They can be used as input to other selectors.
https://github.com/reactjs/reselect */
export default connect(mapStateToProps, mapActionCreators)(LoginView)
| {
"content_hash": "ea1cb3160f32479d4e4087191aaa026c",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 93,
"avg_line_length": 37.63333333333333,
"alnum_prop": 0.7480070859167405,
"repo_name": "synchu/schema",
"id": "6461d82242155e8004b70415bbefdd2fc0dc0c06",
"size": "2258",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/routes/Login/containers/LoginContainer.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "745"
},
{
"name": "CSS",
"bytes": "13735"
},
{
"name": "HTML",
"bytes": "31260"
},
{
"name": "JavaScript",
"bytes": "252532"
},
{
"name": "PHP",
"bytes": "101509"
}
],
"symlink_target": ""
} |
package org.eigenbase.sql.fun;
import java.util.*;
import org.eigenbase.reltype.*;
import org.eigenbase.sql.*;
import org.eigenbase.sql.type.*;
import org.eigenbase.sql.validate.*;
import com.google.common.collect.ImmutableList;
import static org.eigenbase.util.Static.RESOURCE;
/**
* Definition of the SQL <code>IN</code> operator, which tests for a value's
* membership in a subquery or a list of values.
*/
public class SqlInOperator extends SqlBinaryOperator {
//~ Instance fields --------------------------------------------------------
/**
* If true the call represents 'NOT IN'.
*/
private final boolean isNotIn;
//~ Constructors -----------------------------------------------------------
/**
* Creates a SqlInOperator
*
* @param isNotIn Whether this is the 'NOT IN' operator
*/
SqlInOperator(boolean isNotIn) {
super(
isNotIn ? "NOT IN" : "IN",
SqlKind.IN,
30,
true,
ReturnTypes.BOOLEAN_NULLABLE,
InferTypes.FIRST_KNOWN,
null);
this.isNotIn = isNotIn;
}
//~ Methods ----------------------------------------------------------------
/**
* Returns whether this is the 'NOT IN' operator
*
* @return whether this is the 'NOT IN' operator
*/
public boolean isNotIn() {
return isNotIn;
}
public RelDataType deriveType(
SqlValidator validator,
SqlValidatorScope scope,
SqlCall call) {
final List<SqlNode> operands = call.getOperandList();
assert operands.size() == 2;
final SqlNode left = operands.get(0);
final SqlNode right = operands.get(1);
final RelDataTypeFactory typeFactory = validator.getTypeFactory();
RelDataType leftType = validator.deriveType(scope, left);
RelDataType rightType;
// Derive type for RHS.
if (right instanceof SqlNodeList) {
// Handle the 'IN (expr, ...)' form.
List<RelDataType> rightTypeList = new ArrayList<RelDataType>();
SqlNodeList nodeList = (SqlNodeList) right;
for (int i = 0; i < nodeList.size(); i++) {
SqlNode node = nodeList.get(i);
RelDataType nodeType = validator.deriveType(scope, node);
rightTypeList.add(nodeType);
}
rightType = typeFactory.leastRestrictive(rightTypeList);
// First check that the expressions in the IN list are compatible
// with each other. Same rules as the VALUES operator (per
// SQL:2003 Part 2 Section 8.4, <in predicate>).
if (null == rightType) {
throw validator.newValidationError(right,
RESOURCE.incompatibleTypesInList());
}
// Record the RHS type for use by SqlToRelConverter.
validator.setValidatedNodeType(
nodeList,
rightType);
} else {
// Handle the 'IN (query)' form.
rightType = validator.deriveType(scope, right);
}
// Now check that the left expression is compatible with the
// type of the list. Same strategy as the '=' operator.
// Normalize the types on both sides to be row types
// for the purposes of compatibility-checking.
RelDataType leftRowType =
SqlTypeUtil.promoteToRowType(
typeFactory,
leftType,
null);
RelDataType rightRowType =
SqlTypeUtil.promoteToRowType(
typeFactory,
rightType,
null);
final ComparableOperandTypeChecker checker =
(ComparableOperandTypeChecker)
OperandTypes.COMPARABLE_UNORDERED_COMPARABLE_UNORDERED;
if (!checker.checkOperandTypes(
new ExplicitOperatorBinding(
new SqlCallBinding(
validator,
scope,
call),
ImmutableList.of(leftRowType, rightRowType)))) {
throw validator.newValidationError(call,
RESOURCE.incompatibleValueType(SqlStdOperatorTable.IN.getName()));
}
// Result is a boolean, nullable if there are any nullable types
// on either side.
return typeFactory.createTypeWithNullability(
typeFactory.createSqlType(SqlTypeName.BOOLEAN),
anyNullable(leftRowType.getFieldList())
|| anyNullable(rightRowType.getFieldList()));
}
private static boolean anyNullable(List<RelDataTypeField> fieldList) {
for (RelDataTypeField field : fieldList) {
if (field.getType().isNullable()) {
return true;
}
}
return false;
}
public boolean argumentMustBeScalar(int ordinal) {
// Argument #0 must be scalar, argument #1 can be a list (1, 2) or
// a query (select deptno from emp). So, only coerce argument #0 into
// a scalar subquery. For example, in
// select * from emp
// where (select count(*) from dept) in (select deptno from dept)
// we should coerce the LHS to a scalar.
return ordinal == 0;
}
}
// End SqlInOperator.java
| {
"content_hash": "03527c263a757ff03eda1e92b5f0b4e2",
"timestamp": "",
"source": "github",
"line_count": 156,
"max_line_length": 78,
"avg_line_length": 31.108974358974358,
"alnum_prop": 0.6233257778693592,
"repo_name": "nvoron23/incubator-calcite",
"id": "b120d78bc9fef0c6aa4450ccdf6d4ccc64971d31",
"size": "5650",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "core/src/main/java/org/eigenbase/sql/fun/SqlInOperator.java",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
'use strict';
var shell = require('shelljs');
module.exports = function( grunt ) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
nodemon: require('./gruntConfig/nodemon.js')(),
watch: require('./gruntConfig/watch.js')(grunt),
concurrent: require('./gruntConfig/concurrent.js')(),
tslint: require('./gruntConfig/tslint.js')(grunt)
});
require('load-grunt-tasks')(grunt, {
pattern: ['grunt-*', 'artifact']
});
grunt.registerTask('tsc', "compile typescript files", function() {
shell.exec('tsc');
});
grunt.registerTask( 'build', [ 'tslint:dev', 'tsc' ]);
grunt.registerTask( 'default', [ 'build', 'concurrent:dev' ]);
}; | {
"content_hash": "e00adb4e06ee048f554efcf348d85233",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 70,
"avg_line_length": 30.25,
"alnum_prop": 0.5964187327823691,
"repo_name": "keunlee/sample-fullstack-app",
"id": "5047027633406ddd80695194170f1a24b9cd85bd",
"size": "726",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "backend-nodejs/gruntfile.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "21285"
},
{
"name": "CSS",
"bytes": "604"
},
{
"name": "HTML",
"bytes": "473"
},
{
"name": "Java",
"bytes": "17175"
},
{
"name": "JavaScript",
"bytes": "19046"
},
{
"name": "TypeScript",
"bytes": "50261"
}
],
"symlink_target": ""
} |
[url]: https://jonathanchan.me
# [jonathanchan.me][url] [](https://travis-ci.com/NathanJang/nathanjang.github.io)
This is the source code to my [personal website][url].
The site is continuously deployed to GitHub Pages with Travis.
To develop locally:
## Prerequisites
You will need the following things properly installed on your computer.
* [Git](https://git-scm.com/)
* [Node.js](https://nodejs.org/) (with NPM)
* [Ember CLI](https://ember-cli.com/)
* [PhantomJS](http://phantomjs.org/)
## Installation
* `git clone git@github.com:NathanJang/nathanjang.github.io.git` this repository
* `cd nathanjang.github.io`
* `npm install`
## Running / Development
* `ember serve`
* Visit your app at [http://localhost:4200](http://localhost:4200).
### Code Generators
Make use of the many generators for code, try `ember help generate` for more details
### Running Tests
* `ember test`
* `ember test --server`
### Building
* `ember build` (development)
* `ember build --environment production` (production)
### Deploying
TravisCI.com is configured to deploy changes from branch `ember` on push.
## Further Reading / Useful Links
* [ember.js](http://emberjs.com/)
* [ember-cli](https://ember-cli.com/)
* Development Browser Extensions
* [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi)
* [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/)
| {
"content_hash": "886b9e266caf30038a7dab7d9d68e10b",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 157,
"avg_line_length": 28.10909090909091,
"alnum_prop": 0.7309184993531694,
"repo_name": "NathanJang/nathanjang.github.io",
"id": "5c3e63db19a2bb3c5b66fb591da8ee6a1ea352d6",
"size": "1546",
"binary": false,
"copies": "1",
"ref": "refs/heads/ember",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "6082"
},
{
"name": "HTML",
"bytes": "1974"
},
{
"name": "Handlebars",
"bytes": "15957"
},
{
"name": "JavaScript",
"bytes": "29210"
}
],
"symlink_target": ""
} |
These source code samples are listed and grouped by their programming language and functions they use. ByteScout SWF To Video SDK helps with FLV to WMV in VBScript. ByteScout SWF To Video SDK is the library that can take SWF (Flash Macromedia) files and convert into WMV or AVI video with sound. Dynamic flash movie scenes, variables, actionscripts are supported and you also may adjust output video size, framerate and quality.
Fast application programming interfaces of ByteScout SWF To Video SDK for VBScript plus the instruction and the VBScript code below will help you quickly learn FLV to WMV. Follow the instruction from the scratch to work and copy and paste code for VBScript into your editor. This basic programming language sample code for VBScript will do the whole work for you in implementing FLV to WMV in your app.
Trial version can be obtained from our website for free. It includes this and other source code samples for VBScript.
## REQUEST FREE TECH SUPPORT
[Click here to get in touch](https://bytescout.zendesk.com/hc/en-us/requests/new?subject=ByteScout%20SWF%20To%20Video%20SDK%20Question)
or just send email to [support@bytescout.com](mailto:support@bytescout.com?subject=ByteScout%20SWF%20To%20Video%20SDK%20Question)
## ON-PREMISE OFFLINE SDK
[Get Your 60 Day Free Trial](https://bytescout.com/download/web-installer?utm_source=github-readme)
[Explore SDK Docs](https://bytescout.com/documentation/index.html?utm_source=github-readme)
[Sign Up For Online Training](https://academy.bytescout.com/)
## ON-DEMAND REST WEB API
[Get your API key](https://pdf.co/documentation/api?utm_source=github-readme)
[Explore Web API Documentation](https://pdf.co/documentation/api?utm_source=github-readme)
[Explore Web API Samples](https://github.com/bytescout/ByteScout-SDK-SourceCode/tree/master/PDF.co%20Web%20API)
## VIDEO REVIEW
[https://www.youtube.com/watch?v=NEwNs2b9YN8](https://www.youtube.com/watch?v=NEwNs2b9YN8)
<!-- code block begin -->
##### ****simple.vbs:**
```
' x64 IMPORTANT NOTE: set CPU to x86 to build in x86 mode. WHY? Because flash is not supported on x64 platform currently at all
' Create an instance of SWFToVideo ActiveX object
Set converter = CreateObject("BytescoutSWFToVideo.SWFToVideo")
' Set debug log
'converter.SetLogFile "log.txt"
' Register SWFToVideo
converter.RegistrationName = "demo"
converter.RegistrationKey = "demo"
' Set input SWF file
converter.InputSWFFileName = "../../video.flv"
' you may calculate output video duration using information about the the source swf movie
' WARNING #1: this method to calculate the output video duration is not working for movies with dynamic scenes
' and interactive scripts as in these movies it is not possible to calculate the precise duration of the movie
' WARNING #2: you should set the input swf or flv filename (or url) before this calculation
' So the movie duration is calculated as the following:
' as swf frame count (number of frames in the swf) / movieFPS (frames per second defined in swf)
' and then multiplied by 1000 (as we are setting the .ConverstionTimeout in milliseconds)
' as the following (uncomment if you want to set the length of the output video to the same as the original swf)
' or as the following source code (uncomment to enable):
' converter.ConversionTimeout = 1000 * (converter.FrameCount / converter.MovieFPS)
' Set output WMV or AVI video file
converter.OutputVideoFileName = "result.wmv"
' Set output movie dimensions
converter.OutputWidth = 640
converter.OutputHeight = 480
' Run conversion
converter.RunAndWait
' Open result in default media player
Set shell = CreateObject("WScript.Shell")
shell.Run "result.wmv", 1, false
Set shell = Nothing
Set converter = Nothing
```
<!-- code block end --> | {
"content_hash": "b65a314bc7eb003aff1ec35fa3699109",
"timestamp": "",
"source": "github",
"line_count": 89,
"max_line_length": 428,
"avg_line_length": 42.98876404494382,
"alnum_prop": 0.7673810768426556,
"repo_name": "bytescout/ByteScout-SDK-SourceCode",
"id": "e1e30b0f72d3d5d40c954b75bfbee963fa574aa5",
"size": "3941",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "SWF To Video SDK/VBScript/FLV to WMV/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ASP.NET",
"bytes": "364116"
},
{
"name": "Apex",
"bytes": "243500"
},
{
"name": "Batchfile",
"bytes": "151832"
},
{
"name": "C",
"bytes": "224568"
},
{
"name": "C#",
"bytes": "12909855"
},
{
"name": "C++",
"bytes": "440474"
},
{
"name": "CSS",
"bytes": "56817"
},
{
"name": "Classic ASP",
"bytes": "46655"
},
{
"name": "Dockerfile",
"bytes": "776"
},
{
"name": "Gherkin",
"bytes": "3386"
},
{
"name": "HTML",
"bytes": "17276296"
},
{
"name": "Java",
"bytes": "1483408"
},
{
"name": "JavaScript",
"bytes": "3033610"
},
{
"name": "PHP",
"bytes": "838746"
},
{
"name": "Pascal",
"bytes": "398090"
},
{
"name": "PowerShell",
"bytes": "715204"
},
{
"name": "Python",
"bytes": "703542"
},
{
"name": "QMake",
"bytes": "880"
},
{
"name": "TSQL",
"bytes": "3080"
},
{
"name": "VBA",
"bytes": "383773"
},
{
"name": "VBScript",
"bytes": "1504410"
},
{
"name": "Visual Basic .NET",
"bytes": "9489450"
}
],
"symlink_target": ""
} |
module DCM
module Infrastructure
module ServerProduct
end
end
end
| {
"content_hash": "943dbebde2a8b9ec54d49cdb4b6f1bc3",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 24,
"avg_line_length": 13,
"alnum_prop": 0.7307692307692307,
"repo_name": "jbrien/rbdcm-api",
"id": "a0bca68b41abdfd4ed544e4ecfc8bcdb72fad92a",
"size": "78",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "lib/dcm/infrastructure/server_product.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ruby",
"bytes": "15800"
}
],
"symlink_target": ""
} |
from observedItem import *
from fileEventHandler import *
from fileObserver import *
__author__ = 'Daiki SHIMADA'
__version__ = '0.0.3'
__license__ = 'MIT'
| {
"content_hash": "40d167e87611fc4380e02c26318801b8",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 31,
"avg_line_length": 22.714285714285715,
"alnum_prop": 0.6792452830188679,
"repo_name": "DaikiShimada/patlabor-python",
"id": "48e568248d80851fe88e0925144cb1e159082cf8",
"size": "477",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "patlabor/__init__.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "6337"
}
],
"symlink_target": ""
} |
import abc
import mock
from oslo_config import cfg
from oslo_log import log as logging
from oslo_serialization import jsonutils
import routes
import six
import webob
import webob.exc as webexc
import webtest
import neutron
from neutron.api import extensions
from neutron.api.v2 import attributes
from neutron.common import config
from neutron.common import exceptions
from neutron.db import db_base_plugin_v2
from neutron import manager
from neutron.plugins.common import constants
from neutron.plugins.ml2 import plugin as ml2_plugin
from neutron import quota
from neutron.tests import base
from neutron.tests.unit.api.v2 import test_base
from neutron.tests.unit import extension_stubs as ext_stubs
import neutron.tests.unit.extensions
from neutron.tests.unit.extensions import extendedattribute as extattr
from neutron.tests.unit import testlib_api
from neutron import wsgi
LOG = logging.getLogger(__name__)
_uuid = test_base._uuid
_get_path = test_base._get_path
extensions_path = ':'.join(neutron.tests.unit.extensions.__path__)
class ExtensionsTestApp(wsgi.Router):
def __init__(self, options={}):
mapper = routes.Mapper()
controller = ext_stubs.StubBaseAppController()
mapper.resource("dummy_resource", "/dummy_resources",
controller=controller)
super(ExtensionsTestApp, self).__init__(mapper)
class FakePluginWithExtension(db_base_plugin_v2.NeutronDbPluginV2):
"""A fake plugin used only for extension testing in this file."""
supported_extension_aliases = ["FOXNSOX"]
def method_to_support_foxnsox_extension(self, context):
self._log("method_to_support_foxnsox_extension", context)
class PluginInterfaceTest(base.BaseTestCase):
def test_issubclass_hook(self):
class A(object):
def f(self):
pass
class B(extensions.PluginInterface):
@abc.abstractmethod
def f(self):
pass
self.assertTrue(issubclass(A, B))
def test_issubclass_hook_class_without_abstract_methods(self):
class A(object):
def f(self):
pass
class B(extensions.PluginInterface):
def f(self):
pass
self.assertFalse(issubclass(A, B))
def test_issubclass_hook_not_all_methods_implemented(self):
class A(object):
def f(self):
pass
class B(extensions.PluginInterface):
@abc.abstractmethod
def f(self):
pass
@abc.abstractmethod
def g(self):
pass
self.assertFalse(issubclass(A, B))
class ResourceExtensionTest(base.BaseTestCase):
class ResourceExtensionController(wsgi.Controller):
def index(self, request):
return "resource index"
def show(self, request, id):
return {'data': {'id': id}}
def notimplemented_function(self, request, id):
return webob.exc.HTTPNotImplemented()
def custom_member_action(self, request, id):
return {'member_action': 'value'}
def custom_collection_action(self, request, **kwargs):
return {'collection': 'value'}
class DummySvcPlugin(wsgi.Controller):
def get_plugin_type(self):
return constants.DUMMY
def index(self, request, **kwargs):
return "resource index"
def custom_member_action(self, request, **kwargs):
return {'member_action': 'value'}
def collection_action(self, request, **kwargs):
return {'collection': 'value'}
def show(self, request, id):
return {'data': {'id': id}}
def test_exceptions_notimplemented(self):
controller = self.ResourceExtensionController()
member = {'notimplemented_function': "GET"}
res_ext = extensions.ResourceExtension('tweedles', controller,
member_actions=member)
test_app = _setup_extensions_test_app(SimpleExtensionManager(res_ext))
# Ideally we would check for a 501 code here but webtest doesn't take
# anything that is below 200 or above 400 so we can't actually check
# it. It throws webtest.AppError instead.
try:
test_app.get("/tweedles/some_id/notimplemented_function")
# Shouldn't be reached
self.assertTrue(False)
except webtest.AppError as e:
self.assertIn('501', str(e))
def test_resource_can_be_added_as_extension(self):
res_ext = extensions.ResourceExtension(
'tweedles', self.ResourceExtensionController())
test_app = _setup_extensions_test_app(SimpleExtensionManager(res_ext))
index_response = test_app.get("/tweedles")
self.assertEqual(200, index_response.status_int)
self.assertEqual("resource index", index_response.body)
show_response = test_app.get("/tweedles/25266")
self.assertEqual({'data': {'id': "25266"}}, show_response.json)
def test_resource_gets_prefix_of_plugin(self):
class DummySvcPlugin(wsgi.Controller):
def index(self, request):
return ""
def get_plugin_type(self):
return constants.DUMMY
res_ext = extensions.ResourceExtension(
'tweedles', DummySvcPlugin(), path_prefix="/dummy_svc")
test_app = _setup_extensions_test_app(SimpleExtensionManager(res_ext))
index_response = test_app.get("/dummy_svc/tweedles")
self.assertEqual(200, index_response.status_int)
def test_resource_extension_with_custom_member_action(self):
controller = self.ResourceExtensionController()
member = {'custom_member_action': "GET"}
res_ext = extensions.ResourceExtension('tweedles', controller,
member_actions=member)
test_app = _setup_extensions_test_app(SimpleExtensionManager(res_ext))
response = test_app.get("/tweedles/some_id/custom_member_action")
self.assertEqual(200, response.status_int)
self.assertEqual(jsonutils.loads(response.body)['member_action'],
"value")
def test_resource_ext_with_custom_member_action_gets_plugin_prefix(self):
controller = self.DummySvcPlugin()
member = {'custom_member_action': "GET"}
collections = {'collection_action': "GET"}
res_ext = extensions.ResourceExtension('tweedles', controller,
path_prefix="/dummy_svc",
member_actions=member,
collection_actions=collections)
test_app = _setup_extensions_test_app(SimpleExtensionManager(res_ext))
response = test_app.get("/dummy_svc/tweedles/1/custom_member_action")
self.assertEqual(200, response.status_int)
self.assertEqual(jsonutils.loads(response.body)['member_action'],
"value")
response = test_app.get("/dummy_svc/tweedles/collection_action")
self.assertEqual(200, response.status_int)
self.assertEqual(jsonutils.loads(response.body)['collection'],
"value")
def test_plugin_prefix_with_parent_resource(self):
controller = self.DummySvcPlugin()
parent = dict(member_name="tenant",
collection_name="tenants")
member = {'custom_member_action': "GET"}
collections = {'collection_action': "GET"}
res_ext = extensions.ResourceExtension('tweedles', controller, parent,
path_prefix="/dummy_svc",
member_actions=member,
collection_actions=collections)
test_app = _setup_extensions_test_app(SimpleExtensionManager(res_ext))
index_response = test_app.get("/dummy_svc/tenants/1/tweedles")
self.assertEqual(200, index_response.status_int)
response = test_app.get("/dummy_svc/tenants/1/"
"tweedles/1/custom_member_action")
self.assertEqual(200, response.status_int)
self.assertEqual(jsonutils.loads(response.body)['member_action'],
"value")
response = test_app.get("/dummy_svc/tenants/2/"
"tweedles/collection_action")
self.assertEqual(200, response.status_int)
self.assertEqual(jsonutils.loads(response.body)['collection'],
"value")
def test_resource_extension_for_get_custom_collection_action(self):
controller = self.ResourceExtensionController()
collections = {'custom_collection_action': "GET"}
res_ext = extensions.ResourceExtension('tweedles', controller,
collection_actions=collections)
test_app = _setup_extensions_test_app(SimpleExtensionManager(res_ext))
response = test_app.get("/tweedles/custom_collection_action")
self.assertEqual(200, response.status_int)
LOG.debug(jsonutils.loads(response.body))
self.assertEqual(jsonutils.loads(response.body)['collection'], "value")
def test_resource_extension_for_put_custom_collection_action(self):
controller = self.ResourceExtensionController()
collections = {'custom_collection_action': "PUT"}
res_ext = extensions.ResourceExtension('tweedles', controller,
collection_actions=collections)
test_app = _setup_extensions_test_app(SimpleExtensionManager(res_ext))
response = test_app.put("/tweedles/custom_collection_action")
self.assertEqual(200, response.status_int)
self.assertEqual(jsonutils.loads(response.body)['collection'], 'value')
def test_resource_extension_for_post_custom_collection_action(self):
controller = self.ResourceExtensionController()
collections = {'custom_collection_action': "POST"}
res_ext = extensions.ResourceExtension('tweedles', controller,
collection_actions=collections)
test_app = _setup_extensions_test_app(SimpleExtensionManager(res_ext))
response = test_app.post("/tweedles/custom_collection_action")
self.assertEqual(200, response.status_int)
self.assertEqual(jsonutils.loads(response.body)['collection'], 'value')
def test_resource_extension_for_delete_custom_collection_action(self):
controller = self.ResourceExtensionController()
collections = {'custom_collection_action': "DELETE"}
res_ext = extensions.ResourceExtension('tweedles', controller,
collection_actions=collections)
test_app = _setup_extensions_test_app(SimpleExtensionManager(res_ext))
response = test_app.delete("/tweedles/custom_collection_action")
self.assertEqual(200, response.status_int)
self.assertEqual(jsonutils.loads(response.body)['collection'], 'value')
def test_resource_ext_for_formatted_req_on_custom_collection_action(self):
controller = self.ResourceExtensionController()
collections = {'custom_collection_action': "GET"}
res_ext = extensions.ResourceExtension('tweedles', controller,
collection_actions=collections)
test_app = _setup_extensions_test_app(SimpleExtensionManager(res_ext))
response = test_app.get("/tweedles/custom_collection_action.json")
self.assertEqual(200, response.status_int)
self.assertEqual(jsonutils.loads(response.body)['collection'], "value")
def test_resource_ext_for_nested_resource_custom_collection_action(self):
controller = self.ResourceExtensionController()
collections = {'custom_collection_action': "GET"}
parent = dict(collection_name='beetles', member_name='beetle')
res_ext = extensions.ResourceExtension('tweedles', controller,
collection_actions=collections,
parent=parent)
test_app = _setup_extensions_test_app(SimpleExtensionManager(res_ext))
response = test_app.get("/beetles/beetle_id"
"/tweedles/custom_collection_action")
self.assertEqual(200, response.status_int)
self.assertEqual(jsonutils.loads(response.body)['collection'], "value")
def test_resource_extension_with_custom_member_action_and_attr_map(self):
controller = self.ResourceExtensionController()
member = {'custom_member_action': "GET"}
params = {
'tweedles': {
'id': {'allow_post': False, 'allow_put': False,
'validate': {'type:uuid': None},
'is_visible': True},
'name': {'allow_post': True, 'allow_put': True,
'validate': {'type:string': None},
'default': '', 'is_visible': True},
}
}
res_ext = extensions.ResourceExtension('tweedles', controller,
member_actions=member,
attr_map=params)
test_app = _setup_extensions_test_app(SimpleExtensionManager(res_ext))
response = test_app.get("/tweedles/some_id/custom_member_action")
self.assertEqual(200, response.status_int)
self.assertEqual(jsonutils.loads(response.body)['member_action'],
"value")
def test_returns_404_for_non_existent_extension(self):
test_app = _setup_extensions_test_app(SimpleExtensionManager(None))
response = test_app.get("/non_extistant_extension", status='*')
self.assertEqual(404, response.status_int)
class ActionExtensionTest(base.BaseTestCase):
def setUp(self):
super(ActionExtensionTest, self).setUp()
self.extension_app = _setup_extensions_test_app()
def test_extended_action_for_adding_extra_data(self):
action_name = 'FOXNSOX:add_tweedle'
action_params = dict(name='Beetle')
req_body = jsonutils.dumps({action_name: action_params})
response = self.extension_app.post('/dummy_resources/1/action',
req_body,
content_type='application/json')
self.assertEqual("Tweedle Beetle Added.", response.body)
def test_extended_action_for_deleting_extra_data(self):
action_name = 'FOXNSOX:delete_tweedle'
action_params = dict(name='Bailey')
req_body = jsonutils.dumps({action_name: action_params})
response = self.extension_app.post("/dummy_resources/1/action",
req_body,
content_type='application/json')
self.assertEqual("Tweedle Bailey Deleted.", response.body)
def test_returns_404_for_non_existent_action(self):
non_existent_action = 'blah_action'
action_params = dict(name="test")
req_body = jsonutils.dumps({non_existent_action: action_params})
response = self.extension_app.post("/dummy_resources/1/action",
req_body,
content_type='application/json',
status='*')
self.assertEqual(404, response.status_int)
def test_returns_404_for_non_existent_resource(self):
action_name = 'add_tweedle'
action_params = dict(name='Beetle')
req_body = jsonutils.dumps({action_name: action_params})
response = self.extension_app.post("/asdf/1/action", req_body,
content_type='application/json',
status='*')
self.assertEqual(404, response.status_int)
class RequestExtensionTest(base.BaseTestCase):
def test_headers_can_be_extended(self):
def extend_headers(req, res):
assert req.headers['X-NEW-REQUEST-HEADER'] == "sox"
res.headers['X-NEW-RESPONSE-HEADER'] = "response_header_data"
return res
app = self._setup_app_with_request_handler(extend_headers, 'GET')
response = app.get("/dummy_resources/1",
headers={'X-NEW-REQUEST-HEADER': "sox"})
self.assertEqual(response.headers['X-NEW-RESPONSE-HEADER'],
"response_header_data")
def test_extend_get_resource_response(self):
def extend_response_data(req, res):
data = jsonutils.loads(res.body)
data['FOXNSOX:extended_key'] = req.GET.get('extended_key')
res.body = jsonutils.dumps(data)
return res
app = self._setup_app_with_request_handler(extend_response_data, 'GET')
response = app.get("/dummy_resources/1?extended_key=extended_data")
self.assertEqual(200, response.status_int)
response_data = jsonutils.loads(response.body)
self.assertEqual('extended_data',
response_data['FOXNSOX:extended_key'])
self.assertEqual('knox', response_data['fort'])
def test_get_resources(self):
app = _setup_extensions_test_app()
response = app.get("/dummy_resources/1?chewing=newblue")
response_data = jsonutils.loads(response.body)
self.assertEqual('newblue', response_data['FOXNSOX:googoose'])
self.assertEqual("Pig Bands!", response_data['FOXNSOX:big_bands'])
def test_edit_previously_uneditable_field(self):
def _update_handler(req, res):
data = jsonutils.loads(res.body)
data['uneditable'] = req.params['uneditable']
res.body = jsonutils.dumps(data)
return res
base_app = webtest.TestApp(setup_base_app(self))
response = base_app.put("/dummy_resources/1",
{'uneditable': "new_value"})
self.assertEqual(response.json['uneditable'], "original_value")
ext_app = self._setup_app_with_request_handler(_update_handler,
'PUT')
ext_response = ext_app.put("/dummy_resources/1",
{'uneditable': "new_value"})
self.assertEqual(ext_response.json['uneditable'], "new_value")
def _setup_app_with_request_handler(self, handler, verb):
req_ext = extensions.RequestExtension(verb,
'/dummy_resources/:(id)',
handler)
manager = SimpleExtensionManager(None, None, req_ext)
return _setup_extensions_test_app(manager)
class ExtensionManagerTest(base.BaseTestCase):
def test_invalid_extensions_are_not_registered(self):
class InvalidExtension(object):
"""Invalid extension.
This Extension doesn't implement extension methods :
get_name, get_description and get_updated
"""
def get_alias(self):
return "invalid_extension"
ext_mgr = extensions.ExtensionManager('')
ext_mgr.add_extension(InvalidExtension())
ext_mgr.add_extension(ext_stubs.StubExtension("valid_extension"))
self.assertIn('valid_extension', ext_mgr.extensions)
self.assertNotIn('invalid_extension', ext_mgr.extensions)
def test_assignment_of_attr_map(self):
class ExtendResourceExtension(object):
"""Generated Extended Resources.
This extension's extended resource will assign
to more than one resource.
"""
def get_name(self):
return "extension"
def get_alias(self):
return "extension"
def get_description(self):
return "Extension for test"
def get_updated(self):
return "2013-07-23T10:00:00-00:00"
def get_extended_resources(self, version):
EXTENDED_TIMESTAMP = {
'created_at': {'allow_post': False, 'allow_put': False,
'is_visible': True}}
EXTENDED_RESOURCES = ["ext1", "ext2"]
attrs = {}
for resources in EXTENDED_RESOURCES:
attrs[resources] = EXTENDED_TIMESTAMP
return attrs
ext_mgr = extensions.ExtensionManager('')
ext_mgr.add_extension(ExtendResourceExtension())
ext_mgr.add_extension(ext_stubs.StubExtension("ext1"))
ext_mgr.add_extension(ext_stubs.StubExtension("ext2"))
attr_map = {}
ext_mgr.extend_resources("2.0", attr_map)
self.assertNotEqual(id(attr_map['ext1']), id(attr_map['ext2']))
class PluginAwareExtensionManagerTest(base.BaseTestCase):
def test_unsupported_extensions_are_not_loaded(self):
stub_plugin = ext_stubs.StubPlugin(supported_extensions=["e1", "e3"])
plugin_info = {constants.CORE: stub_plugin}
with mock.patch("neutron.api.extensions.PluginAwareExtensionManager."
"check_if_plugin_extensions_loaded"):
ext_mgr = extensions.PluginAwareExtensionManager('', plugin_info)
ext_mgr.add_extension(ext_stubs.StubExtension("e1"))
ext_mgr.add_extension(ext_stubs.StubExtension("e2"))
ext_mgr.add_extension(ext_stubs.StubExtension("e3"))
self.assertIn("e1", ext_mgr.extensions)
self.assertNotIn("e2", ext_mgr.extensions)
self.assertIn("e3", ext_mgr.extensions)
def test_extensions_are_not_loaded_for_plugins_unaware_of_extensions(self):
class ExtensionUnawarePlugin(object):
"""This plugin does not implement supports_extension method.
Extensions will not be loaded when this plugin is used.
"""
pass
plugin_info = {constants.CORE: ExtensionUnawarePlugin()}
ext_mgr = extensions.PluginAwareExtensionManager('', plugin_info)
ext_mgr.add_extension(ext_stubs.StubExtension("e1"))
self.assertNotIn("e1", ext_mgr.extensions)
def test_extensions_not_loaded_for_plugin_without_expected_interface(self):
class PluginWithoutExpectedIface(object):
"""Does not implement get_foo method as expected by extension."""
supported_extension_aliases = ["supported_extension"]
plugin_info = {constants.CORE: PluginWithoutExpectedIface()}
with mock.patch("neutron.api.extensions.PluginAwareExtensionManager."
"check_if_plugin_extensions_loaded"):
ext_mgr = extensions.PluginAwareExtensionManager('', plugin_info)
ext_mgr.add_extension(ext_stubs.ExtensionExpectingPluginInterface(
"supported_extension"))
self.assertNotIn("e1", ext_mgr.extensions)
def test_extensions_are_loaded_for_plugin_with_expected_interface(self):
class PluginWithExpectedInterface(object):
"""Implements get_foo method as expected by extension."""
supported_extension_aliases = ["supported_extension"]
def get_foo(self, bar=None):
pass
plugin_info = {constants.CORE: PluginWithExpectedInterface()}
with mock.patch("neutron.api.extensions.PluginAwareExtensionManager."
"check_if_plugin_extensions_loaded"):
ext_mgr = extensions.PluginAwareExtensionManager('', plugin_info)
ext_mgr.add_extension(ext_stubs.ExtensionExpectingPluginInterface(
"supported_extension"))
self.assertIn("supported_extension", ext_mgr.extensions)
def test_extensions_expecting_neutron_plugin_interface_are_loaded(self):
class ExtensionForQuamtumPluginInterface(ext_stubs.StubExtension):
"""This Extension does not implement get_plugin_interface method.
This will work with any plugin implementing NeutronPluginBase
"""
pass
stub_plugin = ext_stubs.StubPlugin(supported_extensions=["e1"])
plugin_info = {constants.CORE: stub_plugin}
with mock.patch("neutron.api.extensions.PluginAwareExtensionManager."
"check_if_plugin_extensions_loaded"):
ext_mgr = extensions.PluginAwareExtensionManager('', plugin_info)
ext_mgr.add_extension(ExtensionForQuamtumPluginInterface("e1"))
self.assertIn("e1", ext_mgr.extensions)
def test_extensions_without_need_for__plugin_interface_are_loaded(self):
class ExtensionWithNoNeedForPluginInterface(ext_stubs.StubExtension):
"""This Extension does not need any plugin interface.
This will work with any plugin implementing NeutronPluginBase
"""
def get_plugin_interface(self):
return None
stub_plugin = ext_stubs.StubPlugin(supported_extensions=["e1"])
plugin_info = {constants.CORE: stub_plugin}
with mock.patch("neutron.api.extensions.PluginAwareExtensionManager."
"check_if_plugin_extensions_loaded"):
ext_mgr = extensions.PluginAwareExtensionManager('', plugin_info)
ext_mgr.add_extension(ExtensionWithNoNeedForPluginInterface("e1"))
self.assertIn("e1", ext_mgr.extensions)
def test_extension_loaded_for_non_core_plugin(self):
class NonCorePluginExtenstion(ext_stubs.StubExtension):
def get_plugin_interface(self):
return None
stub_plugin = ext_stubs.StubPlugin(supported_extensions=["e1"])
plugin_info = {constants.DUMMY: stub_plugin}
with mock.patch("neutron.api.extensions.PluginAwareExtensionManager."
"check_if_plugin_extensions_loaded"):
ext_mgr = extensions.PluginAwareExtensionManager('', plugin_info)
ext_mgr.add_extension(NonCorePluginExtenstion("e1"))
self.assertIn("e1", ext_mgr.extensions)
def test_unloaded_supported_extensions_raises_exception(self):
stub_plugin = ext_stubs.StubPlugin(
supported_extensions=["unloaded_extension"])
plugin_info = {constants.CORE: stub_plugin}
self.assertRaises(exceptions.ExtensionsNotFound,
extensions.PluginAwareExtensionManager,
'', plugin_info)
class ExtensionControllerTest(testlib_api.WebTestCase):
def setUp(self):
super(ExtensionControllerTest, self).setUp()
self.test_app = _setup_extensions_test_app()
def test_index_gets_all_registerd_extensions(self):
response = self.test_app.get("/extensions." + self.fmt)
res_body = self.deserialize(response)
foxnsox = res_body["extensions"][0]
self.assertEqual(foxnsox["alias"], "FOXNSOX")
def test_extension_can_be_accessed_by_alias(self):
response = self.test_app.get("/extensions/FOXNSOX." + self.fmt)
foxnsox_extension = self.deserialize(response)
foxnsox_extension = foxnsox_extension['extension']
self.assertEqual(foxnsox_extension["alias"], "FOXNSOX")
def test_show_returns_not_found_for_non_existent_extension(self):
response = self.test_app.get("/extensions/non_existent" + self.fmt,
status="*")
self.assertEqual(response.status_int, 404)
def app_factory(global_conf, **local_conf):
conf = global_conf.copy()
conf.update(local_conf)
return ExtensionsTestApp(conf)
def setup_base_app(test):
base.BaseTestCase.config_parse()
app = config.load_paste_app('extensions_test_app')
return app
def setup_extensions_middleware(extension_manager=None):
extension_manager = (extension_manager or
extensions.PluginAwareExtensionManager(
extensions_path,
{constants.CORE: FakePluginWithExtension()}))
base.BaseTestCase.config_parse()
app = config.load_paste_app('extensions_test_app')
return extensions.ExtensionMiddleware(app, ext_mgr=extension_manager)
def _setup_extensions_test_app(extension_manager=None):
return webtest.TestApp(setup_extensions_middleware(extension_manager))
class SimpleExtensionManager(object):
def __init__(self, resource_ext=None, action_ext=None, request_ext=None):
self.resource_ext = resource_ext
self.action_ext = action_ext
self.request_ext = request_ext
def get_resources(self):
resource_exts = []
if self.resource_ext:
resource_exts.append(self.resource_ext)
return resource_exts
def get_actions(self):
action_exts = []
if self.action_ext:
action_exts.append(self.action_ext)
return action_exts
def get_request_extensions(self):
request_extensions = []
if self.request_ext:
request_extensions.append(self.request_ext)
return request_extensions
class ExtensionExtendedAttributeTestPlugin(
ml2_plugin.Ml2Plugin):
supported_extension_aliases = [
'ext-obj-test', "extended-ext-attr"
]
def __init__(self, configfile=None):
super(ExtensionExtendedAttributeTestPlugin, self)
self.objs = []
self.objh = {}
def create_ext_test_resource(self, context, ext_test_resource):
obj = ext_test_resource['ext_test_resource']
id = _uuid()
obj['id'] = id
self.objs.append(obj)
self.objh.update({id: obj})
return obj
def get_ext_test_resources(self, context, filters=None, fields=None):
return self.objs
def get_ext_test_resource(self, context, id, fields=None):
return self.objh[id]
class ExtensionExtendedAttributeTestCase(base.BaseTestCase):
def setUp(self):
super(ExtensionExtendedAttributeTestCase, self).setUp()
plugin = (
"neutron.tests.unit.api.test_extensions."
"ExtensionExtendedAttributeTestPlugin"
)
# point config file to: neutron/tests/etc/neutron.conf
self.config_parse()
self.setup_coreplugin(plugin)
ext_mgr = extensions.PluginAwareExtensionManager(
extensions_path,
{constants.CORE: ExtensionExtendedAttributeTestPlugin}
)
ext_mgr.extend_resources("2.0", {})
extensions.PluginAwareExtensionManager._instance = ext_mgr
app = config.load_paste_app('extensions_test_app')
self._api = extensions.ExtensionMiddleware(app, ext_mgr=ext_mgr)
self._tenant_id = "8c70909f-b081-452d-872b-df48e6c355d1"
# Save the global RESOURCE_ATTRIBUTE_MAP
self.saved_attr_map = {}
for res, attrs in six.iteritems(attributes.RESOURCE_ATTRIBUTE_MAP):
self.saved_attr_map[res] = attrs.copy()
# Add the resources to the global attribute map
# This is done here as the setup process won't
# initialize the main API router which extends
# the global attribute map
attributes.RESOURCE_ATTRIBUTE_MAP.update(
extattr.EXTENDED_ATTRIBUTES_2_0)
self.agentscheduler_dbMinxin = manager.NeutronManager.get_plugin()
self.addCleanup(self.restore_attribute_map)
quota.QUOTAS._driver = None
cfg.CONF.set_override('quota_driver', 'neutron.quota.ConfDriver',
group='QUOTAS')
def restore_attribute_map(self):
# Restore the original RESOURCE_ATTRIBUTE_MAP
attributes.RESOURCE_ATTRIBUTE_MAP = self.saved_attr_map
def _do_request(self, method, path, data=None, params=None, action=None):
content_type = 'application/json'
body = None
if data is not None: # empty dict is valid
body = wsgi.Serializer().serialize(data, content_type)
req = testlib_api.create_request(
path, body, content_type,
method, query_string=params)
res = req.get_response(self._api)
if res.status_code >= 400:
raise webexc.HTTPClientError(detail=res.body, code=res.status_code)
if res.status_code != webexc.HTTPNoContent.code:
return res.json
def _ext_test_resource_create(self, attr=None):
data = {
"ext_test_resource": {
"tenant_id": self._tenant_id,
"name": "test",
extattr.EXTENDED_ATTRIBUTE: attr
}
}
res = self._do_request('POST', _get_path('ext_test_resources'), data)
return res['ext_test_resource']
def test_ext_test_resource_create(self):
ext_test_resource = self._ext_test_resource_create()
attr = _uuid()
ext_test_resource = self._ext_test_resource_create(attr)
self.assertEqual(ext_test_resource[extattr.EXTENDED_ATTRIBUTE], attr)
def test_ext_test_resource_get(self):
attr = _uuid()
obj = self._ext_test_resource_create(attr)
obj_id = obj['id']
res = self._do_request('GET', _get_path(
'ext_test_resources/{0}'.format(obj_id)))
obj2 = res['ext_test_resource']
self.assertEqual(obj2[extattr.EXTENDED_ATTRIBUTE], attr)
| {
"content_hash": "f730cc9b0aab5be74c200f09c2997081",
"timestamp": "",
"source": "github",
"line_count": 827,
"max_line_length": 79,
"avg_line_length": 40.61547762998791,
"alnum_prop": 0.6156479799934502,
"repo_name": "wenhuizhang/neutron",
"id": "cc3f71c05790dfd63e20f1e58a296efc5ed94a7c",
"size": "34230",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "neutron/tests/unit/api/test_extensions.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Mako",
"bytes": "980"
},
{
"name": "Python",
"bytes": "7385970"
},
{
"name": "Shell",
"bytes": "12912"
}
],
"symlink_target": ""
} |
declare const _default: void;
export = _default;
| {
"content_hash": "9a4d50cda8822f39b050436b0de819f4",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 29,
"avg_line_length": 24.5,
"alnum_prop": 0.7346938775510204,
"repo_name": "iamatypeofwalrus/GlasswavesCo",
"id": "10b43061559fc936207fcdf4d195cc4e07f183ef",
"size": "49",
"binary": false,
"copies": "5",
"ref": "refs/heads/master",
"path": "cdk/node_modules/@aws-cdk/aws-certificatemanager/node_modules/@aws-cdk/cdk/test/cloudformation/test.fn.d.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "132526"
},
{
"name": "HTML",
"bytes": "2138"
}
],
"symlink_target": ""
} |
{% import 'admin/static.html' as admin_static with context %}
{% import 'admin/lib.html' as lib with context %}
{% block body %}
{# content added to modal-content #}
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
{% block header %}<h3>{{ header_text }}</h3>{% endblock %}
</div>
<div class="modal-body">
{{ lib.render_form(form, dir_url, action=request.url, is_modal=True) }}
</div>
{% endblock %}
{% block tail %}
<script src="{{ admin_static.url(filename='admin/js/bs3_modal.js', v='1.0.0') }}"></script>
{% endblock %}
| {
"content_hash": "a5ad08b39a171bb63aa25e07a259ef25",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 128,
"avg_line_length": 38.411764705882355,
"alnum_prop": 0.6294027565084227,
"repo_name": "HermasT/flask-admin",
"id": "7a6fabd8ae639ad44589ef9c56bc8dd362bf3502",
"size": "653",
"binary": false,
"copies": "6",
"ref": "refs/heads/master",
"path": "flask_admin/templates/bootstrap3/admin/file/modals/form.html",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Batchfile",
"bytes": "120"
},
{
"name": "HTML",
"bytes": "91498"
},
{
"name": "JavaScript",
"bytes": "30692"
},
{
"name": "Makefile",
"bytes": "5587"
},
{
"name": "Python",
"bytes": "616050"
},
{
"name": "Shell",
"bytes": "1316"
}
],
"symlink_target": ""
} |
using UnityEngine;
namespace SteamworksWrapper {
public sealed partial class Steam : MonoBehaviour {
public static class UserStats {
public static bool SetIntStat(string name, int stat) {
if (!steamInitialized) {
return false;
}
if (NativeMethods.UserStats_SetStatInt(name, stat)) {
needsStatsToStore = true;
return true;
}
return false;
}
public static bool SetFloatStat(string name, float stat) {
if (!steamInitialized) {
return false;
}
if (NativeMethods.UserStats_SetStatFloat(name, stat)) {
needsStatsToStore = true;
return true;
}
return false;
}
public static bool GetIntStat(string name, out int stat) {
stat = 0;
if (!steamInitialized) {
return false;
}
return NativeMethods.UserStats_GetStatInt(name, ref stat);
}
public static bool GetFloatStat(string name, out float stat) {
stat = 0;
if (!steamInitialized) {
return false;
}
return NativeMethods.UserStats_GetStatFloat(name, ref stat);
}
public static bool GrowIntStatBy(string name, int val) {
if (!steamInitialized) {
return false;
}
int s = 0;
if (NativeMethods.UserStats_GetStatInt(name, ref s) && NativeMethods.UserStats_SetStatInt(name, s + val)) {
needsStatsToStore = true;
return true;
}
return false;
}
public static bool GrowFloatStatBy(string name, float val) {
if (!steamInitialized) {
return false;
}
float s = 0;
if (NativeMethods.UserStats_GetStatFloat(name, ref s) && NativeMethods.UserStats_SetStatFloat(name, s + val)) {
needsStatsToStore = true;
return true;
}
return false;
}
public static bool ResetAllStatsAndRemoveAchievements() {
if (!steamInitialized) {
return false;
}
if (NativeMethods.UserStats_ResetAllStatsAndRemoveAchievements()) {
NativeMethods.UserStats_RequestCurrentStats();
needsStatsToStore = true;
return true;
}
return false;
}
public static bool RequestCurrentStats() {
if (!steamInitialized) {
return false;
}
return NativeMethods.UserStats_RequestCurrentStats();
}
public static bool UnlockAchievement(string name) {
if (!steamInitialized) {
return false;
}
if (NativeMethods.UserStats_IsAchievementSet(name)) {
Debug.Log("Unlocked an achievement: " + name + " [already unlocked]");
return false;
}
if (NativeMethods.UserStats_SetAchievement(name)) {
Debug.Log("Unlocked an achievement: " + name);
needsStatsToStore = true;
return true;
}
return false;
}
public static bool IsAchievementSet(string name) {
if (!steamInitialized) {
return false;
}
return NativeMethods.UserStats_IsAchievementSet(name);
}
}
}
} | {
"content_hash": "f1c55670c5405f35fc2bbff28ab12294",
"timestamp": "",
"source": "github",
"line_count": 131,
"max_line_length": 127,
"avg_line_length": 30.51145038167939,
"alnum_prop": 0.4628471353515136,
"repo_name": "s-m-k/SteamworksWrapper",
"id": "cfa1086aa15c1c7464603051474a1ec7855df66c",
"size": "3999",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Assets/SteamworksWrapper/Modules/UserStats.cs",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "C",
"bytes": "100739"
},
{
"name": "C#",
"bytes": "580262"
},
{
"name": "C++",
"bytes": "473039"
},
{
"name": "Objective-C",
"bytes": "3590"
},
{
"name": "Python",
"bytes": "1469"
},
{
"name": "Shell",
"bytes": "126"
}
],
"symlink_target": ""
} |
<?php
global $variabe;
$variable = "This has been loaded from the MODEL PHP file";
?> | {
"content_hash": "de102ee50207f132f195f841470e0293",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 63,
"avg_line_length": 16,
"alnum_prop": 0.625,
"repo_name": "Zelig880/basic-php-template-engine",
"id": "39b3b8415b597453c810857228e6c79df43d9508",
"size": "96",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "mvc/model/pages/php/index.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "46"
},
{
"name": "HTML",
"bytes": "8674"
},
{
"name": "JavaScript",
"bytes": "67"
},
{
"name": "PHP",
"bytes": "3320"
}
],
"symlink_target": ""
} |
body {
height: 100%;
color: #3e444d;
background-color: #f4f5f7;
}
html {
height: 100% !important;
-ms-overflow-style: scrollbar;
}
#wrapper {
height: 100%;
width: 100%;
}
img {
-webkit-backface-visibility: hidden;
width: auto\9;
height: auto;
max-width: 100%;
vertical-align: middle;
border: 0;
-ms-interpolation-mode: bicubic;
}
section,
aside {
padding: 50px 0;
}
@media (min-width: 767px) {
section {
padding: 100px 0;
}
}
.well {
border: none;
box-shadow: none;
background-color: #ebedf1;
}
.jumbotron {
background-color: #fdfdfd;
}
.page-header {
border-bottom-color: #d6dae2;
}
.img-light-border {
border: 5px solid #f4f5f7;
}
.img-dark-border {
border: 5px solid #3e444d;
}
.light-faded-border {
border: solid 15px rgba(244, 245, 247, 0.5);
}
.dark-faded-border {
border: solid 15px rgba(62, 68, 77, 0.5);
}
.img-centered {
margin: 0 auto;
}
.nopadding {
padding: 0;
}
.nomargin {
margin: 0;
}
.padding-top {
padding-top: 100px;
}
.padding-bottom {
padding-bottom: 100px;
}
::-moz-selection {
text-shadow: none;
background: rgba(175, 208, 186, 0.5);
}
::selection {
text-shadow: none;
background: rgba(175, 208, 186, 0.5);
}
img::selection {
background: transparent;
}
img::-moz-selection {
background: transparent;
}
body {
webkit-tap-highlight-color: rgba(175, 208, 186, 0.5);
}
.owl-theme .owl-controls .owl-page span {
background: #c8cdd7;
}
.owl-theme .owl-controls .owl-buttons div {
background: #c8cdd7;
}
.modal-dialog {
margin: 0;
border-radius: 0;
width: 100%;
height: 100%;
}
.modal-content {
border-radius: 0;
background-clip: border-box;
-webkit-box-shadow: none;
box-shadow: none;
border: none;
min-height: 100%;
}
body {
font-family: "Lora", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: normal;
text-transform: none;
font-size: 16px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
h1 {
font-size: 40px;
}
h2 {
font-size: 36px;
}
p {
margin: 0 0 20px;
}
.serif {
font-family: "Lora", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: normal;
text-transform: none;
}
.sans-serif {
font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.heading {
font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.script {
font-family: "Pacifico", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.allcaps {
text-transform: uppercase !important;
}
hr.primary,
hr.light,
hr.dark {
max-width: 100px;
margin: 25px auto;
border-bottom: none;
}
hr.primary {
border-top: 6px solid #afd0ba;
}
hr.light {
border-top: 6px solid #f4f5f7;
}
hr.dark {
border-top: 6px solid #3e444d;
}
hr.primary-small,
hr.light-small,
hr.dark-small {
max-width: 50px;
margin: 15px auto;
}
hr.primary-small {
border-top: 3px solid #afd0ba;
}
hr.light-small {
border-top: 3px solid #f4f5f7;
}
hr.dark-small {
border-top: 3px solid #3e444d;
}
.text-dark {
color: #3e444d;
}
.text-light {
color: #f4f5f7;
}
.text-primary {
color: #afd0ba;
}
.text-success {
color: #2ecc71;
}
.text-info {
color: #5fc9d3;
}
.text-warning {
color: #e67e22;
}
.text-danger {
color: #e74c3c;
}
@media (min-width: 767px) {
p {
margin: 0 0 30px;
font-size: 18px;
line-height: 1.6;
}
}
a {
color: #afd0ba;
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
a:hover,
a:focus {
text-decoration: none;
color: #8fbd9e;
outline: none;
}
a.light-text {
color: #d6dae2;
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
a.light-text:hover,
a.light-text:focus {
text-decoration: none;
color: #b9bfcc;
outline: none;
}
.navbar {
text-transform: uppercase;
font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 14px;
}
.navbar-dark,
.navbar-light {
background-color: #3e444d;
margin-bottom: 0;
border-bottom: 1px solid #33383f;
}
.navbar-dark a,
.navbar-light a {
color: #f4f5f7;
}
.navbar-dark .navbar-brand,
.navbar-light .navbar-brand {
font-weight: 700;
padding: 0;
}
.navbar-dark .navbar-brand:focus,
.navbar-light .navbar-brand:focus {
outline: none;
}
.navbar-dark .navbar-brand .logo,
.navbar-light .navbar-brand .logo {
display: inherit;
}
.navbar-dark .navbar-brand .logo-collapse,
.navbar-light .navbar-brand .logo-collapse {
display: none;
}
.navbar-dark .navbar-brand .logo img,
.navbar-light .navbar-brand .logo img,
.navbar-dark .navbar-brand .logo-collapse img,
.navbar-light .navbar-brand .logo-collapse img {
max-height: 40px;
margin: 7px 0 0 10px;
}
.nav > li > a:hover,
.nav > li > a:focus {
background-color: rgba(244, 245, 247, 0.5);
}
.navbar-toggle {
padding: 4px 6px;
font-size: 16px;
color: #f4f5f7;
}
.navbar-toggle:focus,
.navbar-toggle:active {
outline: none;
}
@media (min-width: 767px) {
.navbar-dark,
.navbar-light {
padding: 20px 0;
border-bottom: none;
letter-spacing: 1px;
background: transparent;
-webkit-transition: background 0.5s ease-in-out, padding 0.5s ease-in-out;
-moz-transition: background 0.5s ease-in-out, padding 0.5s ease-in-out;
transition: background 0.5s ease-in-out, padding 0.5s ease-in-out;
}
.navbar-dark .navbar-brand .logo img,
.navbar-light .navbar-brand .logo img,
.navbar-dark .navbar-brand .logo-collapse img,
.navbar-light .navbar-brand .logo-collapse img {
max-height: 50px;
margin: 0;
}
.navbar-dark .nav li,
.navbar-light .nav li {
margin-right: 0;
}
.navbar-dark .nav li:last-child,
.navbar-light .nav li:last-child {
margin-right: 0px;
}
.navbar-dark .nav li a,
.navbar-light .nav li a {
color: #f4f5f7;
-webkit-transition: color 0.3s;
-moz-transition: color 0.3s;
transition: color 0.3s;
}
.navbar-dark .nav li a:after,
.navbar-light .nav li a:after {
position: absolute;
width: 50%;
margin: 0 auto;
left: 0;
right: 0;
bottom: 0;
height: 3px;
background: #afd0ba;
content: '';
opacity: 0;
-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
-moz-transition: opacity 0.3s, -moz-transform 0.3s;
transition: opacity 0.3s, transform 0.3s;
-webkit-transform: translateY(-10px);
-moz-transform: translateY(-10px);
transform: translateY(-10px);
}
.navbar-dark .nav li a::after,
.navbar-light .nav li a::after {
bottom: 0;
-webkit-transform: translateY(10px);
-moz-transform: translateY(10px);
transform: translateY(10px);
}
.navbar-dark .nav li a:hover,
.navbar-light .nav li a:hover,
.navbar-dark .nav li a:focus,
.navbar-light .nav li a:focus,
.navbar-dark .nav li a:active,
.navbar-light .nav li a:active {
color: #f4f5f7;
outline: none;
background-color: transparent;
}
.navbar-dark .nav li a:hover::after,
.navbar-light .nav li a:hover::after,
.navbar-dark .nav li a:focus::after,
.navbar-light .nav li a:focus::after {
opacity: 1;
-webkit-transform: translateY(0px);
-moz-transform: translateY(0px);
transform: translateY(0px);
}
.navbar-dark .nav li.active a,
.navbar-light .nav li.active a {
background-color: transparent;
color: #afd0ba !important;
}
.navbar-dark.top-nav-collapse,
.navbar-light.top-nav-collapse {
padding: 5px 0;
border-bottom: 1px solid;
border-color: rgba(62, 68, 77, 0.5);
}
.navbar-dark.top-nav-collapse {
background-color: #3e444d;
border-color: #33383f;
}
.navbar-dark.top-nav-collapse a {
color: #f4f5f7;
}
.navbar-dark.top-nav-collapse li a {
color: #f4f5f7;
}
.navbar-dark.top-nav-collapse .nav li a {
color: #f4f5f7;
}
.navbar-dark.top-nav-collapse .nav li a:after {
background: #afd0ba;
}
.navbar-dark.top-nav-collapse .nav li a:hover,
.navbar-dark.top-nav-collapse .nav li a:focus,
.navbar-dark.top-nav-collapse .nav li a:active {
color: #f4f5f7;
}
.navbar-light.top-nav-collapse {
background-color: #f4f5f7;
border-color: rgba(62, 68, 77, 0.5);
}
.navbar-light.top-nav-collapse .navbar-brand .logo {
display: none;
}
.navbar-light.top-nav-collapse .navbar-brand .logo-collapse {
display: inherit;
}
.navbar-light.top-nav-collapse a {
color: #3e444d;
}
.navbar-light.top-nav-collapse li a {
color: #3e444d;
}
.navbar-light.top-nav-collapse .nav li a {
color: #3e444d;
}
.navbar-light.top-nav-collapse .nav li a:after {
background: #afd0ba;
}
.navbar-light.top-nav-collapse .nav li a:hover,
.navbar-light.top-nav-collapse .nav li a:focus,
.navbar-light.top-nav-collapse .nav li a:active {
color: #3e444d;
}
}
.intro-img,
.intro-img-half,
.intro-slider,
.intro-slider-half,
.intro-video {
width: 100%;
text-align: center;
}
.intro-img .intro-welcome,
.intro-img-half .intro-welcome,
.intro-slider .intro-welcome,
.intro-slider-half .intro-welcome,
.intro-video .intro-welcome {
font-size: 20px;
margin: 0;
font-family: "Pacifico", "Helvetica Neue", Helvetica, Arial, sans-serif;
text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}
.intro-img .brand-heading,
.intro-img-half .brand-heading,
.intro-slider .brand-heading,
.intro-slider-half .brand-heading,
.intro-video .brand-heading {
font-size: 30px;
margin: 0;
text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
text-transform: uppercase;
}
.intro-img .intro-body,
.intro-img-half .intro-body,
.intro-slider .intro-body,
.intro-slider-half .intro-body,
.intro-video .intro-body {
position: relative;
}
.intro-img .overlay,
.intro-img-half .overlay,
.intro-slider .overlay,
.intro-slider-half .overlay,
.intro-video .overlay {
display: none;
}
@media (min-width: 768px) {
.intro-img .intro-welcome,
.intro-slider .intro-welcome,
.intro-video .intro-welcome,
.intro-img-half .intro-welcome,
.intro-slider-half .intro-welcome {
font-size: 30px;
margin: 0 0 -10px;
}
.intro-img .brand-heading,
.intro-slider .brand-heading,
.intro-video .brand-heading,
.intro-img-half .brand-heading,
.intro-slider-half .brand-heading {
font-size: 55px;
}
.intro-img .intro-body,
.intro-slider .intro-body,
.intro-video .intro-body,
.intro-img-half .intro-body,
.intro-slider-half .intro-body {
position: absolute;
right: 0;
left: 0;
bottom: 0;
}
.intro-img .overlay,
.intro-slider .overlay,
.intro-video .overlay,
.intro-img-half .overlay,
.intro-slider-half .overlay {
display: block;
width: 100%;
background-color: black;
background-image: url('../img/diagonal-noise.png');
opacity: 0.3;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
}
@media (min-width: 1025px) {
.intro-img .intro-welcome,
.intro-slider .intro-welcome,
.intro-video .intro-welcome,
.intro-img-half .intro-welcome,
.intro-slider-half .intro-welcome {
font-size: 40px;
}
.intro-img .brand-heading,
.intro-slider .brand-heading,
.intro-video .brand-heading,
.intro-img-half .brand-heading,
.intro-slider-half .brand-heading {
font-size: 70px;
}
}
.intro-img,
.intro-img-half,
.intro-video {
height: auto;
}
.intro-img,
.intro-img-half,
.intro-video {
padding: 100px 0 50px;
}
.intro-slider,
.intro-slider-half {
padding: 0;
height: 500px;
}
@media only screen and (min-width: 768px) {
.intro-img,
.intro-slider,
.intro-video,
.video-bg {
padding: 0;
height: 100%;
min-height: 0;
}
.intro-img .overlay,
.intro-slider .overlay,
.intro-video .overlay,
.video-bg .overlay {
height: 100%;
}
.intro-img-half {
height: 60%;
min-height: 0;
}
.intro-img-half .overlay {
height: 60%;
min-height: 0;
}
.intro-slider-half {
height: 60%;
min-height: 0;
}
.intro-slider-half .overlay {
height: 100%;
min-height: 0;
}
}
@media (min-width: 768px) {
.intro-img .intro-body,
.intro-video .intro-body {
top: 30%;
}
.intro-img-half .intro-body {
top: 15%;
}
.intro-slider .intro-body {
top: 0;
}
.intro-slider-half .intro-body {
top: 0;
margin-top: -25px;
}
}
.intro-img,
.intro-img-half {
background-color: #3e444d;
background-repeat: no-repeat;
background-position: center center;
background-attachment: scroll;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-o-background-size: cover;
}
.intro-img .carousel h4,
.intro-img-half .carousel h4 {
font-size: 16px;
height: 50px;
}
.intro-slider,
.intro-slider-half {
background-color: #3e444d;
}
.intro-slider .carousel,
.intro-slider-half .carousel {
height: 100%;
}
.intro-slider .carousel h4,
.intro-slider-half .carousel h4 {
font-size: 22px;
}
.intro-slider .carousel-inner,
.intro-slider-half .carousel-inner {
height: 100%;
}
.intro-slider .item,
.intro-slider-half .item {
height: 100%;
}
.intro-slider .carousel-caption,
.intro-slider-half .carousel-caption {
width: 100%;
left: 0;
right: 0;
top: 100px;
bottom: 0;
}
.intro-slider .fill,
.intro-slider-half .fill {
width: 100%;
height: 100%;
background-position: center;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-o-background-size: cover;
}
@media (min-width: 768px) {
.intro-slider .carousel-caption,
.intro-slider-half .carousel-caption {
width: auto;
right: 0;
left: 0;
top: 30%;
bottom: 0;
}
.intro-slider .carousel h4,
.intro-slider-half .carousel h4 {
font-size: 26px;
}
.intro-slider .carousel-caption,
.intro-slider-half .carousel-caption {
width: auto;
}
}
.video-bg {
position: relative;
width: 100%;
background: rgba(0, 0, 0, 0.5);
}
.intro-video {
position: relative;
background: no-repeat bottom center scroll;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-o-background-size: cover;
z-index: 1;
}
@media (min-width: 768px) {
.intro-video {
position: absolute;
background: transparent;
}
}
.intro-img .carousel h4,
.intro-img-half .carousel h4,
.intro-video .carousel h4 {
font-size: 16px;
height: 50px;
}
@media (min-width: 768px) {
.intro-img .carousel h4,
.intro-img-half .carousel h4,
.intro-video .carousel h4 {
font-size: 22px;
height: auto;
}
}
@media (min-width: 1025px) {
.intro-img .carousel h4,
.intro-img-half .carousel h4,
.intro-video .carousel h4 {
font-size: 26px;
height: auto;
}
}
.intro-dark-bg {
color: #f4f5f7;
}
.intro-light-bg {
color: #3e444d;
}
.carousel-fade .carousel-inner .item {
opacity: 0;
-webkit-transition-property: opacity;
-moz-transition-property: opacity;
-o-transition-property: opacity;
transition-property: opacity;
}
.carousel-fade .carousel-inner .active {
opacity: 1;
}
.carousel-fade .carousel-inner .active.left,
.carousel-fade .carousel-inner .active.right {
left: 0;
opacity: 0;
z-index: 1;
}
.carousel-fade .carousel-inner .next.left,
.carousel-fade .carousel-inner .prev.right {
opacity: 1;
}
.carousel-fade .carousel-control {
z-index: 2;
}
.btn-scroll-dark,
.btn-scroll-light {
font-size: 30px;
background: transparent;
height: 55px;
width: 55px;
border-radius: 100%;
line-height: 45px;
margin-top: 5px;
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
.btn-scroll-dark:hover,
.btn-scroll-light:hover,
.btn-scroll-dark:focus,
.btn-scroll-light:focus,
.btn-scroll-dark:active,
.btn-scroll-light:active {
outline: none;
}
.btn-scroll-dark {
color: #3e444d;
border: 2px solid #3e444d;
}
.btn-scroll-dark:hover,
.btn-scroll-dark:focus,
.btn-scroll-dark:active {
color: #3e444d;
background: rgba(62, 68, 77, 0.2);
}
.btn-scroll-light {
color: #f4f5f7;
border: 2px solid #f4f5f7;
}
.btn-scroll-light:hover,
.btn-scroll-light:focus,
.btn-scroll-light:active {
color: #f4f5f7;
background: rgba(244, 245, 247, 0.2);
}
@media (min-width: 768px) {
.btn-scroll-dark,
.btn-scroll-light {
margin-top: 30px;
}
}
.about-1 #about-1-carousel .item,
.about-3 #about-1-carousel .item,
.about-1 #about-3-carousel .item,
.about-3 #about-3-carousel .item {
margin: 30px;
}
.about-1 #about-1-carousel .item .info .list-inline,
.about-3 #about-1-carousel .item .info .list-inline,
.about-1 #about-3-carousel .item .info .list-inline,
.about-3 #about-3-carousel .item .info .list-inline {
font-size: 18px;
}
.about-1 #about-1-carousel .item .info p,
.about-3 #about-1-carousel .item .info p,
.about-1 #about-3-carousel .item .info p,
.about-3 #about-3-carousel .item .info p {
margin: 0 0 10px;
}
@media (min-width: 767px) {
.about-1 #about-1-carousel .item,
.about-3 #about-1-carousel .item,
.about-1 #about-3-carousel .item,
.about-3 #about-3-carousel .item {
width: 225px;
height: 225px;
margin: 15px auto;
border-radius: 50%;
position: relative;
cursor: default;
box-shadow: inset 0 0 0 15px rgba(244, 245, 247, 0.5);
-webkit-transition: all 0.4s ease-in-out;
-moz-transition: all 0.4s ease-in-out;
-o-transition: all 0.4s ease-in-out;
-ms-transition: all 0.4s ease-in-out;
transition: all 0.4s ease-in-out;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-o-background-size: cover;
}
.about-1 #about-1-carousel .item:hover,
.about-3 #about-1-carousel .item:hover,
.about-1 #about-3-carousel .item:hover,
.about-3 #about-3-carousel .item:hover {
box-shadow: none;
}
.about-1 #about-1-carousel .item:hover .info,
.about-3 #about-1-carousel .item:hover .info,
.about-1 #about-3-carousel .item:hover .info,
.about-3 #about-3-carousel .item:hover .info {
-webkit-transform: scale(1);
-moz-transform: scale(1);
-o-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
opacity: 1;
}
.about-1 #about-1-carousel .item:hover .info p,
.about-3 #about-1-carousel .item:hover .info p,
.about-1 #about-3-carousel .item:hover .info p,
.about-3 #about-3-carousel .item:hover .info p,
.about-1 #about-1-carousel .item:hover .info ul,
.about-3 #about-1-carousel .item:hover .info ul,
.about-1 #about-3-carousel .item:hover .info ul,
.about-3 #about-3-carousel .item:hover .info ul {
opacity: 1;
}
.about-1 #about-1-carousel .item .info,
.about-3 #about-1-carousel .item .info,
.about-1 #about-3-carousel .item .info,
.about-3 #about-3-carousel .item .info {
position: absolute;
background: rgba(175, 208, 186, 0.8);
width: inherit;
height: inherit;
border-radius: 50%;
opacity: 0;
-webkit-transition: all 0.4s ease-in-out;
-moz-transition: all 0.4s ease-in-out;
-o-transition: all 0.4s ease-in-out;
-ms-transition: all 0.4s ease-in-out;
transition: all 0.4s ease-in-out;
-webkit-transform: scale(0);
-moz-transform: scale(0);
-o-transform: scale(0);
-ms-transform: scale(0);
transform: scale(0);
-webkit-backface-visibility: hidden;
}
.about-1 #about-1-carousel .item .info h3,
.about-3 #about-1-carousel .item .info h3,
.about-1 #about-3-carousel .item .info h3,
.about-3 #about-3-carousel .item .info h3 {
color: #f4f5f7;
font-size: 24px;
margin: 0 30px;
padding: 45px 0 0 0;
height: 120px;
}
.about-1 #about-1-carousel .item .info p,
.about-3 #about-1-carousel .item .info p,
.about-1 #about-3-carousel .item .info p,
.about-3 #about-3-carousel .item .info p {
color: #f4f5f7;
color: rgba(244, 245, 247, 0.8);
padding: 10px 5px;
font-style: italic;
margin: 0 30px;
font-size: 14px;
border-top: 1px solid rgba(244, 245, 247, 0.5);
opacity: 0;
-webkit-transition: all 0.4s ease-in-out 0.4s;
-moz-transition: all 0.4s ease-in-out 0.4s;
-o-transition: all 0.4s ease-in-out 0.4s;
-ms-transition: all 0.4s ease-in-out 0.4s;
transition: all 0.4s ease-in-out 0.4s;
}
.about-1 #about-1-carousel .item .info ul,
.about-3 #about-1-carousel .item .info ul,
.about-1 #about-3-carousel .item .info ul,
.about-3 #about-3-carousel .item .info ul {
opacity: 0;
-webkit-transition: all 0.4s ease-in-out 0.4s;
-moz-transition: all 0.4s ease-in-out 0.4s;
-o-transition: all 0.4s ease-in-out 0.4s;
-ms-transition: all 0.4s ease-in-out 0.4s;
transition: all 0.4s ease-in-out 0.4s;
}
.about-1 #about-1-carousel .item .info ul li a,
.about-3 #about-1-carousel .item .info ul li a,
.about-1 #about-3-carousel .item .info ul li a,
.about-3 #about-3-carousel .item .info ul li a {
color: #f4f5f7;
color: rgba(244, 245, 247, 0.8);
}
.about-1 #about-1-carousel .item .info ul li a:hover,
.about-3 #about-1-carousel .item .info ul li a:hover,
.about-1 #about-3-carousel .item .info ul li a:hover,
.about-3 #about-3-carousel .item .info ul li a:hover {
color: #f4f5f7;
}
}
@media (min-width: 767px) {
.about-img-1 {
background-image: url(../img/demo-portraits/portrait-1.jpg);
}
.about-img-2 {
background-image: url(../img/demo-portraits/portrait-2.jpg);
}
.about-img-3 {
background-image: url(../img/demo-portraits/portrait-3.jpg);
}
.about-img-4 {
background-image: url(../img/demo-portraits/portrait-4.jpg);
}
}
.blog-1 .blog-col {
max-width: 400px;
margin: 0 auto;
}
.blog-1 .blog-col .blog-preview-img {
display: block;
position: relative;
}
.blog-1 .blog-col .blog-preview-img .caption {
background: rgba(62, 68, 77, 0.9);
position: absolute;
width: 100%;
height: 100%;
opacity: 0;
transition: all ease 0.5s;
-webkit-transition: all ease 0.5s;
-moz-transition: all ease 0.5s;
}
.blog-1 .blog-col .blog-preview-img .caption:hover {
opacity: 1;
}
.blog-1 .blog-col .blog-preview-img .caption .caption-content {
position: absolute;
text-align: center;
top: 50%;
left: 0;
right: 0;
margin-top: -15px;
color: #f4f5f7;
}
.blog-1 .blog-col .blog-preview-img * {
z-index: 2;
}
.blog-1 .blog-col .blog-preview-content {
background-color: #f4f5f7;
color: #3e444d;
padding: 25px;
margin-bottom: 15px;
}
.blog-1 .blog-col .blog-preview-content h3 {
margin: 0 0 10px;
}
.blog-1 .blog-col .blog-preview-content h3 a {
color: #3e444d;
}
.blog-1 .blog-col .blog-preview-content h3 a:hover {
color: #afd0ba;
}
.blog-1 .blog-col .blog-preview-content p {
font-size: 16px;
margin: 0;
padding-bottom: 5px;
}
.blog-1 .blog-col .blog-preview-content ul.meta {
font-size: 14px;
color: rgba(62, 68, 77, 0.5);
}
.blog-1 .blog-col .blog-preview-content .continue {
font-size: 14px;
padding-bottom: 15px;
}
@media (min-width: 767px) {
.blog-1 .blog-preview-content {
margin-bottom: 30px;
}
}
.blog-2 .blog-col {
margin-bottom: 15px;
}
.blog-2 .blog-col .blog-item {
display: block;
position: relative;
max-width: 400px;
margin: 0 auto;
}
.blog-2 .blog-col .blog-item .caption {
background: rgba(62, 68, 77, 0.9);
position: absolute;
width: 100%;
height: 100%;
opacity: 0;
transition: all ease 0.5s;
-webkit-transition: all ease 0.5s;
-moz-transition: all ease 0.5s;
}
.blog-2 .blog-col .blog-item .caption:hover {
opacity: 1;
}
.blog-2 .blog-col .blog-item .caption .caption-content {
padding: 25px;
color: #f4f5f7;
}
.blog-2 .blog-col .blog-item .caption .caption-content h3 {
margin: 0;
padding-bottom: 15px;
}
.blog-2 .blog-col .blog-item .caption .caption-content p {
font-size: 16px;
margin: 0;
padding-bottom: 15px;
}
.blog-2 .blog-col .blog-item .caption .caption-content ul.meta {
font-size: 14px;
color: rgba(62, 68, 77, 0.5);
}
.blog-2 * {
z-index: 2;
}
@media (min-width: 767px) {
.blog-2 .blog-col {
margin-bottom: 30px;
}
}
.contact-1 form .floating-label-form-group,
.contact-2 form .floating-label-form-group {
position: relative;
margin-bottom: 0;
padding-bottom: 0.5em;
}
.contact-1 form .floating-label-form-group input,
.contact-2 form .floating-label-form-group input,
.contact-1 form .floating-label-form-group textarea,
.contact-2 form .floating-label-form-group textarea {
z-index: 1;
position: relative;
padding-right: 0;
padding-left: 0;
border: none;
border-radius: 0;
font-size: 1.5em;
background: none;
box-shadow: none !important;
resize: none;
}
.contact-1 form .floating-label-form-group label,
.contact-2 form .floating-label-form-group label {
display: block;
z-index: 0;
position: relative;
top: 2em;
margin: 0;
font-size: 0.85em;
line-height: 1.764705882em;
vertical-align: middle;
vertical-align: baseline;
opacity: 0;
-webkit-transition: top 0.3s ease,opacity 0.3s ease;
-moz-transition: top 0.3s ease,opacity 0.3s ease;
-ms-transition: top 0.3s ease,opacity 0.3s ease;
transition: top 0.3s ease,opacity 0.3s ease;
}
.contact-1 form .floating-label-form-group::not(:first-child),
.contact-2 form .floating-label-form-group::not(:first-child) {
padding-left: 14px;
}
.contact-1 form .floating-label-form-group-with-value label,
.contact-2 form .floating-label-form-group-with-value label {
top: 0;
opacity: 1;
}
.contact-1 form .floating-label-form-group-with-focus label,
.contact-2 form .floating-label-form-group-with-focus label {
color: #afd0ba;
}
.contact-1 form .floating-label-form-group,
.contact-1.bg-lighter form .floating-label-form-group,
.contact-2 form .floating-label-form-group,
.contact-2.bg-lighter form .floating-label-form-group,
.contact-1.bg-parallax-light form .floating-label-form-group,
.contact-2.bg-parallax-light form .floating-label-form-group {
border-bottom: 1px solid #555d69;
}
.contact-1 form .floating-label-form-group::not(:first-child),
.contact-1.bg-lighter form .floating-label-form-group::not(:first-child),
.contact-2 form .floating-label-form-group::not(:first-child),
.contact-2.bg-lighter form .floating-label-form-group::not(:first-child),
.contact-1.bg-parallax-light form .floating-label-form-group::not(:first-child),
.contact-2.bg-parallax-light form .floating-label-form-group::not(:first-child) {
border-left: 1px solid #555d69;
}
.contact-1 form .floating-label-form-group .form-control,
.contact-1.bg-lighter form .floating-label-form-group .form-control,
.contact-2 form .floating-label-form-group .form-control,
.contact-2.bg-lighter form .floating-label-form-group .form-control,
.contact-1.bg-parallax-light form .floating-label-form-group .form-control,
.contact-2.bg-parallax-light form .floating-label-form-group .form-control {
color: #6b7686;
}
.contact-1 form .row:first-child .floating-label-form-group,
.contact-1.bg-lighter form .row:first-child .floating-label-form-group,
.contact-2 form .row:first-child .floating-label-form-group,
.contact-2.bg-lighter form .row:first-child .floating-label-form-group,
.contact-1.bg-parallax-light form .row:first-child .floating-label-form-group,
.contact-2.bg-parallax-light form .row:first-child .floating-label-form-group {
border-top: 1px solid #555d69;
}
.contact-1 ::-webkit-input-placeholder,
.contact-1.bg-lighter ::-webkit-input-placeholder,
.contact-2 ::-webkit-input-placeholder,
.contact-2.bg-lighter ::-webkit-input-placeholder,
.contact-1.bg-parallax-light ::-webkit-input-placeholder,
.contact-2.bg-parallax-light ::-webkit-input-placeholder {
color: #555d69 !important;
}
.contact-1 :-moz-placeholder,
.contact-1.bg-lighter :-moz-placeholder,
.contact-2 :-moz-placeholder,
.contact-2.bg-lighter :-moz-placeholder,
.contact-1.bg-parallax-light :-moz-placeholder,
.contact-2.bg-parallax-light :-moz-placeholder {
color: #555d69 !important;
}
.contact-1 ::-moz-placeholder,
.contact-1.bg-lighter ::-moz-placeholder,
.contact-2 ::-moz-placeholder,
.contact-2.bg-lighter ::-moz-placeholder,
.contact-1.bg-parallax-light ::-moz-placeholder,
.contact-2.bg-parallax-light ::-moz-placeholder {
color: #555d69 !important;
}
.contact-1 :-ms-input-placeholder,
.contact-1.bg-lighter :-ms-input-placeholder,
.contact-2 :-ms-input-placeholder,
.contact-2.bg-lighter :-ms-input-placeholder,
.contact-1.bg-parallax-light :-ms-input-placeholder,
.contact-2.bg-parallax-light :-ms-input-placeholder {
color: #555d69 !important;
}
.contact-1.bg-parallax-dark form .floating-label-form-group,
.contact-1.bg-dark form .floating-label-form-group,
.contact-1.bg-primary form .floating-label-form-group,
.contact-1.bg-secondary form .floating-label-form-group,
.contact-1.bg-success form .floating-label-form-group,
.contact-1.bg-info form .floating-label-form-group,
.contact-1.bg-warning form .floating-label-form-group,
.contact-1.bg-danger form .floating-label-form-group,
.contact-2.bg-parallax-dark form .floating-label-form-group,
.contact-2.bg-dark form .floating-label-form-group,
.contact-2.bg-primary form .floating-label-form-group,
.contact-2.bg-secondary form .floating-label-form-group,
.contact-2.bg-success form .floating-label-form-group,
.contact-2.bg-info form .floating-label-form-group,
.contact-2.bg-warning form .floating-label-form-group,
.contact-2.bg-danger form .floating-label-form-group {
border-bottom: 1px solid #f4f5f7;
}
.contact-1.bg-parallax-dark form .floating-label-form-group::not(:first-child),
.contact-1.bg-dark form .floating-label-form-group::not(:first-child),
.contact-1.bg-primary form .floating-label-form-group::not(:first-child),
.contact-1.bg-secondary form .floating-label-form-group::not(:first-child),
.contact-1.bg-success form .floating-label-form-group::not(:first-child),
.contact-1.bg-info form .floating-label-form-group::not(:first-child),
.contact-1.bg-warning form .floating-label-form-group::not(:first-child),
.contact-1.bg-danger form .floating-label-form-group::not(:first-child),
.contact-2.bg-parallax-dark form .floating-label-form-group::not(:first-child),
.contact-2.bg-dark form .floating-label-form-group::not(:first-child),
.contact-2.bg-primary form .floating-label-form-group::not(:first-child),
.contact-2.bg-secondary form .floating-label-form-group::not(:first-child),
.contact-2.bg-success form .floating-label-form-group::not(:first-child),
.contact-2.bg-info form .floating-label-form-group::not(:first-child),
.contact-2.bg-warning form .floating-label-form-group::not(:first-child),
.contact-2.bg-danger form .floating-label-form-group::not(:first-child) {
border-left: 1px solid #f4f5f7;
}
.contact-1.bg-parallax-dark form .floating-label-form-group .form-control,
.contact-1.bg-dark form .floating-label-form-group .form-control,
.contact-1.bg-primary form .floating-label-form-group .form-control,
.contact-1.bg-secondary form .floating-label-form-group .form-control,
.contact-1.bg-success form .floating-label-form-group .form-control,
.contact-1.bg-info form .floating-label-form-group .form-control,
.contact-1.bg-warning form .floating-label-form-group .form-control,
.contact-1.bg-danger form .floating-label-form-group .form-control,
.contact-2.bg-parallax-dark form .floating-label-form-group .form-control,
.contact-2.bg-dark form .floating-label-form-group .form-control,
.contact-2.bg-primary form .floating-label-form-group .form-control,
.contact-2.bg-secondary form .floating-label-form-group .form-control,
.contact-2.bg-success form .floating-label-form-group .form-control,
.contact-2.bg-info form .floating-label-form-group .form-control,
.contact-2.bg-warning form .floating-label-form-group .form-control,
.contact-2.bg-danger form .floating-label-form-group .form-control {
color: #ffffff;
}
.contact-1.bg-parallax-dark form .row:first-child .floating-label-form-group,
.contact-1.bg-dark form .row:first-child .floating-label-form-group,
.contact-1.bg-primary form .row:first-child .floating-label-form-group,
.contact-1.bg-secondary form .row:first-child .floating-label-form-group,
.contact-1.bg-success form .row:first-child .floating-label-form-group,
.contact-1.bg-info form .row:first-child .floating-label-form-group,
.contact-1.bg-warning form .row:first-child .floating-label-form-group,
.contact-1.bg-danger form .row:first-child .floating-label-form-group,
.contact-2.bg-parallax-dark form .row:first-child .floating-label-form-group,
.contact-2.bg-dark form .row:first-child .floating-label-form-group,
.contact-2.bg-primary form .row:first-child .floating-label-form-group,
.contact-2.bg-secondary form .row:first-child .floating-label-form-group,
.contact-2.bg-success form .row:first-child .floating-label-form-group,
.contact-2.bg-info form .row:first-child .floating-label-form-group,
.contact-2.bg-warning form .row:first-child .floating-label-form-group,
.contact-2.bg-danger form .row:first-child .floating-label-form-group {
border-top: 1px solid #f4f5f7;
}
.contact-1.bg-parallax-dark ::-webkit-input-placeholder,
.contact-1.bg-dark ::-webkit-input-placeholder,
.contact-1.bg-primary ::-webkit-input-placeholder,
.contact-1.bg-secondary ::-webkit-input-placeholder,
.contact-1.bg-success ::-webkit-input-placeholder,
.contact-1.bg-info ::-webkit-input-placeholder,
.contact-1.bg-warning ::-webkit-input-placeholder,
.contact-1.bg-danger ::-webkit-input-placeholder,
.contact-2.bg-parallax-dark ::-webkit-input-placeholder,
.contact-2.bg-dark ::-webkit-input-placeholder,
.contact-2.bg-primary ::-webkit-input-placeholder,
.contact-2.bg-secondary ::-webkit-input-placeholder,
.contact-2.bg-success ::-webkit-input-placeholder,
.contact-2.bg-info ::-webkit-input-placeholder,
.contact-2.bg-warning ::-webkit-input-placeholder,
.contact-2.bg-danger ::-webkit-input-placeholder {
color: rgba(244, 245, 247, 0.8) !important;
}
.contact-1.bg-parallax-dark :-moz-placeholder,
.contact-1.bg-dark :-moz-placeholder,
.contact-1.bg-primary :-moz-placeholder,
.contact-1.bg-secondary :-moz-placeholder,
.contact-1.bg-success :-moz-placeholder,
.contact-1.bg-info :-moz-placeholder,
.contact-1.bg-warning :-moz-placeholder,
.contact-1.bg-danger :-moz-placeholder,
.contact-2.bg-parallax-dark :-moz-placeholder,
.contact-2.bg-dark :-moz-placeholder,
.contact-2.bg-primary :-moz-placeholder,
.contact-2.bg-secondary :-moz-placeholder,
.contact-2.bg-success :-moz-placeholder,
.contact-2.bg-info :-moz-placeholder,
.contact-2.bg-warning :-moz-placeholder,
.contact-2.bg-danger :-moz-placeholder {
color: rgba(244, 245, 247, 0.8) !important;
}
.contact-1.bg-parallax-dark ::-moz-placeholder,
.contact-1.bg-dark ::-moz-placeholder,
.contact-1.bg-primary ::-moz-placeholder,
.contact-1.bg-secondary ::-moz-placeholder,
.contact-1.bg-success ::-moz-placeholder,
.contact-1.bg-info ::-moz-placeholder,
.contact-1.bg-warning ::-moz-placeholder,
.contact-1.bg-danger ::-moz-placeholder,
.contact-2.bg-parallax-dark ::-moz-placeholder,
.contact-2.bg-dark ::-moz-placeholder,
.contact-2.bg-primary ::-moz-placeholder,
.contact-2.bg-secondary ::-moz-placeholder,
.contact-2.bg-success ::-moz-placeholder,
.contact-2.bg-info ::-moz-placeholder,
.contact-2.bg-warning ::-moz-placeholder,
.contact-2.bg-danger ::-moz-placeholder {
color: rgba(244, 245, 247, 0.8) !important;
}
.contact-1.bg-parallax-dark :-ms-input-placeholder,
.contact-1.bg-dark :-ms-input-placeholder,
.contact-1.bg-primary :-ms-input-placeholder,
.contact-1.bg-secondary :-ms-input-placeholder,
.contact-1.bg-success :-ms-input-placeholder,
.contact-1.bg-info :-ms-input-placeholder,
.contact-1.bg-warning :-ms-input-placeholder,
.contact-1.bg-danger :-ms-input-placeholder,
.contact-2.bg-parallax-dark :-ms-input-placeholder,
.contact-2.bg-dark :-ms-input-placeholder,
.contact-2.bg-primary :-ms-input-placeholder,
.contact-2.bg-secondary :-ms-input-placeholder,
.contact-2.bg-success :-ms-input-placeholder,
.contact-2.bg-info :-ms-input-placeholder,
.contact-2.bg-warning :-ms-input-placeholder,
.contact-2.bg-danger :-ms-input-placeholder {
color: rgba(244, 245, 247, 0.8) !important;
}
.contact-2 {
position: relative;
padding: 0;
min-height: 732px;
}
.contact-2 .map-content {
padding: 100px 0;
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 100;
}
.contact-2 #map-canvas {
opacity: 1;
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 0;
}
.bg-parallax-light,
.bg-parallax-dark {
width: 100%;
height: auto;
background-attachment: scroll;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-o-background-size: cover;
background-position: center center;
}
.bg-parallax-light {
color: #3e444d;
}
.bg-parallax-dark {
color: #f4f5f7;
}
.aside-overlay,
.section-overlay {
background-color: rgba(175, 208, 186, 0.8);
}
.aside-overlay {
padding: 50px 0;
}
.section-overlay {
padding: 100px 0;
}
@media (min-width: 767px) {
.bg-parallax-light,
.bg-parallax-dark {
background-attachment: fixed;
}
}
.screen-cta {
padding-bottom: 0;
overflow-y: hidden;
}
.clients #clients-carousel {
list-style: none;
padding: 0;
}
.clients #clients-carousel li.item {
margin: 0 15px;
}
.bg-light {
background: #f4f5f7 !important;
color: #3e444d !important;
}
.bg-dark {
background: #3e444d !important;
color: #f4f5f7 !important;
}
.bg-lighter {
background: #fdfdfd;
color: #3e444d !important;
}
.bg-primary {
background: #afd0ba !important;
color: #f4f5f7 !important;
}
.bg-success {
background: #2ecc71 !important;
color: #f4f5f7 !important;
}
.bg-info {
background: #5fc9d3 !important;
color: #f4f5f7 !important;
}
.bg-warning {
background: #e67e22 !important;
color: #f4f5f7 !important;
}
.bg-danger {
background: #e74c3c !important;
color: #f4f5f7 !important;
}
.portfolio-1 .portfolio-item {
margin: 0 0 15px;
right: 0;
}
.portfolio-1 .portfolio-item .portfolio-link {
display: block;
position: relative;
max-width: 400px;
margin: 0 auto;
}
.portfolio-1 .portfolio-item .portfolio-link .caption {
background: rgba(62, 68, 77, 0.9);
position: absolute;
width: 100%;
height: 100%;
opacity: 0;
transition: all ease 0.5s;
-webkit-transition: all ease 0.5s;
-moz-transition: all ease 0.5s;
}
.portfolio-1 .portfolio-item .portfolio-link .caption:hover {
opacity: 1;
}
.portfolio-1 .portfolio-item .portfolio-link .caption .caption-content {
position: absolute;
width: 100%;
height: 20px;
font-size: 20px;
text-align: center;
top: 50%;
margin-top: -12px;
color: #f4f5f7;
}
.portfolio-1 .portfolio-item .portfolio-link .caption .caption-content i {
margin-top: -12px;
}
.portfolio-1 .portfolio-item .portfolio-link .caption .caption-content h3,
.portfolio-1 .portfolio-item .portfolio-link .caption .caption-content h4 {
margin: 0;
}
.portfolio-1 * {
z-index: 2;
}
@media (min-width: 767px) {
.portfolio-1 .portfolio-item {
margin: 0 0 30px;
}
}
.portfolio-modal .modal-content {
background-color: #f4f5f7;
}
.portfolio-modal .close-modal {
position: absolute;
width: 75px;
height: 75px;
background-color: transparent;
top: 25px;
right: 25px;
cursor: pointer;
}
.portfolio-modal .close-modal:hover {
opacity: 0.3;
}
.portfolio-modal .close-modal .lr {
height: 75px;
width: 1px;
margin-left: 35px;
background-color: #3e444d;
transform: rotate(45deg);
-ms-transform: rotate(45deg);
/* IE 9 */
-webkit-transform: rotate(45deg);
/* Safari and Chrome */
z-index: 1051;
}
.portfolio-modal .close-modal .lr .rl {
height: 75px;
width: 1px;
background-color: #3e444d;
transform: rotate(90deg);
-ms-transform: rotate(90deg);
/* IE 9 */
-webkit-transform: rotate(90deg);
/* Safari and Chrome */
z-index: 1052;
}
.portfolio-modal .row.first {
margin-top: 100px;
}
.portfolio-modal .page-header {
margin-top: 0;
}
.portfolio-modal ul.project-details {
margin-top: 15px;
}
.portfolio-modal ul.project-details li {
margin-bottom: 15px;
padding-bottom: 15px;
border-bottom: 1px solid #d6dae2;
}
.portfolio-modal ul.project-details li:first-child {
padding-top: 15px;
border-top: 1px solid #d6dae2;
}
ul#filters {
padding-bottom: 15px;
}
ul#filters li button.btn-link {
color: #3e444d;
}
ul#filters li button.btn-link:hover,
ul#filters li button.btn-link:focus,
ul#filters li button.btn-link:active,
ul#filters li button.btn-link.active {
color: #afd0ba;
text-decoration: none;
box-shadow: none;
}
.portfolio-2 #portfolio-2-carousel .item img {
margin: 0 auto;
padding: 10px 30px;
}
.portfolio-2 .owl-theme .owl-controls .owl-buttons div {
position: absolute;
}
.portfolio-2 .owl-theme .owl-controls .owl-buttons .owl-prev {
left: 5%;
top: 40%;
height: 40px;
width: 40px;
border-radius: 100%;
font-size: 16px;
line-height: 35px;
}
.portfolio-2 .owl-theme .owl-controls .owl-buttons .owl-next {
right: 5%;
top: 40%;
height: 40px;
width: 40px;
border-radius: 100%;
font-size: 16px;
line-height: 35px;
}
@media (min-width: 767px) {
.portfolio-2 #portfolio-2-carousel .item img {
max-width: 725px;
}
}
.pricing-col {
max-width: 400px;
margin: 0 auto;
}
.pricing-col .pricing-table {
border: 1px solid #d6dae2;
margin: 15px 0;
background: #f4f5f7;
color: #3e444d;
}
.pricing-col .pricing-table .pricing-heading {
background-position: center center;
text-align: center;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
-o-background-size: cover;
}
.pricing-col .pricing-table .pricing-heading h2 {
padding: 40px 0 55px;
margin: 0;
color: #f4f5f7;
}
.pricing-col .pricing-table .content {
position: relative;
margin: 0;
}
.pricing-col .pricing-table .content .price {
position: absolute;
background: #f4f5f7;
border-radius: 100%;
height: 80px;
width: 80px;
text-align: center;
top: -40px;
left: 0;
right: 0;
margin: auto;
box-shadow: 0 0 0 7px rgba(62, 68, 77, 0.2);
}
.pricing-col .pricing-table .content .price .amount {
margin-top: 18px;
font-size: 24px;
display: block;
line-height: 24px;
}
.pricing-col .pricing-table .content .price .period {
font-style: italic;
color: rgba(62, 68, 77, 0.5);
font-size: 12px;
display: block;
}
.pricing-col .pricing-table .content ul.pricing-items {
padding: 55px 0 0;
margin: 0;
}
.pricing-col .pricing-table .content ul.pricing-items li {
padding: 15px;
border-top: 1px solid rgba(62, 68, 77, 0.2);
}
.pricing-col .pricing-table .content ul.pricing-items li.item {
font-style: italic;
}
.pricing-col .pricing-table .content ul.pricing-items li.pricing-button {
text-align: center;
}
.pricing-col .pricing-table.featured {
margin: 0;
}
.pricing-col .pricing-table.featured .pricing-heading {
padding: 15px;
}
.pricing-col .pricing-table.featured .content .price {
font-weight: bold;
}
.pricing-col .pricing-table.featured ul.pricing-items li.item {
font-weight: bold;
}
@media (max-width: 991px) {
.pricing-col .pricing-table.featured {
margin: 15px auto;
}
.pricing-col .pricing-table.featured .pricing-heading {
padding: 0;
}
}
.services-1 .icon {
display: block;
font-size: 0px;
cursor: pointer;
margin: 15px auto;
width: 125px;
height: 125px;
border-radius: 50%;
text-align: center;
z-index: 1;
color: #f4f5f7;
background: #afd0ba;
}
.services-1 .icon:after {
pointer-events: none;
position: absolute;
width: 100%;
height: 100%;
border-radius: 50%;
content: '';
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
}
.services-1 .icon:before {
font-family: 'fontawesome';
speak: none;
font-size: 50px;
line-height: 125px;
display: block;
-webkit-font-smoothing: antialiased;
}
.services-1 .icon-effect .icon {
box-shadow: 0 0 0 8px rgba(175, 208, 186, 0.5);
overflow: hidden;
-webkit-transition: background 0.3s, color 0.3s, box-shadow 0.3s;
-moz-transition: background 0.3s, color 0.3s, box-shadow 0.3s;
transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.services-1 .icon-effect .icon:after {
display: none;
}
.services-1 .icon-effect li:hover .icon {
background: transparent;
color: #afd0ba;
box-shadow: 0 0 0 4px #afd0ba;
}
.services-1 .icon-effect li:hover .icon:before {
-webkit-animation: toRightFromLeft 0.3s forwards;
-moz-animation: toRightFromLeft 0.3s forwards;
animation: toRightFromLeft 0.3s forwards;
}
@-webkit-keyframes toRightFromLeft {
49% {
-webkit-transform: translate(100%);
}
50% {
opacity: 0;
-webkit-transform: translate(-100%);
}
51% {
opacity: 1;
}
}
@-moz-keyframes toRightFromLeft {
49% {
-moz-transform: translate(100%);
}
50% {
opacity: 0;
-moz-transform: translate(-100%);
}
51% {
opacity: 1;
}
}
@keyframes toRightFromLeft {
49% {
transform: translate(100%);
}
50% {
opacity: 0;
transform: translate(-100%);
}
51% {
opacity: 1;
}
}
.services-1 #services-1-carousel .item {
margin: 0 15px;
}
.services-1 .icon-rocket:before {
content: "\f135";
}
.services-1 .icon-code:before {
content: "\f121";
}
.services-1 .icon-mobile:before {
content: "\f10b";
}
.services-1 .icon-envelope-o:before {
content: "\f003";
}
.services-1 .icon-pencil:before {
content: "\f040";
}
.services-1 .icon-wrench:before {
content: "\f0ad";
}
.services-1 .icon-info-circle:before {
content: "\f05a";
}
.services-1 .icon-flag:before {
content: "\f024";
}
.services-1.bg-dark .icon,
.services-1.bg-primary .icon,
.services-1.bg-secondary .icon,
.services-1.bg-success .icon,
.services-1.bg-info .icon,
.services-1.bg-warning .icon,
.services-1.bg-danger .icon,
.services-1.bg-parallax-dark .icon {
color: #afd0ba;
background: #f4f5f7;
}
.services-1.bg-dark .icon-effect .icon,
.services-1.bg-primary .icon-effect .icon,
.services-1.bg-secondary .icon-effect .icon,
.services-1.bg-success .icon-effect .icon,
.services-1.bg-info .icon-effect .icon,
.services-1.bg-warning .icon-effect .icon,
.services-1.bg-danger .icon-effect .icon,
.services-1.bg-parallax-dark .icon-effect .icon {
box-shadow: 0 0 0 8px rgba(244, 245, 247, 0.5);
}
.services-1.bg-dark .icon-effect li:hover .icon,
.services-1.bg-primary .icon-effect li:hover .icon,
.services-1.bg-secondary .icon-effect li:hover .icon,
.services-1.bg-success .icon-effect li:hover .icon,
.services-1.bg-info .icon-effect li:hover .icon,
.services-1.bg-warning .icon-effect li:hover .icon,
.services-1.bg-danger .icon-effect li:hover .icon,
.services-1.bg-parallax-dark .icon-effect li:hover .icon {
background: transparent;
color: #f4f5f7;
box-shadow: 0 0 0 4px #f4f5f7;
}
.services-2 .services-col {
text-align: center;
margin-bottom: 30px;
}
.services-2 .services-col h3 {
margin: 0 0 15px;
}
.services-2 .services-col i {
margin: 0 0 15px;
}
@media (min-width: 767px) {
.services-2 .services-col {
text-align: inherit;
margin-bottom: inherit;
}
.services-2 i {
margin: 0 0 0;
}
}
.services-3 h3,
.services-3 p {
text-align: center;
}
.services-3 .row .col-md-4 {
margin-bottom: 15px;
}
.btn {
text-transform: uppercase;
font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: 400;
}
.btn:hover,
.btn:focus,
.btn:active,
.btn.active,
.open .dropdown-toggle.btn {
outline: none !important;
}
ul.button-list li {
padding: 0;
}
ul.button-list li:first-child {
margin-bottom: 10px;
padding-right: 0;
}
@media (min-width: 767px) {
ul.button-list li:first-child {
padding-right: 5px;
}
}
.btn-default {
color: #3e444d;
background-color: #f4f5f7;
border-color: #c8cdd7;
}
.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default.active,
.open .dropdown-toggle.btn-default {
color: #3e444d;
background-color: #dce0e6;
border-color: #a4adbd;
}
.btn-default:active,
.btn-default.active,
.open .dropdown-toggle.btn-default {
background-image: none;
}
.btn-default.disabled,
.btn-default[disabled],
fieldset[disabled] .btn-default,
.btn-default.disabled:hover,
.btn-default[disabled]:hover,
fieldset[disabled] .btn-default:hover,
.btn-default.disabled:focus,
.btn-default[disabled]:focus,
fieldset[disabled] .btn-default:focus,
.btn-default.disabled:active,
.btn-default[disabled]:active,
fieldset[disabled] .btn-default:active,
.btn-default.disabled.active,
.btn-default[disabled].active,
fieldset[disabled] .btn-default.active {
background-color: #f4f5f7;
border-color: #c8cdd7;
}
.btn-default .badge {
color: #f4f5f7;
background-color: #3e444d;
}
.btn-primary {
color: #f4f5f7;
background-color: #afd0ba;
border-color: #9fc7ac;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open .dropdown-toggle.btn-primary {
color: #f4f5f7;
background-color: #95c1a4;
border-color: #78b08b;
}
.btn-primary:active,
.btn-primary.active,
.open .dropdown-toggle.btn-primary {
background-image: none;
}
.btn-primary.disabled,
.btn-primary[disabled],
fieldset[disabled] .btn-primary,
.btn-primary.disabled:hover,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary:hover,
.btn-primary.disabled:focus,
.btn-primary[disabled]:focus,
fieldset[disabled] .btn-primary:focus,
.btn-primary.disabled:active,
.btn-primary[disabled]:active,
fieldset[disabled] .btn-primary:active,
.btn-primary.disabled.active,
.btn-primary[disabled].active,
fieldset[disabled] .btn-primary.active {
background-color: #afd0ba;
border-color: #9fc7ac;
}
.btn-primary .badge {
color: #afd0ba;
background-color: #f4f5f7;
}
.btn-success {
color: #f4f5f7;
background-color: #2ecc71;
border-color: #29b765;
}
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active,
.open .dropdown-toggle.btn-success {
color: #f4f5f7;
background-color: #26ab5f;
border-color: #1e854a;
}
.btn-success:active,
.btn-success.active,
.open .dropdown-toggle.btn-success {
background-image: none;
}
.btn-success.disabled,
.btn-success[disabled],
fieldset[disabled] .btn-success,
.btn-success.disabled:hover,
.btn-success[disabled]:hover,
fieldset[disabled] .btn-success:hover,
.btn-success.disabled:focus,
.btn-success[disabled]:focus,
fieldset[disabled] .btn-success:focus,
.btn-success.disabled:active,
.btn-success[disabled]:active,
fieldset[disabled] .btn-success:active,
.btn-success.disabled.active,
.btn-success[disabled].active,
fieldset[disabled] .btn-success.active {
background-color: #2ecc71;
border-color: #29b765;
}
.btn-success .badge {
color: #2ecc71;
background-color: #f4f5f7;
}
.btn-info {
color: #f4f5f7;
background-color: #5fc9d3;
border-color: #4bc2cd;
}
.btn-info:hover,
.btn-info:focus,
.btn-info:active,
.btn-info.active,
.open .dropdown-toggle.btn-info {
color: #f4f5f7;
background-color: #3fbeca;
border-color: #2fa1ac;
}
.btn-info:active,
.btn-info.active,
.open .dropdown-toggle.btn-info {
background-image: none;
}
.btn-info.disabled,
.btn-info[disabled],
fieldset[disabled] .btn-info,
.btn-info.disabled:hover,
.btn-info[disabled]:hover,
fieldset[disabled] .btn-info:hover,
.btn-info.disabled:focus,
.btn-info[disabled]:focus,
fieldset[disabled] .btn-info:focus,
.btn-info.disabled:active,
.btn-info[disabled]:active,
fieldset[disabled] .btn-info:active,
.btn-info.disabled.active,
.btn-info[disabled].active,
fieldset[disabled] .btn-info.active {
background-color: #5fc9d3;
border-color: #4bc2cd;
}
.btn-info .badge {
color: #5fc9d3;
background-color: #f4f5f7;
}
.btn-warning {
color: #f4f5f7;
background-color: #e67e22;
border-color: #d67118;
}
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-warning.active,
.open .dropdown-toggle.btn-warning {
color: #f4f5f7;
background-color: #c96a17;
border-color: #9f5412;
}
.btn-warning:active,
.btn-warning.active,
.open .dropdown-toggle.btn-warning {
background-image: none;
}
.btn-warning.disabled,
.btn-warning[disabled],
fieldset[disabled] .btn-warning,
.btn-warning.disabled:hover,
.btn-warning[disabled]:hover,
fieldset[disabled] .btn-warning:hover,
.btn-warning.disabled:focus,
.btn-warning[disabled]:focus,
fieldset[disabled] .btn-warning:focus,
.btn-warning.disabled:active,
.btn-warning[disabled]:active,
fieldset[disabled] .btn-warning:active,
.btn-warning.disabled.active,
.btn-warning[disabled].active,
fieldset[disabled] .btn-warning.active {
background-color: #e67e22;
border-color: #d67118;
}
.btn-warning .badge {
color: #e67e22;
background-color: #f4f5f7;
}
.btn-danger {
color: #f4f5f7;
background-color: #e74c3c;
border-color: #e43725;
}
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active,
.btn-danger.active,
.open .dropdown-toggle.btn-danger {
color: #f4f5f7;
background-color: #df2e1b;
border-color: #b62516;
}
.btn-danger:active,
.btn-danger.active,
.open .dropdown-toggle.btn-danger {
background-image: none;
}
.btn-danger.disabled,
.btn-danger[disabled],
fieldset[disabled] .btn-danger,
.btn-danger.disabled:hover,
.btn-danger[disabled]:hover,
fieldset[disabled] .btn-danger:hover,
.btn-danger.disabled:focus,
.btn-danger[disabled]:focus,
fieldset[disabled] .btn-danger:focus,
.btn-danger.disabled:active,
.btn-danger[disabled]:active,
fieldset[disabled] .btn-danger:active,
.btn-danger.disabled.active,
.btn-danger[disabled].active,
fieldset[disabled] .btn-danger.active {
background-color: #e74c3c;
border-color: #e43725;
}
.btn-danger .badge {
color: #e74c3c;
background-color: #f4f5f7;
}
.btn-raised {
border-bottom-width: 4px;
transition: none;
}
.btn-raised:active,
.btn-raised.active,
.btn-raised .open .dropdown-toggle {
outline: none;
border-bottom-width: 3px;
margin-top: 1px;
}
.btn-outline.btn-light,
.btn-outline.btn-dark,
.btn-outline.btn-primary,
.btn-outline.btn-secondary,
.btn-outline.btn-success,
.btn-outline.btn-info,
.btn-outline.btn-warning,
.btn-outline.btn-danger {
background-color: transparent;
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
.btn-outline.btn-light {
border: 1px solid #f4f5f7;
color: #f4f5f7;
}
.btn-outline.btn-light:hover,
.btn-outline.btn-light:focus {
border: 1px solid #f4f5f7;
color: #3e444d;
background-color: #f4f5f7;
}
.btn-outline.btn-dark {
border: 1px solid #3e444d;
color: #3e444d;
background-color: transparent;
}
.btn-outline.btn-dark:hover,
.btn-outline.btn-dark:focus {
border: 1px solid #3e444d;
outline: none;
color: #f4f5f7;
background-color: #3e444d;
}
.btn-outline.btn-primary {
border: 1px solid #afd0ba;
color: #afd0ba;
background-color: transparent;
}
.btn-outline.btn-primary:hover,
.btn-outline.btn-primary:focus {
border: 1px solid #afd0ba;
outline: none;
color: #f4f5f7;
background-color: #afd0ba;
}
.btn-outline.btn-success {
border: 1px solid #2ecc71;
color: #2ecc71;
background-color: transparent;
}
.btn-outline.btn-success:hover,
.btn-outline.btn-success:focus {
border: 1px solid #2ecc71;
outline: none;
color: #f4f5f7;
background-color: #2ecc71;
}
.btn-outline.btn-info {
border: 1px solid #5fc9d3;
color: #5fc9d3;
background-color: transparent;
}
.btn-outline.btn-info:hover,
.btn-outline.btn-info:focus {
border: 1px solid #5fc9d3;
outline: none;
color: #f4f5f7;
background-color: #5fc9d3;
}
.btn-outline.btn-warning {
border: 1px solid #e67e22;
color: #e67e22;
background-color: transparent;
}
.btn-outline.btn-warning:hover,
.btn-outline.btn-warning:focus {
border: 1px solid #e67e22;
outline: none;
color: #f4f5f7;
background-color: #e67e22;
}
.btn-outline.btn-danger {
border: 1px solid #e74c3c;
color: #e74c3c;
background-color: transparent;
}
.btn-outline.btn-danger:hover,
.btn-outline.btn-danger:focus {
border: 1px solid #e74c3c;
outline: none;
color: #f4f5f7;
background-color: #e74c3c;
}
.btn-rounded {
border-radius: 5em;
}
.btn-square {
border-radius: 0;
}
.btn-social-dark {
background-color: transparent;
color: #3e444d;
}
.btn-social-light {
background-color: transparent;
color: #f4f5f7;
}
.btn-android {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-android:hover,
.btn-android:focus {
outline: none;
color: #f4f5f7;
background-color: #a4c639;
}
.btn-apple {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-apple:hover,
.btn-apple:focus {
outline: none;
color: #f4f5f7;
background-color: #b9bfc1;
}
.btn-bitcoin {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-bitcoin:hover,
.btn-bitcoin:focus {
outline: none;
color: #f4f5f7;
background-color: #f7931a;
}
.btn-css3 {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-css3:hover,
.btn-css3:focus {
outline: none;
color: #f4f5f7;
background-color: #0170ba;
}
.btn-dribbble {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-dribbble:hover,
.btn-dribbble:focus {
outline: none;
color: #f4f5f7;
background-color: #ea4c89;
}
.btn-dropbox {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-dropbox:hover,
.btn-dropbox:focus {
outline: none;
color: #f4f5f7;
background-color: #2281cf;
}
.btn-facebook {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-facebook:hover,
.btn-facebook:focus {
outline: none;
color: #f4f5f7;
background-color: #3b5998;
}
.btn-flickr {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-flickr:hover,
.btn-flickr:focus {
outline: none;
color: #f4f5f7;
background-color: #0063db;
}
.btn-foursquare {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-foursquare:hover,
.btn-foursquare:focus {
outline: none;
color: #f4f5f7;
background-color: #2398c9;
}
.btn-github {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-github:hover,
.btn-github:focus {
outline: none;
color: #f4f5f7;
background-color: #4183c4;
}
.btn-google-plus {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-google-plus:hover,
.btn-google-plus:focus {
outline: none;
color: #f4f5f7;
background-color: #d14836;
}
.btn-html5 {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-html5:hover,
.btn-html5:focus {
outline: none;
color: #f4f5f7;
background-color: #f06529;
}
.btn-instagram {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-instagram:hover,
.btn-instagram:focus {
outline: none;
color: #f4f5f7;
background-color: #3f729b;
}
.btn-linkedin {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-linkedin:hover,
.btn-linkedin:focus {
outline: none;
color: #f4f5f7;
background-color: #007fb1;
}
.btn-linux {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-linux:hover,
.btn-linux:focus {
outline: none;
color: #f4f5f7;
background-color: #dd4814;
}
.btn-maxcdn {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-maxcdn:hover,
.btn-maxcdn:focus {
outline: none;
color: #f4f5f7;
background-color: #ff7514;
}
.btn-pagelines {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-pagelines:hover,
.btn-pagelines:focus {
outline: none;
color: #f4f5f7;
background-color: #1996fc;
}
.btn-pinterest {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-pinterest:hover,
.btn-pinterest:focus {
outline: none;
color: #f4f5f7;
background-color: #cb2027;
}
.btn-renren {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-renren:hover,
.btn-renren:focus {
outline: none;
color: #f4f5f7;
background-color: #005eac;
}
.btn-skype {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-skype:hover,
.btn-skype:focus {
outline: none;
color: #f4f5f7;
background-color: #00aff0;
}
.btn-stack-exchange {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-stack-exchange:hover,
.btn-stack-exchange:focus {
outline: none;
color: #f4f5f7;
background-color: #1f5196;
}
.btn-stack-overflow {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-stack-overflow:hover,
.btn-stack-overflow:focus {
outline: none;
color: #f4f5f7;
background-color: #f47920;
}
.btn-trello {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-trello:hover,
.btn-trello:focus {
outline: none;
color: #f4f5f7;
background-color: #2a79a6;
}
.btn-tumblr {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-tumblr:hover,
.btn-tumblr:focus {
outline: none;
color: #f4f5f7;
background-color: #2c4762;
}
.btn-twitter {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-twitter:hover,
.btn-twitter:focus {
outline: none;
color: #f4f5f7;
background-color: #39a9e0;
}
.btn-vimeo {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-vimeo:hover,
.btn-vimeo:focus {
outline: none;
color: #f4f5f7;
background-color: #44bbff;
}
.btn-vk {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-vk:hover,
.btn-vk:focus {
outline: none;
color: #f4f5f7;
background-color: #54769a;
}
.btn-weibo {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-weibo:hover,
.btn-weibo:focus {
outline: none;
color: #f4f5f7;
background-color: #e43037;
}
.btn-windows {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-windows:hover,
.btn-windows:focus {
outline: none;
color: #f4f5f7;
background-color: #00bdf6;
}
.btn-xing {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-xing:hover,
.btn-xing:focus {
outline: none;
color: #f4f5f7;
background-color: #006464;
}
.btn-youtube {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transitino: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
height: 50px;
width: 50px;
border-radius: 100%;
font-size: 20px;
line-height: 37px;
}
.btn-youtube:hover,
.btn-youtube:focus {
outline: none;
color: #f4f5f7;
background-color: #cd332d;
}
.footer-1 .upper {
padding: 50px 0;
color: #f4f5f7;
background-color: #272b31;
}
.footer-1 .upper p {
color: rgba(244, 245, 247, 0.8);
}
.footer-1 .upper h2 {
padding-bottom: 10px;
}
.footer-1 .upper h4 {
padding-bottom: 10px;
padding-top: 25px;
}
.footer-1 .upper .footer-links li {
padding-bottom: 10px;
}
.footer-1 .upper .footer-links li a {
color: #f4f5f7;
}
.footer-1 .upper .footer-links li a:hover {
color: #afd0ba;
}
.footer-1 .lower {
padding: 15px 0;
background-color: #111214;
}
.footer-1 .lower .small {
color: rgba(244, 245, 247, 0.7);
}
.footer-2 {
padding: 50px 0;
}
.footer-2 h2,
.footer-2 h3 {
padding-bottom: 10px;
}
@media (max-width: 990px) {
.footer-1,
.footer-2 {
text-align: center;
}
}
.browser-demo {
background-color: #e8ebf0;
border-radius: 20px;
height: auto;
padding: 0 5px 5px;
}
.browser-demo .inner {
background-color: #fff;
padding: 15px;
border-bottom-right-radius: 15px;
border-bottom-left-radius: 15px;
width: 100%;
}
.browser-demo .img-demo-bar {
padding: 20px;
}
.browser-demo .fly-in {
background-color: #f4f5f7;
margin-bottom: 20px;
border: 2px dashed #d9dce1;
display: table;
width: 100%;
}
.browser-demo .fly-in-name {
display: table-cell;
vertical-align: middle;
width: 100%;
}
.browser-demo .fly-in-name h5 {
padding: 15px 0;
}
.browser-demo .last {
margin-bottom: 0;
}
.browser-demo .nav {
height: 50px;
}
.browser-demo .intro {
height: 250px;
}
.browser-demo .about {
height: 150px;
}
.browser-demo .services {
height: 150px;
}
.browser-demo .contact {
height: 150px;
}
p.demo-text {
font-family: 'Pacifico', serif;
margin-top: 20px;
font-size: 25px;
}
| {
"content_hash": "2f3fea07fd6a7b0ccc4a1a4b18034be0",
"timestamp": "",
"source": "github",
"line_count": 2830,
"max_line_length": 81,
"avg_line_length": 24.479505300353356,
"alnum_prop": 0.6838200268487377,
"repo_name": "saraho-shea/saraho-shea.github.io",
"id": "79d60b0b3389e6ecd2e91696f2866187b78cab54",
"size": "69504",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "spectrum-v1.2.0/assets/css/spectrum-seafoam.css",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "1365777"
},
{
"name": "HTML",
"bytes": "557195"
},
{
"name": "JavaScript",
"bytes": "247132"
},
{
"name": "PHP",
"bytes": "903"
}
],
"symlink_target": ""
} |
package ro.ase.cts.conexiune;
public class Server {
String ip;
String bd;
public Server(String ip, String bd) {
super();
this.ip = ip;
this.bd = bd;
}
public void conectare(User user){
}
public boolean testConexiune(User user){
return true;
}
}
| {
"content_hash": "58dc7d2c12eff08e40605016087c1810",
"timestamp": "",
"source": "github",
"line_count": 19,
"max_line_length": 41,
"avg_line_length": 14.105263157894736,
"alnum_prop": 0.6604477611940298,
"repo_name": "catalinboja/cts-2016",
"id": "ddb0a032cc5d853570fe7a1da14133776487e76c",
"size": "268",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "1068_Seminar5/src/ro/ase/cts/conexiune/Server.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "82805"
}
],
"symlink_target": ""
} |
package generate
import (
"fmt"
"github.com/arasuresearch/arasu/app"
"github.com/arasuresearch/arasu/cmd/arasu/generate/migration"
"github.com/arasuresearch/arasu/cmd/arasu/generate/scaffold"
"github.com/arasuresearch/arasu/cmd/common"
"github.com/arasuresearch/arasu/lib"
)
type Generate struct {
Scaffold scaffold.Scaffold
Migration migration.Migration
common.SubCmd
}
func (c *Generate) Run() {
if len(c.Args) == 0 {
fmt.Println(help_msg)
return
}
if c.Help {
fmt.Println(help_msg)
return
}
msg, _ := lib.ParseAndExecuteTemplateText(help_msg_for_generator_not_find, lib.HSS{"Name": c.Args[0]})
fmt.Println(msg)
}
func (c *Generate) Init(a *app.App, args []string) {
c.App = a
c.Args = args
c.Parse()
}
func (c *Generate) Parse() {
c.Flag.BoolVar(&c.Help, "h", false, "a bool")
c.Flag.BoolVar(&c.Help, "help", c.Help, "a bool")
c.Flag.Parse(c.App.FlagArgs)
}
var help_msg_for_generator_not_find = `Could not find generator {{.Name}}.
Type 'arasu generate -h' for help.
`
var help_msg = `Usage: arasu generate GENERATOR [args] [options]
General options:
-h, [--help] # Print generator's options and usage
-p, [--pretend] # Run but do not make any changes
-f, [--force] # Overwrite files that already exist
-s, [--skip] # Skip files that already exist
-q, [--quiet] # Suppress status output
Please choose a generator below.
server:
assets
controller
generator
helper
integration_test
jbuilder
mailer
migration
model
resource
scaffold
scaffold_controller
task
client:
assets
controller
generator
helper
integration_test
jbuilder
mailer
migration
model
resource
scaffold
scaffold_controller
task
`
| {
"content_hash": "641e766ccd8d9449fe5f8db30c12d08b",
"timestamp": "",
"source": "github",
"line_count": 82,
"max_line_length": 103,
"avg_line_length": 21.536585365853657,
"alnum_prop": 0.6732729331823329,
"repo_name": "arasuresearch/arasu",
"id": "9c5a01af9eac8ed956d0d0a458935ffa4c2e7f90",
"size": "3403",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "cmd/arasu/generate/generate.go",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "CSS",
"bytes": "450"
},
{
"name": "Dart",
"bytes": "9410"
},
{
"name": "Go",
"bytes": "1093439"
}
],
"symlink_target": ""
} |
import * as http from 'http'
import * as http2 from 'http2'
import * as https from 'https'
import { ConstraintStrategy, HTTPVersion } from 'find-my-way'
import { FastifyRequest, RequestGenericInterface } from './types/request'
import { RawServerBase, RawServerDefault, RawRequestDefaultExpression, RawReplyDefaultExpression } from './types/utils'
import { FastifyBaseLogger, FastifyLoggerInstance, FastifyLoggerOptions, PinoLoggerOptions } from './types/logger'
import { FastifyInstance } from './types/instance'
import { FastifyServerFactory } from './types/serverFactory'
import { Options as AjvOptions } from '@fastify/ajv-compiler'
import { Options as FJSOptions } from '@fastify/fast-json-stringify-compiler'
import { FastifyError } from '@fastify/error'
import { FastifyReply } from './types/reply'
import { FastifySchemaValidationError } from './types/schema'
import { ConstructorAction, ProtoAction } from "./types/content-type-parser";
import { Socket } from 'net'
import { ValidatorCompiler } from '@fastify/ajv-compiler'
import { SerializerCompiler } from '@fastify/fast-json-stringify-compiler'
import { FastifySchema } from './types/schema'
import { FastifyContextConfig } from './types/context'
import { FastifyTypeProvider, FastifyTypeProviderDefault } from './types/type-provider'
import { FastifyErrorCodes } from './types/errors'
/**
* Fastify factory function for the standard fastify http, https, or http2 server instance.
*
* The default function utilizes http
*
* @param opts Fastify server options
* @returns Fastify server instance
*/
declare function fastify<
Server extends http2.Http2SecureServer,
Request extends RawRequestDefaultExpression<Server> = RawRequestDefaultExpression<Server>,
Reply extends RawReplyDefaultExpression<Server> = RawReplyDefaultExpression<Server>,
Logger extends FastifyBaseLogger = FastifyLoggerInstance,
TypeProvider extends FastifyTypeProvider = FastifyTypeProviderDefault,
>(opts: FastifyHttp2SecureOptions<Server, Logger>): FastifyInstance<Server, Request, Reply, Logger, TypeProvider> & PromiseLike<FastifyInstance<Server, Request, Reply, Logger, TypeProvider>>
declare function fastify<
Server extends http2.Http2Server,
Request extends RawRequestDefaultExpression<Server> = RawRequestDefaultExpression<Server>,
Reply extends RawReplyDefaultExpression<Server> = RawReplyDefaultExpression<Server>,
Logger extends FastifyBaseLogger = FastifyLoggerInstance,
TypeProvider extends FastifyTypeProvider = FastifyTypeProviderDefault,
>(opts: FastifyHttp2Options<Server, Logger>): FastifyInstance<Server, Request, Reply, Logger, TypeProvider> & PromiseLike<FastifyInstance<Server, Request, Reply, Logger, TypeProvider>>
declare function fastify<
Server extends https.Server,
Request extends RawRequestDefaultExpression<Server> = RawRequestDefaultExpression<Server>,
Reply extends RawReplyDefaultExpression<Server> = RawReplyDefaultExpression<Server>,
Logger extends FastifyBaseLogger = FastifyLoggerInstance,
TypeProvider extends FastifyTypeProvider = FastifyTypeProviderDefault,
>(opts: FastifyHttpsOptions<Server, Logger>): FastifyInstance<Server, Request, Reply, Logger, TypeProvider> & PromiseLike<FastifyInstance<Server, Request, Reply, Logger, TypeProvider>>
declare function fastify<
Server extends http.Server,
Request extends RawRequestDefaultExpression<Server> = RawRequestDefaultExpression<Server>,
Reply extends RawReplyDefaultExpression<Server> = RawReplyDefaultExpression<Server>,
Logger extends FastifyBaseLogger = FastifyLoggerInstance,
TypeProvider extends FastifyTypeProvider = FastifyTypeProviderDefault,
>(opts?: FastifyServerOptions<Server, Logger>): FastifyInstance<Server, Request, Reply, Logger, TypeProvider> & PromiseLike<FastifyInstance<Server, Request, Reply, Logger, TypeProvider>>
declare namespace fastify {
export const errorCodes: FastifyErrorCodes;
}
export default fastify
export type FastifyHttp2SecureOptions<
Server extends http2.Http2SecureServer,
Logger extends FastifyBaseLogger = FastifyLoggerInstance
> = FastifyServerOptions<Server, Logger> & {
http2: true,
https: http2.SecureServerOptions,
http2SessionTimeout?: number
}
export type FastifyHttp2Options<
Server extends http2.Http2Server,
Logger extends FastifyBaseLogger = FastifyLoggerInstance
> = FastifyServerOptions<Server, Logger> & {
http2: true,
http2SessionTimeout?: number
}
export type FastifyHttpsOptions<
Server extends https.Server,
Logger extends FastifyBaseLogger = FastifyLoggerInstance
> = FastifyServerOptions<Server, Logger> & {
https: https.ServerOptions | null
}
type FindMyWayVersion<RawServer extends RawServerBase> = RawServer extends http.Server ? HTTPVersion.V1 : HTTPVersion.V2
export interface ConnectionError extends Error {
code: string,
bytesParsed: number,
rawPacket: {
type: string,
data: number[]
}
}
/**
* Options for a fastify server instance. Utilizes conditional logic on the generic server parameter to enforce certain https and http2
*/
export type FastifyServerOptions<
RawServer extends RawServerBase = RawServerDefault,
Logger extends FastifyBaseLogger = FastifyLoggerInstance
> = {
ignoreTrailingSlash?: boolean,
ignoreDuplicateSlashes?: boolean,
connectionTimeout?: number,
keepAliveTimeout?: number,
maxRequestsPerSocket?: number,
forceCloseConnections?: boolean | 'idle',
requestTimeout?: number,
pluginTimeout?: number,
bodyLimit?: number,
maxParamLength?: number,
disableRequestLogging?: boolean,
exposeHeadRoutes?: boolean,
onProtoPoisoning?: ProtoAction,
onConstructorPoisoning?: ConstructorAction,
logger?: boolean | FastifyLoggerOptions<RawServer> & PinoLoggerOptions | Logger,
serializerOpts?: FJSOptions | Record<string, unknown>,
serverFactory?: FastifyServerFactory<RawServer>,
caseSensitive?: boolean,
requestIdHeader?: string | false,
requestIdLogLabel?: string;
jsonShorthand?: boolean;
genReqId?: <RequestGeneric extends RequestGenericInterface = RequestGenericInterface, TypeProvider extends FastifyTypeProvider = FastifyTypeProviderDefault>(req: FastifyRequest<RequestGeneric, RawServer, RawRequestDefaultExpression<RawServer>, FastifySchema, TypeProvider>) => string,
trustProxy?: boolean | string | string[] | number | TrustProxyFunction,
querystringParser?: (str: string) => { [key: string]: unknown },
/**
* @deprecated Prefer using the `constraints.version` property
*/
versioning?: {
storage(): {
get(version: string): string | null,
set(version: string, store: Function): void
del(version: string): void,
empty(): void
},
deriveVersion<Context>(req: Object, ctx?: Context): string // not a fan of using Object here. Also what is Context? Can either of these be better defined?
},
constraints?: {
[name: string]: ConstraintStrategy<FindMyWayVersion<RawServer>, unknown>,
},
schemaController?: {
bucket?: (parentSchemas?: unknown) => {
add(schema: unknown): FastifyInstance;
getSchema(schemaId: string): unknown;
getSchemas(): Record<string, unknown>;
};
compilersFactory?: {
buildValidator?: ValidatorCompiler;
buildSerializer?: SerializerCompiler;
};
};
return503OnClosing?: boolean,
ajv?: {
customOptions?: AjvOptions,
plugins?: (Function | [Function, unknown])[]
},
frameworkErrors?: <RequestGeneric extends RequestGenericInterface = RequestGenericInterface, TypeProvider extends FastifyTypeProvider = FastifyTypeProviderDefault, SchemaCompiler extends FastifySchema = FastifySchema>(
error: FastifyError,
req: FastifyRequest<RequestGeneric, RawServer, RawRequestDefaultExpression<RawServer>, FastifySchema, TypeProvider>,
res: FastifyReply<RawServer, RawRequestDefaultExpression<RawServer>, RawReplyDefaultExpression<RawServer>, RequestGeneric, FastifyContextConfig, SchemaCompiler, TypeProvider>
) => void,
rewriteUrl?: (req: RawRequestDefaultExpression<RawServer>) => string,
schemaErrorFormatter?: (errors: FastifySchemaValidationError[], dataVar: string) => Error,
/**
* listener to error events emitted by client connections
*/
clientErrorHandler?: (error: ConnectionError, socket: Socket) => void
}
type TrustProxyFunction = (address: string, hop: number) => boolean
declare module '@fastify/error' {
interface FastifyError {
validation?: ValidationResult[];
}
}
export interface ValidationResult {
keyword: string;
instancePath: string;
schemaPath: string;
params: Record<string, string | string[]>;
message?: string;
}
/* Export all additional types */
export type { Chain as LightMyRequestChain, InjectOptions, Response as LightMyRequestResponse, CallbackFunc as LightMyRequestCallback } from 'light-my-request'
export { FastifyRequest, RequestGenericInterface } from './types/request'
export { FastifyReply } from './types/reply'
export { FastifyPluginCallback, FastifyPluginAsync, FastifyPluginOptions, FastifyPlugin } from './types/plugin'
export { FastifyListenOptions, FastifyInstance, PrintRoutesOptions } from './types/instance'
export { FastifyLoggerOptions, FastifyBaseLogger, FastifyLoggerInstance, FastifyLogFn, LogLevel } from './types/logger'
export { FastifyContext, FastifyContextConfig } from './types/context'
export { RouteHandler, RouteHandlerMethod, RouteOptions, RouteShorthandMethod, RouteShorthandOptions, RouteShorthandOptionsWithHandler, RouteGenericInterface } from './types/route'
export * from './types/register'
export { FastifyBodyParser, FastifyContentTypeParser, AddContentTypeParser, hasContentTypeParser, getDefaultJsonParser, ProtoAction, ConstructorAction } from './types/content-type-parser'
export { FastifyError } from '@fastify/error'
export { FastifySchema, FastifySchemaCompiler } from './types/schema'
export { HTTPMethods, RawServerBase, RawRequestDefaultExpression, RawReplyDefaultExpression, RawServerDefault, ContextConfigDefault, RequestBodyDefault, RequestQuerystringDefault, RequestParamsDefault, RequestHeadersDefault } from './types/utils'
export * from './types/hooks'
export { FastifyServerFactory, FastifyServerFactoryHandler } from './types/serverFactory'
export { FastifyTypeProvider, FastifyTypeProviderDefault } from './types/type-provider'
export { FastifyErrorCodes } from './types/errors'
export { fastify }
| {
"content_hash": "730525be801634e6f3c8442fda7f8a1a",
"timestamp": "",
"source": "github",
"line_count": 215,
"max_line_length": 286,
"avg_line_length": 48.032558139534885,
"alnum_prop": 0.7839643652561247,
"repo_name": "cdnjs/cdnjs",
"id": "aa0cc012d22ca0d229b6b79f5b433a30429ae6ca",
"size": "10327",
"binary": false,
"copies": "5",
"ref": "refs/heads/master",
"path": "ajax/libs/fastify/4.8.1/fastify.d.ts",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>hammer-tactics: 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.5.2~camlp4 / hammer-tactics - 1.2.1+8.10</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
hammer-tactics
<small>
1.2.1+8.10
<span class="label label-info">Not compatible</span>
</small>
</h1>
<p><em><script>document.write(moment("2020-08-16 06:48:30 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2020-08-16 06:48:30 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
camlp4 4.05+1 Camlp4 is a system for writing extensible parsers for programming languages
conf-findutils 1 Virtual package relying on findutils
coq 8.5.2~camlp4 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
ocamlbuild 0.14.0 OCamlbuild is a build system with builtin rules to easily build most OCaml projects.
# opam file:
opam-version: "2.0"
maintainer: "palmskog@gmail.com"
homepage: "https://github.com/lukaszcz/coqhammer"
dev-repo: "git+https://github.com/lukaszcz/coqhammer.git"
bug-reports: "https://github.com/lukaszcz/coqhammer/issues"
license: "LGPL-2.1-only"
synopsis: "Reconstruction tactics for the hammer for Coq"
description: """
Collection of tactics that are used by the hammer for Coq
to reconstruct proofs found by automated theorem provers. When the hammer
has been successfully applied to a project, only this package needs
to be installed; the hammer plugin is not required.
"""
build: [make "-j%{jobs}%" {ocaml:version >= "4.06"} "tactics"]
install: [
[make "install-tactics"]
[make "test-tactics"] {with-test}
]
depends: [
"ocaml"
"coq" {>= "8.10" & < "8.11~"}
]
conflicts: [
"coq-hammer" {!= version}
]
tags: [
"keyword:automation"
"keyword:hammer"
"keyword:tactics"
"logpath:Hammer.Tactics"
"date:2020-06-05"
]
authors: [
"Lukasz Czajka <lukaszcz@mimuw.edu.pl>"
]
url {
src: "https://github.com/lukaszcz/coqhammer/archive/v1.2.1-coq8.10.tar.gz"
checksum: "sha512=22081122b39ee1099e79ef82f1afc1895350475fd255cdc51d3a47851184decd0bff7975b9effcd39ca9b55bb381e06cf649ad2d460dd31eec537eca44f2a6e1"
}
</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-hammer-tactics.1.2.1+8.10 coq.8.5.2~camlp4</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.5.2~camlp4).
The following dependencies couldn't be met:
- coq-hammer-tactics -> coq >= 8.10
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-hammer-tactics.1.2.1+8.10</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
<small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small>
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| {
"content_hash": "aabdff734a2b26e910afd89c092f59fe",
"timestamp": "",
"source": "github",
"line_count": 180,
"max_line_length": 159,
"avg_line_length": 41.044444444444444,
"alnum_prop": 0.5610449377368706,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "51a5415543184029e7404e9ba382733ddab26734",
"size": "7390",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "clean/Linux-x86_64-4.05.0-2.0.6/released/8.5.2~camlp4/hammer-tactics/1.2.1+8.10.html",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
} |
using ClientsLibrary;
using HslCommunication.Enthernet;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using HslCommunication;
using System.Threading;
using System.IO;
using System.Net;
using ClientsLibrary.FileSupport;
namespace 软件系统客户端Wpf.Views.Controls
{
/// <summary>
/// UserFileRenderItem.xaml 的交互逻辑
/// </summary>
public partial class UserFileRenderItem : UserControl
{
#region Constructor
public UserFileRenderItem(IntegrationFileClient client, string factory, string group, string id, Func<GroupFileItem, bool> deleteCheck)
{
InitializeComponent();
DeleteCheck = deleteCheck;
m_Factory = factory;
m_Group = group;
m_Id = id;
fileClient = client;
}
#endregion
#region Private Method
private BitmapImage BitmapToBitmapImage(System.Drawing.Bitmap bitmap)
{
BitmapImage bitmapImage = new BitmapImage();
using (MemoryStream ms = new MemoryStream())
{
bitmap.Save(ms, bitmap.RawFormat);
bitmapImage.BeginInit();
bitmapImage.StreamSource = ms;
bitmapImage.CacheOption = BitmapCacheOption.OnLoad;
bitmapImage.EndInit();
bitmapImage.Freeze();
}
return bitmapImage;
}
#endregion
#region Render File Information
/// <summary>
/// 设置文件数据
/// </summary>
/// <param name="file">文件的信息对象</param>
/// <param name="deleteEnable">删除控件的使能委托</param>
/// <exception cref="ArgumentNullException">file参数不能为空</exception>
public void SetFile(GroupFileItem file, Func<bool> deleteEnable)
{
fileItem = file;
// 设置文件图标
FileIcon.Source = BitmapToBitmapImage(FileSupport.GetFileIcon(file.FileName));
FileName.Text = "文件名称:" + file.FileName;
FileSize.Text = "大小:" + file.GetTextFromFileSize();
FileDate.Text = "日期:" + file.UploadTime.ToString("yyyy-MM-dd");
FileDescription.Text = "文件备注:" + file.Description;
FilePeople.Text = "上传人:" + file.Owner;
FileDownloadTimes.Text = "下载数:" + file.DownloadTimes;
FileDeleteButton.IsEnabled = deleteEnable.Invoke();
FileDownloadButton.IsEnabled = true; // 一般都是允许下载,如果不允许下载,在此处设置
}
#endregion
#region Delete Support
private void FileDeleteButton_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
// 删除文件
if (DeleteCheck != null)
{
// 删除的权限检查
if (!DeleteCheck.Invoke(fileItem))
{
// 没有通过
return;
}
}
if (MessageBox.Show("请确认是否真的删除?", "删除确认", MessageBoxButton.YesNo) == MessageBoxResult.No)
{
return;
}
//确认删除
OperateResult result = fileClient.DeleteFile(
fileItem.FileName, // 文件的名称
m_Factory, // 第一大类
m_Group, // 第二大类
m_Id // 第三大类
);
if (result.IsSuccess)
{
MessageBox.Show("删除成功!");
}
else
{
MessageBox.Show("删除失败!原因:" + result.Message);
}
}
#endregion
#region Download Support
private void FileDownloadButton_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
//下载文件
FileDownloadButton.IsEnabled = false;
Thread thread_down_file = new Thread(new ThreadStart(ThreadDownloadFile));
thread_down_file.IsBackground = true;
thread_down_file.Start();
}
private void ThreadDownloadFile()
{
string save_file_name = AppDomain.CurrentDomain.BaseDirectory + "download\\files";
if (!Directory.Exists(save_file_name))
{
Directory.CreateDirectory(save_file_name);
}
save_file_name += "\\" + fileItem.FileName;
OperateResult result = fileClient.DownloadFile(
fileItem.FileName,
m_Factory,
m_Group,
m_Id,
(m, n) =>
{
Dispatcher.Invoke(new Action(() =>
{
FileDownloadProgress.Value = m * 100 / n;
}));
},
save_file_name
);
Dispatcher.Invoke(new Action(() =>
{
if (result.IsSuccess)
{
if (MessageBox.Show("下载完成,路径为:" + save_file_name + Environment.NewLine +
"是否打开文件路径?", "打开确认", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
{
System.Diagnostics.Process.Start("explorer.exe", @"/select," + save_file_name);
}
}
else
{
MessageBox.Show("下载失败,错误原因:" + result.Message);
}
FileDownloadButton.IsEnabled = true;
}));
}
#endregion
#region Private Members
private IntegrationFileClient fileClient; // 进行文件操作的客户端
private Func<GroupFileItem, bool> DeleteCheck; // 删除操作时的检查方法
private GroupFileItem fileItem; // 本控件关联显示的文件
private string m_Factory; // 文件的第一大类
private string m_Group; // 文件的第二大类
private string m_Id; // 文件的第三大类
#endregion
}
}
| {
"content_hash": "a23db6f112b4a4dd0a95f818e719c4de",
"timestamp": "",
"source": "github",
"line_count": 209,
"max_line_length": 143,
"avg_line_length": 30.88995215311005,
"alnum_prop": 0.506815365551425,
"repo_name": "dathlin/ClientServerProject",
"id": "27113846099d0bce1448840ada30e2615529e961",
"size": "6942",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "软件系统客户端Wpf/Views/Controls/UserFileRenderItem.xaml.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ASP",
"bytes": "118"
},
{
"name": "C#",
"bytes": "478602"
},
{
"name": "CSS",
"bytes": "5883"
},
{
"name": "HTML",
"bytes": "31482"
},
{
"name": "Java",
"bytes": "37383"
},
{
"name": "JavaScript",
"bytes": "18679"
}
],
"symlink_target": ""
} |
module Azure::Network::Mgmt::V2020_04_01
module Models
#
# The information about security rules applied to the specified VM.
#
class SecurityGroupViewResult
include MsRestAzure
# @return [Array<SecurityGroupNetworkInterface>] List of network
# interfaces on the specified VM.
attr_accessor :network_interfaces
#
# Mapper for SecurityGroupViewResult class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'SecurityGroupViewResult',
type: {
name: 'Composite',
class_name: 'SecurityGroupViewResult',
model_properties: {
network_interfaces: {
client_side_validation: true,
required: false,
serialized_name: 'networkInterfaces',
type: {
name: 'Sequence',
element: {
client_side_validation: true,
required: false,
serialized_name: 'SecurityGroupNetworkInterfaceElementType',
type: {
name: 'Composite',
class_name: 'SecurityGroupNetworkInterface'
}
}
}
}
}
}
}
end
end
end
end
| {
"content_hash": "9b7a4e783f258ed9f95b6ea036f1fb9a",
"timestamp": "",
"source": "github",
"line_count": 51,
"max_line_length": 82,
"avg_line_length": 29.372549019607842,
"alnum_prop": 0.5080106809078772,
"repo_name": "Azure/azure-sdk-for-ruby",
"id": "eb89ce974af2781668d443d085d279d5fad2a688",
"size": "1662",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "management/azure_mgmt_network/lib/2020-04-01/generated/azure_mgmt_network/models/security_group_view_result.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ruby",
"bytes": "345216400"
},
{
"name": "Shell",
"bytes": "305"
}
],
"symlink_target": ""
} |
game.EnemyBaseEntity = me.Entity.extend({
init : function(x, y, settings) {
this._super(me.Entity, 'init', [x, y, {
image: "tower",
width: 100,
height: 100,
spritewidth: "100",
spriteheight: "100",
getShape: function(){
return (new me.Rect(0, 0, 100, 70).toPolygon)();
}
}]);
this.broken = false;
this.health = game.data.enemyCreepHealth;
this.alwaysUpdate = true;
this.body.onCollision = this.onCollision.bind(this);
this.type = "EnemyBase";
this.renderable.addAnimation("idle", [0]);
this.renderable.addAnimation("broken", [1]);
this.renderable.setCurrentAnimation("idle");
if(this.health<=0){
this.broken = true;
}
},
update:function(delta){
if(this.health<=0){
this.broken = true;
game.data.win = true;
this.renderable.setCurrentAnimation("broken");
}
this.body.update(delta);
this._super(me.Entity, "update", [delta]);
return true;
},
onCollision: function(){
},
loseHealth: function(){
this.health--;
}
}); | {
"content_hash": "428c84b6d55131e25fd0b9991f227d4d",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 64,
"avg_line_length": 28,
"alnum_prop": 0.49767080745341613,
"repo_name": "Pzink3/ParkerZAwesomenauts",
"id": "05ebfa7443660d7fdefab602c4da57f49a505fe5",
"size": "1288",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "js/entities/EnemyBaseEntity.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "720"
},
{
"name": "JavaScript",
"bytes": "779349"
},
{
"name": "PHP",
"bytes": "4018"
}
],
"symlink_target": ""
} |
<?xml version="1.0" encoding="utf-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<parameters>
<!-- Utility classes -->
<parameter key="liip_imagine.filter.configuration.class">Liip\ImagineBundle\Imagine\Filter\FilterConfiguration</parameter>
<parameter key="liip_imagine.filter.manager.class">Liip\ImagineBundle\Imagine\Filter\FilterManager</parameter>
<parameter key="liip_imagine.data.manager.class">Liip\ImagineBundle\Imagine\Data\DataManager</parameter>
<parameter key="liip_imagine.cache.manager.class">Liip\ImagineBundle\Imagine\Cache\CacheManager</parameter>
<parameter key="liip_imagine.cache.signer.class">Liip\ImagineBundle\Imagine\Cache\Signer</parameter>
<parameter key="liip_imagine.binary.mime_type_guesser.class">Liip\ImagineBundle\Binary\SimpleMimeTypeGuesser</parameter>
<!-- Controller class -->
<parameter key="liip_imagine.controller.class">Liip\ImagineBundle\Controller\ImagineController</parameter>
<!-- Templating classes -->
<parameter key="liip_imagine.twig.extension.class">Liip\ImagineBundle\Templating\ImagineExtension</parameter>
<parameter key="liip_imagine.templating.helper.class">Liip\ImagineBundle\Templating\Helper\ImagineHelper</parameter>
<!-- ImagineInterface implementations -->
<parameter key="liip_imagine.gd.class">Imagine\Gd\Imagine</parameter>
<parameter key="liip_imagine.imagick.class">Imagine\Imagick\Imagine</parameter>
<parameter key="liip_imagine.gmagick.class">Imagine\Gmagick\Imagine</parameter>
<!-- Filter loaders' classes -->
<parameter key="liip_imagine.filter.loader.relative_resize.class">Liip\ImagineBundle\Imagine\Filter\Loader\RelativeResizeFilterLoader</parameter>
<parameter key="liip_imagine.filter.loader.resize.class">Liip\ImagineBundle\Imagine\Filter\Loader\ResizeFilterLoader</parameter>
<parameter key="liip_imagine.filter.loader.thumbnail.class">Liip\ImagineBundle\Imagine\Filter\Loader\ThumbnailFilterLoader</parameter>
<parameter key="liip_imagine.filter.loader.crop.class">Liip\ImagineBundle\Imagine\Filter\Loader\CropFilterLoader</parameter>
<parameter key="liip_imagine.filter.loader.grayscale.class">Liip\ImagineBundle\Imagine\Filter\Loader\GrayscaleFilterLoader</parameter>
<parameter key="liip_imagine.filter.loader.paste.class">Liip\ImagineBundle\Imagine\Filter\Loader\PasteFilterLoader</parameter>
<parameter key="liip_imagine.filter.loader.watermark.class">Liip\ImagineBundle\Imagine\Filter\Loader\WatermarkFilterLoader</parameter>
<parameter key="liip_imagine.filter.loader.strip.class">Liip\ImagineBundle\Imagine\Filter\Loader\StripFilterLoader</parameter>
<parameter key="liip_imagine.filter.loader.background.class">Liip\ImagineBundle\Imagine\Filter\Loader\BackgroundFilterLoader</parameter>
<parameter key="liip_imagine.filter.loader.scale.class">Liip\ImagineBundle\Imagine\Filter\Loader\ScaleFilterLoader</parameter>
<parameter key="liip_imagine.filter.loader.upscale.class">Liip\ImagineBundle\Imagine\Filter\Loader\UpscaleFilterLoader</parameter>
<parameter key="liip_imagine.filter.loader.downscale.class">Liip\ImagineBundle\Imagine\Filter\Loader\DownscaleFilterLoader</parameter>
<parameter key="liip_imagine.filter.loader.auto_rotate.class">Liip\ImagineBundle\Imagine\Filter\Loader\AutoRotateFilterLoader</parameter>
<parameter key="liip_imagine.filter.loader.rotate.class">Liip\ImagineBundle\Imagine\Filter\Loader\RotateFilterLoader</parameter>
<parameter key="liip_imagine.filter.loader.flip.class">Liip\ImagineBundle\Imagine\Filter\Loader\FlipFilterLoader</parameter>
<parameter key="liip_imagine.filter.loader.interlace.class">Liip\ImagineBundle\Imagine\Filter\Loader\InterlaceFilterLoader</parameter>
<parameter key="liip_imagine.filter.loader.resample.class">Liip\ImagineBundle\Imagine\Filter\Loader\ResampleFilterLoader</parameter>
<parameter key="liip_imagine.filter.loader.fixed.class">Liip\ImagineBundle\Imagine\Filter\Loader\FixedFilterLoader</parameter>
<!-- Data loaders' classes -->
<parameter key="liip_imagine.binary.loader.filesystem.class">Liip\ImagineBundle\Binary\Loader\FileSystemLoader</parameter>
<parameter key="liip_imagine.binary.loader.stream.class">Liip\ImagineBundle\Binary\Loader\StreamLoader</parameter>
<parameter key="liip_imagine.binary.loader.flysystem.class">Liip\ImagineBundle\Binary\Loader\FlysystemLoader</parameter>
<parameter key="liip_imagine.binary.loader.chain.class">Liip\ImagineBundle\Binary\Loader\ChainLoader</parameter>
<!-- Data loader loaders' classes -->
<parameter key="liip_imagine.binary.locator.filesystem.class">Liip\ImagineBundle\Binary\Locator\FileSystemLocator</parameter>
<parameter key="liip_imagine.binary.locator.filesystem_insecure.class">Liip\ImagineBundle\Binary\Locator\FileSystemInsecureLocator</parameter>
<!-- Cache resolvers' classes -->
<parameter key="liip_imagine.cache.resolver.web_path.class">Liip\ImagineBundle\Imagine\Cache\Resolver\WebPathResolver</parameter>
<parameter key="liip_imagine.cache.resolver.no_cache_web_path.class">Liip\ImagineBundle\Imagine\Cache\Resolver\NoCacheWebPathResolver</parameter>
<parameter key="liip_imagine.cache.resolver.aws_s3.class">Liip\ImagineBundle\Imagine\Cache\Resolver\AwsS3Resolver</parameter>
<parameter key="liip_imagine.cache.resolver.cache.class">Liip\ImagineBundle\Imagine\Cache\Resolver\CacheResolver</parameter>
<parameter key="liip_imagine.cache.resolver.flysystem.class">Liip\ImagineBundle\Imagine\Cache\Resolver\FlysystemResolver</parameter>
<parameter key="liip_imagine.cache.resolver.proxy.class">Liip\ImagineBundle\Imagine\Cache\Resolver\ProxyResolver</parameter>
<!-- Form types -->
<parameter key="liip_imagine.form.type.image.class">Liip\ImagineBundle\Form\Type\ImageType</parameter>
<parameter key="liip_imagine.meta_data.reader.class">Imagine\Image\Metadata\ExifMetadataReader</parameter>
<!-- Post processors' classes -->
<parameter key="liip_imagine.filter.post_processor.jpegoptim.class">Liip\ImagineBundle\Imagine\Filter\PostProcessor\JpegOptimPostProcessor</parameter>
<parameter key="liip_imagine.jpegoptim.binary">/usr/bin/jpegoptim</parameter>
<parameter key="liip_imagine.jpegoptim.stripAll">true</parameter>
<parameter key="liip_imagine.jpegoptim.max">null</parameter>
<parameter key="liip_imagine.jpegoptim.progressive">true</parameter>
<parameter key="liip_imagine.jpegoptim.tempDir">null</parameter>
<parameter key="liip_imagine.filter.post_processor.optipng.class">Liip\ImagineBundle\Imagine\Filter\PostProcessor\OptiPngPostProcessor</parameter>
<parameter key="liip_imagine.optipng.binary">/usr/bin/optipng</parameter>
<parameter key="liip_imagine.optipng.level">7</parameter>
<parameter key="liip_imagine.optipng.stripAll">true</parameter>
<parameter key="liip_imagine.optipng.tempDir">null</parameter>
<parameter key="liip_imagine.filter.post_processor.pngquant.class">Liip\ImagineBundle\Imagine\Filter\PostProcessor\PngquantPostProcessor</parameter>
<parameter key="liip_imagine.pngquant.binary">/usr/bin/pngquant</parameter>
<parameter key="liip_imagine.filter.post_processor.mozjpeg.class">Liip\ImagineBundle\Imagine\Filter\PostProcessor\MozJpegPostProcessor</parameter>
<parameter key="liip_imagine.mozjpeg.binary">/opt/mozjpeg/bin/cjpeg</parameter>
</parameters>
<services>
<!-- Utility services -->
<service id="liip_imagine.filter.manager" class="%liip_imagine.filter.manager.class%">
<argument type="service" id="liip_imagine.filter.configuration" />
<argument type="service" id="liip_imagine" />
<argument type="service" id="liip_imagine.binary.mime_type_guesser" />
</service>
<service id="liip_imagine.data.manager" class="%liip_imagine.data.manager.class%">
<argument type="service" id="liip_imagine.binary.mime_type_guesser" />
<argument type="service" id="liip_imagine.extension_guesser" />
<argument type="service" id="liip_imagine.filter.configuration" />
<argument>%liip_imagine.binary.loader.default%</argument>
<argument>%liip_imagine.default_image%</argument>
</service>
<service id="liip_imagine.cache.manager" class="%liip_imagine.cache.manager.class%">
<argument type="service" id="liip_imagine.filter.configuration" />
<argument type="service" id="router" />
<argument type="service" id="liip_imagine.cache.signer" />
<argument type="service" id="event_dispatcher" />
<argument>%liip_imagine.cache.resolver.default%</argument>
</service>
<service id="liip_imagine.filter.configuration" class="%liip_imagine.filter.configuration.class%">
<argument>%liip_imagine.filter_sets%</argument>
</service>
<!-- Controller -->
<service id="liip_imagine.controller" class="%liip_imagine.controller.class%">
<argument type="service" id="liip_imagine.data.manager" />
<argument type="service" id="liip_imagine.filter.manager" />
<argument type="service" id="liip_imagine.cache.manager" />
<argument type="service" id="liip_imagine.cache.signer" />
<argument type="service" id="logger" on-invalid="ignore" />
<argument>%liip_imagine.controller.redirect_response_code%</argument>
</service>
<service id="liip_imagine.meta_data.reader" class="%liip_imagine.meta_data.reader.class%" public="false" />
<!-- ImagineInterface instances -->
<service id="liip_imagine" alias="liip_imagine.gd" />
<service id="liip_imagine.gd" class="%liip_imagine.gd.class%" public="false" />
<service id="liip_imagine.imagick" class="%liip_imagine.imagick.class%" public="false" />
<service id="liip_imagine.gmagick" class="%liip_imagine.gmagick.class%" public="false" />
<!-- Templating helpers and extensions -->
<service id="liip_imagine.twig.extension" class="%liip_imagine.twig.extension.class%" public="false">
<tag name="twig.extension" />
<argument type="service" id="liip_imagine.cache.manager" />
</service>
<service id="liip_imagine.templating.helper" class="%liip_imagine.templating.helper.class%">
<tag name="templating.helper" alias="imagine" />
<argument type="service" id="liip_imagine.cache.manager" />
</service>
<!-- Filter loaders -->
<service id="liip_imagine.filter.loader.relative_resize" class="%liip_imagine.filter.loader.relative_resize.class%">
<tag name="liip_imagine.filter.loader" loader="relative_resize" />
</service>
<service id="liip_imagine.filter.loader.resize" class="%liip_imagine.filter.loader.resize.class%">
<tag name="liip_imagine.filter.loader" loader="resize" />
</service>
<service id="liip_imagine.filter.loader.thumbnail" class="%liip_imagine.filter.loader.thumbnail.class%">
<tag name="liip_imagine.filter.loader" loader="thumbnail" />
</service>
<service id="liip_imagine.filter.loader.crop" class="%liip_imagine.filter.loader.crop.class%">
<tag name="liip_imagine.filter.loader" loader="crop" />
</service>
<service id="liip_imagine.filter.loader.grayscale" class="%liip_imagine.filter.loader.grayscale.class%">
<tag name="liip_imagine.filter.loader" loader="grayscale" />
</service>
<service id="liip_imagine.filter.loader.paste" class="%liip_imagine.filter.loader.paste.class%">
<tag name="liip_imagine.filter.loader" loader="paste" />
<argument type="service" id="liip_imagine" />
<argument>%kernel.root_dir%</argument>
</service>
<service id="liip_imagine.filter.loader.watermark" class="%liip_imagine.filter.loader.watermark.class%">
<tag name="liip_imagine.filter.loader" loader="watermark" />
<argument type="service" id="liip_imagine" />
<argument>%kernel.root_dir%</argument>
</service>
<service id="liip_imagine.filter.loader.background" class="%liip_imagine.filter.loader.background.class%">
<tag name="liip_imagine.filter.loader" loader="background" />
<argument type="service" id="liip_imagine" />
</service>
<service id="liip_imagine.filter.loader.strip" class="%liip_imagine.filter.loader.strip.class%">
<tag name="liip_imagine.filter.loader" loader="strip" />
</service>
<service id="liip_imagine.filter.loader.scale" class="%liip_imagine.filter.loader.scale.class%">
<tag name="liip_imagine.filter.loader" loader="scale" />
</service>
<service id="liip_imagine.filter.loader.upscale" class="%liip_imagine.filter.loader.upscale.class%">
<tag name="liip_imagine.filter.loader" loader="upscale" />
</service>
<service id="liip_imagine.filter.loader.downscale" class="%liip_imagine.filter.loader.downscale.class%">
<tag name="liip_imagine.filter.loader" loader="downscale" />
</service>
<service id="liip_imagine.filter.loader.auto_rotate" class="%liip_imagine.filter.loader.auto_rotate.class%">
<tag name="liip_imagine.filter.loader" loader="auto_rotate" />
</service>
<service id="liip_imagine.filter.loader.rotate" class="%liip_imagine.filter.loader.rotate.class%">
<tag name="liip_imagine.filter.loader" loader="rotate" />
</service>
<service id="liip_imagine.filter.loader.flip" class="%liip_imagine.filter.loader.flip.class%">
<tag name="liip_imagine.filter.loader" loader="flip" />
</service>
<service id="liip_imagine.filter.loader.interlace" class="%liip_imagine.filter.loader.interlace.class%">
<tag name="liip_imagine.filter.loader" loader="interlace" />
</service>
<service id="liip_imagine.filter.loader.resample" class="%liip_imagine.filter.loader.resample.class%">
<argument type="service" id="liip_imagine" />
<tag name="liip_imagine.filter.loader" loader="resample" />
</service>
<service id="liip_imagine.filter.loader.fixed" class="%liip_imagine.filter.loader.fixed.class%">
<tag name="liip_imagine.filter.loader" loader="fixed" />
</service>
<!-- Data loaders -->
<service id="liip_imagine.binary.loader.prototype.filesystem" class="%liip_imagine.binary.loader.filesystem.class%">
<argument type="service" id="liip_imagine.mime_type_guesser" />
<argument type="service" id="liip_imagine.extension_guesser" />
<argument><!-- will be injected by FileSystemLoaderFactory --></argument>
<argument><!-- will be injected by FileSystemLoaderFactory --></argument>
</service>
<service id="liip_imagine.binary.loader.prototype.stream" class="%liip_imagine.binary.loader.stream.class%">
<argument><!-- will be injected by StreamLoaderFactory --></argument>
<argument><!-- will be injected by StreamLoaderFactory --></argument>
</service>
<service id="liip_imagine.binary.loader.prototype.flysystem" class="%liip_imagine.binary.loader.flysystem.class%" abstract="true">
<argument type="service" id="liip_imagine.extension_guesser" />
<argument><!-- will be injected by FlysystemLoaderFactory --></argument>
</service>
<service id="liip_imagine.binary.loader.prototype.chain" class="%liip_imagine.binary.loader.chain.class%" abstract="true">
<argument><!-- will be injected by ChainLoaderFactory --></argument>
</service>
<!-- Data loader locators -->
<service id="liip_imagine.binary.locator.filesystem" class="%liip_imagine.binary.locator.filesystem.class%" public="false">
<argument><!-- will be injected by FileSystemLoaderFactory --></argument>
<tag name="liip_imagine.binary.locator" shared="false" />
</service>
<service id="liip_imagine.binary.locator.filesystem_insecure" class="%liip_imagine.binary.locator.filesystem_insecure.class%" public="false">
<argument><!-- will be injected by FileSystemLoaderFactory --></argument>
<tag name="liip_imagine.binary.locator" shared="false" />
</service>
<!-- Cache resolver -->
<service id="liip_imagine.cache.resolver.prototype.web_path" class="%liip_imagine.cache.resolver.web_path.class%" public="true" abstract="true">
<argument type="service" id="filesystem" />
<argument type="service" id="router.request_context" />
<argument><!-- will be injected by WebPathResolverFactory --></argument>
<argument><!-- will be injected by WebPathResolverFactory --></argument>
</service>
<service id="liip_imagine.cache.resolver.prototype.aws_s3" class="%liip_imagine.cache.resolver.aws_s3.class%" public="true" abstract="true">
<argument><!-- will be injected by AwsS3ResolverFactory --></argument>
<argument><!-- will be injected by AwsS3ResolverFactory --></argument>
<argument><!-- will be injected by AwsS3ResolverFactory --></argument>
<argument><!-- will be injected by AwsS3ResolverFactory --></argument>
<argument><!-- will be injected by AwsS3ResolverFactory --></argument>
</service>
<service id="liip_imagine.cache.resolver.prototype.cache" class="%liip_imagine.cache.resolver.cache.class%" public="true" abstract="true">
<argument><!-- will be injected by a ResolverFactory --></argument>
<argument><!-- will be injected by a ResolverFactory --></argument>
</service>
<service id="liip_imagine.cache.resolver.prototype.flysystem" class="%liip_imagine.cache.resolver.flysystem.class%" public="true" abstract="true">
<argument><!-- will be injected by a ResolverFactory --></argument>
<argument type="service" id="router.request_context" />
<argument><!-- will be injected by a ResolverFactory --></argument>
<argument><!-- will be injected by a ResolverFactory --></argument>
<argument><!-- will be injected by a ResolverFactory --></argument>
</service>
<service id="liip_imagine.cache.resolver.prototype.proxy" class="%liip_imagine.cache.resolver.proxy.class%" public="true" abstract="true">
<argument><!-- will be injected by AwsS3ResolverFactory --></argument>
<argument><!-- will be injected by AwsS3ResolverFactory --></argument>
</service>
<service id="liip_imagine.cache.resolver.no_cache_web_path" class="%liip_imagine.cache.resolver.no_cache_web_path.class%" public="true">
<argument type="service" id="router.request_context" />
<tag name="liip_imagine.cache.resolver" resolver="no_cache" />
</service>
<!-- Form types -->
<service id="liip_imagine.form.type.image" class="%liip_imagine.form.type.image.class%">
<tag name="form.type" alias="liip_imagine_image" />
</service>
<!-- Guessers -->
<service
id="liip_imagine.mime_type_guesser"
class="Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesserInterface"
/>
<service
id="liip_imagine.extension_guesser"
class="Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesserInterface"
/>
<service id="liip_imagine.binary.mime_type_guesser" class="%liip_imagine.binary.mime_type_guesser.class%">
<argument type="service" id="liip_imagine.mime_type_guesser" />
</service>
<service id="liip_imagine.cache.signer" class="%liip_imagine.cache.signer.class%">
<argument>%kernel.secret%</argument>
</service>
<!-- Post processors -->
<service id="liip_imagine.filter.post_processor.jpegoptim" class="%liip_imagine.filter.post_processor.jpegoptim.class%">
<argument>%liip_imagine.jpegoptim.binary%</argument>
<argument>%liip_imagine.jpegoptim.stripAll%</argument>
<argument>%liip_imagine.jpegoptim.max%</argument>
<argument>%liip_imagine.jpegoptim.progressive%</argument>
<argument>%liip_imagine.jpegoptim.tempDir%</argument>
<tag name="liip_imagine.filter.post_processor" post_processor="jpegoptim" />
</service>
<service id="liip_imagine.filter.post_processor.optipng" class="%liip_imagine.filter.post_processor.optipng.class%">
<argument>%liip_imagine.optipng.binary%</argument>
<argument>%liip_imagine.optipng.level%</argument>
<argument>%liip_imagine.optipng.stripAll%</argument>
<argument>%liip_imagine.optipng.tempDir%</argument>
<tag name="liip_imagine.filter.post_processor" post_processor="optipng" />
</service>
<service id="liip_imagine.filter.post_processor.pngquant" class="%liip_imagine.filter.post_processor.pngquant.class%">
<argument>%liip_imagine.pngquant.binary%</argument>
<tag name="liip_imagine.filter.post_processor" post_processor="pngquant" />
</service>
<service id="liip_imagine.filter.post_processor.mozjpeg" class="%liip_imagine.filter.post_processor.mozjpeg.class%">
<argument>%liip_imagine.mozjpeg.binary%</argument>
<tag name="liip_imagine.filter.post_processor" post_processor="mozjpeg" />
</service>
</services>
</container>
| {
"content_hash": "e82b0422ef3519aa7f6bb5fc1667dce2",
"timestamp": "",
"source": "github",
"line_count": 372,
"max_line_length": 158,
"avg_line_length": 60.016129032258064,
"alnum_prop": 0.6815372211771029,
"repo_name": "robfrawley/LiipImagineBundle",
"id": "2e3d6be8b0f70a2e21d659345bf6dbc68431c53e",
"size": "22326",
"binary": false,
"copies": "1",
"ref": "refs/heads/1.0",
"path": "Resources/config/imagine.xml",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "726"
},
{
"name": "PHP",
"bytes": "607384"
}
],
"symlink_target": ""
} |
*Unreleased*
*2.1.0 (March 06, 2022)*
* Three new transformations added:
- snake_case (thanks, @Finnegan5),
- camel_case,
- pascal_case
* Improved error message when called with an unknown transformation name
* Improved documentation
* Ensure Ruby 3.1.1 compability
* Switch from Travis CI to GitHub Actions
*2.0.0 (December 28, 2020)*
* Ensure Ruby 2.6 compability
* Ensure Ruby 2.7 compability
* Ensure Ruby 3.0 compability
* Drops support for Ruby <= 2.2
* Drops support for Ruby 2.3
* Drops support for Ruby 2.4
*1.0.0 (December 26, 2017)*
* Runs specs against Ruby up to version 2.5
* Drops support for Ruby <= 2.1
*0.1.0 (April 27, 2017)*
* Initial version
*0.1.1 (April 27, 2017)*
* Fix `undefined method 'Array#to_h'` on Ruby '< 2.1'
| {
"content_hash": "68494ec5316ab9561d6c9b2e11ac7327",
"timestamp": "",
"source": "github",
"line_count": 34,
"max_line_length": 72,
"avg_line_length": 22.294117647058822,
"alnum_prop": 0.6992084432717678,
"repo_name": "spickermann/deep_hash_transformer",
"id": "c6a9fd46c040522c50d712840e9d219f7a36a4d6",
"size": "758",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "CHANGELOG.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ruby",
"bytes": "7971"
}
],
"symlink_target": ""
} |
package ml.siddharth.inspireme;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import com.google.firebase.FirebaseApp;
import com.google.firebase.database.DataSnapshot;
import com.google.firebase.database.DatabaseError;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.database.ValueEventListener;
import com.squareup.picasso.Picasso;
import java.util.Random;
public class UserDetailsActivity extends AppCompatActivity {
private TextView name,location,company,doj;
private Button github;
private String name1,loc1,comp1,doj1,git1,prof1;
private ImageView prof;
private DatabaseReference mWomenDatabase;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_user_details);
mWomenDatabase = FirebaseDatabase.getInstance().getReference();
Random random = new Random();
int rand = random.nextInt(90);
name = (TextView)findViewById(R.id.name);
prof = (ImageView)findViewById(R.id.profileimage);
company = (TextView)findViewById(R.id.company);
location = (TextView)findViewById(R.id.location);
doj = (TextView)findViewById(R.id.doj);
github = (Button)findViewById(R.id.github);
DatabaseReference inspirer = mWomenDatabase.child("name").child(String.valueOf(rand));
inspirer.addValueEventListener (new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
if (dataSnapshot.exists()){
name1 = dataSnapshot.child("name").getValue(String.class);
comp1 = dataSnapshot.child("company").getValue(String.class);
loc1 = dataSnapshot.child("location").getValue(String.class);
doj1 = dataSnapshot.child("doj").getValue(String.class);
git1 = dataSnapshot.child("github_url_url").getValue(String.class);
prof1 = dataSnapshot.child("image_url").getValue(String.class);
Picasso.get().load(prof1).into(prof);
name.setText(name1);
company.setText(comp1);
location.setText(loc1);
doj.setText(doj1);
github.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Uri uri = Uri.parse(git1);
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
}
});
}
else {
Toast.makeText(getApplicationContext(),"error",Toast.LENGTH_SHORT).show();
}
}
@Override
public void onCancelled(DatabaseError databaseError) {
}
});
}
} | {
"content_hash": "cbfa4a3c13bc331b3242bf726554126b",
"timestamp": "",
"source": "github",
"line_count": 95,
"max_line_length": 94,
"avg_line_length": 35.11578947368421,
"alnum_prop": 0.6238009592326139,
"repo_name": "tapasweni-pathak/Women-GitHubers",
"id": "ed9eaf5f37beaa6b40ca2da8b862436c14eda031",
"size": "3336",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "InspireMe/app/src/main/java/ml/siddharth/inspireme/UserDetailsActivity.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "10609"
},
{
"name": "PHP",
"bytes": "15284"
},
{
"name": "Python",
"bytes": "4004"
}
],
"symlink_target": ""
} |
package initial
import "fmt"
// init functions are not renamed
func init() { foo() }
// Type S.
type S struct {
t
u int
}
// Function bar.
func bar(s *S) {
fmt.Println(s.t, s.u) // comment inside function
}
| {
"content_hash": "e9ddbed82fbe593359e01ff0aa554a68",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 49,
"avg_line_length": 12.588235294117647,
"alnum_prop": 0.6355140186915887,
"repo_name": "b3ntly/twelvefactor",
"id": "5d0d19009eb4025fbee70373983fafeae95db1d6",
"size": "214",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "vendor/golang.org/x/tools/cmd/bundle/testdata/src/initial/a.go",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Go",
"bytes": "19812"
},
{
"name": "Protocol Buffer",
"bytes": "1836"
},
{
"name": "Shell",
"bytes": "442"
}
],
"symlink_target": ""
} |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Datos;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import javax.swing.JOptionPane;
import vistas.login;
/**
*
* @author Gonzalo
*/
public class Usuario {
private int id;
private String nombre;
private String contraseña;
private int id_rol;
public static String nombreLogueado;
public static String ContraseñaLogueada;
public Usuario() {
}
/**
* @return the nombreLogueado
*/
public String getNombreLogueado() {
return nombreLogueado;
}
/**
* @param nombreLogueado the nombreLogueado to set
*/
public void setNombreLogueado(String nombreLogueado) {
this.nombreLogueado = nombreLogueado;
}
/**
* @return the ContraseñaLogueada
*/
public String getContraseñaLogueada() {
return ContraseñaLogueada;
}
/**
* @param ContraseñaLogueada the ContraseñaLogueada to set
*/
public void setContraseñaLogueada(String ContraseñaLogueada) {
this.ContraseñaLogueada = ContraseñaLogueada;
}
// public login getLoginActual() {
// return loginActual;
// }
/**
* @return the id
*/
public int getId() {
return id;
}
/**
* @return the nombre
*/
public String getNombre() {
return nombre;
}
/**
* @param nombre the nombre to set
*/
public void setNombre(String nombre) {
this.nombre = nombre;
}
/**
* @return the contraseña
*/
public String getContraseña() {
return contraseña;
}
/**
* @param contraseña the contraseña to set
*/
public void setContraseña(String contraseña) {
this.contraseña = contraseña;
}
public int verificarUsuario(String nom,String pass) throws ClassNotFoundException{
//devuelve
//0 Incorrecto
//1 Correcto - usuario Administrador
//2 Correcto - usuario Comun
//
Usuario user = new Usuario();
Rol nuevoRol = new Rol();
user=user.buscarUsuario(nom, pass);
int verificado;
int usuarioV=user.getNombre().compareTo(nom);
int passV=user.getContraseña().compareTo(pass);
if (usuarioV==0) {
if (passV==0) {
//aqui esta verificado el usuario
user.setNombreLogueado(user.getNombre());
user.setContraseñaLogueada(user.getContraseña());
System.out.println("----------------------------------------------------");
System.out.println("Usuario Logueado: "+user.getNombreLogueado());
System.out.println("Contraseña Logueada: "+user.getContraseñaLogueada());
System.out.println("----------------------------------------------------");
int id_rol = user.getId_rol();
nuevoRol=nuevoRol.buscarRol(id_rol);
int tipoV=nuevoRol.getNombre().compareTo("administrador");
if (tipoV==0) {
return verificado=1;
}else{
return verificado=2;
}
}else{
System.out.println("Contraseña Incorrecta.");
JOptionPane.showMessageDialog(null, "Nombre de Usuario Incorrecto.");
return verificado=0;
}
}else{
System.out.println("Nombre de Usuario Incorrecto.");
JOptionPane.showMessageDialog(null, "Nombre de Usuario Incorrecto.");
return verificado=0;
}
}
public String devolverLogin(){
return nombreLogueado;
}
public Usuario buscarUsuario(String nom,String pass) throws ClassNotFoundException{
Usuario user = new Usuario();
String nombre,contraseña;
int id,id_rol;
try {
Connection cn = Conexion.Cadena();
String SQL = "SELECT * FROM usuario "+" WHERE nombre ='"+nom+"' ";
Statement sentencia = cn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
ResultSet rsDatos = sentencia.executeQuery(SQL);
if(rsDatos.first()){
nombre = rsDatos.getString("nombre");
contraseña=rsDatos.getString("contraseña");
id=rsDatos.getInt("id_usuario");
id_rol = rsDatos.getInt("id_rol");
user.setId(id);
user.setNombre(nombre);
user.setContraseña(contraseña);
user.setId_rol(id_rol);
System.out.println(nombre+contraseña+id);
}
else{
System.out.println("es nulo");
}
} catch (SQLException ex) {
}
return user;
}//BuscarSocio
public void guardarnuevoU(Usuario nuevoU) throws ClassNotFoundException, SQLException{
Connection connection = Conexion.Cadena();
PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO usuario (nombre, contraseña,id_rol) VALUES (?,?,?)");
preparedStatement.setString(1, nuevoU.getNombre());
preparedStatement.setString(2, nuevoU.getContraseña());
preparedStatement.setInt(3, nuevoU.getId_rol());
int res = preparedStatement.executeUpdate();
if (res > 0) {
JOptionPane.showMessageDialog(null, "Usuario Guardado");
//registro de actividad
Usuario user = new Usuario();
String nombre = user.getNombreLogueado();
String contraseña = user.getContraseñaLogueada();
user = user.buscarUsuario(nombre, contraseña);
int id_desc=3;
Registro reg= new Registro();
reg.gaurdarReg(user.getId(), id_desc);
} else {
JOptionPane.showMessageDialog(null, "Error al Guardar Usuario");
//LimpiarCajas();
}
connection.close();
}
public ArrayList<Usuario> listar(){
ArrayList lista = new ArrayList();
Usuario usuario;
try {
Connection cn = Conexion.Cadena();
String SQL = "SELECT * FROM usuario";
Statement sentencia = cn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
ResultSet rsDatos = sentencia.executeQuery(SQL);
//System.out.println("Correcto");
while (rsDatos.next()) {
usuario = new Usuario();
usuario.setNombre(rsDatos.getString(2));
usuario.setContraseña(rsDatos.getString(3));
usuario.setId_rol(rsDatos.getInt(4));
lista.add(usuario);
}
} catch (Exception e) {
}
return lista;
}
/**
* @param id the id to set
*/
public void setId(int id) {
this.id = id;
}
/**
* @return the id_rol
*/
public int getId_rol() {
return id_rol;
}
/**
* @param id_rol the id_rol to set
*/
public void setId_rol(int id_rol) {
this.id_rol = id_rol;
}
}
| {
"content_hash": "3220fdcb1fe56703aa6ce2d8b4f25024",
"timestamp": "",
"source": "github",
"line_count": 250,
"max_line_length": 140,
"avg_line_length": 30.572,
"alnum_prop": 0.550830825592045,
"repo_name": "gonzapala/CPI",
"id": "742b64896cc340d771d59ed1e5e5737522631f3f",
"size": "7681",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "CPI/src/Datos/Usuario.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "357214"
}
],
"symlink_target": ""
} |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.1-master-70cecda
*/body.md-THEME_NAME-theme,html.md-THEME_NAME-theme{color:'{{foreground-1}}';background-color:'{{background-color}}'} | {
"content_hash": "c1a6321188708b7da0ab6045dc207117",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 118,
"avg_line_length": 38.166666666666664,
"alnum_prop": 0.7117903930131004,
"repo_name": "Pikabanga/MelloWizard",
"id": "8b776a983ceffe53c97c67aa06de58825befe7f6",
"size": "229",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "wwwroot/lib/angular-material/modules/js/core/core-default-theme.min.css",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "4912"
},
{
"name": "CSS",
"bytes": "4219639"
},
{
"name": "HTML",
"bytes": "190473"
},
{
"name": "JavaScript",
"bytes": "322662"
}
],
"symlink_target": ""
} |
import React, { Component } from 'react';
import { View, Image } from 'react-native';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Title, Text, Button, Icon } from 'native-base';
import * as drawerActions from '../../actions/drawer';
import * as routeActions from '../../actions/route';
import theme from '../../themes/base-theme';
import styles from './styles';
const backgroundTop = require('../../../images/bg-2.png');
class Main extends Component {
static propTypes = {
openDrawer: React.PropTypes.func,
goBack: React.PropTypes.func,
escolaSabatina: React.PropTypes.object
}
render() {
const { escolaSabatina: { hoje, semana, licoes } } = this.props;
const { versoAureo } = licoes[semana.licao];
const licaoHoje = licoes[semana.licao].dias[hoje.dia];
return (
<View>
<Image source={backgroundTop} style={styles.bgTop}>
<View style={styles.textoLicaoContainer}>
<Text style={styles.numeroLicao}>{`LIÇÃO #${semana.licao}`}</Text>
</View>
<View style={styles.versoAureo}>
<Text>
{versoAureo.texto}
</Text>
</View>
</Image>
</View>
);
}
}
const mapStateToProps = (state) => {
return {
escolaSabatina: state.escolaSabatina,
};
}
const mapDispatchToProps = dispatch => ({
...bindActionCreators({
openDrawer: drawerActions.openDrawer,
goBack: routeActions.popRoute,
}, dispatch),
});
export default connect(mapStateToProps, mapDispatchToProps)(Main);
| {
"content_hash": "59b6c50e6c122ecc12fb9de3003f95a0",
"timestamp": "",
"source": "github",
"line_count": 59,
"max_line_length": 78,
"avg_line_length": 26.847457627118644,
"alnum_prop": 0.6332070707070707,
"repo_name": "lemol/diario-escola-sabatina",
"id": "0c0b431e9f0ffd690cd9ef5d5afc36c02b812c83",
"size": "1587",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "react-native/nativebase/js/components/home/main.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "1882"
},
{
"name": "JavaScript",
"bytes": "4383"
},
{
"name": "Objective-C",
"bytes": "4517"
},
{
"name": "Python",
"bytes": "1657"
},
{
"name": "Shell",
"bytes": "1050"
}
],
"symlink_target": ""
} |
//============================================================================
// I B E X
// File : ibex_PdcInPolygon.h
// Author : Benoit Desrochers, Gilles Chabert
// Copyright : Ecole des Mines de Nantes (France)
// License : See the LICENSE file
// Created : Oct 31, 2014
//============================================================================
#ifndef __IBEX_PDC_IN_POLYGON_H__
#define __IBEX_PDC_IN_POLYGON_H__
#include "ibex_Pdc.h"
#include <vector>
namespace ibex {
/**
* \ingroup geometry
*
* \brief Tests if a box is inside a polygon.
*
* The test is based on the Winding Number (see .http://en.wikipedia.org/wiki/Winding_number)
* But fastest method can be found in http://alienryderflex.com/polygon
*
* The polygon is not necessarily convex.
*
* The polygon is defined by an union of oriented
* segment given in counter-clockwise order.
*
* Example :
* The polygon ABCDE is composed of 5 segments
* AB -- BC -- CD -- DE -- EA
*
*
* A------------------------------- E
* - -
* - -
* - -
* - Area -
* - Inside - D
* - the -
* - Polygon -
* - -
* - - C
* - ------
* - ------
* ----
* B
*
*/
class PdcInPolygon : public Pdc {
public:
/**
* \brief Create the predicate with the list of segments passed as argument.
*
* A polygon is defined as an union of segments given in a counter-clockwise order.
* See the documentation for an example of usage.
*
* \param points list of segments representing the edges of the polygon in the format of ( ((a1_x, a1_y), (b1_x, b1_x)), ((a2_x, a2_y), (b2_x, b2_x)), ...)
*/
PdcInPolygon(std::vector< std::vector< std::vector<double> > >& points);
/**
* \brief Create the predicate with the list of segments passed as argument.
*
* A polygon is defined as an union of segments given in a counter-clockwise order.
* See the documentation for an example of usage.
*
* \param ax list of x coordinate of the first point of each segment
* \param ay list of y coordinate of the first point of each segment
* \param bx list of x coordinate of the second point of each segment
* \param by list of y coordinate of the second point of each segment
*/
PdcInPolygon(std::vector<double>& ax, std::vector<double>& ay, std::vector<double>& bx, std::vector<double>& by);
/**
* \brief Test the box.
*/
virtual BoolInterval test(const IntervalVector& box);
protected:
/**
* Definition of the segment of the polygon
*/
std::vector<double> ax;
std::vector<double> ay;
std::vector<double> bx;
std::vector<double> by;
};
} // namespace ibex
#endif // __IBEX_PDC_IN_POLYGON_H__
| {
"content_hash": "e9fda65ea0b369e5dd51ede2c0898017",
"timestamp": "",
"source": "github",
"line_count": 95,
"max_line_length": 159,
"avg_line_length": 31.610526315789475,
"alnum_prop": 0.5254745254745254,
"repo_name": "benEnsta/ibex-geometry",
"id": "20ce25077cefb21bf8409263218e7129d4460214",
"size": "3003",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "src/polygon/ibex_PdcInPolygon.h",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C++",
"bytes": "497329"
},
{
"name": "CMake",
"bytes": "8945"
},
{
"name": "Python",
"bytes": "75147"
},
{
"name": "Shell",
"bytes": "348"
}
],
"symlink_target": ""
} |
from google.cloud import webrisk_v1
async def sample_create_submission():
# Create a client
client = webrisk_v1.WebRiskServiceAsyncClient()
# Initialize request argument(s)
submission = webrisk_v1.Submission()
submission.uri = "uri_value"
request = webrisk_v1.CreateSubmissionRequest(
parent="parent_value",
submission=submission,
)
# Make the request
response = await client.create_submission(request=request)
# Handle the response
print(response)
# [END webrisk_v1_generated_WebRiskService_CreateSubmission_async]
| {
"content_hash": "ab908d02ae0557c68b18354e51fc3e9a",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 66,
"avg_line_length": 25.347826086956523,
"alnum_prop": 0.7101200686106347,
"repo_name": "googleapis/python-webrisk",
"id": "adede368e79fc7c59d063400053f868be3601af1",
"size": "1976",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "samples/generated_samples/webrisk_v1_generated_web_risk_service_create_submission_async.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Dockerfile",
"bytes": "2050"
},
{
"name": "Python",
"bytes": "433503"
},
{
"name": "Shell",
"bytes": "30663"
}
],
"symlink_target": ""
} |
const merge = require('merge');
export function last(array: any) {
return array[array.length - 1];
}
export function recursiveMerge(...args: any[]) {
return merge.recursive(...args);
}
export function compact(array: any) {
return array.filter((n: any) => n);
}
export function groupBy(array: any, key: any) {
return array.reduce((rv: any, x: any) => {
(rv[x[key]] = rv[x[key]] || []).push(x);
return rv;
}, {});
}
| {
"content_hash": "552c434d87d9462ab09195996b60075e",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 48,
"avg_line_length": 21.8,
"alnum_prop": 0.6123853211009175,
"repo_name": "iurimatias/embark-framework",
"id": "ffe7a48e52993262e5f9eb5ab238aed0df198d0a",
"size": "436",
"binary": false,
"copies": "1",
"ref": "refs/heads/dependabot/npm_and_yarn/site/ajv-6.12.6",
"path": "packages/core/utils/src/collections.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "822"
},
{
"name": "CoffeeScript",
"bytes": "766"
},
{
"name": "HTML",
"bytes": "9356"
},
{
"name": "JavaScript",
"bytes": "212166"
}
],
"symlink_target": ""
} |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "41e60a44b9abc8d8040d994df9be8fc9",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "81e24b078b009f3b780d3958b425c23354b17caa",
"size": "174",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Plantae/Magnoliophyta/Magnoliopsida/Lamiales/Lamiaceae/Sideritis/Sideritis cretica/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
<section id="friends-screen" data-transition="slide" ng-style="style" ng-class="{ current: isCurrent, show: isShown, hide: isHidden, aside: isMenuOpen, right: isMenuRight, small: isMenuSmall }" screen>
<header>
<span class="title centered with-subtitle">
Friends
<small class="subtitle">Pass the remote</small>
</span>
<nav class="box">
<a href="#back" tap>
<span class="ss-icon">back</span>
</a>
</nav>
</header>
<article class="list indented scroll current" ng-controller="FriendsController">
<div class="spacer"></div>
<div class="friends-results">
<a href="#" ng-repeat="friend in facebookFriends|orderBy:'name'" friend="{{friend.id}}" data-gender="{{friend.gender}}" tap="selectFriend(friend.id)" ng-show="online">
<span class="ss-icon" ng-hide="female">user</span><span class="ss-icon" ng-show="female">femaleuser</span> <strong>{{friend.name}}</strong>
</a>
</div>
<p class="search-message" ng-hide="loggedIn">Pass the remote to your friends by logging in with Facebook via the home screen!</p>
<div ng-show="loggedIn">
<p class="search-message" ng-show="noFriendsOnline">None of your friends are online in the app right now.</p>
</div>
</article>
</section> | {
"content_hash": "c4f277e9195732a4fcc46f28b51fdb85",
"timestamp": "",
"source": "github",
"line_count": 25,
"max_line_length": 201,
"avg_line_length": 50.84,
"alnum_prop": 0.6577498033044846,
"repo_name": "rybon/Remocial",
"id": "fd8a844f1512383603d0ae2528fa3c481ea7f09d",
"size": "1271",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "client/static/templates/mobile/friends-screen.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "33624"
},
{
"name": "CoffeeScript",
"bytes": "63019"
},
{
"name": "JavaScript",
"bytes": "30503"
}
],
"symlink_target": ""
} |
from robot.output.xmllogger import XmlLogger
class OutputWriter(XmlLogger):
def __init__(self, output):
XmlLogger.__init__(self, output, generator='Rebot')
def start_message(self, msg):
self._write_message(msg)
def visit_keyword(self, kw):
self.start_keyword(kw)
for child in kw.children:
child.visit(self)
self.end_keyword(kw)
def close(self):
self._writer.end('robot')
self._writer.close()
def end_result(self, result):
self.close()
| {
"content_hash": "85b2ced9e30e480aa16d0090a36ce869",
"timestamp": "",
"source": "github",
"line_count": 23,
"max_line_length": 59,
"avg_line_length": 23.391304347826086,
"alnum_prop": 0.604089219330855,
"repo_name": "jaloren/robotframework",
"id": "41784099d4f0326c19afb7809cba032e5192e1b6",
"size": "1182",
"binary": false,
"copies": "5",
"ref": "refs/heads/master",
"path": "src/robot/reporting/outputwriter.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "245"
},
{
"name": "CSS",
"bytes": "23490"
},
{
"name": "HTML",
"bytes": "140926"
},
{
"name": "Java",
"bytes": "58264"
},
{
"name": "JavaScript",
"bytes": "160797"
},
{
"name": "Python",
"bytes": "2241544"
},
{
"name": "RobotFramework",
"bytes": "2074646"
},
{
"name": "Shell",
"bytes": "281"
}
],
"symlink_target": ""
} |
package org.apache.camel.impl;
import org.apache.camel.Consume;
import org.apache.camel.ContextTestSupport;
import org.apache.camel.Produce;
import org.apache.camel.ProducerTemplate;
import org.junit.Before;
import org.junit.Test;
public class DefaultCamelBeanPostProcessorTest extends ContextTestSupport {
private DefaultCamelBeanPostProcessor postProcessor;
@Test
public void testPostProcessor() throws Exception {
FooService foo = new FooService();
foo.setFooEndpoint("seda:input");
foo.setBarEndpoint("mock:result");
postProcessor.postProcessBeforeInitialization(foo, "foo");
postProcessor.postProcessAfterInitialization(foo, "foo");
getMockEndpoint("mock:result").expectedMessageCount(1);
template.sendBody("seda:input", "Hello World");
assertMockEndpointsSatisfied();
}
@Override
@Before
public void setUp() throws Exception {
super.setUp();
postProcessor = new DefaultCamelBeanPostProcessor(context);
}
public class FooService {
private String fooEndpoint;
private String barEndpoint;
@Produce
private ProducerTemplate bar;
public String getFooEndpoint() {
return fooEndpoint;
}
public void setFooEndpoint(String fooEndpoint) {
this.fooEndpoint = fooEndpoint;
}
public String getBarEndpoint() {
return barEndpoint;
}
public void setBarEndpoint(String barEndpoint) {
this.barEndpoint = barEndpoint;
}
@Consume
public void onFoo(String input) {
bar.sendBody(input);
}
}
}
| {
"content_hash": "36d5d0b29f15165c071febc386383024",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 75,
"avg_line_length": 26.841269841269842,
"alnum_prop": 0.6617386162034299,
"repo_name": "kevinearls/camel",
"id": "006be1a4d31612b027511a4a9cb39920307c7db0",
"size": "2494",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "camel-core/src/test/java/org/apache/camel/impl/DefaultCamelBeanPostProcessorTest.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Apex",
"bytes": "6519"
},
{
"name": "Batchfile",
"bytes": "6512"
},
{
"name": "CSS",
"bytes": "30373"
},
{
"name": "Elm",
"bytes": "10852"
},
{
"name": "FreeMarker",
"bytes": "11410"
},
{
"name": "Groovy",
"bytes": "54390"
},
{
"name": "HTML",
"bytes": "190929"
},
{
"name": "Java",
"bytes": "70990879"
},
{
"name": "JavaScript",
"bytes": "90399"
},
{
"name": "Makefile",
"bytes": "513"
},
{
"name": "Python",
"bytes": "36"
},
{
"name": "Ruby",
"bytes": "4802"
},
{
"name": "Scala",
"bytes": "323982"
},
{
"name": "Shell",
"bytes": "23616"
},
{
"name": "Tcl",
"bytes": "4974"
},
{
"name": "Thrift",
"bytes": "6979"
},
{
"name": "XQuery",
"bytes": "546"
},
{
"name": "XSLT",
"bytes": "285105"
}
],
"symlink_target": ""
} |
/*
Title: Test Sending Email Without an SMTP Server
Sort: 1
*/
### **Tools to setup local SMTP server for your development**
- [Neptune](http://www.donovanbrown.com/post/Neptune-with-POP3)
- [SMTP4Dev](http://smtp4dev.codeplex.com/) - better choice because it lets you open email message in your default email client and can even check the formatting of sent email
### **Sample code to test functionality of these tools**
```
MailMessage mail = new MailMessage("test@gmail.com", "test2@gmail.com");
SmtpClient client = new SmtpClient();
client.UseDefaultCredentials = true;
client.Host = "localhost";
mail.Subject = "This is a fantastic email subject!";
mail.Body = "This is a fantastic email body!";
client.Send(mail);
```
> add using System.Net.Mail to the top of your .cs file
| {
"content_hash": "425c4900ff718dcdf9c94dc91cbd6381",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 175,
"avg_line_length": 35.63636363636363,
"alnum_prop": 0.735969387755102,
"repo_name": "jerkovicl/SistemiKB",
"id": "9c1df2464bdc7e2de67d033306e350d7b23396cf",
"size": "784",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "content/dnn/local-smtp-server.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "2703"
},
{
"name": "HTML",
"bytes": "6071"
},
{
"name": "JavaScript",
"bytes": "6217"
},
{
"name": "Shell",
"bytes": "4091"
}
],
"symlink_target": ""
} |
<?php
namespace Cms\AdminBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Pagerfanta\Pagerfanta;
use Pagerfanta\Adapter\DoctrineORMAdapter;
use Pagerfanta\View\TwitterBootstrapView;
use Cms\AdminBundle\Entity\Page;
use Cms\AdminBundle\Form\PageType;
use Cms\AdminBundle\Form\PageFilterType;
/**
* Page controller.
*
*/
class PageController extends Controller
{
/**
* Lists all Page entities.
*
*/
public function indexAction()
{
list($filterForm, $queryBuilder) = $this->filter();
list($entities, $pagerHtml) = $this->paginator($queryBuilder);
return $this->render('CmsAdminBundle:Page:index.html.twig', array(
'entities' => $entities,
'pagerHtml' => $pagerHtml,
'filterForm' => $filterForm->createView(),
));
}
/**
* Create filter form and process filter request.
*
*/
protected function filter()
{
$request = $this->getRequest();
$session = $request->getSession();
$filterForm = $this->createForm(new PageFilterType());
$em = $this->getDoctrine()->getManager();
$queryBuilder = $em->getRepository('CmsAdminBundle:Page')->createQueryBuilder('e');
// Reset filter
if ($request->get('filter_action') == 'reset') {
$session->remove('PageControllerFilter');
}
// Filter action
if ($request->get('filter_action') == 'filter') {
// Bind values from the request
$filterForm->bind($request);
if ($filterForm->isValid()) {
// Build the query from the given form object
$this->get('lexik_form_filter.query_builder_updater')->addFilterConditions($filterForm, $queryBuilder);
// Save filter to session
$filterData = $filterForm->getData();
$session->set('PageControllerFilter', $filterData);
}
} else {
// Get filter from session
if ($session->has('PageControllerFilter')) {
$filterData = $session->get('PageControllerFilter');
$filterForm = $this->createForm(new PageFilterType(), $filterData);
$this->get('lexik_form_filter.query_builder_updater')->addFilterConditions($filterForm, $queryBuilder);
}
}
return array($filterForm, $queryBuilder);
}
/**
* Get results from paginator and get paginator view.
*
*/
protected function paginator($queryBuilder)
{
// Paginator
$adapter = new DoctrineORMAdapter($queryBuilder);
$pagerfanta = new Pagerfanta($adapter);
$currentPage = $this->getRequest()->get('page', 1);
$pagerfanta->setCurrentPage($currentPage);
$entities = $pagerfanta->getCurrentPageResults();
// Paginator - route generator
$me = $this;
$routeGenerator = function($page) use ($me)
{
return $me->generateUrl('page', array('page' => $page));
};
// Paginator - view
$translator = $this->get('translator');
$view = new TwitterBootstrapView();
$pagerHtml = $view->render($pagerfanta, $routeGenerator, array(
'proximity' => 3,
'prev_message' => $translator->trans('views.index.pagprev', array(), 'JordiLlonchCrudGeneratorBundle'),
'next_message' => $translator->trans('views.index.pagnext', array(), 'JordiLlonchCrudGeneratorBundle'),
));
return array($entities, $pagerHtml);
}
/**
* Creates a new Page entity.
*
*/
public function createAction(Request $request)
{
$user = $this->getUser();
$entity = new Page();
$entity->setUser($user);
$form = $this->createForm(new PageType(), $entity);
$form->bind($request);
if ($form->isValid()) {
$em = $this->getDoctrine()->getManager();
$em->persist($entity);
$em->flush();
$this->get('session')->getFlashBag()->add('success', 'flash.create.success');
return $this->redirect($this->generateUrl('page_show', array('id' => $entity->getId())));
}
return $this->render('CmsAdminBundle:Page:new.html.twig', array(
'entity' => $entity,
'form' => $form->createView(),
));
}
/**
* Displays a form to create a new Page entity.
*
*/
public function newAction()
{
$entity = new Page();
$form = $this->createForm(new PageType(), $entity);
return $this->render('CmsAdminBundle:Page:new.html.twig', array(
'entity' => $entity,
'form' => $form->createView(),
));
}
/**
* Finds and displays a Page entity.
*
*/
public function showAction($id)
{
$em = $this->getDoctrine()->getManager();
$entity = $em->getRepository('CmsAdminBundle:Page')->find($id);
if (!$entity) {
throw $this->createNotFoundException('Unable to find Page entity.');
}
$deleteForm = $this->createDeleteForm($id);
return $this->render('CmsAdminBundle:Page:show.html.twig', array(
'entity' => $entity,
'delete_form' => $deleteForm->createView(), ));
}
/**
* Displays a form to edit an existing Page entity.
*
*/
public function editAction($id)
{
$em = $this->getDoctrine()->getManager();
$entity = $em->getRepository('CmsAdminBundle:Page')->find($id);
if (!$entity) {
throw $this->createNotFoundException('Unable to find Page entity.');
}
$editForm = $this->createForm(new PageType(), $entity);
$deleteForm = $this->createDeleteForm($id);
return $this->render('CmsAdminBundle:Page:edit.html.twig', array(
'entity' => $entity,
'edit_form' => $editForm->createView(),
'delete_form' => $deleteForm->createView(),
));
}
/**
* Edits an existing Page entity.
*
*/
public function updateAction(Request $request, $id)
{
$em = $this->getDoctrine()->getManager();
$entity = $em->getRepository('CmsAdminBundle:Page')->find($id);
if (!$entity) {
throw $this->createNotFoundException('Unable to find Page entity.');
}
$deleteForm = $this->createDeleteForm($id);
$editForm = $this->createForm(new PageType(), $entity);
$editForm->bind($request);
if ($editForm->isValid()) {
$em->persist($entity);
$em->flush();
$this->get('session')->getFlashBag()->add('success', 'flash.update.success');
return $this->redirect($this->generateUrl('page_edit', array('id' => $id)));
} else {
$this->get('session')->getFlashBag()->add('error', 'flash.update.error');
}
return $this->render('CmsAdminBundle:Page:edit.html.twig', array(
'entity' => $entity,
'edit_form' => $editForm->createView(),
'delete_form' => $deleteForm->createView(),
));
}
/**
* Deletes a Page entity.
*
*/
public function deleteAction(Request $request, $id)
{
$form = $this->createDeleteForm($id);
$form->bind($request);
if ($form->isValid()) {
$em = $this->getDoctrine()->getManager();
$entity = $em->getRepository('CmsAdminBundle:Page')->find($id);
if (!$entity) {
throw $this->createNotFoundException('Unable to find Page entity.');
}
$em->remove($entity);
$em->flush();
$this->get('session')->getFlashBag()->add('success', 'flash.delete.success');
} else {
$this->get('session')->getFlashBag()->add('error', 'flash.delete.error');
}
return $this->redirect($this->generateUrl('page'));
}
/**
* Creates a form to delete a Page entity by id.
*
* @param mixed $id The entity id
*
* @return Symfony\Component\Form\Form The form
*/
private function createDeleteForm($id)
{
return $this->createFormBuilder(array('id' => $id))
->add('id', 'hidden')
->getForm()
;
}
}
| {
"content_hash": "6fd201937e7c977f90f0ca89b57a2e55",
"timestamp": "",
"source": "github",
"line_count": 275,
"max_line_length": 119,
"avg_line_length": 30.77090909090909,
"alnum_prop": 0.5505790593240368,
"repo_name": "n1kula/simpleCMS",
"id": "494e009b4e002161ddfca0ab78d0adf4778401c9",
"size": "8462",
"binary": false,
"copies": "1",
"ref": "refs/heads/develop",
"path": "src/Cms/AdminBundle/Controller/PageController.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "792"
},
{
"name": "PHP",
"bytes": "85126"
}
],
"symlink_target": ""
} |
package org.zalando.riptide;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.github.restdriver.clientdriver.ClientDriver;
import com.github.restdriver.clientdriver.ClientDriverFactory;
import org.junit.jupiter.api.Test;
import org.springframework.http.client.AsyncClientHttpRequestFactory;
import org.springframework.http.client.HttpComponentsAsyncClientHttpRequestFactory;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import java.io.IOException;
import java.util.List;
import java.util.concurrent.atomic.AtomicReference;
import static com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility.NON_PRIVATE;
import static com.github.restdriver.clientdriver.RestClientDriver.giveResponseAsBytes;
import static com.github.restdriver.clientdriver.RestClientDriver.onRequestTo;
import static com.google.common.io.Resources.getResource;
import static java.util.stream.Collectors.toList;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.hasItems;
import static org.springframework.http.HttpStatus.Series.SUCCESSFUL;
import static org.zalando.riptide.Bindings.on;
import static org.zalando.riptide.Navigators.series;
import static org.zalando.riptide.Types.listOf;
final class NIOTest {
private final ClientDriver driver = new ClientDriverFactory().createClientDriver();
@JsonAutoDetect(fieldVisibility = NON_PRIVATE)
static class User {
String login;
String getLogin() {
return login;
}
}
private final AsyncClientHttpRequestFactory requestFactory = new HttpComponentsAsyncClientHttpRequestFactory();
private final Http http = Http.builder()
.asyncRequestFactory(requestFactory)
.baseUrl(driver.getBaseUrl())
.converter(createJsonConverter())
.build();
private static MappingJackson2HttpMessageConverter createJsonConverter() {
final MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter();
converter.setObjectMapper(new ObjectMapper().findAndRegisterModules()
.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES));
return converter;
}
@Test
void shouldRead() throws IOException {
shouldReadContributors();
}
private void shouldReadContributors() throws IOException {
driver.addExpectation(onRequestTo("/repos/zalando/riptide/contributors"),
giveResponseAsBytes(getResource("contributors.json").openStream(), "application/json"));
final AtomicReference<List<User>> reference = new AtomicReference<>();
http.get("/repos/{org}/{repo}/contributors", "zalando", "riptide")
.dispatch(series(),
on(SUCCESSFUL).call(listOf(User.class), reference::set)).join();
final List<String> users = reference.get().stream()
.map(User::getLogin)
.collect(toList());
assertThat(users, hasItems("jhorstmann", "lukasniemeier-zalando", "whiskeysierra"));
}
}
| {
"content_hash": "5e02d1428f6c7a79a9b14794a56b6fe0",
"timestamp": "",
"source": "github",
"line_count": 79,
"max_line_length": 115,
"avg_line_length": 40.65822784810127,
"alnum_prop": 0.7484433374844334,
"repo_name": "zalando/riptide",
"id": "8d9516f967ec80cd8cb02d36424b8835c143dda2",
"size": "3212",
"binary": false,
"copies": "2",
"ref": "refs/heads/main",
"path": "riptide-core/src/test/java/org/zalando/riptide/NIOTest.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "993134"
},
{
"name": "Shell",
"bytes": "1050"
}
],
"symlink_target": ""
} |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="af_ZA" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Faircoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+39"/>
<source><b>Faircoin</b> version</source>
<translation><b>Faircoin</b> weergawe</translation>
</message>
<message>
<location line="+57"/>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../aboutdialog.cpp" line="+14"/>
<source>Copyright</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The Faircoin developers</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation>Adres Boek</translation>
</message>
<message>
<location line="+19"/>
<source>Double-click to edit address or label</source>
<translation>Dubbel-klik om die adres of etiket te wysig</translation>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation>Skep 'n nuwe adres</translation>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Maak 'n kopie van die huidige adres na die stelsel klipbord</translation>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+63"/>
<source>These are your Faircoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>&Copy Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a Faircoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation>Teken &Boodskap</translation>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Export</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>Verify a message to ensure it was signed with a specified Faircoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>&Verwyder</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="-5"/>
<source>These are your Faircoin addresses for sending payments. Always check the amount and the receiving address before sending coins.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Copy &Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>&Edit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Send &Coins</source>
<translation>Stuur &Muntstukke</translation>
</message>
<message>
<location line="+260"/>
<source>Export Address Book Data</source>
<translation>Voer die Adresboek Data Uit</translation>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation>Fout uitvoering</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>Kon nie na die %1 lêer skryf nie</translation>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+144"/>
<source>Label</source>
<translation>Etiket</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Adres</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>(geen etiket)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation>Tik Wagwoord in</translation>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation>Nuwe wagwoord</translation>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation>Herhaal nuwe wagwoord</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+33"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation>Tik die nuwe wagwoord vir die beursie in.<br/>Gebruik asseblief 'n wagwoord van <b>ten minste 10 ewekansige karakters</b>, of <b>agt (8) of meer woorde.</b></translation>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation>Enkripteer beursie</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>Hierdie operasie benodig 'n wagwoord om die beursie oop te sluit.</translation>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation>Sluit beursie oop</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>Hierdie operasie benodig 'n wagwoord om die beursie oop te sluit.</translation>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation>Sluit beursie oop</translation>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation>Verander wagwoord</translation>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>Tik asseblief die ou en nuwe wagwoord vir die beursie in.</translation>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation>Bevestig beursie enkripsie.</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR LITECOINS</b>!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+100"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-130"/>
<location line="+58"/>
<source>Wallet encrypted</source>
<translation>Die beursie is nou bewaak</translation>
</message>
<message>
<location line="-56"/>
<source>Faircoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your faircoins from being stolen by malware infecting your computer.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+42"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation>Die beursie kon nie bewaak word nie</translation>
</message>
<message>
<location line="-54"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>Beursie bewaaking het misluk as gevolg van 'n interne fout. Die beursie is nie bewaak nie!</translation>
</message>
<message>
<location line="+7"/>
<location line="+48"/>
<source>The supplied passphrases do not match.</source>
<translation>Die wagwoord stem nie ooreen nie</translation>
</message>
<message>
<location line="-37"/>
<source>Wallet unlock failed</source>
<translation>Beursie oopsluiting het misluk</translation>
</message>
<message>
<location line="+1"/>
<location line="+11"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation>Die wagwoord wat ingetik was om die beursie oop te sluit, was verkeerd.</translation>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation>Beursie dekripsie het misluk</translation>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+233"/>
<source>Sign &message...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+280"/>
<source>Synchronizing with network...</source>
<translation>Sinchroniseer met die netwerk ...</translation>
</message>
<message>
<location line="-349"/>
<source>&Overview</source>
<translation>&Oorsig</translation>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation>Wys algemene oorsig van die beursie</translation>
</message>
<message>
<location line="+20"/>
<source>&Transactions</source>
<translation>&Transaksies</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation>Besoek transaksie geskiedenis</translation>
</message>
<message>
<location line="+7"/>
<source>Edit the list of stored addresses and labels</source>
<translation>Wysig die lys van gestoorde adresse en etikette</translation>
</message>
<message>
<location line="-14"/>
<source>Show the list of addresses for receiving payments</source>
<translation>Wys die lys van adresse vir die ontvangs van betalings</translation>
</message>
<message>
<location line="+31"/>
<source>E&xit</source>
<translation>S&luit af</translation>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation>Sluit af</translation>
</message>
<message>
<location line="+4"/>
<source>Show information about Faircoin</source>
<translation>Wys inligting oor Faircoin</translation>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation>&Opsies</translation>
</message>
<message>
<location line="+6"/>
<source>&Encrypt Wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+285"/>
<source>Importing blocks from disk...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Reindexing blocks on disk...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-347"/>
<source>Send coins to a Faircoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+49"/>
<source>Modify configuration options for Faircoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Backup wallet to another location</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>&Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-4"/>
<source>&Verify message...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-165"/>
<location line="+530"/>
<source>Faircoin</source>
<translation>Faircoin</translation>
</message>
<message>
<location line="-530"/>
<source>Wallet</source>
<translation>Beursie</translation>
</message>
<message>
<location line="+101"/>
<source>&Send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Receive</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Addresses</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>&About Faircoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show or hide the main Window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Encrypt the private keys that belong to your wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Sign messages with your Faircoin addresses to prove you own them</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Verify messages to ensure they were signed with specified Faircoin addresses</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>&File</source>
<translation>&Lêer</translation>
</message>
<message>
<location line="+7"/>
<source>&Settings</source>
<translation>&Instellings</translation>
</message>
<message>
<location line="+6"/>
<source>&Help</source>
<translation>&Hulp</translation>
</message>
<message>
<location line="+9"/>
<source>Tabs toolbar</source>
<translation>Blad nutsbalk</translation>
</message>
<message>
<location line="+17"/>
<location line="+10"/>
<source>[testnet]</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+47"/>
<source>Faircoin client</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+141"/>
<source>%n active connection(s) to Faircoin network</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+22"/>
<source>No block source available...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Processed %1 of %2 (estimated) blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Processed %1 blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+20"/>
<source>%n hour(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n week(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>%1 behind</source>
<translation>%1 agter</translation>
</message>
<message>
<location line="+14"/>
<source>Last received block was generated %1 ago.</source>
<translation>Ontvangs van laaste blok is %1 terug.</translation>
</message>
<message>
<location line="+2"/>
<source>Transactions after this will not yet be visible.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>Error</source>
<translation>Fout</translation>
</message>
<message>
<location line="+3"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Information</source>
<translation>Informasie</translation>
</message>
<message>
<location line="+70"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-140"/>
<source>Up to date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Catching up...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+113"/>
<source>Confirm transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Sent transaction</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Incoming transaction</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+33"/>
<location line="+23"/>
<source>URI handling</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-23"/>
<location line="+23"/>
<source>URI can not be parsed! This can be caused by an invalid Faircoin address or malformed URI parameters.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../bitcoin.cpp" line="+111"/>
<source>A fatal error occurred. Faircoin can no longer continue safely and will quit.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+104"/>
<source>Network Alert</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address book entry</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+21"/>
<source>New receiving address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid Faircoin address.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+424"/>
<location line="+12"/>
<source>Faircoin-Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation>Gebruik:</translation>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Automatically start Faircoin after logging in to the system.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Start Faircoin on system login</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Reset all client options to default.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Reset Options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>&Network</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Automatically open the Faircoin client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Connect to the Faircoin network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Proxy &IP:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Port:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting Faircoin.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Whether to show Faircoin addresses in the transaction list or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&OK</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+53"/>
<source>default</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+130"/>
<source>Confirm options reset</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Some settings may require a client restart to take effect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Do you want to proceed?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+42"/>
<location line="+9"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting Faircoin.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+50"/>
<location line="+166"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the Faircoin network after a connection is established, but this process has not completed yet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-124"/>
<source>Balance:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-78"/>
<source>Wallet</source>
<translation>Beursie</translation>
</message>
<message>
<location line="+107"/>
<source>Immature:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+46"/>
<source><b>Recent transactions</b></source>
<translation type="unfinished"/>
</message>
<message>
<location line="-101"/>
<source>Your current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../overviewpage.cpp" line="+116"/>
<location line="+1"/>
<source>out of sync</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>PaymentServer</name>
<message>
<location filename="../paymentserver.cpp" line="+107"/>
<source>Cannot start faircoin: click-to-pay handler</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+62"/>
<source>Error encoding URI into QR Code.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+23"/>
<location line="+26"/>
<location line="+23"/>
<location line="+23"/>
<location line="+36"/>
<location line="+53"/>
<location line="+23"/>
<location line="+23"/>
<location filename="../rpcconsole.cpp" line="+339"/>
<source>N/A</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-217"/>
<source>Client version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Show the Faircoin-Qt help message to get a list with possible Faircoin command-line options.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-260"/>
<source>Build date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-104"/>
<source>Faircoin - Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Faircoin Core</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Open the Faircoin debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+102"/>
<source>Clear console</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-30"/>
<source>Welcome to the Faircoin RPC console.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="+14"/>
<location filename="../sendcoinsdialog.cpp" line="+124"/>
<location line="+5"/>
<location line="+5"/>
<location line="+5"/>
<location line="+6"/>
<location line="+5"/>
<location line="+5"/>
<source>Send Coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+50"/>
<source>Send to multiple recipients at once</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Remove all transaction fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>Balance:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>123.456 BTC</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Confirm the send action</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation>S&tuur</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-59"/>
<source><b>%1</b> to %2 (%3)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source> and </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>The recipient address is not valid, please recheck.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>A&mount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+34"/>
<source>The address to send the payment to (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation>Die adres waarheen die betaling gestuur moet word (b.v. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</translation>
</message>
<message>
<location line="+60"/>
<location filename="../sendcoinsentry.cpp" line="+26"/>
<source>Enter a label for this address to add it to your address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-78"/>
<source>&Label:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Choose address from address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Alt+A</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Paste address from clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Remove this recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a Faircoin address (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>&Sign Message</source>
<translation>&Teken boodskap</translation>
</message>
<message>
<location line="+6"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+213"/>
<source>Choose an address from the address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-203"/>
<location line="+213"/>
<source>Alt+A</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-203"/>
<source>Paste address from clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Enter the message you want to sign here</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Signature</source>
<translation>Handtekening</translation>
</message>
<message>
<location line="+27"/>
<source>Copy the current signature to the system clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this Faircoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation>Teken &Boodskap</translation>
</message>
<message>
<location line="+14"/>
<source>Reset all sign message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-87"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified Faircoin address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Verify &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Reset all verify message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a Faircoin address (e.g. Ler4HNAEfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Enter Faircoin signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-81"/>
<location line="+8"/>
<location line="+73"/>
<location line="+8"/>
<source>Please check the address and try again.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SplashScreen</name>
<message>
<location filename="../splashscreen.cpp" line="+22"/>
<source>The Faircoin developers</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>[testnet]</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+20"/>
<source>Open until %1</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>%1/offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation>Datum</translation>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation>Van</translation>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation>Na</translation>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation>eie adres</translation>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation>etiket</translation>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation>Krediet</translation>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation>nie aanvaar nie</translation>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation>Debiet</translation>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation>Transaksie fooi</translation>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation>Netto bedrag</translation>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation>Boodskap</translation>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation>Transaksie ID</translation>
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Inputs</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation>Bedrag</translation>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation>waar</translation>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation>onwaar</translation>
</message>
<message>
<location line="-209"/>
<source>, has not been successfully broadcast yet</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-35"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+70"/>
<source>unknown</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="+14"/>
<source>Transaction details</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="+225"/>
<source>Date</source>
<translation>Datum</translation>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation>Tipe</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Adres</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation>Bedrag</translation>
</message>
<message numerus="yes">
<location line="+57"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+3"/>
<source>Open until %1</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Offline (%1 confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed (%1 of %2 confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirmed (%1 confirmations)</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+8"/>
<source>Mined balance will be available when it matures in %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+5"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+43"/>
<source>Received with</source>
<translation>Ontvang met</translation>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation>Gestuur na</translation>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation>Gemyn</translation>
</message>
<message>
<location line="+38"/>
<source>(n/a)</source>
<translation>(n.v.t)</translation>
</message>
<message>
<location line="+199"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation>Datum en tyd wat die transaksie ontvang was.</translation>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation>Tipe transaksie.</translation>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+52"/>
<location line="+16"/>
<source>All</source>
<translation>Alles</translation>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation>Vandag</translation>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation>Hierdie week</translation>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation>Hierdie maand</translation>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation>Verlede maand</translation>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation>Hierdie jaar</translation>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation>Ontvang met</translation>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation>Gestuur na</translation>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation>Aan/na jouself</translation>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation>Gemyn</translation>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation>Ander</translation>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation>Min bedrag</translation>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation>Maak kopie van adres</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+139"/>
<source>Export Transaction Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Confirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation>Datum</translation>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation>Tipe</translation>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation>Etiket</translation>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>Adres</translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation>Bedrag</translation>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation>ID</translation>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation>Fout uitvoering</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>Kon nie na die %1 lêer skryf nie</translation>
</message>
<message>
<location line="+100"/>
<source>Range:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+193"/>
<source>Send Coins</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>WalletView</name>
<message>
<location filename="../walletview.cpp" line="+42"/>
<source>&Export</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+193"/>
<source>Backup Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Backup Successful</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The wallet data was successfully saved to the new location.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+94"/>
<source>Faircoin version</source>
<translation>Faircoin weergawe</translation>
</message>
<message>
<location line="+102"/>
<source>Usage:</source>
<translation>Gebruik:</translation>
</message>
<message>
<location line="-29"/>
<source>Send command to -server or faircoind</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-23"/>
<source>List commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>Get help for a command</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>Options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>Specify configuration file (default: faircoin.conf)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Specify pid file (default: faircoind.pid)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-9"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-28"/>
<source>Listen for connections on <port> (default: 52323 or testnet: 42323)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-48"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<source>Specify your own public address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-134"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Listen for JSON-RPC connections on <port> (default: 8332 or testnet: 18332)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<source>Accept command line and JSON-RPC commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+76"/>
<source>Run in the background as a daemon and accept commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<source>Use the test network</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-112"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-80"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=faircoinrpc
rpcpassword=%s
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
It is also recommended to set alertnotify so you are notified of problems;
for example: alertnotify=echo %%s | mail -s "Faircoin Alert" admin@foo.com
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Cannot obtain a lock on data directory %s. Faircoin is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong Faircoin will not work properly.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Block creation options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Connect only to the specified node(s)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Corrupted block database detected</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Do you want to rebuild the block database now?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error initializing block database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error initializing wallet database environment %s!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading block database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error opening block database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error: Disk space is low!</source>
<translation>Fout: Hardeskyf spasie is baie laag!</translation>
</message>
<message>
<location line="+1"/>
<source>Error: Wallet locked, unable to create transaction!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error: system error: </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to read block info</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to read block</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to sync block index</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write block index</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write block info</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write block</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write file info</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write to coin database</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write transaction index</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Failed to write undo data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Find peers using DNS lookup (default: 1 unless -connect)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Generate coins (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 288, 0 = all)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-4, default: 3)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Not enough file descriptors available.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Rebuild block chain index from current blk000??.dat files</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Set the number of threads to service RPC calls (default: 4)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+26"/>
<source>Verifying blocks...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Verifying wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-69"/>
<source>Imports blocks from external blk000??.dat file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-76"/>
<source>Set the number of script verification threads (up to 16, 0 = auto, <0 = leave that many cores free, default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+77"/>
<source>Information</source>
<translation>Informasie</translation>
</message>
<message>
<location line="+3"/>
<source>Invalid -tor address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Invalid amount for -minrelaytxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Invalid amount for -mintxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Maintain a full transaction index (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Only accept block chain matching built-in checkpoints (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Output extra debugging information. Implies all other -debug* options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Output extra network debugging information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Prepend debug output with timestamp</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>SSL options: (see the Faircoin Wiki for SSL setup instructions)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Send trace/debug info to debugger</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Signing transaction failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>System error: </source>
<translation>Sisteem fout:</translation>
</message>
<message>
<location line="+4"/>
<source>Transaction amount too small</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transaction amounts must be positive</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transaction too large</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Username for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>You need to rebuild the databases using -reindex to change -txindex</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-50"/>
<source>Password for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-67"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+76"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-120"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+147"/>
<source>Upgrade wallet to latest format</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-21"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-26"/>
<source>Server certificate file (default: server.cert)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-151"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+165"/>
<source>This help message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-91"/>
<source>Connect through socks proxy</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-10"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+55"/>
<source>Loading addresses...</source>
<translation>Laai adresse...</translation>
</message>
<message>
<location line="-35"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat: Wallet requires newer version of Faircoin</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+93"/>
<source>Wallet needed to be rewritten: restart Faircoin to complete</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-95"/>
<source>Error loading wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Invalid -proxy address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+56"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-96"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+44"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Invalid amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-6"/>
<source>Insufficient funds</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Loading block index...</source>
<translation>Laai blok indeks...</translation>
</message>
<message>
<location line="-57"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-25"/>
<source>Unable to bind to %s on this computer. Faircoin is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+64"/>
<source>Fee per KB to add to transactions you send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Loading wallet...</source>
<translation>Laai beursie...</translation>
</message>
<message>
<location line="-52"/>
<source>Cannot downgrade wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Cannot write default address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+64"/>
<source>Rescanning...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-57"/>
<source>Done loading</source>
<translation>Klaar gelaai</translation>
</message>
<message>
<location line="+82"/>
<source>To use the %s option</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-74"/>
<source>Error</source>
<translation>Fout</translation>
</message>
<message>
<location line="-31"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation type="unfinished"/>
</message>
</context>
</TS>
| {
"content_hash": "952bccfc3911b7cf893c851a7fde69cf",
"timestamp": "",
"source": "github",
"line_count": 2917,
"max_line_length": 395,
"avg_line_length": 33.66883784710319,
"alnum_prop": 0.5911293935567955,
"repo_name": "pierce403/faircoin",
"id": "8f46e0b27cdb56e2d1c8d5a81b132cdbe07ddefa",
"size": "98215",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/qt/locale/bitcoin_af_ZA.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "102799"
},
{
"name": "C++",
"bytes": "2525090"
},
{
"name": "CSS",
"bytes": "1127"
},
{
"name": "IDL",
"bytes": "14696"
},
{
"name": "Objective-C",
"bytes": "5864"
},
{
"name": "Python",
"bytes": "69709"
},
{
"name": "Shell",
"bytes": "9702"
},
{
"name": "TypeScript",
"bytes": "5236451"
}
],
"symlink_target": ""
} |
Spree::Property.class_eval do
has_many :bulk_product_edit_properties, dependent: :delete_all, inverse_of: :property
has_many :products, through: :bulk_product_edit_properties
end
| {
"content_hash": "e80d5d901e745456271eedfe4d1e622d",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 87,
"avg_line_length": 30.833333333333332,
"alnum_prop": 0.7621621621621621,
"repo_name": "astek-inc/spree-bulk-product-edit",
"id": "df270e83143869017e15e43801c38a9ddf303d08",
"size": "185",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/models/spree/property_decorator.rb",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "CSS",
"bytes": "269"
},
{
"name": "HTML",
"bytes": "31722"
},
{
"name": "JavaScript",
"bytes": "768"
},
{
"name": "Ruby",
"bytes": "37851"
}
],
"symlink_target": ""
} |
// Template Source: BaseEntityCollectionRequest.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
package com.microsoft.graph.requests;
import com.microsoft.graph.http.IRequestBuilder;
import com.microsoft.graph.core.ClientException;
import com.microsoft.graph.models.PolicyRoot;
import com.microsoft.graph.models.ActivityBasedTimeoutPolicy;
import com.microsoft.graph.models.DirectoryObject;
import com.microsoft.graph.models.ExtensionProperty;
import java.util.Arrays;
import java.util.EnumSet;
import javax.annotation.Nullable;
import javax.annotation.Nonnull;
import com.microsoft.graph.options.QueryOption;
import com.microsoft.graph.core.IBaseClient;
import com.microsoft.graph.http.BaseEntityCollectionRequest;
import com.microsoft.graph.requests.ActivityBasedTimeoutPolicyCollectionResponse;
import com.microsoft.graph.requests.ActivityBasedTimeoutPolicyCollectionRequestBuilder;
import com.microsoft.graph.requests.ActivityBasedTimeoutPolicyCollectionRequest;
// **NOTE** This file was generated by a tool and any changes will be overwritten.
/**
* The class for the Activity Based Timeout Policy Collection Request.
*/
public class ActivityBasedTimeoutPolicyCollectionRequest extends BaseEntityCollectionRequest<ActivityBasedTimeoutPolicy, ActivityBasedTimeoutPolicyCollectionResponse, ActivityBasedTimeoutPolicyCollectionPage> {
/**
* The request builder for this collection of ActivityBasedTimeoutPolicy
*
* @param requestUrl the request URL
* @param client the service client
* @param requestOptions the options for this request
*/
public ActivityBasedTimeoutPolicyCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient<?> client, @Nullable final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {
super(requestUrl, client, requestOptions, ActivityBasedTimeoutPolicyCollectionResponse.class, ActivityBasedTimeoutPolicyCollectionPage.class, ActivityBasedTimeoutPolicyCollectionRequestBuilder.class);
}
/**
* Creates a new ActivityBasedTimeoutPolicy
* @param newActivityBasedTimeoutPolicy the ActivityBasedTimeoutPolicy to create
* @return a future with the created object
*/
@Nonnull
public java.util.concurrent.CompletableFuture<ActivityBasedTimeoutPolicy> postAsync(@Nonnull final ActivityBasedTimeoutPolicy newActivityBasedTimeoutPolicy) {
final String requestUrl = getBaseRequest().getRequestUrl().toString();
return new ActivityBasedTimeoutPolicyRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null)
.buildRequest(getBaseRequest().getHeaders())
.postAsync(newActivityBasedTimeoutPolicy);
}
/**
* Creates a new ActivityBasedTimeoutPolicy
* @param newActivityBasedTimeoutPolicy the ActivityBasedTimeoutPolicy to create
* @return the newly created object
*/
@Nonnull
public ActivityBasedTimeoutPolicy post(@Nonnull final ActivityBasedTimeoutPolicy newActivityBasedTimeoutPolicy) throws ClientException {
final String requestUrl = getBaseRequest().getRequestUrl().toString();
return new ActivityBasedTimeoutPolicyRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null)
.buildRequest(getBaseRequest().getHeaders())
.post(newActivityBasedTimeoutPolicy);
}
/**
* Sets the expand clause for the request
*
* @param value the expand clause
* @return the updated request
*/
@Nonnull
public ActivityBasedTimeoutPolicyCollectionRequest expand(@Nonnull final String value) {
addExpandOption(value);
return this;
}
/**
* Sets the filter clause for the request
*
* @param value the filter clause
* @return the updated request
*/
@Nonnull
public ActivityBasedTimeoutPolicyCollectionRequest filter(@Nonnull final String value) {
addFilterOption(value);
return this;
}
/**
* Sets the order by clause for the request
*
* @param value the order by clause
* @return the updated request
*/
@Nonnull
public ActivityBasedTimeoutPolicyCollectionRequest orderBy(@Nonnull final String value) {
addOrderByOption(value);
return this;
}
/**
* Sets the select clause for the request
*
* @param value the select clause
* @return the updated request
*/
@Nonnull
public ActivityBasedTimeoutPolicyCollectionRequest select(@Nonnull final String value) {
addSelectOption(value);
return this;
}
/**
* Sets the top value for the request
*
* @param value the max number of items to return
* @return the updated request
*/
@Nonnull
public ActivityBasedTimeoutPolicyCollectionRequest top(final int value) {
addTopOption(value);
return this;
}
/**
* Sets the count value for the request
*
* @param value whether or not to return the count of objects with the request
* @return the updated request
*/
@Nonnull
public ActivityBasedTimeoutPolicyCollectionRequest count(final boolean value) {
addCountOption(value);
return this;
}
/**
* Sets the count value to true for the request
*
* @return the updated request
*/
@Nonnull
public ActivityBasedTimeoutPolicyCollectionRequest count() {
addCountOption(true);
return this;
}
/**
* Sets the skip value for the request
*
* @param value of the number of items to skip
* @return the updated request
*/
@Nonnull
public ActivityBasedTimeoutPolicyCollectionRequest skip(final int value) {
addSkipOption(value);
return this;
}
/**
* Add Skip token for pagination
* @param skipToken - Token for pagination
* @return the updated request
*/
@Nonnull
public ActivityBasedTimeoutPolicyCollectionRequest skipToken(@Nonnull final String skipToken) {
addSkipTokenOption(skipToken);
return this;
}
}
| {
"content_hash": "3a69a89ff073472ec1faab51db900414",
"timestamp": "",
"source": "github",
"line_count": 175,
"max_line_length": 221,
"avg_line_length": 36.6,
"alnum_prop": 0.7032006245121,
"repo_name": "microsoftgraph/msgraph-sdk-java",
"id": "d2268a79c0c4433489f726091045c85ac5503a6b",
"size": "6405",
"binary": false,
"copies": "1",
"ref": "refs/heads/dev",
"path": "src/main/java/com/microsoft/graph/requests/ActivityBasedTimeoutPolicyCollectionRequest.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "27286837"
},
{
"name": "PowerShell",
"bytes": "5635"
}
],
"symlink_target": ""
} |
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:gravity="center">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:background="@android:color/white"
android:orientation="vertical"
android:padding="15dp">
<ProgressBar
android:id="@+id/temp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:indeterminate="true" />
<TextView
android:id="@+id/txtMessage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginLeft="5dp"
android:layout_toRightOf="@+id/temp"
android:maxLines="2"
android:padding="3dp" />
</RelativeLayout>
</RelativeLayout> | {
"content_hash": "b1b7e26c707d038d3fdd26c2b0f588ec",
"timestamp": "",
"source": "github",
"line_count": 35,
"max_line_length": 74,
"avg_line_length": 36.05714285714286,
"alnum_prop": 0.633122028526149,
"repo_name": "avinashkgit/Watook",
"id": "8ec1943f9926933d201a98d1afdf64d6af8320ea",
"size": "1262",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/src/main/res/layout/dialog_progress.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "516258"
}
],
"symlink_target": ""
} |
<Type Name="ArbVertexBlend" FullName="MonoMac.OpenGL.ArbVertexBlend">
<TypeSignature Language="C#" Value="public enum ArbVertexBlend" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed ArbVertexBlend extends System.Enum" />
<AssemblyInfo>
<AssemblyName>MonoMac</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Enum</BaseTypeName>
</Base>
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
<Members>
<Member MemberName="ActiveVertexUnitsArb">
<MemberSignature Language="C#" Value="ActiveVertexUnitsArb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend ActiveVertexUnitsArb = int32(34469)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="CurrentWeightArb">
<MemberSignature Language="C#" Value="CurrentWeightArb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend CurrentWeightArb = int32(34472)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="MaxVertexUnitsArb">
<MemberSignature Language="C#" Value="MaxVertexUnitsArb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend MaxVertexUnitsArb = int32(34468)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview0Arb">
<MemberSignature Language="C#" Value="Modelview0Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview0Arb = int32(5888)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview10Arb">
<MemberSignature Language="C#" Value="Modelview10Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview10Arb = int32(34602)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview11Arb">
<MemberSignature Language="C#" Value="Modelview11Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview11Arb = int32(34603)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview12Arb">
<MemberSignature Language="C#" Value="Modelview12Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview12Arb = int32(34604)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview13Arb">
<MemberSignature Language="C#" Value="Modelview13Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview13Arb = int32(34605)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview14Arb">
<MemberSignature Language="C#" Value="Modelview14Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview14Arb = int32(34606)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview15Arb">
<MemberSignature Language="C#" Value="Modelview15Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview15Arb = int32(34607)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview16Arb">
<MemberSignature Language="C#" Value="Modelview16Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview16Arb = int32(34608)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview17Arb">
<MemberSignature Language="C#" Value="Modelview17Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview17Arb = int32(34609)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview18Arb">
<MemberSignature Language="C#" Value="Modelview18Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview18Arb = int32(34610)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview19Arb">
<MemberSignature Language="C#" Value="Modelview19Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview19Arb = int32(34611)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview1Arb">
<MemberSignature Language="C#" Value="Modelview1Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview1Arb = int32(34058)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview20Arb">
<MemberSignature Language="C#" Value="Modelview20Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview20Arb = int32(34612)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview21Arb">
<MemberSignature Language="C#" Value="Modelview21Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview21Arb = int32(34613)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview22Arb">
<MemberSignature Language="C#" Value="Modelview22Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview22Arb = int32(34614)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview23Arb">
<MemberSignature Language="C#" Value="Modelview23Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview23Arb = int32(34615)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview24Arb">
<MemberSignature Language="C#" Value="Modelview24Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview24Arb = int32(34616)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview25Arb">
<MemberSignature Language="C#" Value="Modelview25Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview25Arb = int32(34617)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview26Arb">
<MemberSignature Language="C#" Value="Modelview26Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview26Arb = int32(34618)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview27Arb">
<MemberSignature Language="C#" Value="Modelview27Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview27Arb = int32(34619)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview28Arb">
<MemberSignature Language="C#" Value="Modelview28Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview28Arb = int32(34620)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview29Arb">
<MemberSignature Language="C#" Value="Modelview29Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview29Arb = int32(34621)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview2Arb">
<MemberSignature Language="C#" Value="Modelview2Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview2Arb = int32(34594)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview30Arb">
<MemberSignature Language="C#" Value="Modelview30Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview30Arb = int32(34622)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview31Arb">
<MemberSignature Language="C#" Value="Modelview31Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview31Arb = int32(34623)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview3Arb">
<MemberSignature Language="C#" Value="Modelview3Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview3Arb = int32(34595)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview4Arb">
<MemberSignature Language="C#" Value="Modelview4Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview4Arb = int32(34596)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview5Arb">
<MemberSignature Language="C#" Value="Modelview5Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview5Arb = int32(34597)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview6Arb">
<MemberSignature Language="C#" Value="Modelview6Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview6Arb = int32(34598)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview7Arb">
<MemberSignature Language="C#" Value="Modelview7Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview7Arb = int32(34599)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview8Arb">
<MemberSignature Language="C#" Value="Modelview8Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview8Arb = int32(34600)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="Modelview9Arb">
<MemberSignature Language="C#" Value="Modelview9Arb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend Modelview9Arb = int32(34601)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="VertexBlendArb">
<MemberSignature Language="C#" Value="VertexBlendArb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend VertexBlendArb = int32(34471)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="WeightArrayArb">
<MemberSignature Language="C#" Value="WeightArrayArb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend WeightArrayArb = int32(34477)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="WeightArrayPointerArb">
<MemberSignature Language="C#" Value="WeightArrayPointerArb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend WeightArrayPointerArb = int32(34476)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="WeightArraySizeArb">
<MemberSignature Language="C#" Value="WeightArraySizeArb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend WeightArraySizeArb = int32(34475)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="WeightArrayStrideArb">
<MemberSignature Language="C#" Value="WeightArrayStrideArb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend WeightArrayStrideArb = int32(34474)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="WeightArrayTypeArb">
<MemberSignature Language="C#" Value="WeightArrayTypeArb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend WeightArrayTypeArb = int32(34473)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
<Member MemberName="WeightSumUnityArb">
<MemberSignature Language="C#" Value="WeightSumUnityArb" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype MonoMac.OpenGL.ArbVertexBlend WeightSumUnityArb = int32(34470)" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>MonoMac.OpenGL.ArbVertexBlend</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
</Docs>
</Member>
</Members>
</Type>
| {
"content_hash": "13a4731e2d57581dbf9602d717362266",
"timestamp": "",
"source": "github",
"line_count": 605,
"max_line_length": 156,
"avg_line_length": 40.6198347107438,
"alnum_prop": 0.6669379450661241,
"repo_name": "PlayScriptRedux/monomac",
"id": "6264acc24ce07cc85a4a87bac17d2fc514eaedfe",
"size": "24575",
"binary": false,
"copies": "4",
"ref": "refs/heads/playscript",
"path": "docs/en/MonoMac.OpenGL/ArbVertexBlend.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C#",
"bytes": "8631093"
},
{
"name": "Makefile",
"bytes": "8784"
}
],
"symlink_target": ""
} |
package com.amazonaws.services.appsync.model.transform;
import java.math.*;
import javax.annotation.Generated;
import com.amazonaws.services.appsync.model.*;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
import com.amazonaws.transform.*;
import com.fasterxml.jackson.core.JsonToken;
import static com.fasterxml.jackson.core.JsonToken.*;
/**
* LambdaConflictHandlerConfig JSON Unmarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class LambdaConflictHandlerConfigJsonUnmarshaller implements Unmarshaller<LambdaConflictHandlerConfig, JsonUnmarshallerContext> {
public LambdaConflictHandlerConfig unmarshall(JsonUnmarshallerContext context) throws Exception {
LambdaConflictHandlerConfig lambdaConflictHandlerConfig = new LambdaConflictHandlerConfig();
int originalDepth = context.getCurrentDepth();
String currentParentElement = context.getCurrentParentElement();
int targetDepth = originalDepth + 1;
JsonToken token = context.getCurrentToken();
if (token == null)
token = context.nextToken();
if (token == VALUE_NULL) {
return null;
}
while (true) {
if (token == null)
break;
if (token == FIELD_NAME || token == START_OBJECT) {
if (context.testExpression("lambdaConflictHandlerArn", targetDepth)) {
context.nextToken();
lambdaConflictHandlerConfig.setLambdaConflictHandlerArn(context.getUnmarshaller(String.class).unmarshall(context));
}
} else if (token == END_ARRAY || token == END_OBJECT) {
if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {
if (context.getCurrentDepth() <= originalDepth)
break;
}
}
token = context.nextToken();
}
return lambdaConflictHandlerConfig;
}
private static LambdaConflictHandlerConfigJsonUnmarshaller instance;
public static LambdaConflictHandlerConfigJsonUnmarshaller getInstance() {
if (instance == null)
instance = new LambdaConflictHandlerConfigJsonUnmarshaller();
return instance;
}
}
| {
"content_hash": "f6870caa1fc464d3a26a9a9406369c85",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 136,
"avg_line_length": 37.01587301587302,
"alnum_prop": 0.6723842195540308,
"repo_name": "aws/aws-sdk-java",
"id": "156a1d049ca02dea472a86e412152e8daa817cbc",
"size": "2912",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "aws-java-sdk-appsync/src/main/java/com/amazonaws/services/appsync/model/transform/LambdaConflictHandlerConfigJsonUnmarshaller.java",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
package org.apache.kafka.common.requests;
import org.apache.kafka.common.TopicPartition;
import org.apache.kafka.common.message.OffsetFetchResponseData;
import org.apache.kafka.common.message.OffsetFetchResponseData.OffsetFetchResponseGroup;
import org.apache.kafka.common.message.OffsetFetchResponseData.OffsetFetchResponsePartition;
import org.apache.kafka.common.message.OffsetFetchResponseData.OffsetFetchResponsePartitions;
import org.apache.kafka.common.message.OffsetFetchResponseData.OffsetFetchResponseTopic;
import org.apache.kafka.common.message.OffsetFetchResponseData.OffsetFetchResponseTopics;
import org.apache.kafka.common.protocol.ApiKeys;
import org.apache.kafka.common.protocol.ByteBufferAccessor;
import org.apache.kafka.common.protocol.Errors;
import org.apache.kafka.common.record.RecordBatch;
import org.apache.kafka.common.requests.OffsetFetchResponse.PartitionData;
import org.apache.kafka.common.utils.Utils;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import static org.apache.kafka.common.requests.AbstractResponse.DEFAULT_THROTTLE_TIME;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
public class OffsetFetchResponseTest {
private final int throttleTimeMs = 10;
private final int offset = 100;
private final String metadata = "metadata";
private final String groupOne = "group1";
private final String groupTwo = "group2";
private final String groupThree = "group3";
private final String topicOne = "topic1";
private final int partitionOne = 1;
private final Optional<Integer> leaderEpochOne = Optional.of(1);
private final String topicTwo = "topic2";
private final int partitionTwo = 2;
private final Optional<Integer> leaderEpochTwo = Optional.of(2);
private final String topicThree = "topic3";
private final int partitionThree = 3;
private final Optional<Integer> leaderEpochThree = Optional.of(3);
private Map<TopicPartition, PartitionData> partitionDataMap;
@BeforeEach
public void setUp() {
partitionDataMap = new HashMap<>();
partitionDataMap.put(new TopicPartition(topicOne, partitionOne), new PartitionData(
offset,
leaderEpochOne,
metadata,
Errors.TOPIC_AUTHORIZATION_FAILED
));
partitionDataMap.put(new TopicPartition(topicTwo, partitionTwo), new PartitionData(
offset,
leaderEpochTwo,
metadata,
Errors.UNKNOWN_TOPIC_OR_PARTITION
));
}
@Test
public void testConstructor() {
for (short version : ApiKeys.OFFSET_FETCH.allVersions()) {
if (version < 8) {
OffsetFetchResponse response = new OffsetFetchResponse(throttleTimeMs, Errors.NOT_COORDINATOR, partitionDataMap);
assertEquals(Errors.NOT_COORDINATOR, response.error());
assertEquals(3, response.errorCounts().size());
assertEquals(Utils.mkMap(Utils.mkEntry(Errors.NOT_COORDINATOR, 1),
Utils.mkEntry(Errors.TOPIC_AUTHORIZATION_FAILED, 1),
Utils.mkEntry(Errors.UNKNOWN_TOPIC_OR_PARTITION, 1)),
response.errorCounts());
assertEquals(throttleTimeMs, response.throttleTimeMs());
Map<TopicPartition, PartitionData> responseData = response.responseDataV0ToV7();
assertEquals(partitionDataMap, responseData);
responseData.forEach((tp, data) -> assertTrue(data.hasError()));
} else {
OffsetFetchResponse response = new OffsetFetchResponse(
throttleTimeMs,
Collections.singletonMap(groupOne, Errors.NOT_COORDINATOR),
Collections.singletonMap(groupOne, partitionDataMap));
assertEquals(Errors.NOT_COORDINATOR, response.groupLevelError(groupOne));
assertEquals(3, response.errorCounts().size());
assertEquals(Utils.mkMap(Utils.mkEntry(Errors.NOT_COORDINATOR, 1),
Utils.mkEntry(Errors.TOPIC_AUTHORIZATION_FAILED, 1),
Utils.mkEntry(Errors.UNKNOWN_TOPIC_OR_PARTITION, 1)),
response.errorCounts());
assertEquals(throttleTimeMs, response.throttleTimeMs());
Map<TopicPartition, PartitionData> responseData = response.partitionDataMap(groupOne);
assertEquals(partitionDataMap, responseData);
responseData.forEach((tp, data) -> assertTrue(data.hasError()));
}
}
}
@Test
public void testConstructorWithMultipleGroups() {
Map<String, Map<TopicPartition, PartitionData>> responseData = new HashMap<>();
Map<String, Errors> errorMap = new HashMap<>();
Map<TopicPartition, PartitionData> pd1 = new HashMap<>();
Map<TopicPartition, PartitionData> pd2 = new HashMap<>();
Map<TopicPartition, PartitionData> pd3 = new HashMap<>();
pd1.put(new TopicPartition(topicOne, partitionOne), new PartitionData(
offset,
leaderEpochOne,
metadata,
Errors.TOPIC_AUTHORIZATION_FAILED));
pd2.put(new TopicPartition(topicTwo, partitionTwo), new PartitionData(
offset,
leaderEpochTwo,
metadata,
Errors.UNKNOWN_TOPIC_OR_PARTITION));
pd3.put(new TopicPartition(topicThree, partitionThree), new PartitionData(
offset,
leaderEpochThree,
metadata,
Errors.NONE));
responseData.put(groupOne, pd1);
responseData.put(groupTwo, pd2);
responseData.put(groupThree, pd3);
errorMap.put(groupOne, Errors.NOT_COORDINATOR);
errorMap.put(groupTwo, Errors.COORDINATOR_LOAD_IN_PROGRESS);
errorMap.put(groupThree, Errors.NONE);
for (short version : ApiKeys.OFFSET_FETCH.allVersions()) {
if (version >= 8) {
OffsetFetchResponse response = new OffsetFetchResponse(
throttleTimeMs, errorMap, responseData);
assertEquals(Errors.NOT_COORDINATOR, response.groupLevelError(groupOne));
assertEquals(Errors.COORDINATOR_LOAD_IN_PROGRESS, response.groupLevelError(groupTwo));
assertEquals(Errors.NONE, response.groupLevelError(groupThree));
assertTrue(response.groupHasError(groupOne));
assertTrue(response.groupHasError(groupTwo));
assertFalse(response.groupHasError(groupThree));
assertEquals(5, response.errorCounts().size());
assertEquals(Utils.mkMap(Utils.mkEntry(Errors.NOT_COORDINATOR, 1),
Utils.mkEntry(Errors.TOPIC_AUTHORIZATION_FAILED, 1),
Utils.mkEntry(Errors.UNKNOWN_TOPIC_OR_PARTITION, 1),
Utils.mkEntry(Errors.COORDINATOR_LOAD_IN_PROGRESS, 1),
Utils.mkEntry(Errors.NONE, 2)),
response.errorCounts());
assertEquals(throttleTimeMs, response.throttleTimeMs());
Map<TopicPartition, PartitionData> responseData1 = response.partitionDataMap(groupOne);
assertEquals(pd1, responseData1);
responseData1.forEach((tp, data) -> assertTrue(data.hasError()));
Map<TopicPartition, PartitionData> responseData2 = response.partitionDataMap(groupTwo);
assertEquals(pd2, responseData2);
responseData2.forEach((tp, data) -> assertTrue(data.hasError()));
Map<TopicPartition, PartitionData> responseData3 = response.partitionDataMap(groupThree);
assertEquals(pd3, responseData3);
responseData3.forEach((tp, data) -> assertFalse(data.hasError()));
}
}
}
/**
* Test behavior changes over the versions. Refer to resources.common.messages.OffsetFetchResponse.json
*/
@Test
public void testStructBuild() {
for (short version : ApiKeys.OFFSET_FETCH.allVersions()) {
if (version < 8) {
partitionDataMap.put(new TopicPartition(topicTwo, partitionTwo), new PartitionData(
offset,
leaderEpochTwo,
metadata,
Errors.GROUP_AUTHORIZATION_FAILED
));
OffsetFetchResponse latestResponse = new OffsetFetchResponse(throttleTimeMs, Errors.NONE, partitionDataMap);
OffsetFetchResponseData data = new OffsetFetchResponseData(
new ByteBufferAccessor(latestResponse.serialize(version)), version);
OffsetFetchResponse oldResponse = new OffsetFetchResponse(data, version);
if (version <= 1) {
assertEquals(Errors.NONE.code(), data.errorCode());
// Partition level error populated in older versions.
assertEquals(Errors.GROUP_AUTHORIZATION_FAILED, oldResponse.error());
assertEquals(Utils.mkMap(Utils.mkEntry(Errors.GROUP_AUTHORIZATION_FAILED, 2),
Utils.mkEntry(Errors.TOPIC_AUTHORIZATION_FAILED, 1)),
oldResponse.errorCounts());
} else {
assertEquals(Errors.NONE.code(), data.errorCode());
assertEquals(Errors.NONE, oldResponse.error());
assertEquals(Utils.mkMap(
Utils.mkEntry(Errors.NONE, 1),
Utils.mkEntry(Errors.GROUP_AUTHORIZATION_FAILED, 1),
Utils.mkEntry(Errors.TOPIC_AUTHORIZATION_FAILED, 1)),
oldResponse.errorCounts());
}
if (version <= 2) {
assertEquals(DEFAULT_THROTTLE_TIME, oldResponse.throttleTimeMs());
} else {
assertEquals(throttleTimeMs, oldResponse.throttleTimeMs());
}
Map<TopicPartition, PartitionData> expectedDataMap = new HashMap<>();
for (Map.Entry<TopicPartition, PartitionData> entry : partitionDataMap.entrySet()) {
PartitionData partitionData = entry.getValue();
expectedDataMap.put(entry.getKey(), new PartitionData(
partitionData.offset,
version <= 4 ? Optional.empty() : partitionData.leaderEpoch,
partitionData.metadata,
partitionData.error
));
}
Map<TopicPartition, PartitionData> responseData = oldResponse.responseDataV0ToV7();
assertEquals(expectedDataMap, responseData);
responseData.forEach((tp, rdata) -> assertTrue(rdata.hasError()));
} else {
partitionDataMap.put(new TopicPartition(topicTwo, partitionTwo), new PartitionData(
offset,
leaderEpochTwo,
metadata,
Errors.GROUP_AUTHORIZATION_FAILED));
OffsetFetchResponse latestResponse = new OffsetFetchResponse(
throttleTimeMs,
Collections.singletonMap(groupOne, Errors.NONE),
Collections.singletonMap(groupOne, partitionDataMap));
OffsetFetchResponseData data = new OffsetFetchResponseData(
new ByteBufferAccessor(latestResponse.serialize(version)), version);
OffsetFetchResponse oldResponse = new OffsetFetchResponse(data, version);
assertEquals(Errors.NONE.code(), data.groups().get(0).errorCode());
assertEquals(Errors.NONE, oldResponse.groupLevelError(groupOne));
assertEquals(Utils.mkMap(
Utils.mkEntry(Errors.NONE, 1),
Utils.mkEntry(Errors.GROUP_AUTHORIZATION_FAILED, 1),
Utils.mkEntry(Errors.TOPIC_AUTHORIZATION_FAILED, 1)),
oldResponse.errorCounts());
assertEquals(throttleTimeMs, oldResponse.throttleTimeMs());
Map<TopicPartition, PartitionData> expectedDataMap = new HashMap<>();
for (Map.Entry<TopicPartition, PartitionData> entry : partitionDataMap.entrySet()) {
PartitionData partitionData = entry.getValue();
expectedDataMap.put(entry.getKey(), new PartitionData(
partitionData.offset,
partitionData.leaderEpoch,
partitionData.metadata,
partitionData.error
));
}
Map<TopicPartition, PartitionData> responseData = oldResponse.partitionDataMap(groupOne);
assertEquals(expectedDataMap, responseData);
responseData.forEach((tp, rdata) -> assertTrue(rdata.hasError()));
}
}
}
@Test
public void testShouldThrottle() {
for (short version : ApiKeys.OFFSET_FETCH.allVersions()) {
if (version < 8) {
OffsetFetchResponse response = new OffsetFetchResponse(throttleTimeMs, Errors.NONE, partitionDataMap);
if (version >= 4) {
assertTrue(response.shouldClientThrottle(version));
} else {
assertFalse(response.shouldClientThrottle(version));
}
} else {
OffsetFetchResponse response = new OffsetFetchResponse(
throttleTimeMs,
Collections.singletonMap(groupOne, Errors.NOT_COORDINATOR),
Collections.singletonMap(groupOne, partitionDataMap));
assertTrue(response.shouldClientThrottle(version));
}
}
}
@Test
public void testNullableMetadataV0ToV7() {
PartitionData pd = new PartitionData(
offset,
leaderEpochOne,
null,
Errors.UNKNOWN_TOPIC_OR_PARTITION);
// test PartitionData.equals with null metadata
assertEquals(pd, pd);
partitionDataMap.clear();
partitionDataMap.put(new TopicPartition(topicOne, partitionOne), pd);
OffsetFetchResponse response = new OffsetFetchResponse(throttleTimeMs, Errors.GROUP_AUTHORIZATION_FAILED, partitionDataMap);
OffsetFetchResponseData expectedData =
new OffsetFetchResponseData()
.setErrorCode(Errors.GROUP_AUTHORIZATION_FAILED.code())
.setThrottleTimeMs(throttleTimeMs)
.setTopics(Collections.singletonList(
new OffsetFetchResponseTopic()
.setName(topicOne)
.setPartitions(Collections.singletonList(
new OffsetFetchResponsePartition()
.setPartitionIndex(partitionOne)
.setCommittedOffset(offset)
.setCommittedLeaderEpoch(leaderEpochOne.orElse(-1))
.setErrorCode(Errors.UNKNOWN_TOPIC_OR_PARTITION.code())
.setMetadata(null))
))
);
assertEquals(expectedData, response.data());
}
@Test
public void testNullableMetadataV8AndAbove() {
PartitionData pd = new PartitionData(
offset,
leaderEpochOne,
null,
Errors.UNKNOWN_TOPIC_OR_PARTITION);
// test PartitionData.equals with null metadata
assertEquals(pd, pd);
partitionDataMap.clear();
partitionDataMap.put(new TopicPartition(topicOne, partitionOne), pd);
OffsetFetchResponse response = new OffsetFetchResponse(
throttleTimeMs,
Collections.singletonMap(groupOne, Errors.GROUP_AUTHORIZATION_FAILED),
Collections.singletonMap(groupOne, partitionDataMap));
OffsetFetchResponseData expectedData =
new OffsetFetchResponseData()
.setGroups(Collections.singletonList(
new OffsetFetchResponseGroup()
.setGroupId(groupOne)
.setTopics(Collections.singletonList(
new OffsetFetchResponseTopics()
.setName(topicOne)
.setPartitions(Collections.singletonList(
new OffsetFetchResponsePartitions()
.setPartitionIndex(partitionOne)
.setCommittedOffset(offset)
.setCommittedLeaderEpoch(leaderEpochOne.orElse(-1))
.setErrorCode(Errors.UNKNOWN_TOPIC_OR_PARTITION.code())
.setMetadata(null)))))
.setErrorCode(Errors.GROUP_AUTHORIZATION_FAILED.code())))
.setThrottleTimeMs(throttleTimeMs);
assertEquals(expectedData, response.data());
}
@Test
public void testUseDefaultLeaderEpochV0ToV7() {
final Optional<Integer> emptyLeaderEpoch = Optional.empty();
partitionDataMap.clear();
partitionDataMap.put(new TopicPartition(topicOne, partitionOne),
new PartitionData(
offset,
emptyLeaderEpoch,
metadata,
Errors.UNKNOWN_TOPIC_OR_PARTITION)
);
OffsetFetchResponse response = new OffsetFetchResponse(throttleTimeMs, Errors.NOT_COORDINATOR, partitionDataMap);
OffsetFetchResponseData expectedData =
new OffsetFetchResponseData()
.setErrorCode(Errors.NOT_COORDINATOR.code())
.setThrottleTimeMs(throttleTimeMs)
.setTopics(Collections.singletonList(
new OffsetFetchResponseTopic()
.setName(topicOne)
.setPartitions(Collections.singletonList(
new OffsetFetchResponsePartition()
.setPartitionIndex(partitionOne)
.setCommittedOffset(offset)
.setCommittedLeaderEpoch(RecordBatch.NO_PARTITION_LEADER_EPOCH)
.setErrorCode(Errors.UNKNOWN_TOPIC_OR_PARTITION.code())
.setMetadata(metadata))
))
);
assertEquals(expectedData, response.data());
}
@Test
public void testUseDefaultLeaderEpochV8() {
final Optional<Integer> emptyLeaderEpoch = Optional.empty();
partitionDataMap.clear();
partitionDataMap.put(new TopicPartition(topicOne, partitionOne),
new PartitionData(
offset,
emptyLeaderEpoch,
metadata,
Errors.UNKNOWN_TOPIC_OR_PARTITION)
);
OffsetFetchResponse response = new OffsetFetchResponse(
throttleTimeMs,
Collections.singletonMap(groupOne, Errors.NOT_COORDINATOR),
Collections.singletonMap(groupOne, partitionDataMap));
OffsetFetchResponseData expectedData =
new OffsetFetchResponseData()
.setGroups(Collections.singletonList(
new OffsetFetchResponseGroup()
.setGroupId(groupOne)
.setTopics(Collections.singletonList(
new OffsetFetchResponseTopics()
.setName(topicOne)
.setPartitions(Collections.singletonList(
new OffsetFetchResponsePartitions()
.setPartitionIndex(partitionOne)
.setCommittedOffset(offset)
.setCommittedLeaderEpoch(RecordBatch.NO_PARTITION_LEADER_EPOCH)
.setErrorCode(Errors.UNKNOWN_TOPIC_OR_PARTITION.code())
.setMetadata(metadata)))))
.setErrorCode(Errors.NOT_COORDINATOR.code())))
.setThrottleTimeMs(throttleTimeMs);
assertEquals(expectedData, response.data());
}
}
| {
"content_hash": "4dc855c3fb9e930f7f565877318dab18",
"timestamp": "",
"source": "github",
"line_count": 426,
"max_line_length": 132,
"avg_line_length": 48.71596244131455,
"alnum_prop": 0.5976485327422542,
"repo_name": "apache/kafka",
"id": "c73ea2afebb508c6e30d8917a520210706d6885f",
"size": "21551",
"binary": false,
"copies": "5",
"ref": "refs/heads/trunk",
"path": "clients/src/test/java/org/apache/kafka/common/requests/OffsetFetchResponseTest.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "32930"
},
{
"name": "Dockerfile",
"bytes": "9184"
},
{
"name": "HTML",
"bytes": "3739"
},
{
"name": "Java",
"bytes": "33868408"
},
{
"name": "Python",
"bytes": "1153808"
},
{
"name": "Roff",
"bytes": "39396"
},
{
"name": "Scala",
"bytes": "10004229"
},
{
"name": "Shell",
"bytes": "107622"
},
{
"name": "XSLT",
"bytes": "7116"
}
],
"symlink_target": ""
} |
/**
* \file ssl_ticket.h
*
* \brief TLS server ticket callbacks implementation
*/
/*
* Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* This file is part of mbed TLS (https://tls.mbed.org)
*/
#ifndef MBEDTLS_SSL_TICKET_H
#define MBEDTLS_SSL_TICKET_H
/*
* This implementation of the session ticket callbacks includes key
* management, rotating the keys periodically in order to preserve forward
* secrecy, when MBEDTLS_HAVE_TIME is defined.
*/
#include "ssl.h"
#include "cipher.h"
#if defined(MBEDTLS_THREADING_C)
#include "threading.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
/**
* \brief Information for session ticket protection
*/
typedef struct mbedtls_ssl_ticket_key
{
unsigned char name[4]; /*!< random key identifier */
uint32_t generation_time; /*!< key generation timestamp (seconds) */
mbedtls_cipher_context_t ctx; /*!< context for auth enc/decryption */
}
mbedtls_ssl_ticket_key;
/**
* \brief Context for session ticket handling functions
*/
typedef struct mbedtls_ssl_ticket_context
{
mbedtls_ssl_ticket_key keys[2]; /*!< ticket protection keys */
unsigned char active; /*!< index of the currently active key */
uint32_t ticket_lifetime; /*!< lifetime of tickets in seconds */
/** Callback for getting (pseudo-)random numbers */
int (*f_rng)(void *, unsigned char *, size_t);
void *p_rng; /*!< context for the RNG function */
#if defined(MBEDTLS_THREADING_C)
mbedtls_threading_mutex_t mutex;
#endif
}
mbedtls_ssl_ticket_context;
/**
* \brief Initialize a ticket context.
* (Just make it ready for mbedtls_ssl_ticket_setup()
* or mbedtls_ssl_ticket_free().)
*
* \param ctx Context to be initialized
*/
void mbedtls_ssl_ticket_init( mbedtls_ssl_ticket_context *ctx );
/**
* \brief Prepare context to be actually used
*
* \param ctx Context to be set up
* \param f_rng RNG callback function
* \param p_rng RNG callback context
* \param cipher AEAD cipher to use for ticket protection.
* Recommended value: MBEDTLS_CIPHER_AES_256_GCM.
* \param lifetime Tickets lifetime in seconds
* Recommended value: 86400 (one day).
*
* \note It is highly recommended to select a cipher that is at
* least as strong as the the strongest ciphersuite
* supported. Usually that means a 256-bit key.
*
* \note The lifetime of the keys is twice the lifetime of tickets.
* It is recommended to pick a reasonnable lifetime so as not
* to negate the benefits of forward secrecy.
*
* \return 0 if successful,
* or a specific MBEDTLS_ERR_XXX error code
*/
int mbedtls_ssl_ticket_setup( mbedtls_ssl_ticket_context *ctx,
int (*f_rng)(void *, unsigned char *, size_t), void *p_rng,
mbedtls_cipher_type_t cipher,
uint32_t lifetime );
/**
* \brief Implementation of the ticket write callback
*
* \note See \c mbedlts_ssl_ticket_write_t for description
*/
mbedtls_ssl_ticket_write_t mbedtls_ssl_ticket_write;
/**
* \brief Implementation of the ticket parse callback
*
* \note See \c mbedlts_ssl_ticket_parse_t for description
*/
mbedtls_ssl_ticket_parse_t mbedtls_ssl_ticket_parse;
/**
* \brief Free a context's content and zeroize it.
*
* \param ctx Context to be cleaned up
*/
void mbedtls_ssl_ticket_free( mbedtls_ssl_ticket_context *ctx );
#ifdef __cplusplus
}
#endif
#endif /* ssl_ticket.h */
| {
"content_hash": "7e067a0830fe86fd443ac6a5836176aa",
"timestamp": "",
"source": "github",
"line_count": 136,
"max_line_length": 78,
"avg_line_length": 32.830882352941174,
"alnum_prop": 0.6232922732362822,
"repo_name": "go-virgil/virgil",
"id": "7d87b7f1043a1c4545150dab06e89ff28c7e79e5",
"size": "4465",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "crypto/wrapper/pkg/windows_amd64/include/mbedtls/ssl_ticket.h",
"mode": "33188",
"license": "bsd-3-clause",
"language": [],
"symlink_target": ""
} |
package main.importedjs
import scala.scalajs.js
package object Meter extends js.GlobalScope {
def onVolumeChanged(volume: Int): Nothing = js.native
}
| {
"content_hash": "314ab2ca30c13edb937637d150e781b1",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 55,
"avg_line_length": 22,
"alnum_prop": 0.7857142857142857,
"repo_name": "jaapmengers/OneMinuteChanges",
"id": "e123d885e07d3a62e198c802aaaa71052ebe021d",
"size": "154",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/scala/main/importedjs/VolumeMeter.scala",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "HTML",
"bytes": "1773"
},
{
"name": "JavaScript",
"bytes": "5838"
},
{
"name": "Scala",
"bytes": "3022"
}
],
"symlink_target": ""
} |
#include "config.h"
#include "core/html/DOMFormData.h"
#include "core/fileapi/Blob.h"
#include "core/fileapi/File.h"
#include "core/html/HTMLFormElement.h"
#include "wtf/text/TextEncoding.h"
#include "wtf/text/WTFString.h"
namespace blink {
namespace {
class DOMFormDataIterationSource final : public PairIterable<String, FormDataEntryValue>::IterationSource {
public:
DOMFormDataIterationSource(DOMFormData* formData) : m_formData(formData), m_current(0) { }
bool next(ScriptState* scriptState, String& key, FormDataEntryValue& value, ExceptionState& exceptionState) override
{
if (m_current >= m_formData->size())
return false;
const FormDataList::Entry entry = m_formData->getEntry(m_current++);
key = entry.name();
if (entry.isString())
value.setUSVString(entry.string());
else if (entry.isFile())
value.setFile(entry.file());
else
ASSERT_NOT_REACHED();
return true;
}
DEFINE_INLINE_VIRTUAL_TRACE()
{
visitor->trace(m_formData);
PairIterable<String, FormDataEntryValue>::IterationSource::trace(visitor);
}
private:
const RefPtrWillBeMember<DOMFormData> m_formData;
size_t m_current;
};
} // namespace
DOMFormData::DOMFormData(const WTF::TextEncoding& encoding)
: FormDataList(encoding)
{
}
DOMFormData::DOMFormData(HTMLFormElement* form)
: FormDataList(UTF8Encoding())
{
if (!form)
return;
for (unsigned i = 0; i < form->associatedElements().size(); ++i) {
FormAssociatedElement* element = form->associatedElements()[i];
if (!toHTMLElement(element)->isDisabledFormControl())
element->appendFormData(*this, true);
}
}
void DOMFormData::append(const String& name, const String& value)
{
appendData(name, value);
}
void DOMFormData::append(const String& name, Blob* blob, const String& filename)
{
appendBlob(name, blob, filename);
}
void DOMFormData::get(const String& name, FormDataEntryValue& result)
{
Entry entry = getEntry(name);
if (entry.isString())
result.setUSVString(entry.string());
else if (entry.isFile())
result.setFile(entry.file());
else
ASSERT(entry.isNone());
}
Vector<FormDataEntryValue> DOMFormData::getAll(const String& name)
{
Vector<FormDataEntryValue> results;
WillBeHeapVector<FormDataList::Entry> entries = FormDataList::getAll(name);
for (size_t i = 0; i < entries.size(); ++i) {
const FormDataList::Entry& entry = entries[i];
ASSERT(entry.name() == name);
FormDataEntryValue value;
if (entry.isString())
value.setUSVString(entry.string());
else if (entry.isFile())
value.setFile(entry.file());
else
ASSERT_NOT_REACHED();
results.append(value);
}
ASSERT(results.size() == entries.size());
return results;
}
void DOMFormData::set(const String& name, const String& value)
{
setData(name, value);
}
void DOMFormData::set(const String& name, Blob* blob, const String& filename)
{
setBlob(name, blob, filename);
}
PairIterable<String, FormDataEntryValue>::IterationSource* DOMFormData::startIteration(ScriptState*, ExceptionState&)
{
return new DOMFormDataIterationSource(this);
}
} // namespace blink
| {
"content_hash": "f11ecdf9698a6f584628024bdc8cef23",
"timestamp": "",
"source": "github",
"line_count": 123,
"max_line_length": 120,
"avg_line_length": 27.121951219512194,
"alnum_prop": 0.6636690647482014,
"repo_name": "kurli/blink-crosswalk",
"id": "b338643fd235508736c334b441b58daaecd23d0f",
"size": "4898",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "Source/core/html/DOMFormData.cpp",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "ApacheConf",
"bytes": "1835"
},
{
"name": "Assembly",
"bytes": "14768"
},
{
"name": "Batchfile",
"bytes": "35"
},
{
"name": "Bison",
"bytes": "64588"
},
{
"name": "C",
"bytes": "124323"
},
{
"name": "C++",
"bytes": "44371388"
},
{
"name": "CSS",
"bytes": "565212"
},
{
"name": "CoffeeScript",
"bytes": "163"
},
{
"name": "GLSL",
"bytes": "11578"
},
{
"name": "Groff",
"bytes": "28067"
},
{
"name": "HTML",
"bytes": "58015328"
},
{
"name": "Java",
"bytes": "109391"
},
{
"name": "JavaScript",
"bytes": "24469331"
},
{
"name": "Objective-C",
"bytes": "47687"
},
{
"name": "Objective-C++",
"bytes": "301733"
},
{
"name": "PHP",
"bytes": "184068"
},
{
"name": "Perl",
"bytes": "585293"
},
{
"name": "Python",
"bytes": "3817314"
},
{
"name": "Ruby",
"bytes": "141818"
},
{
"name": "Shell",
"bytes": "10037"
},
{
"name": "XSLT",
"bytes": "49926"
}
],
"symlink_target": ""
} |
<?php
include_once("php/check_login_status.php");
/*IMPORTANTE
Aunque esta logica actualmente funciona de manera correcta creo que es una forma errada de hacerlo
Estar pendiente para coregir cuando se pueda
*/
if(isset($_GET["user"])){
$user = mysqli_real_escape_string($conn, $_GET['user']);
if($user != $log_username) {
header("location: http://localhost/~erwinhenriquezviejo/malvo/loginpage.php");
}
}
else {
header("location: http://localhost/~erwinhenriquezviejo/malvo/loginpage.php");
}
/*
IMPORTANTE
Con la logica anterior si el ususario cambi algo en la barra de direcciones sera llevado diractamente al dashboard de la cuenta donde esta Logeado. sto no evita problemas de seguridad si alguien cambia sus Cookies o archivos de Session
*/
//seccion para hacer las variables que se usaran luego
//este codigo nos da el id del usuario
$sql = "SELECT * FROM users WHERE username='".$user."'";
$query = mysqli_query($conn, $sql);
$num_row = mysqli_num_rows($query);
if ($num_row > 0){
while ($row = mysqli_fetch_assoc($query)){
$user_id = $row['user_id'];
}
}
else {
echo "ERROR";
}
//Mayor distancia
$sql = "SELECT MAX(distance) FROM runlog WHERE user_id='".$user_id."'";
$query = mysqli_query($conn, $sql);
$num_row = mysqli_num_rows($query);
if ($num_row > 0){
while ($row = mysqli_fetch_assoc($query)){
$distancia = $row["MAX(distance)"] / 1000;
}
}
//Mejor ritmo
$sql = "SELECT MIN(pace) FROM runlog WHERE user_id='".$user_id."'";
$query = mysqli_query($conn, $sql);
$num_row = mysqli_num_rows($query);
if ($num_row > 0){
while ($row = mysqli_fetch_assoc($query)){
$ritmo = $row["MIN(pace)"];
$ritmosegundos = $ritmo % 60;
$ritmominutos = ($ritmo / 60) % 60;
$ritmohoras = floor(($ritmo / 60) / 60);
if ($ritmosegundos < 10) {
$ritmosegundos = sprintf('%02d', $ritmosegundos);
}
if ($ritmominutos < 10) {
$ritmominutos = sprintf('%02d', $ritmominutos);
}
}
}
else {
echo "ERROR";
}
//Mayor tiempo
$sql = "SELECT MAX(time) FROM runlog WHERE user_id='".$user_id."'";
$query = mysqli_query($conn, $sql);
$num_row = mysqli_num_rows($query);
if ($num_row > 0){
while ($row = mysqli_fetch_assoc($query)){
$tiempo = $row["MAX(time)"];
$segundos = $tiempo % 60;
$minutos = ($tiempo / 60) % 60;
$horas = floor(($tiempo / 60) / 60);
if ($segundos < 10) {
$segundos = sprintf('%02d', $segundos);
}
if ($minutos < 10) {
$minutos = sprintf('%02d', $minutos);
}
}
}
else {
echo "ERROR";
}
?>
<!DOCTYPE html>
<html>
<head>
<!-- Titulo-->
<title>Malvo. A Training Log for runners.</title>
<meta charset="utf-8">
<!-- Hojas de estilo-->
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="angular-chart.js/angular-chart.min.css">
<link rel="stylesheet" href="assets/css/font-awesome.css">
</head>
<body>
<!-- Navbar-->
<nav class="navbar navbar-default navbar-fixed-top texto">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="userlog.php">RunLg | <small>A training log for runners.</small>
</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<!--User Dropdown-->
<li class="dropdown">
<a id="userdrop" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-user"></i>
Usuario
<span class="caret"></span>
</a>
<ul class="dropdown-menu" aria-labelledby="userdrop">
<li><a href="userlog.php" class="main-color"><?php echo $user?></a></li>
<li role="separator" class="divider"></li>
<li><a href="#">Perfil</a></li>
<li><a href="#">Ajustes</a></li>
</ul>
</li>
<!--/user dropdown-->
<!--Log Dropdown-->
<li class="dropdown">
<a id="logdrop" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-bar-chart"></i>
Registro
<span class="caret"></span>
</a>
<ul class="dropdown-menu" aria-labelledby="logdrop">
<li><a href="#">Mis registros</a></li>
<li><a href="#">Entrnamientos</a></li>
<li><a href="#">Progreso/Analisis</a></li>
</ul>
</li>
<!--/log Dropdown-->
<!--Log Out Button-->
<li><a href="php/logout.php" class="sign-in">Log Out</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<!--Container fluido para el area de toda la pagina por debajo del navbar-->
<div class="container-fluid">
<!--Espacio exactamente del tamano del NavBar para que los elemnetos no se oloque detras de el-->
<div class="back-head"></div>
<div class="row">
<!-- Panel lateral de color-->
<div class="col-md-4 color-panel">
<!-- Espacio para la parte de la foto y nombre de usuario-->
<div class="espacio25 text-center">
<img src="assets/css/img/nature2.jpeg" class="img-circle user-img">
<h1 class="textoblanco"><?php echo $user?></h1>
<!-- este btn es para cambiarlo por un link para ir a la pagina de SETTINGS donde se ajustan las preferencias del usuario.-->
<a disabled id="change-btn" href="#" class="btn btn-default" onclick="toggleDisable();"><i class="fa fa-cog"></i></a>
<!-- //btn-->
<div id="social-links" class="text-center espacio25 bg-danger">
<div id="social-head" class="p-top-10">
<h4>Conectar</h4>
</div>
<!-- Los Btn se cambiaran por imagenes de las diferentes redes sociales para que sea mas facil y elegante a la vista
La funcion de esto es que se pueda compartir la actividad realizad o guardada en redes sociales igualmente culaquier parte del analisis de entrenamiento-->
<div id="social-links" class="text-center padding15">
<span id="f-btn" class="espacio10"><i class="fa fa-facebook-square fa-2x"></i></span>
<span id="tw-btn" class="espacio10"><i class="fa fa-twitter-square fa-2x"></i></span>
<span id="wp-btn" class="espacio10"><i class="fa fa-wordpress fa-2x"></i></span>
<span id="tb-btn" class="espacio10"><i class="fa fa-tumblr-square fa-2x"></i></span>
</div>
</div>
</div>
</div>
<!-- Area central donde se muestran las opciones-->
<div class="col-md-8">
<div id="records" class="row">
<div class="section-head">
<p>Records</p>
</div>
<div class="col-md-6">
<ul class="list-default">
<li>Mayor distancia: <?php echo $distancia;?> Km</li>
<li>Mayor tiempo: <?php echo "$horas:$minutos:$segundos";?></li>
<li>Mejor ritmo: <?php echo "$ritmominutos:$ritmosegundos";?>/km</li>
</ul>
</div>
<div class="col-md-6">
<div class="dropdown">
<button id="track-1" class="btn btn-primary" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Agregar Record
<span class="caret"></span>
</button>
<ul id="ul-records" class="dropdown-menu" aria-labelledby="track-1">
<li><input id="r-racha" type="checkbox" class="r-checkbox" />Racha de entrenamientos</li>
<li><input id="r-2" type="checkbox" class="r-checkbox" />Otro record</li>
<li><input id="r-3" type="checkbox" class="r-checkbox" />Otro record</li>
</ul>
</div>
<div id="area-1" class="dash-border">
<ul>
<li>Record personalizados</li>
</ul>
</div>
<div id="area-2" style="display: none">
<p>Area que muestra los record personales</p>
</div>
</div>
</div>
<div id="progreso" class="row">
<div class="section-head">
<p>Progreso</p>
</div>
<div class="col-md-6">
<ul class="list-default">
<li>Progreso 1</li>
<li>Progreso 2</li>
<li>Progreso 3</li>
</ul>
</div>
<div class="col-md-6">
<button class="btn btn-primary">+track</button>
<div class="dash-border">
<ul>
<li>Agregar tu propio progreso para seguir</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
<!-- Javascript-->
<!--Standar .js files-->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.6/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<!--Personal .js files-->
<script src="js/functions.js"></script>
<script>
function toggleDisable() {
var dataset = document.getElementById("test");
var btn = document.getElementById("change-btn");
if (dataset.disabled == true) {
dataset.disabled = false;
btn.className = "btn btn-danger";
}
else {
dataset.disabled = true;
btn.className = "btn btn-default";
}
}
</script>
<script>
// JQUERY para cambiar la visibilidad de 2 DIVs basado en la accion de 1 solo checkbox
/* $("#r-racha").change(function(){
var ischecked=$(this).is(':checked');
if(ischecked){
$("#area-2").fadeIn(200);
$("#area-1").fadeOut(200);
}
else{
$("#area-2").fadeOut(200);
$("#area-1").fadeIn(200);
}
});*/
// JS para cambiar el display de 2 DIVs basado en el checkbox. solo se puede utilizar si es solo un checbox
/*
function toggle2(id1, id2, cb) {
var div1 = document.getElementById(id1);
var div2 = document.getElementById(id2);
if(cb.checked == true) {
div1.style.display = "none";
div2.style.display = "block";
}
else {
div1.style.display = "block";
div2.style.display = "none";
}
}
*/
// Jquery
var tog = $("#area-2").hide();
var tog2 = $("#area-1").hide();
$('#ul-records .r-checkbox').change(function () {
$(tog).toggle($('.r-checkbox:checked').length > 0);
$(tog2).toggle($('.r-checkbox:checked').length == 0);
}).change();
</script>
</html> | {
"content_hash": "0a89640abd3bfaf4ff791cfee4fd5148",
"timestamp": "",
"source": "github",
"line_count": 330,
"max_line_length": 235,
"avg_line_length": 31.5,
"alnum_prop": 0.5994227994227994,
"repo_name": "morethanrunners/malvo",
"id": "bef9cf6f47816c9bd3b044937e54fd2a20a46c3c",
"size": "10395",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "user.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "63106"
},
{
"name": "HTML",
"bytes": "54065"
},
{
"name": "JavaScript",
"bytes": "15033"
},
{
"name": "PHP",
"bytes": "100985"
}
],
"symlink_target": ""
} |
class RetireCreditCardPayments < ActiveRecord::Migration
def up
execute(%{
INSERT INTO order_payments (
order_id,
provider_name,
provider_token,
status,
name,
number,
expiration_month,
expiration_year,
card_type,
created_at,
updated_at
)
SELECT
order_id,
'spreedly_core',
gateway_id,
CASE
WHEN ccts.transaction_type = 'authorize' THEN 'authorized'
WHEN ccts.transaction_type = 'capture' THEN 'settled'
WHEN ccts.transaction_type = 'credit' THEN 'refunded'
END,
first_name || ' ' || last_name,
number,
month,
year,
card_type,
ccps.created_at,
ccps.updated_at
FROM credit_card_payments AS ccps
JOIN credit_card_transactions AS ccts ON ccts.id IN (
SELECT id FROM credit_card_transactions
WHERE credit_card_payment_id = ccps.id
ORDER BY created_at DESC LIMIT 1
)
})
rename_table(:credit_card_payments, :legacy_credit_card_payments)
rename_table(:credit_card_transactions, :legacy_credit_card_transactions)
end
def down
rename_table(:legacy_credit_card_payments, :credit_card_payments)
rename_table(:legacy_credit_card_transactions, :credit_card_transactions)
execute(%{
DELETE FROM order_payments WHERE provider_token IN (
SELECT gateway_id FROM credit_card_payments
)
})
end
end
| {
"content_hash": "40e0bbad2bcb0b823c306fa4c24e4220",
"timestamp": "",
"source": "github",
"line_count": 53,
"max_line_length": 77,
"avg_line_length": 28.735849056603772,
"alnum_prop": 0.6001313197636244,
"repo_name": "spookandpuff/islay-shop",
"id": "9d13184cfc3695c2fb0079460020b84d26c7df64",
"size": "1523",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "db/migrate/20130822020919_retire_credit_card_payments.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "22040"
},
{
"name": "HTML",
"bytes": "82289"
},
{
"name": "JavaScript",
"bytes": "29334"
},
{
"name": "Ruby",
"bytes": "377743"
},
{
"name": "SQLPL",
"bytes": "102600"
}
],
"symlink_target": ""
} |
package org.elasticsearch.client;
import org.apache.http.HttpHost;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import static org.hamcrest.Matchers.containsInAnyOrder;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
/**
* {@link RestClient.FailureListener} impl that allows to track when it gets called for which host.
*/
class HostsTrackingFailureListener extends RestClient.FailureListener {
private volatile Set<HttpHost> httpHosts = new HashSet<>();
@Override
public void onFailure(Node node) {
httpHosts.add(node.getHost());
}
void assertCalled(List<Node> nodes) {
HttpHost[] hosts = new HttpHost[nodes.size()];
for (int i = 0; i < nodes.size(); i++) {
hosts[i] = nodes.get(i).getHost();
}
assertCalled(hosts);
}
void assertCalled(HttpHost... hosts) {
assertEquals(hosts.length, this.httpHosts.size());
assertThat(this.httpHosts, containsInAnyOrder(hosts));
this.httpHosts.clear();
}
void assertNotCalled() {
assertEquals(0, httpHosts.size());
}
}
| {
"content_hash": "c3e06a8fc19447e01784352353acc4bc",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 99,
"avg_line_length": 26.86046511627907,
"alnum_prop": 0.6744588744588744,
"repo_name": "GlenRSmith/elasticsearch",
"id": "1e92cab899aa919c105080a328d316be1bab1cef",
"size": "1954",
"binary": false,
"copies": "27",
"ref": "refs/heads/master",
"path": "client/rest/src/test/java/org/elasticsearch/client/HostsTrackingFailureListener.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ANTLR",
"bytes": "11082"
},
{
"name": "Batchfile",
"bytes": "11057"
},
{
"name": "Emacs Lisp",
"bytes": "3341"
},
{
"name": "FreeMarker",
"bytes": "45"
},
{
"name": "Groovy",
"bytes": "337461"
},
{
"name": "HTML",
"bytes": "2186"
},
{
"name": "Java",
"bytes": "43224931"
},
{
"name": "Perl",
"bytes": "11756"
},
{
"name": "Python",
"bytes": "19852"
},
{
"name": "Shell",
"bytes": "99571"
}
],
"symlink_target": ""
} |
package org.drools.lang.api.impl;
import org.drools.lang.api.*;
import org.drools.lang.descr.BindingDescr;
import org.drools.lang.descr.ExprConstraintDescr;
import org.drools.lang.descr.PatternDescr;
/**
* A descr builder implementation for Patterns
*/
public class PatternDescrBuilderImpl<P extends DescrBuilder< ?, ? >> extends BaseDescrBuilderImpl<P, PatternDescr>
implements
PatternDescrBuilder<P> {
protected PatternDescrBuilderImpl(P parent) {
this( parent,
null );
}
protected PatternDescrBuilderImpl(P parent,
String type) {
super( parent, new PatternDescr( type ) );
this.parent = parent;
}
public PatternDescrBuilder<P> id( String id,
boolean isUnification ) {
descr.setIdentifier( id );
descr.setUnification( isUnification );
return this;
}
public PatternDescrBuilder<P> type( String type ) {
descr.setObjectType( type );
return this;
}
public PatternDescrBuilder<P> isQuery( boolean query ) {
descr.setQuery( query );
return this;
}
public PatternDescrBuilder<P> constraint( String constraint ) {
ExprConstraintDescr constr = new ExprConstraintDescr( constraint );
constr.setType( ExprConstraintDescr.Type.NAMED );
constr.setPosition( descr.getConstraint().getDescrs().size() );
descr.addConstraint( constr );
return this;
}
public PatternDescrBuilder<P> constraint( String constraint,
boolean positional ) {
ExprConstraintDescr constr = new ExprConstraintDescr( constraint );
constr.setType( positional ? ExprConstraintDescr.Type.POSITIONAL : ExprConstraintDescr.Type.NAMED );
constr.setPosition( descr.getConstraint().getDescrs().size() );
descr.addConstraint( constr );
return this;
}
public PatternDescrBuilder<P> bind( String var,
String target,
boolean isUnification ) {
descr.addConstraint( new BindingDescr( var,
target,
isUnification ) );
return this;
}
public SourceDescrBuilder<PatternDescrBuilder<P>> from() {
return new SourceDescrBuilderImpl<PatternDescrBuilder<P>>( this );
}
public BehaviorDescrBuilder<PatternDescrBuilder<P>> behavior() {
return new BehaviorDescrBuilderImpl<PatternDescrBuilder<P>>( this );
}
public AnnotationDescrBuilder<PatternDescrBuilder<P>> newAnnotation(String name) {
AnnotationDescrBuilder<PatternDescrBuilder<P>> annotation = new AnnotationDescrBuilderImpl<PatternDescrBuilder<P>>( this, name );
descr.addAnnotation( annotation.getDescr() );
return annotation;
}
}
| {
"content_hash": "9af3a52ef3a8a88486559ccfa543aec4",
"timestamp": "",
"source": "github",
"line_count": 84,
"max_line_length": 137,
"avg_line_length": 35.23809523809524,
"alnum_prop": 0.6226351351351351,
"repo_name": "mswiderski/drools",
"id": "8f14fc074ca3b4b097ff74de78e18cf03be290f1",
"size": "3553",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "drools-compiler/src/main/java/org/drools/lang/api/impl/PatternDescrBuilderImpl.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "1412"
},
{
"name": "Java",
"bytes": "19438218"
},
{
"name": "Python",
"bytes": "4529"
},
{
"name": "Ruby",
"bytes": "491"
},
{
"name": "Shell",
"bytes": "1823"
},
{
"name": "Standard ML",
"bytes": "53904"
},
{
"name": "XSLT",
"bytes": "24302"
}
],
"symlink_target": ""
} |
package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
func newOrdersCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "orders",
Short: "Get pending orders for an account",
Long: `Get pending orders for an account`,
RunE: ordersCmdFunc,
SilenceUsage: true,
}
return cmd
}
func ordersCmdFunc(cmd *cobra.Command, args []string) error {
output, err := brokrRunner.GetOrders()
if err != nil {
return err
}
fmt.Println(output)
return nil
}
| {
"content_hash": "1db9799a798b54f4aefa2757cf05581b",
"timestamp": "",
"source": "github",
"line_count": 29,
"max_line_length": 61,
"avg_line_length": 17.06896551724138,
"alnum_prop": 0.6363636363636364,
"repo_name": "calvn/brokr",
"id": "7d8297dee4b4c50977b81f976dcc577972c01209",
"size": "1121",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "cmd/orders.go",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Go",
"bytes": "38090"
},
{
"name": "Makefile",
"bytes": "1639"
}
],
"symlink_target": ""
} |
package readers_test
import (
"fmt"
"logradile/doppler/internal/readers"
"logradile/internal/end2end"
"net"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = Describe("UDP", func() {
var (
mockPacketWriter *mockPacketWriter
port uint16
udp *readers.UDP
conn net.Conn
expectedData []byte
)
var connectToUDP = func() net.Conn {
conn, err := net.Dial("udp4", fmt.Sprintf("localhost:%d", port))
Expect(err).ToNot(HaveOccurred())
return conn
}
BeforeEach(func() {
mockPacketWriter = newMockPacketWriter()
port = uint16(end2end.AvailablePort())
udp = readers.NewUDP(port, mockPacketWriter)
conn = connectToUDP()
expectedData = []byte("some-data")
end2end.KeepEmitting(expectedData, conn)
go udp.Start()
})
AfterEach(func() {
conn.Close()
udp.Close()
})
Context("connection is open", func() {
It("writes each packet to the the given writer", func() {
f := func() []byte {
select {
case value := <-mockPacketWriter.SetInput.Arg0:
return *(*[]byte)(value)
default:
return nil
}
}
Eventually(f).Should(Equal(expectedData))
})
})
})
| {
"content_hash": "a4f6878b56f21167d225bdbb4bb66501",
"timestamp": "",
"source": "github",
"line_count": 60,
"max_line_length": 66,
"avg_line_length": 19.35,
"alnum_prop": 0.6416881998277347,
"repo_name": "apoydence/logradile",
"id": "a361ae683dfb9744e09052911f65d8b5b44e5949",
"size": "1179",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/logradile/doppler/internal/readers/udp_test.go",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Go",
"bytes": "58078"
},
{
"name": "Protocol Buffer",
"bytes": "206"
},
{
"name": "Shell",
"bytes": "3783"
}
],
"symlink_target": ""
} |
#ifndef BlynkApiMbed_h
#define BlynkApiMbed_h
#include <Blynk/BlynkApi.h>
#include <mbed.h>
template<class Proto>
BLYNK_FORCE_INLINE
void BlynkApi<Proto>::sendInfo()
{
static const char profile[] BLYNK_PROGMEM = "blnkinf\0"
BLYNK_PARAM_KV("ver" , BLYNK_VERSION)
BLYNK_PARAM_KV("h-beat" , BLYNK_TOSTRING(BLYNK_HEARTBEAT))
BLYNK_PARAM_KV("buff-in", BLYNK_TOSTRING(BLYNK_MAX_READBYTES))
#ifdef BLYNK_INFO_DEVICE
BLYNK_PARAM_KV("dev" , BLYNK_INFO_DEVICE)
#endif
#ifdef BLYNK_INFO_CPU
BLYNK_PARAM_KV("cpu" , BLYNK_INFO_CPU)
#endif
#ifdef BLYNK_INFO_CONNECTION
BLYNK_PARAM_KV("con" , BLYNK_INFO_CONNECTION)
#endif
#ifdef BLYNK_FIRMWARE_TYPE
BLYNK_PARAM_KV("fw-type", BLYNK_FIRMWARE_TYPE)
#endif
#ifdef BLYNK_FIRMWARE_VERSION
BLYNK_PARAM_KV("fw" , BLYNK_FIRMWARE_VERSION)
#endif
BLYNK_PARAM_KV("build" , __DATE__ " " __TIME__)
"\0"
;
const size_t profile_len = sizeof(profile)-8-2;
char mem_dyn[64];
BlynkParam profile_dyn(mem_dyn, 0, sizeof(mem_dyn));
#ifdef BLYNK_TEMPLATE_ID
{
const char* tmpl = BLYNK_TEMPLATE_ID;
if (tmpl && strlen(tmpl)) {
profile_dyn.add_key("tmpl", tmpl);
}
}
#endif
#ifdef BLYNK_HAS_PROGMEM
char mem[profile_len];
memcpy_P(mem, profile+8, profile_len);
static_cast<Proto*>(this)->sendCmd(BLYNK_CMD_INTERNAL, 0, mem, profile_len, profile_dyn.getBuffer(), profile_dyn.getLength());
#else
static_cast<Proto*>(this)->sendCmd(BLYNK_CMD_INTERNAL, 0, profile+8, profile_len, profile_dyn.getBuffer(), profile_dyn.getLength());
#endif
return;
}
// Check if analog pins can be referenced by name on this device
#if defined(analogInputToDigitalPin)
#define BLYNK_DECODE_PIN(it) (((it).asStr()[0] == 'A') ? analogInputToDigitalPin(atoi((it).asStr()+1)) : (it).asInt())
#else
#define BLYNK_DECODE_PIN(it) ((it).asInt())
#if defined(BLYNK_DEBUG_ALL)
#pragma message "analogInputToDigitalPin not defined"
#endif
#endif
template<class Proto>
BLYNK_FORCE_INLINE
void BlynkApi<Proto>::processCmd(const void* buff, size_t len)
{
BlynkParam param((void*)buff, len);
BlynkParam::iterator it = param.begin();
if (it >= param.end())
return;
const char* cmd = it.asStr();
uint16_t cmd16;
memcpy(&cmd16, cmd, sizeof(cmd16));
if (++it >= param.end())
return;
const uint8_t pin = BLYNK_DECODE_PIN(it);
switch(cmd16) {
#ifndef BLYNK_NO_BUILTIN
case BLYNK_HW_PM: {
while (it < param.end()) {
const uint8_t pin = BLYNK_DECODE_PIN(it);
++it;
if (!strcmp(it.asStr(), "in")) {
//pinMode(pin, INPUT);
} else if (!strcmp(it.asStr(), "out") || !strcmp(it.asStr(), "pwm")) {
//pinMode(pin, OUTPUT);
} else {
#ifdef BLYNK_DEBUG
BLYNK_LOG4(BLYNK_F("Invalid pin "), pin, BLYNK_F(" mode "), it.asStr());
#endif
}
++it;
}
} break;
case BLYNK_HW_DR: {
DigitalIn p((PinName)pin);
char mem[16];
BlynkParam rsp(mem, 0, sizeof(mem));
rsp.add("dw");
rsp.add(pin);
rsp.add(int(p));
static_cast<Proto*>(this)->sendCmd(BLYNK_CMD_HARDWARE, 0, rsp.getBuffer(), rsp.getLength()-1);
} break;
case BLYNK_HW_DW: {
// Should be 1 parameter (value)
if (++it >= param.end())
return;
//BLYNK_LOG("digitalWrite %d -> %d", pin, it.asInt());
DigitalOut p((PinName)pin);
p = it.asInt() ? 1 : 0;
} break;
case BLYNK_HW_AR: {
AnalogIn p((PinName)pin);
char mem[16];
BlynkParam rsp(mem, 0, sizeof(mem));
rsp.add("aw");
rsp.add(pin);
rsp.add(int(p.read() * 1024));
static_cast<Proto*>(this)->sendCmd(BLYNK_CMD_HARDWARE, 0, rsp.getBuffer(), rsp.getLength()-1);
} break;
case BLYNK_HW_AW: {
// TODO: Not supported yet
} break;
#endif
case BLYNK_HW_VR: {
callReadHandler(pin);
} break;
case BLYNK_HW_VW: {
++it;
char* start = (char*)it.asStr();
BlynkParam param2(start, len - (start - (char*)buff));
callWriteHandler(pin, param2);
} break;
default:
BLYNK_LOG2(BLYNK_F("Invalid HW cmd: "), cmd);
static_cast<Proto*>(this)->sendCmd(BLYNK_CMD_RESPONSE, static_cast<Proto*>(this)->msgIdOutOverride, NULL, BLYNK_ILLEGAL_COMMAND);
}
}
#endif
| {
"content_hash": "21461faca7f00aa22d7816686f3c552f",
"timestamp": "",
"source": "github",
"line_count": 154,
"max_line_length": 137,
"avg_line_length": 29.207792207792206,
"alnum_prop": 0.5842596709648733,
"repo_name": "blynkkk/blynk-library",
"id": "4baf912edb5c3ba3692dcdd4941ab2f2f7be18d8",
"size": "4731",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "src/BlynkApiMbed.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "2291"
},
{
"name": "C",
"bytes": "64858"
},
{
"name": "C++",
"bytes": "310837"
},
{
"name": "Java",
"bytes": "15310"
},
{
"name": "Makefile",
"bytes": "3582"
},
{
"name": "Python",
"bytes": "56688"
},
{
"name": "Shell",
"bytes": "6799"
}
],
"symlink_target": ""
} |
<?php
/**
* Generated 2019-11-17T18:31:00+00:00 16.0.19506.12022
*/
namespace Office365\SharePoint\Publishing;
use Office365\Runtime\ClientObject;
class PointPublishingTenantManager extends ClientObject
{
} | {
"content_hash": "e78991573679ab2df01f50d5884b8ffc",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 55,
"avg_line_length": 16.307692307692307,
"alnum_prop": 0.7783018867924528,
"repo_name": "vgrem/phpSPO",
"id": "57ded224e734d85e320714b036a7f9a4cdabee8d",
"size": "212",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/SharePoint/Publishing/PointPublishingTenantManager.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "PHP",
"bytes": "1972093"
}
],
"symlink_target": ""
} |
ACCEPTED
#### According to
The Catalogue of Life, 3rd January 2011
#### Published in
Mycol. helv. 7(1): 143 (1995)
#### Original name
Sphaeria picacea Cooke & Ellis, 1878
### Remarks
null | {
"content_hash": "49700ffc7fd6d38c9027e138404b57cf",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 39,
"avg_line_length": 14.692307692307692,
"alnum_prop": 0.6910994764397905,
"repo_name": "mdoering/backbone",
"id": "1e863bf87ce0ea82d08ae21df05bff639a346544",
"size": "262",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Fungi/Ascomycota/Sordariomycetes/Xylariales/Xylariaceae/Barrmaelia/Barrmaelia picacea/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
ACCEPTED
#### According to
Index Fungorum
#### Published in
null
#### Original name
Rhamphoria obliqua var. microspora Maire
### Remarks
null | {
"content_hash": "3c7f7fb79973468dbf37cb797c6a5247",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 40,
"avg_line_length": 11.153846153846153,
"alnum_prop": 0.7241379310344828,
"repo_name": "mdoering/backbone",
"id": "e4f87beaa8ed133667edc1f7a5789aebf6566509",
"size": "209",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Fungi/Ascomycota/Sordariomycetes/Sordariales/Annulatascaceae/Rhamphoria/Rhamphoria obliqua/Rhamphoria obliqua microspora/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.