code
stringlengths 3
1.05M
| repo_name
stringlengths 4
116
| path
stringlengths 3
942
| language
stringclasses 30
values | license
stringclasses 15
values | size
int32 3
1.05M
|
---|---|---|---|---|---|
#!/bin/sh -e
usage()
{
echo "Usage: ${0} [--structure-only] DATABASE_NAME"
}
STRUCTURE_ONLY=false
if [ "${1}" = --structure-only ]; then
STRUCTURE_ONLY=true
shift
fi
DATABASE_NAME="${1}"
if [ "${DATABASE_NAME}" = "" ]; then
usage
exit 1
fi
if [ "${STRUCTURE_ONLY}" = true ]; then
FILE="${DATABASE_NAME}-structure.sql"
else
FILE="${DATABASE_NAME}-full.sql"
fi
if [ -f "${FILE}" ]; then
echo "File exists: ${FILE}"
exit 1
fi
if [ "${STRUCTURE_ONLY}" = true ]; then
mysqldump --user=root --password --protocol=tcp --no-data --databases "${DATABASE_NAME}" > "${FILE}"
else
mysqldump --user=root --password --protocol=tcp --databases "${DATABASE_NAME}" > "${FILE}"
fi
| FunTimeCoding/mysql-tools | bin/backup-database.sh | Shell | mit | 717 |
<?php
/**
* @package AcyMailing for Joomla!
* @version 5.6.5
* @author acyba.com
* @copyright (C) 2009-2017 ACYBA S.A.R.L. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
$name = 'Technology';
$thumb = 'media/com_acymailing/templates/technology_resp/thumb.jpg';
$body = JFile::read(dirname(__FILE__).DS.'index.html');
$styles['tag_h1'] = 'font-size:20px; margin:0px; margin-bottom:15px; padding:0px; font-weight:bold; color:#01bbe5 !important;';
$styles['tag_h2'] = 'font-size:12px; font-weight:bold; color:#565656 !important; text-transform:uppercase; margin:10px 0px; padding:0px; padding-bottom:5px; border-bottom:1px solid #ddd;';
$styles['tag_h3'] = 'color:#565656 !important; font-weight:bold; font-size:12px; margin:0px; margin-bottom:10px; padding:0px;';
$styles['tag_h4'] = '';
$styles['color_bg'] = '#575757';
$styles['tag_a'] = 'cursor:pointer;color:#01bbe5;text-decoration:none;border:none;';
$styles['acymailing_online'] = 'color:#d2d1d1; cursor:pointer;';
$styles['acymailing_unsub'] = 'color:#d2d1d1; cursor:pointer;';
$styles['acymailing_readmore'] = 'cursor:pointer; font-weight:bold; color:#fff; background-color:#01bbe5; padding:2px 5px;';
$stylesheet = 'table, div, p, td {
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
}
p{margin:0px; padding:0px}
.special h2{font-size:18px;
margin:0px;
margin-bottom:15px;
padding:0px;
font-weight:bold;
color:#01bbe5 !important;
text-transform:none;
border:none}
.links a{color:#ababab}
@media (min-width:10px){
.w600 { width:320px !important;}
.w540 { width:260px !important;}
.w30 { width:30px !important;}
.w600 img {max-width:320px; height:auto !important}
.w540 img {max-width:260px; height:auto !important}
}
@media (min-width: 480px){
.w600 { width:480px !important;}
.w540 { width:420px !important;}
.w30 { width:30px !important;}
.w600 img {max-width:480px; height:auto !important}
.w540 img {max-width:420px; height:auto !important}
}
@media (min-width:600px){
.w600 { width:600px !important;}
.w540 { width:540px !important;}
.w30 { width:30px !important;}
.w600 img {max-width:600px; height:auto !important}
.w540 img {max-width:540px; height:auto !important}
}
';
| yaelduckwen/libriastore | joomla/media/com_acymailing/templates/technology_resp/install.php | PHP | mit | 2,281 |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using Windows.UI.Xaml;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace ManagedUnitTests
{
public static class TestUtilities
{
/// <summary>
/// Handles the difference between InvalidOperationException in managed and native.
/// </summary>
public static void AssertThrowsInvalidOperationException(Action action)
{
Assert.ThrowsException<InvalidOperationException>(action);
}
public static void AssertThrowsArgumentException(Action action)
{
Assert.ThrowsException<ArgumentException>(action);
}
public static void AssertDetached(StubBehavior behavior)
{
Assert.AreEqual(1, behavior.DetachCount, "The Behavior should be detached.");
Assert.IsNull(behavior.AssociatedObject, "A Detached Behavior should have a null AssociatedObject.");
}
public static void AssertNotDetached(StubBehavior behavior)
{
Assert.AreEqual(0, behavior.DetachCount, "The Behavior should not be detached.");
}
public static void AssertAttached(StubBehavior behavior, DependencyObject associatedObject)
{
Assert.AreEqual(1, behavior.AttachCount, "The behavior should be attached.");
Assert.AreEqual(associatedObject, behavior.AssociatedObject, "The AssociatedObject of the Behavior should be what it was attached to.");
}
public static void AssertNotAttached(StubBehavior behavior)
{
Assert.AreEqual(0, behavior.AttachCount, "The behavior should not be attached.");
Assert.IsNull(behavior.AssociatedObject, "The AssociatedObject should be null for a non-attached Behavior.");
}
}
}
| Microsoft/XamlBehaviors | src/BehaviorsSDKManaged/ManagedUnitTests/TestUitilties.cs | C# | mit | 1,930 |
<?php
namespace EntityManager5178714d05176_546a8d27f194334ee012bfe64f629947b07e4919\__CG__\Doctrine\ORM;
/**
* CG library enhanced proxy class.
*
* This code was generated automatically by the CG library, manual changes to it
* will be lost upon next generation.
*/
class EntityManager extends \Doctrine\ORM\EntityManager
{
private $delegate;
private $container;
/**
* Executes a function in a transaction.
*
* The function gets passed this EntityManager instance as an (optional) parameter.
*
* {@link flush} is invoked prior to transaction commit.
*
* If an exception occurs during execution of the function or flushing or transaction commit,
* the transaction is rolled back, the EntityManager closed and the exception re-thrown.
*
* @param callable $func The function to execute transactionally.
* @return mixed Returns the non-empty value returned from the closure or true instead
*/
public function transactional($func)
{
return $this->delegate->transactional($func);
}
/**
* Performs a rollback on the underlying database connection.
*/
public function rollback()
{
return $this->delegate->rollback();
}
/**
* Removes an entity instance.
*
* A removed entity will be removed from the database at or before transaction commit
* or as a result of the flush operation.
*
* @param object $entity The entity instance to remove.
*/
public function remove($entity)
{
return $this->delegate->remove($entity);
}
/**
* Refreshes the persistent state of an entity from the database,
* overriding any local changes that have not yet been persisted.
*
* @param object $entity The entity to refresh.
*/
public function refresh($entity)
{
return $this->delegate->refresh($entity);
}
/**
* Tells the EntityManager to make an instance managed and persistent.
*
* The entity will be entered into the database at or before transaction
* commit or as a result of the flush operation.
*
* NOTE: The persist operation always considers entities that are not yet known to
* this EntityManager as NEW. Do not pass detached entities to the persist operation.
*
* @param object $object The instance to make managed and persistent.
*/
public function persist($entity)
{
return $this->delegate->persist($entity);
}
/**
* Create a new instance for the given hydration mode.
*
* @param int $hydrationMode
* @return \Doctrine\ORM\Internal\Hydration\AbstractHydrator
*/
public function newHydrator($hydrationMode)
{
return $this->delegate->newHydrator($hydrationMode);
}
/**
* Merges the state of a detached entity into the persistence context
* of this EntityManager and returns the managed copy of the entity.
* The entity passed to merge will not become associated/managed with this EntityManager.
*
* @param object $entity The detached entity to merge into the persistence context.
* @return object The managed copy of the entity.
*/
public function merge($entity)
{
return $this->delegate->merge($entity);
}
/**
* Acquire a lock on the given entity.
*
* @param object $entity
* @param int $lockMode
* @param int $lockVersion
* @throws OptimisticLockException
* @throws PessimisticLockException
*/
public function lock($entity, $lockMode, $lockVersion = NULL)
{
return $this->delegate->lock($entity, $lockMode, $lockVersion);
}
/**
* Check if the Entity manager is open or closed.
*
* @return bool
*/
public function isOpen()
{
return $this->delegate->isOpen();
}
/**
* Checks whether the state of the filter collection is clean.
*
* @return boolean True, if the filter collection is clean.
*/
public function isFiltersStateClean()
{
return $this->delegate->isFiltersStateClean();
}
/**
* Helper method to initialize a lazy loading proxy or persistent collection.
*
* This method is a no-op for other objects
*
* @param object $obj
*/
public function initializeObject($obj)
{
return $this->delegate->initializeObject($obj);
}
/**
* Checks whether the Entity Manager has filters.
*
* @return True, if the EM has a filter collection.
*/
public function hasFilters()
{
return $this->delegate->hasFilters();
}
/**
* Gets the UnitOfWork used by the EntityManager to coordinate operations.
*
* @return \Doctrine\ORM\UnitOfWork
*/
public function getUnitOfWork()
{
return $this->delegate->getUnitOfWork();
}
/**
* Gets the repository for an entity class.
*
* @param string $entityName The name of the entity.
* @return EntityRepository The repository class.
*/
public function getRepository($className)
{
$repository = $this->delegate->getRepository($className);
if ($repository instanceof \Symfony\Component\DependencyInjection\ContainerAwareInterface) {
$repository->setContainer($this->container);
return $repository;
}
if (null !== $metadata = $this->container->get("jms_di_extra.metadata.metadata_factory")->getMetadataForClass(get_class($repository))) {
foreach ($metadata->classMetadata as $classMetadata) {
foreach ($classMetadata->methodCalls as $call) {
list($method, $arguments) = $call;
call_user_func_array(array($repository, $method), $this->prepareArguments($arguments));
}
}
}
return $repository;
}
/**
* Gets a reference to the entity identified by the given type and identifier
* without actually loading it, if the entity is not yet loaded.
*
* @param string $entityName The name of the entity type.
* @param mixed $id The entity identifier.
* @return object The entity reference.
*/
public function getReference($entityName, $id)
{
return $this->delegate->getReference($entityName, $id);
}
/**
* Gets the proxy factory used by the EntityManager to create entity proxies.
*
* @return ProxyFactory
*/
public function getProxyFactory()
{
return $this->delegate->getProxyFactory();
}
/**
* Gets a partial reference to the entity identified by the given type and identifier
* without actually loading it, if the entity is not yet loaded.
*
* The returned reference may be a partial object if the entity is not yet loaded/managed.
* If it is a partial object it will not initialize the rest of the entity state on access.
* Thus you can only ever safely access the identifier of an entity obtained through
* this method.
*
* The use-cases for partial references involve maintaining bidirectional associations
* without loading one side of the association or to update an entity without loading it.
* Note, however, that in the latter case the original (persistent) entity data will
* never be visible to the application (especially not event listeners) as it will
* never be loaded in the first place.
*
* @param string $entityName The name of the entity type.
* @param mixed $identifier The entity identifier.
* @return object The (partial) entity reference.
*/
public function getPartialReference($entityName, $identifier)
{
return $this->delegate->getPartialReference($entityName, $identifier);
}
/**
* Gets the metadata factory used to gather the metadata of classes.
*
* @return \Doctrine\ORM\Mapping\ClassMetadataFactory
*/
public function getMetadataFactory()
{
return $this->delegate->getMetadataFactory();
}
/**
* Gets a hydrator for the given hydration mode.
*
* This method caches the hydrator instances which is used for all queries that don't
* selectively iterate over the result.
*
* @param int $hydrationMode
* @return \Doctrine\ORM\Internal\Hydration\AbstractHydrator
*/
public function getHydrator($hydrationMode)
{
return $this->delegate->getHydrator($hydrationMode);
}
/**
* Gets the enabled filters.
*
* @return FilterCollection The active filter collection.
*/
public function getFilters()
{
return $this->delegate->getFilters();
}
/**
* Gets an ExpressionBuilder used for object-oriented construction of query expressions.
*
* Example:
*
* <code>
* $qb = $em->createQueryBuilder();
* $expr = $em->getExpressionBuilder();
* $qb->select('u')->from('User', 'u')
* ->where($expr->orX($expr->eq('u.id', 1), $expr->eq('u.id', 2)));
* </code>
*
* @return \Doctrine\ORM\Query\Expr
*/
public function getExpressionBuilder()
{
return $this->delegate->getExpressionBuilder();
}
/**
* Gets the EventManager used by the EntityManager.
*
* @return \Doctrine\Common\EventManager
*/
public function getEventManager()
{
return $this->delegate->getEventManager();
}
/**
* Gets the database connection object used by the EntityManager.
*
* @return \Doctrine\DBAL\Connection
*/
public function getConnection()
{
return $this->delegate->getConnection();
}
/**
* Gets the Configuration used by the EntityManager.
*
* @return \Doctrine\ORM\Configuration
*/
public function getConfiguration()
{
return $this->delegate->getConfiguration();
}
/**
* Returns the ORM metadata descriptor for a class.
*
* The class name must be the fully-qualified class name without a leading backslash
* (as it is returned by get_class($obj)) or an aliased class name.
*
* Examples:
* MyProject\Domain\User
* sales:PriceRequest
*
* @return \Doctrine\ORM\Mapping\ClassMetadata
* @internal Performance-sensitive method.
*/
public function getClassMetadata($className)
{
return $this->delegate->getClassMetadata($className);
}
/**
* Flushes all changes to objects that have been queued up to now to the database.
* This effectively synchronizes the in-memory state of managed objects with the
* database.
*
* If an entity is explicitly passed to this method only this entity and
* the cascade-persist semantics + scheduled inserts/removals are synchronized.
*
* @param object $entity
* @throws \Doctrine\ORM\OptimisticLockException If a version check on an entity that
* makes use of optimistic locking fails.
*/
public function flush($entity = NULL)
{
return $this->delegate->flush($entity);
}
/**
* Finds an Entity by its identifier.
*
* @param string $entityName
* @param mixed $id
* @param integer $lockMode
* @param integer $lockVersion
*
* @return object
*/
public function find($entityName, $id, $lockMode = 0, $lockVersion = NULL)
{
return $this->delegate->find($entityName, $id, $lockMode, $lockVersion);
}
/**
* Detaches an entity from the EntityManager, causing a managed entity to
* become detached. Unflushed changes made to the entity if any
* (including removal of the entity), will not be synchronized to the database.
* Entities which previously referenced the detached entity will continue to
* reference it.
*
* @param object $entity The entity to detach.
*/
public function detach($entity)
{
return $this->delegate->detach($entity);
}
/**
* Create a QueryBuilder instance
*
* @return QueryBuilder $qb
*/
public function createQueryBuilder()
{
return $this->delegate->createQueryBuilder();
}
/**
* Creates a new Query object.
*
* @param string $dql The DQL string.
* @return \Doctrine\ORM\Query
*/
public function createQuery($dql = '')
{
return $this->delegate->createQuery($dql);
}
/**
* Creates a native SQL query.
*
* @param string $sql
* @param ResultSetMapping $rsm The ResultSetMapping to use.
* @return NativeQuery
*/
public function createNativeQuery($sql, \Doctrine\ORM\Query\ResultSetMapping $rsm)
{
return $this->delegate->createNativeQuery($sql, $rsm);
}
/**
* Creates a Query from a named query.
*
* @param string $name
* @return \Doctrine\ORM\Query
*/
public function createNamedQuery($name)
{
return $this->delegate->createNamedQuery($name);
}
/**
* Creates a NativeQuery from a named native query.
*
* @param string $name
* @return \Doctrine\ORM\NativeQuery
*/
public function createNamedNativeQuery($name)
{
return $this->delegate->createNamedNativeQuery($name);
}
/**
* Creates a copy of the given entity. Can create a shallow or a deep copy.
*
* @param object $entity The entity to copy.
* @return object The new entity.
* @todo Implementation need. This is necessary since $e2 = clone $e1; throws an E_FATAL when access anything on $e:
* Fatal error: Maximum function nesting level of '100' reached, aborting!
*/
public function copy($entity, $deep = false)
{
return $this->delegate->copy($entity, $deep);
}
/**
* Determines whether an entity instance is managed in this EntityManager.
*
* @param object $entity
* @return boolean TRUE if this EntityManager currently manages the given entity, FALSE otherwise.
*/
public function contains($entity)
{
return $this->delegate->contains($entity);
}
/**
* Commits a transaction on the underlying database connection.
*/
public function commit()
{
return $this->delegate->commit();
}
/**
* Closes the EntityManager. All entities that are currently managed
* by this EntityManager become detached. The EntityManager may no longer
* be used after it is closed.
*/
public function close()
{
return $this->delegate->close();
}
/**
* Clears the EntityManager. All entities that are currently managed
* by this EntityManager become detached.
*
* @param string $entityName if given, only entities of this type will get detached
*/
public function clear($entityName = NULL)
{
return $this->delegate->clear($entityName);
}
/**
* Starts a transaction on the underlying database connection.
*/
public function beginTransaction()
{
return $this->delegate->beginTransaction();
}
public function __construct($objectManager, \Symfony\Component\DependencyInjection\ContainerInterface $container)
{
$this->delegate = $objectManager;
$this->container = $container;
}
private function prepareArguments(array $arguments)
{
$processed = array();
foreach ($arguments as $arg) {
if ($arg instanceof \Symfony\Component\DependencyInjection\Reference) {
$processed[] = $this->container->get((string) $arg, $arg->getInvalidBehavior());
} else if ($arg instanceof \Symfony\Component\DependencyInjection\Parameter) {
$processed[] = $this->container->getParameter((string) $arg);
} else {
$processed[] = $arg;
}
}
return $processed;
}
} | deivy90/Detoditoonline | app/cache/dev/jms_diextra/doctrine/EntityManager_5178714d05176.php | PHP | mit | 16,022 |
<a name="2.7.8"></a>
## 2.7.8 (2016-03-20)
* Added new blog to showcase ([d7be966](https://github.com/kikobeats/uno-zen/commit/d7be966))
* Apply effect in tag version as well. ([266f331](https://github.com/kikobeats/uno-zen/commit/266f331))
* Merge pull request #183 from binaryfever/patch-1 ([93ff62a](https://github.com/kikobeats/uno-zen/commit/93ff62a))
* Merge pull request #184 from Mooash/master ([4e1db0c](https://github.com/kikobeats/uno-zen/commit/4e1db0c))
* Removing blog ([5c92c32](https://github.com/kikobeats/uno-zen/commit/5c92c32))
* Update ([db0c527](https://github.com/kikobeats/uno-zen/commit/db0c527))
<a name="2.7.7"></a>
## 2.7.7 (2016-03-11)
* 2.7.7 releases ([509a564](https://github.com/kikobeats/uno-zen/commit/509a564))
* Add more stuff ([5c0ac0a](https://github.com/kikobeats/uno-zen/commit/5c0ac0a))
* Add Uno Urban announcement 🎉 ([5702f48](https://github.com/kikobeats/uno-zen/commit/5702f48))
* Update README.md ([8fc16c8](https://github.com/kikobeats/uno-zen/commit/8fc16c8))
<a name="2.7.6"></a>
## 2.7.6 (2016-02-23)
* 2.7.6 releases ([b139bba](https://github.com/kikobeats/uno-zen/commit/b139bba))
* Fix typo ([4624cff](https://github.com/kikobeats/uno-zen/commit/4624cff))
* Remove unnecessary ([7a8567b](https://github.com/kikobeats/uno-zen/commit/7a8567b))
<a name="2.7.5"></a>
## 2.7.5 (2016-02-22)
* 2.7.5 releases ([780d021](https://github.com/kikobeats/uno-zen/commit/780d021))
* Fix line height ([6fb493a](https://github.com/kikobeats/uno-zen/commit/6fb493a))
* Fix paged views ([6fee7d0](https://github.com/kikobeats/uno-zen/commit/6fee7d0))
* Remove unnecessary ([c21188f](https://github.com/kikobeats/uno-zen/commit/c21188f))
* Setup correctly font weight ([f95cdf6](https://github.com/kikobeats/uno-zen/commit/f95cdf6))
* Setup correctly line-height ([1881c5d](https://github.com/kikobeats/uno-zen/commit/1881c5d))
* setup root directory ([b4685cb](https://github.com/kikobeats/uno-zen/commit/b4685cb))
* Use bold keyword ([9199dfd](https://github.com/kikobeats/uno-zen/commit/9199dfd))
<a name="2.7.4"></a>
## 2.7.4 (2016-02-20)
* 2.7.4 releases ([58c7dac](https://github.com/kikobeats/uno-zen/commit/58c7dac))
* adjust font base ([2bfbadc](https://github.com/kikobeats/uno-zen/commit/2bfbadc))
* fix build ([6ed5cb2](https://github.com/kikobeats/uno-zen/commit/6ed5cb2))
* Fix build ([26cd27a](https://github.com/kikobeats/uno-zen/commit/26cd27a))
* Fix travis ([1392630](https://github.com/kikobeats/uno-zen/commit/1392630))
* improve template ([45ca19d](https://github.com/kikobeats/uno-zen/commit/45ca19d))
* upgrade node ([90e3564](https://github.com/kikobeats/uno-zen/commit/90e3564))
<a name="2.7.3"></a>
## 2.7.3 (2016-02-02)
* 2.7.3 releases ([d4ab6cd](https://github.com/kikobeats/uno-zen/commit/d4ab6cd))
* Adjust cover margins ([e9d257f](https://github.com/kikobeats/uno-zen/commit/e9d257f))
* Adjust sidebar margins ([7e7ca13](https://github.com/kikobeats/uno-zen/commit/7e7ca13))
* move into scripts ([72e9522](https://github.com/kikobeats/uno-zen/commit/72e9522))
* Update README.md ([e4ca41a](https://github.com/kikobeats/uno-zen/commit/e4ca41a))
<a name="2.7.2"></a>
## 2.7.2 (2016-01-19)
* 2.7.2 releases ([275a187](https://github.com/kikobeats/uno-zen/commit/275a187))
* Fic W3C Validations ([7a45489](https://github.com/kikobeats/uno-zen/commit/7a45489))
* Move external font into link tag ([cb1869a](https://github.com/kikobeats/uno-zen/commit/cb1869a))
<a name="2.7.1"></a>
## 2.7.1 (2016-01-19)
* 2.7.1 releases ([27fe347](https://github.com/kikobeats/uno-zen/commit/27fe347))
* edit readme for clarity ([0dc5cb5](https://github.com/kikobeats/uno-zen/commit/0dc5cb5))
* fix grammar errors and edit for clarity ([524df2a](https://github.com/kikobeats/uno-zen/commit/524df2a))
* Fix highlights code blocks ([220e75c](https://github.com/kikobeats/uno-zen/commit/220e75c))
* Merge pull request #171 from martinms-usc/master ([fa245d0](https://github.com/kikobeats/uno-zen/commit/fa245d0))
<a name="2.7.0"></a>
# 2.7.0 (2016-01-09)
* 2.7.0 releases ([e36ef50](https://github.com/kikobeats/uno-zen/commit/e36ef50))
* Add 4ts.io blog as a showcase ([3e60322](https://github.com/kikobeats/uno-zen/commit/3e60322))
* Add travis ([ef69dac](https://github.com/kikobeats/uno-zen/commit/ef69dac))
* Add travis tests ([a09c269](https://github.com/kikobeats/uno-zen/commit/a09c269))
* Delete unnecessary css ([c7b5936](https://github.com/kikobeats/uno-zen/commit/c7b5936))
* Little refactor ([349ff87](https://github.com/kikobeats/uno-zen/commit/349ff87))
* Little refactor ([11a62e5](https://github.com/kikobeats/uno-zen/commit/11a62e5))
* Merge pull request #164 from apolikamixitos/master ([0b3c5b1](https://github.com/kikobeats/uno-zen/commit/0b3c5b1))
* Merge pull request #168 from waja/post_list_headline ([c43f0dc](https://github.com/kikobeats/uno-zen/commit/c43f0dc))
* Replace the https with http of 4ts.io blog ([7d7bf0f](https://github.com/kikobeats/uno-zen/commit/7d7bf0f))
* This makes the headline of the post list page customizable. ([e81896c](https://github.com/kikobeats/uno-zen/commit/e81896c)), closes [#166](https://github.com/kikobeats/uno-zen/issues/166)
* Update README.md ([a0b0185](https://github.com/kikobeats/uno-zen/commit/a0b0185))
* Update README.md ([260960d](https://github.com/kikobeats/uno-zen/commit/260960d))
* Update showcase section ([4fceeab](https://github.com/kikobeats/uno-zen/commit/4fceeab))
* Update SHOWCASE.md ([a48fb41](https://github.com/kikobeats/uno-zen/commit/a48fb41))
* Update SHOWCASE.md ([108285f](https://github.com/kikobeats/uno-zen/commit/108285f))
* Update SHOWCASE.md ([0727494](https://github.com/kikobeats/uno-zen/commit/0727494))
<a name="2.6.10"></a>
## 2.6.10 (2016-01-06)
* 2.6.10 releases ([231370f](https://github.com/kikobeats/uno-zen/commit/231370f))
* Add gulp-shortand dep ([3e46534](https://github.com/kikobeats/uno-zen/commit/3e46534))
* Add Related section ([c35a0d3](https://github.com/kikobeats/uno-zen/commit/c35a0d3))
* Add Setup section ([01073c1](https://github.com/kikobeats/uno-zen/commit/01073c1))
* Adjust prism build ([7bdbdc6](https://github.com/kikobeats/uno-zen/commit/7bdbdc6))
* Better JS minification ([c68fa03](https://github.com/kikobeats/uno-zen/commit/c68fa03))
* Fix typo ([a6fedf8](https://github.com/kikobeats/uno-zen/commit/a6fedf8))
* Refactor footer ([7219ada](https://github.com/kikobeats/uno-zen/commit/7219ada))
* Remove unnecessary dependency ([3da45d5](https://github.com/kikobeats/uno-zen/commit/3da45d5))
<a name="2.6.9"></a>
## 2.6.9 (2015-12-31)
* 2.6.9 releases ([57f63f8](https://github.com/kikobeats/uno-zen/commit/57f63f8))
* Add default static page template ([0d102d8](https://github.com/kikobeats/uno-zen/commit/0d102d8))
* Added brief description of build.sh script. ([e6420f8](https://github.com/kikobeats/uno-zen/commit/e6420f8))
* Added build script to create archive for usage with Ghost(pro). ([bb67bc5](https://github.com/kikobeats/uno-zen/commit/bb67bc5))
* Merge pull request #157 from devillex/kikobeats-master ([3225bd2](https://github.com/kikobeats/uno-zen/commit/3225bd2))
<a name="2.6.8"></a>
## 2.6.8 (2015-12-30)
* 2.6.8 releases ([62bf4d2](https://github.com/kikobeats/uno-zen/commit/62bf4d2))
* Extract post-author into a partial ([430f4f3](https://github.com/kikobeats/uno-zen/commit/430f4f3))
* Fix #153 ([d63d508](https://github.com/kikobeats/uno-zen/commit/d63d508)), closes [#153](https://github.com/kikobeats/uno-zen/issues/153)
<a name="2.6.7"></a>
## 2.6.7 (2015-12-28)
* 2.6.7 releases ([71db207](https://github.com/kikobeats/uno-zen/commit/71db207))
* Fix #151 ([b4337d1](https://github.com/kikobeats/uno-zen/commit/b4337d1)), closes [#151](https://github.com/kikobeats/uno-zen/issues/151)
<a name="2.6.6"></a>
## 2.6.6 (2015-12-26)
* 2.6.6 releases ([ed1553a](https://github.com/kikobeats/uno-zen/commit/ed1553a))
* Removed wait for DOM ([6f5e8f2](https://github.com/kikobeats/uno-zen/commit/6f5e8f2))
* Update to include inline version ([9c9e757](https://github.com/kikobeats/uno-zen/commit/9c9e757))
<a name="2.6.5"></a>
## 2.6.5 (2015-12-22)
* _mixins.scss doesn't exist. The variables $cover-primary and $cover-secondary are in _variables.scs ([f4ac947](https://github.com/kikobeats/uno-zen/commit/f4ac947))
* 2.6.5 releases ([06cf240](https://github.com/kikobeats/uno-zen/commit/06cf240))
* Fix timeAgo function ([398e691](https://github.com/kikobeats/uno-zen/commit/398e691))
* Merge pull request #146 from alexlovescoding/patch-1 ([49ae326](https://github.com/kikobeats/uno-zen/commit/49ae326))
* Remove twemoji ([161bd5c](https://github.com/kikobeats/uno-zen/commit/161bd5c))
* Update DOCUMENTATION.md ([04f89a1](https://github.com/kikobeats/uno-zen/commit/04f89a1))
<a name="2.6.4"></a>
## 2.6.4 (2015-12-16)
* 2.6.4 releases ([09500d9](https://github.com/kikobeats/uno-zen/commit/09500d9))
* 2.6.4 releases ([3662203](https://github.com/kikobeats/uno-zen/commit/3662203))
<a name="2.6.3"></a>
## 2.6.3 (2015-12-13)
* 2.6.3 releases ([51476d9](https://github.com/kikobeats/uno-zen/commit/51476d9))
* Add mail template ([c70fe70](https://github.com/kikobeats/uno-zen/commit/c70fe70))
* Add Zepto as recommendation (#144) ([03b3d61](https://github.com/kikobeats/uno-zen/commit/03b3d61))
* Fix #140 ([191ac93](https://github.com/kikobeats/uno-zen/commit/191ac93)), closes [#140](https://github.com/kikobeats/uno-zen/issues/140)
* Update DOCUMENTATION.md ([f308683](https://github.com/kikobeats/uno-zen/commit/f308683))
<a name="2.6.2"></a>
## 2.6.2 (2015-12-10)
* 2.6.2 releases ([20c2774](https://github.com/kikobeats/uno-zen/commit/20c2774))
* added prism ([c1a2371](https://github.com/kikobeats/uno-zen/commit/c1a2371))
* Adjust margins and deleted duplicated rules ([2c081fe](https://github.com/kikobeats/uno-zen/commit/2c081fe))
<a name="2.6.1"></a>
## 2.6.1 (2015-12-04)
* 2.6.1 releases ([fa953e3](https://github.com/kikobeats/uno-zen/commit/fa953e3))
* fixed highlight syntax for non detected language ([abb2212](https://github.com/kikobeats/uno-zen/commit/abb2212))
<a name="2.6.0"></a>
# 2.6.0 (2015-12-03)
* 2.6.0 releases ([7e6736a](https://github.com/kikobeats/uno-zen/commit/7e6736a))
* adjust blockquotes margins ([4ae9f7e](https://github.com/kikobeats/uno-zen/commit/4ae9f7e))
* deleted some duplicate rules and format files ([3851935](https://github.com/kikobeats/uno-zen/commit/3851935))
* improved mobile view ([6ab6ad5](https://github.com/kikobeats/uno-zen/commit/6ab6ad5))
* Merge pull request #135 from Kikobeats/beta ([ce0ac71](https://github.com/kikobeats/uno-zen/commit/ce0ac71))
* updated bumped settings ([5a911c6](https://github.com/kikobeats/uno-zen/commit/5a911c6))
<a name="2.6.0-rc.4"></a>
# 2.6.0-rc.4 (2015-11-23)
* Added node version badge ([efa7ba4](https://github.com/kikobeats/uno-zen/commit/efa7ba4))
* added to automatically change the version ([997cfa0](https://github.com/kikobeats/uno-zen/commit/997cfa0))
* little improvement in inline code style ([1a0c6db](https://github.com/kikobeats/uno-zen/commit/1a0c6db))
* refactor margins and font from titles ([8dec9ea](https://github.com/kikobeats/uno-zen/commit/8dec9ea))
* refactor margins to be constant ([7a003fb](https://github.com/kikobeats/uno-zen/commit/7a003fb))
* refactor prism theme to be similar to github gist ([dc65f71](https://github.com/kikobeats/uno-zen/commit/dc65f71))
* refactor quotes style ([3362c0b](https://github.com/kikobeats/uno-zen/commit/3362c0b))
<a name="2.6.0-rc.3"></a>
# 2.6.0-rc.3 (2015-11-20)
* Fixed #124 ([fca6b83](https://github.com/kikobeats/uno-zen/commit/fca6b83)), closes [#124](https://github.com/kikobeats/uno-zen/issues/124)
* Tag view similar to index view ([3f2160c](https://github.com/kikobeats/uno-zen/commit/3f2160c))
<a name="2.6.0-rc.2"></a>
# 2.6.0-rc.2 (2015-11-15)
* 2.6.0-rc.2 ([427d429](https://github.com/kikobeats/uno-zen/commit/427d429))
* add prism as dependency ([2f8aaf5](https://github.com/kikobeats/uno-zen/commit/2f8aaf5))
* Added twemoji as dependency ([f150cdc](https://github.com/kikobeats/uno-zen/commit/f150cdc))
* adjust breadcrumbs on mobile ([673d0af](https://github.com/kikobeats/uno-zen/commit/673d0af))
* adjust margins...again. ([570d08c](https://github.com/kikobeats/uno-zen/commit/570d08c))
* adjust padding in links ([b77b378](https://github.com/kikobeats/uno-zen/commit/b77b378))
* adjust post list media queries ([58fa32d](https://github.com/kikobeats/uno-zen/commit/58fa32d))
* adjust read time for post lists ([fad1086](https://github.com/kikobeats/uno-zen/commit/fad1086))
* be posible to setup a different open button ([af17af5](https://github.com/kikobeats/uno-zen/commit/af17af5))
* changed twitter share link. Fixed #108 ([014dac8](https://github.com/kikobeats/uno-zen/commit/014dac8)), closes [#108](https://github.com/kikobeats/uno-zen/issues/108)
* first approach of posts ([c33125d](https://github.com/kikobeats/uno-zen/commit/c33125d))
* fixed #114 #112 #111 #109 ([86dc8e0](https://github.com/kikobeats/uno-zen/commit/86dc8e0)), closes [#114](https://github.com/kikobeats/uno-zen/issues/114) [#112](https://github.com/kikobeats/uno-zen/issues/112) [#111](https://github.com/kikobeats/uno-zen/issues/111) [#109](https://github.com/kikobeats/uno-zen/issues/109)
* fixed pagination extra space ([561d5a4](https://github.com/kikobeats/uno-zen/commit/561d5a4))
* fixed post list margins ([fe7a001](https://github.com/kikobeats/uno-zen/commit/fe7a001))
* improved a:hover style ([e8610a4](https://github.com/kikobeats/uno-zen/commit/e8610a4))
* mark and selection color based in $secondary-color ([3810a2c](https://github.com/kikobeats/uno-zen/commit/3810a2c))
* Merge pull request #105 from foorb/patch-1 ([42a4631](https://github.com/kikobeats/uno-zen/commit/42a4631))
* Merge pull request #113 from foorb/master ([7c83395](https://github.com/kikobeats/uno-zen/commit/7c83395))
* Merge pull request #127 from foorb/master ([ddc76a3](https://github.com/kikobeats/uno-zen/commit/ddc76a3))
* mixins renamed into utils ([4747b0a](https://github.com/kikobeats/uno-zen/commit/4747b0a))
* Refactor meta tags in the same place ([244e9a5](https://github.com/kikobeats/uno-zen/commit/244e9a5))
* Update DOCUMENTATION.md ([57953a2](https://github.com/kikobeats/uno-zen/commit/57953a2))
* Update README.md ([6ce84ef](https://github.com/kikobeats/uno-zen/commit/6ce84ef))
* Update showcase ([1e374cf](https://github.com/kikobeats/uno-zen/commit/1e374cf))
<a name="2.5.7"></a>
## 2.5.7 (2015-10-11)
* 2.5.7 releases ([3c54914](https://github.com/kikobeats/uno-zen/commit/3c54914))
* Fix some styles errors with the scroll bars ([2f3b578](https://github.com/kikobeats/uno-zen/commit/2f3b578))
* Merge pull request #101 from ManRueda/master ([95d0b8b](https://github.com/kikobeats/uno-zen/commit/95d0b8b))
* Merge pull request #103 from foorb/patch-1 ([ba968b1](https://github.com/kikobeats/uno-zen/commit/ba968b1))
* Merge pull request #104 from foorb/patch-2 ([c7a8ddf](https://github.com/kikobeats/uno-zen/commit/c7a8ddf))
* selection color ([d790df5](https://github.com/kikobeats/uno-zen/commit/d790df5))
* Update README.md ([4a012a3](https://github.com/kikobeats/uno-zen/commit/4a012a3))
<a name="2.5.6"></a>
## 2.5.6 (2015-10-08)
* 2.5.6 releases ([fd225da](https://github.com/kikobeats/uno-zen/commit/fd225da))
* Added IFTT recipe for know new releases ([936e4fd](https://github.com/kikobeats/uno-zen/commit/936e4fd))
* added scrollbar behavior. Adjusted z-index ([d3b998e](https://github.com/kikobeats/uno-zen/commit/d3b998e))
* added ToC ([0636bc2](https://github.com/kikobeats/uno-zen/commit/0636bc2))
* adjust aside shadow. Fixed #72 ([54a693e](https://github.com/kikobeats/uno-zen/commit/54a693e)), closes [#72](https://github.com/kikobeats/uno-zen/issues/72)
* Adjusted aside behavior ([f46c266](https://github.com/kikobeats/uno-zen/commit/f46c266))
* compare operator ([65a3549](https://github.com/kikobeats/uno-zen/commit/65a3549))
* Fixed #97 ([b329940](https://github.com/kikobeats/uno-zen/commit/b329940)), closes [#97](https://github.com/kikobeats/uno-zen/issues/97)
* improve install/update ([b7a01e6](https://github.com/kikobeats/uno-zen/commit/b7a01e6))
* little improvements ([30cad77](https://github.com/kikobeats/uno-zen/commit/30cad77))
* Merge pull request #98 from foorb/master ([1136f56](https://github.com/kikobeats/uno-zen/commit/1136f56))
* Merge pull request #99 from foorb/master ([3db5355](https://github.com/kikobeats/uno-zen/commit/3db5355))
* Merge remote-tracking branch 'Kikobeats/master' ([16cb4d6](https://github.com/kikobeats/uno-zen/commit/16cb4d6))
* removed unnecessary file ([69f25ea](https://github.com/kikobeats/uno-zen/commit/69f25ea))
* update README ([3507855](https://github.com/kikobeats/uno-zen/commit/3507855))
* update README.md ([b2fd76e](https://github.com/kikobeats/uno-zen/commit/b2fd76e))
* update README.md ([6175a95](https://github.com/kikobeats/uno-zen/commit/6175a95))
* update README.md ([c9c3254](https://github.com/kikobeats/uno-zen/commit/c9c3254))
* update README.md ([c377cea](https://github.com/kikobeats/uno-zen/commit/c377cea))
* update README.md ([61a84a3](https://github.com/kikobeats/uno-zen/commit/61a84a3))
* update README.md ([83ca7ae](https://github.com/kikobeats/uno-zen/commit/83ca7ae))
* update README.md ([5a19e2a](https://github.com/kikobeats/uno-zen/commit/5a19e2a))
* update README.md ([4a61614](https://github.com/kikobeats/uno-zen/commit/4a61614))
* Update README.md ([d0a56f0](https://github.com/kikobeats/uno-zen/commit/d0a56f0))
* Update README.md ([714f4e3](https://github.com/kikobeats/uno-zen/commit/714f4e3))
* Update README.md ([7d594c4](https://github.com/kikobeats/uno-zen/commit/7d594c4))
* Update README.md ([ffc6d89](https://github.com/kikobeats/uno-zen/commit/ffc6d89))
<a name="2.5.5"></a>
## 2.5.5 (2015-10-04)
* 2.5.5 releases ([a3357b8](https://github.com/kikobeats/uno-zen/commit/a3357b8))
* adjust scripts ([0dfb6b2](https://github.com/kikobeats/uno-zen/commit/0dfb6b2))
* first commit ([92ba10b](https://github.com/kikobeats/uno-zen/commit/92ba10b))
* Fixed #88 ([696d98a](https://github.com/kikobeats/uno-zen/commit/696d98a)), closes [#88](https://github.com/kikobeats/uno-zen/issues/88)
* Fixed #91 ([6be573b](https://github.com/kikobeats/uno-zen/commit/6be573b)), closes [#91](https://github.com/kikobeats/uno-zen/issues/91)
* fixed #96 ([a5ea9e6](https://github.com/kikobeats/uno-zen/commit/a5ea9e6)), closes [#96](https://github.com/kikobeats/uno-zen/issues/96)
* Fixed how to setup cover ([6decadc](https://github.com/kikobeats/uno-zen/commit/6decadc))
* git clone first ([d7f0a35](https://github.com/kikobeats/uno-zen/commit/d7f0a35))
* improve scripts ([cc04a44](https://github.com/kikobeats/uno-zen/commit/cc04a44))
* Merge pull request #93 from Loo7Oopeit/patch-1 ([07f741f](https://github.com/kikobeats/uno-zen/commit/07f741f))
* Merge pull request #94 from Loo7Oopeit/patch-2 ([974de7a](https://github.com/kikobeats/uno-zen/commit/974de7a))
* Update install.sh ([c388147](https://github.com/kikobeats/uno-zen/commit/c388147))
* Update README.md ([c2f05af](https://github.com/kikobeats/uno-zen/commit/c2f05af))
* Update README.md ([6fbb42b](https://github.com/kikobeats/uno-zen/commit/6fbb42b))
* Update README.md ([32e7bbc](https://github.com/kikobeats/uno-zen/commit/32e7bbc))
* updated ([5339968](https://github.com/kikobeats/uno-zen/commit/5339968))
* using git https ([758acde](https://github.com/kikobeats/uno-zen/commit/758acde))
<a name="2.5.4"></a>
## 2.5.4 (2015-09-24)
* 2.5.4 releases ([d5b0a40](https://github.com/kikobeats/uno-zen/commit/d5b0a40))
* Fixes #82 ([4beffad](https://github.com/kikobeats/uno-zen/commit/4beffad)), closes [#82](https://github.com/kikobeats/uno-zen/issues/82)
* Fixes #84 ([1374e31](https://github.com/kikobeats/uno-zen/commit/1374e31)), closes [#84](https://github.com/kikobeats/uno-zen/issues/84)
* order properties ([7ce8ab9](https://github.com/kikobeats/uno-zen/commit/7ce8ab9))
* Update README.md ([949ec4a](https://github.com/kikobeats/uno-zen/commit/949ec4a))
* Update README.md ([e5c7a73](https://github.com/kikobeats/uno-zen/commit/e5c7a73))
<a name="2.5.3"></a>
## 2.5.3 (2015-09-18)
* 2.5.3 releases ([1413b36](https://github.com/kikobeats/uno-zen/commit/1413b36))
* Added a note about how to inject jQuery ([b83c9ed](https://github.com/kikobeats/uno-zen/commit/b83c9ed))
* Added installation script ([fe12f5f](https://github.com/kikobeats/uno-zen/commit/fe12f5f))
* Fixed #77 ([50d01a2](https://github.com/kikobeats/uno-zen/commit/50d01a2)), closes [#77](https://github.com/kikobeats/uno-zen/issues/77)
* little refactor ([0fca530](https://github.com/kikobeats/uno-zen/commit/0fca530))
* Moved documentation section ([05a9f70](https://github.com/kikobeats/uno-zen/commit/05a9f70))
* Update README.md ([c0c0574](https://github.com/kikobeats/uno-zen/commit/c0c0574))
<a name="2.5.2"></a>
## 2.5.2 (2015-09-11)
* 2.5.2 releases ([e697c12](https://github.com/kikobeats/uno-zen/commit/e697c12))
* Fixed #50 ([074f743](https://github.com/kikobeats/uno-zen/commit/074f743)), closes [#50](https://github.com/kikobeats/uno-zen/issues/50)
* Fixed #68 ([fe8b32d](https://github.com/kikobeats/uno-zen/commit/fe8b32d)), closes [#68](https://github.com/kikobeats/uno-zen/issues/68)
* Fixes #70 ([7110954](https://github.com/kikobeats/uno-zen/commit/7110954)), closes [#70](https://github.com/kikobeats/uno-zen/issues/70)
* jQuery injection from ghost_foot instead of inline ([1b2e852](https://github.com/kikobeats/uno-zen/commit/1b2e852))
<a name="2.5.1"></a>
## 2.5.1 (2015-09-09)
* 2.5.1 releases ([a7dab00](https://github.com/kikobeats/uno-zen/commit/a7dab00))
* fixed 404 page style ([60e2f18](https://github.com/kikobeats/uno-zen/commit/60e2f18))
<a name="2.5.0"></a>
# 2.5.0 (2015-09-09)
* 2.5.0 releases ([28bb310](https://github.com/kikobeats/uno-zen/commit/28bb310))
* added #64 and #65 into showcase ([5541b0d](https://github.com/kikobeats/uno-zen/commit/5541b0d))
* added jQuery dependency ([b8b815f](https://github.com/kikobeats/uno-zen/commit/b8b815f))
* fixed hamburguer button space in tablet ([10acd12](https://github.com/kikobeats/uno-zen/commit/10acd12))
* linted using CSSOrder ([9121c68](https://github.com/kikobeats/uno-zen/commit/9121c68))
* replace behavior for event ([43bf742](https://github.com/kikobeats/uno-zen/commit/43bf742))
* separated background from filter ([1beb4fe](https://github.com/kikobeats/uno-zen/commit/1beb4fe))
* Update README.md ([b7d8e7a](https://github.com/kikobeats/uno-zen/commit/b7d8e7a))
* updated ([a0a162d](https://github.com/kikobeats/uno-zen/commit/a0a162d))
* updated information. Now compatible with Ghost 0.7 🎉 ([fe343d1](https://github.com/kikobeats/uno-zen/commit/fe343d1))
<a name="2.4.0"></a>
# 2.4.0 (2015-08-31)
* 2.4.0 releases ([033fd58](https://github.com/kikobeats/uno-zen/commit/033fd58))
* Improve twitter share. rel me tag for social links ([eef7556](https://github.com/kikobeats/uno-zen/commit/eef7556))
<a name="2.3.5"></a>
## 2.3.5 (2015-08-24)
* 2.3.5 releases ([3ec3d83](https://github.com/kikobeats/uno-zen/commit/3ec3d83))
* Added gln blog ([e8887b1](https://github.com/kikobeats/uno-zen/commit/e8887b1))
* added iayon blog ([44db987](https://github.com/kikobeats/uno-zen/commit/44db987))
* Fixed navigation URLs ([fe64b69](https://github.com/kikobeats/uno-zen/commit/fe64b69))
* Merge pull request #54 from jcdenton/navigation_urls_fix ([58dc121](https://github.com/kikobeats/uno-zen/commit/58dc121))
* renamed partial links into navigation ([fdfc2bc](https://github.com/kikobeats/uno-zen/commit/fdfc2bc))
* search hover also for focus ([2f6905f](https://github.com/kikobeats/uno-zen/commit/2f6905f))
<a name="2.3.4"></a>
## 2.3.4 (2015-08-15)
* 2.3.4 releases ([8eba3af](https://github.com/kikobeats/uno-zen/commit/8eba3af))
* 2.3.4 releases (again) ([ec8352c](https://github.com/kikobeats/uno-zen/commit/ec8352c))
* Add Blog link by default. ([1198895](https://github.com/kikobeats/uno-zen/commit/1198895))
* Added customize aside title and subtitle ([4755ace](https://github.com/kikobeats/uno-zen/commit/4755ace))
* disable multiaccount support by default ([82c91d4](https://github.com/kikobeats/uno-zen/commit/82c91d4))
* Improve multiaccount support ([2f71d11](https://github.com/kikobeats/uno-zen/commit/2f71d11))
* Improve twitter share link based in a url native helper. ([6328b03](https://github.com/kikobeats/uno-zen/commit/6328b03))
* Include URL as-is. ([533f796](https://github.com/kikobeats/uno-zen/commit/533f796))
* little details in title and readTime ([eb95489](https://github.com/kikobeats/uno-zen/commit/eb95489))
* Make Google Analytics and Disqus use variables from admin panel. ([2aebfbe](https://github.com/kikobeats/uno-zen/commit/2aebfbe))
* Merge pull request #47 from RReverser/out-of-the-box ([efcb4e3](https://github.com/kikobeats/uno-zen/commit/efcb4e3))
* removed dot from post title ([33786a5](https://github.com/kikobeats/uno-zen/commit/33786a5))
* removed dot from title ([64c6d4c](https://github.com/kikobeats/uno-zen/commit/64c6d4c))
* Revert author in aside (Ghost doesn't provide it for entire blog). ([9b26637](https://github.com/kikobeats/uno-zen/commit/9b26637))
* Update DOCUMENTATION.md ([4aaa2ed](https://github.com/kikobeats/uno-zen/commit/4aaa2ed))
* Use blog title and author's name by default on main page. ([7ffad11](https://github.com/kikobeats/uno-zen/commit/7ffad11))
* Use links from Ghost navigation settings. ([4d9bfb3](https://github.com/kikobeats/uno-zen/commit/4d9bfb3))
<a name="2.3.3"></a>
## 2.3.3 (2015-08-14)
* 2.3.3 releases ([78603e5](https://github.com/kikobeats/uno-zen/commit/78603e5))
* Added robinz blog ([0508ca9](https://github.com/kikobeats/uno-zen/commit/0508ca9))
* main overflow based in a class instead of css inline ([ffa9893](https://github.com/kikobeats/uno-zen/commit/ffa9893))
* Merge branch 'robincsamuel-master' ([4090e2b](https://github.com/kikobeats/uno-zen/commit/4090e2b))
<a name="2.3.2"></a>
## 2.3.2 (2015-08-14)
* 2.3.2 releases ([d2484ff](https://github.com/kikobeats/uno-zen/commit/d2484ff))
* added rel attribute in pagination elements ([530174e](https://github.com/kikobeats/uno-zen/commit/530174e))
<a name="2.3.1"></a>
## 2.3.1 (2015-08-12)
* 2.3.1 releases ([f953974](https://github.com/kikobeats/uno-zen/commit/f953974))
* compiled again ([b877428](https://github.com/kikobeats/uno-zen/commit/b877428))
* fixed little bug in blog button selector ([e9c9a5c](https://github.com/kikobeats/uno-zen/commit/e9c9a5c))
* Update README.md ([79546b7](https://github.com/kikobeats/uno-zen/commit/79546b7))
<a name="2.3.0"></a>
# 2.3.0 (2015-08-07)
* 2.3.0 releases ([0b04906](https://github.com/kikobeats/uno-zen/commit/0b04906))
* added next and prev buttons ([3c1ddd2](https://github.com/kikobeats/uno-zen/commit/3c1ddd2))
* adjust error page margins ([cb39bef](https://github.com/kikobeats/uno-zen/commit/cb39bef))
<a name="2.2.7"></a>
## 2.2.7 (2015-08-07)
* 2.2.7 releases ([f02fd1f](https://github.com/kikobeats/uno-zen/commit/f02fd1f))
* better way to generate post font size and margins ([49a6e49](https://github.com/kikobeats/uno-zen/commit/49a6e49))
* little improvements ([d23b3aa](https://github.com/kikobeats/uno-zen/commit/d23b3aa))
<a name="2.2.6"></a>
## 2.2.6 (2015-08-07)
* 2.2.6 releases ([635d176](https://github.com/kikobeats/uno-zen/commit/635d176))
* fixed code block in lists ([dd734bd](https://github.com/kikobeats/uno-zen/commit/dd734bd))
* Merge pull request #41 from Kikobeats/list_code_block ([47e8622](https://github.com/kikobeats/uno-zen/commit/47e8622))
* updated preview ([325b602](https://github.com/kikobeats/uno-zen/commit/325b602))
<a name="2.2.5"></a>
## 2.2.5 (2015-08-02)
* 2.2.5 releases ([8ff45c8](https://github.com/kikobeats/uno-zen/commit/8ff45c8))
* added bumped settings for the next time ([2dce395](https://github.com/kikobeats/uno-zen/commit/2dce395))
* new look 💄 and little refactor 😎 ([829208c](https://github.com/kikobeats/uno-zen/commit/829208c))
* updated ([a77f336](https://github.com/kikobeats/uno-zen/commit/a77f336))
<a name="2.2.4"></a>
## 2.2.4 (2015-07-24)
* 2.2.4 releases. ([e70b282](https://github.com/kikobeats/uno-zen/commit/e70b282))
* Update README.md ([67b0e80](https://github.com/kikobeats/uno-zen/commit/67b0e80))
* Update README.md ([0ebd385](https://github.com/kikobeats/uno-zen/commit/0ebd385))
* Update README.md ([9e710fc](https://github.com/kikobeats/uno-zen/commit/9e710fc))
* Update README.md ([d39172f](https://github.com/kikobeats/uno-zen/commit/d39172f))
* Update README.md ([e229e5b](https://github.com/kikobeats/uno-zen/commit/e229e5b))
<a name="2.2.3"></a>
## 2.2.3 (2015-06-19)
* 2.2.3 releases ([c2bc650](https://github.com/kikobeats/uno-zen/commit/c2bc650))
* Fixes overflow below 1024px ([d598d74](https://github.com/kikobeats/uno-zen/commit/d598d74))
* Merge pull request #28 from kutyel/overflow ([1177c24](https://github.com/kikobeats/uno-zen/commit/1177c24))
<a name="2.2.2"></a>
## 2.2.2 (2015-06-12)
* 2.2.2 releases ([07a1486](https://github.com/kikobeats/uno-zen/commit/07a1486))
* added moar blogs into showcase 🙌 ([ec5edcf](https://github.com/kikobeats/uno-zen/commit/ec5edcf))
* Fix profile center in IE ([55a04ad](https://github.com/kikobeats/uno-zen/commit/55a04ad))
* Merge pull request #27 from kutyel/explorer ([91d3af0](https://github.com/kikobeats/uno-zen/commit/91d3af0))
* Update DOCUMENTATION.md ([34b14f2](https://github.com/kikobeats/uno-zen/commit/34b14f2))
* updated ([a355ab0](https://github.com/kikobeats/uno-zen/commit/a355ab0))
* updated ([5c72df8](https://github.com/kikobeats/uno-zen/commit/5c72df8))
<a name="2.2.1"></a>
## 2.2.1 (2015-05-17)
* 2.2.1 releases – added about template and fixed little issues ([1181e34](https://github.com/kikobeats/uno-zen/commit/1181e34))
* Update README.md ([409b3de](https://github.com/kikobeats/uno-zen/commit/409b3de))
* Update README.md ([be6bdae](https://github.com/kikobeats/uno-zen/commit/be6bdae))
* Update README.md ([64b5b43](https://github.com/kikobeats/uno-zen/commit/64b5b43))
* Update README.md ([f8b9c6f](https://github.com/kikobeats/uno-zen/commit/f8b9c6f))
* Update README.md ([64febfb](https://github.com/kikobeats/uno-zen/commit/64febfb))
* Update README.md ([a1b9f83](https://github.com/kikobeats/uno-zen/commit/a1b9f83))
* Update README.md ([d284104](https://github.com/kikobeats/uno-zen/commit/d284104))
* Update README.md ([a3226c5](https://github.com/kikobeats/uno-zen/commit/a3226c5))
* Update README.md ([cc485a7](https://github.com/kikobeats/uno-zen/commit/cc485a7))
* Update README.md ([e71f2a9](https://github.com/kikobeats/uno-zen/commit/e71f2a9))
* updated ([b0f6b2f](https://github.com/kikobeats/uno-zen/commit/b0f6b2f))
<a name="2.2.0"></a>
# 2.2.0 (2015-05-02)
* 2.2.0 releases ([657b473](https://github.com/kikobeats/uno-zen/commit/657b473))
* avoid animate cover in blog post ([34daa8b](https://github.com/kikobeats/uno-zen/commit/34daa8b))
* improved aside behavior ([c0b8897](https://github.com/kikobeats/uno-zen/commit/c0b8897))
* only use blank target in blog links in desktop version ([c909eae](https://github.com/kikobeats/uno-zen/commit/c909eae))
* revert email from author ([8c350bd](https://github.com/kikobeats/uno-zen/commit/8c350bd))
* Update README.md ([d9f9ad4](https://github.com/kikobeats/uno-zen/commit/d9f9ad4))
<a name="2.1.3"></a>
## 2.1.3 (2015-04-10)
* 2.1.3 releases ([1465f05](https://github.com/kikobeats/uno-zen/commit/1465f05))
* fixed blog button behavior under mobile/tablet ([b4f9ce6](https://github.com/kikobeats/uno-zen/commit/b4f9ce6))
<a name="2.1.2"></a>
## 2.1.2 (2015-04-02)
* first commit ([5406ac6](https://github.com/kikobeats/uno-zen/commit/5406ac6))
* fixed encode url in twitter share button ([698f48b](https://github.com/kikobeats/uno-zen/commit/698f48b))
* post video are now responsive ([8040c5f](https://github.com/kikobeats/uno-zen/commit/8040c5f))
* updated ([e09dc1d](https://github.com/kikobeats/uno-zen/commit/e09dc1d))
<a name="2.1.1"></a>
## 2.1.1 (2015-03-20)
* added gittip ([61d4e30](https://github.com/kikobeats/uno-zen/commit/61d4e30))
* added showcase section ([eff30a1](https://github.com/kikobeats/uno-zen/commit/eff30a1))
* fixed links style in list inside post view ([90a14de](https://github.com/kikobeats/uno-zen/commit/90a14de))
* fixed styleguide link ([5fd5273](https://github.com/kikobeats/uno-zen/commit/5fd5273))
* some improves ([157c02b](https://github.com/kikobeats/uno-zen/commit/157c02b))
* updated ([8f42f36](https://github.com/kikobeats/uno-zen/commit/8f42f36))
* updated ([cc6d866](https://github.com/kikobeats/uno-zen/commit/cc6d866))
<a name="2.1.0"></a>
# 2.1.0 (2015-03-08)
* 2.1.0 releases ([05579f1](https://github.com/kikobeats/uno-zen/commit/05579f1))
* added support for more buttons ([16c807e](https://github.com/kikobeats/uno-zen/commit/16c807e))
* fixed link style in post without affect tags ([e1183dd](https://github.com/kikobeats/uno-zen/commit/e1183dd))
* improve aside ([5da32fb](https://github.com/kikobeats/uno-zen/commit/5da32fb))
* merged ([2faf9df](https://github.com/kikobeats/uno-zen/commit/2faf9df))
<a name="2.0.3"></a>
## 2.0.3 (2015-03-08)
* deleted unnecessary button ([7a35681](https://github.com/kikobeats/uno-zen/commit/7a35681))
* experimenting ([5836cfe](https://github.com/kikobeats/uno-zen/commit/5836cfe))
* fixed a style in list elements ([e66c9e6](https://github.com/kikobeats/uno-zen/commit/e66c9e6))
* little improvements ([0a9cd91](https://github.com/kikobeats/uno-zen/commit/0a9cd91))
<a name="2.0.2"></a>
## 2.0.2 (2015-02-27)
* 2.0.2 released ([cd1d5c6](https://github.com/kikobeats/uno-zen/commit/cd1d5c6))
* fixed responsive tags in mobile ([5b525e8](https://github.com/kikobeats/uno-zen/commit/5b525e8))
* fixed tags in post view under mobile ([f950a01](https://github.com/kikobeats/uno-zen/commit/f950a01))
* refactor mobile behavior ([ba8b428](https://github.com/kikobeats/uno-zen/commit/ba8b428))
* Update aside.hbs ([90cd34a](https://github.com/kikobeats/uno-zen/commit/90cd34a))
* Update main.coffee ([72ed9cf](https://github.com/kikobeats/uno-zen/commit/72ed9cf))
* Update README.md ([5622963](https://github.com/kikobeats/uno-zen/commit/5622963))
<a name="2.0.1"></a>
## 2.0.1 (2015-02-26)
* adjust separator ([d2c82a4](https://github.com/kikobeats/uno-zen/commit/d2c82a4))
* deleted unnecessary dependencies ([b002d24](https://github.com/kikobeats/uno-zen/commit/b002d24))
* deleted unnecessary file ([3378763](https://github.com/kikobeats/uno-zen/commit/3378763))
* fixed some little issues ([f387745](https://github.com/kikobeats/uno-zen/commit/f387745))
* fixing spaces in aside ([92466d0](https://github.com/kikobeats/uno-zen/commit/92466d0))
* Improved device experience ([c61dd55](https://github.com/kikobeats/uno-zen/commit/c61dd55))
* improved documentation ([5a8aa5f](https://github.com/kikobeats/uno-zen/commit/5a8aa5f))
* little refactor ([b6b760a](https://github.com/kikobeats/uno-zen/commit/b6b760a))
* Merge branch 'master' of github.com:Kikobeats/uno-zen ([cbd6219](https://github.com/kikobeats/uno-zen/commit/cbd6219))
* Merge branch 'master' of github.com:Kikobeats/uno-zen ([04542c5](https://github.com/kikobeats/uno-zen/commit/04542c5))
* released 2.0.1 ([dd50f60](https://github.com/kikobeats/uno-zen/commit/dd50f60))
* setup gulp with browserSync ([2e06d19](https://github.com/kikobeats/uno-zen/commit/2e06d19))
* Update README.md ([ee94b22](https://github.com/kikobeats/uno-zen/commit/ee94b22))
* WIP – Added social buttons in post view ([b9d6330](https://github.com/kikobeats/uno-zen/commit/b9d6330))
* WIP – Added styleguide for more things ([c939c1e](https://github.com/kikobeats/uno-zen/commit/c939c1e))
* WIP – Adjust mobile and refactored ([f8d6e19](https://github.com/kikobeats/uno-zen/commit/f8d6e19))
* WIP – adjust search markup ([44801e1](https://github.com/kikobeats/uno-zen/commit/44801e1))
* WIP – Changed into only one share button ([eab7a04](https://github.com/kikobeats/uno-zen/commit/eab7a04))
* WIP – Deleted unnecessary code ([c0369ea](https://github.com/kikobeats/uno-zen/commit/c0369ea))
* WIP – fixed little issues ([f5db7a6](https://github.com/kikobeats/uno-zen/commit/f5db7a6))
* WIP – Fixed search icon ([ee8ca5f](https://github.com/kikobeats/uno-zen/commit/ee8ca5f))
* WIP – fixed social expanded ([b2df5d5](https://github.com/kikobeats/uno-zen/commit/b2df5d5))
* WIP – improved experience in large desktops ([98b0880](https://github.com/kikobeats/uno-zen/commit/98b0880))
* WIP – Improved mobile experience ([4847cd2](https://github.com/kikobeats/uno-zen/commit/4847cd2))
* WIP – little refactor ([dde3c67](https://github.com/kikobeats/uno-zen/commit/dde3c67))
* WIP – Refactor aside into off canvas (table and mobile ([c9149c6](https://github.com/kikobeats/uno-zen/commit/c9149c6))
* WIP – refactor CSS scaffold ([c710928](https://github.com/kikobeats/uno-zen/commit/c710928))
* WIP – refactored 404 view ([63eaef6](https://github.com/kikobeats/uno-zen/commit/63eaef6))
* WIP – refactored and delete unnecessary code ([a3fad93](https://github.com/kikobeats/uno-zen/commit/a3fad93))
* WIP – refactored aside & index ([21e2f3f](https://github.com/kikobeats/uno-zen/commit/21e2f3f))
* WIP – Refactored post views ([db930bb](https://github.com/kikobeats/uno-zen/commit/db930bb))
* WIP – refactored search view ([d7406b3](https://github.com/kikobeats/uno-zen/commit/d7406b3))
* WIP – Refactored tags view and improve style ([dd2f0cf](https://github.com/kikobeats/uno-zen/commit/dd2f0cf))
* WIP – refactored using rem as basic metric ([08bfca2](https://github.com/kikobeats/uno-zen/commit/08bfca2))
* WIP – split scripts in two files ([a109b64](https://github.com/kikobeats/uno-zen/commit/a109b64))
<a name="1.3.2"></a>
## 1.3.2 (2015-02-15)
* improved mobile experience ([ca5cc5b](https://github.com/kikobeats/uno-zen/commit/ca5cc5b))
* Update RODAMAP.md ([ee07464](https://github.com/kikobeats/uno-zen/commit/ee07464))
<a name="1.3.1"></a>
## 1.3.1 (2015-02-15)
* fixed form in home ([b64489e](https://github.com/kikobeats/uno-zen/commit/b64489e))
<a name="1.3.0"></a>
# 1.3.0 (2015-02-15)
* improved mobile experience and little refactor ([8074ba0](https://github.com/kikobeats/uno-zen/commit/8074ba0))
<a name="1.2.2"></a>
## 1.2.2 (2015-02-15)
* Merge branch 'master' of github.com:Kikobeats/uno-zen ([e5ad9a0](https://github.com/kikobeats/uno-zen/commit/e5ad9a0))
* new build ([506cb0c](https://github.com/kikobeats/uno-zen/commit/506cb0c))
* refactor background filter ([fa4ee2d](https://github.com/kikobeats/uno-zen/commit/fa4ee2d))
* Update README.md ([cb56f93](https://github.com/kikobeats/uno-zen/commit/cb56f93))
<a name="1.2.1"></a>
## 1.2.1 (2015-02-14)
* added context function and glitch effect ([d5b2c0f](https://github.com/kikobeats/uno-zen/commit/d5b2c0f))
* added error page ([f572957](https://github.com/kikobeats/uno-zen/commit/f572957))
* added minimal page error css ([7d37e47](https://github.com/kikobeats/uno-zen/commit/7d37e47))
* american style ([bb9d8b5](https://github.com/kikobeats/uno-zen/commit/bb9d8b5))
* fixed back button in high screen resolutions ([36324dc](https://github.com/kikobeats/uno-zen/commit/36324dc))
* formated all css ([3e48c1b](https://github.com/kikobeats/uno-zen/commit/3e48c1b))
<a name="1.1.24"></a>
## 1.1.24 (2015-01-24)
* https is better ([646e642](https://github.com/kikobeats/uno-zen/commit/646e642))
* new build ([7a6ce18](https://github.com/kikobeats/uno-zen/commit/7a6ce18))
* removed google analytics meta ([7991a31](https://github.com/kikobeats/uno-zen/commit/7991a31))
* Update bower.json ([9964387](https://github.com/kikobeats/uno-zen/commit/9964387))
* Update package.json ([c5c5ed2](https://github.com/kikobeats/uno-zen/commit/c5c5ed2))
* Update social.hbs ([3d942d8](https://github.com/kikobeats/uno-zen/commit/3d942d8))
* updated google track code ([fe2a544](https://github.com/kikobeats/uno-zen/commit/fe2a544))
<a name="1.1.18"></a>
## 1.1.18 (2015-01-18)
* convert post day in days ([8af7134](https://github.com/kikobeats/uno-zen/commit/8af7134))
* Date in days in index page ([1c7105a](https://github.com/kikobeats/uno-zen/commit/1c7105a))
* Update README.md ([8834194](https://github.com/kikobeats/uno-zen/commit/8834194))
<a name="1.1.11"></a>
## 1.1.11 (2015-01-10)
* changed how to load google analytics script ([0653e8a](https://github.com/kikobeats/uno-zen/commit/0653e8a))
* CSSCombo is your friend ([85c014a](https://github.com/kikobeats/uno-zen/commit/85c014a))
* fixed button padding ([cd6e493](https://github.com/kikobeats/uno-zen/commit/cd6e493))
* jshint is your friend ([04a3f85](https://github.com/kikobeats/uno-zen/commit/04a3f85))
* new build ([d8b51bb](https://github.com/kikobeats/uno-zen/commit/d8b51bb))
* refactor css scaffold ([746a526](https://github.com/kikobeats/uno-zen/commit/746a526))
* removed bourbon ([52a1011](https://github.com/kikobeats/uno-zen/commit/52a1011))
* renamed using underscore ([e9eca6b](https://github.com/kikobeats/uno-zen/commit/e9eca6b))
* welcome comments ([c9fcb02](https://github.com/kikobeats/uno-zen/commit/c9fcb02))
<a name="1.1.8"></a>
## 1.1.8 (2015-01-08)
* merged with develop branch ([350a639](https://github.com/kikobeats/uno-zen/commit/350a639))
<a name="1.1.5"></a>
## 1.1.5 (2015-01-05)
* first commit ([5a128ec](https://github.com/kikobeats/uno-zen/commit/5a128ec))
* updated and deleted unnecessary assets ([8b6dd00](https://github.com/kikobeats/uno-zen/commit/8b6dd00))
| conexionweb/mikenieva | CHANGELOG.md | Markdown | mit | 41,574 |
import {statementType} from "../_utils";
import * as Statements from "../../../src/abap/statements/";
const tests = [
"METHOD zfoobar.",
"METHOD foobar by kernel module foobar fail.",
"METHOD foobar by kernel module foobar ignore.",
"METHOD if_foo~write BY KERNEL MODULE foobar.",
"METHOD foobar BY DATABASE PROCEDURE FOR HDB LANGUAGE SQLSCRIPT.",
"METHOD blah BY DATABASE PROCEDURE FOR HDB LANGUAGE SQLSCRIPT OPTIONS READ-ONLY.",
];
statementType(tests, "METHOD", Statements.Method); | larshp/abaplint | test/abap/statements/method.ts | TypeScript | mit | 498 |
#! /usr/bin/env node
import minimist from 'minimist'
import Avifors from './Avifors'
import YamlModelBuilder from './model/YamlModelBuilder'
import Configuration from './Configuration'
import {helpMessage} from './help'
import YamlHelper from './tools/YamlHelper'
const avifors = new Avifors()
const corePlugins = ['./model/plugin', './template/plugin', './commands/plugin']
corePlugins.forEach(plugin => require(plugin).default(avifors))
const argv = minimist(process.argv.slice(2))
const userCommand = argv._[0]
if (userCommand === undefined || userCommand === 'help') {
console.log(helpMessage)
} else {
const yamlHelper = new YamlHelper()
const config = new Configuration(argv.config, yamlHelper)
avifors.loadPlugins(config.plugins)
const modelBuilder = new YamlModelBuilder(avifors, yamlHelper)
const model = modelBuilder.build(config.modelFiles)
avifors.setModel(model)
avifors.getCommand(userCommand)({
avifors: avifors,
model: model,
argv: argv
})
}
| antarestupin/Avifors | src/main.js | JavaScript | mit | 994 |
# ipregex
Simple python script to read apache log file and strip out the IP's
| stephensheridan/ipregex | README.md | Markdown | mit | 78 |
# -*- coding: utf-8 -*-
import os.path
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.conf import settings as django_settings
from django.db.models import signals
from know.plugins.attachments import settings
from know import managers
from know.models.pluginbase import ReusablePlugin
from know.models.article import BaseRevisionMixin
class IllegalFileExtension(Exception):
"""File extension on upload is not allowed"""
pass
class Attachment(ReusablePlugin):
objects = managers.ArticleFkManager()
current_revision = models.OneToOneField(
'AttachmentRevision',
verbose_name=_(u'current revision'),
blank=True,
null=True,
related_name='current_set',
help_text=_(u'The revision of this attachment currently in use (on all articles using the attachment)'),
)
original_filename = models.CharField(
max_length=256,
verbose_name=_(u'original filename'),
blank=True,
null=True,
)
def can_write(self, **kwargs):
user = kwargs.get('user', None)
if not settings.ANONYMOUS and (not user or user.is_anonymous()):
return False
return ReusablePlugin.can_write(self, **kwargs)
def can_delete(self, user):
return self.can_write(user=user)
class Meta:
verbose_name = _(u'attachment')
verbose_name_plural = _(u'attachments')
app_label = settings.APP_LABEL
def __unicode__(self):
return "%s: %s" % (self.article.current_revision.title, self.original_filename)
def extension_allowed(filename):
try:
extension = filename.split(".")[-1]
except IndexError:
# No extension
raise IllegalFileExtension("No file extension found in filename. That's not okay!")
if not extension.lower() in map(lambda x: x.lower(), settings.FILE_EXTENSIONS):
raise IllegalFileExtension("The following filename is illegal: %s. Extension has to be one of %s" %
(filename, ", ".join(settings.FILE_EXTENSIONS)))
return extension
def upload_path(instance, filename):
from os import path
extension = extension_allowed(filename)
# Has to match original extension filename
if instance.id and instance.attachment and instance.attachment.original_filename:
original_extension = instance.attachment.original_filename.split(".")[-1]
if not extension.lower() == original_extension:
raise IllegalFileExtension("File extension has to be '%s', not '%s'." %
(original_extension, extension.lower()))
elif instance.attachment:
instance.attachment.original_filename = filename
upload_path = settings.UPLOAD_PATH
upload_path = upload_path.replace('%aid', str(instance.attachment.article.id))
if settings.UPLOAD_PATH_OBSCURIFY:
import random
import hashlib
m = hashlib.md5(str(random.randint(0, 100000000000000)))
upload_path = path.join(upload_path, m.hexdigest())
if settings.APPEND_EXTENSION:
filename += '.upload'
return path.join(upload_path, filename)
class AttachmentRevision(BaseRevisionMixin, models.Model):
attachment = models.ForeignKey('Attachment')
file = models.FileField(
upload_to=upload_path,
max_length=255,
verbose_name=_(u'file'),
storage=settings.STORAGE_BACKEND,
)
description = models.TextField(
blank=True,
)
class Meta:
verbose_name = _(u'attachment revision')
verbose_name_plural = _(u'attachment revisions')
ordering = ('created',)
get_latest_by = ('revision_number',)
app_label = settings.APP_LABEL
def get_filename(self):
"""Used to retrieve the filename of a revision.
But attachment.original_filename should always be used in the frontend
such that filenames stay consistent."""
# TODO: Perhaps we can let file names change when files are replaced?
if not self.file:
return None
filename = self.file.name.split("/")[-1]
return ".".join(filename.split(".")[:-1])
def get_size(self):
"""Used to retrieve the file size and not cause exceptions."""
try:
return self.file.size
except OSError:
return None
except ValueError:
return None
def save(self, *args, **kwargs):
if (not self.id and
not self.previous_revision and
self.attachment and
self.attachment.current_revision and
self.attachment.current_revision != self):
self.previous_revision = self.attachment.current_revision
if not self.revision_number:
try:
previous_revision = self.attachment.attachmentrevision_set.latest()
self.revision_number = previous_revision.revision_number + 1
# NB! The above should not raise the below exception, but somehow it does.
except AttachmentRevision.DoesNotExist, Attachment.DoesNotExist:
self.revision_number = 1
super(AttachmentRevision, self).save(*args, **kwargs)
if not self.attachment.current_revision:
# If I'm saved from Django admin, then article.current_revision is me!
self.attachment.current_revision = self
self.attachment.save()
def __unicode__(self):
return "%s: %s (r%d)" % (self.attachment.article.current_revision.title,
self.attachment.original_filename,
self.revision_number)
def on_revision_delete(instance, *args, **kwargs):
if not instance.file:
return
# Remove file
path = instance.file.path.split("/")[:-1]
instance.file.delete(save=False)
# Clean up empty directories
# Check for empty folders in the path. Delete the first two.
if len(path[-1]) == 32:
# Path was (most likely) obscurified so we should look 2 levels down
max_depth = 2
else:
max_depth = 1
for depth in range(0, max_depth):
delete_path = "/".join(path[:-depth] if depth > 0 else path)
try:
if len(os.listdir(os.path.join(django_settings.MEDIA_ROOT, delete_path))) == 0:
os.rmdir(delete_path)
except OSError:
# Raised by os.listdir if directory is missing
pass
signals.pre_delete.connect(on_revision_delete, AttachmentRevision)
| indexofire/gork | src/gork/application/know/plugins/attachments/models.py | Python | mit | 6,582 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>dep-map: 32 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.7.1+1 / dep-map - 8.7.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
dep-map
<small>
8.7.0
<span class="label label-success">32 s 🏆</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2022-01-05 11:27:21 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-01-05 11:27:21 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 1 Virtual package relying on perl
coq 8.7.1+1 Formal proof management system
num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.09.1 The OCaml compiler (virtual package)
ocaml-base-compiler 4.09.1 Official release 4.09.1
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "[email protected]"
homepage: "https://github.com/coq-contribs/dep-map"
license: "CeCILL-B"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/DepMap"]
depends: [
"ocaml"
"coq" {>= "8.7" & < "8.8~"}
]
tags: [
"keyword: maps"
"keyword: dependent maps"
"category: Computer Science/Data Types and Data Structures"
]
authors: [ "Lionel Rieg <[email protected]>" ]
bug-reports: "https://github.com/coq-contribs/dep-map/issues"
dev-repo: "git+https://github.com/coq-contribs/dep-map.git"
synopsis: "Dependent Maps"
description:
"A rudimentary library for dependent maps that contain their domain in the type."
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/dep-map/archive/v8.7.0.tar.gz"
checksum: "md5=6576a2b104407940b6b4ca38ffdcd041"
}
</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-dep-map.8.7.0 coq.8.7.1+1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam list; echo; ulimit -Sv 4000000; timeout 4h opam install -y --deps-only coq-dep-map.8.7.0 coq.8.7.1+1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>13 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam list; echo; ulimit -Sv 16000000; timeout 4h opam install -y -v coq-dep-map.8.7.0 coq.8.7.1+1</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>32 s</dd>
</dl>
<h2>Installation size</h2>
<p>Total: 2 M</p>
<ul>
<li>801 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/DepMap/DepMapImplementation.vo</code></li>
<li>236 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/DepMap/DepMapFactsImplementation.vo</code></li>
<li>192 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/DepMap/DepMap.vo</code></li>
<li>128 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/DepMap/DepMapImplementation.glob</code></li>
<li>111 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/DepMap/DepMapFactsInterface.vo</code></li>
<li>97 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/DepMap/DepMapFactsImplementation.glob</code></li>
<li>84 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/DepMap/DepMapInterface.vo</code></li>
<li>40 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/DepMap/DepMapFactsInterface.glob</code></li>
<li>29 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/DepMap/DepMapInterface.glob</code></li>
<li>29 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/DepMap/DepMapImplementation.v</code></li>
<li>21 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/DepMap/Coqlib.vo</code></li>
<li>15 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/DepMap/DepMapFactsImplementation.v</code></li>
<li>6 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/DepMap/DepMapInterface.v</code></li>
<li>6 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/DepMap/DepMapFactsInterface.v</code></li>
<li>4 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/DepMap/Coqlib.glob</code></li>
<li>2 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/DepMap/Coqlib.v</code></li>
<li>1 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/DepMap/DepMap.glob</code></li>
<li>1 K <code>../ocaml-base-compiler.4.09.1/lib/coq/user-contrib/DepMap/DepMap.v</code></li>
</ul>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq-dep-map.8.7.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
| coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.09.1-2.0.6/released/8.7.1+1/dep-map/8.7.0.html | HTML | mit | 8,751 |
package h1z1.screens;
import h1z1.MainFrame;
import h1z1.game.GameState;
import h1z1.input.ButtonHandler;
import h1z1.input.InputButton;
import h1z1.input.InputProvider;
import h1z1.io.ResourceManager;
import javax.imageio.ImageIO;
import java.awt.*;
import java.util.List;
import h1z1.game.Maze;
public class PlayGameScreenManager extends ScreenManager {
private Maze maze = new Maze();
public PlayGameScreenManager(MainFrame mainFrame) throws Exception {
super(mainFrame);
}
@Override
public void update(List<InputProvider> inputs) {
}
@Override
public void paint(Frame frame, Graphics2D graphics) {
for(int x = 0; x < Maze.WIDTH; x++){
for(int y = 0; y < Maze.HEIGHT; y++) {
boolean value = maze.getValue(x, y);
if (value) {graphics.setColor(Color.RED);}
else{
graphics.setColor(Color.WHITE);
}
graphics.fillRect(Maze.OFFSET + Maze.SIZE * x,
Maze.OFFSET + Maze.SIZE * y,
Maze.SIZE,
Maze.SIZE);
}
}
}
}
| johnathandavis/H1Z1 | src/main/java/h1z1/screens/PlayGameScreenManager.java | Java | mit | 1,193 |
import express from 'express'
import cors from 'cors'
import bodyParser from 'body-parser'
import helmet from 'helmet'
import httpStatus from 'http-status'
import path from 'path'
import routes from './routes'
import logger from './helpers/logger.js'
const app = express()
// Pug
app.set('view engine', 'pug')
app.set('views', path.join(__dirname, 'views'))
// Helmet helps you secure your Express apps by setting various HTTP headers.
app.use(helmet())
// Enable CORS
app.use(cors())
// To use with Nginx
// app.enable('trust proxy')
// Parse incoming request bodies in a middleware before your handlers, available under the req.body property.
app.use(bodyParser.urlencoded({ extended: true }))
app.use(bodyParser.json())
// API Routes
app.use('/', routes)
// Catch 404
app.get('*', (req, res) => {
res.status(404).send({ message: 'Not found' })
})
// Error log
app.use((err, req, res, next) => {
logger.log(err.level || 'error', err.message)
next(err)
})
// Error handler
app.use((err, req, res, next) => {
res.status(err.status || 500).send({
status: err.status || 500,
message: err.status ? err.message : httpStatus[500],
})
})
export default app
| AitorDB/API-NodeJS | app/app.js | JavaScript | mit | 1,199 |
<?php
namespace PandaGroup\StoreLocator\Controller\Adminhtml\Index;
use Magento\Framework\Exception\LocalizedException;
class Save extends \Magento\Backend\App\Action
{
/** @var \Magento\Framework\App\Request\DataPersistorInterface */
protected $dataPersistor;
/** @var \PandaGroup\StoreLocator\Model\RegionsData */
protected $regionsData;
/** @var \PandaGroup\StoreLocator\Model\States */
protected $states;
/** @var \PandaGroup\StoreLocator\Model\StatesFactory */
protected $statesFactory;
/** @var \PandaGroup\StoreLocator\Logger\Logger */
protected $logger;
public function __construct(
\Magento\Backend\App\Action\Context $context,
\Magento\Framework\Registry $registry,
\Magento\Framework\App\Request\DataPersistorInterface $dataPersistor,
\PandaGroup\StoreLocator\Model\RegionsData $regionsData,
\PandaGroup\StoreLocator\Model\States $states,
\PandaGroup\StoreLocator\Model\StatesFactory $statesFactory,
\PandaGroup\StoreLocator\Logger\Logger $logger
) {
$this->dataPersistor = $dataPersistor;
$this->regionsData = $regionsData;
$this->states = $states;
$this->statesFactory = $statesFactory;
$this->logger = $logger;
parent::__construct($context);
}
public function execute()
{
/** @var \Magento\Backend\Model\View\Result\Redirect $resultRedirect */
$resultRedirect = $this->resultRedirectFactory->create();
$data = $this->getRequest()->getPostValue();
if ($data) {
$this->logger->info('Start saving new store/edit exist store.');
$id = (int) $this->getRequest()->getParam('id');
$stateIdFromStatesDataSource = $this->getRequest()->getPostValue('state_source_id');
$nameFromStatesDataSource = $this->regionsData->load($stateIdFromStatesDataSource)->getData('name');
if (true === empty($nameFromStatesDataSource)) { // Empty names of countries states which aren't any states
$nameFromStatesDataSource = $data['country'];
}
$newStateIdFromStoreLocatorStates = $this->states->addNewRegion(
$stateIdFromStatesDataSource,
$nameFromStatesDataSource,
'',
$data['country']
);
$data['state_id'] = $newStateIdFromStoreLocatorStates;
/** @var \PandaGroup\StoreLocator\Model\StoreLocator $model */
$model = $this->_objectManager->create('PandaGroup\StoreLocator\Model\StoreLocator')->load($id);
if (!$model->getId() && $id) {
$this->messageManager->addErrorMessage(__('This store no longer exists.'));
return $resultRedirect->setPath('*/*/');
}
if ($data['storelocator_id'] === '') {
$data['storelocator_id'] = null; // Bug with saving new store
}
$data['rewrite_request_path'] = $this->toSafeUrl($data['name']);
$data['state'] = null;
$data['link'] = null;
if (true === empty($data['fax'])) {
$data['fax'] = null;
}
if (true === empty($data['image_icon'])) {
$data['image_icon'] = null;
}
$data['monday_open_break'] = $data['monday_open'];
$data['monday_close_break'] = $data['monday_open'];
$data['tuesday_open_break'] = $data['tuesday_open'];
$data['tuesday_close_break'] = $data['tuesday_open'];
$data['wednesday_open_break'] = $data['wednesday_open'];
$data['wednesday_close_break'] = $data['wednesday_open'];
$data['thursday_open_break'] = $data['thursday_open'];
$data['thursday_close_break'] = $data['thursday_open'];
$data['friday_open_break'] = $data['friday_open'];
$data['friday_close_break'] = $data['friday_open'];
$data['saturday_open_break'] = $data['saturday_open'];
$data['saturday_close_break'] = $data['saturday_open'];
$data['sunday_open_break'] = $data['sunday_open'];
$data['sunday_close_break'] = $data['sunday_open'];
$model->setData($data);
try {
$model->getResource()->save($model);
$this->messageManager->addSuccessMessage(__('You saved the store.'));
$this->logger->info(' Saving new store/edit exist store was successful.');
$this->dataPersistor->clear('storelocator');
if ($this->getRequest()->getParam('back')) {
$this->logger->info('Finish saving new store/edit exist store.');
return $resultRedirect->setPath('*/*/edit', ['id' => $model->getId()]);
}
$this->logger->info('Finish saving new store/edit exist store.');
return $resultRedirect->setPath('*/*/');
} catch (LocalizedException $e) {
$this->messageManager->addErrorMessage($e->getMessage());
$this->logger->error(' Error while saving new store/edit exist store.', $e->getMessage());
} catch (\Exception $e) {
$this->messageManager->addExceptionMessage($e, __('Something went wrong while saving the store.'));
$this->logger->error(' Error while saving new store/edit exist store.', $e->getMessage());
}
$this->dataPersistor->set('storelocator', $data);
$this->logger->info('Finish saving new store/edit exist store.');
return $resultRedirect->setPath('*/*/edit', ['storelocator_id' => $this->getRequest()->getParam('storelocator_id')]);
}
return $resultRedirect->setPath('*/*/');
}
/**
* @param $str
* @param array $replace
* @param string $delimiter
* @return mixed|string
*/
protected function toSafeUrl($str, $replace=array(), $delimiter='-') {
$baseStr = $str;
if( !empty($replace) ) {
$str = str_replace((array)$replace, ' ', $str);
}
$clean = iconv('UTF-8', 'ASCII//TRANSLIT', $str);
$clean = preg_replace("/[^a-zA-Z0-9\/_|+ -]/", '', $clean);
$clean = strtolower(trim($clean, '-'));
$clean = preg_replace("/[\/_|+ -]+/", $delimiter, $clean);
$this->logger->info(' Store Name was replaced by safe url link: '.$baseStr.'->'.$clean);
return $clean;
}
}
| pandagrouppl/StoreLocator | Controller/Adminhtml/Index/Save.php | PHP | mit | 6,561 |
using TwinTechs.Controls;
using TekConf.Core.Data.Dtos;
namespace TekConf.Forms.Cells
{
public partial class ConferenceListSessionsListCell : FastCell
{
protected override void InitializeCell ()
{
InitializeComponent ();
}
protected override void SetupCell (bool isRecycled)
{
var session = BindingContext as SessionDto;
if (session != null) {
// logoImage.ImageUrl = conference.ImageUrl ?? "";
title.Text = session.Title;
date.Text = session.Date;
}
}
}
} | tekconf/TekConf.Forms | TekConf/TekConf.Forms/Cells/ConferenceListSessionsListCell.xaml.cs | C# | mit | 499 |
---
layout: post
title: LeetCode 77
category: 技术
tags: LeetCode Medium
keywords: LeetCode
description: 2019 每天一道题 #77
---
#### 77. [Combinations](https://leetcode.com/problems/combinations/)
---
Given two integers *n* and *k*, return all possible combinations of k numbers out of *1* ... *n*.
**Example:**
```
Input: n = 4, k = 2
Output:
[
[2,4],
[3,4],
[2,3],
[1,2],
[1,3],
[1,4],
]
```
#### Thoughts
---
The requirement is easy to understand, we count from *1* to *n* within *k* numbers.
**First try:**
```Java
class Solution {
public List<List<Integer>> combine(int n, int k) {
List<List<Integer>> res = new ArrayList<>();
if (n == 0 || k == 0 || k > n)
return res;
combieHelper(res, new ArrayList<>(), n, 0, k);
return res;
}
private static void combineHelper(List<List<Integer>> res, List<Integer> tmp, int max, int start, int remain) {
if (remain == 0)
res.add(new ArrayList<>(tmp));
else {
for (int i = start + 1; i <= max; i++) {
tmp.add(i);
combieHelper(res, tmp, max, i, remain - 1);
tmp.remove(tmp.size() - 1);
}
}
}
}
```
**Result 1:**
> Runtime: **28 ms**, faster than **57.69%** of Java online submissions for Combinations.
The result is just fine, may take sometime to see how others solve this question.
**Second try:**
**Result 2:**
| bruceFend/brucefend.github.io | _posts/技术/2019-02-01-LeetCode-77.md | Markdown | mit | 1,454 |
job
===
set timeout job or cron job to call a url. with nsq,this can sent a message in the special time.
| ghzofhit/job | README.md | Markdown | mit | 106 |
<?php
namespace SilexMarkdown\Parser;
use SilexMarkdown\Filter\FilterInterface;
interface ParserInterface
{
public function transform($source);
public function registerFilter($method, FilterInterface $filter);
public function getFilters();
public function hasFilter($method);
public function useFilter($method, $content, $params);
}
| MadCatme/SilexMarkdown | src/SilexMarkdown/Parser/ParserInterface.php | PHP | mit | 356 |
import Lab from 'lab';
import server from '../../server';
import data from '../data';
const expect = Lab.assertions.expect;
export const lab = Lab.script();
lab.experiment('ProfileCtrl', function() {
lab.before(done => {
data.sync().then(done, done);
});
lab.test('[getAuthenticated] returns the current profile', function(done) {
const options = {
method: 'GET',
url: '/profile',
headers: {
'Authorization': `Bearer ${data.fp.token.value}`
}
};
server.inject(options, function(response) {
const result = response.result;
expect(response.statusCode).to.equal(200);
expect(result.email).to.equal(data.fp.account.profile.email);
done();
});
});
lab.test('[getAuthenticated] returns 401 without a token', function(done) {
const options = {
method: 'GET',
url: '/profile'
};
server.inject(options, function(response) {
expect(response.statusCode).to.equal(401);
done();
});
});
lab.test('[get] returns the correct profile by id', function(done) {
const options = {
method: 'GET',
url: `/profile/${data.tp.account.profile.id}`,
headers: {
'Authorization': `Bearer ${data.fp.token.value}`
}
};
server.inject(options, function(response) {
const result = response.result;
expect(response.statusCode).to.equal(200);
expect(result.id).to.equal(data.tp.account.profile.id);
done();
});
});
lab.test('[get] returns the correct profile by email', function(done) {
const options = {
method: 'GET',
url: `/profile/${encodeURIComponent(data.tp.account.profile.email)}`,
headers: {
'Authorization': `Bearer ${data.fp.token.value}`
}
};
server.inject(options, function(response) {
const result = response.result;
expect(response.statusCode).to.equal(200);
expect(result.email).to.equal(data.tp.account.profile.email);
done();
});
});
lab.test('[get] returns 404 if not found by id', function(done) {
const options = {
method: 'GET',
url: `/profile/123-456`,
headers: {
'Authorization': `Bearer ${data.fp.token.value}`
}
};
server.inject(options, function(response) {
expect(response.statusCode).to.equal(404);
done();
});
});
lab.test('[get] returns 404 if not found by email', function(done) {
const options = {
method: 'GET',
url: `/profile/${encodeURIComponent('[email protected]')}`,
headers: {
'Authorization': `Bearer ${data.fp.token.value}`
}
};
server.inject(options, function(response) {
expect(response.statusCode).to.equal(404);
done();
});
});
lab.test('[update] returns the profile with a new first name (by id)', function(done) {
const options = {
method: 'PUT',
url: `/profile/${data.tp.account.profile.id}`,
headers: {
'Authorization': `Bearer ${data.tp.token.value}`
},
payload: {
firstName: 'Gargantua'
}
};
server.inject(options, function(response) {
const result = response.result;
expect(response.statusCode).to.equal(200);
expect(result.name.first).to.equal('Gargantua');
done();
});
});
lab.test('[update] returns the profile with a new last name (by email)', function(done) {
const options = {
method: 'PUT',
url: `/profile/${data.tp.account.profile.email}`,
headers: {
'Authorization': `Bearer ${data.tp.token.value}`
},
payload: {
lastName: 'Batman'
}
};
server.inject(options, function(response) {
const result = response.result;
expect(response.statusCode).to.equal(200);
expect(result.name.last).to.equal('Batman');
done();
});
});
lab.test('[update] returns 401 if trying to update someone else\'s profile', function(done) {
const options = {
method: 'PUT',
url: `/profile/${data.tp.account.profile.email}`,
headers: {
'Authorization': `Bearer ${data.fp.token.value}`
},
payload: {
lastName: 'Batman'
}
};
server.inject(options, function(response) {
expect(response.statusCode).to.equal(401);
done();
});
});
});
| FOUfashion/api | src/tests/controllers/profile.js | JavaScript | mit | 4,337 |
package net.glowstone.net.message.play.entity;
import com.flowpowered.network.Message;
import java.util.List;
import lombok.Data;
@Data
public final class DestroyEntitiesMessage implements Message {
private final List<Integer> ids;
}
| GlowstoneMC/GlowstonePlusPlus | src/main/java/net/glowstone/net/message/play/entity/DestroyEntitiesMessage.java | Java | mit | 242 |
// ArduinoJson - https://arduinojson.org
// Copyright © 2014-2022, Benoit BLANCHON
// MIT License
#include <ArduinoJson.h>
#include <catch.hpp>
#define SHOULD_WORK(expression) REQUIRE(DeserializationError::Ok == expression);
#define SHOULD_FAIL(expression) \
REQUIRE(DeserializationError::TooDeep == expression);
TEST_CASE("JsonDeserializer nesting") {
DynamicJsonDocument doc(4096);
SECTION("Input = const char*") {
SECTION("limit = 0") {
DeserializationOption::NestingLimit nesting(0);
SHOULD_WORK(deserializeJson(doc, "\"toto\"", nesting));
SHOULD_WORK(deserializeJson(doc, "123", nesting));
SHOULD_WORK(deserializeJson(doc, "true", nesting));
SHOULD_FAIL(deserializeJson(doc, "[]", nesting));
SHOULD_FAIL(deserializeJson(doc, "{}", nesting));
SHOULD_FAIL(deserializeJson(doc, "[\"toto\"]", nesting));
SHOULD_FAIL(deserializeJson(doc, "{\"toto\":1}", nesting));
}
SECTION("limit = 1") {
DeserializationOption::NestingLimit nesting(1);
SHOULD_WORK(deserializeJson(doc, "[\"toto\"]", nesting));
SHOULD_WORK(deserializeJson(doc, "{\"toto\":1}", nesting));
SHOULD_FAIL(deserializeJson(doc, "{\"toto\":{}}", nesting));
SHOULD_FAIL(deserializeJson(doc, "{\"toto\":[]}", nesting));
SHOULD_FAIL(deserializeJson(doc, "[[\"toto\"]]", nesting));
SHOULD_FAIL(deserializeJson(doc, "[{\"toto\":1}]", nesting));
}
}
SECTION("char* and size_t") {
SECTION("limit = 0") {
DeserializationOption::NestingLimit nesting(0);
SHOULD_WORK(deserializeJson(doc, "\"toto\"", 6, nesting));
SHOULD_WORK(deserializeJson(doc, "123", 3, nesting));
SHOULD_WORK(deserializeJson(doc, "true", 4, nesting));
SHOULD_FAIL(deserializeJson(doc, "[]", 2, nesting));
SHOULD_FAIL(deserializeJson(doc, "{}", 2, nesting));
SHOULD_FAIL(deserializeJson(doc, "[\"toto\"]", 8, nesting));
SHOULD_FAIL(deserializeJson(doc, "{\"toto\":1}", 10, nesting));
}
SECTION("limit = 1") {
DeserializationOption::NestingLimit nesting(1);
SHOULD_WORK(deserializeJson(doc, "[\"toto\"]", 8, nesting));
SHOULD_WORK(deserializeJson(doc, "{\"toto\":1}", 10, nesting));
SHOULD_FAIL(deserializeJson(doc, "{\"toto\":{}}", 11, nesting));
SHOULD_FAIL(deserializeJson(doc, "{\"toto\":[]}", 11, nesting));
SHOULD_FAIL(deserializeJson(doc, "[[\"toto\"]]", 10, nesting));
SHOULD_FAIL(deserializeJson(doc, "[{\"toto\":1}]", 12, nesting));
}
}
SECTION("Input = std::string") {
SECTION("limit = 0") {
DeserializationOption::NestingLimit nesting(0);
SHOULD_WORK(deserializeJson(doc, std::string("\"toto\""), nesting));
SHOULD_WORK(deserializeJson(doc, std::string("123"), nesting));
SHOULD_WORK(deserializeJson(doc, std::string("true"), nesting));
SHOULD_FAIL(deserializeJson(doc, std::string("[]"), nesting));
SHOULD_FAIL(deserializeJson(doc, std::string("{}"), nesting));
SHOULD_FAIL(deserializeJson(doc, std::string("[\"toto\"]"), nesting));
SHOULD_FAIL(deserializeJson(doc, std::string("{\"toto\":1}"), nesting));
}
SECTION("limit = 1") {
DeserializationOption::NestingLimit nesting(1);
SHOULD_WORK(deserializeJson(doc, std::string("[\"toto\"]"), nesting));
SHOULD_WORK(deserializeJson(doc, std::string("{\"toto\":1}"), nesting));
SHOULD_FAIL(deserializeJson(doc, std::string("{\"toto\":{}}"), nesting));
SHOULD_FAIL(deserializeJson(doc, std::string("{\"toto\":[]}"), nesting));
SHOULD_FAIL(deserializeJson(doc, std::string("[[\"toto\"]]"), nesting));
SHOULD_FAIL(deserializeJson(doc, std::string("[{\"toto\":1}]"), nesting));
}
}
SECTION("Input = std::istream") {
SECTION("limit = 0") {
DeserializationOption::NestingLimit nesting(0);
std::istringstream good("true");
std::istringstream bad("[]");
SHOULD_WORK(deserializeJson(doc, good, nesting));
SHOULD_FAIL(deserializeJson(doc, bad, nesting));
}
SECTION("limit = 1") {
DeserializationOption::NestingLimit nesting(1);
std::istringstream good("[\"toto\"]");
std::istringstream bad("{\"toto\":{}}");
SHOULD_WORK(deserializeJson(doc, good, nesting));
SHOULD_FAIL(deserializeJson(doc, bad, nesting));
}
}
}
| bblanchon/ArduinoJson | extras/tests/JsonDeserializer/nestingLimit.cpp | C++ | mit | 4,306 |
const fs = require('fs')
const path = require('path')
const LRU = require('lru-cache')
const express = require('express')
const favicon = require('serve-favicon')
const compression = require('compression')
const resolve = file => path.resolve(__dirname, file)
const { createBundleRenderer } = require('vue-server-renderer')
const isProd = process.env.NODE_ENV === 'production'
const useMicroCache = process.env.MICRO_CACHE !== 'false'
const serverInfo =
`express/${require('express/package.json').version} ` +
`vue-server-renderer/${require('vue-server-renderer/package.json').version}`
const app = express()
const template = fs.readFileSync(resolve('./src/index.html'), 'utf-8');
function createRenderer (bundle, options) {
// https://github.com/vuejs/vue/blob/dev/packages/vue-server-renderer/README.md#why-use-bundlerenderer
return createBundleRenderer(bundle, Object.assign(options, {
template,
// for component caching
cache: LRU({
max: 1000,
maxAge: 1000 * 60 * 15
}),
// this is only needed when vue-server-renderer is npm-linked
basedir: resolve('./dist'),
// recommended for performance
runInNewContext: false
}))
}
let renderer
let readyPromise
if (isProd) {
// In production: create server renderer using built server bundle.
// The server bundle is generated by vue-ssr-webpack-plugin.
const bundle = require('./dist/vue-ssr-server-bundle.json')
// The client manifests are optional, but it allows the renderer
// to automatically infer preload/prefetch links and directly add <script>
// tags for any async chunks used during render, avoiding waterfall requests.
const clientManifest = require('./dist/vue-ssr-client-manifest.json')
renderer = createRenderer(bundle, {
clientManifest
})
} else {
// In development: setup the dev server with watch and hot-reload,
// and create a new renderer on bundle / index template update.
readyPromise = require('./build/setup-dev-server')(app, (bundle, options) => {
renderer = createRenderer(bundle, options)
})
}
const serve = (path, cache) => express.static(resolve(path), {
maxAge: cache && isProd ? 1000 * 60 * 60 * 24 * 30 : 0
})
app.use(compression({ threshold: 0 }))
//app.use(favicon('./public/logo-48.png'))
app.use('/dist', serve('./dist', true))
app.use('/public', serve('./public', true))
app.use('/manifest.json', serve('./manifest.json', true))
app.use('/service-worker.js', serve('./dist/service-worker.js'))
// 1-second microcache.
// https://www.nginx.com/blog/benefits-of-microcaching-nginx/
const microCache = LRU({
max: 100,
maxAge: 1000
})
// since this app has no user-specific content, every page is micro-cacheable.
// if your app involves user-specific content, you need to implement custom
// logic to determine whether a request is cacheable based on its url and
// headers.
const isCacheable = req => useMicroCache
function render (req, res) {
const s = Date.now()
res.setHeader("Content-Type", "text/html")
res.setHeader("Server", serverInfo)
const handleError = err => {
if (err.url) {
res.redirect(err.url)
} else if(err.code === 404) {
res.status(404).end('404 | Page Not Found')
} else {
// Render Error Page or Redirect
res.status(500).end('500 | Internal Server Error')
console.error(`error during render : ${req.url}`)
console.error(err.stack)
}
}
const cacheable = isCacheable(req)
if (cacheable) {
const hit = microCache.get(req.url)
if (hit) {
if (!isProd) {
console.log(`cache hit!`)
}
return res.end(hit)
}
}
const context = {
title: '交易虎_手机游戏交易平台_手游交易_帐号交易_游戏币交易_装备交易_道具交易_jiaoyihu', // default title
url: req.url
}
renderer.renderToString(context, (err, html) => {
debugger;
if (err) {
return handleError(err)
}
res.end(html)
if (cacheable) {
microCache.set(req.url, html)
}
if (!isProd) {
console.log(`whole request: ${Date.now() - s}ms`)
}
})
}
app.get('*', isProd ? render : (req, res) => {
readyPromise.then(() => render(req, res))
})
const port = process.env.PORT || 80;
app.listen(port, () => {
console.log(`server started at localhost:${port}`)
})
| wenyejie/trading-tiger | server.js | JavaScript | mit | 4,301 |
## async modes
### constant broadcast mode
* `STATE A` `encoding`
* agent broadcasts and performs signaling at a constant rate
Agent does not listen for any signals.
### passive listen mode
* `STATE A` `decoding`
* agent polls for signaling and decodes bytes as they arrive
This mode is for listening to a constant broadcast mode transmitter.
## sync modes
### triggered broadcast mode
* `STATE A` `idle` `listening for connection`
* agent broadcasts full gain on all frequencies
* each tick
* agent listens for identifying bands on input
* if agent hears client transmit on identifying bands
* `GOTO` `STATE B`
* `STATE B` `encoding`
* agent encodes bytes and performs signaling at a constant rate.
### triggered listen mode
* `STATE A` `idle` `polling for signaling`
* agent broadcasts full gain on all frequencies
* each tick
* agent polls for signaling and decodes bytes as they arrive
* if agent finds signaling
* agent zeros gain on all broadcast frequencies
* `GOTO` `STATE B`
* `STATE B` `decoding`
* agent polls for signaling and decodes bytes as they arrive
### mutual stepped broadcast mode (active)
### mutual stepped listen mode (active)
### error checked mode
| billautomata/JSAM_example | PROTOCOL.md | Markdown | mit | 1,241 |
import * as _ from 'lodash';
import * as AWS from 'aws-sdk';
import * as config from './config';
export interface Secrets {
REDDIT_CLIENT_ID: string;
REDDIT_CLIENT_TOKEN: string;
REDDIT_USERNAME: string;
REDDIT_PASSWORD: string;
STEAM_API_KEY: string;
}
export async function resolve(): Promise<Secrets> {
if (config.isLocalDev() && !process.env.USE_SECRETS) {
console.info('Getting secrets from ENV instead of encrypted bundle.');
return _.pick(process.env, [
'REDDIT_CLIENT_ID',
'REDDIT_CLIENT_TOKEN',
'REDDIT_PASSWORD',
'STEAM_API_KEY',
]) as any;
}
const kms = new AWS.KMS({
region: 'us-west-2',
});
console.log('Resolving secrets.');
const secrets = await kms.decrypt({
CiphertextBlob: Buffer.from(process.env.SECRETS, 'base64'),
}).promise();
return JSON.parse(secrets.Plaintext.toString());
}
| jmoseley/new-game-recommender | src/lib/secrets.ts | TypeScript | mit | 875 |
<!DOCTYPE html >
<html>
<head>
<title></title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link href="../lib/ref-index.css" media="screen" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../lib/jquery.js"></script>
</head>
<body><div class="entry">
<div class="name">ReversibleScaler</div>
<div class="occurrences"><a href="../io/github/mandar2812/dynaml/pipes/package.html" class="extype" name="io.github.mandar2812.dynaml.pipes">pipes</a> </div>
</div><div class="entry">
<div class="name">run</div>
<div class="occurrences"><a href="../io/github/mandar2812/dynaml/pipes/DataPipe.html" class="extype" name="io.github.mandar2812.dynaml.pipes.DataPipe">DataPipe</a> <a href="../io/github/mandar2812/dynaml/pipes/StreamDataPipe.html" class="extype" name="io.github.mandar2812.dynaml.pipes.StreamDataPipe">StreamDataPipe</a> <a href="../io/github/mandar2812/dynaml/pipes/StreamFilterPipe.html" class="extype" name="io.github.mandar2812.dynaml.pipes.StreamFilterPipe">StreamFilterPipe</a> <a href="../io/github/mandar2812/dynaml/pipes/StreamMapPipe.html" class="extype" name="io.github.mandar2812.dynaml.pipes.StreamMapPipe">StreamMapPipe</a> <a href="../io/github/mandar2812/dynaml/pipes/StreamPartitionPipe.html" class="extype" name="io.github.mandar2812.dynaml.pipes.StreamPartitionPipe">StreamPartitionPipe</a> <a href="../io/github/mandar2812/dynaml/pipes/StreamSideEffectPipe.html" class="extype" name="io.github.mandar2812.dynaml.pipes.StreamSideEffectPipe">StreamSideEffectPipe</a> </div>
</div></body>
</html>
| transcendent-ai-labs/transcendent-ai-labs.github.io | api_docs/DynaML/v1.4/dynaml-pipes/index/index-r.html | HTML | mit | 1,772 |
FROM ubuntu
ADD a.out /a.out
| ghaering/poc-docker-coredump | Dockerfile | Dockerfile | mit | 30 |
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")" \
&& . "utils.sh"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
tohome() {
sourceFile="$(cd .. && pwd)/$1"
targetFile="$HOME/.$(printf "%s" "$1" | sed "s/.*\/\(.*\)/\1/g")"
if [ ! -e "$targetFile" ] || $skipQuestions; then
execute \
"ln -fs $sourceFile $targetFile" \
"$targetFile → $sourceFile"
elif [ "$(readlink "$targetFile")" == "$sourceFile" ]; then
print_success "$targetFile → $sourceFile"
else
if ! $skipQuestions; then
ask_for_confirmation "'$targetFile' already exists, do you want to overwrite it?"
if answer_is_yes; then
rm -rf "$targetFile"
execute \
"ln -fs $sourceFile $targetFile" \
"$targetFile → $sourceFile"
else
print_error "$targetFile → $sourceFile"
fi
fi
fi
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
toother() {
sourceFile="$(cd .. && pwd)/$1"
targetFile="$HOME/$2"
targetdir=$(dirname "$targetFile")
mkdir -p "$targetdir"
if [ ! -e "$targetFile" ] || $skipQuestions; then
execute \
"ln -fs $sourceFile $targetFile" \
"$targetFile → $sourceFile"
elif [ "$(readlink "$targetFile")" == "$sourceFile" ]; then
print_success "$targetFile → $sourceFile"
else
if ! $skipQuestions; then
ask_for_confirmation "'$targetFile' already exists, do you want to overwrite it?"
if answer_is_yes; then
rm -rf "$targetFile"
execute \
"ln -fs $sourceFile $targetFile" \
"$targetFile → $sourceFile"
else
print_error "$targetFile → $sourceFile"
fi
fi
fi
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
create_symlinks() {
declare -a FILES_TO_SYMLINK=(
"shell/bash_logout"
"shell/bash_profile"
"shell/bashrc"
"shell/tmux.conf"
"git/gitconfig"
"conky/conkyrc"
"R/Rprofile"
"zsh/zshrc"
)
local i=""
local sourceFile=""
local targetFile=""
local skipQuestions=false
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
skip_questions "$@" \
&& skipQuestions=true
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
for i in "${FILES_TO_SYMLINK[@]}"; do
tohome "$i"
done
toother "xfce4/terminal/terminalrc" ".config/xfce4/terminal/terminalrc"
toother "xfce4/panel/whiskermenu-1.rc" ".config/xfce4/panel/whiskermenu-1.rc"
toother "sublime-text/Package\ Control.sublime-settings" ".config/sublime-text-3/Packages/User/Package\ Control.sublime-settings"
toother "sublime-text/Preferences.sublime-settings" ".config/sublime-text-3/Packages/User/Preferences.sublime-settings"
toother "sublime-text/bash.sublime-build" ".config/sublime-text-3/Packages/User/bash.sublime-build"
toother "sublime-text/xetex.sublime-build" ".config/sublime-text-3/Packages/User/xetex.sublime-build"
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
main() {
print_info "Create symbolic links"
create_symlinks "$@"
}
main "$@"
| EDiLD/dotfiles | src/os/create_symbolic_links.sh | Shell | mit | 3,621 |
module FinancialStatementHelper
include HyaccConst
def colspan( node_level )
@max_node_level - node_level + 1
end
def is_visible_on_report( account, branch_id )
# 削除された科目は表示しない
return false if account.deleted?
# 決算書科目以外は表示しない
return false unless account.is_settlement_report_account
# 検索条件に部門指定がない場合は全社での出力なので内部取引は表示しない
if branch_id.to_i == 0
return false if account.internal_trade?
end
true
end
end
| hybitz/hyacc | app/helpers/financial_statement_helper.rb | Ruby | mit | 611 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login Page - Photon Admin Panel Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/favicon.ico"/>
<link rel="apple-touch-icon" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/iosicon.png"/>
<link rel="stylesheet" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/css/css_compiled/photon-min.css?v1.1" media="all"/>
<link rel="stylesheet" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/css/css_compiled/photon-min-part2.css?v1.1" media="all"/>
<link rel="stylesheet" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/css/css_compiled/photon-responsive-min.css?v1.1" media="all"/>
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="css/css_compiled/ie-only-min.css?v1.1" />
<![endif]-->
<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" href="css/css_compiled/ie8-only-min.css?v1.1" />
<script type="text/javascript" src="js/plugins/excanvas.js"></script>
<script type="text/javascript" src="js/plugins/html5shiv.js"></script>
<script type="text/javascript" src="js/plugins/respond.min.js"></script>
<script type="text/javascript" src="js/plugins/fixFontIcons.js"></script>
<![endif]-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/jquery-ui.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/bootstrap/bootstrap.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/modernizr.custom.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.pnotify.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/less-1.3.1.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/xbreadcrumbs.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.maskedinput-1.3.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.autotab-1.1b.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/charCount.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.textareaCounter.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/elrte.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/elrte.en.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/select2.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery-picklist.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.validate.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/additional-methods.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.form.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.metadata.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.mockjax.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.uniform.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.tagsinput.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.rating.pack.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/farbtastic.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.timeentry.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.jstree.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/dataTables.bootstrap.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.mousewheel.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.mCustomScrollbar.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.flot.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.flot.stack.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.flot.pie.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.flot.resize.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/raphael.2.1.0.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/justgage.1.0.1.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.qrcode.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.clock.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.countdown.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.jqtweet.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/jquery.cookie.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/bootstrap-fileupload.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/prettify/prettify.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/bootstrapSwitch.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/plugins/mfupload.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/js/common.js"></script>
</head>
<body class="body-login">
<div class="nav-fixed-topright" style="visibility: hidden">
<ul class="nav nav-user-menu">
<li class="user-sub-menu-container">
<a href="javascript:;">
<i class="user-icon"></i><span class="nav-user-selection">Theme Options</span><i class="icon-menu-arrow"></i>
</a>
<ul class="nav user-sub-menu">
<li class="light">
<a href="javascript:;">
<i class='icon-photon stop'></i>Light Version
</a>
</li>
<li class="dark">
<a href="javascript:;">
<i class='icon-photon stop'></i>Dark Version
</a>
</li>
</ul>
</li>
<li>
<a href="javascript:;">
<i class="icon-photon mail"></i>
</a>
</li>
<li>
<a href="javascript:;">
<i class="icon-photon comment_alt2_stroke"></i>
<div class="notification-count">12</div>
</a>
</li>
</ul>
</div>
<script>
$(function(){
setTimeout(function(){
$('.nav-fixed-topright').removeAttr('style');
}, 300);
$(window).scroll(function(){
if($('.breadcrumb-container').length){
var scrollState = $(window).scrollTop();
if (scrollState > 0) $('.nav-fixed-topright').addClass('nav-released');
else $('.nav-fixed-topright').removeClass('nav-released')
}
});
$('.user-sub-menu-container').on('click', function(){
$(this).toggleClass('active-user-menu');
});
$('.user-sub-menu .light').on('click', function(){
if ($('body').is('.light-version')) return;
$('body').addClass('light-version');
setTimeout(function() {
$.cookie('themeColor', 'light', {
expires: 7,
path: '/'
});
}, 500);
});
$('.user-sub-menu .dark').on('click', function(){
if ($('body').is('.light-version')) {
$('body').removeClass('light-version');
$.cookie('themeColor', 'dark', {
expires: 7,
path: '/'
});
}
});
});
</script>
<div class="container-login">
<div class="form-centering-wrapper">
<div class="form-window-login">
<div class="form-window-login-logo">
<div class="login-logo">
<img src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/images/photon/[email protected]" alt="Photon UI"/>
</div>
<h2 class="login-title">Welcome to Photon UI!</h2>
<div class="login-member">Not a Member? <a href="prettify.js.html#">Sign Up »</a>
<a href="prettify.js.html#" class="btn btn-facebook"><i class="icon-fb"></i>Login with Facebook<i class="icon-fb-arrow"></i></a>
</div>
<div class="login-or">Or</div>
<div class="login-input-area">
<form method="POST" action="dashboard.php">
<span class="help-block">Login With Your Photon Account</span>
<input type="text" name="email" placeholder="Email">
<input type="password" name="password" placeholder="Password">
<button type="submit" class="btn btn-large btn-success btn-login">Login</button>
</form>
<a href="prettify.js.html#" class="forgot-pass">Forgot Your Password?</a>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-1936460-27']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>
| user-tony/photon-rails | lib/assets/css/css_compiled/@{photonImagePath}plugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/prettify.js.html | HTML | mit | 15,573 |
#include "Common.h"
#include "CacheAdapters/Redis.h"
#include "SSEConfig.h"
#include "SSEEvent.h"
#include <string>
#include <vector>
#include <iostream>
#include <boost/asio/io_service.hpp>
#include <boost/asio/ip/address.hpp>
using namespace std;
extern int stop;
Redis::Redis(const string key, const ChannelConfig& config) : _config(config), _key(key) {
Connect();
}
void Redis::Connect() {
string host = Lookup(_config.server->GetValue("redis.host"));
const unsigned short port = _config.server->GetValueInt("redis.port");
const unsigned int NUM_CONNECTIONS = _config.server->GetValueInt("redis.numConnections");
if (host.empty()) {
LOG(ERROR) << "Failed to look up host for redis adapter " << _config.server->GetValue("redis.host") << " Retrying in 5 seconds.";
Reconnect(5);
return;
}
boost::asio::ip::address address = boost::asio::ip::address::from_string(host);
boost::asio::io_service ioService;
string errmsg;
LOG(INFO) << "Creating redis pool of " << _config.server->GetValue("redis.numConnections") << " connections.";
for (unsigned int i = 0; i < NUM_CONNECTIONS; i++) {
RedisSyncClient* client = new RedisSyncClient(ioService);
if(client->connect(address, port, errmsg)) {
_clients.push_back(RedisSyncClientPtr(client));
LOG(INFO) << "Connected to redis server " << _config.server->GetValue("redis.host") << ":" << _config.server->GetValue("redis.port");
} else {
LOG(ERROR) << "Failed to connect to redis:" << errmsg << ". Retrying in 5 seconds.";
Reconnect(5);
return;
}
}
_curclient = _clients.begin();
}
void Redis::Disconnect() {
while(_clients.size() > 0) {
_clients.pop_back();
}
}
void Redis::Reconnect(int delay) {
if (!stop) {
Disconnect();
sleep(delay);
Connect();
}
}
RedisSyncClient* Redis::GetClient() {
RedisSyncClient* client = (*_curclient).get();
_curclient++;
if (_curclient == _clients.end()) _curclient = _clients.begin();
return client;
}
void Redis::CacheEvent(SSEEvent* event) {
RedisValue result;
try {
result = GetClient()->command("HSET", _key, event->getid(), event->get());
} catch (const runtime_error& error) {
LOG(ERROR) << "Redis::CacheEvent: " << error.what();
}
if (result.isError()) {
LOG(ERROR) << "SET error: " << result.toString();
}
result = GetClient()->command("HLEN", _key);
if (result.isError()) {
LOG(ERROR) << "HLEN error" << result.toString();
}
if (result.isOk()) {
if (result.toInt() > _config.cacheLength) {
result = GetClient()->command("HKEYS", _key);
if (result.isError()) {
LOG(ERROR) << "HKEYS error: " << result.toString();
}
if (result.isOk()) {
GetClient()->command("HDEL", _key, result.toArray().front().toString());
}
}
}
}
deque<string> Redis::GetEventsSinceId(string lastId) {
deque<string> events;
RedisValue result;
try {
result = GetClient()->command("HGETALL", _key);
} catch (const runtime_error& error) {
LOG(ERROR) << "Redis::GetEventsSinceId: " << error.what();
}
if (result.isError()) {
LOG(ERROR) << "GET error: " << result.toString();
}
if (result.isOk() && result.isArray()) {
std::vector<RedisValue> resultArray = result.toArray();
string id = "";
string data = "";
while (!resultArray.empty()) {
RedisValue eventResult = resultArray.back();
if (eventResult.isString()) {
if (data == "") {
data = eventResult.toString();
} else {
id = eventResult.toString();
if (id >= lastId) {
events.push_front(data);
}
id = "";
data = "";
}
}
resultArray.pop_back();
}
}
return events;
}
deque<string> Redis::GetAllEvents() {
RedisValue result;
deque<string> events;
try {
result = GetClient()->command("HGETALL", _key);
} catch (const runtime_error& error) {
LOG(ERROR) << "Redis::GetEventsSinceId: " << error.what();
}
if (result.isError()) {
LOG(ERROR) << "GET error: " << result.toString();
}
if (result.isOk() && result.isArray()) {
std::vector<RedisValue> resultArray = result.toArray();
string data = "";
while (!resultArray.empty()) {
RedisValue eventResult = resultArray.back();
if (eventResult.isString()) {
if (data == "") {
data = eventResult.toString();
} else {
events.push_front(data);
data = "";
}
}
resultArray.pop_back();
}
}
return events;
}
int Redis::GetSizeOfCachedEvents() {
int size = 0;
RedisValue result;
try {
result = GetClient()->command("HLEN", _key);
} catch (const runtime_error& error) {
LOG(ERROR) << "Redis::GetEventsSinceId: " << error.what();
}
if (result.isError()) {
LOG(ERROR) << "GET error: " << result.toString();
}
if (result.isOk()) {
size = result.toInt();
}
return size;
}
string Redis::Lookup(string hostname) {
hostent * record = gethostbyname(hostname.c_str());
if(record == NULL) {
return "";
}
in_addr * address = (in_addr * )record->h_addr;
string ip_address = inet_ntoa(* address);
return ip_address;
}
| sgulseth/ssehub | src/CacheAdapters/Redis.cpp | C++ | mit | 5,225 |
SPEC = Password.hs
CC= gcc
CFLAGS = -fPIC
GHC = ghc
%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS)
example% : solution%.o $(SPEC)
$(GHC) -o $@ $(SPEC) $<
all : example1 example2
| pbv/codex-quickcheck | examples/password/Makefile | Makefile | mit | 176 |
<?php
class kml_TimeSpan extends kml_TimePrimitive {
protected $tagName = 'TimeSpan';
var $begin;
var $end;
/* Constructor */
function kml_TimeSpan($begin = null, $end = null) {
parent::kml_TimePrimitive();
if ($begin !== null) $this->set_begin($begin);
if ($end !== null) $this->set_end($end);
}
/* Assignments */
function set_begin($begin) { $this->begin = $begin; }
function set_end($end) { $this->end = $end; }
/* Render */
function render($doc) {
$X = parent::render($doc);
if (isset($this->begin)) $X->appendChild(XML_create_text_element($doc, 'begin', $this->begin));
if (isset($this->end)) $X->appendChild(XML_create_text_element($doc, 'end', $this->end));
return $X;
}
}
/*
$a = new kml_TimeSpan();
$a->dump(false);
*/
| lifelink1987/old.life-link.org | libs/php-kml/kml_TimeSpan.php | PHP | mit | 845 |
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace NAudioUniversalDemo
{
internal class ViewModelBase : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChangedEventHandler handler = PropertyChanged;
if (handler != null) handler(this, new PropertyChangedEventArgs(propertyName));
}
}
} | skor98/DtWPF | speechKit/NAudio-master/NAudioUniversalDemo/ViewModelBase.cs | C# | mit | 517 |
# Rollup
<p align="center">
<a href="https://travis-ci.org/rollup/rollup">
<img src="https://api.travis-ci.org/rollup/rollup.svg?branch=master"
alt="build status">
</a>
<a href="https://www.npmjs.com/package/rollup">
<img src="https://img.shields.io/npm/v/rollup.svg"
alt="npm version">
</a>
<a href="#backers" alt="sponsors on Open Collective">
<img src="https://opencollective.com/rollup/backers/badge.svg" />
</a>
<a href="#sponsors" alt="Sponsors on Open Collective">
<img src="https://opencollective.com/rollup/sponsors/badge.svg" />
</a>
<a href="https://github.com/rollup/rollup/blob/master/LICENSE.md">
<img src="https://img.shields.io/npm/l/rollup.svg"
alt="license">
</a>
<a href="https://david-dm.org/rollup/rollup">
<img src="https://david-dm.org/rollup/rollup/status.svg"
alt="dependency status">
</a>
<a href='https://gitter.im/rollup/rollup?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge'>
<img src='https://badges.gitter.im/rollup/rollup.svg'
alt='Join the chat at https://gitter.im/rollup/rollup'>
</a>
</p>
## Overview
Rollup is a module bundler for JavaScript which compiles small pieces of code into something larger and more complex, such as a library or application. It uses the new standardized format for code modules included in the ES6 revision of JavaScript, instead of previous idiosyncratic solutions such as CommonJS and AMD. ES6 modules let you freely and seamlessly combine the most useful individual functions from your favorite libraries. This will eventually be possible natively, but Rollup lets you do it today.
## Quick Start Guide
Install with `npm install --global rollup`. Rollup can be used either through a [command line interface](https://rollupjs.org/#command-line-reference) with an optional configuration file, or else through its [JavaScript API](https://rollupjs.org/#javascript-api). Run `rollup --help` to see the available options and parameters. The starter project templates, [rollup-starter-lib](https://github.com/rollup/rollup-starter-lib) and [rollup-starter-app](https://github.com/rollup/rollup-starter-app), demonstrate common configuration options, and more detailed instructions are available throughout the [user guide](http://rollupjs.org/).
### Commands
These commands assume the entry point to your application is named main.js, and that you'd like all imports compiled into a single file named bundle.js.
For browsers:
```bash
# compile to a <script> containing a self-executing function
$ rollup main.js --format iife --name "myBundle" --file bundle.js
```
For Node.js:
```bash
# compile to a CommonJS module
$ rollup main.js --format cjs --file bundle.js
```
For both browsers and Node.js:
```bash
# UMD format requires a bundle name
$ rollup main.js --format umd --name "myBundle" --file bundle.js
```
## Why
Developing software is usually easier if you break your project into smaller separate pieces, since that often removes unexpected interactions and dramatically reduces the complexity of the problems you'll need to solve, and simply writing smaller projects in the first place [isn't necessarily the answer](https://medium.com/@Rich_Harris/small-modules-it-s-not-quite-that-simple-3ca532d65de4). Unfortunately, JavaScript has not historically included this capability as a core feature in the language.
This finally changed with the ES6 revision of JavaScript, which includes a syntax for importing and exporting functions and data so they can be shared between separate scripts. The specification is now fixed, but it is not yet implemented in browsers or Node.js. Rollup allows you to write your code using the new module system, and will then compile it back down to existing supported formats such as CommonJS modules, AMD modules, and IIFE-style scripts. This means that you get to *write future-proof code*, and you also get the tremendous benefits of...
## Tree Shaking
In addition to enabling the use of ES6 modules, Rollup also statically analyzes the code you are importing, and will exclude anything that isn't actually used. This allows you to build on top of existing tools and modules without adding extra dependencies or bloating the size of your project.
For example, with CommonJS, the *entire tool or library must be imported*.
```js
// import the entire utils object with CommonJS
var utils = require( 'utils' );
var query = 'Rollup';
// use the ajax method of the utils object
utils.ajax( 'https://api.example.com?search=' + query ).then( handleResponse );
```
But with ES6 modules, instead of importing the whole `utils` object, we can just import the one `ajax` function we need:
```js
// import the ajax function with an ES6 import statement
import { ajax } from 'utils';
var query = 'Rollup';
// call the ajax function
ajax( 'https://api.example.com?search=' + query ).then( handleResponse );
```
Because Rollup includes the bare minimum, it results in lighter, faster, and less complicated libraries and applications. Since this approach is based on explicit `import` and `export` statements, it is vastly more effective than simply running an automated minifier to detect unused variables in the compiled output code.
## Compatibility
### Importing CommonJS
Rollup can import existing CommonJS modules [through a plugin](https://github.com/rollup/rollup-plugin-commonjs).
### Publishing ES6 Modules
To make sure your ES6 modules are immediately usable by tools that work with CommonJS such as Node.js and webpack, you can use Rollup to compile to UMD or CommonJS format, and then point to that compiled version with the `main` property in your `package.json` file. If your `package.json` file also has a `module` field, ES6-aware tools like Rollup and [webpack 2](https://webpack.js.org/) will [import the ES6 module version](https://github.com/rollup/rollup/wiki/pkg.module) directly.
## Links
- step-by-step [tutorial video series](https://code.lengstorf.com/learn-rollup-js/), with accompanying written walkthrough
- miscellaneous issues in the [wiki](https://github.com/rollup/rollup/wiki)
## Contributors
This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
<a href="https://github.com/rollup/rollup/graphs/contributors"><img src="https://opencollective.com/rollup/contributors.svg?width=890" /></a>
## Backers
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/rollup#backer)]
<a href="https://opencollective.com/rollup#backers" target="_blank"><img src="https://opencollective.com/rollup/backers.svg?width=890"></a>
## Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/rollup#sponsor)]
<a href="https://opencollective.com/rollup/sponsor/0/website" target="_blank"><img src="https://opencollective.com/rollup/sponsor/0/avatar.svg"></a>
<a href="https://opencollective.com/rollup/sponsor/1/website" target="_blank"><img src="https://opencollective.com/rollup/sponsor/1/avatar.svg"></a>
<a href="https://opencollective.com/rollup/sponsor/2/website" target="_blank"><img src="https://opencollective.com/rollup/sponsor/2/avatar.svg"></a>
<a href="https://opencollective.com/rollup/sponsor/3/website" target="_blank"><img src="https://opencollective.com/rollup/sponsor/3/avatar.svg"></a>
<a href="https://opencollective.com/rollup/sponsor/4/website" target="_blank"><img src="https://opencollective.com/rollup/sponsor/4/avatar.svg"></a>
<a href="https://opencollective.com/rollup/sponsor/5/website" target="_blank"><img src="https://opencollective.com/rollup/sponsor/5/avatar.svg"></a>
<a href="https://opencollective.com/rollup/sponsor/6/website" target="_blank"><img src="https://opencollective.com/rollup/sponsor/6/avatar.svg"></a>
<a href="https://opencollective.com/rollup/sponsor/7/website" target="_blank"><img src="https://opencollective.com/rollup/sponsor/7/avatar.svg"></a>
<a href="https://opencollective.com/rollup/sponsor/8/website" target="_blank"><img src="https://opencollective.com/rollup/sponsor/8/avatar.svg"></a>
<a href="https://opencollective.com/rollup/sponsor/9/website" target="_blank"><img src="https://opencollective.com/rollup/sponsor/9/avatar.svg"></a>
## License
[MIT](https://github.com/rollup/rollup/blob/master/LICENSE.md)
| RickFrom1987/rickfrom1987.com | node_modules/rollup/README.md | Markdown | mit | 8,419 |
$(function(){
$("#addCompanyForm").validate({
rules: {
name : {
required : true
},
email: {
required: true,
email: true
},
url : {
required : true,
url : true
}
},
messages: {
name : {
required : "Please enter your company name"
},
url : {
required : "Please enter your company website",
url : "Please enter a valid url"
},
email: {
required: "Enter your Company email address",
email: "Please enter a valid email address",
}
}
});
$('#addCompanyDialog').on('hide.bs.modal', function (e) {
refresh();
});
$('#addCompanyDialog').on('shown.bs.modal', function (e) {
$('#name').focus();
$('#id').val('');
var id = $(e.relatedTarget).attr('id');
var isEdit = $(e.relatedTarget).hasClass('fa-edit');
console.log(isEdit);
if(isEdit){
$('#id').val(id);
$.getJSON('/account/companies/' + id, function(data){
if(data.result){
$('#name').val(data.result.name);
$('#email').val(data.result.email);
$('#url').val(data.result.url);
}
});
}
var validator = $( "#addCompanyForm" ).validate();
validator.resetForm();
});
$('#confirm-delete').on('show.bs.modal', function(e) {
var id = $(e.relatedTarget).attr('id');
$(this).find('.btn-ok').on('click', function(){
$.ajax({
url: '/account/companies/' + id,
type: 'delete',
dataType: 'json',
success: function(data) {
$('#message ').html('<div class="error" style="text-align:center;padding:5px;">' + data.message + '</div>')
$('#confirm-delete').modal('hide');
if(data.result)
getCompanies();
}
});
});
});
$("#addCompanyForm").submit(function(e) {
e.preventDefault();
if($( "#addCompanyForm" ).valid()){
var actionurl = '/account/companies';
var type = 'post';
console.log($('#id').val() != '');
if($('#id').val() != ''){
type = 'put';
actionurl = '/account/companies/' + $('#id').val();
}
//var actionurl = e.currentTarget.action;
$.ajax({
url: actionurl,
type: type,
dataType: 'json',
data: $("#addCompanyForm").serialize(),
success: function(data) {
$('#message ').html('<div class="error" style="text-align:center;padding:5px;">' + data.message + '</div>')
$('#addCompanyDialog').modal('hide');
if(data.result)
getCompanies();
}
});
}
});
var getCompanies= function(){
$('#companylist').html('<div class="loader"><i class="fa fa-spinner fa-pulse"></i></div>');
$.get('/account/companies/list', function(data){
$('#companylist').html(data);
$('#message ').html('');
});
};
$('#refresh').on('click', function () {
$('#message ').html('');
getCompanies();
});
var refresh = function () {
$('#id').val('');
$('#name').val('');
$('#url').val('');
$('#email').val('');
};
getCompanies();
}); | CREA-KO/NPoint.Api | public/js/companies.js | JavaScript | mit | 3,124 |
package com.github.aureliano.evtbridge.converter;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
import com.github.aureliano.evtbridge.core.config.EventCollectorConfiguration;
import com.github.aureliano.evtbridge.core.helper.DataHelper;
public class ConfigurationConverterTest {
@Test
public void testConvert() {
Map<String, Object> map = this.createConfigurationMap();
EventCollectorConfiguration configuration = new ConfigurationConverter().convert(map);
assertEquals("xpto-collector", configuration.getCollectorId());
assertFalse(configuration.isPersistExecutionLog());
assertTrue(configuration.isMultiThreadingEnabled());
assertEquals(DataHelper.mapToProperties(this.createMetadata()), configuration.getMetadata());
}
private Map<String, Object> createConfigurationMap() {
Map<String, Object> map = new HashMap<String, Object>();
map.put("collectorId", "xpto-collector");
map.put("persistExecutionLog", false);
map.put("multiThreadingEnabled", "true");
map.put("metadata", this.createMetadata());
return map;
}
private Map<String, Object> createMetadata() {
Map<String, Object> map = new HashMap<String, Object>();
map.put("test", true);
map.put("host", "127.0.0.1");
return map;
}
} | aureliano/da-mihi-logs | evt-bridge-converter/src/test/java/com/github/aureliano/evtbridge/converter/ConfigurationConverterTest.java | Java | mit | 1,411 |
<HTML><HEAD>
<TITLE>Review for Can't Hardly Wait (1998)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0127723">Can't Hardly Wait (1998)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Josh+Schirmer">Josh Schirmer</A></H3><HR WIDTH="40%" SIZE="4">
<PRE>CAN'T HARDLY WAIT
a review by Josh Schirmer
===</PRE>
<PRE>* * * * out of * * * * *</PRE>
<P>Maybe my review is unfair, me being a teenager and this being a teen
movie. It's a well known fact that every teen movie that comes down the
pike is hailed by our generation as, "Like, the most kick-a** movie
ever!" (For those of you unfamiliar with the way teenagers talk, that's
like giving it 'a very enthusiastic thumbs up' -- eat your out, Gene and
Roger.) And that review holds it's ground until the next one comes
along. We started with Empire Records, then Scream, I Know What You Did
Last Summer, Scream 2, Titanic and so on. And now that summer is in full
swing and reruns have set it, we need something new to keep us
entertained. How about another "most kick-a**" teen movie?</P>
<P>Now, I'll be honest. Out of the movies listed above, the only one I
REALLY enjoyed was Titanic. Parents and teachers always tell me I'm
mature for my age, and that makes me proud. They have their reasons, too
-- I'm the kind of kid that actually focuses during class, keeps myself
busy with sports and other extra-curricular activities, and lists my
favorite movie as "As Good As It Gets". And teen movies rarely excite
me. Nevertheless, I joined a group of my friends and headed off to see
"Can't Hardly Wait".</P>
<P>And to tell the truth, I actually had fun.</P>
<P>At first glance, Can't Hardly Wait is a simple pageant of "boy is in
love with girl that doesn't know he exists". But a viewing proves that
the movie is more than that -- rather, it's a simple pageant of growing
up and reaching your peak. And it approaches it humorously, barraged
with heaping honesty.</P>
<P>Many critics have pointed out that the characters have no depth -- if
you ask me, this was the story's intention. I think to truly enjoy the
movie, you have to look at the characters for who they most resemble in
your own little group of high-school friends. From there, you yourself
can determine their back stories and what they're feeling.</P>
<P>And (coming as a REAL shocker in a teen movie), there is a lesson in
diguise. The movie simply states live for the moment, because the moment
is all that should matter. That, and (to borrow a line from the film),
"Fate works in some f---ed up ways."</P>
<P>There have been better movies this summer (Truman Show comes to mind),
but there have been worse -- like Godzilla. Give this one a shot. Your
kids are guarateed to think that it's the "most kick-a**" film ever (or
until the next one), but you might actually find something in it you
enjoy.</P>
<PRE>--Josh Schirmer
<A HREF="mailto:[email protected]">[email protected]</A></PRE>
<HR><P CLASS=flush><SMALL>The review above was posted to the
<A HREF="news:rec.arts.movies.reviews">rec.arts.movies.reviews</A> newsgroup (<A HREF="news:de.rec.film.kritiken">de.rec.film.kritiken</A> for German reviews).<BR>
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.<BR>
Please direct comments/criticisms of the review to relevant newsgroups.<BR>
Broken URLs inthe reviews are the responsibility of the author.<BR>
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
</SMALL></P>
<P ALIGN=CENTER>Related links: <A HREF="/Reviews/">index of all rec.arts.movies.reviews reviews</A></P>
</P></BODY></HTML>
| xianjunzhengbackup/code | data science/machine_learning_for_the_web/chapter_4/movie/12977.html | HTML | mit | 3,894 |
<?php
namespace Kendo\Dataviz\UI;
class DiagramShapeConnectorDefaultsStroke extends \Kendo\SerializableObject {
//>> Properties
/**
* Defines the stroke color.
* @param string $value
* @return \Kendo\Dataviz\UI\DiagramShapeConnectorDefaultsStroke
*/
public function color($value) {
return $this->setProperty('color', $value);
}
/**
* The dash type of the stroke.
* @param string $value
* @return \Kendo\Dataviz\UI\DiagramShapeConnectorDefaultsStroke
*/
public function dashType($value) {
return $this->setProperty('dashType', $value);
}
/**
* Defines the thickness or width of the shape connectors stroke.
* @param float $value
* @return \Kendo\Dataviz\UI\DiagramShapeConnectorDefaultsStroke
*/
public function width($value) {
return $this->setProperty('width', $value);
}
//<< Properties
}
?>
| deviffy/laravel-kendo-ui | wrappers/php/lib/Kendo/Dataviz/UI/DiagramShapeConnectorDefaultsStroke.php | PHP | mit | 909 |
# reads uniprot core file and generates core features
from features_helpers import score_differences
def build_uniprot_to_index_to_core(sable_db_obj):
uniprot_to_index_to_core = {}
for line in sable_db_obj:
tokens = line.split()
try:
# PARSING ID
prot = tokens[0]
index = int(tokens[1])
core = tokens[2]
# PARSING ID
if uniprot_to_index_to_core.has_key(prot):
uniprot_to_index_to_core[prot][index] = core
else:
uniprot_to_index_to_core[prot] = {index: core}
except ValueError:
print "Cannot parse: " + line[0:len(line) - 1]
return uniprot_to_index_to_core
def get_sable_scores(map_file, f_sable_db_location, uniprot_core_output_location):
map_file_obj = open(map_file, 'r')
sable_db_obj = open(f_sable_db_location, 'r')
write_to = open(uniprot_core_output_location, 'w')
uniprot_to_index_to_core = build_uniprot_to_index_to_core(sable_db_obj)
for line in map_file_obj:
tokens = line.split()
asid = tokens[0].split("_")[0]
prot = tokens[1]
sstart = int(tokens[2])
start = int(tokens[3])
end = int(tokens[4])
eend = int(tokens[5])
rough_a_length = int(int(tokens[0].split("_")[-1].split("=")[1]) / 3)
if asid[0] == "I":
rough_a_length = 0
c1_count = 0
a_count = 0
c2_count = 0
canonical_absolute = 0
if prot in uniprot_to_index_to_core:
c1_count = score_differences(uniprot_to_index_to_core, prot, sstart, start)
a_count = score_differences(uniprot_to_index_to_core, prot, start, end)
c2_count = score_differences(uniprot_to_index_to_core, prot, end, eend)
prot_len = int(line.split("\t")[7].strip())
canonical_absolute = score_differences(uniprot_to_index_to_core, prot, 1, prot_len)
print >> write_to, tokens[0] + "\t" + prot + "\t" + repr(c1_count) + "\t" + repr(a_count) + "\t" + repr(
c2_count) + "\t" + repr(canonical_absolute)
write_to.close() | wonjunetai/pulse | features/uniprot_core.py | Python | mit | 2,151 |
---
published: true
title: Oops.
layout: post
---
Just testing this out. | soemu/soemu.github.io | _posts/2015-07-14-oops.markdown | Markdown | mit | 78 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Project.Models
{
public enum WordRel
{
None,
Synonym,
Similar,
Related,
Antonym
}
} | Midnightgarden101/WCSU-2017-CS350-Final_Project | Project/Models/WordRel.cs | C# | mit | 234 |
#include <string.hpp>
#include "yatf/include/yatf.hpp"
using namespace yacppl;
TEST(string, can_be_created) {
string str;
REQUIRE(str == "");
REQUIRE(str.empty());
REQUIRE_EQ(str.length(), 0u);
REQUIRE_EQ(str.size(), 0u);
REQUIRE_FALSE(str == "abc");
}
TEST(string, can_be_constructed_from_cstring) {
{
string str("test_string");
REQUIRE(str == "test_string");
REQUIRE_EQ(str.length(), 11u);
REQUIRE_EQ(str.size(), 11u);
REQUIRE_EQ(*(str.cend() - 1), 'g');
REQUIRE_EQ(*(str.end() - 1), 'g');
REQUIRE_EQ(*(str.cbegin()), 't');
REQUIRE_EQ(*(str.begin()), 't');
}
{
string str("test_string", 4);
REQUIRE(str == "test");
REQUIRE_EQ(str.length(), 4u);
REQUIRE_EQ(str.size(), 4u);
REQUIRE_EQ(*(str.cend() - 1), 't');
REQUIRE_EQ(*(str.end() - 1), 't');
REQUIRE_EQ(*(str.cbegin()), 't');
REQUIRE_EQ(*(str.begin()), 't');
}
}
string get_string() {
return "some_string";
}
TEST(string, can_be_created_from_other_string) {
string str("test_string");
{
auto str2 = str;
REQUIRE(not str.empty());
REQUIRE(not str2.empty());
REQUIRE(str == "test_string");
REQUIRE(str2 == "test_string");
}
{
string str2(str);
REQUIRE(not str.empty());
REQUIRE(not str2.empty());
REQUIRE(str == "test_string");
REQUIRE(str2 == "test_string");
}
{
string str2;
string str3(str2);
REQUIRE_EQ(str3.operator const char *(), nullptr);
}
{
string str2("some_string");
string str3(move(str2));
REQUIRE_EQ(str2.operator const char *(), nullptr);
REQUIRE(str3 == "some_string");
}
str = string("some");
REQUIRE(str == "some");
str = string("some very, very, very long string");
REQUIRE(str == "some very, very, very long string");
str = nullptr;
REQUIRE(!str);
str = "something";
REQUIRE(str == "something");
auto str2 = get_string();
REQUIRE(str2 == "some_string");
str = str2;
REQUIRE(str == "some_string");
// FIXME
str = string();
str = string(str2);
str = string();
str = string(string("some other"));
}
TEST(string, can_be_iterated) {
string str("test_string");
size_t i = 0;
for (auto c : str) {
REQUIRE_EQ(c, "test_string"[i++]);
}
}
TEST(string, can_be_appended) {
{
string str("hello ");
str.append("world");
REQUIRE_EQ((const char *)str, "hello world");
}
{
string str;
str.append("world");
REQUIRE_EQ((const char *)str, "world");
str.append("hello hello hello");
REQUIRE_EQ((const char *)str, "worldhello hello hello");
REQUIRE_EQ(str.length(), 22u);
str.append(" test test");
REQUIRE_EQ((const char *)str, "worldhello hello hello test test");
REQUIRE_EQ(str.length(), 32u);
}
}
TEST(string, can_get_substring) {
string str("hello world");
auto str2 = str.substring(6, 5);
REQUIRE_EQ((const char *)str2, "world");
auto str3 = str.substring(6, 1024);
REQUIRE_EQ((const char *)str3, "world");
auto str4 = str.substring(11, 1024);
REQUIRE_EQ((const char *)str4, "");
}
TEST(string, can_be_erased) {
string str("hello world");
str.erase(str.begin() + 5, str.end());
REQUIRE_EQ((const char *)str, "hello");
REQUIRE_EQ(str.length(), 5u);
REQUIRE_EQ(str.size(), 11u);
REQUIRE(not str.empty());
str.erase(str.end() - 1, str.end());
REQUIRE_EQ((const char *)str, "hell");
REQUIRE_EQ(str.length(), 4u);
REQUIRE_EQ(str.size(), 11u);
REQUIRE(not str.empty());
}
TEST(string, cannot_be_erased_if_begin_after_end) {
string str("hello world");
str.erase(str.end(), str.begin());
REQUIRE_EQ((const char *)str, "hello world");
}
TEST(string, can_append_chars) {
string str;
for (auto i = 0u; i < 1024u; ++i) {
str.append('a');
REQUIRE_EQ(str.length(), i + 1);
}
}
TEST(string, can_reserve_size) {
string str;
str.reserve(1024);
REQUIRE_EQ(str.size(), 1024u);
for (auto i = 0u; i < 1023u; ++i) {
str.append('a');
REQUIRE_EQ(str.length(), i + 1);
REQUIRE_EQ(str.size(), 1024u);
}
str.append('c');
REQUIRE(str.size() != 1024u);
str.reserve(4096);
REQUIRE_EQ(str.size(), 4096u);
}
TEST(string, split_on_empty_string_should_return_empty_vec) {
string str;
const auto splitted = str.split();
REQUIRE_EQ(splitted.size(), 0u);
}
TEST(string, can_split) {
{
string str("some");
const auto splitted = str.split();
REQUIRE_EQ(splitted.size(), 1u);
REQUIRE_EQ((const char *)splitted[0], "some");
}
{
string str("some string");
const auto splitted = str.split();
REQUIRE_EQ(splitted.size(), 2u);
REQUIRE_EQ((const char *)splitted[0], "some");
REQUIRE_EQ((const char *)splitted[1], "string");
}
{
string str("some string ");
const auto splitted = str.split();
REQUIRE_EQ(splitted.size(), 2u);
REQUIRE_EQ((const char *)splitted[0], "some");
REQUIRE_EQ((const char *)splitted[1], "string");
}
{
string str("some string ");
const auto splitted = str.split();
REQUIRE_EQ(splitted.size(), 2u);
REQUIRE_EQ((const char *)splitted[0], "some");
REQUIRE_EQ((const char *)splitted[1], "string");
}
{
string str(" some string ");
const auto splitted = str.split();
REQUIRE_EQ(splitted.size(), 2u);
REQUIRE_EQ((const char *)splitted[0], "some");
REQUIRE_EQ((const char *)splitted[1], "string");
}
{
string str(" some string ");
const auto splitted = str.split();
REQUIRE_EQ(splitted.size(), 2u);
REQUIRE_EQ((const char *)splitted[0], "some");
REQUIRE_EQ((const char *)splitted[1], "string");
}
{
string str(" some string ");
const auto splitted = str.split();
REQUIRE_EQ(splitted.size(), 2u);
REQUIRE_EQ((const char *)splitted[0], "some");
REQUIRE_EQ((const char *)splitted[1], "string");
}
{
string str(" some other string ");
const auto splitted = str.split();
REQUIRE_EQ(splitted.size(), 3u);
REQUIRE_EQ((const char *)splitted[0], "some");
REQUIRE_EQ((const char *)splitted[1], "other");
REQUIRE_EQ((const char *)splitted[2], "string");
}
}
| Mrokkk/yacppl | tests/string.cpp | C++ | mit | 6,613 |
module.exports = {
entry: {
'public/js/bundle.js': ['./index.js'],
},
output: {
filename: '[name]',
},
devtool: 'eval',
module: {
loaders: [
{
test: /.js$/,
exclude: /node_modules/,
loaders: ['babel'],
}
]
}
}
| LegitTalon/js-dedupe | webpack.config.js | JavaScript | mit | 276 |
// Copyright (c) 2014-2015 The AsturCoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "asturcoinamountfield.h"
#include "asturcoinunits.h"
#include "guiconstants.h"
#include "qvaluecombobox.h"
#include <QApplication>
#include <QDoubleSpinBox>
#include <QHBoxLayout>
#include <QKeyEvent>
#include <qmath.h> // for qPow()
AsturCoinAmountField::AsturCoinAmountField(QWidget *parent) :
QWidget(parent),
amount(0),
currentUnit(-1)
{
nSingleStep = 100000; // satoshis
amount = new QDoubleSpinBox(this);
amount->setLocale(QLocale::c());
amount->installEventFilter(this);
amount->setMaximumWidth(170);
QHBoxLayout *layout = new QHBoxLayout(this);
layout->addWidget(amount);
unit = new QValueComboBox(this);
unit->setModel(new AsturCoinUnits(this));
layout->addWidget(unit);
layout->addStretch(1);
layout->setContentsMargins(0,0,0,0);
setLayout(layout);
setFocusPolicy(Qt::TabFocus);
setFocusProxy(amount);
// If one if the widgets changes, the combined content changes as well
connect(amount, SIGNAL(valueChanged(QString)), this, SIGNAL(textChanged()));
connect(unit, SIGNAL(currentIndexChanged(int)), this, SLOT(unitChanged(int)));
// Set default based on configuration
unitChanged(unit->currentIndex());
}
void AsturCoinAmountField::setText(const QString &text)
{
if (text.isEmpty())
amount->clear();
else
amount->setValue(text.toDouble());
}
void AsturCoinAmountField::clear()
{
amount->clear();
unit->setCurrentIndex(0);
}
bool AsturCoinAmountField::validate()
{
bool valid = true;
if (amount->value() == 0.0)
valid = false;
else if (!AsturCoinUnits::parse(currentUnit, text(), 0))
valid = false;
else if (amount->value() > AsturCoinUnits::maxAmount(currentUnit))
valid = false;
setValid(valid);
return valid;
}
void AsturCoinAmountField::setValid(bool valid)
{
if (valid)
amount->setStyleSheet("");
else
amount->setStyleSheet(STYLE_INVALID);
}
QString AsturCoinAmountField::text() const
{
if (amount->text().isEmpty())
return QString();
else
return amount->text();
}
bool AsturCoinAmountField::eventFilter(QObject *object, QEvent *event)
{
if (event->type() == QEvent::FocusIn)
{
// Clear invalid flag on focus
setValid(true);
}
else if (event->type() == QEvent::KeyPress || event->type() == QEvent::KeyRelease)
{
QKeyEvent *keyEvent = static_cast<QKeyEvent *>(event);
if (keyEvent->key() == Qt::Key_Comma)
{
// Translate a comma into a period
QKeyEvent periodKeyEvent(event->type(), Qt::Key_Period, keyEvent->modifiers(), ".", keyEvent->isAutoRepeat(), keyEvent->count());
QApplication::sendEvent(object, &periodKeyEvent);
return true;
}
}
return QWidget::eventFilter(object, event);
}
QWidget *AsturCoinAmountField::setupTabChain(QWidget *prev)
{
QWidget::setTabOrder(prev, amount);
QWidget::setTabOrder(amount, unit);
return unit;
}
qint64 AsturCoinAmountField::value(bool *valid_out) const
{
qint64 val_out = 0;
bool valid = AsturCoinUnits::parse(currentUnit, text(), &val_out);
if (valid_out)
{
*valid_out = valid;
}
return val_out;
}
void AsturCoinAmountField::setValue(qint64 value)
{
setText(AsturCoinUnits::format(currentUnit, value));
}
void AsturCoinAmountField::setReadOnly(bool fReadOnly)
{
amount->setReadOnly(fReadOnly);
unit->setEnabled(!fReadOnly);
}
void AsturCoinAmountField::unitChanged(int idx)
{
// Use description tooltip for current unit for the combobox
unit->setToolTip(unit->itemData(idx, Qt::ToolTipRole).toString());
// Determine new unit ID
int newUnit = unit->itemData(idx, AsturCoinUnits::UnitRole).toInt();
// Parse current value and convert to new unit
bool valid = false;
qint64 currentValue = value(&valid);
currentUnit = newUnit;
// Set max length after retrieving the value, to prevent truncation
amount->setDecimals(AsturCoinUnits::decimals(currentUnit));
amount->setMaximum(qPow(10, AsturCoinUnits::amountDigits(currentUnit)) - qPow(10, -amount->decimals()));
amount->setSingleStep((double)nSingleStep / (double)AsturCoinUnits::factor(currentUnit));
if (valid)
{
// If value was valid, re-place it in the widget with the new unit
setValue(currentValue);
}
else
{
// If current value is invalid, just clear field
setText("");
}
setValid(true);
}
void AsturCoinAmountField::setDisplayUnit(int newUnit)
{
unit->setValue(newUnit);
}
void AsturCoinAmountField::setSingleStep(qint64 step)
{
nSingleStep = step;
unitChanged(unit->currentIndex());
}
| KaTXi/ASTC | src/qt/asturcoinamountfield.cpp | C++ | mit | 4,947 |
<html>
<head>
<title>Basic</title>
<meta name="description" content="Large red-brown mountain terrain with <a-mountain>">
<meta property="og:image" content="https://raw.githubusercontent.com/ngokevin/kframe/master/components/mountain/examples/basic/preview.png"></meta>
<script src="../build.js"></script>
</head>
<body>
<a-scene>
<a-mountain></a-mountain>
<a-sky color="#5F818A"></a-sky>
</a-scene>
<!--githubcorner-->
<a href="https://github.com/ngokevin/kframe/tree/master/components/mountain/examples/basic/" class="github-corner">
<svg width="80" height="80" viewBox="0 0 250 250" style="fill: #111; color: #EFEFEF; position: fixed; bottom: 0; border: 0; left: 0; transform: rotate(180deg); opacity: 0.8">
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path>
</svg>
</a>
<style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}
</style>
<!--endgithubcorner-->
</body>
</html>
| JGL/APieceOfArtAsBigAsIndia | docs/kframe/components/mountain/examples/basic/index.html | HTML | mit | 2,129 |
using System.Collections.Generic;
using System.Linq;
namespace ComputerAlgebra
{
public static class Combinatorics
{
/// <summary>
/// Enumerate the permutations of x.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="n"></param>
/// <returns></returns>
public static IEnumerable<IList<T>> Permutations<T>(this IEnumerable<T> n)
{
List<T> l = n.ToList();
return Permutations(l, l.Count);
}
private static IEnumerable<IList<T>> Permutations<T>(IList<T> n, int r)
{
if (r == 1)
{
yield return n;
}
else
{
for (int i = 0; i < r; i++)
{
foreach (var j in Permutations(n, r - 1))
yield return j;
T t = n[r - 1];
n.RemoveAt(r - 1);
n.Insert(0, t);
}
}
}
/// <summary>
/// Enumerate the combinations of n of length r.
/// From: http://www.extensionmethod.net/csharp/ienumerable-t/combinations
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="n"></param>
/// <param name="r"></param>
/// <returns></returns>
public static IEnumerable<IEnumerable<T>> Combinations<T>(this IEnumerable<T> n, int r)
{
if (r == 0)
return new[] { new T[0] };
else
return n.SelectMany((e, i) => n.Skip(i + 1).Combinations(r - 1).Select(c => new[] { e }.Concat(c)));
}
}
}
| dsharlet/ComputerAlgebra | ComputerAlgebra/Utils/Combinatorics.cs | C# | mit | 1,703 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SimpleStatePattern
{
public class StateB : StateBase
{
char currentLetter = 'B';
public void Change(Context context)
{
Console.Write(System.Environment.NewLine + "The current letter is: " + currentLetter + System.Environment.NewLine);
Console.WriteLine("Inc:1;Dec:2;Rst;3: ");
ConsoleKeyInfo name = Console.ReadKey();
switch (name.KeyChar)
{
case '1':
context.State = new StateC();
break;
case '2':
context.State = new StateA();
break;
case '3':
context.State = new StateA();
break;
default:
context.State = new StateB();
break;
}
}
}
}
| cbycraft/CarlRepo | learning/CS/SimpleStatePattern/SimpleStatePattern/SimpleStatePattern/StateB.cs | C# | mit | 1,007 |
package main
import (
"bytes"
"os"
"os/exec"
)
func panicOn(err error) {
if err != nil {
panic(err)
}
}
func FileExists(name string) bool {
fi, err := os.Stat(name)
if err != nil {
return false
}
if fi.IsDir() {
return false
}
return true
}
func DirExists(name string) bool {
fi, err := os.Stat(name)
if err != nil {
return false
}
if fi.IsDir() {
return true
}
return false
}
func Run(dir string, exe string, arg ...string) (stdout *bytes.Buffer, stderr *bytes.Buffer, err error) {
cmd := exec.Command(exe, arg...)
var errbuf bytes.Buffer
var outbuf bytes.Buffer
cmd.Dir = dir
cmd.Stderr = &errbuf
cmd.Stdout = &outbuf
err = cmd.Run()
return &outbuf, &errbuf, err
}
| glycerine/geist | util.go | GO | mit | 707 |
import { expect } from 'chai'
import {List, Map} from 'immutable'
import categories from '../src/reducer.js'
describe("Category Test", () => {
it("should add a category", () => {
let initialState = Map({
user: 'Skye'
})
let expectedState = Map({
user: 'Skye',
categories: Map({
'Love': 0
})
})
let result = categories(initialState, {type:'ADD_CATEGORY', value:'Love'})
expect(result).to.eql(expectedState)
})
it("adding a category does not modify previous state", () => {
let initialState = Map({
user: 'Skye',
categories: Map({
'Love': 90
})
})
let expectedState = Map({
user: 'Skye',
categories: Map({
'Love': 90,
'Communication': 0
})
})
let result = categories(initialState, {type:'ADD_CATEGORY', value:'Communication'})
expect(result).to.eql(expectedState)
expect(initialState).to.eql(Map({
user: 'Skye',
categories: Map({
'Love': 90
})
}))
})
it("should rate a category", () => {
let initialState = Map({
user: 'Skye',
categories: Map({
'Love': 0
})
})
let expectedState = Map({
user: 'Skye',
categories: Map({
'Love': 90
})
})
let result = categories(initialState, { type:'RATE_CATEGORY', name:'Love', value:90 })
expect(result).to.eql(Map({
user: 'Skye',
categories: Map({
'Love': 90
})
}))
})
it("should stop adding categories", () => {
let initialState = Map({
user: 'Skye',
categories: Map({
'Love': 90,
'Communication': 80,
'Fun' : 100
})
})
let expectedState = Map({
user: 'Skye',
categories: Map({
'Love': 90,
'Communication': 80,
'Fun' : 100
}),
categories_finished: true
})
let result = categories(initialState, {type:'FINISH_CATEGORIES', value: true})
expect(result).to.eql(expectedState)
})
})
| sheepfunk/poly-polygons | test/category_test.js | JavaScript | mit | 1,827 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ky" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About SweetStake</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+39"/>
<source><b>SweetStake</b> version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Copyright © 2009-2014 The Bitcoin developers
Copyright © 2012-2014 The NovaCoin developers
Copyright © 2015 The SweetStake developers</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young ([email protected]) and UPnP software written by Thomas Bernard.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>Double-click to edit address or label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation>Жаң даректи жасоо</translation>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-46"/>
<source>These are your SweetStake addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+60"/>
<source>&Copy Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a SweetStake address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-14"/>
<source>Verify a message to ensure it was signed with a specified SweetStake address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>Ө&чүрүү</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+65"/>
<source>Copy &Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>&Edit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+250"/>
<source>Export Address Book Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+144"/>
<source>Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Дарек</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>(аты жок)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+33"/>
<source>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>For staking only</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+35"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR COINS</b>!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+103"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-133"/>
<location line="+60"/>
<source>Wallet encrypted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-58"/>
<source>SweetStake will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your coins from being stolen by malware infecting your computer.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+44"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-56"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<location line="+50"/>
<source>The supplied passphrases do not match.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-38"/>
<source>Wallet unlock failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<location line="+12"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+282"/>
<source>Sign &message...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+251"/>
<source>Synchronizing with network...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-319"/>
<source>&Overview</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>&Transactions</source>
<translation>&Транзакциялар</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>&Address Book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit the list of stored addresses and labels</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-13"/>
<source>&Receive coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show the list of addresses for receiving payments</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-7"/>
<source>&Send coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>E&xit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Show information about SweetStake</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>&Encrypt Wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+259"/>
<source>~%n block(s) remaining</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-256"/>
<source>&Export...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-64"/>
<source>Send coins to a SweetStake address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+47"/>
<source>Modify configuration options for SweetStake</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-14"/>
<source>Encrypt or decrypt wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup wallet to another location</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>&Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>&Verify message...</source>
<translation>Билдирүүнү &текшерүү...</translation>
</message>
<message>
<location line="-202"/>
<source>SweetStake</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet</source>
<translation>Капчык</translation>
</message>
<message>
<location line="+180"/>
<source>&About SweetStake</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Unlock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>&Lock Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Lock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>&File</source>
<translation>&Файл</translation>
</message>
<message>
<location line="+8"/>
<source>&Settings</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>&Help</source>
<translation>&Жардам</translation>
</message>
<message>
<location line="+12"/>
<source>Tabs toolbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Actions toolbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+9"/>
<source>[testnet]</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<location line="+60"/>
<source>SweetStake client</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+75"/>
<source>%n active connection(s) to SweetStake network</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+40"/>
<source>Downloaded %1 blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+413"/>
<source>Staking.<br>Your weight is %1<br>Network weight is %2<br>Expected time to earn reward is %3</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Not staking because wallet is locked</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is syncing</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because you don't have mature coins</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-403"/>
<source>%n second(s) ago</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="-312"/>
<source>About SweetStake card</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show information about SweetStake card</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>&Unlock Wallet...</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+297"/>
<source>%n minute(s) ago</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s) ago</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s) ago</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Up to date</source>
<translation>Жаңыланган</translation>
</message>
<message>
<location line="+7"/>
<source>Catching up...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Last received block was generated %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Sent transaction</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Incoming transaction</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+100"/>
<location line="+15"/>
<source>URI handling</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-15"/>
<location line="+15"/>
<source>URI can not be parsed! This can be caused by an invalid SweetStake address or malformed URI parameters.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Backup Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+76"/>
<source>%n second(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n minute(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+18"/>
<source>Not staking</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../bitcoin.cpp" line="+109"/>
<source>A fatal error occurred. SweetStake can no longer continue safely and will quit.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+90"/>
<source>Network Alert</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>CoinControlDialog</name>
<message>
<location filename="../forms/coincontroldialog.ui" line="+14"/>
<source>Coin Control</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Quantity:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Bytes:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+48"/>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Priority:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+48"/>
<source>Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="+551"/>
<source>no</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="+51"/>
<source>After Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Change:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+69"/>
<source>(un)select all</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Tree mode</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>List mode</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+45"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Address</source>
<translation>Дарек</translation>
</message>
<message>
<location line="+5"/>
<source>Date</source>
<translation>Дата</translation>
</message>
<message>
<location line="+5"/>
<source>Confirmations</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Priority</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="-515"/>
<source>Copy address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<location line="+26"/>
<source>Copy amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-25"/>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>Copy quantity</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Copy fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+317"/>
<source>highest</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>high</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>medium-high</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>low-medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>low</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>lowest</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+155"/>
<source>DUST</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>yes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>This label turns red, if the transaction size is bigger than 10000 bytes.
This means a fee of at least %1 per kb is required.
Can vary +/- 1 Byte per input.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transactions with higher priority get more likely into a block.
This label turns red, if the priority is smaller than "medium".
This means a fee of at least %1 per kb is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if any recipient receives an amount smaller than %1.
This means a fee of at least %2 is required.
Amounts below 0.546 times the minimum relay fee are shown as DUST.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if the change is smaller than %1.
This means a fee of at least %2 is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<location line="+66"/>
<source>(no label)</source>
<translation>(аты жок)</translation>
</message>
<message>
<location line="-9"/>
<source>change from %1 (%2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>(change)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address book entry</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Address</source>
<translation>&Дарек</translation>
</message>
<message>
<location line="+10"/>
<source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+20"/>
<source>New receiving address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid SweetStake address.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+420"/>
<location line="+12"/>
<source>sweetstake-qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB. Fee 0.01 recommended.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Reserved amount does not participate in staking and is therefore spendable at any time.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Reserve</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Automatically start SweetStake after logging in to the system.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Start SweetStake on system login</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Detach block and address databases at shutdown. This means they can be moved to another data directory, but it slows down shutdown. The wallet is always detached.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Detach databases at shutdown</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>&Network</source>
<translation>&Тармак</translation>
</message>
<message>
<location line="+6"/>
<source>Automatically open the SweetStake client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Connect to the SweetStake network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Proxy &IP:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Port:</source>
<translation>&Порт:</translation>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation>&Терезе</translation>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting SweetStake.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Whether to show SweetStake addresses in the transaction list or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Whether to show coin control features or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Display coin &control features (experts only!)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&OK</source>
<translation>&Жарайт</translation>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation>&Жокко чыгаруу</translation>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+55"/>
<source>default</source>
<translation>жарыяланбаган</translation>
</message>
<message>
<location line="+149"/>
<location line="+9"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting SweetStake.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+33"/>
<location line="+231"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the SweetStake network after a connection is established, but this process has not completed yet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-160"/>
<source>Stake:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-107"/>
<source>Wallet</source>
<translation>Капчык</translation>
</message>
<message>
<location line="+49"/>
<source>Spendable:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current spendable balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>Immature:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Total:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current total balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+46"/>
<source><b>Recent transactions</b></source>
<translation type="unfinished"/>
</message>
<message>
<location line="-108"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>Total of coins that was staked, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../overviewpage.cpp" line="+113"/>
<location line="+1"/>
<source>out of sync</source>
<translation>синхрондоштурулган эмес</translation>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+62"/>
<source>Error encoding URI into QR Code.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+23"/>
<location line="+26"/>
<location line="+23"/>
<location line="+23"/>
<location line="+36"/>
<location line="+53"/>
<location line="+23"/>
<location line="+23"/>
<location filename="../rpcconsole.cpp" line="+348"/>
<source>N/A</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-217"/>
<source>Client version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation>&Ачуу</translation>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Show the sweetstake-qt help message to get a list with possible SweetStake command-line options.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation>&Консоль</translation>
</message>
<message>
<location line="-260"/>
<source>Build date</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-104"/>
<source>SweetStake - Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>SweetStake Core</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Open the SweetStake debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+102"/>
<source>Clear console</source>
<translation>Консолду тазалоо</translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-33"/>
<source>Welcome to the SweetStake RPC console.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="+14"/>
<location filename="../sendcoinsdialog.cpp" line="+182"/>
<location line="+5"/>
<location line="+5"/>
<location line="+5"/>
<location line="+6"/>
<location line="+5"/>
<location line="+5"/>
<source>Send Coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+76"/>
<source>Coin Control Features</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Inputs...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>automatically selected</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Insufficient funds!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+77"/>
<source>Quantity:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<location line="+35"/>
<source>0</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-19"/>
<source>Bytes:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<location line="+86"/>
<location line="+86"/>
<location line="+32"/>
<source>0.00 hack</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-191"/>
<source>Priority:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>no</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>After Fee:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>Change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+50"/>
<source>custom change address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+106"/>
<source>Send to multiple recipients at once</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+20"/>
<source>Remove all transaction fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation>&Бардыгын тазалоо</translation>
</message>
<message>
<location line="+28"/>
<source>Balance:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>123.456 hack</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Confirm the send action</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation>&Жөнөтүү</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-173"/>
<source>Enter a SweetStake address (e.g. ShuwefdniqmkeigyesHfegoeEgwqgNzknW)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Copy quantity</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+86"/>
<source><b>%1</b> to %2 (%3)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source> and </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The recipient address is not valid, please recheck.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+251"/>
<source>WARNING: Invalid SweetStake address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>(no label)</source>
<translation>(аты жок)</translation>
</message>
<message>
<location line="+4"/>
<source>WARNING: unknown change address</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>A&mount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<location filename="../sendcoinsentry.cpp" line="+25"/>
<source>Enter a label for this address to add it to your address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>&Label:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>The address to send the payment to (e.g. ShuwefdniqmkeigyesHfegoeEgwqgNzknW)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Choose address from address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Alt+A</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Paste address from clipboard</source>
<translation>Даректи алмашуу буферинен коюу</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Remove this recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a SweetStake address (e.g. ShuwefdniqmkeigyesHfegoeEgwqgNzknW)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+124"/>
<source>&Sign Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-118"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. ShuwefdniqmkeigyesHfegoeEgwqgNzknW)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+203"/>
<source>Choose an address from the address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-193"/>
<location line="+203"/>
<source>Alt+A</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-193"/>
<source>Paste address from clipboard</source>
<translation>Даректи алмашуу буферинен коюу</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Enter the message you want to sign here</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>Copy the current signature to the system clipboard</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this SweetStake address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all sign message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation>&Бардыгын тазалоо</translation>
</message>
<message>
<location line="-87"/>
<location line="+70"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-64"/>
<source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. ShuwefdniqmkeigyesHfegoeEgwqgNzknW)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified SweetStake address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all verify message fields</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a SweetStake address (e.g. ShuwefdniqmkeigyesHfegoeEgwqgNzknW)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Enter SweetStake signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-81"/>
<location line="+8"/>
<location line="+73"/>
<location line="+8"/>
<source>Please check the address and try again.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+19"/>
<source>Open until %1</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-2"/>
<source>Open for %n block(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+8"/>
<source>conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1/offline</source>
<translation>%1/тармакта эмес</translation>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation>Дата</translation>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation>Билдирүү</translation>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 510 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Inputs</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-211"/>
<source>, has not been successfully broadcast yet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>unknown</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="+14"/>
<source>Transaction details</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="+226"/>
<source>Date</source>
<translation>Дата</translation>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Дарек</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+60"/>
<source>Open until %1</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+12"/>
<source>Confirmed (%1 confirmations)</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-15"/>
<source>Open for %n more block(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Confirming (%1 of %2 recommended confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Immature (%1 confirmations, will be available after %2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+42"/>
<source>Received with</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+38"/>
<source>(n/a)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+190"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+55"/>
<location line="+16"/>
<source>All</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+144"/>
<source>Export Transaction Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Confirmed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation>Дата</translation>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>Дарек</translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+100"/>
<source>Range:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+206"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+33"/>
<source>SweetStake version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Send command to -server or sweetstaked</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>List commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Get help for a command</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify configuration file (default: SweetStake.conf)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Specify pid file (default: sweetstaked.pid)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify wallet file (within data directory)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set database disk log size in megabytes (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Listen for connections on <port> (default: 15714 or testnet: 25714)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Specify your own public address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Bind to given address. Use [host]:port notation for IPv6</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Stake your coins to support network and gain reward (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Detach block and address databases. Increases shutdown time (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+109"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-87"/>
<source>Listen for JSON-RPC connections on <port> (default: 15715 or testnet: 25715)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-11"/>
<source>Accept command line and JSON-RPC commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+101"/>
<source>Error: Transaction creation failed </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>Error: Wallet locked, unable to create transaction </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-8"/>
<source>Importing blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Importing bootstrap blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-88"/>
<source>Run in the background as a daemon and accept commands</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use the test network</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-24"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-38"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+117"/>
<source>Error initializing database environment %s! To recover, BACKUP THAT DIRECTORY, then remove everything from it except for wallet.dat.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-20"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+61"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong SweetStake will not work properly.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-31"/>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-18"/>
<source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-30"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Block creation options:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-62"/>
<source>Connect only to the specified node(s)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+94"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-90"/>
<source>Find peers using DNS lookup (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync checkpoints policy (default: strict)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+83"/>
<source>Invalid -tor address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Invalid amount for -reservebalance=<amount></source>
<translation type="unfinished"/>
</message>
<message>
<location line="-82"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-16"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Output extra debugging information. Implies all other -debug* options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Output extra network debugging information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Prepend debug output with timestamp</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-74"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Send trace/debug info to debugger</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-42"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+109"/>
<source>Unable to sign checkpoint, wrong checkpointkey?
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-80"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-25"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+42"/>
<source>Username for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+47"/>
<source>Verifying database integrity...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+57"/>
<source>WARNING: syncronized checkpoint violation detected, but skipped!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Warning: Disk space is low!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-48"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-54"/>
<source>Password for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-84"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=SweetStakerpc
rpcpassword=%s
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
It is also recommended to set alertnotify so you are notified of problems;
for example: alertnotify=echo %%s | mail -s "SweetStake Alert" [email protected]
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Find peers using internet relay chat (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync time with other nodes. Disable if time on your system is precise e.g. syncing with NTP (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Require a confirmations for change (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Enforce transaction scripts to use canonical PUSH operators (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Upgrade wallet to latest format</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 2500, 0 = all)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-6, default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Imports blocks from external blk000?.dat file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Server certificate file (default: server.cert)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+53"/>
<source>Error: Wallet unlocked for staking only, unable to create transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>WARNING: Invalid checkpoint found! Displayed transactions may not be correct! You may need to upgrade, or notify developers.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-158"/>
<source>This help message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+95"/>
<source>Wallet %s resides outside data directory %s.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot obtain a lock on data directory %s. SweetStake is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-98"/>
<source>SweetStake</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+140"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-130"/>
<source>Connect through socks proxy</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+122"/>
<source>Loading addresses...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-15"/>
<source>Error loading blkindex.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Error loading wallet.dat: Wallet requires newer version of SweetStake</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Wallet needed to be rewritten: restart SweetStake to complete</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-16"/>
<source>Invalid -proxy address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-24"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+44"/>
<source>Error: could not start node</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Invalid amount</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Insufficient funds</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-34"/>
<source>Loading block index...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-103"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+122"/>
<source>Unable to bind to %s on this computer. SweetStake is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-97"/>
<source>Fee per KB to add to transactions you send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+55"/>
<source>Invalid amount for -mininput=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Loading wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Cannot downgrade wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot initialize keypool</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot write default address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Rescanning...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Done loading</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-167"/>
<source>To use the %s option</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>Error</source>
<translation>Ката</translation>
</message>
<message>
<location line="+6"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation type="unfinished"/>
</message>
</context>
</TS> | SweetStake/SweetStake | src/qt/locale/bitcoin_ky.ts | TypeScript | mit | 107,903 |
// Copyright (c) 2016 Irfan Adilovic
// This software is licensed under the terms of the MIT license.
// See LICENSE for the text of the license.
#include <iostream>
#include <iomanip>
#include <limits>
#include <stdint.h>
#include <cstdio>
#include <typeinfo>
#include <inttypes.h>
using std::cout;
using std::cerr;
using std::endl;
using std::bad_cast;
#undef assert // for testability
//#define assert(e) ((e) ? (void)0 : ((void)printf ("%s:%u: failed assertion `%s'\n", __FILE__, __LINE__, #e)))
#define assert(e) ((e) ? (void)0 : ((void)printf ("failed assertion `%s'\n", #e)))
#define assert_op(e1, op, e2) ((e1) op (e2) ? (void)0 : ((void)(cout << "failed assertion `" << #e1 << " " #op " " << #e2 << ": [" << (e1) << "] isn't " #op " [" << (e2) << "]\n")))
#define assert_eq(e1, e2) assert_op(e1, ==, e2)
#define assert_ne(e1, e2) assert_op(e1, !=, e2)
#include "safe_ops.h"
using namespace safe_ops;
#define MAX(T) numeric_limits_compat<T>::max()
#define MIN(T) numeric_limits_compat<T>::lowest()
#ifdef SAFE_USE_INT128
std::ostream& operator<<(std::ostream& os, uint128_t t) {
os << std::hex << "0x" << std::setw(16) <<std::setfill('0') << (uint64_t)(t>>64);
return os << std::setw(16) << std::setfill('0') << (uint64_t)(t) << std::dec;
}
std::ostream& operator<<(std::ostream& os, int128_t t) {
return os << (uint128_t)t;
}
#endif
#if __cplusplus < 201103L
struct Lambda {
void operator ()(int result) { cout << "lambda: " << (result < 0 ? "under" : "over") << "flow detected\n"; };
} lambda;
#endif
const char *progname = "";
struct FakeLogger {
void log(const char *level, const char *str) { printf("[log]\t%s\t%s\t%s\n", progname, level, str); }
};
int main(int, char **argv) {
progname = argv[0];
printf(" If a 'safe' test were to fail, the assertion text would contain 'safe(' and would be easy to identify. E.g.:\n");
assert(safe(1) > 2);
// precision tests
safe_ops::intmax_t intmax = MAX(safe_ops::intmax_t);
assert(safe(intmax-1) < safe((safe_ops::uintmax_t)(intmax))); // promotion to float/double due to signed/unsigned comparison
assert(safe(intmax-2)+1 < safe(intmax)); // promotion to float/double due to addition
#define assert_safe_eq(s, result) assert_eq((s).value(), result)
#define safe_arith_assert_impl(x, arith_op, y, z, nosafe_eq_op) \
assert_safe_eq(safe(x) arith_op y, z); \
assert_safe_eq(x arith_op safe(y), z); \
assert_op(x arith_op (y), nosafe_eq_op, (z))
#define safe_arith_assert(x, op, y, z, nosafe_eq_op) \
safe_arith_assert_impl(x, op, y, z, nosafe_eq_op)
#define safe_arith_assert_comm(x, op, y, z, nosafe_eq_op) \
safe_arith_assert_impl(x, op, y, z, nosafe_eq_op); \
safe_arith_assert_impl(y, op, x, z, nosafe_eq_op)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wtype-limits"
#define gen_safe_arith_tests_nomod(T1, T2, AddMultT, SubT, DivModT) \
safe_arith_assert_comm(MAX(T1), +, MAX(T2), (AddMultT)(MAX(T1)) + MAX(T2), !=); \
safe_arith_assert_comm(MIN(T1), +, MIN(T2), (AddMultT)(MIN(T1)) + MIN(T2), !=); \
safe_arith_assert( MIN(T1), -, MAX(T2), (SubT) (MIN(T1)) - MAX(T2), !=); \
safe_arith_assert( MAX(T1), -, MIN(T2), (SubT) (MAX(T1)) - MIN(T2), !=); \
safe_arith_assert_comm(MAX(T1), *, MAX(T2), (AddMultT)(MAX(T1)) * MAX(T2), !=); \
safe_arith_assert_comm(MIN(T1), *, MIN(T2), (AddMultT)(MIN(T1)) * MIN(T2), !=); \
safe_arith_assert( MIN(T1), /, (T2)1, (DivModT) (MIN(T1)) / (T2)1 , ==); \
safe_arith_assert( MAX(T1), /, (T2)-1, (DivModT) (MAX(T1)) / (T2)-1 , ==)
#define gen_safe_arith_tests(T1, T2, AddMultT, SubT, DivModT) \
gen_safe_arith_tests_nomod(T1, T2, AddMultT, SubT, DivModT); \
safe_arith_assert( MIN(T1), %, (T2)1, (DivModT) (MIN(T1)) % (T2)1 , ==); \
safe_arith_assert( MAX(T1), %, (T2)-1, (DivModT) (MAX(T1)) % (T2)-1 , ==)
// there will be cases where T2 is unsigned and div/mod with (unsigned)-1 is tested for.
// any failures there shall be ignored.
#define gen_safe_arith_tests_float2(T1, T2, AddMultT, SubT, DivModT) \
gen_safe_arith_tests_nomod(T1, T2, AddMultT, SubT, DivModT); \
safe_arith_assert( MIN(T1), /, (T2)1e-30, (DivModT) (MIN(T1)) / (T2)1e-30 , ==); \
safe_arith_assert( MAX(T1), /, (T2)-1e-30, (DivModT) (MAX(T1)) / (T2)-1e-30 , ==)
// the arithmetic tests generator states basically:
// 1) + and * shall be tested commutatively
// 2) +, * and - shall always fail to produce a mathematically correct result without safe_t
// 3) / and % shall always produce the same result as safe_t, which is assumed to be mathematically correct
// to fulfill 2), appropriate MIN/MAX values are always chosen to overflow non-safe_t calculations.
printf(" safe_arith test int/int: no asserts expected\n");
gen_safe_arith_tests(int, int, long, long, int);
printf(" safe_arith test unsigned/unsigned: 5 asserts expected, unsigned lowest()\n");
gen_safe_arith_tests(unsigned, unsigned, unsigned long, long, unsigned);
printf(" safe_arith test int/unsigned: 4 asserts expected, unsigned lowest() and negative division\n");
gen_safe_arith_tests(int, unsigned, long, long, long);
printf(" safe_arith test unsigned/int: 3 asserts expected, unsigned lowest() and negative division\n");
gen_safe_arith_tests(unsigned, int, long, long, long);
printf(" safe_arith test int/long: no asserts expected\n");
gen_safe_arith_tests(int, long, float, float, long);
printf(" safe_arith test long/int: no asserts expected\n");
gen_safe_arith_tests(long, int, float, float, long);
printf(" safe_arith test float/uint64_t: 8 asserts expected, int too small to make a difference and 0-multiplication\n");
gen_safe_arith_tests_nomod(float, uint64_t, double, double, float);
printf(" safe_arith test uint64_t/float: 9 asserts expected, int too small to make a difference, 0-multiplication and non-zero division by small number\n");
gen_safe_arith_tests_float2(uint64_t, float, double, double, double);
printf(" safe_arith test float/float: 2 asserts expected, non-zero division by small number\n");
gen_safe_arith_tests_float2(float, float, double, double, double);
printf(" safe_arith test double/double: 2 asserts expected, non-zero division by small number\n");
gen_safe_arith_tests_float2(double, double, long double, long double, long double);
#ifdef SAFE_USE_INT128
printf(" safe_arith test float/int128_t: no asserts expected\n");
gen_safe_arith_tests_nomod(float, int128_t, double, double, float); // float/int128 fits in float
printf(" safe_arith test int128_t/float: 2 asserts expected, non-zero division by small number\n");
gen_safe_arith_tests_float2(int128_t, float, double, double, double);
printf(" safe_arith test float/uint128_t: 6 asserts expected, unsigned lowest ops and unsigned -1 division\n");
gen_safe_arith_tests_nomod(float, uint128_t, double, double, double); // float/uint128 fits in double
printf(" safe_arith test uint128_t/float: 7 asserts expected, unsigned lowest ops and divisions\n");
gen_safe_arith_tests_float2(uint128_t, float, double, double, double);
#endif
#pragma GCC diagnostic pop
// ad-hoc cross-functional test: safe_arith + policy_throw + safe-safe operator
try {
assert(safe(1) + safe(1) == safe(2)); // test both cmp and arith safe-safe operators
(int)(safe(MAX(int)).pthrow() + safe(1).passert());
} catch (...) {
cout << "ad-hoc test 'policy vs operator+': caught expected bad_cast: MAX(int) + 1 is no longer an int\n";
}
// cout << "# Testing " << x << ' ' << #op << ' ' << y << endl;
#define safe_cmp_assert_impl(x, op, y) \
assert(x op y); \
assert(safe(x) op y); \
assert(x op safe(y));
#define safe_cmp_assert(x, op, y, rev_op) \
safe_cmp_assert_impl(x, op, y) \
safe_cmp_assert_impl(y, rev_op, x)
#define safe_cmp_assert2(x, op, op2, y, rev_op, rev_op2) \
safe_cmp_assert(x, op, y, rev_op) \
safe_cmp_assert(x, op2, y, rev_op2)
cerr << "sizeof(int): " << sizeof(int) << endl;
cerr << "sizeof(long): " << sizeof(long) << endl;
cerr << std::boolalpha;
#define cerr_trait(type, trait) \
cerr << "std::" #trait "<" #type ">::value : " << std::trait<type>::value << endl
#define cerr_traits(type) \
cerr << "sizeof(" #type "): " << sizeof(type) << endl; \
cerr_trait(type, is_signed); \
cerr_trait(type, is_unsigned)
// cerr_traits(long long);
// cerr_traits(unsigned long long);
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wsign-compare"
printf(" expecting 1u >/>= int8_t(-1) to fail, but safe variants to succeed...\n");
safe_cmp_assert2(1u, >, >=, int8_t(-1), <, <=);
printf(" expecting 0u >/>= -1 to fail, but safe variants to succeed...\n");
safe_cmp_assert2(0u, >, >=, -1, <, <=);
printf(" expecting 1ul >/>= -1 to fail, but safe variants to succeed...\n");
safe_cmp_assert2(1ul, >, >=, -1, <, <=);
printf(" expecting 4294967296ul >/>= -1 to fail, but safe variants to succeed...\n");
safe_cmp_assert2(4294967296ul, >, >=, -1, <, <=);
printf(" expecting 1ul >/>= -1l to fail, but safe variants to succeed...\n");
safe_cmp_assert2(1ul, >, >=, -1l, <, <=);
printf(" expecting 2147483648u >/!= -2147483648 to fail, but safe variants to succeed...\n");
safe_cmp_assert2(2147483648u, >, !=, (-2147483647-1), <, !=);
//NB: http://stackoverflow.com/questions/35130890/understanding-231-and-231-integer-promotion
printf(" expecting 4294967295u >/!= -1 to fail, but safe variants to succeed...\n");
safe_cmp_assert2(4294967295u, >, !=, -1, <, !=);
#pragma GCC diagnostic pop
printf(" no failures expected in any of the floating point comparisons (neither native nor 'safe')...\n");
safe_cmp_assert2(MAX(float), <, <=, MAX(double), >, >=);
safe_cmp_assert2(MAX(double), <, <=, MAX(long double), >, >=);
#ifdef SAFE_USE_INT128
safe_cmp_assert2(MAX(int128_t), <, <=, MAX(float), >, >=);
// special casing:
safe_cmp_assert2(MAX(uint128_t), >, >=, MAX(float), <, <=);
// conversion to float yields inf so it works mathematically correct
safe_cmp_assert2(MAX(uint128_t), <, <=, MAX(double), >, >=);
safe_cmp_assert2(MAX(uint128_t), <, <=, MAX(long double), >, >=);
#endif
printf("safe_cmp tests passed\n");
int i;
int result = 0;
const long lmax = MAX(long);
const long lmin = MIN(long);
printf(" safe_cast_assert: expecting two asserts...\n");
i = safe(lmax).passert(); // usage through safe generator + .policy modifier
i = safe_t<long, policy_assert>(lmin); // usage through direct safe_t instantiation
i = safe_cast_assert<int>(0l); // usage through safe_cast_* helpers
printf(" safe_cast_result: expecting no asserts...\n");
result = 0;
i = safe(lmax).presult(&result);
assert(result == 1);
result = 0;
i = safe_t<long, policy_result, int*>(lmin, &result);
assert(result == -1);
result = 0;
safe_cast_result<int>(0l, &result);
assert(result == 0); // actually: unmodified
printf(" safe_cast_lambda: expecting two 'lambda: ...' messages...\n");
#if __cplusplus >= 201103L
auto lambda = [](int result){ cout << "lambda: " << (result < 0 ? "under" : "over") << "flow detected\n"; };
i = safe(lmax).pexec(lambda);
i = safe_t<long, policy_exec, decltype(lambda)>(lmin, lambda);
#else
// look before int main(), in global scope, there is a conditional definition of lambda old-style
i = safe(lmax).pexec(lambda);
i = safe_t<long, policy_exec, Lambda>(lmin, lambda);
#endif
safe_cast_exec<int>(0l, lambda);
printf(" safe_cast_log: expecting two log entries...\n");
FakeLogger logger;
i = safe(lmax).plog(&logger);
i = safe_t<long, policy_log, FakeLogger*>(lmin, &logger);
safe_cast_log<int>(0l, &logger);
printf(" safe_cast_throw: expecting two bad_casts...\n");
try {
i = safe(lmax).pthrow();
assert("unreachable after throw" == NULL);
} catch (bad_cast &) {
printf ("bad_cast caught due to overflow\n");
}
try {
i = safe_t<long, policy_throw>(lmin);
assert("unreachable after throw" == NULL);
} catch (bad_cast &) {
printf ("bad_cast caught due to underflow\n");
}
safe_cast_throw<int>(0l);
(void)i; // silence compiler warnings
printf("non-truncating safe_cast functional tests passed\n");
printf("truncating full-coverage tests following:\n");
#define generic_expect(T1, T2, SmallerPositive, SmallerNegative) \
assert_eq((T1)safe((T2)(0)), 0); \
assert_eq((T1)safe(MAX(T2)), (T1)MAX(SmallerPositive)); \
assert_eq((T1)safe(MIN(T2)), (T1)MIN(SmallerNegative)); \
assert_eq((T1)MAX(T2), (T1)MAX(SmallerPositive)); \
assert_eq((T1)MIN(T2), (T1)MIN(SmallerNegative))
// the latter two assertions will obviously produce expected failures
#define expect_smaller_larger(Smaller, Larger) generic_expect(Smaller, Larger, Smaller, Smaller)
#define expect_larger_smaller(Larger, Smaller) generic_expect(Larger, Smaller, Smaller, Smaller)
#define expect_lower_higher(Lower, Higher) generic_expect(Lower, Higher, Lower, Higher)
#define expect_higher_lower(Higher, Lower) generic_expect(Higher, Lower, Lower, Higher)
#define expect_smaller_larger2(Smaller, Larger) \
expect_smaller_larger(Smaller, Larger); \
expect_larger_smaller(Larger, Smaller)
#define expect_lower_higher2(Lower, Higher) \
expect_lower_higher(Lower, Higher); \
expect_higher_lower(Higher, Lower)
expect_smaller_larger2(float, long double);
expect_smaller_larger2(int, double);
expect_smaller_larger2(unsigned, double);
printf("floating point tests passed\n");
/// naive size comparison is "wrong"
expect_smaller_larger2(uint64_t, float);
expect_smaller_larger2(int64_t, float);
/// naive size comparison is 'equal'
expect_smaller_larger2(uint32_t, float);
expect_smaller_larger2(int32_t, float);
printf("naive sizeof tests passed (float <-> int64/32_t)\n");
/// ints greater than float
#ifdef SAFE_USE_INT128
expect_lower_higher2(float, uint128_t);
expect_smaller_larger2(int128_t, float);
/// int128_t is less than float, but test special-case handling regardless
printf("extreme sizeof tests passed (float <-> safe_[u]int128_t)\n");
#endif
/// integers
expect_smaller_larger(int, int);
expect_smaller_larger(unsigned, unsigned);
expect_lower_higher2(int, unsigned);
printf("same size integral tests passed\n");
expect_smaller_larger2(int32_t, int64_t);
expect_smaller_larger2(uint32_t, uint64_t);
expect_smaller_larger2(uint32_t, int64_t);
expect_lower_higher2(int32_t, uint64_t);
printf("different size integral tests passed\n");
return 0;
}
| Irfy/safe_ops | safe_test.cc | C++ | mit | 14,850 |
/*
* Copyright (c) 2016 Oiri Project
*
* This software is distributed under an MIT-style license.
* See LICENSE file for more information.
*/
package com.github.kimikage.oiri.svg;
import org.w3c.dom.svg.SVGMatrix;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Transform {
private static final String sNumber = "([-+]?(?:[0-9]+(?:\\.[0-9]*)?|\\.[0-9]+)(?:[eE][-+]?[0-9]+)?)";
private static final Pattern sPatternTranslate = Pattern.compile(
"^\\s*translate\\s*\\(\\s*" + sNumber + "(?:\\s*[, ]\\s*" + sNumber + ")?\\s*\\)");
private static final Pattern sPatternScale = Pattern.compile(
"^\\s*scale\\s*\\(\\s*" + sNumber + "(?:\\s*[, ]\\s*" + sNumber + ")?\\s*\\)");
private Matrix mMatrix;
private android.graphics.Matrix mAndroidMatrix;
public Transform(String list) {
mMatrix = new Matrix();
String l = list;
for (; ; ) {
Matcher m = sPatternTranslate.matcher(l);
if (m.find()) {
float tx = Float.parseFloat(m.group(1));
String g2 = m.group(2);
float ty = g2 != null ? Float.parseFloat(g2) : 0.0f;
mMatrix = (Matrix) mMatrix.translate(tx, ty);
l = l.substring(m.end());
continue;
}
m = sPatternScale.matcher(l);
if (m.find()) {
float sx = Float.parseFloat(m.group(1));
String g2 = m.group(2);
float sy = g2 != null ? Float.parseFloat(g2) : sx;
mMatrix = (Matrix) mMatrix.scaleNonUniform(sx, sy);
l = l.substring(m.end());
continue;
}
break;
}
}
public SVGMatrix getMatrix() {
return mMatrix;
}
public android.graphics.Matrix getAndroidMatrix() {
if (mAndroidMatrix == null) {
mAndroidMatrix = new android.graphics.Matrix();
mAndroidMatrix.setValues(mMatrix.getValues());
}
return mAndroidMatrix;
}
public void getMatrixValues(float[] dest) {
mMatrix.getValues(dest);
}
}
| kimikage/oiri | app/src/main/java/com/github/kimikage/oiri/svg/Transform.java | Java | mit | 2,233 |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using PholioVisualisation.DataAccess;
using PholioVisualisation.DataConstruction;
using PholioVisualisation.Export;
using PholioVisualisation.Export.FileBuilder.Containers;
using PholioVisualisation.Export.FileBuilder.SupportModels;
using PholioVisualisation.Export.FileBuilder.Wrappers;
using PholioVisualisation.Export.FileBuilder.Writers;
using PholioVisualisation.Formatting;
using PholioVisualisation.PholioObjects;
using System;
using System.Collections.Generic;
namespace PholioVisualisation.ExportTest.FileBuilder.Writers
{
[TestClass]
public class CsvBuilderIndicatorDataWriterTest
{
private ExportAreaHelper _areaHelper;
private Mock<IAreasReader> _areasReaderMock;
private Mock<PholioReader> _pholioReaderMock;
private IndicatorExportParameters _generalParameters;
private OnDemandQueryParametersWrapper _onDemandQueryParameters;
private IndicatorMetadata _indicatorMetadata;
private CsvBuilderAttributesForBodyContainer _parameters;
private IndicatorExportParameters _indicatorExportParameters;
private AreaFactory _areaFactory;
private SingleIndicatorFileWriter _singleIndicatorFileWriter;
[TestInitialize]
public void Start()
{
_areasReaderMock = new Mock<IAreasReader>(MockBehavior.Strict);
_pholioReaderMock = new Mock<PholioReader>(MockBehavior.Strict);
_generalParameters = new IndicatorExportParameters();
_onDemandQueryParameters = new OnDemandQueryParametersWrapper(1, new List<int>{1}, new Dictionary<int, IList<InequalitySearch>> { { 1, null } });
_indicatorMetadata = new IndicatorMetadata { Unit = new Unit { Value = 1 }, Descriptive = new Dictionary<string, string>{{"Name", "NameTest"}},YearType = new YearType()};
_parameters = new CsvBuilderAttributesForBodyContainer(_generalParameters, new OnDemandQueryParametersWrapper(1, new List<int>(), new Dictionary<int, IList<InequalitySearch>>(), null, new List<int>(), true));
_indicatorExportParameters = new IndicatorExportParameters { ParentAreaCode = AreaCodes.England };
_areaFactory = new AreaFactory(_areasReaderMock.Object);
_areaHelper = new ExportAreaHelper(_areasReaderMock.Object, _indicatorExportParameters);
_areasReaderMock.Setup(x => x.GetCategoryTypes(It.IsAny<IList<int>>())).Returns(new List<CategoryType> ());
_areasReaderMock.Setup(x => x.GetAreaFromCode(It.IsAny<string>())).Returns(new Area { Code = "SubNationalTest", Name = "NameTest", ShortName = "shortNameTest"});
_areasReaderMock.Setup(x => x.GetChildAreas(It.IsAny<string>(), It.IsAny<int>())).Returns(new List<IArea> { new Area { Code = "SubNationalTest", Name = "NameTest"} });
_areasReaderMock.Setup(x => x.GetParentAreasFromChildAreaId(It.IsAny<int>(), It.IsAny<int>())).Returns(new Dictionary<string, Area> { { "SubNationalTest", new Area { Code = "SubNationalTest", Name = "NameTest"} } });
_areasReaderMock.Setup(x => x.GetAreaType(It.IsAny<int>())).Returns(new AreaType{ CanBeDisplayedOnMap = false, Id = 1, IsCurrent = true, IsSearchable = true, Name = "AreaTypeTest",
ParentAreaTypes = new List<IAreaType>(), ShortName = "shortNameTest"});
_areasReaderMock.Setup(x => x.GetAreasByAreaTypeId(It.IsAny<int>())).Returns(new List<IArea>{ new Area{ AreaTypeId = AreaTypeIds.District, Code = "SubNationalTest", Name = "NameTest", ShortName = "ShortNameTest"}});
_areaHelper.Init();
_singleIndicatorFileWriter = new SingleIndicatorFileWriter(1, _parameters);
_pholioReaderMock.Setup(x => x.GetAllAges()).Returns(new List<Age> { new Age { Id = 1, Name = "AgeTest"}});
_pholioReaderMock.Setup(x => x.GetAllSexes()).Returns(new List<Sex> { new Sex { Id = 0, Name = "SexName", Sequence = 1 }});
_pholioReaderMock.Setup(x => x.GetAllValueNotes()).Returns(new List<ValueNote> { new ValueNote {Id = 1, Text = "NoteTest"}});
var lookUpManager = new LookUpManager(_pholioReaderMock.Object, _areasReaderMock.Object, new List<int> {1}, new List<int> {1});
_singleIndicatorFileWriter.Init(lookUpManager, new TrendMarkerLabelProvider(1) , new SignificanceFormatter(1, 1), _indicatorMetadata);
}
[TestCleanup]
public void CleanUp()
{
_areasReaderMock.VerifyAll();
_pholioReaderMock.VerifyAll();
}
[TestMethod]
public void ShouldReturnHeaderTest()
{
var csvBuilderIndicatorDataWriter = new CsvBuilderIndicatorDataWriter(_areasReaderMock.Object, IndicatorMetadataProvider.Instance, _areaHelper, _generalParameters, _onDemandQueryParameters );
try
{
var result = csvBuilderIndicatorDataWriter.GetHeader();
Assert.IsNotNull(result);
Assert.IsTrue(result.Length == 389);
}
catch (Exception)
{
Assert.Fail("The method should not throw any errors");
}
}
[TestMethod]
public void ShouldReturnBodyTest()
{
var csvBuilderIndicatorDataWriter = new CsvBuilderIndicatorDataWriter(_areasReaderMock.Object, IndicatorMetadataProvider.Instance, _areaHelper, _generalParameters, _onDemandQueryParameters);
try
{
var result = csvBuilderIndicatorDataWriter.GetBody();
Assert.IsNotNull(result);
Assert.IsTrue(result.Length == 0);
}
catch (Exception)
{
Assert.Fail("The method should not throw any errors");
}
}
}
}
| PublicHealthEngland/fingertips-open | PholioVisualisationWS/ExportTest/FileBuilder/Writers/CsvBuilderIndicatorDataWriterTest.cs | C# | mit | 5,844 |
# aaronwest.github.io
A simple website using [Jekyll](http://jekyllrb.com) + [GitHub Pages](https://pages.github.com). Designed to function as a basic engineering notebook to jot down thoughts and ideas.
To view the website visit [notebook.aaronwest.net](http://notebook.aaronwest.net).
| aaronwest/aaronwest.github.io | README.md | Markdown | mit | 289 |
/**
* DevExtreme (core/component_registrator.js)
* Version: 16.2.5
* Build date: Mon Feb 27 2017
*
* Copyright (c) 2012 - 2017 Developer Express Inc. ALL RIGHTS RESERVED
* EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml
*/
"use strict";
var $ = require("jquery"),
errors = require("./errors"),
MemorizedCallbacks = require("./memorized_callbacks"),
publicComponentUtils = require("./utils/public_component");
var callbacks = new MemorizedCallbacks;
var registerComponent = function(name, namespace, componentClass) {
if (!componentClass) {
componentClass = namespace
} else {
namespace[name] = componentClass
}
publicComponentUtils.name(componentClass, name);
callbacks.fire(name, componentClass)
};
registerComponent.callbacks = callbacks;
var registerJQueryComponent = function(name, componentClass) {
$.fn[name] = function(options) {
var result, isMemberInvoke = "string" === typeof options;
if (isMemberInvoke) {
var memberName = options,
memberArgs = $.makeArray(arguments).slice(1);
this.each(function() {
var instance = componentClass.getInstance(this);
if (!instance) {
throw errors.Error("E0009", name)
}
var member = instance[memberName],
memberValue = member.apply(instance, memberArgs);
if (void 0 === result) {
result = memberValue
}
})
} else {
this.each(function() {
var instance = componentClass.getInstance(this);
if (instance) {
instance.option(options)
} else {
new componentClass(this, options)
}
});
result = this
}
return result
}
};
callbacks.add(registerJQueryComponent);
module.exports = registerComponent;
| imironica/Fraud-Detection-System | FraudDetection.Web/wwwroot/node_modules/devextreme/core/component_registrator.js | JavaScript | mit | 1,997 |
class MemeSlug < ActiveRecord::Base
belongs_to :meme
end
| b1nary/MayMay | app/models/meme_slug.rb | Ruby | mit | 59 |
/*
* PanoramaGL library
* Version 0.1
* Copyright (c) 2010 Javier Baez <[email protected]>
*
* 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.
*/
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
- (void)logout;
@end
| RamanDzianishchyk/Panoramer | HelloPanoramaGL/AppDelegate.h | C | mit | 816 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>W29820_text</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;">
<div style="float: left;">
<a href="page28.html">«</a>
</div>
<div style="float: right;">
</div>
</div>
<hr/>
<div style="position: absolute; margin-left: 715px; margin-top: 0px;">
<p class="styleSans12000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>"></p>
</div>
<div style="position: absolute; margin-left: 1182px; margin-top: 192px;">
<p class="styleSans1.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>"></p>
</div>
<div style="position: absolute; margin-left: 357px; margin-top: 330px;">
<p class="styleSans9.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">OPERATOR: </p>
</div>
<div style="position: absolute; margin-left: 2447px; margin-top: 412px;">
<p class="styleSans12000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>"></p>
</div>
<div style="position: absolute; margin-left: 357px; margin-top: 440px;">
<p class="styleSans9.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">ADDRES S : </p>
</div>
<div style="position: absolute; margin-left: 1127px; margin-top: 440px;">
<p class="styleSans11.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">PO Box 269000 Oklahoma City, OK 73126 <br/>Bendjxon 1-10H </p>
</div>
<div style="position: absolute; margin-left: 357px; margin-top: 605px;">
<p class="styleSans8.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">WELL NAME: </p>
</div>
<div style="position: absolute; margin-left: 357px; margin-top: 715px;">
<p class="styleSans9.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">SURFACE LOCATION: <br/>CASING LOCATION: <br/>BOTTOM HOLE LOCATION: </p>
</div>
<div style="position: absolute; margin-left: 1113px; margin-top: 715px;">
<p class="styleSans9.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">265’ FSL & 2140’ FWL Section 10 T159N - RIOOW <br/>Appx. 708’ FSL & 2045 ’ FWL Section 10 casing at 9531’ MD, appx. 9296.5’ TVD <br/>10079.35’ north from surface & 202.72’ west from <br/>~".4‘.‘AA nan" ’30:, E‘kTT 9' 1007’ U‘IIT </p>
</div>
<div style="position: absolute; margin-left: 1127px; margin-top: 1155px;">
<p class="styleSans8.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">511113.05, uPPK. ADJ I‘th (X4 174/ 1' VVL: <br/>S3 — T159N fl RIOOW <br/>33—105-03837 <br/>29820 <br/>Williams </p>
</div>
<div style="position: absolute; margin-left: 357px; margin-top: 1292px;">
<p class="styleSans9.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">API#: <br/>ND PERMIT #: </p>
</div>
<div style="position: absolute; margin-left: 357px; margin-top: 1540px;">
<p class="styleSans8.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">COUNTY: </p>
</div>
<div style="position: absolute; margin-left: 357px; margin-top: 1650px;">
<p class="styleSans8.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">STATE: </p>
</div>
<div style="position: absolute; margin-left: 357px; margin-top: 1760px;">
<p class="styleSans9.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">BASIN: </p>
</div>
<div style="position: absolute; margin-left: 357px; margin-top: 1870px;">
<p class="styleSans8.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">FIELD : </p>
</div>
<div style="position: absolute; margin-left: 357px; margin-top: 1980px;">
<p class="styleSans9.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">PROSPECT: <br/>WELL TYPE: ELEVATION: <br/>SPUD DATE: <br/>TOTAL DEPTH/DATE: DAYS FROM SPUD: <br/>BOTTOM HOLE DATA: </p>
</div>
<div style="position: absolute; margin-left: 1265px; margin-top: 3107px;">
<p class="styleSans2.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>"></p>
</div>
<div style="position: absolute; margin-left: 1127px; margin-top: 330px;">
<p class="styleSans10.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">Continental Resources, Inc. </p>
</div>
<div style="position: absolute; margin-left: 1127px; margin-top: 1650px;">
<p class="styleSans9.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">North Dakota </p>
</div>
<div style="position: absolute; margin-left: 1127px; margin-top: 1760px;">
<p class="styleSans9.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">Williston </p>
</div>
<div style="position: absolute; margin-left: 1127px; margin-top: 1870px;">
<p class="styleSans9.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">Green Lake </p>
</div>
<div style="position: absolute; margin-left: 1127px; margin-top: 1980px;">
<p class="styleSans9.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>"></p>
</div>
<div style="position: absolute; margin-left: 1127px; margin-top: 2090px;">
<p class="styleSans11.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">single leg horizontal in Middle Bakken RG: 2053’ SUB: 24’ KB: 2077’ <br/>drill surface shoe on 11/26/14 @ 6:00 AM <br/>19178’ / 12/15/14 <br/>19 days from spud <br/>Total Measured Depth: 19178’ Inclination: 90.0 degrees Azimuth: 355.2 degrees <br/>True Vertical Depth: 9154.79’ Vertical Section: 10081 .30’ </p>
</div>
<div style="position: absolute; margin-left: 1925px; margin-top: 1980px;">
<p class="styleSans12000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>"></p>
</div>
</body>
</html>
| datamade/elpc_bakken | ocr_extracted/W29820_text/page29.html | HTML | mit | 6,634 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<HTML>
<HEAD>
<TITLE>Form1H.xls</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="generator" content="pdftohtml 0.40">
<META name="author" content="theilman">
<META name="date" content="2015-03-11T15:26:03+00:00">
</HEAD>
<FRAMESET cols="100,*">
<FRAME name="links" src="W30785.pdf_ind.html">
<FRAME name="contents" src="W30785.pdfs.html">
</FRAMESET>
</HTML>
| datamade/elpc_bakken | html/pdf/W30785.pdf.html | HTML | mit | 505 |
#!/bin/bash
## This script installs the irace package, sets up the environment and launches
## irace. Then compresses its output as a tar.gz.
#SCENARIO is a irace's scenario file
SCENARIO=$1
# RUN is the run number to distinguish replications of irace
RUN=$2
shift 2
# RUN in condor starts at 0
let SEED=1234567+RUN
IRACE_PARAMS="--scenario scenario-${SCENARIO}.txt --debug-level 3 --parallel 24 --seed ${SEED}"
#tar axf condor-input.tar.gz
RPACKAGE="irace.tar.gz"
# install irace
if [ ! -r $RPACKAGE ]; then
echo "cannot read $RPACKAGE"
exit 1
fi
RLIBDIR="$(pwd)/R/"
mkdir -p $RLIBDIR
R CMD INSTALL $RPACKAGE --library=$RLIBDIR
export R_LIBS="$RLIBDIR:$R_LIBS"
irace="$(pwd)/R/irace/bin/irace"
if [ ! -x $irace ]; then
echo "cannot execute $irace"
exit 1
fi
export PATH="$(pwd)/":${PATH}
#cat /proc/cpuinfo
#echo "$irace --scenario scenario-${1}.txt --exec-dir=./execdir --debug-level 2 --parallel 8"
mkdir -p execdir && $irace --exec-dir=./execdir ${IRACE_PARAMS} 1> execdir/irace.stdout.txt 2> execdir/irace.stderr.txt
#| xz - > execdir/irace.stdout.xz
#cd ..
#tar acf result.tar.gz irace/execdir
#ls ./execdir
#cat ./execdir/c1-1.stderr
#cd .. && tar acf result.tar.gz irace
#ls ../result.tar.gz
| matthieu-vergne/jMetal | jmetal-experimental/src/main/resources/irace/run.sh | Shell | mit | 1,221 |
/*!
* Bootstrap v4.0.0-alpha.6 (https://getbootstrap.com)
* Copyright 2011-2017 The Bootstrap Authors
* Copyright 2011-2017 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */
html {
font-family: sans-serif;
line-height: 1.15;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
}
article,
aside,
footer,
header,
nav,
section {
display: block;
}
h1 {
font-size: 2em;
margin: 0.67em 0;
}
figcaption,
figure,
main {
display: block;
}
figure {
margin: 1em 40px;
}
hr {
-webkit-box-sizing: content-box;
box-sizing: content-box;
height: 0;
overflow: visible;
}
pre {
font-family: monospace, monospace;
font-size: 1em;
}
a {
background-color: transparent;
-webkit-text-decoration-skip: objects;
}
a:active,
a:hover {
outline-width: 0;
}
abbr[title] {
border-bottom: none;
text-decoration: underline;
text-decoration: underline dotted;
}
b,
strong {
font-weight: inherit;
}
b,
strong {
font-weight: bolder;
}
code,
kbd,
samp {
font-family: monospace, monospace;
font-size: 1em;
}
dfn {
font-style: italic;
}
mark {
background-color: #ff0;
color: #000;
}
small {
font-size: 80%;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
audio,
video {
display: inline-block;
}
audio:not([controls]) {
display: none;
height: 0;
}
img {
border-style: none;
}
svg:not(:root) {
overflow: hidden;
}
button,
input,
optgroup,
select,
textarea {
font-family: sans-serif;
font-size: 100%;
line-height: 1.15;
margin: 0;
}
button,
input {
overflow: visible;
}
button,
select {
text-transform: none;
}
button,
html [type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
legend {
-webkit-box-sizing: border-box;
box-sizing: border-box;
color: inherit;
display: table;
max-width: 100%;
padding: 0;
white-space: normal;
}
progress {
display: inline-block;
vertical-align: baseline;
}
textarea {
overflow: auto;
}
[type="checkbox"],
[type="radio"] {
-webkit-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
[type="search"] {
-webkit-appearance: textfield;
outline-offset: -2px;
}
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
::-webkit-file-upload-button {
-webkit-appearance: button;
font: inherit;
}
details,
menu {
display: block;
}
summary {
display: list-item;
}
canvas {
display: inline-block;
}
template {
display: none;
}
[hidden] {
display: none;
}
@media print {
*,
*::before,
*::after,
p::first-letter,
div::first-letter,
blockquote::first-letter,
li::first-letter,
p::first-line,
div::first-line,
blockquote::first-line,
li::first-line {
text-shadow: none !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
}
a,
a:visited {
text-decoration: underline;
}
abbr[title]::after {
content: " (" attr(title) ")";
}
pre {
white-space: pre-wrap !important;
}
pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid;
}
thead {
display: table-header-group;
}
tr,
img {
page-break-inside: avoid;
}
p,
h2,
h3 {
orphans: 3;
widows: 3;
}
h2,
h3 {
page-break-after: avoid;
}
.navbar {
display: none;
}
.badge {
border: 1px solid #000;
}
.table {
border-collapse: collapse !important;
}
.table td,
.table th {
background-color: #fff !important;
}
.table-bordered th,
.table-bordered td {
border: 1px solid #ddd !important;
}
}
html {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
*,
*::before,
*::after {
-webkit-box-sizing: inherit;
box-sizing: inherit;
}
@-ms-viewport {
width: device-width;
}
html {
-ms-overflow-style: scrollbar;
-webkit-tap-highlight-color: transparent;
}
body {
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-size: 1rem;
font-weight: normal;
line-height: 1.5;
color: #292b2c;
background-color: #fff;
}
[tabindex="-1"]:focus {
outline: none !important;
}
h1, h2, h3, h4, h5, h6 {
margin-top: 0;
margin-bottom: .5rem;
}
p {
margin-top: 0;
margin-bottom: 1rem;
}
abbr[title],
abbr[data-original-title] {
cursor: help;
}
address {
margin-bottom: 1rem;
font-style: normal;
line-height: inherit;
}
ol,
ul,
dl {
margin-top: 0;
margin-bottom: 1rem;
}
ol ol,
ul ul,
ol ul,
ul ol {
margin-bottom: 0;
}
dt {
font-weight: bold;
}
dd {
margin-bottom: .5rem;
margin-left: 0;
}
blockquote {
margin: 0 0 1rem;
}
a {
color: #0275d8;
text-decoration: none;
}
a:focus, a:hover {
color: #014c8c;
text-decoration: underline;
}
a:not([href]):not([tabindex]) {
color: inherit;
text-decoration: none;
}
a:not([href]):not([tabindex]):focus, a:not([href]):not([tabindex]):hover {
color: inherit;
text-decoration: none;
}
a:not([href]):not([tabindex]):focus {
outline: 0;
}
pre {
margin-top: 0;
margin-bottom: 1rem;
overflow: auto;
}
figure {
margin: 0 0 1rem;
}
img {
vertical-align: middle;
}
[role="button"] {
cursor: pointer;
}
a,
area,
button,
[role="button"],
input,
label,
select,
summary,
textarea {
-ms-touch-action: manipulation;
touch-action: manipulation;
}
table {
border-collapse: collapse;
background-color: transparent;
}
caption {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
color: #636c72;
text-align: left;
caption-side: bottom;
}
th {
text-align: left;
}
label {
display: inline-block;
margin-bottom: .5rem;
}
button:focus {
outline: 1px dotted;
outline: 5px auto -webkit-focus-ring-color;
}
input,
button,
select,
textarea {
line-height: inherit;
}
input[type="radio"]:disabled,
input[type="checkbox"]:disabled {
cursor: not-allowed;
}
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"] {
-webkit-appearance: listbox;
}
textarea {
resize: vertical;
}
fieldset {
min-width: 0;
padding: 0;
margin: 0;
border: 0;
}
legend {
display: block;
width: 100%;
padding: 0;
margin-bottom: .5rem;
font-size: 1.5rem;
line-height: inherit;
}
input[type="search"] {
-webkit-appearance: none;
}
output {
display: inline-block;
}
[hidden] {
display: none !important;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
margin-bottom: 0.5rem;
font-family: inherit;
font-weight: 500;
line-height: 1.1;
color: inherit;
}
h1, .h1 {
font-size: 2.5rem;
}
h2, .h2 {
font-size: 2rem;
}
h3, .h3 {
font-size: 1.75rem;
}
h4, .h4 {
font-size: 1.5rem;
}
h5, .h5 {
font-size: 1.25rem;
}
h6, .h6 {
font-size: 1rem;
}
.lead {
font-size: 1.25rem;
font-weight: 300;
}
.display-1 {
font-size: 6rem;
font-weight: 300;
line-height: 1.1;
}
.display-2 {
font-size: 5.5rem;
font-weight: 300;
line-height: 1.1;
}
.display-3 {
font-size: 4.5rem;
font-weight: 300;
line-height: 1.1;
}
.display-4 {
font-size: 3.5rem;
font-weight: 300;
line-height: 1.1;
}
hr {
margin-top: 1rem;
margin-bottom: 1rem;
border: 0;
border-top: 1px solid rgba(0, 0, 0, 0.1);
}
small,
.small {
font-size: 80%;
font-weight: normal;
}
mark,
.mark {
padding: 0.2em;
background-color: #fcf8e3;
}
.list-unstyled {
padding-left: 0;
list-style: none;
}
.list-inline {
padding-left: 0;
list-style: none;
}
.list-inline-item {
display: inline-block;
}
.list-inline-item:not(:last-child) {
margin-right: 5px;
}
.initialism {
font-size: 90%;
text-transform: uppercase;
}
.blockquote {
padding: 0.5rem 1rem;
margin-bottom: 1rem;
font-size: 1.25rem;
border-left: 0.25rem solid #eceeef;
}
.blockquote-footer {
display: block;
font-size: 80%;
color: #636c72;
}
.blockquote-footer::before {
content: "\2014 \00A0";
}
.blockquote-reverse {
padding-right: 1rem;
padding-left: 0;
text-align: right;
border-right: 0.25rem solid #eceeef;
border-left: 0;
}
.blockquote-reverse .blockquote-footer::before {
content: "";
}
.blockquote-reverse .blockquote-footer::after {
content: "\00A0 \2014";
}
.img-fluid {
max-width: 100%;
height: auto;
}
.img-thumbnail {
padding: 0.25rem;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 0.25rem;
-webkit-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
max-width: 100%;
height: auto;
}
.figure {
display: inline-block;
}
.figure-img {
margin-bottom: 0.5rem;
line-height: 1;
}
.figure-caption {
font-size: 90%;
color: #636c72;
}
code,
kbd,
pre,
samp {
font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
code {
padding: 0.2rem 0.4rem;
font-size: 90%;
color: #bd4147;
background-color: #f7f7f9;
border-radius: 0.25rem;
}
a > code {
padding: 0;
color: inherit;
background-color: inherit;
}
kbd {
padding: 0.2rem 0.4rem;
font-size: 90%;
color: #fff;
background-color: #292b2c;
border-radius: 0.2rem;
}
kbd kbd {
padding: 0;
font-size: 100%;
font-weight: bold;
}
pre {
display: block;
margin-top: 0;
margin-bottom: 1rem;
font-size: 90%;
color: #292b2c;
}
pre code {
padding: 0;
font-size: inherit;
color: inherit;
background-color: transparent;
border-radius: 0;
}
.pre-scrollable {
max-height: 340px;
overflow-y: scroll;
}
.container {
position: relative;
margin-left: auto;
margin-right: auto;
padding-right: 15px;
padding-left: 15px;
}
@media (min-width: 576px) {
.container {
padding-right: 15px;
padding-left: 15px;
}
}
@media (min-width: 768px) {
.container {
padding-right: 15px;
padding-left: 15px;
}
}
@media (min-width: 992px) {
.container {
padding-right: 15px;
padding-left: 15px;
}
}
@media (min-width: 1200px) {
.container {
padding-right: 15px;
padding-left: 15px;
}
}
@media (min-width: 576px) {
.container {
width: 540px;
max-width: 100%;
}
}
@media (min-width: 768px) {
.container {
width: 720px;
max-width: 100%;
}
}
@media (min-width: 992px) {
.container {
width: 960px;
max-width: 100%;
}
}
@media (min-width: 1200px) {
.container {
width: 1140px;
max-width: 100%;
}
}
.container-fluid {
position: relative;
margin-left: auto;
margin-right: auto;
padding-right: 15px;
padding-left: 15px;
}
@media (min-width: 576px) {
.container-fluid {
padding-right: 15px;
padding-left: 15px;
}
}
@media (min-width: 768px) {
.container-fluid {
padding-right: 15px;
padding-left: 15px;
}
}
@media (min-width: 992px) {
.container-fluid {
padding-right: 15px;
padding-left: 15px;
}
}
@media (min-width: 1200px) {
.container-fluid {
padding-right: 15px;
padding-left: 15px;
}
}
.row {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -15px;
margin-left: -15px;
}
@media (min-width: 576px) {
.row {
margin-right: -15px;
margin-left: -15px;
}
}
@media (min-width: 768px) {
.row {
margin-right: -15px;
margin-left: -15px;
}
}
@media (min-width: 992px) {
.row {
margin-right: -15px;
margin-left: -15px;
}
}
@media (min-width: 1200px) {
.row {
margin-right: -15px;
margin-left: -15px;
}
}
.no-gutters {
margin-right: 0;
margin-left: 0;
}
.no-gutters > .col,
.no-gutters > [class*="col-"] {
padding-right: 0;
padding-left: 0;
}
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl {
position: relative;
width: 100%;
min-height: 1px;
padding-right: 15px;
padding-left: 15px;
}
@media (min-width: 576px) {
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl {
padding-right: 15px;
padding-left: 15px;
}
}
@media (min-width: 768px) {
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl {
padding-right: 15px;
padding-left: 15px;
}
}
@media (min-width: 992px) {
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl {
padding-right: 15px;
padding-left: 15px;
}
}
@media (min-width: 1200px) {
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl {
padding-right: 15px;
padding-left: 15px;
}
}
.col {
-webkit-flex-basis: 0;
-ms-flex-preferred-size: 0;
flex-basis: 0;
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-ms-flex-positive: 1;
flex-grow: 1;
max-width: 100%;
}
.col-auto {
-webkit-box-flex: 0;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
width: auto;
}
.col-1 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 8.333333%;
-ms-flex: 0 0 8.333333%;
flex: 0 0 8.333333%;
max-width: 8.333333%;
}
.col-2 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 16.666667%;
-ms-flex: 0 0 16.666667%;
flex: 0 0 16.666667%;
max-width: 16.666667%;
}
.col-3 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 25%;
-ms-flex: 0 0 25%;
flex: 0 0 25%;
max-width: 25%;
}
.col-4 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 33.333333%;
-ms-flex: 0 0 33.333333%;
flex: 0 0 33.333333%;
max-width: 33.333333%;
}
.col-5 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 41.666667%;
-ms-flex: 0 0 41.666667%;
flex: 0 0 41.666667%;
max-width: 41.666667%;
}
.col-6 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 50%;
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
.col-7 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 58.333333%;
-ms-flex: 0 0 58.333333%;
flex: 0 0 58.333333%;
max-width: 58.333333%;
}
.col-8 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 66.666667%;
-ms-flex: 0 0 66.666667%;
flex: 0 0 66.666667%;
max-width: 66.666667%;
}
.col-9 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 75%;
-ms-flex: 0 0 75%;
flex: 0 0 75%;
max-width: 75%;
}
.col-10 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 83.333333%;
-ms-flex: 0 0 83.333333%;
flex: 0 0 83.333333%;
max-width: 83.333333%;
}
.col-11 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 91.666667%;
-ms-flex: 0 0 91.666667%;
flex: 0 0 91.666667%;
max-width: 91.666667%;
}
.col-12 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 100%;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
max-width: 100%;
}
.pull-0 {
right: auto;
}
.pull-1 {
right: 8.333333%;
}
.pull-2 {
right: 16.666667%;
}
.pull-3 {
right: 25%;
}
.pull-4 {
right: 33.333333%;
}
.pull-5 {
right: 41.666667%;
}
.pull-6 {
right: 50%;
}
.pull-7 {
right: 58.333333%;
}
.pull-8 {
right: 66.666667%;
}
.pull-9 {
right: 75%;
}
.pull-10 {
right: 83.333333%;
}
.pull-11 {
right: 91.666667%;
}
.pull-12 {
right: 100%;
}
.push-0 {
left: auto;
}
.push-1 {
left: 8.333333%;
}
.push-2 {
left: 16.666667%;
}
.push-3 {
left: 25%;
}
.push-4 {
left: 33.333333%;
}
.push-5 {
left: 41.666667%;
}
.push-6 {
left: 50%;
}
.push-7 {
left: 58.333333%;
}
.push-8 {
left: 66.666667%;
}
.push-9 {
left: 75%;
}
.push-10 {
left: 83.333333%;
}
.push-11 {
left: 91.666667%;
}
.push-12 {
left: 100%;
}
.offset-1 {
margin-left: 8.333333%;
}
.offset-2 {
margin-left: 16.666667%;
}
.offset-3 {
margin-left: 25%;
}
.offset-4 {
margin-left: 33.333333%;
}
.offset-5 {
margin-left: 41.666667%;
}
.offset-6 {
margin-left: 50%;
}
.offset-7 {
margin-left: 58.333333%;
}
.offset-8 {
margin-left: 66.666667%;
}
.offset-9 {
margin-left: 75%;
}
.offset-10 {
margin-left: 83.333333%;
}
.offset-11 {
margin-left: 91.666667%;
}
@media (min-width: 576px) {
.col-sm {
-webkit-flex-basis: 0;
-ms-flex-preferred-size: 0;
flex-basis: 0;
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-ms-flex-positive: 1;
flex-grow: 1;
max-width: 100%;
}
.col-sm-auto {
-webkit-box-flex: 0;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
width: auto;
}
.col-sm-1 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 8.333333%;
-ms-flex: 0 0 8.333333%;
flex: 0 0 8.333333%;
max-width: 8.333333%;
}
.col-sm-2 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 16.666667%;
-ms-flex: 0 0 16.666667%;
flex: 0 0 16.666667%;
max-width: 16.666667%;
}
.col-sm-3 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 25%;
-ms-flex: 0 0 25%;
flex: 0 0 25%;
max-width: 25%;
}
.col-sm-4 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 33.333333%;
-ms-flex: 0 0 33.333333%;
flex: 0 0 33.333333%;
max-width: 33.333333%;
}
.col-sm-5 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 41.666667%;
-ms-flex: 0 0 41.666667%;
flex: 0 0 41.666667%;
max-width: 41.666667%;
}
.col-sm-6 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 50%;
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
.col-sm-7 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 58.333333%;
-ms-flex: 0 0 58.333333%;
flex: 0 0 58.333333%;
max-width: 58.333333%;
}
.col-sm-8 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 66.666667%;
-ms-flex: 0 0 66.666667%;
flex: 0 0 66.666667%;
max-width: 66.666667%;
}
.col-sm-9 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 75%;
-ms-flex: 0 0 75%;
flex: 0 0 75%;
max-width: 75%;
}
.col-sm-10 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 83.333333%;
-ms-flex: 0 0 83.333333%;
flex: 0 0 83.333333%;
max-width: 83.333333%;
}
.col-sm-11 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 91.666667%;
-ms-flex: 0 0 91.666667%;
flex: 0 0 91.666667%;
max-width: 91.666667%;
}
.col-sm-12 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 100%;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
max-width: 100%;
}
.pull-sm-0 {
right: auto;
}
.pull-sm-1 {
right: 8.333333%;
}
.pull-sm-2 {
right: 16.666667%;
}
.pull-sm-3 {
right: 25%;
}
.pull-sm-4 {
right: 33.333333%;
}
.pull-sm-5 {
right: 41.666667%;
}
.pull-sm-6 {
right: 50%;
}
.pull-sm-7 {
right: 58.333333%;
}
.pull-sm-8 {
right: 66.666667%;
}
.pull-sm-9 {
right: 75%;
}
.pull-sm-10 {
right: 83.333333%;
}
.pull-sm-11 {
right: 91.666667%;
}
.pull-sm-12 {
right: 100%;
}
.push-sm-0 {
left: auto;
}
.push-sm-1 {
left: 8.333333%;
}
.push-sm-2 {
left: 16.666667%;
}
.push-sm-3 {
left: 25%;
}
.push-sm-4 {
left: 33.333333%;
}
.push-sm-5 {
left: 41.666667%;
}
.push-sm-6 {
left: 50%;
}
.push-sm-7 {
left: 58.333333%;
}
.push-sm-8 {
left: 66.666667%;
}
.push-sm-9 {
left: 75%;
}
.push-sm-10 {
left: 83.333333%;
}
.push-sm-11 {
left: 91.666667%;
}
.push-sm-12 {
left: 100%;
}
.offset-sm-0 {
margin-left: 0%;
}
.offset-sm-1 {
margin-left: 8.333333%;
}
.offset-sm-2 {
margin-left: 16.666667%;
}
.offset-sm-3 {
margin-left: 25%;
}
.offset-sm-4 {
margin-left: 33.333333%;
}
.offset-sm-5 {
margin-left: 41.666667%;
}
.offset-sm-6 {
margin-left: 50%;
}
.offset-sm-7 {
margin-left: 58.333333%;
}
.offset-sm-8 {
margin-left: 66.666667%;
}
.offset-sm-9 {
margin-left: 75%;
}
.offset-sm-10 {
margin-left: 83.333333%;
}
.offset-sm-11 {
margin-left: 91.666667%;
}
}
@media (min-width: 768px) {
.col-md {
-webkit-flex-basis: 0;
-ms-flex-preferred-size: 0;
flex-basis: 0;
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-ms-flex-positive: 1;
flex-grow: 1;
max-width: 100%;
}
.col-md-auto {
-webkit-box-flex: 0;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
width: auto;
}
.col-md-1 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 8.333333%;
-ms-flex: 0 0 8.333333%;
flex: 0 0 8.333333%;
max-width: 8.333333%;
}
.col-md-2 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 16.666667%;
-ms-flex: 0 0 16.666667%;
flex: 0 0 16.666667%;
max-width: 16.666667%;
}
.col-md-3 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 25%;
-ms-flex: 0 0 25%;
flex: 0 0 25%;
max-width: 25%;
}
.col-md-4 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 33.333333%;
-ms-flex: 0 0 33.333333%;
flex: 0 0 33.333333%;
max-width: 33.333333%;
}
.col-md-5 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 41.666667%;
-ms-flex: 0 0 41.666667%;
flex: 0 0 41.666667%;
max-width: 41.666667%;
}
.col-md-6 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 50%;
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
.col-md-7 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 58.333333%;
-ms-flex: 0 0 58.333333%;
flex: 0 0 58.333333%;
max-width: 58.333333%;
}
.col-md-8 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 66.666667%;
-ms-flex: 0 0 66.666667%;
flex: 0 0 66.666667%;
max-width: 66.666667%;
}
.col-md-9 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 75%;
-ms-flex: 0 0 75%;
flex: 0 0 75%;
max-width: 75%;
}
.col-md-10 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 83.333333%;
-ms-flex: 0 0 83.333333%;
flex: 0 0 83.333333%;
max-width: 83.333333%;
}
.col-md-11 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 91.666667%;
-ms-flex: 0 0 91.666667%;
flex: 0 0 91.666667%;
max-width: 91.666667%;
}
.col-md-12 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 100%;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
max-width: 100%;
}
.pull-md-0 {
right: auto;
}
.pull-md-1 {
right: 8.333333%;
}
.pull-md-2 {
right: 16.666667%;
}
.pull-md-3 {
right: 25%;
}
.pull-md-4 {
right: 33.333333%;
}
.pull-md-5 {
right: 41.666667%;
}
.pull-md-6 {
right: 50%;
}
.pull-md-7 {
right: 58.333333%;
}
.pull-md-8 {
right: 66.666667%;
}
.pull-md-9 {
right: 75%;
}
.pull-md-10 {
right: 83.333333%;
}
.pull-md-11 {
right: 91.666667%;
}
.pull-md-12 {
right: 100%;
}
.push-md-0 {
left: auto;
}
.push-md-1 {
left: 8.333333%;
}
.push-md-2 {
left: 16.666667%;
}
.push-md-3 {
left: 25%;
}
.push-md-4 {
left: 33.333333%;
}
.push-md-5 {
left: 41.666667%;
}
.push-md-6 {
left: 50%;
}
.push-md-7 {
left: 58.333333%;
}
.push-md-8 {
left: 66.666667%;
}
.push-md-9 {
left: 75%;
}
.push-md-10 {
left: 83.333333%;
}
.push-md-11 {
left: 91.666667%;
}
.push-md-12 {
left: 100%;
}
.offset-md-0 {
margin-left: 0%;
}
.offset-md-1 {
margin-left: 8.333333%;
}
.offset-md-2 {
margin-left: 16.666667%;
}
.offset-md-3 {
margin-left: 25%;
}
.offset-md-4 {
margin-left: 33.333333%;
}
.offset-md-5 {
margin-left: 41.666667%;
}
.offset-md-6 {
margin-left: 50%;
}
.offset-md-7 {
margin-left: 58.333333%;
}
.offset-md-8 {
margin-left: 66.666667%;
}
.offset-md-9 {
margin-left: 75%;
}
.offset-md-10 {
margin-left: 83.333333%;
}
.offset-md-11 {
margin-left: 91.666667%;
}
}
@media (min-width: 992px) {
.col-lg {
-webkit-flex-basis: 0;
-ms-flex-preferred-size: 0;
flex-basis: 0;
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-ms-flex-positive: 1;
flex-grow: 1;
max-width: 100%;
}
.col-lg-auto {
-webkit-box-flex: 0;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
width: auto;
}
.col-lg-1 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 8.333333%;
-ms-flex: 0 0 8.333333%;
flex: 0 0 8.333333%;
max-width: 8.333333%;
}
.col-lg-2 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 16.666667%;
-ms-flex: 0 0 16.666667%;
flex: 0 0 16.666667%;
max-width: 16.666667%;
}
.col-lg-3 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 25%;
-ms-flex: 0 0 25%;
flex: 0 0 25%;
max-width: 25%;
}
.col-lg-4 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 33.333333%;
-ms-flex: 0 0 33.333333%;
flex: 0 0 33.333333%;
max-width: 33.333333%;
}
.col-lg-5 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 41.666667%;
-ms-flex: 0 0 41.666667%;
flex: 0 0 41.666667%;
max-width: 41.666667%;
}
.col-lg-6 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 50%;
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
.col-lg-7 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 58.333333%;
-ms-flex: 0 0 58.333333%;
flex: 0 0 58.333333%;
max-width: 58.333333%;
}
.col-lg-8 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 66.666667%;
-ms-flex: 0 0 66.666667%;
flex: 0 0 66.666667%;
max-width: 66.666667%;
}
.col-lg-9 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 75%;
-ms-flex: 0 0 75%;
flex: 0 0 75%;
max-width: 75%;
}
.col-lg-10 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 83.333333%;
-ms-flex: 0 0 83.333333%;
flex: 0 0 83.333333%;
max-width: 83.333333%;
}
.col-lg-11 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 91.666667%;
-ms-flex: 0 0 91.666667%;
flex: 0 0 91.666667%;
max-width: 91.666667%;
}
.col-lg-12 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 100%;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
max-width: 100%;
}
.pull-lg-0 {
right: auto;
}
.pull-lg-1 {
right: 8.333333%;
}
.pull-lg-2 {
right: 16.666667%;
}
.pull-lg-3 {
right: 25%;
}
.pull-lg-4 {
right: 33.333333%;
}
.pull-lg-5 {
right: 41.666667%;
}
.pull-lg-6 {
right: 50%;
}
.pull-lg-7 {
right: 58.333333%;
}
.pull-lg-8 {
right: 66.666667%;
}
.pull-lg-9 {
right: 75%;
}
.pull-lg-10 {
right: 83.333333%;
}
.pull-lg-11 {
right: 91.666667%;
}
.pull-lg-12 {
right: 100%;
}
.push-lg-0 {
left: auto;
}
.push-lg-1 {
left: 8.333333%;
}
.push-lg-2 {
left: 16.666667%;
}
.push-lg-3 {
left: 25%;
}
.push-lg-4 {
left: 33.333333%;
}
.push-lg-5 {
left: 41.666667%;
}
.push-lg-6 {
left: 50%;
}
.push-lg-7 {
left: 58.333333%;
}
.push-lg-8 {
left: 66.666667%;
}
.push-lg-9 {
left: 75%;
}
.push-lg-10 {
left: 83.333333%;
}
.push-lg-11 {
left: 91.666667%;
}
.push-lg-12 {
left: 100%;
}
.offset-lg-0 {
margin-left: 0%;
}
.offset-lg-1 {
margin-left: 8.333333%;
}
.offset-lg-2 {
margin-left: 16.666667%;
}
.offset-lg-3 {
margin-left: 25%;
}
.offset-lg-4 {
margin-left: 33.333333%;
}
.offset-lg-5 {
margin-left: 41.666667%;
}
.offset-lg-6 {
margin-left: 50%;
}
.offset-lg-7 {
margin-left: 58.333333%;
}
.offset-lg-8 {
margin-left: 66.666667%;
}
.offset-lg-9 {
margin-left: 75%;
}
.offset-lg-10 {
margin-left: 83.333333%;
}
.offset-lg-11 {
margin-left: 91.666667%;
}
}
@media (min-width: 1200px) {
.col-xl {
-webkit-flex-basis: 0;
-ms-flex-preferred-size: 0;
flex-basis: 0;
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-ms-flex-positive: 1;
flex-grow: 1;
max-width: 100%;
}
.col-xl-auto {
-webkit-box-flex: 0;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
width: auto;
}
.col-xl-1 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 8.333333%;
-ms-flex: 0 0 8.333333%;
flex: 0 0 8.333333%;
max-width: 8.333333%;
}
.col-xl-2 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 16.666667%;
-ms-flex: 0 0 16.666667%;
flex: 0 0 16.666667%;
max-width: 16.666667%;
}
.col-xl-3 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 25%;
-ms-flex: 0 0 25%;
flex: 0 0 25%;
max-width: 25%;
}
.col-xl-4 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 33.333333%;
-ms-flex: 0 0 33.333333%;
flex: 0 0 33.333333%;
max-width: 33.333333%;
}
.col-xl-5 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 41.666667%;
-ms-flex: 0 0 41.666667%;
flex: 0 0 41.666667%;
max-width: 41.666667%;
}
.col-xl-6 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 50%;
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
.col-xl-7 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 58.333333%;
-ms-flex: 0 0 58.333333%;
flex: 0 0 58.333333%;
max-width: 58.333333%;
}
.col-xl-8 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 66.666667%;
-ms-flex: 0 0 66.666667%;
flex: 0 0 66.666667%;
max-width: 66.666667%;
}
.col-xl-9 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 75%;
-ms-flex: 0 0 75%;
flex: 0 0 75%;
max-width: 75%;
}
.col-xl-10 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 83.333333%;
-ms-flex: 0 0 83.333333%;
flex: 0 0 83.333333%;
max-width: 83.333333%;
}
.col-xl-11 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 91.666667%;
-ms-flex: 0 0 91.666667%;
flex: 0 0 91.666667%;
max-width: 91.666667%;
}
.col-xl-12 {
-webkit-box-flex: 0;
-webkit-flex: 0 0 100%;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
max-width: 100%;
}
.pull-xl-0 {
right: auto;
}
.pull-xl-1 {
right: 8.333333%;
}
.pull-xl-2 {
right: 16.666667%;
}
.pull-xl-3 {
right: 25%;
}
.pull-xl-4 {
right: 33.333333%;
}
.pull-xl-5 {
right: 41.666667%;
}
.pull-xl-6 {
right: 50%;
}
.pull-xl-7 {
right: 58.333333%;
}
.pull-xl-8 {
right: 66.666667%;
}
.pull-xl-9 {
right: 75%;
}
.pull-xl-10 {
right: 83.333333%;
}
.pull-xl-11 {
right: 91.666667%;
}
.pull-xl-12 {
right: 100%;
}
.push-xl-0 {
left: auto;
}
.push-xl-1 {
left: 8.333333%;
}
.push-xl-2 {
left: 16.666667%;
}
.push-xl-3 {
left: 25%;
}
.push-xl-4 {
left: 33.333333%;
}
.push-xl-5 {
left: 41.666667%;
}
.push-xl-6 {
left: 50%;
}
.push-xl-7 {
left: 58.333333%;
}
.push-xl-8 {
left: 66.666667%;
}
.push-xl-9 {
left: 75%;
}
.push-xl-10 {
left: 83.333333%;
}
.push-xl-11 {
left: 91.666667%;
}
.push-xl-12 {
left: 100%;
}
.offset-xl-0 {
margin-left: 0%;
}
.offset-xl-1 {
margin-left: 8.333333%;
}
.offset-xl-2 {
margin-left: 16.666667%;
}
.offset-xl-3 {
margin-left: 25%;
}
.offset-xl-4 {
margin-left: 33.333333%;
}
.offset-xl-5 {
margin-left: 41.666667%;
}
.offset-xl-6 {
margin-left: 50%;
}
.offset-xl-7 {
margin-left: 58.333333%;
}
.offset-xl-8 {
margin-left: 66.666667%;
}
.offset-xl-9 {
margin-left: 75%;
}
.offset-xl-10 {
margin-left: 83.333333%;
}
.offset-xl-11 {
margin-left: 91.666667%;
}
}
.table {
width: 100%;
max-width: 100%;
margin-bottom: 1rem;
}
.table th,
.table td {
padding: 0.75rem;
vertical-align: top;
border-top: 1px solid #eceeef;
}
.table thead th {
vertical-align: bottom;
border-bottom: 2px solid #eceeef;
}
.table tbody + tbody {
border-top: 2px solid #eceeef;
}
.table .table {
background-color: #fff;
}
.table-sm th,
.table-sm td {
padding: 0.3rem;
}
.table-bordered {
border: 1px solid #eceeef;
}
.table-bordered th,
.table-bordered td {
border: 1px solid #eceeef;
}
.table-bordered thead th,
.table-bordered thead td {
border-bottom-width: 2px;
}
.table-striped tbody tr:nth-of-type(odd) {
background-color: rgba(0, 0, 0, 0.05);
}
.table-hover tbody tr:hover {
background-color: rgba(0, 0, 0, 0.075);
}
.table-active,
.table-active > th,
.table-active > td {
background-color: rgba(0, 0, 0, 0.075);
}
.table-hover .table-active:hover {
background-color: rgba(0, 0, 0, 0.075);
}
.table-hover .table-active:hover > td,
.table-hover .table-active:hover > th {
background-color: rgba(0, 0, 0, 0.075);
}
.table-success,
.table-success > th,
.table-success > td {
background-color: #dff0d8;
}
.table-hover .table-success:hover {
background-color: #d0e9c6;
}
.table-hover .table-success:hover > td,
.table-hover .table-success:hover > th {
background-color: #d0e9c6;
}
.table-info,
.table-info > th,
.table-info > td {
background-color: #d9edf7;
}
.table-hover .table-info:hover {
background-color: #c4e3f3;
}
.table-hover .table-info:hover > td,
.table-hover .table-info:hover > th {
background-color: #c4e3f3;
}
.table-warning,
.table-warning > th,
.table-warning > td {
background-color: #fcf8e3;
}
.table-hover .table-warning:hover {
background-color: #faf2cc;
}
.table-hover .table-warning:hover > td,
.table-hover .table-warning:hover > th {
background-color: #faf2cc;
}
.table-danger,
.table-danger > th,
.table-danger > td {
background-color: #f2dede;
}
.table-hover .table-danger:hover {
background-color: #ebcccc;
}
.table-hover .table-danger:hover > td,
.table-hover .table-danger:hover > th {
background-color: #ebcccc;
}
.thead-inverse th {
color: #fff;
background-color: #292b2c;
}
.thead-default th {
color: #464a4c;
background-color: #eceeef;
}
.table-inverse {
color: #fff;
background-color: #292b2c;
}
.table-inverse th,
.table-inverse td,
.table-inverse thead th {
border-color: #fff;
}
.table-inverse.table-bordered {
border: 0;
}
.table-responsive {
display: block;
width: 100%;
overflow-x: auto;
-ms-overflow-style: -ms-autohiding-scrollbar;
}
.table-responsive.table-bordered {
border: 0;
}
.form-control {
display: block;
width: 100%;
padding: 0.5rem 0.75rem;
font-size: 1rem;
line-height: 1.25;
color: #464a4c;
background-color: #fff;
background-image: none;
-webkit-background-clip: padding-box;
background-clip: padding-box;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0.25rem;
-webkit-transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
-o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
}
.form-control::-ms-expand {
background-color: transparent;
border: 0;
}
.form-control:focus {
color: #464a4c;
background-color: #fff;
border-color: #5cb3fd;
outline: none;
}
.form-control::-webkit-input-placeholder {
color: #636c72;
opacity: 1;
}
.form-control::-moz-placeholder {
color: #636c72;
opacity: 1;
}
.form-control:-ms-input-placeholder {
color: #636c72;
opacity: 1;
}
.form-control::placeholder {
color: #636c72;
opacity: 1;
}
.form-control:disabled, .form-control[readonly] {
background-color: #eceeef;
opacity: 1;
}
.form-control:disabled {
cursor: not-allowed;
}
select.form-control:not([size]):not([multiple]) {
height: calc(2.25rem + 2px);
}
select.form-control:focus::-ms-value {
color: #464a4c;
background-color: #fff;
}
.form-control-file,
.form-control-range {
display: block;
}
.col-form-label {
padding-top: calc(0.5rem - 1px * 2);
padding-bottom: calc(0.5rem - 1px * 2);
margin-bottom: 0;
}
.col-form-label-lg {
padding-top: calc(0.75rem - 1px * 2);
padding-bottom: calc(0.75rem - 1px * 2);
font-size: 1.25rem;
}
.col-form-label-sm {
padding-top: calc(0.25rem - 1px * 2);
padding-bottom: calc(0.25rem - 1px * 2);
font-size: 0.875rem;
}
.col-form-legend {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
margin-bottom: 0;
font-size: 1rem;
}
.form-control-static {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
margin-bottom: 0;
line-height: 1.25;
border: solid transparent;
border-width: 1px 0;
}
.form-control-static.form-control-sm, .input-group-sm > .form-control-static.form-control,
.input-group-sm > .form-control-static.input-group-addon,
.input-group-sm > .input-group-btn > .form-control-static.btn, .form-control-static.form-control-lg, .input-group-lg > .form-control-static.form-control,
.input-group-lg > .form-control-static.input-group-addon,
.input-group-lg > .input-group-btn > .form-control-static.btn {
padding-right: 0;
padding-left: 0;
}
.form-control-sm, .input-group-sm > .form-control,
.input-group-sm > .input-group-addon,
.input-group-sm > .input-group-btn > .btn {
padding: 0.25rem 0.5rem;
font-size: 0.875rem;
border-radius: 0.2rem;
}
select.form-control-sm:not([size]):not([multiple]), .input-group-sm > select.form-control:not([size]):not([multiple]),
.input-group-sm > select.input-group-addon:not([size]):not([multiple]),
.input-group-sm > .input-group-btn > select.btn:not([size]):not([multiple]) {
height: 1.8125rem;
}
.form-control-lg, .input-group-lg > .form-control,
.input-group-lg > .input-group-addon,
.input-group-lg > .input-group-btn > .btn {
padding: 0.75rem 1.5rem;
font-size: 1.25rem;
border-radius: 0.3rem;
}
select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.form-control:not([size]):not([multiple]),
.input-group-lg > select.input-group-addon:not([size]):not([multiple]),
.input-group-lg > .input-group-btn > select.btn:not([size]):not([multiple]) {
height: 3.166667rem;
}
.form-group {
margin-bottom: 1rem;
}
.form-text {
display: block;
margin-top: 0.25rem;
}
.form-check {
position: relative;
display: block;
margin-bottom: 0.5rem;
}
.form-check.disabled .form-check-label {
color: #636c72;
cursor: not-allowed;
}
.form-check-label {
padding-left: 1.25rem;
margin-bottom: 0;
cursor: pointer;
}
.form-check-input {
position: absolute;
margin-top: 0.25rem;
margin-left: -1.25rem;
}
.form-check-input:only-child {
position: static;
}
.form-check-inline {
display: inline-block;
}
.form-check-inline .form-check-label {
vertical-align: middle;
}
.form-check-inline + .form-check-inline {
margin-left: 0.75rem;
}
.form-control-feedback {
margin-top: 0.25rem;
}
.form-control-success,
.form-control-warning,
.form-control-danger {
padding-right: 2.25rem;
background-repeat: no-repeat;
background-position: center right 0.5625rem;
-webkit-background-size: 1.125rem 1.125rem;
background-size: 1.125rem 1.125rem;
}
.has-success .form-control-feedback,
.has-success .form-control-label,
.has-success .col-form-label,
.has-success .form-check-label,
.has-success .custom-control {
color: #5cb85c;
}
.has-success .form-control {
border-color: #5cb85c;
}
.has-success .input-group-addon {
color: #5cb85c;
border-color: #5cb85c;
background-color: #eaf6ea;
}
.has-success .form-control-success {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%235cb85c' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E");
}
.has-warning .form-control-feedback,
.has-warning .form-control-label,
.has-warning .col-form-label,
.has-warning .form-check-label,
.has-warning .custom-control {
color: #f0ad4e;
}
.has-warning .form-control {
border-color: #f0ad4e;
}
.has-warning .input-group-addon {
color: #f0ad4e;
border-color: #f0ad4e;
background-color: white;
}
.has-warning .form-control-warning {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23f0ad4e' d='M4.4 5.324h-.8v-2.46h.8zm0 1.42h-.8V5.89h.8zM3.76.63L.04 7.075c-.115.2.016.425.26.426h7.397c.242 0 .372-.226.258-.426C6.726 4.924 5.47 2.79 4.253.63c-.113-.174-.39-.174-.494 0z'/%3E%3C/svg%3E");
}
.has-danger .form-control-feedback,
.has-danger .form-control-label,
.has-danger .col-form-label,
.has-danger .form-check-label,
.has-danger .custom-control {
color: #d9534f;
}
.has-danger .form-control {
border-color: #d9534f;
}
.has-danger .input-group-addon {
color: #d9534f;
border-color: #d9534f;
background-color: #fdf7f7;
}
.has-danger .form-control-danger {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23d9534f' viewBox='-2 -2 7 7'%3E%3Cpath stroke='%23d9534f' d='M0 0l3 3m0-3L0 3'/%3E%3Ccircle r='.5'/%3E%3Ccircle cx='3' r='.5'/%3E%3Ccircle cy='3' r='.5'/%3E%3Ccircle cx='3' cy='3' r='.5'/%3E%3C/svg%3E");
}
.form-inline {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-flow: row wrap;
-ms-flex-flow: row wrap;
flex-flow: row wrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.form-inline .form-check {
width: 100%;
}
@media (min-width: 576px) {
.form-inline label {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
margin-bottom: 0;
}
.form-inline .form-group {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-flex: 0;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
-webkit-flex-flow: row wrap;
-ms-flex-flow: row wrap;
flex-flow: row wrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
margin-bottom: 0;
}
.form-inline .form-control {
display: inline-block;
width: auto;
vertical-align: middle;
}
.form-inline .form-control-static {
display: inline-block;
}
.form-inline .input-group {
width: auto;
}
.form-inline .form-control-label {
margin-bottom: 0;
vertical-align: middle;
}
.form-inline .form-check {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
width: auto;
margin-top: 0;
margin-bottom: 0;
}
.form-inline .form-check-label {
padding-left: 0;
}
.form-inline .form-check-input {
position: relative;
margin-top: 0;
margin-right: 0.25rem;
margin-left: 0;
}
.form-inline .custom-control {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
padding-left: 0;
}
.form-inline .custom-control-indicator {
position: static;
display: inline-block;
margin-right: 0.25rem;
vertical-align: text-bottom;
}
.form-inline .has-feedback .form-control-feedback {
top: 0;
}
}
.btn {
display: inline-block;
font-weight: normal;
line-height: 1.25;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
border: 1px solid transparent;
padding: 0.5rem 1rem;
font-size: 1rem;
border-radius: 0.25rem;
-webkit-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
.btn:focus, .btn:hover {
text-decoration: none;
}
.btn:focus, .btn.focus {
outline: 0;
-webkit-box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.25);
box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.25);
}
.btn.disabled, .btn:disabled {
cursor: not-allowed;
opacity: .65;
}
.btn:active, .btn.active {
background-image: none;
}
a.btn.disabled,
fieldset[disabled] a.btn {
pointer-events: none;
}
.btn-primary {
color: #fff;
background-color: #0275d8;
border-color: #0275d8;
}
.btn-primary:hover {
color: #fff;
background-color: #025aa5;
border-color: #01549b;
}
.btn-primary:focus, .btn-primary.focus {
-webkit-box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.5);
box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.5);
}
.btn-primary.disabled, .btn-primary:disabled {
background-color: #0275d8;
border-color: #0275d8;
}
.btn-primary:active, .btn-primary.active,
.show > .btn-primary.dropdown-toggle {
color: #fff;
background-color: #025aa5;
background-image: none;
border-color: #01549b;
}
.btn-secondary {
color: #292b2c;
background-color: #fff;
border-color: #ccc;
}
.btn-secondary:hover {
color: #292b2c;
background-color: #e6e6e6;
border-color: #adadad;
}
.btn-secondary:focus, .btn-secondary.focus {
-webkit-box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.5);
box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.5);
}
.btn-secondary.disabled, .btn-secondary:disabled {
background-color: #fff;
border-color: #ccc;
}
.btn-secondary:active, .btn-secondary.active,
.show > .btn-secondary.dropdown-toggle {
color: #292b2c;
background-color: #e6e6e6;
background-image: none;
border-color: #adadad;
}
.btn-info {
color: #fff;
background-color: #5bc0de;
border-color: #5bc0de;
}
.btn-info:hover {
color: #fff;
background-color: #31b0d5;
border-color: #2aabd2;
}
.btn-info:focus, .btn-info.focus {
-webkit-box-shadow: 0 0 0 2px rgba(91, 192, 222, 0.5);
box-shadow: 0 0 0 2px rgba(91, 192, 222, 0.5);
}
.btn-info.disabled, .btn-info:disabled {
background-color: #5bc0de;
border-color: #5bc0de;
}
.btn-info:active, .btn-info.active,
.show > .btn-info.dropdown-toggle {
color: #fff;
background-color: #31b0d5;
background-image: none;
border-color: #2aabd2;
}
.btn-success {
color: #fff;
background-color: #5cb85c;
border-color: #5cb85c;
}
.btn-success:hover {
color: #fff;
background-color: #449d44;
border-color: #419641;
}
.btn-success:focus, .btn-success.focus {
-webkit-box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.5);
box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.5);
}
.btn-success.disabled, .btn-success:disabled {
background-color: #5cb85c;
border-color: #5cb85c;
}
.btn-success:active, .btn-success.active,
.show > .btn-success.dropdown-toggle {
color: #fff;
background-color: #449d44;
background-image: none;
border-color: #419641;
}
.btn-warning {
color: #fff;
background-color: #f0ad4e;
border-color: #f0ad4e;
}
.btn-warning:hover {
color: #fff;
background-color: #ec971f;
border-color: #eb9316;
}
.btn-warning:focus, .btn-warning.focus {
-webkit-box-shadow: 0 0 0 2px rgba(240, 173, 78, 0.5);
box-shadow: 0 0 0 2px rgba(240, 173, 78, 0.5);
}
.btn-warning.disabled, .btn-warning:disabled {
background-color: #f0ad4e;
border-color: #f0ad4e;
}
.btn-warning:active, .btn-warning.active,
.show > .btn-warning.dropdown-toggle {
color: #fff;
background-color: #ec971f;
background-image: none;
border-color: #eb9316;
}
.btn-danger {
color: #fff;
background-color: #d9534f;
border-color: #d9534f;
}
.btn-danger:hover {
color: #fff;
background-color: #c9302c;
border-color: #c12e2a;
}
.btn-danger:focus, .btn-danger.focus {
-webkit-box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.5);
box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.5);
}
.btn-danger.disabled, .btn-danger:disabled {
background-color: #d9534f;
border-color: #d9534f;
}
.btn-danger:active, .btn-danger.active,
.show > .btn-danger.dropdown-toggle {
color: #fff;
background-color: #c9302c;
background-image: none;
border-color: #c12e2a;
}
.btn-outline-primary {
color: #0275d8;
background-image: none;
background-color: transparent;
border-color: #0275d8;
}
.btn-outline-primary:hover {
color: #fff;
background-color: #0275d8;
border-color: #0275d8;
}
.btn-outline-primary:focus, .btn-outline-primary.focus {
-webkit-box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.5);
box-shadow: 0 0 0 2px rgba(2, 117, 216, 0.5);
}
.btn-outline-primary.disabled, .btn-outline-primary:disabled {
color: #0275d8;
background-color: transparent;
}
.btn-outline-primary:active, .btn-outline-primary.active,
.show > .btn-outline-primary.dropdown-toggle {
color: #fff;
background-color: #0275d8;
border-color: #0275d8;
}
.btn-outline-secondary {
color: #ccc;
background-image: none;
background-color: transparent;
border-color: #ccc;
}
.btn-outline-secondary:hover {
color: #fff;
background-color: #ccc;
border-color: #ccc;
}
.btn-outline-secondary:focus, .btn-outline-secondary.focus {
-webkit-box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.5);
box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.5);
}
.btn-outline-secondary.disabled, .btn-outline-secondary:disabled {
color: #ccc;
background-color: transparent;
}
.btn-outline-secondary:active, .btn-outline-secondary.active,
.show > .btn-outline-secondary.dropdown-toggle {
color: #fff;
background-color: #ccc;
border-color: #ccc;
}
.btn-outline-info {
color: #5bc0de;
background-image: none;
background-color: transparent;
border-color: #5bc0de;
}
.btn-outline-info:hover {
color: #fff;
background-color: #5bc0de;
border-color: #5bc0de;
}
.btn-outline-info:focus, .btn-outline-info.focus {
-webkit-box-shadow: 0 0 0 2px rgba(91, 192, 222, 0.5);
box-shadow: 0 0 0 2px rgba(91, 192, 222, 0.5);
}
.btn-outline-info.disabled, .btn-outline-info:disabled {
color: #5bc0de;
background-color: transparent;
}
.btn-outline-info:active, .btn-outline-info.active,
.show > .btn-outline-info.dropdown-toggle {
color: #fff;
background-color: #5bc0de;
border-color: #5bc0de;
}
.btn-outline-success {
color: #5cb85c;
background-image: none;
background-color: transparent;
border-color: #5cb85c;
}
.btn-outline-success:hover {
color: #fff;
background-color: #5cb85c;
border-color: #5cb85c;
}
.btn-outline-success:focus, .btn-outline-success.focus {
-webkit-box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.5);
box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.5);
}
.btn-outline-success.disabled, .btn-outline-success:disabled {
color: #5cb85c;
background-color: transparent;
}
.btn-outline-success:active, .btn-outline-success.active,
.show > .btn-outline-success.dropdown-toggle {
color: #fff;
background-color: #5cb85c;
border-color: #5cb85c;
}
.btn-outline-warning {
color: #f0ad4e;
background-image: none;
background-color: transparent;
border-color: #f0ad4e;
}
.btn-outline-warning:hover {
color: #fff;
background-color: #f0ad4e;
border-color: #f0ad4e;
}
.btn-outline-warning:focus, .btn-outline-warning.focus {
-webkit-box-shadow: 0 0 0 2px rgba(240, 173, 78, 0.5);
box-shadow: 0 0 0 2px rgba(240, 173, 78, 0.5);
}
.btn-outline-warning.disabled, .btn-outline-warning:disabled {
color: #f0ad4e;
background-color: transparent;
}
.btn-outline-warning:active, .btn-outline-warning.active,
.show > .btn-outline-warning.dropdown-toggle {
color: #fff;
background-color: #f0ad4e;
border-color: #f0ad4e;
}
.btn-outline-danger {
color: #d9534f;
background-image: none;
background-color: transparent;
border-color: #d9534f;
}
.btn-outline-danger:hover {
color: #fff;
background-color: #d9534f;
border-color: #d9534f;
}
.btn-outline-danger:focus, .btn-outline-danger.focus {
-webkit-box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.5);
box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.5);
}
.btn-outline-danger.disabled, .btn-outline-danger:disabled {
color: #d9534f;
background-color: transparent;
}
.btn-outline-danger:active, .btn-outline-danger.active,
.show > .btn-outline-danger.dropdown-toggle {
color: #fff;
background-color: #d9534f;
border-color: #d9534f;
}
.btn-link {
font-weight: normal;
color: #0275d8;
border-radius: 0;
}
.btn-link, .btn-link:active, .btn-link.active, .btn-link:disabled {
background-color: transparent;
}
.btn-link, .btn-link:focus, .btn-link:active {
border-color: transparent;
}
.btn-link:hover {
border-color: transparent;
}
.btn-link:focus, .btn-link:hover {
color: #014c8c;
text-decoration: underline;
background-color: transparent;
}
.btn-link:disabled {
color: #636c72;
}
.btn-link:disabled:focus, .btn-link:disabled:hover {
text-decoration: none;
}
.btn-lg, .btn-group-lg > .btn {
padding: 0.75rem 1.5rem;
font-size: 1.25rem;
border-radius: 0.3rem;
}
.btn-sm, .btn-group-sm > .btn {
padding: 0.25rem 0.5rem;
font-size: 0.875rem;
border-radius: 0.2rem;
}
.btn-block {
display: block;
width: 100%;
}
.btn-block + .btn-block {
margin-top: 0.5rem;
}
input[type="submit"].btn-block,
input[type="reset"].btn-block,
input[type="button"].btn-block {
width: 100%;
}
.fade {
opacity: 0;
-webkit-transition: opacity 0.15s linear;
-o-transition: opacity 0.15s linear;
transition: opacity 0.15s linear;
}
.fade.show {
opacity: 1;
}
.collapse {
display: none;
}
.collapse.show {
display: block;
}
tr.collapse.show {
display: table-row;
}
tbody.collapse.show {
display: table-row-group;
}
.collapsing {
position: relative;
height: 0;
overflow: hidden;
-webkit-transition: height 0.35s ease;
-o-transition: height 0.35s ease;
transition: height 0.35s ease;
}
.dropup,
.dropdown {
position: relative;
}
.dropdown-toggle::after {
display: inline-block;
width: 0;
height: 0;
margin-left: 0.3em;
vertical-align: middle;
content: "";
border-top: 0.3em solid;
border-right: 0.3em solid transparent;
border-left: 0.3em solid transparent;
}
.dropdown-toggle:focus {
outline: 0;
}
.dropup .dropdown-toggle::after {
border-top: 0;
border-bottom: 0.3em solid;
}
.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
display: none;
float: left;
min-width: 10rem;
padding: 0.5rem 0;
margin: 0.125rem 0 0;
font-size: 1rem;
color: #292b2c;
text-align: left;
list-style: none;
background-color: #fff;
-webkit-background-clip: padding-box;
background-clip: padding-box;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0.25rem;
}
.dropdown-divider {
height: 1px;
margin: 0.5rem 0;
overflow: hidden;
background-color: #eceeef;
}
.dropdown-item {
display: block;
width: 100%;
padding: 3px 1.5rem;
clear: both;
font-weight: normal;
color: #292b2c;
text-align: inherit;
white-space: nowrap;
background: none;
border: 0;
}
.dropdown-item:focus, .dropdown-item:hover {
color: #1d1e1f;
text-decoration: none;
background-color: #f7f7f9;
}
.dropdown-item.active, .dropdown-item:active {
color: #fff;
text-decoration: none;
background-color: #0275d8;
}
.dropdown-item.disabled, .dropdown-item:disabled {
color: #636c72;
cursor: not-allowed;
background-color: transparent;
}
.show > .dropdown-menu {
display: block;
}
.show > a {
outline: 0;
}
.dropdown-menu-right {
right: 0;
left: auto;
}
.dropdown-menu-left {
right: auto;
left: 0;
}
.dropdown-header {
display: block;
padding: 0.5rem 1.5rem;
margin-bottom: 0;
font-size: 0.875rem;
color: #636c72;
white-space: nowrap;
}
.dropdown-backdrop {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 990;
}
.dropup .dropdown-menu {
top: auto;
bottom: 100%;
margin-bottom: 0.125rem;
}
.btn-group,
.btn-group-vertical {
position: relative;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
vertical-align: middle;
}
.btn-group > .btn,
.btn-group-vertical > .btn {
position: relative;
-webkit-box-flex: 0;
-webkit-flex: 0 1 auto;
-ms-flex: 0 1 auto;
flex: 0 1 auto;
}
.btn-group > .btn:hover,
.btn-group-vertical > .btn:hover {
z-index: 2;
}
.btn-group > .btn:focus, .btn-group > .btn:active, .btn-group > .btn.active,
.btn-group-vertical > .btn:focus,
.btn-group-vertical > .btn:active,
.btn-group-vertical > .btn.active {
z-index: 2;
}
.btn-group .btn + .btn,
.btn-group .btn + .btn-group,
.btn-group .btn-group + .btn,
.btn-group .btn-group + .btn-group,
.btn-group-vertical .btn + .btn,
.btn-group-vertical .btn + .btn-group,
.btn-group-vertical .btn-group + .btn,
.btn-group-vertical .btn-group + .btn-group {
margin-left: -1px;
}
.btn-toolbar {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
}
.btn-toolbar .input-group {
width: auto;
}
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
border-radius: 0;
}
.btn-group > .btn:first-child {
margin-left: 0;
}
.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
.btn-group > .btn:last-child:not(:first-child),
.btn-group > .dropdown-toggle:not(:first-child) {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
.btn-group > .btn-group {
float: left;
}
.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
border-radius: 0;
}
.btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child,
.btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
.btn-group .dropdown-toggle:active,
.btn-group.open .dropdown-toggle {
outline: 0;
}
.btn + .dropdown-toggle-split {
padding-right: 0.75rem;
padding-left: 0.75rem;
}
.btn + .dropdown-toggle-split::after {
margin-left: 0;
}
.btn-sm + .dropdown-toggle-split, .btn-group-sm > .btn + .dropdown-toggle-split {
padding-right: 0.375rem;
padding-left: 0.375rem;
}
.btn-lg + .dropdown-toggle-split, .btn-group-lg > .btn + .dropdown-toggle-split {
padding-right: 1.125rem;
padding-left: 1.125rem;
}
.btn-group-vertical {
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-align: start;
-webkit-align-items: flex-start;
-ms-flex-align: start;
align-items: flex-start;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
}
.btn-group-vertical .btn,
.btn-group-vertical .btn-group {
width: 100%;
}
.btn-group-vertical > .btn + .btn,
.btn-group-vertical > .btn + .btn-group,
.btn-group-vertical > .btn-group + .btn,
.btn-group-vertical > .btn-group + .btn-group {
margin-top: -1px;
margin-left: 0;
}
.btn-group-vertical > .btn:not(:first-child):not(:last-child) {
border-radius: 0;
}
.btn-group-vertical > .btn:first-child:not(:last-child) {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.btn-group-vertical > .btn:last-child:not(:first-child) {
border-top-right-radius: 0;
border-top-left-radius: 0;
}
.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
border-radius: 0;
}
.btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child,
.btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {
border-top-right-radius: 0;
border-top-left-radius: 0;
}
[data-toggle="buttons"] > .btn input[type="radio"],
[data-toggle="buttons"] > .btn input[type="checkbox"],
[data-toggle="buttons"] > .btn-group > .btn input[type="radio"],
[data-toggle="buttons"] > .btn-group > .btn input[type="checkbox"] {
position: absolute;
clip: rect(0, 0, 0, 0);
pointer-events: none;
}
.input-group {
position: relative;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
width: 100%;
}
.input-group .form-control {
position: relative;
z-index: 2;
-webkit-box-flex: 1;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
width: 1%;
margin-bottom: 0;
}
.input-group .form-control:focus, .input-group .form-control:active, .input-group .form-control:hover {
z-index: 3;
}
.input-group-addon,
.input-group-btn,
.input-group .form-control {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
}
.input-group-addon:not(:first-child):not(:last-child),
.input-group-btn:not(:first-child):not(:last-child),
.input-group .form-control:not(:first-child):not(:last-child) {
border-radius: 0;
}
.input-group-addon,
.input-group-btn {
white-space: nowrap;
vertical-align: middle;
}
.input-group-addon {
padding: 0.5rem 0.75rem;
margin-bottom: 0;
font-size: 1rem;
font-weight: normal;
line-height: 1.25;
color: #464a4c;
text-align: center;
background-color: #eceeef;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0.25rem;
}
.input-group-addon.form-control-sm,
.input-group-sm > .input-group-addon,
.input-group-sm > .input-group-btn > .input-group-addon.btn {
padding: 0.25rem 0.5rem;
font-size: 0.875rem;
border-radius: 0.2rem;
}
.input-group-addon.form-control-lg,
.input-group-lg > .input-group-addon,
.input-group-lg > .input-group-btn > .input-group-addon.btn {
padding: 0.75rem 1.5rem;
font-size: 1.25rem;
border-radius: 0.3rem;
}
.input-group-addon input[type="radio"],
.input-group-addon input[type="checkbox"] {
margin-top: 0;
}
.input-group .form-control:not(:last-child),
.input-group-addon:not(:last-child),
.input-group-btn:not(:last-child) > .btn,
.input-group-btn:not(:last-child) > .btn-group > .btn,
.input-group-btn:not(:last-child) > .dropdown-toggle,
.input-group-btn:not(:first-child) > .btn:not(:last-child):not(.dropdown-toggle),
.input-group-btn:not(:first-child) > .btn-group:not(:last-child) > .btn {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
.input-group-addon:not(:last-child) {
border-right: 0;
}
.input-group .form-control:not(:first-child),
.input-group-addon:not(:first-child),
.input-group-btn:not(:first-child) > .btn,
.input-group-btn:not(:first-child) > .btn-group > .btn,
.input-group-btn:not(:first-child) > .dropdown-toggle,
.input-group-btn:not(:last-child) > .btn:not(:first-child),
.input-group-btn:not(:last-child) > .btn-group:not(:first-child) > .btn {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
.form-control + .input-group-addon:not(:first-child) {
border-left: 0;
}
.input-group-btn {
position: relative;
font-size: 0;
white-space: nowrap;
}
.input-group-btn > .btn {
position: relative;
-webkit-box-flex: 1;
-webkit-flex: 1 1 0%;
-ms-flex: 1 1 0%;
flex: 1 1 0%;
}
.input-group-btn > .btn + .btn {
margin-left: -1px;
}
.input-group-btn > .btn:focus, .input-group-btn > .btn:active, .input-group-btn > .btn:hover {
z-index: 3;
}
.input-group-btn:not(:last-child) > .btn,
.input-group-btn:not(:last-child) > .btn-group {
margin-right: -1px;
}
.input-group-btn:not(:first-child) > .btn,
.input-group-btn:not(:first-child) > .btn-group {
z-index: 2;
margin-left: -1px;
}
.input-group-btn:not(:first-child) > .btn:focus, .input-group-btn:not(:first-child) > .btn:active, .input-group-btn:not(:first-child) > .btn:hover,
.input-group-btn:not(:first-child) > .btn-group:focus,
.input-group-btn:not(:first-child) > .btn-group:active,
.input-group-btn:not(:first-child) > .btn-group:hover {
z-index: 3;
}
.custom-control {
position: relative;
display: -webkit-inline-box;
display: -webkit-inline-flex;
display: -ms-inline-flexbox;
display: inline-flex;
min-height: 1.5rem;
padding-left: 1.5rem;
margin-right: 1rem;
cursor: pointer;
}
.custom-control-input {
position: absolute;
z-index: -1;
opacity: 0;
}
.custom-control-input:checked ~ .custom-control-indicator {
color: #fff;
background-color: #0275d8;
}
.custom-control-input:focus ~ .custom-control-indicator {
-webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #0275d8;
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #0275d8;
}
.custom-control-input:active ~ .custom-control-indicator {
color: #fff;
background-color: #8fcafe;
}
.custom-control-input:disabled ~ .custom-control-indicator {
cursor: not-allowed;
background-color: #eceeef;
}
.custom-control-input:disabled ~ .custom-control-description {
color: #636c72;
cursor: not-allowed;
}
.custom-control-indicator {
position: absolute;
top: 0.25rem;
left: 0;
display: block;
width: 1rem;
height: 1rem;
pointer-events: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-color: #ddd;
background-repeat: no-repeat;
background-position: center center;
-webkit-background-size: 50% 50%;
background-size: 50% 50%;
}
.custom-checkbox .custom-control-indicator {
border-radius: 0.25rem;
}
.custom-checkbox .custom-control-input:checked ~ .custom-control-indicator {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E");
}
.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-indicator {
background-color: #0275d8;
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3E%3Cpath stroke='%23fff' d='M0 2h4'/%3E%3C/svg%3E");
}
.custom-radio .custom-control-indicator {
border-radius: 50%;
}
.custom-radio .custom-control-input:checked ~ .custom-control-indicator {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E");
}
.custom-controls-stacked {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
}
.custom-controls-stacked .custom-control {
margin-bottom: 0.25rem;
}
.custom-controls-stacked .custom-control + .custom-control {
margin-left: 0;
}
.custom-select {
display: inline-block;
max-width: 100%;
height: calc(2.25rem + 2px);
padding: 0.375rem 1.75rem 0.375rem 0.75rem;
line-height: 1.25;
color: #464a4c;
vertical-align: middle;
background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
-webkit-background-size: 8px 10px;
background-size: 8px 10px;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0.25rem;
-moz-appearance: none;
-webkit-appearance: none;
}
.custom-select:focus {
border-color: #5cb3fd;
outline: none;
}
.custom-select:focus::-ms-value {
color: #464a4c;
background-color: #fff;
}
.custom-select:disabled {
color: #636c72;
cursor: not-allowed;
background-color: #eceeef;
}
.custom-select::-ms-expand {
opacity: 0;
}
.custom-select-sm {
padding-top: 0.375rem;
padding-bottom: 0.375rem;
font-size: 75%;
}
.custom-file {
position: relative;
display: inline-block;
max-width: 100%;
height: 2.5rem;
margin-bottom: 0;
cursor: pointer;
}
.custom-file-input {
min-width: 14rem;
max-width: 100%;
height: 2.5rem;
margin: 0;
filter: alpha(opacity=0);
opacity: 0;
}
.custom-file-control {
position: absolute;
top: 0;
right: 0;
left: 0;
z-index: 5;
height: 2.5rem;
padding: 0.5rem 1rem;
line-height: 1.5;
color: #464a4c;
pointer-events: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-color: #fff;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0.25rem;
}
.custom-file-control:lang(en)::after {
content: "Choose file...";
}
.custom-file-control::before {
position: absolute;
top: -1px;
right: -1px;
bottom: -1px;
z-index: 6;
display: block;
height: 2.5rem;
padding: 0.5rem 1rem;
line-height: 1.5;
color: #464a4c;
background-color: #eceeef;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 0 0.25rem 0.25rem 0;
}
.custom-file-control:lang(en)::before {
content: "Browse";
}
.nav {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
padding-left: 0;
margin-bottom: 0;
list-style: none;
}
.nav-link {
display: block;
padding: 0.5em 1em;
}
.nav-link:focus, .nav-link:hover {
text-decoration: none;
}
.nav-link.disabled {
color: #636c72;
cursor: not-allowed;
}
.nav-tabs {
border-bottom: 1px solid #ddd;
}
.nav-tabs .nav-item {
margin-bottom: -1px;
}
.nav-tabs .nav-link {
border: 1px solid transparent;
border-top-right-radius: 0.25rem;
border-top-left-radius: 0.25rem;
}
.nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover {
border-color: #eceeef #eceeef #ddd;
}
.nav-tabs .nav-link.disabled {
color: #636c72;
background-color: transparent;
border-color: transparent;
}
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
color: #464a4c;
background-color: #fff;
border-color: #ddd #ddd #fff;
}
.nav-tabs .dropdown-menu {
margin-top: -1px;
border-top-right-radius: 0;
border-top-left-radius: 0;
}
.nav-pills .nav-link {
border-radius: 0.25rem;
}
.nav-pills .nav-link.active,
.nav-pills .nav-item.show .nav-link {
color: #fff;
cursor: default;
background-color: #0275d8;
}
.nav-fill .nav-item {
-webkit-box-flex: 1;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
text-align: center;
}
.nav-justified .nav-item {
-webkit-box-flex: 1;
-webkit-flex: 1 1 100%;
-ms-flex: 1 1 100%;
flex: 1 1 100%;
text-align: center;
}
.tab-content > .tab-pane {
display: none;
}
.tab-content > .active {
display: block;
}
.navbar {
position: relative;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
padding: 0.5rem 1rem;
}
.navbar-brand {
display: inline-block;
padding-top: .25rem;
padding-bottom: .25rem;
margin-right: 1rem;
font-size: 1.25rem;
line-height: inherit;
white-space: nowrap;
}
.navbar-brand:focus, .navbar-brand:hover {
text-decoration: none;
}
.navbar-nav {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
padding-left: 0;
margin-bottom: 0;
list-style: none;
}
.navbar-nav .nav-link {
padding-right: 0;
padding-left: 0;
}
.navbar-text {
display: inline-block;
padding-top: .425rem;
padding-bottom: .425rem;
}
.navbar-toggler {
-webkit-align-self: flex-start;
-ms-flex-item-align: start;
align-self: flex-start;
padding: 0.25rem 0.75rem;
font-size: 1.25rem;
line-height: 1;
background: transparent;
border: 1px solid transparent;
border-radius: 0.25rem;
}
.navbar-toggler:focus, .navbar-toggler:hover {
text-decoration: none;
}
.navbar-toggler-icon {
display: inline-block;
width: 1.5em;
height: 1.5em;
vertical-align: middle;
content: "";
background: no-repeat center center;
-webkit-background-size: 100% 100%;
background-size: 100% 100%;
}
.navbar-toggler-left {
position: absolute;
left: 1rem;
}
.navbar-toggler-right {
position: absolute;
right: 1rem;
}
@media (max-width: 575px) {
.navbar-toggleable .navbar-nav .dropdown-menu {
position: static;
float: none;
}
.navbar-toggleable > .container {
padding-right: 0;
padding-left: 0;
}
}
@media (min-width: 576px) {
.navbar-toggleable {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.navbar-toggleable .navbar-nav {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
}
.navbar-toggleable .navbar-nav .nav-link {
padding-right: .5rem;
padding-left: .5rem;
}
.navbar-toggleable > .container {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.navbar-toggleable .navbar-collapse {
display: -webkit-box !important;
display: -webkit-flex !important;
display: -ms-flexbox !important;
display: flex !important;
width: 100%;
}
.navbar-toggleable .navbar-toggler {
display: none;
}
}
@media (max-width: 767px) {
.navbar-toggleable-sm .navbar-nav .dropdown-menu {
position: static;
float: none;
}
.navbar-toggleable-sm > .container {
padding-right: 0;
padding-left: 0;
}
}
@media (min-width: 768px) {
.navbar-toggleable-sm {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.navbar-toggleable-sm .navbar-nav {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
}
.navbar-toggleable-sm .navbar-nav .nav-link {
padding-right: .5rem;
padding-left: .5rem;
}
.navbar-toggleable-sm > .container {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.navbar-toggleable-sm .navbar-collapse {
display: -webkit-box !important;
display: -webkit-flex !important;
display: -ms-flexbox !important;
display: flex !important;
width: 100%;
}
.navbar-toggleable-sm .navbar-toggler {
display: none;
}
}
@media (max-width: 991px) {
.navbar-toggleable-md .navbar-nav .dropdown-menu {
position: static;
float: none;
}
.navbar-toggleable-md > .container {
padding-right: 0;
padding-left: 0;
}
}
@media (min-width: 992px) {
.navbar-toggleable-md {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.navbar-toggleable-md .navbar-nav {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
}
.navbar-toggleable-md .navbar-nav .nav-link {
padding-right: .5rem;
padding-left: .5rem;
}
.navbar-toggleable-md > .container {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.navbar-toggleable-md .navbar-collapse {
display: -webkit-box !important;
display: -webkit-flex !important;
display: -ms-flexbox !important;
display: flex !important;
width: 100%;
}
.navbar-toggleable-md .navbar-toggler {
display: none;
}
}
@media (max-width: 1199px) {
.navbar-toggleable-lg .navbar-nav .dropdown-menu {
position: static;
float: none;
}
.navbar-toggleable-lg > .container {
padding-right: 0;
padding-left: 0;
}
}
@media (min-width: 1200px) {
.navbar-toggleable-lg {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.navbar-toggleable-lg .navbar-nav {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
}
.navbar-toggleable-lg .navbar-nav .nav-link {
padding-right: .5rem;
padding-left: .5rem;
}
.navbar-toggleable-lg > .container {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.navbar-toggleable-lg .navbar-collapse {
display: -webkit-box !important;
display: -webkit-flex !important;
display: -ms-flexbox !important;
display: flex !important;
width: 100%;
}
.navbar-toggleable-lg .navbar-toggler {
display: none;
}
}
.navbar-toggleable-xl {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.navbar-toggleable-xl .navbar-nav .dropdown-menu {
position: static;
float: none;
}
.navbar-toggleable-xl > .container {
padding-right: 0;
padding-left: 0;
}
.navbar-toggleable-xl .navbar-nav {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
}
.navbar-toggleable-xl .navbar-nav .nav-link {
padding-right: .5rem;
padding-left: .5rem;
}
.navbar-toggleable-xl > .container {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.navbar-toggleable-xl .navbar-collapse {
display: -webkit-box !important;
display: -webkit-flex !important;
display: -ms-flexbox !important;
display: flex !important;
width: 100%;
}
.navbar-toggleable-xl .navbar-toggler {
display: none;
}
.navbar-light .navbar-brand,
.navbar-light .navbar-toggler {
color: rgba(0, 0, 0, 0.9);
}
.navbar-light .navbar-brand:focus, .navbar-light .navbar-brand:hover,
.navbar-light .navbar-toggler:focus,
.navbar-light .navbar-toggler:hover {
color: rgba(0, 0, 0, 0.9);
}
.navbar-light .navbar-nav .nav-link {
color: rgba(0, 0, 0, 0.5);
}
.navbar-light .navbar-nav .nav-link:focus, .navbar-light .navbar-nav .nav-link:hover {
color: rgba(0, 0, 0, 0.7);
}
.navbar-light .navbar-nav .nav-link.disabled {
color: rgba(0, 0, 0, 0.3);
}
.navbar-light .navbar-nav .open > .nav-link,
.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.open,
.navbar-light .navbar-nav .nav-link.active {
color: rgba(0, 0, 0, 0.9);
}
.navbar-light .navbar-toggler {
border-color: rgba(0, 0, 0, 0.1);
}
.navbar-light .navbar-toggler-icon {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}
.navbar-light .navbar-text {
color: rgba(0, 0, 0, 0.5);
}
.navbar-inverse .navbar-brand,
.navbar-inverse .navbar-toggler {
color: white;
}
.navbar-inverse .navbar-brand:focus, .navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-toggler:focus,
.navbar-inverse .navbar-toggler:hover {
color: white;
}
.navbar-inverse .navbar-nav .nav-link {
color: rgba(255, 255, 255, 0.5);
}
.navbar-inverse .navbar-nav .nav-link:focus, .navbar-inverse .navbar-nav .nav-link:hover {
color: rgba(255, 255, 255, 0.75);
}
.navbar-inverse .navbar-nav .nav-link.disabled {
color: rgba(255, 255, 255, 0.25);
}
.navbar-inverse .navbar-nav .open > .nav-link,
.navbar-inverse .navbar-nav .active > .nav-link,
.navbar-inverse .navbar-nav .nav-link.open,
.navbar-inverse .navbar-nav .nav-link.active {
color: white;
}
.navbar-inverse .navbar-toggler {
border-color: rgba(255, 255, 255, 0.1);
}
.navbar-inverse .navbar-toggler-icon {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}
.navbar-inverse .navbar-text {
color: rgba(255, 255, 255, 0.5);
}
.card {
position: relative;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
background-color: #fff;
border: 1px solid rgba(0, 0, 0, 0.125);
border-radius: 0.25rem;
}
.card-block {
-webkit-box-flex: 1;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
padding: 1.25rem;
}
.card-title {
margin-bottom: 0.75rem;
}
.card-subtitle {
margin-top: -0.375rem;
margin-bottom: 0;
}
.card-text:last-child {
margin-bottom: 0;
}
.card-link:hover {
text-decoration: none;
}
.card-link + .card-link {
margin-left: 1.25rem;
}
.card > .list-group:first-child .list-group-item:first-child {
border-top-right-radius: 0.25rem;
border-top-left-radius: 0.25rem;
}
.card > .list-group:last-child .list-group-item:last-child {
border-bottom-right-radius: 0.25rem;
border-bottom-left-radius: 0.25rem;
}
.card-header {
padding: 0.75rem 1.25rem;
margin-bottom: 0;
background-color: #f7f7f9;
border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}
.card-header:first-child {
border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0;
}
.card-footer {
padding: 0.75rem 1.25rem;
background-color: #f7f7f9;
border-top: 1px solid rgba(0, 0, 0, 0.125);
}
.card-footer:last-child {
border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px);
}
.card-header-tabs {
margin-right: -0.625rem;
margin-bottom: -0.75rem;
margin-left: -0.625rem;
border-bottom: 0;
}
.card-header-pills {
margin-right: -0.625rem;
margin-left: -0.625rem;
}
.card-primary {
background-color: #0275d8;
border-color: #0275d8;
}
.card-primary .card-header,
.card-primary .card-footer {
background-color: transparent;
}
.card-success {
background-color: #5cb85c;
border-color: #5cb85c;
}
.card-success .card-header,
.card-success .card-footer {
background-color: transparent;
}
.card-info {
background-color: #5bc0de;
border-color: #5bc0de;
}
.card-info .card-header,
.card-info .card-footer {
background-color: transparent;
}
.card-warning {
background-color: #f0ad4e;
border-color: #f0ad4e;
}
.card-warning .card-header,
.card-warning .card-footer {
background-color: transparent;
}
.card-danger {
background-color: #d9534f;
border-color: #d9534f;
}
.card-danger .card-header,
.card-danger .card-footer {
background-color: transparent;
}
.card-outline-primary {
background-color: transparent;
border-color: #0275d8;
}
.card-outline-secondary {
background-color: transparent;
border-color: #ccc;
}
.card-outline-info {
background-color: transparent;
border-color: #5bc0de;
}
.card-outline-success {
background-color: transparent;
border-color: #5cb85c;
}
.card-outline-warning {
background-color: transparent;
border-color: #f0ad4e;
}
.card-outline-danger {
background-color: transparent;
border-color: #d9534f;
}
.card-inverse {
color: rgba(255, 255, 255, 0.65);
}
.card-inverse .card-header,
.card-inverse .card-footer {
background-color: transparent;
border-color: rgba(255, 255, 255, 0.2);
}
.card-inverse .card-header,
.card-inverse .card-footer,
.card-inverse .card-title,
.card-inverse .card-blockquote {
color: #fff;
}
.card-inverse .card-link,
.card-inverse .card-text,
.card-inverse .card-subtitle,
.card-inverse .card-blockquote .blockquote-footer {
color: rgba(255, 255, 255, 0.65);
}
.card-inverse .card-link:focus, .card-inverse .card-link:hover {
color: #fff;
}
.card-blockquote {
padding: 0;
margin-bottom: 0;
border-left: 0;
}
.card-img {
border-radius: calc(0.25rem - 1px);
}
.card-img-overlay {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
padding: 1.25rem;
}
.card-img-top {
border-top-right-radius: calc(0.25rem - 1px);
border-top-left-radius: calc(0.25rem - 1px);
}
.card-img-bottom {
border-bottom-right-radius: calc(0.25rem - 1px);
border-bottom-left-radius: calc(0.25rem - 1px);
}
@media (min-width: 576px) {
.card-deck {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-flow: row wrap;
-ms-flex-flow: row wrap;
flex-flow: row wrap;
}
.card-deck .card {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-flex: 1;
-webkit-flex: 1 0 0%;
-ms-flex: 1 0 0%;
flex: 1 0 0%;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
}
.card-deck .card:not(:first-child) {
margin-left: 15px;
}
.card-deck .card:not(:last-child) {
margin-right: 15px;
}
}
@media (min-width: 576px) {
.card-group {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-flow: row wrap;
-ms-flex-flow: row wrap;
flex-flow: row wrap;
}
.card-group .card {
-webkit-box-flex: 1;
-webkit-flex: 1 0 0%;
-ms-flex: 1 0 0%;
flex: 1 0 0%;
}
.card-group .card + .card {
margin-left: 0;
border-left: 0;
}
.card-group .card:first-child {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
.card-group .card:first-child .card-img-top {
border-top-right-radius: 0;
}
.card-group .card:first-child .card-img-bottom {
border-bottom-right-radius: 0;
}
.card-group .card:last-child {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
}
.card-group .card:last-child .card-img-top {
border-top-left-radius: 0;
}
.card-group .card:last-child .card-img-bottom {
border-bottom-left-radius: 0;
}
.card-group .card:not(:first-child):not(:last-child) {
border-radius: 0;
}
.card-group .card:not(:first-child):not(:last-child) .card-img-top,
.card-group .card:not(:first-child):not(:last-child) .card-img-bottom {
border-radius: 0;
}
}
@media (min-width: 576px) {
.card-columns {
-webkit-column-count: 3;
-moz-column-count: 3;
column-count: 3;
-webkit-column-gap: 1.25rem;
-moz-column-gap: 1.25rem;
column-gap: 1.25rem;
}
.card-columns .card {
display: inline-block;
width: 100%;
margin-bottom: 0.75rem;
}
}
.breadcrumb {
padding: 0.75rem 1rem;
margin-bottom: 1rem;
list-style: none;
background-color: #eceeef;
border-radius: 0.25rem;
}
.breadcrumb::after {
display: block;
content: "";
clear: both;
}
.breadcrumb-item {
float: left;
}
.breadcrumb-item + .breadcrumb-item::before {
display: inline-block;
padding-right: 0.5rem;
padding-left: 0.5rem;
color: #636c72;
content: "/";
}
.breadcrumb-item + .breadcrumb-item:hover::before {
text-decoration: underline;
}
.breadcrumb-item + .breadcrumb-item:hover::before {
text-decoration: none;
}
.breadcrumb-item.active {
color: #636c72;
}
.pagination {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
padding-left: 0;
list-style: none;
border-radius: 0.25rem;
}
.page-item:first-child .page-link {
margin-left: 0;
border-bottom-left-radius: 0.25rem;
border-top-left-radius: 0.25rem;
}
.page-item:last-child .page-link {
border-bottom-right-radius: 0.25rem;
border-top-right-radius: 0.25rem;
}
.page-item.active .page-link {
z-index: 2;
color: #fff;
background-color: #0275d8;
border-color: #0275d8;
}
.page-item.disabled .page-link {
color: #636c72;
pointer-events: none;
cursor: not-allowed;
background-color: #fff;
border-color: #ddd;
}
.page-link {
position: relative;
display: block;
padding: 0.5rem 0.75rem;
margin-left: -1px;
line-height: 1.25;
color: #0275d8;
background-color: #fff;
border: 1px solid #ddd;
}
.page-link:focus, .page-link:hover {
color: #014c8c;
text-decoration: none;
background-color: #eceeef;
border-color: #ddd;
}
.pagination-lg .page-link {
padding: 0.75rem 1.5rem;
font-size: 1.25rem;
}
.pagination-lg .page-item:first-child .page-link {
border-bottom-left-radius: 0.3rem;
border-top-left-radius: 0.3rem;
}
.pagination-lg .page-item:last-child .page-link {
border-bottom-right-radius: 0.3rem;
border-top-right-radius: 0.3rem;
}
.pagination-sm .page-link {
padding: 0.25rem 0.5rem;
font-size: 0.875rem;
}
.pagination-sm .page-item:first-child .page-link {
border-bottom-left-radius: 0.2rem;
border-top-left-radius: 0.2rem;
}
.pagination-sm .page-item:last-child .page-link {
border-bottom-right-radius: 0.2rem;
border-top-right-radius: 0.2rem;
}
.badge {
display: inline-block;
padding: 0.25em 0.4em;
font-size: 75%;
font-weight: bold;
line-height: 1;
color: #fff;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: 0.25rem;
}
.badge:empty {
display: none;
}
.btn .badge {
position: relative;
top: -1px;
}
a.badge:focus, a.badge:hover {
color: #fff;
text-decoration: none;
cursor: pointer;
}
.badge-pill {
padding-right: 0.6em;
padding-left: 0.6em;
border-radius: 10rem;
}
.badge-default {
background-color: #636c72;
}
.badge-default[href]:focus, .badge-default[href]:hover {
background-color: #4b5257;
}
.badge-primary {
background-color: #0275d8;
}
.badge-primary[href]:focus, .badge-primary[href]:hover {
background-color: #025aa5;
}
.badge-success {
background-color: #5cb85c;
}
.badge-success[href]:focus, .badge-success[href]:hover {
background-color: #449d44;
}
.badge-info {
background-color: #5bc0de;
}
.badge-info[href]:focus, .badge-info[href]:hover {
background-color: #31b0d5;
}
.badge-warning {
background-color: #f0ad4e;
}
.badge-warning[href]:focus, .badge-warning[href]:hover {
background-color: #ec971f;
}
.badge-danger {
background-color: #d9534f;
}
.badge-danger[href]:focus, .badge-danger[href]:hover {
background-color: #c9302c;
}
.jumbotron {
padding: 2rem 1rem;
margin-bottom: 2rem;
background-color: #eceeef;
border-radius: 0.3rem;
}
@media (min-width: 576px) {
.jumbotron {
padding: 4rem 2rem;
}
}
.jumbotron-hr {
border-top-color: #d0d5d8;
}
.jumbotron-fluid {
padding-right: 0;
padding-left: 0;
border-radius: 0;
}
.alert {
padding: 0.75rem 1.25rem;
margin-bottom: 1rem;
border: 1px solid transparent;
border-radius: 0.25rem;
}
.alert-heading {
color: inherit;
}
.alert-link {
font-weight: bold;
}
.alert-dismissible .close {
position: relative;
top: -0.75rem;
right: -1.25rem;
padding: 0.75rem 1.25rem;
color: inherit;
}
.alert-success {
background-color: #dff0d8;
border-color: #d0e9c6;
color: #3c763d;
}
.alert-success hr {
border-top-color: #c1e2b3;
}
.alert-success .alert-link {
color: #2b542c;
}
.alert-info {
background-color: #d9edf7;
border-color: #bcdff1;
color: #31708f;
}
.alert-info hr {
border-top-color: #a6d5ec;
}
.alert-info .alert-link {
color: #245269;
}
.alert-warning {
background-color: #fcf8e3;
border-color: #faf2cc;
color: #8a6d3b;
}
.alert-warning hr {
border-top-color: #f7ecb5;
}
.alert-warning .alert-link {
color: #66512c;
}
.alert-danger {
background-color: #f2dede;
border-color: #ebcccc;
color: #a94442;
}
.alert-danger hr {
border-top-color: #e4b9b9;
}
.alert-danger .alert-link {
color: #843534;
}
@-webkit-keyframes progress-bar-stripes {
from {
background-position: 1rem 0;
}
to {
background-position: 0 0;
}
}
@-o-keyframes progress-bar-stripes {
from {
background-position: 1rem 0;
}
to {
background-position: 0 0;
}
}
@keyframes progress-bar-stripes {
from {
background-position: 1rem 0;
}
to {
background-position: 0 0;
}
}
.progress {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
overflow: hidden;
font-size: 0.75rem;
line-height: 1rem;
text-align: center;
background-color: #eceeef;
border-radius: 0.25rem;
}
.progress-bar {
height: 1rem;
color: #fff;
background-color: #0275d8;
}
.progress-bar-striped {
background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
-webkit-background-size: 1rem 1rem;
background-size: 1rem 1rem;
}
.progress-bar-animated {
-webkit-animation: progress-bar-stripes 1s linear infinite;
-o-animation: progress-bar-stripes 1s linear infinite;
animation: progress-bar-stripes 1s linear infinite;
}
.media {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: start;
-webkit-align-items: flex-start;
-ms-flex-align: start;
align-items: flex-start;
}
.media-body {
-webkit-box-flex: 1;
-webkit-flex: 1 1 0%;
-ms-flex: 1 1 0%;
flex: 1 1 0%;
}
.list-group {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
padding-left: 0;
margin-bottom: 0;
}
.list-group-item-action {
width: 100%;
color: #464a4c;
text-align: inherit;
}
.list-group-item-action .list-group-item-heading {
color: #292b2c;
}
.list-group-item-action:focus, .list-group-item-action:hover {
color: #464a4c;
text-decoration: none;
background-color: #f7f7f9;
}
.list-group-item-action:active {
color: #292b2c;
background-color: #eceeef;
}
.list-group-item {
position: relative;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-flow: row wrap;
-ms-flex-flow: row wrap;
flex-flow: row wrap;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
padding: 0.75rem 1.25rem;
margin-bottom: -1px;
background-color: #fff;
border: 1px solid rgba(0, 0, 0, 0.125);
}
.list-group-item:first-child {
border-top-right-radius: 0.25rem;
border-top-left-radius: 0.25rem;
}
.list-group-item:last-child {
margin-bottom: 0;
border-bottom-right-radius: 0.25rem;
border-bottom-left-radius: 0.25rem;
}
.list-group-item:focus, .list-group-item:hover {
text-decoration: none;
}
.list-group-item.disabled, .list-group-item:disabled {
color: #636c72;
cursor: not-allowed;
background-color: #fff;
}
.list-group-item.disabled .list-group-item-heading, .list-group-item:disabled .list-group-item-heading {
color: inherit;
}
.list-group-item.disabled .list-group-item-text, .list-group-item:disabled .list-group-item-text {
color: #636c72;
}
.list-group-item.active {
z-index: 2;
color: #fff;
background-color: #0275d8;
border-color: #0275d8;
}
.list-group-item.active .list-group-item-heading,
.list-group-item.active .list-group-item-heading > small,
.list-group-item.active .list-group-item-heading > .small {
color: inherit;
}
.list-group-item.active .list-group-item-text {
color: #daeeff;
}
.list-group-flush .list-group-item {
border-right: 0;
border-left: 0;
border-radius: 0;
}
.list-group-flush:first-child .list-group-item:first-child {
border-top: 0;
}
.list-group-flush:last-child .list-group-item:last-child {
border-bottom: 0;
}
.list-group-item-success {
color: #3c763d;
background-color: #dff0d8;
}
a.list-group-item-success,
button.list-group-item-success {
color: #3c763d;
}
a.list-group-item-success .list-group-item-heading,
button.list-group-item-success .list-group-item-heading {
color: inherit;
}
a.list-group-item-success:focus, a.list-group-item-success:hover,
button.list-group-item-success:focus,
button.list-group-item-success:hover {
color: #3c763d;
background-color: #d0e9c6;
}
a.list-group-item-success.active,
button.list-group-item-success.active {
color: #fff;
background-color: #3c763d;
border-color: #3c763d;
}
.list-group-item-info {
color: #31708f;
background-color: #d9edf7;
}
a.list-group-item-info,
button.list-group-item-info {
color: #31708f;
}
a.list-group-item-info .list-group-item-heading,
button.list-group-item-info .list-group-item-heading {
color: inherit;
}
a.list-group-item-info:focus, a.list-group-item-info:hover,
button.list-group-item-info:focus,
button.list-group-item-info:hover {
color: #31708f;
background-color: #c4e3f3;
}
a.list-group-item-info.active,
button.list-group-item-info.active {
color: #fff;
background-color: #31708f;
border-color: #31708f;
}
.list-group-item-warning {
color: #8a6d3b;
background-color: #fcf8e3;
}
a.list-group-item-warning,
button.list-group-item-warning {
color: #8a6d3b;
}
a.list-group-item-warning .list-group-item-heading,
button.list-group-item-warning .list-group-item-heading {
color: inherit;
}
a.list-group-item-warning:focus, a.list-group-item-warning:hover,
button.list-group-item-warning:focus,
button.list-group-item-warning:hover {
color: #8a6d3b;
background-color: #faf2cc;
}
a.list-group-item-warning.active,
button.list-group-item-warning.active {
color: #fff;
background-color: #8a6d3b;
border-color: #8a6d3b;
}
.list-group-item-danger {
color: #a94442;
background-color: #f2dede;
}
a.list-group-item-danger,
button.list-group-item-danger {
color: #a94442;
}
a.list-group-item-danger .list-group-item-heading,
button.list-group-item-danger .list-group-item-heading {
color: inherit;
}
a.list-group-item-danger:focus, a.list-group-item-danger:hover,
button.list-group-item-danger:focus,
button.list-group-item-danger:hover {
color: #a94442;
background-color: #ebcccc;
}
a.list-group-item-danger.active,
button.list-group-item-danger.active {
color: #fff;
background-color: #a94442;
border-color: #a94442;
}
.embed-responsive {
position: relative;
display: block;
width: 100%;
padding: 0;
overflow: hidden;
}
.embed-responsive::before {
display: block;
content: "";
}
.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}
.embed-responsive-21by9::before {
padding-top: 42.857143%;
}
.embed-responsive-16by9::before {
padding-top: 56.25%;
}
.embed-responsive-4by3::before {
padding-top: 75%;
}
.embed-responsive-1by1::before {
padding-top: 100%;
}
.close {
float: right;
font-size: 1.5rem;
font-weight: bold;
line-height: 1;
color: #000;
text-shadow: 0 1px 0 #fff;
opacity: .5;
}
.close:focus, .close:hover {
color: #000;
text-decoration: none;
cursor: pointer;
opacity: .75;
}
button.close {
padding: 0;
cursor: pointer;
background: transparent;
border: 0;
-webkit-appearance: none;
}
.modal-open {
overflow: hidden;
}
.modal {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1050;
display: none;
overflow: hidden;
outline: 0;
}
.modal.fade .modal-dialog {
-webkit-transition: -webkit-transform 0.3s ease-out;
transition: -webkit-transform 0.3s ease-out;
-o-transition: -o-transform 0.3s ease-out;
transition: transform 0.3s ease-out;
transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out, -o-transform 0.3s ease-out;
-webkit-transform: translate(0, -25%);
-o-transform: translate(0, -25%);
transform: translate(0, -25%);
}
.modal.show .modal-dialog {
-webkit-transform: translate(0, 0);
-o-transform: translate(0, 0);
transform: translate(0, 0);
}
.modal-open .modal {
overflow-x: hidden;
overflow-y: auto;
}
.modal-dialog {
position: relative;
width: auto;
margin: 10px;
}
.modal-content {
position: relative;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
background-color: #fff;
-webkit-background-clip: padding-box;
background-clip: padding-box;
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 0.3rem;
outline: 0;
}
.modal-backdrop {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1040;
background-color: #000;
}
.modal-backdrop.fade {
opacity: 0;
}
.modal-backdrop.show {
opacity: 0.5;
}
.modal-header {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
padding: 15px;
border-bottom: 1px solid #eceeef;
}
.modal-title {
margin-bottom: 0;
line-height: 1.5;
}
.modal-body {
position: relative;
-webkit-box-flex: 1;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
padding: 15px;
}
.modal-footer {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: end;
-webkit-justify-content: flex-end;
-ms-flex-pack: end;
justify-content: flex-end;
padding: 15px;
border-top: 1px solid #eceeef;
}
.modal-footer > :not(:first-child) {
margin-left: .25rem;
}
.modal-footer > :not(:last-child) {
margin-right: .25rem;
}
.modal-scrollbar-measure {
position: absolute;
top: -9999px;
width: 50px;
height: 50px;
overflow: scroll;
}
@media (min-width: 576px) {
.modal-dialog {
max-width: 500px;
margin: 30px auto;
}
.modal-sm {
max-width: 300px;
}
}
@media (min-width: 992px) {
.modal-lg {
max-width: 800px;
}
}
.tooltip {
position: absolute;
z-index: 1070;
display: block;
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-style: normal;
font-weight: normal;
letter-spacing: normal;
line-break: auto;
line-height: 1.5;
text-align: left;
text-align: start;
text-decoration: none;
text-shadow: none;
text-transform: none;
white-space: normal;
word-break: normal;
word-spacing: normal;
font-size: 0.875rem;
word-wrap: break-word;
opacity: 0;
}
.tooltip.show {
opacity: 0.9;
}
.tooltip.tooltip-top, .tooltip.bs-tether-element-attached-bottom {
padding: 5px 0;
margin-top: -3px;
}
.tooltip.tooltip-top .tooltip-inner::before, .tooltip.bs-tether-element-attached-bottom .tooltip-inner::before {
bottom: 0;
left: 50%;
margin-left: -5px;
content: "";
border-width: 5px 5px 0;
border-top-color: #000;
}
.tooltip.tooltip-right, .tooltip.bs-tether-element-attached-left {
padding: 0 5px;
margin-left: 3px;
}
.tooltip.tooltip-right .tooltip-inner::before, .tooltip.bs-tether-element-attached-left .tooltip-inner::before {
top: 50%;
left: 0;
margin-top: -5px;
content: "";
border-width: 5px 5px 5px 0;
border-right-color: #000;
}
.tooltip.tooltip-bottom, .tooltip.bs-tether-element-attached-top {
padding: 5px 0;
margin-top: 3px;
}
.tooltip.tooltip-bottom .tooltip-inner::before, .tooltip.bs-tether-element-attached-top .tooltip-inner::before {
top: 0;
left: 50%;
margin-left: -5px;
content: "";
border-width: 0 5px 5px;
border-bottom-color: #000;
}
.tooltip.tooltip-left, .tooltip.bs-tether-element-attached-right {
padding: 0 5px;
margin-left: -3px;
}
.tooltip.tooltip-left .tooltip-inner::before, .tooltip.bs-tether-element-attached-right .tooltip-inner::before {
top: 50%;
right: 0;
margin-top: -5px;
content: "";
border-width: 5px 0 5px 5px;
border-left-color: #000;
}
.tooltip-inner {
max-width: 200px;
padding: 3px 8px;
color: #fff;
text-align: center;
background-color: #000;
border-radius: 0.25rem;
}
.tooltip-inner::before {
position: absolute;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
}
.popover {
position: absolute;
top: 0;
left: 0;
z-index: 1060;
display: block;
max-width: 276px;
padding: 1px;
font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-style: normal;
font-weight: normal;
letter-spacing: normal;
line-break: auto;
line-height: 1.5;
text-align: left;
text-align: start;
text-decoration: none;
text-shadow: none;
text-transform: none;
white-space: normal;
word-break: normal;
word-spacing: normal;
font-size: 0.875rem;
word-wrap: break-word;
background-color: #fff;
-webkit-background-clip: padding-box;
background-clip: padding-box;
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 0.3rem;
}
.popover.popover-top, .popover.bs-tether-element-attached-bottom {
margin-top: -10px;
}
.popover.popover-top::before, .popover.popover-top::after, .popover.bs-tether-element-attached-bottom::before, .popover.bs-tether-element-attached-bottom::after {
left: 50%;
border-bottom-width: 0;
}
.popover.popover-top::before, .popover.bs-tether-element-attached-bottom::before {
bottom: -11px;
margin-left: -11px;
border-top-color: rgba(0, 0, 0, 0.25);
}
.popover.popover-top::after, .popover.bs-tether-element-attached-bottom::after {
bottom: -10px;
margin-left: -10px;
border-top-color: #fff;
}
.popover.popover-right, .popover.bs-tether-element-attached-left {
margin-left: 10px;
}
.popover.popover-right::before, .popover.popover-right::after, .popover.bs-tether-element-attached-left::before, .popover.bs-tether-element-attached-left::after {
top: 50%;
border-left-width: 0;
}
.popover.popover-right::before, .popover.bs-tether-element-attached-left::before {
left: -11px;
margin-top: -11px;
border-right-color: rgba(0, 0, 0, 0.25);
}
.popover.popover-right::after, .popover.bs-tether-element-attached-left::after {
left: -10px;
margin-top: -10px;
border-right-color: #fff;
}
.popover.popover-bottom, .popover.bs-tether-element-attached-top {
margin-top: 10px;
}
.popover.popover-bottom::before, .popover.popover-bottom::after, .popover.bs-tether-element-attached-top::before, .popover.bs-tether-element-attached-top::after {
left: 50%;
border-top-width: 0;
}
.popover.popover-bottom::before, .popover.bs-tether-element-attached-top::before {
top: -11px;
margin-left: -11px;
border-bottom-color: rgba(0, 0, 0, 0.25);
}
.popover.popover-bottom::after, .popover.bs-tether-element-attached-top::after {
top: -10px;
margin-left: -10px;
border-bottom-color: #f7f7f7;
}
.popover.popover-bottom .popover-title::before, .popover.bs-tether-element-attached-top .popover-title::before {
position: absolute;
top: 0;
left: 50%;
display: block;
width: 20px;
margin-left: -10px;
content: "";
border-bottom: 1px solid #f7f7f7;
}
.popover.popover-left, .popover.bs-tether-element-attached-right {
margin-left: -10px;
}
.popover.popover-left::before, .popover.popover-left::after, .popover.bs-tether-element-attached-right::before, .popover.bs-tether-element-attached-right::after {
top: 50%;
border-right-width: 0;
}
.popover.popover-left::before, .popover.bs-tether-element-attached-right::before {
right: -11px;
margin-top: -11px;
border-left-color: rgba(0, 0, 0, 0.25);
}
.popover.popover-left::after, .popover.bs-tether-element-attached-right::after {
right: -10px;
margin-top: -10px;
border-left-color: #fff;
}
.popover-title {
padding: 8px 14px;
margin-bottom: 0;
font-size: 1rem;
background-color: #f7f7f7;
border-bottom: 1px solid #ebebeb;
border-top-right-radius: calc(0.3rem - 1px);
border-top-left-radius: calc(0.3rem - 1px);
}
.popover-title:empty {
display: none;
}
.popover-content {
padding: 9px 14px;
}
.popover::before,
.popover::after {
position: absolute;
display: block;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
}
.popover::before {
content: "";
border-width: 11px;
}
.popover::after {
content: "";
border-width: 10px;
}
.carousel {
position: relative;
}
.carousel-inner {
position: relative;
width: 100%;
overflow: hidden;
}
.carousel-item {
position: relative;
display: none;
width: 100%;
}
@media (-webkit-transform-3d) {
.carousel-item {
-webkit-transition: -webkit-transform 0.6s ease-in-out;
transition: -webkit-transform 0.6s ease-in-out;
-o-transition: -o-transform 0.6s ease-in-out;
transition: transform 0.6s ease-in-out;
transition: transform 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out, -o-transform 0.6s ease-in-out;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-perspective: 1000px;
perspective: 1000px;
}
}
@supports ((-webkit-transform: translate3d(0, 0, 0)) or (transform: translate3d(0, 0, 0))) {
.carousel-item {
-webkit-transition: -webkit-transform 0.6s ease-in-out;
transition: -webkit-transform 0.6s ease-in-out;
-o-transition: -o-transform 0.6s ease-in-out;
transition: transform 0.6s ease-in-out;
transition: transform 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out, -o-transform 0.6s ease-in-out;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-perspective: 1000px;
perspective: 1000px;
}
}
.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.carousel-item-next,
.carousel-item-prev {
position: absolute;
top: 0;
}
@media (-webkit-transform-3d) {
.carousel-item-next.carousel-item-left,
.carousel-item-prev.carousel-item-right {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.carousel-item-next,
.active.carousel-item-right {
-webkit-transform: translate3d(100%, 0, 0);
transform: translate3d(100%, 0, 0);
}
.carousel-item-prev,
.active.carousel-item-left {
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
}
}
@supports ((-webkit-transform: translate3d(0, 0, 0)) or (transform: translate3d(0, 0, 0))) {
.carousel-item-next.carousel-item-left,
.carousel-item-prev.carousel-item-right {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.carousel-item-next,
.active.carousel-item-right {
-webkit-transform: translate3d(100%, 0, 0);
transform: translate3d(100%, 0, 0);
}
.carousel-item-prev,
.active.carousel-item-left {
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
}
}
.carousel-control-prev,
.carousel-control-next {
position: absolute;
top: 0;
bottom: 0;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
width: 15%;
color: #fff;
text-align: center;
opacity: 0.5;
}
.carousel-control-prev:focus, .carousel-control-prev:hover,
.carousel-control-next:focus,
.carousel-control-next:hover {
color: #fff;
text-decoration: none;
outline: 0;
opacity: .9;
}
.carousel-control-prev {
left: 0;
}
.carousel-control-next {
right: 0;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
display: inline-block;
width: 20px;
height: 20px;
background: transparent no-repeat center center;
-webkit-background-size: 100% 100%;
background-size: 100% 100%;
}
.carousel-control-prev-icon {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M4 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E");
}
.carousel-control-next-icon {
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M1.5 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");
}
.carousel-indicators {
position: absolute;
right: 0;
bottom: 10px;
left: 0;
z-index: 15;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
padding-left: 0;
margin-right: 15%;
margin-left: 15%;
list-style: none;
}
.carousel-indicators li {
position: relative;
-webkit-box-flex: 1;
-webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
max-width: 30px;
height: 3px;
margin-right: 3px;
margin-left: 3px;
text-indent: -999px;
cursor: pointer;
background-color: rgba(255, 255, 255, 0.5);
}
.carousel-indicators li::before {
position: absolute;
top: -10px;
left: 0;
display: inline-block;
width: 100%;
height: 10px;
content: "";
}
.carousel-indicators li::after {
position: absolute;
bottom: -10px;
left: 0;
display: inline-block;
width: 100%;
height: 10px;
content: "";
}
.carousel-indicators .active {
background-color: #fff;
}
.carousel-caption {
position: absolute;
right: 15%;
bottom: 20px;
left: 15%;
z-index: 10;
padding-top: 20px;
padding-bottom: 20px;
color: #fff;
text-align: center;
}
.align-baseline {
vertical-align: baseline !important;
}
.align-top {
vertical-align: top !important;
}
.align-middle {
vertical-align: middle !important;
}
.align-bottom {
vertical-align: bottom !important;
}
.align-text-bottom {
vertical-align: text-bottom !important;
}
.align-text-top {
vertical-align: text-top !important;
}
.bg-faded {
background-color: #f7f7f7;
}
.bg-primary {
background-color: #0275d8 !important;
}
a.bg-primary:focus, a.bg-primary:hover {
background-color: #025aa5 !important;
}
.bg-success {
background-color: #5cb85c !important;
}
a.bg-success:focus, a.bg-success:hover {
background-color: #449d44 !important;
}
.bg-info {
background-color: #5bc0de !important;
}
a.bg-info:focus, a.bg-info:hover {
background-color: #31b0d5 !important;
}
.bg-warning {
background-color: #f0ad4e !important;
}
a.bg-warning:focus, a.bg-warning:hover {
background-color: #ec971f !important;
}
.bg-danger {
background-color: #d9534f !important;
}
a.bg-danger:focus, a.bg-danger:hover {
background-color: #c9302c !important;
}
.bg-inverse {
background-color: #292b2c !important;
}
a.bg-inverse:focus, a.bg-inverse:hover {
background-color: #101112 !important;
}
.border-0 {
border: 0 !important;
}
.border-top-0 {
border-top: 0 !important;
}
.border-right-0 {
border-right: 0 !important;
}
.border-bottom-0 {
border-bottom: 0 !important;
}
.border-left-0 {
border-left: 0 !important;
}
.rounded {
border-radius: 0.25rem;
}
.rounded-top {
border-top-right-radius: 0.25rem;
border-top-left-radius: 0.25rem;
}
.rounded-right {
border-bottom-right-radius: 0.25rem;
border-top-right-radius: 0.25rem;
}
.rounded-bottom {
border-bottom-right-radius: 0.25rem;
border-bottom-left-radius: 0.25rem;
}
.rounded-left {
border-bottom-left-radius: 0.25rem;
border-top-left-radius: 0.25rem;
}
.rounded-circle {
border-radius: 50%;
}
.rounded-0 {
border-radius: 0;
}
.clearfix::after {
display: block;
content: "";
clear: both;
}
.d-none {
display: none !important;
}
.d-inline {
display: inline !important;
}
.d-inline-block {
display: inline-block !important;
}
.d-block {
display: block !important;
}
.d-table {
display: table !important;
}
.d-table-cell {
display: table-cell !important;
}
.d-flex {
display: -webkit-box !important;
display: -webkit-flex !important;
display: -ms-flexbox !important;
display: flex !important;
}
.d-inline-flex {
display: -webkit-inline-box !important;
display: -webkit-inline-flex !important;
display: -ms-inline-flexbox !important;
display: inline-flex !important;
}
@media (min-width: 576px) {
.d-sm-none {
display: none !important;
}
.d-sm-inline {
display: inline !important;
}
.d-sm-inline-block {
display: inline-block !important;
}
.d-sm-block {
display: block !important;
}
.d-sm-table {
display: table !important;
}
.d-sm-table-cell {
display: table-cell !important;
}
.d-sm-flex {
display: -webkit-box !important;
display: -webkit-flex !important;
display: -ms-flexbox !important;
display: flex !important;
}
.d-sm-inline-flex {
display: -webkit-inline-box !important;
display: -webkit-inline-flex !important;
display: -ms-inline-flexbox !important;
display: inline-flex !important;
}
}
@media (min-width: 768px) {
.d-md-none {
display: none !important;
}
.d-md-inline {
display: inline !important;
}
.d-md-inline-block {
display: inline-block !important;
}
.d-md-block {
display: block !important;
}
.d-md-table {
display: table !important;
}
.d-md-table-cell {
display: table-cell !important;
}
.d-md-flex {
display: -webkit-box !important;
display: -webkit-flex !important;
display: -ms-flexbox !important;
display: flex !important;
}
.d-md-inline-flex {
display: -webkit-inline-box !important;
display: -webkit-inline-flex !important;
display: -ms-inline-flexbox !important;
display: inline-flex !important;
}
}
@media (min-width: 992px) {
.d-lg-none {
display: none !important;
}
.d-lg-inline {
display: inline !important;
}
.d-lg-inline-block {
display: inline-block !important;
}
.d-lg-block {
display: block !important;
}
.d-lg-table {
display: table !important;
}
.d-lg-table-cell {
display: table-cell !important;
}
.d-lg-flex {
display: -webkit-box !important;
display: -webkit-flex !important;
display: -ms-flexbox !important;
display: flex !important;
}
.d-lg-inline-flex {
display: -webkit-inline-box !important;
display: -webkit-inline-flex !important;
display: -ms-inline-flexbox !important;
display: inline-flex !important;
}
}
@media (min-width: 1200px) {
.d-xl-none {
display: none !important;
}
.d-xl-inline {
display: inline !important;
}
.d-xl-inline-block {
display: inline-block !important;
}
.d-xl-block {
display: block !important;
}
.d-xl-table {
display: table !important;
}
.d-xl-table-cell {
display: table-cell !important;
}
.d-xl-flex {
display: -webkit-box !important;
display: -webkit-flex !important;
display: -ms-flexbox !important;
display: flex !important;
}
.d-xl-inline-flex {
display: -webkit-inline-box !important;
display: -webkit-inline-flex !important;
display: -ms-inline-flexbox !important;
display: inline-flex !important;
}
}
.flex-first {
-webkit-box-ordinal-group: 0;
-webkit-order: -1;
-ms-flex-order: -1;
order: -1;
}
.flex-last {
-webkit-box-ordinal-group: 2;
-webkit-order: 1;
-ms-flex-order: 1;
order: 1;
}
.flex-unordered {
-webkit-box-ordinal-group: 1;
-webkit-order: 0;
-ms-flex-order: 0;
order: 0;
}
.flex-row {
-webkit-box-orient: horizontal !important;
-webkit-box-direction: normal !important;
-webkit-flex-direction: row !important;
-ms-flex-direction: row !important;
flex-direction: row !important;
}
.flex-column {
-webkit-box-orient: vertical !important;
-webkit-box-direction: normal !important;
-webkit-flex-direction: column !important;
-ms-flex-direction: column !important;
flex-direction: column !important;
}
.flex-row-reverse {
-webkit-box-orient: horizontal !important;
-webkit-box-direction: reverse !important;
-webkit-flex-direction: row-reverse !important;
-ms-flex-direction: row-reverse !important;
flex-direction: row-reverse !important;
}
.flex-column-reverse {
-webkit-box-orient: vertical !important;
-webkit-box-direction: reverse !important;
-webkit-flex-direction: column-reverse !important;
-ms-flex-direction: column-reverse !important;
flex-direction: column-reverse !important;
}
.flex-wrap {
-webkit-flex-wrap: wrap !important;
-ms-flex-wrap: wrap !important;
flex-wrap: wrap !important;
}
.flex-nowrap {
-webkit-flex-wrap: nowrap !important;
-ms-flex-wrap: nowrap !important;
flex-wrap: nowrap !important;
}
.flex-wrap-reverse {
-webkit-flex-wrap: wrap-reverse !important;
-ms-flex-wrap: wrap-reverse !important;
flex-wrap: wrap-reverse !important;
}
.justify-content-start {
-webkit-box-pack: start !important;
-webkit-justify-content: flex-start !important;
-ms-flex-pack: start !important;
justify-content: flex-start !important;
}
.justify-content-end {
-webkit-box-pack: end !important;
-webkit-justify-content: flex-end !important;
-ms-flex-pack: end !important;
justify-content: flex-end !important;
}
.justify-content-center {
-webkit-box-pack: center !important;
-webkit-justify-content: center !important;
-ms-flex-pack: center !important;
justify-content: center !important;
}
.justify-content-between {
-webkit-box-pack: justify !important;
-webkit-justify-content: space-between !important;
-ms-flex-pack: justify !important;
justify-content: space-between !important;
}
.justify-content-around {
-webkit-justify-content: space-around !important;
-ms-flex-pack: distribute !important;
justify-content: space-around !important;
}
.align-items-start {
-webkit-box-align: start !important;
-webkit-align-items: flex-start !important;
-ms-flex-align: start !important;
align-items: flex-start !important;
}
.align-items-end {
-webkit-box-align: end !important;
-webkit-align-items: flex-end !important;
-ms-flex-align: end !important;
align-items: flex-end !important;
}
.align-items-center {
-webkit-box-align: center !important;
-webkit-align-items: center !important;
-ms-flex-align: center !important;
align-items: center !important;
}
.align-items-baseline {
-webkit-box-align: baseline !important;
-webkit-align-items: baseline !important;
-ms-flex-align: baseline !important;
align-items: baseline !important;
}
.align-items-stretch {
-webkit-box-align: stretch !important;
-webkit-align-items: stretch !important;
-ms-flex-align: stretch !important;
align-items: stretch !important;
}
.align-content-start {
-webkit-align-content: flex-start !important;
-ms-flex-line-pack: start !important;
align-content: flex-start !important;
}
.align-content-end {
-webkit-align-content: flex-end !important;
-ms-flex-line-pack: end !important;
align-content: flex-end !important;
}
.align-content-center {
-webkit-align-content: center !important;
-ms-flex-line-pack: center !important;
align-content: center !important;
}
.align-content-between {
-webkit-align-content: space-between !important;
-ms-flex-line-pack: justify !important;
align-content: space-between !important;
}
.align-content-around {
-webkit-align-content: space-around !important;
-ms-flex-line-pack: distribute !important;
align-content: space-around !important;
}
.align-content-stretch {
-webkit-align-content: stretch !important;
-ms-flex-line-pack: stretch !important;
align-content: stretch !important;
}
.align-self-auto {
-webkit-align-self: auto !important;
-ms-flex-item-align: auto !important;
-ms-grid-row-align: auto !important;
align-self: auto !important;
}
.align-self-start {
-webkit-align-self: flex-start !important;
-ms-flex-item-align: start !important;
align-self: flex-start !important;
}
.align-self-end {
-webkit-align-self: flex-end !important;
-ms-flex-item-align: end !important;
align-self: flex-end !important;
}
.align-self-center {
-webkit-align-self: center !important;
-ms-flex-item-align: center !important;
-ms-grid-row-align: center !important;
align-self: center !important;
}
.align-self-baseline {
-webkit-align-self: baseline !important;
-ms-flex-item-align: baseline !important;
align-self: baseline !important;
}
.align-self-stretch {
-webkit-align-self: stretch !important;
-ms-flex-item-align: stretch !important;
-ms-grid-row-align: stretch !important;
align-self: stretch !important;
}
@media (min-width: 576px) {
.flex-sm-first {
-webkit-box-ordinal-group: 0;
-webkit-order: -1;
-ms-flex-order: -1;
order: -1;
}
.flex-sm-last {
-webkit-box-ordinal-group: 2;
-webkit-order: 1;
-ms-flex-order: 1;
order: 1;
}
.flex-sm-unordered {
-webkit-box-ordinal-group: 1;
-webkit-order: 0;
-ms-flex-order: 0;
order: 0;
}
.flex-sm-row {
-webkit-box-orient: horizontal !important;
-webkit-box-direction: normal !important;
-webkit-flex-direction: row !important;
-ms-flex-direction: row !important;
flex-direction: row !important;
}
.flex-sm-column {
-webkit-box-orient: vertical !important;
-webkit-box-direction: normal !important;
-webkit-flex-direction: column !important;
-ms-flex-direction: column !important;
flex-direction: column !important;
}
.flex-sm-row-reverse {
-webkit-box-orient: horizontal !important;
-webkit-box-direction: reverse !important;
-webkit-flex-direction: row-reverse !important;
-ms-flex-direction: row-reverse !important;
flex-direction: row-reverse !important;
}
.flex-sm-column-reverse {
-webkit-box-orient: vertical !important;
-webkit-box-direction: reverse !important;
-webkit-flex-direction: column-reverse !important;
-ms-flex-direction: column-reverse !important;
flex-direction: column-reverse !important;
}
.flex-sm-wrap {
-webkit-flex-wrap: wrap !important;
-ms-flex-wrap: wrap !important;
flex-wrap: wrap !important;
}
.flex-sm-nowrap {
-webkit-flex-wrap: nowrap !important;
-ms-flex-wrap: nowrap !important;
flex-wrap: nowrap !important;
}
.flex-sm-wrap-reverse {
-webkit-flex-wrap: wrap-reverse !important;
-ms-flex-wrap: wrap-reverse !important;
flex-wrap: wrap-reverse !important;
}
.justify-content-sm-start {
-webkit-box-pack: start !important;
-webkit-justify-content: flex-start !important;
-ms-flex-pack: start !important;
justify-content: flex-start !important;
}
.justify-content-sm-end {
-webkit-box-pack: end !important;
-webkit-justify-content: flex-end !important;
-ms-flex-pack: end !important;
justify-content: flex-end !important;
}
.justify-content-sm-center {
-webkit-box-pack: center !important;
-webkit-justify-content: center !important;
-ms-flex-pack: center !important;
justify-content: center !important;
}
.justify-content-sm-between {
-webkit-box-pack: justify !important;
-webkit-justify-content: space-between !important;
-ms-flex-pack: justify !important;
justify-content: space-between !important;
}
.justify-content-sm-around {
-webkit-justify-content: space-around !important;
-ms-flex-pack: distribute !important;
justify-content: space-around !important;
}
.align-items-sm-start {
-webkit-box-align: start !important;
-webkit-align-items: flex-start !important;
-ms-flex-align: start !important;
align-items: flex-start !important;
}
.align-items-sm-end {
-webkit-box-align: end !important;
-webkit-align-items: flex-end !important;
-ms-flex-align: end !important;
align-items: flex-end !important;
}
.align-items-sm-center {
-webkit-box-align: center !important;
-webkit-align-items: center !important;
-ms-flex-align: center !important;
align-items: center !important;
}
.align-items-sm-baseline {
-webkit-box-align: baseline !important;
-webkit-align-items: baseline !important;
-ms-flex-align: baseline !important;
align-items: baseline !important;
}
.align-items-sm-stretch {
-webkit-box-align: stretch !important;
-webkit-align-items: stretch !important;
-ms-flex-align: stretch !important;
align-items: stretch !important;
}
.align-content-sm-start {
-webkit-align-content: flex-start !important;
-ms-flex-line-pack: start !important;
align-content: flex-start !important;
}
.align-content-sm-end {
-webkit-align-content: flex-end !important;
-ms-flex-line-pack: end !important;
align-content: flex-end !important;
}
.align-content-sm-center {
-webkit-align-content: center !important;
-ms-flex-line-pack: center !important;
align-content: center !important;
}
.align-content-sm-between {
-webkit-align-content: space-between !important;
-ms-flex-line-pack: justify !important;
align-content: space-between !important;
}
.align-content-sm-around {
-webkit-align-content: space-around !important;
-ms-flex-line-pack: distribute !important;
align-content: space-around !important;
}
.align-content-sm-stretch {
-webkit-align-content: stretch !important;
-ms-flex-line-pack: stretch !important;
align-content: stretch !important;
}
.align-self-sm-auto {
-webkit-align-self: auto !important;
-ms-flex-item-align: auto !important;
-ms-grid-row-align: auto !important;
align-self: auto !important;
}
.align-self-sm-start {
-webkit-align-self: flex-start !important;
-ms-flex-item-align: start !important;
align-self: flex-start !important;
}
.align-self-sm-end {
-webkit-align-self: flex-end !important;
-ms-flex-item-align: end !important;
align-self: flex-end !important;
}
.align-self-sm-center {
-webkit-align-self: center !important;
-ms-flex-item-align: center !important;
-ms-grid-row-align: center !important;
align-self: center !important;
}
.align-self-sm-baseline {
-webkit-align-self: baseline !important;
-ms-flex-item-align: baseline !important;
align-self: baseline !important;
}
.align-self-sm-stretch {
-webkit-align-self: stretch !important;
-ms-flex-item-align: stretch !important;
-ms-grid-row-align: stretch !important;
align-self: stretch !important;
}
}
@media (min-width: 768px) {
.flex-md-first {
-webkit-box-ordinal-group: 0;
-webkit-order: -1;
-ms-flex-order: -1;
order: -1;
}
.flex-md-last {
-webkit-box-ordinal-group: 2;
-webkit-order: 1;
-ms-flex-order: 1;
order: 1;
}
.flex-md-unordered {
-webkit-box-ordinal-group: 1;
-webkit-order: 0;
-ms-flex-order: 0;
order: 0;
}
.flex-md-row {
-webkit-box-orient: horizontal !important;
-webkit-box-direction: normal !important;
-webkit-flex-direction: row !important;
-ms-flex-direction: row !important;
flex-direction: row !important;
}
.flex-md-column {
-webkit-box-orient: vertical !important;
-webkit-box-direction: normal !important;
-webkit-flex-direction: column !important;
-ms-flex-direction: column !important;
flex-direction: column !important;
}
.flex-md-row-reverse {
-webkit-box-orient: horizontal !important;
-webkit-box-direction: reverse !important;
-webkit-flex-direction: row-reverse !important;
-ms-flex-direction: row-reverse !important;
flex-direction: row-reverse !important;
}
.flex-md-column-reverse {
-webkit-box-orient: vertical !important;
-webkit-box-direction: reverse !important;
-webkit-flex-direction: column-reverse !important;
-ms-flex-direction: column-reverse !important;
flex-direction: column-reverse !important;
}
.flex-md-wrap {
-webkit-flex-wrap: wrap !important;
-ms-flex-wrap: wrap !important;
flex-wrap: wrap !important;
}
.flex-md-nowrap {
-webkit-flex-wrap: nowrap !important;
-ms-flex-wrap: nowrap !important;
flex-wrap: nowrap !important;
}
.flex-md-wrap-reverse {
-webkit-flex-wrap: wrap-reverse !important;
-ms-flex-wrap: wrap-reverse !important;
flex-wrap: wrap-reverse !important;
}
.justify-content-md-start {
-webkit-box-pack: start !important;
-webkit-justify-content: flex-start !important;
-ms-flex-pack: start !important;
justify-content: flex-start !important;
}
.justify-content-md-end {
-webkit-box-pack: end !important;
-webkit-justify-content: flex-end !important;
-ms-flex-pack: end !important;
justify-content: flex-end !important;
}
.justify-content-md-center {
-webkit-box-pack: center !important;
-webkit-justify-content: center !important;
-ms-flex-pack: center !important;
justify-content: center !important;
}
.justify-content-md-between {
-webkit-box-pack: justify !important;
-webkit-justify-content: space-between !important;
-ms-flex-pack: justify !important;
justify-content: space-between !important;
}
.justify-content-md-around {
-webkit-justify-content: space-around !important;
-ms-flex-pack: distribute !important;
justify-content: space-around !important;
}
.align-items-md-start {
-webkit-box-align: start !important;
-webkit-align-items: flex-start !important;
-ms-flex-align: start !important;
align-items: flex-start !important;
}
.align-items-md-end {
-webkit-box-align: end !important;
-webkit-align-items: flex-end !important;
-ms-flex-align: end !important;
align-items: flex-end !important;
}
.align-items-md-center {
-webkit-box-align: center !important;
-webkit-align-items: center !important;
-ms-flex-align: center !important;
align-items: center !important;
}
.align-items-md-baseline {
-webkit-box-align: baseline !important;
-webkit-align-items: baseline !important;
-ms-flex-align: baseline !important;
align-items: baseline !important;
}
.align-items-md-stretch {
-webkit-box-align: stretch !important;
-webkit-align-items: stretch !important;
-ms-flex-align: stretch !important;
align-items: stretch !important;
}
.align-content-md-start {
-webkit-align-content: flex-start !important;
-ms-flex-line-pack: start !important;
align-content: flex-start !important;
}
.align-content-md-end {
-webkit-align-content: flex-end !important;
-ms-flex-line-pack: end !important;
align-content: flex-end !important;
}
.align-content-md-center {
-webkit-align-content: center !important;
-ms-flex-line-pack: center !important;
align-content: center !important;
}
.align-content-md-between {
-webkit-align-content: space-between !important;
-ms-flex-line-pack: justify !important;
align-content: space-between !important;
}
.align-content-md-around {
-webkit-align-content: space-around !important;
-ms-flex-line-pack: distribute !important;
align-content: space-around !important;
}
.align-content-md-stretch {
-webkit-align-content: stretch !important;
-ms-flex-line-pack: stretch !important;
align-content: stretch !important;
}
.align-self-md-auto {
-webkit-align-self: auto !important;
-ms-flex-item-align: auto !important;
-ms-grid-row-align: auto !important;
align-self: auto !important;
}
.align-self-md-start {
-webkit-align-self: flex-start !important;
-ms-flex-item-align: start !important;
align-self: flex-start !important;
}
.align-self-md-end {
-webkit-align-self: flex-end !important;
-ms-flex-item-align: end !important;
align-self: flex-end !important;
}
.align-self-md-center {
-webkit-align-self: center !important;
-ms-flex-item-align: center !important;
-ms-grid-row-align: center !important;
align-self: center !important;
}
.align-self-md-baseline {
-webkit-align-self: baseline !important;
-ms-flex-item-align: baseline !important;
align-self: baseline !important;
}
.align-self-md-stretch {
-webkit-align-self: stretch !important;
-ms-flex-item-align: stretch !important;
-ms-grid-row-align: stretch !important;
align-self: stretch !important;
}
}
@media (min-width: 992px) {
.flex-lg-first {
-webkit-box-ordinal-group: 0;
-webkit-order: -1;
-ms-flex-order: -1;
order: -1;
}
.flex-lg-last {
-webkit-box-ordinal-group: 2;
-webkit-order: 1;
-ms-flex-order: 1;
order: 1;
}
.flex-lg-unordered {
-webkit-box-ordinal-group: 1;
-webkit-order: 0;
-ms-flex-order: 0;
order: 0;
}
.flex-lg-row {
-webkit-box-orient: horizontal !important;
-webkit-box-direction: normal !important;
-webkit-flex-direction: row !important;
-ms-flex-direction: row !important;
flex-direction: row !important;
}
.flex-lg-column {
-webkit-box-orient: vertical !important;
-webkit-box-direction: normal !important;
-webkit-flex-direction: column !important;
-ms-flex-direction: column !important;
flex-direction: column !important;
}
.flex-lg-row-reverse {
-webkit-box-orient: horizontal !important;
-webkit-box-direction: reverse !important;
-webkit-flex-direction: row-reverse !important;
-ms-flex-direction: row-reverse !important;
flex-direction: row-reverse !important;
}
.flex-lg-column-reverse {
-webkit-box-orient: vertical !important;
-webkit-box-direction: reverse !important;
-webkit-flex-direction: column-reverse !important;
-ms-flex-direction: column-reverse !important;
flex-direction: column-reverse !important;
}
.flex-lg-wrap {
-webkit-flex-wrap: wrap !important;
-ms-flex-wrap: wrap !important;
flex-wrap: wrap !important;
}
.flex-lg-nowrap {
-webkit-flex-wrap: nowrap !important;
-ms-flex-wrap: nowrap !important;
flex-wrap: nowrap !important;
}
.flex-lg-wrap-reverse {
-webkit-flex-wrap: wrap-reverse !important;
-ms-flex-wrap: wrap-reverse !important;
flex-wrap: wrap-reverse !important;
}
.justify-content-lg-start {
-webkit-box-pack: start !important;
-webkit-justify-content: flex-start !important;
-ms-flex-pack: start !important;
justify-content: flex-start !important;
}
.justify-content-lg-end {
-webkit-box-pack: end !important;
-webkit-justify-content: flex-end !important;
-ms-flex-pack: end !important;
justify-content: flex-end !important;
}
.justify-content-lg-center {
-webkit-box-pack: center !important;
-webkit-justify-content: center !important;
-ms-flex-pack: center !important;
justify-content: center !important;
}
.justify-content-lg-between {
-webkit-box-pack: justify !important;
-webkit-justify-content: space-between !important;
-ms-flex-pack: justify !important;
justify-content: space-between !important;
}
.justify-content-lg-around {
-webkit-justify-content: space-around !important;
-ms-flex-pack: distribute !important;
justify-content: space-around !important;
}
.align-items-lg-start {
-webkit-box-align: start !important;
-webkit-align-items: flex-start !important;
-ms-flex-align: start !important;
align-items: flex-start !important;
}
.align-items-lg-end {
-webkit-box-align: end !important;
-webkit-align-items: flex-end !important;
-ms-flex-align: end !important;
align-items: flex-end !important;
}
.align-items-lg-center {
-webkit-box-align: center !important;
-webkit-align-items: center !important;
-ms-flex-align: center !important;
align-items: center !important;
}
.align-items-lg-baseline {
-webkit-box-align: baseline !important;
-webkit-align-items: baseline !important;
-ms-flex-align: baseline !important;
align-items: baseline !important;
}
.align-items-lg-stretch {
-webkit-box-align: stretch !important;
-webkit-align-items: stretch !important;
-ms-flex-align: stretch !important;
align-items: stretch !important;
}
.align-content-lg-start {
-webkit-align-content: flex-start !important;
-ms-flex-line-pack: start !important;
align-content: flex-start !important;
}
.align-content-lg-end {
-webkit-align-content: flex-end !important;
-ms-flex-line-pack: end !important;
align-content: flex-end !important;
}
.align-content-lg-center {
-webkit-align-content: center !important;
-ms-flex-line-pack: center !important;
align-content: center !important;
}
.align-content-lg-between {
-webkit-align-content: space-between !important;
-ms-flex-line-pack: justify !important;
align-content: space-between !important;
}
.align-content-lg-around {
-webkit-align-content: space-around !important;
-ms-flex-line-pack: distribute !important;
align-content: space-around !important;
}
.align-content-lg-stretch {
-webkit-align-content: stretch !important;
-ms-flex-line-pack: stretch !important;
align-content: stretch !important;
}
.align-self-lg-auto {
-webkit-align-self: auto !important;
-ms-flex-item-align: auto !important;
-ms-grid-row-align: auto !important;
align-self: auto !important;
}
.align-self-lg-start {
-webkit-align-self: flex-start !important;
-ms-flex-item-align: start !important;
align-self: flex-start !important;
}
.align-self-lg-end {
-webkit-align-self: flex-end !important;
-ms-flex-item-align: end !important;
align-self: flex-end !important;
}
.align-self-lg-center {
-webkit-align-self: center !important;
-ms-flex-item-align: center !important;
-ms-grid-row-align: center !important;
align-self: center !important;
}
.align-self-lg-baseline {
-webkit-align-self: baseline !important;
-ms-flex-item-align: baseline !important;
align-self: baseline !important;
}
.align-self-lg-stretch {
-webkit-align-self: stretch !important;
-ms-flex-item-align: stretch !important;
-ms-grid-row-align: stretch !important;
align-self: stretch !important;
}
}
@media (min-width: 1200px) {
.flex-xl-first {
-webkit-box-ordinal-group: 0;
-webkit-order: -1;
-ms-flex-order: -1;
order: -1;
}
.flex-xl-last {
-webkit-box-ordinal-group: 2;
-webkit-order: 1;
-ms-flex-order: 1;
order: 1;
}
.flex-xl-unordered {
-webkit-box-ordinal-group: 1;
-webkit-order: 0;
-ms-flex-order: 0;
order: 0;
}
.flex-xl-row {
-webkit-box-orient: horizontal !important;
-webkit-box-direction: normal !important;
-webkit-flex-direction: row !important;
-ms-flex-direction: row !important;
flex-direction: row !important;
}
.flex-xl-column {
-webkit-box-orient: vertical !important;
-webkit-box-direction: normal !important;
-webkit-flex-direction: column !important;
-ms-flex-direction: column !important;
flex-direction: column !important;
}
.flex-xl-row-reverse {
-webkit-box-orient: horizontal !important;
-webkit-box-direction: reverse !important;
-webkit-flex-direction: row-reverse !important;
-ms-flex-direction: row-reverse !important;
flex-direction: row-reverse !important;
}
.flex-xl-column-reverse {
-webkit-box-orient: vertical !important;
-webkit-box-direction: reverse !important;
-webkit-flex-direction: column-reverse !important;
-ms-flex-direction: column-reverse !important;
flex-direction: column-reverse !important;
}
.flex-xl-wrap {
-webkit-flex-wrap: wrap !important;
-ms-flex-wrap: wrap !important;
flex-wrap: wrap !important;
}
.flex-xl-nowrap {
-webkit-flex-wrap: nowrap !important;
-ms-flex-wrap: nowrap !important;
flex-wrap: nowrap !important;
}
.flex-xl-wrap-reverse {
-webkit-flex-wrap: wrap-reverse !important;
-ms-flex-wrap: wrap-reverse !important;
flex-wrap: wrap-reverse !important;
}
.justify-content-xl-start {
-webkit-box-pack: start !important;
-webkit-justify-content: flex-start !important;
-ms-flex-pack: start !important;
justify-content: flex-start !important;
}
.justify-content-xl-end {
-webkit-box-pack: end !important;
-webkit-justify-content: flex-end !important;
-ms-flex-pack: end !important;
justify-content: flex-end !important;
}
.justify-content-xl-center {
-webkit-box-pack: center !important;
-webkit-justify-content: center !important;
-ms-flex-pack: center !important;
justify-content: center !important;
}
.justify-content-xl-between {
-webkit-box-pack: justify !important;
-webkit-justify-content: space-between !important;
-ms-flex-pack: justify !important;
justify-content: space-between !important;
}
.justify-content-xl-around {
-webkit-justify-content: space-around !important;
-ms-flex-pack: distribute !important;
justify-content: space-around !important;
}
.align-items-xl-start {
-webkit-box-align: start !important;
-webkit-align-items: flex-start !important;
-ms-flex-align: start !important;
align-items: flex-start !important;
}
.align-items-xl-end {
-webkit-box-align: end !important;
-webkit-align-items: flex-end !important;
-ms-flex-align: end !important;
align-items: flex-end !important;
}
.align-items-xl-center {
-webkit-box-align: center !important;
-webkit-align-items: center !important;
-ms-flex-align: center !important;
align-items: center !important;
}
.align-items-xl-baseline {
-webkit-box-align: baseline !important;
-webkit-align-items: baseline !important;
-ms-flex-align: baseline !important;
align-items: baseline !important;
}
.align-items-xl-stretch {
-webkit-box-align: stretch !important;
-webkit-align-items: stretch !important;
-ms-flex-align: stretch !important;
align-items: stretch !important;
}
.align-content-xl-start {
-webkit-align-content: flex-start !important;
-ms-flex-line-pack: start !important;
align-content: flex-start !important;
}
.align-content-xl-end {
-webkit-align-content: flex-end !important;
-ms-flex-line-pack: end !important;
align-content: flex-end !important;
}
.align-content-xl-center {
-webkit-align-content: center !important;
-ms-flex-line-pack: center !important;
align-content: center !important;
}
.align-content-xl-between {
-webkit-align-content: space-between !important;
-ms-flex-line-pack: justify !important;
align-content: space-between !important;
}
.align-content-xl-around {
-webkit-align-content: space-around !important;
-ms-flex-line-pack: distribute !important;
align-content: space-around !important;
}
.align-content-xl-stretch {
-webkit-align-content: stretch !important;
-ms-flex-line-pack: stretch !important;
align-content: stretch !important;
}
.align-self-xl-auto {
-webkit-align-self: auto !important;
-ms-flex-item-align: auto !important;
-ms-grid-row-align: auto !important;
align-self: auto !important;
}
.align-self-xl-start {
-webkit-align-self: flex-start !important;
-ms-flex-item-align: start !important;
align-self: flex-start !important;
}
.align-self-xl-end {
-webkit-align-self: flex-end !important;
-ms-flex-item-align: end !important;
align-self: flex-end !important;
}
.align-self-xl-center {
-webkit-align-self: center !important;
-ms-flex-item-align: center !important;
-ms-grid-row-align: center !important;
align-self: center !important;
}
.align-self-xl-baseline {
-webkit-align-self: baseline !important;
-ms-flex-item-align: baseline !important;
align-self: baseline !important;
}
.align-self-xl-stretch {
-webkit-align-self: stretch !important;
-ms-flex-item-align: stretch !important;
-ms-grid-row-align: stretch !important;
align-self: stretch !important;
}
}
.float-left {
float: left !important;
}
.float-right {
float: right !important;
}
.float-none {
float: none !important;
}
@media (min-width: 576px) {
.float-sm-left {
float: left !important;
}
.float-sm-right {
float: right !important;
}
.float-sm-none {
float: none !important;
}
}
@media (min-width: 768px) {
.float-md-left {
float: left !important;
}
.float-md-right {
float: right !important;
}
.float-md-none {
float: none !important;
}
}
@media (min-width: 992px) {
.float-lg-left {
float: left !important;
}
.float-lg-right {
float: right !important;
}
.float-lg-none {
float: none !important;
}
}
@media (min-width: 1200px) {
.float-xl-left {
float: left !important;
}
.float-xl-right {
float: right !important;
}
.float-xl-none {
float: none !important;
}
}
.fixed-top {
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 1030;
}
.fixed-bottom {
position: fixed;
right: 0;
bottom: 0;
left: 0;
z-index: 1030;
}
.sticky-top {
position: -webkit-sticky;
position: sticky;
top: 0;
z-index: 1030;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
.sr-only-focusable:active, .sr-only-focusable:focus {
position: static;
width: auto;
height: auto;
margin: 0;
overflow: visible;
clip: auto;
}
.w-25 {
width: 25% !important;
}
.w-50 {
width: 50% !important;
}
.w-75 {
width: 75% !important;
}
.w-100 {
width: 100% !important;
}
.h-25 {
height: 25% !important;
}
.h-50 {
height: 50% !important;
}
.h-75 {
height: 75% !important;
}
.h-100 {
height: 100% !important;
}
.mw-100 {
max-width: 100% !important;
}
.mh-100 {
max-height: 100% !important;
}
.m-0 {
margin: 0 0 !important;
}
.mt-0 {
margin-top: 0 !important;
}
.mr-0 {
margin-right: 0 !important;
}
.mb-0 {
margin-bottom: 0 !important;
}
.ml-0 {
margin-left: 0 !important;
}
.mx-0 {
margin-right: 0 !important;
margin-left: 0 !important;
}
.my-0 {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.m-1 {
margin: 0.25rem 0.25rem !important;
}
.mt-1 {
margin-top: 0.25rem !important;
}
.mr-1 {
margin-right: 0.25rem !important;
}
.mb-1 {
margin-bottom: 0.25rem !important;
}
.ml-1 {
margin-left: 0.25rem !important;
}
.mx-1 {
margin-right: 0.25rem !important;
margin-left: 0.25rem !important;
}
.my-1 {
margin-top: 0.25rem !important;
margin-bottom: 0.25rem !important;
}
.m-2 {
margin: 0.5rem 0.5rem !important;
}
.mt-2 {
margin-top: 0.5rem !important;
}
.mr-2 {
margin-right: 0.5rem !important;
}
.mb-2 {
margin-bottom: 0.5rem !important;
}
.ml-2 {
margin-left: 0.5rem !important;
}
.mx-2 {
margin-right: 0.5rem !important;
margin-left: 0.5rem !important;
}
.my-2 {
margin-top: 0.5rem !important;
margin-bottom: 0.5rem !important;
}
.m-3 {
margin: 1rem 1rem !important;
}
.mt-3 {
margin-top: 1rem !important;
}
.mr-3 {
margin-right: 1rem !important;
}
.mb-3 {
margin-bottom: 1rem !important;
}
.ml-3 {
margin-left: 1rem !important;
}
.mx-3 {
margin-right: 1rem !important;
margin-left: 1rem !important;
}
.my-3 {
margin-top: 1rem !important;
margin-bottom: 1rem !important;
}
.m-4 {
margin: 1.5rem 1.5rem !important;
}
.mt-4 {
margin-top: 1.5rem !important;
}
.mr-4 {
margin-right: 1.5rem !important;
}
.mb-4 {
margin-bottom: 1.5rem !important;
}
.ml-4 {
margin-left: 1.5rem !important;
}
.mx-4 {
margin-right: 1.5rem !important;
margin-left: 1.5rem !important;
}
.my-4 {
margin-top: 1.5rem !important;
margin-bottom: 1.5rem !important;
}
.m-5 {
margin: 3rem 3rem !important;
}
.mt-5 {
margin-top: 3rem !important;
}
.mr-5 {
margin-right: 3rem !important;
}
.mb-5 {
margin-bottom: 3rem !important;
}
.ml-5 {
margin-left: 3rem !important;
}
.mx-5 {
margin-right: 3rem !important;
margin-left: 3rem !important;
}
.my-5 {
margin-top: 3rem !important;
margin-bottom: 3rem !important;
}
.p-0 {
padding: 0 0 !important;
}
.pt-0 {
padding-top: 0 !important;
}
.pr-0 {
padding-right: 0 !important;
}
.pb-0 {
padding-bottom: 0 !important;
}
.pl-0 {
padding-left: 0 !important;
}
.px-0 {
padding-right: 0 !important;
padding-left: 0 !important;
}
.py-0 {
padding-top: 0 !important;
padding-bottom: 0 !important;
}
.p-1 {
padding: 0.25rem 0.25rem !important;
}
.pt-1 {
padding-top: 0.25rem !important;
}
.pr-1 {
padding-right: 0.25rem !important;
}
.pb-1 {
padding-bottom: 0.25rem !important;
}
.pl-1 {
padding-left: 0.25rem !important;
}
.px-1 {
padding-right: 0.25rem !important;
padding-left: 0.25rem !important;
}
.py-1 {
padding-top: 0.25rem !important;
padding-bottom: 0.25rem !important;
}
.p-2 {
padding: 0.5rem 0.5rem !important;
}
.pt-2 {
padding-top: 0.5rem !important;
}
.pr-2 {
padding-right: 0.5rem !important;
}
.pb-2 {
padding-bottom: 0.5rem !important;
}
.pl-2 {
padding-left: 0.5rem !important;
}
.px-2 {
padding-right: 0.5rem !important;
padding-left: 0.5rem !important;
}
.py-2 {
padding-top: 0.5rem !important;
padding-bottom: 0.5rem !important;
}
.p-3 {
padding: 1rem 1rem !important;
}
.pt-3 {
padding-top: 1rem !important;
}
.pr-3 {
padding-right: 1rem !important;
}
.pb-3 {
padding-bottom: 1rem !important;
}
.pl-3 {
padding-left: 1rem !important;
}
.px-3 {
padding-right: 1rem !important;
padding-left: 1rem !important;
}
.py-3 {
padding-top: 1rem !important;
padding-bottom: 1rem !important;
}
.p-4 {
padding: 1.5rem 1.5rem !important;
}
.pt-4 {
padding-top: 1.5rem !important;
}
.pr-4 {
padding-right: 1.5rem !important;
}
.pb-4 {
padding-bottom: 1.5rem !important;
}
.pl-4 {
padding-left: 1.5rem !important;
}
.px-4 {
padding-right: 1.5rem !important;
padding-left: 1.5rem !important;
}
.py-4 {
padding-top: 1.5rem !important;
padding-bottom: 1.5rem !important;
}
.p-5 {
padding: 3rem 3rem !important;
}
.pt-5 {
padding-top: 3rem !important;
}
.pr-5 {
padding-right: 3rem !important;
}
.pb-5 {
padding-bottom: 3rem !important;
}
.pl-5 {
padding-left: 3rem !important;
}
.px-5 {
padding-right: 3rem !important;
padding-left: 3rem !important;
}
.py-5 {
padding-top: 3rem !important;
padding-bottom: 3rem !important;
}
.m-auto {
margin: auto !important;
}
.mt-auto {
margin-top: auto !important;
}
.mr-auto {
margin-right: auto !important;
}
.mb-auto {
margin-bottom: auto !important;
}
.ml-auto {
margin-left: auto !important;
}
.mx-auto {
margin-right: auto !important;
margin-left: auto !important;
}
.my-auto {
margin-top: auto !important;
margin-bottom: auto !important;
}
@media (min-width: 576px) {
.m-sm-0 {
margin: 0 0 !important;
}
.mt-sm-0 {
margin-top: 0 !important;
}
.mr-sm-0 {
margin-right: 0 !important;
}
.mb-sm-0 {
margin-bottom: 0 !important;
}
.ml-sm-0 {
margin-left: 0 !important;
}
.mx-sm-0 {
margin-right: 0 !important;
margin-left: 0 !important;
}
.my-sm-0 {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.m-sm-1 {
margin: 0.25rem 0.25rem !important;
}
.mt-sm-1 {
margin-top: 0.25rem !important;
}
.mr-sm-1 {
margin-right: 0.25rem !important;
}
.mb-sm-1 {
margin-bottom: 0.25rem !important;
}
.ml-sm-1 {
margin-left: 0.25rem !important;
}
.mx-sm-1 {
margin-right: 0.25rem !important;
margin-left: 0.25rem !important;
}
.my-sm-1 {
margin-top: 0.25rem !important;
margin-bottom: 0.25rem !important;
}
.m-sm-2 {
margin: 0.5rem 0.5rem !important;
}
.mt-sm-2 {
margin-top: 0.5rem !important;
}
.mr-sm-2 {
margin-right: 0.5rem !important;
}
.mb-sm-2 {
margin-bottom: 0.5rem !important;
}
.ml-sm-2 {
margin-left: 0.5rem !important;
}
.mx-sm-2 {
margin-right: 0.5rem !important;
margin-left: 0.5rem !important;
}
.my-sm-2 {
margin-top: 0.5rem !important;
margin-bottom: 0.5rem !important;
}
.m-sm-3 {
margin: 1rem 1rem !important;
}
.mt-sm-3 {
margin-top: 1rem !important;
}
.mr-sm-3 {
margin-right: 1rem !important;
}
.mb-sm-3 {
margin-bottom: 1rem !important;
}
.ml-sm-3 {
margin-left: 1rem !important;
}
.mx-sm-3 {
margin-right: 1rem !important;
margin-left: 1rem !important;
}
.my-sm-3 {
margin-top: 1rem !important;
margin-bottom: 1rem !important;
}
.m-sm-4 {
margin: 1.5rem 1.5rem !important;
}
.mt-sm-4 {
margin-top: 1.5rem !important;
}
.mr-sm-4 {
margin-right: 1.5rem !important;
}
.mb-sm-4 {
margin-bottom: 1.5rem !important;
}
.ml-sm-4 {
margin-left: 1.5rem !important;
}
.mx-sm-4 {
margin-right: 1.5rem !important;
margin-left: 1.5rem !important;
}
.my-sm-4 {
margin-top: 1.5rem !important;
margin-bottom: 1.5rem !important;
}
.m-sm-5 {
margin: 3rem 3rem !important;
}
.mt-sm-5 {
margin-top: 3rem !important;
}
.mr-sm-5 {
margin-right: 3rem !important;
}
.mb-sm-5 {
margin-bottom: 3rem !important;
}
.ml-sm-5 {
margin-left: 3rem !important;
}
.mx-sm-5 {
margin-right: 3rem !important;
margin-left: 3rem !important;
}
.my-sm-5 {
margin-top: 3rem !important;
margin-bottom: 3rem !important;
}
.p-sm-0 {
padding: 0 0 !important;
}
.pt-sm-0 {
padding-top: 0 !important;
}
.pr-sm-0 {
padding-right: 0 !important;
}
.pb-sm-0 {
padding-bottom: 0 !important;
}
.pl-sm-0 {
padding-left: 0 !important;
}
.px-sm-0 {
padding-right: 0 !important;
padding-left: 0 !important;
}
.py-sm-0 {
padding-top: 0 !important;
padding-bottom: 0 !important;
}
.p-sm-1 {
padding: 0.25rem 0.25rem !important;
}
.pt-sm-1 {
padding-top: 0.25rem !important;
}
.pr-sm-1 {
padding-right: 0.25rem !important;
}
.pb-sm-1 {
padding-bottom: 0.25rem !important;
}
.pl-sm-1 {
padding-left: 0.25rem !important;
}
.px-sm-1 {
padding-right: 0.25rem !important;
padding-left: 0.25rem !important;
}
.py-sm-1 {
padding-top: 0.25rem !important;
padding-bottom: 0.25rem !important;
}
.p-sm-2 {
padding: 0.5rem 0.5rem !important;
}
.pt-sm-2 {
padding-top: 0.5rem !important;
}
.pr-sm-2 {
padding-right: 0.5rem !important;
}
.pb-sm-2 {
padding-bottom: 0.5rem !important;
}
.pl-sm-2 {
padding-left: 0.5rem !important;
}
.px-sm-2 {
padding-right: 0.5rem !important;
padding-left: 0.5rem !important;
}
.py-sm-2 {
padding-top: 0.5rem !important;
padding-bottom: 0.5rem !important;
}
.p-sm-3 {
padding: 1rem 1rem !important;
}
.pt-sm-3 {
padding-top: 1rem !important;
}
.pr-sm-3 {
padding-right: 1rem !important;
}
.pb-sm-3 {
padding-bottom: 1rem !important;
}
.pl-sm-3 {
padding-left: 1rem !important;
}
.px-sm-3 {
padding-right: 1rem !important;
padding-left: 1rem !important;
}
.py-sm-3 {
padding-top: 1rem !important;
padding-bottom: 1rem !important;
}
.p-sm-4 {
padding: 1.5rem 1.5rem !important;
}
.pt-sm-4 {
padding-top: 1.5rem !important;
}
.pr-sm-4 {
padding-right: 1.5rem !important;
}
.pb-sm-4 {
padding-bottom: 1.5rem !important;
}
.pl-sm-4 {
padding-left: 1.5rem !important;
}
.px-sm-4 {
padding-right: 1.5rem !important;
padding-left: 1.5rem !important;
}
.py-sm-4 {
padding-top: 1.5rem !important;
padding-bottom: 1.5rem !important;
}
.p-sm-5 {
padding: 3rem 3rem !important;
}
.pt-sm-5 {
padding-top: 3rem !important;
}
.pr-sm-5 {
padding-right: 3rem !important;
}
.pb-sm-5 {
padding-bottom: 3rem !important;
}
.pl-sm-5 {
padding-left: 3rem !important;
}
.px-sm-5 {
padding-right: 3rem !important;
padding-left: 3rem !important;
}
.py-sm-5 {
padding-top: 3rem !important;
padding-bottom: 3rem !important;
}
.m-sm-auto {
margin: auto !important;
}
.mt-sm-auto {
margin-top: auto !important;
}
.mr-sm-auto {
margin-right: auto !important;
}
.mb-sm-auto {
margin-bottom: auto !important;
}
.ml-sm-auto {
margin-left: auto !important;
}
.mx-sm-auto {
margin-right: auto !important;
margin-left: auto !important;
}
.my-sm-auto {
margin-top: auto !important;
margin-bottom: auto !important;
}
}
@media (min-width: 768px) {
.m-md-0 {
margin: 0 0 !important;
}
.mt-md-0 {
margin-top: 0 !important;
}
.mr-md-0 {
margin-right: 0 !important;
}
.mb-md-0 {
margin-bottom: 0 !important;
}
.ml-md-0 {
margin-left: 0 !important;
}
.mx-md-0 {
margin-right: 0 !important;
margin-left: 0 !important;
}
.my-md-0 {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.m-md-1 {
margin: 0.25rem 0.25rem !important;
}
.mt-md-1 {
margin-top: 0.25rem !important;
}
.mr-md-1 {
margin-right: 0.25rem !important;
}
.mb-md-1 {
margin-bottom: 0.25rem !important;
}
.ml-md-1 {
margin-left: 0.25rem !important;
}
.mx-md-1 {
margin-right: 0.25rem !important;
margin-left: 0.25rem !important;
}
.my-md-1 {
margin-top: 0.25rem !important;
margin-bottom: 0.25rem !important;
}
.m-md-2 {
margin: 0.5rem 0.5rem !important;
}
.mt-md-2 {
margin-top: 0.5rem !important;
}
.mr-md-2 {
margin-right: 0.5rem !important;
}
.mb-md-2 {
margin-bottom: 0.5rem !important;
}
.ml-md-2 {
margin-left: 0.5rem !important;
}
.mx-md-2 {
margin-right: 0.5rem !important;
margin-left: 0.5rem !important;
}
.my-md-2 {
margin-top: 0.5rem !important;
margin-bottom: 0.5rem !important;
}
.m-md-3 {
margin: 1rem 1rem !important;
}
.mt-md-3 {
margin-top: 1rem !important;
}
.mr-md-3 {
margin-right: 1rem !important;
}
.mb-md-3 {
margin-bottom: 1rem !important;
}
.ml-md-3 {
margin-left: 1rem !important;
}
.mx-md-3 {
margin-right: 1rem !important;
margin-left: 1rem !important;
}
.my-md-3 {
margin-top: 1rem !important;
margin-bottom: 1rem !important;
}
.m-md-4 {
margin: 1.5rem 1.5rem !important;
}
.mt-md-4 {
margin-top: 1.5rem !important;
}
.mr-md-4 {
margin-right: 1.5rem !important;
}
.mb-md-4 {
margin-bottom: 1.5rem !important;
}
.ml-md-4 {
margin-left: 1.5rem !important;
}
.mx-md-4 {
margin-right: 1.5rem !important;
margin-left: 1.5rem !important;
}
.my-md-4 {
margin-top: 1.5rem !important;
margin-bottom: 1.5rem !important;
}
.m-md-5 {
margin: 3rem 3rem !important;
}
.mt-md-5 {
margin-top: 3rem !important;
}
.mr-md-5 {
margin-right: 3rem !important;
}
.mb-md-5 {
margin-bottom: 3rem !important;
}
.ml-md-5 {
margin-left: 3rem !important;
}
.mx-md-5 {
margin-right: 3rem !important;
margin-left: 3rem !important;
}
.my-md-5 {
margin-top: 3rem !important;
margin-bottom: 3rem !important;
}
.p-md-0 {
padding: 0 0 !important;
}
.pt-md-0 {
padding-top: 0 !important;
}
.pr-md-0 {
padding-right: 0 !important;
}
.pb-md-0 {
padding-bottom: 0 !important;
}
.pl-md-0 {
padding-left: 0 !important;
}
.px-md-0 {
padding-right: 0 !important;
padding-left: 0 !important;
}
.py-md-0 {
padding-top: 0 !important;
padding-bottom: 0 !important;
}
.p-md-1 {
padding: 0.25rem 0.25rem !important;
}
.pt-md-1 {
padding-top: 0.25rem !important;
}
.pr-md-1 {
padding-right: 0.25rem !important;
}
.pb-md-1 {
padding-bottom: 0.25rem !important;
}
.pl-md-1 {
padding-left: 0.25rem !important;
}
.px-md-1 {
padding-right: 0.25rem !important;
padding-left: 0.25rem !important;
}
.py-md-1 {
padding-top: 0.25rem !important;
padding-bottom: 0.25rem !important;
}
.p-md-2 {
padding: 0.5rem 0.5rem !important;
}
.pt-md-2 {
padding-top: 0.5rem !important;
}
.pr-md-2 {
padding-right: 0.5rem !important;
}
.pb-md-2 {
padding-bottom: 0.5rem !important;
}
.pl-md-2 {
padding-left: 0.5rem !important;
}
.px-md-2 {
padding-right: 0.5rem !important;
padding-left: 0.5rem !important;
}
.py-md-2 {
padding-top: 0.5rem !important;
padding-bottom: 0.5rem !important;
}
.p-md-3 {
padding: 1rem 1rem !important;
}
.pt-md-3 {
padding-top: 1rem !important;
}
.pr-md-3 {
padding-right: 1rem !important;
}
.pb-md-3 {
padding-bottom: 1rem !important;
}
.pl-md-3 {
padding-left: 1rem !important;
}
.px-md-3 {
padding-right: 1rem !important;
padding-left: 1rem !important;
}
.py-md-3 {
padding-top: 1rem !important;
padding-bottom: 1rem !important;
}
.p-md-4 {
padding: 1.5rem 1.5rem !important;
}
.pt-md-4 {
padding-top: 1.5rem !important;
}
.pr-md-4 {
padding-right: 1.5rem !important;
}
.pb-md-4 {
padding-bottom: 1.5rem !important;
}
.pl-md-4 {
padding-left: 1.5rem !important;
}
.px-md-4 {
padding-right: 1.5rem !important;
padding-left: 1.5rem !important;
}
.py-md-4 {
padding-top: 1.5rem !important;
padding-bottom: 1.5rem !important;
}
.p-md-5 {
padding: 3rem 3rem !important;
}
.pt-md-5 {
padding-top: 3rem !important;
}
.pr-md-5 {
padding-right: 3rem !important;
}
.pb-md-5 {
padding-bottom: 3rem !important;
}
.pl-md-5 {
padding-left: 3rem !important;
}
.px-md-5 {
padding-right: 3rem !important;
padding-left: 3rem !important;
}
.py-md-5 {
padding-top: 3rem !important;
padding-bottom: 3rem !important;
}
.m-md-auto {
margin: auto !important;
}
.mt-md-auto {
margin-top: auto !important;
}
.mr-md-auto {
margin-right: auto !important;
}
.mb-md-auto {
margin-bottom: auto !important;
}
.ml-md-auto {
margin-left: auto !important;
}
.mx-md-auto {
margin-right: auto !important;
margin-left: auto !important;
}
.my-md-auto {
margin-top: auto !important;
margin-bottom: auto !important;
}
}
@media (min-width: 992px) {
.m-lg-0 {
margin: 0 0 !important;
}
.mt-lg-0 {
margin-top: 0 !important;
}
.mr-lg-0 {
margin-right: 0 !important;
}
.mb-lg-0 {
margin-bottom: 0 !important;
}
.ml-lg-0 {
margin-left: 0 !important;
}
.mx-lg-0 {
margin-right: 0 !important;
margin-left: 0 !important;
}
.my-lg-0 {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.m-lg-1 {
margin: 0.25rem 0.25rem !important;
}
.mt-lg-1 {
margin-top: 0.25rem !important;
}
.mr-lg-1 {
margin-right: 0.25rem !important;
}
.mb-lg-1 {
margin-bottom: 0.25rem !important;
}
.ml-lg-1 {
margin-left: 0.25rem !important;
}
.mx-lg-1 {
margin-right: 0.25rem !important;
margin-left: 0.25rem !important;
}
.my-lg-1 {
margin-top: 0.25rem !important;
margin-bottom: 0.25rem !important;
}
.m-lg-2 {
margin: 0.5rem 0.5rem !important;
}
.mt-lg-2 {
margin-top: 0.5rem !important;
}
.mr-lg-2 {
margin-right: 0.5rem !important;
}
.mb-lg-2 {
margin-bottom: 0.5rem !important;
}
.ml-lg-2 {
margin-left: 0.5rem !important;
}
.mx-lg-2 {
margin-right: 0.5rem !important;
margin-left: 0.5rem !important;
}
.my-lg-2 {
margin-top: 0.5rem !important;
margin-bottom: 0.5rem !important;
}
.m-lg-3 {
margin: 1rem 1rem !important;
}
.mt-lg-3 {
margin-top: 1rem !important;
}
.mr-lg-3 {
margin-right: 1rem !important;
}
.mb-lg-3 {
margin-bottom: 1rem !important;
}
.ml-lg-3 {
margin-left: 1rem !important;
}
.mx-lg-3 {
margin-right: 1rem !important;
margin-left: 1rem !important;
}
.my-lg-3 {
margin-top: 1rem !important;
margin-bottom: 1rem !important;
}
.m-lg-4 {
margin: 1.5rem 1.5rem !important;
}
.mt-lg-4 {
margin-top: 1.5rem !important;
}
.mr-lg-4 {
margin-right: 1.5rem !important;
}
.mb-lg-4 {
margin-bottom: 1.5rem !important;
}
.ml-lg-4 {
margin-left: 1.5rem !important;
}
.mx-lg-4 {
margin-right: 1.5rem !important;
margin-left: 1.5rem !important;
}
.my-lg-4 {
margin-top: 1.5rem !important;
margin-bottom: 1.5rem !important;
}
.m-lg-5 {
margin: 3rem 3rem !important;
}
.mt-lg-5 {
margin-top: 3rem !important;
}
.mr-lg-5 {
margin-right: 3rem !important;
}
.mb-lg-5 {
margin-bottom: 3rem !important;
}
.ml-lg-5 {
margin-left: 3rem !important;
}
.mx-lg-5 {
margin-right: 3rem !important;
margin-left: 3rem !important;
}
.my-lg-5 {
margin-top: 3rem !important;
margin-bottom: 3rem !important;
}
.p-lg-0 {
padding: 0 0 !important;
}
.pt-lg-0 {
padding-top: 0 !important;
}
.pr-lg-0 {
padding-right: 0 !important;
}
.pb-lg-0 {
padding-bottom: 0 !important;
}
.pl-lg-0 {
padding-left: 0 !important;
}
.px-lg-0 {
padding-right: 0 !important;
padding-left: 0 !important;
}
.py-lg-0 {
padding-top: 0 !important;
padding-bottom: 0 !important;
}
.p-lg-1 {
padding: 0.25rem 0.25rem !important;
}
.pt-lg-1 {
padding-top: 0.25rem !important;
}
.pr-lg-1 {
padding-right: 0.25rem !important;
}
.pb-lg-1 {
padding-bottom: 0.25rem !important;
}
.pl-lg-1 {
padding-left: 0.25rem !important;
}
.px-lg-1 {
padding-right: 0.25rem !important;
padding-left: 0.25rem !important;
}
.py-lg-1 {
padding-top: 0.25rem !important;
padding-bottom: 0.25rem !important;
}
.p-lg-2 {
padding: 0.5rem 0.5rem !important;
}
.pt-lg-2 {
padding-top: 0.5rem !important;
}
.pr-lg-2 {
padding-right: 0.5rem !important;
}
.pb-lg-2 {
padding-bottom: 0.5rem !important;
}
.pl-lg-2 {
padding-left: 0.5rem !important;
}
.px-lg-2 {
padding-right: 0.5rem !important;
padding-left: 0.5rem !important;
}
.py-lg-2 {
padding-top: 0.5rem !important;
padding-bottom: 0.5rem !important;
}
.p-lg-3 {
padding: 1rem 1rem !important;
}
.pt-lg-3 {
padding-top: 1rem !important;
}
.pr-lg-3 {
padding-right: 1rem !important;
}
.pb-lg-3 {
padding-bottom: 1rem !important;
}
.pl-lg-3 {
padding-left: 1rem !important;
}
.px-lg-3 {
padding-right: 1rem !important;
padding-left: 1rem !important;
}
.py-lg-3 {
padding-top: 1rem !important;
padding-bottom: 1rem !important;
}
.p-lg-4 {
padding: 1.5rem 1.5rem !important;
}
.pt-lg-4 {
padding-top: 1.5rem !important;
}
.pr-lg-4 {
padding-right: 1.5rem !important;
}
.pb-lg-4 {
padding-bottom: 1.5rem !important;
}
.pl-lg-4 {
padding-left: 1.5rem !important;
}
.px-lg-4 {
padding-right: 1.5rem !important;
padding-left: 1.5rem !important;
}
.py-lg-4 {
padding-top: 1.5rem !important;
padding-bottom: 1.5rem !important;
}
.p-lg-5 {
padding: 3rem 3rem !important;
}
.pt-lg-5 {
padding-top: 3rem !important;
}
.pr-lg-5 {
padding-right: 3rem !important;
}
.pb-lg-5 {
padding-bottom: 3rem !important;
}
.pl-lg-5 {
padding-left: 3rem !important;
}
.px-lg-5 {
padding-right: 3rem !important;
padding-left: 3rem !important;
}
.py-lg-5 {
padding-top: 3rem !important;
padding-bottom: 3rem !important;
}
.m-lg-auto {
margin: auto !important;
}
.mt-lg-auto {
margin-top: auto !important;
}
.mr-lg-auto {
margin-right: auto !important;
}
.mb-lg-auto {
margin-bottom: auto !important;
}
.ml-lg-auto {
margin-left: auto !important;
}
.mx-lg-auto {
margin-right: auto !important;
margin-left: auto !important;
}
.my-lg-auto {
margin-top: auto !important;
margin-bottom: auto !important;
}
}
@media (min-width: 1200px) {
.m-xl-0 {
margin: 0 0 !important;
}
.mt-xl-0 {
margin-top: 0 !important;
}
.mr-xl-0 {
margin-right: 0 !important;
}
.mb-xl-0 {
margin-bottom: 0 !important;
}
.ml-xl-0 {
margin-left: 0 !important;
}
.mx-xl-0 {
margin-right: 0 !important;
margin-left: 0 !important;
}
.my-xl-0 {
margin-top: 0 !important;
margin-bottom: 0 !important;
}
.m-xl-1 {
margin: 0.25rem 0.25rem !important;
}
.mt-xl-1 {
margin-top: 0.25rem !important;
}
.mr-xl-1 {
margin-right: 0.25rem !important;
}
.mb-xl-1 {
margin-bottom: 0.25rem !important;
}
.ml-xl-1 {
margin-left: 0.25rem !important;
}
.mx-xl-1 {
margin-right: 0.25rem !important;
margin-left: 0.25rem !important;
}
.my-xl-1 {
margin-top: 0.25rem !important;
margin-bottom: 0.25rem !important;
}
.m-xl-2 {
margin: 0.5rem 0.5rem !important;
}
.mt-xl-2 {
margin-top: 0.5rem !important;
}
.mr-xl-2 {
margin-right: 0.5rem !important;
}
.mb-xl-2 {
margin-bottom: 0.5rem !important;
}
.ml-xl-2 {
margin-left: 0.5rem !important;
}
.mx-xl-2 {
margin-right: 0.5rem !important;
margin-left: 0.5rem !important;
}
.my-xl-2 {
margin-top: 0.5rem !important;
margin-bottom: 0.5rem !important;
}
.m-xl-3 {
margin: 1rem 1rem !important;
}
.mt-xl-3 {
margin-top: 1rem !important;
}
.mr-xl-3 {
margin-right: 1rem !important;
}
.mb-xl-3 {
margin-bottom: 1rem !important;
}
.ml-xl-3 {
margin-left: 1rem !important;
}
.mx-xl-3 {
margin-right: 1rem !important;
margin-left: 1rem !important;
}
.my-xl-3 {
margin-top: 1rem !important;
margin-bottom: 1rem !important;
}
.m-xl-4 {
margin: 1.5rem 1.5rem !important;
}
.mt-xl-4 {
margin-top: 1.5rem !important;
}
.mr-xl-4 {
margin-right: 1.5rem !important;
}
.mb-xl-4 {
margin-bottom: 1.5rem !important;
}
.ml-xl-4 {
margin-left: 1.5rem !important;
}
.mx-xl-4 {
margin-right: 1.5rem !important;
margin-left: 1.5rem !important;
}
.my-xl-4 {
margin-top: 1.5rem !important;
margin-bottom: 1.5rem !important;
}
.m-xl-5 {
margin: 3rem 3rem !important;
}
.mt-xl-5 {
margin-top: 3rem !important;
}
.mr-xl-5 {
margin-right: 3rem !important;
}
.mb-xl-5 {
margin-bottom: 3rem !important;
}
.ml-xl-5 {
margin-left: 3rem !important;
}
.mx-xl-5 {
margin-right: 3rem !important;
margin-left: 3rem !important;
}
.my-xl-5 {
margin-top: 3rem !important;
margin-bottom: 3rem !important;
}
.p-xl-0 {
padding: 0 0 !important;
}
.pt-xl-0 {
padding-top: 0 !important;
}
.pr-xl-0 {
padding-right: 0 !important;
}
.pb-xl-0 {
padding-bottom: 0 !important;
}
.pl-xl-0 {
padding-left: 0 !important;
}
.px-xl-0 {
padding-right: 0 !important;
padding-left: 0 !important;
}
.py-xl-0 {
padding-top: 0 !important;
padding-bottom: 0 !important;
}
.p-xl-1 {
padding: 0.25rem 0.25rem !important;
}
.pt-xl-1 {
padding-top: 0.25rem !important;
}
.pr-xl-1 {
padding-right: 0.25rem !important;
}
.pb-xl-1 {
padding-bottom: 0.25rem !important;
}
.pl-xl-1 {
padding-left: 0.25rem !important;
}
.px-xl-1 {
padding-right: 0.25rem !important;
padding-left: 0.25rem !important;
}
.py-xl-1 {
padding-top: 0.25rem !important;
padding-bottom: 0.25rem !important;
}
.p-xl-2 {
padding: 0.5rem 0.5rem !important;
}
.pt-xl-2 {
padding-top: 0.5rem !important;
}
.pr-xl-2 {
padding-right: 0.5rem !important;
}
.pb-xl-2 {
padding-bottom: 0.5rem !important;
}
.pl-xl-2 {
padding-left: 0.5rem !important;
}
.px-xl-2 {
padding-right: 0.5rem !important;
padding-left: 0.5rem !important;
}
.py-xl-2 {
padding-top: 0.5rem !important;
padding-bottom: 0.5rem !important;
}
.p-xl-3 {
padding: 1rem 1rem !important;
}
.pt-xl-3 {
padding-top: 1rem !important;
}
.pr-xl-3 {
padding-right: 1rem !important;
}
.pb-xl-3 {
padding-bottom: 1rem !important;
}
.pl-xl-3 {
padding-left: 1rem !important;
}
.px-xl-3 {
padding-right: 1rem !important;
padding-left: 1rem !important;
}
.py-xl-3 {
padding-top: 1rem !important;
padding-bottom: 1rem !important;
}
.p-xl-4 {
padding: 1.5rem 1.5rem !important;
}
.pt-xl-4 {
padding-top: 1.5rem !important;
}
.pr-xl-4 {
padding-right: 1.5rem !important;
}
.pb-xl-4 {
padding-bottom: 1.5rem !important;
}
.pl-xl-4 {
padding-left: 1.5rem !important;
}
.px-xl-4 {
padding-right: 1.5rem !important;
padding-left: 1.5rem !important;
}
.py-xl-4 {
padding-top: 1.5rem !important;
padding-bottom: 1.5rem !important;
}
.p-xl-5 {
padding: 3rem 3rem !important;
}
.pt-xl-5 {
padding-top: 3rem !important;
}
.pr-xl-5 {
padding-right: 3rem !important;
}
.pb-xl-5 {
padding-bottom: 3rem !important;
}
.pl-xl-5 {
padding-left: 3rem !important;
}
.px-xl-5 {
padding-right: 3rem !important;
padding-left: 3rem !important;
}
.py-xl-5 {
padding-top: 3rem !important;
padding-bottom: 3rem !important;
}
.m-xl-auto {
margin: auto !important;
}
.mt-xl-auto {
margin-top: auto !important;
}
.mr-xl-auto {
margin-right: auto !important;
}
.mb-xl-auto {
margin-bottom: auto !important;
}
.ml-xl-auto {
margin-left: auto !important;
}
.mx-xl-auto {
margin-right: auto !important;
margin-left: auto !important;
}
.my-xl-auto {
margin-top: auto !important;
margin-bottom: auto !important;
}
}
.text-justify {
text-align: justify !important;
}
.text-nowrap {
white-space: nowrap !important;
}
.text-truncate {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.text-left {
text-align: left !important;
}
.text-right {
text-align: right !important;
}
.text-center {
text-align: center !important;
}
@media (min-width: 576px) {
.text-sm-left {
text-align: left !important;
}
.text-sm-right {
text-align: right !important;
}
.text-sm-center {
text-align: center !important;
}
}
@media (min-width: 768px) {
.text-md-left {
text-align: left !important;
}
.text-md-right {
text-align: right !important;
}
.text-md-center {
text-align: center !important;
}
}
@media (min-width: 992px) {
.text-lg-left {
text-align: left !important;
}
.text-lg-right {
text-align: right !important;
}
.text-lg-center {
text-align: center !important;
}
}
@media (min-width: 1200px) {
.text-xl-left {
text-align: left !important;
}
.text-xl-right {
text-align: right !important;
}
.text-xl-center {
text-align: center !important;
}
}
.text-lowercase {
text-transform: lowercase !important;
}
.text-uppercase {
text-transform: uppercase !important;
}
.text-capitalize {
text-transform: capitalize !important;
}
.font-weight-normal {
font-weight: normal;
}
.font-weight-bold {
font-weight: bold;
}
.font-italic {
font-style: italic;
}
.text-white {
color: #fff !important;
}
.text-muted {
color: #636c72 !important;
}
a.text-muted:focus, a.text-muted:hover {
color: #4b5257 !important;
}
.text-primary {
color: #0275d8 !important;
}
a.text-primary:focus, a.text-primary:hover {
color: #025aa5 !important;
}
.text-success {
color: #5cb85c !important;
}
a.text-success:focus, a.text-success:hover {
color: #449d44 !important;
}
.text-info {
color: #5bc0de !important;
}
a.text-info:focus, a.text-info:hover {
color: #31b0d5 !important;
}
.text-warning {
color: #f0ad4e !important;
}
a.text-warning:focus, a.text-warning:hover {
color: #ec971f !important;
}
.text-danger {
color: #d9534f !important;
}
a.text-danger:focus, a.text-danger:hover {
color: #c9302c !important;
}
.text-gray-dark {
color: #292b2c !important;
}
a.text-gray-dark:focus, a.text-gray-dark:hover {
color: #101112 !important;
}
.text-hide {
font: 0/0 a;
color: transparent;
text-shadow: none;
background-color: transparent;
border: 0;
}
.invisible {
visibility: hidden !important;
}
.hidden-xs-up {
display: none !important;
}
@media (max-width: 575px) {
.hidden-xs-down {
display: none !important;
}
}
@media (min-width: 576px) {
.hidden-sm-up {
display: none !important;
}
}
@media (max-width: 767px) {
.hidden-sm-down {
display: none !important;
}
}
@media (min-width: 768px) {
.hidden-md-up {
display: none !important;
}
}
@media (max-width: 991px) {
.hidden-md-down {
display: none !important;
}
}
@media (min-width: 992px) {
.hidden-lg-up {
display: none !important;
}
}
@media (max-width: 1199px) {
.hidden-lg-down {
display: none !important;
}
}
@media (min-width: 1200px) {
.hidden-xl-up {
display: none !important;
}
}
.hidden-xl-down {
display: none !important;
}
.visible-print-block {
display: none !important;
}
@media print {
.visible-print-block {
display: block !important;
}
}
.visible-print-inline {
display: none !important;
}
@media print {
.visible-print-inline {
display: inline !important;
}
}
.visible-print-inline-block {
display: none !important;
}
@media print {
.visible-print-inline-block {
display: inline-block !important;
}
}
@media print {
.hidden-print {
display: none !important;
}
}
btn-primary {
color: #fff;
background-color: #000000;
border-color: #000000;
}
/* This is to stop CSS preprocessor, such as Sass, Less, or Stylus, from downloading the bootstrap map file. */
/*# sourceMappingURL= */ | Sikilabs/sikilabs | static/css/bootstrap.css | CSS | mit | 191,925 |
# [Closet Cleanup](http://alexa.amazon.com/#skills/amzn1.ask.skill.8f149fb7-2f2a-493e-b28a-0ef15e91f0ae)
 0
To use the Closet Cleanup skill, try saying...
* *Alexa open clean up*
* *Yes*
* *Start again*
This skill helps you to decide if you should keep, donate or throw away things from your closet. Makes it easier to get rid of old and non fitting cloth.
***
### Skill Details
* **Invocation Name:** clean up
* **Category:** null
* **ID:** amzn1.ask.skill.8f149fb7-2f2a-493e-b28a-0ef15e91f0ae
* **ASIN:** B01M6CVCB3
* **Author:** MMW
* **Release Date:** November 25, 2016 @ 03:39:29
* **In-App Purchasing:** No
| dale3h/alexa-skills-list | skills/B01M6CVCB3/README.md | Markdown | mit | 906 |
using System;
using System.Text;
using System.Web;
using System.Web.Http.Description;
namespace WebApiAuthSample.Areas.HelpPage
{
public static class ApiDescriptionExtensions
{
/// <summary>
/// Generates an URI-friendly ID for the <see cref="ApiDescription"/>. E.g. "Get-Values-id_name" instead of "GetValues/{id}?name={name}"
/// </summary>
/// <param name="description">The <see cref="ApiDescription"/>.</param>
/// <returns>The ID as a string.</returns>
public static string GetFriendlyId(this ApiDescription description)
{
string path = description.RelativePath;
string[] urlParts = path.Split('?');
string localPath = urlParts[0];
string queryKeyString = null;
if (urlParts.Length > 1)
{
string query = urlParts[1];
string[] queryKeys = HttpUtility.ParseQueryString(query).AllKeys;
queryKeyString = String.Join("_", queryKeys);
}
StringBuilder friendlyPath = new StringBuilder();
friendlyPath.AppendFormat("{0}-{1}",
description.HttpMethod.Method,
localPath.Replace("/", "-").Replace("{", String.Empty).Replace("}", String.Empty));
if (queryKeyString != null)
{
friendlyPath.AppendFormat("_{0}", queryKeyString.Replace('.', '-'));
}
return friendlyPath.ToString();
}
}
} | asezer/WebApiAuthSample | WebApiAuthSample/Areas/HelpPage/ApiDescriptionExtensions.cs | C# | mit | 1,506 |
.error {
margin: 10px 0px;
padding:12px;
color: #D8000C;
background-color: #FFBABA;
}
| pfarrell/checkout | public/css/default.css | CSS | mit | 94 |
source ~/.functions_colors_shell.zsh
# functions and load-onces stuff for the environment
echo "function config"
source ~/.functions_shell.sh
source ~/.functions_colors.sh
source ~/.functions_dev.sh
source ~/.functions_osx.sh
source ~/.functions_graphics.sh
# Vim IDE settings
source ~/.bash_vim_append
test -e "${HOME}/.dotfiles/mac/iterm2_shell_integration.sh" && source "${HOME}/.dotfiles/mac/iterm2_shell_integration.sh"
alias mkdir=/bin/mkdir
alias ll='ls -alGh'
export PATH="$HOME/.dotfiles/bin:$PATH"
| NewAlexandria/dotfiles | zsh/functions.zsh | Shell | mit | 514 |
/*
* Copyright (c) Tomohiro Iizuka. All rights reserved.
* Licensed under the MIT license.
*/
#ifndef SYSTEM_HASHEDRAWARRAY_H_
#define SYSTEM_HASHEDRAWARRAY_H_
namespace alinous {
template <typename T, typename H, typename C>
class HashedRawArray {
public:
void* operator new(size_t size) throw() {
return SysThread::getMalloc()->allocate(size);
}
void* operator new(size_t size, MemoryInterface* ctx) throw() {
return ctx->alloc->allocate(size);
}
void operator delete(void* p, size_t size) throw() {
SysThread::getMalloc()->freeMemory((char*)p, size);
}
int MAX_HASH = 128;
int MAX_HASH_MASK = 128 - 1;
RawArray<T, C> **arrays;
RawBitSet bitset;
const H hashBaseFunc;
int numElements;
HashedRawArray(int maxHash) throw() : MAX_HASH(maxHash), MAX_HASH_MASK(maxHash - 1),
bitset(MAX_HASH / 8), hashBaseFunc(), numElements(0)
{
initArrays();
}
HashedRawArray() throw() :
bitset(MAX_HASH / 8), hashBaseFunc(), numElements(0)
{
initArrays();
}
private:
void initArrays() throw() {
this->MAX_HASH_MASK = this->MAX_HASH - 1;
this->arrays = new RawArray<T, C>* [this->MAX_HASH];
int maxLoop = this->MAX_HASH;
RawArray<T, C>** ptr = this->arrays;
for(int i = 0; i != maxLoop; ++i){
ptr[i] = new RawArray<T, C>();
}
}
public:
virtual ~HashedRawArray() throw() {
int maxLoop = this->MAX_HASH;
for(int i = 0; i != maxLoop; ++i){
delete this->arrays[i];
}
delete [] this->arrays;
this->arrays = nullptr;
}
int size() const throw() {
return this->numElements;
}
T* addElement(T* ptr) throw() {
u_int64_t hashcode = getHash(ptr);
arrays[hashcode]->addElementWithSorted(ptr);
bitset.set(hashcode);
++numElements;
return ptr;
}
bool removeByObj(const T* obj) throw() {
int hashcode = getHash(obj);
bool result = arrays[hashcode]->removeByObj(obj);
if(result){
--numElements;
}
if(arrays[hashcode]->size() == 0){
bitset.clear(hashcode);
}
return result;
}
T* search(const T* value)throw(){
int hashcode = getHash(value);
return arrays[hashcode]->search(value);
}
void reset() throw() {
for(int i = 0; i != MAX_HASH; i++){
arrays[i]->reset();
}
bitset.clear();
numElements = 0;
}
class Iterator {
public:
int MAX_HASH;
int hashCode;
int index;
RawArray<T, C>** arrays;
const RawBitSet* bitset;
Iterator(RawArray<T, C>** ptr, RawBitSet* bitset, int MAX_HASH) throw() : MAX_HASH(MAX_HASH), hashCode(0), index(0), arrays(ptr), bitset(bitset) {}
bool hasNext() const throw() {
RawArray<T, C>* current = arrays[hashCode];
if(current->size() == index){
const int nextHash = hashCode + 1;
if(nextHash == MAX_HASH){
return false;
}
int next = bitset->nextSetBit(nextHash);
if(next < 0){
return false;
}
return true;
}
return true;
}
T* next() throw() {
const RawArray<T, C>* current = arrays[hashCode];
if(current->size() == index){
const int nextHash = hashCode + 1;
int next = bitset->nextSetBit(nextHash);
if(nextHash == MAX_HASH || next < 0){
return nullptr;
}
index = 0;
hashCode = next;
}
current = *(arrays + hashCode);
return current->get(index++);
}
};
Iterator iterator() throw() {
return Iterator(arrays, &bitset, this->MAX_HASH);
}
private:
u_int64_t getHash(const T* ptr) const throw() {
u_int64_t num = hashBaseFunc(ptr);
//int code = FNVHash::fnv_1_hash_32((uint8_t *)&num, sizeof(u_int64_t)) % MAX_HASH;
//int code = (num >> 1) % MAX_HASH;
u_int64_t code = ((num * 2654404609L) >> 32) & MAX_HASH_MASK;
//wprintf(L"%llx --> %d\n", num, code);
return code;
}
};
} /* namespace alinous */
#endif /* SYSTEM_HASHEDRAWARRAY_H_ */
| alinous-core/alinous-elastic-db | lib/src_lib/system/HashedRawArray.h | C | mit | 3,731 |
<!DOCTYPE html>
<html lang="ko-kr">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="generator" content="Hugo 0.15" />
<title>#Ludens</title>
<meta property="og:site_name" content="#Ludens" />
<meta property="og:locale" content="ko-kr" />
<meta property="og:url" content="http://ludens.kr/tags/1461/" />
<meta property="fb:pages" content="1707155736233413"/>
<meta property="fb:admins" content="100001662925065"/>
<meta property="fb:app_id" content="326482430777833"/>
<meta property="fb:article_style" content="default" />
<meta name="twitter:site" content="@ludensk" />
<meta name="twitter:creator" content="@ludensk" />
<meta name="google-site-verification" content="RPY_1Z0am0hoduGzENYtuwF3BBoE0x5l3UxhUplLWPU" />
<meta name="naver-site-verification" content="f84c50bc744edf7a543994325914265117555d53" />
<meta name="p:domain_verify" content="381496f2247c95edc614061bacd92e08" />
<meta name="msvalidate.01" content="9137E6F3A8C1C4AE6DC4809DEDB06FD9" />
<meta property="og:title" content="1461" />
<meta property="og:type" content="website" />
<meta name="description" content="페이스북부터 심리학 그리고 워드프레스까지 온갖 잡지식을 가끔씩 끄적이고 있습니다." />
<meta name="twitter:card" content="summary" />
<link rel="author" href="humans.txt" />
<link rel="me" href="https://twitter.com/ludensk" />
<link rel="me" href="https://google.com/+ludensk" />
<link rel="me" href="https://github.com/ludens" />
<link rel="pingback" href="https://webmention.io/ludens.kr/xmlrpc" />
<link rel="webmention" href="https://webmention.io/ludens.kr/webmention" />
<link href="https://plus.google.com/+ludensk" rel="publisher">
<link rel="canonical" href="http://ludens.kr/tags/1461/" />
<link rel="alternate" type="application/rss+xml" title="#Ludens" href="http://ludens.kr/rss/" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="#Ludens">
<meta name="mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#111111">
<meta name="msapplication-navbutton-color" content="#111111">
<meta name="msapplication-TileColor" content="#111111">
<meta name="application-name" content="#Ludens">
<meta name="msapplication-tooltip" content="페이스북부터 심리학 그리고 워드프레스까지 온갖 잡지식을 가끔씩 끄적이고 있습니다.">
<meta name="msapplication-starturl" content="/">
<meta http-equiv="cleartype" content="on">
<meta name="msapplication-tap-highlight" content="no">
<link rel="apple-touch-icon" sizes="57x57" href="http://ludens.kr/favicon/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="http://ludens.kr/favicon/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="http://ludens.kr/favicon/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="http://ludens.kr/favicon/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="http://ludens.kr/favicon/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="http://ludens.kr/favicon/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="http://ludens.kr/favicon/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="http://ludens.kr/favicon/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="http://ludens.kr/favicon/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="http://ludens.kr/favicon/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="http://ludens.kr/favicon/favicon-194x194.png" sizes="194x194">
<link rel="icon" type="image/png" href="http://ludens.kr/favicon/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="http://ludens.kr/favicon/android-chrome-192x192.png" sizes="192x192">
<link rel="icon" type="image/png" href="http://ludens.kr/favicon/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="http://ludens.kr/favicon/manifest.json">
<link rel="mask-icon" href="http://ludens.kr/favicon/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileImage" content="/mstile-144x144.png">
<link rel="stylesheet" href="http://ludens.kr/css/pure/pure-min.css" />
<link rel="stylesheet" href="http://ludens.kr/css/pure/grids-responsive-min.css" />
<link rel='stylesheet' href='http://ludens.kr/font/fonts.css'>
<link rel="stylesheet" href="http://ludens.kr/font/font-awesome.min.css">
<link rel="stylesheet" href="http://ludens.kr/css/style.css"/>
<script src="http://ludens.kr/js/jquery-2.2.1.min.js"></script>
</head>
<body>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '326482430777833',
xfbml : true,
version : 'v2.6'
});
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/ko_KR/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<header class="pure-g">
<div class="pure-u-1 pure-u-sm-1-3 center">
<h1><a href="http://ludens.kr">#LUDENS</a></h1>
</div>
<nav class="pure-u-1 pure-u-sm-2-3 center">
<a href="http://ludens.kr/" class="home" title="Home">HOME</a>
<a href="http://ludens.kr/categories/" class="category" title="Category">CATEGORY</a>
<a href="http://ludens.kr/post/" class="archive" title="Archive">ARCHIVE</a>
<a href="http://ludens.kr/tags/" class="tag" title="Tag">TAG</a>
<a href="http://ludens.kr/guestbook/" class="guestbook" title="Guestbook">GUESTBOOK</a>
</nav>
</header>
<main class="list mainWrap">
<h2 class="ellipsis"><small>Posts about </small>1461</h2>
<h3 id="2011">2011</h3>
<div class="pure-g">
<div class="pure-u-1 pure-u-sm-1-2">
<a href="http://ludens.kr/post/dr-martens-1461/" class="cover" style="background-image: url('/images/old/cfile25.uf.1977E63F4EF2803B06445B.jpg');"></a>
<div class="category ubuntu300 grey">
<a class="grey" href="http://ludens.kr/categories/fashion" title="fashion">fashion</a>
at <time datetime="22 Dec 2011 127:00">2011/12/22</time>
</div>
<h3 class="ellipsis margintop0"><a href="http://ludens.kr/post/dr-martens-1461/" title="닥터마틴 1461 라인에 대하여">닥터마틴 1461 라인에 대하여</a></h3>
</div>
</div>
</main>
<footer>
<div class="footerWrap pure-g">
<div class="pure-u-1 pure-u-md-2-5 copyright center">
ⓒ 2016 Ludens | Published with <a class="black dotline" href="http://gohugo.io" target="_blank" rel="nofollow">Hugo</a>
</div>
<nav class="pure-u-1 pure-u-md-3-5 center">
<a href="https://twitter.com/ludensk" class="twitter" title="Twitter"><i class='fa fa-twitter-square'></i></a>
<a href="https://fb.com/ludensk" class="facebook" title="Facebook"><i class='fa fa-facebook-square'></i></a>
<a href="https://instagr.am/ludensk" class="instagram" title="Instagram"><i class='fa fa-instagram'></i></a>
<a href="https://pinterest.com/ludensk" class="pinterest" title="Pinterest"><i class='fa fa-pinterest-square'></i></a>
<a href="https://www.youtube.com/user/ludensk" class="youtube" title="YouTube"><i class='fa fa-youtube-square'></i></a>
<a href="https://ludensk.tumblr.com" class="tumblr" title="Tumblr"><i class='fa fa-tumblr-square'></i></a>
<a href="https://linkedin.com/in/ludensk" class="linkedin" title="LinkedIn"><i class='fa fa-linkedin-square'></i></a>
<a href="https://github.com/ludens" class="github" title="GitHub"><i class='fa fa-github-square'></i></a>
<a href="http://ludens.kr/rss/" class="rss" title="RSS"><i class='fa fa-rss-square'></i></a>
</nav>
</div>
</footer>
<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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-29269230-1', 'auto');
ga('send', 'pageview');
</script>
<script type="text/javascript" src="//wcs.naver.net/wcslog.js"></script>
<script type="text/javascript">
if(!wcs_add) var wcs_add = {};
wcs_add["wa"] = "123cefa73667c5c";
wcs_do();
</script>
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','//connect.facebook.net/en_US/fbevents.js');
fbq('init','1143503702345044');
fbq('track',"PageView");
</script>
<noscript><img height="1" width="1" style="display:none" src="//www.facebook.com/tr?id=1143503702345044&ev=PageView&noscript=1" /></noscript>
<script src="//twemoji.maxcdn.com/twemoji.min.js"></script>
<script>var emoji=document.getElementsByClassName("emoji");twemoji.parse(emoji[0],{size:16});</script>
<script src="http://ludens.kr/js/jquery.keep-ratio.min.js"></script>
<script type="text/javascript">
$(function() {
$('.kofic-poster').keepRatio({ ratio: 27/40, calculate: 'height' });
$('.articleWrap .cover, .post_latest .cover,.articleWrap header figure').keepRatio({ ratio: 12/5, calculate: 'height' });
if ($(window).width() >= 568) {
$('.futher .cover,.error .cover,.post_two .cover,.list .cover').keepRatio({ ratio: 4/3, calculate: 'height' });
$('.categories .cover').keepRatio({ ratio: 1/1, calculate: 'height' });
}
else {
$('.futher .cover,.error .cover,.post_two .cover,.list .cover,.categories .cover').keepRatio({ ratio: 12/5, calculate: 'height' });
}
});
</script>
</body>
</html> | ludens/ludens.kr | tags/1461/index.html | HTML | mit | 10,522 |
$(document).ready(function(){hopscotch.startTour({id:"my-intro",steps:[{target:"logo-tour",title:"Logo Here",content:"You can find here status of user who's currently online.",placement:"bottom",yOffset:10},{target:"display-title-tour",title:"Display Text",content:"Click on the button and make sidebar navigation small.",placement:"top",zindex:999},{target:"page-title-tour",title:"User settings",content:"You can edit you profile info here.",placement:"bottom",zindex:999},{target:"thankyou-tour",title:"Thank you !",content:"Here you can change theme skins and other features.",placement:"top",zindex:999}],showPrevButton:!0})}); | kma14/Zhua | Zhua.Website/AdminPortal_Assets/js/pages/tour.init.js | JavaScript | mit | 632 |
package main
import (
"context"
"fmt"
"log"
"net/http"
"strconv"
"strings"
"time"
"github.com/PuerkitoBio/goquery"
)
const (
userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36"
timeLayout = "02/01/2006"
storagePath = ".local/share"
baseURL = "https://www.tefas.gov.tr/FonAnaliz.aspx?FonKod=%v"
)
var (
ErrDisabled = fmt.Errorf("disabled on weekends")
)
func GetFunds(ctx context.Context, codes ...string) ([]Fund, error) {
c := &http.Client{Timeout: time.Minute}
today := time.Now()
switch today.Weekday() {
case 6, 0: // saturday and sunday
return nil, ErrDisabled
}
var funds []Fund
for _, code := range codes {
code = strings.ToUpper(code)
u := fmt.Sprintf(baseURL, code)
req, _ := http.NewRequest("GET", u, nil)
req = req.WithContext(ctx)
req.Header.Set("User-Agent", userAgent)
req.Header.Set("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8")
resp, err := c.Do(req)
if err != nil {
return nil, err
}
defer resp.Body.Close()
if resp.StatusCode != 200 {
log.Printf("unexpected status code: %v", resp.StatusCode)
continue
}
doc, err := goquery.NewDocumentFromReader(resp.Body)
if err != nil {
return nil, err
}
fundName := strings.TrimSpace(doc.Find(".main-indicators h2").Text())
fund := Fund{
Code: code,
Name: fundName,
}
fund.Price = atof(doc.Find(".top-list > li:nth-child(1) span").Text())
fund.Daily = atof(doc.Find(".top-list > li:nth-child(2) span").Text())
doc.Find(".price-indicators li span").Each(func(i int, sel *goquery.Selection) {
changePercent := atof(sel.Text())
switch i {
case 0:
fund.Monthly = changePercent
case 1:
fund.Quarterly = changePercent
case 2:
fund.Biannual = changePercent
case 3:
fund.Annual = changePercent
}
})
funds = append(funds, fund)
}
return funds, nil
}
type Fund struct {
Type FundType
Code string
Name string
Price float64
Daily float64
Monthly float64
Quarterly float64
Biannual float64
Annual float64
}
type FundType uint8
const (
CommodityFunds FundType = 3
FixedIncomeFunds FundType = 6
ForeignEquityFunds FundType = 111
)
func atof(s string) float64 {
s = strings.TrimPrefix(s, "%")
s = strings.ReplaceAll(s, ",", ".")
f, _ := strconv.ParseFloat(s, 64)
return f
}
| igungor/cmd | notion-yt/fund.go | GO | mit | 2,429 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eo" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About BitSeeds</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+39"/>
<source><b>BitSeeds</b> version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Copyright © 2009-2014 The Bitcoin developers
Copyright © 2012-2014 The NovaCoin developers
Copyright © 2014 The BitSeeds developers</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young ([email protected]) and UPnP software written by Thomas Bernard.</source>
<translation>
Tio ĉi estas eksperimenta programo.
Eldonita laŭ la permesilo MIT/X11. Vidu la kunan dosieron COPYING aŭ http://www.opensource.org/licenses/mit-license.php.
Tiu ĉi produkto enhavas erojn kreitajn de la "OpenSSL Project" por uzo en la "OpenSSL Toolkit" (http://www.openssl.org/) kaj ĉifrajn erojn kreitajn de Eric Young ([email protected]) kaj UPnP-erojn kreitajn de Thomas Bernard.</translation>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+22"/>
<source>Double-click to edit address or label</source>
<translation>Duoble-klaku por redakti adreson aŭ etikedon</translation>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation>Krei novan adreson</translation>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Kopii elektitan adreson al la tondejo</translation>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-46"/>
<source>These are your BitSeeds addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+60"/>
<source>&Copy Address</source>
<translation>&Kopii Adreson</translation>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a BitSeeds address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation>Forigi la elektitan adreson el la listo</translation>
</message>
<message>
<location line="-14"/>
<source>Verify a message to ensure it was signed with a specified BitSeeds address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>&Forigi</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+65"/>
<source>Copy &Label</source>
<translation>Kopii &Etikedon</translation>
</message>
<message>
<location line="+2"/>
<source>&Edit</source>
<translation>&Redakti</translation>
</message>
<message>
<location line="+250"/>
<source>Export Address Book Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Perkome disigita dosiero (*.csv)</translation>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+144"/>
<source>Label</source>
<translation>Etikedo</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Adreso</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>(neniu etikedo)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation>Dialogo pri pasfrazo</translation>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation>Enigu pasfrazon</translation>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation>Nova pasfrazo</translation>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation>Ripetu la novan pasfrazon</translation>
</message>
<message>
<location line="+33"/>
<source>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>For staking only</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+35"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation>Enigu novan pasfrazon por la monujo.<br/>Bonvolu uzi pasfrazon kun <b>almenaŭ 10 hazardaj signoj</b>, aŭ <b>almenaŭ ok vortoj</b>.</translation>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation>Ĉifri la monujon</translation>
</message>
<message>
<location line="+7"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>Ĉi tiu operacio bezonas vian monujan pasfrazon, por malŝlosi la monujon.</translation>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation>Malŝlosi la monujon</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>Ĉi tiu operacio bezonas vian monujan pasfrazon, por malĉifri la monujon.</translation>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation>Malĉifri la monujon</translation>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation>Ŝanĝi la pasfrazon</translation>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>Tajpu la malnovan kaj novan monujajn pasfrazojn.</translation>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation>Konfirmo de ĉifrado de la monujo</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR COINS</b>!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation>Ĉu vi certas, ke vi volas ĉifri la monujon?</translation>
</message>
<message>
<location line="+15"/>
<source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source>
<translation>GRAVE: antaŭaj sekur-kopioj de via monujo-dosiero estas forigindaj kiam vi havas nove kreitan ĉifritan monujo-dosieron. Pro sekureco, antaŭaj kopioj de la neĉifrita dosiero ne plu funkcios tuj kiam vi ekuzos la novan ĉifritan dosieron.</translation>
</message>
<message>
<location line="+103"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation>Atentu: la majuskla baskulo estas ŝaltita!</translation>
</message>
<message>
<location line="-133"/>
<location line="+60"/>
<source>Wallet encrypted</source>
<translation>La monujo estas ĉifrita</translation>
</message>
<message>
<location line="-58"/>
<source>BitSeeds will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your coins from being stolen by malware infecting your computer.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+44"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation>Ĉifrado de la monujo fiaskis</translation>
</message>
<message>
<location line="-56"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>Ĉifrado de monujo fiaskis pro interna eraro. Via monujo ne estas ĉifrita.</translation>
</message>
<message>
<location line="+7"/>
<location line="+50"/>
<source>The supplied passphrases do not match.</source>
<translation>La pasfrazoj entajpitaj ne samas.</translation>
</message>
<message>
<location line="-38"/>
<source>Wallet unlock failed</source>
<translation>Malŝloso de la monujo fiaskis</translation>
</message>
<message>
<location line="+1"/>
<location line="+12"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation>La pasfrazo enigita por ĉifrado de monujo ne ĝustas.</translation>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation>Malĉifrado de la monujo fiaskis</translation>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation>Vi sukcese ŝanĝis la pasfrazon de la monujo.</translation>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+280"/>
<source>Sign &message...</source>
<translation>Subskribi &mesaĝon...</translation>
</message>
<message>
<location line="+242"/>
<source>Synchronizing with network...</source>
<translation>Sinkronigante kun reto...</translation>
</message>
<message>
<location line="-308"/>
<source>&Overview</source>
<translation>&Superrigardo</translation>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation>Vidigi ĝeneralan superrigardon de la monujo</translation>
</message>
<message>
<location line="+17"/>
<source>&Transactions</source>
<translation>&Transakcioj</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation>Esplori historion de transakcioj</translation>
</message>
<message>
<location line="+5"/>
<source>&Address Book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Edit the list of stored addresses and labels</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-13"/>
<source>&Receive coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show the list of addresses for receiving payments</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-7"/>
<source>&Send coins</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>E&xit</source>
<translation>&Eliri</translation>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation>Eliri la aplikaĵon</translation>
</message>
<message>
<location line="+4"/>
<source>Show information about BitSeeds</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation>Pri &Qt</translation>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation>Vidigi informojn pri Qt</translation>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation>&Agordoj...</translation>
</message>
<message>
<location line="+4"/>
<source>&Encrypt Wallet...</source>
<translation>Ĉifri &Monujon...</translation>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation>&Krei sekurkopion de la monujo...</translation>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation>Ŝanĝi &Pasfrazon...</translation>
</message>
<message numerus="yes">
<location line="+250"/>
<source>~%n block(s) remaining</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-247"/>
<source>&Export...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-62"/>
<source>Send coins to a BitSeeds address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+45"/>
<source>Modify configuration options for BitSeeds</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Export the data in the current tab to a file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-14"/>
<source>Encrypt or decrypt wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup wallet to another location</source>
<translation>Krei alilokan sekurkopion de monujo</translation>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation>Ŝanĝi la pasfrazon por ĉifri la monujon</translation>
</message>
<message>
<location line="+10"/>
<source>&Debug window</source>
<translation>Sen&cimiga fenestro</translation>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation>Malfermi konzolon de sencimigo kaj diagnozo</translation>
</message>
<message>
<location line="-5"/>
<source>&Verify message...</source>
<translation>&Kontroli mesaĝon...</translation>
</message>
<message>
<location line="-200"/>
<source>BitSeeds</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet</source>
<translation>Monujo</translation>
</message>
<message>
<location line="+178"/>
<source>&About BitSeeds</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation>&Montri / Kaŝi</translation>
</message>
<message>
<location line="+9"/>
<source>Unlock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>&Lock Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Lock wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+34"/>
<source>&File</source>
<translation>&Dosiero</translation>
</message>
<message>
<location line="+8"/>
<source>&Settings</source>
<translation>&Agordoj</translation>
</message>
<message>
<location line="+8"/>
<source>&Help</source>
<translation>&Helpo</translation>
</message>
<message>
<location line="+9"/>
<source>Tabs toolbar</source>
<translation>Langeto-breto</translation>
</message>
<message>
<location line="+8"/>
<source>Actions toolbar</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<location line="+9"/>
<source>[testnet]</source>
<translation>[testnet]</translation>
</message>
<message>
<location line="+0"/>
<location line="+60"/>
<source>BitSeeds client</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+70"/>
<source>%n active connection(s) to BitSeeds network</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+40"/>
<source>Downloaded %1 blocks of transaction history.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+413"/>
<source>Staking.<br>Your weight is %1<br>Network weight is %2<br>Expected time to earn reward is %3</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Not staking because wallet is locked</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is offline</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is syncing</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Not staking because you don't have mature coins</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="-403"/>
<source>%n second(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="-284"/>
<source>&Unlock Wallet...</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+288"/>
<source>%n minute(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s) ago</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Up to date</source>
<translation>Ĝisdata</translation>
</message>
<message>
<location line="+7"/>
<source>Catching up...</source>
<translation>Ĝisdatigante...</translation>
</message>
<message>
<location line="+10"/>
<source>Last received block was generated %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm transaction fee</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+27"/>
<source>Sent transaction</source>
<translation>Sendita transakcio</translation>
</message>
<message>
<location line="+1"/>
<source>Incoming transaction</source>
<translation>Envenanta transakcio</translation>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation>Dato: %1
Sumo: %2
Tipo: %3
Adreso: %4
</translation>
</message>
<message>
<location line="+100"/>
<location line="+15"/>
<source>URI handling</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-15"/>
<location line="+15"/>
<source>URI can not be parsed! This can be caused by an invalid BitSeeds address or malformed URI parameters.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>Monujo estas <b>ĉifrita</b> kaj aktuale <b>malŝlosita</b></translation>
</message>
<message>
<location line="+10"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>Monujo estas <b>ĉifrita</b> kaj aktuale <b>ŝlosita</b></translation>
</message>
<message>
<location line="+25"/>
<source>Backup Wallet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location line="+76"/>
<source>%n second(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n minute(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s)</source>
<translation><numerusform>%n horo</numerusform><numerusform>%n horoj</numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation><numerusform>%n tago</numerusform><numerusform>%n tagoj</numerusform></translation>
</message>
<message>
<location line="+18"/>
<source>Not staking</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../bitcoin.cpp" line="+109"/>
<source>A fatal error occurred. BitSeeds can no longer continue safely and will quit.</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+90"/>
<source>Network Alert</source>
<translation>Reta Averto</translation>
</message>
</context>
<context>
<name>CoinControlDialog</name>
<message>
<location filename="../forms/coincontroldialog.ui" line="+14"/>
<source>Coin Control</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Quantity:</source>
<translation>Kvanto:</translation>
</message>
<message>
<location line="+32"/>
<source>Bytes:</source>
<translation>Bajtoj:</translation>
</message>
<message>
<location line="+48"/>
<source>Amount:</source>
<translation>Sumo:</translation>
</message>
<message>
<location line="+32"/>
<source>Priority:</source>
<translation>Prioritato:</translation>
</message>
<message>
<location line="+48"/>
<source>Fee:</source>
<translation>Krompago:</translation>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation>Malalta Eligo:</translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="+551"/>
<source>no</source>
<translation>ne</translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="+51"/>
<source>After Fee:</source>
<translation>Post krompago:</translation>
</message>
<message>
<location line="+35"/>
<source>Change:</source>
<translation>Restmono:</translation>
</message>
<message>
<location line="+69"/>
<source>(un)select all</source>
<translation>(mal)elekti ĉion</translation>
</message>
<message>
<location line="+13"/>
<source>Tree mode</source>
<translation>Arboreĝimo</translation>
</message>
<message>
<location line="+16"/>
<source>List mode</source>
<translation>Listreĝimo</translation>
</message>
<message>
<location line="+45"/>
<source>Amount</source>
<translation>Sumo</translation>
</message>
<message>
<location line="+5"/>
<source>Label</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Address</source>
<translation>Adreso</translation>
</message>
<message>
<location line="+5"/>
<source>Date</source>
<translation>Dato</translation>
</message>
<message>
<location line="+5"/>
<source>Confirmations</source>
<translation>Konfirmoj</translation>
</message>
<message>
<location line="+3"/>
<source>Confirmed</source>
<translation>Konfirmita</translation>
</message>
<message>
<location line="+5"/>
<source>Priority</source>
<translation>Prioritato</translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="-515"/>
<source>Copy address</source>
<translation>Kopii adreson</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Kopii etikedon</translation>
</message>
<message>
<location line="+1"/>
<location line="+26"/>
<source>Copy amount</source>
<translation>Kopii sumon</translation>
</message>
<message>
<location line="-25"/>
<source>Copy transaction ID</source>
<translation>Kopii transakcian ID-on</translation>
</message>
<message>
<location line="+24"/>
<source>Copy quantity</source>
<translation>Kopii kvanton</translation>
</message>
<message>
<location line="+2"/>
<source>Copy fee</source>
<translation>Kopii krompagon</translation>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation>Kopii post krompago</translation>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation>Kopii bajtojn</translation>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation>Kopii prioritaton</translation>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation>Kopii malaltan eligon</translation>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation>Kopii restmonon</translation>
</message>
<message>
<location line="+317"/>
<source>highest</source>
<translation>plej alta</translation>
</message>
<message>
<location line="+1"/>
<source>high</source>
<translation>alta</translation>
</message>
<message>
<location line="+1"/>
<source>medium-high</source>
<translation>mezalta</translation>
</message>
<message>
<location line="+1"/>
<source>medium</source>
<translation>meza</translation>
</message>
<message>
<location line="+4"/>
<source>low-medium</source>
<translation>mezmalalta</translation>
</message>
<message>
<location line="+1"/>
<source>low</source>
<translation>malalta</translation>
</message>
<message>
<location line="+1"/>
<source>lowest</source>
<translation>plej malalta</translation>
</message>
<message>
<location line="+155"/>
<source>DUST</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>yes</source>
<translation>jes</translation>
</message>
<message>
<location line="+10"/>
<source>This label turns red, if the transaction size is bigger than 10000 bytes.
This means a fee of at least %1 per kb is required.
Can vary +/- 1 Byte per input.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Transactions with higher priority get more likely into a block.
This label turns red, if the priority is smaller than "medium".
This means a fee of at least %1 per kb is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if any recipient receives an amount smaller than %1.
This means a fee of at least %2 is required.
Amounts below 0.546 times the minimum relay fee are shown as DUST.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>This label turns red, if the change is smaller than %1.
This means a fee of at least %2 is required.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+37"/>
<location line="+66"/>
<source>(no label)</source>
<translation>(neniu etikedo)</translation>
</message>
<message>
<location line="-9"/>
<source>change from %1 (%2)</source>
<translation>restmono de %1 (%2)</translation>
</message>
<message>
<location line="+1"/>
<source>(change)</source>
<translation>(restmono)</translation>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation>Redakti Adreson</translation>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation>&Etikedo</translation>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address book entry</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Address</source>
<translation>&Adreso</translation>
</message>
<message>
<location line="+10"/>
<source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+20"/>
<source>New receiving address</source>
<translation>Nova adreso por ricevi</translation>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation>Nova adreso por sendi</translation>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation>Redakti adreson por ricevi</translation>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation>Redakti adreson por sendi</translation>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation>La adreso enigita "%1" jam ekzistas en la adresaro.</translation>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid BitSeeds address.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation>Ne eblis malŝlosi monujon.</translation>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation>Fiaskis kreo de nova ŝlosilo.</translation>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+420"/>
<location line="+12"/>
<source>BitSeeds-Qt</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-12"/>
<source>version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation>Agordaĵoj</translation>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation>Ĉ&efa</translation>
</message>
<message>
<location line="+6"/>
<source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB. Fee 0.01 recommended.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation>Krompago</translation>
</message>
<message>
<location line="+31"/>
<source>Reserved amount does not participate in staking and is therefore spendable at any time.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Reserve</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Automatically start BitSeeds after logging in to the system.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Start BitSeeds on system login</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Detach block and address databases at shutdown. This means they can be moved to another data directory, but it slows down shutdown. The wallet is always detached.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Detach databases at shutdown</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+21"/>
<source>&Network</source>
<translation>&Reto</translation>
</message>
<message>
<location line="+6"/>
<source>Automatically open the BitSeeds client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation>Mapigi pordon per &UPnP</translation>
</message>
<message>
<location line="+7"/>
<source>Connect to the BitSeeds network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+9"/>
<source>Proxy &IP:</source>
<translation>Prokurila &IP:</translation>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>&Port:</source>
<translation>&Pordo:</translation>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation>la pordo de la prokurilo (ekz. 9050)</translation>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation>Versio de SOCKS:</translation>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation>la versio de SOCKS ĉe la prokurilo (ekz. 5)</translation>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation>&Fenestro</translation>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation>Montri nur sistempletan piktogramon post minimumigo de la fenestro.</translation>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation>&Minimumigi al la sistempleto anstataŭ al la taskopleto</translation>
</message>
<message>
<location line="+7"/>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation>Minimumigi la aplikaĵon anstataŭ eliri kaj ĉesi kiam la fenestro estas fermita. Se tiu ĉi estas agordita, la aplikaĵo ĉesas nur kiam oni elektas "Eliri" el la menuo.</translation>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation>M&inimumigi je fermo</translation>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation>&Aspekto</translation>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation>&Lingvo de la fasado:</translation>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting BitSeeds.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation>&Unuo por vidigi sumojn:</translation>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation>Elekti la defaŭltan manieron por montri bitmonajn sumojn en la interfaco, kaj kiam vi sendos bitmonon.</translation>
</message>
<message>
<location line="+9"/>
<source>Whether to show BitSeeds addresses in the transaction list or not.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation>&Montri adresojn en la listo de transakcioj</translation>
</message>
<message>
<location line="+7"/>
<source>Whether to show coin control features or not.</source>
<translation>Ĉu montri detalan adres-regilon, aŭ ne.</translation>
</message>
<message>
<location line="+3"/>
<source>Display coin &control features (experts only!)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&OK</source>
<translation>&Bone</translation>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation>&Nuligi</translation>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+55"/>
<source>default</source>
<translation>defaŭlta</translation>
</message>
<message>
<location line="+149"/>
<location line="+9"/>
<source>Warning</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting BitSeeds.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation>La prokurila adreso estas malvalida.</translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation>Formularo</translation>
</message>
<message>
<location line="+33"/>
<location line="+231"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the BitSeeds network after a connection is established, but this process has not completed yet.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-160"/>
<source>Stake:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-107"/>
<source>Wallet</source>
<translation>Monujo</translation>
</message>
<message>
<location line="+49"/>
<source>Spendable:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Your current spendable balance</source>
<translation>via aktuala elspezebla saldo</translation>
</message>
<message>
<location line="+71"/>
<source>Immature:</source>
<translation>Nematura:</translation>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation>Minita saldo, kiu ankoraŭ ne maturiĝis</translation>
</message>
<message>
<location line="+20"/>
<source>Total:</source>
<translation>Totalo:</translation>
</message>
<message>
<location line="+16"/>
<source>Your current total balance</source>
<translation>via aktuala totala saldo</translation>
</message>
<message>
<location line="+46"/>
<source><b>Recent transactions</b></source>
<translation><b>Lastaj transakcioj</b></translation>
</message>
<message>
<location line="-108"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-29"/>
<source>Total of coins that was staked, and do not yet count toward the current balance</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../overviewpage.cpp" line="+113"/>
<location line="+1"/>
<source>out of sync</source>
<translation>nesinkronigita</translation>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+62"/>
<source>Error encoding URI into QR Code.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation>Nomo de kliento</translation>
</message>
<message>
<location line="+10"/>
<location line="+23"/>
<location line="+26"/>
<location line="+23"/>
<location line="+23"/>
<location line="+36"/>
<location line="+53"/>
<location line="+23"/>
<location line="+23"/>
<location filename="../rpcconsole.cpp" line="+348"/>
<source>N/A</source>
<translation>neaplikebla</translation>
</message>
<message>
<location line="-217"/>
<source>Client version</source>
<translation>Versio de kliento</translation>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation>&Informoj</translation>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation>uzas OpenSSL-version</translation>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation>Horo de lanĉo</translation>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation>Reto</translation>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation>Nombro de konektoj</translation>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation>Blokĉeno</translation>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation>Aktuala nombro de blokoj</translation>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation>Supozita totalo da blokoj</translation>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation>Horo de la lasta bloko</translation>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation>&Malfermi</translation>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Show the BitSeeds-Qt help message to get a list with possible BitSeeds command-line options.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation>&Konzolo</translation>
</message>
<message>
<location line="-260"/>
<source>Build date</source>
<translation>Dato de kompilado</translation>
</message>
<message>
<location line="-104"/>
<source>BitSeeds - Debug window</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>BitSeeds Core</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation>Sencimiga protokoldosiero</translation>
</message>
<message>
<location line="+7"/>
<source>Open the BitSeeds debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+102"/>
<source>Clear console</source>
<translation>Malplenigi konzolon</translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-33"/>
<source>Welcome to the BitSeeds RPC console.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation>Uzu la sagojn supran kaj malsupran por esplori la historion, kaj <b>stir-L</b> por malplenigi la ekranon.</translation>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation>Tajpu <b>help</b> por superrigardo de la disponeblaj komandoj.</translation>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="+14"/>
<location filename="../sendcoinsdialog.cpp" line="+182"/>
<location line="+5"/>
<location line="+5"/>
<location line="+5"/>
<location line="+6"/>
<location line="+5"/>
<location line="+5"/>
<source>Send Coins</source>
<translation>Sendi Monon</translation>
</message>
<message>
<location line="+76"/>
<source>Coin Control Features</source>
<translation>Monregaj Opcioj</translation>
</message>
<message>
<location line="+20"/>
<source>Inputs...</source>
<translation>Enigoj...</translation>
</message>
<message>
<location line="+7"/>
<source>automatically selected</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+19"/>
<source>Insufficient funds!</source>
<translation>Nesufiĉa mono!</translation>
</message>
<message>
<location line="+77"/>
<source>Quantity:</source>
<translation>Kvanto:</translation>
</message>
<message>
<location line="+22"/>
<location line="+35"/>
<source>0</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-19"/>
<source>Bytes:</source>
<translation>Bajtoj:</translation>
</message>
<message>
<location line="+51"/>
<source>Amount:</source>
<translation>Sumo:</translation>
</message>
<message>
<location line="+22"/>
<location line="+86"/>
<location line="+86"/>
<location line="+32"/>
<source>0.00 BITS</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-191"/>
<source>Priority:</source>
<translation>Prioritato:</translation>
</message>
<message>
<location line="+19"/>
<source>medium</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>Fee:</source>
<translation>Krompago:</translation>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation>Malalta Eligo:</translation>
</message>
<message>
<location line="+19"/>
<source>no</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+32"/>
<source>After Fee:</source>
<translation>Post krompago:</translation>
</message>
<message>
<location line="+35"/>
<source>Change</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+50"/>
<source>custom change address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+106"/>
<source>Send to multiple recipients at once</source>
<translation>Sendi samtempe al pluraj ricevantoj</translation>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation>Aldoni &Ricevonton</translation>
</message>
<message>
<location line="+20"/>
<source>Remove all transaction fields</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation>&Forigi ĉion</translation>
</message>
<message>
<location line="+28"/>
<source>Balance:</source>
<translation>Saldo:</translation>
</message>
<message>
<location line="+16"/>
<source>123.456 BITS</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+31"/>
<source>Confirm the send action</source>
<translation>Konfirmi la sendon</translation>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation>Ŝendi</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-173"/>
<source>Enter a BitSeeds address (e.g. A8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>Copy quantity</source>
<translation>Kopii kvanton</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Kopii sumon</translation>
</message>
<message>
<location line="+1"/>
<source>Copy fee</source>
<translation>Kopii krompagon</translation>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation>Kopii post krompago</translation>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation>Kopii bajtojn</translation>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation>Kopii prioritaton</translation>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation>Kopii malaltan eligon</translation>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation>Kopii restmonon</translation>
</message>
<message>
<location line="+86"/>
<source><b>%1</b> to %2 (%3)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation>Konfirmi sendon de bitmono</translation>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source> and </source>
<translation type="unfinished"/>
</message>
<message>
<location line="+29"/>
<source>The recipient address is not valid, please recheck.</source>
<translation>La adreso de la ricevonto ne validas. Bonvolu kontroli.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation>La pagenda sumo devas esti pli ol 0.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation>La sumo estas pli granda ol via saldo.</translation>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation>La sumo kun la %1 krompago estas pli granda ol via saldo.</translation>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation>Iu adreso estas ripetita. Vi povas sendi al ĉiu adreso po unufoje en iu send-operacio.</translation>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+251"/>
<source>WARNING: Invalid BitSeeds address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+13"/>
<source>(no label)</source>
<translation>(neniu etikedo)</translation>
</message>
<message>
<location line="+4"/>
<source>WARNING: unknown change address</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>A&mount:</source>
<translation>&Sumo:</translation>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation>&Ricevonto:</translation>
</message>
<message>
<location line="+24"/>
<location filename="../sendcoinsentry.cpp" line="+25"/>
<source>Enter a label for this address to add it to your address book</source>
<translation>Tajpu etikedon por tiu ĉi adreso kaj aldonu ĝin al via adresaro</translation>
</message>
<message>
<location line="+9"/>
<source>&Label:</source>
<translation>&Etikedo:</translation>
</message>
<message>
<location line="+18"/>
<source>The address to send the payment to (e.g. A8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Choose address from address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="+7"/>
<source>Paste address from clipboard</source>
<translation>Alglui adreson el tondejo</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+7"/>
<source>Remove this recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a BitSeeds address (e.g. A8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation>Subskriboj - Subskribi / Kontroli mesaĝon</translation>
</message>
<message>
<location line="+13"/>
<location line="+124"/>
<source>&Sign Message</source>
<translation>&Subskribi Mesaĝon</translation>
</message>
<message>
<location line="-118"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation>Vi povas subskribi mesaĝon per viaj adresoj, por pravigi ke vi estas la posedanto de tiuj adresoj. Atentu, ke vi ne subskriu ion neprecizan, ĉar trompisto povus ruzi kontraŭ vi kaj ŝteli vian identecon. Subskribu nur plene detaligitaj deklaroj pri kiuj vi konsentas.</translation>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. A8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+10"/>
<location line="+203"/>
<source>Choose an address from the address book</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-193"/>
<location line="+203"/>
<source>Alt+A</source>
<translation>Alt+A</translation>
</message>
<message>
<location line="-193"/>
<source>Paste address from clipboard</source>
<translation>Alglui adreson de tondejo</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+12"/>
<source>Enter the message you want to sign here</source>
<translation>Tajpu la mesaĝon, kiun vi volas sendi, cîi tie</translation>
</message>
<message>
<location line="+24"/>
<source>Copy the current signature to the system clipboard</source>
<translation>Kopii la aktualan subskribon al la tondejo</translation>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this BitSeeds address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all sign message fields</source>
<translation>Reagordigi ĉiujn prisubskribajn kampojn</translation>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation>&Forigi Ĉion</translation>
</message>
<message>
<location line="-87"/>
<location line="+70"/>
<source>&Verify Message</source>
<translation>&Kontroli Mesaĝon</translation>
</message>
<message>
<location line="-64"/>
<source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source>
<translation>Enmeti la subskriban adreson, la mesaĝon (kune kun ĉiu linisalto, spaceto, taboj, ktp. precize) kaj la subskribon ĉi sube por kontroli la mesaĝon. Atentu, ke vi ne komprenu per la subskribo pli ol la enhavo de la mesaĝo mem, por eviti homo-en-la-mezo-atakon.</translation>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. A8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified BitSeeds address</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+17"/>
<source>Reset all verify message fields</source>
<translation>Reagordigi ĉiujn prikontrolajn kampojn</translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a BitSeeds address (e.g. A8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation>Klaku "Subskribi Mesaĝon" por krei subskribon</translation>
</message>
<message>
<location line="+3"/>
<source>Enter BitSeeds signature</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation>La adreso, kiun vi enmetis, estas nevalida.</translation>
</message>
<message>
<location line="-81"/>
<location line="+8"/>
<location line="+73"/>
<location line="+8"/>
<source>Please check the address and try again.</source>
<translation>Bonvolu kontroli la adreson kaj reprovi.</translation>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation>La adreso, kiun vi enmetis, referencas neniun ŝlosilon.</translation>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation>Malŝloso de monujo estas nuligita.</translation>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation>La privata ŝlosilo por la enigita adreso ne disponeblas.</translation>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation>Subskribo de mesaĝo fiaskis.</translation>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation>Mesaĝo estas subskribita.</translation>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation>Ne eblis malĉifri la subskribon.</translation>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation>Bonvolu kontroli la subskribon kaj reprovu.</translation>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation>La subskribo ne kongruis kun la mesaĝ-kompilaĵo.</translation>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation>Kontrolo de mesaĝo malsukcesis.</translation>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation>Mesaĝo sukcese kontrolita.</translation>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+19"/>
<source>Open until %1</source>
<translation>Malferma ĝis %1</translation>
</message>
<message numerus="yes">
<location line="-2"/>
<source>Open for %n block(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
</message>
<message>
<location line="+8"/>
<source>conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>%1/offline</source>
<translation>%1/senkonekte</translation>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation>%1/nekonfirmite</translation>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation>%1 konfirmoj</translation>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation>Stato</translation>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation><numerusform>, elsendita(j) tra %n nodo</numerusform><numerusform>, elsendita(j) tra %n nodoj</numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation>Dato</translation>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation>Fonto</translation>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation>Kreita</translation>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation>De</translation>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation>Al</translation>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation>propra adreso</translation>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation>etikedo</translation>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation>Kredito</translation>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation><numerusform>maturiĝos post %n bloko</numerusform><numerusform>maturiĝos post %n blokoj</numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation>ne akceptita</translation>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation>Debeto</translation>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation>Krompago</translation>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation>Neta sumo</translation>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation>Mesaĝo</translation>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation>Komento</translation>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation>Transakcia ID</translation>
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation>Sencimigaj informoj</translation>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation>Transakcio</translation>
</message>
<message>
<location line="+5"/>
<source>Inputs</source>
<translation>Enigoj</translation>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation>Sumo</translation>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation>vera</translation>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation>malvera</translation>
</message>
<message>
<location line="-211"/>
<source>, has not been successfully broadcast yet</source>
<translation>, ankoraŭ ne elsendita sukcese</translation>
</message>
<message>
<location line="+35"/>
<source>unknown</source>
<translation>nekonata</translation>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="+14"/>
<source>Transaction details</source>
<translation>Transakciaj detaloj</translation>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation>Tiu ĉi panelo montras detalan priskribon de la transakcio</translation>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="+226"/>
<source>Date</source>
<translation>Dato</translation>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation>Tipo</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Adreso</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation>Sumo</translation>
</message>
<message>
<location line="+60"/>
<source>Open until %1</source>
<translation>Malferma ĝis %1</translation>
</message>
<message>
<location line="+12"/>
<source>Confirmed (%1 confirmations)</source>
<translation>Konfirmita (%1 konfirmoj)</translation>
</message>
<message numerus="yes">
<location line="-15"/>
<source>Open for %n more block(s)</source>
<translation><numerusform>Malferma dum ankoraŭ %n bloko</numerusform><numerusform>Malferma dum ankoraŭ %n blokoj</numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Offline</source>
<translation>Senkonekte</translation>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed</source>
<translation>Nekonfirmita</translation>
</message>
<message>
<location line="+3"/>
<source>Confirming (%1 of %2 recommended confirmations)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Conflicted</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Immature (%1 confirmations, will be available after %2)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation>Tiun ĉi blokon ne ricevis ajna alia nodo, kaj ĝi verŝajne ne akceptiĝos!</translation>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation>Kreita sed ne akceptita</translation>
</message>
<message>
<location line="+42"/>
<source>Received with</source>
<translation>Ricevita kun</translation>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation>Ricevita de</translation>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation>Sendita al</translation>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation>Pago al vi mem</translation>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation>Minita</translation>
</message>
<message>
<location line="+38"/>
<source>(n/a)</source>
<translation>neaplikebla</translation>
</message>
<message>
<location line="+190"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation>Transakcia stato. Ŝvebi super tiu ĉi kampo por montri la nombron de konfirmoj.</translation>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation>Dato kaj horo kiam la transakcio alvenis.</translation>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation>Tipo de transakcio.</translation>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation>Celadreso de la transakcio.</translation>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation>Sumo elprenita de aŭ aldonita al la saldo.</translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+55"/>
<location line="+16"/>
<source>All</source>
<translation>Ĉiuj</translation>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation>Hodiaŭ</translation>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation>Ĉi-semajne</translation>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation>Ĉi-monate</translation>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation>Pasintmonate</translation>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation>Ĉi-jare</translation>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation>Intervalo...</translation>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation>Ricevita kun</translation>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation>Sendita al</translation>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation>Al vi mem</translation>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation>Minita</translation>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation>Aliaj</translation>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation>Tajpu adreson aŭ etikedon por serĉi</translation>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation>Minimuma sumo</translation>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation>Kopii adreson</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Kopii etikedon</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Kopii sumon</translation>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation>Kopii transakcian ID-on</translation>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation>Redakti etikedon</translation>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation>Montri detalojn de transakcio</translation>
</message>
<message>
<location line="+144"/>
<source>Export Transaction Data</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Perkome disigita dosiero (*.csv)</translation>
</message>
<message>
<location line="+8"/>
<source>Confirmed</source>
<translation>Konfirmita</translation>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation>Dato</translation>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation>Tipo</translation>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation>Etikedo</translation>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>Adreso</translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation>Sumo</translation>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation>ID</translation>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+100"/>
<source>Range:</source>
<translation>Intervalo:</translation>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation>al</translation>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+206"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+33"/>
<source>BitSeeds version</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Usage:</source>
<translation>Uzado:</translation>
</message>
<message>
<location line="+1"/>
<source>Send command to -server or bitseedsd</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>List commands</source>
<translation>Listigi komandojn</translation>
</message>
<message>
<location line="+1"/>
<source>Get help for a command</source>
<translation>Vidigi helpon pri iu komando</translation>
</message>
<message>
<location line="+2"/>
<source>Options:</source>
<translation>Agordoj:</translation>
</message>
<message>
<location line="+2"/>
<source>Specify configuration file (default: bitseeds.conf)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Specify pid file (default: bitseedsd.pid)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Specify wallet file (within data directory)</source>
<translation>Specifi monujan dosieron (ene de dosierujo por datumoj)</translation>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation>Specifi dosieron por datumoj</translation>
</message>
<message>
<location line="+2"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation>Specifi grandon de datumbazo je megabajtoj (defaŭlte: 25)</translation>
</message>
<message>
<location line="+1"/>
<source>Set database disk log size in megabytes (default: 100)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+6"/>
<source>Listen for connections on <port> (default: 15714 or testnet: 25714)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation>Subteni maksimume <n> konektojn al samtavolanoj (defaŭlte: 125)</translation>
</message>
<message>
<location line="+3"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation>Konekti al nodo por ricevi adresojn de samtavolanoj, kaj malkonekti</translation>
</message>
<message>
<location line="+1"/>
<source>Specify your own public address</source>
<translation>Specifi vian propran publikan adreson</translation>
</message>
<message>
<location line="+5"/>
<source>Bind to given address. Use [host]:port notation for IPv6</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Stake your coins to support network and gain reward (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation>Sojlo por malkonekti misagantajn samtavolanojn (defaŭlte: 100)</translation>
</message>
<message>
<location line="+1"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation>Nombro da sekundoj por rifuzi rekonekton de misagantaj samtavolanoj (defaŭlte: 86400)</translation>
</message>
<message>
<location line="-44"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation>Eraro okazis dum estigo de RPC-pordo %u por aŭskulti per IPv4: %s</translation>
</message>
<message>
<location line="+51"/>
<source>Detach block and address databases. Increases shutdown time (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+109"/>
<source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-87"/>
<source>Listen for JSON-RPC connections on <port> (default: 15715 or testnet: 25715)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-11"/>
<source>Accept command line and JSON-RPC commands</source>
<translation>Akcepti komandojn JSON-RPC kaj el komandlinio</translation>
</message>
<message>
<location line="+101"/>
<source>Error: Transaction creation failed </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-5"/>
<source>Error: Wallet locked, unable to create transaction </source>
<translation type="unfinished"/>
</message>
<message>
<location line="-8"/>
<source>Importing blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Importing bootstrap blockchain data file.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-88"/>
<source>Run in the background as a daemon and accept commands</source>
<translation>Ruli fone kiel demono kaj akcepti komandojn</translation>
</message>
<message>
<location line="+1"/>
<source>Use the test network</source>
<translation>Uzi la test-reton</translation>
</message>
<message>
<location line="-24"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation>Akcepti konektojn el ekstere (defaŭlte: 1 se ne estas -proxy nek -connect)</translation>
</message>
<message>
<location line="-38"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation>Eraro okazis dum estigo de RPC-pordo %u por aŭskulti per IPv6; retrodefaŭltas al IPv4: %s</translation>
</message>
<message>
<location line="+117"/>
<source>Error initializing database environment %s! To recover, BACKUP THAT DIRECTORY, then remove everything from it except for wallet.dat.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-20"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
<translation>Averto: -paytxfee estas agordita per tre alta valoro! Tio estas la krompago, kion vi pagos se vi sendas la transakcion.</translation>
</message>
<message>
<location line="+61"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong BitSeeds will not work properly.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-31"/>
<source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source>
<translation>Averto: okazis eraro dum lego de wallet.dat! Ĉiuj ŝlosiloj sukcese legiĝis, sed la transakciaj datumoj aŭ la adresaro eble mankas aŭ malĝustas.</translation>
</message>
<message>
<location line="-18"/>
<source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source>
<translation>Averto: via wallet.dat estas difektita, sed la datumoj sukcese saviĝis! La originala wallet.dat estas nun konservita kiel wallet.{timestamp}.bak en %s; se via saldo aŭ transakcioj estas malĝustaj vi devus restaŭri per alia sekurkopio.</translation>
</message>
<message>
<location line="-30"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation>Provo ripari privatajn ŝlosilojn el difektita wallet.dat</translation>
</message>
<message>
<location line="+4"/>
<source>Block creation options:</source>
<translation>Blok-kreaj agordaĵoj:</translation>
</message>
<message>
<location line="-62"/>
<source>Connect only to the specified node(s)</source>
<translation>Konekti nur al specifita(j) nodo(j)</translation>
</message>
<message>
<location line="+4"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation>Malkovri la propran IP-adreson (defaŭlte: 1 dum aŭskultado sen -externalip)</translation>
</message>
<message>
<location line="+94"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation>Ne sukcesis aŭskulti ajnan pordon. Uzu -listen=0 se tion vi volas.</translation>
</message>
<message>
<location line="-90"/>
<source>Find peers using DNS lookup (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync checkpoints policy (default: strict)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+83"/>
<source>Invalid -tor address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+4"/>
<source>Invalid amount for -reservebalance=<amount></source>
<translation type="unfinished"/>
</message>
<message>
<location line="-82"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation>Maksimuma po riceva bufro por konektoj, <n>*1000 bajtoj (defaŭlte: 5000)</translation>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation>Maksimuma po senda bufro por konektoj, <n>*1000 bajtoj (defaŭlte: 1000)</translation>
</message>
<message>
<location line="-16"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation>Konekti nur la nodoj en la reto <net> (IPv4, IPv6 aŭ Tor)</translation>
</message>
<message>
<location line="+28"/>
<source>Output extra debugging information. Implies all other -debug* options</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Output extra network debugging information</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Prepend debug output with timestamp</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+35"/>
<source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source>
<translation>SSL-agordaĵoj: (vidu la vikio de Bitmono por instrukcioj pri agordado de SSL)</translation>
</message>
<message>
<location line="-74"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+41"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation>Sendi spurajn/sencimigajn informojn al la konzolo anstataŭ al dosiero debug.log</translation>
</message>
<message>
<location line="+1"/>
<source>Send trace/debug info to debugger</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+28"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation>Agordi minimuman grandon de blokoj je bajtoj (defaŭlte: 0)</translation>
</message>
<message>
<location line="-29"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation>Malpligrandigi la sencimigan protokol-dosieron kiam kliento lanĉiĝas (defaŭlte: 1 kiam mankas -debug)</translation>
</message>
<message>
<location line="-42"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation>Specifi konektan tempolimon je milisekundoj (defaŭlte: 5000)</translation>
</message>
<message>
<location line="+109"/>
<source>Unable to sign checkpoint, wrong checkpointkey?
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-80"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation>Uzi UPnP por mapi la aŭskultan pordon (defaŭlte: 0)</translation>
</message>
<message>
<location line="-1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation>Uzi UPnP por mapi la aŭskultan pordon (defaŭlte: 1 dum aŭskultado)</translation>
</message>
<message>
<location line="-25"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+42"/>
<source>Username for JSON-RPC connections</source>
<translation>Salutnomo por konektoj JSON-RPC</translation>
</message>
<message>
<location line="+47"/>
<source>Verifying database integrity...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+57"/>
<source>WARNING: syncronized checkpoint violation detected, but skipped!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Warning: Disk space is low!</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-2"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation>Averto: tiu ĉi versio estas eksdata. Vi bezonas ĝisdatigon!</translation>
</message>
<message>
<location line="-48"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation>wallet.dat estas difektita, riparo malsukcesis</translation>
</message>
<message>
<location line="-54"/>
<source>Password for JSON-RPC connections</source>
<translation>Pasvorto por konektoj JSON-RPC</translation>
</message>
<message>
<location line="-84"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=bitseedsrpc
rpcpassword=%s
(you do not need to remember this password)
The username and password MUST NOT be the same.
If the file does not exist, create it with owner-readable-only file permissions.
It is also recommended to set alertnotify so you are notified of problems;
for example: alertnotify=echo %%s | mail -s "BitSeeds Alert" [email protected]
</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+51"/>
<source>Find peers using internet relay chat (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Sync time with other nodes. Disable if time on your system is precise e.g. syncing with NTP (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+15"/>
<source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+16"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation>Permesi konektojn JSON-RPC de specifa IP-adreso</translation>
</message>
<message>
<location line="+1"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation>Sendi komandon al nodo ĉe <ip> (defaŭlte: 127.0.0.1)</translation>
</message>
<message>
<location line="+1"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation>Plenumi komandon kiam plej bona bloko ŝanĝiĝas (%s en cmd anstataŭiĝas per bloka haketaĵo)</translation>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation>Plenumi komandon kiam monuja transakcio ŝanĝiĝas (%s en cmd anstataŭiĝas per TxID)</translation>
</message>
<message>
<location line="+3"/>
<source>Require a confirmations for change (default: 0)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Enforce transaction scripts to use canonical PUSH operators (default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Upgrade wallet to latest format</source>
<translation>Ĝisdatigi monujon al plej lasta formato</translation>
</message>
<message>
<location line="+1"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation>Agordi la grandon de la ŝlosilo-vico al <n> (defaŭlte: 100)</translation>
</message>
<message>
<location line="+1"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation>Reskani la blokĉenon por mankantaj monujaj transakcioj</translation>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 2500, 0 = all)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-6, default: 1)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Imports blocks from external blk000?.dat file</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+8"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation>Uzi OpenSSL (https) por konektoj JSON-RPC</translation>
</message>
<message>
<location line="+1"/>
<source>Server certificate file (default: server.cert)</source>
<translation>Dosiero de servila atestilo (defaŭlte: server.cert)</translation>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation>Dosiero de servila privata ŝlosilo (defaŭlte: server.pem)</translation>
</message>
<message>
<location line="+1"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+53"/>
<source>Error: Wallet unlocked for staking only, unable to create transaction.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+18"/>
<source>WARNING: Invalid checkpoint found! Displayed transactions may not be correct! You may need to upgrade, or notify developers.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-158"/>
<source>This help message</source>
<translation>Tiu ĉi helpmesaĝo</translation>
</message>
<message>
<location line="+95"/>
<source>Wallet %s resides outside data directory %s.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot obtain a lock on data directory %s. BitSeeds is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-98"/>
<source>BitSeeds</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+140"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation>Ne eblis bindi al %s en tiu ĉi komputilo (bind resendis eraron %d, %s)</translation>
</message>
<message>
<location line="-130"/>
<source>Connect through socks proxy</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+3"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation>Permesi DNS-elserĉojn por -addnote, -seednote kaj -connect</translation>
</message>
<message>
<location line="+122"/>
<source>Loading addresses...</source>
<translation>Ŝarĝante adresojn...</translation>
</message>
<message>
<location line="-15"/>
<source>Error loading blkindex.dat</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+2"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation>Eraro dum ŝargado de wallet.dat: monujo difektita</translation>
</message>
<message>
<location line="+4"/>
<source>Error loading wallet.dat: Wallet requires newer version of BitSeeds</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Wallet needed to be rewritten: restart BitSeeds to complete</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat</source>
<translation>Eraro dum ŝargado de wallet.dat</translation>
</message>
<message>
<location line="-16"/>
<source>Invalid -proxy address: '%s'</source>
<translation>Nevalid adreso -proxy: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation>Nekonata reto specifita en -onlynet: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation>Nekonata versio de -socks petita: %i</translation>
</message>
<message>
<location line="+4"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation>Ne eblas trovi la adreson -bind: '%s'</translation>
</message>
<message>
<location line="+2"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation>Ne eblas trovi la adreson -externalip: '%s'</translation>
</message>
<message>
<location line="-24"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation>Nevalida sumo por -paytxfee=<amount>: '%s'</translation>
</message>
<message>
<location line="+44"/>
<source>Error: could not start node</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+11"/>
<source>Sending...</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+5"/>
<source>Invalid amount</source>
<translation>Nevalida sumo</translation>
</message>
<message>
<location line="+1"/>
<source>Insufficient funds</source>
<translation>Nesufiĉa mono</translation>
</message>
<message>
<location line="-34"/>
<source>Loading block index...</source>
<translation>Ŝarĝante blok-indekson...</translation>
</message>
<message>
<location line="-103"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation>Aldoni nodon por alkonekti kaj provi daŭrigi la malferman konekton</translation>
</message>
<message>
<location line="+122"/>
<source>Unable to bind to %s on this computer. BitSeeds is probably already running.</source>
<translation type="unfinished"/>
</message>
<message>
<location line="-97"/>
<source>Fee per KB to add to transactions you send</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+55"/>
<source>Invalid amount for -mininput=<amount>: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+25"/>
<source>Loading wallet...</source>
<translation>Ŝargado de monujo...</translation>
</message>
<message>
<location line="+8"/>
<source>Cannot downgrade wallet</source>
<translation>Ne eblas malpromocii monujon</translation>
</message>
<message>
<location line="+1"/>
<source>Cannot initialize keypool</source>
<translation type="unfinished"/>
</message>
<message>
<location line="+1"/>
<source>Cannot write default address</source>
<translation>Ne eblas skribi defaŭltan adreson</translation>
</message>
<message>
<location line="+1"/>
<source>Rescanning...</source>
<translation>Reskanado...</translation>
</message>
<message>
<location line="+5"/>
<source>Done loading</source>
<translation>Ŝargado finiĝis</translation>
</message>
<message>
<location line="-167"/>
<source>To use the %s option</source>
<translation>Por uzi la agordon %s</translation>
</message>
<message>
<location line="+14"/>
<source>Error</source>
<translation>Eraro</translation>
</message>
<message>
<location line="+6"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation>Vi devas agordi rpcpassword=<password> en la konfigura dosiero:
%s
Se la dosiero ne ekzistas, kreu ĝin kun permeso "nur posedanto rajtas legi".</translation>
</message>
</context>
</TS> | BitSeedsFoundation/BitSeeds | src/qt/locale/bitcoin_eo.ts | TypeScript | mit | 117,796 |
<?php
namespace Rudolf\Modules\Modules\One\Admin;
use Rudolf\Component\Alerts\Alert;
use Rudolf\Component\Alerts\AlertsCollection;
use Rudolf\Component\Modules\ConfigEditor;
use Rudolf\Framework\Controller\AdminController;
class SwitchController extends AdminController
{
private $blacklist = [
'Dashboard',
'Modules',
'Users',
];
/**
* @param $name
*
* @throws \Exception
*/
public function switchStatus($name)
{
$configEditor = new ConfigEditor();
$status = $configEditor->getStatus($name);
if (null === $status) {
AlertsCollection::add(new Alert(
'error',
'Wystąpił nieoczekiwany błąd'
));
$this->redirect(DIR.'/admin/modules');
}
switch ($status) {
case 1:
if (in_array($name, $this->blacklist)) {
AlertsCollection::add(new Alert(
'error',
'Nie można wyłączyć modułu '.$name.'.'
));
$this->redirect(DIR.'/admin/modules?de', 302);
break;
}
$configEditor->deactivate($name);
$configEditor->save();
AlertsCollection::add(new Alert(
'success',
'Pomyślnie wyłączono moduł '.$name.'.'
));
$this->redirect(DIR.'/admin/modules?de', 302);
break;
case 0:
$configEditor->activate($name);
$configEditor->save();
AlertsCollection::add(new Alert(
'success',
'Pomyślnie włączono moduł '.$name.'.'
));
$this->redirect(DIR.'/admin/modules?ac', 302);
break;
}
}
}
| rudolfcms/rudolf | src/module/Modules/One/Admin/SwitchController.php | PHP | mit | 1,916 |
<?
// DATABASE
define("DB_SERVER", "localhost"); //the mysql server address - often, localhost
define("DB_USERNAME", "root"); //the mysql username
define("DB_PASSWORD", "11913431"); //the mysql password
define("DB_NAME", "draygon"); //the name of the mysql database
// CLIENT
define("CLIENT_NAME", "me"); //the name of the client company
define("CLIENT_EMAIL", "[email protected]"); //the email address that the contact form will go to
// WEBSITE
define("WEBSITE_URL", $_SERVER['HTTP_HOST']); //the website URL, without the http://
// WEBSITE FRONT END CONFIGURATION
define("TITLE_APPEND", " - " . CLIENT_NAME); //the value entered here will be appended to all page titles (can be blank)
// - will be overwritten by SEO title
define("DEFAULT_TITLE", "Security Fencing Contractor Services - Taunton, Somerset, Devon, Dorset, Cornwall"); //the default page title, used if no title set by CMS and for the Home Page
define("META_KEYWORDS", "taunton fencing contractor, south west fencing contractor, taunton fencing services, high security fencing contractors, security gate installation somerset, , close board fencing installation, wooden fencing taunton, automatic driveway gates, security barrier installation somerset, building site security fencing somerset and devon, site hording installation somerset, electrical fence installation somerset, , residential railings contractor taunton, commercial fencing fitter devon and cornwall, jackson expert installer"); //comma separated list of keywords - used when no keywords set in the CMS
define("META_DESCRIPTION", ""); //default META Description - used when no description set in the CMS
| snider/draygonknights | server/app/classes/config.php | PHP | mit | 1,743 |
#!/usr/bin/env python3
# Copyright (c) 2015-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test block processing."""
import copy
import struct
import time
from test_framework.blocktools import create_block, create_coinbase, create_tx_with_script, get_legacy_sigopcount_block
from test_framework.key import CECKey
from test_framework.messages import (
CBlock,
COIN,
COutPoint,
CTransaction,
CTxIn,
CTxOut,
MAX_BLOCK_BASE_SIZE,
uint256_from_compact,
uint256_from_str,
)
from test_framework.mininode import P2PDataStore
from test_framework.script import (
CScript,
MAX_SCRIPT_ELEMENT_SIZE,
OP_2DUP,
OP_CHECKMULTISIG,
OP_CHECKMULTISIGVERIFY,
OP_CHECKSIG,
OP_CHECKSIGVERIFY,
OP_ELSE,
OP_ENDIF,
OP_EQUAL,
OP_DROP,
OP_FALSE,
OP_HASH160,
OP_IF,
OP_INVALIDOPCODE,
OP_RETURN,
OP_TRUE,
SIGHASH_ALL,
SignatureHash,
hash160,
)
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import assert_equal
MAX_BLOCK_SIGOPS = 20000
# Use this class for tests that require behavior other than normal "mininode" behavior.
# For now, it is used to serialize a bloated varint (b64).
class CBrokenBlock(CBlock):
def initialize(self, base_block):
self.vtx = copy.deepcopy(base_block.vtx)
self.hashMerkleRoot = self.calc_merkle_root()
def serialize(self, with_witness=False):
r = b""
r += super(CBlock, self).serialize()
r += struct.pack("<BQ", 255, len(self.vtx))
for tx in self.vtx:
if with_witness:
r += tx.serialize_with_witness()
else:
r += tx.serialize_without_witness()
return r
def normal_serialize(self):
return super().serialize()
class FullBlockTest(BitcoinTestFramework):
def set_test_params(self):
self.num_nodes = 1
self.setup_clean_chain = True
self.extra_args = [[]]
def run_test(self):
node = self.nodes[0] # convenience reference to the node
self.bootstrap_p2p() # Add one p2p connection to the node
self.block_heights = {}
self.coinbase_key = CECKey()
self.coinbase_key.set_secretbytes(b"horsebattery")
self.coinbase_pubkey = self.coinbase_key.get_pubkey()
self.tip = None
self.blocks = {}
self.genesis_hash = int(self.nodes[0].getbestblockhash(), 16)
self.block_heights[self.genesis_hash] = 0
self.spendable_outputs = []
# Create a new block
b0 = self.next_block(0)
self.save_spendable_output()
self.sync_blocks([b0])
# Allow the block to mature
blocks = []
for i in range(99):
blocks.append(self.next_block(5000 + i))
self.save_spendable_output()
self.sync_blocks(blocks)
# collect spendable outputs now to avoid cluttering the code later on
out = []
for i in range(33):
out.append(self.get_spendable_output())
# Start by building a couple of blocks on top (which output is spent is
# in parentheses):
# genesis -> b1 (0) -> b2 (1)
b1 = self.next_block(1, spend=out[0])
self.save_spendable_output()
b2 = self.next_block(2, spend=out[1])
self.save_spendable_output()
self.sync_blocks([b1, b2])
# Fork like this:
#
# genesis -> b1 (0) -> b2 (1)
# \-> b3 (1)
#
# Nothing should happen at this point. We saw b2 first so it takes priority.
self.log.info("Don't reorg to a chain of the same length")
self.move_tip(1)
b3 = self.next_block(3, spend=out[1])
txout_b3 = b3.vtx[1]
self.sync_blocks([b3], False)
# Now we add another block to make the alternative chain longer.
#
# genesis -> b1 (0) -> b2 (1)
# \-> b3 (1) -> b4 (2)
self.log.info("Reorg to a longer chain")
b4 = self.next_block(4, spend=out[2])
self.sync_blocks([b4])
# ... and back to the first chain.
# genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
# \-> b3 (1) -> b4 (2)
self.move_tip(2)
b5 = self.next_block(5, spend=out[2])
self.save_spendable_output()
self.sync_blocks([b5], False)
self.log.info("Reorg back to the original chain")
b6 = self.next_block(6, spend=out[3])
self.sync_blocks([b6], True)
# Try to create a fork that double-spends
# genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
# \-> b7 (2) -> b8 (4)
# \-> b3 (1) -> b4 (2)
self.log.info("Reject a chain with a double spend, even if it is longer")
self.move_tip(5)
b7 = self.next_block(7, spend=out[2])
self.sync_blocks([b7], False)
b8 = self.next_block(8, spend=out[4])
self.sync_blocks([b8], False, reconnect=True)
# Try to create a block that has too much fee
# genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
# \-> b9 (4)
# \-> b3 (1) -> b4 (2)
self.log.info("Reject a block where the miner creates too much coinbase reward")
self.move_tip(6)
b9 = self.next_block(9, spend=out[4], additional_coinbase_value=1)
self.sync_blocks([b9], False, 16, b'bad-cb-amount', reconnect=True)
# Create a fork that ends in a block with too much fee (the one that causes the reorg)
# genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
# \-> b10 (3) -> b11 (4)
# \-> b3 (1) -> b4 (2)
self.log.info("Reject a chain where the miner creates too much coinbase reward, even if the chain is longer")
self.move_tip(5)
b10 = self.next_block(10, spend=out[3])
self.sync_blocks([b10], False)
b11 = self.next_block(11, spend=out[4], additional_coinbase_value=1)
self.sync_blocks([b11], False, 16, b'bad-cb-amount', reconnect=True)
# Try again, but with a valid fork first
# genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
# \-> b12 (3) -> b13 (4) -> b14 (5)
# \-> b3 (1) -> b4 (2)
self.log.info("Reject a chain where the miner creates too much coinbase reward, even if the chain is longer (on a forked chain)")
self.move_tip(5)
b12 = self.next_block(12, spend=out[3])
self.save_spendable_output()
b13 = self.next_block(13, spend=out[4])
self.save_spendable_output()
b14 = self.next_block(14, spend=out[5], additional_coinbase_value=1)
self.sync_blocks([b12, b13, b14], False, 16, b'bad-cb-amount', reconnect=True)
# New tip should be b13.
assert_equal(node.getbestblockhash(), b13.hash)
# Add a block with MAX_BLOCK_SIGOPS and one with one more sigop
# genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
# \-> b12 (3) -> b13 (4) -> b15 (5) -> b16 (6)
# \-> b3 (1) -> b4 (2)
self.log.info("Accept a block with lots of checksigs")
lots_of_checksigs = CScript([OP_CHECKSIG] * (MAX_BLOCK_SIGOPS - 1))
self.move_tip(13)
b15 = self.next_block(15, spend=out[5], script=lots_of_checksigs)
self.save_spendable_output()
self.sync_blocks([b15], True)
self.log.info("Reject a block with too many checksigs")
too_many_checksigs = CScript([OP_CHECKSIG] * (MAX_BLOCK_SIGOPS))
b16 = self.next_block(16, spend=out[6], script=too_many_checksigs)
self.sync_blocks([b16], False, 16, b'bad-blk-sigops', reconnect=True)
# Attempt to spend a transaction created on a different fork
# genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
# \-> b12 (3) -> b13 (4) -> b15 (5) -> b17 (b3.vtx[1])
# \-> b3 (1) -> b4 (2)
self.log.info("Reject a block with a spend from a re-org'ed out tx")
self.move_tip(15)
b17 = self.next_block(17, spend=txout_b3)
self.sync_blocks([b17], False, 16, b'bad-txns-inputs-missingorspent', reconnect=True)
# Attempt to spend a transaction created on a different fork (on a fork this time)
# genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
# \-> b12 (3) -> b13 (4) -> b15 (5)
# \-> b18 (b3.vtx[1]) -> b19 (6)
# \-> b3 (1) -> b4 (2)
self.log.info("Reject a block with a spend from a re-org'ed out tx (on a forked chain)")
self.move_tip(13)
b18 = self.next_block(18, spend=txout_b3)
self.sync_blocks([b18], False)
b19 = self.next_block(19, spend=out[6])
self.sync_blocks([b19], False, 16, b'bad-txns-inputs-missingorspent', reconnect=True)
# Attempt to spend a coinbase at depth too low
# genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
# \-> b12 (3) -> b13 (4) -> b15 (5) -> b20 (7)
# \-> b3 (1) -> b4 (2)
self.log.info("Reject a block spending an immature coinbase.")
self.move_tip(15)
b20 = self.next_block(20, spend=out[7])
self.sync_blocks([b20], False, 16, b'bad-txns-premature-spend-of-coinbase')
# Attempt to spend a coinbase at depth too low (on a fork this time)
# genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
# \-> b12 (3) -> b13 (4) -> b15 (5)
# \-> b21 (6) -> b22 (5)
# \-> b3 (1) -> b4 (2)
self.log.info("Reject a block spending an immature coinbase (on a forked chain)")
self.move_tip(13)
b21 = self.next_block(21, spend=out[6])
self.sync_blocks([b21], False)
b22 = self.next_block(22, spend=out[5])
self.sync_blocks([b22], False, 16, b'bad-txns-premature-spend-of-coinbase')
# Create a block on either side of MAX_BLOCK_BASE_SIZE and make sure its accepted/rejected
# genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
# \-> b12 (3) -> b13 (4) -> b15 (5) -> b23 (6)
# \-> b24 (6) -> b25 (7)
# \-> b3 (1) -> b4 (2)
self.log.info("Accept a block of size MAX_BLOCK_BASE_SIZE")
self.move_tip(15)
b23 = self.next_block(23, spend=out[6])
tx = CTransaction()
script_length = MAX_BLOCK_BASE_SIZE - len(b23.serialize()) - 69
script_output = CScript([b'\x00' * script_length])
tx.vout.append(CTxOut(0, script_output))
tx.vin.append(CTxIn(COutPoint(b23.vtx[1].sha256, 0)))
b23 = self.update_block(23, [tx])
# Make sure the math above worked out to produce a max-sized block
assert_equal(len(b23.serialize()), MAX_BLOCK_BASE_SIZE)
self.sync_blocks([b23], True)
self.save_spendable_output()
self.log.info("Reject a block of size MAX_BLOCK_BASE_SIZE + 1")
self.move_tip(15)
b24 = self.next_block(24, spend=out[6])
script_length = MAX_BLOCK_BASE_SIZE - len(b24.serialize()) - 69
script_output = CScript([b'\x00' * (script_length + 1)])
tx.vout = [CTxOut(0, script_output)]
b24 = self.update_block(24, [tx])
assert_equal(len(b24.serialize()), MAX_BLOCK_BASE_SIZE + 1)
self.sync_blocks([b24], False, 16, b'bad-blk-length', reconnect=True)
b25 = self.next_block(25, spend=out[7])
self.sync_blocks([b25], False)
# Create blocks with a coinbase input script size out of range
# genesis -> b1 (0) -> b2 (1) -> b5 (2) -> b6 (3)
# \-> b12 (3) -> b13 (4) -> b15 (5) -> b23 (6) -> b30 (7)
# \-> ... (6) -> ... (7)
# \-> b3 (1) -> b4 (2)
self.log.info("Reject a block with coinbase input script size out of range")
self.move_tip(15)
b26 = self.next_block(26, spend=out[6])
b26.vtx[0].vin[0].scriptSig = b'\x00'
b26.vtx[0].rehash()
# update_block causes the merkle root to get updated, even with no new
# transactions, and updates the required state.
b26 = self.update_block(26, [])
self.sync_blocks([b26], False, 16, b'bad-cb-length', reconnect=True)
# Extend the b26 chain to make sure bitcoind isn't accepting b26
b27 = self.next_block(27, spend=out[7])
self.sync_blocks([b27], False)
# Now try a too-large-coinbase script
self.move_tip(15)
b28 = self.next_block(28, spend=out[6])
b28.vtx[0].vin[0].scriptSig = b'\x00' * 101
b28.vtx[0].rehash()
b28 = self.update_block(28, [])
self.sync_blocks([b28], False, 16, b'bad-cb-length', reconnect=True)
# Extend the b28 chain to make sure bitcoind isn't accepting b28
b29 = self.next_block(29, spend=out[7])
self.sync_blocks([b29], False)
# b30 has a max-sized coinbase scriptSig.
self.move_tip(23)
b30 = self.next_block(30)
b30.vtx[0].vin[0].scriptSig = b'\x00' * 100
b30.vtx[0].rehash()
b30 = self.update_block(30, [])
self.sync_blocks([b30], True)
self.save_spendable_output()
# b31 - b35 - check sigops of OP_CHECKMULTISIG / OP_CHECKMULTISIGVERIFY / OP_CHECKSIGVERIFY
#
# genesis -> ... -> b30 (7) -> b31 (8) -> b33 (9) -> b35 (10)
# \-> b36 (11)
# \-> b34 (10)
# \-> b32 (9)
#
# MULTISIG: each op code counts as 20 sigops. To create the edge case, pack another 19 sigops at the end.
self.log.info("Accept a block with the max number of OP_CHECKMULTISIG sigops")
lots_of_multisigs = CScript([OP_CHECKMULTISIG] * ((MAX_BLOCK_SIGOPS - 1) // 20) + [OP_CHECKSIG] * 19)
b31 = self.next_block(31, spend=out[8], script=lots_of_multisigs)
assert_equal(get_legacy_sigopcount_block(b31), MAX_BLOCK_SIGOPS)
self.sync_blocks([b31], True)
self.save_spendable_output()
# this goes over the limit because the coinbase has one sigop
self.log.info("Reject a block with too many OP_CHECKMULTISIG sigops")
too_many_multisigs = CScript([OP_CHECKMULTISIG] * (MAX_BLOCK_SIGOPS // 20))
b32 = self.next_block(32, spend=out[9], script=too_many_multisigs)
assert_equal(get_legacy_sigopcount_block(b32), MAX_BLOCK_SIGOPS + 1)
self.sync_blocks([b32], False, 16, b'bad-blk-sigops', reconnect=True)
# CHECKMULTISIGVERIFY
self.log.info("Accept a block with the max number of OP_CHECKMULTISIGVERIFY sigops")
self.move_tip(31)
lots_of_multisigs = CScript([OP_CHECKMULTISIGVERIFY] * ((MAX_BLOCK_SIGOPS - 1) // 20) + [OP_CHECKSIG] * 19)
b33 = self.next_block(33, spend=out[9], script=lots_of_multisigs)
self.sync_blocks([b33], True)
self.save_spendable_output()
self.log.info("Reject a block with too many OP_CHECKMULTISIGVERIFY sigops")
too_many_multisigs = CScript([OP_CHECKMULTISIGVERIFY] * (MAX_BLOCK_SIGOPS // 20))
b34 = self.next_block(34, spend=out[10], script=too_many_multisigs)
self.sync_blocks([b34], False, 16, b'bad-blk-sigops', reconnect=True)
# CHECKSIGVERIFY
self.log.info("Accept a block with the max number of OP_CHECKSIGVERIFY sigops")
self.move_tip(33)
lots_of_checksigs = CScript([OP_CHECKSIGVERIFY] * (MAX_BLOCK_SIGOPS - 1))
b35 = self.next_block(35, spend=out[10], script=lots_of_checksigs)
self.sync_blocks([b35], True)
self.save_spendable_output()
self.log.info("Reject a block with too many OP_CHECKSIGVERIFY sigops")
too_many_checksigs = CScript([OP_CHECKSIGVERIFY] * (MAX_BLOCK_SIGOPS))
b36 = self.next_block(36, spend=out[11], script=too_many_checksigs)
self.sync_blocks([b36], False, 16, b'bad-blk-sigops', reconnect=True)
# Check spending of a transaction in a block which failed to connect
#
# b6 (3)
# b12 (3) -> b13 (4) -> b15 (5) -> b23 (6) -> b30 (7) -> b31 (8) -> b33 (9) -> b35 (10)
# \-> b37 (11)
# \-> b38 (11/37)
#
# save 37's spendable output, but then double-spend out11 to invalidate the block
self.log.info("Reject a block spending transaction from a block which failed to connect")
self.move_tip(35)
b37 = self.next_block(37, spend=out[11])
txout_b37 = b37.vtx[1]
tx = self.create_and_sign_transaction(out[11], 0)
b37 = self.update_block(37, [tx])
self.sync_blocks([b37], False, 16, b'bad-txns-inputs-missingorspent', reconnect=True)
# attempt to spend b37's first non-coinbase tx, at which point b37 was still considered valid
self.move_tip(35)
b38 = self.next_block(38, spend=txout_b37)
self.sync_blocks([b38], False, 16, b'bad-txns-inputs-missingorspent', reconnect=True)
# Check P2SH SigOp counting
#
#
# 13 (4) -> b15 (5) -> b23 (6) -> b30 (7) -> b31 (8) -> b33 (9) -> b35 (10) -> b39 (11) -> b41 (12)
# \-> b40 (12)
#
# b39 - create some P2SH outputs that will require 6 sigops to spend:
#
# redeem_script = COINBASE_PUBKEY, (OP_2DUP+OP_CHECKSIGVERIFY) * 5, OP_CHECKSIG
# p2sh_script = OP_HASH160, ripemd160(sha256(script)), OP_EQUAL
#
self.log.info("Check P2SH SIGOPS are correctly counted")
self.move_tip(35)
b39 = self.next_block(39)
b39_outputs = 0
b39_sigops_per_output = 6
# Build the redeem script, hash it, use hash to create the p2sh script
redeem_script = CScript([self.coinbase_pubkey] + [OP_2DUP, OP_CHECKSIGVERIFY] * 5 + [OP_CHECKSIG])
redeem_script_hash = hash160(redeem_script)
p2sh_script = CScript([OP_HASH160, redeem_script_hash, OP_EQUAL])
# Create a transaction that spends one satoshi to the p2sh_script, the rest to OP_TRUE
# This must be signed because it is spending a coinbase
spend = out[11]
tx = self.create_tx(spend, 0, 1, p2sh_script)
tx.vout.append(CTxOut(spend.vout[0].nValue - 1, CScript([OP_TRUE])))
self.sign_tx(tx, spend)
tx.rehash()
b39 = self.update_block(39, [tx])
b39_outputs += 1
# Until block is full, add tx's with 1 satoshi to p2sh_script, the rest to OP_TRUE
tx_new = None
tx_last = tx
total_size = len(b39.serialize())
while(total_size < MAX_BLOCK_BASE_SIZE):
tx_new = self.create_tx(tx_last, 1, 1, p2sh_script)
tx_new.vout.append(CTxOut(tx_last.vout[1].nValue - 1, CScript([OP_TRUE])))
tx_new.rehash()
total_size += len(tx_new.serialize())
if total_size >= MAX_BLOCK_BASE_SIZE:
break
b39.vtx.append(tx_new) # add tx to block
tx_last = tx_new
b39_outputs += 1
b39 = self.update_block(39, [])
self.sync_blocks([b39], True)
self.save_spendable_output()
# Test sigops in P2SH redeem scripts
#
# b40 creates 3333 tx's spending the 6-sigop P2SH outputs from b39 for a total of 19998 sigops.
# The first tx has one sigop and then at the end we add 2 more to put us just over the max.
#
# b41 does the same, less one, so it has the maximum sigops permitted.
#
self.log.info("Reject a block with too many P2SH sigops")
self.move_tip(39)
b40 = self.next_block(40, spend=out[12])
sigops = get_legacy_sigopcount_block(b40)
numTxes = (MAX_BLOCK_SIGOPS - sigops) // b39_sigops_per_output
assert_equal(numTxes <= b39_outputs, True)
lastOutpoint = COutPoint(b40.vtx[1].sha256, 0)
new_txs = []
for i in range(1, numTxes + 1):
tx = CTransaction()
tx.vout.append(CTxOut(1, CScript([OP_TRUE])))
tx.vin.append(CTxIn(lastOutpoint, b''))
# second input is corresponding P2SH output from b39
tx.vin.append(CTxIn(COutPoint(b39.vtx[i].sha256, 0), b''))
# Note: must pass the redeem_script (not p2sh_script) to the signature hash function
(sighash, err) = SignatureHash(redeem_script, tx, 1, SIGHASH_ALL)
sig = self.coinbase_key.sign(sighash) + bytes(bytearray([SIGHASH_ALL]))
scriptSig = CScript([sig, redeem_script])
tx.vin[1].scriptSig = scriptSig
tx.rehash()
new_txs.append(tx)
lastOutpoint = COutPoint(tx.sha256, 0)
b40_sigops_to_fill = MAX_BLOCK_SIGOPS - (numTxes * b39_sigops_per_output + sigops) + 1
tx = CTransaction()
tx.vin.append(CTxIn(lastOutpoint, b''))
tx.vout.append(CTxOut(1, CScript([OP_CHECKSIG] * b40_sigops_to_fill)))
tx.rehash()
new_txs.append(tx)
self.update_block(40, new_txs)
self.sync_blocks([b40], False, 16, b'bad-blk-sigops', reconnect=True)
# same as b40, but one less sigop
self.log.info("Accept a block with the max number of P2SH sigops")
self.move_tip(39)
b41 = self.next_block(41, spend=None)
self.update_block(41, b40.vtx[1:-1])
b41_sigops_to_fill = b40_sigops_to_fill - 1
tx = CTransaction()
tx.vin.append(CTxIn(lastOutpoint, b''))
tx.vout.append(CTxOut(1, CScript([OP_CHECKSIG] * b41_sigops_to_fill)))
tx.rehash()
self.update_block(41, [tx])
self.sync_blocks([b41], True)
# Fork off of b39 to create a constant base again
#
# b23 (6) -> b30 (7) -> b31 (8) -> b33 (9) -> b35 (10) -> b39 (11) -> b42 (12) -> b43 (13)
# \-> b41 (12)
#
self.move_tip(39)
b42 = self.next_block(42, spend=out[12])
self.save_spendable_output()
b43 = self.next_block(43, spend=out[13])
self.save_spendable_output()
self.sync_blocks([b42, b43], True)
# Test a number of really invalid scenarios
#
# -> b31 (8) -> b33 (9) -> b35 (10) -> b39 (11) -> b42 (12) -> b43 (13) -> b44 (14)
# \-> ??? (15)
# The next few blocks are going to be created "by hand" since they'll do funky things, such as having
# the first transaction be non-coinbase, etc. The purpose of b44 is to make sure this works.
self.log.info("Build block 44 manually")
height = self.block_heights[self.tip.sha256] + 1
coinbase = create_coinbase(height, self.coinbase_pubkey)
b44 = CBlock()
b44.nTime = self.tip.nTime + 1
b44.hashPrevBlock = self.tip.sha256
b44.nBits = 0x207fffff
b44.vtx.append(coinbase)
b44.hashMerkleRoot = b44.calc_merkle_root()
b44.solve()
self.tip = b44
self.block_heights[b44.sha256] = height
self.blocks[44] = b44
self.sync_blocks([b44], True)
self.log.info("Reject a block with a non-coinbase as the first tx")
non_coinbase = self.create_tx(out[15], 0, 1)
b45 = CBlock()
b45.nTime = self.tip.nTime + 1
b45.hashPrevBlock = self.tip.sha256
b45.nBits = 0x207fffff
b45.vtx.append(non_coinbase)
b45.hashMerkleRoot = b45.calc_merkle_root()
b45.calc_sha256()
b45.solve()
self.block_heights[b45.sha256] = self.block_heights[self.tip.sha256] + 1
self.tip = b45
self.blocks[45] = b45
self.sync_blocks([b45], False, 16, b'bad-cb-missing', reconnect=True)
self.log.info("Reject a block with no transactions")
self.move_tip(44)
b46 = CBlock()
b46.nTime = b44.nTime + 1
b46.hashPrevBlock = b44.sha256
b46.nBits = 0x207fffff
b46.vtx = []
b46.hashMerkleRoot = 0
b46.solve()
self.block_heights[b46.sha256] = self.block_heights[b44.sha256] + 1
self.tip = b46
assert 46 not in self.blocks
self.blocks[46] = b46
self.sync_blocks([b46], False, 16, b'bad-blk-length', reconnect=True)
self.log.info("Reject a block with invalid work")
self.move_tip(44)
b47 = self.next_block(47, solve=False)
target = uint256_from_compact(b47.nBits)
while b47.sha256 < target:
b47.nNonce += 1
b47.rehash()
self.sync_blocks([b47], False, request_block=False)
self.log.info("Reject a block with a timestamp >2 hours in the future")
self.move_tip(44)
b48 = self.next_block(48, solve=False)
b48.nTime = int(time.time()) + 60 * 60 * 3
b48.solve()
self.sync_blocks([b48], False, request_block=False)
self.log.info("Reject a block with invalid merkle hash")
self.move_tip(44)
b49 = self.next_block(49)
b49.hashMerkleRoot += 1
b49.solve()
self.sync_blocks([b49], False, 16, b'bad-txnmrklroot', reconnect=True)
self.log.info("Reject a block with incorrect POW limit")
self.move_tip(44)
b50 = self.next_block(50)
b50.nBits = b50.nBits - 1
b50.solve()
self.sync_blocks([b50], False, request_block=False, reconnect=True)
self.log.info("Reject a block with two coinbase transactions")
self.move_tip(44)
b51 = self.next_block(51)
cb2 = create_coinbase(51, self.coinbase_pubkey)
b51 = self.update_block(51, [cb2])
self.sync_blocks([b51], False, 16, b'bad-cb-multiple', reconnect=True)
self.log.info("Reject a block with duplicate transactions")
# Note: txns have to be in the right position in the merkle tree to trigger this error
self.move_tip(44)
b52 = self.next_block(52, spend=out[15])
tx = self.create_tx(b52.vtx[1], 0, 1)
b52 = self.update_block(52, [tx, tx])
self.sync_blocks([b52], False, 16, b'bad-txns-duplicate', reconnect=True)
# Test block timestamps
# -> b31 (8) -> b33 (9) -> b35 (10) -> b39 (11) -> b42 (12) -> b43 (13) -> b53 (14) -> b55 (15)
# \-> b54 (15)
#
self.move_tip(43)
b53 = self.next_block(53, spend=out[14])
self.sync_blocks([b53], False)
self.save_spendable_output()
self.log.info("Reject a block with timestamp before MedianTimePast")
b54 = self.next_block(54, spend=out[15])
b54.nTime = b35.nTime - 1
b54.solve()
self.sync_blocks([b54], False, request_block=False)
# valid timestamp
self.move_tip(53)
b55 = self.next_block(55, spend=out[15])
b55.nTime = b35.nTime
self.update_block(55, [])
self.sync_blocks([b55], True)
self.save_spendable_output()
# Test Merkle tree malleability
#
# -> b42 (12) -> b43 (13) -> b53 (14) -> b55 (15) -> b57p2 (16)
# \-> b57 (16)
# \-> b56p2 (16)
# \-> b56 (16)
#
# Merkle tree malleability (CVE-2012-2459): repeating sequences of transactions in a block without
# affecting the merkle root of a block, while still invalidating it.
# See: src/consensus/merkle.h
#
# b57 has three txns: coinbase, tx, tx1. The merkle root computation will duplicate tx.
# Result: OK
#
# b56 copies b57 but duplicates tx1 and does not recalculate the block hash. So it has a valid merkle
# root but duplicate transactions.
# Result: Fails
#
# b57p2 has six transactions in its merkle tree:
# - coinbase, tx, tx1, tx2, tx3, tx4
# Merkle root calculation will duplicate as necessary.
# Result: OK.
#
# b56p2 copies b57p2 but adds both tx3 and tx4. The purpose of the test is to make sure the code catches
# duplicate txns that are not next to one another with the "bad-txns-duplicate" error (which indicates
# that the error was caught early, avoiding a DOS vulnerability.)
# b57 - a good block with 2 txs, don't submit until end
self.move_tip(55)
b57 = self.next_block(57)
tx = self.create_and_sign_transaction(out[16], 1)
tx1 = self.create_tx(tx, 0, 1)
b57 = self.update_block(57, [tx, tx1])
# b56 - copy b57, add a duplicate tx
self.log.info("Reject a block with a duplicate transaction in the Merkle Tree (but with a valid Merkle Root)")
self.move_tip(55)
b56 = copy.deepcopy(b57)
self.blocks[56] = b56
assert_equal(len(b56.vtx), 3)
b56 = self.update_block(56, [tx1])
assert_equal(b56.hash, b57.hash)
self.sync_blocks([b56], False, 16, b'bad-txns-duplicate', reconnect=True)
# b57p2 - a good block with 6 tx'es, don't submit until end
self.move_tip(55)
b57p2 = self.next_block("57p2")
tx = self.create_and_sign_transaction(out[16], 1)
tx1 = self.create_tx(tx, 0, 1)
tx2 = self.create_tx(tx1, 0, 1)
tx3 = self.create_tx(tx2, 0, 1)
tx4 = self.create_tx(tx3, 0, 1)
b57p2 = self.update_block("57p2", [tx, tx1, tx2, tx3, tx4])
# b56p2 - copy b57p2, duplicate two non-consecutive tx's
self.log.info("Reject a block with two duplicate transactions in the Merkle Tree (but with a valid Merkle Root)")
self.move_tip(55)
b56p2 = copy.deepcopy(b57p2)
self.blocks["b56p2"] = b56p2
assert_equal(b56p2.hash, b57p2.hash)
assert_equal(len(b56p2.vtx), 6)
b56p2 = self.update_block("b56p2", [tx3, tx4])
self.sync_blocks([b56p2], False, 16, b'bad-txns-duplicate', reconnect=True)
self.move_tip("57p2")
self.sync_blocks([b57p2], True)
self.move_tip(57)
self.sync_blocks([b57], False) # The tip is not updated because 57p2 seen first
self.save_spendable_output()
# Test a few invalid tx types
#
# -> b35 (10) -> b39 (11) -> b42 (12) -> b43 (13) -> b53 (14) -> b55 (15) -> b57 (16) -> b60 (17)
# \-> ??? (17)
#
# tx with prevout.n out of range
self.log.info("Reject a block with a transaction with prevout.n out of range")
self.move_tip(57)
b58 = self.next_block(58, spend=out[17])
tx = CTransaction()
assert(len(out[17].vout) < 42)
tx.vin.append(CTxIn(COutPoint(out[17].sha256, 42), CScript([OP_TRUE]), 0xffffffff))
tx.vout.append(CTxOut(0, b""))
tx.calc_sha256()
b58 = self.update_block(58, [tx])
self.sync_blocks([b58], False, 16, b'bad-txns-inputs-missingorspent', reconnect=True)
# tx with output value > input value
self.log.info("Reject a block with a transaction with outputs > inputs")
self.move_tip(57)
b59 = self.next_block(59)
tx = self.create_and_sign_transaction(out[17], 51 * COIN)
b59 = self.update_block(59, [tx])
self.sync_blocks([b59], False, 16, b'bad-txns-in-belowout', reconnect=True)
# reset to good chain
self.move_tip(57)
b60 = self.next_block(60, spend=out[17])
self.sync_blocks([b60], True)
self.save_spendable_output()
# Test BIP30
#
# -> b39 (11) -> b42 (12) -> b43 (13) -> b53 (14) -> b55 (15) -> b57 (16) -> b60 (17)
# \-> b61 (18)
#
# Blocks are not allowed to contain a transaction whose id matches that of an earlier,
# not-fully-spent transaction in the same chain. To test, make identical coinbases;
# the second one should be rejected.
#
self.log.info("Reject a block with a transaction with a duplicate hash of a previous transaction (BIP30)")
self.move_tip(60)
b61 = self.next_block(61, spend=out[18])
b61.vtx[0].vin[0].scriptSig = b60.vtx[0].vin[0].scriptSig # Equalize the coinbases
b61.vtx[0].rehash()
b61 = self.update_block(61, [])
assert_equal(b60.vtx[0].serialize(), b61.vtx[0].serialize())
self.sync_blocks([b61], False, 16, b'bad-txns-BIP30', reconnect=True)
# Test tx.isFinal is properly rejected (not an exhaustive tx.isFinal test, that should be in data-driven transaction tests)
#
# -> b39 (11) -> b42 (12) -> b43 (13) -> b53 (14) -> b55 (15) -> b57 (16) -> b60 (17)
# \-> b62 (18)
#
self.log.info("Reject a block with a transaction with a nonfinal locktime")
self.move_tip(60)
b62 = self.next_block(62)
tx = CTransaction()
tx.nLockTime = 0xffffffff # this locktime is non-final
tx.vin.append(CTxIn(COutPoint(out[18].sha256, 0))) # don't set nSequence
tx.vout.append(CTxOut(0, CScript([OP_TRUE])))
assert(tx.vin[0].nSequence < 0xffffffff)
tx.calc_sha256()
b62 = self.update_block(62, [tx])
self.sync_blocks([b62], False, 16, b'bad-txns-nonfinal')
# Test a non-final coinbase is also rejected
#
# -> b39 (11) -> b42 (12) -> b43 (13) -> b53 (14) -> b55 (15) -> b57 (16) -> b60 (17)
# \-> b63 (-)
#
self.log.info("Reject a block with a coinbase transaction with a nonfinal locktime")
self.move_tip(60)
b63 = self.next_block(63)
b63.vtx[0].nLockTime = 0xffffffff
b63.vtx[0].vin[0].nSequence = 0xDEADBEEF
b63.vtx[0].rehash()
b63 = self.update_block(63, [])
self.sync_blocks([b63], False, 16, b'bad-txns-nonfinal')
# This checks that a block with a bloated VARINT between the block_header and the array of tx such that
# the block is > MAX_BLOCK_BASE_SIZE with the bloated varint, but <= MAX_BLOCK_BASE_SIZE without the bloated varint,
# does not cause a subsequent, identical block with canonical encoding to be rejected. The test does not
# care whether the bloated block is accepted or rejected; it only cares that the second block is accepted.
#
# What matters is that the receiving node should not reject the bloated block, and then reject the canonical
# block on the basis that it's the same as an already-rejected block (which would be a consensus failure.)
#
# -> b39 (11) -> b42 (12) -> b43 (13) -> b53 (14) -> b55 (15) -> b57 (16) -> b60 (17) -> b64 (18)
# \
# b64a (18)
# b64a is a bloated block (non-canonical varint)
# b64 is a good block (same as b64 but w/ canonical varint)
#
self.log.info("Accept a valid block even if a bloated version of the block has previously been sent")
self.move_tip(60)
regular_block = self.next_block("64a", spend=out[18])
# make it a "broken_block," with non-canonical serialization
b64a = CBrokenBlock(regular_block)
b64a.initialize(regular_block)
self.blocks["64a"] = b64a
self.tip = b64a
tx = CTransaction()
# use canonical serialization to calculate size
script_length = MAX_BLOCK_BASE_SIZE - len(b64a.normal_serialize()) - 69
script_output = CScript([b'\x00' * script_length])
tx.vout.append(CTxOut(0, script_output))
tx.vin.append(CTxIn(COutPoint(b64a.vtx[1].sha256, 0)))
b64a = self.update_block("64a", [tx])
assert_equal(len(b64a.serialize()), MAX_BLOCK_BASE_SIZE + 8)
self.sync_blocks([b64a], False, 1, b'error parsing message')
# bitcoind doesn't disconnect us for sending a bloated block, but if we subsequently
# resend the header message, it won't send us the getdata message again. Just
# disconnect and reconnect and then call sync_blocks.
# TODO: improve this test to be less dependent on P2P DOS behaviour.
node.disconnect_p2ps()
self.reconnect_p2p()
self.move_tip(60)
b64 = CBlock(b64a)
b64.vtx = copy.deepcopy(b64a.vtx)
assert_equal(b64.hash, b64a.hash)
assert_equal(len(b64.serialize()), MAX_BLOCK_BASE_SIZE)
self.blocks[64] = b64
b64 = self.update_block(64, [])
self.sync_blocks([b64], True)
self.save_spendable_output()
# Spend an output created in the block itself
#
# -> b42 (12) -> b43 (13) -> b53 (14) -> b55 (15) -> b57 (16) -> b60 (17) -> b64 (18) -> b65 (19)
#
self.log.info("Accept a block with a transaction spending an output created in the same block")
self.move_tip(64)
b65 = self.next_block(65)
tx1 = self.create_and_sign_transaction(out[19], out[19].vout[0].nValue)
tx2 = self.create_and_sign_transaction(tx1, 0)
b65 = self.update_block(65, [tx1, tx2])
self.sync_blocks([b65], True)
self.save_spendable_output()
# Attempt to spend an output created later in the same block
#
# -> b43 (13) -> b53 (14) -> b55 (15) -> b57 (16) -> b60 (17) -> b64 (18) -> b65 (19)
# \-> b66 (20)
self.log.info("Reject a block with a transaction spending an output created later in the same block")
self.move_tip(65)
b66 = self.next_block(66)
tx1 = self.create_and_sign_transaction(out[20], out[20].vout[0].nValue)
tx2 = self.create_and_sign_transaction(tx1, 1)
b66 = self.update_block(66, [tx2, tx1])
self.sync_blocks([b66], False, 16, b'bad-txns-inputs-missingorspent', reconnect=True)
# Attempt to double-spend a transaction created in a block
#
# -> b43 (13) -> b53 (14) -> b55 (15) -> b57 (16) -> b60 (17) -> b64 (18) -> b65 (19)
# \-> b67 (20)
#
#
self.log.info("Reject a block with a transaction double spending a transaction creted in the same block")
self.move_tip(65)
b67 = self.next_block(67)
tx1 = self.create_and_sign_transaction(out[20], out[20].vout[0].nValue)
tx2 = self.create_and_sign_transaction(tx1, 1)
tx3 = self.create_and_sign_transaction(tx1, 2)
b67 = self.update_block(67, [tx1, tx2, tx3])
self.sync_blocks([b67], False, 16, b'bad-txns-inputs-missingorspent', reconnect=True)
# More tests of block subsidy
#
# -> b43 (13) -> b53 (14) -> b55 (15) -> b57 (16) -> b60 (17) -> b64 (18) -> b65 (19) -> b69 (20)
# \-> b68 (20)
#
# b68 - coinbase with an extra 10 satoshis,
# creates a tx that has 9 satoshis from out[20] go to fees
# this fails because the coinbase is trying to claim 1 satoshi too much in fees
#
# b69 - coinbase with extra 10 satoshis, and a tx that gives a 10 satoshi fee
# this succeeds
#
self.log.info("Reject a block trying to claim too much subsidy in the coinbase transaction")
self.move_tip(65)
b68 = self.next_block(68, additional_coinbase_value=10)
tx = self.create_and_sign_transaction(out[20], out[20].vout[0].nValue - 9)
b68 = self.update_block(68, [tx])
self.sync_blocks([b68], False, 16, b'bad-cb-amount', reconnect=True)
self.log.info("Accept a block claiming the correct subsidy in the coinbase transaction")
self.move_tip(65)
b69 = self.next_block(69, additional_coinbase_value=10)
tx = self.create_and_sign_transaction(out[20], out[20].vout[0].nValue - 10)
self.update_block(69, [tx])
self.sync_blocks([b69], True)
self.save_spendable_output()
# Test spending the outpoint of a non-existent transaction
#
# -> b53 (14) -> b55 (15) -> b57 (16) -> b60 (17) -> b64 (18) -> b65 (19) -> b69 (20)
# \-> b70 (21)
#
self.log.info("Reject a block containing a transaction spending from a non-existent input")
self.move_tip(69)
b70 = self.next_block(70, spend=out[21])
bogus_tx = CTransaction()
bogus_tx.sha256 = uint256_from_str(b"23c70ed7c0506e9178fc1a987f40a33946d4ad4c962b5ae3a52546da53af0c5c")
tx = CTransaction()
tx.vin.append(CTxIn(COutPoint(bogus_tx.sha256, 0), b"", 0xffffffff))
tx.vout.append(CTxOut(1, b""))
b70 = self.update_block(70, [tx])
self.sync_blocks([b70], False, 16, b'bad-txns-inputs-missingorspent', reconnect=True)
# Test accepting an invalid block which has the same hash as a valid one (via merkle tree tricks)
#
# -> b53 (14) -> b55 (15) -> b57 (16) -> b60 (17) -> b64 (18) -> b65 (19) -> b69 (20) -> b72 (21)
# \-> b71 (21)
#
# b72 is a good block.
# b71 is a copy of 72, but re-adds one of its transactions. However, it has the same hash as b72.
self.log.info("Reject a block containing a duplicate transaction but with the same Merkle root (Merkle tree malleability")
self.move_tip(69)
b72 = self.next_block(72)
tx1 = self.create_and_sign_transaction(out[21], 2)
tx2 = self.create_and_sign_transaction(tx1, 1)
b72 = self.update_block(72, [tx1, tx2]) # now tip is 72
b71 = copy.deepcopy(b72)
b71.vtx.append(tx2) # add duplicate tx2
self.block_heights[b71.sha256] = self.block_heights[b69.sha256] + 1 # b71 builds off b69
self.blocks[71] = b71
assert_equal(len(b71.vtx), 4)
assert_equal(len(b72.vtx), 3)
assert_equal(b72.sha256, b71.sha256)
self.move_tip(71)
self.sync_blocks([b71], False, 16, b'bad-txns-duplicate', reconnect=True)
self.move_tip(72)
self.sync_blocks([b72], True)
self.save_spendable_output()
# Test some invalid scripts and MAX_BLOCK_SIGOPS
#
# -> b55 (15) -> b57 (16) -> b60 (17) -> b64 (18) -> b65 (19) -> b69 (20) -> b72 (21)
# \-> b** (22)
#
# b73 - tx with excessive sigops that are placed after an excessively large script element.
# The purpose of the test is to make sure those sigops are counted.
#
# script is a bytearray of size 20,526
#
# bytearray[0-19,998] : OP_CHECKSIG
# bytearray[19,999] : OP_PUSHDATA4
# bytearray[20,000-20,003]: 521 (max_script_element_size+1, in little-endian format)
# bytearray[20,004-20,525]: unread data (script_element)
# bytearray[20,526] : OP_CHECKSIG (this puts us over the limit)
self.log.info("Reject a block containing too many sigops after a large script element")
self.move_tip(72)
b73 = self.next_block(73)
size = MAX_BLOCK_SIGOPS - 1 + MAX_SCRIPT_ELEMENT_SIZE + 1 + 5 + 1
a = bytearray([OP_CHECKSIG] * size)
a[MAX_BLOCK_SIGOPS - 1] = int("4e", 16) # OP_PUSHDATA4
element_size = MAX_SCRIPT_ELEMENT_SIZE + 1
a[MAX_BLOCK_SIGOPS] = element_size % 256
a[MAX_BLOCK_SIGOPS + 1] = element_size // 256
a[MAX_BLOCK_SIGOPS + 2] = 0
a[MAX_BLOCK_SIGOPS + 3] = 0
tx = self.create_and_sign_transaction(out[22], 1, CScript(a))
b73 = self.update_block(73, [tx])
assert_equal(get_legacy_sigopcount_block(b73), MAX_BLOCK_SIGOPS + 1)
self.sync_blocks([b73], False, 16, b'bad-blk-sigops', reconnect=True)
# b74/75 - if we push an invalid script element, all prevous sigops are counted,
# but sigops after the element are not counted.
#
# The invalid script element is that the push_data indicates that
# there will be a large amount of data (0xffffff bytes), but we only
# provide a much smaller number. These bytes are CHECKSIGS so they would
# cause b75 to fail for excessive sigops, if those bytes were counted.
#
# b74 fails because we put MAX_BLOCK_SIGOPS+1 before the element
# b75 succeeds because we put MAX_BLOCK_SIGOPS before the element
self.log.info("Check sigops are counted correctly after an invalid script element")
self.move_tip(72)
b74 = self.next_block(74)
size = MAX_BLOCK_SIGOPS - 1 + MAX_SCRIPT_ELEMENT_SIZE + 42 # total = 20,561
a = bytearray([OP_CHECKSIG] * size)
a[MAX_BLOCK_SIGOPS] = 0x4e
a[MAX_BLOCK_SIGOPS + 1] = 0xfe
a[MAX_BLOCK_SIGOPS + 2] = 0xff
a[MAX_BLOCK_SIGOPS + 3] = 0xff
a[MAX_BLOCK_SIGOPS + 4] = 0xff
tx = self.create_and_sign_transaction(out[22], 1, CScript(a))
b74 = self.update_block(74, [tx])
self.sync_blocks([b74], False, 16, b'bad-blk-sigops', reconnect=True)
self.move_tip(72)
b75 = self.next_block(75)
size = MAX_BLOCK_SIGOPS - 1 + MAX_SCRIPT_ELEMENT_SIZE + 42
a = bytearray([OP_CHECKSIG] * size)
a[MAX_BLOCK_SIGOPS - 1] = 0x4e
a[MAX_BLOCK_SIGOPS] = 0xff
a[MAX_BLOCK_SIGOPS + 1] = 0xff
a[MAX_BLOCK_SIGOPS + 2] = 0xff
a[MAX_BLOCK_SIGOPS + 3] = 0xff
tx = self.create_and_sign_transaction(out[22], 1, CScript(a))
b75 = self.update_block(75, [tx])
self.sync_blocks([b75], True)
self.save_spendable_output()
# Check that if we push an element filled with CHECKSIGs, they are not counted
self.move_tip(75)
b76 = self.next_block(76)
size = MAX_BLOCK_SIGOPS - 1 + MAX_SCRIPT_ELEMENT_SIZE + 1 + 5
a = bytearray([OP_CHECKSIG] * size)
a[MAX_BLOCK_SIGOPS - 1] = 0x4e # PUSHDATA4, but leave the following bytes as just checksigs
tx = self.create_and_sign_transaction(out[23], 1, CScript(a))
b76 = self.update_block(76, [tx])
self.sync_blocks([b76], True)
self.save_spendable_output()
# Test transaction resurrection
#
# -> b77 (24) -> b78 (25) -> b79 (26)
# \-> b80 (25) -> b81 (26) -> b82 (27)
#
# b78 creates a tx, which is spent in b79. After b82, both should be in mempool
#
# The tx'es must be unsigned and pass the node's mempool policy. It is unsigned for the
# rather obscure reason that the Python signature code does not distinguish between
# Low-S and High-S values (whereas the bitcoin code has custom code which does so);
# as a result of which, the odds are 50% that the python code will use the right
# value and the transaction will be accepted into the mempool. Until we modify the
# test framework to support low-S signing, we are out of luck.
#
# To get around this issue, we construct transactions which are not signed and which
# spend to OP_TRUE. If the standard-ness rules change, this test would need to be
# updated. (Perhaps to spend to a P2SH OP_TRUE script)
self.log.info("Test transaction resurrection during a re-org")
self.move_tip(76)
b77 = self.next_block(77)
tx77 = self.create_and_sign_transaction(out[24], 10 * COIN)
b77 = self.update_block(77, [tx77])
self.sync_blocks([b77], True)
self.save_spendable_output()
b78 = self.next_block(78)
tx78 = self.create_tx(tx77, 0, 9 * COIN)
b78 = self.update_block(78, [tx78])
self.sync_blocks([b78], True)
b79 = self.next_block(79)
tx79 = self.create_tx(tx78, 0, 8 * COIN)
b79 = self.update_block(79, [tx79])
self.sync_blocks([b79], True)
# mempool should be empty
assert_equal(len(self.nodes[0].getrawmempool()), 0)
self.move_tip(77)
b80 = self.next_block(80, spend=out[25])
self.sync_blocks([b80], False, request_block=False)
self.save_spendable_output()
b81 = self.next_block(81, spend=out[26])
self.sync_blocks([b81], False, request_block=False) # other chain is same length
self.save_spendable_output()
b82 = self.next_block(82, spend=out[27])
self.sync_blocks([b82], True) # now this chain is longer, triggers re-org
self.save_spendable_output()
# now check that tx78 and tx79 have been put back into the peer's mempool
mempool = self.nodes[0].getrawmempool()
assert_equal(len(mempool), 2)
assert(tx78.hash in mempool)
assert(tx79.hash in mempool)
# Test invalid opcodes in dead execution paths.
#
# -> b81 (26) -> b82 (27) -> b83 (28)
#
self.log.info("Accept a block with invalid opcodes in dead execution paths")
b83 = self.next_block(83)
op_codes = [OP_IF, OP_INVALIDOPCODE, OP_ELSE, OP_TRUE, OP_ENDIF]
script = CScript(op_codes)
tx1 = self.create_and_sign_transaction(out[28], out[28].vout[0].nValue, script)
tx2 = self.create_and_sign_transaction(tx1, 0, CScript([OP_TRUE]))
tx2.vin[0].scriptSig = CScript([OP_FALSE])
tx2.rehash()
b83 = self.update_block(83, [tx1, tx2])
self.sync_blocks([b83], True)
self.save_spendable_output()
# Reorg on/off blocks that have OP_RETURN in them (and try to spend them)
#
# -> b81 (26) -> b82 (27) -> b83 (28) -> b84 (29) -> b87 (30) -> b88 (31)
# \-> b85 (29) -> b86 (30) \-> b89a (32)
#
self.log.info("Test re-orging blocks with OP_RETURN in them")
b84 = self.next_block(84)
tx1 = self.create_tx(out[29], 0, 0, CScript([OP_RETURN]))
tx1.vout.append(CTxOut(0, CScript([OP_TRUE])))
tx1.vout.append(CTxOut(0, CScript([OP_TRUE])))
tx1.vout.append(CTxOut(0, CScript([OP_TRUE])))
tx1.vout.append(CTxOut(0, CScript([OP_TRUE])))
tx1.calc_sha256()
self.sign_tx(tx1, out[29])
tx1.rehash()
tx2 = self.create_tx(tx1, 1, 0, CScript([OP_RETURN]))
tx2.vout.append(CTxOut(0, CScript([OP_RETURN])))
tx3 = self.create_tx(tx1, 2, 0, CScript([OP_RETURN]))
tx3.vout.append(CTxOut(0, CScript([OP_TRUE])))
tx4 = self.create_tx(tx1, 3, 0, CScript([OP_TRUE]))
tx4.vout.append(CTxOut(0, CScript([OP_RETURN])))
tx5 = self.create_tx(tx1, 4, 0, CScript([OP_RETURN]))
b84 = self.update_block(84, [tx1, tx2, tx3, tx4, tx5])
self.sync_blocks([b84], True)
self.save_spendable_output()
self.move_tip(83)
b85 = self.next_block(85, spend=out[29])
self.sync_blocks([b85], False) # other chain is same length
b86 = self.next_block(86, spend=out[30])
self.sync_blocks([b86], True)
self.move_tip(84)
b87 = self.next_block(87, spend=out[30])
self.sync_blocks([b87], False) # other chain is same length
self.save_spendable_output()
b88 = self.next_block(88, spend=out[31])
self.sync_blocks([b88], True)
self.save_spendable_output()
# trying to spend the OP_RETURN output is rejected
b89a = self.next_block("89a", spend=out[32])
tx = self.create_tx(tx1, 0, 0, CScript([OP_TRUE]))
b89a = self.update_block("89a", [tx])
self.sync_blocks([b89a], False, 16, b'bad-txns-inputs-missingorspent', reconnect=True)
self.log.info("Test a re-org of one week's worth of blocks (1088 blocks)")
self.move_tip(88)
LARGE_REORG_SIZE = 1088
blocks = []
spend = out[32]
for i in range(89, LARGE_REORG_SIZE + 89):
b = self.next_block(i, spend)
tx = CTransaction()
script_length = MAX_BLOCK_BASE_SIZE - len(b.serialize()) - 69
script_output = CScript([b'\x00' * script_length])
tx.vout.append(CTxOut(0, script_output))
tx.vin.append(CTxIn(COutPoint(b.vtx[1].sha256, 0)))
b = self.update_block(i, [tx])
assert_equal(len(b.serialize()), MAX_BLOCK_BASE_SIZE)
blocks.append(b)
self.save_spendable_output()
spend = self.get_spendable_output()
self.sync_blocks(blocks, True, timeout=180)
chain1_tip = i
# now create alt chain of same length
self.move_tip(88)
blocks2 = []
for i in range(89, LARGE_REORG_SIZE + 89):
blocks2.append(self.next_block("alt" + str(i)))
self.sync_blocks(blocks2, False, request_block=False)
# extend alt chain to trigger re-org
block = self.next_block("alt" + str(chain1_tip + 1))
self.sync_blocks([block], True, timeout=180)
# ... and re-org back to the first chain
self.move_tip(chain1_tip)
block = self.next_block(chain1_tip + 1)
self.sync_blocks([block], False, request_block=False)
block = self.next_block(chain1_tip + 2)
self.sync_blocks([block], True, timeout=180)
# Helper methods
################
def add_transactions_to_block(self, block, tx_list):
[tx.rehash() for tx in tx_list]
block.vtx.extend(tx_list)
# this is a little handier to use than the version in blocktools.py
def create_tx(self, spend_tx, n, value, script=CScript([OP_TRUE, OP_DROP] * 15 + [OP_TRUE])):
return create_tx_with_script(spend_tx, n, amount=value, script_pub_key=script)
# sign a transaction, using the key we know about
# this signs input 0 in tx, which is assumed to be spending output n in spend_tx
def sign_tx(self, tx, spend_tx):
scriptPubKey = bytearray(spend_tx.vout[0].scriptPubKey)
if (scriptPubKey[0] == OP_TRUE): # an anyone-can-spend
tx.vin[0].scriptSig = CScript()
return
(sighash, err) = SignatureHash(spend_tx.vout[0].scriptPubKey, tx, 0, SIGHASH_ALL)
tx.vin[0].scriptSig = CScript([self.coinbase_key.sign(sighash) + bytes(bytearray([SIGHASH_ALL]))])
def create_and_sign_transaction(self, spend_tx, value, script=CScript([OP_TRUE])):
tx = self.create_tx(spend_tx, 0, value, script)
self.sign_tx(tx, spend_tx)
tx.rehash()
return tx
def next_block(self, number, spend=None, additional_coinbase_value=0, script=CScript([OP_TRUE]), solve=True):
if self.tip is None:
base_block_hash = self.genesis_hash
block_time = int(time.time()) + 1
else:
base_block_hash = self.tip.sha256
block_time = self.tip.nTime + 1
# First create the coinbase
height = self.block_heights[base_block_hash] + 1
coinbase = create_coinbase(height, self.coinbase_pubkey)
coinbase.vout[0].nValue += additional_coinbase_value
coinbase.rehash()
if spend is None:
block = create_block(base_block_hash, coinbase, block_time)
else:
coinbase.vout[0].nValue += spend.vout[0].nValue - 1 # all but one satoshi to fees
coinbase.rehash()
block = create_block(base_block_hash, coinbase, block_time)
tx = self.create_tx(spend, 0, 1, script) # spend 1 satoshi
self.sign_tx(tx, spend)
self.add_transactions_to_block(block, [tx])
block.hashMerkleRoot = block.calc_merkle_root()
if solve:
block.solve()
self.tip = block
self.block_heights[block.sha256] = height
assert number not in self.blocks
self.blocks[number] = block
return block
# save the current tip so it can be spent by a later block
def save_spendable_output(self):
self.log.debug("saving spendable output %s" % self.tip.vtx[0])
self.spendable_outputs.append(self.tip)
# get an output that we previously marked as spendable
def get_spendable_output(self):
self.log.debug("getting spendable output %s" % self.spendable_outputs[0].vtx[0])
return self.spendable_outputs.pop(0).vtx[0]
# move the tip back to a previous block
def move_tip(self, number):
self.tip = self.blocks[number]
# adds transactions to the block and updates state
def update_block(self, block_number, new_transactions):
block = self.blocks[block_number]
self.add_transactions_to_block(block, new_transactions)
old_sha256 = block.sha256
block.hashMerkleRoot = block.calc_merkle_root()
block.solve()
# Update the internal state just like in next_block
self.tip = block
if block.sha256 != old_sha256:
self.block_heights[block.sha256] = self.block_heights[old_sha256]
del self.block_heights[old_sha256]
self.blocks[block_number] = block
return block
def bootstrap_p2p(self):
"""Add a P2P connection to the node.
Helper to connect and wait for version handshake."""
self.nodes[0].add_p2p_connection(P2PDataStore())
# We need to wait for the initial getheaders from the peer before we
# start populating our blockstore. If we don't, then we may run ahead
# to the next subtest before we receive the getheaders. We'd then send
# an INV for the next block and receive two getheaders - one for the
# IBD and one for the INV. We'd respond to both and could get
# unexpectedly disconnected if the DoS score for that error is 50.
self.nodes[0].p2p.wait_for_getheaders(timeout=5)
def reconnect_p2p(self):
"""Tear down and bootstrap the P2P connection to the node.
The node gets disconnected several times in this test. This helper
method reconnects the p2p and restarts the network thread."""
self.nodes[0].disconnect_p2ps()
self.bootstrap_p2p()
def sync_blocks(self, blocks, success=True, reject_code=None, reject_reason=None, request_block=True, reconnect=False, timeout=60):
"""Sends blocks to test node. Syncs and verifies that tip has advanced to most recent block.
Call with success = False if the tip shouldn't advance to the most recent block."""
self.nodes[0].p2p.send_blocks_and_test(blocks, self.nodes[0], success=success, reject_code=reject_code, reject_reason=reject_reason, request_block=request_block, timeout=timeout)
if reconnect:
self.reconnect_p2p()
if __name__ == '__main__':
FullBlockTest().main()
| Bushstar/UFO-Project | test/functional/feature_block.py | Python | mit | 60,904 |
@extends("layout")
@section("content")
<script type="text/javascript" src="{{ URL("js/interactive.js") }}">
</script>
<section id="wrapper">
@if ($imagenes->isEmpty())
<section id="photos-empty">
<p class="center">
Todavía no hay imágenes
</p>
</section>
@else
<section id="photos-content">
@foreach ($imagenes as $imagen)
<figure>
<a href="{{ URL::to("/picture/".$imagen->id) }}">
<img src="{{ URL::to($imagen->ruta) }}" alt="{{ $imagen->titulo }}" title="{{ $imagen->titulo }}">
</a>
</figure>
@endforeach
</section>
@endif
<section id="info-wrapper">
@if (Session::has("aviso"))
<section id="message">
<label class="center">
{{ Session::get("aviso") }}
</label>
</section>
@endif
<section id="user">
<figure>
<img src="{{ URL::to($usuario->imagen) }}" alt="{{ $usuario->nombre }}">
</figure>
<a href="{{ URL::to("/user/".$usuario->nick) }}">
{{ $usuario->nombre }}
</a>
<p>
{{ '@'.$usuario->nick }}
</p>
@if (Auth::check() && Auth::user()->nick == $usuario->nick)
<a href="{{ URL::to("/alter") }}">
Modificar cuenta
</a>
@endif
</section>
@if (!$categorias->isEmpty())
<section id="categories">
<h2 class="center last">
Categorías
</h2>
@foreach ($categorias as $categoria)
<a href="{{ URL::to("category/".$categoria->id) }}">
{{ $categoria->nombre }}
</a>
@endforeach
</section>
@else
@if (Auth::check() && Auth::user()->nick == $usuario->nick)
<section id="categories">
<h2 class="center last">
Categorías
</h2>
<p class="center">
No has creado ninguna categoría.
</p>
</section>
@endif
@endif
@if (Auth::check() && Auth::user()->nick == $usuario->nick)
<section class="manage">
<button type="button" class="btn-default profile" id="insert">
Crear categoría
</button>
<form class="form-default" action="{{ URL::to("/insert-category") }}" method="post" id="insert-form">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<label for="category">
Nombre
</label>
<input type="text" class="inp-default last" id="category" name="category">
<button type="button" class="btn-default" id="insert-cancel">
Cerrar
</button>
<button type="submit" class="btn-primary" id="insert-category">
Crear categoría
</button>
</form>
</section>
<section class="manage">
<button type="button" class="btn-default profile" id="upload">
Subir imagen
</button>
<form class="form-default" action="{{ URL::to("/upload-picture") }}" method="post" id="upload-form" enctype="multipart/form-data">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<button type="button" class="btn-default" id="upload-file">
Elegir imagen
</button>
<label>
Tamaño máximo: 30 MB
</label>
<input type="file" id="file" name="file">
<label for="name">
Título
</label>
<input type="text" class="inp-default last" id="name" name="name">
<button type="button" class="btn-default" id="upload-cancel">
Cerrar
</button>
<button type="submit" class="btn-primary" id="upload-image">
Subir imagen
</button>
</form>
</section>
<section class="manage">
<button type="button" class="btn-default profile" id="delete">
Darme de baja
</button>
<form class="form-default" action="{{ URL::to("/delete-user") }}" method="post" id="delete-form">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<label>
Esta acción eliminará tu cuenta y tus datos de Piclike
</label>
<button type="button" class="btn-default" id="delete-cancel">
Cerrar
</button>
<button type="submit" class="btn-primary">
Darme de baja
</button>
</form>
</section>
@endif
</section>
</section>
@stop | iamas92/piclike | resources/views/user.blade.php | PHP | mit | 5,037 |
<?php
namespace Zakharovvi\HumansTxtBundle\Tests\Renderer;
use Zakharovvi\HumansTxtBundle\Tests\Filesystem;
use Zakharovvi\HumansTxtBundle\Renderer\TwigRenderer;
use Zakharovvi\HumansTxtBundle\Authors\Author;
/**
* @author Vitaliy Zakharov <[email protected]>
*/
class TwigRendererTest extends \PHPUnit_Framework_TestCase
{
/**
* @var \PHPUnit_Framework_MockObject_MockObject
*/
protected $fileLocatorStub;
/**
* @var \Zakharovvi\HumansTxtBundle\Tests\Filesystem
*/
protected $filesystem;
/**
* @var string
*/
protected $workspace;
protected function setUp()
{
$this->fileLocatorStub = $this->getMock('\Symfony\Component\Config\FileLocatorInterface');
$this->filesystem = new Filesystem();
$this->workspace = $this->filesystem->getWorkspace();
}
protected function tearDown()
{
$this->filesystem->clean($this->workspace);
}
/**
* @param string $content
* @return string
*/
protected function initSkeletonFile($content)
{
$realSkeletonFile = $this->workspace.DIRECTORY_SEPARATOR.'humans.txt';
file_put_contents($realSkeletonFile, $content);
$unrealSkeletonFile = '/unrealFile';
$this->fileLocatorStub->expects($this->once())
->method('locate')
->with($unrealSkeletonFile)
->will($this->returnValue($realSkeletonFile));
return $unrealSkeletonFile;
}
public function testFailOnInvalidSkeletonFile()
{
$this->setExpectedException('\InvalidArgumentException');
$nonexistentFile = '/path/to/nonexistent/file';
$this->fileLocatorStub->expects($this->once())
->method('locate')
->with($nonexistentFile)
->will($this->throwException(new \InvalidArgumentException));
new TwigRenderer($this->fileLocatorStub, $nonexistentFile);
}
public function testFailOnInvalidTemplate()
{
$this->setExpectedException('\RuntimeException');
$skeletonFile = $this->initSkeletonFile('{{ nonexistent_variable }}');
$renderer = new TwigRenderer($this->fileLocatorStub, $skeletonFile);
$renderer->render(array());
}
public function testRender()
{
$template = '/* TEAM */
{% for author in authors %}
{{ author.name }}
{{ author.email }}
{% endfor %}
';
$skeletonFile = $this->initSkeletonFile($template);
$renderer = new TwigRenderer($this->fileLocatorStub, $skeletonFile);
$renderedContent = '/* TEAM */
Vitaliy Zakharov
[email protected]
Noreal Name
[email protected]
';
$author1 = new Author('Vitaliy Zakharov');
$author1->setEmail('[email protected]');
$author2 = new Author('Noreal Name');
$author2->setEmail('[email protected]');
$authors = array($author1,$author2);
$this->assertEquals($renderedContent,$renderer->render($authors));
}
}
| zakharovvi/ZakharovviHumansTxtBundle | Tests/Renderer/TwigRendererTest.php | PHP | mit | 2,993 |
package pl.edu.wat.tim.webstore.service;
import pl.edu.wat.tim.webstore.model.UploadFile;
/**
* Created by Piotr on 15.06.2017.
*/
public interface UploadFileService {
void save(UploadFile uploadFile);
UploadFile getUploadFile(String name);
}
| PiotrJakubiak/GymNotes | src/main/java/pl/edu/wat/tim/webstore/service/UploadFileService.java | Java | mit | 256 |
'use strict';
angular.module('mgcrea.ngStrap.dropdown', ['mgcrea.ngStrap.tooltip'])
.provider('$dropdown', function() {
var defaults = this.defaults = {
animation: 'am-fade',
prefixClass: 'dropdown',
prefixEvent: 'dropdown',
placement: 'bottom-left',
template: 'dropdown/dropdown.tpl.html',
trigger: 'click',
container: false,
keyboard: true,
html: false,
delay: 0
};
this.$get = function($window, $rootScope, $tooltip, $timeout) {
var bodyEl = angular.element($window.document.body);
var matchesSelector = Element.prototype.matchesSelector || Element.prototype.webkitMatchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.oMatchesSelector;
function DropdownFactory(element, config) {
var $dropdown = {};
// Common vars
var options = angular.extend({}, defaults, config);
var scope = $dropdown.$scope = options.scope && options.scope.$new() || $rootScope.$new();
$dropdown = $tooltip(element, options);
var parentEl = element.parent();
// Protected methods
$dropdown.$onKeyDown = function(evt) {
if (!/(38|40)/.test(evt.keyCode)) return;
evt.preventDefault();
evt.stopPropagation();
// Retrieve focused index
var items = angular.element($dropdown.$element[0].querySelectorAll('li:not(.divider) a'));
if(!items.length) return;
var index;
angular.forEach(items, function(el, i) {
if(matchesSelector && matchesSelector.call(el, ':focus')) index = i;
});
// Navigate with keyboard
if(evt.keyCode === 38 && index > 0) index--;
else if(evt.keyCode === 40 && index < items.length - 1) index++;
else if(angular.isUndefined(index)) index = 0;
items.eq(index)[0].focus();
};
// Overrides
var show = $dropdown.show;
$dropdown.show = function() {
show();
// use timeout to hookup the events to prevent
// event bubbling from being processed imediately.
$timeout(function() {
options.keyboard && $dropdown.$element.on('keydown', $dropdown.$onKeyDown);
bodyEl.on('click', onBodyClick);
}, 0, false);
parentEl.hasClass('dropdown') && parentEl.addClass('open');
};
var hide = $dropdown.hide;
$dropdown.hide = function() {
if(!$dropdown.$isShown) return;
options.keyboard && $dropdown.$element.off('keydown', $dropdown.$onKeyDown);
bodyEl.off('click', onBodyClick);
parentEl.hasClass('dropdown') && parentEl.removeClass('open');
hide();
};
var destroy = $dropdown.destroy;
$dropdown.destroy = function() {
bodyEl.off('click', onBodyClick);
destroy();
};
// Private functions
function onBodyClick(evt) {
if(evt.target === element[0]) return;
return evt.target !== element[0] && $dropdown.hide();
}
return $dropdown;
}
return DropdownFactory;
};
})
.directive('bsDropdown', function($window, $sce, $dropdown) {
return {
restrict: 'EAC',
scope: true,
link: function postLink(scope, element, attr, transclusion) {
// Directive options
var options = {scope: scope};
angular.forEach(['placement', 'container', 'delay', 'trigger', 'keyboard', 'html', 'animation', 'template', 'id'], function(key) {
if(angular.isDefined(attr[key])) options[key] = attr[key];
});
// use string regex match boolean attr falsy values, leave truthy values be
var falseValueRegExp = /^(false|0|)$/i;
angular.forEach(['html', 'container'], function(key) {
if(angular.isDefined(attr[key]) && falseValueRegExp.test(attr[key]))
options[key] = false;
});
// Support scope as an object
attr.bsDropdown && scope.$watch(attr.bsDropdown, function(newValue, oldValue) {
scope.content = newValue;
}, true);
// Visibility binding support
attr.bsShow && scope.$watch(attr.bsShow, function(newValue, oldValue) {
if(!dropdown || !angular.isDefined(newValue)) return;
if(angular.isString(newValue)) newValue = !!newValue.match(/true|,?(dropdown),?/i);
newValue === true ? dropdown.show() : dropdown.hide();
});
// Initialize dropdown
var dropdown = $dropdown(element, options);
// Garbage collection
scope.$on('$destroy', function() {
if (dropdown) dropdown.destroy();
options = null;
dropdown = null;
});
}
};
});
| avizuber/karma-web | app/bower_components/angular-strap/src/dropdown/dropdown.js | JavaScript | mit | 4,859 |
// Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#pragma once
#include "ConversionCore.h" // for ObjectGuid
#include "../RenderCore/Assets/TransformationCommands.h"
#include "../RenderCore/Assets/NascentTransformationMachine.h"
#include "../Utility/Mixins.h"
#include <vector>
namespace Serialization { class NascentBlockSerializer; }
namespace RenderCore { namespace Assets { class NascentTransformationMachine; class RawAnimationCurve; }}
namespace Utility { class OutputStream; }
namespace RenderCore { namespace ColladaConversion
{
class NascentSkeleton;
//
// "NascentAnimationSet" is a set of animations
// and some information to bind these animations to
// a skeleton
//
typedef Assets::TransformationParameterSet::Type::Enum AnimSamplerType;
class NascentAnimationSet : noncopyable
{
public:
///// A N I M A T I O N D R I V E R /////
class AnimationDriver
{
public:
unsigned _curveIndex;
unsigned _parameterIndex;
unsigned _samplerOffset;
AnimSamplerType _samplerType;
AnimationDriver(
unsigned curveIndex,
unsigned parameterIndex,
AnimSamplerType samplerType,
unsigned samplerOffset)
: _curveIndex(curveIndex)
, _parameterIndex(parameterIndex)
, _samplerType(samplerType)
, _samplerOffset(samplerOffset) {}
void Serialize(Serialization::NascentBlockSerializer& serializer) const;
};
///// C O N S T A N T D R I V E R /////
class ConstantDriver
{
public:
unsigned _dataOffset;
unsigned _parameterIndex;
unsigned _samplerOffset;
AnimSamplerType _samplerType;
ConstantDriver(
unsigned dataOffset,
unsigned parameterIndex,
AnimSamplerType samplerType,
unsigned samplerOffset)
: _dataOffset(dataOffset)
, _parameterIndex(parameterIndex)
, _samplerType(samplerType)
, _samplerOffset(samplerOffset) {}
void Serialize(Serialization::NascentBlockSerializer& serializer) const;
};
void AddAnimationDriver(
const std::string& parameterName,
unsigned curveId,
AnimSamplerType samplerType,
unsigned samplerOffset);
void AddConstantDriver(
const std::string& parameterName,
const void* constantValue,
AnimSamplerType samplerType,
unsigned samplerOffset);
bool HasAnimationDriver(const std::string& parameterName) const;
void MergeAnimation(
const NascentAnimationSet& animation, const char name[],
const std::vector<Assets::RawAnimationCurve>& sourceCurves,
std::vector<Assets::RawAnimationCurve>& destinationCurves);
NascentAnimationSet();
~NascentAnimationSet();
NascentAnimationSet(NascentAnimationSet&& moveFrom);
NascentAnimationSet& operator=(NascentAnimationSet&& moveFrom);
void Serialize(Serialization::NascentBlockSerializer& serializer) const;
private:
std::vector<AnimationDriver> _animationDrivers;
std::vector<ConstantDriver> _constantDrivers;
class Animation;
std::vector<Animation> _animations;
std::vector<std::string> _parameterInterfaceDefinition;
std::vector<uint8> _constantData;
};
AnimSamplerType SamplerWidthToType(unsigned samplerWidth);
size_t SamplerSize(AnimSamplerType samplerType);
//
// "NascentSkeleton" represents the skeleton information for an
// object. Usually this is mostly just the transformation machine.
// But we also need some binding information for binding the output
// matrices of the transformation machine to joints.
//
class NascentSkeleton : noncopyable
{
public:
using NascentTransformationMachine = RenderCore::Assets::NascentTransformationMachine;
NascentTransformationMachine& GetTransformationMachine() { return _transformationMachine; }
const NascentTransformationMachine& GetTransformationMachine() const { return _transformationMachine; }
void Serialize(Serialization::NascentBlockSerializer& serializer) const;
NascentSkeleton();
~NascentSkeleton();
NascentSkeleton(NascentSkeleton&& moveFrom);
NascentSkeleton& operator=(NascentSkeleton&& moveFrom);
private:
NascentTransformationMachine _transformationMachine;
};
//
// "Model Command Stream" is the list of model elements
// from a single export. Usually it will be mostly geometry
// and skin controller elements.
//
class NascentModelCommandStream : noncopyable
{
public:
typedef uint64 MaterialGuid;
static const MaterialGuid s_materialGuid_Invalid = ~0x0ull;
///// G E O M E T R Y I N S T A N C E /////
class GeometryInstance
{
public:
unsigned _id;
unsigned _localToWorldId;
std::vector<MaterialGuid> _materials;
unsigned _levelOfDetail;
GeometryInstance(
unsigned id, unsigned localToWorldId,
std::vector<MaterialGuid>&& materials, unsigned levelOfDetail)
: _id(id), _localToWorldId(localToWorldId)
, _materials(std::forward<std::vector<MaterialGuid>>(materials))
, _levelOfDetail(levelOfDetail) {}
void Serialize(Serialization::NascentBlockSerializer& serializer) const;
};
///// S K I N C O N T R O L L E R I N S T A N C E /////
class SkinControllerInstance
{
public:
unsigned _id;
unsigned _localToWorldId;
std::vector<MaterialGuid> _materials;
unsigned _levelOfDetail;
SkinControllerInstance(
unsigned id, unsigned localToWorldId,
std::vector<MaterialGuid>&& materials, unsigned levelOfDetail)
: _id(id), _localToWorldId(localToWorldId), _materials(std::forward<std::vector<MaterialGuid>>(materials))
, _levelOfDetail(levelOfDetail) {}
void Serialize(Serialization::NascentBlockSerializer& serializer) const;
};
///// C A M E R A I N S T A N C E /////
class CameraInstance
{
public:
unsigned _localToWorldId;
CameraInstance(unsigned localToWorldId) : _localToWorldId(localToWorldId) {}
};
void Add(GeometryInstance&& geoInstance);
void Add(CameraInstance&& geoInstance);
void Add(SkinControllerInstance&& geoInstance);
bool IsEmpty() const { return _geometryInstances.empty() && _cameraInstances.empty() && _skinControllerInstances.empty(); }
void Serialize(Serialization::NascentBlockSerializer& serializer) const;
void RegisterTransformationMachineOutput(const std::string& bindingName, ObjectGuid id, unsigned transformMarker);
unsigned FindTransformationMachineOutput(ObjectGuid nodeId) const;
std::vector<uint64> GetInputInterface() const;
unsigned GetMaxLOD() const;
NascentModelCommandStream();
~NascentModelCommandStream();
NascentModelCommandStream(NascentModelCommandStream&& moveFrom);
NascentModelCommandStream& operator=(NascentModelCommandStream&& moveFrom);
std::vector<GeometryInstance> _geometryInstances;
std::vector<CameraInstance> _cameraInstances;
std::vector<SkinControllerInstance> _skinControllerInstances;
friend std::ostream& operator<<(std::ostream&, const NascentModelCommandStream&);
private:
class TransformationMachineOutput;
std::vector<TransformationMachineOutput> _transformationMachineOutputs;
NascentModelCommandStream& operator=(const NascentModelCommandStream& copyFrom) never_throws;
NascentModelCommandStream(const NascentModelCommandStream& copyFrom);
};
}}
| xlgames-inc/XLE | ColladaConversion/NascentCommandStream.h | C | mit | 8,991 |
/*
*
* hocNotification
*
*/
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { compose, setPropTypes } from 'recompose';
import { createStructuredSelector } from 'reselect';
import { selectNotifications } from 'features/common_ui/selectors';
const mapStateToProps = createStructuredSelector({
notifications: selectNotifications(),
});
const sliderPropsType = setPropTypes({
notifications: PropTypes.oneOfType([PropTypes.array, PropTypes.object]).isRequired,
});
const hocNotification = compose(connect(mapStateToProps), sliderPropsType);
export default hocNotification;
| ch-apptitude/goomi | setup/src/universal/features/common_ui/hoc/hocNotification.js | JavaScript | mit | 615 |
<?php return unserialize('a:1:{i:0;O:27:"Doctrine\\ORM\\Mapping\\Column":10:{s:4:"type";s:6:"string";s:6:"length";i:255;s:9:"precision";i:0;s:5:"scale";i:0;s:6:"unique";b:0;s:8:"nullable";b:0;s:4:"name";s:15:"nom_responsable";s:7:"options";a:0:{}s:16:"columnDefinition";N;s:5:"value";N;}}'); | guillaume62/MDL | app/cache/dev/annotations/Lam-MdlBundle-Entity-organisation$nom_responsable.cache.php | PHP | mit | 291 |
#ifndef MYY_DATA_SECTION_H
#define MYY_DATA_SECTION_H 1
#include <stdint.h>
struct data_section_status {
unsigned int allocated;
void * address;
};
struct data_symbol {
uint32_t id;
uint32_t align;
uint32_t size;
uint8_t * name;
uint8_t * data;
};
struct data_section {
struct data_symbol * symbols;
uint32_t stored;
uint32_t next_id;
uint32_t base_address;
uint32_t max_symbols_before_realloc;
};
struct data_section_symbol_added {
unsigned int added;
unsigned int id;
};
struct data_section * generate_data_section();
unsigned int expand_data_symbols_storage_in
(struct data_section * __restrict const data_section);
struct data_section_symbol_added data_section_add
(struct data_section * __restrict const data_section,
unsigned int const alignment,
unsigned int const size,
uint8_t const * __restrict const name,
uint8_t const * __restrict const data);
struct uint32_result {
unsigned int found;
uint32_t value;
};
struct symbol_found {
unsigned int found;
struct data_symbol * address;
};
struct symbol_found get_data_symbol_infos
(struct data_section const * __restrict const data_infos,
uint32_t id);
void exchange_symbols_order
(struct data_section * __restrict const data_section,
unsigned int const id1, unsigned int const id2);
uint32_t write_data_section_content
(struct data_section const * __restrict const symbols,
uint8_t * __restrict const dest);
void delete_data_symbol
(struct data_section * __restrict const data_section,
uint32_t id);
uint32_t data_section_size
(struct data_section const * __restrict const data_section);
#define data_address_func_sig struct data_section const * __restrict const data_section,\
uint32_t const data_id
uint32_t data_address(data_address_func_sig);
uint32_t data_address_upper16(data_address_func_sig);
uint32_t data_address_lower16(data_address_func_sig);
uint32_t data_size(data_address_func_sig);
void update_data_symbol
(struct data_section * __restrict const data_section,
uint32_t const id,
uint32_t const align,
uint32_t const data_size,
uint8_t const * __restrict const name,
uint8_t const * __restrict const data);
void data_section_set_base_address
(struct data_section * __restrict const data_section,
uint32_t const base_address);
#endif
| Miouyouyou/early-assembler-prototype | sections/data.h | C | mit | 2,255 |
<?php
declare(strict_types=1);
/*
* This file is part of the G.L.S.R. Apps package.
*
* (c) Dev-Int Création <[email protected]>.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Core\Infrastructure\Doctrine\Migrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20210502131525 extends AbstractMigration
{
public function getDescription(): string
{
return 'Create the first throw of necessary tables.';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql(
'CREATE TABLE company (' .
'uuid CHAR(36) NOT NULL COMMENT \'(DC2Type:guid)\', ' .
'company_name VARCHAR(255) NOT NULL, ' .
'address VARCHAR(255) NOT NULL, ' .
'zip_code VARCHAR(5) NOT NULL, ' .
'town VARCHAR(255) NOT NULL, ' .
'country VARCHAR(255) NOT NULL, ' .
'phone VARCHAR(14) NOT NULL, ' .
'facsimile VARCHAR(14) DEFAULT NULL, ' .
'email VARCHAR(255) NOT NULL, ' .
'contact_name VARCHAR(255) NOT NULL, ' .
'cellphone VARCHAR(14) NOT NULL, ' .
'slug VARCHAR(255) NOT NULL, ' .
'UNIQUE INDEX UNIQ_4FBF094F1D4E64E8 (company_name), ' .
'UNIQUE INDEX UNIQ_4FBF094F989D9B62 (slug), ' .
'PRIMARY KEY(uuid)' .
') DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'
);
$this->addSql(
'CREATE TABLE settings (' .
'uuid CHAR(36) NOT NULL COMMENT \'(DC2Type:guid)\', ' .
'locale VARCHAR(255) NOT NULL, ' .
'currency VARCHAR(255) NOT NULL, ' .
'PRIMARY KEY(uuid)' .
') DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'
);
$this->addSql(
'CREATE TABLE supplier (' .
'uuid CHAR(36) NOT NULL COMMENT \'(DC2Type:guid)\', ' .
'family_log VARCHAR(255) NOT NULL, ' .
'delay_delivery INT NOT NULL, ' .
'order_days LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', ' .
'active TINYINT(1) NOT NULL, ' .
'company_name VARCHAR(255) NOT NULL, ' .
'address VARCHAR(255) NOT NULL, ' .
'zip_code VARCHAR(5) NOT NULL, ' .
'town VARCHAR(255) NOT NULL, ' .
'country VARCHAR(255) NOT NULL, ' .
'phone VARCHAR(14) NOT NULL, ' .
'facsimile VARCHAR(14) DEFAULT NULL, ' .
'email VARCHAR(255) NOT NULL, ' .
'contact_name VARCHAR(255) NOT NULL, ' .
'cellphone VARCHAR(14) NOT NULL, s' .
'lug VARCHAR(255) NOT NULL, ' .
'UNIQUE INDEX UNIQ_9B2A6C7E1D4E64E8 (company_name), ' .
'UNIQUE INDEX UNIQ_9B2A6C7E989D9B62 (slug), ' .
'PRIMARY KEY(uuid)' .
') DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'
);
$this->addSql(
'CREATE TABLE user (' .
'uuid CHAR(36) NOT NULL COMMENT \'(DC2Type:guid)\', ' .
'username VARCHAR(150) NOT NULL, ' .
'email VARCHAR(255) NOT NULL, ' .
'password VARCHAR(120) NOT NULL, ' .
'roles LONGTEXT NOT NULL COMMENT \'(DC2Type:array)\', ' .
'PRIMARY KEY(uuid)' .
') DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'
);
$this->addSql(
'CREATE TABLE messenger_messages (' .
'id BIGINT AUTO_INCREMENT NOT NULL, ' .
'body LONGTEXT NOT NULL, ' .
'headers LONGTEXT NOT NULL, ' .
'queue_name VARCHAR(190) NOT NULL, ' .
'created_at DATETIME NOT NULL, ' .
'available_at DATETIME NOT NULL, ' .
'delivered_at DATETIME DEFAULT NULL, ' .
'INDEX IDX_75EA56E0FB7336F0 (queue_name), ' .
'INDEX IDX_75EA56E0E3BD61CE (available_at), ' .
'INDEX IDX_75EA56E016BA31DB (delivered_at), ' .
'PRIMARY KEY(id)' .
') DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'
);
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE company');
$this->addSql('DROP TABLE settings');
$this->addSql('DROP TABLE supplier');
$this->addSql('DROP TABLE user');
$this->addSql('DROP TABLE messenger_messages');
}
}
| Dev-Int/glsr | server/src/Core/Infrastructure/Doctrine/Migrations/Version20210502131525.php | PHP | mit | 4,815 |
package com.mybatistemplate.adapter;
import com.mybatistemplate.core.GeneratorIdSqlCallback;
import com.mybatistemplate.core.IdGeneratorType;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.mapping.ResultMap;
/**
* Created by leicheng on 2016/7/12.
*/
public abstract class TemplateExAdapter {
public void insertBatch(MappedStatement ms, ResultMap resultMap, String table, Class entity, IdGeneratorType idGeneratorType, GeneratorIdSqlCallback generatorIdSqlCallback) throws Exception{
}
public void updateBatch(MappedStatement ms, ResultMap resultMap, String table, Class entity) throws Exception{
}
}
| leicheng6563/MybatisTemplate | MybatisTemplate/src/main/java/com/mybatistemplate/adapter/TemplateExAdapter.java | Java | mit | 673 |
<?php
namespace Proxies\__CG__\Mistra\TutoBundle\Entity;
/**
* THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
*/
class User extends \Mistra\TutoBundle\Entity\User implements \Doctrine\ORM\Proxy\Proxy
{
private $_entityPersister;
private $_identifier;
public $__isInitialized__ = false;
public function __construct($entityPersister, $identifier)
{
$this->_entityPersister = $entityPersister;
$this->_identifier = $identifier;
}
/** @private */
public function __load()
{
if (!$this->__isInitialized__ && $this->_entityPersister) {
$this->__isInitialized__ = true;
if (method_exists($this, "__wakeup")) {
// call this after __isInitialized__to avoid infinite recursion
// but before loading to emulate what ClassMetadata::newInstance()
// provides.
$this->__wakeup();
}
if ($this->_entityPersister->load($this->_identifier, $this) === null) {
throw new \Doctrine\ORM\EntityNotFoundException();
}
unset($this->_entityPersister, $this->_identifier);
}
}
/** @private */
public function __isInitialized()
{
return $this->__isInitialized__;
}
public function getId()
{
if ($this->__isInitialized__ === false) {
return (int) $this->_identifier["id"];
}
$this->__load();
return parent::getId();
}
public function setLogin($login)
{
$this->__load();
return parent::setLogin($login);
}
public function getLogin()
{
$this->__load();
return parent::getLogin();
}
public function setPassword($password)
{
$this->__load();
return parent::setPassword($password);
}
public function getPassword()
{
$this->__load();
return parent::getPassword();
}
public function setAccess($access)
{
$this->__load();
return parent::setAccess($access);
}
public function getAccess()
{
$this->__load();
return parent::getAccess();
}
public function __sleep()
{
return array('__isInitialized__', 'id', 'login', 'password', 'access');
}
public function __clone()
{
if (!$this->__isInitialized__ && $this->_entityPersister) {
$this->__isInitialized__ = true;
$class = $this->_entityPersister->getClassMetadata();
$original = $this->_entityPersister->load($this->_identifier);
if ($original === null) {
throw new \Doctrine\ORM\EntityNotFoundException();
}
foreach ($class->reflFields as $field => $reflProperty) {
$reflProperty->setValue($this, $reflProperty->getValue($original));
}
unset($this->_entityPersister, $this->_identifier);
}
}
} | sportelli/mistra_tuto_symfony2 | app/cache/prod/doctrine/orm/Proxies/__CG__MistraTutoBundleEntityUser.php | PHP | mit | 3,004 |
// This contains the module definition factory function, application state,
// events, and the router.
this.jda = {
// break up logical components of code into modules.
module: function()
{
// Internal module cache.
var modules = {};
// Create a new module reference scaffold or load an existing module.
return function(name)
{
// If this module has already been created, return it
if (modules[name]) return modules[name];
// Create a module and save it under this name
return modules[name] = { Views: {} };
};
}(),
// Keep active application instances namespaced under an app object.
app: _.extend({
apiLocation : sessionStorage.getItem("apiUrl"),
currentView : 'list',
resultsPerPage : 100,
init : function(){
// make item collection
this.currentFilter=null;
var Browser = jda.module("browser");
this.resultsView = new Browser.Items.Collections.Views.Results();
this.eventMap = new Browser.Views.EventMap();
this.initCollectionsDrawer();
this.startRouter();
var _this=this;
},
initCollectionsDrawer:function(){
//load my collections drawer
var Browser = jda.module("browser");
this.myCollectionsDrawer = new Browser.Items.Collections.Views.MyCollectionsDrawer();
this.myCollectionsDrawer.getCollectionList();
},
startRouter: function()
{
var _this = this;
// Defining the application router, you can attach sub routers here.
var Router = Backbone.Router.extend({
routes: {
"" : 'search',
":query" : 'search'
},
search : function( query ){
_this.parseURLHash(query);
}
});
this.router = new Router();
Backbone.history.start();
},
queryStringToHash: function (query) {
var query_obj = {};
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
pair[0] = decodeURIComponent(pair[0]);
pair[1] = decodeURIComponent(pair[1]);
// If first entry with this name
if (typeof query_obj[pair[0]] === "undefined") {
query_obj[pair[0]] = pair[1];
// If second entry with this name
} else if (typeof query_obj[pair[0]] === "string") {
var arr = [ query_obj[pair[0]], pair[1] ];
query_obj[pair[0]] = arr;
// If third or later entry with this name
} else {
query_obj[pair[0]].push(pair[1]);
}
}
//parse time slider properties
query_obj.times = {};
if (query_obj.min_date !== null){
query_obj.times.start = query_obj.min_date;
}
if (query_obj.max_date !== null){
query_obj.times.end = query_obj.max_date;
}
return query_obj;
},
parseURLHash : function (query){
var _this=this;
var Browser = jda.module("browser");
//Update Search Object
if (!_.isUndefined(query)){
this.searchObject = this.queryStringToHash(query);
} else {
this.searchObject = {page:1};
}
console.log("searchObject",this.searchObject);
//Update interface
this.updateSearchUI(this.searchObject);
//Load filter if nec, carry out search
if(sessionStorage.getItem('filterType')=='none'||!_.isUndefined(this.filterModel)) {
if (!_.isUndefined(this.searchObject.view_type)) this.switchViewTo(this.searchObject.view_type,true) ;
else this.search(this.searchObject);
}
else{
$('.tab-content').find('.btn-group').hide();
$('#jda-related-tags').hide();
$('#event-button').hide();
if(sessionStorage.getItem('filterType')=='user'){
this.filterType ="user";
this.filterModel = new Browser.Users.Model({id:sessionStorage.getItem('filterId')});
this.filterModel.fetch({
success : function(model, response){
_this.resultsView.userFilter = new Browser.Users.Views.UserPage({model:model});
if (!_.isUndefined(_this.searchObject.view_type)) _this.switchViewTo(_this.searchObject.view_type,true) ;
else _this.search(_this.searchObject);
},
error : function(model, response){
console.log('Failed to fetch the user object.');
}
});
}
else if(sessionStorage.getItem('filterType')=='collection'){
this.filterType ="collection";
this.filterModel = new Browser.Items.Model({id:sessionStorage.getItem('filterId')});
this.filterModel.fetch({
success : function(model, response){
_this.resultsView.collectionFilter = new Browser.Items.Views.CollectionPage({model:model});
if (!_.isUndefined(_this.searchObject.view_type)) _this.switchViewTo(_this.searchObject.view_type,true) ;
else _this.search(_this.searchObject);
},
error : function(model, response){
console.log('Failed to fetch the user object.');
}
});
}
}
},
sort : function(){
this.searchObject.sort = $('#zeega-sort').val();
this.updateURLHash(this.searchObject);
this.search(this.searchObject);
},
parseSearchUI : function(){
var facets = VisualSearch.searchQuery.models;
var obj={};
var tagQuery = "";
var textQuery = "";
_.each( VisualSearch.searchBox.facetViews, function( facet ){
if( facet.model.get('category') != 'tag' && facet.model.get('category') != 'text')
{
facet.model.set({'value': null });
facet.remove();
}
});
_.each(facets, function(facet){
switch ( facet.get('category') )
{
case 'text':
textQuery = (textQuery.length > 0) ? textQuery + " AND " + facet.get('value') : facet.get('value');
textQuery=textQuery.replace(/^#/, '');
break;
case 'tag':
tagQuery = (tagQuery.length > 0) ? tagQuery + " AND " + facet.get('value') : tagQuery + facet.get('value');
tagQuery=tagQuery.replace(/^#/, '');
break;
}
});
obj.q = textQuery;
obj.tags = tagQuery;
obj.view_type = this.currentView;
obj.media_type = $('#zeega-content-type').val();
// remove retweets
if ($("#noRTChk").is(":checked")) {
obj.nq = "RT";
}
obj.sort = $('#zeega-sort').val();
obj.times = this.searchObject.times;
this.searchObject=obj;
this.updateURLHash(obj);
this.search(obj);
},
updateSearchUI : function(obj){
VisualSearch.searchBox.disableFacets();
VisualSearch.searchBox.value('');
VisualSearch.searchBox.flags.allSelected = false;
var tags, text;
if (!_.isUndefined(obj.q)&&obj.q.length>0){
text = obj.q.split(" AND ");
for( var j=0; j<text.length; j++ ){
VisualSearch.searchBox.addFacet('text', text[j], 0);
}
}
//check for tags
if (!_.isUndefined(obj.tags)&&obj.tags.length>0){
tags = obj.tags.split(" AND ");
for(var i=0;i<tags.length;i++)
{
VisualSearch.searchBox.addFacet('tag', tags[i], 0);
}
}
if (!_.isUndefined(obj.media_type)) $('#zeega-content-type').val(obj.media_type);
else $('#zeega-content-type').val("");
if (!_.isUndefined(obj.sort)) $('#zeega-sort').val(obj.sort);
else $('#zeega-sort').val("relevant");
$('#select-wrap-text').text( $('#zeega-content-type option[value=\''+$('#zeega-content-type').val()+'\']').text() );
},
updateURLHash : function(obj){
var hash = '';
if( !_.isUndefined(this.viewType)) hash += 'view_type=' + this.viewType + '&';
if( !_.isUndefined(obj.q) && obj.q.length > 0) hash += 'q=' + obj.q + '&';
if( !_.isUndefined(obj.nq)) hash += 'nq=' + obj.nq + '&';
if( !_.isUndefined(obj.tags) && obj.tags.length > 0) hash += 'tags=' + obj.tags + '&';
if( !_.isUndefined(obj.media_type) )hash += 'media_type='+ obj.media_type + '&';
if( !_.isUndefined(obj.media_after) )hash += 'media_after='+ obj.media_after + '&';
if( !_.isUndefined(obj.media_before) )hash += 'media_before='+ obj.media_before + '&';
if( !_.isUndefined(obj.sort) ) hash += 'sort='+ obj.sort + '&';
if( !_.isUndefined(obj.mapBounds) ) hash += 'map_bounds='+ encodeURIComponent(obj.mapBounds) + '&';
if( !_.isUndefined(obj.times)&& !_.isNull(obj.times) )
{
if( !_.isUndefined(obj.times.start) ) hash += 'min_date='+ obj.times.start + '&';
if( !_.isUndefined(obj.times.end) ) hash += 'max_date='+ obj.times.end + '&';
}
jda.app.router.navigate(hash,{trigger:false});
},
search : function(obj){
if(!_.isUndefined(this.filterType)){
if(this.filterType=="user"){
obj.user= sessionStorage.getItem('filterId');
}
else if(this.filterType=="collection"){
obj.itemId = sessionStorage.getItem('filterId');
}
}
this.resultsView.search( obj,true );
if (this.currentView == 'event') this.eventMap.load();
},
switchViewTo : function( view , refresh ){
var _this=this;
if( view != this.currentView&&(view=="event"||this.currentView=="event"))refresh = true;
this.currentView = view;
$('.tab-pane').removeClass('active');
$('#zeega-'+view+'-view').addClass('active');
switch( this.currentView )
{
case 'list':
this.showListView(refresh);
break;
case 'event':
this.showEventView(refresh);
break;
case 'thumb':
this.showThumbnailView(refresh);
break;
default:
console.log('view type not recognized');
}
},
showListView : function(refresh){
$('#zeega-view-buttons .btn').removeClass('active');
$('#list-button').addClass('active');
$('#jda-right').show();
$('#event-time-slider').hide();
$('#zeega-results-count').removeClass('zeega-results-count-event');
$('#zeega-results-count').css('left', 0);
$('#zeega-results-count').css('z-index', 0);
$('#zeega-results-count-text-with-date').hide();
if(this.resultsView.updated)
{
this.resultsView.render();
}
this.viewType='list';
if(refresh){
this.searchObject.times=null;
this.search(this.searchObject);
}
this.updateURLHash(this.searchObject);
},
showThumbnailView : function(refresh){
$('#zeega-view-buttons .btn').removeClass('active');
$('#thumb-button').addClass('active');
$('#jda-right').show();
$('#event-time-slider').hide();
$('#zeega-results-count').removeClass('zeega-results-count-event');
$('#zeega-results-count').css('left', 0);
$('#zeega-results-count').css('z-index', 0);
$('#zeega-results-count-text-with-date').hide();
if(this.resultsView.updated)
{
this.resultsView.render();
}
this.viewType='thumb';
if(refresh){
this.searchObject.times=null;
this.search(this.searchObject);
}
this.updateURLHash(this.searchObject);
},
showEventView : function(refresh){
$('#zeega-view-buttons .btn').removeClass('active');
$('#event-button').addClass('active');
$('#jda-right').hide();
$('#event-time-slider').show();
$('#zeega-results-count').addClass('zeega-results-count-event');
$('#zeega-results-count').offset( { top:$('#zeega-results-count').offset().top, left:10 } );
$('#zeega-results-count').css('z-index', 1000);
$('#zeega-results-count-text-with-date').show();
/*
var removedFilters = "";
var _this = this;
_.each( VisualSearch.searchBox.facetViews, function( facet ){
if( facet.model.get('category') == 'tag' || facet.model.get('category') == 'collection' ||
facet.model.get('category') == 'user');
{
facet.model.set({'value': null });
facet.remove();
removedFilters += facet.model.get('category') + ": " + facet.model.get('value') + " ";
}
if( facet.model.get('category') == 'tag'){
_this.resultsView.clearTags();
}
if( facet.model.get('category') == 'collection' ||
facet.model.get('category') == 'user') {
_this.removeFilter(facet.model.get('category'),_this.resultsView.getSearch());
}
});
if (removedFilters.length > 0){
$('#removed-tag-name').text(removedFilters);
$('#remove-tag-alert').show('slow');
setTimeout(function() {
$('#remove-tag-alert').hide('slow');
}, 5000);
}
*/
$("#zeega-event-view").width($(window).width());
//this is the hacky way to update the search count properly on the map
$("#zeega-results-count").fadeTo(100,0);
this.viewType='event';
//this.parseSearchUI();
this.updateURLHash(this.searchObject);
this.search(this.searchObject);
},
setEventViewTimePlace : function(obj){
this.eventMap.updateTimePlace(obj);
},
clearSearchFilters : function(doSearch){
$('#zeega-content-type').val("all");
$('#select-wrap-text').text( $('#zeega-content-type option[value=\''+$('#zeega-content-type').val()+'\']').text() );
//remove search box values
VisualSearch.searchBox.disableFacets();
VisualSearch.searchBox.value('');
VisualSearch.searchBox.flags.allSelected = false;
if(doSearch) this.search({ page:1});
},
goToCollection: function (id){
window.location=$('#zeega-main-content').data('collection-link')+"/"+id;
},
goToUser: function (id){
window.location=$('#zeega-main-content').data('user-link')+"/"+id;
},
/***************************************************************************
- called when user authentication has occured
***************************************************************************/
userAuthenticated: function(){
$('#zeega-my-collections-share-and-organize').html('Saving collection...');
var _this=this;
if(this.myCollectionsDrawer.activeCollection.get('new_items').length>0){
this.myCollectionsDrawer.activeCollection.save({},{
success:function(model,response){
_this.initCollectionsDrawer();
}
});
}
else this.initCollectionsDrawer();
}
}, Backbone.Events)
};
| corinnecurcie/Japan-Digital-Archive | web/js/app/jda.js | JavaScript | mit | 15,904 |
#!/bin/sh
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="${TARGET_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} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements \"$1\""
/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --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 "$BUILT_PRODUCTS_DIR/PopupDialog/PopupDialog.framework"
fi
if [[ "$CONFIGURATION" == "Release" ]]; then
install_framework "$BUILT_PRODUCTS_DIR/PopupDialog/PopupDialog.framework"
fi
| monadis/PopupDialog | Example/Pods/Target Support Files/Pods-PopupDialog_Example/Pods-PopupDialog_Example-frameworks.sh | Shell | mit | 3,621 |
require 'spec_helper'
module Sendgrid
module API
module Entities
describe Stats do
subject { described_class.new }
it { should respond_to(:delivered) }
it { should respond_to(:request) }
it { should respond_to(:unique_open) }
it { should respond_to(:unique_click) }
it { should respond_to(:processed) }
it { should respond_to(:date) }
it { should respond_to(:open) }
it { should respond_to(:click) }
it { should respond_to(:blocked) }
it { should respond_to(:spamreport) }
it { should respond_to(:drop) }
it { should respond_to(:bounce) }
it { should respond_to(:deferred) }
end
end
end
end | renatosnrg/sendgrid-api | spec/sendgrid/api/entities/stats_spec.rb | Ruby | mit | 728 |
//! @file
//! @copyright See <a href="LICENSE.txt">LICENSE.txt</a>.
#pragma once
#include "entity.hpp"
namespace ql {
//! Makes @p entity_id an entity: a being or object that can exist in the world.
auto make_entity(reg& reg, id entity_id, location location) -> id {
reg.assign<ql::location>(entity_id, location);
return entity_id;
}
}
| jonathansharman/Questless | Questless/Questless/src/entities/entity.cpp | C++ | mit | 346 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
using System.Threading;
using System.Runtime.Remoting.Lifetime;
using System.Windows.Forms;
using System.Drawing;
using System.Linq;
using NationalInstruments;
using NationalInstruments.DAQmx;
using NationalInstruments.VisaNS;
using DAQ;
using DAQ.HAL;
using DAQ.Environment;
using DAQ.TransferCavityLock;
using IMAQ;
using NavAnalysis;
using Newtonsoft.Json;
namespace NavHardwareControl
{
/// <summary>
/// This is the interface to the sympathetic specific hardware.
///
/// Flow chart (under normal conditions): UI -> controller -> hardware. Basically, that's it.
/// Exceptions:
/// -controller can set values displayed on UI (only meant for special cases, like startup or re-loading a saved parameter set)
/// -Some public functions allow the HC to be controlled remotely (see below).
///
/// HardwareState:
/// There are 3 states which the controller can be in: OFF, LOCAL and REMOTE.
/// OFF just means the HC is idle.
/// The state is set to LOCAL when this program is actively upating the state of the hardware. It does this by
/// reading off what's on the UI, finding any discrepancies between the current state of the hardware and the values on the UI
/// and by updating the hardware accordingly.
/// After finishing with the update, it resets the state to OFF.
/// When the state is set to REMOTE, the UI is disactivated. The hardware controller saves all the parameter values upon switching from
/// LOCAL to REMOTE, then does nothing. When switching back, it reinstates the hardware state to what it was before it switched to REMOTE.
/// Use this when you want to control the hardware from somewhere else (e.g. MOTMaster).
///
/// Remoting functions (SetValue):
/// Having said that, you'll notice that there are also public functions for modifying parameter values without putting the HC in REMOTE.
/// I wrote it like this because you want to be able to do two different things:
/// -Have the hardware controller take a back seat and let something else control the hardware for a while (e.g. MOTMaster)
/// This is when you should use the REMOTE state.
/// -You still want the HC to keep track of the hardware (hence remaining in LOCAL), but you want to send commands to it remotely
/// (say from a console) instead of from the UI. This is when you would use the SetValue functions.
///
/// The Hardware Report:
/// The Hardware report is a way of passing a dictionary (gauges, temperature measurements, error signals) to another program
/// (MotMaster, say). MOTMaster can then save the dictionary along with the data. I hope this will help towards answering questions
/// like: "what was the source chamber pressure when we took this data?". At the moment, the hardware state is also included in the report.
///
/// </summary>
public class Controller : MarshalByRefObject, CameraControllable, ExperimentReportable, IHardwareRelease
{
#region Constants
//Put any constants and stuff here
private static string cameraAttributesPath = (string)Environs.FileSystem.Paths["CameraAttributesPath"];
private static string profilesPath = (string)Environs.FileSystem.Paths["settingsPath"] + "\\NavigatorHardwareController\\";
private static Hashtable calibrations = Environs.Hardware.Calibrations;
#endregion
#region Setup
// table of all digital analogTasks
Hashtable digitalTasks = new Hashtable();
HSDIOStaticChannelController HSchannels;
//Cameras
public CameraController ImageController;
public bool cameraLoaded = false;
// Declare that there will be a controlWindow
ControlWindow controlWindow;
//Add the window for analysis
AnalWindow analWindow;
//private bool sHCUIControl;
public enum HCUIControlState { OFF, LOCAL, REMOTE };
public HCUIControlState HCState = new HCUIControlState();
private class cameraNotFoundException : ArgumentException { };
HardwareState stateRecord;
private Dictionary<string, Task> analogTasks;
// without this method, any remote connections to this object will time out after
// five minutes of inactivity.
// It just overrides the lifetime lease system completely.
public override Object InitializeLifetimeService()
{
return null;
}
public void Start()
{
// make the digital analogTasks. The function "CreateDigitalTask" is defined later
//e.g CreateDigitalTask("notEOnOff");
// CreateDigitalTask("eOnOff");
//This is to keep track of the various things which the HC controls.
analogTasks = new Dictionary<string, Task>();
var temp = Environs.Info["HSDIOBoard"];
HSchannels = new HSDIOStaticChannelController((string)Environs.Hardware.GetInfo("HSDIOBoard"), "0-31");
stateRecord = new HardwareState();
CreateHSDigitalTask("do00");
CreateHSDigitalTask("do01");
CreateDigitalTask("testDigitalChannel");
// make the analog output analogTasks. The function "CreateAnalogOutputTask" is defined later
//e.g. bBoxAnalogOutputTask = CreateAnalogOutputTask("b");
// steppingBBiasAnalogOutputTask = CreateAnalogOutputTask("steppingBBias");
CreateAnalogOutputTask("motCoil");
CreateAnalogOutputTask("aom1freq");
CreateAnalogOutputTask("motShutter");
CreateAnalogOutputTask("imagingShutter");
CreateAnalogOutputTask("rfSwitch");
CreateAnalogOutputTask("rfAtten");
//CreateAnalogInputTask("testInput", -10, 10);
// make the control controlWindow
controlWindow = new ControlWindow();
controlWindow.controller = this;
HCState = HCUIControlState.OFF;
Application.Run(controlWindow);
}
// this method runs immediately after the GUI sets up
internal void ControllerLoaded()
{
HardwareState loadedState = loadParameters(profilesPath + "StoppedParameters.json");
if (!loadedState.Equals(stateRecord))
{
foreach (KeyValuePair<string, double> pair in loadedState.analogs)
{
if (stateRecord.analogs.ContainsKey(pair.Key))
{
stateRecord.analogs[pair.Key] = pair.Value;
}
}
foreach (KeyValuePair<string, bool> pair in loadedState.digitals)
{
if (stateRecord.digitals.ContainsKey(pair.Key))
{
stateRecord.digitals[pair.Key] = pair.Value;
}
}
}
setValuesDisplayedOnUI(stateRecord);
ApplyRecordedStateToHardware();
}
public void ControllerStopping()
{
// things like saving parameters, turning things off before quitting the program should go here
StoreParameters(profilesPath + "StoppedParameters.json");
}
#endregion
#region private methods for creating un-timed Tasks/channels
// a list of functions for creating various analogTasks
private void CreateAnalogInputTask(string channel)
{
analogTasks[channel] = new Task(channel);
((AnalogInputChannel)Environs.Hardware.AnalogInputChannels[channel]).AddToTask(
analogTasks[channel],
0,
10
);
analogTasks[channel].Control(TaskAction.Verify);
}
// an overload to specify input range
private void CreateAnalogInputTask(string channel, double lowRange, double highRange)
{
analogTasks[channel] = new Task(channel);
((AnalogInputChannel)Environs.Hardware.AnalogInputChannels[channel]).AddToTask(
analogTasks[channel],
lowRange,
highRange
);
analogTasks[channel].Control(TaskAction.Verify);
}
private void CreateAnalogOutputTask(string channel)
{
stateRecord.analogs[channel] = (double)0.0;
analogTasks[channel] = new Task(channel);
AnalogOutputChannel c = ((AnalogOutputChannel)Environs.Hardware.AnalogOutputChannels[channel]);
c.AddToTask(
analogTasks[channel],
c.RangeLow,
c.RangeHigh
);
analogTasks[channel].Control(TaskAction.Verify);
}
// setting an analog voltage to an output
public void SetAnalogOutput(string channel, double voltage)
{
SetAnalogOutput(channel, voltage, false);
}
//Overload for using a calibration before outputting to hardware
public void SetAnalogOutput(string channelName, double voltage, bool useCalibration)
{
AnalogSingleChannelWriter writer = new AnalogSingleChannelWriter(analogTasks[channelName].Stream);
double output;
if (useCalibration)
{
try
{
output = ((Calibration)calibrations[channelName]).Convert(voltage);
}
catch (DAQ.HAL.Calibration.CalibrationRangeException)
{
MessageBox.Show("The number you have typed is out of the calibrated range! \n Try typing something more sensible.");
throw new CalibrationException();
}
catch
{
MessageBox.Show("Calibration error");
throw new CalibrationException();
}
}
else
{
output = voltage;
}
try
{
writer.WriteSingleSample(true, output);
analogTasks[channelName].Control(TaskAction.Unreserve);
}
catch (Exception e)
{
MessageBox.Show(e.Message);
}
}
public class CalibrationException : ArgumentOutOfRangeException { };
// reading an analog voltage from input
public double ReadAnalogInput(string channel)
{
return ReadAnalogInput(channel, false);
}
public double ReadAnalogInput(string channelName, bool useCalibration)
{
AnalogSingleChannelReader reader = new AnalogSingleChannelReader(analogTasks[channelName].Stream);
double val = reader.ReadSingleSample();
analogTasks[channelName].Control(TaskAction.Unreserve);
if (useCalibration)
{
try
{
return ((Calibration)calibrations[channelName]).Convert(val);
}
catch
{
MessageBox.Show("Calibration error");
return val;
}
}
else
{
return val;
}
}
// overload for reading multiple samples
public double ReadAnalogInput(string channel, double sampleRate, int numOfSamples, bool useCalibration)
{
//Configure the timing parameters of the task
analogTasks[channel].Timing.ConfigureSampleClock("", sampleRate,
SampleClockActiveEdge.Rising, SampleQuantityMode.FiniteSamples, numOfSamples);
//Read in multiple samples
AnalogSingleChannelReader reader = new AnalogSingleChannelReader(analogTasks[channel].Stream);
double[] valArray = reader.ReadMultiSample(numOfSamples);
analogTasks[channel].Control(TaskAction.Unreserve);
//Calculate the average of the samples
double sum = 0;
for (int j = 0; j < numOfSamples; j++)
{
sum = sum + valArray[j];
}
double val = sum / numOfSamples;
if (useCalibration)
{
try
{
return ((Calibration)calibrations[channel]).Convert(val);
}
catch
{
MessageBox.Show("Calibration error");
return val;
}
}
else
{
return val;
}
}
private void CreateDigitalTask(String name)
{
stateRecord.digitals[name] = false;
Task digitalTask = new Task(name);
((DigitalOutputChannel)Environs.Hardware.DigitalOutputChannels[name]).AddToTask(digitalTask);
digitalTask.Control(TaskAction.Verify);
digitalTasks.Add(name, digitalTask);
}
public void SetDigitalLine(string name, bool value)
{
Task digitalTask = ((Task)digitalTasks[name]);
DigitalSingleChannelWriter writer = new DigitalSingleChannelWriter(digitalTask.Stream);
writer.WriteSingleSampleSingleLine(true, value);
digitalTask.Control(TaskAction.Unreserve);
}
private void CreateHSDigitalTask(String name)
{
DigitalOutputChannel channel = (DigitalOutputChannel)Environs.Hardware.DigitalOutputChannels[name];
stateRecord.HSdigitals[name] = false;
HSchannels.CreateHSDigitalTask(name, channel.BitNumber);
}
public void SetHSDigitalLine(string name, bool value)
{
HSchannels.SetHSDigitalLine(name, value);
}
#endregion
#region keeping track of the state of the hardware!
/// <summary>
/// There's this thing I've called a hardware state. It's something which keeps track of digital and analog values.
/// I then have something called stateRecord (defines above as an instance of hardwareState) which keeps track of
/// what the hardware is doing.
/// Anytime the hardware gets modified by this program, the stateRecord get updated. Don't hack this.
/// It's useful to know what the hardware is doing at all times.
/// When switching to REMOTE, the updates no longer happen. That's why we store the state before switching to REMOTE and apply the state
/// back again when returning to LOCAL.
/// </summary>
[Serializable]
public class HardwareState
{
public Dictionary<string, double> analogs;
public Dictionary<string, bool> digitals;
public Dictionary<string, bool> HSdigitals;
public HardwareState()
{
analogs = new Dictionary<string, double>();
digitals = new Dictionary<string, bool>();
HSdigitals = new Dictionary<string, bool>();
}
}
#endregion
#region Saving and loading experimental parameters
// Saving the parameters when closing the controller
public void SaveParametersWithDialog()
{
SaveFileDialog saveFileDialog1 = new SaveFileDialog();
saveFileDialog1.Filter = "shc parameters|*.json";
saveFileDialog1.Title = "Save parameters";
saveFileDialog1.InitialDirectory = profilesPath;
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
if (saveFileDialog1.FileName != "")
{
StoreParameters(saveFileDialog1.FileName);
}
}
}
private void StoreParameters(String dataStoreFilePath)
{
stateRecord = readValuesOnUI();
string record = JsonConvert.SerializeObject(stateRecord);
System.IO.File.WriteAllText(dataStoreFilePath, record);
controlWindow.WriteToConsole("Saved parameters to " + dataStoreFilePath);
}
//Load parameters when opening the controller
public void LoadParametersWithDialog()
{
OpenFileDialog dialog = new OpenFileDialog();
dialog.Filter = "Nav HC|*.json";
dialog.Title = "Load parameters";
dialog.InitialDirectory = profilesPath;
dialog.ShowDialog();
if (dialog.FileName != "") stateRecord = loadParameters(dialog.FileName);
setValuesDisplayedOnUI(stateRecord);
controlWindow.WriteToConsole("Parameters loaded from " + dialog.FileName);
}
private HardwareState loadParameters(String dataStoreFilePath)
{
if (!File.Exists(dataStoreFilePath))
{
controlWindow.WriteToConsole("Can't Find File");
return stateRecord;
}
HardwareState state;
using (StreamReader r = new StreamReader(dataStoreFilePath))
{
string json = r.ReadToEnd();
state = JsonConvert.DeserializeObject<HardwareState>(json);
}
return state;
}
#endregion
#region Controlling hardware and UI.
//This gets/sets the values on the GUI panel
#region Updating the hardware
public void ApplyRecordedStateToHardware()
{
applyToHardware(stateRecord);
}
public void UpdateHardware()
{
HardwareState uiState = readValuesOnUI();
DoUpdateHardware(uiState);
}
public void DoUpdateHardware(HardwareState newState)
{
HardwareState changes = getDiscrepancies(stateRecord, newState);
applyToHardware(changes);
updateStateRecord(changes);
setValuesDisplayedOnUI(stateRecord);
}
private void applyToHardware(HardwareState state)
{
if (state.analogs.Count != 0 || state.digitals.Count != 0 || state.HSdigitals.Count != 0)
{
if (HCState == HCUIControlState.OFF)
{
HCState = HCUIControlState.LOCAL;
controlWindow.UpdateUIState(HCState);
applyAnalogs(state);
applyDigitals(state);
applyHSDigitals(state);
HCState = HCUIControlState.OFF;
controlWindow.UpdateUIState(HCState);
}
}
else
{
controlWindow.WriteToConsole("The values on the UI are identical to those on the controller's records. Hardware must be up to date.");
}
}
private HardwareState getDiscrepancies(HardwareState oldState, HardwareState newState)
{
HardwareState state = new HardwareState();
state.analogs = new Dictionary<string, double>();
state.digitals = new Dictionary<string, bool>();
state.HSdigitals = new Dictionary<string, bool>();
foreach(KeyValuePair<string, double> pairs in oldState.analogs)
{
if (oldState.analogs[pairs.Key] != newState.analogs[pairs.Key])
{
state.analogs[pairs.Key] = newState.analogs[pairs.Key];
}
}
foreach (KeyValuePair<string, bool> pairs in oldState.digitals)
{
if (oldState.digitals[pairs.Key] != newState.digitals[pairs.Key])
{
state.digitals[pairs.Key] = newState.digitals[pairs.Key];
}
}
foreach (KeyValuePair<string, bool> pairs in oldState.HSdigitals)
{
if (oldState.HSdigitals[pairs.Key] != newState.HSdigitals[pairs.Key])
{
state.HSdigitals[pairs.Key] = newState.HSdigitals[pairs.Key];
}
}
return state;
}
private void updateStateRecord(HardwareState changes)
{
foreach (KeyValuePair<string, double> pairs in changes.analogs)
{
stateRecord.analogs[pairs.Key] = changes.analogs[pairs.Key];
}
foreach (KeyValuePair<string, bool> pairs in changes.digitals)
{
stateRecord.digitals[pairs.Key] = changes.digitals[pairs.Key];
}
foreach (KeyValuePair<string, bool> pairs in changes.HSdigitals)
{
stateRecord.HSdigitals[pairs.Key] = changes.HSdigitals[pairs.Key];
}
}
private void applyAnalogs(HardwareState state)
{
List<string> toRemove = new List<string>(); //In case of errors, keep track of things to delete from the list of changes.
foreach (KeyValuePair<string, double> pairs in state.analogs)
{
try
{
if (calibrations.ContainsKey(pairs.Key))
{
SetAnalogOutput(pairs.Key, pairs.Value, true);
}
else
{
SetAnalogOutput(pairs.Key, pairs.Value);
}
controlWindow.WriteToConsole("Set channel '" + pairs.Key.ToString() + "' to " + pairs.Value.ToString());
}
catch (CalibrationException)
{
controlWindow.WriteToConsole("Failed to set channel '"+ pairs.Key.ToString() + "' to new value");
toRemove.Add(pairs.Key);
}
}
foreach (string s in toRemove) //Remove those from the list of changes, as nothing was done to the Hardware.
{
state.analogs.Remove(s);
}
}
private void applyDigitals(HardwareState state)
{
foreach (KeyValuePair<string, bool> pairs in state.digitals)
{
SetDigitalLine(pairs.Key, pairs.Value);
controlWindow.WriteToConsole("Set channel '" + pairs.Key.ToString() + "' to " + pairs.Value.ToString());
}
}
private void applyHSDigitals(HardwareState state)
{
foreach (KeyValuePair<string, bool> pairs in state.HSdigitals)
{
SetHSDigitalLine(pairs.Key, pairs.Value);
controlWindow.WriteToConsole("Set channel '" + pairs.Key.ToString() + "' to " + pairs.Value.ToString());
}
}
#endregion
#region Reading and Writing to UI
private HardwareState readValuesOnUI()
{
HardwareState state = new HardwareState();
state.analogs = readUIAnalogs(stateRecord.analogs.Keys);
state.digitals = readUIDigitals(stateRecord.digitals.Keys);
state.HSdigitals = readUIHSDigitals(stateRecord.HSdigitals.Keys);
return state;
}
private Dictionary<string, double> readUIAnalogs(Dictionary<string, double>.KeyCollection keys)
{
Dictionary<string, double> analogs = new Dictionary<string, double>();
string[] keyArray = new string[keys.Count];
keys.CopyTo(keyArray, 0);
for (int i = 0; i < keys.Count; i++)
{
analogs[keyArray[i]] = controlWindow.ReadAnalog(keyArray[i]);
}
return analogs;
}
private Dictionary<string, bool> readUIDigitals(Dictionary<string, bool>.KeyCollection keys)
{
Dictionary<string, bool> digitals = new Dictionary<string,bool>();
string[] keyArray = new string[keys.Count];
keys.CopyTo(keyArray, 0);
for (int i = 0; i < keys.Count; i++)
{
digitals[keyArray[i]] = controlWindow.ReadDigital(keyArray[i]);
}
return digitals;
}
private Dictionary<string, bool> readUIHSDigitals(Dictionary<string, bool>.KeyCollection keys)
{
Dictionary<string, bool> digitals = new Dictionary<string, bool>();
string[] keyArray = new string[keys.Count];
keys.CopyTo(keyArray, 0);
for (int i = 0; i < keys.Count; i++)
{
digitals[keyArray[i]] = controlWindow.ReadHSDigital(keyArray[i]);
}
return digitals;
}
private void setValuesDisplayedOnUI(HardwareState state)
{
setUIAnalogs(state);
setUIDigitals(state);
setUIHSDigitals(state);
}
private void setUIAnalogs(HardwareState state)
{
foreach (KeyValuePair<string, double> pairs in state.analogs)
{
try
{
controlWindow.SetAnalog(pairs.Key, (double)pairs.Value);
}
catch
{
MessageBox.Show("Some parameters couldn't be loaded, check the parameter file in the settings folder");
}
}
}
private void setUIDigitals(HardwareState state)
{
foreach (KeyValuePair<string, bool> pairs in state.digitals)
{
controlWindow.SetDigital(pairs.Key, (bool)pairs.Value);
}
}
private void setUIHSDigitals(HardwareState state)
{
foreach (KeyValuePair<string, bool> pairs in state.HSdigitals)
{
controlWindow.SetHSDigital(pairs.Key, (bool)pairs.Value);
}
}
#endregion
#region Remoting stuff
/// <summary>
/// This is used when you want another program to take control of some/all of the hardware. The hc then just saves the
/// last hardware state, then prevents you from making any changes to the UI. Use this if your other program wants direct control of hardware.
/// </summary>
public void StartRemoteControl()
{
if (HCState == HCUIControlState.OFF)
{
if (!ImageController.IsCameraFree())
{
StopCameraStream();
}
StoreParameters(profilesPath + "tempParameters.json");
HCState = HCUIControlState.REMOTE;
controlWindow.UpdateUIState(HCState);
controlWindow.WriteToConsole("Remoting Started!");
}
else
{
MessageBox.Show("Controller is busy");
}
}
public void StopRemoteControl()
{
try
{
controlWindow.WriteToConsole("Remoting Stopped!");
setValuesDisplayedOnUI(loadParameters(profilesPath + "tempParameters.json"));
if (System.IO.File.Exists(profilesPath + "tempParameters.json"))
{
System.IO.File.Delete(profilesPath + "tempParameters.json");
}
}
catch (Exception)
{
controlWindow.WriteToConsole("Unable to load Parameters.");
}
HCState = HCUIControlState.OFF;
controlWindow.UpdateUIState(HCState);
ApplyRecordedStateToHardware();
}
/// <summary>
/// These SetValue functions are for giving commands to the hc from another program, while keeping the hc in control of hardware.
/// Use this if you want the HC to keep control, but you want to control the HC from some other program
/// </summary>
public void SetValue(string channel, double value)
{
HCState = HCUIControlState.LOCAL;
stateRecord.analogs[channel] = value;
SetAnalogOutput(channel, value, false);
setValuesDisplayedOnUI(stateRecord);
HCState = HCUIControlState.OFF;
}
public void SetValue(string channel, double value, bool useCalibration)
{
stateRecord.analogs[channel] = value;
HCState = HCUIControlState.LOCAL;
SetAnalogOutput(channel, value, useCalibration);
setValuesDisplayedOnUI(stateRecord);
HCState = HCUIControlState.OFF;
}
public void SetValue(string channel, bool value)
{
HCState = HCUIControlState.LOCAL;
if (stateRecord.digitals.ContainsKey(channel))
{
stateRecord.digitals[channel] = value;
SetDigitalLine(channel, value);
setValuesDisplayedOnUI(stateRecord);
}
else if (stateRecord.HSdigitals.ContainsKey(channel))
{
stateRecord.digitals[channel] = value;
SetHSDigitalLine(channel, value);
setValuesDisplayedOnUI(stateRecord);
}
HCState = HCUIControlState.OFF;
}
#endregion
#endregion
#region Local camera control
public void StartCameraControl()
{
try
{
ImageController = new CameraController("cam0");
ImageController.Initialize();
ImageController.SetCameraAttributes(cameraAttributesPath);
ImageController.PrintCameraAttributesToConsole();
cameraLoaded = true;
}
catch (Exception e)
{
MessageBox.Show(e.Message, "Camera Initialization Error",
MessageBoxButtons.OK, MessageBoxIcon.Error);
Application.Exit();
}
}
public void CameraStream()
{
try
{
ImageController.Stream(cameraAttributesPath);
}
catch { }
}
public void StopCameraStream()
{
try
{
ImageController.StopStream();
}
catch { }
}
public void CameraSnapshot()
{
try
{
ImageController.SingleSnapshot(cameraAttributesPath);
}
catch { }
}
public ushort[,] TempCameraSnapshot()
{
return ImageController.SingleSnapshot(cameraAttributesPath);
}
#endregion
#region Release/Reclaim Hardware
public void ReleaseHardware()
{
HSchannels.ReleaseHardware();
}
public void ReclaimHardware()
{
HSchannels.ReclaimHardware();
}
#endregion
#region Remote Camera Control
//Written for taking images triggered by TTL. This "Arm" sets the camera so it's expecting a TTL.
public ushort[,] GrabSingleImage(string cameraAttributesPath)
{
return ImageController.SingleSnapshot(cameraAttributesPath);
}
public ushort[][,] GrabMultipleImages(string cameraAttributesPath, int numberOfShots)
{
try
{
ushort[][,] images = ImageController.MultipleSnapshot(cameraAttributesPath, numberOfShots);
return images;
}
catch (TimeoutException)
{
FinishRemoteCameraControl();
return null;
}
}
public bool IsReadyForAcquisition()
{
return ImageController.IsReadyForAcqisition();
}
public void PrepareRemoteCameraControl()
{
StartRemoteControl();
}
public void FinishRemoteCameraControl()
{
StopRemoteControl();
}
public bool doesCameraExist()
{
return cameraLoaded;
}
#endregion
#region Saving Images
public void SaveImageWithDialog()
{
ImageController.SaveImageWithDialog();
}
public void SaveImage(string path)
{
ImageController.SaveImage(path);
}
#endregion
#region Hardware Monitor
#region Remote Access for Hardware Monitor
public Dictionary<String, Object> GetExperimentReport()
{
Dictionary<String, Object> report = new Dictionary<String, Object>();
report["testReport"] = "Report?";
foreach (KeyValuePair<string, double> pair in stateRecord.analogs)
{
report[pair.Key] = pair.Value;
}
foreach (KeyValuePair<string, bool> pair in stateRecord.digitals)
{
report[pair.Key] = pair.Value;
}
return report;
}
#endregion
#endregion
#region Stuff To Access from python
///In theory you can access any public method from python.
///In practice we only really want to access a small number of them.
///This region contains them. Hopefully by only putting functions in here we
///want to use we can get an idea of what, exactly we want this control
///software to do.
///
public void RemoteTest(object input)
{
controlWindow.WriteToConsole(input.ToString());
}
public string RemoteSetChannel(String channelName, object value)
{
if (digitalTasks.Contains(channelName))
{
if (value.GetType() != typeof(bool))
{
return "Can't set digital channel to non bool value";
}
HardwareState state = readValuesOnUI();
state.digitals[channelName] = (bool)value;
DoUpdateHardware(state);
return "";
}
if (analogTasks.ContainsKey(channelName))
{
float outValue;
bool didItParse = float.TryParse(value.ToString(), out outValue);
if (!didItParse)
{
return "Cant't set an analog channel to non numeric value";
}
HardwareState state = readValuesOnUI();
state.analogs[channelName] = outValue;
DoUpdateHardware(state);
return "";
}
return "Channel name not found";
}
public string[] RemoteGetChannels()
{
List<string> channels = new List<string>();
channels.AddRange(stateRecord.digitals.Keys);
channels.AddRange(stateRecord.analogs.Keys);
return channels.ToArray();
}
public string RemoteLoadParameters(string file)
{
if (!File.Exists(file))
{
return "file doesn't exist";
}
stateRecord = loadParameters(file);
setValuesDisplayedOnUI(stateRecord);
controlWindow.WriteToConsole("Loaded parameters from " + file);
return "";
}
public void CloseIt()
{
controlWindow.Close();
}
#endregion
}
}
| jstammers/EDMSuite | NavHardwareControl/Controller.cs | C# | mit | 35,814 |
//**********************************************
//Singleton Texture Manager class
//Written by Ben English
//[email protected]
//
//For use with OpenGL and the FreeImage library
//**********************************************
#ifndef TextureManager_H
#define TextureManager_H
#include <windows.h>
//#include <GL/glew.h>
//#include <GL/glfw.h>
#include <gl/gl.h>
#include "FreeImage.h"
#include <map>
class TextureManager
{
public:
static TextureManager* Inst();
virtual ~TextureManager();
//load a texture an make it the current texture
//if texID is already in use, it will be unloaded and replaced with this texture
bool LoadTexture(const char* filename, //where to load the file from
const unsigned int texID, //arbitrary id you will reference the texture by
//does not have to be generated with glGenTextures
GLenum image_format = GL_RGB, //format the image is in
GLint internal_format = GL_RGB, //format to store the image in
GLint level = 0, //mipmapping level
GLint border = 0); //border size
//free the memory for a texture
bool UnloadTexture(const unsigned int texID);
//set the current texture
bool BindTexture(const unsigned int texID);
//free all texture memory
void UnloadAllTextures();
protected:
TextureManager();
TextureManager(const TextureManager& tm);
TextureManager& operator=(const TextureManager& tm);
static TextureManager* m_inst;
std::map<unsigned int, GLuint> m_texID;
};
#endif | kypp/earth-viewer | earthView/TextureManager.h | C | mit | 1,524 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Khaale.TechTalks.AwesomeLibrary.Service")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("EPAM Systems")]
[assembly: AssemblyProduct("Khaale.TechTalks.AwesomeLibrary.Service")]
[assembly: AssemblyCopyright("Copyright © EPAM Systems 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("32ebdbb0-37fb-4197-aeab-5def4dd5102a")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| khaale/Khaale.TechTalks.AwesomeLibs | src/BusinessService/Properties/AssemblyInfo.cs | C# | mit | 1,478 |
/**
* This code was auto-generated by a Codezu.
*
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*/
package com.mozu.api.resources.commerce.orders;
import com.mozu.api.ApiContext;
import java.util.List;
import java.util.ArrayList;
import com.mozu.api.MozuClient;
import com.mozu.api.MozuClientFactory;
import com.mozu.api.MozuUrl;
import com.mozu.api.Headers;
import com.mozu.api.security.AuthTicket;
import org.apache.commons.lang.StringUtils;
/** <summary>
* Use the Fulfillment resource to manage shipments or pickups of collections of packages for an order.
* </summary>
*/
public class FulfillmentActionResource {
///
/// <see cref="Mozu.Api.ApiContext"/>
///
private ApiContext _apiContext;
public FulfillmentActionResource(ApiContext apiContext)
{
_apiContext = apiContext;
}
/**
* Sets the fulfillment action to "Ship" or "PickUp". To ship an order or prepare it for in-store pickup, the order must have a customer name, the "Open" or "OpenAndProcessing" status. To ship the order, it must also have the full shipping address and shipping method. Shipping all packages or picking up all pickups for an order will complete a paid order.
* <p><pre><code>
* FulfillmentAction fulfillmentaction = new FulfillmentAction();
* Order order = fulfillmentaction.performFulfillmentAction( action, orderId);
* </code></pre></p>
* @param orderId Unique identifier of the order.
* @param action Properties of an action to perform when fulfilling an item in an order, whether through in-store pickup or direct shipping.
* @return com.mozu.api.contracts.commerceruntime.orders.Order
* @see com.mozu.api.contracts.commerceruntime.orders.Order
* @see com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentAction
*/
public com.mozu.api.contracts.commerceruntime.orders.Order performFulfillmentAction(com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentAction action, String orderId) throws Exception
{
return performFulfillmentAction( action, orderId, null);
}
/**
* Sets the fulfillment action to "Ship" or "PickUp". To ship an order or prepare it for in-store pickup, the order must have a customer name, the "Open" or "OpenAndProcessing" status. To ship the order, it must also have the full shipping address and shipping method. Shipping all packages or picking up all pickups for an order will complete a paid order.
* <p><pre><code>
* FulfillmentAction fulfillmentaction = new FulfillmentAction();
* Order order = fulfillmentaction.performFulfillmentAction( action, orderId, responseFields);
* </code></pre></p>
* @param orderId Unique identifier of the order.
* @param responseFields A list or array of fields returned for a call. These fields may be customized and may be used for various types of data calls in Mozu. For example, responseFields are returned for retrieving or updating attributes, carts, and messages in Mozu.
* @param action Properties of an action to perform when fulfilling an item in an order, whether through in-store pickup or direct shipping.
* @return com.mozu.api.contracts.commerceruntime.orders.Order
* @see com.mozu.api.contracts.commerceruntime.orders.Order
* @see com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentAction
*/
public com.mozu.api.contracts.commerceruntime.orders.Order performFulfillmentAction(com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentAction action, String orderId, String responseFields) throws Exception
{
MozuClient<com.mozu.api.contracts.commerceruntime.orders.Order> client = com.mozu.api.clients.commerce.orders.FulfillmentActionClient.performFulfillmentActionClient( action, orderId, responseFields);
client.setContext(_apiContext);
client.executeRequest();
return client.getResult();
}
/**
* orders-fulfillment Post ResendPackageFulfillmentEmail description DOCUMENT_HERE
* <p><pre><code>
* FulfillmentAction fulfillmentaction = new FulfillmentAction();
* Order order = fulfillmentaction.resendPackageFulfillmentEmail( action, orderId);
* </code></pre></p>
* @param orderId Unique identifier of the order.
* @param action Properties of an action to perform when fulfilling an item in an order, whether through in-store pickup or direct shipping.
* @return com.mozu.api.contracts.commerceruntime.orders.Order
* @see com.mozu.api.contracts.commerceruntime.orders.Order
* @see com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentAction
*/
public com.mozu.api.contracts.commerceruntime.orders.Order resendPackageFulfillmentEmail(com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentAction action, String orderId) throws Exception
{
return resendPackageFulfillmentEmail( action, orderId, null);
}
/**
* orders-fulfillment Post ResendPackageFulfillmentEmail description DOCUMENT_HERE
* <p><pre><code>
* FulfillmentAction fulfillmentaction = new FulfillmentAction();
* Order order = fulfillmentaction.resendPackageFulfillmentEmail( action, orderId, responseFields);
* </code></pre></p>
* @param orderId Unique identifier of the order.
* @param responseFields A list or array of fields returned for a call. These fields may be customized and may be used for various types of data calls in Mozu. For example, responseFields are returned for retrieving or updating attributes, carts, and messages in Mozu.
* @param action Properties of an action to perform when fulfilling an item in an order, whether through in-store pickup or direct shipping.
* @return com.mozu.api.contracts.commerceruntime.orders.Order
* @see com.mozu.api.contracts.commerceruntime.orders.Order
* @see com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentAction
*/
public com.mozu.api.contracts.commerceruntime.orders.Order resendPackageFulfillmentEmail(com.mozu.api.contracts.commerceruntime.fulfillment.FulfillmentAction action, String orderId, String responseFields) throws Exception
{
MozuClient<com.mozu.api.contracts.commerceruntime.orders.Order> client = com.mozu.api.clients.commerce.orders.FulfillmentActionClient.resendPackageFulfillmentEmailClient( action, orderId, responseFields);
client.setContext(_apiContext);
client.executeRequest();
return client.getResult();
}
}
| sanjaymandadi/mozu-java | mozu-java-core/src/main/java/com/mozu/api/resources/commerce/orders/FulfillmentActionResource.java | Java | mit | 6,320 |
package at.ac.tuwien.big.xmlintelledit.xmltext.ecoretransform.impl;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import javax.activation.UnsupportedDataTypeException;
import org.apache.commons.lang3.StringEscapeUtils;
import org.eclipse.emf.common.util.Enumerator;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.EAnnotation;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EDataType;
import org.eclipse.emf.ecore.EEnum;
import org.eclipse.emf.ecore.EEnumLiteral;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.ecore.EcoreFactory;
import org.eclipse.emf.ecore.EcorePackage;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.ResourceSet;
import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
import org.eclipse.emf.ecore.util.BasicExtendedMetaData;
import org.eclipse.emf.ecore.util.ExtendedMetaData;
import org.eclipse.emf.ecore.util.FeatureMap;
import org.eclipse.emf.ecore.util.FeatureMapUtil;
import org.eclipse.emf.ecore.xmi.XMLResource;
import org.eclipse.emf.ecore.xmi.impl.EcoreResourceFactoryImpl;
import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl;
import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl;
import at.ac.tuwien.big.xmlintelledit.xmltext.ecoretransform.CollectionValueTransformation;
import at.ac.tuwien.big.xmlintelledit.xmltext.ecoretransform.EAttributeTransformator;
import at.ac.tuwien.big.xmlintelledit.xmltext.ecoretransform.EReferenceTransformator;
import at.ac.tuwien.big.xmlintelledit.xmltext.ecoretransform.PartialObjectCopier;
import at.ac.tuwien.big.xmlintelledit.xmltext.ecoretransform.SingleObjectTransformator;
import at.ac.tuwien.big.xmlintelledit.xmltext.ecoretransform.Transformator;
import at.ac.tuwien.big.xmlintelledit.xmltext.ecoretransform.ValueTransformator;
import at.ac.tuwien.big.xtext.util.MyEcoreUtil;
@SuppressWarnings({"rawtypes", "unchecked", "unused"})
public class TransformatorStructure {
private Map<EAttribute, EAttributeTransformator> xmlToEcoreAttr = new HashMap<EAttribute, EAttributeTransformator>();
private Map<EAttribute, EAttributeTransformator> ecoreToXmlAttr = new HashMap<EAttribute, EAttributeTransformator>();
private Map<EStructuralFeature, PartialObjectCopier> xmlToEcoreChanger = new HashMap<>();
private Map<EStructuralFeature, PartialObjectCopier> ecoreToXmlChanger = new HashMap<>();
private TypeTransformatorStore store;
private Map<EReference, EReferenceTransformator> xmlToEcoreRef = new HashMap<EReference, EReferenceTransformator>();
private Map<EReference, EReferenceTransformator> ecoreToXmlRef = new HashMap<EReference, EReferenceTransformator>();
private Map<String, EObject> fragmentToXmlObject = new HashMap<String, EObject>();
private Map<EReference,EReference> xmlToEcoreReferences = new HashMap<EReference, EReference>();
private Map<EAttribute,EAttribute> xmlToEcoreAttribute = new HashMap<>();
private Map<EEnum,EEnum> copiedEEnums = new HashMap<EEnum, EEnum>();
private Map<EEnumLiteral,EEnumLiteral> copiedEEnumLiterals = new HashMap<EEnumLiteral, EEnumLiteral>();
private Map<EEnumLiteral,EEnumLiteral> backEEnumLiteral = new HashMap<EEnumLiteral, EEnumLiteral>();
private Map<String,EEnumLiteral> backEEnumLiteralStr = new HashMap<String, EEnumLiteral>();
private Map<EClass, EClass> xmlToEcoreClasses = new HashMap<EClass, EClass>();
private Map<EClass, EClass> ecoreToXmlClasses = new HashMap<EClass, EClass>();
private Map<EStructuralFeature,EStructuralFeature> ecoreToXmlFeature = new HashMap<EStructuralFeature, EStructuralFeature>();
private Map<String,EObject> targetMap = new HashMap<String, EObject>();
private Set<EObject> handledTargets = new HashSet<EObject>();
private Map<String,String> restrictedDatatypes = new HashMap<String,String>();
public Map<String, String> getRestrictedDatatypes() {
return restrictedDatatypes;
}
public String getStoreName(EObject eobj) {
if (eobj instanceof EClass) {
return ((EClass) eobj).getName();
} else if (eobj instanceof EEnum) {
return ((EEnum)eobj).getName();
} else if (eobj instanceof EStructuralFeature) {
EStructuralFeature esf = (EStructuralFeature)eobj;
return esf.getEContainingClass().getName()+"."+esf.getName();
}
return null;
}
public void readInBasicTarget(Resource targetRes) {
for (EObject eobj: (Iterable<EObject>)()->targetRes.getAllContents()) {
String storeName = getStoreName(eobj);
if (storeName != null) {
targetMap.put(storeName, eobj);
}
}
}
public EObject getIfExists(String targetName) {
EObject ret = targetMap.get(targetName);
if (ret != null) {
handledTargets.add(ret);
}
return ret;
}
//1 to one correspondance
public TransformatorStructure(Resource source, Resource target) {
for (EObject eobj: (Iterable<EObject>)source.getAllContents()) {
if (eobj instanceof EClass) {
EClass cl = (EClass)eobj;
EClass ecoreClass = (EClass)target.getEObject(source.getURIFragment(eobj));
xmlToEcoreClasses.put(cl, ecoreClass);
ecoreToXmlClasses.put(ecoreClass,cl);
System.out.println("Associating "+ cl+ " to "+ecoreClass);
//Not all, because then we would do something multiple times
for (EAttribute eattr: cl.getEAttributes()) {
EAttribute newA = (EAttribute)target.getEObject(source.getURIFragment(eattr));
xmlToEcoreAttribute.put(eattr, newA);
}
for (EReference eattr: cl.getEReferences()) {
EReference newRef = (EReference)target.getEObject(source.getURIFragment(eattr));
xmlToEcoreReferences.put(eattr, newRef);
}
} else if (eobj instanceof EEnum) {
EEnum eenum = (EEnum)eobj;
copiedEEnums.put(eenum, (EEnum)target.getEObject(source.getURIFragment(eenum)));
for (EEnumLiteral lit: eenum.getELiterals()) {
EEnumLiteral back = (EEnumLiteral)target.getEObject(source.getURIFragment(lit));
copiedEEnumLiterals.put(lit, back);
backEEnumLiteral.put(back, lit);
backEEnumLiteralStr.put(eenum.getName()+"."+lit.getLiteral(), lit);
}
//Ignore for now
} else if (eobj instanceof EDataType) {
//???
} else if (eobj instanceof EAttribute) {
//Have handled every important above?
} else if (eobj instanceof EReference) {
//Have handled every important above?
}
}
//TODO: F�r kopierte ist es gef�hrlich ...
for (Entry<EClass,EClass> entr: xmlToEcoreClasses.entrySet()) {
if (!augmentEClassBasic(entr.getKey(), entr.getValue())) {
//TODO: Das stimmt so nicht ...
entr.setValue(null);
}
}
for (Entry<EAttribute,EAttribute> entr: xmlToEcoreAttribute.entrySet()) {
if (!augmentAttributeBasic(entr.getKey(), entr.getValue())) {
entr.setValue(null);
}
}
for (Entry<EReference,EReference> entr: xmlToEcoreReferences.entrySet()) {
if (!augmentReferenceBasic(entr.getKey(), entr.getValue())) {
entr.setValue(null);
}
}
}
private EClass mixedData;
private EClass mixedText;
private EClass mixedFeature;
private EClass mixedBaseClass;
private EReference mixedBaseMixedAttr;
private EAttribute mixedValueAttr;
private EPackage ecorePackage;
public void generateMixClasses() {
if (mixedData == null) {
mixedData = (EClass)getIfExists("MixedData");
if (mixedData == null) {
mixedData = EcoreFactory.eINSTANCE.createEClass();
mixedData.setName("MixedData");
mixedData.setAbstract(true);
mixedValueAttr = EcoreFactory.eINSTANCE.createEAttribute();
mixedValueAttr.setName("value");
mixedValueAttr.setEType(EcorePackage.Literals.ESTRING);
mixedValueAttr.setLowerBound(1);
mixedValueAttr.setUpperBound(1);
mixedData.getEStructuralFeatures().add(mixedValueAttr);
ecorePackage.getEClassifiers().add(mixedData);
} else {
mixedValueAttr = (EAttribute)mixedData.getEStructuralFeature("value");
}
mixedText = (EClass)getIfExists("MixedText");
if (mixedText == null) {
mixedText = EcoreFactory.eINSTANCE.createEClass();
mixedText.setName("MixedText");
mixedText.getESuperTypes().add(mixedData);
ecorePackage.getEClassifiers().add(mixedText);
}
mixedFeature = (EClass)getIfExists("MixedFeature");
if (mixedFeature == null) {
mixedFeature = EcoreFactory.eINSTANCE.createEClass();
mixedFeature.setName("MixedFeature");
mixedFeature.getESuperTypes().add(mixedData);
ecorePackage.getEClassifiers().add(mixedFeature);
}
mixedBaseClass = (EClass)getIfExists("MixedBaseClass");
if (mixedBaseClass == null) {
mixedBaseClass = EcoreFactory.eINSTANCE.createEClass();
mixedBaseClass.setName("MixedBaseClass");
mixedBaseClass.setAbstract(true);
mixedBaseMixedAttr = EcoreFactory.eINSTANCE.createEReference();
mixedBaseMixedAttr.setName("mixed");
mixedBaseMixedAttr.setLowerBound(0);
mixedBaseMixedAttr.setUpperBound(-1);
mixedBaseMixedAttr.setContainment(true);
mixedBaseMixedAttr.setEType(mixedData);
mixedBaseClass.getEStructuralFeatures().add(mixedBaseMixedAttr);
ecorePackage.getEClassifiers().add(mixedBaseClass);
} else {
mixedBaseMixedAttr = (EReference)mixedBaseClass.getEStructuralFeature("mixed");
}
}
}
public boolean isMixed(EStructuralFeature feat) {
//TODO: ... faster
if (!"mixed".equals(feat.getName())) {
return false;
}
if ((feat.getEType() instanceof EClass && mixedData.isSuperTypeOf((EClass)feat.getEType())) || (feat.getEType() != null && "EFeatureMapEntry".equals(feat.getEType().getName()))) {
return true;
}
return false;
}
public TransformatorStructure(TypeTransformatorStore store, ResourceSet resourceSet, File xmlEcore) {
this.store = store;
parseXmlEcore(resourceSet,xmlEcore);
}
private TransformatorStructure() {
}
public static TransformatorStructure withKnownResult(TypeTransformatorStore store, ResourceSet resourceSet,
Resource xmlResource, Resource ecoreResource) {
TransformatorStructure ret = new TransformatorStructure();
ret.store = store;
ret.xmlResource = ()->xmlResource.getAllContents();
ret.ecoreResources.add(ecoreResource);
ret.readInBasicTarget(ecoreResource);
ret.parseXmlEcoreBasic(ecoreResource, resourceSet, xmlResource.getURI(), ()->xmlResource.getAllContents(), false);
return ret;
}
public static TransformatorStructure fromXmlEcore(TypeTransformatorStore store,
ResourceSet resourceSet, Resource ecoreXmlResource, String targetFilename) {
TransformatorStructure ret = new TransformatorStructure();
ret.store = store;
ret.xmlResource = ()->ecoreXmlResource.getAllContents();
ret.parseXmlEcore(null,resourceSet,targetFilename==null?null:URI.createFileURI(targetFilename),ret.xmlResource, false);
return ret;
}
public static TransformatorStructure fromXmlEcores(TypeTransformatorStore store,
ResourceSet resourceSet, List<Resource> ecoreXmlResources, String targetFilename) {
TransformatorStructure ret = new TransformatorStructure();
ret.store = store;
int ind = 0;
for (Resource ecoreXmlResource: ecoreXmlResources) {
ret.xmlResource = ()->ecoreXmlResource.getAllContents();
ret.parseXmlEcore(null,resourceSet,targetFilename==null?null:URI.createFileURI(targetFilename+(++ind)+".ecore"),ret.xmlResource, false);
}
return ret;
}
public TransformatorStructure(TypeTransformatorStore store, ResourceSet resourceSet, Resource xmlResource) {
this.store = store;
this.xmlResource = ()->xmlResource.getAllContents();
parseXmlEcore(null,resourceSet,URI.createURI(xmlResource.getURI()+"simplified"),this.xmlResource,false);
}
public TransformatorStructure(TypeTransformatorStore store, ResourceSet resourceSet, File xmlResourceFile, Iterable<EObject> xmlResource) {
this.store = store;
this.xmlResource = xmlResource;
parseXmlEcore(null,resourceSet,URI.createFileURI(xmlResourceFile.getAbsolutePath()+".simple.ecore"),xmlResource,false);
}
private EAttribute commonIdAttribute = null;
private EClass commonIdClass = null;
private Map<EClass, EAttribute> realId = new HashMap<EClass, EAttribute>();
//private Map<EAttribute, EReference> attributeToReference = new HashMap<>();
//private Map<EReference, EAttribute> referenceToAttribute = new HashMap<>();
private void buildChangers() {
for (Entry<EAttribute,EAttributeTransformator> entry: xmlToEcoreAttr.entrySet()) {
// EAttribute attr = entry.getKey(); // TODO remove unused?
EAttributeTransformator tf = entry.getValue();
PartialObjectCopier poc = new PartialObjectCopier() {
@Override
public void copyFrom(TransformatorImpl trans, EObject xmlObject, EObject ret) {
//Workaround - remove if ressource is always correct
try {
if (xmlObject.eIsSet(tf.getXml())) {
Collection c = MyEcoreUtil.getAsCollection(xmlObject, tf.getXml());
c = tf.convertToEcore(c);
MyEcoreUtil.setAsCollectionBasic(ret,tf.getEcore(),c);
} else {
ret.eUnset(tf.getEcore());
}
} catch (IllegalArgumentException e) {
EStructuralFeature esf = xmlObject.eClass().getEStructuralFeature(tf.getXml().getName());
System.err.println(e.getMessage()+" => replaced by " + esf);
if (esf != null) {
if (xmlObject.eIsSet(esf)) {
Collection c = MyEcoreUtil.getAsCollection(xmlObject, esf);
c = tf.convertToEcore(c);
MyEcoreUtil.setAsCollectionBasic(ret,tf.getEcore(),c);
} else {
ret.eUnset(tf.getEcore());
}
}
}
}
};
xmlToEcoreChanger.put(tf.getXml(),poc);
xmlToEcoreChanger.put(tf.getEcore(),poc);
}
for (Entry<EAttribute,EAttributeTransformator> entry: ecoreToXmlAttr.entrySet()) {
// EAttribute attr = entry.getKey(); // TODO remove unused?
EAttributeTransformator tf = entry.getValue();
PartialObjectCopier poc = new PartialObjectCopier() {
@Override
public void copyFrom(TransformatorImpl trans, EObject eobject, EObject ret) {
if (eobject.eIsSet(tf.getEcore())) {
// String bla = attr.getName(); // TODO remove unused?
Collection c = MyEcoreUtil.getAsCollection(eobject, tf.getEcore());
c = tf.convertToXml(c);
MyEcoreUtil.setAsCollectionBasic(ret,tf.getXml(),c);
} else {
ret.eUnset(tf.getXml());
}
}
};
ecoreToXmlChanger.put(tf.getXml(),poc);
ecoreToXmlChanger.put(tf.getEcore(),poc);
}
for (Entry<EReference,EReferenceTransformator> entry: xmlToEcoreRef.entrySet()) {
// EReference ref = entry.getKey(); // TODO remove unused?
EReferenceTransformator tf = entry.getValue();
// ResourceSet rs; // TODO remove unused?
PartialObjectCopier poc = new PartialObjectCopier() {
@Override
public void copyFrom(TransformatorImpl trans, EObject xmlObject, EObject ret) {
try {
if (xmlObject.eIsSet(tf.getXml())) {
Collection c = MyEcoreUtil.getAsCollection(xmlObject, tf.getXml());
c = tf.convertToEcore(c, trans);
MyEcoreUtil.setAsCollectionBasic(ret,tf.getEcore(),c);
} else {
ret.eUnset(tf.getEcore());
}
} catch (IllegalArgumentException e) {
EStructuralFeature esf = xmlObject.eClass().getEStructuralFeature(tf.getXml().getName());
System.err.println(e.getMessage()+" => replaced by " + esf);
if (esf != null) {
if (xmlObject.eIsSet(esf)) {
Collection c = MyEcoreUtil.getAsCollection(xmlObject, esf);
c = tf.convertToEcore(c, trans);
MyEcoreUtil.setAsCollectionBasic(ret,tf.getEcore(),c);
} else {
ret.eUnset(tf.getEcore());
}
}
}
}
};
xmlToEcoreChanger.put(tf.getXml(),poc);
xmlToEcoreChanger.put(tf.getEcore(),poc);
}
for (Entry<EReference,EReferenceTransformator> entry: ecoreToXmlRef.entrySet()) {
// EReference ref = entry.getKey(); // TODO remove unused?
EReferenceTransformator tf = entry.getValue();
PartialObjectCopier poc = new PartialObjectCopier() {
@Override
public void copyFrom(TransformatorImpl trans, EObject eobject, EObject ret) {
if (eobject.eIsSet(tf.getEcore())) {
Collection c = MyEcoreUtil.getAsCollection(eobject, tf.getEcore());
c = tf.convertToXml(c, trans);
MyEcoreUtil.setAsCollectionBasic(ret,tf.getXml(),c);
} else {
ret.eUnset(tf.getXml());
}
}
};
ecoreToXmlChanger.put(tf.getXml(),poc);
ecoreToXmlChanger.put(tf.getEcore(),poc);
}
}
private void calcId() {
//Baue �berklasse �ber alle IDs
List<EClass> allIdClasses = new ArrayList<EClass>();
for (EClass ecl: ecoreToXmlClasses.keySet()) {
for (EAttribute attr: ecl.getEAttributes()) {
if (attr.isID()) {
allIdClasses.add(ecl);
}
}
}
Set<EClass> allIdClassesSet = new HashSet<EClass>(allIdClasses);
if (allIdClasses.isEmpty()) {
//Nothing to do
return;
}
//If there is only one, just pick the first ID you find and you are done!
if (allIdClassesSet.size() == 1) {
commonIdClass = allIdClasses.get(0);
commonIdAttribute = commonIdClass.getEIDAttribute();
} else {
//Check if there is a superclass which is a superclass of all id classes
Set<EClass> superClasses = new HashSet<EClass>();
EClass first = allIdClasses.get(0);
superClasses.add(first);
superClasses.addAll(first.getEAllSuperTypes());
for (int i = 1; i < allIdClasses.size(); ++i) {
EClass cl = allIdClasses.get(i);
Set<EClass> subSuper = new HashSet<EClass>(cl.getEAllSuperTypes());
subSuper.add(cl);
superClasses.retainAll(subSuper);
}
//All of these classes are candidates, but there must exist no class which has an attribute added due to that fact
for (EClass cl: ecoreToXmlClasses.keySet()) {
if (allIdClassesSet.contains(cl)) {
continue;
}
Set<EClass> superTypes = new HashSet<>(cl.getEAllSuperTypes());
superTypes.retainAll(allIdClassesSet);
if (!superTypes.isEmpty()) {
continue;
}
superClasses.remove(cl);
superClasses.removeAll(cl.getEAllSuperTypes());
}
boolean idAttributeExisted = false;
//Now you can arbitrarily pick one of the remaining candidates to add the ID attribute
if (!superClasses.isEmpty()) {
commonIdClass = superClasses.iterator().next();
} else {
//Create
commonIdClass = (EClass)getIfExists("CommonIdClass");
if (commonIdClass == null) {
commonIdClass = EcoreFactory.eINSTANCE.createEClass();
commonIdClass.setAbstract(true);
commonIdClass.setName("CommonIdClass");
ecorePackage.getEClassifiers().add(commonIdClass);
} else {
idAttributeExisted = true;
}
}
Object commonIdAttributeO = getIfExists("CommonIdClass.name");
if (commonIdAttributeO instanceof EAttribute) {
commonIdAttribute = (EAttribute)commonIdAttributeO;
} else {
commonIdAttribute = EcoreFactory.eINSTANCE.createEAttribute();
}
commonIdAttribute.setName("name"); //Good to provide an xtext ID!
commonIdAttribute.setUnique(true);
commonIdAttribute.setID(true);
commonIdAttribute.setLowerBound(1);
commonIdAttribute.setUpperBound(1);
commonIdAttribute.setEType(EcorePackage.Literals.ESTRING);
if (!idAttributeExisted) {
commonIdClass.getEStructuralFeatures().add(commonIdAttribute);
}
for (EClass cl: ecoreToXmlClasses.keySet()) {
realId.put(cl, cl.getEIDAttribute());
}
if (!idAttributeExisted) {
for (EClass cl: allIdClasses) {
EAttribute id = cl.getEIDAttribute();
if (cl != commonIdClass) {
if (id != null && id.getEContainingClass() == cl) {
cl.getEStructuralFeatures().remove(id);
}
if (!cl.getEAllSuperTypes().contains(commonIdClass)) {
cl.getESuperTypes().add(commonIdClass);
}
}
}
}
}
//Whenever you have an attribute which is an IDREF, replace it by a reference
for (Entry<EAttribute,EAttributeTransformator> entry: xmlToEcoreAttr.entrySet()) {
EAttribute attr = entry.getKey();
String attrEType = (attr.getEType() != null)?attr.getEType().getName():"";
if ("IDREF".equals(attrEType)) {
EAttribute ecoreAttr = entry.getValue().getEcore();
EObject erefO = getIfExists(getEcoreClassName(attr.getEContainingClass())+"."+getEcoreAttributeName(attr));
EReference ref = null;
boolean hadReference = false;
if (erefO instanceof EReference) {
ref = (EReference)erefO;
hadReference = true;
} else {
ref = EcoreFactory.eINSTANCE.createEReference();
setSimple(ecoreAttr, ref);
ref.setName(ecoreAttr.getName());
ref.setEType(commonIdClass);
}
EReference fref = ref;
//attributeToReference.put(ecoreAttr, ref);
//referenceToAttribute.put(ref, ecoreAttr);
if (!hadReference && ecoreAttr.getEContainingClass() != null) {
int idx = ecoreAttr.getEContainingClass().getEStructuralFeatures().indexOf(ecoreAttr);
ecoreAttr.getEContainingClass().getEStructuralFeatures().add(idx,ref);
ecoreAttr.getEContainingClass().getEStructuralFeatures().remove(ecoreAttr);
}
//Konvertiere jedes Objekt in seine ID
PartialObjectCopier poc = new PartialObjectCopier() {
@Override
public void copyFrom(TransformatorImpl transformator, EObject from, EObject to) {
Collection c = MyEcoreUtil.getAsCollection(from, fref);
List<Object> targetIds = new ArrayList<Object>();
for (Object o: c) {
EObject eo = (EObject)o;
EAttribute idAttr = null;
if (eo != null && eo.eClass() != null && eo.eClass().getEIDAttribute() != null) {
idAttr = eo.eClass().getEIDAttribute();
}
Collection ids = MyEcoreUtil.getAsCollection(eo, idAttr);
targetIds.addAll(ids);
}
MyEcoreUtil.setAsCollectionBasic(to, attr, targetIds);
}
};
ecoreToXmlChanger.put(ref,poc);
ecoreToXmlChanger.put(attr,poc);
ecoreToXmlFeature.put(ref, attr);
poc = new PartialObjectCopier() {
@Override
public void copyFrom(TransformatorImpl transformator, EObject from, EObject to) {
Collection c = MyEcoreUtil.getAsCollection(from, attr);
List<EObject> targetObjects = new ArrayList<>();
for (Object o: c) {
EObject eo = transformator.getXmlObject(String.valueOf(o));
if (eo != null) {
targetObjects.add(transformator.xml2Eobject(eo));
}
}
MyEcoreUtil.setAsCollectionBasic(to, fref, targetObjects);
}
};
xmlToEcoreChanger.put(attr, poc);
xmlToEcoreChanger.put(ref, poc);
}
if (attr.isID()) {
//Konvertiere jedes Objekt in seine ID
PartialObjectCopier poc = new PartialObjectCopier() {
@Override
public void copyFrom(TransformatorImpl transformator, EObject from, EObject to) {
Collection c = MyEcoreUtil.getAsCollection(from, commonIdAttribute);
MyEcoreUtil.setAsCollectionBasic(to, to.eClass().getEIDAttribute(), c);
}
};
ecoreToXmlChanger.put(commonIdAttribute,poc);
ecoreToXmlChanger.put(attr,poc);
poc = new PartialObjectCopier() {
@Override
public void copyFrom(TransformatorImpl transformator, EObject from, EObject to) {
Collection c = MyEcoreUtil.getAsCollection(from, from.eClass().getEIDAttribute());
MyEcoreUtil.setAsCollectionBasic(to, commonIdAttribute, c);
}
};
xmlToEcoreChanger.put(attr, poc);
xmlToEcoreChanger.put(commonIdAttribute, poc);
}
}
}
public void augmentWithStandardDatatypes() {
//Whenever you have an attribute which is an IDREF, replace it by a reference
for (Entry<EAttribute,EAttributeTransformator> entry: xmlToEcoreAttr.entrySet()) {
EAttribute attr = entry.getKey();
String attrEType = (attr.getEType() != null)?attr.getEType().getName():"";
EAttribute ecoreAttr = entry.getValue().getEcore();
if (ecoreAttr != null) {
String name = attr.getEAttributeType().getName();
String instanceClassName = attr.getEAttributeType().getInstanceClassName();
System.out.println("Have attribute with name "+name+ " of type "+attrEType+" with instance class "+instanceClassName);
//TODO: Warum ist das so? Gibt es auch andere unterschiede?
if ("AnyURI".equals(attrEType)) {
attrEType = "URI";
}
if (store.isStandardDatatype(attrEType)) {
EAnnotation annot = ecoreAttr.getEAnnotation("http://big.tuwien.ac.at/standardXMLDatatype");
if (annot == null) {
ecoreAttr.getEAnnotations().add(annot = EcoreFactory.eINSTANCE.createEAnnotation());
annot.setSource("http://big.tuwien.ac.at/standardXMLDatatype");
}
annot.getDetails().put("type",attrEType);
}
}
}
}
public EAttribute transformatorEcoreAttribute(EClass cl, EAttribute base) {
if (base == commonIdAttribute) {
return realId.getOrDefault(cl,base);
}
return base;
}
public EAttribute getIdAttribute() {
if (commonIdAttribute == null) {
calcId();
}
return commonIdAttribute;
}
private List<Resource> ecoreResources = new ArrayList<Resource>();
private Iterable<EObject> xmlResource;
public EClass getEcoreEClass(EClass xml) {
return xmlToEcoreClasses.get(xml);
}
public EClass getXmlEClass(EClass ecore) {
return ecoreToXmlClasses.get(ecore);
}
public PartialObjectCopier getChangerForXml(EStructuralFeature ecorefeat) {
return ecoreToXmlChanger.get(ecorefeat);
}
public PartialObjectCopier getChangerForEcore(EStructuralFeature xmlfeat) {
return xmlToEcoreChanger.get(xmlfeat);
}
private EAttributeTransformator getTransformatorForXml(EAttribute xml) {
EAttributeTransformator trafo = xmlToEcoreAttr.get(xml);
if (trafo == null) {
String fragment = xml.eResource().getURIFragment(xml);
EObject eobj = fragmentToXmlObject.get(fragment);
EAttributeTransformator ftrafo = xmlToEcoreAttr.get(eobj);
if (ftrafo == null) {
System.err.println("No transformator for "+xml +" found, eobject: " +eobj+"!");
} else {
trafo = new EAttributeTransformatorImpl(xml, ftrafo.getEcore(), ftrafo.getTransformation());
}
}
if (trafo.getEcore().isID() && trafo.getEcore() != commonIdAttribute) {
EAttributeTransformator ftrafo = trafo;
return new EAttributeTransformator() {
@Override
public EAttribute getXml() {
return xml;
}
@Override
public CollectionValueTransformation getTransformation() {
return ftrafo.getTransformation();
}
@Override
public EAttribute getEcore() {
return commonIdAttribute;
}
};
}
return trafo;
}
private EAttributeTransformator getTransformatorForEcore(EClass eClass, EAttribute ecore) {
return ecoreToXmlAttr.get(transformatorEcoreAttribute(eClass,ecore));
}
private EReferenceTransformator getTransformatorForXml(EReference xml) {
EReferenceTransformator trafo = xmlToEcoreRef.get(xml);
if (trafo == null) {
String fragment = xml.eResource().getURIFragment(xml);
EObject eobj = fragmentToXmlObject.get(fragment);
trafo = xmlToEcoreRef.get((EReference)eobj);
if (trafo == null) {
System.err.println("No transformator for "+xml +" found, eobject: " +eobj+"!");
} else {
trafo = new EReferenceTransformatorImpl(xml, trafo.getEcore(), trafo.getTransformation());
}
}
return trafo;
}
private EReferenceTransformator getTransformatorForEcore(EReference ecore) {
return ecoreToXmlRef.get(ecore);
}
private boolean addedAnyAnnotations = false;
private EClass documentRootClassXml;
private EClass rootClassXml;
private EClass rootClassEcore;
private EReference rootReferenceXml;
public void parseXmlEcoreBasic(Resource localEcore, ResourceSet resourceSet, URI targetEcoreUri, Iterable<EObject> xmlResource, boolean generateFile) {
EPackage xmlEPkg = null;
for (EObject eobj: xmlResource) {
if (eobj instanceof EPackage) {
xmlEPkg = (EPackage)eobj;
resourceSet.getPackageRegistry().put(xmlEPkg.getNsURI(), eobj);
}
}
ecorePackage = (EPackage)localEcore.getContents().get(0);
List<EAttribute> eattrs = new ArrayList<>();
List<EReference> erefs = new ArrayList<>();
List<EClass> eclasses = new ArrayList<>();
List<EEnum> eenums = new ArrayList<>();
resourceSet.getPackageRegistry().put(ecorePackage.getNsURI(), ecorePackage);
for (EObject eobj: xmlResource) {
if (eobj.eResource() != null) {
fragmentToXmlObject.put(eobj.eResource().getURIFragment(eobj),eobj);
}
if (eobj instanceof EClass) {
EClass cl = (EClass)eobj;
if (!cl.getName().equals("DocumentRoot")) {
EClass ecoreClass = generateShallowEClass(cl);
eclasses.add(cl);
xmlToEcoreClasses.put(cl, ecoreClass);
ecoreToXmlClasses.put(ecoreClass,cl);
System.out.println("Associating "+ cl+ " to "+ecoreClass);
//Not all, because then we would do something multiple times
for (EAttribute eattr: cl.getEAttributes()) {
xmlToEcoreAttribute.put(eattr, generateShallowAttribute(cl, ecoreClass, eattr));
eattrs.add(eattr);
}
for (EReference eattr: cl.getEReferences()) {
xmlToEcoreReferences.put(eattr, generateShallowReference(cl, ecoreClass, eattr));
erefs.add(eattr);
}
} else {
//Analyze subclass
documentRootClassXml = cl;
rootReferenceXml = TransformatorImpl.getRootFeature(cl);
rootClassXml = rootReferenceXml.getEReferenceType();
}
} else if (eobj instanceof EEnum) {
// EEnum eenum = (EEnum)eobj; // TODO remove unused?
EEnum targetEEnum = generateEEnum((EEnum)eobj);
eenums.add(targetEEnum);
//Ignore for now
} else if (eobj instanceof EDataType) {
//??
} else if (eobj instanceof EAttribute) {
//Have handled every important above?
} else if (eobj instanceof EReference) {
//Have handled every important above?
}
}
rootClassEcore = xmlToEcoreClasses.get(rootClassXml);
for (EClass key: eclasses) {
if (!augmentEClassBasic(key, xmlToEcoreClasses.get(key))) {
//TODO: Das stimmt so nicht ...
xmlToEcoreClasses.remove(key);
}
}
for (EAttribute attr: eattrs) {
if (!augmentAttributeBasic(attr, xmlToEcoreAttribute.get(attr))) {
xmlToEcoreAttribute.remove(attr);
}
}
for (EReference key: erefs) {
if (!augmentReferenceBasic(key, xmlToEcoreReferences.get(key))) {
xmlToEcoreReferences.remove(key);
}
}
buildChangers();
calcId();
augmentWithStandardDatatypes();
if (generateFile) {
try {
int ind = 0;
for (Resource ecoreRes: ecoreResources) {
ecoreRes.save(new FileOutputStream("testoutput"+(++ind)+".ecore"),null);
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
public void parseXmlEcore(Resource localECoreResource, ResourceSet resourceSet, /*String xmlEcoreName, */URI targetEcoreUri, Iterable<EObject> xmlResource, boolean generateFile) {
EPackage xmlEPkg = null;
for (EObject eobj: xmlResource) {
if (eobj instanceof EPackage) {
xmlEPkg = (EPackage)eobj;
resourceSet.getPackageRegistry().put(xmlEPkg.getNsURI(), eobj);
}
}
if (xmlEPkg == null) {
for (EObject eobj: xmlResource) {
System.out.println("Found object: "+eobj);
}
}
if (localECoreResource == null) {
localECoreResource = targetEcoreUri==null?new XMIResourceImpl(): new XMIResourceImpl(
resourceSet.getURIConverter().normalize(targetEcoreUri)
);
this.ecoreResources.add(localECoreResource);
ecorePackage = EcoreFactory.eINSTANCE.createEPackage();
ecorePackage.setNsURI(xmlEPkg.getNsURI()+"simplified");
//epkg.setNsURI(xmlEPkg.getNsURI()+"-simplified");
//String xmlEcoreShortName = xmlEcoreName.split("\\.", 2)[0];
ecorePackage.setName((xmlEPkg.getName()+"Simplified").replace(".", ""));
ecorePackage.setNsPrefix(xmlEPkg.getNsPrefix()+"s");
localECoreResource.getContents().add(ecorePackage);
} else {
ecorePackage = (EPackage)localECoreResource.getContents().get(0);
}
List<EAttribute> eattrs = new ArrayList<>();
List<EReference> erefs = new ArrayList<>();
List<EClass> eclasses = new ArrayList<>();
List<EEnum> eenums = new ArrayList<>();
resourceSet.getPackageRegistry().put(ecorePackage.getNsURI(), ecorePackage);
for (EObject eobj: xmlResource) {
if (eobj.eResource() != null) {
fragmentToXmlObject.put(eobj.eResource().getURIFragment(eobj),eobj);
}
if (eobj instanceof EClass) {
EClass cl = (EClass)eobj;
if (!cl.getName().equals("DocumentRoot")) {
EClass ecoreClass = generateShallowEClass(cl);
eclasses.add(cl);
xmlToEcoreClasses.put(cl, ecoreClass);
ecoreToXmlClasses.put(ecoreClass,cl);
System.out.println("Associating "+ cl+ " to "+ecoreClass);
//Not all, because then we would do something multiple times
for (EAttribute eattr: cl.getEAttributes()) {
xmlToEcoreAttribute.put(eattr, generateShallowAttribute(cl, ecoreClass, eattr));
eattrs.add(eattr);
}
for (EReference eattr: cl.getEReferences()) {
xmlToEcoreReferences.put(eattr, generateShallowReference(cl, ecoreClass, eattr));
erefs.add(eattr);
}
ecorePackage.getEClassifiers().add(ecoreClass);
} else {
//Analyze subclass
if (rootReferenceXml == null) {
rootReferenceXml = TransformatorImpl.getRootFeature(cl);
if (rootReferenceXml != null) {
rootClassXml = rootReferenceXml.getEReferenceType();
documentRootClassXml = cl;
}
}
}
} else if (eobj instanceof EEnum) {
// EEnum eenum = (EEnum)eobj; // TODO remove unused?
EEnum targetEEnum = generateEEnum((EEnum)eobj);
ecorePackage.getEClassifiers().add(targetEEnum);
eenums.add(targetEEnum);
//Ignore for now
} else if (eobj instanceof EDataType) {
//???
} else if (eobj instanceof EAttribute) {
//Have handled every important above?
} else if (eobj instanceof EReference) {
//Have handled every important above?
}
}
rootClassEcore = xmlToEcoreClasses.get(rootClassXml);
for (EClass key: eclasses) {
if (!augmentEClass(key, xmlToEcoreClasses.get(key))) {
//TODO: Das stimmt so nicht ...
xmlToEcoreClasses.remove(key);
}
}
for (EAttribute attr: eattrs) {
if (!augmentAttribute(attr, xmlToEcoreAttribute.get(attr))) {
xmlToEcoreAttribute.remove(attr);
}
}
for (EReference key: erefs) {
if (!augmentReference(key, xmlToEcoreReferences.get(key))) {
xmlToEcoreReferences.remove(key);
}
}
//Add OCL expressions
for (EObject eobj: xmlResource) {
parseExtendedMetadata(eobj);
}
if (addedAnyAnnotations) {
EAnnotation annot = ecorePackage.getEAnnotation("http://www.eclipse.org/emf/2002/Ecore");
if (annot == null) {
annot = EcoreFactory.eINSTANCE.createEAnnotation();
annot.setSource("http://www.eclipse.org/emf/2002/Ecore");
ecorePackage.getEAnnotations().add(annot);
}
annot.getDetails().put("invocationDelegates","http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot");
annot.getDetails().put("settingDelegates","http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot");
annot.getDetails().put("validationDelegates","http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot");
}
buildChangers();
calcId();
augmentWithStandardDatatypes();
if (generateFile) {
try {
int ind = 0;
for (Resource ecoreRes: ecoreResources) {
ecoreRes.save(new FileOutputStream("testoutput"+(++ind)+".ecore"),null);
}
} catch (IOException e) {
e.printStackTrace();
}
}
}
public void parseXmlEcore(ResourceSet resourceSet, File xmlEcore) {
Resource.Factory.Registry reg = resourceSet.getResourceFactoryRegistry();
reg.getExtensionToFactoryMap().put(
"xmi",
new XMIResourceFactoryImpl());
reg.getExtensionToFactoryMap().put(
"ecore",
new EcoreResourceFactoryImpl());
//Register ecore file
final ExtendedMetaData extendedMetaData = new BasicExtendedMetaData(resourceSet.getPackageRegistry());
resourceSet.getLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, extendedMetaData);
Resource res = resourceSet.getResource(resourceSet.getURIConverter().normalize(URI.createFileURI(xmlEcore.getAbsolutePath())), true);
this.xmlResource = ()->res.getAllContents();
parseXmlEcore(null,resourceSet, URI.createFileURI(xmlEcore.getAbsolutePath()+".simple.ecore"), xmlResource, true);
}
public void parseExtendedMetadata(EClass xml, EClass ecore) {
}
public String toFirstUpper(String str) {
if (str.length() <= 1) {
return str.toUpperCase();
}
return Character.toUpperCase(str.charAt(0))+str.substring(1);
}
public void parseExtendedMetadata(EAttribute xmlAttr, EAttribute ecoreAttr, EClass xmlClass, EClass ecoreClass) {
if (ecoreAttr == null) {
System.err.println("No attribute matching for "+xmlAttr);
return;
}
EDataType dataType = xmlAttr.getEAttributeType();
//Also parse that
for (EAnnotation dataTypeAnnot: dataType.getEAnnotations()) {
System.out.println("DataTypeAnnotation: "+dataTypeAnnot.getSource());
if ("http:///org/eclipse/emf/ecore/util/ExtendedMetaData".equals(dataTypeAnnot.getSource())) {
String pattern = dataTypeAnnot.getDetails().get("pattern");
EAnnotation additonal = ecoreClass.getEAnnotation("http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot");
/* <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
<details key="constraints" value="sameServics goodSpeed onlyOneImportant backupDifferent"/>
</eAnnotations>
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot">
<details key="sameServics" value="backup = null or backup.services->includesAll(services)"/>
<details key="goodSpeed" value="designSpeed <= server.speed->sum()"/>
<details key="onlyOneImportant" value="services->select(s | s.type = ServiceType::IMPORTANT)->size() <= 1"/>
<details key="backupDifferent" value="backup <> self"/>
</eAnnotations>*/
boolean needAdd = false;
boolean needAdd2 = false;
String curConstraints = "";
if (additonal == null) {
needAdd = true;
additonal = EcoreFactory.eINSTANCE.createEAnnotation();
additonal.setSource("http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot");
}
EAnnotation general = ecoreClass.getEAnnotation("http://www.eclipse.org/emf/2002/Ecore");
if (general != null) {
curConstraints = general.getDetails().get("constraints");
if (curConstraints == null) {
curConstraints = "";
}
} else {
needAdd2 = true;
general = EcoreFactory.eINSTANCE.createEAnnotation();
general.setSource("http://www.eclipse.org/emf/2002/Ecore");
}
String prepend = "self."+ecoreAttr.getName()+(MyEcoreUtil.isMany(ecoreAttr)?"->forAll(x | x":"");
String postpend = MyEcoreUtil.isMany(ecoreAttr)?")":"";
if (pattern != null) {
// 162 occurrences in eclass case study, but where do they all come from? there are only 84 occurrences of restrictions, which are not enumerations or length, and 143 in total
EAnnotation typeAnnotation = ((EClass) xmlAttr.eContainer()).getEAnnotations().get(0);
restrictedDatatypes.put(typeAnnotation.getDetails().get("name"), xmlAttr.getEAttributeType().getName());
String constraintName = "pattern"+toFirstUpper(ecoreAttr.getName());
String constraintValue = null;
constraintValue = ".matches('"+StringEscapeUtils.unescapeXml(pattern).replace("%20"," ").replace("\\", "\\\\").replace("'", "\\\"")+"')";
String[] baseConstraintValues = pattern.split("\\ ");
StringBuilder totalValue = new StringBuilder();
for (int bc = 0; bc < baseConstraintValues.length; ++bc) {
if (bc > 0) {
totalValue.append(" or ");
}
String spattern = baseConstraintValues[bc];
constraintValue = ".matches('"+StringEscapeUtils.unescapeXml(spattern).replace("%20"," ").replace("\\", "\\\\").replace("'", "\\\"")+"')";
String newValue = prepend+constraintValue+postpend;
totalValue.append(newValue);
}
String totalString = totalValue.toString();
if (xmlAttr.getLowerBound() == 0 && !xmlAttr.isMany() && baseConstraintValues.length > 0) {
totalString = "("+prepend+"=null) or "+totalString;
}
additonal.getDetails().put(constraintName, totalString);
curConstraints = curConstraints+ " "+constraintName;
}
String minLength = dataTypeAnnot.getDetails().get("minLength");
if (minLength != null) {
String constraintName = "minLength"+toFirstUpper(ecoreAttr.getName());
String constraintValue = ".size() >= "+minLength;
String prefix = (!xmlAttr.isMany()&&xmlAttr.getLowerBound()==0)?("("+prepend + " = null) or " + prepend):prepend;
additonal.getDetails().put(constraintName, prefix+constraintValue+postpend);
curConstraints = curConstraints+ " "+constraintName;
}
String maxLength = dataTypeAnnot.getDetails().get("maxLength");
if (maxLength != null) {
String constraintName = "maxLength"+toFirstUpper(ecoreAttr.getName());
String constraintValue = ".size() <= "+maxLength;
String prefix = (!xmlAttr.isMany()&&xmlAttr.getLowerBound()==0)?("("+prepend + " = null) or " + prepend):prepend;
additonal.getDetails().put(constraintName, prefix+constraintValue+postpend);
curConstraints = curConstraints+ " "+constraintName;
}
general.getDetails().put("constraints", curConstraints.trim());
if (needAdd2 && !curConstraints.trim().isEmpty()) {
ecoreClass.getEAnnotations().add(general);
}
if (needAdd && !additonal.getDetails().isEmpty()) {
ecoreClass.getEAnnotations().add(additonal);
addedAnyAnnotations = true;
}
}
}
}
public void parseExtendedMetadata(EReference xmlAttr, EReference ecoreAttr, EClass xmlClass, EClass ecoreClass) {
}
public void parseExtendedMetadata(EEnum xmlEnum, EEnum ecoreEnum) {
}
public void parseExtendedMetadata(EObject eobj) {
if (eobj instanceof EClass) {
parseExtendedMetadata((EClass)eobj,(EClass)xmlToEcoreClasses.get(eobj));
} else if (eobj instanceof EStructuralFeature) {
EStructuralFeature esf = (EStructuralFeature)eobj;
EClass srcCl = esf.getEContainingClass();
EClass trgCl = xmlToEcoreClasses.get(srcCl);
if (eobj instanceof EAttribute) {
parseExtendedMetadata((EAttribute)eobj,
(EAttribute)xmlToEcoreAttribute.get(eobj),srcCl,trgCl );
} else {
parseExtendedMetadata((EReference)eobj,
(EReference)xmlToEcoreReferences.get(eobj),srcCl,trgCl );
}
} else if (eobj instanceof EEnum) {
parseExtendedMetadata((EEnum)eobj,this.copiedEEnums.get(eobj));
}
}
public SingleObjectTransformator matchingObjectTransformation = new SingleObjectTransformator() {
@Override
public EObject convertToXml(EObject eobject, Transformator transformator) {
return transformator.eobject2xml(eobject);
}
@Override
public EObject convertToEcore(EObject xml, Transformator transformator) {
return transformator.xml2Eobject(xml);
}
};
private void setSimple(EStructuralFeature xmlFeature, EStructuralFeature target) {
target.setChangeable(true);
target.setLowerBound(xmlFeature.getLowerBound());
target.setUpperBound(xmlFeature.getUpperBound());
target.setOrdered(xmlFeature.isOrdered());
target.setTransient(false);
target.setUnique(xmlFeature.isUnique());
target.setVolatile(false);
}
public EEnum generateEEnum(EEnum from) {
EEnum ret = copiedEEnums.get(from);
if (ret != null) {
return ret;
}
copiedEEnums.put(from, ret = EcoreFactory.eINSTANCE.createEEnum());
ret.setName(from.getName());
for (EEnumLiteral lit: from.getELiterals()) {
EEnumLiteral target = copiedEEnumLiterals.get(lit);
if (target == null) {
copiedEEnumLiterals.put(lit, target = EcoreFactory.eINSTANCE.createEEnumLiteral());
backEEnumLiteral.put(target, lit);
backEEnumLiteralStr.put(from.getName()+"."+lit.getLiteral(), lit);
target.setLiteral(lit.getLiteral());
target.setName(lit.getName());
target.setValue(lit.getValue());
}
ret.getELiterals().add(target);
}
return ret;
}
public ValueTransformator<Object, Object> eenumTransformator(EEnum forEEnum) {
return new ValueTransformator<Object,Object>() {
@Override
public Object convertToEcore(Object xml) {
System.err.println("Convert to ecore needs to be reworked: was enumliteral->enumliteral, but appearanly others can be there too");
Object ret = copiedEEnumLiterals.get(xml);
if (ret == null && xml instanceof EEnumLiteral) {
String fragment = ((EEnumLiteral)xml).eResource().getURIFragment((EEnumLiteral)xml);
EObject eobj = fragmentToXmlObject.get(fragment);
ret = copiedEEnumLiterals.get(eobj);
} else {
// ret = ret;//xml; //Try?? TODO remove no-effect statement?
}
return ret;
}
@Override
public Object convertToXml(Object eobject) {
Object ret = backEEnumLiteral.get(eobject);
if (ret == null && eobject instanceof Enumerator) {
Enumerator enumerator = (Enumerator)eobject;
String totalStr = forEEnum.getName()+"."+enumerator.getLiteral();
ret = backEEnumLiteralStr.get(totalStr);
}
return ret;
}
};
}
public boolean augmentAttributeBasic(EAttribute xmlAttribute, EAttribute ecoreAttribute) {
EClass contCl = xmlToEcoreClasses.get(xmlAttribute.getEContainingClass());
if (contCl == null) {
System.err.println("No matching source found for "+xmlAttribute);
return false;
}
if (xmlAttribute.getEAttributeType() instanceof EEnum) {
//Directly reuse that enum (is this supported in the grammar?)
EEnum targetEEnum = copiedEEnums.get(xmlAttribute.getEAttributeType());
if (targetEEnum == null) {
System.err.println("I have not copied the eenum "+xmlAttribute.getEAttributeType());
return false;
} else {
EAttributeTransformatorImpl tfi = new EAttributeTransformatorImpl(xmlAttribute, ecoreAttribute,
new CollectionValueTransformationImpl(EEnumLiteral.class,
EEnumLiteral.class, eenumTransformator(targetEEnum)));
xmlToEcoreAttr.put(xmlAttribute, tfi);
ecoreToXmlAttr.put(ecoreAttribute, tfi);
return true;
}
}
CollectionValueTransformation trafo = store.getValueTransformationOrNull(xmlAttribute);
if (trafo == null) {
Boolean ret = checkMixedAttribute(contCl,xmlAttribute);
if (ret != null) {
return ret;
}
System.err.println("No transformation found for "+xmlAttribute);
return false;
}
EAttributeTransformatorImpl tfi = new EAttributeTransformatorImpl(xmlAttribute, ecoreAttribute, trafo);
xmlToEcoreAttr.put(xmlAttribute, tfi);
ecoreToXmlAttr.put(ecoreAttribute, tfi);
return true;
}
//There is no need to be a 1:1 correspondance!
public EStructuralFeature getXmlFeature(EStructuralFeature ecoreFeature) {
//Check id
if (java.util.Objects.equals(ecoreFeature,commonIdAttribute)) {
ecoreFeature = realId.getOrDefault(ecoreFeature,(EAttribute)ecoreFeature);
}
//Check reference - not necessary, I added it to ecoreToXmlFeature!
return ecoreToXmlFeature.get(ecoreFeature);
}
public Object getXmlValue(EObject eobj, EStructuralFeature ecoreFeature, int index) {
Collection col = MyEcoreUtil.getAsCollection(eobj, getXmlFeature(ecoreFeature));
if (col instanceof List) {
return ((List)col).get(index);
} else {
Object ret = null;
Iterator iter = col.iterator();
while (index >= 0) {
if (iter.hasNext()) {
ret = iter.next();
} else {
if (ecoreFeature instanceof EAttribute) {
EDataType dt = ((EAttribute)ecoreFeature).getEAttributeType();
ret = dt.getDefaultValue();
} else {
EReference ref = (EReference)ecoreFeature;
ret = MyEcoreUtil.createInstanceStatic(ref.getEReferenceType());
}
}
--index;
}
return ret;
}
}
public Boolean checkMixedAttribute(EClass contCl, EAttribute xmlAttribute) {
EDataType dt = xmlAttribute.getEAttributeType();
if (dt != null && "EFeatureMapEntry".equals(dt.getName()) && "mixed".equals(xmlAttribute.getName())) {
generateMixClasses();
contCl.getESuperTypes().add(mixedBaseClass);
PartialObjectCopier poc = new PartialObjectCopier() {
@Override
public void copyFrom(TransformatorImpl transformator, EObject from, EObject to) {
//This must NOT refer to ecoreAttribute!! //TODO: Store in a map or something like that ...
//Because there is only one target attribute
EStructuralFeature ecoreAttribute = from.eClass().getEStructuralFeature("mixed");
Collection c = MyEcoreUtil.getAsCollection(from, ecoreAttribute);
Collection t = MyEcoreUtil.getAsCollection(to, mixedBaseMixedAttr);
t.clear();
for (Object o: c) {
FeatureMap.Entry entry = (FeatureMap.Entry)o;
EStructuralFeature esf = entry.getEStructuralFeature();
if (esf.getEContainingClass().isSuperTypeOf(from.eClass())) {
//It is a class attribute
EObject feature = MyEcoreUtil.createInstanceStatic(mixedFeature);
feature.eSet(mixedValueAttr, getTargetName(esf));
t.add(feature);
} else if ("text".equals(esf.getName())) { //TODO: Improve filtering
//It is a string literal
EObject feature = MyEcoreUtil.createInstanceStatic(mixedText);
feature.eSet(mixedValueAttr, entry.getValue());
t.add(feature);
} else {
//TODO: Implement me
throw new RuntimeException(new UnsupportedDataTypeException("I currently only support text features and owned structural features in mixed content"));
}
}
}
};
//1. Add Object-Delta of this object (!) - this is automatically done by other methods
//2. Add Feature-Map-Delta of this object, so this POC has to be executed last
//Ist ok, da das Attribut bekannt ist, kann man es ja im transformer sp�ter ausf�hren, muss nur
//das letzte pro objekt sein!
xmlToEcoreChanger.put(xmlAttribute, poc);
xmlToEcoreChanger.put(mixedBaseMixedAttr, poc);
PartialObjectCopier ecoreToXmlPoc = new PartialObjectCopier() {
@Override
public void copyFrom(TransformatorImpl transformator, EObject ecore, EObject xml) {
//This must NOT use any of this attributes since it must be generic!
Collection c = MyEcoreUtil.getAsCollection(ecore, mixedBaseMixedAttr);
EStructuralFeature xmlFeature = xml.eClass().getEStructuralFeature("mixed");
List t = new ArrayList<>();
//TODO: Ber�cksichtige gleich, wenn das target eine Sequence ist ...
Map<EStructuralFeature,Integer> usedIndices = new HashMap<EStructuralFeature, Integer>();
for (Object o: c) {
EObject eo = (EObject)o;
if (mixedFeature.isSuperTypeOf(eo.eClass())) {
EStructuralFeature ecorefeat = ecore.eClass().getEStructuralFeature((String)eo.eGet(mixedValueAttr));
//Jetzt brauche ich aber den korrespondierenden Wert (und das korrespondierende Feature)
//Wenn es eine Referenz ist, ist das vielleicht nicht gespeichert
EStructuralFeature xmlFeat = getXmlFeature(ecorefeat);
Integer index = usedIndices.getOrDefault(xmlFeat, 0);
Object value = getXmlValue(xml, ecorefeat, index);
FeatureMap.Entry entry = FeatureMapUtil.createEntry(xmlFeat, value);
usedIndices.put(xmlFeat, index+1);
t.add(entry);
} else if (mixedText.isSuperTypeOf(eo.eClass())) {
FeatureMap.Entry entry = FeatureMapUtil.createTextEntry((String)eo.eGet(mixedValueAttr));
t.add(entry);
}
}
//Add remaining features
for (EStructuralFeature esf: xml.eClass().getEAllStructuralFeatures()) {
if (isMixed(esf)) {continue;}
Integer curIndex = usedIndices.getOrDefault(esf, 0);
Collection col = MyEcoreUtil.getAsCollection(xml, esf);
Iterator iter = col.iterator();
int lind = 0;
while (iter.hasNext() && lind < curIndex) {
iter.next();
}
while(iter.hasNext()) {
FeatureMap.Entry entry = FeatureMapUtil.createEntry(esf, iter.next());
t.add(entry);
}
}
MyEcoreUtil.setAsCollectionBasic(xml, xmlFeature, t);
}
};
ecoreToXmlChanger.put(xmlAttribute, ecoreToXmlPoc);
ecoreToXmlChanger.put(mixedBaseMixedAttr, ecoreToXmlPoc);
return false; //Remove this attribute because it is replaced!
}
return null;
}
public boolean augmentAttribute(EAttribute xmlAttribute, EAttribute ecoreAttribute) {
if (handledTargets.contains(ecoreAttribute)) {
return augmentAttributeBasic(xmlAttribute, ecoreAttribute);
}
EClass contCl = xmlToEcoreClasses.get(xmlAttribute.getEContainingClass());
if (xmlAttribute.getName().contains("pages")) {
System.out.println("Pages found!");
}
if (contCl == null) {
System.err.println("No matching source found for "+xmlAttribute);
return false;
}
if (xmlAttribute.getEAttributeType() instanceof EEnum) {
//Directly reuse that enum (is this supported in the grammar?)
EEnum targetEEnum = copiedEEnums.get(xmlAttribute.getEAttributeType());
if (targetEEnum == null) {
System.err.println("I have not copied the eenum "+xmlAttribute.getEAttributeType());
return false;
} else {
ecoreAttribute.setEType(targetEEnum);
contCl.getEStructuralFeatures().add(ecoreAttribute);
EAttributeTransformatorImpl tfi = new EAttributeTransformatorImpl(xmlAttribute, ecoreAttribute,
new CollectionValueTransformationImpl(EEnumLiteral.class,
EEnumLiteral.class, eenumTransformator(targetEEnum)));
xmlToEcoreAttr.put(xmlAttribute, tfi);
ecoreToXmlAttr.put(ecoreAttribute, tfi);
// EObject eobj; // TODO remove unused?
return true;
}
}
CollectionValueTransformation trafo = store.getValueTransformationOrNull(xmlAttribute);
if (trafo == null) {
//Check special case: mixed + EFeatureMapEntry
Boolean ret = checkMixedAttribute(contCl,xmlAttribute);
if (ret != null) {
return ret;
}
System.err.println("Cannot translate attribute "+xmlAttribute.getEContainingClass().getName()+"."+xmlAttribute.getName()+" of type "+xmlAttribute.getEAttributeType()+" (cannot find transformator)");
return false;
}
EDataType dt = store.getStandardDatatypeOrNull(trafo.getEcoreClass());
if (dt == null) {
System.err.println("Cannot translate attribute "+xmlAttribute.getEContainingClass().getName()+"."+xmlAttribute.getName()+" of type "+xmlAttribute.getEAttributeType()+" (cannot transform datatype)");
return false;
}
EAttributeTransformatorImpl tfi = new EAttributeTransformatorImpl(xmlAttribute, ecoreAttribute, trafo);
xmlToEcoreAttr.put(xmlAttribute, tfi);
ecoreToXmlAttr.put(ecoreAttribute, tfi);
ecoreAttribute.setEType(dt);
contCl.getEStructuralFeatures().add(ecoreAttribute);
return true;
}
public boolean augmentReferenceBasic(EReference xmlReference, EReference ecoreReference) {
EClass contCl = xmlToEcoreClasses.get(xmlReference.getEContainingClass());
if (contCl == null) {
System.err.println("No matching source found for "+xmlReference);
return false;
}
EClass targetClass = xmlToEcoreClasses.get(xmlReference.getEReferenceType());
if (targetClass == null) {
System.err.println("No matching type found for "+xmlReference.getEContainingClass().getName()+"."+xmlReference.getName()+" ("+xmlReference.getEReferenceType()+")");
return false;
}
EReferenceTransformatorImpl tfi = new EReferenceTransformatorImpl(xmlReference, ecoreReference,
new SingleBasedCollectionObjectTransformation(new InformatedSingleObjectTransformation(xmlReference.getEReferenceType(),
ecoreReference.getEReferenceType(), matchingObjectTransformation)));
xmlToEcoreRef.put(xmlReference, tfi);
ecoreToXmlRef.put(ecoreReference, tfi);
//contCl.getEStructuralFeatures().add(ecoreReference);
return true;
}
public boolean augmentReference(EReference xmlReference, EReference ecoreReference) {
if (handledTargets.contains(ecoreReference)) {
return augmentReferenceBasic(xmlReference, ecoreReference);
}
EClass contCl = xmlToEcoreClasses.get(xmlReference.getEContainingClass());
if (contCl == null) {
System.err.println("No matching source found for "+xmlReference);
return false;
}
EClass targetClass = xmlToEcoreClasses.get(xmlReference.getEReferenceType());
if (targetClass == null) {
System.err.println("No matching type found for "+xmlReference.getEContainingClass().getName()+"."+xmlReference.getName()+" ("+xmlReference.getEReferenceType()+")");
return false;
}
ecoreReference.setEType(targetClass);
EReferenceTransformatorImpl tfi = new EReferenceTransformatorImpl(xmlReference, ecoreReference,
new SingleBasedCollectionObjectTransformation(new InformatedSingleObjectTransformation(xmlReference.getEReferenceType(),
ecoreReference.getEReferenceType(), matchingObjectTransformation)));
xmlToEcoreRef.put(xmlReference, tfi);
ecoreToXmlRef.put(ecoreReference, tfi);
contCl.getEStructuralFeatures().add(ecoreReference);
return true;
}
public boolean augmentEClass(EClass xmlClass, EClass ecoreClass) {
if (handledTargets.contains(ecoreClass)) {
return augmentEClassBasic(xmlClass, ecoreClass);
}
for (EClass superType: xmlClass.getESuperTypes()) {
EClass ecoreSup = xmlToEcoreClasses.get(superType);
ecoreClass.getESuperTypes().add(ecoreSup);
}
//Ich glaube sonst ist nichts zu tun?
return true;
}
public boolean augmentEClassBasic(EClass xmlClass, EClass ecoreReference) {
return true;
}
public String getTargetName(EStructuralFeature xmlFeature){
String targetName = xmlFeature.getName();
if (xmlFeature.isMany() && !targetName.endsWith("s")) {
targetName = targetName+"s";
}
return targetName;
}
public String getEcoreAttributeName(EStructuralFeature xmlFeature) {
return getTargetName(xmlFeature);
}
public EAttribute generateShallowAttribute(EClass xmlClass, EClass ecoreClass, EAttribute xmlAttribute) {
String featName = getTargetName(xmlAttribute);
Object existing = getIfExists(ecoreClass.getName()+"."+featName);
EAttribute target = (existing instanceof EAttribute)?((EAttribute)existing):null;
if (target == null) {
target = EcoreFactory.eINSTANCE.createEAttribute();
target.setName(featName);
setSimple(xmlAttribute, target);
target.setID(xmlAttribute.isID());
}
ecoreToXmlFeature.put(target, xmlAttribute);
return target;
}
public void fixOpposites() {
//Don't fix it since it can't be handled by XText!
}
public EReference generateShallowReference(EClass xmlClass, EClass ecoreClass, EReference xmlReference) {
String featName = getTargetName(xmlReference);
EReference target = (EReference)getIfExists(ecoreClass.getName()+"."+featName);
if (target == null) {
target = EcoreFactory.eINSTANCE.createEReference();
target.setName(featName);
setSimple(xmlReference, target);
target.setContainment(xmlReference.isContainment());
}
ecoreToXmlFeature.put(target, xmlReference);
return target;
}
public String getEcoreClassName(EClass xmlClass) {
String targetName = xmlClass.getName();
if (targetName.endsWith("Type")) {
//targetName = targetName.substring(0,targetName.length()-"Type".length());
}
return targetName;
}
public EClass generateShallowEClass(EClass xmlClass) {
String targetName = getEcoreClassName(xmlClass);
EClass target = (EClass)getIfExists(targetName);
if (target == null) {
target = EcoreFactory.eINSTANCE.createEClass();
target.setName(targetName);
}
return target;
}
// TODO move this to a test class
public static void main(String[] args) {
TypeTransformatorStore store = new TypeTransformatorStore();
ResourceSet basicSet = new ResourceSetImpl();
TransformatorStructure structure = new TransformatorStructure(store, basicSet, new File("library3-base.ecore"));
}
public EObject getXmlEObject(String uriFragment) {
return fragmentToXmlObject.get(uriFragment);
}
public EClass getDocumentRoot() {
return documentRootClassXml;
}
public EClass getXmlRoot() {
return rootClassXml;
}
public EReference getXmlRootReference() {
return rootReferenceXml;
}
public EClass getEcoreRoot() {
return rootClassEcore;
}
public List<Resource> getEcoreResources() {
return ecoreResources;
}
}
| patrickneubauer/XMLIntellEdit | xmlintelledit/xmltext/src/main/java/at/ac/tuwien/big/xmlintelledit/xmltext/ecoretransform/impl/TransformatorStructure.java | Java | mit | 62,302 |
#import "MOBProjection.h"
@interface MOBProjectionEPSG102713 : MOBProjection
@end
| jkdubr/Proj4 | Pod/Classes/Projection/MOBProjectionEPSG102713.h | C | mit | 84 |
require 'rails_helper'
RSpec.describe Scrap, :type => :model do
context 'factories' do
it 'valid' do
expect(build(:scrap)).to be_valid
end
end
context 'validation' do
it { is_expected.to validate_presence_of(:message) }
end
end
| ppdeassis/scrapbook | spec/models/scrap_spec.rb | Ruby | mit | 257 |
#ifndef __UIDICTIONARY_H
#define __UIDICTIONARY_H
#include <System/Tools/Array.h>
#include <System/Tools/HashHelper.h>
namespace suic
{
template<typename TKey, typename TValue, typename Comparer>
class Dictionary1
{
public:
Dictionary1()
{
Initialize(0);
}
Dictionary1(int capacity)
{
Initialize(capacity);
}
public:
void Add(TKey key, TValue value)
{
Insert(key, value, true);
}
bool Remove(TKey key)
{
if (_buckets.Length() > 0)
{
int num = _comparer.GetHashCode(key) & 0x7fffffff;
int index = num % _buckets.length;
int num3 = -1;
for (int i = _buckets[index]; i >= 0; i = _entries[i].next)
{
if ((_entries[i].hashCode == num) && _comparer.Equals(_entries[i].key, key))
{
if (num3 < 0)
{
_buckets[index] = _entries[i].next;
}
else
{
_entries[num3].next = _entries[i].next;
}
_entries[i].hashCode = -1;
_entries[i].next = freeList;
OnCleanPair(_entries[i]);
_entries[i].key = TKey();
_entries[i].value = TValue();
freeList = i;
freeCount++;
version++;
return true;
}
num3 = i;
}
}
return false;
}
bool TryGetValue(TKey key, TValue& value)
{
int index = FindEntry(key);
if (index >= 0)
{
value = _entries[index].value;
return true;
}
else
{
value = TValue();
return false;
}
}
void Clear()
{
if (count > 0)
{
for (int i = 0; i < _buckets.length; i++)
{
_buckets[i] = -1;
}
for (int i = 0; i < _entries.Length(); ++i)
{
if (_entries[i].hashCode > 0)
{
OnCleanPair(_entries[i]);
}
}
_entries.Clear();
freeList = -1;
count = 0;
freeCount = 0;
version++;
}
}
bool ContainsKey(TKey key)
{
return (FindEntry(key) >= 0);
}
private:
int FindEntry(TKey key)
{
if (_buckets.Length() > 0)
{
int num = _comparer.GetHashCode(key) & 0x7fffffff;
for (int i = _buckets[num % _buckets.length]; i >= 0; i = _entries[i].next)
{
if ((_entries[i].hashCode == num) && _comparer.Equals(_entries[i].key, key))
{
return i;
}
}
}
return -1;
}
void Initialize(int capacity)
{
int prime = HashHelper::GetPrime(capacity);
_buckets.Resize(prime);
for (int i = 0; i < _buckets.length; i++)
{
_buckets[i] = -1;
}
_entries.Resize(prime);
freeList = -1;
}
void Insert(TKey key, TValue value, bool add)
{
int freeList = 0;
if (_buckets.Length() == 0)
{
Initialize(1);
}
int num = _comparer.GetHashCode(key) & 0x7fffffff;
int index = num % _buckets.length;
int num3 = 0;
for (int i = _buckets[index]; i >= 0; i = _entries[i].next)
{
if ((_entries[i].hashCode == num) && _comparer.Equals(_entries[i].key, key))
{
// ÒѾ´æÔÚ
if (add)
{
throw InvalidOperationException(_U("Key of dictionary is exist!"), __FILELINE__);
}
_entries[i].value = value;
version++;
OnReplaceItem(_entries[i], value);
return;
}
num3++;
}
if (freeCount > 0)
{
freeList = freeList;
freeList = _entries[freeList].next;
freeCount--;
}
else
{
if (count == _entries.length)
{
Resize();
index = num % _buckets.length;
}
freeList = count;
count++;
}
_entries[freeList].hashCode = num;
_entries[freeList].next = _buckets[index];
_entries[freeList].key = key;
_entries[freeList].value = value;
_buckets[index] = freeList;
version++;
OnAddPair(_entries[freeList]);
}
private:
void Resize()
{
Resize(HashHelper::ExpandPrime(count), false);
}
void Resize(int newSize, bool forceNewHashCodes)
{
ArrayType<int> numArray;
numArray.Resize(newSize);
for (int i = 0; i < numArray.length; i++)
{
numArray[i] = -1;
}
_entries.Resize(newSize);
if (forceNewHashCodes)
{
for (int k = 0; k < count; k++)
{
if (_entries[k].hashCode != -1)
{
_entries[k].hashCode = _comparer.GetHashCode(_entries[k].key) & 0x7fffffff;
}
}
}
for (int j = 0; j < count; j++)
{
int index = _entries[j].hashCode % newSize;
_entries[j].next = numArray[index];
numArray[index] = j;
}
_buckets.Attach(numArray);
}
protected:
virtual void OnCleanPair(Entry<TKey, TValue>& val) {}
virtual void OnAddPair(Entry<TKey, TValue>& val) {}
virtual void OnReplaceItem(Entry<TKey, TValue>& oldVal, TValue newVal) {}
private:
int count;
int version;
int freeList;
int freeCount;
Comparer _comparer;
ArrayType<int> _buckets;
ArrayType<Entry<TKey, TValue> > _entries;
};
}
#endif
| china20/MPFUI | include/suic/System/Tools/Dictionary.h | C | mit | 6,080 |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/trafficgraphwidget.h>
#include <interfaces/node.h>
#include <qt/clientmodel.h>
#include <QColor>
#include <QPainter>
#include <QPainterPath>
#include <QTimer>
#include <cmath>
#define DESIRED_SAMPLES 800
#define XMARGIN 10
#define YMARGIN 10
TrafficGraphWidget::TrafficGraphWidget(QWidget *parent)
: QWidget(parent), timer(nullptr), fMax(0.0f), nMins(0), vSamplesIn(),
vSamplesOut(), nLastBytesIn(0), nLastBytesOut(0), clientModel(nullptr) {
timer = new QTimer(this);
connect(timer, &QTimer::timeout, this, &TrafficGraphWidget::updateRates);
}
void TrafficGraphWidget::setClientModel(ClientModel *model) {
clientModel = model;
if (model) {
nLastBytesIn = model->node().getTotalBytesRecv();
nLastBytesOut = model->node().getTotalBytesSent();
}
}
int TrafficGraphWidget::getGraphRangeMins() const {
return nMins;
}
void TrafficGraphWidget::paintPath(QPainterPath &path, QQueue<float> &samples) {
int sampleCount = samples.size();
if (sampleCount > 0) {
int h = height() - YMARGIN * 2, w = width() - XMARGIN * 2;
int x = XMARGIN + w;
path.moveTo(x, YMARGIN + h);
for (int i = 0; i < sampleCount; ++i) {
x = XMARGIN + w - w * i / DESIRED_SAMPLES;
int y = YMARGIN + h - (int)(h * samples.at(i) / fMax);
path.lineTo(x, y);
}
path.lineTo(x, YMARGIN + h);
}
}
void TrafficGraphWidget::paintEvent(QPaintEvent *) {
QPainter painter(this);
painter.fillRect(rect(), Qt::black);
if (fMax <= 0.0f) {
return;
}
QColor axisCol(Qt::gray);
int h = height() - YMARGIN * 2;
painter.setPen(axisCol);
painter.drawLine(XMARGIN, YMARGIN + h, width() - XMARGIN, YMARGIN + h);
// decide what order of magnitude we are
int base = floor(log10(fMax));
float val = pow(10.0f, base);
const QString units = tr("KB/s");
const float yMarginText = 2.0;
// draw lines
painter.setPen(axisCol);
painter.drawText(XMARGIN, YMARGIN + h - h * val / fMax - yMarginText,
QString("%1 %2").arg(val).arg(units));
for (float y = val; y < fMax; y += val) {
int yy = YMARGIN + h - h * y / fMax;
painter.drawLine(XMARGIN, yy, width() - XMARGIN, yy);
}
// if we drew 3 or fewer lines, break them up at the next lower order of
// magnitude
if (fMax / val <= 3.0f) {
axisCol = axisCol.darker();
val = pow(10.0f, base - 1);
painter.setPen(axisCol);
painter.drawText(XMARGIN, YMARGIN + h - h * val / fMax - yMarginText,
QString("%1 %2").arg(val).arg(units));
int count = 1;
for (float y = val; y < fMax; y += val, count++) {
// don't overwrite lines drawn above
if (count % 10 == 0) {
continue;
}
int yy = YMARGIN + h - h * y / fMax;
painter.drawLine(XMARGIN, yy, width() - XMARGIN, yy);
}
}
if (!vSamplesIn.empty()) {
QPainterPath p;
paintPath(p, vSamplesIn);
painter.fillPath(p, QColor(0, 255, 0, 128));
painter.setPen(Qt::green);
painter.drawPath(p);
}
if (!vSamplesOut.empty()) {
QPainterPath p;
paintPath(p, vSamplesOut);
painter.fillPath(p, QColor(255, 0, 0, 128));
painter.setPen(Qt::red);
painter.drawPath(p);
}
}
void TrafficGraphWidget::updateRates() {
if (!clientModel) {
return;
}
quint64 bytesIn = clientModel->node().getTotalBytesRecv(),
bytesOut = clientModel->node().getTotalBytesSent();
float inRate =
(bytesIn - nLastBytesIn) / 1024.0f * 1000 / timer->interval();
float outRate =
(bytesOut - nLastBytesOut) / 1024.0f * 1000 / timer->interval();
vSamplesIn.push_front(inRate);
vSamplesOut.push_front(outRate);
nLastBytesIn = bytesIn;
nLastBytesOut = bytesOut;
while (vSamplesIn.size() > DESIRED_SAMPLES) {
vSamplesIn.pop_back();
}
while (vSamplesOut.size() > DESIRED_SAMPLES) {
vSamplesOut.pop_back();
}
float tmax = 0.0f;
for (const float f : vSamplesIn) {
if (f > tmax) {
tmax = f;
}
}
for (const float f : vSamplesOut) {
if (f > tmax) {
tmax = f;
}
}
fMax = tmax;
update();
}
void TrafficGraphWidget::setGraphRangeMins(int mins) {
nMins = mins;
int msecsPerSample = nMins * 60 * 1000 / DESIRED_SAMPLES;
timer->stop();
timer->setInterval(msecsPerSample);
clear();
}
void TrafficGraphWidget::clear() {
timer->stop();
vSamplesOut.clear();
vSamplesIn.clear();
fMax = 0.0f;
if (clientModel) {
nLastBytesIn = clientModel->node().getTotalBytesRecv();
nLastBytesOut = clientModel->node().getTotalBytesSent();
}
timer->start();
}
| cculianu/bitcoin-abc | src/qt/trafficgraphwidget.cpp | C++ | mit | 5,102 |
package de.felixroske.jfxsupport.util;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.type.classreading.MetadataReader;
import org.springframework.core.type.classreading.MetadataReaderFactory;
import java.io.IOException;
/**
* Created by Krystian Kałużny on 03.07.2017.
*/
class InactiveSpringBootAppExcludeFilter extends ExcludeFilter {
@Override
public boolean exclude(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory) throws IOException {
try {
if (isAnnotated(metadataReader, SpringBootApplication.class)) {
return !activeSpringBootClass.getName().equals(metadataReader.getClassMetadata().getClassName());
}
} catch (ClassNotFoundException e) {
throw new RuntimeException(e);
}
return false;
}
}
| krystiankaluzny/springboot-javafx-support | src/test/java/de/felixroske/jfxsupport/util/InactiveSpringBootAppExcludeFilter.java | Java | mit | 812 |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
/* Body style, for the entire document */
body {
background: #F3F3F4;
color: #1E1E1F;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
padding: 0;
margin: 0;
}
/* Header1 style, used for the main title */
h1 {
padding: 10px 0px 10px 10px;
font-size: 21pt;
background-color: #E2E2E2;
border-bottom: 1px #C1C1C2 solid;
color: #201F20;
margin: 0;
font-weight: normal;
}
/* Header2 style, used for "Overview" and other sections */
h2 {
font-size: 18pt;
font-weight: normal;
padding: 15px 0 5px 0;
margin: 0;
}
/* Header3 style, used for sub-sections, such as project name */
h3 {
font-weight: normal;
font-size: 15pt;
margin: 0;
padding: 15px 0 5px 0;
background-color: transparent;
}
h4 {
font-weight: normal;
font-size: 12pt;
margin: 0;
padding: 0 0 0 0;
background-color: transparent;
}
/* Color all hyperlinks one color */
a {
color: #1382CE;
}
/* Paragraph text (for longer informational messages) */
p {
font-size: 10pt;
}
/* Table styles */
table {
border-spacing: 0 0;
border-collapse: collapse;
font-size: 10pt;
}
table th {
background: #E7E7E8;
text-align: left;
text-decoration: none;
font-weight: normal;
padding: 3px 6px 3px 6px;
}
table td {
vertical-align: top;
padding: 3px 6px 5px 5px;
margin: 0px;
border: 1px solid #E7E7E8;
background: #F7F7F8;
}
.NoBreakingChanges {
color: darkgreen;
font-weight:bold;
}
.FewBreakingChanges {
color: orange;
font-weight:bold;
}
.ManyBreakingChanges {
color: red;
font-weight:bold;
}
.BreakDetails {
margin-left: 30px;
}
.CompatMessage {
font-style: italic;
font-size: 10pt;
}
.GoodMessage {
color: darkgreen;
}
/* Local link is a style for hyperlinks that link to file:/// content, there are lots so color them as 'normal' text until the user mouse overs */
.localLink {
color: #1E1E1F;
background: #EEEEED;
text-decoration: none;
}
.localLink:hover {
color: #1382CE;
background: #FFFF99;
text-decoration: none;
}
/* Center text, used in the over views cells that contain message level counts */
.textCentered {
text-align: center;
}
/* The message cells in message tables should take up all avaliable space */
.messageCell {
width: 100%;
}
/* Padding around the content after the h1 */
#content {
padding: 0px 12px 12px 12px;
}
/* The overview table expands to width, with a max width of 97% */
#overview table {
width: auto;
max-width: 75%;
}
/* The messages tables are always 97% width */
#messages table {
width: 97%;
}
/* All Icons */
.IconSuccessEncoded, .IconInfoEncoded, .IconWarningEncoded, .IconErrorEncoded {
min-width: 18px;
min-height: 18px;
background-repeat: no-repeat;
background-position: center;
}
/* Success icon encoded */
.IconSuccessEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
/* [---XsltValidateInternal-Base64EncodedImage:IconSuccess#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABPElEQVR4Xp1Tv0vDUBi8FqeA4NpBcBLcWnQSApncOnTo4FSnjP0DsnXpH5CxiwbHDg4Zuj4oOEXiJgiC4FDcCkLWmIMc1Pfw+eMgQ77v3Xf3Pe51YKGqqisAEwCR1TIAsiAIblSo6xrdHeJR85Xle3mdmCQKb0PsfqyxxzM8K15HZADl/H5+sHpZwYfxyRjTs+kWwKBx8yoHd2mRiuzF8mkJniWH/13u3Fjrs/EdhsdDFHGB/DLXEJBDLh1MWPAhPo1BLB4WX5yQywHR+m3tVe/t97D52CB/ziG0nIgD/qDuYg8WuCcVZ2YGwlJ3YDugkpR/VNcAEx6GEKhERSr71FuO4YCM4XBdwKvecjIlkSnsO0Hyp/GxSeJAdzBKzpOtnPwyyiPdAZhpZptT04tU+zk7s8czeges//s5C5+CwqrR4/gw+AAAAABJRU5ErkJggg==);
}
/* Information icon encoded */
.IconInfoEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
/* [---XsltValidateInternal-Base64EncodedImage:IconInformation#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABHElEQVR4Xs2TsUoDQRRF7wwoziokjZUKadInhdhukR9YP8DMX1hYW+QvdsXa/QHBbcXC7W0CamWTQnclFutceIQJwwaWNLlwm5k5d94M76mmaeCrrmsLYOocY12FcxZFUeozCqKqqgYA8uevv1H6VuPxcwlfk5N92KHBxfFeCSAxxswlYAW/Xr989x/mv9gkhtyMDhcAxgzRsp7flj8B/HF1RsMXq+NZMkopaHe7lbKxQUEIGbKsYNoGn969060hZBkQex/W8oRQwsQaW2o3Ago2SVcJUzAgY3N0lTCZZm+zPS8HB51gMmS1DEYyOz9acKO1D8JWTlafKIMxdhvlfdyT94Vv5h7P8Ky7nQzACmhvKq3zk3PjW9asz9D/1oigecsioooAAAAASUVORK5CYII=);
}
/* Warning icon encoded */
.IconWarningEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
/* [---XsltValidateInternal-Base64EncodedImage:IconWarning#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAx0lEQVR4XpWSMQ7CMAxFf4xAyBMLCxMrO8dhaBcuwdCJS3RJBw7SA/QGTCxdWJgiQYWKXJWKIXHIlyw5lqr34tQgEOdcBsCOx5yZK3hCCKdYXneQkh4pEfqzLfu+wVDSyyzFoJjfz9NB+pAF+eizx2Vruts0k15mPgvS6GYvpVtQhB61IB/dk6AF6fS4Ben0uIX5odtFe8Q/eW1KvFeH4e8khT6+gm5B+t3juyDt7n0jpe+CANTd+oTUjN/U3yVaABnSUjFz/gFq44JaVSCXeQAAAABJRU5ErkJggg==);
}
/* Error icon encoded */
.IconErrorEncoded {
/* Note: Do not delete the comment below. It is used to verify the correctness of the encoded image resource below before the product is released */
/* [---XsltValidateInternal-Base64EncodedImage:IconError#Begin#background-image: url(data:image/png;base64,#Separator#);#End#] */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABQElEQVR4XqWTvUoEQRCE6wYPZUA80AfwAQz23uCMjA7MDRQEIzPBVEyNTQUFIw00vcQTTMzuAh/AxEQQT8HF/3G/oGGnEUGuoNnd6qoZuqltyKEsyzVJq5I6rnUp6SjGeGhESikzzlc1eL7opfuVbrqbU1Zw9NCgtQMaZpY0eNnaaL2fHusvTK5vKu7sjSS1Y4y3QUA6K3e3Mau5UFDyMP7tYF9o8cAHZv68vipoIJg971PZIZ5HiwdvYGGvFVFHmGmZ2MxwmQYPXubPl9Up0tfoMQGetXd6mRbvhBw+boZ6WF7Mbv1+GsHRk0fQmPAH1GfmZirbCfDJ61tw3Px8/8pZsPAG4jlVhcPgZ7adwNWBB68lkRQWFiTgFlbnLY3DGGM7izIJIyT/jjIvEJw6fdJTc6krDzh6aMwMP9bvDH4ADSsa9uSWVJkAAAAASUVORK5CYII=);
}
</style>
</head>
<body>
<h1 _locid="PortabilityReport">.NET Portability Report</h1>
<div id="content">
<div id="submissionId" style="font-size:8pt;">
<p>
<i>
Submission Id
eec6fb80-5553-43b1-b685-a1b8b05078b1
</i>
</p>
</div>
<h2 _locid="SummaryTitle">
<a name="Portability Summary"></a>Portability Summary
</h2>
<div id="summary">
<table>
<tbody>
<tr>
<th>Assembly</th>
<th>ASP.NET 5,Version=v1.0</th>
<th>Windows,Version=v8.1</th>
<th>.NET Framework,Version=v4.6</th>
<th>Windows Phone,Version=v8.1</th>
</tr>
<tr>
<td><strong><a href="#System.Reactive.Interfaces">System.Reactive.Interfaces</a></strong></td>
<td class="text-center">100.00 %</td>
<td class="text-center">100.00 %</td>
<td class="text-center">100.00 %</td>
<td class="text-center">100.00 %</td>
</tr>
</tbody>
</table>
</div>
<div id="details">
</div>
</div>
</body>
</html> | kuhlenh/port-to-core | Reports/rx/rx-interfaces.2.2.5/System.Reactive.Interfaces-portable-net45%2Bwinrt45%2Bwp8%2Bwpa81.html | HTML | mit | 9,667 |
/*******************************************************************************
@file startup.h
@author Rajmund Szymanski
@date 11.12.2019
@brief Startup file header for iar c compiler.
*******************************************************************************/
#pragma once
/*******************************************************************************
Additional definitions
*******************************************************************************/
#define __ALIAS(function) __attribute__ ((weak, alias(#function)))
#define __VECTORS __attribute__ ((used, section(".intvec")))
#define __CAST(sp) (void(*)(void))(intptr_t)(sp)
/*******************************************************************************
Prototypes of external functions
*******************************************************************************/
__NO_RETURN void __iar_program_start( void );
/*******************************************************************************
Default reset procedures
*******************************************************************************/
__STATIC_INLINE __NO_RETURN
void __main( void )
{
/* Call the application's entry point */
__iar_program_start();
}
/******************************************************************************/
| stateos/IntrOS-LM4F120XL | startup/LM4F/.iarcc/startup.h | C | mit | 1,309 |
'''
Created by auto_sdk on 2015.06.23
'''
from aliyun.api.base import RestApi
class Rds20140815CheckAccountNameAvailableRequest(RestApi):
def __init__(self,domain='rds.aliyuncs.com',port=80):
RestApi.__init__(self,domain, port)
self.AccountName = None
self.DBInstanceId = None
self.resourceOwnerAccount = None
def getapiname(self):
return 'rds.aliyuncs.com.CheckAccountNameAvailable.2014-08-15'
| francisar/rds_manager | aliyun/api/rest/Rds20140815CheckAccountNameAvailableRequest.py | Python | mit | 408 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.