repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
zalatnaicsongor/discount-warehouse-popular-purchases
src/main/java/hu/zalatnai/discountwarehouse/products/ProductsConfiguration.java
466
package hu.zalatnai.discountwarehouse.products; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Configuration; @Configuration @ConfigurationProperties(prefix = "dw.products") public class ProductsConfiguration { private String baseUrl; public String getBaseUrl() { return baseUrl; } public void setBaseUrl(String baseUrl) { this.baseUrl = baseUrl; } }
mit
jeneratejs/jenerate
lib/utils/read_file.js
429
import path from 'path'; import fs from 'fs'; export default function(relativeFilePath) { const filePath = path.join(process.cwd(), relativeFilePath); return new Promise((resolve, reject) => { fs.access(filePath, fs.R_OK, (err) => { if ( err ) { reject(`Either ${filePath} does not exist, or you do not have read permissions.`); } else { resolve(require(filePath)); } }); }); }
mit
linsalrob/EdwardsLab
phage_protein_blast_genera/blast_tax_to_genera.py
2073
""" Read a blast file generated with -outfmt '6 std qlen slen staxids sscinames' and generate a list of taxonomies that match. Our taxonomy has kingdom / phylum / genus / species """ import os import sys import argparse import taxon import re if __name__ == '__main__': parser = argparse.ArgumentParser(description="Read a blast file and create a tuple of [query / kingdom / phylum / genus / species]") parser.add_argument('-f', help='blast file(s). Note this must have taxids as column 14. You may specify more than one file', nargs='+') parser.add_argument('-t', help='taxonomy directory (default=/home2/db/taxonomy/current/)', default='/home2/db/taxonomy/current/') parser.add_argument('-v', help='verbose output', action="store_true") args = parser.parse_args() want = ['superkingdom', 'phylum', 'genus', 'species'] if args.v: sys.stderr.write("Reading taxonomy\n") taxa=taxon.read_nodes(directory=args.t) names,blastname = taxon.read_names(directory=args.t) if args.v: sys.stderr.write("Read taxonomy\n") for blastf in args.f: if args.v: sys.stderr.write("Reading {}\n".format(blastf)) with open(blastf, 'r') as fin: for l in fin: p=l.strip().split("\t") for tid in p[14].split(";"): level = {} results = [p[0], tid] while tid != '0' and tid != '1' and tid in taxa and taxa[tid].parent != '1': if taxa[tid].rank in want: level[taxa[tid].rank] = names[tid].name tid = taxa[tid].parent # we are only going to print the entries that have all four levels toprint = True for w in want: if w in level: results.append(level[w]) else: toprint = False if toprint: print("\t".join(results))
mit
Nervanti/eettee
api/manage.py
249
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "eettee.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
mit
inosphe/React-Redux-Webpack-starter
src/server/api/index.js
167
'use strict' let express = require('express'); module.exports = function(app){ let router = express.Router(); router.use(require('./v1')(app)); return router; }
mit
sachinlala/SimplifyLearning
algorithms/src/main/java/com/sl/algorithms/search/peakelement/LinearTimePEFinder.java
753
package com.sl.algorithms.search.peakelement; import com.sl.algorithms.core.interfaces.search.PeakElementFinder; /** * <p>Linear time-complexity algorithm to find peak element in a bitonic series.</p> * * @see PeakElementFinder */ public class LinearTimePEFinder<T extends Comparable> implements PeakElementFinder<T> { /** * {@inheritDoc} */ @SuppressWarnings("unchecked") @Override public T findPeakElement(T[] objects) { checkArray(objects); if (objects.length == 1) { return objects[0]; } int start = 0, end = objects.length - 1; while (start != end) { if (objects[start].compareTo(objects[end]) < 0) { start++; } else { end--; } } return objects[start]; } }
mit
sansicoin/sansicoin
src/qt/bitcoingui.cpp
30170
// Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <QApplication> #include "bitcoingui.h" #include "transactiontablemodel.h" #include "optionsdialog.h" #include "aboutdialog.h" #include "clientmodel.h" #include "walletmodel.h" #include "walletframe.h" #include "optionsmodel.h" #include "transactiondescdialog.h" #include "bitcoinunits.h" #include "guiconstants.h" #include "notificator.h" #include "guiutil.h" #include "rpcconsole.h" #include "ui_interface.h" #include "wallet.h" #include "init.h" #ifdef Q_OS_MAC #include "macdockiconhandler.h" #endif #include <QMenuBar> #include <QMenu> #include <QIcon> #include <QVBoxLayout> #include <QToolBar> #include <QStatusBar> #include <QLabel> #include <QMessageBox> #include <QProgressBar> #include <QStackedWidget> #include <QDateTime> #include <QMovie> #include <QTimer> #include <QDragEnterEvent> #if QT_VERSION < 0x050000 #include <QUrl> #endif #include <QMimeData> #include <QStyle> #include <QSettings> #include <QDesktopWidget> #include <QListWidget> #include <iostream> const QString BitcoinGUI::DEFAULT_WALLET = "~Default"; BitcoinGUI::BitcoinGUI(QWidget *parent) : QMainWindow(parent), clientModel(0), encryptWalletAction(0), changePassphraseAction(0), aboutQtAction(0), trayIcon(0), notificator(0), rpcConsole(0), prevBlocks(0) { restoreWindowGeometry(); setWindowTitle(tr("Sansicoin") + " - " + tr("Wallet")); #ifndef Q_OS_MAC QApplication::setWindowIcon(QIcon(":icons/bitcoin")); setWindowIcon(QIcon(":icons/bitcoin")); #else setUnifiedTitleAndToolBarOnMac(true); QApplication::setAttribute(Qt::AA_DontShowIconsInMenus); #endif // Create wallet frame and make it the central widget walletFrame = new WalletFrame(this); setCentralWidget(walletFrame); // Accept D&D of URIs setAcceptDrops(true); // Create actions for the toolbar, menu bar and tray/dock icon // Needs walletFrame to be initialized createActions(); // Create application menu bar createMenuBar(); // Create the toolbars createToolBars(); // Create system tray icon and notification createTrayIcon(); // Create status bar statusBar(); // Status bar notification icons QFrame *frameBlocks = new QFrame(); frameBlocks->setContentsMargins(0,0,0,0); frameBlocks->setMinimumWidth(56); frameBlocks->setMaximumWidth(56); QHBoxLayout *frameBlocksLayout = new QHBoxLayout(frameBlocks); frameBlocksLayout->setContentsMargins(3,0,3,0); frameBlocksLayout->setSpacing(3); labelEncryptionIcon = new QLabel(); labelConnectionsIcon = new QLabel(); labelBlocksIcon = new QLabel(); frameBlocksLayout->addStretch(); frameBlocksLayout->addWidget(labelEncryptionIcon); frameBlocksLayout->addStretch(); frameBlocksLayout->addWidget(labelConnectionsIcon); frameBlocksLayout->addStretch(); frameBlocksLayout->addWidget(labelBlocksIcon); frameBlocksLayout->addStretch(); // Progress bar and label for blocks download progressBarLabel = new QLabel(); progressBarLabel->setVisible(false); progressBar = new QProgressBar(); progressBar->setAlignment(Qt::AlignCenter); progressBar->setVisible(false); // Override style sheet for progress bar for styles that have a segmented progress bar, // as they make the text unreadable (workaround for issue #1071) // See https://qt-project.org/doc/qt-4.8/gallery.html QString curStyle = QApplication::style()->metaObject()->className(); if(curStyle == "QWindowsStyle" || curStyle == "QWindowsXPStyle") { progressBar->setStyleSheet("QProgressBar { background-color: #e8e8e8; border: 1px solid grey; border-radius: 7px; padding: 1px; text-align: center; } QProgressBar::chunk { background: QLinearGradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #FF8000, stop: 1 orange); border-radius: 7px; margin: 0px; }"); } statusBar()->addWidget(progressBarLabel); statusBar()->addWidget(progressBar); statusBar()->addPermanentWidget(frameBlocks); syncIconMovie = new QMovie(":/movies/update_spinner", "mng", this); rpcConsole = new RPCConsole(this); connect(openRPCConsoleAction, SIGNAL(triggered()), rpcConsole, SLOT(show())); // prevents an oben debug window from becoming stuck/unusable on client shutdown connect(quitAction, SIGNAL(triggered()), rpcConsole, SLOT(hide())); // Install event filter to be able to catch status tip events (QEvent::StatusTip) this->installEventFilter(this); // Initially wallet actions should be disabled setWalletActionsEnabled(false); } BitcoinGUI::~BitcoinGUI() { saveWindowGeometry(); if(trayIcon) // Hide tray icon, as deleting will let it linger until quit (on Ubuntu) trayIcon->hide(); #ifdef Q_OS_MAC delete appMenuBar; MacDockIconHandler::instance()->setMainWindow(NULL); #endif } void BitcoinGUI::createActions() { QActionGroup *tabGroup = new QActionGroup(this); overviewAction = new QAction(QIcon(":/icons/overview"), tr("&Overview"), this); overviewAction->setStatusTip(tr("Show general overview of wallet")); overviewAction->setToolTip(overviewAction->statusTip()); overviewAction->setCheckable(true); overviewAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_1)); tabGroup->addAction(overviewAction); sendCoinsAction = new QAction(QIcon(":/icons/send"), tr("&Send"), this); sendCoinsAction->setStatusTip(tr("Send coins to a Sansicoin address")); sendCoinsAction->setToolTip(sendCoinsAction->statusTip()); sendCoinsAction->setCheckable(true); sendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_2)); tabGroup->addAction(sendCoinsAction); receiveCoinsAction = new QAction(QIcon(":/icons/receiving_addresses"), tr("&Receive"), this); receiveCoinsAction->setStatusTip(tr("Show the list of addresses for receiving payments")); receiveCoinsAction->setToolTip(receiveCoinsAction->statusTip()); receiveCoinsAction->setCheckable(true); receiveCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_3)); tabGroup->addAction(receiveCoinsAction); historyAction = new QAction(QIcon(":/icons/history"), tr("&Transactions"), this); historyAction->setStatusTip(tr("Browse transaction history")); historyAction->setToolTip(historyAction->statusTip()); historyAction->setCheckable(true); historyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_4)); tabGroup->addAction(historyAction); addressBookAction = new QAction(QIcon(":/icons/address-book"), tr("&Addresses"), this); addressBookAction->setStatusTip(tr("Edit the list of stored addresses and labels")); addressBookAction->setToolTip(addressBookAction->statusTip()); addressBookAction->setCheckable(true); addressBookAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_5)); tabGroup->addAction(addressBookAction); connect(overviewAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized())); connect(overviewAction, SIGNAL(triggered()), this, SLOT(gotoOverviewPage())); connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized())); connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage())); connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized())); connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage())); connect(historyAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized())); connect(historyAction, SIGNAL(triggered()), this, SLOT(gotoHistoryPage())); connect(addressBookAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized())); connect(addressBookAction, SIGNAL(triggered()), this, SLOT(gotoAddressBookPage())); quitAction = new QAction(QIcon(":/icons/quit"), tr("E&xit"), this); quitAction->setStatusTip(tr("Quit application")); quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q)); quitAction->setMenuRole(QAction::QuitRole); aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About Sansicoin"), this); aboutAction->setStatusTip(tr("Show information about Sansicoin")); aboutAction->setMenuRole(QAction::AboutRole); aboutQtAction = new QAction(QIcon(":/trolltech/qmessagebox/images/qtlogo-64.png"), tr("About &Qt"), this); aboutQtAction->setStatusTip(tr("Show information about Qt")); aboutQtAction->setMenuRole(QAction::AboutQtRole); optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this); optionsAction->setStatusTip(tr("Modify configuration options for Sansicoin")); optionsAction->setMenuRole(QAction::PreferencesRole); toggleHideAction = new QAction(QIcon(":/icons/bitcoin"), tr("&Show / Hide"), this); toggleHideAction->setStatusTip(tr("Show or hide the main Window")); encryptWalletAction = new QAction(QIcon(":/icons/lock_closed"), tr("&Encrypt Wallet..."), this); encryptWalletAction->setStatusTip(tr("Encrypt the private keys that belong to your wallet")); encryptWalletAction->setCheckable(true); backupWalletAction = new QAction(QIcon(":/icons/filesave"), tr("&Backup Wallet..."), this); backupWalletAction->setStatusTip(tr("Backup wallet to another location")); changePassphraseAction = new QAction(QIcon(":/icons/key"), tr("&Change Passphrase..."), this); changePassphraseAction->setStatusTip(tr("Change the passphrase used for wallet encryption")); signMessageAction = new QAction(QIcon(":/icons/edit"), tr("Sign &message..."), this); signMessageAction->setStatusTip(tr("Sign messages with your Sansicoin addresses to prove you own them")); verifyMessageAction = new QAction(QIcon(":/icons/transaction_0"), tr("&Verify message..."), this); verifyMessageAction->setStatusTip(tr("Verify messages to ensure they were signed with specified Sansicoin addresses")); openRPCConsoleAction = new QAction(QIcon(":/icons/debugwindow"), tr("&Debug window"), this); openRPCConsoleAction->setStatusTip(tr("Open debugging and diagnostic console")); connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit())); connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutClicked())); connect(aboutQtAction, SIGNAL(triggered()), qApp, SLOT(aboutQt())); connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked())); connect(toggleHideAction, SIGNAL(triggered()), this, SLOT(toggleHidden())); connect(encryptWalletAction, SIGNAL(triggered(bool)), walletFrame, SLOT(encryptWallet(bool))); connect(backupWalletAction, SIGNAL(triggered()), walletFrame, SLOT(backupWallet())); connect(changePassphraseAction, SIGNAL(triggered()), walletFrame, SLOT(changePassphrase())); connect(signMessageAction, SIGNAL(triggered()), this, SLOT(gotoSignMessageTab())); connect(verifyMessageAction, SIGNAL(triggered()), this, SLOT(gotoVerifyMessageTab())); } void BitcoinGUI::createMenuBar() { #ifdef Q_OS_MAC // Create a decoupled menu bar on Mac which stays even if the window is closed appMenuBar = new QMenuBar(); #else // Get the main window's menu bar on other platforms appMenuBar = menuBar(); #endif // Configure the menus QMenu *file = appMenuBar->addMenu(tr("&File")); file->addAction(backupWalletAction); file->addAction(signMessageAction); file->addAction(verifyMessageAction); file->addSeparator(); file->addAction(quitAction); QMenu *settings = appMenuBar->addMenu(tr("&Settings")); settings->addAction(encryptWalletAction); settings->addAction(changePassphraseAction); settings->addSeparator(); settings->addAction(optionsAction); QMenu *help = appMenuBar->addMenu(tr("&Help")); help->addAction(openRPCConsoleAction); help->addSeparator(); help->addAction(aboutAction); help->addAction(aboutQtAction); } void BitcoinGUI::createToolBars() { QToolBar *toolbar = addToolBar(tr("Tabs toolbar")); toolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon); toolbar->addAction(overviewAction); toolbar->addAction(sendCoinsAction); toolbar->addAction(receiveCoinsAction); toolbar->addAction(historyAction); toolbar->addAction(addressBookAction); } void BitcoinGUI::setClientModel(ClientModel *clientModel) { this->clientModel = clientModel; if(clientModel) { // Replace some strings and icons, when using the testnet if(clientModel->isTestNet()) { setWindowTitle(windowTitle() + QString(" ") + tr("[testnet]")); #ifndef Q_OS_MAC QApplication::setWindowIcon(QIcon(":icons/bitcoin_testnet")); setWindowIcon(QIcon(":icons/bitcoin_testnet")); #else MacDockIconHandler::instance()->setIcon(QIcon(":icons/bitcoin_testnet")); #endif if(trayIcon) { // Just attach " [testnet]" to the existing tooltip trayIcon->setToolTip(trayIcon->toolTip() + QString(" ") + tr("[testnet]")); trayIcon->setIcon(QIcon(":/icons/toolbar_testnet")); } toggleHideAction->setIcon(QIcon(":/icons/toolbar_testnet")); aboutAction->setIcon(QIcon(":/icons/toolbar_testnet")); } // Create system tray menu (or setup the dock menu) that late to prevent users from calling actions, // while the client has not yet fully loaded createTrayIconMenu(); // Keep up to date with client setNumConnections(clientModel->getNumConnections()); connect(clientModel, SIGNAL(numConnectionsChanged(int)), this, SLOT(setNumConnections(int))); setNumBlocks(clientModel->getNumBlocks(), clientModel->getNumBlocksOfPeers()); connect(clientModel, SIGNAL(numBlocksChanged(int,int)), this, SLOT(setNumBlocks(int,int))); // Receive and report messages from network/worker thread connect(clientModel, SIGNAL(message(QString,QString,unsigned int)), this, SLOT(message(QString,QString,unsigned int))); rpcConsole->setClientModel(clientModel); walletFrame->setClientModel(clientModel); } } bool BitcoinGUI::addWallet(const QString& name, WalletModel *walletModel) { setWalletActionsEnabled(true); return walletFrame->addWallet(name, walletModel); } bool BitcoinGUI::setCurrentWallet(const QString& name) { return walletFrame->setCurrentWallet(name); } void BitcoinGUI::removeAllWallets() { setWalletActionsEnabled(false); walletFrame->removeAllWallets(); } void BitcoinGUI::setWalletActionsEnabled(bool enabled) { overviewAction->setEnabled(enabled); sendCoinsAction->setEnabled(enabled); receiveCoinsAction->setEnabled(enabled); historyAction->setEnabled(enabled); encryptWalletAction->setEnabled(enabled); backupWalletAction->setEnabled(enabled); changePassphraseAction->setEnabled(enabled); signMessageAction->setEnabled(enabled); verifyMessageAction->setEnabled(enabled); addressBookAction->setEnabled(enabled); } void BitcoinGUI::createTrayIcon() { #ifndef Q_OS_MAC trayIcon = new QSystemTrayIcon(this); trayIcon->setToolTip(tr("Sansicoin client")); trayIcon->setIcon(QIcon(":/icons/toolbar")); trayIcon->show(); #endif notificator = new Notificator(QApplication::applicationName(), trayIcon); } void BitcoinGUI::createTrayIconMenu() { QMenu *trayIconMenu; #ifndef Q_OS_MAC // return if trayIcon is unset (only on non-Mac OSes) if (!trayIcon) return; trayIconMenu = new QMenu(this); trayIcon->setContextMenu(trayIconMenu); connect(trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), this, SLOT(trayIconActivated(QSystemTrayIcon::ActivationReason))); #else // Note: On Mac, the dock icon is used to provide the tray's functionality. MacDockIconHandler *dockIconHandler = MacDockIconHandler::instance(); dockIconHandler->setMainWindow((QMainWindow *)this); trayIconMenu = dockIconHandler->dockMenu(); #endif // Configuration of the tray icon (or dock icon) icon menu trayIconMenu->addAction(toggleHideAction); trayIconMenu->addSeparator(); trayIconMenu->addAction(sendCoinsAction); trayIconMenu->addAction(receiveCoinsAction); trayIconMenu->addSeparator(); trayIconMenu->addAction(signMessageAction); trayIconMenu->addAction(verifyMessageAction); trayIconMenu->addSeparator(); trayIconMenu->addAction(optionsAction); trayIconMenu->addAction(openRPCConsoleAction); #ifndef Q_OS_MAC // This is built-in on Mac trayIconMenu->addSeparator(); trayIconMenu->addAction(quitAction); #endif } #ifndef Q_OS_MAC void BitcoinGUI::trayIconActivated(QSystemTrayIcon::ActivationReason reason) { if(reason == QSystemTrayIcon::Trigger) { // Click on system tray icon triggers show/hide of the main window toggleHideAction->trigger(); } } #endif void BitcoinGUI::saveWindowGeometry() { QSettings settings; settings.setValue("nWindowPos", pos()); settings.setValue("nWindowSize", size()); } void BitcoinGUI::restoreWindowGeometry() { QSettings settings; QPoint pos = settings.value("nWindowPos").toPoint(); QSize size = settings.value("nWindowSize", QSize(850, 550)).toSize(); if (!pos.x() && !pos.y()) { QRect screen = QApplication::desktop()->screenGeometry(); pos.setX((screen.width()-size.width())/2); pos.setY((screen.height()-size.height())/2); } resize(size); move(pos); } void BitcoinGUI::optionsClicked() { if(!clientModel || !clientModel->getOptionsModel()) return; OptionsDialog dlg; dlg.setModel(clientModel->getOptionsModel()); dlg.exec(); } void BitcoinGUI::aboutClicked() { AboutDialog dlg; dlg.setModel(clientModel); dlg.exec(); } void BitcoinGUI::gotoOverviewPage() { if (walletFrame) walletFrame->gotoOverviewPage(); } void BitcoinGUI::gotoHistoryPage() { if (walletFrame) walletFrame->gotoHistoryPage(); } void BitcoinGUI::gotoAddressBookPage() { if (walletFrame) walletFrame->gotoAddressBookPage(); } void BitcoinGUI::gotoReceiveCoinsPage() { if (walletFrame) walletFrame->gotoReceiveCoinsPage(); } void BitcoinGUI::gotoSendCoinsPage(QString addr) { if (walletFrame) walletFrame->gotoSendCoinsPage(addr); } void BitcoinGUI::gotoSignMessageTab(QString addr) { if (walletFrame) walletFrame->gotoSignMessageTab(addr); } void BitcoinGUI::gotoVerifyMessageTab(QString addr) { if (walletFrame) walletFrame->gotoVerifyMessageTab(addr); } void BitcoinGUI::setNumConnections(int count) { QString icon; switch(count) { case 0: icon = ":/icons/connect_0"; break; case 1: case 2: case 3: icon = ":/icons/connect_1"; break; case 4: case 5: case 6: icon = ":/icons/connect_2"; break; case 7: case 8: case 9: icon = ":/icons/connect_3"; break; default: icon = ":/icons/connect_4"; break; } labelConnectionsIcon->setPixmap(QIcon(icon).pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE)); labelConnectionsIcon->setToolTip(tr("%n active connection(s) to Sansicoin network", "", count)); } void BitcoinGUI::setNumBlocks(int count, int nTotalBlocks) { // Prevent orphan statusbar messages (e.g. hover Quit in main menu, wait until chain-sync starts -> garbelled text) statusBar()->clearMessage(); // Acquire current block source enum BlockSource blockSource = clientModel->getBlockSource(); switch (blockSource) { case BLOCK_SOURCE_NETWORK: progressBarLabel->setText(tr("Synchronizing with network...")); break; case BLOCK_SOURCE_DISK: progressBarLabel->setText(tr("Importing blocks from disk...")); break; case BLOCK_SOURCE_REINDEX: progressBarLabel->setText(tr("Reindexing blocks on disk...")); break; case BLOCK_SOURCE_NONE: // Case: not Importing, not Reindexing and no network connection progressBarLabel->setText(tr("No block source available...")); break; } QString tooltip; QDateTime lastBlockDate = clientModel->getLastBlockDate(); QDateTime currentDate = QDateTime::currentDateTime(); int secs = lastBlockDate.secsTo(currentDate); if(count < nTotalBlocks) { tooltip = tr("Processed %1 of %2 (estimated) blocks of transaction history.").arg(count).arg(nTotalBlocks); } else { tooltip = tr("Processed %1 blocks of transaction history.").arg(count); } // Set icon state: spinning if catching up, tick otherwise if(secs < 90*60 && count >= nTotalBlocks) { tooltip = tr("Up to date") + QString(".<br>") + tooltip; labelBlocksIcon->setPixmap(QIcon(":/icons/synced").pixmap(STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE)); walletFrame->showOutOfSyncWarning(false); progressBarLabel->setVisible(false); progressBar->setVisible(false); } else { // Represent time from last generated block in human readable text QString timeBehindText; if(secs < 48*60*60) { timeBehindText = tr("%n hour(s)","",secs/(60*60)); } else if(secs < 14*24*60*60) { timeBehindText = tr("%n day(s)","",secs/(24*60*60)); } else { timeBehindText = tr("%n week(s)","",secs/(7*24*60*60)); } progressBarLabel->setVisible(true); progressBar->setFormat(tr("%1 behind").arg(timeBehindText)); progressBar->setMaximum(1000000000); progressBar->setValue(clientModel->getVerificationProgress() * 1000000000.0 + 0.5); progressBar->setVisible(true); tooltip = tr("Catching up...") + QString("<br>") + tooltip; labelBlocksIcon->setMovie(syncIconMovie); if(count != prevBlocks) syncIconMovie->jumpToNextFrame(); prevBlocks = count; walletFrame->showOutOfSyncWarning(true); tooltip += QString("<br>"); tooltip += tr("Last received block was generated %1 ago.").arg(timeBehindText); tooltip += QString("<br>"); tooltip += tr("Transactions after this will not yet be visible."); } // Don't word-wrap this (fixed-width) tooltip tooltip = QString("<nobr>") + tooltip + QString("</nobr>"); labelBlocksIcon->setToolTip(tooltip); progressBarLabel->setToolTip(tooltip); progressBar->setToolTip(tooltip); } void BitcoinGUI::message(const QString &title, const QString &message, unsigned int style, bool *ret) { QString strTitle = tr("Sansicoin"); // default title // Default to information icon int nMBoxIcon = QMessageBox::Information; int nNotifyIcon = Notificator::Information; QString msgType; // Prefer supplied title over style based title if (!title.isEmpty()) { msgType = title; } else { switch (style) { case CClientUIInterface::MSG_ERROR: msgType = tr("Error"); break; case CClientUIInterface::MSG_WARNING: msgType = tr("Warning"); break; case CClientUIInterface::MSG_INFORMATION: msgType = tr("Information"); break; default: break; } } // Append title to "Bitcoin - " if (!msgType.isEmpty()) strTitle += " - " + msgType; // Check for error/warning icon if (style & CClientUIInterface::ICON_ERROR) { nMBoxIcon = QMessageBox::Critical; nNotifyIcon = Notificator::Critical; } else if (style & CClientUIInterface::ICON_WARNING) { nMBoxIcon = QMessageBox::Warning; nNotifyIcon = Notificator::Warning; } // Display message if (style & CClientUIInterface::MODAL) { // Check for buttons, use OK as default, if none was supplied QMessageBox::StandardButton buttons; if (!(buttons = (QMessageBox::StandardButton)(style & CClientUIInterface::BTN_MASK))) buttons = QMessageBox::Ok; // Ensure we get users attention showNormalIfMinimized(); QMessageBox mBox((QMessageBox::Icon)nMBoxIcon, strTitle, message, buttons, this); int r = mBox.exec(); if (ret != NULL) *ret = r == QMessageBox::Ok; } else notificator->notify((Notificator::Class)nNotifyIcon, strTitle, message); } void BitcoinGUI::changeEvent(QEvent *e) { QMainWindow::changeEvent(e); #ifndef Q_OS_MAC // Ignored on Mac if(e->type() == QEvent::WindowStateChange) { if(clientModel && clientModel->getOptionsModel()->getMinimizeToTray()) { QWindowStateChangeEvent *wsevt = static_cast<QWindowStateChangeEvent*>(e); if(!(wsevt->oldState() & Qt::WindowMinimized) && isMinimized()) { QTimer::singleShot(0, this, SLOT(hide())); e->ignore(); } } } #endif } void BitcoinGUI::closeEvent(QCloseEvent *event) { if(clientModel) { #ifndef Q_OS_MAC // Ignored on Mac if(!clientModel->getOptionsModel()->getMinimizeToTray() && !clientModel->getOptionsModel()->getMinimizeOnClose()) { QApplication::quit(); } #endif } QMainWindow::closeEvent(event); } void BitcoinGUI::askFee(qint64 nFeeRequired, bool *payFee) { QString strMessage = tr("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?").arg(BitcoinUnits::formatWithUnit(BitcoinUnits::BTC, nFeeRequired)); QMessageBox::StandardButton retval = QMessageBox::question(this, tr("Confirm transaction fee"), strMessage, QMessageBox::Yes | QMessageBox::Cancel, QMessageBox::Yes); *payFee = (retval == QMessageBox::Yes); } void BitcoinGUI::incomingTransaction(const QString& date, int unit, qint64 amount, const QString& type, const QString& address) { // On new transaction, make an info balloon message((amount)<0 ? tr("Sent transaction") : tr("Incoming transaction"), tr("Date: %1\n" "Amount: %2\n" "Type: %3\n" "Address: %4\n") .arg(date) .arg(BitcoinUnits::formatWithUnit(unit, amount, true)) .arg(type) .arg(address), CClientUIInterface::MSG_INFORMATION); } void BitcoinGUI::dragEnterEvent(QDragEnterEvent *event) { // Accept only URIs if(event->mimeData()->hasUrls()) event->acceptProposedAction(); } void BitcoinGUI::dropEvent(QDropEvent *event) { if(event->mimeData()->hasUrls()) { int nValidUrisFound = 0; QList<QUrl> uris = event->mimeData()->urls(); foreach(const QUrl &uri, uris) { if (walletFrame->handleURI(uri.toString())) nValidUrisFound++; } // if valid URIs were found if (nValidUrisFound) walletFrame->gotoSendCoinsPage(); else message(tr("URI handling"), tr("URI can not be parsed! This can be caused by an invalid Sansicoin address or malformed URI parameters."), CClientUIInterface::ICON_WARNING); } event->acceptProposedAction(); } bool BitcoinGUI::eventFilter(QObject *object, QEvent *event) { // Catch status tip events if (event->type() == QEvent::StatusTip) { // Prevent adding text from setStatusTip(), if we currently use the status bar for displaying other stuff if (progressBarLabel->isVisible() || progressBar->isVisible()) return true; } return QMainWindow::eventFilter(object, event); } void BitcoinGUI::handleURI(QString strURI) { // URI has to be valid if (!walletFrame->handleURI(strURI)) message(tr("URI handling"), tr("URI can not be parsed! This can be caused by an invalid Sansicoin address or malformed URI parameters."), CClientUIInterface::ICON_WARNING); } void BitcoinGUI::setEncryptionStatus(int status) { switch(status) { case WalletModel::Unencrypted: labelEncryptionIcon->hide(); encryptWalletAction->setChecked(false); changePassphraseAction->setEnabled(false); encryptWalletAction->setEnabled(true); break; case WalletModel::Unlocked: labelEncryptionIcon->show(); labelEncryptionIcon->setPixmap(QIcon(":/icons/lock_open").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE)); labelEncryptionIcon->setToolTip(tr("Wallet is <b>encrypted</b> and currently <b>unlocked</b>")); encryptWalletAction->setChecked(true); changePassphraseAction->setEnabled(true); encryptWalletAction->setEnabled(false); // TODO: decrypt currently not supported break; case WalletModel::Locked: labelEncryptionIcon->show(); labelEncryptionIcon->setPixmap(QIcon(":/icons/lock_closed").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE)); labelEncryptionIcon->setToolTip(tr("Wallet is <b>encrypted</b> and currently <b>locked</b>")); encryptWalletAction->setChecked(true); changePassphraseAction->setEnabled(true); encryptWalletAction->setEnabled(false); // TODO: decrypt currently not supported break; } } void BitcoinGUI::showNormalIfMinimized(bool fToggleHidden) { // activateWindow() (sometimes) helps with keyboard focus on Windows if (isHidden()) { show(); activateWindow(); } else if (isMinimized()) { showNormal(); activateWindow(); } else if (GUIUtil::isObscured(this)) { raise(); activateWindow(); } else if(fToggleHidden) hide(); } void BitcoinGUI::toggleHidden() { showNormalIfMinimized(true); } void BitcoinGUI::detectShutdown() { if (ShutdownRequested()) QMetaObject::invokeMethod(QCoreApplication::instance(), "quit", Qt::QueuedConnection); }
mit
timeanddate/libtad-net
TimeAndDate.Services.Tests/IntegrationTests/async/DSTServiceTests.cs
7599
using System; using System.Threading.Tasks; using System.Linq; using NUnit.Framework; using TimeAndDate.Services.Tests; using TimeAndDate.Services; using TimeAndDate.Services.DataTypes.DST; using TimeAndDate.Services.DataTypes; namespace TimeAndDate.Services.Tests.IntegrationTests { [TestFixture()] public class DSTServiceTestsAsync { [Test()] public async Task Calling_DstService_Should_ReturnAllDst () { // Arrage var expectedReturnedCount = 121; // Act var service = new DSTService (Config.AccessKey, Config.SecretKey); var result = await service.GetDaylightSavingTimeAsync (); var sampleCountry = result.SingleOrDefault (x => x.Region.Country.Name == "Norway"); // Assert Assert.AreEqual (expectedReturnedCount, result.Count); HasValidSampleCountry (sampleCountry); } [Test()] public async Task Calling_DstService_WithYear_Should_ReturnAllDst () { // Arrage var year = 2014; var expectedReturnedCount = 132; // Act var service = new DSTService (Config.AccessKey, Config.SecretKey); var result = await service.GetDaylightSavingTimeAsync (year); var sampleCountry = result.SingleOrDefault (x => x.Region.Country.Name == "Norway"); // Assert Assert.AreEqual (expectedReturnedCount, result.Count); HasValidSampleCountry (sampleCountry); } [Test()] public async Task Calling_DstService_WithCountry_Should_ReturnAllDst () { // Arrage var countryCode = "no"; var country = "Norway"; // Act var service = new DSTService (Config.AccessKey, Config.SecretKey); var result = await service.GetDaylightSavingTimeAsync (countryCode); var sampleCountry = result.SingleOrDefault (x => x.Region.Country.Name == "Norway"); // Assert Assert.IsFalse (service.IncludeOnlyDstCountries); Assert.AreEqual (country, sampleCountry.Region.Country.Name); Assert.IsTrue (result.Count == 1); HasValidSampleCountry (sampleCountry); } [Test()] public async Task Calling_DstService_WithCountry_And_WithYear_Should_ReturnAllDst () { // Arrage var countryCode = "no"; var year = 2014; // Act var service = new DSTService (Config.AccessKey, Config.SecretKey); var result = await service.GetDaylightSavingTimeAsync (countryCode, year); var sampleCountry = result.SingleOrDefault (x => x.Region.Country.Name == "Norway"); // Assert Assert.IsFalse (service.IncludeOnlyDstCountries); Assert.IsTrue (result.Count == 1); HasValidSampleCountry (sampleCountry); } [Test()] public async Task Calling_DstService_WithoutPlacesForEveryCountry_Should_ReturnAllDstWithoutPlaces () { // Arrage var year = 2014; // Act var service = new DSTService (Config.AccessKey, Config.SecretKey); service.IncludePlacesForEveryCountry = false; var result = await service.GetDaylightSavingTimeAsync (year); var sampleCountry = result.SingleOrDefault (x => x.Region.Country.Name == "Norway"); // Assert Assert.IsFalse (service.IncludePlacesForEveryCountry); Assert.IsTrue (result.All (x => x.Region.Locations.ToList().Count == 0)); HasValidSampleCountry (sampleCountry); } [Test()] public async Task Calling_DstService_WithPlacesForEveryCountry_Should_ReturnAnyDstWithPlaces () { // Arrage var year = 2014; // Act var service = new DSTService (Config.AccessKey, Config.SecretKey); var result = await service.GetDaylightSavingTimeAsync (year); var sampleCountry = result.SingleOrDefault (x => x.Region.Country.Name == "Norway"); // Assert Assert.IsTrue (service.IncludePlacesForEveryCountry); Assert.IsTrue (result.Any (x => x.Region.Locations.ToList().Count > 0)); HasValidSampleCountry (sampleCountry); } [Test()] public async Task Calling_DstService_WithoutTimeChanges_Should_NotReturnAnyTimeChanges () { // Arrage var year = 2014; // Act var service = new DSTService (Config.AccessKey, Config.SecretKey); service.IncludeTimeChanges = false; var result = await service.GetDaylightSavingTimeAsync (year); var sampleCountry = result.SingleOrDefault (x => x.Region.Country.Name == "Norway"); // Assert Assert.IsFalse (service.IncludeTimeChanges); Assert.IsTrue (result.All (x => x.TimeChanges.ToList().Count == 0)); HasValidSampleCountry (sampleCountry); } [Test()] public async Task Calling_DstService_WithTimeChanges_Should_ReturnAnyTimeChanges () { // Arrage var year = 2014; // Act var service = new DSTService (Config.AccessKey, Config.SecretKey); service.IncludeTimeChanges = true; var result = await service.GetDaylightSavingTimeAsync (year); var sampleCountry = result.SingleOrDefault (x => x.Region.Country.Name == "Norway"); // Assert Assert.IsTrue (service.IncludeTimeChanges); Assert.IsTrue (result.Any (x => x.TimeChanges.ToList().Count > 0)); HasValidSampleCountry (sampleCountry); } [Test()] public async Task Calling_DstService_WithOnlyDstCountries_Should_ReturnOnlyDstCountries () { // Arrage var year = 2014; // Act var service = new DSTService (Config.AccessKey, Config.SecretKey); service.IncludeOnlyDstCountries = true; var result = await service.GetDaylightSavingTimeAsync (year); var sampleCountry = result.SingleOrDefault (x => x.Region.Country.Name == "Norway"); // Assert Assert.IsTrue (service.IncludeOnlyDstCountries); Assert.AreEqual(132, result.Count); HasValidSampleCountry (sampleCountry); } [Test()] public async Task Calling_DstService_WithoutOnlyDstCountries_Should_ReturnAllCountries () { // Arrage var year = 2014; // Act var service = new DSTService (Config.AccessKey, Config.SecretKey); service.IncludeOnlyDstCountries = false; var result = await service.GetDaylightSavingTimeAsync (year); var noDstAllYear = result.Where (x => x.Special == DSTSpecialType.NoDaylightSavingTime); var sampleCountry = result.SingleOrDefault (x => x.Region.Country.Name == "Norway"); // Assert Assert.IsFalse (service.IncludeOnlyDstCountries); Assert.AreEqual(348, result.Count); Assert.Greater (noDstAllYear.Count(), 0); HasValidSampleCountry (sampleCountry); } public void HasValidSampleCountry (DST norway) { Assert.AreEqual ("Oslo", norway.Region.BiggestPlace); Assert.AreEqual ("no", norway.Region.Country.Id); Assert.Greater (norway.DstEnd.Year, 1); Assert.Greater (norway.DstStart.Year, 1); Assert.AreEqual ("CEST", norway.DstTimezone.Abbrevation); Assert.AreEqual (3600, norway.DstTimezone.BasicOffset); Assert.AreEqual (3600, norway.DstTimezone.DSTOffset); Assert.AreEqual (7200, norway.DstTimezone.TotalOffset); Assert.AreEqual ("Central European Summer Time", norway.DstTimezone.Name); Assert.AreEqual (2, norway.DstTimezone.Offset.Hours); Assert.AreEqual (0, norway.DstTimezone.Offset.Minutes); Assert.AreEqual ("CET", norway.StandardTimezone.Abbrevation); Assert.AreEqual (3600, norway.StandardTimezone.BasicOffset); Assert.AreEqual (0, norway.StandardTimezone.DSTOffset); Assert.AreEqual (3600, norway.StandardTimezone.TotalOffset); Assert.AreEqual ("Central European Time", norway.StandardTimezone.Name); Assert.AreEqual (1, norway.StandardTimezone.Offset.Hours); Assert.AreEqual (0, norway.StandardTimezone.Offset.Minutes); Assert.IsNotNull (norway.Region.Description); Assert.IsNotEmpty (norway.Region.Description); } } }
mit
littlewin-wang/Baidu_IFE
task32/js/main.js
8361
function addEvent(elem, type, func) { //兼容浏览器差异 if (elem.addEventListener) { elem.addEventListener(type, func); } else if (elem.attachEvent) { elem.attachEvent("on" + type, func); } else { elem["on" + type] = func; } } function $(id){ //getElementById好长啊,每次写好累的。 return document.getElementById(id); } var check=(function(){ //将检查函数封装在这里 var nameArr=["名称不能为空","名称不能包含除中文、英文及数字以外的字符","名称长度过短","名称长度过长","名称可用"] var passwordArr=["密码不能为空","密码不能包含除英文及数字以外的字符","密码长度过短","密码长度过长","密码可用"] var againArr=["俩次密码不相同","请正确输入第一次密码","密码正确"]; var emailArr=["名称不能为空","邮箱格式错误","邮箱格式正确"]; var phoneArr=["手机号码不能为空","手机号码格式错误","手机号码格式正确"] var nowPassword=""; var passwordRight=false; function formList(name,func,rule){ this.label=name; this.validator=func; this.rules=rule; } formList.prototype.type="input"; formList.prototype.success="格式正确"; formList.prototype.fail="名称不能为空"; return { checkName:function (str){ var count=0; if(str==="")return nameArr[0]; else if(/[^0-9a-z\u4e00-\u9fa5]/i.test(str))return nameArr[1]; else { for(var i=0;i<str.length;i++){ if(/[a-z0-9]/i.test(str[i]))count++; else count+=2; } if(count<4)return nameArr[2]; if(count>18)return nameArr[3]; } return nameArr[4]; }, checkPassword:function(str){ var count=0; passwordRight=false; if(str==="")return passwordArr[0]; else if(/[^0-9a-z]/gi.test(str))return passwordArr[1]; else { if(str.length<9)return passwordArr[2]; else if(str.length>24)return passwordArr[3]; else { passwordRight=true; nowPassword=str; return passwordArr[4]; } } }, checkAgain:function(str){ if(passwordRight){ if(nowPassword===str)return againArr[2]; else return againArr[0]; } else return againArr[1]; }, checkEmail:function(str){ if(str==="")return emailArr[0]; else if(/^[\w]+@([a-z0-9]+\.)+[a-z0-9]{2,4}$/i.test(str))return emailArr[2]; else return emailArr[1]; }, checkPhone:function(str){ if(str==="")return phoneArr[0]; else if(/^\d{11}$/.test(str))return phoneArr[2]; else return phoneArr[1]; } } })(); //工厂在这里 function FormList(name,type,func,rules,success){ this.label=name; this.type=type; this.validator=func; this.rules=rules; this.success=success; }; //五个实例 var nameInput=new FormList("name","text",check.checkName,"必填,长度为4~18个字符,只允许输入中文、英文字母和数字,中文占2字符","名称可用"); var passwordInput=new FormList("password","password",check.checkPassword,"必填,长度为9~24个字符,只允许输入英文字母和数字","密码可用"); var againInput=new FormList("passwordAgain","password",check.checkAgain,"重复输入密码,俩次密码需相同","密码正确"); var emailInput=new FormList("email","text",check.checkEmail,"必填,请输入正确的邮箱地址","邮箱格式正确"); var phoneInput=new FormList("phone","text",check.checkPhone,"必填,请输入正确的手机号码","手机号码格式正确"); var labelObj={ //将英文label转化为中文 "name":"名称", "password":"密码", "passwordAgain":"确认密码", "email":"电子邮箱", "phone":"手机号码" } function toString(obj){ return "<tr><td><label for=\"" + obj.label + "\">" + labelObj[obj.label] + "</label></td><td><input type=\"" + obj.type + "\" placeholder=\"请输入" + labelObj[obj.label] + "\" id=\"" + obj.label + "\" name=\"" + obj.label + "\"><span id=\"" + obj.label + "Warn\"></span></td></tr>"; } window.onload=function(){ //下面获取选项,根据选项生成表单。 var nameChose=$("nameList"); var passwordChose=$("passwordList"); var emailChose=$("emailList"); var phoneChose=$("phoneList"); var style1=$("style1"); var style2=$("style2"); var causeFormBtn=$("causeForm"); var form=$("form"); var strObj={ 0:[nameInput], 1:[passwordInput,againInput],//密码与确认密码绑定 2:[emailInput], 3:[phoneInput] } addEvent(causeFormBtn,"click",btnCauseForm); function btnCauseForm(){ //点击按钮生成表单 var formArr=[nameChose,passwordChose,emailChose,phoneChose]; var str="",arr=[]; for(var i=0;i<formArr.length;i++){ if(formArr[i].checked)arr.push(strObj[i]); } for(var j=0;j<arr.length;j++){ for(var k=0;k<arr[j].length;k++){ str+=toString(arr[j][k]); } } if(style2.checked){ str=str.replace(/<input/g,"<input style='width:400px;height:50px;margin-bottom:30px;display:inline-block;margin-right:10px'"); } str+='<tr><td></td><td><input type="button" value="提交" id="submit"></td></tr>'; form.innerHTML=str; (function(){ var names=$("name"); var nameWarn=$("nameWarn"); var password=$("password"); var passwordWarn=$("passwordWarn"); var passwordAgain=$("passwordAgain") var againWarn=$("passwordAgainWarn"); var email=$("email"); var emailWarn=$("emailWarn"); var phone=$("phone"); var phoneWarn=$("phoneWarn"); var submit=$("submit"); function focusIn(input,text){ text.style.color="#aaa"; input.style.borderColor="#ccc"; } names&&addEvent(names,"focus",function(){ nameWarn.innerHTML="必填,长度为4~18个字符,只允许输入中文、英文字母和数字,中文占2字符"; focusIn(names,nameWarn); }); names&&addEvent(names,"blur",function(){ nameWarn.innerHTML=check.checkName(names.value); if(nameWarn.innerHTML=="名称可用"){ names.style.borderColor="#5fb844"; nameWarn.style.color="#5fb844"; } else { names.style.borderColor="#de0011"; nameWarn.style.color="#de0011"; } }); password&&addEvent(password,"focus",function(){ passwordWarn.innerHTML="必填,长度为9~24个字符,只允许输入英文字母和数字" focusIn(password,passwordWarn); }); password&&addEvent(password,"blur",function(){ passwordWarn.innerHTML=check.checkPassword(password.value); if(passwordWarn.innerHTML=="密码可用"){ password.style.borderColor="#5fb844"; passwordWarn.style.color="#5fb844"; } else { password.style.borderColor="#de0011"; passwordWarn.style.color="#de0011"; } }); passwordAgain&&addEvent(passwordAgain,"focus",function(){ againWarn.innerHTML="请再次输入密码"; focusIn(passwordAgain,againWarn); }); passwordAgain&&addEvent(passwordAgain,"blur",function(){ againWarn.innerHTML=check.checkAgain(passwordAgain.value); if(againWarn.innerHTML=="密码正确"){ passwordAgain.style.borderColor="#5fb844"; againWarn.style.color="#5fb844"; } else { passwordAgain.style.borderColor="#de0011"; againWarn.style.color="#de0011"; } }); email&&addEvent(email,"focus",function(){ emailWarn.innerHTML="必填,请输入正确的邮箱地址"; focusIn(email,emailWarn); }); email&&addEvent(email,"blur",function(){ emailWarn.innerHTML=check.checkEmail(email.value); if(emailWarn.innerHTML=="邮箱格式正确"){ email.style.borderColor="#5fb844"; emailWarn.style.color="#5fb844"; } else { email.style.borderColor="#de0011"; emailWarn.style.color="#de0011"; } }); phone&&addEvent(phone,"focus",function(){ phoneWarn.innerHTML="必填,请输入正确的手机号码"; focusIn(phone,phoneWarn); }); phone&&addEvent(phone,"blur",function(){ phoneWarn.innerHTML=check.checkPhone(phone.value); if(phoneWarn.innerHTML=="手机号码格式正确"){ phone.style.borderColor="#5fb844"; phoneWarn.style.color="#5fb844"; } else { phone.style.borderColor="#de0011"; phoneWarn.style.color="#de0011"; } }); addEvent(submit,"click",function(){ if((!names||names.style.borderColor=="rgb(95, 184, 68)")&&(!password||password.style.borderColor=="rgb(95, 184, 68)")&&(!passwordAgain||passwordAgain.style.borderColor=="rgb(95, 184, 68)")&&(!email||email.style.borderColor=="rgb(95, 184, 68)")&&(!phone||phone.style.borderColor=="rgb(95, 184, 68)")){ alert("提交成功"); } else alert("输入有误"); }) })(); } }
mit
Thuata/ComponentBundle
Tests/Resources/OtherSingleton.php
1454
<?php /* * The MIT License * * Copyright 2015 Anthony Maudry <[email protected]>. * * 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. */ namespace Thuata\ComponentBundle\Tests\Resources; use Thuata\ComponentBundle\Singleton\SingletonInterface; use Thuata\ComponentBundle\Singleton\SingletonableTrait; /** * Singleton for tests */ class OtherSingleton implements SingletonInterface { use SingletonableTrait; }
mit
CKGrafico/Cordova-Multiplatform-Template
App/modules/core/interfaces/iLoadingService.ts
126
module Core { 'use strict'; export interface ILoadingService { show(): void, hide(): void } }
mit
fretelweb/obfuscar
Obfuscar/EventKey.cs
3627
#region Copyright (c) 2007 Ryan Williams <[email protected]> /// <copyright> /// Copyright (c) 2007 Ryan Williams <[email protected]> /// /// 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. /// </copyright> #endregion using System; using Mono.Cecil; namespace Obfuscar { class EventKey { readonly TypeKey typeKey; readonly string type; readonly string name; readonly EventDefinition eventDefinition; public EventKey (EventDefinition evt) : this(new TypeKey((TypeDefinition)evt.DeclaringType), evt) { } public EventKey (TypeKey typeKey, EventDefinition evt) : this(typeKey, evt.EventType.FullName, evt.Name, evt) { } public EventKey (TypeKey typeKey, string type, string name, EventDefinition eventDefinition) { this.typeKey = typeKey; this.type = type; this.name = name; this.eventDefinition = eventDefinition; } public TypeKey TypeKey { get { return typeKey; } } public string Type { get { return type; } } public string Name { get { return name; } } public MethodAttributes AddMethodAttributes { get { return eventDefinition.AddMethod != null ? eventDefinition.AddMethod.Attributes : 0; } } public TypeDefinition DeclaringType { get { return (TypeDefinition)eventDefinition.DeclaringType; } } public EventDefinition Event { get { return eventDefinition; } } public virtual bool Matches (MemberReference member) { EventReference evtRef = member as EventReference; if (evtRef != null) { if (typeKey.Matches (evtRef.DeclaringType)) return type == evtRef.EventType.FullName && name == evtRef.Name; } return false; } public override bool Equals (object obj) { EventKey key = obj as EventKey; if (key == null) return false; return this == key; } public static bool operator == (EventKey a, EventKey b) { if ((object)a == null) return (object)b == null; else if ((object)b == null) return false; else return a.typeKey == b.typeKey && a.type == b.type && a.name == b.name; } public static bool operator != (EventKey a, EventKey b) { if ((object)a == null) return (object)b != null; else if ((object)b == null) return true; else return a.typeKey != b.typeKey || a.type != b.type || a.name != b.name; } public override int GetHashCode () { return typeKey.GetHashCode () ^ type.GetHashCode () ^ name.GetHashCode (); } public override string ToString () { return String.Format ("[{0}]{1} {2}::{3}", typeKey.Scope, type, typeKey.Fullname, name); } } }
mit
yogeshsaroya/new-cdnjs
ajax/libs/yui/3.17.2/pjax-base/pjax-base-coverage.js
130
version https://git-lfs.github.com/spec/v1 oid sha256:d2ffb3a44289a644d12305d24f1aa25fe95db7cecd5288c179a448fe24dcaec5 size 37731
mit
justaniles/smart-home-portal
src/app/accounts/lifx/lifx.component.ts
1127
import { FORM_DIRECTIVES } from "@angular/forms"; import { ViewEncapsulation, Component } from "@angular/core"; import { Router } from "@angular/router"; import { HomeService } from "../../homes"; import { GriddleConstants, GriddleService, RequestMethod } from "../../shared/griddle" @Component({ selector: '.pc-account-lifx', template: require('./lifx.html'), styles: [require('./lifx.scss')], directives: [FORM_DIRECTIVES], encapsulation: ViewEncapsulation.None }) export class LifxComponent { appKey: string; constructor(private griddleService: GriddleService, private _homeService: HomeService, private router: Router) { } submit() { const addLifxAccountUrl = GriddleConstants.ApiUrls.Put.AddLifxAccount .format({ home: this._homeService.currentHome.id }); const body = <any> { "AppKey": this.appKey }; this.griddleService.apiCall(RequestMethod.Put, addLifxAccountUrl, null, body) .subscribe(() => { this.router.navigate(["/homes"]); }); } }
mit
Azure/azure-sdk-for-ruby
management/azure_mgmt_container_service/lib/2017-07-01/generated/azure_mgmt_container_service/models/resource.rb
2954
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ContainerService::Mgmt::V2017_07_01 module Models # # The Resource model definition. # class Resource include MsRestAzure # @return [String] Resource Id attr_accessor :id # @return [String] Resource name attr_accessor :name # @return [String] Resource type attr_accessor :type # @return [String] Resource location attr_accessor :location # @return [Hash{String => String}] Resource tags attr_accessor :tags # @return [String] the name of the resource group of the resource. def resource_group unless self.id.nil? groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/) groups.captures[0].strip if groups end end # # Mapper for Resource class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Resource', type: { name: 'Composite', class_name: 'Resource', model_properties: { id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, location: { client_side_validation: true, required: true, serialized_name: 'location', type: { name: 'String' } }, tags: { client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } } } } } end end end end
mit
compactcode/static_sync
spec/storage_cache_spec.rb
2066
require "./lib/static_sync/storage_cache" module StaticSync describe StorageCache do let(:path) { "index.html" } let(:version_one) { StorageCache::Version.new(path, "0cc175b9c0f1b6a831c399e269772661") } let(:version_two) { StorageCache::Version.new(path, "92eb5ffee6ae2fec3ad71c777531578f") } let(:files) { [] } subject do StorageCache.new(files) end describe "#has_file?" do it "returns false by default" do subject.has_file?(version_one).should be_false subject.has_file?(version_two).should be_false end context "when an existing version of a file exists in the cache" do let(:files) { [version_one] } it "returns true if the given version is the same" do subject.has_file?(version_one).should be_true end end end describe "#has_version?" do it "returns false by default" do subject.has_version?(version_one).should be_false subject.has_version?(version_two).should be_false end context "when an existing version of a file exists in the cache" do let(:files) { [version_one] } it "returns false if the given version is different" do subject.has_version?(version_two).should be_false end it "returns true if the given version is the same" do subject.has_version?(version_one).should be_true end end end describe "#has_conflict?" do it "returns false by default" do subject.has_conflict?(version_one).should be_false subject.has_conflict?(version_two).should be_false end context "when an existing version of a file exists in the cache" do let(:files) { [version_one] } it "returns false when the given version is the same" do subject.has_conflict?(version_one).should be_false end it "returns true when the given version is different" do subject.has_conflict?(version_two).should be_true end end end end end
mit
keepwalking1234/neocoin
src/qt/locale/bitcoin_lv_LV.ts
115935
<?xml version="1.0" ?><!DOCTYPE TS><TS language="lv_LV" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About neocoin</source> <translation type="unfinished"/> </message> <message> <location line="+39"/> <source>&lt;b&gt;neocoin&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 neocoin 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 &lt;a href=&quot;http://www.opensource.org/licenses/mit-license.php&quot;&gt;http://www.opensource.org/licenses/mit-license.php&lt;/a&gt;. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (&lt;a href=&quot;https://www.openssl.org/&quot;&gt;https://www.openssl.org/&lt;/a&gt;) and cryptographic software written by Eric Young (&lt;a href=&quot;mailto:[email protected]&quot;&gt;[email protected]&lt;/a&gt;) and UPnP software written by Thomas Bernard.</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>Double-click to edit address or label</source> <translation>Adresi vai nosaukumu rediģē ar dubultklikšķi</translation> </message> <message> <location line="+24"/> <source>Create a new address</source> <translation>Izveidot jaunu adresi</translation> </message> <message> <location line="+10"/> <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="-7"/> <source>&amp;New Address</source> <translation type="unfinished"/> </message> <message> <location line="-43"/> <source>These are your neocoin 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="+53"/> <source>&amp;Copy Address</source> <translation>&amp;Kopēt adresi</translation> </message> <message> <location line="+7"/> <source>Show &amp;QR Code</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Sign a message to prove you own a neocoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Delete the currently selected address from the list</source> <translation type="unfinished"/> </message> <message> <location line="-10"/> <source>Verify a message to ensure it was signed with a specified neocoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>&amp;Delete</source> <translation>&amp;Dzēst</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+65"/> <source>Copy &amp;Label</source> <translation>Kopēt &amp;Nosaukumu</translation> </message> <message> <location line="+2"/> <source>&amp;Edit</source> <translation>&amp;Rediģēt</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>Fails ar komatu kā atdalītāju (*.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="+145"/> <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 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="+38"/> <source>Encrypt wallet</source> <translation>Šifrēt maciņu</translation> </message> <message> <location line="+7"/> <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="+45"/> <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 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 type="unfinished"/> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+103"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation type="unfinished"/> </message> <message> <location line="-133"/> <location line="+60"/> <source>Wallet encrypted</source> <translation>Maciņš nošifrēts</translation> </message> <message> <location line="-140"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;ten or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation type="unfinished"/> </message> <message> <location line="+82"/> <source>neocoin 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>Maciņa šifrēšana neizdevās</translation> </message> <message> <location line="-56"/> <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="+50"/> <source>The supplied passphrases do not match.</source> <translation>Ievadītās paroles nav vienādas.</translation> </message> <message> <location line="-38"/> <source>Wallet unlock failed</source> <translation>Maciņu atšifrēt neizdevās</translation> </message> <message> <location line="+1"/> <location line="+12"/> <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="+297"/> <source>Sign &amp;message...</source> <translation>Parakstīt &amp;ziņojumu...</translation> </message> <message> <location line="-64"/> <source>Show general overview of wallet</source> <translation>Rādīt vispārēju maciņa pārskatu</translation> </message> <message> <location line="+17"/> <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="+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="-18"/> <source>Show the list of addresses for receiving payments</source> <translation type="unfinished"/> </message> <message> <location line="+34"/> <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 neocoin</source> <translation type="unfinished"/> </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="+4"/> <source>&amp;Encrypt Wallet...</source> <translation>Š&amp;ifrēt maciņu...</translation> </message> <message> <location line="+2"/> <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="+9"/> <source>&amp;Export...</source> <translation type="unfinished"/> </message> <message> <location line="-55"/> <source>Send coins to a neocoin address</source> <translation type="unfinished"/> </message> <message> <location line="+39"/> <source>Modify configuration options for neocoin</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Export the data in the current tab to a file</source> <translation type="unfinished"/> </message> <message> <location line="-13"/> <source>Encrypt or decrypt wallet</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <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="+10"/> <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="-5"/> <source>&amp;Verify message...</source> <translation>&amp;Pārbaudīt ziņojumu...</translation> </message> <message> <location line="-214"/> <location line="+551"/> <source>neocoin</source> <translation type="unfinished"/> </message> <message> <location line="-551"/> <source>Wallet</source> <translation>Maciņš</translation> </message> <message> <location line="+193"/> <source>&amp;About neocoin</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <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="+28"/> <source>&amp;File</source> <translation>&amp;Fails</translation> </message> <message> <location line="+8"/> <source>&amp;Settings</source> <translation>&amp;Uzstādījumi</translation> </message> <message> <location line="+8"/> <source>&amp;Help</source> <translation>&amp;Palīdzība</translation> </message> <message> <location line="+17"/> <source>Tabs toolbar</source> <translation>Ciļņu rīkjosla</translation> </message> <message> <location line="+46"/> <location line="+9"/> <source>[testnet]</source> <translation>[testnet]</translation> </message> <message> <location line="+0"/> <location line="+58"/> <source>neocoin client</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+70"/> <source>%n active connection(s) to neocoin network</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+488"/> <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> <location line="-808"/> <source>&amp;Dashboard</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>&amp;Receive</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>&amp;Send</source> <translation type="unfinished"/> </message> <message> <location line="+49"/> <source>&amp;Unlock Wallet...</source> <translation type="unfinished"/> </message> <message> <location line="+273"/> <source>Up to date</source> <translation>Sinhronizēts</translation> </message> <message> <location line="+43"/> <source>Catching up...</source> <translation>Sinhronizējos...</translation> </message> <message> <location line="+113"/> <source>Confirm transaction fee</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Sent transaction</source> <translation>Transakcija nosūtīta</translation> </message> <message> <location line="+1"/> <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="+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 neocoin address or malformed URI parameters.</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Wallet is &lt;b&gt;not encrypted&lt;/b&gt;</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <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 line="+24"/> <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="+91"/> <source>%n second(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n minute(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="-429"/> <location line="+433"/> <source>%n hour(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="-456"/> <source>Processed %1 blocks of transaction history.</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+27"/> <location line="+433"/> <source>%n day(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="-429"/> <location line="+6"/> <source>%n week(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+0"/> <source>%1 and %2</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+0"/> <source>%n year(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+5"/> <source>%1 behind</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <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="+23"/> <source>Error</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Information</source> <translation type="unfinished"/> </message> <message> <location line="+69"/> <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="+324"/> <source>Not staking</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoin.cpp" line="+104"/> <source>A fatal error occurred. neocoin can no longer continue safely and will quit.</source> <translation type="unfinished"/> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+110"/> <source>Network Alert</source> <translation>Tīkla brīdinājums</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>Daudzums:</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="+552"/> <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>Daudzums</translation> </message> <message> <location line="+5"/> <source>Label</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Address</source> <translation>Adrese</translation> </message> <message> <location line="+5"/> <source>Date</source> <translation>Datums</translation> </message> <message> <location line="+5"/> <source>Confirmations</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Confirmed</source> <translation>Apstiprināts</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>Kopēt adresi</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>Kopēt nosaukumu</translation> </message> <message> <location line="+1"/> <location line="+26"/> <source>Copy amount</source> <translation>Kopēt daudzumu</translation> </message> <message> <location line="-25"/> <source>Copy transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>Copy quantity</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Copy fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy after fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy bytes</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy priority</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy low output</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy change</source> <translation type="unfinished"/> </message> <message> <location line="+317"/> <source>highest</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>high</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>medium-high</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>medium</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>low-medium</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>low</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>lowest</source> <translation type="unfinished"/> </message> <message> <location line="+155"/> <source>DUST</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>yes</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>This label turns red, if the transaction size is bigger than 10000 bytes. This means a fee of at least %1 per kb is required. Can vary +/- 1 Byte per input.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transactions with higher priority get more likely into a block. This label turns red, if the priority is smaller than &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="+36"/> <location line="+66"/> <source>(no label)</source> <translation>(bez nosaukuma)</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>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 type="unfinished"/> </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 type="unfinished"/> </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 neocoin address.</source> <translation type="unfinished"/> </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="+426"/> <location line="+12"/> <source>neocoin-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>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. Fee 0.01 recommended.</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>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 neocoin after logging in to the system.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Start neocoin on system login</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>&amp;Network</source> <translation>&amp;Tīkls</translation> </message> <message> <location line="+6"/> <source>Automatically open the neocoin 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>Kartēt portu, izmantojot &amp;UPnP</translation> </message> <message> <location line="+7"/> <source>Connect to the neocoin 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>Proxy &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;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 neocoin.</source> <translation type="unfinished"/> </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 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="+7"/> <source>Whether to select the coin outputs randomly or with minimal coin age.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Minimize weight consumption (experimental)</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Use black visual theme (requires restart)</source> <translation type="unfinished"/> </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 type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="+53"/> <source>default</source> <translation>pēc noklusēšanas</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 neocoin.</source> <translation type="unfinished"/> </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="+46"/> <location line="+247"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the neocoin network after a connection is established, but this process has not completed yet.</source> <translation type="unfinished"/> </message> <message> <location line="-173"/> <source>Stake:</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>Unconfirmed:</source> <translation type="unfinished"/> </message> <message> <location line="-113"/> <source>Wallet</source> <translation>Maciņš</translation> </message> <message> <location line="+49"/> <source>Spendable:</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Your current spendable balance</source> <translation type="unfinished"/> </message> <message> <location line="+80"/> <source>Immature:</source> <translation>Nenobriedušu:</translation> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Total:</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Your current total balance</source> <translation type="unfinished"/> </message> <message> <location line="+50"/> <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="-118"/> <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="-32"/> <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="+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 neocoin: click-to-pay handler</source> <translation type="unfinished"/> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="+14"/> <source>QR Code Dialog</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation type="unfinished"/> </message> <message> <location line="+56"/> <source>Amount:</source> <translation type="unfinished"/> </message> <message> <location line="-44"/> <source>Label:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Message:</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>&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>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"/> <source>N/A</source> <translation>N/A</translation> </message> <message> <location line="-194"/> <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 type="unfinished"/> </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="+197"/> <source>&amp;Network Traffic</source> <translation type="unfinished"/> </message> <message> <location line="+52"/> <source>&amp;Clear</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Totals</source> <translation type="unfinished"/> </message> <message> <location line="+64"/> <source>In:</source> <translation type="unfinished"/> </message> <message> <location line="+80"/> <source>Out:</source> <translation type="unfinished"/> </message> <message> <location line="-383"/> <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 neocoin-Qt help message to get a list with possible neocoin 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="-237"/> <source>Build date</source> <translation>Kompilācijas datums</translation> </message> <message> <location line="-104"/> <source>neocoin - Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>neocoin Core</source> <translation type="unfinished"/> </message> <message> <location line="+256"/> <source>Debug log file</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Open the neocoin 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="+325"/> <source>Welcome to the neocoin 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>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> <message> <location line="+127"/> <source>%1 B</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1 KB</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1 MB</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1 GB</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>%1 m</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>%1 h</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1 h %2 m</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="+14"/> <location filename="../sendcoinsdialog.cpp" line="+181"/> <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="+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>Daudzums:</translation> </message> <message> <location line="+22"/> <location line="+86"/> <location line="+86"/> <location line="+32"/> <source>0.00 BC</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>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="+16"/> <source>Remove all transaction fields</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation>&amp;Notīrīt visu</translation> </message> <message> <location line="+24"/> <source>Balance:</source> <translation>Bilance:</translation> </message> <message> <location line="+16"/> <source>123.456 BC</source> <translation type="unfinished"/> </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="-173"/> <source>Enter a neocoin address (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</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>Kopēt daudzumu</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>Apstiprināt bitkoinu sūtīšanu</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 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 type="unfinished"/> </message> <message> <location line="+247"/> <source>WARNING: Invalid neocoin address</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>(no label)</source> <translation>(bez nosaukuma)</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>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. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</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 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>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 type="unfinished"/> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a neocoin address (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source> <translation type="unfinished"/> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <location filename="../forms/signverifymessagedialog.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <location line="+124"/> <source>&amp;Sign Message</source> <translation type="unfinished"/> </message> <message> <location line="-118"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</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>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="+24"/> <source>Copy the current signature to the system clipboard</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this neocoin address</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Reset all sign message fields</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation>&amp;Notīrīt visu</translation> </message> <message> <location line="-87"/> <location line="+70"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="-64"/> <source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified neocoin address</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Reset all verify message fields</source> <translation type="unfinished"/> </message> <message> <location filename="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a neocoin address (e.g. B8gZqgY4r2RoEdqYk3QsAqFckyf9pRHN6i)</source> <translation type="unfinished"/> </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 neocoin 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>TrafficGraphWidget</name> <message> <location filename="../trafficgraphwidget.cpp" line="+75"/> <source>KB/s</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+25"/> <source>Open until %1</source> <translation>Atvērts līdz %1</translation> </message> <message> <location line="+6"/> <source>conflicted</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <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="+17"/> <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 510 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &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="+5"/> <source>Inputs</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <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="-36"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+71"/> <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="+231"/> <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> <location line="+52"/> <source>Open until %1</source> <translation>Atvērts līdz %1</translation> </message> <message> <location line="+12"/> <source>Confirmed (%1 confirmations)</source> <translation>Apstiprināts (%1 apstiprinājumu)</translation> </message> <message numerus="yes"> <location line="-15"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+6"/> <source>Offline</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Unconfirmed</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Confirming (%1 of %2 recommended confirmations)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Conflicted</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Immature (%1 confirmations, will be available after %2)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>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="+42"/> <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="+194"/> <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="+54"/> <location line="+17"/> <source>All</source> <translation>Visi</translation> </message> <message> <location line="-16"/> <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="+12"/> <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="+138"/> <source>Export Transaction Data</source> <translation type="unfinished"/> </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 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>Diapazons:</translation> </message> <message> <location line="+8"/> <source>to</source> <translation>uz</translation> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+208"/> <source>Sending...</source> <translation type="unfinished"/> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+173"/> <source>neocoin version</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Usage:</source> <translation>Lietojums:</translation> </message> <message> <location line="+1"/> <source>Send command to -server or neocoind</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>List commands</source> <translation>Komandu saraksts</translation> </message> <message> <location line="+1"/> <source>Get help for a command</source> <translation>Palīdzība par komandu</translation> </message> <message> <location line="-147"/> <source>Options:</source> <translation>Iespējas:</translation> </message> <message> <location line="+2"/> <source>Specify configuration file (default: neocoin.conf)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Specify pid file (default: neocoind.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>Norādiet datu direktoriju</translation> </message> <message> <location line="-25"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=neocoinrpc 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;neocoin Alert&quot; [email protected] </source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <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="+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>Uzturēt līdz &lt;n&gt; savienojumiem ar citiem mezgliem(pēc noklusēšanas: 125)</translation> </message> <message> <location line="+3"/> <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="+1"/> <source>Specify your own public address</source> <translation>Norādiet savu publisko adresi</translation> </message> <message> <location line="+4"/> <source>Bind to given address. Use [host]:port notation for IPv6</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Query for peer addresses via DNS lookup, if low on addresses (default: 1 unless -connect)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Always query for peer addresses via DNS lookup (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <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="+1"/> <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="-37"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation type="unfinished"/> </message> <message> <location line="+65"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 15715 or testnet: 25715)</source> <translation type="unfinished"/> </message> <message> <location line="-17"/> <source>Accept command line and JSON-RPC commands</source> <translation>Pieņemt komandrindas un JSON-RPC komandas</translation> </message> <message> <location line="+1"/> <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="+1"/> <source>Use the test network</source> <translation>Izmantot testa tīklu</translation> </message> <message> <location line="-24"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation type="unfinished"/> </message> <message> <location line="-29"/> <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="+96"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <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="-103"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong neocoin will not work properly.</source> <translation type="unfinished"/> </message> <message> <location line="+132"/> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation type="unfinished"/> </message> <message> <location line="-18"/> <source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source> <translation type="unfinished"/> </message> <message> <location line="-31"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Block creation options:</source> <translation type="unfinished"/> </message> <message> <location line="-69"/> <source>Connect only to the specified node(s)</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation type="unfinished"/> </message> <message> <location line="+101"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation type="unfinished"/> </message> <message> <location line="-91"/> <source>Sync checkpoints policy (default: strict)</source> <translation type="unfinished"/> </message> <message> <location line="+89"/> <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="-88"/> <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="-17"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Prepend debug output with timestamp</source> <translation type="unfinished"/> </message> <message> <location line="+41"/> <source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source> <translation type="unfinished"/> </message> <message> <location line="-81"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation type="unfinished"/> </message> <message> <location line="+42"/> <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="+5"/> <source>Send trace/debug info to debugger</source> <translation type="unfinished"/> </message> <message> <location line="+30"/> <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="-35"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation type="unfinished"/> </message> <message> <location line="-43"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation type="unfinished"/> </message> <message> <location line="+116"/> <source>Unable to sign checkpoint, wrong checkpointkey? </source> <translation type="unfinished"/> </message> <message> <location line="-86"/> <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="-26"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation type="unfinished"/> </message> <message> <location line="+47"/> <source>Username for JSON-RPC connections</source> <translation>JSON-RPC savienojumu lietotājvārds</translation> </message> <message> <location line="+51"/> <source>Verifying database integrity...</source> <translation type="unfinished"/> </message> <message> <location line="+44"/> <source>Error: Wallet locked, unable to create transaction!</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <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>Error: Transaction creation failed!</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <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="+7"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Information</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>WARNING: syncronized checkpoint violation detected, but skipped!</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation type="unfinished"/> </message> <message> <location line="-54"/> <source>wallet.dat corrupt, salvage failed</source> <translation type="unfinished"/> </message> <message> <location line="-56"/> <source>Password for JSON-RPC connections</source> <translation>JSON-RPC savienojumu parole</translation> </message> <message> <location line="-32"/> <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="+13"/> <source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Output debugging information (default: 0, supplying &lt;category&gt; is optional)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>If &lt;category&gt; is not supplied, output all debugging information.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>&lt;category&gt; can be:</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Enter regression test mode, which uses a special chain in which blocks can be solved instantly. This is intended for regression testing tools and app development.</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <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="+1"/> <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="+1"/> <source>Wait for RPC server to start</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set the number of threads to service RPC calls (default: 4)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation>Izpildīt komandu, kad labāk atbilstošais bloks izmainās (%s cmd aizvieto ar bloka hešu)</translation> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Require a confirmations for change (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+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>Atjaunot maciņa formātu uz jaunāko</translation> </message> <message> <location line="+1"/> <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="+1"/> <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="+3"/> <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="+9"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>JSON-RPC savienojumiem izmantot OpenSSL (https)</translation> </message> <message> <location line="+1"/> <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="+10"/> <source>Initialization sanity check failed. neocoin is shutting down.</source> <translation type="unfinished"/> </message> <message> <location line="+50"/> <source>Error: Wallet unlocked for staking only, unable to create transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Error: Disk space is low!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <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="+3"/> <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="-174"/> <source>This help message</source> <translation>Šis palīdzības paziņojums</translation> </message> <message> <location line="+104"/> <source>Wallet %s resides outside data directory %s.</source> <translation type="unfinished"/> </message> <message> <location line="+37"/> <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="-133"/> <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>Atļaut DNS uzmeklēšanu priekš -addnode, -seednode un -connect</translation> </message> <message> <location line="+126"/> <source>Loading addresses...</source> <translation>Ielādē adreses...</translation> </message> <message> <location line="-12"/> <source>Error loading blkindex.dat</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation>Nevar ielādēt wallet.dat: maciņš bojāts</translation> </message> <message> <location line="+4"/> <source>Error loading wallet.dat: Wallet requires newer version of neocoin</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Wallet needed to be rewritten: restart neocoin to complete</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error loading wallet.dat</source> <translation>Kļūda ielādējot wallet.dat</translation> </message> <message> <location line="-16"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation>Nederīga -proxy adrese: &apos;%s&apos;</translation> </message> <message> <location line="-1"/> <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="+4"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation>Nevar uzmeklēt -bind adresi: &apos;%s&apos;</translation> </message> <message> <location line="+2"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation>Nevar atrisināt -externalip adresi: &apos;%s&apos;</translation> </message> <message> <location line="-23"/> <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="+60"/> <source>Sending...</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Invalid amount</source> <translation>Nederīgs daudzums</translation> </message> <message> <location line="+1"/> <source>Insufficient funds</source> <translation>Nepietiek bitkoinu</translation> </message> <message> <location line="-40"/> <source>Loading block index...</source> <translation>Ielādē bloku indeksu...</translation> </message> <message> <location line="-110"/> <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="+125"/> <source>Unable to bind to %s on this computer. neocoin is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="-101"/> <source>Fee per KB to add to transactions you send</source> <translation type="unfinished"/> </message> <message> <location line="+34"/> <source>Minimize weight consumption (experimental) (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>How many blocks to check at startup (default: 500, 0 = all)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Keep at most &lt;n&gt; unconnectable blocks in memory (default: %u)</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Acceptable ciphers (default: TLSv1.2+HIGH:TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!3DES:@STRENGTH)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: Deprecated argument -debugnet ignored, use -debug=net</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Invalid amount for -mininput=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Cannot obtain a lock on data directory %s. neocoin is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error initializing wallet database environment %s!</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Loading wallet...</source> <translation>Ielādē maciņu...</translation> </message> <message> <location line="+8"/> <source>Cannot downgrade wallet</source> <translation>Nevar maciņa formātu padarīt vecāku</translation> </message> <message> <location line="+1"/> <source>Cannot write default address</source> <translation>Nevar ierakstīt adresi pēc noklusēšanas</translation> </message> <message> <location line="+1"/> <source>Rescanning...</source> <translation>Skanēju no jauna...</translation> </message> <message> <location line="+2"/> <source>Done loading</source> <translation>Ielāde pabeigta</translation> </message> <message> <location line="-161"/> <source>To use the %s option</source> <translation>Izmantot opciju %s</translation> </message> <message> <location line="+188"/> <source>Error</source> <translation>Kļūda</translation> </message> <message> <location line="-18"/> <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>
mit
akashgangil/Tiger
src/TigerWhile.java
1327
import java.util.*; import org.antlr.runtime.tree.*; public class TigerWhile extends TigerStatement { private TigerExpression condition; private List<TigerStatement> statements; public static TigerWhile fromAstNode(CommonTree whileTree, TigerScope scope) throws Exception { List<TigerStatement> statements = new LinkedList<TigerStatement>(); CommonTree conditionTree = (CommonTree)whileTree.getChild(0); TigerExpression condition = TigerExpression.fromAstNode(conditionTree, scope); if (condition == null || !TigerSemanticError.assertTypesMatch(conditionTree, TigerType.Boolean(), condition.type)) { return null; } CommonTree statementstTree = (CommonTree)whileTree.getChild(1); if (statementstTree.getChildren() != null) { for (Object child : statementstTree.getChildren()) { CommonTree statementTree = (CommonTree)child; TigerStatement statement = TigerStatement.fromAstNode(statementTree, scope); statements.add(statement); } } TigerWhile whileStatement = new TigerWhile(); whileStatement.condition = condition; whileStatement.statements = statements; return whileStatement; } }
mit
ashutoshrishi/slate
packages/slate/benchmark/models/to-json.js
495
/** @jsx h */ /* eslint-disable react/jsx-key */ import h from '../../test/helpers/h' export default function(value) { value.toJSON() } export const input = ( <value> <document> {Array.from(Array(10)).map(() => ( <quote> <paragraph> <paragraph> This is editable <b>rich</b> text, <i>much</i> better than a textarea! </paragraph> </paragraph> </quote> ))} </document> </value> )
mit
albertoconnor/website
articles/migrations/0001_initial.py
7175
# -*- coding: utf-8 -*- from __future__ import unicode_literals import django.db.models.deletion import modelcluster.fields import wagtail.wagtailcore.blocks import wagtail.wagtailcore.fields import wagtail.wagtailembeds.blocks import wagtail.wagtailimages.blocks from django.db import migrations, models import articles.fields class Migration(migrations.Migration): dependencies = [ ('wagtailimages', '0006_add_verbose_names'), ('wagtailcore', '0001_squashed_0016_change_page_url_path_to_text_field'), ] operations = [ migrations.CreateModel( name='ArticleAuthorLink', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('sort_order', models.IntegerField(null=True, editable=False, blank=True)), ], options={ 'ordering': ['sort_order'], 'abstract': False, }, ), migrations.CreateModel( name='ArticleListPage', fields=[ ('page_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='wagtailcore.Page')), ], options={ 'abstract': False, }, bases=('wagtailcore.page',), ), migrations.CreateModel( name='ArticlePage', fields=[ ('page_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='wagtailcore.Page')), ('subtitle', wagtail.wagtailcore.fields.RichTextField(default='', blank=True)), ('body', articles.fields.BodyField([('Heading', wagtail.wagtailcore.blocks.CharBlock(classname='heading', icon='title')), ('Paragraph', wagtail.wagtailcore.blocks.RichTextBlock(icon='doc-full')), ('Image', wagtail.wagtailimages.blocks.ImageChooserBlock(icon='image')), ('Embed', wagtail.wagtailembeds.blocks.EmbedBlock(icon='site')), ('List', wagtail.wagtailcore.blocks.ListBlock(wagtail.wagtailcore.blocks.RichTextBlock(label='item'), icon='list-ul')), ('Sharable', articles.fields.SharableBlock())])), ('excerpt', wagtail.wagtailcore.fields.RichTextField(default='', blank=True)), ('main_image', models.ForeignKey(related_name='+', on_delete=django.db.models.deletion.SET_NULL, blank=True, to='wagtailimages.Image', null=True)), ], options={ 'abstract': False, }, bases=('wagtailcore.page',), ), migrations.CreateModel( name='ArticleTopicLink', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('article', modelcluster.fields.ParentalKey(related_name='topic_links', to='articles.ArticlePage')), ], ), migrations.CreateModel( name='SeriesArticleLink', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('sort_order', models.IntegerField(null=True, editable=False, blank=True)), ('override_text', wagtail.wagtailcore.fields.RichTextField(default='', help_text='This field is optional. If not provided, the text will be pulled from the article page automatically. This field allows you to override the automatic text.', blank=True)), ('article', models.ForeignKey(related_name='series_links', on_delete=django.db.models.deletion.SET_NULL, blank=True, to='articles.ArticlePage', null=True)), ], options={ 'ordering': ['sort_order'], 'abstract': False, }, ), migrations.CreateModel( name='SeriesListPage', fields=[ ('page_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='wagtailcore.Page')), ], options={ 'abstract': False, }, bases=('wagtailcore.page',), ), migrations.CreateModel( name='SeriesPage', fields=[ ('page_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='wagtailcore.Page')), ('body', articles.fields.BodyField([('Heading', wagtail.wagtailcore.blocks.CharBlock(classname='heading', icon='title')), ('Paragraph', wagtail.wagtailcore.blocks.RichTextBlock(icon='doc-full')), ('Image', wagtail.wagtailimages.blocks.ImageChooserBlock(icon='image')), ('Embed', wagtail.wagtailembeds.blocks.EmbedBlock(icon='site')), ('List', wagtail.wagtailcore.blocks.ListBlock(wagtail.wagtailcore.blocks.RichTextBlock(label='item'), icon='list-ul')), ('Sharable', articles.fields.SharableBlock())], default='', blank=True)), ('image', models.ForeignKey(related_name='+', on_delete=django.db.models.deletion.SET_NULL, blank=True, to='wagtailimages.Image', null=True)), ], options={ 'abstract': False, }, bases=('wagtailcore.page',), ), migrations.CreateModel( name='Topic', fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('name', models.CharField(max_length=1024)), ], ), migrations.AddField( model_name='seriespage', name='primary_topic', field=models.ForeignKey(related_name='+', on_delete=django.db.models.deletion.SET_NULL, blank=True, to='articles.Topic', null=True), ), migrations.AddField( model_name='seriesarticlelink', name='series', field=modelcluster.fields.ParentalKey(related_name='related_article_links', to='articles.SeriesPage'), ), migrations.AddField( model_name='seriesarticlelink', name='override_image', field=models.ForeignKey(related_name='+', on_delete=django.db.models.deletion.SET_NULL, blank=True, to='wagtailimages.Image', help_text='This field is optional. If not provided, the image will be pulled from the article page automatically. This field allows you to override the automatic image.', null=True), ), migrations.AddField( model_name='articletopiclink', name='topic', field=models.ForeignKey(related_name='article_links', to='articles.Topic'), ), migrations.AddField( model_name='articlepage', name='primary_topic', field=models.ForeignKey(related_name='+', on_delete=django.db.models.deletion.SET_NULL, blank=True, to='articles.Topic', null=True), ), migrations.AddField( model_name='articleauthorlink', name='article', field=modelcluster.fields.ParentalKey(related_name='author_links', to='articles.ArticlePage'), ), ]
mit
changbenny/leopard
src/schedule.js
1078
import emitter from './emitter' var queue = [] var counter = 0 var levels = 1000 for (let i = 0; i < levels; i ++) queue.push([]) export function run(count) { for (var i = 0; i < queue.length; i ++) { if (count < 1) break var level = queue[i] while (level.length) { if (count < 1) break counter -- // the bigger of level, the less emergent to complete // So we deduce more for higher level (lower priority) actions count -- var callback = level.shift() if (callback && typeof callback === 'function') callback() if (!level.length) { emitter.emit(i) } } /* istanbul ignore if */ if (i === queue.length - 1 && counter === 0) { return false } } return true } export function enqueue(priority, callback, times) { if (!times) { queue[priority].push(callback) counter ++ } else { while (times--) { queue[priority].push(callback) counter ++ } } } export function flush() { for (let i = 0; i < levels; i ++) queue[i].length = 0 counter = 0 }
mit
alagalia/CSharp-OOP-Advanced-New
Interfaces and Abstraction/Interfaces/02. Multiple Implementation/MultipleImplementation.cs
1919
using System; namespace _02.Multiple_Implementation { using System.Reflection; public class MultipleImplementation { public static void Main() { Type identifiableInterface = typeof(Citizen).GetInterface("IIdentifiable"); Type birthableInterface = typeof(Citizen).GetInterface("IBirthable"); PropertyInfo[] properties = identifiableInterface.GetProperties(); Console.WriteLine(properties.Length); Console.WriteLine(properties[0].PropertyType.Name); properties = birthableInterface.GetProperties(); Console.WriteLine(properties.Length); Console.WriteLine(properties[0].PropertyType.Name); string name = Console.ReadLine(); int age = int.Parse(Console.ReadLine()); string id = Console.ReadLine(); string birthdate = Console.ReadLine(); IIdentifiable identifiable = new Citizen(name, age, id, birthdate); IBirthable birthable = new Citizen(name, age, id, birthdate); } } public interface IPerson { string Name { get; } int Age { get; } } public interface IIdentifiable { string Id { get; } } public interface IBirthable { string Birthdate { get; } } public class Citizen : IPerson, IIdentifiable, IBirthable { private string name; private int age; private string id; private string birthdate; public Citizen(string name, int age, string id, string birthdate) { this.name = name; this.age = age; this.id = id; this.birthdate = birthdate; } public string Name => this.name; public int Age => this.age; public string Id => this.id; public string Birthdate => this.birthdate; } }
mit
zreyn/p3_web
public/js/p3/widget/app/PhylogeneticTree.js
16138
define([ 'dojo/_base/declare', 'dojo/on', 'dojo/dom-class', 'dojo/text!./templates/PhylogeneticTree.html', './AppBase', 'dojo/dom-construct', 'dijit/registry', 'dojo/_base/lang', 'dojo/domReady!', 'dojo/query', 'dojo/dom', 'dijit/Dialog', '../../WorkspaceManager', 'dojo/when' ], function ( declare, on, domClass, Template, AppBase, domConstruct, registry, lang, domReady, query, dom, Dialog, WorkspaceManager, when ) { return declare([AppBase], { baseClass: 'App Assembly', templateString: Template, applicationName: 'PhylogeneticTree', applicationHelp: 'user_guides/services/phylogenetic_tree_building_service.html', tutorialLink: 'tutorial/phylogenetic_tree_building/tree_building.html', pageTitle: 'Phylogenetic Tree Building', defaultPath: '', startingRows: 9, constructor: function () { this._selfSet = true; this.inGroup = {}; this.inGroup.addedList = []; // list of genome id, duplicate is allowed this.inGroup.addedNum = 0; this.inGroup.genomeToAttachPt = ['in_genome_id']; this.inGroup.genomeGroupToAttachPt = ['in_genomes_genomegroup']; this.inGroup.maxGenomes = 100; this.outGroup = {}; this.outGroup.addedList = []; this.outGroup.addedNum = 0; this.outGroup.genomeToAttachPt = ['out_genome_id']; this.outGroup.genomeGroupToAttachPt = ['out_genomes_genomegroup']; this.outGroup.maxGenomes = 5; this.selectedTR = []; // list of selected TR for ingroup and outgroup, used in onReset() }, startup: function () { var _self = this; if (this._started) { return; } this.inherited(arguments); _self.defaultPath = WorkspaceManager.getDefaultFolder() || _self.activeWorkspacePath; _self.output_path.set('value', _self.defaultPath); this.emptyTable(this.inGroupGenomeTable, this.startingRows); this.emptyTable(this.outGroupGenomeTable, this.startingRows); this.inGroupNumGenomes.startup(); this.outGroupNumGenomes.startup(); this._started = true; }, emptyTable: function (target, rowLimit) { for (var i = 0; i < rowLimit; i++) { var tr = target.insertRow(0);// domConstr.create("tr",{},this.genomeTableBody); domConstruct.create('td', { innerHTML: "<div class='emptyrow'></div>" }, tr); domConstruct.create('td', { innerHTML: "<div class='emptyrow'></div>" }, tr); domConstruct.create('td', { innerHTML: "<div class='emptyrow'></div>" }, tr); } }, ingestAttachPoints: function (input_pts, target, req) { req = typeof req !== 'undefined' ? req : true; var success = 1; input_pts.forEach(function (attachname) { var cur_value = null; var incomplete = 0; var browser_select = 0; if (attachname == 'output_path') { cur_value = this[attachname].searchBox.value; browser_select = 1; } else if (attachname == 'in_genomes_genomegroup' || attachname == 'out_genomes_genomegroup') { cur_value = this[attachname].searchBox.value; var attachType = 'genomes_genomegroup'; var inDuplicate = this.checkDuplicate(cur_value, 'in', attachType); var outDuplicate = this.checkDuplicate(cur_value, 'out', attachType); success = success * inDuplicate * outDuplicate; } else if (attachname == 'in_genome_id' || attachname == 'out_genome_id') { cur_value = this[attachname].value; var attachType = 'genome_id'; var inDuplicate = this.checkDuplicate(cur_value, 'in', attachType); var outDuplicate = this.checkDuplicate(cur_value, 'out', attachType); success = success * inDuplicate * outDuplicate; } else { cur_value = this[attachname].value; } console.log('cur_value=' + cur_value); if (typeof (cur_value) == 'string') { target[attachname] = cur_value.trim(); } else { target[attachname] = cur_value; } if (req && (!target[attachname] || incomplete)) { if (browser_select) { this[attachname].searchBox.validate(); // this should be whats done but it doesn't actually call the new validator this[attachname].searchBox._set('state', 'Error'); this[attachname].focus = true; } success = 0; } else { this[attachname]._set('state', ''); } if (target[attachname] != '') { target[attachname] = target[attachname] || undefined; } else if (target[attachname] == 'true') { target[attachname] = true; } else if (target[attachname] == 'false') { target[attachname] = false; } }, this); return (success); }, checkDuplicate: function (cur_value, groupTypePrefix, attachType) { var success = 1; var genomeIds = []; var genomeList = query('.' + groupTypePrefix + 'GroupGenomeData'); genomeList.forEach(function (item) { genomeIds.push(item.genomeRecord[groupTypePrefix + '_' + attachType]); }); if (genomeIds.length > 0 && genomeIds.indexOf(cur_value) > -1) { // found duplicate success = 0; } return success; }, makeGenomeName: function (groupType) { var name = this[this[groupType].genomeToAttachPt].get('displayedValue'); var maxLength = 36; return this.genDisplayName(name, maxLength); }, makeGenomeGroupName: function (groupType, newGenomeIds) { var name = this[this[groupType].genomeGroupToAttachPt].searchBox.get('displayedValue'); var maxLength = 36; return this.genDisplayName(name, maxLength) + ' (' + newGenomeIds.length + ' genomes)'; }, genDisplayName: function (name, maxLength) { // generate a display name up to maxLength var display_name = name; if (name.length > maxLength) { display_name = name.substr(0, (maxLength / 2) - 2) + '...' + name.substr((name.length - (maxLength / 2)) + 2); } return display_name; }, increaseGenome: function (groupType, newGenomeIds) { newGenomeIds.forEach(lang.hitch(this, function (id) { this[groupType].addedList.push(id); })); this[groupType].addedNum = this[groupType].addedList.length; this[groupType + 'NumGenomes'].set('value', Number(this[groupType].addedNum)); }, decreaseGenome: function (groupType, newGenomeIds) { newGenomeIds.forEach(lang.hitch(this, function (id) { var idx = this[groupType].addedList.indexOf(id); if (idx > -1) { this[groupType].addedList.splice(idx, 1); } })); this[groupType].addedNum = this[groupType].addedList.length; this[groupType + 'NumGenomes'].set('value', Number(this[groupType].addedNum)); }, onAddInGroupGenome: function () { var groupType = 'inGroup'; this.onAddGenome(groupType); }, onAddOutGroupGenome: function () { var groupType = 'outGroup'; this.onAddGenome(groupType); }, onAddGenome: function (groupType) { // console.log("Create New Row", domConstruct); var lrec = {}; lrec.groupType = groupType; var chkPassed = this.ingestAttachPoints(this[groupType].genomeToAttachPt, lrec); // console.log("this.genomeToAttachPt = " + this.genomeToAttachPt); // console.log("chkPassed = " + chkPassed + " lrec = " + lrec); if (chkPassed && this[groupType].addedNum < this[groupType].maxGenomes) { var newGenomeIds = [lrec[this[groupType].genomeToAttachPt]]; var tr = this[groupType + 'GenomeTable'].insertRow(0); lrec.row = tr; var td = domConstruct.create('td', { 'class': 'textcol ' + groupType + 'GenomeData', innerHTML: '' }, tr); td.genomeRecord = lrec; td.innerHTML = "<div class='libraryrow'>" + this.makeGenomeName(groupType) + '</div>'; domConstruct.create('td', { innerHTML: '' }, tr); var td2 = domConstruct.create('td', { innerHTML: "<i class='fa icon-x fa-1x' />" }, tr); if (this[groupType].addedNum < this.startingRows) { this[groupType + 'GenomeTable'].deleteRow(-1); } var handle = on(td2, 'click', lang.hitch(this, function (evt) { // console.log("Delete Row: groupType ="+groupType+" newGenomeIds = " + newGenomeIds); domConstruct.destroy(tr); this.decreaseGenome(groupType, newGenomeIds); if (this[groupType].addedNum < this.startingRows) { var ntr = this[groupType + 'GenomeTable'].insertRow(-1); domConstruct.create('td', { innerHTML: "<div class='emptyrow'></div>" }, ntr); domConstruct.create('td', { innerHTML: "<div class='emptyrow'></div>" }, ntr); domConstruct.create('td', { innerHTML: "<div class='emptyrow'></div>" }, ntr); } handle.remove(); })); lrec.handle = handle; this.selectedTR.push(lrec); this.increaseGenome(groupType, newGenomeIds); } // console.log(lrec); }, onAddInGroupGenomeGroup: function () { var groupType = 'inGroup'; this.onAddGenomeGroup(groupType); }, onAddOutGroupGenomeGroup: function () { var groupType = 'outGroup'; this.onAddGenomeGroup(groupType); }, onAddGenomeGroup: function (groupType) { // console.log("Create New Row", domConstruct); var lrec = {}; lrec.groupType = groupType; var chkPassed = this.ingestAttachPoints(this[groupType].genomeGroupToAttachPt, lrec); // console.log("this[groupType].genomeGroupToAttachPt = " + this[groupType].genomeGroupToAttachPt); // console.log("chkPassed = " + chkPassed + " lrec = " + lrec); var path = lrec[this[groupType].genomeGroupToAttachPt]; when(WorkspaceManager.getObject(path), lang.hitch(this, function (res) { if (typeof res.data == 'string') { res.data = JSON.parse(res.data); } if (res && res.data && res.data.id_list) { if (res.data.id_list.genome_id) { var newGenomeIds = res.data.id_list.genome_id; } } // display a notice if adding new genome group exceeds maximum allowed number var count = this[groupType].addedNum + newGenomeIds.length; if (count > this[groupType].maxGenomes) { var msg = 'Sorry, you can only add up to ' + this[groupType].maxGenomes + ' genomes'; msg += ' in ' + groupType[0].toUpperCase() + groupType.substring(1).toLowerCase(); msg += ' and you are trying to select ' + count + '.'; new Dialog({ title: 'Notice', content: msg }).show(); } // console.log("newGenomeIds = ", newGenomeIds); if (chkPassed && this[groupType].addedNum < this[groupType].maxGenomes && newGenomeIds.length > 0 && this[groupType].addedNum + newGenomeIds.length <= this[groupType].maxGenomes) { var tr = this[groupType + 'GenomeTable'].insertRow(0); lrec.row = tr; var td = domConstruct.create('td', { 'class': 'textcol ' + groupType + 'GenomeData', innerHTML: '' }, tr); td.genomeRecord = lrec; td.innerHTML = "<div class='libraryrow'>" + this.makeGenomeGroupName(groupType, newGenomeIds) + '</div>'; domConstruct.create('td', { innerHTML: '' }, tr); var td2 = domConstruct.create('td', { innerHTML: "<i class='fa icon-x fa-1x' />" }, tr); if (this[groupType].addedNum < this.startingRows) { this[groupType + 'GenomeTable'].deleteRow(-1); } var handle = on(td2, 'click', lang.hitch(this, function (evt) { // console.log("Delete Row"); domConstruct.destroy(tr); this.decreaseGenome(groupType, newGenomeIds); if (this[groupType].addedNum < this.startingRows) { var ntr = this[groupType + 'GenomeTable'].insertRow(-1); domConstruct.create('td', { innerHTML: "<div class='emptyrow'></div>" }, ntr); domConstruct.create('td', { innerHTML: "<div class='emptyrow'></div>" }, ntr); domConstruct.create('td', { innerHTML: "<div class='emptyrow'></div>" }, ntr); } handle.remove(); })); lrec.handle = handle; this.selectedTR.push(lrec); this.increaseGenome(groupType, newGenomeIds); } })); // console.log(lrec); }, onSubmit: function (evt) { var _self = this; evt.preventDefault(); evt.stopPropagation(); if (this.validate()) { var values = this.getValues(); // console.log("values: ", values); if (values.in_genome_ids.length >= 3 && values.out_genome_ids.length >= 1) { domClass.add(this.domNode, 'Working'); domClass.remove(this.domNode, 'Error'); domClass.remove(this.domNode, 'Submitted'); if (window.App.noJobSubmission) { var dlg = new Dialog({ title: 'Job Submission Params: ', content: '<pre>' + JSON.stringify(values, null, 4) + '</pre>' }); dlg.startup(); dlg.show(); return; } this.submitButton.set('disabled', true); window.App.api.service('AppService.start_app', [this.applicationName, values]).then(function (results) { console.log('Job Submission Results: ', results); domClass.remove(_self.domNode, 'Working'); domClass.add(_self.domNode, 'Submitted'); _self.submitButton.set('disabled', false); registry.byClass('p3.widget.WorkspaceFilenameValidationTextBox').forEach(function (obj) { obj.reset(); }); }, function (err) { console.log('Error:', err); domClass.remove(_self.domNode, 'Working'); domClass.add(_self.domNode, 'Error'); _self.errorMessage.innerHTML = err; }); } else { domClass.add(this.domNode, 'Error'); console.log('Form is incomplete'); } } else { domClass.add(this.domNode, 'Error'); console.log('Form is incomplete'); } }, onReset: function (evt) { domClass.remove(this.domNode, 'Working'); domClass.remove(this.domNode, 'Error'); domClass.remove(this.domNode, 'Submitted'); this.selectedTR.forEach(lang.hitch(this, function (lrec) { domConstruct.destroy(lrec.row); lrec.handle.remove(); var groupType = lrec.groupType; var ntr = this[groupType + 'GenomeTable'].insertRow(-1); domConstruct.create('td', { innerHTML: "<div class='emptyrow'></div>" }, ntr); domConstruct.create('td', { innerHTML: "<div class='emptyrow'></div>" }, ntr); domConstruct.create('td', { innerHTML: "<div class='emptyrow'></div>" }, ntr); })); this.selectedTR = []; this.inGroup.addedList = []; this.inGroup.addedNum = 0; this.outGroup.addedList = []; this.outGroup.addedNum = 0; }, getValues: function () { var ptb_values = {}; var values = this.inherited(arguments); // remove duplicate genomes var inGroupGenomesFiltered = []; this.inGroup.addedList.forEach(function (id) { if (inGroupGenomesFiltered.indexOf(id) == -1) { inGroupGenomesFiltered.push(id); } }); var outGroupGenomesFiltered = []; this.outGroup.addedList.forEach(function (id) { if (outGroupGenomesFiltered.indexOf(id) == -1) { outGroupGenomesFiltered.push(id); } }); ptb_values.in_genome_ids = inGroupGenomesFiltered; ptb_values.out_genome_ids = outGroupGenomesFiltered; ptb_values.output_path = values.output_path; ptb_values.output_file = values.output_file; ptb_values.full_tree_method = values.full_tree_method; ptb_values.refinement = values.refinement; return ptb_values; } }); });
mit
kwschultz/PyVC
pyvc/vcsimdata.py
16630
#!/usr/bin/env python import numpy as np import sys import math import Queue import multiprocessing import time import tables from vcutils import EventDataProcessor import quakelib #------------------------------------------------------------------------------- # A class that manages the connection to a simulation data file. This class # should be used within a with statement. For example: # # with VCSimData() as sim_data: # [do stuff with sim_data] # # This ensures that the __exit__ method is called and the file is closed when no # longer needed. #------------------------------------------------------------------------------- class VCSimData(object): def __init__(self, file_path=None): self.file = None self.file_path = file_path self.do_event_area = False self.do_event_average_slip = False self.do_event_surface_rupture_length = False self.do_events_by_section = False self.do_das_id = False self.do_depth_id = False if self.file_path is not None: self.open_file(self.file_path) def __enter__(self): return self def __exit__(self, type, value, traceback): if self.file is not None: self.file.close() @property def filename(self): if self.file_path is not None: return self.file_path.split('/')[-1] else: return None def open_file(self, file_path): if self.file_path is None: self.file_path = file_path self.file = tables.open_file(self.file_path) #----------------------------------------------------------------------- # check to see if we need to calculate additional data #----------------------------------------------------------------------- if 'event_area' not in self.file.root.event_table.colnames: self.do_event_area = True if 'event_average_slip' not in self.file.root.event_table.colnames: self.do_event_average_slip = True if 'event_surface_rupture_length' not in self.file.root.event_table.colnames: self.do_event_surface_rupture_length = True if 'events_by_section' not in self.file.root._v_groups.keys(): self.do_events_by_section = True if self.do_event_area or self.do_event_average_slip or self.do_event_surface_rupture_length or self.do_events_by_section: self.calculate_additional_event_data() if 'das_id' not in self.file.root.block_info_table.colnames: self.do_das_id = True if 'depth_id' not in self.file.root.block_info_table.colnames: self.do_depth_id = True if self.do_das_id or self.do_depth_id: self.calculate_additional_block_data() if 'model_extents' not in self.file.root._v_children.keys(): self.calculate_model_extents() def calculate_model_extents(self): #----------------------------------------------------------------------- # get info from the original file #----------------------------------------------------------------------- block_info_table = self.file.root.block_info_table #----------------------------------------------------------------------- # calculate the model extents #----------------------------------------------------------------------- print 'Calculating model extents' start_time = time.time() sys_max_z = -sys.float_info.max sys_min_z = sys.float_info.max sys_max_x = -sys.float_info.max sys_min_x = sys.float_info.max sys_max_y = -sys.float_info.max sys_min_y = sys.float_info.max for block in block_info_table: min_x = min((block['m_x_pt1'], block['m_x_pt2'], block['m_x_pt3'], block['m_x_pt4'])) max_x = max((block['m_x_pt1'], block['m_x_pt2'], block['m_x_pt3'], block['m_x_pt4'])) min_y = min((block['m_y_pt1'], block['m_y_pt2'], block['m_y_pt3'], block['m_y_pt4'])) max_y = max((block['m_y_pt1'], block['m_y_pt2'], block['m_y_pt3'], block['m_y_pt4'])) min_z = min((block['m_z_pt1'], block['m_z_pt2'], block['m_z_pt3'], block['m_z_pt4'])) max_z = max((block['m_z_pt1'], block['m_z_pt2'], block['m_z_pt3'], block['m_z_pt4'])) if min_x < sys_min_x: sys_min_x = min_x if max_x > sys_max_x: sys_max_x = max_x if min_y < sys_min_y: sys_min_y = min_y if max_y > sys_max_y: sys_max_y = max_y if min_z < sys_min_z: sys_min_z = min_z if max_z > sys_max_z: sys_max_z = max_z base_lat_lon_table = self.file.root.base_lat_lon conv = quakelib.Conversion(base_lat_lon_table[0], base_lat_lon_table[1]) ne_corner = conv.convert2LatLon( quakelib.Vec3(sys_max_x, sys_max_y, 0.0) ) sw_corner = conv.convert2LatLon( quakelib.Vec3(sys_min_x, sys_min_y, 0.0) ) self.file.close() print 'Done! {} seconds'.format(time.time() - start_time) print 'Creating new tables' table_start_time = time.time() self.file = tables.open_file(self.file_path, 'a') desc = { 'min_x':tables.Float64Col(dflt=0.0), 'max_x':tables.Float64Col(dflt=0.0), 'min_y':tables.Float64Col(dflt=0.0), 'max_y':tables.Float64Col(dflt=0.0), 'min_z':tables.Float64Col(dflt=0.0), 'max_z':tables.Float64Col(dflt=0.0), 'min_lat':tables.Float64Col(dflt=0.0), 'max_lat':tables.Float64Col(dflt=0.0), 'min_lon':tables.Float64Col(dflt=0.0), 'max_lon':tables.Float64Col(dflt=0.0) } model_extents = self.file.create_table('/', 'model_extents', desc, 'Model Extents') model_extents.row.append() model_extents.flush() model_extents.cols.min_x[0] = sys_min_x model_extents.cols.max_x[0] = sys_max_x model_extents.cols.min_y[0] = sys_min_y model_extents.cols.max_y[0] = sys_max_y model_extents.cols.min_z[0] = sys_min_z model_extents.cols.max_z[0] = sys_max_z model_extents.cols.min_lat[0] = sw_corner.lat() model_extents.cols.max_lat[0] = ne_corner.lat() model_extents.cols.min_lon[0] = sw_corner.lon() model_extents.cols.max_lon[0] = ne_corner.lon() print 'Done! {} seconds'.format(time.time() - table_start_time) #----------------------------------------------------------------------- # close the file and reopen it with the new table #----------------------------------------------------------------------- self.file.close() self.file = tables.open_file(self.file_path) print 'Total time {} seconds'.format(time.time() - start_time) def calculate_additional_block_data(self): #----------------------------------------------------------------------- # get info from the original file #----------------------------------------------------------------------- block_info_table = self.file.root.block_info_table #----------------------------------------------------------------------- # get the new block data #----------------------------------------------------------------------- print 'Calculating new block data' start_time = time.time() das_ids = [] depth_ids = [] curr_das = None curr_sec = None for block in block_info_table: sec = block['section_id'] das = block['m_das_pt1'] if sec != curr_sec: #new sec curr_sec = sec das_id = -1 depth_id = -1 if das != curr_das: #new das curr_das = das das_id += 1 depth_id = -1 depth_id += 1 das_ids.append(das_id) depth_ids.append(depth_id) print 'Done! {} seconds'.format(time.time() - start_time) print 'Creating new tables' table_start_time = time.time() #----------------------------------------------------------------------- # create the new block_info_table #----------------------------------------------------------------------- #close the current file self.file.close() #reopen the file with the append flag set self.file = tables.open_file(self.file_path, 'a') block_info_table = self.file.root.block_info_table # get a description of table in dictionary format desc_orig = block_info_table.description._v_colObjects desc_new = desc_orig.copy() # add columns to description if self.do_das_id: desc_new['das_id'] = tables.UIntCol(dflt=0) if self.do_depth_id: desc_new['depth_id'] = tables.UIntCol(dflt=0) # create a new table with the new description block_info_table_new = self.file.create_table('/', 'tmp', desc_new, 'Block Info Table') # copy the user attributes block_info_table.attrs._f_copy(block_info_table_new) # fill the rows of new table with default values for i in xrange(block_info_table.nrows): block_info_table_new.row.append() # flush the rows to disk block_info_table_new.flush() # copy the columns of source table to destination for col in desc_orig: getattr(block_info_table_new.cols, col)[:] = getattr(block_info_table.cols, col)[:] # fill the new columns if self.do_das_id: block_info_table_new.cols.das_id[:] = das_ids if self.do_depth_id: block_info_table_new.cols.depth_id[:] = depth_ids # remove the original table block_info_table.remove() # move table2 to table block_info_table_new.move('/','block_info_table') print 'Done! {} seconds'.format(time.time() - table_start_time) #----------------------------------------------------------------------- # close the file and reopen it with the new tables #----------------------------------------------------------------------- self.file.close() self.file = tables.open_file(self.file_path) print 'Total time {} seconds'.format(time.time() - start_time) def calculate_additional_event_data(self): #----------------------------------------------------------------------- # get info from the original file #----------------------------------------------------------------------- total_events = self.file.root.event_table.nrows #close the current file self.file.close() #----------------------------------------------------------------------- # get the new event data #----------------------------------------------------------------------- print 'Calculating new event data' start_time = time.time() num_processes = multiprocessing.cpu_count() # break the work up seg = int(round(float(total_events)/float(num_processes))) work_queue = multiprocessing.Queue() for i in range(num_processes): if i == num_processes - 1: end_index = total_events else: end_index = seg*int(i + 1) work_queue.put((int(i) * seg , end_index)) # create a queue to pass to workers to store the results result_queue = multiprocessing.Queue() # spawn workers for i in range(num_processes): worker = EventDataProcessor(self.file_path, work_queue, result_queue) worker.start() # collect the results off the queue results = {} for i in range(num_processes): results = dict(results, **result_queue.get()) data_process_results_sorted = [results[key] for key in sorted(results.keys())] print 'Done! {} seconds'.format(time.time() - start_time) print 'Creating new tables' table_start_time = time.time() #----------------------------------------------------------------------- # create the new event_table #----------------------------------------------------------------------- self.file = tables.open_file(self.file_path, 'a') event_table = self.file.root.event_table # get a description of table in dictionary format desc_orig = event_table.description._v_colObjects desc_new = desc_orig.copy() # add columns to description if self.do_event_area: desc_new['event_area'] = tables.Float64Col(dflt=0.0) if self.do_event_average_slip: desc_new['event_average_slip'] = tables.Float64Col(dflt=0.0) if self.do_event_surface_rupture_length: desc_new['event_surface_rupture_length'] = tables.Float64Col(dflt=0.0) # create a new table with the new description event_table_new = self.file.create_table('/', 'tmp', desc_new, 'Event Table') # copy the user attributes event_table.attrs._f_copy(event_table_new) # fill the rows of new table with default values for i in xrange(event_table.nrows): event_table_new.row.append() # flush the rows to disk event_table_new.flush() # copy the columns of source table to destination for col in desc_orig: getattr(event_table_new.cols, col)[:] = getattr(event_table.cols, col)[:] # fill the new columns if self.do_event_area: event_table_new.cols.event_area[:] = [ x['area'] for x in data_process_results_sorted ] if self.do_event_average_slip: event_table_new.cols.event_average_slip[:] = [ x['average_slip'] for x in data_process_results_sorted ] if self.do_event_surface_rupture_length: event_table_new.cols.event_surface_rupture_length[:] = [ x['surface_rupture_length'] for x in data_process_results_sorted ] # remove the original table event_table.remove() # move table2 to table event_table_new.move('/','event_table') #----------------------------------------------------------------------- # create a new group to store the event ids for each section #----------------------------------------------------------------------- if self.do_events_by_section: events_by_section_group = self.file.create_group("/", 'events_by_section', 'Events on each section') # dict to store the events on each section events_by_section = {} # we have the sections involved in each event. we need to transpose # this to events on each section for evid, event_data in enumerate(data_process_results_sorted): for secid in event_data['involved_sections']: try: events_by_section[secid].append(evid) except KeyError: events_by_section[secid] = [evid] # create an array for each result for secid, evids in events_by_section.iteritems(): self.file.create_array(events_by_section_group, 'section_{}'.format(secid), np.array(evids), 'Events on section {}'.format(secid)) print 'Done! {} seconds'.format(time.time() - table_start_time) #----------------------------------------------------------------------- # close the file and reopen it with the new tables #----------------------------------------------------------------------- self.file.close() self.file = tables.open_file(self.file_path) print 'Total time {} seconds'.format(time.time() - start_time)
mit
mingkaic/rocnnet
app/tenncor/declare/tensor.cpp
318
// // Created by Mingkai Chen on 2017-03-12. // #include "tensor/tensor.hpp" #include "tensor/tensor_handler.hpp" namespace nnet { template class assign_func<double>; template class transfer_func<double>; template class const_init<double>; template class rand_uniform<double>; template class tensor<double>; }
mit
nicolaslopezj/meteor-apollo-accounts
meteor-server/src/Mutation/oauth/loginWithFacebook.js
824
import resolver from './resolver' import {HTTP} from 'meteor/http' const handleAuthFromAccessToken = function ({accessToken}) { const identity = getIdentity(accessToken) const serviceData = { ...identity, accessToken } return { serviceName: 'facebook', serviceData, options: {profile: {name: identity.name}} } } const getIdentity = function (accessToken) { const fields = ['id', 'email', 'name', 'first_name', 'last_name', 'link', 'gender', 'locale', 'age_range'] try { return HTTP.get('https://graph.facebook.com/v2.8/me', { params: { access_token: accessToken, fields: fields.join(',') } }).data } catch (err) { throw new Error('Failed to fetch identity from Google. ' + err.message) } } export default resolver(handleAuthFromAccessToken)
mit
cuckata23/wurfl-data
data/spice_mi_451_ver1_subu2k8.php
206
<?php return array ( 'id' => 'spice_mi_451_ver1_subu2k8', 'fallback' => 'spice_mi_451_ver1', 'capabilities' => array ( 'mobile_browser' => 'UCWeb', 'mobile_browser_version' => '8', ), );
mit
Bananacoindev/Bananacoin
src/qt/locale/bitcoin_ro_RO.ts
132128
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ro_RO" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About bananacoin</source> <translation>Despre bananacoin</translation> </message> <message> <location line="+39"/> <source>&lt;b&gt;bananacoin&lt;/b&gt; version</source> <translation>Versiune &lt;b&gt;bananacoin&lt;/b&gt;</translation> </message> <message> <location line="+41"/> <source>Copyright © 2009-2014 The Bitcoin developers Copyright © 2012-2014 The NovaCoin developers Copyright © 2014 The bananacoin developers</source> <translation>Copyright © 2009-2014 The Bitcoin developers Copyright © 2012-2014 The NovaCoin developers Copyright © 2014 The bananacoin developers</translation> </message> <message> <location line="+15"/> <source> This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young ([email protected]) and UPnP software written by Thomas Bernard.</source> <translation> Acesta este un software experimental. Distribuit sub licența MIT/X11, vezi fișierul însoțitor COPYING sau http://www.opensource.org/licenses/mit-license.php. Acest produs include programe dezvoltate de către OpenSSL Project pentru a fi folosite în OpenSSL Toolkit (http://www.openssl.org/) și programe criptografice scrise de către Eric Young ([email protected]) și programe UPnP scrise de către Thomas Bernard.</translation> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation>Agendă</translation> </message> <message> <location line="+22"/> <source>Double-click to edit address or label</source> <translation>Dublu-click pentru a edita adresa sau eticheta</translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation>Creează o adresă nouă</translation> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation>Copiază adresa selectată în clipboard</translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation>Adresă nouă</translation> </message> <message> <location line="-46"/> <source>These are your bananacoin 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>Acestea sunt adresele bananacoin pentru a primi plăți. Poate doriți sa dați o adresa noua fiecarui expeditor pentru a putea ține evidența la cine efectuează plăti.</translation> </message> <message> <location line="+60"/> <source>&amp;Copy Address</source> <translation>&amp;Copiază adresa</translation> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation>Arată cod &amp;QR</translation> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a bananacoin address</source> <translation>Semnează un mesaj pentru a dovedi că dețineti o adresă bananacoin</translation> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation>Semnează &amp;Mesajul</translation> </message> <message> <location line="+25"/> <source>Delete the currently selected address from the list</source> <translation>Sterge adresele curent selectate din lista</translation> </message> <message> <location line="-14"/> <source>Verify a message to ensure it was signed with a specified bananacoin address</source> <translation>Verifică un mesaj pentru a vă asigura că a fost semnat cu o anumită adresă bananacoin</translation> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation>&amp;Verifică mesajul</translation> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation>Ște&amp;rge</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+65"/> <source>Copy &amp;Label</source> <translation>Copiază &amp;eticheta</translation> </message> <message> <location line="+2"/> <source>&amp;Edit</source> <translation>&amp;Editează</translation> </message> <message> <location line="+250"/> <source>Export Address Book Data</source> <translation>Exportă datele din Agendă</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Valori separate prin virgulă (*.csv)</translation> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation>Eroare la exportare</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Nu s-a putut scrie în fișier %1.</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation>Etichetă</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Adresă</translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>(fără etichetă)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation>Dialogul pentru fraza de acces</translation> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>Introdu fraza de acces</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>Frază de acces nouă</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>Repetă noua frază de acces</translation> </message> <message> <location line="+33"/> <source>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</source> <translation>Servește pentru a dezactiva sendmoneyl atunci când sistemul de operare este compromis. Nu oferă nicio garanție reală.</translation> </message> <message> <location line="+3"/> <source>For staking only</source> <translation>Doar pentru staking</translation> </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>Introdu noua parolă a portofelului electronic.&lt;br/&gt;Te rog folosește &lt;b&gt;minim 10 caractere aleatoare&lt;/b&gt;, sau &lt;b&gt;minim 8 cuvinte&lt;/b&gt;.</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation>Criptează portofelul</translation> </message> <message> <location line="+7"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>Această acțiune necesită fraza ta de acces pentru deblocarea portofelului.</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>Deblochează portofelul</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>Această acțiune necesită fraza ta de acces pentru decriptarea portofelului.</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>Decriptează portofelul.</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>Schimbă fraza de acces</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>Introdu vechea și noua parolă pentru portofel.</translation> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation>Confirmă criptarea portofelului</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>Atentie: Daca encriptezi portofelul si iti uiti parola, &lt;b&gt;VEI PIERDE TOATA MONEDELE&lt;/b&gt;!</translation> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation>Sunteţi sigur că doriţi să criptaţi portofelul electronic?</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>IMPORTANT: Orice copie de siguranta facuta in prealabil portofelului dumneavoastra ar trebui inlocuita cu cea generata cel mai recent fisier criptat al portofelului. Pentru siguranta, copiile de siguranta vechi ale portofelului ne-criptat vor deveni inutile de indata ce veti incepe folosirea noului fisier criptat al portofelului.</translation> </message> <message> <location line="+103"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation>Atentie! Caps Lock este pornit</translation> </message> <message> <location line="-133"/> <location line="+60"/> <source>Wallet encrypted</source> <translation>Portofel criptat</translation> </message> <message> <location line="-58"/> <source>bananacoin 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>bananacoin se va inchide pentru a termina procesul de encriptie. Amintiți-vă, criptarea portofelul dumneavoastră nu poate proteja pe deplin monedele dvs. de a fi furate de infectarea cu malware a computerului.</translation> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+44"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation>Criptarea portofelului a eșuat</translation> </message> <message> <location line="-56"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>Criptarea portofelului a eșuat din cauza unei erori interne. Portofelul tău nu a fost criptat.</translation> </message> <message> <location line="+7"/> <location line="+50"/> <source>The supplied passphrases do not match.</source> <translation>Frazele de acces introduse nu se potrivesc.</translation> </message> <message> <location line="-38"/> <source>Wallet unlock failed</source> <translation>Deblocarea portofelului a eșuat</translation> </message> <message> <location line="+1"/> <location line="+12"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>Fraza de acces introdusă pentru decriptarea portofelului a fost incorectă.</translation> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>Decriptarea portofelului a eșuat</translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation>Parola portofelului electronic a fost schimbată.</translation> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+282"/> <source>Sign &amp;message...</source> <translation>Semnează &amp;mesaj...</translation> </message> <message> <location line="+251"/> <source>Synchronizing with network...</source> <translation>Se sincronizează cu rețeaua...</translation> </message> <message> <location line="-319"/> <source>&amp;Overview</source> <translation>&amp;Imagine de ansamblu</translation> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation>Arată o stare generală de ansamblu a portofelului</translation> </message> <message> <location line="+17"/> <source>&amp;Transactions</source> <translation>&amp;Tranzacții</translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation>Răsfoiește istoricul tranzacțiilor</translation> </message> <message> <location line="+5"/> <source>&amp;Address Book</source> <translation>Agendă</translation> </message> <message> <location line="+1"/> <source>Edit the list of stored addresses and labels</source> <translation>Editează lista de adrese si etichete stocate</translation> </message> <message> <location line="-13"/> <source>&amp;Receive coins</source> <translation>Primește monede</translation> </message> <message> <location line="+1"/> <source>Show the list of addresses for receiving payments</source> <translation>Arată lista de adrese pentru primire plăți</translation> </message> <message> <location line="-7"/> <source>&amp;Send coins</source> <translation>&amp;Trimite monede</translation> </message> <message> <location line="+35"/> <source>E&amp;xit</source> <translation>&amp;Ieșire</translation> </message> <message> <location line="+1"/> <source>Quit application</source> <translation>Închide aplicația</translation> </message> <message> <location line="+6"/> <source>Show information about bananacoin</source> <translation>Arată informații despre bananacoin</translation> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation>Despre &amp;Qt</translation> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation>Arată informații despre Qt</translation> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation>&amp;Setări...</translation> </message> <message> <location line="+4"/> <source>&amp;Encrypt Wallet...</source> <translation>Criptează portofelul electronic...</translation> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation>&amp;Fă o copie de siguranță a portofelului...</translation> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation>S&amp;chimbă parola...</translation> </message> <message numerus="yes"> <location line="+259"/> <source>~%n block(s) remaining</source> <translation><numerusform>~%n bloc rămas</numerusform><numerusform>~%n blocuri rămase</numerusform><numerusform>~%n blocuri rămase</numerusform></translation> </message> <message> <location line="+6"/> <source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source> <translation>Descărcat %1 din %2 blocuri din istoricul tranzacțiilor(%3% terminat).</translation> </message> <message> <location line="-256"/> <source>&amp;Export...</source> <translation>&amp;Exportă</translation> </message> <message> <location line="-64"/> <source>Send coins to a bananacoin address</source> <translation>Trimite monede către o adresă bananacoin</translation> </message> <message> <location line="+47"/> <source>Modify configuration options for bananacoin</source> <translation>Modifică opțiuni de configurare pentru bananacoin</translation> </message> <message> <location line="+18"/> <source>Export the data in the current tab to a file</source> <translation>Exportă datele din tab-ul curent într-un fișier</translation> </message> <message> <location line="-14"/> <source>Encrypt or decrypt wallet</source> <translation>Criptează sau decriptează portofelul</translation> </message> <message> <location line="+3"/> <source>Backup wallet to another location</source> <translation>Creează o copie de rezervă a portofelului într-o locație diferită</translation> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation>Schimbă fraza de acces folosită pentru criptarea portofelului</translation> </message> <message> <location line="+10"/> <source>&amp;Debug window</source> <translation>Fereastră &amp;debug</translation> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation>Deschide consola de debug și diagnosticare</translation> </message> <message> <location line="-5"/> <source>&amp;Verify message...</source> <translation>&amp;Verifică mesajul...</translation> </message> <message> <location line="-202"/> <source>bananacoin</source> <translation>bananacoin</translation> </message> <message> <location line="+0"/> <source>Wallet</source> <translation>Portofelul</translation> </message> <message> <location line="+180"/> <source>&amp;About bananacoin</source> <translation>Despre bananacoin</translation> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation>Arata/Ascunde</translation> </message> <message> <location line="+9"/> <source>Unlock wallet</source> <translation>Deblochează portofelul</translation> </message> <message> <location line="+1"/> <source>&amp;Lock Wallet</source> <translation>Blochează portofelul</translation> </message> <message> <location line="+1"/> <source>Lock wallet</source> <translation>Blochează portofelul</translation> </message> <message> <location line="+35"/> <source>&amp;File</source> <translation>&amp;Fișier</translation> </message> <message> <location line="+8"/> <source>&amp;Settings</source> <translation>&amp;Setări</translation> </message> <message> <location line="+8"/> <source>&amp;Help</source> <translation>A&amp;jutor</translation> </message> <message> <location line="+12"/> <source>Tabs toolbar</source> <translation>Bara de file</translation> </message> <message> <location line="+8"/> <source>Actions toolbar</source> <translation>Bara de instrumente Actiuni</translation> </message> <message> <location line="+13"/> <location line="+9"/> <source>[testnet]</source> <translation>[testnet]</translation> </message> <message> <location line="+0"/> <location line="+60"/> <source>bananacoin client</source> <translation>Clientul bananacoin</translation> </message> <message numerus="yes"> <location line="+75"/> <source>%n active connection(s) to bananacoin network</source> <translation><numerusform>%n conexiune activă la reteaua bananacoin</numerusform><numerusform>%n conexiuni active la reteaua bananacoin</numerusform><numerusform>%n conexiuni active la reteaua bananacoin</numerusform></translation> </message> <message> <location line="+40"/> <source>Downloaded %1 blocks of transaction history.</source> <translation>Descărcat %1 blocuri din istoricul tranzacțiilor.</translation> </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>Staking. &lt;br&gt;Greutatea este %1&lt;br&gt;Greutatea retelei este %2&lt;br&gt;Timp estimat pentru a castiga recompensa este %3</translation> </message> <message> <location line="+6"/> <source>Not staking because wallet is locked</source> <translation>Nu este in modul stake deoarece portofelul este blocat</translation> </message> <message> <location line="+2"/> <source>Not staking because wallet is offline</source> <translation>Nu este in modul stake deoarece portofelul este offline</translation> </message> <message> <location line="+2"/> <source>Not staking because wallet is syncing</source> <translation>Nu este in modul stake deoarece portofelul se sincronizeaza</translation> </message> <message> <location line="+2"/> <source>Not staking because you don&apos;t have mature coins</source> <translation>Nu este in modul stake deoarece nu sunt destule monede maturate</translation> </message> <message numerus="yes"> <location line="-403"/> <source>%n second(s) ago</source> <translation><numerusform>%n secundă în urmă</numerusform><numerusform>%n secunde în urmă</numerusform><numerusform>%n secunde în urmă</numerusform></translation> </message> <message> <location line="-312"/> <source>About bananacoin card</source> <translation>Despre cardul bananacoin</translation> </message> <message> <location line="+1"/> <source>Show information about bananacoin card</source> <translation>Arată informații despre card bananacoin</translation> </message> <message> <location line="+18"/> <source>&amp;Unlock Wallet...</source> <translation>&amp;Deblochează portofelul</translation> </message> <message numerus="yes"> <location line="+297"/> <source>%n minute(s) ago</source> <translation><numerusform>%n minut în urmă</numerusform><numerusform>%n minute în urmă</numerusform><numerusform>%n minute în urmă</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n hour(s) ago</source> <translation><numerusform>%n oră în urmă</numerusform><numerusform>%n ore în urmă</numerusform><numerusform>%n ore în urmă</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s) ago</source> <translation><numerusform>%n zi în urmă</numerusform><numerusform>%n zile în urmă</numerusform><numerusform>%n zile în urmă</numerusform></translation> </message> <message> <location line="+6"/> <source>Up to date</source> <translation>Actualizat</translation> </message> <message> <location line="+7"/> <source>Catching up...</source> <translation>Se actualizează...</translation> </message> <message> <location line="+10"/> <source>Last received block was generated %1.</source> <translation>Ultimul bloc primit a fost generat %1.</translation> </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>Această tranzactie este peste limita admisa. Puteți sa trimiteți pentru o taxa de 1%, care este pentru nodurile care proceseaza tranzactia si ajuta la sprijinirea retelei. Vrei să plătești taxa?</translation> </message> <message> <location line="+5"/> <source>Confirm transaction fee</source> <translation>Confirmă comisinoul tranzacției</translation> </message> <message> <location line="+27"/> <source>Sent transaction</source> <translation>Tranzacție expediată</translation> </message> <message> <location line="+1"/> <source>Incoming transaction</source> <translation>Tranzacție recepționată</translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>Data: %1 Suma: %2 Tipul: %3 Adresa: %4 </translation> </message> <message> <location line="+100"/> <location line="+15"/> <source>URI handling</source> <translation>Manipulare URI</translation> </message> <message> <location line="-15"/> <location line="+15"/> <source>URI can not be parsed! This can be caused by an invalid bananacoin address or malformed URI parameters.</source> <translation>URI nu poate fi parsatt! Cauza poate fi o adresa bananacoin invalidă sau parametrii URI malformați.</translation> </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>Portofelul este &lt;b&gt;criptat&lt;/b&gt; iar în momentul de față este &lt;b&gt;deblocat&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>Portofelul este &lt;b&gt;criptat&lt;/b&gt; iar în momentul de față este &lt;b&gt;blocat&lt;/b&gt;</translation> </message> <message> <location line="+25"/> <source>Backup Wallet</source> <translation>Fă o copie de siguranță a portofelului</translation> </message> <message> <location line="+0"/> <source>Wallet Data (*.dat)</source> <translation>Date portofel(*.dat)</translation> </message> <message> <location line="+3"/> <source>Backup Failed</source> <translation>Copia de rezerva a esuat</translation> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation>Eroare la încercarea de a salva datele portofelului în noua locaţie.</translation> </message> <message numerus="yes"> <location line="+76"/> <source>%n second(s)</source> <translation><numerusform>%n secundă</numerusform><numerusform>%n secunde</numerusform><numerusform>%n secunde</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n minute(s)</source> <translation><numerusform>%n minut</numerusform><numerusform>%n minute</numerusform><numerusform>%n minute</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n hour(s)</source> <translation><numerusform>%n oră</numerusform><numerusform>%n ore</numerusform><numerusform>%n ore</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation><numerusform>%n zi</numerusform><numerusform>%n zile</numerusform><numerusform>%n zile</numerusform></translation> </message> <message> <location line="+18"/> <source>Not staking</source> <translation>Not staking</translation> </message> <message> <location filename="../bitcoin.cpp" line="+109"/> <source>A fatal error occurred. bananacoin can no longer continue safely and will quit.</source> <translation>A apărut o eroare fatală. bananacoin nu mai poate continua în condiții de siguranță și va iesi.</translation> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+90"/> <source>Network Alert</source> <translation>Alertă rețea</translation> </message> </context> <context> <name>CoinControlDialog</name> <message> <location filename="../forms/coincontroldialog.ui" line="+14"/> <source>Coin Control</source> <translation>Controlează moneda</translation> </message> <message> <location line="+31"/> <source>Quantity:</source> <translation>Cantitate:</translation> </message> <message> <location line="+32"/> <source>Bytes:</source> <translation>Octeţi:</translation> </message> <message> <location line="+48"/> <source>Amount:</source> <translation>Sumă:</translation> </message> <message> <location line="+32"/> <source>Priority:</source> <translation>Prioritate:</translation> </message> <message> <location line="+48"/> <source>Fee:</source> <translation>Taxa:</translation> </message> <message> <location line="+35"/> <source>Low Output:</source> <translation>Ieşire minimă: </translation> </message> <message> <location filename="../coincontroldialog.cpp" line="+551"/> <source>no</source> <translation>nu</translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="+51"/> <source>After Fee:</source> <translation>După taxe:</translation> </message> <message> <location line="+35"/> <source>Change:</source> <translation>Schimb:</translation> </message> <message> <location line="+69"/> <source>(un)select all</source> <translation>(de)selectaţi tot</translation> </message> <message> <location line="+13"/> <source>Tree mode</source> <translation>Modul arborescent</translation> </message> <message> <location line="+16"/> <source>List mode</source> <translation>Modul lista</translation> </message> <message> <location line="+45"/> <source>Amount</source> <translation>Sumă</translation> </message> <message> <location line="+5"/> <source>Label</source> <translation>Etichetă</translation> </message> <message> <location line="+5"/> <source>Address</source> <translation>Adresă</translation> </message> <message> <location line="+5"/> <source>Date</source> <translation>Data</translation> </message> <message> <location line="+5"/> <source>Confirmations</source> <translation>Confirmări</translation> </message> <message> <location line="+3"/> <source>Confirmed</source> <translation>Confirmat</translation> </message> <message> <location line="+5"/> <source>Priority</source> <translation>Prioritate</translation> </message> <message> <location filename="../coincontroldialog.cpp" line="-515"/> <source>Copy address</source> <translation>Copiază adresa</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>Copiază eticheta</translation> </message> <message> <location line="+1"/> <location line="+26"/> <source>Copy amount</source> <translation>Copiază suma</translation> </message> <message> <location line="-25"/> <source>Copy transaction ID</source> <translation>Copiază ID tranzacție</translation> </message> <message> <location line="+24"/> <source>Copy quantity</source> <translation>Copiaţi quantitea</translation> </message> <message> <location line="+2"/> <source>Copy fee</source> <translation>Copiaţi taxele</translation> </message> <message> <location line="+1"/> <source>Copy after fee</source> <translation>Copiaţi după taxe</translation> </message> <message> <location line="+1"/> <source>Copy bytes</source> <translation>Copiaţi octeţi</translation> </message> <message> <location line="+1"/> <source>Copy priority</source> <translation>Copiaţi prioritatea</translation> </message> <message> <location line="+1"/> <source>Copy low output</source> <translation>Copiaţi ieşire minimă:</translation> </message> <message> <location line="+1"/> <source>Copy change</source> <translation>Copiaţi schimb</translation> </message> <message> <location line="+317"/> <source>highest</source> <translation>cel mai mare</translation> </message> <message> <location line="+1"/> <source>high</source> <translation>mare</translation> </message> <message> <location line="+1"/> <source>medium-high</source> <translation>marime medie</translation> </message> <message> <location line="+1"/> <source>medium</source> <translation>mediu</translation> </message> <message> <location line="+4"/> <source>low-medium</source> <translation>mediu-scazut</translation> </message> <message> <location line="+1"/> <source>low</source> <translation>scazut</translation> </message> <message> <location line="+1"/> <source>lowest</source> <translation>cel mai scazut</translation> </message> <message> <location line="+155"/> <source>DUST</source> <translation>DUST</translation> </message> <message> <location line="+0"/> <source>yes</source> <translation>da</translation> </message> <message> <location line="+10"/> <source>This label turns red, if the transaction size is bigger than 10000 bytes. This means a fee of at least %1 per kb is required. Can vary +/- 1 Byte per input.</source> <translation>Aceasta eticheta se inroseste daca marimea tranzactiei este mai mare de 10000 bytes. Acest lucru inseamna ca este nevoie de o taxa de cel putin %1 pe kb Poate varia +/- 1 Byte pe imput.</translation> </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>Tranzacțiile cu prioritate mai mare ajunge mult mai probabil într-un bloc Aceasta eticheta se inroseste daca prioritatea este mai mica decat &quot;medium&quot; Acest lucru inseamna ca este necesar un comision cel putin de %1 pe kB</translation> </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>Aceasta eticheta se inroseste daca oricare din contacte primeste o suma mai mica decat %1. Acest lucru inseamna ca un comision de cel putin %2 este necesar. Sume mai mici decat 0.546 ori minimul comisionului de relay sunt afisate ca DUST</translation> </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>Această eticheta se înroseste dacă schimbul este mai mic de %1. Acest lucru înseamnă că o taxă de cel puțin %2 este necesară</translation> </message> <message> <location line="+37"/> <location line="+66"/> <source>(no label)</source> <translation>(fără etichetă)</translation> </message> <message> <location line="-9"/> <source>change from %1 (%2)</source> <translation>schimbă la %1(%2)</translation> </message> <message> <location line="+1"/> <source>(change)</source> <translation>(schimb)</translation> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation>Editează adresa</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>&amp;Etichetă</translation> </message> <message> <location line="+10"/> <source>The label associated with this address book entry</source> <translation>Eticheta asociată cu această intrare în agendă</translation> </message> <message> <location line="+7"/> <source>&amp;Address</source> <translation>&amp;Adresă</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>Adresa asociată cu această intrare în agendă. Acest lucru poate fi modificat numai pentru adresele de trimitere.</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="+20"/> <source>New receiving address</source> <translation>Noua adresă de primire</translation> </message> <message> <location line="+4"/> <source>New sending address</source> <translation>Noua adresă de trimitere</translation> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation>Editează adresa de primire</translation> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation>Editează adresa de trimitere</translation> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>Adresa introdusă &quot;%1&quot; se află deja în lista de adrese.</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid bananacoin address.</source> <translation>Adresa introdusă &quot;%1&quot; nu este o adresă bananacoin validă</translation> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>Portofelul nu a putut fi deblocat.</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation>Generarea noii chei a eșuat.</translation> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+420"/> <location line="+12"/> <source>bananacoin-Qt</source> <translation>bananacoin-Qt</translation> </message> <message> <location line="-12"/> <source>version</source> <translation>versiune</translation> </message> <message> <location line="+2"/> <source>Usage:</source> <translation>Utilizare:</translation> </message> <message> <location line="+1"/> <source>command-line options</source> <translation>Optiuni linie de comanda</translation> </message> <message> <location line="+4"/> <source>UI options</source> <translation>Setări UI</translation> </message> <message> <location line="+1"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation>Setează limba, de exemplu: &quot;de_DE&quot; (inițial: setare locală)</translation> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation>Pornește miniaturizat</translation> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation>Afișează ecran splash la pornire (implicit: 1)</translation> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation>Setări</translation> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation>&amp;Principal</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>Comision de tranzacție opțional pe kB, care vă ajută ca tranzacțiile sa fie procesate rapid. Majoritatea tranzactiilor sunt de 1 kB. Comision de 0.01 recomandat</translation> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation>Plăteşte comision pentru tranzacţie &amp;f</translation> </message> <message> <location line="+31"/> <source>Reserved amount does not participate in staking and is therefore spendable at any time.</source> <translation>Suma rezervată nu participă la maturare și, prin urmare, se poate cheltui în orice moment.</translation> </message> <message> <location line="+15"/> <source>Reserve</source> <translation>Rezervă</translation> </message> <message> <location line="+31"/> <source>Automatically start bananacoin after logging in to the system.</source> <translation>Pornește bananacoin imdiat după logarea în sistem</translation> </message> <message> <location line="+3"/> <source>&amp;Start bananacoin on system login</source> <translation>$Pornește bananacoin la logarea în sistem</translation> </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>Detașați bloc și baze de date de adrese la închidere. Acest lucru înseamnă că pot fi mutate într-u alt director de date, dar incetineste închiderea. Portofelul este întotdeauna detașat.</translation> </message> <message> <location line="+3"/> <source>&amp;Detach databases at shutdown</source> <translation>&amp;Detasaza baza de date la inchidere</translation> </message> <message> <location line="+21"/> <source>&amp;Network</source> <translation>&amp;Retea</translation> </message> <message> <location line="+6"/> <source>Automatically open the bananacoin client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation>Deschide automat portul pentru cientul bananacoin pe router. Aces lucru este posibil doara daca routerul suporta UPnP si este activat</translation> </message> <message> <location line="+3"/> <source>Map port using &amp;UPnP</source> <translation>Mapeaza portul folosind &amp;UPnP</translation> </message> <message> <location line="+7"/> <source>Connect to the bananacoin network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation>Conecteaza la reteaua bananacoin prinr-un proxy SOCKS(ex. cand te conectezi prin Tor)</translation> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation>Conectează-te printr-un proxy socks</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>Adresa IP a proxy-ului(ex. 127.0.0.1)</translation> </message> <message> <location line="+7"/> <source>&amp;Port:</source> <translation>&amp;Port:</translation> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation>Portul pe care se concetează proxy serverul (de exemplu: 9050)</translation> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation>SOCKS &amp;Versiune:</translation> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation>Versiunea SOCKS a proxiului (ex. 5)</translation> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation>&amp;Fereastra</translation> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation>Afişează doar un icon in tray la ascunderea ferestrei</translation> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation>&amp;M Ascunde în tray în loc de taskbar</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>Ascunde fereastra în locul părăsirii programului în momentul închiderii ferestrei. Când acestă opţiune e activă, aplicaţia se va opri doar în momentul selectării comenzii Quit din menu.</translation> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation>&amp;i Ascunde fereastra în locul închiderii programului</translation> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation>&amp;Afişare</translation> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation>Interfata &amp; limba userului</translation> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting bananacoin.</source> <translation>Limba interfeței utilizator poate fi setat aici. Această setare va avea efect după repornirea bananacoin.</translation> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation>&amp;Unitatea de măsură pentru afişarea sumelor:</translation> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation>Alege subdiviziunea folosită la afişarea interfeţei şi la trimiterea de bitcoin.</translation> </message> <message> <location line="+9"/> <source>Whether to show bananacoin addresses in the transaction list or not.</source> <translation>Dacă să arate adrese bananacoin din lista de tranzacție sau nu.</translation> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation>&amp;Afişează adresele în lista de tranzacţii</translation> </message> <message> <location line="+7"/> <source>Whether to show coin control features or not.</source> <translation>Dacă să se afişeze controlul caracteristicilor monedei sau nu.</translation> </message> <message> <location line="+3"/> <source>Display coin &amp;control features (experts only!)</source> <translation>Afiseaza &amp;caracteristiclei de control ale monedei(numai experti!)</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; Renunta</translation> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation>&amp;Aplica</translation> </message> <message> <location filename="../optionsdialog.cpp" line="+55"/> <source>default</source> <translation>Initial</translation> </message> <message> <location line="+149"/> <location line="+9"/> <source>Warning</source> <translation>Avertizare</translation> </message> <message> <location line="-9"/> <location line="+9"/> <source>This setting will take effect after restarting bananacoin.</source> <translation>Aceasta setare va avea efect dupa repornirea bananacoin.</translation> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation>Adresa bitcoin pe care a-ti specificat-o este invalida</translation> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation>Form</translation> </message> <message> <location line="+33"/> <location line="+231"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the bananacoin network after a connection is established, but this process has not completed yet.</source> <translation>Informatia afisata poate fi depasita. Portofel se sincronizează automat cu rețeaua bananacoin după ce se stabilește o conexiune, dar acest proces nu s-a finalizat încă.</translation> </message> <message> <location line="-160"/> <source>Stake:</source> <translation>Stake:</translation> </message> <message> <location line="+29"/> <source>Unconfirmed:</source> <translation>Neconfirmat:</translation> </message> <message> <location line="-107"/> <source>Wallet</source> <translation>Portofel</translation> </message> <message> <location line="+49"/> <source>Spendable:</source> <translation>Cheltuibil:</translation> </message> <message> <location line="+16"/> <source>Your current spendable balance</source> <translation>Balanța ta curentă de cheltuieli</translation> </message> <message> <location line="+71"/> <source>Immature:</source> <translation>Nematurizat:</translation> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation>Balanta minata care nu s-a maturizat inca</translation> </message> <message> <location line="+20"/> <source>Total:</source> <translation>Total:</translation> </message> <message> <location line="+16"/> <source>Your current total balance</source> <translation>Balanța totală curentă</translation> </message> <message> <location line="+46"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;Tranzacții recente&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>Total al tranzacțiilor care nu au fost confirmate încă și nu contează față de balanța curentă</translation> </message> <message> <location line="-29"/> <source>Total of coins that was staked, and do not yet count toward the current balance</source> <translation>Totalul de monede care au fost in stake si nu sunt numarate in balanta curenta</translation> </message> <message> <location filename="../overviewpage.cpp" line="+113"/> <location line="+1"/> <source>out of sync</source> <translation>Nu este sincronizat</translation> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="+14"/> <source>QR Code Dialog</source> <translation>Dialog cod QR</translation> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation>Cerere de plată</translation> </message> <message> <location line="+56"/> <source>Amount:</source> <translation>Cantitate:</translation> </message> <message> <location line="-44"/> <source>Label:</source> <translation>Etichetă</translation> </message> <message> <location line="+19"/> <source>Message:</source> <translation>Mesaj:</translation> </message> <message> <location line="+71"/> <source>&amp;Save As...</source> <translation>&amp;Salvează ca...</translation> </message> <message> <location filename="../qrcodedialog.cpp" line="+62"/> <source>Error encoding URI into QR Code.</source> <translation>Eroare la codarea URl-ului în cod QR.</translation> </message> <message> <location line="+40"/> <source>The entered amount is invalid, please check.</source> <translation>Suma introdusă nu este validă, vă rugăm să verificați.</translation> </message> <message> <location line="+23"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation>URI rezultat este prea lung, încearcă să reduci textul pentru etichetă / mesaj.</translation> </message> <message> <location line="+25"/> <source>Save QR Code</source> <translation>Salvează codul QR</translation> </message> <message> <location line="+0"/> <source>PNG Images (*.png)</source> <translation>Imagini PNG(*png)</translation> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation>Nume client</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>N/A</translation> </message> <message> <location line="-217"/> <source>Client version</source> <translation>Versiune client</translation> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation>&amp;Informație</translation> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation>Foloseste versiunea OpenSSL</translation> </message> <message> <location line="+49"/> <source>Startup time</source> <translation>Durata pornirii</translation> </message> <message> <location line="+29"/> <source>Network</source> <translation>Rețea</translation> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation>Numărul de conexiuni</translation> </message> <message> <location line="+23"/> <source>On testnet</source> <translation>Pe testnet</translation> </message> <message> <location line="+23"/> <source>Block chain</source> <translation>Lanț de blocuri</translation> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation>Numărul curent de blocuri</translation> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation>Blocurile totale estimate</translation> </message> <message> <location line="+23"/> <source>Last block time</source> <translation>Data ultimului bloc</translation> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation>&amp;Deschide</translation> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation>Optiuni linii de comandă</translation> </message> <message> <location line="+7"/> <source>Show the bananacoin-Qt help message to get a list with possible bananacoin command-line options.</source> <translation>Afișa mesajul de ajutor bananacoin-Qt pentru a obține o listă cu posibile opțiuni de linie de comandă bananacoin.</translation> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation>&amp;Arată</translation> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation>&amp;Consolă</translation> </message> <message> <location line="-260"/> <source>Build date</source> <translation>Construit la data</translation> </message> <message> <location line="-104"/> <source>bananacoin - Debug window</source> <translation>bananacoin - fereastră depanare</translation> </message> <message> <location line="+25"/> <source>bananacoin Core</source> <translation>bananacoin Core</translation> </message> <message> <location line="+279"/> <source>Debug log file</source> <translation>Loguri debug</translation> </message> <message> <location line="+7"/> <source>Open the bananacoin debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation>Deschideti fisierul de depanare bananacoin din folderul curent. Acest lucru poate dura cateva secunde pentru fisiere de log mari.</translation> </message> <message> <location line="+102"/> <source>Clear console</source> <translation>Curăță consola</translation> </message> <message> <location filename="../rpcconsole.cpp" line="-33"/> <source>Welcome to the bananacoin RPC console.</source> <translation>Bine ati venit la consola bananacoin RPC.</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>Foloseste sagetile sus si jos pentru a naviga in istoric si &lt;b&gt;Ctrl-L&lt;/b&gt; pentru a curata.</translation> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation>Scrie &lt;b&gt;help&lt;/b&gt; pentru a vedea comenzile disponibile</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>Trimite monede</translation> </message> <message> <location line="+76"/> <source>Coin Control Features</source> <translation>Caracteristici control ale monedei</translation> </message> <message> <location line="+20"/> <source>Inputs...</source> <translation>Intrări</translation> </message> <message> <location line="+7"/> <source>automatically selected</source> <translation>Selectie automatică</translation> </message> <message> <location line="+19"/> <source>Insufficient funds!</source> <translation>Fonduri insuficiente!</translation> </message> <message> <location line="+77"/> <source>Quantity:</source> <translation>Cantitate:</translation> </message> <message> <location line="+22"/> <location line="+35"/> <source>0</source> <translation>0</translation> </message> <message> <location line="-19"/> <source>Bytes:</source> <translation>Octeţi:</translation> </message> <message> <location line="+51"/> <source>Amount:</source> <translation>Sumă:</translation> </message> <message> <location line="+22"/> <location line="+86"/> <location line="+86"/> <location line="+32"/> <source>0.00 banana</source> <translation>123.456 banana {0.00 ?}</translation> </message> <message> <location line="-191"/> <source>Priority:</source> <translation>Prioritate:</translation> </message> <message> <location line="+19"/> <source>medium</source> <translation>mediu</translation> </message> <message> <location line="+32"/> <source>Fee:</source> <translation>Taxa:</translation> </message> <message> <location line="+35"/> <source>Low Output:</source> <translation>Ieşire minimă: </translation> </message> <message> <location line="+19"/> <source>no</source> <translation>nu</translation> </message> <message> <location line="+32"/> <source>After Fee:</source> <translation>După taxe:</translation> </message> <message> <location line="+35"/> <source>Change</source> <translation>Schimbă:</translation> </message> <message> <location line="+50"/> <source>custom change address</source> <translation>personalizează schimbarea adresei</translation> </message> <message> <location line="+106"/> <source>Send to multiple recipients at once</source> <translation>Trimite simultan către mai mulți destinatari</translation> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation>&amp;Adaugă destinatar</translation> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation>Scoateți toate câmpuirile de tranzacții</translation> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation>Șterge &amp;tot</translation> </message> <message> <location line="+28"/> <source>Balance:</source> <translation>Balanță:</translation> </message> <message> <location line="+16"/> <source>123.456 banana</source> <translation>123.456 banana</translation> </message> <message> <location line="+31"/> <source>Confirm the send action</source> <translation>Confirmă operațiunea de trimitere</translation> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation>&amp;S Trimite</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-173"/> <source>Enter a bananacoin address (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source> <translation>Introduceți o adresă bananacoin(ex:Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</translation> </message> <message> <location line="+15"/> <source>Copy quantity</source> <translation>Copiaţi quantitea</translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>Copiază suma</translation> </message> <message> <location line="+1"/> <source>Copy fee</source> <translation>Copiaţi taxele</translation> </message> <message> <location line="+1"/> <source>Copy after fee</source> <translation>Copiaţi după taxe</translation> </message> <message> <location line="+1"/> <source>Copy bytes</source> <translation>Copiaţi octeţi</translation> </message> <message> <location line="+1"/> <source>Copy priority</source> <translation>Copiaţi prioritatea</translation> </message> <message> <location line="+1"/> <source>Copy low output</source> <translation>Copiaţi ieşire minimă:</translation> </message> <message> <location line="+1"/> <source>Copy change</source> <translation>Copiaţi schimb</translation> </message> <message> <location line="+86"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</translation> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation>Confirmă trimiterea de monede</translation> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation>Sunteți sigur că doriți să trimiteți %1?</translation> </message> <message> <location line="+0"/> <source> and </source> <translation>și</translation> </message> <message> <location line="+29"/> <source>The recipient address is not valid, please recheck.</source> <translation>Adresa destinatarului nu este validă, vă rugăm să o verificaţi.</translation> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation>Suma de plată trebuie să fie mai mare decât 0.</translation> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation>Suma depășește soldul contului.</translation> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation>Totalul depășește soldul contului dacă se include și plata comisionului de %1.</translation> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation>S-a descoperit o adresă care figurează de două ori. Expedierea se poate realiza către fiecare adresă doar o singură dată pe operațiune.</translation> </message> <message> <location line="+5"/> <source>Error: Transaction creation failed.</source> <translation>Eroare: crearea tranzacției a eșuat.</translation> </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>Eroare: tranzacția a fost respinsă. Acest lucru s-ar putea întâmpla în cazul în care unele dintre monedele din portofel au fost deja cheltuite, cum si cum ați utilizat o copie a wallet.dat și monedele au fost cheltuite în copie dar nu au fost marcate ca și cheltuite aici.</translation> </message> <message> <location line="+251"/> <source>WARNING: Invalid bananacoin address</source> <translation>Atenție: Adresă bananacoin invalidă</translation> </message> <message> <location line="+13"/> <source>(no label)</source> <translation>(fără etichetă)</translation> </message> <message> <location line="+4"/> <source>WARNING: unknown change address</source> <translation>ATENTIE: adresa schimb necunoscuta</translation> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation>Formular</translation> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation>Su&amp;mă:</translation> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation>Plătește că&amp;tre:</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>Introdu o etichetă pentru această adresă pentru a fi adăugată în lista ta de adrese</translation> </message> <message> <location line="+9"/> <source>&amp;Label:</source> <translation>&amp;Etichetă:</translation> </message> <message> <location line="+18"/> <source>The address to send the payment to (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source> <translation>Adresa catre care trimiteti plata(ex. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</translation> </message> <message> <location line="+10"/> <source>Choose address from address book</source> <translation>Alegeti adresa din agenda</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>Lipește adresa din clipboard</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>Scoateti acest destinatar</translation> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a bananacoin address (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source> <translation>Introduceți o adresă bananacoin(ex:Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</translation> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <location filename="../forms/signverifymessagedialog.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation>Semnatura- Semneaza/verifica un mesaj</translation> </message> <message> <location line="+13"/> <location line="+124"/> <source>&amp;Sign Message</source> <translation>Semneaza Mesajul</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>Puteti semna mesaje cu adresa dumneavoastra pentru a demostra ca sunteti proprietarul lor. Aveti grija sa nu semnati nimic vag, deoarece atacurile de tip phishing va pot pacali sa le transferati identitatea. Semnati numai declaratiile detaliate cu care sunteti deacord.</translation> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source> <translation>Adresa cu care semnati mesajul(ex. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</translation> </message> <message> <location line="+10"/> <location line="+203"/> <source>Choose an address from the address book</source> <translation>Alegeti o adresa din agenda</translation> </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>Lipiţi adresa copiată in clipboard.</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>Introduce mesajul pe care vrei sa il semnezi, aici.</translation> </message> <message> <location line="+24"/> <source>Copy the current signature to the system clipboard</source> <translation>Copiaza semnatura curenta in clipboard-ul sistemului</translation> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this bananacoin address</source> <translation>Semnează un mesaj pentru a dovedi că dețineti o adresă bananacoin</translation> </message> <message> <location line="+17"/> <source>Reset all sign message fields</source> <translation>Reseteaza toate spatiile mesajelor semnate.</translation> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation>Şterge &amp;tot</translation> </message> <message> <location line="-87"/> <location line="+70"/> <source>&amp;Verify Message</source> <translation>Verifica mesajul</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>Introduceti adresa de semnatura, mesajul (asigurati-va ca ati copiat spatiile, taburile etc. exact) si semnatura dedesubt pentru a verifica mesajul. Aveti grija sa nu cititi mai mult in semnatura decat mesajul in sine, pentru a evita sa fiti pacaliti de un atac de tip man-in-the-middle.</translation> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source> <translation>Adresa cu care a fost semnat mesajul(ex. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</translation> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified bananacoin address</source> <translation>Verifică un mesaj pentru a vă asigura că a fost semnat cu o anumită adresă bananacoin</translation> </message> <message> <location line="+17"/> <source>Reset all verify message fields</source> <translation>Reseteaza toate spatiile mesajelor semnate.</translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a bananacoin address (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source> <translation>Introduceți o adresă bananacoin(ex:Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</translation> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation>Click &quot;Semneaza msajul&quot; pentru a genera semnatura</translation> </message> <message> <location line="+3"/> <source>Enter bananacoin signature</source> <translation>Introduceti semnatura bananacoin</translation> </message> <message> <location line="+82"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation>Adresa introdusa nu este valida</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>Te rugam verifica adresa si introduce-o din nou</translation> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation>Adresa introdusa nu se refera la o cheie.</translation> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation>Blocarea portofelului a fost intrerupta</translation> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation>Cheia privata pentru adresa introdusa nu este valida.</translation> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation>Semnarea mesajului a esuat</translation> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation>Mesaj Semnat!</translation> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation>Aceasta semnatura nu a putut fi decodata</translation> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation>Verifica semnatura si incearca din nou</translation> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation>Semnatura nu seamana!</translation> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation>Verificarea mesajului a esuat</translation> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation>Mesaj verificat</translation> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+19"/> <source>Open until %1</source> <translation>Deschis până la %1</translation> </message> <message numerus="yes"> <location line="-2"/> <source>Open for %n block(s)</source> <translation><numerusform>Deschde pentru încă %1 bloc</numerusform><numerusform>Deschde pentru încă %1 blocuri</numerusform><numerusform>Deschde pentru încă %1 blocuri</numerusform></translation> </message> <message> <location line="+8"/> <source>conflicted</source> <translation>conflictual</translation> </message> <message> <location line="+2"/> <source>%1/offline</source> <translation>%1/deconectat</translation> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation>%1/neconfirmat</translation> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation>%1 confirmări</translation> </message> <message> <location line="+18"/> <source>Status</source> <translation>Stare</translation> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation><numerusform>, distribuit prin %n nod</numerusform><numerusform>, distribuit prin %n noduri</numerusform><numerusform>, distribuit prin %n de noduri</numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>Data</translation> </message> <message> <location line="+7"/> <source>Source</source> <translation>Sursa</translation> </message> <message> <location line="+0"/> <source>Generated</source> <translation>Generat</translation> </message> <message> <location line="+5"/> <location line="+17"/> <source>From</source> <translation>De la</translation> </message> <message> <location line="+1"/> <location line="+22"/> <location line="+58"/> <source>To</source> <translation>Către</translation> </message> <message> <location line="-77"/> <location line="+2"/> <source>own address</source> <translation>Adresa posedata</translation> </message> <message> <location line="-2"/> <source>label</source> <translation>etichetă</translation> </message> <message> <location line="+37"/> <location line="+12"/> <location line="+45"/> <location line="+17"/> <location line="+30"/> <source>Credit</source> <translation>Credit</translation> </message> <message numerus="yes"> <location line="-102"/> <source>matures in %n more block(s)</source> <translation><numerusform>se maturizează în încă %n bloc</numerusform><numerusform>se maturizează în încă %n blocuri</numerusform><numerusform>se maturizează în încă %n de blocuri</numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation>nu este acceptat</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>Comisionul tranzacţiei</translation> </message> <message> <location line="+16"/> <source>Net amount</source> <translation>Suma netă</translation> </message> <message> <location line="+6"/> <source>Message</source> <translation>Mesaj</translation> </message> <message> <location line="+2"/> <source>Comment</source> <translation>Comentarii</translation> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation>ID-ul tranzactiei</translation> </message> <message> <location line="+3"/> <source>Generated coins must mature 510 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &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>Monedele generate trebuie să se maturizeze 510 blocuri înainte de a fi cheltuite. Când ați generat acest bloc, a fost trimis la rețea pentru a fi adăugat la lanțul de blocuri. În cazul în care nu reușește să intre în lanț, starea sa se ​​va schimba in &quot;nu a fost acceptat&quot;, și nu va putea fi cheltuit. Acest lucru se poate întâmpla din când în când, dacă un alt nod generează un bloc cu câteva secunde inaintea blocului tau.</translation> </message> <message> <location line="+7"/> <source>Debug information</source> <translation>Informatii pentru debug</translation> </message> <message> <location line="+8"/> <source>Transaction</source> <translation>Tranzacţie</translation> </message> <message> <location line="+5"/> <source>Inputs</source> <translation>Intrari</translation> </message> <message> <location line="+23"/> <source>Amount</source> <translation>Sumă</translation> </message> <message> <location line="+1"/> <source>true</source> <translation>Adevarat!</translation> </message> <message> <location line="+0"/> <source>false</source> <translation>Fals!</translation> </message> <message> <location line="-211"/> <source>, has not been successfully broadcast yet</source> <translation>, nu s-a propagat încă</translation> </message> <message> <location line="+35"/> <source>unknown</source> <translation>necunoscut</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation>Detaliile tranzacției</translation> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation>Acest panou afișează o descriere detaliată a tranzacției</translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+226"/> <source>Date</source> <translation>Data</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>Tipul</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Adresa</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation>Cantitate</translation> </message> <message> <location line="+60"/> <source>Open until %1</source> <translation>Deschis până la %1</translation> </message> <message> <location line="+12"/> <source>Confirmed (%1 confirmations)</source> <translation>Confirmat (%1 confirmări)</translation> </message> <message numerus="yes"> <location line="-15"/> <source>Open for %n more block(s)</source> <translation><numerusform>Deschis pentru încă %1 bloc</numerusform><numerusform>Deschis pentru încă %1 blocuri</numerusform><numerusform>Deschis pentru încă %1 de blocuri</numerusform></translation> </message> <message> <location line="+6"/> <source>Offline</source> <translation>Deconectat</translation> </message> <message> <location line="+3"/> <source>Unconfirmed</source> <translation>Neconfirmat</translation> </message> <message> <location line="+3"/> <source>Confirming (%1 of %2 recommended confirmations)</source> <translation>Confirmare (%1 dintre %2 confirmări recomandate)</translation> </message> <message> <location line="+6"/> <source>Conflicted</source> <translation>Conflictual</translation> </message> <message> <location line="+3"/> <source>Immature (%1 confirmations, will be available after %2)</source> <translation>Nematurate(%1 confirmari, vor fi valabile dupa %2)</translation> </message> <message> <location line="+3"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>Acest bloc nu a fost recepționat de niciun alt nod și probabil nu va fi acceptat!</translation> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation>Generat dar neacceptat</translation> </message> <message> <location line="+42"/> <source>Received with</source> <translation>Recepționat cu</translation> </message> <message> <location line="+2"/> <source>Received from</source> <translation>Primit de la</translation> </message> <message> <location line="+3"/> <source>Sent to</source> <translation>Trimis către</translation> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation>Plată către tine</translation> </message> <message> <location line="+2"/> <source>Mined</source> <translation>Produs</translation> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation>(n/a)</translation> </message> <message> <location line="+190"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>Starea tranzacției. Treci cu mausul peste acest câmp pentru afișarea numărului de confirmări.</translation> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation>Data și ora la care a fost recepționată tranzacția.</translation> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation>Tipul tranzacției.</translation> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation>Adresa de destinație a tranzacției.</translation> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation>Suma extrasă sau adăugată la sold.</translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+55"/> <location line="+16"/> <source>All</source> <translation>Toate</translation> </message> <message> <location line="-15"/> <source>Today</source> <translation>Astăzi</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation>Săptămâna aceasta</translation> </message> <message> <location line="+1"/> <source>This month</source> <translation>Luna aceasta</translation> </message> <message> <location line="+1"/> <source>Last month</source> <translation>Luna trecută</translation> </message> <message> <location line="+1"/> <source>This year</source> <translation>Anul acesta</translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation>Între...</translation> </message> <message> <location line="+11"/> <source>Received with</source> <translation>Recepționat cu</translation> </message> <message> <location line="+2"/> <source>Sent to</source> <translation>Trimis către</translation> </message> <message> <location line="+2"/> <source>To yourself</source> <translation>Către tine</translation> </message> <message> <location line="+1"/> <source>Mined</source> <translation>Produs</translation> </message> <message> <location line="+1"/> <source>Other</source> <translation>Altele</translation> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation>Introdu adresa sau eticheta pentru căutare</translation> </message> <message> <location line="+7"/> <source>Min amount</source> <translation>Cantitatea minimă</translation> </message> <message> <location line="+34"/> <source>Copy address</source> <translation>Copiază adresa</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>Copiază eticheta</translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>Copiază suma</translation> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation>Copiază ID tranzacție</translation> </message> <message> <location line="+1"/> <source>Edit label</source> <translation>Editează eticheta</translation> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation>Arată detaliile tranzacției</translation> </message> <message> <location line="+144"/> <source>Export Transaction Data</source> <translation>Exporta datele trazactiei</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Fișier text cu valori separate prin virgulă (*.csv)</translation> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation>Confirmat</translation> </message> <message> <location line="+1"/> <source>Date</source> <translation>Data</translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>Tipul</translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>Etichetă</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation>Adresă</translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation>Sumă</translation> </message> <message> <location line="+1"/> <source>ID</source> <translation>ID</translation> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation>Eroare la exportare</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Nu s-a putut scrie în fișier %1.</translation> </message> <message> <location line="+100"/> <source>Range:</source> <translation>Interval:</translation> </message> <message> <location line="+8"/> <source>to</source> <translation>către</translation> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+206"/> <source>Sending...</source> <translation>Se trimite...</translation> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+33"/> <source>bananacoin version</source> <translation>Versiune bananacoin</translation> </message> <message> <location line="+1"/> <source>Usage:</source> <translation>Uz:</translation> </message> <message> <location line="+1"/> <source>Send command to -server or bananacoind</source> <translation>Trimite comanda catre server sau bananacoind</translation> </message> <message> <location line="+1"/> <source>List commands</source> <translation>Listă de comenzi</translation> </message> <message> <location line="+1"/> <source>Get help for a command</source> <translation>Ajutor pentru o comandă</translation> </message> <message> <location line="+2"/> <source>Options:</source> <translation>Setări:</translation> </message> <message> <location line="+2"/> <source>Specify configuration file (default: bananacoin.conf)</source> <translation>Specifica fisier de configurare(implicit: bananacoin.conf)</translation> </message> <message> <location line="+1"/> <source>Specify pid file (default: bananacoind.pid)</source> <translation>Speficica fisier pid(implicit: bananacoin.pid)</translation> </message> <message> <location line="+2"/> <source>Specify wallet file (within data directory)</source> <translation>Specifică fișierul wallet (în dosarul de date)</translation> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation>Specifică dosarul de date</translation> </message> <message> <location line="+2"/> <source>Set database cache size in megabytes (default: 25)</source> <translation>Setează mărimea cache a bazei de date în megabiți (implicit: 25)</translation> </message> <message> <location line="+1"/> <source>Set database disk log size in megabytes (default: 100)</source> <translation>Setează mărimea cache a bazei de date în megabiți (implicit: 100)</translation> </message> <message> <location line="+6"/> <source>Listen for connections on &lt;port&gt; (default: 15714 or testnet: 25714)</source> <translation>Ascultă pentru conectări pe &lt;port&gt; (implicit: 15714 sau testnet: 25714) </translation> </message> <message> <location line="+1"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation>Menține cel mult &lt;n&gt; conexiuni cu partenerii (implicit: 125)</translation> </message> <message> <location line="+3"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation>Conectează-te la nod pentru a obține adresele partenerilor, și apoi deconectează-te</translation> </message> <message> <location line="+1"/> <source>Specify your own public address</source> <translation>Specifică adresa ta publică</translation> </message> <message> <location line="+5"/> <source>Bind to given address. Use [host]:port notation for IPv6</source> <translation>Leaga la o adresa data. Utilizeaza notatie [host]:port pt IPv6</translation> </message> <message> <location line="+2"/> <source>Stake your coins to support network and gain reward (default: 1)</source> <translation>Pune monedele in modul stake pentru a ajuta reteaua si a castiva bonusuri(implicit: 1)</translation> </message> <message> <location line="+5"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation>Prag pentru deconectarea partenerilor care nu funcționează corect (implicit: 100)</translation> </message> <message> <location line="+1"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation>Numărul de secunde pentru a preveni reconectarea partenerilor care nu funcționează corect (implicit: 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>A intervenit o eroare in timp ce se seta portul RPC %u pentru ascultare pe IPv4: %s</translation> </message> <message> <location line="+51"/> <source>Detach block and address databases. Increases shutdown time (default: 0)</source> <translation>Detaseaza bloc si baza de date de adrese. Creste timpul de inchidere(implicit:0)</translation> </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>Eroare: tranzacția a fost respinsă. Acest lucru s-ar putea întâmpla în cazul în care unele dintre monedele din portofel au fost deja cheltuite, cum si cum ați utilizat o copie a wallet.dat și monedele au fost cheltuite în copie dar nu au fost marcate ca și cheltuite aici.</translation> </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>Eroare: Această tranzacție necesită un comision de tranzacție de cel puțin %s din cauza valorii sale, complexitate, sau utilizarea de fonduri recent primite</translation> </message> <message> <location line="-87"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 15715 or testnet: 25715)</source> <translation>Ascultă pentru conexiuni JSON-RPC pe &lt;port&gt; (implicit:15715 sau testnet: 25715)</translation> </message> <message> <location line="-11"/> <source>Accept command line and JSON-RPC commands</source> <translation>Se acceptă comenzi din linia de comandă și comenzi JSON-RPC</translation> </message> <message> <location line="+101"/> <source>Error: Transaction creation failed </source> <translation>Eroare: crearea tranzacției a eșuat.</translation> </message> <message> <location line="-5"/> <source>Error: Wallet locked, unable to create transaction </source> <translation>Eroare: portofel blocat, tranzactia nu s-a creat</translation> </message> <message> <location line="-8"/> <source>Importing blockchain data file.</source> <translation>Se importa fisierul blockchain</translation> </message> <message> <location line="+1"/> <source>Importing bootstrap blockchain data file.</source> <translation>Se importa fisierul bootstrap blockchain</translation> </message> <message> <location line="-88"/> <source>Run in the background as a daemon and accept commands</source> <translation>Rulează în fundal ca un demon și acceptă comenzi</translation> </message> <message> <location line="+1"/> <source>Use the test network</source> <translation>Utilizează rețeaua de test</translation> </message> <message> <location line="-24"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation>Acceptă conexiuni din afară (implicit: 1 dacă nu se folosește -proxy sau -connect)</translation> </message> <message> <location line="-38"/> <source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source> <translation>A intervenit o eroare in timp ce se seta portul RPC %u pentru ascultare pe IPv6, reintoarcere la 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>Eroare la inițializarea mediu de baze de date %s! Pentru a recupera, SALVATI ACEL DIRECTORr, apoi scoateți totul din el, cu excepția wallet.dat.</translation> </message> <message> <location line="-20"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation>Setati valoarea maxima a prioritate mare/taxa scazuta in bytes(implicit: 27000)</translation> </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>Atentie: setarea -paytxfee este foarte ridicata! Aceasta este taxa tranzactiei pe care o vei plati daca trimiti o tranzactie.</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 bananacoin will not work properly.</source> <translation>Atentie: Va rugam verificati ca timpul si data calculatorului sunt corete. Daca timpul este gresit bananacoin nu va functiona corect.</translation> </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>Atentie: eroare la citirea fisierului wallet.dat! Toate cheile sunt citite corect, dar datele tranzactiei sau anumite intrari din agenda sunt incorecte sau lipsesc.</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>Atentie: fisierul wallet.dat este corupt, date salvate! Fisierul original wallet.dat a fost salvat ca wallet.{timestamp}.bak in %s; daca balansul sau tranzactiile sunt incorecte ar trebui sa restaurati dintr-o copie de siguranta. </translation> </message> <message> <location line="-30"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation>Încearcă recuperarea cheilor private dintr-un wallet.dat corupt</translation> </message> <message> <location line="+4"/> <source>Block creation options:</source> <translation>Optiuni creare block</translation> </message> <message> <location line="-62"/> <source>Connect only to the specified node(s)</source> <translation>Conecteaza-te doar la nod(urile) specifice</translation> </message> <message> <location line="+4"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation>Descopera propria ta adresa IP (intial: 1)</translation> </message> <message> <location line="+94"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation>Am esuat ascultarea pe orice port. Folositi -listen=0 daca vreti asta.</translation> </message> <message> <location line="-90"/> <source>Find peers using DNS lookup (default: 1)</source> <translation>Gaseste peers folosind cautare DNS(implicit: 1)</translation> </message> <message> <location line="+5"/> <source>Sync checkpoints policy (default: strict)</source> <translation>Sincronizeaza politica checkpoint(implicit: strict)</translation> </message> <message> <location line="+83"/> <source>Invalid -tor address: &apos;%s&apos;</source> <translation>Adresa -tor invalida: &apos;%s&apos;</translation> </message> <message> <location line="+4"/> <source>Invalid amount for -reservebalance=&lt;amount&gt;</source> <translation>Suma invalida pentru -reservebalance=&lt;amount&gt;</translation> </message> <message> <location line="-82"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation>Tampon maxim pentru recepție per conexiune, &lt;n&gt;*1000 baiți (implicit: 5000)</translation> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation>Tampon maxim pentru transmitere per conexiune, &lt;n&gt;*1000 baiți (implicit: 1000)</translation> </message> <message> <location line="-16"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation>Efectuează conexiuni doar către nodurile din rețeaua &lt;net&gt; (IPv4, IPv6 sau Tor)</translation> </message> <message> <location line="+28"/> <source>Output extra debugging information. Implies all other -debug* options</source> <translation>Extra informatii despre depanare. Implica toate optiunile -debug*</translation> </message> <message> <location line="+1"/> <source>Output extra network debugging information</source> <translation>Extra informatii despre depanare retea.</translation> </message> <message> <location line="+1"/> <source>Prepend debug output with timestamp</source> <translation>Ataseaza output depanare cu log de timp</translation> </message> <message> <location line="+35"/> <source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source> <translation>Optiuni SSl (vezi Bitcoin wiki pentru intructiunile de instalare)</translation> </message> <message> <location line="-74"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation>Selectati versiunea de proxy socks(4-5, implicit: 5)</translation> </message> <message> <location line="+41"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation>Trimite informațiile trace/debug la consolă în locul fișierului debug.log</translation> </message> <message> <location line="+1"/> <source>Send trace/debug info to debugger</source> <translation>Trimite informațiile trace/debug la consolă</translation> </message> <message> <location line="+28"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation>Setează mărimea maxima a blocului în bytes (implicit: 250000)</translation> </message> <message> <location line="-1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation>Setează mărimea minimă a blocului în baiți (implicit: 0)</translation> </message> <message> <location line="-29"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation>Micsorati fisierul debug.log la inceperea clientului (implicit: 1 cand nu -debug)</translation> </message> <message> <location line="-42"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation>Specifică intervalul maxim de conectare în milisecunde (implicit: 5000)</translation> </message> <message> <location line="+109"/> <source>Unable to sign checkpoint, wrong checkpointkey? </source> <translation>În imposibilitatea de a semna checkpoint-ul, checkpointkey greșit? </translation> </message> <message> <location line="-80"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation>Foloseste UPnP pentru a vedea porturile (initial: 0)</translation> </message> <message> <location line="-1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation>Foloseste UPnP pentru a vedea porturile (initial: 1 cand listezi)</translation> </message> <message> <location line="-25"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation>Utilizati proxy pentru a ajunge la serviciile tor (implicit: la fel ca proxy)</translation> </message> <message> <location line="+42"/> <source>Username for JSON-RPC connections</source> <translation>Utilizator pentru conexiunile JSON-RPC</translation> </message> <message> <location line="+47"/> <source>Verifying database integrity...</source> <translation>Se verifica integritatea bazei de date...</translation> </message> <message> <location line="+57"/> <source>WARNING: syncronized checkpoint violation detected, but skipped!</source> <translation>ATENTIONARE: s-a detectat o violare a checkpoint-ului sincronizat, dar s-a ignorat!</translation> </message> <message> <location line="+1"/> <source>Warning: Disk space is low!</source> <translation>Avertisment: spațiul pe disc este scăzut!</translation> </message> <message> <location line="-2"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation>Atenție: această versiune este depășită, este necesară actualizarea!</translation> </message> <message> <location line="-48"/> <source>wallet.dat corrupt, salvage failed</source> <translation>wallet.dat corupt, recuperare eșuată</translation> </message> <message> <location line="-54"/> <source>Password for JSON-RPC connections</source> <translation>Parola pentru conexiunile 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=bananacoinrpc 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;bananacoin Alert&quot; [email protected] </source> <translation>%s, trebuie să configurați o parolă rpc în fișierul de configurare: %s Este recomandat să folosiți următoarea parolă generată aleator: rpcuser=bananacoinrpc rpcpassword=%s (nu trebuie să țineți minte această parolă) Username-ul și parola NU TREBUIE să fie aceleași. Dacă fișierul nu există, creați-l cu drepturi de citire doar de către deținător. Este deasemenea recomandat să setați alertnotify pentru a fi notificat de probleme; de exemplu: alertnotify=echo %%s | mail -s &quot;bananacoin Alert&quot; [email protected] </translation> </message> <message> <location line="+51"/> <source>Find peers using internet relay chat (default: 0)</source> <translation>Gaseste noduri fosoling irc (implicit: 1) {0)?}</translation> </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>Sincronizează timp cu alte noduri. Dezactivează daca timpul de pe sistemul dumneavoastră este precis ex: sincronizare cu NTP (implicit: 1)</translation> </message> <message> <location line="+15"/> <source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source> <translation>Când creați tranzacții, ignorați intrări cu valori mai mici decât aceasta (implicit: 0,01)</translation> </message> <message> <location line="+16"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation>Permite conexiuni JSON-RPC de la adresa IP specificată</translation> </message> <message> <location line="+1"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation>Trimite comenzi la nodul care rulează la &lt;ip&gt; (implicit: 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>Execută comanda când cel mai bun bloc se modifică (%s în cmd este înlocuit cu hash-ul blocului)</translation> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation>Executati comanda cand o tranzactie a portofelului se schimba (%s in cmd este inlocuit de TxID)</translation> </message> <message> <location line="+3"/> <source>Require a confirmations for change (default: 0)</source> <translation>Necesita confirmari pentru schimbare (implicit: 0)</translation> </message> <message> <location line="+1"/> <source>Enforce transaction scripts to use canonical PUSH operators (default: 1)</source> <translation>Enforseaza tranzactiile script sa foloseasca operatori canonici PUSH(implicit: 1)</translation> </message> <message> <location line="+2"/> <source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source> <translation>Execută o comandă când o alerta relevantâ este primitâ(%s in cmd este înlocuit de mesaj)</translation> </message> <message> <location line="+3"/> <source>Upgrade wallet to latest format</source> <translation>Actualizează portofelul la ultimul format</translation> </message> <message> <location line="+1"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation>Setează mărimea bazinului de chei la &lt;n&gt; (implicit: 100)</translation> </message> <message> <location line="+1"/> <source>Rescan the block chain for missing wallet transactions</source> <translation>Rescanează lanțul de bloc pentru tranzacțiile portofel lipsă</translation> </message> <message> <location line="+2"/> <source>How many blocks to check at startup (default: 2500, 0 = all)</source> <translation>Câte block-uri se verifică la initializare (implicit: 2500, 0 = toate)</translation> </message> <message> <location line="+1"/> <source>How thorough the block verification is (0-6, default: 1)</source> <translation>Cat de temeinica sa fie verificarea blocurilor( 0-6, implicit: 1)</translation> </message> <message> <location line="+1"/> <source>Imports blocks from external blk000?.dat file</source> <translation>Importă blocuri dintr-un fișier extern blk000?.dat</translation> </message> <message> <location line="+8"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>Folosește OpenSSL (https) pentru conexiunile JSON-RPC</translation> </message> <message> <location line="+1"/> <source>Server certificate file (default: server.cert)</source> <translation>Certificatul serverului (implicit: server.cert)</translation> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation>Cheia privată a serverului (implicit: server.pem)</translation> </message> <message> <location line="+1"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation>Cifruri acceptabile (implicit: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</translation> </message> <message> <location line="+53"/> <source>Error: Wallet unlocked for staking only, unable to create transaction.</source> <translation>Eroare: portofel blocat doar pentru staking, tranzactia nu s-a creat.</translation> </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>ATENTIONARE: checkpoint invalid! Trazatiile afisate pot fi incorecte! Posibil să aveți nevoie să faceți upgrade, sau să notificati dezvoltatorii.</translation> </message> <message> <location line="-158"/> <source>This help message</source> <translation>Acest mesaj de ajutor</translation> </message> <message> <location line="+95"/> <source>Wallet %s resides outside data directory %s.</source> <translation>Portofelul %s este in afara directorului %s</translation> </message> <message> <location line="+1"/> <source>Cannot obtain a lock on data directory %s. bananacoin is probably already running.</source> <translation>Nu se poate obtine un lock pe directorul de date &amp;s. Blackoin probabil ruleaza deja.</translation> </message> <message> <location line="-98"/> <source>bananacoin</source> <translation>bananacoin</translation> </message> <message> <location line="+140"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation>Nu se poate folosi %s pe acest calculator (eroarea returnată este %d, %s)</translation> </message> <message> <location line="-130"/> <source>Connect through socks proxy</source> <translation>Conectează-te printr-un proxy socks</translation> </message> <message> <location line="+3"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation>Permite căutări DNS pentru -addnode, -seednode și -connect</translation> </message> <message> <location line="+122"/> <source>Loading addresses...</source> <translation>Încarc adrese...</translation> </message> <message> <location line="-15"/> <source>Error loading blkindex.dat</source> <translation>Eroare la încărcarea blkindex.dat</translation> </message> <message> <location line="+2"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation>Eroare la încărcarea wallet.dat: Portofel corupt</translation> </message> <message> <location line="+4"/> <source>Error loading wallet.dat: Wallet requires newer version of bananacoin</source> <translation>Eroare la încărcarea wallet.dat: Portofelul necesita o versiune mai noua de bananacoin</translation> </message> <message> <location line="+1"/> <source>Wallet needed to be rewritten: restart bananacoin to complete</source> <translation>A fost nevoie de rescrierea portofelului: restartați bananacoin pentru a finaliza</translation> </message> <message> <location line="+1"/> <source>Error loading wallet.dat</source> <translation>Eroare la încărcarea wallet.dat</translation> </message> <message> <location line="-16"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation>Adresa -proxy nevalidă: &apos;%s&apos;</translation> </message> <message> <location line="-1"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation>Rețeaua specificată în -onlynet este necunoscută: &apos;%s&apos;</translation> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation>S-a cerut o versiune necunoscută de proxy -socks: %i</translation> </message> <message> <location line="+4"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation>Nu se poate rezolva adresa -bind: &apos;%s&apos;</translation> </message> <message> <location line="+2"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation>Nu se poate rezolva adresa -externalip: &apos;%s&apos;</translation> </message> <message> <location line="-24"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>Suma nevalidă pentru -paytxfee=&lt;amount&gt;: &apos;%s&apos;</translation> </message> <message> <location line="+44"/> <source>Error: could not start node</source> <translation>Eroare: nodul nu a putut fi pornit</translation> </message> <message> <location line="+11"/> <source>Sending...</source> <translation>Se trimite...</translation> </message> <message> <location line="+5"/> <source>Invalid amount</source> <translation>Sumă nevalidă</translation> </message> <message> <location line="+1"/> <source>Insufficient funds</source> <translation>Fonduri insuficiente</translation> </message> <message> <location line="-34"/> <source>Loading block index...</source> <translation>Încarc indice bloc...</translation> </message> <message> <location line="-103"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation>Adaugă un nod la care te poți conecta pentru a menține conexiunea deschisă</translation> </message> <message> <location line="+122"/> <source>Unable to bind to %s on this computer. bananacoin is probably already running.</source> <translation>Imposibil de conectat %s pe acest computer. Cel mai probabil bananacoin ruleaza</translation> </message> <message> <location line="-97"/> <source>Fee per KB to add to transactions you send</source> <translation>Comision pe kB de adaugat la tranzactiile pe care le trimiti</translation> </message> <message> <location line="+55"/> <source>Invalid amount for -mininput=&lt;amount&gt;: &apos;%s&apos;</source> <translation>Suma invalida pentru -mininput=&lt;amount&gt;: &apos;%s&apos;</translation> </message> <message> <location line="+25"/> <source>Loading wallet...</source> <translation>Încarc portofel...</translation> </message> <message> <location line="+8"/> <source>Cannot downgrade wallet</source> <translation>Nu se poate retrograda portofelul</translation> </message> <message> <location line="+1"/> <source>Cannot initialize keypool</source> <translation>Nu se poate initializa keypool</translation> </message> <message> <location line="+1"/> <source>Cannot write default address</source> <translation>Nu se poate scrie adresa implicită</translation> </message> <message> <location line="+1"/> <source>Rescanning...</source> <translation>Rescanez...</translation> </message> <message> <location line="+5"/> <source>Done loading</source> <translation>Încărcare terminată</translation> </message> <message> <location line="-167"/> <source>To use the %s option</source> <translation>Pentru a folosi opțiunea %s</translation> </message> <message> <location line="+14"/> <source>Error</source> <translation>Eroare</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>Trebuie sa setezi rpcpassword=&lt;password&gt; în fișierul de configurare:⏎ %s⏎ Dacă fișierul nu există, creează-l cu permisiuni de citire doar de către proprietar.</translation> </message> </context> </TS>
mit
nilskp/scuff
src/main/scala/scuff/LRUOffHeapCache.scala
1670
package scuff import java.util.concurrent.locks._ import java.nio._ import scala.concurrent.duration._ /** * This cache allows you to store arbitrary sized objects off * the JVM heap, thereby not affecting GC times. */ final class LRUOffHeapCache[K, V]( maxCapacity: Int, ser: Serializer[V], val defaultTTL: Duration = Duration.Zero, staleCheckFreq: FiniteDuration = 10.seconds, lock: ReadWriteLock = new ReentrantReadWriteLock) extends Cache[K, V] with Expiry[K, V] { type R[T] = T private[this] val impl = new LRUHeapCache[K, ByteBuffer](maxCapacity, defaultTTL, staleCheckFreq, lock) private def toValue(buffer: ByteBuffer): V = { val bytes = new Array[Byte](buffer.capacity) buffer.synchronized { buffer.position(0) buffer.get(bytes) } ser.decode(bytes) } private def toBuffer(value: V): ByteBuffer = { val bytes = ser.encode(value) val buffer = ByteBuffer.allocateDirect(bytes.length) buffer.put(bytes).asReadOnlyBuffer() } def store(key: K, value: V, ttl: Duration) = impl.store(key, toBuffer(value), ttl) def evict(key: K): Boolean = impl.evict(key) def lookupAndEvict(key: K): Option[V] = impl.lookupAndEvict(key).map(toValue) def lookup(key: K): Option[V] = impl.lookup(key).map(toValue) def contains(key: K): Boolean = impl.contains(key) def lookupOrStore(key: K, ttl: Duration)(constructor: => V): V = toValue(impl.lookupOrStore(key, ttl)(toBuffer(constructor))) def shutdown() = impl.shutdown() def lookupAndRefresh(key: K, ttl: Duration): Option[V] = impl.lookupAndRefresh(key, ttl).map(toValue) def refresh(key: K, ttl: Duration) = impl.refresh(key, ttl) }
mit
maartenvangelder/AliceBox
api/controllers/MemberController.js
2412
/** * MemberController * * @module :: Controller * @description :: A set of functions called `actions`. * * Actions contain code telling Sails how to respond to a certain type of request. * (i.e. do stuff, then send some JSON, show an HTML page, or redirect to another URL) * * You can configure the blueprint URLs which trigger these actions (`config/controllers.js`) * and/or override them with custom routes (`config/routes.js`) * * NOTE: The code you write here supports both HTTP and Socket.io automatically. * * @docs :: http://sailsjs.org/#!documentation/controllers */ module.exports = { /** * Action blueprints: * `/member/find` */ find: function (req, res) { Member.find() .where( { "loginUser.emails.value" : '[email protected]' } ) .exec( function( err, users ){ if( err ){ console.log(err); } console.log( users ); } ); // Send a JSON response return res.json({ hello: 'world find' }); }, /** * Action blueprints: * `/member/findAll` */ findAll: function (req, res) { // Send a JSON response return res.json({ hello: 'world findAll' }); }, /** * Action blueprints: * `/member/createMe` */ createMe: function (req, res) { Member.create( { name : "nam" , memberAuthenType : "google" }, function( err , model ){ if( err ){ console.log(model) }; console.log( model ); // Send a JSON response return res.json({ hello: 'world findMe', member: model }); }) }, /** * Action blueprints: * `/member/create` */ create: function (req, res) { // Send a JSON response return res.json({ hello: 'world create' }); }, /** * Action blueprints: * `/member/update` */ update: function (req, res) { // Send a JSON response return res.json({ hello: 'world update' }); }, /** * Action blueprints: * `/member/destroy` */ destroy: function (req, res) { // Send a JSON response return res.json({ hello: 'world destroy' }); }, /** * Overrides for the settings in `config/controllers.js` * (specific to MemberController) */ _config: {} };
mit
Galbar/tiled-map
include/tiled/TileLayer.hpp
959
#ifndef TILED_TILELAYER_HPP #define TILED_TILELAYER_HPP #include <vector> #include <string> #include "Layer.hpp" namespace tiled { class Map; class Tile; class TileLayer : public Layer { public: enum class Encoding { LUA, BASE64, COUNT }; enum class Compression { NONE, ZLIB, GZIB, COUNT }; TileLayer(); virtual ~TileLayer(); void setEncoding(Encoding encoding); Encoding getEncoding() const; void setCompression(Compression compression); Compression getCompression() const; void setData(const std::string& data); std::string& getData(); const std::string& getData() const; void setTileMap(const std::vector<int>& map_tile); std::vector<int>& getTileMap(); const std::vector<int>& getTileMap() const; void parseData(const Map& map); private: Encoding p_encoding; Compression p_compression; std::string p_data; std::vector<int> p_map_tile; //vector of tiles gid's }; } #endif
mit
willvincent/laravel-rateable
tests/Database/migrations/PostMigrator.php
650
<?php namespace willvincent\Rateable\Tests\Database\migrations; use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class PostMigrator extends Migration { /** * Run the migrations. */ public function up() { Schema::create('posts', function (Blueprint $table) { $table->increments('id'); $table->timestamps(); $table->string('title'); $table->text('body'); }); } /** * Reverse the migrations. */ public function down() { Schema::drop('posts'); } }
mit
tonysneed/AdvDotNet.Samples
src/07-Web API Architecture/3-Async/After/WebApiQuickstart/Controllers/ValuesController.cs
2832
using System; using System.Collections.Generic; using System.Net; using System.Threading.Tasks; using System.Web.Http; using System.Web.Http.Description; using WebApiQuickstart.Models; namespace WebApiQuickstart.Controllers { [RoutePrefix("api/values")] public class ValuesController : ApiController { private static readonly List<string> Values = new List<string> { "value1", "value2", "value3", "value4", "value5" }; private static readonly ValuesRepository Repository = new ValuesRepository(); // GET api/values/retrieve [HttpGet, Route("")] [ResponseType(typeof(IEnumerable<string>))] public async Task<IHttpActionResult> Retrieve() { var values = await Repository.GetValuesAsync(); return Ok(values); } // GET api/values/5 [Route("{id:int}")] [ResponseType(typeof(string))] public async Task<IHttpActionResult> GetValuesById(int id) { var value = await Repository.GetValueAsync(id); if (value == null) throw new HttpResponseException(HttpStatusCode.NotFound); return Ok(Values[id - 1]); } // GET api/values/5 [Route("{name}")] [ResponseType(typeof(string))] public async Task<IHttpActionResult> GetValuesById(string name) { var value = await Repository.GetValueAsync(name); if (value == null) throw new HttpResponseException(HttpStatusCode.NotFound); return Ok(value); } // POST api/values [HttpPost, Route("", Name = "DefaultApi2")] [ResponseType(typeof(string))] public async Task<IHttpActionResult> Post([FromBody]string value) { await Repository.AddValueAsync(value); return CreatedAtRoute("DefaultApi2", new { id = Values.Count }, value); } // PUT api/values/5 [HttpPut, Route("{id}")] public async Task<IHttpActionResult> Put(int id, [FromBody]string value) { try { await Repository.UpdateAsync(id, value); } catch (InvalidOperationException) { throw new HttpResponseException(HttpStatusCode.NotFound); } return Ok(); } // DELETE api/values/5 [HttpDelete, Route("{id}")] public async Task<IHttpActionResult> Delete(int id) { try { await Repository.DeleteAsync(id); } catch (InvalidOperationException) { throw new HttpResponseException(HttpStatusCode.NotFound); } return Ok(); } } }
mit
c3-ls/Ahoy
test/WebSites/VirtualDirectory/Controllers/CrudActionsController.cs
1302
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Mvc; namespace VirtualDirectory.Controllers { [Route("/products")] [Produces("application/json")] public class CrudActionsController { [HttpPost] public int Create([FromBody, Required]Product product) { return 1; } [HttpGet] public IEnumerable<Product> GetAll() { return new[] { new Product { Id = 1, Description = "A product" }, new Product { Id = 2, Description = "Another product" }, }; } [HttpGet("{id}")] public Product GetById(int id) { return new Product { Id = id, Description = "A product" }; } [HttpPut("{id}")] public void Update(int id, [FromBody, Required]Product product) { } [HttpPatch("{id}")] public void PartialUpdate(int id, [FromBody, Required]IDictionary<string, object> updates) { } [HttpDelete("{id}")] public void Delete(int id) { } } public class Product { public int Id { get; set; } public string Description { get; set; } } }
mit
sutter-dave/ApogeeJS
web/prosemirror/devimports/prosemirror-inputrules.es.js
60
export * from "../repos/prosemirror-inputrules/src/index.js"
mit
qtvideofilter/streamingcoin
src/qt/locale/bitcoin_cy.ts
110079
<?xml version="1.0" ?><!DOCTYPE TS><TS language="cy" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About phreak</source> <translation type="unfinished"/> </message> <message> <location line="+39"/> <source>&lt;b&gt;phreak&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 phreak developers</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source> This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young ([email protected]) and UPnP software written by Thomas Bernard.</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>Double-click to edit address or label</source> <translation>Clicio dwywaith i olygu cyfeiriad neu label</translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation>Creu cyfeiriad newydd</translation> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation>Copio&apos;r cyfeiriad sydd wedi&apos;i ddewis i&apos;r clipfwrdd system</translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation type="unfinished"/> </message> <message> <location line="-46"/> <source>These are your phreak 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 type="unfinished"/> </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 phreak 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="-14"/> <source>Verify a message to ensure it was signed with a specified phreak 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;Dileu</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+65"/> <source>Copy &amp;Label</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>&amp;Edit</source> <translation type="unfinished"/> </message> <message> <location line="+250"/> <source>Export Address Book Data</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation>Label</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Cyfeiriad</translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>(heb label)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>Teipiwch gyfrinymadrodd</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>Cyfrinymadrodd newydd</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>Ailadroddwch gyfrinymadrodd newydd</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>Dewiswch gyfrinymadrodd newydd ar gyfer y waled. &lt;br/&gt; Defnyddiwch cyfrinymadrodd o &lt;b&gt;10 neu fwy o lythyrennau hapgyrch&lt;/b&gt;, neu &lt;b&gt; wyth neu fwy o eiriau.</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation>Amgryptio&apos;r waled</translation> </message> <message> <location line="+7"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>Mae angen i&apos;r gweithred hon ddefnyddio&apos;ch cyfrinymadrodd er mwyn datgloi&apos;r waled.</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>Datgloi&apos;r waled</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>Mae angen i&apos;r gweithred hon ddefnyddio&apos;ch cyfrinymadrodd er mwyn dadgryptio&apos;r waled.</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>Dadgryptio&apos;r waled</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>Newid cyfrinymadrodd</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>Teipiwch yr hen cyfrinymadrodd a chyfrinymadrodd newydd i mewn i&apos;r waled.</translation> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation>Cadarnau amgryptiad y waled</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 type="unfinished"/> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+103"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation type="unfinished"/> </message> <message> <location line="-133"/> <location line="+60"/> <source>Wallet encrypted</source> <translation>Waled wedi&apos;i amgryptio</translation> </message> <message> <location line="-58"/> <source>phreak 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>Amgryptiad waled wedi methu</translation> </message> <message> <location line="-56"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>Methodd amgryptiad y waled oherwydd gwall mewnol. Ni amgryptwyd eich waled.</translation> </message> <message> <location line="+7"/> <location line="+50"/> <source>The supplied passphrases do not match.</source> <translation>Dydy&apos;r cyfrinymadroddion a ddarparwyd ddim yn cyd-fynd â&apos;u gilydd.</translation> </message> <message> <location line="-38"/> <source>Wallet unlock failed</source> <translation>Methodd ddatgloi&apos;r waled</translation> </message> <message> <location line="+1"/> <location line="+12"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation type="unfinished"/> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>Methodd dadgryptiad y waled</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="+282"/> <source>Sign &amp;message...</source> <translation type="unfinished"/> </message> <message> <location line="+251"/> <source>Synchronizing with network...</source> <translation>Cysoni â&apos;r rhwydwaith...</translation> </message> <message> <location line="-319"/> <source>&amp;Overview</source> <translation>&amp;Trosolwg</translation> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation>Dangos trosolwg cyffredinol y waled</translation> </message> <message> <location line="+17"/> <source>&amp;Transactions</source> <translation>&amp;Trafodion</translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation>Pori hanes trafodion</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 type="unfinished"/> </message> <message> <location line="+1"/> <source>Quit application</source> <translation>Gadael rhaglen</translation> </message> <message> <location line="+6"/> <source>Show information about phreak</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation>&amp;Opsiynau</translation> </message> <message> <location line="+4"/> <source>&amp;Encrypt Wallet...</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+259"/> <source>~%n block(s) remaining</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><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 phreak address</source> <translation type="unfinished"/> </message> <message> <location line="+47"/> <source>Modify configuration options for phreak</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>Export the data in the current tab to a file</source> <translation type="unfinished"/> </message> <message> <location line="-14"/> <source>Encrypt or decrypt wallet</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Backup wallet to another location</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation>Newid y cyfrinymadrodd a ddefnyddiwyd ar gyfer amgryptio&apos;r waled</translation> </message> <message> <location line="+10"/> <source>&amp;Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation type="unfinished"/> </message> <message> <location line="-5"/> <source>&amp;Verify message...</source> <translation type="unfinished"/> </message> <message> <location line="-202"/> <source>phreak</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+180"/> <source>&amp;About phreak</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation type="unfinished"/> </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;Ffeil</translation> </message> <message> <location line="+8"/> <source>&amp;Settings</source> <translation>&amp;Gosodiadau</translation> </message> <message> <location line="+8"/> <source>&amp;Help</source> <translation>&amp;Cymorth</translation> </message> <message> <location line="+12"/> <source>Tabs toolbar</source> <translation>Bar offer tabiau</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>phreak client</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+75"/> <source>%n active connection(s) to phreak network</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><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><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="-312"/> <source>About phreak card</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show information about phreak 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><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><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><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+6"/> <source>Up to date</source> <translation>Cyfamserol</translation> </message> <message> <location line="+7"/> <source>Catching up...</source> <translation>Dal i fyny</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>Trafodiad a anfonwyd</translation> </message> <message> <location line="+1"/> <source>Incoming transaction</source> <translation>Trafodiad sy&apos;n cyrraedd</translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation type="unfinished"/> </message> <message> <location line="+100"/> <location line="+15"/> <source>URI handling</source> <translation type="unfinished"/> </message> <message> <location line="-15"/> <location line="+15"/> <source>URI can not be parsed! This can be caused by an invalid phreak 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>Mae&apos;r waled &lt;b&gt;wedi&apos;i amgryptio&lt;/b&gt; ac &lt;b&gt;heb ei gloi&lt;/b&gt; ar hyn o bryd</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>Mae&apos;r waled &lt;b&gt;wedi&apos;i amgryptio&lt;/b&gt; ac &lt;b&gt;ar glo&lt;/b&gt; ar hyn o bryd</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><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n minute(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n hour(s)</source> <translation type="unfinished"><numerusform></numerusform><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><numerusform></numerusform></translation> </message> <message> <location line="+18"/> <source>Not staking</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoin.cpp" line="+109"/> <source>A fatal error occurred. phreak can no longer continue safely and will quit.</source> <translation type="unfinished"/> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+90"/> <source>Network Alert</source> <translation type="unfinished"/> </message> </context> <context> <name>CoinControlDialog</name> <message> <location filename="../forms/coincontroldialog.ui" line="+14"/> <source>Coin Control</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Quantity:</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>Bytes:</source> <translation type="unfinished"/> </message> <message> <location line="+48"/> <source>Amount:</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>Priority:</source> <translation type="unfinished"/> </message> <message> <location line="+48"/> <source>Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Low Output:</source> <translation type="unfinished"/> </message> <message> <location filename="../coincontroldialog.cpp" line="+551"/> <source>no</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/coincontroldialog.ui" line="+51"/> <source>After Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Change:</source> <translation type="unfinished"/> </message> <message> <location line="+69"/> <source>(un)select all</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Tree mode</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>List mode</source> <translation type="unfinished"/> </message> <message> <location line="+45"/> <source>Amount</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Label</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Address</source> <translation>Cyfeiriad</translation> </message> <message> <location line="+5"/> <source>Date</source> <translation>Dyddiad</translation> </message> <message> <location line="+5"/> <source>Confirmations</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Confirmed</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Priority</source> <translation type="unfinished"/> </message> <message> <location filename="../coincontroldialog.cpp" line="-515"/> <source>Copy address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <location line="+26"/> <source>Copy amount</source> <translation type="unfinished"/> </message> <message> <location line="-25"/> <source>Copy transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>Copy quantity</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Copy fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy after fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy bytes</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy priority</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy low output</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy change</source> <translation type="unfinished"/> </message> <message> <location line="+317"/> <source>highest</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>high</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>medium-high</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>medium</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>low-medium</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>low</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>lowest</source> <translation type="unfinished"/> </message> <message> <location line="+155"/> <source>DUST</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>yes</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>This label turns red, if the transaction size is bigger than 10000 bytes. This means a fee of at least %1 per kb is required. Can vary +/- 1 Byte per input.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transactions with higher priority get more likely into a block. This label turns red, if the priority is smaller than &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>(heb label)</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>Golygu&apos;r cyfeiriad</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>&amp;Label</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;Cyfeiriad</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>Cyfeiriad derbyn newydd</translation> </message> <message> <location line="+4"/> <source>New sending address</source> <translation>Cyfeiriad anfon newydd</translation> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation>Golygu&apos;r cyfeiriad derbyn</translation> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation>Golygu&apos;r cyfeiriad anfon</translation> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>Mae&apos;r cyfeiriad &quot;%1&quot; sydd newydd gael ei geisio gennych yn y llyfr cyfeiriad yn barod.</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid phreak address.</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>Methodd ddatgloi&apos;r waled.</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation>Methodd gynhyrchu allwedd newydd.</translation> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+420"/> <location line="+12"/> <source>phreak-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>Opsiynau</translation> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB. Fee 0.01 recommended.</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Reserved amount does not participate in staking and is therefore spendable at any time.</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Reserve</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Automatically start phreak after logging in to the system.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Start phreak 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 type="unfinished"/> </message> <message> <location line="+6"/> <source>Automatically open the phreak 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 type="unfinished"/> </message> <message> <location line="+7"/> <source>Connect to the phreak 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 type="unfinished"/> </message> <message> <location line="+19"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Port:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation type="unfinished"/> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting phreak.</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Whether to show phreak 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 type="unfinished"/> </message> <message> <location line="+7"/> <source>Whether to show coin control features or not.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Display coin &amp;control features (experts only!)</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="+55"/> <source>default</source> <translation type="unfinished"/> </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 phreak.</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation type="unfinished"/> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation>Ffurflen</translation> </message> <message> <location line="+33"/> <location line="+231"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the phreak 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 type="unfinished"/> </message> <message> <location line="+49"/> <source>Spendable:</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Your current spendable balance</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>Immature:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation type="unfinished"/> </message> <message> <location line="+20"/> <source>Total:</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Your current total balance</source> <translation type="unfinished"/> </message> <message> <location line="+46"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;Trafodion diweddar&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 type="unfinished"/> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="+14"/> <source>QR Code Dialog</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation type="unfinished"/> </message> <message> <location line="+56"/> <source>Amount:</source> <translation type="unfinished"/> </message> <message> <location line="-44"/> <source>Label:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Message:</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>&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 type="unfinished"/> </message> <message> <location line="+10"/> <location line="+23"/> <location line="+26"/> <location line="+23"/> <location line="+23"/> <location line="+36"/> <location line="+53"/> <location line="+23"/> <location line="+23"/> <location filename="../rpcconsole.cpp" line="+348"/> <source>N/A</source> <translation type="unfinished"/> </message> <message> <location line="-217"/> <source>Client version</source> <translation type="unfinished"/> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation type="unfinished"/> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation type="unfinished"/> </message> <message> <location line="+49"/> <source>Startup time</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Network</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>On testnet</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Block chain</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Last block time</source> <translation type="unfinished"/> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Show the phreak-Qt help message to get a list with possible phreak 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 type="unfinished"/> </message> <message> <location line="-260"/> <source>Build date</source> <translation type="unfinished"/> </message> <message> <location line="-104"/> <source>phreak - Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>phreak 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 phreak debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation type="unfinished"/> </message> <message> <location line="+102"/> <source>Clear console</source> <translation type="unfinished"/> </message> <message> <location filename="../rpcconsole.cpp" line="-33"/> <source>Welcome to the phreak 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 type="unfinished"/> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="+14"/> <location filename="../sendcoinsdialog.cpp" line="+182"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+6"/> <location line="+5"/> <location line="+5"/> <source>Send Coins</source> <translation>Anfon arian</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 type="unfinished"/> </message> <message> <location line="+22"/> <location line="+86"/> <location line="+86"/> <location line="+32"/> <source>0.00 PHR</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>Anfon at pobl lluosog ar yr un pryd</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 type="unfinished"/> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>Balance:</source> <translation>Gweddill:</translation> </message> <message> <location line="+16"/> <source>123.456 PHR</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Confirm the send action</source> <translation>Cadarnhau&apos;r gweithrediad anfon</translation> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-173"/> <source>Enter a phreak address (e.g. PHR1xGeKnTkaAotEVgs2rnUfVsFv8LVSM)</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Copy quantity</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy after fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy bytes</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy priority</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy low output</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy change</source> <translation type="unfinished"/> </message> <message> <location line="+86"/> <source>&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 type="unfinished"/> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source> and </source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>The recipient address is not valid, please recheck.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: Transaction creation failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> <message> <location line="+251"/> <source>WARNING: Invalid phreak address</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>(no label)</source> <translation>(heb label)</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;Maint</translation> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <location filename="../sendcoinsentry.cpp" line="+25"/> <source>Enter a label for this address to add it to your address book</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>&amp;Label:</source> <translation>&amp;Label:</translation> </message> <message> <location line="+18"/> <source>The address to send the payment to (e.g. PHR1xGeKnTkaAotEVgs2rnUfVsFv8LVSM)</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>Gludo cyfeiriad o&apos;r glipfwrdd</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 phreak address (e.g. PHR1xGeKnTkaAotEVgs2rnUfVsFv8LVSM)</source> <translation type="unfinished"/> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <location filename="../forms/signverifymessagedialog.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <location line="+124"/> <source>&amp;Sign Message</source> <translation type="unfinished"/> </message> <message> <location line="-118"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. PHR1xGeKnTkaAotEVgs2rnUfVsFv8LVSM)</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>Gludo cyfeiriad o&apos;r glipfwrdd</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="+24"/> <source>Copy the current signature to the system clipboard</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this phreak address</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Reset all sign message fields</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation type="unfinished"/> </message> <message> <location line="-87"/> <location line="+70"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="-64"/> <source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. PHR1xGeKnTkaAotEVgs2rnUfVsFv8LVSM)</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified phreak address</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Reset all verify message fields</source> <translation type="unfinished"/> </message> <message> <location filename="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a phreak address (e.g. PHR1xGeKnTkaAotEVgs2rnUfVsFv8LVSM)</source> <translation type="unfinished"/> </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 phreak signature</source> <translation type="unfinished"/> </message> <message> <location line="+82"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation type="unfinished"/> </message> <message> <location line="-81"/> <location line="+8"/> <location line="+73"/> <location line="+8"/> <source>Please check the address and try again.</source> <translation type="unfinished"/> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation type="unfinished"/> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+19"/> <source>Open until %1</source> <translation>Agor tan %1</translation> </message> <message numerus="yes"> <location line="-2"/> <source>Open for %n block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><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 type="unfinished"/> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>Status</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>Dyddiad</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><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>Neges</translation> </message> <message> <location line="+2"/> <source>Comment</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Generated coins must mature 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 type="unfinished"/> </message> <message> <location line="+8"/> <source>Transaction</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Inputs</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>true</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>false</source> <translation type="unfinished"/> </message> <message> <location line="-211"/> <source>, has not been successfully broadcast yet</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>unknown</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+226"/> <source>Date</source> <translation>Dyddiad</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>Math</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Cyfeiriad</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation type="unfinished"/> </message> <message> <location line="+60"/> <source>Open until %1</source> <translation>Agor tan %1</translation> </message> <message> <location line="+12"/> <source>Confirmed (%1 confirmations)</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="-15"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+6"/> <source>Offline</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Unconfirmed</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Confirming (%1 of %2 recommended confirmations)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Conflicted</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Immature (%1 confirmations, will be available after %2)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation type="unfinished"/> </message> <message> <location line="+42"/> <source>Received with</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Received from</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sent to</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Mined</source> <translation type="unfinished"/> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation type="unfinished"/> </message> <message> <location line="+190"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+55"/> <location line="+16"/> <source>All</source> <translation type="unfinished"/> </message> <message> <location line="-15"/> <source>Today</source> <translation>Heddiw</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This month</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Last month</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This year</source> <translation>Eleni</translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Received with</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Sent to</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>To yourself</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Mined</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Other</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Min amount</source> <translation type="unfinished"/> </message> <message> <location line="+34"/> <source>Copy address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Edit label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation type="unfinished"/> </message> <message> <location line="+144"/> <source>Export Transaction Data</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Date</source> <translation>Dyddiad</translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>Math</translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>Label</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation>Cyfeiriad</translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>ID</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation type="unfinished"/> </message> <message> <location line="+100"/> <source>Range:</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>to</source> <translation type="unfinished"/> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+206"/> <source>Sending...</source> <translation type="unfinished"/> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+33"/> <source>phreak version</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Usage:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Send command to -server or phreakd</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>List commands</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Get help for a command</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Options:</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Specify configuration file (default: phreak.conf)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Specify pid file (default: phreakd.pid)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Specify wallet file (within data directory)</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Set database cache size in megabytes (default: 25)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set database disk log size in megabytes (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Listen for connections on &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 type="unfinished"/> </message> <message> <location line="+3"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Specify your own public address</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Bind to given address. Use [host]:port notation for IPv6</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Stake your coins to support network and gain reward (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation type="unfinished"/> </message> <message> <location line="-44"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation type="unfinished"/> </message> <message> <location line="+51"/> <source>Detach block and address databases. Increases shutdown time (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+109"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> <message> <location line="-5"/> <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds </source> <translation type="unfinished"/> </message> <message> <location line="-87"/> <source>Listen for JSON-RPC connections on &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 type="unfinished"/> </message> <message> <location line="+101"/> <source>Error: Transaction creation failed </source> <translation type="unfinished"/> </message> <message> <location line="-5"/> <source>Error: Wallet locked, unable to create transaction </source> <translation type="unfinished"/> </message> <message> <location line="-8"/> <source>Importing blockchain data file.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Importing bootstrap blockchain data file.</source> <translation type="unfinished"/> </message> <message> <location line="-88"/> <source>Run in the background as a daemon and accept commands</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use the test network</source> <translation type="unfinished"/> </message> <message> <location line="-24"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation type="unfinished"/> </message> <message> <location line="-38"/> <source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source> <translation type="unfinished"/> </message> <message> <location line="+117"/> <source>Error initializing database environment %s! To recover, BACKUP THAT DIRECTORY, then remove everything from it except for wallet.dat.</source> <translation type="unfinished"/> </message> <message> <location line="-20"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+61"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong phreak will not work properly.</source> <translation type="unfinished"/> </message> <message> <location line="-31"/> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation type="unfinished"/> </message> <message> <location line="-18"/> <source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source> <translation type="unfinished"/> </message> <message> <location line="-30"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Block creation options:</source> <translation type="unfinished"/> </message> <message> <location line="-62"/> <source>Connect only to the specified node(s)</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation type="unfinished"/> </message> <message> <location line="+94"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation type="unfinished"/> </message> <message> <location line="-90"/> <source>Find peers using DNS lookup (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Sync checkpoints policy (default: strict)</source> <translation type="unfinished"/> </message> <message> <location line="+83"/> <source>Invalid -tor address: &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 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="-16"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>Output extra debugging information. Implies all other -debug* options</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Output extra network debugging information</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Prepend debug output with timestamp</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source> <translation type="unfinished"/> </message> <message> <location line="-74"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation type="unfinished"/> </message> <message> <location line="+41"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Send trace/debug info to debugger</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="-29"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation type="unfinished"/> </message> <message> <location line="-42"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation type="unfinished"/> </message> <message> <location line="+109"/> <source>Unable to sign checkpoint, wrong checkpointkey? </source> <translation type="unfinished"/> </message> <message> <location line="-80"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation type="unfinished"/> </message> <message> <location line="-25"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation type="unfinished"/> </message> <message> <location line="+42"/> <source>Username for JSON-RPC connections</source> <translation type="unfinished"/> </message> <message> <location line="+47"/> <source>Verifying database integrity...</source> <translation type="unfinished"/> </message> <message> <location line="+57"/> <source>WARNING: syncronized checkpoint violation detected, but skipped!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Warning: Disk space is low!</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation type="unfinished"/> </message> <message> <location line="-48"/> <source>wallet.dat corrupt, salvage failed</source> <translation type="unfinished"/> </message> <message> <location line="-54"/> <source>Password for JSON-RPC connections</source> <translation type="unfinished"/> </message> <message> <location line="-84"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=phreakrpc 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;phreak Alert&quot; [email protected] </source> <translation type="unfinished"/> </message> <message> <location line="+51"/> <source>Find peers using internet relay chat (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Sync time with other nodes. Disable if time on your system is precise e.g. syncing with NTP (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Require a confirmations for change (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Enforce transaction scripts to use canonical PUSH operators (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Upgrade wallet to latest format</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Rescan the block chain for missing wallet transactions</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>How many blocks to check at startup (default: 2500, 0 = all)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>How thorough the block verification is (0-6, default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Imports blocks from external blk000?.dat file</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Server certificate file (default: server.cert)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation type="unfinished"/> </message> <message> <location line="+53"/> <source>Error: Wallet unlocked for staking only, unable to create transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>WARNING: Invalid checkpoint found! Displayed transactions may not be correct! You may need to upgrade, or notify developers.</source> <translation type="unfinished"/> </message> <message> <location line="-158"/> <source>This help message</source> <translation type="unfinished"/> </message> <message> <location line="+95"/> <source>Wallet %s resides outside data directory %s.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot obtain a lock on data directory %s. phreak is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="-98"/> <source>phreak</source> <translation type="unfinished"/> </message> <message> <location line="+140"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation type="unfinished"/> </message> <message> <location line="-130"/> <source>Connect through socks proxy</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation type="unfinished"/> </message> <message> <location line="+122"/> <source>Loading addresses...</source> <translation type="unfinished"/> </message> <message> <location line="-15"/> <source>Error loading blkindex.dat</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error loading wallet.dat: Wallet requires newer version of phreak</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Wallet needed to be rewritten: restart phreak to complete</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error loading wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="-16"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="-24"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+44"/> <source>Error: could not start node</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Sending...</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Invalid amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Insufficient funds</source> <translation type="unfinished"/> </message> <message> <location line="-34"/> <source>Loading block index...</source> <translation type="unfinished"/> </message> <message> <location line="-103"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation type="unfinished"/> </message> <message> <location line="+122"/> <source>Unable to bind to %s on this computer. phreak 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 type="unfinished"/> </message> <message> <location line="+8"/> <source>Cannot downgrade wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot initialize keypool</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot write default address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Rescanning...</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Done loading</source> <translation type="unfinished"/> </message> <message> <location line="-167"/> <source>To use the %s option</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Error</source> <translation>Gwall</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 type="unfinished"/> </message> </context> </TS>
mit
komitoff/Java-DB-Fundamentals
softuni_game_store/src/main/java/game_store/serviceImpl/GameServiceImpl.java
185
package game_store.serviceImpl; import game_store.service.GameService; import org.springframework.stereotype.Service; @Service public class GameServiceImpl implements GameService { }
mit
allanesquina/version
src/version.js
191
;(function( doc, win ) { 'use strict'; function module() { } var proto = module.prototype; proto.version = '@VERSION'; console.log( new module().version ) })( document, window );
mit
renhongl/Summary
demo-javascript/js-jingjie/section-three.js
1170
function isEven(n) { if (n === 0) { return true; } else if (n === 1) { return false; } else { return this.isEven(n - 2); } } function countChar(str, char) { let count = 0; const countFn = (str, char) => { if(str.length > 1){ if (str.charAt(str.length - 1) === char) { count++; } return countFn(str.slice(0, str.length - 1), char); } else { if (str === char) { count++; } return count; } } return countFn(str, char); } function trim(str) { let retStr = ''; let emptyReg = /\s/; const trimStart = (str) => { const firstChar = str.charAt(0); if (emptyReg.test(firstChar)) { str = str.slice(1); return trimStart(str); } return trimEnd(str); } const trimEnd = (str) => { const lastChar = str.charAt(str.length - 1); if (emptyReg.test(lastChar)) { str = str.slice(0, str.length - 1); return trimEnd(str); } return str; } return trimStart(str); }
mit
Sioweb/Sioweb-MVC
app/views/Test/add.php
458
<?php $this->_title = 'Eintrag hinzufügen'; ?> <h2>Eintrag hinzufügen</h2> <form action="<?php echo $this->path_to('create');?>" method="post"> <fieldset> <?php foreach($this->data as $field) echo $field;?> <?php $Form = \sioweb\core\Form::getInstance(); echo $Form->generate(['name'=>'submit','type'=>'submit'])?> </fieldset> </form> <div class="controlls"> <a href="<?php echo $this->path_to('index');?>" title="Zurück">Zurück</a> </div>
mit
GroganBurners/ferveo
controllers/message.js
2314
const nodemailer = require("nodemailer"); const Router = require("express"); const config = require("../config"); const logger = require("winston"); var rp = require("request-promise"); var ok = require("./utils").ok; var fail = require("./utils").fail; module.exports = class MessageController { constructor() { this.smtpConfig = { host: config.mail.server, port: config.mail.port, secure: true, // use SSL auth: { user: config.mail.username, pass: config.mail.password } }; } sendSMS(sms) { var data = { username: config.sms.username, password: config.sms.password, function: "sendSms", number: sms.number, message: sms.message, senderid: "GrogBurners" }; return rp("https://www.my-cool-sms.com/api-socket.php", { json: true, body: data }).then(resp => { if (resp.hasOwnProperty("errorcode")) { logger.error("Send SMS failed: " + resp.description); throw new Error("SMS Send failed!"); } else { logger.info("SMS Sent to: " + JSON.Stringify(resp)); logger.debug("SMS Sent: " + JSON.Stringify(resp)); return { message: "Message sent" }; } }); /* .catch((err) => { return new Error('Error creating message: ' + err) }); */ } sendTestEmail(body) { const mailOptions = { from: '"' + config.mail.from.name + '" <' + config.mail.from.address + ">", // sender address to: body.to, // list of receivers subject: body.subject, // Subject line text: body.text, // plaintext body html: body.html // html body }; return this.send(mailOptions); } sendEmail(email) { const transporter = nodemailer.createTransport(this.smtpConfig); return transporter.sendMail(email).then(() => { return { message: "Message sent" }; }); /* .catch((err) => { return new Error('Error creating message: ' + err) }); */ } routeAPI() { const router = new Router(); router.post("/email", (req, res) => { this.sendEmail(req.body).then(ok(res)).then(null, fail(res)); }); router.post("/sms", (req, res) => { this.sendSMS(req.body).then(ok(res)).then(null, fail(res)); }); return router; } };
mit
WeAreOneTeam/DesignPatterns
src/team/struct/decorator/Person.java
392
package team.struct.decorator; //定义被装饰者,被装饰者初始状态有些自己的装饰 public class Person implements Human { @Override public void wearClothes() { // TODO Auto-generated method stub System.out.println("穿什么呢。。"); } @Override public void walkToWhere() { // TODO Auto-generated method stub System.out.println("去哪里呢。。"); } }
mit
angelf/escargot
test/index_options_test.rb
853
# coding: utf-8 require 'test_helper' class CustomIndexOptions < Test::Unit::TestCase load_schema class User < ActiveRecord::Base elastic_index( :updates => false, :index_options => { "analysis.analyzer.default.tokenizer" => 'standard', "analysis.analyzer.default.filter" => ["standard", "lowercase", "stop", "asciifolding"] } ) end def test_asciifolding_option User.delete_all User.delete_index User.create(:name => "Pedrín el Joven") User.create(:name => 'Pedro el Viejo') User.create(:name => 'Roberto el Delgado') User.create(:name => 'Jamie la Máquina Voladora') Escargot::LocalIndexing.create_index_for_model(User) results = User.search("pedrin") assert_equal results.total_entries, 1 User.delete_all User.delete_index end end
mit
ledlogic/blakes7-rpg
js/st/st-stat.js
1076
/* st-stat.js */ st.stat = { descriptions: { "str": "Physical power, ability to lift and carry and to apply force.", "siz": "Physical build, a composite measure of the character's height and weight.", "end": "Physical stamina: ability to physically exert over a period of time.", "ini": "Speed of reflexes: ability to act quickly under pressure.", "dex": "Accuracy of reflexes: co-ordination and nimbleness.", "per": "Eye for detail: how observant and alert.", "wil": "Determination and ability to resist pressure and coercion.", "rea": "Ability to think in a logical and deliberate manner. Can be correlated to education.", "cha": "Force of personality and ability to inspire others.", "emp": "Emotional stability and how well they cope with stress.", "hp": "Hit points: ability to withstand injury.", "hth": "Capacity to inflict injury in hand-to-hand combat.", "load": "Weight a character may carry over an extended period.", "PSI": "Ability to use psionic skills", "Stress": "Character's current state of mind or mental health." } };
mit
sdl/groupsharekit.net
Sdl.Community.GroupShareKit/Models/Response/TranslationMemory/Metadata.cs
367
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sdl.Community.GroupShareKit.Models.Response.TranslationMemory { public class Metadata { /// <summary> /// Gets or sets metadata key /// </summary> public string Key { get; set; } } }
mit
feinsteinben/normalizr
normalizr/normalizr.py
8408
from __future__ import absolute_import, unicode_literals import codecs import logging import os import re import string import sys import unicodedata import normalizr.regex as regex path = os.path.dirname(__file__) DEFAULT_NORMALIZATIONS = [ 'remove_extra_whitespaces', 'replace_punctuation', 'replace_symbols', 'remove_stop_words' ] class Normalizr: """ This class offers methods for text normalization. Attributes: language (string): Language used for normalization. lazy_load (boolean): Whether or not lazy load files. """ __punctuation = set(string.punctuation) def __init__(self, language='en', lazy_load=False, logger_level=logging.INFO): self.__language = language self.__logger = self._get_logger(logger_level) self.__stop_words = set() self.__characters_regexes = dict() if not lazy_load: self._load_stop_words(language) def _get_logger(self, level): """ Initialize logger. Params: level (integer): Log level as defined in logging. """ logging.basicConfig() logger = logging.getLogger("Normalizr") logger.setLevel(level) return logger def _load_stop_words(self, language): """ Load stop words into __stop_words set. Stop words will be loaded according to the language code received during instantiation. Params: language (string): Language code. """ self.__logger.debug('loading stop words') with codecs.open(os.path.join(path, 'data/stop-' + language), 'r', 'UTF-8') as file: for line in file: fields = line.split('|') if fields: for word in fields[0].split(): self.__stop_words.add(word.strip()) def _parse_normalizations(self, normalizations): str_type = str if sys.version_info[0] > 2 else (str, unicode) for normalization in normalizations: yield (normalization, {}) if isinstance(normalization, str_type) else normalization def normalize(self, text, normalizations=None): """ Normalize a given text applying all normalizations. Normalizations to apply can be specified through a list parameter and will be executed in the same order. Params: text (string): The text to be processed. normalizations (list): List of normalizations to apply. Returns: The text normalized. """ for normalization, kwargs in self._parse_normalizations(normalizations or DEFAULT_NORMALIZATIONS): text = getattr(self, normalization)(text, **kwargs) return text def remove_accent_marks(self, text, excluded=set()): """ Remove accent marks from input text. Params: text (string): The text to be processed. excluded (set): Set of unicode characters to exclude. Returns: The text without accent marks. """ return unicodedata.normalize('NFKC', ''.join(c for c in unicodedata.normalize('NFKD', text) if unicodedata.category(c) != 'Mn' or c in excluded)) def remove_extra_whitespaces(self, text): """ Remove extra whitespaces from input text. This function removes whitespaces from the beginning and the end of the string, but also duplicated whitespaces between words. Params: text (string): The text to be processed. Returns: The text without extra whitespaces. """ return ' '.join(text.split()) def remove_stop_words(self, text, ignore_case=True): """ Remove stop words. Stop words are loaded on class instantiation according with the specified language. Params: text (string): The text to be processed. ignore_case (boolean): Whether or not ignore case. Returns: The text without stop words. """ if not self.__stop_words: self._load_stop_words(self.__language) return ' '.join( word for word in text.split(' ') if (word.lower() if ignore_case else word) not in self.__stop_words) def replace_emails(self, text, replacement=''): """ Remove email addresses from input text or replace them with a string if specified. Params: text (string): The text to be processed. replacement (string): New text that will replace email addresses. Returns: The text without email addresses. """ return re.sub(regex.EMAIL_REGEX, replacement, text) def replace_emojis(self, text, replacement=''): """ Remove emojis from input text or replace them with a string if specified. Params: text (string): The text to be processed. replacement (string): New text that will replace emojis. Returns: The text without hyphens. """ return regex.EMOJI_REGEX.sub(replacement, text) def replace_characters(self, text, characters, replacement=''): """ Remove custom characters from input text or replace them with a string if specified. Params: text (string): The text to be processed. characters (string): Characters that will be replaced. replacement (string): New text that will replace the custom characters. Returns: The text without the given characters. """ if not characters: return text characters = ''.join(sorted(characters)) if characters in self.__characters_regexes: characters_regex = self.__characters_regexes[characters] else: characters_regex = re.compile("[%s]" % re.escape(characters)) self.__characters_regexes[characters] = characters_regex return characters_regex.sub(replacement, text) def replace_hyphens(self, text, replacement=' '): """ Replace hyphens from input text with a whitespace or a string if specified. Params: text (string): The text to be processed. replacement (string): New text that will replace hyphens. Returns: The text without hyphens. """ return text.replace('-', replacement) def replace_punctuation(self, text, excluded=None, replacement=''): """ Remove punctuation from input text or replace them with a string if specified. This function will remove characters from string.punctuation. Params: text (string): The text to be processed. excluded (set): Set of characters to exclude. replacement (string): New text that will replace punctuation. Returns: The text without punctuation. """ if excluded is None: excluded = set() elif not isinstance(excluded, set): excluded = set(excluded) punct = ''.join(self.__punctuation.difference(excluded)) return self.replace_characters(text, characters=punct, replacement=replacement) def replace_symbols(self, text, format='NFKD', excluded=set(), replacement=''): """ Remove symbols from input text or replace them with a string if specified. Params: text (string): The text to be processed. format (string): Unicode format. excluded (set): Set of unicode characters to exclude. replacement (string): New text that will replace symbols. Returns: The text without symbols. """ categories = set(['Mn', 'Sc', 'Sk', 'Sm', 'So']) return ''.join(c if unicodedata.category(c) not in categories or c in excluded else replacement for c in unicodedata.normalize(format, text)) def replace_urls(self, text, replacement=''): """ Remove URLs from input text or replace them with a string if specified. Params: text (string): The text to be processed. replacement (string): New text that will replace URLs. Returns: The text without URLs. """ return re.sub(regex.URL_REGEX, replacement, text)
mit
nbehier/MyEncryptedData
src/App/Lib/FileFinder.php
3240
<?php namespace App\Lib; use Symfony\Component\Finder\Finder; use App\Lib\EncryptFile; class FileFinder { /** * List YAML files */ public static function listFiles($sPath, $bLoadContent = true) { $aFiles = array(); $finder = new Finder(); $finder->files()->in($sPath)->depth('== 0')->name('*.yml')->sortByName(); foreach ($finder as $file) { if ($bLoadContent) { $oFile = new EncryptFile(); $oFile->setPath($sPath); $oFile->load($file->getContents() ); $oFile->setContent(''); $aFiles[] = $oFile->toArray(); } else { $aFiles[] = $file->getRelativePathname(); } } return $aFiles; } /** * Get YAML file */ public static function getFile($sPath, $sName, $sPassphrase = '', $sSystemPassphrase = '') { $finder = new Finder(); $finder->files()->in($sPath)->depth('== 0')->name($sName . '.yml'); if (iterator_count($finder) == 0) { return false; } $oFile = null; foreach ($finder as $file) { $oFile = new EncryptFile(); $oFile->setPath($sPath); $oFile->setPassphrase($sPassphrase); $oFile->setSystemPassphrase($sSystemPassphrase); $oFile->load($file->getContents() ); } return $oFile; } /** * Get a property on a file */ public static function getFileProperty($sPath, $sName, $sProperty) { if ($oFile = self::getFile($sPath, $sName) ) { $aFile = $oFile->toArray(true); if (array_key_exists($sProperty, $aFile) ) { return $aFile[$sProperty]; } } return NULL; } /** * Save YAML file */ public static function saveFile($aDatas, $sPassphrase, $sSystemPath, $sSystemPassphrase) { $encryptedFile = new EncryptFile($aDatas, $sPassphrase, $sSystemPassphrase, $sSystemPath); $encryptedFile->dump(); return $encryptedFile; } /** * Get max numeric name file and increment */ public static function getNewId($sPath) { $iId = 0; $aList = self::listFiles($sPath, false); if (! empty($aList)) { foreach ($aList as $value) { $sBasename = basename($value, '.yml'); if (is_numeric($sBasename) && $sBasename > $iId) { $iId = $sBasename; } } } return ++$iId; } /** * Check if file exists */ public static function isFileExist($sPath, $sName) { $aList = self::listFiles($sPath, false); if (! empty($aList)) { foreach ($aList as $value) { $sBasename = basename($value, '.yml'); if (strcmp($sBasename, $sName) == 0) { return true; } } } return false; } /** * Delete a file * @return bool true if success, false otherwise */ public static function deleteFile($sPath, $sName) { return unlink($sPath . '/' . $sName . '.yml'); } }
mit
aduyng/let-us-meet
app/templates/helpers/avatar50.js
458
/** * Created by Duy A. Nguyen on 3/30/2014. */ 'use strict'; define('templates/helpers/avatar50', ['hbs/handlebars', 'models/user'], function(Handlebars, User) { if (!window.avatar50) { window.avatar50 = function(input) { return '<img src="' + User.getAvatarUrl(input) + '" class="img-circle avatar" width="50" height="50"/>'; }; } Handlebars.registerHelper('avatar50', window.avatar50); return window.avatar50; });
mit
dataform-co/dataform
docs/layouts/documentation.tsx
5029
import { Button, Switch } from "@blueprintjs/core"; import * as React from "react"; import { Card, CardActions, CardMasonry } from "df/components/card"; import { Footer } from "df/docs/components/footer"; import Navigation, { getLink } from "df/docs/components/navigation"; import { IHeaderLink, PageLinks } from "df/docs/components/page_links"; import { IExtraAttributes } from "df/docs/content_tree"; import { BaseLayout } from "df/docs/layouts/base"; import * as styles from "df/docs/layouts/documentation.css"; import { ITree, Tree } from "df/tools/markdown-cms/tree"; export interface IProps { version: string; index: ITree<IExtraAttributes>; current: ITree<IExtraAttributes>; headerLinks?: IHeaderLink[]; } export default class Documentation extends React.Component<IProps> { public getHeaderLinks(): IHeaderLink[] { return React.Children.toArray(this.props.children || []) .map(child => child as React.ReactElement<any>) .filter(child => !!child.props?.children) .map(child => React.Children.toArray(child.props.children) .map(grandChild => grandChild as React.ReactElement<any>) .filter(grandChild => grandChild.type === "h2" || grandChild.type === "h3") .map(grandChild => ({ id: grandChild.props.id, text: grandChild.props.children[0] })) ) .reduce((acc, curr) => [...acc, ...curr], []); } public render() { const currentHeaderLinks = this.props.headerLinks || this.getHeaderLinks(); const tree = Tree.createFromIndex<IExtraAttributes>(this.props.index); const current = tree.getChild(this.props.current.path); const pathParts = this.props.current.path.split("/"); const parentPath = pathParts.slice(0, Math.max(pathParts.length - 1, 0)).join("/"); const parent = tree.getChild(parentPath); const darkModeSaved = typeof localStorage !== "undefined" && localStorage.getItem("dataform-dark-mode") === "true"; if (darkModeSaved) { document.body.classList.add("dark"); } return ( <BaseLayout title={`${this.props.current.attributes.title} | Dataform`}> <div className={styles.container}> <div className={styles.sidebar}> <Navigation currentPath={this.props.current.path} version={this.props.version} tree={this.props.index} /> <div className={styles.flexFiller} /> <div className={styles.darkMode}> <Switch defaultChecked={darkModeSaved} label="Dark mode" onClick={e => { if (!e.currentTarget.checked) { localStorage.setItem("dataform-dark-mode", "false"); document.body.classList.remove("dark"); } else { localStorage.setItem("dataform-dark-mode", "true"); document.body.classList.add("dark"); } }} /> </div> </div> <div className={styles.mainContent}> <div className={styles.titleBlock}> <h1>{this.props.current.attributes.title}</h1> <div className={styles.subheader}>{this.props.current.attributes.subtitle}</div> </div> {this.props.children} <div className={styles.next}> <h2>What's next</h2> <CardMasonry style={{ margin: "0px 0px 20px", display: "flex", flexWrap: "wrap" }}> {(current.children?.length > 0 ? current.children : parent.children) .filter( child => !!child.path && !!child.attributes.title && !child.attributes?.redirect && current.path !== child.path ) .map(child => ( <Card masonryCard={true} header={child.attributes?.title} key={child.path} className={styles.whatsNextCard} > <p>{child.attributes?.subtitle}</p> <CardActions align="right"> <a href={getLink(child.path, this.props.version)}> <Button minimal={true} text="Read more" /> </a> </CardActions> </Card> ))} </CardMasonry> </div> <Footer tree={this.props.index} /> </div> <div className={styles.sidebarRight}> <div className={styles.titleRight}> {this.props.current.editLink && ( <a href={this.props.current.editLink}>✎ Edit this page on GitHub</a> )} </div> <PageLinks links={currentHeaderLinks} /> </div> </div> </BaseLayout> ); } }
mit
amphp/aerys
lib/BodyParser.php
19471
<?php namespace Aerys; use Amp\ByteStream\InMemoryStream; use Amp\ByteStream\InputStream; use Amp\ByteStream\IteratorStream; use Amp\ByteStream\PendingReadError; use Amp\Coroutine; use Amp\Deferred; use Amp\Emitter; use Amp\Promise; use Amp\Success; class BodyParser implements InputStream, Promise { /** @var \Amp\Deferred|null */ private $deferred; /** @var \Amp\Promise|null */ private $promise; /** @var \Aerys\Request */ private $req; /** @var \Aerys\Body */ private $body; private $boundary = null; private $bodyDeferreds = []; private $bodies = []; private $fieldQueue = []; /** @var \Amp\Deferred|null */ private $pendingRead = null; private $startedParsing = false; private $size; private $totalSize; private $usedSize = 0; private $sizes = []; private $curSizes = []; private $maxFieldLen; // prevent buffering of arbitrary long names and fail instead private $maxInputVars; // prevent requests from creating arbitrary many fields causing lot of processing time private $inputVarCount = 0; /** * @param Request $req * @param array $options available options are: * - size (default: 131072) * - input_vars (default: 200) * - field_len (default: 16384) */ public function __construct(Request $req, array $options = []) { $this->req = $req; $type = $req->getHeader("content-type"); $this->body = $req->getBody($this->totalSize = $this->size = $options["size"] ?? 131072); $this->maxFieldLen = $options["field_len"] ?? 16384; $this->maxInputVars = $options["input_vars"] ?? 200; if ($type !== null && strncmp($type, "application/x-www-form-urlencoded", \strlen("application/x-www-form-urlencoded"))) { if (!preg_match('#^\s*multipart/(?:form-data|mixed)(?:\s*;\s*boundary\s*=\s*("?)([^"]*)\1)?$#', $type, $m)) { $this->req = null; $this->startedParsing = true; $this->promise = new Success(new ParsedBody([])); return; } $this->boundary = $m[2]; } $this->deferred = new Deferred; } public function onResolve(callable $onResolved) { if (!$this->promise) { $this->promise = $this->deferred->promise(); \Amp\asyncCall(function () { try { $this->deferred->resolve($this->end(yield $this->body)); } catch (\Throwable $exception) { if ($exception instanceof ClientSizeException) { $exception = new ClientException("", 0, $exception); } $this->error($exception); } finally { $this->req = null; } }); } $this->promise->onResolve($onResolved); } private function end(string $data): ParsedBody { if (!$this->startedParsing) { $this->startedParsing = true; // if we end up here, we haven't parsed anything at all yet, so do a quick parse if ($this->boundary !== null) { $fields = $metadata = []; // RFC 7578, RFC 2046 Section 5.1.1 if (strncmp($data, "--$this->boundary\r\n", \strlen($this->boundary) + 4) !== 0) { return new ParsedBody([]); } $exp = explode("\r\n--$this->boundary\r\n", $data); $exp[0] = substr($exp[0], \strlen($this->boundary) + 4); $exp[count($exp) - 1] = substr(end($exp), 0, -\strlen($this->boundary) - 8); foreach ($exp as $entry) { list($rawheaders, $text) = explode("\r\n\r\n", $entry, 2); $headers = []; foreach (explode("\r\n", $rawheaders) as $header) { $split = explode(":", $header, 2); if (!isset($split[1])) { return new ParsedBody([]); } $headers[strtolower($split[0])] = trim($split[1]); } if (!preg_match('#^\s*form-data(?:\s*;\s*(?:name\s*=\s*"([^"]+)"|filename\s*=\s*"([^"]+)"))+\s*$#', $headers["content-disposition"] ?? "", $m) || !isset($m[1])) { return new ParsedBody([]); } $name = $m[1]; $fields[$name][] = $text; $this->fieldQueue[] = $name; // Ignore Content-Transfer-Encoding as deprecated and hence we won't support it if (isset($m[2])) { $metadata[$name][count($fields[$name]) - 1] = ["filename" => $m[2], "mime" => $headers["content-type"] ?? "application/octet-stream"]; } elseif (isset($headers["content-type"])) { $metadata[$name][count($fields[$name]) - 1]["mime"] = $headers["content-type"]; } } return new ParsedBody($fields, $metadata); } $fields = []; foreach (explode("&", $data) as $pair) { $pair = explode("=", $pair, 2); $field = urldecode($pair[0]); $fields[$field][] = urldecode($pair[1] ?? ""); $this->fieldQueue[] = $field; } return new ParsedBody($fields, []); } $fields = $metadata = []; $when = static function ($e, $data) use (&$fields, &$key) { $fields[$key][] = $data; }; $metawhen = static function ($e, $data) use (&$metadata, &$key) { $metadata[$key][] = $data; }; foreach ($this->bodies as $key => $bodies) { foreach ($bodies as $body) { $body->onResolve($when); $body->getMetadata()->onResolve($metawhen); } $metadata[$key] = array_filter($metadata[$key]); } return new ParsedBody($fields, array_filter($metadata)); } public function read(): Promise { if ($this->pendingRead) { throw new PendingReadError; } if (!empty($this->fieldQueue)) { $key = \key($this->fieldQueue); $val = $this->fieldQueue[$key]; unset($this->fieldQueue[$key]); return new Success($val); } elseif ($this->req) { $this->pendingRead = new Deferred; $promise = $this->pendingRead->promise(); if (!$this->startedParsing) { Promise\rethrow(new Coroutine($this->initIncremental())); } return $promise; } return new Success; } /** * @param string $name field name * @param int $size <= 0: use last size, if none present, count toward total size, else separate size just * respecting value size * @return FieldBody */ public function stream(string $name, int $size = 0): FieldBody { if ($this->req) { if ($size > 0) { if (!empty($this->curSizes)) { foreach ($this->curSizes[$name] as $partialSize) { $size -= $partialSize; if (!isset($this->sizes[$name])) { $this->usedSize -= $partialSize - \strlen($name); } } } $this->sizes[$name] = $size; $this->body = $this->req->getBody($this->totalSize += $size); } if (!$this->startedParsing) { Promise\rethrow(new Coroutine($this->initIncremental())); } if (empty($this->bodies[$name])) { $this->bodyDeferreds[$name][] = [$body = new Emitter, $metadata = new Deferred]; return new FieldBody(new IteratorStream($body->iterate()), $metadata->promise()); } } elseif (empty($this->bodies[$name])) { return new FieldBody(new InMemoryStream, new Success([])); } $key = key($this->bodies[$name]); $ret = $this->bodies[$name][$key]; unset($this->bodies[$name][$key], $this->curSizes[$name][$key]); return $ret; } private function initField(string $field, array $metadata = []) { if ($this->inputVarCount++ == $this->maxInputVars || \strlen($field) > $this->maxFieldLen) { $this->error(); return null; } $this->curSizes[$field] = 0; $this->usedSize += \strlen($field); if ($this->usedSize > $this->size) { $this->error(); return null; } if (isset($this->bodyDeferreds[$field])) { $key = key($this->bodyDeferreds[$field]); list($dataEmitter, $metadataDeferred) = $this->bodyDeferreds[$field][$key]; $metadataDeferred->resolve($metadata); unset($this->bodyDeferreds[$field]); } else { $dataEmitter = new Emitter; $this->bodies[$field][] = new FieldBody(new IteratorStream($dataEmitter->iterate()), new Success($metadata)); } if ($this->pendingRead) { $pendingRead = $this->pendingRead; $this->pendingRead = null; $pendingRead->resolve($field); } else { $this->fieldQueue[] = $field; } return $dataEmitter; } private function updateFieldSize(string $field, string $data): bool { $this->curSizes[$field] += \strlen($data); if (isset($this->sizes[$field])) { if ($this->curSizes[$field] > $this->sizes[$field]) { $this->error(); return true; } } else { $this->usedSize += \strlen($data); if ($this->usedSize > $this->size) { $this->error(); return true; } } return false; } private function error(\Throwable $e = null) { $e = $e ?? new ClientSizeException; foreach ($this->bodyDeferreds as list($emitter, $metadata)) { $emitter->fail($e); $metadata->fail($e); } $this->bodyDeferreds = []; $this->req = null; $this->deferred->fail($e); } private function initIncremental(): \Generator { $this->startedParsing = true; $buf = ""; if ($this->boundary) { // RFC 7578, RFC 2046 Section 5.1.1 $sep = "--$this->boundary"; while (\strlen($buf) < \strlen($sep) + 4) { $buf .= $chunk = yield $this->body->read(); if ($chunk == "") { $this->error(new ClientException); return; } } $off = \strlen($sep); if (strncmp($buf, $sep, $off)) { $this->error(new ClientException); return; } $sep = "\r\n$sep"; while (substr_compare($buf, "--\r\n", $off)) { $off += 2; while (($end = strpos($buf, "\r\n\r\n", $off)) === false) { $buf .= $chunk = yield $this->body->read(); if ($chunk == "") { $this->error(new ClientException); return; } } $headers = []; foreach (explode("\r\n", substr($buf, $off, $end - $off)) as $header) { $split = explode(":", $header, 2); if (!isset($split[1])) { $this->error(new ClientException); return; } $headers[strtolower($split[0])] = trim($split[1]); } if (!preg_match('#^\s*form-data(?:\s*;\s*(?:name\s*=\s*"([^"]+)"|filename\s*=\s*"([^"]+)"))+\s*$#', $headers["content-disposition"] ?? "", $m) || !isset($m[1])) { $this->error(new ClientException); return; } $field = $m[1]; // Ignore Content-Transfer-Encoding as deprecated and hence we won't support it if (isset($m[2])) { $metadata = ["filename" => $m[2], "mime" => $headers["content-type"] ?? "application/octet-stream"]; } elseif (isset($headers["content-type"])) { $metadata = ["mime" => $headers["content-type"]]; } else { $metadata = []; } $dataEmitter = $this->initField($field, $metadata); $buf = substr($buf, $end + 4); $off = 0; while (($end = strpos($buf, $sep, $off)) === false) { $buf .= $chunk = yield $this->body->read(); if ($chunk == "") { $e = new ClientException; $dataEmitter->fail($e); $this->error($e); return; } if (\strlen($buf) > \strlen($sep)) { $off = \strlen($buf) - \strlen($sep); $data = substr($buf, 0, $off); if ($this->updateFieldSize($field, $data)) { $dataEmitter->fail(new ClientSizeException); return; } $dataEmitter->emit($data); $buf = substr($buf, $off); } } $data = substr($buf, 0, $end); if ($this->updateFieldSize($field, $data)) { $dataEmitter->fail(new ClientSizeException); return; } $dataEmitter->emit($data); $dataEmitter->complete(); $off = $end + \strlen($sep); while (\strlen($buf) < 4) { $buf .= $chunk = yield $this->body->read(); if ($chunk == "") { $this->error(new ClientException); return; } } } } else { $field = null; while (($new = yield $this->body->read()) !== null) { if ($new[0] === "&") { if ($field !== null) { if ($noData || $buf !== "") { $data = urldecode($buf); if ($this->updateFieldSize($field, $data)) { $dataEmitter->fail(new ClientSizeException); return; } $dataEmitter->emit($data); $buf = ""; } $field = null; $dataEmitter->complete(); } elseif ($buf !== "") { if (!$dataEmitter = $this->initField(urldecode($buf))) { return; } $dataEmitter->emit(""); $dataEmitter->complete(); $buf = ""; } } $buf .= strtok($new, "&"); if ($field !== null && ($new = strtok("&")) !== false) { $data = urldecode($buf); if ($this->updateFieldSize($field, $data)) { $dataEmitter->fail(new ClientSizeException); return; } $dataEmitter->emit($data); $dataEmitter->complete(); $buf = $new; $field = null; } while (($next = strtok("&")) !== false) { $pair = explode("=", $buf, 2); $key = urldecode($pair[0]); if (!$dataEmitter = $this->initField($key)) { return; } $data = urldecode($pair[1] ?? ""); if ($this->updateFieldSize($key, $data)) { $dataEmitter->fail(new ClientSizeException); return; } $dataEmitter->emit($data); $dataEmitter->complete(); $buf = $next; } if ($field === null) { if (($new = strstr($buf, "=", true)) !== false) { $field = urldecode($new); if (!$dataEmitter = $this->initField($field)) { return; } $buf = substr($buf, \strlen($new) + 1); $noData = true; } elseif (\strlen($buf) > $this->maxFieldLen) { $this->error(); return; } } if ($field !== null && $buf !== "" && (\strlen($buf) > 2 || $buf[0] !== "%")) { if (\strlen($buf) > 1 ? false !== $percent = strrpos($buf, "%", -2) : !($percent = $buf[0] !== "%")) { if ($percent) { if ($this->updateFieldSize($field, $data)) { return; } $dataEmitter->emit(urldecode(substr($buf, 0, $percent))); $buf = substr($buf, $percent); } } else { $data = urldecode($buf); if ($this->updateFieldSize($field, $data)) { $dataEmitter->fail(new ClientSizeException); return; } $dataEmitter->emit($data); $buf = ""; } $noData = false; } } if ($field !== null) { if ($noData || $buf) { $data = urldecode($buf); if ($this->updateFieldSize($field, $data)) { return; } $dataEmitter->emit($data); } $dataEmitter->complete(); $field = null; } elseif ($buf) { $field = urldecode($buf); if (!$dataEmitter = $this->initField($field)) { return; } $dataEmitter->emit(""); $dataEmitter->complete(); } } foreach ($this->bodyDeferreds as $fieldArray) { foreach ($fieldArray as list($emitter, $metadata)) { $emitter->complete(); $metadata->resolve([]); } } $this->req = null; if ($this->pendingRead) { $pendingRead = $this->pendingRead; $this->pendingRead = null; $pendingRead->resolve(null); } } }
mit
portchris/NaturalRemedyCompany
src/app/code/core/Mage/XmlConnect/Block/Customer/Order/Totals/Customerbalance/Refunded.php
2884
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade Magento to newer * versions in the future. If you wish to customize Magento for your * needs please refer to http://www.magento.com for more information. * * @category Mage * @package Mage_XmlConnect * @copyright Copyright (c) 2006-2019 Magento, Inc. (http://www.magento.com) * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) */ /** * Customer order Customer balance totals xml renderer * * @category Mage * @package Mage_XmlConnect * @author Magento Core Team <[email protected]> */ class Mage_XmlConnect_Block_Customer_Order_Totals_Customerbalance_Refunded extends Enterprise_CustomerBalance_Block_Sales_Order_Customerbalance { /** * Add order total rendered to XML object * * @param $totalsXml Mage_XmlConnect_Model_Simplexml_Element * @return null */ public function addToXmlObject(Mage_XmlConnect_Model_Simplexml_Element $totalsXml) { if ($this->getNewApi()) { $this->addToXmlObjectApi23($totalsXml); return; } $balance = $this->getSource()->getCustomerBalanceTotalRefunded(); if ($balance) { $totalsXml->addCustomChild($this->getTotal()->getCode(), $this->_formatPrice($balance), array( 'label' => Mage::helper('enterprise_giftcardaccount')->__('Refunded to Store Credit') )); } } /** * Add order total rendered to XML object. Api version 23 * * @param $totalsXml Mage_XmlConnect_Model_Simplexml_Element * @return null */ public function addToXmlObjectApi23(Mage_XmlConnect_Model_Simplexml_Element $totalsXml) { $balance = $this->getSource()->getCustomerBalanceTotalRefunded(); if ($balance) { $totalsXml->addCustomChild('item', $this->_formatPrice($balance), array( 'id' => $this->getTotal()->getCode(), 'label' => Mage::helper('enterprise_giftcardaccount')->__('Refunded to Store Credit') )); } } /** * Format price using order currency * * @param float $amount * @return string */ protected function _formatPrice($amount) { return Mage::helper('xmlconnect/customer_order')->formatPrice($this, $amount); } }
mit
noherczeg/RestExt
src/Noherczeg/RestExt/Entities/AuthorizationSupport.php
206
<?php namespace Noherczeg\RestExt\Entities; interface AuthorizationSupport { /** * Returns an array of Role names for a User * * @return array */ public function roles(); }
mit
wladi0097/pdfV
demo/main.js
129
var dom = document.getElementById('pdfViewer') var myPage = pdfV.new({file: './demo/yes.pdf', dom: dom}, function() { })
mit
Bolt64/my_code
Code Snippets/electronics_notes_expander.py
716
#!/usr/bin/env python from commands import getoutput import os def unzip_file(zip_name): getoutput("unzip {0}".format(zip_name)) return zip_name[:-4] def sanitize_filename(filename): s="" for char in filename: if char==" ": s+="\ " else: s+=char return s def make_pdf(folder_name): if folder_name.endswith("/"): folder_name=folder_name[:-1] jpeg_list=[] for dirname,_,file_list in os.walk(folder_name): for file_name in file_list: jpeg_list.append(sanitize_filename("{0}/{1}/{2}".format(folder_name, dirname, file_name))) jpeg_list.sort() getoutput("convert {0} output.pdf".format(" ".join(jpeg_list)))
mit
ethereum/remix
remix-debug/src/solidity-decoder/types/DynamicByteArray.js
2278
'use strict' const util = require('./util') const remixLib = require('remix-lib') const sha3256 = remixLib.util.sha3_256 const BN = require('ethereumjs-util').BN const RefType = require('./RefType') class DynamicByteArray extends RefType { constructor (location) { super(1, 32, 'bytes', location) } async decodeFromStorage (location, storageResolver) { let value = '0x0' try { value = await util.extractHexValue(location, storageResolver, this.storageBytes) } catch (e) { console.log(e) return { value: '<decoding failed - ' + e.message + '>', type: this.typeName } } const bn = new BN(value, 16) if (bn.testn(0)) { const length = bn.div(new BN(2)) let dataPos = new BN(sha3256(location.slot).replace('0x', ''), 16) let ret = '' let currentSlot = '0x' try { currentSlot = await util.readFromStorage(dataPos, storageResolver) } catch (e) { console.log(e) return { value: '<decoding failed - ' + e.message + '>', type: this.typeName } } while (length.gt(ret.length) && ret.length < 32000) { currentSlot = currentSlot.replace('0x', '') ret += currentSlot dataPos = dataPos.add(new BN(1)) try { currentSlot = await util.readFromStorage(dataPos, storageResolver) } catch (e) { console.log(e) return { value: '<decoding failed - ' + e.message + '>', type: this.typeName } } } return { value: '0x' + ret.replace(/(00)+$/, ''), length: '0x' + length.toString(16), type: this.typeName } } else { var size = parseInt(value.substr(value.length - 2, 2), 16) / 2 return { value: '0x' + value.substr(0, size * 2), length: '0x' + size.toString(16), type: this.typeName } } } decodeFromMemoryInternal (offset, memory) { offset = 2 * offset let length = memory.substr(offset, 64) length = 2 * parseInt(length, 16) return { length: '0x' + length.toString(16), value: '0x' + memory.substr(offset + 64, length), type: this.typeName } } } module.exports = DynamicByteArray
mit
mdlayher/aoe
fuzz.go
217
// +build gofuzz package aoe func Fuzz(data []byte) int { h := new(Header) if err := h.UnmarshalBinary(data); err != nil { return 0 } if _, err := h.MarshalBinary(); err != nil { panic(err) } return 1 }
mit
egmkang/SharpServer
src/UnitTest/Grain/RankGrainTest.cs
2356
// Copyright (c) egmkang wang. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace T2 { using System; using System.Linq; using Xunit; using SharpServer.SDK; using SharpServer.GrainInterfaces; using SharpServer.Grains; using T1; public class RankGrainTest : Setup { IRankGrain grain = TestGrainFactory.CreateGrain<RankGrain>("1_1_5") as IRankGrain; [Fact] public async void UpdateRankInfo() { await grain.Clear(); var item1 = new Sy.RankItemInfo(); item1.Uid = 1; item1.Name = "P1"; item1.Star = 1; var ranks = await grain.UpdatePlayerInfo(item1); Assert.Equal(ranks.Item1, 0); Assert.Equal(ranks.Item2, 1); ranks = await grain.UpdatePlayerInfo(item1); Assert.Equal(ranks.Item1, 1); Assert.Equal(ranks.Item2, 1); var item2 = new Sy.RankItemInfo(); item2.Uid = 2; item2.Name = "p2"; item2.Star = 10; ranks = await grain.UpdatePlayerInfo(item2); Assert.Equal(ranks.Item1, 0); Assert.Equal(ranks.Item2, 1); Assert.Equal(await grain.GetRank(1), 2); } [Fact] public async void GetRank() { await this.grain.Clear(); var item1 = new Sy.RankItemInfo(); item1.Uid = 1; item1.Name = "P1"; item1.Star = 1; await this.grain.UpdatePlayerInfo(item1); Assert.Equal(await this.grain.GetRank(1), 1); } [Fact] public async void RankFull() { IRankGrain grain = TestGrainFactory.CreateGrain<RankGrain>("2_1_1") as IRankGrain; var item1 = new Sy.RankItemInfo(); item1.Uid = 1; item1.Name = "P1"; item1.Star = 1; await grain.UpdatePlayerInfo(item1); Assert.Equal(await grain.GetPlayerCount(), 1); var item2 = new Sy.RankItemInfo(); item2.Uid = 2; item2.Name = "P2"; item2.Star = 10; await grain.UpdatePlayerInfo(item2); Assert.Equal(await grain.GetPlayerCount(), 1); } } }
mit
zorrodg/node-scraper
server.js
1163
var server = require('express')(), request = require('request'), cheerio = require('cheerio'), detail = require('./functions/detail'), list = require('./functions/list'); server.get('/scrape/:type', function(req, res) { var url = req.param('url'), type = req.param('type'); // URL to scrape if(!url) return res.send('No url'); request({ url:url, encoding: 'binary' }, function(error, response, html) { var $, promise; // Check for errors if(!error){ $ = cheerio.load(html, { normalizeWhitespace: false, xmlMode: false, decodeEntities: true }); switch(type){ case 'list': promise = list($, url); break; case 'detail': promise = detail($, url); break; } promise.then(function(){ res.send('Done'); }, function(){ res.send('Error'); }); } }); }); server.get('/end', function(req,res){ res.send('Finish'); return app && app.close(); }); server.listen('3000'); console.log('Servidor iniciado en 3000'); require('./scrape')(); exports = module.exports = server;
mit
relayr/java-sdk
src/main/java/io/relayr/java/helper/observer/TimeZoneUtil.java
1164
package io.relayr.java.helper.observer; import java.text.SimpleDateFormat; import java.util.Date; import java.util.TimeZone; import java.util.logging.Level; import java.util.logging.Logger; public class TimeZoneUtil { private static final int TZ_OFFSET = TimeZone.getDefault().getRawOffset(); private static final SimpleDateFormat DATE_FORMAT; static { DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); DATE_FORMAT.setTimeZone(TimeZone.getTimeZone("UTC")); } /** * Returns timestamp in local timezone */ public static long getLocaleTs(String value) { return getUtcTs(value) + TZ_OFFSET; } /** * Returns timestamp in local timezone */ public static long getUtcTs(String value) { try { Date parsedDate = DATE_FORMAT.parse(value); return parsedDate.getTime(); } catch (Exception e) { Logger.getLogger("TimeZoneUtil").log(Level.WARNING, "Failed to parse timestamp"); return 0; } } public static String getDate(long time) { return DATE_FORMAT.format(new Date(time)); } }
mit
jkeifer/pyHytemporal
old_TO_MIGRATE/get_ref_values.py
3434
__author__ = 'phoetrymaster' from osgeo import gdal from osgeo.gdalconst import * import sys def get_reference_values(imagepath, refstoget): from math import floor gdal.AllRegister() img = gdal.Open(imagepath, GA_ReadOnly) if img is None: raise Exception("Could not open " + imagepath) bands = img.RasterCount print "Found {0} bands in input image.".format(bands) refs = {} for key, val in refstoget.items(): print "Processing {0} coordinates:".format(key) dict = {} for i in range(0, bands): band = img.GetRasterBand(i + 1) print "\tProcessing band {0}".format(i + 1) values = [] for loc in val: print "\t\tGetting position {0}".format(loc) values.append(int(band.ReadAsArray(int(floor(loc[0])), int(floor(loc[1])), 1, 1))) dict[(i * 16 + 1)] = sum(values) / float(len(values)) band = None refs[key] = dict img = None comment = "Generated from {0} by get_ref_values version 0.1.".format(imagepath) return refs, comment def get_reference_values(imagepath, locations): from math import floor gdal.AllRegister() img = gdal.Open(imagepath, GA_ReadOnly) if img is None: raise Exception("Could not open " + imagepath) bands = img.RasterCount print "Found {0} bands in input image.".format(bands) for location in locations: print "Processing coordinates: {0}".format(location) values = [] for i in range(0, bands): band = img.GetRasterBand(i + 1) v = (int(band.ReadAsArray(int(floor(location[0])), int(floor(location[1])), 1, 1))) print "\tBand {0}: {1}".format(i + 1, v) values.append(v) band = None img = None comment = "Generated from {0} by get_ref_values version 0.1.".format(imagepath) return refs, comment def get_sort_dates_values(vals, threshold=-3000): """Gets the DOY dates (the keys) in a list from dictionary values and sorts those, placing them in chronological order (list x0). Then the function iterates over these values and gets the corresponding values, thresholding values if they are lower than an optional threshold value (-3000 default == nodata in MODIS imagery), then appending them to the list y. x and y are then returned.""" x = vals.keys() x.sort() y = [] for i in x: if vals[i] < threshold: y.append(threshold) else: y.append(vals[i]) return x, y def write_refs_to_txt(refs, outdir, comment=""): print "Writing reference curves to output files" for ref in refs: with open(os.path.join(outdir, ref[0] + ".ref"), "w") as f: if comment: f.write("//"+comment+"\n") keys, values = get_sort_date_values(ref[1]) for key, val in keys, values: f.write("{0} {1}".format(key, val)) if __name__ == '__main__': image = "/Volumes/J_KEIFER/Thesis/Data/ARC_Testing/test1.dat" soylocs = [(6002, 2143), (5944, 2102), (5746, 2183), (5998, 2171)] cornlocs = [(5997, 2139), (5940, 2096), (6051, 2230), (5691, 1998)] wheatlocs = [(5993, 2136), (5937, 2080), (5935, 2076), (5921, 2217)] refstoget = {"soy": soylocs, "corn": cornlocs, "wheat": wheatlocs} sys.exit(get_reference_values(image, refstoget))
mit
teamtam/xamarin-forms-timesheet
TimesheetXF/TimesheetXF.WinPhone/App.xaml.cs
9052
using System; using System.Diagnostics; using System.Resources; using System.Windows; using System.Windows.Markup; using System.Windows.Navigation; using Microsoft.Phone.Controls; using Microsoft.Phone.Shell; using TimesheetXF.WinPhone.Resources; namespace TimesheetXF.WinPhone { public partial class App : Application { /// <summary> /// Provides easy access to the root frame of the Phone Application. /// </summary> /// <returns>The root frame of the Phone Application.</returns> public static PhoneApplicationFrame RootFrame { get; private set; } /// <summary> /// Constructor for the Application object. /// </summary> public App() { // Global handler for uncaught exceptions. UnhandledException += Application_UnhandledException; // Standard XAML initialization InitializeComponent(); // Phone-specific initialization InitializePhoneApplication(); // Language display initialization InitializeLanguage(); // Show graphics profiling information while debugging. if (Debugger.IsAttached) { // Display the current frame rate counters. Application.Current.Host.Settings.EnableFrameRateCounter = true; // Show the areas of the app that are being redrawn in each frame. //Application.Current.Host.Settings.EnableRedrawRegions = true; // Enable non-production analysis visualization mode, // which shows areas of a page that are handed off to GPU with a colored overlay. //Application.Current.Host.Settings.EnableCacheVisualization = true; // Prevent the screen from turning off while under the debugger by disabling // the application's idle detection. // Caution:- Use this under debug mode only. Application that disables user idle detection will continue to run // and consume battery power when the user is not using the phone. PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled; } } // Code to execute when the application is launching (eg, from Start) // This code will not execute when the application is reactivated private void Application_Launching(object sender, LaunchingEventArgs e) { } // Code to execute when the application is activated (brought to foreground) // This code will not execute when the application is first launched private void Application_Activated(object sender, ActivatedEventArgs e) { } // Code to execute when the application is deactivated (sent to background) // This code will not execute when the application is closing private void Application_Deactivated(object sender, DeactivatedEventArgs e) { } // Code to execute when the application is closing (eg, user hit Back) // This code will not execute when the application is deactivated private void Application_Closing(object sender, ClosingEventArgs e) { } // Code to execute if a navigation fails private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e) { if (Debugger.IsAttached) { // A navigation has failed; break into the debugger Debugger.Break(); } } // Code to execute on Unhandled Exceptions private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e) { if (Debugger.IsAttached) { // An unhandled exception has occurred; break into the debugger Debugger.Break(); } } #region Phone application initialization // Avoid double-initialization private bool phoneApplicationInitialized = false; // Do not add any additional code to this method private void InitializePhoneApplication() { if (phoneApplicationInitialized) return; // Create the frame but don't set it as RootVisual yet; this allows the splash // screen to remain active until the application is ready to render. RootFrame = new PhoneApplicationFrame(); RootFrame.Navigated += CompleteInitializePhoneApplication; // Handle navigation failures RootFrame.NavigationFailed += RootFrame_NavigationFailed; // Handle reset requests for clearing the backstack RootFrame.Navigated += CheckForResetNavigation; // Ensure we don't initialize again phoneApplicationInitialized = true; } // Do not add any additional code to this method private void CompleteInitializePhoneApplication(object sender, NavigationEventArgs e) { // Set the root visual to allow the application to render if (RootVisual != RootFrame) RootVisual = RootFrame; // Remove this handler since it is no longer needed RootFrame.Navigated -= CompleteInitializePhoneApplication; } private void CheckForResetNavigation(object sender, NavigationEventArgs e) { // If the app has received a 'reset' navigation, then we need to check // on the next navigation to see if the page stack should be reset if (e.NavigationMode == NavigationMode.Reset) RootFrame.Navigated += ClearBackStackAfterReset; } private void ClearBackStackAfterReset(object sender, NavigationEventArgs e) { // Unregister the event so it doesn't get called again RootFrame.Navigated -= ClearBackStackAfterReset; // Only clear the stack for 'new' (forward) and 'refresh' navigations if (e.NavigationMode != NavigationMode.New && e.NavigationMode != NavigationMode.Refresh) return; // For UI consistency, clear the entire page stack while (RootFrame.RemoveBackEntry() != null) { ; // do nothing } } #endregion // Initialize the app's font and flow direction as defined in its localized resource strings. // // To ensure that the font of your application is aligned with its supported languages and that the // FlowDirection for each of those languages follows its traditional direction, ResourceLanguage // and ResourceFlowDirection should be initialized in each resx file to match these values with that // file's culture. For example: // // AppResources.es-ES.resx // ResourceLanguage's value should be "es-ES" // ResourceFlowDirection's value should be "LeftToRight" // // AppResources.ar-SA.resx // ResourceLanguage's value should be "ar-SA" // ResourceFlowDirection's value should be "RightToLeft" // // For more info on localizing Windows Phone apps see http://go.microsoft.com/fwlink/?LinkId=262072. // private void InitializeLanguage() { try { // Set the font to match the display language defined by the // ResourceLanguage resource string for each supported language. // // Fall back to the font of the neutral language if the Display // language of the phone is not supported. // // If a compiler error is hit then ResourceLanguage is missing from // the resource file. RootFrame.Language = XmlLanguage.GetLanguage(AppResources.ResourceLanguage); // Set the FlowDirection of all elements under the root frame based // on the ResourceFlowDirection resource string for each // supported language. // // If a compiler error is hit then ResourceFlowDirection is missing from // the resource file. FlowDirection flow = (FlowDirection)Enum.Parse(typeof(FlowDirection), AppResources.ResourceFlowDirection); RootFrame.FlowDirection = flow; } catch { // If an exception is caught here it is most likely due to either // ResourceLangauge not being correctly set to a supported language // code or ResourceFlowDirection is set to a value other than LeftToRight // or RightToLeft. if (Debugger.IsAttached) { Debugger.Break(); } throw; } } } }
mit
rickytan/UIAutomationJS
UIABaseType.js
471
/** * The CGPoint type in iOS * @constructor */ var Point = function () { }; Point.prototype = { x: 0, y: 0 }; /** * The CGSize type in iOS * @constructor */ var Size = function () { }; Size.prototype = { width: 0, height: 0 }; /** * The CGRect type in iOS * @constructor */ var Rect = function () { }; Rect.prototype = { /** * @type {Point} */ origin: new Point, /** * @type {Size} */ size: new Size };
mit
myhgew/CodePractice
Android/AndroidCourse/Programming Mobile Applications for Android Handheld Systems/W3 Intents, Permissions, and the Fragments Class/FragmentDynamicLayout/src/course/examples/Fragments/DynamicLayout/QuoteViewerActivity.java
4651
package course.examples.Fragments.DynamicLayout; import android.app.Activity; import android.app.FragmentManager; import android.app.FragmentTransaction; import android.os.Bundle; import android.util.Log; import android.widget.FrameLayout; import android.widget.LinearLayout; import course.examples.Fragments.DynamicLayout.TitlesFragment.ListSelectionListener; //Several Activity lifecycle methods are instrumented to emit LogCat output //so you can follow this class' lifecycle public class QuoteViewerActivity extends Activity implements ListSelectionListener { public static String[] mTitleArray; public static String[] mQuoteArray; private final QuotesFragment mQuoteFragment = new QuotesFragment(); private FragmentManager mFragmentManager; private FrameLayout mTitleFrameLayout, mQuotesFrameLayout; private static final int MATCH_PARENT = LinearLayout.LayoutParams.MATCH_PARENT; private static final String TAG = "QuoteViewerActivity"; @Override protected void onCreate(Bundle savedInstanceState) { Log.i(TAG, getClass().getSimpleName() + ":entered onCreate()"); super.onCreate(savedInstanceState); // Get the string arrays with the titles and qutoes mTitleArray = getResources().getStringArray(R.array.Titles); mQuoteArray = getResources().getStringArray(R.array.Quotes); setContentView(R.layout.main); // Get references to the TitleFragment and to the QuotesFragment mTitleFrameLayout = (FrameLayout) findViewById(R.id.title_fragment_container); mQuotesFrameLayout = (FrameLayout) findViewById(R.id.quote_fragment_container); // Get a reference to the FragmentManager mFragmentManager = getFragmentManager(); // Start a new FragmentTransaction FragmentTransaction fragmentTransaction = mFragmentManager .beginTransaction(); // Add the TitleFragment to the layout fragmentTransaction.add(R.id.title_fragment_container, new TitlesFragment()); // Commit the FragmentTransaction fragmentTransaction.commit(); // Add a OnBackStackChangedListener to reset the layout when the back stack changes mFragmentManager .addOnBackStackChangedListener(new FragmentManager.OnBackStackChangedListener() { public void onBackStackChanged() { setLayout(); } }); } private void setLayout() { // Determine whether the QuoteFragment has been added if (!mQuoteFragment.isAdded()) { // Make the TitleFragment occupy the entire layout mTitleFrameLayout.setLayoutParams(new LinearLayout.LayoutParams( MATCH_PARENT, MATCH_PARENT)); mQuotesFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT)); } else { // Make the TitleLayout take 1/3 of the layout's width mTitleFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, 1f)); // Make the QuoteLayout take 2/3's of the layout's width mQuotesFrameLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, 2f)); } } // Called when the user selects an item in the TitlesFragment @Override public void onListSelection(int index) { // If the QuoteFragment has not been added, add it now if (!mQuoteFragment.isAdded()) { // Start a new FragmentTransaction FragmentTransaction fragmentTransaction = mFragmentManager .beginTransaction(); // Add the QuoteFragment to the layout fragmentTransaction.add(R.id.quote_fragment_container, mQuoteFragment); // Add this FragmentTransaction to the backstack fragmentTransaction.addToBackStack(null); // Commit the FragmentTransaction fragmentTransaction.commit(); // Force Android to execute the committed FragmentTransaction mFragmentManager.executePendingTransactions(); } if (mQuoteFragment.getShownIndex() != index) { // Tell the QuoteFragment to show the quote string at position index mQuoteFragment.showQuoteAtIndex(index); } } @Override protected void onDestroy() { Log.i(TAG, getClass().getSimpleName() + ":entered onDestroy()"); super.onDestroy(); } @Override protected void onPause() { Log.i(TAG, getClass().getSimpleName() + ":entered onPause()"); super.onPause(); } @Override protected void onRestart() { Log.i(TAG, getClass().getSimpleName() + ":entered onRestart()"); super.onRestart(); } @Override protected void onResume() { Log.i(TAG, getClass().getSimpleName() + ":entered onResume()"); super.onResume(); } @Override protected void onStart() { Log.i(TAG, getClass().getSimpleName() + ":entered onStart()"); super.onStart(); } @Override protected void onStop() { Log.i(TAG, getClass().getSimpleName() + ":entered onStop()"); super.onStop(); } }
mit
apizzimenti/funk
lib/functions/methods/groupByValue.js
1371
/** * Created by apizzimenti on 9/3/16. */ var _throwError = require("./throwError"), quicksort = require("../../structures").quicksort; /** * @author Anthony Pizzimeti * @desc Sorts the elements of the array and groups them in place. Does not apply typechecking, so values will be coerced. * @param {Array} a Array to be grouped. * @returns {Array} Array grouped by individual values. * @memberof methods * @todo implement in O(n) complexity with a while loop */ function groupByValue (a) { _throwError(a); if (a.length > 23) { a = quicksort(a, 0, a.length - 1); } else { a = a.sort(); } var i = 0, j = 0, refArray = [], refIndex = 0; for (i = 0; i < a.length; i++) { if (a[i] == a[i + 1]) { refArray.push(a[i]); } else { refArray.push(a[i]); a[refIndex] = refArray; refIndex++; if (i == a.length - 2 && refArray.length != 0) { a[refIndex] = [a[i + 1]]; break; } refArray = []; } } for (j = 0; j < a.length; j++) { if (!Array.isArray(a[j])) { delete a[j]; a.length--; } } return a; } module.exports = groupByValue;
mit
kneath/greed
framework/merb-core/spec/public/abstract_controller/partial_spec.rb
1758
require File.join(File.dirname(__FILE__), "spec_helper") describe Merb::AbstractController, " Partials" do it "should work with no options" do dispatch_should_make_body("BasicPartial", "Index Partial") end it "should work with :with" do dispatch_should_make_body("WithPartial", "Partial with With") end it "should work with nil :with" do dispatch_should_make_body("WithNilPartial", "Partial with nil local") end it "should work with :with and :as" do dispatch_should_make_body("WithAsPartial", "Partial with With and As") end it "should work with collections" do dispatch_should_make_body("PartialWithCollections", "Partial with collection") end it "should work with collections and :as" do dispatch_should_make_body("PartialWithCollectionsAndAs", "Partial with collection") end it "should work with key/value pairs of locals" do dispatch_should_make_body("PartialWithLocals", "Partial with local variables") end it "should work with both collections and locals" do dispatch_should_make_body("PartialWithBoth", "Partial with c-o-l-l-e-c-t-i-o-n-") end it "should work with both :with/:as and regular locals" do dispatch_should_make_body("PartialWithWithAndLocals", "Partial with with and locals") end it "should work with a partial in another directory" do dispatch_should_make_body("PartialInAnotherDirectory", "Index Partial in another directory") end it "should work with nested partials with locals" do dispatch_should_make_body("NestedPartial", "first second first") end it "should work with multiple template roots" do dispatch_should_make_body("BasicPartialWithMultipleRoots", "Base Index: Alt Partial") end end
mit
Petr-By/qtpyvis
qtgui/panels/gan.py
15019
""" File: styltransfer.py Author: Ulf Krumnack Email: [email protected] """ # standard imports import logging import random # third-party imports import numpy as np # Qt imports from PyQt5.QtCore import Qt, pyqtSlot from PyQt5.QtWidgets import QPushButton, QSlider from PyQt5.QtWidgets import QLabel, QGroupBox from PyQt5.QtWidgets import QVBoxLayout, QHBoxLayout from PyQt5.QtWidgets import QSizePolicy # toolbox imports #import dltb #from models.styletransfer import StyletransferTool from dltb.base.prepare import Preparable from dltb.base.busy import BusyObservable from dltb.base.image import ImageObservable from dltb.tool.generator import ImageGeneratorWorker from dltb.util.importer import Importer from dltb.thirdparty import implementations # GUI imports from .panel import Panel from ..adapter import QAdaptedComboBox from ..widgets.image import QImageView from ..widgets.features import QFeatureView, QFeatureInfo from ..utils import QBusyWidget, QPrepareButton, QObserver, protect # logging LOG = logging.getLogger(__name__) class GANPanel(Panel, QObserver, qobservables={ ImageObservable: {'image_changed', 'data_changed'}, Preparable: {'state_changed'}, BusyObservable: {'busy_changed'}}): """The :py:class:`GANPanel` provides a graphical interface provides controls that allow to run different forms of GANs. The panel contains the following groups of controls: * Selection and initialization: * Info and Display: * Transition: Interpolate between different features. Attributes ---------- _ganName: str Name of the currently selected GAN module (one of the keys of of the `GANModules` dictionary). _ganClass: str The class from which the GAN can be instantiated. _gan: GAN The currently selected GAN. An instance of the class named by `_ganName`. `None` means that the class was not yet initialized. _worker: A :py:class:`Worker` object that initiates the actual generation and informs the GUI once images are available. """ # initialize the GAN classes dictionary GANClasses = dict() for implementation in implementations('ImageGAN'): module, name = implementation.rsplit('.', maxsplit=1) if name in GANClasses or True: name += f" ({module.rsplit('.', maxsplit=1)[1]})" GANClasses[name] = implementation _ganName: str = None _ganClass: type = None _gan = None def __init__(self, **kwargs) -> None: """Initialize the :py:class:`StyletransferPanel`. """ LOG.info("GANPanel: Initializing") super().__init__(**kwargs) self._gan = None self._busy = False self._features = None self._features1 = None self._features2 = None self._worker = ImageGeneratorWorker() self._importer = Importer() self._initUI() self._initLayout() self.observe(self._worker) self.observe(self._importer) self.setGan(None) def _initUI(self) -> None: """Initialize craphical components of the :py:class:`GANPanel` """ # # GAN Initialization widgets # # A QComboBox for selecting the GAN class self._ganModuleLabel = QLabel("Module:") self._ganSelector = QAdaptedComboBox() self._ganSelector.setFromIterable(self.GANClasses.keys()) self._ganSelector.currentTextChanged. \ connect(self.onGanChanged) self._ganName = self._ganSelector.currentText() self._ganClass = self.GANClasses[self._ganName] # The "Initialize" button will trigger loading the GAN model self._initializeButton = QPushButton("Initialize") self._initializeButton.clicked.connect(self.onInitializeClicked) # A QComboBox for selecting a model (given the GAN class provides # more than one pre-trained model) self._ganModelLabel = QLabel("Model:") self._modelSelector = QAdaptedComboBox() self._modelSelector.currentTextChanged. \ connect(self.onModelChanged) self._busyWidget = QBusyWidget() self._prepareButton = QPrepareButton() self._infoLabel = QLabel() self._debugButton = QPushButton("Debug") self._debugButton.clicked.connect(self.onDebugClicked) # # Generated image # # Image view for displaying generated images self._imageView = QImageView() # Feature view for displaying current features self._featureView = QFeatureView() self._featureInfo = QFeatureInfo() self._featureView.featuresChanged.\ connect(self.updateImage) self._featureView.featuresChanged.\ connect(self._featureInfo.updateFeatures) # # Interpolation # # Image view for displaying images "A" and "B" in a transition self._imageA = QImageView() self._imageB = QImageView() # Slider self._interpolationSlider = QSlider(Qt.Horizontal) self._interpolationSlider.setRange(0, 100) self._interpolationSlider.setSingleStep(1) self._interpolationSlider.valueChanged. \ connect(self.onInterpolationChanged) # Button for randomly creating new images "A" and "B" self._randomButtonA = QPushButton("Random") self._randomButtonA.clicked.connect(self.onButtonClicked) self._randomButtonB = QPushButton("Random") self._randomButtonB.clicked.connect(self.onButtonClicked) def _initLayout(self) -> None: rows = QVBoxLayout() # # GAN Initialization panel # group = QGroupBox("GAN model") row = QHBoxLayout() row.addWidget(self._ganModuleLabel) self._ganModuleLabel.setSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed) row.addWidget(self._ganSelector) row.addWidget(self._initializeButton) row.addWidget(self._ganModelLabel) self._ganModelLabel.setSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed) row.addWidget(self._modelSelector) row.addWidget(self._prepareButton) row.addWidget(self._busyWidget) row.addWidget(self._infoLabel) row.addWidget(self._debugButton) group.setLayout(row) rows.addWidget(group) # # Generation # row = QHBoxLayout() row.addWidget(self._imageView) box = QVBoxLayout() box.addWidget(self._featureInfo) box.addStretch() row.addLayout(box) rows.addLayout(row) # Feature slider group = QGroupBox("Transition") row = QHBoxLayout() box = QVBoxLayout() box.addWidget(self._randomButtonA) box.addWidget(self._imageA) row.addLayout(box) # featureSlider = QVBoxLayout() featureSlider.addWidget(self._featureView) featureSlider.addWidget(self._interpolationSlider) row.addLayout(featureSlider, stretch=3) # box = QVBoxLayout() box.addWidget(self._randomButtonB) box.addWidget(self._imageB) row.addLayout(box) group.setLayout(row) rows.addWidget(group) self.setLayout(rows) @protect def onGanChanged(self, name: str) -> None: """A new GAN was selected in the `ganSelector` widget. If the corresponding GAN class is available (has already been imported), it will be instantiated and set as active GAN. Otherwise the import of the relevant module(s) will be initiated and the active GAN is set to `None`. Arguments --------- name: The name (identifier) of the new GAN. """ LOG.info("GANPanel: GAN changed in selector: '%s' -> '%s'", self._ganName, name) if name == self._ganName: return # nothing changed # set the current GAN name self._gan = None self._ganName = name self._ganClass = self.GANClasses[self._ganName] self.update() @protect def onInitializeClicked(self, checked: bool) -> None: if self._gan is not None: return # module already initialized # import class in background thread self._busyWidget.setBusyObservable(self._importer) self._importer.import_class(self._ganClass) self.update() def _initializeGan(self) -> None: """Import the StyleGAN module and update the interface. """ if self._gan is not None: return # GAN already initialized if self._ganClass is None: return # nothing to initialize if isinstance(self._ganClass, str): if not self._importer.class_is_imported(self._ganClass): return # class definition has not been imported self._ganClass = self._importer.imported_class(self._ganClass) self.setGan(self._ganClass()) def setGan(self, gan) -> None: if self._gan is not None: self.unobserve(self._gan) self._gan = gan self._worker.generator = self._gan if self._gan is not None: self.observe(self._gan) self._prepareButton.setPreparable(self._gan) self._busyWidget.setBusyObservable(self._gan) # now update the interface to allow selecting one of the # pretrained stylegan models if hasattr(self._ganClass, 'models'): self._modelSelector.setFromIterable(self._ganClass.models) self._gan.model = self._modelSelector.currentText() else: self._modelSelector.clear() self.update() @protect def onModelChanged(self, name: str) -> None: if self._gan is None: return # we can not change the model ... self._gan.model = name self.update() @protect def onButtonClicked(self, checked: bool) -> None: if self.sender() is self._randomButtonA: self._newRandomFeatures(index=0) elif self.sender() is self._randomButtonB: self._newRandomFeatures(index=1) def _newRandomFeatures(self, index: int = None) -> None: if index is None or index == 0 or self._features1 is None: seed1 = random.randint(0, 10000) self._features1 = self._gan.random_features(seed=seed1) if index is None or index == 1 or self._features2 is None: seed2 = random.randint(0, 10000) self._features2 = self._gan.random_features(seed=seed2) # image = self._gan.generate_image(self._features1) features = np.ndarray((3,) + self._features1.shape) features[0] = self._features1 features[1] = self._features2 scaled = self._interpolationSlider.value() / 100 self._features = ((1-scaled) * self._features1 + scaled * self._features2) features[2] = self._features self._worker.generate(features) self._featureView.setFeatures(self._features) self._featureInfo.setFeatures(self._features) @protect def onInterpolationChanged(self, value: int) -> None: """React to a change of the interpolation slider. """ scaled = value / 100 self._features = ((1-scaled) * self._features1 + scaled * self._features2) self._worker.generate(self._features) # will call gan.generate() self._featureView.setFeatures(self._features) self._featureInfo.setFeatures(self._features) def image_changed(self, observable: ImageObservable, change: ImageObservable.Change) -> None: """Implementation of the :py:class:`ImageObserver` interface. This method is called when the image generator has finished creating a new image. """ image = observable.image # type Image if image.is_batch: self._imageA.setImagelike(image[0]) self._imageB.setImagelike(image[1]) self._imageView.setImagelike(image[2]) else: self._imageView.setImagelike(image) # FIXME[todo]: should be setImage, not setImageLike def preparable_changed(self, preparable: Preparable, info: Preparable.Change) -> None: if preparable.prepared: self._infoLabel.setText(f"{self._gan.feature_dimensions} -> " f"?") if self._features1 is None: self._newRandomFeatures() self._gan.info() else: self._infoLabel.setText("") self._features1, self._features1 = None, None self._imageA.setImage(None) self._imageB.setImage(None) self._imageView.setImage(None) self._featureView.setFeatures(None) self._featureInfo.setFeatures(None) self.update() def busy_changed(self, importer: Importer, change: Importer.Change) -> None: if importer is self._importer: if (self._gan is None and isinstance(self._ganClass, str) and importer.class_is_imported(self._ganClass)): self._initializeGan() else: # some error occured self.update() def update(self) -> None: """Update this :py:class:`GANPanel`. """ initialized = self._gan is not None self._initializeButton.setVisible(not initialized) self._prepareButton.setVisible(initialized) self._ganSelector.setEnabled(not self._importer.busy) have_models = initialized and self._modelSelector.count() > 0 self._ganModelLabel.setVisible(have_models) self._modelSelector.setVisible(have_models) if not initialized: self._initializeButton.setEnabled(not self._importer.busy) elif have_models: self._modelSelector.setEnabled(True) prepared = self._gan is not None and self._gan.prepared self._randomButtonA.setEnabled(prepared) self._randomButtonB.setEnabled(prepared) self._interpolationSlider.setEnabled(prepared) super().update() @pyqtSlot() def updateImage(self) -> None: self._worker.generate(self._features) @protect def onDebugClicked(self, checked: bool) -> None: print(f"DEBUG") print(f"gan: {self._gan}") if self._gan is not None: print(f" -prepared: {self._gan.prepared}") print(f" -busy: {self._gan.busy}") print(f" -models: {hasattr(self._gan, 'models')}") print(f"name: {self._ganName}") print(f"class: {self._ganClass}") self.update() if self._gan is not None: self._gan.info()
mit
taskandtool/saas-starter
app/components/Users/UserList.js
604
import React, { PropTypes } from 'react'; import UserItem from './UserItem.js'; export default class UserList extends React.Component { static propTypes = { users: React.PropTypes.array } render() { let users = this.props.users.map((user) => { let email = user.emails && user.emails[0].address ? user.emails[0].address : '[email protected]'; return ( <UserItem key={user._id} _id={user._id} name={user.profile.name} avatar={user.profile.avatar} /> ); }) return ( <div> {users} </div> ); } }
mit
cbarbat/Mathematica-Parser
src/main/java/de/cbarbat/mathematica/parser/parselets/TagSetParselet.java
4204
/* * Copyright (c) 2013 Patrick Scheibe & 2016 Calin Barbat * * 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. */ package de.cbarbat.mathematica.parser.parselets; import de.cbarbat.mathematica.lexer.MathematicaLexer; import de.cbarbat.mathematica.parser.MathematicaElementType; import de.cbarbat.mathematica.parser.CriticalParserError; import de.cbarbat.mathematica.parser.MathematicaParser; import de.cbarbat.mathematica.parser.MathematicaElementTypes; /** * Parselet for all <em>tag setting operations</em> like a /: b = c or a /: b =. * * @author patrick (3/27/13) */ public class TagSetParselet implements InfixParselet { private final int myPrecedence; public TagSetParselet(int precedence) { this.myPrecedence = precedence; } @Override public MathematicaParser.ASTNode parse(MathematicaParser parser, MathematicaParser.ASTNode left) throws CriticalParserError { MathematicaLexer.Token token1 = parser.getToken(); if (parser.matchesToken(MathematicaElementTypes.TAG_SET)) { parser.advanceLexer(); } else { throw new CriticalParserError("Expected token TAG_SET"); } // In the next line we parse expr1 of expr0/:expr1 and we reduce the precedence by one because it is // right associative. Using SetDelayed (:=) which has the same precedence the following expression: // a /: b := c := d is then correctly parsed as a /: b := (c := d) MathematicaParser.ASTNode expr1 = parser.parseExpression(myPrecedence - 1); if (!expr1.isValid()) { parser.error("Missing 'expr' between '/\\:' and '\\:\\='"); return MathematicaParser.result(token1, MathematicaElementTypes.TAG_SET_EXPRESSION, false); } MathematicaElementType treeType; MathematicaLexer.Token token; if (expr1.type == MathematicaElementTypes.UNSET_EXPRESSION) { treeType = MathematicaElementTypes.TAG_UNSET_EXPRESSION; token = new MathematicaLexer.Token(treeType, "/:", token1.start, token1.start+2); } else if (expr1.type == MathematicaElementTypes.SET_EXPRESSION) { treeType = MathematicaElementTypes.TAG_SET_EXPRESSION; token = new MathematicaLexer.Token(treeType, "/:", token1.start, token1.start+2); } else if (expr1.type == MathematicaElementTypes.SET_DELAYED_EXPRESSION) { treeType = MathematicaElementTypes.TAG_SET_DELAYED_EXPRESSION; token = new MathematicaLexer.Token(treeType, "/:", token1.start, token1.start+2); } else { // if we are here, the second operator (:=, = or =.) is missing and we give up parser.error("Missing '\\:\\=','\\=' or '\\=.' needed to complete TagSet"); return MathematicaParser.result(token1, MathematicaElementTypes.TAG_SET_EXPRESSION, false); } MathematicaParser.ASTNode tree = MathematicaParser.result(token, treeType, expr1.isParsed()); tree.children = expr1.children; tree.children.add(0, left); return tree; } @Override public int getMyPrecedence() { return myPrecedence; } }
mit
Predator01/potential-adventure
mysite/polls/urls.py
190
from django.conf.urls import include, url, patterns from polls import views urlpatterns = [ url(r'^home/$', views.home, name='home'), url(r'^about/$', views.about, name='about'), ]
mit
PaulNoth/hackerrank
practice/algorithms/bit_manipulation/flipping_bits/FlippingBits.java
467
import java.util.Scanner; public class FlippingBits { private static int MAX = 0b11_111_111_111_111_111_111_111_111_111_111; public static void main(String[] args) { Scanner stdin = new Scanner(System.in); int tests = Integer.parseInt(stdin.nextLine()); for(int i = 0; i < tests; i++) { int input = (int) Long.parseLong(stdin.nextLine()); System.out.println(Long.valueOf(Integer.toBinaryString(MAX ^ input), 2)); } stdin.close(); } }
mit
caioroque/Asp.Net.Aulas
Projeto/Projeto/ViewSwitcher.ascx.designer.cs
437
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace Projeto { public partial class ViewSwitcher { } }
mit
timsuchanek/lycheeJS
tool/configure.js
10977
#!/usr/bin/env nodejs (function() { (function() { if (typeof String.prototype.trim !== 'function') { String.prototype.trim = function() { return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, ""); }; } })(); var _fs = require('fs'); var _package = null; var _path = require('path'); var _root = _path.resolve(process.cwd(), '.'); /* * HELPERS */ var _mkdir_p = function(path, mode) { path = _path.resolve(path); if (mode === undefined) { mode = 0777 & (~process.umask()); } try { if (_fs.statSync(path).isDirectory()) { return true; } else { return false; } } catch(err) { if (err.code === 'ENOENT') { _mkdir_p(_path.dirname(path), mode); _fs.mkdirSync(path, mode); return true; } } }; var _parse_documentation_line = function(text) { var index = text.indexOf('*'); var open = false; while (index !== -1) { text = text.substr(0, index) + (open === false ? '<em>' : '</em>') + text.substr(index + 1); open = !open; index = text.indexOf('*'); } text = text.replace(/\[([^\]]+)\]\(([^)"]+)(?: \"([^\"]+)\")?\)/, '<a href="$2">$1</a>'); return text; }; var _parse_documentation = function(content) { if (content && !content.toString) { return null; } var open = { article: false, ul: false, li: false, pre: false, p: false }; var source = content.toString().split('\n'); var length = source.length; var result = source.map(function(line, index) { if (line.charAt(0) === '=') { line = '<article id="' + line.substr(2, line.length - 3).trim() + '">'; if (open.article === true) { line = '</article>\n\n' + line; open.article = false; } open.article = true; } else if (line.substr(0, 3) === '###') { line = '\t<h3>' + line.substr(4) + '</h3>'; } else if (line.substr(0, 2) === '##') { line = '\t<h2>' + line.substr(3) + '</h2>'; } else if (line.substr(0, 1) === '#') { line = '\t<h1>' + line.substr(2) + '</h1>'; } else if (line.substr(0, 3) === '```') { if (open.pre === false) { line = '\t<pre class="' + line.substr(3) + '">'; open.pre = true; } else { line = '\t</pre>'; open.pre = false; } } else if (line.charAt(0) === '-') { if (open.ul === false) { line = '\t<ul>\n\t\t<li>\n\t\t\t' + _parse_documentation_line(line.substr(2)); // + '</li>'; open.ul = true; open.li = true; } else { line = '\t\t<li>\n\t\t\t' + _parse_documentation_line(line.substr(2)); // + '</li>'; open.li = true; } } else if (line !== '' && open.li === true) { line = '\t\t\t' + line; } else if (line !== '' && open.pre === true) { line = line.replace(/\t/g, ' '); } else if (line !== '' && open.pre === false && open.ul === false) { if (open.p === false) { line = '\t<p>\n\t\t' + _parse_documentation_line(line); open.p = true; } else { // Do nothing line = '\t\t' + _parse_documentation_line(line); } } else if (line === '') { if (open.li === true) { line += '\t\t</li>\n'; open.li = false; } if (open.ul === true) { line += '\t</ul>\n'; open.ul = false; } if (open.p === true) { line += '\t</p>\n'; open.p = false; } if (index === length - 1) { if (open.article === true) { line += '</article>'; } } } return line; }); return result.join('\n'); }; /* * 0: ENVIRONMENT CHECK */ (function() { var errors = 0; console.log('> Checking Environment'); if (_fs.existsSync(_path.resolve(_root, './lychee')) === true) { console.log('\tprocess cwd: OKAY'); } else { console.log('\tprocess cwd: FAIL (' + _root + ' is not the lycheeJS directory)'); errors++; } var data = null; if (_fs.existsSync(_path.resolve(_root, './lychee/lychee.pkg')) === true) { try { data = JSON.parse(_fs.readFileSync(_path.resolve(_root, './lychee/lychee.pkg'))); } catch(e) { data = null; } } if (data !== null) { _package = data; console.log('\tlychee.pkg: OKAY'); } else { console.log('\tlychee.pkg: FAIL (Invalid JSON)'); errors++; } if (errors === 0) { console.log('> OKAY\n'); } else { console.log('> FAIL\n'); process.exit(1); } })(); /* * 1: CORE GENERATION */ var _core = ''; var _bootstrap = {}; (function(files) { var errors = 0; console.log('> Generating lycheeJS core'); files.forEach(function(file) { var path = _path.resolve(_root, './lychee/source/core/' + file); if (_fs.existsSync(path) === true) { _core += _fs.readFileSync(path, 'utf8'); } else { errors++; } }); if (errors === 0) { console.log('> OKAY\n'); } else { console.log('> FAIL\n'); process.exit(1); } })([ 'lychee.js', 'Debugger.js', 'Definition.js', 'Environment.js', 'Package.js' ]); /* * 2: PLATFORM GENERATION */ (function(platforms, files) { var errors = 0; console.log('> Generating lycheeJS platform adapters'); platforms.forEach(function(platform) { _bootstrap[platform] = {}; var base = platform.indexOf('-') ? platform.split('-')[0] : null; if (base !== null) { for (var file in _bootstrap[base]) { _bootstrap[platform][file] = _bootstrap[base][file]; } } var result = true; files.forEach(function(file) { var path = _path.resolve(_root, './lychee/source/platform/' + platform + '/' + file); if (_fs.existsSync(path) === true) { _bootstrap[platform][file] = _fs.readFileSync(path, 'utf8'); } else { result = false; } }); if (result === true) { console.log('\t' + platform + ': OKAY'); } else { console.log('~\t' + platform + ': SKIP (Empty platform adapter variant)'); } }); platforms.forEach(function(platform) { if (Object.keys(_bootstrap[platform]).length === 0) { delete _bootstrap[platform]; } }); if (errors === 0) { console.log('> OKAY\n'); } else { console.log('> FAIL\n'); process.exit(1); } })([ 'html', 'html-nw', 'html-webgl', 'nodejs', 'nodejs-sdl', 'nodejs-webgl' ], [ 'bootstrap.js', 'Input.js', 'Renderer.js', 'Storage.js', 'Viewport.js' ]); (function(core, bootstrap) { var errors = 0; console.log('> Storing lycheeJS platform adapters'); for (var platform in bootstrap) { var code = '' + core; for (var file in bootstrap[platform]) { code += bootstrap[platform][file]; } var dir = _path.resolve(_root, './lychee/build/' + platform); var path = _path.resolve(_root, './lychee/build/' + platform + '/core.js'); var result = true; if (_fs.existsSync(dir) === false) { _mkdir_p(dir); } if (_fs.existsSync(dir) === true) { try { _fs.writeFileSync(path, code, 'utf8'); } catch(e) { result = false; } } else { result = false; } if (result === false) { console.log('\t' + platform + ': FAIL (Could not write to "' + path + '")'); errors++; } else { console.log('\t' + platform + ': OKAY'); } } if (errors === 0) { console.log('> OKAY\n'); } else { console.log('> FAIL\n'); } })(_core, _bootstrap); /* * 3: API DOC GENERATION */ (function(files) { var errors = 0; console.log('> Documenting lycheeJS API'); var platform = files.filter(function(value) { return value.substr(0, 8) === 'platform'; }); var normal = files.filter(function(value) { return value.substr(0, 8) !== 'platform'; }); normal.forEach(function(file) { var classid = 'lychee.' + (file.substr(0, 4) === 'core' ? file.substr(5, file.length - 8) : file.substr(0, file.length - 3)).split('/').join('.'); if (classid === 'lychee.lychee') classid = 'lychee'; var pathid = file.substr(0, file.length - 3).split('/').join('.'); var apipath = _path.resolve(_root, './lychee/api/' + pathid.split('.').join('/') + '.md'); var docpath = _path.resolve(_root, './lychee/docs/' + classid.split('.').join('-') + '.html'); var result = false; if (_fs.existsSync(apipath) === true) { var content = _parse_documentation(_fs.readFileSync(apipath)); if (content !== null) { if (_fs.existsSync(_path.dirname(docpath)) === false) { _mkdir_p(_path.dirname(docpath)); } if (_fs.existsSync(_path.dirname(docpath)) === true) { try { _fs.writeFileSync(docpath, content, 'utf8'); result = true; } catch(e) { result = false; } } } } if (result === true) { console.log('\t' + classid + ': OKAY'); } else { console.log('~\t' + classid + ': SKIP'); } }); var filtered = {}; platform.forEach(function(value) { var index = value.indexOf('/', 9) + 1; if (index !== 0) { filtered[value.substr(index)] = true; } }); Object.keys(filtered).forEach(function(file) { var classid = 'lychee.' + file.substr(0, file.length - 3).split('/').join('.'); var pathid = ((file.indexOf('/') !== -1 ? '' : 'core/') + file.substr(0, file.length - 3)).split('/').join('.'); var apipath = _path.resolve(_root, './lychee/api/' + pathid.split('.').join('/') + '.md'); var docpath = _path.resolve(_root, './lychee/docs/' + classid.split('.').join('-') + '.html'); var result = false; if (_fs.existsSync(apipath) === true) { var content = _parse_documentation(_fs.readFileSync(apipath)); if (content !== null) { if (_fs.existsSync(_path.dirname(docpath)) === false) { _mkdir_p(_path.dirname(docpath)); } if (_fs.existsSync(_path.dirname(docpath)) === true) { try { _fs.writeFileSync(docpath, content, 'utf8'); result = true; } catch(e) { result = false; } } } } if (result === true) { console.log('\t' + classid + ': OKAY'); } else { console.log('~\t' + classid + ': SKIP'); } }); if (errors === 0) { console.log('> OKAY\n'); } else { console.log('> FAIL\n'); } })((function(json) { var files = []; var walk_directory = function(node, path) { if (node instanceof Array) { if (node.indexOf('js') !== -1) { files.push(path + '.js'); } } else if (node instanceof Object) { Object.keys(node).forEach(function(child) { walk_directory(node[child], path + '/' + child); }); } }; if (json !== null) { var root = json.source.files || null; if (root !== null) { walk_directory(root, ''); } } return files.concat([ '/core/lychee.js', '/core/Debugger.js', '/core/Definition.js', '/core/Environment.js', '/core/Package.js' ]).map(function(value) { return value.substr(1); }).sort(function(a, b) { if (a > b) return 1; if (a < b) return -1; return 0; }); })(_package)); })();
mit
TinkerPatch/tinkerpatch-sdk
tinkerpatch-sdk/src/main/java/com/tinkerpatch/sdk/tinker/callback/ResultCallBack.java
1389
/* * The MIT License (MIT) * * Copyright (c) 2013-2016 Shengjie Sim Sun * * 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. */ package com.tinkerpatch.sdk.tinker.callback; import com.tencent.tinker.lib.service.PatchResult; /** * Created by zhangshaowen on 16/12/23. */ public interface ResultCallBack { void onPatchResult(final PatchResult result); }
mit
gjoshevski/Cabbage-Phonegap-App-generator
public/modules/bcards/controllers/bcards.client.controller.js
1836
'use strict'; // Bcards controller angular.module('bcards').controller('BcardsController', ['$scope', '$stateParams', '$location', 'Authentication', 'Bcards', function($scope, $stateParams, $location, Authentication, Bcards) { $scope.authentication = Authentication; // Create new Bcard $scope.create = function() { // Create new Bcard object var bcard = new Bcards ({ name: this.bcard.name, appId: Authentication.user._id, address: this.bcard.address, number: this.bcard.number, image: this.bcard.image, email: this.bcard.email }); // Redirect after save bcard.$save(function(response) { // $location.path('bcards/' + response._id); $scope.status = "Infomrations saved"; // Clear form fields $scope.name = ''; }, function(errorResponse) { $scope.error = errorResponse.data.message; }); }; // Remove existing Bcard $scope.remove = function(bcard) { if ( bcard ) { bcard.$remove(); for (var i in $scope.bcards) { if ($scope.bcards [i] === bcard) { $scope.bcards.splice(i, 1); } } } else { $scope.bcard.$remove(function() { $location.path('bcards'); }); } }; // Update existing Bcard $scope.update = function() { var bcard = $scope.bcard; bcard.$update(function() { $location.path('bcards/' + bcard._id); }, function(errorResponse) { $scope.error = errorResponse.data.message; }); }; // Find a list of Bcards $scope.find = function() { $scope.bcards = Bcards.query({bcardId: Authentication.user._id}, function(bcards) { $scope.bcard = bcards[0]; console.log(bcards); console.log(bcards[0]); }); }; // Find existing Bcard $scope.findOne = function() { $scope.bcard = Bcards.get({ bcardId: $stateParams.bcardId }); }; } ]);
mit
fretsonfire/fof-python
src/SvgColors.py
43004
##################################################################### # -*- coding: iso-8859-1 -*- # # # # Frets on Fire # # Copyright (C) 2006 Sami Kyöstilä # # # # This program is free software; you can redistribute it and/or # # modify it under the terms of the GNU General Public License # # as published by the Free Software Foundation; either version 2 # # of the License, or (at your option) any later version. # # # # This program is distributed in the hope that it will be useful, # # but WITHOUT ANY WARRANTY; without even the implied warranty of # # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # # GNU General Public License for more details. # # # # You should have received a copy of the GNU General Public License # # along with this program; if not, write to the Free Software # # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # # MA 02110-1301, USA. # ##################################################################### colors = { "snow" : (1.00, 0.98, 0.98), "ghost" : (0.97, 0.97, 1.00), "white" : (0.97, 0.97, 1.00), "ghostwhite" : (0.97, 0.97, 1.00), "white" : (0.96, 0.96, 0.96), "smoke" : (0.96, 0.96, 0.96), "whitesmoke" : (0.96, 0.96, 0.96), "gainsboro" : (0.86, 0.86, 0.86), "floral" : (1.00, 0.98, 0.94), "white" : (1.00, 0.98, 0.94), "floralwhite" : (1.00, 0.98, 0.94), "old" : (0.99, 0.96, 0.90), "lace" : (0.99, 0.96, 0.90), "oldlace" : (0.99, 0.96, 0.90), "linen" : (0.98, 0.94, 0.90), "antique" : (0.98, 0.92, 0.84), "white" : (0.98, 0.92, 0.84), "antiquewhite" : (0.98, 0.92, 0.84), "papaya" : (1.00, 0.94, 0.84), "whip" : (1.00, 0.94, 0.84), "papayawhip" : (1.00, 0.94, 0.84), "blanched" : (1.00, 0.92, 0.80), "almond" : (1.00, 0.92, 0.80), "blanchedalmond" : (1.00, 0.92, 0.80), "bisque" : (1.00, 0.89, 0.77), "peach" : (1.00, 0.85, 0.73), "puff" : (1.00, 0.85, 0.73), "peachpuff" : (1.00, 0.85, 0.73), "navajo" : (1.00, 0.87, 0.68), "white" : (1.00, 0.87, 0.68), "navajowhite" : (1.00, 0.87, 0.68), "moccasin" : (1.00, 0.89, 0.71), "cornsilk" : (1.00, 0.97, 0.86), "ivory" : (1.00, 1.00, 0.94), "lemon" : (1.00, 0.98, 0.80), "chiffon" : (1.00, 0.98, 0.80), "lemonchiffon" : (1.00, 0.98, 0.80), "seashell" : (1.00, 0.96, 0.93), "honeydew" : (0.94, 1.00, 0.94), "mint" : (0.96, 1.00, 0.98), "cream" : (0.96, 1.00, 0.98), "mintcream" : (0.96, 1.00, 0.98), "azure" : (0.94, 1.00, 1.00), "alice" : (0.94, 0.97, 1.00), "blue" : (0.94, 0.97, 1.00), "aliceblue" : (0.94, 0.97, 1.00), "lavender" : (0.90, 0.90, 0.98), "lavender" : (1.00, 0.94, 0.96), "blush" : (1.00, 0.94, 0.96), "lavenderblush" : (1.00, 0.94, 0.96), "misty" : (1.00, 0.89, 0.88), "rose" : (1.00, 0.89, 0.88), "mistyrose" : (1.00, 0.89, 0.88), "white" : (1.00, 1.00, 1.00), "black" : (0.00, 0.00, 0.00), "dark" : (0.18, 0.31, 0.31), "slate" : (0.18, 0.31, 0.31), "gray" : (0.18, 0.31, 0.31), "darkslategray" : (0.18, 0.31, 0.31), "dark" : (0.18, 0.31, 0.31), "slate" : (0.18, 0.31, 0.31), "grey" : (0.18, 0.31, 0.31), "darkslategrey" : (0.18, 0.31, 0.31), "dim" : (0.41, 0.41, 0.41), "gray" : (0.41, 0.41, 0.41), "dimgray" : (0.41, 0.41, 0.41), "dim" : (0.41, 0.41, 0.41), "grey" : (0.41, 0.41, 0.41), "dimgrey" : (0.41, 0.41, 0.41), "slate" : (0.44, 0.50, 0.56), "gray" : (0.44, 0.50, 0.56), "slategray" : (0.44, 0.50, 0.56), "slate" : (0.44, 0.50, 0.56), "grey" : (0.44, 0.50, 0.56), "slategrey" : (0.44, 0.50, 0.56), "light" : (0.47, 0.53, 0.60), "slate" : (0.47, 0.53, 0.60), "gray" : (0.47, 0.53, 0.60), "lightslategray" : (0.47, 0.53, 0.60), "light" : (0.47, 0.53, 0.60), "slate" : (0.47, 0.53, 0.60), "grey" : (0.47, 0.53, 0.60), "lightslategrey" : (0.47, 0.53, 0.60), "gray" : (0.75, 0.75, 0.75), "grey" : (0.75, 0.75, 0.75), "light" : (0.83, 0.83, 0.83), "grey" : (0.83, 0.83, 0.83), "lightgrey" : (0.83, 0.83, 0.83), "light" : (0.83, 0.83, 0.83), "gray" : (0.83, 0.83, 0.83), "lightgray" : (0.83, 0.83, 0.83), "midnight" : (0.10, 0.10, 0.44), "blue" : (0.10, 0.10, 0.44), "midnightblue" : (0.10, 0.10, 0.44), "navy" : (0.00, 0.00, 0.50), "navy" : (0.00, 0.00, 0.50), "blue" : (0.00, 0.00, 0.50), "navyblue" : (0.00, 0.00, 0.50), "cornflower" : (0.39, 0.58, 0.93), "blue" : (0.39, 0.58, 0.93), "cornflowerblue" : (0.39, 0.58, 0.93), "dark" : (0.28, 0.24, 0.55), "slate" : (0.28, 0.24, 0.55), "blue" : (0.28, 0.24, 0.55), "darkslateblue" : (0.28, 0.24, 0.55), "slate" : (0.42, 0.35, 0.80), "blue" : (0.42, 0.35, 0.80), "slateblue" : (0.42, 0.35, 0.80), "medium" : (0.48, 0.41, 0.93), "slate" : (0.48, 0.41, 0.93), "blue" : (0.48, 0.41, 0.93), "mediumslateblue" : (0.48, 0.41, 0.93), "light" : (0.52, 0.44, 1.00), "slate" : (0.52, 0.44, 1.00), "blue" : (0.52, 0.44, 1.00), "lightslateblue" : (0.52, 0.44, 1.00), "medium" : (0.00, 0.00, 0.80), "blue" : (0.00, 0.00, 0.80), "mediumblue" : (0.00, 0.00, 0.80), "royal" : (0.25, 0.41, 0.88), "blue" : (0.25, 0.41, 0.88), "royalblue" : (0.25, 0.41, 0.88), "blue" : (0.00, 0.00, 1.00), "dodger" : (0.12, 0.56, 1.00), "blue" : (0.12, 0.56, 1.00), "dodgerblue" : (0.12, 0.56, 1.00), "deep" : (0.00, 0.75, 1.00), "sky" : (0.00, 0.75, 1.00), "blue" : (0.00, 0.75, 1.00), "deepskyblue" : (0.00, 0.75, 1.00), "sky" : (0.53, 0.81, 0.92), "blue" : (0.53, 0.81, 0.92), "skyblue" : (0.53, 0.81, 0.92), "light" : (0.53, 0.81, 0.98), "sky" : (0.53, 0.81, 0.98), "blue" : (0.53, 0.81, 0.98), "lightskyblue" : (0.53, 0.81, 0.98), "steel" : (0.27, 0.51, 0.71), "blue" : (0.27, 0.51, 0.71), "steelblue" : (0.27, 0.51, 0.71), "light" : (0.69, 0.77, 0.87), "steel" : (0.69, 0.77, 0.87), "blue" : (0.69, 0.77, 0.87), "lightsteelblue" : (0.69, 0.77, 0.87), "light" : (0.68, 0.85, 0.90), "blue" : (0.68, 0.85, 0.90), "lightblue" : (0.68, 0.85, 0.90), "powder" : (0.69, 0.88, 0.90), "blue" : (0.69, 0.88, 0.90), "powderblue" : (0.69, 0.88, 0.90), "pale" : (0.69, 0.93, 0.93), "turquoise" : (0.69, 0.93, 0.93), "paleturquoise" : (0.69, 0.93, 0.93), "dark" : (0.00, 0.81, 0.82), "turquoise" : (0.00, 0.81, 0.82), "darkturquoise" : (0.00, 0.81, 0.82), "medium" : (0.28, 0.82, 0.80), "turquoise" : (0.28, 0.82, 0.80), "mediumturquoise" : (0.28, 0.82, 0.80), "turquoise" : (0.25, 0.88, 0.82), "cyan" : (0.00, 1.00, 1.00), "light" : (0.88, 1.00, 1.00), "cyan" : (0.88, 1.00, 1.00), "lightcyan" : (0.88, 1.00, 1.00), "cadet" : (0.37, 0.62, 0.63), "blue" : (0.37, 0.62, 0.63), "cadetblue" : (0.37, 0.62, 0.63), "medium" : (0.40, 0.80, 0.67), "aquamarine" : (0.40, 0.80, 0.67), "mediumaquamarine" : (0.40, 0.80, 0.67), "aquamarine" : (0.50, 1.00, 0.83), "dark" : (0.00, 0.39, 0.00), "green" : (0.00, 0.39, 0.00), "darkgreen" : (0.00, 0.39, 0.00), "dark" : (0.33, 0.42, 0.18), "olive" : (0.33, 0.42, 0.18), "green" : (0.33, 0.42, 0.18), "darkolivegreen" : (0.33, 0.42, 0.18), "dark" : (0.56, 0.74, 0.56), "sea" : (0.56, 0.74, 0.56), "green" : (0.56, 0.74, 0.56), "darkseagreen" : (0.56, 0.74, 0.56), "sea" : (0.18, 0.55, 0.34), "green" : (0.18, 0.55, 0.34), "seagreen" : (0.18, 0.55, 0.34), "medium" : (0.24, 0.70, 0.44), "sea" : (0.24, 0.70, 0.44), "green" : (0.24, 0.70, 0.44), "mediumseagreen" : (0.24, 0.70, 0.44), "light" : (0.13, 0.70, 0.67), "sea" : (0.13, 0.70, 0.67), "green" : (0.13, 0.70, 0.67), "lightseagreen" : (0.13, 0.70, 0.67), "pale" : (0.60, 0.98, 0.60), "green" : (0.60, 0.98, 0.60), "palegreen" : (0.60, 0.98, 0.60), "spring" : (0.00, 1.00, 0.50), "green" : (0.00, 1.00, 0.50), "springgreen" : (0.00, 1.00, 0.50), "lawn" : (0.49, 0.99, 0.00), "green" : (0.49, 0.99, 0.00), "lawngreen" : (0.49, 0.99, 0.00), "green" : (0.00, 1.00, 0.00), "chartreuse" : (0.50, 1.00, 0.00), "medium" : (0.00, 0.98, 0.60), "spring" : (0.00, 0.98, 0.60), "green" : (0.00, 0.98, 0.60), "mediumspringgreen" : (0.00, 0.98, 0.60), "green" : (0.68, 1.00, 0.18), "yellow" : (0.68, 1.00, 0.18), "greenyellow" : (0.68, 1.00, 0.18), "lime" : (0.20, 0.80, 0.20), "green" : (0.20, 0.80, 0.20), "limegreen" : (0.20, 0.80, 0.20), "yellow" : (0.60, 0.80, 0.20), "green" : (0.60, 0.80, 0.20), "yellowgreen" : (0.60, 0.80, 0.20), "forest" : (0.13, 0.55, 0.13), "green" : (0.13, 0.55, 0.13), "forestgreen" : (0.13, 0.55, 0.13), "olive" : (0.42, 0.56, 0.14), "drab" : (0.42, 0.56, 0.14), "olivedrab" : (0.42, 0.56, 0.14), "dark" : (0.74, 0.72, 0.42), "khaki" : (0.74, 0.72, 0.42), "darkkhaki" : (0.74, 0.72, 0.42), "khaki" : (0.94, 0.90, 0.55), "pale" : (0.93, 0.91, 0.67), "goldenrod" : (0.93, 0.91, 0.67), "palegoldenrod" : (0.93, 0.91, 0.67), "light" : (0.98, 0.98, 0.82), "goldenrod" : (0.98, 0.98, 0.82), "yellow" : (0.98, 0.98, 0.82), "lightgoldenrodyellow" : (0.98, 0.98, 0.82), "light" : (1.00, 1.00, 0.88), "yellow" : (1.00, 1.00, 0.88), "lightyellow" : (1.00, 1.00, 0.88), "yellow" : (1.00, 1.00, 0.00), "gold" : (1.00, 0.84, 0.00), "light" : (0.93, 0.87, 0.51), "goldenrod" : (0.93, 0.87, 0.51), "lightgoldenrod" : (0.93, 0.87, 0.51), "goldenrod" : (0.85, 0.65, 0.13), "dark" : (0.72, 0.53, 0.04), "goldenrod" : (0.72, 0.53, 0.04), "darkgoldenrod" : (0.72, 0.53, 0.04), "rosy" : (0.74, 0.56, 0.56), "brown" : (0.74, 0.56, 0.56), "rosybrown" : (0.74, 0.56, 0.56), "indian" : (0.80, 0.36, 0.36), "red" : (0.80, 0.36, 0.36), "indianred" : (0.80, 0.36, 0.36), "saddle" : (0.55, 0.27, 0.07), "brown" : (0.55, 0.27, 0.07), "saddlebrown" : (0.55, 0.27, 0.07), "sienna" : (0.63, 0.32, 0.18), "peru" : (0.80, 0.52, 0.25), "burlywood" : (0.87, 0.72, 0.53), "beige" : (0.96, 0.96, 0.86), "wheat" : (0.96, 0.87, 0.70), "sandy" : (0.96, 0.64, 0.38), "brown" : (0.96, 0.64, 0.38), "sandybrown" : (0.96, 0.64, 0.38), "tan" : (0.82, 0.71, 0.55), "chocolate" : (0.82, 0.41, 0.12), "firebrick" : (0.70, 0.13, 0.13), "brown" : (0.65, 0.16, 0.16), "dark" : (0.91, 0.59, 0.48), "salmon" : (0.91, 0.59, 0.48), "darksalmon" : (0.91, 0.59, 0.48), "salmon" : (0.98, 0.50, 0.45), "light" : (1.00, 0.63, 0.48), "salmon" : (1.00, 0.63, 0.48), "lightsalmon" : (1.00, 0.63, 0.48), "orange" : (1.00, 0.65, 0.00), "dark" : (1.00, 0.55, 0.00), "orange" : (1.00, 0.55, 0.00), "darkorange" : (1.00, 0.55, 0.00), "coral" : (1.00, 0.50, 0.31), "light" : (0.94, 0.50, 0.50), "coral" : (0.94, 0.50, 0.50), "lightcoral" : (0.94, 0.50, 0.50), "tomato" : (1.00, 0.39, 0.28), "orange" : (1.00, 0.27, 0.00), "red" : (1.00, 0.27, 0.00), "orangered" : (1.00, 0.27, 0.00), "red" : (1.00, 0.00, 0.00), "hot" : (1.00, 0.41, 0.71), "pink" : (1.00, 0.41, 0.71), "hotpink" : (1.00, 0.41, 0.71), "deep" : (1.00, 0.08, 0.58), "pink" : (1.00, 0.08, 0.58), "deeppink" : (1.00, 0.08, 0.58), "pink" : (1.00, 0.75, 0.80), "light" : (1.00, 0.71, 0.76), "pink" : (1.00, 0.71, 0.76), "lightpink" : (1.00, 0.71, 0.76), "pale" : (0.86, 0.44, 0.58), "violet" : (0.86, 0.44, 0.58), "red" : (0.86, 0.44, 0.58), "palevioletred" : (0.86, 0.44, 0.58), "maroon" : (0.69, 0.19, 0.38), "medium" : (0.78, 0.08, 0.52), "violet" : (0.78, 0.08, 0.52), "red" : (0.78, 0.08, 0.52), "mediumvioletred" : (0.78, 0.08, 0.52), "violet" : (0.82, 0.13, 0.56), "red" : (0.82, 0.13, 0.56), "violetred" : (0.82, 0.13, 0.56), "magenta" : (1.00, 0.00, 1.00), "violet" : (0.93, 0.51, 0.93), "plum" : (0.87, 0.63, 0.87), "orchid" : (0.85, 0.44, 0.84), "medium" : (0.73, 0.33, 0.83), "orchid" : (0.73, 0.33, 0.83), "mediumorchid" : (0.73, 0.33, 0.83), "dark" : (0.60, 0.20, 0.80), "orchid" : (0.60, 0.20, 0.80), "darkorchid" : (0.60, 0.20, 0.80), "dark" : (0.58, 0.00, 0.83), "violet" : (0.58, 0.00, 0.83), "darkviolet" : (0.58, 0.00, 0.83), "blue" : (0.54, 0.17, 0.89), "violet" : (0.54, 0.17, 0.89), "blueviolet" : (0.54, 0.17, 0.89), "purple" : (0.63, 0.13, 0.94), "medium" : (0.58, 0.44, 0.86), "purple" : (0.58, 0.44, 0.86), "mediumpurple" : (0.58, 0.44, 0.86), "thistle" : (0.85, 0.75, 0.85), "snow1" : (1.00, 0.98, 0.98), "snow2" : (0.93, 0.91, 0.91), "snow3" : (0.80, 0.79, 0.79), "snow4" : (0.55, 0.54, 0.54), "seashell1" : (1.00, 0.96, 0.93), "seashell2" : (0.93, 0.90, 0.87), "seashell3" : (0.80, 0.77, 0.75), "seashell4" : (0.55, 0.53, 0.51), "antiquewhite1" : (1.00, 0.94, 0.86), "antiquewhite2" : (0.93, 0.87, 0.80), "antiquewhite3" : (0.80, 0.75, 0.69), "antiquewhite4" : (0.55, 0.51, 0.47), "bisque1" : (1.00, 0.89, 0.77), "bisque2" : (0.93, 0.84, 0.72), "bisque3" : (0.80, 0.72, 0.62), "bisque4" : (0.55, 0.49, 0.42), "peachpuff1" : (1.00, 0.85, 0.73), "peachpuff2" : (0.93, 0.80, 0.68), "peachpuff3" : (0.80, 0.69, 0.58), "peachpuff4" : (0.55, 0.47, 0.40), "navajowhite1" : (1.00, 0.87, 0.68), "navajowhite2" : (0.93, 0.81, 0.63), "navajowhite3" : (0.80, 0.70, 0.55), "navajowhite4" : (0.55, 0.47, 0.37), "lemonchiffon1" : (1.00, 0.98, 0.80), "lemonchiffon2" : (0.93, 0.91, 0.75), "lemonchiffon3" : (0.80, 0.79, 0.65), "lemonchiffon4" : (0.55, 0.54, 0.44), "cornsilk1" : (1.00, 0.97, 0.86), "cornsilk2" : (0.93, 0.91, 0.80), "cornsilk3" : (0.80, 0.78, 0.69), "cornsilk4" : (0.55, 0.53, 0.47), "ivory1" : (1.00, 1.00, 0.94), "ivory2" : (0.93, 0.93, 0.88), "ivory3" : (0.80, 0.80, 0.76), "ivory4" : (0.55, 0.55, 0.51), "honeydew1" : (0.94, 1.00, 0.94), "honeydew2" : (0.88, 0.93, 0.88), "honeydew3" : (0.76, 0.80, 0.76), "honeydew4" : (0.51, 0.55, 0.51), "lavenderblush1" : (1.00, 0.94, 0.96), "lavenderblush2" : (0.93, 0.88, 0.90), "lavenderblush3" : (0.80, 0.76, 0.77), "lavenderblush4" : (0.55, 0.51, 0.53), "mistyrose1" : (1.00, 0.89, 0.88), "mistyrose2" : (0.93, 0.84, 0.82), "mistyrose3" : (0.80, 0.72, 0.71), "mistyrose4" : (0.55, 0.49, 0.48), "azure1" : (0.94, 1.00, 1.00), "azure2" : (0.88, 0.93, 0.93), "azure3" : (0.76, 0.80, 0.80), "azure4" : (0.51, 0.55, 0.55), "slateblue1" : (0.51, 0.44, 1.00), "slateblue2" : (0.48, 0.40, 0.93), "slateblue3" : (0.41, 0.35, 0.80), "slateblue4" : (0.28, 0.24, 0.55), "royalblue1" : (0.28, 0.46, 1.00), "royalblue2" : (0.26, 0.43, 0.93), "royalblue3" : (0.23, 0.37, 0.80), "royalblue4" : (0.15, 0.25, 0.55), "blue1" : (0.00, 0.00, 1.00), "blue2" : (0.00, 0.00, 0.93), "blue3" : (0.00, 0.00, 0.80), "blue4" : (0.00, 0.00, 0.55), "dodgerblue1" : (0.12, 0.56, 1.00), "dodgerblue2" : (0.11, 0.53, 0.93), "dodgerblue3" : (0.09, 0.45, 0.80), "dodgerblue4" : (0.06, 0.31, 0.55), "steelblue1" : (0.39, 0.72, 1.00), "steelblue2" : (0.36, 0.67, 0.93), "steelblue3" : (0.31, 0.58, 0.80), "steelblue4" : (0.21, 0.39, 0.55), "deepskyblue1" : (0.00, 0.75, 1.00), "deepskyblue2" : (0.00, 0.70, 0.93), "deepskyblue3" : (0.00, 0.60, 0.80), "deepskyblue4" : (0.00, 0.41, 0.55), "skyblue1" : (0.53, 0.81, 1.00), "skyblue2" : (0.49, 0.75, 0.93), "skyblue3" : (0.42, 0.65, 0.80), "skyblue4" : (0.29, 0.44, 0.55), "lightskyblue1" : (0.69, 0.89, 1.00), "lightskyblue2" : (0.64, 0.83, 0.93), "lightskyblue3" : (0.55, 0.71, 0.80), "lightskyblue4" : (0.38, 0.48, 0.55), "slategray1" : (0.78, 0.89, 1.00), "slategray2" : (0.73, 0.83, 0.93), "slategray3" : (0.62, 0.71, 0.80), "slategray4" : (0.42, 0.48, 0.55), "lightsteelblue1" : (0.79, 0.88, 1.00), "lightsteelblue2" : (0.74, 0.82, 0.93), "lightsteelblue3" : (0.64, 0.71, 0.80), "lightsteelblue4" : (0.43, 0.48, 0.55), "lightblue1" : (0.75, 0.94, 1.00), "lightblue2" : (0.70, 0.87, 0.93), "lightblue3" : (0.60, 0.75, 0.80), "lightblue4" : (0.41, 0.51, 0.55), "lightcyan1" : (0.88, 1.00, 1.00), "lightcyan2" : (0.82, 0.93, 0.93), "lightcyan3" : (0.71, 0.80, 0.80), "lightcyan4" : (0.48, 0.55, 0.55), "paleturquoise1" : (0.73, 1.00, 1.00), "paleturquoise2" : (0.68, 0.93, 0.93), "paleturquoise3" : (0.59, 0.80, 0.80), "paleturquoise4" : (0.40, 0.55, 0.55), "cadetblue1" : (0.60, 0.96, 1.00), "cadetblue2" : (0.56, 0.90, 0.93), "cadetblue3" : (0.48, 0.77, 0.80), "cadetblue4" : (0.33, 0.53, 0.55), "turquoise1" : (0.00, 0.96, 1.00), "turquoise2" : (0.00, 0.90, 0.93), "turquoise3" : (0.00, 0.77, 0.80), "turquoise4" : (0.00, 0.53, 0.55), "cyan1" : (0.00, 1.00, 1.00), "cyan2" : (0.00, 0.93, 0.93), "cyan3" : (0.00, 0.80, 0.80), "cyan4" : (0.00, 0.55, 0.55), "darkslategray1" : (0.59, 1.00, 1.00), "darkslategray2" : (0.55, 0.93, 0.93), "darkslategray3" : (0.47, 0.80, 0.80), "darkslategray4" : (0.32, 0.55, 0.55), "aquamarine1" : (0.50, 1.00, 0.83), "aquamarine2" : (0.46, 0.93, 0.78), "aquamarine3" : (0.40, 0.80, 0.67), "aquamarine4" : (0.27, 0.55, 0.45), "darkseagreen1" : (0.76, 1.00, 0.76), "darkseagreen2" : (0.71, 0.93, 0.71), "darkseagreen3" : (0.61, 0.80, 0.61), "darkseagreen4" : (0.41, 0.55, 0.41), "seagreen1" : (0.33, 1.00, 0.62), "seagreen2" : (0.31, 0.93, 0.58), "seagreen3" : (0.26, 0.80, 0.50), "seagreen4" : (0.18, 0.55, 0.34), "palegreen1" : (0.60, 1.00, 0.60), "palegreen2" : (0.56, 0.93, 0.56), "palegreen3" : (0.49, 0.80, 0.49), "palegreen4" : (0.33, 0.55, 0.33), "springgreen1" : (0.00, 1.00, 0.50), "springgreen2" : (0.00, 0.93, 0.46), "springgreen3" : (0.00, 0.80, 0.40), "springgreen4" : (0.00, 0.55, 0.27), "green1" : (0.00, 1.00, 0.00), "green2" : (0.00, 0.93, 0.00), "green3" : (0.00, 0.80, 0.00), "green4" : (0.00, 0.55, 0.00), "chartreuse1" : (0.50, 1.00, 0.00), "chartreuse2" : (0.46, 0.93, 0.00), "chartreuse3" : (0.40, 0.80, 0.00), "chartreuse4" : (0.27, 0.55, 0.00), "olivedrab1" : (0.75, 1.00, 0.24), "olivedrab2" : (0.70, 0.93, 0.23), "olivedrab3" : (0.60, 0.80, 0.20), "olivedrab4" : (0.41, 0.55, 0.13), "darkolivegreen1" : (0.79, 1.00, 0.44), "darkolivegreen2" : (0.74, 0.93, 0.41), "darkolivegreen3" : (0.64, 0.80, 0.35), "darkolivegreen4" : (0.43, 0.55, 0.24), "khaki1" : (1.00, 0.96, 0.56), "khaki2" : (0.93, 0.90, 0.52), "khaki3" : (0.80, 0.78, 0.45), "khaki4" : (0.55, 0.53, 0.31), "lightgoldenrod1" : (1.00, 0.93, 0.55), "lightgoldenrod2" : (0.93, 0.86, 0.51), "lightgoldenrod3" : (0.80, 0.75, 0.44), "lightgoldenrod4" : (0.55, 0.51, 0.30), "lightyellow1" : (1.00, 1.00, 0.88), "lightyellow2" : (0.93, 0.93, 0.82), "lightyellow3" : (0.80, 0.80, 0.71), "lightyellow4" : (0.55, 0.55, 0.48), "yellow1" : (1.00, 1.00, 0.00), "yellow2" : (0.93, 0.93, 0.00), "yellow3" : (0.80, 0.80, 0.00), "yellow4" : (0.55, 0.55, 0.00), "gold1" : (1.00, 0.84, 0.00), "gold2" : (0.93, 0.79, 0.00), "gold3" : (0.80, 0.68, 0.00), "gold4" : (0.55, 0.46, 0.00), "goldenrod1" : (1.00, 0.76, 0.15), "goldenrod2" : (0.93, 0.71, 0.13), "goldenrod3" : (0.80, 0.61, 0.11), "goldenrod4" : (0.55, 0.41, 0.08), "darkgoldenrod1" : (1.00, 0.73, 0.06), "darkgoldenrod2" : (0.93, 0.68, 0.05), "darkgoldenrod3" : (0.80, 0.58, 0.05), "darkgoldenrod4" : (0.55, 0.40, 0.03), "rosybrown1" : (1.00, 0.76, 0.76), "rosybrown2" : (0.93, 0.71, 0.71), "rosybrown3" : (0.80, 0.61, 0.61), "rosybrown4" : (0.55, 0.41, 0.41), "indianred1" : (1.00, 0.42, 0.42), "indianred2" : (0.93, 0.39, 0.39), "indianred3" : (0.80, 0.33, 0.33), "indianred4" : (0.55, 0.23, 0.23), "sienna1" : (1.00, 0.51, 0.28), "sienna2" : (0.93, 0.47, 0.26), "sienna3" : (0.80, 0.41, 0.22), "sienna4" : (0.55, 0.28, 0.15), "burlywood1" : (1.00, 0.83, 0.61), "burlywood2" : (0.93, 0.77, 0.57), "burlywood3" : (0.80, 0.67, 0.49), "burlywood4" : (0.55, 0.45, 0.33), "wheat1" : (1.00, 0.91, 0.73), "wheat2" : (0.93, 0.85, 0.68), "wheat3" : (0.80, 0.73, 0.59), "wheat4" : (0.55, 0.49, 0.40), "tan1" : (1.00, 0.65, 0.31), "tan2" : (0.93, 0.60, 0.29), "tan3" : (0.80, 0.52, 0.25), "tan4" : (0.55, 0.35, 0.17), "chocolate1" : (1.00, 0.50, 0.14), "chocolate2" : (0.93, 0.46, 0.13), "chocolate3" : (0.80, 0.40, 0.11), "chocolate4" : (0.55, 0.27, 0.07), "firebrick1" : (1.00, 0.19, 0.19), "firebrick2" : (0.93, 0.17, 0.17), "firebrick3" : (0.80, 0.15, 0.15), "firebrick4" : (0.55, 0.10, 0.10), "brown1" : (1.00, 0.25, 0.25), "brown2" : (0.93, 0.23, 0.23), "brown3" : (0.80, 0.20, 0.20), "brown4" : (0.55, 0.14, 0.14), "salmon1" : (1.00, 0.55, 0.41), "salmon2" : (0.93, 0.51, 0.38), "salmon3" : (0.80, 0.44, 0.33), "salmon4" : (0.55, 0.30, 0.22), "lightsalmon1" : (1.00, 0.63, 0.48), "lightsalmon2" : (0.93, 0.58, 0.45), "lightsalmon3" : (0.80, 0.51, 0.38), "lightsalmon4" : (0.55, 0.34, 0.26), "orange1" : (1.00, 0.65, 0.00), "orange2" : (0.93, 0.60, 0.00), "orange3" : (0.80, 0.52, 0.00), "orange4" : (0.55, 0.35, 0.00), "darkorange1" : (1.00, 0.50, 0.00), "darkorange2" : (0.93, 0.46, 0.00), "darkorange3" : (0.80, 0.40, 0.00), "darkorange4" : (0.55, 0.27, 0.00), "coral1" : (1.00, 0.45, 0.34), "coral2" : (0.93, 0.42, 0.31), "coral3" : (0.80, 0.36, 0.27), "coral4" : (0.55, 0.24, 0.18), "tomato1" : (1.00, 0.39, 0.28), "tomato2" : (0.93, 0.36, 0.26), "tomato3" : (0.80, 0.31, 0.22), "tomato4" : (0.55, 0.21, 0.15), "orangered1" : (1.00, 0.27, 0.00), "orangered2" : (0.93, 0.25, 0.00), "orangered3" : (0.80, 0.22, 0.00), "orangered4" : (0.55, 0.15, 0.00), "red1" : (1.00, 0.00, 0.00), "red2" : (0.93, 0.00, 0.00), "red3" : (0.80, 0.00, 0.00), "red4" : (0.55, 0.00, 0.00), "deeppink1" : (1.00, 0.08, 0.58), "deeppink2" : (0.93, 0.07, 0.54), "deeppink3" : (0.80, 0.06, 0.46), "deeppink4" : (0.55, 0.04, 0.31), "hotpink1" : (1.00, 0.43, 0.71), "hotpink2" : (0.93, 0.42, 0.65), "hotpink3" : (0.80, 0.38, 0.56), "hotpink4" : (0.55, 0.23, 0.38), "pink1" : (1.00, 0.71, 0.77), "pink2" : (0.93, 0.66, 0.72), "pink3" : (0.80, 0.57, 0.62), "pink4" : (0.55, 0.39, 0.42), "lightpink1" : (1.00, 0.68, 0.73), "lightpink2" : (0.93, 0.64, 0.68), "lightpink3" : (0.80, 0.55, 0.58), "lightpink4" : (0.55, 0.37, 0.40), "palevioletred1" : (1.00, 0.51, 0.67), "palevioletred2" : (0.93, 0.47, 0.62), "palevioletred3" : (0.80, 0.41, 0.54), "palevioletred4" : (0.55, 0.28, 0.36), "maroon1" : (1.00, 0.20, 0.70), "maroon2" : (0.93, 0.19, 0.65), "maroon3" : (0.80, 0.16, 0.56), "maroon4" : (0.55, 0.11, 0.38), "violetred1" : (1.00, 0.24, 0.59), "violetred2" : (0.93, 0.23, 0.55), "violetred3" : (0.80, 0.20, 0.47), "violetred4" : (0.55, 0.13, 0.32), "magenta1" : (1.00, 0.00, 1.00), "magenta2" : (0.93, 0.00, 0.93), "magenta3" : (0.80, 0.00, 0.80), "magenta4" : (0.55, 0.00, 0.55), "orchid1" : (1.00, 0.51, 0.98), "orchid2" : (0.93, 0.48, 0.91), "orchid3" : (0.80, 0.41, 0.79), "orchid4" : (0.55, 0.28, 0.54), "plum1" : (1.00, 0.73, 1.00), "plum2" : (0.93, 0.68, 0.93), "plum3" : (0.80, 0.59, 0.80), "plum4" : (0.55, 0.40, 0.55), "mediumorchid1" : (0.88, 0.40, 1.00), "mediumorchid2" : (0.82, 0.37, 0.93), "mediumorchid3" : (0.71, 0.32, 0.80), "mediumorchid4" : (0.48, 0.22, 0.55), "darkorchid1" : (0.75, 0.24, 1.00), "darkorchid2" : (0.70, 0.23, 0.93), "darkorchid3" : (0.60, 0.20, 0.80), "darkorchid4" : (0.41, 0.13, 0.55), "purple1" : (0.61, 0.19, 1.00), "purple2" : (0.57, 0.17, 0.93), "purple3" : (0.49, 0.15, 0.80), "purple4" : (0.33, 0.10, 0.55), "mediumpurple1" : (0.67, 0.51, 1.00), "mediumpurple2" : (0.62, 0.47, 0.93), "mediumpurple3" : (0.54, 0.41, 0.80), "mediumpurple4" : (0.36, 0.28, 0.55), "thistle1" : (1.00, 0.88, 1.00), "thistle2" : (0.93, 0.82, 0.93), "thistle3" : (0.80, 0.71, 0.80), "thistle4" : (0.55, 0.48, 0.55), "gray0" : (0.00, 0.00, 0.00), "grey0" : (0.00, 0.00, 0.00), "gray1" : (0.01, 0.01, 0.01), "grey1" : (0.01, 0.01, 0.01), "gray2" : (0.02, 0.02, 0.02), "grey2" : (0.02, 0.02, 0.02), "gray3" : (0.03, 0.03, 0.03), "grey3" : (0.03, 0.03, 0.03), "gray4" : (0.04, 0.04, 0.04), "grey4" : (0.04, 0.04, 0.04), "gray5" : (0.05, 0.05, 0.05), "grey5" : (0.05, 0.05, 0.05), "gray6" : (0.06, 0.06, 0.06), "grey6" : (0.06, 0.06, 0.06), "gray7" : (0.07, 0.07, 0.07), "grey7" : (0.07, 0.07, 0.07), "gray8" : (0.08, 0.08, 0.08), "grey8" : (0.08, 0.08, 0.08), "gray9" : (0.09, 0.09, 0.09), "grey9" : (0.09, 0.09, 0.09), "gray10" : (0.10, 0.10, 0.10), "grey10" : (0.10, 0.10, 0.10), "gray11" : (0.11, 0.11, 0.11), "grey11" : (0.11, 0.11, 0.11), "gray12" : (0.12, 0.12, 0.12), "grey12" : (0.12, 0.12, 0.12), "gray13" : (0.13, 0.13, 0.13), "grey13" : (0.13, 0.13, 0.13), "gray14" : (0.14, 0.14, 0.14), "grey14" : (0.14, 0.14, 0.14), "gray15" : (0.15, 0.15, 0.15), "grey15" : (0.15, 0.15, 0.15), "gray16" : (0.16, 0.16, 0.16), "grey16" : (0.16, 0.16, 0.16), "gray17" : (0.17, 0.17, 0.17), "grey17" : (0.17, 0.17, 0.17), "gray18" : (0.18, 0.18, 0.18), "grey18" : (0.18, 0.18, 0.18), "gray19" : (0.19, 0.19, 0.19), "grey19" : (0.19, 0.19, 0.19), "gray20" : (0.20, 0.20, 0.20), "grey20" : (0.20, 0.20, 0.20), "gray21" : (0.21, 0.21, 0.21), "grey21" : (0.21, 0.21, 0.21), "gray22" : (0.22, 0.22, 0.22), "grey22" : (0.22, 0.22, 0.22), "gray23" : (0.23, 0.23, 0.23), "grey23" : (0.23, 0.23, 0.23), "gray24" : (0.24, 0.24, 0.24), "grey24" : (0.24, 0.24, 0.24), "gray25" : (0.25, 0.25, 0.25), "grey25" : (0.25, 0.25, 0.25), "gray26" : (0.26, 0.26, 0.26), "grey26" : (0.26, 0.26, 0.26), "gray27" : (0.27, 0.27, 0.27), "grey27" : (0.27, 0.27, 0.27), "gray28" : (0.28, 0.28, 0.28), "grey28" : (0.28, 0.28, 0.28), "gray29" : (0.29, 0.29, 0.29), "grey29" : (0.29, 0.29, 0.29), "gray30" : (0.30, 0.30, 0.30), "grey30" : (0.30, 0.30, 0.30), "gray31" : (0.31, 0.31, 0.31), "grey31" : (0.31, 0.31, 0.31), "gray32" : (0.32, 0.32, 0.32), "grey32" : (0.32, 0.32, 0.32), "gray33" : (0.33, 0.33, 0.33), "grey33" : (0.33, 0.33, 0.33), "gray34" : (0.34, 0.34, 0.34), "grey34" : (0.34, 0.34, 0.34), "gray35" : (0.35, 0.35, 0.35), "grey35" : (0.35, 0.35, 0.35), "gray36" : (0.36, 0.36, 0.36), "grey36" : (0.36, 0.36, 0.36), "gray37" : (0.37, 0.37, 0.37), "grey37" : (0.37, 0.37, 0.37), "gray38" : (0.38, 0.38, 0.38), "grey38" : (0.38, 0.38, 0.38), "gray39" : (0.39, 0.39, 0.39), "grey39" : (0.39, 0.39, 0.39), "gray40" : (0.40, 0.40, 0.40), "grey40" : (0.40, 0.40, 0.40), "gray41" : (0.41, 0.41, 0.41), "grey41" : (0.41, 0.41, 0.41), "gray42" : (0.42, 0.42, 0.42), "grey42" : (0.42, 0.42, 0.42), "gray43" : (0.43, 0.43, 0.43), "grey43" : (0.43, 0.43, 0.43), "gray44" : (0.44, 0.44, 0.44), "grey44" : (0.44, 0.44, 0.44), "gray45" : (0.45, 0.45, 0.45), "grey45" : (0.45, 0.45, 0.45), "gray46" : (0.46, 0.46, 0.46), "grey46" : (0.46, 0.46, 0.46), "gray47" : (0.47, 0.47, 0.47), "grey47" : (0.47, 0.47, 0.47), "gray48" : (0.48, 0.48, 0.48), "grey48" : (0.48, 0.48, 0.48), "gray49" : (0.49, 0.49, 0.49), "grey49" : (0.49, 0.49, 0.49), "gray50" : (0.50, 0.50, 0.50), "grey50" : (0.50, 0.50, 0.50), "gray51" : (0.51, 0.51, 0.51), "grey51" : (0.51, 0.51, 0.51), "gray52" : (0.52, 0.52, 0.52), "grey52" : (0.52, 0.52, 0.52), "gray53" : (0.53, 0.53, 0.53), "grey53" : (0.53, 0.53, 0.53), "gray54" : (0.54, 0.54, 0.54), "grey54" : (0.54, 0.54, 0.54), "gray55" : (0.55, 0.55, 0.55), "grey55" : (0.55, 0.55, 0.55), "gray56" : (0.56, 0.56, 0.56), "grey56" : (0.56, 0.56, 0.56), "gray57" : (0.57, 0.57, 0.57), "grey57" : (0.57, 0.57, 0.57), "gray58" : (0.58, 0.58, 0.58), "grey58" : (0.58, 0.58, 0.58), "gray59" : (0.59, 0.59, 0.59), "grey59" : (0.59, 0.59, 0.59), "gray60" : (0.60, 0.60, 0.60), "grey60" : (0.60, 0.60, 0.60), "gray61" : (0.61, 0.61, 0.61), "grey61" : (0.61, 0.61, 0.61), "gray62" : (0.62, 0.62, 0.62), "grey62" : (0.62, 0.62, 0.62), "gray63" : (0.63, 0.63, 0.63), "grey63" : (0.63, 0.63, 0.63), "gray64" : (0.64, 0.64, 0.64), "grey64" : (0.64, 0.64, 0.64), "gray65" : (0.65, 0.65, 0.65), "grey65" : (0.65, 0.65, 0.65), "gray66" : (0.66, 0.66, 0.66), "grey66" : (0.66, 0.66, 0.66), "gray67" : (0.67, 0.67, 0.67), "grey67" : (0.67, 0.67, 0.67), "gray68" : (0.68, 0.68, 0.68), "grey68" : (0.68, 0.68, 0.68), "gray69" : (0.69, 0.69, 0.69), "grey69" : (0.69, 0.69, 0.69), "gray70" : (0.70, 0.70, 0.70), "grey70" : (0.70, 0.70, 0.70), "gray71" : (0.71, 0.71, 0.71), "grey71" : (0.71, 0.71, 0.71), "gray72" : (0.72, 0.72, 0.72), "grey72" : (0.72, 0.72, 0.72), "gray73" : (0.73, 0.73, 0.73), "grey73" : (0.73, 0.73, 0.73), "gray74" : (0.74, 0.74, 0.74), "grey74" : (0.74, 0.74, 0.74), "gray75" : (0.75, 0.75, 0.75), "grey75" : (0.75, 0.75, 0.75), "gray76" : (0.76, 0.76, 0.76), "grey76" : (0.76, 0.76, 0.76), "gray77" : (0.77, 0.77, 0.77), "grey77" : (0.77, 0.77, 0.77), "gray78" : (0.78, 0.78, 0.78), "grey78" : (0.78, 0.78, 0.78), "gray79" : (0.79, 0.79, 0.79), "grey79" : (0.79, 0.79, 0.79), "gray80" : (0.80, 0.80, 0.80), "grey80" : (0.80, 0.80, 0.80), "gray81" : (0.81, 0.81, 0.81), "grey81" : (0.81, 0.81, 0.81), "gray82" : (0.82, 0.82, 0.82), "grey82" : (0.82, 0.82, 0.82), "gray83" : (0.83, 0.83, 0.83), "grey83" : (0.83, 0.83, 0.83), "gray84" : (0.84, 0.84, 0.84), "grey84" : (0.84, 0.84, 0.84), "gray85" : (0.85, 0.85, 0.85), "grey85" : (0.85, 0.85, 0.85), "gray86" : (0.86, 0.86, 0.86), "grey86" : (0.86, 0.86, 0.86), "gray87" : (0.87, 0.87, 0.87), "grey87" : (0.87, 0.87, 0.87), "gray88" : (0.88, 0.88, 0.88), "grey88" : (0.88, 0.88, 0.88), "gray89" : (0.89, 0.89, 0.89), "grey89" : (0.89, 0.89, 0.89), "gray90" : (0.90, 0.90, 0.90), "grey90" : (0.90, 0.90, 0.90), "gray91" : (0.91, 0.91, 0.91), "grey91" : (0.91, 0.91, 0.91), "gray92" : (0.92, 0.92, 0.92), "grey92" : (0.92, 0.92, 0.92), "gray93" : (0.93, 0.93, 0.93), "grey93" : (0.93, 0.93, 0.93), "gray94" : (0.94, 0.94, 0.94), "grey94" : (0.94, 0.94, 0.94), "gray95" : (0.95, 0.95, 0.95), "grey95" : (0.95, 0.95, 0.95), "gray96" : (0.96, 0.96, 0.96), "grey96" : (0.96, 0.96, 0.96), "gray97" : (0.97, 0.97, 0.97), "grey97" : (0.97, 0.97, 0.97), "gray98" : (0.98, 0.98, 0.98), "grey98" : (0.98, 0.98, 0.98), "gray99" : (0.99, 0.99, 0.99), "grey99" : (0.99, 0.99, 0.99), "gray100" : (1.00, 1.00, 1.00), "grey100" : (1.00, 1.00, 1.00), "dark" : (0.66, 0.66, 0.66), "grey" : (0.66, 0.66, 0.66), "darkgrey" : (0.66, 0.66, 0.66), "dark" : (0.66, 0.66, 0.66), "gray" : (0.66, 0.66, 0.66), "darkgray" : (0.66, 0.66, 0.66), "dark" : (0.00, 0.00, 0.55), "blue" : (0.00, 0.00, 0.55), "darkblue" : (0.00, 0.00, 0.55), "dark" : (0.00, 0.55, 0.55), "cyan" : (0.00, 0.55, 0.55), "darkcyan" : (0.00, 0.55, 0.55), "dark" : (0.55, 0.00, 0.55), "magenta" : (0.55, 0.00, 0.55), "darkmagenta" : (0.55, 0.00, 0.55), "dark" : (0.55, 0.00, 0.00), "red" : (0.55, 0.00, 0.00), "darkred" : (0.55, 0.00, 0.00), "light" : (0.56, 0.93, 0.56), "green" : (0.56, 0.93, 0.56), "lightgreen" : (0.56, 0.93, 0.56), }
mit
microsoft/vscode
build/lib/eslint/code-no-unexternalized-strings.ts
4641
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import * as eslint from 'eslint'; import { TSESTree, AST_NODE_TYPES } from '@typescript-eslint/experimental-utils'; function isStringLiteral(node: TSESTree.Node | null | undefined): node is TSESTree.StringLiteral { return !!node && node.type === AST_NODE_TYPES.Literal && typeof node.value === 'string'; } function isDoubleQuoted(node: TSESTree.StringLiteral): boolean { return node.raw[0] === '"' && node.raw[node.raw.length - 1] === '"'; } export = new class NoUnexternalizedStrings implements eslint.Rule.RuleModule { private static _rNlsKeys = /^[_a-zA-Z0-9][ .\-_a-zA-Z0-9]*$/; readonly meta: eslint.Rule.RuleMetaData = { messages: { doubleQuoted: 'Only use double-quoted strings for externalized strings.', badKey: 'The key \'{{key}}\' doesn\'t conform to a valid localize identifier.', duplicateKey: 'Duplicate key \'{{key}}\' with different message value.', badMessage: 'Message argument to \'{{message}}\' must be a string literal.' } }; create(context: eslint.Rule.RuleContext): eslint.Rule.RuleListener { const externalizedStringLiterals = new Map<string, { call: TSESTree.CallExpression; message: TSESTree.Node }[]>(); const doubleQuotedStringLiterals = new Set<TSESTree.Node>(); function collectDoubleQuotedStrings(node: TSESTree.Literal) { if (isStringLiteral(node) && isDoubleQuoted(node)) { doubleQuotedStringLiterals.add(node); } } function visitLocalizeCall(node: TSESTree.CallExpression) { // localize(key, message) const [keyNode, messageNode] = (<TSESTree.CallExpression>node).arguments; // (1) // extract key so that it can be checked later let key: string | undefined; if (isStringLiteral(keyNode)) { doubleQuotedStringLiterals.delete(keyNode); key = keyNode.value; } else if (keyNode.type === AST_NODE_TYPES.ObjectExpression) { for (let property of keyNode.properties) { if (property.type === AST_NODE_TYPES.Property && !property.computed) { if (property.key.type === AST_NODE_TYPES.Identifier && property.key.name === 'key') { if (isStringLiteral(property.value)) { doubleQuotedStringLiterals.delete(property.value); key = property.value.value; break; } } } } } if (typeof key === 'string') { let array = externalizedStringLiterals.get(key); if (!array) { array = []; externalizedStringLiterals.set(key, array); } array.push({ call: node, message: messageNode }); } // (2) // remove message-argument from doubleQuoted list and make // sure it is a string-literal doubleQuotedStringLiterals.delete(messageNode); if (!isStringLiteral(messageNode)) { context.report({ loc: messageNode.loc, messageId: 'badMessage', data: { message: context.getSourceCode().getText(<any>node) } }); } } function reportBadStringsAndBadKeys() { // (1) // report all strings that are in double quotes for (const node of doubleQuotedStringLiterals) { context.report({ loc: node.loc, messageId: 'doubleQuoted' }); } for (const [key, values] of externalizedStringLiterals) { // (2) // report all invalid NLS keys if (!key.match(NoUnexternalizedStrings._rNlsKeys)) { for (let value of values) { context.report({ loc: value.call.loc, messageId: 'badKey', data: { key } }); } } // (2) // report all invalid duplicates (same key, different message) if (values.length > 1) { for (let i = 1; i < values.length; i++) { if (context.getSourceCode().getText(<any>values[i - 1].message) !== context.getSourceCode().getText(<any>values[i].message)) { context.report({ loc: values[i].call.loc, messageId: 'duplicateKey', data: { key } }); } } } } } return { ['Literal']: (node: any) => collectDoubleQuotedStrings(node), ['ExpressionStatement[directive] Literal:exit']: (node: any) => doubleQuotedStringLiterals.delete(node), ['CallExpression[callee.type="MemberExpression"][callee.object.name="nls"][callee.property.name="localize"]:exit']: (node: any) => visitLocalizeCall(node), ['CallExpression[callee.name="localize"][arguments.length>=2]:exit']: (node: any) => visitLocalizeCall(node), ['Program:exit']: reportBadStringsAndBadKeys, }; } };
mit
mikeobrien/graphite
src/Tests/Common/Extensions.cs
8327
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Reflection; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Web.Http; using Graphite.Extensibility; using Graphite.Extensions; using Graphite.Http; using Graphite.Linq; using Tests.Common.Fakes; namespace Tests.Common { public class List<TKey, TValue> : List<KeyValuePair<TKey, TValue>> { public ILookup<TKey, TValue> ToLookup() { return this.ToLookup(x => x.Key, x => x.Value); } } public static class Extensions { public static DateTime SubtractUtcOffset(this DateTime date) { return date.AddHours(TimeZone.CurrentTimeZone.GetUtcOffset(date).Hours); } public static bool IsType<T>(this Type type) { return type == typeof(T); } public static void Add<TKey, TValue>( this List<KeyValuePair<TKey, TValue>> source, TKey key, TValue value) { source.Add(new KeyValuePair<TKey, TValue>(key, value)); } public static string ReadAllText(this Stream stream) { using (stream) using (var reader = new StreamReader(stream)) { return reader.ReadToEnd(); } } public static void Clear(this HttpConfiguration configuration) { configuration.Routes.Clear(); configuration.DependencyResolver = new EmptyResolver(); } public static TimeSpan Elapsed(this Action action) { var stopwatch = new Stopwatch(); stopwatch.Start(); action(); stopwatch.Stop(); return stopwatch.Elapsed; } public static long TicksSinceEpoch(this DateTime datetime) { return (datetime.Ticks - 621355968000000000 - TimeZone.CurrentTimeZone.GetUtcOffset(datetime).Ticks) / 10000; } public static void Times(this int iterations, Action action) { for (var i = 0; i < iterations; i++) { action(); } } public static void TimesParallel(this int iterations, Action action) { 1.To(iterations).AsParallel().ForEach(x => action()); } public static T Second<T>(this IEnumerable<T> source) { return source.Skip(1).FirstOrDefault(); } public static T Third<T>(this IEnumerable<T> source) { return source.Skip(2).FirstOrDefault(); } public static T Fourth<T>(this IEnumerable<T> source) { return source.Skip(3).FirstOrDefault(); } public static T Fifth<T>(this IEnumerable<T> source) { return source.Skip(4).FirstOrDefault(); } public static Task<HttpResponseMessage> SendAsync(this HttpMessageHandler handler, HttpRequestMessage request, CancellationToken cancellationToken) { return (Task<HttpResponseMessage>) handler.GetType() .GetMethod("SendAsync", BindingFlags.Instance | BindingFlags.NonPublic).Invoke(handler, new object[] { request, cancellationToken }); } public static T WaitForResult2<T>(this Task<T> task) { task.Wait(); return task.Result; } public static IEnumerable<T> Generate<T>(this T seed, Func<T, T> generator) { var item = seed; while (true) { yield return item; var nextItem = generator(item); if (nextItem == null) yield break; item = nextItem; } } public static IEnumerable<Exception> GetChain(this Exception exception) { return exception.Generate(x => x.InnerException); } public static void AddRange<T>(this List<T> source, params T[] items) { source.AddRange(items); } public static ConditionalPluginsDsl<TPlugin, TContext> Append<TPlugin, TContext>(this ConditionalPluginsDsl<TPlugin, TContext> definitions, Type type, Func<TContext, bool> predicate = null, bool @default = false) { Type<ConditionalPluginsDsl<TPlugin, TContext>> .Method(x => x.Append<TPlugin>(y => false, false))? .GetGenericMethodDefinition().MakeGenericMethod(type) .Invoke(definitions, new object[] { predicate, @default }); return definitions; } public static void WriteAllText(this Stream stream, string text) { var writer = new StreamWriter(stream); writer.Write(text); writer.Flush(); } public static ILookup<string, string> GetHeaderValues(this string value) { return value.Split(';') .Select(x => x.Split('=')) .ToLookup(x => x[0].Trim(), x => x.Length > 1 ? x[1].Trim(' ', '"') : ""); } public static HttpResponseMessage CreateTextResponse(this string content) { return content.CreateResponseTask("text/plain"); } public static HttpResponseMessage CreateHtmlResponse(this string content) { return content.CreateResponseTask("text/html"); } public static HttpResponseMessage CreateJsonResponse(this string content) { return content.CreateResponseTask("application/json"); } public static HttpResponseMessage CreateResponseTask( this string content, string contentType) { return new HttpResponseMessage { Content = new StringContent(content, Encoding.UTF8, contentType) }; } public static bool IsRedirect(this HttpStatusCode status) { return status == HttpStatusCode.MultipleChoices || status == HttpStatusCode.MovedPermanently || status == HttpStatusCode.Found || status == HttpStatusCode.SeeOther || status == HttpStatusCode.TemporaryRedirect; } public static TValue TryGet<TKey, TValue>(this IDictionary<TKey, TValue> source, TKey key) { return source.ContainsKey(key) ? source[key] : default(TValue); } public static MultipartFormDataContent AddTextFormData(this MultipartFormDataContent form, string name, string value, string filename = null, string contentType = null) { return form.AddFormData(name, new StringContent(value), filename, contentType); } public static MultipartFormDataContent AddStreamFormData(this MultipartFormDataContent form, string name, Stream stream, string filename = null, string contentType = null) { return form.AddFormData(name, new StreamContent(stream, 1.MB()), filename, contentType, stream.Length); } public static MultipartFormDataContent AddFormData(this MultipartFormDataContent form, string name, HttpContent content, string filename = null, string contentType = null, long? contentLength = null) { if (contentType != null) content.Headers.ContentType = new MediaTypeHeaderValue(contentType); var disposition = content.Headers.ContentDisposition = new ContentDispositionHeaderValue("form-data") { Name = name }; if (filename.IsNotNullOrEmpty()) disposition.FileName = filename; content.Headers.ContentLength = contentLength; form.Add(content); return form; } } }
mit
brunetto/evolve
evolve_test.go
1411
package evolve import ( "testing" ) func Test_ParticleReadFromLine(t *testing.T){ var ( p = &Particle{} check = &Particle{ Mass: 1.000000e+01, Pos: [3]float64{2.000000e+02, 3.000000e+03, 4.000000e+04}, Vel: [3]float64{5.000000e+05, 6.000000e+06, 7.000000e+07}, } ) err := p.ReadFromLine("1.000000e+01,2.000000e+02,3.000000e+03,4.000000e+04,5.000000e+05,6.000000e+06,7.000000e+07") if err != nil { t.Error("Error reading from line.") } if *p != *check { t.Errorf("Found difference between: \n%v and \n%v\n", p.Format(), check.Format()) } } func Test_SystemLoadFromFile(t *testing.T){ var ( err error system = &System{} check = &System{ Particles: []*Particle{ &Particle{ Mass: 1.000000e+01, Pos: [3]float64{2.000000e+02, 3.000000e+03, 4.000000e+04}, Vel: [3]float64{5.000000e+05, 6.000000e+06, 7.000000e+07}, }, &Particle{ Mass: 1.000000e+01, Pos: [3]float64{2.000000e+02, -3.000000e+03, 4.000000e+04}, Vel: [3]float64{5.000000e+05, 6.000000e+06, 7.000000e+07}, }, }, } ) if err = system.LoadFromFile("test-data.test"); err != nil { t.Error("Error loading bodies: ", err) } for idx,p := range system.Particles { if *p != *(check.Particles[idx]) { t.Errorf("At idx %v found difference between: \n%+v and \n%+v\n", idx, p.Format(), check.Particles[idx].Format()) } } }
mit
HPSoftware/hpaa-octane-dev
src/test/java/com/microfocus/application/automation/tools/sse/sdk/TestTestSetRunHandler.java
3421
/* * Certain versions of software and/or documents ("Material") accessible here may contain branding from * Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, * the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP * and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE * marks are the property of their respective owners. * __________________________________________________________________ * MIT License * * (c) Copyright 2012-2019 Micro Focus or one of its affiliates. * * The only warranties for products and services of Micro Focus and its affiliates * and licensors ("Micro Focus") are set forth in the express warranty statements * accompanying such products and services. Nothing herein should be construed as * constituting an additional warranty. Micro Focus shall not be liable for technical * or editorial errors or omissions contained herein. * The information contained herein is subject to change without notice. * ___________________________________________________________________ */ package com.microfocus.application.automation.tools.sse.sdk; import java.net.HttpURLConnection; import java.util.Map; import com.microfocus.application.automation.tools.sse.common.TestCase; import com.microfocus.application.automation.tools.sse.sdk.handler.RunHandlerFactory; import com.microfocus.application.automation.tools.sse.sdk.handler.TestSetRunHandler; import org.junit.Assert; import org.junit.Test; import com.microfocus.application.automation.tools.sse.common.RestClient4Test; /** * @author Effi Bar-She'an */ @SuppressWarnings("squid:S2699") public class TestTestSetRunHandler extends TestCase { @Test public void testStart() { Client client = new MockRestStartClient(URL, DOMAIN, PROJECT, USER); Response response = new RunHandlerFactory().create(client, "TEST_SET", ENTITY_ID).start( DURATION, POST_RUN_ACTION, ENVIRONMENT_CONFIGURATION_ID, null); Assert.assertTrue(response.isOk()); } private class MockRestStartClient extends RestClient4Test { public MockRestStartClient(String url, String domain, String project, String username) { super(url, domain, project, username); } @Override public Response httpPost(String url, byte[] data, Map<String, String> headers, ResourceAccessLevel resourceAccessLevel) { return new Response(null, null, null, HttpURLConnection.HTTP_OK); } } @Test public void testStop() { Client client = new MockRestStopClient(URL, DOMAIN, PROJECT, USER); Response response = new TestSetRunHandler(client, "23").stop(); Assert.assertTrue(response.isOk()); } private class MockRestStopClient extends RestClient4Test { public MockRestStopClient(String url, String domain, String project, String username) { super(url, domain, project, username); } @Override public Response httpPost(String url, byte[] data, Map<String, String> headers, ResourceAccessLevel resourceAccessLevel) { return new Response(null, null, null, HttpURLConnection.HTTP_OK); } } }
mit
avalanche-development/approach
tests/unit/src/Schema/HeaderTest.php
9677
<?php namespace AvalancheDevelopment\Approach\Schema; use AvalancheDevelopment\Approach\TestHelper\SetPropertyTrait; use PHPUnit_Framework_TestCase; class HeaderTest extends PHPUnit_Framework_TestCase { use SetPropertyTrait; public function testGetDescriptionReturnsDescription() { $description = 'A description of the header'; $header = new Header; $this->setProperty($header, 'description', $description); $result = $header->getDescription(); $this->assertEquals($description, $result); } public function testSetDescriptionSetsDescription() { $description = 'A description of the header'; $header = new Header; $header->setDescription($description); $this->assertAttributeEquals($description, 'description', $header); } public function testGetTypeReturnsType() { $type = 'string'; $header = new Header; $this->setProperty($header, 'type', $type); $result = $header->getType(); $this->assertEquals($type, $result); } public function testSetTypeSetsType() { $type = 'string'; $header = new Header; $header->setType($type); $this->assertAttributeEquals($type, 'type', $header); } public function testGetFormatReturnsFormat() { $format = 'date'; $header = new Header; $this->setProperty($header, 'format', $format); $result = $header->getFormat(); $this->assertEquals($format, $result); } public function testSetFormatSetsFormat() { $format = 'date'; $header = new Header; $header->setFormat($format); $this->assertAttributeEquals($format, 'format', $header); } public function testGetItemsReturnsItems() { $items = new Items; $header = new Header; $this->setProperty($header, 'items', $items); $result = $header->getItems(); $this->assertSame($items, $result); } public function testSetItemsSetsItems() { $items = new Items; $header = new Header; $header->setItems($items); $this->assertAttributeSame($items, 'items', $header); } public function testGetCollectionFormatReturnsCollectionFormat() { $collectionFormat = 'csv'; $header = new Header; $this->setProperty($header, 'collectionFormat', $collectionFormat); $result = $header->getCollectionFormat(); $this->assertEquals($collectionFormat, $result); } public function testSetCollectionFormatSetsCollectionFormat() { $collectionFormat = 'csv'; $header = new Header; $header->setCollectionFormat($collectionFormat); $this->assertAttributeEquals($collectionFormat, 'collectionFormat', $header); } public function testGetDefaultReturnsDefault() { $default = 'default'; $header = new Header; $this->setProperty($header, 'default', $default); $result = $header->getDefault(); $this->assertEquals($default, $result); } public function testSetDefaultSetsDefault() { $default = 'default'; $header = new Header; $header->setDefault($default); $this->assertAttributeEquals($default, 'default', $header); } public function testGetMaximumReturnsMaximum() { $maximum = 30; $header = new Header; $this->setProperty($header, 'maximum', $maximum); $result = $header->getMaximum(); $this->assertEquals($maximum, $result); } public function testSetMaximumSetsMaximum() { $maximum = 30; $header = new Header; $header->setMaximum($maximum); $this->assertAttributeEquals($maximum, 'maximum', $header); } public function testGetExclusiveMaximumReturnsExclusiveMaximum() { $exclusiveMaximum = true; $header = new Header; $this->setProperty($header, 'exclusiveMaximum', $exclusiveMaximum); $result = $header->getExclusiveMaximum(); $this->assertEquals($exclusiveMaximum, $result); } public function testSetExclusiveMaximumSetsExclusiveMaximum() { $exclusiveMaximum = true; $header = new Header; $header->setExclusiveMaximum($exclusiveMaximum); $this->assertAttributeEquals($exclusiveMaximum, 'exclusiveMaximum', $header); } public function testGetMinimumReturnsMinimum() { $minimum = 3; $header = new Header; $this->setProperty($header, 'minimum', $minimum); $result = $header->getMinimum(); $this->assertEquals($minimum, $result); } public function testSetMinimumSetsMinimum() { $minimum = 3; $header = new Header; $header->setMinimum($minimum); $this->assertAttributeEquals($minimum, 'minimum', $header); } public function testGetExclusiveMinimumReturnsExclusiveMinimum() { $exclusiveMinimum = false; $header = new Header; $this->setProperty($header, 'exclusiveMinimum', $exclusiveMinimum); $result = $header->getExclusiveMinimum(); $this->assertEquals($exclusiveMinimum, $result); } public function testSetExclusiveMinimumSetsExclusiveMinimum() { $exclusiveMinimum = false; $header = new Header; $header->setExclusiveMinimum($exclusiveMinimum); $this->assertAttributeEquals($exclusiveMinimum, 'exclusiveMinimum', $header); } public function testGetMaxLengthReturnsMaxLength() { $maxLength = 10; $header = new Header; $this->setProperty($header, 'maxLength', $maxLength); $result = $header->getMaxLength(); $this->assertEquals($maxLength, $result); } public function testSetMaxLengthSetsMaxLength() { $maxLength = 10; $header = new Header; $header->setMaxLength($maxLength); $this->assertAttributeEquals($maxLength, 'maxLength', $header); } public function testGetMinLengthReturnsMinLength() { $minLength = 2; $header = new Header; $this->setProperty($header, 'minLength', $minLength); $result = $header->getMinLength(); $this->assertEquals($minLength, $result); } public function testSetMinLengthSetsMinLength() { $minLength = 2; $header = new Header; $header->setMinLength($minLength); $this->assertAttributeEquals($minLength, 'minLength', $header); } public function testGetPatternReturnsPattern() { $pattern = 'some-pattern'; $header = new Header; $this->setProperty($header, 'pattern', $pattern); $result = $header->getPattern(); $this->assertEquals($pattern, $result); } public function testSetPatternSetsPattern() { $pattern = 'some-pattern'; $header = new Header; $header->setPattern($pattern); $this->assertAttributeEquals($pattern, 'pattern', $header); } public function testGetMaxItemsReturnsMaxItems() { $maxItems = 2; $header = new Header; $this->setProperty($header, 'maxItems', $maxItems); $result = $header->getMaxItems(); $this->assertEquals($maxItems, $result); } public function testSetMaxItemsSetsMaxItems() { $maxItems = 2; $header = new Header; $header->setMaxItems($maxItems); $this->assertAttributeEquals($maxItems, 'maxItems', $header); } public function testGetMinItemsReturnsMinItems() { $minItems = 1; $header = new Header; $this->setProperty($header, 'minItems', $minItems); $result = $header->getMinItems(); $this->assertEquals($minItems, $result); } public function testSetMinItemsSetsMinItems() { $minItems = 1; $header = new Header; $header->setMinItems($minItems); $this->assertAttributeEquals($minItems, 'minItems', $header); } public function testGetUniqueItemsReturnsUniqueItems() { $uniqueItems = true; $header = new Header; $this->setProperty($header, 'uniqueItems', $uniqueItems); $result = $header->getUniqueItems(); $this->assertEquals($uniqueItems, $result); } public function testSetUniqueItemsSetsUniqueItems() { $uniqueItems = true; $header = new Header; $header->setUniqueItems($uniqueItems); $this->assertAttributeEquals($uniqueItems, 'uniqueItems', $header); } public function testGetEnumReturnsEnum() { $enum = [ 'value' ]; $header = new Header; $this->setProperty($header, 'enum', $enum); $result = $header->getEnum(); $this->assertEquals($enum, $result); } public function testSetEnumSetsEnum() { $enum = [ 'value' ]; $header = new Header; $header->setEnum($enum); $this->assertAttributeEquals($enum, 'enum', $header); } public function testGetMultipleOfReturnsMultipleOf() { $multipleOf = 2; $header = new Header; $this->setProperty($header, 'multipleOf', $multipleOf); $result = $header->getMultipleOf(); $this->assertEquals($multipleOf, $result); } public function testSetMultipleOfSetsMultipleOf() { $multipleOf = 2; $header = new Header; $header->setMultipleOf($multipleOf); $this->assertAttributeEquals($multipleOf, 'multipleOf', $header); } }
mit
Tekkeitsertok/openpost
openpost/Models/Author.cs
913
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace openpost.Models { public class Author { [Key] [MaxLength(22)] public string Id { get; set; } [MaxLength(22)] public string TokenId { get; set; } public string PlatformId { get; set; } [EmailAddress] public string Email { get; set; } public string DisplayName { get; set; } public string AvatarUrl { get; set; } //fields below are for anonymous authors. public bool IsAnonymous { get; set; } public string WebSite { get; set; } [MaxLength(22)] public string SourcePlatformId { get; set; } public virtual Platform SourcePlatform { get; set; } public ICollection<Comment> UserComments { get; set; } [Timestamp] public byte[] RowVersion { get; set; } } }
mit
ybakos/boom
lib/boom/item.rb
1805
# coding: utf-8 # The representation of the base unit in boom. An Item contains just a name and # a value. It doesn't know its parent relationship explicitly; the parent List # object instead knows which Items it contains. # module Boom class Item # Public: the String name of the Item attr_accessor :name # Public: the String value of the Item attr_accessor :value # Public: creates a new Item object. # # name - the String name of the Item # value - the String value of the Item # # Examples # # Item.new("github", "https://github.com") # # Returns the newly initialized Item. def initialize(name,value) @name = name @value = value end # Public: the shortened String name of the Item. Truncates with ellipses if # larger. # # Examples # # item = Item.new("github's home page","https://github.com") # item.short_name # # => 'github's home p…' # # item = Item.new("github","https://github.com") # item.short_name # # => 'github' # # Returns the shortened name. def short_name name.length > 15 ? "#{name[0..14]}…" : name[0..14] end # Public: the amount of consistent spaces to pad based on Item#short_name. # # Returns a String of spaces. def spacer name.length > 15 ? '' : ' '*(15-name.length+1) end # Public: only return url part of value - if no url has been # detected returns value. # # Returns a String which preferably is a URL. def url @url ||= value.split(/\s+/).detect { |v| v =~ %r{\A[a-z0-9]+:\S+}i } || value end # Public: creates a Hash for this Item. # # Returns a Hash of its data. def to_hash { @name => @value } end end end
mit
nelsonwellswku/Yahtzee
Application/Framework/DiceCombinationValidators/IFullHouseValidator.cs
206
using System.Collections.Generic; namespace Octogami.Yahtzee.Application.Framework.DiceCombinationValidators { public interface IFullHouseValidator { bool IsValid(IEnumerable<IDie> diceValues); } }
mit
thushanp/thushanp.github.io
vendor/twilio/sdk/Twilio/Rest/Api/V2010/AccountContext.php
18155
<?php /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ namespace Twilio\Rest\Api\V2010; use Twilio\Exceptions\TwilioException; use Twilio\InstanceContext; use Twilio\Options; use Twilio\Rest\Api\V2010\Account\AddressList; use Twilio\Rest\Api\V2010\Account\ApplicationList; use Twilio\Rest\Api\V2010\Account\AuthorizedConnectAppList; use Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountryList; use Twilio\Rest\Api\V2010\Account\CallList; use Twilio\Rest\Api\V2010\Account\ConferenceList; use Twilio\Rest\Api\V2010\Account\ConnectAppList; use Twilio\Rest\Api\V2010\Account\IncomingPhoneNumberList; use Twilio\Rest\Api\V2010\Account\KeyList; use Twilio\Rest\Api\V2010\Account\MessageList; use Twilio\Rest\Api\V2010\Account\NewKeyList; use Twilio\Rest\Api\V2010\Account\NewSigningKeyList; use Twilio\Rest\Api\V2010\Account\NotificationList; use Twilio\Rest\Api\V2010\Account\OutgoingCallerIdList; use Twilio\Rest\Api\V2010\Account\QueueList; use Twilio\Rest\Api\V2010\Account\RecordingList; use Twilio\Rest\Api\V2010\Account\ShortCodeList; use Twilio\Rest\Api\V2010\Account\SigningKeyList; use Twilio\Rest\Api\V2010\Account\SipList; use Twilio\Rest\Api\V2010\Account\TokenList; use Twilio\Rest\Api\V2010\Account\TranscriptionList; use Twilio\Rest\Api\V2010\Account\UsageList; use Twilio\Rest\Api\V2010\Account\ValidationRequestList; use Twilio\Values; use Twilio\Version; /** * @property \Twilio\Rest\Api\V2010\Account\AddressList addresses * @property \Twilio\Rest\Api\V2010\Account\ApplicationList applications * @property \Twilio\Rest\Api\V2010\Account\AuthorizedConnectAppList authorizedConnectApps * @property \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountryList availablePhoneNumbers * @property \Twilio\Rest\Api\V2010\Account\CallList calls * @property \Twilio\Rest\Api\V2010\Account\ConferenceList conferences * @property \Twilio\Rest\Api\V2010\Account\ConnectAppList connectApps * @property \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumberList incomingPhoneNumbers * @property \Twilio\Rest\Api\V2010\Account\KeyList keys * @property \Twilio\Rest\Api\V2010\Account\MessageList messages * @property \Twilio\Rest\Api\V2010\Account\NewKeyList newKeys * @property \Twilio\Rest\Api\V2010\Account\NewSigningKeyList newSigningKeys * @property \Twilio\Rest\Api\V2010\Account\NotificationList notifications * @property \Twilio\Rest\Api\V2010\Account\OutgoingCallerIdList outgoingCallerIds * @property \Twilio\Rest\Api\V2010\Account\QueueList queues * @property \Twilio\Rest\Api\V2010\Account\RecordingList recordings * @property \Twilio\Rest\Api\V2010\Account\SigningKeyList signingKeys * @property \Twilio\Rest\Api\V2010\Account\SipList sip * @property \Twilio\Rest\Api\V2010\Account\ShortCodeList shortCodes * @property \Twilio\Rest\Api\V2010\Account\TokenList tokens * @property \Twilio\Rest\Api\V2010\Account\TranscriptionList transcriptions * @property \Twilio\Rest\Api\V2010\Account\UsageList usage * @property \Twilio\Rest\Api\V2010\Account\ValidationRequestList validationRequests * @method \Twilio\Rest\Api\V2010\Account\AddressContext addresses(string $sid) * @method \Twilio\Rest\Api\V2010\Account\ApplicationContext applications(string $sid) * @method \Twilio\Rest\Api\V2010\Account\AuthorizedConnectAppContext authorizedConnectApps(string $connectAppSid) * @method \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountryContext availablePhoneNumbers(string $countryCode) * @method \Twilio\Rest\Api\V2010\Account\CallContext calls(string $sid) * @method \Twilio\Rest\Api\V2010\Account\ConferenceContext conferences(string $sid) * @method \Twilio\Rest\Api\V2010\Account\ConnectAppContext connectApps(string $sid) * @method \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumberContext incomingPhoneNumbers(string $sid) * @method \Twilio\Rest\Api\V2010\Account\KeyContext keys(string $sid) * @method \Twilio\Rest\Api\V2010\Account\MessageContext messages(string $sid) * @method \Twilio\Rest\Api\V2010\Account\NotificationContext notifications(string $sid) * @method \Twilio\Rest\Api\V2010\Account\OutgoingCallerIdContext outgoingCallerIds(string $sid) * @method \Twilio\Rest\Api\V2010\Account\QueueContext queues(string $sid) * @method \Twilio\Rest\Api\V2010\Account\RecordingContext recordings(string $sid) * @method \Twilio\Rest\Api\V2010\Account\SigningKeyContext signingKeys(string $sid) * @method \Twilio\Rest\Api\V2010\Account\ShortCodeContext shortCodes(string $sid) * @method \Twilio\Rest\Api\V2010\Account\TranscriptionContext transcriptions(string $sid) */ class AccountContext extends InstanceContext { protected $_addresses = null; protected $_applications = null; protected $_authorizedConnectApps = null; protected $_availablePhoneNumbers = null; protected $_calls = null; protected $_conferences = null; protected $_connectApps = null; protected $_incomingPhoneNumbers = null; protected $_keys = null; protected $_messages = null; protected $_newKeys = null; protected $_newSigningKeys = null; protected $_notifications = null; protected $_outgoingCallerIds = null; protected $_queues = null; protected $_recordings = null; protected $_signingKeys = null; protected $_sip = null; protected $_shortCodes = null; protected $_tokens = null; protected $_transcriptions = null; protected $_usage = null; protected $_validationRequests = null; /** * Initialize the AccountContext * * @param \Twilio\Version $version Version that contains the resource * @param string $sid Fetch by unique Account Sid * @return \Twilio\Rest\Api\V2010\AccountContext */ public function __construct(Version $version, $sid) { parent::__construct($version); // Path Solution $this->solution = array( 'sid' => $sid, ); $this->uri = '/Accounts/' . rawurlencode($sid) . '.json'; } /** * Fetch a AccountInstance * * @return AccountInstance Fetched AccountInstance */ public function fetch() { $params = Values::of(array()); $payload = $this->version->fetch( 'GET', $this->uri, $params ); return new AccountInstance( $this->version, $payload, $this->solution['sid'] ); } /** * Update the AccountInstance * * @param array|Options $options Optional Arguments * @return AccountInstance Updated AccountInstance */ public function update($options = array()) { $options = new Values($options); $data = Values::of(array( 'FriendlyName' => $options['friendlyName'], 'Status' => $options['status'], )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new AccountInstance( $this->version, $payload, $this->solution['sid'] ); } /** * Access the addresses * * @return \Twilio\Rest\Api\V2010\Account\AddressList */ protected function getAddresses() { if (!$this->_addresses) { $this->_addresses = new AddressList( $this->version, $this->solution['sid'] ); } return $this->_addresses; } /** * Access the applications * * @return \Twilio\Rest\Api\V2010\Account\ApplicationList */ protected function getApplications() { if (!$this->_applications) { $this->_applications = new ApplicationList( $this->version, $this->solution['sid'] ); } return $this->_applications; } /** * Access the authorizedConnectApps * * @return \Twilio\Rest\Api\V2010\Account\AuthorizedConnectAppList */ protected function getAuthorizedConnectApps() { if (!$this->_authorizedConnectApps) { $this->_authorizedConnectApps = new AuthorizedConnectAppList( $this->version, $this->solution['sid'] ); } return $this->_authorizedConnectApps; } /** * Access the availablePhoneNumbers * * @return \Twilio\Rest\Api\V2010\Account\AvailablePhoneNumberCountryList */ protected function getAvailablePhoneNumbers() { if (!$this->_availablePhoneNumbers) { $this->_availablePhoneNumbers = new AvailablePhoneNumberCountryList( $this->version, $this->solution['sid'] ); } return $this->_availablePhoneNumbers; } /** * Access the calls * * @return \Twilio\Rest\Api\V2010\Account\CallList */ protected function getCalls() { if (!$this->_calls) { $this->_calls = new CallList( $this->version, $this->solution['sid'] ); } return $this->_calls; } /** * Access the conferences * * @return \Twilio\Rest\Api\V2010\Account\ConferenceList */ protected function getConferences() { if (!$this->_conferences) { $this->_conferences = new ConferenceList( $this->version, $this->solution['sid'] ); } return $this->_conferences; } /** * Access the connectApps * * @return \Twilio\Rest\Api\V2010\Account\ConnectAppList */ protected function getConnectApps() { if (!$this->_connectApps) { $this->_connectApps = new ConnectAppList( $this->version, $this->solution['sid'] ); } return $this->_connectApps; } /** * Access the incomingPhoneNumbers * * @return \Twilio\Rest\Api\V2010\Account\IncomingPhoneNumberList */ protected function getIncomingPhoneNumbers() { if (!$this->_incomingPhoneNumbers) { $this->_incomingPhoneNumbers = new IncomingPhoneNumberList( $this->version, $this->solution['sid'] ); } return $this->_incomingPhoneNumbers; } /** * Access the keys * * @return \Twilio\Rest\Api\V2010\Account\KeyList */ protected function getKeys() { if (!$this->_keys) { $this->_keys = new KeyList( $this->version, $this->solution['sid'] ); } return $this->_keys; } /** * Access the messages * * @return \Twilio\Rest\Api\V2010\Account\MessageList */ protected function getMessages() { if (!$this->_messages) { $this->_messages = new MessageList( $this->version, $this->solution['sid'] ); } return $this->_messages; } /** * Access the newKeys * * @return \Twilio\Rest\Api\V2010\Account\NewKeyList */ protected function getNewKeys() { if (!$this->_newKeys) { $this->_newKeys = new NewKeyList( $this->version, $this->solution['sid'] ); } return $this->_newKeys; } /** * Access the newSigningKeys * * @return \Twilio\Rest\Api\V2010\Account\NewSigningKeyList */ protected function getNewSigningKeys() { if (!$this->_newSigningKeys) { $this->_newSigningKeys = new NewSigningKeyList( $this->version, $this->solution['sid'] ); } return $this->_newSigningKeys; } /** * Access the notifications * * @return \Twilio\Rest\Api\V2010\Account\NotificationList */ protected function getNotifications() { if (!$this->_notifications) { $this->_notifications = new NotificationList( $this->version, $this->solution['sid'] ); } return $this->_notifications; } /** * Access the outgoingCallerIds * * @return \Twilio\Rest\Api\V2010\Account\OutgoingCallerIdList */ protected function getOutgoingCallerIds() { if (!$this->_outgoingCallerIds) { $this->_outgoingCallerIds = new OutgoingCallerIdList( $this->version, $this->solution['sid'] ); } return $this->_outgoingCallerIds; } /** * Access the queues * * @return \Twilio\Rest\Api\V2010\Account\QueueList */ protected function getQueues() { if (!$this->_queues) { $this->_queues = new QueueList( $this->version, $this->solution['sid'] ); } return $this->_queues; } /** * Access the recordings * * @return \Twilio\Rest\Api\V2010\Account\RecordingList */ protected function getRecordings() { if (!$this->_recordings) { $this->_recordings = new RecordingList( $this->version, $this->solution['sid'] ); } return $this->_recordings; } /** * Access the signingKeys * * @return \Twilio\Rest\Api\V2010\Account\SigningKeyList */ protected function getSigningKeys() { if (!$this->_signingKeys) { $this->_signingKeys = new SigningKeyList( $this->version, $this->solution['sid'] ); } return $this->_signingKeys; } /** * Access the sip * * @return \Twilio\Rest\Api\V2010\Account\SipList */ protected function getSip() { if (!$this->_sip) { $this->_sip = new SipList( $this->version, $this->solution['sid'] ); } return $this->_sip; } /** * Access the shortCodes * * @return \Twilio\Rest\Api\V2010\Account\ShortCodeList */ protected function getShortCodes() { if (!$this->_shortCodes) { $this->_shortCodes = new ShortCodeList( $this->version, $this->solution['sid'] ); } return $this->_shortCodes; } /** * Access the tokens * * @return \Twilio\Rest\Api\V2010\Account\TokenList */ protected function getTokens() { if (!$this->_tokens) { $this->_tokens = new TokenList( $this->version, $this->solution['sid'] ); } return $this->_tokens; } /** * Access the transcriptions * * @return \Twilio\Rest\Api\V2010\Account\TranscriptionList */ protected function getTranscriptions() { if (!$this->_transcriptions) { $this->_transcriptions = new TranscriptionList( $this->version, $this->solution['sid'] ); } return $this->_transcriptions; } /** * Access the usage * * @return \Twilio\Rest\Api\V2010\Account\UsageList */ protected function getUsage() { if (!$this->_usage) { $this->_usage = new UsageList( $this->version, $this->solution['sid'] ); } return $this->_usage; } /** * Access the validationRequests * * @return \Twilio\Rest\Api\V2010\Account\ValidationRequestList */ protected function getValidationRequests() { if (!$this->_validationRequests) { $this->_validationRequests = new ValidationRequestList( $this->version, $this->solution['sid'] ); } return $this->_validationRequests; } /** * Magic getter to lazy load subresources * * @param string $name Subresource to return * @return \Twilio\ListResource The requested subresource * @throws \Twilio\Exceptions\TwilioException For unknown subresources */ public function __get($name) { if (property_exists($this, '_' . $name)) { $method = 'get' . ucfirst($name); return $this->$method(); } throw new TwilioException('Unknown subresource ' . $name); } /** * Magic caller to get resource contexts * * @param string $name Resource to return * @param array $arguments Context parameters * @return \Twilio\InstanceContext The requested resource context * @throws \Twilio\Exceptions\TwilioException For unknown resource */ public function __call($name, $arguments) { $property = $this->$name; if (method_exists($property, 'getContext')) { return call_user_func_array(array($property, 'getContext'), $arguments); } throw new TwilioException('Resource does not have a context'); } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { $context = array(); foreach ($this->solution as $key => $value) { $context[] = "$key=$value"; } return '[Twilio.Api.V2010.AccountContext ' . implode(' ', $context) . ']'; } }
mit
Pip3r4o/Zatvoreno
SantaseGameEngine/ZatvorenoAI/PlayFirstStrategy/CardStatistics/CardStatistic.cs
700
namespace ZatvorenoAI.PlayFirstStrategy.CardStatistics { using Santase.Logic.Cards; public class CardStatistic { public CardStatistic(int worth, int canTake, int taken3, int lengthOfSuit, Card card ) { this.CardWorth = worth; this.CanTakeCount = canTake; this.CanBeTakenCount = taken3; this.Card = card; this.LengthOfSuit = lengthOfSuit; } public Card Card { get; set; } public int CanTakeCount { get; private set; } public int CanBeTakenCount { get; private set; } public int CardWorth { get; private set; } public int LengthOfSuit { get; set; } } }
mit
ComPHPPuebla/sf2workshop
src/Framework/Events/ProvidesEvents.php
433
<?php namespace Framework\Events; use Symfony\Component\EventDispatcher\EventDispatcher; trait ProvidesEvents { /** @var EventDispatcher */ protected $dispatcher; public function setDispatcher(EventDispatcher $dispatcher) { $this->dispatcher = $dispatcher; } public function addListener($eventName, callable $listener) { $this->dispatcher->addListener($eventName, $listener); } }
mit
ZucchiniZe/flux-people
scripts/alt.js
145
import Alt from 'alt'; // Initiate new alt object const alt = new Alt(); alt.dispatcher.register(console.log.bind(console)) export default alt;
mit
virtacoin/VirtaCoinProject
src/qt/locale/virtacoin_cy.ts
133268
<?xml version="1.0" ?><!DOCTYPE TS><TS language="cy" version="2.0"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About VirtaCoin Core</source> <translation type="unfinished"/> </message> <message> <location line="+39"/> <source>&lt;b&gt;VirtaCoin Core&lt;/b&gt; version</source> <translation type="unfinished"/> </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 ([email protected]) and UPnP software written by Thomas Bernard.</source> <translation type="unfinished"/> </message> <message> <location filename="../utilitydialog.cpp" line="+29"/> <source>Copyright</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The VirtaCoin Core developers</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+30"/> <source>Double-click to edit address or label</source> <translation>Clicio dwywaith i olygu cyfeiriad neu label</translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation>Creu cyfeiriad newydd</translation> </message> <message> <location line="+3"/> <source>&amp;New</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Copy the currently selected address to the system clipboard</source> <translation>Copio&apos;r cyfeiriad sydd wedi&apos;i ddewis i&apos;r clipfwrdd system</translation> </message> <message> <location line="+3"/> <source>&amp;Copy</source> <translation type="unfinished"/> </message> <message> <location line="+52"/> <source>C&amp;lose</source> <translation type="unfinished"/> </message> <message> <location filename="../addressbookpage.cpp" line="+74"/> <source>&amp;Copy Address</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/addressbookpage.ui" line="-41"/> <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="-27"/> <source>&amp;Delete</source> <translation>&amp;Dileu</translation> </message> <message> <location filename="../addressbookpage.cpp" line="-30"/> <source>Choose the address to send coins to</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Choose the address to receive coins with</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>C&amp;hoose</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Sending addresses</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Receiving addresses</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>These are your VirtaCoin addresses for sending payments. Always check the amount and the receiving address before sending coins.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>These are your VirtaCoin addresses for receiving payments. It is recommended to use a new receiving address for each transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Copy &amp;Label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>&amp;Edit</source> <translation type="unfinished"/> </message> <message> <location line="+194"/> <source>Export Address List</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Exporting Failed</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>There was an error trying to save the address list to %1.</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+168"/> <source>Label</source> <translation>Label</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Cyfeiriad</translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>(heb label)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>Teipiwch gyfrinymadrodd</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>Cyfrinymadrodd newydd</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>Ailadroddwch gyfrinymadrodd newydd</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+40"/> <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>Dewiswch gyfrinymadrodd newydd ar gyfer y waled. &lt;br/&gt; Defnyddiwch cyfrinymadrodd o &lt;b&gt;10 neu fwy o lythyrennau hapgyrch&lt;/b&gt;, neu &lt;b&gt; wyth neu fwy o eiriau.</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation>Amgryptio&apos;r waled</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>Mae angen i&apos;r gweithred hon ddefnyddio&apos;ch cyfrinymadrodd er mwyn datgloi&apos;r waled.</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>Datgloi&apos;r waled</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>Mae angen i&apos;r gweithred hon ddefnyddio&apos;ch cyfrinymadrodd er mwyn dadgryptio&apos;r waled.</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>Dadgryptio&apos;r waled</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>Newid cyfrinymadrodd</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>Teipiwch yr hen cyfrinymadrodd a chyfrinymadrodd newydd i mewn i&apos;r waled.</translation> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation>Cadarnau amgryptiad y waled</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 VIRTACOINS&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>Waled wedi&apos;i amgryptio</translation> </message> <message> <location line="-56"/> <source>VirtaCoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your virtacoins from being stolen by malware infecting your computer.</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+42"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation>Amgryptiad waled wedi methu</translation> </message> <message> <location line="-54"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>Methodd amgryptiad y waled oherwydd gwall mewnol. Ni amgryptwyd eich waled.</translation> </message> <message> <location line="+7"/> <location line="+48"/> <source>The supplied passphrases do not match.</source> <translation>Dydy&apos;r cyfrinymadroddion a ddarparwyd ddim yn cyd-fynd â&apos;u gilydd.</translation> </message> <message> <location line="-37"/> <source>Wallet unlock failed</source> <translation>Methodd ddatgloi&apos;r waled</translation> </message> <message> <location line="+1"/> <location line="+11"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation type="unfinished"/> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>Methodd dadgryptiad y waled</translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation type="unfinished"/> </message> </context> <context> <name>VirtaCoinGUI</name> <message> <location filename="../virtacoingui.cpp" line="+295"/> <source>Sign &amp;message...</source> <translation type="unfinished"/> </message> <message> <location line="+335"/> <source>Synchronizing with network...</source> <translation>Cysoni â&apos;r rhwydwaith...</translation> </message> <message> <location line="-407"/> <source>&amp;Overview</source> <translation>&amp;Trosolwg</translation> </message> <message> <location line="-137"/> <source>Node</source> <translation type="unfinished"/> </message> <message> <location line="+138"/> <source>Show general overview of wallet</source> <translation>Dangos trosolwg cyffredinol y waled</translation> </message> <message> <location line="+20"/> <source>&amp;Transactions</source> <translation>&amp;Trafodion</translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation>Pori hanes trafodion</translation> </message> <message> <location line="+17"/> <source>E&amp;xit</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Quit application</source> <translation>Gadael rhaglen</translation> </message> <message> <location line="+7"/> <source>Show information about VirtaCoin</source> <translation>Dangos gwybodaeth am VirtaCoin</translation> </message> <message> <location line="+3"/> <location line="+2"/> <source>About &amp;Qt</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Show information about Qt</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation>&amp;Opsiynau</translation> </message> <message> <location line="+9"/> <source>&amp;Encrypt Wallet...</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>&amp;Sending addresses...</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>&amp;Receiving addresses...</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Open &amp;URI...</source> <translation type="unfinished"/> </message> <message> <location line="+325"/> <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="-405"/> <source>Send coins to a VirtaCoin address</source> <translation type="unfinished"/> </message> <message> <location line="+49"/> <source>Modify configuration options for VirtaCoin</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Backup wallet to another location</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation>Newid y cyfrinymadrodd a ddefnyddiwyd ar gyfer amgryptio&apos;r waled</translation> </message> <message> <location line="+6"/> <source>&amp;Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation type="unfinished"/> </message> <message> <location line="-4"/> <source>&amp;Verify message...</source> <translation type="unfinished"/> </message> <message> <location line="+430"/> <source>VirtaCoin</source> <translation type="unfinished"/> </message> <message> <location line="-643"/> <source>Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+146"/> <source>&amp;Send</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Receive</source> <translation type="unfinished"/> </message> <message> <location line="+46"/> <location line="+2"/> <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 VirtaCoin 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 VirtaCoin addresses</source> <translation type="unfinished"/> </message> <message> <location line="+48"/> <source>&amp;File</source> <translation>&amp;Ffeil</translation> </message> <message> <location line="+14"/> <source>&amp;Settings</source> <translation>&amp;Gosodiadau</translation> </message> <message> <location line="+9"/> <source>&amp;Help</source> <translation>&amp;Cymorth</translation> </message> <message> <location line="+15"/> <source>Tabs toolbar</source> <translation>Bar offer tabiau</translation> </message> <message> <location line="-284"/> <location line="+376"/> <source>[testnet]</source> <translation>[testnet]</translation> </message> <message> <location line="-401"/> <source>VirtaCoin Core</source> <translation type="unfinished"/> </message> <message> <location line="+163"/> <source>Request payments (generates QR codes and virtacoin: URIs)</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <location line="+2"/> <source>&amp;About VirtaCoin Core</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Show the list of used sending addresses and labels</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Show the list of used receiving addresses and labels</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Open a virtacoin: URI or payment request</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>&amp;Command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show the VirtaCoin Core help message to get a list with possible VirtaCoin command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+159"/> <location line="+5"/> <source>VirtaCoin client</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+142"/> <source>%n active connection(s) to VirtaCoin network</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+22"/> <source>No block source available...</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Processed %1 of %2 (estimated) blocks of transaction history.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Processed %1 blocks of transaction history.</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+23"/> <source>%n hour(s)</source> <translation type="unfinished"><numerusform></numerusform><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><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n week(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>%1 behind</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <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="+27"/> <source>Error</source> <translation>Gwall</translation> </message> <message> <location line="+3"/> <source>Warning</source> <translation>Rhybudd</translation> </message> <message> <location line="+3"/> <source>Information</source> <translation>Gwybodaeth</translation> </message> <message> <location line="-85"/> <source>Up to date</source> <translation>Cyfamserol</translation> </message> <message> <location line="+34"/> <source>Catching up...</source> <translation>Dal i fyny</translation> </message> <message> <location line="+130"/> <source>Sent transaction</source> <translation>Trafodiad a anfonwyd</translation> </message> <message> <location line="+0"/> <source>Incoming transaction</source> <translation>Trafodiad sy&apos;n cyrraedd</translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation type="unfinished"/> </message> <message> <location line="+69"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>Mae&apos;r waled &lt;b&gt;wedi&apos;i amgryptio&lt;/b&gt; ac &lt;b&gt;heb ei gloi&lt;/b&gt; ar hyn o bryd</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>Mae&apos;r waled &lt;b&gt;wedi&apos;i amgryptio&lt;/b&gt; ac &lt;b&gt;ar glo&lt;/b&gt; ar hyn o bryd</translation> </message> <message> <location filename="../virtacoin.cpp" line="+438"/> <source>A fatal error occurred. VirtaCoin can no longer continue safely and will quit.</source> <translation type="unfinished"/> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+119"/> <source>Network Alert</source> <translation type="unfinished"/> </message> </context> <context> <name>CoinControlDialog</name> <message> <location filename="../forms/coincontroldialog.ui" line="+14"/> <source>Coin Control Address Selection</source> <translation type="unfinished"/> </message> <message> <location line="+34"/> <source>Quantity:</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Bytes:</source> <translation type="unfinished"/> </message> <message> <location line="+45"/> <source>Amount:</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Priority:</source> <translation type="unfinished"/> </message> <message> <location line="+45"/> <source>Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>Low Output:</source> <translation type="unfinished"/> </message> <message> <location line="+48"/> <source>After Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>Change:</source> <translation type="unfinished"/> </message> <message> <location line="+63"/> <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="+52"/> <source>Amount</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Address</source> <translation>Cyfeiriad</translation> </message> <message> <location line="+5"/> <source>Date</source> <translation>Dyddiad</translation> </message> <message> <location line="+5"/> <source>Confirmations</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Confirmed</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Priority</source> <translation type="unfinished"/> </message> <message> <location filename="../coincontroldialog.cpp" line="+42"/> <source>Copy address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <location line="+26"/> <source>Copy amount</source> <translation type="unfinished"/> </message> <message> <location line="-25"/> <source>Copy transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Lock unspent</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Unlock unspent</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <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="+323"/> <source>highest</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>higher</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>lower</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>lowest</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>(%1 locked)</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>none</source> <translation type="unfinished"/> </message> <message> <location line="+140"/> <source>Dust</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>yes</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>no</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>This label turns red, if the transaction size is greater than 1000 bytes.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <location line="+5"/> <source>This means a fee of at least %1 per kB is required.</source> <translation type="unfinished"/> </message> <message> <location line="-4"/> <source>Can vary +/- 1 byte per input.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Transactions with higher priority are more likely to get included into a block.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This label turns red, if the priority is smaller than &quot;medium&quot;.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>This label turns red, if any recipient receives an amount smaller than %1.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <location line="+4"/> <source>This means a fee of at least %1 is required.</source> <translation type="unfinished"/> </message> <message> <location line="-3"/> <source>Amounts below 0.546 times the minimum relay fee are shown as dust.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>This label turns red, if the change is smaller than %1.</source> <translation type="unfinished"/> </message> <message> <location line="+43"/> <location line="+66"/> <source>(no label)</source> <translation>(heb label)</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>Golygu&apos;r cyfeiriad</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>&amp;Label</translation> </message> <message> <location line="+10"/> <source>The label associated with this address list entry</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>The address associated with this address list entry. This can only be modified for sending addresses.</source> <translation type="unfinished"/> </message> <message> <location line="-10"/> <source>&amp;Address</source> <translation>&amp;Cyfeiriad</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="+28"/> <source>New receiving address</source> <translation>Cyfeiriad derbyn newydd</translation> </message> <message> <location line="+4"/> <source>New sending address</source> <translation>Cyfeiriad anfon newydd</translation> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation>Golygu&apos;r cyfeiriad derbyn</translation> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation>Golygu&apos;r cyfeiriad anfon</translation> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>Mae&apos;r cyfeiriad &quot;%1&quot; sydd newydd gael ei geisio gennych yn y llyfr cyfeiriad yn barod.</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid VirtaCoin address.</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>Methodd ddatgloi&apos;r waled.</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation>Methodd gynhyrchu allwedd newydd.</translation> </message> </context> <context> <name>FreespaceChecker</name> <message> <location filename="../intro.cpp" line="+65"/> <source>A new data directory will be created.</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>name</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Directory already exists. Add %1 if you intend to create a new directory here.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Path already exists, and is not a directory.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Cannot create data directory here.</source> <translation type="unfinished"/> </message> </context> <context> <name>HelpMessageDialog</name> <message> <location filename="../forms/helpmessagedialog.ui" line="+19"/> <source>VirtaCoin Core - Command-line options</source> <translation type="unfinished"/> </message> <message> <location filename="../utilitydialog.cpp" line="+38"/> <source>VirtaCoin Core</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <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> <message> <location line="+1"/> <source>Choose data directory on startup (default: 0)</source> <translation type="unfinished"/> </message> </context> <context> <name>Intro</name> <message> <location filename="../forms/intro.ui" line="+14"/> <source>Welcome</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Welcome to VirtaCoin Core.</source> <translation type="unfinished"/> </message> <message> <location line="+26"/> <source>As this is the first time the program is launched, you can choose where VirtaCoin Core will store its data.</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>VirtaCoin Core will download and store a copy of the VirtaCoin block chain. At least %1GB of data will be stored in this directory, and it will grow over time. The wallet will also be stored in this directory.</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Use the default data directory</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Use a custom data directory:</source> <translation type="unfinished"/> </message> <message> <location filename="../intro.cpp" line="+85"/> <source>VirtaCoin</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error: Specified data directory &quot;%1&quot; can not be created.</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Error</source> <translation>Gwall</translation> </message> <message> <location line="+9"/> <source>GB of free space available</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>(of %1GB needed)</source> <translation type="unfinished"/> </message> </context> <context> <name>OpenURIDialog</name> <message> <location filename="../forms/openuridialog.ui" line="+14"/> <source>Open URI</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Open payment request from URI or file</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>URI:</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Select payment request file</source> <translation type="unfinished"/> </message> <message> <location filename="../openuridialog.cpp" line="+47"/> <source>Select payment request file to open</source> <translation type="unfinished"/> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation>Opsiynau</translation> </message> <message> <location line="+13"/> <source>&amp;Main</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB.</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Automatically start VirtaCoin after logging in to the system.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Start VirtaCoin on system login</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Size of &amp;database cache</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Set database cache size in megabytes (default: 25)</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>MB</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Number of script &amp;verification threads</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <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="+58"/> <source>Connect to the VirtaCoin network through a SOCKS proxy.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy (default proxy):</source> <translation type="unfinished"/> </message> <message> <location line="+34"/> <source>IP address of the proxy (e.g. IPv4: 127.0.0.1 / IPv6: ::1)</source> <translation type="unfinished"/> </message> <message> <location line="+224"/> <source>Active command-line options that override above options:</source> <translation type="unfinished"/> </message> <message> <location line="+43"/> <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="-323"/> <source>&amp;Network</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Automatically open the VirtaCoin 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 type="unfinished"/> </message> <message> <location line="+19"/> <source>Proxy &amp;IP:</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>&amp;Port:</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Port of the proxy (e.g. 9050)</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation type="unfinished"/> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting VirtaCoin.</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Whether to show VirtaCoin 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 type="unfinished"/> </message> <message> <location line="+7"/> <source>Whether to show coin control features or not.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Display coin &amp;control features (experts only)</source> <translation type="unfinished"/> </message> <message> <location line="+136"/> <source>&amp;OK</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="+67"/> <source>default</source> <translation type="unfinished"/> </message> <message> <location line="+57"/> <source>none</source> <translation type="unfinished"/> </message> <message> <location line="+75"/> <source>Confirm options reset</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <location line="+29"/> <source>Client restart required to activate changes.</source> <translation type="unfinished"/> </message> <message> <location line="-29"/> <source>Client will be shutdown, do you want to proceed?</source> <translation type="unfinished"/> </message> <message> <location line="+33"/> <source>This change would require a client restart.</source> <translation type="unfinished"/> </message> <message> <location line="+34"/> <source>The supplied proxy address is invalid.</source> <translation type="unfinished"/> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation>Ffurflen</translation> </message> <message> <location line="+50"/> <location line="+231"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the VirtaCoin network after a connection is established, but this process has not completed yet.</source> <translation type="unfinished"/> </message> <message> <location line="-155"/> <source>Unconfirmed:</source> <translation>Nas cadarnheir:</translation> </message> <message> <location line="-83"/> <source>Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+51"/> <source>Confirmed:</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Your current spendable balance</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the spendable balance</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <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="+16"/> <source>Total:</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Your current total balance</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;Trafodion diweddar&lt;/b&gt;</translation> </message> <message> <location filename="../overviewpage.cpp" line="+120"/> <location line="+1"/> <source>out of sync</source> <translation type="unfinished"/> </message> </context> <context> <name>PaymentServer</name> <message> <location filename="../paymentserver.cpp" line="+403"/> <location line="+13"/> <source>URI handling</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>URI can not be parsed! This can be caused by an invalid VirtaCoin address or malformed URI parameters.</source> <translation type="unfinished"/> </message> <message> <location line="+96"/> <source>Requested payment amount of %1 is too small (considered dust).</source> <translation type="unfinished"/> </message> <message> <location line="-221"/> <location line="+212"/> <location line="+13"/> <location line="+95"/> <location line="+18"/> <location line="+16"/> <source>Payment request error</source> <translation type="unfinished"/> </message> <message> <location line="-353"/> <source>Cannot start virtacoin: click-to-pay handler</source> <translation type="unfinished"/> </message> <message> <location line="+58"/> <source>Net manager warning</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Your active proxy doesn&apos;t support SOCKS5, which is required for payment requests via proxy.</source> <translation type="unfinished"/> </message> <message> <location line="+52"/> <source>Payment request fetch URL is invalid: %1</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Payment request file handling</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Payment request file can not be read or processed! This can be caused by an invalid payment request file.</source> <translation type="unfinished"/> </message> <message> <location line="+73"/> <source>Unverified payment requests to custom payment scripts are unsupported.</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>Refund from %1</source> <translation type="unfinished"/> </message> <message> <location line="+43"/> <source>Error communicating with %1: %2</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>Payment request can not be parsed or processed!</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Bad response from server %1</source> <translation type="unfinished"/> </message> <message> <location line="+33"/> <source>Payment acknowledged</source> <translation type="unfinished"/> </message> <message> <location line="-11"/> <source>Network request error</source> <translation type="unfinished"/> </message> </context> <context> <name>QObject</name> <message> <location filename="../virtacoin.cpp" line="+71"/> <location line="+11"/> <source>VirtaCoin</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error: Specified data directory &quot;%1&quot; does not exist.</source> <translation type="unfinished"/> </message> <message> <location line="-12"/> <source>Error: Invalid combination of -regtest and -testnet.</source> <translation type="unfinished"/> </message> </context> <context> <name>QRImageWidget</name> <message> <location filename="../receiverequestdialog.cpp" line="+36"/> <source>&amp;Save Image...</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Copy Image</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>Save QR Code</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>PNG Image (*.png)</source> <translation type="unfinished"/> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <location line="+23"/> <location line="+26"/> <location line="+23"/> <location line="+23"/> <location line="+36"/> <location line="+23"/> <location line="+36"/> <location line="+23"/> <location line="+23"/> <location filename="../rpcconsole.cpp" line="+359"/> <source>N/A</source> <translation type="unfinished"/> </message> <message> <location line="-223"/> <source>Client version</source> <translation type="unfinished"/> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation type="unfinished"/> </message> <message> <location line="-10"/> <source>Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>General</source> <translation type="unfinished"/> </message> <message> <location line="+53"/> <source>Using OpenSSL version</source> <translation type="unfinished"/> </message> <message> <location line="+49"/> <source>Startup time</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Network</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Name</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Number of connections</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Block chain</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Last block time</source> <translation type="unfinished"/> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation type="unfinished"/> </message> <message> <location line="+72"/> <source>&amp;Network Traffic</source> <translation type="unfinished"/> </message> <message> <location line="+52"/> <source>&amp;Clear</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Totals</source> <translation type="unfinished"/> </message> <message> <location line="+64"/> <source>In:</source> <translation type="unfinished"/> </message> <message> <location line="+80"/> <source>Out:</source> <translation type="unfinished"/> </message> <message> <location line="-521"/> <source>Build date</source> <translation type="unfinished"/> </message> <message> <location line="+206"/> <source>Debug log file</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Open the VirtaCoin 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="+76"/> <source>Clear console</source> <translation type="unfinished"/> </message> <message> <location filename="../rpcconsole.cpp" line="-30"/> <source>Welcome to the VirtaCoin 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 type="unfinished"/> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation type="unfinished"/> </message> <message> <location line="+122"/> <source>%1 B</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1 KB</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1 MB</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1 GB</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>%1 m</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>%1 h</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1 h %2 m</source> <translation type="unfinished"/> </message> </context> <context> <name>ReceiveCoinsDialog</name> <message> <location filename="../forms/receivecoinsdialog.ui" line="+83"/> <source>&amp;Amount:</source> <translation type="unfinished"/> </message> <message> <location line="-13"/> <source>&amp;Label:</source> <translation>&amp;Label:</translation> </message> <message> <location line="-34"/> <source>&amp;Message:</source> <translation type="unfinished"/> </message> <message> <location line="-17"/> <source>Reuse one of the previously used receiving addresses. Reusing addresses has security and privacy issues. Do not use this unless re-generating a payment request made before.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>R&amp;euse an existing receiving address (not recommended)</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>An optional label to associate with the new receiving address</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>An optional message to attach to the payment request, which will be displayed when the request is opened. Note: The message will not be sent with the payment over the VirtaCoin network.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Use this form to request payments. All fields are &lt;b&gt;optional&lt;/b&gt;.</source> <translation type="unfinished"/> </message> <message> <location line="+39"/> <source>An optional amount to request. Leave this empty or zero to not request a specific amount.</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Clear all fields of the form.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Clear</source> <translation type="unfinished"/> </message> <message> <location line="+36"/> <source>&amp;Request payment</source> <translation type="unfinished"/> </message> <message> <location line="+47"/> <source>Requested payments</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Show the selected request (does the same as double clicking an entry)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Show</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Remove the selected entries from the list</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Remove</source> <translation type="unfinished"/> </message> </context> <context> <name>ReceiveRequestDialog</name> <message> <location filename="../forms/receiverequestdialog.ui" line="+29"/> <source>QR Code</source> <translation type="unfinished"/> </message> <message> <location line="+46"/> <source>Copy &amp;URI</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Copy &amp;Address</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Save Image...</source> <translation type="unfinished"/> </message> <message> <location filename="../receiverequestdialog.cpp" line="+56"/> <source>Request payment to %1</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Payment information</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>URI</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Address</source> <translation>Cyfeiriad</translation> </message> <message> <location line="+2"/> <source>Amount</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Label</source> <translation>Label</translation> </message> <message> <location line="+2"/> <source>Message</source> <translation>Neges</translation> </message> <message> <location line="+10"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error encoding URI into QR Code.</source> <translation type="unfinished"/> </message> </context> <context> <name>RecentRequestsTableModel</name> <message> <location filename="../recentrequeststablemodel.cpp" line="+24"/> <source>Date</source> <translation>Dyddiad</translation> </message> <message> <location line="+0"/> <source>Label</source> <translation>Label</translation> </message> <message> <location line="+0"/> <source>Message</source> <translation>Neges</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation type="unfinished"/> </message> <message> <location line="+38"/> <source>(no label)</source> <translation>(heb label)</translation> </message> <message> <location line="+9"/> <source>(no message)</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="+14"/> <location filename="../sendcoinsdialog.cpp" line="+381"/> <location line="+80"/> <source>Send Coins</source> <translation>Anfon arian</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="+89"/> <source>Quantity:</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Bytes:</source> <translation type="unfinished"/> </message> <message> <location line="+48"/> <source>Amount:</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>Priority:</source> <translation type="unfinished"/> </message> <message> <location line="+48"/> <source>Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>Low Output:</source> <translation type="unfinished"/> </message> <message> <location line="+48"/> <source>After Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>Change:</source> <translation type="unfinished"/> </message> <message> <location line="+44"/> <source>If this is activated, but the change address is empty or invalid, change will be sent to a newly generated address.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Custom change address</source> <translation type="unfinished"/> </message> <message> <location line="+115"/> <source>Send to multiple recipients at once</source> <translation>Anfon at pobl lluosog ar yr un pryd</translation> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation type="unfinished"/> </message> <message> <location line="+20"/> <source>Clear all fields of the form.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>Balance:</source> <translation>Gweddill:</translation> </message> <message> <location line="+41"/> <source>Confirm the send action</source> <translation>Cadarnhau&apos;r gweithrediad anfon</translation> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-228"/> <source>Confirm send coins</source> <translation type="unfinished"/> </message> <message> <location line="-74"/> <location line="+5"/> <location line="+5"/> <location line="+4"/> <source>%1 to %2</source> <translation>%1 i %2</translation> </message> <message> <location line="-136"/> <source>Enter a VirtaCoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Copy quantity</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy after fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy bytes</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy priority</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy low output</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy change</source> <translation type="unfinished"/> </message> <message> <location line="+170"/> <source>Total Amount %1 (= %2)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>or</source> <translation type="unfinished"/> </message> <message> <location line="+202"/> <source>The recipient address is not valid, please recheck.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>The amount to pay must be larger than 0.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>The amount exceeds your balance.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Transaction creation failed!</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>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="+112"/> <source>Warning: Invalid VirtaCoin address</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>(no label)</source> <translation>(heb label)</translation> </message> <message> <location line="-11"/> <source>Warning: Unknown change address</source> <translation type="unfinished"/> </message> <message> <location line="-366"/> <source>Are you sure you want to send?</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>added as transaction fee</source> <translation type="unfinished"/> </message> <message> <location line="+170"/> <source>Payment request expired</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Invalid payment address %1</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+131"/> <location line="+521"/> <location line="+536"/> <source>A&amp;mount:</source> <translation>&amp;Maint</translation> </message> <message> <location line="-1152"/> <source>Pay &amp;To:</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsentry.cpp" line="+30"/> <source>Enter a label for this address to add it to your address book</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="+57"/> <source>&amp;Label:</source> <translation>&amp;Label:</translation> </message> <message> <location line="-50"/> <source>Choose previously used address</source> <translation type="unfinished"/> </message> <message> <location line="-40"/> <source>This is a normal payment.</source> <translation type="unfinished"/> </message> <message> <location line="+50"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="+7"/> <source>Paste address from clipboard</source> <translation>Gludo cyfeiriad o&apos;r glipfwrdd</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+7"/> <location line="+524"/> <location line="+536"/> <source>Remove this entry</source> <translation type="unfinished"/> </message> <message> <location line="-1008"/> <source>Message:</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>A message that was attached to the VirtaCoin URI which will be stored with the transaction for your reference. Note: This message will not be sent over the VirtaCoin network.</source> <translation type="unfinished"/> </message> <message> <location line="+958"/> <source>This is a verified payment request.</source> <translation type="unfinished"/> </message> <message> <location line="-991"/> <source>Enter a label for this address to add it to the list of used addresses</source> <translation type="unfinished"/> </message> <message> <location line="+459"/> <source>This is an unverified payment request.</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <location line="+532"/> <source>Pay To:</source> <translation type="unfinished"/> </message> <message> <location line="-498"/> <location line="+536"/> <source>Memo:</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a VirtaCoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation type="unfinished"/> </message> </context> <context> <name>ShutdownWindow</name> <message> <location filename="../utilitydialog.cpp" line="+48"/> <source>VirtaCoin Core is shutting down...</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Do not shut down the computer until this window disappears.</source> <translation type="unfinished"/> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <location filename="../forms/signverifymessagedialog.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <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. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <location line="+213"/> <source>Choose previously used address</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>Gludo cyfeiriad o&apos;r glipfwrdd</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 VirtaCoin 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 type="unfinished"/> </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. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified VirtaCoin 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="+29"/> <location line="+3"/> <source>Enter a VirtaCoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation type="unfinished"/> </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 VirtaCoin signature</source> <translation type="unfinished"/> </message> <message> <location line="+84"/> <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="+28"/> <source>VirtaCoin Core</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>The VirtaCoin Core developers</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>[testnet]</source> <translation type="unfinished"/> </message> </context> <context> <name>TrafficGraphWidget</name> <message> <location filename="../trafficgraphwidget.cpp" line="+79"/> <source>KB/s</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+28"/> <source>Open until %1</source> <translation>Agor tan %1</translation> </message> <message> <location line="+6"/> <source>%1/offline</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>Status</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>Dyddiad</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="+53"/> <source>Credit</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="-125"/> <source>matures in %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><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="+53"/> <source>Debit</source> <translation type="unfinished"/> </message> <message> <location line="-62"/> <source>Transaction fee</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Net amount</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <location line="+9"/> <source>Message</source> <translation>Neges</translation> </message> <message> <location line="-7"/> <source>Comment</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>Merchant</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Generated coins must mature %1 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="+8"/> <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 type="unfinished"/> </message> <message> <location line="+1"/> <source>true</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>false</source> <translation type="unfinished"/> </message> <message> <location line="-232"/> <source>, has not been successfully broadcast yet</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="-35"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+70"/> <source>unknown</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+234"/> <source>Date</source> <translation>Dyddiad</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>Math</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Cyfeiriad</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>Immature (%1 confirmations, will be available after %2)</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+16"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+3"/> <source>Open until %1</source> <translation>Agor tan %1</translation> </message> <message> <location line="+3"/> <source>Offline (%1 confirmations)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Unconfirmed (%1 of %2 confirmations)</source> <translation type="unfinished"/> </message> <message> <location line="-22"/> <location line="+25"/> <source>Confirmed (%1 confirmations)</source> <translation type="unfinished"/> </message> <message> <location line="-22"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation type="unfinished"/> </message> <message> <location line="+62"/> <source>Received with</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Received from</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sent to</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Mined</source> <translation type="unfinished"/> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation type="unfinished"/> </message> <message> <location line="+199"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+57"/> <location line="+16"/> <source>All</source> <translation type="unfinished"/> </message> <message> <location line="-15"/> <source>Today</source> <translation>Heddiw</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This month</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Last month</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This year</source> <translation>Eleni</translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Received with</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Sent to</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>To yourself</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Mined</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Other</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Enter address or label to search</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Min amount</source> <translation type="unfinished"/> </message> <message> <location line="+34"/> <source>Copy address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Edit label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation type="unfinished"/> </message> <message> <location line="+142"/> <source>Export Transaction History</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Exporting Failed</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>There was an error trying to save the transaction history to %1.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Exporting Successful</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The transaction history was successfully saved to %1.</source> <translation type="unfinished"/> </message> <message> <location line="-22"/> <source>Comma separated file (*.csv)</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Confirmed</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Date</source> <translation>Dyddiad</translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>Math</translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>Label</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation>Cyfeiriad</translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>ID</source> <translation type="unfinished"/> </message> <message> <location line="+107"/> <source>Range:</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>to</source> <translation type="unfinished"/> </message> </context> <context> <name>WalletFrame</name> <message> <location filename="../walletframe.cpp" line="+26"/> <source>No wallet has been loaded.</source> <translation type="unfinished"/> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+245"/> <source>Send Coins</source> <translation type="unfinished"/> </message> </context> <context> <name>WalletView</name> <message> <location filename="../walletview.cpp" line="+43"/> <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="+181"/> <source>Backup Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Wallet Data (*.dat)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Backup Failed</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to %1.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>The wallet data was successfully saved to %1.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Backup Successful</source> <translation type="unfinished"/> </message> </context> <context> <name>virtacoin-core</name> <message> <location filename="../virtacoinstrings.cpp" line="+221"/> <source>Usage:</source> <translation type="unfinished"/> </message> <message> <location line="-54"/> <source>List commands</source> <translation type="unfinished"/> </message> <message> <location line="-14"/> <source>Get help for a command</source> <translation type="unfinished"/> </message> <message> <location line="+26"/> <source>Options:</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>Specify configuration file (default: virtacoin.conf)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Specify pid file (default: virtacoind.pid)</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation type="unfinished"/> </message> <message> <location line="-9"/> <source>Set database cache size in megabytes (default: 25)</source> <translation type="unfinished"/> </message> <message> <location line="-26"/> <source>Listen for connections on &lt;port&gt; (default: 22816 or testnet: 18333)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation type="unfinished"/> </message> <message> <location line="-51"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation type="unfinished"/> </message> <message> <location line="+84"/> <source>Specify your own public address</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="-148"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation type="unfinished"/> </message> <message> <location line="-36"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation type="unfinished"/> </message> <message> <location line="+34"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 22815 or testnet: 18332)</source> <translation type="unfinished"/> </message> <message> <location line="+45"/> <source>Accept command line and JSON-RPC commands</source> <translation type="unfinished"/> </message> <message> <location line="+80"/> <source>Run in the background as a daemon and accept commands</source> <translation type="unfinished"/> </message> <message> <location line="+39"/> <source>Use the test network</source> <translation type="unfinished"/> </message> <message> <location line="-118"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation type="unfinished"/> </message> <message> <location line="-95"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=virtacoinrpc 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;VirtaCoin Alert&quot; [email protected] </source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Acceptable ciphers (default: TLSv1.2+HIGH:TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!3DES:@STRENGTH)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <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. VirtaCoin is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Enter regression test mode, which uses a special chain in which blocks can be solved instantly. This is intended for regression testing tools and app development.</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Enter regression test mode, which uses a special chain in which blocks can be solved instantly.</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="+6"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <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>Use separate SOCKS5 proxy to reach peers via Tor hidden services (default: -proxy)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <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: Please check that your computer&apos;s date and time are correct! If your clock is wrong VirtaCoin will not work properly.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Warning: We do not appear to fully agree with our peers! You may need to upgrade, or other nodes may need to upgrade.</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="+9"/> <source>&lt;category&gt; can be:</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>VirtaCoin Core Daemon</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>VirtaCoin RPC client version</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <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="+1"/> <source>Connect through SOCKS proxy</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Connect to JSON-RPC on &lt;port&gt; (default: 22815 or testnet: 18332)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <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 not load the wallet and disable wallet RPC calls</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="+1"/> <source>Fee per kB to add to transactions you send</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <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="+1"/> <source>If &lt;category&gt; is not supplied, output all debugging information.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Incorrect or no genesis block found. Wrong datadir for network?</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Invalid -onion address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Not enough file descriptors available.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Prepend debug output with timestamp (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>RPC client options:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Rebuild block chain index from current blk000??.dat files</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Select SOCKS version for -proxy (4 or 5, default: 5)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Send command to VirtaCoin server</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Set maximum block size in bytes (default: %d)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Set the number of threads to service RPC calls (default: 4)</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Specify wallet file (within data directory)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Start VirtaCoin server</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>This is intended for regression testing tools and app development.</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Usage (deprecated, use virtacoin-cli):</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Verifying blocks...</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Verifying wallet...</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Wait for RPC server to start</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Wallet %s resides outside data directory %s</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Wallet options:</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Warning: Deprecated argument -debugnet ignored, use -debug=net</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>You need to rebuild the database using -reindex to change -txindex</source> <translation type="unfinished"/> </message> <message> <location line="-79"/> <source>Imports blocks from external blk000??.dat file</source> <translation type="unfinished"/> </message> <message> <location line="-105"/> <source>Execute command when a relevant alert is received or we see a really long fork (%s in cmd is replaced by message)</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Output debugging information (default: 0, supplying &lt;category&gt; is optional)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: %d)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <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="+89"/> <source>Information</source> <translation>Gwybodaeth</translation> </message> <message> <location line="+4"/> <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="+9"/> <source>SSL options: (see the VirtaCoin Wiki for SSL setup instructions)</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <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="+6"/> <source>System error: </source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <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="+8"/> <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="+2"/> <source>Username for JSON-RPC connections</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Warning</source> <translation>Rhybudd</translation> </message> <message> <location line="+2"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>version</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>wallet.dat corrupt, salvage failed</source> <translation type="unfinished"/> </message> <message> <location line="-58"/> <source>Password for JSON-RPC connections</source> <translation type="unfinished"/> </message> <message> <location line="-70"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation type="unfinished"/> </message> <message> <location line="+80"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation type="unfinished"/> </message> <message> <location line="-132"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation type="unfinished"/> </message> <message> <location line="+161"/> <source>Upgrade wallet to latest format</source> <translation type="unfinished"/> </message> <message> <location line="-24"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="-11"/> <source>Rescan the block chain for missing wallet transactions</source> <translation type="unfinished"/> </message> <message> <location line="+38"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation type="unfinished"/> </message> <message> <location line="-30"/> <source>Server certificate file (default: server.cert)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>This help message</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation type="unfinished"/> </message> <message> <location line="-107"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation type="unfinished"/> </message> <message> <location line="+60"/> <source>Loading addresses...</source> <translation type="unfinished"/> </message> <message> <location line="-37"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error loading wallet.dat: Wallet requires newer version of VirtaCoin</source> <translation type="unfinished"/> </message> <message> <location line="+98"/> <source>Wallet needed to be rewritten: restart VirtaCoin to complete</source> <translation type="unfinished"/> </message> <message> <location line="-100"/> <source>Error loading wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+56"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation type="unfinished"/> </message> <message> <location line="-101"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+48"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount</source> <translation type="unfinished"/> </message> <message> <location line="-6"/> <source>Insufficient funds</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Loading block index...</source> <translation type="unfinished"/> </message> <message> <location line="-62"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation type="unfinished"/> </message> <message> <location line="-32"/> <source>Unable to bind to %s on this computer. VirtaCoin is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="+95"/> <source>Loading wallet...</source> <translation type="unfinished"/> </message> <message> <location line="-56"/> <source>Cannot downgrade wallet</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Cannot write default address</source> <translation type="unfinished"/> </message> <message> <location line="+67"/> <source>Rescanning...</source> <translation type="unfinished"/> </message> <message> <location line="-58"/> <source>Done loading</source> <translation type="unfinished"/> </message> <message> <location line="+85"/> <source>To use the %s option</source> <translation type="unfinished"/> </message> <message> <location line="-77"/> <source>Error</source> <translation>Gwall</translation> </message> <message> <location line="-35"/> <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 type="unfinished"/> </message> </context> </TS>
mit
AlexPodobed/Angular2.0
src/app/core/services/storage/storage.service.ts
416
import { Injectable } from '@angular/core'; @Injectable() export class StorageService { public static set(key: string, value: any): void { if (value === null) { localStorage.removeItem(key); } else { localStorage.setItem(key, JSON.stringify(value)); } } public static get(key: string): any { return JSON.parse(localStorage.getItem(key)); } }
mit
wwsun/algorithm-book
src/main/java/me/wwsun/basic/Bag.java
323
package me.wwsun.basic; import java.util.Iterator; public class Bag<E> implements Iterable<E> { @Override public Iterator<E> iterator() { return null; } public void add(E e) { } public boolean isEmpty() { return false; } public int size() { return 0; } }
mit
reidka/Markus
app/controllers/tas_controller.rb
3419
class TasController < ApplicationController include TasHelper before_filter :authorize_only_for_admin layout 'assignment_content' def index end def populate render json: get_tas_table_info end def new @user = Ta.new end def edit @user = Ta.find_by_id(params[:id]) end def destroy @user = Ta.find(params[:id]) if @user && @user.destroy flash[:success] = I18n.t('tas.delete.success', user_name: @user.user_name) else flash[:error] = I18n.t('tas.delete.error') end redirect_to action: :index end def update @user = Ta.find_by_id(params[:user][:id]) # update_attributes supplied by ActiveRecords if @user.update_attributes(user_params) flash[:success] = I18n.t('tas.update.success', user_name: @user.user_name) redirect_to action: :index else flash[:error] = I18n.t('tas.update.error') render :edit end end def create # Default attributes: role = TA or role = STUDENT # params[:user] is a hash of values passed to the controller # by the HTML form with the help of ActiveView::Helper:: @user = Ta.new(user_params) # Return unless the save is successful; save inherted from # active records--creates a new record if the model is new, otherwise # updates the existing record if @user.save flash[:success] = I18n.t('tas.create.success', user_name: @user.user_name) redirect_to action: 'index' # Redirect else flash[:error] = I18n.t('tas.create.error') render :new end end #downloads users with the given role as a csv list def download_ta_list #find all the users tas = Ta.order(:user_name) case params[:format] when 'csv' output = MarkusCSV.generate(tas) do |ta| [ta.user_name,ta.last_name,ta.first_name] end format = 'text/csv' when 'xml' output = tas.to_xml format = 'text/xml' else # Raise exception? output = tas.to_xml format = 'text/xml' end send_data(output, type: format, filename: "ta_list.#{params[:format]}", disposition: 'attachment') end def upload_ta_list if params[:userlist] User.transaction do processed_users = [] result = MarkusCSV.parse(params[:userlist], skip_blanks: true, row_sep: :auto, encoding: params[:encoding]) do |row| next if CSV.generate_line(row).strip.empty? raise CSVInvalidLineError if processed_users.include?(row[0]) raise CSVInvalidLineError if User.add_user(Ta, row).nil? processed_users.push(row[0]) end unless result[:invalid_lines].empty? flash_message(:error, result[:invalid_lines]) end unless result[:valid_lines].empty? flash_message(:success, result[:valid_lines]) end end else flash_message(:error, I18n.t('csv.invalid_csv')) end redirect_to action: 'index' end def refresh_graph @assignment = Assignment.find(params[:assignment]) @current_ta = Ta.find(params[:id]) end private def user_params params.require(:user).permit(:user_name, :last_name, :first_name) end end
mit
DlhSoftTeam/GanttChartHyperLibrary-Demos
GanttChartHyperLibraryDemos/Demos/Samples/TypeScript/NetworkDiagramView/Printing/app.ts
4542
/// <reference path='./Scripts/DlhSoft.ProjectData.PertChart.HTML.Controls.d.ts'/> import NetworkDiagramView = DlhSoft.Controls.Pert.NetworkDiagramView; import NetworkDiagramItem = NetworkDiagramView.Item; import PredecessorItem = NetworkDiagramView.PredecessorItem; // Query string syntax: ?theme // Supported themes: Default, Generic-bright, Generic-blue, DlhSoft-gray, Purple-green, Steel-blue, Dark-black, Cyan-green, Blue-navy, Orange-brown, Teal-green, Purple-beige, Gray-blue, Aero. var queryString = window.location.search; var theme = queryString ? queryString.substr(1) : null; declare var initializePertChartTemplates; declare var initializePertChartTheme; // Retrieve and store the control element for reference purposes. var networkDiagramViewElement = <HTMLElement>document.querySelector('#networkDiagramView'); var date = new Date(), year = date.getFullYear(), month = date.getMonth(), secondDuration = 1000, minuteDuration = 60 * secondDuration, hourDuration = 60 * minuteDuration; var items = <NetworkDiagramItem[]>[ { content: 'Start milestone', displayedText: 'Start', isMilestone: true, earlyStart: new Date(year, month, 2, 8, 0, 0), earlyFinish: new Date(year, month, 2, 8, 0, 0), lateStart: new Date(year, month, 2, 8, 0, 0), lateFinish: new Date(year, month, 2, 8, 0, 0) }, { content: 'First task', displayedText: 'Task 1', effort: 8 * hourDuration, earlyStart: new Date(year, month, 2, 8, 0, 0), earlyFinish: new Date(year, month, 2, 16, 0, 0), lateStart: new Date(year, month, 2, 8, 0, 0), lateFinish: new Date(year, month, 2, 8, 0, 0), slack: 0 }, { content: 'Second task', displayedText: 'Task 2', effort: 4 * hourDuration, earlyStart: new Date(year, month, 2, 8, 0, 0), earlyFinish: new Date(year, month, 2, 12, 0, 0), lateStart: new Date(year, month, 2, 12, 0, 0), lateFinish: new Date(year, month, 2, 8, 0, 0), slack: 4 * hourDuration }, { content: 'Third task', displayedText: 'Task 3', effort: 16 * hourDuration, earlyStart: new Date(year, month, 3, 8, 0, 0), earlyFinish: new Date(year, month, 4, 16, 0, 0), lateStart: new Date(year, month, 3, 8, 0, 0), lateFinish: new Date(year, month, 4, 16, 0, 0), slack: 0 }, { content: 'Fourth task', displayedText: 'Task 4', effort: 4 * hourDuration, earlyStart: new Date(year, month, 3, 8, 0, 0), earlyFinish: new Date(year, month, 3, 12, 0, 0), lateStart: new Date(year, month, 4, 12, 0, 0), lateFinish: new Date(year, month, 4, 16, 0, 0), slack: 12 * hourDuration }, { content: 'Fifth task (middle milestone)', displayedText: 'Task 5', isMilestone: true, effort: 12 * hourDuration, earlyStart: new Date(year, month, 5, 8, 0, 0), earlyFinish: new Date(year, month, 6, 12, 0, 0), lateStart: new Date(year, month, 5, 8, 0, 0), lateFinish: new Date(year, month, 6, 12, 0, 0), slack: 0 }, { content: 'Sixth task', displayedText: 'Task 6', effort: 48 * hourDuration, earlyStart: new Date(year, month, 6, 12, 0, 0), earlyFinish: new Date(year, month, 12, 12, 0, 0), lateStart: new Date(year, month, 6, 12, 0, 0), lateFinish: new Date(year, month, 12, 12, 0, 0), slack: 0 }, { content: 'Seventh task', displayedText: 'Task 7', effort: 20 * hourDuration, earlyStart: new Date(year, month, 6, 12, 0, 0), earlyFinish: new Date(year, month, 8, 16, 0, 0), lateStart: new Date(year, month, 10, 8, 0, 0), lateFinish: new Date(year, month, 12, 12, 0, 0), slack: 28 * hourDuration }, { content: 'Finish milestone', displayedText: 'Finish', isMilestone: true, earlyStart: new Date(year, month, 12, 12, 0, 0), earlyFinish: new Date(year, month, 12, 12, 0, 0), lateStart: new Date(year, month, 12, 12, 0, 0), lateFinish: new Date(year, month, 12, 12, 0, 0) }]; items[1].predecessors = [{ item: items[0] }]; items[2].predecessors = [{ item: items[0] }]; items[3].predecessors = [{ item: items[1] }, { item: items[2] }]; items[4].predecessors = [{ item: items[1] }]; items[5].predecessors = [{ item: items[3] }, { item: items[4] }]; items[6].predecessors = [{ item: items[5] }]; items[7].predecessors = [{ item: items[5] }]; items[8].predecessors = [{ item: items[6] }, { item: items[7] }]; var settings = <NetworkDiagramView.Settings>{ }; // Optionally, initialize custom theme and templates (themes.js, templates.js). initializePertChartTheme(settings, theme); initializePertChartTemplates(settings, theme); // Initialize the component. var networkDiagramView = DlhSoft.Controls.Pert.NetworkDiagramView.initialize(networkDiagramViewElement, items, settings); function print() { networkDiagramView.print({ title: 'Network Diagram' }); }
mit
kenjoth/webprojects
src/aznet/dataModelBundle/Controller/UserController.php
5143
<?php namespace aznet\dataModelBundle\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use aznet\dataModelBundle\Entity\User; use aznet\dataModelBundle\Form\UserType; /** * User controller. * */ class UserController extends Controller { /** * Lists all User entities. * */ public function indexAction() { $em = $this->getDoctrine()->getManager(); $entities = $em->getRepository('dataModelBundle:User')->findAll(); return $this->render('dataModelBundle:User:index.html.twig', array( 'entities' => $entities, )); } /** * Finds and displays a User entity. * */ public function showAction($id) { $em = $this->getDoctrine()->getManager(); $entity = $em->getRepository('dataModelBundle:User')->find($id); if (!$entity) { throw $this->createNotFoundException('Unable to find User entity.'); } $deleteForm = $this->createDeleteForm($id); return $this->render('dataModelBundle:User:show.html.twig', array( 'entity' => $entity, 'delete_form' => $deleteForm->createView(), )); } /** * Displays a form to create a new User entity. * */ public function newAction() { $entity = new User(); $form = $this->createForm(new UserType(), $entity); return $this->render('dataModelBundle:User:new.html.twig', array( 'entity' => $entity, 'form' => $form->createView(), )); } /** * Creates a new User entity. * */ public function createAction(Request $request) { $entity = new User(); $form = $this->createForm(new UserType(), $entity); $form->bind($request); if ($form->isValid()) { $em = $this->getDoctrine()->getManager(); $factory = $this->get('security.encoder_factory'); $encoder = $factory->getEncoder($entity); $entity->setSalt(md5(uniqid($entity->getUsername(), true))); $password = $encoder->encodePassword($entity->getPassword(), $entity->getSalt()); $entity->setPassword($password); $em->persist($entity); $em->flush(); return $this->redirect($this->generateUrl('admin_user_show', array('id' => $entity->getId()))); } return $this->render('dataModelBundle:User:new.html.twig', array( 'entity' => $entity, 'form' => $form->createView(), )); } /** * Displays a form to edit an existing User entity. * */ public function editAction($id) { $em = $this->getDoctrine()->getManager(); $entity = $em->getRepository('dataModelBundle:User')->find($id); if (!$entity) { throw $this->createNotFoundException('Unable to find User entity.'); } $editForm = $this->createForm(new UserType(), $entity); $deleteForm = $this->createDeleteForm($id); return $this->render('dataModelBundle:User:edit.html.twig', array( 'entity' => $entity, 'edit_form' => $editForm->createView(), 'delete_form' => $deleteForm->createView(), )); } /** * Edits an existing User entity. * */ public function updateAction(Request $request, $id) { $em = $this->getDoctrine()->getManager(); $entity = $em->getRepository('dataModelBundle:User')->find($id); if (!$entity) { throw $this->createNotFoundException('Unable to find User entity.'); } $deleteForm = $this->createDeleteForm($id); $editForm = $this->createForm(new UserType(), $entity); $editForm->bind($request); if ($editForm->isValid()) { $em->persist($entity); $em->flush(); return $this->redirect($this->generateUrl('admin_user_edit', array('id' => $id))); } return $this->render('dataModelBundle:User:edit.html.twig', array( 'entity' => $entity, 'edit_form' => $editForm->createView(), 'delete_form' => $deleteForm->createView(), )); } /** * Deletes a User entity. * */ public function deleteAction(Request $request, $id) { $form = $this->createDeleteForm($id); $form->bind($request); if ($form->isValid()) { $em = $this->getDoctrine()->getManager(); $entity = $em->getRepository('dataModelBundle:User')->find($id); if (!$entity) { throw $this->createNotFoundException('Unable to find User entity.'); } $em->remove($entity); $em->flush(); } return $this->redirect($this->generateUrl('admin_user')); } private function createDeleteForm($id) { return $this->createFormBuilder(array('id' => $id)) ->add('id', 'hidden') ->getForm() ; } }
mit
zeroed/acinus
lib/model/news.rb
884
# lib/model/news.rb require_relative '../util/rss_helper' class News attr_reader :id, :title, :source, :timestamp @@last_headlines = [] def initialize id, title, source = 'rss' @id = id @title = title @source = source @timestamp = Time.now end def self.all if @@last_headlines.empty? @@last_headlines.clear source = RssHelper.get_rss_title headlines = RssHelper.get_headlines headlines.each_with_index do |item, index| @@last_headlines << News.new(index, item, source) end end @@last_headlines end def self.find_by_id id self.all.find do |item| item.id == id.to_i end end def self.refresh # TODO:for fun @@last_headlines.all.each do |news| news.item.reverse! end @@last_headlines end class << self alias_method :find, :find_by_id end end
mit
dchaib/PronoFoot
src/PronoFoot/ViewModels/DayEditViewModel.cs
263
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace PronoFoot.ViewModels { public class DayEditViewModel { public string DayName { get; set; } public DayFormViewModel Day { get; set; } } }
mit
ThorConzales/AoE2HDLobbyCompanion
Commons/Models/Commands/LogCommand.cs
245
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Commons.Models.Commands { public class LogCommand : BaseCommand { public Log Log { get; set; } } }
mit
JustOpenSource/fatalshootings
src/utils/get-filtered-data-dev.js
242
let data = require('../../data/fe.json'); let filterData = require('./lambda/filter-list-logic'); module.exports = function(filter, cb){ let filteredData = filterData(data.items, filter); cb(null, JSON.stringify({body: filteredData})); }
mit
gmbeard/shared_ptr
scoped_ptr/scoped_ptr.hpp
3525
/* The MIT License (MIT) Copyright (c) 2015 Greg Beard 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. */ #ifndef GMB_MEMORY_SCOPED_PTR_HPP_INCLUDED #define GMB_MEMORY_SCOPED_PTR_HPP_INCLUDED 1 #include "../shared_ptr/detail/traits.hpp" #include "../shared_ptr/detail/shared_ptr_handle.hpp" #include "detail/scoped_ptr_base.hpp" namespace gmb { namespace memory { template<typename T, typename Deleter = detail::default_deleter<T> > class scoped_ptr : public detail::scoped_ptr_base<T> { using detail::scoped_ptr_base<T>::ptr_; public: typedef typename detail::scoped_ptr_base<T>::pointer_type pointer_type; typedef typename detail::scoped_ptr_base<T>::const_pointer_type const_pointer_type; typedef typename detail::scoped_ptr_base<T>::reference_type reference_type; typedef typename detail::scoped_ptr_base<T>::const_reference_type const_reference_type; typedef Deleter deleter_type; explicit scoped_ptr(deleter_type d = deleter_type()) : detail::scoped_ptr_base<T>(), deleter_(d) { } template<typename U> explicit scoped_ptr(U *p) : detail::scoped_ptr_base<T>(static_cast<pointer_type>(p)), deleter_(deleter_type()) { } template<typename U, typename UDeleter> scoped_ptr(U *p, UDeleter d) : detail::scoped_ptr_base<T>(static_cast<pointer_type>(p)), deleter_(d) { } ~scoped_ptr() { deleter_(ptr_); } friend void swap(scoped_ptr &lhs, scoped_ptr &rhs) { using std::swap; swap(lhs.ptr_, rhs.ptr_); swap(lhs.deleter_, rhs.deleter_); } template<typename U> void reset(U *p) { scoped_ptr tmp(p, deleter_); swap(*this, tmp); } pointer_type release() { pointer_type tmp = ptr_; ptr_ = 0; return tmp; } pointer_type operator->() { return ptr_; } const_pointer_type operator->() const { return ptr_; } reference_type operator*() { return *ptr_; } const_reference_type operator*() const { return *ptr_; } operator bool() const { return ptr_ != 0; } pointer_type get() { return ptr_; } const_pointer_type get() const { return ptr_; } private: scoped_ptr(scoped_ptr const &) /* = delete */; scoped_ptr & operator=(scoped_ptr const &) /* = delete */; Deleter deleter_; }; }} #endif //GMB_MEMORY_SCOPED_PTR_HPP_INCLUDED
mit
Reprazent/hound
spec/models/style_guide/ruby_spec.rb
9360
require "attr_extras" require "rubocop" require "sentry-raven" require "fast_spec_helper" require "app/models/style_guide/base" require "app/models/style_guide/ruby" require "app/models/violation" describe StyleGuide::Ruby, "#violations_in_file" do context "with default configuration" do describe "for { and } as %r literal delimiters" do it "returns no violations" do expect(violations_in(<<-CODE)).to eq [] "test" =~ %r|test| CODE end end describe "for private prefix" do it "returns no violations" do expect(violations_in(<<-CODE)).to eq [] private def foo bar end CODE end end describe "for trailing commas" do it "returns violations" do expect(violations_in(<<-CODE)).not_to be_empty _one = [ 1, ] _two( 1, ) _three = { one: 1, } CODE end end describe "for single line conditional" do it "returns no violations" do expect(violations_in(<<-CODE)).to eq [] redirect_to dashboard_path if signed_in? while signed_in? do something end CODE end end describe "for has_* method name" do it "returns no violations" do expect(violations_in(<<-CODE)).to eq [] def has_something? "something" end CODE end end describe "for is_* method name" do it "returns violations" do expect(violations_in(<<-CODE)).not_to be_empty def is_something? "something" end CODE end end describe "when using detect" do it "returns no violations" do expect(violations_in(<<-CODE)).to eq [] users.detect do |user| user.active? end CODE end end describe "when using find" do it "returns violations" do expect(violations_in(<<-CODE)).not_to be_empty users.find do |user| user.active? end CODE end end describe "when using select" do it "returns no violations" do expect(violations_in(<<-CODE)).to eq [] users.select do |user| user.active? end CODE end end describe "when using find_all" do it "returns violations" do expect(violations_in(<<-CODE)).not_to be_empty users.find_all do |user| user.active? end CODE end end describe "when using map" do it "returns no violations" do expect(violations_in(<<-CODE)).to eq [] users.map do |user| user.name end CODE end end describe "when using collect" do it "returns violations" do expect(violations_in(<<-CODE)).not_to be_empty users.collect do |user| user.name end CODE end end describe "when using inject" do it "returns no violations" do expect(violations_in(<<-CODE)).to eq [] users.inject(0) do |sum, user| sum + user.age end CODE end end describe "when using reduce" do it "returns violations" do expect(violations_in(<<-CODE)).not_to be_empty users.reduce(0) do |result, user| user.age end CODE end end context "for long line" do it "returns violation" do expect(violations_in("a" * 81)).not_to be_empty end end context "for trailing whitespace" do it "returns violation" do expect(violations_in("one = 1 ")).not_to be_empty end end context "for spaces after (" do it "returns violations" do expect(violations_in(<<-CODE)).not_to be_empty puts( "test") CODE end end context "for spaces before )" do it "returns violations" do expect(violations_in(<<-CODE)).not_to be_empty puts("test" ) CODE end end context "for spaces before ]" do it "returns violations" do expect(violations_in(<<-CODE)).not_to be_empty a["test" ] CODE end end context "for private methods indented more than public methods" do it "returns violations" do expect(violations_in(<<-CODE)).not_to be_empty def one 1 end private def two 2 end CODE end end context "for leading dot used for multi-line method chain" do it "returns violations" do expect(violations_in(<<-CODE)).not_to be_empty one .two .three CODE end end context "for tab indentation" do it "returns violations" do expect(violations_in(<<-CODE)).not_to be_empty def test \tputs "test" end CODE end end context "for two methods without newline separation" do it "returns violations" do expect(violations_in(<<-CODE)).not_to be_empty def one 1 end def two 2 end CODE end end context "for operator without surrounding spaces" do it "returns violations" do expect(violations_in(<<-CODE)).not_to be_empty two = 1+1 CODE end end context "for comma without trailing space" do it "returns violations" do expect(violations_in(<<-CODE)).not_to be_empty puts :one,:two CODE end end context "for colon without trailing space" do it "returns violations" do expect(violations_in(<<-CODE)).not_to be_empty {one:1} CODE end end context "for semicolon without trailing space" do it "returns violations" do expect(violations_in(<<-CODE)).not_to be_empty puts :one;puts :two CODE end end context "for opening brace without leading space" do it "returns violations" do expect(violations_in(<<-CODE)).not_to be_empty a ={ one: 1 } CODE end end context "for opening brace without trailing space" do it "returns violations" do expect(violations_in(<<-CODE)).not_to be_empty a = {one: 1 } CODE end end context "for closing brace without leading space" do it "returns violations" do expect(violations_in(<<-CODE)).not_to be_empty a = { one: 1} CODE end end context "for method definitions with optional named arguments" do it "does not return violations" do expect(violations_in(<<-CODE)).to be_empty def register_email(email:) register(email) end CODE end end context "for required keyword arguments" do context "without space after arguments" do it "returns no violations" do code = <<-CODE.strip_heredoc def initialize(name:, age:) @name = name @age = age end CODE expect(violations_in(code)).to be_empty end end context "with spaces after arguments" do it "returns violations" do code = <<-CODE.strip_heredoc def initialize(name: , age: ) @name = name @age = age end CODE violations = violations_in(code) expect(violations).to eq [ "Space found before comma.", "Space inside parentheses detected.", ] end end end end context "with custom configuration" do it "finds only one violation" do config = { "StringLiterals" => { "EnforcedStyle" => "double_quotes", "Enabled" => "true", } } violations = violations_with_config(config) expect(violations).to eq ["Use the new Ruby 1.9 hash syntax."] end it "can use custom configuration to show rubocop cop names" do config = { "ShowCopNames" => "true" } violations = violations_with_config(config) expect(violations).to eq [ "Style/HashSyntax: Use the new Ruby 1.9 hash syntax." ] end context "with old-style syntax" do it "has one violation" do config = { "StringLiterals" => { "EnforcedStyle" => "single_quotes" }, "HashSyntax" => { "EnforcedStyle" => "hash_rockets" }, } violations = violations_with_config(config) expect(violations).to eq [ "Prefer single-quoted strings when you don't need string "\ "interpolation or special symbols." ] end end context "with excluded files" do it "has no violations" do config = { "AllCops" => { "Exclude" => ["lib/a.rb"] } } violations = violations_with_config(config) expect(violations).to be_empty end end def violations_with_config(config) content = <<-TEXT.strip_heredoc def test_method { :foo => "hello world" } end TEXT violations_in(content, config) end end private def violations_in(content, config = nil) repo_config = double("RepoConfig", enabled_for?: true, for: config) style_guide = StyleGuide::Ruby.new(repo_config) style_guide.violations_in_file(build_file(content)).flat_map(&:messages) end def build_file(content) line = double("Line", content: "blah", number: 1, patch_position: 2) double("CommitFile", content: content, filename: "lib/a.rb", line_at: line) end end
mit
ximsfei/Android-skin-support
android/skin/src/main/java/skin/support/widget/SkinCompatRatingBar.java
1196
package skin.support.widget; import android.content.Context; import android.util.AttributeSet; import android.widget.RatingBar; import skin.support.R; /** * Created by ximsfei on 17-1-21. */ public class SkinCompatRatingBar extends RatingBar implements SkinCompatSupportable { private SkinCompatProgressBarHelper mSkinCompatProgressBarHelper; public SkinCompatRatingBar(Context context) { this(context, null); } public SkinCompatRatingBar(Context context, AttributeSet attrs) { super(context, attrs); init(context, attrs, R.attr.ratingBarStyle); } public SkinCompatRatingBar(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); init(context, attrs, defStyleAttr); } private void init(Context context, AttributeSet attrs, int defStyleAttr) { mSkinCompatProgressBarHelper = new SkinCompatProgressBarHelper(this); mSkinCompatProgressBarHelper.loadFromAttributes(attrs, defStyleAttr); } @Override public void applySkin() { if (mSkinCompatProgressBarHelper != null) { mSkinCompatProgressBarHelper.applySkin(); } } }
mit