code
stringlengths
4
1.01M
language
stringclasses
2 values
<div class="usermanager_profile_edit"> <ion:usermanager request="form" attr="has_errors" form_name="profile_save"> <div class="greentab"><div class="greentab_head"><div><div><div><ion:translation term="module_usermanager_text_error" /></div></div></div></div><div class="greentab_content"><div><div> <div class="usermanager_error"><ion:usermanager request="form" attr="error_string" /></div> </div></div></div><div class="greentab_footer"><div><div></div></div></div></div> </ion:usermanager> <ion:usermanager request="form" attr="has_errors" form_name="random_fields"> <div class="greentab"><div class="greentab_head"><div><div><div><ion:translation term="module_usermanager_text_error" /></div></div></div></div><div class="greentab_content"><div><div> <div class="usermanager_error"><ion:usermanager request="form" attr="error_string" /></div> </div></div></div><div class="greentab_footer"><div><div></div></div></div></div> </ion:usermanager> <form name="random_fields_form" id="random_fields_form" action="<ion:usermanager request='global' attr='url' />" method="post"> <input type="hidden" name="form_name" value="random_fields_form" /> <ion:usermanager request='user' attr='company_profile' is_like='0' from_user_field='1'><input type="hidden" name="company_profile" value="1" /></ion:usermanager> <ion:usermanager request='user' attr='company_profile' is_like='1' from_user_field='1'><input type="hidden" name="company_profile" value="0" /></ion:usermanager> </form> <form name="profile_form" id="profile_form" action="<ion:usermanager request='global' attr='url' />" method="post" class="niceform" enctype="multipart/form-data"> <!-- Action --> <div class="greentab"><div class="greentab_head"><div><div><div><ion:translation term="module_usermanager_text_action" /></div></div></div></div><div class="greentab_content"><div><div style="text-align: right;"> <div style="float: right; margin-left: 20px;"><input class="usermanager_input_button" type="submit" name="submit_form" value="<ion:translation term='module_usermanager_button_save' />" /></div> <div style="float: left; margin-right: 20px;"><input class="usermanager_input_button" type="button" name="delete" value="<ion:translation term='module_usermanager_button_delete' />" onclick="javascript:document.getElementById('delete').value='1'; document.profile_form.submit();" /></div> <ion:usermanager request='user' attr='company' is_like='0' from_user_field='1'><div style="float: left; margin-right: 20px;"><input class="usermanager_input_button" type="button" name="company_prof" value="<ion:translation term='module_usermanager_button_company_profile' />" onclick="document.random_fields_form.submit();" /></div></ion:usermanager> <ion:usermanager request='user' attr='company' is_like='1' from_user_field='1'><div style="float: left; margin-right: 20px;"><input class="usermanager_input_button" type="button" name="company_prof" value="<ion:translation term='module_usermanager_button_nocompany_profile' />" onclick="document.random_fields_form.submit();" /></div></ion:usermanager> <div class="clear"></div> </div></div></div><div class="greentab_footer"><div><div></div></div></div></div> <!-- Required Fields --> <div class="maintab" style="width: 445px; float: left; clear: left;"><div class="maintab_head"><div><div><div><ion:translation term="module_usermanager_text_mandatory_fields" /></div></div></div></div><div class="maintab_content"><div><div> <p> <label for="title"><ion:translation term="module_usermanager_field_title" /></label> <select size="1" name="title" id="title" class="usermanager_input_select"> <option value="0" <ion:usermanager request='user' attr='title' is_like='0' from_user_field='1' from_post_data='profile_save'>SELECTED</ion:usermanager>><ion:translation term="module_usermanager_field_title_mr" /></option> <option value="1" <ion:usermanager request='user' attr='title' is_like='1' from_user_field='1' from_post_data='profile_save'>SELECTED</ion:usermanager>><ion:translation term="module_usermanager_field_title_ms" /></option> </select> </p> <p><label for="firstname"><ion:translation term="module_usermanager_field_firstname" /></label><input class="usermanager_input_text" name="firstname" id="firstname" value="<ion:usermanager request='user' attr='firstname' from_user_field='1' from_post_data='profile_save' />" /></p> <p><label for="screen_name"><ion:translation term="module_usermanager_field_screen_name" /></label><input class="usermanager_input_text" name="screen_name" id="screen_name" value="<ion:usermanager request='user' attr='screen_name' from_user_field='1' from_post_data='profile_save' />" /></p> <ion:usermanager request="global" attr="not_email_as_username"> <p><label for="username"><ion:translation term="module_usermanager_field_username" /></label><input class="usermanager_input_text" name="username" id="username" value="<ion:usermanager request='user' attr='username' from_user_field='1' from_post_data='profile_save' />" /></p> </ion:usermanager> <p><label for="email"><ion:translation term="module_usermanager_field_email" /></label><input class="usermanager_input_text" name="email" id="email" value="<ion:usermanager request='user' attr='email' from_user_field='1' from_post_data='profile_save' />" /></p> <p><label for="password"><ion:translation term="module_usermanager_field_password" /></label><input class="usermanager_input_password" name="password" id="password" type="password" value="<ion:usermanager request='user' attr='password' from_post_data='profile_save' />" /></p> <p><label for="password2"><ion:translation term="module_usermanager_field_password2" /></label><input class="usermanager_input_password" name="password2" id="password2" type="password" value="<ion:usermanager request='user' attr='password2' from_post_data='profile_save' />" /></p> <p></p> <p></p> <p></p> </div></div></div><div class="maintab_footer"><div><div></div></div></div></div> <!-- Optional Fields --> <div class="maintab" style="width: 445px; float: right; clear: right;"><div class="maintab_head"><div><div><div><ion:translation term="module_usermanager_text_optional_fields" /></div></div></div></div><div class="maintab_content"><div><div> <p><label for="company"><ion:translation term="module_usermanager_field_company" /></label><input class="usermanager_input_text" name="company" id="company" value="<ion:usermanager request='user' attr='company' from_user_field='1' from_post_data='profile_save' />" /></p> <p><label for="position"><ion:translation term="module_usermanager_field_position" /></label><input class="usermanager_input_text" name="position" id="position" value="<ion:usermanager request='user' attr='position' from_user_field='1' from_post_data='profile_save' />" /></p> <p><label for="street"><ion:translation term="module_usermanager_field_street" /></label><input class="usermanager_input_text" name="street" id="street" style="width: 245px" value="<ion:usermanager request='user' attr='street' from_user_field='1' from_post_data='profile_save' />" /><img src="<ion:theme_url />assets/images/0.gif" class="form_spacer" /><input class="usermanager_input_text" name="housenumber" id="housenumber" style="width: 20px" value="<ion:usermanager request='user' attr='housenumber' from_user_field='1' from_post_data='profile_save' />" /></p> <p><label for="zip"><ion:translation term="module_usermanager_field_zip" /> / <ion:translation term="module_usermanager_field_city" /></label><input class="usermanager_input_text" name="zip" id="zip" style="width: 40px;" value="<ion:usermanager request='user' attr='zip' from_user_field='1' from_post_data='profile_save' />" /><img src="<ion:theme_url />assets/images/0.gif" class="form_spacer" /><input class="usermanager_input_text" name="city" id="city" style="width: 225px;" value="<ion:usermanager request='user' attr='city' from_user_field='1' from_post_data='profile_save' />" /></p> <p><label for="website"><ion:translation term="module_usermanager_field_website" /></label><input class="usermanager_input_text" name="website" id="website" value="<ion:usermanager request='user' attr='website' from_user_field='1' from_post_data='profile_save' />" /></p> <p><label for="xing"><ion:translation term="module_usermanager_field_xing" /></label><input class="usermanager_input_text" name="xing" id="xing" value="<ion:usermanager request='user' attr='xing' from_user_field='1' from_post_data='profile_save' />" /></p> <p><label for="linkedin"><ion:translation term="module_usermanager_field_linkedin" /></label><input class="usermanager_input_text" name="linkedin" id="linkedin" value="<ion:usermanager request='user' attr='linkedin' from_user_field='1' from_post_data='profile_save' />" /></p> <p><label for="twitter"><ion:translation term="module_usermanager_field_twitter" /></label><input class="usermanager_input_text" name="twitter" id="twitter" value="<ion:usermanager request='user' attr='twitter' from_user_field='1' from_post_data='profile_save' />" /></p> <p><label for="facebook"><ion:translation term="module_usermanager_field_facebook" /></label><input class="usermanager_input_text" name="facebook" id="facebook" value="<ion:usermanager request='user' attr='facebook' from_user_field='1' from_post_data='profile_save' />" /></p> </div></div></div><div class="maintab_footer"><div><div></div></div></div></div> <div class="clear"></div> <!-- User Image --> <div class="maintab" style="width: 293px; float: left;"><div class="maintab_head"><div><div><div><ion:translation term="module_usermanager_text_picture" /></div></div></div></div><div class="maintab_content"><div><div style="height: 210px;"> <p class="autoheight" style="text-align: center;"><img src="<ion:usermanager request='user' attr='get_picture' field='picture' dimensions='profile' />" /></p> <div style="width: 210px; text-align: center; margin: 0 auto;"><input class="usermanager_input_file" name="picture" id="picture" type="file" value="" /></div> </div></div></div><div class="maintab_footer"><div><div></div></div></div></div> <!-- About Me --> <div class="maintab" style="width: 293px; float: left; margin-left: 10px;"><div class="maintab_head"><div><div><div><ion:translation term="module_usermanager_text_about_me" /></div></div></div></div><div class="maintab_content"><div><div style="height: 210px;"> <textarea class="usermanager_input_textarea" id="about_me" name="about_me"><ion:usermanager request="user" attr="about_me" from_user_field="1" from_post_data="profile_save" /></textarea> </div></div></div><div class="maintab_footer"><div><div></div></div></div></div> <!-- About Me --> <div class="maintab" style="width: 293px; float: right; clear: right;"><div class="maintab_head"><div><div><div><ion:translation term="module_usermanager_text_references" /></div></div></div></div><div class="maintab_content"><div><div style="height: 210px;"> <textarea class="usermanager_input_textarea" id="my_references" name="my_references"><ion:usermanager request="user" attr="my_references" from_user_field="1" from_post_data="profile_save" /></textarea> </div></div></div><div class="maintab_footer"><div><div></div></div></div></div> <div class="clear"></div> <!-- Optional Finish --> <div class="greentab"><div class="greentab_head"><div><div><div><ion:translation term="module_usermanager_text_options" /></div></div></div></div><div class="greentab_content"><div><div> <p><input type="checkbox" name="infomails" id="infomails" <ion:usermanager request='user' attr='infomails' is_like='1' from_user_field='1' from_post_data='profile_save'>CHECKED</ion:usermanager> /> <label class="usermanager_label_checkbox" for="infomails"><ion:translation term="module_usermanager_field_infomails_desc" /></label></p> <p><input type="checkbox" name="newsletter" id="newsletter" <ion:usermanager request='user' attr='newsletter' is_like='1' from_user_field='1' from_post_data='profile_save'>CHECKED</ion:usermanager> /> <label class="usermanager_label_checkbox" for="newsletter"><ion:translation term="module_usermanager_field_newsletter_desc" /></label></p> <p><input type="checkbox" name="terms" id="terms" <ion:usermanager request='user' attr='terms' is_like='1' from_user_field='1' from_post_data='profile_save'>CHECKED</ion:usermanager> /> <label class="usermanager_label_checkbox" for="terms"><ion:translation term="module_usermanager_field_terms_desc" /></label></p> </div></div></div><div class="greentab_footer"><div><div></div></div></div></div> <input type="hidden" name="delete" id="delete" value="0" /> <input type="hidden" name="form_name" value="profile_save" /> </form> </div>
Java
# YUMMY License > **YoU make Money, I make MoneY.** If you don't make money using it, you are allowed to use the Software for free. 1. Permission is hereby granted to any person obtaining (A) a copy of this software and (B) a license code issued on [backpackforlaravel.com](https://backpackforlaravel.com) (the "Software"/"Backpack" and "License" respectively), to use the software in production environments (on servers with addresses reachable by public DNS, public IP addresses or commercial private networks). This includes the rights to use, copy and/or modify the Software or copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the conditions in this document. 2. This license does not include the rights to publicly or privately sublicense or publish this Software, its copies or any derivations, with or without the purpose of commercial profit. Different licenses are required for copies, third-party packages and derivations of the software, detailed in the articles below. 3. The Software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with Backpack or the use or other dealings in the Software. 4. The sole copyright holder and author of the Software is Cristian Tabacitu <hello@backpackforlaravel.com>. Any code contributions made to Backpack by third parties, be it individuals or companies, are considered a gesture of good will, and become the property of the copyright holder as soon as they are submitted. The contributors keep the right to use, copy, modify, promote and release the portions of the Software they have contributed, but so does the copyright holder. 5. This copyright notice and permission notice shall be included in all copies or substantial portions of the Software. 6. The current license has been last modified on 27 Sep 2019, and is mandatory for any usage of versions of Backpack newer than 4.0.1 (commonly referred to as "releases" or "tags"). ## Free on localhost 7. Should Backpack be used in a development environment, without being presented to clients or final users, no financial reward is expected and the above rights (Article 1) are given FREE OF CHARGE in that environment. When the application is not available under a public DNS address or public IP address, and no money has been made from using Backpack, **no license code is required**. ## Free for non-commercial use 8. Should Backpack be used for non-commercial purposes (personal use, not-profits, testing, hobby, education), no financial reward is expected and the above rights (Article 1) are given FREE OF CHARGE both in local and production environments. **A valid license code is required for use in production**, and can be applied for on [backpackforlaravel.com](https://backpackforlaravel.com). Special terms and conditions apply - detailed in the application form. The copyright holder reserves the right to approve and deny free license applications at their discretion. 9. Should Backpack be used in a free open-source package, the above rights (Article 1) are given FREE OF CHARGE, and no license purchase or notification is required. However, users of the third-party packages will be forced to abide by the current license, and purchase a license for commercial use, since Backpack is a dependency. Hence, it is recommended that a notice and link is provided to the third-party package's users, so that it is clear that by using the free third-party package in production, they are using Backpack, and need to purchase a commercial license or apply for a non-commercial license for Backpack. We try to support, help and promote third-party packages for Backpack - consider contacting <hello@backpackforlaravel.com> before or after you create the package. ## Paid for commercial use 10. We consider it commercial use when anybody involved in the project that uses Backpack makes money. **If anybody** (including but not limited to: the developer, employer, employees or clients) **using Backpack inside a project** (by building, maintaining, leasing, renting, selling or reselling the project) **is financially rewarded directly** (wage, commission, subscription, advertising)**or indirectly**(by reducing costs or increasing efficiency in a commercial endeavour)**, it is considered commercial use.** Any usage by a commercial entity is considered commercial use. Internal usage by a commercial entity is considered commercial use. Commercial entities developing pro-bono projects can _and should_ apply for a non-commercial license on [backpackforlaravel.com](https://backpackforlaravel.com). 11. **Should Backpack be used for commercial purposes**, the user is required to **purchase a license code on [backpackforlaravel.com](https://backpackforlaravel.com) for each domain name this software will be used on, before its usage in production**. Alternatively, the user can purchase an "Unlimited Projects" license which will allow usage on any number of domain names. Failure to do so will constitute as illegal commercial use. 12. **Should Backpack be included in Software-as-a-Service product, an "Unlimited Projects" license is required**, which can be purchased on [backpackforlaravel.com](https://backpackforlaravel.com). 13. **Should Backpack be included in a commercial package or product** (that is sold, leased or rented to third-parties) **aimed at the same target audience or similar, a special sublicensing agreement is required** - contact <hello@backpackforlaravel.com>. 14. **By using Backpack in production without a valid license code for that project, issued by the copyright holder, the user is considered to be breaching the terms of the current license, and agrees to be subject to punishments including but not limited to:** - having their administration panel stop working, interrupted, disabled or removed; - being removed or banned from the Backpack community; - being publicly disclosed as untrustworthy, in a "Wall of Shame" section, on partner websites, on social networks like Twitter, Facebook and LinkedIn, or any other way the copyright holder sees fit; 15. The copyright holder will attempt to contact the user 7 days before punitive action is taken if contact information is easily available, but is not obligated to do so. **The user who has committed a breach of license terms can only purchase a special "Redemption License", issued individually, priced at 10 to 1000 times the list price**, depending on the gravity of the breach and estimated foregone earnings. The price of the "Redemption License" is to be decided by the copyright holder on a case-by-case basis. Contact <hello@backpackforlaravel.com> if you've found you're breaching the terms - special consideration is given to those who report themselves.
Java
from django.db import models from django.core.urlresolvers import reverse class Software(models.Model): name = models.CharField(max_length=200) def __unicode__(self): return self.name def get_absolute_url(self): return reverse('software_edit', kwargs={'pk': self.pk})
Java
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Децентрализированное Хранилище Данных</title> <link rel="stylesheet" href="/bootstrap-3.3.7/css/bootstrap.min.css"> <link rel="stylesheet" href="/style.css"> </head> <body> <nav class="navbar navbar-default navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="/">АйВи</a> </div> <div id="navbar" class="navbar-collapse collapse"> <ul class="nav navbar-nav"> <li><a href="/">Домашняя</a></li> <li><a href="/about">О компании</a></li> </ul> </div> </div> </nav> <div class="container"> <div class="alert alert-danger" role="alert"> Данный сайт в разработке </div> <div class="row"> <div class="col-md-9" role="main"> <h1 >Храненние данных</h1> <p id="description"> У большинства пользователей компьютера много свободного места на диске, которые можно использовать для хранения данных. </p> <h2 id="how-it-works">Как это работает</h2> <p>Данный продукт объеденяет свободные ресурсы пользователей в общее децентрализованное облако, не зависящее от места положения пользователя, другими словами виртуальный RAID массив.</p> </div> <div class="col-md-3" role="complementary"> <nav class="hidden-print hidden-sm hidden-xs affix"> <ul class="nav"> <li class=""><a href="#description">Описание</a></li> <li class=""><a href="#how-it-works">Как это работатает</a></li> </ul> </nav> </div> </div> </div> <script src="jquery/1.12.4/jquery.min.js"></script> <script src="/bootstrap-3.3.7/js/bootstrap.min.js"></script> <script src="/js/site.js"></script> </body> </html>
Java
#!/usr/bin/python3 """ This bot uploads text from djvu files onto pages in the "Page" namespace. It is intended to be used for Wikisource. The following parameters are supported: -index:... name of the index page (without the Index: prefix) -djvu:... path to the djvu file, it shall be: - path to a file name - dir where a djvu file name as index is located optional, by default is current dir '.' -pages:<start>-<end>,...<start>-<end>,<start>-<end> Page range to upload; optional, start=1, end=djvu file number of images. Page ranges can be specified as: A-B -> pages A until B A- -> pages A until number of images A -> just page A -B -> pages 1 until B This script is a :py:obj:`ConfigParserBot <pywikibot.bot.ConfigParserBot>`. The following options can be set within a settings file which is scripts.ini by default: -summary: custom edit summary. Use quotes if edit summary contains spaces. -force overwrites existing text optional, default False -always do not bother asking to confirm any of the changes. """ # # (C) Pywikibot team, 2008-2022 # # Distributed under the terms of the MIT license. # import os.path from typing import Optional import pywikibot from pywikibot import i18n from pywikibot.bot import SingleSiteBot from pywikibot.exceptions import NoPageError from pywikibot.proofreadpage import ProofreadPage from pywikibot.tools.djvu import DjVuFile class DjVuTextBot(SingleSiteBot): """ A bot that uploads text-layer from djvu files to Page:namespace. Works only on sites with Proofread Page extension installed. .. versionchanged:: 7.0 CheckerBot is a ConfigParserBot """ update_options = { 'force': False, 'summary': '', } def __init__( self, djvu, index, pages: Optional[tuple] = None, **kwargs ) -> None: """ Initializer. :param djvu: djvu from where to fetch the text layer :type djvu: DjVuFile object :param index: index page in the Index: namespace :type index: Page object :param pages: page interval to upload (start, end) """ super().__init__(**kwargs) self._djvu = djvu self._index = index self._prefix = self._index.title(with_ns=False) self._page_ns = self.site._proofread_page_ns.custom_name if not pages: self._pages = (1, self._djvu.number_of_images()) else: self._pages = pages # Get edit summary message if it's empty. if not self.opt.summary: self.opt.summary = i18n.twtranslate(self._index.site, 'djvutext-creating') def page_number_gen(self): """Generate pages numbers from specified page intervals.""" last = 0 for start, end in sorted(self._pages): start = max(last, start) last = end + 1 yield from range(start, last) @property def generator(self): """Generate pages from specified page interval.""" for page_number in self.page_number_gen(): title = '{page_ns}:{prefix}/{number}'.format( page_ns=self._page_ns, prefix=self._prefix, number=page_number) page = ProofreadPage(self._index.site, title) page.page_number = page_number # remember page number in djvu file yield page def treat(self, page) -> None: """Process one page.""" old_text = page.text # Overwrite body of the page with content from djvu page.body = self._djvu.get_page(page.page_number) new_text = page.text if page.exists() and not self.opt.force: pywikibot.output( 'Page {} already exists, not adding!\n' 'Use -force option to overwrite the output page.' .format(page)) else: self.userPut(page, old_text, new_text, summary=self.opt.summary) def main(*args: str) -> None: """ Process command line arguments and invoke bot. If args is an empty list, sys.argv is used. :param args: command line arguments """ index = None djvu_path = '.' # default djvu file directory pages = '1-' options = {} # Parse command line arguments. local_args = pywikibot.handle_args(args) for arg in local_args: opt, _, value = arg.partition(':') if opt == '-index': index = value elif opt == '-djvu': djvu_path = value elif opt == '-pages': pages = value elif opt == '-summary': options['summary'] = value elif opt in ('-force', '-always'): options[opt[1:]] = True else: pywikibot.output('Unknown argument ' + arg) # index is mandatory. if not index: pywikibot.bot.suggest_help(missing_parameters=['-index']) return # If djvu_path is not a file, build djvu_path from dir+index. djvu_path = os.path.expanduser(djvu_path) djvu_path = os.path.abspath(djvu_path) if not os.path.exists(djvu_path): pywikibot.error('No such file or directory: ' + djvu_path) return if os.path.isdir(djvu_path): djvu_path = os.path.join(djvu_path, index) # Check the djvu file exists and, if so, create the DjVuFile wrapper. djvu = DjVuFile(djvu_path) if not djvu.has_text(): pywikibot.error('No text layer in djvu file {}'.format(djvu.file)) return # Parse pages param. pages = pages.split(',') for i, page_interval in enumerate(pages): start, sep, end = page_interval.partition('-') start = int(start or 1) end = int(end or djvu.number_of_images()) if sep else start pages[i] = (start, end) site = pywikibot.Site() if not site.has_extension('ProofreadPage'): pywikibot.error('Site {} must have ProofreadPage extension.' .format(site)) return index_page = pywikibot.Page(site, index, ns=site.proofread_index_ns) if not index_page.exists(): raise NoPageError(index) pywikibot.output('uploading text from {} to {}' .format(djvu.file, index_page.title(as_link=True))) bot = DjVuTextBot(djvu, index_page, pages=pages, site=site, **options) bot.run() if __name__ == '__main__': try: main() except Exception: pywikibot.error('Fatal error:', exc_info=True)
Java
// Copyright 2015 LastLeaf, LICENSE: github.lastleaf.me/MIT 'use strict'; var fs = require('fs'); var fse = require('fs-extra'); var async = require('async'); var User = fw.module('/db_model').User; var exports = module.exports = function(conn, res, args){ User.checkPermission(conn, 'admin', function(perm){ if(!perm) return res.err('noPermission'); res.next(); }); }; exports.list = function(conn, res){ // read site list var sitesDir = conn.app.config.app.siteRoot + '/xbackup/'; fs.readdir(sitesDir, function(err, files){ if(err) return res.err('system'); var sites = files.sort(); // list available backup files var details = []; var local = null; async.eachSeries(sites, function(site, cb){ var siteDir = sitesDir + site; if(site !== 'local' && site.slice(-5) !== '.site') return cb(); fs.readdir(siteDir, function(err, files){ if(err) return cb('system'); var zips = []; for(var i=0; i<files.length; i++) { var match = files[i].match(/^(.*?)\.xbackup\.zip(\.enc|)$/); if(match) { var ft = match[1].replace(/^([0-9]+)-([0-9]+)-([0-9]+)_([0-9]+)-([0-9]+)-([0-9]+)/, function(m, m1, m2, m3, m4, m5, m6){ return m1 + '-' + m2 + '-' + m3 + ' ' + m4 + ':' + m5 + ':' + m6; }); zips.push({ file: files[i], timeString: ft }); } } if(site === 'local') { local = zips; } else details.push({ domain: site.slice(0, -5), files: zips }); cb(); }); }, function(err){ if(err) return res.err('system'); res({ local: local, sites: details }); }); }); }; exports.modify = function(conn, res, args){ var addSites = String(args.add).match(/\S+/g) || []; var removeSites = String(args.remove).match(/\S+/g) || []; async.eachSeries(removeSites, function(site, cb){ var dir = conn.app.config.app.siteRoot + '/xbackup/' + site + '.site'; fse.remove(dir, function(){ cb(); }); }, function(){ async.eachSeries(addSites, function(site, cb){ var dir = conn.app.config.app.siteRoot + '/xbackup/' + site + '.site'; fs.mkdir(dir, function(){ cb(); }); }, function(){ res(); }); }); };
Java
# opencfp-vote
Java
{{ _("test1") }} {{ _('test2') }} {{ _ 'test3' }} {{ _ "test3.1" _ 'test4' _ "test5" }} <%=_("test6")%> <%= _("test7") %>
Java
/* * Copyright 2015 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package de.jonasrottmann.realmbrowser.helper; import android.content.Context; import android.support.annotation.RestrictTo; import android.support.design.widget.CoordinatorLayout; import android.support.design.widget.FloatingActionButton; import android.support.v4.view.ViewCompat; import android.util.AttributeSet; import android.view.View; @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) public class ScrollAwareFABBehavior extends FloatingActionButton.Behavior { public ScrollAwareFABBehavior(Context context, AttributeSet attrs) { // This is mandatory if we're assigning the behavior straight from XML super(); } @Override public boolean onStartNestedScroll(final CoordinatorLayout coordinatorLayout, final FloatingActionButton child, final View directTargetChild, final View target, final int nestedScrollAxes) { // Ensure we react to vertical scrolling return nestedScrollAxes == ViewCompat.SCROLL_AXIS_VERTICAL || super.onStartNestedScroll(coordinatorLayout, child, directTargetChild, target, nestedScrollAxes); } @Override public void onNestedScroll(final CoordinatorLayout coordinatorLayout, final FloatingActionButton child, final View target, final int dxConsumed, final int dyConsumed, final int dxUnconsumed, final int dyUnconsumed) { super.onNestedScroll(coordinatorLayout, child, target, dxConsumed, dyConsumed, dxUnconsumed, dyUnconsumed); if (dyConsumed > 0 && child.getVisibility() == View.VISIBLE) { // User scrolled down and the FAB is currently visible -> hide the FAB child.hide(new FloatingActionButton.OnVisibilityChangedListener() { @Override public void onHidden(FloatingActionButton fab) { // Workaround for bug in support libs (http://stackoverflow.com/a/41641841/2192848) super.onHidden(fab); fab.setVisibility(View.INVISIBLE); } }); } else if (dyConsumed < 0 && child.getVisibility() != View.VISIBLE) { // User scrolled up and the FAB is currently not visible -> show the FAB child.show(); } } }
Java
package edu.brown.cs.pianoHeroFiles; import java.io.BufferedOutputStream; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.io.Writer; import java.util.ArrayList; import java.util.HashSet; import java.util.Set; public class PianoHeroFileHandler { public void doFileHandling() { try (Writer writer = new BufferedWriter(new OutputStreamWriter( new FileOutputStream("filename.txt"), "utf-8"))) { File dir = new File("pianoHeroFiles/songImages/"); File actualFile = new File(dir, "hey"); File f = new File("C:\\pianoHeroFiles\\songImages\\kiwiCover.png"); System.out.println(f.getName().toString()); File newDir = new File("pianoHeroFiles/songImages/new/"); File newFile = new File(f, "kiwi2.png"); // System.out.println(actualFile); writer.write("something"); writeFile("pianoHeroFiles/test.txt", "something, brah."); Set<File> allMp3s = new HashSet<File>(); File mp3Dir = new File("pianoHeroFiles/songs/"); getAllFilesAndFolder(mp3Dir, allMp3s); for (File fm : allMp3s) { System.out.println("song:"); System.out.println(fm); if (!fm.isDirectory()) { File dest = new File(fm.getParentFile().toString(), "new" + fm.getName()); copyFile(fm, dest); } } } catch (IOException e) { System.err.println("ERROR: error saving the file"); e.printStackTrace(); } } /** * Saves an image to file directory and returns its saved path as a string * * @param image * file * @return path saved */ public static String saveImage(String imageName) { try { File image = new File("Images/" + imageName); // File imageDir = new File("pianoHeroFiles/songImages/"); File imageDir = new File("src/main/resources/static/img/"); File saveDir = new File("../img/"); File dest = new File(imageDir, "" + image.getName()); File savedDir = new File(saveDir, "" + image.getName()); copyFile(image, dest); return savedDir.getPath(); } catch (IOException e) { System.err.println("ERROR: error saving image"); } return null; } /** * Saves an mp3 file directory and returns its saved path as a string * * @param mp3 * file * @return path saved */ public static String saveMp3(String mp3Name) { try { File mp3 = new File("Songs/" + mp3Name); // File songsDir = new File("pianoHeroFiles/songs/"); File songsDir = new File("src/main/resources/static/songs/"); File saveDir = new File("../songs/"); File dest = new File(songsDir, "" + mp3.getName()); File saveDest = new File(saveDir, "" + mp3.getName()); copyFile(mp3, dest); return saveDest.getPath(); } catch (IOException e) { System.err.println("ERROR: error saving image"); } return null; } /** * Saves the 1d-array boolean of keystrokes for a given song id. * * @param keyStrokes * : 1d-array of booleans * @param songId * : int, the song id * @return String of the path where the keystrokes file was saved. */ public static String saveSongKeystrokes(boolean[] keyStrokes, int songId) { String path = "pianoHeroFiles/songKeyStrokes/"; String keyStrokesID = songId + "_keyStrokes.txt"; String keyStrokesPath = path + keyStrokesID; try (PrintWriter writer = new PrintWriter(keyStrokesPath, "UTF-8")) { String line = ""; // this is for the fake, testing songs. if (keyStrokes == null) { System.out.println("FAKEEEEE"); line += "1000100100010100010101"; } for (int i = 0; i < keyStrokes.length; i++) { String add = keyStrokes[i] ? "1" : "0"; line += add; } writer.println(line); writer.close(); } catch (IOException e) { System.err .println("ERROR: error saving keystrokes for songId: " + songId); } return keyStrokesPath; } /** * Saves a 2d-array boolean of keystrokes for a given song id. * * @param keyStrokes * : 2d-array of booleans * @param songId * : int, the song id * @return String of the path where the keystrokes file was saved. */ public static String save2DSongKeystrokes(boolean[][] keyStrokes, int songId) { String path = "pianoHeroFiles/songKeyStrokes/"; String keyStrokesID = songId + "_keyStrokes.txt"; String keyStrokesPath = path + keyStrokesID; try (PrintWriter writer = new PrintWriter(keyStrokesPath, "UTF-8")) { for (int i = 0; i < keyStrokes.length; i++) { String line = ""; for (int j = 0; j < keyStrokes[i].length; j++) { String add = keyStrokes[i][j] ? "1" : "0"; line += add; } writer.println(line); } writer.close(); } catch (IOException e) { System.err .println("ERROR: error saving keystrokes for songId: " + songId); } return keyStrokesPath; } /** * Converts a 1d array of booleans to a 2d array of booleans. * * @param array * : the initial 1d array * @param length * : the length of the partitions. * @return the converted 2d array. */ public static boolean[][] convert1DBooleansTo2D(boolean[] array, int length) { boolean[][] boolean2d = new boolean[length][array.length / length]; for (int i = 0; i < length; i++) { for (int j = 0; j < array.length / length; j++) { boolean2d[i][j] = array[j + i * length]; } } return boolean2d; } /** * Converts a 2d array of booleans to a 1d array of booleans. * * @param array * : the initial 2d array * @return the converted 1d array. */ public static boolean[] convert2DBooleansTo1D(boolean[][] boolean2D) { boolean[] boolean1D = new boolean[boolean2D.length * boolean2D[0].length]; for (int i = 0; i < boolean2D.length; i++) { for (int j = 0; j < boolean2D[i].length; j++) { assert (boolean2D[i].length == boolean2D[0].length); boolean1D[j + i * boolean2D.length] = boolean2D[i][j]; } } return boolean1D; } /** * Returns a file from a given string path * * @param path * string representing the file path * @return the File in the path */ public static File getFileFromPath(String path) { File file = new File(path); return file; } /** * Saves all the files and folders in a set, for a given initial folder. * * @param folder * the initial folder to look all files for. * @param all * the set of files to save on */ public static void getAllFilesAndFolder(File folder, Set<File> all) { all.add(folder); if (folder.isFile()) { return; } for (File file : folder.listFiles()) { if (file.isFile()) { all.add(file); } if (file.isDirectory()) { getAllFilesAndFolder(file, all); } } } /** * Gets the file of the strokes and converts it to a 1d boolean array to * return * * @param fileName * the file name of the keystrokes * @return the 1d array of the strokes */ public static boolean[] getStrokesArray(String fileName) { // This will reference one line at a time String line = null; // FileReader reads text files in the default encoding. try (FileReader fileReader = new FileReader(fileName)) { // It's good to always wrap FileReader in BufferedReader. BufferedReader bufferedReader = new BufferedReader(fileReader); int length = 0; ArrayList<Boolean> results = new ArrayList<Boolean>(); while ((line = bufferedReader.readLine()) != null) { if (line != null) { length = line.length(); for (int i = 0; i < line.length(); i++) { if (line.charAt(i) == '0') { results.add(false); } else if (line.charAt(i) == '1') { results.add(true); } } } } boolean[] results1D = new boolean[results.size()]; for (int i = 0; i < results.size(); i++) { results1D[i] = results.get(i); } bufferedReader.close(); return results1D; // convert1DBooleansTo2D(results1D, length); } catch (FileNotFoundException ex) { System.out.println( "Unable to open file '" + fileName + "'"); } catch (IOException ex) { System.out.println( "Error reading file '" + fileName + "'"); } return null; } /** * Copies a file from an initial source path file to a destination * * @param src * - the initial source file * @param dst * - the destination path file * @throws IOException * exception with file handling */ public static void copyFile(File src, File dst) throws IOException { InputStream in = new FileInputStream(src); OutputStream out = new FileOutputStream(dst); try { // Transfer bytes from in to out byte[] buf = new byte[1024]; int len; while ((len = in.read(buf)) > 0) { out.write(buf, 0, len); } } catch (IOException e) { System.err.println("ERROR: couldn't copy file in directory"); } finally { in.close(); out.close(); } } /** * Save the given text to the given filename. * * @param canonicalFilename * Like /Users/al/foo/bar.txt * @param text * All the text you want to save to the file as one String. * @throws IOException */ public static void writeFile(String canonicalFilename, String text) throws IOException { File file = new File(canonicalFilename); BufferedWriter out = new BufferedWriter(new FileWriter(file)); out.write(text); out.close(); } /** * Write an array of bytes to a file. Presumably this is binary data; for * plain text use the writeFile method. */ public static void writeFileAsBytes(String fullPath, byte[] bytes) throws IOException { OutputStream bufferedOutputStream = new BufferedOutputStream( new FileOutputStream(fullPath)); InputStream inputStream = new ByteArrayInputStream(bytes); int token = -1; while ((token = inputStream.read()) != -1) { bufferedOutputStream.write(token); } bufferedOutputStream.flush(); bufferedOutputStream.close(); inputStream.close(); } /** * Convert a byte array to a boolean array. Bit 0 is represented with false, * Bit 1 is represented with 1 * * @param bytes * byte[] * @return boolean[] */ public static boolean[] byteArray2BitArray(byte[] bytes) { boolean[] bits = new boolean[bytes.length * 8]; for (int i = 0; i < bytes.length * 8; i++) { if ((bytes[i / 8] & (1 << (7 - (i % 8)))) > 0) { bits[i] = true; } } return bits; } }
Java
$( document ).ready( function () { $( "#form" ).validate( { rules: { company: { required: true }, truckType: { required: true }, materialType: { required: true }, fromSite: { required: true }, toSite: { required: true }, hourIn: { required: true }, hourOut: { required: true }, payment: { required: true }, plate: { minlength: 3, maxlength:15 } }, errorElement: "em", errorPlacement: function ( error, element ) { // Add the `help-block` class to the error element error.addClass( "help-block" ); error.insertAfter( element ); }, highlight: function ( element, errorClass, validClass ) { $( element ).parents( ".col-sm-5" ).addClass( "has-error" ).removeClass( "has-success" ); }, unhighlight: function (element, errorClass, validClass) { $( element ).parents( ".col-sm-5" ).addClass( "has-success" ).removeClass( "has-error" ); }, submitHandler: function (form) { return true; } }); $("#btnClose").click(function(){ if(window.confirm('Are you sure you want to close this Hauling Report?')) { $.ajax({ type: "POST", url: base_url + "hauling/update_hauling_state", data: $("#form").serialize(), dataType: "json", contentType: "application/x-www-form-urlencoded;charset=UTF-8", cache: false, success: function(data){ if( data.result == "error" ) { //alert(data.mensaje); $("#div_cargando").css("display", "none"); $('#btnSubmit').removeAttr('disabled'); $("#span_msj").html(data.mensaje); $("#div_msj").css("display", "inline"); return false; } if( data.result )//true { $("#div_cargando").css("display", "none"); $("#div_guardado").css("display", "inline"); $('#btnSubmit').removeAttr('disabled'); var url = base_url + "hauling/add_hauling/" + data.idHauling; $(location).attr("href", url); } else { alert('Error. Reload the web page.'); $("#div_cargando").css("display", "none"); $("#div_error").css("display", "inline"); $('#btnSubmit').removeAttr('disabled'); } }, error: function(result) { alert('Error. Reload the web page.'); $("#div_cargando").css("display", "none"); $("#div_error").css("display", "inline"); $('#btnSubmit').removeAttr('disabled'); } }); } }); $("#btnSubmit").click(function(){ if ($("#form").valid() == true){ //Activa icono guardando $('#btnSubmit').attr('disabled','-1'); $("#div_guardado").css("display", "none"); $("#div_error").css("display", "none"); $("#div_msj").css("display", "none"); $("#div_cargando").css("display", "inline"); $.ajax({ type: "POST", url: base_url + "hauling/save_hauling", data: $("#form").serialize(), dataType: "json", contentType: "application/x-www-form-urlencoded;charset=UTF-8", cache: false, success: function(data){ if( data.result == "error" ) { //alert(data.mensaje); $("#div_cargando").css("display", "none"); $('#btnSubmit').removeAttr('disabled'); $("#div_error").css("display", "inline"); $("#span_msj").html(data.mensaje); return false; } if( data.result )//true { $("#div_cargando").css("display", "none"); $("#div_guardado").css("display", "inline"); $('#btnSubmit').removeAttr('disabled'); var url = base_url + "hauling/add_hauling/" + data.idHauling; $(location).attr("href", url); } else { alert('Error. Reload the web page.'); $("#div_cargando").css("display", "none"); $("#div_error").css("display", "inline"); $('#btnSubmit').removeAttr('disabled'); } }, error: function(result) { alert('Error. Reload the web page.'); $("#div_cargando").css("display", "none"); $("#div_error").css("display", "inline"); $('#btnSubmit').removeAttr('disabled'); } }); }//if }); $("#btnEmail").click(function(){ if ($("#form").valid() == true){ //Activa icono guardando $('#btnSubmit').attr('disabled','-1'); $('#btnEmail').attr('disabled','-1'); $("#div_guardado").css("display", "none"); $("#div_error").css("display", "none"); $("#div_msj").css("display", "none"); $("#div_cargando").css("display", "inline"); $.ajax({ type: "POST", url: base_url + "hauling/save_hauling_and_send_email", data: $("#form").serialize(), dataType: "json", contentType: "application/x-www-form-urlencoded;charset=UTF-8", cache: false, success: function(data){ if( data.result == "error" ) { //alert(data.mensaje); $("#div_cargando").css("display", "none"); $('#btnSubmit').removeAttr('disabled'); $('#btnEmail').removeAttr('disabled'); $("#div_error").css("display", "inline"); $("#span_msj").html(data.mensaje); return false; } if( data.result )//true { $("#div_cargando").css("display", "none"); $("#div_guardado").css("display", "inline"); $('#btnSubmit').removeAttr('disabled'); $('#btnEmail').removeAttr('disabled'); var url = base_url + "hauling/add_hauling/" + data.idHauling; $(location).attr("href", url); } else { alert('Error. Reload the web page.'); $("#div_cargando").css("display", "none"); $("#div_error").css("display", "inline"); $('#btnSubmit').removeAttr('disabled'); $('#btnEmail').removeAttr('disabled'); } }, error: function(result) { alert('Error. Reload the web page.'); $("#div_cargando").css("display", "none"); $("#div_error").css("display", "inline"); $('#btnSubmit').removeAttr('disabled'); $('#btnEmail').removeAttr('disabled'); } }); }//if }); });
Java
# QCWeChatPay - 微信 APP 支付 Demo - 开发环境:Xcode 8.2,WeChatSDK-1.7.5,AFNetworking-3.1.0 - 微信 APP 支付集成说明见 [QianChia 的博客](http://www.cnblogs.com/QianChia/p/6206153.html)。
Java
var axios = require("axios"); var expect = require("chai").expect; var MockAdapter = require("../src"); describe("MockAdapter asymmetric matchers", function () { var instance; var mock; beforeEach(function () { instance = axios.create(); mock = new MockAdapter(instance); }); it("mocks a post request with a body matching the matcher", function () { mock .onPost("/anyWithBody", { asymmetricMatch: function (actual) { return actual.params === "1"; }, }) .reply(200); return instance .post("/anyWithBody", { params: "1" }) .then(function (response) { expect(response.status).to.equal(200); }); }); it("mocks a post request with a body not matching the matcher", function () { mock .onPost("/anyWithBody", { asymmetricMatch: function (actual) { return actual.params === "1"; }, }) .reply(200); return instance .post("/anyWithBody", { params: "2" }) .catch(function (error) { expect(error.message).to.eq("Request failed with status code 404"); }); }); });
Java
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class UpdatePagesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table( 'pages', function (Blueprint $table) { $table->json('version')->nullable(); $table->unsignedInteger('version_no')->nullable(); } ); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table( 'pages', function ($table) { $table->dropColumn('version'); $table->dropColumn('version_no'); } ); } }
Java
'use strict'; var intlNameInitials = function () { }; var pattern = '{0}{1}'; function _firstLetter(text) { return text.charAt(0); } function _upperCase(letter) { if (letter === 'ı'){ return 'I'; } return letter.toUpperCase(); } function _isHangul(l){ if ((l > 44032) && (l < 55203)) { return true; } return false; } function _initials(letter) { var l = letter.charCodeAt(0); // Generated by regenerate and unicode-8.0.0 // Greek 117 // Latin 991 // Cyrillic 302 var alphaRegex = '[A-Za-z\xAA\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02E0-\u02E4\u0370-\u0373\u0375-\u0377\u037A-\u037D\u037F\u0384\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03E1\u03F0-\u0484\u0487-\u052F\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFE]'; var re = new RegExp(alphaRegex,'i'); if (re.test(letter)){ return letter; } return ''; } function _isSupportedInitials(letter) { var alphaRegex = '[A-Za-z\xAA\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02E0-\u02E4\u0370-\u0373\u0375-\u0377\u037A-\u037D\u037F\u0384\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03E1\u03F0-\u0484\u0487-\u052F\u1D00-\u1D25\u1D2C-\u1D5C\u1D62-\u1D65\u1D6B-\u1D77\u1D79-\u1DBE\u1E00-\u1EFE]'; var re = new RegExp(alphaRegex,'i'); if (re.test(letter)){ return true; } return false; } function isThai(a){ var thaiRegex = '[\u0E01-\u0E3A\u0E40-\u0E5B]'; var re = new RegExp(thaiRegex,'i'); if (a.length === 1){ return true; } else { var letter = _firstLetter(a); if (re.test(a)) { return true; } } return false; } function isCJK(a){ // HANGUL SYLLABLES // We want to be sure the full name is Hangul if (a.length < 3){ var i = 0; for(var c=0;c< a.length;c++){ if (_isHangul(a.charCodeAt(c)) ) { i++; } } if (i === a.length){ return true; } } return false; } intlNameInitials.prototype.format = function (name, options) { var initials = '', a = '', b = ''; var fields = ['firstName', 'lastName'], initialName = { firstName : '', lastName: '' }; if (name === null || typeof name !== 'object' ) { return undefined; } fields.forEach(function(field){ if (name.hasOwnProperty(field)) { if (name[field] === null || name[field].length === 0){ // Nothing to do. but keeping it as placeholder } else { if (_isSupportedInitials(_firstLetter(name[field]))) { initialName[field] = _firstLetter(name[field]); initials = initials + _upperCase(_initials(initialName[field])); } } } }); // for CJK if (name.hasOwnProperty("lastName")){ if (name.lastName === null || name.lastName.length === 0){ } else { if (isCJK(name.lastName)) { initials = name.lastName; } } } if (initials.length === 0){ return undefined; } return initials; }; module.exports = intlNameInitials;
Java
export default [ { radius: 6, sizeReduction: .85, branchProbability: 0.12, rotation: new THREE.Vector3(0, 1, 0), color: 'blue' },{ radius: 6, sizeReduction: .85, branchProbability: 0.21, rotation: new THREE.Vector3(0, 1, 0), color: 'blue' },{ radius: 3, sizeReduction: .87, branchProbability: 0.25, rotation: new THREE.Vector3(0, 1, 0), color: 'blue' }, { radius: 7, sizeReduction: .82, branchProbability: 0.22, rotation: new THREE.Vector3(0, 1, 0), color: 'blue' },{ radius: 7, sizeReduction: .82, branchProbability: 0.22, rotation: new THREE.Vector3(0, 1, 0), color: 'blue' },{ radius: 7, sizeReduction: .82, branchProbability: 0.27, rotation: new THREE.Vector3(0, 1, 0), color: 'blue' }, { radius: 10, sizeReduction: .9, branchProbability: 0.2, rotation: new THREE.Vector3(0, 1, 0), color: 'pink' },{ radius: 10, sizeReduction: .75, branchProbability: 0.3, rotation: new THREE.Vector3(0, 1, 0), color: 'pink' } ];
Java
<?xml version="1.0" ?><!DOCTYPE TS><TS language="lv_LV" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Hirocoin</source> <translation>Par Hirocoin</translation> </message> <message> <location line="+39"/> <source>&lt;b&gt;Hirocoin&lt;/b&gt; version</source> <translation>&lt;b&gt;Hirocoin&lt;/b&gt; versija</translation> </message> <message> <location line="+57"/> <source> This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source> <translation type="unfinished"/> </message> <message> <location filename="../aboutdialog.cpp" line="+14"/> <source>Copyright</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The Hirocoin developers</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation>Adrešu grāmata</translation> </message> <message> <location line="+19"/> <source>Double-click to edit address or label</source> <translation>Adresi vai nosaukumu rediģē ar dubultklikšķi</translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation>Izveidot jaunu adresi</translation> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation>Kopēt iezīmēto adresi uz starpliktuvi</translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation>&amp;Jauna adrese</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+63"/> <source>These are your Hirocoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>&amp;Copy Address</source> <translation>&amp;Kopēt adresi</translation> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation>Parādīt &amp;QR kodu</translation> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a Hirocoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sign &amp;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="+27"/> <source>Export the data in the current tab to a file</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Export</source> <translation type="unfinished"/> </message> <message> <location line="-44"/> <source>Verify a message to ensure it was signed with a specified Hirocoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation>&amp;Dzēst</translation> </message> <message> <location filename="../addressbookpage.cpp" line="-5"/> <source>These are your Hirocoin addresses for sending payments. Always check the amount and the receiving address before sending coins.</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Copy &amp;Label</source> <translation>Kopēt &amp;Nosaukumu</translation> </message> <message> <location line="+1"/> <source>&amp;Edit</source> <translation>&amp;Rediģēt</translation> </message> <message> <location line="+1"/> <source>Send &amp;Coins</source> <translation type="unfinished"/> </message> <message> <location line="+260"/> <source>Export Address Book Data</source> <translation>Eksportēt adreses</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Fails ar komatu kā atdalītāju (*.csv)</translation> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation>Kļūda eksportējot</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Nevar ierakstīt failā %1.</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation>Nosaukums</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Adrese</translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>(bez nosaukuma)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation>Paroles dialogs</translation> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>Ierakstiet paroli</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>Jauna parole</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>Jaunā parole vēlreiz</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+33"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>Ierakstiet maciņa jauno paroli.&lt;br/&gt;Lūdzu izmantojiet &lt;b&gt;10 vai vairāk nejauši izvēlētas zīmes&lt;/b&gt;, vai &lt;b&gt;astoņus un vairāk vārdus&lt;/b&gt;.</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation>Šifrēt maciņu</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>Lai veikto šo darbību, maciņš jāatslēdz ar paroli.</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>Atslēgt maciņu</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>Šai darbībai maciņš jāatšifrē ar maciņa paroli.</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>Atšifrēt maciņu</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>Mainīt paroli</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>Ierakstiet maciņa veco un jauno paroli.</translation> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation>Apstiprināt maciņa šifrēšanu</translation> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR HIROCOINS&lt;/b&gt;!</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+100"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation type="unfinished"/> </message> <message> <location line="-130"/> <location line="+58"/> <source>Wallet encrypted</source> <translation>Maciņš nošifrēts</translation> </message> <message> <location line="-56"/> <source>Hirocoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your hirocoins from being stolen by malware infecting your computer.</source> <translation>Hirocoin aizvērsies, lai pabeigtu šifrēšanu. Atcerieties, ka maciņa šifrēšana nevar pilnībā novērst bitkoinu zādzību, ko veic datorā ieviesušās kaitīgas programmas.</translation> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+42"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation>Maciņa šifrēšana neizdevās</translation> </message> <message> <location line="-54"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>Maciņa šifrēšana neizdevās programmas kļūdas dēļ. Jūsu maciņš netika šifrēts.</translation> </message> <message> <location line="+7"/> <location line="+48"/> <source>The supplied passphrases do not match.</source> <translation>Ievadītās paroles nav vienādas.</translation> </message> <message> <location line="-37"/> <source>Wallet unlock failed</source> <translation>Maciņu atšifrēt neizdevās</translation> </message> <message> <location line="+1"/> <location line="+11"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>Maciņa atšifrēšanai ievadītā parole nav pareiza.</translation> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>Maciņu neizdevās atšifrēt</translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation type="unfinished"/> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+233"/> <source>Sign &amp;message...</source> <translation>Parakstīt &amp;ziņojumu...</translation> </message> <message> <location line="+280"/> <source>Synchronizing with network...</source> <translation>Sinhronizācija ar tīklu...</translation> </message> <message> <location line="-349"/> <source>&amp;Overview</source> <translation>&amp;Pārskats</translation> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation>Rādīt vispārēju maciņa pārskatu</translation> </message> <message> <location line="+20"/> <source>&amp;Transactions</source> <translation>&amp;Transakcijas</translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation>Skatīt transakciju vēsturi</translation> </message> <message> <location line="+7"/> <source>Edit the list of stored addresses and labels</source> <translation>Rediģēt saglabātās adreses un nosaukumus</translation> </message> <message> <location line="-14"/> <source>Show the list of addresses for receiving payments</source> <translation>Rādīt maksājumu saņemšanas adreses</translation> </message> <message> <location line="+31"/> <source>E&amp;xit</source> <translation>&amp;Iziet</translation> </message> <message> <location line="+1"/> <source>Quit application</source> <translation>Aizvērt programmu</translation> </message> <message> <location line="+4"/> <source>Show information about Hirocoin</source> <translation>Parādīt informāciju par Hirocoin</translation> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation>Par &amp;Qt</translation> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation>Parādīt informāciju par Qt</translation> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation>&amp;Iespējas</translation> </message> <message> <location line="+6"/> <source>&amp;Encrypt Wallet...</source> <translation>Š&amp;ifrēt maciņu...</translation> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation>&amp;Izveidot maciņa rezerves kopiju</translation> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation>&amp;Mainīt paroli</translation> </message> <message> <location line="+285"/> <source>Importing blocks from disk...</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Reindexing blocks on disk...</source> <translation type="unfinished"/> </message> <message> <location line="-347"/> <source>Send coins to a Hirocoin address</source> <translation>Nosūtīt bitkoinus uz Hirocoin adresi</translation> </message> <message> <location line="+49"/> <source>Modify configuration options for Hirocoin</source> <translation>Mainīt Hirocoin konfigurācijas uzstādījumus</translation> </message> <message> <location line="+9"/> <source>Backup wallet to another location</source> <translation>Izveidot maciņa rezerves kopiju citur</translation> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation>Mainīt maciņa šifrēšanas paroli</translation> </message> <message> <location line="+6"/> <source>&amp;Debug window</source> <translation>&amp;Debug logs</translation> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation>Atvērt atkļūdošanas un diagnostikas konsoli</translation> </message> <message> <location line="-4"/> <source>&amp;Verify message...</source> <translation>&amp;Pārbaudīt ziņojumu...</translation> </message> <message> <location line="-165"/> <location line="+530"/> <source>Hirocoin</source> <translation type="unfinished"/> </message> <message> <location line="-530"/> <source>Wallet</source> <translation>Maciņš</translation> </message> <message> <location line="+101"/> <source>&amp;Send</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Receive</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>&amp;Addresses</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>&amp;About Hirocoin</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show or hide the main Window</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Encrypt the private keys that belong to your wallet</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Sign messages with your Hirocoin addresses to prove you own them</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Verify messages to ensure they were signed with specified Hirocoin addresses</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>&amp;File</source> <translation>&amp;Fails</translation> </message> <message> <location line="+7"/> <source>&amp;Settings</source> <translation>&amp;Uzstādījumi</translation> </message> <message> <location line="+6"/> <source>&amp;Help</source> <translation>&amp;Palīdzība</translation> </message> <message> <location line="+9"/> <source>Tabs toolbar</source> <translation>Ciļņu rīkjosla</translation> </message> <message> <location line="+17"/> <location line="+10"/> <source>[testnet]</source> <translation>[testnet]</translation> </message> <message> <location line="+47"/> <source>Hirocoin client</source> <translation>Hirocoin klients</translation> </message> <message numerus="yes"> <location line="+141"/> <source>%n active connection(s) to Hirocoin network</source> <translation><numerusform>%n aktīvu savienojumu ar Hirocoin tīklu</numerusform><numerusform>%n aktīvs savienojums ar Hirocoin tīklu</numerusform><numerusform>%n aktīvu savienojumu as Hirocoin tīklu</numerusform></translation> </message> <message> <location line="+22"/> <source>No block source available...</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Processed %1 of %2 (estimated) blocks of transaction history.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Processed %1 blocks of transaction history.</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+20"/> <source>%n hour(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n week(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>%1 behind</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Last received block was generated %1 ago.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Transactions after this will not yet be visible.</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>Error</source> <translation>Kļūda</translation> </message> <message> <location line="+3"/> <source>Warning</source> <translation>Brīdinājums</translation> </message> <message> <location line="+3"/> <source>Information</source> <translation type="unfinished"/> </message> <message> <location line="+70"/> <source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source> <translation type="unfinished"/> </message> <message> <location line="-140"/> <source>Up to date</source> <translation>Sinhronizēts</translation> </message> <message> <location line="+31"/> <source>Catching up...</source> <translation>Sinhronizējos...</translation> </message> <message> <location line="+113"/> <source>Confirm transaction fee</source> <translation>Apstiprināt transakcijas maksu</translation> </message> <message> <location line="+8"/> <source>Sent transaction</source> <translation>Transakcija nosūtīta</translation> </message> <message> <location line="+0"/> <source>Incoming transaction</source> <translation>Ienākoša transakcija</translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>Datums: %1 Daudzums: %2 Tips: %3 Adrese: %4 </translation> </message> <message> <location line="+33"/> <location line="+23"/> <source>URI handling</source> <translation type="unfinished"/> </message> <message> <location line="-23"/> <location line="+23"/> <source>URI can not be parsed! This can be caused by an invalid Hirocoin address or malformed URI parameters.</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>Maciņš ir &lt;b&gt;šifrēts&lt;/b&gt; un pašlaik &lt;b&gt;atslēgts&lt;/b&gt;</translation> </message> <message> <location line="+8"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>Maciņš ir &lt;b&gt;šifrēts&lt;/b&gt; un pašlaik &lt;b&gt;slēgts&lt;/b&gt;</translation> </message> <message> <location filename="../bitcoin.cpp" line="+111"/> <source>A fatal error occurred. Hirocoin can no longer continue safely and will quit.</source> <translation type="unfinished"/> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+104"/> <source>Network Alert</source> <translation>Tīkla brīdinājums</translation> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation>Mainīt adrese</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>&amp;Nosaukums</translation> </message> <message> <location line="+10"/> <source>The label associated with this address book entry</source> <translation>Adrešu grāmatas ieraksta nosaukums</translation> </message> <message> <location line="+7"/> <source>&amp;Address</source> <translation>&amp;Adrese</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>Adrese adrešu grāmatas ierakstā. To var mainīt tikai nosūtīšanas adresēm.</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="+21"/> <source>New receiving address</source> <translation>Jauna saņemšanas adrese</translation> </message> <message> <location line="+4"/> <source>New sending address</source> <translation>Jauna nosūtīšanas adrese</translation> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation>Mainīt saņemšanas adresi</translation> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation>Mainīt nosūtīšanas adresi</translation> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>Nupat ierakstītā adrese &quot;%1&quot; jau atrodas adrešu grāmatā.</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid Hirocoin address.</source> <translation>Ierakstītā adrese &quot;%1&quot; nav derīga Hirocoin adrese.</translation> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>Nav iespējams atslēgt maciņu.</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation>Neizdevās ģenerēt jaunu atslēgu.</translation> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+424"/> <location line="+12"/> <source>Hirocoin-Qt</source> <translation>Hirocoin-Qt</translation> </message> <message> <location line="-12"/> <source>version</source> <translation>versija</translation> </message> <message> <location line="+2"/> <source>Usage:</source> <translation>Lietojums:</translation> </message> <message> <location line="+1"/> <source>command-line options</source> <translation>komandrindas izvēles</translation> </message> <message> <location line="+4"/> <source>UI options</source> <translation>Lietotāja interfeisa izvēlnes</translation> </message> <message> <location line="+1"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation>Uzstādiet valodu, piemēram &quot;de_DE&quot; (pēc noklusēšanas: sistēmas lokāle)</translation> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation>Sākt minimizētu</translation> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation>Uzsākot, parādīt programmas informācijas logu (pēc noklusēšanas: 1)</translation> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation>Iespējas</translation> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation>&amp;Galvenais</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.</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation>&amp;Maksāt par transakciju</translation> </message> <message> <location line="+31"/> <source>Automatically start Hirocoin after logging in to the system.</source> <translation>Automātiski sākt Hirocoin pēc pieteikšanās sistēmā.</translation> </message> <message> <location line="+3"/> <source>&amp;Start Hirocoin on system login</source> <translation>&amp;Sākt Hirocoin reizē ar sistēmu</translation> </message> <message> <location line="+35"/> <source>Reset all client options to default.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Reset Options</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>&amp;Network</source> <translation>&amp;Tīkls</translation> </message> <message> <location line="+6"/> <source>Automatically open the Hirocoin client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation>Uz rūtera automātiski atvērt Hirocoin klienta portu. Tas strādā tikai tad, ja rūteris atbalsta UPnP un tas ir ieslēgts.</translation> </message> <message> <location line="+3"/> <source>Map port using &amp;UPnP</source> <translation>Kartēt portu, izmantojot &amp;UPnP</translation> </message> <message> <location line="+7"/> <source>Connect to the Hirocoin network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation>&amp;Savienoties caur SOCKS proxy:</translation> </message> <message> <location line="+9"/> <source>Proxy &amp;IP:</source> <translation>Proxy &amp;IP:</translation> </message> <message> <location line="+19"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation>proxy IP adrese (piem. 127.0.0.1)</translation> </message> <message> <location line="+7"/> <source>&amp;Port:</source> <translation>&amp;Ports:</translation> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation>Proxy ports (piem. 9050)</translation> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation>SOCKS &amp;Versija:</translation> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation>proxy SOCKS versija (piem. 5)</translation> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation>&amp;Logs</translation> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation>Pēc loga minimizācijas rādīt tikai ikonu sistēmas teknē.</translation> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation>&amp;Minimizēt uz sistēmas tekni, nevis rīkjoslu</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>Logu aizverot, minimizēt, nevis beigt darbu. Kad šī izvēlne iespējota, programma aizvērsies tikai pēc Beigt komandas izvēlnē.</translation> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation>M&amp;inimizēt aizverot</translation> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation>&amp;Izskats</translation> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation>Lietotāja interfeiss un &amp;valoda:</translation> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting Hirocoin.</source> <translation>Šeit var iestatīt lietotāja valodu. Iestatījums aktivizēsies pēc Hirocoin pārstartēšanas.</translation> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation>&amp;Vienības, kurās attēlot daudzumus:</translation> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation>Izvēlēties dalījuma vienību pēc noklusēšanas, ko izmantot interfeisā un nosūtot bitkoinus.</translation> </message> <message> <location line="+9"/> <source>Whether to show Hirocoin addresses in the transaction list or not.</source> <translation>Rādīt vai nē Hirocoin adreses transakciju sarakstā.</translation> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation>&amp;Attēlot adreses transakciju sarakstā</translation> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation>&amp;OK</translation> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation>&amp;Atcelt</translation> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation>&amp;Pielietot</translation> </message> <message> <location filename="../optionsdialog.cpp" line="+53"/> <source>default</source> <translation>pēc noklusēšanas</translation> </message> <message> <location line="+130"/> <source>Confirm options reset</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Some settings may require a client restart to take effect.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Do you want to proceed?</source> <translation type="unfinished"/> </message> <message> <location line="+42"/> <location line="+9"/> <source>Warning</source> <translation>Brīdinājums</translation> </message> <message> <location line="-9"/> <location line="+9"/> <source>This setting will take effect after restarting Hirocoin.</source> <translation>Iestatījums aktivizēsies pēc Bitkoin pārstartēšanas.</translation> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation>Norādītā proxy adrese nav derīga.</translation> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation>Forma</translation> </message> <message> <location line="+50"/> <location line="+166"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the Hirocoin network after a connection is established, but this process has not completed yet.</source> <translation>Attēlotā informācija var būt novecojusi. Jūsu maciņš pēc savienojuma izveides automātiski sinhronizējas ar Hirocoin tīklu, taču šis process vēl nav beidzies.</translation> </message> <message> <location line="-124"/> <source>Balance:</source> <translation>Bilance:</translation> </message> <message> <location line="+29"/> <source>Unconfirmed:</source> <translation>Neapstiprinātas:</translation> </message> <message> <location line="-78"/> <source>Wallet</source> <translation>Maciņš</translation> </message> <message> <location line="+107"/> <source>Immature:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation type="unfinished"/> </message> <message> <location line="+46"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;Pēdējās transakcijas&lt;/b&gt;</translation> </message> <message> <location line="-101"/> <source>Your current balance</source> <translation>Jūsu tekošā bilance</translation> </message> <message> <location line="+29"/> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source> <translation>Kopējā apstiprināmo transakciju vērtība, vēl nav ieskaitīta kopējā bilancē</translation> </message> <message> <location filename="../overviewpage.cpp" line="+116"/> <location line="+1"/> <source>out of sync</source> <translation>nav sinhronizēts</translation> </message> </context> <context> <name>PaymentServer</name> <message> <location filename="../paymentserver.cpp" line="+107"/> <source>Cannot start hirocoin: click-to-pay handler</source> <translation type="unfinished"/> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="+14"/> <source>QR Code Dialog</source> <translation>QR koda dialogs</translation> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation>Pieprasīt maksājumu</translation> </message> <message> <location line="+56"/> <source>Amount:</source> <translation>Daudzums:</translation> </message> <message> <location line="-44"/> <source>Label:</source> <translation>Nosaukums:</translation> </message> <message> <location line="+19"/> <source>Message:</source> <translation>Ziņojums:</translation> </message> <message> <location line="+71"/> <source>&amp;Save As...</source> <translation>&amp;Saglabāt kā...</translation> </message> <message> <location filename="../qrcodedialog.cpp" line="+62"/> <source>Error encoding URI into QR Code.</source> <translation>Kļūda kodējot URI QR kodā.</translation> </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>Rezultāta URI pārāk garš, mēģiniet saīsināt nosaukumu vai ziņojumu. </translation> </message> <message> <location line="+25"/> <source>Save QR Code</source> <translation>Saglabāt QR kodu</translation> </message> <message> <location line="+0"/> <source>PNG Images (*.png)</source> <translation>PNG attēli (*.png)</translation> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation>Klienta vārds</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="+339"/> <source>N/A</source> <translation>N/A</translation> </message> <message> <location line="-217"/> <source>Client version</source> <translation>Klienta versija</translation> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation>&amp;Informācija</translation> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation type="unfinished"/> </message> <message> <location line="+49"/> <source>Startup time</source> <translation>Sākuma laiks</translation> </message> <message> <location line="+29"/> <source>Network</source> <translation>Tīkls</translation> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation>Savienojumu skaits</translation> </message> <message> <location line="+23"/> <source>On testnet</source> <translation>Testa tīklā</translation> </message> <message> <location line="+23"/> <source>Block chain</source> <translation>Bloku virkne</translation> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation>Pašreizējais bloku skaits</translation> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation>Bloku skaita novērtējums</translation> </message> <message> <location line="+23"/> <source>Last block time</source> <translation>Pēdējā bloka laiks</translation> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation>&amp;Atvērt</translation> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Show the Hirocoin-Qt help message to get a list with possible Hirocoin command-line options.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation>&amp;Konsole</translation> </message> <message> <location line="-260"/> <source>Build date</source> <translation>Kompilācijas datums</translation> </message> <message> <location line="-104"/> <source>Hirocoin - Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Hirocoin 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 Hirocoin 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>Notīrīt konsoli</translation> </message> <message> <location filename="../rpcconsole.cpp" line="-30"/> <source>Welcome to the Hirocoin RPC console.</source> <translation>Laipni lūgti Hirocoin RPC konsolē.</translation> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation>Izmantojiet bultiņas uz augšu un leju, lai pārvietotos pa vēsturi, un &lt;b&gt;Ctrl-L&lt;/b&gt; ekrāna notīrīšanai.</translation> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation>Ierakstiet &lt;b&gt;help&lt;/b&gt; lai iegūtu pieejamo komandu sarakstu.</translation> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="+14"/> <location filename="../sendcoinsdialog.cpp" line="+124"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+6"/> <location line="+5"/> <location line="+5"/> <source>Send Coins</source> <translation>Sūtīt bitkoinus</translation> </message> <message> <location line="+50"/> <source>Send to multiple recipients at once</source> <translation>Sūtīt vairākiem saņēmējiem uzreiz</translation> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation type="unfinished"/> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation>Dzēst visus transakcijas laukus</translation> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation>&amp;Notīrīt visu</translation> </message> <message> <location line="+22"/> <source>Balance:</source> <translation>Bilance:</translation> </message> <message> <location line="+10"/> <source>123.456 BTC</source> <translation>123,456 BTC</translation> </message> <message> <location line="+31"/> <source>Confirm the send action</source> <translation>Apstiprināt nosūtīšanu</translation> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-59"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation>&lt;b&gt;%1&lt;/b&gt; līdz %2 (%3)</translation> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation>Apstiprināt bitkoinu sūtīšanu</translation> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation>Vai tiešām vēlaties nosūtīt %1?</translation> </message> <message> <location line="+0"/> <source> and </source> <translation>un</translation> </message> <message> <location line="+23"/> <source>The recipient address is not valid, please recheck.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation>Nosūtāmajai summai jābūt lielākai par 0.</translation> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation>Daudzums pārsniedz pieejamo.</translation> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation>Kopsumma pārsniedz pieejamo, ja pieskaitīta %1 transakcijas maksa.</translation> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation>Atrastas divas vienādas adreses, vienā nosūtīšanas reizē uz katru adresi var sūtīt tikai vienreiz.</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>Kļūda: transakcija tika atteikta. Tā var gadīties, ja kāds no maciņā esošiem bitkoiniem jau iztērēts, piemēram, izmantojot wallet.dat kopiju, kurā nav atzīmēti iztērētie bitkoini.</translation> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation>Forma</translation> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation>Apjo&amp;ms</translation> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation>&amp;Saņēmējs:</translation> </message> <message> <location line="+34"/> <source>The address to send the payment to (e.g. H7QEPyCg1Yv3UZUALDha9bNYXuYbfMe9Lp)</source> <translation type="unfinished"/> </message> <message> <location line="+60"/> <location filename="../sendcoinsentry.cpp" line="+26"/> <source>Enter a label for this address to add it to your address book</source> <translation>Lai pievienotu adresi adrešu grāmatai, tai jādod nosaukums</translation> </message> <message> <location line="-78"/> <source>&amp;Label:</source> <translation>&amp;Nosaukums:</translation> </message> <message> <location line="+28"/> <source>Choose address from address book</source> <translation>Izvēlēties adresi no adrešu grāmatas</translation> </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>ielīmēt adresi no starpliktuves</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>Dzēst šo saņēmēju</translation> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a Hirocoin address (e.g. H7QEPyCg1Yv3UZUALDha9bNYXuYbfMe9Lp)</source> <translation>Ierakstiet Hirocoin adresi (piem. H7QEPyCg1Yv3UZUALDha9bNYXuYbfMe9Lp)</translation> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <location filename="../forms/signverifymessagedialog.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>&amp;Sign Message</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. H7QEPyCg1Yv3UZUALDha9bNYXuYbfMe9Lp)</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <location line="+213"/> <source>Choose an address from the address book</source> <translation type="unfinished"/> </message> <message> <location line="-203"/> <location line="+213"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="-203"/> <source>Paste address from clipboard</source> <translation>ielīmēt adresi no starpliktuves</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 type="unfinished"/> </message> <message> <location line="+7"/> <source>Signature</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Copy the current signature to the system clipboard</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this Hirocoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Reset all sign message fields</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation>&amp;Notīrīt visu</translation> </message> <message> <location line="-87"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. H7QEPyCg1Yv3UZUALDha9bNYXuYbfMe9Lp)</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified Hirocoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Verify &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Reset all verify message fields</source> <translation type="unfinished"/> </message> <message> <location filename="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a Hirocoin address (e.g. H7QEPyCg1Yv3UZUALDha9bNYXuYbfMe9Lp)</source> <translation>Ierakstiet Hirocoin adresi (piem. H7QEPyCg1Yv3UZUALDha9bNYXuYbfMe9Lp)</translation> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Enter Hirocoin signature</source> <translation type="unfinished"/> </message> <message> <location line="+82"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation type="unfinished"/> </message> <message> <location line="-81"/> <location line="+8"/> <location line="+73"/> <location line="+8"/> <source>Please check the address and try again.</source> <translation type="unfinished"/> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation type="unfinished"/> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation type="unfinished"/> </message> </context> <context> <name>SplashScreen</name> <message> <location filename="../splashscreen.cpp" line="+22"/> <source>The Hirocoin developers</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>[testnet]</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+20"/> <source>Open until %1</source> <translation>Atvērts līdz %1</translation> </message> <message> <location line="+6"/> <source>%1/offline</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation>%1/neapstiprinātas</translation> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation>%1 apstiprinājumu</translation> </message> <message> <location line="+18"/> <source>Status</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>Datums</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><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation type="unfinished"/> </message> <message> <location line="+44"/> <location line="+8"/> <location line="+15"/> <location line="+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 type="unfinished"/> </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 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 &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Debug information</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Transaction</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Inputs</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Amount</source> <translation>Daudzums</translation> </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="-209"/> <source>, has not been successfully broadcast yet</source> <translation>, vēl nav veiksmīgi izziņots</translation> </message> <message numerus="yes"> <location line="-35"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+70"/> <source>unknown</source> <translation>nav zināms</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation>Transakcijas detaļas</translation> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation>Šis panelis parāda transakcijas detaļas</translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+225"/> <source>Date</source> <translation>Datums</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>Tips</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Adrese</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation>Daudzums</translation> </message> <message numerus="yes"> <location line="+57"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+3"/> <source>Open until %1</source> <translation>Atvērts līdz %1</translation> </message> <message> <location line="+3"/> <source>Offline (%1 confirmations)</source> <translation>Nav pieslēgts (%1 apstiprinājumu)</translation> </message> <message> <location line="+3"/> <source>Unconfirmed (%1 of %2 confirmations)</source> <translation>Nav apstiprināts (%1 no %2 apstiprinājumu)</translation> </message> <message> <location line="+3"/> <source>Confirmed (%1 confirmations)</source> <translation>Apstiprināts (%1 apstiprinājumu)</translation> </message> <message numerus="yes"> <location line="+8"/> <source>Mined balance will be available when it matures in %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+5"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>Neviens cits mezgls šo bloku nav saņēmis un droši vien netiks akceptēts!</translation> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation>Ģenerēts, taču nav akceptēts</translation> </message> <message> <location line="+43"/> <source>Received with</source> <translation>Saņemts ar</translation> </message> <message> <location line="+2"/> <source>Received from</source> <translation>Saņemts no</translation> </message> <message> <location line="+3"/> <source>Sent to</source> <translation>Nosūtīts</translation> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation>Maksājums sev</translation> </message> <message> <location line="+2"/> <source>Mined</source> <translation>Atrasts</translation> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation>(nav pieejams)</translation> </message> <message> <location line="+199"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>Transakcijas statuss. Turiet peli virs šī lauka, lai redzētu apstiprinājumu skaitu.</translation> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation>Transakcijas saņemšanas datums un laiks.</translation> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation>Transakcijas tips.</translation> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation>Transakcijas mērķa adrese.</translation> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation>Bilancei pievienotais vai atņemtais daudzums.</translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+52"/> <location line="+16"/> <source>All</source> <translation>Visi</translation> </message> <message> <location line="-15"/> <source>Today</source> <translation>Šodien</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation>Šonedēļ</translation> </message> <message> <location line="+1"/> <source>This month</source> <translation>Šomēnes</translation> </message> <message> <location line="+1"/> <source>Last month</source> <translation>Pēdējais mēnesis</translation> </message> <message> <location line="+1"/> <source>This year</source> <translation>Šogad</translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation>Diapazons...</translation> </message> <message> <location line="+11"/> <source>Received with</source> <translation>Saņemts ar</translation> </message> <message> <location line="+2"/> <source>Sent to</source> <translation>Nosūtīts</translation> </message> <message> <location line="+2"/> <source>To yourself</source> <translation>Sev</translation> </message> <message> <location line="+1"/> <source>Mined</source> <translation>Atrasts</translation> </message> <message> <location line="+1"/> <source>Other</source> <translation>Cits</translation> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation>Ierakstiet meklējamo nosaukumu vai adresi</translation> </message> <message> <location line="+7"/> <source>Min amount</source> <translation>Minimālais daudzums</translation> </message> <message> <location line="+34"/> <source>Copy address</source> <translation>Kopēt adresi</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>Kopēt nosaukumu</translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>Kopēt daudzumu</translation> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Edit label</source> <translation>Mainīt nosaukumu</translation> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation>Rādīt transakcijas detaļas</translation> </message> <message> <location line="+139"/> <source>Export Transaction Data</source> <translation>Eksportēt transakcijas datus</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Fails ar komatu kā atdalītāju (*.csv)</translation> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation>Apstiprināts</translation> </message> <message> <location line="+1"/> <source>Date</source> <translation>Datums</translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>Tips</translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>Nosaukums</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation>Adrese</translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation>Daudzums</translation> </message> <message> <location line="+1"/> <source>ID</source> <translation>ID</translation> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation>Eksportēšanas kļūda</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Nevar ierakstīt failā %1.</translation> </message> <message> <location line="+100"/> <source>Range:</source> <translation>Diapazons:</translation> </message> <message> <location line="+8"/> <source>to</source> <translation type="unfinished"/> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+193"/> <source>Send Coins</source> <translation type="unfinished"/> </message> </context> <context> <name>WalletView</name> <message> <location filename="../walletview.cpp" line="+42"/> <source>&amp;Export</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Export the data in the current tab to a file</source> <translation type="unfinished"/> </message> <message> <location line="+193"/> <source>Backup Wallet</source> <translation>Izveidot maciņa rezerves kopiju</translation> </message> <message> <location line="+0"/> <source>Wallet Data (*.dat)</source> <translation>Maciņa dati (*.dat)</translation> </message> <message> <location line="+3"/> <source>Backup Failed</source> <translation>Rezerves kopēšana neizdevās</translation> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation>Kļūda, saglabājot maciņu jaunajā vietā.</translation> </message> <message> <location line="+4"/> <source>Backup Successful</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The wallet data was successfully saved to the new location.</source> <translation type="unfinished"/> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+94"/> <source>Hirocoin version</source> <translation>Hirocoin versija</translation> </message> <message> <location line="+102"/> <source>Usage:</source> <translation>Lietojums:</translation> </message> <message> <location line="-29"/> <source>Send command to -server or hirocoind</source> <translation>Nosūtīt komantu uz -server vai hirocoind</translation> </message> <message> <location line="-23"/> <source>List commands</source> <translation>Komandu saraksts</translation> </message> <message> <location line="-12"/> <source>Get help for a command</source> <translation>Palīdzība par komandu</translation> </message> <message> <location line="+24"/> <source>Options:</source> <translation>Iespējas:</translation> </message> <message> <location line="+24"/> <source>Specify configuration file (default: hirocoin.conf)</source> <translation>Norādiet konfigurācijas failu (pēc noklusēšanas: hirocoin.conf)</translation> </message> <message> <location line="+3"/> <source>Specify pid file (default: hirocoind.pid)</source> <translation>Norādiet pid failu (pēc noklusēšanas: hirocoind.pid)</translation> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation>Norādiet datu direktoriju</translation> </message> <message> <location line="-9"/> <source>Set database cache size in megabytes (default: 25)</source> <translation>Uzstādiet datu bāzes bufera izmēru megabaitos (pēc noklusēšanas: 25)</translation> </message> <message> <location line="-28"/> <source>Listen for connections on &lt;port&gt; (default: 9348 or testnet: 19348)</source> <translation>Gaidīt savienojumus portā &lt;port&gt; (pēc noklusēšanas: 9348 vai testnet: 19348)</translation> </message> <message> <location line="+5"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation>Uzturēt līdz &lt;n&gt; savienojumiem ar citiem mezgliem(pēc noklusēšanas: 125)</translation> </message> <message> <location line="-48"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation>Pievienoties mezglam, lai iegūtu citu mezglu adreses, un atvienoties</translation> </message> <message> <location line="+82"/> <source>Specify your own public address</source> <translation>Norādiet savu publisko adresi</translation> </message> <message> <location line="+3"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation>Slieksnis pārkāpējmezglu atvienošanai (pēc noklusēšanas: 100)</translation> </message> <message> <location line="-134"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation>Sekundes, cik ilgi atturēt pārkāpējmezglus no atkārtotas pievienošanās (pēc noklusēšanas: 86400)</translation> </message> <message> <location line="-29"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 9347 or testnet: 19347)</source> <translation type="unfinished"/> </message> <message> <location line="+37"/> <source>Accept command line and JSON-RPC commands</source> <translation>Pieņemt komandrindas un JSON-RPC komandas</translation> </message> <message> <location line="+76"/> <source>Run in the background as a daemon and accept commands</source> <translation>Darbināt fonā kā servisu un pieņemt komandas</translation> </message> <message> <location line="+37"/> <source>Use the test network</source> <translation>Izmantot testa tīklu</translation> </message> <message> <location line="-112"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation type="unfinished"/> </message> <message> <location line="-80"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=hirocoinrpc 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 &quot;Hirocoin Alert&quot; admin@foo.com </source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Cannot obtain a lock on data directory %s. Hirocoin is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong Hirocoin will not work properly.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Block creation options:</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Connect only to the specified node(s)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Corrupted block database detected</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Do you want to rebuild the block database now?</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error initializing block database</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error initializing wallet database environment %s!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error loading block database</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error opening block database</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error: Disk space is low!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error: Wallet locked, unable to create transaction!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error: system error: </source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to read block info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to read block</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to sync block index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write block</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write file info</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write to coin database</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write transaction index</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Failed to write undo data</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Find peers using DNS lookup (default: 1 unless -connect)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Generate coins (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>How many blocks to check at startup (default: 288, 0 = all)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>How thorough the block verification is (0-4, default: 3)</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Not enough file descriptors available.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Rebuild block chain index from current blk000??.dat files</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Set the number of threads to service RPC calls (default: 4)</source> <translation type="unfinished"/> </message> <message> <location line="+26"/> <source>Verifying blocks...</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Verifying wallet...</source> <translation type="unfinished"/> </message> <message> <location line="-69"/> <source>Imports blocks from external blk000??.dat file</source> <translation type="unfinished"/> </message> <message> <location line="-76"/> <source>Set the number of script verification threads (up to 16, 0 = auto, &lt;0 = leave that many cores free, default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+77"/> <source>Information</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Invalid -tor address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount for -minrelaytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount for -mintxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Maintain a full transaction index (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Only accept block chain matching built-in checkpoints (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Output extra debugging information. Implies all other -debug* options</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Output extra network debugging information</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Prepend debug output with timestamp</source> <translation>Debug izvadei sākumā pievienot laika zīmogu</translation> </message> <message> <location line="+5"/> <source>SSL options: (see the Hirocoin Wiki for SSL setup instructions)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation>Debug/trace informāciju izvadīt konsolē, nevis debug.log failā</translation> </message> <message> <location line="+1"/> <source>Send trace/debug info to debugger</source> <translation>Debug/trace informāciju izvadīt debug programmai</translation> </message> <message> <location line="+5"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Signing transaction failed</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>System error: </source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Transaction amount too small</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction amounts must be positive</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction too large</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Username for JSON-RPC connections</source> <translation>JSON-RPC savienojumu lietotājvārds</translation> </message> <message> <location line="+4"/> <source>Warning</source> <translation>Brīdinājums</translation> </message> <message> <location line="+1"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>You need to rebuild the databases using -reindex to change -txindex</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>wallet.dat corrupt, salvage failed</source> <translation type="unfinished"/> </message> <message> <location line="-50"/> <source>Password for JSON-RPC connections</source> <translation>JSON-RPC savienojumu parole</translation> </message> <message> <location line="-67"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation>Atļaut JSON-RPC savienojumus no norādītās IP adreses</translation> </message> <message> <location line="+76"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation>Nosūtīt komandas mezglam, kas darbojas adresē &lt;ip&gt; (pēc noklusēšanas: 127.0.0.1)</translation> </message> <message> <location line="-120"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation>Izpildīt komandu, kad labāk atbilstošais bloks izmainās (%s cmd aizvieto ar bloka hešu)</translation> </message> <message> <location line="+147"/> <source>Upgrade wallet to latest format</source> <translation>Atjaunot maciņa formātu uz jaunāko</translation> </message> <message> <location line="-21"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation>Uzstādīt atslēgu bufera izmēru uz &lt;n&gt; (pēc noklusēšanas: 100)</translation> </message> <message> <location line="-12"/> <source>Rescan the block chain for missing wallet transactions</source> <translation>Atkārtoti skanēt bloku virkni, meklējot trūkstošās maciņa transakcijas</translation> </message> <message> <location line="+35"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>JSON-RPC savienojumiem izmantot OpenSSL (https)</translation> </message> <message> <location line="-26"/> <source>Server certificate file (default: server.cert)</source> <translation>Servera sertifikāta fails (pēc noklusēšanas: server.cert)</translation> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation>Servera privātā atslēga (pēc noklusēšanas: server.pem)</translation> </message> <message> <location line="-151"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation>Pieņemamie šifri (pēc noklusēšanas: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</translation> </message> <message> <location line="+165"/> <source>This help message</source> <translation>Šis palīdzības paziņojums</translation> </message> <message> <location line="+6"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation>Nevar pievienoties pie %s šajā datorā (pievienošanās atgrieza kļūdu %d, %s)</translation> </message> <message> <location line="-91"/> <source>Connect through socks proxy</source> <translation>Savienoties caurs socks proxy</translation> </message> <message> <location line="-10"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation>Atļaut DNS uzmeklēšanu priekš -addnode, -seednode un -connect</translation> </message> <message> <location line="+55"/> <source>Loading addresses...</source> <translation>Ielādē adreses...</translation> </message> <message> <location line="-35"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation>Nevar ielādēt wallet.dat: maciņš bojāts</translation> </message> <message> <location line="+1"/> <source>Error loading wallet.dat: Wallet requires newer version of Hirocoin</source> <translation>Nevar ielādēt wallet.dat: maciņa atvēršanai nepieciešama jaunāka Hirocoin versija</translation> </message> <message> <location line="+93"/> <source>Wallet needed to be rewritten: restart Hirocoin to complete</source> <translation>Bija nepieciešams pārstartēt maciņu: pabeigšanai pārstartējiet Hirocoin</translation> </message> <message> <location line="-95"/> <source>Error loading wallet.dat</source> <translation>Kļūda ielādējot wallet.dat</translation> </message> <message> <location line="+28"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation>Nederīga -proxy adrese: &apos;%s&apos;</translation> </message> <message> <location line="+56"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation>-onlynet komandā norādīts nepazīstams tīkls: &apos;%s&apos;</translation> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation>Pieprasīta nezināma -socks proxy versija: %i</translation> </message> <message> <location line="-96"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation>Nevar uzmeklēt -bind adresi: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation>Nevar atrisināt -externalip adresi: &apos;%s&apos;</translation> </message> <message> <location line="+44"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>Nederīgs daudzums priekš -paytxfree=&lt;amount&gt;: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Invalid amount</source> <translation>Nederīgs daudzums</translation> </message> <message> <location line="-6"/> <source>Insufficient funds</source> <translation>Nepietiek bitkoinu</translation> </message> <message> <location line="+10"/> <source>Loading block index...</source> <translation>Ielādē bloku indeksu...</translation> </message> <message> <location line="-57"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation>Pievienot mezglu, kam pievienoties un turēt savienojumu atvērtu</translation> </message> <message> <location line="-25"/> <source>Unable to bind to %s on this computer. Hirocoin is probably already running.</source> <translation>Nevar pievienoties %s uz šī datora. Hirocoin droši vien jau darbojas.</translation> </message> <message> <location line="+64"/> <source>Fee per KB to add to transactions you send</source> <translation>Maksa par KB, ko pievienot nosūtāmajām transakcijām</translation> </message> <message> <location line="+19"/> <source>Loading wallet...</source> <translation>Ielādē maciņu...</translation> </message> <message> <location line="-52"/> <source>Cannot downgrade wallet</source> <translation>Nevar maciņa formātu padarīt vecāku</translation> </message> <message> <location line="+3"/> <source>Cannot write default address</source> <translation>Nevar ierakstīt adresi pēc noklusēšanas</translation> </message> <message> <location line="+64"/> <source>Rescanning...</source> <translation>Skanēju no jauna...</translation> </message> <message> <location line="-57"/> <source>Done loading</source> <translation>Ielāde pabeigta</translation> </message> <message> <location line="+82"/> <source>To use the %s option</source> <translation>Izmantot opciju %s</translation> </message> <message> <location line="-74"/> <source>Error</source> <translation>Kļūda</translation> </message> <message> <location line="-31"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation>Konfigurācijas failā jāuzstāda rpcpassword=&lt;password&gt;: %s Ja fails neeksistē, izveidojiet to ar atļauju lasīšanai tikai īpašniekam.</translation> </message> </context> </TS>
Java
VERSION := 1.1a ROOT := $(shell pwd) PATH := $(ROOT)/.luvit:$(PATH) all: module test: module checkit tests/* module: build/slnunicode/unicode.luvit build/slnunicode/unicode.luvit: build/slnunicode/slnunico.c $(CC) $(shell luvit-config --cflags | sed 's/ -Werror / /') -DluaI_openlib=luaL_openlib -shared -o $@ $^ build/slnunicode/slnunico.c: mkdir -p build wget -qct3 --no-check-certificate http://files.luaforge.net/releases/sln/slnunicode/$(VERSION)/slnunicode-$(VERSION).tar.gz -O - | tar -xzpf - -C build mv build/slnunicode-$(VERSION) $(@D) #sed 's/luaI_openlib/luaL_openlib/g' $@ > $(@).tmp #mv $(@).tmp $@ clean: rm -fr build .PHONY: all module clean .SILENT:
Java
setTimeout(() => { import(/* webpackPreload: true */ "./lazy-chunk-2.js").then((mod) => mod.test() ); }, 750);
Java
/* @font-face { font-family: 'Gotham-Book'; src: url(Gotham-Book.otf); src: local('Gotham-Book'), local('Gotham-Book'), url(Gotham-Book.otf) format('opentype'); } @font-face { font-family: 'Muli'; font-style: normal; font-weight: 400; src: local('Muli'), url('http://themes.googleusercontent.com/static/fonts/muli/v4/kU4XYdV4jtS72BIidPtqyw.woff') format('woff'); } */ html { min-height: 100%; padding-bottom: 1px; } body { background: #000; margin: 0 auto; width: 1024px; font-family: 'Arial'; } #header-container { float: left; width: 128px; } #header-container img { margin: 13px 10px 0; } #main { background: #FFF; float: left; width: 768px; min-height: 728px; } #footer-container { float: left; width: 128px; overflow: hidden; } #footer-container img { margin: 65px 10px 0; } #encabezado{ margin-top: 50px; margin-bottom: 40px; width: 100%; display: block; position: relative; } #encabezado header{ margin: 0px 0px 40px 35px; } #encabezado nav{ margin: 0px 56px 0px 28px; height: 33px; } #encabezado nav .izquierda{ float: left; } #encabezado nav .derecha{ float: right; width: 170px } #encabezado .txt-proceso-pago{ color: #e4e4e4; font-size: 13px; height: 25px; display: block; text-decoration: none; text-align: center; cursor: default; } #encabezado .txt-proceso-pago-select{ color: #C90002; font-size: 13px; height: 25px; display: block; text-decoration: none; text-align: center; cursor: default; } .proceso-pago{ float: left; margin-right: 32px; width: 90px; } .img-proceso-pago{ width: 31px; height: 32px; margin-left: auto; margin-right: auto; } .img-inicio{ background: url('../images/css-sprite_PasosCompra.png') no-repeat; background-position: -14px -11px; } .img-inicio-select{ background: url('../images/css-sprite_PasosCompra.png') no-repeat; background-position: -14px -42px; } .img-pago-envio{ background: url('../images/css-sprite_PasosCompra.png') no-repeat; background-position: -45px -11px; } .img-pago-envio-select{ background: url('../images/css-sprite_PasosCompra.png') no-repeat; background-position: -45px -42px; } .img-facturacion{ background: url('../images/css-sprite_PasosCompra.png') no-repeat; background-position: -76px -11px; } .img-facturacion-select{ background: url('../images/css-sprite_PasosCompra.png') no-repeat; background-position: -76px -42px; } .img-compra{ background: url('../images/css-sprite_PasosCompra.png') no-repeat; background-position: -107px -11px; } .img-compra-select{ background: url('../images/css-sprite_PasosCompra.png') no-repeat; background-position: -107px -42px; } .necesita-ayuda{ width: 170px; height: 32px; } .img-ayuda{ background: url('../images/css-sprite_btnAyuda.png') no-repeat; background-position: -28px -14px; } #pleca-punteada{ display: block; height: 4px; margin-left: 40px; background: url('../images/css-sprite_Plecas.jpg') no-repeat; background-position: 0px -49px; clear: both; } #detalle-promocion{ position: relative; display: block; margin: 5px 56px; min-height: 75px; } #detalle-promocion .img-producto-compra{ width: 60px; height: 75px; background: url('../images/css-sprite_icons.png') no-repeat; background-position: -13px -11px; float: left; } #detalle-promocion .izquierda{ float: left; padding-left: 15px; } #detalle-promocion .derecha{ float: right; } .titulo-promo-rojo{ color: #C90002; font-size: 15px; font-weight: bolder; } .titulo-promo-negro{ color: #292929; font-size: 14px; line-height: 20px; font-weight: bolder; } .titulo-promo-rojo2{ color: #C90002; font-size: 15px; font-weight: bold; padding-right: 10px; border-bottom: solid 1px #CCC; } .label-promo-rojo { color: #C90002; font-size: 12px; font-weight: bold; padding-top: 8px; padding-right: 10px; text-align: right; } .titulo-promo-negro2{ color: #000000; font-size: 15px; font-weight: bold; padding: 10px; border-bottom: solid 1px #CCC; } .titulo-promo-rojo-deposito{ color: #CA0002; font-size: 13px; font-weight: bold; } #descripcion-proceso{ position: relative; display: block; margin: 40px 56px 0px 59px; #clear: both; } .titulo-proceso-img{ height: 10px; width: 6px; margin-top: 4px; background: url('../images/css-sprite_icons.png') no-repeat; background-position: -198px -11px; float: left; } .titulo-proceso{ color: #000000; padding-left: 3px; font-size: 16px; font-weight: bold; float: left; } .contenedor{ height: auto; background-color: #FFF; } .contenedor-gris{ background-color: #e5e5e5; margin: 5px 56px 0px 65px; padding: 15px 10px; } .contenedor-blanco{ margin: 5px 56px 0px 65px; padding: 0px; background-color: #FFF; } .label{ color: #000; font-size: 12px; text-align: right; font-weight: bold; } .label_tarjeta { color: #c90002; font-size: 12px; text-align: right; font-weight: bold; } .label_izq{ color: #000; font-size: 12px; font-weight: bold; } input .text{ width: 200px; } .instrucciones{ font-size: 12px; color: #4e4e4e; font-weight: bold; } b{ font-size: 12px; color: #000; padding: 2px 0px; } .instrucciones_mensaje{ color: #000000; font-size: 12px; margin: 3px 56px 5px 65px; font-weight: bold; } a { color: #094C86; font-size: 12px; font-weight: bold; } a:visited{ color: #094C86; } .boton_login{ border: none; height: 24px; width: 152px; background: url('../images/css-sprite_btnN1.png') no-repeat; background-position: -13px -15px; } .boton_login:hover{ border: none; height: 24px; width: 152px; background: url('../images/css-sprite_btnN1.png') no-repeat; background-position: -13px -39px; } .boton_enviar_instrucciones{ border: none; height: 24px; width: 150px; background: url('../images/css-sprite_btnN1.png') no-repeat; background-position: -1138px -15px; } .boton_enviar_instrucciones:hover{ border: none; height: 24px; width: 150px; background: url('../images/css-sprite_btnN1.png') no-repeat; background-position: -1138px -39px; } .boton_continuar_compra{ border: none; height: 24px; width: 131px; background: url('../images/css-sprite_btnN1.png') no-repeat; background-position: -1007px -15px; } .boton_continuar_compra:hover{ border: none; height: 24px; width: 131px; background: url('../images/css-sprite_btnN1.png') no-repeat; background-position: -1007px -39px; } .boton_verificar_clave{ border: none; height: 24px; width: 115px; background: url('../images/css-sprite_btnN1.png') no-repeat; background-position: -1288px -15px; } .boton_verificar_clave:hover{ border: none; height: 24px; width: 115px; background: url('../images/css-sprite_btnN1.png') no-repeat; background-position: -1288px -39px; } .crear_cuenta{ border: none; height: 24px; width: 183px; background: url('../images/css-sprite_btnN1.png') no-repeat; background-position: -165px -15px; } .crear_cuenta:hover{ border: none; height: 24px; width: 183px; background: url('../images/css-sprite_btnN1.png') no-repeat; background-position: -165px -39px; } .item-lista{ color: #000; font-size: 12px; padding: 3px; font-weight: bold; vertical-align: middle; } .usar_tarjeta{ border: none; height: 18px; width: 125px; background: url('../images/css-sprite_btnN2.png') no-repeat; background-position: -136px -13px; margin-left: 3px; } .usar_tarjeta:hover{ border: none; height: 18px; width: 125px; background: url('../images/css-sprite_btnN2.png') no-repeat; background-position: -136px -31px; } .usar_nueva_tarjeta{ border: none; height: 18px; width: 125px; background: url('../images/css-sprite_btnN2.png') no-repeat; background-position: -11px -13px; } .usar_nueva_tarjeta:hover { border: none; height: 18px; width: 125px; background: url('../images/css-sprite_btnN2.png') no-repeat; background-position: -11px -31px; } .img-deposito{ width: 68px; height: 75px; background: url('../images/css-sprite_icons.png') no-repeat; background-position: -75px -8px; float: left; } .deposito-izquierda{ width: 50%; float: left; display: block; padding-left: 10px; } .deposito-derecha{ float: right; vertical-align: bottom; } .tam75{ height: 100px; padding: 17px; } .tam15{ height: 5px; padding: 10px; } .pagar-deposito{ border: none; height: 24px; width: 210px; background: url('../images/css-sprite_btnN1.png') no-repeat; background-position: -348px -15px; margin-top: 50px; } .pagar-deposito:hover{ border: none; height: 24px; width: 210px; background: url('../images/css-sprite_btnN1.png') no-repeat; background-position: -348px -39px; margin-top: 50px; } thead{ background-color: #FFF; } th{ background: url('../images/css-sprite_Plecas.jpg'); background-position: -20px -14px; padding: 5px 0px 0px 10px; font-size: 13px; font-weight: bold; vertical-align: top; height: 26px; text-align: left; } td{ padding: 0px 2px; } .doble-linea{ background: url('../images/css-sprite_Plecas_2.jpg'); background-position: -20px -5px; padding: 2px 0px 0px 10px; font-size: 13px; font-weight: bold; vertical-align: top; height: 40px; text-align: left; } .borde-derecho{ border-right: solid 1px #CCC; } .sin-factura{ border: none; height: 24px; width: 185px; background: url('../images/css-sprite_btnN4.png') no-repeat; background-position: -9px -5px; } .sin-factura:hover{ border: none; height: 24px; width: 185px; background: url('../images/css-sprite_btnN4.png') no-repeat; background-position: -9px -28px; } .usar-razon-social { border: none; height: 28px; width: 88px; background: url('../images/css-sprite_btnN6.png') no-repeat; background-position: -7px -7px; } .usar-razon-social:hover{ border: none; height: 28px; width: 88px; background: url('../images/css-sprite_btnN6.png') no-repeat; background-position: -7px -35px; } .usar_razon_social_large{ border: none; height: 24px; width: 175px; background: url('../images/css-sprite_btnN1.png') no-repeat; background-position: -702px -15px; } .usar_razon_social_large:hover{ border: none; height: 24px; width: 175px; background: url('../images/css-sprite_btnN1.png') no-repeat; background-position: -702px -39px; } .usar_razon_social_large2{ border: none; height: 18px; width: 150px; background: url('../images/css-sprite_btnN2.png') no-repeat; background-position: -531px -13px; } .usar_razon_social_large2:hover{ border: none; height: 18px; width: 150px; background: url('../images/css-sprite_btnN2.png') no-repeat; background-position: -531px -31px; } .usar_otra_large { border: none; height: 19px; width: 137px; background: url('../images/css-sprite_btnN3.png') no-repeat; background-position: -13px -10px; } .usar_otra_large:hover { border: none; height: 19px; width: 137px; background: url('../images/css-sprite_btnN3.png') no-repeat; background-position: -13px -28px; } .cancelar { border: none; height: 19px; width: 80px; background: url('../images/css-sprite_btnN3.png') no-repeat; background-position: -150px -10px; } .cancelar:hover { border: none; height: 19px; width: 80px; background: url('../images/css-sprite_btnN3.png') no-repeat; background-position: -150px -28px; } .borde-top{ margin-top: 3px; border-top: solid 1px #CCC; height: 33px; } .footer_main { display: block; padding: 20px 0 20px 0; clear: both; margin-left: auto; margin-right: auto; width: 420px; } .footer_main div { float: left; text-align: center; padding: 0 15px 0 15px; } .instrucciones_cursivas { font-size: 12px; color: #999999; font-style: italic; font-weight: bold; } .instrucciones_cursivas_der { font-size: 12px; color: #4e4e4e; font-style: italic; text-align: left; float: right; width: 200px; } .asterisco { height: 10px; width: 7px; margin-top: 4px; background: url('../images/css-sprite_icons.png') no-repeat; background-position: -181px -11px; float: left; } .alinear_izquierda { padding-right: 4px; float: left; } .error_mensaje { font-size: 12px; float: left; color: #c90002; vertical-align: text-bottom; padding-left: 4px; } .usar_nueva_direccion { border: none; height: 18px; width: 138px; background: url('../images/css-sprite_btnN2.png') no-repeat; background-position: -261px -13px; } .usar_nueva_direccion:hover{ border: none; height: 18px; width: 138px; background: url('../images/css-sprite_btnN2.png') no-repeat; background-position: -261px -31px; } #div_enlace { float: left; width: 100%; } #div_enlace a { color: #c90002; font-size: 13px; font-weight: bold; } #div_enlace a:hover{ color: #4e0001; font-size: 13px; font-weight: bold; } .agregar { border: none; height: 18px; width: 20px; background: url('../images/css-sprite_agregarbtn.png') no-repeat; background-position: -13px -12px; float: left; } .agregar:hover { border: none; height: 18px; width: 20px; background: url('../images/css-sprite_agregarbtn.png') no-repeat; background-position: -13px -30px; float: left; } .texto_agregar { padding-left: 4px; text-align: left; } .orden-compra-izquierda{ float: left; width: 50%; } .orden-compra-derecha{ float: right; width: 50%; } .bloque-orden-compra{ min-height: 120px; padding: 5px 10px; font-size: 12px; line-height: 17px; } .bloque-orden-compra-auto{ line-height: 17px; padding: 5px 10px; font-size: 12px; } #pleca-gris{ clear: both; height: 1px; background-color: #ccc; margin: 5px 0px; } .finalizar_compra{ border: none; height: 24px; width: 130px; background: url('../images/css-sprite_btnN1.png') no-repeat; background-position: -877px -15px; } .finalizar_compra:hover{ border: none; height: 24px; width: 130px; background: url('../images/css-sprite_btnN1.png') no-repeat; background-position: -877px -39px; } .radio_contenedor{ float: left; margin-right: 12px; } input[type="radio"]{ display: none; } .radio_no_selected{ border: none; height: 16px; width: 16px; background: transparent url('../images/css-sprite_icons.png') no-repeat; background-position: -153px -49px; float: left; } .radio_selected{ border: none; height: 16px; width: 16px; background: transparent url('../images/css-sprite_icons.png') no-repeat; background-position: -153px -67px; float: left; } .label_radio{ float: left; margin-left: 5px; } .llenar_cp{ border: none; height: 17px; width: 57px; background: url('../images/css-sprite_btnN5.png') no-repeat; background-position: -8px -9px; float: left; margin-top: 5px; } .llenar_cp:hover { border: none; height: 17px; width: 57px; background: url('../images/css-sprite_btnN5.png') no-repeat; background-position: -8px -26px; float: left; } input[type="text"]{ border: none; border-bottom: solid; border-width: 1px; border-color: #8D8D8D; color: #8D8D8D; padding: 4px 10px; font-size: 12p; font-weight: bold; } input[type="password"]{ border: none; border-bottom: solid; border-width: 1px; border-color: #8D8D8D; color: #8D8D8D; padding: 4px 10px; font-size: 12p; font-weight: bold; } input[type="checkbox"]{ display: none; } .checkbox_no_selected{ border: none; height: 15px; width: 21px; background: transparent url('../images/css-sprite_checkboxes02.png') no-repeat; background-position: -5px -4px; float: left; } .checkbox_selected{ border: none; height: 15px; width: 21px; background: transparent url('../images/css-sprite_checkboxes02.png') no-repeat; background-position: -5px -20px; float: left; } select { border: solid; border-width: 1px; border-color: #FFF; border-bottom-color: #8D8D8D; color: #8D8D8D; padding: 2px 0px 2px 10px; font-size: 12p; font-weight: bold; } h4{ margin-left: 10px; margin-top: 20px; } .tip { color: #4E4E4E; background:#FFF; display:none; /*--Hides by default--*/ padding:10px; position:absolute; z-index:1000; border: solid 1px #4E4E4E; font-size: 10px; } .tip_trigger{ text-decoration: none; } .interrogacion{ border: none; height: 14px; width: 16px; background: transparent url('../images/css-sprite_icons.png') no-repeat; background-position: -153px -11px; margin: 0px 0px 0px 5px; } .interrogacion:hover{ border: none; height: 14px; width: 16px; background: transparent url('../images/css-sprite_icons.png') no-repeat; background-position: -153px -27px; } .float_izq{ float: left; margin-top: 6px; } .boton{ padding: 3px; color: #FFFFFF; background-color: #E70030; border: none; }
Java
<?php declare(strict_types=1); namespace Tests\Tsufeki\HmContainer\Definition; use PHPUnit\Framework\TestCase; use Psr\Container\ContainerInterface; use Tsufeki\HmContainer\Definition\Reference; /** * @covers \Tsufeki\HmContainer\Definition\Reference */ class ReferenceTest extends TestCase { public function test_return_referenced_value() { $value = new \stdClass(); $c = $this->createMock(ContainerInterface::class); $c ->expects($this->once()) ->method('get') ->with($this->equalTo('target')) ->willReturn($value); $referenceDefinition = new Reference('target'); $this->assertSame($value, $referenceDefinition->get($c)); } }
Java
using NSubstitute; using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Xunit; using Xunit.Abstractions; namespace PoshGit2.TabCompletion { public class TabCompletionTests { private readonly ITestOutputHelper _log; public TabCompletionTests(ITestOutputHelper log) { _log = log; } [InlineData("gi")] [InlineData("git")] [InlineData("git.")] [InlineData("git.exe")] [Theory] public async Task GitCommand(string cmd) { var repo = Substitute.For<IRepositoryStatus>(); var completer = new TabCompleter(Task.FromResult(repo)); var result = await completer.CompleteAsync(cmd, CancellationToken.None); Assert.True(result.IsFailure); } [InlineData("git ", new string[] { "clone", "init" })] [Theory] public async Task NullStatus(string command, string[] expected) { var completer = new TabCompleter(Task.FromResult<IRepositoryStatus>(null)); var fullResult = await completer.CompleteAsync(command, CancellationToken.None); var result = GetResult(fullResult); Assert.Equal(result, expected.OrderBy(o => o, StringComparer.Ordinal)); } [InlineData("git add ", new string[] { })] [InlineData("git rm ", new string[] { })] [Theory] public async Task EmptyStatus(string command, string[] expected) { var repo = Substitute.For<IRepositoryStatus>(); var completer = new TabCompleter(Task.FromResult(repo)); var fullResult = await completer.CompleteAsync(command, CancellationToken.None); var result = GetResult(fullResult); Assert.Equal(result, expected.OrderBy(o => o, StringComparer.Ordinal)); } [InlineData("git ", "stash")] [InlineData("git s", "stash")] [InlineData("git ", "push")] [InlineData("git p", "push")] [InlineData("git ", "pull")] [InlineData("git p", "pull")] [InlineData("git ", "bisect")] [InlineData("git bis", "bisect")] [InlineData("git ", "branch")] [InlineData("git br", "branch")] [InlineData("git ", "add")] [InlineData("git a", "add")] [InlineData("git ", "rm")] [InlineData("git r", "rm")] [InlineData("git ", "merge")] [InlineData("git m", "merge")] [InlineData("git ", "mergetool")] [InlineData("git m", "mergetool")] [Theory] public async Task ResultContains(string command, string expected) { var completer = CreateTabCompleter(); var fullResult = await completer.CompleteAsync(command, CancellationToken.None); var result = GetResult(fullResult); Assert.Contains(expected, result); } // Verify command completion [InlineData("git ", new[] { "add", "am", "annotate", "archive", "bisect", "blame", "branch", "bundle", "checkout", "cherry", "cherry-pick", "citool", "clean", "clone", "commit", "config", "describe", "diff", "difftool", "fetch", "format-patch", "gc", "grep", "gui", "help", "init", "instaweb", "log", "merge", "mergetool", "mv", "notes", "prune", "pull", "push", "rebase", "reflog", "remote", "rerere", "reset", "revert", "rm", "shortlog", "show", "stash", "status", "submodule", "svn", "tag", "whatchanged" })] [InlineData("git.exe ", new[] { "add", "am", "annotate", "archive", "bisect", "blame", "branch", "bundle", "checkout", "cherry", "cherry-pick", "citool", "clean", "clone", "commit", "config", "describe", "diff", "difftool", "fetch", "format-patch", "gc", "grep", "gui", "help", "init", "instaweb", "log", "merge", "mergetool", "mv", "notes", "prune", "pull", "push", "rebase", "reflog", "remote", "rerere", "reset", "revert", "rm", "shortlog", "show", "stash", "status", "submodule", "svn", "tag", "whatchanged" })] // git add [InlineData("git add ", new[] { "working-duplicate", "working-modified", "working-added", "working-unmerged" })] [InlineData("git add working-m", new[] { "working-modified" })] // git rm [InlineData("git rm ", new[] { "working-deleted", "working-duplicate" })] [InlineData("git rm working-a", new string[] { })] [InlineData("git rm working-d", new string[] { "working-deleted", "working-duplicate" })] // git bisect [InlineData("git bisect ", new[] { "start", "bad", "good", "skip", "reset", "visualize", "replay", "log", "run" })] [InlineData("git bisect s", new[] { "start", "skip" })] [InlineData("git bisect bad ", new string[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] [InlineData("git bisect good ", new string[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] [InlineData("git bisect reset ", new string[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] [InlineData("git bisect skip ", new string[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] [InlineData("git bisect bad f", new string[] { "feature1", "feature2" })] [InlineData("git bisect good f", new string[] { "feature1", "feature2" })] [InlineData("git bisect reset f", new string[] { "feature1", "feature2" })] [InlineData("git bisect skip f", new string[] { "feature1", "feature2" })] [InlineData("git bisect bad g", new string[] { })] [InlineData("git bisect good g", new string[] { })] [InlineData("git bisect reset g", new string[] { })] [InlineData("git bisect skip g", new string[] { })] [InlineData("git bisect skip H", new string[] { "HEAD" })] // git notes [InlineData("git notes ", new[] { "edit", "show" })] [InlineData("git notes e", new[] { "edit" })] // git reflog [InlineData("git reflog ", new[] { "expire", "delete", "show" })] [InlineData("git reflog e", new[] { "expire" })] // git branch [InlineData("git branch -d ", new string[] { "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] [InlineData("git branch -D ", new string[] { "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] [InlineData("git branch -m ", new string[] { "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] [InlineData("git branch -M ", new string[] { "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] [InlineData("git branch -d f", new string[] { "feature1", "feature2" })] [InlineData("git branch -D f", new string[] { "feature1", "feature2" })] [InlineData("git branch -m f", new string[] { "feature1", "feature2" })] [InlineData("git branch -M f", new string[] { "feature1", "feature2" })] [InlineData("git branch -d g", new string[] { })] [InlineData("git branch -D g", new string[] { })] [InlineData("git branch -m g", new string[] { })] [InlineData("git branch -M g", new string[] { })] [InlineData("git branch newBranch ", new string[] { "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] [InlineData("git branch newBranch f", new string[] { "feature1", "feature2" })] [InlineData("git branch newBranch g", new string[] { })] // git push [InlineData("git push ", new string[] { "origin", "other" })] [InlineData("git push oth", new string[] { "other" })] [InlineData("git push origin ", new string[] { "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] [InlineData("git push origin fe", new string[] { "feature1", "feature2" })] [InlineData("git push origin :", new string[] { ":remotefeature", ":cutfeature" })] [InlineData("git push origin :re", new string[] { ":remotefeature" })] // git pull [InlineData("git pull ", new string[] { "origin", "other" })] [InlineData("git pull oth", new string[] { "other" })] [InlineData("git pull origin ", new string[] { "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] [InlineData("git pull origin fe", new string[] { "feature1", "feature2" })] // git fetch [InlineData("git fetch ", new string[] { "origin", "other" })] [InlineData("git fetch oth", new string[] { "other" })] // git submodule [InlineData("git submodule ", new string[] { "add", "status", "init", "update", "summary", "foreach", "sync" })] [InlineData("git submodule s", new string[] { "status", "summary", "sync" })] // git svn [InlineData("git svn ", new string[] { "init", "fetch", "clone", "rebase", "dcommit", "branch", "tag", "log", "blame", "find-rev", "set-tree", "create-ignore", "show-ignore", "mkdirs", "commit-diff", "info", "proplist", "propget", "show-externals", "gc", "reset" })] [InlineData("git svn f", new string[] { "fetch", "find-rev" })] // git stash [InlineData("git stash ", new string[] { "list", "save", "show", "drop", "pop", "apply", "branch", "clear", "create" })] [InlineData("git stash s", new string[] { "save", "show" })] [InlineData("git stash show ", new string[] { "stash", "wip" })] [InlineData("git stash show w", new string[] { "wip" })] [InlineData("git stash show d", new string[] { })] [InlineData("git stash apply ", new string[] { "stash", "wip" })] [InlineData("git stash apply w", new string[] { "wip" })] [InlineData("git stash apply d", new string[] { })] [InlineData("git stash drop ", new string[] { "stash", "wip" })] [InlineData("git stash drop w", new string[] { "wip" })] [InlineData("git stash drop d", new string[] { })] [InlineData("git stash pop ", new string[] { "stash", "wip" })] [InlineData("git stash pop w", new string[] { "wip" })] [InlineData("git stash pop d", new string[] { })] [InlineData("git stash branch ", new string[] { "stash", "wip" })] [InlineData("git stash branch w", new string[] { "wip" })] [InlineData("git stash branch d", new string[] { })] // Tests for commit [InlineData("git commit -C ", new string[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] [InlineData("git commit -C O", new string[] { "ORIG_HEAD" })] [InlineData("git commit -C o", new string[] { "origin/cutfeature", "origin/remotefeature" })] // git remote [InlineData("git remote ", new[] { "add", "rename", "rm", "set-head", "show", "prune", "update" })] [InlineData("git remote r", new[] { "rename", "rm" })] [InlineData("git remote rename ", new string[] { "origin", "other" })] [InlineData("git remote rename or", new string[] { "origin" })] [InlineData("git remote rm ", new string[] { "origin", "other" })] [InlineData("git remote rm or", new string[] { "origin" })] [InlineData("git remote set-head ", new string[] { "origin", "other" })] [InlineData("git remote set-head or", new string[] { "origin" })] [InlineData("git remote set-branches ", new string[] { "origin", "other" })] [InlineData("git remote set-branches or", new string[] { "origin" })] [InlineData("git remote set-url ", new string[] { "origin", "other" })] [InlineData("git remote set-url or", new string[] { "origin" })] [InlineData("git remote show ", new string[] { "origin", "other" })] [InlineData("git remote show or", new string[] { "origin", })] [InlineData("git remote prune ", new string[] { "origin", "other" })] [InlineData("git remote prune or", new string[] { "origin" })] // git help <cmd> [InlineData("git help ", new[] { "add", "am", "annotate", "archive", "bisect", "blame", "branch", "bundle", "checkout", "cherry", "cherry-pick", "citool", "clean", "clone", "commit", "config", "describe", "diff", "difftool", "fetch", "format-patch", "gc", "grep", "gui", "help", "init", "instaweb", "log", "merge", "mergetool", "mv", "notes", "prune", "pull", "push", "rebase", "reflog", "remote", "rerere", "reset", "revert", "rm", "shortlog", "show", "stash", "status", "submodule", "svn", "tag", "whatchanged" })] [InlineData("git help ch", new[] { "checkout", "cherry", "cherry-pick" })] // git checkout -- <files> [InlineData("git checkout -- ", new[] { "working-deleted", "working-duplicate", "working-modified", "working-unmerged" })] [InlineData("git checkout -- working-d", new[] { "working-deleted", "working-duplicate" })] // git merge|mergetool <files> // TODO: Enable for merge state //[InlineData("git merge ", new[] { "working-unmerged", "working-duplicate" })] //[InlineData("git merge working-u", new[] { "working-unmerged" })] //[InlineData("git merge j", new string[] { })] //[InlineData("git mergetool ", new[] { "working-unmerged", "working-duplicate" })] //[InlineData("git mergetool working-u", new[] { "working-unmerged" })] //[InlineData("git mergetool j", new string[] { })] // git checkout <branch> [InlineData("git checkout ", new[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] // git cherry-pick <branch> [InlineData("git cherry ", new[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] // git cherry-pick <branch> [InlineData("git cherry-pick ", new[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] // git diff <branch> [InlineData("git diff ", new[] { "index-modified", "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] [InlineData("git diff --cached ", new[] { "working-modified", "working-duplicate", "working-unmerged", "index-modified", "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] [InlineData("git diff --staged ", new[] { "index-modified", "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] // git difftool <branch> [InlineData("git difftool ", new[] { "index-modified", "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] [InlineData("git difftool --cached ", new[] { "working-modified", "working-duplicate", "working-unmerged", "index-modified", "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] [InlineData("git difftool --staged ", new[] { "index-modified", "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] // git log <branch> [InlineData("git log ", new[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] // git merge <branch> [InlineData("git merge ", new[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] // git rebase <branch> [InlineData("git rebase ", new[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] // git reflog <branch> [InlineData("git reflog show ", new[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] // git reset <branch> [InlineData("git reset ", new[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] // git reset HEAD <file> [InlineData("git reset HEAD ", new[] { "index-added", "index-deleted", "index-modified", "index-unmerged" })] [InlineData("git reset HEAD index-a", new[] { "index-added" })] // git revert <branch> [InlineData("git revert ", new[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] // git show<branch> [InlineData("git show ", new[] { "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] [Theory] public async Task CheckCompletion(string cmd, string[] expected) { var completer = CreateTabCompleter(); await CompareAsync(completer, cmd, expected.OrderBy(o => o, StringComparer.Ordinal)); } // git add [InlineData("git add ", new[] { "working duplicate", "working modified", "working added", "working unmerged" })] [InlineData("git add \"working m", new[] { "working modified" })] [InlineData("git add \'working m", new[] { "working modified" })] // git rm [InlineData("git rm ", new[] { "working deleted", "working duplicate" })] [InlineData("git rm \"working d", new string[] { "working deleted", "working duplicate" })] [InlineData("git rm \'working d", new string[] { "working deleted", "working duplicate" })] // git checkout -- <files> [InlineData("git checkout -- ", new[] { "working deleted", "working duplicate", "working modified", "working unmerged" })] [InlineData("git checkout -- \"wor", new[] { "working deleted", "working duplicate", "working modified", "working unmerged" })] [InlineData("git checkout -- \"working d", new[] { "working deleted", "working duplicate" })] [InlineData("git checkout -- \'working d", new[] { "working deleted", "working duplicate" })] // git merge|mergetool <files> // TODO: Enable for merge state //[InlineData("git merge ", new[] { "working unmerged", "working duplicate" })] //[InlineData("git merge working u", new[] { "working unmerged" })] //[InlineData("git merge j", new string[] { })] //[InlineData("git mergetool ", new[] { "working unmerged", "working duplicate" })] //[InlineData("git mergetool working u", new[] { "working unmerged" })] //[InlineData("git mergetool j", new string[] { })] // git diff <branch> [InlineData("git diff ", new[] { "index modified", "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] [InlineData("git diff --cached ", new[] { "working modified", "working duplicate", "working unmerged", "index modified", "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] [InlineData("git diff --staged ", new[] { "index modified", "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] // git difftool <branch> [InlineData("git difftool ", new[] { "index modified", "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] [InlineData("git difftool --cached ", new[] { "working modified", "working duplicate", "working unmerged", "index modified", "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] [InlineData("git difftool --staged ", new[] { "index modified", "FETCH_HEAD", "HEAD", "MERGE_HEAD", "ORIG_HEAD", "feature1", "feature2", "master", "origin/cutfeature", "origin/remotefeature" })] // git reset HEAD <file> [InlineData("git reset HEAD ", new[] { "index added", "index deleted", "index modified", "index unmerged" })] [InlineData("git reset HEAD \"index a", new[] { "index added" })] [InlineData("git reset HEAD \'index a", new[] { "index added" })] [Theory] public async Task CheckCompletionWithQuotations(string cmd, string[] initialExpected) { const string quot = "\""; var completer = CreateTabCompleter(" "); var expected = initialExpected .OrderBy(o => o, StringComparer.Ordinal) .Select(o => o.Contains(" ") ? $"{quot}{o}{quot}" : o); await CompareAsync(completer, cmd, expected); } private async Task CompareAsync(ITabCompleter completer, string cmd, IEnumerable<string> expected) { var fullResult = await completer.CompleteAsync(cmd, CancellationToken.None); var result = GetResult(fullResult); _log.WriteLine("Expected output:"); _log.WriteLine(string.Join(Environment.NewLine, expected)); _log.WriteLine(string.Empty); _log.WriteLine("Actual output:"); _log.WriteLine(string.Join(Environment.NewLine, result)); Assert.Equal(expected, result); } private static ITabCompleter CreateTabCompleter(string join = "-") { var status = Substitute.For<IRepositoryStatus>(); var working = new ChangedItemsCollection { Added = new[] { $"working{join}added", $"working{join}duplicate" }, Deleted = new[] { $"working{join}deleted", $"working{join}duplicate" }, Modified = new[] { $"working{join}modified", $"working{join}duplicate" }, Unmerged = new[] { $"working{join}unmerged", $"working{join}duplicate" } }; var index = new ChangedItemsCollection { Added = new[] { $"index{join}added" }, Deleted = new[] { $"index{join}deleted" }, Modified = new[] { $"index{join}modified" }, Unmerged = new[] { $"index{join}unmerged" } }; status.Index.Returns(index); status.Working.Returns(working); status.LocalBranches.Returns(new[] { "master", "feature1", "feature2" }); status.Remotes.Returns(new[] { "origin", "other" }); status.RemoteBranches.Returns(new[] { "origin/remotefeature", "origin/cutfeature" }); status.Stashes.Returns(new[] { "stash", "wip" }); return new TabCompleter(Task.FromResult(status)); } private IEnumerable<string> GetResult(TabCompletionResult fullResult) { Assert.True(fullResult.IsSuccess); return (fullResult as TabCompletionResult.Success).Item; } } }
Java
package org.fayalite.sjs import org.fayalite.sjs.canvas.CanvasBootstrap import org.scalajs.dom import org.scalajs.dom.Node import org.scalajs.dom.raw.CanvasRenderingContext2D import org.scalajs.dom.raw.HTMLCanvasElement import rx.core.{Rx, Var} /** * Created by aa on 3/17/2016. */ object Schema extends SJSHelp { // { import upickle._ // json.read // json.write // } case class A(b: String) case class ParseRequest ( code: String, cookies: String, requestId: String ) val defaultFont = "12pt monospace" /** * This is used because the canvas * engine requires setting flags in advance of draw * calls, these are the typical modified GUI * declarations required most commonly, feel * free to add on additional specifications * @param font: A string as expected in CSS * @param fillStyle : Hex prefixed color code * @param globalAlpha : Zero to one float value * as in png for draw call */ case class CanvasStyling( font: String = defaultFont, fillStyle: String = lightBlue, globalAlpha: Double = 1D ) trait DeleteAble { val node: Node def delete(): Unit = { node.parentNode.removeChild(node) } } case class CanvasContextInfo( canvas: HTMLCanvasElement, context: CanvasRenderingContext2D, tileSize: Int = CanvasBootstrap.minSize, text: Option[String] = None ) extends DeleteAble { val node = canvas var location = LatCoord(0, 0) var isMoving = false } case class LatCoord(x: Int, y: Int)(implicit squareTileSize : Int = CanvasBootstrap.minSize) { def *(o: Int) = { this.copy(x*o, y*o) } def up0 = this.copy(y=0) def left0 = this.copy(x=0) def right = this.copy(x=x+1*squareTileSize) def right(n: Int) = this.copy(x=x+n*squareTileSize) def left = this.copy(x=x-1) def up = this.copy(y=y-1*squareTileSize) def down = this.copy(y=y+1*squareTileSize) def down(n: Int) = this.copy(y=y+n*squareTileSize) def *(o: LatCoordD) = { // elementwise o.copy(x*o.x, y*o.y) } def +(o: LatCoord) = this.copy(o.x+x, o.y+y) def str = s"x:$x,y:$y" def toAbsolute = { LatCoord(x*squareTileSize, y*squareTileSize) } def fromAbsolute = { LatCoord(x/squareTileSize, y/squareTileSize) } } case class LatCoordD(x: Double, y: Double) { def +(other: LatCoordD) = { this.copy(other.x+x, other.y+y) } def +(otheri: Int) = { val other = LatCoord(otheri, otheri) this.copy(other.x+x, other.y+y) } def -(o: LatCoordD) = { this.copy(x-o.x, y-o.y) } def -(o: LatCoord) = this.copy(x-o.x, y-o.y) def -(oi: Int) = { this.copy(x-oi, y-oi) } /* def fillRect(dxDy: LatCoordD) = { LatCoord2D(this, dxDy).fillRect() }*/ def str = s"x:$x,y:$y" } /* case class ChiralCell( side: Either[LatCoord, LatCoord] ) { val offset = side match { case Left(lc) => lc case Right(lc) => lc.copy(x=lc.x+1) } } */ implicit def d2tolc(d2: (Double, Double)) : LatCoordD = { LatCoordD(d2._1, d2._2) } implicit def i2tolc(d2: (Int, Int)) : LatCoordD = { LatCoordD(d2._1, d2._2) } implicit def i2t2olc(d2: (Int, Int)) : LatCoord = { LatCoord(d2._1, d2._2) } /* // This kills rx.ops._ import carefully. Or make a nested class. implicit class RxOps[T](rxx: Rx[T]) { def reset(f: => T) = { rxx.parents.map{q => Try{q.asInstanceOf[Var[T]]() = f}} } } */ def xy(x: Double = 0D, y: Double = 0D): LatCoordD = LatCoordD(x,y) def xyi(x: Int = 0, y: Int = 0): LatCoord = LatCoord(x,y) def vl(x: Int = 0, y: Int = 0) = Var(xyi(x,y)) //def vl(x: Int = 0) = Var(xyi(x,x)) implicit class RxOpsExt[T](t: T) { def v = Var(t) def rx = Rx{t} } def lc0 = LatCoord(0, 0) def lcd0 = LatCoordD(0D, 0D) def l0 = Var{LatCoord(0, 0)} def ld0 = Var{LatCoordD(0D, 0D)} def l20 = Var{LatCoord2(LatCoord(0, 0),LatCoord(0, 0))} def ld20 = Var{LatCoord2D(lcd0, lcd0)} type LC = LatCoord type LCD = LatCoordD type LC2 = LatCoord2 type LC2D = LatCoord2D type VL = Var[LatCoord] type VLD = Var[LatCoordD] type VL2 = Var[LatCoord2] type VL2D = Var[LatCoord2D] case class LatCoord2(xy: LatCoord, xy2: LatCoord) { def str = xy.str + "|" + xy2.str } case class LatCoord2D(xy: LatCoordD, xy2: LatCoordD) { def str = xy.str + "|" + xy2.str def x = xy.x def y = xy.y def dx = xy2.x def dy = xy2.y def plus1(other: LCD) = { this.copy(xy = other.+(this.xy)) } } case class XYI(x: Var[Int], y: Var[Int]) { def plus(other: XYI) = { this.copy( x=Var(x() + other.x()), y=Var(y() + other.y()) ) } } }
Java
var Purest = require('purest'); function Facebook(opts) { this._opts = opts || {}; this._opts.provider = 'facebook'; this._purest = new Purest(this._opts); this._group = 'LIB:SOCIAL:FACEBOOK'; return this; } Facebook.prototype.user = function (cb) { var self = this; this._purest.query() .get('me') .auth(this._opts.auth.token) .request(function (err, res, body) { if (err) { console.log(err); return cb(err); } cb(null, body); }); }; Facebook.prototype.post = function (endpoint, form, cb) { // form = {message: 'post message'} this._purest.query() .post(endpoint || 'me/feed') .auth(this._opts.auth.token) .form(form) .request(function (err, res, body) { if (err) { console.log(err); return cb(err); } cb(null, body); }); }; module.exports = function(app) { return Facebook; };
Java
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <title>Note Detail</title> <script src="http://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"> </script> <!-- Kein Javascsript --> <noscript><a href=NoJavaScript.html>Kein Java Script</a></noscript> <!-- lib calendar resources --> <link rel="stylesheet" type="text/css" href="../lib/tcal/css/tcal.css"> <script src="../lib/tcal/js/tcal.js"></script> <!-- moment, systemjs wrapped with comment for html-replace--> <!-- build:vendor --> <script src="../../node_modules/moment/moment.js"></script> <script src="../../node_modules/moment-timezone/builds/moment-timezone-with-data.js"></script> <script src="../../node_modules/systemjs/dist/system.js"></script> <!-- endbuild --> <!-- application resources --> <link rel="stylesheet" type="text/css" href="../css/style.css"> <!-- handlebars lib from cdn--> <script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.5/handlebars.min.js"> </script> <!-- appbundle.js is created with tsconfig options target es5 module system--> <script src="../appbundle.js"></script> <script> System.import("notedetail/NoteDetail"); </script> </head> <body class="site"> <header role="banner"> <h1>Notiz erstellen</h1> </header> <div class="note-content"> <main class="note-detail"> <form id="note-form" class="note-form" action="" method="post"> <input id="note-id" class="input" name="id" type="number" hidden="hidden"> <label for="note-id"></label> <input id="note-createdDate" class="input" name="createdDate" type="text" hidden="hidden"> <label for="note-createdDate"></label> <input id="note-finishedDate" class="input" name="finishedDate" type="text" hidden="hidden"> <label for="note-finishedDate"></label> <div class="item col1"><h4>Title</h4></div> <div class="item col2"> <input id="note-title" class="input" name="title" type="text" required autofocus> <label for="note-title"></label> </div> <div class="item col1"><h4>Beschreibung</h4></div> <div class="item col2"> <textarea id="note-description" class="description" name="beschreibung" cols="50" rows="5" required placeholder="Beschreiben Sie hier Ihre Notiz..."></textarea> <label for="note-description"></label> </div> <div class="item col1"><h4>Wichtigkeit</h4></div> <div class="item col2"> <div class="rate"> <input type="radio" id="star5" name="rate" value="5" /> <label for="star5" title="Sehr wichtig und dringend"></label> <input type="radio" id="star4" name="rate" value="4" /> <label for="star4" title="Sehr wichtig"></label> <input type="radio" id="star3" name="rate" value="3" /> <label for="star3" title="wichtig"></label> <input type="radio" id="star2" name="rate" value="2" checked="checked"/> <label for="star2" title="Wenig wichtig"></label> <input type="radio" id="star1" name="rate" value="1" /> <label for="star1" title="Nicht wichtig"></label> </div> </div> <div class="item col1"><h4>Erledigt bis:</h4></div> <div class="item col2"> <input id="note-dueDate" type="text" name="dueDate" class="tcal duedate" required placeholder="DD/MM/YYYY" pattern="(0[1-9]|1[0-9]|2[0-9]|3[01])/(0[1-9]|1[012])/[0-9]{4}"> <label for="note-dueDate"></label> </div> <div class="item col1"></div> <div class="item col2"> <div class="buttons"> <button id="btnBack" type="button">Zurück</button> <button id="btnNoteReset" type="button">Reset</button> <button id="btnNoteSave" type="submit" form="note-form">Speichern</button> </div> </div> </form> <div id="log" class="item col1 log"></div> </main> </div> <footer> <div class="item footer">CAS Frontend Engineering 2016<br>Authoren: Marc Labud, Michel Rimbeaux</div> <div class="item col2"> <div class="footer-right"> <label for="ddlb_stylesheetSelect">Design auswählen: </label> <select id="ddlb_stylesheetSelect"> <option value="StyleOne">DarkTheme</option> <option value="StyleTwo" selected>BlueTheme</option> </select> <br>Projekt-Sourcen:&nbsp&nbsp<a class="git" href="https://github.com/marclabud/cas_fee_projectone">github</a> </div> </div> </footer> </body> </html>
Java
<?php namespace Lollipop; defined('LOLLIPOP_BASE') or die('Lollipop wasn\'t loaded correctly.'); /** * Benchmark Class * * @author John Aldrich Bernardo * @email 4ldrich@protonmail.com * @package Lollipop * @description Class for recording benchmarks */ class Benchmark { /** * @var array $_marks Recorded microtimes * */ static private $_marks = []; /** * Record benchmark * * @param string $mark Key name * */ static public function mark($mark) { self::$_marks[$mark] = [ 'time' => microtime(true), 'memory_usage' => memory_get_peak_usage(true) ]; } /** * Get detailed benchmark * * @access public * @param string $start Start mark * @param string $end End mark * @return array * */ static public function elapsed($start, $end) { return [ 'time_elapsed' => self::elapsedTime($start, $end), 'memory_usage_gap' => self::elapsedMemory($start, $end), 'real_memory_usage' => self::elapsedMemory($start, $end, true) ]; } /** * Get elapsed memory between two marks * * @access public * @param string $start Start mark * @param string $end End mark * @param bool $real_usage Get real memory usage * @param bool $inMB Show output in MB instead of Bytes * @return mixed <string> if $inMB is <true>, <longint> if on <false> * */ static public function elapsedMemory($start, $end, $real_usage = false, $inMB = true) { $start = isset(self::$_marks[$start]) ? self::$_marks[$start]['memory_usage'] : 0; $end = isset(self::$_marks[$end]) ? self::$_marks[$end]['memory_usage'] : 0; $elapsed = !$real_usage ? ($end - $start) : $end; return $start ? ($inMB ? (($elapsed / 1024 / 1024) . ' MB') : $elapsed) : null; } /** * Compute the elapsed time of two marks * * @param string $start Keyname 1 * @param string $end Keyname 2 * * @return mixed * */ static public function elapsedTime($start, $end) { $start = isset(self::$_marks[$start]) ? self::$_marks[$start]['time'] : 0; $end = isset(self::$_marks[$end]) ? self::$_marks[$end]['time'] : 0; return $start ? round($end - $start, 10) : null; } }
Java
#include <windows.h> #include "NativeCore.hpp" bool RC_CallConv IsProcessValid(RC_Pointer handle) { if (handle == nullptr) { return false; } const auto retn = WaitForSingleObject(handle, 0); if (retn == WAIT_FAILED) { return false; } return retn == WAIT_TIMEOUT; }
Java
#!/usr/bin/env bash # build datatheme resources # usage: $ bash ./publi.sh # build & deploys datatheme resources to host s3 bucket # usage: $ bash ./publi.sh put dev.afgo.pgyi # dependencies: # aws cli : http://aws.amazon.com/cli/ # nodejs : https://nodejs.org/ # bawlk : https://github.com/tesera/bawlk datatheme_root=s3://tesera.data.themes datatheme_path="$datatheme_root/$2" cp_flags="--acl public-read --cache-control no-cahe" if [ "$CI_BRANCH" != 'master' ]; then DATATHEME_NAME="$CI_BRANCH.$DATATHEME_NAME"; fi; echo "processing $CI_BRANCH" echo "building datapackage.json for datatheme $DATATHEME_NAME" mkdir -p ./www node ./build.js $DATATHEME_NAME > ./www/datapackage.json mkdir ./www/awk ./www/rules echo "compiling bawlk rules from datapackage.json" bawlk rules -d ./www/datapackage.json -o ./www/rules echo "compiling bawlk scripts from datapackage.json" bawlk scripts -d ./www/datapackage.json -o ./www/awk if [ "$1" == "put" ]; then echo "publishing datatheme resources to s3" aws s3 cp ./www/partials/ $datatheme_path/partials --recursive --content-type text/html $cp_flags aws s3 cp ./www/index.html $datatheme_path/index.html --content-type text/html $cp_flags aws s3 cp ./www/datapackage.json $datatheme_path/datapackage.json --content-type application/json $cp_flags aws s3 cp ./www/awk/ $datatheme_path/awk --recursive --content-type text/plain $cp_flags aws s3 cp ./www/rules/ $datatheme_path/rules --recursive --content-type text/plain $cp_flags echo "publishing complete" fi echo "done"
Java
#ifndef SKULL_SERVICE_TYPES_H #define SKULL_SERVICE_TYPES_H #include "api/sk_txn.h" #include "api/sk_service.h" struct _skull_service_t { sk_service_t* service; const sk_txn_t* txn; sk_txn_taskdata_t* task; // If freezed == 1, user cannot use set/get apis to touch data. Instead // user should create a new service job for that purpose int freezed; int _reserved; }; #endif
Java
# read only In leveldb you may only open an instance in one process... but you could have other processes open the database in read only mode easily enough. You could also have each instance create it's own memtable, (and tail other's memtables... as long as there weren't too many) then you could have eventual consistency between instances. Youd need to have timestamps in the memtable, though, + check each memtable for a key ... which means it would scale the number of processes badly, but it might be okay for one or two... # bulk load optimization when creating a memtable, you could detect whether all the writes are appends. Then, you could turn that table into a SST. If the file exceeds a given size, and there has only been appends, treat it like an SST... And even, if you get a non append write later, just start a new table. this would mean you could do a bulk load without any compaction. It could basically be the time to append to a file.
Java
#ifndef BITCOINGUI_H #define BITCOINGUI_H #include <QMainWindow> #include <QSystemTrayIcon> #include <QLabel> #include <QMap> #include "util.h" class TransactionTableModel; class WalletView; class ClientModel; class WalletModel; class WalletStack; class TransactionView; class OverviewPage; class AddressBookPage; class SendCoinsDialog; class SignVerifyMessageDialog; class Notificator; class RPCConsole; class StakeForCharityDialog; class CWallet; class CWalletManager; class MessageModel; QT_BEGIN_NAMESPACE class QLabel; class QModelIndex; class QProgressBar; class QStackedWidget; class QListWidget; class QPushButton; QT_END_NAMESPACE class ActiveLabel : public QLabel { Q_OBJECT public: ActiveLabel(const QString & text = "", QWidget * parent = 0); ~ActiveLabel(){} signals: void clicked(); protected: void mouseReleaseEvent (QMouseEvent * event) ; }; /** Bitcoin GUI main class. This class represents the main window of the Bitcoin UI. It communicates with both the client and wallet models to give the user an up-to-date view of the current core state. */ class BitcoinGUI : public QMainWindow { Q_OBJECT public: explicit BitcoinGUI(QWidget *parent = 0); ~BitcoinGUI(); int nHeight; /** Set the client model. The client model represents the part of the core that communicates with the P2P network, and is wallet-agnostic. */ void setClientModel(ClientModel *clientModel); /** Set the wallet model. The wallet model represents a bitcoin wallet, and offers access to the list of transactions, address book and sending functionality. */ void setWalletManager(CWalletManager *walletManager) { this->walletManager = walletManager; } bool addWallet(const QString& name, WalletModel *walletModel, MessageModel *messageModel); QString getCurrentWallet(); bool setCurrentWallet(const QString& name); QAction *exportAction; /// Get window identifier of QMainWindow (BitcoinGUI) WId getMainWinId() const; Notificator* getNotificator(); protected: void changeEvent(QEvent *e); void closeEvent(QCloseEvent *event); void dragEnterEvent(QDragEnterEvent *event); void dropEvent(QDropEvent *event); bool eventFilter(QObject *object, QEvent *event); private: ClientModel *clientModel; CWalletManager *walletManager; StakeForCharityDialog *stakeForCharityDialog; QMap<QString, WalletModel*> mapWalletModels; QListWidget *walletList; WalletStack *walletStack; WalletView *walletView; QPushButton *loadWalletButton; QPushButton *unloadWalletButton; QPushButton *newWalletButton; QLabel *labelEncryptionIcon; QLabel *labelStakingIcon; QLabel *labelConnectionsIcon; QLabel *labelBlocksIcon; QLabel *progressBarLabel; QLabel *mainIcon; QToolBar *mainToolbar; QToolBar *secondaryToolbar; QProgressBar *progressBar; QMenuBar *appMenuBar; QAction *overviewAction; QAction *historyAction; QAction *quitAction; QAction *sendCoinsAction; QAction *addressBookAction; QAction *shoppingAction; QAction *messageAction; QAction *signMessageAction; QAction *verifyMessageAction; QAction *aboutAction; QAction *charityAction; QAction *receiveCoinsAction; QAction *optionsAction; QAction *toggleHideAction; QAction *encryptWalletAction; QAction *unlockWalletAction; QAction *lockWalletAction; QAction *checkWalletAction; QAction *repairWalletAction; QAction *backupWalletAction; QAction *backupAllWalletsAction; QAction *dumpWalletAction; QAction *importWalletAction; QAction *changePassphraseAction; QAction *aboutQtAction; QAction *openRPCConsoleAction; QAction *openTrafficAction; QAction *loadWalletAction; QAction *unloadWalletAction; QAction *newWalletAction; QAction *blockAction; QAction *blocksIconAction; QAction *connectionIconAction; QAction *stakingIconAction; QSystemTrayIcon *trayIcon; TransactionView *transactionView; RPCConsole *rpcConsole; Notificator *notificator; QMovie *syncIconMovie; /** Keep track of previous number of blocks, to detect progress */ int prevBlocks; uint64_t nWeight; /** Create the main UI actions. */ void createActions(); /** Create the menu bar and sub-menus. */ void createMenuBar(); /** Create the toolbars */ void createToolBars(); /** Create system tray (notification) icon */ void createTrayIcon(); /** Create system tray menu (or setup the dock menu) */ void createTrayIconMenu(); public slots: /** Switch to overview (home) page */ void gotoOverviewPage(); /** Switch to history (transactions) page */ void gotoHistoryPage(bool fExportOnly=false, bool fExportConnect=true, bool fExportFirstTime=false); /** Switch to address book page */ void gotoAddressBookPage(bool fExportOnly=false, bool fExportConnect=true, bool fExportFirstTime=false); /** Switch to receive coins page */ void gotoReceiveCoinsPage(bool fExportOnly=false, bool fExportConnect=true, bool fExportFirstTime=false); /** Switch to send coins page */ void gotoSendCoinsPage(); /** Switch to shopping page */ void gotoShoppingPage(); /** Switch to message page */ void gotoMessagePage(); /** Switch to block browser page */ void gotoBlockBrowser(QString transactionId = ""); /** Show Sign/Verify Message dialog and switch to sign message tab */ void gotoSignMessageTab(QString addr = ""); /** Show Sign/Verify Message dialog and switch to verify message tab */ void gotoVerifyMessageTab(QString addr = ""); /** Set number of connections shown in the UI */ void setNumConnections(int count); /** Set number of blocks shown in the UI */ void setNumBlocks(int count, int nTotalBlocks); /** Set the encryption status as shown in the UI. @param[in] status current encryption status @see WalletModel::EncryptionStatus */ void setEncryptionStatus(int status); /** Show information about stakes */ void stakingIconClicked(); /** Show incoming transaction notification for new transactions. The new items are those between start and end inclusive, under the given parent item. */ void incomingTransaction(const QString& date, int unit, qint64 amount, const QString& type, const QString& address); /** Notify the user of an event from the core network or transaction handling code. @param[in] title the message box / notification title @param[in] message the displayed text @param[in] style modality and style definitions (icon and used buttons - buttons only for message boxes) @see CClientUIInterface::MessageBoxFlags @param[in] detail optional detail text */ void message(const QString &title, const QString &message, unsigned int style, const QString &detail=QString()); /** Asks the user whether to pay the transaction fee or to cancel the transaction. It is currently not possible to pass a return value to another thread through BlockingQueuedConnection, so an indirected pointer is used. https://bugreports.qt-project.org/browse/QTBUG-10440 @param[in] nFeeRequired the required fee @param[out] payFee true to pay the fee, false to not pay the fee */ void askFee(qint64 nFeeRequired, bool *payFee); void handleURI(QString strURI); void mainToolbarOrientation(Qt::Orientation orientation); void secondaryToolbarOrientation(Qt::Orientation orientation); void loadWallet(); void unloadWallet(); void newWallet(); private slots: /** Show configuration dialog */ void optionsClicked(); /** Show about dialog */ void aboutClicked(); /** Show information about network */ void blocksIconClicked(); /** Show Stake For Charity Dialog */ void charityClicked(QString addr = ""); /** Allow user to lock/unlock wallet from click */ void lockIconClicked(); /** Ask for passphrase to unlock wallet during entire session */ void unlockWalletForMint(); #ifndef Q_OS_MAC /** Handle tray icon clicked */ void trayIconActivated(QSystemTrayIcon::ActivationReason reason); #endif /** Encrypt the wallet */ void encryptWallet(bool status); /** Check the wallet */ void checkWallet(); /** Repair the wallet */ void repairWallet(); /** Backup the wallet */ void backupWallet(); void backupAllWallets(); /** Import/Export the wallet's keys */ void dumpWallet(); void importWallet(); /** Change encrypted wallet passphrase */ void changePassphrase(); /** Ask for passphrase to unlock wallet temporarily */ void unlockWallet(); void lockWallet(); /** Give user information about staking */ void updateStakingIcon(); /** Show window if hidden, unminimize when minimized, rise when obscured or show if hidden and fToggleHidden is true */ void showNormalIfMinimized(bool fToggleHidden = false); /** simply calls showNormalIfMinimized(true) for use in SLOT() macro */ void toggleHidden(); /** Adds or removes wallets to the stack */ void addWallet(const QString& name); void removeWallet(const QString& name); }; #endif // BITCOINGUI_H
Java
package dev.jee6demo.jspes; import java.io.IOException; import java.io.PrintWriter; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @WebServlet("/EventSourceServlet") public class EventSourceServlet extends HttpServlet { private static final long serialVersionUID = 1L; protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/event-stream"); response.setCharacterEncoding("UTF-8"); PrintWriter pw = response.getWriter(); for (int i = 0; i < 5; i++) { pw.write("event:new_time\n"); pw.write("data: " + now() + "\n\n"); pw.flush(); try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } } pw.write("event:new_time\n"); pw.write("data: STOP\n\n"); pw.flush(); pw.close(); } protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request,response); } public static String now(){ DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss.SSS"); return dateFormat.format(new Date()); } }
Java
<?php /** * This file is part of the PrestaCMSThemeBasicBundle * * (c) PrestaConcept <www.prestaconcept.net> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Presta\CMSThemeBasicBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; /** * This is the class that validates and merges configuration from your app/config files * * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class} * * @author Nicolas Bastien <nbastien@prestaconcept.net> */ class Configuration implements ConfigurationInterface { /** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $treeBuilder->root('presta_cms_theme_basic'); // Here you should define the parameters that are allowed to // configure your bundle. See the documentation linked above for // more information on that topic. return $treeBuilder; } }
Java
using System; using Android.App; using Android.Content.PM; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; namespace XF_ManySwitches.Droid { [Activity(Label = "XF_ManySwitches", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)] public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsApplicationActivity { protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); global::Xamarin.Forms.Forms.Init(this, bundle); LoadApplication(new App()); } } }
Java
describe('controllers/home', function () { var di, Core, Home, Type, contentModel = { findOne: function() { } }, widgetHooks = [], widgetHook = { load: function (a, b, c) { widgetHooks.push({ name: a, alias: b, method: c }); }, handle: function () { } }; beforeEach(function () { di = require('mvcjs'); di.setAlias('cp', __dirname + '/../../app/controllers/'); Type = di.load('typejs'); Core = di.mock('@{cp}/core', { 'typejs': Type, 'core/controller': { inherit: function () { return Type.create.apply(Type, arguments); } }, '@{core}/widget-hook': widgetHook }); Home = di.mock('@{cp}/home', { 'typejs': Type, 'promise': di.load('promise'), '@{controllersPath}/core': Core, '@{modelsPath}/content': contentModel }); }); it('construct', function () { var api = {}; var controller = new Home(api); expect(controller.locals.scripts.length).toBe(0); expect(controller.locals.brand).toBe('MVCJS'); expect(controller.locals.pageTitle).toBe('Mvcjs nodejs framework'); expect(controller.locals.pageDesc).toBe('Mvcjs fast, opinionated lightweight mvc framework for Node.js inspired by Yii framework'); expect(controller.menu.length).toBe(0); }); it('action_index', function () { var api = { locals: { scripts: [] }, renderFile: function(route, locals) { return 'RENDERED'; } }; spyOn(api, 'renderFile').and.callThrough(); di.setAlias('basePath', __dirname + '/../../'); var controller = new Home(api); var result = controller.action_index.call(api); expect(api.renderFile).toHaveBeenCalledWith( 'home/index', { scripts : [ { src : 'https://buttons.github.io/buttons.js', id : 'github-bjs', async : true } ], version : '0.1.0-beta-15' }); expect(result).toBe('RENDERED'); expect(api.locals.scripts.length).toBe(1); }); it('action_content', function () { var api = { locals: { content: '', pageTitle: '', pageDesc: '' }, renderFile: function(route, locals) { return 'RENDERED'; } }; spyOn(api, 'renderFile').and.callThrough(); di.setAlias('basePath', __dirname + '/../../'); var controller = new Home(api); var result = controller.action_content.call(api, {}, { text: 'TEXT', pageTitle: 'TITLE', pageDesc: 'DESC' }); expect(api.renderFile).toHaveBeenCalledWith( 'home/content', { pageTitle: 'TITLE', pageDesc: 'DESC', content : 'TEXT' }); expect(result).toBe('RENDERED'); }); it('before_content', function (done) { var api = { getParsedUrl: function(route, locals) { return { pathname: '/home/index' }; } }; contentModel.findOne = function(data, callback) { expect(data.url).toBe('/home/index'); callback(null, { id: 1, text: 'yes' }); }; spyOn(api, 'getParsedUrl').and.callThrough(); spyOn(contentModel, 'findOne').and.callThrough(); di.setAlias('basePath', __dirname + '/../../'); var controller = new Home(api); var result = controller.before_content.call(api); result.then(function(data) { expect(api.getParsedUrl).toHaveBeenCalled(); expect(contentModel.findOne).toHaveBeenCalled(); expect(data.id).toBe(1); expect(data.text).toBe('yes'); done(); }); }); it('before_content error', function (done) { var api = { getParsedUrl: function(route, locals) { return { pathname: '/home/index' }; } }; contentModel.findOne = function(data, callback) { expect(data.url).toBe('/home/index'); callback(true, { id: 1, text: 'yes' }); }; spyOn(api, 'getParsedUrl').and.callThrough(); spyOn(contentModel, 'findOne').and.callThrough(); di.setAlias('basePath', __dirname + '/../../'); var controller = new Home(api); var result = controller.before_content.call(api); result.then(null, function(error) { console.log('error', error); done(); }); }); it('beforeEach', function () { var api = {}; widgetHook.handle = function(hooks) { expect(hooks.indexOf('menu-hook')).toBe(0); return hooks.shift(); }; var controller = new Home(api); expect(controller.beforeEach()).toBe('menu-hook'); expect(controller.locals.scripts.length).toBe(1); }); it('action_error', function () { var api = { locals: {}, setStatusCode: function(code) { expect(code).toBe(500); }, renderFile: function(name, locals) { expect(name).toBe('home/error'); expect(locals.pageTitle).toBe('Error - mvcjs nodejs framework'); expect(locals.text).toBe('ERROR'); return 'RENDER'; } }; spyOn(api, 'setStatusCode').and.callThrough(); spyOn(api, 'renderFile').and.callThrough(); var controller = new Home({}); var response = controller.action_error.call(api, { code: 500, toString: function() { return "ERROR"; } }); expect(api.setStatusCode).toHaveBeenCalled(); expect(api.renderFile).toHaveBeenCalled(); expect(response).toBe('RENDER'); }); });
Java
<!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&nbsp; 2dfb379f-a496-4451-a136-896faf7668f2 </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="#FlitBit.IoC">FlitBit.IoC</a></strong></td> <td class="text-center">94.84 %</td> <td class="text-center">92.08 %</td> <td class="text-center">100.00 %</td> <td class="text-center">92.08 %</td> </tr> </tbody> </table> </div> <div id="details"> <a name="FlitBit.IoC"><h3>FlitBit.IoC</h3></a> <table> <tbody> <tr> <th>Target type</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> <th>Recommended changes</th> </tr> <tr> <td>System.ApplicationException</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use other exception types.</td> </tr> <tr> <td style="padding-left:2em">#ctor</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use other exception types.</td> </tr> <tr> <td style="padding-left:2em">#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use other exception types.</td> </tr> <tr> <td style="padding-left:2em">#ctor(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use other exception types.</td> </tr> <tr> <td style="padding-left:2em">#ctor(System.String,System.Exception)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use other exception types.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Delegate</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Reflection.RuntimeReflectionExtensions.GetMethodInfo</td> </tr> <tr> <td style="padding-left:2em">get_Method</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Reflection.RuntimeReflectionExtensions.GetMethodInfo</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Exception</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage.</td> </tr> <tr> <td style="padding-left:2em">add_SerializeObjectState(System.EventHandler{System.Runtime.Serialization.SafeSerializationEventArgs})</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.ICloneable</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage. Implement cloning operation yourself if needed.</td> </tr> <tr> <td style="padding-left:2em">Clone</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage. Implement cloning operation yourself if needed.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Reflection.Binder</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use an overload that does not take a Binder.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Reflection.BindingFlags</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Reflection.Emit.ILGenerator</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">DeclareLocal(System.Type)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">DefineLabel</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">MarkLabel(System.Reflection.Emit.Label)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">ThrowException(System.Type)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Reflection.Emit.Label</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Reflection.Emit.LocalBuilder</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Reflection.Emit.ModuleBuilder</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Reflection.MemberInfo</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">IsDefined(System.Type,System.Boolean)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Reflection.Module</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetType(System.String,System.Boolean,System.Boolean)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Reflection.ParameterModifier</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use an overload that does not take a ParameterModifier array.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Reflection.PropertyInfo</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use PropertyInfo.SetMethod property</td> </tr> <tr> <td style="padding-left:2em">GetGetMethod</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use PropertyInfo.GetMethod property</td> </tr> <tr> <td style="padding-left:2em">GetSetMethod</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use PropertyInfo.SetMethod property</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Reflection.TypeFilter</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">#ctor(System.Object,System.IntPtr)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Runtime.ConstrainedExecution.Cer</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Runtime.ConstrainedExecution.Consistency</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Runtime.ConstrainedExecution.ReliabilityContractAttribute</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td style="padding-left:2em">#ctor(System.Runtime.ConstrainedExecution.Consistency,System.Runtime.ConstrainedExecution.Cer)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove usage</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Runtime.Remoting.Messaging.CallContext</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Consider using System.Threading.AsyncLocal&lt;T&gt;</td> </tr> <tr> <td style="padding-left:2em">LogicalGetData(System.String)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">LogicalSetData(System.String,System.Object)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Runtime.Serialization.ISafeSerializationData</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>either 1) Delete Serialization info from exceptions (since this can&#39;t be remoted) or 2) Use a different serialization technology if not for exceptions.</td> </tr> <tr> <td style="padding-left:2em">CompleteDeserialization(System.Object)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>either 1) Delete Serialization info from exceptions (since this can&#39;t be remoted) or 2) Use a different serialization technology if not for exceptions.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Runtime.Serialization.SafeSerializationEventArgs</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>either 1) Delete Serialization info from exceptions (since this can&#39;t be remoted) or 2) Use a different serialization technology if not for exceptions.</td> </tr> <tr> <td style="padding-left:2em">AddSerializedState(System.Runtime.Serialization.ISafeSerializationData)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>either 1) Delete Serialization info from exceptions (since this can&#39;t be remoted) or 2) Use a different serialization technology if not for exceptions.</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Runtime.Serialization.SerializationInfo</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Remove serialization constructors on custom Exception types</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Threading.Thread</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Threading.Interlocked.MemoryBarrier instead</td> </tr> <tr> <td style="padding-left:2em">MemoryBarrier</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use System.Threading.Interlocked.MemoryBarrier instead</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td>System.Type</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Equivalent available: Add using for System.Reflection, and reference System.Reflection.TypeExtensions </td> </tr> <tr> <td style="padding-left:2em">EmptyTypes</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>new Type[0] (or create your own static property which returns a cached version of this)</td> </tr> <tr> <td style="padding-left:2em">FindInterfaces(System.Reflection.TypeFilter,System.Object)</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">get_Assembly</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>.GetTypeInfo().Assembly</td> </tr> <tr> <td style="padding-left:2em">get_BaseType</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>.GetTypeInfo().BaseType</td> </tr> <tr> <td style="padding-left:2em">get_IsAbstract</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>.GetTypeInfo().IsAbstract</td> </tr> <tr> <td style="padding-left:2em">get_IsClass</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>.GetTypeInfo().IsClass</td> </tr> <tr> <td style="padding-left:2em">get_IsGenericType</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>.GetTypeInfo().IsGenericType</td> </tr> <tr> <td style="padding-left:2em">get_IsGenericTypeDefinition</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>.GetTypeInfo().IsGenericTypeDefinition</td> </tr> <tr> <td style="padding-left:2em">get_IsInterface</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>.GetTypeInfo().IsInterface</td> </tr> <tr> <td style="padding-left:2em">get_IsPrimitive</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>.GetTypeInfo().IsPrimitive</td> </tr> <tr> <td style="padding-left:2em">get_IsValueType</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>.GetTypeInfo().IsValueType</td> </tr> <tr> <td style="padding-left:2em">GetConstructor(System.Reflection.BindingFlags,System.Reflection.Binder,System.Type[],System.Reflection.ParameterModifier[])</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use GetConstructor(Type[]) to search for public constructors by parameter type or filter the results of GetConstructors(BindingFlags) using LINQ for other queries.</td> </tr> <tr> <td style="padding-left:2em">GetConstructor(System.Type[])</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetConstructors(System.Reflection.BindingFlags)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Equivalent available: Add using for System.Reflection, and reference System.Reflection.TypeExtensions </td> </tr> <tr> <td style="padding-left:2em">GetGenericArguments</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetInterfaces</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetMethod(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetMethod(System.String,System.Reflection.BindingFlags)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Equivalent available: Add using for System.Reflection, and reference System.Reflection.TypeExtensions </td> </tr> <tr> <td style="padding-left:2em">GetMethod(System.String,System.Type[],System.Reflection.ParameterModifier[])</td> <td class="IconErrorEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td>Use GetMethod(string, Type[]) to search for public methods by name and parameter type or filter the results of GetMethods(BindingFlags) using LINQ for other queries.</td> </tr> <tr> <td style="padding-left:2em">GetMethods</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetProperties</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">GetProperty(System.String)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td style="padding-left:2em">IsAssignableFrom(System.Type)</td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td class="IconSuccessEncoded"></td> <td class="IconErrorEncoded"></td> <td></td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> </tbody> </table> <p> <a href="#Portability Summary">Back to Summary</a> </p> </div> </div> </body> </html>
Java
#ifndef APPSETTINGSSTORAGE_H #define APPSETTINGSSTORAGE_H #include <QDebug> #include <QCoreApplication> #include <QString> #include <QMap> #include <QSettings> #include <QDir> class AppSettingsStorage { public: enum Settings { ACCOUNT_LOGIN = 0, ACCOUNT_PASS, APP_RUN_ON_BOOT, APP_START_MINIMIZED, APP_STATUS }; AppSettingsStorage(); static void initColumnNames() { settingsMap.insert(ACCOUNT_LOGIN, "account/login"); settingsMap.insert(ACCOUNT_PASS, "account/password"); settingsMap.insert(APP_RUN_ON_BOOT, "app/runOnbootCheckBox"); settingsMap.insert(APP_START_MINIMIZED, "app/startMinimizedCheckBox"); settingsMap.insert(APP_STATUS, "app/status"); } QMap<QString, QString> loadSettings(); void storeSettings(QMap<QString, QString> properties); signals: public slots: public: const static QSettings *settings; static QMap<Settings, QString> settingsMap; }; #endif // APPSETTINGSSTORAGE_H
Java
<?php return array( /** @brief Table de liaison avec les mots clés */ 'table_liaison' => 'jayps_search_word_occurence', /** @brief Préfixe de la table de liaison avec les mots clés */ 'table_liaison_prefixe' => 'mooc_', /** @brief mots clés interdits */ 'forbidden_words' => array( // 3 lettres 'les', 'des', 'ses', 'son', 'mes', 'mon', 'tes', 'ton', 'une', 'aux', 'est', 'sur', 'par', 'dit', 'the', // 4 lettres 'pour','sans','dans','avec','deux','vers', // 5 lettres 'titre', ), /** @brief allowed some chars in words indexed and in search */ 'allowable_chars' => '*?', /** @brief longueur mimimum des mots à indexer */ 'min_word_len' => 3, /** @brief max number of joins for a search */ 'max_join' => 4, /** @brief For debugging */ 'debug' => false, /** @brief use a transaction to speed up InnoDB insert */ 'transaction' => false, /** @brief use INSERT DELAYED, for MyISAM Engine only*/ 'insert_delayed' => true, /** @brief group insertion of words */ 'words_by_insert' => 100, /** @brief score can be improved by this config*/ 'title_boost' => 3, 'html_boost' => array( 'h1' => 3, 'h2' => 2, 'h3' => 1, 'strong' => 1, ) );
Java
/* vim: set syntax=javascript ts=8 sts=8 sw=8 noet: */ /* * Copyright 2016, Joyent, Inc. */ var BINDING = require('./lockfd_binding'); function check_arg(pos, name, value, type) { if (typeof (value) !== type) { throw (new Error('argument #' + pos + ' (' + name + ') must be of type ' + type)); } } function lockfd(fd, callback) { check_arg(1, 'fd', fd, 'number'); check_arg(2, 'callback', callback, 'function'); BINDING.lock_fd(fd, 'write', false, function (ret, errmsg, errno) { var err = null; if (ret === -1) { err = new Error('File Locking Error: ' + errmsg); err.code = errno; } setImmediate(callback, err); }); } function lockfdSync(fd) { var cb_fired = false; var err; check_arg(1, 'fd', fd, 'number'); BINDING.lock_fd(fd, 'write', true, function (ret, errno, errmsg) { cb_fired = true; if (ret === -1) { err = new Error('File Locking Error: ' + errmsg); err.__errno = errno; return; } }); if (!cb_fired) { throw (new Error('lockfdSync: CALLBACK NOT FIRED')); } else if (err) { throw (err); } return (null); } function flock(fd, op, callback) { check_arg(1, 'fd', fd, 'number'); check_arg(2, 'op', op, 'number'); check_arg(3, 'callback', callback, 'function'); BINDING.flock(fd, op, false, function (ret, errmsg, errno) { var err = null; if (ret === -1) { err = new Error('File Locking Error: ' + errmsg); err.code = errno; } setImmediate(callback, err); }); } function flockSync(fd, op) { var cb_fired = false; var err; check_arg(1, 'fd', fd, 'number'); check_arg(2, 'op', op, 'number'); BINDING.flock(fd, op, true, function (ret, errmsg, errno) { cb_fired = true; if (ret === -1) { err = new Error('File Locking Error: ' + errmsg); err.code = errno; return; } }); if (!cb_fired) { throw (new Error('flockSync: CALLBACK NOT FIRED')); } else if (err) { throw (err); } return (null); } module.exports = { LOCK_SH: 1, LOCK_EX: 2, LOCK_NB: 4, LOCK_UN: 8, flock: flock, flockSync: flockSync, lockfd: lockfd, lockfdSync: lockfdSync };
Java
'use strict'; angular.module('depthyApp') .controller('DrawCtrl', function ($scope, $element, depthy, $window, $timeout) { var drawer = depthy.drawMode, viewer = depthy.getViewer(), lastPointerPos = null, oldViewerOpts = angular.extend({}, depthy.viewer); drawer.setOptions(depthy.drawOptions || { depth: 0.5, size: 0.05, hardness: 0.5, opacity: 0.25, }); angular.extend(depthy.viewer, { animate: false, fit: 'contain', upscale: 2, // depthPreview: 0.75, // orient: false, // hover: false, }); $scope.drawer = drawer; $scope.drawOpts = drawer.getOptions(); $scope.preview = 1; $scope.brushMode = false; $scope.$watch('drawOpts', function(options) { if (drawer && options) { drawer.setOptions(options); } }, true); $scope.$watch('preview', function(preview) { depthy.viewer.orient = preview === 2; depthy.viewer.hover = preview === 2; depthy.viewer.animate = preview === 2 && oldViewerOpts.animate; depthy.viewer.quality = preview === 2 ? false : 1; depthy.animateOption(depthy.viewer, { depthPreview: preview === 0 ? 1 : preview === 1 ? 0.75 : 0, depthScale: preview === 2 ? oldViewerOpts.depthScale : 0, depthBlurSize: preview === 2 ? oldViewerOpts.depthBlurSize : 0, enlarge: 1.0, }, 250); }); $scope.togglePreview = function() { console.log('togglePreview', $scope.preview); // $scope.preview = ++$scope.preview % 3; $scope.preview = $scope.preview === 1 ? 2 : 1; }; $scope.done = function() { $window.history.back(); }; $scope.cancel = function() { drawer.cancel(); $window.history.back(); }; $scope.brushIcon = function() { switch($scope.brushMode) { case 'picker': return 'target'; case 'level': return 'magnet'; default: return 'draw'; } }; $element.on('touchstart mousedown', function(e) { console.log('mousedown'); var event = e.originalEvent, pointerEvent = event.touches ? event.touches[0] : event; if (event.target.id !== 'draw') return; lastPointerPos = viewer.screenToImagePos({x: pointerEvent.pageX, y: pointerEvent.pageY}); if ($scope.brushMode === 'picker' || $scope.brushMode === 'level') { $scope.drawOpts.depth = drawer.getDepthAtPos(lastPointerPos); console.log('Picked %s', $scope.drawOpts.depth); if ($scope.brushMode === 'picker') { $scope.brushMode = false; lastPointerPos = null; $scope.$safeApply(); event.preventDefault(); event.stopPropagation(); return; } else { $scope.$safeApply(); } } drawer.drawBrush(lastPointerPos); // updateDepthMap(); event.preventDefault(); event.stopPropagation(); }); $element.on('touchmove mousemove', function(e) { if (lastPointerPos) { var event = e.originalEvent, pointerEvent = event.touches ? event.touches[0] : event, pointerPos = viewer.screenToImagePos({x: pointerEvent.pageX, y: pointerEvent.pageY}); drawer.drawBrushTo(pointerPos); lastPointerPos = pointerPos; } }); $element.on('touchend mouseup', function(event) { console.log('mouseup', event); if (lastPointerPos) { lastPointerPos = null; $scope.$safeApply(); } // if(window.location.href.indexOf('preview')<0){ // updateDepthMap(); // } }); $element.on('click', function(e) { console.log('click'); // updateDepthMap(); }); function getSliderForKey(e) { var id = 'draw-brush-depth'; if (e.shiftKey && e.altKey) { id = 'draw-brush-hardness'; } else if (e.altKey) { id = 'draw-brush-opacity'; } else if (e.shiftKey) { id = 'draw-brush-size'; } var el = $element.find('.' + id + ' [range-stepper]'); el.click(); // simulate click to notify change return el.controller('rangeStepper'); } function onKeyDown(e) { console.log('keydown', e); var s, handled = false; console.log('keydown which %d shift %s alt %s ctrl %s', e.which, e.shiftKey, e.altKey, e.ctrlKey); if (e.which === 48) { // 0 getSliderForKey(e).percent(0.5); handled = true; } else if (e.which >= 49 && e.which <= 57) { // 1-9 getSliderForKey(e).percent((e.which - 49) / 8); handled = true; } else if (e.which === 189) { // - s = getSliderForKey(e); s.percent(s.percent() - 0.025); handled = true; } else if (e.which === 187) { // + s = getSliderForKey(e); s.percent(s.percent() + 0.025); handled = true; } else if (e.which === 32) { $element.find('.draw-preview').click(); handled = true; } else if (e.which === 90) { // z $element.find('.draw-undo').click(); handled = true; } else if (e.which === 80) { // p $element.find('.draw-picker').click(); handled = true; } else if (e.which === 76) { // l $element.find('.draw-level').click(); handled = true; } else if (e.which === 81) { // l $scope.preview = $scope.preview === 1 ? 2 : 1; handled = true; } if (handled) { e.preventDefault(); $scope.$safeApply(); } } $($window).on('keydown', onKeyDown); $element.find('.draw-brush-depth').on('touchstart mousedown click', function() { $scope.brushMode = false; }); $element.on('$destroy', function() { $element.off('touchstart mousedown'); $element.off('touchmove mousemove'); $($window).off('keydown', onKeyDown); depthy.animateOption(depthy.viewer, { depthPreview: oldViewerOpts.depthPreview, depthScale: oldViewerOpts.depthScale, depthBlurSize: oldViewerOpts.depthBlurSize, enlarge: oldViewerOpts.enlarge, }, 250); $timeout(function() { angular.extend(depthy.viewer, oldViewerOpts); }, 251); if (drawer.isCanceled()) { // restore opened depthmap viewer.setDepthmap(depthy.opened.depthSource, depthy.opened.depthUsesAlpha); } else { if (drawer.isModified()) { updateDepthMap(); } } drawer.destroy(true); }); function updateDepthMap(){ depthy.drawOptions = drawer.getOptions(); // remember drawn depthmap // store it as jpg console.log('updateDepthMap',viewer); viewer.exportDepthmap().then(function(url) { depthy.opened.markAsModified(); depthy.opened.depthSource = url; //viewer.getDepthmap().texture; depthy.opened.depthUsesAlpha = false; viewer.setDepthmap(url); depthy.opened.onDepthmapOpened(); localStorage.depthMapUrl = url; var intercom = Intercom.getInstance(); intercom.emit('depthMapUrl', {message: url}); }); } });
Java
<?xml version="1.0" ?><!DOCTYPE TS><TS language="el_GR" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About BigBang</source> <translation type="unfinished"/> </message> <message> <location line="+39"/> <source>&lt;b&gt;BigBang&lt;/b&gt; 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 BigBang 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 (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source> <translation> This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</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>Διπλό-κλικ για επεξεργασία της διεύθυνσης ή της ετικέτας</translation> </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>Αντέγραψε την επιλεγμένη διεύθυνση στο πρόχειρο του συστήματος</translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation type="unfinished"/> </message> <message> <location line="-46"/> <source>These are your BigBang 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>&amp;Copy Address</source> <translation>&amp;Αντιγραφή διεύθυνσης</translation> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a BigBang address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Delete the currently selected address from the list</source> <translation>Αντιγραφη της επιλεγμενης διεύθυνσης στο πρόχειρο του συστηματος</translation> </message> <message> <location line="-14"/> <source>Verify a message to ensure it was signed with a specified BigBang address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation>&amp;Διαγραφή</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+65"/> <source>Copy &amp;Label</source> <translation>Αντιγραφή &amp;επιγραφής</translation> </message> <message> <location line="+2"/> <source>&amp;Edit</source> <translation>&amp;Επεξεργασία</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>Αρχείο οριοθετημένο με κόμματα (*.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>Ετικέτα</translation> </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>Φράση πρόσβασης </translation> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>Βάλτε κωδικό πρόσβασης</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>Νέος κωδικός πρόσβασης</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>Επανέλαβε τον νέο κωδικό πρόσβασης</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.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>Εισάγετε τον νέο κωδικό πρόσβασης στον πορτοφόλι &lt;br/&gt; Παρακαλώ χρησιμοποιείστε ένα κωδικό με &lt;b&gt; 10 ή περισσότερους τυχαίους χαρακτήρες&lt;/b&gt; ή &lt;b&gt; οχτώ ή παραπάνω λέξεις&lt;/b&gt;.</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation>Κρυπτογράφησε το πορτοφόλι</translation> </message> <message> <location line="+7"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>Αυτη η ενεργεία χρειάζεται τον κωδικό του πορτοφολιού για να ξεκλειδώσει το πορτοφόλι.</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>Ξεκλειδωσε το πορτοφολι</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>Αυτη η ενεργεια χρειάζεται τον κωδικο του πορτοφολιου για να αποκρυπτογραφησειι το πορτοφολι.</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>Αποκρυπτογράφησε το πορτοφολι</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>Άλλαξε κωδικο πρόσβασης</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>Εισάγετε τον παλιό και τον νεο κωδικο στο πορτοφολι.</translation> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation>Επιβεβαίωσε την κρυπτογραφηση του πορτοφολιού</translation> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR COINS&lt;/b&gt;!</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation>Είστε σίγουροι ότι θέλετε να κρυπτογραφήσετε το πορτοφόλι σας;</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>ΣΗΜΑΝΤΙΚΟ: Τα προηγούμενα αντίγραφα ασφαλείας που έχετε κάνει από το αρχείο του πορτοφόλιου σας θα πρέπει να αντικατασταθουν με το νέο που δημιουργείται, κρυπτογραφημένο αρχείο πορτοφόλιου. Για λόγους ασφαλείας, τα προηγούμενα αντίγραφα ασφαλείας του μη κρυπτογραφημένου αρχείου πορτοφόλιου θα καταστουν άχρηστα μόλις αρχίσετε να χρησιμοποιείτε το νέο κρυπτογραφημένο πορτοφόλι. </translation> </message> <message> <location line="+103"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation>Προσοχη: το πλήκτρο Caps Lock είναι ενεργο.</translation> </message> <message> <location line="-133"/> <location line="+60"/> <source>Wallet encrypted</source> <translation>Κρυπτογραφημενο πορτοφολι</translation> </message> <message> <location line="-58"/> <source>BigBang 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>Η κρυπτογραφηση του πορτοφολιού απέτυχε</translation> </message> <message> <location line="-56"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>Η κρυπτογράφηση του πορτοφολιού απέτυχε λογω εσωτερικού σφάλματος. Το πορτοφολι δεν κρυπτογραφηθηκε.</translation> </message> <message> <location line="+7"/> <location line="+50"/> <source>The supplied passphrases do not match.</source> <translation>Οι εισαχθέντες κωδικοί δεν ταιριάζουν.</translation> </message> <message> <location line="-38"/> <source>Wallet unlock failed</source> <translation>το ξεκλείδωμα του πορτοφολιού απέτυχε</translation> </message> <message> <location line="+1"/> <location line="+12"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>Ο κωδικος που εισήχθη για την αποκρυπτογραφηση του πορτοφολιού ήταν λαθος.</translation> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>Η αποκρυπτογραφηση του πορτοφολιού απέτυχε</translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation>Ο κωδικος του πορτοφολιού άλλαξε με επιτυχία.</translation> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+282"/> <source>Sign &amp;message...</source> <translation>Υπογραφή &amp;Μηνύματος...</translation> </message> <message> <location line="+251"/> <source>Synchronizing with network...</source> <translation>Συγχρονισμός με το δίκτυο...</translation> </message> <message> <location line="-319"/> <source>&amp;Overview</source> <translation>&amp;Επισκόπηση</translation> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation>Εμφάνισε τη γενική εικόνα του πορτοφολιού</translation> </message> <message> <location line="+17"/> <source>&amp;Transactions</source> <translation>&amp;Συναλλαγές</translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation>Περιήγηση στο ιστορικό συναλλαγών</translation> </message> <message> <location line="+5"/> <source>&amp;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>&amp;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>&amp;Send coins</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>E&amp;xit</source> <translation>Έ&amp;ξοδος</translation> </message> <message> <location line="+1"/> <source>Quit application</source> <translation>Εξοδος από την εφαρμογή</translation> </message> <message> <location line="+6"/> <source>Show information about BigBang</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation>Σχετικά με &amp;Qt</translation> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation>Εμφάνισε πληροφορίες σχετικά με Qt</translation> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation>&amp;Επιλογές...</translation> </message> <message> <location line="+4"/> <source>&amp;Encrypt Wallet...</source> <translation>&amp;Κρυπτογράφησε το πορτοφόλι</translation> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation>&amp;Αντίγραφο ασφαλείας του πορτοφολιού</translation> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation>&amp;Άλλαξε κωδικο πρόσβασης</translation> </message> <message numerus="yes"> <location line="+259"/> <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="-256"/> <source>&amp;Export...</source> <translation type="unfinished"/> </message> <message> <location line="-64"/> <source>Send coins to a BigBang address</source> <translation type="unfinished"/> </message> <message> <location line="+47"/> <source>Modify configuration options for BigBang</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>Δημιουργία αντιγράφου ασφαλείας πορτοφολιού σε άλλη τοποθεσία</translation> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation>Αλλαγή του κωδικού κρυπτογράφησης του πορτοφολιού</translation> </message> <message> <location line="+10"/> <source>&amp;Debug window</source> <translation>&amp;Παράθυρο αποσφαλμάτωσης</translation> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation>Άνοιγμα κονσόλας αποσφαλμάτωσης και διαγνωστικών</translation> </message> <message> <location line="-5"/> <source>&amp;Verify message...</source> <translation>&amp;Επιβεβαίωση μηνύματος</translation> </message> <message> <location line="-202"/> <source>BigBang</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Wallet</source> <translation>Πορτοφόλι</translation> </message> <message> <location line="+180"/> <source>&amp;About BigBang</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation>&amp;Εμφάνισε/Κρύψε</translation> </message> <message> <location line="+9"/> <source>Unlock wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>&amp;Lock Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Lock wallet</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>&amp;File</source> <translation>&amp;Αρχείο</translation> </message> <message> <location line="+8"/> <source>&amp;Settings</source> <translation>&amp;Ρυθμίσεις</translation> </message> <message> <location line="+8"/> <source>&amp;Help</source> <translation>&amp;Βοήθεια</translation> </message> <message> <location line="+12"/> <source>Tabs toolbar</source> <translation>Εργαλειοθήκη καρτελών</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>BigBang client</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+75"/> <source>%n active connection(s) to BigBang 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.&lt;br&gt;Your weight is %1&lt;br&gt;Network weight is %2&lt;br&gt;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&apos;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="-312"/> <source>About BigBang card</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show information about BigBang card</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>&amp;Unlock Wallet...</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+297"/> <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>Ενημερωμένο</translation> </message> <message> <location line="+7"/> <source>Catching up...</source> <translation>Ενημέρωση...</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>Η συναλλαγή απεστάλη</translation> </message> <message> <location line="+1"/> <source>Incoming transaction</source> <translation>Εισερχόμενη συναλλαγή</translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>Ημερομηνία: %1 Ποσό: %2 Τύπος: %3 Διεύθυνση: %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 BigBang address or malformed URI parameters.</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>Το πορτοφόλι είναι &lt;b&gt;κρυπτογραφημένο&lt;/b&gt; και &lt;b&gt;ξεκλείδωτο&lt;/b&gt;</translation> </message> <message> <location line="+10"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>Το πορτοφόλι είναι &lt;b&gt;κρυπτογραφημένο&lt;/b&gt; και &lt;b&gt;κλειδωμένο&lt;/b&gt;</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 ώρες </numerusform><numerusform>%n ώρες </numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation><numerusform>%n ημέρες </numerusform><numerusform>%n ημέρες </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. BigBang 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>Ειδοποίηση Δικτύου</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 type="unfinished"/> </message> <message> <location line="+32"/> <source>Bytes:</source> <translation type="unfinished"/> </message> <message> <location line="+48"/> <source>Amount:</source> <translation>Ποσό:</translation> </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>Ποσό</translation> </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>Επικυρωμένες</translation> </message> <message> <location line="+5"/> <source>Priority</source> <translation type="unfinished"/> </message> <message> <location filename="../coincontroldialog.cpp" line="-515"/> <source>Copy address</source> <translation>Αντιγραφή διεύθυνσης</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>Αντιγραφή επιγραφής</translation> </message> <message> <location line="+1"/> <location line="+26"/> <source>Copy amount</source> <translation>Αντιγραφή ποσού</translation> </message> <message> <location line="-25"/> <source>Copy transaction ID</source> <translation>Αντιγραφη του ID Συναλλαγής</translation> </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 &quot;medium&quot;. 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>Επεξεργασία Διεύθυνσης</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>&amp;Επιγραφή</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>&amp;Address</source> <translation>&amp;Διεύθυνση</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>Νέα διεύθυνση λήψης</translation> </message> <message> <location line="+4"/> <source>New sending address</source> <translation>Νέα διεύθυνση αποστολής</translation> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation>Επεξεργασία διεύθυνσης λήψης</translation> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation>Επεξεργασία διεύθυνσης αποστολής</translation> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>Η διεύθυνση &quot;%1&quot; βρίσκεται ήδη στο βιβλίο διευθύνσεων.</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid BigBang address.</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>Δεν είναι δυνατό το ξεκλείδωμα του πορτοφολιού.</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation>Η δημιουργία νέου κλειδιού απέτυχε.</translation> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+420"/> <location line="+12"/> <source>BigBang-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 &quot;de_DE&quot; (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>Ρυθμίσεις</translation> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation>&amp;Κύριο</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 &amp;fee</source> <translation>Αμοιβή &amp;συναλλαγής</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 BigBang after logging in to the system.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Start BigBang 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>&amp;Detach databases at shutdown</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>&amp;Network</source> <translation>&amp;Δίκτυο</translation> </message> <message> <location line="+6"/> <source>Automatically open the BigBang 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 &amp;UPnP</source> <translation>Απόδοση θυρών με χρήστη &amp;UPnP</translation> </message> <message> <location line="+7"/> <source>Connect to the BigBang network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Proxy &amp;IP:</source> <translation>&amp;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>&amp;Port:</source> <translation>&amp;Θύρα:</translation> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation>Θύρα διαμεσολαβητή</translation> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation>SOCKS &amp;Έκδοση:</translation> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation>SOCKS εκδοση του διαμεσολαβητη (e.g. 5)</translation> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation>&amp;Παράθυρο</translation> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation>Εμφάνιση μόνο εικονιδίου στην περιοχή ειδοποιήσεων κατά την ελαχιστοποίηση</translation> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation>&amp;Ελαχιστοποίηση στην περιοχή ειδοποιήσεων αντί της γραμμής εργασιών</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>Ελαχιστοποίηση αντί για έξοδο κατά το κλείσιμο του παραθύρου</translation> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation>Ε&amp;λαχιστοποίηση κατά το κλείσιμο</translation> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation>&amp;Απεικόνιση</translation> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation>Γλώσσα περιβάλλοντος εργασίας: </translation> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting BigBang.</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation>&amp;Μονάδα μέτρησης:</translation> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation>Διαλέξτε την προεπιλεγμένη υποδιαίρεση που θα εμφανίζεται όταν στέλνετε νομίσματα.</translation> </message> <message> <location line="+9"/> <source>Whether to show BigBang addresses in the transaction list or not.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation>Εμφάνιση διευθύνσεων στη λίστα συναλλαγών</translation> </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 &amp;control features (experts only!)</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation>&amp;ΟΚ</translation> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation>&amp;Ακύρωση</translation> </message> <message> <location line="+10"/> <source>&amp;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 BigBang.</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation>Δεν είναι έγκυρη η διεύθυνση διαμεσολαβητή</translation> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation>Φόρμα</translation> </message> <message> <location line="+33"/> <location line="+231"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the BigBang 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>Το τρέχον διαθέσιμο υπόλοιπο</translation> </message> <message> <location line="+71"/> <source>Immature:</source> <translation>Ανώριμος</translation> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation>Εξορυγμενο υπόλοιπο που δεν έχει ακόμα ωριμάσει </translation> </message> <message> <location line="+20"/> <source>Total:</source> <translation>Σύνολο:</translation> </message> <message> <location line="+16"/> <source>Your current total balance</source> <translation>Το τρέχον συνολικό υπόλοιπο</translation> </message> <message> <location line="+46"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;Πρόσφατες συναλλαγές&lt;/b&gt;</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>εκτός συγχρονισμού</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>&amp;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>Όνομα Πελάτη</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>Μη διαθέσιμο</translation> </message> <message> <location line="-217"/> <source>Client version</source> <translation>Έκδοση Πελάτη</translation> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation>&amp;Πληροφορία</translation> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation>Χρησιμοποιηση της OpenSSL εκδοσης</translation> </message> <message> <location line="+49"/> <source>Startup time</source> <translation>Χρόνος εκκίνησης</translation> </message> <message> <location line="+29"/> <source>Network</source> <translation>Δίκτυο</translation> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation>Αριθμός συνδέσεων</translation> </message> <message> <location line="+23"/> <source>On testnet</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Block chain</source> <translation>Αλυσίδα μπλοκ</translation> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation>Τρέχον αριθμός μπλοκ</translation> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation>Κατ&apos; εκτίμηση συνολικά μπλοκς</translation> </message> <message> <location line="+23"/> <source>Last block time</source> <translation>Χρόνος τελευταίου μπλοκ</translation> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation>&amp;Άνοιγμα</translation> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Show the BigBang-Qt help message to get a list with possible BigBang command-line options.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation>&amp;Κονσόλα</translation> </message> <message> <location line="-260"/> <source>Build date</source> <translation>Ημερομηνία κατασκευής</translation> </message> <message> <location line="-104"/> <source>BigBang - Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>BigBang Core</source> <translation type="unfinished"/> </message> <message> <location line="+279"/> <source>Debug log file</source> <translation>Αρχείο καταγραφής εντοπισμού σφαλμάτων </translation> </message> <message> <location line="+7"/> <source>Open the BigBang 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 BigBang RPC console.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation>Χρησιμοποιήστε το πάνω και κάτω βέλος για να περιηγηθείτε στο ιστορικο, και &lt;b&gt;Ctrl-L&lt;/b&gt; για εκκαθαριση οθονης.</translation> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation>Γράψτε &lt;b&gt;help&lt;/b&gt; για μια επισκόπηση των διαθέσιμων εντολών</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>Αποστολή νομισμάτων</translation> </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>Ποσό:</translation> </message> <message> <location line="+22"/> <location line="+86"/> <location line="+86"/> <location line="+32"/> <source>0.00 BBC</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>Αποστολή σε πολλούς αποδέκτες ταυτόχρονα</translation> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation>&amp;Προσθήκη αποδέκτη</translation> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation>Καθαρισμός &amp;Όλων</translation> </message> <message> <location line="+28"/> <source>Balance:</source> <translation>Υπόλοιπο:</translation> </message> <message> <location line="+16"/> <source>123.456 BBC</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Confirm the send action</source> <translation>Επιβεβαίωση αποστολής</translation> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation>Αποστολη</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-173"/> <source>Enter a BigBang address (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</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>Αντιγραφή ποσού</translation> </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>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation>Επιβεβαίωση αποστολής νομισμάτων</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>Η διεύθυνση του αποδέκτη δεν είναι σωστή. Παρακαλώ ελέγξτε ξανά.</translation> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation>Το ποσό πληρωμής πρέπει να είναι μεγαλύτερο από 0.</translation> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation>Το ποσό ξεπερνάει το διαθέσιμο υπόλοιπο</translation> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation>Το σύνολο υπερβαίνει το υπόλοιπό σας όταν συμπεριληφθεί και η αμοιβή %1</translation> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation>Βρέθηκε η ίδια διεύθυνση δύο φορές. Επιτρέπεται μία μόνο εγγραφή για κάθε διεύθυνση, σε κάθε διαδικασία αποστολής.</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 BigBang 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&amp;mount:</source> <translation>&amp;Ποσό:</translation> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation>Πληρωμή &amp;σε:</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>Εισάγετε μια επιγραφή για αυτή τη διεύθυνση ώστε να καταχωρηθεί στο βιβλίο διευθύνσεων</translation> </message> <message> <location line="+9"/> <source>&amp;Label:</source> <translation>&amp;Επιγραφή</translation> </message> <message> <location line="+18"/> <source>The address to send the payment to (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</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>Επικόλληση διεύθυνσης από το πρόχειρο</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 BigBang address (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</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>Υπογραφές - Είσοδος / Επαλήθευση μήνυματος </translation> </message> <message> <location line="+13"/> <location line="+124"/> <source>&amp;Sign Message</source> <translation>&amp;Υπογραφή Μηνύματος</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>Μπορείτε να υπογράφετε μηνύματα με τις διευθύνσεις σας, ώστε ν&apos; αποδεικνύετε πως αυτές σας ανήκουν. Αποφεύγετε να υπογράφετε κάτι αόριστο καθώς ενδέχεται να εξαπατηθείτε. Υπογράφετε μόνο πλήρης δηλώσεις με τις οποίες συμφωνείτε.</translation> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</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>Επικόλληση διεύθυνσης από το βιβλίο διευθύνσεων</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>Εισάγετε εδώ το μήνυμα που θέλετε να υπογράψετε</translation> </message> <message> <location line="+24"/> <source>Copy the current signature to the system clipboard</source> <translation>Αντέγραφη της επιλεγμενης διεύθυνσης στο πρόχειρο του συστηματος</translation> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this BigBang address</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Reset all sign message fields</source> <translation>Επαναφορά όλων των πεδίων μήνυματος</translation> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation>Καθαρισμός &amp;Όλων</translation> </message> <message> <location line="-87"/> <location line="+70"/> <source>&amp;Verify Message</source> <translation>&amp;Επιβεβαίωση μηνύματος</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>Πληκτρολογήστε την υπογραφή διεύθυνσης, μήνυμα (βεβαιωθείτε ότι έχετε αντιγράψει τις αλλαγές γραμμής, κενά, tabs, κ.λπ. ακριβώς) και την υπογραφή παρακάτω, για να ελέγξει το μήνυμα. Να είστε προσεκτικοί για να μην διαβάσετε περισσότερα στην υπογραφή ό, τι είναι στην υπογραφή ίδιο το μήνυμα , για να μην εξαπατηθούν από έναν άνθρωπο -in - the-middle επίθεση.</translation> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified BigBang address</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Reset all verify message fields</source> <translation>Επαναφορά όλων επαλήθευμενων πεδίων μήνυματος </translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a BigBang address (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation>Κάντε κλικ στο &quot;Υπογραφή Μηνύματος&quot; για να λάβετε την υπογραφή</translation> </message> <message> <location line="+3"/> <source>Enter BigBang signature</source> <translation type="unfinished"/> </message> <message> <location line="+82"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation>Η διεύθυνση που εισήχθη είναι λάθος.</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>Παρακαλούμε ελέγξτε την διεύθυνση και δοκιμάστε ξανά.</translation> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation>Η διεύθυνση που έχει εισαχθεί δεν αναφέρεται σε ένα πλήκτρο.</translation> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation>το ξεκλείδωμα του πορτοφολιού απέτυχε</translation> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation>Το προσωπικό κλειδί εισαγμενης διευθυνσης δεν είναι διαθέσιμο.</translation> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation>Η υπογραφή του μηνύματος απέτυχε.</translation> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation>Μήνυμα υπεγράφη.</translation> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation>Η υπογραφή δεν μπόρεσε να αποκρυπτογραφηθεί.</translation> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation>Παρακαλούμε ελέγξτε την υπογραφή και δοκιμάστε ξανά.</translation> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation>Η υπογραφή δεν ταιριάζει με το μήνυμα. </translation> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation>Η επιβεβαίωση του μηνύματος απέτυχε</translation> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation>Μήνυμα επιβεβαιώθηκε.</translation> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+19"/> <source>Open until %1</source> <translation>Ανοιχτό μέχρι %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/χωρίς σύνδεση;</translation> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation>%1/χωρίς επιβεβαίωση</translation> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation>%1 επιβεβαιώσεις</translation> </message> <message> <location line="+18"/> <source>Status</source> <translation>Κατάσταση</translation> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation><numerusform>, έχει μεταδοθεί μέσω %n κόμβων</numerusform><numerusform>, έχει μεταδοθεί μέσω %n κόμβων</numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>Ημερομηνία</translation> </message> <message> <location line="+7"/> <source>Source</source> <translation>Πηγή</translation> </message> <message> <location line="+0"/> <source>Generated</source> <translation>Δημιουργία </translation> </message> <message> <location line="+5"/> <location line="+17"/> <source>From</source> <translation>Από</translation> </message> <message> <location line="+1"/> <location line="+22"/> <location line="+58"/> <source>To</source> <translation>Προς</translation> </message> <message> <location line="-77"/> <location line="+2"/> <source>own address</source> <translation> δική σας διεύθυνση </translation> </message> <message> <location line="-2"/> <source>label</source> <translation>eπιγραφή</translation> </message> <message> <location line="+37"/> <location line="+12"/> <location line="+45"/> <location line="+17"/> <location line="+30"/> <source>Credit</source> <translation>Πίστωση </translation> </message> <message numerus="yes"> <location line="-102"/> <source>matures in %n more block(s)</source> <translation><numerusform>ωρίμανση σε %n επιπλέον μπλοκ</numerusform><numerusform>ωρίμανση σε %n επιπλέον μπλοκ</numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation>μη αποδεκτό</translation> </message> <message> <location line="+44"/> <location line="+8"/> <location line="+15"/> <location line="+30"/> <source>Debit</source> <translation>Debit</translation> </message> <message> <location line="-39"/> <source>Transaction fee</source> <translation>Τέλος συναλλαγής </translation> </message> <message> <location line="+16"/> <source>Net amount</source> <translation>Καθαρό ποσό</translation> </message> <message> <location line="+6"/> <source>Message</source> <translation>Μήνυμα</translation> </message> <message> <location line="+2"/> <source>Comment</source> <translation>Σχόλιο:</translation> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation>ID Συναλλαγής:</translation> </message> <message> <location line="+3"/> <source>Generated coins must mature 110 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 &quot;not accepted&quot; and it won&apos;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>Πληροφορίες αποσφαλμάτωσης</translation> </message> <message> <location line="+8"/> <source>Transaction</source> <translation>Συναλλαγή</translation> </message> <message> <location line="+5"/> <source>Inputs</source> <translation>εισροές </translation> </message> <message> <location line="+23"/> <source>Amount</source> <translation>Ποσό</translation> </message> <message> <location line="+1"/> <source>true</source> <translation>αληθής</translation> </message> <message> <location line="+0"/> <source>false</source> <translation>αναληθής </translation> </message> <message> <location line="-211"/> <source>, has not been successfully broadcast yet</source> <translation>, δεν έχει ακόμα μεταδοθεί μ&apos; επιτυχία</translation> </message> <message> <location line="+35"/> <source>unknown</source> <translation>άγνωστο</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation>Λεπτομέρειες συναλλαγής</translation> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation>Αυτό το παράθυρο δείχνει μια λεπτομερή περιγραφή της συναλλαγής</translation> </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>Τύπος</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Διεύθυνση</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation>Ποσό</translation> </message> <message> <location line="+60"/> <source>Open until %1</source> <translation>Ανοιχτό μέχρι %1</translation> </message> <message> <location line="+12"/> <source>Confirmed (%1 confirmations)</source> <translation>Επικυρωμένη (%1 επικυρώσεις)</translation> </message> <message numerus="yes"> <location line="-15"/> <source>Open for %n more block(s)</source> <translation><numerusform>Ανοιχτό για %n μπλοκ</numerusform><numerusform>Ανοιχτό για %n μπλοκ</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>Αυτό το μπλοκ δεν έχει παραληφθεί από κανέναν άλλο κόμβο και κατά πάσα πιθανότητα θα απορριφθεί!</translation> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation>Δημιουργήθηκε αλλά απορρίφθηκε</translation> </message> <message> <location line="+42"/> <source>Received with</source> <translation>Παραλαβή με</translation> </message> <message> <location line="+2"/> <source>Received from</source> <translation>Ελήφθη από</translation> </message> <message> <location line="+3"/> <source>Sent to</source> <translation>Αποστολή προς</translation> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation>Πληρωμή προς εσάς</translation> </message> <message> <location line="+2"/> <source>Mined</source> <translation>Εξόρυξη</translation> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation>(δ/α)</translation> </message> <message> <location line="+190"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>Κατάσταση συναλλαγής. Πηγαίνετε το ποντίκι πάνω από αυτό το πεδίο για να δείτε τον αριθμό των επικυρώσεων</translation> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation>Ημερομηνία κι ώρα λήψης της συναλλαγής.</translation> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation>Είδος συναλλαγής.</translation> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation>Διεύθυνση αποστολής της συναλλαγής.</translation> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation>Ποσό που αφαιρέθηκε ή προστέθηκε στο υπόλοιπο.</translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+55"/> <location line="+16"/> <source>All</source> <translation>Όλα</translation> </message> <message> <location line="-15"/> <source>Today</source> <translation>Σήμερα</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation>Αυτή την εβδομάδα</translation> </message> <message> <location line="+1"/> <source>This month</source> <translation>Αυτόν τον μήνα</translation> </message> <message> <location line="+1"/> <source>Last month</source> <translation>Τον προηγούμενο μήνα</translation> </message> <message> <location line="+1"/> <source>This year</source> <translation>Αυτό το έτος</translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation>Έκταση...</translation> </message> <message> <location line="+11"/> <source>Received with</source> <translation>Ελήφθη με</translation> </message> <message> <location line="+2"/> <source>Sent to</source> <translation>Απεστάλη προς</translation> </message> <message> <location line="+2"/> <source>To yourself</source> <translation>Προς εσάς</translation> </message> <message> <location line="+1"/> <source>Mined</source> <translation>Εξόρυξη</translation> </message> <message> <location line="+1"/> <source>Other</source> <translation>Άλλο</translation> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation>Αναζήτηση με βάση τη διεύθυνση ή την επιγραφή</translation> </message> <message> <location line="+7"/> <source>Min amount</source> <translation>Ελάχιστο ποσό</translation> </message> <message> <location line="+34"/> <source>Copy address</source> <translation>Αντιγραφή διεύθυνσης</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>Αντιγραφή επιγραφής</translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>Αντιγραφή ποσού</translation> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation>Αντιγραφη του ID Συναλλαγής</translation> </message> <message> <location line="+1"/> <source>Edit label</source> <translation>Επεξεργασία επιγραφής</translation> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation>Εμφάνιση λεπτομερειών συναλλαγής</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>Αρχείο οριοθετημένο με κόμματα (*.csv)</translation> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation>Επικυρωμένες</translation> </message> <message> <location line="+1"/> <source>Date</source> <translation>Ημερομηνία</translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>Τύπος</translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>Επιγραφή</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation>Διεύθυνση</translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation>Ποσό</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>Έκταση:</translation> </message> <message> <location line="+8"/> <source>to</source> <translation>έως</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>BigBang version</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Usage:</source> <translation>Χρήση:</translation> </message> <message> <location line="+1"/> <source>Send command to -server or BigBangd</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>List commands</source> <translation>Λίστα εντολών</translation> </message> <message> <location line="+1"/> <source>Get help for a command</source> <translation>Επεξήγηση εντολής</translation> </message> <message> <location line="+2"/> <source>Options:</source> <translation>Επιλογές:</translation> </message> <message> <location line="+2"/> <source>Specify configuration file (default: BigBang.conf)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Specify pid file (default: BigBangd.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>Ορισμός φακέλου δεδομένων</translation> </message> <message> <location line="+2"/> <source>Set database cache size in megabytes (default: 25)</source> <translation>Όρισε το μέγεθος της βάσης προσωρινής αποθήκευσης σε megabytes(προεπιλογή: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 &lt;port&gt; (default: 15714 or testnet: 25714)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation>Μέγιστες αριθμός συνδέσεων με τους peers &lt;n&gt; (προεπιλογή: 125)</translation> </message> <message> <location line="+3"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation>Σύνδεση σε έναν κόμβο για την ανάκτηση διευθύνσεων από ομοτίμους, και αποσυνδέσh</translation> </message> <message> <location line="+1"/> <source>Specify your own public address</source> <translation>Διευκρινίστε τη δικιά σας δημόσια διεύθυνση.</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>Όριο αποσύνδεσης προβληματικών peers (προεπιλογή: 100)</translation> </message> <message> <location line="+1"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation>Δευτερόλεπτα πριν επιτραπεί ξανά η σύνδεση των προβληματικών peers (προεπιλογή: 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>Ένα σφάλμα συνέβη καθώς προετοιμαζόταν η πόρτα RPC %u για αναμονή 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 &lt;port&gt; (default: 15715 or testnet: 25715)</source> <translation type="unfinished"/> </message> <message> <location line="-11"/> <source>Accept command line and JSON-RPC commands</source> <translation>Αποδοχή εντολών κονσόλας και JSON-RPC</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>Εκτέλεση στο παρασκήνιο κι αποδοχή εντολών</translation> </message> <message> <location line="+1"/> <source>Use the test network</source> <translation>Χρήση του δοκιμαστικού δικτύου</translation> </message> <message> <location line="-24"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation>Να δέχεσαι συνδέσεις από έξω(προεπιλογή:1)</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>Ένα σφάλμα συνέβη καθώς προετοιμαζόταν η υποδοχη RPC %u για αναμονη του IPv6, επεσε πισω στο 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>Προειδοποίηση: Η παράμετρος -paytxfee είναι πολύ υψηλή. Πρόκειται για την αμοιβή που θα πληρώνετε για κάθε συναλλαγή που θα στέλνετε.</translation> </message> <message> <location line="+61"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong BigBang 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>Προειδοποίηση : Σφάλμα wallet.dat κατα την ανάγνωση ! Όλα τα κλειδιά αναγνωρισθηκαν σωστά, αλλά τα δεδομένα των συναλλαγών ή καταχωρήσεις στο βιβλίο διευθύνσεων μπορεί να είναι ελλιπείς ή λανθασμένα. </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>Προειδοποίηση : το αρχειο wallet.dat ειναι διεφθαρμένο, τα δεδομένα σώζονται ! Original wallet.dat αποθηκεύονται ως wallet.{timestamp}.bak στο %s . Αν το υπόλοιπο του ή τις συναλλαγές σας, είναι λάθος θα πρέπει να επαναφέρετε από ένα αντίγραφο ασφαλείας</translation> </message> <message> <location line="-30"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation>Προσπάθεια για ανακτησει ιδιωτικων κλειδιων από ενα διεφθαρμένο αρχειο wallet.dat </translation> </message> <message> <location line="+4"/> <source>Block creation options:</source> <translation>Αποκλεισμός επιλογων δημιουργίας: </translation> </message> <message> <location line="-62"/> <source>Connect only to the specified node(s)</source> <translation>Σύνδεση μόνο με ορισμένους κόμβους</translation> </message> <message> <location line="+4"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation>Ανακαλύψτε την δικη σας IP διεύθυνση (προεπιλογή: 1 όταν ακούει και δεν - externalip) </translation> </message> <message> <location line="+94"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation>ταλαιπωρηθειτε για να ακούσετε σε οποιαδήποτε θύρα. Χρήση - ακούστε = 0 , αν θέλετε αυτό.</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: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Invalid amount for -reservebalance=&lt;amount&gt;</source> <translation type="unfinished"/> </message> <message> <location line="-82"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation>Μέγιστος buffer λήψης ανά σύνδεση, &lt;n&gt;*1000 bytes (προεπιλογή: 5000)</translation> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation>Μέγιστος buffer αποστολής ανά σύνδεση, &lt;n&gt;*1000 bytes (προεπιλογή: 1000)</translation> </message> <message> <location line="-16"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation> Συνδέση μόνο σε κόμβους του δικτύου &lt;net&gt; (IPv4, IPv6 ή 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: (ανατρέξτε στο Bitcoin Wiki για οδηγίες ρυθμίσεων 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>Αποστολή πληροφοριών εντοπισμού σφαλμάτων στην κονσόλα αντί του αρχείου 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>Ορίστε το μέγιστο μέγεθος μπλοκ σε bytes (προεπιλογή: 0)</translation> </message> <message> <location line="-29"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation>Συρρίκνωση του αρχείο debug.log κατα την εκκίνηση του πελάτη (προεπιλογή: 1 όταν δεν-debug)</translation> </message> <message> <location line="-42"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation>Ορισμός λήξης χρονικού ορίου σε χιλιοστά του δευτερολέπτου(προεπιλογή: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>Χρησιμοποίηση του UPnP για την χρήση της πόρτας αναμονής (προεπιλογή:0)</translation> </message> <message> <location line="-1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation>Χρησιμοποίηση του UPnP για την χρήση της πόρτας αναμονής (προεπιλογή:1)</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>Όνομα χρήστη για τις συνδέσεις 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>Προειδοποίηση: Αυτή η έκδοση είναι ξεπερασμένη, απαιτείται αναβάθμιση </translation> </message> <message> <location line="-48"/> <source>wallet.dat corrupt, salvage failed</source> <translation>Το αρχειο wallet.dat ειναι διεφθαρμένο, η διάσωση απέτυχε</translation> </message> <message> <location line="-54"/> <source>Password for JSON-RPC connections</source> <translation>Κωδικός για τις συνδέσεις 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=BigBangrpc 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 &quot;BigBang Alert&quot; admin@foo.com </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>Αποδοχή συνδέσεων JSON-RPC από συγκεκριμένη διεύθυνση IP</translation> </message> <message> <location line="+1"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation>Αποστολή εντολών στον κόμβο &lt;ip&gt; (προεπιλογή: 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>Εκτέλεσε την εντολή όταν το καλύτερο μπλοκ αλλάξει(%s στην εντολή αντικαθίσταται από το hash του μπλοκ)</translation> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation>Εκτέλεσε την εντολή όταν το καλύτερο μπλοκ αλλάξει(%s στην εντολή αντικαθίσταται από το hash του μπλοκ)</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>Αναβάθμισε το πορτοφόλι στην τελευταία έκδοση</translation> </message> <message> <location line="+1"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation>Όριο πλήθους κλειδιών pool &lt;n&gt; (προεπιλογή: 100)</translation> </message> <message> <location line="+1"/> <source>Rescan the block chain for missing wallet transactions</source> <translation>Επανέλεγχος της αλυσίδας μπλοκ για απούσες συναλλαγές</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>Χρήση του OpenSSL (https) για συνδέσεις JSON-RPC</translation> </message> <message> <location line="+1"/> <source>Server certificate file (default: server.cert)</source> <translation>Αρχείο πιστοποιητικού του διακομιστή (προεπιλογή: server.cert)</translation> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation>Προσωπικό κλειδί του διακομιστή (προεπιλογή: 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>Αυτό το κείμενο βοήθειας</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. BigBang is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="-98"/> <source>BigBang</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>Αδύνατη η σύνδεση με τη θύρα %s αυτού του υπολογιστή (bind returned error %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>Να επιτρέπονται οι έλεγχοι DNS για προσθήκη και σύνδεση κόμβων</translation> </message> <message> <location line="+122"/> <source>Loading addresses...</source> <translation>Φόρτωση διευθύνσεων...</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>Σφάλμα φόρτωσης wallet.dat: Κατεστραμμένο Πορτοφόλι</translation> </message> <message> <location line="+4"/> <source>Error loading wallet.dat: Wallet requires newer version of BigBang</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Wallet needed to be rewritten: restart BigBang to complete</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error loading wallet.dat</source> <translation>Σφάλμα φόρτωσης αρχείου wallet.dat</translation> </message> <message> <location line="-16"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation>Δεν είναι έγκυρη η διεύθυνση διαμεσολαβητή: &apos;%s&apos;</translation> </message> <message> <location line="-1"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation>Άγνωστo δίκτυο ορίζεται σε onlynet: &apos;%s&apos;</translation> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation>Άγνωστo δίκτυο ορίζεται: %i</translation> </message> <message> <location line="+4"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation>Δεν μπορώ να γράψω την προεπιλεγμένη διεύθυνση: &apos;%s&apos;</translation> </message> <message> <location line="+2"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation>Δεν μπορώ να γράψω την προεπιλεγμένη διεύθυνση: &apos;%s&apos;</translation> </message> <message> <location line="-24"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>Μη έγκυρο ποσό για την παράμετρο -paytxfee=&lt;amount&gt;: &apos;%s&apos;</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>Λάθος ποσότητα</translation> </message> <message> <location line="+1"/> <source>Insufficient funds</source> <translation>Ανεπαρκές κεφάλαιο</translation> </message> <message> <location line="-34"/> <source>Loading block index...</source> <translation>Φόρτωση ευρετηρίου μπλοκ...</translation> </message> <message> <location line="-103"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation>Προσέθεσε ένα κόμβο για σύνδεση και προσπάθησε να κρατήσεις την σύνδεση ανοιχτή</translation> </message> <message> <location line="+122"/> <source>Unable to bind to %s on this computer. BigBang 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=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Loading wallet...</source> <translation>Φόρτωση πορτοφολιού...</translation> </message> <message> <location line="+8"/> <source>Cannot downgrade wallet</source> <translation>Δεν μπορώ να υποβαθμίσω το πορτοφόλι</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>Δεν μπορώ να γράψω την προεπιλεγμένη διεύθυνση</translation> </message> <message> <location line="+1"/> <source>Rescanning...</source> <translation>Ανίχνευση...</translation> </message> <message> <location line="+5"/> <source>Done loading</source> <translation>Η φόρτωση ολοκληρώθηκε</translation> </message> <message> <location line="-167"/> <source>To use the %s option</source> <translation>Χρήση της %s επιλογής</translation> </message> <message> <location line="+14"/> <source>Error</source> <translation>Σφάλμα</translation> </message> <message> <location line="+6"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation>Πρέπει να βάλεις ένα κωδικό στο αρχείο παραμέτρων: %s Εάν το αρχείο δεν υπάρχει, δημιούργησε το με δικαιώματα μόνο για ανάγνωση από τον δημιουργό</translation> </message> </context> </TS>
Java
<?php function event_stat_alexa_calculated($ranks){ } function event_stat_similarweb_calculated($ranks){ }
Java
#include <stdio.h> int main() { int current_char, previous_char; printf("Input text below, multiple spaces will be escaped:\n"); previous_char = -1; while((current_char = getchar()) != EOF) { if (!(current_char == ' ' && previous_char == ' ')) { putchar(current_char); } previous_char = current_char; } }
Java
<!DOCTYPE html> <html dir="rtl" lan="en"> <head> <meta charset="utf-8"> <title>2018-AR-07-arrows</title> <script> window.stringsLanguage = 'ar'; </script> <script class="remove" type="text/javascript" src="../../../_common/modules/pemFioi/importModules-1.1_M.js" id="import-modules"></script> <script class="remove" type="text/javascript"> var modulesPath = '../../../_common/modules'; importModules([ 'jquery-1.7.1', 'jquery-ui.touch-punch', 'raphael-2.2.1', 'JSON-js', 'beav-1.0', 'beaver-task-2.0', 'simulation-2.0', 'raphaelFactory-1.0', 'delayFactory-1.0', 'simulationFactory-1.0', 'raphaelButton-1.0', 'platform-pr', 'buttonsAndMessages', 'installationAPI.01', 'miniPlatform', 'taskStyles-0.1','graph-1.0', 'visual-graph-1.0', 'grid-1.0']); </script> <script class="remove" type="text/javascript"> var json = { "id": "", "language": "ar", "version": "en.01", "authors": "France-ioi", "translators": ["Mohamed El-Sherif", "Eslam Wageed"], "license": "CC BY-SA 3.0", "taskPathPrefix": "", "modulesPathPrefix": "", "browserSupport": [], "fullFeedback": true, "acceptedAnswers": [], "usesRandomSeed": false }; </script> <script type="text/javascript"> var taskStrings = { success: "تهانينا، لقد نججت!", errorWhiteArrow: "في الخلية الحمراء سهم لا يزال بحاجة إلى تلوينه.", errorWrongArrow: function(arrowColor, nbPointedArrows, nbRequiredArrows) { debugger; var ret="في الخليه الحمراء يوجد سهم "+arrowColor+" من المفترض أن يشير إلى "+nbRequiredArrows; if(nbRequiredArrows > 1) { ret +=" أسهم "; if(nbRequiredArrows=="أصفر") ret+="صفراء."; else ret+=".زرقاء"; } else { ret+=" سهم "; ret+=arrowColor+"."; } ret+="<br>"; ret+="ولكنه حاليا يشير إلى "+nbPointedArrows; if(nbPointedArrows > 1) { ret +=" أسهم "; if(arrowColor=="أصفر") ret+="صفراء"; else ret+="زرقاء"; } else { ret+=" سهم "; ret+=arrowColor; } return ret; }, blue: "أزرق", yellow: "أصفر", fixedArrow: "لا يمكن تغيير السهم الذي بالمنتصف", blueSymbol: "B", yellowSymbol: "J", undo: "تراجع" }; var enableRtl = true; </script> <script type="text/javascript" src="task.js"></script> <style> ul { list-style-type: none; } #displayHelper_graderMessage { margin-top: 1em; margin-bottom: 1em; text-align: center; font-weight: bold; color: red; } li { margin-bottom: 5px; } li * { display: inline-block; } .instruction_arrow { position:relative; top:15px; } ul { position:relative; top:-15px; } #instructions { margin-left: 1em; } #instructions td { vertical-align: top; padding-bottom: 1em; padding-right: 0.5em; } .very_hard { display: none; } .largeScreen #example1 { display:none; } #example2 { display:none; } .largeScreen #example2 { display:block; } .largeScreen #zone_1, .largeScreen #zone_2 { float: right; } </style> </head> <body> <div id="task"> <h1>الأسهم الموجهه</h1> <div id="tabsContainer"></div> <!-- will contain the versions tabs --> <div id="taskContent"> <!-- will contain the content of the task --> <div id="zone_1"> <div class="consigne"> <div id="example1" style="float:right"><div class="easy medium" style="text-align:center;margin-top:5px;"><b>مثال</b><br/><img src="example_ar_eg.png" style="height:200px;margin-left:20px;margin-top:5px"></div></div> <p>لون جمیع الأسهم في الشبكة باللون الأصفر أو الأزرق وفقا <span class="easy medium very_hard"> للقاعدة التالیة</span><span class="hard">للقواعد التالیة</span>:</p> <p class="easy medium very_hard"><span style="font-weight:bold">يجب أن یشیر السهم إلى <span class="easy medium">سهم واحد فقط </span><span class="very_hard">سهمين</span> من نفس اللون.</span></p> <table id="instructions" class="hard"> <tr> <td><span id="instructions_blue" class="instruction_arrow"></span></td> <td><br><br> يجب أن يشير السهم الأزرق إلى سهمين أزرقان فقط. </td> </tr> <tr> <td><span id="instructions_yellow" class="instruction_arrow"></span></td> <td><br><br> يجب أن يشير السهم الأصفر إلى سهم أصفر واحد فقط. </td> </tr> </table> <p>انقر على السهم لتغییر لونه.</p> <div id="example2"><div class="easy medium" style="text-align:center;margin-top:5px;"><b>مثال</b><br/><img src="example_ar_eg.png" style="height:200px;margin-left:20px;margin-top:5px"></div></div> <div style="clear:both"></div> </div> </div> <div id="zone_2"> <center style="clear:both"><table> <tr> <td><div id="grid"></div></td> </tr> </table></center> </div> </div> <img src="icon.png" style="display:none"> </div> <div id="solution"> <h2>الحل</h2> <!-- description of the solution --> <div class="easy"> <table style="width: 700px"> <tr> <td><img src="sol_easy_1.png"></td> <td>یشیر السهم المعطى في البدایة إلى أنه من الضروري وضع سهم أزرق على یمینه.</td> </tr> <tr> <td><img src="sol_easy_2.png"></td> <td>یشیر السهم الذي تمت إضافته للتو إلى أنك بحاجة إلى وضع سهم أزرق أسفله.</td> </tr> <tr> <td><img src="sol_easy_3.png"></td> <td>في العمود الأیمن، یشیر السهم الأزرق الذي تم إضافته للتو في الزاویة السفلیة إلى السهم الأزرق الموجود أعلاه. وبالتالي هناك بالفعل سهم أزرق في اتجاهه. لتجنب وجود سهم ثاني في نفس الاتجاه یجب وضع سهم أصفر في الجزء العلوي من هذا العمود.</td> </tr> <tr> <td><img src="sol_easy_4.png"></td> <td>یشیر السهم الموجود في منتصف الصف العلوي إلى سهم أصفر، وبالتالي یجب أن یكون هذا السهم أصفر.</td> </tr> <tr> <td><img src="sol_easy_5.png"></td> <td>في الصف العلوي ، یشیر السهم الأصفر الأیمن إلى سهم أصفر آخر، وهو السهم الأوسط، ولتجنب الإشارة إلى سهمین أصفرین ، یجب وضع سهم أزرق في یسار هذا الصف.</td> </tr> <tr> <td><img src="sol_easy_6.png"></td> <td>یشیر السهم الموجود في منتصف العمود الأیسر إلى سهم أزرق. وبالتالي یجب أن یكون هذا السهم أزرق.</td> </tr> <td><img src="sol_easy_7.png"></td> <td>في العمود الأیسر، یشیر السهم الأزرق في الأعلى إلى سهم أزرق آخر، وهو السهم الموجود في الوسط، و لتجنب الإشارة الى سهمین أزرقین ، یجب وضع سهم أصفر في أسفل هذا العمود.</td> </tr> <td><img src="sol_easy_8.png"></td> <td>یجب أن یشیر السهم الأصفر في أسفل الیسار إلى سهم أصفر آخر، ولذلك یجب وضع سهم أصفر في المربع المتبقي من الصف السفلي.</td> </tr> </tr> <td><img src="sol_easy_9.png"></td> <td>اكتمل الحل !</td> </tr> </table> </div> <div class="medium"> <p>قبل أن نبدأ یمكن ملاحظة أن هذه المسألة متناظرة بین اللونین الأزرق والأصفر، بمعنى أنه لو كان لدینا حل صحیح ثم غیرنا جمیع الأسهم الصفراء بأسهم زرقاء والعكس فسنحصل على حل صحیح آخر، ولذلك فلنا الحریة في تحدید لون السهم الأول الذي نبدأ به. </p> <p>في ما یلي ، سنبدأ دائًما بوضع سهم أزرق. </p> <p>سوف نجرب بدایات مختلفة حتى نصل إلى طریقة نضمن فیها التقدم في تلوین الأسهم دون خطأ.</p> <p><b>في المحاولة الاولى.</b> ​لنفترض أننا سنحاول ملئ الصف الأول وسنجد أن هناك طریقتین مختلفتین لإتمام ذلك وفق القواعد: <table style="width: 700px"> <tr> <td><img src="sol_medium_b1.png"></td> <td>الطریقة الأولى.</td> </tr> </tr> <td><img src="sol_medium_b2.png"></td> <td>الطریقة الثانیة.</td> </tr> </table> <p>نظًرا لوجود احتمالین لا یمكننا التأكد من أیهما الصحیح فسوف نجرب بدایة أخرى.</p> <p><b>في المحاولة الثانیة.</B> سنحاول ملئ الصف الأخیر وسنجد أن هناك طریقتین مختلفتین لإتمام ذلك وفق القواعد : <table style="width: 700px"> <tr> <td><img src="sol_medium_c1.png"></td> <td>الطریقة الأولى.</td> </tr> </tr> <td><img src="sol_medium_c2.png"></td> <td>الطریقة الثانیة.</td> </tr> </table> <p>نظًرا لوجود احتمالین لا یمكننا التأكد من أیهما الصحیح فسوف نجرب بدایة أخرى.</p> <p><b>في المحاولة الثالثة.</b> سنحاول ملئ القطر، وسنجد فیه ثلاثة أسهم منها إثنان یشیران لبعض. <table style="width: 700px"> <tr> <td><img src="sol_medium_d1.png"></td> <td>لنبدأ ، كما أوضحنا سابقا ، بوضع سهم أزرق.</td> </tr> <tr> <td><img src="sol_medium_d2.png"></td> <td>لا یمكن وضع سهم أزرق في المربع الأوسط من القطر، لأن السهم الأخیر في القطر لا یمكن أن یشیر إلى سهمین أزرقین.</td> </tr> <tr> <td><img src="sol_medium_1.png"></td> <td>نستنتج أن السهم الأوسط في القطر یجب أن یكون أصفر (لأنه لا یمكن أن یكون أزرق) ، ولذلك یجب أن یكون السهم الثالث أزرق (لأن السهم الأزرق في الزاویة یجب أن یشیر إلى سهم أزرق آخر).</td> </tr> <tr> <td><img src="sol_medium_2.png"></td> <td>السهم الأصفر في الوسط یساعد في استنتاج موقع سهمین أصفرین إضافیین.</td> </tr> <tr> <td><img src="sol_medium_3.png"></td> <td>لا یمكن أن یكون لون السهم الأوسط في العمود الأیمن أصفًرا، لأنه یشیر إلى سهمین أصفرین وبذلك فلونه أزرق.</td> </tr> <tr> <td><img src="sol_medium_4.png"></td> <td>السهم الأزرق الذي تم اضافته مؤخرا یساعد على استنتاج موقع سهمین أزرقین إضافیین.</td> </tr> <tr> <td><img src="sol_medium_5.png"></td> <td>لا یمكن أن یكون لون السهم الثاني (من على اليسار) في الصف الأخیر أزرقا، لأن السهم الثاني (من على اليمين) في نفس الصف یشیر إلى سهم واحد أزرق، وبذلك فلونه أصفر.</td> </tr> <tr> <td><img src="sol_medium_6.png"></td> <td>السهم الأصفر الأخیر یساعد على استنتاج موقع سهمین أصفرین إضافیین.</td> </tr> <td><img src="sol_medium_7.png"></td> <td>یجب أن یكون السهم الأخیر باللون الأزرق لأن السهم الموجود في یمین الصف الأول یشیر إلى سهم واحد أصفر فقط. <br/><br/>اكتمل الحل !</td> </tr> </table> </div> <div class="hard"> <p>من الحكمة أن تبدأ بخط من المربعات (التي تحتوي على الأسهم) بحيث یملك الخط أقصى عدد من القیود، مثل الأسهم التي تشیر إلى بعضها، على سبیل المثال سندرس أحد الأقطار الرئیسیة، وسنبدأ بوضع سهم أزرق أو أصفر في الزاویة الیسرى في الأسفل.</p> <p><b>في المحاولة الأولى.</b> سنبدأ بتلوین السهم في الزاویة الیسري في الأسفل باللون الأصفر : <table style="width: 700px"> <tr> <td><img src="sol_hard_b1.png"></td> <td>اذا كان المربع التالي في القطر يحتوي على سهم اصفر، ففي المربع الذي يليهم في نفس القطر لن نجد سهم مناسب يشير إلى سهمين أصفرين لذلك، سيكون لون السهم أزرق في المربع التالي.<br/><br/> وبالتالي في المربع الذي يليهم ستكون إشارته إلى سهمين أزرق و أصفر ولأنه ليس لدينا سهم يشير الي سهم أزرق واحد سنلونه باللون الأصفر. </td> </tr> </tr> <td><img src="sol_hard_b2.png"></td> <td>السهم الأزرق یساعد على استنتاج موقع سهمین إضافیین جدیدین.</td> </tr> </tr> <td><img src="sol_hard_b3.png"></td> <td>السهم الأزرق الموجود في العمود الثاني من الیسار والذي یشیر إلى الزاویة الیمنى في الأسفل یساعد على استنتاج موقع سهمین إضافیین. </td> </tr> </tr> <td><img src="sol_hard_b4.png"></td> <td>في هذه الحاله السهم الأزرق المظلل بالأحمر لا يمكنه أن يشير إلى سهمين أزرقين (لأن أحدهما أصفر بالفعل).</td> </tr> </table> <p><b>في المحاولة الثانیة.</b> سنبدأ من الزاویة الیسرى في الأسفل مرة أخرى ولكن بوضع سهم أزرق بدلا من الأصفر.. <table style="width: 700px"> <tr> <td><img src="sol_hard_0.png"></td> <td>لنبدأ بزاويه زرقاء.</td> </tr> <tr> <td><img src="sol_hard_c2.png"></td> <td>اذا كان السهم الذي يلي السهمين الأزرق و الأبيض في نفس القطر أصفر فستواجهنا مشكلة، لأننا يجب ان نلون السهم الذي بينهما باللون الاصفر، وبذلك لن نستطيع ان نجعل السهم الأزرق في الزاويه يشير إلى سهمين أزرقين .</td> </tr> <tr> <td><img src="sol_hard_1.png"></td> <td>لذلك سنلونه باللون الأزرق ولأنه يجب أن يشير إلى سهمين أزرقين، سنلون السهم الذي في المنتصف باللون الأزرق.</td> </tr> <tr> <td><img src="sol_hard_2.png"></td> <td>يشير السهم الأزرق الجديد الي سهمين غير ملونين، سنلونهم باللون الأزرق.<br/><br/>اذا كان لون السهم الذي في الزاويه العليا على اليمين باللون الازرق فسيكون السهم في الزاويه الأخري مشير إلى ثلاث أسهم زرقاء، لذلك سنلونه باللون الأصفر.</td> </tr> <tr> <td><img src="sol_hard_3.png"></td> <td>السهم الأزرق في الصف الثاني (من أعلى لأسفل) والعمود الثالث (من اليمين لليسار) يشير إلى سهمين غير ملونين، سنلونهم باللون الأزرق. </td> </tr> <tr> <td><img src="sol_hard_4.png"></td> <td>السهم الأزرق في الصف الثالث (من أعلى لأسفل) والعمود الثاني (من اليمين لليسار) يشير إلى سهمين احدهم غير ملون، سنلونه باللون الأزرق. </td> </tr> <tr> <td><img src="sol_hard_5.png"></td> <td>السهم الأزرق في الصف الثالث (من أعلى لأسفل) والعمود الرابع (من اليمين لليسار) يشير إلى سهمين أزرقين وسهم غير ملون، اذا لوناه للأزرق فسيشير ألي ثلاث أسهم من اللون الأزرق، لذلك سنلونه باللون الأصفر. <br><br>نكرر هذه العملية مع بقية الأسهم الزرقاء التي ينطبق عليها نفس الحالة، السهم الأزرق في الصف الأول و العمود الثالت و السهم الأزرق في الزاويه السفلى على اليمين.</td> </tr> <tr> <td><img src="sol_hard_6.png"></td> <td>السهم الأصفر في الزاويه الأعلى علي اليسار لا يشير إلى سهم أصفر، لذلك سنلون السهم الغير ملون باللون الأصفر، نكرر نفس العملية مع السهم الأصفر في الصف السفلي.<br><br>السهم الغير ملون في الصف الثاني علي اليمين يشير إلى سهمين أزرقين، لذلك نلونه باللون الأزرق.</td> </tr> <td><img src="sol_hard_9.png"></td> <td>اكتمل الحل !</td> </tr> </table> <h2>انها المعلوماتية !</h2> <!-- explanations on why this task is about informatics --> <img src="icon.png" style="display:none"> </div> </body> </html>
Java
<ion-header> <ion-navbar> <ion-title>会议查询</ion-title> <!-- <ion-buttons end (click)="presentPopover($event)"> <button ion-button icon-only> <ion-icon name="search"></ion-icon> </button> </ion-buttons> --> </ion-navbar> <div> <tab-slide (slideClick)="onSlideClick($event)" [slides]="pageSlides" [pageNumber]="5"></tab-slide> </div> </ion-header> <ion-content> <ion-refresher (ionRefresh)="doRefresh($event)"> <ion-refresher-content pullingIcon="arrow-dropdown" pullingText="下拉刷新" refreshingSpinner="circles" refreshingText="正在刷新..."> </ion-refresher-content> </ion-refresher> <ion-list margin-top> <ion-item-sliding *ngFor="let meeting of list" (click)="doRead(meeting.Id)"> <ion-item> <!-- <h3>{{meeting.Title}}</h3> <span>{{meeting.Place}}</span> <p float-right>{{meeting.StartDate | date:"yyyy年MM月dd日 HH时mm分"}}</p> --> <h2> <span class="status-new-dot" *ngIf="meeting.Status=='1'">●&nbsp;</span> <span>{{meeting.Title}}</span> <small class="text-ios-gray" float-right>{{meeting.StartDate | getdatediff: true}}</small> </h2> <span>地点:{{meeting.Place}}</span> </ion-item> </ion-item-sliding> </ion-list> <empty *ngIf="isEmpty"></empty> <ion-infinite-scroll (ionInfinite)="$event.waitFor(doInfinite())" [enabled]="moredata" threshold="100px"> <ion-infinite-scroll-content loadingSpinner="bubbles" loadingText="加载中..."></ion-infinite-scroll-content> </ion-infinite-scroll> </ion-content>
Java
--- layout: tag_index tag: libraries ---
Java
// *********************************************************************** // <copyright file="AssemblyInfo.cs" company="Holotrek"> // Copyright © Holotrek 2016 // </copyright> // *********************************************************************** 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("Kore.Domain.EF.Tests")] [assembly: AssemblyDescription("Tests for the Holotrek's Entity Framework Core")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Holotrek")] [assembly: AssemblyProduct("Kore.Domain.EF.Tests")] [assembly: AssemblyCopyright("Copyright © Holotrek 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("ec0e5775-8da3-4994-9148-9c5eb80af625")] // 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.1.0.*")] [assembly: AssemblyFileVersion("1.1.0.0")]
Java
<td> {{item.name}} </td> <td> {{item.age}} </td> <td> {{item.sex}} </td>
Java
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class My_PHPMailer { public function My_PHPMailer() { require_once('class.phpmailer.php'); } } ?>
Java
<?php return array( 'service_manager' => array( 'factories' => array( 'Twilio\Options\ModuleOptions' => 'Twilio\Options\Factory\ModuleOptionsFactory', 'Twilio\Service\TwilioService' => 'Twilio\Service\Factory\TwilioServiceFactory' ) ) );
Java
<?php $lang['date_year'] = 'Ano'; $lang['date_years'] = 'Anos'; $lang['date_month'] = 'Mês'; $lang['date_months'] = 'Meses'; $lang['date_week'] = 'Semana'; $lang['date_weeks'] = 'Semanas'; $lang['date_day'] = 'Dia'; $lang['date_days'] = 'Dias'; $lang['date_hour'] = 'Hora'; $lang['date_hours'] = 'Horas'; $lang['date_minute'] = 'Minuto'; $lang['date_minutes'] = 'Minutos'; $lang['date_second'] = 'Segundo'; $lang['date_seconds'] = 'Segundos'; $lang['UM12'] = '(UTC -12:00) Baker/Howland Island'; $lang['UM11'] = '(UTC -11:00) Samoa Time Zone, Niue'; $lang['UM10'] = '(UTC -10:00) Hawaii-Aleutian Standard Time, Cook Islands, Tahiti'; $lang['UM95'] = '(UTC -9:30) Marquesas Islands'; $lang['UM9'] = '(UTC -9:00) Alaska Standard Time, Gambier Islands'; $lang['UM8'] = '(UTC -8:00) Pacific Standard Time, Clipperton Island'; $lang['UM7'] = '(UTC -7:00) Mountain Standard Time'; $lang['UM6'] = '(UTC -6:00) Central Standard Time'; $lang['UM5'] = '(UTC -5:00) Eastern Standard Time, Western Caribbean Standard Time'; $lang['UM45'] = '(UTC -4:30) Venezuelan Standard Time'; $lang['UM4'] = '(UTC -4:00) Atlantic Standard Time, Eastern Caribbean Standard Time'; $lang['UM35'] = '(UTC -3:30) Newfoundland Standard Time'; $lang['UM3'] = '(UTC -3:00) Argentina, Brazil, French Guiana, Uruguay'; $lang['UM2'] = '(UTC -2:00) South Georgia/South Sandwich Islands'; $lang['UM1'] = '(UTC -1:00) Azores, Cape Verde Islands'; $lang['UTC'] = '(UTC) Greenwich Mean Time, Western European Time'; $lang['UP1'] = '(UTC +1:00) Central European Time, West Africa Time'; $lang['UP2'] = '(UTC +2:00) Central Africa Time, Eastern European Time, Kaliningrad Time'; $lang['UP3'] = '(UTC +3:00) Moscow Time, East Africa Time'; $lang['UP35'] = '(UTC +3:30) Iran Standard Time'; $lang['UP4'] = '(UTC +4:00) Azerbaijan Standard Time, Samara Time'; $lang['UP45'] = '(UTC +4:30) Afghanistan'; $lang['UP5'] = '(UTC +5:00) Pakistan Standard Time, Yekaterinburg Time'; $lang['UP55'] = '(UTC +5:30) Indian Standard Time, Sri Lanka Time'; $lang['UP575'] = '(UTC +5:45) Nepal Time'; $lang['UP6'] = '(UTC +6:00) Bangladesh Standard Time, Bhutan Time, Omsk Time'; $lang['UP65'] = '(UTC +6:30) Cocos Islands, Myanmar'; $lang['UP7'] = '(UTC +7:00) Krasnoyarsk Time, Cambodia, Laos, Thailand, Vietnam'; $lang['UP8'] = '(UTC +8:00) Australian Western Standard Time, Beijing Time, Irkutsk Time'; $lang['UP875'] = '(UTC +8:45) Australian Central Western Standard Time'; $lang['UP9'] = '(UTC +9:00) Japan Standard Time, Korea Standard Time, Yakutsk Time'; $lang['UP95'] = '(UTC +9:30) Australian Central Standard Time'; $lang['UP10'] = '(UTC +10:00) Australian Eastern Standard Time, Vladivostok Time'; $lang['UP105'] = '(UTC +10:30) Lord Howe Island'; $lang['UP11'] = '(UTC +11:00) Magadan Time, Solomon Islands, Vanuatu'; $lang['UP115'] = '(UTC +11:30) Norfolk Island'; $lang['UP12'] = '(UTC +12:00) Fiji, Gilbert Islands, Kamchatka Time, New Zealand Standard Time'; $lang['UP1275'] = '(UTC +12:45) Chatham Islands Standard Time'; $lang['UP13'] = '(UTC +13:00) Phoenix Islands Time, Tonga'; $lang['UP14'] = '(UTC +14:00) Line Islands';
Java
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.3.1"/> <title>The Red Matrix: Member List</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectlogo"><img alt="Logo" src="rhash-64.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">The Red Matrix </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.3.1 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Related&#160;Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class&#160;List</span></a></li> <li><a href="classes.html"><span>Class&#160;Index</span></a></li> <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li> <li><a href="functions.html"><span>Class&#160;Members</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('classItem.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Pages</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="headertitle"> <div class="title">Item Member List</div> </div> </div><!--header--> <div class="contents"> <p>This is the complete list of members for <a class="el" href="classItem.html">Item</a>, including all inherited members.</p> <table class="directory"> <tr class="even"><td class="entry"><a class="el" href="classItem.html#acc32426c0f465391be8a99ad810c7b8e">$channel</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr><td class="entry"><a class="el" href="classItem.html#a80dcd0fb7673776c0967839d429c2a0f">$children</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr class="even"><td class="entry"><a class="el" href="classItem.html#a90743c8348b13213275c223bb9333aa0">$comment_box_template</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr><td class="entry"><a class="el" href="classItem.html#a007424e3e3171dcfb4312a02161da6cd">$conversation</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr class="even"><td class="entry"><a class="el" href="classItem.html#aec24e233f9098f902b1e57e60dcb2019">$data</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr> <tr><td class="entry"><a class="el" href="classItem.html#a9594df6014b0b6f45364ea7a34510130">$owner_name</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr class="even"><td class="entry"><a class="el" href="classItem.html#a078f95b4134ce3a1df344cf8d386f986">$owner_photo</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr><td class="entry"><a class="el" href="classItem.html#afa54851df82962c7c42dea3cc9f5c92c">$owner_url</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr class="even"><td class="entry"><a class="el" href="classItem.html#a1a1e42877e6ac7af50286142ceb483d2">$parent</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr><td class="entry"><a class="el" href="classItem.html#a5b561415861f5b89b0733aacfe0428d1">$redirect_url</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr class="even"><td class="entry"><a class="el" href="classItem.html#a7f7bc059de377319282cb4ef4a828480">$template</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr><td class="entry"><a class="el" href="classItem.html#a1cb6aa8abdf7ea7daca647e40c8ea3a2">$threaded</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr class="even"><td class="entry"><a class="el" href="classItem.html#a5cfa6cf964f433a917a81cab079ff9d8">$toplevel</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr><td class="entry"><a class="el" href="classItem.html#a4a123ae98987c1e30ecb15c4edf5a3b8">$visiting</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr class="even"><td class="entry"><a class="el" href="classItem.html#a5d29ddecc073151a65a8e2ea2f6e4189">$wall_to_wall</a></td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr><td class="entry"><a class="el" href="classItem.html#a248f45871ecfe82a08d1d4c0769b2eb2">__construct</a>($data)</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr> <tr class="even"><td class="entry"><a class="el" href="classItem.html#a80dcd9d0f548c3ad550abe7e6981fb51">add_child</a>($item)</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr> <tr><td class="entry"><a class="el" href="classItem.html#abcdb0ea9bcd1576bc99bba9b8f700bb8">check_wall_to_wall</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">protected</span></td></tr> <tr class="even"><td class="entry"><a class="el" href="classItem.html#aca1e66988ed00cd627b2a359b72cd0ae">count_descendants</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr><td class="entry"><a class="el" href="classBaseObject.html#ac43f10e69ce80c78e4870636250fc8a2">get_app</a>()</td><td class="entry"><a class="el" href="classBaseObject.html">BaseObject</a></td><td class="entry"></td></tr> <tr class="even"><td class="entry"><a class="el" href="classItem.html#a632185dd25c5caf277067c76230a4320">get_child</a>($id)</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr> <tr><td class="entry"><a class="el" href="classItem.html#aa0ee775ec94abccec6c798428835d001">get_children</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr> <tr class="even"><td class="entry"><a class="el" href="classItem.html#a3ee7667c2ec6cd7657328e27848c0bdf">get_comment_box</a>($indent)</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr><td class="entry"><a class="el" href="classItem.html#a904421c7a427411bb2ab473bca872f63">get_comment_box_template</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr class="even"><td class="entry"><a class="el" href="classItem.html#a0c301aaed2b7d682728d18db3a22afa3">get_conversation</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr> <tr><td class="entry"><a class="el" href="classItem.html#ad3638f93065693c1f69eb349feb1b7aa">get_data</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr> <tr class="even"><td class="entry"><a class="el" href="classItem.html#ac6f1c96cc82a0dfb7e881fc70309ea3c">get_data_value</a>($name)</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr> <tr><td class="entry"><a class="el" href="classItem.html#ac0f27e58532612f6e7a54c8a621b9b92">get_id</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr> <tr class="even"><td class="entry"><a class="el" href="classItem.html#a67892aa23d19f4431bb2e5f43c74000e">get_owner_name</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr><td class="entry"><a class="el" href="classItem.html#aa541bc4290e51bfd688d6921bebabc73">get_owner_photo</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr class="even"><td class="entry"><a class="el" href="classItem.html#a9f2d219da712390f59012fc32a342074">get_owner_url</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr><td class="entry"><a class="el" href="classItem.html#a4b92e3a9d6212c553aa2661489bd95d8">get_parent</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">protected</span></td></tr> <tr class="even"><td class="entry"><a class="el" href="classItem.html#a428f448f89a8629055ea3294eb942aea">get_redirect_url</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr><td class="entry"><a class="el" href="classItem.html#aba23a0a9d89e316d2b343cc46d695d91">get_template</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr class="even"><td class="entry"><a class="el" href="classItem.html#ad5dcbe0b94cb2d5719bc5b6bd8ad60c8">get_template_data</a>($alike, $dlike, $thread_level=1)</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr> <tr><td class="entry"><a class="el" href="classItem.html#a5b2fafdca55aefeaa08993a5a60529f0">is_threaded</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr> <tr class="even"><td class="entry"><a class="el" href="classItem.html#aa49e40f961dff66da32c5ae110e32993">is_toplevel</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr><td class="entry"><a class="el" href="classItem.html#a97c7feeea7f26a73176cb19faa455e12">is_visiting</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr class="even"><td class="entry"><a class="el" href="classItem.html#aabf87ded59c25b5fe2b2296678e70509">is_wall_to_wall</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">private</span></td></tr> <tr><td class="entry"><a class="el" href="classItem.html#a2ce70ef63f9f4d86a09c351678806925">remove_child</a>($item)</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr> <tr class="even"><td class="entry"><a class="el" href="classItem.html#aa452b5bcd8dea12119b09212c615cb41">remove_parent</a>()</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">protected</span></td></tr> <tr><td class="entry"><a class="el" href="classBaseObject.html#a0a9acda12d751692834cf6999f889223">set_app</a>($app)</td><td class="entry"><a class="el" href="classBaseObject.html">BaseObject</a></td><td class="entry"><span class="mlabel">static</span></td></tr> <tr class="even"><td class="entry"><a class="el" href="classItem.html#aa8b1bbc4236890694635295e46d7fd72">set_conversation</a>($conv)</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"></td></tr> <tr><td class="entry"><a class="el" href="classItem.html#a9890ff72662d5bba301d1f2dd8aec9d7">set_parent</a>($item)</td><td class="entry"><a class="el" href="classItem.html">Item</a></td><td class="entry"><span class="mlabel">protected</span></td></tr> </table></div><!-- contents --> </div><!-- doc-content -->
Java
// Package time extends the time package in the stdlib. package time
Java
/* eslint-disable node/no-deprecated-api */ module.exports.pathBasename = pathBasename module.exports.hasSuffix = hasSuffix module.exports.serialize = serialize module.exports.translate = translate module.exports.stringToStream = stringToStream module.exports.debrack = debrack module.exports.stripLineEndings = stripLineEndings module.exports.fullUrlForReq = fullUrlForReq module.exports.routeResolvedFile = routeResolvedFile module.exports.getQuota = getQuota module.exports.overQuota = overQuota module.exports.getContentType = getContentType module.exports.parse = parse const fs = require('fs') const path = require('path') const util = require('util') const $rdf = require('rdflib') const from = require('from2') const url = require('url') const debug = require('./debug').fs const getSize = require('get-folder-size') const ns = require('solid-namespace')($rdf) /** * Returns a fully qualified URL from an Express.js Request object. * (It's insane that Express does not provide this natively.) * * Usage: * * ``` * console.log(util.fullUrlForReq(req)) * // -> https://example.com/path/to/resource?q1=v1 * ``` * * @param req {IncomingRequest} * * @return {string} */ function fullUrlForReq (req) { const fullUrl = url.format({ protocol: req.protocol, host: req.get('host'), pathname: url.resolve(req.baseUrl, req.path), query: req.query }) return fullUrl } /** * Removes the `<` and `>` brackets around a string and returns it. * Used by the `allow` handler in `verifyDelegator()` logic. * @method debrack * * @param s {string} * * @return {string} */ function debrack (s) { if (!s || s.length < 2) { return s } if (s[0] !== '<') { return s } if (s[s.length - 1] !== '>') { return s } return s.substring(1, s.length - 1) } async function parse (data, baseUri, contentType) { const graph = $rdf.graph() return new Promise((resolve, reject) => { try { return $rdf.parse(data, graph, baseUri, contentType, (err, str) => { if (err) { return reject(err) } resolve(str) }) } catch (err) { return reject(err) } }) } function pathBasename (fullpath) { let bname = '' if (fullpath) { bname = (fullpath.lastIndexOf('/') === fullpath.length - 1) ? '' : path.basename(fullpath) } return bname } function hasSuffix (path, suffixes) { for (const i in suffixes) { if (path.indexOf(suffixes[i], path.length - suffixes[i].length) !== -1) { return true } } return false } function serialize (graph, baseUri, contentType) { return new Promise((resolve, reject) => { try { // target, kb, base, contentType, callback $rdf.serialize(null, graph, baseUri, contentType, function (err, result) { if (err) { return reject(err) } if (result === undefined) { return reject(new Error('Error serializing the graph to ' + contentType)) } resolve(result) }) } catch (err) { reject(err) } }) } function translate (stream, baseUri, from, to) { return new Promise((resolve, reject) => { let data = '' stream .on('data', function (chunk) { data += chunk }) .on('end', function () { const graph = $rdf.graph() $rdf.parse(data, graph, baseUri, from, function (err) { if (err) return reject(err) resolve(serialize(graph, baseUri, to)) }) }) }) } function stringToStream (string) { return from(function (size, next) { // if there's no more content // left in the string, close the stream. if (!string || string.length <= 0) { return next(null, null) } // Pull in a new chunk of text, // removing it from the string. const chunk = string.slice(0, size) string = string.slice(size) // Emit "chunk" from the stream. next(null, chunk) }) } /** * Removes line endings from a given string. Used for WebID TLS Certificate * generation. * * @param obj {string} * * @return {string} */ function stripLineEndings (obj) { if (!obj) { return obj } return obj.replace(/(\r\n|\n|\r)/gm, '') } /** * Adds a route that serves a static file from another Node module */ function routeResolvedFile (router, path, file, appendFileName = true) { const fullPath = appendFileName ? path + file.match(/[^/]+$/) : path const fullFile = require.resolve(file) router.get(fullPath, (req, res) => res.sendFile(fullFile)) } /** * Returns the number of bytes that the user owning the requested POD * may store or Infinity if no limit */ async function getQuota (root, serverUri) { const filename = path.join(root, 'settings/serverSide.ttl') let prefs try { prefs = await _asyncReadfile(filename) } catch (error) { debug('Setting no quota. While reading serverSide.ttl, got ' + error) return Infinity } const graph = $rdf.graph() const storageUri = serverUri + '/' try { $rdf.parse(prefs, graph, storageUri, 'text/turtle') } catch (error) { throw new Error('Failed to parse serverSide.ttl, got ' + error) } return Number(graph.anyValue($rdf.sym(storageUri), ns.solid('storageQuota'))) || Infinity } /** * Returns true of the user has already exceeded their quota, i.e. it * will check if new requests should be rejected, which means they * could PUT a large file and get away with it. */ async function overQuota (root, serverUri) { const quota = await getQuota(root, serverUri) if (quota === Infinity) { return false } // TODO: cache this value? const size = await actualSize(root) return (size > quota) } /** * Returns the number of bytes that is occupied by the actual files in * the file system. IMPORTANT NOTE: Since it traverses the directory * to find the actual file sizes, this does a costly operation, but * neglible for the small quotas we currently allow. If the quotas * grow bigger, this will significantly reduce write performance, and * so it needs to be rewritten. */ function actualSize (root) { return util.promisify(getSize)(root) } function _asyncReadfile (filename) { return util.promisify(fs.readFile)(filename, 'utf-8') } /** * Get the content type from a headers object * @param headers An Express or Fetch API headers object * @return {string} A content type string */ function getContentType (headers) { const value = headers.get ? headers.get('content-type') : headers['content-type'] return value ? value.replace(/;.*/, '') : 'application/octet-stream' }
Java
Template.postSubmit.onCreated(function() { Session.set('postSubmitErrors', {}); }); Template.postSubmit.helpers({ errorMessage: function(field) { return Session.get('postSubmitErrors')[field]; }, errorClass: function (field) { return !!Session.get('postSubmitErrors')[field] ? 'has-error' : ''; } }); Template.postSubmit.onRendered(function(){ // AutoForm.hooks({ // postSubmitForm: hooksObject // }); }); // Template.postSubmit.events({ // 'submit form': function(e) { // e.preventDefault(); // var post = { // url: $(e.target).find('[name=url]').val(), // title: $(e.target).find('[name=title]').val() // }; // var errors = validatePost(post); // if (errors.title || errors.url) // return Session.set('postSubmitErrors', errors); // Meteor.call('postInsert', post, function(error, result) { // // display the error to the user and abort // if (error) // return throwError(error.reason); // // show this result but route anyway // if (result.postExists) // throwError('This link has already been posted'); // Router.go('postPage', {_id: result._id}); // }); // } // });
Java
<?php // Text $_['text_sizechart'] = 'Größentabelle';
Java
package ru.mephi.interpreter; import org.antlr.v4.runtime.tree.ParseTree; import java.math.BigInteger; import java.util.HashMap; import java.util.List; import java.util.Map; /** * @author Anton_Chkadua */ public class Scope { static Scope GLOBAL = new Scope(null); private Scope parent; private Map<BigInteger, Variable> variables = new HashMap<>(); private Map<Function, ParseTree> functions = new HashMap<>(); private BigInteger memoryCounter = BigInteger.ZERO; Scope(Scope parent) { this.parent = parent; if (parent != null) { memoryCounter = parent.getMemoryCounter(); } } private BigInteger getMemoryCounter() { return memoryCounter; } void add(Variable variable) throws RuntimeLangException { if (variables.values().contains(variable)) { throw new RuntimeLangException(RuntimeLangException.Type.DUPLICATE_IDENTIFIER); } if (variable instanceof Array) { ((Array) variable).setScope(this); for (int i = 0; i < ((Array) variable).memoryLength; i++) { variables.put(memoryCounter, variable); memoryCounter = memoryCounter.add(BigInteger.ONE); } } else { variables.put(memoryCounter, variable); memoryCounter = memoryCounter.add(BigInteger.ONE); } } public void remove(String name) throws RuntimeLangException { Variable toBeRemoved = get(name); BigInteger address = variables.keySet().stream().filter(key -> variables.get(key).equals(toBeRemoved)).findFirst().orElseThrow(() -> new RuntimeLangException( RuntimeLangException.Type.NO_SUCH_VARIABLE)); variables.remove(address); } Scope getParent() { return parent; } Variable get(String name) throws RuntimeLangException { Variable candidate = variables.values().stream().filter(variable -> variable.getName().equals(name)).findAny() .orElse(null); if (candidate == null) { if (parent != null) { candidate = parent.get(name); } else { throw new RuntimeLangException(RuntimeLangException.Type.NO_SUCH_VARIABLE); } } return candidate; } Variable getByAddress(Pointer pointer) throws RuntimeLangException { Variable variable = variables.get(pointer.getValue()); System.out.println(variable); if (variable instanceof Array) { int address = getVariableAddress(variable).intValue(); int index = pointer.getValue().intValue() - address; return variable.getElement(index); } else { return variable; } } void setValueByAddress(Pointer pointer, BigInteger value) throws RuntimeLangException { if (pointer.constantValue) throw new RuntimeLangException(RuntimeLangException.Type.ILLEGAL_MODIFICATION); variables.get(pointer.getValue()).setValue(value); } BigInteger getVariableAddress(Variable variable) throws RuntimeLangException { if (!variables.values().contains(variable)) { throw new RuntimeLangException(RuntimeLangException.Type.NO_SUCH_VARIABLE); } for (Map.Entry<BigInteger, Variable> entry : variables.entrySet()) { if (entry.getValue().name.equals(variable.name)) return entry.getKey(); } return null; } void addFunction(Function function, ParseTree functionTree) throws RuntimeLangException { if (functions.containsKey(function)) { throw new RuntimeLangException(RuntimeLangException.Type.DUPLICATE_IDENTIFIER); } functions.put(function, functionTree); } ParseTree getFunctionTree(String name, List<Class> types) throws RuntimeLangException { ParseTree tree = functions.get(getFunction(name, types)); if (tree == null) { if (parent != null) { tree = parent.getFunctionTree(name, types); } else { throw new RuntimeLangException(RuntimeLangException.Type.NO_SUCH_FUNCTION); } } return tree; } Function getFunction(String name, List<Class> types) throws RuntimeLangException { Map.Entry<Function, ParseTree> entryCandidate = functions.entrySet().stream().filter(entry -> entry.getKey().name.equals(name)).findAny() .orElse(null); Function candidate = null; if (entryCandidate == null) { if (parent != null) { candidate = parent.getFunction(name, types); } } else { candidate = entryCandidate.getKey(); } if (candidate == null) { if (name.equals("main")) { throw new RuntimeLangException(RuntimeLangException.Type.NO_MAIN_FUNCTION); } else { throw new RuntimeLangException(RuntimeLangException.Type.NO_SUCH_FUNCTION); } } if (candidate.args.size() != types.size()) { throw new RuntimeLangException(RuntimeLangException.Type.NO_SUCH_FUNCTION); } for (int i = 0; i < candidate.args.size(); i++) { if (!candidate.args.get(i).getType().equals(types.get(i))) { throw new RuntimeLangException(RuntimeLangException.Type.NO_SUCH_FUNCTION); } } return candidate; } @Override public String toString() { String parent = this.parent != null ? this.parent.toString() : ""; StringBuilder builder = new StringBuilder(); for (Variable variable : variables.values()) { builder.append(variable.getName()).append("-").append(variable.getType()).append("-length-") .append(variable.getLength()); try { builder.append("-value-").append(variable.getValue()).append('-').append(variable.constantValue) .append("\r\n"); } catch (RuntimeLangException e) { System.out.println(e.getType()); } } return builder.insert(0, parent).toString(); } }
Java
# ServiceInfo.TryExcludeTag method Attempts to exclude a tag from service. ```csharp public bool TryExcludeTag(string tagName, out ServiceInfo service, out IReadOnlyList<ServiceDefinitionError> errors) ``` ## See Also * class [ServiceDefinitionError](../ServiceDefinitionError.md) * class [ServiceInfo](../ServiceInfo.md) * namespace [Facility.Definition](../../Facility.Definition.md) <!-- DO NOT EDIT: generated by xmldocmd for Facility.Definition.dll -->
Java
<?php return array ( 'id' => 'sec_e900_ver1_sub10', 'fallback' => 'sec_e900_ver1', 'capabilities' => array ( 'accept_third_party_cookie' => 'false', 'j2me_max_jar_size' => '700000', 'ajax_support_getelementbyid' => 'true', 'ajax_support_events' => 'true', ), );
Java
<?php return array ( 'id' => 'dell_streak_7_ver1_suban32', 'fallback' => 'dell_streak_7_ver1', 'capabilities' => array ( 'device_os_version' => '3.2', ), );
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="author" content="Open Knowledge"> <meta name="description" content="The Global Open Data Index assesses the state of open government data around the world. "> <meta name="keywords" content="Open Government, Open Data, Government Transparency, Open Knowledge "> <meta property="og:type" content="website"/> <meta property="og:title" content="Open Data Index - Open Knowledge"/> <meta property="og:site_name" content="Open Data Index"/> <meta property="og:description" content="The Global Open Data Index assesses the state of open government data around the world."/> <meta property="og:image" content="/static/images/favicon.ico"/> <title>Ghana / Health performance (2013) | Global Open Data Index by Open Knowledge</title> <base href="/"> <!--[if lt IE 9]> <script src="/static/vendor/html5shiv.min.js"></script> <![endif]--> <link rel="stylesheet" href="/static/css/site.css"> <link rel="icon" href="/static/images/favicon.ico"> <script> var siteUrl = ''; </script> </head> <body class="na"> <div class="fixed-ok-panel"> <div id="ok-panel" class="closed"> <iframe src="http://assets.okfn.org/themes/okfn/okf-panel.html" scrolling="no"></iframe> </div> <a class="ok-ribbon"><img src="http://okfnlabs.org/ok-panel/assets/images/ok-ribbon.png" alt="Open Knowledge"></a> </div> <header id="header"> <nav class="navbar navbar-default" role="navigation"> <div class="container"> <div> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <div class="logo"> <a href="/"> <img src="/static/images/logo2.png"> <span>Global<br/>Open Data Index</span> </a> </div> </div> <div class="collapse navbar-collapse" id="navbar-collapse"> <ul class="nav navbar-nav" style="margin-right: 132px;"> <li> <a href="/place/" title="About the Open Data Index project"> Places </a> </li> <li> <a href="/dataset/" title="About the Open Data Index project"> Datasets </a> </li> <li> <a href="/download/" title="Download Open Data Index data"> Download </a> </li> <li> <a href="/insights/" title="Insights"> Insights </a> </li> <li> <a href="/methodology/" title="The methodology behind the Open Data Index"> Methodology </a> </li> <li> <a href="/about/" title="About the Open Data Index project"> About </a> </li> <li> <a href="/press/" title="Press information for the Open Data Index"> Press </a> </li> </ul> </div> </div> </div> </nav> </header> <div class="container"> <div class="content"> <div class="row"> <div class="col-md-12"> <ol class="breadcrumb"> <li> <a href="/">Home</a> </li> <li class="active">Ghana / Health performance (2013)</li> </ol> <header class="page-header"> <h1>Ghana / Health performance (2013)</h1> </header> <h3>Sorry</h3> <p> There is no data available for Ghana / Health performance (2013) in the Index. </p> </div> </div> </div> </div> <footer id="footer"> <div class="container"> <div class="row"> <div class="footer-main col-md-8"> <div class="footer-attribution"> <p> <a href="http://opendefinition.org/ossd/" title="Open Online Software Service"> <img src="http://assets.okfn.org/images/ok_buttons/os_80x15_orange_grey.png" alt="" border=""/> </a> <a href="http://opendefinition.org/okd/" title="Open Online Software Service"> <img src="http://assets.okfn.org/images/ok_buttons/od_80x15_blue.png" alt="" border=""/> </a> <a href="http://opendefinition.org/okd/" title="Open Content"> <img src="http://assets.okfn.org/images/ok_buttons/oc_80x15_blue.png" alt="" border=""/> </a> &ndash; <a href="http://creativecommons.org/licenses/by/3.0/" title="Content Licensed under a CC Attribution"></a> <a href="http://opendatacommons.org/licenses/pddl/1.0" title="Data License (Public Domain)">Data License (Public Domain)</a> </p> </div> <div class="footer-meta"> <p> This service is run by <a href="https://okfn.org/" title="Open Knowledge">Open Knowledge</a> </p> <a class="naked" href="http://okfn.org/" title="Open Knowledge"><img src="http://assets.okfn.org/p/okfn/img/okfn-logo-landscape-black-s.png" alt="" height="28"></a> </div> </div> <div class="footer-links col-md-2"> <li><a href="http://okfn.org/" title="Open Knowledge">Open Knowledge</a></li> <li><a href="http://okfn.org/opendata/" title="What is Open Data?">What is Open Data?</a></li> <li><a href="http://census.okfn.org/" title="Run your own Index">Run your own Index</a></li> <li><a href="https://github.com/okfn/opendataindex" title="The source code for Open Data Index">Source Code</a></li> </div> <div class="footer-links col-md-2"> <li><a href="/" title="Open Data Index home">Home</a></li> <li><a href="/download/" title="Download data">Download</a></li> <li><a href="/methodology/" title="The methodology behind the Open Data Index">Methodology</a></li> <li><a href="/faq/" title=" Open Data Index FAQ">FAQ</a></li> <li><a href="/about/" title="About the Open Data Index">About</a></li> <li><a href="/about/" title="Contact us">Contact</a></li> <li><a href="/press/" title="Press">Press</a></li> </div> </div> </div> </footer> <script data-main="/static/scripts/site" src="/static/scripts/require.js"></script> </body> </html>
Java
#include <cstring> #include <iostream> #include <algorithm> #include "matcher.h" #include "edit.h" #include "char.h" #include "instrumentation.h" #define INIT_POS -1 #define __DEBUG__ false // the node represented by a given point #define node(p) (distances[(p)->j][(p)->i]) // the edit distance at a given point, from the distance matrix #define dist(p) (node(p).distance) using namespace std; // simply reverses a string in place void strrev(char *str, int len) { for(int i = 0; i < len / 2; i++) { std::swap(str[i], str[len - i - 1]); } } // empty constructor EditTable::EditTable() { } // destructor EditTable::~EditTable() { // free the rows of the table free_rows(); // free the table itself delete[] distances; // get rid of the best match if(best_match != NULL) { delete best_match; } } // compares the 3 given points based on their given distances, and // returns the point with the lowest distance Point *min3(Point *p1, int d1, Point *p2, int d2, Point *p3, int d3) { if(d1 < d2) { return d1 < d3 ? p1 : p3; } else { return d2 < d3 ? p2 : p3; } } // get the point surrounding (j,i) with the minimum distance Point *EditTable::min_neighbour(int j, int i) { // the only valid surrounding for the top-corner is (0,0) if(j == 1 && i == 1) { return new Point(0, 0); // if we're in the top row, we can't go up any higher } else if(j == 1) { return new Point(j, i - 1); // if we're in the leftmost column, we CAN go more left // (since it just means we're starting the match from there) } else if(i == 1) { return new Point(j, 0); // otherwise, } else { // 3 comparisons here inc_comparisons(3); return min3( // just above it new Point(j - 1, i), distances[j - 1][i].distance, // just to its left new Point(j, i - 1), distances[j][i - 1].distance, // top-left corner new Point(j - 1, i - 1), distances[j - 1][i - 1].distance + // add 1 if we need a replacement (text[j - 1] == query->query_str[i - 1] ? 0 : 1) ); } } // j is the index into the text, // i is the index into the query // assuming j != 0 and i != 0 int EditTable::set_distance(int j, int i) { Node &node = distances[j][i]; // get the valid neighbour with the minimum edit distance node.from = min_neighbour(j, i); node.distance = dist(node.from); // if the two characters at this node are different, if( query->query_str[i - 1] != text[j - 1] ) { // add 1 to the edit distance (replacement) node.distance++; } // return the edit distance of this node return node.distance; } // dump the whole table void EditTable::dump() { // print the query characters cerr << '\t'; for(int i = 0; i < query->query_len; i++) { cerr << '\t'; pc(cerr, query->query_str[i]); } cerr << endl; for(int j = 0; j <= text_len; j++) { for(int i = 0; i <= query->query_len; i++) { // print the text characters if(i == 0 && j != 0) { pc(cerr, text[j - 1]); } cerr << '\t'; // print the actual distance cerr << distances[j][i].distance; } cerr << endl; } } // traceback the best match SearchResult *EditTable::get_match() { SearchResult *result; // if there is no match, return an empty search result if(best_match->j == INIT_POS) { return new SearchResult(0); } // if the match has too high a distance, return an empty search result if(dist(best_match) > query->errors_allowed) { return new SearchResult(0); } // allocate memory for the result result = new SearchResult(query->query_len + query->errors_allowed); // the easy stuff first result->errors = dist(best_match); result->match_len = 0; // start off at the node with the best match Point *current = best_match; while(current != NULL) { // add the next char to the result result->match[result->match_len++] = text[current->j - 1]; // advance to the next node current = node(current).from; } // we don't really want to include the \0 char result->match_len--; // reverse the string in place strrev(result->match, result->match_len); /*// print the result if(__DEBUG__) { pc(cerr, result->match, result->match_len); cerr << endl; }*/ return result; } void EditTable::free_rows() { // free the rows of the table for(int j = 0; j <= text_len; j++) { if(query != NULL) { delete[] distances[j]; } } } void EditTable::fill_table() { // there are going to be the same amount of creates/accesses here inc_comparisons((text_len + 1) * (query->query_len + 1)); inc_ds((text_len + 1) * (query->query_len + 1)); // reset the best match best_match = new Point(INIT_POS, INIT_POS); // the first row and column have a distance 0 for(int j = 0; j <= text_len; j++) { // allocate memory for each row distances[j] = new Node[text_len + 1]; // set the first column to 0 distances[j][0].distance = 0; } for(int i = 0; i <= query->query_len; i++) { // set the first row to 0 distances[0][i].distance = 0; } // first go through the text (rows) for(int j = 1; j <= text_len; j++) { // then go through the query (columns) for(int i = 1; i <= query->query_len; i++) { // work out the edit distance set_distance(j, i); // if we're in the last column (the end of the query string), // [remember matches only happen at the end of the query string] if(i == query->query_len) { // if this is the first time we get to the end of the query, // or if it's got a lower edit distance than the current // best match, if( best_match->j == INIT_POS || distances[j][i].distance < dist(best_match) ) { // then update the best match to be this point best_match->j = j; best_match->i = i; } } } } } SearchResult *EditTable::execute_query(SearchQuery *query) { SearchResult *result; // save the query this->query = query; // fill the table this->fill_table(); // dump it if(__DEBUG__) { this->dump(); } // get the best match result = get_match(); // finally, return the match return result; } void EditTable::load_text(char *text, int len) { // save these values this->text = new char[len]; strncpy(this->text, text, len); this->text_len = len; // build an empty array this->distances = new Node *[text_len + 1]; } // used by main which doesn't know about the EditTable Matcher *create_matcher() { return new EditTable(); }
Java
/*! * # Semantic UI 2.1.6 - Message * http://github.com/semantic-org/semantic-ui/ * * * Copyright 2015 Contributors * Released under the MIT license * http://opensource.org/licenses/MIT * */ /******************************* Message *******************************/ .ui.message { position: relative; min-height: 1em; margin: 1em 0em; background: #F8F8F9; padding: 1em 1.5em; line-height: 1.4285em; color: rgba(0, 0, 0, 0.87); -webkit-transition: opacity 0.1s ease, color 0.1s ease, background 0.1s ease, box-shadow 0.1s ease; transition: opacity 0.1s ease, color 0.1s ease, background 0.1s ease, box-shadow 0.1s ease; border-radius: 0.30769em; box-shadow: 0px 0px 0px 1px rgba(34, 36, 38, 0.22) inset, 0px 0px 0px 0px rgba(0, 0, 0, 0); } .ui.message:first-child { margin-top: 0em; } .ui.message:last-child { margin-bottom: 0em; } /*-------------- Content ---------------*/ /* Header */ .ui.message .header { display: block; font-family: 'Arial', 'Helvetica Neue', Arial, Helvetica, sans-serif; font-weight: bold; margin: -0.14285em 0em 0rem 0em; } /* Default font size */ .ui.message .header:not(.ui) { font-size: 1.15384615em; } /* Paragraph */ .ui.message p { opacity: 0.85; margin: 0.75em 0em; } .ui.message p:first-child { margin-top: 0em; } .ui.message p:last-child { margin-bottom: 0em; } .ui.message .header + p { margin-top: 0.25em; } /* List */ .ui.message .list:not(.ui) { text-align: left; padding: 0em; opacity: 0.85; list-style-position: inside; margin: 0.5em 0em 0em; } .ui.message .list:not(.ui):first-child { margin-top: 0em; } .ui.message .list:not(.ui):last-child { margin-bottom: 0em; } .ui.message .list:not(.ui) li { position: relative; list-style-type: none; margin: 0em 0em 0.3em 1em; padding: 0em; } .ui.message .list:not(.ui) li:before { position: absolute; content: '•'; left: -1em; height: 100%; vertical-align: baseline; } .ui.message .list:not(.ui) li:last-child { margin-bottom: 0em; } /* Icon */ .ui.message > .icon { margin-right: 0.6em; } /* Close Icon */ .ui.message > .close.icon { cursor: pointer; position: absolute; margin: 0em; top: 0.78575em; right: 0.5em; opacity: 0.7; -webkit-transition: opacity 0.1s ease; transition: opacity 0.1s ease; } .ui.message > .close.icon:hover { opacity: 1; } /* First / Last Element */ .ui.message > :first-child { margin-top: 0em; } .ui.message > :last-child { margin-bottom: 0em; } /******************************* Coupling *******************************/ .ui.dropdown .menu > .message { margin: 0px -1px; } /******************************* States *******************************/ /*-------------- Visible ---------------*/ .ui.visible.visible.visible.visible.message { display: block; } .ui.icon.visible.visible.visible.visible.message { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; } /*-------------- Hidden ---------------*/ .ui.hidden.hidden.hidden.hidden.message { display: none; } /******************************* Variations *******************************/ /*-------------- Compact ---------------*/ .ui.compact.message { display: inline-block; } /*-------------- Attached ---------------*/ .ui.attached.message { margin-bottom: -1px; border-radius: 0.30769em 0.30769em 0em 0em; box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.13) inset; margin-left: -1px; margin-right: -1px; } .ui.attached + .ui.attached.message:not(.top):not(.bottom) { margin-top: -1px; border-radius: 0em; } .ui.bottom.attached.message { margin-top: -1px; border-radius: 0em 0em 0.30769em 0.30769em; box-shadow: 0em 0em 0em 1px rgba(0, 0, 0, 0.13) inset, 0px 1px 2px 0 rgba(0, 0, 0, 0.13); } .ui.bottom.attached.message:not(:last-child) { margin-bottom: 1em; } .ui.attached.icon.message { width: auto; } /*-------------- Icon ---------------*/ .ui.icon.message { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; width: 100%; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; } .ui.icon.message > .icon:not(.close) { display: block; -webkit-box-flex: 0; -webkit-flex: 0 0 auto; -ms-flex: 0 0 auto; flex: 0 0 auto; width: auto; line-height: 1; vertical-align: middle; font-size: 3em; opacity: 0.8; } .ui.icon.message > .content { display: block; -webkit-box-flex: 1; -webkit-flex: 1 1 auto; -ms-flex: 1 1 auto; flex: 1 1 auto; vertical-align: middle; } .ui.icon.message .icon:not(.close) + .content { padding-left: 0rem; } .ui.icon.message .circular.icon { width: 1em; } /*-------------- Floating ---------------*/ .ui.floating.message { box-shadow: 0px 0px 0px 1px rgba(34, 36, 38, 0.22) inset, 0px 2px 4px 0px rgba(34, 36, 38, 0.12), 0px 2px 10px 0px rgba(34, 36, 38, 0.08); } /*-------------- Colors ---------------*/ .ui.black.message { background-color: #444C55; color: rgba(255, 255, 255, 0.9); } /*-------------- Types ---------------*/ /* Positive */ .ui.positive.message { background-color: #FCFFF5; color: #2C662D; } .ui.positive.message, .ui.attached.positive.message { box-shadow: 0px 0px 0px 1px #A3C293 inset, 0px 0px 0px 0px rgba(0, 0, 0, 0); } .ui.positive.message .header { color: #1A531B; } /* Negative */ .ui.negative.message { background-color: #FFF6F6; color: #9F3A38; } .ui.negative.message, .ui.attached.negative.message { box-shadow: 0px 0px 0px 1px #E0B4B4 inset, 0px 0px 0px 0px rgba(0, 0, 0, 0); } .ui.negative.message .header { color: #912D2B; } /* Info */ .ui.info.message { background-color: #E6F1F6; color: #4E575B; } .ui.info.message, .ui.attached.info.message { box-shadow: 0px 0px 0px 1px #A9D5DE inset, 0px 0px 0px 0px rgba(0, 0, 0, 0); } .ui.info.message .header { color: #0E566C; } /* Warning */ .ui.warning.message { background-color: #FFFAF3; color: #573A08; } .ui.warning.message, .ui.attached.warning.message { box-shadow: 0px 0px 0px 1px #C9BA9B inset, 0px 0px 0px 0px rgba(0, 0, 0, 0); } .ui.warning.message .header { color: #794B02; } /* Error */ .ui.error.message { background-color: #FFF6F6; color: #9F3A38; } .ui.error.message, .ui.attached.error.message { box-shadow: 0px 0px 0px 1px #E0B4B4 inset, 0px 0px 0px 0px rgba(0, 0, 0, 0); } .ui.error.message .header { color: #912D2B; } /* Success */ .ui.success.message { background-color: #FCFFF5; color: #2C662D; } .ui.success.message, .ui.attached.success.message { box-shadow: 0px 0px 0px 1px #A3C293 inset, 0px 0px 0px 0px rgba(0, 0, 0, 0); } .ui.success.message .header { color: #1A531B; } /* Colors */ .ui.inverted.message, .ui.black.message { background-color: #444C55; color: rgba(255, 255, 255, 0.9); } .ui.red.message { background-color: #FFE8E6; color: #E03131; } .ui.red.message .header { color: #d72020; } .ui.orange.message { background-color: #FFEDDE; color: #D26911; } .ui.orange.message .header { color: #ba5d0f; } .ui.yellow.message { background-color: #FFF8DB; color: #B58105; } .ui.yellow.message .header { color: #9c6f04; } .ui.olive.message { background-color: #FBFDEF; color: #8ABC1E; } .ui.olive.message .header { color: #7aa61a; } .ui.green.message { background-color: #E5F9E7; color: #1EBC30; } .ui.green.message .header { color: #1aa62a; } .ui.teal.message { background-color: #E1F7F7; color: #10A3A3; } .ui.teal.message .header { color: #0e8c8c; } .ui.blue.message { background-color: #DFF0FF; color: #80A6CD; } .ui.blue.message .header { color: #6e99c6; } .ui.violet.message { background-color: #EAE7FF; color: #6435C9; } .ui.violet.message .header { color: #5a30b5; } .ui.purple.message { background-color: #F6E7FF; color: #A333C8; } .ui.purple.message .header { color: #922eb4; } .ui.pink.message { background-color: #FFE3FB; color: #E03997; } .ui.pink.message .header { color: #dd238b; } .ui.brown.message { background-color: #F1E2D3; color: #A5673F; } .ui.brown.message .header { color: #935b38; } /*-------------- Sizes ---------------*/ .ui.small.message { font-size: 0.92307692em; } .ui.message { font-size: 1em; } .ui.large.message { font-size: 1.15384615em; } .ui.huge.message { font-size: 1.46153846em; } .ui.massive.message { font-size: 1.69230769em; } /******************************* Theme Overrides *******************************/ /******************************* Site Overrides *******************************/
Java
<?php /* * This file is part of the Beloop package. * * Copyright (c) 2016 AHDO Studio B.V. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * Feel free to edit as you please, and have fun. * * @author Arkaitz Garro <arkaitz.garro@gmail.com> */ namespace Beloop\Bundle\InstagramBundle; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\HttpKernel\KernelInterface; use Beloop\Bundle\CoreBundle\Abstracts\AbstractBundle; use Beloop\Bundle\InstagramBundle\CompilerPass\MappingCompilerPass; use Beloop\Bundle\InstagramBundle\DependencyInjection\BeloopInstagramExtension; /** * BeloopInstagramBundle Bundle. */ class BeloopInstagramBundle extends AbstractBundle { /** * @param ContainerBuilder $container */ public function build(ContainerBuilder $container) { parent::build($container); $container->addCompilerPass(new MappingCompilerPass()); } /** * Returns the bundle's container extension. * * @return ExtensionInterface The container extension */ public function getContainerExtension() { return new BeloopInstagramExtension(); } /** * Create instance of current bundle, and return dependent bundle namespaces. * * @param KernelInterface $kernel * @return array Bundle instances */ public static function getBundleDependencies(KernelInterface $kernel) { return [ 'Beloop\Bundle\CoreBundle\BeloopCoreBundle', 'Beloop\Bundle\CoreBundle\BeloopUserBundle', ]; } }
Java
6650 #include "types.h" 6651 #include "x86.h" 6652 6653 void* 6654 memset(void *dst, int c, uint n) 6655 { 6656 if ((int)dst%4 == 0 && n%4 == 0){ 6657 c &= 0xFF; 6658 stosl(dst, (c<<24)|(c<<16)|(c<<8)|c, n/4); 6659 } else 6660 stosb(dst, c, n); 6661 return dst; 6662 } 6663 6664 int 6665 memcmp(const void *v1, const void *v2, uint n) 6666 { 6667 const uchar *s1, *s2; 6668 6669 s1 = v1; 6670 s2 = v2; 6671 while(n-- > 0){ 6672 if(*s1 != *s2) 6673 return *s1 - *s2; 6674 s1++, s2++; 6675 } 6676 6677 return 0; 6678 } 6679 6680 void* 6681 memmove(void *dst, const void *src, uint n) 6682 { 6683 const char *s; 6684 char *d; 6685 6686 s = src; 6687 d = dst; 6688 if(s < d && s + n > d){ 6689 s += n; 6690 d += n; 6691 while(n-- > 0) 6692 *--d = *--s; 6693 } else 6694 while(n-- > 0) 6695 *d++ = *s++; 6696 6697 return dst; 6698 } 6699 6700 // memcpy exists to placate GCC. Use memmove. 6701 void* 6702 memcpy(void *dst, const void *src, uint n) 6703 { 6704 return memmove(dst, src, n); 6705 } 6706 6707 int 6708 strncmp(const char *p, const char *q, uint n) 6709 { 6710 while(n > 0 && *p && *p == *q) 6711 n--, p++, q++; 6712 if(n == 0) 6713 return 0; 6714 return (uchar)*p - (uchar)*q; 6715 } 6716 6717 char* 6718 strncpy(char *s, const char *t, int n) 6719 { 6720 char *os; 6721 6722 os = s; 6723 while(n-- > 0 && (*s++ = *t++) != 0) 6724 ; 6725 while(n-- > 0) 6726 *s++ = 0; 6727 return os; 6728 } 6729 6730 // Like strncpy but guaranteed to NUL-terminate. 6731 char* 6732 safestrcpy(char *s, const char *t, int n) 6733 { 6734 char *os; 6735 6736 os = s; 6737 if(n <= 0) 6738 return os; 6739 while(--n > 0 && (*s++ = *t++) != 0) 6740 ; 6741 *s = 0; 6742 return os; 6743 } 6744 6745 6746 6747 6748 6749 6750 int 6751 strlen(const char *s) 6752 { 6753 int n; 6754 6755 for(n = 0; s[n]; n++) 6756 ; 6757 return n; 6758 } 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799
Java
import { IQuotation } from '../../model/QuotationService/IQuotation'; export interface IQuoteDisplayProps { quote: IQuotation; }
Java
# Laravel 5.1 Generators Some generators for Laravel 5.1 ## Install Require the package: ```sh composer require bvw/laravel-generators dev-master ``` Add the service provider to **config/app.php** in Providers section: ```sh BVW\Providers\GeneratorServiceProvider::class, ``` Run the generators: ```sh php artisan make:database ``` ### Available Commands ```sh make:database -- creates a database based on your environment variables (.env file) ``` ### Notes For the *make:database* command you should configure your .env and add DB_CONNECTION to override default *mysql* in **config/database.php** config file
Java
--=========== Copyright © 2019, Planimeter, All rights reserved. ===========-- -- -- Purpose: Payload class -- --==========================================================================-- require( "engine.shared.typelenvalues" ) class "payload" ( "typelenvalues" ) payload._handlers = payload._handlers or {} -- Generate ids for packet structures do local payloads = "engine.shared.network.payloads" if ( package.loaded[ payloads ] ) then unrequire( payloads ) end require( payloads ) typelenvalues.generateIds( payload.structs ) end function payload.initializeFromData( data ) local payload = payload() payload.data = data payload:deserialize() return payload end function payload.setHandler( func, struct ) payload._handlers[ struct ] = func end function payload:payload( struct ) typelenvalues.typelenvalues( self, payload.structs, struct ) end function payload:dispatchToHandler() local name = self:getStructName() if ( name == nil ) then return end local handler = payload._handlers[ name ] if ( handler ) then handler( self ) end end accessor( payload, "peer" ) function payload:getPlayer() return player.getByPeer( self.peer ) end function payload:sendToServer() if ( _CLIENT ) then local network = engine.client.network network.sendToServer( self ) end end function payload:broadcast() if ( _SERVER ) then local network = engine.server.network network.broadcast( self ) end end
Java
version https://git-lfs.github.com/spec/v1 oid sha256:c4d5490597798effaf63d11e546f0b200f196f28e17c69d39ce236de0c6683f0 size 64139
Java
### 2019-03-10 diff between today and yesterday #### python * [pirate/ArchiveBox](https://github.com/pirate/ArchiveBox): The open source self-hosted web archive. Takes browser history/bookmarks/Pocket/Pinboard/etc., saves HTML, JS, PDFs, media, and more... * [0xAX/linux-insides](https://github.com/0xAX/linux-insides): A little bit about a linux kernel * [ageitgey/face_recognition](https://github.com/ageitgey/face_recognition): The world's simplest facial recognition api for Python and the command line * [ArchiveTeam/grab-site](https://github.com/ArchiveTeam/grab-site): The archivist's web crawler: WARC output, dashboard for all crawls, dynamic ignore patterns * [josephmisiti/awesome-machine-learning](https://github.com/josephmisiti/awesome-machine-learning): A curated list of awesome Machine Learning frameworks, libraries and software. * [pallets/flask](https://github.com/pallets/flask): The Python micro framework for building web applications. * [smacke/subsync](https://github.com/smacke/subsync): Automagically synchronize subtitles with video. #### go * [gotify/server](https://github.com/gotify/server): A simple server for sending and receiving messages in real-time per web socket. (Includes a sleek web-ui) * [gotify/cli](https://github.com/gotify/cli): A command line interface for pushing messages to gotify/server. * [ma6254/FictionDown](https://github.com/ma6254/FictionDown): ||||Markdown|txt|epub|| * [etcd-io/etcd](https://github.com/etcd-io/etcd): Distributed reliable key-value store for the most critical data of a distributed system * [restic/restic](https://github.com/restic/restic): Fast, secure, efficient backup program * [snail007/goproxy](https://github.com/snail007/goproxy): Proxy is a high performance HTTP(S), websocket, TCP, UDP,Secure DNS, Socks5 proxy server implemented by golang. Now, it supports chain-style proxies,nat forwarding in different lan,TCP/UDP port forwarding, SSH forwarding.Proxygolanghttp,https,websocket,tcp,DNS,socks5,,,,HTTP,SOCKS5,,,KCP,API * [google/gvisor](https://github.com/google/gvisor): Container Runtime Sandbox * [dgraph-io/dgraph](https://github.com/dgraph-io/dgraph): Fast, Distributed Graph DB #### cpp * [olive-editor/olive](https://github.com/olive-editor/olive): Professional open-source NLE video editor * [DeanRoddey/CIDLib](https://github.com/DeanRoddey/CIDLib): The CIDLib general purpose C++ development environment * [musescore/MuseScore](https://github.com/musescore/MuseScore): MuseScore is an open source and free music notation software. For support, contribution, bug reports, visit MuseScore.org. Fork and make pull requests! * [REDasmOrg/REDasm](https://github.com/REDasmOrg/REDasm): The OpenSource Disassembler * [google/flutter-desktop-embedding](https://github.com/google/flutter-desktop-embedding): Desktop implementations of the Flutter embedding API * [DiligentGraphics/DiligentEngine](https://github.com/DiligentGraphics/DiligentEngine): A modern cross-platform low-level graphics library * [cmderdev/cmder](https://github.com/cmderdev/cmder): Lovely console emulator package for Windows #### javascript * [bvaughn/react-window](https://github.com/bvaughn/react-window): React components for efficiently rendering large lists and tabular data * [NervJS/taro](https://github.com/NervJS/taro): React ///H5React Native https://taro.js.org/ * [facebook/react-native](https://github.com/facebook/react-native): A framework for building native apps with React. * [nodejs/node](https://github.com/nodejs/node): Node.js JavaScript runtime * [facebook/jest](https://github.com/facebook/jest): Delightful JavaScript Testing. * [twbs/bootstrap](https://github.com/twbs/bootstrap): The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web. * [frankmcsherry/blog](https://github.com/frankmcsherry/blog): Some notes on things I find interesting and important. #### coffeescript * [unpoly/unpoly](https://github.com/unpoly/unpoly): Unobtrusive Javascript Framework for server-side applications * [boennemann/badges](https://github.com/boennemann/badges): Readme Badges Gotta catch 'em all * [atom/language-json](https://github.com/atom/language-json): JSON package for Atom
Java
import { Component, DebugElement } from '@angular/core'; import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { By, DOCUMENT } from '@angular/platform-browser'; import { TocComponent } from './toc.component'; import { TocItem, TocService } from 'app/shared/toc.service'; describe('TocComponent', () => { let tocComponentDe: DebugElement; let tocComponent: TocComponent; let tocService: TestTocService; let page: { listItems: DebugElement[]; tocHeading: DebugElement; tocHeadingButton: DebugElement; tocMoreButton: DebugElement; }; function setPage(): typeof page { return { listItems: tocComponentDe.queryAll(By.css('ul.toc-list>li')), tocHeading: tocComponentDe.query(By.css('.toc-heading')), tocHeadingButton: tocComponentDe.query(By.css('.toc-heading button')), tocMoreButton: tocComponentDe.query(By.css('button.toc-more-items')), }; } beforeEach(async(() => { TestBed.configureTestingModule({ declarations: [ HostEmbeddedTocComponent, HostNotEmbeddedTocComponent, TocComponent ], providers: [ { provide: TocService, useClass: TestTocService } ] }) .compileComponents(); })); describe('when embedded in doc body', () => { let fixture: ComponentFixture<HostEmbeddedTocComponent>; beforeEach(() => { fixture = TestBed.createComponent(HostEmbeddedTocComponent); tocComponentDe = fixture.debugElement.children[0]; tocComponent = tocComponentDe.componentInstance; tocService = TestBed.get(TocService); }); it('should create tocComponent', () => { expect(tocComponent).toBeTruthy(); }); it('should be in embedded state', () => { expect(tocComponent.isEmbedded).toEqual(true); }); it('should not display anything when no TocItems', () => { tocService.tocList = []; fixture.detectChanges(); expect(tocComponentDe.children.length).toEqual(0); }); describe('when four TocItems', () => { beforeEach(() => { tocService.tocList.length = 4; fixture.detectChanges(); page = setPage(); }); it('should have four displayed items', () => { expect(page.listItems.length).toEqual(4); }); it('should not have secondary items', () => { expect(tocComponent.hasSecondary).toEqual(false, 'hasSecondary flag'); const aSecond = page.listItems.find(item => item.classes.secondary); expect(aSecond).toBeFalsy('should not find a secondary'); }); it('should not display expando buttons', () => { expect(page.tocHeadingButton).toBeFalsy('top expand/collapse button'); expect(page.tocMoreButton).toBeFalsy('bottom more button'); }); }); describe('when many TocItems', () => { beforeEach(() => { fixture.detectChanges(); page = setPage(); }); it('should have more than 4 displayed items', () => { expect(page.listItems.length).toBeGreaterThan(4); expect(page.listItems.length).toEqual(tocService.tocList.length); }); it('should be in "closed" (not expanded) state at the start', () => { expect(tocComponent.isClosed).toBeTruthy(); }); it('should have "closed" class at the start', () => { expect(tocComponentDe.children[0].classes.closed).toEqual(true); }); it('should display expando buttons', () => { expect(page.tocHeadingButton).toBeTruthy('top expand/collapse button'); expect(page.tocMoreButton).toBeTruthy('bottom more button'); }); it('should have secondary items', () => { expect(tocComponent.hasSecondary).toEqual(true, 'hasSecondary flag'); }); // CSS should hide items with the secondary class when closed it('should have secondary item with a secondary class', () => { const aSecondary = page.listItems.find(item => item.classes.secondary); expect(aSecondary).toBeTruthy('should find a secondary'); expect(aSecondary.classes.secondary).toEqual(true, 'has secondary class'); }); describe('after click expando button', () => { beforeEach(() => { page.tocHeadingButton.nativeElement.click(); fixture.detectChanges(); }); it('should not be "closed"', () => { expect(tocComponent.isClosed).toEqual(false); }); it('should not have "closed" class', () => { expect(tocComponentDe.children[0].classes.closed).toBeFalsy(); }); }); }); }); describe('when in side panel (not embedded))', () => { let fixture: ComponentFixture<HostNotEmbeddedTocComponent>; beforeEach(() => { fixture = TestBed.createComponent(HostNotEmbeddedTocComponent); tocComponentDe = fixture.debugElement.children[0]; tocComponent = tocComponentDe.componentInstance; fixture.detectChanges(); page = setPage(); }); it('should not be in embedded state', () => { expect(tocComponent.isEmbedded).toEqual(false); }); it('should display all items', () => { expect(page.listItems.length).toEqual(tocService.tocList.length); }); it('should not have secondary items', () => { expect(tocComponent.hasSecondary).toEqual(false, 'hasSecondary flag'); const aSecond = page.listItems.find(item => item.classes.secondary); expect(aSecond).toBeFalsy('should not find a secondary'); }); it('should not display expando buttons', () => { expect(page.tocHeadingButton).toBeFalsy('top expand/collapse button'); expect(page.tocMoreButton).toBeFalsy('bottom more button'); }); }); }); //// helpers //// @Component({ selector: 'aio-embedded-host', template: '<aio-toc class="embedded"></aio-toc>' }) class HostEmbeddedTocComponent {} @Component({ selector: 'aio-not-embedded-host', template: '<aio-toc></aio-toc>' }) class HostNotEmbeddedTocComponent {} class TestTocService { tocList: TocItem[] = getTestTocList(); } // tslint:disable:quotemark function getTestTocList() { return [ { "content": "Heading one", "href": "fizz/buzz#heading-one-special-id", "level": "h2", "title": "Heading one" }, { "content": "H2 Two", "href": "fizz/buzz#h2-two", "level": "h2", "title": "H2 Two" }, { "content": "H2 <b>Three</b>", "href": "fizz/buzz#h2-three", "level": "h2", "title": "H2 Three" }, { "content": "H3 3a", "href": "fizz/buzz#h3-3a", "level": "h3", "title": "H3 3a" }, { "content": "H3 3b", "href": "fizz/buzz#h3-3b", "level": "h3", "title": "H3 3b" }, { "content": "<i>H2 <b>four</b></i>", "href": "fizz/buzz#h2-four", "level": "h2", "title": "H2 4" } ]; }
Java
<style> body { padding: 0; margin: 0; } #viewer { background-color: #000; color: #fff; margin: 0px; padding: 0; overflow: hidden; } </style> <div id="viewer"></div>
Java
/* omega - node.js server http://code.google.com/p/theomega/ Copyright 2011, Jonathon Fillmore Licensed under the MIT license. See LICENSE file. http://www.opensource.org/licenses/mit-license.php */ var http=require("http");var om=require("./omlib"); var Omega={Request:function(req){var req;req={api:null};req._sock=req;req._answer=function(){return"foo!"};return req},Response:function(res){var resp;resp={_sock:res,data:null,result:false,encoding:"json",headers:{"Content-Type":"text/plain","Cache-Control":"no-cache"},return_code:"200"};resp.set_result=function(result){resp.result=result?true:false};resp.encode=function(){var answer={result:resp.result};if(resp.result)answer.data=resp.data;else{answer.reason=resp.data;answer.data=null}return om.json.encode(answer)}; return resp},Server:function(conf){var omega;omega={_session_id:null,_session:null,_conf:conf,config:null,request:null,response:null,service:null,service_name:""};omega.answer=function(req,res){var answer;omega.request=Omega.Request(req);omega.response=Omega.Response(res);try{omega.response.data=omega.request._answer();omega.response.result=true}catch(e){omega.response.data=e;omega.response.return_code="500"}res.writeHead(omega.response.return_code,omega.response.headers);res.end(omega.response.encode())}; omega._server=http.createServer(omega.answer);omega._server.listen(conf.port,conf.iface);if(omega._conf.verbose)console.log(om.sprintf("Server running at http://%s:%d/",conf.iface,conf.port));return omega}};exports.Server=Omega.Server;
Java
module Souschef # Loads Souschef configuration YAML class Config # Public - Reads the configuration file # # Returns Hash def self.read verify_file YAML.load_file(File.expand_path('~/.souschef.yml')) end # Private - Checks if we have a configuraiton file # # Returns nil def self.verify_file conf = File.expand_path('~/.souschef.yml') fail "'~/.souschef.yml' missing!" unless File.exist?(conf) end end end
Java
package main import ( "encoding/json" "flag" "fmt" "io/ioutil" "log" "net/url" "os" "os/user" "path/filepath" "strings" "crypto/tls" "net/http" ) type configCommand struct { config *ClientConfig } // skipVerifyHTTPClient returns an *http.Client with InsecureSkipVerify set // to true for its TLS config. This allows self-signed SSL certificates. func skipVerifyHTTPClient(skipVerify bool) *http.Client { if skipVerify { tlsConfig := &tls.Config{InsecureSkipVerify: true} transport := &http.Transport{TLSClientConfig: tlsConfig} return &http.Client{Transport: transport} } return http.DefaultClient } func (cmd *configCommand) Run(args []string) error { if len(args) < 1 { cmd.Usage() os.Exit(1) } var config *ClientConfig if cfg, err := LoadClientConfig(); err == nil { config = cfg } else { config = new(ClientConfig) } var run func(*ClientConfig, []string) error switch strings.ToLower(args[0]) { case "set": run = setCmd case "print": printConfig() return nil default: cmd.Usage() os.Exit(1) } return run(config, args[1:]) } func printConfig() { path, err := clientConfigPath() if err != nil { log.Fatal(err) } cfgData, err := ioutil.ReadFile(path) if err != nil { log.Fatal(err) } fmt.Println(string(cfgData)) } func (cmd *configCommand) Usage() error { const help = ` mdmctl config print mdmctl config set -h ` fmt.Println(help) return nil } func setCmd(cfg *ClientConfig, args []string) error { flagset := flag.NewFlagSet("set", flag.ExitOnError) var ( flToken = flagset.String("api-token", "", "api token to connect to micromdm server") flServerURL = flagset.String("server-url", "", "server url of micromdm server") flSkipVerify = flagset.Bool("skip-verify", false, "skip verification of server certificate (insecure)") ) flagset.Usage = usageFor(flagset, "mdmctl config set [flags]") if err := flagset.Parse(args); err != nil { return err } if *flToken != "" { cfg.APIToken = *flToken } if *flServerURL != "" { if !strings.HasPrefix(*flServerURL, "http") || !strings.HasPrefix(*flServerURL, "https") { *flServerURL = "https://" + *flServerURL } u, err := url.Parse(*flServerURL) if err != nil { return err } u.Scheme = "https" u.Path = "/" cfg.ServerURL = u.String() } cfg.SkipVerify = *flSkipVerify return SaveClientConfig(cfg) } func clientConfigPath() (string, error) { usr, err := user.Current() if err != nil { return "", err } return filepath.Join(usr.HomeDir, ".micromdm", "default.json"), err } func SaveClientConfig(cfg *ClientConfig) error { configPath, err := clientConfigPath() if err != nil { return err } if _, err := os.Stat(filepath.Dir(configPath)); os.IsNotExist(err) { if err := os.MkdirAll(filepath.Dir(configPath), 0777); err != nil { return err } } f, err := os.OpenFile(configPath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0600) if err != nil { return err } defer f.Close() if cfg == nil { cfg = new(ClientConfig) } enc := json.NewEncoder(f) enc.SetIndent("", " ") return enc.Encode(cfg) } func LoadClientConfig() (*ClientConfig, error) { path, err := clientConfigPath() if err != nil { return nil, err } cfgData, err := ioutil.ReadFile(path) if err != nil { return nil, fmt.Errorf("unable to load default config file: %s", err) } var cfg ClientConfig err = json.Unmarshal(cfgData, &cfg) if err != nil { return nil, fmt.Errorf("failed to unmarshal %s : %s", path, err) } return &cfg, nil } type ClientConfig struct { APIToken string `json:"api_token"` ServerURL string `json:"server_url"` SkipVerify bool `json:"skip_verify"` }
Java
module PlazrStore VERSION = "0.0.1" end
Java
# This is needed to render the menu properly, according to user's actions. # The first menu option has an index of 0. The lower option is, the higher index it has. selectable-update-current-index() { # In case Arrow Down was pressed. if [ "$1" == $SELECTABLE_ARROW_DOWN ]; then # If there are no more options to choose from, do nothing: the current index will NOT # be reset to 0 (zero). if (($(($SELECTABLE_CURRENT_INDEX+1)) < $SELECTABLE_OPTIONS_AMOUNT)); then # Increment the value. SELECTABLE_CURRENT_INDEX=$(($SELECTABLE_CURRENT_INDEX+1)) fi fi # In case Arrow Up was pressed. if [ "$1" == $SELECTABLE_ARROW_UP ]; then # See the condition above. The current index will NOT be set to the latest element # (option). if (($(($SELECTABLE_CURRENT_INDEX-1)) >= 0)); then # Decrement the value. SELECTABLE_CURRENT_INDEX=$(($SELECTABLE_CURRENT_INDEX-1)) fi fi }
Java
/* * TestProxy.cpp * * Created on: Sep 6, 2013 * Author: penrique */ #include "InvocationManager.h" #include <bb/system/CardDoneMessage> #include <bb/system/InvokeRequest> // to send number data while invoking phone application #include <bb/PpsObject> // Map #include <bb/platform/LocationMapInvoker> #include <bb/platform/RouteMapInvoker> // contacts #include <bb/cascades/pickers/ContactPicker> using namespace bb::system; using namespace bb::platform; using namespace bb::cascades::pickers; InvocationManager::InvocationManager(const char* name) : Ti::TiProxy(name) { // Create a method, it also has to start with `_` createPropertyFunction("openURL", _openURLMethod); createPropertyFunction("callPhoneNumber", _callPhoneNumberMethod); createPropertyFunction("facebookShare", _facebookShareMethod); createPropertyFunction("openSettings", _openSettingsMethod); createPropertyFunction("openPdf", _openPdfMethod); createPropertyFunction("openMap", _openMapMethod); createPropertyFunction("openContacts", _openContactsMethod); } InvocationManager::~InvocationManager() { // delete instatiated pointers } Ti::TiValue InvocationManager::openURLMethod(Ti::TiValue url) { Ti::TiValue returnValue; returnValue.toBool(); if (invokeReply_ && !invokeReply_->isFinished()) { // Don't send another invoke request if one is already pending. return returnValue; } // convert variable to QString QString myUrl = url.toString(); InvokeRequest request; request.setTarget("sys.browser"); request.setAction("bb.action.OPEN"); request.setUri(myUrl); invokeReply_ = invokeManager_.invoke(request); if (!invokeReply_) { fprintf(stderr, "Failed to invoke this card\n"); return returnValue; } returnValue.setBool(true); return returnValue; } Ti::TiValue InvocationManager::callPhoneNumberMethod(Ti::TiValue number) { Ti::TiValue returnValue; returnValue.toBool(); if (invokeReply_ && !invokeReply_->isFinished()) { // Don't send another invoke request if one is already pending. return returnValue; } // convert variable to QString QString myNumber = number.toString(); QVariantMap map; map.insert("number", myNumber); QByteArray requestData = bb::PpsObject::encode(map, NULL); InvokeRequest request; request.setAction("bb.action.DIAL"); request.setMimeType("application/vnd.blackberry.phone.startcall"); request.setData(requestData); invokeReply_ = invokeManager_.invoke(request); if (!invokeReply_) { fprintf(stderr, "Failed to invoke this card\n"); return returnValue; } returnValue.setBool(true); return returnValue; } Ti::TiValue InvocationManager::facebookShareMethod(Ti::TiValue text) { //TODO: support image & url Ti::TiValue returnValue; returnValue.toBool(); if (invokeReply_ && !invokeReply_->isFinished()) { // Don't send another invoke request if one is already pending. return returnValue; } // convert variable to QString QString myText = text.toString(); InvokeRequest request; request.setTarget("Facebook"); request.setAction("bb.action.SHARE"); request.setMimeType("text/plain"); //request.setUri(myUrl); request.setData(myText.toLocal8Bit()); invokeReply_ = invokeManager_.invoke(request); if (!invokeReply_) { fprintf(stderr, "Failed to invoke this card\n"); return returnValue; } returnValue.setBool(true); return returnValue; } Ti::TiValue InvocationManager::openSettingsMethod(Ti::TiValue page) { Ti::TiValue returnValue; returnValue.toBool(); if (invokeReply_ && !invokeReply_->isFinished()) { // Don't send another invoke request if one is already pending. return returnValue; } // convert variable to QString QString myPage = page.toString(); InvokeRequest request; request.setTarget("sys.settings.card"); request.setAction("bb.action.OPEN"); request.setMimeType("settings/view"); request.setUri(myPage); invokeReply_ = invokeManager_.invoke(request); if (!invokeReply_) { fprintf(stderr, "Failed to invoke this card\n"); return returnValue; } returnValue.setBool(true); return returnValue; } Ti::TiValue InvocationManager::openPdfMethod(Ti::TiValue url) { Ti::TiValue returnValue; returnValue.toBool(); if (invokeReply_ && !invokeReply_->isFinished()) { // Don't send another invoke request if one is already pending. return returnValue; } // convert variable to QString QString myUrl = url.toString(); InvokeRequest request; request.setTarget("com.rim.bb.app.adobeReader.viewer"); request.setAction("bb.action.VIEW"); request.setMimeType("application/pdf"); request.setUri( "file:" + QDir::currentPath() + "/app/native/assets/" + myUrl); invokeReply_ = invokeManager_.invoke(request); if (!invokeReply_) { fprintf(stderr, "Failed to invoke this card\n"); return returnValue; } returnValue.setBool(true); return returnValue; } Ti::TiValue InvocationManager::openMapMethod(Ti::TiValue type) { Ti::TiValue returnValue; returnValue.toBool(); // convert variable to QString QString myType = type.toString(); if (myType == "pin") { LocationMapInvoker lmi; // Sample location set as Toronto // Latitude and Longitude values are expressed // in WGS 84 datum standard lmi.setLocationLatitude(25.1980730); lmi.setLocationLongitude(55.2728830); lmi.setLocationName("Burj Khalifa"); lmi.setLocationDescription("The tallest building in the world."); //set "geocode" : false lmi.setGeocodeLocationEnabled(true); //set "geolocation" : false lmi.setCurrentLocationEnabled(true); lmi.go(); } else { RouteMapInvoker rmi; // Latitude and Longitude values are expressed // in WGS 84 datum standard rmi.setEndLatitude(25.1412000); rmi.setEndLongitude(55.1854000); rmi.setEndName("Burj Al-Arab"); rmi.setEndDescription("The royal suite"); rmi.setEndAddress("Burj Al-Arab, Dubai"); rmi.setNavigationMode(bb::platform::MapNavigationMode::FastestRoute); rmi.setTransportationMode(bb::platform::MapTransportationMode::Car); rmi.go(); } returnValue.setBool(true); return returnValue; } Ti::TiValue InvocationManager::openContactsMethod(Ti::TiValue text) { Ti::TiValue returnValue; returnValue.toBool(); ContactPicker *contactPicker = new ContactPicker(); contactPicker->setMode(ContactSelectionMode::Single); contactPicker->setKindFilters( QSet<bb::pim::contacts::AttributeKind::Type>() << bb::pim::contacts::AttributeKind::Phone); contactPicker->open(); returnValue.setBool(true); return returnValue; }
Java
<?php namespace Lonquan\TaobaoSDK\Top\Request; use Lonquan\TaobaoSDK\Top\RequestCheckUtil; use Lonquan\TaobaoSDK\Top\RequestInterface; /** * TOP API: taobao.product.img.delete request * * @author auto create * @since 1.0, 2016.03.05 */ class ProductImgDeleteRequest implements RequestInterface { /** * 非主图ID **/ private $id; /** * 产品ID.Product的id,通过taobao.product.add接口新增产品的时候会返回id. **/ private $productId; private $apiParas = [ ]; public function setId($id) { $this->id = $id; $this->apiParas["id"] = $id; } public function getId() { return $this->id; } public function setProductId($productId) { $this->productId = $productId; $this->apiParas["product_id"] = $productId; } public function getProductId() { return $this->productId; } public function getApiMethodName() { return "taobao.product.img.delete"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->id, "id"); RequestCheckUtil::checkNotNull($this->productId, "productId"); } public function putOtherTextParam($key, $value) { $this->apiParas[ $key ] = $value; $this->$key = $value; } }
Java
require "point/version" module Point autoload :Point, 'point/point' def self.sum(*args) x = y = 0 args.each do |point| x += point.x y += point.y end self::Point.new(x, y) end end
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="de"> <head> <!-- Generated by javadoc (1.8.0_121) on Sat Apr 01 23:01:20 CEST 2017 --> <title>Uses of Class algorithms.InitStrategy</title> <meta name="date" content="2017-04-01"> <link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class algorithms.InitStrategy"; } } catch(err) { } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../algorithms/InitStrategy.html" title="enum in algorithms">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../deprecated-list.html">Deprecated</a></li> <li><a href="../../index-files/index-1.html">Index</a></li> <li><a href="../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../index.html?algorithms/class-use/InitStrategy.html" target="_top">Frames</a></li> <li><a href="InitStrategy.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h2 title="Uses of Class algorithms.InitStrategy" class="title">Uses of Class<br>algorithms.InitStrategy</h2> </div> <div class="classUseContainer"> <ul class="blockList"> <li class="blockList"> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation"> <caption><span>Packages that use <a href="../../algorithms/InitStrategy.html" title="enum in algorithms">InitStrategy</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Package</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="#algorithms">algorithms</a></td> <td class="colLast">&nbsp;</td> </tr> </tbody> </table> </li> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="algorithms"> <!-- --> </a> <h3>Uses of <a href="../../algorithms/InitStrategy.html" title="enum in algorithms">InitStrategy</a> in <a href="../../algorithms/package-summary.html">algorithms</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../algorithms/package-summary.html">algorithms</a> that return <a href="../../algorithms/InitStrategy.html" title="enum in algorithms">InitStrategy</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../algorithms/InitStrategy.html" title="enum in algorithms">InitStrategy</a></code></td> <td class="colLast"><span class="typeNameLabel">InitStrategy.</span><code><span class="memberNameLink"><a href="../../algorithms/InitStrategy.html#valueOf-java.lang.String-">valueOf</a></span>(java.lang.String&nbsp;name)</code> <div class="block">Returns the enum constant of this type with the specified name.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../algorithms/InitStrategy.html" title="enum in algorithms">InitStrategy</a>[]</code></td> <td class="colLast"><span class="typeNameLabel">InitStrategy.</span><code><span class="memberNameLink"><a href="../../algorithms/InitStrategy.html#values--">values</a></span>()</code> <div class="block">Returns an array containing the constants of this enum type, in the order they are declared.</div> </td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../algorithms/package-summary.html">algorithms</a> with parameters of type <a href="../../algorithms/InitStrategy.html" title="enum in algorithms">InitStrategy</a></span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>java.util.List&lt;<a href="../../data/Cluster.html" title="class in data">Cluster</a>&gt;</code></td> <td class="colLast"><span class="typeNameLabel">Kmeans.</span><code><span class="memberNameLink"><a href="../../algorithms/Kmeans.html#calculateClusters-algorithms.InitStrategy-algorithms.UpdateStrategy-">calculateClusters</a></span>(<a href="../../algorithms/InitStrategy.html" title="enum in algorithms">InitStrategy</a>&nbsp;initStrat, <a href="../../algorithms/UpdateStrategy.html" title="enum in algorithms">UpdateStrategy</a>&nbsp;updateStrat)</code> <div class="block">calculateClusters(initStrat, updateStrat) startet das Clustering-Verfahren</div> </td> </tr> </tbody> </table> </li> </ul> </li> </ul> </div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../algorithms/InitStrategy.html" title="enum in algorithms">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../deprecated-list.html">Deprecated</a></li> <li><a href="../../index-files/index-1.html">Index</a></li> <li><a href="../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../index.html?algorithms/class-use/InitStrategy.html" target="_top">Frames</a></li> <li><a href="InitStrategy.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>
Java
<?php namespace MvMidia\Factory; use MvMidia\Service\AudioService; use Zend\ServiceManager\FactoryInterface; use Zend\ServiceManager\ServiceLocatorInterface; class AudioServiceFactory implements FactoryInterface { public function createService(ServiceLocatorInterface $serviceLocator) { $entityManager = $serviceLocator->get('Doctrine\ORM\EntityManager'); return new AudioService($entityManager); } }
Java
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _10.CatalanNumbers { class Program { static void Main(string[] args) { // 10. Write a program to calculate the Nth Catalan number by given N. Console.Write("Insert N = "); string input = Console.ReadLine(); int num; int catalanNumber; int factN = 1; int factM = 1; int factK = 1; if (int.TryParse(input, out num)) { if (num > -1) { if (num == 0) { Console.WriteLine("Catalan number given by '0' is: 1"); } else if (num >= 1) { int n = num; while (n > 1) { factN = factN * n; // for (n!) n = n - 1; } n = num + 1; while (n > 1) { factM = factM * n; // for (n + 1) n = n - 1; } n = 2 * num; while (n > 1) { factK = factK * n; // for (2 * n) n = n - 1; } catalanNumber = factK / (factM * factN); Console.WriteLine("Catalan number given by 'N' is: " + catalanNumber); } } else { Console.WriteLine("N < 0"); } } else { Console.WriteLine("Incorect input!"); } } } }
Java
<?php /* TwigBundle:Exception:traces.txt.twig */ class __TwigTemplate_c3e3230b69c4964c8a557e1f2f357b5c8020737511aeeb0ff45cb50924b53015 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ); } protected function doDisplay(array $context, array $blocks = array()) { // line 1 if (twig_length_filter($this->env, $this->getAttribute($this->getContext($context, "exception"), "trace"))) { // line 2 $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "exception"), "trace")); foreach ($context['_seq'] as $context["_key"] => $context["trace"]) { // line 3 $this->env->loadTemplate("TwigBundle:Exception:trace.txt.twig")->display(array("trace" => $this->getContext($context, "trace"))); // line 4 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['trace'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; } } public function getTemplateName() { return "TwigBundle:Exception:traces.txt.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 42 => 14, 38 => 13, 35 => 4, 26 => 5, 87 => 20, 80 => 19, 55 => 13, 46 => 7, 44 => 10, 36 => 7, 31 => 5, 25 => 3, 21 => 2, 94 => 22, 92 => 21, 89 => 20, 85 => 19, 79 => 18, 75 => 17, 72 => 16, 68 => 14, 64 => 12, 56 => 9, 50 => 8, 41 => 9, 27 => 4, 24 => 4, 22 => 2, 201 => 92, 199 => 91, 196 => 90, 187 => 84, 183 => 82, 173 => 74, 171 => 73, 168 => 72, 166 => 71, 163 => 70, 158 => 67, 156 => 66, 151 => 63, 142 => 59, 138 => 57, 136 => 56, 133 => 55, 123 => 47, 121 => 46, 117 => 44, 115 => 43, 112 => 42, 105 => 40, 101 => 24, 91 => 31, 86 => 28, 69 => 25, 66 => 15, 62 => 23, 51 => 15, 49 => 19, 39 => 6, 32 => 12, 19 => 1, 57 => 16, 54 => 21, 43 => 8, 40 => 7, 33 => 10, 30 => 3,); } }
Java
<section *ngIf="blogItems"> <div class="background"></div> <div class="wrapper" *ngFor="let item of blogItems"> <div class="text" [innerHtml]="texts[blogItems.indexOf(item)]"></div> <div class="item"> <aae-blog-item [blogItem]="item" [alias]="alias"></aae-blog-item> </div> </div> </section>
Java
(function() { var $, expect, fruits; $ = require('../'); expect = require('expect.js'); /* Examples */ fruits = '<ul id = "fruits">\n <li class = "apple">Apple</li>\n <li class = "orange">Orange</li>\n <li class = "pear">Pear</li>\n</ul>'.replace(/(\n|\s{2})/g, ''); /* Tests */ describe('$(...)', function() { describe('.find', function() { it('() : should return this', function() { return expect($('ul', fruits).find()[0].name).to.equal('ul'); }); it('(single) : should find one descendant', function() { return expect($('#fruits', fruits).find('.apple')[0].attribs["class"]).to.equal('apple'); }); it('(many) : should find all matching descendant', function() { return expect($('#fruits', fruits).find('li')).to.have.length(3); }); it('(many) : should merge all selected elems with matching descendants'); it('(invalid single) : should return empty if cant find', function() { return expect($('ul', fruits).find('blah')).to.have.length(0); }); return it('should return empty if search already empty result', function() { return expect($('#fruits').find('li')).to.have.length(0); }); }); describe('.children', function() { it('() : should get all children', function() { return expect($('ul', fruits).children()).to.have.length(3); }); it('(selector) : should return children matching selector', function() { return expect($('ul', fruits).children('.orange').hasClass('orange')).to.be.ok; }); it('(invalid selector) : should return empty', function() { return expect($('ul', fruits).children('.lulz')).to.have.length(0); }); return it('should only match immediate children, not ancestors'); }); describe('.next', function() { it('() : should return next element', function() { return expect($('.orange', fruits).next().hasClass('pear')).to.be.ok; }); return it('(no next) : should return null (?)'); }); describe('.prev', function() { it('() : should return previous element', function() { return expect($('.orange', fruits).prev().hasClass('apple')).to.be.ok; }); return it('(no prev) : should return null (?)'); }); describe('.siblings', function() { it('() : should get all the siblings', function() { return expect($('.orange', fruits).siblings()).to.have.length(2); }); return it('(selector) : should get all siblings that match the selector', function() { return expect($('.orange', fruits).siblings('li')).to.have.length(2); }); }); describe('.each', function() { return it('( (i, elem) -> ) : should loop selected returning fn with (i, elem)', function() { var items; items = []; $('li', fruits).each(function(i, elem) { return items[i] = elem; }); expect(items[0].attribs["class"]).to.equal('apple'); expect(items[1].attribs["class"]).to.equal('orange'); return expect(items[2].attribs["class"]).to.equal('pear'); }); }); describe('.first', function() { it('() : should return the first item', function() { var elem, src; src = $("<span>foo</span><span>bar</span><span>baz</span>"); elem = src.first(); expect(elem.length).to.equal(1); return expect(elem.html()).to.equal('foo'); }); return it('() : should return an empty object for an empty object', function() { var first, src; src = $(); first = src.first(); expect(first.length).to.equal(0); return expect(first.html()).to.be(null); }); }); describe('.last', function() { it('() : should return the last element', function() { var elem, src; src = $("<span>foo</span><span>bar</span><span>baz</span>"); elem = src.last(); expect(elem.length).to.equal(1); return expect(elem.html()).to.equal('baz'); }); return it('() : should return an empty object for an empty object', function() { var last, src; src = $(); last = src.last(); expect(last.length).to.equal(0); return expect(last.html()).to.be(null); }); }); describe('.first & .last', function() { return it('() : should return same object if only one object', function() { var first, last, src; src = $("<span>bar</span>"); first = src.first(); last = src.last(); expect(first.html()).to.equal(last.html()); expect(first.length).to.equal(1); expect(first.html()).to.equal('bar'); expect(last.length).to.equal(1); return expect(last.html()).to.equal('bar'); }); }); return describe('.eq', function() { return it('(i) : should return the element at the specified index', function() { expect($('li', fruits).eq(0).text()).to.equal('Apple'); expect($('li', fruits).eq(1).text()).to.equal('Orange'); expect($('li', fruits).eq(2).text()).to.equal('Pear'); expect($('li', fruits).eq(3).text()).to.equal(''); return expect($('li', fruits).eq(-1).text()).to.equal('Pear'); }); }); }); }).call(this);
Java
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Form; use Symfony\Component\Form\Exception\InvalidArgumentException; use Symfony\Component\Form\Exception\UnexpectedTypeException; use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\OptionsResolver\OptionsResolver; /** * A wrapper for a form type and its extensions. * * @author Bernhard Schussek <bschussek@gmail.com> */ class ResolvedFormType implements ResolvedFormTypeInterface { /** * @var FormTypeInterface */ private $innerType; /** * @var FormTypeExtensionInterface[] */ private $typeExtensions; /** * @var ResolvedFormTypeInterface|null */ private $parent; /** * @var OptionsResolver */ private $optionsResolver; public function __construct(FormTypeInterface $innerType, array $typeExtensions = array(), ResolvedFormTypeInterface $parent = null) { if (!preg_match('/^[a-z0-9_]*$/i', $innerType->getName())) { throw new InvalidArgumentException(sprintf( 'The "%s" form type name ("%s") is not valid. Names must only contain letters, numbers, and "_".', get_class($innerType), $innerType->getName() )); } foreach ($typeExtensions as $extension) { if (!$extension instanceof FormTypeExtensionInterface) { throw new UnexpectedTypeException($extension, 'Symfony\Component\Form\FormTypeExtensionInterface'); } } $this->innerType = $innerType; $this->typeExtensions = $typeExtensions; $this->parent = $parent; } /** * {@inheritdoc} */ public function getName() { return $this->innerType->getName(); } /** * {@inheritdoc} */ public function getParent() { return $this->parent; } /** * {@inheritdoc} */ public function getInnerType() { return $this->innerType; } /** * {@inheritdoc} */ public function getTypeExtensions() { return $this->typeExtensions; } /** * {@inheritdoc} */ public function createBuilder(FormFactoryInterface $factory, $name, array $options = array()) { $options = $this->getOptionsResolver()->resolve($options); // Should be decoupled from the specific option at some point $dataClass = isset($options['data_class']) ? $options['data_class'] : null; $builder = $this->newBuilder($name, $dataClass, $factory, $options); $builder->setType($this); return $builder; } /** * {@inheritdoc} */ public function createView(FormInterface $form, FormView $parent = null) { return $this->newView($parent); } /** * Configures a form builder for the type hierarchy. * * @param FormBuilderInterface $builder The builder to configure * @param array $options The options used for the configuration */ public function buildForm(FormBuilderInterface $builder, array $options) { if (null !== $this->parent) { $this->parent->buildForm($builder, $options); } $this->innerType->buildForm($builder, $options); foreach ($this->typeExtensions as $extension) { $extension->buildForm($builder, $options); } } /** * Configures a form view for the type hierarchy. * * This method is called before the children of the view are built. * * @param FormView $view The form view to configure * @param FormInterface $form The form corresponding to the view * @param array $options The options used for the configuration */ public function buildView(FormView $view, FormInterface $form, array $options) { if (null !== $this->parent) { $this->parent->buildView($view, $form, $options); } $this->innerType->buildView($view, $form, $options); foreach ($this->typeExtensions as $extension) { $extension->buildView($view, $form, $options); } } /** * Finishes a form view for the type hierarchy. * * This method is called after the children of the view have been built. * * @param FormView $view The form view to configure * @param FormInterface $form The form corresponding to the view * @param array $options The options used for the configuration */ public function finishView(FormView $view, FormInterface $form, array $options) { if (null !== $this->parent) { $this->parent->finishView($view, $form, $options); } $this->innerType->finishView($view, $form, $options); foreach ($this->typeExtensions as $extension) { /* @var FormTypeExtensionInterface $extension */ $extension->finishView($view, $form, $options); } } /** * Returns the configured options resolver used for this type. * * @return \Symfony\Component\OptionsResolver\OptionsResolverInterface The options resolver */ public function getOptionsResolver() { if (null === $this->optionsResolver) { if (null !== $this->parent) { $this->optionsResolver = clone $this->parent->getOptionsResolver(); } else { $this->optionsResolver = new OptionsResolver(); } $this->innerType->setDefaultOptions($this->optionsResolver); if (method_exists($this->innerType, 'configureOptions')) { $reflector = new \ReflectionMethod($this->innerType, 'setDefaultOptions'); $isOldOverwritten = 'Symfony\Component\Form\AbstractType' !== $reflector->getDeclaringClass()->getName(); $reflector = new \ReflectionMethod($this->innerType, 'configureOptions'); $isNewOverwritten = 'Symfony\Component\Form\AbstractType' !== $reflector->getDeclaringClass()->getName(); if ($isOldOverwritten && !$isNewOverwritten) { @trigger_error(get_class($this->innerType).': The FormTypeInterface::setDefaultOptions() method is deprecated since version 2.7 and will be removed in 3.0. Use configureOptions() instead. This method will be added to the FormTypeInterface with Symfony 3.0.', E_USER_DEPRECATED); } } else { @trigger_error(get_class($this->innerType).': The FormTypeInterface::configureOptions() method will be added in Symfony 3.0. You should extend AbstractType or implement it in your classes.', E_USER_DEPRECATED); } foreach ($this->typeExtensions as $extension) { $extension->setDefaultOptions($this->optionsResolver); if (method_exists($extension, 'configureOptions')) { $reflector = new \ReflectionMethod($extension, 'setDefaultOptions'); $isOldOverwritten = 'Symfony\Component\Form\AbstractTypeExtension' !== $reflector->getDeclaringClass()->getName(); $reflector = new \ReflectionMethod($extension, 'configureOptions'); $isNewOverwritten = 'Symfony\Component\Form\AbstractTypeExtension' !== $reflector->getDeclaringClass()->getName(); if ($isOldOverwritten && !$isNewOverwritten) { @trigger_error(get_class($extension).': The FormTypeExtensionInterface::setDefaultOptions() method is deprecated since version 2.7 and will be removed in 3.0. Use configureOptions() instead. This method will be added to the FormTypeExtensionInterface with Symfony 3.0.', E_USER_DEPRECATED); } } else { @trigger_error(get_class($this->innerType).': The FormTypeExtensionInterface::configureOptions() method will be added in Symfony 3.0. You should extend AbstractTypeExtension or implement it in your classes.', E_USER_DEPRECATED); } } } return $this->optionsResolver; } /** * Creates a new builder instance. * * Override this method if you want to customize the builder class. * * @param string $name The name of the builder * @param string $dataClass The data class * @param FormFactoryInterface $factory The current form factory * @param array $options The builder options * * @return FormBuilderInterface The new builder instance */ protected function newBuilder($name, $dataClass, FormFactoryInterface $factory, array $options) { if ($this->innerType instanceof ButtonTypeInterface) { return new ButtonBuilder($name, $options); } if ($this->innerType instanceof SubmitButtonTypeInterface) { return new SubmitButtonBuilder($name, $options); } return new FormBuilder($name, $dataClass, new EventDispatcher(), $factory, $options); } /** * Creates a new view instance. * * Override this method if you want to customize the view class. * * @param FormView|null $parent The parent view, if available * * @return FormView A new view instance */ protected function newView(FormView $parent = null) { return new FormView($parent); } }
Java
<!DOCTYPE html> <html lang = "en"> <head> <title> Cultural Blog</title> <link href='http://fonts.googleapis.com/css?family=Italianno' rel='stylesheet' type='text/css'> </head> <style type="text/css"> h1 { text-align: center; margin-top: 3% } p { } body { background: url("http://www.hdwallpapers.in/walls/hd_sky_blue_beach-HD.jpg"); background-size: cover; font-family: 'Italianno', serif; font-size: 32px } .question { color: #4D4D4D; margin-top: 3% } .answer { } </style> <body> <h1>Here are my answers to Q&A:</h1> <p class="question">Q: When you think of the times in your life where you've been the happiest, the proudest, or the most satisfied, which of the following values come to mind?</p> <p class="answer">A: Accomplishment, Achievement, Adventure, Autonomy, Relationships, Commitment, Courage, Creativity, Competence, Confidence, Credibility, Decisiveness, Effectiveness, Excitement, Faith, Freedom, Fiendships, Growth, Having a family, Health, Helping other people, Independence, Inner harmony, Insight, Justice, Knowledge, Peace, Personal development, Pleasure, Romance, Security, Serenity, Sophistication, Spirituality, Tranquility, Truth, Vibrancy, Wisdom</p> <p class="question">Q: Pick one value and write a couple of sentences about why one of the values you chose is important to you</p> <p class="answer">A: Having faith is the source of everything you need in life. Faith in god and yourself. It brings all other qualities and values you need in life. It brings peace, Inner harmony, Serenity, Courage, Confidence, and all other values I mentioned above.</p> <p class="question">Q: Answer the following for the values you chose in Exercise 1: In general, I try to live up to these values: Disagree 1 ----- 2 ----- 3 ----- 4 ----- 5 Agree</p> <p class="answer">A: I have to say 5. I try my best to live up to those values because they do make me happy and satisfied.</p> <p class="question">Q: What was the last topic that someone asked for your advice on?</p> <p class="answer">A: A close friend of mine got accepted in couple of universities for p.h.d and he asked for my advice about the cities and which university he should attend.</p> </body>
Java
# nepali-wordlist Nepali wordlist for wpa2 cracking. Includes password with length of 8 character or more and mostly contains nepali words including other common words. ## Files * __nepali-name-suffix-8+.txt.gz:__ `Nepali names passwords with numbered suffix. Contains 80,00,000 words with up to 3 number suffixa. Level 9 compression used to compress. Original size is around 50 MB. ` * __nepali-name.txt:__ `8000+ nepali names which might be helpful to create your own wordlist or in some other projects.` * __wlist.py:__ `This is a wordlist manager script which can strip down larg wordlist to a smaller one according to your need. Codes are all messed up wtihout proper documentation but it works perfectly.. :)` *__Install:__* 1. Copy this script to your path. 2. Make it execuitable by `chmod +x wlist.py` 3. Execuite command by wlist.py from terminal.
Java
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: diplomacy_tensorflow/core/example/feature.proto #include "diplomacy_tensorflow/core/example/feature.pb.h" #include <algorithm> #include <google/protobuf/stubs/common.h> #include <google/protobuf/stubs/port.h> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/wire_format_lite_inl.h> #include <google/protobuf/descriptor.h> #include <google/protobuf/generated_message_reflection.h> #include <google/protobuf/reflection_ops.h> #include <google/protobuf/wire_format.h> // This is a temporary google only hack #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS #include "third_party/protobuf/version.h" #endif // @@protoc_insertion_point(includes) namespace protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto { extern PROTOBUF_INTERNAL_EXPORT_protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_BytesList; extern PROTOBUF_INTERNAL_EXPORT_protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_FloatList; extern PROTOBUF_INTERNAL_EXPORT_protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Int64List; extern PROTOBUF_INTERNAL_EXPORT_protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_FeatureList; extern PROTOBUF_INTERNAL_EXPORT_protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_FeatureLists_FeatureListEntry_DoNotUse; extern PROTOBUF_INTERNAL_EXPORT_protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Features_FeatureEntry_DoNotUse; extern PROTOBUF_INTERNAL_EXPORT_protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Feature; } // namespace protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto namespace diplomacy { namespace tensorflow { class BytesListDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<BytesList> _instance; } _BytesList_default_instance_; class FloatListDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<FloatList> _instance; } _FloatList_default_instance_; class Int64ListDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<Int64List> _instance; } _Int64List_default_instance_; class FeatureDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<Feature> _instance; const ::diplomacy::tensorflow::BytesList* bytes_list_; const ::diplomacy::tensorflow::FloatList* float_list_; const ::diplomacy::tensorflow::Int64List* int64_list_; } _Feature_default_instance_; class Features_FeatureEntry_DoNotUseDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<Features_FeatureEntry_DoNotUse> _instance; } _Features_FeatureEntry_DoNotUse_default_instance_; class FeaturesDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<Features> _instance; } _Features_default_instance_; class FeatureListDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<FeatureList> _instance; } _FeatureList_default_instance_; class FeatureLists_FeatureListEntry_DoNotUseDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<FeatureLists_FeatureListEntry_DoNotUse> _instance; } _FeatureLists_FeatureListEntry_DoNotUse_default_instance_; class FeatureListsDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed<FeatureLists> _instance; } _FeatureLists_default_instance_; } // namespace tensorflow } // namespace diplomacy namespace protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto { static void InitDefaultsBytesList() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::diplomacy::tensorflow::_BytesList_default_instance_; new (ptr) ::diplomacy::tensorflow::BytesList(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::diplomacy::tensorflow::BytesList::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<0> scc_info_BytesList = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBytesList}, {}}; static void InitDefaultsFloatList() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::diplomacy::tensorflow::_FloatList_default_instance_; new (ptr) ::diplomacy::tensorflow::FloatList(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::diplomacy::tensorflow::FloatList::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<0> scc_info_FloatList = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsFloatList}, {}}; static void InitDefaultsInt64List() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::diplomacy::tensorflow::_Int64List_default_instance_; new (ptr) ::diplomacy::tensorflow::Int64List(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::diplomacy::tensorflow::Int64List::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<0> scc_info_Int64List = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsInt64List}, {}}; static void InitDefaultsFeature() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::diplomacy::tensorflow::_Feature_default_instance_; new (ptr) ::diplomacy::tensorflow::Feature(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::diplomacy::tensorflow::Feature::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<3> scc_info_Feature = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsFeature}, { &protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_BytesList.base, &protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_FloatList.base, &protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_Int64List.base,}}; static void InitDefaultsFeatures_FeatureEntry_DoNotUse() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::diplomacy::tensorflow::_Features_FeatureEntry_DoNotUse_default_instance_; new (ptr) ::diplomacy::tensorflow::Features_FeatureEntry_DoNotUse(); } ::diplomacy::tensorflow::Features_FeatureEntry_DoNotUse::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<1> scc_info_Features_FeatureEntry_DoNotUse = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsFeatures_FeatureEntry_DoNotUse}, { &protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_Feature.base,}}; static void InitDefaultsFeatures() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::diplomacy::tensorflow::_Features_default_instance_; new (ptr) ::diplomacy::tensorflow::Features(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::diplomacy::tensorflow::Features::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<1> scc_info_Features = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsFeatures}, { &protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_Features_FeatureEntry_DoNotUse.base,}}; static void InitDefaultsFeatureList() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::diplomacy::tensorflow::_FeatureList_default_instance_; new (ptr) ::diplomacy::tensorflow::FeatureList(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::diplomacy::tensorflow::FeatureList::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<1> scc_info_FeatureList = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsFeatureList}, { &protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_Feature.base,}}; static void InitDefaultsFeatureLists_FeatureListEntry_DoNotUse() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::diplomacy::tensorflow::_FeatureLists_FeatureListEntry_DoNotUse_default_instance_; new (ptr) ::diplomacy::tensorflow::FeatureLists_FeatureListEntry_DoNotUse(); } ::diplomacy::tensorflow::FeatureLists_FeatureListEntry_DoNotUse::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<1> scc_info_FeatureLists_FeatureListEntry_DoNotUse = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsFeatureLists_FeatureListEntry_DoNotUse}, { &protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_FeatureList.base,}}; static void InitDefaultsFeatureLists() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::diplomacy::tensorflow::_FeatureLists_default_instance_; new (ptr) ::diplomacy::tensorflow::FeatureLists(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::diplomacy::tensorflow::FeatureLists::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<1> scc_info_FeatureLists = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsFeatureLists}, { &protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_FeatureLists_FeatureListEntry_DoNotUse.base,}}; void InitDefaults() { ::google::protobuf::internal::InitSCC(&scc_info_BytesList.base); ::google::protobuf::internal::InitSCC(&scc_info_FloatList.base); ::google::protobuf::internal::InitSCC(&scc_info_Int64List.base); ::google::protobuf::internal::InitSCC(&scc_info_Feature.base); ::google::protobuf::internal::InitSCC(&scc_info_Features_FeatureEntry_DoNotUse.base); ::google::protobuf::internal::InitSCC(&scc_info_Features.base); ::google::protobuf::internal::InitSCC(&scc_info_FeatureList.base); ::google::protobuf::internal::InitSCC(&scc_info_FeatureLists_FeatureListEntry_DoNotUse.base); ::google::protobuf::internal::InitSCC(&scc_info_FeatureLists.base); } ::google::protobuf::Metadata file_level_metadata[9]; const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::diplomacy::tensorflow::BytesList, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::diplomacy::tensorflow::BytesList, value_), ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::diplomacy::tensorflow::FloatList, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::diplomacy::tensorflow::FloatList, value_), ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::diplomacy::tensorflow::Int64List, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::diplomacy::tensorflow::Int64List, value_), ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::diplomacy::tensorflow::Feature, _internal_metadata_), ~0u, // no _extensions_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::diplomacy::tensorflow::Feature, _oneof_case_[0]), ~0u, // no _weak_field_map_ offsetof(::diplomacy::tensorflow::FeatureDefaultTypeInternal, bytes_list_), offsetof(::diplomacy::tensorflow::FeatureDefaultTypeInternal, float_list_), offsetof(::diplomacy::tensorflow::FeatureDefaultTypeInternal, int64_list_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::diplomacy::tensorflow::Feature, kind_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::diplomacy::tensorflow::Features_FeatureEntry_DoNotUse, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::diplomacy::tensorflow::Features_FeatureEntry_DoNotUse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::diplomacy::tensorflow::Features_FeatureEntry_DoNotUse, key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::diplomacy::tensorflow::Features_FeatureEntry_DoNotUse, value_), 0, 1, ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::diplomacy::tensorflow::Features, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::diplomacy::tensorflow::Features, feature_), ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::diplomacy::tensorflow::FeatureList, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::diplomacy::tensorflow::FeatureList, feature_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::diplomacy::tensorflow::FeatureLists_FeatureListEntry_DoNotUse, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::diplomacy::tensorflow::FeatureLists_FeatureListEntry_DoNotUse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::diplomacy::tensorflow::FeatureLists_FeatureListEntry_DoNotUse, key_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::diplomacy::tensorflow::FeatureLists_FeatureListEntry_DoNotUse, value_), 0, 1, ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::diplomacy::tensorflow::FeatureLists, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::diplomacy::tensorflow::FeatureLists, feature_list_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(::diplomacy::tensorflow::BytesList)}, { 6, -1, sizeof(::diplomacy::tensorflow::FloatList)}, { 12, -1, sizeof(::diplomacy::tensorflow::Int64List)}, { 18, -1, sizeof(::diplomacy::tensorflow::Feature)}, { 27, 34, sizeof(::diplomacy::tensorflow::Features_FeatureEntry_DoNotUse)}, { 36, -1, sizeof(::diplomacy::tensorflow::Features)}, { 42, -1, sizeof(::diplomacy::tensorflow::FeatureList)}, { 48, 55, sizeof(::diplomacy::tensorflow::FeatureLists_FeatureListEntry_DoNotUse)}, { 57, -1, sizeof(::diplomacy::tensorflow::FeatureLists)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast<const ::google::protobuf::Message*>(&::diplomacy::tensorflow::_BytesList_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::diplomacy::tensorflow::_FloatList_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::diplomacy::tensorflow::_Int64List_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::diplomacy::tensorflow::_Feature_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::diplomacy::tensorflow::_Features_FeatureEntry_DoNotUse_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::diplomacy::tensorflow::_Features_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::diplomacy::tensorflow::_FeatureList_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::diplomacy::tensorflow::_FeatureLists_FeatureListEntry_DoNotUse_default_instance_), reinterpret_cast<const ::google::protobuf::Message*>(&::diplomacy::tensorflow::_FeatureLists_default_instance_), }; void protobuf_AssignDescriptors() { AddDescriptors(); AssignDescriptors( "diplomacy_tensorflow/core/example/feature.proto", schemas, file_default_instances, TableStruct::offsets, file_level_metadata, NULL, NULL); } void protobuf_AssignDescriptorsOnce() { static ::google::protobuf::internal::once_flag once; ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); } void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 9); } void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n/diplomacy_tensorflow/core/example/feat" "ure.proto\022\024diplomacy.tensorflow\"\032\n\tBytes" "List\022\r\n\005value\030\001 \003(\014\"\036\n\tFloatList\022\021\n\005valu" "e\030\001 \003(\002B\002\020\001\"\036\n\tInt64List\022\021\n\005value\030\001 \003(\003B" "\002\020\001\"\266\001\n\007Feature\0225\n\nbytes_list\030\001 \001(\0132\037.di" "plomacy.tensorflow.BytesListH\000\0225\n\nfloat_" "list\030\002 \001(\0132\037.diplomacy.tensorflow.FloatL" "istH\000\0225\n\nint64_list\030\003 \001(\0132\037.diplomacy.te" "nsorflow.Int64ListH\000B\006\n\004kind\"\227\001\n\010Feature" "s\022<\n\007feature\030\001 \003(\0132+.diplomacy.tensorflo" "w.Features.FeatureEntry\032M\n\014FeatureEntry\022" "\013\n\003key\030\001 \001(\t\022,\n\005value\030\002 \001(\0132\035.diplomacy." "tensorflow.Feature:\0028\001\"=\n\013FeatureList\022.\n" "\007feature\030\001 \003(\0132\035.diplomacy.tensorflow.Fe" "ature\"\260\001\n\014FeatureLists\022I\n\014feature_list\030\001" " \003(\01323.diplomacy.tensorflow.FeatureLists" ".FeatureListEntry\032U\n\020FeatureListEntry\022\013\n" "\003key\030\001 \001(\t\0220\n\005value\030\002 \001(\0132!.diplomacy.te" "nsorflow.FeatureList:\0028\001Bi\n\026org.tensorfl" "ow.exampleB\rFeatureProtosP\001Z;github.com/" "tensorflow/tensorflow/tensorflow/go/core" "/example\370\001\001b\006proto3" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( descriptor, 859); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "diplomacy_tensorflow/core/example/feature.proto", &protobuf_RegisterTypes); } void AddDescriptors() { static ::google::protobuf::internal::once_flag once; ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); } // Force AddDescriptors() to be called at dynamic initialization time. struct StaticDescriptorInitializer { StaticDescriptorInitializer() { AddDescriptors(); } } static_descriptor_initializer; } // namespace protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto namespace diplomacy { namespace tensorflow { // =================================================================== void BytesList::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int BytesList::kValueFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 BytesList::BytesList() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::google::protobuf::internal::InitSCC( &protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_BytesList.base); SharedCtor(); // @@protoc_insertion_point(constructor:diplomacy.tensorflow.BytesList) } BytesList::BytesList(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), value_(arena) { ::google::protobuf::internal::InitSCC(&protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_BytesList.base); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:diplomacy.tensorflow.BytesList) } BytesList::BytesList(const BytesList& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), value_(from.value_) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:diplomacy.tensorflow.BytesList) } void BytesList::SharedCtor() { } BytesList::~BytesList() { // @@protoc_insertion_point(destructor:diplomacy.tensorflow.BytesList) SharedDtor(); } void BytesList::SharedDtor() { GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); } void BytesList::ArenaDtor(void* object) { BytesList* _this = reinterpret_cast< BytesList* >(object); (void)_this; } void BytesList::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void BytesList::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* BytesList::descriptor() { ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const BytesList& BytesList::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_BytesList.base); return *internal_default_instance(); } void BytesList::Clear() { // @@protoc_insertion_point(message_clear_start:diplomacy.tensorflow.BytesList) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; value_.Clear(); _internal_metadata_.Clear(); } bool BytesList::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:diplomacy.tensorflow.BytesList) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated bytes value = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( input, this->add_value())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:diplomacy.tensorflow.BytesList) return true; failure: // @@protoc_insertion_point(parse_failure:diplomacy.tensorflow.BytesList) return false; #undef DO_ } void BytesList::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:diplomacy.tensorflow.BytesList) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated bytes value = 1; for (int i = 0, n = this->value_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteBytes( 1, this->value(i), output); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); } // @@protoc_insertion_point(serialize_end:diplomacy.tensorflow.BytesList) } ::google::protobuf::uint8* BytesList::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:diplomacy.tensorflow.BytesList) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated bytes value = 1; for (int i = 0, n = this->value_size(); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: WriteBytesToArray(1, this->value(i), target); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); } // @@protoc_insertion_point(serialize_to_array_end:diplomacy.tensorflow.BytesList) return target; } size_t BytesList::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:diplomacy.tensorflow.BytesList) size_t total_size = 0; if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } // repeated bytes value = 1; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->value_size()); for (int i = 0, n = this->value_size(); i < n; i++) { total_size += ::google::protobuf::internal::WireFormatLite::BytesSize( this->value(i)); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void BytesList::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:diplomacy.tensorflow.BytesList) GOOGLE_DCHECK_NE(&from, this); const BytesList* source = ::google::protobuf::internal::DynamicCastToGenerated<const BytesList>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:diplomacy.tensorflow.BytesList) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:diplomacy.tensorflow.BytesList) MergeFrom(*source); } } void BytesList::MergeFrom(const BytesList& from) { // @@protoc_insertion_point(class_specific_merge_from_start:diplomacy.tensorflow.BytesList) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; value_.MergeFrom(from.value_); } void BytesList::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:diplomacy.tensorflow.BytesList) if (&from == this) return; Clear(); MergeFrom(from); } void BytesList::CopyFrom(const BytesList& from) { // @@protoc_insertion_point(class_specific_copy_from_start:diplomacy.tensorflow.BytesList) if (&from == this) return; Clear(); MergeFrom(from); } bool BytesList::IsInitialized() const { return true; } void BytesList::Swap(BytesList* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { BytesList* temp = New(GetArenaNoVirtual()); temp->MergeFrom(*other); other->CopyFrom(*this); InternalSwap(temp); if (GetArenaNoVirtual() == NULL) { delete temp; } } } void BytesList::UnsafeArenaSwap(BytesList* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void BytesList::InternalSwap(BytesList* other) { using std::swap; value_.InternalSwap(CastToBase(&other->value_)); _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata BytesList::GetMetadata() const { protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void FloatList::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int FloatList::kValueFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 FloatList::FloatList() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::google::protobuf::internal::InitSCC( &protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_FloatList.base); SharedCtor(); // @@protoc_insertion_point(constructor:diplomacy.tensorflow.FloatList) } FloatList::FloatList(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), value_(arena) { ::google::protobuf::internal::InitSCC(&protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_FloatList.base); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:diplomacy.tensorflow.FloatList) } FloatList::FloatList(const FloatList& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), value_(from.value_) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:diplomacy.tensorflow.FloatList) } void FloatList::SharedCtor() { } FloatList::~FloatList() { // @@protoc_insertion_point(destructor:diplomacy.tensorflow.FloatList) SharedDtor(); } void FloatList::SharedDtor() { GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); } void FloatList::ArenaDtor(void* object) { FloatList* _this = reinterpret_cast< FloatList* >(object); (void)_this; } void FloatList::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void FloatList::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* FloatList::descriptor() { ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const FloatList& FloatList::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_FloatList.base); return *internal_default_instance(); } void FloatList::Clear() { // @@protoc_insertion_point(message_clear_start:diplomacy.tensorflow.FloatList) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; value_.Clear(); _internal_metadata_.Clear(); } bool FloatList::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:diplomacy.tensorflow.FloatList) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated float value = 1 [packed = true]; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( input, this->mutable_value()))); } else if ( static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( 1, 10u, input, this->mutable_value()))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:diplomacy.tensorflow.FloatList) return true; failure: // @@protoc_insertion_point(parse_failure:diplomacy.tensorflow.FloatList) return false; #undef DO_ } void FloatList::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:diplomacy.tensorflow.FloatList) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated float value = 1 [packed = true]; if (this->value_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); output->WriteVarint32(static_cast< ::google::protobuf::uint32>( _value_cached_byte_size_)); ::google::protobuf::internal::WireFormatLite::WriteFloatArray( this->value().data(), this->value_size(), output); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); } // @@protoc_insertion_point(serialize_end:diplomacy.tensorflow.FloatList) } ::google::protobuf::uint8* FloatList::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:diplomacy.tensorflow.FloatList) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated float value = 1 [packed = true]; if (this->value_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _value_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: WriteFloatNoTagToArray(this->value_, target); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); } // @@protoc_insertion_point(serialize_to_array_end:diplomacy.tensorflow.FloatList) return target; } size_t FloatList::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:diplomacy.tensorflow.FloatList) size_t total_size = 0; if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } // repeated float value = 1 [packed = true]; { unsigned int count = static_cast<unsigned int>(this->value_size()); size_t data_size = 4UL * count; if (data_size > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _value_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void FloatList::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:diplomacy.tensorflow.FloatList) GOOGLE_DCHECK_NE(&from, this); const FloatList* source = ::google::protobuf::internal::DynamicCastToGenerated<const FloatList>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:diplomacy.tensorflow.FloatList) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:diplomacy.tensorflow.FloatList) MergeFrom(*source); } } void FloatList::MergeFrom(const FloatList& from) { // @@protoc_insertion_point(class_specific_merge_from_start:diplomacy.tensorflow.FloatList) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; value_.MergeFrom(from.value_); } void FloatList::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:diplomacy.tensorflow.FloatList) if (&from == this) return; Clear(); MergeFrom(from); } void FloatList::CopyFrom(const FloatList& from) { // @@protoc_insertion_point(class_specific_copy_from_start:diplomacy.tensorflow.FloatList) if (&from == this) return; Clear(); MergeFrom(from); } bool FloatList::IsInitialized() const { return true; } void FloatList::Swap(FloatList* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { FloatList* temp = New(GetArenaNoVirtual()); temp->MergeFrom(*other); other->CopyFrom(*this); InternalSwap(temp); if (GetArenaNoVirtual() == NULL) { delete temp; } } } void FloatList::UnsafeArenaSwap(FloatList* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void FloatList::InternalSwap(FloatList* other) { using std::swap; value_.InternalSwap(&other->value_); _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata FloatList::GetMetadata() const { protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Int64List::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Int64List::kValueFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Int64List::Int64List() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::google::protobuf::internal::InitSCC( &protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_Int64List.base); SharedCtor(); // @@protoc_insertion_point(constructor:diplomacy.tensorflow.Int64List) } Int64List::Int64List(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), value_(arena) { ::google::protobuf::internal::InitSCC(&protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_Int64List.base); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:diplomacy.tensorflow.Int64List) } Int64List::Int64List(const Int64List& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), value_(from.value_) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:diplomacy.tensorflow.Int64List) } void Int64List::SharedCtor() { } Int64List::~Int64List() { // @@protoc_insertion_point(destructor:diplomacy.tensorflow.Int64List) SharedDtor(); } void Int64List::SharedDtor() { GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); } void Int64List::ArenaDtor(void* object) { Int64List* _this = reinterpret_cast< Int64List* >(object); (void)_this; } void Int64List::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void Int64List::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* Int64List::descriptor() { ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Int64List& Int64List::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_Int64List.base); return *internal_default_instance(); } void Int64List::Clear() { // @@protoc_insertion_point(message_clear_start:diplomacy.tensorflow.Int64List) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; value_.Clear(); _internal_metadata_.Clear(); } bool Int64List::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:diplomacy.tensorflow.Int64List) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated int64 value = 1 [packed = true]; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( input, this->mutable_value()))); } else if ( static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( 1, 10u, input, this->mutable_value()))); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:diplomacy.tensorflow.Int64List) return true; failure: // @@protoc_insertion_point(parse_failure:diplomacy.tensorflow.Int64List) return false; #undef DO_ } void Int64List::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:diplomacy.tensorflow.Int64List) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated int64 value = 1 [packed = true]; if (this->value_size() > 0) { ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); output->WriteVarint32(static_cast< ::google::protobuf::uint32>( _value_cached_byte_size_)); } for (int i = 0, n = this->value_size(); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteInt64NoTag( this->value(i), output); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); } // @@protoc_insertion_point(serialize_end:diplomacy.tensorflow.Int64List) } ::google::protobuf::uint8* Int64List::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:diplomacy.tensorflow.Int64List) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated int64 value = 1 [packed = true]; if (this->value_size() > 0) { target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( 1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, target); target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( static_cast< ::google::protobuf::int32>( _value_cached_byte_size_), target); target = ::google::protobuf::internal::WireFormatLite:: WriteInt64NoTagToArray(this->value_, target); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); } // @@protoc_insertion_point(serialize_to_array_end:diplomacy.tensorflow.Int64List) return target; } size_t Int64List::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:diplomacy.tensorflow.Int64List) size_t total_size = 0; if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } // repeated int64 value = 1 [packed = true]; { size_t data_size = ::google::protobuf::internal::WireFormatLite:: Int64Size(this->value_); if (data_size > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( static_cast< ::google::protobuf::int32>(data_size)); } int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _value_cached_byte_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); total_size += data_size; } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void Int64List::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:diplomacy.tensorflow.Int64List) GOOGLE_DCHECK_NE(&from, this); const Int64List* source = ::google::protobuf::internal::DynamicCastToGenerated<const Int64List>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:diplomacy.tensorflow.Int64List) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:diplomacy.tensorflow.Int64List) MergeFrom(*source); } } void Int64List::MergeFrom(const Int64List& from) { // @@protoc_insertion_point(class_specific_merge_from_start:diplomacy.tensorflow.Int64List) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; value_.MergeFrom(from.value_); } void Int64List::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:diplomacy.tensorflow.Int64List) if (&from == this) return; Clear(); MergeFrom(from); } void Int64List::CopyFrom(const Int64List& from) { // @@protoc_insertion_point(class_specific_copy_from_start:diplomacy.tensorflow.Int64List) if (&from == this) return; Clear(); MergeFrom(from); } bool Int64List::IsInitialized() const { return true; } void Int64List::Swap(Int64List* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { Int64List* temp = New(GetArenaNoVirtual()); temp->MergeFrom(*other); other->CopyFrom(*this); InternalSwap(temp); if (GetArenaNoVirtual() == NULL) { delete temp; } } } void Int64List::UnsafeArenaSwap(Int64List* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void Int64List::InternalSwap(Int64List* other) { using std::swap; value_.InternalSwap(&other->value_); _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata Int64List::GetMetadata() const { protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void Feature::InitAsDefaultInstance() { ::diplomacy::tensorflow::_Feature_default_instance_.bytes_list_ = const_cast< ::diplomacy::tensorflow::BytesList*>( ::diplomacy::tensorflow::BytesList::internal_default_instance()); ::diplomacy::tensorflow::_Feature_default_instance_.float_list_ = const_cast< ::diplomacy::tensorflow::FloatList*>( ::diplomacy::tensorflow::FloatList::internal_default_instance()); ::diplomacy::tensorflow::_Feature_default_instance_.int64_list_ = const_cast< ::diplomacy::tensorflow::Int64List*>( ::diplomacy::tensorflow::Int64List::internal_default_instance()); } void Feature::set_allocated_bytes_list(::diplomacy::tensorflow::BytesList* bytes_list) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_kind(); if (bytes_list) { ::google::protobuf::Arena* submessage_arena = ::google::protobuf::Arena::GetArena(bytes_list); if (message_arena != submessage_arena) { bytes_list = ::google::protobuf::internal::GetOwnedMessage( message_arena, bytes_list, submessage_arena); } set_has_bytes_list(); kind_.bytes_list_ = bytes_list; } // @@protoc_insertion_point(field_set_allocated:diplomacy.tensorflow.Feature.bytes_list) } void Feature::set_allocated_float_list(::diplomacy::tensorflow::FloatList* float_list) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_kind(); if (float_list) { ::google::protobuf::Arena* submessage_arena = ::google::protobuf::Arena::GetArena(float_list); if (message_arena != submessage_arena) { float_list = ::google::protobuf::internal::GetOwnedMessage( message_arena, float_list, submessage_arena); } set_has_float_list(); kind_.float_list_ = float_list; } // @@protoc_insertion_point(field_set_allocated:diplomacy.tensorflow.Feature.float_list) } void Feature::set_allocated_int64_list(::diplomacy::tensorflow::Int64List* int64_list) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); clear_kind(); if (int64_list) { ::google::protobuf::Arena* submessage_arena = ::google::protobuf::Arena::GetArena(int64_list); if (message_arena != submessage_arena) { int64_list = ::google::protobuf::internal::GetOwnedMessage( message_arena, int64_list, submessage_arena); } set_has_int64_list(); kind_.int64_list_ = int64_list; } // @@protoc_insertion_point(field_set_allocated:diplomacy.tensorflow.Feature.int64_list) } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Feature::kBytesListFieldNumber; const int Feature::kFloatListFieldNumber; const int Feature::kInt64ListFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Feature::Feature() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::google::protobuf::internal::InitSCC( &protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_Feature.base); SharedCtor(); // @@protoc_insertion_point(constructor:diplomacy.tensorflow.Feature) } Feature::Feature(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena) { ::google::protobuf::internal::InitSCC(&protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_Feature.base); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:diplomacy.tensorflow.Feature) } Feature::Feature(const Feature& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); clear_has_kind(); switch (from.kind_case()) { case kBytesList: { mutable_bytes_list()->::diplomacy::tensorflow::BytesList::MergeFrom(from.bytes_list()); break; } case kFloatList: { mutable_float_list()->::diplomacy::tensorflow::FloatList::MergeFrom(from.float_list()); break; } case kInt64List: { mutable_int64_list()->::diplomacy::tensorflow::Int64List::MergeFrom(from.int64_list()); break; } case KIND_NOT_SET: { break; } } // @@protoc_insertion_point(copy_constructor:diplomacy.tensorflow.Feature) } void Feature::SharedCtor() { clear_has_kind(); } Feature::~Feature() { // @@protoc_insertion_point(destructor:diplomacy.tensorflow.Feature) SharedDtor(); } void Feature::SharedDtor() { GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); if (has_kind()) { clear_kind(); } } void Feature::ArenaDtor(void* object) { Feature* _this = reinterpret_cast< Feature* >(object); (void)_this; } void Feature::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void Feature::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* Feature::descriptor() { ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Feature& Feature::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_Feature.base); return *internal_default_instance(); } void Feature::clear_kind() { // @@protoc_insertion_point(one_of_clear_start:diplomacy.tensorflow.Feature) switch (kind_case()) { case kBytesList: { if (GetArenaNoVirtual() == NULL) { delete kind_.bytes_list_; } break; } case kFloatList: { if (GetArenaNoVirtual() == NULL) { delete kind_.float_list_; } break; } case kInt64List: { if (GetArenaNoVirtual() == NULL) { delete kind_.int64_list_; } break; } case KIND_NOT_SET: { break; } } _oneof_case_[0] = KIND_NOT_SET; } void Feature::Clear() { // @@protoc_insertion_point(message_clear_start:diplomacy.tensorflow.Feature) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; clear_kind(); _internal_metadata_.Clear(); } bool Feature::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:diplomacy.tensorflow.Feature) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // .diplomacy.tensorflow.BytesList bytes_list = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_bytes_list())); } else { goto handle_unusual; } break; } // .diplomacy.tensorflow.FloatList float_list = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_float_list())); } else { goto handle_unusual; } break; } // .diplomacy.tensorflow.Int64List int64_list = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_int64_list())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:diplomacy.tensorflow.Feature) return true; failure: // @@protoc_insertion_point(parse_failure:diplomacy.tensorflow.Feature) return false; #undef DO_ } void Feature::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:diplomacy.tensorflow.Feature) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .diplomacy.tensorflow.BytesList bytes_list = 1; if (has_bytes_list()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, this->_internal_bytes_list(), output); } // .diplomacy.tensorflow.FloatList float_list = 2; if (has_float_list()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->_internal_float_list(), output); } // .diplomacy.tensorflow.Int64List int64_list = 3; if (has_int64_list()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, this->_internal_int64_list(), output); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); } // @@protoc_insertion_point(serialize_end:diplomacy.tensorflow.Feature) } ::google::protobuf::uint8* Feature::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:diplomacy.tensorflow.Feature) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // .diplomacy.tensorflow.BytesList bytes_list = 1; if (has_bytes_list()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, this->_internal_bytes_list(), deterministic, target); } // .diplomacy.tensorflow.FloatList float_list = 2; if (has_float_list()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 2, this->_internal_float_list(), deterministic, target); } // .diplomacy.tensorflow.Int64List int64_list = 3; if (has_int64_list()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 3, this->_internal_int64_list(), deterministic, target); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); } // @@protoc_insertion_point(serialize_to_array_end:diplomacy.tensorflow.Feature) return target; } size_t Feature::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:diplomacy.tensorflow.Feature) size_t total_size = 0; if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } switch (kind_case()) { // .diplomacy.tensorflow.BytesList bytes_list = 1; case kBytesList: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *kind_.bytes_list_); break; } // .diplomacy.tensorflow.FloatList float_list = 2; case kFloatList: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *kind_.float_list_); break; } // .diplomacy.tensorflow.Int64List int64_list = 3; case kInt64List: { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *kind_.int64_list_); break; } case KIND_NOT_SET: { break; } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void Feature::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:diplomacy.tensorflow.Feature) GOOGLE_DCHECK_NE(&from, this); const Feature* source = ::google::protobuf::internal::DynamicCastToGenerated<const Feature>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:diplomacy.tensorflow.Feature) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:diplomacy.tensorflow.Feature) MergeFrom(*source); } } void Feature::MergeFrom(const Feature& from) { // @@protoc_insertion_point(class_specific_merge_from_start:diplomacy.tensorflow.Feature) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; switch (from.kind_case()) { case kBytesList: { mutable_bytes_list()->::diplomacy::tensorflow::BytesList::MergeFrom(from.bytes_list()); break; } case kFloatList: { mutable_float_list()->::diplomacy::tensorflow::FloatList::MergeFrom(from.float_list()); break; } case kInt64List: { mutable_int64_list()->::diplomacy::tensorflow::Int64List::MergeFrom(from.int64_list()); break; } case KIND_NOT_SET: { break; } } } void Feature::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:diplomacy.tensorflow.Feature) if (&from == this) return; Clear(); MergeFrom(from); } void Feature::CopyFrom(const Feature& from) { // @@protoc_insertion_point(class_specific_copy_from_start:diplomacy.tensorflow.Feature) if (&from == this) return; Clear(); MergeFrom(from); } bool Feature::IsInitialized() const { return true; } void Feature::Swap(Feature* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { Feature* temp = New(GetArenaNoVirtual()); temp->MergeFrom(*other); other->CopyFrom(*this); InternalSwap(temp); if (GetArenaNoVirtual() == NULL) { delete temp; } } } void Feature::UnsafeArenaSwap(Feature* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void Feature::InternalSwap(Feature* other) { using std::swap; swap(kind_, other->kind_); swap(_oneof_case_[0], other->_oneof_case_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata Feature::GetMetadata() const { protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== Features_FeatureEntry_DoNotUse::Features_FeatureEntry_DoNotUse() {} Features_FeatureEntry_DoNotUse::Features_FeatureEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} void Features_FeatureEntry_DoNotUse::MergeFrom(const Features_FeatureEntry_DoNotUse& other) { MergeFromInternal(other); } ::google::protobuf::Metadata Features_FeatureEntry_DoNotUse::GetMetadata() const { ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::file_level_metadata[4]; } void Features_FeatureEntry_DoNotUse::MergeFrom( const ::google::protobuf::Message& other) { ::google::protobuf::Message::MergeFrom(other); } // =================================================================== void Features::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int Features::kFeatureFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 Features::Features() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::google::protobuf::internal::InitSCC( &protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_Features.base); SharedCtor(); // @@protoc_insertion_point(constructor:diplomacy.tensorflow.Features) } Features::Features(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), feature_(arena) { ::google::protobuf::internal::InitSCC(&protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_Features.base); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:diplomacy.tensorflow.Features) } Features::Features(const Features& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); feature_.MergeFrom(from.feature_); // @@protoc_insertion_point(copy_constructor:diplomacy.tensorflow.Features) } void Features::SharedCtor() { } Features::~Features() { // @@protoc_insertion_point(destructor:diplomacy.tensorflow.Features) SharedDtor(); } void Features::SharedDtor() { GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); } void Features::ArenaDtor(void* object) { Features* _this = reinterpret_cast< Features* >(object); (void)_this; } void Features::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void Features::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* Features::descriptor() { ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const Features& Features::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_Features.base); return *internal_default_instance(); } void Features::Clear() { // @@protoc_insertion_point(message_clear_start:diplomacy.tensorflow.Features) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; feature_.Clear(); _internal_metadata_.Clear(); } bool Features::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:diplomacy.tensorflow.Features) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // map<string, .diplomacy.tensorflow.Feature> feature = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { Features_FeatureEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< Features_FeatureEntry_DoNotUse, ::std::string, ::diplomacy::tensorflow::Feature, ::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 0 >, ::google::protobuf::Map< ::std::string, ::diplomacy::tensorflow::Feature > > parser(&feature_); DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, &parser)); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( parser.key().data(), static_cast<int>(parser.key().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "diplomacy.tensorflow.Features.FeatureEntry.key")); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:diplomacy.tensorflow.Features) return true; failure: // @@protoc_insertion_point(parse_failure:diplomacy.tensorflow.Features) return false; #undef DO_ } void Features::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:diplomacy.tensorflow.Features) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // map<string, .diplomacy.tensorflow.Feature> feature = 1; if (!this->feature().empty()) { typedef ::google::protobuf::Map< ::std::string, ::diplomacy::tensorflow::Feature >::const_pointer ConstPtr; typedef ConstPtr SortItem; typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; struct Utf8Check { static void Check(ConstPtr p) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( p->first.data(), static_cast<int>(p->first.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "diplomacy.tensorflow.Features.FeatureEntry.key"); } }; if (output->IsSerializationDeterministic() && this->feature().size() > 1) { ::std::unique_ptr<SortItem[]> items( new SortItem[this->feature().size()]); typedef ::google::protobuf::Map< ::std::string, ::diplomacy::tensorflow::Feature >::size_type size_type; size_type n = 0; for (::google::protobuf::Map< ::std::string, ::diplomacy::tensorflow::Feature >::const_iterator it = this->feature().begin(); it != this->feature().end(); ++it, ++n) { items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); } ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); ::std::unique_ptr<Features_FeatureEntry_DoNotUse> entry; for (size_type i = 0; i < n; i++) { entry.reset(feature_.NewEntryWrapper( items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second)); ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *entry, output); if (entry->GetArena() != NULL) { entry.release(); } Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]); } } else { ::std::unique_ptr<Features_FeatureEntry_DoNotUse> entry; for (::google::protobuf::Map< ::std::string, ::diplomacy::tensorflow::Feature >::const_iterator it = this->feature().begin(); it != this->feature().end(); ++it) { entry.reset(feature_.NewEntryWrapper( it->first, it->second)); ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *entry, output); if (entry->GetArena() != NULL) { entry.release(); } Utf8Check::Check(&*it); } } } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); } // @@protoc_insertion_point(serialize_end:diplomacy.tensorflow.Features) } ::google::protobuf::uint8* Features::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:diplomacy.tensorflow.Features) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // map<string, .diplomacy.tensorflow.Feature> feature = 1; if (!this->feature().empty()) { typedef ::google::protobuf::Map< ::std::string, ::diplomacy::tensorflow::Feature >::const_pointer ConstPtr; typedef ConstPtr SortItem; typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; struct Utf8Check { static void Check(ConstPtr p) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( p->first.data(), static_cast<int>(p->first.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "diplomacy.tensorflow.Features.FeatureEntry.key"); } }; if (deterministic && this->feature().size() > 1) { ::std::unique_ptr<SortItem[]> items( new SortItem[this->feature().size()]); typedef ::google::protobuf::Map< ::std::string, ::diplomacy::tensorflow::Feature >::size_type size_type; size_type n = 0; for (::google::protobuf::Map< ::std::string, ::diplomacy::tensorflow::Feature >::const_iterator it = this->feature().begin(); it != this->feature().end(); ++it, ++n) { items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); } ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); ::std::unique_ptr<Features_FeatureEntry_DoNotUse> entry; for (size_type i = 0; i < n; i++) { entry.reset(feature_.NewEntryWrapper( items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second)); target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 1, *entry, deterministic, target); ; if (entry->GetArena() != NULL) { entry.release(); } Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]); } } else { ::std::unique_ptr<Features_FeatureEntry_DoNotUse> entry; for (::google::protobuf::Map< ::std::string, ::diplomacy::tensorflow::Feature >::const_iterator it = this->feature().begin(); it != this->feature().end(); ++it) { entry.reset(feature_.NewEntryWrapper( it->first, it->second)); target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 1, *entry, deterministic, target); ; if (entry->GetArena() != NULL) { entry.release(); } Utf8Check::Check(&*it); } } } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); } // @@protoc_insertion_point(serialize_to_array_end:diplomacy.tensorflow.Features) return target; } size_t Features::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:diplomacy.tensorflow.Features) size_t total_size = 0; if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } // map<string, .diplomacy.tensorflow.Feature> feature = 1; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->feature_size()); { ::std::unique_ptr<Features_FeatureEntry_DoNotUse> entry; for (::google::protobuf::Map< ::std::string, ::diplomacy::tensorflow::Feature >::const_iterator it = this->feature().begin(); it != this->feature().end(); ++it) { if (entry.get() != NULL && entry->GetArena() != NULL) { entry.release(); } entry.reset(feature_.NewEntryWrapper(it->first, it->second)); total_size += ::google::protobuf::internal::WireFormatLite:: MessageSizeNoVirtual(*entry); } if (entry.get() != NULL && entry->GetArena() != NULL) { entry.release(); } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void Features::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:diplomacy.tensorflow.Features) GOOGLE_DCHECK_NE(&from, this); const Features* source = ::google::protobuf::internal::DynamicCastToGenerated<const Features>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:diplomacy.tensorflow.Features) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:diplomacy.tensorflow.Features) MergeFrom(*source); } } void Features::MergeFrom(const Features& from) { // @@protoc_insertion_point(class_specific_merge_from_start:diplomacy.tensorflow.Features) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; feature_.MergeFrom(from.feature_); } void Features::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:diplomacy.tensorflow.Features) if (&from == this) return; Clear(); MergeFrom(from); } void Features::CopyFrom(const Features& from) { // @@protoc_insertion_point(class_specific_copy_from_start:diplomacy.tensorflow.Features) if (&from == this) return; Clear(); MergeFrom(from); } bool Features::IsInitialized() const { return true; } void Features::Swap(Features* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { Features* temp = New(GetArenaNoVirtual()); temp->MergeFrom(*other); other->CopyFrom(*this); InternalSwap(temp); if (GetArenaNoVirtual() == NULL) { delete temp; } } } void Features::UnsafeArenaSwap(Features* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void Features::InternalSwap(Features* other) { using std::swap; feature_.Swap(&other->feature_); _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata Features::GetMetadata() const { protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void FeatureList::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int FeatureList::kFeatureFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 FeatureList::FeatureList() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::google::protobuf::internal::InitSCC( &protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_FeatureList.base); SharedCtor(); // @@protoc_insertion_point(constructor:diplomacy.tensorflow.FeatureList) } FeatureList::FeatureList(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), feature_(arena) { ::google::protobuf::internal::InitSCC(&protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_FeatureList.base); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:diplomacy.tensorflow.FeatureList) } FeatureList::FeatureList(const FeatureList& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), feature_(from.feature_) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:diplomacy.tensorflow.FeatureList) } void FeatureList::SharedCtor() { } FeatureList::~FeatureList() { // @@protoc_insertion_point(destructor:diplomacy.tensorflow.FeatureList) SharedDtor(); } void FeatureList::SharedDtor() { GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); } void FeatureList::ArenaDtor(void* object) { FeatureList* _this = reinterpret_cast< FeatureList* >(object); (void)_this; } void FeatureList::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void FeatureList::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* FeatureList::descriptor() { ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const FeatureList& FeatureList::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_FeatureList.base); return *internal_default_instance(); } void FeatureList::Clear() { // @@protoc_insertion_point(message_clear_start:diplomacy.tensorflow.FeatureList) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; feature_.Clear(); _internal_metadata_.Clear(); } bool FeatureList::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:diplomacy.tensorflow.FeatureList) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // repeated .diplomacy.tensorflow.Feature feature = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, add_feature())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:diplomacy.tensorflow.FeatureList) return true; failure: // @@protoc_insertion_point(parse_failure:diplomacy.tensorflow.FeatureList) return false; #undef DO_ } void FeatureList::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:diplomacy.tensorflow.FeatureList) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated .diplomacy.tensorflow.Feature feature = 1; for (unsigned int i = 0, n = static_cast<unsigned int>(this->feature_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, this->feature(static_cast<int>(i)), output); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); } // @@protoc_insertion_point(serialize_end:diplomacy.tensorflow.FeatureList) } ::google::protobuf::uint8* FeatureList::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:diplomacy.tensorflow.FeatureList) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // repeated .diplomacy.tensorflow.Feature feature = 1; for (unsigned int i = 0, n = static_cast<unsigned int>(this->feature_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, this->feature(static_cast<int>(i)), deterministic, target); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); } // @@protoc_insertion_point(serialize_to_array_end:diplomacy.tensorflow.FeatureList) return target; } size_t FeatureList::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:diplomacy.tensorflow.FeatureList) size_t total_size = 0; if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } // repeated .diplomacy.tensorflow.Feature feature = 1; { unsigned int count = static_cast<unsigned int>(this->feature_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize( this->feature(static_cast<int>(i))); } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void FeatureList::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:diplomacy.tensorflow.FeatureList) GOOGLE_DCHECK_NE(&from, this); const FeatureList* source = ::google::protobuf::internal::DynamicCastToGenerated<const FeatureList>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:diplomacy.tensorflow.FeatureList) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:diplomacy.tensorflow.FeatureList) MergeFrom(*source); } } void FeatureList::MergeFrom(const FeatureList& from) { // @@protoc_insertion_point(class_specific_merge_from_start:diplomacy.tensorflow.FeatureList) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; feature_.MergeFrom(from.feature_); } void FeatureList::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:diplomacy.tensorflow.FeatureList) if (&from == this) return; Clear(); MergeFrom(from); } void FeatureList::CopyFrom(const FeatureList& from) { // @@protoc_insertion_point(class_specific_copy_from_start:diplomacy.tensorflow.FeatureList) if (&from == this) return; Clear(); MergeFrom(from); } bool FeatureList::IsInitialized() const { return true; } void FeatureList::Swap(FeatureList* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { FeatureList* temp = New(GetArenaNoVirtual()); temp->MergeFrom(*other); other->CopyFrom(*this); InternalSwap(temp); if (GetArenaNoVirtual() == NULL) { delete temp; } } } void FeatureList::UnsafeArenaSwap(FeatureList* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void FeatureList::InternalSwap(FeatureList* other) { using std::swap; CastToBase(&feature_)->InternalSwap(CastToBase(&other->feature_)); _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata FeatureList::GetMetadata() const { protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== FeatureLists_FeatureListEntry_DoNotUse::FeatureLists_FeatureListEntry_DoNotUse() {} FeatureLists_FeatureListEntry_DoNotUse::FeatureLists_FeatureListEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} void FeatureLists_FeatureListEntry_DoNotUse::MergeFrom(const FeatureLists_FeatureListEntry_DoNotUse& other) { MergeFromInternal(other); } ::google::protobuf::Metadata FeatureLists_FeatureListEntry_DoNotUse::GetMetadata() const { ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::file_level_metadata[7]; } void FeatureLists_FeatureListEntry_DoNotUse::MergeFrom( const ::google::protobuf::Message& other) { ::google::protobuf::Message::MergeFrom(other); } // =================================================================== void FeatureLists::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int FeatureLists::kFeatureListFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 FeatureLists::FeatureLists() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::google::protobuf::internal::InitSCC( &protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_FeatureLists.base); SharedCtor(); // @@protoc_insertion_point(constructor:diplomacy.tensorflow.FeatureLists) } FeatureLists::FeatureLists(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena), feature_list_(arena) { ::google::protobuf::internal::InitSCC(&protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_FeatureLists.base); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:diplomacy.tensorflow.FeatureLists) } FeatureLists::FeatureLists(const FeatureLists& from) : ::google::protobuf::Message(), _internal_metadata_(NULL) { _internal_metadata_.MergeFrom(from._internal_metadata_); feature_list_.MergeFrom(from.feature_list_); // @@protoc_insertion_point(copy_constructor:diplomacy.tensorflow.FeatureLists) } void FeatureLists::SharedCtor() { } FeatureLists::~FeatureLists() { // @@protoc_insertion_point(destructor:diplomacy.tensorflow.FeatureLists) SharedDtor(); } void FeatureLists::SharedDtor() { GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); } void FeatureLists::ArenaDtor(void* object) { FeatureLists* _this = reinterpret_cast< FeatureLists* >(object); (void)_this; } void FeatureLists::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void FeatureLists::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* FeatureLists::descriptor() { ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const FeatureLists& FeatureLists::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::scc_info_FeatureLists.base); return *internal_default_instance(); } void FeatureLists::Clear() { // @@protoc_insertion_point(message_clear_start:diplomacy.tensorflow.FeatureLists) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; feature_list_.Clear(); _internal_metadata_.Clear(); } bool FeatureLists::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:diplomacy.tensorflow.FeatureLists) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // map<string, .diplomacy.tensorflow.FeatureList> feature_list = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { FeatureLists_FeatureListEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< FeatureLists_FeatureListEntry_DoNotUse, ::std::string, ::diplomacy::tensorflow::FeatureList, ::google::protobuf::internal::WireFormatLite::TYPE_STRING, ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 0 >, ::google::protobuf::Map< ::std::string, ::diplomacy::tensorflow::FeatureList > > parser(&feature_list_); DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, &parser)); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( parser.key().data(), static_cast<int>(parser.key().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "diplomacy.tensorflow.FeatureLists.FeatureListEntry.key")); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:diplomacy.tensorflow.FeatureLists) return true; failure: // @@protoc_insertion_point(parse_failure:diplomacy.tensorflow.FeatureLists) return false; #undef DO_ } void FeatureLists::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:diplomacy.tensorflow.FeatureLists) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // map<string, .diplomacy.tensorflow.FeatureList> feature_list = 1; if (!this->feature_list().empty()) { typedef ::google::protobuf::Map< ::std::string, ::diplomacy::tensorflow::FeatureList >::const_pointer ConstPtr; typedef ConstPtr SortItem; typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; struct Utf8Check { static void Check(ConstPtr p) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( p->first.data(), static_cast<int>(p->first.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "diplomacy.tensorflow.FeatureLists.FeatureListEntry.key"); } }; if (output->IsSerializationDeterministic() && this->feature_list().size() > 1) { ::std::unique_ptr<SortItem[]> items( new SortItem[this->feature_list().size()]); typedef ::google::protobuf::Map< ::std::string, ::diplomacy::tensorflow::FeatureList >::size_type size_type; size_type n = 0; for (::google::protobuf::Map< ::std::string, ::diplomacy::tensorflow::FeatureList >::const_iterator it = this->feature_list().begin(); it != this->feature_list().end(); ++it, ++n) { items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); } ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); ::std::unique_ptr<FeatureLists_FeatureListEntry_DoNotUse> entry; for (size_type i = 0; i < n; i++) { entry.reset(feature_list_.NewEntryWrapper( items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second)); ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *entry, output); if (entry->GetArena() != NULL) { entry.release(); } Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]); } } else { ::std::unique_ptr<FeatureLists_FeatureListEntry_DoNotUse> entry; for (::google::protobuf::Map< ::std::string, ::diplomacy::tensorflow::FeatureList >::const_iterator it = this->feature_list().begin(); it != this->feature_list().end(); ++it) { entry.reset(feature_list_.NewEntryWrapper( it->first, it->second)); ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, *entry, output); if (entry->GetArena() != NULL) { entry.release(); } Utf8Check::Check(&*it); } } } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); } // @@protoc_insertion_point(serialize_end:diplomacy.tensorflow.FeatureLists) } ::google::protobuf::uint8* FeatureLists::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:diplomacy.tensorflow.FeatureLists) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // map<string, .diplomacy.tensorflow.FeatureList> feature_list = 1; if (!this->feature_list().empty()) { typedef ::google::protobuf::Map< ::std::string, ::diplomacy::tensorflow::FeatureList >::const_pointer ConstPtr; typedef ConstPtr SortItem; typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; struct Utf8Check { static void Check(ConstPtr p) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( p->first.data(), static_cast<int>(p->first.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "diplomacy.tensorflow.FeatureLists.FeatureListEntry.key"); } }; if (deterministic && this->feature_list().size() > 1) { ::std::unique_ptr<SortItem[]> items( new SortItem[this->feature_list().size()]); typedef ::google::protobuf::Map< ::std::string, ::diplomacy::tensorflow::FeatureList >::size_type size_type; size_type n = 0; for (::google::protobuf::Map< ::std::string, ::diplomacy::tensorflow::FeatureList >::const_iterator it = this->feature_list().begin(); it != this->feature_list().end(); ++it, ++n) { items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); } ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); ::std::unique_ptr<FeatureLists_FeatureListEntry_DoNotUse> entry; for (size_type i = 0; i < n; i++) { entry.reset(feature_list_.NewEntryWrapper( items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second)); target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 1, *entry, deterministic, target); ; if (entry->GetArena() != NULL) { entry.release(); } Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]); } } else { ::std::unique_ptr<FeatureLists_FeatureListEntry_DoNotUse> entry; for (::google::protobuf::Map< ::std::string, ::diplomacy::tensorflow::FeatureList >::const_iterator it = this->feature_list().begin(); it != this->feature_list().end(); ++it) { entry.reset(feature_list_.NewEntryWrapper( it->first, it->second)); target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 1, *entry, deterministic, target); ; if (entry->GetArena() != NULL) { entry.release(); } Utf8Check::Check(&*it); } } } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); } // @@protoc_insertion_point(serialize_to_array_end:diplomacy.tensorflow.FeatureLists) return target; } size_t FeatureLists::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:diplomacy.tensorflow.FeatureLists) size_t total_size = 0; if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } // map<string, .diplomacy.tensorflow.FeatureList> feature_list = 1; total_size += 1 * ::google::protobuf::internal::FromIntSize(this->feature_list_size()); { ::std::unique_ptr<FeatureLists_FeatureListEntry_DoNotUse> entry; for (::google::protobuf::Map< ::std::string, ::diplomacy::tensorflow::FeatureList >::const_iterator it = this->feature_list().begin(); it != this->feature_list().end(); ++it) { if (entry.get() != NULL && entry->GetArena() != NULL) { entry.release(); } entry.reset(feature_list_.NewEntryWrapper(it->first, it->second)); total_size += ::google::protobuf::internal::WireFormatLite:: MessageSizeNoVirtual(*entry); } if (entry.get() != NULL && entry->GetArena() != NULL) { entry.release(); } } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void FeatureLists::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:diplomacy.tensorflow.FeatureLists) GOOGLE_DCHECK_NE(&from, this); const FeatureLists* source = ::google::protobuf::internal::DynamicCastToGenerated<const FeatureLists>( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:diplomacy.tensorflow.FeatureLists) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:diplomacy.tensorflow.FeatureLists) MergeFrom(*source); } } void FeatureLists::MergeFrom(const FeatureLists& from) { // @@protoc_insertion_point(class_specific_merge_from_start:diplomacy.tensorflow.FeatureLists) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; feature_list_.MergeFrom(from.feature_list_); } void FeatureLists::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:diplomacy.tensorflow.FeatureLists) if (&from == this) return; Clear(); MergeFrom(from); } void FeatureLists::CopyFrom(const FeatureLists& from) { // @@protoc_insertion_point(class_specific_copy_from_start:diplomacy.tensorflow.FeatureLists) if (&from == this) return; Clear(); MergeFrom(from); } bool FeatureLists::IsInitialized() const { return true; } void FeatureLists::Swap(FeatureLists* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { FeatureLists* temp = New(GetArenaNoVirtual()); temp->MergeFrom(*other); other->CopyFrom(*this); InternalSwap(temp); if (GetArenaNoVirtual() == NULL) { delete temp; } } } void FeatureLists::UnsafeArenaSwap(FeatureLists* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void FeatureLists::InternalSwap(FeatureLists* other) { using std::swap; feature_list_.Swap(&other->feature_list_); _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata FeatureLists::GetMetadata() const { protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_diplomacy_5ftensorflow_2fcore_2fexample_2ffeature_2eproto::file_level_metadata[kIndexInFileMessages]; } // @@protoc_insertion_point(namespace_scope) } // namespace tensorflow } // namespace diplomacy namespace google { namespace protobuf { template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::diplomacy::tensorflow::BytesList* Arena::CreateMaybeMessage< ::diplomacy::tensorflow::BytesList >(Arena* arena) { return Arena::CreateMessageInternal< ::diplomacy::tensorflow::BytesList >(arena); } template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::diplomacy::tensorflow::FloatList* Arena::CreateMaybeMessage< ::diplomacy::tensorflow::FloatList >(Arena* arena) { return Arena::CreateMessageInternal< ::diplomacy::tensorflow::FloatList >(arena); } template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::diplomacy::tensorflow::Int64List* Arena::CreateMaybeMessage< ::diplomacy::tensorflow::Int64List >(Arena* arena) { return Arena::CreateMessageInternal< ::diplomacy::tensorflow::Int64List >(arena); } template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::diplomacy::tensorflow::Feature* Arena::CreateMaybeMessage< ::diplomacy::tensorflow::Feature >(Arena* arena) { return Arena::CreateMessageInternal< ::diplomacy::tensorflow::Feature >(arena); } template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::diplomacy::tensorflow::Features_FeatureEntry_DoNotUse* Arena::CreateMaybeMessage< ::diplomacy::tensorflow::Features_FeatureEntry_DoNotUse >(Arena* arena) { return Arena::CreateMessageInternal< ::diplomacy::tensorflow::Features_FeatureEntry_DoNotUse >(arena); } template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::diplomacy::tensorflow::Features* Arena::CreateMaybeMessage< ::diplomacy::tensorflow::Features >(Arena* arena) { return Arena::CreateMessageInternal< ::diplomacy::tensorflow::Features >(arena); } template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::diplomacy::tensorflow::FeatureList* Arena::CreateMaybeMessage< ::diplomacy::tensorflow::FeatureList >(Arena* arena) { return Arena::CreateMessageInternal< ::diplomacy::tensorflow::FeatureList >(arena); } template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::diplomacy::tensorflow::FeatureLists_FeatureListEntry_DoNotUse* Arena::CreateMaybeMessage< ::diplomacy::tensorflow::FeatureLists_FeatureListEntry_DoNotUse >(Arena* arena) { return Arena::CreateMessageInternal< ::diplomacy::tensorflow::FeatureLists_FeatureListEntry_DoNotUse >(arena); } template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::diplomacy::tensorflow::FeatureLists* Arena::CreateMaybeMessage< ::diplomacy::tensorflow::FeatureLists >(Arena* arena) { return Arena::CreateMessageInternal< ::diplomacy::tensorflow::FeatureLists >(arena); } } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope)
Java
require 'spec_helper' require 'gitnesse/cli' module Gitnesse describe Cli, type: :cli do let(:help) do <<-EOS USAGE: gitnesse push Pushes local features to remote git-based wiki Pushes the local features files to the remote git-based wiki, creating/updating wiki pages as necessary. Examples: gitnesse push # will push local features to remote wiki EOS end it "has help info" do expect(gitnesse("help push")).to eq help end end end
Java
// // This file is auto-generated. Please don't modify it! // package org.opencv.objdetect; import org.opencv.core.Mat; import org.opencv.core.MatOfDouble; import org.opencv.core.MatOfInt; import org.opencv.core.MatOfRect; import org.opencv.core.Size; // C++: class CascadeClassifier //javadoc: CascadeClassifier public class CascadeClassifier { protected final long nativeObj; protected CascadeClassifier(long addr) { nativeObj = addr; } // // C++: CascadeClassifier() // //javadoc: CascadeClassifier::CascadeClassifier() public CascadeClassifier() { nativeObj = CascadeClassifier_0(); return; } // // C++: CascadeClassifier(String filename) // //javadoc: CascadeClassifier::CascadeClassifier(filename) public CascadeClassifier(String filename) { nativeObj = CascadeClassifier_1(filename); return; } // // C++: bool load(String filename) // //javadoc: CascadeClassifier::convert(oldcascade, newcascade) public static boolean convert(String oldcascade, String newcascade) { boolean retVal = convert_0(oldcascade, newcascade); return retVal; } // // C++: bool empty() // // C++: CascadeClassifier() private static native long CascadeClassifier_0(); // // C++: bool read(FileNode node) // // Unknown type 'FileNode' (I), skipping the function // // C++: void detectMultiScale(Mat image, vector_Rect& objects, double scaleFactor = 1.1, int minNeighbors = 3, int flags = 0, Size minSize = Size(), Size maxSize = Size()) // // C++: CascadeClassifier(String filename) private static native long CascadeClassifier_1(String filename); // C++: bool load(String filename) private static native boolean load_0(long nativeObj, String filename); // // C++: void detectMultiScale(Mat image, vector_Rect& objects, vector_int& numDetections, double scaleFactor = 1.1, int minNeighbors = 3, int flags = 0, Size minSize = Size(), Size maxSize = Size()) // // C++: bool empty() private static native boolean empty_0(long nativeObj); // C++: void detectMultiScale(Mat image, vector_Rect& objects, double scaleFactor = 1.1, int minNeighbors = 3, int flags = 0, Size minSize = Size(), Size maxSize = Size()) private static native void detectMultiScale_0(long nativeObj, long image_nativeObj, long objects_mat_nativeObj, double scaleFactor, int minNeighbors, int flags, double minSize_width, double minSize_height, double maxSize_width, double maxSize_height); // // C++: void detectMultiScale(Mat image, vector_Rect& objects, vector_int& rejectLevels, vector_double& levelWeights, double scaleFactor = 1.1, int minNeighbors = 3, int flags = 0, Size minSize = Size(), Size maxSize = Size(), bool outputRejectLevels = false) // private static native void detectMultiScale_1(long nativeObj, long image_nativeObj, long objects_mat_nativeObj); // C++: void detectMultiScale(Mat image, vector_Rect& objects, vector_int& numDetections, double scaleFactor = 1.1, int minNeighbors = 3, int flags = 0, Size minSize = Size(), Size maxSize = Size()) private static native void detectMultiScale2_0(long nativeObj, long image_nativeObj, long objects_mat_nativeObj, long numDetections_mat_nativeObj, double scaleFactor, int minNeighbors, int flags, double minSize_width, double minSize_height, double maxSize_width, double maxSize_height); // // C++: bool isOldFormatCascade() // private static native void detectMultiScale2_1(long nativeObj, long image_nativeObj, long objects_mat_nativeObj, long numDetections_mat_nativeObj); // // C++: Size getOriginalWindowSize() // // C++: void detectMultiScale(Mat image, vector_Rect& objects, vector_int& rejectLevels, vector_double& levelWeights, double scaleFactor = 1.1, int minNeighbors = 3, int flags = 0, Size minSize = Size(), Size maxSize = Size(), bool outputRejectLevels = false) private static native void detectMultiScale3_0(long nativeObj, long image_nativeObj, long objects_mat_nativeObj, long rejectLevels_mat_nativeObj, long levelWeights_mat_nativeObj, double scaleFactor, int minNeighbors, int flags, double minSize_width, double minSize_height, double maxSize_width, double maxSize_height, boolean outputRejectLevels); // // C++: int getFeatureType() // private static native void detectMultiScale3_1(long nativeObj, long image_nativeObj, long objects_mat_nativeObj, long rejectLevels_mat_nativeObj, long levelWeights_mat_nativeObj); // // C++: static bool convert(String oldcascade, String newcascade) // // C++: bool isOldFormatCascade() private static native boolean isOldFormatCascade_0(long nativeObj); // C++: Size getOriginalWindowSize() private static native double[] getOriginalWindowSize_0(long nativeObj); // C++: int getFeatureType() private static native int getFeatureType_0(long nativeObj); // C++: static bool convert(String oldcascade, String newcascade) private static native boolean convert_0(String oldcascade, String newcascade); // native support for java finalize() private static native void delete(long nativeObj); //javadoc: CascadeClassifier::load(filename) public boolean load(String filename) { boolean retVal = load_0(nativeObj, filename); return retVal; } //javadoc: CascadeClassifier::empty() public boolean empty() { boolean retVal = empty_0(nativeObj); return retVal; } //javadoc: CascadeClassifier::detectMultiScale(image, objects, scaleFactor, minNeighbors, flags, minSize, maxSize) public void detectMultiScale(Mat image, MatOfRect objects, double scaleFactor, int minNeighbors, int flags, Size minSize, Size maxSize) { Mat objects_mat = objects; detectMultiScale_0(nativeObj, image.nativeObj, objects_mat.nativeObj, scaleFactor, minNeighbors, flags, minSize.width, minSize.height, maxSize.width, maxSize.height); return; } //javadoc: CascadeClassifier::detectMultiScale(image, objects) public void detectMultiScale(Mat image, MatOfRect objects) { Mat objects_mat = objects; detectMultiScale_1(nativeObj, image.nativeObj, objects_mat.nativeObj); return; } //javadoc: CascadeClassifier::detectMultiScale(image, objects, numDetections, scaleFactor, minNeighbors, flags, minSize, maxSize) public void detectMultiScale2(Mat image, MatOfRect objects, MatOfInt numDetections, double scaleFactor, int minNeighbors, int flags, Size minSize, Size maxSize) { Mat objects_mat = objects; Mat numDetections_mat = numDetections; detectMultiScale2_0(nativeObj, image.nativeObj, objects_mat.nativeObj, numDetections_mat.nativeObj, scaleFactor, minNeighbors, flags, minSize.width, minSize.height, maxSize.width, maxSize.height); return; } //javadoc: CascadeClassifier::detectMultiScale(image, objects, numDetections) public void detectMultiScale2(Mat image, MatOfRect objects, MatOfInt numDetections) { Mat objects_mat = objects; Mat numDetections_mat = numDetections; detectMultiScale2_1(nativeObj, image.nativeObj, objects_mat.nativeObj, numDetections_mat.nativeObj); return; } //javadoc: CascadeClassifier::detectMultiScale(image, objects, rejectLevels, levelWeights, scaleFactor, minNeighbors, flags, minSize, maxSize, outputRejectLevels) public void detectMultiScale3(Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights, double scaleFactor, int minNeighbors, int flags, Size minSize, Size maxSize, boolean outputRejectLevels) { Mat objects_mat = objects; Mat rejectLevels_mat = rejectLevels; Mat levelWeights_mat = levelWeights; detectMultiScale3_0(nativeObj, image.nativeObj, objects_mat.nativeObj, rejectLevels_mat.nativeObj, levelWeights_mat.nativeObj, scaleFactor, minNeighbors, flags, minSize.width, minSize.height, maxSize.width, maxSize.height, outputRejectLevels); return; } //javadoc: CascadeClassifier::detectMultiScale(image, objects, rejectLevels, levelWeights) public void detectMultiScale3(Mat image, MatOfRect objects, MatOfInt rejectLevels, MatOfDouble levelWeights) { Mat objects_mat = objects; Mat rejectLevels_mat = rejectLevels; Mat levelWeights_mat = levelWeights; detectMultiScale3_1(nativeObj, image.nativeObj, objects_mat.nativeObj, rejectLevels_mat.nativeObj, levelWeights_mat.nativeObj); return; } //javadoc: CascadeClassifier::isOldFormatCascade() public boolean isOldFormatCascade() { boolean retVal = isOldFormatCascade_0(nativeObj); return retVal; } //javadoc: CascadeClassifier::getOriginalWindowSize() public Size getOriginalWindowSize() { Size retVal = new Size(getOriginalWindowSize_0(nativeObj)); return retVal; } //javadoc: CascadeClassifier::getFeatureType() public int getFeatureType() { int retVal = getFeatureType_0(nativeObj); return retVal; } @Override protected void finalize() throws Throwable { delete(nativeObj); } }
Java
package GlidersGrid; import java.util.Iterator; import repast.simphony.context.Context; import repast.simphony.engine.schedule.ScheduledMethod; import repast.simphony.query.space.grid.MooreQuery; import repast.simphony.space.grid.Grid; import repast.simphony.space.grid.GridPoint; import repast.simphony.util.ContextUtils; public class Dead { private Grid<Object> grid; private int state; public Dead(Grid<Object> grid) { this.grid = grid; } // calculate the state for the next time tick for dead cells @ScheduledMethod(start = 1, interval = 1, priority = 4) public void step1() { MooreQuery<Dead> query = new MooreQuery(grid, this); int neighbours = 0; for (Object o : query.query()) { if (o instanceof Living) { neighbours++; if (neighbours ==3) { } } } if (neighbours == 3) { state = 1; } else { state = 0; } } // visualise the change into the underlay and grid @ScheduledMethod(start = 1, interval = 1, priority = 1) public void step2() { if (state == 1) { GridPoint gpt = grid.getLocation(this); Context<Object> context = ContextUtils.getContext(this); context.remove(this); Living livingCell = new Living(grid); context.add(livingCell); grid.moveTo(livingCell, gpt.getX(), gpt.getY()); context.add(livingCell); } } }
Java
#ifndef LM75_H_ #define LM75_H_ /******************************************************************************/ /** \file Lm75.h ******************************************************************************* * * \brief This module allows to read the temperature of an attached lm75 * device. * <p> * The LM75A is an industry-standard digital temperature sensor * with an integrated Sigma-Delta analog-to-digital converter and * I2C interface. The LM75A provides 9-bit digital temperature * readings with an accuracy of +/-2°C from -25°C to 100°C and * +/-3°C over -55°C to 125°C. The temperature data output of the * LM75 is available at all times via the I2C bus. * * \author wht4 * ******************************************************************************/ /* * function readTempLm75 * ******************************************************************************/ //----- Header-Files ----------------------------------------------------------- #include <stdint.h> #include "BBBTypes.h" //----- Macros ----------------------------------------------------------------- #define LM75_DEVICE "/dev/i2c-1" #define LM75_ADDR ( 0x48 ) //----- Data types ------------------------------------------------------------- //----- Function prototypes ---------------------------------------------------- extern BBBError readTempLm75(int32_t *ps32Temp); //----- Data ------------------------------------------------------------------- #endif /* LM75_H_ */
Java
#region Copyright (c) 2009 S. van Deursen /* The CuttingEdge.Conditions library enables developers to validate pre- and postconditions in a fluent * manner. * * To contact me, please visit my blog at http://www.cuttingedge.it/blogs/steven/ * * Copyright (c) 2009 S. van Deursen * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and * associated documentation files (the "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the * following conditions: * * The above copyright notice and this permission notice shall be included in all copies or substantial * portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT * LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO * EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE * USE OR OTHER DEALINGS IN THE SOFTWARE. */ #endregion using System; using System.ComponentModel; namespace CuttingEdge.Conditions { /// <summary> /// The RequiresValidator can be used for precondition checks. /// </summary> /// <typeparam name="T">The type of the argument to be validated</typeparam> internal class RequiresValidator<T> : ConditionValidator<T> { internal RequiresValidator(string argumentName, T value) : base(argumentName, value) { } internal virtual Exception BuildExceptionBasedOnViolationType(ConstraintViolationType type, string message) { switch (type) { case ConstraintViolationType.OutOfRangeViolation: return new ArgumentOutOfRangeException(this.ArgumentName, message); case ConstraintViolationType.InvalidEnumViolation: string enumMessage = this.BuildInvalidEnumArgumentExceptionMessage(message); return new InvalidEnumArgumentException(enumMessage); default: if (this.Value != null) { return new ArgumentException(message, this.ArgumentName); } else { return new ArgumentNullException(this.ArgumentName, message); } } } /// <summary>Throws an exception.</summary> /// <param name="condition">Describes the condition that doesn't hold, e.g., "Value should not be /// null".</param> /// <param name="additionalMessage">An additional message that will be appended to the exception /// message, e.g. "The actual value is 3.". This value may be null or empty.</param> /// <param name="type">Gives extra information on the exception type that must be build. The actual /// implementation of the validator may ignore some or all values.</param> protected override void ThrowExceptionCore(string condition, string additionalMessage, ConstraintViolationType type) { string message = BuildExceptionMessage(condition, additionalMessage); Exception exceptionToThrow = this.BuildExceptionBasedOnViolationType(type, message); throw exceptionToThrow; } private static string BuildExceptionMessage(string condition, string additionalMessage) { if (!String.IsNullOrEmpty(additionalMessage)) { return condition + ". " + additionalMessage; } else { return condition + "."; } } private string BuildInvalidEnumArgumentExceptionMessage(string message) { ArgumentException argumentException = new ArgumentException(message, this.ArgumentName); // Returns the message formatted according to the current culture. // Note that the 'Parameter name' part of the message is culture sensitive. return argumentException.Message; } } }
Java
(function(){ 'use strict'; function ListService($http){ this.getList = function(list_id){ return $http.get('/lists/' + list_id + ".json") } } ListService.$inject = ['$http'] angular .module('app') .service('ListService', ListService) }())
Java
angular.module('movieApp') .directive('movieResult', function () { var directive = { restrict: 'E', replace: true, scope: { result: '=result' }, template: [ '<div class="row">', '<div class="col-sm-4">', '<img ng-src="{{result.Poster}}" alt="{{result.Title}}" width="220px">', '</div>', '<div class="col-sm-8">', '<h3>{{result.Title}}</h3>', '<p>{{result.Plot}}</p>', '<p><strong>Director:</strong> {{result.Director}}</p>', '<p><strong>Actors:</strong> {{result.Actors}}</p>', '<p><strong>Released:</strong> {{result.Released}} ({{result.Released | fromNow}})</p>', '<p><strong>Genre:</strong> {{result.Genre}}</p>', '</div>', '</div>' ].join('') }; return directive; });
Java
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="flayoutclass"><div class="flayoutclass_first"><table class="tableoutfmt2"><tr><th class="std1"><b>條目&nbsp;</b></th><td class="std2">博學洽聞</td></tr> <tr><th class="std1"><b>注音&nbsp;</b></th><td class="std2">ㄅㄛ<sup class="subfont">ˊ</sup> ㄒㄩㄝ<sup class="subfont">ˊ</sup> ㄑ|ㄚ<sup class="subfont">ˋ</sup> ㄨㄣ<sup class="subfont">ˊ</sup> (又音)ㄅㄛ<sup class="subfont">ˊ</sup> ㄒㄩㄝ<sup class="subfont">ˊ</sup> ㄒ|ㄚ<sup class="subfont">ˊ</sup> ㄨㄣ</td></tr> <tr><th class="std1"><b>漢語拼音&nbsp;</b></th><td class="std2"><font class="english_word">bó xué qià wén bó xué xiá wēn</font></td></tr> <tr><th class="std1"><b>釋義&nbsp;</b></th><td class="std2">學問廣博,見識豐富。晉書˙卷三十九˙荀顗傳:<img src=/cydic/dicword/fa40.gif border=0 alt=* class=fontimg valign=center>性至孝,總角知名,博學洽聞,理思周密。<img src=/cydic/dicword/fa41.gif border=0 alt=* class=fontimg valign=center>亦作<img src=/cydic/dicword/fa40.gif border=0 alt=* class=fontimg valign=center>博學多聞<img src=/cydic/dicword/fa41.gif border=0 alt=* class=fontimg valign=center>。</td></tr> <tr><th class="std1"><b><font class="fltypefont">附錄</font>&nbsp;</b></th><td class="std2">修訂本參考資料</td></tr> </td></tr></table></div> <!-- flayoutclass_first --><div class="flayoutclass_second"></div> <!-- flayoutclass_second --></div> <!-- flayoutclass --></td></tr></table>
Java
#include<stdio.h> #include<math.h> #include<conio.h> #include<ctype.h> int i,j,cash=100; void wheel(); void game(int r); void game_over(); int suit_bet(); int cash_bet(); int roll_wheel(); int roll_dice(); void wheel_count(int c,int h,int s); void dice_count(int d,int h); int w[9][9]={ {32,32,32,32,2,32,32,32,32}, {32,32,32,3,5,4,32,32,32}, {32,32,5,4,3,6,5,32,32}, {32,4,3,6,5,3,4,6,32}, {2,6,5,4,15,5,3,6,2}, {32,3,6,3,4,5,4,3,32}, {32,32,5,6,3,4,5,32,32}, {32,32,32,4,6,6,32,32,32}, {32,32,32,32,2,32,32,32,32} }; void main(){ int round; char e; //game intro printf("\t\t\tWelcome to Roullette\n\n"); //game instruction printf("Game Instructions:\n\n"); printf("Diamond(d)=%c Hearts(h)=%c Clubs(c)=%c Spades(s)=%c Jack(j)=%c Bull's Eye=%c \n",4,3,5,6,2,15); printf("\n-The game starts with $100 \n-You chooses how many rounds to play \n-Then bet with cash on Suits,Jack and Null spaces of the wheel on which the dice will hit \n-A dice is thrown \n-If the dice hits the betting suit then you earn the betting cash.\n"); printf("-If the dice hits suits other than the betting one then you lose $10\n"); printf("-If it hits any of the Null spaces which is not bet then you lose bet cash \n"); printf("-If it hits the Jack which is bet then you earn the beting cash + $100 otherwise you earn only the bet cash \n"); printf("-Your cash is doubled if you hit the Bull's Eye \n"); printf("\n\n"); printf("Press Enter to Start Game"); scanf("%c",&e); if(e=='\n'){ printf("\nThe Roullette Wheel: \n\n"); wheel(); printf("\n\nYour Cash: $%d",cash); printf("\n\nHow many rounds you want to play: "); scanf("%d",&round); printf("\n\nYour Cash : $%d \n",cash); game(round); printf("\n\n"); printf("\t %d rounds completed!! \n\n\tYou Earned Total $%d !!\n\n",round,cash); } else{ printf("\nSorry!!\nYou Entered The Wrong Key!!\n"); } } //game on void game(int r){ int count; for(count=1;count<=r;count++){ int suit,ca,hit,dice; fflush(stdin); suit=suit_bet(); ca=cash_bet(); hit=roll_wheel(); dice=roll_dice(); wheel_count(ca,hit,suit); dice_count(dice,hit); printf("\n"); wheel(); printf("\n\nCash: $%d \nSuit Bet: %c \nCash Bet: $%d \nWheel Hit: %c \nDice: %d\n\n\n",cash,suit,ca,hit,dice); } } //show wheel void wheel(){ for(i=0;i<9;i++){ for(j=0;j<9;j++){ printf("%c ",w[i][j]); } printf("\n"); } } //betting on suit int suit_bet(){ char s; int k; printf("Suit Bet: "); s=getchar(); s=tolower(s); switch(s){ case 'h': k=3; break; case 'd': k=4; break; case 'c': k=5; break; case 's': k=6; break; case 'j': k=2; break; case 'n': k=32; break; default: k=0; } return k; } //betting on cash int cash_bet(){ int c; printf("Cash Bet: $"); scanf("%d",&c); return c; } //rolling the wheel int roll_wheel(){ float m,n; int wh1,wh2,res; m=rand()/32768.0; n=rand()/32768.0; wh1=(int) (m*9); wh2=(int) (n*9); res=w[wh1][wh2]; w[wh1][wh2]=249; return res; } //rolling the dice int roll_dice(){ float d; int res; d=rand()/32768.0; res=(int) (d*6)+1; return res; } //cash update form wheel hit void wheel_count(int c,int h,int s){ if(h==s){ if(h==2){ cash=cash+c+100; }else{ cash=cash+c; } } else if(h==3 || h==4 || h==5 || h==6){ cash=cash-10; } else if(h==32){ cash=cash-c; } else if(h==2){ cash=cash+c; } if(s==2 && h!=2){ cash=cash-50; } } //cash update from dice throw void dice_count(int d,int h){ if(h==3 || h==4 || h==5 || h==6){ if(d==6){ cash=cash+20; } } else if(h==15){ cash=2*cash; } else if(h==249){ if(d==6){ cash=cash+20; } } } //game end/over
Java
/* eslint-env mocha */ const { expect } = chai; import React from './React'; import TestUtils from './TestUtils'; describe('React components', () => { it('should find valid xpath in react component', () => { const component = TestUtils.renderIntoDocument(<blink>hi</blink>); expect(component).to.have.xpath('//blink'); }); it('should find valid xpath in react component twice', () => { const component = TestUtils.renderIntoDocument(<blink>hi</blink>); expect(component).to.have.xpath('//blink'); expect(component).to.have.xpath('//blink'); }); describe('when it does not find valid xpath in react component', () => { it('should throw', () => { const component = TestUtils.renderIntoDocument(<blink>hi</blink>); expect(() => { expect(component).to.have.xpath('//h1'); }).to.throw('to have xpath \'//h1\''); }); it('should throw with outerHTML of the component', () => { const component = TestUtils.renderIntoDocument(<blink>hi</blink>); expect(() => { expect(component).to.have.xpath('//h1'); }).to.throw('hi</blink>'); }); }); });
Java