text
stringlengths 2
1.04M
| meta
dict |
---|---|
html {
background-attachment: fixed;
background-color: $i18n{colorBackground};
background-image: url(chrome://theme/IDR_THEME_NTP_BACKGROUND?$i18n{themeId});
background-position: $i18n{backgroundBarDetached};
background-repeat: $i18n{backgroundTiling};
}
html[bookmarkbarattached='true'] {
background-position: $i18n{backgroundBarAttached};
}
body {
color: $i18n{colorTextRgba};
height: 100%;
overflow: auto;
}
[is='action-link'],
[is='action-link']:active {
color: rgb($i18n{colorLink});
}
#attribution {
color: $i18n{colorTextLight};
display: $i18n{displayAttribution};
left: $i18n{leftAlignAttribution};
right: $i18n{rightAlignAttribution};
text-align: $i18n{textAlignAttribution};
}
#attribution-img {
content: url(chrome://theme/IDR_THEME_NTP_ATTRIBUTION?$i18n{themeId});
}
.page-switcher {
color: rgba($i18n{colorText}, 0.5);
}
.page-switcher:hover,
.page-switcher:focus,
.page-switcher.drag-target {
background-color: rgba($i18n{colorText}, 0.06);
}
/* Only change the background to a gradient when a promo is showing. */
.showing-login-area #page-switcher-end:hover,
.showing-login-area #page-switcher-end:focus,
.showing-login-area #page-switcher-end.drag-target {
background: linear-gradient(
rgba($i18n{colorText}, 0) 0,
rgba($i18n{colorText}, .01) 60px,
rgba($i18n{colorText}, .06) 183px);
}
.tile-page-scrollbar {
background-color: $i18n{colorTextLight};
}
/* Footer *********************************************************************/
#footer-border {
background: linear-gradient(to left,
rgba($i18n{colorSectionBorder}, 0.2),
rgba($i18n{colorSectionBorder}, 0.3) 20%,
rgba($i18n{colorSectionBorder}, 0.3) 80%,
rgba($i18n{colorSectionBorder}, 0.2));
}
.dot input:focus {
background-color: $i18n{colorBackground};
}
.filler .thumbnail {
border-color: $i18n{colorBackground};
}
| {
"content_hash": "21cedc9e954e602384871bff7761c73e",
"timestamp": "",
"source": "github",
"line_count": 78,
"max_line_length": 80,
"avg_line_length": 24.294871794871796,
"alnum_prop": 0.6765171503957783,
"repo_name": "endlessm/chromium-browser",
"id": "48aea9313eee8700e842ca6d9749cac67ff55b4f",
"size": "2062",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "chrome/browser/resources/ntp4/new_tab_theme.css",
"mode": "33188",
"license": "bsd-3-clause",
"language": [],
"symlink_target": ""
} |
// 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.
/**
* DescribeImageAttributeResponseTypeChoice_type0.java
*
* This file was auto-generated from WSDL
* by the Apache Axis2 version: 1.5.6 Built on : Aug 30, 2011 (10:01:01 CEST)
*/
package com.amazon.ec2;
/**
* DescribeImageAttributeResponseTypeChoice_type0 bean class
*/
public class DescribeImageAttributeResponseTypeChoice_type0
implements org.apache.axis2.databinding.ADBBean{
/* This type was generated from the piece of schema that had
name = DescribeImageAttributeResponseTypeChoice_type0
Namespace URI = http://ec2.amazonaws.com/doc/2012-08-15/
Namespace Prefix = ns1
*/
private static java.lang.String generatePrefix(java.lang.String namespace) {
if(namespace.equals("http://ec2.amazonaws.com/doc/2012-08-15/")){
return "ns1";
}
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
}
/** Whenever a new property is set ensure all others are unset
* There can be only one choice and the last one wins
*/
private void clearAllSettingTrackers() {
localLaunchPermissionTracker = false;
localProductCodesTracker = false;
localKernelTracker = false;
localRamdiskTracker = false;
localDescriptionTracker = false;
localBlockDeviceMappingTracker = false;
}
/**
* field for LaunchPermission
*/
protected com.amazon.ec2.LaunchPermissionListType localLaunchPermission ;
/* This tracker boolean wil be used to detect whether the user called the set method
* for this attribute. It will be used to determine whether to include this field
* in the serialized XML
*/
protected boolean localLaunchPermissionTracker = false ;
/**
* Auto generated getter method
* @return com.amazon.ec2.LaunchPermissionListType
*/
public com.amazon.ec2.LaunchPermissionListType getLaunchPermission(){
return localLaunchPermission;
}
/**
* Auto generated setter method
* @param param LaunchPermission
*/
public void setLaunchPermission(com.amazon.ec2.LaunchPermissionListType param){
clearAllSettingTrackers();
if (param != null){
//update the setting tracker
localLaunchPermissionTracker = true;
} else {
localLaunchPermissionTracker = false;
}
this.localLaunchPermission=param;
}
/**
* field for ProductCodes
*/
protected com.amazon.ec2.ProductCodesSetType localProductCodes ;
/* This tracker boolean wil be used to detect whether the user called the set method
* for this attribute. It will be used to determine whether to include this field
* in the serialized XML
*/
protected boolean localProductCodesTracker = false ;
/**
* Auto generated getter method
* @return com.amazon.ec2.ProductCodesSetType
*/
public com.amazon.ec2.ProductCodesSetType getProductCodes(){
return localProductCodes;
}
/**
* Auto generated setter method
* @param param ProductCodes
*/
public void setProductCodes(com.amazon.ec2.ProductCodesSetType param){
clearAllSettingTrackers();
if (param != null){
//update the setting tracker
localProductCodesTracker = true;
} else {
localProductCodesTracker = false;
}
this.localProductCodes=param;
}
/**
* field for Kernel
*/
protected com.amazon.ec2.NullableAttributeValueType localKernel ;
/* This tracker boolean wil be used to detect whether the user called the set method
* for this attribute. It will be used to determine whether to include this field
* in the serialized XML
*/
protected boolean localKernelTracker = false ;
/**
* Auto generated getter method
* @return com.amazon.ec2.NullableAttributeValueType
*/
public com.amazon.ec2.NullableAttributeValueType getKernel(){
return localKernel;
}
/**
* Auto generated setter method
* @param param Kernel
*/
public void setKernel(com.amazon.ec2.NullableAttributeValueType param){
clearAllSettingTrackers();
if (param != null){
//update the setting tracker
localKernelTracker = true;
} else {
localKernelTracker = false;
}
this.localKernel=param;
}
/**
* field for Ramdisk
*/
protected com.amazon.ec2.NullableAttributeValueType localRamdisk ;
/* This tracker boolean wil be used to detect whether the user called the set method
* for this attribute. It will be used to determine whether to include this field
* in the serialized XML
*/
protected boolean localRamdiskTracker = false ;
/**
* Auto generated getter method
* @return com.amazon.ec2.NullableAttributeValueType
*/
public com.amazon.ec2.NullableAttributeValueType getRamdisk(){
return localRamdisk;
}
/**
* Auto generated setter method
* @param param Ramdisk
*/
public void setRamdisk(com.amazon.ec2.NullableAttributeValueType param){
clearAllSettingTrackers();
if (param != null){
//update the setting tracker
localRamdiskTracker = true;
} else {
localRamdiskTracker = false;
}
this.localRamdisk=param;
}
/**
* field for Description
*/
protected com.amazon.ec2.NullableAttributeValueType localDescription ;
/* This tracker boolean wil be used to detect whether the user called the set method
* for this attribute. It will be used to determine whether to include this field
* in the serialized XML
*/
protected boolean localDescriptionTracker = false ;
/**
* Auto generated getter method
* @return com.amazon.ec2.NullableAttributeValueType
*/
public com.amazon.ec2.NullableAttributeValueType getDescription(){
return localDescription;
}
/**
* Auto generated setter method
* @param param Description
*/
public void setDescription(com.amazon.ec2.NullableAttributeValueType param){
clearAllSettingTrackers();
if (param != null){
//update the setting tracker
localDescriptionTracker = true;
} else {
localDescriptionTracker = false;
}
this.localDescription=param;
}
/**
* field for BlockDeviceMapping
*/
protected com.amazon.ec2.BlockDeviceMappingType localBlockDeviceMapping ;
/* This tracker boolean wil be used to detect whether the user called the set method
* for this attribute. It will be used to determine whether to include this field
* in the serialized XML
*/
protected boolean localBlockDeviceMappingTracker = false ;
/**
* Auto generated getter method
* @return com.amazon.ec2.BlockDeviceMappingType
*/
public com.amazon.ec2.BlockDeviceMappingType getBlockDeviceMapping(){
return localBlockDeviceMapping;
}
/**
* Auto generated setter method
* @param param BlockDeviceMapping
*/
public void setBlockDeviceMapping(com.amazon.ec2.BlockDeviceMappingType param){
clearAllSettingTrackers();
if (param != null){
//update the setting tracker
localBlockDeviceMappingTracker = true;
} else {
localBlockDeviceMappingTracker = false;
}
this.localBlockDeviceMapping=param;
}
/**
* isReaderMTOMAware
* @return true if the reader supports MTOM
*/
public static boolean isReaderMTOMAware(javax.xml.stream.XMLStreamReader reader) {
boolean isReaderMTOMAware = false;
try{
isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
}catch(java.lang.IllegalArgumentException e){
isReaderMTOMAware = false;
}
return isReaderMTOMAware;
}
/**
*
* @param parentQName
* @param factory
* @return org.apache.axiom.om.OMElement
*/
public org.apache.axiom.om.OMElement getOMElement (
final javax.xml.namespace.QName parentQName,
final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException{
org.apache.axiom.om.OMDataSource dataSource =
new org.apache.axis2.databinding.ADBDataSource(this,parentQName){
public void serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
DescribeImageAttributeResponseTypeChoice_type0.this.serialize(parentQName,factory,xmlWriter);
}
};
return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
parentQName,factory,dataSource);
}
public void serialize(final javax.xml.namespace.QName parentQName,
final org.apache.axiom.om.OMFactory factory,
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
serialize(parentQName,factory,xmlWriter,false);
}
public void serialize(final javax.xml.namespace.QName parentQName,
final org.apache.axiom.om.OMFactory factory,
org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter,
boolean serializeType)
throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{
java.lang.String prefix = null;
java.lang.String namespace = null;
if (serializeType){
java.lang.String namespacePrefix = registerPrefix(xmlWriter,"http://ec2.amazonaws.com/doc/2012-08-15/");
if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
namespacePrefix+":DescribeImageAttributeResponseTypeChoice_type0",
xmlWriter);
} else {
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
"DescribeImageAttributeResponseTypeChoice_type0",
xmlWriter);
}
}
if (localLaunchPermissionTracker){
if (localLaunchPermission==null){
throw new org.apache.axis2.databinding.ADBException("launchPermission cannot be null!!");
}
localLaunchPermission.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","launchPermission"),
factory,xmlWriter);
} if (localProductCodesTracker){
if (localProductCodes==null){
throw new org.apache.axis2.databinding.ADBException("productCodes cannot be null!!");
}
localProductCodes.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","productCodes"),
factory,xmlWriter);
} if (localKernelTracker){
if (localKernel==null){
throw new org.apache.axis2.databinding.ADBException("kernel cannot be null!!");
}
localKernel.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","kernel"),
factory,xmlWriter);
} if (localRamdiskTracker){
if (localRamdisk==null){
throw new org.apache.axis2.databinding.ADBException("ramdisk cannot be null!!");
}
localRamdisk.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","ramdisk"),
factory,xmlWriter);
} if (localDescriptionTracker){
if (localDescription==null){
throw new org.apache.axis2.databinding.ADBException("description cannot be null!!");
}
localDescription.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","description"),
factory,xmlWriter);
} if (localBlockDeviceMappingTracker){
if (localBlockDeviceMapping==null){
throw new org.apache.axis2.databinding.ADBException("blockDeviceMapping cannot be null!!");
}
localBlockDeviceMapping.serialize(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","blockDeviceMapping"),
factory,xmlWriter);
}
}
/**
* Util method to write an attribute with the ns prefix
*/
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
if (xmlWriter.getPrefix(namespace) == null) {
xmlWriter.writeNamespace(prefix, namespace);
xmlWriter.setPrefix(prefix, namespace);
}
xmlWriter.writeAttribute(namespace,attName,attValue);
}
/**
* Util method to write an attribute without the ns prefix
*/
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
if (namespace.equals(""))
{
xmlWriter.writeAttribute(attName,attValue);
}
else
{
registerPrefix(xmlWriter, namespace);
xmlWriter.writeAttribute(namespace,attName,attValue);
}
}
/**
* Util method to write an attribute without the ns prefix
*/
private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
java.lang.String attributeNamespace = qname.getNamespaceURI();
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
if (attributePrefix == null) {
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
}
java.lang.String attributeValue;
if (attributePrefix.trim().length() > 0) {
attributeValue = attributePrefix + ":" + qname.getLocalPart();
} else {
attributeValue = qname.getLocalPart();
}
if (namespace.equals("")) {
xmlWriter.writeAttribute(attName, attributeValue);
} else {
registerPrefix(xmlWriter, namespace);
xmlWriter.writeAttribute(namespace, attName, attributeValue);
}
}
/**
* method to handle Qnames
*/
private void writeQName(javax.xml.namespace.QName qname,
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
java.lang.String namespaceURI = qname.getNamespaceURI();
if (namespaceURI != null) {
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
if (prefix == null) {
prefix = generatePrefix(namespaceURI);
xmlWriter.writeNamespace(prefix, namespaceURI);
xmlWriter.setPrefix(prefix,namespaceURI);
}
if (prefix.trim().length() > 0){
xmlWriter.writeCharacters(prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
} else {
// i.e this is the default namespace
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
}
} else {
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname));
}
}
private void writeQNames(javax.xml.namespace.QName[] qnames,
javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
if (qnames != null) {
// we have to store this data until last moment since it is not possible to write any
// namespace data after writing the charactor data
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
java.lang.String namespaceURI = null;
java.lang.String prefix = null;
for (int i = 0; i < qnames.length; i++) {
if (i > 0) {
stringToWrite.append(" ");
}
namespaceURI = qnames[i].getNamespaceURI();
if (namespaceURI != null) {
prefix = xmlWriter.getPrefix(namespaceURI);
if ((prefix == null) || (prefix.length() == 0)) {
prefix = generatePrefix(namespaceURI);
xmlWriter.writeNamespace(prefix, namespaceURI);
xmlWriter.setPrefix(prefix,namespaceURI);
}
if (prefix.trim().length() > 0){
stringToWrite.append(prefix).append(":").append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
} else {
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
}
} else {
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i]));
}
}
xmlWriter.writeCharacters(stringToWrite.toString());
}
}
/**
* Register a namespace prefix
*/
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException {
java.lang.String prefix = xmlWriter.getPrefix(namespace);
if (prefix == null) {
prefix = generatePrefix(namespace);
while (xmlWriter.getNamespaceContext().getNamespaceURI(prefix) != null) {
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
}
xmlWriter.writeNamespace(prefix, namespace);
xmlWriter.setPrefix(prefix, namespace);
}
return prefix;
}
/**
* databinding method to get an XML representation of this object
*
*/
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
throws org.apache.axis2.databinding.ADBException{
java.util.ArrayList elementList = new java.util.ArrayList();
java.util.ArrayList attribList = new java.util.ArrayList();
if (localLaunchPermissionTracker){
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
"launchPermission"));
if (localLaunchPermission==null){
throw new org.apache.axis2.databinding.ADBException("launchPermission cannot be null!!");
}
elementList.add(localLaunchPermission);
} if (localProductCodesTracker){
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
"productCodes"));
if (localProductCodes==null){
throw new org.apache.axis2.databinding.ADBException("productCodes cannot be null!!");
}
elementList.add(localProductCodes);
} if (localKernelTracker){
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
"kernel"));
if (localKernel==null){
throw new org.apache.axis2.databinding.ADBException("kernel cannot be null!!");
}
elementList.add(localKernel);
} if (localRamdiskTracker){
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
"ramdisk"));
if (localRamdisk==null){
throw new org.apache.axis2.databinding.ADBException("ramdisk cannot be null!!");
}
elementList.add(localRamdisk);
} if (localDescriptionTracker){
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
"description"));
if (localDescription==null){
throw new org.apache.axis2.databinding.ADBException("description cannot be null!!");
}
elementList.add(localDescription);
} if (localBlockDeviceMappingTracker){
elementList.add(new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/",
"blockDeviceMapping"));
if (localBlockDeviceMapping==null){
throw new org.apache.axis2.databinding.ADBException("blockDeviceMapping cannot be null!!");
}
elementList.add(localBlockDeviceMapping);
}
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
}
/**
* Factory class that keeps the parse method
*/
public static class Factory{
/**
* static method to create the object
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
* Postcondition: If this object is an element, the reader is positioned at its end element
* If this object is a complex type, the reader is positioned at the end element of its outer element
*/
public static DescribeImageAttributeResponseTypeChoice_type0 parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
DescribeImageAttributeResponseTypeChoice_type0 object =
new DescribeImageAttributeResponseTypeChoice_type0();
int event;
java.lang.String nillableValue = null;
java.lang.String prefix ="";
java.lang.String namespaceuri ="";
try {
while (!reader.isStartElement() && !reader.isEndElement())
reader.next();
// Note all attributes that were handled. Used to differ normal attributes
// from anyAttributes.
java.util.Vector handledAttributes = new java.util.Vector();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","launchPermission").equals(reader.getName())){
object.setLaunchPermission(com.amazon.ec2.LaunchPermissionListType.Factory.parse(reader));
reader.next();
} // End of if for expected property start element
else
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","productCodes").equals(reader.getName())){
object.setProductCodes(com.amazon.ec2.ProductCodesSetType.Factory.parse(reader));
reader.next();
} // End of if for expected property start element
else
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","kernel").equals(reader.getName())){
object.setKernel(com.amazon.ec2.NullableAttributeValueType.Factory.parse(reader));
reader.next();
} // End of if for expected property start element
else
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","ramdisk").equals(reader.getName())){
object.setRamdisk(com.amazon.ec2.NullableAttributeValueType.Factory.parse(reader));
reader.next();
} // End of if for expected property start element
else
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","description").equals(reader.getName())){
object.setDescription(com.amazon.ec2.NullableAttributeValueType.Factory.parse(reader));
reader.next();
} // End of if for expected property start element
else
if (reader.isStartElement() && new javax.xml.namespace.QName("http://ec2.amazonaws.com/doc/2012-08-15/","blockDeviceMapping").equals(reader.getName())){
object.setBlockDeviceMapping(com.amazon.ec2.BlockDeviceMappingType.Factory.parse(reader));
reader.next();
} // End of if for expected property start element
} catch (javax.xml.stream.XMLStreamException e) {
throw new java.lang.Exception(e);
}
return object;
}
}//end of factory class
}
| {
"content_hash": "2bff9eb25be4e76534532a7e05df319d",
"timestamp": "",
"source": "github",
"line_count": 791,
"max_line_length": 188,
"avg_line_length": 49.35018963337547,
"alnum_prop": 0.4248386105133723,
"repo_name": "mufaddalq/cloudstack-datera-driver",
"id": "5d45e1b4da92478ed097c71849034f78dbed5d1d",
"size": "39036",
"binary": false,
"copies": "1",
"ref": "refs/heads/4.2",
"path": "awsapi/src/com/amazon/ec2/DescribeImageAttributeResponseTypeChoice_type0.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ApacheConf",
"bytes": "250"
},
{
"name": "Batchfile",
"bytes": "6317"
},
{
"name": "CSS",
"bytes": "302008"
},
{
"name": "FreeMarker",
"bytes": "4917"
},
{
"name": "HTML",
"bytes": "38671"
},
{
"name": "Java",
"bytes": "79758943"
},
{
"name": "JavaScript",
"bytes": "4237188"
},
{
"name": "Perl",
"bytes": "1879"
},
{
"name": "Python",
"bytes": "5187499"
},
{
"name": "Shell",
"bytes": "803262"
}
],
"symlink_target": ""
} |
package io.opensec.six.oval.model.common;
/**
* A base class for all the concrete file behaviors.
*
* @author Akihito Nakamura, AIST
* @see <a href="http://oval.mitre.org/language/">OVAL Language</a>
*/
public abstract class AbstractFileBehaviors
extends AbstractBehaviors
{
/**
* The default recurseFileSystem: "all".
*/
public static final RecurseFileSystemEnumeration DEFAULT_RECURSE_FILE_SYSTEM =
RecurseFileSystemEnumeration.ALL;
private RecurseFileSystemEnumeration recurse_file_system;
//{optional, default="all"}
/**
* Constructor.
*/
public AbstractFileBehaviors()
{
}
/**
*/
public void setRecurseFileSystem(
final RecurseFileSystemEnumeration recurse_file_system
)
{
this.recurse_file_system = recurse_file_system;
}
public RecurseFileSystemEnumeration getRecurseFileSystem()
{
return recurse_file_system;
}
public static final RecurseFileSystemEnumeration recurseFileSystem(
final AbstractFileBehaviors obj
)
{
RecurseFileSystemEnumeration recurse_file_system = obj.getRecurseFileSystem();
return (recurse_file_system == null ? DEFAULT_RECURSE_FILE_SYSTEM : recurse_file_system);
}
//**************************************************************
// java.lang.Object
//**************************************************************
@Override
public int hashCode()
{
final int prime = 37;
int result = super.hashCode();
result = prime * result + recurseFileSystem( this ).hashCode();
return result;
}
@Override
public boolean equals(
final Object obj
)
{
if (!(obj instanceof AbstractFileBehaviors)) {
return false;
}
if (super.equals( obj )) {
AbstractFileBehaviors other = (AbstractFileBehaviors)obj;
if (recurseFileSystem( this ) == recurseFileSystem( other )) {
return true;
}
}
return false;
}
@Override
public String toString()
{
return super.toString()
+ ", recurse_file_system=" + getRecurseFileSystem()
;
}
}
// AbstractFileBehaviors
| {
"content_hash": "11adc4f9d9fb69d34c43c5d3fbd483ef",
"timestamp": "",
"source": "github",
"line_count": 111,
"max_line_length": 97,
"avg_line_length": 21.73873873873874,
"alnum_prop": 0.5499378367177787,
"repo_name": "nakamura5akihito/six-oval",
"id": "9f81a8e62491dff2d40c4a1c86a25b01031068c4",
"size": "3068",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/main/java/io/opensec/six/oval/model/common/AbstractFileBehaviors.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "HTML",
"bytes": "159336"
},
{
"name": "Java",
"bytes": "4315257"
},
{
"name": "XSLT",
"bytes": "66202"
}
],
"symlink_target": ""
} |
import requests
import json
from conf import appid, apikey, sender, receivers, content
url = 'https://api.bluehouselab.com/smscenter/v1.0/sendsms'
params = {
'sender' : sender,
'receivers' : receivers,
'content' : content,
}
headers = {'Content-type': 'application/json; charset=utf-8',}
r = requests.post(url, data=json.dumps(params),
auth=(appid, apikey), headers=headers)
print r.status_code, r.reason
if r.status_code == 200:
print r.json()
| {
"content_hash": "fd54fd192e4332bfb65aceffe18e1c30",
"timestamp": "",
"source": "github",
"line_count": 17,
"max_line_length": 62,
"avg_line_length": 28.647058823529413,
"alnum_prop": 0.6632443531827515,
"repo_name": "BlueHouseLab/sms-openapi",
"id": "1f3f7a2de8cba2a589cbf34d2f53fd51bba6e1d7",
"size": "533",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "python-requests/sendsms.py",
"mode": "33261",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "3575"
},
{
"name": "C#",
"bytes": "2181"
},
{
"name": "C++",
"bytes": "4165"
},
{
"name": "Java",
"bytes": "5863"
},
{
"name": "JavaScript",
"bytes": "1705"
},
{
"name": "PHP",
"bytes": "1448"
},
{
"name": "Python",
"bytes": "15062"
},
{
"name": "Ruby",
"bytes": "1196"
},
{
"name": "Shell",
"bytes": "7905"
}
],
"symlink_target": ""
} |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
<!-- Generated by Natural Docs, version 1.4 -->
<!-- http://www.naturaldocs.org -->
<!-- saved from url=(0026)http://www.naturaldocs.org -->
<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_query><div class=IEntry><span class=ISymbolPrefix>$</span><a href="../files/lib/db-mysql-php.html#Db_mysql.$query" target=_parent class=ISymbol>query</a>, <span class=IParent>Db_mysql</span></div></div><div class=SRResult id=SR_query_undcount><div class=IEntry><span class=ISymbolPrefix>$</span><a href="../files/lib/db-mysql-php.html#Db_mysql.$query_count" target=_parent class=ISymbol>query_count</a>, <span class=IParent>Db_mysql</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults", "HTML");
searchResults.Search();
--></script></div><script language=JavaScript><!--
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | {
"content_hash": "bea71f652cdeb201fd61df713be499b9",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 725,
"avg_line_length": 87.75,
"alnum_prop": 0.698005698005698,
"repo_name": "bsimser/ezrpg",
"id": "f3abed05c60a54c320630a5f00fe483ed3cc0990",
"size": "1755",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "Docs/search/VariablesQ.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "3112"
},
{
"name": "JavaScript",
"bytes": "147"
},
{
"name": "PHP",
"bytes": "1231200"
},
{
"name": "Smarty",
"bytes": "16427"
}
],
"symlink_target": ""
} |
xdescribe Spree::ReturnAuthorization, type: :model do
let(:default_warehouse) { ShipwireFactory::Warehouse.new.default }
let(:shipwire_product) { sw_product_factory.in_stock }
let(:return_item) { build(:return_item, inventory_unit: order.inventory_units.first) }
let(:return_items) { [return_item] }
let(:return_authorization) { build(:return_authorization, order: order, return_items: return_items) }
let(:product) { create(:product, sku: shipwire_product['sku']) }
let(:variant) do
product.master.tap { |master| master.update_attributes(shipwire_id: shipwire_product['id']) }
end
before do
Spree::ShipwireConfig.default_warehouse_id = default_warehouse['id']
end
describe "order in pending state",
vcr: { cassette_name: 'spree/return_authorization_not_returnable' } do
let(:order) do
create(:shipped_order,
:pending_on_shipwire,
line_items_attributes: [product: variant.product])
end
# Only orders that are processed and not cancelled can be returned
it 'does not accept the return' do
allow(return_authorization).to receive(:process_shipwire_return!).and_call_original
return_authorization.save
expect(return_authorization).to have_received(:process_shipwire_return!)
expect(return_authorization.errors.messages).to have_key(:shipwire_unprocessed)
expect(return_authorization.errors.messages[:shipwire_unprocessed].first).to eq("Only orders that are \"processed\" and not \"cancelled\" can be returned")
end
end
context "order marked as shipped on shipwire",
vcr: { cassette_name: 'spree/return_authorization_create_entity_single_return_item' } do
let(:order) do
create(:shipped_order,
:shipped_on_shipwire,
line_items_attributes: [product: variant.product])
end
it 'post to shipwire' do
allow(return_authorization).to receive(:process_shipwire_return!).and_call_original
return_authorization.save
expect(return_authorization).to have_received(:process_shipwire_return!)
expect(return_authorization.errors.messages).to be_empty
expect(return_authorization.shipwire_id).not_to be_nil
end
context 'and a return was already reported',
vcr: { cassette_name: 'spree/return_authorization_entity_exists' } do
before do
Shipwire::Returns.new.create(return_authorization.to_shipwire)
end
it 'add an error message' do
return_authorization.save
expect(return_authorization.errors.messages).to have_key(:shipwire_already_reported)
expect(return_authorization.errors.messages[:shipwire_already_reported].first).to eq('You have already reported this issue.')
end
end
context 'when generic errors occurs' do
context 'when timeout occurs',
vcr: { cassette_name: 'spree/return_authorization_generic_error' } do
let(:request) { Shipwire::Request.new }
before do
# Create the order on shipwire before stub a timeout error
order
allow(request).to receive(:build_connection)
allow(Shipwire::Request)
.to receive(:new)
.with(hash_including(method: :post))
.and_return(request)
allow(Shipwire::Request)
.to receive(:new)
.with(hash_including(method: :get))
.and_call_original
allow(request).to receive(:make_request).and_raise(Faraday::TimeoutError)
end
it 'add a timeout error' do
return_authorization.save
expect(return_authorization.errors.messages).to have_key(:shipwire_timeout)
end
end
end
context "with multiple return items",
vcr: { cassette_name: 'spree/return_authorization_create_entity_multiple_return_item' } do
let(:shipwire_product2) { sw_product_factory.in_stock(sku: 'product2-in') }
let(:return_item2) { build(:return_item, inventory_unit: order.inventory_units.second) }
let(:return_items) { [return_item, return_item2] }
let(:product2) { create(:product, sku: shipwire_product2['sku']) }
let(:variant2) do
product2.master.tap { |master| master.update_attributes(shipwire_id: shipwire_product2['id']) }
end
let(:order) do
create(:shipped_order,
:shipped_on_shipwire,
line_items_count: 2,
line_items_attributes: [{ product: variant.product }, { product: variant2.product }])
end
it 'post to shipwire' do
allow(return_authorization).to receive(:process_shipwire_return!).and_call_original
return_authorization.save
expect(return_authorization).to have_received(:process_shipwire_return!)
expect(return_authorization.errors.messages).to be_empty
expect(return_authorization.shipwire_id).not_to be_nil
end
end
end
end
| {
"content_hash": "d9fbb22f0108e3439c764fb7bd3e9eb3",
"timestamp": "",
"source": "github",
"line_count": 130,
"max_line_length": 161,
"avg_line_length": 38.43076923076923,
"alnum_prop": 0.6569255404323459,
"repo_name": "nebulab/solidus_shipwire",
"id": "d9ca2a4b0447dd7f1dca03cbd82e21e36a669c3e",
"size": "5098",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "spec/models/spree/return_authorization_spec.rb",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "CSS",
"bytes": "74"
},
{
"name": "HTML",
"bytes": "944"
},
{
"name": "JavaScript",
"bytes": "62"
},
{
"name": "Ruby",
"bytes": "71970"
}
],
"symlink_target": ""
} |
@charset "UTF-8";
.grid-row, #content, .header-inner, .notice, .panel, fieldset, .form-section, .form-group, .form-block, .breadcrumbs ol, nav.global-nav, .example {
zoom: 1;
}
.grid-row:after, #content:after, .header-inner:after, .notice:after, .panel:after, fieldset:after, .form-section:after, .form-group:after, .form-block:after, .breadcrumbs ol:after, nav.global-nav:after, .example:after {
content: "";
display: block;
clear: both;
}
#content, .header-inner {
max-width: 960px;
width: 960px;
margin: 0 15px;
margin: 0 30px;
margin: 0 auto;
}
.grid-row {
margin: 0 -15px;
}
.grid-row, #content, .header-inner, .notice, .panel, fieldset, .form-section, .form-group, .form-block, .breadcrumbs ol, nav.global-nav, .example {
zoom: 1;
}
.grid-row:after, #content:after, .header-inner:after, .notice:after, .panel:after, fieldset:after, .form-section:after, .form-group:after, .form-block:after, .breadcrumbs ol:after, nav.global-nav:after, .example:after {
content: "";
display: block;
clear: both;
}
.grid-row, #content, .header-inner, .notice, .panel, fieldset, .form-section, .form-group, .form-block, .breadcrumbs ol, nav.global-nav, .example {
zoom: 1;
}
.grid-row:after, #content:after, .header-inner:after, .notice:after, .panel:after, fieldset:after, .form-section:after, .form-group:after, .form-block:after, .breadcrumbs ol:after, nav.global-nav:after, .example:after {
content: "";
display: block;
clear: both;
}
.grid-row, #content, .header-inner, .notice, .panel, fieldset, .form-section, .form-group, .form-block, .breadcrumbs ol, nav.global-nav, .example {
zoom: 1;
}
.grid-row:after, #content:after, .header-inner:after, .notice:after, .panel:after, fieldset:after, .form-section:after, .form-group:after, .form-block:after, .breadcrumbs ol:after, nav.global-nav:after, .example:after {
content: "";
display: block;
clear: both;
}
#content, .header-inner {
max-width: 960px;
width: 960px;
margin: 0 15px;
margin: 0 30px;
margin: 0 auto;
}
.grid-row {
margin: 0 -15px;
}
.grid-row, #content, .header-inner, .notice, .panel, fieldset, .form-section, .form-group, .form-block, .breadcrumbs ol, nav.global-nav, .example {
zoom: 1;
}
.grid-row:after, #content:after, .header-inner:after, .notice:after, .panel:after, fieldset:after, .form-section:after, .form-group:after, .form-block:after, .breadcrumbs ol:after, nav.global-nav:after, .example:after {
content: "";
display: block;
clear: both;
}
.grid-row, #content, .header-inner, .notice, .panel, fieldset, .form-section, .form-group, .form-block, .breadcrumbs ol, nav.global-nav, .example {
zoom: 1;
}
.grid-row:after, #content:after, .header-inner:after, .notice:after, .panel:after, fieldset:after, .form-section:after, .form-group:after, .form-block:after, .breadcrumbs ol:after, nav.global-nav:after, .example:after {
content: "";
display: block;
clear: both;
}
.example-highlight-grid .grid-row {
background: #bfc1c3;
}
.example-highlight-grid .column-highlight {
background: #dee0e2;
width: 100%;
}
.visually-hidden,
.visuallyhidden {
position: absolute;
overflow: hidden;
clip: rect(0 0 0 0);
height: 1px;
width: 1px;
margin: -1px;
padding: 0;
border: 0;
}
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark {
border: none;
margin: 0;
padding: 0;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
input,
textarea,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
font-size: inherit;
font-family: inherit;
line-height: inherit;
font-weight: normal;
}
abbr[title],
acronym[title] {
text-decoration: none;
}
legend {
box-sizing: border-box;
max-width: 100%;
display: table;
}
#content, .header-inner {
padding-bottom: 30px;
padding-bottom: 90px;
outline: none;
}
.column-quarter,
.column-one-quarter {
float: left;
width: 25%;
width: 217.5px;
padding: 0 15px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.column-half,
.column-one-half {
float: left;
width: 50%;
width: 465px;
padding: 0 15px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.column-third,
.column-one-third {
float: left;
width: 33.3333333333%;
width: 300px;
padding: 0 15px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.column-two-thirds {
float: left;
width: 66.6666666667%;
width: 630px;
padding: 0 15px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.column-full {
float: left;
width: 100%;
width: 960px;
padding: 0 15px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
main {
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 16px;
line-height: 1.25;
font-size: 19px;
line-height: 1.3157894737;
-webkit-font-smoothing: antialiased;
}
.font-xxlarge {
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 53px;
line-height: 1.0377358491;
font-size: 80px;
line-height: 1;
}
.font-xlarge {
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 32px;
line-height: 1.09375;
font-size: 48px;
line-height: 1.0416666667;
}
.font-large {
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 24px;
line-height: 1.0416666667;
font-size: 36px;
line-height: 1.1111111111;
}
.font-medium {
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 18px;
line-height: 1.2;
font-size: 24px;
line-height: 1.25;
}
.font-small {
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 16px;
line-height: 1.25;
font-size: 19px;
line-height: 1.3157894737;
}
.font-xsmall {
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 14px;
line-height: 1.1428571429;
font-size: 16px;
line-height: 1.25;
}
.bold-xxlarge {
font-family: "nta", Arial, sans-serif;
font-weight: 700;
text-transform: none;
font-size: 53px;
line-height: 1.0377358491;
font-size: 80px;
line-height: 1;
}
.bold-xlarge {
font-family: "nta", Arial, sans-serif;
font-weight: 700;
text-transform: none;
font-size: 32px;
line-height: 1.09375;
font-size: 48px;
line-height: 1.0416666667;
}
.bold-large {
font-family: "nta", Arial, sans-serif;
font-weight: 700;
text-transform: none;
font-size: 24px;
line-height: 1.0416666667;
font-size: 36px;
line-height: 1.1111111111;
}
.bold-medium {
font-family: "nta", Arial, sans-serif;
font-weight: 700;
text-transform: none;
font-size: 18px;
line-height: 1.2;
font-size: 24px;
line-height: 1.25;
}
.bold-small {
font-family: "nta", Arial, sans-serif;
font-weight: 700;
text-transform: none;
font-size: 16px;
line-height: 1.25;
font-size: 19px;
line-height: 1.3157894737;
}
.bold-xsmall {
font-family: "nta", Arial, sans-serif;
font-weight: 700;
text-transform: none;
font-size: 14px;
line-height: 1.1428571429;
font-size: 16px;
line-height: 1.25;
}
.bold {
font-weight: 700;
}
.heading-xlarge {
font-family: "nta", Arial, sans-serif;
font-weight: 700;
text-transform: none;
font-size: 32px;
line-height: 1.09375;
font-size: 48px;
line-height: 1.0416666667;
margin-top: 0.46875em;
margin-bottom: 0.9375em;
margin-top: 0.625em;
margin-bottom: 1.25em;
}
.heading-xlarge .heading-secondary {
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 20px;
line-height: 1.1111111111;
font-size: 27px;
line-height: 1.1111111111;
display: block;
padding-top: 8px;
padding-bottom: 7px;
padding-top: 4px;
padding-bottom: 6px;
display: block;
color: #6f777b;
}
.heading-large {
font-family: "nta", Arial, sans-serif;
font-weight: 700;
text-transform: none;
font-size: 24px;
line-height: 1.0416666667;
font-size: 36px;
line-height: 1.1111111111;
margin-top: 1.0416666667em;
margin-bottom: 0.4166666667em;
margin-top: 1.25em;
margin-bottom: 0.5555555556em;
}
.heading-large .heading-secondary {
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 18px;
line-height: 1.2;
font-size: 24px;
line-height: 1.25;
display: block;
padding-top: 9px;
padding-bottom: 6px;
padding-top: 6px;
padding-bottom: 4px;
display: block;
color: #6f777b;
}
.heading-medium {
font-family: "nta", Arial, sans-serif;
font-weight: 700;
text-transform: none;
font-size: 18px;
line-height: 1.2;
font-size: 24px;
line-height: 1.25;
margin-top: 1.25em;
margin-bottom: 0.5em;
margin-top: 1.875em;
margin-bottom: 0.8333333333em;
}
.heading-small {
font-family: "nta", Arial, sans-serif;
font-weight: 700;
text-transform: none;
font-size: 16px;
line-height: 1.25;
font-size: 19px;
line-height: 1.3157894737;
margin-top: 0.625em;
margin-bottom: 0.3125em;
margin-top: 1.0526315789em;
}
p {
margin-top: 0.3125em;
margin-bottom: 1.25em;
margin-top: 0.2631578947em;
margin-bottom: 1.0526315789em;
}
.lede {
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 18px;
line-height: 1.2;
font-size: 24px;
line-height: 1.25;
}
.text {
max-width: 30em;
}
.text-secondary {
color: #6f777b;
}
.link {
color: #005ea5;
text-decoration: underline;
}
.link:visited {
color: #4c2c92;
}
.link:hover {
color: #2b8cc4;
}
.link:active {
color: #005ea5;
}
.link-back {
display: -moz-inline-stack;
display: inline-block;
zoom: 1;
display: inline;
position: relative;
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 14px;
line-height: 1.1428571429;
font-size: 16px;
line-height: 1.25;
margin-top: 15px;
margin-bottom: 15px;
padding-left: 14px;
color: #0b0c0c;
text-decoration: none;
border-bottom: 1px solid #0b0c0c;
background: url("/public/images/icon-arrow-left.png") no-repeat 0 4px;
}
.link-back:link, .link-back:visited, .link-back:hover, .link-back:active {
color: #0b0c0c;
}
.link-back::before {
content: '';
display: block;
width: 0;
height: 0;
border-top: 5px solid transparent;
border-right: 6px solid #0b0c0c;
border-bottom: 5px solid transparent;
position: absolute;
left: 0;
top: 50%;
margin-top: -6px;
}
.code {
color: #0b0c0c;
background-color: #f8f8f8;
text-shadow: 0 1px #fff;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 14px;
direction: ltr;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
line-height: 1.5;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
border: 1px solid #bfc1c3;
padding: 4px 4px 2px;
}
hr {
display: block;
background: #bfc1c3;
border: 0;
height: 1px;
margin-top: 30px;
margin-bottom: 30px;
padding: 0;
color: #bfc1c3;
}
.notice {
position: relative;
}
.notice .icon {
position: absolute;
left: 0;
top: 50%;
margin-top: -17px;
}
.notice strong {
display: block;
padding-left: 65px;
margin-left: -15px;
}
.data {
margin-top: 0.3125em;
margin-bottom: 1.25em;
margin-top: 0.2631578947em;
margin-bottom: 1.0526315789em;
}
.data-item {
display: block;
line-height: 1;
}
.button {
background-color: #00823b;
position: relative;
display: -moz-inline-stack;
display: inline-block;
zoom: 1;
display: inline;
padding: .526315em .789473em .263157em;
border: none;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
outline: 1px solid transparent;
outline-offset: -1px;
-webkit-appearance: none;
-webkit-box-shadow: 0 2px 0 #003618;
-moz-box-shadow: 0 2px 0 #003618;
box-shadow: 0 2px 0 #003618;
border-bottom: 2px solid #003618;
font-size: 1em;
line-height: 1.25;
text-decoration: none;
-webkit-font-smoothing: antialiased;
cursor: pointer;
color: #fff;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
vertical-align: top;
}
.button:visited {
background-color: #00823b;
}
.button:hover, .button:focus {
background-color: #00692f;
}
.button:active {
top: 2px;
-webkit-box-shadow: 0 0 0 #00823b;
-moz-box-shadow: 0 0 0 #00823b;
box-shadow: 0 0 0 #00823b;
}
.button.disabled, .button[disabled="disabled"], .button[disabled] {
zoom: 1;
filter: alpha(opacity=50);
opacity: 0.5;
}
.button.disabled:hover, .button[disabled="disabled"]:hover, .button[disabled]:hover {
cursor: default;
background-color: #00823b;
}
.button.disabled:active, .button[disabled="disabled"]:active, .button[disabled]:active {
top: 0;
-webkit-box-shadow: 0 2px 0 #003618;
-moz-box-shadow: 0 2px 0 #003618;
box-shadow: 0 2px 0 #003618;
border-bottom: 2px solid #003618;
}
.button:link, .button:hover, .button:focus, .button:visited {
color: #fff;
}
.button:before {
content: "";
height: 110%;
width: 100%;
display: block;
background: transparent;
position: absolute;
top: 0;
left: 0;
}
.button:active:before {
top: -10%;
height: 120%;
}
.button[type="submit"], .button[type="reset"], .button[type="button"] {
filter: chroma(color=#0b0c0c);
}
.button[type=submit].button {
filter: none;
}
.button::-moz-focus-inner {
border: 0;
padding: 0;
}
.button:focus {
outline: 3px solid #ffbf47;
}
.button[disabled="disabled"] {
background: #00823b;
}
.button[disabled="disabled"]:focus {
outline: none;
}
.button-start,
.button-get-started {
font-family: "nta", Arial, sans-serif;
font-weight: 700;
text-transform: none;
font-size: 18px;
line-height: 1.2;
font-size: 24px;
line-height: 1.25;
background-image: url("/public/images/icon-pointer.png");
background-repeat: no-repeat;
background-position: 100% 50%;
padding: 0.3684210526em 2.1578947368em 0.2105263158em 0.8421052632em;
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.button-start,
.button-get-started {
background-image: url("/public/images/icon-pointer-2x.png");
background-size: 30px 19px;
}
}
.icon {
display: inline-block;
background-position: 0 0;
background-repeat: no-repeat;
}
.icon-calendar {
width: 27px;
height: 27px;
background-image: url("/public/images/icon-calendar.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.icon-calendar {
background-image: url("/public/images/icon-calendar-2x.png");
background-size: 100%;
}
}
.icon-file-download {
width: 30px;
height: 39px;
background-image: url("/public/images/icon-file-download.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.icon-file-download {
background-image: url("/public/images/icon-file-download-2x.png");
background-size: 100%;
}
}
.icon-important {
width: 35px;
height: 35px;
background-image: url("/public/images/icon-important.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.icon-important {
background-image: url("/public/images/icon-important-2x.png");
background-size: 100%;
}
}
.icon-information {
width: 27px;
height: 27px;
background-image: url("/public/images/icon-information.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.icon-information {
background-image: url("/public/images/icon-information-2x.png");
background-size: 100%;
}
}
.icon-locator {
width: 26px;
height: 36px;
background-image: url("/public/images/icon-locator.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.icon-locator {
background-image: url("/public/images/icon-locator-2x.png");
background-size: 100%;
}
}
.icon-pointer {
width: 30px;
height: 19px;
background-image: url("/public/images/icon-pointer.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.icon-pointer {
background-image: url("/public/images/icon-pointer-2x.png");
background-size: 100%;
}
}
.icon-pointer-black {
width: 23px;
height: 23px;
background-image: url("/public/images/icon-pointer-black.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.icon-pointer-black {
background-image: url("/public/images/icon-pointer-black-2x.png");
background-size: 100%;
}
}
.icon-search {
width: 30px;
height: 22px;
background-image: url("/public/images/icon-search.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.icon-search {
background-image: url("/public/images/icon-search-2x.png");
background-size: 100%;
}
}
.icon-step-1 {
width: 23px;
height: 23px;
background-image: url("/public/images/icon-steps/icon-step-1.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.icon-step-1 {
background-image: url("/public/images/icon-steps/icon-step-1-2x.png");
background-size: 100%;
}
}
.icon-step-2 {
width: 23px;
height: 23px;
background-image: url("/public/images/icon-steps/icon-step-2.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.icon-step-2 {
background-image: url("/public/images/icon-steps/icon-step-2-2x.png");
background-size: 100%;
}
}
.icon-step-3 {
width: 23px;
height: 23px;
background-image: url("/public/images/icon-steps/icon-step-3.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.icon-step-3 {
background-image: url("/public/images/icon-steps/icon-step-3-2x.png");
background-size: 100%;
}
}
.icon-step-4 {
width: 23px;
height: 23px;
background-image: url("/public/images/icon-steps/icon-step-4.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.icon-step-4 {
background-image: url("/public/images/icon-steps/icon-step-4-2x.png");
background-size: 100%;
}
}
.icon-step-5 {
width: 23px;
height: 23px;
background-image: url("/public/images/icon-steps/icon-step-5.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.icon-step-5 {
background-image: url("/public/images/icon-steps/icon-step-5-2x.png");
background-size: 100%;
}
}
.icon-step-6 {
width: 23px;
height: 23px;
background-image: url("/public/images/icon-steps/icon-step-6.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.icon-step-6 {
background-image: url("/public/images/icon-steps/icon-step-6-2x.png");
background-size: 100%;
}
}
.icon-step-7 {
width: 23px;
height: 23px;
background-image: url("/public/images/icon-steps/icon-step-7.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.icon-step-7 {
background-image: url("/public/images/icon-steps/icon-step-7-2x.png");
background-size: 100%;
}
}
.icon-step-8 {
width: 23px;
height: 23px;
background-image: url("/public/images/icon-steps/icon-step-8.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.icon-step-8 {
background-image: url("/public/images/icon-steps/icon-step-8-2x.png");
background-size: 100%;
}
}
.icon-step-9 {
width: 23px;
height: 23px;
background-image: url("/public/images/icon-steps/icon-step-9.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.icon-step-9 {
background-image: url("/public/images/icon-steps/icon-step-9-2x.png");
background-size: 100%;
}
}
.icon-step-10 {
width: 23px;
height: 23px;
background-image: url("/public/images/icon-steps/icon-step-10.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.icon-step-10 {
background-image: url("/public/images/icon-steps/icon-step-10-2x.png");
background-size: 100%;
}
}
.icon-step-11 {
width: 23px;
height: 23px;
background-image: url("/public/images/icon-steps/icon-step-11.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.icon-step-11 {
background-image: url("/public/images/icon-steps/icon-step-11-2x.png");
background-size: 100%;
}
}
.icon-step-12 {
width: 23px;
height: 23px;
background-image: url("/public/images/icon-steps/icon-step-12.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.icon-step-12 {
background-image: url("/public/images/icon-steps/icon-step-12-2x.png");
background-size: 100%;
}
}
.icon-step-13 {
width: 23px;
height: 23px;
background-image: url("/public/images/icon-steps/icon-step-13.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.icon-step-13 {
background-image: url("/public/images/icon-steps/icon-step-13-2x.png");
background-size: 100%;
}
}
.icon-step-14 {
width: 23px;
height: 23px;
background-image: url("/public/images/icon-steps/icon-step-14.png");
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.icon-step-14 {
background-image: url("/public/images/icon-steps/icon-step-14-2x.png");
background-size: 100%;
}
}
.circle {
display: inline-block;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
background: #0b0c0c;
color: #fff;
font-family: "ntatabularnumbers", "nta", Arial, sans-serif;
font-size: 12px;
font-weight: bold;
text-align: center;
}
.circle-step {
min-width: 24px;
min-height: 24px;
line-height: 24px;
}
.circle-step-large {
font-size: 19px;
min-width: 38px;
min-height: 38px;
line-height: 38px;
}
ul,
ol {
list-style-type: none;
}
.list {
padding: 0;
margin-top: 5px;
margin-bottom: 20px;
}
.list li {
margin-bottom: 5px;
}
.list-bullet {
list-style-type: disc;
padding-left: 20px;
}
.list-number {
list-style-type: decimal;
padding-left: 20px;
padding-left: 28px;
}
table {
border-collapse: collapse;
border-spacing: 0;
width: 100%;
}
table th,
table td {
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 16px;
line-height: 1.25;
font-size: 19px;
line-height: 1.3157894737;
padding: 0.6315789474em 1.0526315789em 0.4736842105em 0;
text-align: left;
color: #0b0c0c;
border-bottom: 1px solid #bfc1c3;
}
table th {
font-weight: 700;
}
table th.numeric {
text-align: right;
}
table td.numeric {
font-family: "ntatabularnumbers", "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 14px;
line-height: 1.1428571429;
font-size: 16px;
line-height: 1.25;
text-align: right;
}
.table-font-xsmall th {
font-family: "nta", Arial, sans-serif;
font-weight: 700;
text-transform: none;
font-size: 14px;
line-height: 1.1428571429;
font-size: 16px;
line-height: 1.25;
}
.table-font-xsmall td {
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 14px;
line-height: 1.1428571429;
font-size: 16px;
line-height: 1.25;
}
.table-font-xsmall th,
.table-font-xsmall td {
padding: 0.75em 1.25em 0.5625em 0;
}
details {
display: block;
clear: both;
}
details summary {
display: inline-block;
color: #005ea5;
cursor: pointer;
position: relative;
margin-bottom: 0.2631578947em;
}
details summary:hover {
color: #2b8cc4;
}
details summary:focus {
outline: 3px solid #ffbf47;
}
details .summary {
text-decoration: underline;
}
details .arrow {
margin-right: .35em;
font-style: normal;
}
.panel {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
clear: both;
border-left-style: solid;
border-color: #bfc1c3;
padding: 0.7894736842em;
margin-bottom: 0.7894736842em;
}
.panel :first-child {
margin-top: 0;
}
.panel :only-child,
.panel :last-child {
margin-bottom: 0;
}
.panel-border-wide {
border-left-width: 10px;
}
.panel-border-narrow {
border-left-width: 5px;
}
.form-group .panel-border-narrow {
float: left;
width: 100%;
padding-bottom: 0;
}
.form-group .panel-border-narrow:first-child {
margin-top: 10px;
}
.form-group .panel-border-narrow:last-child {
margin-top: 10px;
margin-bottom: 0;
}
.inline .panel-border-narrow {
margin-top: 10px;
margin-bottom: 0;
}
fieldset {
width: 100%;
}
legend {
margin-left: -7px;
}
textarea {
display: block;
}
.form-section {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
float: left;
width: 100%;
margin-bottom: 30px;
margin-bottom: 60px;
}
.form-group {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
float: left;
width: 100%;
margin-bottom: 15px;
margin-bottom: 30px;
}
.form-group-related {
margin-bottom: 10px;
margin-bottom: 20px;
}
.form-group-compound {
margin-bottom: 10px;
}
.form-label,
.form-label-bold {
display: block;
color: #0b0c0c;
padding-bottom: 2px;
}
.form-label {
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 16px;
line-height: 1.25;
font-size: 19px;
line-height: 1.3157894737;
}
.form-label-bold {
font-family: "nta", Arial, sans-serif;
font-weight: 700;
text-transform: none;
font-size: 16px;
line-height: 1.25;
font-size: 19px;
line-height: 1.3157894737;
}
.form-block {
float: left;
width: 100%;
margin-top: -5px;
margin-bottom: 5px;
margin-top: 0;
margin-bottom: 10px;
}
.form-hint {
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 16px;
line-height: 1.25;
font-size: 19px;
line-height: 1.3157894737;
display: block;
color: #6f777b;
font-weight: normal;
margin-top: -2px;
padding-bottom: 2px;
}
.form-label .form-hint,
.form-label-bold .form-hint {
margin-top: 0;
padding-bottom: 0;
}
.form-control {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 16px;
line-height: 1.25;
font-size: 19px;
line-height: 1.3157894737;
width: 100%;
padding: 5px 4px 4px;
color: inherit;
background-color: transparent;
border: 2px solid;
width: 50%;
}
input.form-control,
textarea.form-control {
-webkit-appearance: none;
border-radius: 0;
}
.form-radio {
display: block;
margin: 10px 0;
}
.form-radio input {
vertical-align: middle;
margin: -4px 5px 0 0;
}
.form-checkbox {
display: block;
margin: 15px 0;
}
.form-checkbox input {
vertical-align: middle;
margin: -2px 5px 0 0;
}
.form-control-3-4 {
width: 100%;
width: 75%;
}
.form-control-2-3 {
width: 100%;
width: 66.66%;
}
.form-control-1-2 {
width: 100%;
width: 50%;
}
.form-control-1-3 {
width: 100%;
width: 33.33%;
}
.form-control-1-4 {
width: 100%;
width: 25%;
}
.form-control-1-8 {
width: 100%;
width: 12.5%;
}
.block-label {
display: block;
float: none;
clear: left;
position: relative;
padding: 8px 10px 9px 50px;
margin-bottom: 10px;
cursor: pointer;
-ms-touch-action: manipulation;
touch-action: manipulation;
float: left;
padding-top: 7px;
padding-bottom: 7px;
}
.block-label input {
position: absolute;
cursor: pointer;
left: 0;
top: 0;
width: 38px;
height: 38px;
}
.js-enabled .block-label.selection-button-radio::before {
content: "";
border: 2px solid;
background: transparent;
width: 34px;
height: 34px;
position: absolute;
top: 0;
left: 0;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
}
.js-enabled .block-label.selection-button-radio::after {
content: "";
border: 10px solid;
width: 0;
height: 0;
position: absolute;
top: 9px;
left: 9px;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
zoom: 1;
filter: alpha(opacity=0);
opacity: 0;
}
.js-enabled .block-label.selection-button-checkbox::before {
content: "";
border: 2px solid;
background: transparent;
width: 34px;
height: 34px;
position: absolute;
top: 0;
left: 0;
}
.js-enabled .block-label.selection-button-checkbox::after {
content: "";
border: solid;
border-width: 0 0 5px 5px;
background: transparent;
width: 17px;
height: 7px;
position: absolute;
top: 10px;
left: 8px;
-moz-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
-webkit-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
transform: rotate(-45deg);
zoom: 1;
filter: alpha(opacity=0);
opacity: 0;
}
.js-enabled .block-label.selection-button-radio.focused::before, .js-enabled .block-label.selection-button-checkbox.focused::before {
-webkit-box-shadow: 0 0 0 5px #ffbf47;
-moz-box-shadow: 0 0 0 5px #ffbf47;
box-shadow: 0 0 0 5px #ffbf47;
}
.js-enabled .block-label.selection-button-radio.focused, .js-enabled .block-label.selection-button-checkbox.focused {
outline: 3px solid #ffbf47;
}
.js-enabled .block-label.selection-button-radio.focused input:focus, .js-enabled .block-label.selection-button-checkbox.focused input:focus {
outline: none;
}
.js-enabled .block-label.selection-button-radio.selected::after, .js-enabled .block-label.selection-button-checkbox.selected::after {
zoom: 1;
filter: alpha(opacity=100);
opacity: 1;
}
.block-label:last-child, .block-label:last-of-type {
margin-bottom: 0;
}
.inline .block-label {
clear: none;
margin-bottom: 0;
margin-right: 30px;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type=number] {
-moz-appearance: textfield;
}
.form-date .form-group {
float: left;
width: 50px;
margin-right: 20px;
margin-bottom: 0;
clear: none;
}
.form-date .form-group label {
display: block;
padding-bottom: 2px;
}
.form-date .form-group input {
width: 100%;
}
.form-date .form-group-year {
width: 70px;
}
.error {
margin-right: 15px;
border-left: 4px solid #b10e1e;
padding-left: 10px;
border-left: 5px solid #b10e1e;
padding-left: 15px;
}
.error > .form-control {
border: 4px solid #b10e1e;
}
.error-message {
font-family: "nta", Arial, sans-serif;
font-weight: 700;
text-transform: none;
font-size: 16px;
line-height: 1.25;
font-size: 19px;
line-height: 1.3157894737;
color: #b10e1e;
display: block;
clear: both;
margin: 0;
padding: 2px 0;
}
.form-label .error-message,
.form-label-bold .error-message {
padding-top: 4px;
padding-bottom: 0;
}
.error-summary {
border: 4px solid #b10e1e;
margin-top: 15px;
margin-bottom: 15px;
padding: 15px 10px;
border: 5px solid #b10e1e;
margin-top: 30px;
margin-bottom: 30px;
padding: 20px 15px 15px;
}
.error-summary:focus {
outline: 3px solid #ffbf47;
}
.error-summary .error-summary-heading {
margin-top: 0;
}
.error-summary p {
margin-bottom: 10px;
}
.error-summary .error-summary-list {
padding-left: 0;
}
.error-summary .error-summary-list li {
margin-bottom: 5px;
}
.error-summary .error-summary-list a {
color: #b10e1e;
font-weight: bold;
text-decoration: underline;
}
.multiple-choice {
display: block;
float: none;
clear: left;
position: relative;
padding: 0 0 0 38px;
margin-bottom: 10px;
float: left;
}
.multiple-choice input {
position: absolute;
cursor: pointer;
left: 0;
top: 0;
width: 38px;
height: 38px;
z-index: 1;
}
.multiple-choice label {
cursor: pointer;
padding: 8px 10px 9px 12px;
display: block;
-ms-touch-action: manipulation;
touch-action: manipulation;
float: left;
padding-top: 7px;
padding-bottom: 7px;
}
.multiple-choice [type=radio] + label::before {
content: "";
border: 2px solid;
background: transparent;
width: 34px;
height: 34px;
position: absolute;
top: 0;
left: 0;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
}
.multiple-choice [type=radio] + label::after {
content: "";
border: 10px solid;
width: 0;
height: 0;
position: absolute;
top: 9px;
left: 9px;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
zoom: 1;
filter: alpha(opacity=0);
opacity: 0;
}
.multiple-choice [type=checkbox] + label::before {
content: "";
border: 2px solid;
background: transparent;
width: 34px;
height: 34px;
position: absolute;
top: 0;
left: 0;
}
.multiple-choice [type=checkbox] + label::after {
content: "";
border: solid;
border-width: 0 0 5px 5px;
background: transparent;
width: 17px;
height: 7px;
position: absolute;
top: 10px;
left: 8px;
-moz-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
-webkit-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
transform: rotate(-45deg);
zoom: 1;
filter: alpha(opacity=0);
opacity: 0;
}
.multiple-choice [type=radio]:focus + label::before {
-webkit-box-shadow: 0 0 0 4px #ffbf47;
-moz-box-shadow: 0 0 0 4px #ffbf47;
box-shadow: 0 0 0 4px #ffbf47;
}
.multiple-choice [type=checkbox]:focus + label::before {
-webkit-box-shadow: 0 0 0 3px #ffbf47;
-moz-box-shadow: 0 0 0 3px #ffbf47;
box-shadow: 0 0 0 3px #ffbf47;
}
.multiple-choice input:checked + label::after {
zoom: 1;
filter: alpha(opacity=100);
opacity: 1;
}
.multiple-choice input:disabled + label {
zoom: 1;
filter: alpha(opacity=50);
opacity: 0.5;
}
.multiple-choice:last-child, .multiple-choice:last-of-type {
margin-bottom: 0;
}
.inline .multiple-choice {
clear: none;
margin-bottom: 0;
margin-right: 30px;
}
.breadcrumbs {
padding-top: 0.75em;
padding-bottom: 0.75em;
}
.breadcrumbs li {
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 14px;
line-height: 1.1428571429;
font-size: 16px;
line-height: 1.25;
float: left;
background-image: url("/public/images/separator.png");
background-position: 0% 50%;
background-repeat: no-repeat;
list-style: none;
margin-left: 0.6em;
margin-bottom: 0.4em;
padding-left: 0.9em;
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 20 / 10), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.breadcrumbs li {
background-image: url("/public/images/separator-2x.png");
background-size: 6px 11px;
}
}
.breadcrumbs li:first-child {
background-image: none;
margin-left: 0;
padding-left: 0;
}
.breadcrumbs a {
color: #0b0c0c;
}
.phase-banner {
padding: 10px 0 8px;
padding-bottom: 10px;
border-bottom: 1px solid #bfc1c3;
}
.phase-banner p {
display: table;
margin: 0;
color: #000;
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 14px;
line-height: 1.1428571429;
font-size: 16px;
line-height: 1.25;
}
.phase-banner .phase-tag {
display: -moz-inline-stack;
display: inline-block;
zoom: 1;
display: inline;
margin: 0 8px 0 0;
padding: 2px 5px 0;
font-family: "nta", Arial, sans-serif;
font-weight: 700;
text-transform: none;
font-size: 14px;
line-height: 1.1428571429;
font-size: 16px;
line-height: 1.25;
text-transform: uppercase;
letter-spacing: 1px;
text-decoration: none;
color: #fff;
background-color: #005ea5;
}
.phase-banner span {
display: table-cell;
vertical-align: baseline;
}
.phase-banner-alpha,
.phase-banner-beta {
padding: 10px 0 8px;
padding-bottom: 10px;
border-bottom: 1px solid #bfc1c3;
}
.phase-banner-alpha p,
.phase-banner-beta p {
display: table;
margin: 0;
color: #000;
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 14px;
line-height: 1.1428571429;
font-size: 16px;
line-height: 1.25;
}
.phase-banner-alpha .phase-tag,
.phase-banner-beta .phase-tag {
display: -moz-inline-stack;
display: inline-block;
zoom: 1;
display: inline;
margin: 0 8px 0 0;
padding: 2px 5px 0;
font-family: "nta", Arial, sans-serif;
font-weight: 700;
text-transform: none;
font-size: 14px;
line-height: 1.1428571429;
font-size: 16px;
line-height: 1.25;
text-transform: uppercase;
letter-spacing: 1px;
text-decoration: none;
color: #fff;
background-color: #005ea5;
}
.phase-banner-alpha span,
.phase-banner-beta span {
display: table-cell;
vertical-align: baseline;
}
.phase-banner {
border-bottom: none;
}
.phase-banner .phase-tag {
background: #005ea5;
}
.govuk-box-highlight {
margin: 1em 0;
padding: 2em 0 1em;
color: #fff;
background: #28a197;
text-align: center;
}
@-moz-document regexp('.*') {
details summary:not([tabindex]) {
display: list-item;
display: revert;
}
}
.error-summary, .warning-summary, .success-summary, .info-summary, .info-highlighted {
margin-bottom: 0px !important;
}
.error-summary:last-child, .warning-summary:last-child, .success-summary:last-child, .info-summary:last-child, .info-highlighted:last-child {
margin-bottom: 100px;
}
.error-summary, .info-summary, .success-summary, .warning-summary, .info-highlighted {
border-width: 4px;
border-style: solid;
margin-top: 15px;
margin-bottom: 15px;
padding: 15px 10px;
border-width: 5px;
border-style: solid;
margin-top: 30px;
margin-bottom: 30px;
padding: 20px 15px 15px;
}
.error-summary:focus, .info-summary:focus, .success-summary:focus, .warning-summary:focus, .info-highlighted:focus {
outline: 3px solid #ffbf47;
}
.error-summary p, .info-summary p, .success-summary p, .warning-summary p, .info-highlighted p {
margin-bottom: 10px;
}
.error-summary-heading, .info-summary-heading, .success-summary-heading, .warning-summary-heading, .info-highlighted-heading {
margin-top: 0;
}
.error-summary h1[class^="heading-"], .info-summary h1[class^="heading-"], .success-summary h1[class^="heading-"], .warning-summary h1[class^="heading-"], .info-highlighted h1[class^="heading-"] {
margin: 0;
}
.error-summary h2[class^="heading-"], .info-summary h2[class^="heading-"], .success-summary h2[class^="heading-"], .warning-summary h2[class^="heading-"], .info-highlighted h2[class^="heading-"] {
margin: 0;
}
.error-summary h3[class^="heading-"], .info-summary h3[class^="heading-"], .success-summary h3[class^="heading-"], .warning-summary h3[class^="heading-"], .info-highlighted h3[class^="heading-"] {
margin: 0;
}
.error-summary h4[class^="heading-"], .info-summary h4[class^="heading-"], .success-summary h4[class^="heading-"], .warning-summary h4[class^="heading-"], .info-highlighted h4[class^="heading-"] {
margin: 0;
}
.error-summary h5[class^="heading-"], .info-summary h5[class^="heading-"], .success-summary h5[class^="heading-"], .warning-summary h5[class^="heading-"], .info-highlighted h5[class^="heading-"] {
margin: 0;
}
.error-summary h6[class^="heading-"], .info-summary h6[class^="heading-"], .success-summary h6[class^="heading-"], .warning-summary h6[class^="heading-"], .info-highlighted h6[class^="heading-"] {
margin: 0;
}
.error-summary-list, .info-summary-list, .success-summary-list, .warning-summary-list, .info-highlighted-list {
padding-left: 0;
}
.error-summary-list li, .info-summary-list li, .success-summary-list li, .warning-summary-list li, .info-highlighted-list li {
margin-bottom: 5px;
}
.error-summary-list a, .info-summary-list a, .success-summary-list a, .warning-summary-list a, .info-highlighted-list a {
font-weight: bold;
text-decoration: underline;
}
.info-dismiss, .success-dismiss, .warning-dismiss {
font-weight: bold;
text-decoration: underline;
}
.info-summary {
border-color: #2e358b;
border-color: #2e358b;
}
.info-summary .info-summary-list a {
color: #2e358b;
}
.info-summary .info-dismiss {
color: #2e358b;
}
.success-summary {
border-color: #28a197;
border-color: #28a197;
}
.success-summary .success-summary-list a {
color: #28a197;
}
.success-summary .success-dismiss {
color: #28a197;
}
.warning-summary {
border-color: #f47738;
border-color: #f47738;
}
.warning-summary .warning-summary-list a {
color: #f47738;
}
.warning-summary .warning-dismiss {
color: #f47738;
}
.info-highlighted {
max-width: 30em;
background: #eaebf3;
border: none;
border-left: solid 10px #2e358b;
}
.sfa-govuk-box-highlight {
padding-left: 0.5em;
padding-right: 0.5em;
}
.govuk-check-your-answers {
display: table;
}
.govuk-check-your-answers > * {
position: relative;
border-bottom: 1px solid #bfc1c3;
display: table-row;
border-bottom-width: 0;
}
.govuk-check-your-answers > * > * {
display: block;
display: table-cell;
border-bottom: 1px solid #bfc1c3;
padding: 0.6315789474em 1.0526315789em 0.4736842105em 0;
margin: 0;
}
.govuk-check-your-answers > *:first-child > * {
padding-top: 0;
}
.govuk-check-your-answers > * dt {
float: none;
}
.govuk-check-your-answers .cya-question {
font-weight: bold;
margin: 0.6315789474em 4em 0.2105263158em 0;
}
.govuk-check-your-answers > *:first-child .cya-question {
margin-top: 0;
}
.govuk-check-your-answers.cya-questions-short, .govuk-check-your-answers.cya-questions-long {
width: 100%;
}
.govuk-check-your-answers.cya-questions-short .cya-question {
width: 30%;
}
.govuk-check-your-answers.cya-questions-long .cya-question {
width: 50%;
}
.govuk-check-your-answers .cya-answer {
padding-bottom: 0.4736842105em;
}
.govuk-check-your-answers .cya-change {
text-align: right;
position: absolute;
top: 0;
right: 0;
position: static;
padding-right: 0;
}
.check-your-answers td {
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 16px;
line-height: 1.25;
font-size: 19px;
line-height: 1.3157894737;
vertical-align: top;
}
.check-your-answers .change-answer {
text-align: right;
font-weight: bold;
padding-right: 0;
}
.header-global {
margin: 0 auto;
max-width: 960px;
overflow: hidden;
padding: 15px;
}
.header-global__title {
font-size: 24px;
font-weight: 700;
line-height: 1.1;
margin: 0;
padding: 0;
font-size: 32px;
}
.header-global__title a {
border-bottom: 1px solid #000;
color: #fff;
display: inline-block;
padding: 2px 0;
text-decoration: none;
}
.phase-banner-alpha .phase-tag {
background: #005ea5;
}
#global-header-bar {
background: #6f777b;
}
.header-user {
background: #f8f8f8;
}
.header-user,
.header-organisation {
border-bottom: 1px solid #bfc1c3;
}
.header-inner {
padding: 0;
}
.global-header-bar {
height: 10px;
background: #005ea5;
}
.header-organisation h2 {
padding: 0;
margin-top: .75em;
margin-bottom: 0;
}
.js-hidden-mobile {
display: none;
display: block;
}
.js-hidden-desktop {
display: block;
display: none;
}
a.nav-menu-link {
float: right;
clear: both;
margin: 10px 0;
font-size: 16px;
padding-left: 15px !important;
color: #000;
text-decoration: none;
}
a.nav-menu-link:before {
left: 5px !important;
margin-top: -6px !important;
}
nav#user-nav {
font-size: 14px;
clear: both;
font-size: 16px;
}
nav#user-nav > ul {
list-style: none;
margin-left: -15px;
margin-right: -15px;
position: relative;
float: right;
margin: 0;
}
nav#user-nav > ul li {
border-top: 1px solid #bfc1c3;
border: none;
}
nav#user-nav > ul li a {
padding: 12px 15px 10px 20px;
display: block;
}
nav#user-nav > ul li li a {
padding-left: 15px;
}
nav#user-nav > ul li.top-level {
display: inline-block;
float: left;
}
nav#user-nav > ul li.top-level > a {
text-decoration: none;
color: #0b0c0c;
}
nav#user-nav > ul li.top-level.open ul li.selected a {
padding-left: 20px;
background-image: url("/public/images/tick.png");
background-repeat: no-repeat;
background-position: 0px 14px;
background-size: 15px;
text-decoration: none;
color: #0b0c0c;
margin-left: 15px;
}
nav#user-nav > ul li.top-level > a {
padding-top: 10px;
padding-bottom: 8px;
margin: 3px 0;
}
nav#user-nav > ul li.top-level > a.js-toggle {
padding-left: 25px;
}
nav#user-nav > ul li.top-level ul {
display: none;
}
nav#user-nav > ul li.top-level.open {
position: relative;
}
nav#user-nav > ul li.top-level.open ul {
display: block;
position: absolute;
width: 250px;
top: 100%;
right: 0;
background: #f8f8f8;
border: 1px solid #bfc1c3;
z-index: 100;
}
nav#user-nav > ul li.top-level.open ul li {
margin: 0 10px;
border-bottom: 1px solid #bfc1c3;
}
nav#user-nav > ul li.top-level.open ul li:last-child {
border: none;
}
nav#user-nav > ul li.top-level.open ul li a {
padding-left: 0;
padding-right: 0;
}
nav#user-nav > ul li.top-level.open ul li.selected a {
margin-left: 0;
}
nav#user-nav > ul li.top-level a.menu-open,
nav#user-nav > ul li.top-level a.menu-open:focus {
background: #f8f8f8;
border: 1px solid #bfc1c3;
border-bottom: none;
position: relative;
margin-bottom: -1px;
z-index: 101;
}
a.menu-open,
a.menu-closed {
padding-left: 20px;
position: relative;
}
a.menu-open:before,
a.menu-closed:before {
content: "";
position: absolute;
left: 10px;
border-color: transparent;
border-width: 7px 4px;
border-style: solid;
display: block;
width: 0;
height: 0;
top: 50%;
margin-top: -4px;
}
a.menu-open:before {
border-top-color: black;
border-top-color: #0b0c0c;
}
a.menu-closed:before {
border-left-color: black;
border-left-color: #0b0c0c;
border-width: 4px 7px;
}
nav.global-nav {
font-size: 14px;
font-size: 16px;
}
nav.global-nav ul {
list-style: none;
margin: 0;
margin-left: -15px;
margin-rightr: -15px;
padding: 0;
position: relative;
}
nav.global-nav ul li {
display: inline-block;
float: left;
}
nav.global-nav ul li a {
padding: 12px 15px 10px;
display: block;
position: relative;
}
nav.global-nav ul li a:focus {
outline: 0;
}
nav.global-nav ul li.current a, nav.global-nav ul li.active a {
color: black;
color: #0b0c0c;
text-decoration: none;
}
nav.global-nav ul li.current a:after, nav.global-nav ul li.active a:after {
content: "";
display: block;
height: 5px;
position: absolute;
left: 15px;
right: 15px;
bottom: -1px;
z-index: 1;
background: #005ea5;
}
nav.global-nav ul li.more-link {
display: none;
}
nav.global-nav ul li.more-link a {
position: absolute;
}
nav.global-nav ul#global-nav-links-secondary {
float: none;
clear: both;
margin-right: -15px;
float: left;
clear: none;
margin-left: 0;
}
nav.global-nav ul#global-nav-links-secondary li {
display: block;
float: none;
border-top: 1px solid #bfc1c3;
float: left;
border: none;
}
nav.global-nav ul {
font-size: 19px;
}
nav.global-nav ul li.sa-stacker {
float: right;
}
nav.global-nav ul li.sa-stacker ul {
display: none;
}
nav.global-nav ul li.sa-stacker.sa-open ul {
display: block;
position: absolute;
background: white;
left: 15px;
right: -15px;
border-bottom: 2px solid #bfc1c3;
}
nav.global-nav ul li.sa-stacker.sa-open ul li {
display: block;
float: none;
border-top: 1px solid #bfc1c3;
}
.service-info {
max-width: 960px;
margin: 0 auto;
}
.service-info .logo {
margin-top: 0.78947em;
}
.service-info .organisation-logo {
font-family: Helvetica, Arial;
font-weight: 400;
display: block;
position: relative;
font-size: 13px;
line-height: 16px;
padding: 3px 0 2px 0;
text-decoration: none;
padding: 3px 0 2px 30px;
background-image: url("../images/hmrc_crest_18px.png");
background-position: 5px center;
background-repeat: no-repeat;
border-left: 2px solid #009390;
}
.service-info .organisation-logo-medium {
font-size: 18px;
line-height: 22px;
padding: 3px 0 2px 38px;
background-image: url("../images/hmrc_crest_18px_x2.png");
background-size: auto 26px;
border-left: 2px solid #009390;
white-space: nowrap;
}
.button.text-link {
background-color: transparent;
box-shadow: none;
text-decoration: underline;
color: #005ea5;
border: none;
}
.button.secondary {
background-color: #bfc1c3;
color: #0b0c0c;
box-shadow: 0 2px 0 #737475;
}
.button.error {
background: #b10e1e;
box-shadow: 0 2px 0 #6a0812;
}
@media (min-width: 960px) {
.button + .button {
margin-left: 10px;
}
}
.hgroup {
margin-bottom: 30px;
}
@media (min-width: 641px) {
.hgroup {
margin-bottom: 60px;
}
}
/* HTML Guideance styles */
.html-publications-show:after,
.html-publications-show .publication-external:after,
.html-publications-show .publication-header:after,
.html-publications-show .publication-content .govspeak .contact:after {
content: "";
display: block;
clear: both;
}
.html-publications-show:after,
.html-publications-show .publication-external:after,
.html-publications-show .publication-header:after,
.html-publications-show .publication-content .govspeak .contact:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.html-publications-show {
padding: 15px 15px 90px;
}
.html-publications-show .publication-header {
background: #2b8cc4;
padding: 10px 15px;
margin: 0 -15px;
}
.html-publications-show .publication-header .headings {
overflow: hidden;
}
.html-publications-show .publication-header .headings .document-type {
font-family: "nta", Arial, sans-serif;
font-size: 20px;
line-height: 1.11111;
font-weight: 400;
text-transform: none;
display: block;
margin: 20px 0 0;
}
.html-publications-show .publication-header .headings h1 {
font-family: "nta", Arial, sans-serif;
font-size: 32px;
line-height: 1.09375;
font-weight: 400;
text-transform: none;
font-weight: bold;
margin: 5px 0 15px;
color: #fff;
}
.html-publications-show .publication-header .headings p {
margin: 15px 0 20px;
color: #fff;
}
.html-publications-show .in-page-navigation {
color: #fff;
margin: 0 0 40px;
width: 100%;
}
.html-publications-show .in-page-navigation h2 {
font-weight: bold;
}
.html-publications-show .in-page-navigation ol {
padding-left: 30px;
list-style-type: decimal;
}
.html-publications-show .in-page-navigation ol li {
list-style: decimal;
font-weight: bold;
}
.html-publications-show .in-page-navigation a {
color: #fff;
text-decoration: none;
font-weight: normal;
}
.html-publications-show .publication-header a:hover {
color: #fff;
text-decoration: underline;
}
.html-publications-show .publication-content {
position: relative;
z-index: 2;
}
.html-publications-show .publication-content .govspeak h2, #whitehall-wrapper .html-publications-show .publication-content .govspeak h3 {
font-weight: bold;
color: black;
color: #0b0c0c;
margin-top: 30px;
}
.html-publications-show .publication-content .govspeak h2 .number {
background: #fff;
padding-right: 10px;
font-weight: bold;
}
.html-publications-show .publication-content .govspeak h3 {
font-weight: bold;
color: black;
color: #0b0c0c;
margin-top: 30px;
}
.html-publications-show .publication-content .govspeak h3 .number {
background: #fff;
color: #6f777b;
padding-right: 10px;
}
.html-publications-show .govspeak h4, .html-publications-show .govspeak h5, .html-publications-show .govspeak h6 {
font-size: 19px;
line-height: 1.31579;
}
@media (min-width: 641px) {
.html-publications-show .publication-header {
padding: 0 30px;
margin: 0 -15px;
}
.html-publications-show .publication-header .headings .document-type {
font-size: 27px;
line-height: 1.11111;
}
.html-publications-show .publication-header .headings .document-type {
margin: 75px 0 10px;
}
.html-publications-show .publication-header .headings h1 {
font-size: 48px;
line-height: 1.04167;
}
.html-publications-show .publication-header .headings h1 {
margin-bottom: 60px;
}
.html-publications-show .publication-content .govspeak {
width: 75%;
float: right;
}
.html-publications-show .publication-content .govspeak h2, #whitehall-wrapper .html-publications-show .publication-content .govspeak h3 {
margin-top: 80px;
}
.html-publications-show .publication-content .govspeak h2 {
font-size: 36px;
line-height: 1.11111;
}
.html-publications-show .publication-content .govspeak h2 {
margin: 60px 0 15px;
}
.html-publications-show .publication-content .govspeak h2 .number {
font-family: "nta", Arial, sans-serif;
font-size: 53px;
line-height: 1.03774;
font-weight: 400;
text-transform: none;
font-weight: bold;
position: absolute;
margin: -30px 0 0 -25%;
width: 22%;
padding: 35px 0 30px 3%;
}
.html-publications-show .publication-content .govspeak h2 .number {
font-size: 80px;
line-height: 1;
}
.html-publications-show .publication-content .govspeak h3 {
font-size: 27px;
line-height: 1.11111;
}
.html-publications-show .publication-content .govspeak h3 {
margin-top: 80px;
}
.html-publications-show .publication-content .govspeak h3 .number {
padding-right: 0;
display: inline-block;
width: 75px;
margin-left: -75px;
}
.html-publications-show .publication-content .govspeak h4, #whitehall-wrapper .html-publications-show .publication-content .govspeak h5, #whitehall-wrapper .html-publications-show .publication-content .govspeak h6 {
font-weight: bold;
color: black;
color: #0b0c0c;
margin-top: 30px;
}
.html-publications-show .back-to-content {
position: fixed;
bottom: 15px;
}
}
/* SFA logo */
#publication-banner {
display: flex;
}
#publication-banner .column-two-thirds {
align-self: flex-end;
}
#publication-banner .logo {
border-left: 3px solid #003a69;
padding-left: 0px;
}
#publication-banner .logo .organisation-logo {
display: block;
padding: 45px 0 0 10px;
background-image: url(https://assets.publishing.service.gov.uk/government/assets/crests/org_crest_27px-916806dcf065e7273830577de490d5c7c42f36ddec83e907efe62086785f24fb.png);
background-position: 9px top;
background-size: auto 40px;
background-repeat: no-repeat;
}
#publication-banner .logo .organisation-logo span {
font-size: 27px;
line-height: 1;
}
.govuk-box-highlight {
padding: 1em 0;
}
.govuk-box-highlight p {
margin-bottom: 0;
}
.govuk-box-highlight p, .govuk-box-highlight h1, .govuk-box-highlight h2 {
margin: 0 auto;
max-width: 30em;
}
.govuk-box-highlight p {
font-size: 24px;
line-height: 1.25;
}
.related {
border-top-color: #005ea5;
border-top-style: solid;
border-top-width: 10px;
margin-top: 20px;
}
.visually-hidden, .hidden, .vh {
display: none;
}
table {
margin-bottom: 20px;
}
tr.total th {
border: none;
}
tr.total td {
border-bottom: 2px solid #0b0c0c;
font-weight: 700;
}
.govuk-box-highlight a {
color: white;
}
.govuk-box-highlight a:hover {
color: #2b8cc4;
}
.govuk-box-highlight a:visited {
color: #912B88;
}
/* Alerts */
.alert-default {
border-color: #2b8cc4;
background-color: #eaf4f9;
}
.alert-warning {
border-color: #b10e1e;
background-color: #fceaeb;
}
.alert-success {
border-color: #28a197;
background-color: #eaf6f5;
}
/* directory pattern */
.a-to-z-nav a {
display: inline-block;
padding: .3em;
position: relative;
left: -.3em;
text-transform: uppercase;
}
.a-to-z-nav a ul#list li {
margin-bottom: 5px;
}
.sprint-11 #checklist .statusToDo, .sprint-15 #checklist .statusToDo, .sprint-19 #checklist .statusToDo {
background: black;
background: #0b0c0c;
color: white;
padding: 3px 5px;
text-transform: uppercase;
font-size: 0.65em;
display: block;
text-align: center;
}
.sprint-11 #checklist td:last-child, .sprint-15 #checklist td:last-child, .sprint-19 #checklist td:last-child {
padding-right: 0;
}
.sprint-723 .page-dashboard .grid-row .column-half {
min-height: 200px;
}
.sprint-723 .page-dashboard .grid-row .column-half p {
border-bottom: 3px solid #DEE0E2;
padding-bottom: 10px;
}
.sprint-723 .header-global {
padding: 0;
}
.sprint-723 #dothething {
margin-bottom: 30px;
float: right;
}
@media (min-width: 641px) {
.sprint-723 #dothething {
margin-top: 40px;
}
}
#dothething {
margin-bottom: 30px;
float: right;
}
@media (min-width: 641px) {
#dothething {
margin-top: 40px;
}
}
table .orgtype {
display: inline-block;
}
table .orgtype:first-letter {
text-transform: uppercase;
}
span.notification {
background: #005ea5;
padding: 3px 10px;
color: white;
font-weight: 900;
border-radius: 3px;
}
#account-switch ul li {
background: #f8f8f8;
padding: 10px;
border-left: 4px solid #bfc1c3;
margin-bottom: 10px;
overflow: auto;
}
#account-switch ul li h4 {
margin: 0;
width: 50%;
float: left;
}
#account-switch ul li dl {
width: 50%;
float: right;
text-align: right;
}
#account-switch ul li dl dt {
float: left;
padding-right: 5px;
}
#account-switch ul li dl dd {
font-weight: 900;
text-align: left;
}
#account-switch ul li.active {
border-color: #005ea5;
background: #bfd7e9;
}
.zxcvbn .passwordContainer {
position: relative;
float: left;
width: 100%;
clear: both;
overflow: visible;
}
.zxcvbn .passwordContainer #password {
width: 100%;
box-sizing: border-box;
float: left;
padding-right: 20%;
}
.zxcvbn .passwordContainer .show-pw {
border-left: 2px solid #0B0C0C;
border-right: none;
box-sizing: border-box;
color: #005ea5;
cursor: pointer;
display: inline-block;
float: left;
font-size: 17px;
padding: 4px 10px;
position: absolute;
right: 2px;
text-align: center;
text-decoration: underline;
width: 20%;
z-index: 999;
top: 2px;
line-height: 23px;
}
.zxcvbn .passwordContainer .peakHelp {
box-sizing: border-box;
position: absolute;
left: 0;
border: none;
padding: 4px;
border-left: 2px solid #6f777b;
cursor: pointer;
padding: 4px 10px;
color: gray;
width: 80%;
text-align: center;
display: none;
background: white;
top: 2px;
}
.zxcvbn .passwordContainer .password-strength {
display: block;
border: 2px solid #6f777b;
box-sizing: border-box;
height: 10px;
background: #ccc;
margin-top: 3px;
width: 100%;
float: left;
}
.zxcvbn .passwordContainer p {
float: left;
clear: both;
}
.zxcvbn .show-pw.hide-pw {
background: #6f777b;
color: white;
}
.zxcvbn .password-strength {
display: block;
border: 2px solid #6f777b;
box-sizing: border-box;
height: 10px;
background: #ccc;
border-top: 0;
}
.zxcvbn .password-strength span {
width: 20%;
box-sizing: border-box;
background: transparent;
height: 100%;
display: inline-block;
float: left;
-webkit-transition: width 2s, background-color 1s;
}
.zxcvbn .password-strength .veryweak {
background: #B10E1E;
}
.zxcvbn .password-strength .weak {
background: #F47738;
}
.zxcvbn .password-strength .good {
background: #2B8CC4;
}
.zxcvbn .password-strength .strong {
background: #28A197;
}
.zxcvbn .password-strength .verystrong {
background: #006435;
}
.zxcvbn .pw-strength {
font-weight: 900;
}
.zxcvbn + p {
color: #6f777b;
}
.zxcvbn + p .span {
color: #0b0c0c;
font-weight: 900;
}
.zxcvbn #passwordgroup .popover {
position: relative;
display: none;
left: 0;
background: #f8f8f8;
padding: 10px;
border-bottom: 4px solid #005ea5;
width: 100%;
box-sizing: border-box;
margin-bottom: 20px;
}
.zxcvbn #passwordgroup .popover p {
margin-bottom: 10px;
}
.zxcvbn #passwordgroup .popover .arrow {
width: 0;
height: 0;
border-style: solid;
border-width: 17px 10px 0 10px;
border-color: #005ea5 transparent transparent transparent;
position: absolute;
bottom: -18px;
display: block;
margin: 0 auto;
}
.zxcvbn #passwordgroup .popover .fa-circle {
color: black;
color: #0b0c0c;
font-size: 0.35em !important;
top: -4px;
position: relative;
margin: 0 10px 0 5px;
}
.zxcvbn #passwordgroup .popover .fa-check-circle {
color: #00823b;
font-size: 1em !important;
top: 0;
position: relative;
margin: 0 5px 0 0;
}
@media (min-width: 960px) {
.zxcvbn #passwordgroup .popover {
border-bottom: none;
border-left: 4px solid #005ea5;
}
.zxcvbn #passwordgroup .popover .arrow {
border-width: 10px 17.3px 10px 0;
border-color: transparent #005ea5 transparent transparent;
position: absolute;
left: -20px;
top: 53px;
}
}
@media (min-width: 641px) {
.zxcvbn .passwordContainer {
width: 50%;
}
.zxcvbn .passwordContainer .show-pw {
font-size: 18px;
padding: 5px 10px 6px;
line-height: 25px;
}
}
@media (min-width: 641px) {
#account-switch ul li {
width: 49%;
float: left;
box-sizing: border-box;
margin-right: 1%;
}
#account-switch ul li h4 {
width: 100%;
}
#account-switch ul li dl {
width: 100%;
}
#account-switch ul li:last-child {
margin-right: 0%;
width: 50%;
}
.zxcvbn .password-strength {
width: 50%;
}
}
@media (min-width: 960px) {
#account-switch ul {
overflow: auto;
}
#account-switch ul li {
width: 49%;
float: left;
box-sizing: border-box;
margin-right: 1%;
}
#account-switch ul li h4 {
width: 50%;
}
#account-switch ul li dl {
width: 50%;
}
#account-switch ul li:last-child {
margin-right: 0%;
width: 50%;
}
.zxcvbn #passwordgroup {
position: relative;
}
.zxcvbn #passwordgroup .popover {
position: absolute;
left: 55%;
background: #f8f8f8;
padding: 10px;
border-left: 4px solid #005ea5;
top: -15px;
width: 60%;
}
}
.phase-banner-beta .phase-tag {
background-color: #005ea5;
}
.alert-error {
border-color: #F47738;
background: #fcddcd;
}
.alert-error div > span {
background: #F47738;
}
.alert-warning {
border-color: #b10e1e;
background: #ecc3c7;
}
.alert-warning div > span {
background: #b10e1e;
}
.panel-filled {
background: #dee0e2;
}
/* search field header */
.search-header {
padding: 20px 0 0px;
margin-bottom: 30px;
position: relative;
}
.search-header input {
-webkit-appearance: none;
border-radius: 0;
font-family: "nta", Arial, sans-serif;
font-size: 16px;
line-height: 1.25;
font-weight: 400;
text-transform: none;
font-size-adjust: 0.5;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
margin: 0;
padding: 0 0 0 10px;
display: block;
height: 50px;
border: 2px solid #6f777b;
border-right: none;
line-height: 48px !important;
}
.search-submit {
position: absolute;
bottom: 0;
right: 0;
height: 50px;
width: 50px;
overflow: visible;
}
.search-submit button {
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
position: absolute;
z-index: 4;
right: 0;
top: 0;
width: 50px;
height: 50px;
border: none;
overflow: hidden;
text-indent: -5000px;
color: #fff;
background-color: #2b8cc4;
background-image: url(https://assets.publishing.service.gov.uk/frontend/search/search-button-fe10ecb60b18fdbcdadaf0918f1761b3847bf85d9924e3ca52a0110c648cb73a.png);
background-repeat: no-repeat;
background-position: -12.5% 50%;
}
.search-submit button:hover {
background-color: #267daf;
}
#results li {
position: relative;
overflow: auto;
border-bottom: 1px solid #BFC1C3;
margin: 10px 0;
padding: 0 0 15px;
float: left;
width: 100%;
box-sizing: border-box;
}
#results li h2 {
margin: 0 0 5px;
}
#results li.added {
outline: 3px solid #6F777B;
padding: 10px;
border-bottom: none;
background: #F8F8F8;
color: #0B0C0C;
margin: 10px -10px;
box-sizing: content-box;
}
#results li.added h2 {
margin: 0;
}
#results li.added div {
margin: 10px -10px -10px;
padding: 10px;
color: #0b0c0c;
border-top: 1px solid #BFC1C3;
float: left;
width: 100%;
font-size: 16px;
}
@media (min-width: 641px) {
.search-header {
width: 66.666%;
}
}
.header-global {
width: 33%;
float: left;
padding: 0;
}
@media (min-width: 769px) {
#global-header .header-wrapper .header-global .header-logo {
width: 100% !important;
}
}
#global-header .header-proposition {
padding-top: 5px;
}
.switch-levy-account table .active {
background: #ffefd1;
}
.attachment-thumb img {
display: block;
width: 99px;
height: 140px;
background: white;
outline: 5px solid rgba(11, 12, 12, 0.1);
-webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
-moz-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
}
.notify {
margin-bottom: 30px;
position: relative;
border-left: 5px solid #2B8CC4;
background: #cae2f0;
padding: 1px 20px;
}
.notify i {
position: absolute;
top: 10px;
right: 10px;
}
main#content[class*="test-react-"], main[class*="test-react-"].header-inner {
height: 100%;
background: white;
position: absolute;
max-width: 100%;
width: 100%;
padding-bottom: 0;
}
main[class*="test-react-"] #countdown, main[class*="test-react-"] #countdown div, main[class*="test-react-"] #word, main[class*="test-react-"] #word div, main[class*="test-react-"] #response {
height: 100%;
box-sizing: border-box;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-flex: 0;
-ms-flex: 0 1 auto;
flex: 0 1 auto;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
text-align: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
main[class*="test-react-"] #countdown div, main[class*="test-react-"] #countdown div div, main[class*="test-react-"] #word div, main[class*="test-react-"] #word div div, main[class*="test-react-"] #response div {
height: 100%;
z-index: 1;
width: 100%;
}
main[class*="test-react-"] #response div {
text-align: left;
width: 50vw;
margin: 0 auto;
}
.agreement-cover section {
margin-bottom: 30px;
overflow: auto;
}
.agreement-cover section .attachment {
position: relative;
padding: 15px 0 0 129px;
}
.agreement-cover section .attachment .attachment-thumb {
position: relative;
float: left;
margin-top: 5px;
margin-left: -124px;
padding-bottom: 15px;
}
.agreement-cover section .detail {
position: relative;
padding: 15px 0 0 0px;
}
@media (min-width: 641px) {
.agreement-cover section .attachment {
margin: 30px 0;
}
.agreement-cover .head-section {
float: left;
clear: both;
width: 33.33333%;
}
.agreement-cover .content {
float: right;
width: 66.66667%;
}
.agreement-cover address {
margin-top: 48px;
}
}
.changeHighlightCopy {
font-weight: 900;
}
.govuk-sticky-element--stuck-to-window {
bottom: 0;
position: fixed;
}
.back-to-content {
font-family: "nta", Arial, sans-serif;
font-size: 19px;
line-height: 1.31579;
font-weight: 400;
text-transform: none;
display: inline-block;
margin-bottom: 15px;
}
.back-to-content:before {
content: "\2191";
}
.logic-page {
background: white;
position: absolute;
width: 100%;
height: 100%;
z-index: 999;
display: block;
top: 0;
left: 0;
margin: 0px !important;
padding: 60px;
}
dl.confirm-details dd {
font-weight: 900;
width: auto;
float: left;
padding-right: 10px;
}
/*New FILTER menu style*/
@media (min-width: 641px) {
.vertical-padding-medium-top {
padding-top: 30px;
padding-bottom: 30px;
}
}
.impact-link .impact-link-figure {
font-size: 16px;
display: inline-block;
vertical-align: text-top;
}
.impact-link .impact-link-label {
display: inline-block;
/*padding-left: 0.5em;*/
white-space: normal;
width: 75%;
vertical-align: text-top;
/*text-decoration: underline;*/
}
.impact-link {
font-size: 16px;
font-weight: bold;
line-height: 1.1;
text-decoration: none;
display: block;
white-space: nowrap;
padding: 5px;
background-color: #dee0e2;
margin-bottom: 2px;
}
.impact-link:visited {
color: #005ea5;
}
.impact-link:hover {
color: #2b8cc4;
}
.impact-link.active {
color: black;
color: #0b0c0c;
background-color: white;
border: 1px solid;
}
.impact-link.active .impact-link-label {
text-decoration: none;
}
@media (min-width: 641px) {
.impact-link .impact-link-label {
padding-left: 0.5em;
}
}
@media (min-width: 769px) {
.impact-link {
font-size: 24px;
padding: 10px;
min-height: 55px;
}
}
@media (min-width: 769px) {
.impact-link .impact-link-figure {
height: 80px;
font-size: 60px;
line-height: 0.9;
}
}
table.form tbody > tr th {
border-bottom: none;
}
table.form td {
line-height: 2.315789;
}
table.form td .block-label.selection-button-radio::before {
top: -12px;
}
table.form td .block-label.selection-button-radio::after {
top: -3px;
}
/*End of filter menu style*/
@media (min-width: 768px) {
ul.three-column {
clear: both;
width: 100%;
display: block;
overflow: auto;
}
ul.three-column li {
width: 33%;
float: left;
}
}
#app {
width: 100%;
overflow: auto;
}
#help2 {
background: #DEE0E2;
padding: 20px;
}
.sprint-31 .bingo > div div {
color: white;
padding: 15px;
}
.sprint-31 .bingo > div div .heading-medium {
margin: 0 0 30px;
}
.sprint-31 .bingo > div div a {
display: block;
margin: -15px;
padding: 11px;
background: white;
}
.sprint-31 .bingo div:nth-child(1) div {
background: #2E358B;
}
.sprint-31 .bingo div:nth-child(1) div a {
border: 4px solid #2E358B;
}
.sprint-31 .bingo div:nth-child(2) div {
background: #912B88;
}
.sprint-31 .bingo div:nth-child(2) div a {
border: 4px solid #912B88;
}
.sprint-31 .bingo div:nth-child(3) div {
background: #D53880;
}
.sprint-31 .bingo div:nth-child(3) div a {
border: 4px solid #D53880;
}
.sprint-31 .bingo-1 > div div, .sprint-31 .bingo-2 > div div, .sprint-31 .bingo-3 > div div, .sprint-31 .bingo-4 > div div {
color: white;
padding: 15px;
}
.sprint-31 .bingo-1 > div div .heading-medium, .sprint-31 .bingo-2 > div div .heading-medium, .sprint-31 .bingo-3 > div div .heading-medium, .sprint-31 .bingo-4 > div div .heading-medium {
margin: 0 0 30px;
}
.sprint-31 .bingo-1 > div div a, .sprint-31 .bingo-2 > div div a, .sprint-31 .bingo-3 > div div a, .sprint-31 .bingo-4 > div div a {
display: block;
margin: -15px;
padding: 11px;
background: white;
}
.sprint-31 .bingo-1 div div {
background: #2E358B;
}
.sprint-31 .bingo-1 div div a {
border: 4px solid #2E358B;
}
.sprint-31 .bingo-2 div div {
background: #912B88;
}
.sprint-31 .bingo-2 div div a {
border: 4px solid #912B88;
}
.sprint-31 .bingo-3 div div {
background: #D53880;
}
.sprint-31 .bingo-3 div div a {
border: 4px solid #D53880;
}
.sprint-31 .bingo-4 div div {
background: #6F72AF;
}
.sprint-31 .bingo-4 div div a {
border: 4px solid #6F72AF;
}
.page-navigation {
padding-top: 10px;
}
.page-navigation .description {
display: block;
}
.page-navigation .counter {
display: block;
font-size: 14px;
}
@media (max-width: 640px) {
.page-navigation .hide-mob {
display: none;
}
}
.page-navigation__btn {
display: inline-block;
font-size: 1em;
margin-right: -4px;
overflow: hidden;
padding: 1.2em 0.6em;
text-decoration: none;
vertical-align: top;
width: 50%;
box-sizing: border-box;
}
.page-navigation__btn:hover,
.page-navigation__btn:focus {
background-color: #F8F8F8;
}
.page-navigation__btn .arrow-button {
color: #2e358b;
float: left;
font-size: 3.5em;
margin-right: 10px;
margin-top: -0.2em;
}
.page-navigation__btn.previous {
text-align: left;
}
.page-navigation__btn.next {
text-align: right;
}
.page-navigation__btn.next .arrow-button {
float: right;
margin-left: 10px;
margin-right: 0;
}
.page-navigation__btn:hover {
text-decoration: underline;
}
.page-navigation__btn:hover .arrow-button {
color: #2e8aca;
}
.page-navigation__btn:active,
.page-navigation__btn:focus {
background-color: #f8f8f8;
}
.colspan {
text-align: center;
padding-left: 1em;
padding-right: 1em;
}
.cofunding {
background: #dee0e2;
}
.sfa-form-control-after {
font-size: 16px;
line-height: 1.25;
display: block;
color: #6f777b;
padding-top: 2px;
padding-bottom: 2px;
font-size: 19px;
line-height: 1.31579;
}
.text-box-with-unit-before-with-error,
.text-box-with-unit-before, .text-box-with-unit-after-with-error,
.text-box-with-unit-after {
display: -moz-inline-stack;
display: inline-block;
}
.text-box-with-unit-before-with-error,
.text-box-with-unit-before {
margin-left: -40px;
padding-left: 30px;
}
.text-box-with-unit-after-with-error,
.text-box-with-unit-after {
text-align: right;
margin-right: -40px;
padding-right: 30px;
}
.text-box-unit {
display: -moz-inline-stack;
display: inline-block;
color: #6f777b;
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 16px;
line-height: 1.25;
font-weight: bold;
width: 40px;
position: relative;
z-index: 10;
pointer-events: none;
text-align: center;
}
@media (min-width: 641px) {
.text-box-unit {
font-size: 19px;
line-height: 1.31579;
}
}
.text-box-unit-qualifier {
position: absolute;
left: -9999em;
}
table .details {
padding: 0.6315789474em 1.0526315789em 0.4736842105em;
}
dl.course-details {
margin-bottom: 15px;
overflow: auto;
}
dl.course-details dt {
font-weight: 900;
float: left;
display: inline-block;
clear: left;
}
dl.course-details dd {
float: left;
display: inline-block;
}
td.highlight, th.highlight {
background: #dee0e2;
}
table.responsive thead {
display: none;
}
table.responsive tr {
margin-bottom: 10px;
display: block;
float: lefåt;
width: 100%;
box-sizing: border-box;
}
table.responsive tr td {
display: block;
text-align: right;
clear: left;
float: left;
width: 100%;
padding: 10px 10px 8px;
box-sizing: border-box;
border-bottom: 1px dotted #bfc1c3;
}
table.responsive tr td:before {
content: attr(data-label);
float: left;
font-weight: bold;
padding-right: 10px;
}
table.responsive tr td:last-child {
border-bottom: none;
}
table.responsive tr td:empty {
display: none;
}
table.responsive tr.total {
border: 2px solid #000;
}
table.responsive thead {
display: table-header-group;
}
table.responsive tr {
display: table-row;
border: none;
float: none;
margin: 0;
}
table.responsive tr th, table.responsive tr td {
display: table-cell;
text-align: left;
float: none;
clear: none;
padding: 0.6em 1em 0.5em;
border-bottom-style: solid;
width: auto;
}
table.responsive tr th:first-child, table.responsive tr td:first-child {
padding-left: 0;
}
table.responsive tr th:last-child, table.responsive tr td:last-child {
padding-right: 0;
}
table.responsive tr th:before, table.responsive tr td:before {
display: none;
}
table.responsive tr th.numeric, table.responsive tr td.numeric {
text-align: right;
}
table.responsive tr th.colgroup, table.responsive tr td.colgroup {
text-align: center;
}
table.responsive tr th:last-child, table.responsive tr td:last-child {
border-bottom: 1px solid #bfc1c3;
}
table.responsive tr.total {
border: none;
}
table.responsive tr.total td {
border-bottom: none;
}
table.responsive tr.total td.total {
border-bottom: 2px solid #000;
}
table.responsive tr.total td:last-child {
padding-left: 0;
}
table.responsive tr th.tw-5 {
width: 5%;
}
table.responsive tr th.tw-10 {
width: 10%;
}
table.responsive tr th.tw-15 {
width: 15%;
}
table.responsive tr th.tw-20 {
width: 20%;
}
table.responsive tr th.tw-25 {
width: 25%;
}
table.responsive tr th.tw-30 {
width: 30%;
}
table.responsive tr th.tw-35 {
width: 35%;
}
table.responsive tr th.tw-40 {
width: 40%;
}
table.responsive tr th.tw-45 {
width: 45%;
}
table.responsive tr th.tw-50 {
width: 50%;
}
table.responsive tr th.tw-55 {
width: 55%;
}
table.responsive tr th.tw-60 {
width: 60%;
}
table.responsive tr th.tw-65 {
width: 65%;
}
table.responsive tr th.tw-70 {
width: 70%;
}
.nowrap {
white-space: nowrap;
}
#welcome .section {
position: relative;
}
.todo, .done {
margin-bottom: 15px !important;
}
.todo {
background: #fff;
border: 1px solid #bfc1c3;
padding: 15px;
margin-bottom: 15px;
overflow: auto;
}
.done {
background: #2e358b;
border-color: #2e358b;
color: white;
overflow: auto;
margin: 0;
position: relative;
}
.done:hover {
background: #232868;
background: #252b6b;
cursor: pointer;
}
.done h3 {
float: left;
}
.done h3 span a {
color: white;
font-weight: 400;
top: -3px;
position: relative;
left: 5px;
cursor: pointer;
}
.done p {
float: left;
clear: left;
}
.done p + span {
font-size: 24px;
font-weight: 900;
float: right;
position: absolute;
top: 40px;
right: 20px;
}
.done p a {
font-weight: 900;
color: #fff;
}
.account-dashboard-8 #welcome .todo {
border: none;
border-left: 5px solid #2e358b;
}
.account-dashboard-8 #welcome .todo span {
display: inline-block;
float: left;
padding: 0px 30px 0 15px;
}
.account-dashboard-8 #welcome .todo span.not-done {
float: right;
}
.account-dashboard-8 #welcome .todo p {
display: inline-block;
width: 50%;
padding: 5px 0;
margin: 0;
}
.account-dashboard-8 #welcome .done {
background: #fff;
padding: 15px;
margin-bottom: 15px;
overflow: auto;
border-left: 5px solid #28a197;
}
.account-dashboard-8 #welcome .done span {
display: inline-block;
float: left;
padding: 0px 30px 0 15px;
}
.account-dashboard-8 #welcome .done span.check {
float: right;
}
.account-dashboard-8 #welcome .done p {
display: inline-block;
width: 50%;
padding: 5px 0;
margin: 0;
}
#opc_button {
display: block;
margin: 15px 0;
}
#opc_dropdown {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 16px;
line-height: 1.25;
width: 100%;
padding: 5px 4px 4px;
border: 2px solid #0b0c0c;
border-radius: 0;
width: 50%;
font-size: 19px;
line-height: 1.3157894737;
margin: 0 0 15px;
}
#opc_dropdown:focus {
outline: 3px solid #ffbf47;
outline-offset: 0;
}
#opc_dropdown option {
font-weight: normal;
display: block;
white-space: pre;
min-height: 1.2em;
padding: 0px 2px 1px;
}
.list.list-links dt, .list.list-links dd {
float: left;
box-sizing: border-box;
}
.list.list-links dt {
font-weight: bold;
max-width: 20%;
padding-right: 7.5px;
clear: left;
margin-bottom: 1em;
}
.list.list-links dt b {
font-weight: 900;
}
@media (max-width: 640px) {
.list.list-links dt, .list.list-links dd {
float: none;
width: 100%;
max-width: none;
padding: 0;
}
}
.list.list-links dt {
margin-bottom: 0 !important;
}
@media (max-width: 640px) {
.list.list-links dt {
float: left;
clear: both;
display: inline-block;
width: auto;
margin-right: .5rem;
font-weight: normal;
margin-bottom: 0 !important;
}
}
.list.list-links dt {
max-width: none;
font-weight: normal;
}
li.added + li {
display: none;
}
.filters {
display: block;
margin: 0 0 20px 0;
border: 1px solid #dee0e2;
overflow: hidden;
}
.filters .toggler {
clear: both;
background: #dee0e2;
box-sizing: border-box;
display: block;
width: 100%;
padding: 5px 30px 5px 10px;
margin: 0;
top: 0;
float: none;
position: relative;
cursor: default;
}
.filters .toggled-content {
padding: 20px;
}
#signinsignup {
position: relative;
}
#OR {
height: 0;
}
#OR:after {
content: "OR";
position: relative;
width: 0px;
top: 140px;
left: -120px;
display: inline;
background: gray;
border-radius: 20px;
padding: 6px 6px 4px 6px;
color: white;
font-weight: 900;
line-height: normal;
}
.data {
padding: 20px 10px;
margin: 0;
min-height: 160px;
position: relative;
}
.data h1 + h1, .data h1 + h2, .data h1 + h3, .data h1 + h4, .data h1 + h5, .data h1 + h6, .data h2 + h1, .data h2 + h2, .data h2 + h3, .data h2 + h4, .data h2 + h5, .data h2 + h6, .data h3 + h1, .data h3 + h2, .data h3 + h3, .data h3 + h4, .data h3 + h5, .data h3 + h6, .data h4 + h1, .data h4 + h2, .data h4 + h3, .data h4 + h4, .data h4 + h5, .data h4 + h6, .data h5 + h1, .data h5 + h2, .data h5 + h3, .data h5 + h4, .data h5 + h5, .data h5 + h6, .data h6 + h1, .data h6 + h2, .data h6 + h3, .data h6 + h4, .data h6 + h5, .data h6 + h6 {
position: absolute;
bottom: 15px;
}
.data.fuschia {
background: #912b88;
color: #fff;
}
.data.fuschia:hover {
background: #6d2066;
background: #702369;
}
.data.orange {
background: #f47738;
color: #fff;
}
.data.orange:hover {
background: #b7592a;
background: #ba5c2d;
}
.data.purple {
background: #2e358b;
color: #fff;
}
.data.purple:hover {
background: #232868;
background: #252b6b;
}
.data.fuscia {
background: #912b88;
color: #fff;
}
.data.fuscia:hover {
background: #6d2066;
background: #702369;
}
.data.mauve {
background: #6f72af;
color: #fff;
}
.data.mauve:hover {
background: #535683;
background: #565986;
}
.data.pink {
background: #d53880;
color: #fff;
}
.data.pink:hover {
background: #a02a60;
background: #a32d63;
}
.data.red {
background: #df3034;
color: #fff;
}
.data.red:hover {
background: #a72427;
background: #aa272a;
}
.data.blue {
background: #005ea5;
color: #fff;
}
.data.blue:hover {
background: #00477c;
background: #034a7f;
}
.data.grey {
background: #bfc1c3;
color: #0b0c0c;
}
.data.grey:hover {
background: gray;
background: #858686;
}
.data span {
text-decoration: underline;
margin: 5px -10px -20px;
padding: 10px;
background: rgba(255, 255, 255, 0.2);
display: block;
font-weight: 900;
}
.data span i {
visibility: hidden;
}
.data:hover span i {
visibility: visible;
}
* {
box-sizing: border-box;
}
.timeline {
width: 100%;
background: #fff;
padding: 10px;
position: relative;
}
.timeline:before {
content: '';
position: absolute;
top: 0px;
left: 0;
bottom: 0px;
width: 1px;
background: #ddd;
}
.entry {
clear: both;
text-align: left;
position: relative;
margin-bottom: 15px;
}
.entry .time {
color: #6f777b;
}
.entry a.name {
color: #0b0c0c;
}
.entry a.name:hover {
color: #6f777b;
}
.entry .title {
color: #6f777b;
}
.entry .title h3 {
margin: 0;
}
.entry .title p {
margin: 0;
}
.entry.start .title:after {
content: "Start";
position: absolute;
width: 16px;
height: 16px;
border: 1px solid #ddd;
background-color: #ddd;
border-radius: 100%;
margin-top: 47px;
left: -19px;
z-index: 99;
text-indent: 20px;
font-weight: 900;
}
.entry .body p {
line-height: 1.4em;
}
.entry .body p:first-child {
margin-top: 0;
font-weight: 400;
}
.entry .body ul {
color: #aaa;
padding-left: 0;
list-style-type: none;
}
.entry .body ul li:before {
content: "–";
margin-right: .5em;
}
.entry .body:before {
content: '';
position: absolute;
width: 8px;
height: 8px;
border: 1px solid #ddd;
background-color: #ddd;
border-radius: 100%;
margin-top: 4px;
left: -15px;
z-index: 99;
}
@media (min-width: 640px) {
.timeline {
padding: 0 15px;
}
.timeline:before {
left: calc(33% + 15px);
}
.timeline:after {
content: "";
display: table;
clear: both;
}
.entry {
margin-bottom: 0;
}
.entry.start .title:after {
display: none;
}
.entry.start .body:after {
content: "Start";
position: absolute;
width: 16px;
height: 16px;
border: 1px solid #ddd;
background-color: #ddd;
border-radius: 100%;
margin-top: 20px;
right: auto;
z-index: 99;
margin-left: -34px;
text-indent: 33px;
font-weight: 400;
color: gray;
line-height: 16px;
}
.entry .title {
width: 33%;
margin-bottom: .5em;
float: left;
padding-right: 15px;
text-align: right;
position: relative;
top: -5px;
}
.entry .title:before {
content: '';
position: absolute;
width: 8px;
height: 8px;
border: 1px solid #ddd;
background-color: #ddd;
border-radius: 100%;
top: 15%;
right: -15px;
z-index: 99;
}
.entry .body {
width: 66%;
margin: 0 0 30px;
padding-left: 30px;
float: right;
position: relative;
top: -5px;
}
.entry .body:before {
display: none;
}
}
.multiple-choice {
display: block;
float: none;
clear: left;
position: relative;
padding: 0 0 0 38px;
margin-bottom: 10px;
}
.multiple-choice input {
position: absolute;
cursor: pointer;
left: 0;
top: 0;
width: 38px;
height: 38px;
z-index: 1;
margin: 0;
zoom: 1;
filter: alpha(opacity=0);
opacity: 0;
}
@media (min-width: 641px) {
.multiple-choice {
float: left;
}
}
@media (min-width: 641px) {
.multiple-choice label {
float: left;
padding-top: 7px;
padding-bottom: 7px;
}
}
.multiple-choice label {
cursor: pointer;
padding: 8px 10px 9px 12px;
display: block;
-ms-touch-action: manipulation;
touch-action: manipulation;
}
.multiple-choice [type=checkbox] + label::before {
content: "";
border: 2px solid;
background: transparent;
width: 34px;
height: 34px;
position: absolute;
top: 0;
left: 0;
}
.multiple-choice [type=checkbox] + label::after {
content: "";
border: solid;
border-width: 0 0 5px 5px;
background: transparent;
width: 17px;
height: 7px;
position: absolute;
top: 10px;
-moz-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
-webkit-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
transform: rotate(-45deg);
zoom: 1;
filter: alpha(opacity=0);
opacity: 0;
}
.multiple-choice input:checked + label::after {
zoom: 1;
filter: alpha(opacity=100);
opacity: 1;
}
.multiple-choice option:disabled {
color: gray;
background: red;
}
table.footable > tfoot > tr.footable-paging > td > ul.pagination {
display: block;
}
.footable .pagination > li > a, .footable .pagination > li > span {
border: none;
background: none;
}
.footable .pagination li, ul.pagination > li.footable-page.visible {
display: none;
}
.footable .pagination li[data-page="next"], .footable .pagination li[data-page="prev"] {
display: inline-block;
font-size: 3.5em;
}
.footable .pagination li[data-page="next"] {
float: right;
}
.footable .pagination li[data-page="next"] a:before {
content: "Next page";
font-size: 19px;
position: relative;
top: -10px;
}
.footable .pagination li[data-page="prev"] {
float: left;
}
.footable .pagination li[data-page="prev"] a:after {
content: "Previous page";
font-size: 19px;
position: relative;
top: -10px;
}
table.footable > tfoot > tr.footable-paging > td > span.label {
display: inline-block;
margin: 0 0 10px;
padding: 4px 10px;
top: 40px;
position: relative;
background: white;
color: #0b0c0c;
font-weight: 400;
font-size: 19px;
}
#content.manage-apprentices table.dataTable, .manage-apprentices.header-inner table.dataTable, #content.manage-apprentices table.dataTable th, .manage-apprentices.header-inner table.dataTable th, #content.manage-apprentices table.dataTable td, .manage-apprentices.header-inner table.dataTable td {
font-size: 16px;
}
#content.manage-apprentices.full-width, .manage-apprentices.full-width.header-inner {
width: 100%;
max-width: 100%;
margin: 0;
}
#content.manage-apprentices.full-width header, .manage-apprentices.full-width.header-inner header {
background: #dee0e2;
border-bottom: 1px solid #bfc1c3;
padding: 15px;
overflow: auto;
}
#content.manage-apprentices.full-width nav, .manage-apprentices.full-width.header-inner nav {
border-bottom: 1px solid #bfc1c3;
padding: 10px;
overflow: auto;
}
#content.manage-apprentices.full-width nav ul, .manage-apprentices.full-width.header-inner nav ul {
list-style-type: none;
}
#content.manage-apprentices.full-width nav ul li, .manage-apprentices.full-width.header-inner nav ul li {
display: inline-block;
float: left;
margin: 0 10px 0 0;
}
#content.manage-apprentices.full-width article table th a, .manage-apprentices.full-width.header-inner article table th a, #content.manage-apprentices.full-width article table a, .manage-apprentices.full-width.header-inner article table a {
text-decoration: none;
}
#content.manage-apprentices.full-width article table .fa-check, .manage-apprentices.full-width.header-inner article table .fa-check, #content.manage-apprentices.full-width article table .fa-check + span, .manage-apprentices.full-width.header-inner article table .fa-check + span {
color: #006435;
}
#content.manage-apprentices.full-width article table .fa-pause, .manage-apprentices.full-width.header-inner article table .fa-pause, #content.manage-apprentices.full-width article table .fa-pause + span, .manage-apprentices.full-width.header-inner article table .fa-pause + span {
color: #f47738;
}
#content.manage-apprentices.full-width article table .fa-stop, .manage-apprentices.full-width.header-inner article table .fa-stop, #content.manage-apprentices.full-width article table .fa-stop + span, .manage-apprentices.full-width.header-inner article table .fa-stop + span {
color: #b10e1e;
}
#activityFilters input[type="text"], #activityFilters select, #ManageFilters input[type="text"], #ManageFilters select {
width: 100%;
}
.change-email input[type="email"]:disabled {
color: #6f777b;
}
.account-dashboard-7, .individual-apprentice, .apprentices-index {
/*----- Tabs content -------*/
}
.account-dashboard-7 .tabs-menu, .individual-apprentice .tabs-menu, .apprentices-index .tabs-menu {
float: left;
border-bottom: 1px solid #d4d4d1;
width: 100%;
padding-left: 10px;
}
.account-dashboard-7 .tabs-menu li, .individual-apprentice .tabs-menu li, .apprentices-index .tabs-menu li {
display: inline-block;
float: left;
text-align: center;
margin-right: 5px;
color: #000;
background-color: #dee0e2;
border-top: 1px solid #bfc1c3;
border-right: 1px solid #bfc1c3;
border-left: 1px solid #bfc1c3;
bottom: -1px;
line-height: 44px;
}
.account-dashboard-7 .tabs-menu li:hover, .individual-apprentice .tabs-menu li:hover, .apprentices-index .tabs-menu li:hover {
line-height: 51px;
margin-top: -6px;
margin-bottom: -1px;
background: #f8f8f8;
text-decoration: underline;
}
.account-dashboard-7 .tabs-menu li.current, .individual-apprentice .tabs-menu li.current, .apprentices-index .tabs-menu li.current {
position: relative;
background-color: #fff;
border-bottom: 1px solid #fff;
z-index: 5;
line-height: 50px;
margin-bottom: -1px;
margin-top: -7px;
}
.account-dashboard-7 .tabs-menu li a, .individual-apprentice .tabs-menu li a, .apprentices-index .tabs-menu li a {
padding: 15px;
margin-top: 0px;
color: #005EA5;
text-decoration: none;
}
.account-dashboard-7 .tabs-menu .current a, .individual-apprentice .tabs-menu .current a, .apprentices-index .tabs-menu .current a {
color: #000;
}
.account-dashboard-7 .tabs-menu li a:focus, .individual-apprentice .tabs-menu li a:focus, .apprentices-index .tabs-menu li a:focus {
background: none;
border: 0;
outline: 0;
}
.account-dashboard-7 .tab-container, .individual-apprentice .tab-container, .apprentices-index .tab-container {
margin-bottom: 10px;
}
.account-dashboard-7 .tab-content, .individual-apprentice .tab-content, .apprentices-index .tab-content {
padding: 0px;
display: none;
}
.account-dashboard-7 #tab-1, .individual-apprentice #tab-1, .apprentices-index #tab-1 {
display: block;
float: left;
overflow: auto;
border: 1px solid #bfc1c3;
border-top: 0;
padding: 15px;
}
.account-dashboard-7 #tab-1 div, .individual-apprentice #tab-1 div, .apprentices-index #tab-1 div {
border-bottom: 1px solid #bfc1c3;
padding: 10px;
position: relative;
}
.account-dashboard-7 #tab-1 div:last-child, .individual-apprentice #tab-1 div:last-child, .apprentices-index #tab-1 div:last-child {
border-bottom: none;
}
.account-dashboard-7 #tab-1 div a.dismiss, .individual-apprentice #tab-1 div a.dismiss, .apprentices-index #tab-1 div a.dismiss {
float: right;
font-size: 16px;
display: none;
}
.account-dashboard-7 #tab-1 div p, .individual-apprentice #tab-1 div p, .apprentices-index #tab-1 div p {
margin: 0;
}
.account-dashboard-7 #tab-1 div.see-all, .individual-apprentice #tab-1 div.see-all, .apprentices-index #tab-1 div.see-all {
border-left: white;
padding-left: 20px "";
}
.account-dashboard-7 #tab-2, .individual-apprentice #tab-2, .apprentices-index #tab-2 {
display: block;
float: left;
overflow: auto;
border: 1px solid #bfc1c3;
border-top: 0;
padding: 15px;
}
.account-dashboard-7 .timeline, .individual-apprentice .timeline, .apprentices-index .timeline {
padding-top: 0px;
padding-left: 0;
padding-bottom: 0px;
margin-left: 5px;
position: relative;
width: 100%;
background: #FFF;
}
.account-dashboard-7 .timeline .body, .individual-apprentice .timeline .body, .apprentices-index .timeline .body {
width: 100%;
margin-left: 20px;
margin-bottom: 30px;
position: relative;
}
.account-dashboard-7 .timeline .body div span, .individual-apprentice .timeline .body div span, .apprentices-index .timeline .body div span {
color: #6f777b;
}
.account-dashboard-7 .timeline .body:before, .individual-apprentice .timeline .body:before, .apprentices-index .timeline .body:before {
content: "";
position: absolute;
width: 8px;
height: 8px;
background-color: #BFC1C3;
border-radius: 100%;
left: -25px;
top: 24%;
z-index: 99;
}
.account-dashboard-7 .timeline:before, .individual-apprentice .timeline:before, .apprentices-index .timeline:before {
content: "";
position: absolute;
top: 0px;
bottom: 0px;
width: 1px;
background: #BFC1C3;
top: 30px;
bottom: 10px;
left: -1px;
}
.notification-row {
padding: 20px 0 30px 0;
}
.dismiss {
display: none;
}
dl {
clear: both;
}
dl dt {
float: left;
margin-right: 5px;
font-weight: 900;
}
.label {
display: inline;
padding: 0 .25em 0;
font-size: 16px;
font-weight: 400;
line-height: 1;
color: #fff;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: 0;
}
.label.white {
background: #fff;
color: #0b0c0c;
}
.label.blue, .label.mya {
background: #005ea5;
}
.label.orange, .label.commitments {
background: #f47738;
}
.label.purple, .label.recruit {
background: #2e358b;
}
.label.mellow-red, .label.sfs {
background: #df3034;
}
.label.grey {
background: #dee0e2;
color: #0b0c0c;
}
.label.green {
background: #85994b;
color: #fff;
}
#test32 {
padding: 15px;
border: 4px solid #d53880;
}
.transfers-index .data {
cursor: pointer;
}
.select2-container--default .select2-selection--multiple {
border-radius: 0 !important;
border: 2px solid #0b0c0c !important;
}
#finance-bingo.calculator .data {
min-height: 100px;
}
#finance-bingo.calculator .data:nth-child(4) {
min-height: 125px;
}
#Codepad {
margin-top: 30px;
}
input.disabled, input:disabled {
opacity: 0.5;
}
.text-box-with-month-after-with-error, .text-box-with-month-after {
margin-right: -80px;
padding-right: 80px;
}
table.small th, table.small td {
font-size: 16px;
}
sup {
font-size: 0.75em;
top: -0.5em;
}
.elements-index .heading-medium {
margin: 1em 0 0 0;
}
.elements-index .divider {
margin-top: 4em;
}
.heading-xlarge {
margin-top: 1.25em;
margin-bottom: 0.625em;
}
.heading-contents {
margin-top: 3em;
}
.list-contents li {
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 14px;
line-height: 1.1428571429;
font-size: 16px;
line-height: 1.25;
}
.lead-in {
margin-bottom: 0;
}
.list-bullet {
margin-bottom: 45px;
}
.list-underline {
border-top: 1px solid #bfc1c3;
}
.list-underline li {
border-bottom: 1px solid #bfc1c3;
padding: 2px 0 3px 0;
}
.list-underline a {
text-decoration: none;
}
.no-top-margin {
margin-top: 0;
}
.example {
position: relative;
overflow: hidden;
border: 1px solid #bfc1c3;
margin-top: 15px;
margin-bottom: 15px;
padding-top: 30px;
padding-right: 15px;
padding-bottom: 15px;
padding-left: 15px;
padding-top: 45px;
padding-right: 30px;
padding-bottom: 30px;
padding-left: 30px;
width: 900px;
}
.example:before {
content: "EXAMPLE";
position: absolute;
top: 0;
left: 0;
padding: 0.2105263158em 0.7894736842em 0.2105263158em 0.7894736842em;
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 12px;
line-height: 1.25;
font-size: 14px;
line-height: 1.4285714286;
background: #bfc1c3;
color: white;
}
.example .highlight {
font-style: normal;
color: #0076c0;
}
.example .list-bullet {
margin-bottom: 20px;
}
.example .column-quarter {
width: 202.5px;
}
.example .column-half {
width: 435px;
}
.example .column-third {
width: 280px;
}
.example .column-two-thirds {
width: 590px;
}
.example img {
width: 100%;
}
.example-grid p {
width: 100%;
background: url("/public/images/examples/grid.png") 0 0 repeat;
margin-bottom: 0;
height: 30px;
height: 60px;
overflow: hidden;
text-indent: -999em;
}
.swatch {
width: 60px;
height: 60px;
-webkit-border-radius: 100%;
-moz-border-radius: 100%;
border-radius: 100%;
margin: 0 auto 15px auto;
}
.swatch-purple {
background-color: #2e358b;
}
.swatch-mauve {
background-color: #6f72af;
}
.swatch-fuschia {
background-color: #912b88;
}
.swatch-pink {
background-color: #d53880;
}
.swatch-baby-pink {
background-color: #f499be;
}
.swatch-red {
background-color: #b10e1e;
}
.swatch-mellow-red {
background-color: #df3034;
}
.swatch-orange {
background-color: #f47738;
}
.swatch-brown {
background-color: #b58840;
}
.swatch-yellow {
background-color: #ffbf47;
}
.swatch-green {
background-color: #006435;
}
.swatch-grass-green {
background-color: #85994b;
}
.swatch-turquoise {
background-color: #28a197;
}
.swatch-light-blue {
background-color: #2b8cc4;
}
.swatch-govuk-blue {
background-color: #005ea5;
}
.swatch-alpha {
background-color: #005ea5;
}
.swatch-beta {
background-color: #005ea5;
}
.swatch-discovery {
background-color: #005ea5;
}
.swatch-live {
background-color: #85994b;
}
.swatch-error {
background-color: #b10e1e;
}
.swatch-focus {
background-color: #ffbf47;
}
.swatch-button-colour {
background-color: #00823b;
}
.swatch-black {
background-color: #0b0c0c;
}
.swatch-grey-1 {
background-color: #6f777b;
}
.swatch-grey-2 {
background-color: #bfc1c3;
}
.swatch-grey-3 {
background-color: #dee0e2;
}
.swatch-grey-4 {
background-color: #f8f8f8;
}
.swatch-white {
background-color: #fff;
border: 1px solid #dee0e2;
}
.swatch-text-colour {
background-color: #0b0c0c;
}
.swatch-text-secondary {
background-color: #6f777b;
}
.swatch-page-colour {
background-color: #fff;
border: 1px solid #dee0e2;
}
.swatch-button-colour {
background-color: #00823b;
}
.swatch-link-colour {
background-color: #005ea5;
}
.swatch-link-colour-visited {
background-color: #4c2c92;
}
.swatch-link-colour-hover {
background-color: #2b8cc4;
}
.swatch-border-colour {
background-color: #bfc1c3;
}
.swatch-panel-colour {
background-color: #dee0e2;
}
.swatch-highlight-colour {
background-color: #f8f8f8;
}
.swatch-wrapper {
float: left;
width: 20%;
text-align: center;
}
.swatch-wrapper .heading-small {
margin-bottom: 0.5263157895em;
}
.swatch-wrapper ul {
list-style-type: none;
padding-bottom: 15px;
}
.swatch-wrapper li {
font-family: "nta", Arial, sans-serif;
font-weight: 400;
text-transform: none;
font-size: 14px;
line-height: 1.1428571429;
font-size: 16px;
line-height: 1.25;
}
.swatch-wrapper b {
font-weight: bold;
text-transform: uppercase;
}
.example-images img {
max-width: 100%;
vertical-align: top;
}
.example .data {
margin-bottom: 0;
}
.example-button .heading-small {
margin-top: 0;
}
.example-button .swatch-wrapper {
width: 100%;
}
| {
"content_hash": "becc255acae041124f63bc48ca4e414a",
"timestamp": "",
"source": "github",
"line_count": 5379,
"max_line_length": 540,
"avg_line_length": 19.71723368655884,
"alnum_prop": 0.6685429807937091,
"repo_name": "tyfairclough/das-mya-beta",
"id": "f4f9e2fadb7f355fafb52334485019e346ccca53",
"size": "106062",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "public/stylesheets/elements-page-ie7.css",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "1089664"
},
{
"name": "HTML",
"bytes": "28255385"
},
{
"name": "JavaScript",
"bytes": "241130"
},
{
"name": "Shell",
"bytes": "3254"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>qcert: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.7.1+2 / qcert - 2.1.1</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
qcert
<small>
2.1.1
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-09-10 09:25:57 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-09-10 09:25:57 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-ocamlbuild base OCamlbuild binary and libraries distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 2 Virtual package relying on perl
coq 8.7.1+2 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.02.3 The OCaml compiler (virtual package)
ocaml-base-compiler 4.02.3 Official 4.02.3 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.5 A library manager for OCaml
# opam file:
opam-version: "2.0"
synopsis: "Verified compiler for data-centric languages"
description: """
This is the Coq library for Q*cert, a platform for implementing and verifying data languages and compilers. It includes abstract syntax and semantics for several source query languages (OQL, SQL), for intermediate database representations (nested relational algebra and calculus), and correctness proofs for part of the compilation to JavaScript and Java.
"""
maintainer: "Jerome Simeon <[email protected]>"
authors: [ "Josh Auerbach <>" "Martin Hirzel <>" "Louis Mandel <>" "Avi Shinnar <>" "Jerome Simeon <>" ]
license: "Apache-2.0"
homepage: "https://querycert.github.io"
bug-reports: "https://github.com/querycert/qcert/issues"
dev-repo: "git+https://github.com/querycert/qcert"
build: [
[make "configure"]
[make "-j" jobs name]
["dune" "build" "-j" jobs "-p" name]
]
install: [
[make "install-coqdev"]
]
depends: [
"ocaml" {>= "4.09.1"}
"ocamlfind"
"dune"
"coq" {>= "8.11.0" & < "8.13~"}
"coq-jsast" {>= "2.0.0"}
"menhir"
"base64"
"uri"
"calendar"
]
tags: [ "keyword:databases" "keyword:queries" "keyword:relational" "keyword:compiler" "date:2022-03-08" "logpath:Qcert" ]
url {
src: "https://github.com/querycert/qcert/archive/v2.1.1.tar.gz"
checksum: "351f5ae9b1380e6a0f673a21b483e6b2"
}
</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-qcert.2.1.1 coq.8.7.1+2</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.7.1+2).
The following dependencies couldn't be met:
- coq-qcert -> ocaml >= 4.09.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-qcert.2.1.1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| {
"content_hash": "0553ce34198f1be3d305899f7e7f5931",
"timestamp": "",
"source": "github",
"line_count": 177,
"max_line_length": 355,
"avg_line_length": 42.96045197740113,
"alnum_prop": 0.5547080483955813,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "231c84bfbccb4f4b37cbd71477e86542a5785b01",
"size": "7629",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "clean/Linux-x86_64-4.02.3-2.0.6/released/8.7.1+2/qcert/2.1.1.html",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
} |
"""matplotlib_kit package driver file.
Inserts the following modules in sys.modules: matplotlib, pylab.
@author: Charl P. Botha <http://cpbotha.net/>
"""
import os
import re
import sys
import types
# you have to define this
VERSION = ''
def init(theModuleManager, pre_import=True):
if hasattr(sys, 'frozen') and sys.frozen:
# matplotlib supports py2exe by checking for matplotlibdata in the appdir
# but this is only done on windows (and therefore works for our windows
# installer builds). On non-windows, we have to stick it in the env
# to make sure that MPL finds its datadir (only if we're frozen)
mpldir = os.path.join(theModuleManager.get_appdir(), 'matplotlibdata')
os.environ['MATPLOTLIBDATA'] = mpldir
# import the main module itself
# this doesn't import numerix yet...
global matplotlib
import matplotlib
# use WX + Agg backend (slower, but nicer that WX)
matplotlib.use('WXAgg')
# interactive mode: user can use pylab commands from any introspection
# interface, changes will be made immediately and matplotlib cooperates
# nicely with main WX event loop
matplotlib.interactive(True)
# with matplotlib 1.0.1 we can't do this anymore.
# makes sure we use the numpy backend
#from matplotlib import rcParams
#rcParams['numerix'] = 'numpy'
theModuleManager.setProgress(25, 'Initialising matplotlib_kit: config')
# @PATCH:
# this is for the combination numpy 1.0.4 and matplotlib 0.91.2
# matplotlib/numerix/ma/__init__.py:
# . normal installation fails on "from numpy.ma import *", so "from
# numpy.core.ma import *" is done, thus bringing in e.g. getmask
# . pyinstaller binaries for some or other reason succeed on
# "from numpy.ma import *" (no exception raised), therefore do
# not do "from numpy.core.ma import *", and therefore things like
# getmask are not imported.
# solution:
# we make sure that "from numpy.ma import *" actually brings in
# numpy.core.ma by importing that and associating the module
# binding to the global numpy.ma.
#if hasattr(sys, 'frozen') and sys.frozen:
# import numpy.core.ma
# sys.modules['numpy.ma'] = sys.modules['numpy.core.ma']
# import the pylab interface, make sure it's available from this namespace
global pylab
import pylab
theModuleManager.setProgress(90, 'Initialising matplotlib_kit: pylab')
# build up VERSION
global VERSION
VERSION = '%s' % (matplotlib.__version__,)
theModuleManager.setProgress(100, 'Initialising matplotlib_kit: complete')
| {
"content_hash": "cc44d592364385b685eccdeaa684107a",
"timestamp": "",
"source": "github",
"line_count": 76,
"max_line_length": 81,
"avg_line_length": 34.94736842105263,
"alnum_prop": 0.6863704819277109,
"repo_name": "zhangfangyan/devide",
"id": "54499ba91041c1406c4e3c5706dbe2d5e6e2bf88",
"size": "2895",
"binary": false,
"copies": "7",
"ref": "refs/heads/master",
"path": "module_kits/matplotlib_kit/__init__.py",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "NSIS",
"bytes": "2786"
},
{
"name": "Python",
"bytes": "3102319"
},
{
"name": "Shell",
"bytes": "7369"
}
],
"symlink_target": ""
} |
<?xml version="1.0" encoding="iso-8859-1"?>
<!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>
<title>Docs for page CharacterReader.php</title>
<link rel="stylesheet" href="../../media/stylesheet.css" />
<script src="../../media/lib/classTree.js"></script>
<link id="webfx-tab-style-sheet" type="text/css" rel="stylesheet" href="../../media/lib/tab.webfx.css" />
<script type="text/javascript" src="../../media/lib/tabpane.js"></script>
<script language="javascript" type="text/javascript" src="../../media/lib/ua.js"></script>
<script language="javascript" type="text/javascript">
var imgPlus = new Image();
var imgMinus = new Image();
imgPlus.src = "../../media/images/plus.gif";
imgMinus.src = "../../media/images/minus.gif";
function showNode(Node){
switch(navigator.family){
case 'nn4':
// Nav 4.x code fork...
var oTable = document.layers["span" + Node];
var oImg = document.layers["img" + Node];
break;
case 'ie4':
// IE 4/5 code fork...
var oTable = document.all["span" + Node];
var oImg = document.all["img" + Node];
break;
case 'gecko':
// Standards Compliant code fork...
var oTable = document.getElementById("span" + Node);
var oImg = document.getElementById("img" + Node);
break;
}
oImg.src = imgMinus.src;
oTable.style.display = "block";
}
function hideNode(Node){
switch(navigator.family){
case 'nn4':
// Nav 4.x code fork...
var oTable = document.layers["span" + Node];
var oImg = document.layers["img" + Node];
break;
case 'ie4':
// IE 4/5 code fork...
var oTable = document.all["span" + Node];
var oImg = document.all["img" + Node];
break;
case 'gecko':
// Standards Compliant code fork...
var oTable = document.getElementById("span" + Node);
var oImg = document.getElementById("img" + Node);
break;
}
oImg.src = imgPlus.src;
oTable.style.display = "none";
}
function nodeIsVisible(Node){
switch(navigator.family){
case 'nn4':
// Nav 4.x code fork...
var oTable = document.layers["span" + Node];
break;
case 'ie4':
// IE 4/5 code fork...
var oTable = document.all["span" + Node];
break;
case 'gecko':
// Standards Compliant code fork...
var oTable = document.getElementById("span" + Node);
break;
}
return (oTable && oTable.style.display == "block");
}
function toggleNodeVisibility(Node){
if (nodeIsVisible(Node)){
hideNode(Node);
}else{
showNode(Node);
}
}
</script>
<!-- template designed by Julien Damon based on PHPEdit's generated templates, and tweaked by Greg Beaver -->
<body bgcolor="#ffffff" >
<h2>File: /vendors/swiftMailer/classes/Swift/CharacterReader.php</h2>
<div class="tab-pane" id="tabPane1">
<script type="text/javascript">
tp1 = new WebFXTabPane( document.getElementById( "tabPane1" ) );
</script>
<div class="tab-page" id="Description">
<h2 class="tab">Description</h2>
<!-- ========== Info from phpDoc block ========= -->
<ul>
</ul>
<!-- =========== Used Classes =========== -->
<A NAME='classes_summary'><!-- --></A>
<h3>Classes defined in this file</h3>
<TABLE CELLPADDING='3' CELLSPACING='0' WIDTH='100%' CLASS="border">
<THEAD>
<TR><TD STYLE="width:20%"><h4>CLASS NAME</h4></TD><TD STYLE="width: 80%"><h4>DESCRIPTION</h4></TD></TR>
</THEAD>
<TBODY>
<TR BGCOLOR='white' CLASS='TableRowColor'>
<TD><a href="../../Swift/Encoder/Swift_CharacterReader.html">Swift_CharacterReader</a></TD>
<TD>Analyzes characters for a specific character set.</TD>
</TR>
</TBODY>
</TABLE>
</div>
<script type="text/javascript">tp1.addTabPage( document.getElementById( "Description" ) );</script>
<div class="tab-page" id="tabPage1">
<!-- ============ Includes DETAIL =========== -->
<h2 class="tab">Include/Require Statements</h2>
<script type="text/javascript">tp1.addTabPage( document.getElementById( "tabPage1" ) );</script>
</div>
<div class="tab-page" id="tabPage2">
<!-- ============ GLOBAL DETAIL =========== -->
<h2 class="tab">Global Variables</h2>
<script type="text/javascript">tp1.addTabPage( document.getElementById( "tabPage2" ) );</script>
</div>
<div class="tab-page" id="tabPage3">
<!-- ============ CONSTANT DETAIL =========== -->
<A NAME='constant_detail'></A>
<h2 class="tab">Constants</h2>
<script type="text/javascript">tp1.addTabPage( document.getElementById( "tabPage3" ) );</script>
</div>
<div class="tab-page" id="tabPage4">
<!-- ============ FUNCTION DETAIL =========== -->
<h2 class="tab">Functions</h2>
<script type="text/javascript">tp1.addTabPage( document.getElementById( "tabPage4" ) );</script>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
setupAllTabs();
//]]>
</script>
<div id="credit">
<hr />
Documentation generated on Fri, 12 Nov 2010 20:45:17 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
</div>
</body>
</html>
| {
"content_hash": "69afa6fec5935403287290ede46e38c4",
"timestamp": "",
"source": "github",
"line_count": 165,
"max_line_length": 135,
"avg_line_length": 31.654545454545456,
"alnum_prop": 0.604824813325675,
"repo_name": "giantbits/conTainr",
"id": "1018be360409ce6d02c641e5e58ac60e012dfc14",
"size": "5223",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "protected/modules/containr/extensions/yii-mail/doc/Swift/Encoder/_vendors---swiftMailer---classes---Swift---CharacterReader.php.html",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "CSS",
"bytes": "1196858"
},
{
"name": "JavaScript",
"bytes": "3059871"
},
{
"name": "PHP",
"bytes": "3315479"
}
],
"symlink_target": ""
} |
//
// AppDelegate.m
// ButtonDemo
//
// Created by cuong minh on 3/5/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import "AppDelegate.h"
#import "ViewController.h"
@implementation AppDelegate
@synthesize window = _window;
@synthesize viewController = _viewController;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
self.viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
[[UIApplication sharedApplication] setStatusBarHidden: YES withAnimation:NO];
self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application
{
/*
Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
*/
}
- (void)applicationDidEnterBackground:(UIApplication *)application
{
/*
Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
*/
}
- (void)applicationWillEnterForeground:(UIApplication *)application
{
/*
Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
*/
}
- (void)applicationDidBecomeActive:(UIApplication *)application
{
/*
Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
*/
}
- (void)applicationWillTerminate:(UIApplication *)application
{
/*
Called when the application is about to terminate.
Save data if appropriate.
See also applicationDidEnterBackground:.
*/
}
@end
| {
"content_hash": "b41d1606035888fd44b4225f5189b089",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 279,
"avg_line_length": 37.35294117647059,
"alnum_prop": 0.752755905511811,
"repo_name": "mrdevilvn/demo",
"id": "2dc1a1201f2f38e0e1b675aab89ccc1078648bf2",
"size": "2540",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "UIButton/ButtonDemo/ButtonDemo/AppDelegate.m",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Objective-C",
"bytes": "71403"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ccs: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.7.2 / ccs - 8.10.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
ccs
<small>
8.10.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-11-15 02:05:52 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-11-15 02:05:52 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 2 Virtual package relying on perl
coq 8.7.2 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.07.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.07.1 Official release 4.07.1
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.5 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/coq-contribs/ccs"
license: "Unknown"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/CCS"]
depends: [
"ocaml"
"coq" {>= "8.10" & < "8.11~"}
]
tags: [
"keyword: Labelled Transitions Systems"
"keyword: process algebras"
"keyword: Calculus of Concurrent Process (CCS)"
"category: Computer Science/Concurrent Systems and Protocols/Theory of concurrent systems"
]
authors: [
"Solange Coupet-Grimal"
]
bug-reports: "https://github.com/coq-contribs/ccs/issues"
dev-repo: "git+https://github.com/coq-contribs/ccs.git"
synopsis: "Equivalence notions on labelled transitions systems"
description: """
We give the specification of three different notions of equivalence
classically defined on labelled transitions systems underlying the
theories of process algebra (and particularly CCS). The fundamentals
properties of these equivalence notions are proven."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/ccs/archive/v8.10.0.tar.gz"
checksum: "md5=ca4da241b945c5825abbfddff139939f"
}
</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-ccs.8.10.0 coq.8.7.2</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.7.2).
The following dependencies couldn't be met:
- coq-ccs -> coq >= 8.10 -> ocaml >= 4.09.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-ccs.8.10.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| {
"content_hash": "968774862d43a5b7ed1021ad2185e88b",
"timestamp": "",
"source": "github",
"line_count": 175,
"max_line_length": 159,
"avg_line_length": 40.86857142857143,
"alnum_prop": 0.5503355704697986,
"repo_name": "coq-bench/coq-bench.github.io",
"id": "a5df74d5a1028f84b007497ff98085902c3a9cce",
"size": "7177",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "clean/Linux-x86_64-4.07.1-2.0.6/released/8.7.2/ccs/8.10.0.html",
"mode": "33188",
"license": "mit",
"language": [],
"symlink_target": ""
} |
namespace google {
namespace protobuf {
class MessageLite;
} // namespace protobuf
} // namespace google
namespace kudu {
class Histogram;
class Sockaddr;
class Trace;
namespace rpc {
class Connection;
class DumpConnectionsRequestPB;
class RemoteUser;
class RpcCallInProgressPB;
struct InboundCallTiming {
MonoTime time_received; // Time the call was first accepted.
MonoTime time_handled; // Time the call handler was kicked off.
MonoTime time_completed; // Time the call handler completed.
MonoDelta TotalDuration() const {
return time_completed - time_received;
}
MonoDelta ProcessingDuration() const {
return time_completed - time_handled;
}
MonoDelta QueueDuration() const {
return time_handled - time_received;
}
};
// Inbound call on server
class InboundCall {
public:
explicit InboundCall(Connection* conn);
~InboundCall();
// Parse an inbound call message.
//
// This only deserializes the call header, populating the 'header_' and
// 'serialized_request_' member variables. The actual call parameter is
// not deserialized, as this may be CPU-expensive, and this is called
// from the reactor thread.
Status ParseFrom(std::unique_ptr<InboundTransfer> transfer);
// Return the serialized request parameter protobuf.
const Slice& serialized_request() const {
DCHECK(transfer_) << "Transfer discarded before parameter parsing";
return serialized_request_;
}
const RemoteMethod& remote_method() const {
return remote_method_;
}
const int32_t call_id() const {
return header_.call_id();
}
// Serializes 'response' into the InboundCall's internal buffer, and marks
// the call as a success. Enqueues the response back to the connection
// that made the call.
//
// This method deletes the InboundCall object, so no further calls may be
// made after this one.
void RespondSuccess(const google::protobuf::MessageLite& response);
// Serializes a failure response into the internal buffer, marking the
// call as a failure. Enqueues the response back to the connection that
// made the call.
//
// This method deletes the InboundCall object, so no further calls may be
// made after this one.
void RespondFailure(ErrorStatusPB::RpcErrorCodePB error_code,
const Status &status);
void RespondUnsupportedFeature(const std::vector<uint32_t>& unsupported_features);
void RespondApplicationError(int error_ext_id, const std::string& message,
const google::protobuf::MessageLite& app_error_pb);
// Convert an application error extension to an ErrorStatusPB.
// These ErrorStatusPB objects are what are returned in application error responses.
static void ApplicationErrorToPB(int error_ext_id, const std::string& message,
const google::protobuf::MessageLite& app_error_pb,
ErrorStatusPB* err);
// Serialize the response packet for the finished call into 'slices'.
// The resulting slices refer to memory in this object.
void SerializeResponseTo(TransferPayload* slices) const;
// See RpcContext::AddRpcSidecar()
Status AddOutboundSidecar(std::unique_ptr<RpcSidecar> car, int* idx);
std::string ToString() const;
void DumpPB(const DumpConnectionsRequestPB& req, RpcCallInProgressPB* resp);
const RemoteUser& remote_user() const;
const Sockaddr& remote_address() const;
const scoped_refptr<Connection>& connection() const;
Trace* trace();
const InboundCallTiming& timing() const {
return timing_;
}
const RequestHeader& header() const {
return header_;
}
// Associate this call with a particular method that will be invoked
// by the service.
void set_method_info(scoped_refptr<RpcMethodInfo> info) {
method_info_ = std::move(info);
}
// Return the method associated with this call. This is set just before
// the call is enqueued onto the service queue, and therefore may be
// 'nullptr' for much of the lifecycle of a call.
RpcMethodInfo* method_info() {
return method_info_.get();
}
// When this InboundCall was received (instantiated).
// Should only be called once on a given instance.
// Not thread-safe. Should only be called by the current "owner" thread.
void RecordCallReceived();
// When RPC call Handle() was called on the server side.
// Updates the Histogram with time elapsed since the call was received,
// and should only be called once on a given instance.
// Not thread-safe. Should only be called by the current "owner" thread.
void RecordHandlingStarted(Histogram* incoming_queue_time);
// Return true if the deadline set by the client has already elapsed.
// In this case, the server may stop processing the call, since the
// call response will be ignored anyway.
bool ClientTimedOut() const;
// Return an upper bound on the client timeout deadline. This does not
// account for transmission delays between the client and the server.
// If the client did not specify a deadline, returns MonoTime::Max().
MonoTime GetClientDeadline() const {
return deadline_;
}
// Return the time when this call was received.
MonoTime GetTimeReceived() const;
// Return the time when this call was handled.
MonoTime GetTimeHandled() const;
// Returns the set of application-specific feature flags required to service
// the RPC.
std::vector<uint32_t> GetRequiredFeatures() const;
// Get a sidecar sent as part of the request. If idx < 0 || idx > num sidecars - 1,
// returns an error.
Status GetInboundSidecar(int idx, Slice* sidecar) const;
// Releases the buffer that contains the request + sidecar data. It is an error to
// access sidecars or serialized_request() after this method is called.
void DiscardTransfer();
// Returns the size of the transfer buffer that backs this call. If the transfer does
// not exist (e.g. GetTransferSize() is called after DiscardTransfer()), returns 0.
size_t GetTransferSize();
private:
friend class RpczStore;
// Serialize and queue the response.
void Respond(const google::protobuf::MessageLite& response,
bool is_success);
// Serialize a response message for either success or failure. If it is a success,
// 'response' should be the user-defined response type for the call. If it is a
// failure, 'response' should be an ErrorStatusPB instance.
void SerializeResponseBuffer(const google::protobuf::MessageLite& response,
bool is_success);
// When RPC call Handle() completed execution on the server side.
// Updates the Histogram with time elapsed since the call was started,
// and should only be called once on a given instance.
// Not thread-safe. Should only be called by the current "owner" thread.
void RecordHandlingCompleted();
// The connection on which this inbound call arrived.
scoped_refptr<Connection> conn_;
// The header of the incoming call. Set by ParseFrom()
RequestHeader header_;
// The serialized bytes of the request param protobuf. Set by ParseFrom().
// This references memory held by 'transfer_'.
Slice serialized_request_;
// The transfer that produced the call.
// This is kept around because it retains the memory referred to
// by 'serialized_request_' above.
std::unique_ptr<InboundTransfer> transfer_;
// The buffers for serialized response. Set by SerializeResponseBuffer().
faststring response_hdr_buf_;
faststring response_msg_buf_;
// Vector of additional sidecars that are tacked on to the call's response
// after serialization of the protobuf. See rpc/rpc_sidecar.h for more info.
std::vector<std::unique_ptr<RpcSidecar>> outbound_sidecars_;
// Total size of sidecars in outbound_sidecars_. This is limited to a maximum
// of TransferLimits::kMaxTotalSidecarBytes.
int32_t outbound_sidecars_total_bytes_ = 0;
// Inbound sidecars from the request. The slices are views onto transfer_. There are as
// many slices as header_.sidecar_offsets_size().
SidecarSliceVector inbound_sidecar_slices_;
// The trace buffer.
scoped_refptr<Trace> trace_;
// Timing information related to this RPC call.
InboundCallTiming timing_;
// Proto service this calls belongs to. Used for routing.
// This field is filled in when the inbound request header is parsed.
RemoteMethod remote_method_;
// After the method has been looked up within the service, this is filled in
// to point to the information about this method. Acts as a pointer back to
// per-method info such as tracing.
scoped_refptr<RpcMethodInfo> method_info_;
// A time at which the client will time out, or MonoTime::Max if the
// client did not pass a timeout.
MonoTime deadline_;
DISALLOW_COPY_AND_ASSIGN(InboundCall);
};
} // namespace rpc
} // namespace kudu
| {
"content_hash": "6ad82ecfa6e21b84b4eba36fa3d47bf0",
"timestamp": "",
"source": "github",
"line_count": 252,
"max_line_length": 89,
"avg_line_length": 35.226190476190474,
"alnum_prop": 0.7193871803537231,
"repo_name": "helifu/kudu",
"id": "c651aaad9e414032169aa5449b100c5f3bb5e46d",
"size": "10213",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/kudu/rpc/inbound_call.h",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "423003"
},
{
"name": "C++",
"bytes": "15896567"
},
{
"name": "CMake",
"bytes": "217437"
},
{
"name": "CSS",
"bytes": "1364"
},
{
"name": "Clojure",
"bytes": "54903"
},
{
"name": "Dockerfile",
"bytes": "8783"
},
{
"name": "HTML",
"bytes": "29992"
},
{
"name": "Java",
"bytes": "2284107"
},
{
"name": "JavaScript",
"bytes": "8018"
},
{
"name": "Makefile",
"bytes": "658"
},
{
"name": "Perl",
"bytes": "36186"
},
{
"name": "Python",
"bytes": "560917"
},
{
"name": "R",
"bytes": "11537"
},
{
"name": "Scala",
"bytes": "313182"
},
{
"name": "Shell",
"bytes": "147843"
},
{
"name": "Smarty",
"bytes": "2702"
},
{
"name": "Thrift",
"bytes": "81270"
}
],
"symlink_target": ""
} |
(function($) {
$.fn.zebratable = function(options) {
var defaults = {
tblClass: 'dashboardGrid',
altClass: 'dashboardTableAlt'
};
var options = $.extend(defaults, options);
return this.each(function() {
// all of our tables need common spacing - this overcomes bug
// in PropertyGrid which prevents you from assigning a CssClass in ascx file
$(this).addClass('dashboardGrid');
// if the table has headers then start with odd rows so we don't highlight the header
$(this).find(':has(th)').find('tr:odd').addClass('dashboardTableAlt');
// if the table doesn't have headers then start highlighting even rows so the top row is highlighted
$(this).find(':not(:has(th))').find('tr:even').addClass('dashboardTableAlt');
});
};
/*
Delegate function allows us to use Selectors to handle events.
This allows us to use event bubbling and single event handler
which improves perf and makes eventhandling more dynamic.
*/
$.delegate = function(rules) {
return function(e) {
var target = jQuery(e.target);
for (var selector in rules)
if (target.is(selector)) {
return rules[selector].apply(this, jQuery.makeArray(arguments));
}
}
}
/*
// Simple JavaScript Templating
// John Resig - http://ejohn.org/ - MIT Licensed
*/
var _cache = {};
$.template = function template(str, data) {
// Figure out if we're getting a template, or if we need to
// load the template - and be sure to cache the result.
var fn = !/\W/.test(str) ?
_cache[str] = cache[str] ||
template(document.getElementById(str).innerHTML) :
// Generate a reusable function that will serve as a template
// generator (and which will be cached).
new Function("obj",
"var p=[],print=function(){p.push.apply(p,arguments);};" +
// Introduce the data as local variables using with(){}
"with(obj){p.push('" +
// Convert the template into pure JavaScript
str
.replace(/[\r\t\n]/g, " ")
.split("<#").join("\t")
.replace(/((^|#>)[^\t]*)'/g, "$1\r")
.replace(/\t=(.*?)#>/g, "',$1,'")
.split("\t").join("');")
.split("#>").join("p.push('")
.split("\r").join("\\'")
+ "');}return p.join('');");
// Provide some basic currying to the user
return data ? fn(data) : fn;
};
})(jQuery);
jQuery(document).ready(function($) {
var dlg = $.template('<div id="<#=id#>" title="<#=title#> - <#=name#>" >Empty Dialog</div>')
$('#dashboardTabs div[id$="-tab"]').hide();
$('#dashboardTabs div[id$="-tab"]:first').show();
$('#tablist li:first a').addClass('active');
$('#tablist li:first a').addClass('SubHead');
$('#dashboardTabs').click($.delegate({
'.dashboardTab': function(e) {
$('#tablist li a').removeClass('active');
$('#tablist li a').removeClass('SubHead');
$(e.target).addClass('active');
$(e.target).addClass('SubHead');
var currentTab = $(e.target).attr('href');
$('#dashboardTabs div[id$="-tab"]').hide();
$(currentTab).show();
return false;
}
}));
$('#dashboardTabs div[id$="-tab"] table').zebratable();
// clean up to avoid memory leaks in certain versions of IE 6
$(window).on('unload', function () {
$('#dashboardTabs').off('click');
});
});
| {
"content_hash": "51c8534c75c30835bae6b52dc9d832e1",
"timestamp": "",
"source": "github",
"line_count": 107,
"max_line_length": 112,
"avg_line_length": 34.23364485981308,
"alnum_prop": 0.5402675402675403,
"repo_name": "valadas/Dnn.Platform",
"id": "944537cb7fcbdf0f5a6789181aa33f2e4625d294",
"size": "3665",
"binary": false,
"copies": "13",
"ref": "refs/heads/develop",
"path": "DNN Platform/Website/Resources/Dashboard/jquery.dashboard.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ASP.NET",
"bytes": "522038"
},
{
"name": "Batchfile",
"bytes": "289"
},
{
"name": "C#",
"bytes": "21868942"
},
{
"name": "CSS",
"bytes": "920009"
},
{
"name": "HTML",
"bytes": "543211"
},
{
"name": "JavaScript",
"bytes": "8406477"
},
{
"name": "Less",
"bytes": "566334"
},
{
"name": "PowerShell",
"bytes": "5984"
},
{
"name": "SCSS",
"bytes": "12527"
},
{
"name": "Shell",
"bytes": "1429"
},
{
"name": "TSQL",
"bytes": "128041"
},
{
"name": "TypeScript",
"bytes": "135977"
},
{
"name": "Visual Basic .NET",
"bytes": "114706"
},
{
"name": "XSLT",
"bytes": "11388"
}
],
"symlink_target": ""
} |
package com.alibaba.rocketmq.remoting;
import com.alibaba.rocketmq.remoting.protocol.RemotingCommand;
public interface RPCHook {
void doBeforeRequest(final String remoteAddr, final RemotingCommand request);
void doAfterResponse(final String remoteAddr, final RemotingCommand request,
final RemotingCommand response);
}
| {
"content_hash": "1e9c08eb990fdb88c348ea6b57a13099",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 81,
"avg_line_length": 25.642857142857142,
"alnum_prop": 0.7576601671309192,
"repo_name": "chenkongshan/RocketMQ",
"id": "cc2d594664c3de7be5597c6d2b6a34c314932906",
"size": "1165",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "rocketmq-remoting/src/main/java/com/alibaba/rocketmq/remoting/RPCHook.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "2632"
},
{
"name": "Java",
"bytes": "2710183"
},
{
"name": "Shell",
"bytes": "36899"
}
],
"symlink_target": ""
} |
import uuid
import types
from traitlets import (
HasTraits,
Instance,
default
)
def issue(self, message, exc=None):
"""Accepts a message that will be logged with an additional reference
code for easy log lookup.
The identifier will be returned for inclusion in user-visible
error messages.
"""
ref = str(uuid.uuid1())
if exc is None:
err_message = "{}. Ref: {}".format(message, ref)
else:
err_message = "{} : {}. Ref: {}".format(
message, str(exc), ref)
self.error(err_message)
return ref
class LoggingMixin(HasTraits):
"""A HasTrait class that provides logging. Used as a mixin.
"""
log = Instance('logging.Logger')
@default('log')
def _log_default(self):
from tornado.log import app_log
# monkey patch the logger to provide an additional method that handles
# issues
app_log.issue = types.MethodType(issue, app_log)
return app_log
| {
"content_hash": "d065f5bdd41cf859e0d444d96fa9dadc",
"timestamp": "",
"source": "github",
"line_count": 43,
"max_line_length": 78,
"avg_line_length": 22.88372093023256,
"alnum_prop": 0.6239837398373984,
"repo_name": "simphony/simphony-remote",
"id": "fddc6f688246c29e383eac125a071a172a6a0855",
"size": "984",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "remoteappmanager/logging/logging_mixin.py",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "HTML",
"bytes": "14011"
},
{
"name": "JavaScript",
"bytes": "51718"
},
{
"name": "Makefile",
"bytes": "6052"
},
{
"name": "Mako",
"bytes": "494"
},
{
"name": "Python",
"bytes": "418020"
},
{
"name": "Shell",
"bytes": "1690"
},
{
"name": "Vue",
"bytes": "46644"
}
],
"symlink_target": ""
} |
package com.amazonaws.services.s3.transfer.model;
import com.amazonaws.services.s3.transfer.TransferManager;
/**
* Contains information returned by Amazon S3 for a completed upload.
* <p>
* See {@link TransferManager} for more information about creating transfers.
*
* @see TransferManager#upload(String, String, java.io.File)
* @see TransferManager#upload(com.amazonaws.services.s3.model.PutObjectRequest)
*/
public class UploadResult {
/** The name of the bucket containing the completed upload. */
private String bucketName;
/** The key by which the object is stored. */
private String key;
/**
* The entity tag identifying the new object. An entity tag is an opaque
* string that changes if and only if an object's data changes.
*/
private String eTag;
/**
* The version ID of the new object, only present if versioning has been
* enabled for the bucket.
*/
private String versionId;
/**
* Returns the name of the bucket containing the uploaded object.
*
* @return The name of the bucket containing the uploaded object.
*/
public String getBucketName() {
return bucketName;
}
/**
* Sets the name of the bucket containing the uploaded object.
*
* @param bucketName
* The name of the bucket containing the uploaded object.
*/
public void setBucketName(String bucketName) {
this.bucketName = bucketName;
}
/**
* Returns the key by which the newly created object is stored.
*/
public String getKey() {
return key;
}
/**
* Sets the key of the newly created object.
*/
public void setKey(String key) {
this.key = key;
}
/**
* Returns the entity tag identifying the new object. An entity tag is an
* opaque string that changes if and only if an object's data changes.
*
* @return An opaque string that changes if and only if an object's data
* changes.
*/
public String getETag() {
return eTag;
}
/**
* Sets the entity tag identifying the new object. An entity tag is an
* opaque string that changes if and only if an object's data changes.
*
* @param etag
* The entity tag.
*/
public void setETag(String etag) {
this.eTag = etag;
}
/**
* Returns the version ID of the new object. The version ID is only
* set if versioning has been enabled for the bucket.
*
* @return The version ID of the new object.
* The version ID is only
* set if versioning has been enabled for the bucket.
*/
public String getVersionId() {
return versionId;
}
/**
* Sets the version ID of the new object, only present if versioning has
* been enabled for the bucket.
*
* @param versionId
* The version ID of the new object, only present if versioning
* has been enabled for the bucket.
*/
public void setVersionId(String versionId) {
this.versionId = versionId;
}
}
| {
"content_hash": "c8252ac0f339eb3b8738d3d91b7bc1b8",
"timestamp": "",
"source": "github",
"line_count": 112,
"max_line_length": 80,
"avg_line_length": 28.098214285714285,
"alnum_prop": 0.6228153797267239,
"repo_name": "puppetlabs/aws-sdk-for-java",
"id": "3d98e552ce26db6724619bc050f286b662673b26",
"size": "3731",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "src/main/java/com/amazonaws/services/s3/transfer/model/UploadResult.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "32022703"
}
],
"symlink_target": ""
} |
package sk.fiit.dps.team11.workers;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
import com.codahale.metrics.MetricRegistry;
import sk.fiit.dps.team11.core.DatabaseAdapter;
import sk.fiit.dps.team11.core.MetricsAdapter;
public class GlobalMetricsWorker {
@Inject
private ScheduledExecutorService execService;
@Inject
private MetricsAdapter metrics;
@Inject
private DatabaseAdapter db;
private final static int METRIC_INTERVAL_MILLISECONDS = 500;
@PostConstruct
private void init() {
execService.scheduleAtFixedRate(this::tick, METRIC_INTERVAL_MILLISECONDS / 2,
METRIC_INTERVAL_MILLISECONDS, TimeUnit.MILLISECONDS);
}
private void tick() {
metrics.get(MetricRegistry::meter, "database-num-entries").mark(db.numEntries());
}
}
| {
"content_hash": "5131be71af299da55aba6be32f53b7df",
"timestamp": "",
"source": "github",
"line_count": 37,
"max_line_length": 83,
"avg_line_length": 23.7027027027027,
"alnum_prop": 0.7890535917901939,
"repo_name": "jurajmatus/dps-dynamo",
"id": "8e9d98e8b08aed988da666f48beddc1b831e3510",
"size": "877",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "key-value-store/dropwizard/src/main/java/sk/fiit/dps/team11/workers/GlobalMetricsWorker.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ApacheConf",
"bytes": "1540"
},
{
"name": "Batchfile",
"bytes": "68"
},
{
"name": "CSS",
"bytes": "66647"
},
{
"name": "HTML",
"bytes": "330660"
},
{
"name": "JavaScript",
"bytes": "15880"
},
{
"name": "Nginx",
"bytes": "4694"
},
{
"name": "PHP",
"bytes": "2244952"
},
{
"name": "Python",
"bytes": "1617"
},
{
"name": "Shell",
"bytes": "1726"
}
],
"symlink_target": ""
} |
BOOL areLinesEqual(CTLineRef line1, CTLineRef line2);
CFIndex getTruncationIndex(CTLineRef line, CTLineRef trunc); | {
"content_hash": "abcb7789d0dc7347e9c4d59462ac7d4d",
"timestamp": "",
"source": "github",
"line_count": 2,
"max_line_length": 60,
"avg_line_length": 57,
"alnum_prop": 0.8508771929824561,
"repo_name": "SanjoDeundiak/DTCoreText",
"id": "db56c7168e41f0976836c8750477a8af9e852264",
"size": "244",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "Core/Source/CTLineUtils.h",
"mode": "33188",
"license": "bsd-2-clause",
"language": [
{
"name": "C",
"bytes": "44788"
},
{
"name": "CSS",
"bytes": "3470"
},
{
"name": "Objective-C",
"bytes": "914195"
},
{
"name": "Ruby",
"bytes": "4873"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<!--
Template Name: Metronic - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.3.5
Version: 4.1.0
Author: KeenThemes
Website: http://www.keenthemes.com/
Contact: [email protected]
Follow: www.twitter.com/keenthemes
Like: www.facebook.com/keenthemes
Purchase: http://themeforest.net/item/metronic-responsive-admin-dashboard-template/4021469?ref=keenthemes
License: You must have a valid license purchased only from themeforest(the above link) in order to legally use the theme for your project.
-->
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en" dir="rtl">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8"/>
<title>Metronic | Pages - Todo</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta content="" name="description"/>
<meta content="" name="author"/>
<!-- BEGIN GLOBAL MANDATORY STYLES -->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css">
<link href="../../assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="../../assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css">
<link href="../../assets/global/plugins/bootstrap/css/bootstrap-rtl.min.css" rel="stylesheet" type="text/css">
<link href="../../assets/global/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css">
<link href="../../assets/global/plugins/bootstrap-switch/css/bootstrap-switch-rtl.min.css" rel="stylesheet" type="text/css"/>
<!-- END GLOBAL MANDATORY STYLES -->
<!-- BEGIN PAGE LEVEL STYLES -->
<link rel="stylesheet" type="text/css" href="../../assets/global/plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css"/>
<link rel="stylesheet" type="text/css" href="../../assets/global/plugins/select2/select2.css"/>
<!-- END PAGE LEVEL STYLES -->
<!-- BEGIN THEME STYLES -->
<link href="../../assets/global/css/components-rounded-rtl.css" id="style_components" rel="stylesheet" type="text/css"/>
<link href="../../assets/global/css/plugins-rtl.css" rel="stylesheet" type="text/css"/>
<link href="../../assets/admin/pages/css/todo-rtl.css" rel="stylesheet" type="text/css"/>
<link href="../../assets/admin/layout4/css/layout-rtl.css" rel="stylesheet" type="text/css"/>
<link id="style_color" href="../../assets/admin/layout4/css/themes/light-rtl.css" rel="stylesheet" type="text/css"/>
<link href="../../assets/admin/layout4/css/custom-rtl.css" rel="stylesheet" type="text/css"/>
<!-- END THEME STYLES -->
<link rel="shortcut icon" href="favicon.ico"/>
</head>
<!-- END HEAD -->
<!-- BEGIN BODY -->
<!-- DOC: Apply "page-header-fixed-mobile" and "page-footer-fixed-mobile" class to body element to force fixed header or footer in mobile devices -->
<!-- DOC: Apply "page-sidebar-closed" class to the body and "page-sidebar-menu-closed" class to the sidebar menu element to hide the sidebar by default -->
<!-- DOC: Apply "page-sidebar-hide" class to the body to make the sidebar completely hidden on toggle -->
<!-- DOC: Apply "page-sidebar-closed-hide-logo" class to the body element to make the logo hidden on sidebar toggle -->
<!-- DOC: Apply "page-sidebar-hide" class to body element to completely hide the sidebar on sidebar toggle -->
<!-- DOC: Apply "page-sidebar-fixed" class to have fixed sidebar -->
<!-- DOC: Apply "page-footer-fixed" class to the body element to have fixed footer -->
<!-- DOC: Apply "page-sidebar-reversed" class to put the sidebar on the right side -->
<!-- DOC: Apply "page-full-width" class to the body element to have full width page without the sidebar menu -->
<body class="page-header-fixed page-sidebar-closed-hide-logo page-sidebar-closed">
<!-- BEGIN HEADER -->
<div class="page-header navbar navbar-fixed-top">
<!-- BEGIN HEADER INNER -->
<div class="page-header-inner">
<!-- BEGIN LOGO -->
<div class="page-logo">
<a href="index.html">
<img src="../../assets/admin/layout4/img/logo-light.png" alt="logo" class="logo-default"/>
</a>
<div class="menu-toggler sidebar-toggler">
<!-- DOC: Remove the above "hide" to enable the sidebar toggler button on header -->
</div>
</div>
<!-- END LOGO -->
<!-- BEGIN RESPONSIVE MENU TOGGLER -->
<a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse">
</a>
<!-- END RESPONSIVE MENU TOGGLER -->
<!-- BEGIN PAGE ACTIONS -->
<!-- DOC: Remove "hide" class to enable the page header actions -->
<div class="page-actions">
<div class="btn-group">
<button type="button" class="btn red-haze btn-sm dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
<span class="hidden-sm hidden-xs">Actions </span><i class="fa fa-angle-down"></i>
</button>
<ul class="dropdown-menu" role="menu">
<li>
<a href="javascript:;">
<i class="icon-docs"></i> New Post </a>
</li>
<li>
<a href="javascript:;">
<i class="icon-tag"></i> New Comment </a>
</li>
<li>
<a href="javascript:;">
<i class="icon-share"></i> Share </a>
</li>
<li class="divider">
</li>
<li>
<a href="javascript:;">
<i class="icon-flag"></i> Comments <span class="badge badge-success">4</span>
</a>
</li>
<li>
<a href="javascript:;">
<i class="icon-users"></i> Feedbacks <span class="badge badge-danger">2</span>
</a>
</li>
</ul>
</div>
</div>
<!-- END PAGE ACTIONS -->
<!-- BEGIN PAGE TOP -->
<div class="page-top">
<!-- BEGIN HEADER SEARCH BOX -->
<!-- DOC: Apply "search-form-expanded" right after the "search-form" class to have half expanded search box -->
<form class="search-form" action="extra_search.html" method="GET">
<div class="input-group">
<input type="text" class="form-control input-sm" placeholder="Search..." name="query">
<span class="input-group-btn">
<a href="javascript:;" class="btn submit"><i class="icon-magnifier"></i></a>
</span>
</div>
</form>
<!-- END HEADER SEARCH BOX -->
<!-- BEGIN TOP NAVIGATION MENU -->
<div class="top-menu">
<ul class="nav navbar-nav pull-right">
<li class="separator hide">
</li>
<!-- BEGIN NOTIFICATION DROPDOWN -->
<!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
<li class="dropdown dropdown-extended dropdown-notification dropdown-dark" id="header_notification_bar">
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
<i class="icon-bell"></i>
<span class="badge badge-success">
7 </span>
</a>
<ul class="dropdown-menu">
<li class="external">
<h3><span class="bold">12 pending</span> notifications</h3>
<a href="extra_profile.html">view all</a>
</li>
<li>
<ul class="dropdown-menu-list scroller" style="height: 250px;" data-handle-color="#637283">
<li>
<a href="javascript:;">
<span class="time">just now</span>
<span class="details">
<span class="label label-sm label-icon label-success">
<i class="fa fa-plus"></i>
</span>
New user registered. </span>
</a>
</li>
<li>
<a href="javascript:;">
<span class="time">3 mins</span>
<span class="details">
<span class="label label-sm label-icon label-danger">
<i class="fa fa-bolt"></i>
</span>
Server #12 overloaded. </span>
</a>
</li>
<li>
<a href="javascript:;">
<span class="time">10 mins</span>
<span class="details">
<span class="label label-sm label-icon label-warning">
<i class="fa fa-bell-o"></i>
</span>
Server #2 not responding. </span>
</a>
</li>
<li>
<a href="javascript:;">
<span class="time">14 hrs</span>
<span class="details">
<span class="label label-sm label-icon label-info">
<i class="fa fa-bullhorn"></i>
</span>
Application error. </span>
</a>
</li>
<li>
<a href="javascript:;">
<span class="time">2 days</span>
<span class="details">
<span class="label label-sm label-icon label-danger">
<i class="fa fa-bolt"></i>
</span>
Database overloaded 68%. </span>
</a>
</li>
<li>
<a href="javascript:;">
<span class="time">3 days</span>
<span class="details">
<span class="label label-sm label-icon label-danger">
<i class="fa fa-bolt"></i>
</span>
A user IP blocked. </span>
</a>
</li>
<li>
<a href="javascript:;">
<span class="time">4 days</span>
<span class="details">
<span class="label label-sm label-icon label-warning">
<i class="fa fa-bell-o"></i>
</span>
Storage Server #4 not responding dfdfdfd. </span>
</a>
</li>
<li>
<a href="javascript:;">
<span class="time">5 days</span>
<span class="details">
<span class="label label-sm label-icon label-info">
<i class="fa fa-bullhorn"></i>
</span>
System Error. </span>
</a>
</li>
<li>
<a href="javascript:;">
<span class="time">9 days</span>
<span class="details">
<span class="label label-sm label-icon label-danger">
<i class="fa fa-bolt"></i>
</span>
Storage server failed. </span>
</a>
</li>
</ul>
</li>
</ul>
</li>
<!-- END NOTIFICATION DROPDOWN -->
<li class="separator hide">
</li>
<!-- BEGIN INBOX DROPDOWN -->
<!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
<li class="dropdown dropdown-extended dropdown-inbox dropdown-dark" id="header_inbox_bar">
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
<i class="icon-envelope-open"></i>
<span class="badge badge-danger">
4 </span>
</a>
<ul class="dropdown-menu">
<li class="external">
<h3>You have <span class="bold">7 New</span> Messages</h3>
<a href="inbox.html">view all</a>
</li>
<li>
<ul class="dropdown-menu-list scroller" style="height: 275px;" data-handle-color="#637283">
<li>
<a href="inbox.html?a=view">
<span class="photo">
<img src="../../assets/admin/layout3/img/avatar2.jpg" class="img-circle" alt="">
</span>
<span class="subject">
<span class="from">
Lisa Wong </span>
<span class="time">Just Now </span>
</span>
<span class="message">
Vivamus sed auctor nibh congue nibh. auctor nibh auctor nibh... </span>
</a>
</li>
<li>
<a href="inbox.html?a=view">
<span class="photo">
<img src="../../assets/admin/layout3/img/avatar3.jpg" class="img-circle" alt="">
</span>
<span class="subject">
<span class="from">
Richard Doe </span>
<span class="time">16 mins </span>
</span>
<span class="message">
Vivamus sed congue nibh auctor nibh congue nibh. auctor nibh auctor nibh... </span>
</a>
</li>
<li>
<a href="inbox.html?a=view">
<span class="photo">
<img src="../../assets/admin/layout3/img/avatar1.jpg" class="img-circle" alt="">
</span>
<span class="subject">
<span class="from">
Bob Nilson </span>
<span class="time">2 hrs </span>
</span>
<span class="message">
Vivamus sed nibh auctor nibh congue nibh. auctor nibh auctor nibh... </span>
</a>
</li>
<li>
<a href="inbox.html?a=view">
<span class="photo">
<img src="../../assets/admin/layout3/img/avatar2.jpg" class="img-circle" alt="">
</span>
<span class="subject">
<span class="from">
Lisa Wong </span>
<span class="time">40 mins </span>
</span>
<span class="message">
Vivamus sed auctor 40% nibh congue nibh... </span>
</a>
</li>
<li>
<a href="inbox.html?a=view">
<span class="photo">
<img src="../../assets/admin/layout3/img/avatar3.jpg" class="img-circle" alt="">
</span>
<span class="subject">
<span class="from">
Richard Doe </span>
<span class="time">46 mins </span>
</span>
<span class="message">
Vivamus sed congue nibh auctor nibh congue nibh. auctor nibh auctor nibh... </span>
</a>
</li>
</ul>
</li>
</ul>
</li>
<!-- END INBOX DROPDOWN -->
<li class="separator hide">
</li>
<!-- BEGIN TODO DROPDOWN -->
<!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
<li class="dropdown dropdown-extended dropdown-tasks dropdown-dark" id="header_task_bar">
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
<i class="icon-calendar"></i>
<span class="badge badge-primary">
3 </span>
</a>
<ul class="dropdown-menu extended tasks">
<li class="external">
<h3>You have <span class="bold">12 pending</span> tasks</h3>
<a href="page_todo.html">view all</a>
</li>
<li>
<ul class="dropdown-menu-list scroller" style="height: 275px;" data-handle-color="#637283">
<li>
<a href="javascript:;">
<span class="task">
<span class="desc">New release v1.2 </span>
<span class="percent">30%</span>
</span>
<span class="progress">
<span style="width: 40%;" class="progress-bar progress-bar-success" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"><span class="sr-only">40% Complete</span></span>
</span>
</a>
</li>
<li>
<a href="javascript:;">
<span class="task">
<span class="desc">Application deployment</span>
<span class="percent">65%</span>
</span>
<span class="progress">
<span style="width: 65%;" class="progress-bar progress-bar-danger" aria-valuenow="65" aria-valuemin="0" aria-valuemax="100"><span class="sr-only">65% Complete</span></span>
</span>
</a>
</li>
<li>
<a href="javascript:;">
<span class="task">
<span class="desc">Mobile app release</span>
<span class="percent">98%</span>
</span>
<span class="progress">
<span style="width: 98%;" class="progress-bar progress-bar-success" aria-valuenow="98" aria-valuemin="0" aria-valuemax="100"><span class="sr-only">98% Complete</span></span>
</span>
</a>
</li>
<li>
<a href="javascript:;">
<span class="task">
<span class="desc">Database migration</span>
<span class="percent">10%</span>
</span>
<span class="progress">
<span style="width: 10%;" class="progress-bar progress-bar-warning" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"><span class="sr-only">10% Complete</span></span>
</span>
</a>
</li>
<li>
<a href="javascript:;">
<span class="task">
<span class="desc">Web server upgrade</span>
<span class="percent">58%</span>
</span>
<span class="progress">
<span style="width: 58%;" class="progress-bar progress-bar-info" aria-valuenow="58" aria-valuemin="0" aria-valuemax="100"><span class="sr-only">58% Complete</span></span>
</span>
</a>
</li>
<li>
<a href="javascript:;">
<span class="task">
<span class="desc">Mobile development</span>
<span class="percent">85%</span>
</span>
<span class="progress">
<span style="width: 85%;" class="progress-bar progress-bar-success" aria-valuenow="85" aria-valuemin="0" aria-valuemax="100"><span class="sr-only">85% Complete</span></span>
</span>
</a>
</li>
<li>
<a href="javascript:;">
<span class="task">
<span class="desc">New UI release</span>
<span class="percent">38%</span>
</span>
<span class="progress progress-striped">
<span style="width: 38%;" class="progress-bar progress-bar-important" aria-valuenow="18" aria-valuemin="0" aria-valuemax="100"><span class="sr-only">38% Complete</span></span>
</span>
</a>
</li>
</ul>
</li>
</ul>
</li>
<!-- END TODO DROPDOWN -->
<!-- BEGIN USER LOGIN DROPDOWN -->
<!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
<li class="dropdown dropdown-user dropdown-dark">
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
<span class="username username-hide-on-mobile">
Nick </span>
<!-- DOC: Do not remove below empty space( ) as its purposely used -->
<img alt="" class="img-circle" src="../../assets/admin/layout4/img/avatar9.jpg"/>
</a>
<ul class="dropdown-menu dropdown-menu-default">
<li>
<a href="extra_profile.html">
<i class="icon-user"></i> My Profile </a>
</li>
<li>
<a href="page_calendar.html">
<i class="icon-calendar"></i> My Calendar </a>
</li>
<li>
<a href="inbox.html">
<i class="icon-envelope-open"></i> My Inbox <span class="badge badge-danger">
3 </span>
</a>
</li>
<li>
<a href="page_todo.html">
<i class="icon-rocket"></i> My Tasks <span class="badge badge-success">
7 </span>
</a>
</li>
<li class="divider">
</li>
<li>
<a href="extra_lock.html">
<i class="icon-lock"></i> Lock Screen </a>
</li>
<li>
<a href="login.html">
<i class="icon-key"></i> Log Out </a>
</li>
</ul>
</li>
<!-- END USER LOGIN DROPDOWN -->
</ul>
</div>
<!-- END TOP NAVIGATION MENU -->
</div>
<!-- END PAGE TOP -->
</div>
<!-- END HEADER INNER -->
</div>
<!-- END HEADER -->
<div class="clearfix">
</div>
<!-- BEGIN CONTAINER -->
<div class="page-container">
<!-- BEGIN SIDEBAR -->
<div class="page-sidebar-wrapper">
<!-- DOC: Set data-auto-scroll="false" to disable the sidebar from auto scrolling/focusing -->
<!-- DOC: Change data-auto-speed="200" to adjust the sub menu slide up/down speed -->
<div class="page-sidebar navbar-collapse collapse">
<!-- BEGIN SIDEBAR MENU -->
<!-- DOC: Apply "page-sidebar-menu-light" class right after "page-sidebar-menu" to enable light sidebar menu style(without borders) -->
<!-- DOC: Apply "page-sidebar-menu-hover-submenu" class right after "page-sidebar-menu" to enable hoverable(hover vs accordion) sub menu mode -->
<!-- DOC: Apply "page-sidebar-menu-closed" class right after "page-sidebar-menu" to collapse("page-sidebar-closed" class must be applied to the body element) the sidebar sub menu mode -->
<!-- DOC: Set data-auto-scroll="false" to disable the sidebar from auto scrolling/focusing -->
<!-- DOC: Set data-keep-expand="true" to keep the submenues expanded -->
<!-- DOC: Set data-auto-speed="200" to adjust the sub menu slide up/down speed -->
<ul class="page-sidebar-menu page-sidebar-menu-closed" data-keep-expanded="false" data-auto-scroll="true" data-slide-speed="200">
<li class="start ">
<a href="index.html">
<i class="icon-home"></i>
<span class="title">Dashboard</span>
</a>
</li>
<li>
<a href="javascript:;">
<i class="icon-basket"></i>
<span class="title">eCommerce</span>
<span class="arrow "></span>
</a>
<ul class="sub-menu">
<li>
<a href="ecommerce_index.html">
<i class="icon-home"></i>
Dashboard</a>
</li>
<li>
<a href="ecommerce_orders.html">
<i class="icon-basket"></i>
Orders</a>
</li>
<li>
<a href="ecommerce_orders_view.html">
<i class="icon-tag"></i>
Order View</a>
</li>
<li>
<a href="ecommerce_products.html">
<i class="icon-handbag"></i>
Products</a>
</li>
<li>
<a href="ecommerce_products_edit.html">
<i class="icon-pencil"></i>
Product Edit</a>
</li>
</ul>
</li>
<li>
<a href="javascript:;">
<i class="icon-rocket"></i>
<span class="title">Page Layouts</span>
<span class="arrow "></span>
</a>
<ul class="sub-menu">
<li>
<a href="layout_sidebar_reversed.html">
<span class="badge badge-warning">new</span>Right Sidebar Page</a>
</li>
<li>
<a href="layout_sidebar_fixed.html">
Sidebar Fixed Page</a>
</li>
<li>
<a href="layout_sidebar_closed.html">
Sidebar Closed Page</a>
</li>
<li>
<a href="layout_blank_page.html">
Blank Page</a>
</li>
<li>
<a href="layout_boxed_page.html">
Boxed Page</a>
</li>
<li>
<a href="layout_language_bar.html">
Language Switch Bar</a>
</li>
</ul>
</li>
<li>
<a href="javascript:;">
<i class="icon-diamond"></i>
<span class="title">UI Features</span>
<span class="arrow "></span>
</a>
<ul class="sub-menu">
<li>
<a href="ui_general.html">
General Components</a>
</li>
<li>
<a href="ui_buttons.html">
Buttons</a>
</li>
<li>
<a href="ui_icons.html">
<span class="badge badge-danger">new</span>Font Icons</a>
</li>
<li>
<a href="ui_colors.html">
Flat UI Colors</a>
</li>
<li>
<a href="ui_typography.html">
Typography</a>
</li>
<li>
<a href="ui_tabs_accordions_navs.html">
Tabs, Accordions & Navs</a>
</li>
<li>
<a href="ui_tree.html">
<span class="badge badge-danger">new</span>Tree View</a>
</li>
<li>
<a href="ui_page_progress_style_1.html">
<span class="badge badge-warning">new</span>Page Progress Bar - Style 1</a>
</li>
<li>
<a href="ui_blockui.html">
Block UI</a>
</li>
<li>
<a href="ui_bootstrap_growl.html">
<span class="badge badge-roundless badge-warning">new</span>Bootstrap Growl Notifications</a>
</li>
<li>
<a href="ui_notific8.html">
Notific8 Notifications</a>
</li>
<li>
<a href="ui_toastr.html">
Toastr Notifications</a>
</li>
<li>
<a href="ui_alert_dialog_api.html">
<span class="badge badge-danger">new</span>Alerts & Dialogs API</a>
</li>
<li>
<a href="ui_session_timeout.html">
Session Timeout</a>
</li>
<li>
<a href="ui_idle_timeout.html">
User Idle Timeout</a>
</li>
<li>
<a href="ui_modals.html">
Modals</a>
</li>
<li>
<a href="ui_extended_modals.html">
Extended Modals</a>
</li>
<li>
<a href="ui_tiles.html">
Tiles</a>
</li>
<li>
<a href="ui_datepaginator.html">
<span class="badge badge-success">new</span>Date Paginator</a>
</li>
<li>
<a href="ui_nestable.html">
Nestable List</a>
</li>
</ul>
</li>
<li>
<a href="javascript:;">
<i class="icon-puzzle"></i>
<span class="title">UI Components</span>
<span class="arrow "></span>
</a>
<ul class="sub-menu">
<li>
<a href="components_pickers.html">
Date & Time Pickers</a>
</li>
<li>
<a href="components_context_menu.html">
Context Menu</a>
</li>
<li>
<a href="components_dropdowns.html">
Custom Dropdowns</a>
</li>
<li>
<a href="components_form_tools.html">
Form Widgets & Tools</a>
</li>
<li>
<a href="components_form_tools2.html">
Form Widgets & Tools 2</a>
</li>
<li>
<a href="components_editors.html">
Markdown & WYSIWYG Editors</a>
</li>
<li>
<a href="components_ion_sliders.html">
Ion Range Sliders</a>
</li>
<li>
<a href="components_noui_sliders.html">
NoUI Range Sliders</a>
</li>
<li>
<a href="components_jqueryui_sliders.html">
jQuery UI Sliders</a>
</li>
<li>
<a href="components_knob_dials.html">
Knob Circle Dials</a>
</li>
</ul>
</li>
<!-- BEGIN ANGULARJS LINK -->
<li class="tooltips" data-container="body" data-placement="right" data-html="true" data-original-title="AngularJS version demo">
<a href="angularjs" target="_blank">
<i class="icon-paper-plane"></i>
<span class="title">
AngularJS Version </span>
</a>
</li>
<!-- END ANGULARJS LINK -->
<li>
<a href="javascript:;">
<i class="icon-settings"></i>
<span class="title">Form Stuff</span>
<span class="arrow "></span>
</a>
<ul class="sub-menu">
<li>
<a href="form_controls_md.html">
<span class="badge badge-roundless badge-danger">new</span>Material Design<br>
Form Controls</a>
</li>
<li>
<a href="form_controls.html">
Bootstrap<br>
Form Controls</a>
</li>
<li>
<a href="form_layouts.html">
Form Layouts</a>
</li>
<li>
<a href="form_editable.html">
<span class="badge badge-warning">new</span>Form X-editable</a>
</li>
<li>
<a href="form_wizard.html">
Form Wizard</a>
</li>
<li>
<a href="form_validation.html">
Form Validation</a>
</li>
<li>
<a href="form_image_crop.html">
<span class="badge badge-danger">new</span>Image Cropping</a>
</li>
<li>
<a href="form_fileupload.html">
Multiple File Upload</a>
</li>
<li>
<a href="form_dropzone.html">
Dropzone File Upload</a>
</li>
</ul>
</li>
<li>
<a href="javascript:;">
<i class="icon-briefcase"></i>
<span class="title">Data Tables</span>
<span class="arrow "></span>
</a>
<ul class="sub-menu">
<li>
<a href="table_basic.html">
Basic Datatables</a>
</li>
<li>
<a href="table_tree.html">
Tree Datatables</a>
</li>
<li>
<a href="table_responsive.html">
Responsive Datatables</a>
</li>
<li>
<a href="table_managed.html">
Managed Datatables</a>
</li>
<li>
<a href="table_editable.html">
Editable Datatables</a>
</li>
<li>
<a href="table_advanced.html">
Advanced Datatables</a>
</li>
<li>
<a href="table_ajax.html">
Ajax Datatables</a>
</li>
</ul>
</li>
<li>
<a href="javascript:;">
<i class="icon-wallet"></i>
<span class="title">Portlets</span>
<span class="arrow "></span>
</a>
<ul class="sub-menu">
<li>
<a href="portlet_general.html">
General Portlets</a>
</li>
<li>
<a href="portlet_general2.html">
<span class="badge badge-danger">new</span>New Portlets #1</a>
</li>
<li>
<a href="portlet_general3.html">
<span class="badge badge-danger">new</span>New Portlets #2</a>
</li>
<li>
<a href="portlet_ajax.html">
Ajax Portlets</a>
</li>
<li>
<a href="portlet_draggable.html">
Draggable Portlets</a>
</li>
</ul>
</li>
<li>
<a href="javascript:;">
<i class="icon-bar-chart"></i>
<span class="title">Charts</span>
<span class="arrow "></span>
</a>
<ul class="sub-menu">
<li>
<a href="charts_amcharts.html">
Amchart</a>
</li>
<li>
<a href="charts_flotcharts.html">
Flotchart</a>
</li>
</ul>
</li>
<li class="active open">
<a href="javascript:;">
<i class="icon-docs"></i>
<span class="title">Pages</span>
<span class="arrow open"></span>
</a>
<ul class="sub-menu">
<li>
<a href="page_timeline.html">
<i class="icon-paper-plane"></i>
<span class="badge badge-warning">2</span>New Timeline</a>
</li>
<li>
<a href="extra_profile.html">
<i class="icon-user-following"></i>
<span class="badge badge-success badge-roundless">new</span>New User Profile</a>
</li>
<li class="active">
<a href="page_todo.html">
<i class="icon-hourglass"></i>
<span class="badge badge-danger">4</span>Todo</a>
</li>
<li>
<a href="inbox.html">
<i class="icon-envelope"></i>
<span class="badge badge-danger">4</span>Inbox</a>
</li>
<li>
<a href="extra_faq.html">
<i class="icon-info"></i>
FAQ</a>
</li>
<li>
<a href="page_portfolio.html">
<i class="icon-feed"></i>
Portfolio</a>
</li>
<li>
<a href="page_timeline.html">
<i class="icon-clock"></i>
<span class="badge badge-info">4</span>Timeline</a>
</li>
<li>
<a href="page_coming_soon.html">
<i class="icon-flag"></i>
Coming Soon</a>
</li>
<li>
<a href="page_calendar.html">
<i class="icon-calendar"></i>
<span class="badge badge-danger">14</span>Calendar</a>
</li>
<li>
<a href="extra_invoice.html">
<i class="icon-flag"></i>
Invoice</a>
</li>
<li>
<a href="page_blog.html">
<i class="icon-speech"></i>
Blog</a>
</li>
<li>
<a href="page_blog_item.html">
<i class="icon-link"></i>
Blog Post</a>
</li>
<li>
<a href="page_news.html">
<i class="icon-eye"></i>
<span class="badge badge-success">9</span>News</a>
</li>
<li>
<a href="page_news_item.html">
<i class="icon-bell"></i>
News View</a>
</li>
<li>
<a href="page_timeline_old.html">
<i class="icon-paper-plane"></i>
<span class="badge badge-warning">2</span>Old Timeline</a>
</li>
<li>
<a href="extra_profile_old.html">
<i class="icon-user"></i>
Old User Profile</a>
</li>
</ul>
</li>
<li>
<a href="javascript:;">
<i class="icon-present"></i>
<span class="title">Extra</span>
<span class="arrow "></span>
</a>
<ul class="sub-menu">
<li>
<a href="page_about.html">
About Us</a>
</li>
<li>
<a href="page_contact.html">
Contact Us</a>
</li>
<li>
<a href="extra_search.html">
Search Results</a>
</li>
<li>
<a href="extra_pricing_table.html">
Pricing Tables</a>
</li>
<li>
<a href="extra_404_option1.html">
404 Page Option 1</a>
</li>
<li>
<a href="extra_404_option2.html">
404 Page Option 2</a>
</li>
<li>
<a href="extra_404_option3.html">
404 Page Option 3</a>
</li>
<li>
<a href="extra_500_option1.html">
500 Page Option 1</a>
</li>
<li>
<a href="extra_500_option2.html">
500 Page Option 2</a>
</li>
</ul>
</li>
<li>
<a href="javascript:;">
<i class="icon-folder"></i>
<span class="title">Multi Level Menu</span>
<span class="arrow "></span>
</a>
<ul class="sub-menu">
<li>
<a href="javascript:;">
<i class="icon-settings"></i> Item 1 <span class="arrow"></span>
</a>
<ul class="sub-menu">
<li>
<a href="javascript:;">
<i class="icon-user"></i>
Sample Link 1 <span class="arrow"></span>
</a>
<ul class="sub-menu">
<li>
<a href="#"><i class="icon-power"></i> Sample Link 1</a>
</li>
<li>
<a href="#"><i class="icon-paper-plane"></i> Sample Link 1</a>
</li>
<li>
<a href="#"><i class="icon-star"></i> Sample Link 1</a>
</li>
</ul>
</li>
<li>
<a href="#"><i class="icon-camera"></i> Sample Link 1</a>
</li>
<li>
<a href="#"><i class="icon-link"></i> Sample Link 2</a>
</li>
<li>
<a href="#"><i class="icon-pointer"></i> Sample Link 3</a>
</li>
</ul>
</li>
<li>
<a href="javascript:;">
<i class="icon-globe"></i> Item 2 <span class="arrow"></span>
</a>
<ul class="sub-menu">
<li>
<a href="#"><i class="icon-tag"></i> Sample Link 1</a>
</li>
<li>
<a href="#"><i class="icon-pencil"></i> Sample Link 1</a>
</li>
<li>
<a href="#"><i class="icon-graph"></i> Sample Link 1</a>
</li>
</ul>
</li>
<li>
<a href="#">
<i class="icon-bar-chart"></i>
Item 3 </a>
</li>
</ul>
</li>
<li>
<a href="javascript:;">
<i class="icon-user"></i>
<span class="title">Login Options</span>
<span class="arrow "></span>
</a>
<ul class="sub-menu">
<li>
<a href="login.html">
Login Form 1</a>
</li>
<li>
<a href="login_2.html">
Login Form 2</a>
</li>
<li>
<a href="login_3.html">
Login Form 3</a>
</li>
<li>
<a href="login_soft.html">
Login Form 4</a>
</li>
<li>
<a href="extra_lock.html">
Lock Screen 1</a>
</li>
<li>
<a href="extra_lock2.html">
Lock Screen 2</a>
</li>
</ul>
</li>
<li class="last ">
<a href="javascript:;">
<i class="icon-pointer"></i>
<span class="title">Maps</span>
<span class="arrow "></span>
</a>
<ul class="sub-menu">
<li>
<a href="maps_google.html">
Google Maps</a>
</li>
<li>
<a href="maps_vector.html">
Vector Maps</a>
</li>
</ul>
</li>
</ul>
<!-- END SIDEBAR MENU -->
</div>
</div>
<!-- END SIDEBAR -->
<!-- BEGIN CONTENT -->
<div class="page-content-wrapper">
<div class="page-content">
<!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
<div class="modal fade" id="portlet-config" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
<h4 class="modal-title">Modal title</h4>
</div>
<div class="modal-body">
Widget settings form goes here
</div>
<div class="modal-footer">
<button type="button" class="btn blue">Save changes</button>
<button type="button" class="btn default" data-dismiss="modal">Close</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>
<!-- /.modal -->
<!-- END SAMPLE PORTLET CONFIGURATION MODAL FORM-->
<!-- BEGIN PAGE HEADER-->
<!-- BEGIN PAGE HEAD -->
<div class="page-head">
<!-- BEGIN PAGE TITLE -->
<div class="page-title">
<h1>Todo <small>todo & task management</small></h1>
</div>
<!-- END PAGE TITLE -->
<!-- BEGIN PAGE TOOLBAR -->
<div class="page-toolbar">
<!-- BEGIN THEME PANEL -->
<div class="btn-group btn-theme-panel">
<a href="javascript:;" class="btn dropdown-toggle" data-toggle="dropdown">
<i class="icon-settings"></i>
</a>
<div class="dropdown-menu theme-panel pull-right dropdown-custom hold-on-click">
<div class="row">
<div class="col-md-4 col-sm-4 col-xs-12">
<h3>THEME</h3>
<ul class="theme-colors">
<li class="theme-color theme-color-default active" data-theme="default">
<span class="theme-color-view"></span>
<span class="theme-color-name">Dark Header</span>
</li>
<li class="theme-color theme-color-light" data-theme="light">
<span class="theme-color-view"></span>
<span class="theme-color-name">Light Header</span>
</li>
</ul>
</div>
<div class="col-md-8 col-sm-8 col-xs-12 seperator">
<h3>LAYOUT</h3>
<ul class="theme-settings">
<li>
Theme Style
<select class="layout-style-option form-control input-small input-sm">
<option value="square" selected="selected">Square corners</option>
<option value="rounded">Rounded corners</option>
</select>
</li>
<li>
Layout
<select class="layout-option form-control input-small input-sm">
<option value="fluid" selected="selected">Fluid</option>
<option value="boxed">Boxed</option>
</select>
</li>
<li>
Header
<select class="page-header-option form-control input-small input-sm">
<option value="fixed" selected="selected">Fixed</option>
<option value="default">Default</option>
</select>
</li>
<li>
Top Dropdowns
<select class="page-header-top-dropdown-style-option form-control input-small input-sm">
<option value="light">Light</option>
<option value="dark" selected="selected">Dark</option>
</select>
</li>
<li>
Sidebar Mode
<select class="sidebar-option form-control input-small input-sm">
<option value="fixed">Fixed</option>
<option value="default" selected="selected">Default</option>
</select>
</li>
<li>
Sidebar Menu
<select class="sidebar-menu-option form-control input-small input-sm">
<option value="accordion" selected="selected">Accordion</option>
<option value="hover">Hover</option>
</select>
</li>
<li>
Sidebar Position
<select class="sidebar-pos-option form-control input-small input-sm">
<option value="left" selected="selected">Left</option>
<option value="right">Right</option>
</select>
</li>
<li>
Footer
<select class="page-footer-option form-control input-small input-sm">
<option value="fixed">Fixed</option>
<option value="default" selected="selected">Default</option>
</select>
</li>
</ul>
</div>
</div>
</div>
</div>
<!-- END THEME PANEL -->
</div>
<!-- END PAGE TOOLBAR -->
</div>
<!-- END PAGE HEAD -->
<!-- BEGIN PAGE BREADCRUMB -->
<ul class="page-breadcrumb breadcrumb">
<li>
<a href="index.html">Home</a>
<i class="fa fa-circle"></i>
</li>
<li>
<a href="#">Pages</a>
<i class="fa fa-circle"></i>
</li>
<li>
<a href="#">Todo</a>
</li>
</ul>
<!-- END PAGE BREADCRUMB -->
<!-- END PAGE HEADER-->
<!-- BEGIN PAGE CONTENT-->
<div class="row">
<div class="col-md-12">
<!-- BEGIN TODO SIDEBAR -->
<div class="todo-sidebar">
<div class="portlet light">
<div class="portlet-title">
<div class="caption" data-toggle="collapse" data-target=".todo-project-list-content">
<span class="caption-subject font-green-sharp bold uppercase">PROJECTS </span>
<span class="caption-helper visible-sm-inline-block visible-xs-inline-block">click to view project list</span>
</div>
<div class="actions">
<div class="btn-group">
<a class="btn green-haze btn-circle btn-sm todo-projects-config" href="javascript:;" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
<i class="icon-settings"></i> <i class="fa fa-angle-down"></i>
</a>
<ul class="dropdown-menu pull-right">
<li>
<a href="javascript:;">
<i class="i"></i> New Project </a>
</li>
<li class="divider">
</li>
<li>
<a href="javascript:;">
Pending <span class="badge badge-danger">
4 </span>
</a>
</li>
<li>
<a href="javascript:;">
Completed <span class="badge badge-success">
12 </span>
</a>
</li>
<li>
<a href="javascript:;">
Overdue <span class="badge badge-warning">
9 </span>
</a>
</li>
<li class="divider">
</li>
<li>
<a href="javascript:;">
<i class="i"></i> Archived Projects </a>
</li>
</ul>
</div>
</div>
</div>
<div class="portlet-body todo-project-list-content">
<div class="todo-project-list">
<ul class="nav nav-pills nav-stacked">
<li>
<a href="javascript:;">
<span class="badge badge-success"> 6 </span> AirAsia Ads </a>
</li>
<li>
<a href="javascript:;">
<span class="badge badge-success"> 2 </span> HSBC Promo </a>
</li>
<li class="active">
<a href="javascript:;">
<span class="badge badge-success badge-active"> 3 </span> GlobalEx System </a>
</li>
<li>
<a href="javascript:;">
<span class="badge badge-default"> 14 </span> Empire City </a>
</li>
<li>
<a href="javascript:;">
<span class="badge badge-success"> 6 </span> AirAsia Ads </a>
</li>
<li>
<a href="javascript:;">
<span class="badge badge-success"> 2 </span> Loop Inc Promo </a>
</li>
</ul>
</div>
</div>
</div>
</div>
<!-- END TODO SIDEBAR -->
<!-- BEGIN TODO CONTENT -->
<div class="todo-content">
<div class="portlet light">
<!-- PROJECT HEAD -->
<div class="portlet-title">
<div class="caption">
<i class="icon-bar-chart font-green-sharp hide"></i>
<span class="caption-helper">PROJECT:</span> <span class="caption-subject font-green-sharp bold uppercase">Tune Website</span>
</div>
<div class="actions">
<div class="btn-group">
<a class="btn green-haze btn-circle btn-sm" href="javascript:;" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
MANAGE <i class="fa fa-angle-down"></i>
</a>
<ul class="dropdown-menu pull-right">
<li>
<a href="javascript:;">
<i class="i"></i> New Task </a>
</li>
<li class="divider">
</li>
<li>
<a href="javascript:;">
Pending <span class="badge badge-danger">
4 </span>
</a>
</li>
<li>
<a href="javascript:;">
Completed <span class="badge badge-success">
12 </span>
</a>
</li>
<li>
<a href="javascript:;">
Overdue <span class="badge badge-warning">
9 </span>
</a>
</li>
<li class="divider">
</li>
<li>
<a href="javascript:;">
<i class="i"></i> Delete Project </a>
</li>
</ul>
</div>
</div>
</div>
<!-- end PROJECT HEAD -->
<div class="portlet-body">
<div class="row">
<div class="col-md-5 col-sm-4">
<div class="scroller" style="max-height: 800px;" data-always-visible="0" data-rail-visible="0" data-handle-color="#dae3e7">
<div class="todo-tasklist">
<div class="todo-tasklist-item todo-tasklist-item-border-green">
<img class="todo-userpic pull-left" src="../../assets/admin/layout4/img/avatar4.jpg" width="27px" height="27px">
<div class="todo-tasklist-item-title">
Slider Redesign
</div>
<div class="todo-tasklist-item-text">
Lorem dolor sit amet ipsum dolor sit consectetuer dolore.
</div>
<div class="todo-tasklist-controls pull-left">
<span class="todo-tasklist-date"><i class="fa fa-calendar"></i> 21 Sep 2014 </span>
<span class="todo-tasklist-badge badge badge-roundless">Urgent</span>
</div>
</div>
<div class="todo-tasklist-item todo-tasklist-item-border-red">
<img class="todo-userpic pull-left" src="../../assets/admin/layout4/img/avatar5.jpg" width="27px" height="27px">
<div class="todo-tasklist-item-title">
Homepage Alignments to adjust
</div>
<div class="todo-tasklist-item-text">
Lorem ipsum dolor sit amet, consectetuer dolore dolor sit amet.
</div>
<div class="todo-tasklist-controls pull-left">
<span class="todo-tasklist-date"><i class="fa fa-calendar"></i> 14 Sep 2014 </span>
<span class="todo-tasklist-badge badge badge-roundless">Important</span>
</div>
</div>
<div class="todo-tasklist-item todo-tasklist-item-border-green">
<img class="todo-userpic pull-left" src="../../assets/admin/layout4/img/avatar9.jpg" width="27px" height="27px">
<div class="todo-tasklist-item-title">
Slider Redesign
</div>
<div class="todo-tasklist-controls pull-left">
<span class="todo-tasklist-date"><i class="fa fa-calendar"></i> 10 Feb 2015 </span>
<span class="todo-tasklist-badge badge badge-roundless">Important</span>
</div>
</div>
<div class="todo-tasklist-item todo-tasklist-item-border-blue">
<img class="todo-userpic pull-left" src="../../assets/admin/layout4/img/avatar6.jpg" width="27px" height="27px">
<div class="todo-tasklist-item-title">
Contact Us Map Location changes
</div>
<div class="todo-tasklist-item-text">
Lorem ipsum amet, consectetuer dolore dolor sit amet.
</div>
<div class="todo-tasklist-controls pull-left">
<span class="todo-tasklist-date"><i class="fa fa-calendar"></i> 04 Oct 2014 </span>
<span class="todo-tasklist-badge badge badge-roundless">Postponed</span> <span class="todo-tasklist-badge badge badge-roundless">Test</span>
</div>
</div>
<div class="todo-tasklist-item todo-tasklist-item-border-purple">
<img class="todo-userpic pull-left" src="../../assets/admin/layout4/img/avatar7.jpg" width="27px" height="27px">
<div class="todo-tasklist-item-title">
Projects list new Forms
</div>
<div class="todo-tasklist-item-text">
Lorem ipsum dolor sit amet, consectetuer dolore psum dolor sit.
</div>
<div class="todo-tasklist-controls pull-left">
<span class="todo-tasklist-date"><i class="fa fa-calendar"></i> 19 Dec 2014 </span>
</div>
</div>
<div class="todo-tasklist-item todo-tasklist-item-border-yellow">
<img class="todo-userpic pull-left" src="../../assets/admin/layout4/img/avatar8.jpg" width="27px" height="27px">
<div class="todo-tasklist-item-title">
New Search Keywords
</div>
<div class="todo-tasklist-item-text">
Lorem ipsum dolor sit amet, consectetuer sit amet ipsum dolor, consectetuer ipsum consectetuer sit amet dolore.
</div>
<div class="todo-tasklist-controls pull-left">
<span class="todo-tasklist-date"><i class="fa fa-calendar"></i> 02 Feb 2015 </span>
<span class="todo-tasklist-badge badge badge-roundless">Postponed</span>
</div>
</div>
<div class="todo-tasklist-item todo-tasklist-item-border-green">
<img class="todo-userpic pull-left" src="../../assets/admin/layout4/img/avatar9.jpg" width="27px" height="27px">
<div class="todo-tasklist-item-title">
Slider Redesign
</div>
<div class="todo-tasklist-controls pull-left">
<span class="todo-tasklist-date"><i class="fa fa-calendar"></i> 10 Feb 2015 </span>
<span class="todo-tasklist-badge badge badge-roundless">Important</span>
</div>
</div>
<div class="todo-tasklist-item todo-tasklist-item-border-red">
<img class="todo-userpic pull-left" src="../../assets/admin/layout4/img/avatar5.jpg" width="27px" height="27px">
<div class="todo-tasklist-item-title">
Homepage Alignments to adjust
</div>
<div class="todo-tasklist-item-text">
Lorem ipsum dolor sit amet, consectetuer dolore psum dolor sit.
</div>
<div class="todo-tasklist-controls pull-left">
<span class="todo-tasklist-date"><i class="fa fa-calendar"></i> 14 Sep 2014 </span>
<span class="todo-tasklist-badge badge badge-roundless">Important</span>
</div>
</div>
<div class="todo-tasklist-item todo-tasklist-item-border-blue">
<img class="todo-userpic pull-left" src="../../assets/admin/layout4/img/avatar6.jpg" width="27px" height="27px">
<div class="todo-tasklist-item-title">
Contact Us Improvement
</div>
<div class="todo-tasklist-item-text">
Lorem ipsum amet, psum dolor sit consectetuer dolore.
</div>
<div class="todo-tasklist-controls pull-left">
<span class="todo-tasklist-date"><i class="fa fa-calendar"></i> 21 Feb 2015 </span>
<span class="todo-tasklist-badge badge badge-roundless">Postponed</span> <span class="todo-tasklist-badge badge badge-roundless">Primary</span>
</div>
</div>
</div>
</div>
</div>
<div class="todo-tasklist-devider">
</div>
<div class="col-md-7 col-sm-8">
<div class="scroller" style="max-height: 800px;" data-always-visible="0" data-rail-visible="0" data-handle-color="#dae3e7">
<form action="#" class="form-horizontal">
<!-- TASK HEAD -->
<div class="form">
<div class="form-group">
<div class="col-md-8 col-sm-8">
<div class="todo-taskbody-user">
<img class="todo-userpic pull-left" src="../../assets/admin/layout4/img/avatar6.jpg" width="50px" height="50px">
<span class="todo-username pull-left">Vanessa Bond</span>
<button type="button" class="todo-username-btn btn btn-circle btn-default btn-xs"> edit </button>
</div>
</div>
<div class="col-md-4 col-sm-4">
<div class="todo-taskbody-date pull-right">
<button type="button" class="todo-username-btn btn btn-circle btn-default btn-xs"> Complete </button>
</div>
</div>
</div>
<!-- END TASK HEAD -->
<!-- TASK TITLE -->
<div class="form-group">
<div class="col-md-12">
<input type="text" class="form-control todo-taskbody-tasktitle" placeholder="Task Title...">
</div>
</div>
<!-- TASK DESC -->
<div class="form-group">
<div class="col-md-12">
<textarea class="form-control todo-taskbody-taskdesc" rows="8" placeholder="Task Description..."></textarea>
</div>
</div>
<!-- END TASK DESC -->
<!-- TASK DUE DATE -->
<div class="form-group">
<div class="col-md-12">
<div class="input-icon">
<i class="fa fa-calendar"></i>
<input type="text" class="form-control todo-taskbody-due" placeholder="Due Date...">
</div>
</div>
</div>
<!-- TASK TAGS -->
<div class="form-group">
<div class="col-md-12">
<input type="text" class="form-control todo-taskbody-tags" placeholder="Tags..." value="Pending, Requested">
</div>
</div>
<!-- TASK TAGS -->
<div class="form-actions right todo-form-actions">
<button class="btn btn-circle btn-sm green-haze">Save Changes</button>
<button class="btn btn-circle btn-sm btn-default">Cancel</button>
</div>
</div>
<div class="tabbable-line">
<ul class="nav nav-tabs ">
<li class="active">
<a href="#tab_1" data-toggle="tab">
Comments </a>
</li>
<li>
<a href="#tab_2" data-toggle="tab">
History </a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="tab_1">
<!-- TASK COMMENTS -->
<div class="form-group">
<div class="col-md-12">
<ul class="media-list">
<li class="media">
<a class="pull-left" href="javascript:;">
<img class="todo-userpic" src="../../assets/admin/layout4/img/avatar8.jpg" width="27px" height="27px">
</a>
<div class="media-body todo-comment">
<button type="button" class="todo-comment-btn btn btn-circle btn-default btn-xs"> Reply </button>
<p class="todo-comment-head">
<span class="todo-comment-username">Christina Aguilera</span> <span class="todo-comment-date">17 Sep 2014 at 2:05pm</span>
</p>
<p class="todo-text-color">
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. <br>
</p>
<!-- Nested media object -->
<div class="media">
<a class="pull-left" href="javascript:;">
<img class="todo-userpic" src="../../assets/admin/layout4/img/avatar4.jpg" width="27px" height="27px">
</a>
<div class="media-body">
<p class="todo-comment-head">
<span class="todo-comment-username">Carles Puyol</span> <span class="todo-comment-date">17 Sep 2014 at 4:30pm</span>
</p>
<p class="todo-text-color">
Thanks so much my dear!
</p>
</div>
</div>
</div>
</li>
<li class="media">
<a class="pull-left" href="javascript:;">
<img class="todo-userpic" src="../../assets/admin/layout4/img/avatar5.jpg" width="27px" height="27px">
</a>
<div class="media-body todo-comment">
<button type="button" class="todo-comment-btn btn btn-circle btn-default btn-xs"> Reply </button>
<p class="todo-comment-head">
<span class="todo-comment-username">Andres Iniesta</span> <span class="todo-comment-date">18 Sep 2014 at 9:22am</span>
</p>
<p class="todo-text-color">
Cras sit amet nibh libero, in gravida nulla. Scelerisque ante sollicitudin commodo Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. <br>
</p>
</div>
</li>
<li class="media">
<a class="pull-left" href="javascript:;">
<img class="todo-userpic" src="../../assets/admin/layout4/img/avatar6.jpg" width="27px" height="27px">
</a>
<div class="media-body todo-comment">
<button type="button" class="todo-comment-btn btn btn-circle btn-default btn-xs"> Reply </button>
<p class="todo-comment-head">
<span class="todo-comment-username">Olivia Wilde</span> <span class="todo-comment-date">18 Sep 2014 at 11:50am</span>
</p>
<p class="todo-text-color">
Cras sit amet nibh libero, in gravida nulla. Scelerisque ante sollicitudin commodo Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. <br>
</p>
</div>
</li>
</ul>
</div>
</div>
<!-- END TASK COMMENTS -->
<!-- TASK COMMENT FORM -->
<div class="form-group">
<div class="col-md-12">
<ul class="media-list">
<li class="media">
<img class="todo-userpic pull-left" src="../../assets/admin/layout4/img/avatar4.jpg" width="27px" height="27px">
<div class="media-body">
<textarea class="form-control todo-taskbody-taskdesc" rows="4" placeholder="Type comment..."></textarea>
</div>
</li>
</ul>
<button type="button" class="pull-right btn btn-sm btn-circle green-haze"> Submit </button>
</div>
</div>
<!-- END TASK COMMENT FORM -->
</div>
<div class="tab-pane" id="tab_2">
<ul class="todo-task-history">
<li>
<div class="todo-task-history-date">
20 Jun, 2014 at 11:35am
</div>
<div class="todo-task-history-desc">
Task created
</div>
</li>
<li>
<div class="todo-task-history-date">
21 Jun, 2014 at 10:35pm
</div>
<div class="todo-task-history-desc">
Task category status changed to "Top Priority"
</div>
</li>
<li>
<div class="todo-task-history-date">
22 Jun, 2014 at 11:35am
</div>
<div class="todo-task-history-desc">
Task owner changed to "Nick Larson"
</div>
</li>
<li>
<div class="todo-task-history-date">
30 Jun, 2014 at 8:09am
</div>
<div class="todo-task-history-desc">
Task completed by "Nick Larson"
</div>
</li>
</ul>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- END TODO CONTENT -->
</div>
</div>
<!-- END PAGE CONTENT-->
</div>
</div>
<!-- END CONTENT -->
</div>
<!-- END CONTAINER -->
<!-- BEGIN FOOTER -->
<div class="page-footer">
<div class="page-footer-inner">
2014 © Metronic by keenthemes. <a href="http://themeforest.net/item/metronic-responsive-admin-dashboard-template/4021469?ref=keenthemes" title="Purchase Metronic just for 27$ and get lifetime updates for free" target="_blank">Purchase Metronic!</a>
</div>
<div class="scroll-to-top">
<i class="icon-arrow-up"></i>
</div>
</div>
<!-- END FOOTER -->
<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
<!-- BEGIN CORE PLUGINS -->
<!--[if lt IE 9]>
<script src="../../assets/global/plugins/respond.min.js"></script>
<script src="../../assets/global/plugins/excanvas.min.js"></script>
<![endif]-->
<script src="../../assets/global/plugins/jquery.min.js" type="text/javascript"></script>
<script src="../../assets/global/plugins/jquery-migrate.min.js" type="text/javascript"></script>
<!-- IMPORTANT! Load jquery-ui.min.js before bootstrap.min.js to fix bootstrap tooltip conflict with jquery ui tooltip -->
<script src="../../assets/global/plugins/jquery-ui/jquery-ui.min.js" type="text/javascript"></script>
<script src="../../assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="../../assets/global/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js" type="text/javascript"></script>
<script src="../../assets/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
<script src="../../assets/global/plugins/jquery.blockui.min.js" type="text/javascript"></script>
<script src="../../assets/global/plugins/jquery.cokie.min.js" type="text/javascript"></script>
<script src="../../assets/global/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>
<script src="../../assets/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js" type="text/javascript"></script>
<!-- END CORE PLUGINS -->
<!-- BEGIN PAGE PLUGINS & SCRIPTS -->
<script type="text/javascript" src="../../assets/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>
<script type="text/javascript" src="../../assets/global/plugins/select2/select2.min.js"></script>
<script src="../../assets/admin/pages/scripts/todo.js" type="text/javascript"></script>
<!-- END PAGE PLUGINS & SCRIPTS -->
<script src="../../assets/global/scripts/metronic.js" type="text/javascript"></script>
<script src="../../assets/admin/layout4/scripts/layout.js" type="text/javascript"></script>
<script src="../../assets/admin/layout4/scripts/demo.js" type="text/javascript"></script>
<script>
jQuery(document).ready(function() {
Metronic.init(); // init metronic core components
Layout.init(); // init current layout
Demo.init(); // init demo features
Todo.init(); // init todo page
});
</script>
<!-- END JAVASCRIPTS -->
</body>
<!-- END BODY -->
</html> | {
"content_hash": "dd2d810ba22976ef91d33885a2786259",
"timestamp": "",
"source": "github",
"line_count": 1748,
"max_line_length": 256,
"avg_line_length": 37.94794050343249,
"alnum_prop": 0.5135754451027392,
"repo_name": "wtfckkk/crm-admision",
"id": "eef0f4c086facd538ce0ed901d9e8fc750c2a255",
"size": "66333",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "public/metronic/theme_rtl/templates/admin4/page_todo.html",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "ASP",
"bytes": "596"
},
{
"name": "ApacheConf",
"bytes": "1643"
},
{
"name": "CSS",
"bytes": "10702631"
},
{
"name": "CoffeeScript",
"bytes": "167262"
},
{
"name": "HTML",
"bytes": "157354350"
},
{
"name": "JavaScript",
"bytes": "28206081"
},
{
"name": "PHP",
"bytes": "792194"
},
{
"name": "Shell",
"bytes": "888"
}
],
"symlink_target": ""
} |
package org.apache.ignite.internal.processors.query.h2.twostep;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.atomic.AtomicInteger;
import org.apache.ignite.cluster.ClusterNode;
import org.apache.ignite.internal.GridKernalContext;
import org.apache.ignite.internal.processors.query.h2.opt.GridH2Cursor;
import org.apache.ignite.internal.processors.query.h2.opt.GridH2RowFactory;
import org.h2.engine.Session;
import org.h2.index.Cursor;
import org.h2.index.IndexType;
import org.h2.result.Row;
import org.h2.result.SearchRow;
import org.h2.result.SortOrder;
import org.h2.table.IndexColumn;
import org.h2.table.TableFilter;
import org.h2.value.Value;
/**
* Unsorted merge index.
*/
public final class GridMergeIndexUnsorted extends GridMergeIndex {
/** */
private static final IndexType TYPE = IndexType.createScan(false);
/** */
private final PollableQueue<GridResultPage> queue = new PollableQueue<>();
/** */
private final AtomicInteger activeSources = new AtomicInteger(-1);
/** */
private Iterator<Value[]> iter = Collections.emptyIterator();
/**
* @param ctx Context.
* @param tbl Table.
* @param name Index name.
*/
public GridMergeIndexUnsorted(GridKernalContext ctx, GridMergeTable tbl, String name) {
super(ctx, tbl, name, TYPE, IndexColumn.wrap(tbl.getColumns()));
}
/**
* @param ctx Context.
* @return Dummy index instance.
*/
public static GridMergeIndexUnsorted createDummy(GridKernalContext ctx) {
return new GridMergeIndexUnsorted(ctx);
}
/**
* @param ctx Context.
*/
private GridMergeIndexUnsorted(GridKernalContext ctx) {
super(ctx);
}
/** {@inheritDoc} */
@Override public void setSources(Collection<ClusterNode> nodes, int segmentsCnt) {
super.setSources(nodes, segmentsCnt);
int x = nodes.size() * segmentsCnt;
assert x > 0: x;
activeSources.set(x);
}
/** {@inheritDoc} */
@Override public boolean fetchedAll() {
int x = activeSources.get();
assert x >= 0: x; // This method must not be called if the sources were not set.
return x == 0 && queue.isEmpty();
}
/** {@inheritDoc} */
@Override protected void addPage0(GridResultPage page) {
assert page.rowsInPage() > 0 || page.isLast() || page.isFail();
// Do not add empty page to avoid premature stream termination.
if (page.rowsInPage() != 0 || page.isFail())
queue.add(page);
if (page.isLast()) {
int x = activeSources.decrementAndGet();
assert x >= 0: x;
if (x == 0) // Always terminate with empty iterator.
queue.add(createDummyLastPage(page));
}
}
/** {@inheritDoc} */
@Override public double getCost(Session ses, int[] masks, TableFilter[] filters, int filter, SortOrder sortOrder) {
return getCostRangeIndex(masks, getRowCountApproximation(), filters, filter, sortOrder, true);
}
/** {@inheritDoc} */
@Override protected Cursor findAllFetched(List<Row> fetched, SearchRow first, SearchRow last) {
// This index is unsorted: have to ignore bounds.
return new GridH2Cursor(fetched.iterator());
}
/** {@inheritDoc} */
@Override protected Cursor findInStream(SearchRow first, SearchRow last) {
// This index is unsorted: have to ignore bounds.
return new FetchingCursor(null, null, new Iterator<Row>() {
@Override public boolean hasNext() {
iter = pollNextIterator(queue, iter);
return iter.hasNext();
}
@Override public Row next() {
return GridH2RowFactory.create(iter.next());
}
@Override public void remove() {
throw new UnsupportedOperationException();
}
});
}
/**
*/
private static class PollableQueue<X> extends LinkedBlockingQueue<X> implements Pollable<X> {
// No-op.
}
} | {
"content_hash": "ed7e368db8b2bd534948c6b387b104ec",
"timestamp": "",
"source": "github",
"line_count": 139,
"max_line_length": 119,
"avg_line_length": 30.230215827338128,
"alnum_prop": 0.6427891480247501,
"repo_name": "nivanov/ignite",
"id": "430a687d19ea7bf39f535a65ff49a368c3c1aa31",
"size": "5004",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/twostep/GridMergeIndexUnsorted.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "37548"
},
{
"name": "C",
"bytes": "5286"
},
{
"name": "C#",
"bytes": "4772806"
},
{
"name": "C++",
"bytes": "2506272"
},
{
"name": "CSS",
"bytes": "134061"
},
{
"name": "Groovy",
"bytes": "15092"
},
{
"name": "HTML",
"bytes": "515192"
},
{
"name": "Java",
"bytes": "27293772"
},
{
"name": "JavaScript",
"bytes": "1116197"
},
{
"name": "M4",
"bytes": "5568"
},
{
"name": "Makefile",
"bytes": "104025"
},
{
"name": "Nginx",
"bytes": "3468"
},
{
"name": "PHP",
"bytes": "11079"
},
{
"name": "PowerShell",
"bytes": "13480"
},
{
"name": "Scala",
"bytes": "683756"
},
{
"name": "Shell",
"bytes": "586711"
},
{
"name": "Smalltalk",
"bytes": "1908"
}
],
"symlink_target": ""
} |
<?php
namespace Dez\Authorizer;
class AuthException extends \Exception {} | {
"content_hash": "5172faa525e255b48faef9e92e50210b",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 41,
"avg_line_length": 15,
"alnum_prop": 0.7866666666666666,
"repo_name": "dez-php/dez-authorizer",
"id": "bd767091938ed955ecd6e2fd0402b4cae2672e1e",
"size": "75",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/Auth/AuthException.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "PHP",
"bytes": "22668"
}
],
"symlink_target": ""
} |
CREATE TABLE Entity1
(
Id INTEGER AUTOINCREMENT PRIMARY KEY NOT NULL,
/* /* /* This is an invalid block comment */ */
Column1 INTEGER
)
| {
"content_hash": "2e7848f2d16c090e16989adb0c6adb04",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 49,
"avg_line_length": 23.333333333333332,
"alnum_prop": 0.7,
"repo_name": "Alanyanbc/sharebook",
"id": "07dfd474ad44ba9c57c6624a0ac2a5152cfa1c44",
"size": "140",
"binary": false,
"copies": "5",
"ref": "refs/heads/master",
"path": "tests/res/raw/invalid_block_comment.sql",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "465748"
},
{
"name": "Shell",
"bytes": "356"
}
],
"symlink_target": ""
} |
using System;
using System.Web.Http;
using System.Web.Mvc;
using who_is_that_guy.Areas.HelpPage.ModelDescriptions;
using who_is_that_guy.Areas.HelpPage.Models;
namespace who_is_that_guy.Areas.HelpPage.Controllers
{
/// <summary>
/// The controller that will handle requests for the help page.
/// </summary>
public class HelpController : Controller
{
private const string ErrorViewName = "Error";
public HelpController()
: this(GlobalConfiguration.Configuration)
{
}
public HelpController(HttpConfiguration config)
{
Configuration = config;
}
public HttpConfiguration Configuration { get; private set; }
public ActionResult Index()
{
ViewBag.DocumentationProvider = Configuration.Services.GetDocumentationProvider();
return View(Configuration.Services.GetApiExplorer().ApiDescriptions);
}
public ActionResult Api(string apiId)
{
if (!String.IsNullOrEmpty(apiId))
{
HelpPageApiModel apiModel = Configuration.GetHelpPageApiModel(apiId);
if (apiModel != null)
{
return View(apiModel);
}
}
return View(ErrorViewName);
}
public ActionResult ResourceModel(string modelName)
{
if (!String.IsNullOrEmpty(modelName))
{
ModelDescriptionGenerator modelDescriptionGenerator = Configuration.GetModelDescriptionGenerator();
ModelDescription modelDescription;
if (modelDescriptionGenerator.GeneratedModels.TryGetValue(modelName, out modelDescription))
{
return View(modelDescription);
}
}
return View(ErrorViewName);
}
}
} | {
"content_hash": "5e2beb4e36d24a18706b73aaefa7028e",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 115,
"avg_line_length": 30.22222222222222,
"alnum_prop": 0.5955882352941176,
"repo_name": "imochaz/hacklondon2016",
"id": "fa5ca64d2e54a1a10c7f12a31cb9db0bbf22c1af",
"size": "1904",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "who-is-that-guy-vsproject/who-is-that-guy/Areas/HelpPage/Controllers/HelpController.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ASP",
"bytes": "218"
},
{
"name": "C#",
"bytes": "174722"
},
{
"name": "CSS",
"bytes": "5252"
},
{
"name": "HTML",
"bytes": "6969"
},
{
"name": "Java",
"bytes": "36600"
},
{
"name": "JavaScript",
"bytes": "439929"
},
{
"name": "Jupyter Notebook",
"bytes": "6127"
},
{
"name": "Pascal",
"bytes": "130881"
},
{
"name": "PowerShell",
"bytes": "211357"
},
{
"name": "Puppet",
"bytes": "3202"
},
{
"name": "Python",
"bytes": "18910"
}
],
"symlink_target": ""
} |
set -e
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
install_framework()
{
if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
local source="${BUILT_PRODUCTS_DIR}/$1"
elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then
local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")"
elif [ -r "$1" ]; then
local source="$1"
fi
local destination="${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
if [ -L "${source}" ]; then
echo "Symlinked..."
source="$(readlink "${source}")"
fi
# use filter instead of exclude so missing patterns dont' throw errors
echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\""
rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}"
local basename
basename="$(basename -s .framework "$1")"
binary="${destination}/${basename}.framework/${basename}"
if ! [ -r "$binary" ]; then
binary="${destination}/${basename}"
fi
# Strip invalid architectures so "fat" simulator / device frameworks work on device
if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then
strip_invalid_archs "$binary"
fi
# Resign the code if required by the build settings to avoid unstable apps
code_sign_if_enabled "${destination}/$(basename "$1")"
# Embed linked Swift runtime libraries. No longer necessary as of Xcode 7.
if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then
local swift_runtime_libs
swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]})
for lib in $swift_runtime_libs; do
echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\""
rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}"
code_sign_if_enabled "${destination}/${lib}"
done
fi
}
# Signs a framework with the provided identity
code_sign_if_enabled() {
if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then
# Use the current code_sign_identitiy
echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements \"$1\""
/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1"
fi
}
# Strip invalid architectures
strip_invalid_archs() {
binary="$1"
# Get architectures for current file
archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)"
stripped=""
for arch in $archs; do
if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then
# Strip non-valid architectures in-place
lipo -remove "$arch" -output "$binary" "$binary" || exit 1
stripped="$stripped $arch"
fi
done
if [[ "$stripped" ]]; then
echo "Stripped $binary of architectures:$stripped"
fi
}
if [[ "$CONFIGURATION" == "Debug" ]]; then
install_framework "Pods-Tunits_Tests/Tunits.framework"
fi
if [[ "$CONFIGURATION" == "Release" ]]; then
install_framework "Pods-Tunits_Tests/Tunits.framework"
fi
| {
"content_hash": "f87c541133023153775b0984808fecd0",
"timestamp": "",
"source": "github",
"line_count": 90,
"max_line_length": 209,
"avg_line_length": 39.22222222222222,
"alnum_prop": 0.6345609065155807,
"repo_name": "spitzgoby/Tunits",
"id": "3347d547e235ff532fcd4f24df75f7ecd5bcbd12",
"size": "3540",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Example/Pods/Target Support Files/Pods-Tunits_Tests/Pods-Tunits_Tests-frameworks.sh",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "Objective-C",
"bytes": "846"
},
{
"name": "Ruby",
"bytes": "937"
},
{
"name": "Shell",
"bytes": "16328"
},
{
"name": "Swift",
"bytes": "227186"
}
],
"symlink_target": ""
} |
package com.amazonaws.services.dynamodbv2.model.transform;
import java.math.*;
import javax.annotation.Generated;
import com.amazonaws.services.dynamodbv2.model.*;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
import com.amazonaws.transform.*;
import com.fasterxml.jackson.core.JsonToken;
import static com.fasterxml.jackson.core.JsonToken.*;
/**
* RestoreTableFromBackupResult JSON Unmarshaller
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class RestoreTableFromBackupResultJsonUnmarshaller implements Unmarshaller<RestoreTableFromBackupResult, JsonUnmarshallerContext> {
public RestoreTableFromBackupResult unmarshall(JsonUnmarshallerContext context) throws Exception {
RestoreTableFromBackupResult restoreTableFromBackupResult = new RestoreTableFromBackupResult();
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 restoreTableFromBackupResult;
}
while (true) {
if (token == null)
break;
if (token == FIELD_NAME || token == START_OBJECT) {
if (context.testExpression("TableDescription", targetDepth)) {
context.nextToken();
restoreTableFromBackupResult.setTableDescription(TableDescriptionJsonUnmarshaller.getInstance().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 restoreTableFromBackupResult;
}
private static RestoreTableFromBackupResultJsonUnmarshaller instance;
public static RestoreTableFromBackupResultJsonUnmarshaller getInstance() {
if (instance == null)
instance = new RestoreTableFromBackupResultJsonUnmarshaller();
return instance;
}
}
| {
"content_hash": "3dd75d28508df3292551af7e68846e69",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 138,
"avg_line_length": 37.57142857142857,
"alnum_prop": 0.6776510350654837,
"repo_name": "jentfoo/aws-sdk-java",
"id": "ab69754934c8368633c8ffd8593d9a91a2eb392e",
"size": "2947",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/model/transform/RestoreTableFromBackupResultJsonUnmarshaller.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "270"
},
{
"name": "FreeMarker",
"bytes": "173637"
},
{
"name": "Gherkin",
"bytes": "25063"
},
{
"name": "Java",
"bytes": "356214839"
},
{
"name": "Scilab",
"bytes": "3924"
},
{
"name": "Shell",
"bytes": "295"
}
],
"symlink_target": ""
} |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef applebycoin_ALLOCATORS_H
#define applebycoin_ALLOCATORS_H
#include <string.h>
#include <string>
#include <boost/thread/mutex.hpp>
#include <map>
#ifdef WIN32
#ifdef _WIN32_WINNT
#undef _WIN32_WINNT
#endif
#define _WIN32_WINNT 0x0501
#define WIN32_LEAN_AND_MEAN 1
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <windows.h>
// This is used to attempt to keep keying material out of swap
// Note that VirtualLock does not provide this as a guarantee on Windows,
// but, in practice, memory that has been VirtualLock'd almost never gets written to
// the pagefile except in rare circumstances where memory is extremely low.
#else
#include <sys/mman.h>
#include <limits.h> // for PAGESIZE
#include <unistd.h> // for sysconf
#endif
/**
* Thread-safe class to keep track of locked (ie, non-swappable) memory pages.
*
* Memory locks do not stack, that is, pages which have been locked several times by calls to mlock()
* will be unlocked by a single call to munlock(). This can result in keying material ending up in swap when
* those functions are used naively. This class simulates stacking memory locks by keeping a counter per page.
*
* @note By using a map from each page base address to lock count, this class is optimized for
* small objects that span up to a few pages, mostly smaller than a page. To support large allocations,
* something like an interval tree would be the preferred data structure.
*/
template <class Locker> class LockedPageManagerBase
{
public:
LockedPageManagerBase(size_t page_size):
page_size(page_size)
{
// Determine bitmask for extracting page from address
assert(!(page_size & (page_size-1))); // size must be power of two
page_mask = ~(page_size - 1);
}
// For all pages in affected range, increase lock count
void LockRange(void *p, size_t size)
{
boost::mutex::scoped_lock lock(mutex);
if(!size) return;
const size_t base_addr = reinterpret_cast<size_t>(p);
const size_t start_page = base_addr & page_mask;
const size_t end_page = (base_addr + size - 1) & page_mask;
for(size_t page = start_page; page <= end_page; page += page_size)
{
Histogram::iterator it = histogram.find(page);
if(it == histogram.end()) // Newly locked page
{
locker.Lock(reinterpret_cast<void*>(page), page_size);
histogram.insert(std::make_pair(page, 1));
}
else // Page was already locked; increase counter
{
it->second += 1;
}
}
}
// For all pages in affected range, decrease lock count
void UnlockRange(void *p, size_t size)
{
boost::mutex::scoped_lock lock(mutex);
if(!size) return;
const size_t base_addr = reinterpret_cast<size_t>(p);
const size_t start_page = base_addr & page_mask;
const size_t end_page = (base_addr + size - 1) & page_mask;
for(size_t page = start_page; page <= end_page; page += page_size)
{
Histogram::iterator it = histogram.find(page);
assert(it != histogram.end()); // Cannot unlock an area that was not locked
// Decrease counter for page, when it is zero, the page will be unlocked
it->second -= 1;
if(it->second == 0) // Nothing on the page anymore that keeps it locked
{
// Unlock page and remove the count from histogram
locker.Unlock(reinterpret_cast<void*>(page), page_size);
histogram.erase(it);
}
}
}
// Get number of locked pages for diagnostics
int GetLockedPageCount()
{
boost::mutex::scoped_lock lock(mutex);
return histogram.size();
}
private:
Locker locker;
boost::mutex mutex;
size_t page_size, page_mask;
// map of page base address to lock count
typedef std::map<size_t,int> Histogram;
Histogram histogram;
};
/** Determine system page size in bytes */
static inline size_t GetSystemPageSize()
{
size_t page_size;
#if defined(WIN32)
SYSTEM_INFO sSysInfo;
GetSystemInfo(&sSysInfo);
page_size = sSysInfo.dwPageSize;
#elif defined(PAGESIZE) // defined in limits.h
page_size = PAGESIZE;
#else // assume some POSIX OS
page_size = sysconf(_SC_PAGESIZE);
#endif
return page_size;
}
/**
* OS-dependent memory page locking/unlocking.
* Defined as policy class to make stubbing for test possible.
*/
class MemoryPageLocker
{
public:
/** Lock memory pages.
* addr and len must be a multiple of the system page size
*/
bool Lock(const void *addr, size_t len)
{
#ifdef WIN32
return VirtualLock(const_cast<void*>(addr), len);
#else
return mlock(addr, len) == 0;
#endif
}
/** Unlock memory pages.
* addr and len must be a multiple of the system page size
*/
bool Unlock(const void *addr, size_t len)
{
#ifdef WIN32
return VirtualUnlock(const_cast<void*>(addr), len);
#else
return munlock(addr, len) == 0;
#endif
}
};
/**
* Singleton class to keep track of locked (ie, non-swappable) memory pages, for use in
* std::allocator templates.
*/
class LockedPageManager: public LockedPageManagerBase<MemoryPageLocker>
{
public:
static LockedPageManager instance; // instantiated in util.cpp
private:
LockedPageManager():
LockedPageManagerBase<MemoryPageLocker>(GetSystemPageSize())
{}
};
//
// Allocator that locks its contents from being paged
// out of memory and clears its contents before deletion.
//
template<typename T>
struct secure_allocator : public std::allocator<T>
{
// MSVC8 default copy constructor is broken
typedef std::allocator<T> base;
typedef typename base::size_type size_type;
typedef typename base::difference_type difference_type;
typedef typename base::pointer pointer;
typedef typename base::const_pointer const_pointer;
typedef typename base::reference reference;
typedef typename base::const_reference const_reference;
typedef typename base::value_type value_type;
secure_allocator() throw() {}
secure_allocator(const secure_allocator& a) throw() : base(a) {}
template <typename U>
secure_allocator(const secure_allocator<U>& a) throw() : base(a) {}
~secure_allocator() throw() {}
template<typename _Other> struct rebind
{ typedef secure_allocator<_Other> other; };
T* allocate(std::size_t n, const void *hint = 0)
{
T *p;
p = std::allocator<T>::allocate(n, hint);
if (p != NULL)
LockedPageManager::instance.LockRange(p, sizeof(T) * n);
return p;
}
void deallocate(T* p, std::size_t n)
{
if (p != NULL)
{
memset(p, 0, sizeof(T) * n);
LockedPageManager::instance.UnlockRange(p, sizeof(T) * n);
}
std::allocator<T>::deallocate(p, n);
}
};
//
// Allocator that clears its contents before deletion.
//
template<typename T>
struct zero_after_free_allocator : public std::allocator<T>
{
// MSVC8 default copy constructor is broken
typedef std::allocator<T> base;
typedef typename base::size_type size_type;
typedef typename base::difference_type difference_type;
typedef typename base::pointer pointer;
typedef typename base::const_pointer const_pointer;
typedef typename base::reference reference;
typedef typename base::const_reference const_reference;
typedef typename base::value_type value_type;
zero_after_free_allocator() throw() {}
zero_after_free_allocator(const zero_after_free_allocator& a) throw() : base(a) {}
template <typename U>
zero_after_free_allocator(const zero_after_free_allocator<U>& a) throw() : base(a) {}
~zero_after_free_allocator() throw() {}
template<typename _Other> struct rebind
{ typedef zero_after_free_allocator<_Other> other; };
void deallocate(T* p, std::size_t n)
{
if (p != NULL)
memset(p, 0, sizeof(T) * n);
std::allocator<T>::deallocate(p, n);
}
};
// This is exactly like std::string, but with a custom allocator.
typedef std::basic_string<char, std::char_traits<char>, secure_allocator<char> > SecureString;
#endif
| {
"content_hash": "a69c440bbb75fa4584e003e560c44df2",
"timestamp": "",
"source": "github",
"line_count": 257,
"max_line_length": 110,
"avg_line_length": 33.249027237354085,
"alnum_prop": 0.6538326506729082,
"repo_name": "ApplebyCoin/ApplebyCoin",
"id": "5ac6a5b444dc6142fe8e825a4075d134d99b8ae5",
"size": "8545",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/allocators.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "61795"
},
{
"name": "C++",
"bytes": "1493186"
},
{
"name": "IDL",
"bytes": "11363"
},
{
"name": "Objective-C++",
"bytes": "2451"
},
{
"name": "Python",
"bytes": "63076"
},
{
"name": "Ruby",
"bytes": "5315"
},
{
"name": "Shell",
"bytes": "1414"
},
{
"name": "TypeScript",
"bytes": "3759873"
}
],
"symlink_target": ""
} |
/*
* 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.
*/
package com.facebook.presto.mongodb;
import com.facebook.presto.testing.MaterializedResult;
import com.facebook.presto.testing.MaterializedRow;
import com.facebook.presto.tests.AbstractTestIntegrationSmokeTest;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import org.bson.Document;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Arrays;
import static com.facebook.presto.mongodb.MongoQueryRunner.createMongoQueryRunner;
import static io.airlift.tpch.TpchTable.ORDERS;
import static java.nio.charset.StandardCharsets.UTF_8;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertNotNull;
@Test(singleThreaded = true)
public class TestMongoIntegrationSmokeTest
extends AbstractTestIntegrationSmokeTest
{
private MongoQueryRunner mongoQueryRunner;
public TestMongoIntegrationSmokeTest()
{
super(() -> createMongoQueryRunner(ORDERS));
}
@BeforeClass
public void setUp()
{
mongoQueryRunner = (MongoQueryRunner) getQueryRunner();
}
@AfterClass(alwaysRun = true)
public final void destroy()
{
if (mongoQueryRunner != null) {
mongoQueryRunner.shutdown();
}
}
@Test
public void createTableWithEveryType()
{
String query = "" +
"CREATE TABLE test_types_table AS " +
"SELECT" +
" 'foo' _varchar" +
", cast('bar' as varbinary) _varbinary" +
", cast(1 as bigint) _bigint" +
", 3.14E0 _double" +
", true _boolean" +
", DATE '1980-05-07' _date" +
", TIMESTAMP '1980-05-07 11:22:33.456' _timestamp" +
", ObjectId('ffffffffffffffffffffffff') _objectid";
assertUpdate(query, 1);
MaterializedResult results = getQueryRunner().execute(getSession(), "SELECT * FROM test_types_table").toTestTypes();
assertEquals(results.getRowCount(), 1);
MaterializedRow row = results.getMaterializedRows().get(0);
assertEquals(row.getField(0), "foo");
assertEquals(row.getField(1), "bar".getBytes(UTF_8));
assertEquals(row.getField(2), 1L);
assertEquals(row.getField(3), 3.14);
assertEquals(row.getField(4), true);
assertEquals(row.getField(5), LocalDate.of(1980, 5, 7));
assertEquals(row.getField(6), LocalDateTime.of(1980, 5, 7, 11, 22, 33, 456_000_000));
assertUpdate("DROP TABLE test_types_table");
assertFalse(getQueryRunner().tableExists(getSession(), "test_types_table"));
}
@Test
public void testInsertWithEveryType()
throws Exception
{
String createSql = "" +
"CREATE TABLE test_insert_types_table " +
"(" +
" vc varchar" +
", vb varbinary" +
", bi bigint" +
", d double" +
", b boolean" +
", dt date" +
", ts timestamp" +
", objid objectid" +
")";
getQueryRunner().execute(getSession(), createSql);
String insertSql = "" +
"INSERT INTO test_insert_types_table " +
"SELECT" +
" 'foo' _varchar" +
", cast('bar' as varbinary) _varbinary" +
", cast(1 as bigint) _bigint" +
", 3.14E0 _double" +
", true _boolean" +
", DATE '1980-05-07' _date" +
", TIMESTAMP '1980-05-07 11:22:33.456' _timestamp" +
", ObjectId('ffffffffffffffffffffffff') _objectid";
getQueryRunner().execute(getSession(), insertSql);
MaterializedResult results = getQueryRunner().execute(getSession(), "SELECT * FROM test_insert_types_table").toTestTypes();
assertEquals(results.getRowCount(), 1);
MaterializedRow row = results.getMaterializedRows().get(0);
assertEquals(row.getField(0), "foo");
assertEquals(row.getField(1), "bar".getBytes(UTF_8));
assertEquals(row.getField(2), 1L);
assertEquals(row.getField(3), 3.14);
assertEquals(row.getField(4), true);
assertEquals(row.getField(5), LocalDate.of(1980, 5, 7));
assertEquals(row.getField(6), LocalDateTime.of(1980, 5, 7, 11, 22, 33, 456_000_000));
assertUpdate("DROP TABLE test_insert_types_table");
assertFalse(getQueryRunner().tableExists(getSession(), "test_insert_types_table"));
}
@Test
public void testArrays()
{
assertUpdate("CREATE TABLE tmp_array1 AS SELECT ARRAY[1, 2, NULL] AS col", 1);
assertQuery("SELECT col[2] FROM tmp_array1", "SELECT 2");
assertQuery("SELECT col[3] FROM tmp_array1", "SELECT NULL");
assertUpdate("CREATE TABLE tmp_array2 AS SELECT ARRAY[1.0E0, 2.5E0, 3.5E0] AS col", 1);
assertQuery("SELECT col[2] FROM tmp_array2", "SELECT 2.5");
assertUpdate("CREATE TABLE tmp_array3 AS SELECT ARRAY['puppies', 'kittens', NULL] AS col", 1);
assertQuery("SELECT col[2] FROM tmp_array3", "SELECT 'kittens'");
assertQuery("SELECT col[3] FROM tmp_array3", "SELECT NULL");
assertUpdate("CREATE TABLE tmp_array4 AS SELECT ARRAY[TRUE, NULL] AS col", 1);
assertQuery("SELECT col[1] FROM tmp_array4", "SELECT TRUE");
assertQuery("SELECT col[2] FROM tmp_array4", "SELECT NULL");
assertUpdate("CREATE TABLE tmp_array5 AS SELECT ARRAY[ARRAY[1, 2], NULL, ARRAY[3, 4]] AS col", 1);
assertQuery("SELECT col[1][2] FROM tmp_array5", "SELECT 2");
assertUpdate("CREATE TABLE tmp_array6 AS SELECT ARRAY[ARRAY['\"hi\"'], NULL, ARRAY['puppies']] AS col", 1);
assertQuery("SELECT col[1][1] FROM tmp_array6", "SELECT '\"hi\"'");
assertQuery("SELECT col[3][1] FROM tmp_array6", "SELECT 'puppies'");
}
@Test
public void testTemporalArrays()
{
assertUpdate("CREATE TABLE tmp_array7 AS SELECT ARRAY[DATE '2014-09-30'] AS col", 1);
assertOneNotNullResult("SELECT col[1] FROM tmp_array7");
assertUpdate("CREATE TABLE tmp_array8 AS SELECT ARRAY[TIMESTAMP '2001-08-22 03:04:05.321'] AS col", 1);
assertOneNotNullResult("SELECT col[1] FROM tmp_array8");
}
@Test
public void testMaps()
{
assertUpdate("CREATE TABLE tmp_map1 AS SELECT MAP(ARRAY[0,1], ARRAY[2,NULL]) AS col", 1);
assertQuery("SELECT col[0] FROM tmp_map1", "SELECT 2");
assertQuery("SELECT col[1] FROM tmp_map1", "SELECT NULL");
assertUpdate("CREATE TABLE tmp_map2 AS SELECT MAP(ARRAY[1.0E0], ARRAY[2.5E0]) AS col", 1);
assertQuery("SELECT col[1.0] FROM tmp_map2", "SELECT 2.5");
assertUpdate("CREATE TABLE tmp_map3 AS SELECT MAP(ARRAY['puppies'], ARRAY['kittens']) AS col", 1);
assertQuery("SELECT col['puppies'] FROM tmp_map3", "SELECT 'kittens'");
assertUpdate("CREATE TABLE tmp_map4 AS SELECT MAP(ARRAY[TRUE], ARRAY[FALSE]) AS col", "SELECT 1");
assertQuery("SELECT col[TRUE] FROM tmp_map4", "SELECT FALSE");
assertUpdate("CREATE TABLE tmp_map5 AS SELECT MAP(ARRAY[1.0E0], ARRAY[ARRAY[1, 2]]) AS col", 1);
assertQuery("SELECT col[1.0][2] FROM tmp_map5", "SELECT 2");
assertUpdate("CREATE TABLE tmp_map6 AS SELECT MAP(ARRAY[DATE '2014-09-30'], ARRAY[DATE '2014-09-29']) AS col", 1);
assertOneNotNullResult("SELECT col[DATE '2014-09-30'] FROM tmp_map6");
assertUpdate("CREATE TABLE tmp_map7 AS SELECT MAP(ARRAY[TIMESTAMP '2001-08-22 03:04:05.321'], ARRAY[TIMESTAMP '2001-08-22 03:04:05.321']) AS col", 1);
assertOneNotNullResult("SELECT col[TIMESTAMP '2001-08-22 03:04:05.321'] FROM tmp_map7");
assertUpdate("CREATE TABLE test.tmp_map8 (col MAP<VARCHAR, VARCHAR>)");
mongoQueryRunner.getMongoClient().getDatabase("test").getCollection("tmp_map8").insertOne(new Document(
ImmutableMap.of("col", new Document(ImmutableMap.of("key1", "value1", "key2", "value2")))));
assertQuery("SELECT col['key1'] FROM test.tmp_map8", "SELECT 'value1'");
assertUpdate("CREATE TABLE test.tmp_map9 (col VARCHAR)");
mongoQueryRunner.getMongoClient().getDatabase("test").getCollection("tmp_map9").insertOne(new Document(
ImmutableMap.of("col", new Document(ImmutableMap.of("key1", "value1", "key2", "value2")))));
assertQuery("SELECT col FROM test.tmp_map9", "SELECT '{ \"key1\" : \"value1\", \"key2\" : \"value2\" }'");
assertUpdate("CREATE TABLE test.tmp_map10 (col VARCHAR)");
mongoQueryRunner.getMongoClient().getDatabase("test").getCollection("tmp_map10").insertOne(new Document(
ImmutableMap.of("col", ImmutableList.of(new Document(ImmutableMap.of("key1", "value1", "key2", "value2")),
new Document(ImmutableMap.of("key3", "value3", "key4", "value4"))))));
assertQuery("SELECT col FROM test.tmp_map10", "SELECT '[{ \"key1\" : \"value1\", \"key2\" : \"value2\" }, { \"key3\" : \"value3\", \"key4\" : \"value4\" }]'");
assertUpdate("CREATE TABLE test.tmp_map11 (col VARCHAR)");
mongoQueryRunner.getMongoClient().getDatabase("test").getCollection("tmp_map11").insertOne(new Document(
ImmutableMap.of("col", 10)));
assertQuery("SELECT col FROM test.tmp_map11", "SELECT '10'");
assertUpdate("CREATE TABLE test.tmp_map12 (col VARCHAR)");
mongoQueryRunner.getMongoClient().getDatabase("test").getCollection("tmp_map12").insertOne(new Document(
ImmutableMap.of("col", Arrays.asList(10, null, 11))));
assertQuery("SELECT col FROM test.tmp_map12", "SELECT '[10, null, 11]'");
}
@Test
public void testCollectionNameContainsDots()
{
assertUpdate("CREATE TABLE \"tmp.dot1\" AS SELECT 'foo' _varchar", 1);
assertQuery("SELECT _varchar FROM \"tmp.dot1\"", "SELECT 'foo'");
assertUpdate("DROP TABLE \"tmp.dot1\"");
}
@Test
public void testObjectIds()
{
assertUpdate("CREATE TABLE tmp_objectid AS SELECT ObjectId('ffffffffffffffffffffffff') AS id", 1);
assertOneNotNullResult("SELECT id FROM tmp_objectid WHERE id = ObjectId('ffffffffffffffffffffffff')");
}
private void assertOneNotNullResult(String query)
{
MaterializedResult results = getQueryRunner().execute(getSession(), query).toTestTypes();
assertEquals(results.getRowCount(), 1);
assertEquals(results.getMaterializedRows().get(0).getFieldCount(), 1);
assertNotNull(results.getMaterializedRows().get(0).getField(0));
}
}
| {
"content_hash": "c8bba6c7c7b4cdb43309ba4d8f382c4c",
"timestamp": "",
"source": "github",
"line_count": 247,
"max_line_length": 167,
"avg_line_length": 46.19838056680162,
"alnum_prop": 0.6325475418455876,
"repo_name": "twitter-forks/presto",
"id": "f00c9ea79ef24e2aee0e45b47c9ba844a1405782",
"size": "11411",
"binary": false,
"copies": "4",
"ref": "refs/heads/twitter-master",
"path": "presto-mongodb/src/test/java/com/facebook/presto/mongodb/TestMongoIntegrationSmokeTest.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ANTLR",
"bytes": "26944"
},
{
"name": "CSS",
"bytes": "12676"
},
{
"name": "HTML",
"bytes": "50340"
},
{
"name": "Java",
"bytes": "30663750"
},
{
"name": "JavaScript",
"bytes": "203196"
},
{
"name": "Makefile",
"bytes": "6822"
},
{
"name": "PLSQL",
"bytes": "3891"
},
{
"name": "Python",
"bytes": "7552"
},
{
"name": "SQLPL",
"bytes": "926"
},
{
"name": "Shell",
"bytes": "28316"
},
{
"name": "TSQL",
"bytes": "161763"
},
{
"name": "Thrift",
"bytes": "16916"
}
],
"symlink_target": ""
} |
'use strict';
const _ = require('lodash');
const addEmptyLineBefore = require('../../utils/addEmptyLineBefore');
const hasEmptyLine = require('../../utils/hasEmptyLine');
const isAfterComment = require('../../utils/isAfterComment');
const isFirstNested = require('../../utils/isFirstNested');
const isFirstNodeOfRoot = require('../../utils/isFirstNodeOfRoot');
const isSharedLineComment = require('../../utils/isSharedLineComment');
const optionsMatches = require('../../utils/optionsMatches');
const removeEmptyLinesBefore = require('../../utils/removeEmptyLinesBefore');
const report = require('../../utils/report');
const ruleMessages = require('../../utils/ruleMessages');
const validateOptions = require('../../utils/validateOptions');
const ruleName = 'comment-empty-line-before';
const messages = ruleMessages(ruleName, {
expected: 'Expected empty line before comment',
rejected: 'Unexpected empty line before comment',
});
const stylelintCommandPrefix = 'stylelint-';
function rule(expectation, options, context) {
return (root, result) => {
const validOptions = validateOptions(
result,
ruleName,
{
actual: expectation,
possible: ['always', 'never'],
},
{
actual: options,
possible: {
except: ['first-nested'],
ignore: ['stylelint-commands', 'after-comment'],
ignoreComments: [_.isString, _.isRegExp],
},
optional: true,
},
);
if (!validOptions) {
return;
}
root.walkComments((comment) => {
// Ignore the first node
if (isFirstNodeOfRoot(comment)) {
return;
}
// Optionally ignore stylelint commands
if (
comment.text.startsWith(stylelintCommandPrefix) &&
optionsMatches(options, 'ignore', 'stylelint-commands')
) {
return;
}
// Optionally ignore newlines between comments
if (optionsMatches(options, 'ignore', 'after-comment') && isAfterComment(comment)) {
return;
}
// Ignore comments matching the ignoreComments option.
if (optionsMatches(options, 'ignoreComments', comment.text)) {
return;
}
// Ignore shared-line comments
if (isSharedLineComment(comment)) {
return;
}
// Ignore SCSS comments
if (comment.raws.inline || comment.inline) {
return;
}
const expectEmptyLineBefore = (() => {
if (optionsMatches(options, 'except', 'first-nested') && isFirstNested(comment)) {
return false;
}
return expectation === 'always';
})();
const before = comment.raws.before || '';
const hasEmptyLineBefore = hasEmptyLine(before);
// Return if the expectation is met
if (expectEmptyLineBefore === hasEmptyLineBefore) {
return;
}
// Fix
if (context.fix) {
if (expectEmptyLineBefore) {
addEmptyLineBefore(comment, context.newline);
} else {
removeEmptyLinesBefore(comment, context.newline);
}
return;
}
const message = expectEmptyLineBefore ? messages.expected : messages.rejected;
report({
message,
node: comment,
result,
ruleName,
});
});
};
}
rule.ruleName = ruleName;
rule.messages = messages;
module.exports = rule;
| {
"content_hash": "4b8442b3da073f0e45ce223c0e05fcb3",
"timestamp": "",
"source": "github",
"line_count": 124,
"max_line_length": 87,
"avg_line_length": 25.04032258064516,
"alnum_prop": 0.6647342995169082,
"repo_name": "kyleterry/sufr",
"id": "c587155b59539f3b7ef0b34cadbd7f7bba05e72b",
"size": "3121",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "pkg/ui/node_modules/stylelint/lib/rules/comment-empty-line-before/index.js",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Awk",
"bytes": "821"
},
{
"name": "Dockerfile",
"bytes": "574"
},
{
"name": "Go",
"bytes": "139787"
},
{
"name": "HTML",
"bytes": "32483"
},
{
"name": "JavaScript",
"bytes": "1299"
},
{
"name": "Makefile",
"bytes": "684"
},
{
"name": "SCSS",
"bytes": "52"
},
{
"name": "Shell",
"bytes": "547"
}
],
"symlink_target": ""
} |
"""Unit tests for Superset"""
import json
import pytest
import prison
from sqlalchemy.sql import func
import tests.integration_tests.test_app
from superset import db
from superset.models.annotations import Annotation, AnnotationLayer
from tests.integration_tests.base_tests import SupersetTestCase
from tests.integration_tests.annotation_layers.fixtures import (
create_annotation_layers,
get_end_dttm,
get_start_dttm,
)
from tests.unit_tests.annotation_layers.fixtures import (
START_STR,
END_STR,
)
ANNOTATION_LAYERS_COUNT = 10
ANNOTATIONS_COUNT = 5
class TestAnnotationLayerApi(SupersetTestCase):
@staticmethod
def get_layer_with_annotation() -> AnnotationLayer:
return (
db.session.query(AnnotationLayer)
.filter(AnnotationLayer.name == "layer_with_annotations")
.one_or_none()
)
@pytest.mark.usefixtures("create_annotation_layers")
def test_get_annotation_layer(self):
"""
Annotation Api: Test get annotation layer
"""
annotation_layer = (
db.session.query(AnnotationLayer)
.filter(AnnotationLayer.name == "name1")
.first()
)
self.login(username="admin")
uri = f"api/v1/annotation_layer/{annotation_layer.id}"
rv = self.get_assert_metric(uri, "get")
assert rv.status_code == 200
expected_result = {
"id": annotation_layer.id,
"name": "name1",
"descr": "descr1",
}
data = json.loads(rv.data.decode("utf-8"))
assert data["result"] == expected_result
def test_info_annotation(self):
"""
Annotation API: Test info
"""
self.login(username="admin")
uri = "api/v1/annotation_layer/_info"
rv = self.get_assert_metric(uri, "info")
assert rv.status_code == 200
def test_info_security_query(self):
"""
Annotation API: Test info security
"""
self.login(username="admin")
params = {"keys": ["permissions"]}
uri = f"api/v1/annotation_layer/_info?q={prison.dumps(params)}"
rv = self.get_assert_metric(uri, "info")
data = json.loads(rv.data.decode("utf-8"))
assert rv.status_code == 200
assert "can_read" in data["permissions"]
assert "can_write" in data["permissions"]
assert len(data["permissions"]) == 2
@pytest.mark.usefixtures("create_annotation_layers")
def test_get_annotation_layer_not_found(self):
"""
Annotation Api: Test get annotation layer not found
"""
max_id = db.session.query(func.max(AnnotationLayer.id)).scalar()
self.login(username="admin")
uri = f"api/v1/annotation_layer/{max_id + 1}"
rv = self.get_assert_metric(uri, "get")
assert rv.status_code == 404
@pytest.mark.usefixtures("create_annotation_layers")
def test_get_list_annotation_layer(self):
"""
Annotation Api: Test get list annotation layers
"""
self.login(username="admin")
uri = "api/v1/annotation_layer/"
rv = self.get_assert_metric(uri, "get_list")
expected_fields = [
"name",
"descr",
"created_by",
"created_on",
"changed_by",
"changed_on_delta_humanized",
"changed_on",
]
assert rv.status_code == 200
data = json.loads(rv.data.decode("utf-8"))
assert data["count"] == ANNOTATION_LAYERS_COUNT
for expected_field in expected_fields:
assert expected_field in data["result"][0]
@pytest.mark.usefixtures("create_annotation_layers")
def test_get_list_annotation_layer_sorting(self):
"""
Annotation Api: Test sorting on get list annotation layers
"""
self.login(username="admin")
uri = "api/v1/annotation_layer/"
order_columns = [
"name",
"descr",
"created_by.first_name",
"changed_by.first_name",
"changed_on",
"changed_on_delta_humanized",
"created_on",
]
for order_column in order_columns:
arguments = {"order_column": order_column, "order_direction": "asc"}
uri = f"api/v1/annotation_layer/?q={prison.dumps(arguments)}"
rv = self.get_assert_metric(uri, "get_list")
assert rv.status_code == 200
@pytest.mark.usefixtures("create_annotation_layers")
def test_get_list_annotation_layer_filter(self):
"""
Annotation Api: Test filters on get list annotation layers
"""
self.login(username="admin")
arguments = {
"columns": ["name", "descr"],
"filters": [
{"col": "name", "opr": "annotation_layer_all_text", "value": "2"}
],
}
uri = f"api/v1/annotation_layer/?q={prison.dumps(arguments)}"
rv = self.get_assert_metric(uri, "get_list")
expected_result = {
"name": "name2",
"descr": "descr2",
}
assert rv.status_code == 200
data = json.loads(rv.data.decode("utf-8"))
assert data["count"] == 1
assert data["result"][0] == expected_result
arguments = {
"columns": ["name", "descr"],
"filters": [
{"col": "name", "opr": "annotation_layer_all_text", "value": "descr3"}
],
}
uri = f"api/v1/annotation_layer/?q={prison.dumps(arguments)}"
rv = self.get_assert_metric(uri, "get_list")
expected_result = {
"name": "name3",
"descr": "descr3",
}
assert rv.status_code == 200
data = json.loads(rv.data.decode("utf-8"))
assert data["count"] == 1
assert data["result"][0] == expected_result
def test_create_annotation_layer(self):
"""
Annotation Api: Test create annotation layer
"""
self.login(username="admin")
annotation_layer_data = {
"name": "new3",
"descr": "description",
}
uri = "api/v1/annotation_layer/"
rv = self.client.post(uri, json=annotation_layer_data)
assert rv.status_code == 201
data = json.loads(rv.data.decode("utf-8"))
created_model = db.session.query(AnnotationLayer).get(data.get("id"))
assert created_model is not None
assert created_model.name == annotation_layer_data["name"]
assert created_model.descr == annotation_layer_data["descr"]
# Rollback changes
db.session.delete(created_model)
db.session.commit()
def test_create_incorrect_annotation_layer(self):
"""
Annotation Api: Test create incorrect annotation layer
"""
self.login(username="admin")
annotation_layer_data = {}
uri = "api/v1/annotation_layer/"
rv = self.client.post(uri, json=annotation_layer_data)
assert rv.status_code == 400
data = json.loads(rv.data.decode("utf-8"))
assert data == {"message": {"name": ["Missing data for required field."]}}
@pytest.mark.usefixtures("create_annotation_layers")
def test_create_annotation_layer_uniqueness(self):
"""
Annotation Api: Test create annotation layer uniqueness
"""
self.login(username="admin")
annotation_layer_data = {"name": "name3", "descr": "description"}
uri = "api/v1/annotation_layer/"
rv = self.client.post(uri, json=annotation_layer_data)
assert rv.status_code == 422
data = json.loads(rv.data.decode("utf-8"))
assert data == {"message": {"name": ["Name must be unique"]}}
@pytest.mark.usefixtures("create_annotation_layers")
def test_update_annotation_layer(self):
"""
Annotation Api: Test update annotation layer
"""
annotation_layer = (
db.session.query(AnnotationLayer)
.filter(AnnotationLayer.name == "name2")
.one_or_none()
)
self.login(username="admin")
annotation_layer_data = {"name": "changed_name"}
uri = f"api/v1/annotation_layer/{annotation_layer.id}"
rv = self.client.put(uri, json=annotation_layer_data)
assert rv.status_code == 200
updated_model = db.session.query(AnnotationLayer).get(annotation_layer.id)
assert updated_model is not None
assert updated_model.name == annotation_layer_data["name"]
# make sure the descr hasn't updated
assert updated_model.descr == annotation_layer.descr
@pytest.mark.usefixtures("create_annotation_layers")
def test_update_annotation_layer_uniqueness(self):
"""
Annotation Api: Test update annotation layer uniqueness
"""
annotation_layer = (
db.session.query(AnnotationLayer)
.filter(AnnotationLayer.name == "name2")
.one_or_none()
)
self.login(username="admin")
annotation_layer_data = {"name": "name3", "descr": "changed_description"}
uri = f"api/v1/annotation_layer/{annotation_layer.id}"
rv = self.client.put(uri, json=annotation_layer_data)
data = json.loads(rv.data.decode("utf-8"))
assert rv.status_code == 422
assert data == {"message": {"name": ["Name must be unique"]}}
@pytest.mark.usefixtures("create_annotation_layers")
def test_update_annotation_layer_not_found(self):
"""
Annotation Api: Test update annotation layer not found
"""
max_id = db.session.query(func.max(AnnotationLayer.id)).scalar()
self.login(username="admin")
annotation_layer_data = {"name": "changed_name", "descr": "changed_description"}
uri = f"api/v1/annotation_layer/{max_id + 1}"
rv = self.client.put(uri, json=annotation_layer_data)
assert rv.status_code == 404
@pytest.mark.usefixtures("create_annotation_layers")
def test_delete_annotation_layer(self):
"""
Annotation Api: Test update annotation layer
"""
annotation_layer = (
db.session.query(AnnotationLayer)
.filter(AnnotationLayer.name == "name1")
.one_or_none()
)
self.login(username="admin")
uri = f"api/v1/annotation_layer/{annotation_layer.id}"
rv = self.client.delete(uri)
assert rv.status_code == 200
updated_model = db.session.query(AnnotationLayer).get(annotation_layer.id)
assert updated_model is None
@pytest.mark.usefixtures("create_annotation_layers")
def test_delete_annotation_layer_not_found(self):
"""
Annotation Api: Test delete annotation layer not found
"""
max_id = db.session.query(func.max(AnnotationLayer.id)).scalar()
self.login(username="admin")
uri = f"api/v1/annotation_layer/{max_id + 1}"
rv = self.client.delete(uri)
assert rv.status_code == 404
@pytest.mark.usefixtures("create_annotation_layers")
def test_delete_annotation_layer_integrity(self):
"""
Annotation Api: Test delete annotation layer integrity error
"""
query_child_layer = db.session.query(AnnotationLayer).filter(
AnnotationLayer.name == "layer_with_annotations"
)
child_layer = query_child_layer.one_or_none()
self.login(username="admin")
uri = f"api/v1/annotation_layer/{child_layer.id}"
rv = self.client.delete(uri)
assert rv.status_code == 422
@pytest.mark.usefixtures("create_annotation_layers")
def test_bulk_delete_annotation_layer(self):
"""
Annotation Api: Test bulk delete annotation layers
"""
query_no_child_layers = db.session.query(AnnotationLayer).filter(
AnnotationLayer.name.like("name%")
)
no_child_layers = query_no_child_layers.all()
no_child_layers_ids = [
annotation_layer.id for annotation_layer in no_child_layers
]
self.login(username="admin")
uri = f"api/v1/annotation_layer/?q={prison.dumps(no_child_layers_ids)}"
rv = self.client.delete(uri)
assert rv.status_code == 200
deleted_annotation_layers = query_no_child_layers.all()
assert deleted_annotation_layers == []
response = json.loads(rv.data.decode("utf-8"))
expected_response = {
"message": f"Deleted {len(no_child_layers_ids)} annotation layers"
}
assert response == expected_response
@pytest.mark.usefixtures("create_annotation_layers")
def test_bulk_delete_annotation_layer_not_found(self):
"""
Annotation Api: Test bulk delete annotation layers not found
"""
all_annotation_layers = (
db.session.query(AnnotationLayer)
.filter(AnnotationLayer.name.like("name%"))
.all()
)
all_annotation_layers_ids = [
annotation_layer.id for annotation_layer in all_annotation_layers
]
max_id = db.session.query(func.max(AnnotationLayer.id)).scalar()
all_annotation_layers_ids.append(max_id + 1)
self.login(username="admin")
uri = f"api/v1/annotation_layer/?q={prison.dumps(all_annotation_layers_ids)}"
rv = self.client.delete(uri)
assert rv.status_code == 404
@pytest.mark.usefixtures("create_annotation_layers")
def test_get_annotation(self):
"""
Annotation API: Test get annotation
"""
annotation_id = 1
annotation = (
db.session.query(Annotation)
.filter(Annotation.short_descr == f"short_descr{annotation_id}")
.one_or_none()
)
self.login(username="admin")
uri = (
f"api/v1/annotation_layer/{annotation.layer_id}/annotation/{annotation.id}"
)
rv = self.get_assert_metric(uri, "get")
assert rv.status_code == 200
expected_result = {
"id": annotation.id,
"end_dttm": get_end_dttm(annotation_id).isoformat(),
"json_metadata": "",
"layer": {"id": annotation.layer_id, "name": "layer_with_annotations"},
"long_descr": annotation.long_descr,
"short_descr": annotation.short_descr,
"start_dttm": get_start_dttm(annotation_id).isoformat(),
}
data = json.loads(rv.data.decode("utf-8"))
assert data["result"] == expected_result
@pytest.mark.usefixtures("create_annotation_layers")
def test_get_annotation_not_found(self):
"""
Annotation API: Test get annotation not found
"""
layer = self.get_layer_with_annotation()
max_id = db.session.query(func.max(Annotation.id)).scalar()
self.login(username="admin")
uri = f"api/v1/annotation_layer/{layer.id}/annotation/{max_id + 1}"
rv = self.get_assert_metric(uri, "get")
assert rv.status_code == 404
@pytest.mark.usefixtures("create_annotation_layers")
def test_get_list_annotation(self):
"""
Annotation Api: Test get list of annotations
"""
layer = self.get_layer_with_annotation()
self.login(username="admin")
uri = f"api/v1/annotation_layer/{layer.id}/annotation/"
rv = self.get_assert_metric(uri, "get_list")
expected_fields = [
"short_descr",
"created_by",
"changed_by",
"start_dttm",
"end_dttm",
]
assert rv.status_code == 200
data = json.loads(rv.data.decode("utf-8"))
assert data["count"] == ANNOTATIONS_COUNT
for expected_field in expected_fields:
assert expected_field in data["result"][0]
@pytest.mark.usefixtures("create_annotation_layers")
def test_get_list_annotation_sorting(self):
"""
Annotation Api: Test sorting on get list of annotations
"""
layer = self.get_layer_with_annotation()
self.login(username="admin")
order_columns = [
"short_descr",
"created_by.first_name",
"changed_by.first_name",
"changed_on_delta_humanized",
"start_dttm",
"end_dttm",
]
for order_column in order_columns:
arguments = {"order_column": order_column, "order_direction": "asc"}
uri = f"api/v1/annotation_layer/{layer.id}/annotation/?q={prison.dumps(arguments)}"
rv = self.get_assert_metric(uri, "get_list")
assert rv.status_code == 200
@pytest.mark.usefixtures("create_annotation_layers")
def test_get_list_annotation_filter(self):
"""
Annotation Api: Test filters on get list annotation layers
"""
layer = self.get_layer_with_annotation()
self.login(username="admin")
arguments = {
"filters": [
{"col": "short_descr", "opr": "annotation_all_text", "value": "2"}
]
}
uri = f"api/v1/annotation_layer/{layer.id}/annotation/?q={prison.dumps(arguments)}"
rv = self.get_assert_metric(uri, "get_list")
assert rv.status_code == 200
data = json.loads(rv.data.decode("utf-8"))
assert data["count"] == 1
arguments = {
"filters": [
{"col": "short_descr", "opr": "annotation_all_text", "value": "descr3"}
]
}
uri = f"api/v1/annotation_layer/{layer.id}/annotation/?q={prison.dumps(arguments)}"
rv = self.get_assert_metric(uri, "get_list")
assert rv.status_code == 200
data = json.loads(rv.data.decode("utf-8"))
assert data["count"] == 1
@pytest.mark.usefixtures("create_annotation_layers")
def test_create_annotation(self):
"""
Annotation Api: Test create annotation
"""
layer = self.get_layer_with_annotation()
self.login(username="admin")
annotation_data = {
"short_descr": "new",
"long_descr": "description",
"start_dttm": START_STR,
"end_dttm": END_STR,
}
uri = f"api/v1/annotation_layer/{layer.id}/annotation/"
rv = self.client.post(uri, json=annotation_data)
assert rv.status_code == 201
data = json.loads(rv.data.decode("utf-8"))
created_model: Annotation = db.session.query(Annotation).get(data.get("id"))
assert created_model is not None
assert created_model.short_descr == annotation_data["short_descr"]
assert created_model.long_descr == annotation_data["long_descr"]
# Rollback changes
db.session.delete(created_model)
db.session.commit()
@pytest.mark.usefixtures("create_annotation_layers")
def test_create_incorrect_annotation(self):
"""
Annotation Api: Test create incorrect annotation
"""
layer = self.get_layer_with_annotation()
self.login(username="admin")
annotation_data = {
"long_descr": "description",
}
uri = f"api/v1/annotation_layer/{layer.id}/annotation/"
rv = self.client.post(uri, json=annotation_data)
data = json.loads(rv.data.decode("utf-8"))
assert rv.status_code == 400
assert data == {
"message": {
"end_dttm": ["Missing data for required field."],
"short_descr": ["Missing data for required field."],
"start_dttm": ["Missing data for required field."],
}
}
@pytest.mark.usefixtures("create_annotation_layers")
def test_create_annotation_uniqueness(self):
"""
Annotation Api: Test create annotation uniqueness
"""
layer = self.get_layer_with_annotation()
self.login(username="admin")
annotation_data = {
"short_descr": "short_descr2",
"long_descr": "description",
"start_dttm": START_STR,
"end_dttm": END_STR,
}
uri = f"api/v1/annotation_layer/{layer.id}/annotation/"
rv = self.client.post(uri, json=annotation_data)
assert rv.status_code == 422
data = json.loads(rv.data.decode("utf-8"))
assert data == {
"message": {
"short_descr": ["Short description must be unique for this layer"]
}
}
@pytest.mark.usefixtures("create_annotation_layers")
def test_update_annotation(self):
"""
Annotation Api: Test update annotation
"""
layer = self.get_layer_with_annotation()
annotation = (
db.session.query(Annotation)
.filter(Annotation.short_descr == "short_descr2")
.one_or_none()
)
self.login(username="admin")
annotation_data = {
"short_descr": "changed_name",
}
uri = f"api/v1/annotation_layer/{layer.id}/annotation/{annotation.id}"
rv = self.client.put(uri, json=annotation_data)
assert rv.status_code == 200
updated_model: Annotation = db.session.query(Annotation).get(annotation.id)
assert updated_model is not None
assert updated_model.short_descr == annotation_data["short_descr"]
# make sure long_descr hasn't updated
assert updated_model.long_descr == annotation.long_descr
@pytest.mark.usefixtures("create_annotation_layers")
def test_update_annotation_null_datetime(self):
"""
Annotation Api: Test update annotation null datetime
"""
layer = self.get_layer_with_annotation()
annotation = (
db.session.query(Annotation)
.filter(Annotation.short_descr == "short_descr2")
.one_or_none()
)
self.login(username="admin")
annotation_data = {"start_dttm": None, "end_dttm": None}
uri = f"api/v1/annotation_layer/{layer.id}/annotation/{annotation.id}"
rv = self.client.put(uri, json=annotation_data)
assert rv.status_code == 400
data = json.loads(rv.data.decode("utf-8"))
assert data == {
"message": {
"end_dttm": ["Field may not be null."],
"start_dttm": ["Field may not be null."],
}
}
@pytest.mark.usefixtures("create_annotation_layers")
def test_update_annotation_uniqueness(self):
"""
Annotation Api: Test update annotation uniqueness
"""
layer = self.get_layer_with_annotation()
annotation = (
db.session.query(Annotation)
.filter(Annotation.short_descr == "short_descr2")
.one_or_none()
)
self.login(username="admin")
annotation_layer_data = {
"short_descr": "short_descr3",
"long_descr": "changed_description",
}
uri = f"api/v1/annotation_layer/{layer.id}/annotation/{annotation.id}"
rv = self.client.put(uri, json=annotation_layer_data)
assert rv.status_code == 422
data = json.loads(rv.data.decode("utf-8"))
assert data == {
"message": {
"short_descr": ["Short description must be unique for this layer"]
}
}
@pytest.mark.usefixtures("create_annotation_layers")
def test_update_annotation_not_found(self):
"""
Annotation Api: Test update annotation not found
"""
layer = self.get_layer_with_annotation()
max_id = db.session.query(func.max(Annotation.id)).scalar()
self.login(username="admin")
annotation_layer_data = {
"short_descr": "changed_name",
}
uri = f"api/v1/annotation_layer/{layer.id}/annotation/{max_id + 1}"
rv = self.client.put(uri, json=annotation_layer_data)
assert rv.status_code == 404
@pytest.mark.usefixtures("create_annotation_layers")
def test_delete_annotation(self):
"""
Annotation Api: Test update annotation
"""
layer = self.get_layer_with_annotation()
annotation = (
db.session.query(Annotation)
.filter(Annotation.short_descr == "short_descr1")
.one_or_none()
)
self.login(username="admin")
uri = f"api/v1/annotation_layer/{layer.id}/annotation/{annotation.id}"
rv = self.client.delete(uri)
assert rv.status_code == 200
updated_model = db.session.query(Annotation).get(annotation.id)
assert updated_model is None
@pytest.mark.usefixtures("create_annotation_layers")
def test_delete_annotation_not_found(self):
"""
Annotation Api: Test delete annotation not found
"""
layer = self.get_layer_with_annotation()
max_id = db.session.query(func.max(Annotation.id)).scalar()
self.login(username="admin")
uri = f"api/v1/annotation_layer/{layer.id}/annotation{max_id + 1}"
rv = self.client.delete(uri)
assert rv.status_code == 404
@pytest.mark.usefixtures("create_annotation_layers")
def test_bulk_delete_annotation(self):
"""
Annotation Api: Test bulk delete annotation
"""
layer = self.get_layer_with_annotation()
query_annotations = db.session.query(Annotation).filter(
Annotation.layer == layer
)
annotations = query_annotations.all()
annotations_ids = [annotation.id for annotation in annotations]
self.login(username="admin")
uri = f"api/v1/annotation_layer/{layer.id}/annotation/?q={prison.dumps(annotations_ids)}"
rv = self.client.delete(uri)
assert rv.status_code == 200
deleted_annotations = query_annotations.all()
assert deleted_annotations == []
response = json.loads(rv.data.decode("utf-8"))
expected_response = {"message": f"Deleted {len(annotations_ids)} annotations"}
assert response == expected_response
@pytest.mark.usefixtures("create_annotation_layers")
def test_bulk_delete_annotation_not_found(self):
"""
Annotation Api: Test bulk delete annotation not found
"""
layer = self.get_layer_with_annotation()
query_annotations = db.session.query(Annotation).filter(
Annotation.layer == layer
)
annotations = query_annotations.all()
annotations_ids = [annotation.id for annotation in annotations]
max_id = db.session.query(func.max(Annotation.id)).scalar()
annotations_ids.append(max_id + 1)
self.login(username="admin")
uri = f"api/v1/annotation_layer/{layer.id}/annotation/?q={prison.dumps(annotations_ids)}"
rv = self.client.delete(uri)
assert rv.status_code == 404
| {
"content_hash": "9deb0bf589fdcf603211d2b3338f09eb",
"timestamp": "",
"source": "github",
"line_count": 732,
"max_line_length": 97,
"avg_line_length": 36.78825136612022,
"alnum_prop": 0.5853912139329348,
"repo_name": "zhouyao1994/incubator-superset",
"id": "61f6b2ff678295c85dc0326a2306ef29bc4bb5c3",
"size": "27732",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "tests/integration_tests/annotation_layers/api_tests.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "4776"
},
{
"name": "Dockerfile",
"bytes": "6940"
},
{
"name": "HTML",
"bytes": "1243911"
},
{
"name": "JavaScript",
"bytes": "2445349"
},
{
"name": "Jinja",
"bytes": "5542"
},
{
"name": "Jupyter Notebook",
"bytes": "1925627"
},
{
"name": "Less",
"bytes": "106438"
},
{
"name": "Makefile",
"bytes": "3946"
},
{
"name": "Mako",
"bytes": "1197"
},
{
"name": "Pug",
"bytes": "2969"
},
{
"name": "Python",
"bytes": "6296253"
},
{
"name": "Shell",
"bytes": "56211"
},
{
"name": "Smarty",
"bytes": "4298"
},
{
"name": "TypeScript",
"bytes": "6909337"
}
],
"symlink_target": ""
} |
from Signal import Signal
import numpy as np
class LMSAdaptiveFilter:
"""
The LMS Adaptive Filter.
"""
def __init__(self, order, damping=0.5):
self.order = order
self.damping = damping
self.X = Signal(order)
self.Y = Signal(order)
self.weights = [0] * order
def is_signal_outlier(self, sig):
X = np.array(self.X.signal)
weights = np.array(self.weights)
yest = weights.dot(X)
c = (1.0 * (sig - yest)) / (1. * X.dot(X))
weights = weights + self.damping * c * X
self.X.add(sig)
self.weights = list(weights)
return self._check_est(yest)
def _check_est(self, est):
if self.Y.can_use():
return est >= (2.0 * self.Y.sigma() + self.Y.mean())
return False | {
"content_hash": "1dfd6a3ef1f6c92bf8f6048af7b0744c",
"timestamp": "",
"source": "github",
"line_count": 30,
"max_line_length": 64,
"avg_line_length": 26.933333333333334,
"alnum_prop": 0.5433168316831684,
"repo_name": "111t8e/h2o-2",
"id": "f38e98bc1a93082dd91db0c9a92240ea44e11e22",
"size": "808",
"binary": false,
"copies": "11",
"ref": "refs/heads/master",
"path": "h2o-perf/bench/py/h2oPerf/LMSAdaptiveFilter.py",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "7065"
},
{
"name": "C",
"bytes": "2461"
},
{
"name": "CSS",
"bytes": "216906"
},
{
"name": "CoffeeScript",
"bytes": "205094"
},
{
"name": "Emacs Lisp",
"bytes": "7446"
},
{
"name": "Groovy",
"bytes": "518"
},
{
"name": "HTML",
"bytes": "177967"
},
{
"name": "Java",
"bytes": "5177683"
},
{
"name": "JavaScript",
"bytes": "92357"
},
{
"name": "Makefile",
"bytes": "50927"
},
{
"name": "PHP",
"bytes": "8490"
},
{
"name": "Perl",
"bytes": "22594"
},
{
"name": "Python",
"bytes": "3244626"
},
{
"name": "R",
"bytes": "1631216"
},
{
"name": "Ruby",
"bytes": "299"
},
{
"name": "Scala",
"bytes": "39365"
},
{
"name": "Shell",
"bytes": "189829"
}
],
"symlink_target": ""
} |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_92) on Fri Jun 28 10:31:40 PDT 2019 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Package com.github.rvesse.airline.annotations.restrictions (Airline - Library 2.7.1 API)</title>
<meta name="date" content="2019-06-28">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Package com.github.rvesse.airline.annotations.restrictions (Airline - Library 2.7.1 API)";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li>Class</li>
<li class="navBarCell1Rev">Use</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?com/github/rvesse/airline/annotations/restrictions/package-use.html" target="_top">Frames</a></li>
<li><a href="package-use.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 title="Uses of Package com.github.rvesse.airline.annotations.restrictions" class="title">Uses of Package<br>com.github.rvesse.airline.annotations.restrictions</h1>
</div>
<div class="contentContainer">
<ul class="blockList">
<li class="blockList">
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation">
<caption><span>Packages that use <a href="../../../../../../com/github/rvesse/airline/annotations/restrictions/package-summary.html">com.github.rvesse.airline.annotations.restrictions</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Package</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="#com.github.rvesse.airline.annotations.restrictions">com.github.rvesse.airline.annotations.restrictions</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="#com.github.rvesse.airline.restrictions.common">com.github.rvesse.airline.restrictions.common</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="#com.github.rvesse.airline.restrictions.factories">com.github.rvesse.airline.restrictions.factories</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="com.github.rvesse.airline.annotations.restrictions">
<!-- -->
</a>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../../../com/github/rvesse/airline/annotations/restrictions/package-summary.html">com.github.rvesse.airline.annotations.restrictions</a> used by <a href="../../../../../../com/github/rvesse/airline/annotations/restrictions/package-summary.html">com.github.rvesse.airline.annotations.restrictions</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../../../com/github/rvesse/airline/annotations/restrictions/class-use/PathKind.html#com.github.rvesse.airline.annotations.restrictions">PathKind</a>
<div class="block">Enumeration of path kinds</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../../../com/github/rvesse/airline/annotations/restrictions/class-use/PortType.html#com.github.rvesse.airline.annotations.restrictions">PortType</a>
<div class="block">Port types</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="com.github.rvesse.airline.restrictions.common">
<!-- -->
</a>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../../../com/github/rvesse/airline/annotations/restrictions/package-summary.html">com.github.rvesse.airline.annotations.restrictions</a> used by <a href="../../../../../../com/github/rvesse/airline/restrictions/common/package-summary.html">com.github.rvesse.airline.restrictions.common</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../../../com/github/rvesse/airline/annotations/restrictions/class-use/PathKind.html#com.github.rvesse.airline.restrictions.common">PathKind</a>
<div class="block">Enumeration of path kinds</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList"><a name="com.github.rvesse.airline.restrictions.factories">
<!-- -->
</a>
<table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation">
<caption><span>Classes in <a href="../../../../../../com/github/rvesse/airline/annotations/restrictions/package-summary.html">com.github.rvesse.airline.annotations.restrictions</a> used by <a href="../../../../../../com/github/rvesse/airline/restrictions/factories/package-summary.html">com.github.rvesse.airline.restrictions.factories</a></span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Class and Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colOne"><a href="../../../../../../com/github/rvesse/airline/annotations/restrictions/class-use/Port.html#com.github.rvesse.airline.restrictions.factories">Port</a>
<div class="block">Annotation that indicates that an option/argument denotes a port number and
its value should be restricted as such to a specific set of port classes as
defined by <a href="../../../../../../com/github/rvesse/airline/annotations/restrictions/PortType.html" title="enum in com.github.rvesse.airline.annotations.restrictions"><code>PortType</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><a href="../../../../../../com/github/rvesse/airline/annotations/restrictions/class-use/PortRange.html#com.github.rvesse.airline.restrictions.factories">PortRange</a>
<div class="block">Annotation that indicates that an option/argument denotes a port number and
its value should be restricted as such to a specific set of ports.</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li>Class</li>
<li class="navBarCell1Rev">Use</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?com/github/rvesse/airline/annotations/restrictions/package-use.html" target="_top">Frames</a></li>
<li><a href="package-use.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright © 2012–2019. All rights reserved.</small></p>
</body>
</html>
| {
"content_hash": "32c8a983ea4c16ee99776af95a6f78a6",
"timestamp": "",
"source": "github",
"line_count": 216,
"max_line_length": 394,
"avg_line_length": 43.986111111111114,
"alnum_prop": 0.667298179139038,
"repo_name": "rvesse/airline",
"id": "ae1f1ee901648dc7fe6267d0ad9d391d6043ed7b",
"size": "9501",
"binary": false,
"copies": "1",
"ref": "refs/heads/main",
"path": "docs/javadoc/2.7.1/airline/com/github/rvesse/airline/annotations/restrictions/package-use.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "91"
},
{
"name": "Java",
"bytes": "2176058"
},
{
"name": "Shell",
"bytes": "4550"
}
],
"symlink_target": ""
} |
FROM balenalib/artik520-ubuntu:cosmic-run
ENV NODE_VERSION 15.6.0
ENV YARN_VERSION 1.22.4
RUN buildDeps='curl libatomic1' \
&& set -x \
&& for key in \
6A010C5166006599AA17F08146C2130DFD2497F5 \
; do \
gpg --keyserver pgp.mit.edu --recv-keys "$key" || \
gpg --keyserver keyserver.pgp.com --recv-keys "$key" || \
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" ; \
done \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& curl -SLO "http://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-armv7l.tar.gz" \
&& echo "234871415c54174f91764f332a72631519a6af7b1a87797ad7c729855182f9cd node-v$NODE_VERSION-linux-armv7l.tar.gz" | sha256sum -c - \
&& tar -xzf "node-v$NODE_VERSION-linux-armv7l.tar.gz" -C /usr/local --strip-components=1 \
&& rm "node-v$NODE_VERSION-linux-armv7l.tar.gz" \
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \
&& curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" \
&& gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
&& mkdir -p /opt/yarn \
&& tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/yarn --strip-components=1 \
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn \
&& ln -s /opt/yarn/bin/yarn /usr/local/bin/yarnpkg \
&& rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz \
&& npm config set unsafe-perm true -g --unsafe-perm \
&& rm -rf /tmp/*
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/[email protected]" \
&& echo "Running test-stack@node" \
&& chmod +x [email protected] \
&& bash [email protected] \
&& rm -rf [email protected]
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 cosmic \nVariant: run variant \nDefault variable(s): UDEV=off \nThe following software stack is preinstalled: \nNode.js v15.6.0, Yarn v1.22.4 \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": "81c1445417e733fef625e1e71eac9017",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 691,
"avg_line_length": 64.28888888888889,
"alnum_prop": 0.7048047010024197,
"repo_name": "nghiant2710/base-images",
"id": "2af221e212255511d81e4be5db1dde3aa11ac703",
"size": "2914",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "balena-base-images/node/artik520/ubuntu/cosmic/15.6.0/run/Dockerfile",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Dockerfile",
"bytes": "144558581"
},
{
"name": "JavaScript",
"bytes": "16316"
},
{
"name": "Shell",
"bytes": "368690"
}
],
"symlink_target": ""
} |
<?php
namespace Fabfoto\AdminBundle\Form\Type\Picture;
use Admingenerated\FabfotoAdminBundle\Form\BasePictureType\NewType as BaseNewType;
class NewType extends BaseNewType
{
}
| {
"content_hash": "9951d64adcb46efef894640d75235612",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 82,
"avg_line_length": 18,
"alnum_prop": 0.8277777777777777,
"repo_name": "garciaf/fabbook",
"id": "dcabea4334e6aef4550984e33f0df282c4182f2a",
"size": "180",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/Fabfoto/AdminBundle/Form/Type/Picture/NewType.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "JavaScript",
"bytes": "3804894"
},
{
"name": "PHP",
"bytes": "264670"
}
],
"symlink_target": ""
} |
using std::vector;
using std::string;
using cv::Mat;
namespace charliesoft
{
BLOCK_BEGIN_INSTANTIATION(Filter2D);
BLOCK_END_INSTANTIATION(Filter2D, AlgoType::imgProcess, BLOCK__FILTER2D_NAME);
BEGIN_BLOCK_INPUT_PARAMS(Filter2D);
//Add parameters, with following parameters:
ADD_PARAMETER(toBeLinked, Matrix, "BLOCK__FILTER2D_IN_IMAGE", "BLOCK__FILTER2D_IN_IMAGE_HELP");
ADD_PARAMETER(toBeLinked, Matrix, "BLOCK__FILTER2D_IN_KERNEL", "BLOCK__FILTER2D_IN_KERNEL_HELP");
END_BLOCK_PARAMS();
BEGIN_BLOCK_OUTPUT_PARAMS(Filter2D);
ADD_PARAMETER(toBeLinked, Matrix, "BLOCK__FILTER2D_OUT_IMAGE", "BLOCK__FILTER2D_OUT_IMAGE_HELP");
END_BLOCK_PARAMS();
BEGIN_BLOCK_SUBPARAMS_DEF(Filter2D);
END_BLOCK_PARAMS();
Filter2D::Filter2D() :Block("BLOCK__FILTER2D_NAME", true){
_myInputs["BLOCK__FILTER2D_IN_IMAGE"].addValidator({ new ValNeeded() });
_myInputs["BLOCK__FILTER2D_IN_KERNEL"].addValidator({ new ValNeeded() });
};
bool Filter2D::run(bool oneShot){
if (_myInputs["BLOCK__FILTER2D_IN_IMAGE"].isDefaultValue())
return false;
cv::Mat mat = _myInputs["BLOCK__FILTER2D_IN_IMAGE"].get<cv::Mat>();
cv::Mat kernel = _myInputs["BLOCK__FILTER2D_IN_KERNEL"].get<cv::Mat>();
cv::Mat output;
if (!mat.empty())
{
cv::filter2D(mat, output, -1, kernel);
_myOutputs["BLOCK__FILTER2D_OUT_IMAGE"] = output;
}
return !mat.empty();
};
}; | {
"content_hash": "a3cf415d24f3c15f9ea11113439794ce",
"timestamp": "",
"source": "github",
"line_count": 41,
"max_line_length": 98,
"avg_line_length": 33.19512195121951,
"alnum_prop": 0.7031594415870683,
"repo_name": "Petititi/imGraph",
"id": "2877be1d463afc97c6dfee008848fd70d60e0bc8",
"size": "1638",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Sources/blocks/Filter2D.cpp",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "C",
"bytes": "1016290"
},
{
"name": "C++",
"bytes": "2281572"
},
{
"name": "CMake",
"bytes": "15660"
},
{
"name": "GLSL",
"bytes": "1575"
},
{
"name": "PowerShell",
"bytes": "4844"
}
],
"symlink_target": ""
} |
<!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<link rel="import" href="firebase.html">
<link rel="import" href="../polymer/polymer.html">
<!--
**Note: This element is for the older Firebase 2 API**
For the latest official Firebase 3.0-compatible component from the Firebase team,
see the [polymerfire](https://github.com/firebase/polymerfire) component.
Element wrapper for the Firebase authentication API (https://www.firebase.com/docs/web/guide/user-auth.html).
@demo demo/index.html
-->
<script>
Polymer({
is: 'firebase-auth',
properties: {
/**
* Firebase location URL (must have simple login enabled via Forge interface).
*/
location: {
type: String,
reflectToAttribute: true,
observer: '_locationChanged'
},
/**
* Default login provider type. May be one of: `anonymous`, `custom`, `password`,
* `facebook`, `github`, `twitter`, `google`.
*/
provider: {
type: String,
reflectToAttribute: true,
value: 'anonymous'
},
/**
* When logged in, this property reflects the firebase user auth object.
*/
user: {
type: Object,
readOnly: true,
notify: true
},
/**
* When true, login will be attempted if login status check determines no user is
* logged in. Should generally only be used with provider types that do not present
* a login UI, such as 'anonymous'.
*/
autoLogin: {
type: Boolean,
value: false,
reflectToAttribute: true
},
/**
* When true, login status can be determined by checking `user` property.
*/
statusKnown: {
type: Boolean,
value: false,
notify: true,
readOnly: true,
reflectToAttribute: true
},
/**
* When true, authentication will try to redirect instead of using a
* popup if possible.
*/
redirect: {
type: Boolean,
value: false,
reflectToAttribute: true
},
/**
* Provider-specific parameters to pass to login. May be overridden at `login()`-time.
*/
params: {
type: Object
},
/**
* Provider-specific options to pass to login, for provider types that take a second
* object to pass firebase-specific options. May be overridden at `login()`-time.
*/
options: {
type: Object
},
/**
* A pointer to the Firebase instance being used by the firebase-auth element.
*/
ref: {
type: Object,
readOnly: true,
notify: true
},
_boundAuthHandler: {
value: function() {
return this._authHandler.bind(this);
}
},
_boundOnlineHandler: {
value: function() {
return this._onlineHandler.bind(this);
}
},
_queuedLogin: {
type: Object
}
},
attached: function() {
window.addEventListener('online', this._boundOnlineHandler);
},
detached: function() {
window.removeEventListener('online', this._boundOnlineHandler);
this.ref.offAuth(this._boundAuthHandler);
},
_locationChanged: function(location) {
// Note: we debounce here in case location changed as part of property
// initialization, so that we don't try to login before other properties
// are initialized.
this.debounce('locationChanged', function() {
if (this.ref) {
this.ref.offAuth(this._boundAuthHandler);
}
if (location) {
this._setRef(new Firebase(location));
this.ref.onAuth(this._boundAuthHandler);
} else {
this._setRef(null);
}
}, 1);
},
_loginHandler: function(error, user) {
if (error) {
// an error occurred while attempting login
this.fire('error', error);
}
},
_authHandler: function(user) {
if (user) {
// user authenticated with Firebase
this._setUser(user);
this._setStatusKnown(true);
this.fire('login', {user: user});
} else {
this._setUser(null);
if (this.statusKnown) {
this._setStatusKnown(false);
this.fire('logout');
}
if (this._queuedLogin) {
this.login(this._queuedLogin.params, this._queuedLogin.options);
this._queuedLogin = null;
} else if (!this.statusKnown && this.autoLogin) {
this.login();
}
this._setStatusKnown(true);
}
},
/**
* Performs a login attempt, using the `provider` specified via attribute/property,
* or optionally via `provider` argument to the `login` function. Optionally,
* provider-specific login parameters can be specified via attribute (JSON)/property,
* or via the `params` argument to the `login` function.
*
* If your `provider` is `custom` you must pass a Firebase Auth token as
* `params.token`. You can also optionally pass an auth token as `params.token` for
* providers `facebook`, `google`, `github` and `twitter` to login headlessly.
*
* If the login is successful, the `login` event is fired, with `e.detail.user`
* containing the authenticated user object from Firebase.
*
* If login fails, the `error` event is fired, with `e.detail` containing error
* information supplied from Firebase.
*
* If the browser supports `navigator.onLine` network status reporting and the
* network is currently offline, the login attempt will be queued until the network
* is restored.
*
* @method login
* @param {Object} params (optional)
* @param {Object} options (optional)
*/
login: function(params, options) {
if (!this.ref || navigator.onLine === false) {
this._queuedLogin = {params: params, options: options};
} else {
params = params || this.params || undefined;
options = options || this.options || undefined;
switch(this.provider) {
case 'password':
this.ref.authWithPassword(params, this._loginHandler.bind(this), options);
break;
case 'anonymous':
this.ref.authAnonymously(this._loginHandler.bind(this), params);
break;
case 'custom':
this.ref.authWithCustomToken(params.token, this._loginHandler.bind(this));
break;
case 'facebook':
case 'google':
case 'github':
case 'twitter':
if (params && params.token) {
this.ref.authWithOAuthToken(this.provider, params.token, this._loginHandler.bind(this), params);
} else if (this.redirect) {
this.ref.authWithOAuthRedirect(this.provider, this._loginHandler.bind(this), params);
} else {
this.ref.authWithOAuthPopup(this.provider, this._loginHandler.bind(this), params);
}
break;
default:
throw 'Unknown provider: ' + this.provider;
}
}
},
/**
* Performs a logout attempt.
*
* If the logout is successful, the `logout` event is fired.
*
* If logout fails, the `error` event is fired, with `e.detail` containing error
* information supplied from Firebase.
*
* If the browswer supports `navigator.onLine` network status reporting and the
* network is currently offline, the logout attempt will be queued until the network
* is restored.
*
* @method logout
*/
logout: function() {
if (navigator.onLine === false) {
this.queuedLogout = true;
} else {
this.ref.unauth();
}
},
_onlineHandler: function() {
if (this.queuedLogout) {
this.queuedLogout = false;
this.logout();
} else if (this.queuedLogin) {
this.login(this.queuedLogin.params, this.queuedLogin.options);
this.queuedLogin = null;
}
},
/**
* Creates a "password provider"-based user account.
*
* If the operation is successful, the `user-created` event is fired.
*
* If the operation fails, the `error` event is fired, with `e.detail`
* containing error information supplied from Firebase.
*
* @method createUser
* @param {string} email
* @param {string} password
*/
createUser: function(email, password) {
this.ref.createUser({email: email, password: password}, function(error, user) {
if (!error) {
this.fire('user-created', {user: user});
} else {
this.fire('error', error);
}
}.bind(this));
},
/**
* Changes the password of a "password provider"-based user account.
*
* If the operation is successful, the `password-changed` event is fired.
*
* If the operation fails, the `error` event is fired, with `e.detail`
* containing error information supplied from Firebase.
*
* @method changePassword
* @param {string} email
* @param {string} oldPassword
* @param {string} newPassword
*/
changePassword: function(email, oldPassword, newPassword) {
this.ref.changePassword({
email: email,
oldPassword: oldPassword,
newPassword: newPassword
}, function(error) {
if (!error) {
this.fire('password-changed');
} else {
this.fire('error', error);
}
}.bind(this));
},
/**
* Sends a password reset email for a "password provider"-based user account.
*
* If the operation is successful, the `password-reset` event is fired.
*
* If the operation fails, the `error` event is fired, with `e.detail`
* containing error information supplied from Firebase.
*
* @method sendPasswordResetEmail
* @param {string} email
*/
sendPasswordResetEmail: function(email) {
this.ref.resetPassword({email: email}, function(error) {
if (!error) {
this.fire('password-reset');
} else {
this.fire('error', error);
}
}.bind(this));
},
/**
* Changes the email of a "password provider"-based user account.
*
* If the operation is successful, the `email-changed` event is fired.
*
* If the operation fails, the `error` event is fired, with `e.detail`
* containing error information supplied from Firebase.
*
* @method changeEmail
* @param {string} oldEmail
* @param {string} newEmail
* @param {string} Password
*/
changeEmail: function(oldEmail, newEmail, password) {
this.ref.changeEmail({
oldEmail: oldEmail,
newEmail: newEmail,
password: password
}, function(error) {
if (!error) {
this.fire('email-changed');
} else {
this.fire('error', error);
}
}.bind(this));
},
/**
* Removes a "password provider"-based user account.
*
* If the operation is successful, the `user-removed` event is fired.
*
* If the operation fails, the `error` event is fired, with `e.detail`
* containing error information supplied from Firebase.
*
* @method removeUser
* @param {string} email
* @param {string} password
*/
removeUser: function(email, password) {
this.ref.removeUser({email: email, password: password}, function(error, success) {
if (!error) {
this.fire('user-removed');
} else {
this.fire('error', error);
}
}.bind(this));
}
});
</script>
| {
"content_hash": "8026bd0ebde8051fb1edf74ed98a9b6a",
"timestamp": "",
"source": "github",
"line_count": 397,
"max_line_length": 110,
"avg_line_length": 30.738035264483628,
"alnum_prop": 0.5890354830779316,
"repo_name": "erithgames/erithgames.github.io",
"id": "bd4a661b3feb921e2e7e622f747702e13107e501",
"size": "12203",
"binary": false,
"copies": "11",
"ref": "refs/heads/master",
"path": "bower_components/firebase-element/firebase-auth.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "210042"
}
],
"symlink_target": ""
} |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_45) on Thu Oct 02 16:43:22 BST 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Overview (Apache Jena TDB)</title>
<meta name="date" content="2014-10-02">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Overview (Apache Jena TDB)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li class="navBarCell1Rev">Overview</li>
<li>Package</li>
<li>Class</li>
<li>Use</li>
<li><a href="overview-tree.html">Tree</a></li>
<li><a href="deprecated-list.html">Deprecated</a></li>
<li><a href="index-all.html">Index</a></li>
<li><a href="help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="index.html?overview-summary.html" target="_top">Frames</a></li>
<li><a href="overview-summary.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 class="title">Apache Jena TDB 1.1.1</h1>
</div>
<div class="contentContainer">
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Packages table, listing packages, and an explanation">
<caption><span>Packages</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Package</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="com/hp/hpl/jena/tdb/package-summary.html">com.hp.hpl.jena.tdb</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="tdb/package-summary.html">tdb</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="tdb/cmdline/package-summary.html">tdb.cmdline</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="tdb/tools/package-summary.html">tdb.tools</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li class="navBarCell1Rev">Overview</li>
<li>Package</li>
<li>Class</li>
<li>Use</li>
<li><a href="overview-tree.html">Tree</a></li>
<li><a href="deprecated-list.html">Deprecated</a></li>
<li><a href="index-all.html">Index</a></li>
<li><a href="help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="index.html?overview-summary.html" target="_top">Frames</a></li>
<li><a href="overview-summary.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Licenced under the Apache License, Version 2.0</small></p>
</body>
</html>
| {
"content_hash": "a1c8a37fb1abac9f87dcd195991ed00f",
"timestamp": "",
"source": "github",
"line_count": 143,
"max_line_length": 137,
"avg_line_length": 30.685314685314687,
"alnum_prop": 0.6403828623518687,
"repo_name": "renzoar/RDFExplorer",
"id": "fd19abe18d7ec558238917267b48fa2ea8c17fb0",
"size": "4388",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "lib/Jena/javadoc-tdb/overview-summary.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "33417"
},
{
"name": "HTML",
"bytes": "78226018"
},
{
"name": "Java",
"bytes": "141759"
}
],
"symlink_target": ""
} |
<html>
<head>
<title>User agent detail - Mozilla/5.0 (Linux; Android 4.0.4; YPY-73G Build/IMM76D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="section">
<h1 class="header center orange-text">User agent detail</h1>
<div class="row center">
<h5 class="header light">
Mozilla/5.0 (Linux; Android 4.0.4; YPY-73G Build/IMM76D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19
</h5>
</div>
</div>
<div class="section">
<table class="striped"><tr><th></th><th colspan="3">General</th><th colspan="5">Device</th><th colspan="3">Bot</th><th colspan="2"></th></tr><tr><th>Provider</th><th>Browser</th><th>Engine</th><th>OS</th><th>Brand</th><th>Model</th><th>Type</th><th>Is mobile</th><th>Is touch</th><th>Is bot</th><th>Name</th><th>Type</th><th>Parse time</th><th>Actions</th></tr><tr><th colspan="14" class="green lighten-3">Source result (test suite)</th></tr><tr><td>ua-parser/uap-core<br /><small>vendor/thadafinser/uap-core/tests/test_device.yaml</small></td><td> </td><td> </td><td> </td><td style="border-left: 1px solid #555">Positivo</td><td>YPY-73G</td><td></td><td></td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td></td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-test">Detail</a>
<!-- Modal Structure -->
<div id="modal-test" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Testsuite result detail</h4>
<p><pre><code class="php">Array
(
[user_agent_string] => Mozilla/5.0 (Linux; Android 4.0.4; YPY-73G Build/IMM76D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19
[family] => YPY-73G
[brand] => Positivo
[model] => YPY-73G
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><th colspan="14" class="green lighten-3">Providers</th></tr><tr><td>BrowscapPhp<br /><small>6012</small></td><td>Chrome 18.0</td><td>WebKit </td><td>Android 4.0</td><td style="border-left: 1px solid #555"></td><td></td><td>Mobile Phone</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.119</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-215ac98d-ccf8-4615-916e-5a819d6a59c9">Detail</a>
<!-- Modal Structure -->
<div id="modal-215ac98d-ccf8-4615-916e-5a819d6a59c9" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>BrowscapPhp result detail</h4>
<p><pre><code class="php">stdClass Object
(
[browser_name_regex] => /^mozilla\/5\.0 \(.*linux.*android.4\.0.*\) applewebkit\/.* \(khtml, like gecko\) chrome\/18\..*safari\/.*$/
[browser_name_pattern] => mozilla/5.0 (*linux*android?4.0*) applewebkit/* (khtml, like gecko) chrome/18.*safari/*
[parent] => Chrome 18.0 for Android
[comment] => Chrome 18.0
[browser] => Chrome
[browser_type] => Browser
[browser_bits] => 32
[browser_maker] => Google Inc
[browser_modus] => unknown
[version] => 18.0
[majorver] => 18
[minorver] => 0
[platform] => Android
[platform_version] => 4.0
[platform_description] => Android OS
[platform_bits] => 32
[platform_maker] => Google Inc
[alpha] =>
[beta] =>
[win16] =>
[win32] =>
[win64] =>
[frames] => 1
[iframes] => 1
[tables] => 1
[cookies] => 1
[backgroundsounds] =>
[javascript] => 1
[vbscript] =>
[javaapplets] =>
[activexcontrols] =>
[ismobiledevice] => 1
[istablet] =>
[issyndicationreader] =>
[crawler] =>
[cssversion] => 3
[aolversion] => 0
[device_name] => general Mobile Phone
[device_maker] => unknown
[device_type] => Mobile Phone
[device_pointing_method] => touchscreen
[device_code_name] => general Mobile Phone
[device_brand_name] => unknown
[renderingengine_name] => WebKit
[renderingengine_version] => unknown
[renderingengine_description] => For Google Chrome, iOS (including both mobile Safari, WebViews within third-party apps, and web clips), Safari, Arora, Midori, OmniWeb, Shiira, iCab since version 4, Web, SRWare Iron, Rekonq, and in Maxthon 3.
[renderingengine_maker] => Apple Inc
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>DonatjUAParser<br /><small>v0.5.0</small></td><td>Chrome 18.0.1025.166</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-f1436016-fdf1-4aea-b4be-1d7c99ab0661">Detail</a>
<!-- Modal Structure -->
<div id="modal-f1436016-fdf1-4aea-b4be-1d7c99ab0661" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>DonatjUAParser result detail</h4>
<p><pre><code class="php">Array
(
[platform] => Android
[browser] => Chrome
[version] => 18.0.1025.166
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>NeutrinoApiCom<br /><small></small></td><td>Chrome Mobile 18.0.1025.166</td><td><i class="material-icons">close</i></td><td>Android 4.0.4</td><td style="border-left: 1px solid #555">Generic</td><td>Android 4.0</td><td>mobile-browser</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.288</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-9b0fa449-ec1b-40c8-8b1c-9486eb3b9cbc">Detail</a>
<!-- Modal Structure -->
<div id="modal-9b0fa449-ec1b-40c8-8b1c-9486eb3b9cbc" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>NeutrinoApiCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[mobile_screen_height] => 480
[is_mobile] => 1
[type] => mobile-browser
[mobile_brand] => Generic
[mobile_model] => Android 4.0
[version] => 18.0.1025.166
[is_android] => 1
[browser_name] => Chrome Mobile
[operating_system_family] => Android
[operating_system_version] => 4.0.4
[is_ios] =>
[producer] => Google Inc.
[operating_system] => Android 4.0.x Ice Cream Sandwich
[mobile_screen_width] => 320
[mobile_browser] => Android Webkit
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>PiwikDeviceDetector<br /><small>3.5.2</small></td><td>Chrome Mobile 18.0</td><td>WebKit </td><td>Android 4.0</td><td style="border-left: 1px solid #555"></td><td></td><td>smartphone</td><td>yes</td><td></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.01</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-21638055-738d-46ba-a1b1-f5114bc26475">Detail</a>
<!-- Modal Structure -->
<div id="modal-21638055-738d-46ba-a1b1-f5114bc26475" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>PiwikDeviceDetector result detail</h4>
<p><pre><code class="php">Array
(
[client] => Array
(
[type] => browser
[name] => Chrome Mobile
[short_name] => CM
[version] => 18.0
[engine] => WebKit
)
[operatingSystem] => Array
(
[name] => Android
[short_name] => AND
[version] => 4.0
[platform] =>
)
[device] => Array
(
[brand] =>
[brandName] =>
[model] =>
[device] => 1
[deviceName] => smartphone
)
[bot] =>
[extra] => Array
(
[isBot] =>
[isBrowser] => 1
[isFeedReader] =>
[isMobileApp] =>
[isPIM] =>
[isLibrary] =>
[isMediaPlayer] =>
[isCamera] =>
[isCarBrowser] =>
[isConsole] =>
[isFeaturePhone] =>
[isPhablet] =>
[isPortableMediaPlayer] =>
[isSmartDisplay] =>
[isSmartphone] => 1
[isTablet] =>
[isTV] =>
[isDesktop] =>
[isMobile] => 1
[isTouchEnabled] =>
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>SinergiBrowserDetector<br /><small>6.0.0</small></td><td>Chrome 18.0.1025.166</td><td><i class="material-icons">close</i></td><td>Android 4.0.4</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td></td><td><i class="material-icons">close</i></td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.001</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-5415e7f2-ef7b-434c-abe0-b71ba9f6707c">Detail</a>
<!-- Modal Structure -->
<div id="modal-5415e7f2-ef7b-434c-abe0-b71ba9f6707c" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>SinergiBrowserDetector result detail</h4>
<p><pre><code class="php">Array
(
[browser] => Sinergi\BrowserDetector\Browser Object
(
[userAgent:Sinergi\BrowserDetector\Browser:private] => Sinergi\BrowserDetector\UserAgent Object
(
[userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; Android 4.0.4; YPY-73G Build/IMM76D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19
)
[name:Sinergi\BrowserDetector\Browser:private] => Chrome
[version:Sinergi\BrowserDetector\Browser:private] => 18.0.1025.166
[isRobot:Sinergi\BrowserDetector\Browser:private] =>
[isChromeFrame:Sinergi\BrowserDetector\Browser:private] =>
)
[operatingSystem] => Sinergi\BrowserDetector\Os Object
(
[name:Sinergi\BrowserDetector\Os:private] => Android
[version:Sinergi\BrowserDetector\Os:private] => 4.0.4
[isMobile:Sinergi\BrowserDetector\Os:private] => 1
[userAgent:Sinergi\BrowserDetector\Os:private] => Sinergi\BrowserDetector\UserAgent Object
(
[userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; Android 4.0.4; YPY-73G Build/IMM76D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19
)
)
[device] => Sinergi\BrowserDetector\Device Object
(
[name:Sinergi\BrowserDetector\Device:private] => unknown
[userAgent:Sinergi\BrowserDetector\Device:private] => Sinergi\BrowserDetector\UserAgent Object
(
[userAgentString:Sinergi\BrowserDetector\UserAgent:private] => Mozilla/5.0 (Linux; Android 4.0.4; YPY-73G Build/IMM76D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19
)
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>UAParser<br /><small>v3.4.5</small></td><td>Chrome Mobile 18.0.1025</td><td><i class="material-icons">close</i></td><td>Android 4.0.4</td><td style="border-left: 1px solid #555">Positivo</td><td>YPY-73G</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.001</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-346c1a98-5fd3-454f-b6c8-350f2f505d8b">Detail</a>
<!-- Modal Structure -->
<div id="modal-346c1a98-5fd3-454f-b6c8-350f2f505d8b" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>UAParser result detail</h4>
<p><pre><code class="php">UAParser\Result\Client Object
(
[ua] => UAParser\Result\UserAgent Object
(
[major] => 18
[minor] => 0
[patch] => 1025
[family] => Chrome Mobile
)
[os] => UAParser\Result\OperatingSystem Object
(
[major] => 4
[minor] => 0
[patch] => 4
[patchMinor] =>
[family] => Android
)
[device] => UAParser\Result\Device Object
(
[brand] => Positivo
[model] => YPY-73G
[family] => YPY-73G
)
[originalUserAgent] => Mozilla/5.0 (Linux; Android 4.0.4; YPY-73G Build/IMM76D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>UserAgentStringCom<br /><small></small></td><td>Android Webkit Browser </td><td><i class="material-icons">close</i></td><td>Android 4.0.4</td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td></td><td>0.139</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-9cdd8b45-a2eb-406b-bd27-7e48af38ffd4">Detail</a>
<!-- Modal Structure -->
<div id="modal-9cdd8b45-a2eb-406b-bd27-7e48af38ffd4" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>UserAgentStringCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[agent_type] => Browser
[agent_name] => Android Webkit Browser
[agent_version] => --
[os_type] => Android
[os_name] => Android
[os_versionName] =>
[os_versionNumber] => 4.0.4
[os_producer] =>
[os_producerURL] =>
[linux_distibution] => Null
[agent_language] =>
[agent_languageTag] =>
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>WhatIsMyBrowserCom<br /><small></small></td><td>Chrome 18.0.1025.166</td><td>WebKit 535.19</td><td>Android 4.0.4</td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.408</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-9795f66f-7271-430e-973a-a5c0e14dc35a">Detail</a>
<!-- Modal Structure -->
<div id="modal-9795f66f-7271-430e-973a-a5c0e14dc35a" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>WhatIsMyBrowserCom result detail</h4>
<p><pre><code class="php">stdClass Object
(
[operating_system_name] => Android
[simple_sub_description_string] =>
[simple_browser_string] => Chrome 18 on Android (Ice Cream Sandwich)
[browser_version] => 18
[extra_info] => Array
(
)
[operating_platform] =>
[extra_info_table] => stdClass Object
(
[System Build] => IMM76D
)
[layout_engine_name] => WebKit
[detected_addons] => Array
(
)
[operating_system_flavour_code] =>
[hardware_architecture] =>
[operating_system_flavour] =>
[operating_system_frameworks] => Array
(
)
[browser_name_code] => chrome
[operating_system_version] => Ice Cream Sandwich
[simple_operating_platform_string] =>
[is_abusive] =>
[layout_engine_version] => 535.19
[browser_capabilities] => Array
(
)
[operating_platform_vendor_name] =>
[operating_system] => Android (Ice Cream Sandwich)
[operating_system_version_full] => 4.0.4
[operating_platform_code] =>
[browser_name] => Chrome
[operating_system_name_code] => android
[user_agent] => Mozilla/5.0 (Linux; Android 4.0.4; YPY-73G Build/IMM76D) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19
[browser_version_full] => 18.0.1025.166
[browser] => Chrome 18
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>WhichBrowser<br /><small>2.0.10</small></td><td>Chrome 18</td><td>Webkit 535.19</td><td>Android 4.0.4</td><td style="border-left: 1px solid #555">Positivo</td><td>YPY 73G</td><td>tablet</td><td>yes</td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0.05301</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-342c8d32-4765-40a8-8a5c-af3a38d19ae4">Detail</a>
<!-- Modal Structure -->
<div id="modal-342c8d32-4765-40a8-8a5c-af3a38d19ae4" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>WhichBrowser result detail</h4>
<p><pre><code class="php">Array
(
[browser] => Array
(
[name] => Chrome
[version] => 18
[type] => browser
)
[engine] => Array
(
[name] => Webkit
[version] => 535.19
)
[os] => Array
(
[name] => Android
[version] => 4.0.4
)
[device] => Array
(
[type] => tablet
[manufacturer] => Positivo
[model] => YPY 73G
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>Woothee<br /><small>v1.2.0</small></td><td>Chrome 18.0.1025.166</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>smartphone</td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td style="border-left: 1px solid #555"></td><td></td><td><i class="material-icons">close</i></td><td>0</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-3f285ff5-314b-4db4-9948-54572e92e7b6">Detail</a>
<!-- Modal Structure -->
<div id="modal-3f285ff5-314b-4db4-9948-54572e92e7b6" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Woothee result detail</h4>
<p><pre><code class="php">Array
(
[name] => Chrome
[vendor] => Google
[version] => 18.0.1025.166
[category] => smartphone
[os] => Android
[os_version] => 4.0.4
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr><tr><td>Wurfl<br /><small>1.6.4</small></td><td>Android Webkit 4.0</td><td><i class="material-icons">close</i></td><td>Android 4.0</td><td style="border-left: 1px solid #555"></td><td></td><td>Smartphone</td><td>yes</td><td>yes</td><td style="border-left: 1px solid #555"></td><td><i class="material-icons">close</i></td><td><i class="material-icons">close</i></td><td>0.045</td><td>
<!-- Modal Trigger -->
<a class="modal-trigger btn waves-effect waves-light" href="#modal-1a1aee36-7ce7-4111-a391-8e2c501f1532">Detail</a>
<!-- Modal Structure -->
<div id="modal-1a1aee36-7ce7-4111-a391-8e2c501f1532" class="modal modal-fixed-footer">
<div class="modal-content">
<h4>Wurfl result detail</h4>
<p><pre><code class="php">Array
(
[virtual] => Array
(
[is_android] => true
[is_ios] => false
[is_windows_phone] => false
[is_app] => false
[is_full_desktop] => false
[is_largescreen] => false
[is_mobile] => true
[is_robot] => false
[is_smartphone] => true
[is_touchscreen] => true
[is_wml_preferred] => false
[is_xhtmlmp_preferred] => false
[is_html_preferred] => true
[advertised_device_os] => Android
[advertised_device_os_version] => 4.0
[advertised_browser] => Android Webkit
[advertised_browser_version] => 4.0
[complete_device_name] => Generic Android 4.0
[form_factor] => Smartphone
[is_phone] => true
[is_app_webview] => false
)
[all] => Array
(
[brand_name] => Generic
[model_name] => Android 4.0
[unique] => true
[ununiqueness_handler] =>
[is_wireless_device] => true
[device_claims_web_support] => true
[has_qwerty_keyboard] => true
[can_skip_aligned_link_row] => true
[uaprof] =>
[uaprof2] =>
[uaprof3] =>
[nokia_series] => 0
[nokia_edition] => 0
[device_os] => Android
[mobile_browser] => Android Webkit
[mobile_browser_version] =>
[device_os_version] => 4.0
[pointing_method] => touchscreen
[release_date] => 2011_october
[marketing_name] =>
[model_extra_info] =>
[nokia_feature_pack] => 0
[can_assign_phone_number] => true
[is_tablet] => false
[manufacturer_name] =>
[is_bot] => false
[is_google_glass] => false
[proportional_font] => false
[built_in_back_button_support] => false
[card_title_support] => true
[softkey_support] => false
[table_support] => true
[numbered_menus] => false
[menu_with_select_element_recommended] => false
[menu_with_list_of_links_recommended] => true
[icons_on_menu_items_support] => false
[break_list_of_links_with_br_element_recommended] => true
[access_key_support] => false
[wrap_mode_support] => false
[times_square_mode_support] => false
[deck_prefetch_support] => false
[elective_forms_recommended] => true
[wizards_recommended] => false
[image_as_link_support] => false
[insert_br_element_after_widget_recommended] => false
[wml_can_display_images_and_text_on_same_line] => false
[wml_displays_image_in_center] => false
[opwv_wml_extensions_support] => false
[wml_make_phone_call_string] => wtai://wp/mc;
[chtml_display_accesskey] => false
[emoji] => false
[chtml_can_display_images_and_text_on_same_line] => false
[chtml_displays_image_in_center] => false
[imode_region] => none
[chtml_make_phone_call_string] => tel:
[chtml_table_support] => false
[xhtml_honors_bgcolor] => true
[xhtml_supports_forms_in_table] => true
[xhtml_support_wml2_namespace] => false
[xhtml_autoexpand_select] => false
[xhtml_select_as_dropdown] => false
[xhtml_select_as_radiobutton] => false
[xhtml_select_as_popup] => false
[xhtml_display_accesskey] => false
[xhtml_supports_invisible_text] => false
[xhtml_supports_inline_input] => false
[xhtml_supports_monospace_font] => false
[xhtml_supports_table_for_layout] => true
[xhtml_supports_css_cell_table_coloring] => true
[xhtml_format_as_css_property] => false
[xhtml_format_as_attribute] => false
[xhtml_nowrap_mode] => false
[xhtml_marquee_as_css_property] => false
[xhtml_readable_background_color1] => #FFFFFF
[xhtml_readable_background_color2] => #FFFFFF
[xhtml_allows_disabled_form_elements] => true
[xhtml_document_title_support] => true
[xhtml_preferred_charset] => iso-8859-1
[opwv_xhtml_extensions_support] => false
[xhtml_make_phone_call_string] => tel:
[xhtmlmp_preferred_mime_type] => text/html
[xhtml_table_support] => true
[xhtml_send_sms_string] => sms:
[xhtml_send_mms_string] => mms:
[xhtml_file_upload] => supported
[cookie_support] => true
[accept_third_party_cookie] => true
[xhtml_supports_iframe] => full
[xhtml_avoid_accesskeys] => true
[xhtml_can_embed_video] => none
[ajax_support_javascript] => true
[ajax_manipulate_css] => true
[ajax_support_getelementbyid] => true
[ajax_support_inner_html] => true
[ajax_xhr_type] => standard
[ajax_manipulate_dom] => true
[ajax_support_events] => true
[ajax_support_event_listener] => true
[ajax_preferred_geoloc_api] => w3c_api
[xhtml_support_level] => 4
[preferred_markup] => html_web_4_0
[wml_1_1] => false
[wml_1_2] => false
[wml_1_3] => false
[html_wi_w3_xhtmlbasic] => true
[html_wi_oma_xhtmlmp_1_0] => true
[html_wi_imode_html_1] => false
[html_wi_imode_html_2] => false
[html_wi_imode_html_3] => false
[html_wi_imode_html_4] => false
[html_wi_imode_html_5] => false
[html_wi_imode_htmlx_1] => false
[html_wi_imode_htmlx_1_1] => false
[html_wi_imode_compact_generic] => false
[html_web_3_2] => true
[html_web_4_0] => true
[voicexml] => false
[multipart_support] => false
[total_cache_disable_support] => false
[time_to_live_support] => false
[resolution_width] => 320
[resolution_height] => 480
[columns] => 60
[max_image_width] => 320
[max_image_height] => 480
[rows] => 40
[physical_screen_width] => 34
[physical_screen_height] => 50
[dual_orientation] => true
[density_class] => 1.0
[wbmp] => true
[bmp] => false
[epoc_bmp] => false
[gif_animated] => false
[jpg] => true
[png] => true
[tiff] => false
[transparent_png_alpha] => true
[transparent_png_index] => true
[svgt_1_1] => true
[svgt_1_1_plus] => false
[greyscale] => false
[gif] => true
[colors] => 65536
[webp_lossy_support] => true
[webp_lossless_support] => false
[post_method_support] => true
[basic_authentication_support] => true
[empty_option_value_support] => true
[emptyok] => false
[nokia_voice_call] => false
[wta_voice_call] => false
[wta_phonebook] => false
[wta_misc] => false
[wta_pdc] => false
[https_support] => true
[phone_id_provided] => false
[max_data_rate] => 3600
[wifi] => true
[sdio] => false
[vpn] => false
[has_cellular_radio] => true
[max_deck_size] => 2000000
[max_url_length_in_requests] => 256
[max_url_length_homepage] => 0
[max_url_length_bookmark] => 0
[max_url_length_cached_page] => 0
[max_no_of_connection_settings] => 0
[max_no_of_bookmarks] => 0
[max_length_of_username] => 0
[max_length_of_password] => 0
[max_object_size] => 0
[downloadfun_support] => false
[directdownload_support] => true
[inline_support] => false
[oma_support] => true
[ringtone] => false
[ringtone_3gpp] => false
[ringtone_midi_monophonic] => false
[ringtone_midi_polyphonic] => false
[ringtone_imelody] => false
[ringtone_digiplug] => false
[ringtone_compactmidi] => false
[ringtone_mmf] => false
[ringtone_rmf] => false
[ringtone_xmf] => false
[ringtone_amr] => false
[ringtone_awb] => false
[ringtone_aac] => false
[ringtone_wav] => false
[ringtone_mp3] => false
[ringtone_spmidi] => false
[ringtone_qcelp] => false
[ringtone_voices] => 1
[ringtone_df_size_limit] => 0
[ringtone_directdownload_size_limit] => 0
[ringtone_inline_size_limit] => 0
[ringtone_oma_size_limit] => 0
[wallpaper] => false
[wallpaper_max_width] => 0
[wallpaper_max_height] => 0
[wallpaper_preferred_width] => 0
[wallpaper_preferred_height] => 0
[wallpaper_resize] => none
[wallpaper_wbmp] => false
[wallpaper_bmp] => false
[wallpaper_gif] => false
[wallpaper_jpg] => false
[wallpaper_png] => false
[wallpaper_tiff] => false
[wallpaper_greyscale] => false
[wallpaper_colors] => 2
[wallpaper_df_size_limit] => 0
[wallpaper_directdownload_size_limit] => 0
[wallpaper_inline_size_limit] => 0
[wallpaper_oma_size_limit] => 0
[screensaver] => false
[screensaver_max_width] => 0
[screensaver_max_height] => 0
[screensaver_preferred_width] => 0
[screensaver_preferred_height] => 0
[screensaver_resize] => none
[screensaver_wbmp] => false
[screensaver_bmp] => false
[screensaver_gif] => false
[screensaver_jpg] => false
[screensaver_png] => false
[screensaver_greyscale] => false
[screensaver_colors] => 2
[screensaver_df_size_limit] => 0
[screensaver_directdownload_size_limit] => 0
[screensaver_inline_size_limit] => 0
[screensaver_oma_size_limit] => 0
[picture] => false
[picture_max_width] => 0
[picture_max_height] => 0
[picture_preferred_width] => 0
[picture_preferred_height] => 0
[picture_resize] => none
[picture_wbmp] => false
[picture_bmp] => false
[picture_gif] => false
[picture_jpg] => false
[picture_png] => false
[picture_greyscale] => false
[picture_colors] => 2
[picture_df_size_limit] => 0
[picture_directdownload_size_limit] => 0
[picture_inline_size_limit] => 0
[picture_oma_size_limit] => 0
[video] => false
[oma_v_1_0_forwardlock] => false
[oma_v_1_0_combined_delivery] => false
[oma_v_1_0_separate_delivery] => false
[streaming_video] => true
[streaming_3gpp] => true
[streaming_mp4] => true
[streaming_mov] => false
[streaming_video_size_limit] => 0
[streaming_real_media] => none
[streaming_flv] => false
[streaming_3g2] => false
[streaming_vcodec_h263_0] => 10
[streaming_vcodec_h263_3] => -1
[streaming_vcodec_mpeg4_sp] => 2
[streaming_vcodec_mpeg4_asp] => -1
[streaming_vcodec_h264_bp] => 3.0
[streaming_acodec_amr] => nb
[streaming_acodec_aac] => lc
[streaming_wmv] => none
[streaming_preferred_protocol] => rtsp
[streaming_preferred_http_protocol] => apple_live_streaming
[wap_push_support] => false
[connectionless_service_indication] => false
[connectionless_service_load] => false
[connectionless_cache_operation] => false
[connectionoriented_unconfirmed_service_indication] => false
[connectionoriented_unconfirmed_service_load] => false
[connectionoriented_unconfirmed_cache_operation] => false
[connectionoriented_confirmed_service_indication] => false
[connectionoriented_confirmed_service_load] => false
[connectionoriented_confirmed_cache_operation] => false
[utf8_support] => true
[ascii_support] => false
[iso8859_support] => false
[expiration_date] => false
[j2me_cldc_1_0] => false
[j2me_cldc_1_1] => false
[j2me_midp_1_0] => false
[j2me_midp_2_0] => false
[doja_1_0] => false
[doja_1_5] => false
[doja_2_0] => false
[doja_2_1] => false
[doja_2_2] => false
[doja_3_0] => false
[doja_3_5] => false
[doja_4_0] => false
[j2me_jtwi] => false
[j2me_mmapi_1_0] => false
[j2me_mmapi_1_1] => false
[j2me_wmapi_1_0] => false
[j2me_wmapi_1_1] => false
[j2me_wmapi_2_0] => false
[j2me_btapi] => false
[j2me_3dapi] => false
[j2me_locapi] => false
[j2me_nokia_ui] => false
[j2me_motorola_lwt] => false
[j2me_siemens_color_game] => false
[j2me_siemens_extension] => false
[j2me_heap_size] => 0
[j2me_max_jar_size] => 0
[j2me_storage_size] => 0
[j2me_max_record_store_size] => 0
[j2me_screen_width] => 0
[j2me_screen_height] => 0
[j2me_canvas_width] => 0
[j2me_canvas_height] => 0
[j2me_bits_per_pixel] => 0
[j2me_audio_capture_enabled] => false
[j2me_video_capture_enabled] => false
[j2me_photo_capture_enabled] => false
[j2me_capture_image_formats] => none
[j2me_http] => false
[j2me_https] => false
[j2me_socket] => false
[j2me_udp] => false
[j2me_serial] => false
[j2me_gif] => false
[j2me_gif89a] => false
[j2me_jpg] => false
[j2me_png] => false
[j2me_bmp] => false
[j2me_bmp3] => false
[j2me_wbmp] => false
[j2me_midi] => false
[j2me_wav] => false
[j2me_amr] => false
[j2me_mp3] => false
[j2me_mp4] => false
[j2me_imelody] => false
[j2me_rmf] => false
[j2me_au] => false
[j2me_aac] => false
[j2me_realaudio] => false
[j2me_xmf] => false
[j2me_wma] => false
[j2me_3gpp] => false
[j2me_h263] => false
[j2me_svgt] => false
[j2me_mpeg4] => false
[j2me_realvideo] => false
[j2me_real8] => false
[j2me_realmedia] => false
[j2me_left_softkey_code] => 0
[j2me_right_softkey_code] => 0
[j2me_middle_softkey_code] => 0
[j2me_select_key_code] => 0
[j2me_return_key_code] => 0
[j2me_clear_key_code] => 0
[j2me_datefield_no_accepts_null_date] => false
[j2me_datefield_broken] => false
[receiver] => false
[sender] => false
[mms_max_size] => 0
[mms_max_height] => 0
[mms_max_width] => 0
[built_in_recorder] => false
[built_in_camera] => true
[mms_jpeg_baseline] => false
[mms_jpeg_progressive] => false
[mms_gif_static] => false
[mms_gif_animated] => false
[mms_png] => false
[mms_bmp] => false
[mms_wbmp] => false
[mms_amr] => false
[mms_wav] => false
[mms_midi_monophonic] => false
[mms_midi_polyphonic] => false
[mms_midi_polyphonic_voices] => 0
[mms_spmidi] => false
[mms_mmf] => false
[mms_mp3] => false
[mms_evrc] => false
[mms_qcelp] => false
[mms_ota_bitmap] => false
[mms_nokia_wallpaper] => false
[mms_nokia_operatorlogo] => false
[mms_nokia_3dscreensaver] => false
[mms_nokia_ringingtone] => false
[mms_rmf] => false
[mms_xmf] => false
[mms_symbian_install] => false
[mms_jar] => false
[mms_jad] => false
[mms_vcard] => false
[mms_vcalendar] => false
[mms_wml] => false
[mms_wbxml] => false
[mms_wmlc] => false
[mms_video] => false
[mms_mp4] => false
[mms_3gpp] => false
[mms_3gpp2] => false
[mms_max_frame_rate] => 0
[nokiaring] => false
[picturemessage] => false
[operatorlogo] => false
[largeoperatorlogo] => false
[callericon] => false
[nokiavcard] => false
[nokiavcal] => false
[sckl_ringtone] => false
[sckl_operatorlogo] => false
[sckl_groupgraphic] => false
[sckl_vcard] => false
[sckl_vcalendar] => false
[text_imelody] => false
[ems] => false
[ems_variablesizedpictures] => false
[ems_imelody] => false
[ems_odi] => false
[ems_upi] => false
[ems_version] => 0
[siemens_ota] => false
[siemens_logo_width] => 101
[siemens_logo_height] => 29
[siemens_screensaver_width] => 101
[siemens_screensaver_height] => 50
[gprtf] => false
[sagem_v1] => false
[sagem_v2] => false
[panasonic] => false
[sms_enabled] => true
[wav] => false
[mmf] => false
[smf] => false
[mld] => false
[midi_monophonic] => false
[midi_polyphonic] => false
[sp_midi] => false
[rmf] => false
[xmf] => false
[compactmidi] => false
[digiplug] => false
[nokia_ringtone] => false
[imelody] => false
[au] => false
[amr] => false
[awb] => false
[aac] => true
[mp3] => true
[voices] => 1
[qcelp] => false
[evrc] => false
[flash_lite_version] =>
[fl_wallpaper] => false
[fl_screensaver] => false
[fl_standalone] => false
[fl_browser] => false
[fl_sub_lcd] => false
[full_flash_support] => true
[css_supports_width_as_percentage] => true
[css_border_image] => webkit
[css_rounded_corners] => webkit
[css_gradient] => none
[css_spriting] => true
[css_gradient_linear] => none
[is_transcoder] => false
[transcoder_ua_header] => user-agent
[rss_support] => false
[pdf_support] => true
[progressive_download] => true
[playback_vcodec_h263_0] => 10
[playback_vcodec_h263_3] => -1
[playback_vcodec_mpeg4_sp] => 0
[playback_vcodec_mpeg4_asp] => -1
[playback_vcodec_h264_bp] => 3.0
[playback_real_media] => none
[playback_3gpp] => true
[playback_3g2] => false
[playback_mp4] => true
[playback_mov] => false
[playback_acodec_amr] => nb
[playback_acodec_aac] => none
[playback_df_size_limit] => 0
[playback_directdownload_size_limit] => 0
[playback_inline_size_limit] => 0
[playback_oma_size_limit] => 0
[playback_acodec_qcelp] => false
[playback_wmv] => none
[hinted_progressive_download] => true
[html_preferred_dtd] => html4
[viewport_supported] => true
[viewport_width] => device_width_token
[viewport_userscalable] => no
[viewport_initial_scale] =>
[viewport_maximum_scale] =>
[viewport_minimum_scale] =>
[mobileoptimized] => false
[handheldfriendly] => false
[canvas_support] => full
[image_inlining] => true
[is_smarttv] => false
[is_console] => false
[nfc_support] => false
[ux_full_desktop] => false
[jqm_grade] => A
[is_sencha_touch_ok] => false
[controlcap_is_smartphone] => default
[controlcap_is_ios] => default
[controlcap_is_android] => default
[controlcap_is_robot] => default
[controlcap_is_app] => default
[controlcap_advertised_device_os] => default
[controlcap_advertised_device_os_version] => default
[controlcap_advertised_browser] => default
[controlcap_advertised_browser_version] => default
[controlcap_is_windows_phone] => default
[controlcap_is_full_desktop] => default
[controlcap_is_largescreen] => default
[controlcap_is_mobile] => default
[controlcap_is_touchscreen] => default
[controlcap_is_wml_preferred] => default
[controlcap_is_xhtmlmp_preferred] => default
[controlcap_is_html_preferred] => default
[controlcap_form_factor] => default
[controlcap_complete_device_name] => default
)
)
</code></pre></p>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat ">close</a>
</div>
</div>
</td></tr></table>
</div>
<div class="section">
<h1 class="header center orange-text">About this comparison</h1>
<div class="row center">
<h5 class="header light">
The primary goal of this project is simple<br />
I wanted to know which user agent parser is the most accurate in each part - device detection, bot detection and so on...<br />
<br />
The secondary goal is to provide a source for all user agent parsers to improve their detection based on this results.<br />
<br />
You can also improve this further, by suggesting ideas at <a href="https://github.com/ThaDafinser/UserAgentParserComparison">ThaDafinser/UserAgentParserComparison</a><br />
<br />
The comparison is based on the abstraction by <a href="https://github.com/ThaDafinser/UserAgentParser">ThaDafinser/UserAgentParser</a>
</h5>
</div>
</div>
<div class="card">
<div class="card-content">
Comparison created <i>2016-02-13 13:29:46</i> | by
<a href="https://github.com/ThaDafinser">ThaDafinser</a>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/list.js/1.1.1/list.min.js"></script>
<script>
$(document).ready(function(){
// the "href" attribute of .modal-trigger must specify the modal ID that wants to be triggered
$('.modal-trigger').leanModal();
});
</script>
</body>
</html> | {
"content_hash": "5ddf24d8a6335bf3fa2fe66e1ee0ddcf",
"timestamp": "",
"source": "github",
"line_count": 1123,
"max_line_length": 750,
"avg_line_length": 41.3793410507569,
"alnum_prop": 0.5382943467688136,
"repo_name": "ThaDafinser/UserAgentParserComparison",
"id": "7dec9f9f82a7ef2422cd85409c57034d12c6153e",
"size": "46470",
"binary": false,
"copies": "1",
"ref": "refs/heads/gh-pages",
"path": "v4/user-agent-detail/40/75/4075bded-33c0-4a8e-b176-637a0d591b9a.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "2060859160"
}
],
"symlink_target": ""
} |
redirect_from:
- /docker-trusted-registry/architecture/
description: Learn about the architecture of Docker Trusted Registry.
keywords:
- docker, registry, dtr, architecture
title: DTR architecture
---
Docker Trusted Registry (DTR) is a Dockerized application that runs on a Docker
Universal Control Plane cluster.

## Containers
When you install DTR on a node, the following containers are started:
| Name | Description |
|:---------------------------------|:----------------------------------------------------------------------------------------------------------------------------------|
| dtr-nginx-<replica_id> | Receives http and https requests and proxies them to other DTR components. By default it listens to ports 80 and 443 of the host. |
| dtr-api-<replica_id> | Executes the DTR business logic. It serves the DTR web application, and API. |
| dtr-registry-<replica_id> | Implements the functionality for pulling and pushing Docker images. It also handles how images are stored. |
| dtr-etcd-<replica_id> | A key-value store for persisting DTR configuration settings. Don't use it in your applications, since it's for internal use only. |
| dtr-rethinkdb-<replica_id> | A database for persisting repository metadata. Don't use it in your applications, since it's for internal use only. |
## Networks
To allow containers to communicate, when installing DTR the following networks
are created:
| Name | Type | Description |
|:-------|:--------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| dtr-br | bridge | Allows containers on the same node to communicate with each other in a secure way. |
| dtr-ol | overlay | Allows containers running on different nodes to communicate. This network is used in high-availability installations, to allow Etcd and RethinkDB containers to replicate their data. |
The communication between all DTR components is secured using TLS. Also, when
installing DTR, two Certificate Authorities (CAs) are created. These CAs are
used to create the certificates used by Etcd and RethinkDB when communicating
across nodes.
## Volumes
DTR uses these named volumes for persisting data:
| Volume name | Location on host (/var/lib/docker/volumes/) | Description |
|:--------------------------------|:--------------------------------------------|:-------------------------------------------------------------------------------------------------------------|
| dtr-ca-<replica_id> | dtr-ca/_data | The volume where the private keys and certificates are stored so that containers can use TLS to communicate. |
| dtr-etcd-<replica_id> | dtr-etcd/_data | The volume used by etcd to persist DTR configurations. |
| dtr-registry-<replica_id> | dtr-registry/_data | The volume where images are stored, if DTR is configured to store images on the local filesystem. |
| dtr-rethink-<replica_id> | dtr-rethink/_data | The volume used by RethinkDB to persist DTR data, like users and repositories. |
If you don’t create these volumes, when installing DTR they are created with
the default volume driver and flags.
## Image storage
By default, Docker Trusted Registry stores images on the filesystem of the host
where it is running.
You can also configure DTR to using these cloud storage backends:
* Amazon S3
* OpenStack Swift
* Microsoft Azure
For highly available installations, configure DTR to use a cloud storage
backend or a network filesystem like NFS.
## High-availability support
For load balancing and high-availability, you can install multiple replicas of
DTR, and join them to create a cluster.
[Learn more about high availability](high-availability/index.md).
## Where to go next
* [System requirements](install/system-requirements.md)
* [Install DTR](install/index.md)
| {
"content_hash": "56019613b9b58a98ec5e1543c68f721c",
"timestamp": "",
"source": "github",
"line_count": 81,
"max_line_length": 204,
"avg_line_length": 59.41975308641975,
"alnum_prop": 0.5414502389362145,
"repo_name": "rillig/docker.github.io",
"id": "19a00b1db9a50a5c0282c8477c75b12fddf4fb0c",
"size": "4819",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "datacenter/dtr/2.0/architecture.md",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "514107"
},
{
"name": "HTML",
"bytes": "1317319"
},
{
"name": "JavaScript",
"bytes": "9975024"
},
{
"name": "Makefile",
"bytes": "3441"
},
{
"name": "Ruby",
"bytes": "4702"
},
{
"name": "Shell",
"bytes": "6534"
}
],
"symlink_target": ""
} |
@implementation SKProductSubscriptionPeriodStub
- (instancetype)initWithMap:(NSDictionary *)map {
self = [super init];
if (self) {
[self setValue:map[@"numberOfUnits"] ?: @(0) forKey:@"numberOfUnits"];
[self setValue:map[@"unit"] ?: @(0) forKey:@"unit"];
}
return self;
}
@end
@implementation SKProductDiscountStub
- (instancetype)initWithMap:(NSDictionary *)map {
self = [super init];
if (self) {
[self setValue:[[NSDecimalNumber alloc] initWithString:map[@"price"]] ?: [NSNull null]
forKey:@"price"];
NSLocale *locale = NSLocale.systemLocale;
[self setValue:locale ?: [NSNull null] forKey:@"priceLocale"];
[self setValue:map[@"numberOfPeriods"] ?: @(0) forKey:@"numberOfPeriods"];
SKProductSubscriptionPeriodStub *subscriptionPeriodSub =
[[SKProductSubscriptionPeriodStub alloc] initWithMap:map[@"subscriptionPeriod"]];
[self setValue:subscriptionPeriodSub forKey:@"subscriptionPeriod"];
[self setValue:map[@"paymentMode"] ?: @(0) forKey:@"paymentMode"];
if (@available(iOS 12.2, *)) {
[self setValue:map[@"identifier"] ?: [NSNull null] forKey:@"identifier"];
[self setValue:map[@"type"] ?: @(0) forKey:@"type"];
}
}
return self;
}
@end
@implementation SKProductStub
- (instancetype)initWithMap:(NSDictionary *)map {
self = [super init];
if (self) {
[self setValue:map[@"productIdentifier"] ?: [NSNull null] forKey:@"productIdentifier"];
[self setValue:map[@"localizedDescription"] ?: [NSNull null] forKey:@"localizedDescription"];
[self setValue:map[@"localizedTitle"] ?: [NSNull null] forKey:@"localizedTitle"];
[self setValue:map[@"downloadable"] ?: @NO forKey:@"downloadable"];
[self setValue:[[NSDecimalNumber alloc] initWithString:map[@"price"]] ?: [NSNull null]
forKey:@"price"];
NSLocale *locale = NSLocale.systemLocale;
[self setValue:locale ?: [NSNull null] forKey:@"priceLocale"];
[self setValue:map[@"downloadContentLengths"] ?: @(0) forKey:@"downloadContentLengths"];
if (@available(iOS 11.2, *)) {
SKProductSubscriptionPeriodStub *period =
[[SKProductSubscriptionPeriodStub alloc] initWithMap:map[@"subscriptionPeriod"]];
[self setValue:period ?: [NSNull null] forKey:@"subscriptionPeriod"];
SKProductDiscountStub *discount =
[[SKProductDiscountStub alloc] initWithMap:map[@"introductoryPrice"]];
[self setValue:discount ?: [NSNull null] forKey:@"introductoryPrice"];
[self setValue:map[@"subscriptionGroupIdentifier"] ?: [NSNull null]
forKey:@"subscriptionGroupIdentifier"];
}
if (@available(iOS 12.2, *)) {
NSMutableArray *discounts = [[NSMutableArray alloc] init];
for (NSDictionary *discountMap in map[@"discounts"]) {
[discounts addObject:[[SKProductDiscountStub alloc] initWithMap:discountMap]];
}
[self setValue:discounts forKey:@"discounts"];
}
}
return self;
}
- (instancetype)initWithProductID:(NSString *)productIdentifier {
self = [super init];
if (self) {
[self setValue:productIdentifier forKey:@"productIdentifier"];
}
return self;
}
@end
@interface SKProductRequestStub ()
@property(strong, nonatomic) NSSet *identifers;
@property(strong, nonatomic) NSError *error;
@end
@implementation SKProductRequestStub
- (instancetype)initWithProductIdentifiers:(NSSet<NSString *> *)productIdentifiers {
self = [super initWithProductIdentifiers:productIdentifiers];
self.identifers = productIdentifiers;
return self;
}
- (instancetype)initWithFailureError:(NSError *)error {
self = [super init];
self.error = error;
return self;
}
- (void)start {
NSMutableArray *productArray = [NSMutableArray new];
for (NSString *identifier in self.identifers) {
[productArray addObject:@{@"productIdentifier" : identifier}];
}
SKProductsResponseStub *response =
[[SKProductsResponseStub alloc] initWithMap:@{@"products" : productArray}];
if (self.error) {
[self.delegate request:self didFailWithError:self.error];
} else {
[self.delegate productsRequest:self didReceiveResponse:response];
}
}
@end
@implementation SKProductsResponseStub
- (instancetype)initWithMap:(NSDictionary *)map {
self = [super init];
if (self) {
NSMutableArray *products = [NSMutableArray new];
for (NSDictionary *productMap in map[@"products"]) {
SKProductStub *product = [[SKProductStub alloc] initWithMap:productMap];
[products addObject:product];
}
[self setValue:products forKey:@"products"];
}
return self;
}
@end
@interface InAppPurchasePluginStub ()
@end
@implementation InAppPurchasePluginStub
- (SKProductRequestStub *)getProductRequestWithIdentifiers:(NSSet *)identifiers {
return [[SKProductRequestStub alloc] initWithProductIdentifiers:identifiers];
}
- (SKProduct *)getProduct:(NSString *)productID {
return [[SKProductStub alloc] initWithProductID:productID];
}
- (SKReceiptRefreshRequestStub *)getRefreshReceiptRequest:(NSDictionary *)properties {
return [[SKReceiptRefreshRequestStub alloc] initWithReceiptProperties:properties];
}
@end
@interface SKPaymentQueueStub ()
@end
@implementation SKPaymentQueueStub
- (void)addTransactionObserver:(id<SKPaymentTransactionObserver>)observer {
self.observer = observer;
}
- (void)removeTransactionObserver:(id<SKPaymentTransactionObserver>)observer {
self.observer = nil;
}
- (void)addPayment:(SKPayment *)payment {
SKPaymentTransactionStub *transaction =
[[SKPaymentTransactionStub alloc] initWithState:self.testState payment:payment];
[self.observer paymentQueue:self updatedTransactions:@[ transaction ]];
}
- (void)restoreCompletedTransactions {
if ([self.observer
respondsToSelector:@selector(paymentQueueRestoreCompletedTransactionsFinished:)]) {
[self.observer paymentQueueRestoreCompletedTransactionsFinished:self];
}
}
- (void)finishTransaction:(SKPaymentTransaction *)transaction {
if ([self.observer respondsToSelector:@selector(paymentQueue:removedTransactions:)]) {
[self.observer paymentQueue:self removedTransactions:@[ transaction ]];
}
}
@end
@implementation SKPaymentTransactionStub {
SKPayment *_payment;
}
- (instancetype)initWithID:(NSString *)identifier {
self = [super init];
if (self) {
[self setValue:identifier forKey:@"transactionIdentifier"];
}
return self;
}
- (instancetype)initWithMap:(NSDictionary *)map {
self = [super init];
if (self) {
[self setValue:map[@"transactionIdentifier"] forKey:@"transactionIdentifier"];
[self setValue:map[@"transactionState"] forKey:@"transactionState"];
if (![map[@"originalTransaction"] isKindOfClass:[NSNull class]] &&
map[@"originalTransaction"]) {
[self setValue:[[SKPaymentTransactionStub alloc] initWithMap:map[@"originalTransaction"]]
forKey:@"originalTransaction"];
}
[self setValue:map[@"error"] ? [[NSErrorStub alloc] initWithMap:map[@"error"]] : [NSNull null]
forKey:@"error"];
[self setValue:[NSDate dateWithTimeIntervalSince1970:[map[@"transactionTimeStamp"] doubleValue]]
forKey:@"transactionDate"];
}
return self;
}
- (instancetype)initWithState:(SKPaymentTransactionState)state {
self = [super init];
if (self) {
// Only purchased and restored transactions have transactionIdentifier:
// https://developer.apple.com/documentation/storekit/skpaymenttransaction/1411288-transactionidentifier?language=objc
if (state == SKPaymentTransactionStatePurchased || state == SKPaymentTransactionStateRestored) {
[self setValue:@"fakeID" forKey:@"transactionIdentifier"];
}
[self setValue:@(state) forKey:@"transactionState"];
}
return self;
}
- (instancetype)initWithState:(SKPaymentTransactionState)state payment:(SKPayment *)payment {
self = [super init];
if (self) {
// Only purchased and restored transactions have transactionIdentifier:
// https://developer.apple.com/documentation/storekit/skpaymenttransaction/1411288-transactionidentifier?language=objc
if (state == SKPaymentTransactionStatePurchased || state == SKPaymentTransactionStateRestored) {
[self setValue:@"fakeID" forKey:@"transactionIdentifier"];
}
[self setValue:@(state) forKey:@"transactionState"];
_payment = payment;
}
return self;
}
- (SKPayment *)payment {
return _payment;
}
@end
@implementation NSErrorStub
- (instancetype)initWithMap:(NSDictionary *)map {
return [self initWithDomain:[map objectForKey:@"domain"]
code:[[map objectForKey:@"code"] integerValue]
userInfo:[map objectForKey:@"userInfo"]];
}
@end
@implementation FIAPReceiptManagerStub : FIAPReceiptManager
- (NSData *)getReceiptData:(NSURL *)url error:(NSError **)error {
if (self.returnError) {
*error = [NSError errorWithDomain:@"test"
code:1
userInfo:@{
@"name" : @"test",
@"houseNr" : @5,
@"error" : [[NSError alloc] initWithDomain:@"internalTestDomain"
code:99
userInfo:nil]
}];
return nil;
}
NSString *originalString = [NSString stringWithFormat:@"test"];
return [[NSData alloc] initWithBase64EncodedString:originalString options:kNilOptions];
}
@end
@implementation SKReceiptRefreshRequestStub {
NSError *_error;
}
- (instancetype)initWithReceiptProperties:(NSDictionary<NSString *, id> *)properties {
self = [super initWithReceiptProperties:properties];
return self;
}
- (instancetype)initWithFailureError:(NSError *)error {
self = [super init];
_error = error;
return self;
}
- (void)start {
if (_error) {
[self.delegate request:self didFailWithError:_error];
} else {
[self.delegate requestDidFinish:self];
}
}
@end
@implementation SKStorefrontStub
- (instancetype)initWithMap:(NSDictionary *)map {
self = [super init];
if (self) {
// Set stub values
[self setValue:map[@"countryCode"] forKey:@"countryCode"];
[self setValue:map[@"identifier"] forKey:@"identifier"];
}
return self;
}
@end
| {
"content_hash": "f1a3ec76aa1fb4931553faeeaffa8f7c",
"timestamp": "",
"source": "github",
"line_count": 324,
"max_line_length": 122,
"avg_line_length": 31.80246913580247,
"alnum_prop": 0.687305900621118,
"repo_name": "flutter/plugins",
"id": "f5e44d78b157aa47d0d76e253848a14db25b447a",
"size": "10488",
"binary": false,
"copies": "2",
"ref": "refs/heads/main",
"path": "packages/in_app_purchase/in_app_purchase_storekit/example/ios/RunnerTests/Stubs.m",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "C",
"bytes": "21519"
},
{
"name": "C++",
"bytes": "644723"
},
{
"name": "CMake",
"bytes": "176997"
},
{
"name": "CSS",
"bytes": "69"
},
{
"name": "Dart",
"bytes": "6729008"
},
{
"name": "Dockerfile",
"bytes": "2110"
},
{
"name": "HTML",
"bytes": "15009"
},
{
"name": "Java",
"bytes": "1489377"
},
{
"name": "Objective-C",
"bytes": "1130773"
},
{
"name": "Ruby",
"bytes": "67202"
},
{
"name": "Shell",
"bytes": "12808"
},
{
"name": "Swift",
"bytes": "66358"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Overview — Miruken.Mediate documentation</title>
<link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../../_static/banner.css" type="text/css" />
<link rel="index" title="Index"
href="../../genindex.html"/>
<link rel="search" title="Search" href="../../search.html"/>
<link rel="top" title="Miruken.Mediate documentation" href="../../index.html"/>
<link rel="next" title="Request And Response" href="requestAndResponse.html"/>
<link rel="prev" title="Miruken.Mediate" href="../../index.html"/>
<script src="../../_static/js/modernizr.min.js"></script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search">
<a href="../../index.html" class="icon icon-home"> Miruken.Mediate
</a>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<p class="caption"><span class="caption-text">Table of Contents</span></p>
<ul class="current">
<li class="toctree-l1 current"><a class="current reference internal" href="#">Overview</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#source-code">Source Code</a></li>
<li class="toctree-l2"><a class="reference internal" href="#installation">Installation</a></li>
<li class="toctree-l2"><a class="reference internal" href="#mediator-pattern">Mediator Pattern</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="requestAndResponse.html">Request And Response</a></li>
<li class="toctree-l1"><a class="reference internal" href="handler.html">Handler</a></li>
<li class="toctree-l1"><a class="reference internal" href="send.html">Send</a></li>
<li class="toctree-l1"><a class="reference internal" href="publish.html">Publish</a></li>
<li class="toctree-l1"><a class="reference internal" href="pipeline.html">Pipeline</a></li>
<li class="toctree-l1"><a class="reference internal" href="validation.html">Validation</a></li>
<li class="toctree-l1"><a class="reference internal" href="outline.html">Outline</a><ul>
<li class="toctree-l2"><a class="reference internal" href="outline.html#imiddleware">IMiddleWare</a><ul>
<li class="toctree-l3"><a class="reference internal" href="outline.html#logging">Logging</a></li>
<li class="toctree-l3"><a class="reference internal" href="outline.html#validation">Validation</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="outline.html#decorators">Decorators</a><ul>
<li class="toctree-l3"><a class="reference internal" href="outline.html#cached">Cached</a></li>
<li class="toctree-l3"><a class="reference internal" href="outline.html#oneway">OneWay</a></li>
<li class="toctree-l3"><a class="reference internal" href="outline.html#route">Route</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="configuringCastleWindsor.html">Configuring Castle Windsor</a><ul>
<li class="toctree-l2"><a class="reference internal" href="configuringCastleWindsor.html#installing-mediator">Installing Mediator</a></li>
<li class="toctree-l2"><a class="reference internal" href="configuringCastleWindsor.html#installing-validation-middleware">Installing Validation Middleware</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="inspiration.html">Inspiration</a></li>
</ul>
</div>
</div>
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../../index.html">Miruken.Mediate</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="../../index.html">Docs</a> »</li>
<li>Overview</li>
<li class="wy-breadcrumbs-aside">
<a href="../../_sources/article/en-US/overview.rst.txt" rel="nofollow"> View page source</a>
</li>
</ul>
<div class="rst-breadcrumbs-buttons" role="navigation" aria-label="breadcrumb navigation">
<a href="requestAndResponse.html" class="btn btn-neutral float-right" title="Request And Response" accesskey="n">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="../../index.html" class="btn btn-neutral" title="Miruken.Mediate" accesskey="p"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">
<div class="section" id="overview">
<h1>Overview<a class="headerlink" href="#overview" title="Permalink to this headline">¶</a></h1>
<div class="section" id="source-code">
<h2>Source Code<a class="headerlink" href="#source-code" title="Permalink to this headline">¶</a></h2>
<p><a class="reference external" href="https://www.github.com/miruken-dotnet/Miruken.Mediate">github.com/miruken-dotnet/Miruken.Mediate</a></p>
</div>
<div class="section" id="installation">
<h2>Installation<a class="headerlink" href="#installation" title="Permalink to this headline">¶</a></h2>
<p>Install into your project using Nuget:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">Install</span><span class="o">-</span><span class="n">Package</span> <span class="n">Miruken</span><span class="o">.</span><span class="n">Mediate</span>
</pre></div>
</div>
</div>
<div class="section" id="mediator-pattern">
<h2>Mediator Pattern<a class="headerlink" href="#mediator-pattern" title="Permalink to this headline">¶</a></h2>
<p>The mediator pattern allows us to implement cross cutting concerns like error handling, logging, validation, and caching in a pipline that is portable between applications. Asp.net has a pipeline, but it is tied to the web. NServiceBus gives us a message handling pipeline, but that is tied specifically to NserviceBus. WCF also has a pipeline you can use, but it is only in WCF. Using Miruken Mediator you have the power of a pipeline that runs in any C# application. This means you can use the same pipeline in Asp.net web apps and web apis, windows services, console applications, WinForms and Wpf applications, WCF, NServicebus, and more.</p>
</div>
</div>
</div>
<div class="articleComments">
</div>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="requestAndResponse.html" class="btn btn-neutral float-right" title="Request And Response" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="../../index.html" class="btn btn-neutral" title="Miruken.Mediate" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>
<hr/>
<div role="contentinfo">
<p>
© Copyright 2017-2018, Miruken.
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
<span class="rst-current-version" data-toggle="rst-current-version">
<span class="fa fa-book"> Other Versions</span>
v: 2.0.22
<span class="fa fa-caret-down"></span>
</span>
<div class="rst-other-versions">
<dl>
<dt>Tags</dt>
<dd><a href="../../../1.6.3/article/en-US/overview.html">1.6.3</a></dd>
<dd><a href="../../../1.6.4/article/en-US/overview.html">1.6.4</a></dd>
<dd><a href="../../../1.6.5/article/en-US/overview.html">1.6.5</a></dd>
<dd><a href="../../../2.0.0/article/en-US/overview.html">2.0.0</a></dd>
<dd><a href="../../../2.0.1/article/en-US/overview.html">2.0.1</a></dd>
<dd><a href="../../../2.0.10/article/en-US/overview.html">2.0.10</a></dd>
<dd><a href="../../../2.0.11/article/en-US/overview.html">2.0.11</a></dd>
<dd><a href="../../../2.0.12/article/en-US/overview.html">2.0.12</a></dd>
<dd><a href="../../../2.0.13/article/en-US/overview.html">2.0.13</a></dd>
<dd><a href="../../../2.0.14/article/en-US/overview.html">2.0.14</a></dd>
<dd><a href="../../../2.0.15/article/en-US/overview.html">2.0.15</a></dd>
<dd><a href="../../../2.0.16/article/en-US/overview.html">2.0.16</a></dd>
<dd><a href="../../../2.0.17/article/en-US/overview.html">2.0.17</a></dd>
<dd><a href="../../../2.0.18/article/en-US/overview.html">2.0.18</a></dd>
<dd><a href="../../../2.0.19/article/en-US/overview.html">2.0.19</a></dd>
<dd><a href="../../../2.0.2/article/en-US/overview.html">2.0.2</a></dd>
<dd><a href="../../../2.0.20/article/en-US/overview.html">2.0.20</a></dd>
<dd><a href="../../../2.0.21/article/en-US/overview.html">2.0.21</a></dd>
<dd><a href="overview.html">2.0.22</a></dd>
<dd><a href="../../../2.0.23/article/en-US/overview.html">2.0.23</a></dd>
<dd><a href="../../../2.0.24/article/en-US/overview.html">2.0.24</a></dd>
<dd><a href="../../../2.0.3/article/en-US/overview.html">2.0.3</a></dd>
<dd><a href="../../../2.0.4/article/en-US/overview.html">2.0.4</a></dd>
<dd><a href="../../../2.0.5/article/en-US/overview.html">2.0.5</a></dd>
<dd><a href="../../../2.0.6/article/en-US/overview.html">2.0.6</a></dd>
<dd><a href="../../../2.0.7/article/en-US/overview.html">2.0.7</a></dd>
<dd><a href="../../../2.0.8/article/en-US/overview.html">2.0.8</a></dd>
<dd><a href="../../../2.0.9/article/en-US/overview.html">2.0.9</a></dd>
</dl>
<dl>
<dt>Branches</dt>
<dd><a href="../../../develop/article/en-US/overview.html">develop</a></dd>
<dd><a href="../../../master/article/en-US/overview.html">master</a></dd>
</dl>
</div>
</div>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'../../',
VERSION:'',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt'
};
</script>
<script type="text/javascript" src="../../_static/jquery.js"></script>
<script type="text/javascript" src="../../_static/underscore.js"></script>
<script type="text/javascript" src="../../_static/doctools.js"></script>
<script type="text/javascript" src="../../_static/js/theme.js"></script>
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.StickyNav.enable();
});
</script>
</body>
</html> | {
"content_hash": "dbfc1363f78152b346f7c2e0d6bd82ff",
"timestamp": "",
"source": "github",
"line_count": 331,
"max_line_length": 653,
"avg_line_length": 37.44108761329305,
"alnum_prop": 0.5856531913176793,
"repo_name": "miruken/miruken.github.io",
"id": "fe172ada7ba46a032f6552d3c3e83220a0b5437c",
"size": "12399",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "documentation/versions/miruken-dotnet/Miruken.Mediate/2.0.22/article/en-US/overview.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "1122412"
},
{
"name": "HTML",
"bytes": "66919"
},
{
"name": "JavaScript",
"bytes": "3125766"
}
],
"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"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Raytracer: Member List</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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></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="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Raytracer
 <span id="projectnumber">1.0.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_ray_cast.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</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">RayCast Member List</div> </div>
</div><!--header-->
<div class="contents">
<p>This is the complete list of members for <a class="el" href="class_ray_cast.html">RayCast</a>, including all inherited members.</p>
<table class="directory">
<tr class="even"><td class="entry"><a class="el" href="class_tracer.html#a0fc389376b5ab36e08fd8e1f6ea16450">m_WorldPtr</a></td><td class="entry"><a class="el" href="class_tracer.html">Tracer</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
<tr><td class="entry"><a class="el" href="class_ray_cast.html#adedb760a41eeb39a1ca797801727ae67">RayCast</a>(std::shared_ptr< World > world_ptr)</td><td class="entry"><a class="el" href="class_ray_cast.html">RayCast</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_tracer.html#a0db4955b57c72acfcbb4144f539c5744">Tracer</a>(std::shared_ptr< World > world_ptr)</td><td class="entry"><a class="el" href="class_tracer.html">Tracer</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="class_ray_cast.html#aed24a822899e5328a7e668a479d3be9e">TraceRay</a>(const Ray &ray) const</td><td class="entry"><a class="el" href="class_ray_cast.html">RayCast</a></td><td class="entry"><span class="mlabel">virtual</span></td></tr>
</table></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
</ul>
</div>
</body>
</html>
| {
"content_hash": "9ca0bdb496a1e78ffe14a71fcab0aade",
"timestamp": "",
"source": "github",
"line_count": 105,
"max_line_length": 280,
"avg_line_length": 44.80952380952381,
"alnum_prop": 0.6765143464399574,
"repo_name": "jensmcatanho/raytracer",
"id": "0fc00c6c9555843d314fcf4ad755f0a8fd5ee897",
"size": "4705",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "docs/html/class_ray_cast-members.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "214098"
},
{
"name": "C++",
"bytes": "1990761"
},
{
"name": "CMake",
"bytes": "2703"
},
{
"name": "Lua",
"bytes": "9715"
},
{
"name": "Objective-C",
"bytes": "39969"
}
],
"symlink_target": ""
} |
wmtexe.cmd.run module
=====================
.. automodule:: wmtexe.cmd.run
:members:
:undoc-members:
:show-inheritance:
| {
"content_hash": "35d00b30b9cf01742262de8aa9b51a7a",
"timestamp": "",
"source": "github",
"line_count": 7,
"max_line_length": 30,
"avg_line_length": 19,
"alnum_prop": 0.556390977443609,
"repo_name": "csdms/wmt-exe",
"id": "a17a8a93538a8830fd2617e428ad6fd3c6d0deaa",
"size": "133",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "docs/wmtexe.cmd.run.rst",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C",
"bytes": "39339"
},
{
"name": "C++",
"bytes": "33030"
},
{
"name": "Makefile",
"bytes": "138"
},
{
"name": "Python",
"bytes": "148655"
},
{
"name": "Shell",
"bytes": "2640"
}
],
"symlink_target": ""
} |
from pyface.qt import QtGui
# Enthought library imports.
from traits.api import Bool, provides, Unicode
# Local imports.
from pyface.i_directory_dialog import IDirectoryDialog, MDirectoryDialog
from dialog import Dialog
@provides(IDirectoryDialog)
class DirectoryDialog(MDirectoryDialog, Dialog):
""" The toolkit specific implementation of a DirectoryDialog. See the
IDirectoryDialog interface for the API documentation.
"""
#### 'IDirectoryDialog' interface #########################################
default_path = Unicode
message = Unicode
new_directory = Bool(True)
path = Unicode
###########################################################################
# Protected 'IDialog' interface.
###########################################################################
def _create_contents(self, parent):
# In PyQt this is a canned dialog.
pass
###########################################################################
# 'IWindow' interface.
###########################################################################
def close(self):
# Get the path of the chosen directory.
files = self.control.selectedFiles()
if files:
self.path = unicode(files[0])
else:
self.path = ''
# Let the window close as normal.
super(DirectoryDialog, self).close()
###########################################################################
# Protected 'IWidget' interface.
###########################################################################
def _create_control(self, parent):
dlg = QtGui.QFileDialog(parent, self.title, self.default_path)
dlg.setViewMode(QtGui.QFileDialog.Detail)
dlg.setFileMode(QtGui.QFileDialog.DirectoryOnly)
if not self.new_directory:
dlg.setReadOnly(True)
if self.message:
dlg.setLabelText(QtGui.QFileDialog.LookIn, self.message)
return dlg
#### EOF ######################################################################
| {
"content_hash": "ff5b36eb0296eea8aa9c4fb3aea10bf4",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 79,
"avg_line_length": 29.97142857142857,
"alnum_prop": 0.47283126787416585,
"repo_name": "brett-patterson/pyface",
"id": "4c6336275ab7422ea0ab7333aaf62f858cd3b6dd",
"size": "2652",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "pyface/ui/qt4/directory_dialog.py",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Batchfile",
"bytes": "648"
},
{
"name": "Python",
"bytes": "2371056"
}
],
"symlink_target": ""
} |
#import "ALPValidatorRule.h"
typedef BOOL (^ALPValidatorCustomRuleBlock)(id);
@interface ALPValidatorCustomRule : ALPValidatorRule
@property (copy, nonatomic, readonly) ALPValidatorCustomRuleBlock block;
- (id)initWithType:(ALPValidatorRuleType)type block:(ALPValidatorCustomRuleBlock)validatorBlock invalidMessage:(NSString *)message;
@end
| {
"content_hash": "55ae118eb2e21fe6bced89d40982952b",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 131,
"avg_line_length": 26.76923076923077,
"alnum_prop": 0.8247126436781609,
"repo_name": "orta/ALPValidator",
"id": "2cd4d89b948cf42b74e0e63198382d976ebe8a2c",
"size": "1521",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "ALPValidator/ALPValidatorCustomRule.h",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Objective-C",
"bytes": "107407"
},
{
"name": "Ruby",
"bytes": "2059"
}
],
"symlink_target": ""
} |
This document provides answers to some of the frequently asked questions about
TensorFlow. If you have a question that is not covered here, you might find an
answer on one of the TensorFlow [community resources](../resources/index.md).
[TOC]
## Building a TensorFlow graph
See also the
[API documentation on building graphs](../api_docs/python/framework.md).
#### Why does `c = tf.matmul(a, b)` not execute the matrix multiplication immediately?
In the TensorFlow Python API, `a`, `b`, and `c` are
[`Tensor`](../api_docs/python/framework.md#Tensor) objects. A `Tensor` object is
a symbolic handle to the result of an operation, but does not actually hold the
values of the operation's output. Instead, TensorFlow encourages users to build
up complicated expressions (such as entire neural networks and its gradients) as
a dataflow graph. You then offload the computation of the entire dataflow graph
(or a subgraph of it) to a TensorFlow
[`Session`](../api_docs/python/client.md#Session), which is able to execute the
whole computation much more efficiently than executing the operations
one-by-one.
#### How are devices named?
The supported device names are `"/device:CPU:0"` (or `"/cpu:0"`) for the CPU
device, and `"/device:GPU:i"` (or `"/gpu:i"`) for the *i*th GPU device.
#### How do I place operations on a particular device?
To place a group of operations on a device, create them within a
[`with tf.device(name):`](../api_docs/python/framework.md#device) context. See
the how-to documentation on
[using GPUs with TensorFlow](../how_tos/using_gpu/index.md) for details of how
TensorFlow assigns operations to devices, and the
[CIFAR-10 tutorial](../tutorials/deep_cnn/index.md) for an example model that
uses multiple GPUs.
#### What are the different types of tensors that are available?
TensorFlow supports a variety of different data types and tensor shapes. See the
[ranks, shapes, and types reference](../resources/dims_types.md) for more details.
## Running a TensorFlow computation
See also the
[API documentation on running graphs](../api_docs/python/client.md).
#### What's the deal with feeding and placeholders?
Feeding is a mechanism in the TensorFlow Session API that allows you to
substitute different values for one or more tensors at run time. The `feed_dict`
argument to [`Session.run()`](../api_docs/python/client.md#Session.run) is a
dictionary that maps [`Tensor`](../api_docs/python/framework.md) objects to
numpy arrays (and some other types), which will be used as the values of those
tensors in the execution of a step.
Often, you have certain tensors, such as inputs, that will always be fed. The
[`tf.placeholder()`](../api_docs/python/io_ops.md#placeholder) op allows you
to define tensors that *must* be fed, and optionally allows you to constrain
their shape as well. See the
[beginners' MNIST tutorial](../tutorials/mnist/beginners/index.md) for an
example of how placeholders and feeding can be used to provide the training data
for a neural network.
#### What is the difference between `Session.run()` and `Tensor.eval()`?
If `t` is a [`Tensor`](../api_docs/python/framework.md#Tensor) object,
[`t.eval()`](../api_docs/python/framework.md#Tensor.eval) is shorthand for
[`sess.run(t)`](../api_docs/python/client.md#Session.run) (where `sess` is the
current [default session](../api_docs/python/client.md#get_default_session). The
two following snippets of code are equivalent:
```python
# Using `Session.run()`.
sess = tf.Session()
c = tf.constant(5.0)
print sess.run(c)
# Using `Tensor.eval()`.
c = tf.constant(5.0)
with tf.Session():
print c.eval()
```
In the second example, the session acts as a
[context manager](https://docs.python.org/2.7/reference/compound_stmts.html#with),
which has the effect of installing it as the default session for the lifetime of
the `with` block. The context manager approach can lead to more concise code for
simple use cases (like unit tests); if your code deals with multiple graphs and
sessions, it may be more straightforward to explicit calls to `Session.run()`.
#### Do Sessions have a lifetime? What about intermediate tensors?
Sessions can own resources, such
[variables](../api_docs/python/state_ops.md#Variable),
[queues](../api_docs/python/io_ops.md#QueueBase), and
[readers](../api_docs/python/io_ops.md#ReaderBase); and these resources can use
a significant amount of memory. These resources (and the associated memory) are
released when the session is closed, by calling
[`Session.close()`](../api_docs/python/client.md#Session.close).
The intermediate tensors that are created as part of a call to
[`Session.run()`](../api_docs/python/client.md) will be freed at or before the
end of the call.
#### Can I run distributed training on multiple computers?
The initial open-source release of TensorFlow supports multiple devices (CPUs
and GPUs) in a single computer. We are working on a distributed version as well:
if you are interested, please let us know so we can prioritize accordingly.
#### Does the runtime parallelize parts of graph execution?
The TensorFlow runtime parallelizes graph execution across many different
dimensions:
* The individual ops have parallel implementations, using multiple cores in a
CPU, or multiple threads in a GPU.
* Independent nodes in a TensorFlow graph can run in parallel on multiple
devices, which makes it possible to speed up
[CIFAR-10 training using multiple GPUs](../tutorials/deep_cnn/index.md).
* The Session API allows multiple concurrent steps (i.e. calls to
[Session.run()](../api_docs/python/client.md#Session.run) in parallel. This
enables the runtime to get higher throughput, if a single step does not use
all of the resources in your computer.
#### Which client languages are supported in TensorFlow?
TensorFlow is designed to support multiple client languages. Currently, the
best-supported client language is [Python](../api_docs/python/index.md). The
[C++ client API](../api_docs/cc/index.md) provides an interface for launching
graphs and running steps; we also have an experimental API for
[building graphs in C++](https://tensorflow.googlesource.com/tensorflow/+/master/tensorflow/cc/tutorials/example_trainer.cc).
We would like to support more client languages, as determined by community
interest. TensorFlow has a
[C-based client API](https://tensorflow.googlesource.com/tensorflow/+/master/tensorflow/core/public/tensor_c_api.h)
that makes it easy to build a client in many different languages. We invite
contributions of new language bindings.
#### Does TensorFlow make use of all the devices (GPUs and CPUs) available on my machine?
TensorFlow supports multiple GPUs and CPUs. See the how-to documentation on
[using GPUs with TensorFlow](../how_tos/using_gpu/index.md) for details of how
TensorFlow assigns operations to devices, and the
[CIFAR-10 tutorial](../tutorials/deep_cnn/index.md) for an example model that
uses multiple GPUs.
Note that TensorFlow only uses GPU devices with a compute capability greater
than 3.5.
#### Why does `Session.run()` hang when using a reader or a queue?
The [reader](../api_docs/python/io_ops.md#ReaderBase) and
[queue](../api_docs/python/io_ops.md#QueueBase) classes provide special operations that
can *block* until input (or free space in a bounded queue) becomes
available. These operations allow you to build sophisticated
[input pipelines](../how_tos/reading_data/index.md), at the cost of making the
TensorFlow computation somewhat more complicated. See the how-to documentation
for
[using `QueueRunner` objects to drive queues and readers](../how_tos/reading_data/index.md#QueueRunners)
for more information on how to use them.
## Variables
See also the how-to documentation on [variables](../how_tos/variables/index.md)
and [variable scopes](../how_tos/variable_scope/index.md), and
[the API documentation for variables](../api_docs/python/state_ops.md).
#### What is the lifetime of a variable?
A variable is created when you first run the
[`tf.Variable.initializer`](../api_docs/python/state_ops.md#Variable.initializer)
operation for that variable in a session. It is destroyed when that
[`session is closed`](../api_docs/python/client.md#Session.close).
#### How do variables behave when they are concurrently accessed?
Variables allow concurrent read and write operations. The value read from a
variable may change it is concurrently updated. By default, concurrent assigment
operations to a variable are allowed to run with no mutual exclusion. To acquire
a lock when assigning to a variable, pass `use_locking=True` to
[`Variable.assign()`](../api_docs/python/state_ops.md#Variable.assign).
## Tensor shapes
See also the
[`TensorShape` API documentation](../api_docs/python/framework.md#TensorShape).
#### How can I determine the shape of a tensor in Python?
In TensorFlow, a tensor has both a static (inferred) shape and a dynamic (true)
shape. The static shape can be read using the
[`tf.Tensor.get_shape()`](../api_docs/python/framework.md#Tensor.get_shape)
method: this shape is inferred from the operations that were used to create the
tensor, and may be
[partially complete](../api_docs/python/framework.md#TensorShape). If the static
shape is not fully defined, the dynamic shape of a `Tensor` `t` can be
determined by evaluating [`tf.shape(t)`](../api_docs/python/array_ops.md#shape).
#### What is the difference between `x.set_shape()` and `x = tf.reshape(x)`?
The [`tf.Tensor.set_shape()`](../api_docs/python/framework.md) method updates
the static shape of a `Tensor` object, and it is typically used to provide
additional shape information when this cannot be inferred directly. It does not
change the dynamic shape of the tensor.
The [`tf.reshape()`](../api_docs/python/array_ops.md#reshape) operation creates
a new tensor with a different dynamic shape.
#### How do I build a graph that works with variable batch sizes?
It is often useful to build a graph that works with variable batch sizes, for
example so that the same code can be used for (mini-)batch training, and
single-instance inference. The resulting graph can be
[saved as a protocol buffer](../api_docs/python/framework.md#Graph.as_graph_def)
and
[imported into another program](../api_docs/python/framework.md#import_graph_def).
When building a variable-size graph, the most important thing to remember is not
to encode the batch size as a Python constant, but instead to use a symbolic
`Tensor` to represent it. The following tips may be useful:
* Use [`batch_size = tf.shape(input)[0]`](../api_docs/python/array_ops.md#shape)
to extract the batch dimension from a `Tensor` called `input`, and store it in
a `Tensor` called `batch_size`.
* Use [`tf.reduce_mean()`](../api_docs/python/math_ops.md#reduce_mean) instead
of `tf.reduce_sum(...) / batch_size`.
* If you use
[placeholders for feeding input](../how_tos/reading_data/index.md#Feeding),
you can specify a variable batch dimension by creating the placeholder with
[`tf.placeholder(..., shape=[None, ...])`](../api_docs/python/io_ops.md#placeholder). The
`None` element of the shape corresponds to a variable-sized dimension.
## TensorBoard
#### How can I visualize a TensorFlow graph?
See the [graph visualization tutorial](../how_tos/graph_viz/index.md).
#### What is the simplest way to send data to TensorBoard?
Add summary ops to your TensorFlow graph, and use a
[`SummaryWriter`](../api_docs/python/train.md#SummaryWriter) to write
these summaries to a log directory. Then, start TensorBoard using
python tensorflow/tensorboard/tensorboard.py --logdir=path/to/log-directory
For more details, see the [Summaries and TensorBoard tutorial]
(../how_tos/summaries_and_tensorboard/index.md).
## Extending TensorFlow
See also the how-to documentation for
[adding a new operation to TensorFlow](../how_tos/adding_an_op/index.md).
#### My data is in a custom format. How do I read it using TensorFlow?
There are two main options for dealing with data in a custom format.
The easier option is to write parsing code in Python that transforms the data
into a numpy array, then feed a [`tf.placeholder()`]
(../api_docs/python/io_ops.md#placeholder) a tensor with that data. See the
documentation on
[using placeholders for input](../how_tos/reading_data/index.md#Feeding) for
more details. This approach is easy to get up and running, but the parsing can
be a performance bottleneck.
The more efficient option is to
[add a new op written in C++](../how_tos/adding_an_op/index.md) that parses your
data format. The
[guide to handling new data formats](../how_tos/new_data_formats/index.md) has
more information about the steps for doing this.
#### How do I define an operation that takes a variable number of inputs?
The TensorFlow op registration mechanism allows you to define inputs that are a
single tensor, a list of tensors with the same type (for example when adding
together a variable-length list of tensors), or a list of tensors with different
types (for example when enqueuing a tuple of tensors to a queue). See the
how-to documentation for
[adding an op with a list of inputs or outputs](../how_tos/adding_an_op/index.md#list-input-output)
for more details of how to define these different input types.
## Miscellaneous
#### Does TensorFlow work with Python 3?
We have only tested TensorFlow using Python 2.7. We are aware of some changes
that will be required for Python 3 compatibility, and welcome contributions
towards this effort.
#### What is TensorFlow's coding style convention?
The TensorFlow Python API adheres to the
[PEP8](https://www.python.org/dev/peps/pep-0008/) conventions.<sup>*</sup> In
particular, we use `CamelCase` names for classes, and `snake_case` names for
functions, methods, and properties. We also adhere to the
[Google Python style guide](https://google.github.io/styleguide/pyguide.html).
The TensorFlow C++ code base adheres to the
[Google C++ style guide](http://google.github.io/styleguide/cppguide.html).
(<sup>*</sup> With one exception: we use 2-space indentation instead of 4-space
indentation.)
| {
"content_hash": "82d03a0abb35314b6120861e61e942b2",
"timestamp": "",
"source": "github",
"line_count": 309,
"max_line_length": 125,
"avg_line_length": 45.605177993527505,
"alnum_prop": 0.7590122055066705,
"repo_name": "kcartier/tensorflow-toe-in-the-water",
"id": "171697c69e4da5f48e4d74fa81380bdf2c252d38",
"size": "14122",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "tensorflow/g3doc/resources/faq.md",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "127901"
},
{
"name": "C++",
"bytes": "4986624"
},
{
"name": "CSS",
"bytes": "107"
},
{
"name": "HTML",
"bytes": "638824"
},
{
"name": "Java",
"bytes": "44388"
},
{
"name": "JavaScript",
"bytes": "4876"
},
{
"name": "Objective-C",
"bytes": "630"
},
{
"name": "Protocol Buffer",
"bytes": "45325"
},
{
"name": "Python",
"bytes": "2494316"
},
{
"name": "Shell",
"bytes": "1714"
},
{
"name": "TypeScript",
"bytes": "238945"
}
],
"symlink_target": ""
} |
<html>
<body>
Reports conditional expressions where the condition is either <code>true</code> or <code>false</code> constant.
These expressions sometimes occur as the result of automatic refactorings, and may obviously be simplified.
<p>Example:</p>
<pre>
return true ? "Yes" : "No";
</pre>
<p>After quick-fix is applied, the result will be</p>
<pre>
return "Yes";
</pre>
<!-- tooltip end -->
</body>
</html> | {
"content_hash": "780916b5410e922d7e5b114599318b4f",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 111,
"avg_line_length": 27.466666666666665,
"alnum_prop": 0.7038834951456311,
"repo_name": "allotria/intellij-community",
"id": "8d5728256cb9a8486b78a5305429e7488f96bf73",
"size": "412",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "plugins/InspectionGadgets/src/inspectionDescriptions/ConstantConditionalExpression.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "AMPL",
"bytes": "20665"
},
{
"name": "AspectJ",
"bytes": "182"
},
{
"name": "Batchfile",
"bytes": "60580"
},
{
"name": "C",
"bytes": "195249"
},
{
"name": "C#",
"bytes": "1264"
},
{
"name": "C++",
"bytes": "195810"
},
{
"name": "CMake",
"bytes": "1675"
},
{
"name": "CSS",
"bytes": "201445"
},
{
"name": "CoffeeScript",
"bytes": "1759"
},
{
"name": "Erlang",
"bytes": "10"
},
{
"name": "Groovy",
"bytes": "3197810"
},
{
"name": "HLSL",
"bytes": "57"
},
{
"name": "HTML",
"bytes": "1891055"
},
{
"name": "J",
"bytes": "5050"
},
{
"name": "Java",
"bytes": "164463076"
},
{
"name": "JavaScript",
"bytes": "570364"
},
{
"name": "Jupyter Notebook",
"bytes": "93222"
},
{
"name": "Kotlin",
"bytes": "4240307"
},
{
"name": "Lex",
"bytes": "147047"
},
{
"name": "Makefile",
"bytes": "2352"
},
{
"name": "NSIS",
"bytes": "51270"
},
{
"name": "Objective-C",
"bytes": "27941"
},
{
"name": "Perl",
"bytes": "903"
},
{
"name": "Perl6",
"bytes": "26"
},
{
"name": "Protocol Buffer",
"bytes": "6680"
},
{
"name": "Python",
"bytes": "25385564"
},
{
"name": "Roff",
"bytes": "37534"
},
{
"name": "Ruby",
"bytes": "1217"
},
{
"name": "Scala",
"bytes": "11698"
},
{
"name": "Shell",
"bytes": "65705"
},
{
"name": "Smalltalk",
"bytes": "338"
},
{
"name": "TeX",
"bytes": "25473"
},
{
"name": "Thrift",
"bytes": "1846"
},
{
"name": "TypeScript",
"bytes": "9469"
},
{
"name": "Visual Basic",
"bytes": "77"
},
{
"name": "XSLT",
"bytes": "113040"
}
],
"symlink_target": ""
} |
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class Detail_pesanan extends CI_Controller
{
function __construct()
{
parent::__construct();
$this->load->model('Detail_pesanan_model');
$this->load->library('form_validation');
$this->load->library('datatables');
}
public function index()
{
$this->render['content'] = $this->load->view('detail_pesanan/detail_pesanan_list', array(), TRUE);
$this->load->view('template', $this->render);
}
public function json() {
header('Content-Type: application/json');
echo $this->Detail_pesanan_model->json();
}
public function read($id)
{
$row = $this->Detail_pesanan_model->get_by_id($id);
if ($row) {
$data = array(
'id' => $row->id,
'id_pesanan' => $row->id_pesanan,
'id_menu' => $row->id_menu,
'jumlah' => $row->jumlah,
'total' => $row->total,
);
$this->render['content'] = $this->load->view('detail_pesanan/detail_pesanan_read', $data, TRUE);
$this->load->view('template', $this->render);
} else {
$this->session->set_flashdata('message', 'Record Not Found');
redirect(site_url('detail_pesanan'));
}
}
public function create()
{
$this->load->model('Menu_model');
$data_menu = $this->Menu_model->get_all();
$data = array(
'button' => 'Create',
'action' => site_url('detail_pesanan/create_action'),
'id' => set_value('id'),
'id_pesanan' => set_value('id_pesanan'),
'id_menu' => set_value('id_menu'),
'jumlah' => set_value('jumlah'),
'total' => set_value('total'),
'data_menu' => $data_menu,
);
$this->render['content'] = $this->load->view('detail_pesanan/detail_pesanan_form', $data, TRUE);
$this->load->view('template', $this->render);
}
public function create_action()
{
$this->_rules();
if ($this->form_validation->run() == FALSE) {
$this->create();
} else {
$this->load->model('Menu_model');
$menu =$this->Menu_model->get_by_id($this->input->post('id_menu',TRUE));
$jumlah = $this->input->post('jumlah',TRUE);
$harga="";
foreach ($menu as $key) {
$harga = $key->harga;
}
//var_dump($menu);
$total = $harga * $jumlah;
$data = array(
'id_pesanan' => $this->input->post('id_pesanan',TRUE),
'id_menu' => $this->input->post('id_menu',TRUE),
'jumlah' => $jumlah,
'total' => $total,
);
//var_dump($data);
$this->Detail_pesanan_model->insert($data);
$this->session->set_flashdata('message', 'Create Record Success');
redirect(site_url('detail_pesanan'));
}
}
public function update($id)
{
$row = $this->Detail_pesanan_model->get_by_id($id);
if ($row) {
$data = array(
'button' => 'Update',
'action' => site_url('detail_pesanan/update_action'),
'id' => set_value('id', $row->id),
'id_pesanan' => set_value('id_pesanan', $row->id_pesanan),
'id_menu' => set_value('id_menu', $row->id_menu),
'jumlah' => set_value('jumlah', $row->jumlah),
'total' => set_value('total', $row->total),
);
$this->render['content'] = $this->load->view('detail_pesanan/detail_pesanan_form', $data, TRUE);
$this->load->view('template', $this->render);
} else {
$this->session->set_flashdata('message', 'Record Not Found');
redirect(site_url('detail_pesanan'));
}
}
public function update_action()
{
$this->_rules();
if ($this->form_validation->run() == FALSE) {
$this->update($this->input->post('id', TRUE));
} else {
$data = array(
'id_pesanan' => $this->input->post('id_pesanan',TRUE),
'id_menu' => $this->input->post('id_menu',TRUE),
'jumlah' => $this->input->post('jumlah',TRUE),
'total' => $this->input->post('total',TRUE),
);
$this->Detail_pesanan_model->update($this->input->post('id', TRUE), $data);
$this->session->set_flashdata('message', 'Update Record Success');
redirect(site_url('detail_pesanan'));
}
}
public function delete($id)
{
$row = $this->Detail_pesanan_model->get_by_id($id);
if ($row) {
$this->Detail_pesanan_model->delete($id);
$this->session->set_flashdata('message', 'Delete Record Success');
redirect(site_url('detail_pesanan'));
} else {
$this->session->set_flashdata('message', 'Record Not Found');
redirect(site_url('detail_pesanan'));
}
}
public function _rules()
{
$this->form_validation->set_rules('id_pesanan', 'id pesanan', 'trim|required');
$this->form_validation->set_rules('id_menu', 'id menu', 'trim|required');
$this->form_validation->set_rules('jumlah', 'jumlah', 'trim|required');
$this->form_validation->set_rules('id', 'id', 'trim');
$this->form_validation->set_error_delimiters('<span class="text-danger">', '</span>');
}
public function excel()
{
$this->load->helper('exportexcel');
$namaFile = "detail_pesanan.xls";
$judul = "detail_pesanan";
$tablehead = 0;
$tablebody = 1;
$nourut = 1;
//penulisan header
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");
header("Content-Disposition: attachment;filename=" . $namaFile . "");
header("Content-Transfer-Encoding: binary ");
xlsBOF();
$kolomhead = 0;
xlsWriteLabel($tablehead, $kolomhead++, "No");
xlsWriteLabel($tablehead, $kolomhead++, "Id Pesanan");
xlsWriteLabel($tablehead, $kolomhead++, "Id Menu");
xlsWriteLabel($tablehead, $kolomhead++, "Jumlah");
xlsWriteLabel($tablehead, $kolomhead++, "Total");
foreach ($this->Detail_pesanan_model->get_all() as $data) {
$kolombody = 0;
//ubah xlsWriteLabel menjadi xlsWriteNumber untuk kolom numeric
xlsWriteNumber($tablebody, $kolombody++, $nourut);
xlsWriteNumber($tablebody, $kolombody++, $data->id_pesanan);
xlsWriteNumber($tablebody, $kolombody++, $data->id_menu);
xlsWriteNumber($tablebody, $kolombody++, $data->jumlah);
xlsWriteLabel($tablebody, $kolombody++, $data->total);
$tablebody++;
$nourut++;
}
xlsEOF();
exit();
}
}
/* End of file Detail_pesanan.php */
/* Location: ./application/controllers/Detail_pesanan.php */
/* Please DO NOT modify this information : */
/* Generated by Harviacode Codeigniter CRUD Generator 2017-10-26 09:28:54 */
/* http://harviacode.com */ | {
"content_hash": "e9ef6e654244967fcd4df9ad3ddbd197",
"timestamp": "",
"source": "github",
"line_count": 211,
"max_line_length": 110,
"avg_line_length": 34.41706161137441,
"alnum_prop": 0.5407601211787386,
"repo_name": "bimaahida12/Warteg",
"id": "d7260f35c41d5427a4036c8a18d39c30f9bb617e",
"size": "7262",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "application/controllers/Detail_pesanan.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "691902"
},
{
"name": "HTML",
"bytes": "8595321"
},
{
"name": "JavaScript",
"bytes": "562139"
},
{
"name": "PHP",
"bytes": "2004096"
}
],
"symlink_target": ""
} |
package com.spotify.docker.client;
import com.spotify.docker.client.exceptions.DockerException;
import com.spotify.docker.client.messages.ProgressMessage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class LoggingLoadHandler implements ProgressHandler {
private static final Logger log = LoggerFactory.getLogger(LoggingLoadHandler.class);
@Override
public void progress(ProgressMessage message) throws DockerException {
if (message.error() != null) {
throw new DockerException(message.toString());
}
log.info("load: {}", message);
}
}
| {
"content_hash": "ce0dc4aecd1878448c9bb7e294ad3adc",
"timestamp": "",
"source": "github",
"line_count": 24,
"max_line_length": 86,
"avg_line_length": 24.541666666666668,
"alnum_prop": 0.7623089983022071,
"repo_name": "rgrunber/docker-client",
"id": "25641753989cd75e7f7b829b4bb24083ab41fa37",
"size": "1234",
"binary": false,
"copies": "3",
"ref": "refs/heads/master",
"path": "src/main/java/com/spotify/docker/client/LoggingLoadHandler.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Dockerfile",
"bytes": "772"
},
{
"name": "Java",
"bytes": "1137427"
},
{
"name": "Shell",
"bytes": "2967"
}
],
"symlink_target": ""
} |
Generate Chinese name by using Node.js with ❤️.
## Installation
```sh
$ npm --save install chinese-random-name
```
## Usage
First you need to require this package:
```javascript
const randomName = require('chinese-random-name');
```
> **If you're using it from Browser environment, do require
> `chinese-random-name/random.min`.**
### Generate a Full Name Automatically
Use `generate()` function:
```javascript
console.log(randomName.generate());
```
### Only Surname
Use `getOne` function in `surnames`.
```javascript
console.log(randomName.surnames.getOne());
```
`getOne` has an optional parameter `opt`. You may pass a field named
`useSurnamesCountAtTheTop` to specify only get surname from most top
`useSurnamesCountAtTheTop` surnames. e.g.
```javascript
randomName.surnames.getOne({ useSurnamesCountAtTheTop: 100 });
```
It means the function only select a random surname from the most top 100
surnames.
### Name
Use `get` / `get1` / `get2` / `get3` function in `names`.
+ `get`: returns a random name and its length between 1 and 3.
+ `get1`: returns a random name with length 1. (you can pass a parameter which may be `"金"` / `"木"` / `"水"` / `"火"` / `"土"` or leave it blank)
+ `get2`: returns a random name with length 2. (you can pass `"金金"` / `"金木"` / ... or leave it blank)
+ `get3`: returns a random name with length 3. (you can pass `"金金金"` / `"水火土"` / ... or leave it blank)
+ `dict`: the dictionary object.
Examples:
```javascript
randomName.names.get();
randomName.names.get1();
randomName.names.get2();
randomName.names.get3();
randomName.names.get1("金");
randomName.names.get2("木水");
randomName.names.get3("火火火");
```
## Related Article
http://xcoder.in/2014/09/01/how-i-made-chinese-random-x/
## Contribute
You're welcome to fork and make pull requests!
| {
"content_hash": "15a9d54ecd9c715b6c009c30971673fc",
"timestamp": "",
"source": "github",
"line_count": 75,
"max_line_length": 142,
"avg_line_length": 23.96,
"alnum_prop": 0.6950473010573177,
"repo_name": "XadillaX/chinese-random-name",
"id": "cb8b9b7e08005940d3163114e007db69b3629818",
"size": "1866",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "1492"
},
{
"name": "JavaScript",
"bytes": "270387"
},
{
"name": "Makefile",
"bytes": "568"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html>
<head>
<title>MediaElement Playlist Plugin for Video and Audio Tag</title>
<!-- jQuery and MediaElement.js -->
<script type="text/javascript" src="_demo/jquery-2.1.0.js"></script>
<script type="text/javascript" src="_demo/mediaelement-and-player.js"></script>
<link type="text/css" rel="stylesheet" href="_demo/mediaelementplayer.css">
<!-- MediaElement Playlist Plugin -->
<script type="text/javascript" src="_demo/mediaelement-playlist-plugin.min.js"></script>
<link type="text/css" rel="stylesheet" href="_demo/mediaelement-playlist-plugin.min.css">
<style>
/* these are totally optional */
/* hides focus marker around control buttons */
.mejs-controls .mejs-button button:focus {
outline: none;
}
/* replace svg with our png - chrome 36 has issues with bg position and svg (play arrow invisible) */
.mejs-overlay-button {
background-image: url(./bigplay.png);
}
/* makes loader bg transparent, not black, we also supply a different loading gif in _demo/ */
.mejs-overlay-loading {
background: none;
}
</style>
</head>
<body>
<h1>MediaElement.js Playlist Plugin for the Video and Audio Tag</h1>
<p>
This MediaElement.js plugin provides playlist support for Video and Audio players.<br>
It was forked from <a href="https://github.com/duozersk/mep-feature-playlist">duozersk/mep-feature-playlist</a>, which is a fork of <a href="https://github.com/JeyKeu/mep-feature-playlist">JeyKeu/mep-feature-playlist</a>.
</p>
<h2>How it works</h2>
<ol>
<li>Add a CSS class "mep-playlist" to your <video> or <audio> tag</li>
<li>Add an attribute "data-showplaylist" with value "true" to show playlist on start</li>
<li>Add features "playlistfeature" (loads library) and "playlist" (shows control icon)</li>
<li>Add several <source>s to your <video> or <audio> tags (only playable types will be playlisted)</li>
</ol>
<h2>Main features</h2>
<ul>
<li>Regular playlist or slider display</li>
<li>Playlists are customizable via CSS/Sass</li>
<li>Grunt, Sass, JSHinted source</li>
</ul>
<h2>Build it yourself and contribute</h2>
<ul>
<li>make sure you "npm install" before you run "grunt", sass is required too ("$ gem install sass")</li>
<li>"$ grunt build:dev" stores a debuggable demo in _dev/</li>
<li>"$ grunt build" stores a minified demo in _build/</li>
<li>have a look at the demo.html files in either folder</li>
<li>run "$ grunt watch" or just "$ grunt" to work efficiently</li>
</ul>
<!--
reminder: video tag standard attribute values:
- preload: "", "none", "metadata", "auto"
- loop: "", "loop"
- autoplay: "", "autoplay"
- controls: "", "controls"
mep additional attribute values:
- data-showplaylist: "", "true" (shows playlist initially or not if empty or "false")
-->
<h2>Video playlist with default display</h2>
<video
class="mep-playlist"
data-showplaylist="true"
width="530"
height="300"
poster="https://creativecommons.org/images/features/mayerandbettle.jpg"
controls="controls"
preload="auto"
loop=""
>
<!-- Mayer and Bettle by Creative Commons Australia -->
<source src="http://mirrors.creativecommons.org/movingimages/webm/MayerandBettle_480p.webm" type="video/webm" title="Mayer and Bettle by Creative Commons Australia" data-poster="https://creativecommons.org/images/features/mayerandbettle.jpg">
<source src="http://blip.tv/file/get/Commonscreative-MayerAndBettle980.ogv" type="video/ogg" title="Mayer and Bettle by Creative Commons Australia" data-poster="https://creativecommons.org/images/features/mayerandbettle.jpg">
<source src="http://blip.tv/file/get/Commonscreative-MayerAndBettle715.mov" type="video/quicktime" title="Mayer and Bettle by Creative Commons Australia" data-poster="https://creativecommons.org/images/features/mayerandbettle.jpg">
<!-- Wanna Work Together? by Creative Commons -->
<source src="http://mirrors.creativecommons.org/movingimages/webm/WannaWorkTogether_480p.webm" type="video/webm" title="Wanna Work Together? by Creative Commons" data-poster="https://creativecommons.org/images/features/wannawork.png">
<source src="http://blip.tv/file/get/Commonscreative-WannaWorkTogether315.ogv" type="video/ogg" title="Wanna Work Together? by Creative Commons" data-poster="https://creativecommons.org/images/features/wannawork.png">
<source src="http://blip.tv/file/get/Commonscreative-WannaWorkTogether958.mov" type="video/quicktime" title="Wanna Work Together? by Creative Commons" data-poster="https://creativecommons.org/images/features/wannawork.png">
<!-- Reticulum Rex by Creative Commons -->
<source src="http://mirrors.creativecommons.org/movingimages/webm/ReticulumRex_240p.webm" type="video/webm" title="Reticulum Rex by Creative Commons" data-poster="https://creativecommons.org/images/features/reticulumrex.gif">
<source src="http://blip.tv/file/get/Commonscreative-ReticulumRex691.ogv" type="video/ogg" title="Reticulum Rex by Creative Commons" data-poster="https://creativecommons.org/images/features/reticulumrex.gif">
<source src="http://blip.tv/file/get/Commonscreative-ReticulumRex518.mpeg" type="video/mpeg" title="Reticulum Rex by Creative Commons" data-poster="https://creativecommons.org/images/features/reticulumrex.gif">
<!-- Wired NextMusic by Creative Commons -->
<source src="http://mirrors.creativecommons.org/movingimages/webm/WiredNextMusic_360p.webm" type="video/webm" title="Wired NextMusic by Creative Commons" data-poster="https://creativecommons.org/images/features/wired_nextmusic.jpg">
<source src="http://blip.tv/file/get/Commonscreative-WiredNextMusic952.ogv" type="video/ogg" title="Wired NextMusic by Creative Commons" data-poster="https://creativecommons.org/images/features/wired_nextmusic.jpg">
<source src="http://blip.tv/file/get/Commonscreative-WiredNextMusic423.mov" type="video/quicktime" title="Wired NextMusic by Creative Commons" data-poster="https://creativecommons.org/images/features/wired_nextmusic.jpg">
<!-- image fallback only - flash version does not support playlists -->
<img src="./no-video-playlist.png" width="530" title="No video playlist capabilities. Please upgrade your browser!">
</video>
<h2>Video playlist with slider</h2>
<video
class="mep-playlist mep-slider"
data-showplaylist="true"
width="530"
height="300"
poster="https://creativecommons.org/images/features/mayerandbettle.jpg"
controls="controls"
preload="auto"
loop=""
>
<!-- Mayer and Bettle by Creative Commons Australia -->
<source src="http://mirrors.creativecommons.org/movingimages/webm/MayerandBettle_480p.webm" type="video/webm" title="Mayer and Bettle by Creative Commons Australia" data-poster="https://creativecommons.org/images/features/mayerandbettle.jpg">
<source src="http://blip.tv/file/get/Commonscreative-MayerAndBettle980.ogv" type="video/ogg" title="Mayer and Bettle by Creative Commons Australia" data-poster="https://creativecommons.org/images/features/mayerandbettle.jpg">
<source src="http://blip.tv/file/get/Commonscreative-MayerAndBettle715.mov" type="video/quicktime" title="Mayer and Bettle by Creative Commons Australia" data-poster="https://creativecommons.org/images/features/mayerandbettle.jpg">
<!-- Wanna Work Together? by Creative Commons -->
<source src="http://mirrors.creativecommons.org/movingimages/webm/WannaWorkTogether_480p.webm" type="video/webm" title="Wanna Work Together? by Creative Commons" data-poster="https://creativecommons.org/images/features/wannawork.png">
<source src="http://blip.tv/file/get/Commonscreative-WannaWorkTogether315.ogv" type="video/ogg" title="Wanna Work Together? by Creative Commons" data-poster="https://creativecommons.org/images/features/wannawork.png">
<source src="http://blip.tv/file/get/Commonscreative-WannaWorkTogether958.mov" type="video/quicktime" title="Wanna Work Together? by Creative Commons" data-poster="https://creativecommons.org/images/features/wannawork.png">
<!-- Reticulum Rex by Creative Commons -->
<source src="http://mirrors.creativecommons.org/movingimages/webm/ReticulumRex_240p.webm" type="video/webm" title="Reticulum Rex by Creative Commons" data-poster="https://creativecommons.org/images/features/reticulumrex.gif">
<source src="http://blip.tv/file/get/Commonscreative-ReticulumRex691.ogv" type="video/ogg" title="Reticulum Rex by Creative Commons" data-poster="https://creativecommons.org/images/features/reticulumrex.gif">
<source src="http://blip.tv/file/get/Commonscreative-ReticulumRex518.mpeg" type="video/mpeg" title="Reticulum Rex by Creative Commons" data-poster="https://creativecommons.org/images/features/reticulumrex.gif">
<!-- Wired NextMusic by Creative Commons -->
<source src="http://mirrors.creativecommons.org/movingimages/webm/WiredNextMusic_360p.webm" type="video/webm" title="Wired NextMusic by Creative Commons" data-poster="https://creativecommons.org/images/features/wired_nextmusic.jpg">
<source src="http://blip.tv/file/get/Commonscreative-WiredNextMusic952.ogv" type="video/ogg" title="Wired NextMusic by Creative Commons" data-poster="https://creativecommons.org/images/features/wired_nextmusic.jpg">
<source src="http://blip.tv/file/get/Commonscreative-WiredNextMusic423.mov" type="video/quicktime" title="Wired NextMusic by Creative Commons" data-poster="https://creativecommons.org/images/features/wired_nextmusic.jpg">
<!-- image fallback only - flash version does not support playlists -->
<img src="./no-video-playlist.png" width="530" title="No video playlist capabilities. Please upgrade your browser!">
</video>
<p>
<ul>
<li><a href="https://creativecommons.org/videos/mayer-and-bettle">Mayer and Bettle</a> by Creative Commons Australia and <a href="http://blackbrow.com/">Black Brow</a> under <a href="http://creativecommons.org/licenses/by-sa/2.0/au/"><img alt="CC license" src="http://i.creativecommons.org/l/by-sa/2.0/au/88x31.png" width="88" height="31"></a></li>
<li><a href="https://creativecommons.org/videos/wanna-work-together">Wanna Work Together?</a> by Creative Commons under <a href="http://creativecommons.org/licenses/by/2.5/"><img alt="CC license" src="http://i.creativecommons.org/l/by/2.5/88x31.png" width="88" height="31"></a></li>
<li><a href="https://creativecommons.org/videos/reticulum-rex">Reticulum Rex</a> by Creative Commons under <a href="http://creativecommons.org/licenses/by-sa/1.0/"><img alt="CC license" src="http://i.creativecommons.org/l/by-sa/1.0/88x31.png" width="88" height="31"></a></li>
<li><a href="https://creativecommons.org/videos/wired-nextmusic">Wired NextMusic</a> by Creative Commons under <a href="http://creativecommons.org/licenses/by/3.0/"><img alt="CC license" src="http://i.creativecommons.org/l/by/3.0/88x31.png" width="88" height="31"></a></li>
</ul>
</p>
<h2>Regular Video</h2>
<p>
Regular videos use the same visuals as playlists. Customizable via CSS.
</p>
<video
width="530"
height="300"
poster="https://creativecommons.org/images/features/past.jpg"
controls="controls"
preload="auto"
loop="loop"
>
<source src="http://mirrors.creativecommons.org/movingimages/webm/BuildingonthePast_480p.webm" type="video/webm">
<source src="http://blip.tv/file/get/Commonscreative-BuildingOnThePast517.ogv" type="video/ogg">
<source src="http://blip.tv/file/get/Commonscreative-BuildingOnThePast896.mov" type="video/mp4">
<!-- flash fallback for non-HTML5 browsers without JavaScript -->
<object
width="100%"
type="application/x-shockwave-flash"
data="/flashmediaelement.swf"
>
<param name="movie" value="/flashmediaelement.swf">
<param name="flashvars" value="controls=true&autoplay=true&loop=true&file=video/video2.mp4">
<!-- image fallback -->
<img src="https://creativecommons.org/images/features/past.jpg" width="320" title="No video playback capabilities">
</object>
</video>
<p>
<a href="https://creativecommons.org/videos/building-on-the-past">Video</a> by <a href="http://justincone.com/">Justin Cone</a> under <a href="http://creativecommons.org/licenses/by/3.0/"><img alt="CC license" src="http://i.creativecommons.org/l/by/3.0/88x31.png" width="88" height="31"></a>
</p>
<h2>Audio playlist</h2>
<audio
class="mep-playlist"
data-showplaylist="true"
width="400"
height="220"
controls="controls"
preload="auto"
>
<source src="http://sampleswap.org/mp3/artist/harvestfred/harvestfred_-PRIMAVARA--320.mp3" title="PRIMAVARA by harvestfred" data-poster="http://dummyimage.com/600x400/574c0d/e0e0e0&text=PRIMAVARA+by+harvestfred" type="audio/mpeg">
<source src="http://sampleswap.org/mp3/artist/fadortel/life-in-a-box_kalamata3-320.mp3" title="kalamata_3 by life in a box" data-poster="http://dummyimage.com/600x400/801a80/e0e0e0&text=kalamata_3 by life in a box" type="audio/mpeg">
<source src="http://sampleswap.org/mp3/artist/robbot/robert-meyers_The-Magnificient-Escap-320.mp3" title="The Magnificient Escape 2009 EDIT by robert meyers" data-poster="http://dummyimage.com/600x400/80601b/e0e0e0&text=The+Magnificient+Escape+2009+EDIT+by+robert+meyers" type="audio/mpeg">
<source src="http://sampleswap.org/mp3/artist/brettml/Seed-AI_2D-320.mp3" title="2D by Seed A.I." data-poster="http://dummyimage.com/600x400/1c1c80/e0e0e0&text=2D+by+Seed+A.I." type="audio/mpeg">
<source src="http://sampleswap.org/mp3/artist/Thrystero/Thrystero_Diagonal-320.mp3" title="Diagonal by Thrystero" data-poster="http://dummyimage.com/600x400/741c80/e0e0e0&text=Diagonal+by+Thrystero" type="audio/mpeg">
<source src="http://sampleswap.org/mp3/artist/Akcija/Akcija_Trip-To-Your-Liver-320.mp3" title="Trip To Your Liver by Akcija" data-poster="http://dummyimage.com/600x400/1c8028/e0e0e0&text=Trip+To+Your+Liver+by+Akcija" type="audio/mpeg">
<source src="http://sampleswap.org/mp3/artist/PaGaN/Alans-Lounge_No-More-Ballyhoo-320.mp3" title="No More Ballyhoo by Alans Lounge" data-poster="http://dummyimage.com/600x400/27570d/e0e0e0&text=o+More+Ballyhoo+by+Alans+Lounge" type="audio/mpeg">
</audio>
<h2>Audio playlist with slider</h2>
<audio
class="mep-playlist mep-slider"
data-showplaylist="true"
width="400"
height="260"
controls="controls"
preload="none"
>
<source src="http://sampleswap.org/mp3/artist/harvestfred/harvestfred_-PRIMAVARA--320.mp3" title="PRIMAVARA by harvestfred" data-poster="http://dummyimage.com/600x400/574c0d/e0e0e0&text=PRIMAVARA+by+harvestfred" type="audio/mpeg">
<source src="http://sampleswap.org/mp3/artist/fadortel/life-in-a-box_kalamata3-320.mp3" title="kalamata_3 by life in a box" data-poster="http://dummyimage.com/600x400/801a80/e0e0e0&text=kalamata_3 by life in a box" type="audio/mpeg">
<source src="http://sampleswap.org/mp3/artist/robbot/robert-meyers_The-Magnificient-Escap-320.mp3" title="The Magnificient Escape 2009 EDIT by robert meyers" data-poster="http://dummyimage.com/600x400/80601b/e0e0e0&text=The+Magnificient+Escape+2009+EDIT+by+robert+meyers" type="audio/mpeg">
<source src="http://sampleswap.org/mp3/artist/brettml/Seed-AI_2D-320.mp3" title="2D by Seed A.I." data-poster="http://dummyimage.com/600x400/1c1c80/e0e0e0&text=2D+by+Seed+A.I." type="audio/mpeg">
<source src="http://sampleswap.org/mp3/artist/Thrystero/Thrystero_Diagonal-320.mp3" title="Diagonal by Thrystero" data-poster="http://dummyimage.com/600x400/741c80/e0e0e0&text=Diagonal+by+Thrystero" type="audio/mpeg">
<source src="http://sampleswap.org/mp3/artist/Akcija/Akcija_Trip-To-Your-Liver-320.mp3" title="Trip To Your Liver by Akcija" data-poster="http://dummyimage.com/600x400/1c8028/e0e0e0&text=Trip+To+Your+Liver+by+Akcija" type="audio/mpeg">
<source src="http://sampleswap.org/mp3/artist/PaGaN/Alans-Lounge_No-More-Ballyhoo-320.mp3" title="No More Ballyhoo by Alans Lounge" data-poster="http://dummyimage.com/600x400/27570d/e0e0e0&text=o+More+Ballyhoo+by+Alans+Lounge" type="audio/mpeg">
</audio>
<p>
<a href="http://sampleswap.org/mp3/creative-commons/free-music.php">Music from sampleswap.org</a> under <a href="http://creativecommons.org/licenses/">various CC licenses</a>
</p>
<script>
$(function () {
// both video playlists(regular and slider)
$('video.mep-playlist').mediaelementplayer({
"features": ['playlistfeature', 'prevtrack', 'playpause', 'nexttrack', 'loop', 'shuffle', 'current', 'progress', 'duration', 'volume', 'playlist', 'fullscreen'],
"shuffle": false,
"loop": false
});
// audio playlist
$('audio.mep-playlist').mediaelementplayer({
"features": ['playlistfeature', 'prevtrack', 'playpause', 'nexttrack', 'loop', 'shuffle', 'current', 'progress', 'duration', 'volume', 'playlist'],
"audioVolume": "vertical", // just like video player
"shuffle": false,
"loop": false
});
// regular video
$('video:not(.mep-playlist)').mediaelementplayer({
"features": ['playpause', 'current', 'progress', 'duration', 'tracks', 'volume', 'fullscreen'],
});
});
</script>
<footer>
<a href="https://github.com/rocco/mediaelement-playlist-plugin/"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
</footer>
</body>
</html> | {
"content_hash": "5eea36dd64863d1aa816889981b54ffe",
"timestamp": "",
"source": "github",
"line_count": 273,
"max_line_length": 352,
"avg_line_length": 66.92307692307692,
"alnum_prop": 0.6964422550629448,
"repo_name": "david1hung/P3",
"id": "ee075fa828bcaa8675e865f0306f56091c6f18c6",
"size": "18270",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "Video/mediaelement-playlist-plugin-master/_build/demo.html",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "ActionScript",
"bytes": "172378"
},
{
"name": "C#",
"bytes": "46726"
},
{
"name": "CSS",
"bytes": "343640"
},
{
"name": "HTML",
"bytes": "463138"
},
{
"name": "JavaScript",
"bytes": "2551863"
},
{
"name": "PHP",
"bytes": "18333"
},
{
"name": "Python",
"bytes": "38444"
},
{
"name": "Shell",
"bytes": "4407"
}
],
"symlink_target": ""
} |
// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See full license at the bottom of this file.
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Threading.Tasks;
using Windows.Data.Json;
using Windows.Storage;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Media.Imaging;
using System.IO;
using System.Net;
using System.Text;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using Office365RESTExplorerforSites.Helpers;
// The data model represents a hierarchical organization of objects as follows
// DataSource -> DataGroups -> DataItems -> ResponseItem
// -> RequestItem
// All the objects are read from the InitialData.json file except for the ResponseItem object.
// ResponseItem object is created by issuing a request to the REST endpoint in the GetResponseAsync method
// DataGroups are used to populate the page that shows the SharePoint objects (lists, list items, documents)
// DataItems are used to populate the page that has the REST request and response. Usually, these are the CRUD operations.
namespace Office365RESTExplorerforSites.Data
{
/// <summary>
/// A data source object that models an HTTP response. Note that this object doesn't have a representation in the InitialData.json file
/// </summary>
public class ResponseItem
{
public ResponseItem(Uri responseUri, string status, JsonObject headers, string body)
{
this.ResponseUri = responseUri;
this.Status = status;
this.Headers = headers;
this.Body = body;
}
public Uri ResponseUri { get; private set; }
public JsonObject Headers { get; private set; }
public string Body { get; private set; }
public string Status { get; private set; }
}
/// <summary>
/// A data source object that models an HTTP request. The InitialData.json file has one RequestItem object for eevery DataItem
/// </summary>
public class RequestItem : INotifyPropertyChanged
{
public RequestItem(Uri apiUrl, string method, JsonObject headers, string body)
{
this.ApiUrl = apiUrl.OriginalString;
// Validate that the method is either "GET" or "POST"
if (String.Compare(method, "GET", StringComparison.CurrentCultureIgnoreCase) != 0
&& String.Compare(method, "POST", StringComparison.CurrentCultureIgnoreCase) != 0)
throw new ArgumentOutOfRangeException("method", "The HTTP method can only be GET or POST.");
else
this.Method = method;
this.Headers = headers;
this.Body = body;
}
public string ApiUrl { get; set; }
public JsonObject Headers { get; set; }
public string Body { get; set; }
public string Method { get; set; }
public event PropertyChangedEventHandler PropertyChanged;
// This method is called by the Set accessor of each property.
// The CallerMemberName attribute that is applied to the optional propertyName
// parameter causes the property name of the caller to be substituted as an argument.
private void NotifyPropertyChanged([CallerMemberName] String propertyName = "")
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
/// <summary>
/// Item data model. An item one of the CRUD operations that appear in the InitialData.json file
/// </summary>
public class DataItem : INotifyPropertyChanged
{
private ResponseItem response;
public DataItem(String uniqueId, String title, String subtitle, String imagePath)
{
this.UniqueId = uniqueId;
this.Title = title;
this.Subtitle = subtitle;
this.ImagePath = imagePath;
}
public string UniqueId { get; private set; }
public string Title { get; private set; }
public string Subtitle { get; private set; }
public string ImagePath { get; private set; }
public RequestItem Request { get; set; }
public ResponseItem Response {
get
{
return response;
}
set
{
response = value;
// Notify the UI that the response property has changed.
PropertyChangedEventHandler handler = PropertyChanged;
PropertyChangedEventArgs e = new PropertyChangedEventArgs("Response");
if (handler != null)
{
handler(this, e);
}
}
}
public override string ToString()
{
return this.Title;
}
public event PropertyChangedEventHandler PropertyChanged;
// This method is called by the Set accessor of each property.
// The CallerMemberName attribute that is applied to the optional propertyName
// parameter causes the property name of the caller to be substituted as an argument.
private void NotifyPropertyChanged([CallerMemberName] String propertyName = "")
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
/// <summary>
/// Group data model. A group is each one of the SharePoint elements, for now those are lists, list items, and documents.
/// Every group has items in it, usually CRUD operations.
/// </summary>
public class DataGroup
{
public DataGroup(String uniqueId, String title, String subtitle, String imagePath, String moreInfoText, Uri moreInfoUri)
{
this.UniqueId = uniqueId;
this.Title = title;
this.Subtitle = subtitle;
this.ImagePath = imagePath;
this.MoreInfoText = moreInfoText;
this.MoreInfoUri = moreInfoUri;
this.Items = new ObservableCollection<DataItem>();
}
public string UniqueId { get; private set; }
public string Title { get; private set; }
public string Subtitle { get; private set; }
public string ImagePath { get; private set; }
public Uri MoreInfoUri { get; private set; }
public string MoreInfoText { get; private set; }
public ObservableCollection<DataItem> Items { get; private set; }
public override string ToString()
{
return this.Title;
}
}
/// <summary>
/// Creates a collection of groups and items with content read from a static json file.
/// DataSource initializes with data read from a static json file included in the
/// project. This provides sample data at both design-time and run-time.
/// It also provides a method to issues a request to a REST endpoint and get a response object
/// </summary>
public sealed class DataSource
{
private static DataSource _dataSource = new DataSource();
private ObservableCollection<DataGroup> _groups = new ObservableCollection<DataGroup>();
public ObservableCollection<DataGroup> Groups
{
get { return this._groups; }
}
public static async Task<IEnumerable<DataGroup>> GetGroupsAsync()
{
await _dataSource.GetSampleDataAsync();
return _dataSource.Groups;
}
public static void Clear()
{
_dataSource.Groups.Clear();
}
public static async Task<DataGroup> GetGroupAsync(string uniqueId)
{
await _dataSource.GetSampleDataAsync();
// Simple linear search is acceptable for small data sets
var matches = _dataSource.Groups.Where((group) => group.UniqueId.Equals(uniqueId));
if (matches.Count() == 1) return matches.First();
return null;
}
public static async Task<DataItem> GetItemAsync(string uniqueId)
{
await _dataSource.GetSampleDataAsync();
// Simple linear search is acceptable for small data sets
var matches = _dataSource.Groups.SelectMany(group => group.Items).Where((item) => item.UniqueId.Equals(uniqueId));
if (matches.Count() == 1) return matches.First();
return null;
}
public static async Task<ResponseItem> GetResponseAsync(RequestItem request)
{
HttpWebRequest endpointRequest;
//Validate that the resulting URI is well-formed.
Uri endpointUri = new Uri(new Uri(AuthenticationHelper.ServiceResourceId), request.ApiUrl);
endpointRequest = (HttpWebRequest)HttpWebRequest.Create(endpointUri.AbsoluteUri);
endpointRequest.Method = request.Method;
// Add the headers to the request
foreach (KeyValuePair<string, IJsonValue> header in request.Headers)
{
// Accept and contenttype are special cases that must be added using the Accept and ContentType properties
// All other headers can be added using the Headers collection
switch (header.Key.ToLower())
{
case "accept":
endpointRequest.Accept = header.Value.GetString();
break;
case "content-type":
endpointRequest.ContentType = header.Value.GetString();
break;
default:
endpointRequest.Headers[header.Key] = header.Value.GetString();
break;
}
}
//Request body, added to the request only if method is POST
if (request.Method == "POST")
{
// If the request is a create or update file operation, we use the rawBody parameter
// otherwise we use the request.Body
string postData = request.Body;
UTF8Encoding encoding = new UTF8Encoding();
byte[] byte1 = encoding.GetBytes(postData);
System.IO.Stream newStream = await endpointRequest.GetRequestStreamAsync();
newStream.Write(byte1, 0, byte1.Length);
}
Stream responseStream;
WebHeaderCollection responseHeaders;
string status;
Uri responseUri;
JsonObject headers = null;
string body = null;
string responseString = string.Empty;
try
{
// If the request is successful we can use the endpointResponse object
HttpWebResponse endpointResponse = (HttpWebResponse)await endpointRequest.GetResponseAsync();
status = (int)endpointResponse.StatusCode + " - " + endpointResponse.StatusDescription;
responseStream = endpointResponse.GetResponseStream();
responseUri = endpointResponse.ResponseUri;
responseHeaders = endpointResponse.Headers;
}
catch (WebException we)
{
// If the request fails, we must use the response stream from the exception
status = we.Message;
responseStream = we.Response.GetResponseStream();
responseUri = we.Response.ResponseUri;
responseHeaders = we.Response.Headers;
}
using (StreamReader reader = new StreamReader(responseStream, Encoding.UTF8))
{
responseString = await reader.ReadToEndAsync();
}
// Free resources used by the stream
responseStream.Dispose();
if (!String.IsNullOrEmpty(responseString))
{
body = responseString;
}
headers = new JsonObject();
for (int i = 0; i < responseHeaders.Count; i++)
{
string key = responseHeaders.AllKeys[i].ToString();
headers.Add(key, JsonValue.CreateStringValue(responseHeaders[key]));
}
return new ResponseItem(responseUri, status, headers, body);
}
private async Task GetSampleDataAsync()
{
Uri dataUri = new Uri("ms-appx:///DataModel/InitialData.json");
StorageFile file = await StorageFile.GetFileFromApplicationUriAsync(dataUri);
string jsonText = await FileIO.ReadTextAsync(file);
// Ensure that we have a valid access token before updating the data
string accessToken = await AuthenticationHelper.EnsureAccessTokenAvailableAsync();
lock (this.Groups)
{
if (this.Groups.Count != 0)
return;
JsonObject jsonObject = JsonObject.Parse(jsonText);
JsonArray jsonArray = jsonObject["Groups"].GetArray();
foreach (JsonValue groupValue in jsonArray)
{
JsonObject groupObject = groupValue.GetObject();
DataGroup group = new DataGroup(groupObject["UniqueId"].GetString(),
groupObject["Title"].GetString(),
groupObject["Subtitle"].GetString(),
groupObject["ImagePath"].GetString(),
groupObject["MoreInfoText"].GetString(),
new Uri(groupObject["MoreInfoUri"].GetString()));
foreach (JsonValue itemValue in groupObject["Items"].GetArray())
{
JsonObject itemObject = itemValue.GetObject();
JsonObject requestObject = itemObject["Request"].GetObject();
//Add the Authorization header with the access token.
JsonObject jsonHeaders = requestObject["Headers"].GetObject();
jsonHeaders["Authorization"] = JsonValue.CreateStringValue(jsonHeaders["Authorization"].GetString()
+ accessToken);
// The body can be a JSON object or string, we need to
// determine the type of JSON value and use the right
// method to get the value.
string strBody;
if (requestObject["Body"].ValueType == JsonValueType.Object)
{
strBody = requestObject["Body"].GetObject().Stringify();
}
else if (requestObject["Body"].ValueType == JsonValueType.String)
{
strBody = requestObject["Body"].GetString();
}
else
{
throw new NotSupportedException("The body should only be of value JSON object or JSON string.");
}
//Create the request object
RequestItem request = new RequestItem(new Uri(requestObject["ApiUrl"].GetString(), UriKind.Relative),
requestObject["Method"].GetString(),
jsonHeaders,
strBody);
//Create the data item object
DataItem item = new DataItem(itemObject["UniqueId"].GetString(),
itemObject["Title"].GetString(),
itemObject["Subtitle"].GetString(),
itemObject["ImagePath"].GetString()
);
// Add the request object to the item
item.Request = request;
//Add the item to the group
group.Items.Add(item);
}
this.Groups.Add(group);
}
}
}
}
}
//*********************************************************
//
//Office-365-REST-API-Explorer, https://github.com/OfficeDev/Office-365-REST-API-Explorer
//
//Copyright (c) Microsoft Corporation
//All rights reserved.
//
//MIT License:
//
//Permission is hereby granted, free of charge, to any person obtaining
//a copy of this software and associated documentation files (the
//""Software""), to deal in the Software without restriction, including
//without limitation the rights to use, copy, modify, merge, publish,
//distribute, sublicense, and/or sell copies of the Software, and to
//permit persons to whom the Software is furnished to do so, subject to
//the following conditions:
//
//The above copyright notice and this permission notice shall be
//included in all copies or substantial portions of the Software.
//
//THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND,
//EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
//MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
//NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
//LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
//OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
//WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//********************************************************* | {
"content_hash": "5eb809915dab3780b11a1ceb5421f425",
"timestamp": "",
"source": "github",
"line_count": 419,
"max_line_length": 139,
"avg_line_length": 43.00238663484487,
"alnum_prop": 0.5728715728715729,
"repo_name": "tupham81/Office-365-REST-API-Explorer",
"id": "dca971f485b45ccf079cac9e829a874e3741a1d8",
"size": "18020",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "Office365RESTAPIExplorer/DataModel/RESTDataSource.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "C#",
"bytes": "120568"
},
{
"name": "Smalltalk",
"bytes": "4170"
}
],
"symlink_target": ""
} |
package org.knowm.xchange.bleutrade.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
public class DepositRecord {
public final String id;
public final String timestamp;
public final BigDecimal amount;
public final String label;
public final String coin;
public DepositRecord(
@JsonProperty("Id") String id,
@JsonProperty("TimeStamp") String timestamp,
@JsonProperty("Amount") BigDecimal amount,
@JsonProperty("Label") String label,
@JsonProperty("Coin") String coin) {
this.id = id;
this.timestamp = timestamp;
this.amount = amount;
this.label = label;
this.coin = coin;
}
@Override
public String toString() {
return "DepositRecord{"
+ "id='"
+ id
+ '\''
+ ", timestamp='"
+ timestamp
+ '\''
+ ", amount="
+ amount
+ ", label='"
+ label
+ '\''
+ ", coin='"
+ coin
+ '\''
+ '}';
}
}
| {
"content_hash": "04efc64b95fcf170c9af9805f67c4792",
"timestamp": "",
"source": "github",
"line_count": 45,
"max_line_length": 53,
"avg_line_length": 22.644444444444446,
"alnum_prop": 0.5691854759568205,
"repo_name": "chrisrico/XChange",
"id": "d0c45a03a2ec6ceab1747cc788efb62a3cca0911",
"size": "1019",
"binary": false,
"copies": "11",
"ref": "refs/heads/develop",
"path": "xchange-bleutrade/src/main/java/org/knowm/xchange/bleutrade/dto/DepositRecord.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "8654212"
}
],
"symlink_target": ""
} |
body {
cursor: url('http://www.rw-designer.com/cursor-view/96741.png'), default;
}
| {
"content_hash": "0a42e2b3685579ef9cb689a29a35f46e",
"timestamp": "",
"source": "github",
"line_count": 3,
"max_line_length": 74,
"avg_line_length": 28,
"alnum_prop": 0.6904761904761905,
"repo_name": "josefelq/rly-sky",
"id": "0fdec42307c6478912717be8f27d6ef526f62821",
"size": "84",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "css/main.css",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "84"
},
{
"name": "HTML",
"bytes": "611"
},
{
"name": "JavaScript",
"bytes": "17157"
}
],
"symlink_target": ""
} |
const mockDevice = {
registerGpio: jest.fn(() => Promise.resolve()),
unregisterGpio: jest.fn(() => Promise.resolve()),
};
jest.mock("../../../device", () => ({ getDevice: () => mockDevice }));
jest.mock("../../../api/crud", () => ({ destroy: jest.fn() }));
import {
PinBindingType, PinBindingSpecialAction,
} from "farmbot/dist/resources/api_resources";
const mockData = [{
pin_number: 1, sequence_id: undefined,
special_action: PinBindingSpecialAction.sync,
binding_type: PinBindingType.special,
uuid: ""
}];
jest.mock("../tagged_pin_binding_init", () => ({
sysBtnBindingData: mockData,
sysBtnBindings: [1]
}));
import * as React from "react";
import { mount } from "enzyme";
import {
buildResourceIndex,
} from "../../../__test_support__/resource_index_builder";
import { TaggedSequence } from "farmbot";
import {
fakeSequence, fakePinBinding,
} from "../../../__test_support__/fake_state/resources";
import { destroy } from "../../../api/crud";
import { PinBindingsList } from "../pin_bindings_list";
import { PinBindingsListProps } from "../interfaces";
import { sysBtnBindingData } from "../tagged_pin_binding_init";
import { error } from "../../../toast/toast";
describe("<PinBindingsList/>", () => {
function fakeProps(): PinBindingsListProps {
const fakeResources: TaggedSequence[] = [fakeSequence(), fakeSequence()];
fakeResources[0].body.id = 1;
fakeResources[0].body.name = "Sequence 1";
fakeResources[1].body.id = 2;
fakeResources[1].body.name = "Sequence 2";
const resources = buildResourceIndex(fakeResources).index;
return {
pinBindings: [
{ pin_number: 10, sequence_id: 1 },
{ pin_number: 11, sequence_id: 2 },
],
dispatch: jest.fn(),
resources: resources,
};
}
it("renders", () => {
const wrapper = mount(<PinBindingsList {...fakeProps()} />);
["pi gpio 10", "sequence 1", "pi gpio 11", "sequence 2"].map(string =>
expect(wrapper.text().toLowerCase()).toContain(string));
const buttons = wrapper.find("button");
expect(buttons.length).toBe(2);
});
it("unregisters pin: api", () => {
const p = fakeProps();
const s = fakeSequence();
s.body.id = 1;
const b = fakePinBinding();
p.resources = buildResourceIndex([b, s]).index;
p.pinBindings = [{ pin_number: 10, sequence_id: 1, uuid: b.uuid }];
const wrapper = mount(<PinBindingsList {...p} />);
const buttons = wrapper.find("button");
buttons.first().simulate("click");
expect(mockDevice.unregisterGpio).not.toHaveBeenCalled();
expect(destroy).toHaveBeenCalledWith(expect.stringContaining("PinBinding"));
});
it("restricts deletion of built-in bindings", () => {
const p = fakeProps();
p.pinBindings = sysBtnBindingData;
const wrapper = mount(<PinBindingsList {...p} />);
const buttons = wrapper.find("button");
buttons.first().simulate("click");
expect(mockDevice.unregisterGpio).not.toHaveBeenCalled();
expect(destroy).not.toHaveBeenCalled();
expect(error).toHaveBeenCalledWith(
expect.stringContaining("Cannot delete"));
});
});
| {
"content_hash": "ef6a894cecf1405b8c761bb93cfba748",
"timestamp": "",
"source": "github",
"line_count": 90,
"max_line_length": 80,
"avg_line_length": 34.644444444444446,
"alnum_prop": 0.6430404105195638,
"repo_name": "FarmBot/Farmbot-Web-API",
"id": "485b84af65902ecd0d42dcb64cc1120439139b5f",
"size": "3118",
"binary": false,
"copies": "3",
"ref": "refs/heads/soil_height",
"path": "frontend/settings/pin_bindings/__tests__/pin_bindings_list_test.tsx",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "62380"
},
{
"name": "HTML",
"bytes": "28417"
},
{
"name": "JavaScript",
"bytes": "101562"
},
{
"name": "Ruby",
"bytes": "268353"
},
{
"name": "Shell",
"bytes": "610"
},
{
"name": "TypeScript",
"bytes": "604078"
}
],
"symlink_target": ""
} |
using System;
namespace Azure.Search.Documents.Indexes.Models
{
/// <summary> A customer-managed encryption key in Azure Key Vault. Keys that you create and manage can be used to encrypt or decrypt data-at-rest in Azure Cognitive Search, such as indexes and synonym maps. </summary>
public partial class SearchResourceEncryptionKey
{
/// <summary> Initializes a new instance of SearchResourceEncryptionKey. </summary>
/// <param name="keyName"> The name of your Azure Key Vault key to be used to encrypt your data at rest. </param>
/// <param name="keyVersion"> The version of your Azure Key Vault key to be used to encrypt your data at rest. </param>
/// <param name="VaultUri"> The URI of your Azure Key Vault, also referred to as DNS name, that contains the key to be used to encrypt your data at rest. An example URI might be https://my-keyvault-name.vault.azure.net. </param>
/// <param name="accessCredentialsInternal"> Optional Azure Active Directory credentials used for accessing your Azure Key Vault. Not required if using managed identity instead. </param>
internal SearchResourceEncryptionKey(string keyName, string keyVersion, string VaultUri, AzureActiveDirectoryApplicationCredentials accessCredentialsInternal)
{
KeyName = keyName;
KeyVersion = keyVersion;
_vaultUri = VaultUri;
AccessCredentialsInternal = accessCredentialsInternal;
}
}
}
| {
"content_hash": "d6123de4a390efca144d0843849c66bd",
"timestamp": "",
"source": "github",
"line_count": 22,
"max_line_length": 236,
"avg_line_length": 67.54545454545455,
"alnum_prop": 0.7187079407806191,
"repo_name": "jackmagic313/azure-sdk-for-net",
"id": "68c2462ff2254cd548523dd09b1278a2b6047d69",
"size": "1624",
"binary": false,
"copies": "7",
"ref": "refs/heads/master",
"path": "sdk/search/Azure.Search.Documents/src/Generated/Models/SearchResourceEncryptionKey.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "15958"
},
{
"name": "C#",
"bytes": "175000108"
},
{
"name": "CSS",
"bytes": "5585"
},
{
"name": "HTML",
"bytes": "225966"
},
{
"name": "JavaScript",
"bytes": "13014"
},
{
"name": "PowerShell",
"bytes": "201417"
},
{
"name": "Shell",
"bytes": "13061"
},
{
"name": "Smarty",
"bytes": "11127"
},
{
"name": "TypeScript",
"bytes": "141835"
}
],
"symlink_target": ""
} |
require "pathname"
require "rails/generators/base"
require "rails/generators/rails/encryption_key_file/encryption_key_file_generator"
require "active_support/encrypted_file"
module Rails
module Generators
class MasterKeyGenerator < Base
MASTER_KEY_PATH = Pathname.new("config/master.key")
def add_master_key_file
unless MASTER_KEY_PATH.exist?
key = ActiveSupport::EncryptedFile.generate_key
log "Adding #{MASTER_KEY_PATH} to store the master encryption key: #{key}"
log ""
log "Save this in a password manager your team can access."
log ""
log "If you lose the key, no one, including you, can access anything encrypted with it."
log ""
add_master_key_file_silently(key)
log ""
end
end
def add_master_key_file_silently(key = nil)
key_file_generator.add_key_file_silently(MASTER_KEY_PATH, key)
end
def ignore_master_key_file
key_file_generator.ignore_key_file(MASTER_KEY_PATH, ignore: key_ignore)
end
def ignore_master_key_file_silently
key_file_generator.ignore_key_file_silently(MASTER_KEY_PATH, ignore: key_ignore)
end
private
def key_file_generator
EncryptionKeyFileGenerator.new([], options)
end
def key_ignore
[ "", "# Ignore master key for decrypting credentials and more.", "/#{MASTER_KEY_PATH}", "" ].join("\n")
end
end
end
end
| {
"content_hash": "e2f0454aab1df1706b93ddd6ef9887b2",
"timestamp": "",
"source": "github",
"line_count": 49,
"max_line_length": 114,
"avg_line_length": 30.571428571428573,
"alnum_prop": 0.6348464619492656,
"repo_name": "odedniv/rails",
"id": "7f57340c114db1d9f6d88d86513d704ff5400a89",
"size": "1529",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "railties/lib/rails/generators/rails/master_key/master_key_generator.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "34354"
},
{
"name": "CoffeeScript",
"bytes": "40518"
},
{
"name": "HTML",
"bytes": "202985"
},
{
"name": "JavaScript",
"bytes": "98658"
},
{
"name": "Ruby",
"bytes": "11087847"
},
{
"name": "Yacc",
"bytes": "968"
}
],
"symlink_target": ""
} |
'''
Affine invariant feature-based image matching sample.
This sample is similar to find_obj.py, but uses the affine transformation
space sampling technique, called ASIFT [1]. While the original implementation
is based on SIFT, you can try to use SURF or ORB detectors instead. Homography RANSAC
is used to reject outliers. Threading is used for faster affine sampling.
[1] http://www.ipol.im/pub/algo/my_affine_sift/
USAGE
asift.py [--feature=<sift|surf|orb|brisk>[-flann]] [ <image1> <image2> ]
--feature - Feature to use. Can be sift, surf, orb or brisk. Append '-flann'
to feature name to use Flann-based matcher instead bruteforce.
Press left mouse button on a feature point to see its matching point.
'''
# Python 2/3 compatibility
from __future__ import print_function
import numpy as np
import cv2
# built-in modules
import itertools as it
from multiprocessing.pool import ThreadPool
# local modules
from common import Timer
from find_obj import init_feature, filter_matches, explore_match
def affine_skew(tilt, phi, img, mask=None):
'''
affine_skew(tilt, phi, img, mask=None) -> skew_img, skew_mask, Ai
Ai - is an affine transform matrix from skew_img to img
'''
h, w = img.shape[:2]
if mask is None:
mask = np.zeros((h, w), np.uint8)
mask[:] = 255
A = np.float32([[1, 0, 0], [0, 1, 0]])
if phi != 0.0:
phi = np.deg2rad(phi)
s, c = np.sin(phi), np.cos(phi)
A = np.float32([[c,-s], [ s, c]])
corners = [[0, 0], [w, 0], [w, h], [0, h]]
tcorners = np.int32( np.dot(corners, A.T) )
x, y, w, h = cv2.boundingRect(tcorners.reshape(1,-1,2))
A = np.hstack([A, [[-x], [-y]]])
img = cv2.warpAffine(img, A, (w, h), flags=cv2.INTER_LINEAR, borderMode=cv2.BORDER_REPLICATE)
if tilt != 1.0:
s = 0.8*np.sqrt(tilt*tilt-1)
img = cv2.GaussianBlur(img, (0, 0), sigmaX=s, sigmaY=0.01)
img = cv2.resize(img, (0, 0), fx=1.0/tilt, fy=1.0, interpolation=cv2.INTER_NEAREST)
A[0] /= tilt
if phi != 0.0 or tilt != 1.0:
h, w = img.shape[:2]
mask = cv2.warpAffine(mask, A, (w, h), flags=cv2.INTER_NEAREST)
Ai = cv2.invertAffineTransform(A)
return img, mask, Ai
def affine_detect(detector, img, mask=None, pool=None):
'''
affine_detect(detector, img, mask=None, pool=None) -> keypoints, descrs
Apply a set of affine transormations to the image, detect keypoints and
reproject them into initial image coordinates.
See http://www.ipol.im/pub/algo/my_affine_sift/ for the details.
ThreadPool object may be passed to speedup the computation.
'''
params = [(1.0, 0.0)]
for t in 2**(0.5*np.arange(1,6)):
for phi in np.arange(0, 180, 72.0 / t):
params.append((t, phi))
def f(p):
t, phi = p
timg, tmask, Ai = affine_skew(t, phi, img)
keypoints, descrs = detector.detectAndCompute(timg, tmask)
for kp in keypoints:
x, y = kp.pt
kp.pt = tuple( np.dot(Ai, (x, y, 1)) )
if descrs is None:
descrs = []
return keypoints, descrs
keypoints, descrs = [], []
if pool is None:
ires = it.imap(f, params)
else:
ires = pool.imap(f, params)
for i, (k, d) in enumerate(ires):
print('affine sampling: %d / %d\r' % (i+1, len(params)), end='')
keypoints.extend(k)
descrs.extend(d)
print()
return keypoints, np.array(descrs)
if __name__ == '__main__':
print(__doc__)
import sys, getopt
opts, args = getopt.getopt(sys.argv[1:], '', ['feature='])
opts = dict(opts)
feature_name = opts.get('--feature', 'brisk-flann')
try:
fn1, fn2 = args
except:
fn1 = '../data/aero1.jpg'
fn2 = '../data/aero3.jpg'
img1 = cv2.imread(fn1, 0)
img2 = cv2.imread(fn2, 0)
detector, matcher = init_feature(feature_name)
if img1 is None:
print('Failed to load fn1:', fn1)
sys.exit(1)
if img2 is None:
print('Failed to load fn2:', fn2)
sys.exit(1)
if detector is None:
print('unknown feature:', feature_name)
sys.exit(1)
print('using', feature_name)
pool=ThreadPool(processes = cv2.getNumberOfCPUs())
kp1, desc1 = affine_detect(detector, img1, pool=pool)
kp2, desc2 = affine_detect(detector, img2, pool=pool)
print('img1 - %d features, img2 - %d features' % (len(kp1), len(kp2)))
def match_and_draw(win):
with Timer('matching'):
raw_matches = matcher.knnMatch(desc1, trainDescriptors = desc2, k = 2) #2
p1, p2, kp_pairs = filter_matches(kp1, kp2, raw_matches)
if len(p1) >= 4:
H, status = cv2.findHomography(p1, p2, cv2.RANSAC, 5.0)
print('%d / %d inliers/matched' % (np.sum(status), len(status)))
# do not draw outliers (there will be a lot of them)
kp_pairs = [kpp for kpp, flag in zip(kp_pairs, status) if flag]
else:
H, status = None, None
print('%d matches found, not enough for homography estimation' % len(p1))
explore_match(win, img1, img2, kp_pairs, None, H)
match_and_draw('affine find_obj')
cv2.waitKey()
cv2.destroyAllWindows()
| {
"content_hash": "27f62bdd7e8ef5f51be44f4561efd3cb",
"timestamp": "",
"source": "github",
"line_count": 161,
"max_line_length": 101,
"avg_line_length": 32.838509316770185,
"alnum_prop": 0.5969358804615094,
"repo_name": "zzjkf2009/Midterm_Astar",
"id": "f2b0e7999535df29dd4e1c3c1221d3f04f13db61",
"size": "5310",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "opencv/samples/python/asift.py",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "7310"
},
{
"name": "C",
"bytes": "1157337"
},
{
"name": "C#",
"bytes": "42254"
},
{
"name": "C++",
"bytes": "28411379"
},
{
"name": "CMake",
"bytes": "810399"
},
{
"name": "CSS",
"bytes": "4784"
},
{
"name": "Clojure",
"bytes": "1487"
},
{
"name": "Cuda",
"bytes": "1699447"
},
{
"name": "HLSL",
"bytes": "3314"
},
{
"name": "HTML",
"bytes": "220169"
},
{
"name": "Java",
"bytes": "831255"
},
{
"name": "JavaScript",
"bytes": "113900"
},
{
"name": "Makefile",
"bytes": "2690"
},
{
"name": "Objective-C",
"bytes": "44625"
},
{
"name": "Objective-C++",
"bytes": "211774"
},
{
"name": "Perl",
"bytes": "15867"
},
{
"name": "PowerShell",
"bytes": "14589"
},
{
"name": "Python",
"bytes": "911972"
},
{
"name": "Scala",
"bytes": "5683"
},
{
"name": "Shell",
"bytes": "16088"
},
{
"name": "TeX",
"bytes": "34757"
}
],
"symlink_target": ""
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Rhino.Service.Models
{
public class TagTree
{
public string Name { get; set; }
public string Tags { get; set; }
}
} | {
"content_hash": "ae052b3882a6f7cc89c5046549ce77ca",
"timestamp": "",
"source": "github",
"line_count": 14,
"max_line_length": 40,
"avg_line_length": 17.214285714285715,
"alnum_prop": 0.6556016597510373,
"repo_name": "jomit/Rhino",
"id": "269eaa87836cdbd252177b58ea8d64f18efd86bb",
"size": "243",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Rhino.Service/Models/TagTree.cs",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ASP",
"bytes": "420"
},
{
"name": "C#",
"bytes": "72392"
},
{
"name": "CSS",
"bytes": "27430"
},
{
"name": "JavaScript",
"bytes": "89072"
}
],
"symlink_target": ""
} |
package no.uib.cipr.matrix;
import no.uib.cipr.matrix.DenseMatrix;
import no.uib.cipr.matrix.Matrix;
import no.uib.cipr.matrix.QR;
/**
* QR test
*/
public class QRTest extends OrthogonalTestAbstract {
public QRTest(String arg0) {
super(arg0);
}
public void testStaticFactorize() {
assertEquals(A, QR.factorize(A));
}
public void testRepeatStaticFactorize() {
assertEquals(A, QR.factorize(A));
assertEquals(A, QR.factorize(A));
}
public void testFactor() {
QR qr = new QR(A.numRows(), A.numColumns());
assertEquals(A, qr.factor(new DenseMatrix(A)));
}
public void testRepeatFactor() {
QR qr = new QR(A.numRows(), A.numColumns());
qr.factor(new DenseMatrix(A));
assertEquals(A, qr);
qr.factor(new DenseMatrix(A));
assertEquals(A, qr);
}
public void testStaticFactorizeNonSquare() {
assertEquals(Ar, QR.factorize(Ar));
}
public void testRepeatStaticFactorizeNonSquare() {
assertEquals(Ar, QR.factorize(Ar));
assertEquals(Ar, QR.factorize(Ar));
}
public void testFactorNonSquare() {
QR qr = new QR(Ar.numRows(), Ar.numColumns());
assertEquals(Ar, qr.factor(new DenseMatrix(Ar)));
}
public void testRepeatFactorNonSquare() {
QR qr = new QR(Ar.numRows(), Ar.numColumns());
qr.factor(new DenseMatrix(Ar));
assertEquals(Ar, qr);
qr.factor(new DenseMatrix(Ar));
assertEquals(Ar, qr);
}
private void assertEquals(Matrix A, QR qr) {
assertEquals(A, qr.getQ().mult(qr.getR(), A.copy().zero()));
}
}
| {
"content_hash": "7b81047c0e15722f142cf623cf7cf87b",
"timestamp": "",
"source": "github",
"line_count": 66,
"max_line_length": 68,
"avg_line_length": 25.151515151515152,
"alnum_prop": 0.6126506024096385,
"repo_name": "rabbanyk/CommunityEvaluation",
"id": "25b2a1be778ef729c95af150ad5ef1e366d3e288",
"size": "2485",
"binary": false,
"copies": "5",
"ref": "refs/heads/master",
"path": "libs/matrix-toolkits-java-mtj-1.0.1/src/test/java/no/uib/cipr/matrix/QRTest.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "769"
},
{
"name": "C",
"bytes": "122861"
},
{
"name": "C++",
"bytes": "8332365"
},
{
"name": "CSS",
"bytes": "4366"
},
{
"name": "Gnuplot",
"bytes": "502"
},
{
"name": "Java",
"bytes": "2362406"
},
{
"name": "Jupyter Notebook",
"bytes": "514615"
},
{
"name": "Makefile",
"bytes": "19561"
},
{
"name": "Python",
"bytes": "120651"
},
{
"name": "R",
"bytes": "3332"
},
{
"name": "Shell",
"bytes": "16196"
},
{
"name": "TeX",
"bytes": "43052"
}
],
"symlink_target": ""
} |
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M5.6,12.45V11.525H18.4V12.45Z"/>
</vector>
| {
"content_hash": "077deb62e71b0bf405c6a2a1b205a4bf",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 66,
"avg_line_length": 34.8,
"alnum_prop": 0.7011494252873564,
"repo_name": "google/material-design-icons",
"id": "57b23f90b2fc332c0e9b2e5904998737b7fe470c",
"size": "348",
"binary": false,
"copies": "8",
"ref": "refs/heads/master",
"path": "symbols/android/remove/materialsymbolssharp/remove_wght200gradN25_24px.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
from __future__ import absolute_import, unicode_literals
from functools import wraps
import time
import celery
from celery.schedules import crontab
from elasticsearch.helpers import scan
from elasticsearch.exceptions import NotFoundError
from oclubs.access import done, database, elasticsearch, redis
from oclubs.access.redis import r_url_celery
from oclubs.app import app as flask_app
from oclubs.enums import UserType
from oclubs.objs import Activity, Club, User, Upload
from oclubs.objs.base import Property
app = celery.Celery(
'oclubsbackend',
backend=r_url_celery + '1',
broker=r_url_celery + '2'
)
app.conf.update(
CELERY_TASK_SERIALIZER='json',
CELERY_ACCEPT_CONTENT=['json'], # Ignore other content
CELERY_RESULT_SERIALIZER='json',
CELERY_TASK_RESULT_EXPIRES=30 * 24 * 3600,
CELERY_TIMEZONE='Asia/Shanghai',
CELERYBEAT_SCHEDULE={
'rebuild_elasticsearch_night': {
'task': 'oclubs.worker.rebuild_elasticsearch',
'schedule': crontab(minute=47, hour=3),
},
# DISABLED due to admin unable to fetch new account passwords
# 'refresh_user_holiday_weekend_night': {
# 'task': 'oclubs.worker.refresh_user',
# 'schedule': crontab(minute=23, hour=2, day_of_week='sunday',
# month_of_year='1,2,7,8'),
# },
}
)
def handle_app_context(func):
@wraps(func)
def decorated_function(*args, **kwargs):
with flask_app.app_context():
try:
ret = func(*args, **kwargs)
done(True)
return ret
except:
done(False)
raise
return decorated_function
# This part does not work anymore, do not use this
# @app.task()
# @handle_app_context
# def refresh_user(authority):
# ours = database.fetch_multirow(
# 'user',
# {
# 'user_login_name': 'sid',
# 'user_id': 'uid',
# },
# [
# ('!=', 'user_password', None),
# ('=', 'user_type', UserType.STUDENT.value)
# ]
# )
# ours = {data['sid']: data['uid'] for data in ours}
#
# union = set(ours).union(authority)
#
# for sid in union:
# if sid in authority:
# if sid in ours:
# _update_account.delay(ours[sid], authority[sid])
# else:
# _create_account.delay(authority[sid])
# else:
# if sid in ours:
# _disable_account.delay(ours[sid])
# else:
# assert False # This is an impossibility
@app.task()
@handle_app_context
def _disable_account(uid):
u = User(uid)
u.password = None
u.grade = None
u.currentclass = None
print 'DISABLED USER ID %d' % u.id
def _user_refresh(u, authority):
u.studentid = authority['UNIONID']
u.passportname = authority['NAMEEN']
if 'GRADENAME' in authority:
u.grade = int(authority['GRADENAME'])
if 'STUCLASSNAME' in authority:
u.currentclass = int(authority['STUCLASSNAME'])
if 'EMAILADDRESS' in authority:
u.email = authority['EMAILADDRESS']
@app.task()
@handle_app_context
def _create_account(authority, _type='STUDENT', haspassword=True):
u = User.new()
u.studentid = ''
u.passportname = ''
u.email = ''
u.phone = None
u.grade = None
u.currentclass = None
u.initalized = False
_user_refresh(u, authority)
u.password = None
u.nickname = u.passportname
u.picture = Upload(-1)
u.type = UserType[_type]
u.create(True)
if haspassword:
redis.RedisCache('tempuserpw:' + str(u.id), 3600 * 48).set(password)
print 'CREATED USER ID %d' % u.id
@app.task()
@handle_app_context
def _update_account(uid, authority):
u = User(uid)
_user_refresh(u, authority)
print 'UPDATED USER ID %d' % u.id
@app.task()
@handle_app_context
def rebuild_elasticsearch():
types = {
Club: {
'conds': [('=', 'club_inactive', False)]
},
Activity: {}
}
for cls, params in types.items():
db_ids = database.fetch_onecol(
cls.table,
cls.identifier,
params.get('conds', [])
)
db_ids = set(int(x) for x in db_ids)
if db_ids:
db_max = max(db_ids)
else:
db_max = 0
try:
es_ids = scan(
elasticsearch.es,
index='oclubs',
doc_type=cls.table,
size=10000000,
query={
'query': {'match_all': {}},
'size': 10000,
'fields': ['_id']
})
es_ids = (d['_id'] for d in es_ids)
es_ids = set(int(x) for x in es_ids)
except NotFoundError:
es_ids = []
if es_ids:
es_max = max(es_ids)
else:
es_max = 0
max_id = max(db_max, es_max)
cls_searchprops = [
prop.name for prop in [
getattr(cls, propname) for propname in dir(cls)
] if isinstance(prop, Property) and prop.search
]
for i in xrange(1, max_id + 1):
time.sleep(0.01)
if i in db_ids:
obj = cls(i)
db_data = {}
for propname in cls_searchprops:
db_data[propname] = (
getattr(cls, propname).search(getattr(obj, propname)))
if i in es_ids:
es_data = elasticsearch.get(cls.table, i)
if db_data == es_data:
print 'TYPE %s ID %d MATCH' % (cls.table, i)
else:
print 'UPDATED ES TYPE %s ID %d' % (cls.table, i)
elasticsearch.update(cls.table, i, db_data)
else:
print 'CREATED ES TYPE %s ID %d' % (cls.table, i)
elasticsearch.create(cls.table, i, db_data)
else:
if i in es_ids:
print 'DELETED ES TYPE %s ID %d' % (cls.table, i)
elasticsearch.delete(cls.table, i)
else:
print 'TYPE %s ID %d DOES NOT EXIST' % (cls.table, i)
pass
| {
"content_hash": "9691816b40833af0feee559ad5dd4a95",
"timestamp": "",
"source": "github",
"line_count": 222,
"max_line_length": 78,
"avg_line_length": 28.725225225225227,
"alnum_prop": 0.5220323035910303,
"repo_name": "SHSIDers/oclubs",
"id": "e88045cbe6feba07da0ddf6f65d7a9d8342e8ad0",
"size": "6427",
"binary": false,
"copies": "1",
"ref": "refs/heads/centos7",
"path": "oclubs/worker.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "54317"
},
{
"name": "HTML",
"bytes": "15923"
},
{
"name": "JavaScript",
"bytes": "14697"
},
{
"name": "Puppet",
"bytes": "12155"
},
{
"name": "Python",
"bytes": "257513"
},
{
"name": "Shell",
"bytes": "8110"
}
],
"symlink_target": ""
} |
package org.apache.sentry.provider.db.service.thrift;
import org.junit.BeforeClass;
public class TestSentryServiceForPoolWithKerberos extends TestSentryServiceWithKerberos {
@BeforeClass
public static void setup() throws Exception {
kerberos = true;
haEnabled = false;
pooled = true;
beforeSetup();
setupConf();
startSentryService();
afterSetup();
}
} | {
"content_hash": "2156ef173cac78335c1c745d7dc5fa6c",
"timestamp": "",
"source": "github",
"line_count": 20,
"max_line_length": 89,
"avg_line_length": 19.55,
"alnum_prop": 0.7263427109974424,
"repo_name": "apache/incubator-sentry",
"id": "bd3c1ccba0a5b2e9863042f9a12f76b613c2041a",
"size": "1203",
"binary": false,
"copies": "6",
"ref": "refs/heads/master",
"path": "sentry-provider/sentry-provider-db/src/test/java/org/apache/sentry/provider/db/service/thrift/TestSentryServiceForPoolWithKerberos.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "4846"
},
{
"name": "HTML",
"bytes": "5005"
},
{
"name": "Java",
"bytes": "3922648"
},
{
"name": "JavaScript",
"bytes": "22225"
},
{
"name": "PLpgSQL",
"bytes": "410"
},
{
"name": "Python",
"bytes": "11367"
},
{
"name": "SQLPL",
"bytes": "30"
},
{
"name": "Shell",
"bytes": "27225"
},
{
"name": "Thrift",
"bytes": "27270"
},
{
"name": "XSLT",
"bytes": "25595"
}
],
"symlink_target": ""
} |
using Lucene.Net.Analysis.Core;
using NUnit.Framework;
using System.IO;
namespace Lucene.Net.Analysis.Miscellaneous
{
public class TestScandinavianFoldingFilter : BaseTokenStreamTestCase
{
private Analyzer analyzer = new AnalyzerAnonymousInnerClassHelper();
private class AnalyzerAnonymousInnerClassHelper : Analyzer
{
public AnalyzerAnonymousInnerClassHelper()
{
}
protected override TokenStreamComponents CreateComponents(string fieldName, TextReader reader)
{
Tokenizer tokenizer = new MockTokenizer(reader, MockTokenizer.WHITESPACE, false);
TokenStream stream = new ScandinavianFoldingFilter(tokenizer);
return new TokenStreamComponents(tokenizer, stream);
}
}
[Test]
public virtual void Test()
{
CheckOneTerm(analyzer, "aeäaeeea", "aaaeea"); // should not cause ArrayOutOfBoundsException
CheckOneTerm(analyzer, "aeäaeeeae", "aaaeea");
CheckOneTerm(analyzer, "aeaeeeae", "aaeea");
CheckOneTerm(analyzer, "bøen", "boen");
CheckOneTerm(analyzer, "åene", "aene");
CheckOneTerm(analyzer, "blåbærsyltetøj", "blabarsyltetoj");
CheckOneTerm(analyzer, "blaabaarsyltetoej", "blabarsyltetoj");
CheckOneTerm(analyzer, "blåbärsyltetöj", "blabarsyltetoj");
CheckOneTerm(analyzer, "raksmorgas", "raksmorgas");
CheckOneTerm(analyzer, "räksmörgås", "raksmorgas");
CheckOneTerm(analyzer, "ræksmørgås", "raksmorgas");
CheckOneTerm(analyzer, "raeksmoergaas", "raksmorgas");
CheckOneTerm(analyzer, "ræksmörgaos", "raksmorgas");
CheckOneTerm(analyzer, "ab", "ab");
CheckOneTerm(analyzer, "ob", "ob");
CheckOneTerm(analyzer, "Ab", "Ab");
CheckOneTerm(analyzer, "Ob", "Ob");
CheckOneTerm(analyzer, "å", "a");
CheckOneTerm(analyzer, "aa", "a");
CheckOneTerm(analyzer, "aA", "a");
CheckOneTerm(analyzer, "ao", "a");
CheckOneTerm(analyzer, "aO", "a");
CheckOneTerm(analyzer, "AA", "A");
CheckOneTerm(analyzer, "Aa", "A");
CheckOneTerm(analyzer, "Ao", "A");
CheckOneTerm(analyzer, "AO", "A");
CheckOneTerm(analyzer, "æ", "a");
CheckOneTerm(analyzer, "ä", "a");
CheckOneTerm(analyzer, "Æ", "A");
CheckOneTerm(analyzer, "Ä", "A");
CheckOneTerm(analyzer, "ae", "a");
CheckOneTerm(analyzer, "aE", "a");
CheckOneTerm(analyzer, "Ae", "A");
CheckOneTerm(analyzer, "AE", "A");
CheckOneTerm(analyzer, "ö", "o");
CheckOneTerm(analyzer, "ø", "o");
CheckOneTerm(analyzer, "Ö", "O");
CheckOneTerm(analyzer, "Ø", "O");
CheckOneTerm(analyzer, "oo", "o");
CheckOneTerm(analyzer, "oe", "o");
CheckOneTerm(analyzer, "oO", "o");
CheckOneTerm(analyzer, "oE", "o");
CheckOneTerm(analyzer, "Oo", "O");
CheckOneTerm(analyzer, "Oe", "O");
CheckOneTerm(analyzer, "OO", "O");
CheckOneTerm(analyzer, "OE", "O");
}
/// <summary>
/// check that the empty string doesn't cause issues </summary>
[Test]
public virtual void TestEmptyTerm()
{
Analyzer a = new AnalyzerAnonymousInnerClassHelper2(this);
CheckOneTerm(a, "", "");
}
private class AnalyzerAnonymousInnerClassHelper2 : Analyzer
{
private readonly TestScandinavianFoldingFilter outerInstance;
public AnalyzerAnonymousInnerClassHelper2(TestScandinavianFoldingFilter outerInstance)
{
this.outerInstance = outerInstance;
}
protected override TokenStreamComponents CreateComponents(string fieldName, TextReader reader)
{
Tokenizer tokenizer = new KeywordTokenizer(reader);
return new TokenStreamComponents(tokenizer, new ScandinavianFoldingFilter(tokenizer));
}
}
/// <summary>
/// blast some random strings through the analyzer </summary>
[Test]
public virtual void TestRandomData()
{
CheckRandomData(Random(), analyzer, 1000 * RANDOM_MULTIPLIER);
}
}
} | {
"content_hash": "a53463cc87d1118ed689b79579489eda",
"timestamp": "",
"source": "github",
"line_count": 131,
"max_line_length": 106,
"avg_line_length": 34.54961832061068,
"alnum_prop": 0.5757843570481661,
"repo_name": "laimis/lucenenet",
"id": "9c1f248bf8a2bba585e04fb7a34a7791380ef2b1",
"size": "5371",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/Lucene.Net.Tests.Analysis.Common/Analysis/Miscellaneous/TestScandinavianFoldingFilter.cs",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Batchfile",
"bytes": "4805"
},
{
"name": "C#",
"bytes": "41089688"
},
{
"name": "Gnuplot",
"bytes": "2444"
},
{
"name": "HTML",
"bytes": "79746"
},
{
"name": "PowerShell",
"bytes": "73932"
},
{
"name": "XSLT",
"bytes": "21773"
}
],
"symlink_target": ""
} |
/**
OutSystems - Mobile Services
João Gonçalves - 28/04/2015
*/
function FacebookToken() {
}
exports.saveToken = function (successCallback, errorCallback, token, username) {
cordova.exec(successCallback, errorCallback, "FacebookToken", "saveToken", [token, username]);
}; | {
"content_hash": "383d16097da05e75303b4947c09f451f",
"timestamp": "",
"source": "github",
"line_count": 10,
"max_line_length": 98,
"avg_line_length": 27.9,
"alnum_prop": 0.7347670250896058,
"repo_name": "jrmunson/Android-Dev",
"id": "1982c6a57abfc1bcebb128c4b876ab090fa070a2",
"size": "281",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "outsystems-app-android/Outsytems/plugins/com.os.mobile.facebooktoken/www/FacebookToken.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "11293"
},
{
"name": "C#",
"bytes": "271555"
},
{
"name": "C++",
"bytes": "646809"
},
{
"name": "CSS",
"bytes": "18827"
},
{
"name": "HTML",
"bytes": "93041"
},
{
"name": "Java",
"bytes": "3614415"
},
{
"name": "JavaScript",
"bytes": "905849"
},
{
"name": "Objective-C",
"bytes": "427966"
},
{
"name": "Objective-C++",
"bytes": "36131"
},
{
"name": "QML",
"bytes": "11832"
}
],
"symlink_target": ""
} |
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/menu_search"
android:icon="@drawable/ic_search_24dp"
android:title="@string/search"
app:actionViewClass="android.widget.Image"
app:showAsAction="always" />
</menu> | {
"content_hash": "5249ba7a7f1d2ccb1ad20ad489edeb1d",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 64,
"avg_line_length": 30.307692307692307,
"alnum_prop": 0.6446700507614214,
"repo_name": "pablo-johnson/LimaGo",
"id": "50d706ee982bb371247d315db3668d9dd14527e6",
"size": "394",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/src/main/res/menu/menu_search.xml",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "55309"
}
],
"symlink_target": ""
} |
<testConfig>
<deployConfig>deploy-vcenter-ipsec.xml</deployConfig>
<deployConfigTemplate>deploy.tmpt</deployConfigTemplate>
<!-- suite special test variables -->
<pingTestTarget>zstack.org</pingTestTarget>
</testConfig>
| {
"content_hash": "c912286e8c8bc43f846fdd95fee71c31",
"timestamp": "",
"source": "github",
"line_count": 6,
"max_line_length": 60,
"avg_line_length": 39.333333333333336,
"alnum_prop": 0.75,
"repo_name": "zstackio/zstack-woodpecker",
"id": "d38e5df1cf6691e7b76ef7f2e1964a81083b98c2",
"size": "236",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "integrationtest/vm/vcenter/test-config-vcenter-ipsec.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Dockerfile",
"bytes": "2356"
},
{
"name": "Go",
"bytes": "49822"
},
{
"name": "Makefile",
"bytes": "687"
},
{
"name": "Puppet",
"bytes": "875"
},
{
"name": "Python",
"bytes": "13070596"
},
{
"name": "Shell",
"bytes": "177861"
}
],
"symlink_target": ""
} |
pkill nm-applet; sleep 2; nohup nm-applet &
| {
"content_hash": "3f1596e4ef5e4aa6f4fc6e2b7654a68c",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 43,
"avg_line_length": 44,
"alnum_prop": 0.7272727272727273,
"repo_name": "borisjoffe/scripts",
"id": "9a5ab8a94c26f1e78ad964c3ffd0e26231118edd",
"size": "44",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "nmapplet-restart.sh",
"mode": "33261",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "1435"
},
{
"name": "Ruby",
"bytes": "367"
},
{
"name": "Shell",
"bytes": "51559"
}
],
"symlink_target": ""
} |
<?php
defined('JPATH_PLATFORM') or die;
use Joomla\Registry\Registry;
/**
* Form Rule class for the Joomla Platform.
* Requires the value entered be one of the options in a field of type="list"
*
* @since 11.1
*/
class JFormRuleOptions extends JFormRule
{
/**
* Method to test the value.
*
* @param SimpleXMLElement $element The SimpleXMLElement object representing the `<field>` tag for the form field object.
* @param mixed $value The form field value to validate.
* @param string $group The field name group control value. This acts as as an array container for the field.
* For example if the field has name="foo" and the group value is set to "bar" then the
* full field name would end up being "bar[foo]".
* @param Registry $input An optional Registry object with the entire data set to validate against the entire form.
* @param JForm $form The form object for which the field is being tested.
*
* @return boolean True if the value is valid, false otherwise.
*
* @since 11.1
*/
public function test(SimpleXMLElement $element, $value, $group = null, Registry $input = null, JForm $form = null)
{
// Make an array of all available option values.
$options = array();
foreach ($element->option as $opt)
{
$options[] = $opt->attributes()->value;
}
// There may be multiple values in the form of an array (if the element is checkboxes, for example).
if (is_array($value))
{
// If all values are in the $options array, $diff will be empty and the options valid.
$diff = array_diff($value, $options);
return empty($diff);
}
else
{
// In this case value must be a string
return in_array((string) $value, $options);
}
}
}
| {
"content_hash": "b2a486271436ee2be96bdb67c6988ab9",
"timestamp": "",
"source": "github",
"line_count": 55,
"max_line_length": 130,
"avg_line_length": 33.69090909090909,
"alnum_prop": 0.6335671883432272,
"repo_name": "yaelduckwen/libriastore",
"id": "c0b45f7393fb85fc4176d10b9eff5d722db476ee",
"size": "2081",
"binary": false,
"copies": "141",
"ref": "refs/heads/master",
"path": "joomla/libraries/joomla/form/rule/options.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ApacheConf",
"bytes": "44"
},
{
"name": "CSS",
"bytes": "2779463"
},
{
"name": "HTML",
"bytes": "26380"
},
{
"name": "JavaScript",
"bytes": "2813038"
},
{
"name": "PHP",
"bytes": "24821947"
},
{
"name": "PLpgSQL",
"bytes": "2393"
},
{
"name": "SQLPL",
"bytes": "17688"
}
],
"symlink_target": ""
} |
"""This module contains methods to produce a formatted string to be sent through the Telegram API.
"""
import math
import html
import itertools
import logging
import exceptions
import constants
from objects.answer import TelegramAnswer
from objects.answer import TelegramCallbackAnswer
from objects.answer import TelegramInlineAnswer
logger = logging.getLogger("output_formatter")
def _escapeHtml(text):
text = text.replace("&", "&")
text = text.replace("<","<")
text = text.replace(">", ">")
return text
def _bold(text):
return "<b>" + text + "</b>"
def _italic(text):
return "<i>" + text + "</i>"
def _link(link, label):
return "<a href=\"" + link + "\">" + label + "</a>"
def _appendList(originalString, listToAppend, separator, ending):
for elem in listToAppend:
originalString += _escapeHtml(elem) + separator
offset = len(separator)
originalString = originalString[:-offset]
originalString += ending
return originalString
def _formatGameTitle(game):
s = _bold(_escapeHtml(game.name.title()))
if game.year is not None:
s += " (" + game.year + ")"
s += "\n"
return s
def _formatGameInfo(game):
s = ""
if game.numDesigners() > 0:
if 1 == game.numDesigners():
s += _italic("Designer: ")
else:
s += _italic("Designers: ")
s = _appendList(s, game.getDesigners(), ", ", ".\n")
if game.numArtists() > 0:
if 1 == game.numArtists():
s += _italic("Artist: ")
else:
s += _italic("Artists: ")
s = _appendList(s, game.getArtists(), ", ", ".\n")
if game.average is not None:
try:
rating = str(round(float(game.average), 1))
if "." in rating:
rating = rating.rstrip("0").rstrip(".")
# remove decimal part if zero
s += _italic("Rating: ") + rating + "\n"
except ValueError:
# just skip the average, which is likely not available
logger.info("Game average is not a number: " + game.average)
if game.rank is not None:
s += _italic("Rank: ") + game.rank + "\n"
if game.playingTime is not None and "0" != game.playingTime:
s += _italic("Playing time: ") + game.playingTime + " minutes.\n"
if game.minPlayers is not None:
s += _italic("Players: ") + game.minPlayers
if game.maxPlayers is not None:
if game.minPlayers is None:
s += _italic("Players: ") + game.maxPlayers
elif game.maxPlayers > game.minPlayers:
s += " - " + game.maxPlayers
return s + "\n"
def _formatGameDescription(game):
if len(game.description) > 800:
return _escapeHtml(html.unescape(game.description[:800])) + "...\n"
else:
return _escapeHtml(html.unescape(game.description)) + "\n"
def _formatGameThumbnail(game):
if game.thumbnail is not None:
return _link(game.thumbnail, "Cover") + "\n"
return ""
def _formatGameLink(game):
return _link(game.link, "Read on BoardGameGeek.") + "\n"
def _formatGameBodyLess(game):
"""Formats the body of an answer containing a game, inserting only basic info.
Args:
game (game.Game): an object containing all the information on the game.
Returns:
str: a formatted string with the information to be sent.
"""
s = _formatGameTitle(game) + "\n"
s += _formatGameInfo(game)
s += _formatGameThumbnail(game)
s += _formatGameLink(game)
return s
def _formatGameBodyMore(game):
"""Formats the body of an answer containing a game, inserting additional info.
Args:
game (game.Game): an object containing all the information on the game.
Returns:
str: a formatted string with the information to be sent.
"""
s = _formatGameTitle(game) + "\n"
s += _formatGameDescription(game)
s += _formatGameLink(game)
return s
def _formatGameListBody(gameList):
"""Formats the body of an answer containing a game list.
Args:
gameList (game.GameList): an object containing all the information on the game list.
Returns:
str: a formatted string with the information to be sent.
"""
s = ""
offset = gameList.offset
limit = offset + constants.LIST_PAGE_SIZE
count = offset + 1
for game in itertools.islice(gameList.gameList, offset, limit):
s += u"►" # Unicode symbol to indicate element in list
s += " " + str(count) + "." # element number
s += " " + _bold(_escapeHtml(game.name.title()))
if game.year is not None:
s += " (" + game.year + ")"
s += " - ID: /" + game.id_ + "\n"
count += 1
return s
def formatGame(game, more=False):
"""Formats an answer containing a game, creating the body and attaching the markup.
Args:
game (game.Game): an object containing all the information on the game.
more (bool): True if the answer should show additional info.
Returns:
.answer.TelegramAnswer: an object containing all the information to be sent.
"""
if(more):
formattedGameBody = _formatGameBodyMore(game)
disableWebPagePreview = True
text = "Game Info"
callback_data = "gl" + str(game.id_)
else:
formattedGameBody = _formatGameBodyLess(game)
disableWebPagePreview = False
text = "Description"
callback_data = "gm" + str(game.id_)
keyboard = [[dict(text=text, callback_data=callback_data), dict(text="Share", switch_inline_query="i " + game.id_)]]
return TelegramAnswer(formattedGameBody, inlineKeyboardMarkup=keyboard, disableWebPagePreview=disableWebPagePreview)
def formatInlineGame(game):
"""Formats an answer containing a game to be sent inline.
Args:
game (game.Game): an object containing all the information on the game.
Returns:
.answer.TelegramInlineAnswer: an object containing all the information to be sent.
"""
formattedGameBody = _formatGameBodyLess(game)
return TelegramInlineAnswer(formattedGameBody, game.id_, game.name.title(), game.thumbnail)
def formatGameList(gameList):
"""Formats an answer containing a game list, creating the body and attaching the markup.
Args:
gameList (game.GameList): an object containing all the information on the game list.
Returns:
.answer.TelegramAnswer: an object containing all the information to be sent.
"""
formattedGameListBody = _formatGameListBody(gameList)
keyboard = []
offset = gameList.offset
totalSize = len(gameList.gameList)
callback_data = gameList.originalSearch + constants.CALLBACK_DATA_SEPARATOR + str(offset)
buttonList = []
if offset > 0:
entry = dict(text="Back", callback_data="lp" + callback_data)
buttonList.append(entry)
if offset + constants.LIST_PAGE_SIZE < totalSize:
entry = dict(text="Next", callback_data="ln" + callback_data)
buttonList.append(entry)
if buttonList:
keyboard.append(buttonList)
return TelegramAnswer(formattedGameListBody, inlineKeyboardMarkup=keyboard if keyboard else None)
"""Following methods format various error messages."""
def formatNoResultFound():
return TelegramAnswer("No result found!")
def formatBggUnreachable():
return TelegramAnswer("Sorry, it was not possible to contact Boardgamegeek servers. Try again later!")
def formatCommandNotSupported(command):
return TelegramAnswer("Sorry, " + _bold("/" + command) + " is not a valid command.")
def formatHistoryNotFound():
return TelegramAnswer("Sorry, last search not found in the history. Try to start a new search.")
def formatHistoryNotFoundCallback():
return TelegramCallbackAnswer("Sorry, last search not found in the history. Try to start a new search.")
def formatGameListIndexNotValid(index):
return TelegramAnswer("Error, " + index + " is not a valid search index (out of bound).")
def formatStaleList():
return TelegramCallbackAnswer("The inline keyboard only works with the most recent searches.")
def formatBadCallbackData():
return TelegramCallbackAnswer("This callback action is not supported, please try to start a new search.")
def formatHelp():
"""Formats a description of this bot usage.
Returns:
.answer.TelegramAnswer: The description of how to use this bot.
"""
s = "This bot brings the power of " + _link("https://boardgamegeek.com/", "BoardGameGeek") + " into Telegram. The sky's the limit now."
s += "\n\n" + _bold("Commands:") + "\n"
for c in constants.COMMAND_DESCRIPTIONS:
s += c + " - " + constants.COMMAND_DESCRIPTIONS[c] + "\n"
s += "\n" + _bold("Inline Commands:") + "\n"
for c in constants.INLINE_COMMAND_DESCRIPTIONS:
s += c + " - " + constants.INLINE_COMMAND_DESCRIPTIONS[c] + "\n"
s += "\nFor info about how inline mode works, see" + _link("https://telegram.org/blog/inline-bots", " the official guide") + "."
return TelegramAnswer(s)
| {
"content_hash": "ab90914d2145803ff8b9b304991a1fbc",
"timestamp": "",
"source": "github",
"line_count": 248,
"max_line_length": 139,
"avg_line_length": 36.53629032258065,
"alnum_prop": 0.6447411985432071,
"repo_name": "crash-g/BoardGameBot",
"id": "9909c766685c047fbfdbfa77371849e33e2cd34c",
"size": "9061",
"binary": false,
"copies": "1",
"ref": "refs/heads/github",
"path": "boardgamebot/tools/output_formatter.py",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Python",
"bytes": "70996"
}
],
"symlink_target": ""
} |
<?php
// https://developers.google.com/classroom/guides/sharebutton
$url = $CFG->wwwroot . '/gclass/launch';
?>
<h1>I am a share</h1>
<center>
<p>
Install in Google Classroom
</p>
<script src="https://apis.google.com/js/platform.js" async defer></script>
<g:sharetoclassroom url="<?= $url ?>" size="32"></g:sharetoclassroom>
</center>
| {
"content_hash": "9114372c910ef839b435847676f0e77b",
"timestamp": "",
"source": "github",
"line_count": 15,
"max_line_length": 74,
"avg_line_length": 22.533333333333335,
"alnum_prop": 0.6804733727810651,
"repo_name": "csev/tsugi",
"id": "ce05ecf256b10ab4bc54586b8b6c099642ce267b",
"size": "338",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "gclass/share.php",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "ApacheConf",
"bytes": "1926"
},
{
"name": "PHP",
"bytes": "223714"
}
],
"symlink_target": ""
} |
Some service attributes, such as _forward-number_ for supplementary-service and _limit_ for reccuring-bucket can be changed by issue a PATCH request on the _/ecc/v1/subscriptions/{type}:{id}/services/{sid}_ path. The body of the request shall include the attribute to change.
**Example Command:**
```
curl --request PATCH \
--data '{"forward-number" : "467012312345"}' \
--header "Content-type: application/json" \
--header "Accept: application/json" \
https://user:[email protected]/ecc/v1/subscriptions/msisdn:46708421488/subscriptions/cfnr
```
**Example Request:**
```
PATCH /ecc/v1/subscriptions/msisdn:46708421488/services/cfnr HTTP/1.1
Host: api.ecc.symsoft.com
Authorization: Basic c3VwZXI6c3VwZXI=
User-Agent: curl/7.43.0
Accept: application/json
Content-Type: application/json
Content-Length: 61
{
"forward-number" : "467012312345"
}
```
**Example Response:**
```
HTTP/1.1 202 Accepted
Server: Nobill/5.3.0
Content-Type: application/json;charset=UTF-8
Date: Thu, 10 Mar 2016 15:39:18 GMT
Content-Length: 26
{
"orders": [
20144
]
}
```
| {
"content_hash": "0b60fac30e7f34ff875a6cd78fbd9348",
"timestamp": "",
"source": "github",
"line_count": 46,
"max_line_length": 275,
"avg_line_length": 23.47826086956522,
"alnum_prop": 0.725,
"repo_name": "symsoft/ecc-api-guide",
"id": "116eb99632d16d587dd66002837d22847d2151ce",
"size": "1100",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "modify_service.md",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "18"
}
],
"symlink_target": ""
} |
package org.jhotdraw.samples.net;
import org.jhotdraw.framework.*;
import org.jhotdraw.standard.*;
import org.jhotdraw.figures.*;
import org.jhotdraw.util.*;
import java.util.*;
import java.util.List;
import java.awt.*;
/**
* @version <$CURRENT_VERSION$>
*/
public class NodeFigure extends TextFigure {
private static final int BORDER = 6;
private List fConnectors;
private boolean fConnectorsVisible;
public NodeFigure() {
initialize();
fConnectors = null;
}
public Rectangle displayBox() {
Rectangle box = super.displayBox();
int d = BORDER;
box.grow(d, d);
return box;
}
public boolean containsPoint(int x, int y) {
// add slop for connectors
if (fConnectorsVisible) {
Rectangle r = displayBox();
int d = LocatorConnector.SIZE/2;
r.grow(d, d);
return r.contains(x, y);
}
return super.containsPoint(x, y);
}
private void drawBorder(Graphics g) {
Rectangle r = displayBox();
g.setColor(getFrameColor());
g.drawRect(r.x, r.y, r.width-1, r.height-1);
}
public void draw(Graphics g) {
super.draw(g);
drawBorder(g);
drawConnectors(g);
}
public HandleEnumeration handles() {
ConnectionFigure prototype = new LineConnection();
List handles = CollectionsFactory.current().createList();
handles.add(new ConnectionHandle(this, RelativeLocator.east(), prototype));
handles.add(new ConnectionHandle(this, RelativeLocator.west(), prototype));
handles.add(new ConnectionHandle(this, RelativeLocator.south(), prototype));
handles.add(new ConnectionHandle(this, RelativeLocator.north(), prototype));
handles.add(new NullHandle(this, RelativeLocator.southEast()));
handles.add(new NullHandle(this, RelativeLocator.southWest()));
handles.add(new NullHandle(this, RelativeLocator.northEast()));
handles.add(new NullHandle(this, RelativeLocator.northWest()));
return new HandleEnumerator(handles);
}
private void drawConnectors(Graphics g) {
if (fConnectorsVisible) {
Iterator iter = connectors();
while (iter.hasNext()) {
((Connector)iter.next()).draw(g);
}
}
}
/**
*/
public void connectorVisibility(boolean isVisible, ConnectionFigure courtingConnection) {
fConnectorsVisible = isVisible;
invalidate();
}
/**
*/
public Connector connectorAt(int x, int y) {
return findConnector(x, y);
}
/**
*/
private Iterator connectors() {
if (fConnectors == null) {
createConnectors();
}
return fConnectors.iterator();
}
private void createConnectors() {
fConnectors = CollectionsFactory.current().createList(4);
fConnectors.add(new LocatorConnector(this, RelativeLocator.north()) );
fConnectors.add(new LocatorConnector(this, RelativeLocator.south()) );
fConnectors.add(new LocatorConnector(this, RelativeLocator.west()) );
fConnectors.add(new LocatorConnector(this, RelativeLocator.east()) );
}
private Connector findConnector(int x, int y) {
// return closest connector
long min = Long.MAX_VALUE;
Connector closest = null;
Iterator iter = connectors();
while (iter.hasNext()) {
Connector c = (Connector)iter.next();
Point p2 = Geom.center(c.displayBox());
long d = Geom.length2(x, y, p2.x, p2.y);
if (d < min) {
min = d;
closest = c;
}
}
return closest;
}
private void initialize() {
setText("node");
Font fb = new Font("Helvetica", Font.BOLD, 12);
setFont(fb);
createConnectors();
}
/**
* Usually, a TextHolders is implemented by a Figure subclass. To avoid casting
* a TextHolder to a Figure this method can be used for polymorphism (in this
* case, let the (same) object appear to be of another type).
* Note, that the figure returned is not the figure to which the TextHolder is
* (and its representing figure) connected.
* @return figure responsible for representing the content of this TextHolder
*/
public Figure getRepresentingFigure() {
return this;
}
}
| {
"content_hash": "85382b88e1ca5878df86436db6ff939a",
"timestamp": "",
"source": "github",
"line_count": 146,
"max_line_length": 90,
"avg_line_length": 26.58219178082192,
"alnum_prop": 0.7031692862664262,
"repo_name": "mmohan01/ReFactory",
"id": "26e080159c5a69bcacafa7c4233f4953d647e5d6",
"size": "4212",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "data/jhotdraw/jhotdraw-6.0b1/org/jhotdraw/samples/net/NodeFigure.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "95"
},
{
"name": "HTML",
"bytes": "18697"
},
{
"name": "Java",
"bytes": "83306379"
}
],
"symlink_target": ""
} |
import * as Foundation from './foundation';
import { Controllers as PlatformControllers } from './platform';
Foundation.ApiServer
.bootStrap()
.createApplication()
.usePassport()
.useAuthorizationOn('/*')
.registerControllers(PlatformControllers)
.buildServices()
.listen(3000);
| {
"content_hash": "acbd768686af51a8b83cd0f6809a9123",
"timestamp": "",
"source": "github",
"line_count": 11,
"max_line_length": 64,
"avg_line_length": 28,
"alnum_prop": 0.7045454545454546,
"repo_name": "SlidingApps/typescript-rest-mongodb",
"id": "a33ab3aeb3976d46ab23175227e1192347b31a49",
"size": "309",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/server.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "TypeScript",
"bytes": "30729"
}
],
"symlink_target": ""
} |
package org.gradle.initialization.exception;
import org.codehaus.groovy.runtime.StackTraceUtils;
public class StackTraceSanitizingExceptionAnalyser implements ExceptionAnalyser {
private final ExceptionAnalyser analyser;
public StackTraceSanitizingExceptionAnalyser(ExceptionAnalyser analyser) {
this.analyser = analyser;
}
@Override
public RuntimeException transform(Throwable exception) {
return (RuntimeException) StackTraceUtils.deepSanitize(analyser.transform(exception));
}
}
| {
"content_hash": "d90eb6efafe09a04cbcdeef43713a0a2",
"timestamp": "",
"source": "github",
"line_count": 18,
"max_line_length": 94,
"avg_line_length": 29.333333333333332,
"alnum_prop": 0.7878787878787878,
"repo_name": "robinverduijn/gradle",
"id": "b7e355b76b6fcbc609cee5767a8c1628253d94ce",
"size": "1143",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "subprojects/core/src/main/java/org/gradle/initialization/exception/StackTraceSanitizingExceptionAnalyser.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Assembly",
"bytes": "277"
},
{
"name": "Brainfuck",
"bytes": "54"
},
{
"name": "C",
"bytes": "98580"
},
{
"name": "C++",
"bytes": "1805886"
},
{
"name": "CSS",
"bytes": "188237"
},
{
"name": "CoffeeScript",
"bytes": "620"
},
{
"name": "GAP",
"bytes": "424"
},
{
"name": "Gherkin",
"bytes": "191"
},
{
"name": "Groovy",
"bytes": "25537093"
},
{
"name": "HTML",
"bytes": "77104"
},
{
"name": "Java",
"bytes": "24906063"
},
{
"name": "JavaScript",
"bytes": "209481"
},
{
"name": "Kotlin",
"bytes": "2846791"
},
{
"name": "Objective-C",
"bytes": "840"
},
{
"name": "Objective-C++",
"bytes": "441"
},
{
"name": "Perl",
"bytes": "37849"
},
{
"name": "Python",
"bytes": "57"
},
{
"name": "Ruby",
"bytes": "16"
},
{
"name": "Scala",
"bytes": "29814"
},
{
"name": "Shell",
"bytes": "7212"
},
{
"name": "Swift",
"bytes": "6972"
},
{
"name": "XSLT",
"bytes": "42845"
}
],
"symlink_target": ""
} |
module CouchPotato
module ClassReloading
private
def with_class_reloading(&block)
begin
yield
rescue ArgumentError => e
if(name = e.message.scan(/(can't find const|undefined class\/module) ([\w\:]+)/).try(:first).try(:[], 1))
eval name.gsub(/\:+$/, '')
retry
else
raise e
end
end
end
end
View::ViewQuery.class_eval do
include ClassReloading
def query_view_with_class_reloading(*args)
with_class_reloading do
query_view_without_class_reloading(*args)
end
end
alias_method :query_view_without_class_reloading, :query_view
alias_method :query_view, :query_view_with_class_reloading
end
Database.class_eval do
include ClassReloading
def load_document_with_class_reloading(*args)
with_class_reloading do
load_document_without_class_reloading *args
end
end
alias_method :load_document_without_class_reloading, :load_document
alias_method :load_document, :load_document_with_class_reloading
alias_method :load, :load_document
end
end
| {
"content_hash": "443035d77fb5809c27a156e8c932c430",
"timestamp": "",
"source": "github",
"line_count": 47,
"max_line_length": 113,
"avg_line_length": 24.127659574468087,
"alnum_prop": 0.6384479717813051,
"repo_name": "langalex/couch_potato",
"id": "3743e0f4f898a073a7b691235cf338e9b6bf0efd",
"size": "1134",
"binary": false,
"copies": "4",
"ref": "refs/heads/main",
"path": "rails/reload_classes.rb",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Ruby",
"bytes": "224979"
}
],
"symlink_target": ""
} |
<div class="box-login">
<div class="spaceRunnerLogo"></div>
<div class="loginSuperContainer">
<div loader="resetPassword"></div>
<div ng-hide="isEmailTokenValid">
<p> Email link invalid, click below to go login help page </p>
<a class="btn btn-md btn-info btn-block" ng-click="go('forgotPassword')">Login help page</a>
</div>
<div ng-show="isEmailTokenValid">
<form class="form-login" role="form" name="formReset" validate-group novalidate>
<div class="LoginContainer">
<h4 class="form-login-heading">Reset Password</h4><br>
<div class="xyicon-input-group" id="newPW">
<input validate-password id="password" name="password" type="password" style="margin-bottom: 0;" class="xyicon-input-field" placeholder="New Password" data-ng-model="resetData.password">
<span class="xyicon-input-field-bar"></span>
<label class="label-sa" for="password">New Password <span style="color:red;">*</span></label>
</div>
<div class="xyicon-input-group">
<input validate-password-match="resetData.password" id="confirmPassword" name="confirmPassword" type="password" style="margin-bottom: 0;" class="xyicon-input-field" placeholder="Confirm New Password" data-ng-model="resetData.confirmPassword">
<span class="xyicon-input-field-bar"></span>
<label class="label-sa" for="confirmPassword">Confirm <span style="color:red;">*</span></label>
</div>
<ui-button-submit validate-submit data-ng-disabled="loading" name="submit" data-ng-click="resetPassword()" text="Submit"></ui-button-submit>
</div>
</form>
</div>
<div class="text-message" id="resetDiv">
<p class="text-success" data-ng-show="confirm">Your password has been changed. You'll now be redirected to login page.</p>
</div>
</div>
</div>
<div class="footer" data-ng-show="!session.token.isAuth">
<img src="{{img_url}}/Content/images/Xyicon_Logo_81by55.png" id="footerLogo" />
© 2000-2015 Xyicon
</div>
<style scoped>
body {
background-color: #f7f7f7;
}
html {
background: url("/Content/images/background_image.png");
background-size: 100% 100%;
}
</style> | {
"content_hash": "c67a8d1f28615867aec0c19816096229",
"timestamp": "",
"source": "github",
"line_count": 48,
"max_line_length": 266,
"avg_line_length": 52.083333333333336,
"alnum_prop": 0.582,
"repo_name": "pmabres/emerald2dWeb",
"id": "28678a5214917f8e54f93973336b0678cac61ece",
"size": "2500",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "www/app/auth/views/resetPassword.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "5149"
},
{
"name": "HTML",
"bytes": "22526"
},
{
"name": "JavaScript",
"bytes": "135145"
}
],
"symlink_target": ""
} |
package com.nicolas.coding.common;
import java.util.HashMap;
/**
* Created by chaochen on 14-10-30.
*/
public class EmojiTranslate {
public static HashMap<String, String> sEmojiMap = new HashMap<String, String>();
static {
sEmojiMap.put(new String(Character.toChars(0x0001F44D)), "+1");
sEmojiMap.put(new String(Character.toChars(0x0001F44E)), "-1");
sEmojiMap.put(new String(Character.toChars(0x0001F4AF)), "100");
sEmojiMap.put(new String(Character.toChars(0x0001F522)), "1234");
sEmojiMap.put(new String(Character.toChars(0x0001F3B1)), "8ball");
sEmojiMap.put(new String(Character.toChars(0x0001F170)), "a");
sEmojiMap.put(new String(Character.toChars(0x0001F18E)), "ab");
sEmojiMap.put(new String(Character.toChars(0x0001F524)), "abc");
sEmojiMap.put(new String(Character.toChars(0x0001F521)), "abcd");
sEmojiMap.put(new String(Character.toChars(0x0001F251)), "accept");
sEmojiMap.put(new String(Character.toChars(0x0001F6A1)), "aerial_tramway");
sEmojiMap.put(new String(Character.toChars(0x00002708)), "airplane");
sEmojiMap.put(new String(Character.toChars(0x000023F0)), "alarm_clock");
sEmojiMap.put(new String(Character.toChars(0x0001F47D)), "alien");
sEmojiMap.put(new String(Character.toChars(0x0001F691)), "ambulance");
sEmojiMap.put(new String(Character.toChars(0x00002693)), "anchor");
sEmojiMap.put(new String(Character.toChars(0x0001F47C)), "angel");
sEmojiMap.put(new String(Character.toChars(0x0001F4A2)), "anger");
sEmojiMap.put(new String(Character.toChars(0x0001F620)), "angry");
sEmojiMap.put(new String(Character.toChars(0x0001F627)), "anguished");
sEmojiMap.put(new String(Character.toChars(0x0001F41C)), "ant");
sEmojiMap.put(new String(Character.toChars(0x0001F34E)), "apple");
sEmojiMap.put(new String(Character.toChars(0x00002652)), "aquarius");
sEmojiMap.put(new String(Character.toChars(0x00002648)), "aries");
sEmojiMap.put(new String(Character.toChars(0x000025C0)), "arrow_backward");
sEmojiMap.put(new String(Character.toChars(0x000023EC)), "arrow_double_down");
sEmojiMap.put(new String(Character.toChars(0x000023EB)), "arrow_double_up");
sEmojiMap.put(new String(Character.toChars(0x00002B07)), "arrow_down");
sEmojiMap.put(new String(Character.toChars(0x0001F53D)), "arrow_down_small");
sEmojiMap.put(new String(Character.toChars(0x000025B6)), "arrow_forward");
sEmojiMap.put(new String(Character.toChars(0x00002935)), "arrow_heading_down");
sEmojiMap.put(new String(Character.toChars(0x00002934)), "arrow_heading_up");
sEmojiMap.put(new String(Character.toChars(0x00002B05)), "arrow_left");
sEmojiMap.put(new String(Character.toChars(0x00002199)), "arrow_lower_left");
sEmojiMap.put(new String(Character.toChars(0x00002198)), "arrow_lower_right");
sEmojiMap.put(new String(Character.toChars(0x000027A1)), "arrow_right");
sEmojiMap.put(new String(Character.toChars(0x000021AA)), "arrow_right_hook");
sEmojiMap.put(new String(Character.toChars(0x00002B06)), "arrow_up");
sEmojiMap.put(new String(Character.toChars(0x00002195)), "arrow_up_down");
sEmojiMap.put(new String(Character.toChars(0x0001F53C)), "arrow_up_small");
sEmojiMap.put(new String(Character.toChars(0x00002196)), "arrow_upper_left");
sEmojiMap.put(new String(Character.toChars(0x00002197)), "arrow_upper_right");
sEmojiMap.put(new String(Character.toChars(0x0001F503)), "arrows_clockwise");
sEmojiMap.put(new String(Character.toChars(0x0001F504)), "arrows_counterclockwise");
sEmojiMap.put(new String(Character.toChars(0x0001F3A8)), "art");
sEmojiMap.put(new String(Character.toChars(0x0001F69B)), "articulated_lorry");
sEmojiMap.put(new String(Character.toChars(0x0001F632)), "astonished");
sEmojiMap.put(new String(Character.toChars(0x0001F45F)), "athletic_shoe");
sEmojiMap.put(new String(Character.toChars(0x0001F3E7)), "atm");
sEmojiMap.put(new String(Character.toChars(0x0001F171)), "b");
sEmojiMap.put(new String(Character.toChars(0x0001F476)), "baby");
sEmojiMap.put(new String(Character.toChars(0x0001F37C)), "baby_bottle");
sEmojiMap.put(new String(Character.toChars(0x0001F424)), "baby_chick");
sEmojiMap.put(new String(Character.toChars(0x0001F6BC)), "baby_symbol");
sEmojiMap.put(new String(Character.toChars(0x0001F519)), "back");
sEmojiMap.put(new String(Character.toChars(0x0001F6C4)), "baggage_claim");
sEmojiMap.put(new String(Character.toChars(0x0001F388)), "balloon");
sEmojiMap.put(new String(Character.toChars(0x00002611)), "ballot_box_with_check");
sEmojiMap.put(new String(Character.toChars(0x0001F38D)), "bamboo");
sEmojiMap.put(new String(Character.toChars(0x0001F34C)), "banana");
sEmojiMap.put(new String(Character.toChars(0x0000203C)), "bangbang");
sEmojiMap.put(new String(Character.toChars(0x0001F3E6)), "bank");
sEmojiMap.put(new String(Character.toChars(0x0001F4CA)), "bar_chart");
sEmojiMap.put(new String(Character.toChars(0x0001F488)), "barber");
sEmojiMap.put(new String(Character.toChars(0x000026BE)), "baseball");
sEmojiMap.put(new String(Character.toChars(0x0001F3C0)), "basketball");
sEmojiMap.put(new String(Character.toChars(0x0001F6C0)), "bath");
sEmojiMap.put(new String(Character.toChars(0x0001F6C1)), "bathtub");
sEmojiMap.put(new String(Character.toChars(0x0001F50B)), "battery");
sEmojiMap.put(new String(Character.toChars(0x0001F43B)), "bear");
sEmojiMap.put(new String(Character.toChars(0x0001F41D)), "bee");
sEmojiMap.put(new String(Character.toChars(0x0001F37A)), "beer");
sEmojiMap.put(new String(Character.toChars(0x0001F37B)), "beers");
sEmojiMap.put(new String(Character.toChars(0x0001F41E)), "beetle");
sEmojiMap.put(new String(Character.toChars(0x0001F530)), "beginner");
sEmojiMap.put(new String(Character.toChars(0x0001F514)), "bell");
sEmojiMap.put(new String(Character.toChars(0x0001F371)), "bento");
sEmojiMap.put(new String(Character.toChars(0x0001F6B4)), "bicyclist");
sEmojiMap.put(new String(Character.toChars(0x0001F6B2)), "bike");
sEmojiMap.put(new String(Character.toChars(0x0001F459)), "bikini");
sEmojiMap.put(new String(Character.toChars(0x0001F426)), "bird");
sEmojiMap.put(new String(Character.toChars(0x0001F382)), "birthday");
sEmojiMap.put(new String(Character.toChars(0x000026AB)), "black_circle");
sEmojiMap.put(new String(Character.toChars(0x0001F0CF)), "black_joker");
sEmojiMap.put(new String(Character.toChars(0x00002B1B)), "black_large_square");
sEmojiMap.put(new String(Character.toChars(0x000025FE)), "black_medium_small_square");
sEmojiMap.put(new String(Character.toChars(0x000025FC)), "black_medium_square");
sEmojiMap.put(new String(Character.toChars(0x00002712)), "black_nib");
sEmojiMap.put(new String(Character.toChars(0x000025AA)), "black_small_square");
sEmojiMap.put(new String(Character.toChars(0x0001F532)), "black_square_button");
sEmojiMap.put(new String(Character.toChars(0x0001F33C)), "blossom");
sEmojiMap.put(new String(Character.toChars(0x0001F421)), "blowfish");
sEmojiMap.put(new String(Character.toChars(0x0001F4D8)), "blue_book");
sEmojiMap.put(new String(Character.toChars(0x0001F699)), "blue_car");
sEmojiMap.put(new String(Character.toChars(0x0001F499)), "blue_heart");
sEmojiMap.put(new String(Character.toChars(0x0001F60A)), "blush");
sEmojiMap.put(new String(Character.toChars(0x0001F417)), "boar");
sEmojiMap.put(new String(Character.toChars(0x000026F5)), "boat");
sEmojiMap.put(new String(Character.toChars(0x0001F4A3)), "bomb");
sEmojiMap.put(new String(Character.toChars(0x0001F4D6)), "book");
sEmojiMap.put(new String(Character.toChars(0x0001F516)), "bookmark");
sEmojiMap.put(new String(Character.toChars(0x0001F4D1)), "bookmark_tabs");
sEmojiMap.put(new String(Character.toChars(0x0001F4DA)), "books");
sEmojiMap.put(new String(Character.toChars(0x0001F4A5)), "boom");
sEmojiMap.put(new String(Character.toChars(0x0001F462)), "boot");
sEmojiMap.put(new String(Character.toChars(0x0001F490)), "bouquet");
sEmojiMap.put(new String(Character.toChars(0x0001F647)), "bow");
sEmojiMap.put(new String(Character.toChars(0x0001F3B3)), "bowling");
sEmojiMap.put(new String(Character.toChars(0x0001F466)), "boy");
sEmojiMap.put(new String(Character.toChars(0x0001F35E)), "bread");
sEmojiMap.put(new String(Character.toChars(0x0001F470)), "bride_with_veil");
sEmojiMap.put(new String(Character.toChars(0x0001F309)), "bridge_at_night");
sEmojiMap.put(new String(Character.toChars(0x0001F4BC)), "briefcase");
sEmojiMap.put(new String(Character.toChars(0x0001F494)), "broken_heart");
sEmojiMap.put(new String(Character.toChars(0x0001F41B)), "bug");
sEmojiMap.put(new String(Character.toChars(0x0001F4A1)), "bulb");
sEmojiMap.put(new String(Character.toChars(0x0001F685)), "bullettrain_front");
sEmojiMap.put(new String(Character.toChars(0x0001F684)), "bullettrain_side");
sEmojiMap.put(new String(Character.toChars(0x0001F68C)), "bus");
sEmojiMap.put(new String(Character.toChars(0x0001F68F)), "busstop");
sEmojiMap.put(new String(Character.toChars(0x0001F464)), "bust_in_silhouette");
sEmojiMap.put(new String(Character.toChars(0x0001F465)), "busts_in_silhouette");
sEmojiMap.put(new String(Character.toChars(0x0001F335)), "cactus");
sEmojiMap.put(new String(Character.toChars(0x0001F370)), "cake");
sEmojiMap.put(new String(Character.toChars(0x0001F4C6)), "calendar");
sEmojiMap.put(new String(Character.toChars(0x0001F4F2)), "calling");
sEmojiMap.put(new String(Character.toChars(0x0001F42B)), "camel");
sEmojiMap.put(new String(Character.toChars(0x0001F4F7)), "camera");
sEmojiMap.put(new String(Character.toChars(0x0000264B)), "cancer");
sEmojiMap.put(new String(Character.toChars(0x0001F36C)), "candy");
sEmojiMap.put(new String(Character.toChars(0x0001F520)), "capital_abcd");
sEmojiMap.put(new String(Character.toChars(0x00002651)), "capricorn");
sEmojiMap.put(new String(Character.toChars(0x0001F697)), "car");
sEmojiMap.put(new String(Character.toChars(0x0001F4C7)), "card_index");
sEmojiMap.put(new String(Character.toChars(0x0001F3A0)), "carousel_horse");
sEmojiMap.put(new String(Character.toChars(0x0001F431)), "cat");
sEmojiMap.put(new String(Character.toChars(0x0001F408)), "cat2");
sEmojiMap.put(new String(Character.toChars(0x0001F4BF)), "cd");
sEmojiMap.put(new String(Character.toChars(0x0001F4B9)), "chart");
sEmojiMap.put(new String(Character.toChars(0x0001F4C9)), "chart_with_downwards_trend");
sEmojiMap.put(new String(Character.toChars(0x0001F4C8)), "chart_with_upwards_trend");
sEmojiMap.put(new String(Character.toChars(0x0001F3C1)), "checkered_flag");
sEmojiMap.put(new String(Character.toChars(0x0001F352)), "cherries");
sEmojiMap.put(new String(Character.toChars(0x0001F338)), "cherry_blossom");
sEmojiMap.put(new String(Character.toChars(0x0001F330)), "chestnut");
sEmojiMap.put(new String(Character.toChars(0x0001F414)), "chicken");
sEmojiMap.put(new String(Character.toChars(0x0001F6B8)), "children_crossing");
sEmojiMap.put(new String(Character.toChars(0x0001F36B)), "chocolate_bar");
sEmojiMap.put(new String(Character.toChars(0x0001F384)), "christmas_tree");
sEmojiMap.put(new String(Character.toChars(0x000026EA)), "church");
sEmojiMap.put(new String(Character.toChars(0x0001F3A6)), "cinema");
sEmojiMap.put(new String(Character.toChars(0x0001F3AA)), "circus_tent");
sEmojiMap.put(new String(Character.toChars(0x0001F307)), "city_sunrise");
sEmojiMap.put(new String(Character.toChars(0x0001F306)), "city_sunset");
sEmojiMap.put(new String(Character.toChars(0x0001F191)), "cl");
sEmojiMap.put(new String(Character.toChars(0x0001F44F)), "clap");
sEmojiMap.put(new String(Character.toChars(0x0001F3AC)), "clapper");
sEmojiMap.put(new String(Character.toChars(0x0001F4CB)), "clipboard");
sEmojiMap.put(new String(Character.toChars(0x0001F550)), "clock1");
sEmojiMap.put(new String(Character.toChars(0x0001F559)), "clock10");
sEmojiMap.put(new String(Character.toChars(0x0001F565)), "clock1030");
sEmojiMap.put(new String(Character.toChars(0x0001F55A)), "clock11");
sEmojiMap.put(new String(Character.toChars(0x0001F566)), "clock1130");
sEmojiMap.put(new String(Character.toChars(0x0001F55B)), "clock12");
sEmojiMap.put(new String(Character.toChars(0x0001F567)), "clock1230");
sEmojiMap.put(new String(Character.toChars(0x0001F55C)), "clock130");
sEmojiMap.put(new String(Character.toChars(0x0001F551)), "clock2");
sEmojiMap.put(new String(Character.toChars(0x0001F55D)), "clock230");
sEmojiMap.put(new String(Character.toChars(0x0001F552)), "clock3");
sEmojiMap.put(new String(Character.toChars(0x0001F55E)), "clock330");
sEmojiMap.put(new String(Character.toChars(0x0001F553)), "clock4");
sEmojiMap.put(new String(Character.toChars(0x0001F55F)), "clock430");
sEmojiMap.put(new String(Character.toChars(0x0001F554)), "clock5");
sEmojiMap.put(new String(Character.toChars(0x0001F560)), "clock530");
sEmojiMap.put(new String(Character.toChars(0x0001F555)), "clock6");
sEmojiMap.put(new String(Character.toChars(0x0001F561)), "clock630");
sEmojiMap.put(new String(Character.toChars(0x0001F556)), "clock7");
sEmojiMap.put(new String(Character.toChars(0x0001F562)), "clock730");
sEmojiMap.put(new String(Character.toChars(0x0001F557)), "clock8");
sEmojiMap.put(new String(Character.toChars(0x0001F563)), "clock830");
sEmojiMap.put(new String(Character.toChars(0x0001F558)), "clock9");
sEmojiMap.put(new String(Character.toChars(0x0001F564)), "clock930");
sEmojiMap.put(new String(Character.toChars(0x0001F4D5)), "closed_book");
sEmojiMap.put(new String(Character.toChars(0x0001F510)), "closed_lock_with_key");
sEmojiMap.put(new String(Character.toChars(0x0001F302)), "closed_umbrella");
sEmojiMap.put(new String(Character.toChars(0x00002601)), "cloud");
sEmojiMap.put(new String(Character.toChars(0x00002663)), "clubs");
sEmojiMap.put(new String(Character.toChars(0x0001F378)), "cocktail");
sEmojiMap.put(new String(Character.toChars(0x00002615)), "coffee");
sEmojiMap.put(new String(Character.toChars(0x0001F630)), "cold_sweat");
sEmojiMap.put(new String(Character.toChars(0x0001F4A5)), "collision");
sEmojiMap.put(new String(Character.toChars(0x0001F4BB)), "computer");
sEmojiMap.put(new String(Character.toChars(0x0001F38A)), "confetti_ball");
sEmojiMap.put(new String(Character.toChars(0x0001F616)), "confounded");
sEmojiMap.put(new String(Character.toChars(0x0001F615)), "confused");
sEmojiMap.put(new String(Character.toChars(0x00003297)), "congratulations");
sEmojiMap.put(new String(Character.toChars(0x0001F6A7)), "construction");
sEmojiMap.put(new String(Character.toChars(0x0001F477)), "construction_worker");
sEmojiMap.put(new String(Character.toChars(0x0001F3EA)), "convenience_store");
sEmojiMap.put(new String(Character.toChars(0x0001F36A)), "cookie");
sEmojiMap.put(new String(Character.toChars(0x0001F192)), "cool");
sEmojiMap.put(new String(Character.toChars(0x0001F46E)), "cop");
sEmojiMap.put(new String(Character.toChars(0x000000A9)), "copyright");
sEmojiMap.put(new String(Character.toChars(0x0001F33D)), "corn");
sEmojiMap.put(new String(Character.toChars(0x0001F46B)), "couple");
sEmojiMap.put(new String(Character.toChars(0x0001F491)), "couple_with_heart");
sEmojiMap.put(new String(Character.toChars(0x0001F48F)), "couplekiss");
sEmojiMap.put(new String(Character.toChars(0x0001F42E)), "cow");
sEmojiMap.put(new String(Character.toChars(0x0001F404)), "cow2");
sEmojiMap.put(new String(Character.toChars(0x0001F4B3)), "credit_card");
sEmojiMap.put(new String(Character.toChars(0x0001F319)), "crescent_moon");
sEmojiMap.put(new String(Character.toChars(0x0001F40A)), "crocodile");
sEmojiMap.put(new String(Character.toChars(0x0001F38C)), "crossed_flags");
sEmojiMap.put(new String(Character.toChars(0x0001F451)), "crown");
sEmojiMap.put(new String(Character.toChars(0x0001F622)), "cry");
sEmojiMap.put(new String(Character.toChars(0x0001F63F)), "crying_cat_face");
sEmojiMap.put(new String(Character.toChars(0x0001F52E)), "crystal_ball");
sEmojiMap.put(new String(Character.toChars(0x0001F498)), "cupid");
sEmojiMap.put(new String(Character.toChars(0x000027B0)), "curly_loop");
sEmojiMap.put(new String(Character.toChars(0x0001F4B1)), "currency_exchange");
sEmojiMap.put(new String(Character.toChars(0x0001F35B)), "curry");
sEmojiMap.put(new String(Character.toChars(0x0001F36E)), "custard");
sEmojiMap.put(new String(Character.toChars(0x0001F6C3)), "customs");
sEmojiMap.put(new String(Character.toChars(0x0001F300)), "cyclone");
sEmojiMap.put(new String(Character.toChars(0x0001F483)), "dancer");
sEmojiMap.put(new String(Character.toChars(0x0001F46F)), "dancers");
sEmojiMap.put(new String(Character.toChars(0x0001F361)), "dango");
sEmojiMap.put(new String(Character.toChars(0x0001F3AF)), "dart");
sEmojiMap.put(new String(Character.toChars(0x0001F4A8)), "dash");
sEmojiMap.put(new String(Character.toChars(0x0001F4C5)), "date");
sEmojiMap.put(new String(Character.toChars(0x0001F333)), "deciduous_tree");
sEmojiMap.put(new String(Character.toChars(0x0001F3EC)), "department_store");
sEmojiMap.put(new String(Character.toChars(0x0001F4A0)), "diamond_shape_with_a_dot_inside");
sEmojiMap.put(new String(Character.toChars(0x00002666)), "diamonds");
sEmojiMap.put(new String(Character.toChars(0x0001F61E)), "disappointed");
sEmojiMap.put(new String(Character.toChars(0x0001F625)), "disappointed_relieved");
sEmojiMap.put(new String(Character.toChars(0x0001F4AB)), "dizzy");
sEmojiMap.put(new String(Character.toChars(0x0001F635)), "dizzy_face");
sEmojiMap.put(new String(Character.toChars(0x0001F6AF)), "do_not_litter");
sEmojiMap.put(new String(Character.toChars(0x0001F436)), "dog");
sEmojiMap.put(new String(Character.toChars(0x0001F415)), "dog2");
sEmojiMap.put(new String(Character.toChars(0x0001F4B5)), "dollar");
sEmojiMap.put(new String(Character.toChars(0x0001F38E)), "dolls");
sEmojiMap.put(new String(Character.toChars(0x0001F42C)), "dolphin");
sEmojiMap.put(new String(Character.toChars(0x0001F6AA)), "door");
sEmojiMap.put(new String(Character.toChars(0x0001F369)), "doughnut");
sEmojiMap.put(new String(Character.toChars(0x0001F409)), "dragon");
sEmojiMap.put(new String(Character.toChars(0x0001F432)), "dragon_face");
sEmojiMap.put(new String(Character.toChars(0x0001F457)), "dress");
sEmojiMap.put(new String(Character.toChars(0x0001F42A)), "dromedary_camel");
sEmojiMap.put(new String(Character.toChars(0x0001F4A7)), "droplet");
sEmojiMap.put(new String(Character.toChars(0x0001F4C0)), "dvd");
sEmojiMap.put(new String(Character.toChars(0x0001F4E7)), "e-mail");
sEmojiMap.put(new String(Character.toChars(0x0001F442)), "ear");
sEmojiMap.put(new String(Character.toChars(0x0001F33E)), "ear_of_rice");
sEmojiMap.put(new String(Character.toChars(0x0001F30D)), "earth_africa");
sEmojiMap.put(new String(Character.toChars(0x0001F30E)), "earth_americas");
sEmojiMap.put(new String(Character.toChars(0x0001F30F)), "earth_asia");
sEmojiMap.put(new String(Character.toChars(0x0001F373)), "egg");
sEmojiMap.put(new String(Character.toChars(0x0001F346)), "eggplant");
sEmojiMap.put(new String(Character.toChars(0x00002734)), "eight_pointed_black_star");
sEmojiMap.put(new String(Character.toChars(0x00002733)), "eight_spoked_asterisk");
sEmojiMap.put(new String(Character.toChars(0x0001F50C)), "electric_plug");
sEmojiMap.put(new String(Character.toChars(0x0001F418)), "elephant");
sEmojiMap.put(new String(Character.toChars(0x00002709)), "email");
sEmojiMap.put(new String(Character.toChars(0x0001F51A)), "end");
sEmojiMap.put(new String(Character.toChars(0x00002709)), "envelope");
sEmojiMap.put(new String(Character.toChars(0x0001F4E9)), "envelope_with_arrow");
sEmojiMap.put(new String(Character.toChars(0x0001F4B6)), "euro");
sEmojiMap.put(new String(Character.toChars(0x0001F3F0)), "european_castle");
sEmojiMap.put(new String(Character.toChars(0x0001F3E4)), "european_post_office");
sEmojiMap.put(new String(Character.toChars(0x0001F332)), "evergreen_tree");
sEmojiMap.put(new String(Character.toChars(0x00002757)), "exclamation");
sEmojiMap.put(new String(Character.toChars(0x0001F611)), "expressionless");
sEmojiMap.put(new String(Character.toChars(0x0001F453)), "eyeglasses");
sEmojiMap.put(new String(Character.toChars(0x0001F440)), "eyes");
sEmojiMap.put(new String(Character.toChars(0x0001F44A)), "facepunch");
sEmojiMap.put(new String(Character.toChars(0x0001F3ED)), "factory");
sEmojiMap.put(new String(Character.toChars(0x0001F342)), "fallen_leaf");
sEmojiMap.put(new String(Character.toChars(0x0001F46A)), "family");
sEmojiMap.put(new String(Character.toChars(0x000023E9)), "fast_forward");
sEmojiMap.put(new String(Character.toChars(0x0001F4E0)), "fax");
sEmojiMap.put(new String(Character.toChars(0x0001F628)), "fearful");
sEmojiMap.put(new String(Character.toChars(0x0001F43E)), "feet");
sEmojiMap.put(new String(Character.toChars(0x0001F3A1)), "ferris_wheel");
sEmojiMap.put(new String(Character.toChars(0x0001F4C1)), "file_folder");
sEmojiMap.put(new String(Character.toChars(0x0001F525)), "fire");
sEmojiMap.put(new String(Character.toChars(0x0001F692)), "fire_engine");
sEmojiMap.put(new String(Character.toChars(0x0001F386)), "fireworks");
sEmojiMap.put(new String(Character.toChars(0x0001F313)), "first_quarter_moon");
sEmojiMap.put(new String(Character.toChars(0x0001F31B)), "first_quarter_moon_with_face");
sEmojiMap.put(new String(Character.toChars(0x0001F41F)), "fish");
sEmojiMap.put(new String(Character.toChars(0x0001F365)), "fish_cake");
sEmojiMap.put(new String(Character.toChars(0x0001F3A3)), "fishing_pole_and_fish");
sEmojiMap.put(new String(Character.toChars(0x0000270A)), "fist");
sEmojiMap.put(new String(Character.toChars(0x0001F38F)), "flags");
sEmojiMap.put(new String(Character.toChars(0x0001F526)), "flashlight");
sEmojiMap.put(new String(Character.toChars(0x0001F42C)), "flipper");
sEmojiMap.put(new String(Character.toChars(0x0001F4BE)), "floppy_disk");
sEmojiMap.put(new String(Character.toChars(0x0001F3B4)), "flower_playing_cards");
sEmojiMap.put(new String(Character.toChars(0x0001F633)), "flushed");
sEmojiMap.put(new String(Character.toChars(0x0001F301)), "foggy");
sEmojiMap.put(new String(Character.toChars(0x0001F3C8)), "football");
sEmojiMap.put(new String(Character.toChars(0x0001F463)), "footprints");
sEmojiMap.put(new String(Character.toChars(0x0001F374)), "fork_and_knife");
sEmojiMap.put(new String(Character.toChars(0x000026F2)), "fountain");
sEmojiMap.put(new String(Character.toChars(0x0001F340)), "four_leaf_clover");
sEmojiMap.put(new String(Character.toChars(0x0001F193)), "free");
sEmojiMap.put(new String(Character.toChars(0x0001F364)), "fried_shrimp");
sEmojiMap.put(new String(Character.toChars(0x0001F35F)), "fries");
sEmojiMap.put(new String(Character.toChars(0x0001F438)), "frog");
sEmojiMap.put(new String(Character.toChars(0x0001F626)), "frowning");
sEmojiMap.put(new String(Character.toChars(0x000026FD)), "fuelpump");
sEmojiMap.put(new String(Character.toChars(0x0001F315)), "full_moon");
sEmojiMap.put(new String(Character.toChars(0x0001F31D)), "full_moon_with_face");
sEmojiMap.put(new String(Character.toChars(0x0001F3B2)), "game_die");
sEmojiMap.put(new String(Character.toChars(0x0001F48E)), "gem");
sEmojiMap.put(new String(Character.toChars(0x0000264A)), "gemini");
sEmojiMap.put(new String(Character.toChars(0x0001F47B)), "ghost");
sEmojiMap.put(new String(Character.toChars(0x0001F381)), "gift");
sEmojiMap.put(new String(Character.toChars(0x0001F49D)), "gift_heart");
sEmojiMap.put(new String(Character.toChars(0x0001F467)), "girl");
sEmojiMap.put(new String(Character.toChars(0x0001F310)), "globe_with_meridians");
sEmojiMap.put(new String(Character.toChars(0x0001F410)), "goat");
sEmojiMap.put(new String(Character.toChars(0x000026F3)), "golf");
sEmojiMap.put(new String(Character.toChars(0x0001F347)), "grapes");
sEmojiMap.put(new String(Character.toChars(0x0001F34F)), "green_apple");
sEmojiMap.put(new String(Character.toChars(0x0001F4D7)), "green_book");
sEmojiMap.put(new String(Character.toChars(0x0001F49A)), "green_heart");
sEmojiMap.put(new String(Character.toChars(0x00002755)), "grey_exclamation");
sEmojiMap.put(new String(Character.toChars(0x00002754)), "grey_question");
sEmojiMap.put(new String(Character.toChars(0x0001F62C)), "grimacing");
sEmojiMap.put(new String(Character.toChars(0x0001F601)), "grin");
sEmojiMap.put(new String(Character.toChars(0x0001F600)), "grinning");
sEmojiMap.put(new String(Character.toChars(0x0001F482)), "guardsman");
sEmojiMap.put(new String(Character.toChars(0x0001F3B8)), "guitar");
sEmojiMap.put(new String(Character.toChars(0x0001F52B)), "gun");
sEmojiMap.put(new String(Character.toChars(0x0001F487)), "haircut");
sEmojiMap.put(new String(Character.toChars(0x0001F354)), "hamburger");
sEmojiMap.put(new String(Character.toChars(0x0001F528)), "hammer");
sEmojiMap.put(new String(Character.toChars(0x0001F439)), "hamster");
sEmojiMap.put(new String(Character.toChars(0x0000270B)), "hand");
sEmojiMap.put(new String(Character.toChars(0x0001F45C)), "handbag");
sEmojiMap.put(new String(Character.toChars(0x0001F4A9)), "hankey");
sEmojiMap.put(new String(Character.toChars(0x0001F425)), "hatched_chick");
sEmojiMap.put(new String(Character.toChars(0x0001F423)), "hatching_chick");
sEmojiMap.put(new String(Character.toChars(0x0001F3A7)), "headphones");
sEmojiMap.put(new String(Character.toChars(0x0001F649)), "hear_no_evil");
sEmojiMap.put(new String(Character.toChars(0x00002764)), "heart");
sEmojiMap.put(new String(Character.toChars(0x0001F49F)), "heart_decoration");
sEmojiMap.put(new String(Character.toChars(0x0001F60D)), "heart_eyes");
sEmojiMap.put(new String(Character.toChars(0x0001F63B)), "heart_eyes_cat");
sEmojiMap.put(new String(Character.toChars(0x0001F493)), "heartbeat");
sEmojiMap.put(new String(Character.toChars(0x0001F497)), "heartpulse");
sEmojiMap.put(new String(Character.toChars(0x00002665)), "hearts");
sEmojiMap.put(new String(Character.toChars(0x00002714)), "heavy_check_mark");
sEmojiMap.put(new String(Character.toChars(0x00002797)), "heavy_division_sign");
sEmojiMap.put(new String(Character.toChars(0x0001F4B2)), "heavy_dollar_sign");
sEmojiMap.put(new String(Character.toChars(0x00002757)), "heavy_exclamation_mark");
sEmojiMap.put(new String(Character.toChars(0x00002796)), "heavy_minus_sign");
sEmojiMap.put(new String(Character.toChars(0x00002716)), "heavy_multiplication_x");
sEmojiMap.put(new String(Character.toChars(0x00002795)), "heavy_plus_sign");
sEmojiMap.put(new String(Character.toChars(0x0001F681)), "helicopter");
sEmojiMap.put(new String(Character.toChars(0x0001F33F)), "herb");
sEmojiMap.put(new String(Character.toChars(0x0001F33A)), "hibiscus");
sEmojiMap.put(new String(Character.toChars(0x0001F506)), "high_brightness");
sEmojiMap.put(new String(Character.toChars(0x0001F460)), "high_heel");
sEmojiMap.put(new String(Character.toChars(0x0001F52A)), "hocho");
sEmojiMap.put(new String(Character.toChars(0x0001F36F)), "honey_pot");
sEmojiMap.put(new String(Character.toChars(0x0001F41D)), "honeybee");
sEmojiMap.put(new String(Character.toChars(0x0001F434)), "horse");
sEmojiMap.put(new String(Character.toChars(0x0001F3C7)), "horse_racing");
sEmojiMap.put(new String(Character.toChars(0x0001F3E5)), "hospital");
sEmojiMap.put(new String(Character.toChars(0x0001F3E8)), "hotel");
sEmojiMap.put(new String(Character.toChars(0x00002668)), "hotsprings");
sEmojiMap.put(new String(Character.toChars(0x0000231B)), "hourglass");
sEmojiMap.put(new String(Character.toChars(0x000023F3)), "hourglass_flowing_sand");
sEmojiMap.put(new String(Character.toChars(0x0001F3E0)), "house");
sEmojiMap.put(new String(Character.toChars(0x0001F3E1)), "house_with_garden");
sEmojiMap.put(new String(Character.toChars(0x0001F62F)), "hushed");
sEmojiMap.put(new String(Character.toChars(0x0001F368)), "ice_cream");
sEmojiMap.put(new String(Character.toChars(0x0001F366)), "icecream");
sEmojiMap.put(new String(Character.toChars(0x0001F194)), "id");
sEmojiMap.put(new String(Character.toChars(0x0001F250)), "ideograph_advantage");
sEmojiMap.put(new String(Character.toChars(0x0001F47F)), "imp");
sEmojiMap.put(new String(Character.toChars(0x0001F4E5)), "inbox_tray");
sEmojiMap.put(new String(Character.toChars(0x0001F4E8)), "incoming_envelope");
sEmojiMap.put(new String(Character.toChars(0x0001F481)), "information_desk_person");
sEmojiMap.put(new String(Character.toChars(0x00002139)), "information_source");
sEmojiMap.put(new String(Character.toChars(0x0001F607)), "innocent");
sEmojiMap.put(new String(Character.toChars(0x00002049)), "interrobang");
sEmojiMap.put(new String(Character.toChars(0x0001F4F1)), "iphone");
sEmojiMap.put(new String(Character.toChars(0x0001F3EE)), "izakaya_lantern");
sEmojiMap.put(new String(Character.toChars(0x0001F383)), "jack_o_lantern");
sEmojiMap.put(new String(Character.toChars(0x0001F5FE)), "japan");
sEmojiMap.put(new String(Character.toChars(0x0001F3EF)), "japanese_castle");
sEmojiMap.put(new String(Character.toChars(0x0001F47A)), "japanese_goblin");
sEmojiMap.put(new String(Character.toChars(0x0001F479)), "japanese_ogre");
sEmojiMap.put(new String(Character.toChars(0x0001F456)), "jeans");
sEmojiMap.put(new String(Character.toChars(0x0001F602)), "joy");
sEmojiMap.put(new String(Character.toChars(0x0001F639)), "joy_cat");
sEmojiMap.put(new String(Character.toChars(0x0001F511)), "key");
sEmojiMap.put(new String(Character.toChars(0x0001F51F)), "keycap_ten");
sEmojiMap.put(new String(Character.toChars(0x0001F458)), "kimono");
sEmojiMap.put(new String(Character.toChars(0x0001F48B)), "kiss");
sEmojiMap.put(new String(Character.toChars(0x0001F617)), "kissing");
sEmojiMap.put(new String(Character.toChars(0x0001F63D)), "kissing_cat");
sEmojiMap.put(new String(Character.toChars(0x0001F61A)), "kissing_closed_eyes");
sEmojiMap.put(new String(Character.toChars(0x0001F618)), "kissing_heart");
sEmojiMap.put(new String(Character.toChars(0x0001F619)), "kissing_smiling_eyes");
sEmojiMap.put(new String(Character.toChars(0x0001F428)), "koala");
sEmojiMap.put(new String(Character.toChars(0x0001F201)), "koko");
sEmojiMap.put(new String(Character.toChars(0x0001F3EE)), "lantern");
sEmojiMap.put(new String(Character.toChars(0x0001F535)), "large_blue_circle");
sEmojiMap.put(new String(Character.toChars(0x0001F537)), "large_blue_diamond");
sEmojiMap.put(new String(Character.toChars(0x0001F536)), "large_orange_diamond");
sEmojiMap.put(new String(Character.toChars(0x0001F317)), "last_quarter_moon");
sEmojiMap.put(new String(Character.toChars(0x0001F31C)), "last_quarter_moon_with_face");
sEmojiMap.put(new String(Character.toChars(0x0001F606)), "laughing");
sEmojiMap.put(new String(Character.toChars(0x0001F343)), "leaves");
sEmojiMap.put(new String(Character.toChars(0x0001F4D2)), "ledger");
sEmojiMap.put(new String(Character.toChars(0x0001F6C5)), "left_luggage");
sEmojiMap.put(new String(Character.toChars(0x00002194)), "left_right_arrow");
sEmojiMap.put(new String(Character.toChars(0x000021A9)), "leftwards_arrow_with_hook");
sEmojiMap.put(new String(Character.toChars(0x0001F34B)), "lemon");
sEmojiMap.put(new String(Character.toChars(0x0000264C)), "leo");
sEmojiMap.put(new String(Character.toChars(0x0001F406)), "leopard");
sEmojiMap.put(new String(Character.toChars(0x0000264E)), "libra");
sEmojiMap.put(new String(Character.toChars(0x0001F688)), "light_rail");
sEmojiMap.put(new String(Character.toChars(0x0001F517)), "link");
sEmojiMap.put(new String(Character.toChars(0x0001F444)), "lips");
sEmojiMap.put(new String(Character.toChars(0x0001F484)), "lipstick");
sEmojiMap.put(new String(Character.toChars(0x0001F512)), "lock");
sEmojiMap.put(new String(Character.toChars(0x0001F50F)), "lock_with_ink_pen");
sEmojiMap.put(new String(Character.toChars(0x0001F36D)), "lollipop");
sEmojiMap.put(new String(Character.toChars(0x000027BF)), "loop");
sEmojiMap.put(new String(Character.toChars(0x0001F4E2)), "loudspeaker");
sEmojiMap.put(new String(Character.toChars(0x0001F3E9)), "love_hotel");
sEmojiMap.put(new String(Character.toChars(0x0001F48C)), "love_letter");
sEmojiMap.put(new String(Character.toChars(0x0001F505)), "low_brightness");
sEmojiMap.put(new String(Character.toChars(0x000024C2)), "m");
sEmojiMap.put(new String(Character.toChars(0x0001F50D)), "mag");
sEmojiMap.put(new String(Character.toChars(0x0001F50E)), "mag_right");
sEmojiMap.put(new String(Character.toChars(0x0001F004)), "mahjong");
sEmojiMap.put(new String(Character.toChars(0x0001F4EB)), "mailbox");
sEmojiMap.put(new String(Character.toChars(0x0001F4EA)), "mailbox_closed");
sEmojiMap.put(new String(Character.toChars(0x0001F4EC)), "mailbox_with_mail");
sEmojiMap.put(new String(Character.toChars(0x0001F4ED)), "mailbox_with_no_mail");
sEmojiMap.put(new String(Character.toChars(0x0001F468)), "man");
sEmojiMap.put(new String(Character.toChars(0x0001F472)), "man_with_gua_pi_mao");
sEmojiMap.put(new String(Character.toChars(0x0001F473)), "man_with_turban");
sEmojiMap.put(new String(Character.toChars(0x0001F45E)), "mans_shoe");
sEmojiMap.put(new String(Character.toChars(0x0001F341)), "maple_leaf");
sEmojiMap.put(new String(Character.toChars(0x0001F637)), "mask");
sEmojiMap.put(new String(Character.toChars(0x0001F486)), "massage");
sEmojiMap.put(new String(Character.toChars(0x0001F356)), "meat_on_bone");
sEmojiMap.put(new String(Character.toChars(0x0001F4E3)), "mega");
sEmojiMap.put(new String(Character.toChars(0x0001F348)), "melon");
sEmojiMap.put(new String(Character.toChars(0x0001F4DD)), "memo");
sEmojiMap.put(new String(Character.toChars(0x0001F6B9)), "mens");
sEmojiMap.put(new String(Character.toChars(0x0001F687)), "metro");
sEmojiMap.put(new String(Character.toChars(0x0001F3A4)), "microphone");
sEmojiMap.put(new String(Character.toChars(0x0001F52C)), "microscope");
sEmojiMap.put(new String(Character.toChars(0x0001F30C)), "milky_way");
sEmojiMap.put(new String(Character.toChars(0x0001F690)), "minibus");
sEmojiMap.put(new String(Character.toChars(0x0001F4BD)), "minidisc");
sEmojiMap.put(new String(Character.toChars(0x0001F4F4)), "mobile_phone_off");
sEmojiMap.put(new String(Character.toChars(0x0001F4B8)), "money_with_wings");
sEmojiMap.put(new String(Character.toChars(0x0001F4B0)), "moneybag");
sEmojiMap.put(new String(Character.toChars(0x0001F412)), "monkey");
sEmojiMap.put(new String(Character.toChars(0x0001F435)), "monkey_face");
sEmojiMap.put(new String(Character.toChars(0x0001F69D)), "monorail");
sEmojiMap.put(new String(Character.toChars(0x0001F314)), "moon");
sEmojiMap.put(new String(Character.toChars(0x0001F393)), "mortar_board");
sEmojiMap.put(new String(Character.toChars(0x0001F5FB)), "mount_fuji");
sEmojiMap.put(new String(Character.toChars(0x0001F6B5)), "mountain_bicyclist");
sEmojiMap.put(new String(Character.toChars(0x0001F6A0)), "mountain_cableway");
sEmojiMap.put(new String(Character.toChars(0x0001F69E)), "mountain_railway");
sEmojiMap.put(new String(Character.toChars(0x0001F42D)), "mouse");
sEmojiMap.put(new String(Character.toChars(0x0001F401)), "mouse2");
sEmojiMap.put(new String(Character.toChars(0x0001F3A5)), "movie_camera");
sEmojiMap.put(new String(Character.toChars(0x0001F5FF)), "moyai");
sEmojiMap.put(new String(Character.toChars(0x0001F4AA)), "muscle");
sEmojiMap.put(new String(Character.toChars(0x0001F344)), "mushroom");
sEmojiMap.put(new String(Character.toChars(0x0001F3B9)), "musical_keyboard");
sEmojiMap.put(new String(Character.toChars(0x0001F3B5)), "musical_note");
sEmojiMap.put(new String(Character.toChars(0x0001F3BC)), "musical_score");
sEmojiMap.put(new String(Character.toChars(0x0001F507)), "mute");
sEmojiMap.put(new String(Character.toChars(0x0001F485)), "nail_care");
sEmojiMap.put(new String(Character.toChars(0x0001F4DB)), "name_badge");
sEmojiMap.put(new String(Character.toChars(0x0001F454)), "necktie");
sEmojiMap.put(new String(Character.toChars(0x0000274E)), "negative_squared_cross_mark");
sEmojiMap.put(new String(Character.toChars(0x0001F610)), "neutral_face");
sEmojiMap.put(new String(Character.toChars(0x0001F195)), "new");
sEmojiMap.put(new String(Character.toChars(0x0001F311)), "new_moon");
sEmojiMap.put(new String(Character.toChars(0x0001F31A)), "new_moon_with_face");
sEmojiMap.put(new String(Character.toChars(0x0001F4F0)), "newspaper");
sEmojiMap.put(new String(Character.toChars(0x0001F196)), "ng");
sEmojiMap.put(new String(Character.toChars(0x0001F515)), "no_bell");
sEmojiMap.put(new String(Character.toChars(0x0001F6B3)), "no_bicycles");
sEmojiMap.put(new String(Character.toChars(0x000026D4)), "no_entry");
sEmojiMap.put(new String(Character.toChars(0x0001F6AB)), "no_entry_sign");
sEmojiMap.put(new String(Character.toChars(0x0001F645)), "no_good");
sEmojiMap.put(new String(Character.toChars(0x0001F4F5)), "no_mobile_phones");
sEmojiMap.put(new String(Character.toChars(0x0001F636)), "no_mouth");
sEmojiMap.put(new String(Character.toChars(0x0001F6B7)), "no_pedestrians");
sEmojiMap.put(new String(Character.toChars(0x0001F6AD)), "no_smoking");
sEmojiMap.put(new String(Character.toChars(0x0001F6B1)), "non-potable_water");
sEmojiMap.put(new String(Character.toChars(0x0001F443)), "nose");
sEmojiMap.put(new String(Character.toChars(0x0001F4D3)), "notebook");
sEmojiMap.put(new String(Character.toChars(0x0001F4D4)), "notebook_with_decorative_cover");
sEmojiMap.put(new String(Character.toChars(0x0001F3B6)), "notes");
sEmojiMap.put(new String(Character.toChars(0x0001F529)), "nut_and_bolt");
sEmojiMap.put(new String(Character.toChars(0x00002B55)), "o");
sEmojiMap.put(new String(Character.toChars(0x0001F17E)), "o2");
sEmojiMap.put(new String(Character.toChars(0x0001F30A)), "ocean");
sEmojiMap.put(new String(Character.toChars(0x0001F419)), "octopus");
sEmojiMap.put(new String(Character.toChars(0x0001F362)), "oden");
sEmojiMap.put(new String(Character.toChars(0x0001F3E2)), "office");
sEmojiMap.put(new String(Character.toChars(0x0001F197)), "ok");
sEmojiMap.put(new String(Character.toChars(0x0001F44C)), "ok_hand");
sEmojiMap.put(new String(Character.toChars(0x0001F646)), "ok_woman");
sEmojiMap.put(new String(Character.toChars(0x0001F474)), "older_man");
sEmojiMap.put(new String(Character.toChars(0x0001F475)), "older_woman");
sEmojiMap.put(new String(Character.toChars(0x0001F51B)), "on");
sEmojiMap.put(new String(Character.toChars(0x0001F698)), "oncoming_automobile");
sEmojiMap.put(new String(Character.toChars(0x0001F68D)), "oncoming_bus");
sEmojiMap.put(new String(Character.toChars(0x0001F694)), "oncoming_police_car");
sEmojiMap.put(new String(Character.toChars(0x0001F696)), "oncoming_taxi");
sEmojiMap.put(new String(Character.toChars(0x0001F4D6)), "open_book");
sEmojiMap.put(new String(Character.toChars(0x0001F4C2)), "open_file_folder");
sEmojiMap.put(new String(Character.toChars(0x0001F450)), "open_hands");
sEmojiMap.put(new String(Character.toChars(0x0001F62E)), "open_mouth");
sEmojiMap.put(new String(Character.toChars(0x000026CE)), "ophiuchus");
sEmojiMap.put(new String(Character.toChars(0x0001F4D9)), "orange_book");
sEmojiMap.put(new String(Character.toChars(0x0001F4E4)), "outbox_tray");
sEmojiMap.put(new String(Character.toChars(0x0001F402)), "ox");
sEmojiMap.put(new String(Character.toChars(0x0001F4E6)), "package");
sEmojiMap.put(new String(Character.toChars(0x0001F4C4)), "page_facing_up");
sEmojiMap.put(new String(Character.toChars(0x0001F4C3)), "page_with_curl");
sEmojiMap.put(new String(Character.toChars(0x0001F4DF)), "pager");
sEmojiMap.put(new String(Character.toChars(0x0001F334)), "palm_tree");
sEmojiMap.put(new String(Character.toChars(0x0001F43C)), "panda_face");
sEmojiMap.put(new String(Character.toChars(0x0001F4CE)), "paperclip");
sEmojiMap.put(new String(Character.toChars(0x0001F17F)), "parking");
sEmojiMap.put(new String(Character.toChars(0x0000303D)), "part_alternation_mark");
sEmojiMap.put(new String(Character.toChars(0x000026C5)), "partly_sunny");
sEmojiMap.put(new String(Character.toChars(0x0001F6C2)), "passport_control");
sEmojiMap.put(new String(Character.toChars(0x0001F43E)), "paw_prints");
sEmojiMap.put(new String(Character.toChars(0x0001F351)), "peach");
sEmojiMap.put(new String(Character.toChars(0x0001F350)), "pear");
sEmojiMap.put(new String(Character.toChars(0x0001F4DD)), "pencil");
sEmojiMap.put(new String(Character.toChars(0x0000270F)), "pencil2");
sEmojiMap.put(new String(Character.toChars(0x0001F427)), "penguin");
sEmojiMap.put(new String(Character.toChars(0x0001F614)), "pensive");
sEmojiMap.put(new String(Character.toChars(0x0001F3AD)), "performing_arts");
sEmojiMap.put(new String(Character.toChars(0x0001F623)), "persevere");
sEmojiMap.put(new String(Character.toChars(0x0001F64D)), "person_frowning");
sEmojiMap.put(new String(Character.toChars(0x0001F471)), "person_with_blond_hair");
sEmojiMap.put(new String(Character.toChars(0x0001F64E)), "person_with_pouting_face");
sEmojiMap.put(new String(Character.toChars(0x0000260E)), "phone");
sEmojiMap.put(new String(Character.toChars(0x0001F437)), "pig");
sEmojiMap.put(new String(Character.toChars(0x0001F416)), "pig2");
sEmojiMap.put(new String(Character.toChars(0x0001F43D)), "pig_nose");
sEmojiMap.put(new String(Character.toChars(0x0001F48A)), "pill");
sEmojiMap.put(new String(Character.toChars(0x0001F34D)), "pineapple");
sEmojiMap.put(new String(Character.toChars(0x00002653)), "pisces");
sEmojiMap.put(new String(Character.toChars(0x0001F355)), "pizza");
sEmojiMap.put(new String(Character.toChars(0x0001F447)), "point_down");
sEmojiMap.put(new String(Character.toChars(0x0001F448)), "point_left");
sEmojiMap.put(new String(Character.toChars(0x0001F449)), "point_right");
sEmojiMap.put(new String(Character.toChars(0x0000261D)), "point_up");
sEmojiMap.put(new String(Character.toChars(0x0001F446)), "point_up_2");
sEmojiMap.put(new String(Character.toChars(0x0001F693)), "police_car");
sEmojiMap.put(new String(Character.toChars(0x0001F429)), "poodle");
sEmojiMap.put(new String(Character.toChars(0x0001F4A9)), "poop");
sEmojiMap.put(new String(Character.toChars(0x0001F3E3)), "post_office");
sEmojiMap.put(new String(Character.toChars(0x0001F4EF)), "postal_horn");
sEmojiMap.put(new String(Character.toChars(0x0001F4EE)), "postbox");
sEmojiMap.put(new String(Character.toChars(0x0001F6B0)), "potable_water");
sEmojiMap.put(new String(Character.toChars(0x0001F45D)), "pouch");
sEmojiMap.put(new String(Character.toChars(0x0001F357)), "poultry_leg");
sEmojiMap.put(new String(Character.toChars(0x0001F4B7)), "pound");
sEmojiMap.put(new String(Character.toChars(0x0001F63E)), "pouting_cat");
sEmojiMap.put(new String(Character.toChars(0x0001F64F)), "pray");
sEmojiMap.put(new String(Character.toChars(0x0001F478)), "princess");
sEmojiMap.put(new String(Character.toChars(0x0001F44A)), "punch");
sEmojiMap.put(new String(Character.toChars(0x0001F49C)), "purple_heart");
sEmojiMap.put(new String(Character.toChars(0x0001F45B)), "purse");
sEmojiMap.put(new String(Character.toChars(0x0001F4CC)), "pushpin");
sEmojiMap.put(new String(Character.toChars(0x0001F6AE)), "put_litter_in_its_place");
sEmojiMap.put(new String(Character.toChars(0x00002753)), "question");
sEmojiMap.put(new String(Character.toChars(0x0001F430)), "rabbit");
sEmojiMap.put(new String(Character.toChars(0x0001F407)), "rabbit2");
sEmojiMap.put(new String(Character.toChars(0x0001F40E)), "racehorse");
sEmojiMap.put(new String(Character.toChars(0x0001F4FB)), "radio");
sEmojiMap.put(new String(Character.toChars(0x0001F518)), "radio_button");
sEmojiMap.put(new String(Character.toChars(0x0001F621)), "rage");
sEmojiMap.put(new String(Character.toChars(0x0001F683)), "railway_car");
sEmojiMap.put(new String(Character.toChars(0x0001F308)), "rainbow");
sEmojiMap.put(new String(Character.toChars(0x0000270B)), "raised_hand");
sEmojiMap.put(new String(Character.toChars(0x0001F64C)), "raised_hands");
sEmojiMap.put(new String(Character.toChars(0x0001F64B)), "raising_hand");
sEmojiMap.put(new String(Character.toChars(0x0001F40F)), "ram");
sEmojiMap.put(new String(Character.toChars(0x0001F35C)), "ramen");
sEmojiMap.put(new String(Character.toChars(0x0001F400)), "rat");
sEmojiMap.put(new String(Character.toChars(0x0000267B)), "recycle");
sEmojiMap.put(new String(Character.toChars(0x0001F697)), "red_car");
sEmojiMap.put(new String(Character.toChars(0x0001F534)), "red_circle");
sEmojiMap.put(new String(Character.toChars(0x000000AE)), "registered");
sEmojiMap.put(new String(Character.toChars(0x0000263A)), "relaxed");
sEmojiMap.put(new String(Character.toChars(0x0001F60C)), "relieved");
sEmojiMap.put(new String(Character.toChars(0x0001F501)), "repeat");
sEmojiMap.put(new String(Character.toChars(0x0001F502)), "repeat_one");
sEmojiMap.put(new String(Character.toChars(0x0001F6BB)), "restroom");
sEmojiMap.put(new String(Character.toChars(0x0001F49E)), "revolving_hearts");
sEmojiMap.put(new String(Character.toChars(0x000023EA)), "rewind");
sEmojiMap.put(new String(Character.toChars(0x0001F380)), "ribbon");
sEmojiMap.put(new String(Character.toChars(0x0001F35A)), "rice");
sEmojiMap.put(new String(Character.toChars(0x0001F359)), "rice_ball");
sEmojiMap.put(new String(Character.toChars(0x0001F358)), "rice_cracker");
sEmojiMap.put(new String(Character.toChars(0x0001F391)), "rice_scene");
sEmojiMap.put(new String(Character.toChars(0x0001F48D)), "ring");
sEmojiMap.put(new String(Character.toChars(0x0001F680)), "rocket");
sEmojiMap.put(new String(Character.toChars(0x0001F3A2)), "roller_coaster");
sEmojiMap.put(new String(Character.toChars(0x0001F413)), "rooster");
sEmojiMap.put(new String(Character.toChars(0x0001F339)), "rose");
sEmojiMap.put(new String(Character.toChars(0x0001F6A8)), "rotating_light");
sEmojiMap.put(new String(Character.toChars(0x0001F4CD)), "round_pushpin");
sEmojiMap.put(new String(Character.toChars(0x0001F6A3)), "rowboat");
sEmojiMap.put(new String(Character.toChars(0x0001F3C9)), "rugby_football");
sEmojiMap.put(new String(Character.toChars(0x0001F3C3)), "runner");
sEmojiMap.put(new String(Character.toChars(0x0001F3C3)), "running");
sEmojiMap.put(new String(Character.toChars(0x0001F3BD)), "running_shirt_with_sash");
sEmojiMap.put(new String(Character.toChars(0x0001F202)), "sa");
sEmojiMap.put(new String(Character.toChars(0x00002650)), "sagittarius");
sEmojiMap.put(new String(Character.toChars(0x000026F5)), "sailboat");
sEmojiMap.put(new String(Character.toChars(0x0001F376)), "sake");
sEmojiMap.put(new String(Character.toChars(0x0001F461)), "sandal");
sEmojiMap.put(new String(Character.toChars(0x0001F385)), "santa");
sEmojiMap.put(new String(Character.toChars(0x0001F4E1)), "satellite");
sEmojiMap.put(new String(Character.toChars(0x0001F606)), "satisfied");
sEmojiMap.put(new String(Character.toChars(0x0001F3B7)), "saxophone");
sEmojiMap.put(new String(Character.toChars(0x0001F3EB)), "school");
sEmojiMap.put(new String(Character.toChars(0x0001F392)), "school_satchel");
sEmojiMap.put(new String(Character.toChars(0x00002702)), "scissors");
sEmojiMap.put(new String(Character.toChars(0x0000264F)), "scorpius");
sEmojiMap.put(new String(Character.toChars(0x0001F631)), "scream");
sEmojiMap.put(new String(Character.toChars(0x0001F640)), "scream_cat");
sEmojiMap.put(new String(Character.toChars(0x0001F4DC)), "scroll");
sEmojiMap.put(new String(Character.toChars(0x0001F4BA)), "seat");
sEmojiMap.put(new String(Character.toChars(0x00003299)), "secret");
sEmojiMap.put(new String(Character.toChars(0x0001F648)), "see_no_evil");
sEmojiMap.put(new String(Character.toChars(0x0001F331)), "seedling");
sEmojiMap.put(new String(Character.toChars(0x0001F367)), "shaved_ice");
sEmojiMap.put(new String(Character.toChars(0x0001F411)), "sheep");
sEmojiMap.put(new String(Character.toChars(0x0001F41A)), "shell");
sEmojiMap.put(new String(Character.toChars(0x0001F6A2)), "ship");
sEmojiMap.put(new String(Character.toChars(0x0001F455)), "shirt");
sEmojiMap.put(new String(Character.toChars(0x0001F4A9)), "shit");
sEmojiMap.put(new String(Character.toChars(0x0001F45E)), "shoe");
sEmojiMap.put(new String(Character.toChars(0x0001F6BF)), "shower");
sEmojiMap.put(new String(Character.toChars(0x0001F4F6)), "signal_strength");
sEmojiMap.put(new String(Character.toChars(0x0001F52F)), "six_pointed_star");
sEmojiMap.put(new String(Character.toChars(0x0001F3BF)), "ski");
sEmojiMap.put(new String(Character.toChars(0x0001F480)), "skull");
sEmojiMap.put(new String(Character.toChars(0x0001F634)), "sleeping");
sEmojiMap.put(new String(Character.toChars(0x0001F62A)), "sleepy");
sEmojiMap.put(new String(Character.toChars(0x0001F3B0)), "slot_machine");
sEmojiMap.put(new String(Character.toChars(0x0001F539)), "small_blue_diamond");
sEmojiMap.put(new String(Character.toChars(0x0001F538)), "small_orange_diamond");
sEmojiMap.put(new String(Character.toChars(0x0001F53A)), "small_red_triangle");
sEmojiMap.put(new String(Character.toChars(0x0001F53B)), "small_red_triangle_down");
sEmojiMap.put(new String(Character.toChars(0x0001F604)), "smile");
sEmojiMap.put(new String(Character.toChars(0x0001F638)), "smile_cat");
sEmojiMap.put(new String(Character.toChars(0x0001F603)), "smiley");
sEmojiMap.put(new String(Character.toChars(0x0001F63A)), "smiley_cat");
sEmojiMap.put(new String(Character.toChars(0x0001F608)), "smiling_imp");
sEmojiMap.put(new String(Character.toChars(0x0001F60F)), "smirk");
sEmojiMap.put(new String(Character.toChars(0x0001F63C)), "smirk_cat");
sEmojiMap.put(new String(Character.toChars(0x0001F6AC)), "smoking");
sEmojiMap.put(new String(Character.toChars(0x0001F40C)), "snail");
sEmojiMap.put(new String(Character.toChars(0x0001F40D)), "snake");
sEmojiMap.put(new String(Character.toChars(0x0001F3C2)), "snowboarder");
sEmojiMap.put(new String(Character.toChars(0x00002744)), "snowflake");
sEmojiMap.put(new String(Character.toChars(0x000026C4)), "snowman");
sEmojiMap.put(new String(Character.toChars(0x0001F62D)), "sob");
sEmojiMap.put(new String(Character.toChars(0x000026BD)), "soccer");
sEmojiMap.put(new String(Character.toChars(0x0001F51C)), "soon");
sEmojiMap.put(new String(Character.toChars(0x0001F198)), "sos");
sEmojiMap.put(new String(Character.toChars(0x0001F509)), "sound");
sEmojiMap.put(new String(Character.toChars(0x0001F47E)), "space_invader");
sEmojiMap.put(new String(Character.toChars(0x00002660)), "spades");
sEmojiMap.put(new String(Character.toChars(0x0001F35D)), "spaghetti");
sEmojiMap.put(new String(Character.toChars(0x00002747)), "sparkle");
sEmojiMap.put(new String(Character.toChars(0x0001F387)), "sparkler");
sEmojiMap.put(new String(Character.toChars(0x00002728)), "sparkles");
sEmojiMap.put(new String(Character.toChars(0x0001F496)), "sparkling_heart");
sEmojiMap.put(new String(Character.toChars(0x0001F64A)), "speak_no_evil");
sEmojiMap.put(new String(Character.toChars(0x0001F50A)), "speaker");
sEmojiMap.put(new String(Character.toChars(0x0001F4AC)), "speech_balloon");
sEmojiMap.put(new String(Character.toChars(0x0001F6A4)), "speedboat");
sEmojiMap.put(new String(Character.toChars(0x00002B50)), "star");
sEmojiMap.put(new String(Character.toChars(0x0001F31F)), "star2");
sEmojiMap.put(new String(Character.toChars(0x0001F303)), "stars");
sEmojiMap.put(new String(Character.toChars(0x0001F689)), "station");
sEmojiMap.put(new String(Character.toChars(0x0001F5FD)), "statue_of_liberty");
sEmojiMap.put(new String(Character.toChars(0x0001F682)), "steam_locomotive");
sEmojiMap.put(new String(Character.toChars(0x0001F372)), "stew");
sEmojiMap.put(new String(Character.toChars(0x0001F4CF)), "straight_ruler");
sEmojiMap.put(new String(Character.toChars(0x0001F353)), "strawberry");
sEmojiMap.put(new String(Character.toChars(0x0001F61B)), "stuck_out_tongue");
sEmojiMap.put(new String(Character.toChars(0x0001F61D)), "stuck_out_tongue_closed_eyes");
sEmojiMap.put(new String(Character.toChars(0x0001F61C)), "stuck_out_tongue_winking_eye");
sEmojiMap.put(new String(Character.toChars(0x0001F31E)), "sun_with_face");
sEmojiMap.put(new String(Character.toChars(0x0001F33B)), "sunflower");
sEmojiMap.put(new String(Character.toChars(0x0001F60E)), "sunglasses");
sEmojiMap.put(new String(Character.toChars(0x00002600)), "sunny");
sEmojiMap.put(new String(Character.toChars(0x0001F305)), "sunrise");
sEmojiMap.put(new String(Character.toChars(0x0001F304)), "sunrise_over_mountains");
sEmojiMap.put(new String(Character.toChars(0x0001F3C4)), "surfer");
sEmojiMap.put(new String(Character.toChars(0x0001F363)), "sushi");
sEmojiMap.put(new String(Character.toChars(0x0001F69F)), "suspension_railway");
sEmojiMap.put(new String(Character.toChars(0x0001F613)), "sweat");
sEmojiMap.put(new String(Character.toChars(0x0001F4A6)), "sweat_drops");
sEmojiMap.put(new String(Character.toChars(0x0001F605)), "sweat_smile");
sEmojiMap.put(new String(Character.toChars(0x0001F360)), "sweet_potato");
sEmojiMap.put(new String(Character.toChars(0x0001F3CA)), "swimmer");
sEmojiMap.put(new String(Character.toChars(0x0001F523)), "symbols");
sEmojiMap.put(new String(Character.toChars(0x0001F489)), "syringe");
sEmojiMap.put(new String(Character.toChars(0x0001F389)), "tada");
sEmojiMap.put(new String(Character.toChars(0x0001F38B)), "tanabata_tree");
sEmojiMap.put(new String(Character.toChars(0x0001F34A)), "tangerine");
sEmojiMap.put(new String(Character.toChars(0x00002649)), "taurus");
sEmojiMap.put(new String(Character.toChars(0x0001F695)), "taxi");
sEmojiMap.put(new String(Character.toChars(0x0001F375)), "tea");
sEmojiMap.put(new String(Character.toChars(0x0000260E)), "telephone");
sEmojiMap.put(new String(Character.toChars(0x0001F4DE)), "telephone_receiver");
sEmojiMap.put(new String(Character.toChars(0x0001F52D)), "telescope");
sEmojiMap.put(new String(Character.toChars(0x0001F3BE)), "tennis");
sEmojiMap.put(new String(Character.toChars(0x000026FA)), "tent");
sEmojiMap.put(new String(Character.toChars(0x0001F4AD)), "thought_balloon");
sEmojiMap.put(new String(Character.toChars(0x0001F44E)), "thumbsdown");
sEmojiMap.put(new String(Character.toChars(0x0001F44D)), "thumbsup");
sEmojiMap.put(new String(Character.toChars(0x0001F3AB)), "ticket");
sEmojiMap.put(new String(Character.toChars(0x0001F42F)), "tiger");
sEmojiMap.put(new String(Character.toChars(0x0001F405)), "tiger2");
sEmojiMap.put(new String(Character.toChars(0x0001F62B)), "tired_face");
sEmojiMap.put(new String(Character.toChars(0x00002122)), "tm");
sEmojiMap.put(new String(Character.toChars(0x0001F6BD)), "toilet");
sEmojiMap.put(new String(Character.toChars(0x0001F5FC)), "tokyo_tower");
sEmojiMap.put(new String(Character.toChars(0x0001F345)), "tomato");
sEmojiMap.put(new String(Character.toChars(0x0001F445)), "tongue");
sEmojiMap.put(new String(Character.toChars(0x0001F51D)), "top");
sEmojiMap.put(new String(Character.toChars(0x0001F3A9)), "tophat");
sEmojiMap.put(new String(Character.toChars(0x0001F69C)), "tractor");
sEmojiMap.put(new String(Character.toChars(0x0001F6A5)), "traffic_light");
sEmojiMap.put(new String(Character.toChars(0x0001F683)), "train");
sEmojiMap.put(new String(Character.toChars(0x0001F686)), "train2");
sEmojiMap.put(new String(Character.toChars(0x0001F68A)), "tram");
sEmojiMap.put(new String(Character.toChars(0x0001F6A9)), "triangular_flag_on_post");
sEmojiMap.put(new String(Character.toChars(0x0001F4D0)), "triangular_ruler");
sEmojiMap.put(new String(Character.toChars(0x0001F531)), "trident");
sEmojiMap.put(new String(Character.toChars(0x0001F624)), "triumph");
sEmojiMap.put(new String(Character.toChars(0x0001F68E)), "trolleybus");
sEmojiMap.put(new String(Character.toChars(0x0001F3C6)), "trophy");
sEmojiMap.put(new String(Character.toChars(0x0001F379)), "tropical_drink");
sEmojiMap.put(new String(Character.toChars(0x0001F420)), "tropical_fish");
sEmojiMap.put(new String(Character.toChars(0x0001F69A)), "truck");
sEmojiMap.put(new String(Character.toChars(0x0001F3BA)), "trumpet");
sEmojiMap.put(new String(Character.toChars(0x0001F455)), "tshirt");
sEmojiMap.put(new String(Character.toChars(0x0001F337)), "tulip");
sEmojiMap.put(new String(Character.toChars(0x0001F422)), "turtle");
sEmojiMap.put(new String(Character.toChars(0x0001F4FA)), "tv");
sEmojiMap.put(new String(Character.toChars(0x0001F500)), "twisted_rightwards_arrows");
sEmojiMap.put(new String(Character.toChars(0x0001F495)), "two_hearts");
sEmojiMap.put(new String(Character.toChars(0x0001F46C)), "two_men_holding_hands");
sEmojiMap.put(new String(Character.toChars(0x0001F46D)), "two_women_holding_hands");
sEmojiMap.put(new String(Character.toChars(0x0001F239)), "u5272");
sEmojiMap.put(new String(Character.toChars(0x0001F234)), "u5408");
sEmojiMap.put(new String(Character.toChars(0x0001F23A)), "u55b6");
sEmojiMap.put(new String(Character.toChars(0x0001F22F)), "u6307");
sEmojiMap.put(new String(Character.toChars(0x0001F237)), "u6708");
sEmojiMap.put(new String(Character.toChars(0x0001F236)), "u6709");
sEmojiMap.put(new String(Character.toChars(0x0001F235)), "u6e80");
sEmojiMap.put(new String(Character.toChars(0x0001F21A)), "u7121");
sEmojiMap.put(new String(Character.toChars(0x0001F238)), "u7533");
sEmojiMap.put(new String(Character.toChars(0x0001F232)), "u7981");
sEmojiMap.put(new String(Character.toChars(0x0001F233)), "u7a7a");
sEmojiMap.put(new String(Character.toChars(0x00002614)), "umbrella");
sEmojiMap.put(new String(Character.toChars(0x0001F612)), "unamused");
sEmojiMap.put(new String(Character.toChars(0x0001F51E)), "underage");
sEmojiMap.put(new String(Character.toChars(0x0001F513)), "unlock");
sEmojiMap.put(new String(Character.toChars(0x0001F199)), "up");
sEmojiMap.put(new String(Character.toChars(0x0000270C)), "v");
sEmojiMap.put(new String(Character.toChars(0x0001F6A6)), "vertical_traffic_light");
sEmojiMap.put(new String(Character.toChars(0x0001F4FC)), "vhs");
sEmojiMap.put(new String(Character.toChars(0x0001F4F3)), "vibration_mode");
sEmojiMap.put(new String(Character.toChars(0x0001F4F9)), "video_camera");
sEmojiMap.put(new String(Character.toChars(0x0001F3AE)), "video_game");
sEmojiMap.put(new String(Character.toChars(0x0001F3BB)), "violin");
sEmojiMap.put(new String(Character.toChars(0x0000264D)), "virgo");
sEmojiMap.put(new String(Character.toChars(0x0001F30B)), "volcano");
sEmojiMap.put(new String(Character.toChars(0x0001F19A)), "vs");
sEmojiMap.put(new String(Character.toChars(0x0001F6B6)), "walking");
sEmojiMap.put(new String(Character.toChars(0x0001F318)), "waning_crescent_moon");
sEmojiMap.put(new String(Character.toChars(0x0001F316)), "waning_gibbous_moon");
sEmojiMap.put(new String(Character.toChars(0x000026A0)), "warning");
sEmojiMap.put(new String(Character.toChars(0x0000231A)), "watch");
sEmojiMap.put(new String(Character.toChars(0x0001F403)), "water_buffalo");
sEmojiMap.put(new String(Character.toChars(0x0001F349)), "watermelon");
sEmojiMap.put(new String(Character.toChars(0x0001F44B)), "wave");
sEmojiMap.put(new String(Character.toChars(0x00003030)), "wavy_dash");
sEmojiMap.put(new String(Character.toChars(0x0001F312)), "waxing_crescent_moon");
sEmojiMap.put(new String(Character.toChars(0x0001F314)), "waxing_gibbous_moon");
sEmojiMap.put(new String(Character.toChars(0x0001F6BE)), "wc");
sEmojiMap.put(new String(Character.toChars(0x0001F629)), "weary");
sEmojiMap.put(new String(Character.toChars(0x0001F492)), "wedding");
sEmojiMap.put(new String(Character.toChars(0x0001F433)), "whale");
sEmojiMap.put(new String(Character.toChars(0x0001F40B)), "whale2");
sEmojiMap.put(new String(Character.toChars(0x0000267F)), "wheelchair");
sEmojiMap.put(new String(Character.toChars(0x00002705)), "white_check_mark");
sEmojiMap.put(new String(Character.toChars(0x000026AA)), "white_circle");
sEmojiMap.put(new String(Character.toChars(0x0001F4AE)), "white_flower");
sEmojiMap.put(new String(Character.toChars(0x00002B1C)), "white_large_square");
sEmojiMap.put(new String(Character.toChars(0x000025FD)), "white_medium_small_square");
sEmojiMap.put(new String(Character.toChars(0x000025FB)), "white_medium_square");
sEmojiMap.put(new String(Character.toChars(0x000025AB)), "white_small_square");
sEmojiMap.put(new String(Character.toChars(0x0001F533)), "white_square_button");
sEmojiMap.put(new String(Character.toChars(0x0001F390)), "wind_chime");
sEmojiMap.put(new String(Character.toChars(0x0001F377)), "wine_glass");
sEmojiMap.put(new String(Character.toChars(0x0001F609)), "wink");
sEmojiMap.put(new String(Character.toChars(0x0001F43A)), "wolf");
sEmojiMap.put(new String(Character.toChars(0x0001F469)), "woman");
sEmojiMap.put(new String(Character.toChars(0x0001F45A)), "womans_clothes");
sEmojiMap.put(new String(Character.toChars(0x0001F452)), "womans_hat");
sEmojiMap.put(new String(Character.toChars(0x0001F6BA)), "womens");
sEmojiMap.put(new String(Character.toChars(0x0001F61F)), "worried");
sEmojiMap.put(new String(Character.toChars(0x0001F527)), "wrench");
sEmojiMap.put(new String(Character.toChars(0x0000274C)), "x");
sEmojiMap.put(new String(Character.toChars(0x0001F49B)), "yellow_heart");
sEmojiMap.put(new String(Character.toChars(0x0001F4B4)), "yen");
sEmojiMap.put(new String(Character.toChars(0x0001F60B)), "yum");
sEmojiMap.put(new String(Character.toChars(0x000026A1)), "zap");
sEmojiMap.put(new String(Character.toChars(0x0001F4A4)), "zzz");
}
}
| {
"content_hash": "401b79927c4e0cd2fdee51aee2d0ba13",
"timestamp": "",
"source": "github",
"line_count": 859,
"max_line_length": 100,
"avg_line_length": 78.24447031431897,
"alnum_prop": 0.7023894542641195,
"repo_name": "liwangadd/Coding",
"id": "2d44476b21a4d8abb7457ec6f115ba0b49009a18",
"size": "67212",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/src/main/java/com/nicolas/coding/common/EmojiTranslate.java",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Java",
"bytes": "2227631"
}
],
"symlink_target": ""
} |
Course project for my Image Processing course. :D
| {
"content_hash": "56fe08f2f94b847803a2ad20122a3393",
"timestamp": "",
"source": "github",
"line_count": 1,
"max_line_length": 49,
"avg_line_length": 50,
"alnum_prop": 0.8,
"repo_name": "sina-cb/ColonD_ImageProcessor",
"id": "1634ad2786438d05373f7579841b904d194d646a",
"size": "74",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C++",
"bytes": "131375"
},
{
"name": "QMake",
"bytes": "1096"
},
{
"name": "TeX",
"bytes": "133841"
}
],
"symlink_target": ""
} |
body {
background-color: #fff;
font-family: Verdana, Helvetica, Arial, sans-serif;
margin-left: auto;
margin-right: auto;
background-repeat: repeat-y;
font-size: 13px;
padding: 0px;
}
td, select, input, li{
font-family: Verdana, Helvetica, Arial, sans-serif;
font-size: 12px;
color:#333333;
}
code{
font-size: 12px;
}
a {
text-decoration: none;
}
a:link {
color:#47a;
}
a:visited {
color:#68a;
}
a:active, a:hover {
color:#990000;
}
#legend li.externalLink {
background: url(../images/external.png) left top no-repeat;
padding-left: 18px;
}
a.externalLink, a.externalLink:link, a.externalLink:visited, a.externalLink:active, a.externalLink:hover {
background: url(../images/external.png) right center no-repeat;
padding-right: 18px;
}
#legend li.newWindow {
background: url(../images/newwindow.png) left top no-repeat;
padding-left: 18px;
}
a.newWindow, a.newWindow:link, a.newWindow:visited, a.newWindow:active, a.newWindow:hover {
background: url(../images/newwindow.png) right center no-repeat;
padding-right: 18px;
}
h2 {
font-size: 17px;
color: #333333;
}
h3 {
padding: 4px 4px 4px 24px;
color: #666;
background-color: #ccc;
font-weight: bold;
font-size: 14px;
background-image: url(../images/h3.jpg);
background-repeat: no-repeat;
background-position: left bottom;
}
p {
line-height: 1.3em;
font-size: 12px;
color: #000;
}
#breadcrumbs {
height: 13px;
background-image: url(../images/breadcrumbs.jpg);
padding: 5px 10px 14px 20px;
}
* html #breadcrumbs {
padding-bottom: 8px;
}
#leftColumn {
margin: 10px 0 10px 0;
border-top-color: #ccc;
border-top-style: solid;
border-top-width: 1px;
border-right-color: #ccc;
border-right-style: solid;
border-right-width: 1px;
border-bottom-color: #ccc;
border-bottom-style: solid;
border-bottom-width: 1px;
padding-right: 5px;
padding-left: 5px;
}
#navcolumn h5 {
font-size: smaller;
border-bottom: 1px solid #aaaaaa;
padding-top: 2px;
padding-left: 9px;
color: #49635a;
background-image: url(../images/h5.jpg);
background-repeat: no-repeat;
background-position: left bottom;
}
table.bodyTable th {
color: white;
background-color: #bbb;
text-align: left;
font-weight: bold;
}
table.bodyTable th, table.bodyTable td {
font-size: 11px;
}
table.bodyTable tr.a {
background-color: #ddd;
}
table.bodyTable tr.b {
background-color: #eee;
}
table.bodyTable tr.a:hover, table.bodyTable tr.b:hover {
background: #dfe3db;
}
.source {
border: 1px solid #999;
overflow:auto
}
dt {
padding: 4px 4px 4px 24px;
color: #333333;
background-color: #ccc;
font-weight: bold;
font-size: 14px;
background-image: url(../images/h3.jpg);
background-repeat: no-repeat;
background-position: left bottom;
}
.subsectionTitle {
font-size: 13px;
font-weight: bold;
color: #666;
}
table {
font-size: 10px;
}
.xright a:link, .xright a:visited, .xright a:active {
color: #666;
}
.xright a:hover {
color: #003300;
}
#banner {
height: 93px;
background: url(../images/banner.jpg);
}
#navcolumn ul {
margin: 5px 0 15px -0em;
}
#navcolumn ul a {
color: #333333;
}
#navcolumn ul a:hover {
color: red;
}
#intro {
border: solid #ccc 1px;
margin: 6px 0px 0px 0px;
padding: 10px 40px 10px 40px;
}
.subsection {
margin-left: 3px;
color: #333333;
}
.subsection p {
font-size: 12px;
}
#footer {
padding: 10px;
margin: 20px 0px 20px 0px;
border-top: solid #ccc 1px;
color: #333333;
}
.errormark, .warningmark, .donemark, .infomark {
background: url(../images/icon_error_sml.gif) no-repeat;
}
.warningmark {
background-image: url(../images/icon_warning_sml.gif);
}
.donemark {
background-image: url(../images/icon_success_sml.gif);
}
.infomark {
background-image: url(../images/icon_info_sml.gif);
} | {
"content_hash": "7af1654e10058cb4fd4955c2c10bfefc",
"timestamp": "",
"source": "github",
"line_count": 200,
"max_line_length": 106,
"avg_line_length": 19.08,
"alnum_prop": 0.6768867924528302,
"repo_name": "gwt-maven-plugin/gwt-maven-plugin",
"id": "fa5563538539ec51f54e9db61b3b50c45f1c1d69",
"size": "4623",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/it/css-mojo/src/main/resources/bar/MavenBase.css",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "CSS",
"bytes": "6822"
},
{
"name": "Groovy",
"bytes": "28288"
},
{
"name": "HTML",
"bytes": "30506"
},
{
"name": "Java",
"bytes": "406144"
},
{
"name": "Shell",
"bytes": "848"
}
],
"symlink_target": ""
} |
<div class="container">
<div class="row">
@if((sizeof($files) > 0) || (sizeof($directories) > 0))
@foreach($directories as $key => $dir_name)
<div class="col-sm-6 col-md-2">
<div class="thumbnail text-center" data-id="{{ $dir_name['long'] }}">
<a data-id="{{ $dir_name['long'] }}" class="folder-icon pointer folder-item">
<img src="/vendor/laravel-filemanager/img/folder.png">
</a>
</div>
<div class="caption text-center">
<div class="btn-group">
<button type="button" data-id="{{ $dir_name['long'] }}" class="btn btn-default btn-xs folder-item">
{{ str_limit($dir_name['short'], $limit = 10, $end = '...') }}
</button>
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown" aria-expanded="false">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="javascript:rename('{{ $dir_name['short'] }}')"><i class="fa fa-edit fa-fw"></i> {{ Lang::get('laravel-filemanager::lfm.menu-rename') }}</a></li>
<li><a href="javascript:trash('{{ $dir_name['short'] }}')"><i class="fa fa-trash fa-fw"></i> {{ Lang::get('laravel-filemanager::lfm.menu-delete') }}</a></li>
</ul>
</div>
</div>
</div>
@endforeach
@foreach($file_info as $key => $file)
<?php $file_name = $file_info[$key]['name'];?>
<div class="col-sm-6 col-md-2 img-row">
<div class="thumbnail thumbnail-img text-center" data-id="{{ $file_name }}" id="img_thumbnail_{{ $key }}">
<i class="fa {{ $file['icon'] }} fa-5x" style="height:200px;cursor:pointer;padding-top:60px;" onclick="useFile('{{ $file_name }}')"></i>
</div>
<div class="caption text-center">
<div class="btn-group ">
<button type="button" onclick="useFile('{{ $file_name }}')" class="btn btn-default btn-xs">
{{ str_limit($file_name, $limit = 10, $end = '...') }}
</button>
<button type="button" class="btn btn-default dropdown-toggle btn-xs" data-toggle="dropdown" aria-expanded="false">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="javascript:rename('{{ $file_name }}')"><i class="fa fa-edit fa-fw"></i> {{ Lang::get('laravel-filemanager::lfm.menu-rename') }}</a></li>
<li><a href="javascript:download('{{ $file_name }}')"><i class="fa fa-download fa-fw"></i> {{ Lang::get('laravel-filemanager::lfm.menu-download') }}</a></li>
<li class="divider"></li>
<li><a href="javascript:trash('{{ $file_name }}')"><i class="fa fa-trash fa-fw"></i> {{ Lang::get('laravel-filemanager::lfm.menu-delete') }}</a></li>
</ul>
</div>
</div>
</div>
@endforeach
@else
<div class="col-md-12">
<p>{{ Lang::get('laravel-filemanager::lfm.message-empty') }}</p>
</div>
@endif
</div>
</div>
| {
"content_hash": "bbd7a053251ca712330267d71ac93e0d",
"timestamp": "",
"source": "github",
"line_count": 70,
"max_line_length": 169,
"avg_line_length": 44.885714285714286,
"alnum_prop": 0.5442393380012731,
"repo_name": "UniSharp/laravel-filemanager-plus",
"id": "18fcd1a3141944c6719562c69e1a99a860705714",
"size": "3142",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "src/views/files.blade.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "665"
},
{
"name": "HTML",
"bytes": "51463"
},
{
"name": "JavaScript",
"bytes": "1624"
},
{
"name": "PHP",
"bytes": "58385"
}
],
"symlink_target": ""
} |
<?xml version="1.0" encoding="iso-8859-1"?>
<!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>
<!-- template designed by Marco Von Ballmoos -->
<title>Docs for page job.php</title>
<link rel="stylesheet" href="../media/stylesheet.css" />
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
</head>
<body>
<div class="page-body">
<h2 class="file-name">/job.php</h2>
<a name="sec-description"></a>
<div class="info-box">
<div class="info-box-title">Description</div>
<div class="nav-bar">
<span class="disabled">Description</span> |
<a href="#sec-includes">Includes</a>
</div>
<div class="info-box-body">
<!-- ========== Info from phpDoc block ========= -->
</div>
</div>
<a name="sec-includes"></a>
<div class="info-box">
<div class="info-box-title">Includes</div>
<div class="nav-bar">
<a href="#sec-description">Description</a> |
<span class="disabled">Includes</span>
</div>
<div class="info-box-body">
<a name="___/init_php"><!-- --></a>
<div class="evenrow">
<div>
<span class="include-title">
<span class="include-type">require_once</span>
(<span class="include-name">'../init.php'</span>)
(line <span class="line-number">14</span>)
</span>
</div>
<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">job api example</p>
<p class="description"><p>translate/job/{id} (PUT) translate/job/{id} (GET) translate/job/{id} (DELETE) translate/job/{id}/comments (GET) translate/job/{id}/comment (POST) translate/job/{id}/feedback (GET) translate/job/{id}/revisions (GET) translate/job/{id}/revision/{rev_id} (GET) translate/job/{id}/preview (GET)</p></p>
</div>
</div>
</div>
<p class="notes" id="credit">
Documentation generated on Mon, 10 May 2010 16:01:19 +0900 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
</p>
</div></body>
</html> | {
"content_hash": "3a4fc2f3c34ef3ba5eb90de9ddbad501",
"timestamp": "",
"source": "github",
"line_count": 62,
"max_line_length": 332,
"avg_line_length": 33.62903225806452,
"alnum_prop": 0.6100719424460431,
"repo_name": "fvbock/mygengo-php",
"id": "47172e1bd183a8a62b634b9473d3f1f0e44698c1",
"size": "2085",
"binary": false,
"copies": "4",
"ref": "refs/heads/master",
"path": "docs/default/_job.php.html",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "PHP",
"bytes": "1114771"
}
],
"symlink_target": ""
} |
package com.example.administrator.fnroad.main.view;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.example.administrator.fnroad.R;
import com.example.administrator.fnroad.main.model.Feedback;
import java.util.List;
/**
* Created by Administrator on 2017/6/23 0023.
*/
public class FeedbackItemInfoAdapter extends BaseAdapter {
private Context context;
private List<Feedback> data;
// private Feedback[] data;
public FeedbackItemInfoAdapter(Context context, List<Feedback> records) {
this.context = context;
this.data = records;
}
@Override
public int getCount() {
return data.size();
}
@Override
public Object getItem(int i) {
return data.get(i);
}
@Override
public long getItemId(int i) {
return data.get(i).getId();
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
ViewHolder viewHolder;
if (convertView == null) {
convertView = LayoutInflater.from(context).inflate(R.layout.view_feedback_item, parent, false);
viewHolder = new ViewHolder();
viewHolder.tvTime = (TextView) convertView.findViewById(R.id.tv_feedback_item_time);
viewHolder.tvFeedback = (TextView) convertView.findViewById(R.id.tv_feedback_item_feedback);
viewHolder.tvProgress = (TextView) convertView.findViewById(R.id.tv_feedback_item_progress);
convertView.setTag(viewHolder);
} else
viewHolder = (ViewHolder) convertView.getTag();
viewHolder.tvTime.setText(data.get(position).getCreateTime());
viewHolder.tvFeedback.setText(data.get(position).getDescription());
viewHolder.tvProgress.setText(data.get(position).getProgress());
return convertView;
}
private static class ViewHolder {
TextView tvTime;
TextView tvFeedback;
TextView tvProgress;
}
}
| {
"content_hash": "fbcb1654b7e36d6321a1efd641f256b9",
"timestamp": "",
"source": "github",
"line_count": 68,
"max_line_length": 107,
"avg_line_length": 30.897058823529413,
"alnum_prop": 0.6839600190385531,
"repo_name": "quanquanfan93/FNRoad",
"id": "9851f73b98b7bfd54fa2593f3580c7c6a2eb7bee",
"size": "2101",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/src/main/java/com/example/administrator/fnroad/main/view/FeedbackItemInfoAdapter.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "355383"
}
],
"symlink_target": ""
} |
#ifndef QHELPGENERATOR_H
#define QHELPGENERATOR_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists for the convenience
// of the help generator tools. This header file may change from version
// to version without notice, or even be removed.
//
// We mean it.
//
#include "qhelp_global.h"
#include "qhelpdatainterface_p.h"
#include <QtCore/QObject>
QT_BEGIN_NAMESPACE
class QHelpGeneratorPrivate;
class QHELP_EXPORT QHelpGenerator : public QObject
{
Q_OBJECT
public:
QHelpGenerator(QObject *parent = 0);
~QHelpGenerator();
bool generate(QHelpDataInterface *helpData,
const QString &outputFileName);
bool checkLinks(const QHelpDataInterface &helpData);
QString error() const;
Q_SIGNALS:
void statusChanged(const QString &msg);
void progressChanged(double progress);
void warning(const QString &msg);
private:
struct FileNameTableData
{
QString name;
int fileId;
QString title;
};
void writeTree(QDataStream &s, QHelpDataContentItem *item, int depth);
bool createTables();
bool insertFileNotFoundFile();
bool registerCustomFilter(const QString &filterName,
const QStringList &filterAttribs, bool forceUpdate = false);
bool registerVirtualFolder(const QString &folderName, const QString &ns);
bool insertFilterAttributes(const QStringList &attributes);
bool insertKeywords(const QList<QHelpDataIndexItem> &keywords,
const QStringList &filterAttributes);
bool insertFiles(const QStringList &files, const QString &rootPath,
const QStringList &filterAttributes);
bool insertContents(const QByteArray &ba,
const QStringList &filterAttributes);
bool insertMetaData(const QMap<QString, QVariant> &metaData);
void cleanupDB();
void setupProgress(QHelpDataInterface *helpData);
void addProgress(double step);
QHelpGeneratorPrivate *d;
};
QT_END_NAMESPACE
#endif
| {
"content_hash": "295a20efd8b6ce24d069e7a151db9c46",
"timestamp": "",
"source": "github",
"line_count": 75,
"max_line_length": 77,
"avg_line_length": 26.373333333333335,
"alnum_prop": 0.7158746208291203,
"repo_name": "RikoOphorst/blowbox",
"id": "f79771c7dfd777966ee4bf68fd360f059fde98f1",
"size": "3556",
"binary": false,
"copies": "6",
"ref": "refs/heads/master",
"path": "dependencies/qt/Include/QtHelp/5.5.1/QtHelp/private/qhelpgenerator_p.h",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "C",
"bytes": "836"
},
{
"name": "C++",
"bytes": "250806"
},
{
"name": "CSS",
"bytes": "25182"
},
{
"name": "HLSL",
"bytes": "1209"
}
],
"symlink_target": ""
} |
#ifndef QDYNAMICDOCKWIDGET_P_H
#define QDYNAMICDOCKWIDGET_P_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists purely as an
// implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
//
#include "QtGui/qstyleoption.h"
#include "private/qwidget_p.h"
#include "QtGui/qboxlayout.h"
#include "QtGui/qdockwidget.h"
#ifndef QT_NO_DOCKWIDGET
QT_BEGIN_NAMESPACE
class QGridLayout;
class QWidgetResizeHandler;
class QRubberBand;
class QDockWidgetTitleButton;
class QSpacerItem;
class QDockWidgetItem;
class QDockWidgetPrivate : public QWidgetPrivate
{
Q_DECLARE_PUBLIC(QDockWidget)
struct DragState {
QPoint pressPos;
bool dragging;
QLayoutItem *widgetItem;
bool ownWidgetItem;
bool nca;
bool ctrlDrag;
};
public:
inline QDockWidgetPrivate()
: QWidgetPrivate(), state(0),
features(QDockWidget::DockWidgetClosable
| QDockWidget::DockWidgetMovable
| QDockWidget::DockWidgetFloatable),
allowedAreas(Qt::AllDockWidgetAreas)
{ }
void init();
void _q_toggleView(bool); // private slot
void _q_toggleTopLevel(); // private slot
void updateButtons();
DragState *state;
QDockWidget::DockWidgetFeatures features;
Qt::DockWidgetAreas allowedAreas;
QWidgetResizeHandler *resizer;
#ifndef QT_NO_ACTION
QAction *toggleViewAction;
#endif
// QMainWindow *findMainWindow(QWidget *widget) const;
QRect undockedGeometry;
QString fixedWindowTitle;
bool mousePressEvent(QMouseEvent *event);
bool mouseDoubleClickEvent(QMouseEvent *event);
bool mouseMoveEvent(QMouseEvent *event);
bool mouseReleaseEvent(QMouseEvent *event);
void setWindowState(bool floating, bool unplug = false, const QRect &rect = QRect());
void nonClientAreaMouseEvent(QMouseEvent *event);
void initDrag(const QPoint &pos, bool nca);
void startDrag();
void endDrag(bool abort = false);
void moveEvent(QMoveEvent *event);
void unplug(const QRect &rect);
void plug(const QRect &rect);
bool isAnimating() const;
};
class Q_GUI_EXPORT QDockWidgetLayout : public QLayout
{
Q_OBJECT
public:
QDockWidgetLayout(QWidget *parent = 0);
~QDockWidgetLayout();
void addItem(QLayoutItem *item);
QLayoutItem *itemAt(int index) const;
QLayoutItem *takeAt(int index);
int count() const;
QSize maximumSize() const;
QSize minimumSize() const;
QSize sizeHint() const;
QSize sizeFromContent(const QSize &content, bool floating) const;
void setGeometry(const QRect &r);
enum Role { Content, CloseButton, FloatButton, TitleBar, RoleCount };
QWidget *widgetForRole(Role r) const;
void setWidgetForRole(Role r, QWidget *w);
QLayoutItem *itemForRole(Role r) const;
QRect titleArea() const { return _titleArea; }
int minimumTitleWidth() const;
int titleHeight() const;
void updateMaxSize();
bool nativeWindowDeco() const;
bool nativeWindowDeco(bool floating) const;
void setVerticalTitleBar(bool b);
bool verticalTitleBar;
private:
QVector<QLayoutItem*> item_list;
QRect _titleArea;
};
/* The size hints of a QDockWidget will depend on whether it is docked or not.
This layout item always returns the size hints as if the dock widget was docked. */
class QDockWidgetItem : public QWidgetItem
{
public:
QDockWidgetItem(QDockWidget *dockWidget);
QSize minimumSize() const;
QSize maximumSize() const;
QSize sizeHint() const;
private:
inline QLayoutItem *dockWidgetChildItem() const;
inline QDockWidgetLayout *dockWidgetLayout() const;
};
inline QLayoutItem *QDockWidgetItem::dockWidgetChildItem() const
{
if (QDockWidgetLayout *layout = dockWidgetLayout())
return layout->itemForRole(QDockWidgetLayout::Content);
return 0;
}
inline QDockWidgetLayout *QDockWidgetItem::dockWidgetLayout() const
{
QWidget *w = const_cast<QDockWidgetItem*>(this)->widget();
if (w != 0)
return qobject_cast<QDockWidgetLayout*>(w->layout());
return 0;
}
QT_END_NAMESPACE
#endif // QT_NO_DOCKWIDGET
#endif // QDYNAMICDOCKWIDGET_P_H
| {
"content_hash": "977c7f19a923405daf3d85036eec0836",
"timestamp": "",
"source": "github",
"line_count": 168,
"max_line_length": 89,
"avg_line_length": 25.410714285714285,
"alnum_prop": 0.7022721948934176,
"repo_name": "blorenz/phantomjs",
"id": "699c7dd2ebe551ac4dbd48bca5bb1ec69f3c9b31",
"size": "5983",
"binary": false,
"copies": "5",
"ref": "refs/heads/master",
"path": "src/qt/src/gui/widgets/qdockwidget_p.h",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "Assembly",
"bytes": "125893"
},
{
"name": "C",
"bytes": "13762381"
},
{
"name": "C++",
"bytes": "80102640"
},
{
"name": "CoffeeScript",
"bytes": "31184"
},
{
"name": "JavaScript",
"bytes": "2317702"
},
{
"name": "Objective-C",
"bytes": "2377034"
},
{
"name": "Perl",
"bytes": "602687"
},
{
"name": "Prolog",
"bytes": "193832"
},
{
"name": "Python",
"bytes": "20960"
},
{
"name": "Ruby",
"bytes": "1899"
},
{
"name": "Shell",
"bytes": "347134"
},
{
"name": "Smalltalk",
"bytes": "1308"
}
],
"symlink_target": ""
} |
package com.twitter.finagle.redis.replies
import com.twitter.finagle.redis.{RedisResponseTest, ServerError}
import com.twitter.finagle.redis.protocol._
import com.twitter.io.Buf
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
@RunWith(classOf[JUnitRunner])
class ReplyDecodingTest extends RedisResponseTest {
test("string") {
forAll(genChunkedReply[StatusReply])(testDecodingInChunks)
}
test("string (empty)") {
intercept[ServerError] { decodeReply("+\r\n") }
}
test("error") {
forAll(genChunkedReply[ErrorReply])(testDecodingInChunks)
}
test("error (empty)") {
intercept[ServerError] { decodeReply("-\r\n") }
}
test("integer") {
forAll(genChunkedReply[IntegerReply])(testDecodingInChunks)
}
test("integer (too small)") {
intercept[ServerError] { decodeReply(s":-9223372036854775809\r\n") }
}
test("integer (too big)") {
intercept[ServerError] { decodeReply(s":9223372036854775808\r\n") }
}
test("bulk") {
forAll(genChunkedReply[BulkReply])(testDecodingInChunks)
}
test("bulk (empty)") {
assert(decodeReply("$0\r\n\r\n").contains(BulkReply(Buf.Empty)))
}
test("bulk (nil)") {
assert(decodeReply("$-1\r\n").contains(EmptyBulkReply))
}
test("array") {
forAll(genChunkedReply[MBulkReply])(testDecodingInChunks)
}
test("array (empty)") {
assert(decodeReply("*0\r\n").contains(EmptyMBulkReply))
}
test("array (nil)") {
assert(decodeReply("*-1\r\n").contains(NilMBulkReply))
}
}
| {
"content_hash": "c235cad60f358c6e2ccb8be41942eef3",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 72,
"avg_line_length": 24.047619047619047,
"alnum_prop": 0.6897689768976898,
"repo_name": "koshelev/finagle",
"id": "717474d1def867e5443634ca257c8e54f4b29cbc",
"size": "1515",
"binary": false,
"copies": "3",
"ref": "refs/heads/develop",
"path": "finagle-redis/src/test/scala/com/twitter/finagle/redis/replies/ReplyDecodingTest.scala",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "HTML",
"bytes": "6339"
},
{
"name": "Java",
"bytes": "349116"
},
{
"name": "Lua",
"bytes": "15245"
},
{
"name": "Python",
"bytes": "51916"
},
{
"name": "R",
"bytes": "4245"
},
{
"name": "Ruby",
"bytes": "25330"
},
{
"name": "Scala",
"bytes": "4930511"
},
{
"name": "Shell",
"bytes": "4789"
},
{
"name": "Thrift",
"bytes": "19505"
}
],
"symlink_target": ""
} |
import path from 'path';
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import { fileURLToPath } from 'url';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
build: {
lib: {
entry: path.resolve(__dirname, 'src/lib.js'),
name: 'LaravelVuePagination',
fileName: (format) => `laravel-vue-pagination.${format}.js`,
},
rollupOptions: {
external: ['vue'],
output: {
globals: {
vue: 'Vue',
},
},
},
},
test: {
globals: true,
environment: 'jsdom',
},
});
| {
"content_hash": "3a8edf1e6267de0e70481e12e9b5a30c",
"timestamp": "",
"source": "github",
"line_count": 33,
"max_line_length": 72,
"avg_line_length": 24.666666666666668,
"alnum_prop": 0.4656019656019656,
"repo_name": "gilbitron/laravel-vue-pagination",
"id": "6f24ff116cf9775456d35ecf06e510f99b8b01e3",
"size": "814",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "vite.config.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "58"
},
{
"name": "HTML",
"bytes": "340"
},
{
"name": "JavaScript",
"bytes": "20203"
},
{
"name": "Vue",
"bytes": "20517"
}
],
"symlink_target": ""
} |
<?php
namespace Iyzipay\Model\Subscription;
use Iyzipay\Options;
use Iyzipay\IyzipayResource;
use Iyzipay\Model\Mapper\Subscription\RetrieveSubscriptionCheckoutFormMapper;
use Iyzipay\Request\Subscription\RetrieveSubscriptionCreateCheckoutFormRequest;
class RetrieveSubscriptionCheckoutForm extends IyzipayResource
{
private $referenceCode;
private $parentReferenceCode;
private $pricingPlanReferenceCode;
private $customerReferenceCode;
private $subscriptionStatus;
private $trialDays;
private $trialStartDate;
private $trialEndDate;
private $createdDate;
private $startDate;
private $endDate;
public static function retrieve(RetrieveSubscriptionCreateCheckoutFormRequest $request, Options $options)
{
$uri = $options->getBaseUrl() . "/v2/subscription/checkoutform/".$request->getCheckoutFormToken();
$rawResult = parent::httpClient()->getV2($uri, parent::getHttpHeadersV2($uri, $request, $options), $request->toJsonString());
return RetrieveSubscriptionCheckoutFormMapper::create($rawResult)->jsonDecode()->mapSubscriptionCreateCheckoutForm(new RetrieveSubscriptionCheckoutForm());
}
public function getReferenceCode(){
return $this->referenceCode;
}
public function setReferenceCode($referenceCode){
$this->referenceCode = $referenceCode;
}
public function getParentReferenceCode(){
return $this->parentReferenceCode;
}
public function setParentReferenceCode($parentReferenceCode){
$this->parentReferenceCode = $parentReferenceCode;
}
public function getPricingPlanReferenceCode(){
return $this->pricingPlanReferenceCode;
}
public function setPricingPlanReferenceCode($pricingPlanReferenceCode){
$this->pricingPlanReferenceCode = $pricingPlanReferenceCode;
}
public function getCustomerReferenceCode(){
return $this->customerReferenceCode;
}
public function setCustomerReferenceCode($customerReferenceCode){
$this->customerReferenceCode= $customerReferenceCode;
}
public function getSubscriptionStatus(){
return $this->subscriptionStatus;
}
public function setSubscriptionStatus($subscriptionStatus){
$this->subscriptionStatus = $subscriptionStatus;
}
public function getTrialDays(){
return $this->trialDays;
}
public function setTrialDays($trialDays){
$this->trialDays = $trialDays;
}
public function getTrialStartDate(){
return $this->trialStartDate;
}
public function setTrialStartDate($trialStartDate){
$this->trialStartDate = $trialStartDate;
}
public function getTrialEndDate(){
return $this->trialEndDate;
}
public function setTrialEndDate($trialEndDate){
$this->trialEndDate = $trialEndDate;
}
public function getCreatedDate(){
return $this->createdDate;
}
public function setCreatedDate($createdDate){
$this->createdDate = $createdDate;
}
public function getStartDate(){
return $this->startDate;
}
public function setStartDate($startDate){
$this->startDate = $startDate;
}
public function getEndDate(){
return $this->endDate;
}
public function setEndDate($endDate){
$this->endDate = $endDate;
}
}
| {
"content_hash": "de18a9ab659365764276084d07fe7248",
"timestamp": "",
"source": "github",
"line_count": 98,
"max_line_length": 163,
"avg_line_length": 34.1530612244898,
"alnum_prop": 0.7113833283537496,
"repo_name": "iyzico/iyzipay-php",
"id": "c350c95c4be019b59f0f6e130451749e737310b5",
"size": "3347",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "src/Iyzipay/Model/Subscription/RetrieveSubscriptionCheckoutForm.php",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "PHP",
"bytes": "1014055"
}
],
"symlink_target": ""
} |
ACCEPTED
#### According to
International Plant Names Index
#### Published in
null
#### Original name
null
### Remarks
null | {
"content_hash": "2f5e52316d9019b537ee66cc57e666ae",
"timestamp": "",
"source": "github",
"line_count": 13,
"max_line_length": 31,
"avg_line_length": 9.692307692307692,
"alnum_prop": 0.7063492063492064,
"repo_name": "mdoering/backbone",
"id": "521291d0877d3527693e846cc546ae186e9f0b71",
"size": "202",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "life/Plantae/Magnoliophyta/Magnoliopsida/Caryophyllales/Cactaceae/Mammillaria/Mammillaria aulacothele/Mammillaria aulacothele spinosior/README.md",
"mode": "33188",
"license": "apache-2.0",
"language": [],
"symlink_target": ""
} |
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/colorAccent"/>
<item android:color="#D3A006" android:state_pressed="true"/>
</selector> | {
"content_hash": "ba619a66927a0745002366c8fabc2930",
"timestamp": "",
"source": "github",
"line_count": 5,
"max_line_length": 69,
"avg_line_length": 46.4,
"alnum_prop": 0.7025862068965517,
"repo_name": "IceDcap/IT-ebooks",
"id": "b221f84e08341c41c2d565462d172bbba4694264",
"size": "232",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "app/src/main/res/color/btn_download.xml",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "147786"
}
],
"symlink_target": ""
} |
package org.dswarm.persistence.model.job.utils;
import org.dswarm.persistence.model.job.Mapping;
import org.dswarm.persistence.model.utils.BasicDMPJPAObjectUtils;
public final class MappingUtils extends BasicDMPJPAObjectUtils<Mapping> {
}
| {
"content_hash": "01502a0e2e96858f8efebd3dd9e9bca5",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 73,
"avg_line_length": 27,
"alnum_prop": 0.8353909465020576,
"repo_name": "dswarm/dswarm",
"id": "a4cc67279d4f0afde1d73ce5e702e52531c96751",
"size": "899",
"binary": false,
"copies": "2",
"ref": "refs/heads/builds/unstable",
"path": "persistence/src/main/java/org/dswarm/persistence/model/job/utils/MappingUtils.java",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "3046828"
},
{
"name": "Python",
"bytes": "4042"
},
{
"name": "Shell",
"bytes": "624"
}
],
"symlink_target": ""
} |
define(function(require, exports, module) {
"use strict";
var MockRenderer = exports.MockRenderer = function(visibleRowCount) {
this.container = document.createElement("div");
this.visibleRowCount = visibleRowCount || 20;
this.layerConfig = {
firstVisibleRow : 0,
lastVisibleRow : this.visibleRowCount
};
this.isMockRenderer = true;
this.$gutter = {};
};
MockRenderer.prototype.getFirstVisibleRow = function() {
return this.layerConfig.firstVisibleRow;
};
MockRenderer.prototype.getLastVisibleRow = function() {
return this.layerConfig.lastVisibleRow;
};
MockRenderer.prototype.getFirstFullyVisibleRow = function() {
return this.layerConfig.firstVisibleRow;
};
MockRenderer.prototype.getLastFullyVisibleRow = function() {
return this.layerConfig.lastVisibleRow;
};
MockRenderer.prototype.getContainerElement = function() {
return this.container;
};
MockRenderer.prototype.getMouseEventTarget = function() {
return this.container;
};
MockRenderer.prototype.getTextAreaContainer = function() {
return this.container;
};
MockRenderer.prototype.addGutterDecoration = function() {
};
MockRenderer.prototype.removeGutterDecoration = function() {
};
MockRenderer.prototype.moveTextAreaToCursor = function() {
};
MockRenderer.prototype.setSession = function(session) {
this.session = session;
};
MockRenderer.prototype.getSession = function(session) {
return this.session;
};
MockRenderer.prototype.setTokenizer = function() {
};
MockRenderer.prototype.on = function() {
};
MockRenderer.prototype.updateCursor = function() {
};
MockRenderer.prototype.animateScrolling = function(fromValue, callback) {
callback && callback();
};
MockRenderer.prototype.scrollToX = function(scrollTop) {};
MockRenderer.prototype.scrollToY = function(scrollLeft) {};
MockRenderer.prototype.scrollToLine = function(line, center) {
var lineHeight = { lineHeight: 16 };
var row = 0;
for (var l = 1; l < line; l++) {
row += this.session.getRowHeight(lineHeight, l-1) / lineHeight.lineHeight;
}
if (center) {
row -= this.visibleRowCount / 2;
}
this.scrollToRow(row);
};
MockRenderer.prototype.scrollSelectionIntoView = function() {
};
MockRenderer.prototype.scrollCursorIntoView = function() {
var cursor = this.session.getSelection().getCursor();
if (cursor.row < this.layerConfig.firstVisibleRow) {
this.scrollToRow(cursor.row);
}
else if (cursor.row > this.layerConfig.lastVisibleRow) {
this.scrollToRow(cursor.row);
}
};
MockRenderer.prototype.scrollToRow = function(row) {
var row = Math.min(this.session.getLength() - this.visibleRowCount, Math.max(0,
row));
this.layerConfig.firstVisibleRow = row;
this.layerConfig.lastVisibleRow = row + this.visibleRowCount;
};
MockRenderer.prototype.getScrollTopRow = function() {
return this.layerConfig.firstVisibleRow;
};
MockRenderer.prototype.draw = function() {
};
MockRenderer.prototype.updateLines = function(startRow, endRow) {
};
MockRenderer.prototype.updateBackMarkers = function() {
};
MockRenderer.prototype.updateFrontMarkers = function() {
};
MockRenderer.prototype.updateBreakpoints = function() {
};
MockRenderer.prototype.onResize = function() {
};
MockRenderer.prototype.updateFull = function() {
};
MockRenderer.prototype.updateText = function() {
};
MockRenderer.prototype.showCursor = function() {
};
MockRenderer.prototype.visualizeFocus = function() {
};
MockRenderer.prototype.setAnnotations = function() {
};
MockRenderer.prototype.setStyle = function() {
};
MockRenderer.prototype.unsetStyle = function() {
};
MockRenderer.prototype.textToScreenCoordinates = function() {
return {
pageX: 0,
pageY: 0
}
};
MockRenderer.prototype.adjustWrapLimit = function () {
};
});
| {
"content_hash": "449e1870ef310bca1bcf1af38b74b545",
"timestamp": "",
"source": "github",
"line_count": 169,
"max_line_length": 83,
"avg_line_length": 23.224852071005916,
"alnum_prop": 0.7070063694267515,
"repo_name": "lc525/gollum-dtg",
"id": "4e5c515db0d6dc2397575e61cde93feac6a67bf9",
"size": "5657",
"binary": false,
"copies": "3",
"ref": "refs/heads/dtg-multiwiki",
"path": "lib/gollum/frontend/public/gollum/livepreview/js/ace/lib/ace/test/mockrenderer.js",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "157413"
},
{
"name": "HTML",
"bytes": "28603"
},
{
"name": "JavaScript",
"bytes": "5369328"
},
{
"name": "Ruby",
"bytes": "279077"
},
{
"name": "Shell",
"bytes": "14026"
}
],
"symlink_target": ""
} |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Room362.com</title>
<meta name="description" content="Blathering of a security addict" />
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="//blog.room362.com/themes/ichi/favicon.ico">
<script type="text/javascript" src="//blog.room362.com/themes/ichi/assets/js/vendor/fastclick.js?v=1.0.0"></script>
<script type="text/javascript" src="//blog.room362.com/themes/ichi/assets/js/vendor/modernizr.js?v=1.0.0"></script>
<link rel="stylesheet" type="text/css" href="//blog.room362.com/themes/ichi/assets/css/normalize.css?v=1.0.0" />
<link rel="stylesheet" type="text/css" href="//blog.room362.com/themes/ichi/assets/css/foundation.min.css?v=1.0.0" />
<!--[if lte IE 8]>
<link rel="stylesheet" type="text/css" href="//blog.room362.com/themes/ichi/assets/css/outdatedBrowser.min.css?v=1.0.0">
<![endif]-->
<link rel="stylesheet" type="text/css" href="//blog.room362.com/themes/ichi/assets/fonts/foundation-icons/foundation-icons.css?v=1.0.0" />
<link rel="stylesheet" type="text/css" href="//blog.room362.com/themes/ichi/assets/css/styles.css?v=1.0.0" />
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Open+Sans:300,700,400|Source+Sans+Pro:300,400,600,700,900,300italic,400italic,600italic,700italic,900italic" />
<link rel="canonical" href="http://blog.room362.com" />
<meta name="generator" content="Ghost ?" />
<link rel="alternate" type="application/rss+xml" title="Room362.com" href="http://blog.room362.com/rss" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/default.min.css">
</head>
<body class="tag-template tag-wmis home-template">
<div id="outdated">
<h6>Your browser is out-of-date!</h6>
<p>Update your browser to view this website correctly. <a id="btnUpdate" href="http://outdatedbrowser.com/">Update my browser now</a></p>
</div>
<nav class="top-bar hide-for-large-up" data-topbar >
<ul class="title-area">
<li class="name">
</li>
<li class="home"><a class="fi-home" href="http://blog.room362.com"></a></li>
<li class="toggle-topbar"><a href="#" id="trigger-overlay" class="fi-list"></a></li>
</ul>
<div class="overlay overlay-scale">
<button type="button" class="overlay-close">Close</button>
<nav>
<ul>
<li><a href="http://blog.room362.com">Home</a></li>
</ul>
</nav>
</div>
</nav>
<div class="row">
<div class="small-16 medium-16 large-4 columns right head-area" >
<header class="site-head">
<div class="vertical">
<div class="site-head-content inner">
<ul class="side-nav blog-menu show-for-large-up">
<li><a class="fi-home" href="http://blog.room362.com"></a></li>
<li><a class="fi-torso" href="http://blog.room362.com/about"></a></li>
<li><a class="fi-mail" href="http://blog.room362.com/contact"></a></li>
</ul>
<h1 class="blog-title">Room362.com</h1>
<hr>
<p class="blog-description">Blathering of a security addict</p>
<div class="blog-network">
<!-- <a href="#" class="fi-social-pinterest"></a>
<a href="#" class="fi-social-linkedin"></a>
<a href="#" class="fi-social-behance"></a>
<a href="#" class="fi-social-deviant-art"></a>
<a href="#" class="fi-social-dribbble"></a>
<a href="#" class="fi-social-flickr"></a>
<a href="#" class="fi-social-github"></a>
<a href="#" class="fi-social-skype"></a>
<a href="#" class="fi-social-snapchat"></a>
<a href="#" class="fi-social-steam"></a>
<a href="#" class="fi-social-xbox"></a>
<a href="#" class="fi-social-reddit"></a> -->
<a href="https://plus.google.com/112597020392561644851/" class="fi-social-google-plus"></a>
<a href="https://github.com/mubix" class="fi-social-github"></a>
<a href="https://twitter.com/mubix" class="fi-social-twitter"></a>
<a href="https://www.facebook.com/mubix" class="fi-social-facebook"></a>
</div>
</div>
</div>
</header>
</div>
<div class="small-16 medium-16 large-12 columns main-column left">
<main class="content" role="main">
<header class="tag-archive-header">
<h1>wmis</h1>
</header>
<article class="post tag-wmi tag-impacket tag-wmis">
<header class="post-header">
<span class="post-meta"><time datetime="2014-04-19">19 Apr 2014</time> </span>
<h2 class="post-title"><a href="http://blog.room362.com/2014/04/19/Executing-code-via-SMB-DCOM-without-PSEXEC.html">Executing code via SMB / DCOM without PSEXEC</a></h2>
</header>
<section class="post-excerpt">
<p>PSEXEC has been a staple for Windows post exploitation pivoting and system administration for a long while. The basic premise of how all "psexec" tools work is: (Optional) Upload a service executable (PSEXECSVC.EXE in the case of SysInternal’s tool) to the ADMIN$ share Connect to the service manager on the remote host, and create a service based on either a local (to the remote system) exec…</p>
</section>
<a class="button read-more right small" href="http://blog.room362.com/2014/04/19/Executing-code-via-SMB-DCOM-without-PSEXEC.html">Read more</a>
<aside class="tags fi-pricetag-multiple">Posted on <a href="http://blog.room362.com/tag/wmi">wmi</a>, <a href="http://blog.room362.com/tag/impacket"> impacket</a>, <a href="http://blog.room362.com/tag/wmis"> wmis</a></aside>
<div class="clearfix"></div>
</article>
<nav class="pagination" role="navigation">
<span class="page-number">Page 1 of 1</span>
</nav>
</main>
</div>
</div>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js?v="></script> <script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment-with-locales.min.js?v="></script> <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js?v="></script>
<script type="text/javascript">
jQuery( document ).ready(function() {
// change date with ago
jQuery('ago.ago').each(function(){
var element = jQuery(this).parent();
element.html( moment(element.text()).fromNow());
});
});
hljs.initHighlightingOnLoad();
</script>
<!--[if lte IE 8]>
<script type="text/javascript" src="//blog.room362.com/themes/ichi/assets/js/outdatedBrowser.min.js?v=1.0.0"></script>
<![endif]-->
<script type="text/javascript" src="//blog.room362.com/themes/ichi/assets/js/min/built.js?v=1.0.0"></script>
<script>
$(document).foundation();
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-46757822-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>
| {
"content_hash": "edc44083d47df2a9552d9bea7ed9904d",
"timestamp": "",
"source": "github",
"line_count": 169,
"max_line_length": 426,
"avg_line_length": 45,
"alnum_prop": 0.6107823800131492,
"repo_name": "mubix/blog.room362.com",
"id": "1f7d6084984d557da565c7bb220ddac682f0397d",
"size": "7605",
"binary": false,
"copies": "1",
"ref": "refs/heads/gh-pages",
"path": "tag/wmis/index.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "364942"
},
{
"name": "HTML",
"bytes": "744174"
},
{
"name": "Handlebars",
"bytes": "65148"
},
{
"name": "JavaScript",
"bytes": "23969"
},
{
"name": "Ruby",
"bytes": "1662"
}
],
"symlink_target": ""
} |
namespace AbstractFactory.Models
{
using Contracts;
public abstract class RegularSmarthphone : IRegularSmartphone
{
public abstract void Camera();
}
} | {
"content_hash": "e5423a1e3032662b699b5523e1ca1cb6",
"timestamp": "",
"source": "github",
"line_count": 9,
"max_line_length": 65,
"avg_line_length": 19.555555555555557,
"alnum_prop": 0.6988636363636364,
"repo_name": "owolp/Telerik-Academy",
"id": "da0b8e744b10d12ceae9b281bd9e7413eda7ba61",
"size": "178",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "Module-2/Design-Patterns/Materials/AbstractFactory/AbstractFactory/Models/RegularSmarthphone.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "ASP",
"bytes": "41735"
},
{
"name": "Batchfile",
"bytes": "260"
},
{
"name": "C",
"bytes": "1487"
},
{
"name": "C#",
"bytes": "4599043"
},
{
"name": "CSS",
"bytes": "160410"
},
{
"name": "CoffeeScript",
"bytes": "3700"
},
{
"name": "HTML",
"bytes": "2086891"
},
{
"name": "JavaScript",
"bytes": "2891383"
},
{
"name": "PowerShell",
"bytes": "287"
},
{
"name": "XSLT",
"bytes": "2499"
}
],
"symlink_target": ""
} |
var noOfLatitude = noOfLongitude = 1000;
var noOfRecords = noOfRows * noOfLongitude;
var distanceDelta = 0.0001;
var centrePoint = { latitude: 0, longitude: 0 };
var coordinates = [centrePoint.latitude - distanceDelta * noOfLatitude, centrePoint.longitude - distanceDelta * noOfLongitude];
for (i = 0; i < noOfLatitude; i += 1) {
for (j = 0; j < noOfLongitude; j += 1) {
db.locations.insert({layerType: 'performanceTest', description: 'Performance i = ' + i + ' j = ' + j, coordinates: coordinates });
coordinates[0] += distanceDelta;
coordinates[1] += distanceDelta;
}
}
| {
"content_hash": "09d012d138e2e12cfd631bcff8ac1084",
"timestamp": "",
"source": "github",
"line_count": 16,
"max_line_length": 132,
"avg_line_length": 36.5,
"alnum_prop": 0.6934931506849316,
"repo_name": "lukaszbudnik/geo-layers",
"id": "e8f63399fa194014c9e6544a36151fcfb29dfa86",
"size": "584",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "conf/mongodb/test/performance.js",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "JavaScript",
"bytes": "1493"
},
{
"name": "Scala",
"bytes": "15713"
},
{
"name": "Shell",
"bytes": "230"
}
],
"symlink_target": ""
} |
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Microsoft.Win32.SafeHandles;
internal static partial class Interop
{
internal static partial class NetSecurityNative
{
[StructLayout(LayoutKind.Sequential)]
internal unsafe struct GssBuffer : IDisposable
{
internal UInt64 _length;
internal IntPtr _data;
internal int Copy(byte[] destination, int offset)
{
Debug.Assert(destination != null, "target destination cannot be null");
Debug.Assert((offset >= 0 && offset < destination.Length) || destination.Length == 0, "invalid offset " + offset);
if (_data == IntPtr.Zero || _length == 0)
{
return 0;
}
// Using Convert.ToInt32 to throw an exception in the unlikely event of too large value of _length
int sourceLength = Convert.ToInt32(_length);
int destinationAvailable = destination.Length - offset; // amount of space in the given buffer
if (sourceLength > destinationAvailable)
{
throw new NetSecurityNative.GssApiException(SR.Format(SR.net_context_buffer_too_small, sourceLength, destinationAvailable));
}
Marshal.Copy(_data, destination, offset, sourceLength);
return sourceLength;
}
internal byte[] ToByteArray()
{
if (_data == IntPtr.Zero || _length == 0)
{
return Array.Empty<byte>();
}
int destinationLength = Convert.ToInt32(_length);
byte[] destination = new byte[destinationLength];
Marshal.Copy(_data, destination, 0, destinationLength);
return destination;
}
public void Dispose()
{
if (_data != IntPtr.Zero)
{
Interop.NetSecurityNative.ReleaseGssBuffer(_data, _length);
_data = IntPtr.Zero;
}
_length = 0;
}
}
}
}
| {
"content_hash": "f5e13462d26422a98f6ba0b38a027dbe",
"timestamp": "",
"source": "github",
"line_count": 63,
"max_line_length": 144,
"avg_line_length": 35.41269841269841,
"alnum_prop": 0.5307037203047961,
"repo_name": "jcme/corefx",
"id": "c6a98c868decc33f24dbd51ba204a4e5a5ba94ee",
"size": "2435",
"binary": false,
"copies": "2",
"ref": "refs/heads/master",
"path": "src/Common/src/Interop/Unix/System.Net.Security.Native/Interop.GssBuffer.cs",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "Batchfile",
"bytes": "20464"
},
{
"name": "C",
"bytes": "1119818"
},
{
"name": "C#",
"bytes": "99365523"
},
{
"name": "C++",
"bytes": "327328"
},
{
"name": "CMake",
"bytes": "32385"
},
{
"name": "DIGITAL Command Language",
"bytes": "26402"
},
{
"name": "Groff",
"bytes": "4236"
},
{
"name": "Groovy",
"bytes": "32575"
},
{
"name": "Makefile",
"bytes": "9085"
},
{
"name": "Perl",
"bytes": "3895"
},
{
"name": "PowerShell",
"bytes": "12832"
},
{
"name": "Python",
"bytes": "1535"
},
{
"name": "Shell",
"bytes": "46424"
},
{
"name": "Visual Basic",
"bytes": "829972"
}
],
"symlink_target": ""
} |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_80) on Thu Oct 15 19:27:01 UTC 2015 -->
<title>DistributionSummary (AWS SDK for Java - 1.10.27)</title>
<meta name="date" content="2015-10-15">
<link rel="stylesheet" type="text/css" href="../../../../../JavaDoc.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="DistributionSummary (AWS SDK for Java - 1.10.27)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em>
<!-- Scripts for Syntax Highlighter START-->
<script id="syntaxhighlight_script_core" type="text/javascript" src = "http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/resources/syntaxhighlight/scripts/shCore.js">
</script>
<script id="syntaxhighlight_script_java" type="text/javascript" src = "http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/resources/syntaxhighlight/scripts/shBrushJava.js">
</script>
<link id="syntaxhighlight_css_core" rel="stylesheet" type="text/css" href = "http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/resources/syntaxhighlight/styles/shCoreDefault.css"/>
<link id="syntaxhighlight_css_theme" rel="stylesheet" type="text/css" href = "http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/resources/syntaxhighlight/styles/shThemeDefault.css"/>
<!-- Scripts for Syntax Highlighter END-->
<div>
<!-- BEGIN-SECTION -->
<div id="divsearch" style="float:left;">
<span id="lblsearch" for="searchQuery">
<label>Search</label>
</span>
<form id="nav-search-form" target="_parent" method="get" action="http://docs.aws.amazon.com/search/doc-search.html#facet_doc_guide=API+Reference&facet_doc_product=AWS+SDK+for+Java">
<div id="nav-searchfield-outer" class="nav-sprite">
<div class="nav-searchfield-inner nav-sprite">
<div id="nav-searchfield-width">
<input id="nav-searchfield" name="searchQuery">
</div>
</div>
</div>
<div id="nav-search-button" class="nav-sprite">
<input alt="" id="nav-search-button-inner" type="image">
</div>
<input name="searchPath" type="hidden" value="documentation-guide" />
<input name="this_doc_product" type="hidden" value="AWS SDK for Java" />
<input name="this_doc_guide" type="hidden" value="API Reference" />
<input name="doc_locale" type="hidden" value="en_us" />
</form>
</div>
<!-- END-SECTION -->
<!-- BEGIN-FEEDBACK-SECTION -->
<div id="feedback-section">
<h3>Did this page help you?</h3>
<div id="feedback-link-sectioin">
<a id="feedback_yes" target="_blank" style="display:inline;">Yes</a>
<a id="feedback_no" target="_blank" style="display:inline;">No</a>
<a id="go_cti" target="_blank" style="display:inline;">Tell us about it...</a>
</div>
</div>
<script type="text/javascript">
window.onload = function(){
/* Dynamically add feedback links */
var javadoc_root_name = "/javadoc/";
var javadoc_path = location.href.substring(0, location.href.lastIndexOf(javadoc_root_name) + javadoc_root_name.length);
var file_path = location.href.substring(location.href.lastIndexOf(javadoc_root_name) + javadoc_root_name.length);
var feedback_yes_url = javadoc_path + "javadoc-resources/feedbackyes.html?topic_id=";
var feedback_no_url = javadoc_path + "javadoc-resources/feedbackno.html?topic_id=";
var feedback_tellmore_url = "https://aws-portal.amazon.com/gp/aws/html-forms-controller/documentation/aws_doc_feedback_04?service_name=Java-Ref&file_name=";
if(file_path != "overview-frame.html") {
var file_name = file_path.replace(/[/.]/g, '_');
document.getElementById("feedback_yes").setAttribute("href", feedback_yes_url + file_name);
document.getElementById("feedback_no").setAttribute("href", feedback_no_url + file_name);
document.getElementById("go_cti").setAttribute("href", feedback_tellmore_url + file_name);
} else {
// hide the search box and the feeback links in overview-frame page,
// show "AWS SDK for Java" instead.
document.getElementById("feedback-section").outerHTML = "AWS SDK for Java";
document.getElementById("divsearch").outerHTML = "";
}
};
</script>
<!-- END-FEEDBACK-SECTION -->
</div>
</em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionNotDisabledException.html" title="class in com.amazonaws.services.cloudfront.model"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../com/amazonaws/services/cloudfront/model/ForwardedValues.html" title="class in com.amazonaws.services.cloudfront.model"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/amazonaws/services/cloudfront/model/DistributionSummary.html" target="_top">Frames</a></li>
<li><a href="DistributionSummary.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.amazonaws.services.cloudfront.model</div>
<h2 title="Class DistributionSummary" class="title">Class DistributionSummary</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>com.amazonaws.services.cloudfront.model.DistributionSummary</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>java.io.Serializable, java.lang.Cloneable</dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">DistributionSummary</span>
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable</pre>
<div class="block"><p>
A summary of the information for an Amazon CloudFront distribution.
</p></div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../serialized-form.html#com.amazonaws.services.cloudfront.model.DistributionSummary">Serialized Form</a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#DistributionSummary()">DistributionSummary</a></strong>()</code>
<div class="block">Default constructor for a new DistributionSummary object.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#clone()">clone</a></strong>()</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#equals(java.lang.Object)">equals</a></strong>(java.lang.Object obj)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/cloudfront/model/Aliases.html" title="class in com.amazonaws.services.cloudfront.model">Aliases</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#getAliases()">getAliases</a></strong>()</code>
<div class="block">A complex type that contains information about CNAMEs (alternate
domain names), if any, for this distribution.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/cloudfront/model/CacheBehaviors.html" title="class in com.amazonaws.services.cloudfront.model">CacheBehaviors</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#getCacheBehaviors()">getCacheBehaviors</a></strong>()</code>
<div class="block">A complex type that contains zero or more CacheBehavior elements.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#getComment()">getComment</a></strong>()</code>
<div class="block">The comment originally specified when this distribution was created.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/cloudfront/model/CustomErrorResponses.html" title="class in com.amazonaws.services.cloudfront.model">CustomErrorResponses</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#getCustomErrorResponses()">getCustomErrorResponses</a></strong>()</code>
<div class="block">A complex type that contains zero or more CustomErrorResponses
elements.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/cloudfront/model/DefaultCacheBehavior.html" title="class in com.amazonaws.services.cloudfront.model">DefaultCacheBehavior</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#getDefaultCacheBehavior()">getDefaultCacheBehavior</a></strong>()</code>
<div class="block">A complex type that describes the default cache behavior if you do not
specify a CacheBehavior element or if files don't match any of the
values of PathPattern in CacheBehavior elements.You must create
exactly one default cache behavior.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#getDomainName()">getDomainName</a></strong>()</code>
<div class="block">The domain name corresponding to the distribution.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.Boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#getEnabled()">getEnabled</a></strong>()</code>
<div class="block">Whether the distribution is enabled to accept end user requests for
content.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#getId()">getId</a></strong>()</code>
<div class="block">The identifier for the distribution.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.util.Date</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#getLastModifiedTime()">getLastModifiedTime</a></strong>()</code>
<div class="block">The date and time the distribution was last modified.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/cloudfront/model/Origins.html" title="class in com.amazonaws.services.cloudfront.model">Origins</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#getOrigins()">getOrigins</a></strong>()</code>
<div class="block">A complex type that contains information about origins for this
distribution.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#getPriceClass()">getPriceClass</a></strong>()</code>
<div class="block">Returns the value of the PriceClass property for this object.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/cloudfront/model/Restrictions.html" title="class in com.amazonaws.services.cloudfront.model">Restrictions</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#getRestrictions()">getRestrictions</a></strong>()</code>
<div class="block">A complex type that identifies ways in which you want to restrict
distribution of your content.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#getStatus()">getStatus</a></strong>()</code>
<div class="block">This response element indicates the current status of the
distribution.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/cloudfront/model/ViewerCertificate.html" title="class in com.amazonaws.services.cloudfront.model">ViewerCertificate</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#getViewerCertificate()">getViewerCertificate</a></strong>()</code>
<div class="block">A complex type that contains information about viewer certificates for
this distribution.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#getWebACLId()">getWebACLId</a></strong>()</code>
<div class="block">The Web ACL Id (if any) associated with the distribution.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#hashCode()">hashCode</a></strong>()</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.Boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#isEnabled()">isEnabled</a></strong>()</code>
<div class="block">Whether the distribution is enabled to accept end user requests for
content.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#setAliases(com.amazonaws.services.cloudfront.model.Aliases)">setAliases</a></strong>(<a href="../../../../../com/amazonaws/services/cloudfront/model/Aliases.html" title="class in com.amazonaws.services.cloudfront.model">Aliases</a> aliases)</code>
<div class="block">A complex type that contains information about CNAMEs (alternate
domain names), if any, for this distribution.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#setCacheBehaviors(com.amazonaws.services.cloudfront.model.CacheBehaviors)">setCacheBehaviors</a></strong>(<a href="../../../../../com/amazonaws/services/cloudfront/model/CacheBehaviors.html" title="class in com.amazonaws.services.cloudfront.model">CacheBehaviors</a> cacheBehaviors)</code>
<div class="block">A complex type that contains zero or more CacheBehavior elements.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#setComment(java.lang.String)">setComment</a></strong>(java.lang.String comment)</code>
<div class="block">The comment originally specified when this distribution was created.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#setCustomErrorResponses(com.amazonaws.services.cloudfront.model.CustomErrorResponses)">setCustomErrorResponses</a></strong>(<a href="../../../../../com/amazonaws/services/cloudfront/model/CustomErrorResponses.html" title="class in com.amazonaws.services.cloudfront.model">CustomErrorResponses</a> customErrorResponses)</code>
<div class="block">A complex type that contains zero or more CustomErrorResponses
elements.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#setDefaultCacheBehavior(com.amazonaws.services.cloudfront.model.DefaultCacheBehavior)">setDefaultCacheBehavior</a></strong>(<a href="../../../../../com/amazonaws/services/cloudfront/model/DefaultCacheBehavior.html" title="class in com.amazonaws.services.cloudfront.model">DefaultCacheBehavior</a> defaultCacheBehavior)</code>
<div class="block">A complex type that describes the default cache behavior if you do not
specify a CacheBehavior element or if files don't match any of the
values of PathPattern in CacheBehavior elements.You must create
exactly one default cache behavior.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#setDomainName(java.lang.String)">setDomainName</a></strong>(java.lang.String domainName)</code>
<div class="block">The domain name corresponding to the distribution.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#setEnabled(java.lang.Boolean)">setEnabled</a></strong>(java.lang.Boolean enabled)</code>
<div class="block">Whether the distribution is enabled to accept end user requests for
content.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#setId(java.lang.String)">setId</a></strong>(java.lang.String id)</code>
<div class="block">The identifier for the distribution.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#setLastModifiedTime(java.util.Date)">setLastModifiedTime</a></strong>(java.util.Date lastModifiedTime)</code>
<div class="block">The date and time the distribution was last modified.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#setOrigins(com.amazonaws.services.cloudfront.model.Origins)">setOrigins</a></strong>(<a href="../../../../../com/amazonaws/services/cloudfront/model/Origins.html" title="class in com.amazonaws.services.cloudfront.model">Origins</a> origins)</code>
<div class="block">A complex type that contains information about origins for this
distribution.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#setPriceClass(com.amazonaws.services.cloudfront.model.PriceClass)">setPriceClass</a></strong>(<a href="../../../../../com/amazonaws/services/cloudfront/model/PriceClass.html" title="enum in com.amazonaws.services.cloudfront.model">PriceClass</a> priceClass)</code>
<div class="block">Sets the value of the PriceClass property for this object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#setPriceClass(java.lang.String)">setPriceClass</a></strong>(java.lang.String priceClass)</code>
<div class="block">Sets the value of the PriceClass property for this object.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#setRestrictions(com.amazonaws.services.cloudfront.model.Restrictions)">setRestrictions</a></strong>(<a href="../../../../../com/amazonaws/services/cloudfront/model/Restrictions.html" title="class in com.amazonaws.services.cloudfront.model">Restrictions</a> restrictions)</code>
<div class="block">A complex type that identifies ways in which you want to restrict
distribution of your content.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#setStatus(java.lang.String)">setStatus</a></strong>(java.lang.String status)</code>
<div class="block">This response element indicates the current status of the
distribution.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#setViewerCertificate(com.amazonaws.services.cloudfront.model.ViewerCertificate)">setViewerCertificate</a></strong>(<a href="../../../../../com/amazonaws/services/cloudfront/model/ViewerCertificate.html" title="class in com.amazonaws.services.cloudfront.model">ViewerCertificate</a> viewerCertificate)</code>
<div class="block">A complex type that contains information about viewer certificates for
this distribution.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#setWebACLId(java.lang.String)">setWebACLId</a></strong>(java.lang.String webACLId)</code>
<div class="block">The Web ACL Id (if any) associated with the distribution.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#toString()">toString</a></strong>()</code>
<div class="block">Returns a string representation of this object; useful for testing and
debugging.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#withAliases(com.amazonaws.services.cloudfront.model.Aliases)">withAliases</a></strong>(<a href="../../../../../com/amazonaws/services/cloudfront/model/Aliases.html" title="class in com.amazonaws.services.cloudfront.model">Aliases</a> aliases)</code>
<div class="block">A complex type that contains information about CNAMEs (alternate
domain names), if any, for this distribution.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#withCacheBehaviors(com.amazonaws.services.cloudfront.model.CacheBehaviors)">withCacheBehaviors</a></strong>(<a href="../../../../../com/amazonaws/services/cloudfront/model/CacheBehaviors.html" title="class in com.amazonaws.services.cloudfront.model">CacheBehaviors</a> cacheBehaviors)</code>
<div class="block">A complex type that contains zero or more CacheBehavior elements.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#withComment(java.lang.String)">withComment</a></strong>(java.lang.String comment)</code>
<div class="block">The comment originally specified when this distribution was created.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#withCustomErrorResponses(com.amazonaws.services.cloudfront.model.CustomErrorResponses)">withCustomErrorResponses</a></strong>(<a href="../../../../../com/amazonaws/services/cloudfront/model/CustomErrorResponses.html" title="class in com.amazonaws.services.cloudfront.model">CustomErrorResponses</a> customErrorResponses)</code>
<div class="block">A complex type that contains zero or more CustomErrorResponses
elements.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#withDefaultCacheBehavior(com.amazonaws.services.cloudfront.model.DefaultCacheBehavior)">withDefaultCacheBehavior</a></strong>(<a href="../../../../../com/amazonaws/services/cloudfront/model/DefaultCacheBehavior.html" title="class in com.amazonaws.services.cloudfront.model">DefaultCacheBehavior</a> defaultCacheBehavior)</code>
<div class="block">A complex type that describes the default cache behavior if you do not
specify a CacheBehavior element or if files don't match any of the
values of PathPattern in CacheBehavior elements.You must create
exactly one default cache behavior.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#withDomainName(java.lang.String)">withDomainName</a></strong>(java.lang.String domainName)</code>
<div class="block">The domain name corresponding to the distribution.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#withEnabled(java.lang.Boolean)">withEnabled</a></strong>(java.lang.Boolean enabled)</code>
<div class="block">Whether the distribution is enabled to accept end user requests for
content.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#withId(java.lang.String)">withId</a></strong>(java.lang.String id)</code>
<div class="block">The identifier for the distribution.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#withLastModifiedTime(java.util.Date)">withLastModifiedTime</a></strong>(java.util.Date lastModifiedTime)</code>
<div class="block">The date and time the distribution was last modified.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#withOrigins(com.amazonaws.services.cloudfront.model.Origins)">withOrigins</a></strong>(<a href="../../../../../com/amazonaws/services/cloudfront/model/Origins.html" title="class in com.amazonaws.services.cloudfront.model">Origins</a> origins)</code>
<div class="block">A complex type that contains information about origins for this
distribution.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#withPriceClass(com.amazonaws.services.cloudfront.model.PriceClass)">withPriceClass</a></strong>(<a href="../../../../../com/amazonaws/services/cloudfront/model/PriceClass.html" title="enum in com.amazonaws.services.cloudfront.model">PriceClass</a> priceClass)</code>
<div class="block">Sets the value of the PriceClass property for this object.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#withPriceClass(java.lang.String)">withPriceClass</a></strong>(java.lang.String priceClass)</code>
<div class="block">Sets the value of the PriceClass property for this object.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#withRestrictions(com.amazonaws.services.cloudfront.model.Restrictions)">withRestrictions</a></strong>(<a href="../../../../../com/amazonaws/services/cloudfront/model/Restrictions.html" title="class in com.amazonaws.services.cloudfront.model">Restrictions</a> restrictions)</code>
<div class="block">A complex type that identifies ways in which you want to restrict
distribution of your content.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#withStatus(java.lang.String)">withStatus</a></strong>(java.lang.String status)</code>
<div class="block">This response element indicates the current status of the
distribution.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#withViewerCertificate(com.amazonaws.services.cloudfront.model.ViewerCertificate)">withViewerCertificate</a></strong>(<a href="../../../../../com/amazonaws/services/cloudfront/model/ViewerCertificate.html" title="class in com.amazonaws.services.cloudfront.model">ViewerCertificate</a> viewerCertificate)</code>
<div class="block">A complex type that contains information about viewer certificates for
this distribution.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html#withWebACLId(java.lang.String)">withWebACLId</a></strong>(java.lang.String webACLId)</code>
<div class="block">The Web ACL Id (if any) associated with the distribution.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>getClass, notify, notifyAll, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="DistributionSummary()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>DistributionSummary</h4>
<pre>public DistributionSummary()</pre>
<div class="block">Default constructor for a new DistributionSummary object. Callers should use the
setter or fluent setter (with...) methods to initialize this object after creating it.</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getId()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getId</h4>
<pre>public java.lang.String getId()</pre>
<div class="block">The identifier for the distribution. For example: EDFDVBD632BHDS5.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The identifier for the distribution. For example: EDFDVBD632BHDS5.</dd></dl>
</li>
</ul>
<a name="setId(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setId</h4>
<pre>public void setId(java.lang.String id)</pre>
<div class="block">The identifier for the distribution. For example: EDFDVBD632BHDS5.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>id</code> - The identifier for the distribution. For example: EDFDVBD632BHDS5.</dd></dl>
</li>
</ul>
<a name="withId(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withId</h4>
<pre>public <a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a> withId(java.lang.String id)</pre>
<div class="block">The identifier for the distribution. For example: EDFDVBD632BHDS5.
<p>
Returns a reference to this object so that method calls can be chained together.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>id</code> - The identifier for the distribution. For example: EDFDVBD632BHDS5.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A reference to this updated object so that method calls can be chained
together.</dd></dl>
</li>
</ul>
<a name="getStatus()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStatus</h4>
<pre>public java.lang.String getStatus()</pre>
<div class="block">This response element indicates the current status of the
distribution. When the status is Deployed, the distribution's
information is fully propagated throughout the Amazon CloudFront
system.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>This response element indicates the current status of the
distribution. When the status is Deployed, the distribution's
information is fully propagated throughout the Amazon CloudFront
system.</dd></dl>
</li>
</ul>
<a name="setStatus(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setStatus</h4>
<pre>public void setStatus(java.lang.String status)</pre>
<div class="block">This response element indicates the current status of the
distribution. When the status is Deployed, the distribution's
information is fully propagated throughout the Amazon CloudFront
system.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>status</code> - This response element indicates the current status of the
distribution. When the status is Deployed, the distribution's
information is fully propagated throughout the Amazon CloudFront
system.</dd></dl>
</li>
</ul>
<a name="withStatus(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withStatus</h4>
<pre>public <a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a> withStatus(java.lang.String status)</pre>
<div class="block">This response element indicates the current status of the
distribution. When the status is Deployed, the distribution's
information is fully propagated throughout the Amazon CloudFront
system.
<p>
Returns a reference to this object so that method calls can be chained together.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>status</code> - This response element indicates the current status of the
distribution. When the status is Deployed, the distribution's
information is fully propagated throughout the Amazon CloudFront
system.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A reference to this updated object so that method calls can be chained
together.</dd></dl>
</li>
</ul>
<a name="getLastModifiedTime()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLastModifiedTime</h4>
<pre>public java.util.Date getLastModifiedTime()</pre>
<div class="block">The date and time the distribution was last modified.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The date and time the distribution was last modified.</dd></dl>
</li>
</ul>
<a name="setLastModifiedTime(java.util.Date)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setLastModifiedTime</h4>
<pre>public void setLastModifiedTime(java.util.Date lastModifiedTime)</pre>
<div class="block">The date and time the distribution was last modified.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>lastModifiedTime</code> - The date and time the distribution was last modified.</dd></dl>
</li>
</ul>
<a name="withLastModifiedTime(java.util.Date)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withLastModifiedTime</h4>
<pre>public <a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a> withLastModifiedTime(java.util.Date lastModifiedTime)</pre>
<div class="block">The date and time the distribution was last modified.
<p>
Returns a reference to this object so that method calls can be chained together.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>lastModifiedTime</code> - The date and time the distribution was last modified.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A reference to this updated object so that method calls can be chained
together.</dd></dl>
</li>
</ul>
<a name="getDomainName()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDomainName</h4>
<pre>public java.lang.String getDomainName()</pre>
<div class="block">The domain name corresponding to the distribution. For example:
d604721fxaaqy9.cloudfront.net.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The domain name corresponding to the distribution. For example:
d604721fxaaqy9.cloudfront.net.</dd></dl>
</li>
</ul>
<a name="setDomainName(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDomainName</h4>
<pre>public void setDomainName(java.lang.String domainName)</pre>
<div class="block">The domain name corresponding to the distribution. For example:
d604721fxaaqy9.cloudfront.net.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>domainName</code> - The domain name corresponding to the distribution. For example:
d604721fxaaqy9.cloudfront.net.</dd></dl>
</li>
</ul>
<a name="withDomainName(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withDomainName</h4>
<pre>public <a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a> withDomainName(java.lang.String domainName)</pre>
<div class="block">The domain name corresponding to the distribution. For example:
d604721fxaaqy9.cloudfront.net.
<p>
Returns a reference to this object so that method calls can be chained together.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>domainName</code> - The domain name corresponding to the distribution. For example:
d604721fxaaqy9.cloudfront.net.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A reference to this updated object so that method calls can be chained
together.</dd></dl>
</li>
</ul>
<a name="getAliases()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAliases</h4>
<pre>public <a href="../../../../../com/amazonaws/services/cloudfront/model/Aliases.html" title="class in com.amazonaws.services.cloudfront.model">Aliases</a> getAliases()</pre>
<div class="block">A complex type that contains information about CNAMEs (alternate
domain names), if any, for this distribution.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>A complex type that contains information about CNAMEs (alternate
domain names), if any, for this distribution.</dd></dl>
</li>
</ul>
<a name="setAliases(com.amazonaws.services.cloudfront.model.Aliases)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAliases</h4>
<pre>public void setAliases(<a href="../../../../../com/amazonaws/services/cloudfront/model/Aliases.html" title="class in com.amazonaws.services.cloudfront.model">Aliases</a> aliases)</pre>
<div class="block">A complex type that contains information about CNAMEs (alternate
domain names), if any, for this distribution.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>aliases</code> - A complex type that contains information about CNAMEs (alternate
domain names), if any, for this distribution.</dd></dl>
</li>
</ul>
<a name="withAliases(com.amazonaws.services.cloudfront.model.Aliases)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withAliases</h4>
<pre>public <a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a> withAliases(<a href="../../../../../com/amazonaws/services/cloudfront/model/Aliases.html" title="class in com.amazonaws.services.cloudfront.model">Aliases</a> aliases)</pre>
<div class="block">A complex type that contains information about CNAMEs (alternate
domain names), if any, for this distribution.
<p>
Returns a reference to this object so that method calls can be chained together.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>aliases</code> - A complex type that contains information about CNAMEs (alternate
domain names), if any, for this distribution.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A reference to this updated object so that method calls can be chained
together.</dd></dl>
</li>
</ul>
<a name="getOrigins()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getOrigins</h4>
<pre>public <a href="../../../../../com/amazonaws/services/cloudfront/model/Origins.html" title="class in com.amazonaws.services.cloudfront.model">Origins</a> getOrigins()</pre>
<div class="block">A complex type that contains information about origins for this
distribution.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>A complex type that contains information about origins for this
distribution.</dd></dl>
</li>
</ul>
<a name="setOrigins(com.amazonaws.services.cloudfront.model.Origins)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOrigins</h4>
<pre>public void setOrigins(<a href="../../../../../com/amazonaws/services/cloudfront/model/Origins.html" title="class in com.amazonaws.services.cloudfront.model">Origins</a> origins)</pre>
<div class="block">A complex type that contains information about origins for this
distribution.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>origins</code> - A complex type that contains information about origins for this
distribution.</dd></dl>
</li>
</ul>
<a name="withOrigins(com.amazonaws.services.cloudfront.model.Origins)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withOrigins</h4>
<pre>public <a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a> withOrigins(<a href="../../../../../com/amazonaws/services/cloudfront/model/Origins.html" title="class in com.amazonaws.services.cloudfront.model">Origins</a> origins)</pre>
<div class="block">A complex type that contains information about origins for this
distribution.
<p>
Returns a reference to this object so that method calls can be chained together.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>origins</code> - A complex type that contains information about origins for this
distribution.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A reference to this updated object so that method calls can be chained
together.</dd></dl>
</li>
</ul>
<a name="getDefaultCacheBehavior()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDefaultCacheBehavior</h4>
<pre>public <a href="../../../../../com/amazonaws/services/cloudfront/model/DefaultCacheBehavior.html" title="class in com.amazonaws.services.cloudfront.model">DefaultCacheBehavior</a> getDefaultCacheBehavior()</pre>
<div class="block">A complex type that describes the default cache behavior if you do not
specify a CacheBehavior element or if files don't match any of the
values of PathPattern in CacheBehavior elements.You must create
exactly one default cache behavior.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>A complex type that describes the default cache behavior if you do not
specify a CacheBehavior element or if files don't match any of the
values of PathPattern in CacheBehavior elements.You must create
exactly one default cache behavior.</dd></dl>
</li>
</ul>
<a name="setDefaultCacheBehavior(com.amazonaws.services.cloudfront.model.DefaultCacheBehavior)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDefaultCacheBehavior</h4>
<pre>public void setDefaultCacheBehavior(<a href="../../../../../com/amazonaws/services/cloudfront/model/DefaultCacheBehavior.html" title="class in com.amazonaws.services.cloudfront.model">DefaultCacheBehavior</a> defaultCacheBehavior)</pre>
<div class="block">A complex type that describes the default cache behavior if you do not
specify a CacheBehavior element or if files don't match any of the
values of PathPattern in CacheBehavior elements.You must create
exactly one default cache behavior.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>defaultCacheBehavior</code> - A complex type that describes the default cache behavior if you do not
specify a CacheBehavior element or if files don't match any of the
values of PathPattern in CacheBehavior elements.You must create
exactly one default cache behavior.</dd></dl>
</li>
</ul>
<a name="withDefaultCacheBehavior(com.amazonaws.services.cloudfront.model.DefaultCacheBehavior)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withDefaultCacheBehavior</h4>
<pre>public <a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a> withDefaultCacheBehavior(<a href="../../../../../com/amazonaws/services/cloudfront/model/DefaultCacheBehavior.html" title="class in com.amazonaws.services.cloudfront.model">DefaultCacheBehavior</a> defaultCacheBehavior)</pre>
<div class="block">A complex type that describes the default cache behavior if you do not
specify a CacheBehavior element or if files don't match any of the
values of PathPattern in CacheBehavior elements.You must create
exactly one default cache behavior.
<p>
Returns a reference to this object so that method calls can be chained together.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>defaultCacheBehavior</code> - A complex type that describes the default cache behavior if you do not
specify a CacheBehavior element or if files don't match any of the
values of PathPattern in CacheBehavior elements.You must create
exactly one default cache behavior.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A reference to this updated object so that method calls can be chained
together.</dd></dl>
</li>
</ul>
<a name="getCacheBehaviors()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCacheBehaviors</h4>
<pre>public <a href="../../../../../com/amazonaws/services/cloudfront/model/CacheBehaviors.html" title="class in com.amazonaws.services.cloudfront.model">CacheBehaviors</a> getCacheBehaviors()</pre>
<div class="block">A complex type that contains zero or more CacheBehavior elements.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>A complex type that contains zero or more CacheBehavior elements.</dd></dl>
</li>
</ul>
<a name="setCacheBehaviors(com.amazonaws.services.cloudfront.model.CacheBehaviors)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCacheBehaviors</h4>
<pre>public void setCacheBehaviors(<a href="../../../../../com/amazonaws/services/cloudfront/model/CacheBehaviors.html" title="class in com.amazonaws.services.cloudfront.model">CacheBehaviors</a> cacheBehaviors)</pre>
<div class="block">A complex type that contains zero or more CacheBehavior elements.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>cacheBehaviors</code> - A complex type that contains zero or more CacheBehavior elements.</dd></dl>
</li>
</ul>
<a name="withCacheBehaviors(com.amazonaws.services.cloudfront.model.CacheBehaviors)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withCacheBehaviors</h4>
<pre>public <a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a> withCacheBehaviors(<a href="../../../../../com/amazonaws/services/cloudfront/model/CacheBehaviors.html" title="class in com.amazonaws.services.cloudfront.model">CacheBehaviors</a> cacheBehaviors)</pre>
<div class="block">A complex type that contains zero or more CacheBehavior elements.
<p>
Returns a reference to this object so that method calls can be chained together.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>cacheBehaviors</code> - A complex type that contains zero or more CacheBehavior elements.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A reference to this updated object so that method calls can be chained
together.</dd></dl>
</li>
</ul>
<a name="getCustomErrorResponses()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCustomErrorResponses</h4>
<pre>public <a href="../../../../../com/amazonaws/services/cloudfront/model/CustomErrorResponses.html" title="class in com.amazonaws.services.cloudfront.model">CustomErrorResponses</a> getCustomErrorResponses()</pre>
<div class="block">A complex type that contains zero or more CustomErrorResponses
elements.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>A complex type that contains zero or more CustomErrorResponses
elements.</dd></dl>
</li>
</ul>
<a name="setCustomErrorResponses(com.amazonaws.services.cloudfront.model.CustomErrorResponses)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCustomErrorResponses</h4>
<pre>public void setCustomErrorResponses(<a href="../../../../../com/amazonaws/services/cloudfront/model/CustomErrorResponses.html" title="class in com.amazonaws.services.cloudfront.model">CustomErrorResponses</a> customErrorResponses)</pre>
<div class="block">A complex type that contains zero or more CustomErrorResponses
elements.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>customErrorResponses</code> - A complex type that contains zero or more CustomErrorResponses
elements.</dd></dl>
</li>
</ul>
<a name="withCustomErrorResponses(com.amazonaws.services.cloudfront.model.CustomErrorResponses)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withCustomErrorResponses</h4>
<pre>public <a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a> withCustomErrorResponses(<a href="../../../../../com/amazonaws/services/cloudfront/model/CustomErrorResponses.html" title="class in com.amazonaws.services.cloudfront.model">CustomErrorResponses</a> customErrorResponses)</pre>
<div class="block">A complex type that contains zero or more CustomErrorResponses
elements.
<p>
Returns a reference to this object so that method calls can be chained together.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>customErrorResponses</code> - A complex type that contains zero or more CustomErrorResponses
elements.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A reference to this updated object so that method calls can be chained
together.</dd></dl>
</li>
</ul>
<a name="getComment()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getComment</h4>
<pre>public java.lang.String getComment()</pre>
<div class="block">The comment originally specified when this distribution was created.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The comment originally specified when this distribution was created.</dd></dl>
</li>
</ul>
<a name="setComment(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setComment</h4>
<pre>public void setComment(java.lang.String comment)</pre>
<div class="block">The comment originally specified when this distribution was created.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>comment</code> - The comment originally specified when this distribution was created.</dd></dl>
</li>
</ul>
<a name="withComment(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withComment</h4>
<pre>public <a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a> withComment(java.lang.String comment)</pre>
<div class="block">The comment originally specified when this distribution was created.
<p>
Returns a reference to this object so that method calls can be chained together.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>comment</code> - The comment originally specified when this distribution was created.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A reference to this updated object so that method calls can be chained
together.</dd></dl>
</li>
</ul>
<a name="getPriceClass()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPriceClass</h4>
<pre>public java.lang.String getPriceClass()</pre>
<div class="block">Returns the value of the PriceClass property for this object.
<p>
<b>Constraints:</b><br/>
<b>Allowed Values: </b>PriceClass_100, PriceClass_200, PriceClass_All</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The value of the PriceClass property for this object.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../com/amazonaws/services/cloudfront/model/PriceClass.html" title="enum in com.amazonaws.services.cloudfront.model"><code>PriceClass</code></a></dd></dl>
</li>
</ul>
<a name="setPriceClass(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPriceClass</h4>
<pre>public void setPriceClass(java.lang.String priceClass)</pre>
<div class="block">Sets the value of the PriceClass property for this object.
<p>
<b>Constraints:</b><br/>
<b>Allowed Values: </b>PriceClass_100, PriceClass_200, PriceClass_All</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>priceClass</code> - The new value for the PriceClass property for this object.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../com/amazonaws/services/cloudfront/model/PriceClass.html" title="enum in com.amazonaws.services.cloudfront.model"><code>PriceClass</code></a></dd></dl>
</li>
</ul>
<a name="withPriceClass(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withPriceClass</h4>
<pre>public <a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a> withPriceClass(java.lang.String priceClass)</pre>
<div class="block">Sets the value of the PriceClass property for this object.
<p>
Returns a reference to this object so that method calls can be chained together.
<p>
<b>Constraints:</b><br/>
<b>Allowed Values: </b>PriceClass_100, PriceClass_200, PriceClass_All</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>priceClass</code> - The new value for the PriceClass property for this object.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A reference to this updated object so that method calls can be chained
together.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../com/amazonaws/services/cloudfront/model/PriceClass.html" title="enum in com.amazonaws.services.cloudfront.model"><code>PriceClass</code></a></dd></dl>
</li>
</ul>
<a name="setPriceClass(com.amazonaws.services.cloudfront.model.PriceClass)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPriceClass</h4>
<pre>public void setPriceClass(<a href="../../../../../com/amazonaws/services/cloudfront/model/PriceClass.html" title="enum in com.amazonaws.services.cloudfront.model">PriceClass</a> priceClass)</pre>
<div class="block">Sets the value of the PriceClass property for this object.
<p>
<b>Constraints:</b><br/>
<b>Allowed Values: </b>PriceClass_100, PriceClass_200, PriceClass_All</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>priceClass</code> - The new value for the PriceClass property for this object.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../com/amazonaws/services/cloudfront/model/PriceClass.html" title="enum in com.amazonaws.services.cloudfront.model"><code>PriceClass</code></a></dd></dl>
</li>
</ul>
<a name="withPriceClass(com.amazonaws.services.cloudfront.model.PriceClass)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withPriceClass</h4>
<pre>public <a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a> withPriceClass(<a href="../../../../../com/amazonaws/services/cloudfront/model/PriceClass.html" title="enum in com.amazonaws.services.cloudfront.model">PriceClass</a> priceClass)</pre>
<div class="block">Sets the value of the PriceClass property for this object.
<p>
Returns a reference to this object so that method calls can be chained together.
<p>
<b>Constraints:</b><br/>
<b>Allowed Values: </b>PriceClass_100, PriceClass_200, PriceClass_All</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>priceClass</code> - The new value for the PriceClass property for this object.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A reference to this updated object so that method calls can be chained
together.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../com/amazonaws/services/cloudfront/model/PriceClass.html" title="enum in com.amazonaws.services.cloudfront.model"><code>PriceClass</code></a></dd></dl>
</li>
</ul>
<a name="isEnabled()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isEnabled</h4>
<pre>public java.lang.Boolean isEnabled()</pre>
<div class="block">Whether the distribution is enabled to accept end user requests for
content.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Whether the distribution is enabled to accept end user requests for
content.</dd></dl>
</li>
</ul>
<a name="setEnabled(java.lang.Boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setEnabled</h4>
<pre>public void setEnabled(java.lang.Boolean enabled)</pre>
<div class="block">Whether the distribution is enabled to accept end user requests for
content.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>enabled</code> - Whether the distribution is enabled to accept end user requests for
content.</dd></dl>
</li>
</ul>
<a name="withEnabled(java.lang.Boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withEnabled</h4>
<pre>public <a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a> withEnabled(java.lang.Boolean enabled)</pre>
<div class="block">Whether the distribution is enabled to accept end user requests for
content.
<p>
Returns a reference to this object so that method calls can be chained together.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>enabled</code> - Whether the distribution is enabled to accept end user requests for
content.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A reference to this updated object so that method calls can be chained
together.</dd></dl>
</li>
</ul>
<a name="getEnabled()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEnabled</h4>
<pre>public java.lang.Boolean getEnabled()</pre>
<div class="block">Whether the distribution is enabled to accept end user requests for
content.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Whether the distribution is enabled to accept end user requests for
content.</dd></dl>
</li>
</ul>
<a name="getViewerCertificate()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getViewerCertificate</h4>
<pre>public <a href="../../../../../com/amazonaws/services/cloudfront/model/ViewerCertificate.html" title="class in com.amazonaws.services.cloudfront.model">ViewerCertificate</a> getViewerCertificate()</pre>
<div class="block">A complex type that contains information about viewer certificates for
this distribution.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>A complex type that contains information about viewer certificates for
this distribution.</dd></dl>
</li>
</ul>
<a name="setViewerCertificate(com.amazonaws.services.cloudfront.model.ViewerCertificate)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setViewerCertificate</h4>
<pre>public void setViewerCertificate(<a href="../../../../../com/amazonaws/services/cloudfront/model/ViewerCertificate.html" title="class in com.amazonaws.services.cloudfront.model">ViewerCertificate</a> viewerCertificate)</pre>
<div class="block">A complex type that contains information about viewer certificates for
this distribution.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>viewerCertificate</code> - A complex type that contains information about viewer certificates for
this distribution.</dd></dl>
</li>
</ul>
<a name="withViewerCertificate(com.amazonaws.services.cloudfront.model.ViewerCertificate)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withViewerCertificate</h4>
<pre>public <a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a> withViewerCertificate(<a href="../../../../../com/amazonaws/services/cloudfront/model/ViewerCertificate.html" title="class in com.amazonaws.services.cloudfront.model">ViewerCertificate</a> viewerCertificate)</pre>
<div class="block">A complex type that contains information about viewer certificates for
this distribution.
<p>
Returns a reference to this object so that method calls can be chained together.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>viewerCertificate</code> - A complex type that contains information about viewer certificates for
this distribution.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A reference to this updated object so that method calls can be chained
together.</dd></dl>
</li>
</ul>
<a name="getRestrictions()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRestrictions</h4>
<pre>public <a href="../../../../../com/amazonaws/services/cloudfront/model/Restrictions.html" title="class in com.amazonaws.services.cloudfront.model">Restrictions</a> getRestrictions()</pre>
<div class="block">A complex type that identifies ways in which you want to restrict
distribution of your content.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>A complex type that identifies ways in which you want to restrict
distribution of your content.</dd></dl>
</li>
</ul>
<a name="setRestrictions(com.amazonaws.services.cloudfront.model.Restrictions)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRestrictions</h4>
<pre>public void setRestrictions(<a href="../../../../../com/amazonaws/services/cloudfront/model/Restrictions.html" title="class in com.amazonaws.services.cloudfront.model">Restrictions</a> restrictions)</pre>
<div class="block">A complex type that identifies ways in which you want to restrict
distribution of your content.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>restrictions</code> - A complex type that identifies ways in which you want to restrict
distribution of your content.</dd></dl>
</li>
</ul>
<a name="withRestrictions(com.amazonaws.services.cloudfront.model.Restrictions)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withRestrictions</h4>
<pre>public <a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a> withRestrictions(<a href="../../../../../com/amazonaws/services/cloudfront/model/Restrictions.html" title="class in com.amazonaws.services.cloudfront.model">Restrictions</a> restrictions)</pre>
<div class="block">A complex type that identifies ways in which you want to restrict
distribution of your content.
<p>
Returns a reference to this object so that method calls can be chained together.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>restrictions</code> - A complex type that identifies ways in which you want to restrict
distribution of your content.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A reference to this updated object so that method calls can be chained
together.</dd></dl>
</li>
</ul>
<a name="getWebACLId()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getWebACLId</h4>
<pre>public java.lang.String getWebACLId()</pre>
<div class="block">The Web ACL Id (if any) associated with the distribution.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The Web ACL Id (if any) associated with the distribution.</dd></dl>
</li>
</ul>
<a name="setWebACLId(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setWebACLId</h4>
<pre>public void setWebACLId(java.lang.String webACLId)</pre>
<div class="block">The Web ACL Id (if any) associated with the distribution.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>webACLId</code> - The Web ACL Id (if any) associated with the distribution.</dd></dl>
</li>
</ul>
<a name="withWebACLId(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>withWebACLId</h4>
<pre>public <a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a> withWebACLId(java.lang.String webACLId)</pre>
<div class="block">The Web ACL Id (if any) associated with the distribution.
<p>
Returns a reference to this object so that method calls can be chained together.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>webACLId</code> - The Web ACL Id (if any) associated with the distribution.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A reference to this updated object so that method calls can be chained
together.</dd></dl>
</li>
</ul>
<a name="toString()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public java.lang.String toString()</pre>
<div class="block">Returns a string representation of this object; useful for testing and
debugging.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>toString</code> in class <code>java.lang.Object</code></dd>
<dt><span class="strong">Returns:</span></dt><dd>A string representation of this object.</dd><dt><span class="strong">See Also:</span></dt><dd><code>Object.toString()</code></dd></dl>
</li>
</ul>
<a name="hashCode()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hashCode</h4>
<pre>public int hashCode()</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>hashCode</code> in class <code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="equals(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre>public boolean equals(java.lang.Object obj)</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>equals</code> in class <code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="clone()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>clone</h4>
<pre>public <a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionSummary.html" title="class in com.amazonaws.services.cloudfront.model">DistributionSummary</a> clone()</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>clone</code> in class <code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em>
<div>
<!-- Script for Syntax Highlighter START -->
<script type="text/javascript">
SyntaxHighlighter.all()
</script>
<!-- Script for Syntax Highlighter END -->
</div>
<script src="http://a0.awsstatic.com/chrome/js/1.0.46/jquery.1.9.js" type="text/javascript"></script>
<script>jQuery.noConflict();</script>
<script>
jQuery(function ($) {
$("div.header").prepend('<!--REGION_DISCLAIMER_DO_NOT_REMOVE-->');
});
</script>
<!-- BEGIN-URCHIN-TRACKER -->
<script src="http://l0.awsstatic.com/js/urchin.js" type="text/javascript"></script>
<script type="text/javascript">urchinTracker();</script>
<!-- END-URCHIN-TRACKER -->
<!-- SiteCatalyst code version: H.25.2. Copyright 1996-2012 Adobe, Inc. All Rights Reserved.
More info available at http://www.omniture.com -->
<script language="JavaScript" type="text/javascript" src="https://media.amazonwebservices.com/js/sitecatalyst/s_code.min.js (view-source:https://media.amazonwebservices.com/js/sitecatalyst/s_code.min.js)" />
<script language="JavaScript" type="text/javascript">
<!--
// Documentation Service Name
s.prop66='AWS SDK for Java';
s.eVar66='D=c66';
// Documentation Guide Name
s.prop65='API Reference';
s.eVar65='D=c65';
var s_code=s.t();if(s_code)document.write(s_code)
//-->
</script>
<script language="JavaScript" type="text/javascript">
<!--if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
//-->
</script>
<noscript>
<img src="http://amazonwebservices.d2.sc.omtrdc.net/b/ss/awsamazondev/1/H.25.2--NS/0" height="1" width="1" border="0" alt="" />
</noscript>
<!--/DO NOT REMOVE/-->
<!-- End SiteCatalyst code version: H.25.2. -->
</em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../com/amazonaws/services/cloudfront/model/DistributionNotDisabledException.html" title="class in com.amazonaws.services.cloudfront.model"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../com/amazonaws/services/cloudfront/model/ForwardedValues.html" title="class in com.amazonaws.services.cloudfront.model"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/amazonaws/services/cloudfront/model/DistributionSummary.html" target="_top">Frames</a></li>
<li><a href="DistributionSummary.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.
</small></p>
</body>
</html>
| {
"content_hash": "d7980c7d70daca2bf0fa2995ce4d4d51",
"timestamp": "",
"source": "github",
"line_count": 1453,
"max_line_length": 455,
"avg_line_length": 55.58774948382656,
"alnum_prop": 0.7009372407730688,
"repo_name": "TomNong/Project2-Intel-Edison",
"id": "c587b4594aab472e939182ac212ae9c077691d24",
"size": "80769",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "documentation/javadoc/com/amazonaws/services/cloudfront/model/DistributionSummary.html",
"mode": "33188",
"license": "apache-2.0",
"language": [
{
"name": "Java",
"bytes": "5522"
}
],
"symlink_target": ""
} |
<!doctype html>
<html lang=en >
<head>
<meta charset=utf-8 >
<title>Open Index or Markdown</title>
<meta name=viewport content='width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,minimal-ui' >
<meta name=description content='
Top folder file wrangler
Opens index file or Markdown reader template file
' >
<meta name=keywords content='AJAX,JavaScript,GitHub,FOSS' >
<meta name=date content='2016-05-10' >
</head>
<body>
<script src=https://cdnjs.cloudflare.com/ajax/libs/showdown/1.3.0/showdown.min.js ></script>
<script>
// original: https://jaanga.github.io/cookbook-html/templates/open-index-or-markdown/index.html
defaultFile = './ladybug-web-json-browser-r3.html';
init();
function init() {
if ( location.hash && location.hash.indexOf( '.md' ) > -1 ) {
var css, fileName, contents, converter;
fileName = location.hash.slice( 1 );
document.title = fileName.split( '/' ).pop() + ' ~ ' + document.title;
css = document.head.appendChild( document.createElement( 'style' ) );
css.innerHTML =
'body { font: 12pt monospace; left: 0; margin: 0 auto; max-width: 800px; right: 0; }' +
'button, input[type=button] { background-color: #eee; border: 2px #eee solid; color: #888; }' +
'h1 a, h2 a { color: crimson; text-decoration: none; }' +
'a { color: mediumblue; }' +
'';
contents = document.body.appendChild( document.createElement( 'div' ) );
contents.id = 'contents';
converter = new showdown.Converter( { strikethrough: true, literalMidWordUnderscores: true, simplifiedAutoLink: true, tables: true });
xhr = new XMLHttpRequest();
xhr.open( 'get', fileName, true );
xhr.onload = function() { contents.innerHTML = converter.makeHtml( xhr.responseText ); };
xhr.send( null );
} else {
window.location.href = defaultFile + location.hash;
}
}
</script>
</body>
</html>
| {
"content_hash": "1d6b1bc5baea1ba112b65acd920fcc8b",
"timestamp": "",
"source": "github",
"line_count": 65,
"max_line_length": 137,
"avg_line_length": 28.984615384615385,
"alnum_prop": 0.6772823779193206,
"repo_name": "ladybug-analysis-tools/3d-models",
"id": "b90a7b78ac146fe04ce7d9902570c213074bf33f",
"size": "1884",
"binary": false,
"copies": "1",
"ref": "refs/heads/gh-pages",
"path": "code/json/browser/index.html",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "HTML",
"bytes": "283611"
},
{
"name": "JavaScript",
"bytes": "3808910"
}
],
"symlink_target": ""
} |
import { Component, OnInit } from '@angular/core';
import { ApiService } from '../../services/api.service';
import { Router, ActivatedRoute } from '@angular/router';
import { NotificationsService } from 'angular2-notifications';
@Component({
moduleId: module.id,
selector: 'mail-list',
templateUrl: 'mail-list.component.html',
styleUrls: ['mail-list.component.css']
})
export class MailListComponent implements OnInit {
messages = [];
sentMessages = [];
userId: string;
isLoading: boolean = false;
public options = {
position: ["top","right"]
};
constructor(private apiService: ApiService,
private router: Router,
private route: ActivatedRoute,
private notificationsService: NotificationsService) { }
ngOnInit() {
this.isLoading = true;
this.userId = sessionStorage.getItem('userId');
this.apiService.getMessages(this.userId)
.subscribe(messages => {
let filteredMessages = [];
let filteredSentMessages = [];
for (let i=0; i<messages.length; i++) {
if(messages[i].status == 'Neperžiūrėta' || messages[i].status == 'Peržiūrėta') {
filteredMessages.push(messages[i]);
}
if(messages[i].status == 'Išsiųsta') {
filteredSentMessages.push(messages[i]);
}
}
this.messages = filteredMessages;
this.sentMessages = filteredSentMessages;
this.isLoading = false;
}, error => {
this.isLoading = false;
this.notificationsService.error(error.title, error.error.message, {timeOut: 3000, showProgressBar: false})
});
}
viewMessage(messageId: number) {
this.apiService.changeMessageStatus(this.userId, messageId)
.subscribe(res => {
}, error => {
});
this.router.navigate(['zinutes', messageId], {relativeTo: this.route})
}
goToSentMessages() {
this.router.navigate(['/profilis', 'pastas', 'issiusta']);
}
goToNewMessage() {
this.router.navigate(['/profilis', 'pastas', 'rasyti-laiska']);
}
} | {
"content_hash": "0430148086297acd5c3e4e8e075b690f",
"timestamp": "",
"source": "github",
"line_count": 66,
"max_line_length": 114,
"avg_line_length": 31.515151515151516,
"alnum_prop": 0.6254807692307692,
"repo_name": "IrmantasLiepis/logo-design",
"id": "aa3406843372c07388781cd0d1a9f825d702bdef",
"size": "2088",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "assets/app/components/profile/mail-list.component.ts",
"mode": "33188",
"license": "mit",
"language": [
{
"name": "CSS",
"bytes": "631630"
},
{
"name": "HTML",
"bytes": "1301729"
},
{
"name": "JavaScript",
"bytes": "83986"
},
{
"name": "TypeScript",
"bytes": "316006"
}
],
"symlink_target": ""
} |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_13) on Fri Jan 31 12:16:22 GMT 2014 -->
<title>Waypoint</title>
<meta name="date" content="2014-01-31">
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Waypoint";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/StumblrData.html" title="class in uk.ac.aber.cs.groupten.stumblr.data"><span class="strong">Prev Class</span></a></li>
<li>Next Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?uk/ac/aber/cs/groupten/stumblr/data/Waypoint.html" target="_top">Frames</a></li>
<li><a href="Waypoint.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li><a href="#field_summary">Field</a> | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field_detail">Field</a> | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">uk.ac.aber.cs.groupten.stumblr.data</div>
<h2 title="Class Waypoint" class="title">Class Waypoint</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/StumblrData.html" title="class in uk.ac.aber.cs.groupten.stumblr.data">uk.ac.aber.cs.groupten.stumblr.data.StumblrData</a></li>
<li>
<ul class="inheritance">
<li>uk.ac.aber.cs.groupten.stumblr.data.Waypoint</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>android.os.Parcelable</dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">Waypoint</span>
extends <a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/StumblrData.html" title="class in uk.ac.aber.cs.groupten.stumblr.data">StumblrData</a>
implements android.os.Parcelable</pre>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested_class_summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="nested_classes_inherited_from_class_android.os.Parcelable">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface android.os.Parcelable</h3>
<code>android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.Creator<T></code></li>
</ul>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static android.os.Parcelable.Creator<<a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/Waypoint.html" title="class in uk.ac.aber.cs.groupten.stumblr.data">Waypoint</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/Waypoint.html#CREATOR">CREATOR</a></strong></code>
<div class="block">From: http://stackoverflow.com/a/18167140</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private android.graphics.Bitmap</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/Waypoint.html#image">image</a></strong></code>
<div class="block">Image contained within Waypoint.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private android.location.Location</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/Waypoint.html#location">location</a></strong></code>
<div class="block">Location for Waypoint</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private long</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/Waypoint.html#timestamp">timestamp</a></strong></code>
<div class="block">Arrival timestamp for Waypoint.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_uk.ac.aber.cs.groupten.stumblr.data.StumblrData">
<!-- -->
</a>
<h3>Fields inherited from class uk.ac.aber.cs.groupten.stumblr.data.<a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/StumblrData.html" title="class in uk.ac.aber.cs.groupten.stumblr.data">StumblrData</a></h3>
<code><a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/StumblrData.html#TAG">TAG</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_android.os.Parcelable">
<!-- -->
</a>
<h3>Fields inherited from interface android.os.Parcelable</h3>
<code>CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE</code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/Waypoint.html#Waypoint()">Waypoint</a></strong>()</code>
<div class="block">Default constructor for Waypoint.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/Waypoint.html#Waypoint(android.os.Parcel)">Waypoint</a></strong>(android.os.Parcel in)</code>
<div class="block">Constructor for a Waypoint object from a Parcel.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/Waypoint.html#describeContents()">describeContents</a></strong>()</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>android.graphics.Bitmap</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/Waypoint.html#getImage()">getImage</a></strong>()</code>
<div class="block">Returns current Bitmap.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>android.location.Location</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/Waypoint.html#getLocation()">getLocation</a></strong>()</code>
<div class="block">Sets the current location.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/Waypoint.html#getTimestamp()">getTimestamp</a></strong>()</code>
<div class="block">Returns timestamp.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/Waypoint.html#initWaypoint()">initWaypoint</a></strong>()</code>
<div class="block">Helper method for initialising Waypoint objects.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/Waypoint.html#readFromParcel(android.os.Parcel)">readFromParcel</a></strong>(android.os.Parcel inParcel)</code>
<div class="block">Reads Route data from a parcel.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/Waypoint.html#setImage(android.graphics.Bitmap)">setImage</a></strong>(android.graphics.Bitmap b)</code>
<div class="block">Sets the current Bitmap.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/Waypoint.html#setLocation(android.location.Location)">setLocation</a></strong>(android.location.Location l)</code>
<div class="block">Sets the current location.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/Waypoint.html#setTimestamp(long)">setTimestamp</a></strong>(long l)</code>
<div class="block">Sets timestamp.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/Waypoint.html#toString()">toString</a></strong>()</code>
<div class="block">Returns a String with the title.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/Waypoint.html#writeToParcel(android.os.Parcel, int)">writeToParcel</a></strong>(android.os.Parcel parcel,
int i)</code>
<div class="block">Writes the Waypoint into a Parcel for moving between Activities.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_uk.ac.aber.cs.groupten.stumblr.data.StumblrData">
<!-- -->
</a>
<h3>Methods inherited from class uk.ac.aber.cs.groupten.stumblr.data.<a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/StumblrData.html" title="class in uk.ac.aber.cs.groupten.stumblr.data">StumblrData</a></h3>
<code><a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/StumblrData.html#getCurrentTime()">getCurrentTime</a>, <a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/StumblrData.html#getShortDesc()">getShortDesc</a>, <a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/StumblrData.html#getTitle()">getTitle</a>, <a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/StumblrData.html#isValidData(java.lang.String)">isValidData</a>, <a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/StumblrData.html#sanitiseStringInput(java.lang.String)">sanitiseStringInput</a>, <a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/StumblrData.html#setShortDesc(java.lang.String)">setShortDesc</a>, <a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/StumblrData.html#setTitle(java.lang.String)">setTitle</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="timestamp">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>timestamp</h4>
<pre>private long timestamp</pre>
<div class="block">Arrival timestamp for Waypoint.</div>
</li>
</ul>
<a name="image">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>image</h4>
<pre>private android.graphics.Bitmap image</pre>
<div class="block">Image contained within Waypoint.</div>
</li>
</ul>
<a name="location">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>location</h4>
<pre>private android.location.Location location</pre>
<div class="block">Location for Waypoint</div>
</li>
</ul>
<a name="CREATOR">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>CREATOR</h4>
<pre>public static final android.os.Parcelable.Creator<<a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/Waypoint.html" title="class in uk.ac.aber.cs.groupten.stumblr.data">Waypoint</a>> CREATOR</pre>
<div class="block">From: http://stackoverflow.com/a/18167140</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="Waypoint()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Waypoint</h4>
<pre>public Waypoint()</pre>
<div class="block">Default constructor for Waypoint.</div>
</li>
</ul>
<a name="Waypoint(android.os.Parcel)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Waypoint</h4>
<pre>public Waypoint(android.os.Parcel in)</pre>
<div class="block">Constructor for a Waypoint object from a Parcel.</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="initWaypoint()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>initWaypoint</h4>
<pre>private void initWaypoint()</pre>
<div class="block">Helper method for initialising Waypoint objects.</div>
</li>
</ul>
<a name="setTimestamp(long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTimestamp</h4>
<pre>public void setTimestamp(long l)</pre>
<div class="block">Sets timestamp.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>l</code> - The timestamp.</dd></dl>
</li>
</ul>
<a name="getTimestamp()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTimestamp</h4>
<pre>public long getTimestamp()</pre>
<div class="block">Returns timestamp.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The timestamp.</dd></dl>
</li>
</ul>
<a name="setLocation(android.location.Location)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setLocation</h4>
<pre>public void setLocation(android.location.Location l)</pre>
<div class="block">Sets the current location.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>l</code> - The current location to set.</dd></dl>
</li>
</ul>
<a name="getLocation()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLocation</h4>
<pre>public android.location.Location getLocation()</pre>
<div class="block">Sets the current location.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>l</code> - The current location to set.</dd></dl>
</li>
</ul>
<a name="getImage()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getImage</h4>
<pre>public android.graphics.Bitmap getImage()</pre>
<div class="block">Returns current Bitmap.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The current Bitmap that the Waypoint has,</dd></dl>
</li>
</ul>
<a name="setImage(android.graphics.Bitmap)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setImage</h4>
<pre>public void setImage(android.graphics.Bitmap b)</pre>
<div class="block">Sets the current Bitmap.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>b</code> - The current Bitmap.</dd></dl>
</li>
</ul>
<a name="toString()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public java.lang.String toString()</pre>
<div class="block">Returns a String with the title.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>toString</code> in class <code>java.lang.Object</code></dd>
<dt><span class="strong">Returns:</span></dt><dd>The title string.</dd></dl>
</li>
</ul>
<a name="writeToParcel(android.os.Parcel, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>writeToParcel</h4>
<pre>public void writeToParcel(android.os.Parcel parcel,
int i)</pre>
<div class="block">Writes the Waypoint into a Parcel for moving between Activities.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>writeToParcel</code> in interface <code>android.os.Parcelable</code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>parcel</code> - The parcel to be written to.</dd><dd><code>i</code> - Flags.</dd></dl>
</li>
</ul>
<a name="readFromParcel(android.os.Parcel)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>readFromParcel</h4>
<pre>public void readFromParcel(android.os.Parcel inParcel)</pre>
<div class="block">Reads Route data from a parcel.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>inParcel</code> - </dd></dl>
</li>
</ul>
<a name="describeContents()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>describeContents</h4>
<pre>public int describeContents()</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>describeContents</code> in interface <code>android.os.Parcelable</code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../../uk/ac/aber/cs/groupten/stumblr/data/StumblrData.html" title="class in uk.ac.aber.cs.groupten.stumblr.data"><span class="strong">Prev Class</span></a></li>
<li>Next Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?uk/ac/aber/cs/groupten/stumblr/data/Waypoint.html" target="_top">Frames</a></li>
<li><a href="Waypoint.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li><a href="#field_summary">Field</a> | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field_detail">Field</a> | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
| {
"content_hash": "e2881f5674b1f9bef0e07db305f61a97",
"timestamp": "",
"source": "github",
"line_count": 586,
"max_line_length": 899,
"avg_line_length": 37.87883959044368,
"alnum_prop": 0.6453124296076046,
"repo_name": "aber-cs-groupten/stumblr-android-app",
"id": "916cd2418c596020878990d796a356ffd2795f0a",
"size": "22197",
"binary": false,
"copies": "1",
"ref": "refs/heads/master",
"path": "javadoc/uk/ac/aber/cs/groupten/stumblr/data/Waypoint.html",
"mode": "33188",
"license": "bsd-3-clause",
"language": [
{
"name": "CSS",
"bytes": "11139"
},
{
"name": "Groovy",
"bytes": "1639"
},
{
"name": "Java",
"bytes": "71347"
},
{
"name": "Shell",
"bytes": "7484"
}
],
"symlink_target": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.