repo_name
stringlengths 4
116
| path
stringlengths 4
379
| size
stringlengths 1
7
| content
stringlengths 3
1.05M
| license
stringclasses 15
values |
---|---|---|---|---|
extremeframework/extremeframework | shared/app_constant.php | 1729 | <?php
////////////////////////////////////////////////////////
// Do not edit this file. It is automatically generated
//________________(SYSTEM)____________________
// Default currency
define('DEFAULT_CURRENCY_SYMBOL', '$');
// Application name
define('CONFIG_APPLICATION_NAME', 'Extreme Framework');
// CSV separator
define('CSV_SEPARATOR', ',');
// Date format
define('DATE_FORMAT', 'mm-dd-yy');
// Date format (in Smarty)
define('SMARTY_DATE_FORMAT', '%m-%d-%Y');
// Copyright notice
define('COPYRIGHT_NOTICE', 'Copyright © 2011-2015 Extreme Framework. All rights reserved.');
// Default user group
define('DEFAULT_USER_GROUP', '2');
// Positive currency format
define('POSITIVE_CURRENCY_FORMAT', '%s%n');
// Negative currency format
define('NEGATIVE_CURRENCY_FORMAT', '(%s%n)');
// Organization name
define('ORGANIZATION_NAME', 'Extreme Framework');
// Organization name (short)
define('ORGANIZATION_NAME_SHORT', 'Extreme Framework');
// Support name
define('SUPPORT_NAME', 'Extreme Framework');
// Support email
define('SUPPORT_EMAIL', '');
// Default public dashboard
define('DEFAULT_PUBLIC_DASHBOARD', '3');
// GetResponse API key
define('GETRESPONSE_API_KEY', '');
// Use SMTP for sending emails?
define('MAILER_USE_SMTP', '1');
// SMTP host
define('MAILER_SMTP_HOST', 'smtp.gmail.com');
// SMTP port
define('MAILER_SMTP_PORT', '465');
// SMTP username
define('MAILER_SMTP_USERNAME', '');
// SMTP password
define('MAILER_SMTP_PASSWORD', '******');
// Save draft interval (seconds)
define('SAVE_DRAFT_INTERVAL', '10');
// SMTP encryption (tls|ssl)
define('MAILER_SMTP_ENCRYPTION', 'ssl');
//________________(SYNC)____________________
// Cloud sync option
define('CLOUD_SYNC_ENABLED', '1');
| mit |
olistik/sftp_downloader | spec/sftp_downloader_spec.rb | 210 | require 'spec_helper'
describe SftpDownloader do
it 'has a version number' do
expect(SftpDownloader::VERSION).not_to be nil
end
it 'does something useful' do
expect(false).to eq(true)
end
end
| mit |
Ruslan-Pantaev/MIDI_music_generator | src-programs/midi_chord_types.cpp | 9634 | #include <iostream>
#include <cassert>
#include <string>
#include <vector>
#include <unordered_map>
#include "midi_chord_types.h"
#include "midi_misc.h"
using namespace std;
MIDI_Chord::MIDI_Chord() : note(0), chords_vec( {} ) { }
unordered_map<string, vector<int>> MIDI_Chord::chord_master {
// DYADS
{ "_unison", { 0,0 } },
{ "_b2", { 0,1 } },
{ "_2", { 0,2 } },
{ "_b3", { 0,3 } },
{ "_3", { 0,4 } },
{ "_4", { 0,5 } },
{ "_b5", { 0,6 } },
{ "_5", { 0,7 } },
{ "_b6", { 0,8 } },
{ "_6", { 0,9 } },
{ "_b7", { 0,10 } },
{ "_7", { 0,11 } },
{ "_8va", { 0,12 } },
{ "_b9", { 0,13 } },
{ "_9", { 0,14 } },
{ "_b10", { 0,15 } },
{ "_10", { 0,16 } },
{ "_11", { 0,17 } },
{ "_b12", { 0,18 } },
{ "_12", { 0,19 } },
{ "_b13", { 0,20 } },
{ "_13", { 0,21 } },
{ "_b14", { 0,22 } },
{ "_14", { 0,23 } },
{ "_15ma", { 0,24 } },
// end-DYADS
// TRIADS
{ "maj", { 0,4,7 } },
{ "min", { 0,3,7 } },
{ "sus2", { 0,2,7 } },
{ "sus4", { 0,5,7 } },
{ "dim", { 0,3,6 } },
{ "aug", { 0,4,8 } },
// end-TRIADS
// SEVENTHS/QUADS
{ "maj7", { 0,4,7,11 } },
{ "min7", { 0,3,7,10 } },
{ "dom7", { 0,4,7,10 } },
{ "min7_b5", { 0,3,6,10 } },
{ "half_dim7", { 0,3,6,10 } },
{ "dim7", { 0,3,6,9 } },
{ "full_dim7", { 0,3,6,9 } },
{ "min_maj7", { 0,3,7,11 } },
{ "maj7_sus2", { 0,2,7,11 } },
{ "maj7_sus4", { 0,5,7,11 } },
{ "min7_sus2", { 0,2,7,10 } },
{ "min7_sus4", { 0,5,7,10 } },
{ "maj6", { 0,4,7,9 } },
{ "min6", { 0,3,7,9 } },
{ "maj_add_b9", { 0,4,7,13 } },
{ "maj_add_9", { 0,4,7,14 } },
{ "maj_add_sharp9", { 0,4,7,15 } },
{ "maj_add_b10", { 0,4,7,15 } },
{ "maj_add_11", { 0,4,7,17 } },
{ "maj_add_sharp11", { 0,4,7,18 } },
{ "maj_add_b12", { 0,4,7,18 } },
{ "maj_add_13", { 0,4,7,21 } },
{ "maj_add_sharp13", { 0,4,7,22 } },
{ "maj_add_b14", { 0,4,7,22 } },
{ "min_add_b9", { 0,3,7,13 } },
{ "min_add_9", { 0,3,7,14 } },
{ "min_add_sharp9", { 0,3,7,15 } },
{ "min_add_b10", { 0,3,7,15 } },
{ "min_add_11", { 0,3,7,17 } },
{ "min_add_sharp11", { 0,3,7,18 } },
{ "min_add_b12", { 0,3,7,18 } },
{ "min_add_13", { 0,3,7,21 } },
{ "min_add_sharp13", { 0,3,7,22 } },
{ "min_add_b14", { 0,3,7,22 } },
{ "sus2_add_9", { 0,2,7,14 } },
{ "sus2_add_sharp9", { 0,2,7,15 } },
{ "sus2_add_b10", { 0,2,7,15 } },
{ "sus2_add_11", { 0,2,7,17 } },
{ "sus2_add_sharp11", { 0,2,7,18 } },
{ "sus2_add_b12", { 0,2,7,18 } },
{ "sus2_add_13", { 0,2,7,21 } },
{ "sus2_add_sharp13", { 0,2,7,22 } },
{ "sus2_add_b14", { 0,2,7,22 } },
{ "sus4_add_9", { 0,5,7,14 } },
{ "sus4_add_sharp9", { 0,5,7,15 } },
{ "sus4_add_b10", { 0,5,7,15 } },
{ "sus4_add_11", { 0,5,7,17 } },
{ "sus4_add_sharp11", { 0,5,7,18 } },
{ "sus4_add_b12", { 0,5,7,18 } },
{ "sus4_add_13", { 0,5,7,21 } },
{ "sus4_add_sharp13", { 0,5,7,22 } },
{ "sus4_add_b14", { 0,5,7,22 } },
// end-SEVENTHS/QUADS
// NINTHS/QUINTS
{ "maj9", { 0,4,7,11,14 } },
{ "min9", { 0,3,7,10,14 } },
{ "dom9", { 0,4,7,10,14 } },
{ "min9_b5", { 0,3,6,10,14 } },
{ "maj11", { 0,4,11,14,18 } },
{ "min11", { 0,3,10,14,17 } },
{ "maj13", { 0,4,11,14,21 } },
{ "min13", { 0,3,10,14,21 } },
{ "dom11", { 0,4,10,14,18 } },
{ "dom13", { 0,4,10,14,21 } }
// end-NINTHS/QUINTS
};
/* Creating second unordered_map containing simpler chords
* useable for random chord generation
*/
unordered_map<string, vector<int>> MIDI_Chord::random_chord_master {
// TRIADS
{ "maj", { 0,4,7 } },
{ "min", { 0,3,7 } },
{ "sus2", { 0,2,7 } },
{ "sus4", { 0,5,7 } },
{ "dim", { 0,3,6 } },
// end-TRIADS
// SEVENTHS/QUADS
{ "maj7", { 0,4,7,11 } },
{ "min7", { 0,3,7,10 } },
{ "dom7", { 0,4,7,10 } },
{ "half_dim7", { 0,3,6,10 } },
{ "full_dim7", { 0,3,6,9 } },
{ "maj7_sus2", { 0,2,7,11 } },
{ "maj7_sus4", { 0,5,7,11 } },
{ "min7_sus2", { 0,2,7,10 } },
{ "min7_sus4", { 0,5,7,10 } },
{ "maj6", { 0,4,7,9 } },
{ "min6", { 0,3,7,9 } },
{ "maj_add_9", { 0,4,7,14 } },
{ "maj_add_11", { 0,4,7,17 } },
{ "maj_add_13", { 0,4,7,21 } },
{ "min_add_9", { 0,3,7,14 } },
{ "min_add_11", { 0,3,7,17 } },
{ "sus2_add_9", { 0,2,7,14 } },
{ "sus2_add_11", { 0,2,7,17 } },
{ "sus2_add_13", { 0,2,7,21 } },
{ "sus4_add_9", { 0,5,7,14 } },
{ "sus4_add_11", { 0,5,7,17 } },
{ "sus4_add_13", { 0,5,7,21 } },
// end-SEVENTHS/QUADS
// NINTHS/QUINTS
{ "maj9", { 0,4,7,11,14 } },
{ "min9", { 0,3,7,10,14 } },
{ "dom9", { 0,4,7,10,14 } },
{ "maj11", { 0,4,11,14,18 } },
{ "min11", { 0,3,10,14,17 } },
{ "maj13", { 0,4,11,14,21 } },
{ "min13", { 0,3,10,14,21 } },
{ "dom11", { 0,4,10,14,18 } },
{ "dom13", { 0,4,10,14,21 } }
// end-NINTHS/QUINTS
};
ostream &operator <<(ostream &os, const MIDI_Chord &midi_chord) {
/* using cbegin() and cend when working with const object */
unordered_map<string, vector<int>>::const_iterator it = midi_chord.chord_master.cbegin();
while (it != midi_chord.chord_master.cend()) {
os << "chord: " << it->first;
if (it->first.length() > 8) {
os << "\t\t";
} else {
os << "\t\t\t";
}
auto vec_end = it->second.cend();
for (auto it2 = it->second.cbegin(); it2 != vec_end; ++it2) {
os << *it2 << (it2 == vec_end-1 ? "\n" : ", ");
}
it++;
}
return os;
}
int MIDI_Chord::note_octave(int note) {
return note + 12;
}
void MIDI_Chord::oct_up(int index) {
vector<int>::size_type size = chords_vec[index].size();
for (int i=0; i<size; ++i) {
chords_vec[index][i] += 12;
}
}
void MIDI_Chord::oct_down(int index) {
vector<int>::size_type size = chords_vec[index].size();
for (int i=0; i<size; ++i) {
chords_vec[index][i] -= 12;
}
}
void MIDI_Chord::inversion(int index, int inv_type) {
/* usage:
* 1 = first inv {12,x,x,x}
* 2 = second inv {12,12,x,x}
* 3 = third inv {12,12,12,x}
*/
if (inv_type != 1 && inv_type != 2 && inv_type != 3) {
cerr << "usage: inv_type must be 1, 2 or 3" << endl;
return;
}
chords_vec[index].at(0) += 12; // will work on all chords including dyad
if (inv_type == 2) {
chords_vec[index].at(1) += 12;
} else if (inv_type == 3) {
chords_vec[index].at(1) += 12;
chords_vec[index].at(2) += 12;
}
}
vector<int> MIDI_Chord::get_chord(int key, string chord_type) {
vector<int>::size_type size = chord_master[chord_type].size();
vector<int> temp(size);
for (int i=0; i<size; ++i) {
temp[i] = chord_master[chord_type][i] + key;
}
return temp;
}
void MIDI_Chord::set_chord(int key, string chord_type, vector<int> &new_chord) {
vector<int>::size_type size = chord_master[chord_type].size();
new_chord.reserve(size);
for (int i=0; i<size; ++i) {
new_chord[i] = chord_master[chord_type][i] + key;
}
}
void MIDI_Chord::add_chord(int key, string chord_type) {
chords_vec.push_back(get_chord(key, chord_type));
}
void MIDI_Chord::randomize_key(string chord_type, vector<int> &chord) {
vector<int>::size_type size = chord.size();
int new_key = random_int(0,11);
cout << "NEW RANDOM KEY: " << new_key << " CHORD: " << chord_type << "\n";
for (int i=0; i<size; ++i) {
chord[i] += new_key;
}
}
void MIDI_Chord::define_key(int relative_key, string chord_type, vector<int> &chord) {
vector<int>::size_type size = chord.size();
cout << "RELATIVE KEY: " << relative_key << " CHORD: " << chord_type << "\n";
for (int i=0; i<size; ++i) {
chord[i] += relative_key;
}
}
void MIDI_Chord::add_rand_chord() {
auto random_it = next(begin(chord_master), random_int(0, chord_master.size()-1 ));
chords_vec.push_back(chord_master[random_it->first]);
randomize_key(random_it->first, chords_vec.back());
}
void MIDI_Chord::add_rand_chord(int key) {
auto random_it(random_chord_master.begin());
advance(random_it, random_int(0, random_chord_master.size()-1));
string chord_type = random_it->first;
if (chord_type.find("maj") != string::npos) {
int n = random_int(0,5);
if (n < 4) { // this maj chord remains the root I chord
} else if (n == 4) {
key += 5; // this maj chord will become the IV chord
} else if (n == 5) {
key += 7; // this maj chord will become the V chord
}
} else if (chord_type.find("min") != string::npos) {
int n = random_int(0,5);
if (n == 0) {
key += 2; // this min chord will become the ii chord
} else if (n == 1) {
key += 4; // this min chord will become the iii chord
} else {
key += 9; // this min chord will become the vi chord
}
} else if (chord_type.find("dom") != string::npos) {
key += 7; // this dom chord will become the V chord
} else if (chord_type.find("dim") != string::npos) {
key += 11; // this dim / b5 chord will become the vii chord
} else if (chord_type.find("sus2") != string::npos
|| chord_type.find("sus4") != string::npos) {
int n = random_int(0,5);
if (n < 4) { // this sus chord remains the root I chord
} else if (n == 4) {
key += 5; // this sus chord will become the IV chord
} else if (n == 5) {
key += 7; // this sus chord will become the V chord
}
} else { } // undefined; leave key unchanged (TODO define rest?)
chords_vec.push_back(random_chord_master[chord_type]);
define_key(key, chord_type, chords_vec.back());
}
void MIDI_Chord::pop_chord() {
chords_vec.pop_back();
}
vector<int> MIDI_Chord::return_chord(int index) {
return chords_vec[index];
}
void MIDI_Chord::print_chords() {
if (chords_vec.empty()) {
cout << "chords_vec is empty!"; return;
}
vector<int>::size_type size_outer = chords_vec.size();
for (unsigned int i=0; i<size_outer; ++i) {
cout << "Index: " << i << " Chord: ";
for (unsigned int j=0; j<chords_vec[i].size(); ++j) {
cout << chords_vec[i][j] << " ";
}
cout << "\n";
}
} | mit |
platanus/hound | app/models/linter/haml.rb | 75 | module Linter
class Haml < Base
FILE_REGEXP = /.+\.haml\z/
end
end
| mit |
feedbin/feedbin | app/helpers/actions_helper.rb | 1261 | module ActionsHelper
def action_feed_names(action)
output = []
user = User.find(action.user_id)
feed_names = user.feeds.where(id: action.feed_ids).include_user_title.map { |feed|
feed.title
}
feed_names.sort!
output << feed_names.shift(2).join(", ")
if feed_names.present?
output << "and #{feed_names.length} more feeds"
end
output.join(" ")
end
def action_tag_names(action)
Tag.where(id: action.tag_ids).order(name: :asc).pluck(:name).join(", ")
end
def action_names(action)
actions = []
action.actions.each do |action_name|
if action_name.present?
actions << action_label(action_name)
end
end
if actions.present?
actions.join(" and ")
else
"do nothing"
end
end
def action_label(value)
action_label = ""
Feedbin::Application.config.action_names.each do |action_name|
if action_name.value == value
action_label = action_name.label.downcase
end
end
action_label
end
def feed_checkbox_options(form)
options = {data: {behavior: "collection_checkbox"}}
if form.object.all_feeds == true
options[:disabled] = "disabled"
options[:checked] = true
end
options
end
end
| mit |
Postcard/figure-sdk-node | lib/resources/Events.js | 231 | 'use strict';
var FigureResource = require('../FigureResource');
var figureMethod = FigureResource.method;
module.exports = FigureResource.extend({
path: 'events',
includeBasic: ['create', 'get', 'getAll', 'edit', 'del']
}); | mit |
ARM-software/armnn | delegate/src/test/ActivationTestHelper.hpp | 5912 | //
// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include "TestUtils.hpp"
#include <armnn_delegate.hpp>
#include <flatbuffers/flatbuffers.h>
#include <tensorflow/lite/interpreter.h>
#include <tensorflow/lite/kernels/register.h>
#include <tensorflow/lite/model.h>
#include <tensorflow/lite/schema/schema_generated.h>
#include <tensorflow/lite/version.h>
#include <doctest/doctest.h>
namespace
{
std::vector<char> CreateActivationTfLiteModel(tflite::BuiltinOperator activationOperatorCode,
tflite::TensorType tensorType,
const std::vector <int32_t>& tensorShape)
{
using namespace tflite;
flatbuffers::FlatBufferBuilder flatBufferBuilder;
std::array<flatbuffers::Offset<tflite::Buffer>, 1> buffers;
buffers[0] = CreateBuffer(flatBufferBuilder, flatBufferBuilder.CreateVector({}));
std::array<flatbuffers::Offset<Tensor>, 2> tensors;
tensors[0] = CreateTensor(flatBufferBuilder,
flatBufferBuilder.CreateVector<int32_t>(tensorShape.data(), tensorShape.size()),
tensorType);
tensors[1] = CreateTensor(flatBufferBuilder,
flatBufferBuilder.CreateVector<int32_t>(tensorShape.data(), tensorShape.size()),
tensorType);
// create operator
const std::vector<int> operatorInputs{0};
const std::vector<int> operatorOutputs{1};
flatbuffers::Offset <Operator> unaryOperator =
CreateOperator(flatBufferBuilder,
0,
flatBufferBuilder.CreateVector<int32_t>(operatorInputs.data(), operatorInputs.size()),
flatBufferBuilder.CreateVector<int32_t>(operatorOutputs.data(), operatorOutputs.size()));
const std::vector<int> subgraphInputs{0};
const std::vector<int> subgraphOutputs{1};
flatbuffers::Offset <SubGraph> subgraph =
CreateSubGraph(flatBufferBuilder,
flatBufferBuilder.CreateVector(tensors.data(), tensors.size()),
flatBufferBuilder.CreateVector<int32_t>(subgraphInputs.data(), subgraphInputs.size()),
flatBufferBuilder.CreateVector<int32_t>(subgraphOutputs.data(), subgraphOutputs.size()),
flatBufferBuilder.CreateVector(&unaryOperator, 1));
flatbuffers::Offset <flatbuffers::String> modelDescription =
flatBufferBuilder.CreateString("ArmnnDelegate: Activation Operator Model");
flatbuffers::Offset <OperatorCode> operatorCode = CreateOperatorCode(flatBufferBuilder, activationOperatorCode);
flatbuffers::Offset <Model> flatbufferModel =
CreateModel(flatBufferBuilder,
TFLITE_SCHEMA_VERSION,
flatBufferBuilder.CreateVector(&operatorCode, 1),
flatBufferBuilder.CreateVector(&subgraph, 1),
modelDescription,
flatBufferBuilder.CreateVector(buffers.data(), buffers.size()));
flatBufferBuilder.Finish(flatbufferModel);
return std::vector<char>(flatBufferBuilder.GetBufferPointer(),
flatBufferBuilder.GetBufferPointer() + flatBufferBuilder.GetSize());
}
void ActivationTest(tflite::BuiltinOperator activationOperatorCode,
std::vector<armnn::BackendId>& backends,
std::vector<float>& inputValues,
std::vector<float>& expectedOutputValues)
{
using namespace tflite;
std::vector<int32_t> inputShape { { 4, 1, 4} };
std::vector<char> modelBuffer = CreateActivationTfLiteModel(activationOperatorCode,
::tflite::TensorType_FLOAT32,
inputShape);
const Model* tfLiteModel = GetModel(modelBuffer.data());
// Create TfLite Interpreters
std::unique_ptr<Interpreter> armnnDelegateInterpreter;
CHECK(InterpreterBuilder(tfLiteModel, ::tflite::ops::builtin::BuiltinOpResolver())
(&armnnDelegateInterpreter) == kTfLiteOk);
CHECK(armnnDelegateInterpreter != nullptr);
CHECK(armnnDelegateInterpreter->AllocateTensors() == kTfLiteOk);
std::unique_ptr<Interpreter> tfLiteInterpreter;
CHECK(InterpreterBuilder(tfLiteModel, ::tflite::ops::builtin::BuiltinOpResolver())
(&tfLiteInterpreter) == kTfLiteOk);
CHECK(tfLiteInterpreter != nullptr);
CHECK(tfLiteInterpreter->AllocateTensors() == kTfLiteOk);
// Create the ArmNN Delegate
armnnDelegate::DelegateOptions delegateOptions(backends);
std::unique_ptr<TfLiteDelegate, decltype(&armnnDelegate::TfLiteArmnnDelegateDelete)>
theArmnnDelegate(armnnDelegate::TfLiteArmnnDelegateCreate(delegateOptions),
armnnDelegate::TfLiteArmnnDelegateDelete);
CHECK(theArmnnDelegate != nullptr);
// Modify armnnDelegateInterpreter to use armnnDelegate
CHECK(armnnDelegateInterpreter->ModifyGraphWithDelegate(theArmnnDelegate.get()) == kTfLiteOk);
// Set input data
armnnDelegate::FillInput<float>(tfLiteInterpreter, 0, inputValues);
armnnDelegate::FillInput<float>(armnnDelegateInterpreter, 0, inputValues);
// Run EnqueWorkload
CHECK(tfLiteInterpreter->Invoke() == kTfLiteOk);
CHECK(armnnDelegateInterpreter->Invoke() == kTfLiteOk);
// Compare output data
armnnDelegate::CompareOutputData<float>(tfLiteInterpreter,
armnnDelegateInterpreter,
inputShape,
expectedOutputValues);
tfLiteInterpreter.reset(nullptr);
armnnDelegateInterpreter.reset(nullptr);
}
} // anonymous namespace | mit |
Markonis/JCrypt | src/encryption/algorithm/blockMode/BlockMode.java | 3050 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package encryption.algorithm.blockMode;
import encryption.Configuration;
import encryption.algorithm.A51;
import encryption.algorithm.blockEncryptor.BlockEncryptor;
import encryption.algorithm.blockEncryptor.Tea;
import encryption.algorithm.blockEncryptor.XTea;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author marko
*/
public class BlockMode {
protected int[] blockBuffer;
protected int blockLength; // Size of block buffer in bytes
protected BlockEncryptor blockEncryptor;
public BlockMode(Configuration configuration) {
blockLength = Integer.parseInt(configuration.get("blockLength"));
blockBuffer = new int[blockLength];
String encryptor = configuration.get("encryptor");
if(encryptor.equals("Tea")){
this.blockEncryptor = new Tea(configuration);
}else if(encryptor.equals("XTea")){
this.blockEncryptor = new XTea(configuration);
}else{
this.blockEncryptor = new BlockEncryptor(configuration);
}
}
public void encrypt(InputStream in, OutputStream out) {
int inputByte;
try {
int i = 0;
while((inputByte = in.read()) != -1){
blockBuffer[i++] = inputByte;
if(i == blockLength){
i = 0;
int[] encryptedBlock = blockEncryptor.encryptBlock(blockBuffer);
for(int j = 0; j < blockLength; j++)
out.write(encryptedBlock[j]);
}
}
if(i > 0){
// Just copy the rest of bytes
for(int j = 0; j < i; j++)
out.write(blockBuffer[j]);
}
in.close();
out.close();
} catch (IOException ex) {
Logger.getLogger(A51.class.getName()).log(Level.SEVERE, null, ex);
}
}
public void decrypt(InputStream in, OutputStream out) {
int inputByte;
try {
int i = 0;
while((inputByte = in.read()) != -1){
blockBuffer[i++] = inputByte;
if(i == blockLength){
i = 0;
int[] decryptedBlock = blockEncryptor.decryptBlock(blockBuffer);
for(int j = 0; j < blockLength; j++)
out.write(decryptedBlock[j]);
}
}
if(i > 0){
// Just copy the rest of bytes
for(int j = 0; j < i; j++)
out.write(blockBuffer[j]);
}
in.close();
out.close();
} catch (IOException ex) {
Logger.getLogger(A51.class.getName()).log(Level.SEVERE, null, ex);
}
}
public void reset() {
}
}
| mit |
educoder/rollcall | config/initializers/session_store.rb | 410 | # Be sure to restart your server when you modify this file.
Rollcall::Application.config.session_store :cookie_store, :key => '_rollcall_session'
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
# (create the session table with "rake db:sessions:create")
# Rollcall::Application.config.session_store :active_record_store
| mit |
nectR-Tutoring/nectr | nectr/tutor/admin.py | 171 | from django.contrib import admin
# Register your models here.
from nectr.tutor.models import Tutor
@admin.register(Tutor)
class AuthorAdmin(admin.ModelAdmin):
pass
| mit |
williambai/beyond-webapp | demo/app/src/models/NotificationCollection.js | 163 | var Backbone = require('backbone');
var Notification = require('./Notification');
exports = module.exports = Backbone.Collection.extend({
model: Notification
}); | mit |
smellyriver/tankinspector | TankInspector/Design/RomanNumberService.cs | 481 | using System;
namespace Smellyriver.TankInspector.Design
{
internal static class RomanNumberService
{
private const string RomanNumbers = " ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ"; // remember to put a space before all the numbers
public static string GetRomanNumber(int number)
{
if (number < 1 || number > 12)
throw new NotSupportedException();
return RomanNumbers[number].ToString();
}
}
}
| mit |
CellarHQ/cellarhq.com | model/src/main/generated/com/cellarhq/generated/tables/daos/CellarDao.java | 16421 | /*
* This file is generated by jOOQ.
*/
package com.cellarhq.generated.tables.daos;
import com.cellarhq.generated.tables.Cellar;
import com.cellarhq.generated.tables.records.CellarRecord;
import java.time.LocalDateTime;
import java.util.List;
import javax.annotation.processing.Generated;
import org.jooq.Configuration;
import org.jooq.impl.DAOImpl;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.12.3"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class CellarDao extends DAOImpl<CellarRecord, com.cellarhq.generated.tables.pojos.Cellar, Long> {
/**
* Create a new CellarDao without any configuration
*/
public CellarDao() {
super(Cellar.CELLAR, com.cellarhq.generated.tables.pojos.Cellar.class);
}
/**
* Create a new CellarDao with an attached configuration
*/
public CellarDao(Configuration configuration) {
super(Cellar.CELLAR, com.cellarhq.generated.tables.pojos.Cellar.class, configuration);
}
@Override
public Long getId(com.cellarhq.generated.tables.pojos.Cellar object) {
return object.getId();
}
/**
* Fetch records that have <code>id BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfId(Long lowerInclusive, Long upperInclusive) {
return fetchRange(Cellar.CELLAR.ID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>id IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchById(Long... values) {
return fetch(Cellar.CELLAR.ID, values);
}
/**
* Fetch a unique record that has <code>id = value</code>
*/
public com.cellarhq.generated.tables.pojos.Cellar fetchOneById(Long value) {
return fetchOne(Cellar.CELLAR.ID, value);
}
/**
* Fetch records that have <code>version BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfVersion(Integer lowerInclusive, Integer upperInclusive) {
return fetchRange(Cellar.CELLAR.VERSION, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>version IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchByVersion(Integer... values) {
return fetch(Cellar.CELLAR.VERSION, values);
}
/**
* Fetch records that have <code>photo_id BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfPhotoId(Long lowerInclusive, Long upperInclusive) {
return fetchRange(Cellar.CELLAR.PHOTO_ID, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>photo_id IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchByPhotoId(Long... values) {
return fetch(Cellar.CELLAR.PHOTO_ID, values);
}
/**
* Fetch records that have <code>screen_name BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfScreenName(String lowerInclusive, String upperInclusive) {
return fetchRange(Cellar.CELLAR.SCREEN_NAME, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>screen_name IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchByScreenName(String... values) {
return fetch(Cellar.CELLAR.SCREEN_NAME, values);
}
/**
* Fetch a unique record that has <code>screen_name = value</code>
*/
public com.cellarhq.generated.tables.pojos.Cellar fetchOneByScreenName(String value) {
return fetchOne(Cellar.CELLAR.SCREEN_NAME, value);
}
/**
* Fetch records that have <code>display_name BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfDisplayName(String lowerInclusive, String upperInclusive) {
return fetchRange(Cellar.CELLAR.DISPLAY_NAME, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>display_name IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchByDisplayName(String... values) {
return fetch(Cellar.CELLAR.DISPLAY_NAME, values);
}
/**
* Fetch records that have <code>location BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfLocation(String lowerInclusive, String upperInclusive) {
return fetchRange(Cellar.CELLAR.LOCATION, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>location IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchByLocation(String... values) {
return fetch(Cellar.CELLAR.LOCATION, values);
}
/**
* Fetch records that have <code>website BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfWebsite(String lowerInclusive, String upperInclusive) {
return fetchRange(Cellar.CELLAR.WEBSITE, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>website IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchByWebsite(String... values) {
return fetch(Cellar.CELLAR.WEBSITE, values);
}
/**
* Fetch records that have <code>bio BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfBio(String lowerInclusive, String upperInclusive) {
return fetchRange(Cellar.CELLAR.BIO, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>bio IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchByBio(String... values) {
return fetch(Cellar.CELLAR.BIO, values);
}
/**
* Fetch records that have <code>update_from_network BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfUpdateFromNetwork(Boolean lowerInclusive, Boolean upperInclusive) {
return fetchRange(Cellar.CELLAR.UPDATE_FROM_NETWORK, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>update_from_network IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchByUpdateFromNetwork(Boolean... values) {
return fetch(Cellar.CELLAR.UPDATE_FROM_NETWORK, values);
}
/**
* Fetch records that have <code>contact_email BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfContactEmail(String lowerInclusive, String upperInclusive) {
return fetchRange(Cellar.CELLAR.CONTACT_EMAIL, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>contact_email IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchByContactEmail(String... values) {
return fetch(Cellar.CELLAR.CONTACT_EMAIL, values);
}
/**
* Fetch records that have <code>private BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfPrivate(Boolean lowerInclusive, Boolean upperInclusive) {
return fetchRange(Cellar.CELLAR.PRIVATE, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>private IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchByPrivate(Boolean... values) {
return fetch(Cellar.CELLAR.PRIVATE, values);
}
/**
* Fetch records that have <code>last_login BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfLastLogin(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {
return fetchRange(Cellar.CELLAR.LAST_LOGIN, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>last_login IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchByLastLogin(LocalDateTime... values) {
return fetch(Cellar.CELLAR.LAST_LOGIN, values);
}
/**
* Fetch records that have <code>last_login_ip BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfLastLoginIp(String lowerInclusive, String upperInclusive) {
return fetchRange(Cellar.CELLAR.LAST_LOGIN_IP, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>last_login_ip IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchByLastLoginIp(String... values) {
return fetch(Cellar.CELLAR.LAST_LOGIN_IP, values);
}
/**
* Fetch records that have <code>created_date BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfCreatedDate(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {
return fetchRange(Cellar.CELLAR.CREATED_DATE, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>created_date IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchByCreatedDate(LocalDateTime... values) {
return fetch(Cellar.CELLAR.CREATED_DATE, values);
}
/**
* Fetch records that have <code>modified_date BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfModifiedDate(LocalDateTime lowerInclusive, LocalDateTime upperInclusive) {
return fetchRange(Cellar.CELLAR.MODIFIED_DATE, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>modified_date IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchByModifiedDate(LocalDateTime... values) {
return fetch(Cellar.CELLAR.MODIFIED_DATE, values);
}
/**
* Fetch records that have <code>twitter BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfTwitter(String lowerInclusive, String upperInclusive) {
return fetchRange(Cellar.CELLAR.TWITTER, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>twitter IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchByTwitter(String... values) {
return fetch(Cellar.CELLAR.TWITTER, values);
}
/**
* Fetch records that have <code>reddit BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfReddit(String lowerInclusive, String upperInclusive) {
return fetchRange(Cellar.CELLAR.REDDIT, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>reddit IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchByReddit(String... values) {
return fetch(Cellar.CELLAR.REDDIT, values);
}
/**
* Fetch records that have <code>beeradvocate BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfBeeradvocate(String lowerInclusive, String upperInclusive) {
return fetchRange(Cellar.CELLAR.BEERADVOCATE, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>beeradvocate IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchByBeeradvocate(String... values) {
return fetch(Cellar.CELLAR.BEERADVOCATE, values);
}
/**
* Fetch records that have <code>ratebeer BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfRatebeer(String lowerInclusive, String upperInclusive) {
return fetchRange(Cellar.CELLAR.RATEBEER, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>ratebeer IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchByRatebeer(String... values) {
return fetch(Cellar.CELLAR.RATEBEER, values);
}
/**
* Fetch records that have <code>total_beers BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfTotalBeers(Short lowerInclusive, Short upperInclusive) {
return fetchRange(Cellar.CELLAR.TOTAL_BEERS, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>total_beers IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchByTotalBeers(Short... values) {
return fetch(Cellar.CELLAR.TOTAL_BEERS, values);
}
/**
* Fetch records that have <code>unique_beers BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfUniqueBeers(Short lowerInclusive, Short upperInclusive) {
return fetchRange(Cellar.CELLAR.UNIQUE_BEERS, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>unique_beers IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchByUniqueBeers(Short... values) {
return fetch(Cellar.CELLAR.UNIQUE_BEERS, values);
}
/**
* Fetch records that have <code>unique_breweries BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfUniqueBreweries(Short lowerInclusive, Short upperInclusive) {
return fetchRange(Cellar.CELLAR.UNIQUE_BREWERIES, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>unique_breweries IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchByUniqueBreweries(Short... values) {
return fetch(Cellar.CELLAR.UNIQUE_BREWERIES, values);
}
/**
* Fetch records that have <code>has_tradeable_beers BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfHasTradeableBeers(Boolean lowerInclusive, Boolean upperInclusive) {
return fetchRange(Cellar.CELLAR.HAS_TRADEABLE_BEERS, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>has_tradeable_beers IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchByHasTradeableBeers(Boolean... values) {
return fetch(Cellar.CELLAR.HAS_TRADEABLE_BEERS, values);
}
/**
* Fetch records that have <code>slug BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfSlug(String lowerInclusive, String upperInclusive) {
return fetchRange(Cellar.CELLAR.SLUG, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>slug IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchBySlug(String... values) {
return fetch(Cellar.CELLAR.SLUG, values);
}
/**
* Fetch a unique record that has <code>slug = value</code>
*/
public com.cellarhq.generated.tables.pojos.Cellar fetchOneBySlug(String value) {
return fetchOne(Cellar.CELLAR.SLUG, value);
}
/**
* Fetch records that have <code>role BETWEEN lowerInclusive AND upperInclusive</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchRangeOfRole(String lowerInclusive, String upperInclusive) {
return fetchRange(Cellar.CELLAR.ROLE, lowerInclusive, upperInclusive);
}
/**
* Fetch records that have <code>role IN (values)</code>
*/
public List<com.cellarhq.generated.tables.pojos.Cellar> fetchByRole(String... values) {
return fetch(Cellar.CELLAR.ROLE, values);
}
}
| mit |
beni55/reactcss | lib/merge.js | 176 | "use strict";var merge=require("merge"),_=require("lodash");module.exports=function(e){return _.isObject(e)&&!_.isArray(e)?e:1===e.length?e[0]:merge.recursive.apply(void 0,e)}; | mit |
phazyy/futie | src/components/sidebar/SideBarItem.js | 1168 | import React, { Component, PropTypes } from 'react';
import { Link } from 'react-router';
class SideBarItem extends Component {
constructor(props) {
super(props);
this.state = { open: false };
this.handleClick = this.handleClick.bind(this);
}
handleClick() {
this.setState({ open: !this.state.open });
}
render() {
const { title, icon, route, children } = this.props;
const { open } = this.state;
if (route) {
return (
<div className='sidebar-item'>
<Link to={ route }>
<i className="material-icons">{ icon }</i>
{ title }
</Link>
</div>
);
} else {
return (
<div className='sidebar-item'>
<a a onClick={ this.handleClick }>
<i className="material-icons">{ icon }</i>
{ title }
{ children &&
<i className='material-icons'>arrow_drop_down</i> }
</a>
{ open && children }
</div>
);
}
}
}
SideBarItem.propTypes = {
title: PropTypes.string.isRequired,
icon: PropTypes.string,
route: PropTypes.string
};
export default SideBarItem;
| mit |
Contentify/Contentify | app/Modules/Events/Resources/Views/widget.blade.php | 273 | <div class="widget widget-events">
<ul class="list-unstyled">
@foreach ($events as $event)
<li>
<a href="{{ url('events/'.$event->id.'/'.$event->slug) }}">{{ $event->title }}</a>
</li>
@endforeach
</ul>
</div> | mit |
dreikanter/feeder | app/normalizers/smbc_normalizer.rb | 1112 | class SmbcNormalizer < BaseNormalizer
protected
def link
content.link
end
def published_at
content.pubDate
end
def text
[title, link].join(separator)
end
def attachments
[image_url, hidden_image_url].reject(&:blank?)
end
def comments
[description].reject(&:blank?)
end
private
TITLE_PREFIX = /^Saturday Morning Breakfast Cereal - /.freeze
def title
content.title.gsub(TITLE_PREFIX, '')
end
def parsed_description
@parsed_description ||= Nokogiri::HTML(content.description)
end
DESCRIPTION_PREFIX = /^Hovertext:\s*/.freeze
def description
first_paragraph = parsed_description.css('p').first.children.text
first_paragraph.gsub(DESCRIPTION_PREFIX, '')
rescue StandardError
nil
end
def image_url
parsed_description.css('img').first.attributes['src'].value
rescue StandardError
nil
end
def hidden_image_url
html = Nokogiri::HTML(page_content)
html.css('#aftercomic img').first.attributes['src'].value
rescue StandardError
nil
end
def page_content
RestClient.get(link).body
end
end
| mit |
ucdavis/Commencement | Commencement.Mvc/Controllers/ViewModels/MoveMajorViewModel.cs | 1285 | using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using Commencement.Controllers.Services;
using Commencement.Core.Domain;
using UCDArch.Core.PersistanceSupport;
using UCDArch.Core.Utils;
namespace Commencement.Controllers.ViewModels
{
public class MoveMajorViewModel
{
public IEnumerable<Ceremony> Ceremonies { get; set; }
public IEnumerable<MajorCode> MajorCodes { get; set; }
public static MoveMajorViewModel Create(IRepository repository, IPrincipal currentUser, ICeremonyService ceremonyService)
{
Check.Require(repository != null, "Repository is required.");
var viewModel = new MoveMajorViewModel() {Ceremonies = ceremonyService.GetCeremonies(currentUser.Identity.Name, TermService.GetCurrent()), MajorCodes = new List<MajorCode>()};
//viewModel.MajorCodes = viewModel.Ceremonies.Select(a => a.Majors).ToList();
var majorCodes = new List<MajorCode>();
foreach (var a in viewModel.Ceremonies)
{
majorCodes.AddRange(a.Majors);
}
viewModel.MajorCodes = majorCodes.OrderBy(a=>a.Name).Distinct().ToList();
return viewModel;
}
}
} | mit |
wildDAlex/rus_bank_rails | lib/generators/rus_bank_rails_generator/templates/create_regions.rb | 249 | class CreateRegions < ActiveRecord::Migration
def change
create_table table_name, force: true do |t|
t.integer "reg_code"
t.string "cname"
t.timestamps
end
add_index table_name, :reg_code, :unique => true
end
end | mit |
fweber1/Annies-Ancestors | PhpGedView/modules/sitemap/languages/help_text.nl.php | 3033 | <?php
/**
* Dutch Language file for PhpGedView.
*
* phpGedView: Genealogy Viewer
* Copyright (C) 2002 to 2007 PGV Development Team
*
* 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* @package PhpGedView
* @subpackage SiteMap
* @version $Id: help_text.nl.php 3861 2008-09-14 00:01:16Z fisharebest $
*/
if (!defined('PGV_PHPGEDVIEW')) {
header('HTTP/1.0 403 Forbidden');
exit;
}
$pgv_lang["SITEMAP"] = "Sitemap informatie";
$pgv_lang["SITEMAP_help"] = "~#pgv_lang[SITEMAP]#~<br /><br />Deze pagine genereert een of meer sitemap files. Een sitemap kan gebruikt worden door een zoek machine om het indexeren van een site te vergemakkelijken. Dit wordt gedaan door in de sitemap file links op te nemen naar alle pagina's welke geindexeerd moeten worden.<br />Via deze pagina kan een sitemap per GEDCOM gemaakt worden en (indien er meer dan een sitemap file gemaakt wordt) ook een siteindex file. De gegenereerde files moeten in de phpGedView installatie directory geplaats worden.<br />Op dit moment maakt alleen Google gebruik van sitemap files. Zie deze pagina voor meer informatie:<br /><a href=\"https://www.google.com/webmasters/sitemaps/docs/nl/about.html\"\>Google Sitemaps (beta)</a>";
$pgv_lang["SM_GEDCOM_SELECT"] = "Selecteer GEDCOMs";
$pgv_lang["SM_GEDCOM_SELECT_help"] = "~#pgv_lang[SM_GEDCOM_SELECT]#~<br /><br />Selecteer de GEDCOM's waarvan een sitemap file gemaakt moet worden. Selecteer er ten minste een.<br />Indien de optie \"Geen links naar prive informatie\" wordt geselecteerd zullen alleen links worden opgenomen naar pagina's waarvan de informatie publiekelijk beschikbaar is.";
$pgv_lang["SM_ITEM_SELECT"] = "Selecteer element soorten";
$pgv_lang["SM_ITEM_SELECT_help"] = "~#pgv_lang[SM_ITEM_SELECT]#~<br /><br />Selecteer de element soorten welke in de sitemap file geplaats moeten worden. Indien een element soort geselcteerd is kan ook de prioriteit van dit element aangegeven worden. Dit is relatief ten opzichte van de andere elementen in de file.<br />Ook de wijzigings frequenty van de data kan worden aangegeven. Dit is de frequenty waarin de gegevens van deze elementen kan wijzigingen. Dit kan de snelheid beinvloeden waarmee de zoek-robot de site weer gaat bekijken, en kan dus invloed hebben op de de hoeveelheid data verkeer.";
?>
| mit |
jifeon/bnsf | blocks/controller-api/controller-api.node.js | 2338 | /**@module controller-api*/
modules.define('controller-api', [
'i-controller', 'vow'
], function (provide, IController, Vow) {
"use strict";
/**
* @class ControllerApi
* @extends IController
*/
provide(IController.decl(/**@lends ControllerApi.prototype*/{
/**
* @param {NodeRequestData} data
*/
processRequest: function (data) {
var method = data.request.method,
requestParameters = data.route.parameters,
bodies = (data.request.body ? data.request.body.bodies : []) || [],
routes = requestParameters['r[]'],
routesParameters = requestParameters['rP[]'] || [],
route = requestParameters['r'],
routeParameters = requestParameters['rP'],
response = data.response,
apiRequester = data.apiRequester;
if (!routes) {
if (!route) {
this._sendJSON(response, {
error: 'no requests'
});
return;
} else {
routes = route;
routesParameters = routeParameters;
bodies = [data.request];
}
}
routes = Array.isArray(routes) ? routes : [routes];
routesParameters = Array.isArray(routesParameters) ? routesParameters : [routesParameters];
var promises = [],
parameters,
body;
try {
for (var i = 0, l = routes.length; i < l; i++) {
parameters = JSON.parse(routesParameters[i]);
body = bodies[i] === 'null' ? undefined : bodies[i];
promises.push(apiRequester.sendRequest(method, routes[i], parameters, body));
}
} catch (e) {
this._sendJSON(response, {
error: e.message
});
return;
}
Vow.allResolved(promises).then(function (promises) {
this._sendJSON(response, promises.map(function (promise) {
return promise.valueOf();
}));
}, this);
}
}, {
_route: 'api'
}));
});
| mit |
pd-nmoser/Conference | com.prodyna.pac.conference/com.prodyna.pac.conference.rest/com.prodyna.pac.conference.rest.beans/src/test/java/com/prodyna/pac/conference/rest/beans/RoomResourceTest.java | 4161 | /*
* The MIT License (MIT)
*
* Copyright (c) 2013 Nicolas Moser
*
* 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.prodyna.pac.conference.rest.beans;
import com.prodyna.pac.conference.ejb.api.datatype.Conference;
import com.prodyna.pac.conference.ejb.api.datatype.Room;
import com.prodyna.pac.conference.ejb.api.exception.ServiceException;
import com.prodyna.pac.conference.ejb.api.service.room.RoomService;
import com.prodyna.pac.conference.rest.api.resource.admin.RoomAdminResource;
import org.jboss.arquillian.container.test.api.RunAsClient;
import org.jboss.arquillian.junit.Arquillian;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mockito;
import javax.enterprise.inject.Produces;
import java.util.Arrays;
import java.util.List;
/**
* RoomResourceTest
* <p/>
* Author: Nicolas Moser
* Date: 18.10.13
* Time: 15:26
*/
@RunWith(Arquillian.class)
public class RoomResourceTest extends ResourceTest {
private RoomAdminResource roomResource;
@Before
public void setUp() {
super.setUp();
this.roomResource = super.getResource(RoomAdminResource.class);
}
@Produces
public RoomService createRoomMock() throws ServiceException {
RoomService roomMock = Mockito.mock(RoomService.class);
Room room = new Room();
room.setId(1L);
room.setName("Red Room");
Conference conference = new Conference();
conference.setId(2L);
room.setConference(conference);
Mockito.when(roomMock.createRoom(Mockito.any(Room.class))).thenReturn(room);
Mockito.when(roomMock.updateRoom(Mockito.any(Room.class))).thenReturn(room);
Mockito.when(roomMock.findRoomById(2L)).thenReturn(room);
Mockito.when(roomMock.removeRoom(Mockito.any(Room.class))).thenReturn(room);
Mockito.when(roomMock.getAllRooms()).thenReturn(Arrays.asList(room));
return roomMock;
}
@Test
@RunAsClient
public void createRoom() throws Exception {
Room room = new Room();
room.setId(2L);
Room result = this.roomResource.createRoom(room);
Assert.assertNotNull(result);
Assert.assertEquals(1L, result.getId().longValue());
}
@Test
@RunAsClient
public void updateRoom() throws Exception {
Room room = new Room();
room.setId(2L);
Room result = this.roomResource.createRoom(room);
Assert.assertNotNull(result);
Assert.assertEquals(1L, result.getId().longValue());
}
@Test
@RunAsClient
public void deleteRoom() throws Exception {
Room result = this.roomResource.deleteRoom(2L);
Assert.assertNotNull(result);
Assert.assertEquals(1L, result.getId().longValue());
}
@Test
@RunAsClient
public void getAllRooms() throws Exception {
List<Room> rooms = this.roomResource.getAllRooms();
Assert.assertNotNull(rooms);
Assert.assertEquals(1, rooms.size());
Assert.assertNotNull(rooms.get(0));
Assert.assertNotNull(rooms.get(0).getId());
Assert.assertEquals(1L, rooms.get(0).getId().longValue());
Assert.assertEquals("Red Room", rooms.get(0).getName());
Assert.assertNotNull(rooms.get(0).getConference());
Assert.assertEquals(2L, rooms.get(0).getConference().getId().longValue());
}
}
| mit |
Drathal/XpFlag | locales/esES.lua | 99 | local D, C, L = unpack(select(2, ...))
local _G = _G
if _G.GetLocale() ~= "esES" then return end
| mit |
hyj5320/adgo_1.01 | editor/smart_editor/js_src/fundamental/base/hp_SE2M_LineHeightWithLayerUI.js | 4638 | //{
/**
* @fileOverview This file contains Husky plugin that takes care of the operations related to changing the lineheight using layer
* @name hp_SE2M_LineHeightWithLayerUI.js
*/
nhn.husky.SE2M_LineHeightWithLayerUI = jindo.$Class({
name : "SE2M_LineHeightWithLayerUI",
$ON_MSG_APP_READY : function(){
this.oApp.exec("REGISTER_UI_EVENT", ["lineHeight", "click", "SE2M_TOGGLE_LINEHEIGHT_LAYER"]);
},
//@lazyload_js SE2M_TOGGLE_LINEHEIGHT_LAYER[
_assignHTMLObjects : function(elAppContainer) {
//this.elLineHeightSelect = jindo.$$.getSingle("SELECT.husky_seditor_ui_lineHeight_select", elAppContainer);
this.oDropdownLayer = jindo.$$.getSingle("DIV.husky_se2m_lineHeight_layer", elAppContainer);
this.aLIOptions = jindo.$A(jindo.$$("LI", this.oDropdownLayer)).filter(function(v,i,a){return (v.firstChild !== null);})._array;
this.oInput = jindo.$$.getSingle("INPUT", this.oDropdownLayer);
var tmp = jindo.$$.getSingle(".husky_se2m_lineHeight_direct_input", this.oDropdownLayer);
tmp = jindo.$$("BUTTON", tmp);
this.oBtn_up = tmp[0];
this.oBtn_down = tmp[1];
this.oBtn_ok = tmp[2];
this.oBtn_cancel = tmp[3];
},
$LOCAL_BEFORE_FIRST : function(){
this._assignHTMLObjects(this.oApp.htOptions.elAppContainer);
this.oApp.exec("SE2_ATTACH_HOVER_EVENTS", [this.aLIOptions]);
for(var i=0; i<this.aLIOptions.length; i++){
this.oApp.registerBrowserEvent(this.aLIOptions[i], "click", "SET_LINEHEIGHT_FROM_LAYER_UI", [this._getLineHeightFromLI(this.aLIOptions[i])]);
}
this.oApp.registerBrowserEvent(this.oBtn_up, "click", "SE2M_INC_LINEHEIGHT", []);
this.oApp.registerBrowserEvent(this.oBtn_down, "click", "SE2M_DEC_LINEHEIGHT", []);
this.oApp.registerBrowserEvent(this.oBtn_ok, "click", "SE2M_SET_LINEHEIGHT_FROM_DIRECT_INPUT", []);
this.oApp.registerBrowserEvent(this.oBtn_cancel, "click", "SE2M_CANCEL_LINEHEIGHT", []);
this.oApp.registerBrowserEvent(this.oInput, "keydown", "EVENT_SE2M_LINEHEIGHT_KEYDOWN");
},
$ON_EVENT_SE2M_LINEHEIGHT_KEYDOWN : function(oEvent){
if (oEvent.key().enter){
this.oApp.exec("SE2M_SET_LINEHEIGHT_FROM_DIRECT_INPUT");
oEvent.stop();
}
},
$ON_SE2M_TOGGLE_LINEHEIGHT_LAYER : function(){
this.oApp.exec("TOGGLE_TOOLBAR_ACTIVE_LAYER", [this.oDropdownLayer, null, "LINEHEIGHT_LAYER_SHOWN", [], "LINEHEIGHT_LAYER_HIDDEN", []]);
this.oApp.exec('MSG_NOTIFY_CLICKCR', ['lineheight']);
},
$ON_SE2M_INC_LINEHEIGHT : function(){
this.oInput.value = parseInt(this.oInput.value, 10)||0;
this.oInput.value++;
},
$ON_SE2M_DEC_LINEHEIGHT : function(){
this.oInput.value = parseInt(this.oInput.value, 10)||0;
if(this.oInput.value > 0){this.oInput.value--;}
},
$ON_LINEHEIGHT_LAYER_SHOWN : function(){
this.oApp.exec("SELECT_UI", ["lineHeight"]);
this.oInitialSelection = this.oApp.getSelection();
var nLineHeight = this.oApp.getLineStyle("lineHeight");
if(nLineHeight != null && nLineHeight !== 0){
this.oInput.value = (nLineHeight*100).toFixed(0);
var elLi = this._getMatchingLI(this.oInput.value+"%");
if(elLi){jindo.$Element(elLi.firstChild).addClass("active");}
}else{
this.oInput.value = "";
}
},
$ON_LINEHEIGHT_LAYER_HIDDEN : function(){
this.oApp.exec("DESELECT_UI", ["lineHeight"]);
this._clearOptionSelection();
},
$ON_SE2M_SET_LINEHEIGHT_FROM_DIRECT_INPUT : function(){
this._setLineHeightAndCloseLayer(this.oInput.value);
},
$ON_SET_LINEHEIGHT_FROM_LAYER_UI : function(sValue){
this._setLineHeightAndCloseLayer(sValue);
},
$ON_SE2M_CANCEL_LINEHEIGHT : function(){
this.oInitialSelection.select();
this.oApp.exec("HIDE_ACTIVE_LAYER");
},
_setLineHeightAndCloseLayer : function(sValue){
var nLineHeight = parseInt(sValue, 10)/100;
if(nLineHeight>0){
this.oApp.exec("SET_LINE_STYLE", ["lineHeight", nLineHeight]);
}else{
alert(this.oApp.$MSG("SE_LineHeight.invalidLineHeight"));
}
this.oApp.exec("SE2M_TOGGLE_LINEHEIGHT_LAYER", []);
var oNavigator = jindo.$Agent().navigator();
if(oNavigator.chrome || oNavigator.safari){
this.oApp.exec("FOCUS"); // [SMARTEDITORSUS-654]
}
},
_getMatchingLI : function(sValue){
var elLi;
sValue = sValue.toLowerCase();
for(var i=0; i<this.aLIOptions.length; i++){
elLi = this.aLIOptions[i];
if(this._getLineHeightFromLI(elLi).toLowerCase() == sValue){return elLi;}
}
return null;
},
_getLineHeightFromLI : function(elLi){
return elLi.firstChild.firstChild.innerHTML;
},
_clearOptionSelection : function(elLi){
for(var i=0; i<this.aLIOptions.length; i++){
jindo.$Element(this.aLIOptions[i].firstChild).removeClass("active");
}
}
//@lazyload_js]
});
//} | mit |
andlogic/hackerrank | ruby/greedy/grid-challenge.rb | 375 | t = gets.to_i
n = gets.to_i
answers = []
t.times do
order = true
n.times do
line = gets.chomp.split("").sort
for i in 0...n-1
if line[i] <= line[i+1]
order = false
break
end
end
if order == false
break
end
end
if order == false
answers.push("NO")
else
answers.push("YES")
end
end
puts answers
| mit |
Molinos/capistrano-db-tasks | lib/capistrano-db-tasks/version.rb | 49 | module CapistranoDbTasks
VERSION = "0.2.1"
end
| mit |
jeremytammik/RoomEditorApp | RoomEditorApp/CmdSubscribe.cs | 4329 | #region Namespaces
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using Autodesk.Revit.ApplicationServices;
using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using Autodesk.Revit.UI.Events;
using DreamSeat;
#endregion
namespace RoomEditorApp
{
[Transaction( TransactionMode.ReadOnly )]
class CmdSubscribe : IExternalCommand
{
#region Obsolete Idling event handler replaced by external event
/// <summary>
/// How many Idling calls to wait before acting
/// </summary>
const int _update_interval = 100;
/// <summary>
/// How many Idling calls to wait before reporting
/// </summary>
const int _message_interval = 100;
/// <summary>
/// Number of Idling calls received in this session
/// </summary>
static int _counter = 0;
/// <summary>
/// Wait far a moment before requerying database.
/// </summary>
//static Stopwatch _stopwatch = null;
void OnIdling(
object sender,
IdlingEventArgs ea )
{
using( JtTimer pt = new JtTimer( "OnIdling" ) )
{
// Use with care! This loads the CPU:
ea.SetRaiseWithoutDelay();
++_counter;
if( 0 == ( _counter % _update_interval ) )
{
if( 0 == ( _counter % _message_interval ) )
{
Util.Log( string.Format(
"OnIdling called {0} times",
_counter ) );
}
// Have we waited long enough since the last attempt?
//if( null == _stopwatch
// || _stopwatch.ElapsedMilliseconds > 500 )
RoomEditorDb rdb = new RoomEditorDb();
//int n = rdb.LastSequenceNumber;
if( rdb.LastSequenceNumberChanged(
DbUpdater.LastSequence ) )
{
UIApplication uiapp = sender as UIApplication;
Document doc = uiapp.ActiveUIDocument.Document;
Util.Log( "furniture update begin" );
//FilteredElementCollector rooms
// = new FilteredElementCollector( doc )
// .OfClass( typeof( SpatialElement ) )
// .OfCategory( BuiltInCategory.OST_Rooms );
//IEnumerable<string> roomUniqueIds
// = rooms.Select<Element, string>(
// e => e.UniqueId );
//CouchDatabase db = rdb.Db;
//ChangeOptions opt = new ChangeOptions();
//opt.IncludeDocs = true;
//opt.Since = CmdUpdate.LastSequence;
//opt.View = "roomedit/map_room_to_furniture";
//CouchChanges<DbFurniture> changes
// = db.GetChanges<DbFurniture>( opt );
//CouchChangeResult<DbFurniture>[] results
// = changes.Results;
//DbUpdater updater = new DbUpdater(
// doc, roomUniqueIds );
//foreach( CouchChangeResult<DbFurniture> result
// in results )
//{
// updater.UpdateBimFurniture( result.Doc );
// CmdUpdate.LastSequence = result.Sequence;
//}
DbUpdater updater = new DbUpdater( uiapp );
updater.UpdateBim();
Util.Log( "furniture update end" );
// _stopwatch = new Stopwatch();
// _stopwatch.Start();
//}
//catch( Exception ex )
//{
// //uiapp.Application.WriteJournalComment
// Debug.Print(
// "Room Editor: an error occurred "
// + "executing the OnIdling event:\r\n"
// + ex.ToString() );
// Debug.WriteLine( ex );
//}
}
}
}
}
#endregion // Obsolete Idling event handler replaced by external event
public Result Execute(
ExternalCommandData commandData,
ref string message,
ElementSet elements )
{
if( !App.Subscribed
&& -1 == DbUpdater.LastSequence )
{
DbUpdater.SetLastSequence();
}
DbUpdater.ToggleSubscription(
commandData.Application );
return Result.Succeeded;
}
}
}
| mit |
skn9x/Anubis | src/anubis/runtime/traits/func/ARootSetSlot.java | 1055 | package anubis.runtime.traits.func;
import anubis.AnubisObject;
import anubis.SlotRef;
import anubis.except.ExceptionProvider;
import anubis.runtime.ABuiltinFunction._3;
import anubis.runtime.AString;
import anubis.runtime.Operator;
import anubis.runtime.Utils;
public class ARootSetSlot extends _3 {
public ARootSetSlot(AnubisObject owner, String name) {
super(owner, name);
}
@Override
protected AnubisObject exec(AnubisObject _this, AnubisObject name, AnubisObject value, AnubisObject opname) {
String op = opname == null ? null : Utils.cast(AString.class, opname).getValue();
String slotName = Utils.cast(AString.class, name).getValue();
SlotRef ref = _this.findSlotRef(slotName);
if (ref != null) {
if (op != null) {
AnubisObject left = ref.get();
value = Operator.opCall(left, op, left, value);
}
ref.set(value);
}
else {
if (op != null) {
throw ExceptionProvider.newSlotNotFound(_this, slotName);
}
_this.setSlot(slotName, value);
}
return value;
}
}
| mit |
j1v3/lakombi | src/LaKombi/ShopBundle/changecurrency.php | 1319 | <?php
/*
* 2007-2011 PrestaShop
*
* 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 license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2011 PrestaShop SA
* @version Release: $Revision: 6594 $
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
include(dirname(__FILE__).'/config/config.inc.php');
include(dirname(__FILE__).'/init.php');
$currency = new Currency((int)(Tools::getValue('id_currency')));
if (Validate::isLoadedObject($currency) AND !$currency->deleted)
{
$cookie->id_currency = (int)($currency->id);
die('1');
}
else
die('0');
| mit |
ForbesLindesay/acorn-globals | test/fixtures/export.js | 118 | export var foo = 'bar';
export function bar() {};
export let bing = 'baz';
export default baz;
foo();
bar();
bing();
| mit |
la-yumba/functional-csharp-code | LaYumba.Functional.Data/Bst.cs | 3439 | using System;
namespace LaYumba.Functional.Data.Bst
{
using System.Collections.Generic;
using static Tree;
public abstract class Tree<T> where T : IComparable<T>
{
public abstract R Match<R>(Func<R> Empty, Func<Tree<T>, T, Tree<T>, R> Node);
public abstract bool IsEmpty { get; }
public abstract bool Contains(T value);
public abstract Tree<T> Insert(T value);
public abstract IEnumerable<T> AsEnumerable();
public bool Equals(Tree<T> other) => this.ToString() == other.ToString(); // hack
public override bool Equals(object obj) => Equals((Tree<T>)obj);
}
public class Empty<T> : Tree<T> where T : IComparable<T>
{
public override R Match<R>(Func<R> Empty, Func<Tree<T>, T, Tree<T>, R> Node)
=> Empty();
public override bool IsEmpty => true;
public override bool Contains(T value) => false;
public override Tree<T> Insert(T value)
=> Node(Empty<T>(), value, Empty<T>());
public override string ToString() => string.Empty;
public override IEnumerable<T> AsEnumerable() { yield break; }
}
public class Node<T> : Tree<T> where T : IComparable<T>
{
public Tree<T> Left { get; }
public Tree<T> Right { get; }
public T Value { get; }
public Node(Tree<T> Left, T Value, Tree<T> Right)
{
this.Left = Left;
this.Right = Right;
this.Value = Value;
}
public override R Match<R>
(Func<R> Empty, Func<Tree<T>, T, Tree<T>, R> Node)
=> Node(Left, Value, Right);
public override bool IsEmpty => false;
public override string ToString()
=> $"Node(Left:({Left}), Value:{Value}, Right:({Right}))";
public override bool Contains(T value)
{
var comparison = value.CompareTo(this.Value);
if (comparison == 0) return true;
else if (comparison < 0) return Left.Contains(value);
else return Right.Contains(value);
}
public override Tree<T> Insert(T value)
{
var comparison = value.CompareTo(this.Value);
if (comparison == 0) return this;
else if (comparison < 0)
return Node(Left.Insert(value), this.Value, this.Right);
else return Node(this.Left, this.Value, Right.Insert(value));
}
public override IEnumerable<T> AsEnumerable()
{
foreach (var item in this.Left.AsEnumerable())
yield return item;
yield return this.Value;
foreach (var item in this.Right.AsEnumerable())
yield return item;
}
}
public static class Tree
{
public static Tree<T> Empty<T>() where T : IComparable<T>
=> new Empty<T>();
public static Tree<T> Node<T>(Tree<T> Left, T Value, Tree<T> Right)
where T : IComparable<T>
=> new Node<T>(Left, Value, Right);
// This implementation looks right but is dangerous, since the resulting
// tree is not necessarily sorted
public static Tree<R> Map<T, R>(this Tree<T> tree, Func<T, R> func)
where T : IComparable<T>
where R : IComparable<R>
=> tree.Match(
Empty: () => Empty<R>(),
Node: (left, value, right) => Node
(
Left: left.Map(func),
Value: func(value),
Right: right.Map(func)
)
);
}
}
| mit |
EnEff-BIM/EnEffBIM-Framework | SimModel_Python_API/simmodel_swig/Release/SimGeomSurface_BoundedSurface_CurveBoundedPlane.py | 11369 | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.7
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (2, 6, 0):
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('_SimGeomSurface_BoundedSurface_CurveBoundedPlane', [dirname(__file__)])
except ImportError:
import _SimGeomSurface_BoundedSurface_CurveBoundedPlane
return _SimGeomSurface_BoundedSurface_CurveBoundedPlane
if fp is not None:
try:
_mod = imp.load_module('_SimGeomSurface_BoundedSurface_CurveBoundedPlane', fp, pathname, description)
finally:
fp.close()
return _mod
_SimGeomSurface_BoundedSurface_CurveBoundedPlane = swig_import_helper()
del swig_import_helper
else:
import _SimGeomSurface_BoundedSurface_CurveBoundedPlane
del version_info
try:
_swig_property = property
except NameError:
pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
if (name == "thisown"):
return self.this.own(value)
if (name == "this"):
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name, None)
if method:
return method(self, value)
if (not static):
if _newclass:
object.__setattr__(self, name, value)
else:
self.__dict__[name] = value
else:
raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self, class_type, name, value):
return _swig_setattr_nondynamic(self, class_type, name, value, 0)
def _swig_getattr_nondynamic(self, class_type, name, static=1):
if (name == "thisown"):
return self.this.own()
method = class_type.__swig_getmethods__.get(name, None)
if method:
return method(self)
if (not static):
return object.__getattr__(self, name)
else:
raise AttributeError(name)
def _swig_getattr(self, class_type, name):
return _swig_getattr_nondynamic(self, class_type, name, 0)
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
try:
_object = object
_newclass = 1
except AttributeError:
class _object:
pass
_newclass = 0
try:
import weakref
weakref_proxy = weakref.proxy
except:
weakref_proxy = lambda x: x
import base
class SimGeomSurface(base.SimGeometricRepresentationItem):
__swig_setmethods__ = {}
for _s in [base.SimGeometricRepresentationItem]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, SimGeomSurface, name, value)
__swig_getmethods__ = {}
for _s in [base.SimGeometricRepresentationItem]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, SimGeomSurface, name)
__repr__ = _swig_repr
def __init__(self, *args):
this = _SimGeomSurface_BoundedSurface_CurveBoundedPlane.new_SimGeomSurface(*args)
try:
self.this.append(this)
except:
self.this = this
def _clone(self, f=0, c=None):
return _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface__clone(self, f, c)
__swig_destroy__ = _SimGeomSurface_BoundedSurface_CurveBoundedPlane.delete_SimGeomSurface
__del__ = lambda self: None
SimGeomSurface_swigregister = _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface_swigregister
SimGeomSurface_swigregister(SimGeomSurface)
class SimGeomSurface_BoundedSurface(SimGeomSurface):
__swig_setmethods__ = {}
for _s in [SimGeomSurface]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, SimGeomSurface_BoundedSurface, name, value)
__swig_getmethods__ = {}
for _s in [SimGeomSurface]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, SimGeomSurface_BoundedSurface, name)
__repr__ = _swig_repr
def __init__(self, *args):
this = _SimGeomSurface_BoundedSurface_CurveBoundedPlane.new_SimGeomSurface_BoundedSurface(*args)
try:
self.this.append(this)
except:
self.this = this
def _clone(self, f=0, c=None):
return _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface_BoundedSurface__clone(self, f, c)
__swig_destroy__ = _SimGeomSurface_BoundedSurface_CurveBoundedPlane.delete_SimGeomSurface_BoundedSurface
__del__ = lambda self: None
SimGeomSurface_BoundedSurface_swigregister = _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface_BoundedSurface_swigregister
SimGeomSurface_BoundedSurface_swigregister(SimGeomSurface_BoundedSurface)
class SimGeomSurface_BoundedSurface_CurveBoundedPlane(SimGeomSurface_BoundedSurface):
__swig_setmethods__ = {}
for _s in [SimGeomSurface_BoundedSurface]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, SimGeomSurface_BoundedSurface_CurveBoundedPlane, name, value)
__swig_getmethods__ = {}
for _s in [SimGeomSurface_BoundedSurface]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, SimGeomSurface_BoundedSurface_CurveBoundedPlane, name)
__repr__ = _swig_repr
def BasisSurface(self, *args):
return _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface_BoundedSurface_CurveBoundedPlane_BasisSurface(self, *args)
def OuterBoundary(self, *args):
return _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface_BoundedSurface_CurveBoundedPlane_OuterBoundary(self, *args)
def InnerBoundaries(self, *args):
return _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface_BoundedSurface_CurveBoundedPlane_InnerBoundaries(self, *args)
def __init__(self, *args):
this = _SimGeomSurface_BoundedSurface_CurveBoundedPlane.new_SimGeomSurface_BoundedSurface_CurveBoundedPlane(*args)
try:
self.this.append(this)
except:
self.this = this
def _clone(self, f=0, c=None):
return _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface_BoundedSurface_CurveBoundedPlane__clone(self, f, c)
__swig_destroy__ = _SimGeomSurface_BoundedSurface_CurveBoundedPlane.delete_SimGeomSurface_BoundedSurface_CurveBoundedPlane
__del__ = lambda self: None
SimGeomSurface_BoundedSurface_CurveBoundedPlane_swigregister = _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface_BoundedSurface_CurveBoundedPlane_swigregister
SimGeomSurface_BoundedSurface_CurveBoundedPlane_swigregister(SimGeomSurface_BoundedSurface_CurveBoundedPlane)
class SimGeomSurface_BoundedSurface_CurveBoundedPlane_sequence(base.sequence_common):
__swig_setmethods__ = {}
for _s in [base.sequence_common]:
__swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
__setattr__ = lambda self, name, value: _swig_setattr(self, SimGeomSurface_BoundedSurface_CurveBoundedPlane_sequence, name, value)
__swig_getmethods__ = {}
for _s in [base.sequence_common]:
__swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
__getattr__ = lambda self, name: _swig_getattr(self, SimGeomSurface_BoundedSurface_CurveBoundedPlane_sequence, name)
__repr__ = _swig_repr
def __init__(self, *args):
this = _SimGeomSurface_BoundedSurface_CurveBoundedPlane.new_SimGeomSurface_BoundedSurface_CurveBoundedPlane_sequence(*args)
try:
self.this.append(this)
except:
self.this = this
def assign(self, n, x):
return _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface_BoundedSurface_CurveBoundedPlane_sequence_assign(self, n, x)
def begin(self, *args):
return _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface_BoundedSurface_CurveBoundedPlane_sequence_begin(self, *args)
def end(self, *args):
return _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface_BoundedSurface_CurveBoundedPlane_sequence_end(self, *args)
def rbegin(self, *args):
return _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface_BoundedSurface_CurveBoundedPlane_sequence_rbegin(self, *args)
def rend(self, *args):
return _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface_BoundedSurface_CurveBoundedPlane_sequence_rend(self, *args)
def at(self, *args):
return _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface_BoundedSurface_CurveBoundedPlane_sequence_at(self, *args)
def front(self, *args):
return _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface_BoundedSurface_CurveBoundedPlane_sequence_front(self, *args)
def back(self, *args):
return _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface_BoundedSurface_CurveBoundedPlane_sequence_back(self, *args)
def push_back(self, *args):
return _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface_BoundedSurface_CurveBoundedPlane_sequence_push_back(self, *args)
def pop_back(self):
return _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface_BoundedSurface_CurveBoundedPlane_sequence_pop_back(self)
def detach_back(self, pop=True):
return _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface_BoundedSurface_CurveBoundedPlane_sequence_detach_back(self, pop)
def insert(self, *args):
return _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface_BoundedSurface_CurveBoundedPlane_sequence_insert(self, *args)
def erase(self, *args):
return _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface_BoundedSurface_CurveBoundedPlane_sequence_erase(self, *args)
def detach(self, position, r, erase=True):
return _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface_BoundedSurface_CurveBoundedPlane_sequence_detach(self, position, r, erase)
def swap(self, x):
return _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface_BoundedSurface_CurveBoundedPlane_sequence_swap(self, x)
__swig_destroy__ = _SimGeomSurface_BoundedSurface_CurveBoundedPlane.delete_SimGeomSurface_BoundedSurface_CurveBoundedPlane_sequence
__del__ = lambda self: None
SimGeomSurface_BoundedSurface_CurveBoundedPlane_sequence_swigregister = _SimGeomSurface_BoundedSurface_CurveBoundedPlane.SimGeomSurface_BoundedSurface_CurveBoundedPlane_sequence_swigregister
SimGeomSurface_BoundedSurface_CurveBoundedPlane_sequence_swigregister(SimGeomSurface_BoundedSurface_CurveBoundedPlane_sequence)
# This file is compatible with both classic and new-style classes.
| mit |
polcoinpl/polcoin | src/qt/qrcodedialog.cpp | 4343 | #include "qrcodedialog.h"
#include "ui_qrcodedialog.h"
#include "bitcoinunits.h"
#include "guiconstants.h"
#include "guiutil.h"
#include "optionsmodel.h"
#include <QPixmap>
#if QT_VERSION < 0x050000
#include <QUrl>
#endif
#include <qrencode.h>
QRCodeDialog::QRCodeDialog(const QString &addr, const QString &label, bool enableReq, QWidget *parent) :
QDialog(parent),
ui(new Ui::QRCodeDialog),
model(0),
address(addr)
{
ui->setupUi(this);
setWindowTitle(QString("%1").arg(address));
ui->chkReqPayment->setVisible(enableReq);
ui->lblAmount->setVisible(enableReq);
ui->lnReqAmount->setVisible(enableReq);
ui->lnLabel->setText(label);
ui->btnSaveAs->setEnabled(false);
genCode();
}
QRCodeDialog::~QRCodeDialog()
{
delete ui;
}
void QRCodeDialog::setModel(OptionsModel *model)
{
this->model = model;
if (model)
connect(model, SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit()));
// update the display unit, to not use the default ("BTC")
updateDisplayUnit();
}
void QRCodeDialog::genCode()
{
QString uri = getURI();
if (uri != "")
{
ui->lblQRCode->setText("");
QRcode *code = QRcode_encodeString(uri.toUtf8().constData(), 0, QR_ECLEVEL_L, QR_MODE_8, 1);
if (!code)
{
ui->lblQRCode->setText(tr("Error encoding URI into QR Code."));
return;
}
myImage = QImage(code->width + 8, code->width + 8, QImage::Format_RGB32);
myImage.fill(0xffffff);
unsigned char *p = code->data;
for (int y = 0; y < code->width; y++)
{
for (int x = 0; x < code->width; x++)
{
myImage.setPixel(x + 4, y + 4, ((*p & 1) ? 0x0 : 0xffffff));
p++;
}
}
QRcode_free(code);
ui->lblQRCode->setPixmap(QPixmap::fromImage(myImage).scaled(300, 300));
ui->outUri->setPlainText(uri);
}
}
QString QRCodeDialog::getURI()
{
QString ret = QString("polcoin:%1").arg(address);
int paramCount = 0;
ui->outUri->clear();
if (ui->chkReqPayment->isChecked())
{
if (ui->lnReqAmount->validate())
{
// even if we allow a non BTC unit input in lnReqAmount, we generate the URI with BTC as unit (as defined in BIP21)
ret += QString("?amount=%1").arg(BitcoinUnits::format(BitcoinUnits::BTC, ui->lnReqAmount->value()));
paramCount++;
}
else
{
ui->btnSaveAs->setEnabled(false);
ui->lblQRCode->setText(tr("The entered amount is invalid, please check."));
return QString("");
}
}
if (!ui->lnLabel->text().isEmpty())
{
QString lbl(QUrl::toPercentEncoding(ui->lnLabel->text()));
ret += QString("%1label=%2").arg(paramCount == 0 ? "?" : "&").arg(lbl);
paramCount++;
}
if (!ui->lnMessage->text().isEmpty())
{
QString msg(QUrl::toPercentEncoding(ui->lnMessage->text()));
ret += QString("%1message=%2").arg(paramCount == 0 ? "?" : "&").arg(msg);
paramCount++;
}
// limit URI length to prevent a DoS against the QR-Code dialog
if (ret.length() > MAX_URI_LENGTH)
{
ui->btnSaveAs->setEnabled(false);
ui->lblQRCode->setText(tr("Resulting URI too long, try to reduce the text for label / message."));
return QString("");
}
ui->btnSaveAs->setEnabled(true);
return ret;
}
void QRCodeDialog::on_lnReqAmount_textChanged()
{
genCode();
}
void QRCodeDialog::on_lnLabel_textChanged()
{
genCode();
}
void QRCodeDialog::on_lnMessage_textChanged()
{
genCode();
}
void QRCodeDialog::on_btnSaveAs_clicked()
{
QString fn = GUIUtil::getSaveFileName(this, tr("Save QR Code"), QString(), tr("PNG Images (*.png)"));
if (!fn.isEmpty())
myImage.scaled(EXPORT_IMAGE_SIZE, EXPORT_IMAGE_SIZE).save(fn);
}
void QRCodeDialog::on_chkReqPayment_toggled(bool fChecked)
{
if (!fChecked)
// if chkReqPayment is not active, don't display lnReqAmount as invalid
ui->lnReqAmount->setValid(true);
genCode();
}
void QRCodeDialog::updateDisplayUnit()
{
if (model)
{
// Update lnReqAmount with the current unit
ui->lnReqAmount->setDisplayUnit(model->getDisplayUnit());
}
}
| mit |
pragyarachur/zoinks-Water-Reporting-M2 | src/main/java/edu/gatech/oad/antlab/person/Person5.java | 1036 | package edu.gatech.oad.antlab.person;
/**
* A simple class for person 5
* returns their name and a
* modified string
*
* @author ntao6
* @version 1.1
*/
public class Person5 {
/** Holds the persons real name */
private String name;
/**
* The constructor, takes in the persons
* name
* @param pname the person's real name
*/
public Person5(String pname) {
name = pname;
}
/**
* This method should take the string
* input and return its characters rotated
* 2 positions.
* given "gtg123b" it should return
* "g123bgt".
*
* @param input the string to be modified
* @return the modified string
*/
private String calc(String input) {
return input.substring(input.length()-2) + input.substring(0, input.length()-2);
}
/**
* Return a string rep of this object
* that varies with an input string
*
* @param input the varying string
* @return the string representing the
* object
*/
public String toString(String input) {
return name + calc(input);
}
}
| mit |
ffmmjj/kairos-face-sdk-python | kairos_face/entities.py | 145 | class KairosFaceGallery:
def __init__(self, gallery_name, subject_ids):
self.name = gallery_name
self.subjects = subject_ids
| mit |
aaaustin10/Mars | mars/mips/instructions/syscalls/SyscallInputDialogString.java | 5220 | package mars.mips.instructions.syscalls;
import mars.util.*;
import mars.mips.hardware.*;
import mars.simulator.*;
import mars.*;
import javax.swing.JOptionPane;
/*
Copyright (c) 2003-2008, Pete Sanderson and Kenneth Vollmar
Developed by Pete Sanderson (psanderson@otterbein.edu)
and Kenneth Vollmar (kenvollmar@missouristate.edu)
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.
(MIT license, http://www.opensource.org/licenses/mit-license.html)
*/
/**
* Service to input data.
*
*/
public class SyscallInputDialogString extends AbstractSyscall {
/**
* Build an instance of the syscall with its default service number and name.
*/
public SyscallInputDialogString() {
super(54, "InputDialogString");
}
/**
* System call to input data.
*/
public void simulate(ProgramStatement statement) throws ProcessingException {
// Input arguments:
// $a0 = address of null-terminated string that is the message to user
// $a1 = address of input buffer for the input string
// $a2 = maximum number of characters to read
// Outputs:
// $a1 contains status value
// 0: valid input data, correctly parsed
// -1: input data cannot be correctly parsed
// -2: Cancel was chosen
// -3: OK was chosen but no data had been input into field
String message = new String(); // = "";
int byteAddress = RegisterFile.getValue(4); // byteAddress of string is in $a0
char ch[] = { ' '}; // Need an array to convert to String
try {
ch[0] = (char) Globals.memory.getByte(byteAddress);
while (ch[0] != 0) { // only uses single location ch[0]
message = message.concat(new String(ch)); // parameter to String constructor is a char[] array
byteAddress++;
ch[0] = (char) Globals.memory.getByte(byteAddress);
}
} catch (AddressErrorException e) {
throw new ProcessingException(statement, e);
}
// Values returned by Java's InputDialog:
// A null return value means that "Cancel" was chosen rather than OK.
// An empty string returned (that is, inputString.length() of zero)
// means that OK was chosen but no string was input.
String inputString = null;
inputString = JOptionPane.showInputDialog(message);
byteAddress = RegisterFile.getValue(5); // byteAddress of string is in $a1
int maxLength = RegisterFile.getValue(6); // input buffer size for input string is in $a2
try {
if (inputString == null) { // Cancel was chosen
RegisterFile.updateRegister(5, -2 ); // set $a1 to -2 flag
} else if (inputString.length() == 0) { // OK was chosen but there was no input
RegisterFile.updateRegister(5, -3 ); // set $a1 to -3 flag
} else {
// The buffer will contain characters, a '\n' character, and the null character
// Copy the input data to buffer as space permits
for (int index = 0; (index < inputString.length()) && (index < maxLength - 1); index++) {
Globals.memory.setByte(byteAddress + index,
inputString.charAt(index));
}
if (inputString.length() < maxLength-1) {
Globals.memory.setByte(byteAddress + (int)Math.min(inputString.length(), maxLength-2), '\n'); // newline at string end
}
Globals.memory.setByte(byteAddress + (int)Math.min((inputString.length()+1), maxLength-1), 0); // null char to end string
if (inputString.length() > maxLength - 1) {
// length of the input string exceeded the specified maximum
RegisterFile.updateRegister(5, -4 ); // set $a1 to -4 flag
} else {
RegisterFile.updateRegister(5, 0 ); // set $a1 to 0 flag
}
} // end else
} // end try
catch (AddressErrorException e) {
throw new ProcessingException(statement, e);
}
}
}
| mit |
lwthatcher/Compass | test/angular/TestNgModel.java | 2909 | package angular;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import java.util.List;
/**
* Tests the ByAngularModel function.
*/
public class TestNgModel extends AngularTestPlan
{
@Test
public void test_findByModel_entryTextBox()
{
WebElement element = driver.findElement(ng.model("actionText"));
assert element.getTagName().equals("input");
assert element.getAttribute("class").contains("form-control");
}
@Test
public void test_findByModel_checkbox()
{
WebElement element = driver.findElement(ng.model("showComplete"));
assert element.getTagName().equals("input");
assert element.getAttribute("type").equals("checkbox");
}
@Test
public void test_addElementUsingNgModel()
{
WebElement textbox = driver.findElement(ng.model("actionText"));
WebElement element = driver.findElement(ng.repeater("item in todo.items"));
assert element.getText().equals("Buy Flowers");
textbox.sendKeys("Ask for donations");
WebElement button = driver.findElement(By.tagName("button"));
button.click();
element = driver.findElement(ng.repeater("item in todo.items"));
assert element.getText().equals("Ask for donations");
}
@Test
public void test_findByModel_elementInRepeater()
{
WebElement checkbox = driver.findElement(ng.model("item.done"));
assert checkbox.getTagName().equals("input");
WebElement table = driver.findElement(By.tagName("tbody"));
List<WebElement> rows = table.findElements(By.tagName("tr"));
assert rows.size() == 3;
checkbox.click();
table = driver.findElement(By.tagName("tbody"));
rows = table.findElements(By.tagName("tr"));
assert rows.size() == 2;
}
@Test
public void test_findAllByModel_elementsInRepeater()
{
List<WebElement> checkboxes = driver.findElements(ng.model("item.done"));
assert checkboxes.size() == 3;
checkboxes.get(0).click();
//must get list again after each click since the WebElement object might change in Java
checkboxes = driver.findElements(ng.model("item.done"));
assert checkboxes.size() == 2;
checkboxes.get(0).click();
checkboxes = driver.findElements(ng.model("item.done"));
assert checkboxes.size() == 1;
checkboxes.get(0).click();
checkboxes = driver.findElements(ng.model("item.done"));
assert checkboxes == null || checkboxes.size() == 0;
}
@Test
public void test_findByModel_NgOptionsParentSelectElement()
{
driver.get(OPTIONS);
WebElement select = driver.findElement(ng.model("selectedItem"));
assert select.getTagName().equals("select");
assert select.getAttribute("id").equals("s1");
}
}
| mit |
AlexLee-CN/weixin_api | src/com/shanli/weixin/mp/recv/UserMsg.java | 2909 | package com.shanli.weixin.mp.recv;
import com.google.gson.Gson;
import com.shanli.weixin.bean.BaseResp;
/**
* 微信消息基类
*
* @author alex
*
*/
public class UserMsg extends BaseResp {
private String openid;
private String appid;
private UserMsgTypeEnum type;
private String msgType;
private String toUserName;
private String fromUserName;
private Integer createTime;
private String msgId;
/**
* 微信用户的OpenID(仅开放平台模式)
*
* @return the openid
*/
public String getOpenid() {
return openid;
}
/**
* 微信用户的OpenID(仅开放平台模式)
*
* @param openid
* the openid to set
*/
public void setOpenid(String openid) {
this.openid = openid;
}
/**
* 公众号mpAppId(仅开放平台模式)
*
* @return the appid
*/
public String getAppid() {
return appid;
}
/**
* 公众号mpAppId(仅开放平台模式)
*
* @param appid
* the appid to set
*/
public void setAppid(String appid) {
this.appid = appid;
}
/**
* 消息类型Enum
*
* @param type
*/
public void setType(UserMsgTypeEnum type) {
this.type = type;
}
/**
* 消息类型Enum
*
* @return the type
*/
public UserMsgTypeEnum getType() {
return type;
}
/**
* 公众号原始ID
*
* @return the toUserName
*/
public String getToUserName() {
return toUserName;
}
/**
* 公众号原始ID
*
* @param toUserName
* the toUserName to set
*/
public void setToUserName(String toUserName) {
this.toUserName = toUserName;
}
/**
* 发送方帐号(微信用户OpenID)
*
* @return the fromUserName
*/
public String getFromUserName() {
return fromUserName;
}
/**
* 发送方帐号(微信用户OpenID)
*
* @param fromUserName
* the fromUserName to set
*/
public void setFromUserName(String fromUserName) {
this.fromUserName = fromUserName;
}
/**
* 消息创建时间 unix_timestamp
*
* @return the createTime
*/
public Integer getCreateTime() {
return createTime;
}
/**
* 消息创建时间 unix_timestamp
*
* @param createTime
* the createTime to set
*/
public void setCreateTime(Integer createTime) {
this.createTime = createTime;
}
/**
* 消息类型
*
* @return the msgType
*/
public String getMsgType() {
return msgType;
}
/**
* 消息类型
*
* @param msgType
* the msgType to set
*/
public void setMsgType(String msgType) {
this.msgType = msgType;
}
/**
* 消息id
*
* @return the msgId
*/
public String getMsgId() {
return msgId;
}
/**
* 消息id
*
* @param msgId
* the msgId to set
*/
public void setMsgId(String msgId) {
this.msgId = msgId;
}
/*
* 转换为JSON字符串
*
*/
@Override
public String toString() {
return new Gson().toJson(this);
}
}
| mit |
chk1/mensaparser | parser/mensen/parsers/parser_aasee_ring.js | 3067 | var ringparser = function(mensa) {
var parser = require('./parser');
var request = require('request');
// process the html data and find the data we are interested in
request(mensa.url, function(error, response, html) {
// moment library for date conversion
var moment = require("moment");
// cheerio library for html parsing
var cheerio = require('cheerio');
// html element id list for parsing & extracting data
var idList = [ "montag", "dienstag", "mittwoch", "donnerstag", "freitag" ];
// check if request was successfull (html response code 200)
if(!error && response.statusCode === 200) {
var $ = cheerio.load(html);
// Preise abfragen
// Ergebnisse in Variable preise:
// preise[0] komplettes pattern match
// preise[1] (Menü 1 Student),
// preise[2] (Menü 1 Sonst.),
// preise[3] (Menü 2 Student),
// preise[4] (Menü 2 Sonst.),
// preise[5] (Menü 3 Student),
// preise[6] (Menü 3 Sonst.)
var content = $("table.contentpaneopen").text();
//console.log(content);
//var preise = content.match(/[0P]reise\s*Stud.\s*\/\s*Sonst.\s*Menü\s*I\s*([0-9],[0-9]+)\s*€\s*\/\s*([0-9],[0-9]+)\s*€\s*Menü\s*II\s*([0-9],[0-9]+)\s*€\s*\/\s*([0-9],[0-9]+)\s*€\s*Menü\s*III\s*([0-9],[0-9]+)\s*€\s*\/\s*([0-9],[0-9]+)\s*€/);
var preiseI = content.match(/Menü\s*I\s*(\d,\d+)\s*€\s*\/\s*(\d,\d+)\s*€\s*\/\s*(\d,\d+)\s*€/);
var preiseII = content.match(/Menü\s*II\s*(\d,\d+)\s*€\s*\/\s*(\d,\d+)\s*€\s*\/\s*(\d,\d+)\s*€/);
var preiseIII = content.match(/Menü\s*III\s*(\d,\d+)\s*€\s*\/\s*(\d,\d+)\s*€\s*\/\s*(\d,\d+)\s*€/);
var preise = [ preiseI[1], preiseI[3],
preiseII[1], preiseII[3],
preiseIII[1], preiseIII[3] ];
//console.log(preise);
// iterate idList as week days
for (var weekDay in idList) { // mo, di, mi, do, fr
if(idList.hasOwnProperty(weekDay)){
// Datum des Tages parsen
var dateToday = $( '#' + idList[weekDay] ).text().split(" ").pop().replace("\r\n", "");
// iterate over the 3 daily menus
for(var i = 1; i <= 3; i++) {
// JSON Objekt für jedes Menü
var fooditem = {
"mensa": {
"name": mensa.name,
"uid": mensa.uid
},
"date": moment(dateToday, "DD.MM.YYYY").format('YYYY-MM-DD'),
"name": $( '#' + idList[weekDay] + "_menu" + i ).text(),
"minPrice": parseFloat( preise[i*2-2].replace(',','.') ).toFixed(2),
"maxPrice": parseFloat( preise[i*2-1].replace(',','.') ).toFixed(2),
"menuName": "Menü " + (new Array(i+1)).join('I'),
"closed": 0
};
if( (fooditem.name.toLowerCase().indexOf("geschloss") !== -1) ||
(fooditem.name.toLowerCase().indexOf("keine ausg") !== -1)) {
fooditem.minPrice = "0";
fooditem.maxPrice = "0";
fooditem.closed = 1;
}
console.log("" + fooditem.date + ": " + fooditem.name + " (" + fooditem.minPrice + "/" + fooditem.maxPrice + ")");
parser.insertData(fooditem);
}
}
}
}
});
}
module.exports.ringparser = ringparser;
| mit |
erikzhouxin/CSharpSolution | NetSiteUtilities/AopApi/Response/ZhimaCreditWatchlistBriefGetResponse.cs | 875 | using System;
using System.Xml.Serialization;
namespace EZOper.NetSiteUtilities.AopApi
{
/// <summary>
/// ZhimaCreditWatchlistBriefGetResponse.
/// </summary>
public class ZhimaCreditWatchlistBriefGetResponse : AopResponse
{
/// <summary>
/// 唯一标示每一次接口调用
/// </summary>
[XmlElement("biz_no")]
public string BizNo { get; set; }
/// <summary>
/// 输入用户返回结果: 0 未命中逾期名单 1 命中一类名单,例如用户有一周以内的轻微逾期 2 命中二类名单,例如用户有一周以上中等逾期 3 命中三类名单,例如用户有一个月以上的严重逾期 N/A 无法评估该用户逾期状况,例如未获得用户授权。
/// </summary>
[XmlElement("level")]
public string Level { get; set; }
}
}
| mit |
goldsborough/capstone | source/capstone/element/Wall.java | 548 | package capstone.element;
import capstone.data.Representation;
import capstone.utility.Point;
/**
* A wall element. Just a way to get the concept into the type-system.
*/
public class Wall extends Element
{
/**
*
* Constructs a new wall from a Point and an Representation.
*
* @param point The point of the wall.
*
* @param representation The representation of the wall.
*/
public Wall(Point point, Representation representation)
{
super(Element.Kind.WALL, point, representation);
}
}
| mit |
frostwire/frostwire-jlibtorrent | src/main/java/com/frostwire/jlibtorrent/swig/external_ip_alert.java | 1986 | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.frostwire.jlibtorrent.swig;
public class external_ip_alert extends alert {
private transient long swigCPtr;
protected external_ip_alert(long cPtr, boolean cMemoryOwn) {
super(libtorrent_jni.external_ip_alert_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
protected static long getCPtr(external_ip_alert obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
libtorrent_jni.delete_external_ip_alert(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public int type() {
return libtorrent_jni.external_ip_alert_type(swigCPtr, this);
}
public alert_category_t category() {
return new alert_category_t(libtorrent_jni.external_ip_alert_category(swigCPtr, this), true);
}
public String what() {
return libtorrent_jni.external_ip_alert_what(swigCPtr, this);
}
public String message() {
return libtorrent_jni.external_ip_alert_message(swigCPtr, this);
}
public address get_external_address() {
return new address(libtorrent_jni.external_ip_alert_get_external_address(swigCPtr, this), true);
}
public final static int priority = libtorrent_jni.external_ip_alert_priority_get();
public final static int alert_type = libtorrent_jni.external_ip_alert_alert_type_get();
public final static alert_category_t static_category = new alert_category_t(libtorrent_jni.external_ip_alert_static_category_get(), false);
}
| mit |
zutnop/telekom-workflow-engine | telekom-workflow-engine/src/main/java/ee/telekom/workflow/jmx/EngineMonitor.java | 1767 | package ee.telekom.workflow.jmx;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jmx.export.annotation.ManagedAttribute;
import org.springframework.jmx.export.annotation.ManagedResource;
import org.springframework.stereotype.Component;
import ee.telekom.workflow.executor.consumer.WorkConsumerService;
import ee.telekom.workflow.executor.plugin.WorkflowEnginePlugin;
import ee.telekom.workflow.executor.producer.WorkProducerJob;
import ee.telekom.workflow.executor.queue.WorkQueue;
@Component(EngineMonitor.BEAN)
@ManagedResource
public class EngineMonitor{
// The bean's name is used to reference the bean in an XML application context file.
// Therefore, we explicitly set the bean name to a constant.
public static final String BEAN = "engineMonitor";
@Autowired
private WorkflowEnginePlugin plugin;
@Autowired
private WorkQueue queue;
@Autowired
private WorkProducerJob producerJob;
@Autowired
private WorkConsumerService consumerService;
@ManagedAttribute(description = "Is plugin started")
public boolean isPluginStarted(){
return plugin.isStarted();
}
@ManagedAttribute(description = "Is queue started")
public boolean isQueueStarted(){
return queue.isStarted();
}
@ManagedAttribute(description = "Is producer started")
public boolean isProducerStarted(){
return producerJob.isStarted();
}
@ManagedAttribute(description = "Is producer suspended")
public boolean isProducerSuspended(){
return producerJob.isSuspended();
}
@ManagedAttribute(description = "Consumed work units")
public long getConsumedWorkUnits(){
return consumerService.getConsumedWorkUnits();
}
}
| mit |
mbouclas/mcms-laravel-core | src/Exceptions/RoleNotFoundException.php | 201 | <?php
namespace IdeaSeven\Core\Exceptions;
class RoleNotFoundException extends \Exception
{
public function __construct($role)
{
$this->message = 'This is not a valid role';
}
} | mit |
WereDouglas/dukka | application/views/view-user.php | 11838 | <!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="<?= base_url(); ?>css/bootstrap.min.css">
<link rel="stylesheet" href="<?= base_url(); ?>css/font-awesome.css">
<link rel="stylesheet" href="<?= base_url(); ?>css/animate.css">
<link rel="stylesheet" href="<?= base_url(); ?>css/templatemo_misc.css">
<link rel="stylesheet" href="<?= base_url(); ?>css/templatemo_style.css">
<script src="<?= base_url(); ?>js/vendor/modernizr-2.6.1-respond-1.1.0.min.js"></script>
</head>
<body>
<!--[if lt IE 7]>
<p class="chromeframe">You are using an outdated browser. <a href="http://browsehappy.com/">Upgrade your browser today</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to better experience this site.</p>
<![endif]-->
<?php require_once(APPPATH . 'views/date.php'); ?>
<div class="row-fluid">
<div class="row">
<div class="heading-section col-md-12 text-center">
<h4>Tracking <?php echo ' '.$username.' '; ?> </h4>
<input type="hidden" id="username" name="username" value="<?=$username?>"/>
</div> <!-- /.heading-section -->
</div> <!-- /.row -->
<div class="row">
<div class="col-md-12">
<div class="googlemap-wrapper">
<div id="map_canvas_locations" class="map-canvas"></div>
</div> <!-- /.googlemap-wrapper -->
</div> <!-- /.col-md-12 -->
</div> <!-- /.row -->
<h2>Sessions</h2>
<table class="jobs table table-striped table-bordered bootstrap-datatable datatable" id="datatable">
<thead>
<tr>
<th>Session</th>
<th>Total distance(Km)</th>
<th>Start time</th>
<th>End time</th>
<th>Total time</th>
<th></th>
</tr>
</thead>
<tbody>
<?php
if (is_array($sessions) && count($sessions)) {
$cr = 0;
foreach ($sessions as $loop) {
$cr++;
?>
<tr >
<td> <li><a href="<?php echo base_url()."index.php/user/session/". $loop->session."/".$username; ?>" target="myframe"><?=$cr?></a></li></td>
<td><a href="<?php echo base_url()."index.php/user/session/". $loop->session."/".$username; ?>" target="myframe"><?=($loop->total/1000)?></a></td>
<td><a href="<?php echo base_url()."index.php/user/session/". $loop->session."/".$username; ?>" target="myframe"><?=$loop->starttime?></a></td>
<td><?=$loop->endtime?></td>
<td><?php echo dateDiff($loop->starttime,$loop->endtime); ?></td>
<td><a href="<?php echo base_url(). "index.php/location/delete/".$loop->session."/".$username; ?>">delete</a></td>
<?php
}
}
?>
</tr>
</table>
<!--
<table class="jobs table table-striped table-bordered bootstrap-datatable datatable" id="datatable">
<thead>
<tr>
<th></th>
<th>Latitude</th>
<th>Longitude</th>
<th>Distance(m)</th>
<th>Distance(km)</th>
<th>Created on:</th>
</tr>
</thead>
<tbody>
<?php
if (is_array($locations) && count($locations)) {
foreach ($locations as $loop) {
?>
<tr >
<td><?=$loop->id?> </td>
<td><?=$loop->lat?> </td>
<td><?=$loop->lng?> </td>
<td><?=(int)$loop->distance?> </td>
<td><?php echo (int)$loop->distance/1000;?> </td>
<td><?=$loop->created?> </td>
</tr>
<?php
}
}
?>
</tbody>
</table> -->
</div> <!-- /.container -->
<div id="footer">
</div> <!-- /#footer -->
<!--<script type="text/javascript" src="js/jquery.min.js"></script> -->
<script src="<?= base_url(); ?>js/vendor/jquery-1.11.0.min.js"></script>
<script>window.jQuery || document.write('<script src="<?= base_url(); ?>js/vendor/jquery-1.11.0.min.js"><\/script>')</script>
<script src="<?= base_url(); ?>js/bootstrap.js"></script>
<script src="<?= base_url(); ?>js/plugins.js"></script>
<script src="<?= base_url(); ?>js/main.js"></script>
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBSr836clPDtPAsp3iW0aE3rhcnKhsuPdE">
</script>
<!-- Google Map
<script src="http://maps.google.com/maps/api/js?sensor=true"></script>
<script src="<?= base_url(); ?>js/vendor/jquery.gmap3.min.js"></script> -->
<?php if(is_array($locations) && count($locations) ) {
//var_dump($locations);
$lat = $locations[0]->lat;
$lng= $locations[0]->lng;
// $lat = '0.3417913';
echo "last posted".$created= $locations[0]->created;
}
?>
<script type="text/javascript">
var map;
function initialize(){
var mapOptions = {
center: new google.maps.LatLng(<?php echo $lat;?>,<?php echo $lng;?>),
zoom: 14
};
map = new google.maps.Map(document.getElementById("map_canvas_locations"), mapOptions);
var myLatlng = new google.maps.LatLng(<?php echo $lat; ?>,<?php echo $lng; ?>);
var image = '<?= base_url(); ?>images/walking.png';
var marker = new google.maps.Marker({
position: myLatlng ,
map: map,
title:"last <?php echo $created; ?>",
icon: image
});
// 0.363189, 32.598064
google.maps.event.addDomListener(window, 'load', initialize);
}
</script>
<script type="text/javascript">
//The list of points to be connected
var map = null;
var infowindow = new google.maps.InfoWindow();
var bounds = new google.maps.LatLngBounds();
//The list of points to be connected
var markers = [
<?php if(is_array($locations) && count($locations) ) {
foreach($locations as $loop){
?>
{
"title": '<?php echo $loop -> created; ?>',
"lat": '<?php echo $loop -> lat; ?>',
"lng": '<?php echo $loop -> lng; ?>',
"description":' <?php echo $loop ->username ; ?>'
},
<?php } } ?>
];
function initialize() {
var mapOptions = {
center: new google.maps.LatLng(<?php echo $lat;?>,<?php echo $lng;?>),
zoom: 14 ,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
}
google.maps.event.addDomListener(window,'load',initialize);
</script>
<script>
var form_data = { username: $('#username').val() };
$.ajax({
type : 'POST',
url : "<?php echo base_url()?>index.php/user/movement" ,
dataType: 'json',
data: form_data,
success : function(data) {
// console.log(data)
var mapOptions = {
center: new google.maps.LatLng(<?php echo $lat;?>,<?php echo $lng;?>),
zoom: 14 ,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
markers = JSON.parse(JSON.stringify(data));
//console.log(markers[0].lat)
var path = new google.maps.MVCArray();
var service = new google.maps.DirectionsService();
var infoWindow = new google.maps.InfoWindow();
map = new google.maps.Map(document.getElementById("map_canvas_locations"), mapOptions);
map.setCenter(new google.maps.LatLng(<?php echo $lat;?>,<?php echo $lng;?>));
var poly = new google.maps.Polyline({
map: map,
strokeColor: '#990000'
});
var lat_lng = new Array();
for (var i = 0; i < markers.length; i++) {
if ((i + 1) < markers.length) {
var src = new google.maps.LatLng(parseFloat(markers[i].lat),
parseFloat(markers[i].lng));
var des = new google.maps.LatLng(parseFloat(markers[i+1].lat),
parseFloat(markers[i+1].lng));
service.route({
origin: src,
destination: des,
travelMode: google.maps.DirectionsTravelMode.DRIVING
}, function (result, status) {
if (status == google.maps.DirectionsStatus.OK) {
for (var i = 0, len = result.routes[0].overview_path.length; i < len; i++) {
path.push(result.routes[0].overview_path[i]);
}
poly.setPath(path);
// map.fitBounds(bounds);
}
});
}
}
var myLatlng = new google.maps.LatLng(<?php echo $lat; ?>,<?php echo $lng; ?>);
var image = '<?= base_url(); ?>images/walking.png';
var marker = new google.maps.Marker({
position: myLatlng ,
map: map,
title:"last <?php echo $created; ?>",
icon: image
});
//}
}
});
</script>
</body>
</html> | mit |
scen/ionlib | src/mem/vmt.cpp | 1215 | #include "vmt.h"
namespace ion
{
UINT vmt::countFuncs( void** vmt )
{
MEMORY_BASIC_INFORMATION mem;
int i = -1;
do { i++; VirtualQuery( vmt[i], &mem, sizeof(MEMORY_BASIC_INFORMATION) ); }
while( mem.Protect==PAGE_EXECUTE_READ || mem.Protect==PAGE_EXECUTE_READWRITE );
return i;
}
UINT vmt::countFuncs( void* begin, void* end, void** vmt )
{
int i = -1;
do i++; while ( begin<vmt[i] && vmt[i]<end );
return i;
}
int vmt::findFunc( void** vmt, void* func, UINT vfuncs )
{
if ( !vfuncs ) vfuncs = countFuncs( vmt );
for ( UINT i = 0; i<vfuncs; i++ )
{
if ( vmt[i]==func ) return i;
}
return -1;
}
vmt::vmt( void* inst, size_t offset, UINT vfuncs )
{
_vftable = makeptr<void**>( inst, offset );
_oldvmt = *_vftable;
// Count vfuncs ourself if needed
if ( !vfuncs ) vfuncs = countFuncs( _oldvmt );
_vcount = vfuncs;
// Allocate room for the new vtable
_array = (void**)malloc( (vfuncs+3)*sizeof(void*) );
// Initialize RTTI pointer
_array[2] = _oldvmt[-1];
// Copy over the other vfuncs
for ( UINT i = 0; i<vfuncs; ++i ) _array[i+3] = _oldvmt[i];
// Hook it
*_vftable = _array+3;
}
vmt::~vmt()
{
if ( _vftable ) unhook();
free( _array );
}
} | mit |
Atticweb/node-js-connect4 | game_logic.js | 2567 | module.exports = {
games : {},
make_move : function(room, col, pid){
var board = this.games[room].board;
var move_made = false;
for(var i = board.length-1; i >= 0; i--){
if(board[i][col] == 0){
board[i][col] = pid;
move_made = true;
break;
}
}
return move_made;
},
check_for_win : function(board){
var found = 0,
winner_coins = [],
winner = false,
data = {},
person = 0;
/*horizontal*/
for(var row = 0; row < board.length; row++){
if(winner) break;
found = 0;
person = 0;
for(var col = 0; col < board[row].length; col++){
var selected = board[row][col];
if(selected !== 0) found = (person != selected) ? 1 : found + 1;
person = selected;
if(found >= 4){
winner = person;
for(var k = 0; k < 4; k++){
winner_coins[k] = row+''+(col-k);
}
}
if((col > 2 && found == 0) || found >= 4) break;
}
}
/*vertical*/
if(!winner){
for(col = 0; col < board[0].length; col++){
if(winner) break;
found = 0;
person = 0;
for(row = 0; row < board.length; row++){
var selected = board[row][col];
if(selected !== 0) found = (person != selected) ? 1 : found + 1;
person = selected;
if(found >= 4){
winner = person;
for(var k = 0; k < 4; k++){
winner_coins[k] = (row-k)+''+col;
}
}
if((row > 1 && found == 0) || found >= 4) break;
}
}
}
/*diagonal left-up->right*/
if(!winner){
for(col = 0; col < board[0].length-3; col++){
if(winner) break;
for(row = 0; row < board.length-3; row++){
var first_val = board[row][col];
if(first_val == 0) continue;
if( first_val === board[row+1][col+1] &&
first_val === board[row+2][col+2] &&
first_val === board[row+3][col+3] ){
winner = first_val;
winner_coins = [row+''+col,(row+1)+''+(col+1),(row+2)+''+(col+2),(row+3)+''+(col+3)];
break;
}
}
}
}
/*diagonal right-up->left*/
if(!winner){
for(col = board[0].length-1; col > 2; col--){
if(winner) break;
for(row = 0; row < board.length-3; row++){
var first_val = board[row][col];
if(first_val == 0) continue;
if( first_val === board[row+1][col-1] &&
first_val === board[row+2][col-2] &&
first_val === board[row+3][col-3] ){
winner = first_val;
winner_coins = [row+''+col,(row+1)+''+(col-1),(row+2)+''+(col-2),(row+3)+''+(col-3)];
break;
}
}
}
}
if(winner) {
data.winner = winner;
data.winner_coins = winner_coins;
return data;
}
return false;
}
} | mit |
InfoAgeTech/django-activities | tests/test_urls_activities.py | 3634 | from __future__ import unicode_literals
from django.core.urlresolvers import reverse
from django_testing.testcases.auth import AuthenticatedUserTestCase
from django_testing.testcases.urls import UrlTestCaseMixin
from django_testing.user_utils import create_user
from activities.constants import Source
from activities.models import Activity
from activities.urls import urlpatterns
class ActivityUrlTests(UrlTestCaseMixin, AuthenticatedUserTestCase):
"""Test case for ensuring all activity urls return a successful
response.
Note: This should probably be moved as a smoke test before deploying since
this will be a much longer running test since it queries all the view
mixins as well.
"""
urlpatterns = urlpatterns
@classmethod
def setUpClass(cls):
super(ActivityUrlTests, cls).setUpClass()
cls.activity = cls.create_activity()
cls.activity_reply = cls.activity.replies.create(
created_user=cls.user,
text='My reply',
activity=cls.activity
)
@classmethod
def create_activity(cls, text='Hello world', source=Source.SYSTEM,
created_user=None, **kwargs):
about = create_user()
return Activity.objects.create(
created_user=created_user or cls.user,
text=text,
about=about,
source=source,
ensure_for_objs=cls.user,
**kwargs
)
def test_activities_view_view(self):
"""Test the activities home url to ensure successful response."""
url_args = [self.activity.about_content_type_id,
self.activity.about_id]
self.response_test_get(reverse('activities_view', args=url_args))
def test_activity_view_view(self):
"""Test the activity view add page to ensure successful
response.
"""
self.response_test_get(self.activity.get_absolute_url())
def test_activity_edit_view(self):
"""Test the activity edit view page to ensure successful
response.
"""
self.response_test_get(self.activity.get_edit_url())
def test_activity_delete_view(self):
"""Test the activity delete view page to ensure successful
response.
"""
self.response_test_get(self.activity.get_delete_url())
def test_activity_replies_view(self):
"""Test the activity replies view page to ensure successful
response.
"""
self.response_test_get(reverse('activity_replies',
args=[self.activity.id]))
def test_activity_reply_view(self):
"""Test the activity reply view page to ensure successful
response.
"""
self.response_test_get(reverse('activity_reply',
args=[self.activity.id,
self.activity_reply.id]))
def test_activity_reply_edit_view(self):
"""Test the activity reply edit view page to ensure successful
response.
"""
self.response_test_get(reverse('activity_reply_edit',
args=[self.activity.id,
self.activity_reply.id]))
def test_activity_reply_delete_view(self):
"""Test the activity reply delete view page to ensure successful
response.
"""
self.response_test_get(reverse('activity_reply_delete',
args=[self.activity.id,
self.activity_reply.id]))
| mit |
FruitClover/pixels | src/nodes/NetworkNode.cpp | 577 | #include "nodes/NetworkNode.h"
#include "network/NetworkProtocol.h"
NetworkNode::NetworkNode()
: SceneNode()
, m_pendingActions()
{
}
Category::Type_t NetworkNode::GetCategory() const
{
return Category::Network;
}
void NetworkNode::NotifyGameAction(GameActions::Type_t type, sf::Vector2f position)
{
m_pendingActions.push(GameActions::Action_t(type, position));
}
bool NetworkNode::PollGameAction(GameActions::Action_t& out)
{
if (m_pendingActions.empty())
{
return false;
}
else
{
out = m_pendingActions.front();
m_pendingActions.pop();
return true;
}
}
| mit |
mjsalerno/StopLeak | test/leakysite/leakySite.js | 1207 | /*global $*/
var defaultUrl = 'https://mjsalerno.github.io';
var defaultData = 'scott, shane, michael, mike, paul';
function showResults(response) {
$('#results').html(response);
}
function leakFailed(xhr) {
if (xhr.responseText) {
showResults(xhr.responseText);
} else {
showResults('Probably ERR_BLOCKED_BY_CLIENT (meaning StopLeak!)');
console.log(xhr);
}
}
function leakData(method) {
var url = $('#leaky-url').val();
var data = $('#leaky-text').val();
if (!url) {
url = defaultUrl;
}
if (!data) {
data = defaultData;
}
console.log('Trying to leak to: ' + url);
console.log('Trying to leak: ' + data);
var req = $.ajax({
method: method,
url: url,
data: data
});
req.done(showResults);
req.fail(leakFailed);
}
function leakByGet() {
leakData('GET');
}
function leakByPost() {
leakData('POST');
}
function addHandlers() {
$('#leaky-get-button').bind('click', leakByGet);
$('#leaky-post-button').bind('click', leakByPost);
$('#leaky-url').text(defaultUrl);
$('#leaky-text').attr('placeholder', defaultData);
}
$(document).ready(addHandlers);
| mit |
sylsaint/cpp_learning | cpp-primer/ch12/pointer_del.cc | 167 | #include<iostream>
using namespace std;
int main()
{
int *p(new int(48));
auto q = p;
delete p;
p = nullptr;
cout << *q << endl;
return 0;
}
| mit |
radzikowski/alf | src/Alf/ShopBundle/Entity/Logs.php | 2697 | <?php
namespace Alf\ShopBundle\Entity;
/**
* Alf\ShopBundle\Entity\Logs
*
* @orm:Table(name="logs")
* @orm:Entity
*/
class Logs
{
/**
* @var integer $id
*
* @orm:Column(name="id", type="integer", nullable=false)
* @orm:Id
* @orm:GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var integer $userId
*
* @orm:Column(name="user_id", type="integer", nullable=true)
*/
private $userId;
/**
* @var string $type
*
* @orm:Column(name="type", type="string", length=50, nullable=false)
*/
private $type;
/**
* @var text $message
*
* @orm:Column(name="message", type="text", nullable=false)
*/
private $message;
/**
* @var text $details
*
* @orm:Column(name="details", type="text", nullable=false)
*/
private $details;
/**
* @var datetime $createdAt
*
* @orm:Column(name="created_at", type="datetime", nullable=false)
*/
private $createdAt;
/**
* Get id
*
* @return integer $id
*/
public function getId()
{
return $this->id;
}
/**
* Set userId
*
* @param integer $userId
*/
public function setUserId($userId)
{
$this->userId = $userId;
}
/**
* Get userId
*
* @return integer $userId
*/
public function getUserId()
{
return $this->userId;
}
/**
* Set type
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* Get type
*
* @return string $type
*/
public function getType()
{
return $this->type;
}
/**
* Set message
*
* @param text $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* Get message
*
* @return text $message
*/
public function getMessage()
{
return $this->message;
}
/**
* Set details
*
* @param text $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* Get details
*
* @return text $details
*/
public function getDetails()
{
return $this->details;
}
/**
* Set createdAt
*
* @param datetime $createdAt
*/
public function setCreatedAt($createdAt)
{
$this->createdAt = $createdAt;
}
/**
* Get createdAt
*
* @return datetime $createdAt
*/
public function getCreatedAt()
{
return $this->createdAt;
}
} | mit |
fyodorvi/jspm-watch | test-project/client/app/app.component.js | 234 | import template from './app.html!text';
import './app.css!';
let appComponent = ()=>{
return {
template, // because we have a variable name template we can use the shorcut here
restrict: 'E'
};
};
export default appComponent;
| mit |
enggsumitkhattar/bom | application/libraries/Pdb.php | 10537 | <?php
class Pdb extends PDO {
private $error;
private $sql;
private $bind;
private $errorCallbackFunction;
private $errorMsgFormat;
public function __construct() {
$options = array(
PDO::ATTR_PERSISTENT => true,
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
);
/** Datebase connection * */
//elseif(strpos($_SERVER['REQUEST_URI'], 'api') !== false){
//parent::__construct("mysql:host=beaboss.cqnjfbadyisb.us-east-1.rds.amazonaws.com;dbname=BeABoss;charset=utf8", "badmin", "BeABossweb", $options);
//}
try {
if ($_SERVER['HTTP_HOST'] == 'localhost'){
parent::__construct("mysql:host=localhost;dbname=businessonmobile;charset=utf8", "root", "", $options);
} else {
parent::__construct("mysql:host=businessonmobile.cn8ijtna1jrf.us-west-2.rds.amazonaws.com;dbname=businessonmobile;charset=utf8", "businessonmobile", "12345qwert", $options);
}
} catch (PDOException $e) {
$this->error = $e->getMessage();
}
}
private function debug() {
if (!empty($this->errorCallbackFunction)) {
$error = array("Error" => $this->error);
if (!empty($this->sql))
$error["SQL Statement"] = $this->sql;
if (!empty($this->bind))
$error["Bind Parameters"] = trim(print_r($this->bind, true));
$backtrace = debug_backtrace();
if (!empty($backtrace)) {
foreach ($backtrace as $info) {
if ($info["file"] != __FILE__)
$error["Backtrace"] = $info["file"] . " at line " . $info["line"];
}
}
$msg = "";
if ($this->errorMsgFormat == "html") {
if (!empty($error["Bind Parameters"]))
$error["Bind Parameters"] = "<pre>" . $error["Bind Parameters"] . "</pre>";
$css = trim(file_get_contents(dirname(__FILE__) . "/error.css"));
$msg .= '<style type="text/css">' . "\n" . $css . "\n</style>";
$msg .= "\n" . '<div class="db-error">' . "\n\t<h3>SQL Error</h3>";
foreach ($error as $key => $val)
$msg .= "\n\t<label>" . $key . ":</label>" . $val;
$msg .= "\n\t</div>\n</div>";
}
elseif ($this->errorMsgFormat == "text") {
$msg .= "SQL Error\n" . str_repeat("-", 50);
foreach ($error as $key => $val)
$msg .= "\n\n$key:\n$val";
}
$func = $this->errorCallbackFunction;
$func($msg);
}
}
public function delete($table, $where = "", $bind = "", $debug = false) {
$sql = "DELETE FROM " . $table . " WHERE " . $where . ";";
return $this->query($sql, $bind, $debug);
}
private function filter($table, $info) {
$driver = $this->getAttribute(PDO::ATTR_DRIVER_NAME);
if ($driver == 'sqlite') {
$sql = "PRAGMA table_info('" . $table . "');";
$key = "name";
} elseif ($driver == 'mysql') {
$sql = "DESCRIBE " . $table . ";";
$key = "Field";
} else {
$sql = "SELECT column_name FROM information_schema.columns WHERE table_name = '" . $table . "';";
$key = "column_name";
}
if (false !== ($list = $this->query($sql))) {
$fields = array();
foreach ($list as $record)
$fields[] = $record[$key];
return array_values(array_intersect($fields, array_keys($info)));
}
return array();
}
private function cleanup($bind) {
if (!is_array($bind)) {
if (!empty($bind))
$bind = array($bind);
else
$bind = array();
}
return $bind;
}
public function insert($table, $info, $debug = false) {
$bind = array();
$cols = $fields = $this->filter($table, $info);
if ($cols) {
foreach ($cols as $i => $f)
$cols[$i] = "`" . $f . "`";
}
$sql = "INSERT INTO " . $table . " (" . implode($cols, ", ") . ") VALUES (:" . implode($fields, ", :") . ");";
foreach ($fields as $field)
$bind[":$field"] = $info[$field];
return $this->query($sql, $bind, $debug);
}
public function multipleInsert($table, $info, $debug = false) {
$bind = array();
$cols = $fields = $this-filter($table, $info[0]);
if($cols){
foreach ($cols as $i => $f)
$cols[$i] = "`" . $f . "`";
}
}
public function placeholder($text, $count = 0, $separator = ',') {
$result = array();
if ($count > 0) {
for ($x = 0; $x < $count; $x++) {
$result[] = $text;
}
}
return implode($separator, $result);
}
public function query($sql, $bind = "", $debug = false, $fetchNum = false) {
$this->sql = trim($sql);
$this->bind = $this->cleanup($bind);
$this->error = "";
try {
$pdostmt = $this->prepare($this->sql);
if ($pdostmt->execute($this->bind) !== false) {
if ($debug)
echo $pdostmt->queryString . '<br><br>';
$q = strtolower(substr($this->sql, 0, 6));
//descri means describe
if ($q == "select" || $q == "descri" || $q == "pragma") {
if ($fetchNum)
return $pdostmt->fetchAll(PDO::FETCH_NUM);
else
return $pdostmt->fetchAll(PDO::FETCH_ASSOC);
}
else if ($q == "delete" || $q == "insert" || $q == "update") {
$id = $this->lastInsertId();
if ($id)
return $id;
else
return $pdostmt->rowCount();
}
}
} catch (PDOException $e) {
$this->error = $e->getMessage();
if ($debug) {
echo $pdostmt->queryString . '<br><br>';
echo ( $this->error . '<br>' );
$this->debug();
}
return false;
}
}
public function pagedQuery($sql, $pageno = 1, $pagesize = 50, $bind = "", $debug = false, $fetchNum = false) {
try {
$pdostmt = $this->prepare($sql);
$pdostmt->execute();
$total_records = $pdostmt->rowCount();
} catch (PDOException $e) {
$this->error = $e->getMessage();
if ($debug)
echo $this->error;
return array();
}
$start = 0;
if ($pageno) {
$lastchar = substr($sql, -1, 1);
if ($lastchar == ';')
$sql = substr($sql, 0, -1);
$start = $pagesize * ($pageno - 1);
$sql = $sql . " LIMIT " . $start . ", " . $pagesize . ";";
}
$list['result'] = $this->query($sql, $bind, $debug);
$total = count($list['result']);
if ($total) {
$list['page']['cur_page'] = $pageno;
$list['page']['total_records'] = $total_records;
$list['page']['total'] = $total;
$list['page']['total_pages'] = ceil((float) $total_records / (float) $pagesize);
$list['page']['start'] = $start;
return $list;
} else
return false;
}
public function select($table, $where = "", $fields = "*", $bind = "", $debug = false, $fetchNum = false) {
if ($fields == "")
$fields = "*";
$sql = "SELECT " . $fields . " FROM " . $table;
if (!empty($where))
$sql .= " WHERE " . $where;
$sql .= ";";
return $this->query($sql, $bind, $debug, $fetchNum);
}
public function singleRow($table, $where = "", $fields = "*", $bind = "", $debug = false, $fetchNum = false) {
if ($fields == "")
$fields = "*";
$sql = "SELECT " . $fields . " FROM " . $table;
if (!empty($where))
$sql .= " WHERE " . $where;
$sql .= " LIMIT 0,1;";
$rows = $this->query($sql, $bind, $debug, $fetchNum);
if ($rows && isset($rows[0]))
return $rows[0];
}
public function singleVal($table, $where = "", $fields = "*", $bind = "", $debug = false, $fetchNum = false) {
if ($fields == "")
$fields = "*";
$sql = "SELECT " . $fields . " FROM " . $table;
if (!empty($where)){
if(empty($bind))
$sql .= " WHERE " . $where;
else{
echo $bind;
echo $sql .= " WHERE " . $where;exit;
}
}
$sql .= " LIMIT 0,1;";
$rows = $this->query($sql, $bind, $debug, $fetchNum);
if ($rows && isset($rows[0][$fields]))
return $rows[0][$fields];
}
public function setErrorCallbackFunction($errorCallbackFunction, $errorMsgFormat = "html") {
//Variable functions for won't work with language constructs such as echo and print, so these are replaced with print_r.
if (in_array(strtolower($errorCallbackFunction), array("echo", "print")))
$errorCallbackFunction = "print_r";
if (function_exists($errorCallbackFunction)) {
$this->errorCallbackFunction = $errorCallbackFunction;
if (!in_array(strtolower($errorMsgFormat), array("html", "text")))
$errorMsgFormat = "html";
$this->errorMsgFormat = $errorMsgFormat;
}
}
public function update($table, $info, $where, $bind = "", $debug = false) {
$cols = $fields = $this->filter($table, $info);
$fieldSize = sizeof($fields);
if ($cols) {
foreach ($cols as $i => $f)
$cols[$i] = "`" . $f . "`";
}
$sql = "UPDATE " . $table . " SET ";
for ($f = 0; $f < $fieldSize; ++$f) {
if ($f > 0)
$sql .= ", ";
$sql .= $cols[$f] . " = :update_" . $fields[$f];
}
$sql .= " WHERE " . $where . ";";
$bind = $this->cleanup($bind);
foreach ($fields as $field)
$bind[":update_$field"] = $info[$field];
return $this->query($sql, $bind, $debug);
}
}
?>
| mit |
edouardpa/node-yeelight-bedside-lamp | test/models/lamp.js | 368 | 'use strict';
module.exports = function(sequelize, DataTypes) {
var Lamp = sequelize.define('Lamp', {
name: DataTypes.STRING,
address: DataTypes.STRING
}/*, {
classMethods: {
associate: function(models) {
// associations can be defined here
}
}
}*/);
Lamp.state = null;
Lamp.peripheral = null;
return Lamp;
};
| mit |
formula123/WPF-Learning | MetroUI/Properties/AssemblyInfo.cs | 2373 | using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("MetroUI")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("MetroUI")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
//In order to begin building localizable applications, set
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
//inside a <PropertyGroup>. For example, if you are using US english
//in your source files, set the <UICulture> to en-US. Then uncomment
//the NeutralResourceLanguage attribute below. Update the "en-US" in
//the line below to match the UICulture setting in the project file.
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| mit |
w-y/ecma262-jison | src/bnf/NamedImports.js | 257 | module.exports = {
conditions: [''],
name: 'NamedImports',
rules: [
'{ }',
'{ ImportsList }',
'{ ImportsList , }',
],
handlers: [
'$$ = [];',
'$$ = $2;',
'$$ = $2;',
],
subRules: [
require('./ImportsList'),
],
};
| mit |
c58/onsenui-react | src/components/onsen/ons-navigator/lift-slide-animator.js | 4272 | /*
Copyright 2013-2015 ASIAL CORPORATION
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
import ReactDOM from 'react-dom';
import NavigatorTransitionAnimator from './animator';
import util from '../util';
import animit from '../animit';
/**
* Lift screen transition.
*/
export default class LiftNavigatorTransitionAnimator extends NavigatorTransitionAnimator {
constructor(options) {
options = util.extend({
duration: 0.4,
timing: 'cubic-bezier(.1, .7, .1, 1)',
delay: 0
}, options || {});
super(options);
this.backgroundMask = util.createElement(`
<div style="position: absolute; width: 100%; height: 100%;
background-color: black;"></div>
`);
}
/**
* @param {Object} enterPage
* @param {Object} leavePage
* @param {Function} callback
*/
push(enterPage, leavePage, callback) {
this.backgroundMask.remove();
const leavePageElem = ReactDOM.findDOMNode(leavePage);
const enterPageElem = ReactDOM.findDOMNode(enterPage);
leavePageElem.parentNode.insertBefore(this.backgroundMask, leavePageElem);
const maskClear = animit(this.backgroundMask)
.wait(0.6)
.queue(done => {
this.backgroundMask.remove();
done();
});
animit.runAll(
maskClear,
animit(enterPageElem)
.saveStyle()
.queue({
css: {
transform: 'translate3D(0, 100%, 0)',
},
duration: 0
})
.wait(this.delay)
.queue({
css: {
transform: 'translate3D(0, 0, 0)',
},
duration: this.duration,
timing: this.timing
})
.wait(0.2)
.restoreStyle()
.queue(function(done) {
callback();
done();
}),
animit(leavePageElem)
.queue({
css: {
transform: 'translate3D(0, 0, 0)',
opacity: 1.0
},
duration: 0
})
.wait(this.delay)
.queue({
css: {
transform: 'translate3D(0, -10%, 0)',
opacity: 0.9
},
duration: this.duration,
timing: this.timing
})
);
}
/**
* @param {Object} enterPage
* @param {Object} leavePage
* @param {Function} callback
*/
pop(enterPage, leavePage, callback) {
this.backgroundMask.remove();
const leavePageElem = ReactDOM.findDOMNode(leavePage);
const enterPageElem = ReactDOM.findDOMNode(enterPage);
enterPageElem.parentNode.insertBefore(this.backgroundMask, enterPageElem);
animit.runAll(
animit(this.backgroundMask)
.wait(0.4)
.queue(done => {
this.backgroundMask.remove();
done();
}),
animit(enterPageElem)
.queue({
css: {
transform: 'translate3D(0, -10%, 0)',
opacity: 0.9
},
duration: 0
})
.wait(this.delay)
.queue({
css: {
transform: 'translate3D(0, 0, 0)',
opacity: 1.0
},
duration: this.duration,
timing: this.timing
})
.wait(0.4)
.queue(function(done) {
callback();
done();
}),
animit(leavePageElem)
.queue({
css: {
transform: 'translate3D(0, 0, 0)'
},
duration: 0
})
.wait(this.delay)
.queue({
css: {
transform: 'translate3D(0, 100%, 0)'
},
duration: this.duration,
timing: this.timing
})
);
}
}
| mit |
superbe/Super_BE.Utilities | Super_BE.Utilities/Diagnostics/Errors.cs | 483 | using System.Collections.Generic;
namespace Super_BE.Utilities.Diagnostics
{
/// <summary>
/// Журнал ошибок.
/// </summary>
public class Errors
{
private readonly List<ErrorItem> _items;
public Errors()
{
_items = new List<ErrorItem>();
}
public Errors(List<ErrorItem> items)
{
_items = items;
}
public List<ErrorItem> Items
{
get { return _items; }
}
public int PageCount { get; set; }
public int Page { get; set; }
}
} | mit |
jaredhanson/phantomjs-mocha | reporter.js | 774 | define(function() {
function Reporter(runner) {
var total = runner.total
, i = 1;
runner.on('start', function() {
send('start', { total: total });
});
runner.on('pass', function(test) {
send('pass', { i: i, title: test.fullTitle() })
});
runner.on('pending', function(test) {
send('pass', { i: i, title: test.fullTitle(), skip: true })
});
runner.on('fail', function(test, err){
send('fail', { i: i, title: test.fullTitle() })
});
runner.on('test end', function() {
++i;
});
runner.on('end', function() {
send('end');
});
}
function send(event, test) {
alert(JSON.stringify({ event: event, params: test }));
}
return Reporter;
});
| mit |
goods/ember-goods | addon/models/payment.ts | 1406 | import DS from "ember-data";
import Order from "./order";
import ShopPaymentMethod from "./shop-payment-method";
export default class Payment extends DS.Model {
@DS.attr("number") amount!: number;
@DS.attr("string") token!: string;
@DS.attr("boolean", { defaultValue: true }) capture!: boolean;
@DS.attr("string") cardNumber!: string;
@DS.attr("string") cardholder!: string;
@DS.attr("string") cardType!: string;
@DS.attr("string") validFrom!: string;
@DS.attr("string") expiryDate!: string;
@DS.attr("string") issueNumber!: string;
@DS.attr("string") cvv!: string;
@DS.attr("string") challengeUrl!: string;
@DS.attr() challengeRequest!: any;
@DS.attr() challengeResponse!: any;
@DS.attr("string") challengeSuccessUrl!: string;
@DS.attr("string") challengeFailedUrl!: string;
@DS.attr("boolean") browserJavascriptEnabled!: boolean;
@DS.attr("boolean") browserJavaEnabled!: boolean;
@DS.attr("string") browserColorDepth!: string;
@DS.attr("string") browserScreenHeight!: string;
@DS.attr("string") browserScreenWidth!: string;
@DS.attr("string") browserTimezone!: string;
@DS.attr("string") browserLanguage!: string;
@DS.belongsTo("order") order!: Order;
@DS.belongsTo("shop-payment-method") shopPaymentMethod!: ShopPaymentMethod;
}
declare module "ember-data/types/registries/model" {
export default interface ModelRegistry {
payment: Payment;
}
}
| mit |
jlglorences/jorge_prueba | src/Frontend/Core/Engine/Base/Widget.php | 7254 | <?php
namespace Frontend\Core\Engine\Base;
/*
* This file is part of Fork CMS.
*
* For the full copyright and license information, please view the license
* file that was distributed with this source code.
*/
use Symfony\Component\HttpKernel\KernelInterface;
use Frontend\Core\Engine\Header;
use Frontend\Core\Engine\Url;
/**
* This class implements a lot of functionality that can be extended by a specific widget
*
* @later Check which methods are the same in FrontendBaseBlock, maybe we should extend from a general class
*
* @author Tijs Verkoyen <tijs@sumocoders.be>
* @author Dieter Vanden Eynde <dieter@dieterve.be>
* @author Matthias Mullie <forkcms@mullie.eu>
*/
class Widget extends Object
{
/**
* The current action
*
* @var string
*/
protected $action;
/**
* The data
*
* @var mixed
*/
protected $data;
/**
* The header object
*
* @var Header
*/
protected $header;
/**
* The current module
*
* @var string
*/
protected $module;
/**
* Path to the template
*
* @var string
*/
public $templatePath;
/**
* A reference to the URL-instance
*
* @var Url
*/
public $URL;
/**
* @param KernelInterface $kernel
* @param string $module The module to use.
* @param string $action The action to use.
* @param string $data The data that should be available.
*/
public function __construct(KernelInterface $kernel, $module, $action, $data = null)
{
parent::__construct($kernel);
// get objects from the reference so they are accessible
$this->header = $this->getContainer()->get('header');
$this->URL = $this->getContainer()->get('url');
// set properties
$this->setModule($module);
$this->setAction($action);
$this->setData($data);
}
/**
* Add a CSS file into the array
*
* @param string $file The path for the CSS-file that should be loaded.
* @param bool $overwritePath Whether or not to add the module to this path. Module path is added by default.
* @param bool $minify Should the CSS be minified?
* @param bool $addTimestamp May we add a timestamp for caching purposes?
*/
public function addCSS($file, $overwritePath = false, $minify = true, $addTimestamp = null)
{
// redefine
$file = (string) $file;
$overwritePath = (bool) $overwritePath;
// use module path
if (!$overwritePath) {
$file = '/src/Frontend/Modules/' . $this->getModule() . '/Layout/Css/' . $file;
}
// add css to the header
$this->header->addCSS($file, $minify, $addTimestamp);
}
/**
* Add a javascript file into the array
*
* @param string $file The path to the javascript-file that should be loaded.
* @param bool $overwritePath Whether or not to add the module to this path. Module path is added by default.
* @param bool $minify Should the file be minified?
*/
public function addJS($file, $overwritePath = false, $minify = true)
{
$file = (string) $file;
$overwritePath = (bool) $overwritePath;
// use module path
if (!$overwritePath) {
$file = '/src/Frontend/Modules/' . $this->getModule() . '/Js/' . $file;
}
// add js to the header
$this->header->addJS($file, $minify);
}
/**
* Add data that should be available in JS
*
* @param string $key The key whereunder the value will be stored.
* @param mixed $value The value to pass.
*/
public function addJSData($key, $value)
{
$this->header->addJSData($this->getModule(), $key, $value);
}
/**
* Execute the action
* If a javascript file with the name of the module or action exists it will be loaded.
*/
public function execute()
{
// build path to the module
$frontendModulePath = FRONTEND_MODULES_PATH . '/' . $this->getModule();
// build URL to the module
$frontendModuleURL = '/src/Frontend/Modules/' . $this->getModule() . '/Js';
// add javascript file with same name as module (if the file exists)
if (is_file($frontendModulePath . '/Js/' . $this->getModule() . '.js')) {
$this->header->addJS($frontendModuleURL . '/' . $this->getModule() . '.js', false, null, Header::PRIORITY_GROUP_WIDGET);
}
// add javascript file with same name as the action (if the file exists)
if (is_file($frontendModulePath . '/Js/' . $this->getAction() . '.js')) {
$this->header->addJS($frontendModuleURL . '/' . $this->getAction() . '.js', false, null, Header::PRIORITY_GROUP_WIDGET);
}
}
/**
* Get the action
*
* @return string
*/
public function getAction()
{
return $this->action;
}
/**
* Get parsed template content
*
* @return string
*/
public function getContent()
{
return $this->tpl->getContent($this->templatePath);
}
/**
* Get the module
*
* @return string
*/
public function getModule()
{
return $this->module;
}
/**
* Get template
*
* @return string
*/
public function getTemplate()
{
return $this->tpl;
}
/**
* Load the template
*
* @param string $path The path for the template to use.
*/
protected function loadTemplate($path = null)
{
// no template given, so we should build the path
if ($path === null) {
// build path to the module
$frontendModulePath = FRONTEND_MODULES_PATH . '/' . $this->getModule();
// build template path
$path = $frontendModulePath . '/Layout/Widgets/' . $this->getAction() . '.html.twig';
} else {
// redefine
$path = (string) $path;
}
// set template
$this->setTemplatePath($path);
}
/**
* Set the action, for later use
*
* @param string $action The action to use.
*/
private function setAction($action)
{
$this->action = (string) $action;
}
/**
* Set the data, for later use
*
* @param string $data The data that should available.
*/
private function setData($data = null)
{
// data given?
if ($data !== null) {
// unserialize data
$data = unserialize($data);
// store
$this->data = $data;
}
}
/**
* Set the module, for later use
*
* @param string $module The module to use.
*/
private function setModule($module)
{
$this->module = (string) $module;
}
/**
* Set the path for the template to include or to replace the current one
*
* @param string $path The path to the template that should be loaded.
*/
protected function setTemplatePath($path)
{
$this->templatePath = (string) $path;
}
}
| mit |
jacklam718/react-svg-iconx | webpack.config.js | 619 | const path = require('path');
module.exports = {
entry: path.join(__dirname, 'src'),
output: {
path: path.join(__dirname, 'dist'),
filename: '[name].js',
},
devtool: false,
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: [
'react',
'babel-preset-es2015',
'babel-preset-stage-0',
],
plugins: [
'babel-plugin-transform-runtime',
],
},
},
},
],
},
};
| mit |
DmitrySibert/virtual-folder | VirtualFolderAdapter/HWdTech.DS Job1/Messages/TryOpenFileMessage.cs | 509 | using HWdTech.DS.v30;
using HWdTech.DS.v30.Messages;
using HWdTech.DS.v30.PropertyObjects;
namespace VirtualFolderAdapter.Messages
{
class TryOpenFileMessage
{
public static bool IsMeet(IMessage message)
{
return FileName.IsSet(message);
}
public static Field<string> FileName
{
get
{
return fileName;
}
}
static Field<string> fileName = new Field<string>("FileName");
}
}
| mit |
deslee/static-isomorphic-starter | src/stores/AppStore.js | 593 | import { createStore } from 'redux'
import actionTypes from '../constants/ActionTypes'
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
var initial = {
pageLoading: false
};
export var appStoreDispatcher = event => {
if (canUseDOM) {
AppStore.dispatch(event);
}
};
var AppStore = createStore((state = initial, action) => {
switch(action.type) {
case (actionTypes.LOADING_STARTED):
state.pageLoading = true;
break;
case (actionTypes.LOADING_FINISHED):
state.pageLoading = false;
break;
}
return state;
});
export default AppStore;
| mit |
kenfly51/ps-react | config/webpack.config.prod.js | 15385 | 'use strict';
const autoprefixer = require('autoprefixer');
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const ManifestPlugin = require('webpack-manifest-plugin');
const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
const SWPrecacheWebpackPlugin = require('sw-precache-webpack-plugin');
const eslintFormatter = require('react-dev-utils/eslintFormatter');
const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
const paths = require('./paths');
const getClientEnvironment = require('./env');
// Webpack uses `publicPath` to determine where the app is being served from.
// It requires a trailing slash, or the file assets will get an incorrect path.
const publicPath = paths.servedPath;
// Some apps do not use client-side routing with pushState.
// For these, "homepage" can be set to "." to enable relative asset paths.
const shouldUseRelativeAssetPaths = publicPath === './';
// Source maps are resource heavy and can cause out of memory issue for large source files.
const shouldUseSourceMap = process.env.GENERATE_SOURCEMAP !== 'false';
// `publicUrl` is just like `publicPath`, but we will provide it to our app
// as %PUBLIC_URL% in `index.html` and `process.env.PUBLIC_URL` in JavaScript.
// Omit trailing slash as %PUBLIC_URL%/xyz looks better than %PUBLIC_URL%xyz.
const publicUrl = publicPath.slice(0, -1);
// Get environment variables to inject into our app.
const env = getClientEnvironment(publicUrl);
// Assert this just to be safe.
// Development builds of React are slow and not intended for production.
if (env.stringified['process.env'].NODE_ENV !== '"production"') {
throw new Error('Production builds must have NODE_ENV=production.');
}
// Note: defined here because it will be used more than once.
const cssFilename = 'static/css/[name].[contenthash:8].css';
// ExtractTextPlugin expects the build output to be flat.
// (See https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/27)
// However, our output is structured with css, js and media folders.
// To have this structure working with relative paths, we have to use custom options.
const extractTextPluginOptions = shouldUseRelativeAssetPaths
? // Making sure that the publicPath goes back to to build folder.
{ publicPath: Array(cssFilename.split('/').length).join('../') }
: {};
// This is the production configuration.
// It compiles slowly and is focused on producing a fast and minimal bundle.
// The development configuration is different and lives in a separate file.
module.exports = {
// Don't attempt to continue if there are any errors.
bail: true,
// We generate sourcemaps in production. This is slow but gives good results.
// You can exclude the *.map files from the build during deployment.
devtool: shouldUseSourceMap ? 'source-map' : false,
// In production, we only want to load the polyfills and the app code.
entry: [require.resolve('./polyfills'), paths.appIndexJs],
output: {
// The build folder.
path: paths.appBuild,
// Generated JS file names (with nested folders).
// There will be one main bundle, and one file per asynchronous chunk.
// We don't currently advertise code splitting but Webpack supports it.
filename: 'static/js/[name].[chunkhash:8].js',
chunkFilename: 'static/js/[name].[chunkhash:8].chunk.js',
// We inferred the "public path" (such as / or /my-project) from homepage.
publicPath: publicPath,
// Point sourcemap entries to original disk location (format as URL on Windows)
devtoolModuleFilenameTemplate: info =>
path
.relative(paths.appSrc, info.absoluteResourcePath)
.replace(/\\/g, '/'),
},
resolve: {
// This allows you to set a fallback for where Webpack should look for modules.
// We placed these paths second because we want `node_modules` to "win"
// if there are any conflicts. This matches Node resolution mechanism.
// https://github.com/facebookincubator/create-react-app/issues/253
modules: ['node_modules', paths.appNodeModules].concat(
// It is guaranteed to exist because we tweak it in `env.js`
process.env.NODE_PATH.split(path.delimiter).filter(Boolean)
),
// These are the reasonable defaults supported by the Node ecosystem.
// We also include JSX as a common component filename extension to support
// some tools, although we do not recommend using it, see:
// https://github.com/facebookincubator/create-react-app/issues/290
// `web` extension prefixes have been added for better support
// for React Native Web.
extensions: ['.web.js', '.js', '.json', '.web.jsx', '.jsx'],
alias: {
// Support React Native Web
// https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
'react-native': 'react-native-web',
'ps-react': path.resolve(__dirname, '../src/components'),
},
plugins: [
// Prevents users from importing files from outside of src/ (or node_modules/).
// This often causes confusion because we only process files within src/ with babel.
// To fix this, we prevent you from importing files out of src/ -- if you'd like to,
// please link the files into your node_modules/ and let module-resolution kick in.
// Make sure your source files are compiled, as they will not be processed in any way.
// new ModuleScopePlugin(paths.appSrc, [paths.appPackageJson]),
],
},
module: {
strictExportPresence: true,
rules: [
// TODO: Disable require.ensure as it's not a standard language feature.
// We are waiting for https://github.com/facebookincubator/create-react-app/issues/2176.
// { parser: { requireEnsure: false } },
// First, run the linter.
// It's important to do this before Babel processes the JS.
{
test: /\.(js|jsx)$/,
enforce: 'pre',
use: [
{
options: {
formatter: eslintFormatter,
eslintPath: require.resolve('eslint'),
},
loader: require.resolve('eslint-loader'),
},
],
include: paths.appSrc,
},
{
// "oneOf" will traverse all following loaders until one will
// match the requirements. When no loader matches it will fall
// back to the "file" loader at the end of the loader list.
oneOf: [
// "url" loader works just like "file" loader but it also embeds
// assets smaller than specified size as data URLs to avoid requests.
{
test: [/\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/],
loader: require.resolve('url-loader'),
options: {
limit: 10000,
name: 'static/media/[name].[hash:8].[ext]',
},
},
// Process JS with Babel.
{
test: /\.(js|jsx)$/,
include: paths.appSrc,
loader: require.resolve('babel-loader'),
options: {
compact: true,
},
},
// The notation here is somewhat confusing.
// "postcss" loader applies autoprefixer to our CSS.
// "css" loader resolves paths in CSS and adds assets as dependencies.
// "style" loader normally turns CSS into JS modules injecting <style>,
// but unlike in development configuration, we do something different.
// `ExtractTextPlugin` first applies the "postcss" and "css" loaders
// (second argument), then grabs the result CSS and puts it into a
// separate file in our build process. This way we actually ship
// a single CSS file in production instead of JS code injecting <style>
// tags. If you use code splitting, however, any async bundles will still
// use the "style" loader inside the async code so CSS from them won't be
// in the main CSS file.
{
test: /\.css$/,
loader: ExtractTextPlugin.extract(
Object.assign(
{
fallback: require.resolve('style-loader'),
use: [
{
loader: require.resolve('css-loader'),
options: {
importLoaders: 1,
minimize: true,
sourceMap: shouldUseSourceMap,
modules: true,
localIdentName: '[name]_[local]__[hash:base64:5]'
},
},
{
loader: require.resolve('postcss-loader'),
options: {
// Necessary for external CSS imports to work
// https://github.com/facebookincubator/create-react-app/issues/2677
ident: 'postcss',
plugins: () => [
require('postcss-flexbugs-fixes'),
autoprefixer({
browsers: [
'>1%',
'last 4 versions',
'Firefox ESR',
'not ie < 9', // React doesn't support IE8 anyway
],
flexbox: 'no-2009',
}),
],
},
},
],
},
extractTextPluginOptions
)
),
// Note: this won't work without `new ExtractTextPlugin()` in `plugins`.
},
// "file" loader makes sure assets end up in the `build` folder.
// When you `import` an asset, you get its filename.
// This loader doesn't use a "test" so it will catch all modules
// that fall through the other loaders.
{
loader: require.resolve('file-loader'),
// Exclude `js` files to keep "css" loader working as it injects
// it's runtime that would otherwise processed through "file" loader.
// Also exclude `html` and `json` extensions so they get processed
// by webpacks internal loaders.
exclude: [/\.js$/, /\.html$/, /\.json$/],
options: {
name: 'static/media/[name].[hash:8].[ext]',
},
},
// ** STOP ** Are you adding a new loader?
// Make sure to add the new loader(s) before the "file" loader.
],
},
],
},
plugins: [
// Makes some environment variables available in index.html.
// The public URL is available as %PUBLIC_URL% in index.html, e.g.:
// <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
// In production, it will be an empty string unless you specify "homepage"
// in `package.json`, in which case it will be the pathname of that URL.
new InterpolateHtmlPlugin(env.raw),
// Generates an `index.html` file with the <script> injected.
new HtmlWebpackPlugin({
inject: true,
template: paths.appHtml,
minify: {
removeComments: true,
collapseWhitespace: true,
removeRedundantAttributes: true,
useShortDoctype: true,
removeEmptyAttributes: true,
removeStyleLinkTypeAttributes: true,
keepClosingSlash: true,
minifyJS: true,
minifyCSS: true,
minifyURLs: true,
},
}),
// Makes some environment variables available to the JS code, for example:
// if (process.env.NODE_ENV === 'production') { ... }. See `./env.js`.
// It is absolutely essential that NODE_ENV was set to production here.
// Otherwise React will be compiled in the very slow development mode.
new webpack.DefinePlugin(env.stringified),
// Minify the code.
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false,
// Disabled because of an issue with Uglify breaking seemingly valid code:
// https://github.com/facebookincubator/create-react-app/issues/2376
// Pending further investigation:
// https://github.com/mishoo/UglifyJS2/issues/2011
comparisons: false,
},
output: {
comments: false,
// Turned on because emoji and regex is not minified properly using default
// https://github.com/facebookincubator/create-react-app/issues/2488
ascii_only: true,
},
sourceMap: shouldUseSourceMap,
}),
// Note: this won't work without ExtractTextPlugin.extract(..) in `loaders`.
new ExtractTextPlugin({
filename: cssFilename,
}),
// Generate a manifest file which contains a mapping of all asset filenames
// to their corresponding output file so that tools can pick it up without
// having to parse `index.html`.
new ManifestPlugin({
fileName: 'asset-manifest.json',
}),
// Generate a service worker script that will precache, and keep up to date,
// the HTML & assets that are part of the Webpack build.
new SWPrecacheWebpackPlugin({
// By default, a cache-busting query parameter is appended to requests
// used to populate the caches, to ensure the responses are fresh.
// If a URL is already hashed by Webpack, then there is no concern
// about it being stale, and the cache-busting can be skipped.
dontCacheBustUrlsMatching: /\.\w{8}\./,
filename: 'service-worker.js',
logger(message) {
if (message.indexOf('Total precache size is') === 0) {
// This message occurs for every build and is a bit too noisy.
return;
}
if (message.indexOf('Skipping static resource') === 0) {
// This message obscures real errors so we ignore it.
// https://github.com/facebookincubator/create-react-app/issues/2612
return;
}
console.log(message);
},
minify: true,
// For unknown URLs, fallback to the index page
navigateFallback: publicUrl + '/index.html',
// Ignores URLs starting from /__ (useful for Firebase):
// https://github.com/facebookincubator/create-react-app/issues/2237#issuecomment-302693219
navigateFallbackWhitelist: [/^(?!\/__).*/],
// Don't precache sourcemaps (they're large) and build asset manifest:
staticFileGlobsIgnorePatterns: [/\.map$/, /asset-manifest\.json$/],
}),
// Moment.js is an extremely popular library that bundles large locale files
// by default due to how Webpack interprets its code. This is a practical
// solution that requires the user to opt into importing specific locales.
// https://github.com/jmblog/how-to-optimize-momentjs-with-webpack
// You can remove this if you don't use Moment.js:
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
],
// Some libraries import Node modules but don't use them in the browser.
// Tell Webpack to provide empty mocks for them so importing them works.
node: {
dgram: 'empty',
fs: 'empty',
net: 'empty',
tls: 'empty',
child_process: 'empty',
},
};
| mit |
wubzz/knex | src/client.js | 9570 | import Promise from 'bluebird';
import * as helpers from './helpers';
import Raw from './raw';
import Runner from './runner';
import Formatter from './formatter';
import Transaction from './transaction';
import QueryBuilder from './query/builder';
import QueryCompiler from './query/compiler';
import SchemaBuilder from './schema/builder';
import SchemaCompiler from './schema/compiler';
import TableBuilder from './schema/tablebuilder';
import TableCompiler from './schema/tablecompiler';
import ColumnBuilder from './schema/columnbuilder';
import ColumnCompiler from './schema/columncompiler';
import { Pool, TimeoutError } from 'tarn';
import inherits from 'inherits';
import { EventEmitter } from 'events';
import { makeEscape } from './query/string'
import { assign, uniqueId, cloneDeep, defaults } from 'lodash'
const debug = require('debug')('knex:client')
const debugQuery = require('debug')('knex:query')
const debugBindings = require('debug')('knex:bindings')
let id = 0
function clientId() {
return `client${id++}`
}
// The base client provides the general structure
// for a dialect specific client object.
function Client(config = {}) {
this.config = config
//Client is a required field, so throw error if it's not supplied.
//If 'this.dialect' is set, then this is a 'super()' call, in which case
//'client' does not have to be set as it's already assigned on the client prototype.
if(!this.config.client && !this.dialect) {
throw new Error(`knex: Required configuration option 'client' is missing.`)
}
this.connectionSettings = cloneDeep(config.connection || {})
if (this.driverName && config.connection) {
this.initializeDriver()
if (!config.pool || (config.pool && config.pool.max !== 0)) {
this.__cid = clientId()
this.initializePool(config)
}
}
this.valueForUndefined = this.raw('DEFAULT');
if (config.useNullAsDefault) {
this.valueForUndefined = null
}
}
inherits(Client, EventEmitter)
assign(Client.prototype, {
formatter(builder) {
return new Formatter(this, builder)
},
queryBuilder() {
return new QueryBuilder(this)
},
queryCompiler(builder) {
return new QueryCompiler(this, builder)
},
schemaBuilder() {
return new SchemaBuilder(this)
},
schemaCompiler(builder) {
return new SchemaCompiler(this, builder)
},
tableBuilder(type, tableName, fn) {
return new TableBuilder(this, type, tableName, fn)
},
tableCompiler(tableBuilder) {
return new TableCompiler(this, tableBuilder)
},
columnBuilder(tableBuilder, type, args) {
return new ColumnBuilder(this, tableBuilder, type, args)
},
columnCompiler(tableBuilder, columnBuilder) {
return new ColumnCompiler(this, tableBuilder, columnBuilder)
},
runner(builder) {
return new Runner(this, builder)
},
transaction(container, config, outerTx) {
return new Transaction(this, container, config, outerTx)
},
raw() {
return new Raw(this).set(...arguments)
},
_formatQuery(sql, bindings, timeZone) {
bindings = bindings == null ? [] : [].concat(bindings);
let index = 0;
return sql.replace(/\\?\?/g, (match) => {
if (match === '\\?') {
return '?'
}
if (index === bindings.length) {
return match
}
const value = bindings[index++];
return this._escapeBinding(value, {timeZone})
})
},
_escapeBinding: makeEscape({
escapeString(str) {
return `'${str.replace(/'/g, "''")}'`
}
}),
query(connection, obj) {
if (typeof obj === 'string') obj = {sql: obj}
obj.sql = this.positionBindings(obj.sql);
obj.bindings = this.prepBindings(obj.bindings)
debugQuery(obj.sql)
this.emit('query', assign({__knexUid: connection.__knexUid}, obj))
debugBindings(obj.bindings)
return this._query(connection, obj).catch((err) => {
err.message = this._formatQuery(obj.sql, obj.bindings) + ' - ' + err.message
this.emit('query-error', err, assign({__knexUid: connection.__knexUid}, obj))
throw err
})
},
stream(connection, obj, stream, options) {
if (typeof obj === 'string') obj = {sql: obj}
obj.sql = this.positionBindings(obj.sql);
obj.bindings = this.prepBindings(obj.bindings)
this.emit('query', assign({__knexUid: connection.__knexUid}, obj))
debugQuery(obj.sql)
debugBindings(obj.bindings)
return this._stream(connection, obj, stream, options)
},
prepBindings(bindings) {
return bindings;
},
positionBindings(sql) {
return sql;
},
postProcessResponse(resp, queryContext) {
if (this.config.postProcessResponse) {
return this.config.postProcessResponse(resp, queryContext);
}
return resp;
},
wrapIdentifier(value, queryContext) {
return this.customWrapIdentifier(value, this.wrapIdentifierImpl, queryContext);
},
customWrapIdentifier(value, origImpl, queryContext) {
if (this.config.wrapIdentifier) {
return this.config.wrapIdentifier(value, origImpl, queryContext);
}
return origImpl(value);
},
wrapIdentifierImpl(value) {
return (value !== '*' ? `"${value.replace(/"/g, '""')}"` : '*')
},
initializeDriver() {
try {
this.driver = this._driver()
} catch (e) {
helpers.exit(`Knex: run\n$ npm install ${this.driverName} --save\n${e.stack}`)
}
},
poolDefaults() {
return {min: 2, max: 10, propagateCreateError: true}
},
getPoolSettings(poolConfig) {
poolConfig = defaults({}, poolConfig, this.poolDefaults());
[
'maxWaitingClients',
'testOnBorrow',
'fifo',
'priorityRange',
'autostart',
'evictionRunIntervalMillis',
'numTestsPerRun',
'softIdleTimeoutMillis',
'Promise'
].forEach(option => {
if (option in poolConfig) {
helpers.warn([
`Pool config option "${option}" is no longer supported.`,
`See https://github.com/Vincit/tarn.js for possible pool config options.`
].join(' '))
}
})
const timeouts = [
this.config.acquireConnectionTimeout || 60000,
poolConfig.acquireTimeoutMillis
].filter(timeout => timeout !== undefined);
// acquire connection timeout can be set on config or config.pool
// choose the smallest, positive timeout setting and set on poolConfig
poolConfig.acquireTimeoutMillis = Math.min(...timeouts);
return Object.assign(poolConfig, {
create: () => {
return this.acquireRawConnection().tap(connection => {
connection.__knexUid = uniqueId('__knexUid')
if (poolConfig.afterCreate) {
return Promise.promisify(poolConfig.afterCreate)(connection)
}
});
},
destroy: (connection) => {
if (poolConfig.beforeDestroy) {
helpers.warn(`
beforeDestroy is deprecated, please open an issue if you use this
to discuss alternative apis
`)
poolConfig.beforeDestroy(connection, function() {})
}
if (connection !== void 0) {
return this.destroyRawConnection(connection)
}
},
validate: (connection) => {
if (connection.__knex__disposed) {
helpers.warn(`Connection Error: ${connection.__knex__disposed}`)
return false
}
return this.validateConnection(connection)
}
})
},
initializePool(config) {
if (this.pool) {
helpers.warn('The pool has already been initialized')
return
}
this.pool = new Pool(this.getPoolSettings(config.pool))
},
validateConnection(connection) {
return true
},
// Acquire a connection from the pool.
acquireConnection() {
if (!this.pool) {
return Promise.reject(new Error('Unable to acquire a connection'))
}
return Promise
.try(() => this.pool.acquire().promise)
.tap(connection => {
debug('acquired connection from pool: %s', connection.__knexUid)
})
.catch(TimeoutError, () => {
throw new Promise.TimeoutError(
'Knex: Timeout acquiring a connection. The pool is probably full. ' +
'Are you missing a .transacting(trx) call?'
)
});
},
// Releases a connection back to the connection pool,
// returning a promise resolved when the connection is released.
releaseConnection(connection) {
debug('releasing connection to pool: %s', connection.__knexUid)
const didRelease = this.pool.release(connection)
if (!didRelease) {
debug('pool refused connection: %s', connection.__knexUid)
}
return Promise.resolve()
},
// Destroy the current connection pool for the client.
destroy(callback) {
let promise = null
if (this.pool) {
promise = this.pool.destroy()
} else {
promise = Promise.resolve()
}
return promise.then(() => {
this.pool = void 0
if (typeof callback === 'function') {
callback()
}
}).catch(err => {
if (typeof callback === 'function') {
callback(err)
}
return Promise.reject(err)
})
},
// Return the database being used by this client.
database() {
return this.connectionSettings.database
},
toString() {
return '[object KnexClient]'
},
canCancelQuery: false,
assertCanCancelQuery() {
if (!this.canCancelQuery) {
throw new Error("Query cancelling not supported for this dialect");
}
},
cancelQuery() {
throw new Error("Query cancelling not supported for this dialect")
}
})
export default Client
| mit |
coinstar/star | src/qt/locale/bitcoin_ca_ES.ts | 132611 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="ca_ES" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About StarCoin</source>
<translation>Sobre StarCoin</translation>
</message>
<message>
<location line="+39"/>
<source><b>StarCoin</b> version</source>
<translation>versió <b>StarCoin</b></translation>
</message>
<message>
<location line="+41"/>
<source>Copyright © 2009-2014 The Bitcoin developers
Copyright © 2012-2014 The NovaCoin developers
Copyright © 2014 The StarCoin developers</source>
<translation>Copyright © 2009-2014 The Bitcoin developers
Copyright © 2012-2014 The NovaCoin developers
Copyright © 2014 The StarCoin 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 (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source>
<translation>\n Aquest és software experimental.\n\n Distribuït sota llicència de software MIT/11, veure l'arxiu COPYING o http://www.opensource.org/licenses/mit-license.php.\n\nAquest producte inclou software desarrollat pel projecte OpenSSL per a l'ús de OppenSSL Toolkit (http://www.openssl.org/) i de software criptogràfic escrit per l'Eric Young (eay@cryptsoft.com) i software UPnP escrit per en Thomas Bernard.</translation>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation>Llibreta d'adreces</translation>
</message>
<message>
<location line="+22"/>
<source>Double-click to edit address or label</source>
<translation>Feu doble clic per editar l'adreça o l'etiqueta</translation>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation>Crear una nova adreça</translation>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Copiar l'adreça seleccionada al porta-retalls del sistema</translation>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation>&Nova adreça</translation>
</message>
<message>
<location line="-46"/>
<source>These are your StarCoin 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>Aquestes són les teves adreces de StarCoin per rebre els pagaments. És possible que vulgueu donar una diferent a cada remitent per a poder realitzar un seguiment de qui li está pagant.</translation>
</message>
<message>
<location line="+60"/>
<source>&Copy Address</source>
<translation>&Copiar adreça</translation>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation>Mostra el códi &QR</translation>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a StarCoin address</source>
<translation>Signar un missatge per demostrar que és propietari d'una adreça StarCoin</translation>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation>Signar &Message</translation>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation>Esborrar l'adreça sel·leccionada</translation>
</message>
<message>
<location line="-14"/>
<source>Verify a message to ensure it was signed with a specified StarCoin address</source>
<translation>Comproveu el missatge per assegurar-se que es va signar amb una adreça StarCoin especificada.</translation>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation>&Verificar el missatge</translation>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>&Esborrar</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+65"/>
<source>Copy &Label</source>
<translation>Copiar &Etiqueta</translation>
</message>
<message>
<location line="+2"/>
<source>&Edit</source>
<translation>&Editar</translation>
</message>
<message>
<location line="+250"/>
<source>Export Address Book Data</source>
<translation>Exportar dades de la llibreta d'adreces </translation>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Arxiu de separació per comes (*.csv)</translation>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation>Error a l'exportar</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>No s'ha pogut escriure al fitxer %1.</translation>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+144"/>
<source>Label</source>
<translation>Etiqueta</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Adreça</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>(sense etiqueta)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation>Dialeg de contrasenya</translation>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation>Introdueix contrasenya</translation>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation>Nova contrasenya</translation>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation>Repeteix la nova contrasenya</translation>
</message>
<message>
<location line="+33"/>
<source>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</source>
<translation>Serveix per desactivar l'enviament trivial de diners quan el compte del sistema operatiu ha estat compromès. No ofereix seguretat real.</translation>
</message>
<message>
<location line="+3"/>
<source>For staking only</source>
<translation>Només per a fer "stake"</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+35"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation>Introdueixi la nova contrasenya al moneder<br/>Si us plau useu una contrasenya de <b>10 o més caracters aleatoris</b>, o <b>vuit o més paraules</b>.</translation>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation>Xifrar la cartera</translation>
</message>
<message>
<location line="+7"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>Aquesta operació requereix la seva contrasenya del moneder per a desbloquejar-lo.</translation>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation>Desbloqueja el moneder</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>Aquesta operació requereix la seva contrasenya del moneder per a desencriptar-lo.</translation>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation>Desencripta el moneder</translation>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation>Canviar la contrasenya</translation>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>Introdueixi tant l'antiga com la nova contrasenya de moneder.</translation>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation>Confirmar l'encriptació del moneder</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR COINS</b>!</source>
<translation>Avís: Si xifra la seva cartera i perd la contrasenya, podrà <b> PERDRE TOTES LES SEVES MONEDES </ b>!</translation>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation>Esteu segur que voleu encriptar el vostre moneder?</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: Tota copia de seguretat que hagis realitzat hauria de ser reemplaçada pel, recentment generat, arxiu encriptat del moneder.</translation>
</message>
<message>
<location line="+103"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation>Advertència: Les lletres majúscules estàn activades!</translation>
</message>
<message>
<location line="-133"/>
<location line="+60"/>
<source>Wallet encrypted</source>
<translation>Moneder encriptat</translation>
</message>
<message>
<location line="-58"/>
<source>StarCoin 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>StarCoin tancarà ara per acabar el procés de xifrat. Recordeu que l'encriptació de la seva cartera no pot protegir completament les seves monedes de ser robades pel malware que pugui infectar al seu equip.</translation>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+44"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation>L'encriptació del moneder ha fallat</translation>
</message>
<message>
<location line="-56"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>L'encriptació del moneder ha fallat per un error intern. El seu moneder no ha estat encriptat.</translation>
</message>
<message>
<location line="+7"/>
<location line="+50"/>
<source>The supplied passphrases do not match.</source>
<translation>La contrasenya introduïda no coincideix.</translation>
</message>
<message>
<location line="-38"/>
<source>Wallet unlock failed</source>
<translation>El desbloqueig del moneder ha fallat</translation>
</message>
<message>
<location line="+1"/>
<location line="+12"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation>La contrasenya introduïda per a desencriptar el moneder és incorrecte.</translation>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation>La desencriptació del moneder ha fallat</translation>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation>La contrasenya del moneder ha estat modificada correctament.</translation>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+282"/>
<source>Sign &message...</source>
<translation>Signar &missatge...</translation>
</message>
<message>
<location line="+251"/>
<source>Synchronizing with network...</source>
<translation>Sincronitzant amb la xarxa ...</translation>
</message>
<message>
<location line="-319"/>
<source>&Overview</source>
<translation>&Panorama general</translation>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation>Mostra panorama general del moneder</translation>
</message>
<message>
<location line="+17"/>
<source>&Transactions</source>
<translation>&Transaccions</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation>Cerca a l'historial de transaccions</translation>
</message>
<message>
<location line="+5"/>
<source>&Address Book</source>
<translation>&Llibreta d'adreces</translation>
</message>
<message>
<location line="+1"/>
<source>Edit the list of stored addresses and labels</source>
<translation>Edició de la llista d'adreces i etiquetes emmagatzemades</translation>
</message>
<message>
<location line="-13"/>
<source>&Receive coins</source>
<translation>&Rebre monedes</translation>
</message>
<message>
<location line="+1"/>
<source>Show the list of addresses for receiving payments</source>
<translation>Mostra la llista d'adreces per rebre pagaments</translation>
</message>
<message>
<location line="-7"/>
<source>&Send coins</source>
<translation>&Enviar monedes</translation>
</message>
<message>
<location line="+35"/>
<source>E&xit</source>
<translation>S&ortir</translation>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation>Sortir de l'aplicació</translation>
</message>
<message>
<location line="+6"/>
<source>Show information about StarCoin</source>
<translation>Mostra informació sobre StarCoin</translation>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation>Sobre &Qt</translation>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation>Mostra informació sobre Qt</translation>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation>&Opcions...</translation>
</message>
<message>
<location line="+4"/>
<source>&Encrypt Wallet...</source>
<translation>&Xifrar moneder</translation>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation>&Realitzant copia de seguretat del moneder...</translation>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation>&Canviar contrasenya...</translation>
</message>
<message numerus="yes">
<location line="+259"/>
<source>~%n block(s) remaining</source>
<translation><numerusform>~%n bloc restant</numerusform><numerusform>~%n blocs restants</numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source>
<translation>Descarregats %1 de %2 blocs d'historial de transaccions (%3% completat).</translation>
</message>
<message>
<location line="-256"/>
<source>&Export...</source>
<translation>&Exportar...</translation>
</message>
<message>
<location line="-64"/>
<source>Send coins to a StarCoin address</source>
<translation>Enviar monedes a una adreça StarCoin</translation>
</message>
<message>
<location line="+47"/>
<source>Modify configuration options for StarCoin</source>
<translation>Modificar les opcions de configuració per a StarCoin</translation>
</message>
<message>
<location line="+18"/>
<source>Export the data in the current tab to a file</source>
<translation>Exportar les dades de la pestanya actual a un arxiu</translation>
</message>
<message>
<location line="-14"/>
<source>Encrypt or decrypt wallet</source>
<translation>Xifrar o desxifrar cartera</translation>
</message>
<message>
<location line="+3"/>
<source>Backup wallet to another location</source>
<translation>Realitzar còpia de seguretat del moneder a un altre directori</translation>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation>Canviar la constrasenya d'encriptació del moneder</translation>
</message>
<message>
<location line="+10"/>
<source>&Debug window</source>
<translation>&Finestra de debug</translation>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation>Obrir la consola de diagnòstic i debugging</translation>
</message>
<message>
<location line="-5"/>
<source>&Verify message...</source>
<translation>&Verifica el missatge..</translation>
</message>
<message>
<location line="-202"/>
<source>StarCoin</source>
<translation>StarCoin</translation>
</message>
<message>
<location line="+0"/>
<source>Wallet</source>
<translation>Moneder</translation>
</message>
<message>
<location line="+180"/>
<source>&About StarCoin</source>
<translation>&Sobre StarCoin</translation>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation>&Mostrar / Amagar</translation>
</message>
<message>
<location line="+9"/>
<source>Unlock wallet</source>
<translation>Desbloquejar la cartera</translation>
</message>
<message>
<location line="+1"/>
<source>&Lock Wallet</source>
<translation>&Bloquejar cartera</translation>
</message>
<message>
<location line="+1"/>
<source>Lock wallet</source>
<translation>Bloquejar cartera</translation>
</message>
<message>
<location line="+35"/>
<source>&File</source>
<translation>&Arxiu</translation>
</message>
<message>
<location line="+8"/>
<source>&Settings</source>
<translation>&Configuració</translation>
</message>
<message>
<location line="+8"/>
<source>&Help</source>
<translation>&Ajuda</translation>
</message>
<message>
<location line="+12"/>
<source>Tabs toolbar</source>
<translation>Barra d'eines de seccions</translation>
</message>
<message>
<location line="+8"/>
<source>Actions toolbar</source>
<translation>Barra d'eines d'accions</translation>
</message>
<message>
<location line="+13"/>
<location line="+9"/>
<source>[testnet]</source>
<translation>[testnet]</translation>
</message>
<message>
<location line="+0"/>
<location line="+60"/>
<source>StarCoin client</source>
<translation>Client StarCoin</translation>
</message>
<message numerus="yes">
<location line="+75"/>
<source>%n active connection(s) to StarCoin network</source>
<translation><numerusform>%n conexió activa a la xarxa StarCoin</numerusform><numerusform>%n conexions actives a la xarxa StarCoin</numerusform></translation>
</message>
<message>
<location line="+40"/>
<source>Downloaded %1 blocks of transaction history.</source>
<translation>Descarregats %1 blocs d'historial de transaccions</translation>
</message>
<message>
<location line="+413"/>
<source>Staking.<br>Your weight is %1<br>Network weight is %2<br>Expected time to earn reward is %3</source>
<translation>Fent "stake".<br>El teu pes és %1<br>El pes de la xarxa és %2<br>El temps estimat per a guanyar una recompensa és 3%</translation>
</message>
<message>
<location line="+6"/>
<source>Not staking because wallet is locked</source>
<translation>No s'està fent "stake" perquè la cartera esa bloquejada</translation>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is offline</source>
<translation>No s'està fent "stake" perquè la cartera està fora de línia</translation>
</message>
<message>
<location line="+2"/>
<source>Not staking because wallet is syncing</source>
<translation>No s'està fent "stake" perquè la cartera està sincronitzant</translation>
</message>
<message>
<location line="+2"/>
<source>Not staking because you don't have mature coins</source>
<translation>No s'està fent "stake" perquè no tens monedes madures</translation>
</message>
<message numerus="yes">
<location line="-403"/>
<source>%n second(s) ago</source>
<translation><numerusform>fa %n segon</numerusform><numerusform>fa %n segons</numerusform></translation>
</message>
<message>
<location line="-312"/>
<source>About StarCoin card</source>
<translation>Sobre la tarjeta StarCoin</translation>
</message>
<message>
<location line="+1"/>
<source>Show information about StarCoin card</source>
<translation>Mostra informació sobre la tarjeta StarCoin</translation>
</message>
<message>
<location line="+18"/>
<source>&Unlock Wallet...</source>
<translation>&Desbloquejar cartera</translation>
</message>
<message numerus="yes">
<location line="+297"/>
<source>%n minute(s) ago</source>
<translation><numerusform>fa %n minut</numerusform><numerusform>fa %n minuts</numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s) ago</source>
<translation><numerusform>fa %n hora</numerusform><numerusform>fa %n hores</numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s) ago</source>
<translation><numerusform>fa %n dia</numerusform><numerusform>fa %n dies</numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Up to date</source>
<translation>Al dia</translation>
</message>
<message>
<location line="+7"/>
<source>Catching up...</source>
<translation>Posar-se al dia ...</translation>
</message>
<message>
<location line="+10"/>
<source>Last received block was generated %1.</source>
<translation>El darrer bloc rebut s'ha 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>Aquesta transacció es troba sobre el límit de mida. Encara pot enviar-la amb una comisió de 1%, aquesta va als nodes que processen la seva transacció i ajuda a mantenir la xarxa. Vol pagar la quota?</translation>
</message>
<message>
<location line="+5"/>
<source>Confirm transaction fee</source>
<translation>Confirmeu comisió</translation>
</message>
<message>
<location line="+27"/>
<source>Sent transaction</source>
<translation>Transacció enviada</translation>
</message>
<message>
<location line="+1"/>
<source>Incoming transaction</source>
<translation>Transacció entrant</translation>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation>Data: %1\nQuantitat %2\n Tipus: %3\n Adreça: %4\n</translation>
</message>
<message>
<location line="+100"/>
<location line="+15"/>
<source>URI handling</source>
<translation>Manejant URI</translation>
</message>
<message>
<location line="-15"/>
<location line="+15"/>
<source>URI can not be parsed! This can be caused by an invalid StarCoin address or malformed URI parameters.</source>
<translation>l'URI no es pot analitzar! Això pot ser causat per una adreça StarCoin no vàlida o paràmetres URI malformats.</translation>
</message>
<message>
<location line="+18"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>El moneder està <b>encriptat</b> i actualment <b>desbloquejat</b></translation>
</message>
<message>
<location line="+10"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>El moneder està <b>encriptat</b> i actualment <b>bloquejat</b></translation>
</message>
<message>
<location line="+25"/>
<source>Backup Wallet</source>
<translation>Realitzar còpia de seguretat del moneder</translation>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation>Dades del moneder (*.dat)</translation>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation>Còpia de seguretat fallida</translation>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation>Hi ha un error al tractar de salvar les dades de la seva cartera a la nova ubicació.</translation>
</message>
<message numerus="yes">
<location line="+76"/>
<source>%n second(s)</source>
<translation><numerusform>%n segon</numerusform><numerusform>%n segons</numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n minute(s)</source>
<translation><numerusform>%n minut</numerusform><numerusform>%n minuts</numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n hour(s)</source>
<translation><numerusform>%n hora</numerusform><numerusform>%n hores</numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation><numerusform>%n dia</numerusform><numerusform>%n dies</numerusform></translation>
</message>
<message>
<location line="+18"/>
<source>Not staking</source>
<translation>No s'està fent "stake" </translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="+109"/>
<source>A fatal error occurred. StarCoin can no longer continue safely and will quit.</source>
<translation>S'ha produït un error fatal. StarCoin ja no pot continuar de forma segura i es tancarà.</translation>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+90"/>
<source>Network Alert</source>
<translation>Alerta de xarxa</translation>
</message>
</context>
<context>
<name>CoinControlDialog</name>
<message>
<location filename="../forms/coincontroldialog.ui" line="+14"/>
<source>Coin Control</source>
<translation>Opcions del control de monedes</translation>
</message>
<message>
<location line="+31"/>
<source>Quantity:</source>
<translation>Quantitat:</translation>
</message>
<message>
<location line="+32"/>
<source>Bytes:</source>
<translation>Bytes:</translation>
</message>
<message>
<location line="+48"/>
<source>Amount:</source>
<translation>Quantitat:</translation>
</message>
<message>
<location line="+32"/>
<source>Priority:</source>
<translation>Prioritat:</translation>
</message>
<message>
<location line="+48"/>
<source>Fee:</source>
<translation>Quota:</translation>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation>Sortida baixa:</translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="+551"/>
<source>no</source>
<translation>no</translation>
</message>
<message>
<location filename="../forms/coincontroldialog.ui" line="+51"/>
<source>After Fee:</source>
<translation>Quota posterior:</translation>
</message>
<message>
<location line="+35"/>
<source>Change:</source>
<translation>Canvi:</translation>
</message>
<message>
<location line="+69"/>
<source>(un)select all</source>
<translation>(de)seleccionar tot</translation>
</message>
<message>
<location line="+13"/>
<source>Tree mode</source>
<translation>Mode arbre</translation>
</message>
<message>
<location line="+16"/>
<source>List mode</source>
<translation>Mode llista</translation>
</message>
<message>
<location line="+45"/>
<source>Amount</source>
<translation>Quantitat</translation>
</message>
<message>
<location line="+5"/>
<source>Label</source>
<translation>Etiqueta</translation>
</message>
<message>
<location line="+5"/>
<source>Address</source>
<translation>Adreça</translation>
</message>
<message>
<location line="+5"/>
<source>Date</source>
<translation>Data</translation>
</message>
<message>
<location line="+5"/>
<source>Confirmations</source>
<translation>Confirmacions</translation>
</message>
<message>
<location line="+3"/>
<source>Confirmed</source>
<translation>Confirmat</translation>
</message>
<message>
<location line="+5"/>
<source>Priority</source>
<translation>Prioritat</translation>
</message>
<message>
<location filename="../coincontroldialog.cpp" line="-515"/>
<source>Copy address</source>
<translation>Copiar adreça </translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Copiar etiqueta</translation>
</message>
<message>
<location line="+1"/>
<location line="+26"/>
<source>Copy amount</source>
<translation>Copiar quantitat</translation>
</message>
<message>
<location line="-25"/>
<source>Copy transaction ID</source>
<translation>Copiar ID de transacció</translation>
</message>
<message>
<location line="+24"/>
<source>Copy quantity</source>
<translation>Copiar quantitat</translation>
</message>
<message>
<location line="+2"/>
<source>Copy fee</source>
<translation>Copiar comisió</translation>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation>Copiar després de comisió</translation>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation>Copiar bytes</translation>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation>Copiar prioritat</translation>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation>Copiar sortida baixa</translation>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation>Copiar canvi</translation>
</message>
<message>
<location line="+317"/>
<source>highest</source>
<translation>El més alt</translation>
</message>
<message>
<location line="+1"/>
<source>high</source>
<translation>Alt</translation>
</message>
<message>
<location line="+1"/>
<source>medium-high</source>
<translation>mig-alt</translation>
</message>
<message>
<location line="+1"/>
<source>medium</source>
<translation>mig</translation>
</message>
<message>
<location line="+4"/>
<source>low-medium</source>
<translation>baix-mig</translation>
</message>
<message>
<location line="+1"/>
<source>low</source>
<translation>baix</translation>
</message>
<message>
<location line="+1"/>
<source>lowest</source>
<translation>el més baix</translation>
</message>
<message>
<location line="+155"/>
<source>DUST</source>
<translation>POLS</translation>
</message>
<message>
<location line="+0"/>
<source>yes</source>
<translation>si</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>Aquesta etiqueta es tornarà vermell, si la mida de la transacció és més gran que 10000 bytes.
En aquest cas es requereix una comisió d'almenys el 1% per kb.
Pot variar + / - 1 Byte per entrada.</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 "medium".
This means a fee of at least %1 per kb is required.</source>
<translation>Les operacions amb més prioritat entren mes facilment a un bloc.
Aquesta etiqueta es torna vermella, si la prioritat és menor que "mitja".
En aquest cas es requereix una comisió d'almenys el 1% per 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>Aquesta etiqueta es torna vermella, si qualsevol beneficiari rep una quantitat inferior a 1%.
En aquest cas es requereix una comisió d'almenys 2%.
Les quantitats inferiors a 0.546 vegades la quota mínima del relé es mostren com a POLS.</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>Aquesta etiqueta es torna vermella, si el canvi és menor que 1%.
En aquest cas es requereix una comisió d'almenys 2%.</translation>
</message>
<message>
<location line="+37"/>
<location line="+66"/>
<source>(no label)</source>
<translation>(sense etiqueta)</translation>
</message>
<message>
<location line="-9"/>
<source>change from %1 (%2)</source>
<translation>canvi desde %1 (%2)</translation>
</message>
<message>
<location line="+1"/>
<source>(change)</source>
<translation>(canviar)</translation>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation>Editar Adreça</translation>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation>&Etiqueta</translation>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address book entry</source>
<translation>L'etiqueta associada amb aquesta entrada de la llibreta d'adreces</translation>
</message>
<message>
<location line="+7"/>
<source>&Address</source>
<translation>&Direcció</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>La direcció associada amb aquesta entrada de la llibreta d'adreces. Només pot ser modificada per a l'enviament d'adreces.</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+20"/>
<source>New receiving address</source>
<translation>Nova adreça de recepció.</translation>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation>Nova adreça d'enviament</translation>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation>Editar adreces de recepció</translation>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation>Editar adreces d'enviament</translation>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation>L'adreça introduïda "%1" ja és present a la llibreta d'adreces.</translation>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid StarCoin address.</source>
<translation>La direcció introduïda "%1" no és una adreça StarCoin vàlida.</translation>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation>No s'ha pogut desbloquejar el moneder.</translation>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation>Ha fallat la generació d'una nova clau.</translation>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+420"/>
<location line="+12"/>
<source>StarCoin-Qt</source>
<translation>StarCoin-Qt</translation>
</message>
<message>
<location line="-12"/>
<source>version</source>
<translation>versió</translation>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation>Ús:</translation>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation>Opcions de la línia d'ordres</translation>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation>Opcions de IU</translation>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation>Definir llenguatge, per exemple "de_DE" (per defecte: Preferències locals de sistema)</translation>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation>Iniciar minimitzat</translation>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation>Mostrar finestra de benvinguda a l'inici (per defecte: 1)</translation>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation>Opcions</translation>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation>&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>Comisió opcional per kB que ajuda a assegurar-se que les seves transaccions es processen ràpidament. La majoria de les transaccions són 1 kB. Comisió d'0.01 recomenada.</translation>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation>Pagar &comisió de transacció</translation>
</message>
<message>
<location line="+31"/>
<source>Reserved amount does not participate in staking and is therefore spendable at any time.</source>
<translation>La quantitat reservada no participa en fer "stake" i per tant es pot gastar en qualsevol moment.</translation>
</message>
<message>
<location line="+15"/>
<source>Reserve</source>
<translation>Reserva</translation>
</message>
<message>
<location line="+31"/>
<source>Automatically start StarCoin after logging in to the system.</source>
<translation>Inicia automàticament StarCoin després d'entrar en el sistema.</translation>
</message>
<message>
<location line="+3"/>
<source>&Start StarCoin on system login</source>
<translation>&Iniciar StarCoin amb l'inici de sessió</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>Separeu el bloc i les bases de dades d'adreces en apagar l'equip. En aquest cas es pot moure a un altre directori de dades, però alenteix l'apagada. La cartera està sempre separada.</translation>
</message>
<message>
<location line="+3"/>
<source>&Detach databases at shutdown</source>
<translation>&Separar bases de dades a l'apagar l'equip</translation>
</message>
<message>
<location line="+21"/>
<source>&Network</source>
<translation>&Xarxa</translation>
</message>
<message>
<location line="+6"/>
<source>Automatically open the StarCoin client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation>Obrir automàticament el port de client StarCoin en el router. Això només funciona quan el router és compatible amb UPnP i està habilitat.</translation>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation>Port obert amb &UPnP</translation>
</message>
<message>
<location line="+7"/>
<source>Connect to the StarCoin network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation>Connecteu-vos a la xarxa StarCoin través d'un proxy SOCKS (per exemple, quan es connecta a través de Tor).</translation>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy:</source>
<translation>&Conectar a través d'un proxy SOCKS:</translation>
</message>
<message>
<location line="+9"/>
<source>Proxy &IP:</source>
<translation>&IP del proxy:</translation>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation>Adreça IP del servidor proxy (per exemple, 127.0.0.1)</translation>
</message>
<message>
<location line="+7"/>
<source>&Port:</source>
<translation>&Port:</translation>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation>Port del proxy (per exemple 9050)</translation>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation>&Versió de SOCKS:</translation>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation>Versió SOCKS del proxy (per exemple 5)</translation>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation>&Finestra</translation>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation>Mostrar només l'icona de la barra al minimitzar l'aplicació.</translation>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation>&Minimitzar a la barra d'aplicacions</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>Minimitza en comptes de sortir de la aplicació al tancar la finestra. Quan aquesta opció està activa, la aplicació només es tancarà al seleccionar Sortir al menú.</translation>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation>M&inimitzar al tancar</translation>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation>&Pantalla</translation>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation>Llenguatge de la Interfície d'Usuari:</translation>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting StarCoin.</source>
<translation>L'idioma de la interfície d'usuari es pot configurar aquí. Aquesta configuració s'aplicarà després de reiniciar StarCoin.</translation>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation>&Unitats per mostrar les quantitats en:</translation>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation>Sel·lecciona la unitat de subdivisió per defecte per mostrar en la interficie quan s'envien monedes.</translation>
</message>
<message>
<location line="+9"/>
<source>Whether to show StarCoin addresses in the transaction list or not.</source>
<translation>Per mostrar StarCoin adreces a la llista de transaccions o no.</translation>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation>&Mostrar adreces al llistat de transaccions</translation>
</message>
<message>
<location line="+7"/>
<source>Whether to show coin control features or not.</source>
<translation>Per mostrar les característiques de control de la moneda o no.</translation>
</message>
<message>
<location line="+3"/>
<source>Display coin &control features (experts only!)</source>
<translation>Mostrar controls i característiques de la moneda (només per a experts!)</translation>
</message>
<message>
<location line="+71"/>
<source>&OK</source>
<translation>&OK</translation>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation>&Cancel·la</translation>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation>&Aplicar</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+55"/>
<source>default</source>
<translation>Per defecte</translation>
</message>
<message>
<location line="+149"/>
<location line="+9"/>
<source>Warning</source>
<translation>Avís</translation>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting StarCoin.</source>
<translation>Aquesta configuració s'aplicarà després de reiniciar StarCoin.</translation>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation>L'adreça proxy introduïda és invalida.</translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation>Formulari</translation>
</message>
<message>
<location line="+33"/>
<location line="+231"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the StarCoin network after a connection is established, but this process has not completed yet.</source>
<translation>La informació mostrada pot estar fora de data. La seva cartera es sincronitza automàticament amb la xarxa StarCoin després d'establir una connexió, però aquest procés no s'ha completat encara.</translation>
</message>
<message>
<location line="-160"/>
<source>Stake:</source>
<translation>En "stake":</translation>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation>Sense confirmar:</translation>
</message>
<message>
<location line="-107"/>
<source>Wallet</source>
<translation>Moneder</translation>
</message>
<message>
<location line="+49"/>
<source>Spendable:</source>
<translation>Pot gastar-se:</translation>
</message>
<message>
<location line="+16"/>
<source>Your current spendable balance</source>
<translation>El balanç de saldo actual que pot gastar-se</translation>
</message>
<message>
<location line="+71"/>
<source>Immature:</source>
<translation>Immatur:</translation>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation>Balanç minat que encara no ha madurat</translation>
</message>
<message>
<location line="+20"/>
<source>Total:</source>
<translation>Total:</translation>
</message>
<message>
<location line="+16"/>
<source>Your current total balance</source>
<translation>El seu balanç total</translation>
</message>
<message>
<location line="+46"/>
<source><b>Recent transactions</b></source>
<translation><b>Transaccions recents</b></translation>
</message>
<message>
<location line="-108"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation>Total de transaccions que encara no s'han confirmat, i encara no compten per al balanç actual</translation>
</message>
<message>
<location line="-29"/>
<source>Total of coins that was staked, and do not yet count toward the current balance</source>
<translation>Total de les monedes que s'han posat a fer "stake" (en joc, aposta), i encara no compten per al balanç actual</translation>
</message>
<message>
<location filename="../overviewpage.cpp" line="+113"/>
<location line="+1"/>
<source>out of sync</source>
<translation>Fora de sincronia</translation>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation>Diàleg de codi QR</translation>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation>Sol·licitud de pagament</translation>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation>Quantitat:</translation>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation>Etiqueta:</translation>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation>Missatge:</translation>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation>&Desa com ...</translation>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+62"/>
<source>Error encoding URI into QR Code.</source>
<translation>Error codificant la URI en un codi QR.</translation>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation>La quantitat introduïda no és vàlida, comproveu-ho si us plau.</translation>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation>URI resultant massa llarga, intenta reduir el text per a la etiqueta / missatge</translation>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation>Desar codi QR</translation>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation>Imatges PNG (*.png)</translation>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation>Nom del 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>Versió del client</translation>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation>&Informació</translation>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation>Utilitzant OpenSSL versió</translation>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation>&Temps d'inici</translation>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation>Xarxa</translation>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation>Nombre de connexions</translation>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation>A testnet</translation>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation>Bloquejar cadena</translation>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation>Nombre de blocs actuals</translation>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation>Total estimat de blocs</translation>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation>Últim temps de bloc</translation>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation>&Obrir</translation>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation>Opcions de la línia d'ordres</translation>
</message>
<message>
<location line="+7"/>
<source>Show the StarCoin-Qt help message to get a list with possible StarCoin command-line options.</source>
<translation>Mostra el missatge d'ajuda de StarCoin-Qt per obtenir una llista amb les possibles opcions de línia d'ordres StarCoin.</translation>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation>&Mostra</translation>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation>&Consola</translation>
</message>
<message>
<location line="-260"/>
<source>Build date</source>
<translation>Data de compilació</translation>
</message>
<message>
<location line="-104"/>
<source>StarCoin - Debug window</source>
<translation>StarCoin - Finestra Depuració</translation>
</message>
<message>
<location line="+25"/>
<source>StarCoin Core</source>
<translation>Nucli StarCoin</translation>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation>Dietàri de debug</translation>
</message>
<message>
<location line="+7"/>
<source>Open the StarCoin debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation>Obriu el fitxer de registre de depuració StarCoin des del directori de dades actual. Això pot trigar uns segons en els arxius de registre de grans dimensions.</translation>
</message>
<message>
<location line="+102"/>
<source>Clear console</source>
<translation>Netejar consola</translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-33"/>
<source>Welcome to the StarCoin RPC console.</source>
<translation>Benvingut a la consola RPC de StarCoin.</translation>
</message>
<message>
<location line="+1"/>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation>Utilitza les fletxes d'amunt i avall per navegar per l'històric, i <b>Ctrl-L<\b> per netejar la pantalla.</translation>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation>Escriu <b>help<\b> per a obtenir una llistat de les ordres disponibles.</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>Enviar monedes</translation>
</message>
<message>
<location line="+76"/>
<source>Coin Control Features</source>
<translation>(Opcions del control del Coin)</translation>
</message>
<message>
<location line="+20"/>
<source>Inputs...</source>
<translation>Entrades</translation>
</message>
<message>
<location line="+7"/>
<source>automatically selected</source>
<translation>Seleccionat automàticament</translation>
</message>
<message>
<location line="+19"/>
<source>Insufficient funds!</source>
<translation>Fons insuficient</translation>
</message>
<message>
<location line="+77"/>
<source>Quantity:</source>
<translation>Quantitat:</translation>
</message>
<message>
<location line="+22"/>
<location line="+35"/>
<source>0</source>
<translation>0</translation>
</message>
<message>
<location line="-19"/>
<source>Bytes:</source>
<translation>Bytes:</translation>
</message>
<message>
<location line="+51"/>
<source>Amount:</source>
<translation>Quantitat:</translation>
</message>
<message>
<location line="+22"/>
<location line="+86"/>
<location line="+86"/>
<location line="+32"/>
<source>0.00 hack</source>
<translation>123.456 hack {0.00 ?}</translation>
</message>
<message>
<location line="-191"/>
<source>Priority:</source>
<translation>Prioritat:</translation>
</message>
<message>
<location line="+19"/>
<source>medium</source>
<translation>mig</translation>
</message>
<message>
<location line="+32"/>
<source>Fee:</source>
<translation>Quota:</translation>
</message>
<message>
<location line="+35"/>
<source>Low Output:</source>
<translation>Sortida baixa:</translation>
</message>
<message>
<location line="+19"/>
<source>no</source>
<translation>no</translation>
</message>
<message>
<location line="+32"/>
<source>After Fee:</source>
<translation>Quota posterior:</translation>
</message>
<message>
<location line="+35"/>
<source>Change</source>
<translation>Canvi</translation>
</message>
<message>
<location line="+50"/>
<source>custom change address</source>
<translation>Adreça de canvi pròpia</translation>
</message>
<message>
<location line="+106"/>
<source>Send to multiple recipients at once</source>
<translation>Enviar a multiples destinataris al mateix temps</translation>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation>Affegir &Destinatari</translation>
</message>
<message>
<location line="+20"/>
<source>Remove all transaction fields</source>
<translation>Traieu tots els camps de transacció</translation>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation>Esborrar &Tot</translation>
</message>
<message>
<location line="+28"/>
<source>Balance:</source>
<translation>Balanç:</translation>
</message>
<message>
<location line="+16"/>
<source>123.456 hack</source>
<translation>123.456 hack</translation>
</message>
<message>
<location line="+31"/>
<source>Confirm the send action</source>
<translation>Confirmi l'acció d'enviament</translation>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation>E&nviar</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-173"/>
<source>Enter a StarCoin address (e.g. StarCoinfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation>Introdueix una adreça StarCoin (p.ex. StarCoinfwYhBmGXcFP2Po1NpRUEiK8km2)</translation>
</message>
<message>
<location line="+15"/>
<source>Copy quantity</source>
<translation>Copiar quantitat</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Copiar quantitat</translation>
</message>
<message>
<location line="+1"/>
<source>Copy fee</source>
<translation>Copiar comisió</translation>
</message>
<message>
<location line="+1"/>
<source>Copy after fee</source>
<translation>Copiar després de comisió</translation>
</message>
<message>
<location line="+1"/>
<source>Copy bytes</source>
<translation>Copiar bytes</translation>
</message>
<message>
<location line="+1"/>
<source>Copy priority</source>
<translation>Copiar prioritat</translation>
</message>
<message>
<location line="+1"/>
<source>Copy low output</source>
<translation>Copiar sortida baixa</translation>
</message>
<message>
<location line="+1"/>
<source>Copy change</source>
<translation>Copiar canvi</translation>
</message>
<message>
<location line="+86"/>
<source><b>%1</b> to %2 (%3)</source>
<translation><b>%1</b> a %2 (%3)</translation>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation>Confirmar l'enviament de monedes</translation>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation>Esteu segur que voleu enviar %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>L'adreça remetent no és vàlida, si us plau comprovi-la.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation>La quantitat a pagar ha de ser major que 0.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation>Import superi el saldo de la seva compte.</translation>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation>El total excedeix el teu balanç quan s'afegeix la comisió a la transacció %1.</translation>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation>S'ha trobat una adreça duplicada, tan sols es pot enviar a cada adreça un cop per ordre de enviament.</translation>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed.</source>
<translation>Error: La creació de transacció ha fallat.</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>Error: La transacció ha sigut rebutjada. Això pot passar si algunes de les monedes a la cartera ja s'han gastat, per exemple, si vostè utilitza una còpia del wallet.dat i les monedes han estat gastades a la cópia pero no s'han marcat com a gastades aqui.</translation>
</message>
<message>
<location line="+251"/>
<source>WARNING: Invalid StarCoin address</source>
<translation>ADVERTÈNCIA: Direcció StarCoin invàlida</translation>
</message>
<message>
<location line="+13"/>
<source>(no label)</source>
<translation>(sense etiqueta)</translation>
</message>
<message>
<location line="+4"/>
<source>WARNING: unknown change address</source>
<translation>ADVERTÈNCIA: direcció de canvi desconeguda</translation>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation>Formulari</translation>
</message>
<message>
<location line="+15"/>
<source>A&mount:</source>
<translation>Q&uantitat:</translation>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation>Pagar &A:</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>Introdueixi una etiquera per a aquesta adreça per afegir-la a la llibreta d'adreces</translation>
</message>
<message>
<location line="+9"/>
<source>&Label:</source>
<translation>&Etiqueta:</translation>
</message>
<message>
<location line="+18"/>
<source>The address to send the payment to (e.g. StarCoinfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation>L'adreça per a enviar el pagament (per exemple: StarCoinfwYhBmGXcFP2Po1NpRUEiK8km2)</translation>
</message>
<message>
<location line="+10"/>
<source>Choose address from address book</source>
<translation>Trieu la direcció de la llibreta d'adreces</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+A</source>
<translation>Alta+A</translation>
</message>
<message>
<location line="+7"/>
<source>Paste address from clipboard</source>
<translation>Enganxar adreça del porta-retalls</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>Eliminar aquest destinatari</translation>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a StarCoin address (e.g. StarCoinfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation>Introdueix una adreça StarCoin (p.ex. StarCoinfwYhBmGXcFP2Po1NpRUEiK8km2)</translation>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation>Signatures .Signar/Verificar un Missatge</translation>
</message>
<message>
<location line="+13"/>
<location line="+124"/>
<source>&Sign Message</source>
<translation>&Signar Missatge</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>Pots signar missatges amb la teva adreça per provar que són teus. Sigues cautelòs al signar qualsevol cosa, ja que els atacs phising poden intentar confondre't per a que els hi signis amb la teva identitat. Tan sols signa als documents completament detallats amb els que hi estàs d'acord.</translation>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. StarCoinfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation>L'adreça per a signar el missatge (per exemple StarCoinfwYhBmGXcFP2Po1NpRUEiK8km2)</translation>
</message>
<message>
<location line="+10"/>
<location line="+203"/>
<source>Choose an address from the address book</source>
<translation>Trieu una adreça de la llibreta d'adreces</translation>
</message>
<message>
<location line="-193"/>
<location line="+203"/>
<source>Alt+A</source>
<translation>Alta+A</translation>
</message>
<message>
<location line="-193"/>
<source>Paste address from clipboard</source>
<translation>Enganxar adreça del porta-retalls</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>Introdueix aqui el missatge que vols signar</translation>
</message>
<message>
<location line="+24"/>
<source>Copy the current signature to the system clipboard</source>
<translation>Copiar la signatura actual al porta-retalls del sistema</translation>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this StarCoin address</source>
<translation>Signar un missatge per demostrar que és propietari d'aquesta adreça StarCoin</translation>
</message>
<message>
<location line="+17"/>
<source>Reset all sign message fields</source>
<translation>Neteja tots els camps de clau</translation>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation>Esborrar &Tot</translation>
</message>
<message>
<location line="-87"/>
<location line="+70"/>
<source>&Verify Message</source>
<translation>&Verificar el missatge</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>Introdueixi l'adreça signant, missatge (assegura't que copies salts de línia, espais, tabuladors, etc excactament tot el text) i la signatura a sota per verificar el missatge. Per evitar ser enganyat per un atac home-entre-mig, vés amb compte de no llegir més en la signatura del que hi ha al missatge signat mateix.</translation>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. StarCoinfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation>La direcció que va ser signada amb un missatge (per exemple StarCoinfwYhBmGXcFP2Po1NpRUEiK8km2)</translation>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified StarCoin address</source>
<translation>Comproveu el missatge per assegurar-se que es va signar amb l'adreça StarCoin especificada.</translation>
</message>
<message>
<location line="+17"/>
<source>Reset all verify message fields</source>
<translation>Neteja tots els camps de verificació de missatge</translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a StarCoin address (e.g. StarCoinfwYhBmGXcFP2Po1NpRUEiK8km2)</source>
<translation>Introdueix una adreça StarCoin (p.ex. StarCoinfwYhBmGXcFP2Po1NpRUEiK8km2)</translation>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation>Clica "Signar Missatge" per a generar una signatura</translation>
</message>
<message>
<location line="+3"/>
<source>Enter StarCoin signature</source>
<translation>Introduïu la signatura StarCoin</translation>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation>L'adreça intoduïda és invàlida.</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>Siu us plau, comprovi l'adreça i provi de nou.</translation>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation>L'adreça introduïda no referencia a cap clau.</translation>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation>El desbloqueig del moneder ha estat cancelat.</translation>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation>La clau privada per a la adreça introduïda no està disponible.</translation>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation>El signat del missatge ha fallat.</translation>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation>Missatge signat.</translation>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation>La signatura no s'ha pogut decodificar .</translation>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation>Su us plau, comprovi la signatura i provi de nou.</translation>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation>La signatura no coincideix amb el resum del missatge.</translation>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation>Ha fallat la verificació del missatge.</translation>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation>Missatge verificat.</translation>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+19"/>
<source>Open until %1</source>
<translation>Obert fins %1</translation>
</message>
<message numerus="yes">
<location line="-2"/>
<source>Open for %n block(s)</source>
<translation><numerusform>Obert per a %n bloc</numerusform><numerusform>Obert per a %n blocs</numerusform></translation>
</message>
<message>
<location line="+8"/>
<source>conflicted</source>
<translation>conflicte</translation>
</message>
<message>
<location line="+2"/>
<source>%1/offline</source>
<translation>%1/offline</translation>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation>%1/sense confirmar</translation>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation>%1 confrimacions</translation>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation>Estat</translation>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation><numerusform>, transmès a través de %n node</numerusform><numerusform>, transmès a través de %n nodes</numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation>Data</translation>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation>Font</translation>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation>Generat</translation>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation>Des de</translation>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation>A</translation>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation>Adreça pròpia</translation>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation>etiqueta</translation>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation>Crèdit</translation>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation><numerusform>madura en %n bloc més</numerusform><numerusform>madura en %n blocs més</numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation>no acceptat</translation>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation>Dèbit</translation>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation>Comissió de transacció</translation>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation>Quantitat neta</translation>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation>Missatge</translation>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation>Comentar</translation>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation>ID de transacció</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 "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation>Les monedes generades han de madurar 510 blocs abans de poder-se gastar. En generar aquest bloc, que va ser transmès a la xarxa per ser afegit a la cadena de bloc. Si no aconsegueix entrar a la cadena, el seu estat canviarà a "no acceptat" i no es podrà gastar. Això pot succeir de tant en tant si un altre node genera un bloc a pocs segons del seu.</translation>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation>Informació de debug</translation>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation>Transacció</translation>
</message>
<message>
<location line="+5"/>
<source>Inputs</source>
<translation>Entrades</translation>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation>Quantitat</translation>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation>cert</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>, encara no ha estat emès correctement</translation>
</message>
<message>
<location line="+35"/>
<source>unknown</source>
<translation>desconegut</translation>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="+14"/>
<source>Transaction details</source>
<translation>Detall de la transacció</translation>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation>Aquest panell mostra una descripció detallada de la transacció</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>Tipus</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Direcció</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation>Quantitat</translation>
</message>
<message>
<location line="+60"/>
<source>Open until %1</source>
<translation>Obert fins %1</translation>
</message>
<message>
<location line="+12"/>
<source>Confirmed (%1 confirmations)</source>
<translation>Confirmat (%1 confirmacions)</translation>
</message>
<message numerus="yes">
<location line="-15"/>
<source>Open for %n more block(s)</source>
<translation><numerusform>Obert per a %n bloc més</numerusform><numerusform>Obert per a %n blocs més</numerusform></translation>
</message>
<message>
<location line="+6"/>
<source>Offline</source>
<translation>Desconnectat</translation>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed</source>
<translation>Sense confirmar</translation>
</message>
<message>
<location line="+3"/>
<source>Confirming (%1 of %2 recommended confirmations)</source>
<translation>Confirmant (%1 de %2 confirmacions recomanat)</translation>
</message>
<message>
<location line="+6"/>
<source>Conflicted</source>
<translation>Conflicte</translation>
</message>
<message>
<location line="+3"/>
<source>Immature (%1 confirmations, will be available after %2)</source>
<translation>Immadurs (%1 confirmacions, estaran disponibles després de %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>Aquest bloc no ha estat rebut per cap altre node i probablement no serà acceptat!</translation>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation>Generat però no acceptat</translation>
</message>
<message>
<location line="+42"/>
<source>Received with</source>
<translation>Rebut amb</translation>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation>Rebut de</translation>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation>Enviat a</translation>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation>Pagament a un mateix</translation>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation>Minat</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>Estat de la transacció. Desplaça't per aquí sobre per mostrar el nombre de confirmacions.</translation>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation>Data i hora en que la transacció va ser rebuda.</translation>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation>Tipus de transacció.</translation>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation>Adreça del destinatari de la transacció.</translation>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation>Quantitat extreta o afegida del balanç.</translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+55"/>
<location line="+16"/>
<source>All</source>
<translation>Tot</translation>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation>Avui</translation>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation>Aquesta setmana</translation>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation>Aquest mes</translation>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation>El mes passat</translation>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation>Enguany</translation>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation>Rang...</translation>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation>Rebut amb</translation>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation>Enviat a</translation>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation>A tu mateix</translation>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation>Minat</translation>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation>Altres</translation>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation>Introdueix una adreça o una etiqueta per cercar</translation>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation>Quantitat mínima</translation>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation>Copiar adreça </translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Copiar etiqueta</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Copiar quantitat</translation>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation>Copiar ID de transacció</translation>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation>Editar etiqueta</translation>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation>Mostra detalls de la transacció</translation>
</message>
<message>
<location line="+144"/>
<source>Export Transaction Data</source>
<translation>Exportació de dades de transaccions</translation>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Arxiu de separació per comes (*.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>Tipus</translation>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation>Etiqueta</translation>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>Direcció</translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation>Quantitat</translation>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation>ID</translation>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation>Error a l'exportar</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>No s'ha pogut escriure al fitxer %1.</translation>
</message>
<message>
<location line="+100"/>
<source>Range:</source>
<translation>Rang:</translation>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation>a</translation>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+206"/>
<source>Sending...</source>
<translation>Enviant...</translation>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+33"/>
<source>StarCoin version</source>
<translation>versió StarCoin</translation>
</message>
<message>
<location line="+1"/>
<source>Usage:</source>
<translation>Ús:</translation>
</message>
<message>
<location line="+1"/>
<source>Send command to -server or StarCoind</source>
<translation>Enviar comandes a -server o StarCoind</translation>
</message>
<message>
<location line="+1"/>
<source>List commands</source>
<translation>Llista d'ordres</translation>
</message>
<message>
<location line="+1"/>
<source>Get help for a command</source>
<translation>Obtenir ajuda per a un ordre.</translation>
</message>
<message>
<location line="+2"/>
<source>Options:</source>
<translation>Opcions:</translation>
</message>
<message>
<location line="+2"/>
<source>Specify configuration file (default: StarCoin.conf)</source>
<translation>Especifiqueu el fitxer de configuració (per defecte: StarCoin.conf)</translation>
</message>
<message>
<location line="+1"/>
<source>Specify pid file (default: StarCoind.pid)</source>
<translation>Especificar arxiu pid (per defecte: StarCoind.pid)</translation>
</message>
<message>
<location line="+2"/>
<source>Specify wallet file (within data directory)</source>
<translation>Especifica un arxiu de moneder (dintre del directori de les dades)</translation>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation>Especificar directori de dades</translation>
</message>
<message>
<location line="+2"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation>Establir tamany de la memoria cau en megabytes (per defecte: 25)</translation>
</message>
<message>
<location line="+1"/>
<source>Set database disk log size in megabytes (default: 100)</source>
<translation>Configurar la mida del registre en disc de la base de dades en megabytes (per defecte: 100)</translation>
</message>
<message>
<location line="+6"/>
<source>Listen for connections on <port> (default: 15714 or testnet: 25714)</source>
<translation>Escoltar connexions en <port> (per defecte: 15714 o testnet: 25714)</translation>
</message>
<message>
<location line="+1"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation>Mantenir com a molt <n> connexions a peers (per defecte: 125)</translation>
</message>
<message>
<location line="+3"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation>Connectar al node per obtenir les adreces de les connexions, i desconectar</translation>
</message>
<message>
<location line="+1"/>
<source>Specify your own public address</source>
<translation>Especificar la teva adreça pública</translation>
</message>
<message>
<location line="+5"/>
<source>Bind to given address. Use [host]:port notation for IPv6</source>
<translation>Enllaçar a l'adreça donada. Utilitzeu la notació [host]:port per a IPv6</translation>
</message>
<message>
<location line="+2"/>
<source>Stake your coins to support network and gain reward (default: 1)</source>
<translation>Posa les teves monedes a fer "stake" per donar suport a la xarxa i obtenir una recompensa (per defecte: 1)</translation>
</message>
<message>
<location line="+5"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation>Límit per a desconectar connexions errònies (per defecte: 100)</translation>
</message>
<message>
<location line="+1"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation>Nombre de segons abans de reconectar amb connexions errònies (per defecte: 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>Ha sorgit un error al configurar el port RPC %u escoltant a IPv4: %s</translation>
</message>
<message>
<location line="+51"/>
<source>Detach block and address databases. Increases shutdown time (default: 0)</source>
<translation>Separeu el bloc i les bases de dades d'adreces. Augmenta el temps d'apagada (per defecte: 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>Error: La transacció ha sigut rebutjada. Això pot passar si algunes de les monedes a la cartera ja s'han gastat, per exemple, si vostè utilitza una còpia del wallet.dat i les monedes han estat gastades a la cópia pero no s'han marcat com a gastades aqui.</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>Error: Aquesta transacció requereix una comisió d'almenys %s degut a la seva quantitat, complexitat, o l'ús dels fons rebuts recentment</translation>
</message>
<message>
<location line="-87"/>
<source>Listen for JSON-RPC connections on <port> (default: 15715 or testnet: 25715)</source>
<translation>Escoltar connexions JSON-RPC al port <port> (per defecte: 15715 o testnet: 25715)</translation>
</message>
<message>
<location line="-11"/>
<source>Accept command line and JSON-RPC commands</source>
<translation>Acceptar línia d'ordres i ordres JSON-RPC </translation>
</message>
<message>
<location line="+101"/>
<source>Error: Transaction creation failed </source>
<translation>Error: La creació de transacció ha fallat.</translation>
</message>
<message>
<location line="-5"/>
<source>Error: Wallet locked, unable to create transaction </source>
<translation>Error: Cartera bloquejada, no es pot de crear la transacció</translation>
</message>
<message>
<location line="-8"/>
<source>Importing blockchain data file.</source>
<translation>Important fitxer de dades de la cadena de blocs</translation>
</message>
<message>
<location line="+1"/>
<source>Importing bootstrap blockchain data file.</source>
<translation>Important fitxer de dades d'arrencada de la cadena de blocs</translation>
</message>
<message>
<location line="-88"/>
<source>Run in the background as a daemon and accept commands</source>
<translation>Executar en segon pla com a programa dimoni i acceptar ordres</translation>
</message>
<message>
<location line="+1"/>
<source>Use the test network</source>
<translation>Usar la xarxa de prova</translation>
</message>
<message>
<location line="-24"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation>Aceptar connexions d'afora (per defecte: 1 si no -proxy o -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>Ha sorgit un error al configurar el port RPC %u escoltant a IPv6, retrocedint a 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>Error en inicialitzar l'entorn de base de dades %s! Per recuperar, FACI UNA COPIA DE SEGURETAT D'AQUEST DIRECTORI, a continuació, retiri tot d'ella excepte l'arxiu wallet.dat.</translation>
</message>
<message>
<location line="-20"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation>Establir la grandària màxima de les transaccions alta-prioritat/baixa-comisió en bytes (per defecte: 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>Advertència: el -paytxfee és molt elevat! Aquesta és la comissió de transacció que pagaràs quan enviis una transacció.</translation>
</message>
<message>
<location line="+61"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong StarCoin will not work properly.</source>
<translation>Avís: Comproveu que la data i hora de l'equip siguin correctes! Si el seu rellotge és erroni StarCoin no funcionarà correctament.</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>Advertència: Error llegint l'arxiu wallet.dat!! Totes les claus es llegeixen correctament, però hi ha dades de transaccions o entrades del llibre d'adreces absents o bé son incorrectes.</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>Advertència: L'arxiu wallet.dat és corrupte, dades rescatades! L'arxiu wallet.dat original ha estat desat com wallet.{estampa_temporal}.bak al directori %s; si el teu balanç o transaccions son incorrectes hauries de restaurar-lo de un backup.</translation>
</message>
<message>
<location line="-30"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation>Intentar recuperar les claus privades d'un arxiu wallet.dat corrupte</translation>
</message>
<message>
<location line="+4"/>
<source>Block creation options:</source>
<translation>Opcions de la creació de blocs:</translation>
</message>
<message>
<location line="-62"/>
<source>Connect only to the specified node(s)</source>
<translation>Connectar només al(s) node(s) especificats</translation>
</message>
<message>
<location line="+4"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation>Descobrir la pròpia adreça IP (per defecte: 1 quan escoltant i no -externalip)</translation>
</message>
<message>
<location line="+94"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation>Error al escoltar a qualsevol port. Utilitza -listen=0 si vols això.</translation>
</message>
<message>
<location line="-90"/>
<source>Find peers using DNS lookup (default: 1)</source>
<translation>Trobar companys utilitzant la recerca de DNS (per defecte: 1)</translation>
</message>
<message>
<location line="+5"/>
<source>Sync checkpoints policy (default: strict)</source>
<translation>Política dels punts de control de sincronització (per defecte: estricta)</translation>
</message>
<message>
<location line="+83"/>
<source>Invalid -tor address: '%s'</source>
<translation>Adreça -tor invalida: '%s'</translation>
</message>
<message>
<location line="+4"/>
<source>Invalid amount for -reservebalance=<amount></source>
<translation>Quantitat invalida per a -reservebalance=<amount></translation>
</message>
<message>
<location line="-82"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation>Mida màxima del buffer de recepció per a cada connexió, <n>*1000 bytes (default: 5000)</translation>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation>Mida màxima del buffer d'enviament per a cada connexió, <n>*1000 bytes (default: 5000)</translation>
</message>
<message>
<location line="-16"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation>Només connectar als nodes de la xarxa <net> (IPv4, IPv6 o Tor)</translation>
</message>
<message>
<location line="+28"/>
<source>Output extra debugging information. Implies all other -debug* options</source>
<translation>Sortida d'informació de depuració extra. Implica totes les opcions de depuracó -debug*</translation>
</message>
<message>
<location line="+1"/>
<source>Output extra network debugging information</source>
<translation>Sortida d'informació de depuració de xarxa addicional</translation>
</message>
<message>
<location line="+1"/>
<source>Prepend debug output with timestamp</source>
<translation>Anteposar marca de temps a la sortida de depuració</translation>
</message>
<message>
<location line="+35"/>
<source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source>
<translation>Opcions SSL: (veure la Wiki de Bitcoin per a instruccions de configuració SSL)</translation>
</message>
<message>
<location line="-74"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation>Seleccioneu la versió de proxy socks per utilitzar (4-5, per defecte: 5)</translation>
</message>
<message>
<location line="+41"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation>Enviar informació de traça/debug a la consola en comptes del arxiu debug.log</translation>
</message>
<message>
<location line="+1"/>
<source>Send trace/debug info to debugger</source>
<translation>Enviar informació de traça/depuració al depurador</translation>
</message>
<message>
<location line="+28"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation>Establir una mida máxima de bloc en bytes (per defecte: 250000)</translation>
</message>
<message>
<location line="-1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation>Establir una mida mínima de bloc en bytes (per defecte: 0)</translation>
</message>
<message>
<location line="-29"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation>Reduir l'arxiu debug.log al iniciar el client (per defecte 1 quan no -debug)</translation>
</message>
<message>
<location line="-42"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation>Especificar el temps limit per a un intent de connexió en milisegons (per defecte: 5000)</translation>
</message>
<message>
<location line="+109"/>
<source>Unable to sign checkpoint, wrong checkpointkey?
</source>
<translation>No es pot signar el punt de control, la clau del punt de control esta malament?
</translation>
</message>
<message>
<location line="-80"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation>Utilitza UPnP per a mapejar els ports d'escolta (per defecte: 0)</translation>
</message>
<message>
<location line="-1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation>Utilitza UPnP per a mapejar els ports d'escolta (per defecte: 1 quan s'escolta)</translation>
</message>
<message>
<location line="-25"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation>Utilitza proxy per arribar als serveis ocults de Tor (per defecte: la mateixa que -proxy)</translation>
</message>
<message>
<location line="+42"/>
<source>Username for JSON-RPC connections</source>
<translation>Nom d'usuari per a connexions JSON-RPC</translation>
</message>
<message>
<location line="+47"/>
<source>Verifying database integrity...</source>
<translation>Comprovant la integritat de la base de dades ...</translation>
</message>
<message>
<location line="+57"/>
<source>WARNING: syncronized checkpoint violation detected, but skipped!</source>
<translation>ADVERTÈNCIA: violació de punt de control sincronitzat detectada, es saltarà!</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: Disk space is low!</source>
<translation>Avís: L'espai en disc és baix!</translation>
</message>
<message>
<location line="-2"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation>Advertència: Aquetsa versió està obsoleta, és necessari actualitzar!</translation>
</message>
<message>
<location line="-48"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation>L'arxiu wallet.data és corrupte, el rescat de les dades ha fallat</translation>
</message>
<message>
<location line="-54"/>
<source>Password for JSON-RPC connections</source>
<translation>Contrasenya per a connexions 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=StarCoinrpc
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 "StarCoin Alert" admin@foo.com
</source>
<translation>%s, ha d'establir un rpcpassword al fitxer de configuració:
%s
Es recomana utilitzar la següent contrasenya aleatòria:
rpcuser=StarCoinrpc
rpcpassword=%s
(No cal recordar aquesta contrasenya)
El nom d'usuari i contrasenya NO HA DE SER el mateix.
Si no hi ha l'arxiu, s'ha de crear amb els permisos de només lectura per al propietari.
També es recomana establir alertnotify per a que se li notifiquin els problemes;
per exemple: alertnotify=echo %%s | mail -s "StarCoin Alert" admin@foo.com
</translation>
</message>
<message>
<location line="+51"/>
<source>Find peers using internet relay chat (default: 0)</source>
<translation>Trobar companys utilitzant l'IRC (per defecte: 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>Sincronitzar el temps amb altres nodes. Desactivar si el temps al seu sistema és precís, per exemple, si fa ús de sincronització amb NTP (per defecte: 1)</translation>
</message>
<message>
<location line="+15"/>
<source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source>
<translation>En crear transaccions, ignorar les entrades amb valor inferior a aquesta (per defecte: 0.01)</translation>
</message>
<message>
<location line="+16"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation>Permetre connexions JSON-RPC d'adreces IP específiques</translation>
</message>
<message>
<location line="+1"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation>Enviar ordre al node en execució a <ip> (per defecte: 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>Executar orde quan el millor bloc canviï (%s al cmd es reemplaça per un bloc de hash)</translation>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation>Executar una ordre quan una transacció del moneder canviï (%s in cmd es canvia per TxID)</translation>
</message>
<message>
<location line="+3"/>
<source>Require a confirmations for change (default: 0)</source>
<translation>Requerir les confirmacions de canvi (per defecte: 0)</translation>
</message>
<message>
<location line="+1"/>
<source>Enforce transaction scripts to use canonical PUSH operators (default: 1)</source>
<translation>Fer complir als scripts de transaccions d'utilitzar operadors PUSH canòniques (per defecte: 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>
Executar una ordre quan es rep un avís rellevant (%s en cmd es substitueix per missatge)</translation>
</message>
<message>
<location line="+3"/>
<source>Upgrade wallet to latest format</source>
<translation>Actualitzar moneder a l'últim format</translation>
</message>
<message>
<location line="+1"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation>Establir límit de nombre de claus a <n> (per defecte: 100)</translation>
</message>
<message>
<location line="+1"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation>Re-escanejar cadena de blocs en cerca de transaccions de moneder perdudes</translation>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 2500, 0 = all)</source>
<translation>Quants blocs s'han de confirmar a l'inici (per defecte: 2500, 0 = tots)</translation>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-6, default: 1)</source>
<translation>Com és de minuciosa la verificació del bloc (0-6, per defecte: 1)</translation>
</message>
<message>
<location line="+1"/>
<source>Imports blocks from external blk000?.dat file</source>
<translation>Importar blocs desde l'arxiu extern blk000?.dat</translation>
</message>
<message>
<location line="+8"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation>Utilitzar OpenSSL (https) per a connexions JSON-RPC</translation>
</message>
<message>
<location line="+1"/>
<source>Server certificate file (default: server.cert)</source>
<translation>Arxiu del certificat de servidor (per defecte: server.cert)</translation>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation>Clau privada del servidor (per defecte: server.pem)</translation>
</message>
<message>
<location line="+1"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation>Xifres acceptables (per defecte: 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>Error: Cartera bloquejada nomès per a fer "stake", no es pot de crear la transacció</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>ADVERTÈNCIA: Punt de control invàlid! Les transaccions mostrades podríen no ser correctes! Podria ser necessari actualitzar o notificar-ho als desenvolupadors.</translation>
</message>
<message>
<location line="-158"/>
<source>This help message</source>
<translation>Aquest misatge d'ajuda</translation>
</message>
<message>
<location line="+95"/>
<source>Wallet %s resides outside data directory %s.</source>
<translation>La cartera %s resideix fora del directori de dades %s.</translation>
</message>
<message>
<location line="+1"/>
<source>Cannot obtain a lock on data directory %s. StarCoin is probably already running.</source>
<translation>No es pot obtenir un bloqueig en el directori de dades %s. StarCoin probablement ja estigui en funcionament.</translation>
</message>
<message>
<location line="-98"/>
<source>StarCoin</source>
<translation>StarCoin</translation>
</message>
<message>
<location line="+140"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation>Impossible d'unir %s a aquest ordinador (s'ha retornat l'error %d, %s)</translation>
</message>
<message>
<location line="-130"/>
<source>Connect through socks proxy</source>
<translation>Conectar a través d'un proxy SOCKS</translation>
</message>
<message>
<location line="+3"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation>Permetre consultes DNS per a -addnode, -seednode i -connect</translation>
</message>
<message>
<location line="+122"/>
<source>Loading addresses...</source>
<translation>Carregant adreces...</translation>
</message>
<message>
<location line="-15"/>
<source>Error loading blkindex.dat</source>
<translation>Error carregant blkindex.dat</translation>
</message>
<message>
<location line="+2"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation>Error carregant wallet.dat: Moneder corrupte</translation>
</message>
<message>
<location line="+4"/>
<source>Error loading wallet.dat: Wallet requires newer version of StarCoin</source>
<translation>Error en carregar wallet.dat: La cartera requereix la versió més recent de StarCoin</translation>
</message>
<message>
<location line="+1"/>
<source>Wallet needed to be rewritten: restart StarCoin to complete</source>
<translation>La cartera necessita ser reescrita: reiniciar StarCoin per completar</translation>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat</source>
<translation>Error carregant wallet.dat</translation>
</message>
<message>
<location line="-16"/>
<source>Invalid -proxy address: '%s'</source>
<translation>Adreça -proxy invalida: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation>Xarxa desconeguda especificada a -onlynet: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation>S'ha demanat una versió desconeguda de -socks proxy: %i</translation>
</message>
<message>
<location line="+4"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation>No es pot resoldre l'adreça -bind: '%s'</translation>
</message>
<message>
<location line="+2"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation>No es pot resoldre l'adreça -externalip: '%s'</translation>
</message>
<message>
<location line="-24"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation>Quantitat invalida per a -paytxfee=<amount>: '%s'</translation>
</message>
<message>
<location line="+44"/>
<source>Error: could not start node</source>
<translation>Error: no s'ha pogut iniciar el node</translation>
</message>
<message>
<location line="+11"/>
<source>Sending...</source>
<translation>Enviant...</translation>
</message>
<message>
<location line="+5"/>
<source>Invalid amount</source>
<translation>Quanitat invalida</translation>
</message>
<message>
<location line="+1"/>
<source>Insufficient funds</source>
<translation>Balanç insuficient</translation>
</message>
<message>
<location line="-34"/>
<source>Loading block index...</source>
<translation>Carregant índex de blocs...</translation>
</message>
<message>
<location line="-103"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation>Afegir un node per a connectar's-hi i intentar mantenir la connexió oberta</translation>
</message>
<message>
<location line="+122"/>
<source>Unable to bind to %s on this computer. StarCoin is probably already running.</source>
<translation>No es pot enllaçar a %s en aquest equip. StarCoin probablement ja estigui en funcionament.</translation>
</message>
<message>
<location line="-97"/>
<source>Fee per KB to add to transactions you send</source>
<translation>Comisió per KB per a afegir a les transaccions que enviï</translation>
</message>
<message>
<location line="+55"/>
<source>Invalid amount for -mininput=<amount>: '%s'</source>
<translation>Quantitat invalida per a -mininput=<amount>: '%s'</translation>
</message>
<message>
<location line="+25"/>
<source>Loading wallet...</source>
<translation>Carregant moneder...</translation>
</message>
<message>
<location line="+8"/>
<source>Cannot downgrade wallet</source>
<translation>No es pot reduir la versió del moneder</translation>
</message>
<message>
<location line="+1"/>
<source>Cannot initialize keypool</source>
<translation>No es pot inicialitzar el keypool</translation>
</message>
<message>
<location line="+1"/>
<source>Cannot write default address</source>
<translation>No es pot escriure l'adreça per defecte</translation>
</message>
<message>
<location line="+1"/>
<source>Rescanning...</source>
<translation>Re-escanejant...</translation>
</message>
<message>
<location line="+5"/>
<source>Done loading</source>
<translation>Càrrega acabada</translation>
</message>
<message>
<location line="-167"/>
<source>To use the %s option</source>
<translation>Utilitza la opció %s</translation>
</message>
<message>
<location line="+14"/>
<source>Error</source>
<translation>Error</translation>
</message>
<message>
<location line="+6"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation>Has de configurar el rpcpassword=<password> a l'arxiu de configuració:\n %s\n Si l'arxiu no existeix, crea'l amb els permís owner-readable-only.</translation>
</message>
</context>
</TS> | mit |
ordinary-developer/book_java_the_complete_reference_9_ed_h_schildt | my_code/chapter_15_LAMBDA_EXPRESSIONS/11_method_references_to_instance_methods_1/MethodRefDemo2.java | 742 | interface StringFunc {
String func(String n);
}
class MyStringOps {
String strReverse(String str) {
String result = "";
int i;
for (i = str.length() - 1; i >= 0; i--) {
result += str.charAt(i);
}
return result;
}
}
class MethodRefDemo2 {
static String stringOp(StringFunc sf, String s) {
return sf.func(s);
}
public static void main(String args[]) {
String inStr = "Lambdas add power of Java";
String outStr;
MyStringOps strOps = new MyStringOps();
outStr = stringOp(strOps::strReverse, inStr);
System.out.println("Original string: " + inStr);
System.out.println("String reversed: " + outStr);
}
}
| mit |
cp-profiler/gecode-profiling | gecode/kernel/brancher-view.hpp | 6935 | /* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Christian Schulte <schulte@gecode.org>
*
* Copyright:
* Christian Schulte, 2012
*
* Last modified:
* $Date$ by $Author$
* $Revision$
*
* This file is part of Gecode, the generic constraint
* development environment:
* http://www.gecode.org
*
* 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 Gecode {
/**
* \defgroup TaskBranchView Generic brancher based on view selection
*
* Implements view-based brancher for an array of views and value.
* \ingroup TaskActor
*/
//@{
/// Position information
class Pos {
public:
/// Position of view
const int pos;
/// Create position information
Pos(int p);
};
/// %Choices storing position
class GECODE_VTABLE_EXPORT PosChoice : public Choice {
private:
/// Position information
const Pos _pos;
public:
/// Initialize choice for brancher \a b, number of alternatives \a a, and position \a p
PosChoice(const Brancher& b, unsigned int a, const Pos& p);
/// Return position in array
const Pos& pos(void) const;
/// Report size occupied
virtual size_t size(void) const;
/// Archive into \a e
virtual void archive(Archive& e) const;
};
/**
* \brief Generic brancher by view selection
*
* Defined for views of type \a View and \a n view selectors for
* tie-breaking.
*/
template<class View, int n>
class ViewBrancher : public Brancher {
protected:
/// The branch filter that corresponds to the var type
typedef typename BranchTraits<typename View::VarType>::Filter BranchFilter;
/// Views to branch on
ViewArray<View> x;
/// Unassigned views start at x[start]
mutable int start;
/// View selection objects
ViewSel<View>* vs[n];
/// Branch filter function
BranchFilter bf;
/// Return position information
Pos pos(Space& home);
/// Return view according to position information \a p
View view(const Pos& p) const;
/// Constructor for cloning \a b
ViewBrancher(Space& home, bool shared, ViewBrancher<View,n>& b);
/// Constructor for creation
ViewBrancher(Home home, ViewArray<View>& x,
ViewSel<View>* vs[n], BranchFilter bf);
public:
/// Check status of brancher, return true if alternatives left
virtual bool status(const Space& home) const;
/// Delete brancher and return its size
virtual size_t dispose(Space& home);
};
//@}
/*
* Position information
*
*/
forceinline
Pos::Pos(int p) : pos(p) {}
/*
* Choice with position
*
*/
forceinline
PosChoice::PosChoice(const Brancher& b, unsigned int a, const Pos& p)
: Choice(b,a), _pos(p) {}
forceinline const Pos&
PosChoice::pos(void) const {
return _pos;
}
forceinline size_t
PosChoice::size(void) const {
return sizeof(PosChoice);
}
forceinline void
PosChoice::archive(Archive& e) const {
Choice::archive(e);
e << _pos.pos;
}
template<class View, int n>
forceinline
ViewBrancher<View,n>::ViewBrancher(Home home, ViewArray<View>& x0,
ViewSel<View>* vs0[n], BranchFilter bf0)
: Brancher(home), x(x0), start(0), bf(bf0) {
for (int i=0; i<n; i++)
vs[i] = vs0[i];
for (int i=0; i<n; i++)
if (vs[i]->notice()) {
home.notice(*this,AP_DISPOSE);
break;
}
}
template<class View, int n>
forceinline
ViewBrancher<View,n>::ViewBrancher(Space& home, bool shared,
ViewBrancher<View,n>& vb)
: Brancher(home,shared,vb), start(vb.start), bf(vb.bf) {
x.update(home,shared,vb.x);
for (int i=0; i<n; i++)
vs[i] = vb.vs[i]->copy(home,shared);
}
template<class View, int n>
bool
ViewBrancher<View,n>::status(const Space& home) const {
if (bf == NULL) {
for (int i=start; i < x.size(); i++)
if (!x[i].assigned()) {
start = i;
return true;
}
} else {
for (int i=start; i < x.size(); i++) {
typename View::VarType y(x[i].varimp());
if (!x[i].assigned() && bf(home,y,i)) {
start = i;
return true;
}
}
}
return false;
}
template<class View, int n>
inline Pos
ViewBrancher<View,n>::pos(Space& home) {
assert(!x[start].assigned());
int s;
if (bf == NULL) {
if (n == 1) {
s = vs[0]->select(home,x,start);
} else {
Region r(home);
int* ties = r.alloc<int>(x.size()-start+1);
int n_ties;
vs[0]->ties(home,x,start,ties,n_ties);
for (int i=1; (i < n-1) && (n_ties > 1); i++)
vs[i]->brk(home,x,ties,n_ties);
if (n_ties > 1)
s = vs[n-1]->select(home,x,ties,n_ties);
else
s = ties[0];
}
} else {
if (n == 1) {
s = vs[0]->select(home,x,start,bf);
} else {
Region r(home);
int* ties = r.alloc<int>(x.size()-start+1);
int n_ties;
vs[0]->ties(home,x,start,ties,n_ties,bf);
for (int i=1; (i < n-1) && (n_ties > 1); i++)
vs[i]->brk(home,x,ties,n_ties);
if (n_ties > 1)
s = vs[n-1]->select(home,x,ties,n_ties);
else
s = ties[0];
}
}
Pos p(s);
return p;
}
template<class View, int n>
forceinline View
ViewBrancher<View,n>::view(const Pos& p) const {
return x[p.pos];
}
template<class View, int n>
forceinline size_t
ViewBrancher<View,n>::dispose(Space& home) {
for (int i=0; i<n; i++)
if (vs[i]->notice()) {
home.ignore(*this,AP_DISPOSE,true);
break;
}
for (int i=0; i<n; i++)
vs[i]->dispose(home);
(void) Brancher::dispose(home);
return sizeof(ViewBrancher<View,n>);
}
}
// STATISTICS: kernel-branch
| mit |
icyflash/ucloud-csharp-sdk | UCloudSDK/Models/UDB/UploadUDBParamGroupResponse.cs | 541 | namespace UCloudSDK.Models
{
/// <summary>
/// 导入udb配置
/// <para>
/// http://docs.ucloud.cn/api/udb/upload_udb_param_group.html
/// </para>
/// </summary>
public partial class UploadUDBParamGroupResponse : UResponse
{
/// <summary>
/// 响应动作
/// </summary>
public string Action { get; set; }
/// <summary>
/// 配置参数组id
/// </summary>
public int GroupId { get; set; }
}
}
| mit |
LordZoltan/docfx | test/Microsoft.DocAsCode.Build.Engine.Tests/PostProcessors/AppendStringPostProcessor.cs | 2502 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DocAsCode.Build.Engine.Tests
{
using System;
using System.Collections.Immutable;
using System.IO;
using System.Linq;
using Microsoft.DocAsCode.Common;
using Microsoft.DocAsCode.Plugins;
internal class AppendStringPostProcessor : IPostProcessor, ISupportIncrementalPostProcessor
{
public const string AppendString = " is processed";
public const string AdditionalExtensionString = ".html.additional";
public IPostProcessorHost PostProcessorHost { get; set; }
public string GetIncrementalContextHash()
{
return null;
}
public ImmutableDictionary<string, object> PrepareMetadata(ImmutableDictionary<string, object> metadata)
{
return metadata;
}
public Manifest Process(Manifest manifest, string outputFolder)
{
foreach (var file in manifest.Files ?? Enumerable.Empty<ManifestItem>())
{
string htmlRelativePath = null;
foreach (var outputFile in file.OutputFiles)
{
if (outputFile.Key.Equals(".html", StringComparison.OrdinalIgnoreCase))
{
htmlRelativePath = outputFile.Value.RelativePath;
File.AppendAllText(Path.Combine(outputFolder, htmlRelativePath), AppendString);
}
else
{
Logger.LogWarning($"The output file {outputFile.Value.RelativePath} is not in html format.", file: file.SourceRelativePath);
}
}
// Add additional html output file
if (htmlRelativePath != null)
{
var targetRelativePath = Path.ChangeExtension(htmlRelativePath, AdditionalExtensionString);
EnvironmentContext.FileAbstractLayer.Copy(Path.Combine(outputFolder, htmlRelativePath), Path.Combine(outputFolder, targetRelativePath));
file.OutputFiles.Add(AdditionalExtensionString,
new OutputFileInfo
{
RelativePath = targetRelativePath
});
}
}
return manifest;
}
}
}
| mit |
RanadeepPolavarapu/IRCd | anope/src/mail.cpp | 4715 | /*
*
* (C) 2003-2016 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
*/
#include "services.h"
#include "mail.h"
#include "config.h"
Mail::Message::Message(const Anope::string &sf, const Anope::string &mailto, const Anope::string &a, const Anope::string &s, const Anope::string &m) : Thread(), sendmail_path(Config->GetBlock("mail")->Get<const Anope::string>("sendmailpath")), send_from(sf), mail_to(mailto), addr(a), subject(s), message(m), dont_quote_addresses(Config->GetBlock("mail")->Get<bool>("dontquoteaddresses")), success(false)
{
}
Mail::Message::~Message()
{
if (success)
Log(LOG_NORMAL, "mail") << "Successfully delivered mail for " << mail_to << " (" << addr << ")";
else
Log(LOG_NORMAL, "mail") << "Error delivering mail for " << mail_to << " (" << addr << ")";
}
void Mail::Message::Run()
{
FILE *pipe = popen(sendmail_path.c_str(), "w");
if (!pipe)
{
SetExitState();
return;
}
fprintf(pipe, "From: %s\n", send_from.c_str());
if (this->dont_quote_addresses)
fprintf(pipe, "To: %s <%s>\n", mail_to.c_str(), addr.c_str());
else
fprintf(pipe, "To: \"%s\" <%s>\n", mail_to.c_str(), addr.c_str());
fprintf(pipe, "Subject: %s\n", subject.c_str());
fprintf(pipe, "%s", message.c_str());
fprintf(pipe, "\n.\n");
pclose(pipe);
success = true;
SetExitState();
}
bool Mail::Send(User *u, NickCore *nc, BotInfo *service, const Anope::string &subject, const Anope::string &message)
{
if (!nc || !service || subject.empty() || message.empty())
return false;
Configuration::Block *b = Config->GetBlock("mail");
if (!u)
{
if (!b->Get<bool>("usemail") || b->Get<const Anope::string>("sendfrom").empty())
return false;
else if (nc->email.empty())
return false;
nc->lastmail = Anope::CurTime;
Thread *t = new Mail::Message(b->Get<const Anope::string>("sendfrom"), nc->display, nc->email, subject, message);
t->Start();
return true;
}
else
{
if (!b->Get<bool>("usemail") || b->Get<const Anope::string>("sendfrom").empty())
u->SendMessage(service, _("Services have been configured to not send mail."));
else if (Anope::CurTime - u->lastmail < b->Get<time_t>("delay"))
u->SendMessage(service, _("Please wait \002%d\002 seconds and retry."), b->Get<time_t>("delay") - (Anope::CurTime - u->lastmail));
else if (nc->email.empty())
u->SendMessage(service, _("E-mail for \002%s\002 is invalid."), nc->display.c_str());
else
{
u->lastmail = nc->lastmail = Anope::CurTime;
Thread *t = new Mail::Message(b->Get<const Anope::string>("sendfrom"), nc->display, nc->email, subject, message);
t->Start();
return true;
}
return false;
}
}
bool Mail::Send(NickCore *nc, const Anope::string &subject, const Anope::string &message)
{
Configuration::Block *b = Config->GetBlock("mail");
if (!b->Get<bool>("usemail") || b->Get<const Anope::string>("sendfrom").empty() || !nc || nc->email.empty() || subject.empty() || message.empty())
return false;
nc->lastmail = Anope::CurTime;
Thread *t = new Mail::Message(b->Get<const Anope::string>("sendfrom"), nc->display, nc->email, subject, message);
t->Start();
return true;
}
/**
* Checks whether we have a valid, common e-mail address.
* This is NOT entirely RFC compliant, and won't be so, because I said
* *common* cases. ;) It is very unlikely that e-mail addresses that
* are really being used will fail the check.
*
* @param email Email to Validate
* @return bool
*/
bool Mail::Validate(const Anope::string &email)
{
bool has_period = false;
static char specials[] = {'(', ')', '<', '>', '@', ',', ';', ':', '\\', '\"', '[', ']', ' '};
if (email.empty())
return false;
Anope::string copy = email;
size_t at = copy.find('@');
if (at == Anope::string::npos)
return false;
Anope::string domain = copy.substr(at + 1);
copy = copy.substr(0, at);
/* Don't accept empty copy or domain. */
if (copy.empty() || domain.empty())
return false;
/* Check for forbidden characters in the name */
for (unsigned i = 0, end = copy.length(); i < end; ++i)
{
if (copy[i] <= 31 || copy[i] >= 127)
return false;
for (unsigned int j = 0; j < 13; ++j)
if (copy[i] == specials[j])
return false;
}
/* Check for forbidden characters in the domain */
for (unsigned i = 0, end = domain.length(); i < end; ++i)
{
if (domain[i] <= 31 || domain[i] >= 127)
return false;
for (unsigned int j = 0; j < 13; ++j)
if (domain[i] == specials[j])
return false;
if (domain[i] == '.')
{
if (!i || i == end - 1)
return false;
has_period = true;
}
}
return has_period;
}
| mit |
ftsuda82/Curriculo | src/main/java/br/senac/tads/dsw/curriculo/AjaxServlet.java | 1556 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package br.senac.tads.dsw.curriculo;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Arrays;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.json.JSONObject;
/**
*
* @author Fernando
*/
@WebServlet(name = "AjaxServlet", urlPatterns = {"/AjaxServlet"})
public class AjaxServlet extends HttpServlet {
/**
* Handles the HTTP <code>GET</code> method.
*
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
Telefone tel1 = new Telefone(1, "(11) 99999-9999");
Telefone tel2 = new Telefone(2, "(11) 88888-8888");
Contato contato = new Contato(1, "Fulano da Silva", "fulano@zmail.com", Arrays.asList(tel1, tel2));
JSONObject json = new JSONObject(contato);
response.setContentType("application/json;charset=UTF-8");
try (PrintWriter out = response.getWriter()) {
out.print(json.toString());
}
}
}
| mit |
positive-js/mosaic | packages/mosaic-examples/mosaic/popover/index.ts | 1370 | import { A11yModule } from '@angular/cdk/a11y';
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { McButtonModule } from '@ptsecurity/mosaic/button';
import { McCheckboxModule } from '@ptsecurity/mosaic/checkbox';
import { McFormsModule } from '@ptsecurity/mosaic/core';
import { McFormFieldModule } from '@ptsecurity/mosaic/form-field';
import { McIconModule } from '@ptsecurity/mosaic/icon';
import { McInputModule } from '@ptsecurity/mosaic/input';
import { McPopoverModule } from '@ptsecurity/mosaic/popover';
import { McSelectModule } from '@ptsecurity/mosaic/select';
import { PopoverInstanceExample } from './popover-instance/popover-instance-example';
import { PopoverOverviewExample } from './popover-overview/popover-overview-example';
export {
PopoverOverviewExample,
PopoverInstanceExample
};
const EXAMPLES = [
PopoverOverviewExample,
PopoverInstanceExample
];
@NgModule({
imports: [
CommonModule,
A11yModule,
FormsModule,
McFormsModule,
McFormFieldModule,
McSelectModule,
McPopoverModule,
McButtonModule,
McIconModule,
McInputModule,
McCheckboxModule
],
declarations: EXAMPLES,
exports: EXAMPLES
})
export class PopoverExamplesModule {}
| mit |
leviwilson/furter | spec/lib/furter/accessors/view_spec.rb | 1804 | require 'spec_helper'
describe Furter::Accessors::View do
let(:view) { Furter::Accessors::View.new(:label => 'id') }
let(:selector) { view.send(:selector) }
context 'locating views' do
it 'can be found by accessibility label' do
by_label = Furter::Accessors::View.new(:label => 'id')
by_label.send(:selector).should eq("view marked:\"id\"")
end
it 'can use a custom type' do
by_type = Furter::Accessors::View.new(:type => 'UICustomType', :label => 'id')
by_type.send(:selector).should eq("view:\"UICustomType\" marked:\"id\"")
end
it 'can pass extra information as well' do
with_extras = Furter::Accessors::View.new(:label => 'id', :extra => 'label')
with_extras.send(:selector).should eq("view marked:\"id\" label")
end
it 'can be found by text' do
by_text = Furter::Accessors::View.new(:text => "Some Text")
by_text.send(:selector).should eq("view text:\"Some Text\"")
end
end
it 'can be clicked' do
view.should_receive(:wait_for_and_touch).with(selector)
view.click
end
it 'can be tapped' do
expected_duration = 0.1
view.should_receive(:wait_for_and_tap).with(selector, expected_duration)
view.tap_and_hold_for(expected_duration)
end
it 'knows if it is visible' do
view.should_receive(:element_is_not_hidden).with(selector).and_return(true)
view.should be_visible
end
it 'knows if it is enabled' do
view.should_receive(:frankly_map).with(selector, 'isEnabled').and_return([true])
view.should be_enabled
end
it 'should know about next responders' do
view.should_receive(:frankly_map).with("view:\"UIView\"", 'nextResponder').and_return(['<First>', '<Second>', '<Third>'])
view.next_responders.should eq ['First', 'Second', 'Third']
end
end
| mit |
dforel/Dcal | src/Dcal.js | 1129 | (function(){
var leftMove= function(v1,v2){
return Math.max(decimalLength(v1),decimalLength(v2));
}
var decimalLength=function(x) {
var temp = x.toString().split('.');
return (temp.length < 2) ? 1 : Math.pow(10, temp[1].length)
}
var isNumber=function(v){
if(typeof v !=='number'){
console.error("输入的应该是个数字!");
return false;
}
return true;
}
Number.prototype.$add=function(v){
if(!isNumber(v)){return;}
var times= leftMove(this,v);
return parseInt(this*times + v*times)/times;
}
Number.prototype.$sub=function(v){
if(!isNumber(v)){return;}
var times= leftMove(this,v);
return parseInt(this * times - v * times) / times;
}
Number.prototype.$mul=function(v){
if(!isNumber(v)){return;}
var ttimes= decimalLength(this);
var vtimes= decimalLength(v);
return parseInt(this * ttimes) * parseInt(v * vtimes) / (ttimes*vtimes);
}
Number.prototype.$div=function(v){
if(!isNumber(v)){return;}
var times= leftMove(this,v);
return parseInt(this * times) / parseInt(v * times)
}
})();
| mit |
chrisjhoughton/tray-robot-test | lib/formatOutput.js | 397 | var _ = require('lodash');
module.exports = function (result) {
if (!_.isObject(result.position) || !_.isNumber(result.position.x) || !_.isNumber(result.position.y)) {
throw new Error('Invalid `result.position`');
}
if (!_.isNumber(result.cleaned)) {
throw new Error('Invalid `result.cleaned`');
}
return result.position.x + ' ' + result.position.y + "\n" + result.cleaned;
}; | mit |
samphippen/srobotickets | config/routes.rb | 1960 | Srobotickets::Application.routes.draw do
get "home/make_ticket"
get "home/index"
match "/qrrender/:data" => "home#make_qr"
match "/maketicket" => "home#make_ticket"
root :to => "home#index"
# The priority is based upon order of creation:
# first created -> highest priority.
# Sample of regular route:
# match 'products/:id' => 'catalog#view'
# Keep in mind you can assign values other than :controller and :action
# Sample of named route:
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
# This route can be invoked with purchase_url(:id => product.id)
# Sample resource route (maps HTTP verbs to controller actions automatically):
# resources :products
# Sample resource route with options:
# resources :products do
# member do
# get 'short'
# post 'toggle'
# end
#
# collection do
# get 'sold'
# end
# end
# Sample resource route with sub-resources:
# resources :products do
# resources :comments, :sales
# resource :seller
# end
# Sample resource route with more complex sub-resources
# resources :products do
# resources :comments
# resources :sales do
# get 'recent', :on => :collection
# end
# end
# Sample resource route within a namespace:
# namespace :admin do
# # Directs /admin/products/* to Admin::ProductsController
# # (app/controllers/admin/products_controller.rb)
# resources :products
# end
# You can have the root of your site routed with "root"
# just remember to delete public/index.html.
# root :to => 'welcome#index'
# See how all your routes lay out with "rake routes"
# This is a legacy wild controller route that's not recommended for RESTful applications.
# Note: This route will make all actions in every controller accessible via GET requests.
# match ':controller(/:action(/:id(.:format)))'
end
| mit |
dinghua/blog | vendor/koomai/wardrobe-themes/public/themes/bootstrap/index.blade.php | 217 | @extends(theme_view('layout'))
@section('title')
{{ site_title() }}
@stop
@section('content')
@foreach ($posts as $post)
@include(theme_view('inc.post'))
@endforeach
{{ $posts->links() }}
@stop
| mit |
latcoin/freespeech | src/bitcoind.cpp | 4317 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "init.h"
#include "bitcoinrpc.h"
#include <boost/algorithm/string/predicate.hpp>
void DetectShutdownThread(boost::thread_group* threadGroup)
{
bool shutdown = ShutdownRequested();
// Tell the main threads to shutdown.
while (!shutdown)
{
MilliSleep(200);
shutdown = ShutdownRequested();
}
if (threadGroup)
threadGroup->interrupt_all();
}
//////////////////////////////////////////////////////////////////////////////
//
// Start
//
bool AppInit(int argc, char* argv[])
{
boost::thread_group threadGroup;
boost::thread* detectShutdownThread = NULL;
bool fRet = false;
try
{
//
// Parameters
//
// If Qt is used, parameters/bitcoin.conf are parsed in qt/bitcoin.cpp's main()
ParseParameters(argc, argv);
if (!boost::filesystem::is_directory(GetDataDir(false)))
{
fprintf(stderr, "Error: Specified directory does not exist\n");
Shutdown();
}
ReadConfigFile(mapArgs, mapMultiArgs);
if (mapArgs.count("-?") || mapArgs.count("--help"))
{
// First part of help message is specific to freespeechd / RPC client
std::string strUsage = _("Freespeech version") + " " + FormatFullVersion() + "\n\n" +
_("Usage:") + "\n" +
" freespeechd [options] " + "\n" +
" freespeechd [options] <command> [params] " + _("Send command to -server or freespeechd") + "\n" +
" freespeechd [options] help " + _("List commands") + "\n" +
" freespeechd [options] help <command> " + _("Get help for a command") + "\n";
strUsage += "\n" + HelpMessage();
fprintf(stdout, "%s", strUsage.c_str());
return false;
}
// Command-line RPC
for (int i = 1; i < argc; i++)
if (!IsSwitchChar(argv[i][0]) && !boost::algorithm::istarts_with(argv[i], "bitcoin:"))
fCommandLine = true;
if (fCommandLine)
{
if (!SelectParamsFromCommandLine()) {
fprintf(stderr, "Error: invalid combination of -regtest and -testnet.\n");
return false;
}
int ret = CommandLineRPC(argc, argv);
exit(ret);
}
#if !defined(WIN32)
fDaemon = GetBoolArg("-daemon", false);
if (fDaemon)
{
// Daemonize
pid_t pid = fork();
if (pid < 0)
{
fprintf(stderr, "Error: fork() returned %d errno %d\n", pid, errno);
return false;
}
if (pid > 0) // Parent process, pid is child process id
{
CreatePidFile(GetPidFile(), pid);
return true;
}
// Child process falls through to rest of initialization
pid_t sid = setsid();
if (sid < 0)
fprintf(stderr, "Error: setsid() returned %d errno %d\n", sid, errno);
}
#endif
detectShutdownThread = new boost::thread(boost::bind(&DetectShutdownThread, &threadGroup));
fRet = AppInit2(threadGroup);
}
catch (std::exception& e) {
PrintExceptionContinue(&e, "AppInit()");
} catch (...) {
PrintExceptionContinue(NULL, "AppInit()");
}
if (!fRet) {
if (detectShutdownThread)
detectShutdownThread->interrupt();
threadGroup.interrupt_all();
}
if (detectShutdownThread)
{
detectShutdownThread->join();
delete detectShutdownThread;
detectShutdownThread = NULL;
}
Shutdown();
return fRet;
}
extern void GenesisMiner();
extern void noui_connect();
int main(int argc, char* argv[])
{
bool fRet = false;
fHaveGUI = false;
//GenesisMiner();
// Connect freespeechd signal handlers
noui_connect();
fRet = AppInit(argc, argv);
if (fRet && fDaemon)
return 0;
return (fRet ? 0 : 1);
}
| mit |
reiinakano/scikit-plot | scikitplot/estimators.py | 9921 | """
The :mod:`scikitplot.estimators` module includes plots built specifically for
scikit-learn estimator (classifier/regressor) instances e.g. Random Forest.
You can use your own estimators, but these plots assume specific properties
shared by scikit-learn estimators. The specific requirements are documented per
function.
"""
from __future__ import absolute_import, division, print_function, \
unicode_literals
import matplotlib.pyplot as plt
import numpy as np
from sklearn.model_selection import learning_curve
def plot_feature_importances(clf, title='Feature Importance',
feature_names=None, max_num_features=20,
order='descending', x_tick_rotation=0, ax=None,
figsize=None, title_fontsize="large",
text_fontsize="medium"):
"""Generates a plot of a classifier's feature importances.
Args:
clf: Classifier instance that has a ``feature_importances_`` attribute,
e.g. :class:`sklearn.ensemble.RandomForestClassifier` or
:class:`xgboost.XGBClassifier`.
title (string, optional): Title of the generated plot. Defaults to
"Feature importances".
feature_names (None, :obj:`list` of string, optional): Determines the
feature names used to plot the feature importances. If None,
feature names will be numbered.
max_num_features (int): Determines the maximum number of features to
plot. Defaults to 20.
order ('ascending', 'descending', or None, optional): Determines the
order in which the feature importances are plotted. Defaults to
'descending'.
x_tick_rotation (int, optional): Rotates x-axis tick labels by the
specified angle. This is useful in cases where there are numerous
categories and the labels overlap each other.
ax (:class:`matplotlib.axes.Axes`, optional): The axes upon which to
plot the curve. If None, the plot is drawn on a new set of axes.
figsize (2-tuple, optional): Tuple denoting figure size of the plot
e.g. (6, 6). Defaults to ``None``.
title_fontsize (string or int, optional): Matplotlib-style fontsizes.
Use e.g. "small", "medium", "large" or integer-values. Defaults to
"large".
text_fontsize (string or int, optional): Matplotlib-style fontsizes.
Use e.g. "small", "medium", "large" or integer-values. Defaults to
"medium".
Returns:
ax (:class:`matplotlib.axes.Axes`): The axes on which the plot was
drawn.
Example:
>>> import scikitplot as skplt
>>> rf = RandomForestClassifier()
>>> rf.fit(X, y)
>>> skplt.estimators.plot_feature_importances(
... rf, feature_names=['petal length', 'petal width',
... 'sepal length', 'sepal width'])
<matplotlib.axes._subplots.AxesSubplot object at 0x7fe967d64490>
>>> plt.show()
.. image:: _static/examples/plot_feature_importances.png
:align: center
:alt: Feature Importances
"""
if not hasattr(clf, 'feature_importances_'):
raise TypeError('"feature_importances_" attribute not in classifier. '
'Cannot plot feature importances.')
importances = clf.feature_importances_
if hasattr(clf, 'estimators_')\
and isinstance(clf.estimators_, list)\
and hasattr(clf.estimators_[0], 'feature_importances_'):
std = np.std([tree.feature_importances_ for tree in clf.estimators_],
axis=0)
else:
std = None
if order == 'descending':
indices = np.argsort(importances)[::-1]
elif order == 'ascending':
indices = np.argsort(importances)
elif order is None:
indices = np.array(range(len(importances)))
else:
raise ValueError('Invalid argument {} for "order"'.format(order))
if ax is None:
fig, ax = plt.subplots(1, 1, figsize=figsize)
if feature_names is None:
feature_names = indices
else:
feature_names = np.array(feature_names)[indices]
max_num_features = min(max_num_features, len(importances))
ax.set_title(title, fontsize=title_fontsize)
if std is not None:
ax.bar(range(max_num_features),
importances[indices][:max_num_features], color='r',
yerr=std[indices][:max_num_features], align='center')
else:
ax.bar(range(max_num_features),
importances[indices][:max_num_features],
color='r', align='center')
ax.set_xticks(range(max_num_features))
ax.set_xticklabels(feature_names[:max_num_features],
rotation=x_tick_rotation)
ax.set_xlim([-1, max_num_features])
ax.tick_params(labelsize=text_fontsize)
return ax
def plot_learning_curve(clf, X, y, title='Learning Curve', cv=None,
shuffle=False, random_state=None,
train_sizes=None, n_jobs=1, scoring=None,
ax=None, figsize=None, title_fontsize="large",
text_fontsize="medium"):
"""Generates a plot of the train and test learning curves for a classifier.
Args:
clf: Classifier instance that implements ``fit`` and ``predict``
methods.
X (array-like, shape (n_samples, n_features)):
Training vector, where n_samples is the number of samples and
n_features is the number of features.
y (array-like, shape (n_samples) or (n_samples, n_features)):
Target relative to X for classification or regression;
None for unsupervised learning.
title (string, optional): Title of the generated plot. Defaults to
"Learning Curve"
cv (int, cross-validation generator, iterable, optional): Determines
the cross-validation strategy to be used for splitting.
Possible inputs for cv are:
- None, to use the default 3-fold cross-validation,
- integer, to specify the number of folds.
- An object to be used as a cross-validation generator.
- An iterable yielding train/test splits.
For integer/None inputs, if ``y`` is binary or multiclass,
:class:`StratifiedKFold` used. If the estimator is not a classifier
or if ``y`` is neither binary nor multiclass, :class:`KFold` is
used.
shuffle (bool, optional): Used when do_cv is set to True. Determines
whether to shuffle the training data before splitting using
cross-validation. Default set to True.
random_state (int :class:`RandomState`): Pseudo-random number generator
state used for random sampling.
train_sizes (iterable, optional): Determines the training sizes used to
plot the learning curve. If None, ``np.linspace(.1, 1.0, 5)`` is
used.
n_jobs (int, optional): Number of jobs to run in parallel. Defaults to
1.
scoring (string, callable or None, optional): default: None
A string (see scikit-learn model evaluation documentation) or a
scorerbcallable object / function with signature
scorer(estimator, X, y).
ax (:class:`matplotlib.axes.Axes`, optional): The axes upon which to
plot the curve. If None, the plot is drawn on a new set of axes.
figsize (2-tuple, optional): Tuple denoting figure size of the plot
e.g. (6, 6). Defaults to ``None``.
title_fontsize (string or int, optional): Matplotlib-style fontsizes.
Use e.g. "small", "medium", "large" or integer-values. Defaults to
"large".
text_fontsize (string or int, optional): Matplotlib-style fontsizes.
Use e.g. "small", "medium", "large" or integer-values. Defaults to
"medium".
Returns:
ax (:class:`matplotlib.axes.Axes`): The axes on which the plot was
drawn.
Example:
>>> import scikitplot as skplt
>>> rf = RandomForestClassifier()
>>> skplt.estimators.plot_learning_curve(rf, X, y)
<matplotlib.axes._subplots.AxesSubplot object at 0x7fe967d64490>
>>> plt.show()
.. image:: _static/examples/plot_learning_curve.png
:align: center
:alt: Learning Curve
"""
if ax is None:
fig, ax = plt.subplots(1, 1, figsize=figsize)
if train_sizes is None:
train_sizes = np.linspace(.1, 1.0, 5)
ax.set_title(title, fontsize=title_fontsize)
ax.set_xlabel("Training examples", fontsize=text_fontsize)
ax.set_ylabel("Score", fontsize=text_fontsize)
train_sizes, train_scores, test_scores = learning_curve(
clf, X, y, cv=cv, n_jobs=n_jobs, train_sizes=train_sizes,
scoring=scoring, shuffle=shuffle, random_state=random_state)
train_scores_mean = np.mean(train_scores, axis=1)
train_scores_std = np.std(train_scores, axis=1)
test_scores_mean = np.mean(test_scores, axis=1)
test_scores_std = np.std(test_scores, axis=1)
ax.grid()
ax.fill_between(train_sizes, train_scores_mean - train_scores_std,
train_scores_mean + train_scores_std, alpha=0.1, color="r")
ax.fill_between(train_sizes, test_scores_mean - test_scores_std,
test_scores_mean + test_scores_std, alpha=0.1, color="g")
ax.plot(train_sizes, train_scores_mean, 'o-', color="r",
label="Training score")
ax.plot(train_sizes, test_scores_mean, 'o-', color="g",
label="Cross-validation score")
ax.tick_params(labelsize=text_fontsize)
ax.legend(loc="best", fontsize=text_fontsize)
return ax
| mit |
Solyony/test_copy | core/src/main/java/cyberwaste/kuzoff/core/command/impl/AddRow.java | 628 | package cyberwaste.kuzoff.core.command.impl;
import cyberwaste.kuzoff.core.IOManager;
import cyberwaste.kuzoff.core.command.Argument;
import cyberwaste.kuzoff.core.command.Command;
import cyberwaste.kuzoff.core.domain.Row;
public class AddRow extends Command {
@Argument(index = 0)
private String tableName;
@Argument(index = 1, eager = true)
private String[] values;
@Override
public void execute(IOManager ioManager) throws Exception {
Row row = databaseManager.insertRow(tableName, values);
ioManager.output("Insert 1 row:");
ioManager.outputRowInfo(row);
}
}
| mit |
puras/mo-seed | mo-backend/mo-boot-seed/src/main/java/me/puras/mo/seed/moboot/error/package-info.java | 155 | /**
* @author <a href="mailto:he@puras.me">puras</a>
* @version $Revision 1.0 $
* Created On 2017-08-01 15:06
*/
package me.puras.mo.seed.moboot.error; | mit |
kalibao/magesko | kalibao/common/components/mail/MailFunction.php | 528 | <?php
/**
* @copyright Copyright (c) 2015 Kévin Walter <walkev13@gmail.com> - Kalibao
* @license https://github.com/kalibao/magesko/blob/master/LICENSE
*/
namespace kalibao\common\components\mail;
/**
* Class MailFunction
* @package kalibao\common\components\mail
* @version 1.0
* @author Kevin Walter <walkev13@gmail.com>
*/
class MailFunction
{
/**
* Test method
* @return string
*/
public static function testMethod($name)
{
return 'Hello '.$name.' it\'s a simple test.';
}
} | mit |
xabbuh/platform | src/Oro/Bundle/FilterBundle/Tests/Unit/Filter/DateFilterUtilityTest.php | 7109 | <?php
namespace Oro\Bundle\FilterBundle\Tests\Unit\Filter;
use Oro\Bundle\FilterBundle\Filter\DateFilterUtility;
use Oro\Bundle\FilterBundle\Form\Type\Filter\DateRangeFilterType;
use Oro\Bundle\FilterBundle\Provider\DateModifierInterface;
class DateFilterUtilityTest extends \PHPUnit_Framework_TestCase
{
/** @var DateFilterUtility */
protected $utility;
public function setUp()
{
$localeSettings = $this->getMockBuilder('Oro\Bundle\LocaleBundle\Model\LocaleSettings')
->disableOriginalConstructor()
->setMethods(array('getTimezone'))
->getMock();
$localeSettings->expects($this->any())
->method('getTimezone')
->will($this->returnValue('Europe/Moscow'));
$this->utility = new DateFilterUtility($localeSettings);
}
public function tearDown()
{
unset($this->utility);
}
/**
* @dataProvider parseDataProvider
*
* @param mixed $data
* @param string $fieldName
* @param mixed $expectedResults
*/
public function testParse($data, $fieldName, $expectedResults)
{
$this->assertEquals($expectedResults, $this->utility->parseData($fieldName, $data));
}
/**
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
* @return array
*/
public function parseDataProvider()
{
return [
'invalid data, not array' => [
null,
'field',
false
],
'invalid data, no value key' => [
[],
'field',
false
],
'invalid data, no one field given' => [
['value' => []],
'field',
false
],
'valid date given' => [
['value' => ['start' => '2001-01-01']],
'field',
[
'date_start' => '2001-01-01',
'date_end' => null,
'type' => DateRangeFilterType::TYPE_BETWEEN,
'part' => DateModifierInterface::PART_VALUE,
'field' => 'field',
]
],
'valid data given, more then given part day' => [
[
'value' => ['start' => 1, 'end' => 20],
'type' => DateRangeFilterType::TYPE_MORE_THAN,
'part' => DateModifierInterface::PART_DAY,
],
'field',
[
'date_start' => 1,
'date_end' => null,
'type' => DateRangeFilterType::TYPE_MORE_THAN,
'part' => DateModifierInterface::PART_DAY,
'field' => "DAY(CONVERT_TZ(field, '+00:00', '+04:00'))",
]
],
'valid data given, less then given part month' => [
[
'value' => ['start' => 1, 'end' => 3],
'type' => DateRangeFilterType::TYPE_LESS_THAN,
'part' => DateModifierInterface::PART_MONTH,
],
'field',
[
'date_start' => null,
'date_end' => 3,
'type' => DateRangeFilterType::TYPE_LESS_THAN,
'part' => DateModifierInterface::PART_MONTH,
'field' => "MONTH(CONVERT_TZ(field, '+00:00', '+04:00'))",
]
],
'valid data given, between given part year' => [
[
'value' => ['start' => 2001, 'end' => 2005],
'type' => DateRangeFilterType::TYPE_BETWEEN,
'part' => DateModifierInterface::PART_YEAR,
],
'field',
[
'date_start' => 2001,
'date_end' => 2005,
'type' => DateRangeFilterType::TYPE_BETWEEN,
'part' => DateModifierInterface::PART_YEAR,
'field' => "YEAR(CONVERT_TZ(field, '+00:00', '+04:00'))",
]
],
'valid data given, between given part week' => [
[
'value' => ['start' => 2, 'end' => 5],
'type' => DateRangeFilterType::TYPE_BETWEEN,
'part' => DateModifierInterface::PART_WEEK,
],
'field',
[
'date_start' => 2,
'date_end' => 5,
'type' => DateRangeFilterType::TYPE_BETWEEN,
'part' => DateModifierInterface::PART_WEEK,
'field' => "WEEK(CONVERT_TZ(field, '+00:00', '+04:00'))",
]
],
'valid data given, between given part day of week' => [
[
'value' => ['start' => 2, 'end' => 5],
'type' => DateRangeFilterType::TYPE_BETWEEN,
'part' => DateModifierInterface::PART_DOW,
],
'field',
[
'date_start' => 2,
'date_end' => 5,
'type' => DateRangeFilterType::TYPE_BETWEEN,
'part' => DateModifierInterface::PART_DOW,
'field' => "DAYOFWEEK(CONVERT_TZ(field, '+00:00', '+04:00'))",
]
],
'valid data given, between given part day of year' => [
[
'value' => ['start' => 320, 'end' => 365],
'type' => DateRangeFilterType::TYPE_BETWEEN,
'part' => DateModifierInterface::PART_DOY,
],
'field',
[
'date_start' => 320,
'date_end' => 365,
'type' => DateRangeFilterType::TYPE_BETWEEN,
'part' => DateModifierInterface::PART_DOY,
'field' => "DAYOFYEAR(CONVERT_TZ(field, '+00:00', '+04:00'))",
]
],
'valid data given, between given part quarter' => [
[
'value' => ['start' => 1, 'end' => 2],
'type' => DateRangeFilterType::TYPE_BETWEEN,
'part' => DateModifierInterface::PART_QUARTER,
],
'field',
[
'date_start' => 1,
'date_end' => 2,
'type' => DateRangeFilterType::TYPE_BETWEEN,
'part' => DateModifierInterface::PART_QUARTER,
'field' => "QUARTER(CONVERT_TZ(field, '+00:00', '+04:00'))",
]
]
];
}
}
| mit |
onielmartinjr/test_angular2 | app/app.component.js | 1707 | System.register(['angular2/core'], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var core_1;
var AppComponent;
return {
setters:[
function (core_1_1) {
core_1 = core_1_1;
}],
execute: function() {
AppComponent = (function () {
function AppComponent() {
}
AppComponent = __decorate([
core_1.Component({
selector: 'my-app',
template: '<h1>Christmas Spoilers - DEV</h1><p>Coming soon.</p>'
}),
__metadata('design:paramtypes', [])
], AppComponent);
return AppComponent;
}());
exports_1("AppComponent", AppComponent);
}
}
});
//# sourceMappingURL=app.component.js.map | mit |
gitminingOrg/AirDevice | common/src/main/java/model/userdevice/Device.java | 129 | package model.userdevice;
/**
* Created by sunshine on 06/01/2018.
*/
public enum Device {
ANDROID, IPHONE, WEB_BROWSER
}
| mit |
orapow/x.rbt | doc/WeChat.NET-master/WeChat.NET-master/WeChat.NET/Properties/Settings.Designer.cs | 1067 | //------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18444
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace WeChat.NET.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
}
}
| mit |
fomojola/electron | atom/browser/api/atom_api_session.cc | 10089 | // Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/api/atom_api_session.h"
#include <string>
#include <vector>
#include "atom/browser/api/atom_api_cookies.h"
#include "atom/browser/atom_browser_context.h"
#include "atom/common/native_mate_converters/gurl_converter.h"
#include "base/files/file_path.h"
#include "base/prefs/pref_service.h"
#include "base/strings/string_util.h"
#include "base/thread_task_runner_handle.h"
#include "chrome/common/pref_names.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/storage_partition.h"
#include "native_mate/callback.h"
#include "native_mate/object_template_builder.h"
#include "net/base/load_flags.h"
#include "net/disk_cache/disk_cache.h"
#include "net/proxy/proxy_service.h"
#include "net/proxy/proxy_config_service_fixed.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_context_getter.h"
#include "atom/common/node_includes.h"
using content::BrowserThread;
using content::StoragePartition;
namespace {
struct ClearStorageDataOptions {
GURL origin;
uint32 storage_types = StoragePartition::REMOVE_DATA_MASK_ALL;
uint32 quota_types = StoragePartition::QUOTA_MANAGED_STORAGE_MASK_ALL;
};
uint32 GetStorageMask(const std::vector<std::string>& storage_types) {
uint32 storage_mask = 0;
for (const auto& it : storage_types) {
auto type = base::StringToLowerASCII(it);
if (type == "appcache")
storage_mask |= StoragePartition::REMOVE_DATA_MASK_APPCACHE;
else if (type == "cookies")
storage_mask |= StoragePartition::REMOVE_DATA_MASK_COOKIES;
else if (type == "filesystem")
storage_mask |= StoragePartition::REMOVE_DATA_MASK_FILE_SYSTEMS;
else if (type == "indexdb")
storage_mask |= StoragePartition::REMOVE_DATA_MASK_INDEXEDDB;
else if (type == "localstorage")
storage_mask |= StoragePartition::REMOVE_DATA_MASK_LOCAL_STORAGE;
else if (type == "shadercache")
storage_mask |= StoragePartition::REMOVE_DATA_MASK_SHADER_CACHE;
else if (type == "websql")
storage_mask |= StoragePartition::REMOVE_DATA_MASK_WEBSQL;
else if (type == "serviceworkers")
storage_mask |= StoragePartition::REMOVE_DATA_MASK_SERVICE_WORKERS;
}
return storage_mask;
}
uint32 GetQuotaMask(const std::vector<std::string>& quota_types) {
uint32 quota_mask = 0;
for (const auto& it : quota_types) {
auto type = base::StringToLowerASCII(it);
if (type == "temporary")
quota_mask |= StoragePartition::QUOTA_MANAGED_STORAGE_MASK_TEMPORARY;
else if (type == "persistent")
quota_mask |= StoragePartition::QUOTA_MANAGED_STORAGE_MASK_PERSISTENT;
else if (type == "syncable")
quota_mask |= StoragePartition::QUOTA_MANAGED_STORAGE_MASK_SYNCABLE;
}
return quota_mask;
}
} // namespace
namespace mate {
template<>
struct Converter<ClearStorageDataOptions> {
static bool FromV8(v8::Isolate* isolate,
v8::Local<v8::Value> val,
ClearStorageDataOptions* out) {
mate::Dictionary options;
if (!ConvertFromV8(isolate, val, &options))
return false;
options.Get("origin", &out->origin);
std::vector<std::string> types;
if (options.Get("storages", &types))
out->storage_types = GetStorageMask(types);
if (options.Get("quotas", &types))
out->quota_types = GetQuotaMask(types);
return true;
}
};
} // namespace mate
namespace atom {
namespace api {
namespace {
class ResolveProxyHelper {
public:
ResolveProxyHelper(AtomBrowserContext* browser_context,
const GURL& url,
Session::ResolveProxyCallback callback)
: callback_(callback),
original_thread_(base::ThreadTaskRunnerHandle::Get()) {
scoped_refptr<net::URLRequestContextGetter> context_getter =
browser_context->GetRequestContext();
context_getter->GetNetworkTaskRunner()->PostTask(
FROM_HERE,
base::Bind(&ResolveProxyHelper::ResolveProxy,
base::Unretained(this), context_getter, url));
}
void OnResolveProxyCompleted(int result) {
std::string proxy;
if (result == net::OK)
proxy = proxy_info_.ToPacString();
original_thread_->PostTask(FROM_HERE,
base::Bind(callback_, proxy));
delete this;
}
private:
void ResolveProxy(scoped_refptr<net::URLRequestContextGetter> context_getter,
const GURL& url) {
DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
net::ProxyService* proxy_service =
context_getter->GetURLRequestContext()->proxy_service();
net::CompletionCallback completion_callback =
base::Bind(&ResolveProxyHelper::OnResolveProxyCompleted,
base::Unretained(this));
// Start the request.
int result = proxy_service->ResolveProxy(
url, net::LOAD_NORMAL, &proxy_info_, completion_callback,
&pac_req_, nullptr, net::BoundNetLog());
// Completed synchronously.
if (result != net::ERR_IO_PENDING)
completion_callback.Run(result);
}
Session::ResolveProxyCallback callback_;
net::ProxyInfo proxy_info_;
net::ProxyService::PacRequest* pac_req_;
scoped_refptr<base::SingleThreadTaskRunner> original_thread_;
DISALLOW_COPY_AND_ASSIGN(ResolveProxyHelper);
};
// Runs the callback in UI thread.
template <typename ...T>
void RunCallbackInUI(const base::Callback<void(T...)>& callback, T... result) {
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE, base::Bind(callback, result...));
}
// Callback of HttpCache::GetBackend.
void OnGetBackend(disk_cache::Backend** backend_ptr,
const net::CompletionCallback& callback,
int result) {
if (result != net::OK) {
RunCallbackInUI(callback, result);
} else if (backend_ptr && *backend_ptr) {
(*backend_ptr)->DoomAllEntries(base::Bind(&RunCallbackInUI<int>, callback));
} else {
RunCallbackInUI<int>(callback, net::ERR_FAILED);
}
}
void ClearHttpCacheInIO(content::BrowserContext* browser_context,
const net::CompletionCallback& callback) {
auto request_context =
browser_context->GetRequestContext()->GetURLRequestContext();
auto http_cache = request_context->http_transaction_factory()->GetCache();
if (!http_cache)
RunCallbackInUI<int>(callback, net::ERR_FAILED);
// Call GetBackend and make the backend's ptr accessable in OnGetBackend.
using BackendPtr = disk_cache::Backend*;
BackendPtr* backend_ptr = new BackendPtr(nullptr);
net::CompletionCallback on_get_backend =
base::Bind(&OnGetBackend, base::Owned(backend_ptr), callback);
int rv = http_cache->GetBackend(backend_ptr, on_get_backend);
if (rv != net::ERR_IO_PENDING)
on_get_backend.Run(net::OK);
}
void SetProxyInIO(net::URLRequestContextGetter* getter,
const std::string& proxy,
const base::Closure& callback) {
net::ProxyConfig config;
config.proxy_rules().ParseFromString(proxy);
auto proxy_service = getter->GetURLRequestContext()->proxy_service();
proxy_service->ResetConfigService(new net::ProxyConfigServiceFixed(config));
RunCallbackInUI(callback);
}
} // namespace
Session::Session(AtomBrowserContext* browser_context)
: browser_context_(browser_context) {
AttachAsUserData(browser_context);
}
Session::~Session() {
}
void Session::ResolveProxy(const GURL& url, ResolveProxyCallback callback) {
new ResolveProxyHelper(browser_context_, url, callback);
}
void Session::ClearCache(const net::CompletionCallback& callback) {
BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
base::Bind(&ClearHttpCacheInIO,
base::Unretained(browser_context_),
callback));
}
void Session::ClearStorageData(mate::Arguments* args) {
// clearStorageData([options, ]callback)
ClearStorageDataOptions options;
args->GetNext(&options);
base::Closure callback;
if (!args->GetNext(&callback)) {
args->ThrowError();
return;
}
auto storage_partition =
content::BrowserContext::GetStoragePartition(browser_context_, nullptr);
storage_partition->ClearData(
options.storage_types, options.quota_types, options.origin,
content::StoragePartition::OriginMatcherFunction(),
base::Time(), base::Time::Max(), callback);
}
void Session::SetProxy(const std::string& proxy,
const base::Closure& callback) {
auto getter = browser_context_->GetRequestContext();
BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
base::Bind(&SetProxyInIO, base::Unretained(getter), proxy, callback));
}
void Session::SetDownloadPath(const std::string& path) {
browser_context_->prefs()->SetFilePath(prefs::kDownloadDefaultDirectory,
base::FilePath(path));
}
v8::Local<v8::Value> Session::Cookies(v8::Isolate* isolate) {
if (cookies_.IsEmpty()) {
auto handle = atom::api::Cookies::Create(isolate, browser_context_);
cookies_.Reset(isolate, handle.ToV8());
}
return v8::Local<v8::Value>::New(isolate, cookies_);
}
mate::ObjectTemplateBuilder Session::GetObjectTemplateBuilder(
v8::Isolate* isolate) {
return mate::ObjectTemplateBuilder(isolate)
.SetMethod("resolveProxy", &Session::ResolveProxy)
.SetMethod("clearCache", &Session::ClearCache)
.SetMethod("clearStorageData", &Session::ClearStorageData)
.SetMethod("setProxy", &Session::SetProxy)
.SetMethod("setDownloadPath", &Session::SetDownloadPath)
.SetProperty("cookies", &Session::Cookies);
}
// static
mate::Handle<Session> Session::CreateFrom(
v8::Isolate* isolate,
AtomBrowserContext* browser_context) {
auto existing = TrackableObject::FromWrappedClass(isolate, browser_context);
if (existing)
return mate::CreateHandle(isolate, static_cast<Session*>(existing));
return mate::CreateHandle(isolate, new Session(browser_context));
}
} // namespace api
} // namespace atom
| mit |
Eldohub/internship-portal-laravel | app/Http/Controllers/UserController.php | 2605 | <?php
namespace App\Http\Controllers;
use App\Report;
use App\User;
use Auth;
use DB;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Session;
use Illuminate\Support\Facades\Validator;
class UserController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
/**
* Show the application dashboard.
*/
public function index()
{
$user = User::find(Auth::user()->id);
if ($user->full_name == '')
{
return view('user.complete_profile');
}
else
{
return view('user.entry');
}
}
// Complete account setup by updating the user
public function complete(Request $request)
{
//find logged in user
$user = User::find(Auth::user()->id);
// mass save all input
if ($user->update($request->all()))
{
Session::flash('success','Thank you '.$request->full_name.' for completing your profile.');
}
else
{
Session::flash('error','There was an error and the user information couldnot be saved at moment. Please try again!');
}
return redirect('user/account');
}
// Show the entry form
public function entry()
{
$daily_entry = Report::where('user_id', Auth::user()->id)->whereDate('created_at', DB::raw('CURDATE()'))->get();
//return appropriate view
if ($daily_entry->isEmpty())
{
return view('user.entry');
}
else
{
return view('user.entry_done');
}
}
// Processes the received data
public function postEntry(Request $request)
{
// mass save all input
if (Report::create($request->all()))
{
Session::flash("success","Todays task entry has been recorded. You can track your progress via Milestones tab.");
}
else
{
Session::flash("error","There was an error and the entry could not be saved at moment. Please try again!");
}
return view('user.thankyou');
}
// Show the milestones
public function milestones()
{
$milestones = Report::where('user_id', Auth::user()->id)->orderBy('created_at', 'DESC')->get();
return view('user.milestones')->with(['milestones'=>$milestones]);
}
// Show the graph
public function graph()
{
return view('user.graph');
}
}
| mit |
robertmesserle/angular | modules/playground/src/hash_routing/index.ts | 1201 | import {Component, provide} from 'angular2/core';
import {bootstrap} from 'angular2/platform/browser';
import {RouteConfig, Route, ROUTER_PROVIDERS, ROUTER_DIRECTIVES} from 'angular2/router';
import {HashLocationStrategy, LocationStrategy} from 'angular2/platform/common';
@Component({selector: 'hello-cmp', template: `hello`})
class HelloCmp {
}
@Component({selector: 'goodbye-cmp', template: `goodbye`})
class GoodByeCmp {
}
@Component({
selector: 'example-app',
template: `
<h1>My App</h1>
<nav>
<a href="#/" id="hello-link">Navigate via href</a> |
<a [routerLink]="['/GoodbyeCmp']" id="goodbye-link">Navigate with Link DSL</a>
<a [routerLink]="['/GoodbyeCmp']" id="goodbye-link-blank" target="_blank">
Navigate with Link DSL _blank target
</a>
</nav>
<router-outlet></router-outlet>
`,
directives: [ROUTER_DIRECTIVES]
})
@RouteConfig([
new Route({path: '/', component: HelloCmp, name: 'HelloCmp'}),
new Route({path: '/bye', component: GoodByeCmp, name: 'GoodbyeCmp'})
])
class AppCmp {
}
export function main() {
bootstrap(AppCmp,
[ROUTER_PROVIDERS, provide(LocationStrategy, {useClass: HashLocationStrategy})]);
}
| mit |
arcanoz/child-2.0 | src/qt/locale/bitcoin_el_GR.ts | 137861 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="el_GR" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About child</source>
<translation>Σχετικά με το child</translation>
</message>
<message>
<location line="+39"/>
<source><b>child</b> version</source>
<translation>Έκδοση child</translation>
</message>
<message>
<location line="+57"/>
<source>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source>
<translation>
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php.
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="+14"/>
<source>Copyright</source>
<translation>Πνευματική ιδιοκτησία </translation>
</message>
<message>
<location line="+0"/>
<source>The Child Developers</source>
<translation>Οι child προγραμματιστές </translation>
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>Address Book</source>
<translation>Βιβλίο Διευθύνσεων</translation>
</message>
<message>
<location line="+19"/>
<source>Double-click to edit address or label</source>
<translation>Διπλό-κλικ για επεξεργασία της διεύθυνσης ή της ετικέτας</translation>
</message>
<message>
<location line="+27"/>
<source>Create a new address</source>
<translation>Δημιούργησε νέα διεύθυνση</translation>
</message>
<message>
<location line="+14"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Αντέγραψε την επιλεγμένη διεύθυνση στο πρόχειρο του συστήματος</translation>
</message>
<message>
<location line="-11"/>
<source>&New Address</source>
<translation>&Νέα διεύθυνση</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="+63"/>
<source>These are your child 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>Αυτές είναι οι child διευθύνσεις σας για να λαμβάνετε πληρωμές. Δίνοντας μία ξεχωριστή διεύθυνση σε κάθε αποστολέα, θα μπορείτε να ελέγχετε ποιος σας πληρώνει.</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="+14"/>
<source>&Copy Address</source>
<translation>&Αντιγραφή διεύθυνσης</translation>
</message>
<message>
<location line="+11"/>
<source>Show &QR Code</source>
<translation>Δείξε &QR κωδικα</translation>
</message>
<message>
<location line="+11"/>
<source>Sign a message to prove you own a child address</source>
<translation>Υπογράψτε ένα μήνυμα για ν' αποδείξετε πως σας ανήκει μια συγκεκριμένη διεύθυνση child</translation>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation>&Υπέγραψε το μήνυμα</translation>
</message>
<message>
<location line="+25"/>
<source>Delete the currently selected address from the list</source>
<translation>Αντιγραφη της επιλεγμενης διεύθυνσης στο πρόχειρο του συστηματος</translation>
</message>
<message>
<location line="+27"/>
<source>Export the data in the current tab to a file</source>
<translation>Εξαγωγή δεδομένων καρτέλας σε αρχείο</translation>
</message>
<message>
<location line="+3"/>
<source>&Export</source>
<translation>&Εξαγωγή</translation>
</message>
<message>
<location line="-44"/>
<source>Verify a message to ensure it was signed with a specified child address</source>
<translation>Υπογράψτε ένα μήνυμα για ν' αποδείξετε πως ανήκει μια συγκεκριμένη διεύθυνση child</translation>
</message>
<message>
<location line="+3"/>
<source>&Verify Message</source>
<translation>&Επιβεβαίωση μηνύματος</translation>
</message>
<message>
<location line="+14"/>
<source>&Delete</source>
<translation>&Διαγραφή</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="-5"/>
<source>These are your child addresses for sending payments. Always check the amount and the receiving address before sending coins.</source>
<translation>Αυτές είναι οι child διευθύνσεις σας για να λαμβάνετε πληρωμές. Δίνοντας μία ξεχωριστή διεύθυνση σε κάθε αποστολέα, θα μπορείτε να ελέγχετε ποιος σας πληρώνει.</translation>
</message>
<message>
<location line="+13"/>
<source>Copy &Label</source>
<translation>Αντιγραφή &επιγραφής</translation>
</message>
<message>
<location line="+1"/>
<source>&Edit</source>
<translation>&Επεξεργασία</translation>
</message>
<message>
<location line="+1"/>
<source>Send &Coins</source>
<translation>Αποστολή νομισμάτων</translation>
</message>
<message>
<location line="+260"/>
<source>Export Address Book Data</source>
<translation>Εξαγωγή Δεδομενων Βιβλίου Διευθύνσεων</translation>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Αρχείο οριοθετημένο με κόμματα (*.csv)</translation>
</message>
<message>
<location line="+13"/>
<source>Error exporting</source>
<translation>Εξαγωγή λαθών</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>Αδυναμία εγγραφής στο αρχείο %1.</translation>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="+144"/>
<source>Label</source>
<translation>Ετικέτα</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Διεύθυνση</translation>
</message>
<message>
<location line="+36"/>
<source>(no label)</source>
<translation>(χωρίς ετικέτα)</translation>
</message>
</context>
<context>
<name>AskPassphraseDialog</name>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="+26"/>
<source>Passphrase Dialog</source>
<translation>Φράση πρόσβασης </translation>
</message>
<message>
<location line="+21"/>
<source>Enter passphrase</source>
<translation>Βάλτε κωδικό πρόσβασης</translation>
</message>
<message>
<location line="+14"/>
<source>New passphrase</source>
<translation>Νέος κωδικός πρόσβασης</translation>
</message>
<message>
<location line="+14"/>
<source>Repeat new passphrase</source>
<translation>Επανέλαβε τον νέο κωδικό πρόσβασης</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="+33"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation>Εισάγετε τον νέο κωδικό πρόσβασης στον πορτοφόλι <br/> Παρακαλώ χρησιμοποιείστε ένα κωδικό με <b> 10 ή περισσότερους τυχαίους χαρακτήρες</b> ή <b> οχτώ ή παραπάνω λέξεις</b>.</translation>
</message>
<message>
<location line="+1"/>
<source>Encrypt wallet</source>
<translation>Κρυπτογράφησε το πορτοφόλι</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>Αυτη η ενεργεία χρειάζεται τον κωδικό του πορτοφολιού για να ξεκλειδώσει το πορτοφόλι.</translation>
</message>
<message>
<location line="+5"/>
<source>Unlock wallet</source>
<translation>Ξεκλειδωσε το πορτοφολι</translation>
</message>
<message>
<location line="+3"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>Αυτη η ενεργεια χρειάζεται τον κωδικο του πορτοφολιου για να αποκρυπτογραφησειι το πορτοφολι.</translation>
</message>
<message>
<location line="+5"/>
<source>Decrypt wallet</source>
<translation>Αποκρυπτογράφησε το πορτοφολι</translation>
</message>
<message>
<location line="+3"/>
<source>Change passphrase</source>
<translation>Άλλαξε κωδικο πρόσβασης</translation>
</message>
<message>
<location line="+1"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>Εισάγετε τον παλιό και τον νεο κωδικο στο πορτοφολι.</translation>
</message>
<message>
<location line="+46"/>
<source>Confirm wallet encryption</source>
<translation>Επιβεβαίωσε την κρυπτογραφηση του πορτοφολιού</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR DARKCOINS</b>!</source>
<translation>Προσοχη: Εαν κρυπτογραφησεις το πορτοφολι σου και χάσεις τον κωδικο σου θα χάσεις <b> ΟΛΑ ΣΟΥ ΤΑ DARKCOINS</b>!
Είσαι σίγουρος ότι θέλεις να κρυπτογραφησεις το πορτοφολι;</translation>
</message>
<message>
<location line="+0"/>
<source>Are you sure you wish to encrypt your wallet?</source>
<translation>Είστε σίγουροι ότι θέλετε να κρυπτογραφήσετε το πορτοφόλι σας;</translation>
</message>
<message>
<location line="+15"/>
<source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source>
<translation>ΣΗΜΑΝΤΙΚΟ: Τα προηγούμενα αντίγραφα ασφαλείας που έχετε κάνει από το αρχείο του πορτοφόλιου σας θα πρέπει να αντικατασταθουν με το νέο που δημιουργείται, κρυπτογραφημένο αρχείο πορτοφόλιου. Για λόγους ασφαλείας, τα προηγούμενα αντίγραφα ασφαλείας του μη κρυπτογραφημένου αρχείου πορτοφόλιου θα καταστουν άχρηστα μόλις αρχίσετε να χρησιμοποιείτε το νέο κρυπτογραφημένο πορτοφόλι. </translation>
</message>
<message>
<location line="+100"/>
<location line="+24"/>
<source>Warning: The Caps Lock key is on!</source>
<translation>Προσοχη: το πλήκτρο Caps Lock είναι ενεργο.</translation>
</message>
<message>
<location line="-130"/>
<location line="+58"/>
<source>Wallet encrypted</source>
<translation>Κρυπτογραφημενο πορτοφολι</translation>
</message>
<message>
<location line="-56"/>
<source>child will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your childs from being stolen by malware infecting your computer.</source>
<translation>Το child θα κλεισει τώρα για να τελειώσει την διαδικασία κρυπτογραφησης. Θυμησου ότι κρυπτογραφώντας το πορτοφολι σου δεν μπορείς να προστατέψεις πλήρως τα childs σου από κλοπή στην περίπτωση όπου μολυνθεί ο υπολογιστής σου με κακόβουλο λογισμικο.</translation>
</message>
<message>
<location line="+13"/>
<location line="+7"/>
<location line="+42"/>
<location line="+6"/>
<source>Wallet encryption failed</source>
<translation>Η κρυπτογραφηση του πορτοφολιού απέτυχε</translation>
</message>
<message>
<location line="-54"/>
<source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source>
<translation>Η κρυπτογράφηση του πορτοφολιού απέτυχε λογω εσωτερικού σφάλματος. Το πορτοφολι δεν κρυπτογραφηθηκε.</translation>
</message>
<message>
<location line="+7"/>
<location line="+48"/>
<source>The supplied passphrases do not match.</source>
<translation>Οι εισαχθέντες κωδικοί δεν ταιριάζουν.</translation>
</message>
<message>
<location line="-37"/>
<source>Wallet unlock failed</source>
<translation>το ξεκλείδωμα του πορτοφολιού απέτυχε</translation>
</message>
<message>
<location line="+1"/>
<location line="+11"/>
<location line="+19"/>
<source>The passphrase entered for the wallet decryption was incorrect.</source>
<translation>Ο κωδικος που εισήχθη για την αποκρυπτογραφηση του πορτοφολιού ήταν λαθος.</translation>
</message>
<message>
<location line="-20"/>
<source>Wallet decryption failed</source>
<translation>Η αποκρυπτογραφηση του πορτοφολιού απέτυχε</translation>
</message>
<message>
<location line="+14"/>
<source>Wallet passphrase was successfully changed.</source>
<translation>Ο κωδικος του πορτοφολιού άλλαξε με επιτυχία.</translation>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="+233"/>
<source>Sign &message...</source>
<translation>Υπογραφή &Μηνύματος...</translation>
</message>
<message>
<location line="+280"/>
<source>Synchronizing with network...</source>
<translation>Συγχρονισμός με το δίκτυο...</translation>
</message>
<message>
<location line="-349"/>
<source>&Overview</source>
<translation>&Επισκόπηση</translation>
</message>
<message>
<location line="+1"/>
<source>Show general overview of wallet</source>
<translation>Εμφάνισε γενική εικονα του πορτοφολιού</translation>
</message>
<message>
<location line="+20"/>
<source>&Transactions</source>
<translation>&Συναλλαγές</translation>
</message>
<message>
<location line="+1"/>
<source>Browse transaction history</source>
<translation>Περιήγηση στο ιστορικο συνναλαγων</translation>
</message>
<message>
<location line="+7"/>
<source>Edit the list of stored addresses and labels</source>
<translation>Εξεργασια της λιστας των αποθηκευμενων διευθύνσεων και ετικετων</translation>
</message>
<message>
<location line="-14"/>
<source>Show the list of addresses for receiving payments</source>
<translation>Εμφάνισε την λίστα των διευθύνσεων για την παραλαβή πληρωμων</translation>
</message>
<message>
<location line="+31"/>
<source>E&xit</source>
<translation>Έ&ξοδος</translation>
</message>
<message>
<location line="+1"/>
<source>Quit application</source>
<translation>Εξοδος από την εφαρμογή</translation>
</message>
<message>
<location line="+4"/>
<source>Show information about child</source>
<translation>Εμφάνισε πληροφορίες σχετικά με το child</translation>
</message>
<message>
<location line="+2"/>
<source>About &Qt</source>
<translation>Σχετικά με &Qt</translation>
</message>
<message>
<location line="+1"/>
<source>Show information about Qt</source>
<translation>Εμφάνισε πληροφορίες σχετικά με Qt</translation>
</message>
<message>
<location line="+2"/>
<source>&Options...</source>
<translation>&Επιλογές...</translation>
</message>
<message>
<location line="+6"/>
<source>&Encrypt Wallet...</source>
<translation>&Κρυπτογράφησε το πορτοφόλι</translation>
</message>
<message>
<location line="+3"/>
<source>&Backup Wallet...</source>
<translation>&Αντίγραφο ασφαλείας του πορτοφολιού</translation>
</message>
<message>
<location line="+2"/>
<source>&Change Passphrase...</source>
<translation>&Άλλαξε κωδικο πρόσβασης</translation>
</message>
<message>
<location line="+285"/>
<source>Importing blocks from disk...</source>
<translation>Εισαγωγή μπλοκ από τον σκληρο δίσκο ... </translation>
</message>
<message>
<location line="+3"/>
<source>Reindexing blocks on disk...</source>
<translation>Φόρτωση ευρετηρίου μπλοκ στον σκληρο δισκο...</translation>
</message>
<message>
<location line="-347"/>
<source>Send coins to a child address</source>
<translation>Στείλε νομισματα σε μια διεύθυνση child</translation>
</message>
<message>
<location line="+49"/>
<source>Modify configuration options for child</source>
<translation>Επεργασία ρυθμισεων επιλογών για το child</translation>
</message>
<message>
<location line="+9"/>
<source>Backup wallet to another location</source>
<translation>Δημιουργία αντιγράφου ασφαλείας πορτοφολιού σε άλλη τοποθεσία</translation>
</message>
<message>
<location line="+2"/>
<source>Change the passphrase used for wallet encryption</source>
<translation>Αλλαγή του κωδικού κρυπτογράφησης του πορτοφολιού</translation>
</message>
<message>
<location line="+6"/>
<source>&Debug window</source>
<translation>&Παράθυρο αποσφαλμάτωσης</translation>
</message>
<message>
<location line="+1"/>
<source>Open debugging and diagnostic console</source>
<translation>Άνοιγμα κονσόλας αποσφαλμάτωσης και διαγνωστικών</translation>
</message>
<message>
<location line="-4"/>
<source>&Verify message...</source>
<translation>&Επιβεβαίωση μηνύματος</translation>
</message>
<message>
<location line="-165"/>
<location line="+530"/>
<source>child</source>
<translation>child</translation>
</message>
<message>
<location line="-530"/>
<source>Wallet</source>
<translation>Πορτοφόλι</translation>
</message>
<message>
<location line="+101"/>
<source>&Send</source>
<translation>&Αποστολή</translation>
</message>
<message>
<location line="+7"/>
<source>&Receive</source>
<translation>&Παραλαβή </translation>
</message>
<message>
<location line="+14"/>
<source>&Addresses</source>
<translation>&Διεύθυνσεις</translation>
</message>
<message>
<location line="+22"/>
<source>&About child</source>
<translation>&Σχετικα:child</translation>
</message>
<message>
<location line="+9"/>
<source>&Show / Hide</source>
<translation>&Εμφάνισε/Κρύψε</translation>
</message>
<message>
<location line="+1"/>
<source>Show or hide the main Window</source>
<translation>Εμφάνιση ή αποκρύψη του κεντρικου παράθυρου </translation>
</message>
<message>
<location line="+3"/>
<source>Encrypt the private keys that belong to your wallet</source>
<translation>Κρυπτογραφήστε τα ιδιωτικά κλειδιά που ανήκουν στο πορτοφόλι σας </translation>
</message>
<message>
<location line="+7"/>
<source>Sign messages with your child addresses to prove you own them</source>
<translation>Υπογράψτε ένα μήνυμα για να βεβαιώσετε πως είστε ο κάτοχος αυτής της διεύθυνσης</translation>
</message>
<message>
<location line="+2"/>
<source>Verify messages to ensure they were signed with specified child addresses</source>
<translation>Υπογράψτε ένα μήνυμα για ν' αποδείξετε πως ανήκει μια συγκεκριμένη διεύθυνση child</translation>
</message>
<message>
<location line="+28"/>
<source>&File</source>
<translation>&Αρχείο</translation>
</message>
<message>
<location line="+7"/>
<source>&Settings</source>
<translation>&Ρυθμίσεις</translation>
</message>
<message>
<location line="+6"/>
<source>&Help</source>
<translation>&Βοήθεια</translation>
</message>
<message>
<location line="+9"/>
<source>Tabs toolbar</source>
<translation>Εργαλειοθήκη καρτελών</translation>
</message>
<message>
<location line="+17"/>
<location line="+10"/>
<source>[testnet]</source>
<translation>[testnet]</translation>
</message>
<message>
<location line="+47"/>
<source>child client</source>
<translation>Πελάτης child</translation>
</message>
<message numerus="yes">
<location line="+141"/>
<source>%n active connection(s) to child network</source>
<translation><numerusform>%n ενεργή σύνδεση στο δίκτυο child</numerusform><numerusform>%n ενεργές συνδέσεις στο δίκτυο Βitcoin</numerusform></translation>
</message>
<message>
<location line="+22"/>
<source>No block source available...</source>
<translation>Η πηγή του μπλοκ δεν ειναι διαθέσιμη... </translation>
</message>
<message>
<location line="+12"/>
<source>Processed %1 of %2 (estimated) blocks of transaction history.</source>
<translation>Μεταποιημένα %1 απο % 2 (κατ 'εκτίμηση) μπλοκ της ιστορίας της συναλλαγής. </translation>
</message>
<message>
<location line="+4"/>
<source>Processed %1 blocks of transaction history.</source>
<translation>Έγινε λήψη %1 μπλοκ ιστορικού συναλλαγών</translation>
</message>
<message numerus="yes">
<location line="+20"/>
<source>%n hour(s)</source>
<translation><numerusform>%n ώρες </numerusform><numerusform>%n ώρες </numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n day(s)</source>
<translation><numerusform>%n ημέρες </numerusform><numerusform>%n ημέρες </numerusform></translation>
</message>
<message numerus="yes">
<location line="+4"/>
<source>%n week(s)</source>
<translation><numerusform>%n εβδομαδες</numerusform><numerusform>%n εβδομαδες</numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>%1 behind</source>
<translation>%1 πίσω</translation>
</message>
<message>
<location line="+14"/>
<source>Last received block was generated %1 ago.</source>
<translation>Το τελευταίο μπλοκ που ελήφθη δημιουργήθηκε %1 πριν.</translation>
</message>
<message>
<location line="+2"/>
<source>Transactions after this will not yet be visible.</source>
<translation>Οι συναλλαγές μετά από αυτό δεν θα είναι ακόμη ορατες.</translation>
</message>
<message>
<location line="+22"/>
<source>Error</source>
<translation>Σφάλμα</translation>
</message>
<message>
<location line="+3"/>
<source>Warning</source>
<translation>Προειδοποίηση</translation>
</message>
<message>
<location line="+3"/>
<source>Information</source>
<translation>Πληροφορία</translation>
</message>
<message>
<location line="+70"/>
<source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source>
<translation>Η συναλλαγή ξεπερνάει το όριο.
Μπορεί να ολοκληρωθεί με μια αμοιβή των %1, η οποία αποδίδεται στους κόμβους που επεξεργάζονται τις συναλλαγές και βοηθούν στην υποστήριξη του δικτύου.
Θέλετε να συνεχίσετε;</translation>
</message>
<message>
<location line="-140"/>
<source>Up to date</source>
<translation>Ενημερωμένο</translation>
</message>
<message>
<location line="+31"/>
<source>Catching up...</source>
<translation>Ενημέρωση...</translation>
</message>
<message>
<location line="+113"/>
<source>Confirm transaction fee</source>
<translation>Επιβεβαίωση αμοιβής συναλλαγής</translation>
</message>
<message>
<location line="+8"/>
<source>Sent transaction</source>
<translation>Η συναλλαγή απεστάλη</translation>
</message>
<message>
<location line="+0"/>
<source>Incoming transaction</source>
<translation>Εισερχόμενη συναλλαγή</translation>
</message>
<message>
<location line="+1"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation>Ημερομηνία: %1
Ποσό: %2
Τύπος: %3
Διεύθυνση: %4
</translation>
</message>
<message>
<location line="+33"/>
<location line="+23"/>
<source>URI handling</source>
<translation>Χειρισμός URI</translation>
</message>
<message>
<location line="-23"/>
<location line="+23"/>
<source>URI can not be parsed! This can be caused by an invalid child address or malformed URI parameters.</source>
<translation>Το URI δεν μπορεί να αναλυθεί! Αυτό μπορεί να προκληθεί από μια μη έγκυρη διεύθυνση child ή ακατάλληλη παραμέτρο URI.</translation>
</message>
<message>
<location line="+17"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>Το πορτοφόλι είναι <b>κρυπτογραφημένο</b> και <b>ξεκλείδωτο</b></translation>
</message>
<message>
<location line="+8"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>Το πορτοφόλι είναι <b>κρυπτογραφημένο</b> και <b>κλειδωμένο</b></translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="+111"/>
<source>A fatal error occurred. child can no longer continue safely and will quit.</source>
<translation>Παρουσιάστηκε ανεπανόρθωτο σφάλμα. Το child δεν μπορεί πλέον να συνεχίσει με ασφάλεια και θα τερματισθει.</translation>
</message>
</context>
<context>
<name>ClientModel</name>
<message>
<location filename="../clientmodel.cpp" line="+104"/>
<source>Network Alert</source>
<translation>Ειδοποίηση Δικτύου</translation>
</message>
</context>
<context>
<name>EditAddressDialog</name>
<message>
<location filename="../forms/editaddressdialog.ui" line="+14"/>
<source>Edit Address</source>
<translation>Επεξεργασία Διεύθυνσης</translation>
</message>
<message>
<location line="+11"/>
<source>&Label</source>
<translation>&Επιγραφή</translation>
</message>
<message>
<location line="+10"/>
<source>The label associated with this address book entry</source>
<translation>Η επιγραφή που σχετίζεται με αυτή την καταχώρηση του βιβλίου διευθύνσεων</translation>
</message>
<message>
<location line="+7"/>
<source>&Address</source>
<translation>&Διεύθυνση</translation>
</message>
<message>
<location line="+10"/>
<source>The address associated with this address book entry. This can only be modified for sending addresses.</source>
<translation>Η διεύθυνση που σχετίζεται με αυτή την καταχώρηση του βιβλίου διευθύνσεων. Μπορεί να τροποποιηθεί μόνο για τις διευθύνσεις αποστολής.</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="+21"/>
<source>New receiving address</source>
<translation>Νέα διεύθυνση λήψης</translation>
</message>
<message>
<location line="+4"/>
<source>New sending address</source>
<translation>Νέα διεύθυνση αποστολής</translation>
</message>
<message>
<location line="+3"/>
<source>Edit receiving address</source>
<translation>Επεξεργασία διεύθυνσης λήψης</translation>
</message>
<message>
<location line="+4"/>
<source>Edit sending address</source>
<translation>Επεξεργασία διεύθυνσης αποστολής</translation>
</message>
<message>
<location line="+76"/>
<source>The entered address "%1" is already in the address book.</source>
<translation>Η διεύθυνση "%1" βρίσκεται ήδη στο βιβλίο διευθύνσεων.</translation>
</message>
<message>
<location line="-5"/>
<source>The entered address "%1" is not a valid child address.</source>
<translation>Η διεύθυνση "%1" δεν είναι έγκυρη child διεύθυνση.</translation>
</message>
<message>
<location line="+10"/>
<source>Could not unlock wallet.</source>
<translation>Δεν είναι δυνατό το ξεκλείδωμα του πορτοφολιού.</translation>
</message>
<message>
<location line="+5"/>
<source>New key generation failed.</source>
<translation>Η δημιουργία νέου κλειδιού απέτυχε.</translation>
</message>
</context>
<context>
<name>GUIUtil::HelpMessageBox</name>
<message>
<location filename="../guiutil.cpp" line="+424"/>
<location line="+12"/>
<source>child-Qt</source>
<translation>child-qt</translation>
</message>
<message>
<location line="-12"/>
<source>version</source>
<translation>έκδοση</translation>
</message>
<message>
<location line="+2"/>
<source>Usage:</source>
<translation>Χρήση:</translation>
</message>
<message>
<location line="+1"/>
<source>command-line options</source>
<translation>επιλογής γραμμής εντολών</translation>
</message>
<message>
<location line="+4"/>
<source>UI options</source>
<translation>επιλογές UI</translation>
</message>
<message>
<location line="+1"/>
<source>Set language, for example "de_DE" (default: system locale)</source>
<translation>Όρισε γλώσσα, για παράδειγμα "de_DE"(προεπιλογή:τοπικές ρυθμίσεις)</translation>
</message>
<message>
<location line="+1"/>
<source>Start minimized</source>
<translation>Έναρξη ελαχιστοποιημένο</translation>
</message>
<message>
<location line="+1"/>
<source>Show splash screen on startup (default: 1)</source>
<translation>Εμφάνισε την οθόνη εκκίνησης κατά την εκκίνηση(προεπιλογή:1)</translation>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../forms/optionsdialog.ui" line="+14"/>
<source>Options</source>
<translation>Ρυθμίσεις</translation>
</message>
<message>
<location line="+16"/>
<source>&Main</source>
<translation>&Κύριο</translation>
</message>
<message>
<location line="+6"/>
<source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB.</source>
<translation>Η προαιρετική αμοιβή για κάθε kB επισπεύδει την επεξεργασία των συναλλαγών σας. Οι περισσότερες συναλλαγές είναι 1 kB. </translation>
</message>
<message>
<location line="+15"/>
<source>Pay transaction &fee</source>
<translation>Αμοιβή &συναλλαγής</translation>
</message>
<message>
<location line="+31"/>
<source>Automatically start child after logging in to the system.</source>
<translation>Αυτόματη εκκίνηση του child μετά την εισαγωγή στο σύστημα</translation>
</message>
<message>
<location line="+3"/>
<source>&Start child on system login</source>
<translation>&Έναρξη του Βιtcoin κατά την εκκίνηση του συστήματος</translation>
</message>
<message>
<location line="+35"/>
<source>Reset all client options to default.</source>
<translation>Επαναφορα όλων των επιλογων του πελάτη σε default.</translation>
</message>
<message>
<location line="+3"/>
<source>&Reset Options</source>
<translation>Επαναφορα ρυθμίσεων</translation>
</message>
<message>
<location line="+13"/>
<source>&Network</source>
<translation>&Δίκτυο</translation>
</message>
<message>
<location line="+6"/>
<source>Automatically open the child client port on the router. This only works when your router supports UPnP and it is enabled.</source>
<translation>Αυτόματο άνοιγμα των θυρών child στον δρομολογητή. Λειτουργεί μόνο αν ο δρομολογητής σας υποστηρίζει τη λειτουργία UPnP.</translation>
</message>
<message>
<location line="+3"/>
<source>Map port using &UPnP</source>
<translation>Απόδοση θυρών με χρήστη &UPnP</translation>
</message>
<message>
<location line="+7"/>
<source>Connect to the child network through a SOCKS proxy (e.g. when connecting through Tor).</source>
<translation>Σύνδεση στο child δίκτυο μέσω διαμεσολαβητή SOCKS4 (π.χ. για σύνδεση μέσω Tor)</translation>
</message>
<message>
<location line="+3"/>
<source>&Connect through SOCKS proxy:</source>
<translation>&Σύνδεση μέσω διαμεσολαβητή SOCKS</translation>
</message>
<message>
<location line="+9"/>
<source>Proxy &IP:</source>
<translation>&IP διαμεσολαβητή:</translation>
</message>
<message>
<location line="+19"/>
<source>IP address of the proxy (e.g. 127.0.0.1)</source>
<translation>Διεύθυνση IP του διαμεσολαβητή (π.χ. 127.0.0.1)</translation>
</message>
<message>
<location line="+7"/>
<source>&Port:</source>
<translation>&Θύρα:</translation>
</message>
<message>
<location line="+19"/>
<source>Port of the proxy (e.g. 9050)</source>
<translation>Θύρα διαμεσολαβητή</translation>
</message>
<message>
<location line="+7"/>
<source>SOCKS &Version:</source>
<translation>SOCKS &Έκδοση:</translation>
</message>
<message>
<location line="+13"/>
<source>SOCKS version of the proxy (e.g. 5)</source>
<translation>SOCKS εκδοση του διαμεσολαβητη (e.g. 5)</translation>
</message>
<message>
<location line="+36"/>
<source>&Window</source>
<translation>&Παράθυρο</translation>
</message>
<message>
<location line="+6"/>
<source>Show only a tray icon after minimizing the window.</source>
<translation>Εμφάνιση μόνο εικονιδίου στην περιοχή ειδοποιήσεων κατά την ελαχιστοποίηση</translation>
</message>
<message>
<location line="+3"/>
<source>&Minimize to the tray instead of the taskbar</source>
<translation>&Ελαχιστοποίηση στην περιοχή ειδοποιήσεων αντί της γραμμής εργασιών</translation>
</message>
<message>
<location line="+7"/>
<source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source>
<translation>Ελαχιστοποίηση αντί για έξοδο κατά το κλείσιμο του παραθύρου</translation>
</message>
<message>
<location line="+3"/>
<source>M&inimize on close</source>
<translation>Ε&λαχιστοποίηση κατά το κλείσιμο</translation>
</message>
<message>
<location line="+21"/>
<source>&Display</source>
<translation>%Απεικόνιση</translation>
</message>
<message>
<location line="+8"/>
<source>User Interface &language:</source>
<translation>Γλώσσα περιβάλλοντος εργασίας: </translation>
</message>
<message>
<location line="+13"/>
<source>The user interface language can be set here. This setting will take effect after restarting child.</source>
<translation>Εδώ μπορεί να ρυθμιστεί η γλώσσα διεπαφής χρήστη. Αυτή η ρύθμιση θα ισχύσει μετά την επανεκκίνηση του child.</translation>
</message>
<message>
<location line="+11"/>
<source>&Unit to show amounts in:</source>
<translation>&Μονάδα μέτρησης:</translation>
</message>
<message>
<location line="+13"/>
<source>Choose the default subdivision unit to show in the interface and when sending coins.</source>
<translation>Διαλέξτε την προεπιλεγμένη υποδιαίρεση που θα εμφανίζεται όταν στέλνετε νομίσματα.</translation>
</message>
<message>
<location line="+9"/>
<source>Whether to show child addresses in the transaction list or not.</source>
<translation>Επιλέξτε αν θέλετε να εμφανίζονται οι διευθύνσεις child στη λίστα συναλλαγών.</translation>
</message>
<message>
<location line="+3"/>
<source>&Display addresses in transaction list</source>
<translation>Εμφάνιση διευθύνσεων στη λίστα συναλλαγών</translation>
</message>
<message>
<location line="+71"/>
<source>&OK</source>
<translation>&ΟΚ</translation>
</message>
<message>
<location line="+7"/>
<source>&Cancel</source>
<translation>&Ακύρωση</translation>
</message>
<message>
<location line="+10"/>
<source>&Apply</source>
<translation>&Εφαρμογή</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="+53"/>
<source>default</source>
<translation>προεπιλογή</translation>
</message>
<message>
<location line="+130"/>
<source>Confirm options reset</source>
<translation>Επιβεβαιώση των επιλογων επαναφοράς </translation>
</message>
<message>
<location line="+1"/>
<source>Some settings may require a client restart to take effect.</source>
<translation>Για ορισμένες ρυθμίσεις πρεπει η επανεκκίνηση να τεθεί σε ισχύ.</translation>
</message>
<message>
<location line="+0"/>
<source>Do you want to proceed?</source>
<translation>Θέλετε να προχωρήσετε;</translation>
</message>
<message>
<location line="+42"/>
<location line="+9"/>
<source>Warning</source>
<translation>Προειδοποίηση</translation>
</message>
<message>
<location line="-9"/>
<location line="+9"/>
<source>This setting will take effect after restarting child.</source>
<translation>Αυτή η ρύθμιση θα ισχύσει μετά την επανεκκίνηση του child.</translation>
</message>
<message>
<location line="+29"/>
<source>The supplied proxy address is invalid.</source>
<translation>Δεν είναι έγκυρη η διεύθυνση διαμεσολαβητή</translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="+14"/>
<source>Form</source>
<translation>Φόρμα</translation>
</message>
<message>
<location line="+50"/>
<location line="+166"/>
<source>The displayed information may be out of date. Your wallet automatically synchronizes with the child network after a connection is established, but this process has not completed yet.</source>
<translation>Οι πληροφορίες που εμφανίζονται μπορεί να είναι ξεπερασμένες. Το πορτοφόλι σας συγχρονίζεται αυτόματα με το δίκτυο child μετά από μια σύνδεση, αλλά αυτή η διαδικασία δεν έχει ακόμη ολοκληρωθεί. </translation>
</message>
<message>
<location line="-124"/>
<source>Balance:</source>
<translation>Υπόλοιπο</translation>
</message>
<message>
<location line="+29"/>
<source>Unconfirmed:</source>
<translation>Ανεπιβεβαίωτες</translation>
</message>
<message>
<location line="-78"/>
<source>Wallet</source>
<translation>Πορτοφόλι</translation>
</message>
<message>
<location line="+107"/>
<source>Immature:</source>
<translation>Ανώριμος</translation>
</message>
<message>
<location line="+13"/>
<source>Mined balance that has not yet matured</source>
<translation>Εξορυγμενο υπόλοιπο που δεν έχει ακόμα ωριμάσει </translation>
</message>
<message>
<location line="+46"/>
<source><b>Recent transactions</b></source>
<translation><b>Πρόσφατες συναλλαγές</b></translation>
</message>
<message>
<location line="-101"/>
<source>Your current balance</source>
<translation>Το τρέχον υπόλοιπο</translation>
</message>
<message>
<location line="+29"/>
<source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source>
<translation>Το άθροισμα των συναλλαγών που δεν έχουν ακόμα επιβεβαιωθεί και δεν προσμετρώνται στο τρέχον υπόλοιπό σας</translation>
</message>
<message>
<location filename="../overviewpage.cpp" line="+116"/>
<location line="+1"/>
<source>out of sync</source>
<translation>εκτός συγχρονισμού</translation>
</message>
</context>
<context>
<name>PaymentServer</name>
<message>
<location filename="../paymentserver.cpp" line="+107"/>
<source>Cannot start child: click-to-pay handler</source>
<translation>Δεν είναι δυνατή η εκκίνηση του child: click-to-pay handler</translation>
</message>
</context>
<context>
<name>QRCodeDialog</name>
<message>
<location filename="../forms/qrcodedialog.ui" line="+14"/>
<source>QR Code Dialog</source>
<translation>Κώδικας QR</translation>
</message>
<message>
<location line="+59"/>
<source>Request Payment</source>
<translation>Αίτηση πληρωμής</translation>
</message>
<message>
<location line="+56"/>
<source>Amount:</source>
<translation>Ποσό:</translation>
</message>
<message>
<location line="-44"/>
<source>Label:</source>
<translation>Επιγραφή:</translation>
</message>
<message>
<location line="+19"/>
<source>Message:</source>
<translation>Μήνυμα:</translation>
</message>
<message>
<location line="+71"/>
<source>&Save As...</source>
<translation>&Αποθήκευση ως...</translation>
</message>
<message>
<location filename="../qrcodedialog.cpp" line="+62"/>
<source>Error encoding URI into QR Code.</source>
<translation>Σφάλμα κατά την κωδικοποίηση του URI σε κώδικα QR</translation>
</message>
<message>
<location line="+40"/>
<source>The entered amount is invalid, please check.</source>
<translation>Το αναγραφόμενο ποσό δεν είναι έγκυρο, παρακαλούμε να το ελέγξετε.</translation>
</message>
<message>
<location line="+23"/>
<source>Resulting URI too long, try to reduce the text for label / message.</source>
<translation>Το αποτέλεσμα της διεύθυνσης είναι πολύ μεγάλο. Μειώστε το μέγεθος για το κείμενο της ετικέτας/ μηνύματος.</translation>
</message>
<message>
<location line="+25"/>
<source>Save QR Code</source>
<translation>Αποθήκευση κώδικα QR</translation>
</message>
<message>
<location line="+0"/>
<source>PNG Images (*.png)</source>
<translation>Εικόνες PNG (*.png)</translation>
</message>
</context>
<context>
<name>RPCConsole</name>
<message>
<location filename="../forms/rpcconsole.ui" line="+46"/>
<source>Client name</source>
<translation>Όνομα Πελάτη</translation>
</message>
<message>
<location line="+10"/>
<location line="+23"/>
<location line="+26"/>
<location line="+23"/>
<location line="+23"/>
<location line="+36"/>
<location line="+53"/>
<location line="+23"/>
<location line="+23"/>
<location filename="../rpcconsole.cpp" line="+339"/>
<source>N/A</source>
<translation>Μη διαθέσιμο</translation>
</message>
<message>
<location line="-217"/>
<source>Client version</source>
<translation>Έκδοση Πελάτη</translation>
</message>
<message>
<location line="-45"/>
<source>&Information</source>
<translation>&Πληροφορία</translation>
</message>
<message>
<location line="+68"/>
<source>Using OpenSSL version</source>
<translation>Χρησιμοποιηση της OpenSSL εκδοσης</translation>
</message>
<message>
<location line="+49"/>
<source>Startup time</source>
<translation>Χρόνος εκκίνησης</translation>
</message>
<message>
<location line="+29"/>
<source>Network</source>
<translation>Δίκτυο</translation>
</message>
<message>
<location line="+7"/>
<source>Number of connections</source>
<translation>Αριθμός συνδέσεων</translation>
</message>
<message>
<location line="+23"/>
<source>On testnet</source>
<translation>Στο testnet</translation>
</message>
<message>
<location line="+23"/>
<source>Block chain</source>
<translation>αλυσίδα εμποδισμού</translation>
</message>
<message>
<location line="+7"/>
<source>Current number of blocks</source>
<translation>Τρέχον αριθμός μπλοκ</translation>
</message>
<message>
<location line="+23"/>
<source>Estimated total blocks</source>
<translation>Κατ' εκτίμηση συνολικά μπλοκς</translation>
</message>
<message>
<location line="+23"/>
<source>Last block time</source>
<translation>Χρόνος τελευταίου μπλοκ</translation>
</message>
<message>
<location line="+52"/>
<source>&Open</source>
<translation>&Άνοιγμα</translation>
</message>
<message>
<location line="+16"/>
<source>Command-line options</source>
<translation>επιλογής γραμμής εντολών</translation>
</message>
<message>
<location line="+7"/>
<source>Show the child-Qt help message to get a list with possible child command-line options.</source>
<translation>Εμφανιση του child-Qt μήνυματος βοήθειας για να πάρετε μια λίστα με τις πιθανές επιλογές child γραμμής εντολών.</translation>
</message>
<message>
<location line="+3"/>
<source>&Show</source>
<translation>&Εμφάνιση</translation>
</message>
<message>
<location line="+24"/>
<source>&Console</source>
<translation>&Κονσόλα</translation>
</message>
<message>
<location line="-260"/>
<source>Build date</source>
<translation>Ημερομηνία κατασκευής</translation>
</message>
<message>
<location line="-104"/>
<source>child - Debug window</source>
<translation>child - Παράθυρο αποσφαλμάτωσης</translation>
</message>
<message>
<location line="+25"/>
<source>child Core</source>
<translation>child Core</translation>
</message>
<message>
<location line="+279"/>
<source>Debug log file</source>
<translation>Αρχείο καταγραφής εντοπισμού σφαλμάτων </translation>
</message>
<message>
<location line="+7"/>
<source>Open the child debug log file from the current data directory. This can take a few seconds for large log files.</source>
<translation>Ανοίξτε το αρχείο καταγραφής εντοπισμού σφαλμάτων από τον τρέχοντα κατάλογο δεδομένων. Αυτό μπορεί να πάρει μερικά δευτερόλεπτα για τα μεγάλα αρχεία καταγραφής. </translation>
</message>
<message>
<location line="+102"/>
<source>Clear console</source>
<translation>Καθαρισμός κονσόλας</translation>
</message>
<message>
<location filename="../rpcconsole.cpp" line="-30"/>
<source>Welcome to the child RPC console.</source>
<translation>Καλώς ήρθατε στην child RPC κονσόλα.</translation>
</message>
<message>
<location line="+1"/>
<source>Use up and down arrows to navigate history, and <b>Ctrl-L</b> to clear screen.</source>
<translation>Χρησιμοποιήστε το πάνω και κάτω βέλος για να περιηγηθείτε στο ιστορικο, και <b>Ctrl-L</b> για εκκαθαριση οθονης.</translation>
</message>
<message>
<location line="+1"/>
<source>Type <b>help</b> for an overview of available commands.</source>
<translation>Γράψτε <b>βοήθεια</b> για μια επισκόπηση των διαθέσιμων εντολών</translation>
</message>
</context>
<context>
<name>SendCoinsDialog</name>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="+14"/>
<location filename="../sendcoinsdialog.cpp" line="+124"/>
<location line="+5"/>
<location line="+5"/>
<location line="+5"/>
<location line="+6"/>
<location line="+5"/>
<location line="+5"/>
<source>Send Coins</source>
<translation>Αποστολή νομισμάτων</translation>
</message>
<message>
<location line="+50"/>
<source>Send to multiple recipients at once</source>
<translation>Αποστολή σε πολλούς αποδέκτες ταυτόχρονα</translation>
</message>
<message>
<location line="+3"/>
<source>Add &Recipient</source>
<translation>&Προσθήκη αποδέκτη</translation>
</message>
<message>
<location line="+20"/>
<source>Remove all transaction fields</source>
<translation>Διαγραφή όλων των πεδίων συναλλαγής</translation>
</message>
<message>
<location line="+3"/>
<source>Clear &All</source>
<translation>Καθαρισμός &Όλων</translation>
</message>
<message>
<location line="+22"/>
<source>Balance:</source>
<translation>Υπόλοιπο:</translation>
</message>
<message>
<location line="+10"/>
<source>123.456 BTC</source>
<translation>123,456 BTC</translation>
</message>
<message>
<location line="+31"/>
<source>Confirm the send action</source>
<translation>Επιβεβαίωση αποστολής</translation>
</message>
<message>
<location line="+3"/>
<source>S&end</source>
<translation>Αποστολη</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="-59"/>
<source><b>%1</b> to %2 (%3)</source>
<translation><b>%1</b> σε %2 (%3)</translation>
</message>
<message>
<location line="+5"/>
<source>Confirm send coins</source>
<translation>Επιβεβαίωση αποστολής νομισμάτων</translation>
</message>
<message>
<location line="+1"/>
<source>Are you sure you want to send %1?</source>
<translation>Είστε βέβαιοι για την αποστολή %1;</translation>
</message>
<message>
<location line="+0"/>
<source> and </source>
<translation>και</translation>
</message>
<message>
<location line="+23"/>
<source>The recipient address is not valid, please recheck.</source>
<translation>Η διεύθυνση του αποδέκτη δεν είναι σωστή. Παρακαλώ ελέγξτε ξανά.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount to pay must be larger than 0.</source>
<translation>Το ποσό πληρωμής πρέπει να είναι μεγαλύτερο από 0.</translation>
</message>
<message>
<location line="+5"/>
<source>The amount exceeds your balance.</source>
<translation>Το ποσό ξεπερνάει το διαθέσιμο υπόλοιπο</translation>
</message>
<message>
<location line="+5"/>
<source>The total exceeds your balance when the %1 transaction fee is included.</source>
<translation>Το σύνολο υπερβαίνει το υπόλοιπό σας όταν συμπεριληφθεί και η αμοιβή %1</translation>
</message>
<message>
<location line="+6"/>
<source>Duplicate address found, can only send to each address once per send operation.</source>
<translation>Βρέθηκε η ίδια διεύθυνση δύο φορές. Επιτρέπεται μία μόνο εγγραφή για κάθε διεύθυνση, σε κάθε διαδικασία αποστολής.</translation>
</message>
<message>
<location line="+5"/>
<source>Error: Transaction creation failed!</source>
<translation>Σφάλμα: Η δημιουργία της συναλλαγής απέτυχε</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>Σφάλμα: Η συναλλαγή απερρίφθη. Αυτό ενδέχεται να συμβαίνει αν κάποια από τα νομίσματα έχουν ήδη ξοδευθεί, όπως αν χρησιμοποιήσατε αντίγραφο του wallet.dat και τα νομίσματα ξοδεύθηκαν εκεί.</translation>
</message>
</context>
<context>
<name>SendCoinsEntry</name>
<message>
<location filename="../forms/sendcoinsentry.ui" line="+14"/>
<source>Form</source>
<translation>Φόρμα</translation>
</message>
<message>
<location line="+15"/>
<source>A&mount:</source>
<translation>&Ποσό:</translation>
</message>
<message>
<location line="+13"/>
<source>Pay &To:</source>
<translation>Πληρωμή &σε:</translation>
</message>
<message>
<location line="+34"/>
<source>The address to send the payment to (e.g. GKttXqpmwf2DYadeoueA6GpqwVcwggnu9N)</source>
<translation>Διεύθυνση αποστολής της πληρωμής (e.g. GKttXqpmwf2DYadeoueA6GpqwVcwggnu9N)</translation>
</message>
<message>
<location line="+60"/>
<location filename="../sendcoinsentry.cpp" line="+26"/>
<source>Enter a label for this address to add it to your address book</source>
<translation>Εισάγετε μια επιγραφή για αυτή τη διεύθυνση ώστε να καταχωρηθεί στο βιβλίο διευθύνσεων</translation>
</message>
<message>
<location line="-78"/>
<source>&Label:</source>
<translation>&Επιγραφή</translation>
</message>
<message>
<location line="+28"/>
<source>Choose address from address book</source>
<translation>Επιλογή διεύθυνσης από το βιβλίο διευθύνσεων</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>Επικόλληση διεύθυνσης από το πρόχειρο</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>Αφαίρεση αποδέκτη</translation>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="+1"/>
<source>Enter a child address (e.g. GKttXqpmwf2DYadeoueA6GpqwVcwggnu9N)</source>
<translation>Εισάγετε μια διεύθυνση child (π.χ. GKttXqpmwf2DYadeoueA6GpqwVcwggnu9N)</translation>
</message>
</context>
<context>
<name>SignVerifyMessageDialog</name>
<message>
<location filename="../forms/signverifymessagedialog.ui" line="+14"/>
<source>Signatures - Sign / Verify a Message</source>
<translation>Υπογραφές - Είσοδος / Επαλήθευση μήνυματος </translation>
</message>
<message>
<location line="+13"/>
<source>&Sign Message</source>
<translation>&Υπογραφή Μηνύματος</translation>
</message>
<message>
<location line="+6"/>
<source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source>
<translation>Μπορείτε να υπογράφετε μηνύματα με τις διευθύνσεις σας, ώστε ν' αποδεικνύετε πως αυτές σας ανήκουν. Αποφεύγετε να υπογράφετε κάτι αόριστο καθώς ενδέχεται να εξαπατηθείτε. Υπογράφετε μόνο πλήρης δηλώσεις με τις οποίες συμφωνείτε.</translation>
</message>
<message>
<location line="+18"/>
<source>The address to sign the message with (e.g. GKttXqpmwf2DYadeoueA6GpqwVcwggnu9N)</source>
<translation>Εισάγετε μια διεύθυνση child (π.χ. GKttXqpmwf2DYadeoueA6GpqwVcwggnu9N)</translation>
</message>
<message>
<location line="+10"/>
<location line="+213"/>
<source>Choose an address from the address book</source>
<translation>Επιλογή διεύθυνσης από το βιβλίο διευθύνσεων</translation>
</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>Επικόλληση διεύθυνσης από το βιβλίο διευθύνσεων</translation>
</message>
<message>
<location line="+10"/>
<source>Alt+P</source>
<translation>Alt+P</translation>
</message>
<message>
<location line="+12"/>
<source>Enter the message you want to sign here</source>
<translation>Εισάγετε εδώ το μήνυμα που θέλετε να υπογράψετε</translation>
</message>
<message>
<location line="+7"/>
<source>Signature</source>
<translation>Υπογραφή</translation>
</message>
<message>
<location line="+27"/>
<source>Copy the current signature to the system clipboard</source>
<translation>Αντέγραφη της επιλεγμενης διεύθυνσης στο πρόχειρο του συστηματος</translation>
</message>
<message>
<location line="+21"/>
<source>Sign the message to prove you own this child address</source>
<translation>Υπογράψτε ένα μήνυμα για ν' αποδείξετε πως σας ανήκει μια συγκεκριμένη διεύθυνση child</translation>
</message>
<message>
<location line="+3"/>
<source>Sign &Message</source>
<translation>Υπογραφη μήνυματος</translation>
</message>
<message>
<location line="+14"/>
<source>Reset all sign message fields</source>
<translation>Επαναφορά όλων των πεδίων μήνυματος</translation>
</message>
<message>
<location line="+3"/>
<location line="+146"/>
<source>Clear &All</source>
<translation>Καθαρισμός &Όλων</translation>
</message>
<message>
<location line="-87"/>
<source>&Verify Message</source>
<translation>&Επιβεβαίωση μηνύματος</translation>
</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>Πληκτρολογήστε την υπογραφή διεύθυνσης, μήνυμα (βεβαιωθείτε ότι έχετε αντιγράψει τις αλλαγές γραμμής, κενά, tabs, κ.λπ. ακριβώς) και την υπογραφή παρακάτω, για να ελέγξει το μήνυμα. Να είστε προσεκτικοί για να μην διαβάσετε περισσότερα στην υπογραφή ό, τι είναι στην υπογραφή ίδιο το μήνυμα , για να μην εξαπατηθούν από έναν άνθρωπο -in - the-middle επίθεση.</translation>
</message>
<message>
<location line="+21"/>
<source>The address the message was signed with (e.g. GKttXqpmwf2DYadeoueA6GpqwVcwggnu9N)</source>
<translation>Εισάγετε μια διεύθυνση child (π.χ. GKttXqpmwf2DYadeoueA6GpqwVcwggnu9N)</translation>
</message>
<message>
<location line="+40"/>
<source>Verify the message to ensure it was signed with the specified child address</source>
<translation>Υπογράψτε ένα μήνυμα για ν' αποδείξετε πως υπογραφθηκε απο μια συγκεκριμένη διεύθυνση child</translation>
</message>
<message>
<location line="+3"/>
<source>Verify &Message</source>
<translation>Επιβεβαίωση μηνύματος</translation>
</message>
<message>
<location line="+14"/>
<source>Reset all verify message fields</source>
<translation>Επαναφορά όλων επαλήθευμενων πεδίων μήνυματος </translation>
</message>
<message>
<location filename="../signverifymessagedialog.cpp" line="+27"/>
<location line="+3"/>
<source>Enter a child address (e.g. GKttXqpmwf2DYadeoueA6GpqwVcwggnu9N)</source>
<translation>Εισάγετε μια διεύθυνση child (π.χ. GKttXqpmwf2DYadeoueA6GpqwVcwggnu9N)</translation>
</message>
<message>
<location line="-2"/>
<source>Click "Sign Message" to generate signature</source>
<translation>Κάντε κλικ στο "Υπογραφή Μηνύματος" για να λάβετε την υπογραφή</translation>
</message>
<message>
<location line="+3"/>
<source>Enter child signature</source>
<translation>Εισαγωγή υπογραφής child</translation>
</message>
<message>
<location line="+82"/>
<location line="+81"/>
<source>The entered address is invalid.</source>
<translation>Η διεύθυνση που εισήχθη είναι λάθος.</translation>
</message>
<message>
<location line="-81"/>
<location line="+8"/>
<location line="+73"/>
<location line="+8"/>
<source>Please check the address and try again.</source>
<translation>Παρακαλούμε ελέγξτε την διεύθυνση και δοκιμάστε ξανά.</translation>
</message>
<message>
<location line="-81"/>
<location line="+81"/>
<source>The entered address does not refer to a key.</source>
<translation>Η διεύθυνση που έχει εισαχθεί δεν αναφέρεται σε ένα πλήκτρο.</translation>
</message>
<message>
<location line="-73"/>
<source>Wallet unlock was cancelled.</source>
<translation>το ξεκλείδωμα του πορτοφολιού απέτυχε</translation>
</message>
<message>
<location line="+8"/>
<source>Private key for the entered address is not available.</source>
<translation>Το προσωπικό κλειδί εισαγμενης διευθυνσης δεν είναι διαθέσιμο.</translation>
</message>
<message>
<location line="+12"/>
<source>Message signing failed.</source>
<translation>Η υπογραφή του μηνύματος απέτυχε.</translation>
</message>
<message>
<location line="+5"/>
<source>Message signed.</source>
<translation>Μήνυμα υπεγράφη.</translation>
</message>
<message>
<location line="+59"/>
<source>The signature could not be decoded.</source>
<translation>Η υπογραφή δεν μπόρεσε να αποκρυπτογραφηθεί.</translation>
</message>
<message>
<location line="+0"/>
<location line="+13"/>
<source>Please check the signature and try again.</source>
<translation>Παρακαλούμε ελέγξτε την υπογραφή και δοκιμάστε ξανά.</translation>
</message>
<message>
<location line="+0"/>
<source>The signature did not match the message digest.</source>
<translation>Η υπογραφή δεν ταιριάζει με το μήνυμα. </translation>
</message>
<message>
<location line="+7"/>
<source>Message verification failed.</source>
<translation>Η επιβεβαίωση του μηνύματος απέτυχε</translation>
</message>
<message>
<location line="+5"/>
<source>Message verified.</source>
<translation>Μήνυμα επιβεβαιώθηκε.</translation>
</message>
</context>
<context>
<name>SplashScreen</name>
<message>
<location filename="../splashscreen.cpp" line="+22"/>
<source>The Child Developers</source>
<translation>Οι child προγραμματιστές </translation>
</message>
<message>
<location line="+1"/>
<source>[testnet]</source>
<translation>[testnet]</translation>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="+20"/>
<source>Open until %1</source>
<translation>Ανοιχτό μέχρι %1</translation>
</message>
<message>
<location line="+6"/>
<source>%1/offline</source>
<translation>%1/χωρίς σύνδεση;</translation>
</message>
<message>
<location line="+2"/>
<source>%1/unconfirmed</source>
<translation>%1/χωρίς επιβεβαίωση</translation>
</message>
<message>
<location line="+2"/>
<source>%1 confirmations</source>
<translation>%1 επιβεβαιώσεις</translation>
</message>
<message>
<location line="+18"/>
<source>Status</source>
<translation>Κατάσταση</translation>
</message>
<message numerus="yes">
<location line="+7"/>
<source>, broadcast through %n node(s)</source>
<translation><numerusform>, έχει μεταδοθεί μέσω %n κόμβων</numerusform><numerusform>, έχει μεταδοθεί μέσω %n κόμβων</numerusform></translation>
</message>
<message>
<location line="+4"/>
<source>Date</source>
<translation>Ημερομηνία</translation>
</message>
<message>
<location line="+7"/>
<source>Source</source>
<translation>Πηγή</translation>
</message>
<message>
<location line="+0"/>
<source>Generated</source>
<translation>Δημιουργία </translation>
</message>
<message>
<location line="+5"/>
<location line="+17"/>
<source>From</source>
<translation>Από</translation>
</message>
<message>
<location line="+1"/>
<location line="+22"/>
<location line="+58"/>
<source>To</source>
<translation>Προς</translation>
</message>
<message>
<location line="-77"/>
<location line="+2"/>
<source>own address</source>
<translation> δική σας διεύθυνση </translation>
</message>
<message>
<location line="-2"/>
<source>label</source>
<translation>eπιγραφή</translation>
</message>
<message>
<location line="+37"/>
<location line="+12"/>
<location line="+45"/>
<location line="+17"/>
<location line="+30"/>
<source>Credit</source>
<translation>Πίστωση </translation>
</message>
<message numerus="yes">
<location line="-102"/>
<source>matures in %n more block(s)</source>
<translation><numerusform>ωρίμανση σε %n επιπλέον μπλοκ</numerusform><numerusform>ωρίμανση σε %n επιπλέον μπλοκ</numerusform></translation>
</message>
<message>
<location line="+2"/>
<source>not accepted</source>
<translation>μη αποδεκτό</translation>
</message>
<message>
<location line="+44"/>
<location line="+8"/>
<location line="+15"/>
<location line="+30"/>
<source>Debit</source>
<translation>Debit</translation>
</message>
<message>
<location line="-39"/>
<source>Transaction fee</source>
<translation>Τέλος συναλλαγής </translation>
</message>
<message>
<location line="+16"/>
<source>Net amount</source>
<translation>Καθαρό ποσό</translation>
</message>
<message>
<location line="+6"/>
<source>Message</source>
<translation>Μήνυμα</translation>
</message>
<message>
<location line="+2"/>
<source>Comment</source>
<translation>Σχόλιο:</translation>
</message>
<message>
<location line="+2"/>
<source>Transaction ID</source>
<translation>ID Συναλλαγής:</translation>
</message>
<message>
<location line="+3"/>
<source>Generated coins must mature 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "not accepted" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation>Πρέπει να περιμένετε 120 μπλοκ πριν μπορέσετε να χρησιμοποιήσετε τα νομίσματα που έχετε δημιουργήσει. Το μπλοκ που δημιουργήσατε μεταδόθηκε στο δίκτυο για να συμπεριληφθεί στην αλυσίδα των μπλοκ. Αν δεν μπει σε αυτή θα μετατραπεί σε "μη αποδεκτό" και δε θα μπορεί να καταναλωθεί. Αυτό συμβαίνει σπάνια όταν κάποιος άλλος κόμβος δημιουργήσει ένα μπλοκ λίγα δευτερόλεπτα πριν από εσάς.</translation>
</message>
<message>
<location line="+7"/>
<source>Debug information</source>
<translation>Πληροφορίες αποσφαλμάτωσης</translation>
</message>
<message>
<location line="+8"/>
<source>Transaction</source>
<translation>Συναλλαγή</translation>
</message>
<message>
<location line="+3"/>
<source>Inputs</source>
<translation>εισροές </translation>
</message>
<message>
<location line="+23"/>
<source>Amount</source>
<translation>Ποσό</translation>
</message>
<message>
<location line="+1"/>
<source>true</source>
<translation>αληθής</translation>
</message>
<message>
<location line="+0"/>
<source>false</source>
<translation>αναληθής </translation>
</message>
<message>
<location line="-209"/>
<source>, has not been successfully broadcast yet</source>
<translation>, δεν έχει ακόμα μεταδοθεί μ' επιτυχία</translation>
</message>
<message numerus="yes">
<location line="-35"/>
<source>Open for %n more block(s)</source>
<translation><numerusform>Ανοιχτό για %n μπλοκ</numerusform><numerusform>Ανοιχτό για %n μπλοκ</numerusform></translation>
</message>
<message>
<location line="+70"/>
<source>unknown</source>
<translation>άγνωστο</translation>
</message>
</context>
<context>
<name>TransactionDescDialog</name>
<message>
<location filename="../forms/transactiondescdialog.ui" line="+14"/>
<source>Transaction details</source>
<translation>Λεπτομέρειες συναλλαγής</translation>
</message>
<message>
<location line="+6"/>
<source>This pane shows a detailed description of the transaction</source>
<translation>Αυτό το παράθυρο δείχνει μια λεπτομερή περιγραφή της συναλλαγής</translation>
</message>
</context>
<context>
<name>TransactionTableModel</name>
<message>
<location filename="../transactiontablemodel.cpp" line="+225"/>
<source>Date</source>
<translation>Ημερομηνία</translation>
</message>
<message>
<location line="+0"/>
<source>Type</source>
<translation>Τύπος</translation>
</message>
<message>
<location line="+0"/>
<source>Address</source>
<translation>Διεύθυνση</translation>
</message>
<message>
<location line="+0"/>
<source>Amount</source>
<translation>Ποσό</translation>
</message>
<message numerus="yes">
<location line="+57"/>
<source>Open for %n more block(s)</source>
<translation><numerusform>Ανοιχτό για %n μπλοκ</numerusform><numerusform>Ανοιχτό για %n μπλοκ</numerusform></translation>
</message>
<message>
<location line="+3"/>
<source>Open until %1</source>
<translation>Ανοιχτό μέχρι %1</translation>
</message>
<message>
<location line="+3"/>
<source>Offline (%1 confirmations)</source>
<translation>Χωρίς σύνδεση (%1 επικυρώσεις)</translation>
</message>
<message>
<location line="+3"/>
<source>Unconfirmed (%1 of %2 confirmations)</source>
<translation>Χωρίς επιβεβαίωση (%1 από %2 επικυρώσεις)</translation>
</message>
<message>
<location line="+3"/>
<source>Confirmed (%1 confirmations)</source>
<translation>Επικυρωμένη (%1 επικυρώσεις)</translation>
</message>
<message numerus="yes">
<location line="+8"/>
<source>Mined balance will be available when it matures in %n more block(s)</source>
<translation><numerusform>Το υπόλοιπο από την εξόρυξη θα είναι διαθέσιμο μετά από %n μπλοκ</numerusform><numerusform>Το υπόλοιπο από την εξόρυξη θα είναι διαθέσιμο μετά από %n μπλοκ</numerusform></translation>
</message>
<message>
<location line="+5"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation>Αυτό το μπλοκ δεν έχει παραληφθεί από κανέναν άλλο κόμβο και κατά πάσα πιθανότητα θα απορριφθεί!</translation>
</message>
<message>
<location line="+3"/>
<source>Generated but not accepted</source>
<translation>Δημιουργήθηκε αλλά απορρίφθηκε</translation>
</message>
<message>
<location line="+43"/>
<source>Received with</source>
<translation>Παραλαβή με</translation>
</message>
<message>
<location line="+2"/>
<source>Received from</source>
<translation>Ελήφθη από</translation>
</message>
<message>
<location line="+3"/>
<source>Sent to</source>
<translation>Αποστολή προς</translation>
</message>
<message>
<location line="+2"/>
<source>Payment to yourself</source>
<translation>Πληρωμή προς εσάς</translation>
</message>
<message>
<location line="+2"/>
<source>Mined</source>
<translation>Εξόρυξη</translation>
</message>
<message>
<location line="+38"/>
<source>(n/a)</source>
<translation>(δ/α)</translation>
</message>
<message>
<location line="+199"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation>Κατάσταση συναλλαγής. Πηγαίνετε το ποντίκι πάνω από αυτό το πεδίο για να δείτε τον αριθμό των επικυρώσεων</translation>
</message>
<message>
<location line="+2"/>
<source>Date and time that the transaction was received.</source>
<translation>Ημερομηνία κι ώρα λήψης της συναλλαγής.</translation>
</message>
<message>
<location line="+2"/>
<source>Type of transaction.</source>
<translation>Είδος συναλλαγής.</translation>
</message>
<message>
<location line="+2"/>
<source>Destination address of transaction.</source>
<translation>Διεύθυνση αποστολής της συναλλαγής.</translation>
</message>
<message>
<location line="+2"/>
<source>Amount removed from or added to balance.</source>
<translation>Ποσό που αφαιρέθηκε ή προστέθηκε στο υπόλοιπο.</translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="+52"/>
<location line="+16"/>
<source>All</source>
<translation>Όλα</translation>
</message>
<message>
<location line="-15"/>
<source>Today</source>
<translation>Σήμερα</translation>
</message>
<message>
<location line="+1"/>
<source>This week</source>
<translation>Αυτή την εβδομάδα</translation>
</message>
<message>
<location line="+1"/>
<source>This month</source>
<translation>Αυτόν τον μήνα</translation>
</message>
<message>
<location line="+1"/>
<source>Last month</source>
<translation>Τον προηγούμενο μήνα</translation>
</message>
<message>
<location line="+1"/>
<source>This year</source>
<translation>Αυτό το έτος</translation>
</message>
<message>
<location line="+1"/>
<source>Range...</source>
<translation>Έκταση...</translation>
</message>
<message>
<location line="+11"/>
<source>Received with</source>
<translation>Ελήφθη με</translation>
</message>
<message>
<location line="+2"/>
<source>Sent to</source>
<translation>Απεστάλη προς</translation>
</message>
<message>
<location line="+2"/>
<source>To yourself</source>
<translation>Προς εσάς</translation>
</message>
<message>
<location line="+1"/>
<source>Mined</source>
<translation>Εξόρυξη</translation>
</message>
<message>
<location line="+1"/>
<source>Other</source>
<translation>Άλλο</translation>
</message>
<message>
<location line="+7"/>
<source>Enter address or label to search</source>
<translation>Αναζήτηση με βάση τη διεύθυνση ή την επιγραφή</translation>
</message>
<message>
<location line="+7"/>
<source>Min amount</source>
<translation>Ελάχιστο ποσό</translation>
</message>
<message>
<location line="+34"/>
<source>Copy address</source>
<translation>Αντιγραφή διεύθυνσης</translation>
</message>
<message>
<location line="+1"/>
<source>Copy label</source>
<translation>Αντιγραφή επιγραφής</translation>
</message>
<message>
<location line="+1"/>
<source>Copy amount</source>
<translation>Αντιγραφή ποσού</translation>
</message>
<message>
<location line="+1"/>
<source>Copy transaction ID</source>
<translation>Αντιγραφη του ID Συναλλαγής</translation>
</message>
<message>
<location line="+1"/>
<source>Edit label</source>
<translation>Επεξεργασία επιγραφής</translation>
</message>
<message>
<location line="+1"/>
<source>Show transaction details</source>
<translation>Εμφάνιση λεπτομερειών συναλλαγής</translation>
</message>
<message>
<location line="+139"/>
<source>Export Transaction Data</source>
<translation>Εξαγωγή Στοιχείων Συναλλαγών</translation>
</message>
<message>
<location line="+1"/>
<source>Comma separated file (*.csv)</source>
<translation>Αρχείο οριοθετημένο με κόμματα (*.csv)</translation>
</message>
<message>
<location line="+8"/>
<source>Confirmed</source>
<translation>Επικυρωμένες</translation>
</message>
<message>
<location line="+1"/>
<source>Date</source>
<translation>Ημερομηνία</translation>
</message>
<message>
<location line="+1"/>
<source>Type</source>
<translation>Τύπος</translation>
</message>
<message>
<location line="+1"/>
<source>Label</source>
<translation>Επιγραφή</translation>
</message>
<message>
<location line="+1"/>
<source>Address</source>
<translation>Διεύθυνση</translation>
</message>
<message>
<location line="+1"/>
<source>Amount</source>
<translation>Ποσό</translation>
</message>
<message>
<location line="+1"/>
<source>ID</source>
<translation>ID</translation>
</message>
<message>
<location line="+4"/>
<source>Error exporting</source>
<translation>Σφάλμα εξαγωγής</translation>
</message>
<message>
<location line="+0"/>
<source>Could not write to file %1.</source>
<translation>Αδυναμία εγγραφής στο αρχείο %1.</translation>
</message>
<message>
<location line="+100"/>
<source>Range:</source>
<translation>Έκταση:</translation>
</message>
<message>
<location line="+8"/>
<source>to</source>
<translation>έως</translation>
</message>
</context>
<context>
<name>WalletModel</name>
<message>
<location filename="../walletmodel.cpp" line="+193"/>
<source>Send Coins</source>
<translation>Αποστολή νομισμάτων</translation>
</message>
</context>
<context>
<name>WalletView</name>
<message>
<location filename="../walletview.cpp" line="+42"/>
<source>&Export</source>
<translation>&Εξαγωγή</translation>
</message>
<message>
<location line="+1"/>
<source>Export the data in the current tab to a file</source>
<translation>Εξαγωγή δεδομένων καρτέλας σε αρχείο</translation>
</message>
<message>
<location line="+193"/>
<source>Backup Wallet</source>
<translation>Αντίγραφο ασφαλείας του πορτοφολιού</translation>
</message>
<message>
<location line="+0"/>
<source>Wallet Data (*.dat)</source>
<translation>Αρχεία δεδομένων πορτοφολιού (*.dat)</translation>
</message>
<message>
<location line="+3"/>
<source>Backup Failed</source>
<translation>Αποτυχία κατά τη δημιουργία αντιγράφου</translation>
</message>
<message>
<location line="+0"/>
<source>There was an error trying to save the wallet data to the new location.</source>
<translation>Παρουσιάστηκε σφάλμα κατά την αποθήκευση των δεδομένων πορτοφολιού στη νέα τοποθεσία.</translation>
</message>
<message>
<location line="+4"/>
<source>Backup Successful</source>
<translation>Η δημιουργια αντιγραφου ασφαλειας πετυχε</translation>
</message>
<message>
<location line="+0"/>
<source>The wallet data was successfully saved to the new location.</source>
<translation>Τα δεδομένα πορτοφόλιου αποθηκεύτηκαν με επιτυχία στη νέα θέση. </translation>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="+94"/>
<source>child version</source>
<translation>Έκδοση child</translation>
</message>
<message>
<location line="+102"/>
<source>Usage:</source>
<translation>Χρήση:</translation>
</message>
<message>
<location line="-29"/>
<source>Send command to -server or childd</source>
<translation>Αποστολή εντολής στον εξυπηρετητή ή στο childd</translation>
</message>
<message>
<location line="-23"/>
<source>List commands</source>
<translation>Λίστα εντολών</translation>
</message>
<message>
<location line="-12"/>
<source>Get help for a command</source>
<translation>Επεξήγηση εντολής</translation>
</message>
<message>
<location line="+24"/>
<source>Options:</source>
<translation>Επιλογές:</translation>
</message>
<message>
<location line="+24"/>
<source>Specify configuration file (default: child.conf)</source>
<translation>Ορίστε αρχείο ρυθμίσεων (προεπιλογή: child.conf)</translation>
</message>
<message>
<location line="+3"/>
<source>Specify pid file (default: childd.pid)</source>
<translation>Ορίστε αρχείο pid (προεπιλογή: childd.pid)</translation>
</message>
<message>
<location line="-1"/>
<source>Specify data directory</source>
<translation>Ορισμός φακέλου δεδομένων</translation>
</message>
<message>
<location line="-9"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation>Όρισε το μέγεθος της βάσης προσωρινής αποθήκευσης σε megabytes(προεπιλογή:25)</translation>
</message>
<message>
<location line="-28"/>
<source>Listen for connections on <port> (default: 9333 or testnet: 19333)</source>
<translation>Εισερχόμενες συνδέσεις στη θύρα <port> (προεπιλογή: 9333 ή στο testnet: 19333)</translation>
</message>
<message>
<location line="+5"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation>Μέγιστες αριθμός συνδέσεων με τους peers <n> (προεπιλογή: 125)</translation>
</message>
<message>
<location line="-48"/>
<source>Connect to a node to retrieve peer addresses, and disconnect</source>
<translation>Σύνδεση σε έναν κόμβο για την ανάκτηση διευθύνσεων από ομοτίμους, και αποσυνδέσh</translation>
</message>
<message>
<location line="+82"/>
<source>Specify your own public address</source>
<translation>Διευκρινίστε τη δικιά σας δημόσια διεύθυνση.</translation>
</message>
<message>
<location line="+3"/>
<source>Threshold for disconnecting misbehaving peers (default: 100)</source>
<translation>Όριο αποσύνδεσης προβληματικών peers (προεπιλογή: 100)</translation>
</message>
<message>
<location line="-134"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation>Δευτερόλεπτα πριν επιτραπεί ξανά η σύνδεση των προβληματικών peers (προεπιλογή: 86400)</translation>
</message>
<message>
<location line="-29"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source>
<translation>Ένα σφάλμα συνέβη καθώς προετοιμαζόταν η πόρτα RPC %u για αναμονή IPv4: %s</translation>
</message>
<message>
<location line="+27"/>
<source>Listen for JSON-RPC connections on <port> (default: 9332 or testnet: 19332)</source>
<translation>Εισερχόμενες συνδέσεις JSON-RPC στη θύρα <port> (προεπιλογή: 9332 or testnet: 19332)</translation>
</message>
<message>
<location line="+37"/>
<source>Accept command line and JSON-RPC commands</source>
<translation>Αποδοχή εντολών κονσόλας και JSON-RPC</translation>
</message>
<message>
<location line="+76"/>
<source>Run in the background as a daemon and accept commands</source>
<translation>Εκτέλεση στο παρασκήνιο κι αποδοχή εντολών</translation>
</message>
<message>
<location line="+37"/>
<source>Use the test network</source>
<translation>Χρήση του δοκιμαστικού δικτύου</translation>
</message>
<message>
<location line="-112"/>
<source>Accept connections from outside (default: 1 if no -proxy or -connect)</source>
<translation>Να δέχεσαι συνδέσεις από έξω(προεπιλογή:1)</translation>
</message>
<message>
<location line="-80"/>
<source>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=childrpc
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 "child Alert" admin@foo.com
</source>
<translation>%s, you must set a rpcpassword in the configuration file:
%s
It is recommended you use the following random password:
rpcuser=childrpc
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 "child Alert" admin@foo.com
</translation>
</message>
<message>
<location line="+17"/>
<source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source>
<translation>Ένα σφάλμα συνέβη καθώς προετοιμαζόταν η υποδοχη RPC %u για αναμονη του IPv6, επεσε πισω στο IPv4:%s</translation>
</message>
<message>
<location line="+3"/>
<source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source>
<translation>Αποθηκευση σε συγκεκριμένη διεύθυνση. Χρησιμοποιήστε τα πλήκτρα [Host] : συμβολισμός θύρα για IPv6</translation>
</message>
<message>
<location line="+3"/>
<source>Cannot obtain a lock on data directory %s. child is probably already running.</source>
<translation>Αδυναμία κλειδώματος του φακέλου δεδομένων %s. Πιθανώς το child να είναι ήδη ενεργό.</translation>
</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>Σφάλμα: Η συναλλαγή απορρίφθηκε.
Αυτό ίσως οφείλεται στο ότι τα νομίσματά σας έχουν ήδη ξοδευτεί, π.χ. με την αντιγραφή του wallet.dat σε άλλο σύστημα και την χρήση τους εκεί, χωρίς η συναλλαγή να έχει καταγραφεί στο παρόν σύστημα.</translation>
</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>Σφάλμα: Αυτή η συναλλαγή απαιτεί αμοιβή συναλλαγής τουλάχιστον %s λόγω του μεγέθους, πολυπλοκότητας ή της χρήσης πρόσφατης παραλαβής κεφαλαίου</translation>
</message>
<message>
<location line="+3"/>
<source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source>
<translation>Εκτέλεση της εντολής όταν το καλύτερο μπλοκ αλλάξει(%s στην εντολή αντικαθίσταται από το hash του μπλοκ)</translation>
</message>
<message>
<location line="+3"/>
<source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source>
<translation>Εκτέλεσε την εντολή όταν το καλύτερο μπλοκ αλλάξει(%s στην εντολή αντικαθίσταται από το hash του μπλοκ)</translation>
</message>
<message>
<location line="+11"/>
<source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source>
<translation>Ορίστε το μέγιστο μέγεθος των high-priority/low-fee συναλλαγων σε bytes (προεπιλογή: 27000)</translation>
</message>
<message>
<location line="+6"/>
<source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source>
<translation>Αυτό είναι ένα προ-τεστ κυκλοφορίας - χρησιμοποιήστε το με δική σας ευθύνη - δεν χρησιμοποιείτε για εξόρυξη ή για αλλες εφαρμογές</translation>
</message>
<message>
<location line="+5"/>
<source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source>
<translation>Προειδοποίηση: Η παράμετρος -paytxfee είναι πολύ υψηλή. Πρόκειται για την αμοιβή που θα πληρώνετε για κάθε συναλλαγή που θα στέλνετε.</translation>
</message>
<message>
<location line="+3"/>
<source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source>
<translation>Προειδοποίηση: Εμφανίσεις συναλλαγων δεν μπορεί να είναι σωστες! Μπορεί να χρειαστεί να αναβαθμίσετε, ή άλλοι κόμβοι μπορεί να χρειαστεί να αναβαθμίστουν. </translation>
</message>
<message>
<location line="+3"/>
<source>Warning: Please check that your computer's date and time are correct! If your clock is wrong child will not work properly.</source>
<translation>Προειδοποίηση: Παρακαλώ βεβαιωθείτε πως η ημερομηνία κι ώρα του συστήματός σας είναι σωστές. Αν το ρολόι του υπολογιστή σας πάει λάθος, ενδέχεται να μη λειτουργεί σωστά το child.</translation>
</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>Προειδοποίηση : Σφάλμα wallet.dat κατα την ανάγνωση ! Όλα τα κλειδιά αναγνωρισθηκαν σωστά, αλλά τα δεδομένα των συναλλαγών ή καταχωρήσεις στο βιβλίο διευθύνσεων μπορεί να είναι ελλιπείς ή λανθασμένα. </translation>
</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>Προειδοποίηση : το αρχειο wallet.dat ειναι διεφθαρμένο, τα δεδομένα σώζονται ! Original wallet.dat αποθηκεύονται ως πορτοφόλι { timestamp } bak στο % s ? . . Αν το υπόλοιπο του ή τις συναλλαγές σας, είναι λάθος θα πρέπει να επαναφέρετε από ένα αντίγραφο ασφαλείας</translation>
</message>
<message>
<location line="+14"/>
<source>Attempt to recover private keys from a corrupt wallet.dat</source>
<translation>Προσπάθεια για ανακτησει ιδιωτικων κλειδιων από ενα διεφθαρμένο αρχειο wallet.dat </translation>
</message>
<message>
<location line="+2"/>
<source>Block creation options:</source>
<translation>Αποκλεισμός επιλογων δημιουργίας: </translation>
</message>
<message>
<location line="+5"/>
<source>Connect only to the specified node(s)</source>
<translation>Σύνδεση μόνο με ορισμένους κόμβους</translation>
</message>
<message>
<location line="+3"/>
<source>Corrupted block database detected</source>
<translation>Εντοπισθηκε διεφθαρμενη βαση δεδομενων των μπλοκ</translation>
</message>
<message>
<location line="+1"/>
<source>Discover own IP address (default: 1 when listening and no -externalip)</source>
<translation>Ανακαλύψτε την δικη σας IP διεύθυνση (προεπιλογή: 1 όταν ακούει και δεν - externalip) </translation>
</message>
<message>
<location line="+1"/>
<source>Do you want to rebuild the block database now?</source>
<translation>Θελετε να δημιουργηθει τωρα η βαση δεδομενων του μπλοκ? </translation>
</message>
<message>
<location line="+2"/>
<source>Error initializing block database</source>
<translation>Σφάλμα κατά την ενεργοποίηση της βάσης δεδομένων μπλοκ</translation>
</message>
<message>
<location line="+1"/>
<source>Error initializing wallet database environment %s!</source>
<translation>Σφάλμα κατά την ενεργοποίηση της βάσης δεδομένων πορτοφόλιου %s!</translation>
</message>
<message>
<location line="+1"/>
<source>Error loading block database</source>
<translation>Σφάλμα φορτωσης της βασης δεδομενων των μπλοκ</translation>
</message>
<message>
<location line="+4"/>
<source>Error opening block database</source>
<translation>Σφάλμα φορτωσης της βασης δεδομενων των μπλοκ</translation>
</message>
<message>
<location line="+2"/>
<source>Error: Disk space is low!</source>
<translation>Προειδοποίηση: Χαμηλός χώρος στο δίσκο </translation>
</message>
<message>
<location line="+1"/>
<source>Error: Wallet locked, unable to create transaction!</source>
<translation>Σφάλμα: το πορτοφόλι είναι κλειδωμένο, δεν μπορεί να δημιουργηθεί συναλλαγή</translation>
</message>
<message>
<location line="+1"/>
<source>Error: system error: </source>
<translation>Λάθος: λάθος συστήματος:</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to listen on any port. Use -listen=0 if you want this.</source>
<translation>ταλαιπωρηθειτε για να ακούσετε σε οποιαδήποτε θύρα. Χρήση - ακούστε = 0 , αν θέλετε αυτό.</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to read block info</source>
<translation>Αποτυχία αναγνωσης των block πληροφοριων</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to read block</source>
<translation>Η αναγνωση του μπλοκ απετυχε</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to sync block index</source>
<translation>Ο συγχρονισμος του μπλοκ ευρετηριου απετυχε</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write block index</source>
<translation>Η δημιουργια του μπλοκ ευρετηριου απετυχε</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write block info</source>
<translation>Η δημιουργια των μπλοκ πληροφοριων απετυχε</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write block</source>
<translation>Η δημιουργια του μπλοκ απετυχε</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write file info</source>
<translation>Αδυναμία εγγραφής πληροφοριων αρχειου</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write to coin database</source>
<translation>Αποτυχία εγγραφής στη βάση δεδομένων νομίσματος</translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write transaction index</source>
<translation>Αποτυχία εγγραφής δείκτη συναλλαγών </translation>
</message>
<message>
<location line="+1"/>
<source>Failed to write undo data</source>
<translation>Αποτυχία εγγραφής αναίρεσης δεδομένων </translation>
</message>
<message>
<location line="+2"/>
<source>Find peers using DNS lookup (default: 1 unless -connect)</source>
<translation>Βρες ομότιμους υπολογιστές χρησιμοποιώντας αναζήτηση DNS(προεπιλογή:1)</translation>
</message>
<message>
<location line="+1"/>
<source>Generate coins (default: 0)</source>
<translation>Δημιουργία νομισμάτων (προκαθορισμος: 0)</translation>
</message>
<message>
<location line="+2"/>
<source>How many blocks to check at startup (default: 288, 0 = all)</source>
<translation>Πόσα μπλοκ να ελέγχθουν κατά την εκκίνηση (προεπιλογή:288,0=όλα)</translation>
</message>
<message>
<location line="+1"/>
<source>How thorough the block verification is (0-4, default: 3)</source>
<translation>Πόσο εξονυχιστική να είναι η επιβεβαίωση του μπλοκ(0-4, προεπιλογή:3)</translation>
</message>
<message>
<location line="+19"/>
<source>Not enough file descriptors available.</source>
<translation>Δεν ειναι αρκετες περιγραφες αρχείων διαθέσιμες.</translation>
</message>
<message>
<location line="+8"/>
<source>Rebuild block chain index from current blk000??.dat files</source>
<translation>Εισαγωγή μπλοκ από εξωτερικό αρχείο blk000?.dat</translation>
</message>
<message>
<location line="+16"/>
<source>Set the number of threads to service RPC calls (default: 4)</source>
<translation>Ορίσμος του αριθμόυ θεματων στην υπηρεσία κλήσεων RPC (προεπιλογή: 4) </translation>
</message>
<message>
<location line="+26"/>
<source>Verifying blocks...</source>
<translation>Επαλήθευση των μπλοκ... </translation>
</message>
<message>
<location line="+1"/>
<source>Verifying wallet...</source>
<translation>Επαλήθευση πορτοφολιου... </translation>
</message>
<message>
<location line="-69"/>
<source>Imports blocks from external blk000??.dat file</source>
<translation>Εισαγωγή μπλοκ από εξωτερικό αρχείο blk000?.dat</translation>
</message>
<message>
<location line="-76"/>
<source>Set the number of script verification threads (up to 16, 0 = auto, <0 = leave that many cores free, default: 0)</source>
<translation>Ορίσμος του αριθμό των νημάτων ελέγχου σεναρίου (μέχρι 16, 0 = auto, <0 = αφήνουν τους πολλους πυρήνες δωρεάν, default: 0)</translation>
</message>
<message>
<location line="+77"/>
<source>Information</source>
<translation>Πληροφορία</translation>
</message>
<message>
<location line="+3"/>
<source>Invalid -tor address: '%s'</source>
<translation>Δεν είναι έγκυρη η διεύθυνση διαμεσολαβητή: '%s'</translation>
</message>
<message>
<location line="+1"/>
<source>Invalid amount for -minrelaytxfee=<amount>: '%s'</source>
<translation>Μη έγκυρο ποσό για την παράμετρο -paytxfee=<amount>: '%s'</translation>
</message>
<message>
<location line="+1"/>
<source>Invalid amount for -mintxfee=<amount>: '%s'</source>
<translation>Μη έγκυρο ποσό για την παράμετρο -paytxfee=<amount>: '%s'</translation>
</message>
<message>
<location line="+8"/>
<source>Maintain a full transaction index (default: 0)</source>
<translation>Διατηρήση ένος πλήρες ευρετήριου συναλλαγών (προεπιλογή: 0) </translation>
</message>
<message>
<location line="+2"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)</source>
<translation>Μέγιστος buffer λήψης ανά σύνδεση, <n>*1000 bytes (προεπιλογή: 5000)</translation>
</message>
<message>
<location line="+1"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)</source>
<translation>Μέγιστος buffer αποστολής ανά σύνδεση, <n>*1000 bytes (προεπιλογή: 1000)</translation>
</message>
<message>
<location line="+2"/>
<source>Only accept block chain matching built-in checkpoints (default: 1)</source>
<translation>Μονο αποδοχη αλυσίδας μπλοκ που ταιριάζει με τα ενσωματωμένα σημεία ελέγχου (προεπιλογή: 1) </translation>
</message>
<message>
<location line="+1"/>
<source>Only connect to nodes in network <net> (IPv4, IPv6 or Tor)</source>
<translation> Συνδέση μόνο σε κόμβους του δικτύου <net> (IPv4, IPv6 ή Tor) </translation>
</message>
<message>
<location line="+2"/>
<source>Output extra debugging information. Implies all other -debug* options</source>
<translation>Έξοδος επιπλέον πληροφοριών εντοπισμού σφαλμάτων</translation>
</message>
<message>
<location line="+1"/>
<source>Output extra network debugging information</source>
<translation>Έξοδος επιπλέον πληροφοριών εντοπισμού σφαλμάτων</translation>
</message>
<message>
<location line="+2"/>
<source>Prepend debug output with timestamp</source>
<translation>Χρονοσφραγίδα πληροφοριών εντοπισμού σφαλμάτων</translation>
</message>
<message>
<location line="+5"/>
<source>SSL options: (see the child Wiki for SSL setup instructions)</source>
<translation>Ρυθμίσεις SSL: (ανατρέξτε στο child Wiki για οδηγίες ρυθμίσεων SSL)</translation>
</message>
<message>
<location line="+1"/>
<source>Select the version of socks proxy to use (4-5, default: 5)</source>
<translation>Επιλέξτε την έκδοση του διαμεσολαβητη για να χρησιμοποιήσετε (4-5 , προεπιλογή: 5)</translation>
</message>
<message>
<location line="+3"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation>Αποστολή πληροφοριών εντοπισμού σφαλμάτων στην κονσόλα αντί του αρχείου debug.log</translation>
</message>
<message>
<location line="+1"/>
<source>Send trace/debug info to debugger</source>
<translation>Αποστολή πληροφοριών εντοπισμού σφαλμάτων στον debugger</translation>
</message>
<message>
<location line="+5"/>
<source>Set maximum block size in bytes (default: 250000)</source>
<translation>Ορίσμος του μέγιστου μέγεθος block σε bytes (προεπιλογή: 250000)</translation>
</message>
<message>
<location line="+1"/>
<source>Set minimum block size in bytes (default: 0)</source>
<translation>Ορίστε το μέγιστο μέγεθος block σε bytes (προεπιλογή: 0)</translation>
</message>
<message>
<location line="+2"/>
<source>Shrink debug.log file on client startup (default: 1 when no -debug)</source>
<translation>Συρρίκνωση του αρχείο debug.log κατα την εκκίνηση του πελάτη (προεπιλογή: 1 όταν δεν-debug)</translation>
</message>
<message>
<location line="+1"/>
<source>Signing transaction failed</source>
<translation>Η υπογραφή συναλλαγής απέτυχε </translation>
</message>
<message>
<location line="+2"/>
<source>Specify connection timeout in milliseconds (default: 5000)</source>
<translation>Ορισμός λήξης χρονικού ορίου σε χιλιοστά του δευτερολέπτου(προεπιλογή:5000)</translation>
</message>
<message>
<location line="+4"/>
<source>System error: </source>
<translation>Λάθος Συστήματος:</translation>
</message>
<message>
<location line="+4"/>
<source>Transaction amount too small</source>
<translation>Το ποσό της συναλλαγής είναι πολύ μικρο </translation>
</message>
<message>
<location line="+1"/>
<source>Transaction amounts must be positive</source>
<translation>Τα ποσά των συναλλαγών πρέπει να είναι θετικα</translation>
</message>
<message>
<location line="+1"/>
<source>Transaction too large</source>
<translation>Η συναλλαγή ειναι πολύ μεγάλη </translation>
</message>
<message>
<location line="+7"/>
<source>Use UPnP to map the listening port (default: 0)</source>
<translation>Χρησιμοποίηση του UPnP για την χρήση της πόρτας αναμονής (προεπιλογή:0)</translation>
</message>
<message>
<location line="+1"/>
<source>Use UPnP to map the listening port (default: 1 when listening)</source>
<translation>Χρησιμοποίηση του UPnP για την χρήση της πόρτας αναμονής (προεπιλογή:1)</translation>
</message>
<message>
<location line="+1"/>
<source>Use proxy to reach tor hidden services (default: same as -proxy)</source>
<translation>Χρήση διακομιστή μεσολάβησης για την επίτευξη των Tor κρυμμένων υπηρεσιων (προεπιλογή: ίδιο με το-proxy) </translation>
</message>
<message>
<location line="+2"/>
<source>Username for JSON-RPC connections</source>
<translation>Όνομα χρήστη για τις συνδέσεις JSON-RPC</translation>
</message>
<message>
<location line="+4"/>
<source>Warning</source>
<translation>Προειδοποίηση</translation>
</message>
<message>
<location line="+1"/>
<source>Warning: This version is obsolete, upgrade required!</source>
<translation>Προειδοποίηση: Αυτή η έκδοση είναι ξεπερασμένη, απαιτείται αναβάθμιση </translation>
</message>
<message>
<location line="+1"/>
<source>You need to rebuild the databases using -reindex to change -txindex</source>
<translation>Θα πρέπει να ξαναχτίστουν οι βάσεις δεδομένων που χρησιμοποιούντε-Αναδημιουργία αλλάγων-txindex </translation>
</message>
<message>
<location line="+1"/>
<source>wallet.dat corrupt, salvage failed</source>
<translation>Το αρχειο wallet.dat ειναι διεφθαρμένο, η διάσωση απέτυχε</translation>
</message>
<message>
<location line="-50"/>
<source>Password for JSON-RPC connections</source>
<translation>Κωδικός για τις συνδέσεις JSON-RPC</translation>
</message>
<message>
<location line="-67"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation>Αποδοχή συνδέσεων JSON-RPC από συγκεκριμένη διεύθυνση IP</translation>
</message>
<message>
<location line="+76"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation>Αποστολή εντολών στον κόμβο <ip> (προεπιλογή: 127.0.0.1)</translation>
</message>
<message>
<location line="-120"/>
<source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source>
<translation>Εκτέλεσε την εντολή όταν το καλύτερο μπλοκ αλλάξει(%s στην εντολή αντικαθίσταται από το hash του μπλοκ)</translation>
</message>
<message>
<location line="+147"/>
<source>Upgrade wallet to latest format</source>
<translation>Αναβάθμισε το πορτοφόλι στην τελευταία έκδοση</translation>
</message>
<message>
<location line="-21"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation>Όριο πλήθους κλειδιών pool <n> (προεπιλογή: 100)</translation>
</message>
<message>
<location line="-12"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation>Επανέλεγχος της αλυσίδας μπλοκ για απούσες συναλλαγές</translation>
</message>
<message>
<location line="+35"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation>Χρήση του OpenSSL (https) για συνδέσεις JSON-RPC</translation>
</message>
<message>
<location line="-26"/>
<source>Server certificate file (default: server.cert)</source>
<translation>Αρχείο πιστοποιητικού του διακομιστή (προεπιλογή: server.cert)</translation>
</message>
<message>
<location line="+1"/>
<source>Server private key (default: server.pem)</source>
<translation>Προσωπικό κλειδί του διακομιστή (προεπιλογή: server.pem)</translation>
</message>
<message>
<location line="-151"/>
<source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source>
<translation>Αποδεκτά κρυπτογραφήματα (προεπιλογή: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</translation>
</message>
<message>
<location line="+165"/>
<source>This help message</source>
<translation>Αυτό το κείμενο βοήθειας</translation>
</message>
<message>
<location line="+6"/>
<source>Unable to bind to %s on this computer (bind returned error %d, %s)</source>
<translation>Αδύνατη η σύνδεση με τη θύρα %s αυτού του υπολογιστή (bind returned error %d, %s) </translation>
</message>
<message>
<location line="-91"/>
<source>Connect through socks proxy</source>
<translation>Σύνδεση μέσω διαμεσολαβητή socks</translation>
</message>
<message>
<location line="-10"/>
<source>Allow DNS lookups for -addnode, -seednode and -connect</source>
<translation>Να επιτρέπονται οι έλεγχοι DNS για προσθήκη και σύνδεση κόμβων</translation>
</message>
<message>
<location line="+55"/>
<source>Loading addresses...</source>
<translation>Φόρτωση διευθύνσεων...</translation>
</message>
<message>
<location line="-35"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation>Σφάλμα φόρτωσης wallet.dat: Κατεστραμμένο Πορτοφόλι</translation>
</message>
<message>
<location line="+1"/>
<source>Error loading wallet.dat: Wallet requires newer version of child</source>
<translation>Σφάλμα φόρτωσης wallet.dat: Το Πορτοφόλι απαιτεί μια νεότερη έκδοση του child</translation>
</message>
<message>
<location line="+93"/>
<source>Wallet needed to be rewritten: restart child to complete</source>
<translation>Απαιτείται η επανεγγραφή του Πορτοφολιού, η οποία θα ολοκληρωθεί στην επανεκκίνηση του child</translation>
</message>
<message>
<location line="-95"/>
<source>Error loading wallet.dat</source>
<translation>Σφάλμα φόρτωσης αρχείου wallet.dat</translation>
</message>
<message>
<location line="+28"/>
<source>Invalid -proxy address: '%s'</source>
<translation>Δεν είναι έγκυρη η διεύθυνση διαμεσολαβητή: '%s'</translation>
</message>
<message>
<location line="+56"/>
<source>Unknown network specified in -onlynet: '%s'</source>
<translation>Άγνωστo δίκτυο ορίζεται σε onlynet: '%s'</translation>
</message>
<message>
<location line="-1"/>
<source>Unknown -socks proxy version requested: %i</source>
<translation>Άγνωστo δίκτυο ορίζεται: %i</translation>
</message>
<message>
<location line="-96"/>
<source>Cannot resolve -bind address: '%s'</source>
<translation>Δεν μπορώ να γράψω την προεπιλεγμένη διεύθυνση: '%s'</translation>
</message>
<message>
<location line="+1"/>
<source>Cannot resolve -externalip address: '%s'</source>
<translation>Δεν μπορώ να γράψω την προεπιλεγμένη διεύθυνση: '%s'</translation>
</message>
<message>
<location line="+44"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</source>
<translation>Μη έγκυρο ποσό για την παράμετρο -paytxfee=<amount>: '%s'</translation>
</message>
<message>
<location line="+1"/>
<source>Invalid amount</source>
<translation>Λάθος ποσότητα</translation>
</message>
<message>
<location line="-6"/>
<source>Insufficient funds</source>
<translation>Ανεπαρκές κεφάλαιο</translation>
</message>
<message>
<location line="+10"/>
<source>Loading block index...</source>
<translation>Φόρτωση ευρετηρίου μπλοκ...</translation>
</message>
<message>
<location line="-57"/>
<source>Add a node to connect to and attempt to keep the connection open</source>
<translation>Προσέθεσε ένα κόμβο για σύνδεση και προσπάθησε να κρατήσεις την σύνδεση ανοιχτή</translation>
</message>
<message>
<location line="-25"/>
<source>Unable to bind to %s on this computer. child is probably already running.</source>
<translation>Αδύνατη η σύνδεση με τη θύρα %s αυτού του υπολογιστή. Το child είναι πιθανώς ήδη ενεργό.</translation>
</message>
<message>
<location line="+64"/>
<source>Fee per KB to add to transactions you send</source>
<translation>Αμοιβή ανά KB που θα προστίθεται στις συναλλαγές που στέλνεις</translation>
</message>
<message>
<location line="+19"/>
<source>Loading wallet...</source>
<translation>Φόρτωση πορτοφολιού...</translation>
</message>
<message>
<location line="-52"/>
<source>Cannot downgrade wallet</source>
<translation>Δεν μπορώ να υποβαθμίσω το πορτοφόλι</translation>
</message>
<message>
<location line="+3"/>
<source>Cannot write default address</source>
<translation>Δεν μπορώ να γράψω την προεπιλεγμένη διεύθυνση</translation>
</message>
<message>
<location line="+64"/>
<source>Rescanning...</source>
<translation>Ανίχνευση...</translation>
</message>
<message>
<location line="-57"/>
<source>Done loading</source>
<translation>Η φόρτωση ολοκληρώθηκε</translation>
</message>
<message>
<location line="+82"/>
<source>To use the %s option</source>
<translation>Χρήση της %s επιλογής</translation>
</message>
<message>
<location line="-74"/>
<source>Error</source>
<translation>Σφάλμα</translation>
</message>
<message>
<location line="-31"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation>Πρέπει να βάλεις ένα κωδικό στο αρχείο παραμέτρων: %s
Εάν το αρχείο δεν υπάρχει, δημιούργησε το με δικαιώματα μόνο για ανάγνωση από τον δημιουργό</translation>
</message>
</context>
</TS> | mit |
dechoD/Telerik-Homeworks | Module II Homeworks/Data Bases/JSON Parsing/ProcessJsonToHtml/ProcessJsonToHtml.cs | 6054 | namespace ProcessJsonToHtml
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Web.UI;
using Newtonsoft.Json;
using System.Xml.Linq;
using System.Web;
using Newtonsoft.Json.Linq;
class ProcessJsonToHtml
{
static void Main()
{
string rssLocation = "https://www.youtube.com/feeds/videos.xml?channel_id=UCLC-vbm7OWvpbqzXaoAMGGw";
string fileLocation = "../../telerik.xml";
string jsonFileLocation = "../../telerik.json";
Console.WriteLine("(Problem I and II)");
Console.WriteLine("Downloading Telerik Academy Youtube RSS feed...");
XDocument document;
using (WebClient web = new WebClient())
{
web.DownloadFile(rssLocation, fileLocation);
document = XDocument.Load(fileLocation);
Console.WriteLine("Feed downloaded.");
Console.WriteLine(new string('-', 70));
}
Console.WriteLine("(Problem III)");
Console.WriteLine("Parsing XML to JSON...");
string jsonFromXml = JsonConvert.SerializeXNode(document, Formatting.Indented);
System.IO.File.WriteAllText(jsonFileLocation, jsonFromXml);
var jsonObject = JObject.Parse(jsonFromXml);
Console.WriteLine("Convertion to JSON complete.");
Console.WriteLine(new string('-', 70));
Console.WriteLine("(Problem IV)");
Console.WriteLine("Print all video titles to console.");
var videos = jsonObject["feed"]["entry"];
var titles = videos.Select(v => v["title"]);
var videoObjects = new List<Video>();
foreach (var title in titles)
{
Console.WriteLine(title);
}
Console.WriteLine(new string('-', 70));
Console.WriteLine("Problem V");
Console.WriteLine("Parsing JSON to POCO Objects...");
foreach (var video in videos)
{
videoObjects.Add(JsonConvert.DeserializeObject<Video>(video.ToString()));
}
Console.WriteLine("Parsing completed.");
Console.WriteLine(new string('-', 70));
Console.WriteLine("Problem VI");
Console.WriteLine("Creating HTML from the POCO objects...");
StringWriter stringWriter = new StringWriter();
using (HtmlTextWriter writer = new HtmlTextWriter(stringWriter, " "))
{
// Head
writer.RenderBeginTag(HtmlTextWriterTag.Head);
// Title
writer.RenderBeginTag(HtmlTextWriterTag.Title);
writer.Write("Telerik Videos");
writer.RenderEndTag();
// Link to stylesheet
writer.AddAttribute(HtmlTextWriterAttribute.Href, "styles.css");
writer.AddAttribute(HtmlTextWriterAttribute.Rel, "stylesheet");
writer.RenderBeginTag(HtmlTextWriterTag.Link);
writer.RenderEndTag();
writer.RenderEndTag();
// Meta for the encoding
writer.AddAttribute(HtmlTextWriterAttribute.Content, "text/html; charset=UTF-8");
writer.AddAttribute("http-equiv", "Content-Type");
writer.RenderBeginTag(HtmlTextWriterTag.Meta);
writer.RenderEndTag();
writer.WriteLine();
foreach (var video in videoObjects)
{
// wrapper
writer.AddAttribute(HtmlTextWriterAttribute.Class, "video-wrapper");
writer.RenderBeginTag(HtmlTextWriterTag.Div);
// header
writer.RenderBeginTag(HtmlTextWriterTag.H2);
writer.Write(video.Title);
writer.RenderEndTag();
writer.WriteLine();
// Iframe
writer.AddAttribute(HtmlTextWriterAttribute.Width, "400");
writer.AddAttribute(HtmlTextWriterAttribute.Height, "300");
writer.AddAttribute(HtmlTextWriterAttribute.Src, string.Format("https://www.youtube.com/embed/{0}", video.Id));
writer.AddAttribute("frameborder", "0");
writer.AddAttribute("allowfullscreen", "1");
writer.RenderBeginTag(HtmlTextWriterTag.Iframe);
writer.RenderEndTag();
writer.WriteLine();
// Link to YouTube
writer.AddAttribute(HtmlTextWriterAttribute.Class, "link-youtube");
writer.AddAttribute(HtmlTextWriterAttribute.Target, "_blank");
writer.AddAttribute(HtmlTextWriterAttribute.Href, string.Format("https://youtu.be/{0}", video.Id));
writer.RenderBeginTag(HtmlTextWriterTag.A);
writer.Write("Watch on YouTube");
writer.RenderEndTag();
writer.WriteLine();
// Date
writer.AddAttribute(HtmlTextWriterAttribute.Class, "date");
writer.RenderBeginTag(HtmlTextWriterTag.P);
var dateTime = DateTime.Parse(video.DateOfPublishing);
writer.Write(string.Format("Video published on {0} of {1} {2}", dateTime.Day, dateTime.ToString("MMMM"), dateTime.Year));
writer.RenderEndTag();
writer.RenderEndTag();
writer.WriteLine();
}
}
File.WriteAllText("../../index.html", stringWriter.ToString());
Console.WriteLine("index.html created see directory for results");
}
}
} | mit |
rainyear/emoji-query | bin/emoji-query.js | 73 | #!/usr/bin/env node
var emoji = require('../index.js');
emoji.query();
| mit |
nwwatson/remedy | app/controllers/remedy/documents_controller.rb | 244 | require_dependency "remedy/application_controller"
module Remedy
class DocumentsController < ApplicationController
def show
end
def edit
end
def create
end
def update
end
def destroy
end
end
end
| mit |
MomentD/fanrenos | fanrenos/resources/views/admin/article/create.blade.php | 3693 | @extends('admin.layouts.base')
@section('title','添加文章')
@section('css')
<link href="{{asset('/assets/pickadate/themes/default.css')}}" rel="stylesheet">
<link href="{{asset('/assets/pickadate/themes/default.date.css')}}" rel="stylesheet">
<link href="{{asset('/assets/pickadate/themes/default.time.css')}}" rel="stylesheet">
<link href="{{asset('/assets/selectize/css/selectize.css')}}" rel="stylesheet">
<link href="{{asset('/assets/selectize/css/selectize.bootstrap3.css')}}" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="{{asset('markdown/css/bootstrap-markdown.min.css')}}" />
<link rel="stylesheet" type="text/css" href="{{asset('/css/drp.css')}}" />
@stop
@section('content')
<div class="container-fluid">
<div class="row">
<div class="col-sm-12">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">新文章</h3>
</div>
<div class="panel-body">
@include('admin.partials.errors')
<form class="form-horizontal" role="form" method="POST" action="{{ url('dashboard/article') }}" enctype="multipart/form-data">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
@include('admin.article._form')
<div class="col-md-8">
<div class="form-group">
<div class="col-md-10 col-md-offset-2">
<button type="submit" class="btn btn-primary btn-lg">
<i class="fa fa-disk-o"></i>
保存
</button>
<button type="button" class="btn btn-default btn-lg" onclick="back_btn()">
<i class="fa fa-reply-all"></i>
返回
</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@stop
@section('js')
<!-- simditor -->
<script type="text/javascript" src="{{asset('markdown/js/markdown.js')}}"></script>
<script type="text/javascript" src="{{asset('markdown/js/to-markdown.js')}}"></script>
<script type="text/javascript" src="{{asset('markdown/js/bootstrap-markdown.js')}}"></script>
<script type="text/javascript" src="{{asset('markdown/js/bootstrap-markdown.zh.js')}}"></script>
<script type="text/javascript" src="{{asset('/js/dropzone.js')}}"></script>
<script>
var u = "{{url('/uploads/markdown_image')}}";
$('#content').markdown({
autofocus:true,
iconlibrary: 'fa',
language:'zh',
dropZoneOptions: {
paramName:'markdownImage',
maxFilesize: 4,//M
uploadMultiple:false,
createImageThumbnails:true,
url:u,
}
});
$(function() {
$("#publish_date").pickadate({
format: "mmm-d-yyyy"
});
$("#publish_time").pickatime({
format: "h:i A"
});
$("#tags").selectize({
create: true
});
});
</script>
<script src="{{asset('/assets/pickadate/picker.js')}}"></script>
<script src="{{asset('/assets/pickadate/picker.date.js')}}"></script>
<script src="{{asset('/assets/pickadate/picker.time.js')}}"></script>
<script src="{{asset('/assets/selectize/js/selectize.min.js')}}"></script>
@stop | mit |
abique/mimosa | mimosa/fs/move.hh | 162 | #pragma once
#include <string>
namespace mimosa
{
namespace fs
{
bool moveFile(const std::string &src,
const std::string &dst);
}
}
| mit |
gharrma/lang | src/emit.cpp | 4733 | #include "emit.h"
#include <unordered_map>
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Verifier.h"
#include "ast.h"
#include "type.h"
#include "util.h"
#include "visit.h"
using namespace llvm;
llvm::Type* Emitter::GetLlvmType(const ::Type* type) {
if (auto cast = dynamic_cast<const IntType*>(type)) {
return llvm::Type::getIntNTy(context, cast->bits);
}
else if (auto cast = dynamic_cast<const IntType*>(type)) {
if (cast->bits == 32)
return llvm::Type::getFloatTy(context);
else if (cast->bits == 64)
return llvm::Type::getDoubleTy(context);
else LOG(FATAL) << "Invalid width for float type: " << cast->bits;
}
else if (dynamic_cast<const UnitType*>(type)) {
return llvm::Type::getVoidTy(context);
}
else LOG(FATAL) << "Unhandled type " << *type;
return nullptr;
}
void Emit(Node& ast, Module& mod) {
Emitter emitter(mod);
ast.Accept(emitter);
}
Value* EmitExpr(Expr& expr, Module& mod) {
Emitter emitter(mod);
expr.Accept(emitter);
return emitter.vals.at(&expr);
}
void Emitter::AfterBlock(Block& block) {
vals[&block] = block.exprs.empty()
? nullptr
: vals.at(block.exprs.rbegin()->get());
}
void Emitter::AfterId(Id& id) {
vals[&id] = vals.at(id.resolved);
}
void Emitter::AfterCall(Call& call) {
auto fn = fns.at(call.resolved);
std::vector<Value*> args(call.args.size());
for (size_t i = 0, e = args.size(); i < e; ++i)
args[i] = vals.at(call.args[i].get());
vals[&call] = builder.CreateCall(fn, args, "call");
}
void Emitter::AfterBinary(Binary& binary) {
auto l = vals.at(binary.lhs.get());
auto r = vals.at(binary.rhs.get());
auto op = binary.op;
auto op_kind = op.kind;
Value* val = nullptr;
if (auto int_type = dynamic_cast<IntType*>(binary.type.get())) {
if (op_kind == kPlus) val = builder.CreateAdd(l, r, "plus");
else if (op_kind == kMinus) val = builder.CreateSub(l, r, "minus");
else if (op_kind == kTimes) val = builder.CreateMul(l, r, "times");
else if (op_kind == kDiv || op_kind == kMod) {
if (op_kind == kDiv) {
int_type->signd
? val = builder.CreateSDiv(l, r, "div")
: val = builder.CreateUDiv(l, r, "div");
} else {
int_type->signd
? val = builder.CreateSRem(l, r, "mod")
: val = builder.CreateURem(l, r, "mod");
}
}
}
else if (dynamic_cast<FloatType*>(binary.type.get())) {
if (op_kind == kPlus) val = builder.CreateFAdd(l, r, "plus");
else if (op_kind == kMinus) val = builder.CreateFSub(l, r, "minus");
else if (op_kind == kTimes) val = builder.CreateFMul(l, r, "times");
else if (op_kind == kDiv) val = builder.CreateFDiv(l, r, "div");
}
if (!val) LOG(FATAL) << "Binary operator \'" << op << "\' not translated";
vals[&binary] = val;
}
void Emitter::AfterIntLit(IntLit& int_lit) {
static constexpr unsigned bits = CHAR_BIT * sizeof(IntLitRep);
vals[&int_lit] = ConstantInt::get(context, APInt(bits, int_lit.val));
}
void Emitter::AfterFloatLit(FloatLit& float_lit) {
vals[&float_lit] = ConstantFP::get(context, APFloat(float_lit.val));
}
void Emitter::AfterLocalVarDecl(LocalVarDecl& decl) {
vals[&decl] = vals.at(decl.init.get());
}
void Emitter::BeforeFnDecl(FnDecl& fn) {
std::vector<llvm::Type*> arg_types(fn.proto->args.size());
for (size_t i = 0, e = arg_types.size(); i < e; ++i)
arg_types[i] = GetLlvmType(fn.proto->args[i]->parsed_type->type.get());
auto ret_type = GetLlvmType(fn.proto->ret_type->type.get());
auto fn_type = FunctionType::get(ret_type, arg_types, /*vararg*/ false);
auto fn_ir = Function::Create(
fn_type, Function::ExternalLinkage, // TODO: Linkage?
fn.name.str_val, &mod);
size_t idx = 0;
for (auto& arg_ir : fn_ir->args()) {
arg_ir.setName(fn.proto->args[idx]->name.str_val);
vals[fn.proto->args[idx].get()] = &arg_ir;
++idx;
}
fns[&fn] = fn_ir;
auto bb = BasicBlock::Create(context, "entry", fn_ir);
builder.SetInsertPoint(bb);
}
void Emitter::AfterFnDecl(FnDecl& fn) {
// TODO: Remove use of dynamic cast.
if (dynamic_cast<UnitType*>(fn.proto->ret_type->type.get())) {
builder.CreateRetVoid();
} else {
builder.CreateRet(vals.at(fn.body.get()));
}
auto fn_ir = mod.getFunction(fn.name.str_val);
if (verifyFunction(*fn_ir, &llvm::errs()))
LOG(FATAL) << "LLVM function verification failed.";
}
| mit |
gabrielprallon/SunProjectV2TheRiseOfTheTrueSun | SPV2TROTTS/Assets/Space Graphics Toolkit/Scripts/SgtStaticStar.cs | 653 | using UnityEngine;
[System.Serializable]
public class SgtStaticStar
{
// Temp instance used when generating the starfield
public static SgtStaticStar Temp = new SgtStaticStar();
[Tooltip("The coordinate index in the asteroid texture")]
public int Variant;
[Tooltip("Color tint of this star")]
public Color Color = Color.white;
[Tooltip("Radius of this star in local space")]
public float Radius;
[Tooltip("Position of the star in local space")]
public Vector3 Position;
public void CopyFrom(SgtStaticStar other)
{
Variant = other.Variant;
Color = other.Color;
Radius = other.Radius;
Position = other.Position;
}
} | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.