code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
3
942
language
stringclasses
30 values
license
stringclasses
15 values
size
int32
3
1.05M
"use strict"; var assert = require('power-assert'); var proxyquire = require('proxyquireify')(require); describe("Persistence", function() { beforeEach(function(){ this.localStorage = { removeItem: function(key){ delete this[key]; } }; var stub = { './persistence_require': { localStorage: this.localStorage } }; this.Persistence = proxyquire('../lib/persistence.js', stub); }); describe("defined", function() { it("object", function() { assert(typeof this.Persistence === 'object'); }); }); describe("value", function() { it("add string", function() { var v = this.Persistence.load("hoge"); assert(this.localStorage['hoge'] === undefined); assert(typeof v.val() === 'undefined'); v.save("huga"); assert(v.val() === 'huga'); assert(this.localStorage['hoge'] === 'huga'); }); it("add object", function() { var v = this.Persistence.load("obj"); assert(typeof this.localStorage['obj'] === 'undefined'); v.save({a:1}); assert(v.val()['a'] === 1); assert(this.localStorage['obj'] === '{"a":1}'); }); it("get existing key of version", function() { this.localStorage['version'] = '1234.567.89'; assert(this.Persistence.version().val() === '1234.567.89'); }); it("remove", function() { assert(typeof this.Persistence.load("v1").remove() === 'undefined'); this.localStorage.v2="v2"; assert(this.Persistence.load("v2").val() === 'v2'); assert(typeof this.Persistence.load("v2").remove() === 'undefined'); assert(typeof this.Persistence.load("v2").val() === 'undefined'); }); }); it("cleanup old data", function() { this.localStorage.password='password'; this.localStorage.logged='logged'; this.localStorage.username='username'; this.localStorage.remember='remember'; this.localStorage.currentTheme='currentTheme'; this.localStorage.hoge='huga'; this.Persistence.cleanupOldData(); assert(typeof this.localStorage.password === 'undefined'); assert(typeof this.localStorage.logged === 'undefined'); assert(typeof this.localStorage.username === 'undefined'); assert(typeof this.localStorage.remember === 'undefined'); assert(typeof this.localStorage.currentTheme === 'undefined'); assert(this.localStorage.hoge === 'huga'); }); it("accessors", function() { this.localStorage.options="options"; this.localStorage.selected_lists="selected_lists"; this.localStorage.timeline_order="timeline_order"; this.localStorage.oauth_token_data="oauth_token_data"; this.localStorage.oauth_token_service="oauth_token_service"; this.localStorage.version="version"; this.localStorage.popup_size="popup_size"; this.localStorage.window_position="window_position"; assert(this.Persistence.options().val() === "options"); assert(this.Persistence.selectedLists().val() === "selected_lists"); assert(this.Persistence.timelineOrder().val() === "timeline_order"); assert(this.Persistence.oauthTokenData().val() === "oauth_token_data"); assert(this.Persistence.oauthTokenService().val() === "oauth_token_service"); assert(this.Persistence.version().val() === "version"); assert(this.Persistence.popupSize().val() === "popup_size"); assert(this.Persistence.windowPosition().val() === "window_position"); }); });
Yasushi/oxidized_silver_bird
test/persistence_spec.js
JavaScript
mit
3,411
import processBoxModel from './boxModel'; const processMargin = processBoxModel({ expandsTo: ({ first, second, third, fourth }) => ({ marginTop: first, marginRight: second, marginBottom: third, marginLeft: fourth, }), maxValues: 4, autoSupported: true, }); const processMarginVertical = processBoxModel({ expandsTo: ({ first, second }) => ({ marginTop: first, marginBottom: second, }), maxValues: 2, autoSupported: true, }); const processMarginHorizontal = processBoxModel({ expandsTo: ({ first, second }) => ({ marginRight: first, marginLeft: second, }), maxValues: 2, autoSupported: true, }); const processMarginSingle = processBoxModel({ autoSupported: true, }); export { processMargin, processMarginVertical, processMarginHorizontal, processMarginSingle, };
diegomura/react-pdf
packages/stylesheet/src/expand/margins.js
JavaScript
mit
833
#include <iostream> #include <assert.h> #include <algorithm> using namespace std; //initialize Q, and sum all the elements of arrays //A & B into Q and return Q template <typename T> T dot_product(T *A, T *B) { T Q; int i = 0; while(i < 11) { Q = Q + (A[i]*B[i]);//dot product operation i++; } return Q; } //each element of S(S[i]) is made to be the sum of (A[i]+B[i]) //i is created as index and lists are traversed as long as i<n template <typename T> void array_sum( T *S,const T *A,const T *B,const int n) { assert(n > 0); int i = 0; while (i < n){ S[i] = A[i] + B[i]; i++; } } //traverse elements of array of type T //items sent to cout template <typename T> void array_print(T *A) { int i = 0; while(i < 11) { cout << A[i] << " "; i++; } cout << endl; } int main() { //creating test arrays int *A = new int[11]; int *B = new int[11]; int *S = new int[11]; int n = 11; //populating with test values for(int i = 0; i < 11; i++) { A[i] = 2; B[i] = 3; } //test function calls array_print(A); array_print(B); array_print(S); int D = dot_product(A,B); array_sum(S,A,B,n); array_print(A); array_print(B); cout << "the summed array S is:" << endl; array_print(S); cout << D << endl; return 1; }
nurnbeck/OldCode
lab09&FileTypeingIO/arrays.c
C
mit
1,306
package nl.socnet.message.handler; import io.netty.buffer.ByteBuf; import nl.soccar.socnet.connection.Connection; import nl.soccar.socnet.message.MessageHandler; import nl.socnet.message.ChangeGameStatusMessage; /** * Handles ChangeGameStatus messages, after the GameStatus of a game has changed. * * @author PTS34A */ public final class ChangeGameStatusMessageHandler extends MessageHandler<ChangeGameStatusMessage> { @Override protected void handle(Connection connection, ChangeGameStatusMessage message) throws Exception { throw new UnsupportedOperationException("Handling is not supported for the Client."); } @Override protected void encode(Connection connection, ChangeGameStatusMessage message, ByteBuf buf) throws Exception { // There is no data to encode for the message. } @Override protected ChangeGameStatusMessage decode(Connection connection, ByteBuf buf) throws Exception { throw new UnsupportedOperationException("Decoding is not supported for the Client."); } }
PTS3-S34A/User-Interface
Soccar [UI]/src/nl/socnet/message/handler/ChangeGameStatusMessageHandler.java
Java
mit
1,050
namespace Algorithms.Strings.Sort { public class LSD { public static void Sort(string[] a) { var N = a.Length; var M = a[0].Length; var R = 256; var aux = new string[N]; for (var d = M-1; d >= 0; --d) { var counts = new int[R + 1]; for (var i = 0; i < N; ++i) { counts[a[i][d]+1]++; } for (var r = 0; r < R; ++r) { counts[r + 1] += counts[r]; } for (var i = 0; i < N; ++i) { aux[counts[a[i][d]]++] = a[i]; } for (var i = 0; i < N; ++i) { a[i] = aux[i]; } } } } }
cschen1205/cs-algorithms
cs-algorithms/Strings/Sort/LSD.cs
C#
mit
880
package demo.benchmark.enums; import java.util.Arrays; public enum MessageBrokerType { HORNETQ, ACTIVEMQ, RABBITMQ, KAFKA; public static MessageBrokerType isValid(String type) { for (MessageBrokerType brokerType : MessageBrokerType.values()) { if (brokerType.name().equals(type)) { return MessageBrokerType.valueOf(type); } } throw new RuntimeException("Invalid message broker Type. Accepted values are: " + Arrays.asList(MessageBrokerType.values())); } }
cbirajdar/messaging-providers-benchmark
src/main/java/demo/benchmark/enums/MessageBrokerType.java
Java
mit
548
{{<layout}} {{$head}} {{>includes/elements_head}} {{/head}} {{$content}} <main id="content" role="main"> <a href="question04" class="no-back-link">Back</a> <span class="example-back-link">Question 4 of 8</span> <form action="question06" method="get" class="form" name="certificate"> <!-- Certificate selection --> <div class="form-group"> <label class="form-label-bold" for="ni-number">What else would you like to tell us about your enquiry? </label> </div> <div class="form-group"> <textarea class="form-control" id="complaint-details" name="complaint-details"></textarea> </div> Have you previously been in contact about this? <br> <label class="block-label" for="radio-1"> <input id="radio-1" type="radio" name="certificate-type" value="Birth" data-storage="Birth"> Yes </label> <label class="block-label" for="radio-2"> <input id="radio-2" type="radio" name="certificate-type" value="Marriage" data-storage="Marriage"> No </label> <!-- Primary buttons, secondary links --> <div class="form-group"> <input type="submit" class="button" value="Continue"> </div> </form> </main><!-- / #page-container --> {{/content}} {{$bodyEnd}} {{>includes/elements_scripts}} {{/bodyEnd}} {{/layout}}
kJhdnv9Za7Qh/Passport-Enquiries-Prototype
app/views/question05.html
HTML
mit
1,331
package com.shadowcs.themis.test; import static org.junit.Assert.assertEquals; import java.util.concurrent.ThreadFactory; import java.util.concurrent.atomic.AtomicInteger; import org.junit.Test; import com.shadowcs.themis.util.concurrent.DefaultThreadFactory; import com.shadowcs.themis.util.concurrent.SimpleThreadFactory; public class DefaultThreadFactoryTest { @Test public void objectCreation() { new SimpleThreadFactory(); } @Test public void threadCreation() throws InterruptedException { ThreadFactory sThreadFactory = new DefaultThreadFactory(); for(int i = 0; i < 100; i++) { Thread t = sThreadFactory.newThread(null); t.start(); t.join(1000); } } @Test public void threadWork() throws InterruptedException { AtomicInteger integer = new AtomicInteger(); ThreadFactory sThreadFactory = new DefaultThreadFactory(); for(int i = 0; i < 100; i++) { Thread t = sThreadFactory.newThread(() -> integer.incrementAndGet()); t.start(); t.join(1000); } assertEquals(100, integer.get()); } }
ShadowLordAlpha/Themis
src/test/java/com/shadowcs/themis/test/DefaultThreadFactoryTest.java
Java
mit
1,052
* { margin: 0; padding: 0; } html, body { height: 100%; min-height: 100%; } body { font-family: Verdana, Arial, sans; color: #222; } img { border: 0; } a { color: #ff3600; outline: 0; } header { background: #ebe5df; background: linear-gradient(to bottom, #ffffff 0%, #ebe5df 100%); } hgroup { border-top: 4px solid #222; } h1 { font-size: 50px; padding: 8px 10px; float: left; } h1 a { color: #3f3029; text-decoration: none; font-weight: normal; text-shadow: 1px 1px 2px #888; } h1 span { border-radius: 3px; } h1 a:hover { color: #ff3600; } h2 { float: right; font-size: 20px; text-align: center; line-height: 20px; padding: 8px 40px; color: #fff; border-radius: 3px; margin: 9px 10px; } .learning { background: #c43a3a; } .locked { background: #3ac440; } nav { clear: both; padding: 0 2px 2px; background: #ebe5df; } nav ul { list-style-type: none; border-top: 4px solid #222; background: #fff; } nav ul li { float: left; border-right: 2px solid #ebe5df; } nav ul li:last-child { float: none; clear: both; } nav a { display: block; margin-top: -4px; background: #fff; border-top: 4px solid #222; padding: 10px 11px; font-size: 22px; text-decoration: none; color: #222; } nav a:hover { border-top: 4px solid #ff3600; background: #fad900; background: linear-gradient(to bottom, #fac400 0%, #fad900 65%, #fac400 66%, #f7a500 100%); } section { border: 2px solid #ebe5df; margin-bottom: 20px; } section:last-child { margin-bottom: 25px; } section h3 { background: #ebe5df; background: linear-gradient(to bottom, #ffffff 0%, #ebe5df 100%); margin: 1px; color: #3f3029; font-size: 18px; font-weight: normal; padding: 3px 5px; } section div { border-top: 2px solid #ebe5df; padding: 5px 6px; } footer { position: absolute; bottom: 0; left: 0; width: 100%; background: #222; color: #fff; font-size: 12px; text-align: right; } footer div { padding: 5px 10px; } #container { min-height: 100%; position: relative; } #content { padding: 20px; } #observed { padding: 0; } #observed ul { list-style-type: none; } #observed ul li { padding: 3px; border-bottom: 1px solid #ccc; background: #fafafa; } #observed ul li:nth-child(even) { background: #f1f1f1; } #observed ul li:last-child { border-bottom: 0; } #policy { font-family: monospace; } .datatable { width: 100%; } .datatable thead { background: #ebe5df; background: linear-gradient(to bottom, #ffffff 0%, #ebe5df 100%); color: #3f3029; font-size: 18px; font-weight: normal; } .datatable thead td { padding: 3px 5px; border-right: 1px solid #ccc; } .datatable thead td:last-child { border: 0; } .datatable tbody tr { } .datatable tbody tr td { border-top: 1px solid #ccc; background: #fafafa; padding: 5px; } .datatable tbody tr:nth-child(even) td { background: #f1f1f1; } .datatable tbody tr.inactive td { color: #888; text-decoration: line-through; } h3.warning { color: #ff3600; } div.warning { padding-left: 6px; border: 0; border-left: 5px solid #ff3600; margin-bottom: 5px; font-style: italic; } div.warning:last-child { margin: 0; } div.warning form { display:inline; } .source { font-family:monospace; }
qll/autoCSP
autocsp/webinterface/static/style.css
CSS
mit
3,486
module HealthSeven::V2_7_1 class SdrS32 < ::HealthSeven::Message attribute :msh, Msh, position: "MSH", require: true attribute :sfts, Array[Sft], position: "SFT", multiple: true attribute :uac, Uac, position: "UAC" class ANTIMicrobialDeviceCycleData < ::HealthSeven::SegmentGroup end attribute :anti_microbial_device_cycle_data, ANTIMicrobialDeviceCycleData, position: "SDR_S32.ANTI-MICROBIAL_DEVICE_CYCLE_DATA", require: true end end
niquola/health_seven
lib/health_seven/2.7.1/messages/sdr_s32.rb
Ruby
mit
449
package com.codility.challenge._codeforces_cyclic_shift import org.scalatest.FunSuite /** * Created by obarros on 17/12/2016. */ class MainTest extends FunSuite { test("testMain") { } }
Obarros/Codility
src/test/scala-2.11/com/codility/challenge/_codeforces_cyclic_shift/MainTest.scala
Scala
mit
198
<title>View Course</title> <style type="text/css"> .user { width: 90px; height: 90px; border-radius: 50%; background-repeat: no-repeat; background-position: center center; background-size: cover; float: left; } </style> <?php //Sidath //15 Sep 2015 //As of now, the no. of answers available per question is set to 4. //In this implementation, only MCQ type questions are concerned. //include 'require/links.php'; //include 'require/functions.php'; //include 'require/connection.php'; include 'header.php'; if ((!isset($_GET['courseID']) || !isset($_GET['token'])) || (sha1($_GET['courseID']) != $_GET['token'])) { header("Location:index.php"); } else { $courseID = $_GET['courseID']; } //$connection = mysql_connect('localhost', 'root', ''); //The Blank string is the password //mysql_select_db('kdumooc'); $resultsOfCourse = getCourseDetails($courseID, $db); //var_dump($resultsOfCourse); $modulesOfCourse = getModuleDetails($courseID, $db); $lecturerDetails = loadLecturerDetails($resultsOfCourse[0]['LECTURER_idLECTURER'], $db) ?> <div class="container"> <div class="col-lg-9"> <h2><?php echo $resultsOfCourse[0]["title"] ?></h2> <br/> <h4>About the Course: </h4> <div style="display: block;text-align: justify"> <p><?php echo $resultsOfCourse[0]["about"] ?></p> <br/> <h4>Course Modules: </h4> <?php if (count($modulesOfCourse) == 0) { echo "<p><i>This course does not have any associated modules.</i></p>"; } else { echo "<ul type=\"circle\">"; foreach ($modulesOfCourse as $module) { echo "<li>" . $module["module_name"] . "</li>"; } echo "</ul>"; } ?> </div> <br/> <h4>Course at a Glance: </h4> <i class="fa fa-calendar"></i> Duration: <?php echo $resultsOfCourse[0]["duration"] . " weeks"; ?> <br/> <i class="glyphicon glyphicon-user"></i> Recommended no. of students: <?php echo $resultsOfCourse[0]["no_of_students"] ?> <br/><br/> <h4>Course Instructor (Lecturer): </h4> <?php if (doesImageExist(LECTURER_PROFILE_PIC_UPLOAD_URL . $resultsOfCourse[0]['LECTURER_idLECTURER'] . ".jpg")) { $img_url = "<img class = \"user\" width=\"75px\" height=\"75px\" src=\"" . LECTURER_PROFILE_PIC_UPLOAD_URL . $resultsOfCourse[0]['LECTURER_idLECTURER'] . ".jpg\" />"; } else { $img_url = "<img class = \"user\" width=\"75px\" height=\"75px\" src=\"" . LECTURER_PROFILE_PIC_UPLOAD_URL . "default.jpg\" />"; } echo $img_url . "<br/>"; echo "<p><b>&nbsp;&nbsp;&nbsp;" . $lecturerDetails[0]['first_name'] . " " . $lecturerDetails[0]['last_name'] . "</p></b>"; echo "<p>&nbsp;&nbsp;&nbsp;<i class=\"fa fa-inbox\"></i> " . $lecturerDetails[0]['email'] . "</p>"; ?> </div> <div class="col-lg-3"> <?php if (doesImageExist(COURSE_PIC_UPLOAD_URL . $courseID . ".jpg")) { $img_url = "<img width=\"100px\" height=\"100px\" src=\"" . COURSE_PIC_UPLOAD_URL . $courseID . ".jpg\" />"; } else { $img_url = "<img width=\"100px\" height=\"100px\" src=\"" . COURSE_PIC_UPLOAD_URL . "default.jpg\" />"; } echo "<center>" . $img_url . "</center>"; echo "</br><center>"; if (sessionExists() && isStudent()) { echo "<a href=\"registerForCourse.php?studentID=" . $_SESSION['userID'] . "&token=" . sha1($_SESSION['userID']) . "&courseID=" . $courseID . "\" target=\"new\">"; echo "<button type=\"button\" class=\"btn btn-success active\">Register For Course</button></a>"; } else { echo "<a href=\"signInMain.php\" target=\"new\">"; echo "<button type=\"button\" class=\"btn btn-success\">Sign In To Register For Course</button></a>"; } echo "</br></center>"; ?> </div> </div> <?php include 'footer.php'; ?>
SGCreations/kdumooc
viewCourse.php
PHP
mit
4,228
'use strict';/* jshint indent: 2 */ module.exports = function(sequelize, DataTypes) { return sequelize.define('site', { siteID: { type: DataTypes.INTEGER(11), allowNull: false, primaryKey: true }, siteName: { type: DataTypes.TEXT, allowNull: false }, addressLine1: { type: DataTypes.TEXT, allowNull: false }, addressLine2: { type: DataTypes.TEXT, allowNull: false }, city: { type: DataTypes.TEXT, allowNull: false }, stateCode: { type: DataTypes.TEXT, allowNull: false }, zip: { type: DataTypes.TEXT, allowNull: false }, zipplus: { type: DataTypes.TEXT, allowNull: false } }); };
3See/eReader
app/models/site.js
JavaScript
mit
751
__all__ = ["lesstatic","config","init","server","process_source"]
zamansky/lesstatic
lesstatic/__init__.py
Python
mit
66
/** * React CSV Spreadsheet v1.1.0 * David Timmons ([email protected]) * http://david.timmons.io * MIT License * * @summary Flux action creators. * @module ReactCsv */ import ReactCsvDispatcher from './ReactCsvDispatcher'; import ReactCsvConstants from './ReactCsvConstants'; class ReactCsvActions { constructor() {} /** * Activate the undo function. Triggered in <Sheet>. */ undo() { ReactCsvDispatcher.dispatch({ actionType: ReactCsvConstants.UNDO, data: null }); } /** * Activate the redo function. Triggered in <Sheet>. */ redo() { ReactCsvDispatcher.dispatch({ actionType: ReactCsvConstants.REDO, data: null }); } /** * Activate the reset function. Triggered in <Toolbar>. */ reset() { ReactCsvDispatcher.dispatch({ actionType: ReactCsvConstants.RESET, data: null }); } /** * Updates an input value while typing changes. Triggered in <Cell>. */ updateValue(e) { ReactCsvDispatcher.dispatch({ actionType: ReactCsvConstants.TYPING_INPUT, data: e }); } /** * Activate the save function. Triggered in <Cell>. */ save(e) { switch (e.target.value) { case '': case null: case undefined: return; } ReactCsvDispatcher.dispatch({ actionType: ReactCsvConstants.SAVE_INPUT, data: e }); } /** * Configure the data store state object. * @param {object} config Configuration settings to merge with state object. */ initializeDataStore(config) { if (typeof config !== 'object') { return; } ReactCsvDispatcher.dispatch({ actionType: ReactCsvConstants.CONFIGURE_DATA_STORE, data: config }); } }; export default new ReactCsvActions();
davidtimmons/react-csv
ReactCsv/flux/ReactCsvActions.js
JavaScript
mit
1,786
# docker-java-dev-env Basic Java development environment in Docker Command to run ```sh docker run -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY matthewwerny/java-dev-env ```
matthewwerny/docker-java-dev-env
README.md
Markdown
mit
189
#include <iostream> #include <vector> using namespace std; //Valid Indexes are from [0, n-1] and value are from [0, k-1] //Digits are taken from LSB template<class T, size_t digits, size_t k> class RadixSort{ void stableCountingSort(T a[], int d, int n, int (*get)(T, int)){ int position[k] = {}; T b[k]; for (int i = 0; i < n; i++) { ++position[get(a[i], d)]; } for (int i = 1; i < k; i++) { position[i] += position[i-1]; } for (int i = n-1; i >= 0; i--) { b[position[get(a[i], d)]--] = a[i]; } for (int i = 0; i < n; i++) { a[i] = b[i+1]; } } public: void sort(T a[], int n, int (*get)(T, int)){ for (int i = 1; i <= digits; i++) { stableCountingSort(a, i, n, get); } }; };
dragonslayerx/Competitive-Programming-Repository
src/misc/radix_sort.cpp
C++
mit
853
This is new file on branch new add yes after add ssh
deneuv34/refactory-latihan
newfile.md
Markdown
mit
54
import collection.mutable.Stack import org.scalatest._ import model.Movie class ExampleSpec extends FlatSpec with Matchers { "A Stack" should "pop values in last-in-first-out order" in { val stack = new Stack[Int] stack.push(1) stack.push(2) stack.pop() should be (2) stack.pop() should be (1) } it should "throw NoSuchElementException if an empty stack is popped" in { val emptyStack = new Stack[Int] a [NoSuchElementException] should be thrownBy { emptyStack.pop() } } "Movie" should "provide movie objects" in { val movies: Seq[Movie] = Movie.list movies.length should be (5) } }
Hofmaier/comstock
movierecommenderweb/test/ExampleSpec.scala
Scala
mit
648
<?php namespace Jmikola\AutoLogin\User; use Jmikola\AutoLogin\Exception\AutoLoginTokenNotFoundException; use Symfony\Component\Security\Core\User\UserInterface; interface AutoLoginUserProviderInterface { /** * Loads the user for the given auto-login token. * * This method must throw AutoLoginTokenNotFoundException if the user is not * found. * * @param string $key * @return UserInterface * @throws AutoLoginTokenNotFoundException if the user is not found */ public function loadUserByAutoLoginToken($key) : UserInterface; }
jmikola/AutoLogin
src/User/AutoLoginUserProviderInterface.php
PHP
mit
583
module SearchKit module Clients autoload :Documents, 'search_kit/clients/documents' autoload :Events, 'search_kit/clients/events' autoload :Indices, 'search_kit/clients/indices' autoload :Keys, 'search_kit/clients/keys' autoload :Populate, 'search_kit/clients/populate' autoload :Scaffold, 'search_kit/clients/scaffold' autoload :Search, 'search_kit/clients/search' autoload :Subscribers, 'search_kit/clients/subscribers' end end
qbox-io/search-kit
lib/search_kit/clients.rb
Ruby
mit
495
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this notice and otherwise comply with the Use Terms. /*--- es5id: 15.2.3.5-4-156 description: > Object.create - 'value' property of one property in 'Properties' is own data property that overrides an inherited data property (8.10.5 step 5.a) includes: [runTestCase.js] ---*/ function testcase() { var proto = { value: "inheritedDataProperty" }; var ConstructFun = function () { }; ConstructFun.prototype = proto; var descObj = new ConstructFun(); descObj.value = "ownDataProperty"; var newObj = Object.create({}, { prop: descObj }); return newObj.prop === "ownDataProperty"; } runTestCase(testcase);
PiotrDabkowski/Js2Py
tests/test_cases/built-ins/Object/create/15.2.3.5-4-156.js
JavaScript
mit
1,034
#include "addressbookpage.h" #include "ui_addressbookpage.h" #include "addresstablemodel.h" #include "optionsmodel.h" #include "bitcoingui.h" #include "editaddressdialog.h" #include "csvmodelwriter.h" #include "guiutil.h" #ifdef USE_QRCODE #include "qrcodedialog.h" #endif #include <QSortFilterProxyModel> #include <QClipboard> #include <QMessageBox> #include <QMenu> AddressBookPage::AddressBookPage(Mode mode, Tabs tab, QWidget *parent) : QDialog(parent), ui(new Ui::AddressBookPage), model(0), optionsModel(0), mode(mode), tab(tab) { ui->setupUi(this); #ifdef Q_OS_MAC // Icons on push buttons are very uncommon on Mac ui->newAddress->setIcon(QIcon()); ui->copyAddress->setIcon(QIcon()); ui->deleteAddress->setIcon(QIcon()); ui->verifyMessage->setIcon(QIcon()); ui->signMessage->setIcon(QIcon()); ui->exportButton->setIcon(QIcon()); #endif #ifndef USE_QRCODE ui->showQRCode->setVisible(false); #endif switch(mode) { case ForSending: connect(ui->tableView, SIGNAL(doubleClicked(QModelIndex)), this, SLOT(accept())); ui->tableView->setEditTriggers(QAbstractItemView::NoEditTriggers); ui->tableView->setFocus(); ui->exportButton->hide(); break; case ForEditing: ui->buttonBox->setVisible(false); break; } switch(tab) { case SendingTab: ui->labelExplanation->setText(tr("These are your UniversalMolecule addresses for sending payments. Always check the amount and the receiving address before sending coins.")); ui->deleteAddress->setVisible(true); ui->signMessage->setVisible(false); break; case ReceivingTab: ui->labelExplanation->setText(tr("These are your UniversalMolecule 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.")); ui->deleteAddress->setVisible(false); ui->signMessage->setVisible(true); break; } // Context menu actions QAction *copyAddressAction = new QAction(ui->copyAddress->text(), this); QAction *copyLabelAction = new QAction(tr("Copy &Label"), this); QAction *editAction = new QAction(tr("&Edit"), this); QAction *sendCoinsAction = new QAction(tr("Send &Coins"), this); QAction *showQRCodeAction = new QAction(ui->showQRCode->text(), this); QAction *signMessageAction = new QAction(ui->signMessage->text(), this); QAction *verifyMessageAction = new QAction(ui->verifyMessage->text(), this); deleteAction = new QAction(ui->deleteAddress->text(), this); // Build context menu contextMenu = new QMenu(); contextMenu->addAction(copyAddressAction); contextMenu->addAction(copyLabelAction); contextMenu->addAction(editAction); if(tab == SendingTab) contextMenu->addAction(deleteAction); contextMenu->addSeparator(); if(tab == SendingTab) contextMenu->addAction(sendCoinsAction); #ifdef USE_QRCODE contextMenu->addAction(showQRCodeAction); #endif if(tab == ReceivingTab) contextMenu->addAction(signMessageAction); else if(tab == SendingTab) contextMenu->addAction(verifyMessageAction); // Connect signals for context menu actions connect(copyAddressAction, SIGNAL(triggered()), this, SLOT(on_copyAddress_clicked())); connect(copyLabelAction, SIGNAL(triggered()), this, SLOT(onCopyLabelAction())); connect(editAction, SIGNAL(triggered()), this, SLOT(onEditAction())); connect(deleteAction, SIGNAL(triggered()), this, SLOT(on_deleteAddress_clicked())); connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(onSendCoinsAction())); connect(showQRCodeAction, SIGNAL(triggered()), this, SLOT(on_showQRCode_clicked())); connect(signMessageAction, SIGNAL(triggered()), this, SLOT(on_signMessage_clicked())); connect(verifyMessageAction, SIGNAL(triggered()), this, SLOT(on_verifyMessage_clicked())); connect(ui->tableView, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(contextualMenu(QPoint))); // Pass through accept action from button box connect(ui->buttonBox, SIGNAL(accepted()), this, SLOT(accept())); } AddressBookPage::~AddressBookPage() { delete ui; } void AddressBookPage::setModel(AddressTableModel *model) { this->model = model; if(!model) return; proxyModel = new QSortFilterProxyModel(this); proxyModel->setSourceModel(model); proxyModel->setDynamicSortFilter(true); proxyModel->setSortCaseSensitivity(Qt::CaseInsensitive); proxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive); switch(tab) { case ReceivingTab: // Receive filter proxyModel->setFilterRole(AddressTableModel::TypeRole); proxyModel->setFilterFixedString(AddressTableModel::Receive); break; case SendingTab: // Send filter proxyModel->setFilterRole(AddressTableModel::TypeRole); proxyModel->setFilterFixedString(AddressTableModel::Send); break; } ui->tableView->setModel(proxyModel); ui->tableView->sortByColumn(0, Qt::AscendingOrder); // Set column widths ui->tableView->horizontalHeader()->setResizeMode(AddressTableModel::Label, QHeaderView::Stretch); ui->tableView->horizontalHeader()->setResizeMode(AddressTableModel::Address, QHeaderView::ResizeToContents); connect(ui->tableView->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), this, SLOT(selectionChanged())); // Select row for newly created address connect(model, SIGNAL(rowsInserted(QModelIndex,int,int)), this, SLOT(selectNewAddress(QModelIndex,int,int))); selectionChanged(); } void AddressBookPage::setOptionsModel(OptionsModel *optionsModel) { this->optionsModel = optionsModel; } void AddressBookPage::on_copyAddress_clicked() { GUIUtil::copyEntryData(ui->tableView, AddressTableModel::Address); } void AddressBookPage::onCopyLabelAction() { GUIUtil::copyEntryData(ui->tableView, AddressTableModel::Label); } void AddressBookPage::onEditAction() { if(!ui->tableView->selectionModel()) return; QModelIndexList indexes = ui->tableView->selectionModel()->selectedRows(); if(indexes.isEmpty()) return; EditAddressDialog dlg( tab == SendingTab ? EditAddressDialog::EditSendingAddress : EditAddressDialog::EditReceivingAddress); dlg.setModel(model); QModelIndex origIndex = proxyModel->mapToSource(indexes.at(0)); dlg.loadRow(origIndex.row()); dlg.exec(); } void AddressBookPage::on_signMessage_clicked() { QTableView *table = ui->tableView; QModelIndexList indexes = table->selectionModel()->selectedRows(AddressTableModel::Address); foreach (QModelIndex index, indexes) { QString address = index.data().toString(); emit signMessage(address); } } void AddressBookPage::on_verifyMessage_clicked() { QTableView *table = ui->tableView; QModelIndexList indexes = table->selectionModel()->selectedRows(AddressTableModel::Address); foreach (QModelIndex index, indexes) { QString address = index.data().toString(); emit verifyMessage(address); } } void AddressBookPage::onSendCoinsAction() { QTableView *table = ui->tableView; QModelIndexList indexes = table->selectionModel()->selectedRows(AddressTableModel::Address); foreach (QModelIndex index, indexes) { QString address = index.data().toString(); emit sendCoins(address); } } void AddressBookPage::on_newAddress_clicked() { if(!model) return; EditAddressDialog dlg( tab == SendingTab ? EditAddressDialog::NewSendingAddress : EditAddressDialog::NewReceivingAddress, this); dlg.setModel(model); if(dlg.exec()) { newAddressToSelect = dlg.getAddress(); } } void AddressBookPage::on_deleteAddress_clicked() { QTableView *table = ui->tableView; if(!table->selectionModel()) return; QModelIndexList indexes = table->selectionModel()->selectedRows(); if(!indexes.isEmpty()) { table->model()->removeRow(indexes.at(0).row()); } } void AddressBookPage::selectionChanged() { // Set button states based on selected tab and selection QTableView *table = ui->tableView; if(!table->selectionModel()) return; if(table->selectionModel()->hasSelection()) { switch(tab) { case SendingTab: // In sending tab, allow deletion of selection ui->deleteAddress->setEnabled(true); ui->deleteAddress->setVisible(true); deleteAction->setEnabled(true); ui->signMessage->setEnabled(false); ui->signMessage->setVisible(false); ui->verifyMessage->setEnabled(true); ui->verifyMessage->setVisible(true); break; case ReceivingTab: // Deleting receiving addresses, however, is not allowed ui->deleteAddress->setEnabled(false); ui->deleteAddress->setVisible(false); deleteAction->setEnabled(false); ui->signMessage->setEnabled(true); ui->signMessage->setVisible(true); ui->verifyMessage->setEnabled(false); ui->verifyMessage->setVisible(false); break; } ui->copyAddress->setEnabled(true); ui->showQRCode->setEnabled(true); } else { ui->deleteAddress->setEnabled(false); ui->showQRCode->setEnabled(false); ui->copyAddress->setEnabled(false); ui->signMessage->setEnabled(false); ui->verifyMessage->setEnabled(false); } } void AddressBookPage::done(int retval) { QTableView *table = ui->tableView; if(!table->selectionModel() || !table->model()) return; // When this is a tab/widget and not a model dialog, ignore "done" if(mode == ForEditing) return; // Figure out which address was selected, and return it QModelIndexList indexes = table->selectionModel()->selectedRows(AddressTableModel::Address); foreach (QModelIndex index, indexes) { QVariant address = table->model()->data(index); returnValue = address.toString(); } if(returnValue.isEmpty()) { // If no address entry selected, return rejected retval = Rejected; } QDialog::done(retval); } void AddressBookPage::on_exportButton_clicked() { // CSV is currently the only supported format QString filename = GUIUtil::getSaveFileName( this, tr("Export Address Book Data"), QString(), tr("Comma separated file (*.csv)")); if (filename.isNull()) return; CSVModelWriter writer(filename); // name, column, role writer.setModel(proxyModel); writer.addColumn("Label", AddressTableModel::Label, Qt::EditRole); writer.addColumn("Address", AddressTableModel::Address, Qt::EditRole); if(!writer.write()) { QMessageBox::critical(this, tr("Error exporting"), tr("Could not write to file %1.").arg(filename), QMessageBox::Abort, QMessageBox::Abort); } } void AddressBookPage::on_showQRCode_clicked() { #ifdef USE_QRCODE QTableView *table = ui->tableView; QModelIndexList indexes = table->selectionModel()->selectedRows(AddressTableModel::Address); foreach (QModelIndex index, indexes) { QString address = index.data().toString(); QString label = index.sibling(index.row(), 0).data(Qt::EditRole).toString(); QRCodeDialog *dialog = new QRCodeDialog(address, label, tab == ReceivingTab, this); dialog->setModel(optionsModel); dialog->setAttribute(Qt::WA_DeleteOnClose); dialog->show(); } #endif } void AddressBookPage::contextualMenu(const QPoint &point) { QModelIndex index = ui->tableView->indexAt(point); if(index.isValid()) { contextMenu->exec(QCursor::pos()); } } void AddressBookPage::selectNewAddress(const QModelIndex &parent, int begin, int /*end*/) { QModelIndex idx = proxyModel->mapFromSource(model->index(begin, AddressTableModel::Address, parent)); if(idx.isValid() && (idx.data(Qt::EditRole).toString() == newAddressToSelect)) { // Select row of newly created address, once ui->tableView->setFocus(); ui->tableView->selectRow(idx.row()); newAddressToSelect.clear(); } }
cinnamoncoin/universalmol
src/qt/addressbookpage.cpp
C++
mit
12,529
<?php /** * URL helper functions * * @package RedLove * @subpackage PHP * @category Functions * @author Joshua Logsdon <[email protected]> * @author Various from CodeIgniter to Internet * @copyright Copyright (c) 2015, Joshua Logsdon (http://joshualogsdon.com/) * @license http://opensource.org/licenses/MIT MIT License * @link https://github.com/logsdon/redlove * @link http://redlove.org * @version 0.0.0 * */ // -------------------------------------------------------------------- if ( ! function_exists('base_url') ) { function base_url( $uri = '' ) { //return ROOT; return BASE_URL . ltrim($uri, '/'); } } // -------------------------------------------------------------------- if ( ! function_exists('site_url') ) { function site_url( $uri = '' ) { return BASE_URL . ltrim($uri, '/'); } } // -------------------------------------------------------------------- if ( ! function_exists('theme_base_url') ) { function theme_base_url( $uri = '' ) { //return ROOT . THEME_ROOT; return BASE_URL . THEME_ROOT . ltrim($uri, '/'); } } // -------------------------------------------------------------------- if ( ! function_exists('theme_url') ) { function theme_url( $uri = '' ) { return BASE_URL . THEME_ROOT . ltrim($uri, '/'); } } // -------------------------------------------------------------------- if ( ! function_exists('theme_nav_url') ) { function theme_nav_url( $uri = '' ) { return BASE_URL . THEME_NAV_ROOT . ltrim($uri, '/'); } } // -------------------------------------------------------------------- if ( ! function_exists('redlove_url') ) { function redlove_url( $uri = '' ) { return BASE_URL . REDLOVE_ROOT . ltrim($uri, '/'); } } // -------------------------------------------------------------------- if ( ! function_exists('cb_url') ) { /** * Get cache busting url * * @param string $file * @param bool $bypass (optional) * @return string Url with cache busting versioning applied */ function cb_url( $file, $bypass = false ) { return base_url() . ltrim(get_cache_busting_filename($file, $bypass), '/'); } } // -------------------------------------------------------------------- if ( ! function_exists('theme_cb_url') ) { /** * Get cache busting url * * @param string $file * @param bool $bypass (optional) * @return string Url with cache busting versioning applied */ function theme_cb_url( $file, $bypass = false ) { return cb_url(THEME_ROOT . $file, $bypass); } } // -------------------------------------------------------------------- if ( ! function_exists('redlove_cb_url') ) { /** * Get cache busting url * * @param string $file * @param bool $bypass (optional) * @return string Url with cache busting versioning applied */ function redlove_cb_url( $file, $bypass = false ) { return cb_url(REDLOVE_ROOT . $file, $bypass); } } // -------------------------------------------------------------------- if ( ! function_exists('anchor')) { function anchor($uri = '', $title = '', $attributes = '') { $title = (string) $title; if ( ! is_array($uri)) { $site_url = ( ! preg_match('!^\w+://! i', $uri)) ? site_url($uri) : $uri; } else { $site_url = site_url($uri); } if ($title == '') { $title = $site_url; } return '<a href="'.$site_url.'"'.$attributes.'>'.$title.'</a>'; } } // ------------------------------------------------------------------------ if ( ! function_exists('page_seg_is') ) { function page_seg_is( $page, $seg = 0, $strict = FALSE ) { global $PAGE_segments; if ( $seg < 0 ) $seg += count($PAGE_segments); if ( $strict || $page == '' ) return ($PAGE_segments[$seg] === $page); return (strpos(strtolower($PAGE_segments[$seg]), strtolower($page)) === 0); } } // -------------------------------------------------------------------- if ( ! function_exists('page_is') ) { function page_is( $page, $strict = FALSE ) { if ( is_array($page) ) return page_in($page, $strict); elseif ( $strict || $page == '' ) return (PAGE === $page); return (strpos(strtolower(PAGE), strtolower($page)) === 0); } } // -------------------------------------------------------------------- if ( ! function_exists('page_in') ) { function page_in( $array, $strict = FALSE ) { return (deep_in_array(PAGE, $array, $strict)); } } // -------------------------------------------------------------------- if ( ! function_exists('deep_in_array') ) { //http://www.php.net/manual/en/function.in-array.php#64161 function deep_in_array( $value, $array, $strict = FALSE ) { foreach ( $array as $item ) { if ( is_array($item) ) { $ret = deep_in_array($value, $item, $strict); } //else $ret = (! $strict) ? strtolower($item)==strtolower($value) : $item==$value; else { if ( $item == '' ) { $ret = ($item === $value); } else { $ret = (! $strict) ? strpos(strtolower($value), strtolower($item)) === 0 : $item == $value; } } if ( $ret ) return $ret; } return FALSE; } } // -------------------------------------------------------------------- /** * Create URL Title * * Takes a "title" string as input and creates a * human-friendly URL string with either a dash * or an underscore as the word separator. * * @access public * @param string the string * @param string the separator: dash, or underscore * @return string */ if ( ! function_exists('url_title')) { function url_title( $str, $separator = 'dash', $lowercase = FALSE ) { if ( $separator == 'dash' ) { $search = '_'; $replace = '-'; } else { $search = '-'; $replace = '_'; } $trans = array( '&\#\d+?;' => '', '&\S+?;' => '', '\s+' => $replace, '[^a-z0-9\-_]' => '',// JOSHUA LOGSDON - Removed period // \. $replace . '+' => $replace, $replace . '$' => $replace, '^' . $replace => $replace, '\.+$' => '', ); $str = strip_tags($str); foreach ( $trans as $key => $val ) { $str = preg_replace("#" . $key . "#i", $val, $str); } if ( $lowercase ) { $str = strtolower($str); } return trim(stripslashes($str)); } } // --------------------------------------------------------------------
logsdon/redlove
php/functions/url.php
PHP
mit
6,178
// :: () → string export function hello() { return "hello" } // :: number export var x = 10 // :: string export default "hi"
marijnh/getdocs
test/exported.js
JavaScript
mit
129
using System; using System.Globalization; using System.Windows.Data; namespace LagoVista.WPF.UI { public class EnabledConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo language) { if (value == null) return false; if (parameter == null) { return !String.IsNullOrEmpty(value.ToString()); } else { var minLength = System.Convert.ToInt32(parameter); return value.ToString().Length >= Math.Max(1, minLength); } } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo language) { throw new NotImplementedException(); } } }
LagoVista/wpf
src/LagoVista.UI.WPF/Converters/EnabledConverter.cs
C#
mit
839
module IbanCalculator class InvalidData < StandardError CODES = { 128 => [:account_number, [:checksum_failed]], 256 => [:bank_code, [:not_found]], 512 => [:account_number, [:invalid_length]], 1024 => [:bank_code, [:invalid_length]], 2048 => [:iban, [:checksum_failed]], 4096 => [:base, [:data_missing]], 8192 => [:country, [:not_supported]], } attr_accessor :errors def initialize(msg, error_code) self.errors = resolve_error_code(error_code) super(msg) end def resolve_error_code(error_code) known_error_codes(error_code).reduce(Hash.new([])) do |hsh, item| error = CODES[item] hsh[error[0]] += error[1] hsh end end def known_error_codes(error_code) error_codes(error_code) & CODES.keys end def error_codes(n) (0..13).map { |i| n & 2**i } - [0] end end end
railslove/iban_calculator
lib/iban_calculator/invalid_data.rb
Ruby
mit
953
module.exports = { specs: { files: ["<%= settings.rootDir %><%= settings.patterns.specs %>"], tasks: ["watch-specs"] }, grunt: { files: ["<%= settings.patterns.grunt %>"], options: { reload: true }, tasks: ["default"] }, scripts: { files: [ "<%= settings.rootDir %><%= settings.patterns.scripts %>", "!<%= settings.rootDir %><%= settings.patterns.scriptsVendor %>", "!<%= settings.rootDir %><%= settings.patterns.excludeScripts %>"], tasks: ["watch-scripts"], options: { spawn: false, livereload: 1360 } }, stylesheets: { files: ["<%= settings.rootDir %><%= settings.patterns.less %>"], tasks: ["watch-stylesheets"], options: { spawn: false, livereload: 1360 } }, sprites: { files: ["<%= settings.rootDir %><%= settings.patterns.sprites %>"], tasks: ["watch-sprites"], options: { spawn: false, livereload: 1360 } }, coreScripts: { files: ["<%= settings.scriptCoreDir %><%= settings.patterns.sharedScripts %>"], tasks: ["watch-core"], options: { spawn: false, livereload: 1360 } } }
christianbach/generator-dn
lib/templates/application/grunt/tasks/options/watch.js
JavaScript
mit
1,143
node-flares ===========
sdolard/node-flares
README.md
Markdown
mit
24
use ffi::*; use caps::Caps; use buffer::Buffer; use videoframe::VideoFrame; use std::mem; use std::ptr; use reference::Reference; use miniobject::MiniObject; unsafe impl Send for Sample {} #[derive(Clone)] pub struct Sample{ sample: MiniObject } impl Sample{ pub unsafe fn new(sample: *mut GstSample) -> Option<Sample>{ MiniObject::new_from_gst_miniobject(sample as *mut GstMiniObject) .map(|miniobject| Sample{ sample: miniobject }) } /// Get the buffer associated with sample or None when there is no buffer. pub fn buffer(&self) -> Option<Buffer>{ unsafe{ let buffer = gst_sample_get_buffer(mem::transmute(self.gst_sample())); if buffer != ptr::null_mut(){ Buffer::new(gst_mini_object_ref(buffer as *mut GstMiniObject) as *mut GstBuffer) }else{ None } } } /// Get the caps associated with sample or None when there's no caps pub fn caps(&self) -> Option<Caps>{ unsafe{ let caps = gst_sample_get_caps(mem::transmute(self.gst_sample())); if caps != ptr::null_mut(){ Caps::new(gst_mini_object_ref(caps as *mut GstMiniObject) as *mut GstCaps) }else{ None } } } /// Get the segment associated with sample pub fn segment(&self) -> GstSegment{ unsafe{ (*gst_sample_get_segment(mem::transmute(self.gst_sample()))) } } /// Get a video frame from this sample if it contains one pub fn video_frame(&self) -> Option<VideoFrame>{ let buffer = match self.buffer(){ Some(buffer) => buffer, None => return None }; let vi = match self.caps(){ Some(caps) => match caps.video_info(){ Some(vi) => vi, None => return None }, None => return None }; unsafe{ VideoFrame::new(vi, buffer) } } pub unsafe fn gst_sample(&self) -> *const GstSample{ self.sample.gst_miniobject() as *const GstSample } pub unsafe fn gst_sample_mut(&mut self) -> *mut GstSample{ self.sample.gst_miniobject_mut() as *mut GstSample } } impl ::Transfer<GstSample> for Sample{ unsafe fn transfer(self) -> *mut GstSample{ self.sample.transfer() as *mut GstSample } } impl Reference for Sample{ fn reference(&self) -> Sample{ Sample{ sample: self.sample.reference() } } }
arturoc/gstreamer1.0-rs
src/sample.rs
Rust
mit
2,433
<!DOCTYPE html> <html> <head> <title>Bootstrap Table Examples For Test</title> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="description" content="An extended Bootstrap table with radio, checkbox, sort, pagination, and other added features."> <meta name="keywords" content="table, bootstrap, bootstrap plugin, bootstrap resources, bootstrap table, jQuery plugin"> <meta name="author" content="Zhixin Wen, and Bootstrap table contributors"> <!-- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.css"> <link rel="stylesheet" href="https://unpkg.com/@fortawesome/[email protected]/css/all.min.css"> <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.js"></script> <script src="assets/js/template.js?v=VERSION"></script> </head> <body> <div id="example"></div> </body> </html>
wenzhixin/bootstrap-table-examples
for-test-semantic.html
HTML
mit
1,091
module PasswordHolder extend ActiveSupport::Concern def password=(raw_password) if raw_password.kind_of?(String) self.hashed_password = BCrypt::Password.create(raw_password) elsif raw_password.nil? self.hashed_password = nil end end end
yukihirop/baukis
app/models/concerns/password_holder.rb
Ruby
mit
269
require 'test_helper' require 'msgpack' class EventMachineExperimentTest < EtlTestCase MB = 1024.0 * 1024.0 LINES = 800000 LINE = %q{"0101000000020","01","16 SE 2ND STREET LLC","","","16 SE 2ND STREET LLC","","505 PARK AVE #18 FL","NEW YORK","NY","10022","USA","16 SE 2 ST","16","SE","2","","ST","","","Miami","33131-2103","2865","6401","0.00","60198.00","1.3820","0","0.00","0","0","0","0","0","0","0101","2014","15049500","0","6789","15056289","0","0","0","0","0","0","0","0","0","0","15056289","0","15056289","0","15056289","0","15056289","0","15056289","2013","5718810","0","6789","5725599","0","0","0","0","0","0","0","0","0","0","5725599","0","5725599","0","5725599","0","5725599","0","5725599","2012","5718810","0","8764","5727574","0","0","0","0","0","0","0","0","0","0","5727574","0","5727574","0","5727574","0","5727574","0","5727574"} SIZE = LINE.length * LINES def setup begin ActiveRecord::Base.connection_pool.disconnect! rescue ActiveRecord::ConnectionNotEstablished # This is fine if ActiveRecord isn't in use end end test "how fast is Ruby native IO reads" do #path = get_test_data_file_path('parcel_test.csv') path = get_test_data_file_path('../../../rawdata/PublicParcelExtract.csv') skip("#{path} not found") unless File.exist?(path) File.open(path, 'r') do |file| size = File.size(file) count = 0 time = Benchmark.measure do file.each do |line| count += 1 end end puts "Ruby native file IO: Read #{size / MB} MB/#{count} lines in #{time.real}. #{size / MB / time.real} MB/sec #{count / time.real} lines/sec" end end test "how fast can we write to /dev/null" do time = Benchmark.measure do File.open('/dev/null', 'w') do |write| write.binmode count = 0 LINES.times do write.write LINE count += 1 end end end puts "write to /dev/null: Wrote #{SIZE / MB} MB/#{LINES} lines in #{time.real}. #{SIZE / MB / time.real} MB/sec #{LINES / time.real} lines/sec" end test "how fast can we syswrite to /dev/null" do time = Benchmark.measure do File.open('/dev/null', 'w') do |write| write.binmode count = 0 LINES.times do write.syswrite LINE count += 1 end end end puts "syswrite to /dev/null: Wrote #{SIZE / MB} MB/#{LINES} lines in #{time.real}. #{SIZE / MB / time.real} MB/sec #{LINES / time.real} lines/sec" end test "are pipes within the same process slow" do read, write = IO.pipe time = Benchmark.measure do count = 0 LINES.times do write.puts LINE assert_equal LINE, read.gets.rstrip count += 1 end write.close assert read.eof? read.close end puts "Pipes in process: Read #{SIZE / MB} MB/#{LINES} lines in #{time.real}. #{SIZE / MB / time.real} MB/sec #{LINES / time.real} lines/sec" end test "are pipes to a child forked process slow" do read, write = IO.pipe time = Benchmark.measure do child_id = fork { count = 0 write.close read.each do |line| assert_equal LINE, line.rstrip count += 1 if count % 1000 == 0 #puts "from child: #{count} rows processed" end end read.close assert_equal LINES, count } count = 0 read.close LINES.times do write.puts LINE count += 1 if count % 1000 == 0 #puts "from parent: #{count} rows processed" end end write.close Process.waitall end puts "Pipes: Read #{SIZE / MB} MB/#{LINES} lines in #{time.real}. #{SIZE / MB / time.real} MB/sec #{LINES / time.real} lines/sec" end test "can we speed things up with binary transfers and syswrite" do read, write = IO.pipe read.binmode write.binmode time = Benchmark.measure do child_id = fork { bytes = 0 write.close buffer = String.new() while !read.eof? do data = read.readpartial(4096) bytes += data.length end read.close assert_equal SIZE, bytes } count = 0 read.close LINES.times do write.syswrite LINE count += 1 if count % 1000 == 0 #puts "from parent: #{count} rows processed" end end write.close Process.waitall end puts "Binary pipes and syswrite: Read #{SIZE / MB} MB/#{LINES} lines in #{time.real}. #{SIZE / MB / time.real} MB/sec #{LINES / time.real} lines/sec" end test "can we speed things up with binary transfers and syswrite and sysread" do read, write = IO.pipe read.binmode read.sync = true write.binmode write.sync = true time = Benchmark.measure do child_id = fork { bytes = 0 write.close buffer = String.new() read_array = [read] while true do begin IO.select read_array data = read.sysread(4096, buffer) bytes += data.length rescue EOFError break end end read.close assert_equal SIZE, bytes } count = 0 read.close LINES.times do write.syswrite LINE count += 1 if count % 1000 == 0 #puts "from parent: #{count} rows processed" end end write.close Process.waitall end puts "Binary pipes and syswrite and sysread: Read #{SIZE / MB} MB/#{LINES} lines in #{time.real}. #{SIZE / MB / time.real} MB/sec #{LINES / time.real} lines/sec" end test "can we speed things up more with big preallocated buffers" do read, write = IO.pipe read.binmode read.sync = true write.binmode write.sync = true time = Benchmark.measure do buffer = '\0' * 65536 child_id = fork { bytes = 0 write.close read_array = [read] while true do begin IO.select read_array data = read.sysread(65536, buffer) bytes += data.length rescue EOFError break end end read.close assert_equal SIZE, bytes } count = 0 read.close LINES.times do write.syswrite LINE count += 1 if count % 1000 == 0 #puts "from parent: #{count} rows processed" end end write.close Process.waitall end puts "Binary pipes and syswrite and sysread and 64k buff: Read #{SIZE / MB} MB/#{LINES} lines in #{time.real}. #{SIZE / MB / time.real} MB/sec #{LINES / time.real} lines/sec" end test "how fast can we go with msgpack" do read, write = IO.pipe read.binmode read.sync = true write.binmode write.sync = true time = Benchmark.measure do buffer = '\0' * 65536 child_id = fork { bytes = 0 objects = 0 write.close unpacker = MessagePack::Unpacker.new while true do begin data = read.sysread(65536, buffer) bytes += data.length unpacker.feed_each(data) do |obj| #puts "obj: #{obj}" assert_equal LINE, obj["line"] objects += 1 end rescue EOFError break end end read.close assert_equal LINES, objects } count = 0 read.close obj = { :line => nil } LINES.times do obj[:line] = LINE write.syswrite obj.to_msgpack count += 1 if count % 1000 == 0 #puts "from parent: #{count} rows processed" end end write.close assert_equal LINES, count Process.waitall end puts "With msgpack: Read #{SIZE / MB} MB/#{LINES} lines in #{time.real}. #{SIZE / MB / time.real} MB/sec #{LINES / time.real} lines/sec" end test "how fast can we go with our msgpack serializing wrappers" do read, write = IO.pipe time = Benchmark.measure do child_id = fork { objects = 0 write.close reader = Prima::MsgpackIoReader.new read reader.each do |obj| #puts "obj: #{obj}" assert_equal LINE, obj["line"] objects += 1 end read.close assert_equal LINES, objects } count = 0 read.close obj = { :line => nil } writer = Prima::MsgpackIoWriter.new write LINES.times do obj[:line] = LINE writer.write obj count += 1 if count % 1000 == 0 #puts "from parent: #{count} rows processed" end end write.close assert_equal LINES, count Process.waitall end puts "With msgpack IO adapters: Read #{LINES} lines in #{time.real}. #{LINES / time.real} lines/sec" end test "how slow are our ETL classes" do read, write = IO.pipe time = Benchmark.measure do child_id = fork { begin objects = 0 write.close step = Prima::NullStep.new step.incoming = read step.run rescue Interrupt => e sleep 1 puts "*************************************" puts "The child has been interrupted: " puts e.to_s puts "*************************************" raise e end } count = 0 read.close obj = { :line => nil } writer = Prima::MsgpackIoWriter.new write LINES.times do obj[:line] = LINE writer.write obj count += 1 if count % 1000 == 0 #puts "from parent: #{count} rows processed" end end write.close assert_equal LINES, count Process.waitall end puts "With NullStep ETL class as reader: Read #{LINES} lines in #{time.real}. #{LINES / time.real} lines/sec" end test "how fast is msgpack by itself" do time = Benchmark.measure do obj = { :line => nil } LINES.times do obj[:line] = LINE obj.to_msgpack end end puts "msgpack packer: #{SIZE / MB} MB/#{LINES} lines in #{time.real}. #{SIZE / MB / time.real} MB/sec #{LINES / time.real} lines/sec" time = Benchmark.measure do unpacker = MessagePack::Unpacker.new obj = { :line => LINE } data = obj.to_msgpack LINES.times do unpacker.feed_each(data) do |obj| end end end puts "msgpack unpacker: #{SIZE / MB} MB/#{LINES} lines in #{time.real}. #{SIZE / MB / time.real} MB/sec #{LINES / time.real} lines/sec" end end
anelson/prima
test/lib/prima/performance_sandbox.rb
Ruby
mit
9,694
#include "aes_128.h" #include "aes_128_key_schedule.h" #include "aes_128_shift_rows.h" #include "aes_128_s_box.h" #include "aes_128_mix_columns.h" #include <stdio.h> #include <string.h> #define AES_128_NUM_ROUNDS (10) #define AES_128_BLOCK_LEN (16) void aes_128_encrypt(unsigned char *ctext, const unsigned char *ptext, const unsigned char *key) { unsigned int r; unsigned char state[AES_128_BLOCK_LEN] = {0}; unsigned char round_keys[AES_128_BLOCK_LEN*(AES_128_NUM_ROUNDS + 1)]; /* key expansion */ aes_128_key_expansion(round_keys, key); memcpy(state, ptext, aes_128_block_len); aes_128_add_round_key(state,round_keys); for (r = 0; r < aes_128_num_rounds - 1; r++) { aes_128_sub_bytes(state); aes_128_shift_rows(state); aes_128_mix_columns(state); aes_128_add_round_key(state,round_keys + aes_128_block_len*(r+1) ); } aes_128_sub_bytes(state); aes_128_shift_rows(state); aes_128_add_round_key(state,round_keys + aes_128_block_len*aes_128_num_rounds ); memcpy(ctext, state, aes_128_block_len); } void aes_128_decrypt(unsigned char *ptext, const unsigned char *ctext, const unsigned char *key) { unsigned int r; unsigned char state[AES_128_BLOCK_LEN] = {0}; unsigned char round_keys[AES_128_BLOCK_LEN*(AES_128_NUM_ROUNDS + 1)]; aes_128_key_expansion(round_keys, key); memcpy(state, ctext, aes_128_block_len); aes_128_add_round_key(state,round_keys + aes_128_block_len*aes_128_num_rounds); for (r = 0; r < aes_128_num_rounds - 1; r++) { aes_128_inv_shift_rows(state); aes_128_inv_sub_bytes(state); aes_128_add_round_key(state,round_keys + aes_128_block_len*(aes_128_num_rounds - 1 - r) ); aes_128_inv_mix_columns(state); } aes_128_inv_shift_rows(state); aes_128_inv_sub_bytes(state); aes_128_add_round_key(state,round_keys); memcpy(ptext, state, aes_128_block_len); }
lucasg/Cryptopals
[07]_AES_in_ECB_mode/src/aes_128.c
C
mit
1,831
@echo off set COM=COM6 pushd %~dp0 mode %COM% baud=115200 parity=n data=8 >nul if "%1"=="im" ( echo "v128." >\\.\%COM% powershell -executionpolicy unrestricted .\ircsend.ps1 -from %2 -im >debug.txt 2>&1 powershell -executionpolicy unrestricted .\eject.ps1 -Eject ) else if "%1"=="tel" ( echo "v512." >\\.\%COM% powershell -executionpolicy unrestricted .\ircsend.ps1 -from %2 >debug.txt 2>&1 powershell -executionpolicy unrestricted .\eject.ps1 -Eject ) else if "%1"=="off" ( echo "v0." >\\.\%COM% powershell -executionpolicy unrestricted .\eject.ps1 -Close ) popd
deton/LyncRingNotify
notifier.bat
Batchfile
mit
596
## ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # The MIT License (MIT) # # Copyright (c) 2013, 2014 Microsmart (Pty) Ltd # # 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. # ## ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ class MenusController < Sinatra::Base include Ubiquity::Controller ## # do our mappings ## Ubiquity::Api.register do |config| config.setup controller: self, resource: Menu, path: "/menus" end ## # ## get '/' do json(paginate(find(Menu))) end end
MicrosmartSA/cosmos
web/api/controllers/menus_controller.rb
Ruby
mit
1,575
#include <iostream> int main() { int a = 78; int b = 34; while(b < a) { ++b; } std::cout<<" nuevo valor de b = "<<b<<std::endl }
MauriceGS/SO
main1.cpp
C++
mit
143
<div class="header"> <div class="container"> <h1 class="logo"><a href="{{ site.baseurl }}/">{{ site.title }}</a></h1> <nav class="nav-collapse"> <ul class="noList"> {% for link in site.navigation %}{% assign current = nil %}{% if page.url contains link.url %}{% assign current = 'current' %}{% endif %} <li class="element {% if forloop.first %}first{% endif %} {{ current }} {% if forloop.last %}last{% endif %}"> <a href="{{ link.url | prepend: site.baseurl }}">{{ link.title }}</a> </li> {% endfor %} <li> <a href="https://github.com/hyhSuper" target="_blank">GitHub</a></li> <!-- <li><a href="https://github.com/brianmaierjr/long-haul/archive/master.zip">Download Theme</a></li> --> </ul> </nav> </div> </div><!-- end .header -->
hyhSuper/hyhSuper.github.io
_includes/header.html
HTML
mit
921
#ifndef DOWNLOADPLUGIN_H #define DOWNLOADPLUGIN_H #include "uploadinterface.h" #include <QObject> #include <QtPlugin> #include <QNetworkAccessManager> #include <QQueue> #include <QUrl> #include <QTime> #include <QSet> #include <QString> #include <QFile> #include <QHash> #include <QStringList> #include <QNetworkReply> #include <QNetworkRequest> #include <QSslError> #include <QHttpMultiPart> /** * Upload item is several variables about an upload. * Used in upload queue. */ struct UploadItem { QString key; QString path; QString submitUrl; QFile *file; QTime time; int stage; int chunkCounter; bool isResume; qint64 size; qint64 start; qint64 end; qint64 sent; QByteArray historyId; }; /** * UploadInterface implementation. * \see UploadInterface for detailed comments about Upload plugin. */ class UploadPlugin : public UploadInterface { Q_OBJECT Q_PLUGIN_METADATA(IID "com.infinite.app.uploader/1.0") Q_INTERFACES(UploadInterface) public: UploadPlugin(QObject * parent = 0); ~UploadPlugin(); QString name() const; QString version() const; void setDefaultParameters(); void append(const QString &path); void append(const QStringList &pathList); void pause(const QString &path); void pause(const QStringList &pathList); void resume(const QString &path, const QString &submitUrl = ""); void resume(const QList<UploadResumePair> & pathList); void stop(const QString &path); void stop(const QStringList &pathList); void setBandwidthLimit(int bytesPerSecond); private slots: void startNextUpload(); /** * Slots for QNetworkReply. */ void uploadProgress(qint64 bytesSent, qint64 bytesTotal); void uploadFinished(); void uploadError(QNetworkReply::NetworkError); void uploadSslErrors(QList<QSslError>); private: void stopUpload(const QString &url, bool pause); void connectSignals(QNetworkReply *reply); void uploadChunk(QNetworkReply *reply); private: QNetworkAccessManager manager; QQueue<UploadItem> uploadQueue; QHash<QNetworkReply*, UploadItem> uploadHash; QHash<QString, QNetworkReply*> urlHash; QList<UploadItem> completedList; }; #endif // DOWNLOADPLUGIN_H
fuyanzhi1234/DevelopQt
UploadDownloadPlugin/qt-upload-plugin-master/uploadplugin.h
C
mit
2,263
# -*- coding: utf-8 -*- __author__ = 'ElenaSidorova' import Tkinter as tk import codecs from process import Processor from show import Show from meta_data import META class EnterText: def __init__(self, parent): self.top = tk.Toplevel(parent) top = self.top top.title(u'Ввод текста вручную') lab = tk.Label(top, text = u'Пожалуйста, введите текст для транслитерирования:').grid(row=0, column=0) self.entered = tk.Text(top, width = 50, heigh = 5, font = ('Arial', 12)) self.entered.grid(row = 1, column = 0) do = tk.Button(top, text=u'Транслитерировать', command=self.ok).grid(row=2, column=0) lab2 = tk.Label(top, text = u'Транслитерированный текст:').grid(row=3, column=0) self.result = tk.Text(top, width = 50, heigh = 5, font = ('Arial', 12)) self.result.grid(row = 4, column = 0) self.result.config(state = 'disabled') lab4 = tk.Label(top, text = u'Сохранить введенный текст в файл:').grid(row=5, column=0) self.in_text = tk.Entry(top, width = 18, bd = 3) self.in_text.grid(row = 6, column = 0) save_text = tk.Button(top, text=u'Сохранить текст', command = self.txt).grid(row=7, column=0) lab3 = tk.Label(top, text = u'Сохранить транслитерированный текст в файл:').grid(row=8, column=0) self.out = tk.Entry(top, width = 18, bd = 3) self.out.grid(row = 9, column = 0) save_result = tk.Button(top, text=u'Сохранить результат', command = self.res).grid(row=10, column=0) in_text = self.entered.get('1.0', 'end') self.show_log = tk.Button(top, text=u'Показать произведенные замены', command = self.log) self.show_log.grid(row = 11, column = 0) self.out.insert(0, 'result') self.in_text.insert(0, 'text') def ok(self): in_text = self.entered.get('1.0', 'end') new_text, changes, _, _ = Processor.process_text(in_text, 1, META['old_new_delimiters'][META['current_delimiters_text']]) self.result.config(state = 'normal') self.result.delete("1.0", "end") self.result.insert("end", new_text) self.result.config(state = 'disabled') def res(self): in_text = self.entered.get('1.0', 'end') new_text, changes, _, _ = Processor.process_text(in_text, 1, META['old_new_delimiters'][META['current_delimiters_text']]) res = self.out.get() if res != '': res_name = META['default_directory'] + res + '.txt' else: res_name = META['default_directory'] + 'result.txt' with codecs.open(res_name, 'w', 'utf-8') as ouf: ouf.write(new_text) def txt(self): in_text = self.entered.get('1.0', 'end') txt = self.in_text.get() if txt != '': txt_name = META['default_directory'] + txt + '.txt' else: txt_name = META['default_directory'] + 'text.txt' with codecs.open(txt_name, 'w', 'utf-8') as ouf2: ouf2.write(in_text) def log(self): in_text = self.entered.get('1.0', 'end') new_text, changes, _, _ = Processor.process_text(in_text, 1, META['old_new_delimiters'][META['current_delimiters_text']]) s = Show(self.top, changes)
shelari/prereform_to_contemporary
enter_data.py
Python
mit
3,486
#!/usr/bin/env stack -- stack --install-ghc runghc --package turtle {-# LANGUAGE OverloadedStrings #-} import Turtle main = do let cmd = "false" x <- shell cmd empty case x of ExitSuccess -> return () ExitFailure n -> die (cmd <> " failed with exit code: " <> repr n)
JoshuaGross/haskell-learning-log
Code/turtle/shellcase.hs
Haskell
mit
311
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>buffered_stream::fill</title> <link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.76.1"> <link rel="home" href="../../../boost_asio.html" title="Boost.Asio"> <link rel="up" href="../buffered_stream.html" title="buffered_stream"> <link rel="prev" href="close/overload2.html" title="buffered_stream::close (2 of 2 overloads)"> <link rel="next" href="fill/overload1.html" title="buffered_stream::fill (1 of 2 overloads)"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table cellpadding="2" width="100%"><tr> <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td> <td align="center"><a href="../../../../../index.html">Home</a></td> <td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td> <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> <td align="center"><a href="../../../../../more/index.htm">More</a></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="close/overload2.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../buffered_stream.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../boost_asio.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="fill/overload1.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="section"> <div class="titlepage"><div><div><h4 class="title"> <a name="boost_asio.reference.buffered_stream.fill"></a><a class="link" href="fill.html" title="buffered_stream::fill">buffered_stream::fill</a> </h4></div></div></div> <p> <a class="indexterm" name="idp66857056"></a> Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation. Throws an exception on failure. </p> <pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a class="link" href="fill/overload1.html" title="buffered_stream::fill (1 of 2 overloads)">fill</a><span class="special">();</span> <span class="emphasis"><em>&#187; <a class="link" href="fill/overload1.html" title="buffered_stream::fill (1 of 2 overloads)">more...</a></em></span> </pre> <p> Fill the buffer with some data. Returns the number of bytes placed in the buffer as a result of the operation, or 0 if an error occurred. </p> <pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a class="link" href="fill/overload2.html" title="buffered_stream::fill (2 of 2 overloads)">fill</a><span class="special">(</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">system</span><span class="special">::</span><span class="identifier">error_code</span> <span class="special">&amp;</span> <span class="identifier">ec</span><span class="special">);</span> <span class="emphasis"><em>&#187; <a class="link" href="fill/overload2.html" title="buffered_stream::fill (2 of 2 overloads)">more...</a></em></span> </pre> </div> <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> <td align="left"></td> <td align="right"><div class="copyright-footer">Copyright &#169; 2003-2015 Christopher M. Kohlhoff<p> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) </p> </div></td> </tr></table> <hr> <div class="spirit-nav"> <a accesskey="p" href="close/overload2.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../buffered_stream.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../boost_asio.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="fill/overload1.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html>
calvinfarias/IC2015-2
BOOST/boost_1_61_0/libs/asio/doc/html/boost_asio/reference/buffered_stream/fill.html
HTML
mit
4,501
# A Project working with React/Redux centering around something dealing with soccer
CoryWilson/soccer-react-redux-project
README.md
Markdown
mit
84
--- layout: page title: Smith - Salas Wedding date: 2016-05-24 author: Jacqueline Benton tags: weekly links, java status: published summary: Maecenas pretium dignissim pulvinar. Aenean ut risus convallis elit. banner: images/banner/leisure-04.jpg booking: startDate: 12/30/2016 endDate: 12/31/2016 ctyhocn: MCOSMHX groupCode: SSW published: true --- Duis non eros dolor. Duis finibus ante ut dapibus aliquet. Suspendisse finibus libero vel diam ultrices, vitae aliquet lorem pharetra. Praesent fermentum dictum velit, vel lobortis erat laoreet non. Cras sit amet accumsan justo. In odio est, ultricies ac suscipit eget, hendrerit a enim. Etiam tempor libero ac mi sollicitudin efficitur. Praesent ultrices tincidunt iaculis. Integer ac ornare arcu, ut cursus turpis. Vestibulum et finibus mauris. Pellentesque eu nulla euismod, pharetra neque sed, molestie leo. * Aenean vel tortor quis turpis porta dignissim * Nam consequat augue viverra velit vehicula scelerisque * Aliquam non tortor ac odio malesuada feugiat * Nam nec arcu eget augue finibus luctus id ut quam * Pellentesque sed lacus semper eros aliquam ultrices in sit amet justo * Nunc sed mauris ac lorem aliquet pulvinar at eget turpis. Nulla id neque cursus, tristique tellus quis, sodales ligula. Fusce tincidunt laoreet nisi, quis commodo elit rutrum quis. Morbi in nulla ac tortor laoreet ornare. Aenean lacinia urna eget dui eleifend, viverra venenatis massa finibus. Cras porta enim ut nisl sagittis venenatis. Donec condimentum ullamcorper magna, ac sodales lacus varius et. Vestibulum sed congue neque. Nulla non ipsum a odio rutrum aliquam non quis elit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Maecenas est lacus, faucibus sed sem non, aliquet imperdiet augue. Curabitur in ipsum ac dolor luctus blandit. Duis finibus sem lorem, non dapibus magna volutpat a. Pellentesque vitae accumsan velit, eget eleifend mi. Duis nec dictum orci. Nullam ornare fringilla orci, ac dictum magna bibendum sit amet.
KlishGroup/prose-pogs
pogs/M/MCOSMHX/SSW/index.md
Markdown
mit
2,034
<div class="container"> <div class="row"> <div class="col-md-6 col-md-offset-3"> <div class="panel panel-login"> <div class="panel-heading"> <div class="row"> <div class="col-xs-6"> <a href="#" class="active" id="login-form-link">Login</a> </div> <div class="col-xs-6"> <a href="#" id="register-form-link">Register</a> </div> </div> <hr> </div> <div class="panel-body"> <div class="row"> <div class="col-lg-12"> <?php echo form_error('<div class="alert alert-danger">','</div>'); ?> <?php echo form_open('login', array('id'=>'login-form' ,'style'=>'display:block;')); ?> <div class="form-group"> <input type="text" name="username" id="username" tabindex="1" class="form-control" placeholder="Username" value=""> </div> <div class="form-group"> <input type="password" name="password" id="password" tabindex="2" class="form-control" placeholder="Password"> </div> <div class="form-group text-center"> <input type="checkbox" tabindex="3" class="" name="remember" id="remember"> <label for="remember"> Remember Me</label> </div> <div class="form-group"> <div class="row"> <div class="col-sm-6 col-sm-offset-3"> <input type="submit" name="login-btn" id="login-submit" tabindex="4" class="form-control btn btn-login" value="Log In"> </div> </div> </div> <div class="form-group"> <div class="row"> <div class="col-lg-12"> <div class="text-center"> <a href="forgot" tabindex="5" class="forgot-password">Forgot Password?</a> </div> </div> </div> </div> </form> <?php echo validation_errors('<div class="alert alert-danger">','</div>'); ?> <?php echo form_error('<div class="alert alert-danger">','</div>'); ?> <?php echo form_open('register', array('id'=>'register-form', 'style'=>'display:none;')); ?> <div class="form-group"> <input type="text" name="username" id="username" tabindex="1" class="form-control" placeholder="Username" value=""> </div> <div class="form-group"> <input type="email" name="email" id="email" tabindex="1" class="form-control" placeholder="Email Address" value=""> </div> <div class="form-group"> <input type="password" name="password" id="password" tabindex="2" class="form-control" placeholder="Password"> </div> <div class="form-group"> <input type="password" name="confirmPassword" id="confirm-password" tabindex="2" class="form-control" placeholder="Confirm Password"> </div> <div class="form-group"> <div class="row"> <div class="col-sm-6 col-sm-offset-3"> <input type="submit" name="register-submit" id="register-submit" tabindex="4" class="form-control btn btn-register" value="Register Now"> </div> </div> </div> </form> </div> </div> <?php if(isset($msg)) { echo $msg; } ?> </div> </div> </div> </div> </div>
gryzon95/TicketSystem
application/views/Forms/login_w.php
PHP
mit
4,054
using System.Net.Http; using System.Threading.Tasks; namespace RapidCore.Network { /// <summary> /// Defines the interface for test cases /// used by <see cref="MockRapidHttpClient"/> /// </summary> public interface IMockRapidHttpClientTestCase { /// <summary> /// Is this the request we are looking for? /// </summary> /// <param name="request">The request to check</param> /// <returns><c>True</c> if the request matches this case, <c>false</c> otherwise.</returns> bool IsMatch(HttpRequestMessage request); /// <summary> /// Get the mock response for the given request. /// /// This method is async, to allow for cases where you want /// to delay the response or some other clever thing :) /// </summary> /// <param name="request">The request to "respond" to</param> /// <returns>The response</returns> Task<HttpResponseMessage> GetResponseAsync(HttpRequestMessage request); } }
rapidcore/rapidcore
src/core/main/Network/IMockRapidHttpClientTestCase.cs
C#
mit
1,034
"use strict"; // deferrer helps you to emulate a jQuery.Deferrer object var phantomizer_dfrer = (function(){ var deferred = function(){ this.is_resolved = null; this.args = null; this._hdl = []; this._type = []; this.call_handler = function(fn){ fn.apply(undefined,this.args); } } deferred.prototype.isRejected = function(){ return this.is_resolved == false; } deferred.prototype.isResolved = function(){ return this.is_resolved == true; } deferred.prototype.reject = function(){ this.args = arguments; this.is_resolved = false; for(var n in this._hdl){ if( this._type[n] =="fail" || this._type[n] =="always" ){ this.call_handler(this._hdl[n]); } } return this; } deferred.prototype.resolve = function(){ this.args = arguments; this.is_resolved = true; for(var n in this._hdl){ if( this._type[n] =="done" || this._type[n] =="always" ){ this.call_handler(this._hdl[n]); } } return this; } deferred.prototype.then = function(fn){ this.call_handler(fn); return this; } deferred.prototype.done = function(fn){ if( this.isResolved() ){ this.call_handler(fn); }else{ this._hdl.push(fn) this._type.push("done") } return this; } deferred.prototype.fail = function(fn){ if( this.isRejected() ){ this.call_handler(fn); }else{ this._hdl.push(fn) this._type.push("fail") } return this; } deferred.prototype.always = function(fn){ if( this.isResolved() || this.isRejected() ){ this.call_handler(fn); }else{ this._hdl.push(fn) this._type.push("always") } return this; } return deferred; })(); define ? define([],function(){return phantomizer_dfrer;}) : null;
maboiteaspam/phantomizer-websupport
shared/js/vendors/utils/dfrer.js
JavaScript
mit
1,816
(function() { describe('services/observers/currentState.observer.js', function() { var currentStateObserver, q, defer, rootScope; beforeEach(function() { module("beercalc"); }); beforeEach(inject(function($injector, $rootScope) { currentStateObserver = $injector.get('CurrentStateObserver'); q = $injector.get('$q'); defer = q.defer(); rootScope = $rootScope; })); it('should return a promise on observeCurrentState()', function() { expect(currentStateObserver.observeCurrentState()).toEqual(defer.promise); }); it('should notify a promise on currentState()', function() { expect(currentStateObserver.setCurrentState).not.toThrow(); }); }); })();
WandersonAlves/beercalc
test/unit/services/observers/currentState.observer.spec.js
JavaScript
mit
852
var view = 1, user, desktop, currentClientHeight = 0, configuration = { paths: { cs: "./lib/cs", order: "./lib/order", css: "./lib/css", widgets: "../widgets", login: "./login", config: "./config" }, period: 3000 }, myMonitors = {}, useLanguage = "zh-tw"; function setLanguage(_lang) { var refresh = (_lang != useLanguage); if(typeof(_lang) == "undefined") { _lang = useLanguage; } else { useLanguage = _lang; } i18n.set({lang: _lang, path: './language'}); if(refresh) { translateAll(); } } function translateAll() { $("span.translate").each(function(_index, _elem) { var word = $(this).attr("word"); $(this).text( i18n._(word) ); }); } function checkBrowser() { // download chrome - https://www.google.com/chrome // confirm(JSON.stringify(window.$.client), "", {}); console.log(window.$.client); } function loadConfig() { var data = { url: configuration.paths.config, success: function(_data) { for(var key in _data) { configuration[key] = _data[key]; } } }; elucia.rest.get(data); } function afterLogin(_data) { configuration.user = _data; var tmpWidget = { "name": "desktop", "data": { "user": user } }; elucia.add(tmpWidget, function(_node, _data, _obj) { desktop = _obj; }); // window.onresize = resize; } function afterLogout() { for(var key in openWindows) { openWindows[key].destroy(); } configuration.user = {}; desktop.destroy(); } /* $("div.screen").touchwipe({ wipeLeft: function() { page(1); }, wipeRight: function() { page(-1); }, wipeUp: function() { alert("up"); }, wipeDown: function() { alert("down"); }, min_move_x: 20, min_move_y: 20, preventDefaultEvents: true }); */ $(document).ready(function() { loadConfig(); checkBrowser(); setLanguage(); elucia.add({"name": "login", "data": {"config": configuration, "afterLogin": afterLogin, "afterLogout": afterLogout}}, function(_node, _data, _obj) { user = _obj; }); elucia.add("msg", function(_node, _data, _obj) { window.alert = _obj.alert; }); });
Luphia/Elucia-storage-center
public/js/main.js
JavaScript
mit
2,064
package models; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Collections; import java.util.Set; import org.coode.owlapi.manchesterowlsyntax.ManchesterOWLSyntaxEditorParser; import org.semanticweb.HermiT.Reasoner; import org.semanticweb.owlapi.apibinding.OWLManager; import org.semanticweb.owlapi.expression.OWLEntityChecker; import org.semanticweb.owlapi.expression.ParserException; import org.semanticweb.owlapi.expression.ShortFormEntityChecker; import org.semanticweb.owlapi.io.StringDocumentSource; import org.semanticweb.owlapi.model.OWLClass; import org.semanticweb.owlapi.model.OWLClassExpression; import org.semanticweb.owlapi.model.OWLDataFactory; import org.semanticweb.owlapi.model.OWLEntity; import org.semanticweb.owlapi.model.OWLNamedIndividual; import org.semanticweb.owlapi.model.OWLOntology; import org.semanticweb.owlapi.model.OWLOntologyManager; import org.semanticweb.owlapi.reasoner.Node; import org.semanticweb.owlapi.reasoner.NodeSet; import org.semanticweb.owlapi.reasoner.OWLReasoner; import org.semanticweb.owlapi.util.BidirectionalShortFormProvider; import org.semanticweb.owlapi.util.BidirectionalShortFormProviderAdapter; import org.semanticweb.owlapi.util.ShortFormProvider; import org.semanticweb.owlapi.util.SimpleShortFormProvider; /** * Created by larakellett on 2/22/15. */ public class DLQuery { DLQueryEngine dlQueryEngine; public DLQuery(OWLOntology ontology) { OWLReasoner reasoner = new Reasoner.ReasonerFactory().createReasoner(ontology); ShortFormProvider shortFormProvider = new SimpleShortFormProvider(); dlQueryEngine = new DLQueryEngine(reasoner, shortFormProvider); } public Set<OWLNamedIndividual> executeQuery(String expression) { Set<OWLNamedIndividual> individuals = null; try { individuals = dlQueryEngine.getInstances( expression, true); } catch (ParserException e) { e.printStackTrace(); } return individuals; } class DLQueryEngine { private final OWLReasoner reasoner; private final DLQueryParser parser; public DLQueryEngine(OWLReasoner reasoner, ShortFormProvider shortFormProvider) { this.reasoner = reasoner; parser = new DLQueryParser(reasoner.getRootOntology(), shortFormProvider); } public Set<OWLClass> getSuperClasses(String classExpressionString, boolean direct) throws ParserException { if (classExpressionString.trim().length() == 0) { return Collections.emptySet(); } OWLClassExpression classExpression = parser .parseClassExpression(classExpressionString); NodeSet<OWLClass> superClasses = reasoner .getSuperClasses(classExpression, direct); return superClasses.getFlattened(); } public Set<OWLClass> getEquivalentClasses(String classExpressionString) throws ParserException { if (classExpressionString.trim().length() == 0) { return Collections.emptySet(); } OWLClassExpression classExpression = parser .parseClassExpression(classExpressionString); Node<OWLClass> equivalentClasses = reasoner.getEquivalentClasses(classExpression); Set<OWLClass> result = null; if (classExpression.isAnonymous()) { result = equivalentClasses.getEntities(); } else { result = equivalentClasses.getEntitiesMinus(classExpression.asOWLClass()); } return result; } public Set<OWLClass> getSubClasses(String classExpressionString, boolean direct) throws ParserException { if (classExpressionString.trim().length() == 0) { return Collections.emptySet(); } OWLClassExpression classExpression = parser .parseClassExpression(classExpressionString); NodeSet<OWLClass> subClasses = reasoner.getSubClasses(classExpression, direct); return subClasses.getFlattened(); } public Set<OWLNamedIndividual> getInstances(String classExpressionString, boolean direct) throws ParserException { if (classExpressionString.trim().length() == 0) { return Collections.emptySet(); } OWLClassExpression classExpression = parser .parseClassExpression(classExpressionString); NodeSet<OWLNamedIndividual> individuals = reasoner.getInstances(classExpression, direct); return individuals.getFlattened(); } } class DLQueryParser { private final OWLOntology rootOntology; private final BidirectionalShortFormProvider bidiShortFormProvider; public DLQueryParser(OWLOntology rootOntology, ShortFormProvider shortFormProvider) { this.rootOntology = rootOntology; OWLOntologyManager manager = rootOntology.getOWLOntologyManager(); Set<OWLOntology> importsClosure = rootOntology.getImportsClosure(); // Create a bidirectional short form provider to do the actual mapping. // It will generate names using the input // short form provider. bidiShortFormProvider = new BidirectionalShortFormProviderAdapter(manager, importsClosure, shortFormProvider); } public OWLClassExpression parseClassExpression(String classExpressionString) throws ParserException { OWLDataFactory dataFactory = rootOntology.getOWLOntologyManager() .getOWLDataFactory(); ManchesterOWLSyntaxEditorParser parser = new ManchesterOWLSyntaxEditorParser( dataFactory, classExpressionString); parser.setDefaultOntology(rootOntology); OWLEntityChecker entityChecker = new ShortFormEntityChecker(bidiShortFormProvider); parser.setOWLEntityChecker(entityChecker); return parser.parseClassExpression(); } } }
lkellett/Stanford
app/models/DLQuery.java
Java
mit
6,265
#!/bin/bash THISDIR=$(cd $(dirname "$0"); pwd) #this script's directory die () { printf >&2 "$@" exit 1 } pushd . cd $THISDIR clear; [[ -d ./dist ]] || mkdir ./dist [[ -d ./dist/fonts ]] || mkdir ./dist/fonts ./node_modules/.bin/rollup --config result=$? echo "rollup result: $result" if [[ result -ne 0 ]]; then popd die '\nrollup build failed!\n\n' fi cp -v ./src/*.html ./dist/ || die 'copy failed: html' cp -v ./src/*.css ./dist/ || die 'copy failed: css' cp -v ./src/*.js ./dist/ || die 'copy failed: js' cp -rv ./src/vendor ./dist/ || die 'copy failed: vendor' cp -v ./src/vendor-fonts/* ./dist/fonts/ || die 'copy failed: fonts' popd
activescott/sheetmonkey-server
client/build.sh
Shell
mit
659
class Event < ActiveRecord::Base belongs_to :team monetize :price_cents, :as => "price" validates :name, :local, :subject, :start_date, :end_date, :start_time, :end_time, :team, presence: true scope :from_team, ->(team_id) { where(team_id: team_id) } end
ffscalco/greymane
app/models/event.rb
Ruby
mit
265
// // XLChildViewController.h // XLSlideViewDemo // // Created by cai cai on 2017/3/8. // Copyright © 2017年 cai cai. All rights reserved. // #import <UIKit/UIKit.h> @interface XLChildViewController : UIViewController @property (nonatomic, copy) NSString *titleString; @end
cctomato/XLSlideView
XLSlideViewDemo/XLSlideViewDemo/XLChildViewController.h
C
mit
282
local path = persconffile_path("ac-dissector") local ac = Proto("ac", "Asheron's Call") local PacketHeaderFlags = { None = 0x00000000, Retransmission = 0x00000001, EncryptedChecksum = 0x00000002, BlobFragments = 0x00000004, ServerSwitch = 0x00000100, Referral = 0x00000800, RequestRetransmit = 0x00001000, RejectRetransmit = 0x00002000, AckSequence = 0x00004000, Disconnect = 0x00008000, LoginRequest = 0x00010000, WorldLoginRequest = 0x00020000, ConnectRequest = 0x00040000, ConnectResponse = 0x00080000, CICMDCommand = 0x00400000, TimeSynch = 0x01000000, EchoRequest = 0x02000000, EchoResponse = 0x04000000, Flow = 0x08000000, } fields = ac.fields fields.SequenceNumber = ProtoField.uint32("ac.seq_num", "Sequence number", base.DEC) fields.Flags = ProtoField.uint32("ac.flags", "Flags", base.HEX) fields.CRC = ProtoField.uint32("ac.crc", "CRC", base.HEX) fields.RecordID = ProtoField.uint16("ac.rec_id", "RecordID", base.HEX) fields.Time = ProtoField.uint16("ac.time", "Time", base.DEC) fields.Size = ProtoField.uint16("ac.size", "Size", base.DEC) fields.Table = ProtoField.uint16("ac.table", "Table", base.HEX) fields.OptionalAckSequence = ProtoField.uint32("ac.opt.ack_seq", "Ack Sequence #") fields.OptionalTimeSynch = ProtoField.double("ac.opt.time_synch", "Time synch") fields.OptionalEchoRequest = ProtoField.float("ac.opt.echo_req", "Client time") fields.OptionalFlowA = ProtoField.uint32("ac.opt.flow_a", "FlowA (???)") fields.OptionalFlowB = ProtoField.uint16("ac.opt.flow_b", "FlowB (related to Time field?)") fields.FragmentHeaderSequenceNumber = ProtoField.uint32("ac.frag_header.seq_num", "Sequence number", base.DEC) fields.FragmentHeaderID = ProtoField.uint32("ac.frag_header.id", "ID", base.HEX) fields.FragmentHeaderCount = ProtoField.uint16("ac.frag_header.count", "Count", base.DEC) fields.FragmentHeaderSize = ProtoField.uint16("ac.frag_header.size", "Size", base.DEC) fields.FragmentHeaderIndex = ProtoField.uint16("ac.frag_header.index", "Index", base.HEX) fields.FragmentHeaderGroup = ProtoField.uint16("ac.frag_header.group", "Group", base.HEX) fields.FragmentHeaderData = ProtoField.bytes("ac.frag_header.data", "Data", base.HEX) fields.FieldUnknownDWORD = ProtoField.uint32("ac.msg_field.unknown_dword", "Unknown", base.HEX) fields.FieldUnknownWORD = ProtoField.uint16("ac.msg_field.unknown_word", "Unknown", base.HEX) fields.Message = ProtoField.bytes("ac.msg", "Message") fields.MessageID = ProtoField.uint32("ac.msg_id", "Message ID", base.HEX) fields.MessageUnknown = ProtoField.uint32("ac.msg_unknown", "Unknown", base.HEX) -- load utility functions info("Loading " .. path .. "/util.lua") dofile(path .. "/util.lua") -- load Message definitions local msg_dir = path .. "/messages" for f in Dir.open(msg_dir) do if f:match(".lua$") then local msg_path = msg_dir .. "/" .. f message("Loading " .. msg_path) dofile(msg_path) end end function process_flags(flags, tree) for name, flag in pairs(PacketHeaderFlags) do local flag_state = "Not set" if bit32.btest(flags, flag) then flag_state = "Set" end tree:add(string.format("%-20s: %-7s", name, flag_state)) end end function process_message(message, tree) local msg = message(0, 4):le_uint() tree:add_le(fields.MessageID, message(0, 4)) if msg == 0xF619 then msgLifestoneMaterialize(message, tree) elseif msg == 0xF625 then elseif msg == 0xF657 then msgRequestLogin(message, tree) elseif msg == 0xF658 then msgCharacterList(message, tree) elseif msg == 0xF659 then msgCharacterLoginFailure(message, tree) elseif msg == 0xF745 then elseif msg == 0xF746 then msgLoginCharacter(message, tree) elseif msg == 0xF747 then msgRemoveItem(message, tree) elseif msg == 0xF748 then elseif msg == 0xF749 then msgWieldObject(message, tree) elseif msg == 0xF74A then msgMoveObjectIntoInventory(message, tree) elseif msg == 0xF74B then msgToggleObjectVisibility(message, tree) elseif msg == 0xF74C then elseif msg == 0xF74E then msgJumping(message, tree) elseif msg == 0xF750 then msgApplySoundEffect(message, tree) elseif msg == 0xF751 then msgEnterPortalMode(message, tree) elseif msg == 0xF755 then msgApplySoundVisualEffect(message, tree) elseif msg == 0xF7B0 then msgGameEvent(message, tree) elseif msg == 0xF7B1 then msgGameAction(message, tree) elseif msg == 0xF7DE then elseif msg == 0xF7E0 then elseif msg == 0xF7E1 then msgServerInfo(message, tree) elseif msg == 0xF7E2 then elseif msg == 0xF7E7 then -- elseif msg == 0x0024 then -- elseif msg == 0x0197 then -- elseif msg == 0x019E then -- elseif msg == 0x01E0 then -- elseif msg == 0x01E2 then -- elseif msg == 0x02BB then -- elseif msg == 0x02BC then -- elseif msg == 0x02CD then -- elseif msg == 0x02CE then -- elseif msg == 0x02CF then -- elseif msg == 0x02D1 then -- elseif msg == 0x02D2 then -- elseif msg == 0x02D6 then -- elseif msg == 0x02D8 then -- elseif msg == 0x02D9 then -- elseif msg == 0x02DA then -- elseif msg == 0x02DB then -- elseif msg == 0x02DD then -- elseif msg == 0x02E3 then -- elseif msg == 0x02E7 then -- elseif msg == 0x02E9 then else -- tree:add(fields.MessageUnknown, msg) end end function draw_fragments(fragments, tree) local offset = 0 repeat local f = tree:add("Fragment") f:add_le(fields.FragmentHeaderSequenceNumber, fragments(offset, 4)); offset = offset + 4 f:add_le(fields.FragmentHeaderID, fragments(offset, 4)); offset = offset + 4 f:add_le(fields.FragmentHeaderCount, fragments(offset, 2)); offset = offset + 2 f:add_le(fields.FragmentHeaderSize, fragments(offset, 2)) local size = fragments(offset, 2):le_uint(); offset = offset + 2 f:add_le(fields.FragmentHeaderIndex, fragments(offset, 2)); offset = offset + 2 f:add_le(fields.FragmentHeaderGroup, fragments(offset, 2)); offset = offset + 2 process_message(fragments(offset, size - 16):tvb(), f:add("Message")) offset = offset + size - 16 -- 16 is length of header until offset == fragments:len() end function ac.dissector(buffer, pinfo, tree) local offset = 0 pinfo.cols.protocol = "AC" local subtree = tree:add(ac, buffer(), "Asheron's Call Data") subtree:add_le(fields.SequenceNumber, buffer(offset, 4)); offset = offset + 4 local flagtree = subtree:add_le(fields.Flags, buffer(offset, 4)) process_flags(buffer(offset, 4):le_uint(), flagtree) offset = offset + 4 subtree:add_le(fields.CRC, buffer(offset, 4)); offset = offset + 4 subtree:add_le(fields.RecordID, buffer(offset, 2)); offset = offset + 2 subtree:add_le(fields.Time, buffer(offset, 2)); offset = offset + 2 subtree:add_le(fields.Size, buffer(offset, 2)); offset = offset + 2 subtree:add_le(fields.Table, buffer(offset, 2)); offset = offset + 2 -- offset = 20 local flags = buffer(4, 4):le_uint() -- if bit32.btest(flags, PacketHeaderFlags.None) then -- end -- if bit32.btest(flags, PacketHeaderFlags.Retransmission) then -- end -- if bit32.btest(flags, PacketHeaderFlags.EncryptedChecksum) then -- end if bit32.btest(flags, PacketHeaderFlags.ServerSwitch) then offset = offset + 8 end -- if bit32.btest(flags, PacketHeaderFlags.Referral) then -- end if bit32.btest(flags, PacketHeaderFlags.RequestRetransmit) then local count = buffer(offset, 4):le_uint() offset = offset + (count * 4) end if bit32.btest(flags, PacketHeaderFlags.RejectRetransmit) then local count = buffer(offset, 4):le_uint() offset = offset + (count * 4) end if bit32.btest(flags, PacketHeaderFlags.AckSequence) then subtree:add_le(fields.OptionalAckSequence , buffer(offset, 4)); offset = offset + 4 end -- if bit32.btest(flags, PacketHeaderFlags.Disconnect) then -- end -- if bit32.btest(flags, PacketHeaderFlags.LoginRequest) then -- end -- if bit32.btest(flags, PacketHeaderFlags.WorldLoginRequest) then -- end -- if bit32.btest(flags, PacketHeaderFlags.ConnectRequest) then -- end -- if bit32.btest(flags, PacketHeaderFlags.ConnectResponse) then -- end if bit32.btest(flags, PacketHeaderFlags.CICMDCommand) then offset = offset + 8 end if bit32.btest(flags, PacketHeaderFlags.TimeSynch) then subtree:add_le(fields.OptionalTimeSynch , buffer(offset, 8)); offset = offset + 8 end if bit32.btest(flags, PacketHeaderFlags.EchoRequest) then subtree:add_le(fields.OptionalEchoRequest , buffer(offset, 4)); offset = offset + 4 end if bit32.btest(flags, PacketHeaderFlags.EchoResponse) then offset = offset + 8 end if bit32.btest(flags, PacketHeaderFlags.Flow) then subtree:add_le(fields.OptionalFlowA , buffer(offset, 4)); offset = offset + 4 subtree:add_le(fields.OptionalFlowB , buffer(offset, 2)); offset = offset + 2 end if bit32.btest(flags, PacketHeaderFlags.BlobFragments) then local fragtree = subtree:add("Fragments") draw_fragments(buffer(offset, buffer:len() - offset):tvb(), fragtree) end end udp_table = DissectorTable.get("udp.port") for p=9000, 9009 do udp_table:add(p, ac) end
AverageJamz/ac-dissector
asheronscall.lua
Lua
mit
9,417
using System; using System.Collections.Generic; using System.Dynamic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace XData.Data.Element { public class DynamicDictionary : DynamicObject, IDictionary<string, object> { protected Dictionary<string, object> Dictionary = new Dictionary<string, object>(); public override bool TryGetMember(GetMemberBinder binder, out object result) { string name = binder.Name.ToLower(); return Dictionary.TryGetValue(name, out result); } public override bool TrySetMember(SetMemberBinder binder, object value) { Dictionary[binder.Name.ToLower()] = value; return true; } #region IDictionary<string, object> public void Add(string key, object value) { Dictionary.Add(key, value); } public bool ContainsKey(string key) { return Dictionary.ContainsKey(key); } public ICollection<string> Keys { get { return Dictionary.Keys; } } public bool Remove(string key) { return Dictionary.Remove(key); } public bool TryGetValue(string key, out object value) { return Dictionary.TryGetValue(key, out value); } public ICollection<object> Values { get { return Dictionary.Values; } } public object this[string key] { get { return Dictionary[key]; } set { Dictionary[key] = value; } } public void Add(KeyValuePair<string, object> item) { Dictionary.Add(item.Key, item.Value); } public void Clear() { Dictionary.Clear(); } public bool Contains(KeyValuePair<string, object> item) { return Dictionary.Contains(item); } public void CopyTo(KeyValuePair<string, object>[] array, int arrayIndex) { Dictionary.ToArray().CopyTo(array, arrayIndex); } public int Count { get { return Dictionary.Count; } } public bool IsReadOnly { get { return false; } } public bool Remove(KeyValuePair<string, object> item) { return Dictionary.Remove(item.Key); } public IEnumerator<KeyValuePair<string, object>> GetEnumerator() { return Dictionary.GetEnumerator(); } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return GetEnumerator(); } #endregion } }
sundy39/xf
ElementFramework.Extensions/QuerierSubmitters/DynamicDictionary.cs
C#
mit
2,951
<? include_once('header.php'); ?> <img src="images/NFW_website_FAQ_final_version.png" usemap=#faq border=0> <map name="faq"> <area shape="rect" coords="280,70,190,100" href="about.php"> <area shape="rect" coords="340,70,280,100" href="team.php"> <area shape="rect" coords="420,70,340,100" href="agenda.php"> <area shape="rect" coords="490,70,420,100" href="venue.php"> <area shape="rect" coords="600,70,490,100" href="speakers.php"> <area shape="rect" coords="650,70,600,100" href="faq.php"> <area shape="rect" coords="805,70,650,100" href="gallery.php"> <area shape="rect" coords="900,70,805,100" href="register.php"> <area shape="rect" coords="992,70,900,100" href="contact.php"> <area shape="rect" coords="1082,70,992,100" href="sponsor.php"> </map>
darioml/nfw-web
pages/2011/faq.php
PHP
mit
757
BEGIN {@INC=("../",@INC)}; use strict; use warnings; use SeriesInfo::NameParser; use Test::More tests => 1; subtest "get multiple numbers" => sub { plan tests => 4; my @expect = (10, 11); is_deeply SeriesInfo::NameParser::parse("show 1 1011 title")->{numbers}, \@expect, "simple"; is_deeply SeriesInfo::NameParser::parse("show S01E1011 title")->{numbers}, \@expect, "S__E____"; is_deeply SeriesInfo::NameParser::parse("show S01E10&11 title")->{numbers}, \@expect, "S__E__&__"; is_deeply SeriesInfo::NameParser::parse("show.01x1011.title")->{numbers}, \@expect, "__x____"; };
pretorh/seriesinfo-nameparser
tests/multi-number.pl
Perl
mit
601
<?php require_once('../../vendor/autoload.php'); use PhpAmqpLib\Connection\AMQPStreamConnection; use PhpAmqpLib\Message\AMQPMessage; while(true) { $connection = new AMQPStreamConnection('localhost', 5672, 'guest', 'guest'); $channel = $connection->channel(); $exp = array(101, 95); $data = array('vks_id'=>$exp[array_rand($exp)], "action"=>'send_mail'); $data = json_encode($data); $msg = new AMQPMessage(($data), array('delivery_mode' => 2) # make message persistent ); $channel->basic_publish($msg, '', 'task_queue'); echo " [x] Sent ", $data, "\n"; $channel->close(); $connection->close(); usleep(300); }
inilotic/vims_crm_core
bots/test/sender.php
PHP
mit
667
module Griddler module Cloudmailin VERSION = "0.0.1" end end
alagram/griddler-cloudmailin
lib/griddler/cloudmailin/version.rb
Ruby
mit
69
FROM ubuntu:12.04 RUN apt-get update && apt-get install -y cron && apt-get install -y curl sudo git rsync build-essential wget ruby1.9.1 rubygems1.9.1 python-software-properties && curl -L https://www.opscode.com/chef/install.sh | bash && wget -O - https://github.com/travis-ci/travis-cookbooks/archive/master.tar.gz | tar -xz && mkdir -p /var/chef/cookbooks && cp -a travis-cookbooks-master/ci_environment/* /var/chef/cookbooks RUN apt-get -y install socat RUN adduser travis --disabled-password --gecos "" RUN mkdir /home/travis/builds ADD travis.json travis.json RUN locale-gen en_US.UTF-8 ENV LANG en_US.UTF-8 ENV LANGUAGE en_US:en ENV LC_ALL en_US.UTF-8 RUN chmod 777 /tmp RUN echo 'travis ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers RUN chef-solo -o phantomjs -j travis.json ADD start.sh start.sh CMD sh start.sh EXPOSE 4444
Codeception/PhantomJsEnv
Dockerfile
Dockerfile
mit
827
<html lang="en"> <head> <meta charset="UTF-8"> <title>google drive play</title> </head> <body> <form action="/auth/spotify" method="GET"> <button type="submit">yo</button> </form> </body> </html>
faiq/faiq-website
sounds/index.html
HTML
mit
206
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Coq bench</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../../..">Unstable</a></li> <li><a href=".">8.4pl4 / contrib:cats-in-zfc dev</a></li> <li class="active"><a href="">2014-11-21 12:12:52</a></li> </ul> <ul class="nav navbar-nav navbar-right"> <li><a href="../../../../../about.html">About</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href=".">« Up</a> <h1> contrib:cats-in-zfc <small> dev <span class="label label-info">Not compatible with this Coq</span> </small> </h1> <p><em><script>document.write(moment("2014-11-21 12:12:52 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2014-11-21 12:12:52 UTC)</em><p> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>ruby lint.rb unstable ../unstable/packages/coq:contrib:cats-in-zfc/coq:contrib:cats-in-zfc.dev</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> <dt>Output</dt> <dd><pre>The package is valid. </pre></dd> </dl> <h2>Dry install</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --dry-run coq:contrib:cats-in-zfc.dev coq.8.4pl4</code></dd> <dt>Return code</dt> <dd>768</dd> <dt>Duration</dt> <dd>0 s</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.4pl4). The following dependencies couldn&#39;t be met: - coq:contrib:cats-in-zfc -&gt; coq = dev Your request can&#39;t be satisfied: - Conflicting version constraints for coq No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq, to test if the problem was incompatibility with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --dry-run coq:contrib:cats-in-zfc.dev</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>2 s</dd> <dt>Output</dt> <dd><pre>The following actions will be performed: - remove coq.8.4pl4 === 1 to remove === =-=- Removing Packages =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Removing coq.8.4pl4. [WARNING] Directory /home/bench/.opam/system/lib/coq is not empty, not removing [WARNING] Directory /home/bench/.opam/system/share/coq is not empty, not removing The following actions will be performed: - install coq.dev [required by coq:contrib:cats-in-zfc] - install coq:contrib:cats-in-zfc.dev === 2 to install === =-=- Synchronizing package archives -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= =-=- Installing packages =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Building coq.dev: ./configure -configdir /home/bench/.opam/system/lib/coq/config -mandir /home/bench/.opam/system/man -docdir /home/bench/.opam/system/doc -prefix /home/bench/.opam/system -usecamlp5 -camlp5dir /home/bench/.opam/system/lib/camlp5 -coqide no -no-native-compiler make -j4 make install Installing coq.dev. Building coq:contrib:cats-in-zfc.dev: coq_makefile -f Make -o Makefile make -j4 make install Installing coq:contrib:cats-in-zfc.dev. </pre></dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>Data not available in this bench.</p> <h2>Uninstall</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> <small>Sources are on <a href="https://github.com/coq-bench">GitHub</a>. © Guillaume Claret.</small> </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
coq-bench/coq-bench.github.io-old
clean/Linux-x86_64-4.01.0-1.2.0/unstable/8.4pl4/contrib:cats-in-zfc/dev/2014-11-21_12-12-52.html
HTML
mit
6,974
<TS language="fr" version="2.0"> <context> <name>AddressBookPage</name> <message> <source>Double-click to edit address or label</source> <translation>Double cliquer afin de modifier l'adresse ou l'étiquette</translation> </message> <message> <source>Create a new address</source> <translation>Créer une nouvelle adresse</translation> </message> <message> <source>&amp;New</source> <translation>&amp;Nouveau</translation> </message> <message> <source>Copy the currently selected address to the system clipboard</source> <translation>Copier l'adresse courante sélectionnée dans le presse-papiers</translation> </message> <message> <source>&amp;Copy</source> <translation>&amp;Copier</translation> </message> <message> <source>C&amp;lose</source> <translation>&amp;Fermer</translation> </message> <message> <source>&amp;Copy Address</source> <translation>&amp;Copier l'adresse</translation> </message> <message> <source>Delete the currently selected address from the list</source> <translation>Supprimer l'adresse actuellement sélectionnée de la liste</translation> </message> <message> <source>Export the data in the current tab to a file</source> <translation>Exporter les données de l'onglet courant vers un fichier</translation> </message> <message> <source>&amp;Export</source> <translation>&amp;Exporter</translation> </message> <message> <source>&amp;Delete</source> <translation>&amp;Supprimer</translation> </message> <message> <source>Choose the address to send coins to</source> <translation>Choisir l'adresse à laquelle envoyer des pièces</translation> </message> <message> <source>Choose the address to receive coins with</source> <translation>Choisir l'adresse avec laquelle recevoir des pièces</translation> </message> <message> <source>C&amp;hoose</source> <translation>C&amp;hoisir</translation> </message> <message> <source>Sending addresses</source> <translation>Adresses d'envoi</translation> </message> <message> <source>Receiving addresses</source> <translation>Adresses de réception</translation> </message> <message> <source>These are your Prototanium addresses for sending payments. Always check the amount and the receiving address before sending coins.</source> <translation>Voici vos adresses Prototanium pour envoyer des paiements. Vérifiez toujours le montant et l'adresse du destinataire avant d'envoyer des pièces.</translation> </message> <message> <source>These are your Prototanium addresses for receiving payments. It is recommended to use a new receiving address for each transaction.</source> <translation>Voici vos adresses Prototanium pour recevoir des paiements. Il est recommandé d'utiliser une nouvelle adresse de réception pour chaque transaction.</translation> </message> <message> <source>Copy &amp;Label</source> <translation>Copier l'é&amp;tiquette</translation> </message> <message> <source>&amp;Edit</source> <translation>&amp;Modifier</translation> </message> <message> <source>Export Address List</source> <translation>Exporter la liste d'adresses</translation> </message> <message> <source>Comma separated file (*.csv)</source> <translation>Valeurs séparées par des virgules (*.csv)</translation> </message> <message> <source>Exporting Failed</source> <translation>L'exportation a échoué</translation> </message> <message> <source>There was an error trying to save the address list to %1. Please try again.</source> <translation>Une erreur est survenue lors de l'enregistrement de la liste d'adresses vers %1. Veuillez ressayer plus tard.</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <source>Label</source> <translation>Étiquette</translation> </message> <message> <source>Address</source> <translation>Adresse</translation> </message> <message> <source>(no label)</source> <translation>(aucune étiquette)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <source>Passphrase Dialog</source> <translation>Fenêtre de dialogue de la phrase de passe</translation> </message> <message> <source>Enter passphrase</source> <translation>Saisir la phrase de passe</translation> </message> <message> <source>New passphrase</source> <translation>Nouvelle phrase de passe</translation> </message> <message> <source>Repeat new passphrase</source> <translation>Répéter la phrase de passe</translation> </message> <message> <source>Encrypt wallet</source> <translation>Chiffrer le portefeuille</translation> </message> <message> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>Cette opération nécessite votre phrase de passe pour déverrouiller le portefeuille.</translation> </message> <message> <source>Unlock wallet</source> <translation>Déverrouiller le portefeuille</translation> </message> <message> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>Cette opération nécessite votre phrase de passe pour déchiffrer le portefeuille.</translation> </message> <message> <source>Decrypt wallet</source> <translation>Déchiffrer le portefeuille</translation> </message> <message> <source>Change passphrase</source> <translation>Changer la phrase de passe</translation> </message> <message> <source>Enter the old and new passphrase to the wallet.</source> <translation>Saisir l’ancienne phrase de passe pour le portefeuille ainsi que la nouvelle.</translation> </message> <message> <source>Confirm wallet encryption</source> <translation>Confirmer le chiffrement du portefeuille</translation> </message> <message> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR BITCOINS&lt;/b&gt;!</source> <translation>Avertissement : si vous chiffrez votre portefeuille et perdez votre phrase de passe, vous &lt;b&gt;PERDREZ TOUS VOS BITCOINS&lt;/b&gt; !</translation> </message> <message> <source>Are you sure you wish to encrypt your wallet?</source> <translation>Êtes-vous sûr de vouloir chiffrer votre portefeuille ?</translation> </message> <message> <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 : Toute sauvegarde précédente de votre fichier de portefeuille devrait être remplacée par le nouveau fichier de portefeuille chiffré. Pour des raisons de sécurité, les sauvegardes précédentes de votre fichier de portefeuille non chiffré deviendront inutilisables dès que vous commencerez à utiliser le nouveau portefeuille chiffré.</translation> </message> <message> <source>Warning: The Caps Lock key is on!</source> <translation>Avertissement : la touche Verr. Maj. est activée !</translation> </message> <message> <source>Wallet encrypted</source> <translation>Portefeuille chiffré</translation> </message> <message> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;ten or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>Saisissez une nouvelle phrase de passe pour le portefeuille.&lt;br/&gt;Veuillez utiliser une phrase composée de &lt;b&gt;dix caractères aléatoires ou plus&lt;/b&gt;, ou bien de &lt;b&gt;huit mots ou plus&lt;/b&gt;.</translation> </message> <message> <source>Prototanium will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer.</source> <translation>Prototanium va à présent se fermer pour terminer le chiffrement. N'oubliez pas que le chiffrement de votre portefeuille n'est pas une protection totale contre le vol par des logiciels malveillants qui infecteraient votre ordinateur.</translation> </message> <message> <source>Wallet encryption failed</source> <translation>Le chiffrement du portefeuille a échoué</translation> </message> <message> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>Le chiffrement du portefeuille a échoué en raison d'une erreur interne. Votre portefeuille n'a pas été chiffré.</translation> </message> <message> <source>The supplied passphrases do not match.</source> <translation>Les phrases de passe saisies ne correspondent pas.</translation> </message> <message> <source>Wallet unlock failed</source> <translation>Le déverrouillage du portefeuille a échoué</translation> </message> <message> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>La phrase de passe saisie pour déchiffrer le portefeuille était incorrecte.</translation> </message> <message> <source>Wallet decryption failed</source> <translation>Le déchiffrage du portefeuille a échoué</translation> </message> <message> <source>Wallet passphrase was successfully changed.</source> <translation>La phrase de passe du portefeuille a été modifiée avec succès.</translation> </message> </context> <context> <name>BitcoinGUI</name> <message> <source>Sign &amp;message...</source> <translation>&amp;Signer le message...</translation> </message> <message> <source>Synchronizing with network...</source> <translation>Synchronisation avec le réseau en cours…</translation> </message> <message> <source>&amp;Overview</source> <translation>&amp;Vue d'ensemble</translation> </message> <message> <source>Node</source> <translation>Nœud</translation> </message> <message> <source>Show general overview of wallet</source> <translation>Afficher une vue d’ensemble du portefeuille</translation> </message> <message> <source>&amp;Transactions</source> <translation>&amp;Transactions</translation> </message> <message> <source>Browse transaction history</source> <translation>Parcourir l'historique des transactions</translation> </message> <message> <source>E&amp;xit</source> <translation>Q&amp;uitter</translation> </message> <message> <source>Quit application</source> <translation>Quitter l’application</translation> </message> <message> <source>About &amp;Qt</source> <translation>À propos de &amp;Qt</translation> </message> <message> <source>Show information about Qt</source> <translation>Afficher des informations sur Qt</translation> </message> <message> <source>&amp;Options...</source> <translation>&amp;Options…</translation> </message> <message> <source>&amp;Encrypt Wallet...</source> <translation>&amp;Chiffrer le portefeuille...</translation> </message> <message> <source>&amp;Backup Wallet...</source> <translation>Sauvegarder le &amp;portefeuille...</translation> </message> <message> <source>&amp;Change Passphrase...</source> <translation>&amp;Changer la phrase de passe...</translation> </message> <message> <source>&amp;Sending addresses...</source> <translation>Adresses d'&amp;envoi...</translation> </message> <message> <source>&amp;Receiving addresses...</source> <translation>Adresses de &amp;réception...</translation> </message> <message> <source>Open &amp;URI...</source> <translation>Ouvrir un &amp;URI...</translation> </message> <message> <source>Prototanium client</source> <translation>Client Prototanium</translation> </message> <message> <source>Importing blocks from disk...</source> <translation>Importation des blocs depuis le disque...</translation> </message> <message> <source>Reindexing blocks on disk...</source> <translation>Réindexation des blocs sur le disque...</translation> </message> <message> <source>Send coins to a Prototanium address</source> <translation>Envoyer des pièces à une adresse Prototanium</translation> </message> <message> <source>Modify configuration options for Prototanium</source> <translation>Modifier les options de configuration de Prototanium</translation> </message> <message> <source>Backup wallet to another location</source> <translation>Sauvegarder le portefeuille vers un autre emplacement</translation> </message> <message> <source>Change the passphrase used for wallet encryption</source> <translation>Modifier la phrase de passe utilisée pour le chiffrement du portefeuille</translation> </message> <message> <source>&amp;Debug window</source> <translation>Fenêtre de &amp;débogage</translation> </message> <message> <source>Open debugging and diagnostic console</source> <translation>Ouvrir une console de débogage et de diagnostic</translation> </message> <message> <source>&amp;Verify message...</source> <translation>&amp;Vérifier un message...</translation> </message> <message> <source>Prototanium</source> <translation>Prototanium</translation> </message> <message> <source>Wallet</source> <translation>Portefeuille</translation> </message> <message> <source>&amp;Send</source> <translation>&amp;Envoyer</translation> </message> <message> <source>&amp;Receive</source> <translation>&amp;Recevoir</translation> </message> <message> <source>Show information about Prototanium</source> <translation>Montrer des informations à propos de Prototanium</translation> </message> <message> <source>&amp;Show / Hide</source> <translation>&amp;Afficher / Cacher</translation> </message> <message> <source>Show or hide the main Window</source> <translation>Afficher ou masquer la fenêtre principale</translation> </message> <message> <source>Encrypt the private keys that belong to your wallet</source> <translation>Chiffrer les clefs privées de votre portefeuille</translation> </message> <message> <source>Sign messages with your Prototanium addresses to prove you own them</source> <translation>Signer les messages avec vos adresses Prototanium pour prouver que vous les détenez</translation> </message> <message> <source>Verify messages to ensure they were signed with specified Prototanium addresses</source> <translation>Vérifier les messages pour vous assurer qu'ils ont été signés avec les adresses Prototanium spécifiées</translation> </message> <message> <source>&amp;File</source> <translation>&amp;Fichier</translation> </message> <message> <source>&amp;Settings</source> <translation>&amp;Réglages</translation> </message> <message> <source>&amp;Help</source> <translation>&amp;Aide</translation> </message> <message> <source>Tabs toolbar</source> <translation>Barre d'outils des onglets</translation> </message> <message> <source>Prototanium</source> <translation>Prototanium</translation> </message> <message> <source>Request payments (generates QR codes and bitcoin: URIs)</source> <translation>Demander des paiements (génère des codes QR et des URIs bitcoin:)</translation> </message> <message> <source>&amp;About Prototanium</source> <translation>À &amp;propos de Prototanium</translation> </message> <message> <source>Show the list of used sending addresses and labels</source> <translation>Afficher la liste d'adresses d'envoi et d'étiquettes utilisées</translation> </message> <message> <source>Show the list of used receiving addresses and labels</source> <translation>Afficher la liste d'adresses de réception et d'étiquettes utilisées</translation> </message> <message> <source>Open a bitcoin: URI or payment request</source> <translation>Ouvrir un URI bitcoin: ou une demande de paiement</translation> </message> <message> <source>&amp;Command-line options</source> <translation>Options de ligne de &amp;commande</translation> </message> <message> <source>Show the Prototanium help message to get a list with possible Prototanium command-line options</source> <translation>Afficher le message d'aide de Prototanium pour obtenir une liste des options de ligne de commande Prototanium possibles.</translation> </message> <message numerus="yes"> <source>%n active connection(s) to Prototanium network</source> <translation><numerusform>%n connexion active avec le réseau Prototanium</numerusform><numerusform>%n connexions actives avec le réseau Prototanium</numerusform></translation> </message> <message> <source>No block source available...</source> <translation>Aucune source de blocs disponible...</translation> </message> <message numerus="yes"> <source>%n hour(s)</source> <translation><numerusform>%n heure</numerusform><numerusform>%n heures</numerusform></translation> </message> <message numerus="yes"> <source>%n day(s)</source> <translation><numerusform>%n jour</numerusform><numerusform>%n jours</numerusform></translation> </message> <message numerus="yes"> <source>%n week(s)</source> <translation><numerusform>%n semaine</numerusform><numerusform>%n semaines</numerusform></translation> </message> <message> <source>%1 and %2</source> <translation>%1 et %2</translation> </message> <message numerus="yes"> <source>%n year(s)</source> <translation><numerusform>%n an</numerusform><numerusform>%n ans</numerusform></translation> </message> <message> <source>%1 behind</source> <translation>%1 en retard</translation> </message> <message> <source>Last received block was generated %1 ago.</source> <translation>Le dernier bloc reçu avait été généré il y a %1.</translation> </message> <message> <source>Transactions after this will not yet be visible.</source> <translation>Les transactions après ceci ne sont pas encore visibles.</translation> </message> <message> <source>Error</source> <translation>Erreur</translation> </message> <message> <source>Warning</source> <translation>Avertissement</translation> </message> <message> <source>Information</source> <translation>Information</translation> </message> <message> <source>Up to date</source> <translation>À jour</translation> </message> <message numerus="yes"> <source>Processed %n blocks of transaction history.</source> <translation><numerusform>%n bloc de l'historique transactionnel a été traité</numerusform><numerusform>%n blocs de l'historique transactionnel ont été traités</numerusform></translation> </message> <message> <source>Catching up...</source> <translation>Rattrapage en cours…</translation> </message> <message> <source>Sent transaction</source> <translation>Transaction envoyée</translation> </message> <message> <source>Incoming transaction</source> <translation>Transaction entrante</translation> </message> <message> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>Date : %1 Montant : %2 Type : %3 Adresse : %4 </translation> </message> <message> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>Le portefeuille est &lt;b&gt;chiffré&lt;/b&gt; et est actuellement &lt;b&gt;déverrouillé&lt;/b&gt;</translation> </message> <message> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>Le portefeuille est &lt;b&gt;chiffré&lt;/b&gt; et actuellement &lt;b&gt;verrouillé&lt;/b&gt;</translation> </message> </context> <context> <name>ClientModel</name> <message> <source>Network Alert</source> <translation>Alerte réseau</translation> </message> </context> <context> <name>CoinControlDialog</name> <message> <source>Coin Selection</source> <translation>Sélection des pièces</translation> </message> <message> <source>Quantity:</source> <translation>Quantité :</translation> </message> <message> <source>Bytes:</source> <translation>Octets :</translation> </message> <message> <source>Amount:</source> <translation>Montant :</translation> </message> <message> <source>Priority:</source> <translation>Priorité :</translation> </message> <message> <source>Fee:</source> <translation>Frais :</translation> </message> <message> <source>Dust:</source> <translation>Poussière :</translation> </message> <message> <source>After Fee:</source> <translation>Après les frais :</translation> </message> <message> <source>Change:</source> <translation>Monnaie :</translation> </message> <message> <source>(un)select all</source> <translation>Tout (dé)sélectionner</translation> </message> <message> <source>Tree mode</source> <translation>Mode arborescence</translation> </message> <message> <source>List mode</source> <translation>Mode liste</translation> </message> <message> <source>Amount</source> <translation>Montant</translation> </message> <message> <source>Received with label</source> <translation>Reçu avec une étiquette</translation> </message> <message> <source>Received with address</source> <translation>Reçu avec une adresse</translation> </message> <message> <source>Date</source> <translation>Date</translation> </message> <message> <source>Confirmations</source> <translation>Confirmations</translation> </message> <message> <source>Confirmed</source> <translation>Confirmée</translation> </message> <message> <source>Priority</source> <translation>Priorité</translation> </message> <message> <source>Copy address</source> <translation>Copier l’adresse</translation> </message> <message> <source>Copy label</source> <translation>Copier l’étiquette</translation> </message> <message> <source>Copy amount</source> <translation>Copier le montant</translation> </message> <message> <source>Copy transaction ID</source> <translation>Copier l'ID de la transaction</translation> </message> <message> <source>Lock unspent</source> <translation>Verrouiller ce qui n'est pas dépensé</translation> </message> <message> <source>Unlock unspent</source> <translation>Déverrouiller ce qui n'est pas dépensé</translation> </message> <message> <source>Copy quantity</source> <translation>Copier la quantité</translation> </message> <message> <source>Copy fee</source> <translation>Copier les frais</translation> </message> <message> <source>Copy after fee</source> <translation>Copier le montant après les frais</translation> </message> <message> <source>Copy bytes</source> <translation>Copier les octets</translation> </message> <message> <source>Copy priority</source> <translation>Copier la priorité</translation> </message> <message> <source>Copy dust</source> <translation>Copier la poussière</translation> </message> <message> <source>Copy change</source> <translation>Copier la monnaie</translation> </message> <message> <source>highest</source> <translation>la plus élevée</translation> </message> <message> <source>higher</source> <translation>plus élevée</translation> </message> <message> <source>high</source> <translation>élevée</translation> </message> <message> <source>medium-high</source> <translation>moyennement-élevée</translation> </message> <message> <source>medium</source> <translation>moyenne</translation> </message> <message> <source>low-medium</source> <translation>moyennement-basse</translation> </message> <message> <source>low</source> <translation>basse</translation> </message> <message> <source>lower</source> <translation>plus basse</translation> </message> <message> <source>lowest</source> <translation>la plus basse</translation> </message> <message> <source>(%1 locked)</source> <translation>(%1 verrouillé)</translation> </message> <message> <source>none</source> <translation>aucun</translation> </message> <message> <source>Can vary +/- %1 satoshi(s) per input.</source> <translation>Peut varier +/- %1 satoshi(s) par entrée.</translation> </message> <message> <source>yes</source> <translation>oui</translation> </message> <message> <source>no</source> <translation>non</translation> </message> <message> <source>This label turns red, if the transaction size is greater than 1000 bytes.</source> <translation>Cette étiquette devient rouge si la taille de la transaction est plus grande que 1 000 octets.</translation> </message> <message> <source>This means a fee of at least %1 per kB is required.</source> <translation>Ceci signifie que des frais d'au moins %1 par ko sont exigés.</translation> </message> <message> <source>Can vary +/- 1 byte per input.</source> <translation>Peut varier +/- 1 octet par entrée.</translation> </message> <message> <source>Transactions with higher priority are more likely to get included into a block.</source> <translation>Les transactions à priorité plus haute sont plus à même d'être incluses dans un bloc.</translation> </message> <message> <source>This label turns red, if the priority is smaller than "medium".</source> <translation>Cette étiquette devient rouge si la priorité est plus basse que « moyenne »</translation> </message> <message> <source>(no label)</source> <translation>(aucune étiquette)</translation> </message> <message> <source>change from %1 (%2)</source> <translation>monnaie de %1 (%2)</translation> </message> <message> <source>(change)</source> <translation>(monnaie)</translation> </message> </context> <context> <name>EditAddressDialog</name> <message> <source>Edit Address</source> <translation>Modifier l'adresse</translation> </message> <message> <source>&amp;Label</source> <translation>&amp;Étiquette</translation> </message> <message> <source>The label associated with this address list entry</source> <translation>L'étiquette associée à cette entrée de la liste d'adresses</translation> </message> <message> <source>The address associated with this address list entry. This can only be modified for sending addresses.</source> <translation>L'adresse associée à cette entrée de la liste d'adresses. Ceci ne peut être modifié que pour les adresses d'envoi.</translation> </message> <message> <source>&amp;Address</source> <translation>&amp;Adresse</translation> </message> <message> <source>New receiving address</source> <translation>Nouvelle adresse de réception</translation> </message> <message> <source>New sending address</source> <translation>Nouvelle adresse d’envoi</translation> </message> <message> <source>Edit receiving address</source> <translation>Modifier l’adresse de réception</translation> </message> <message> <source>Edit sending address</source> <translation>Modifier l’adresse d'envoi</translation> </message> <message> <source>The entered address "%1" is already in the address book.</source> <translation>L’adresse fournie « %1 » est déjà présente dans le carnet d'adresses.</translation> </message> <message> <source>The entered address "%1" is not a valid Prototanium address.</source> <translation>L'adresse fournie « %1 » n'est pas une adresse Prototanium valide.</translation> </message> <message> <source>Could not unlock wallet.</source> <translation>Impossible de déverrouiller le portefeuille.</translation> </message> <message> <source>New key generation failed.</source> <translation>Échec de génération de la nouvelle clef.</translation> </message> </context> <context> <name>FreespaceChecker</name> <message> <source>A new data directory will be created.</source> <translation>Un nouveau répertoire de données sera créé.</translation> </message> <message> <source>name</source> <translation>nom</translation> </message> <message> <source>Directory already exists. Add %1 if you intend to create a new directory here.</source> <translation>Le répertoire existe déjà. Ajoutez %1 si vous voulez créer un nouveau répertoire ici.</translation> </message> <message> <source>Path already exists, and is not a directory.</source> <translation>Le chemin existe déjà et n'est pas un répertoire.</translation> </message> <message> <source>Cannot create data directory here.</source> <translation>Impossible de créer un répertoire de données ici.</translation> </message> </context> <context> <name>HelpMessageDialog</name> <message> <source>Prototanium</source> <translation>Prototanium</translation> </message> <message> <source>version</source> <translation>version</translation> </message> <message> <source>(%1-bit)</source> <translation>(%1-bit)</translation> </message> <message> <source>About Prototanium</source> <translation>À propos de Prototanium</translation> </message> <message> <source>Command-line options</source> <translation>Options de ligne de commande</translation> </message> <message> <source>Usage:</source> <translation>Utilisation :</translation> </message> <message> <source>command-line options</source> <translation>options de ligne de commande</translation> </message> <message> <source>UI options</source> <translation>Options de l'interface utilisateur</translation> </message> <message> <source>Set language, for example "de_DE" (default: system locale)</source> <translation>Définir la langue, par exemple « fr_CA » (par défaut : la langue du système)</translation> </message> <message> <source>Start minimized</source> <translation>Démarrer minimisé</translation> </message> <message> <source>Set SSL root certificates for payment request (default: -system-)</source> <translation>Définir les certificats SSL racine pour les requêtes de paiement (par défaut : -système-)</translation> </message> <message> <source>Show splash screen on startup (default: 1)</source> <translation>Afficher l'écran d'accueil au démarrage (par défaut : 1)</translation> </message> <message> <source>Choose data directory on startup (default: 0)</source> <translation>Choisir un répertoire de données au démarrage (par défaut : 0)</translation> </message> </context> <context> <name>Intro</name> <message> <source>Welcome</source> <translation>Bienvenue</translation> </message> <message> <source>Welcome to Prototanium.</source> <translation>Bienvenue à Prototanium.</translation> </message> <message> <source>As this is the first time the program is launched, you can choose where Prototanium will store its data.</source> <translation>Comme c'est la première fois que le logiciel est lancé, vous pouvez choisir où Prototanium stockera ses données.</translation> </message> <message> <source>Prototanium will download and store a copy of the Prototanium block chain. At least %1GB of data will be stored in this directory, and it will grow over time. The wallet will also be stored in this directory.</source> <translation>Prototanium va télécharger et stocker une copie de la chaîne de blocs Prototanium. Au moins %1Go de données seront stockées dans ce répertoire et cela augmentera avec le temps. Le portefeuille sera également stocké dans ce répertoire.</translation> </message> <message> <source>Use the default data directory</source> <translation>Utiliser le répertoire de données par défaut</translation> </message> <message> <source>Use a custom data directory:</source> <translation>Utiliser un répertoire de données personnalisé :</translation> </message> <message> <source>Prototanium</source> <translation>Prototanium</translation> </message> <message> <source>Error: Specified data directory "%1" cannot be created.</source> <translation>Erreur : le répertoire de données spécifié « %1 » ne peut pas être créé.</translation> </message> <message> <source>Error</source> <translation>Erreur</translation> </message> <message numerus="yes"> <source>%n GB of free space available</source> <translation><numerusform>%n Go d'espace libre disponible</numerusform><numerusform>%n Go d'espace libre disponibles</numerusform></translation> </message> </context> <context> <name>OpenURIDialog</name> <message> <source>Open URI</source> <translation>Ouvrir un URI</translation> </message> <message> <source>Open payment request from URI or file</source> <translation>Ouvrir une demande de paiement à partir d'un URI ou d'un fichier</translation> </message> <message> <source>URI:</source> <translation>URI :</translation> </message> <message> <source>Select payment request file</source> <translation>Choisir le fichier de demande de paiement</translation> </message> <message> <source>Select payment request file to open</source> <translation>Choisir le fichier de demande de paiement à ouvrir</translation> </message> </context> <context> <name>OptionsDialog</name> <message> <source>Options</source> <translation>Options</translation> </message> <message> <source>&amp;Main</source> <translation>Réglages &amp;principaux</translation> </message> <message> <source>Automatically start Prototanium after logging in to the system.</source> <translation>Démarrer Prototanium automatiquement après avoir ouvert une session sur l'ordinateur.</translation> </message> <message> <source>&amp;Start Prototanium on system login</source> <translation>&amp;Démarrer Prototanium lors de l'ouverture d'une session</translation> </message> <message> <source>Size of &amp;database cache</source> <translation>Taille du cache de la base de &amp;données</translation> </message> <message> <source>MB</source> <translation>Mo</translation> </message> <message> <source>Number of script &amp;verification threads</source> <translation>Nombre d'exétrons de &amp;vérification de script</translation> </message> <message> <source>Accept connections from outside</source> <translation>Accepter les connexions provenant de l'extérieur</translation> </message> <message> <source>Allow incoming connections</source> <translation>Permettre les transactions entrantes</translation> </message> <message> <source>IP address of the proxy (e.g. IPv4: 127.0.0.1 / IPv6: ::1)</source> <translation>Adresse IP du mandataire (par ex. IPv4 : 127.0.0.1 / IPv6 : ::1)</translation> </message> <message> <source>Third party URLs (e.g. a block explorer) that appear in the transactions tab as context menu items. %s in the URL is replaced by transaction hash. Multiple URLs are separated by vertical bar |.</source> <translation>URL de tiers (par ex. un explorateur de blocs) apparaissant dans l'onglet des transactions comme éléments du menu contextuel. %s dans l'URL est remplacé par le hachage de la transaction. Les URL multiples sont séparées par une barre verticale |.</translation> </message> <message> <source>Third party transaction URLs</source> <translation>URL de transaction d'un tiers</translation> </message> <message> <source>Active command-line options that override above options:</source> <translation>Options actives de ligne de commande qui annulent les options ci-dessus :</translation> </message> <message> <source>Reset all client options to default.</source> <translation>Réinitialiser toutes les options du client aux valeurs par défaut.</translation> </message> <message> <source>&amp;Reset Options</source> <translation>&amp;Réinitialisation des options</translation> </message> <message> <source>&amp;Network</source> <translation>&amp;Réseau</translation> </message> <message> <source>(0 = auto, &lt;0 = leave that many cores free)</source> <translation>(0 = auto, &lt; 0 = laisser ce nombre de cœurs inutilisés)</translation> </message> <message> <source>W&amp;allet</source> <translation>&amp;Portefeuille</translation> </message> <message> <source>Expert</source> <translation>Expert</translation> </message> <message> <source>Enable coin &amp;control features</source> <translation>Activer les fonctions de &amp;contrôle des pièces </translation> </message> <message> <source>If you disable the spending of unconfirmed change, the change from a transaction cannot be used until that transaction has at least one confirmation. This also affects how your balance is computed.</source> <translation>Si vous désactivé la dépense de la monnaie non confirmée, la monnaie d'une transaction ne peut pas être utilisée tant que cette transaction n'a pas reçu au moins une confirmation. Ceci affecte aussi comment votre solde est calculé.</translation> </message> <message> <source>&amp;Spend unconfirmed change</source> <translation>&amp;Dépenser la monnaie non confirmée</translation> </message> <message> <source>Automatically open the Prototanium client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation>Ouvrir le port du client Prototanium automatiquement sur le routeur. Ceci ne fonctionne que si votre routeur supporte l'UPnP et si la fonctionnalité est activée.</translation> </message> <message> <source>Map port using &amp;UPnP</source> <translation>Mapper le port avec l'&amp;UPnP</translation> </message> <message> <source>Connect to the Prototanium network through a SOCKS5 proxy.</source> <translation>Se connecter au réseau Prototanium par un mandataire SOCKS5.</translation> </message> <message> <source>&amp;Connect through SOCKS5 proxy (default proxy):</source> <translation>Se &amp;connecter par un mandataire SOCKS5 (mandataire par défaut) :</translation> </message> <message> <source>Proxy &amp;IP:</source> <translation>&amp;IP du serveur mandataire :</translation> </message> <message> <source>&amp;Port:</source> <translation>&amp;Port :</translation> </message> <message> <source>Port of the proxy (e.g. 9050)</source> <translation>Port du serveur mandataire (par ex. 9050)</translation> </message> <message> <source>&amp;Window</source> <translation>&amp;Fenêtre</translation> </message> <message> <source>Show only a tray icon after minimizing the window.</source> <translation>Afficher uniquement une icône système après minimisation.</translation> </message> <message> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation>&amp;Minimiser dans la barre système au lieu de la barre des tâches</translation> </message> <message> <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>Minimiser au lieu de quitter l'application lorsque la fenêtre est fermée. Si cette option est activée, l'application ne pourra être fermée qu'en sélectionnant Quitter dans le menu.</translation> </message> <message> <source>M&amp;inimize on close</source> <translation>M&amp;inimiser lors de la fermeture</translation> </message> <message> <source>&amp;Display</source> <translation>&amp;Affichage</translation> </message> <message> <source>User Interface &amp;language:</source> <translation>&amp;Langue de l'interface utilisateur :</translation> </message> <message> <source>The user interface language can be set here. This setting will take effect after restarting Prototanium.</source> <translation>La langue de l'interface utilisateur peut être définie ici. Ce réglage sera pris en compte après redémarrage de Prototanium.</translation> </message> <message> <source>&amp;Unit to show amounts in:</source> <translation>&amp;Unité d'affichage des montants :</translation> </message> <message> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation>Choisissez la sous-unité par défaut pour l'affichage dans l'interface et lors de l'envoi de pièces.</translation> </message> <message> <source>Whether to show coin control features or not.</source> <translation>Afficher ou non les fonctions de contrôle des pièces.</translation> </message> <message> <source>&amp;OK</source> <translation>&amp;OK</translation> </message> <message> <source>&amp;Cancel</source> <translation>A&amp;nnuler</translation> </message> <message> <source>default</source> <translation>par défaut</translation> </message> <message> <source>none</source> <translation>aucune</translation> </message> <message> <source>Confirm options reset</source> <translation>Confirmer la réinitialisation des options</translation> </message> <message> <source>Client restart required to activate changes.</source> <translation>Le redémarrage du client est nécessaire pour activer les changements.</translation> </message> <message> <source>Client will be shutdown, do you want to proceed?</source> <translation>Le client sera arrêté, voulez-vous continuer?</translation> </message> <message> <source>This change would require a client restart.</source> <translation>Ce changement demanderait un redémarrage du client.</translation> </message> <message> <source>The supplied proxy address is invalid.</source> <translation>L'adresse de serveur mandataire fournie est invalide.</translation> </message> </context> <context> <name>OverviewPage</name> <message> <source>Form</source> <translation>Formulaire</translation> </message> <message> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the Prototanium network after a connection is established, but this process has not completed yet.</source> <translation>Les informations affichées peuvent être obsolètes. Votre portefeuille est automatiquement synchronisé avec le réseau Prototanium lorsque la connexion s'établit, or ce processus n'est pas encore terminé.</translation> </message> <message> <source>Watch-only:</source> <translation>Juste-regarder :</translation> </message> <message> <source>Available:</source> <translation>Disponible :</translation> </message> <message> <source>Your current spendable balance</source> <translation>Votre solde actuel pouvant être dépensé</translation> </message> <message> <source>Pending:</source> <translation>En attente :</translation> </message> <message> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the spendable balance</source> <translation>Total des transactions qui doivent encore être confirmées et qu'il n'est pas encore possible de dépenser</translation> </message> <message> <source>Immature:</source> <translation>Immature :</translation> </message> <message> <source>Mined balance that has not yet matured</source> <translation>Le solde généré n'est pas encore mûr</translation> </message> <message> <source>Balances</source> <translation>Soldes</translation> </message> <message> <source>Total:</source> <translation>Total :</translation> </message> <message> <source>Your current total balance</source> <translation>Votre solde total actuel</translation> </message> <message> <source>Your current balance in watch-only addresses</source> <translation>Votre balance actuelle en adresses juste-regarder</translation> </message> <message> <source>Spendable:</source> <translation>Disponible :</translation> </message> <message> <source>Recent transactions</source> <translation>Transactions récentes</translation> </message> <message> <source>Unconfirmed transactions to watch-only addresses</source> <translation>Transactions non confirmées vers des adresses juste-regarder</translation> </message> <message> <source>Mined balance in watch-only addresses that has not yet matured</source> <translation>Le solde miné dans des adresses juste-regarder, qui n'est pas encore mûr</translation> </message> <message> <source>Current total balance in watch-only addresses</source> <translation>Solde total actuel dans des adresses juste-regarder</translation> </message> <message> <source>out of sync</source> <translation>désynchronisé</translation> </message> </context> <context> <name>PaymentServer</name> <message> <source>URI handling</source> <translation>Gestion des URIs</translation> </message> <message> <source>Invalid payment address %1</source> <translation>Adresse de paiement invalide %1</translation> </message> <message> <source>Payment request rejected</source> <translation>La demande de paiement est rejetée</translation> </message> <message> <source>Payment request network doesn't match client network.</source> <translation>Le réseau de la demande de paiement ne correspond pas au réseau du client.</translation> </message> <message> <source>Payment request has expired.</source> <translation>La demande de paiement est expirée.</translation> </message> <message> <source>Payment request is not initialized.</source> <translation>La demande de paiement n'est pas initialisée.</translation> </message> <message> <source>Requested payment amount of %1 is too small (considered dust).</source> <translation>Le paiement demandé d'un montant de %1 est trop faible (considéré comme de la poussière).</translation> </message> <message> <source>Payment request error</source> <translation>Erreur de demande de paiement</translation> </message> <message> <source>Cannot start bitcoin: click-to-pay handler</source> <translation>Impossible de démarrer le gestionnaire de cliquer-pour-payer bitcoin :</translation> </message> <message> <source>Payment request fetch URL is invalid: %1</source> <translation>L'URL de récupération de la demande de paiement est invalide : %1</translation> </message> <message> <source>URI cannot be parsed! This can be caused by an invalid Prototanium address or malformed URI parameters.</source> <translation>L'URI ne peut pas être analysé ! Ceci peut être causé par une adresse Prototanium invalide ou par des paramètres d'URI mal formés.</translation> </message> <message> <source>Payment request file handling</source> <translation>Gestion des fichiers de demande de paiement</translation> </message> <message> <source>Payment request file cannot be read! This can be caused by an invalid payment request file.</source> <translation>Le fichier de demande de paiement ne peut pas être lu ! Ceci peut être causé par un fichier de demande de paiement invalide.</translation> </message> <message> <source>Unverified payment requests to custom payment scripts are unsupported.</source> <translation>Les demandes de paiements non vérifiées à des scripts de paiement personnalisés ne sont pas prises en charge.</translation> </message> <message> <source>Refund from %1</source> <translation>Remboursement de %1</translation> </message> <message> <source>Error communicating with %1: %2</source> <translation>Erreur de communication avec %1 : %2</translation> </message> <message> <source>Payment request cannot be parsed!</source> <translation>La demande de paiement ne peut pas être analysée !</translation> </message> <message> <source>Bad response from server %1</source> <translation>Mauvaise réponse du serveur %1</translation> </message> <message> <source>Payment acknowledged</source> <translation>Le paiement a été confirmé</translation> </message> <message> <source>Network request error</source> <translation>Erreur de demande réseau</translation> </message> </context> <context> <name>PeerTableModel</name> <message> <source>User Agent</source> <translation>Agent utilisateur</translation> </message> <message> <source>Address/Hostname</source> <translation>Adresse/nom d'hôte</translation> </message> <message> <source>Ping Time</source> <translation>Temps de ping</translation> </message> </context> <context> <name>QObject</name> <message> <source>Amount</source> <translation>Montant</translation> </message> <message> <source>Enter a Prototanium address (e.g. %1)</source> <translation>Saisir une adresse Prototanium (p. ex. %1)</translation> </message> <message> <source>%1 d</source> <translation>%1 d</translation> </message> <message> <source>%1 h</source> <translation>%1 h</translation> </message> <message> <source>%1 m</source> <translation>%1 min</translation> </message> <message> <source>%1 s</source> <translation>%1 s</translation> </message> <message> <source>NETWORK</source> <translation>RÉSEAU</translation> </message> <message> <source>UNKNOWN</source> <translation>INCONNU</translation> </message> <message> <source>None</source> <translation>Aucun</translation> </message> <message> <source>N/A</source> <translation>N.D.</translation> </message> <message> <source>%1 ms</source> <translation>%1 ms</translation> </message> </context> <context> <name>QRImageWidget</name> <message> <source>&amp;Save Image...</source> <translation>&amp;Sauvegarder l'image...</translation> </message> <message> <source>&amp;Copy Image</source> <translation>&amp;Copier l'image</translation> </message> <message> <source>Save QR Code</source> <translation>Sauvegarder le code QR</translation> </message> <message> <source>PNG Image (*.png)</source> <translation>Image PNG (*.png)</translation> </message> </context> <context> <name>RPCConsole</name> <message> <source>Client name</source> <translation>Nom du client</translation> </message> <message> <source>N/A</source> <translation>N.D.</translation> </message> <message> <source>Client version</source> <translation>Version du client</translation> </message> <message> <source>&amp;Information</source> <translation>&amp;Informations</translation> </message> <message> <source>Debug window</source> <translation>Fenêtre de débogage</translation> </message> <message> <source>General</source> <translation>Général</translation> </message> <message> <source>Using OpenSSL version</source> <translation>Version d'OpenSSL utilisée</translation> </message> <message> <source>Using BerkeleyDB version</source> <translation>Version BerkeleyDB utilisée</translation> </message> <message> <source>Startup time</source> <translation>Heure de démarrage</translation> </message> <message> <source>Network</source> <translation>Réseau</translation> </message> <message> <source>Name</source> <translation>Nom</translation> </message> <message> <source>Number of connections</source> <translation>Nombre de connexions</translation> </message> <message> <source>Block chain</source> <translation>Chaîne de blocs</translation> </message> <message> <source>Current number of blocks</source> <translation>Nombre actuel de blocs</translation> </message> <message> <source>Received</source> <translation>Reçu</translation> </message> <message> <source>Sent</source> <translation>Envoyé</translation> </message> <message> <source>&amp;Peers</source> <translation>&amp;Pairs</translation> </message> <message> <source>Select a peer to view detailed information.</source> <translation>Choisir un pair pour voir l'information détaillée.</translation> </message> <message> <source>Direction</source> <translation>Direction</translation> </message> <message> <source>Version</source> <translation>Version</translation> </message> <message> <source>User Agent</source> <translation>Agent utilisateur</translation> </message> <message> <source>Services</source> <translation>Services</translation> </message> <message> <source>Starting Height</source> <translation>Hauteur de démarrage</translation> </message> <message> <source>Sync Height</source> <translation>Hauteur de synchro</translation> </message> <message> <source>Ban Score</source> <translation>Pointage des bannissements</translation> </message> <message> <source>Connection Time</source> <translation>Temps de connexion</translation> </message> <message> <source>Last Send</source> <translation>Dernier envoi</translation> </message> <message> <source>Last Receive</source> <translation>Dernière réception</translation> </message> <message> <source>Bytes Sent</source> <translation>Octets envoyés</translation> </message> <message> <source>Bytes Received</source> <translation>Octets reçus</translation> </message> <message> <source>Ping Time</source> <translation>Temps de ping</translation> </message> <message> <source>Last block time</source> <translation>Horodatage du dernier bloc</translation> </message> <message> <source>&amp;Open</source> <translation>&amp;Ouvrir</translation> </message> <message> <source>&amp;Console</source> <translation>&amp;Console</translation> </message> <message> <source>&amp;Network Traffic</source> <translation>Trafic &amp;réseau</translation> </message> <message> <source>&amp;Clear</source> <translation>&amp;Nettoyer</translation> </message> <message> <source>Totals</source> <translation>Totaux</translation> </message> <message> <source>In:</source> <translation>Entrant :</translation> </message> <message> <source>Out:</source> <translation>Sortant :</translation> </message> <message> <source>Build date</source> <translation>Date de compilation</translation> </message> <message> <source>Debug log file</source> <translation>Journal de débogage</translation> </message> <message> <source>Open the Prototanium debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation>Ouvrir le journal de débogage de Prototanium depuis le répertoire de données actuel. Ceci peut prendre quelques secondes pour les journaux de grande taille.</translation> </message> <message> <source>Clear console</source> <translation>Nettoyer la console</translation> </message> <message> <source>Welcome to the Prototanium RPC console.</source> <translation>Bienvenue sur la console RPC de Prototanium.</translation> </message> <message> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation>Utiliser les touches de curseur pour naviguer dans l'historique et &lt;b&gt;Ctrl-L&lt;/b&gt; pour effacer l'écran.</translation> </message> <message> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation>Taper &lt;b&gt;help&lt;/b&gt; pour afficher une vue générale des commandes disponibles.</translation> </message> <message> <source>%1 B</source> <translation>%1 o</translation> </message> <message> <source>%1 KB</source> <translation>%1 Ko</translation> </message> <message> <source>%1 MB</source> <translation>%1 Mo</translation> </message> <message> <source>%1 GB</source> <translation>%1 Go</translation> </message> <message> <source>via %1</source> <translation>par %1</translation> </message> <message> <source>never</source> <translation>jamais</translation> </message> <message> <source>Inbound</source> <translation>Entrant</translation> </message> <message> <source>Outbound</source> <translation>Sortant</translation> </message> <message> <source>Unknown</source> <translation>Inconnu</translation> </message> <message> <source>Fetching...</source> <translation>Récupération...</translation> </message> </context> <context> <name>ReceiveCoinsDialog</name> <message> <source>&amp;Amount:</source> <translation>&amp;Montant :</translation> </message> <message> <source>&amp;Label:</source> <translation>&amp;Étiquette :</translation> </message> <message> <source>&amp;Message:</source> <translation>M&amp;essage :</translation> </message> <message> <source>Reuse one of the previously used receiving addresses. Reusing addresses has security and privacy issues. Do not use this unless re-generating a payment request made before.</source> <translation>Réutilise une adresse de réception précédemment utilisée. Réutiliser une adresse pose des problèmes de sécurité et de vie privée. N'utilisez pas cette option sauf si vous générez à nouveau une demande de paiement déjà faite.</translation> </message> <message> <source>R&amp;euse an existing receiving address (not recommended)</source> <translation>Ré&amp;utiliser une adresse de réception existante (non recommandé)</translation> </message> <message> <source>An optional message to attach to the payment request, which will be displayed when the request is opened. Note: The message will not be sent with the payment over the Prototanium network.</source> <translation>Un message optionnel à joindre à la demande de paiement qui sera affiché à l'ouverture de celle-ci. Note : le message ne sera pas envoyé avec le paiement par le réseau Prototanium.</translation> </message> <message> <source>An optional label to associate with the new receiving address.</source> <translation>Un étiquette optionnelle à associer à la nouvelle adresse de réception</translation> </message> <message> <source>Use this form to request payments. All fields are &lt;b&gt;optional&lt;/b&gt;.</source> <translation>Utiliser ce formulaire pour demander des paiements. Tous les champs sont &lt;b&gt;optionnels&lt;/b&gt;.</translation> </message> <message> <source>An optional amount to request. Leave this empty or zero to not request a specific amount.</source> <translation>Un montant optionnel à demander. Laisser ceci vide ou à zéro pour ne pas demander de montant spécifique.</translation> </message> <message> <source>Clear all fields of the form.</source> <translation>Effacer tous les champs du formulaire.</translation> </message> <message> <source>Clear</source> <translation>Effacer</translation> </message> <message> <source>Requested payments history</source> <translation>Historique des paiements demandés</translation> </message> <message> <source>&amp;Request payment</source> <translation>&amp;Demande de paiement</translation> </message> <message> <source>Show the selected request (does the same as double clicking an entry)</source> <translation>Afficher la demande choisie (identique à un double-clic sur une entrée)</translation> </message> <message> <source>Show</source> <translation>Afficher</translation> </message> <message> <source>Remove the selected entries from the list</source> <translation>Enlever les entrées sélectionnées de la liste</translation> </message> <message> <source>Remove</source> <translation>Enlever</translation> </message> <message> <source>Copy label</source> <translation>Copier l’étiquette</translation> </message> <message> <source>Copy message</source> <translation>Copier le message</translation> </message> <message> <source>Copy amount</source> <translation>Copier le montant</translation> </message> </context> <context> <name>ReceiveRequestDialog</name> <message> <source>QR Code</source> <translation>Code QR</translation> </message> <message> <source>Copy &amp;URI</source> <translation>Copier l'&amp;URI</translation> </message> <message> <source>Copy &amp;Address</source> <translation>Copier l'&amp;adresse</translation> </message> <message> <source>&amp;Save Image...</source> <translation>&amp;Sauvegarder l'image...</translation> </message> <message> <source>Request payment to %1</source> <translation>Demande de paiement à %1</translation> </message> <message> <source>Payment information</source> <translation>Informations de paiement</translation> </message> <message> <source>URI</source> <translation>URI</translation> </message> <message> <source>Address</source> <translation>Adresse</translation> </message> <message> <source>Amount</source> <translation>Montant</translation> </message> <message> <source>Label</source> <translation>Étiquette</translation> </message> <message> <source>Message</source> <translation>Message</translation> </message> <message> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation>L'URI résultant est trop long, essayez de réduire le texte d'étiquette / de message.</translation> </message> <message> <source>Error encoding URI into QR Code.</source> <translation>Erreur d'encodage de l'URI en code QR.</translation> </message> </context> <context> <name>RecentRequestsTableModel</name> <message> <source>Date</source> <translation>Date</translation> </message> <message> <source>Label</source> <translation>Étiquette</translation> </message> <message> <source>Message</source> <translation>Message</translation> </message> <message> <source>Amount</source> <translation>Montant</translation> </message> <message> <source>(no label)</source> <translation>(pas d'étiquette)</translation> </message> <message> <source>(no message)</source> <translation>(pas de message)</translation> </message> <message> <source>(no amount)</source> <translation>(aucun montant)</translation> </message> </context> <context> <name>SendCoinsDialog</name> <message> <source>Send Coins</source> <translation>Envoyer des pièces</translation> </message> <message> <source>Coin Control Features</source> <translation>Fonctions de contrôle des pièces</translation> </message> <message> <source>Inputs...</source> <translation>Entrants...</translation> </message> <message> <source>automatically selected</source> <translation>choisi automatiquement</translation> </message> <message> <source>Insufficient funds!</source> <translation>Fonds insuffisants !</translation> </message> <message> <source>Quantity:</source> <translation>Quantité :</translation> </message> <message> <source>Bytes:</source> <translation>Octets :</translation> </message> <message> <source>Amount:</source> <translation>Montant :</translation> </message> <message> <source>Priority:</source> <translation>Priorité :</translation> </message> <message> <source>Fee:</source> <translation>Frais :</translation> </message> <message> <source>After Fee:</source> <translation>Après les frais :</translation> </message> <message> <source>Change:</source> <translation>Monnaie :</translation> </message> <message> <source>If this is activated, but the change address is empty or invalid, change will be sent to a newly generated address.</source> <translation>Si ceci est actif mais l'adresse de monnaie rendue est vide ou invalide, la monnaie sera envoyée vers une adresse nouvellement générée.</translation> </message> <message> <source>Custom change address</source> <translation>Adresse personnalisée de monnaie rendue</translation> </message> <message> <source>Transaction Fee:</source> <translation>Frais de transaction :</translation> </message> <message> <source>Choose...</source> <translation>Choisir...</translation> </message> <message> <source>collapse fee-settings</source> <translation>réduire les paramètres des frais</translation> </message> <message> <source>Minimize</source> <translation>Minimiser</translation> </message> <message> <source>If the custom fee is set to 1000 satoshis and the transaction is only 250 bytes, then "per kilobyte" only pays 250 satoshis in fee, while "at least" pays 1000 satoshis. For transactions bigger than a kilobyte both pay by kilobyte.</source> <translation>Si les frais personnalisés sont définis à 1 000 satoshis et que la transaction est seulement de 250 octets, donc le « par kilo-octet » ne paiera que 250 satoshis de frais, alors que le « au moins » paiera 1 000 satoshis. Pour des transactions supérieures à un kilo-octet, les deux paieront par kilo-octets.</translation> </message> <message> <source>per kilobyte</source> <translation>par kilo-octet</translation> </message> <message> <source>If the custom fee is set to 1000 satoshis and the transaction is only 250 bytes, then "per kilobyte" only pays 250 satoshis in fee, while "total at least" pays 1000 satoshis. For transactions bigger than a kilobyte both pay by kilobyte.</source> <translation>Si les frais personnalisés sont définis à 1 000 satoshis et que la transaction est seulement de 250 octets, donc le « par kilo-octet » ne paiera que 250 satoshis de frais, alors que le « total au moins » paiera 1 000 satoshis. Pour des transactions supérieures à un kilo-octet, les deux paieront par kilo-octets.</translation> </message> <message> <source>total at least</source> <translation>total au moins</translation> </message> <message> <source>Paying only the minimum fee is just fine as long as there is less transaction volume than space in the blocks. But be aware that this can end up in a never confirming transaction once there is more demand for bitcoin transactions than the network can process.</source> <translation>Il est correct de payer les frais minimum tant que le volume transactionnel est inférieur à l'espace dans les blocs. Mais soyez conscient que ceci pourrait résulter en une transaction n'étant jamais confirmée une fois qu'il y aura plus de transactions que le réseau ne pourra en traiter.</translation> </message> <message> <source>(read the tooltip)</source> <translation>(lire l'infobulle)</translation> </message> <message> <source>Recommended:</source> <translation>Recommandés :</translation> </message> <message> <source>Custom:</source> <translation>Personnalisés : </translation> </message> <message> <source>(Smart fee not initialized yet. This usually takes a few blocks...)</source> <translation>(Les frais intelligents ne sont pas encore initialisés. Ceci prend habituellement quelques blocs...)</translation> </message> <message> <source>Confirmation time:</source> <translation>Temps de confirmation :</translation> </message> <message> <source>normal</source> <translation>normal</translation> </message> <message> <source>fast</source> <translation>rapide</translation> </message> <message> <source>Send as zero-fee transaction if possible</source> <translation>Envoyer si possible une transaction sans frais</translation> </message> <message> <source>(confirmation may take longer)</source> <translation>(la confirmation pourrait prendre plus longtemps)</translation> </message> <message> <source>Send to multiple recipients at once</source> <translation>Envoyer à plusieurs destinataires à la fois</translation> </message> <message> <source>Add &amp;Recipient</source> <translation>Ajouter un &amp;destinataire</translation> </message> <message> <source>Clear all fields of the form.</source> <translation>Effacer tous les champs du formulaire.</translation> </message> <message> <source>Dust:</source> <translation>Poussière :</translation> </message> <message> <source>Clear &amp;All</source> <translation>&amp;Tout nettoyer</translation> </message> <message> <source>Balance:</source> <translation>Solde :</translation> </message> <message> <source>Confirm the send action</source> <translation>Confirmer l’action d'envoi</translation> </message> <message> <source>S&amp;end</source> <translation>E&amp;nvoyer</translation> </message> <message> <source>Confirm send coins</source> <translation>Confirmer l’envoi des pièces</translation> </message> <message> <source>%1 to %2</source> <translation>%1 à %2</translation> </message> <message> <source>Copy quantity</source> <translation>Copier la quantité</translation> </message> <message> <source>Copy amount</source> <translation>Copier le montant</translation> </message> <message> <source>Copy fee</source> <translation>Copier les frais</translation> </message> <message> <source>Copy after fee</source> <translation>Copier le montant après les frais</translation> </message> <message> <source>Copy bytes</source> <translation>Copier les octets</translation> </message> <message> <source>Copy priority</source> <translation>Copier la priorité</translation> </message> <message> <source>Copy change</source> <translation>Copier la monnaie</translation> </message> <message> <source>Total Amount %1 (= %2)</source> <translation>Montant total %1 (= %2)</translation> </message> <message> <source>or</source> <translation>ou</translation> </message> <message> <source>The recipient address is not valid, please recheck.</source> <translation>L'adresse du destinataire n’est pas valide, veuillez la vérifier.</translation> </message> <message> <source>The amount to pay must be larger than 0.</source> <translation>Le montant à payer doit être supérieur à 0.</translation> </message> <message> <source>The amount exceeds your balance.</source> <translation>Le montant dépasse votre solde.</translation> </message> <message> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation>Le montant dépasse votre solde lorsque les frais de transaction de %1 sont inclus.</translation> </message> <message> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation>Adresse indentique trouvée, il n'est possible d'envoyer qu'une fois à chaque adresse par opération d'envoi.</translation> </message> <message> <source>Transaction creation failed!</source> <translation>La création de la transaction a échoué !</translation> </message> <message> <source>The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation>La transaction a été rejetée ! Ceci peut arriver si certaines pièces de votre portefeuille étaient déjà dépensées, par exemple si vous avez utilisé une copie de wallet.dat et que des pièces ont été dépensées dans la copie sans être marquées comme telles ici.</translation> </message> <message> <source>A fee higher than %1 is considered an insanely high fee.</source> <translation>Des frais supérieurs à %1 sont considérés comme follement élevés.</translation> </message> <message> <source>Pay only the minimum fee of %1</source> <translation>Payer seulement les frais minimum de %1</translation> </message> <message> <source>Estimated to begin confirmation within %1 block(s).</source> <translation>Début de confirmation estimé à %1 bloc(s).</translation> </message> <message> <source>Warning: Invalid Prototanium address</source> <translation>Avertissement : adresse Prototanium invalide</translation> </message> <message> <source>(no label)</source> <translation>(pas d'étiquette)</translation> </message> <message> <source>Warning: Unknown change address</source> <translation>Avertissement : adresse de monnaie rendue inconnue</translation> </message> <message> <source>Copy dust</source> <translation>Copier la poussière</translation> </message> <message> <source>Are you sure you want to send?</source> <translation>Êtes-vous sûr de vouloir envoyer ?</translation> </message> <message> <source>added as transaction fee</source> <translation>ajouté en tant que frais de transaction</translation> </message> </context> <context> <name>SendCoinsEntry</name> <message> <source>A&amp;mount:</source> <translation>&amp;Montant :</translation> </message> <message> <source>Pay &amp;To:</source> <translation>&amp;Payer à :</translation> </message> <message> <source>Enter a label for this address to add it to your address book</source> <translation>Saisir une étiquette pour cette adresse afin de l’ajouter à votre carnet d’adresses</translation> </message> <message> <source>&amp;Label:</source> <translation>É&amp;tiquette :</translation> </message> <message> <source>Choose previously used address</source> <translation>Choisir une adresse déjà utilisée</translation> </message> <message> <source>This is a normal payment.</source> <translation>Ceci est un paiement normal.</translation> </message> <message> <source>The Prototanium address to send the payment to</source> <translation>L'adresse Prototanium à laquelle envoyer le paiement</translation> </message> <message> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <source>Paste address from clipboard</source> <translation>Coller l'adresse depuis le presse-papiers</translation> </message> <message> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <source>Remove this entry</source> <translation>Enlever cette entrée</translation> </message> <message> <source>Message:</source> <translation>Message :</translation> </message> <message> <source>This is a verified payment request.</source> <translation>Ceci est une demande de paiement vérifiée.</translation> </message> <message> <source>Enter a label for this address to add it to the list of used addresses</source> <translation>Saisir une étiquette pour cette adresse afin de l'ajouter à la liste d'adresses utilisées</translation> </message> <message> <source>A message that was attached to the bitcoin: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the Prototanium network.</source> <translation>Un message qui était joint à l'URI Prototanium et qui sera stocké avec la transaction pour référence. Note : ce message ne sera pas envoyé par le réseau Prototanium.</translation> </message> <message> <source>This is an unverified payment request.</source> <translation>Ceci est une demande de paiement non vérifiée.</translation> </message> <message> <source>Pay To:</source> <translation>Payer à :</translation> </message> <message> <source>Memo:</source> <translation>Mémo :</translation> </message> </context> <context> <name>ShutdownWindow</name> <message> <source>Prototanium is shutting down...</source> <translation>Arrêt de Prototanium...</translation> </message> <message> <source>Do not shut down the computer until this window disappears.</source> <translation>Ne pas fermer l'ordinateur jusqu'à la disparition de cette fenêtre.</translation> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <source>Signatures - Sign / Verify a Message</source> <translation>Signatures - Signer / Vérifier un message</translation> </message> <message> <source>&amp;Sign Message</source> <translation>&amp;Signer un message</translation> </message> <message> <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>Vous pouvez signer des messages avec vos adresses pour prouver que vous les détenez. Faites attention de ne pas signer de vague car des attaques d'hameçonnage peuvent essayer d'usurper votre identité par votre signature. Ne signez que des déclarations entièrement détaillées et avec lesquelles vous serez d'accord.</translation> </message> <message> <source>The Prototanium address to sign the message with</source> <translation>L'adresse Prototanium avec laquelle signer le message</translation> </message> <message> <source>Choose previously used address</source> <translation>Choisir une adresse précédemment utilisée</translation> </message> <message> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <source>Paste address from clipboard</source> <translation>Coller une adresse depuis le presse-papiers</translation> </message> <message> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <source>Enter the message you want to sign here</source> <translation>Saisir ici le message que vous désirez signer</translation> </message> <message> <source>Signature</source> <translation>Signature</translation> </message> <message> <source>Copy the current signature to the system clipboard</source> <translation>Copier la signature actuelle dans le presse-papiers</translation> </message> <message> <source>Sign the message to prove you own this Prototanium address</source> <translation>Signer le message pour prouver que vous détenez cette adresse Prototanium</translation> </message> <message> <source>Sign &amp;Message</source> <translation>Signer le &amp;message</translation> </message> <message> <source>Reset all sign message fields</source> <translation>Réinitialiser tous les champs de signature de message</translation> </message> <message> <source>Clear &amp;All</source> <translation>&amp;Tout nettoyer</translation> </message> <message> <source>&amp;Verify Message</source> <translation>&amp;Vérifier un message</translation> </message> <message> <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>Saisir ci-dessous l'adresse de signature, le message (assurez-vous d'avoir copié exactement les retours à la ligne, les espaces, tabulations etc.) et la signature pour vérifier le message. Faire attention à ne pas déduire davantage de la signature que ce qui est contenu dans le message signé lui-même pour éviter d'être trompé par une attaque d'homme du milieu.</translation> </message> <message> <source>The Prototanium address the message was signed with</source> <translation>L'adresse Prototanium avec laquelle le message a été signé</translation> </message> <message> <source>Verify the message to ensure it was signed with the specified Prototanium address</source> <translation>Vérifier le message pour vous assurer qu'il a bien été signé par l'adresse Prototanium spécifiée</translation> </message> <message> <source>Verify &amp;Message</source> <translation>Vérifier le &amp;message</translation> </message> <message> <source>Reset all verify message fields</source> <translation>Réinitialiser tous les champs de vérification de message</translation> </message> <message> <source>Click "Sign Message" to generate signature</source> <translation>Cliquez sur « Signer le message » pour générer la signature</translation> </message> <message> <source>The entered address is invalid.</source> <translation>L'adresse saisie est invalide.</translation> </message> <message> <source>Please check the address and try again.</source> <translation>Veuillez vérifier l'adresse et réessayer.</translation> </message> <message> <source>The entered address does not refer to a key.</source> <translation>L'adresse saisie ne fait pas référence à une clef.</translation> </message> <message> <source>Wallet unlock was cancelled.</source> <translation>Le déverrouillage du portefeuille a été annulé.</translation> </message> <message> <source>Private key for the entered address is not available.</source> <translation>La clef privée pour l'adresse indiquée n'est pas disponible.</translation> </message> <message> <source>Message signing failed.</source> <translation>La signature du message a échoué.</translation> </message> <message> <source>Message signed.</source> <translation>Le message a été signé.</translation> </message> <message> <source>The signature could not be decoded.</source> <translation>La signature n'a pu être décodée.</translation> </message> <message> <source>Please check the signature and try again.</source> <translation>Veuillez vérifier la signature et réessayer.</translation> </message> <message> <source>The signature did not match the message digest.</source> <translation>La signature ne correspond pas à l'empreinte du message.</translation> </message> <message> <source>Message verification failed.</source> <translation>Échec de la vérification du message.</translation> </message> <message> <source>Message verified.</source> <translation>Message vérifié.</translation> </message> </context> <context> <name>SplashScreen</name> <message> <source>Prototanium</source> <translation>Prototanium</translation> </message> <message> <source>The Prototanium developers</source> <translation>Les développeurs Prototanium</translation> </message> <message> <source>[testnet]</source> <translation>[testnet]</translation> </message> </context> <context> <name>TrafficGraphWidget</name> <message> <source>KB/s</source> <translation>Ko/s</translation> </message> </context> <context> <name>TransactionDesc</name> <message> <source>Open until %1</source> <translation>Ouvert jusqu'à %1</translation> </message> <message> <source>conflicted</source> <translation>en conflit</translation> </message> <message> <source>%1/offline</source> <translation>%1/hors ligne</translation> </message> <message> <source>%1/unconfirmed</source> <translation>%1/non confirmée</translation> </message> <message> <source>%1 confirmations</source> <translation>%1 confirmations</translation> </message> <message> <source>Status</source> <translation>État</translation> </message> <message numerus="yes"> <source>, broadcast through %n node(s)</source> <translation><numerusform>, diffusée à travers %n nœud</numerusform><numerusform>, diffusée à travers %n nœuds</numerusform></translation> </message> <message> <source>Date</source> <translation>Date</translation> </message> <message> <source>Source</source> <translation>Source</translation> </message> <message> <source>Generated</source> <translation>Généré</translation> </message> <message> <source>From</source> <translation>De</translation> </message> <message> <source>To</source> <translation>À</translation> </message> <message> <source>own address</source> <translation>votre propre adresse</translation> </message> <message> <source>watch-only</source> <translation>juste-regarder</translation> </message> <message> <source>label</source> <translation>étiquette</translation> </message> <message> <source>Credit</source> <translation>Crédit</translation> </message> <message numerus="yes"> <source>matures in %n more block(s)</source> <translation><numerusform>arrive à maturité dans %n bloc de plus</numerusform><numerusform>arrive à maturité dans %n blocs de plus</numerusform></translation> </message> <message> <source>not accepted</source> <translation>refusé</translation> </message> <message> <source>Debit</source> <translation>Débit</translation> </message> <message> <source>Total debit</source> <translation>Débit total</translation> </message> <message> <source>Total credit</source> <translation>Crédit total</translation> </message> <message> <source>Transaction fee</source> <translation>Frais de transaction</translation> </message> <message> <source>Net amount</source> <translation>Montant net</translation> </message> <message> <source>Message</source> <translation>Message</translation> </message> <message> <source>Comment</source> <translation>Commentaire</translation> </message> <message> <source>Transaction ID</source> <translation>ID de la transaction</translation> </message> <message> <source>Merchant</source> <translation>Marchand</translation> </message> <message> <source>Generated coins must mature %1 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to "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 pièces générées doivent mûrir pendant %1 blocs avant de pouvoir être dépensées. Lorsque vous avez généré ce bloc, il a été diffusé sur le réseau pour être ajouté à la chaîne de blocs. S’il échoue a intégrer la chaîne, son état sera modifié en « non accepté » et il ne sera pas possible de le dépenser. Ceci peut arriver occasionnellement si un autre nœud génère un bloc à quelques secondes du votre.</translation> </message> <message> <source>Debug information</source> <translation>Informations de débogage</translation> </message> <message> <source>Transaction</source> <translation>Transaction</translation> </message> <message> <source>Inputs</source> <translation>Entrants</translation> </message> <message> <source>Amount</source> <translation>Montant</translation> </message> <message> <source>true</source> <translation>vrai</translation> </message> <message> <source>false</source> <translation>faux</translation> </message> <message> <source>, has not been successfully broadcast yet</source> <translation>, n’a pas encore été diffusée avec succès</translation> </message> <message numerus="yes"> <source>Open for %n more block(s)</source> <translation><numerusform>Ouvert pour %n bloc de plus</numerusform><numerusform>Ouvert pour %n blocs de plus</numerusform></translation> </message> <message> <source>unknown</source> <translation>inconnu</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <source>Transaction details</source> <translation>Détails de la transaction</translation> </message> <message> <source>This pane shows a detailed description of the transaction</source> <translation>Ce panneau affiche une description détaillée de la transaction</translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <source>Date</source> <translation>Date</translation> </message> <message> <source>Type</source> <translation>Type</translation> </message> <message> <source>Address</source> <translation>Adresse</translation> </message> <message> <source>Immature (%1 confirmations, will be available after %2)</source> <translation>Immature (%1 confirmations, sera disponible après %2)</translation> </message> <message numerus="yes"> <source>Open for %n more block(s)</source> <translation><numerusform>Ouvert pour %n bloc de plus</numerusform><numerusform>Ouvert pour %n blocs de plus</numerusform></translation> </message> <message> <source>Open until %1</source> <translation>Ouvert jusqu'à %1</translation> </message> <message> <source>Confirmed (%1 confirmations)</source> <translation>Confirmée (%1 confirmations)</translation> </message> <message> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>Ce bloc n’a été reçu par aucun autre nœud et ne sera probablement pas accepté !</translation> </message> <message> <source>Generated but not accepted</source> <translation>Généré mais pas accepté</translation> </message> <message> <source>Offline</source> <translation>Hors ligne</translation> </message> <message> <source>Unconfirmed</source> <translation>Non confirmé</translation> </message> <message> <source>Confirming (%1 of %2 recommended confirmations)</source> <translation>Confirmation (%1 sur %2 confirmations recommandées)</translation> </message> <message> <source>Conflicted</source> <translation>En conflit</translation> </message> <message> <source>Received with</source> <translation>Reçue avec</translation> </message> <message> <source>Received from</source> <translation>Reçue de</translation> </message> <message> <source>Sent to</source> <translation>Envoyée à</translation> </message> <message> <source>Payment to yourself</source> <translation>Paiement à vous-même</translation> </message> <message> <source>Mined</source> <translation>Miné</translation> </message> <message> <source>watch-only</source> <translation>juste-regarder</translation> </message> <message> <source>(n/a)</source> <translation>(n.d)</translation> </message> <message> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>État de la transaction. Laissez le pointeur de la souris sur ce champ pour voir le nombre de confirmations.</translation> </message> <message> <source>Date and time that the transaction was received.</source> <translation>Date et heure de réception de la transaction.</translation> </message> <message> <source>Type of transaction.</source> <translation>Type de transaction.</translation> </message> <message> <source>Whether or not a watch-only address is involved in this transaction.</source> <translation>Une adresse juste-regarder est-elle impliquée dans cette transaction.</translation> </message> <message> <source>Destination address of transaction.</source> <translation>L’adresse de destination de la transaction.</translation> </message> <message> <source>Amount removed from or added to balance.</source> <translation>Montant ajouté ou enlevé au solde.</translation> </message> </context> <context> <name>TransactionView</name> <message> <source>All</source> <translation>Toutes</translation> </message> <message> <source>Today</source> <translation>Aujourd’hui</translation> </message> <message> <source>This week</source> <translation>Cette semaine</translation> </message> <message> <source>This month</source> <translation>Ce mois-ci</translation> </message> <message> <source>Last month</source> <translation>Le mois dernier</translation> </message> <message> <source>This year</source> <translation>Cette année</translation> </message> <message> <source>Range...</source> <translation>Intervalle…</translation> </message> <message> <source>Received with</source> <translation>Reçue avec</translation> </message> <message> <source>Sent to</source> <translation>Envoyée à</translation> </message> <message> <source>To yourself</source> <translation>À vous-même</translation> </message> <message> <source>Mined</source> <translation>Miné</translation> </message> <message> <source>Other</source> <translation>Autres</translation> </message> <message> <source>Enter address or label to search</source> <translation>Saisir une adresse ou une étiquette à rechercher</translation> </message> <message> <source>Min amount</source> <translation>Montant min.</translation> </message> <message> <source>Copy address</source> <translation>Copier l’adresse</translation> </message> <message> <source>Copy label</source> <translation>Copier l’étiquette</translation> </message> <message> <source>Copy amount</source> <translation>Copier le montant</translation> </message> <message> <source>Copy transaction ID</source> <translation>Copier l'ID de la transaction</translation> </message> <message> <source>Edit label</source> <translation>Modifier l’étiquette</translation> </message> <message> <source>Show transaction details</source> <translation>Afficher les détails de la transaction</translation> </message> <message> <source>Export Transaction History</source> <translation>Exporter l'historique des transactions</translation> </message> <message> <source>Watch-only</source> <translation>Juste-regarder :</translation> </message> <message> <source>Exporting Failed</source> <translation>L'exportation a échoué</translation> </message> <message> <source>There was an error trying to save the transaction history to %1.</source> <translation>Une erreur est survenue lors de l'enregistrement de l'historique des transactions vers %1.</translation> </message> <message> <source>Exporting Successful</source> <translation>Exportation réussie</translation> </message> <message> <source>The transaction history was successfully saved to %1.</source> <translation>L'historique des transactions a été sauvegardée avec succès vers %1.</translation> </message> <message> <source>Comma separated file (*.csv)</source> <translation>Valeurs séparées par des virgules (*.csv)</translation> </message> <message> <source>Confirmed</source> <translation>Confirmée</translation> </message> <message> <source>Date</source> <translation>Date</translation> </message> <message> <source>Type</source> <translation>Type</translation> </message> <message> <source>Label</source> <translation>Étiquette</translation> </message> <message> <source>Address</source> <translation>Adresse</translation> </message> <message> <source>ID</source> <translation>ID</translation> </message> <message> <source>Range:</source> <translation>Intervalle :</translation> </message> <message> <source>to</source> <translation>à</translation> </message> </context> <context> <name>UnitDisplayStatusBarControl</name> <message> <source>Unit to show amounts in. Click to select another unit.</source> <translation>Unité d'affichage des montants. Cliquer pour choisir une autre unité.</translation> </message> </context> <context> <name>WalletFrame</name> <message> <source>No wallet has been loaded.</source> <translation>Aucun portefeuille de chargé.</translation> </message> </context> <context> <name>WalletModel</name> <message> <source>Send Coins</source> <translation>Envoyer des pièces</translation> </message> </context> <context> <name>WalletView</name> <message> <source>&amp;Export</source> <translation>&amp;Exporter</translation> </message> <message> <source>Export the data in the current tab to a file</source> <translation>Exporter les données de l'onglet courant vers un fichier</translation> </message> <message> <source>Backup Wallet</source> <translation>Sauvegarder le portefeuille</translation> </message> <message> <source>Wallet Data (*.dat)</source> <translation>Données de portefeuille (*.dat)</translation> </message> <message> <source>Backup Failed</source> <translation>Échec de la sauvegarde</translation> </message> <message> <source>There was an error trying to save the wallet data to %1.</source> <translation>Une erreur est survenue lors de l'enregistrement des données de portefeuille vers %1.</translation> </message> <message> <source>The wallet data was successfully saved to %1.</source> <translation>Les données de portefeuille ont été enregistrées avec succès vers %1</translation> </message> <message> <source>Backup Successful</source> <translation>Sauvegarde réussie</translation> </message> </context> <context> <name>bitcoin-core</name> <message> <source>Options:</source> <translation>Options :</translation> </message> <message> <source>Specify data directory</source> <translation>Spécifier le répertoire de données</translation> </message> <message> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation>Se connecter à un nœud pour obtenir des adresses de pairs puis se déconnecter</translation> </message> <message> <source>Specify your own public address</source> <translation>Spécifier votre propre adresse publique</translation> </message> <message> <source>Accept command line and JSON-RPC commands</source> <translation>Accepter les commandes de JSON-RPC et de la ligne de commande</translation> </message> <message> <source>Run in the background as a daemon and accept commands</source> <translation>Fonctionner en arrière-plan en tant que démon et accepter les commandes</translation> </message> <message> <source>Use the test network</source> <translation>Utiliser le réseau de test</translation> </message> <message> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation>Accepter les connexions entrantes (par défaut : 1 si aucun -proxy ou -connect )</translation> </message> <message> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=bitcoinrpc 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 "Prototanium Alert" [email protected] </source> <translation>%s, vous devez définir un mot de passe rpc dans le fichier de configuration : %s Il vous est conseillé d'utiliser le mot de passe aléatoire suivant : rpcuser=bitcoinrpc rpcpassword=%s (vous n'avez pas besoin de retenir ce mot de passe) Le nom d'utilisateur et le mot de passe NE DOIVENT PAS être identiques. Si le fichier n'existe pas, créez-le avec les droits de lecture accordés au propriétaire. Il est aussi conseillé de régler alertnotify pour être prévenu des problèmes ; par exemple : alertnotify=echo %%s | mail -s "Alerte Prototanium" [email protected] </translation> </message> <message> <source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source> <translation>Se lier à l'adresse donnée et toujours l'écouter. Utilisez la notation [host]:port pour l'IPv6</translation> </message> <message> <source>Delete all wallet transactions and only recover those parts of the blockchain through -rescan on startup</source> <translation>Supprimer toutes les transactions du portefeuille et ne récupérer que ces parties de la chaîne de bloc avec -rescan au démarrage</translation> </message> <message> <source>Distributed under the MIT software license, see the accompanying file COPYING or &lt;http://www.opensource.org/licenses/mit-license.php&gt;.</source> <translation>Distribué sous la licence MIT d'utilisation d'un logiciel. Consultez le fichier joint COPYING ou &lt;http://www.opensource.org/licenses/mit-license.php&gt;.</translation> </message> <message> <source>Enter regression test mode, which uses a special chain in which blocks can be solved instantly.</source> <translation>Passer en mode de test de régression qui utilise une chaîne spéciale dans laquelle les blocs sont résolus instantanément.</translation> </message> <message> <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>Erreur : La transaction a été rejetée ! Ceci peut arriver si certaines pièces de votre portefeuille étaient déjà dépensées, par exemple si vous avez utilisé une copie de wallet.dat et les pièces ont été dépensées avec cette copie sans être marquées comme tel ici.</translation> </message> <message> <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>Erreur : cette transaction exige des frais de transaction d'au moins %s en raison de son montant, de sa complexité ou de l'utilisation de fonds reçus récemment !</translation> </message> <message> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation>Exécuter la commande lorsqu'une transaction de portefeuille change (%s dans la commande est remplacée par TxID)</translation> </message> <message> <source>In this mode -genproclimit controls how many blocks are generated immediately.</source> <translation>Dans ce mode -genproclimit contrôle combien de blocs sont générés immédiatement.</translation> </message> <message> <source>Set the number of script verification threads (%u to %d, 0 = auto, &lt;0 = leave that many cores free, default: %d)</source> <translation>Définir le nombre d'exétrons de vérification des scripts (%u à %d, 0 = auto, &lt; 0 = laisser ce nombre de cœurs inutilisés, par défaut : %d)</translation> </message> <message> <source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source> <translation>Ceci est une pré-version de test - l'utiliser à vos risques et périls - ne pas l'utiliser pour miner ou pour des applications marchandes</translation> </message> <message> <source>Unable to bind to %s on this computer. Prototanium is probably already running.</source> <translation>Impossible de se lier à %s sur cet ordinateur. Prototanium fonctionne probablement déjà.</translation> </message> <message> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation>Avertissement : -paytxfee est réglé sur un montant très élevé ! Il s'agit des frais de transaction que vous payerez si vous envoyez une transaction.</translation> </message> <message> <source>Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues.</source> <translation>Avertissement : le réseau ne semble pas totalement d'accord ! Quelques mineurs semblent éprouver des difficultés.</translation> </message> <message> <source>Warning: We do not appear to fully agree with our peers! You may need to upgrade, or other nodes may need to upgrade.</source> <translation>Avertissement : nous ne semblons pas être en accord complet avec nos pairs ! Vous pourriez avoir besoin d'effectuer une mise à niveau, ou d'autres nœuds du réseau pourraient avoir besoin d'effectuer une mise à niveau.</translation> </message> <message> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation>Avertissement : une erreur est survenue lors de la lecture de wallet.dat ! Toutes les clefs ont été lues correctement mais les données de transaction ou les entrées du carnet d'adresses sont peut-être incorrectes ou manquantes.</translation> </message> <message> <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>Avertissement : wallet.dat corrompu, données récupérées ! Le fichier wallet.dat original a été enregistré en tant que wallet.{timestamp}.bak dans %s ; si votre solde ou transactions sont incorrects vous devriez effectuer une restauration depuis une sauvegarde.</translation> </message> <message> <source>Whitelist peers connecting from the given netmask or IP address. Can be specified multiple times.</source> <translation>Pairs de la liste blanche se connectant à partir du masque réseau ou de l'IP donné. Peut être spécifié plusieurs fois.</translation> </message> <message> <source>(default: 1)</source> <translation>(par défaut : 1)</translation> </message> <message> <source>&lt;category&gt; can be:</source> <translation>&lt;category&gt; peut être :</translation> </message> <message> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation>Tenter de récupérer les clefs privées d'un wallet.dat corrompu</translation> </message> <message> <source>Block creation options:</source> <translation>Options de création de bloc :</translation> </message> <message> <source>Connect only to the specified node(s)</source> <translation>Ne se connecter qu'au(x) nœud(s) spécifié(s)</translation> </message> <message> <source>Connection options:</source> <translation>Options de connexion :</translation> </message> <message> <source>Corrupted block database detected</source> <translation>Base corrompue de données des blocs détectée</translation> </message> <message> <source>Debugging/Testing options:</source> <translation>Options de test/de débogage :</translation> </message> <message> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation>Découvrir sa propre adresse IP (par défaut : 1 lors de l'écoute et si aucun -externalip)</translation> </message> <message> <source>Do not load the wallet and disable wallet RPC calls</source> <translation>Ne pas charger le portefeuille et désactiver les appels RPC</translation> </message> <message> <source>Do you want to rebuild the block database now?</source> <translation>Voulez-vous reconstruire la base de données des blocs maintenant ?</translation> </message> <message> <source>Error initializing block database</source> <translation>Erreur lors de l'initialisation de la base de données des blocs</translation> </message> <message> <source>Error initializing wallet database environment %s!</source> <translation>Erreur lors de l'initialisation de l'environnement de la base de données du portefeuille %s !</translation> </message> <message> <source>Error loading block database</source> <translation>Erreur du chargement de la base de données des blocs</translation> </message> <message> <source>Error opening block database</source> <translation>Erreur lors de l'ouverture de la base de données des blocs</translation> </message> <message> <source>Error: A fatal internal error occured, see debug.log for details</source> <translation>Erreur : une erreur interne fatale s'est produite. Voir debug.log pour des détails</translation> </message> <message> <source>Error: Disk space is low!</source> <translation>Erreur : l'espace disque est faible !</translation> </message> <message> <source>Error: Wallet locked, unable to create transaction!</source> <translation>Erreur : Portefeuille verrouillé, impossible de créer la transaction !</translation> </message> <message> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation>Échec de l'écoute sur un port quelconque. Utilisez -listen=0 si vous voulez ceci.</translation> </message> <message> <source>If &lt;category&gt; is not supplied, output all debugging information.</source> <translation>Si &lt;category&gt; n'est pas indiqué, extraire toutes les données de débogage.</translation> </message> <message> <source>Importing...</source> <translation>Importation...</translation> </message> <message> <source>Incorrect or no genesis block found. Wrong datadir for network?</source> <translation>Bloc de genèse incorrect ou introuvable. Mauvais répertoire de données pour le réseau ?</translation> </message> <message> <source>Invalid -onion address: '%s'</source> <translation>Adresse -onion invalide : « %s »</translation> </message> <message> <source>Not enough file descriptors available.</source> <translation>Pas assez de descripteurs de fichiers de disponibles.</translation> </message> <message> <source>Only connect to nodes in network &lt;net&gt; (ipv4, ipv6 or onion)</source> <translation>Seulement se connecter aux nœuds du réseau &lt;net&gt; (IPv4, IPv6 ou oignon)</translation> </message> <message> <source>Rebuild block chain index from current blk000??.dat files</source> <translation>Reconstruire l'index de la chaîne de blocs à partir des fichiers blk000??.dat courants</translation> </message> <message> <source>Set database cache size in megabytes (%d to %d, default: %d)</source> <translation>Définir la taille du cache de la base de données en mégaoctets (%d to %d, default: %d)</translation> </message> <message> <source>Set maximum block size in bytes (default: %d)</source> <translation>Définir la taille minimale de bloc en octets (par défaut : %d)</translation> </message> <message> <source>Specify wallet file (within data directory)</source> <translation>Spécifiez le fichier de portefeuille (dans le répertoire de données)</translation> </message> <message> <source>This is intended for regression testing tools and app development.</source> <translation>Ceci est à l'intention des outils de test de régression et du développement applicatif.</translation> </message> <message> <source>Use UPnP to map the listening port (default: %u)</source> <translation>Utiliser l'UPnP pour mapper le port d'écoute (par défaut : %u)</translation> </message> <message> <source>Verifying blocks...</source> <translation>Vérification des blocs en cours...</translation> </message> <message> <source>Verifying wallet...</source> <translation>Vérification du portefeuille en cours...</translation> </message> <message> <source>Wallet %s resides outside data directory %s</source> <translation>Le portefeuille %s réside en dehors du répertoire de données %s</translation> </message> <message> <source>Wallet options:</source> <translation>Options du portefeuille :</translation> </message> <message> <source>You need to rebuild the database using -reindex to change -txindex</source> <translation>Vous devez reconstruire la base de données en utilisant -reindex afin de modifier -txindex</translation> </message> <message> <source>Imports blocks from external blk000??.dat file</source> <translation>Importe des blocs depuis un fichier blk000??.dat externe</translation> </message> <message> <source>Allow JSON-RPC connections from specified source. Valid for &lt;ip&gt; are a single IP (e.g. 1.2.3.4), a network/netmask (e.g. 1.2.3.4/255.255.255.0) or a network/CIDR (e.g. 1.2.3.4/24). This option can be specified multiple times</source> <translation>Permettre les connexions JSON-RPC de sources spécifiques. Valide pour &lt;ip&gt; qui sont une IP simple (p. ex. 1.2.3.4), un réseau/masque réseau (p. ex. 1.2.3.4/255.255.255.0) ou un réseau/CIDR (p. ex. 1.2.3.4/24). Cette option peut être être spécifiée plusieurs fois</translation> </message> <message> <source>An error occurred while setting up the RPC address %s port %u for listening: %s</source> <translation>Une erreur est survenue lors de la mise en place de l'adresse %s port %u d'écoute RPC : %s</translation> </message> <message> <source>Bind to given address and whitelist peers connecting to it. Use [host]:port notation for IPv6</source> <translation>Se lier à l'adresse donnée et aux pairs s'y connectant. Utiliser la notation [host]:port pour l'IPv6</translation> </message> <message> <source>Bind to given address to listen for JSON-RPC connections. Use [host]:port notation for IPv6. This option can be specified multiple times (default: bind to all interfaces)</source> <translation>Se lier à l'adresse donnée pour écouter des connexions JSON-RPC. Utiliser la notation [host]:port pour l'IPv6. Cette option peut être spécifiée plusieurs fois (par défaut : se lier à toutes les interfaces)</translation> </message> <message> <source>Cannot obtain a lock on data directory %s. Prototanium is probably already running.</source> <translation>Impossible d’obtenir un verrou sur le répertoire de données %s. Prototanium fonctionne probablement déjà.</translation> </message> <message> <source>Continuously rate-limit free transactions to &lt;n&gt;*1000 bytes per minute (default:%u)</source> <translation>Limiter continuellement les transactions gratuites à &lt;n&gt;*1000 octets par minute (par défaut : %u)</translation> </message> <message> <source>Create new files with system default permissions, instead of umask 077 (only effective with disabled wallet functionality)</source> <translation>Créer de nouveaux fichiers avec les permissions système par défaut, au lieu de umask 077 (effectif seulement avec la fonction du portefeuille désactivée)</translation> </message> <message> <source>Error: Listening for incoming connections failed (listen returned error %s)</source> <translation>Erreur : l'écoute des connexions entrantes a échoué (l'écoute a retourné l'erreur %s)</translation> </message> <message> <source>Error: Unsupported argument -socks found. Setting SOCKS version isn't possible anymore, only SOCKS5 proxies are supported.</source> <translation>Erreur : l'argument non pris en charge -socks a été trouvé. Il n'est plus possible de définir la version de SOCKS, seuls les serveurs mandataires SOCKS5 sont pris en charge.</translation> </message> <message> <source>Execute command when a relevant alert is received or we see a really long fork (%s in cmd is replaced by message)</source> <translation>Exécuter une commande lorsqu'une alerte pertinente est reçue ou si nous voyons une bifurcation vraiment étendue (%s dans la commande est remplacé par le message)</translation> </message> <message> <source>Fees (in UNO/Kb) smaller than this are considered zero fee for relaying (default: %s)</source> <translation>Les frais (en UNO /Ko) inférieurs à ce seuil sont considérés comme étant nuls pour le relayage (par défaut : %s)</translation> </message> <message> <source>Fees (in UNO/Kb) smaller than this are considered zero fee for transaction creation (default: %s)</source> <translation>Les frais (en UNO /Ko) inférieurs à ce seuil sont considérés comme étant nuls pour la création de transactions (par défaut : %s)</translation> </message> <message> <source>Maximum size of data in data carrier transactions we relay and mine (default: %u)</source> <translation>Quantité maximale de données dans les transactions du porteur de données que nous relayons et minons (par défaut : %u)</translation> </message> <message> <source>Query for peer addresses via DNS lookup, if low on addresses (default: 1 unless -connect)</source> <translation>Demander les adresses des pairs par recherche DNS si l'on manque d'adresses (par défaut : 1 sauf si -connect)</translation> </message> <message> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: %d)</source> <translation>Définir la taille maximale en octets des transactions prioritaires/à frais modiques (par défaut : %d)</translation> </message> <message> <source>Set the number of threads for coin generation if enabled (-1 = all cores, default: %d)</source> <translation>Définir le nombre de fils de génération de pièces, si elle est activée (-1 = tous les cœurs, par défaut : %d)</translation> </message> <message> <source>This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit &lt;https://www.openssl.org/&gt; and cryptographic software written by Eric Young and UPnP software written by Thomas Bernard.</source> <translation>Ce produit comprend des logiciels développés par le projet OpenSSL pour être utilisés dans la boîte à outils OpenSSL &lt;https://www.openssl.org/&gt; et un logiciel cryptographique écrit par Eric Young, ainsi qu'un logiciel UPnP écrit par Thomas Bernard.</translation> </message> <message> <source>Warning: Please check that your computer's date and time are correct! If your clock is wrong Prototanium will not work properly.</source> <translation>Avertissement : veuillez vérifier que l'heure et la date de votre ordinateur sont correctes ! Si votre horloge n'est pas à l'heure, Prototanium ne fonctionnera pas correctement.</translation> </message> <message> <source>Whitelisted peers cannot be DoS banned and their transactions are always relayed, even if they are already in the mempool, useful e.g. for a gateway</source> <translation>Les pairs de la liste blanche ne peuvent pas être bannis DoS et leurs transactions sont toujours relayées, même si elles sont déjà dans le mempool, utile p. ex. pour une passerelle</translation> </message> <message> <source>Cannot resolve -whitebind address: '%s'</source> <translation>Impossible de résoudre l'adresse -whitebind : « %s »</translation> </message> <message> <source>Connect through SOCKS5 proxy</source> <translation>Se connecter par un mandataire SOCKS5</translation> </message> <message> <source>Copyright (C) 2009-%i The Prototanium Developers</source> <translation>Copyright © 2009-%i Les développeurs de Prototanium</translation> </message> <message> <source>Could not parse -rpcbind value %s as network address</source> <translation>Impossible d'analyser la valeur -rpcbind %s comme adresse réseau</translation> </message> <message> <source>Error loading wallet.dat: Wallet requires newer version of Prototanium</source> <translation>Erreur lors du chargement de wallet.dat : le portefeuille exige une version plus récente de Prototanium</translation> </message> <message> <source>Error: Unsupported argument -tor found, use -onion.</source> <translation>Erreur : argument non pris en charge -tor trouvé, utiliser -onion.</translation> </message> <message> <source>Fee (in UNO /kB) to add to transactions you send (default: %s)</source> <translation>Les frais (en UNO /ko) à ajouter aux transactions que vous envoyez (par défaut : %s)</translation> </message> <message> <source>Information</source> <translation>Informations</translation> </message> <message> <source>Initialization sanity check failed. Prototanium is shutting down.</source> <translation>L'initialisation du test de cohérence a échoué. Prototanium est en cours de fermeture. </translation> </message> <message> <source>Invalid amount for -minrelaytxfee=&lt;amount&gt;: '%s'</source> <translation>Montant invalide pour -minrelayfee=&lt;montant&gt; : « %s »</translation> </message> <message> <source>Invalid amount for -mintxfee=&lt;amount&gt;: '%s'</source> <translation>Montant invalide pour -mintxfee=&lt;montant&gt; : « %s »</translation> </message> <message> <source>Invalid amount for -paytxfee=&lt;amount&gt;: '%s' (must be at least %s)</source> <translation>Montant invalide pour -paytxfee=&lt;montant&gt; : « %s » (doit être au moins %s)</translation> </message> <message> <source>Invalid netmask specified in -whitelist: '%s'</source> <translation>Masque réseau invalide spécifié dans -whitelist : « %s »</translation> </message> <message> <source>Keep at most &lt;n&gt; unconnectable blocks in memory (default: %u)</source> <translation>Garder au plus &lt;n&gt; blocs non connectables en mémoire (par défaut : %u)</translation> </message> <message> <source>Keep at most &lt;n&gt; unconnectable transactions in memory (default: %u)</source> <translation>Garder au plus &lt;n&gt; transactions non connectables en mémoire (par défaut : %u)</translation> </message> <message> <source>Need to specify a port with -whitebind: '%s'</source> <translation>Un port doit être spécifié avec -whitebind : « %s »</translation> </message> <message> <source>Node relay options:</source> <translation>Options de relais du nœud :</translation> </message> <message> <source>Print block on startup, if found in block index</source> <translation>Imprimer le bloc au démarrage s'il est trouvé dans l'index des blocs</translation> </message> <message> <source>RPC SSL options: (see the Prototanium Wiki for SSL setup instructions)</source> <translation>Options RPC SSL : (voir le wiki Prototanium pour les instructions de configuration de SSL)</translation> </message> <message> <source>RPC server options:</source> <translation>Options du serveur RPC :</translation> </message> <message> <source>Randomly drop 1 of every &lt;n&gt; network messages</source> <translation>Abandonner aléatoirement 1 message du réseau sur &lt;n&gt;</translation> </message> <message> <source>Randomly fuzz 1 of every &lt;n&gt; network messages</source> <translation>Tester aléatoirement 1 message du réseau sur &lt;n&gt;</translation> </message> <message> <source>Send trace/debug info to console instead of debug.log file</source> <translation>Envoyer les informations de débogage/trace à la console au lieu du fichier debug.log</translation> </message> <message> <source>Send transactions as zero-fee transactions if possible (default: %u)</source> <translation>Envoyer si possible les transactions comme étant sans frais (par défaut : %u)</translation> </message> <message> <source>Show all debugging options (usage: --help -help-debug)</source> <translation>Montrer toutes les options de débogage (utilisation : --help --help-debug)</translation> </message> <message> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation>Réduire le fichier debug.log lors du démarrage du client (par défaut : 1 lorsque -debug n'est pas présent)</translation> </message> <message> <source>Signing transaction failed</source> <translation>La signature de la transaction a échoué</translation> </message> <message> <source>This is experimental software.</source> <translation>Ceci est un logiciel expérimental.</translation> </message> <message> <source>Transaction amount too small</source> <translation>Montant de la transaction trop bas</translation> </message> <message> <source>Transaction amounts must be positive</source> <translation>Les montants de transaction doivent être positifs</translation> </message> <message> <source>Transaction too large</source> <translation>Transaction trop volumineuse</translation> </message> <message> <source>Unable to bind to %s on this computer (bind returned error %s)</source> <translation>Impossible de se lier à %s sur cet ordinateur (bind a retourné l'erreur %s)</translation> </message> <message> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation>Utiliser l'UPnP pour mapper le port d'écoute (par défaut : 1 lors de l'écoute)</translation> </message> <message> <source>Username for JSON-RPC connections</source> <translation>Nom d'utilisateur pour les connexions JSON-RPC</translation> </message> <message> <source>Wallet needed to be rewritten: restart Prototanium to complete</source> <translation>Le portefeuille avait besoin d'être réécrit : veuillez redémarrer Prototanium pour terminer</translation> </message> <message> <source>Warning</source> <translation>Avertissement</translation> </message> <message> <source>Warning: This version is obsolete, upgrade required!</source> <translation>Avertissement : cette version est obsolète, une mise à niveau est nécessaire !</translation> </message> <message> <source>Warning: Unsupported argument -benchmark ignored, use -debug=bench.</source> <translation>Avertissement : l'argument -benchmark non pris en charge a été ignoré, utiliser -debug=bench.</translation> </message> <message> <source>Warning: Unsupported argument -debugnet ignored, use -debug=net.</source> <translation>Avertissement : l'argument -debugnet non pris en charge a été ignoré, utiliser -debug=net.</translation> </message> <message> <source>Zapping all transactions from wallet...</source> <translation>Supprimer toutes les transactions du portefeuille...</translation> </message> <message> <source>on startup</source> <translation>au démarrage</translation> </message> <message> <source>wallet.dat corrupt, salvage failed</source> <translation>wallet.dat corrompu, la récupération a échoué</translation> </message> <message> <source>Password for JSON-RPC connections</source> <translation>Mot de passe pour les connexions JSON-RPC</translation> </message> <message> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation>Exécuter la commande lorsque le meilleur bloc change (%s dans cmd est remplacé par le hachage du bloc)</translation> </message> <message> <source>Upgrade wallet to latest format</source> <translation>Mettre à niveau le portefeuille vers le format le plus récent</translation> </message> <message> <source>Rescan the block chain for missing wallet transactions</source> <translation>Réanalyser la chaîne de blocs pour les transactions de portefeuille manquantes</translation> </message> <message> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>Utiliser OpenSSL (https) pour les connexions JSON-RPC</translation> </message> <message> <source>This help message</source> <translation>Ce message d'aide</translation> </message> <message> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation>Autoriser les recherches DNS pour -addnode, -seednode et -connect</translation> </message> <message> <source>Loading addresses...</source> <translation>Chargement des adresses…</translation> </message> <message> <source>Error loading wallet.dat: Wallet corrupted</source> <translation>Erreur lors du chargement de wallet.dat : portefeuille corrompu</translation> </message> <message> <source>(1 = keep tx meta data e.g. account owner and payment request information, 2 = drop tx meta data)</source> <translation>(1 = conserver les métadonnées de transmission, par ex. les informations du propriétaire du compte et de la demande de paiement, 2 = abandonner les métadonnées de transmission)</translation> </message> <message> <source>Flush database activity from memory pool to disk log every &lt;n&gt; megabytes (default: %u)</source> <translation>Purger l’activité de la base de données de la zone de mémoire vers le journal sur disque tous les &lt;n&gt; mégaoctets (par défaut : %u)</translation> </message> <message> <source>How thorough the block verification of -checkblocks is (0-4, default: %u)</source> <translation>Degré de profondeur de la vérification des blocs -checkblocks (0-4, par défaut : %u)</translation> </message> <message> <source>If paytxfee is not set, include enough fee so transactions are confirmed on average within n blocks (default: %u)</source> <translation>Si paytxfee n'est pas défini, inclure des frais suffisants afin que les transactions soient confirmées en moyenne en n blocs (par défaut : %u)</translation> </message> <message> <source>Log transaction priority and fee per kB when mining blocks (default: %u)</source> <translation>Lors du minage, journaliser la priorité des transactions et les frais par ko (par défaut : %u) </translation> </message> <message> <source>Maintain a full transaction index, used by the getrawtransaction rpc call (default: %u)</source> <translation>Maintenir un index complet des transactions, utilisé par l'appel RPC getrawtransaction (obtenir la transaction brute) (par défaut : %u)</translation> </message> <message> <source>Number of seconds to keep misbehaving peers from reconnecting (default: %u)</source> <translation>Délai en secondes de refus de reconnexion pour les pairs présentant un mauvais comportement (par défaut : %u)</translation> </message> <message> <source>Output debugging information (default: %u, supplying &lt;category&gt; is optional)</source> <translation>Extraire les informations de débogage (par défaut : %u, fournir &lt;category&gt; est optionnel)</translation> </message> <message> <source>Use separate SOCKS5 proxy to reach peers via Tor hidden services (default: %s)</source> <translation>Utiliser un serveur mandataire SOCKS5 séparé pour atteindre les pairs par les services cachés de Tor (par défaut : %s)</translation> </message> <message> <source>(default: %s)</source> <translation>(par défaut : %s)</translation> </message> <message> <source>Acceptable ciphers (default: %s)</source> <translation>Chiffrements acceptables (par défaut : %s)</translation> </message> <message> <source>Always query for peer addresses via DNS lookup (default: %u)</source> <translation>Toujours demander les adresses des pairs par recherche DNS (par défaut : %u)</translation> </message> <message> <source>Disable safemode, override a real safe mode event (default: %u)</source> <translation>Désactiver le mode sans échec, passer outre un événement sans échec réel (par défaut : %u)</translation> </message> <message> <source>Error loading wallet.dat</source> <translation>Erreur lors du chargement de wallet.dat</translation> </message> <message> <source>Force safe mode (default: %u)</source> <translation>Forcer le mode sans échec (par défaut : %u)</translation> </message> <message> <source>Generate coins (default: %u)</source> <translation>Générer des pièces (défaut : %u)</translation> </message> <message> <source>How many blocks to check at startup (default: %u, 0 = all)</source> <translation>Nombre de blocs à vérifier au démarrage (par défaut : %u, 0 = tous)</translation> </message> <message> <source>Include IP addresses in debug output (default: %u)</source> <translation>Inclure les adresses IP à la sortie de débogage (par défaut : %u)</translation> </message> <message> <source>Invalid -proxy address: '%s'</source> <translation>Adresse -proxy invalide : « %s »</translation> </message> <message> <source>Limit size of signature cache to &lt;n&gt; entries (default: %u)</source> <translation>Limiter la taille du cache des signatures à &lt;n&gt; entrées (par défaut : %u)</translation> </message> <message> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: %u or testnet: %u)</source> <translation>Écouter les connexions JSON-RPC sur &lt;port&gt; (par défaut : %u ou tesnet : %u)</translation> </message> <message> <source>Listen for connections on &lt;port&gt; (default: %u or testnet: %u)</source> <translation>Écouter les connexions sur &lt;port&gt; (par défaut : %u ou tesnet : %u)</translation> </message> <message> <source>Maintain at most &lt;n&gt; connections to peers (default: %u)</source> <translation>Garder au plus &lt;n&gt; connexions avec les pairs (par défaut : %u)</translation> </message> <message> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: %u)</source> <translation>Tampon maximal de réception par connexion, &lt;n&gt;*1000 octets (par défaut : %u)</translation> </message> <message> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: %u)</source> <translation>Tampon maximal d'envoi par connexion », &lt;n&gt;*1000 octets (par défaut : %u)</translation> </message> <message> <source>Only accept block chain matching built-in checkpoints (default: %u)</source> <translation>N'accepter qu'une chaîne de blocs correspondant aux points de vérification intégrés (par défaut : %u)</translation> </message> <message> <source>Prepend debug output with timestamp (default: %u)</source> <translation>Ajouter l'horodatage au début de la sortie de débogage (par défaut : %u)</translation> </message> <message> <source>Print block tree on startup (default: %u)</source> <translation>Imprimer l'arborescence des blocs au démarrage (par défaut : %u)</translation> </message> <message> <source>Relay and mine data carrier transactions (default: %u)</source> <translation>Relayer et miner les transactions du porteur de données (par défaut : %u)</translation> </message> <message> <source>Relay non-P2SH multisig (default: %u)</source> <translation>Relayer les multisignatures non-P2SH (par défaut : %u)</translation> </message> <message> <source>Run a thread to flush wallet periodically (default: %u)</source> <translation>Exécuter une tâche pour purger le portefeuille périodiquement (par défaut : %u) </translation> </message> <message> <source>Set key pool size to &lt;n&gt; (default: %u)</source> <translation>Définir la taille de la réserve de clefs à &lt;n&gt; (par défaut : %u)</translation> </message> <message> <source>Set minimum block size in bytes (default: %u)</source> <translation>Définir la taille de bloc minimale en octets (par défaut : %u)</translation> </message> <message> <source>Sets the DB_PRIVATE flag in the wallet db environment (default: %u)</source> <translation>Définit le drapeau DB_PRIVATE dans l'environnement de la BD du portefeuille (par défaut : %u)</translation> </message> <message> <source>Specify configuration file (default: %s)</source> <translation>Spécifier le fichier de configuration (par défaut : %s)</translation> </message> <message> <source>Specify connection timeout in milliseconds (minimum: 1, default: %d)</source> <translation>Spécifier le délai d'expiration de la connexion en millisecondes (minimum : 1, par défaut : %d)</translation> </message> <message> <source>Specify pid file (default: %s)</source> <translation>Spécifier le fichier pid (par défaut : %s)</translation> </message> <message> <source>Spend unconfirmed change when sending transactions (default: %u)</source> <translation>Dépenser la monnaie non confirmée lors de l'envoi de transactions (par défaut : %u)</translation> </message> <message> <source>Stop running after importing blocks from disk (default: %u)</source> <translation>Cesser l'exécution après l'importation des blocs du disque (par défaut : %u)</translation> </message> <message> <source>Threshold for disconnecting misbehaving peers (default: %u)</source> <translation>Seuil de déconnexion des pairs présentant un mauvais comportement (par défaut : %u)</translation> </message> <message> <source>Unknown network specified in -onlynet: '%s'</source> <translation>Réseau inconnu spécifié sur -onlynet : « %s »</translation> </message> <message> <source>Cannot resolve -bind address: '%s'</source> <translation>Impossible de résoudre l'adresse -bind : « %s »</translation> </message> <message> <source>Cannot resolve -externalip address: '%s'</source> <translation>Impossible de résoudre l'adresse -externalip : « %s »</translation> </message> <message> <source>Invalid amount for -paytxfee=&lt;amount&gt;: '%s'</source> <translation>Montant invalide pour -paytxfee=&lt;montant&gt; : « %s »</translation> </message> <message> <source>Invalid amount</source> <translation>Montant invalide</translation> </message> <message> <source>Insufficient funds</source> <translation>Fonds insuffisants</translation> </message> <message> <source>Loading block index...</source> <translation>Chargement de l’index des blocs…</translation> </message> <message> <source>Add a node to connect to and attempt to keep the connection open</source> <translation>Ajouter un nœud auquel se connecter et tenter de garder la connexion ouverte</translation> </message> <message> <source>Loading wallet...</source> <translation>Chargement du portefeuille…</translation> </message> <message> <source>Cannot downgrade wallet</source> <translation>Impossible de revenir à une version inférieure du portefeuille</translation> </message> <message> <source>Cannot write default address</source> <translation>Impossible d'écrire l'adresse par défaut</translation> </message> <message> <source>Rescanning...</source> <translation>Nouvelle analyse…</translation> </message> <message> <source>Done loading</source> <translation>Chargement terminé</translation> </message> <message> <source>To use the %s option</source> <translation>Pour utiliser l'option %s</translation> </message> <message> <source>Error</source> <translation>Erreur</translation> </message> </context> </TS>
Prototanium/Pr
src/qt/locale/bitcoin_fr.ts
TypeScript
mit
152,071
package com.exasol.adapter.dialects.impala; import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; import static org.junit.jupiter.api.Assertions.assertThrows; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.ValueSource; import nl.jqno.equalsverifier.EqualsVerifier; class ImpalaIdentifierTest { @ParameterizedTest @ValueSource(strings = { "_myunderscoretable", "123columnone", "テスト", "таблица" }) void testCreateValidIdentifier(final String identifier) { assertDoesNotThrow(() -> ImpalaIdentifier.of(identifier)); } @ParameterizedTest @ValueSource(strings = { "test`table", "`table`" }) void testCreateInvalidIdentifier(final String identifier) { assertThrows(AssertionError.class, () -> ImpalaIdentifier.of(identifier)); } @Test void testEqualsAndHashContract() { EqualsVerifier.simple().forClass(ImpalaIdentifier.class).verify(); } }
EXASOL/virtual-schemas
src/test/java/com/exasol/adapter/dialects/impala/ImpalaIdentifierTest.java
Java
mit
1,014
package metrics import ( "runtime" "time" ) func (m *Metrics) SetGauge(key []string, val float32) { if m.HostName != "" && m.EnableHostname { key = insert(0, m.HostName, key) } if m.EnableTypePrefix { key = insert(0, "gauge", key) } if m.ServiceName != "" { key = insert(0, m.ServiceName, key) } m.sink.SetGauge(key, val) } func (m *Metrics) EmitKey(key []string, val float32) { if m.EnableTypePrefix { key = insert(0, "kv", key) } if m.ServiceName != "" { key = insert(0, m.ServiceName, key) } m.sink.EmitKey(key, val) } func (m *Metrics) IncrCounter(key []string, val float32) { if m.EnableTypePrefix { key = insert(0, "counter", key) } if m.ServiceName != "" { key = insert(0, m.ServiceName, key) } m.sink.IncrCounter(key, val) } func (m *Metrics) AddSample(key []string, val float32) { if m.EnableTypePrefix { key = insert(0, "sample", key) } if m.ServiceName != "" { key = insert(0, m.ServiceName, key) } m.sink.AddSample(key, val) } func (m *Metrics) MeasureSince(key []string, start time.Time) { if m.EnableTypePrefix { key = insert(0, "timer", key) } if m.ServiceName != "" { key = insert(0, m.ServiceName, key) } now := time.Now() elapsed := now.Sub(start) msec := float32(elapsed.Nanoseconds()) / float32(m.TimerGranularity) m.sink.AddSample(key, msec) } // Periodically collects runtime stats to publish func (m *Metrics) collectStats() { for { time.Sleep(m.ProfileInterval) m.emitRuntimeStats() } } // Emits various runtime statsitics func (m *Metrics) emitRuntimeStats() { // Export number of Goroutines numRoutines := runtime.NumGoroutine() m.SetGauge([]string{"runtime", "num_goroutines"}, float32(numRoutines)) // Export memory stats var stats runtime.MemStats runtime.ReadMemStats(&stats) m.SetGauge([]string{"runtime", "alloc_bytes"}, float32(stats.Alloc)) m.SetGauge([]string{"runtime", "malloc_count"}, float32(stats.Mallocs)) m.SetGauge([]string{"runtime", "free_count"}, float32(stats.Frees)) m.SetGauge([]string{"runtime", "heap_objects"}, float32(stats.HeapObjects)) m.SetGauge([]string{"runtime", "total_gc_pause_ns"}, float32(stats.PauseTotalNs)) m.SetGauge([]string{"runtime", "total_gc_runs"}, float32(stats.NumGC)) // Export info about the last few GC runs num := stats.NumGC // Handle wrap around if num < m.lastNumGC { m.lastNumGC = 0 } // Ensure we don't scan more than 256 if num-m.lastNumGC >= 256 { m.lastNumGC = num - 255 } for i := m.lastNumGC; i < num; i++ { pause := stats.PauseNs[i%256] m.AddSample([]string{"runtime", "gc_pause_ns"}, float32(pause)) } m.lastNumGC = num } // Inserts a string value at an index into the slice func insert(i int, v string, s []string) []string { s = append(s, "") copy(s[i+1:], s[i:]) s[i] = v return s }
mkouhei/golang-armon-gometrics-debian
metrics.go
GO
mit
2,786
.navbar-fixed-top { height: 70px; padding-top: 10px; } .player_nav .btn:focus, .player_nav .btn:hover, .player_nav .btn:active { outline: none; } .navbar-header { padding-left: 0; } .navbar .container .navbar-brand { padding-left: 10px; margin-left: 0px; } .top-1 { padding-top: 5px; } li.sortable-placeholder { border: 1px dashed #CCC; height: 50px; background: none; } .pl_track_duration { float: right; } .pl_anim { float: right; } .slider .slider-selection { background: #B6B6B6; z-index: 1; } .slider .slider-handle { background: #9C9C9C; /* width: 15px;*/ opacity: 1; z-index: 2; } .slider .slider-loaded { background: #EAEAEA; width: 0%; z-index: 0; } .player_nav table td { color: #D0D0D0; padding-left: 10px; padding-right: 20px; } .player_nav .player_btns { min-width: 120px; width: 120px; } .player_nav .player_prog .slider { width: 100%; } .player_nav .player_vol { min-width: 180px; width: 180px; } #track_volume { width: 80px; } .btn-circle { width: 32px; height: 32px; text-align: center; padding: 7px 1; font-size: 12px; line-height: 1.428571429; border-radius: 16px; } .btn-circle.btn-xs { width: 25px; height: 25px; padding: 0px 0px; font-size: 12px; line-height: 1.33; border-radius: 16px; }
fabregas/listen-me
static/css/listenme.css
CSS
mit
1,378
<!-- HTML header for doxygen 1.8.10--> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.11"/> <title>SideCar: /Users/howes/src/sidecar/Algorithms/SegmentStats -&gt; Utils Relation</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="DoxygenStyleSheet.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">SideCar </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.11 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="pages.html"><span>Related&#160;Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_16861240cd43450fd06793f5fadb1278.html">sidecar</a></li><li class="navelem"><a class="el" href="dir_3824fe7a0668e861ddceb9cdc5c9a07b.html">Algorithms</a></li><li class="navelem"><a class="el" href="dir_aa01c73da16e8d5997300d6485ee8165.html">SegmentStats</a></li> </ul> </div> </div><!-- top --> <div class="contents"> <h3>SegmentStats &rarr; Utils Relation</h3><table class="dirtab"><tr class="dirtab"><th class="dirtab">File in src/sidecar/Algorithms/SegmentStats</th><th class="dirtab">Includes file in src/sidecar/Utils</th></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="SegmentStats_8h.html">SegmentStats.h</a></td><td class="dirtab"><a class="el" href="dir_aea8b955f32cfea5218a7034f7a209ef.html">Buffer</a>&#160;/&#160;<a class="el" href="Buffer_8h.html">Buffer.h</a></td></tr><tr class="dirtab"><td class="dirtab"><a class="el" href="SegmentStats_8h.html">SegmentStats.h</a></td><td class="dirtab"><a class="el" href="dir_aea8b955f32cfea5218a7034f7a209ef.html">Buffer</a>&#160;/&#160;<a class="el" href="BufferRow_8h.html">BufferRow.h</a></td></tr></table></div><!-- contents --> <!-- HTML footer for doxygen 1.8.10--> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by &#160;<a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.11 </small></address> </body> </html>
bradhowes/sidecar
docs/dir_000070_000031.html
HTML
mit
3,163
namespace SierpinskiTriangle.Presenters.Graph.Cache { using System; using System.Collections.Generic; using System.Numerics; using Newtonsoft.Json; using SierpinskiTriangle.Utilities; public class CacheManager { #region Fields private readonly int _maxGeneratedHigh; private readonly int _maxNumItems; private readonly string _pathCache; private int _lastGeneratedHigh; #endregion #region Constructors and Destructors public CacheManager(string pathCache, int maxGenerateHigh, int maxNumItems) { this._pathCache = pathCache; this._lastGeneratedHigh = 0; this._maxGeneratedHigh = maxGenerateHigh; this._maxNumItems = maxNumItems; } #endregion #region Public Properties public CacheContent CacheContent { get; private set; } #endregion #region Public Methods and Operators public void Read() { try { this.CacheContent = Json<CacheContent>.Read(this._pathCache); } catch (Exception) { this.CacheContent = new CacheContent(); } // validation if (null == this.CacheContent.Sequence) { this.CacheContent = new CacheContent(); } } public void Save() { if (this._maxGeneratedHigh <= this._lastGeneratedHigh) { return; } var serializer = new JsonSerializer(); var sequence = (List<BigInteger>)this.CacheContent.Sequence; FileSystemHelper.EnsurePathExists(this._pathCache); // limit size if (sequence.Count > this._maxNumItems) { this.CacheContent.GeneratedHigh = this._maxGeneratedHigh; this.CacheContent.Sequence = sequence.GetRange(0, this._maxNumItems); } Json<CacheContent>.Write(this._pathCache, this.CacheContent, serializer); this._lastGeneratedHigh = this.CacheContent.GeneratedHigh; } #endregion } }
ebola777/Sierpinski-Triangle
src/SierpinskiTriangle/Presenters/Graph/Cache/CacheManager.cs
C#
mit
2,242
// Copyright (c) 2012-2015 Sharpex2D - Kevin Scholz (ThuCommix) // // 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. using Sharpex2D.Math; namespace Sharpex2D.Rendering.OpenGL { [Developer("ThuCommix", "[email protected]")] [TestState(TestState.Tested)] internal class ColorData { /// <summary> /// Initializes a new ColorData class. /// </summary> /// <param name="color">The Color.</param> /// <param name="position">The Position.</param> public ColorData(Color color, Vector2 position) { Position = position; Color = color; } /// <summary> /// Gets the Color. /// </summary> public Color Color { get; private set; } /// <summary> /// Gets the Position. /// </summary> public Vector2 Position { get; private set; } } }
ThuCommix/Sharpex2D
Sharpex2D/Rendering/OpenGL/ColorData.cs
C#
mit
1,929
# OWIN Mixed Authentication OWIN middleware implementation mixing Windows and Forms Authentication. ![mixed-auth](https://cloud.githubusercontent.com/assets/4712046/4690732/0bbe62f8-56f8-11e4-8757-2d10cdeca17e.png) ## Install with [NuGet](https://www.nuget.org/packages/OWIN-MixedAuth/) ``` PM> Install-Package OWIN-MixedAuth ``` # Running the samples Before running the samples, make sure to unlock `windowsAuthentication` section: ### IIS 1. Open IIS Manager, select the server node, then Feature Delegation. 2. Set `Authentication - Windows` to `Read/Write` ![unlock-section](https://cloud.githubusercontent.com/assets/4712046/4689687/d28f8df8-56c6-11e4-9b88-8f5cb769ae93.png) ### IIS Express 1. Open **applicationhost.config** located at: * **Pre VS2015**: *$:\Users\\{username}\Documents\IISExpress\config* * **VS2015**: *$(SolutionDir)\\.vs\config* 2. Search for `windowsAuthentication` section and update `overrideModeDefault` value to `Allow`. ```XML <section name="windowsAuthentication" overrideModeDefault="Allow" /> ``` # Usage 1. Add reference to `MohammadYounes.Owin.Security.MixedAuth.dll` 2. Register `MixedAuth` in **Global.asax** ```C# //add using statement using MohammadYounes.Owin.Security.MixedAuth; public class MyWebApplication : HttpApplication { //ctor public MyWebApplication() { //register MixedAuth this.RegisterMixedAuth(); } . . . } ``` 3. Use `MixedAuth` in **Startup.Auth.cs** ```C# //Enable Mixed Authentication //As we are using LogonUserIdentity, its required to run in PipelineStage.PostAuthenticate //Register this after any middleware that uses stage marker PipelineStage.Authenticate app.UseMixedAuth(cookieOptions); ``` **Important!** MixedAuth is required to run in `PipelineStage.PostAuthenticate`, make sure the use statement is after any other middleware that uses `PipelineStage.Authenticate`. See [OWIN Middleware in the IIS integrated pipeline](http://www.asp.net/aspnet/overview/owin-and-katana/owin-middleware-in-the-iis-integrated-pipeline). 4. Enable Windows authentication in **Web.config** ```XML <!-- Enable Mixed Auth --> <location path="MixedAuth"> <system.webServer> <security> <authentication> <windowsAuthentication enabled="true" /> </authentication> </security> </system.webServer> </location> ``` **Important!** Enabling windows authentication for a sub path requires `windowsAuthentication` section to be unlocked at a parent level. ------ #### Importing Custom Claims Adding custom claims in OWIN-MixedAuth is pretty straightforward, simply use `MixedAuthProvider` and place your own logic for fetching those custom claims. The following example shows how to import user Email, Surname and GiveName from Active Directory: ```C# // Enable mixed auth app.UseMixedAuth(new MixedAuthOptions() { Provider = new MixedAuthProvider() { OnImportClaims = identity => { List<Claim> claims = new List<Claim>(); using (var principalContext = new PrincipalContext(ContextType.Domain)) //or ContextType.Machine { using (UserPrincipal userPrincipal = UserPrincipal.FindByIdentity(principalContext, identity.Name)) { if (userPrincipal != null) { claims.Add(new Claim(ClaimTypes.Email, userPrincipal.EmailAddress ?? string.Empty)); claims.Add(new Claim(ClaimTypes.Surname, userPrincipal.Surname ?? string.Empty)); claims.Add(new Claim(ClaimTypes.GivenName, userPrincipal.GivenName ?? string.Empty)); } } } return claims; } } }, cookieOptions); ``` ------ ##### Please [share any issues](https://github.com/MohammadYounes/OWIN-MixedAuth/issues?state=open) you may have.
MohammadYounes/OWIN-MixedAuth
README.md
Markdown
mit
3,844
/* Copyright 2006-2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package grails.plugin.springsecurity.web.authentication; import grails.plugin.springsecurity.SpringSecurityUtils; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.springframework.security.core.Authentication; import org.springframework.security.core.AuthenticationException; import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter; import org.springframework.util.Assert; /** * Extends the default {@link UsernamePasswordAuthenticationFilter} to store the * last attempted login username in the session under the 'SPRING_SECURITY_LAST_USERNAME' * key if storeLastUsername is true. * * @author <a href='mailto:[email protected]'>Burt Beckwith</a> */ public class GrailsUsernamePasswordAuthenticationFilter extends UsernamePasswordAuthenticationFilter { protected Boolean storeLastUsername; @Override public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response) throws AuthenticationException { if (storeLastUsername) { // Place the last username attempted into HttpSession for views HttpSession session = request.getSession(false); if (session == null && getAllowSessionCreation()) { session = request.getSession(); } if (session != null) { String username = obtainUsername(request); if (username == null) { username = ""; } username = username.trim(); session.setAttribute(SpringSecurityUtils.SPRING_SECURITY_LAST_USERNAME_KEY, username); } } return super.attemptAuthentication(request, response); } /** * Whether to store the last attempted username in the session. * @param storeLastUsername store if true */ public void setStoreLastUsername(Boolean storeLastUsername) { this.storeLastUsername = storeLastUsername; } @Override public void afterPropertiesSet() { super.afterPropertiesSet(); Assert.notNull(storeLastUsername, "storeLastUsername must be set"); } }
puaykai/noodles
target/work/plugins/spring-security-core-2.0.0/src/java/grails/plugin/springsecurity/web/authentication/GrailsUsernamePasswordAuthenticationFilter.java
Java
mit
2,649
'use strict'; //Placards service used to communicate Placards REST endpoints angular.module('placards').factory('Placards', ['$resource', function($resource) { return $resource('api/placards/:placardId', { placardId: '@_id' }, { update: { method: 'PUT' } }); } ]);
neilhanekom/digrest
modules/placards/client/services/placards.client.service.js
JavaScript
mit
283
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkSurface_Base.h" #include "SkImagePriv.h" #include "SkCanvas.h" /////////////////////////////////////////////////////////////////////////////// SkSurface_Base::SkSurface_Base(int width, int height) : INHERITED(width, height) { fCachedCanvas = NULL; fCachedImage = NULL; } SkSurface_Base::SkSurface_Base(const SkImageInfo& info) : INHERITED(info) { fCachedCanvas = NULL; fCachedImage = NULL; } SkSurface_Base::~SkSurface_Base() { // in case the canvas outsurvives us, we null the callback if (fCachedCanvas) { fCachedCanvas->setSurfaceBase(NULL); } SkSafeUnref(fCachedImage); SkSafeUnref(fCachedCanvas); } void SkSurface_Base::onDraw(SkCanvas* canvas, SkScalar x, SkScalar y, const SkPaint* paint) { SkImage* image = this->newImageSnapshot(); if (image) { image->draw(canvas, x, y, paint); image->unref(); } } void SkSurface_Base::aboutToDraw(ContentChangeMode mode) { this->dirtyGenerationID(); if (NULL != fCachedCanvas) { SkASSERT(fCachedCanvas->getSurfaceBase() == this || \ NULL == fCachedCanvas->getSurfaceBase()); fCachedCanvas->setSurfaceBase(NULL); } if (NULL != fCachedImage) { // the surface may need to fork its backend, if its sharing it with // the cached image. Note: we only call if there is an outstanding owner // on the image (besides us). if (!fCachedImage->unique()) { this->onCopyOnWrite(mode); } // regardless of copy-on-write, we must drop our cached image now, so // that the next request will get our new contents. fCachedImage->unref(); fCachedImage = NULL; } } uint32_t SkSurface_Base::newGenerationID() { this->installIntoCanvasForDirtyNotification(); static int32_t gID; return sk_atomic_inc(&gID) + 1; } static SkSurface_Base* asSB(SkSurface* surface) { return static_cast<SkSurface_Base*>(surface); } /////////////////////////////////////////////////////////////////////////////// SkSurface::SkSurface(int width, int height) : fWidth(width), fHeight(height) { SkASSERT(fWidth >= 0); SkASSERT(fHeight >= 0); fGenerationID = 0; } SkSurface::SkSurface(const SkImageInfo& info) : fWidth(info.fWidth) , fHeight(info.fHeight) { SkASSERT(fWidth >= 0); SkASSERT(fHeight >= 0); fGenerationID = 0; } uint32_t SkSurface::generationID() { if (0 == fGenerationID) { fGenerationID = asSB(this)->newGenerationID(); } return fGenerationID; } void SkSurface::notifyContentWillChange(ContentChangeMode mode) { asSB(this)->aboutToDraw(mode); } SkCanvas* SkSurface::getCanvas() { return asSB(this)->getCachedCanvas(); } SkImage* SkSurface::newImageSnapshot() { SkImage* image = asSB(this)->getCachedImage(); SkSafeRef(image); // the caller will call unref() to balance this return image; } SkSurface* SkSurface::newSurface(const SkImageInfo& info) { return asSB(this)->onNewSurface(info); } void SkSurface::draw(SkCanvas* canvas, SkScalar x, SkScalar y, const SkPaint* paint) { return asSB(this)->onDraw(canvas, x, y, paint); } const void* SkSurface::peekPixels(SkImageInfo* info, size_t* rowBytes) { return this->getCanvas()->peekPixels(info, rowBytes); }
bonescreater/bones
skia/src/image/SkSurface.cpp
C++
mit
3,507
package org.banyan.concurrent.pattern.condition_queues; import java.util.LinkedList; import java.util.List; import java.util.Random; import java.util.UUID; import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; /** * Pattern: Wait/Notify Queue * <p> * Motivations: State dependent classes can be difficult to implement, mainly * because some precondition states can become true through another thread. * Condition Queues help us to identify the condition predicates and do * control to programming flux associated with it. * <p> * Intent: Create a Wait/Notify mechanism based on the capabilities of each java * object to be a condition queue itself. * <p> * Applicability: State dependent algorithms used in concurrent programming. */ public class WaitNotifyQueue { private boolean continueToNotify; private BlockingQueue<String> messages; public WaitNotifyQueue(List<String> messages) { this.messages = new LinkedBlockingQueue<>(messages); this.continueToNotify = true; } public synchronized void stopsMessaging() { continueToNotify = false; notifyAll(); } public synchronized void message() throws InterruptedException { while (!continueToNotify) wait(); String message = messages.take(); System.out.println(message); } public static void main(String[] args) { List<String> messages = new LinkedList<>(); for (int i = 0; i < 130; i++) { messages.add(UUID.randomUUID().toString()); } WaitNotifyQueue waitNotifyQueue = new WaitNotifyQueue(messages); new Thread(() -> { try { while (true) { waitNotifyQueue.message(); Thread.sleep(300); } } catch (InterruptedException e) { e.printStackTrace(); } }).start(); Random r = new Random(); new Thread(() -> { while (true) { int val = r.nextInt(100); System.out.println(val); if (val == 99) { break; } try { Thread.sleep(400); } catch (InterruptedException e) { e.printStackTrace(); } } waitNotifyQueue.stopsMessaging(); try { Thread.sleep(500); } catch (InterruptedException e) { e.printStackTrace(); } }).start(); } }
zoopaper/java-concurrent
src/main/java/org/banyan/concurrent/pattern/condition_queues/WaitNotifyQueue.java
Java
mit
2,612
<!DOCTYPE html> <html lang="zh-cmn-Hans"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta name="description" content="合火人" /> <meta name="keywords" content="合火人" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"/> <meta name="apple-touch-fullscreen" content="yes" /> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-status-bar-style" content="black" /> <meta name="author" content="" /> <meta name="copyright" content="" /> <meta name="revisit-after" content="1 days" /> <meta name="format-detection" content="email=no" /> <meta name="format-detection" content="telephone=yes" /> <title>合火人</title> <link href="css/base.css" rel="stylesheet"/> <link href="css/personal-profile-new.css" rel="stylesheet"/> <link href="css/personal-profile-new-active.css" rel="stylesheet"/> <script src="js/jquery-2.1.4.min.js"></script> <script src="js/angelcrunch.jq.c.js"></script> <script src="js/image_upload.min.js"></script> <script src="js/angelcrunch.image_tools.jq.c.js"></script> </head> <body> <div class="details"> <div class="notification red"><i class="txt"></i><i class="close">×</i></div> <div id="head-container" class="head-container"> <div id="header" class="newhead"> <div class="logo touch-href" data-href="/"></div> <div class="options"> <span></span> <ul class="hidden-menu"> <li class="touch-href" data-href="/startup">闪投项目</li> <li class="touch-href" data-href="/startup#type:com-industry:-district:-order:new">最新项目</li> <li class="touch-href border" data-href="/investor">投资人</li> <li class="line"></li> </ul> </div> <div class="account"> <span></span> <ul class="hidden-menu"></ul> </div> </div> </div> <div class="registration modules"> <!-- Back-up form --> <div class="avatar-area" ms-controller="title-controller"> <h1>修改您的个人资料</h1> <p>您的等级是根据您的个人资料完善度区分的</p> </div> <!-- <div id="investortype" class="investor-type layer-btn title-control" ms-controller="title-controller" ms-on-tap="toggle_content('basic_invistor')"> <p>一般合伙人资料</p> <em id="em_basic_invistor"></em> </div> --> <!-- 一般合伙人资料 --> <div style="background:white;" id="invistor0"> <div id="item-container" class="item-container"> <div id="basic_desc"> <div class="page-logo"> <label id="upload-trigger" class="container"> <div id="upload-progress" class="progress transition"></div> <img> <input id="upload-input" class="default-hidden" type="file"> </label> <div class="text"> <h3>本人头像</h3> <p>宽高512px的正方形标志。支持JPG、PNG格式,文件不大于2MB </p> </div> </div> <label class="page-name"> <span>真实姓名</span><input id="form-name" maxlength="20"> </label> <label id="select2" class="page-name"> <span style="width:30%">选择工作圈</span><em></em><p></p> <select name="stage" class="stage"> <option value="请选择区域" selected="">请选择区域</option> <option value="成都">成都</option> </select> </label> <label id="select3" class="page-name" style="margin-top:-8px"> <span style="width:30%"></span><em></em><p></p> <select name="stage" class="stage"> <option value="请选择街道" selected="">请选择街道</option> <option value="大使馆路">大使馆路</option> </select> </label> <label id="select2" class="page-name"> <span style="width:30%">选择生活圈</span><em></em><p></p> <select name="stage" class="stage"> <option value="请选择区域" selected="">请选择区域</option> <option value="成都">成都</option> </select> </label> <label id="select3" class="page-name" style="margin-top:-8px"> <span style="width:30%"></span><em></em><p></p> <select name="stage" class="stage"> <option value="请选择街道" selected="">请选择街道</option> <option value="大使馆路">大使馆路</option> </select> </label> <label class="page-name"> <span>文化程度</span><input id="form-name" maxlength="20"> </label> <label class="page-name"> <span>公司职位</span><input id="form-name" maxlength="20"> </label> <div class="addition-agreement"> <p>您需了解 <a href="/agreement/service">《合火人用户服务协议》</a> 及其附件 <a class="ci-link" href="/agreement/risk">《风险揭示书》</a> 中的所有内容 ,并愿意承担投资带来的风险才能继续。</p> <div class="modules"> <div class="mentos-container"> <label class="label"> <input id="legal-terms" class="mentos" type="checkbox" name="additionalAgreement" value="1" data-warning-text="需要同意合火人用户协议" /> <em class="tracks"> <em class="slider-button"> <i>×</i> <i></i> </em> </em> </label> </div> </div> </div> <a id="subbmit-btn" class="submit-new-btn text_btn active">保存基本信息</a> <a class="submit-new-btn text_btn active_orange" id="btn_invistor0" ms-on-tap="toggle_content(0)" ms-controller="title-controller">+ 进一步完善资料提升等级</a> </div> </div> </div> <!-- <div id="prepareproject" class="investor-type layer-btn title-control" ms-controller="title-controller" ms-on-tap="toggle_content('cert_invistor')"> <p>认证合伙人资料</p> <em id="em_cert_invistor"></em> </div> --> <!-- 认证合伙人资料 --> <div style="background:white; display:none" id="invistor1"> <div id="item-container" class="item-container"> <div id='info_founder'> <div class="page-logo"> <label id="upload-trigger" class="container"> <div id="upload-progress" class="progress transition"></div> <img> <input id="upload-input" class="default-hidden" type="file"> </label> <div class="text"> <h3>*身份证扫描件或拍照</h3> <p>像素在512x512px以上的正方形标志。支持JPG、PNG格式,文件不大于2MB </p> </div> </div> <div class="page-logo"> <label id="upload-trigger" class="container"> <div id="upload-progress" class="progress transition"></div> <img> <input id="upload-input" class="default-hidden" type="file"> </label> <div class="text"> <h3>*本人头像(需核实一致)</h3> <p>像素在512x512px以上的正方形标志。支持JPG、PNG格式,文件不大于2MB </p> </div> </div> <div class="page-logo"> <label id="upload-trigger" class="container"> <div id="upload-progress" class="progress transition"></div> <img> <input id="upload-input" class="default-hidden" type="file"> </label> <div class="text"> <h3>名片扫描件或拍照</h3> <p>像素在512x512px以上的正方形标志。支持JPG、PNG格式,文件不大于2MB </p> </div> </div> <label class="page-description"> <span>合伙理念</span> <textarea id="form-desc"></textarea> </label> <label class="page-description"> <span>个人简介</span> <textarea id="form-desc"></textarea> </label> <label class="page-description"> <span>可提供附加值</span> <textarea id="form-desc"></textarea> </label> <a id="subbmit-btn" class="submit-new-btn text_btn active">保存认证合火人信息</a> <a class="submit-new-btn text_btn active_orange" id="btn_invistor1" ms-on-tap="toggle_content(1)" ms-controller="title-controller">+ 进一步完善资料提升等级</a> </div> </div> </div> <!-- <div id="hotproject" class="investor-type layer-btn title-control" ms-controller="title-controller" ms-on-tap="toggle_content('exp_invistor')"> <p>经验合伙人</p> <em id="em_exp_invistor"></em> </div> --> <!-- 经验合伙人 --> <div style="background:white ; display:none" id="invistor2"> <div id="item-container" class="item-container"> <div id='detail_desc'> <label class="page-desc clearfix" style="margin-top:5px"> <p><b>上传任意一种证明(三选一)即可成为经验合伙人</b></p> </label> <div class="page-logo"> <label id="upload-trigger" class="container"> <div id="upload-progress" class="progress transition"></div> <img> <input id="upload-input" class="default-hidden" type="file"> </label> <div class="text"> <h3>固定资产证明(可领头)</h3> <p>个人名下固定资产市值30万元人民币以上的相关证明。</p> </div> </div> <div class="page-logo"> <label id="upload-trigger" class="container"> <div id="upload-progress" class="progress transition"></div> <img> <input id="upload-input" class="default-hidden" type="file"> </label> <div class="text"> <h3>收入证明</h3> <p>最近三年个人年均收入不低于8万元人民币</p> </div> </div> <div class="page-logo"> <label id="upload-trigger" class="container"> <div id="upload-progress" class="progress transition"></div> <img> <input id="upload-input" class="default-hidden" type="file"> </label> <div class="text"> <h3>金融资产证明</h3> <p>个人名下货币资产或证券类资产市值不低于5万元人民币</p> </div> </div> <a id="subbmit-btn" class="submit-new-btn text_btn active">保存经验合火人信息</a> <a class="submit-new-btn text_btn active_orange" id="btn_invistor2" ms-on-tap="toggle_content(2)" ms-controller="title-controller">+ 进一步完善资料提升等级</a> </div> </div> </div> <!-- <div id="roadmap" class="investor-type layer-btn title-control" ms-controller="title-controller" ms-on-tap="toggle_content('agent_invistor')"> <p>机构合伙人</p> <em id="em_agent_invistor"></em> </div> --> <div id="invistor3" style="background:white; display:none"> <div class="page-logo"> <label id="upload-trigger" class="container"> <div id="upload-progress" class="progress transition"></div> <img> <input id="upload-input" class="default-hidden" type="file"> </label> <div class="text"> <h3>实缴注册资本</h3> <p>实缴注册资本在100万元人民币以上</p> </div> </div> <div class="page-logo"> <label id="upload-trigger" class="container"> <div id="upload-progress" class="progress transition"></div> <img> <input id="upload-input" class="default-hidden" type="file"> </label> <div class="text"> <h3>机构资产证明</h3> <p>总资产或管理资产不低于200万元人民币</p> </div> </div> <a id="subbmit-btn" class="submit-new-btn text_btn active">保存机构合火人信息</a> </div> <!-- <div id="item-container" class="item-container"> <div class="regist pub-title" style="display:block"> <div> <a href="project-profile.html">创建项目</a> <a href="investor.html">查看投资人</a> <a href="personal-center.html">查看个人中心</a> <a href="user-manual.html">查看用户手册</a> </div> </div> </div> --> <div class="banner-footer"> <p>BaiBaiChou.com</p> <p>合火人 - 让靠谱的项目找到靠谱的钱</p> </div> </div> <!-- 行业选择 --> <div id="industry-choose" class="industry-choose"> <div class="element-container" ms-controller="industry-select"> <h4 class="title">选择项目所在行业,最多可选择5个</h4> <div class="select"> <ul id="first-level" class="left"> <li ms-repeat="list" ms-attr-class="window.space_framework.first_active==$index?'active':''" ms-on-tap="first_active($index)" ms-text="el.name"></li> </ul> <ul class="right"> <li ms-repeat="second_level" ms-attr-class="el.active == true ?'active':''" ms-text="el.name" ms-on-tap="second_active(el.name)"></li> </ul> </div> <div class="input"> <span>已选取的行业</span> <!--input type="text" maxlength="8" ms-duplex="input" ms-on-keypress="input_enter()"> <a ms-on-tap="write_new()">添加</a--> </div> <div class="selected industry"> <div class="industry-container"> <span ms-repeat="selected" ms-on-tap="cancle_industry($index)"><i ms-text="el"></i><em>×</em></span> </div> </div> <div class="btn-group"> <a ms-on-tap="cancle_choose()" class="cancle">取消</a> <a ms-attr-class="btn_confirm?'confirm active':'confirm'" ms-on-tap="confirm_choose()">确定</a> </div> </div> </div> </div> </div> <script src="js/avalon.mobile.min.js"></script> <script src="js/base.js"></script> <script src="js/personal-profile-modify.js"></script> </body> </html>
ypandoo/sites
glfood/cases/hehuoren/personal-profile-modify.html
HTML
mit
17,262
package com.rosch.pq.remix.ui; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; public class PlayerFragmentPagerAdapter extends FragmentPagerAdapter { private String[] pageTitles; public PlayerFragmentPagerAdapter(FragmentManager fragmentManager, String[] pageTitles) { super(fragmentManager); this.pageTitles = pageTitles; } @Override public int getCount() { return 6; } @Override public Fragment getItem(int position) { switch (position) { case 0: return new CharacterFragment(); case 1: return new SpellsFragment(); case 2: return new EquipmentFragment(); case 3: return new ItemsFragment(); case 4: return new PlotFragment(); case 5: return new QuestsFragment(); } return null; } @Override public String getPageTitle(int position) { return pageTitles[position]; } }
redseiko/pq
src/com/rosch/pq/remix/ui/PlayerFragmentPagerAdapter.java
Java
mit
925
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; namespace UnityEditor.Graphing.Util { class TypeMapper : IEnumerable<TypeMapping> { readonly Type m_FromBaseType; readonly Type m_ToBaseType; readonly Type m_FallbackType; readonly Dictionary<Type, Type> m_Mappings = new Dictionary<Type, Type>(); public TypeMapper(Type fromBaseType = null, Type toBaseType = null, Type fallbackType = null) { if (fallbackType != null && toBaseType != null && !toBaseType.IsAssignableFrom(fallbackType)) throw new ArgumentException(string.Format("{0} does not implement or derive from {1}.", fallbackType.Name, toBaseType.Name), "fallbackType"); m_FromBaseType = fromBaseType ?? typeof(object); m_ToBaseType = toBaseType; m_FallbackType = fallbackType; } public void Add(TypeMapping mapping) { Add(mapping.fromType, mapping.toType); } public void Add(Type fromType, Type toType) { if (m_FromBaseType != typeof(object) && !m_FromBaseType.IsAssignableFrom(fromType)) { throw new ArgumentException(string.Format("{0} does not implement or derive from {1}.", fromType.Name, m_FromBaseType.Name), "fromType"); } if (m_ToBaseType != null && !m_ToBaseType.IsAssignableFrom(toType)) { throw new ArgumentException(string.Format("{0} does not derive from {1}.", toType.Name, m_ToBaseType.Name), "toType"); } m_Mappings[fromType] = toType; } public Type MapType(Type fromType) { Type toType = null; while (toType == null && fromType != null && fromType != m_FromBaseType) { if (!m_Mappings.TryGetValue(fromType, out toType)) fromType = fromType.BaseType; } return toType ?? m_FallbackType; } public IEnumerator<TypeMapping> GetEnumerator() { return m_Mappings.Select(kvp => new TypeMapping(kvp.Key, kvp.Value)).GetEnumerator(); } IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } } }
Unity-Technologies/ScriptableRenderLoop
com.unity.shadergraph/Editor/Util/TypeMapper.cs
C#
mit
2,347
<footer id="footer"><!--Footer--> <div class="footer-top"> <div class="container"> <div class="row"> <div class="col-sm-2"> <div class="companyinfo"> <h2><span>e</span>-shopper</h2> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit,sed do eiusmod tempor</p> </div> </div> <div class="col-sm-7"> <div class="col-sm-3"> <div class="video-gallery text-center"> <a href="#"> <div class="iframe-img"> <img src="<?php echo base_url(); ?>assets/frontEnd/images/home/iframe1.png" alt="" /> </div> <div class="overlay-icon"> <i class="fa fa-play-circle-o"></i> </div> </a> <p>Circle of Hands</p> <h2>24 DEC 2014</h2> </div> </div> <div class="col-sm-3"> <div class="video-gallery text-center"> <a href="#"> <div class="iframe-img"> <img src="<?php echo base_url(); ?>assets/frontEnd/images/home/iframe2.png" alt="" /> </div> <div class="overlay-icon"> <i class="fa fa-play-circle-o"></i> </div> </a> <p>Circle of Hands</p> <h2>24 DEC 2014</h2> </div> </div> <div class="col-sm-3"> <div class="video-gallery text-center"> <a href="#"> <div class="iframe-img"> <img src="<?php echo base_url(); ?>assets/frontEnd/images/home/iframe3.png" alt="" /> </div> <div class="overlay-icon"> <i class="fa fa-play-circle-o"></i> </div> </a> <p>Circle of Hands</p> <h2>24 DEC 2014</h2> </div> </div> <div class="col-sm-3"> <div class="video-gallery text-center"> <a href="#"> <div class="iframe-img"> <img src="<?php echo base_url(); ?>assets/frontEnd/images/home/iframe4.png" alt="" /> </div> <div class="overlay-icon"> <i class="fa fa-play-circle-o"></i> </div> </a> <p>Circle of Hands</p> <h2>24 DEC 2014</h2> </div> </div> </div> <div class="col-sm-3"> <div class="address"> <img src="<?php echo base_url(); ?>assets/frontEnd/images/home/map.png" alt="" /> <p>505 S Atlantic Ave Virginia Beach, VA(Virginia)</p> </div> </div> </div> </div> </div> <div class="footer-widget"> <div class="container"> <div class="row"> <div class="col-sm-2"> <div class="single-widget"> <h2>Service</h2> <ul class="nav nav-pills nav-stacked"> <li><a href="#">Online Help</a></li> <li><a href="#">Contact Us</a></li> <li><a href="#">Order Status</a></li> <li><a href="#">Change Location</a></li> <li><a href="#">FAQ’s</a></li> </ul> </div> </div> <div class="col-sm-2"> <div class="single-widget"> <h2>Quock Shop</h2> <ul class="nav nav-pills nav-stacked"> <li><a href="#">T-Shirt</a></li> <li><a href="#">Mens</a></li> <li><a href="#">Womens</a></li> <li><a href="#">Gift Cards</a></li> <li><a href="#">Shoes</a></li> </ul> </div> </div> <div class="col-sm-2"> <div class="single-widget"> <h2>Policies</h2> <ul class="nav nav-pills nav-stacked"> <li><a href="#">Terms of Use</a></li> <li><a href="#">Privecy Policy</a></li> <li><a href="#">Refund Policy</a></li> <li><a href="#">Billing System</a></li> <li><a href="#">Ticket System</a></li> </ul> </div> </div> <div class="col-sm-2"> <div class="single-widget"> <h2>About Shopper</h2> <ul class="nav nav-pills nav-stacked"> <li><a href="#">Company Information</a></li> <li><a href="#">Careers</a></li> <li><a href="#">Store Location</a></li> <li><a href="#">Affillate Program</a></li> <li><a href="#">Copyright</a></li> </ul> </div> </div> <div class="col-sm-3 col-sm-offset-1"> <div class="single-widget"> <h2>About Shopper</h2> <form action="#" class="searchform"> <input type="text" placeholder="Your email address" /> <button type="submit" class="btn btn-default"><i class="fa fa-arrow-circle-o-right"></i></button> <p>Get the most recent updates from <br />our site and be updated your self...</p> </form> </div> </div> </div> </div> </div> <div class="footer-bottom"> <div class="container"> <div class="row"> <p class="pull-left">Copyright © 2013 E-SHOPPER Inc. All rights reserved.</p> <p class="pull-right">Designed by <span><a target="_blank" href="http://www.themeum.com/">Themeum</a></span></p> </div> </div> </div> </footer><!--/Footer--> <script src="<?php echo base_url(); ?>assets/frontEnd/js/jquery.js"></script> <script src="<?php echo base_url(); ?>assets/frontEnd/js/bootstrap.min.js"></script> <script src="<?php echo base_url(); ?>assets/frontEnd/js/jquery.scrollUp.min.js"></script> <script src="<?php echo base_url(); ?>assets/frontEnd/js/price-range.js"></script> <script src="<?php echo base_url(); ?>assets/frontEnd/js/jquery.prettyPhoto.js"></script> <script src="<?php echo base_url(); ?>assets/frontEnd/js/main.js"></script> </body> <!-- Mirrored from demo.themeum.com/html/eshopper/ by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 15 Oct 2017 02:42:52 GMT --> </html>
developerTajul/eshoper
application/views/frontEnd/tp-parts/footer.php
PHP
mit
5,584
#ifndef TANSA_MOCAP_INTERFACES_RASPICAM_H_ #define TANSA_MOCAP_INTERFACES_RASPICAM_H_ #include "../camera_node.h" #include <raspicam/raspicam.h> namespace tansa { class RaspicamImagingInterface : public MocapCameraImagingInterface { public: RaspicamImagingInterface(); virtual ~RaspicamImagingInterface(); virtual void start(); virtual void stop(); virtual ImageSize getSize(); private: friend void raspicam_image_callback(void *arg); raspicam::RaspiCam camera; }; void raspicam_image_callback(void *arg); } #endif
dennisss/tansa
src/mocap/interfaces/raspicam.h
C
mit
537
/* * @Author: Mike Reich * @Date: 2016-02-05 08:28:40 * @Last Modified 2016-05-19 */ /** * [![Build Status](https://travis-ci.org/nxus/tester.svg?branch=master)](https://travis-ci.org/nxus/tester) * * A test management framework for Nxus applications. The tester module provides some helper functions for funtionally testing a Nxus app. * * ## Installation * * > npm install nxus-tester --save-dev * * ## Configuration * * You will want to use `mocha` as your test runner in your application project, here's a standard npm `test` script for your `package.json` * * "test": "NODE_ENV=test mocha --recursive --compilers js:babel-register -R spec modules/test/*", * * ## Usage * * ### Test Server startup * * Any test suites that want to make requests to a running instance of your application should use `startTestServer`: * * describe("My App", function() { * before(function() { * this.timeout(4000) // Depending on your apps startup speed * startTestServer() * }) * ... // Your tests * }) * * This is safe to call in multiple suites, only one test server will be started. You may pass an object as an * optional second argument to `startTestServer` for command ENV variables, such as DEBUG or overriding test database names. * * ### Running tests * * > npm test * * ### Requests * * Requests to the test server can be made using helper methods for the `requests-with-promises` library. * * import {request, requestRaw, requestLogin} from 'nxus-tester' * * `request` returns the body of a successful response * * let body = await request.get('/') // or request({url: '/', ...}) * res.statusCode.should.equal(200) * * or errors with a non-2XX response * * let body = await request.get('/notHere') * .catch(request.errors.StatusCodeError, (err) => {...}) * * `requestRaw` returns the response object, if you want to check statusCode, headers, etc * let res = await requestRaw.get({url: '/admin', followRedirect: false}) * res.statusCode.should.equal(302) * res.headers.location.should.contain('/login') * * * `requestLogin`` creates a new cookie jar and logs in as the requested username/password * and returns a request object to use like `request`. * let req = await requestLogin('user@dev', 'test') * let body = await req.get({url: '/admin'}) * * ### Fixtures * * You can define fixtures (json or csv files with data to load during test startup) manually in your application modules: * app.get('tester').fixture('modelName', 'path/to/fixture.json') * * Or by creating a top-level application `fixtures` directory with files named for the models they contain fixture data for. * * ### Use models and nxus modules in tests * * The test server is started in the same process as your tests, so you may use e.g. `storage.getModel()` in your * before() and test methods to create test data and assert that requests modify data. * * # API * ----- */ 'use strict'; import Promise from 'bluebird' import request_lib from 'request-promise-native' import request_errors from 'request-promise-native/errors' import pluralize from 'pluralize' import path from 'path' import fs_ from 'fs' const fs = Promise.promisifyAll(fs_) import {NxusModule, application as app} from 'nxus-core' import {dataManager} from 'nxus-data-manager' import startTestServer from './testServer' const REGEX_FILE = /[^\/\~]$/; var base = "http://localhost:"+(process.env.PORT || "3002") class Tester extends NxusModule { constructor() { super() base = "http://"+app.config.host+":"+app.config.PORT this._loadLocalFixtures() } /** * Import a data file as fixture data for tests. Only runs if config.env==test * @param {string} modelId The identity of the model to import * @param {string} path The path to a file * @param {object} options Options to pass to data-loader.importFile */ fixture(modelId, path, options) { if(app.config.NODE_ENV == 'test') { this.log.debug("Loading fixture", path, "for model", modelId) return app.once('startup', () => { return dataLoader.importFileToModel(modelId, path, options) }) } } _loadLocalFixtures() { let dir = path.resolve("./fixtures"); try { fs.accessSync(dir) } catch (e) { return; } return fs.readdirAsync(dir).each((file) => { if (REGEX_FILE.test(file)) { let ext = path.extname(file) let p = path.resolve(path.join(dir,file)) let model = pluralize.singular(path.basename(file, ext)) this.provide('fixture', model, p) } }); } } var tester = Tester.getProxy() var request = request_lib.defaults({baseUrl: base}) request.errors = request_errors var requestRaw = request.defaults({resolveWithFullResponse: true, simple: false}) async function createUser (username, password = 'test') { // TODO check for existing user, API? let req = await requestLogin('[email protected]', 'admin') await req.post({ url: '/admin/users/save', form: { email: username, password: password } }) return requestLogin(username, password) } async function requestLogin (username, password = 'test') { //use the correct baseURL for cookie matching var jar = request.jar() let opts = {jar: jar, baseUrl: base} var req = request.defaults(opts) req.cookieJar = jar await req.post({ url: '/login', form: { username: username, password: password }, simple: false, followRedirect: false }) return req } export {Tester as default, tester, request, requestRaw, startTestServer, createUser, requestLogin, base}
nxus/tester
src/index.js
JavaScript
mit
5,721
<!DOCTYPE html> <html lang="en" ng-app="myApp"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <meta name="description" content=""> <meta name="author" content=""> <link rel="icon" href="../../favicon.ico"> <title>Signin</title> <!-- Bootstrap core CSS --> <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"> <!-- Custom styles for this template --> <link href="app.css" rel="stylesheet"> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container" ng-controller="SigninCtrl"> <form class="form-signin"> <h2 class="form-signin-heading">Please sign in</h2> <label for="inputEmail" class="sr-only">Email address</label> <input type="email" id="inputEmail" ng-model="request.username" class="form-control" placeholder="Email address" required autofocus> <label for="inputPassword" class="sr-only">Password</label> <input type="password" id="inputPassword" ng-model="request.password" class="form-control" placeholder="Password" required> <button class="btn btn-lg btn-primary btn-block" ng-click="signin()">Sign in</button> </form> </div> <!-- /container --> <!-- IE10 viewport hack for Surface/desktop Windows 8 bug --> <script src="bower_components/bootstrap/js/ie10-viewport-bug-workaround.js"></script> </body> </html>
rachelee/MiniHotelClient
app/signin.html
HTML
mit
1,892
<?php namespace AdobeConnectClient\Tests\Commands; use AdobeConnectClient\Commands\PermissionsInfo; use AdobeConnectClient\Entities\Permission; use AdobeConnectClient\Entities\Principal; use AdobeConnectClient\Filter; use AdobeConnectClient\Sorter; use AdobeConnectClient\Exceptions\NoAccessException; class PermissionsInfoTest extends TestCommandBase { public function testOnlyAclId() { $this->userLogin(); $command = new PermissionsInfo(12345); $command->setClient($this->client); $principals = $command->execute(); $this->assertNotEmpty($principals); $principal = reset($principals); $this->assertInstanceOf(Principal::class, $principal); $this->assertEquals(2006258745, $principal->getPrincipalId()); $this->assertEquals('Joy', $principal->getFirstName()); $this->assertEquals('Smith', $principal->getLastName()); $this->assertEquals(Permission::PRINCIPAL_HOST, $principal->getPermissionId()); } public function testFilter() { $this->userLogin(); $command = new PermissionsInfo( 12345, Filter::instance()->equals('PermissionId', Permission::PRINCIPAL_MINI_HOST) ); $command->setClient($this->client); $principals = $command->execute(); $this->assertNotEmpty($principals); $principal = reset($principals); $this->assertInstanceOf(Principal::class, $principal); $this->assertEquals(5, $principal->getPrincipalId()); $this->assertEquals('Test', $principal->getFirstName()); $this->assertEquals('', $principal->getLastName()); $this->assertEquals(Permission::PRINCIPAL_MINI_HOST, $principal->getPermissionId()); } public function testSort() { $this->userLogin(); $command = new PermissionsInfo( 12345, null, Sorter::instance()->asc('permissionId') ); $command->setClient($this->client); $principals = $command->execute(); $this->assertNotEmpty($principals); $principal = reset($principals); $this->assertInstanceOf(Principal::class, $principal); $this->assertEquals(2006258745, $principal->getPrincipalId()); $this->assertEquals('Joy', $principal->getFirstName()); $this->assertEquals('Smith', $principal->getLastName()); $this->assertEquals(Permission::PRINCIPAL_HOST, $principal->getPermissionId()); } public function testEmpty() { $this->userLogin(); $command = new PermissionsInfo( 12345, Filter::instance()->equals('permissionId', Permission::PRINCIPAL_DENIED) ); $command->setClient($this->client); $principals = $command->execute(); $this->assertEmpty($principals); } public function testNoAccess() { $this->userLogout(); $command = new PermissionsInfo(12345); $command->setClient($this->client); $this->expectException(NoAccessException::class); $command->execute(); } public function testInvalidDependency() { $command = new PermissionsInfo(12345); $this->expectException(\BadMethodCallException::class); $command->execute(); } }
brunogasparetto/AdobeConnectClient
tests/Commands/PermissionsInfoTest.php
PHP
mit
3,318
/* */ "use strict"; var tape = require("tape"); var uniq = require("uniq"); var ch = require("../ich"); function createSphere(dimension, numBoundary, numInterior) { var points = []; for (var i = 0; i < numBoundary; ++i) { var point = new Array(dimension); var r2 = 0.0; for (var j = 0; j < dimension; ++j) { var v = Math.random() - 0.5; r2 += v * v; point[j] = v; } var r = Math.sqrt(r2); for (var j = 0; j < dimension; ++j) { point[j] /= r; } points.push(point); } for (var i = 0; i < numInterior; ++i) { var point = new Array(dimension); for (var j = 0; j < dimension; ++j) { point[j] = 0.5 * (Math.random() - 0.5); } points.push(point); } return points; } function testSphere(t, dimension, numBoundary, numInterior) { var s = createSphere(dimension, numBoundary, numInterior); var hull = ch(s); var boundary = uniq(hull.reduce(function(f, c) { f.push.apply(f, c); return f; }, []), function(a, b) { return a - b; }); t.equals(boundary.length, numBoundary, "sphere " + dimension + " boundary ok"); for (var i = 0; i < boundary.length; ++i) { t.equals(boundary[i], i, "boundary " + i); } } tape("sphere 2d", function(t) { for (var i = 0; i < 10; ++i) { testSphere(t, 2, 50, 50); } t.end(); }); tape("sphere 3d", function(t) { for (var i = 0; i < 10; ++i) { testSphere(t, 3, 100, 100); } t.end(); }); tape("sphere 4d", function(t) { for (var i = 0; i < 10; ++i) { testSphere(t, 4, 120, 120); } t.end(); });
thomjoy/turftest
src/jspm_packages/npm/[email protected]/test/sphere.js
JavaScript
mit
1,560
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Application_MySchool_VS2008.DTO { class Client { public int id_client { get; set; } public String civ_cli { get; set; } public String nom_cli { get; set; } public String prenom_cli { get; set; } public String mobile_cli { get; set; } public String fixe_cli { get; set; } public String email_cli { get; set; } public String connu_cli { get; set; } public String remarques_cli { get; set; } public String quartier_cli { get; set; } public String adresse_cli { get; set; } public String date_inscription_cli { get; set; } public String login_cli { get; set; } public String password_cli { get; set; } public String actif_cli { get; set; } public String ville_cli { get; set; } } }
syncrase/myschool
Application_MySchool_VS2008/DTO/Client.cs
C#
mit
923
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("DinnerMenuWithMethodApproach")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("DinnerMenuWithMethodApproach")] [assembly: AssemblyCopyright("Copyright © 2015")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("f6b4b8b1-d434-459f-9a42-9b301f2b1f7b")] // 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")]
harshl-sapient/cSharpProgramming
DinnerMenuWithMethodApproach/DinnerMenuWithMethodApproach/Properties/AssemblyInfo.cs
C#
mit
1,432
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta name="viewport" content="width=device-width" /> <title>The Watercolor Gallery</title> <link rel="stylesheet" href="/stylesheets/normalize.css" /> <link rel="stylesheet" href="/stylesheets/cypress_styles.css" /> <link href='//fonts.googleapis.com/css?family=Muli:300,400,300italic,400italic|Six+Caps' rel='stylesheet' type='text/css'> <script src="/javascripts/custom.modernizr.js"></script> </head> <body> <!-- Background Image <div id="background" class="hide-for-small" data-barley="bg_image" data-barley-editor="image"> <img src="/images/bg.png"> </div> --> <div class="row container"> <!-- Mobile Header --> <div class="row" id="mobile-header"> <a href="#menu" class="menu-trigger"><img src="/images/mobile_menu.svg"></a> </div> <!-- Sidebar --> <div class="large-2 columns side"> <div id="sticker"> <div data-barley="site_logo" data-barley-editor="image-logo"> <a href="/" title="The Watercolor Gallery"><img src="/images/cypress_logo.svg" class="logo" id="logo"></a> </div> <hr> <div id="intro"> <p><strong>The Watercolor Gallery</strong></p> <p>A gallery of inspirational watercolor paintings from artists all over the world curated by <a href="http://cdevroe.com/" title="The curator's web site">Colin Devroe</a>.</p> </div> <hr> <nav id="menu"> <ul> <li><a href="index.html" title="The Watercolor Gallery">Home</a></li> <li><a href="/gallery.html" title="Browse paintings in the Gallery">Gallery</a></li> <li><a href="/interviews.html" title="Read Interviews">Interviews</a></li> <li><a href="/artspaces.html" title="See where artists work">Art Spaces</a></li> <li><a href="/videos.html" title="Watch video tutorials">Videos</a></li> <li><a href="/about.html" title="About The Watercolor Gallery">About</a></li> <li><a href="/submit.html" title="Submit your work">Submit Your Work</a></li> </ul> <ul> <li><a href="sponsor.html" title="Sponsor the Gallery">Sponsor</a></li> </ul> </nav> <hr> <p><a href="sponsor.html" title="Help support The Watercolor Gallery"><img src="http://placehold.it/160x100&text=Your&nbsp;Ad" alt="Your ad on The Watercolor Gallery"></a><br /><a href="sponsor.html" title="Help support The Watercolor Gallery">Help support the Gallery</a></p> <hr> <div> <p id="social-icons"> <a href="http://twitter.com/h2ocolor" title="Follow @h2ocolor on Twitter"><img src="/images/social_icons/twitter.svg" class="icon"></a> <a href="http://facebook.com/h2ocolor" title="Like The Watercolor Gallery on Facebook"><img src="/images/social_icons/facebook.svg" class="icon"></a> </p> </div> </div> </div> <div class="large-10 gallery columns main-content cf"> <h2 data-barley="pagesnippet_gallery_title" data-barley-editor="mini">Gallery</h2> <div class="hide-for-small" data-barley="pagesnippet_gallery_description" data-barley-editor="advanced"> <p>A hand-curated collection of watercolors from artists all over the world. If you'd like to see your art here, please submit it!</p> </div> <!-- repeat:blogpost:24 --> <div class="large-3 small-6 columns item"> <a href="%URL%"> <div> %THUMB% </div> </a> <h5 class="item-title"><a href="%URL%"><span>%TITLE%</span></a></h5> </div> <!-- endrepeat --> <div class="cf"></div> <div class="large-12 columns"> <div class="pagination"> <!-- next --><a href="#" class="older">Next <img src="/images/right_arrow.svg"></a><!-- endnext --> <!-- previous --><a href="#" class="newer"><img src="/images/right_arrow.svg"> Previous</a><!-- endprevious --> </div> <!-- Footer --> <div class="hide-for-small"> <footer id="footer"> <a class="scrollup"><img src="/images/top_arrow.svg"></a> <div class="bottom-line"> <div class="copyright"> &copy; Colin Devroe - The Watercolor Gallery </div> <div class="powered"> <a href="http://getbarley.com"><img src="images/barley_icon.svg" alt="A Barley Website" width="18"></a><span class="hide-for-small"><a href="http://getbarley.com">A Barley Website</a></span> </div> <div class="cf"></div> </div> </footer> </div> </div> </div> </div> <div id="mobile-footer" class="show-for-small"></div> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <!-- owner --> <script src="//code.jquery.com/ui/1.10.3/jquery-ui.js"></script> <!-- endowner --> <script src="/javascripts/jquery.sticky.js"></script> <script src="/javascripts/jquery.fitvids.js"></script> <script src="/javascripts/jquery.jpanelmenu.min.js"></script> <script src="/javascripts/cypress.js"></script> <!-- <script type="text/javascript"> (function($){ $.fn.sortChildrenByDataKey = function(key, desc){ var i, els = this.children().sort(function(a, b) { return (desc?1:-1)*($(a).data(key) - $(b).data(key)); }); for (i = 0; i < els.length; i++) { this.prepend($(els[i]).detach()); } return this; }; })(jQuery); $(document).ready(function(){ // After the page loads, reorder the items based on the data-order attribute $('.topgallery').sortChildrenByDataKey('order', false); $('.bottomgallery').sortChildrenByDataKey('order', false); }); </script> --> <!-- owner --> <!-- <script type="text/javascript"> $(document).ready(function(){ $(function() { $( ".topgallery" ).sortable({ items: "> .item", stop: function() { // When drag is complete, do all of the following draggable_items = $('.topgallery').children(); // Get all items within the sortable wrapper(s) var item_id; for (icarus = 0; icarus < draggable_items.length; icarus++) { item_id = $(draggable_items[icarus]).attr('data-item-id'); // The numeric Barley ID for this item. $(draggable_items[icarus]).attr('data-order',icarus); // Update data-order attribute for item dragged $('#item_order_'+item_id).addClass('isModified').text(icarus); // Update data-barley order number for this item, add isModified class barley.client.execute($('#item_order_'+item_id)); // Force Barley to save this key without needing to "type" with the keyboard. } } }); $( ".topgallery" ).disableSelection(); }); $(function() { $( ".bottomgallery" ).sortable({ items: "> .item", stop: function() { // When drag is complete, do all of the following draggable_items = $('.bottomgallery').children(); // Get all items within the sortable wrapper(s) var item_id; for (icarus = 0; icarus < draggable_items.length; icarus++) { item_id = $(draggable_items[icarus]).attr('data-item-id'); // The numeric Barley ID for this item. $(draggable_items[icarus]).attr('data-order',icarus); // Update data-order attribute for item dragged $('#item_order_'+item_id).addClass('isModified').text(icarus); // Update data-barley order number for this item, add isModified class barley.client.execute($('#item_order_'+item_id)); // Force Barley to save this key without needing to "type" with the keyboard. //alert('Saved.'); } } }); $( ".bottomgallery" ).disableSelection(); }); }); </script> --> <!-- endowner --> <script> if($('.item').length == 0){ $('.scrollup').css('visibility','hidden'); } </script> </body> </html>
indisc/cypress
Build/gallery.html
HTML
mit
7,805
""" Splits all files in `root_dir` into `tweets_per_file_target` tweets. If the number of characters one one line is less then 1 << 32, otherwise it is skipped """ import json import os import re import time from abc import abstractmethod, ABCMeta from os import listdir from inputoutput.input import clean_output_dir from preprocessing.preprocess_util import re_whitespace re_filename = re.compile(r'(\d{8})_+\d+\.json') tweets_per_file_limit = 500 WRITE_OUTPUT = True buffer = 1 << 22 ERROR_FILES = {'T:\\FILEZILLA PUBLIC FOLDER\\WebInfRet\\newoutput\\TWEETS\\20161004___1.json', 'T:\\FILEZILLA PUBLIC FOLDER\\WebInfRet\\newoutput\\TWEETS\\20161007___0.json', 'T:\\FILEZILLA PUBLIC FOLDER\\WebInfRet\\newoutput\\TWEETS\\20161005___0.json', 'T:\\FILEZILLA PUBLIC FOLDER\\WebInfRet\\newoutput\\TWEETS\\20161010___0.json', 'T:\\FILEZILLA PUBLIC FOLDER\\WebInfRet\\newoutput\\TWEETS\\20161006___1.json', 'T:\\FILEZILLA PUBLIC FOLDER\\WebInfRet\\newoutput\\TWEETS\\20161011___0.json', 'T:\\FILEZILLA PUBLIC FOLDER\\WebInfRet\\newoutput\\TWEETS\\20161008___0.json', 'T:\\FILEZILLA PUBLIC FOLDER\\WebInfRet\\newoutput\\TWEETS\\20161005___1.json', 'T:\\FILEZILLA PUBLIC FOLDER\\WebInfRet\\newoutput\\TWEETS\\20161009___0.json'} class BaseParser(metaclass=ABCMeta): def __init__(self, input_dir, output_dir, output_item_limit): self.input_dir = input_dir self.output_dir = output_dir self.output_item_limit = output_item_limit self.items = [] self.output_filename_base = None self.output_filename_index = 0 self.mem_errors = set() def __call__(self): for input_filename in listdir(self.input_dir): input_filepath = os.path.join(self.input_dir, input_filename) if not os.path.isfile(input_filepath): continue try: # Check filename match = re_filename.match(input_filename) if not match: print("Will not parse file %s" % input_filepath) continue output_filename_base = match.group(1) if self.output_filename_base is None: self.output_filename_base = output_filename_base elif self.output_filename_base != output_filename_base: # New base filename, so new numbering self.close() self.output_filename_index = 0 self.output_filename_base = output_filename_base self.parse_file(input_filepath) except Exception as e: if type(e) is MemoryError: # bp = BufferedParser(self.input_dir, self.output_dir, self.output_item_limit) # bp.output_filename_index = self.output_filename_index # bp.items = self.items # # bp.parse_file(input_filepath) # bp.close() # # self.output_filename_index = bp.output_filename_index + 1 # # continue self.memory_error(input_filepath) else: print("Could not parse file %s" % input_filepath) self.close() def memory_error(self, input_filepath): self.mem_errors.add(input_filepath) print("MemoryError found in: %s" % self.mem_errors) @abstractmethod def parse_file(self, input_filepath): pass def clean_output_dir(self): clean_output_dir(self.output_dir, '.valid.json') def output(self, force=False): if not (force or len(self.items) >= self.output_item_limit): return while True: output_path = os.path.join(self.output_dir, '%s__%d.valid.json' % (self.output_filename_base, self.output_filename_index)) if WRITE_OUTPUT and len(self.items) > 0: t0 = time.time() with open(output_path, 'w+', encoding='UTF8') as fp: json.dump(self.items[:self.output_item_limit], fp, indent=1) self.output_filename_index += 1 self.items = self.items[self.output_item_limit:] if len(self.items) < self.output_item_limit: break def close(self): self.output(force=True) class FullFileParser(BaseParser): def parse_file(self, input_filepath): with open(input_filepath, 'r', encoding='UTF8') as fp: print("Reading from %s" % input_filepath) self.parse_items(fp) @abstractmethod def parse_items(self, fp): pass class NaiveParser(FullFileParser): chunk = "" max_item_size_chars = 100000 def parse_string(self, raw_string): self.chunk += raw_string while self.try_find_tweet(): self.output() def try_find_tweet(self): if self.chunk == "": return False pre_chunk = self.chunk[0:24000] i_start = 0 item_candidates = pre_chunk.split('}{') if len(item_candidates) != 1: i_start += 2 else: item_candidates = pre_chunk.split('}\n{') i_start += 3 iso_chunk = item_candidates[0] if iso_chunk.endswith('\n'): iso_chunk = iso_chunk.rstrip() item_candidate = iso_chunk if not iso_chunk.startswith('{"extended_entities"'): item_candidate = '{' + item_candidate if not iso_chunk.endswith('"notifications":null}}'): item_candidate = item_candidate + '}' try: self.items.append(json.loads(item_candidate)) except ValueError as e: print('iso_chunk: `%s`\n' % iso_chunk) print('item_candidate: `%s` ... `%s`\n' % ( item_candidate[0:20], item_candidate[len(item_candidate) - 20:len(item_candidate)])) raise e self.chunk = self.chunk[len(iso_chunk) + i_start:len(self.chunk)] return True def parse_items(self, fp): lines = fp.readlines() content = ''.join(lines) if content.startswith('{'): content = content[1:len(content)] if content.endswith('}'): content = content[0:len(content) - 1] self.parse_string(content) class NewLineSeparatedParser(FullFileParser): seen_ids = set() def parse_items(self, fp): n = 0 lines = fp.readlines() for line in lines: self.parse_line(n, line) n += 1 def parse_line(self, n: int, line: str): line_size = len(line) data = None datas = None original_line = line line = line.strip() if line == '[': return if line == ']': return if line.endswith('},'): line = line[:-1] if line.startswith('[{'): line = line[1:] if line.endswith('}]'): line = line[:-1] if line.startswith('][{'): line = line[2:] if not (line.startswith('{') and line.endswith('}')): print('error at line %d: %s ... %s' % (n, original_line[:10], original_line[-10:])) return try: data = json.loads(line) except ValueError as e: dups = line.count('}}{') if dups == 9999 or dups == 19999: line = line.replace('}}{', '}},{') try: datas = json.loads('[' + line + ']') except ValueError: raise e if data is not None: # 1 item found if 'id' in data: if data['id'] in self.seen_ids: print("skipping duplicate id") else: self.seen_ids.add(data['id']) self.items.append(data) elif datas is not None: # Multiple items found for data in datas: if 'id' in data: if data['id'] in self.seen_ids: print("skipping duplicate id") else: self.seen_ids.add(data['id']) self.items.append(data) self.output() class BufferedParser(BaseParser): def __init__(self, input_dir, output_dir, output_item_limit): super().__init__(input_dir, output_dir, output_item_limit) self.chunk = "" self.tweets_found = 0 def try_find_tweet(self): if self.chunk == "": return False splitted = self.chunk.split('}{') if len(splitted) == 1: splitted = re_whitespace.sub('', self.chunk).split('}{') concated = "" for i in range(0, len(splitted)): if i == 0: concated += splitted[i] else: concated += '}{' + splitted[i] if i > 10: print(" Skipping %s" % splitted[0]) offset = len(splitted[0]) + 2 self.chunk = self.chunk[offset:len(self.chunk)] return True try: self.x = json.loads('{' + concated + '}') self.items.append(self.x) self.tweets_found += 1 self.output() offset = len(concated) + 2 self.chunk = self.chunk[offset:len(self.chunk)] return True except ValueError as e: pass return False def parse_file(self, input_filepath): with open(input_filepath, 'r', encoding='utf8') as fp: self.chunk = fp.read(buffer) if self.chunk.startswith('{"'): self.chunk = self.chunk[1:len(self.chunk)] while True: r = fp.read(buffer) if r == "": break self.chunk += r found = True while found: found = self.try_find_tweet() # EOF reached if self.chunk.endswith('}}'): self.chunk = self.chunk[0:len(self.chunk) - 1] found = True while found: found = self.try_find_tweet() if __name__ == '__main__': input_dir = r'T:\FILEZILLA PUBLIC FOLDER\WebInfRet\newoutput\TWEETS' output_dir = os.path.join(os.path.dirname(input_dir), 'tweets_valid') p = NewLineSeparatedParser(input_dir, output_dir, tweets_per_file_limit) p.clean_output_dir() p()
den1den/web-inf-ret-ml
inputoutput/split_files_script/advanced_splitting_of_files.py
Python
mit
10,560
var webpack = require('webpack'); var config = require('./webpack.config'); var statsConfig = require('./statsConfig'); var preactCompat = { root: 'preactCompat', commonjs2: 'preact-compat', commonjs: 'preact-compat' }; config.externals = { 'react': preactCompat, 'react-dom': preactCompat }; config.entry = './src/DonutChartUMD.js'; config.output.filename = 'DonutChartPreact.js'; config.output.library = 'DonutChart'; config.output.libraryTarget = 'umd'; webpack(config).run(function (err, stats) { console.log(stats.toString(statsConfig)); });
MrCheater/habrahabr-universal-component
scripts/build-as-preact-component.js
JavaScript
mit
573
--- # # By default, content added below the "---" mark will not appear in the articles # page but you can edit the content by using the _config.yml file to an extent. # See the README.md file to find if there are any articles page's content # editable variables. # # To change the articles page layout/content, edit the _layouts/articles.html file. # See: https://jekyllrb.com/docs/themes/#overriding-theme-defaults # layout: articles title: Articles - Alien Site permalink: /articles/index.html ---
ganeshbelgur/alien-minimalistic
pages/articles.md
Markdown
mit
500
module Watchtower mattr_accessor :user_class class Engine < ::Rails::Engine isolate_namespace Watchtower config.generators do |g| g.test_framework :rspec end end end
modsognir/watchtower
lib/watchtower/engine.rb
Ruby
mit
192
package mcjty.rftools; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import mcjty.lib.varia.Coordinate; import net.minecraft.client.Minecraft; import net.minecraft.world.World; /** * This class holds information on client-side only which are global to the mod. */ public class ClientInfo { private Coordinate selectedTE = null; private Coordinate destinationTE = null; private Coordinate hilightedBlock = null; private long expireHilight = 0; public void hilightBlock(Coordinate c, long expireHilight) { hilightedBlock = c; this.expireHilight = expireHilight; } public Coordinate getHilightedBlock() { return hilightedBlock; } public long getExpireHilight() { return expireHilight; } public Coordinate getSelectedTE() { return selectedTE; } public void setSelectedTE(Coordinate selectedTE) { this.selectedTE = selectedTE; } public Coordinate getDestinationTE() { return destinationTE; } public void setDestinationTE(Coordinate destinationTE) { this.destinationTE = destinationTE; } @SideOnly(Side.CLIENT) public static World getWorld() { return Minecraft.getMinecraft().theWorld; } }
Elecs-Mods/RFTools
src/main/java/mcjty/rftools/ClientInfo.java
Java
mit
1,285
<?php /** * Created by PhpStorm. * User: zyuskin_en * Date: 31.12.14 * Time: 0:10 */ namespace It2k\GWH; use Symfony\Component\OptionsResolver\OptionsResolver; /** * Class Repository * * @package It2k\GWH */ class Repository { /** * @var Hook */ protected $hook; /** * @var string */ protected $name; /** * @var string */ protected $path; /** * @var \Logger */ protected $logger; /** * @var array */ protected $options; /** * @var array|Command[] */ protected $commandsList = array(); /** * @var array|Branch[] */ protected $branchesList = array(); /** * @param Hook $hook * @param string $name * @param string $path * @param array $options */ public function __construct($hook, $name, $path, array $options = array()) { $this->hook = $hook; $this->path = $path; $this->name = $name; $resolver = new OptionsResolver(); $resolver->setDefaults($hook->getOptions()); $this->options = $resolver->resolve($options); $this->logger = $hook->getLogger(); $this->logger->debug('Create repository with params ' . json_encode($this->options)); } /** * @param string $name * @param string $path * @param array $options * * @return Branch */ public function addBranch($name, $path = '', array $options = array()) { if (!$path) { $path = $this->path; } if (!isset($this->branchesList[$name])) { $this->logger->info('Add branch ' . $name . ', path: ' . $path); $this->branchesList[$name] = new Branch($this, $name, $path, $options); } return $this->branchesList[$name]; } /** * @param string $name * * @return bool|Branch */ public function getBranch($name) { return isset($this->branchesList[$name]) ? $this->branchesList[$name] : false; } /** * @param string|array $command command for a run * @param string $path path from run the command * * @return Repository */ public function addCommand($command, $path = '') { if (!$path) { $path = $this->path; } if (is_array($command)) { foreach ($command as $cmd) { $this->addCommand($cmd, $path); } } else { $this->logger->info('Add to repository command: ' . $command . ', path: ' . $path); $command = new Command($command, $path, $this->logger); $this->commandsList[] = $command; } return $this; } /** * @return array */ public function executeCommands() { $this->logger->info('Execute commands for repository ' . $this->name . ' ...'); $result = array(); if (!empty($this->commandsList)) { foreach ($this->commandsList as $command) { $result[] = $command->execute(); } } return $result; } /** * @return int */ public function getCommandsCount() { return count($this->commandsList); } /** * @param string $name * * @return array */ public function getOptions($name = '') { if ($name) { return (isset($this->options[$name])) ? $this->options[$name] : ''; } return $this->options; } /** * @return \Logger */ public function getLogger() { return $this->logger; } /** * @return string */ public function getName() { return $this->name; } }
it2k/gwh
src/Repository.php
PHP
mit
3,773
<?php $view->script( 'item-index', 'spqr/glossary:app/bundle/item-index.js', 'vue' ); ?> <div id="items" class="uk-form" v-cloak> <div class="uk-margin uk-flex uk-flex-space-between uk-flex-wrap" data-uk-margin> <div class="uk-flex uk-flex-middle uk-flex-wrap" data-uk-margin> <h2 class="uk-margin-remove" v-if="!selected.length">{{ '{0} %count% Items|{1} %count% Item|]1,Inf[ %count% Items' | transChoice count {count:count} }}</h2> <template v-else> <h2 class="uk-margin-remove">{{ '{1} %count% Item selected|]1,Inf[ %count% Items selected' | transChoice selected.length {count:selected.length} }}</h2> <div class="uk-margin-left"> <ul class="uk-subnav pk-subnav-icon"> <li> <a class="pk-icon-check pk-icon-hover" title="{{ Enable | trans }}" data-uk-tooltip="{delay: 500}" @click="status(1)"></a> </li> <li> <a class="pk-icon-block pk-icon-hover" title="{{ Disable | trans }}" data-uk-tooltip="{delay: 500}" @click="status(2)"></a> </li> <li> <a class="pk-icon-copy pk-icon-hover" title="Copy" data-uk-tooltip="{delay: 500}" @click="copy"></a> </li> <li> <a class="pk-icon-delete pk-icon-hover" title="Delete" data-uk-tooltip="{delay: 500}" @click="remove" v-confirm="'Delete Items?'"></a> </li> </ul> </div> </template> <div class="pk-search"> <div class="uk-search"> <input class="uk-search-field" type="text" v-model="config.filter.search" debounce="300"> </div> </div> </div> <div data-uk-margin> <a class="uk-button uk-button-primary" :href="$url.route('admin/glossary/item/edit')">{{ 'Add Item' | trans }}</a> </div> </div> <div class="uk-overflow-container"> <table class="uk-table uk-table-hover uk-table-middle"> <thead> <tr> <th class="pk-table-width-minimum"> <input type="checkbox" v-check-all:selected.literal="input[name=id]" number></th> <th class="pk-table-min-width-200" v-order:title="config.filter.order">{{ 'Title' | trans }} </th> <th class="pk-table-width-100 uk-text-center"> <input-filter :title="$trans('Status')" :value.sync="config.filter.status" :options="statusOptions"></input-filter> </th> </tr> </thead> <tbody> <tr class="check-item" v-for="item in items" :class="{'uk-active': active(item)}"> <td><input type="checkbox" name="id" :value="item.id"></td> <td> <a :href="$url.route('admin/glossary/item/edit', { id: item.id })">{{ item.title }}</a> </td> <td class="uk-text-center"> <a :title="getStatusText(item)" :class="{ 'pk-icon-circle-danger': item.status == 2, 'pk-icon-circle-success': item.status == 1, 'pk-icon-circle': item.status == 0 }" @click="toggleStatus(item)"></a> </td> </tr> </tbody> </table> </div> <h3 class="uk-h1 uk-text-muted uk-text-center" v-show="items && !items.length">{{ 'No Items found.' | trans }}</h3> <v-pagination :page.sync="config.page" :pages="pages" v-show="pages > 1 || page > 0"></v-pagination> </div>
SPQRInc/pagekit-glossary
views/admin/item-index.php
PHP
mit
3,320
body{font-family:verdana;font-size:12px}#content{width:60%;max-width:600px;margin-left:auto;margin-right:auto}#poppoll{position:fixed;left:1%;right:1%;top:20%;display:none;z-index:999}#poppoll>div{display:block;padding:20px;height:250px;width:500px;overflow:hidden;margin:0 auto;background-color:#fff;box-shadow:0 2px 20px #6c6c6c}#poppoll form input{margin-bottom:5px}#screen1,#screen2{position:relative;height:100%}
ddsky/poppoll
css/poppoll.min.css
CSS
mit
417
#include "todpythonscriptserver.cc" #include "todpythonscriptserver_command.cc" #include "todpythonscriptserver_func.cc" #include "todpythonscriptserver_node.cc" #include "todpythonscriptserver_object.cc"
vateran/todengine
code/todpython/unity_build.cc
C++
mit
205
set -e if [ -z $VERSION ]; then VERSION="$1" fi mkdir -p out cd out wget https://github.com/erlang/otp/archive/OTP-${VERSION}.tar.gz tar -xzmf OTP-${VERSION}.tar.gz chmod -R 777 otp-OTP-${VERSION} cd otp-OTP-${VERSION} ./otp_build autoconf ./configure make make release cd .. mv otp-OTP-${VERSION}/release/x86_64-unknown-linux-gnu/ OTP-${VERSION} rm OTP-${VERSION}.tar.gz tar -czf OTP-${VERSION}.tar.gz OTP-${VERSION}
UET4/docker-erl
compile_version/build.sh
Shell
mit
426
extern crate clap; use clap::{App, Arg, SubCommand, AppSettings, ClapErrorType}; #[test] fn sub_command_negate_required() { App::new("sub_command_negate") .setting(AppSettings::SubcommandsNegateReqs) .arg(Arg::with_name("test") .required(true) .index(1)) .subcommand(SubCommand::with_name("sub1")) .get_matches_from(vec!["", "sub1"]); } #[test] fn sub_command_negate_required_2() { let result = App::new("sub_command_negate") .setting(AppSettings::SubcommandsNegateReqs) .arg(Arg::with_name("test") .required(true) .index(1)) .subcommand(SubCommand::with_name("sub1")) .get_matches_from_safe(vec![""]); assert!(result.is_err()); let err = result.err().unwrap(); assert_eq!(err.error_type, ClapErrorType::MissingRequiredArgument); } #[test] fn sub_command_required() { let result = App::new("sc_required") .setting(AppSettings::SubcommandRequired) .subcommand(SubCommand::with_name("sub1")) .get_matches_from_safe(vec![""]); assert!(result.is_err()); let err = result.err().unwrap(); assert_eq!(err.error_type, ClapErrorType::MissingSubcommand); } #[test] fn arg_required_else_help() { let result = App::new("arg_required") .setting(AppSettings::ArgRequiredElseHelp) .arg(Arg::with_name("test") .required(true) .index(1)) .get_matches_from_safe(vec![""]); assert!(result.is_err()); let err = result.err().unwrap(); assert_eq!(err.error_type, ClapErrorType::MissingRequiredArgument); } #[test] fn no_bin_name() { let result = App::new("arg_required") .setting(AppSettings::NoBinaryName) .arg(Arg::with_name("test") .required(true) .index(1)) .get_matches_from_safe(vec!["testing"]); assert!(result.is_ok()); let matches = result.unwrap(); assert_eq!(matches.value_of("test").unwrap(), "testing"); } #[test] fn unified_help() { let mut app = App::new("test") .author("Kevin K.") .about("tests stuff") .version("1.3") .setting(AppSettings::UnifiedHelpMessage) .args_from_usage("-f, --flag 'some flag' [arg1] 'some pos arg' --option [opt] 'some option'"); // We call a get_matches method to cause --help and --version to be built let _ = app.get_matches_from_safe_borrow(vec![""]); // Now we check the output of print_help() let mut help = vec![]; app.write_help(&mut help).ok().expect("failed to print help"); assert_eq!(&*String::from_utf8_lossy(&*help), &*String::from("test 1.3\n\ Kevin K. tests stuff USAGE: \ttest [OPTIONS] [ARGS] OPTIONS: -f, --flag some flag -h, --help Prints help information --option <opt> some option -V, --version Prints version information ARGS: arg1 some pos arg\n")); } #[test] fn app_settings_fromstr() { assert_eq!("subcommandsnegatereqs".parse::<AppSettings>().ok().unwrap(), AppSettings::SubcommandsNegateReqs); assert_eq!("subcommandsrequired".parse::<AppSettings>().ok().unwrap(), AppSettings::SubcommandRequired); assert_eq!("argrequiredelsehelp".parse::<AppSettings>().ok().unwrap(), AppSettings::ArgRequiredElseHelp); assert_eq!("globalversion".parse::<AppSettings>().ok().unwrap(), AppSettings::GlobalVersion); assert_eq!("versionlesssubcommands".parse::<AppSettings>().ok().unwrap(), AppSettings::VersionlessSubcommands); assert_eq!("unifiedhelpmessage".parse::<AppSettings>().ok().unwrap(), AppSettings::UnifiedHelpMessage); assert_eq!("waitonerror".parse::<AppSettings>().ok().unwrap(), AppSettings::WaitOnError); assert_eq!("subcommandrequiredelsehelp".parse::<AppSettings>().ok().unwrap(), AppSettings::SubcommandRequiredElseHelp); assert_eq!("hidden".parse::<AppSettings>().ok().unwrap(), AppSettings::Hidden); assert!("hahahaha".parse::<AppSettings>().is_err()); }
Vinatorul/clap-rs
tests/app_settings.rs
Rust
mit
4,064
<!DOCTYPE html> <html lang="en-gb" id="infinity-demo"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="author" content="Đorđe Jocić (Djordje Jocic)" /> <title>Infinity Examples</title> <link href="demo/css/style.css" rel="stylesheet" type="text/css" /> <script src="demo/js/jquery.js" type="text/javascript"></script> <link href="src/css/infinity.css" rel="stylesheet" type="text/css" /> <script src="src/js/infinity.js" type="text/javascript"></script> </head> <body> <!-- Output Starts Here --> <script type="text/javascript"> $(document).ready(function() { // Parsing Example. $(".parse").click(function() { var parseOption = $(this).data("option"); var container = $(this).parent().parent().children(".container"); var parsingResult = container.infinityParse(parseOption); $("#output .result").html(parsingResult); window.scrollTo(0, 0); }); }); </script> <div id="output" class="example no-margin"> <h1>Parsing Output</h1> <textarea class="result"></textarea> </div> <!-- Example 1 Starts Here --> <script type="text/javascript"> $(document).ready(function() { $("#example-1 .container").infinity(); }); </script> <div id="example-1" class="example"> <h1 class="title">Example 1 - Basic</h1> <div class="parse-options"> Parse Options <button class="parse" data-option="txt">TXT</button> <button class="parse" data-option="json">JSON</button> <button class="parse" data-option="xml">XML</button> </div> <div class="container"></div> </div> <!-- Example 2 Starts Here --> <script type="text/javascript"> $(document).ready(function() { $("#example-2 .container").infinity({ fields : [ { title : "Name", type : "input", size : "9" }, { title : "Price", type : "input", size : "3" } ] }); }); </script> <div id="example-2" class="example"> <h1 class="title">Example 2 - Multiple Fields</h1> <div class="parse-options"> Parse Options <button class="parse" data-option="txt">TXT</button> <button class="parse" data-option="json">JSON</button> <button class="parse" data-option="xml">XML</button> </div> <div class="container"></div> </div> <!-- Example 3 Starts Here --> <script type="text/javascript"> $(document).ready(function() { $("#example-3 .container").infinity({ fields : [ { title : "Product", type : "input", size : "3" }, { title : "Description", type : "textarea", size : "7" }, { title : "Shipping", type : "select", size : "2", options : [ { text : "Included", value : "Yes" }, { text : "Excluded", value : "No" } ] } ] }); }); </script> <div id="example-3" class="example"> <h1 class="title">Example 3 - Different Field Types</h1> <div class="parse-options"> Parse Options <button class="parse" data-option="txt">TXT</button> <button class="parse" data-option="json">JSON</button> <button class="parse" data-option="xml">XML</button> </div> <div class="container"></div> </div> <!-- Example 4 Starts Here --> <script type="text/javascript"> $(document).ready(function() { $("#example-4 .container").infinity({ fields : [ { title : "Product Name", type : "input", size : "12" } ], values : [ "Galaxy S5 G900F BL", "Desire 620G DS GR", "LED LCD 43AF1000", "LED LCD 24AR2000", "YotaPhone 2 YD201 BLACK" ] }); }); </script> <div id="example-4" class="example"> <h1 class="title">Example 4 - Preset Values (Basic)</h1> <div class="parse-options"> Parse Options <button class="parse" data-option="txt">TXT</button> <button class="parse" data-option="json">JSON</button> <button class="parse" data-option="xml">XML</button> </div> <div class="container"></div> </div> <!-- Example 5 Starts Here --> <script type="text/javascript"> $(document).ready(function() { $("#example-5 .container").infinity({ fields : [ { title : "First Name", type : "input", size : "4" }, { title : "Middle Name", type : "input", size : "4" }, { title : "Last Name", type : "input", size : "4" } ], values : [ [ "Suzanne", "Jay", "Morgan" ], [ "Faith", "Julio", "Freeman" ], [ "Merle", "Doreen", "Brock" ] ] }); }); </script> <div id="example-5" class="example"> <h1 class="title">Example 5 - Preset Values (Advanced)</h1> <div class="parse-options"> Parse Options <button class="parse" data-option="txt">TXT</button> <button class="parse" data-option="json">JSON</button> <button class="parse" data-option="xml">XML</button> </div> <div class="container"></div> </div> <!-- Example 6 Starts Here --> <script type="text/javascript"> $(document).ready(function() { $("#example-6 .container").infinity({ fields : [ { title : "Fruit", type : "input", size : "12" } ], values : [ "Banana", "Pineapple", "Lemon", "Orange" ], inputs : { id : "fruit", align : "center" }, options : { title : "Fruit Options", size : "3", align : "center" } }); }); </script> <div id="example-6" class="example"> <h1 class="title">Example 6 - Custom Settings</h1> <div class="parse-options"> Parse Options <button class="parse" data-option="txt">TXT</button> <button class="parse" data-option="json">JSON</button> <button class="parse" data-option="xml">XML</button> </div> <div class="container"></div> </div> </body> </html>
jocic/jquery.infinity
demo.html
HTML
mit
8,484
namespace HelpMyBook.Data.Common.Models { using System; public interface IAuditInfo { DateTime CreatedOn { get; set; } DateTime? ModifiedOn { get; set; } } }
DanteSparda/HelpMyBook
Source/Data/HelpMyBook.Data.Common/Models/IAuditInfo.cs
C#
mit
195
CREATE TABLE Star ( Kepler_ID INTEGER NOT NULL, T_eff INTEGER NOT NULL, Radius FLOAT NOT NULL, PRIMARY KEY (Kepler_ID) ); CREATE TABLE Planet ( Kepler_ID INTEGER NOT NULL REFERENCES Star(Kepler_ID), KOI_name VARCHAR(20) NOT NULL, Kepler_name VARCHAR(20), Status VARCHAR(20) NOT NULL, Period FLOAT, Radius FLOAT, T_eq INTEGER, PRIMARY KEY (KOI_name) ); INSERT INTO Star VALUES(2713049,5996,0.956); INSERT INTO Star VALUES(3114167,5666,0.677); INSERT INTO Star VALUES(3115833,5995,0.847); INSERT INTO Star VALUES(3246984,5735,0.973); INSERT INTO Star VALUES(3342970,6167,1.064); INSERT INTO Star VALUES(3351888,5717,1.057); INSERT INTO Star VALUES(3453214,5733,0.77); INSERT INTO Star VALUES(3641726,5349,0.82); INSERT INTO Star VALUES(3832474,5485,0.867); INSERT INTO Star VALUES(3935914,5934,0.893); INSERT INTO Star VALUES(3940418,5170,0.807); INSERT INTO Star VALUES(4049131,4905,0.761); INSERT INTO Star VALUES(4139816,3887,0.48); INSERT INTO Star VALUES(4275191,5557,0.781); INSERT INTO Star VALUES(4476123,5413,0.751); INSERT INTO Star VALUES(5358241,6079,0.945); INSERT INTO Star VALUES(5358624,5071,0.788); INSERT INTO Star VALUES(5456651,4980,0.734); INSERT INTO Star VALUES(6862328,5796,0.871); INSERT INTO Star VALUES(6922244,6225,1.451); INSERT INTO Star VALUES(8395660,5881,1.029); INSERT INTO Star VALUES(9579641,6391,1.332); INSERT INTO Star VALUES(10187017,4812,0.755); INSERT INTO Star VALUES(10480982,6117,0.947); INSERT INTO Star VALUES(10526549,4856,0.696); INSERT INTO Star VALUES(10583066,4536,0.693); INSERT INTO Star VALUES(10601284,5559,0.806); INSERT INTO Star VALUES(10662202,4722,0.527); INSERT INTO Star VALUES(10666592,6350,1.991); INSERT INTO Star VALUES(10682541,5339,0.847); INSERT INTO Star VALUES(10797460,5850,1.04); INSERT INTO Star VALUES(10811496,5853,0.868); INSERT INTO Star VALUES(10848459,5795,0.803); INSERT INTO Star VALUES(10854555,6031,1.046); INSERT INTO Star VALUES(10872983,6046,0.972); INSERT INTO Star VALUES(10875245,5851,1.411); INSERT INTO Star VALUES(10910878,5126,0.742); INSERT INTO Star VALUES(10984090,5803,1.073); INSERT INTO Star VALUES(10987985,5015,0.826); INSERT INTO Star VALUES(11018648,5588,0.796); INSERT INTO Star VALUES(11138155,6117,1.025); INSERT INTO Star VALUES(11153539,6075,0.969); INSERT INTO Star VALUES(11304958,5468,1.046); INSERT INTO Star VALUES(11391957,5592,0.782); INSERT INTO Star VALUES(11403044,6174,1.103); INSERT INTO Star VALUES(11414511,5653,0.965); INSERT INTO Star VALUES(11460018,5641,0.831); INSERT INTO Star VALUES(11465813,5520,0.983); INSERT INTO Star VALUES(11493732,6144,1.091); INSERT INTO Star VALUES(11507101,5957,0.971); INSERT INTO Star VALUES(11754553,3898,0.54); INSERT INTO Star VALUES(11812062,5492,0.812); INSERT INTO Star VALUES(11818800,5446,0.781); INSERT INTO Star VALUES(11853255,3741,0.45); INSERT INTO Star VALUES(11904151,5627,1.056); INSERT INTO Star VALUES(11918099,4989,0.727); INSERT INTO Star VALUES(11923270,3672,0.49); INSERT INTO Star VALUES(11960862,5992,0.989); INSERT INTO Star VALUES(12020329,5485,0.867); INSERT INTO Star VALUES(12066335,3767,0.48); INSERT INTO Star VALUES(12070811,5557,0.752); INSERT INTO Star VALUES(12110942,5880,0.917); INSERT INTO Star VALUES(12366084,5841,0.931); INSERT INTO Star VALUES(12404086,5127,0.775); INSERT INTO Star VALUES(12470844,5354,0.788); INSERT INTO Star VALUES(12644822,5795,0.919); INSERT INTO Planet VALUES(10666592,'K00002.01','Kepler-2b','CONFIRMED',2.204735365,16.39,2025); INSERT INTO Planet VALUES(6922244,'K00010.01','Kepler-8b','CONFIRMED',3.522498573,14.83,1521); INSERT INTO Planet VALUES(11904151,'K00072.01','Kepler-10b','CONFIRMED',0.837491331,1.45,1968); INSERT INTO Planet VALUES(10187017,'K00082.04','Kepler-102c','CONFIRMED',7.07136076,0.58,723); INSERT INTO Planet VALUES(10187017,'K00082.05','Kepler-102b','CONFIRMED',5.28695437,0.49,797); INSERT INTO Planet VALUES(10984090,'K00112.02','Kepler-466c','CONFIRMED',3.709213846,1.24,1236); INSERT INTO Planet VALUES(9579641,'K00115.01','Kepler-105b','CONFIRMED',5.41220713,3.28,1306); INSERT INTO Planet VALUES(9579641,'K00115.02','Kepler-105c','CONFIRMED',7.12594591,1.88,1191); INSERT INTO Planet VALUES(9579641,'K00115.03',NULL,'CANDIDATE',3.4358789,0.65,1519); INSERT INTO Planet VALUES(8395660,'K00116.01','Kepler-106c','CONFIRMED',13.57076622,2.35,796); INSERT INTO Planet VALUES(8395660,'K00116.02','Kepler-106e','CONFIRMED',43.84444353,2.58,538); INSERT INTO Planet VALUES(8395660,'K00116.03','Kepler-106b','CONFIRMED',6.16491696,0.85,1035); INSERT INTO Planet VALUES(8395660,'K00116.04','Kepler-106d','CONFIRMED',23.9802348,0.99,658); INSERT INTO Planet VALUES(10875245,'K00117.02','Kepler-107c','CONFIRMED',4.90143807,1.84,1263); INSERT INTO Planet VALUES(10480982,'K00744.01',NULL,'CANDIDATE',19.221386154,51.4,698); INSERT INTO Planet VALUES(10526549,'K00746.01','Kepler-660b','CONFIRMED',9.27358194,2.52,649); INSERT INTO Planet VALUES(10583066,'K00747.01','Kepler-661b','CONFIRMED',6.029301321,3.14,685); INSERT INTO Planet VALUES(10601284,'K00749.01','Kepler-226c','CONFIRMED',5.34955671,2.7,918); INSERT INTO Planet VALUES(10601284,'K00749.02','Kepler-226b','CONFIRMED',3.94104632,1.59,1017); INSERT INTO Planet VALUES(10601284,'K00749.03','Kepler-226d','CONFIRMED',8.10904671,1.19,799); INSERT INTO Planet VALUES(10662202,'K00750.01','Kepler-662b','CONFIRMED',21.67697486,1.54,430); INSERT INTO Planet VALUES(10682541,'K00751.01','Kepler-663b','CONFIRMED',4.99678284,2.7,917); INSERT INTO Planet VALUES(10797460,'K00752.01','Kepler-227b','CONFIRMED',9.48803146,3.1,881); INSERT INTO Planet VALUES(10797460,'K00752.02','Kepler-227c','CONFIRMED',54.418464,3.1,492); INSERT INTO Planet VALUES(10811496,'K00753.01',NULL,'CANDIDATE',19.899139805,3462.25,639); INSERT INTO Planet VALUES(10848459,'K00754.01',NULL,'CANDIDATE',1.736952479,34.04,1404); INSERT INTO Planet VALUES(10854555,'K00755.01','Kepler-664b','CONFIRMED',2.525593315,2.71,1407); INSERT INTO Planet VALUES(10872983,'K00756.01','Kepler-228d','CONFIRMED',11.09431923,4.02,835); INSERT INTO Planet VALUES(10872983,'K00756.02','Kepler-228c','CONFIRMED',4.13443005,3.02,1160); INSERT INTO Planet VALUES(10872983,'K00756.03','Kepler-228b','CONFIRMED',2.56659092,1.56,1360); INSERT INTO Planet VALUES(10910878,'K00757.01','Kepler-229c','CONFIRMED',16.06862959,5.27,571); INSERT INTO Planet VALUES(10910878,'K00757.02','Kepler-229d','CONFIRMED',41.1970874,3.62,417); INSERT INTO Planet VALUES(10910878,'K00757.03','Kepler-229b','CONFIRMED',6.252964898,2.41,782); INSERT INTO Planet VALUES(10987985,'K00758.01','Kepler-665b','CONFIRMED',16.01310205,2.86,593); INSERT INTO Planet VALUES(11018648,'K00759.01','Kepler-230b','CONFIRMED',32.62882975,3791.05,506); INSERT INTO Planet VALUES(11018648,'K00759.02','Kepler-230c','CONFIRMED',91.77221,2.13,358); INSERT INTO Planet VALUES(11138155,'K00760.01',NULL,'CANDIDATE',4.959319451,11.88,1128); INSERT INTO Planet VALUES(11153539,'K00762.01','Kepler-666b','CONFIRMED',4.49876092,2.21,1133); INSERT INTO Planet VALUES(11304958,'K00764.01','Kepler-667b','CONFIRMED',41.43962808,5.73,516); INSERT INTO Planet VALUES(11391957,'K00765.01','Kepler-668b','CONFIRMED',8.35390639,2.54,789); INSERT INTO Planet VALUES(11403044,'K00766.01','Kepler-669b','CONFIRMED',4.125546869,4.46,1244); INSERT INTO Planet VALUES(11414511,'K00767.01','Kepler-670b','CONFIRMED',2.816504852,12.82,1253); INSERT INTO Planet VALUES(11460018,'K00769.01','Kepler-671b','CONFIRMED',4.280958588,2.33,1014); INSERT INTO Planet VALUES(11465813,'K00771.01',NULL,'CANDIDATE',670.645246,14.41,196); INSERT INTO Planet VALUES(11493732,'K00772.01',NULL,'CANDIDATE',61.2563443,64.23,505); INSERT INTO Planet VALUES(11507101,'K00773.01','Kepler-672b','CONFIRMED',38.3774623,2.7,541); INSERT INTO Planet VALUES(11754553,'K00775.01','Kepler-52c','CONFIRMED',16.38485646,1.81,392); INSERT INTO Planet VALUES(11754553,'K00775.02','Kepler-52b','CONFIRMED',7.87740709,2.33,500); INSERT INTO Planet VALUES(11754553,'K00775.03','Kepler-52d','CONFIRMED',36.4451982,1.8,300); INSERT INTO Planet VALUES(11812062,'K00776.01','Kepler-673b','CONFIRMED',3.728731093,6.27,1022); INSERT INTO Planet VALUES(11818800,'K00777.01',NULL,'CANDIDATE',40.41958501,8.02,468); INSERT INTO Planet VALUES(11853255,'K00778.01','Kepler-674b','CONFIRMED',2.243381847,1.32,685); INSERT INTO Planet VALUES(11918099,'K00780.01','Kepler-675b','CONFIRMED',2.33743801,2.38,1054); INSERT INTO Planet VALUES(11918099,'K00780.02',NULL,'CANDIDATE',7.2406514,5.32,723); INSERT INTO Planet VALUES(11923270,'K00781.01','Kepler-676b','CONFIRMED',11.59822172,3.07,400); INSERT INTO Planet VALUES(11960862,'K00782.01','Kepler-677b','CONFIRMED',6.57531678,5.38,1015); INSERT INTO Planet VALUES(12020329,'K00783.01','Kepler-678b','CONFIRMED',7.27503724,4.91,833); INSERT INTO Planet VALUES(12066335,'K00784.01','Kepler-231c','CONFIRMED',19.2715468,1.73,343); INSERT INTO Planet VALUES(12066335,'K00784.02','Kepler-231b','CONFIRMED',10.06525843,1.61,426); INSERT INTO Planet VALUES(12070811,'K00785.01','Kepler-679b','CONFIRMED',12.39358604,2.69,680); INSERT INTO Planet VALUES(12110942,'K00786.01','Kepler-680b','CONFIRMED',3.689926291,1.96,1147); INSERT INTO Planet VALUES(12366084,'K00787.01','Kepler-232b','CONFIRMED',4.431242593,3.07,1074); INSERT INTO Planet VALUES(12366084,'K00787.02','Kepler-232c','CONFIRMED',11.37938071,3.74,784); INSERT INTO Planet VALUES(12404086,'K00788.01','Kepler-681b','CONFIRMED',26.39435646,3.16,491); INSERT INTO Planet VALUES(12470844,'K00790.01','Kepler-233b','CONFIRMED',8.47237844,2.71,752); INSERT INTO Planet VALUES(12470844,'K00790.02','Kepler-233c','CONFIRMED',60.4186137,2.72,390); INSERT INTO Planet VALUES(12644822,'K00791.01','Kepler-682b','CONFIRMED',12.611906672,7.66,753); INSERT INTO Planet VALUES(2713049,'K00794.01','Kepler-683b','CONFIRMED',2.539183179,1.97,1348); INSERT INTO Planet VALUES(3114167,'K00795.01','Kepler-684b','CONFIRMED',6.770302008,2.66,813); INSERT INTO Planet VALUES(3115833,'K00797.01',NULL,'CANDIDATE',10.181581555,8.18,819); INSERT INTO Planet VALUES(3246984,'K00799.01',NULL,'CANDIDATE',1.626629735,447.32,1548); INSERT INTO Planet VALUES(3342970,'K00800.01','Kepler-234b','CONFIRMED',2.711502579,3.62,1405); INSERT INTO Planet VALUES(3342970,'K00800.02','Kepler-234c','CONFIRMED',7.21204152,3.51,1015); INSERT INTO Planet VALUES(3351888,'K00801.01','Kepler-685b','CONFIRMED',1.6255222,9.74,1572); INSERT INTO Planet VALUES(3453214,'K00802.01',NULL,'CANDIDATE',19.620347388,12.0,605); INSERT INTO Planet VALUES(3641726,'K00804.01',NULL,'CANDIDATE',9.0293089,2.72,757); INSERT INTO Planet VALUES(3832474,'K00806.01','Kepler-30d','CONFIRMED',143.2063518,9.36,308); INSERT INTO Planet VALUES(3832474,'K00806.02','Kepler-30c','CONFIRMED',60.32488611,12.88,411); INSERT INTO Planet VALUES(3832474,'K00806.03','Kepler-30b','CONFIRMED',29.1598615,1.91,524); INSERT INTO Planet VALUES(3935914,'K00809.01','Kepler-686b','CONFIRMED',1.594745463,11.77,1540); INSERT INTO Planet VALUES(3940418,'K00810.01',NULL,'CANDIDATE',4.78300451,2.76,886); INSERT INTO Planet VALUES(4049131,'K00811.01','Kepler-687b','CONFIRMED',20.50586978,3.62,518); INSERT INTO Planet VALUES(4139816,'K00812.01','Kepler-235b','CONFIRMED',3.34021995,2.18,635); INSERT INTO Planet VALUES(4139816,'K00812.02','Kepler-235d','CONFIRMED',20.06037454,1.99,350); INSERT INTO Planet VALUES(4139816,'K00812.03','Kepler-235e','CONFIRMED',46.18415,1.94,265); INSERT INTO Planet VALUES(4139816,'K00812.04','Kepler-235c','CONFIRMED',7.82501206,1.22,478); INSERT INTO Planet VALUES(4275191,'K00813.01','Kepler-688b','CONFIRMED',3.895936844,7.92,1011); INSERT INTO Planet VALUES(4476123,'K00814.01','Kepler-689b','CONFIRMED',22.36656079,2.45,544); INSERT INTO Planet VALUES(5358241,'K00829.01','Kepler-53b','CONFIRMED',18.64929678,2.9,700); INSERT INTO Planet VALUES(5358241,'K00829.02','Kepler-53d','CONFIRMED',9.75193182,2.44,869); INSERT INTO Planet VALUES(5358241,'K00829.03','Kepler-53c','CONFIRMED',38.5575914,3.57,550); INSERT INTO Planet VALUES(5358624,'K00830.01','Kepler-428b','CONFIRMED',3.525632561,11.87,955); INSERT INTO Planet VALUES(5456651,'K00835.01','Kepler-239b','CONFIRMED',11.76305946,2.36,614); INSERT INTO Planet VALUES(5456651,'K00835.02','Kepler-239c','CONFIRMED',56.2279697,2.19,365); INSERT INTO Planet VALUES(6862328,'K00865.01',NULL,'CANDIDATE',119.0206251,7.58,348);
lokijota/datadrivenastronomymooc
wk4/sql_and_python/init.sql
SQL
mit
12,317